impaktapps-ui-builder 1.0.41 → 1.0.42-3.territory.module.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 (112) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1923 -896
  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 +2 -1
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/buildImage.d.ts +1 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +2 -1
  17. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +10 -2
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -1
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +6 -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/horizontalLayout.d.ts +13 -0
  25. package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
  26. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  27. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  28. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  29. package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
  30. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +14 -65
  31. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +4 -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 +10 -4
  36. package/package.json +1 -1
  37. package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -2
  38. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +63 -0
  39. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +18 -3
  40. package/src/impaktapps-ui-builder/builder/build/buildButton.ts +1 -1
  41. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
  42. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
  43. package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +1 -1
  44. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +30 -16
  45. package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +2 -2
  46. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +35 -13
  47. package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +7 -0
  48. package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +1 -0
  49. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -28
  50. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  51. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +10 -4
  52. package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
  53. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +38 -0
  54. package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +3 -0
  55. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +4 -1
  56. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -4
  57. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
  58. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +12 -0
  59. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  60. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  61. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +7 -4
  62. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +3 -2
  63. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  64. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
  65. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +11 -3
  66. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +12 -0
  67. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +10 -4
  68. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +69 -0
  69. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +5 -0
  70. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +21 -8
  71. package/src/impaktapps-ui-builder/builder/build/buildText.ts +12 -0
  72. package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +2 -2
  73. package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +1 -1
  74. package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +2 -1
  75. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +136 -124
  76. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
  77. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +8 -3
  78. package/src/impaktapps-ui-builder/builder/build/uischema/array.ts +1 -1
  79. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +5 -2
  80. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +316 -21
  81. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -1
  82. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  83. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -169
  84. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +74 -19
  85. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +2 -2
  86. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  87. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +30 -54
  88. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +3 -3
  89. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
  90. package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
  91. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
  92. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +4 -2
  93. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  94. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +3 -1
  95. package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
  96. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +29 -54
  97. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
  98. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +4 -1
  99. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +228 -59
  100. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +61 -1
  101. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  102. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +94 -106
  103. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +11 -5
  104. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
  105. package/src/impaktapps-ui-builder/builder/services/component.ts +134 -78
  106. package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
  107. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -15
  108. package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
  109. package/src/impaktapps-ui-builder/lib/index.ts +10 -9
  110. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +33 -18
  111. package/src/impaktapps-ui-builder/runtime/services/events.ts +9 -11
  112. package/src/impaktapps-ui-builder/runtime/services/service.ts +119 -160
@@ -44,7 +44,7 @@ const PageMasterSchema = {
44
44
  disabled: true
45
45
  }
46
46
  },
47
- required: ["template", "name", "label"]
47
+ required: ["name", "label"]
48
48
  };
49
49
  const PageMasterUiSchema = (theme) => {
50
50
  var _a;
@@ -96,11 +96,41 @@ const PageMasterUiSchema = (theme) => {
96
96
  }
97
97
  }
98
98
  },
99
+ {
100
+ type: "Control",
101
+ scope: "#/properties/pageIconUrl",
102
+ options: {
103
+ widget: "InputField"
104
+ },
105
+ config: {
106
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
107
+ main: {
108
+ label: "Page Icon URL",
109
+ options: [],
110
+ color: "secondary",
111
+ required: true
112
+ }
113
+ }
114
+ },
115
+ {
116
+ type: "Control",
117
+ scope: "#/properties/hasBackIcon",
118
+ options: {
119
+ widget: "RadioInputField"
120
+ },
121
+ config: {
122
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
123
+ main: {
124
+ label: "Back Icon",
125
+ options: [{ label: "Yes", const: "YES" }, { label: "No", const: "NO" }]
126
+ }
127
+ }
128
+ },
99
129
  {
100
130
  type: "Control",
101
131
  scope: "#/properties/EmptyBox",
102
132
  config: {
103
- layout: { xs: 0, sm: 0, md: 4, lg: 6 }
133
+ layout: { xs: 0, sm: 6, md: 0, lg: 3 }
104
134
  },
105
135
  options: {
106
136
  widget: "EmptyBox"
@@ -204,91 +234,70 @@ const PageMasterUiSchema = (theme) => {
204
234
  disableAction: true,
205
235
  disableSelection: true,
206
236
  enableDrag: true
207
- }
208
- },
209
- elements: [
210
- {
211
- accessorKey: "name",
212
- header: "Name",
213
- size: 300,
214
- type: "string"
215
- },
216
- {
217
- accessorKey: "type",
218
- header: "Type",
219
- size: 300,
220
- type: "string"
221
237
  },
222
- {
223
- header: "Edit",
224
- field: "Reject_Records",
225
- size: 150,
226
- type: "action",
227
- widget: {
238
+ action: [
239
+ {
228
240
  type: "Control",
229
241
  scope: "#/properties/RejectButton",
230
242
  options: {
231
- widget: "IconButton"
243
+ widget: "Button"
232
244
  },
233
245
  config: {
234
246
  main: {
235
- icon: "TableEditIcon",
247
+ size: "small",
248
+ startIcon: "EditIcon",
236
249
  onClick: "Edit_Components",
237
- tooltipMessage: "Edit This Record"
238
- },
239
- style: {
240
- fill: theme.palette.primary.main,
241
- "& :hover": {
242
- fill: theme.palette.primary.dark
243
- }
250
+ tooltipMessage: "Edit This Record",
251
+ name: "Edit"
244
252
  }
245
253
  }
246
- }
247
- },
248
- {
249
- header: "Delete",
250
- field: "Reject_Records",
251
- size: 150,
252
- type: "action",
253
- widget: {
254
+ },
255
+ {
254
256
  type: "Control",
255
257
  scope: "#/properties/RejectButton",
256
258
  options: {
257
- widget: "IconButton"
259
+ widget: "Button"
258
260
  },
259
261
  config: {
260
262
  main: {
261
- icon: "Bin",
263
+ size: "small",
264
+ startIcon: "Bin",
262
265
  onClick: "deletePopUpComponent",
263
- tooltipMessage: "Reject This Record"
264
- },
265
- style: {
266
- fill: theme.palette.primary.main,
267
- "& :hover": {
268
- fill: theme.palette.primary.dark
269
- }
266
+ tooltipMessage: "Reject This Record",
267
+ name: "Delete"
270
268
  }
271
269
  }
272
- }
273
- },
274
- {
275
- header: "Copy",
276
- field: "Copy_Component",
277
- flex: 1,
278
- widget: {
270
+ },
271
+ {
279
272
  type: "Control",
280
273
  scope: "#/properties/Copy_Component",
281
274
  options: {
282
- widget: "IconButton"
275
+ widget: "Button"
283
276
  },
284
277
  config: {
285
278
  main: {
286
- icon: "FileCopyIcon",
279
+ size: "small",
280
+ startIcon: "FileCopyIcon",
287
281
  onClick: "copyPasteElement",
288
- styleDefault: true
282
+ styleDefault: false,
283
+ name: "Copy"
289
284
  }
290
285
  }
291
286
  }
287
+ ]
288
+ },
289
+ elements: [
290
+ {
291
+ accessorKey: "name",
292
+ header: "Name",
293
+ size: 300,
294
+ type: "string"
295
+ },
296
+ {
297
+ accessorKey: "type",
298
+ header: "Type",
299
+ size: 300,
300
+ type: "string"
292
301
  }
293
302
  ]
294
303
  },
@@ -361,93 +370,70 @@ const PageMasterUiSchema = (theme) => {
361
370
  disableAction: true,
362
371
  disableSelection: true,
363
372
  enableDrag: true
364
- }
365
- },
366
- elements: [
367
- {
368
- accessorKey: "eventType",
369
- header: "Event's Type",
370
- size: 300,
371
- type: "string"
372
373
  },
373
- {
374
- accessorKey: "Handler",
375
- header: "Handler",
376
- size: 200,
377
- type: "string"
378
- },
379
- {
380
- accessorKey: "Edit_Approve_Records",
381
- header: "Edit",
382
- type: "action",
383
- size: 150,
384
- widget: {
374
+ action: [
375
+ {
385
376
  type: "Control",
386
377
  scope: "#/properties/Edit_Records",
387
378
  options: {
388
- widget: "IconButton"
379
+ widget: "Button"
389
380
  },
390
381
  config: {
391
382
  main: {
392
383
  size: "small",
393
- icon: "TableEditIcon",
384
+ startIcon: "EditIcon",
394
385
  tooltipMessage: "Edit This Record",
395
- onClick: "editEvent"
396
- },
397
- style: {
398
- fill: theme.palette.primary.main,
399
- "& :hover": {
400
- fill: theme.palette.primary.dark
401
- }
386
+ onClick: "editEvent",
387
+ name: "Edit"
402
388
  }
403
389
  }
404
- }
405
- },
406
- {
407
- accessorKey: "Reject_Records",
408
- header: "Delete",
409
- type: "action",
410
- size: 150,
411
- widget: {
390
+ },
391
+ {
412
392
  type: "Control",
413
393
  scope: "#/properties/RejectButton",
414
394
  options: {
415
- widget: "IconButton"
395
+ widget: "Button"
416
396
  },
417
397
  config: {
418
398
  main: {
419
- icon: "Bin",
399
+ size: "small",
400
+ startIcon: "Bin",
420
401
  tooltipMessage: "Reject This Record",
421
- onClick: "deletePopUpEvent"
422
- },
423
- style: {
424
- fill: theme.palette.primary.main,
425
- "& :hover": {
426
- fill: theme.palette.primary.dark
427
- }
402
+ onClick: "deletePopUpEvent",
403
+ name: "Delete"
428
404
  }
429
405
  }
430
- }
431
- },
432
- {
433
- header: "Copy",
434
- field: "Copy_Event",
435
- type: "action",
436
- size: 150,
437
- widget: {
406
+ },
407
+ {
438
408
  type: "Control",
439
409
  scope: "#/properties/Copy_Event",
440
410
  options: {
441
- widget: "IconButton"
411
+ widget: "Button"
442
412
  },
443
413
  config: {
444
414
  main: {
445
- icon: "FileCopyIcon",
415
+ size: "small",
416
+ startIcon: "FileCopyIcon",
446
417
  onClick: "copyPasteElement",
447
- styleDefault: true
418
+ styleDefault: true,
419
+ name: "Copy"
448
420
  }
449
421
  }
450
422
  }
423
+ ]
424
+ },
425
+ elements: [
426
+ {
427
+ accessorKey: "eventType",
428
+ header: "Event's Type",
429
+ size: 300,
430
+ type: "string"
431
+ },
432
+ {
433
+ accessorKey: "Handler",
434
+ header: "Handler",
435
+ size: 200,
436
+ type: "string"
451
437
  }
452
438
  ]
453
439
  }
@@ -1518,7 +1504,7 @@ var lodash = { exports: {} };
1518
1504
  var reIsNative = RegExp2(
1519
1505
  "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1520
1506
  );
1521
- var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined$1, symIterator = Symbol ? Symbol.iterator : undefined$1, symToStringTag = Symbol ? Symbol.toStringTag : undefined$1;
1507
+ var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined$1, symIterator = Symbol ? Symbol.iterator : undefined$1, symToStringTag = Symbol ? Symbol.toStringTag : undefined$1;
1522
1508
  var defineProperty = function() {
1523
1509
  try {
1524
1510
  var func = getNative(Object2, "defineProperty");
@@ -2780,7 +2766,7 @@ var lodash = { exports: {} };
2780
2766
  }
2781
2767
  function cloneArrayBuffer(arrayBuffer) {
2782
2768
  var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
2783
- new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
2769
+ new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
2784
2770
  return result2;
2785
2771
  }
2786
2772
  function cloneDataView(dataView, isDeep) {
@@ -3384,7 +3370,7 @@ var lodash = { exports: {} };
3384
3370
  object = object.buffer;
3385
3371
  other = other.buffer;
3386
3372
  case arrayBufferTag:
3387
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
3373
+ if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
3388
3374
  return false;
3389
3375
  }
3390
3376
  return true;
@@ -6253,9 +6239,13 @@ const ComponentSchema = {
6253
6239
  { title: "Masked Aadhar Card", const: "AadharcardText" },
6254
6240
  { title: "Array", const: "Array" },
6255
6241
  { title: "Button", const: "Button" },
6242
+ { title: "ButtonGroup", const: "ButtonGroup" },
6256
6243
  { title: "Data Card", const: "card" },
6257
6244
  { title: "Check Box", const: "CheckBox" },
6245
+ { title: "Camera", const: "Camera" },
6246
+ { title: "Column Group", const: "ColumnGroup" },
6258
6247
  { title: "Container", const: "WrapperSection" },
6248
+ { title: "Tab Container", const: "HorizontalLayout" },
6259
6249
  { title: "Data Grid", const: "DataGrid" },
6260
6250
  { title: "Date", const: "Date" },
6261
6251
  { title: "Time Stamp", const: "DateTime" },
@@ -6263,12 +6253,15 @@ const ComponentSchema = {
6263
6253
  { title: "Empty Box", const: "EmptyBox" },
6264
6254
  { title: "File Handler", const: "FileInput" },
6265
6255
  { title: "Graph", const: "Graph" },
6256
+ { title: "Image", const: "Image" },
6266
6257
  { title: "Input Slider", const: "InputSlider" },
6267
6258
  { title: "Label", const: "Box" },
6268
6259
  { title: "Leaderboard", const: "LeaderBoard" },
6269
6260
  { title: "Multi-Select Dropdown", const: "MultipleSelect" },
6261
+ { title: "OTP_Input", const: "OTP_Input" },
6270
6262
  { title: "Pan Card Masked", const: "PanCardText" },
6271
6263
  { title: "Pop Up", const: "PopUp" },
6264
+ { title: "Pop Over", const: "PopOver" },
6272
6265
  { title: "Progress Bar", const: "ProgressBar" },
6273
6266
  { title: "Progress Bar Card", const: "ProgressBarCard" },
6274
6267
  { title: "Dropdown", const: "Select" },
@@ -6278,6 +6271,7 @@ const ComponentSchema = {
6278
6271
  { title: "Radio", const: "Radio" },
6279
6272
  { title: "Rank", const: "Rank" },
6280
6273
  { title: "Rank Card", const: "RankCard" },
6274
+ { title: "Metric Card", const: "MetricCard" },
6281
6275
  { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6282
6276
  { title: "Table", const: "Table" },
6283
6277
  { title: "Tabs", const: "TabSection" },
@@ -6286,8 +6280,8 @@ const ComponentSchema = {
6286
6280
  { title: "Timer", const: "Timer" },
6287
6281
  { title: "Upload", const: "UploadFile" },
6288
6282
  { title: "Tree ", const: "TreeMap" },
6289
- { title: "Column Group", const: "ColumnGroup" },
6290
- { title: "Thought of the day", const: "Thought" }
6283
+ { title: "Thought of the day", const: "Thought" },
6284
+ { title: "PDF", const: "PdfViewer" }
6291
6285
  ]
6292
6286
  },
6293
6287
  elementType: {
@@ -6301,7 +6295,86 @@ const ComponentSchema = {
6301
6295
  oneOf: [
6302
6296
  { title: "Date Column", const: "date" },
6303
6297
  { title: "DateTime Column", const: "dateTime" },
6304
- { title: "Amount Column", const: "amount" }
6298
+ { title: "Amount Column", const: "amount" },
6299
+ { title: "Center Column", const: "action" }
6300
+ ]
6301
+ },
6302
+ dateFormat: {
6303
+ oneOf: [
6304
+ {
6305
+ title: "YYYY-MM-DDTHH:mm:ss.SSSZ",
6306
+ const: "YYYY-MM-DDTHH:mm:ss.SSSZ"
6307
+ },
6308
+ {
6309
+ title: "YYYY-MM-DDTHH:mm:ssZ",
6310
+ const: "YYYY-MM-DDTHH:mm:ssZ"
6311
+ },
6312
+ {
6313
+ title: "YYYY-MM-DDTHH:mm:ss",
6314
+ const: "YYYY-MM-DDTHH:mm:ss"
6315
+ },
6316
+ { title: "YYYY-MM-DD", const: "YYYY-MM-DD" },
6317
+ { title: "DD-MM-YYYY", const: "DD-MM-YYYY" },
6318
+ { title: "MM/DD/YYYY", const: "MM/DD/YYYY" },
6319
+ {
6320
+ title: "YYYY-MM-DD HH:mm:ss",
6321
+ const: "YYYY-MM-DD HH:mm:ss"
6322
+ },
6323
+ {
6324
+ title: "YYYY-MM-DD HH:mm:ss.SSS",
6325
+ const: "YYYY-MM-DD HH:mm:ss.SSS"
6326
+ },
6327
+ { title: "Milliseconds", const: "x" },
6328
+ { title: "Seconds", const: "X" }
6329
+ ]
6330
+ },
6331
+ variant: {
6332
+ oneOf: [
6333
+ { title: "Outlined", const: "outlined" },
6334
+ { title: "Filled", const: "filled" },
6335
+ { title: "Standard", const: "standard" }
6336
+ ]
6337
+ },
6338
+ positionVertical: {
6339
+ oneOf: [
6340
+ { title: "Top", const: "top" },
6341
+ { title: "Center", const: "center" },
6342
+ { title: "Bottom", const: "bottom" }
6343
+ ]
6344
+ },
6345
+ positionHorizontal: {
6346
+ oneOf: [
6347
+ { title: "Left", const: "left" },
6348
+ { title: "Center", const: "center" },
6349
+ { title: "Right", const: "right" }
6350
+ ]
6351
+ },
6352
+ contentVertical: {
6353
+ oneOf: [
6354
+ { title: "Top", const: "top" },
6355
+ { title: "Center", const: "center" },
6356
+ { title: "Bottom", const: "bottom" }
6357
+ ]
6358
+ },
6359
+ contentHorizontal: {
6360
+ oneOf: [
6361
+ { title: "Left", const: "left" },
6362
+ { title: "Center", const: "center" },
6363
+ { title: "Right", const: "right" }
6364
+ ]
6365
+ },
6366
+ toolTipPosition: {
6367
+ oneOf: [
6368
+ { title: "Top", const: "top" },
6369
+ { title: "Left", const: "left" },
6370
+ { title: "Right", const: "right" },
6371
+ { title: "Bottom", const: "bottom" }
6372
+ ]
6373
+ },
6374
+ growthRate: {
6375
+ oneOf: [
6376
+ { title: "Positive", const: "positive" },
6377
+ { title: "Negative", const: "negative" }
6305
6378
  ]
6306
6379
  },
6307
6380
  orientation: {
@@ -6319,6 +6392,40 @@ const ComponentSchema = {
6319
6392
  { title: "Put", const: "put" }
6320
6393
  ]
6321
6394
  },
6395
+ maxPageSize: {
6396
+ type: "number",
6397
+ oneOf: [
6398
+ { title: "10", const: 10 },
6399
+ { title: "20", const: 20 },
6400
+ { title: "30", const: 30 },
6401
+ { title: "50", const: 50 },
6402
+ { title: "100", const: 100 },
6403
+ { title: "500", const: 500 }
6404
+ ]
6405
+ },
6406
+ initialDensity: {
6407
+ type: "string",
6408
+ oneOf: [
6409
+ { title: "Compact", const: "compact" },
6410
+ { title: "Comfortable", const: "comfortable" },
6411
+ { title: "Spacious", const: "spacious" }
6412
+ ]
6413
+ },
6414
+ xAxisFormatType: {
6415
+ type: "string",
6416
+ oneOf: [
6417
+ { title: "Date and Month", const: "Date and Month" },
6418
+ { title: "Month and Year", const: "Month and Year" }
6419
+ ]
6420
+ },
6421
+ xAxisType: {
6422
+ type: "string",
6423
+ oneOf: [
6424
+ { title: "Date", const: "date" },
6425
+ { title: "String", const: "string" },
6426
+ { title: "Number", const: "number" }
6427
+ ]
6428
+ },
6322
6429
  layout: {
6323
6430
  type: "array",
6324
6431
  items: {
@@ -6386,20 +6493,6 @@ const ComponentSchema = {
6386
6493
  }
6387
6494
  }
6388
6495
  },
6389
- events: {
6390
- type: "array",
6391
- items: {
6392
- type: "object",
6393
- properties: {
6394
- eventType: {
6395
- type: "string"
6396
- },
6397
- configType: {
6398
- type: "string"
6399
- }
6400
- }
6401
- }
6402
- },
6403
6496
  sectionLabels: {
6404
6497
  type: "array",
6405
6498
  items: {
@@ -6468,6 +6561,9 @@ const ComponentSchema = {
6468
6561
  items: {
6469
6562
  type: "object",
6470
6563
  properties: {
6564
+ key: {
6565
+ type: "string"
6566
+ },
6471
6567
  label: {
6472
6568
  type: "string"
6473
6569
  }
@@ -6479,12 +6575,26 @@ const ComponentSchema = {
6479
6575
  items: {
6480
6576
  type: "object",
6481
6577
  properties: {
6578
+ key: {
6579
+ type: "string"
6580
+ },
6482
6581
  label: {
6483
6582
  type: "string"
6484
6583
  }
6485
6584
  }
6486
6585
  }
6487
6586
  },
6587
+ tabIcons: {
6588
+ type: "array",
6589
+ items: {
6590
+ type: "object",
6591
+ properties: {
6592
+ url: {
6593
+ type: "string"
6594
+ }
6595
+ }
6596
+ }
6597
+ },
6488
6598
  InputFormatingAndMasking: {
6489
6599
  type: "array",
6490
6600
  items: {
@@ -6510,7 +6620,8 @@ const ComponentSchema = {
6510
6620
  { const: "required", title: "Required" },
6511
6621
  { const: "minLength", title: "Minimum Length" },
6512
6622
  { const: "maxLength", title: "Maximum Length" },
6513
- { const: "pattern", title: "Pattern" }
6623
+ { const: "pattern", title: "Pattern" },
6624
+ { const: "readOnly", title: "Read Only" }
6514
6625
  ]
6515
6626
  },
6516
6627
  validationValue: {
@@ -6542,7 +6653,12 @@ const ComponentSchema = {
6542
6653
  { title: "Line Graph", const: "LineGraph" },
6543
6654
  { title: "Pie Graph", const: "PieGraph" },
6544
6655
  { title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
6545
- { title: "Stack Horizontal Bar Graph", const: "HorizontalStackBarGraph" }
6656
+ {
6657
+ title: "Stack Horizontal Bar Graph",
6658
+ const: "HorizontalStackBarGraph"
6659
+ },
6660
+ { title: "Area Graph", const: "AreaGraph" },
6661
+ { title: "StackBar And Line Graph", const: "StackBarLineGraph" }
6546
6662
  ]
6547
6663
  },
6548
6664
  iconName: {
@@ -6564,7 +6680,43 @@ const ComponentSchema = {
6564
6680
  { title: "Error Icon", const: "ErrorIcon" },
6565
6681
  { title: "Refresh Icon", const: "RefreshIcon" },
6566
6682
  { title: "Download Icon", const: "DownloadIcon" },
6567
- { title: "Exception Icon", const: "ExceptionIcon" }
6683
+ { title: "Download All Icon", const: "DownloadAllIcon" },
6684
+ { title: "Exception Icon", const: "ExceptionIcon" },
6685
+ { title: "Alarm Icon", const: "AlarmIcon" },
6686
+ { title: "Click Icon", const: "ClickIcon" },
6687
+ { title: "Content Copy Icon", const: "ContentCopyIcon" },
6688
+ { title: "File Copy Icon", const: "FileCopyIcon" },
6689
+ { title: "Pause Icon", const: "PauseIcon" },
6690
+ { title: "Play Icon", const: "PlayIcon" },
6691
+ { title: "Close Icon", const: "CloseIcon" },
6692
+ { title: "Replay Icon", const: "ReplayIcon" },
6693
+ { title: "Delete Icon", const: "DeleteIcon" },
6694
+ { title: "Drafts Icon", const: "DraftsIcon" },
6695
+ { title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
6696
+ { title: "Paste Icon", const: "PasteIcon" },
6697
+ { title: "Calendar", const: "Calendar" },
6698
+ { title: "Prev Icon", const: "PrevIcon" },
6699
+ { title: "Verified Icon", const: "VerifiedIcon" },
6700
+ { title: "Table Add Icon", const: "TableAddIcon" },
6701
+ { title: "Table Download Icon", const: "TableDownloadIcon" },
6702
+ { title: "Audit Trail Icon", const: "AuditTrailIcon" },
6703
+ { title: "View Component", const: "View" },
6704
+ { title: "Table Edit Icon", const: "TableEditIcon" },
6705
+ { title: "Maximize Icon", const: "Maximize" },
6706
+ { title: "Minimize Icon", const: "Minimize" },
6707
+ { title: "Subtract Icon", const: "Subtract" },
6708
+ { title: "Bin Icon", const: "Bin" },
6709
+ { title: "Export Icon", const: "Export" },
6710
+ { title: "Table Paste Icon", const: "TablePaste" },
6711
+ { title: "Clone Icon", const: "CloneIcon" },
6712
+ { title: "Detail Icon", const: "DetailIcon" },
6713
+ { title: "Report View Icon", const: "ReportViewIcon" },
6714
+ { title: "Payout", const: "Payout" },
6715
+ { title: "Info Outlined", const: "InfoOutlinedIcon" },
6716
+ { title: "Territory Add", const: "TerritoryAdd" },
6717
+ { title: "Territory Edit", const: "TerritoryEdit" },
6718
+ { title: "Territory Delete", const: "TerritoryDelete" },
6719
+ { title: "Git Compare", const: "GitCompare" }
6568
6720
  ]
6569
6721
  },
6570
6722
  color: {
@@ -6682,7 +6834,67 @@ const componentBasicUiSchema = (theme) => {
6682
6834
  },
6683
6835
  {
6684
6836
  type: "Control",
6685
- scope: "#/properties/proc",
6837
+ scope: "#/properties/proc5",
6838
+ config: {
6839
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6840
+ },
6841
+ options: {
6842
+ widget: "EmptyBox"
6843
+ }
6844
+ },
6845
+ {
6846
+ type: "Control",
6847
+ scope: "#/properties/proc6",
6848
+ config: {
6849
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6850
+ },
6851
+ options: {
6852
+ widget: "EmptyBox"
6853
+ }
6854
+ },
6855
+ {
6856
+ type: "Control",
6857
+ scope: "#/properties/proc7",
6858
+ config: {
6859
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6860
+ },
6861
+ options: {
6862
+ widget: "EmptyBox"
6863
+ }
6864
+ },
6865
+ {
6866
+ type: "Control",
6867
+ scope: "#/properties/proc8",
6868
+ config: {
6869
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6870
+ },
6871
+ options: {
6872
+ widget: "EmptyBox"
6873
+ }
6874
+ },
6875
+ {
6876
+ type: "Control",
6877
+ scope: "#/properties/proc9",
6878
+ config: {
6879
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6880
+ },
6881
+ options: {
6882
+ widget: "EmptyBox"
6883
+ }
6884
+ },
6885
+ {
6886
+ type: "Control",
6887
+ scope: "#/properties/proc10",
6888
+ config: {
6889
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6890
+ },
6891
+ options: {
6892
+ widget: "EmptyBox"
6893
+ }
6894
+ },
6895
+ {
6896
+ type: "Control",
6897
+ scope: "#/properties/proc11",
6686
6898
  config: {
6687
6899
  layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6688
6900
  },
@@ -7204,7 +7416,7 @@ const CoreSection = {
7204
7416
  },
7205
7417
  {
7206
7418
  type: "Control",
7207
- scope: "#/properties/proc",
7419
+ scope: "#/properties/proc5",
7208
7420
  config: {
7209
7421
  layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7210
7422
  },
@@ -7214,10 +7426,80 @@ const CoreSection = {
7214
7426
  },
7215
7427
  {
7216
7428
  type: "Control",
7217
- scope: "#/properties/layout",
7429
+ scope: "#/properties/proc6",
7218
7430
  config: {
7219
- layout: 12,
7220
- main: {
7431
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7432
+ },
7433
+ options: {
7434
+ widget: "EmptyBox"
7435
+ }
7436
+ },
7437
+ {
7438
+ type: "Control",
7439
+ scope: "#/properties/proc7",
7440
+ config: {
7441
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7442
+ },
7443
+ options: {
7444
+ widget: "EmptyBox"
7445
+ }
7446
+ },
7447
+ {
7448
+ type: "Control",
7449
+ scope: "#/properties/proc8",
7450
+ config: {
7451
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7452
+ },
7453
+ options: {
7454
+ widget: "EmptyBox"
7455
+ }
7456
+ },
7457
+ {
7458
+ type: "Control",
7459
+ scope: "#/properties/proc9",
7460
+ config: {
7461
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7462
+ },
7463
+ options: {
7464
+ widget: "EmptyBox"
7465
+ }
7466
+ },
7467
+ {
7468
+ type: "Control",
7469
+ scope: "#/properties/proc10",
7470
+ config: {
7471
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7472
+ },
7473
+ options: {
7474
+ widget: "EmptyBox"
7475
+ }
7476
+ },
7477
+ {
7478
+ type: "Control",
7479
+ scope: "#/properties/proc11",
7480
+ config: {
7481
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7482
+ },
7483
+ options: {
7484
+ widget: "EmptyBox"
7485
+ }
7486
+ },
7487
+ {
7488
+ type: "Control",
7489
+ scope: "#/properties/proc",
7490
+ config: {
7491
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7492
+ },
7493
+ options: {
7494
+ widget: "EmptyBox"
7495
+ }
7496
+ },
7497
+ {
7498
+ type: "Control",
7499
+ scope: "#/properties/layout",
7500
+ config: {
7501
+ layout: 12,
7502
+ main: {
7221
7503
  label: "Layout",
7222
7504
  childElementLabel: "Layout"
7223
7505
  },
@@ -7349,95 +7631,71 @@ const EventSection = (theme) => {
7349
7631
  disableAction: true,
7350
7632
  disableSelection: true,
7351
7633
  enableDrag: true
7352
- }
7353
- },
7354
- elements: [
7355
- {
7356
- accessorKey: "eventType",
7357
- header: "Event's Type",
7358
- type: "string",
7359
- size: 300
7360
- },
7361
- {
7362
- accessorKey: "Handler",
7363
- header: "Handler",
7364
- type: "string",
7365
- size: 200
7366
7634
  },
7367
- {
7368
- accessorKey: "Edit_Approve_Records",
7369
- header: "Edit",
7370
- size: 150,
7371
- type: "action",
7372
- widget: {
7635
+ action: [
7636
+ {
7373
7637
  type: "Control",
7374
7638
  scope: "#/properties/Edit_Records",
7375
7639
  options: {
7376
- widget: "IconButton"
7640
+ widget: "Button"
7377
7641
  },
7378
7642
  config: {
7379
7643
  main: {
7380
7644
  size: "small",
7381
- icon: "TableEditIcon",
7645
+ startIcon: "EditIcon",
7382
7646
  tooltipMessage: "Edit This Record",
7383
- onClick: "eventEditHandler"
7384
- },
7385
- style: {
7386
- fill: theme.palette.primary.main,
7387
- "& :hover": {
7388
- fill: theme.palette.primary.dark
7389
- }
7647
+ onClick: "eventEditHandler",
7648
+ name: "Edit"
7390
7649
  }
7391
7650
  }
7392
- }
7393
- },
7394
- {
7395
- accessorKey: "Reject_Records",
7396
- header: "Delete",
7397
- size: 150,
7398
- type: "action",
7399
- widget: {
7651
+ },
7652
+ {
7400
7653
  type: "Control",
7401
7654
  scope: "#/properties/RejectButton",
7402
7655
  accessorKeyName: "Reject_Records",
7403
7656
  options: {
7404
- widget: "IconButton"
7657
+ widget: "Button"
7405
7658
  },
7406
7659
  config: {
7407
7660
  main: {
7408
- icon: "Bin",
7661
+ startIcon: "Bin",
7409
7662
  tooltipMessage: "Reject This Record",
7410
- onClick: "deletePopUpEvent"
7411
- },
7412
- style: {
7413
- fill: theme.palette.primary.main,
7414
- "& :hover": {
7415
- fill: theme.palette.primary.dark
7416
- }
7663
+ onClick: "deletePopUpEvent",
7664
+ name: "Delete",
7665
+ size: "small"
7417
7666
  }
7418
7667
  }
7419
- }
7420
- },
7421
- {
7422
- header: "Copy",
7423
- field: "Copy_Event",
7424
- size: 150,
7425
- type: "action",
7426
- widget: {
7668
+ },
7669
+ {
7427
7670
  type: "Control",
7428
7671
  scope: "#/properties/Copy_Event",
7429
7672
  options: {
7430
- widget: "IconButton"
7673
+ widget: "Button"
7431
7674
  },
7432
7675
  config: {
7433
7676
  main: {
7434
- icon: "FileCopyIcon",
7677
+ startIcon: "FileCopyIcon",
7435
7678
  onClick: "copyPasteElement",
7436
7679
  tooltipMessage: "Reject This Record",
7437
- styleDefault: true
7680
+ styleDefault: false,
7681
+ name: "Copy"
7438
7682
  }
7439
7683
  }
7440
7684
  }
7685
+ ]
7686
+ },
7687
+ elements: [
7688
+ {
7689
+ accessorKey: "eventType",
7690
+ header: "Event's Type",
7691
+ type: "string",
7692
+ size: 300
7693
+ },
7694
+ {
7695
+ accessorKey: "Handler",
7696
+ header: "Handler",
7697
+ type: "string",
7698
+ size: 200
7441
7699
  }
7442
7700
  ]
7443
7701
  }
@@ -7497,7 +7755,7 @@ const cardLayout = {
7497
7755
  widget: "SelectInputField"
7498
7756
  },
7499
7757
  config: {
7500
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7758
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7501
7759
  main: {
7502
7760
  label: "Screen Size"
7503
7761
  }
@@ -7564,6 +7822,60 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7564
7822
  ]
7565
7823
  };
7566
7824
  };
7825
+ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
7826
+ return {
7827
+ type: "Control",
7828
+ scope: `#/properties/${parentScope}`,
7829
+ options: {
7830
+ widget: "Array"
7831
+ },
7832
+ config: {
7833
+ layout: 12,
7834
+ main: {
7835
+ label: arrayLabel
7836
+ },
7837
+ style: {
7838
+ marginLeft: "-24px",
7839
+ marginBottom: "24px !important",
7840
+ labelStyle: {
7841
+ marginLeft: "24px"
7842
+ },
7843
+ detailsStyle: {
7844
+ marginLeft: "24px"
7845
+ }
7846
+ }
7847
+ },
7848
+ elements: [
7849
+ {
7850
+ type: "Control",
7851
+ scope: `#/properties/${firstFieldScope}`,
7852
+ options: {
7853
+ widget: "InputField"
7854
+ },
7855
+ config: {
7856
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7857
+ main: {
7858
+ label: firstFieldLabel || "Labels for Tab"
7859
+ }
7860
+ }
7861
+ },
7862
+ {
7863
+ type: "Control",
7864
+ scope: `#/properties/${secondFieldScope}`,
7865
+ options: {
7866
+ widget: "InputField"
7867
+ },
7868
+ config: {
7869
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7870
+ main: {
7871
+ label: secondFieldLabel || "Labels for Tab"
7872
+ }
7873
+ }
7874
+ },
7875
+ emptyBox$1("ArrayControlEmpty2", { xs: 6, sm: 6, md: 4, lg: 4 })
7876
+ ]
7877
+ };
7878
+ };
7567
7879
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
7568
7880
  sizeHolder.elements[1] = {
7569
7881
  type: "Control",
@@ -7686,12 +7998,26 @@ const BaseSection = {
7686
7998
  const buildPropertiesSection = function(type) {
7687
7999
  let uiSchema = _.cloneDeep(BaseSection);
7688
8000
  switch (type) {
8001
+ case "OTP_Input":
8002
+ uiSchema.elements = [
8003
+ getInputField("seperator", "Seperator"),
8004
+ getInputField("length", "OTP Length"),
8005
+ getRadioInputField("masking", "OTP Masking", ["YES", "NO"]),
8006
+ emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
8007
+ ];
8008
+ break;
7689
8009
  case "Array":
7690
8010
  uiSchema.elements = [
7691
8011
  getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
8012
+ getRadioInputField("disableAddButton", "Disable Add Button", ["YES", "NO"]),
8013
+ getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
8014
+ getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
7692
8015
  getInputField("childElementLabel", "Child Element Label"),
7693
- emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 }),
7694
- emptyBox$1("empty2", { xs: 0, sm: 0, md: 4, lg: 3 })
8016
+ getInputField("showKeyAsLabel", "ShowKey As Label"),
8017
+ getInputField("rowSpacing", "Row Spacing"),
8018
+ getInputField("columnSpacing", "Column Spacing"),
8019
+ getInputField("spacing", "Spacing"),
8020
+ emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
7695
8021
  ];
7696
8022
  break;
7697
8023
  case "TreeMap":
@@ -7744,12 +8070,27 @@ const buildPropertiesSection = function(type) {
7744
8070
  emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
7745
8071
  ];
7746
8072
  break;
8073
+ case "PopOver":
8074
+ uiSchema.elements = [
8075
+ getSelectField("positionVertical", "Attach To (Vertical)"),
8076
+ getSelectField("positionHorizontal", "Attach To (Horizontal)"),
8077
+ getSelectField("contentVertical", "Popover Start (Vertical)"),
8078
+ getSelectField("contentHorizontal", "Popover Start (Horizontal)"),
8079
+ getInputField("width", "Width"),
8080
+ getInputField("gap", "Gap"),
8081
+ emptyBox$1("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
8082
+ ];
8083
+ break;
7747
8084
  case "Text":
7748
8085
  uiSchema.elements = [
7749
8086
  getInputField("placeholder", "Placeholder"),
7750
8087
  getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7751
- emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7752
- getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
8088
+ getSelectField("variant", "Variant"),
8089
+ getInputField("toolTip", "Tooltip"),
8090
+ getSelectField("toolTipPosition", "Tooltip Position"),
8091
+ emptyBox$1("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
8092
+ getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
8093
+ getInputField("keyName", "Event Key Name")
7753
8094
  ];
7754
8095
  break;
7755
8096
  case "TextArea":
@@ -7785,7 +8126,8 @@ const buildPropertiesSection = function(type) {
7785
8126
  getInputField("nameKey", "Key for Name"),
7786
8127
  getInputField("imageKey", "Key for Image"),
7787
8128
  getInputField("scoreKey", "Key for comparing parameter"),
7788
- emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 })
8129
+ getRadioInputField("isScoreAmount", "Is Score an Amount Type", ["YES", "No"]),
8130
+ emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 })
7789
8131
  ];
7790
8132
  break;
7791
8133
  case "CardSlider":
@@ -7801,8 +8143,9 @@ const buildPropertiesSection = function(type) {
7801
8143
  getInputField("bottomLabel_1", "First BottomLabel"),
7802
8144
  getInputField("bottomLabel_2", "Second BottomLabel"),
7803
8145
  getInputField("bottomLabel_3", "Third BottomLabel"),
7804
- emptyBox$1("ProgressBarCardEmpty1"),
7805
- emptyBox$1("ProgressBarCardEmpty2")
8146
+ getInputField("size", "Size"),
8147
+ getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
8148
+ getArrayControl("pieArcColors", "color", "Color")
7806
8149
  ];
7807
8150
  break;
7808
8151
  case "card":
@@ -7814,6 +8157,17 @@ const buildPropertiesSection = function(type) {
7814
8157
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
7815
8158
  ];
7816
8159
  break;
8160
+ case "MetricCard":
8161
+ uiSchema.elements = [
8162
+ getInputField("url", "Image Url"),
8163
+ getInputField("label", "Label"),
8164
+ getInputField("cardValue", "Value"),
8165
+ getInputField("description", "Description"),
8166
+ getSelectField("growthRate", "Growth Rate"),
8167
+ getInputField("color", "Card Color"),
8168
+ emptyBox$1("MetricEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 })
8169
+ ];
8170
+ break;
7817
8171
  case "Button":
7818
8172
  uiSchema.elements = [
7819
8173
  getSelectField("buttonType", "Button Type"),
@@ -7824,22 +8178,45 @@ const buildPropertiesSection = function(type) {
7824
8178
  emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
7825
8179
  ];
7826
8180
  break;
8181
+ case "ButtonGroup":
8182
+ uiSchema.elements = [
8183
+ getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
8184
+ getInputField("size", "Size"),
8185
+ getSelectField("color", "Color"),
8186
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
8187
+ ];
8188
+ break;
8189
+ case "Box":
8190
+ uiSchema.elements = [
8191
+ getSelectField("iconName", "Icon Name"),
8192
+ emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
8193
+ ];
8194
+ break;
7827
8195
  case "Graph":
7828
8196
  uiSchema.elements = [
7829
8197
  getInputField("height", "Height"),
7830
8198
  getInputField("heading", "Heading"),
8199
+ getInputField("subHeader", "Sub Header"),
7831
8200
  getSelectField("graphType", "Graph Type"),
7832
8201
  getInputField("leftLabel", "Left Label"),
8202
+ getInputField("rightLabel", "Right Label"),
8203
+ getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
7833
8204
  getInputField("bottomLabel", "Bottom Label"),
7834
8205
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
7835
8206
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7836
- getInputField("yAxisValue", "Y-AxisValue"),
7837
- getInputField("xAxisValue", "X-AxisValue"),
8207
+ getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
8208
+ getInputField("yAxisValue", "Y-Axis Key"),
8209
+ getInputField("xAxisValue", "X-Axis Key"),
8210
+ getSelectField("xAxisType", "X-AxisType"),
7838
8211
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7839
8212
  getInputField("leftMargin", "Left Margin"),
7840
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
7841
- getArrayControl("legendLabels", "label"),
7842
- getArrayControl("pieArcColors", "color")
8213
+ getInputField("yAxisTickCount", "Y Axis TickCount"),
8214
+ getSelectField("xAxisFormatType", "X Axis Format Type"),
8215
+ getInputField("growthRateKey", "Growth Rate Key"),
8216
+ getInputField("tooltipUnit", "Tooltip Unit"),
8217
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
8218
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8219
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
7843
8220
  ];
7844
8221
  break;
7845
8222
  case "WrapperSection":
@@ -7847,8 +8224,12 @@ const buildPropertiesSection = function(type) {
7847
8224
  getRadioInputField("divider", "Divider", ["YES", "No"]),
7848
8225
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
7849
8226
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
8227
+ getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
7850
8228
  getInputField("rowSpacing", "Row Spacing"),
7851
- emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
8229
+ getInputField("columnSpacing", "Column Spacing"),
8230
+ getInputField("spacing", "Spacing"),
8231
+ getInputField("iconUrl", "Icon Url"),
8232
+ emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
7852
8233
  emptyBox$1("WrapperSectionEmpty2")
7853
8234
  ];
7854
8235
  break;
@@ -7857,7 +8238,7 @@ const buildPropertiesSection = function(type) {
7857
8238
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
7858
8239
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
7859
8240
  emptyBox$1("TabEmpty"),
7860
- getArrayControl("sectionLabels", "label")
8241
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
7861
8242
  ];
7862
8243
  break;
7863
8244
  case "Table":
@@ -7877,13 +8258,16 @@ const buildPropertiesSection = function(type) {
7877
8258
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
7878
8259
  getInputField("selectKey", "Selection Key"),
7879
8260
  getMultiSelectField("filteringOptions", "Filtering Options"),
8261
+ getSelectField("maxPageSize", "Max Page Size"),
8262
+ getSelectField("initialDensity", "Initial Toggle Density"),
7880
8263
  buildWrapper("Tree Table Properties", [
7881
8264
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
7882
8265
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
7883
8266
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
7884
8267
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
7885
8268
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
7886
- emptyBox$1("LazyLoadingTableEmpty2"),
8269
+ getInputField("defaultColumnSize", "Default Column Size"),
8270
+ ,
7887
8271
  emptyBox$1("LazyLoadingTableEmpty3")
7888
8272
  ]),
7889
8273
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
@@ -7893,6 +8277,10 @@ const buildPropertiesSection = function(type) {
7893
8277
  break;
7894
8278
  case "Radio":
7895
8279
  uiSchema.elements = [
8280
+ getInputField("errorMessage", "Error Message"),
8281
+ getInputField("toolTip", "Tooltip"),
8282
+ getSelectField("toolTipPosition", "Tooltip Position"),
8283
+ emptyBox$1("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
7896
8284
  getArrayControl("sectionLabels", "label", "Options Of Radio")
7897
8285
  ];
7898
8286
  break;
@@ -7900,14 +8288,40 @@ const buildPropertiesSection = function(type) {
7900
8288
  uiSchema.elements = [
7901
8289
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7902
8290
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
7903
- emptyBox$1("SelectEmpty")
8291
+ getSelectField("variant", "Variant"),
8292
+ getInputField("toolTip", "Tooltip"),
8293
+ getSelectField("toolTipPosition", "Tooltip Position"),
8294
+ emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
7904
8295
  ];
7905
8296
  break;
7906
8297
  case "MultipleSelect":
7907
8298
  uiSchema.elements = [
7908
8299
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7909
- emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
7910
- emptyBox$1("MultipleSelectEmpty2")
8300
+ getSelectField("variant", "Variant"),
8301
+ getInputField("toolTip", "Tooltip"),
8302
+ getSelectField("toolTipPosition", "Tooltip Position")
8303
+ ];
8304
+ break;
8305
+ case "PdfViewer":
8306
+ uiSchema.elements = [
8307
+ getInputField("scale", "Zoom"),
8308
+ emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
8309
+ ];
8310
+ break;
8311
+ case "Date":
8312
+ uiSchema.elements = [
8313
+ getSelectField("variant", "Variant"),
8314
+ getInputField("toolTip", "Tooltip"),
8315
+ getSelectField("toolTipPosition", "Tooltip Position"),
8316
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8317
+ ];
8318
+ break;
8319
+ case "DateTime":
8320
+ uiSchema.elements = [
8321
+ getSelectField("variant", "Variant"),
8322
+ getInputField("toolTip", "Tooltip"),
8323
+ getSelectField("toolTipPosition", "Tooltip Position"),
8324
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
7911
8325
  ];
7912
8326
  break;
7913
8327
  case "Thought":
@@ -7915,6 +8329,40 @@ const buildPropertiesSection = function(type) {
7915
8329
  getTextArea("thought", "Today's thought", false)
7916
8330
  ];
7917
8331
  break;
8332
+ case "Image":
8333
+ uiSchema.elements = [
8334
+ getInputField("imageUrl", "Image URL"),
8335
+ getInputField("height", "Image Height"),
8336
+ getInputField("toolTip", "Tooltip"),
8337
+ getSelectField("toolTipPosition", "Tooltip Position"),
8338
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8339
+ ];
8340
+ break;
8341
+ case "FileInput":
8342
+ uiSchema.elements = [
8343
+ getRadioInputField("variant", "Variant", ["Outlined", "Standard"]),
8344
+ getRadioInputField("disableUpload", "Disable Upload", ["YES", "NO"]),
8345
+ getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
8346
+ getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
8347
+ getInputField("description", "Enter description"),
8348
+ getInputField("toolTip", "Tooltip"),
8349
+ getSelectField("toolTipPosition", "Tooltip Position"),
8350
+ getInputField("chooseButtonLabel", "ChooseButton Label"),
8351
+ getInputField("noFileAvailableMessage", "No Found Message"),
8352
+ getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
8353
+ getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
8354
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8355
+ ];
8356
+ break;
8357
+ case "Camera":
8358
+ uiSchema.elements = [
8359
+ getSelectField("iconName", "Icon Name"),
8360
+ getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
8361
+ getSelectField("color", "Color"),
8362
+ getInputField("tooltipMessage", "Tooltip Message"),
8363
+ getSelectField("variant", "Variant"),
8364
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
8365
+ ];
7918
8366
  }
7919
8367
  return uiSchema;
7920
8368
  };
@@ -8025,94 +8473,69 @@ const TableSection = (theme) => {
8025
8473
  disableAction: true,
8026
8474
  disableSelection: true,
8027
8475
  enableDrag: true
8028
- }
8029
- },
8030
- elements: [
8031
- {
8032
- accessorKey: "name",
8033
- header: "Name",
8034
- type: "string",
8035
- size: 300
8036
- },
8037
- {
8038
- accessorKey: "type",
8039
- header: "Type",
8040
- type: "string",
8041
- size: 200
8042
8476
  },
8043
- {
8044
- header: "Edit Record",
8045
- field: "Reject_Records",
8046
- size: 150,
8047
- type: "action",
8048
- widget: {
8477
+ action: [
8478
+ {
8049
8479
  type: "Control",
8050
8480
  scope: "#/properties/RejectButton",
8051
8481
  options: {
8052
- widget: "IconButton"
8482
+ widget: "Button"
8053
8483
  },
8054
8484
  config: {
8055
8485
  main: {
8056
- icon: "TableEditIcon",
8486
+ startIcon: "EditIcon",
8057
8487
  size: "small",
8058
8488
  onClick: "editComponents",
8059
- tooltipMessage: "Reject This Record"
8060
- },
8061
- style: {
8062
- fill: theme.palette.primary.main,
8063
- "& :hover": {
8064
- fill: theme.palette.primary.dark
8065
- }
8489
+ tooltipMessage: "Reject This Record",
8490
+ name: "Edit"
8066
8491
  }
8067
8492
  }
8068
- }
8069
- },
8070
- {
8071
- header: "Delete",
8072
- field: "Reject_Records",
8073
- size: 150,
8074
- type: "action",
8075
- widget: {
8493
+ },
8494
+ {
8076
8495
  type: "Control",
8077
8496
  scope: "#/properties/RejectButton",
8078
8497
  options: {
8079
- widget: "IconButton"
8498
+ widget: "Button"
8080
8499
  },
8081
8500
  config: {
8082
8501
  main: {
8083
- icon: "Bin",
8502
+ startIcon: "Bin",
8084
8503
  onClick: "deletePopUpComponent",
8085
- tooltipMessage: "Reject This Record"
8086
- },
8087
- style: {
8088
- fill: theme.palette.primary.main,
8089
- "& :hover": {
8090
- fill: theme.palette.primary.dark
8091
- }
8504
+ tooltipMessage: "Reject This Record",
8505
+ name: "Delete",
8506
+ size: "small"
8092
8507
  }
8093
8508
  }
8094
- }
8095
- },
8096
- {
8097
- header: "Copy",
8098
- field: "Copy_Component",
8099
- size: 150,
8100
- type: "action",
8101
- widget: {
8509
+ },
8510
+ {
8102
8511
  type: "Control",
8103
8512
  scope: "#/properties/Copy_Component",
8104
8513
  options: {
8105
- widget: "IconButton"
8514
+ widget: "Button"
8106
8515
  },
8107
8516
  config: {
8108
8517
  main: {
8109
- icon: "FileCopyIcon",
8518
+ startIcon: "FileCopyIcon",
8110
8519
  onClick: "copyPasteElement",
8111
- styleDefault: true,
8112
- disabled: false
8520
+ styleDefault: false,
8521
+ name: "Copy"
8113
8522
  }
8114
8523
  }
8115
8524
  }
8525
+ ]
8526
+ },
8527
+ elements: [
8528
+ {
8529
+ accessorKey: "name",
8530
+ header: "Name",
8531
+ type: "string",
8532
+ size: 300
8533
+ },
8534
+ {
8535
+ accessorKey: "type",
8536
+ header: "Type",
8537
+ type: "string",
8538
+ size: 200
8116
8539
  }
8117
8540
  ]
8118
8541
  }
@@ -8282,23 +8705,22 @@ var buildConfig = (FormData) => {
8282
8705
  component = { ...formData, ...component };
8283
8706
  return component;
8284
8707
  };
8285
- const createLayoutFormat = (config2) => {
8286
- if (_.isEmpty(config2)) {
8287
- return {
8288
- xs: 12,
8289
- sm: 12,
8290
- md: 12,
8291
- lg: 12
8292
- };
8708
+ const createLayoutFormat = (layout, type) => {
8709
+ if (_.isEmpty(layout)) {
8710
+ const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout", "Table"];
8711
+ if (fullLayoutComponents.includes(type)) {
8712
+ return { xs: 12, sm: 12, md: 12, lg: 12 };
8713
+ } else if (type === "Graph") {
8714
+ return { xs: 12, sm: 12, md: 12, lg: 6 };
8715
+ } else if (type === "Button") {
8716
+ return { xs: 4, sm: 2.5, md: 2, lg: 1.5 };
8717
+ } else {
8718
+ return { xs: 6, sm: 6, md: 4, lg: 3 };
8719
+ }
8293
8720
  }
8294
- let data = {
8295
- xs: 12,
8296
- sm: 12,
8297
- md: 6,
8298
- lg: 6
8299
- };
8300
- config2.map((e) => {
8301
- data[e.key || "xs"] = +e.value || 5.5;
8721
+ let data = {};
8722
+ layout.map((e) => {
8723
+ data[e.key || "xs"] = e.value === null || e.value === void 0 || e.value === "" ? 5.5 : +e.value;
8302
8724
  });
8303
8725
  return data;
8304
8726
  };
@@ -8312,9 +8734,27 @@ const flatObjectValueInArray = (config2 = []) => {
8312
8734
  });
8313
8735
  return data;
8314
8736
  };
8737
+ const createKeyValueMap = (config2 = []) => {
8738
+ return config2.reduce((acc, item) => {
8739
+ if (!item.key)
8740
+ return acc;
8741
+ acc[item.key] = item.value;
8742
+ return acc;
8743
+ }, {});
8744
+ };
8315
8745
  const clearFromSessionStorage = () => {
8316
8746
  sessionStorage.removeItem("pageFormdata");
8317
8747
  };
8748
+ const validateAndShowErrors = (store2) => {
8749
+ if (_.isEmpty(store2.ctx.core.errors))
8750
+ return false;
8751
+ store2.setValidation("ValidateAndShow");
8752
+ store2.setNotify({
8753
+ Fail: true,
8754
+ FailMessage: "Error on Page"
8755
+ });
8756
+ return true;
8757
+ };
8318
8758
  const getNavigationHistory = (config2, path) => {
8319
8759
  if (path) {
8320
8760
  let urlRoutes = config2.name;
@@ -8373,11 +8813,13 @@ async function saveHandler(store2, service2, submitHandler) {
8373
8813
  const saveReturn = await submitHandler(store2, service2, config2);
8374
8814
  navigateHandler(store2, true, "/PageMasterRecords");
8375
8815
  } catch (err) {
8376
- navigateHandler(store2, false);
8816
+ navigateHandler(store2, false, void 0, err.message);
8377
8817
  }
8818
+ } else {
8819
+ navigateHandler(store2, false);
8378
8820
  }
8379
8821
  }
8380
- const navigateHandler = (store2, isSubmitted, pageName) => {
8822
+ const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
8381
8823
  if (isSubmitted) {
8382
8824
  sessionStorage.removeItem("pageFormdata");
8383
8825
  store2.navigate(pageName || -1);
@@ -8389,7 +8831,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
8389
8831
  store2.setValidation("ValidateAndShow");
8390
8832
  store2.setNotify({
8391
8833
  Fail: true,
8392
- FailMessage: "Errors on Page"
8834
+ FailMessage: errorMessage || "Errors on Page"
8393
8835
  });
8394
8836
  }
8395
8837
  };
@@ -8414,34 +8856,46 @@ function okHandler(store2) {
8414
8856
  const sectionLabels = {
8415
8857
  Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8416
8858
  MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8417
- Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8418
- LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8419
- WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8859
+ Table: ["Core", "Components", "Properties", "Events", "Style"],
8860
+ LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8861
+ WrapperSection: ["Core", "Components", "Properties", "Style"],
8862
+ HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8420
8863
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8421
- SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8864
+ SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8422
8865
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8423
8866
  UploadFile: ["Core", "Events", "Style", "Validation"],
8424
8867
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8425
8868
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8426
- Box: ["Core", "Events", "Style", "Validation"],
8869
+ Box: ["Core", "Properties", "Events", "Style", "Validation"],
8427
8870
  Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8428
- ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8429
- RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
8871
+ ProgressBarCard: ["Core", "Properties", "Events", "Style"],
8872
+ ProgressBar: ["Core", "Properties", "Events", "Style"],
8873
+ RankCard: ["Core", "Properties", "Events", "Style"],
8874
+ MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8430
8875
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8431
- Timer: ["Core", "Events", "Style", "Validation"],
8432
- Rank: ["Core", "Events", "Style", "Validation"],
8876
+ Timer: ["Core", "Events", "Style"],
8877
+ Rank: ["Core", "Events", "Style"],
8433
8878
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8434
- Array: ["Core", "Components", "Properties", "Validation"],
8879
+ ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8880
+ Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8435
8881
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8436
8882
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8437
8883
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8438
- PopUp: ["Core", "Components", "Properties", "Style"],
8884
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
8885
+ PopOver: ["Core", "Components", "Properties", "Style"],
8886
+ PdfViewer: ["Core", "Properties", "Style"],
8439
8887
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8440
8888
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8441
8889
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8442
8890
  TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8443
8891
  ColumnGroup: ["Core", "Components"],
8444
- Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8892
+ Thought: ["Core", "Properties", "Events", "Style"],
8893
+ Date: ["Core", "Properties", "Events", "Style", "Validation"],
8894
+ DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
8895
+ Image: ["Core", "Properties", "Events", "Style"],
8896
+ FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
8897
+ Camera: ["Core", "Properties", "Events", "Style", "Validation"],
8898
+ OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
8445
8899
  };
8446
8900
  function refreshPage(type, store2) {
8447
8901
  var _a, _b;
@@ -8465,7 +8919,7 @@ function refreshPage(type, store2) {
8465
8919
  const lastDotIndex = path.lastIndexOf(".");
8466
8920
  const parentPath = path.slice(0, lastDotIndex);
8467
8921
  const parentObj = _.get(currentConfig, parentPath);
8468
- if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8922
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
8469
8923
  UiSchema.elements[0].elements[0].elements[4] = {
8470
8924
  type: "Control",
8471
8925
  scope: "#/properties/columnFormat",
@@ -8544,6 +8998,44 @@ function refreshPage(type, store2) {
8544
8998
  }
8545
8999
  }
8546
9000
  };
9001
+ UiSchema.elements[0].elements[0].elements[10] = {
9002
+ type: "Control",
9003
+ scope: "#/properties/dateFormat",
9004
+ options: {
9005
+ widget: "SelectInputField"
9006
+ },
9007
+ config: {
9008
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
9009
+ main: {
9010
+ label: "Date Time Format"
9011
+ }
9012
+ }
9013
+ };
9014
+ UiSchema.elements[0].elements[0].elements[11] = {
9015
+ type: "Control",
9016
+ scope: "#/properties/emptyBox",
9017
+ options: {
9018
+ widget: "EmptyBox"
9019
+ },
9020
+ config: {
9021
+ layout: { xs: 0, sm: 0, md: 0, lg: 6 }
9022
+ }
9023
+ };
9024
+ }
9025
+ if ((parentObj == null ? void 0 : parentObj.type) === "LeaderBoard") {
9026
+ UiSchema.elements[0].elements[0].elements[4] = {
9027
+ type: "Control",
9028
+ scope: "#/properties/columnFormat",
9029
+ options: {
9030
+ widget: "SelectInputField"
9031
+ },
9032
+ config: {
9033
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
9034
+ main: {
9035
+ label: "Column Format"
9036
+ }
9037
+ }
9038
+ };
8547
9039
  }
8548
9040
  if (sessionStorage.getItem("copiedConfig")) {
8549
9041
  this.ElementPathSetter(UiSchema);
@@ -8606,6 +9098,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8606
9098
  },
8607
9099
  editComponents: function() {
8608
9100
  var _a, _b, _c;
9101
+ if (validateAndShowErrors(store2))
9102
+ return;
8609
9103
  const rowId = dynamicData2.path.split(".")[1];
8610
9104
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8611
9105
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
@@ -8647,6 +9141,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8647
9141
  },
8648
9142
  widgetAddClickHandler: function() {
8649
9143
  var _a;
9144
+ if (validateAndShowErrors(store2))
9145
+ return;
8650
9146
  if (!Array.isArray(store2.formData.elements)) {
8651
9147
  store2.formData.elements = [];
8652
9148
  }
@@ -8659,6 +9155,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8659
9155
  },
8660
9156
  eventEditHandler: function() {
8661
9157
  var _a, _b;
9158
+ if (validateAndShowErrors(store2))
9159
+ return;
8662
9160
  const rowId = dynamicData2.path.split(".")[1];
8663
9161
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8664
9162
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
@@ -8668,6 +9166,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8668
9166
  },
8669
9167
  eventAddHandler: function() {
8670
9168
  var _a, _b;
9169
+ if (validateAndShowErrors(store2))
9170
+ return;
8671
9171
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8672
9172
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8673
9173
  if (!Array.isArray(store2.formData.events)) {
@@ -8819,7 +9319,7 @@ var pageMaster = (funcParams) => {
8819
9319
  return formData;
8820
9320
  }
8821
9321
  saveFormdataInSessionStorage(config2);
8822
- return config2;
9322
+ return { ...config2, type: "page" };
8823
9323
  },
8824
9324
  getUiSchema: function() {
8825
9325
  const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
@@ -8841,6 +9341,8 @@ var pageMaster = (funcParams) => {
8841
9341
  },
8842
9342
  onAddClickHandler: function() {
8843
9343
  var _a;
9344
+ if (validateAndShowErrors(store2))
9345
+ return;
8844
9346
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8845
9347
  if (!Array.isArray(store2.formData.elements)) {
8846
9348
  store2.formData.elements = [];
@@ -8864,6 +9366,8 @@ var pageMaster = (funcParams) => {
8864
9366
  },
8865
9367
  eventAddHandler: function() {
8866
9368
  var _a;
9369
+ if (validateAndShowErrors(store2))
9370
+ return;
8867
9371
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8868
9372
  if (!Array.isArray(store2.formData.events)) {
8869
9373
  store2.formData.events = [];
@@ -8874,6 +9378,8 @@ var pageMaster = (funcParams) => {
8874
9378
  },
8875
9379
  editEvent: function() {
8876
9380
  var _a;
9381
+ if (validateAndShowErrors(store2))
9382
+ return;
8877
9383
  const rowId = dynamicData2.path.split(".")[1];
8878
9384
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8879
9385
  saveFormdataInSessionStorage(store2.ctx.core.data);
@@ -8954,11 +9460,16 @@ const EventSchema = {
8954
9460
  { title: "Start", const: "onStart" },
8955
9461
  { title: "Cell Render", const: "onCellRenderer" },
8956
9462
  { title: "Upload", const: "onUpload" },
9463
+ { title: "FileDelete", const: "onFileDelete" },
9464
+ { title: "Download", const: "onDownload" },
8957
9465
  { title: "Back", const: "onBack" },
8958
9466
  { title: "Next", const: "onNext" },
8959
9467
  { title: "Row Movement", const: "onRowMovement" },
8960
9468
  { title: "Download", const: "onDownload" },
8961
- { title: "Fail", const: "Fail" }
9469
+ { title: "Fail", const: "Fail" },
9470
+ { title: "onClose", const: "onClose" },
9471
+ { title: "Key Down", const: "onKeyDown" },
9472
+ { title: "Set Style", const: "setStyle" }
8962
9473
  ]
8963
9474
  },
8964
9475
  Handler: {
@@ -8975,7 +9486,7 @@ const EventSchema = {
8975
9486
  oneOf: [
8976
9487
  { title: "RankProvider", const: "RankProvider" },
8977
9488
  { title: "Download File", const: "downloadFile" },
8978
- { title: "Download", const: "download" }
9489
+ { title: "downloadFileFromUrl", const: "downloadFileFromUrl" }
8979
9490
  ]
8980
9491
  },
8981
9492
  body: {
@@ -9134,93 +9645,70 @@ const EventUiSchema = (theme) => {
9134
9645
  disableAction: true,
9135
9646
  disableSelection: true,
9136
9647
  enableDrag: true
9137
- }
9138
- },
9139
- elements: [
9140
- {
9141
- accessorKey: "eventType",
9142
- header: "Event's Type",
9143
- size: 300,
9144
- type: "string"
9145
- },
9146
- {
9147
- accessorKey: "Handler",
9148
- header: "Handler",
9149
- size: 200,
9150
- type: "string"
9151
9648
  },
9152
- {
9153
- accessorKey: "Edit_Approve_Records",
9154
- header: "Edit",
9155
- type: "action",
9156
- size: 150,
9157
- widget: {
9649
+ action: [
9650
+ {
9158
9651
  type: "Control",
9159
9652
  scope: "#/properties/Edit_Records",
9160
9653
  options: {
9161
- widget: "IconButton"
9654
+ widget: "Button"
9162
9655
  },
9163
9656
  config: {
9164
9657
  main: {
9165
9658
  size: "small",
9166
- icon: "TableEditIcon",
9659
+ startIcon: "EditIcon",
9167
9660
  tooltipMessage: "Edit This Record",
9168
- onClick: "editEvent"
9169
- },
9170
- style: {
9171
- fill: theme.palette.primary.main,
9172
- "& :hover": {
9173
- fill: theme.palette.primary.dark
9174
- }
9661
+ onClick: "editEvent",
9662
+ name: "Edit"
9175
9663
  }
9176
9664
  }
9177
- }
9178
- },
9179
- {
9180
- accessorKey: "Reject_Records",
9181
- header: "Delete",
9182
- type: "action",
9183
- size: 150,
9184
- widget: {
9665
+ },
9666
+ {
9185
9667
  type: "Control",
9186
9668
  scope: "#/properties/RejectButton",
9187
9669
  options: {
9188
- widget: "IconButton"
9670
+ widget: "Button"
9189
9671
  },
9190
9672
  config: {
9191
9673
  main: {
9192
- icon: "Bin",
9674
+ startIcon: "Bin",
9193
9675
  tooltipMessage: "Reject This Record",
9194
- onClick: "deletePopUpEvent"
9195
- },
9196
- style: {
9197
- fill: theme.palette.primary.main,
9198
- "& :hover": {
9199
- fill: theme.palette.primary.dark
9200
- }
9676
+ onClick: "deletePopUpEvent",
9677
+ name: "Delete",
9678
+ size: "small"
9201
9679
  }
9202
9680
  }
9203
- }
9204
- },
9205
- {
9206
- header: "Copy",
9207
- field: "Copy_Event",
9208
- type: "action",
9209
- size: 150,
9210
- widget: {
9681
+ },
9682
+ {
9211
9683
  type: "Control",
9212
9684
  scope: "#/properties/Copy_Event",
9213
9685
  options: {
9214
- widget: "IconButton"
9686
+ widget: "Button"
9215
9687
  },
9216
9688
  config: {
9217
9689
  main: {
9218
- icon: "FileCopyIcon",
9690
+ startIcon: "FileCopyIcon",
9219
9691
  onClick: "copyPasteElement",
9220
- styleDefault: true
9692
+ styleDefault: false,
9693
+ name: "Copy",
9694
+ size: "small"
9221
9695
  }
9222
9696
  }
9223
9697
  }
9698
+ ]
9699
+ },
9700
+ elements: [
9701
+ {
9702
+ accessorKey: "eventType",
9703
+ header: "Event's Type",
9704
+ size: 300,
9705
+ type: "string"
9706
+ },
9707
+ {
9708
+ accessorKey: "Handler",
9709
+ header: "Handler",
9710
+ size: 200,
9711
+ type: "string"
9224
9712
  }
9225
9713
  ]
9226
9714
  }
@@ -9873,6 +10361,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9873
10361
  },
9874
10362
  addEvent: function() {
9875
10363
  var _a, _b, _c;
10364
+ if (validateAndShowErrors(store2))
10365
+ return;
9876
10366
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9877
10367
  if (!Array.isArray(store2.formData.events)) {
9878
10368
  store2.formData.events = [];
@@ -9885,6 +10375,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9885
10375
  },
9886
10376
  editEvent: function() {
9887
10377
  var _a;
10378
+ if (validateAndShowErrors(store2))
10379
+ return;
9888
10380
  const rowId = dynamicData2.path.split(".")[1];
9889
10381
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9890
10382
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
@@ -9935,22 +10427,33 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9935
10427
  }
9936
10428
  };
9937
10429
  };
9938
- const downloadFile$1 = (obj) => {
9939
- const typeArr = obj.name.split(".");
9940
- const data = obj.data;
9941
- const finalData = window.atob(data);
9942
- let file;
9943
- file = new File([finalData], typeArr[typeArr.length - 1]);
9944
- const url = URL.createObjectURL(file);
9945
- const link = document.createElement("a");
9946
- link.href = typeArr[typeArr.length - 1] === "pdf" ? "data:application/octet-stream;base64," + data : url;
9947
- link.download = `${obj.name}`;
9948
- document.body.appendChild(link);
9949
- link.click();
10430
+ function downloadFile$1({ data, name }) {
10431
+ var _a;
10432
+ const binary = window.atob(data);
10433
+ const bytes = new Uint8Array(binary.length);
10434
+ for (let i = 0; i < binary.length; i++) {
10435
+ bytes[i] = binary.charCodeAt(i);
10436
+ }
10437
+ const extension = (_a = name.split(".").pop()) == null ? void 0 : _a.toLowerCase();
10438
+ const mimeMap = {
10439
+ pdf: "application/pdf",
10440
+ png: "image/png",
10441
+ jpg: "image/jpeg",
10442
+ jpeg: "image/jpeg",
10443
+ xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
10444
+ csv: "text/csv"
10445
+ };
10446
+ const blob = new Blob([bytes], {
10447
+ type: mimeMap[extension] || "application/octet-stream"
10448
+ });
10449
+ const url = URL.createObjectURL(blob);
10450
+ const a = document.createElement("a");
10451
+ a.href = url;
10452
+ a.download = name;
10453
+ a.click();
9950
10454
  URL.revokeObjectURL(url);
9951
- document.body.removeChild(link);
9952
- };
9953
- const doDownload = (response, service2) => {
10455
+ }
10456
+ const downloadFileFromUrl = (response, service2) => {
9954
10457
  let url = `${service2.defaults.baseURL}/${response.path}`;
9955
10458
  if (response == null ? void 0 : response.params) {
9956
10459
  const keysArray = Object.keys(response == null ? void 0 : response.params);
@@ -10029,7 +10532,6 @@ function executeEventsHandler(params2) {
10029
10532
  params2.componentName,
10030
10533
  params2.config,
10031
10534
  params2.store,
10032
- params2.service,
10033
10535
  params2.formDataHolder
10034
10536
  );
10035
10537
  } else if (params2.config.Handler === "onBackHandler") {
@@ -10101,7 +10603,7 @@ function executeCustomHandler(params) {
10101
10603
  return response;
10102
10604
  }
10103
10605
  }
10104
- function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10606
+ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, formDataHolder) {
10105
10607
  var _a, _b, _c;
10106
10608
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10107
10609
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
@@ -10139,29 +10641,23 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
10139
10641
  });
10140
10642
  }
10141
10643
  } else if (eventConfig.type === "page") {
10142
- if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
10644
+ if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data) && lodash.exports.isObject(handlerResponse.data))) {
10143
10645
  store2.newData = {
10144
10646
  ...store2.newData,
10145
10647
  ...handlerResponse == null ? void 0 : handlerResponse.data
10146
10648
  };
10147
- store2.setFormdata((pre) => {
10148
- return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
10649
+ Object.keys(handlerResponse.data).forEach((e) => {
10650
+ formDataHolder[e] = handlerResponse.data[e];
10149
10651
  });
10150
10652
  }
10151
10653
  } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10152
10654
  if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10153
10655
  formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10154
10656
  formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10155
- store2.setFormdata((pre) => {
10156
- return { ...pre, ...formDataHolder };
10157
- });
10158
10657
  }
10159
10658
  } else {
10160
- if (handlerResponse) {
10659
+ if (handlerResponse == null ? void 0 : handlerResponse.data) {
10161
10660
  formDataHolder[componentName] = handlerResponse.data;
10162
- store2.setFormdata((pre) => {
10163
- return { ...pre, ...formDataHolder };
10164
- });
10165
10661
  }
10166
10662
  }
10167
10663
  }
@@ -10299,16 +10795,16 @@ var service = (funcParams) => {
10299
10795
  dynamicData: funcParams.dynamicData,
10300
10796
  userValue: funcParams.userValue,
10301
10797
  service: funcParams.service,
10302
- serviceHolder: { downloadFile: downloadFile$1, download: doDownload, ...funcParams.functionsProvider },
10798
+ serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, ...funcParams.functionsProvider },
10303
10799
  eventGroups,
10304
10800
  functionsProvider: funcParams.functionsProvider,
10305
10801
  formDataHolder
10306
10802
  };
10307
10803
  return {
10308
10804
  setPage: async function() {
10309
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10805
+ var _a, _b, _c;
10310
10806
  funcParams.store.setAdditionalErrors([]);
10311
- funcParams.store.setFormdata({});
10807
+ funcParams.store.setFormdata((funcParams == null ? void 0 : funcParams.initFormData()) || {});
10312
10808
  funcParams.store.setSchema({ type: "object", properties: {} });
10313
10809
  funcParams.store.newData = {};
10314
10810
  eventGroups = {};
@@ -10316,116 +10812,11 @@ var service = (funcParams) => {
10316
10812
  const config2 = pageData == null ? void 0 : pageData.config;
10317
10813
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10318
10814
  const event2 = new CustomEvent("pageNameChanged", {
10319
- detail: { pageName: config2.label }
10815
+ detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10320
10816
  });
10321
10817
  window.dispatchEvent(event2);
10322
- const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
10323
- uiSchema.elements.push(
10324
- {
10325
- type: "HorizontalLayout",
10326
- config: {
10327
- main: {
10328
- direction: "row"
10329
- },
10330
- style: {
10331
- flexDirection: "row",
10332
- position: "absolute",
10333
- bottom: 0,
10334
- height: "fit-content",
10335
- overflow: "hidden",
10336
- zIndex: 1e3,
10337
- width: "inherit"
10338
- }
10339
- },
10340
- elements: [
10341
- {
10342
- type: "Control",
10343
- scope: "#/properties/FooterText",
10344
- options: {
10345
- widget: "Box"
10346
- },
10347
- config: {
10348
- main: {
10349
- heading: "Copywriter@ACT21.IO"
10350
- },
10351
- style: {
10352
- color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
10353
- fontSize: "11px",
10354
- textAlign: "center",
10355
- lineHeight: 2,
10356
- width: "fit-content",
10357
- left: "50%",
10358
- position: "relative",
10359
- margin: 0,
10360
- flexGrow: 1,
10361
- height: 0,
10362
- transform: "translate(-50%, 0%)"
10363
- }
10364
- }
10365
- },
10366
- {
10367
- type: "Control",
10368
- scope: "#/properties/FooterBackIcon",
10369
- options: {
10370
- widget: "Box"
10371
- },
10372
- config: {
10373
- main: {
10374
- iconName: "PrevIcon",
10375
- onClick: "backHandler",
10376
- width: "fit-content"
10377
- },
10378
- style: {
10379
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
10380
- width: 20,
10381
- height: 0,
10382
- top: 0,
10383
- right: { xs: "12px", sm: "84px" },
10384
- position: "absolute",
10385
- fontSize: "12px",
10386
- cursor: "pointer",
10387
- ":hover": {
10388
- fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
10389
- },
10390
- marginRight: "20px"
10391
- }
10392
- }
10393
- },
10394
- {
10395
- type: "Control",
10396
- scope: "#/properties/FooterBackHandlerText",
10397
- options: {
10398
- widget: "Box"
10399
- },
10400
- config: {
10401
- main: {
10402
- heading: "Previous Page",
10403
- onClick: "backHandler"
10404
- },
10405
- style: {
10406
- display: { xs: "none", sm: "flex" },
10407
- textAlign: "left",
10408
- lineHeight: 1,
10409
- height: 0,
10410
- width: "fit-content",
10411
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
10412
- fontSize: "12px",
10413
- cursor: "pointer",
10414
- marginLeft: "2px",
10415
- top: 3,
10416
- right: "12px",
10417
- position: "absolute",
10418
- ":hover": {
10419
- color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
10420
- },
10421
- marginRight: "4px"
10422
- }
10423
- }
10424
- }
10425
- ]
10426
- }
10427
- );
10428
- const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
10818
+ (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
10819
+ const schema2 = (_c = pageData == null ? void 0 : pageData.schema) != null ? _c : { type: "object", properties: {} };
10429
10820
  eventGroups = extractEvents(config2);
10430
10821
  executeEventsParameters = {
10431
10822
  config: {},
@@ -10439,7 +10830,16 @@ var service = (funcParams) => {
10439
10830
  eventGroups,
10440
10831
  formDataHolder
10441
10832
  };
10442
- await executeRefreshHandler({
10833
+ funcParams.store.setSchema(
10834
+ (pre) => {
10835
+ return {
10836
+ ...schema2,
10837
+ ...pre,
10838
+ properties: { ...schema2.properties, ...pre.properties }
10839
+ };
10840
+ }
10841
+ );
10842
+ executeRefreshHandler({
10443
10843
  config: {},
10444
10844
  componentName: "",
10445
10845
  store: funcParams.store,
@@ -10448,40 +10848,64 @@ var service = (funcParams) => {
10448
10848
  service: funcParams.service,
10449
10849
  serviceHolder: this,
10450
10850
  eventGroups,
10451
- formDataHolder: {}
10851
+ formDataHolder
10852
+ }).then((e) => {
10853
+ funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10854
+ uiSchema.elements.push(notifyUiSchema);
10855
+ funcParams.store.setUiSchema(uiSchema);
10452
10856
  });
10453
- funcParams.store.setSchema(
10454
- (pre) => {
10455
- return {
10456
- ...schema2,
10457
- ...pre,
10458
- properties: { ...schema2.properties, ...pre.properties }
10459
- };
10857
+ },
10858
+ getStyle: () => {
10859
+ var _a, _b, _c, _d;
10860
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10861
+ if (cloneEventGroup.setStyle) {
10862
+ let finalResponse = {};
10863
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
10864
+ if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
10865
+ for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10866
+ finalResponse = executeEvents({
10867
+ ...executeEventsParameters,
10868
+ config: eventConfig,
10869
+ componentName: path
10870
+ });
10871
+ }
10872
+ return finalResponse;
10460
10873
  }
10461
- );
10462
- uiSchema.elements.push(notifyUiSchema);
10463
- funcParams.store.setUiSchema(uiSchema);
10874
+ }
10875
+ return {};
10464
10876
  },
10465
10877
  onCellRenderer: (cellParams) => {
10466
- var _a, _b, _c, _d;
10467
- if (eventGroups.onCellRenderer) {
10878
+ var _a, _b, _c, _d, _e;
10879
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10880
+ if (cloneEventGroup.onCellRenderer) {
10468
10881
  let finalResponse = {};
10469
10882
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_c = (_b = funcParams == null ? void 0 : funcParams.dynamicData) == null ? void 0 : _b.path) == null ? void 0 : _c.split(".")[0]);
10470
- for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10471
- executeEventsParameters.store.functionParameters = cellParams;
10472
- finalResponse = executeEvents({
10473
- ...executeEventsParameters,
10474
- config: eventConfig,
10475
- componentName: path
10476
- });
10883
+ if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _d[path]) {
10884
+ for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _e[path]) {
10885
+ executeEventsParameters.store.functionParameters = cellParams;
10886
+ finalResponse = executeEvents({
10887
+ ...executeEventsParameters,
10888
+ config: eventConfig,
10889
+ componentName: path
10890
+ });
10891
+ }
10892
+ return finalResponse;
10477
10893
  }
10478
- return finalResponse;
10479
10894
  }
10480
10895
  return {};
10481
10896
  },
10482
10897
  onClick: function() {
10483
10898
  this.callHandler("onClick");
10484
10899
  },
10900
+ onKeyDown: function() {
10901
+ this.callHandler("onKeyDown");
10902
+ },
10903
+ onFileDelete: async function() {
10904
+ this.callHandler("onFileDelete");
10905
+ },
10906
+ onClose: function() {
10907
+ this.callHandler("onClose");
10908
+ },
10485
10909
  onMount: function() {
10486
10910
  this.callHandler("onMount");
10487
10911
  },
@@ -10505,13 +10929,14 @@ var service = (funcParams) => {
10505
10929
  return response == null ? void 0 : response.data;
10506
10930
  },
10507
10931
  onPaginationChange: async function(paginationValues) {
10508
- var _a;
10932
+ var _a, _b;
10509
10933
  const apiBody = [
10510
10934
  { key: "size", value: paginationValues.pagination.pageSize },
10511
10935
  { key: "pageIndex", value: paginationValues.pagination.pageIndex },
10512
10936
  { key: "sorting", value: paginationValues.sorting || [] },
10513
10937
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10514
- { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
10938
+ { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
10939
+ { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
10515
10940
  ];
10516
10941
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10517
10942
  return response == null ? void 0 : response.data;
@@ -10526,22 +10951,34 @@ var service = (funcParams) => {
10526
10951
  return response == null ? void 0 : response.data;
10527
10952
  }
10528
10953
  },
10529
- onChange: async function() {
10530
- if (eventGroups.onChange) {
10531
- const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10532
- Promise.all(ChangeEventsKeysArray.map(async (componentName) => {
10533
- var _a, _b;
10534
- if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) !== funcParams.store.newData[componentName] && ((_b = funcParams.store) == null ? void 0 : _b.newData[componentName]) !== void 0) {
10535
- for (const eventConfig of eventGroups.onChange[componentName]) {
10536
- await executeEvents({
10537
- ...executeEventsParameters,
10538
- config: eventConfig,
10539
- componentName
10540
- });
10954
+ onChange: function() {
10955
+ if (!eventGroups.onChange)
10956
+ return;
10957
+ const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10958
+ const promises = ChangeEventsKeysArray.flatMap((componentName) => {
10959
+ var _a;
10960
+ if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
10961
+ return [];
10962
+ }
10963
+ return eventGroups.onChange[componentName].map(
10964
+ (eventConfig) => Promise.resolve(
10965
+ executeEvents({
10966
+ ...executeEventsParameters,
10967
+ config: eventConfig,
10968
+ componentName,
10969
+ formDataHolder
10970
+ })
10971
+ ).then(() => {
10972
+ if (!lodash.exports.isEmpty(formDataHolder)) {
10973
+ funcParams.store.setFormdata((pre) => ({
10974
+ ...pre,
10975
+ ...formDataHolder
10976
+ }));
10541
10977
  }
10542
- }
10543
- }));
10544
- }
10978
+ })
10979
+ );
10980
+ });
10981
+ Promise.allSettled(promises);
10545
10982
  },
10546
10983
  callExecuteEvents: async function(paramValue, apiBody, eventType) {
10547
10984
  var _a, _b;
@@ -10571,7 +11008,7 @@ var service = (funcParams) => {
10571
11008
  onBack: async function(functionParameters) {
10572
11009
  var _a, _b;
10573
11010
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10574
- await this.callHandler("onBack", functionParameters);
11011
+ this.callHandler("onBack", functionParameters);
10575
11012
  if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
10576
11013
  functionParameters == null ? void 0 : functionParameters.handleBack();
10577
11014
  }
@@ -10579,7 +11016,7 @@ var service = (funcParams) => {
10579
11016
  onNext: async function(functionParameters) {
10580
11017
  var _a, _b;
10581
11018
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10582
- await this.callHandler("onNext", functionParameters);
11019
+ this.callHandler("onNext", functionParameters);
10583
11020
  if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
10584
11021
  functionParameters == null ? void 0 : functionParameters.handleNext();
10585
11022
  }
@@ -10587,27 +11024,38 @@ var service = (funcParams) => {
10587
11024
  onReset: async function(functionParameters) {
10588
11025
  var _a, _b;
10589
11026
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10590
- await this.callHandler("onReset", functionParameters);
11027
+ this.callHandler("onReset", functionParameters);
10591
11028
  if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
10592
11029
  functionParameters == null ? void 0 : functionParameters.handleReset();
10593
11030
  }
10594
11031
  },
10595
- callHandler: async function(eventType, functionParameters) {
10596
- var _a, _b, _c;
10597
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10598
- if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
10599
- Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
10600
- executeEventsParameters.store.functionParameters = functionParameters;
11032
+ callHandler: function(eventType, functionParameters) {
11033
+ var _a, _b;
11034
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".").pop();
11035
+ if (!((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]))
11036
+ return;
11037
+ const promises = eventGroups[eventType][path].map((eventConfig) => {
11038
+ executeEventsParameters.store.functionParameters = functionParameters;
11039
+ return Promise.resolve(
10601
11040
  executeEvents({
10602
11041
  ...executeEventsParameters,
10603
11042
  config: eventConfig,
10604
- componentName: path
10605
- });
10606
- }));
10607
- }
11043
+ componentName: path,
11044
+ formDataHolder
11045
+ })
11046
+ ).then(() => {
11047
+ if (!lodash.exports.isEmpty(formDataHolder)) {
11048
+ funcParams.store.setFormdata((pre) => ({
11049
+ ...pre,
11050
+ ...formDataHolder
11051
+ }));
11052
+ }
11053
+ });
11054
+ });
11055
+ Promise.allSettled(promises);
10608
11056
  },
10609
11057
  downloadFile: downloadFile$1,
10610
- download: doDownload,
11058
+ downloadFileFromUrl,
10611
11059
  ...funcParams.functionsProvider
10612
11060
  };
10613
11061
  };
@@ -10656,8 +11104,11 @@ const buildLeaderBoard = (config2) => {
10656
11104
  if (config2.scoreKey) {
10657
11105
  LeaderBoard.config.main.scoreKey = config2.scoreKey;
10658
11106
  }
11107
+ if (config2.isScoreAmount) {
11108
+ LeaderBoard.config.main.isScoreAmount = config2.isScoreAmount === "YES" ? true : false;
11109
+ }
10659
11110
  if (config2.layout) {
10660
- LeaderBoard.config.layout = createLayoutFormat(config2.layout);
11111
+ LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
10661
11112
  }
10662
11113
  if (config2.style) {
10663
11114
  LeaderBoard.config.style = JSON.parse(config2.style);
@@ -10706,6 +11157,15 @@ const buildProgressBar = (config2, componentScope2) => {
10706
11157
  ProgressBar.config.layout = config2.layout;
10707
11158
  }
10708
11159
  ProgressBar.config.main.heading = config2.label;
11160
+ if (config2.variant) {
11161
+ ProgressBar.config.main.variant = config2.variant;
11162
+ }
11163
+ if (config2.pieArcColors) {
11164
+ ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
11165
+ }
11166
+ if (config2.size) {
11167
+ ProgressBar.config.main.size = Number(config2.size);
11168
+ }
10709
11169
  if (config2.bottomLabel_3) {
10710
11170
  ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
10711
11171
  }
@@ -10732,7 +11192,7 @@ const BarGraph = {
10732
11192
  type: "BarGraph",
10733
11193
  legendLabels: null
10734
11194
  },
10735
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11195
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10736
11196
  }
10737
11197
  };
10738
11198
  const PieGraph = {
@@ -10747,7 +11207,7 @@ const PieGraph = {
10747
11207
  type: "PieGraph",
10748
11208
  legendLabels: null
10749
11209
  },
10750
- style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
11210
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10751
11211
  }
10752
11212
  };
10753
11213
  const LineGraph = {
@@ -10762,7 +11222,7 @@ const LineGraph = {
10762
11222
  type: "LineGraph",
10763
11223
  legendLabels: null
10764
11224
  },
10765
- style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
11225
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10766
11226
  }
10767
11227
  };
10768
11228
  const HorizontalBarGraph = {
@@ -10777,14 +11237,44 @@ const HorizontalBarGraph = {
10777
11237
  type: "HorizontalBarGraph",
10778
11238
  legendLabels: null
10779
11239
  },
10780
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11240
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11241
+ }
11242
+ };
11243
+ const AreaBarGraph = {
11244
+ type: "Control",
11245
+ scope: "#/properties/graph",
11246
+ options: {
11247
+ widget: "Graph"
11248
+ },
11249
+ config: {
11250
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11251
+ main: {
11252
+ type: "AreaGraph",
11253
+ legendLabels: null
11254
+ },
11255
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11256
+ }
11257
+ };
11258
+ const StackBarLineG = {
11259
+ type: "Control",
11260
+ scope: "#/properties/graph",
11261
+ options: {
11262
+ widget: "Graph"
11263
+ },
11264
+ config: {
11265
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11266
+ main: {
11267
+ type: "StackBarLineGraph",
11268
+ legendLabels: null
11269
+ },
11270
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10781
11271
  }
10782
11272
  };
10783
11273
  const buildHorizontalBarGraph = (config2, componentScope2) => {
10784
11274
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
10785
11275
  horizontalBarGraph.scope = componentScope2;
10786
11276
  if (config2.layout) {
10787
- horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
11277
+ horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10788
11278
  }
10789
11279
  horizontalBarGraph.config.main.type = config2.graphType;
10790
11280
  horizontalBarGraph.scope = componentScope2;
@@ -10796,10 +11286,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
10796
11286
  horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10797
11287
  }
10798
11288
  if (config2.legendLabels) {
10799
- horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11289
+ horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11290
+ }
11291
+ if (config2.legendDirection) {
11292
+ horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
10800
11293
  }
10801
11294
  if (config2.pieArcColors) {
10802
- horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11295
+ horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10803
11296
  }
10804
11297
  if (config2.xAxisValue) {
10805
11298
  horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -10818,6 +11311,9 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
10818
11311
  if (config2.leftLabel) {
10819
11312
  horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
10820
11313
  }
11314
+ if (config2.disableLeftLabel) {
11315
+ horizontalBarGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
11316
+ }
10821
11317
  return horizontalBarGraph;
10822
11318
  };
10823
11319
  var SpeedoMeter = {
@@ -10916,7 +11412,7 @@ const buildSpeedoMeter = (config2, componentScope2) => {
10916
11412
  const buildPieGraph = (config2, componentScope2) => {
10917
11413
  const pieGraph = _.cloneDeep(PieGraph);
10918
11414
  if (config2.layout) {
10919
- pieGraph.config.layout = createLayoutFormat(config2.layout);
11415
+ pieGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10920
11416
  }
10921
11417
  if (config2.height) {
10922
11418
  pieGraph.config.style.containerStyle.height = config2.height;
@@ -10924,16 +11420,19 @@ const buildPieGraph = (config2, componentScope2) => {
10924
11420
  if (config2.legendHide) {
10925
11421
  pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10926
11422
  }
11423
+ if (config2.legendDirection) {
11424
+ pieGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
11425
+ }
10927
11426
  pieGraph.scope = componentScope2;
10928
11427
  pieGraph.config.main.header = config2.heading;
10929
11428
  if (config2.legendLabels) {
10930
- pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11429
+ pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
10931
11430
  }
10932
11431
  if (config2.xAxisValue) {
10933
11432
  pieGraph.config.main.xAxisValue = config2.xAxisValue;
10934
11433
  }
10935
11434
  if (config2.pieArcColors) {
10936
- pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11435
+ pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10937
11436
  }
10938
11437
  return pieGraph;
10939
11438
  };
@@ -10941,22 +11440,25 @@ const buildStackbarGraph = (config2, componentScope2) => {
10941
11440
  var _a;
10942
11441
  const barGraph = _.cloneDeep(BarGraph);
10943
11442
  if (config2.layout) {
10944
- barGraph.config.layout = createLayoutFormat(config2.layout);
11443
+ barGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10945
11444
  }
10946
11445
  if (config2.legendHide) {
10947
11446
  barGraph.config.main.legendAvailable = config2.legendHide;
10948
11447
  barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10949
11448
  }
11449
+ if (config2.legendDirection) {
11450
+ barGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
11451
+ }
10950
11452
  if (config2.bottomAxisAngle) {
10951
11453
  barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10952
11454
  }
10953
11455
  barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
10954
11456
  barGraph.config.main.header = config2.heading;
10955
11457
  if (config2.legendLabels) {
10956
- barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11458
+ barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
10957
11459
  }
10958
11460
  if (config2.pieArcColors) {
10959
- barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11461
+ barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10960
11462
  }
10961
11463
  if (config2.xAxisValue) {
10962
11464
  barGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -10975,6 +11477,9 @@ const buildStackbarGraph = (config2, componentScope2) => {
10975
11477
  if (config2.leftLabel) {
10976
11478
  barGraph.config.main.leftLabel = config2.leftLabel;
10977
11479
  }
11480
+ if (config2.disableLeftLabel) {
11481
+ barGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
11482
+ }
10978
11483
  barGraph.scope = componentScope2;
10979
11484
  return barGraph;
10980
11485
  };
@@ -11019,6 +11524,10 @@ const buildTabSection = (config2, componentScope2) => {
11019
11524
  }
11020
11525
  if (config2.sectionLabels) {
11021
11526
  tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
11527
+ tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
11528
+ }
11529
+ if (config2.style) {
11530
+ tab.config.style = JSON.parse(config2.style);
11022
11531
  }
11023
11532
  tab.config.main.id = config2.name;
11024
11533
  return tab;
@@ -11026,10 +11535,13 @@ const buildTabSection = (config2, componentScope2) => {
11026
11535
  var WrapperSection = {
11027
11536
  type: "WrapperLayout",
11028
11537
  config: {
11538
+ layout: 12,
11029
11539
  main: {
11030
- rowSpacing: 3,
11031
11540
  divider: true,
11032
- label: "Default Label"
11541
+ label: "Default Label",
11542
+ rowSpacing: 2,
11543
+ columnSpacing: 2,
11544
+ spacing: 2
11033
11545
  },
11034
11546
  defaultStyle: true
11035
11547
  },
@@ -11041,6 +11553,11 @@ const buildWrapperSection = (config2, componentScope2) => {
11041
11553
  wrapper.config.main.label = config2.label;
11042
11554
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11043
11555
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11556
+ wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11557
+ wrapper.config.main.icon = config2.iconUrl;
11558
+ wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11559
+ wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11560
+ wrapper.config.main.spacing = Number(config2.spacing);
11044
11561
  if (config2.defaultStyle) {
11045
11562
  wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11046
11563
  }
@@ -11048,7 +11565,7 @@ const buildWrapperSection = (config2, componentScope2) => {
11048
11565
  wrapper.config.style = JSON.parse(config2.style);
11049
11566
  }
11050
11567
  if (config2.layout) {
11051
- wrapper.config.layout = createLayoutFormat(config2.layout);
11568
+ wrapper.config.layout = createLayoutFormat(config2.layout, config2.type);
11052
11569
  }
11053
11570
  return wrapper;
11054
11571
  };
@@ -11059,7 +11576,7 @@ var TextInputField = {
11059
11576
  widget: "InputField"
11060
11577
  },
11061
11578
  config: {
11062
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
11579
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11063
11580
  main: {
11064
11581
  label: ""
11065
11582
  },
@@ -11075,15 +11592,27 @@ const buildTextField = (config2, componentScope2) => {
11075
11592
  if (config2.multiline) {
11076
11593
  inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11077
11594
  }
11595
+ if (config2.keyName) {
11596
+ inputField.config.main.keyName = config2.keyName;
11597
+ }
11078
11598
  if (config2.InputFormatingAndMasking) {
11079
11599
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
11080
11600
  }
11081
11601
  if (config2.placeholder) {
11082
11602
  inputField.config.main.placeholder = config2.placeholder;
11083
11603
  }
11604
+ if (config2.variant) {
11605
+ inputField.config.main.variant = config2.variant;
11606
+ }
11084
11607
  if (config2.layout) {
11085
11608
  inputField.config.layout = createLayoutFormat(config2.layout);
11086
11609
  }
11610
+ if (config2.toolTip) {
11611
+ inputField.config.main.toolTip = config2.toolTip;
11612
+ }
11613
+ if (config2.toolTipPosition) {
11614
+ inputField.config.main.toolTipPosition = config2.toolTipPosition;
11615
+ }
11087
11616
  inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11088
11617
  inputField.scope = componentScope2;
11089
11618
  return inputField;
@@ -11095,13 +11624,14 @@ var SelectInputField = {
11095
11624
  widget: "SelectInputField"
11096
11625
  },
11097
11626
  config: {
11098
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
11627
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11099
11628
  main: {
11100
11629
  label: "",
11101
11630
  type: "text",
11102
11631
  freeSole: false
11103
- }
11104
- }
11632
+ },
11633
+ style: {}
11634
+ }
11105
11635
  };
11106
11636
  const buildSelect = (config2, componentScope2) => {
11107
11637
  const selectInputField = _.cloneDeep(SelectInputField);
@@ -11115,9 +11645,21 @@ const buildSelect = (config2, componentScope2) => {
11115
11645
  if (config2.lazyLoading) {
11116
11646
  selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11117
11647
  }
11648
+ if (config2.variant) {
11649
+ selectInputField.config.main.variant = config2.variant;
11650
+ }
11118
11651
  if (config2.layout) {
11119
11652
  selectInputField.config.layout = createLayoutFormat(config2.layout);
11120
11653
  }
11654
+ if (config2.toolTip) {
11655
+ selectInputField.config.main.toolTip = config2.toolTip;
11656
+ }
11657
+ if (config2.toolTipPosition) {
11658
+ selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
11659
+ }
11660
+ if (config2.style) {
11661
+ selectInputField.config.style = JSON.parse(config2.style);
11662
+ }
11121
11663
  selectInputField.scope = componentScope2;
11122
11664
  return selectInputField;
11123
11665
  };
@@ -11128,7 +11670,7 @@ var Button = {
11128
11670
  widget: "Button"
11129
11671
  },
11130
11672
  config: {
11131
- layout: 3,
11673
+ layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
11132
11674
  main: {
11133
11675
  name: "Compare",
11134
11676
  variant: "contained",
@@ -11149,7 +11691,7 @@ const buildButton = (config2, componentScope2) => {
11149
11691
  config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
11150
11692
  }
11151
11693
  if (config2.layout) {
11152
- button.config.layout = createLayoutFormat(config2.layout);
11694
+ button.config.layout = createLayoutFormat(config2.layout, config2.type);
11153
11695
  }
11154
11696
  if (config2.tooltipMessage) {
11155
11697
  button.config.main.tooltipMessage = config2.tooltipMessage;
@@ -11184,6 +11726,7 @@ var Table = {
11184
11726
  },
11185
11727
  elements: [],
11186
11728
  config: {
11729
+ layout: 12,
11187
11730
  main: {
11188
11731
  onMount: "onMount",
11189
11732
  enableExpandAll: true,
@@ -11206,6 +11749,9 @@ const buildTable = (config2, componentScope2) => {
11206
11749
  if (config2.lazyLoading) {
11207
11750
  table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11208
11751
  }
11752
+ if (config2.defaultColumnSize) {
11753
+ table.config.main.defaultColumnSize = config2.defaultColumnSize;
11754
+ }
11209
11755
  if (config2.enableRowMovement) {
11210
11756
  table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
11211
11757
  }
@@ -11266,6 +11812,15 @@ const buildTable = (config2, componentScope2) => {
11266
11812
  if (config2.selectKey) {
11267
11813
  table.config.main.selectKey = config2.selectKey;
11268
11814
  }
11815
+ if (config2.maxPageSize) {
11816
+ table.config.main.maxPageSize = config2.maxPageSize;
11817
+ }
11818
+ if (config2.initialDensity) {
11819
+ table.config.main.initialDensity = config2.initialDensity;
11820
+ }
11821
+ if (config2.layout) {
11822
+ table.config.layout = createLayoutFormat(config2.layout);
11823
+ }
11269
11824
  return table;
11270
11825
  };
11271
11826
  const Box = {
@@ -11275,8 +11830,11 @@ const Box = {
11275
11830
  widget: "Box"
11276
11831
  },
11277
11832
  config: {
11278
- layout: 12,
11279
- main: {},
11833
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11834
+ main: {
11835
+ iconName: "",
11836
+ onClick: "onClick"
11837
+ },
11280
11838
  style: {}
11281
11839
  }
11282
11840
  };
@@ -11287,6 +11845,9 @@ const buildLabel = (config2, componentScope2) => {
11287
11845
  if (config2.layout) {
11288
11846
  box.config.layout = createLayoutFormat(config2.layout);
11289
11847
  }
11848
+ if (config2.iconName) {
11849
+ box.config.main.iconName = config2.iconName;
11850
+ }
11290
11851
  if (config2.style) {
11291
11852
  box.config.style = JSON.parse(config2.style);
11292
11853
  }
@@ -11305,7 +11866,7 @@ const uploadFile = {
11305
11866
  "style": {
11306
11867
  "backgroundColor": "none"
11307
11868
  },
11308
- layout: { xs: 6, sm: 6, md: 4, lg: 4 }
11869
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11309
11870
  },
11310
11871
  "options": {
11311
11872
  "widget": "UploadFile"
@@ -11322,7 +11883,7 @@ const downloadFile = {
11322
11883
  "style": {
11323
11884
  "backgroundColor": "none"
11324
11885
  },
11325
- layout: { xs: 12, sm: 6, md: 4, lg: 4 }
11886
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11326
11887
  },
11327
11888
  "options": {
11328
11889
  "widget": "DownloadFile"
@@ -11341,12 +11902,19 @@ const buildUploadFile = (config2, componentScope2) => {
11341
11902
  if (config2.required) {
11342
11903
  UploadFile.config.main.required = true;
11343
11904
  }
11905
+ if (config2.toolTip) {
11906
+ UploadFile.config.main.toolTip = config2.toolTip;
11907
+ }
11908
+ if (config2.toolTipPosition) {
11909
+ UploadFile.config.main.toolTipPosition = config2.toolTipPosition;
11910
+ }
11344
11911
  UploadFile.config.main.errorMessage = config2.errorMessage;
11345
11912
  return UploadFile;
11346
11913
  };
11347
11914
  const buildDownloadFile = (config2, componentScope2) => {
11348
11915
  const DownloadFile = _.cloneDeep(downloadFile);
11349
11916
  DownloadFile.scope = componentScope2;
11917
+ DownloadFile.config.main.label = config2.label;
11350
11918
  if (config2.layout) {
11351
11919
  DownloadFile.config.layout = config2.layout;
11352
11920
  }
@@ -11362,6 +11930,12 @@ const buildDownloadFile = (config2, componentScope2) => {
11362
11930
  if (config2.errorMessage) {
11363
11931
  DownloadFile.config.main.errorMessage = config2.errorMessage;
11364
11932
  }
11933
+ if (config2.toolTip) {
11934
+ DownloadFile.config.main.toolTip = config2.toolTip;
11935
+ }
11936
+ if (config2.toolTipPosition) {
11937
+ DownloadFile.config.main.toolTipPosition = config2.toolTipPosition;
11938
+ }
11365
11939
  return DownloadFile;
11366
11940
  };
11367
11941
  function Card(theme) {
@@ -11369,192 +11943,159 @@ function Card(theme) {
11369
11943
  type: "WrapperLayout",
11370
11944
  config: {
11371
11945
  main: {},
11372
- wrapperStyle: {
11373
- position: "relative",
11374
- top: "50%",
11375
- transform: "translateY(-50%)",
11376
- marginBottom: 0
11377
- },
11378
- componentsBoxStyle: {
11379
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
11380
- flexDirection: "row",
11381
- flexWrap: "nowrap",
11382
- width: "100% !important",
11383
- background: "transparent",
11384
- border: `1.5px solid ${theme.palette.primary.light}`,
11385
- borderRadius: "8px",
11386
- padding: "0px 4px",
11387
- height: "100%",
11388
- alignItems: "center",
11389
- marginLeft: "0px",
11390
- "&: hover": {
11391
- background: `${theme.palette.primary.main}`,
11392
- border: `1.5px solid black`,
11393
- "& p": {
11394
- color: "white"
11946
+ style: {
11947
+ wrapperStyle: {
11948
+ position: "relative",
11949
+ top: "50%",
11950
+ transform: "translateY(-50%)",
11951
+ marginBottom: 0,
11952
+ borderRadius: "12px",
11953
+ fontFamily: "poppins"
11954
+ },
11955
+ componentsBoxStyle: {
11956
+ boxShadow: "0 0 6px 1px rgba(149, 147, 147, 0.25)",
11957
+ flexDirection: "column",
11958
+ overflow: "hidden",
11959
+ flexWrap: "nowrap",
11960
+ width: "100% !important",
11961
+ background: "transparent",
11962
+ borderRadius: "12px",
11963
+ padding: "20px 20px 20px 14px",
11964
+ height: "100%",
11965
+ minHeight: "100px",
11966
+ position: "relative",
11967
+ marginLeft: "0px",
11968
+ "&: hover": {
11969
+ background: `${theme.palette.primary.main}`,
11970
+ color: `${theme.palette.primary.contrastText}`
11395
11971
  }
11396
11972
  }
11397
11973
  },
11398
- layout: { xs: 12, sm: 12, md: 6, lg: 6 }
11974
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 }
11399
11975
  },
11400
11976
  elements: [
11401
- {
11402
- type: "HorizontalLayout",
11403
- config: {
11404
- layout: 8
11405
- },
11406
- elements: [
11407
- {
11408
- type: "WrapperLayout",
11409
- config: {
11410
- main: {
11411
- columnSpacing: 0,
11412
- gap: 0
11413
- },
11414
- wrapperStyle: {
11415
- background: "transparent",
11416
- marginBottom: 0
11417
- },
11418
- componentsBoxStyle: {
11419
- flexDirection: "column",
11420
- flexWrap: "nowrap",
11421
- width: "100%",
11422
- height: "inherit",
11423
- background: "transparent",
11424
- borderRadius: "0px"
11425
- },
11426
- layout: 12
11427
- },
11428
- elements: [
11429
- {
11430
- type: "WrapperLayout",
11431
- config: {
11432
- main: {
11433
- columnSpacing: 0,
11434
- gap: 0
11435
- },
11436
- wrapperStyle: {
11437
- background: "transparent",
11438
- marginBottom: 0
11439
- },
11440
- componentsBoxStyle: {
11441
- flexDirection: "row",
11442
- flexWrap: "nowrap",
11443
- width: "100%",
11444
- height: "0",
11445
- background: "transparent",
11446
- borderRadius: "0px",
11447
- marginLeft: "-10px",
11448
- marginTop: "-8px",
11449
- justifyContent: "start",
11450
- position: "relative"
11451
- },
11452
- layout: 12
11453
- },
11454
- elements: [
11455
- {
11456
- type: "Control",
11457
- scope: "#/properties/programType",
11458
- config: {
11459
- main: {
11460
- heading: ""
11461
- },
11462
- style: {
11463
- color: "black",
11464
- display: "flex",
11465
- fontSize: { xs: "24px", md: "28px" },
11466
- fontWeight: "bold",
11467
- background: "inherit",
11468
- justifyContent: "flex-start",
11469
- width: "auto",
11470
- margin: "-8px",
11471
- marginLeft: "-24px",
11472
- height: 0
11473
- }
11474
- },
11475
- options: {
11476
- widget: "Box"
11477
- }
11478
- },
11479
- {
11480
- type: "Control",
11481
- scope: "#/properties/programType",
11482
- config: {
11483
- main: {
11484
- heading: "5000.00"
11485
- },
11486
- style: {
11487
- color: "black",
11488
- display: "flex",
11489
- fontSize: { xs: "24px", md: "28px" },
11490
- fontWeight: "bold",
11491
- background: "inherit",
11492
- justifyContent: "flex-start",
11493
- width: "auto",
11494
- margin: "-8px",
11495
- position: "absolute",
11496
- left: "24px"
11497
- }
11498
- },
11499
- options: {
11500
- widget: "Box"
11501
- }
11502
- }
11503
- ]
11504
- },
11505
- {
11506
- type: "Control",
11507
- scope: "#/properties/programType",
11508
- config: {
11509
- main: {
11510
- heading: "Total Earnings"
11511
- },
11512
- style: {
11513
- color: "black",
11514
- fontSize: "16px",
11515
- justifyContent: "center",
11516
- textWrap: "wrap",
11517
- background: "inherit",
11518
- width: "calc(100%+8px)",
11519
- margin: "-8px",
11520
- marginTop: { xs: "16px", md: "20px" }
11521
- },
11522
- layout: 12
11523
- },
11524
- options: {
11525
- widget: "Box"
11526
- }
11527
- }
11528
- ]
11529
- }
11530
- ]
11531
- },
11532
11977
  {
11533
11978
  type: "Control",
11534
- scope: "#/properties/programType",
11979
+ scope: "#/properties/initilCardScope",
11535
11980
  config: {
11536
11981
  main: {
11537
11982
  url: "https://www.svgrepo.com/show/500606/loading.svg"
11538
11983
  },
11539
11984
  style: {
11540
11985
  containerStyle: {
11541
- height: "100%",
11986
+ position: "absolute",
11987
+ color: "inherit",
11988
+ top: "4px",
11989
+ right: "4px",
11542
11990
  display: "flex",
11543
- justifyContent: "end"
11991
+ justifyContent: "flex-end",
11992
+ alignItems: "flex-start"
11544
11993
  },
11545
11994
  imageStyle: {
11546
- width: "unset",
11547
- fontSize: "none",
11548
- padding: "4px",
11549
- margin: "0px 0px 0px 8px",
11550
- height: "64px"
11995
+ color: "inherit",
11996
+ width: "32px",
11997
+ height: "32px",
11998
+ padding: "0px",
11999
+ margin: "0px"
11551
12000
  }
11552
- },
11553
- layout: 4
12001
+ }
11554
12002
  },
11555
12003
  options: {
11556
12004
  widget: "Image"
11557
12005
  }
12006
+ },
12007
+ {
12008
+ type: "Control",
12009
+ scope: "#/properties/initilCardScope",
12010
+ config: {
12011
+ main: {
12012
+ heading: "Total Earnings"
12013
+ },
12014
+ style: {
12015
+ color: "inherit",
12016
+ fontSize: "16px",
12017
+ fontWeight: 300,
12018
+ fontFamily: "Poppins",
12019
+ justifyContent: "flex-start",
12020
+ background: "inherit",
12021
+ position: "absolute",
12022
+ top: "8px",
12023
+ left: "12px",
12024
+ display: "flex",
12025
+ maxWidth: "200px",
12026
+ whiteSpace: "nowrap",
12027
+ overflowX: "auto",
12028
+ scrollbarWidth: "none",
12029
+ "&::-webkit-scrollbar": {
12030
+ display: "none"
12031
+ }
12032
+ }
12033
+ },
12034
+ options: {
12035
+ widget: "Box"
12036
+ }
12037
+ },
12038
+ {
12039
+ type: "Control",
12040
+ scope: "#/properties/initilCardScope",
12041
+ config: {
12042
+ main: {
12043
+ heading: "5000.00"
12044
+ },
12045
+ style: {
12046
+ color: "inherit",
12047
+ display: "flex",
12048
+ fontSize: { xs: "22px", md: "40px" },
12049
+ fontWeight: 600,
12050
+ background: "inherit",
12051
+ justifyContent: "flex-start",
12052
+ width: "100%",
12053
+ margin: "0px",
12054
+ marginBottom: "4px",
12055
+ marginTop: "8px",
12056
+ lineHeight: "1",
12057
+ maxWidth: "300px",
12058
+ whiteSpace: "nowrap",
12059
+ overflowX: "auto",
12060
+ overflowY: "hidden",
12061
+ scrollbarWidth: "none",
12062
+ "&::-webkit-scrollbar": {
12063
+ display: "none"
12064
+ }
12065
+ }
12066
+ },
12067
+ options: {
12068
+ widget: "Box"
12069
+ }
12070
+ },
12071
+ {
12072
+ type: "Control",
12073
+ scope: "#/properties/initilCardScope",
12074
+ config: {
12075
+ main: {
12076
+ heading: "Increased from last month"
12077
+ },
12078
+ style: {
12079
+ color: "inherit",
12080
+ fontSize: "12px",
12081
+ fontWeight: "400",
12082
+ justifyContent: "flex-start",
12083
+ background: "inherit",
12084
+ margin: "0px",
12085
+ paddingLeft: "2px",
12086
+ marginBottom: "8px",
12087
+ maxWidth: "200px",
12088
+ whiteSpace: "nowrap",
12089
+ overflowX: "auto",
12090
+ scrollbarWidth: "none",
12091
+ "&::-webkit-scrollbar": {
12092
+ display: "none"
12093
+ }
12094
+ }
12095
+ },
12096
+ options: {
12097
+ widget: "Box"
12098
+ }
11558
12099
  }
11559
12100
  ]
11560
12101
  };
@@ -11565,9 +12106,10 @@ const buildCard = (config, componentScope, store) => {
11565
12106
  if (config.style) {
11566
12107
  card.config.wrapperStyle = JSON.parse(config.style);
11567
12108
  }
11568
- card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
11569
- card.elements[1].scope = `#/properties/${config.name}/properties/url`;
11570
- card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
12109
+ card.elements[0].scope = `#/properties/${config.name}/properties/url`;
12110
+ card.elements[1].scope = `#/properties/${config.name}/properties/label`;
12111
+ card.elements[2].scope = `#/properties/${config.name}/properties/value`;
12112
+ card.elements[3].scope = `#/properties/${config.name}/properties/description`;
11571
12113
  if (config.layout) {
11572
12114
  card.config.layout = createLayoutFormat(config.layout);
11573
12115
  }
@@ -11576,16 +12118,56 @@ const buildCard = (config, componentScope, store) => {
11576
12118
  card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
11577
12119
  }
11578
12120
  if (config.label) {
11579
- card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
12121
+ card.elements[1].config.main.heading = config.label;
11580
12122
  }
11581
12123
  if (config.url) {
11582
- card.elements[1].config.main.url = config.url;
12124
+ card.elements[0].config.main.url = config.url;
11583
12125
  }
11584
12126
  if (config.description) {
11585
- card.elements[0].elements[0].elements[1].config.main.heading = config.description;
12127
+ card.elements[3].config.main.heading = config.description;
11586
12128
  }
11587
12129
  return card;
11588
12130
  };
12131
+ var MetricCard = {
12132
+ type: "Control",
12133
+ scope: "#/properties/metricpath",
12134
+ options: {
12135
+ widget: "MetricCard"
12136
+ },
12137
+ config: {
12138
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
12139
+ main: {}
12140
+ }
12141
+ };
12142
+ const buildMetricCard = (config2, componentScope2, store2) => {
12143
+ const card2 = _.cloneDeep(MetricCard);
12144
+ card2.scope = componentScope2;
12145
+ if (config2.style) {
12146
+ card2.config.style = JSON.parse(config2.style);
12147
+ }
12148
+ if (config2.layout) {
12149
+ card2.config.layout = createLayoutFormat(config2.layout);
12150
+ }
12151
+ if (config2.label) {
12152
+ card2.config.main.label = config2.label;
12153
+ }
12154
+ if (config2.url) {
12155
+ card2.config.main.url = config2.url;
12156
+ }
12157
+ if (config2.description) {
12158
+ card2.config.main.description = config2.description;
12159
+ }
12160
+ if (config2.cardValue) {
12161
+ card2.config.main.cardValue = config2.cardValue;
12162
+ }
12163
+ if (config2.growthRate) {
12164
+ card2.config.main.growthRate = config2.growthRate;
12165
+ }
12166
+ if (config2.color) {
12167
+ card2.config.main.color = config2.color;
12168
+ }
12169
+ return card2;
12170
+ };
11589
12171
  var DateInputField = {
11590
12172
  type: "Control",
11591
12173
  scope: "#/properties/date",
@@ -11593,7 +12175,7 @@ var DateInputField = {
11593
12175
  widget: "DateInputField"
11594
12176
  },
11595
12177
  config: {
11596
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12178
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11597
12179
  main: {
11598
12180
  label: "",
11599
12181
  type: "date"
@@ -11607,7 +12189,7 @@ const DateTime = {
11607
12189
  widget: "DateTimeInputField"
11608
12190
  },
11609
12191
  config: {
11610
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12192
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11611
12193
  main: {
11612
12194
  label: "DateTime",
11613
12195
  type: "date"
@@ -11617,21 +12199,43 @@ const DateTime = {
11617
12199
  const buildDate = (config2, componentScope2) => {
11618
12200
  const dateInputField = _.cloneDeep(DateInputField);
11619
12201
  dateInputField.config.main.label = config2.label;
11620
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11621
12202
  dateInputField.scope = componentScope2;
11622
12203
  if (config2.layout) {
11623
12204
  dateInputField.config.layout = createLayoutFormat(config2.layout);
11624
12205
  }
12206
+ if (config2.variant) {
12207
+ dateInputField.config.main.variant = config2.variant;
12208
+ }
12209
+ if (config2.toolTip) {
12210
+ dateInputField.config.main.toolTip = config2.toolTip;
12211
+ }
12212
+ if (config2.toolTipPosition) {
12213
+ dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
12214
+ }
12215
+ if (config2.style) {
12216
+ dateInputField.config.style = JSON.parse(config2.style);
12217
+ }
11625
12218
  return dateInputField;
11626
12219
  };
11627
12220
  const buildDateTime = (config2, componentScope2) => {
11628
12221
  const dateTimeInputField = _.cloneDeep(DateTime);
11629
12222
  dateTimeInputField.config.main.label = config2.label;
11630
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11631
12223
  dateTimeInputField.scope = componentScope2;
11632
12224
  if (config2.layout) {
11633
12225
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
11634
12226
  }
12227
+ if (config2.variant) {
12228
+ dateTimeInputField.config.main.variant = config2.variant;
12229
+ }
12230
+ if (config2.toolTip) {
12231
+ dateTimeInputField.config.main.toolTip = config2.toolTip;
12232
+ }
12233
+ if (config2.toolTipPosition) {
12234
+ dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
12235
+ }
12236
+ if (config2.style) {
12237
+ dateTimeInputField.config.style = JSON.parse(config2.style);
12238
+ }
11635
12239
  return dateTimeInputField;
11636
12240
  };
11637
12241
  var RankCard = {
@@ -11715,14 +12319,15 @@ var MultipleSelect = {
11715
12319
  widget: "MultipleSelect"
11716
12320
  },
11717
12321
  config: {
11718
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12322
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11719
12323
  main: {
11720
12324
  label: "",
11721
12325
  type: "text",
11722
12326
  multiple: true,
11723
- variant: "standard",
12327
+ variant: "outlined",
11724
12328
  options: []
11725
- }
12329
+ },
12330
+ style: {}
11726
12331
  }
11727
12332
  };
11728
12333
  const buildMultiSelect = (config2, componentScope2) => {
@@ -11737,9 +12342,21 @@ const buildMultiSelect = (config2, componentScope2) => {
11737
12342
  if (config2.value) {
11738
12343
  multipleSelect.config.main.options = config2.value;
11739
12344
  }
12345
+ if (config2.variant) {
12346
+ multipleSelect.config.main.variant = config2.variant;
12347
+ }
11740
12348
  if (config2.lazyLoading) {
11741
12349
  multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11742
12350
  }
12351
+ if (config2.toolTip) {
12352
+ multipleSelect.config.main.toolTip = config2.toolTip;
12353
+ }
12354
+ if (config2.toolTipPosition) {
12355
+ multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
12356
+ }
12357
+ if (config2.style) {
12358
+ multipleSelect.config.style = JSON.parse(config2.style);
12359
+ }
11743
12360
  return multipleSelect;
11744
12361
  };
11745
12362
  const buildBasicUiSchema = (config2) => {
@@ -11759,7 +12376,7 @@ const TextArea = {
11759
12376
  widget: "TextArea"
11760
12377
  },
11761
12378
  config: {
11762
- layout: { xs: 12, sm: 12, md: 5.5, lg: 5.5 },
12379
+ layout: 12,
11763
12380
  style: {
11764
12381
  containerStyle: {
11765
12382
  borderRadius: "20px"
@@ -11783,7 +12400,7 @@ const buildTextArea = (config2, componentScope2) => {
11783
12400
  const textArea = _.cloneDeep(TextArea);
11784
12401
  textArea.config.main.heading = config2.label;
11785
12402
  if (config2.layout) {
11786
- textArea.config.layout = createLayoutFormat(config2.layout);
12403
+ textArea.config.layout = createLayoutFormat(config2.layout, config2.type);
11787
12404
  }
11788
12405
  if (config2.style) {
11789
12406
  textArea.config.style = JSON.parse(config2.style);
@@ -11825,11 +12442,11 @@ const buildSlider = (config2, componentScope2) => {
11825
12442
  const Checkbox = {
11826
12443
  "type": "Control",
11827
12444
  "scope": "#/properties/username1",
11828
- "layout": 12,
11829
12445
  "options": {
11830
12446
  "widget": "CheckBox"
11831
12447
  },
11832
12448
  "config": {
12449
+ "layout": { xs: 6, sm: 6, md: 4, lg: 3 },
11833
12450
  "main": {
11834
12451
  "label": "Welcome to Hyperform"
11835
12452
  }
@@ -11850,7 +12467,7 @@ const buildCheckbox = (config2, componentScope2) => {
11850
12467
  const buildLineGraph = (config2, componentScope2) => {
11851
12468
  const lineGraph = _.cloneDeep(LineGraph);
11852
12469
  if (config2.layout) {
11853
- lineGraph.config.layout = createLayoutFormat(config2.layout);
12470
+ lineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
11854
12471
  }
11855
12472
  lineGraph.config.main.header = config2.heading;
11856
12473
  if (config2.height) {
@@ -11873,17 +12490,23 @@ const buildLineGraph = (config2, componentScope2) => {
11873
12490
  if (config2.leftLabel) {
11874
12491
  lineGraph.config.main.leftLabel = config2.leftLabel;
11875
12492
  }
12493
+ if (config2.disableLeftLabel) {
12494
+ lineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
12495
+ }
11876
12496
  if (config2.legendHide) {
11877
12497
  lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
11878
12498
  }
12499
+ if (config2.legendDirection) {
12500
+ lineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
12501
+ }
11879
12502
  if (config2.bottomAxisAngle) {
11880
12503
  lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
11881
12504
  }
11882
12505
  if (config2.legendLabels) {
11883
- lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
12506
+ lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11884
12507
  }
11885
12508
  if (config2.pieArcColors) {
11886
- lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
12509
+ lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
11887
12510
  }
11888
12511
  lineGraph.scope = componentScope2;
11889
12512
  return lineGraph;
@@ -11895,11 +12518,10 @@ const RadioUiSchema = {
11895
12518
  widget: "RadioInputField"
11896
12519
  },
11897
12520
  config: {
11898
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
12521
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11899
12522
  main: {
11900
12523
  label: "Enabled",
11901
- options: ["YES", "NO"],
11902
- errorMessage: "Enabled is not marked as YES or NO"
12524
+ options: ["YES", "NO"]
11903
12525
  }
11904
12526
  }
11905
12527
  };
@@ -11916,6 +12538,15 @@ const buildRadio = (config2, componentScope2) => {
11916
12538
  if (config2.style) {
11917
12539
  Radio.config.style = JSON.parse(config2.style);
11918
12540
  }
12541
+ if (config2.errorMessage) {
12542
+ Radio.config.main.errorMessage = config2.errorMessage;
12543
+ }
12544
+ if (config2.toolTip) {
12545
+ Radio.config.main.toolTip = config2.toolTip;
12546
+ }
12547
+ if (config2.toolTipPosition) {
12548
+ Radio.config.main.toolTipPosition = config2.toolTipPosition;
12549
+ }
11919
12550
  return Radio;
11920
12551
  };
11921
12552
  var emptyBox = {
@@ -11925,13 +12556,14 @@ var emptyBox = {
11925
12556
  widget: "EmptyBox"
11926
12557
  },
11927
12558
  config: {
11928
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
12559
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11929
12560
  main: {},
11930
12561
  style: {}
11931
12562
  }
11932
12563
  };
11933
12564
  const buildEmptyBox = (config2, componentScope2) => {
11934
12565
  const EmptyBox = _.cloneDeep(emptyBox);
12566
+ EmptyBox.scope = componentScope2;
11935
12567
  if (config2.layout) {
11936
12568
  EmptyBox.config.layout = createLayoutFormat(config2.layout);
11937
12569
  }
@@ -11940,18 +12572,34 @@ const buildEmptyBox = (config2, componentScope2) => {
11940
12572
  const ArrayUiSchema = {
11941
12573
  type: "Control",
11942
12574
  scope: "#/properties/adjustments",
11943
- layout: 11.5,
11944
- elements: []
12575
+ layout: 12,
12576
+ elements: [],
12577
+ config: {
12578
+ main: {}
12579
+ }
11945
12580
  };
11946
12581
  const buildArray = (config2, componentScope2) => {
11947
12582
  const array = _.cloneDeep(ArrayUiSchema);
11948
12583
  if (config2.allExpanded) {
11949
12584
  array.config.main.allExpanded = config2.allExpanded === "YES" ? true : false;
11950
12585
  }
12586
+ if (config2.disableAddButton) {
12587
+ array.config.main.disableAddButton = config2.disableAddButton === "YES" ? true : false;
12588
+ }
12589
+ if (config2.disableExpandAllButton) {
12590
+ array.config.main.disableExpandAllButton = config2.disableExpandAllButton === "YES" ? true : false;
12591
+ }
12592
+ if (config2.disableRowActions) {
12593
+ array.config.main.disableRowActions = config2.disableRowActions === "YES" ? true : false;
12594
+ }
11951
12595
  if (config2.style) {
11952
12596
  array.config.style = JSON.parse(config2.style);
11953
12597
  }
12598
+ array.config.main.rowSpacing = Number(config2.rowSpacing);
12599
+ array.config.main.columnSpacing = Number(config2.columnSpacing);
12600
+ array.config.main.spacing = Number(config2.spacing);
11954
12601
  array.config.main.childElementLabel = config2.childElementLabel;
12602
+ array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
11955
12603
  array.config.main.label = config2.label;
11956
12604
  array.scope = componentScope2;
11957
12605
  return array;
@@ -11964,7 +12612,7 @@ const TextField = {
11964
12612
  "widget": "InputField"
11965
12613
  },
11966
12614
  config: {
11967
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
12615
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11968
12616
  main: {
11969
12617
  label: "Adhaar Card",
11970
12618
  formatStrArray: ["9", "9", "9", "9", " ", "9", "9", "9", "9", " ", "X9", "X9", "X9", "X9"],
@@ -11993,7 +12641,7 @@ const PanField = {
11993
12641
  "widget": "InputField"
11994
12642
  },
11995
12643
  config: {
11996
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
12644
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11997
12645
  main: {
11998
12646
  label: "Pan Card",
11999
12647
  placeholder: "AAAAA0000A",
@@ -12021,12 +12669,13 @@ const FileInput = {
12021
12669
  widget: "FileInputField"
12022
12670
  },
12023
12671
  config: {
12024
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12672
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
12025
12673
  main: {
12026
12674
  required: false,
12027
12675
  onUpload: "onFileUpload",
12028
12676
  onDownload: "onFileDownload",
12029
- label: "Aggrement Copy"
12677
+ label: "Aggrement Copy",
12678
+ "onClick": "onClick"
12030
12679
  },
12031
12680
  style: {
12032
12681
  backgroundColor: "none"
@@ -12043,6 +12692,19 @@ const buildFileInput = (config2, componentScope2) => {
12043
12692
  if (config2.style) {
12044
12693
  box.config.style = JSON.parse(config2.style);
12045
12694
  }
12695
+ box.config.main.variant = config2.variant;
12696
+ box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12697
+ box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12698
+ box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12699
+ box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
12700
+ box.config.main.description = config2.description;
12701
+ box.config.main.toolTip = config2.toolTip;
12702
+ box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
12703
+ box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
12704
+ if (config2.toolTipPosition) {
12705
+ box.config.main.toolTipPosition = config2.toolTipPosition;
12706
+ }
12707
+ box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
12046
12708
  return box;
12047
12709
  };
12048
12710
  const Stepper = {
@@ -12099,6 +12761,7 @@ const PopUP = {
12099
12761
  },
12100
12762
  main: {
12101
12763
  label: "PopUp",
12764
+ onClose: "onClose",
12102
12765
  fullScreen: false,
12103
12766
  fullWidth: false,
12104
12767
  maxWidth: false,
@@ -12116,10 +12779,10 @@ const buildPopUp = (config2, componentScope2) => {
12116
12779
  popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
12117
12780
  popup.config.main.maxWidth = config2.maxWidth || false;
12118
12781
  if (config2.layout) {
12119
- popup.config.layout = createLayoutFormat(config2.layout);
12782
+ popup.config.layout = createLayoutFormat(config2.layout, config2.type);
12120
12783
  }
12121
12784
  if (config2.style) {
12122
- PopUP.config.style = JSON.parse(config2.style);
12785
+ popup.config.style = JSON.parse(config2.style);
12123
12786
  }
12124
12787
  return popup;
12125
12788
  };
@@ -12156,10 +12819,10 @@ const buildDataGrid = (config2, componentScope2) => {
12156
12819
  DataGrid.config.main.label = config2.label;
12157
12820
  }
12158
12821
  if (config2.layout) {
12159
- DataGrid.config.layout = createLayoutFormat(config2.layout);
12822
+ DataGrid.config.layout = createLayoutFormat(config2.layout, config2.type);
12160
12823
  }
12161
12824
  if (config2.cardLayout) {
12162
- DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
12825
+ DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout, config2.type);
12163
12826
  }
12164
12827
  if (config2.style) {
12165
12828
  DataGrid.config.style = JSON.parse(config2.style);
@@ -12211,6 +12874,7 @@ const TreeMap = {
12211
12874
  "type": "Control",
12212
12875
  "scope": "#/properties/TreeMap2",
12213
12876
  "config": {
12877
+ layout: 12,
12214
12878
  "main": {
12215
12879
  "layout": "cartsian",
12216
12880
  orientation: "vertical",
@@ -12236,7 +12900,7 @@ const buildTreeMap = (config2, componentScope2) => {
12236
12900
  treMap.config.main.header = config2.label;
12237
12901
  }
12238
12902
  if (config2.layout) {
12239
- treMap.config.layout = createLayoutFormat(config2.layout);
12903
+ treMap.config.layout = createLayoutFormat(config2.layout, config2.type);
12240
12904
  }
12241
12905
  if (config2.orientation) {
12242
12906
  treMap.config.main.orientation = config2.orientation;
@@ -12279,7 +12943,7 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12279
12943
  thought.config.main.thought = `${config2.thought}`;
12280
12944
  }
12281
12945
  if (config2.layout) {
12282
- thought.config.layout = createLayoutFormat(config2.layout);
12946
+ thought.config.layout = createLayoutFormat(config2.layout, config2.type);
12283
12947
  }
12284
12948
  if (config2.label) {
12285
12949
  thought.config.main.label = config2.label;
@@ -12289,124 +12953,435 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12289
12953
  }
12290
12954
  return thought;
12291
12955
  };
12956
+ var horizontalLayout = {
12957
+ type: "HorizontalLayout",
12958
+ config: {
12959
+ layout: 12,
12960
+ main: {
12961
+ rowSpacing: 3,
12962
+ divider: false
12963
+ },
12964
+ defaultStyle: true
12965
+ },
12966
+ elements: []
12967
+ };
12968
+ const buildHorizontalLayout = (config2, componentScope2) => {
12969
+ const horizontal = _.cloneDeep(horizontalLayout);
12970
+ horizontal.scope = componentScope2;
12971
+ if (config2.style) {
12972
+ horizontal.config.style = JSON.parse(config2.style);
12973
+ }
12974
+ if (config2.layout) {
12975
+ horizontal.config.layout = createLayoutFormat(config2.layout, config2.type);
12976
+ }
12977
+ return horizontal;
12978
+ };
12979
+ const imageUiSchema = {
12980
+ type: "Control",
12981
+ scope: "#/properties/Logo",
12982
+ options: {
12983
+ widget: "Image"
12984
+ },
12985
+ config: {
12986
+ layout: 3,
12987
+ main: {
12988
+ url: "",
12989
+ onClick: "onClick"
12990
+ },
12991
+ style: {}
12992
+ }
12993
+ };
12994
+ const buildImage = (config2, componentScope2) => {
12995
+ const image = _.cloneDeep(imageUiSchema);
12996
+ image.scope = componentScope2;
12997
+ image.config.main.url = config2.imageUrl;
12998
+ if (config2.layout) {
12999
+ image.config.layout = createLayoutFormat(config2.layout);
13000
+ }
13001
+ if (config2.style) {
13002
+ image.config.style = JSON.parse(config2.style);
13003
+ }
13004
+ if (config2.height) {
13005
+ image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
13006
+ }
13007
+ image.config.main.toolTip = config2.toolTip;
13008
+ image.config.main.toolTipPosition = config2.toolTipPosition;
13009
+ return image;
13010
+ };
13011
+ const buildAreaGraph = (config2, componentScope2) => {
13012
+ const AreaGraph = _.cloneDeep(AreaBarGraph);
13013
+ AreaGraph.scope = componentScope2;
13014
+ if (config2.layout) {
13015
+ AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13016
+ }
13017
+ AreaGraph.config.main.type = config2.graphType;
13018
+ AreaGraph.scope = componentScope2;
13019
+ AreaGraph.config.main.header = config2.heading;
13020
+ AreaGraph.config.main.subHeader = config2.subHeader;
13021
+ if (config2.legendHide) {
13022
+ AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13023
+ }
13024
+ if (config2.bottomAxisAngle) {
13025
+ AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13026
+ }
13027
+ if (config2.legendLabels) {
13028
+ AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13029
+ }
13030
+ if (config2.legendDirection) {
13031
+ AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13032
+ }
13033
+ if (config2.height) {
13034
+ AreaGraph.config.style.containerStyle.height = config2.height;
13035
+ }
13036
+ if (config2.pieArcColors) {
13037
+ AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13038
+ }
13039
+ if (config2.xAxisFormatType) {
13040
+ AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
13041
+ }
13042
+ if (config2.yAxisTickCount) {
13043
+ AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13044
+ }
13045
+ if (config2.xAxisValue) {
13046
+ AreaGraph.config.main.xAxisValue = config2.xAxisValue;
13047
+ }
13048
+ if (config2.xAxisType) {
13049
+ AreaGraph.config.main.xAxisType = config2.xAxisType;
13050
+ }
13051
+ if (config2.bottomLabel) {
13052
+ AreaGraph.config.main.bottomLabel = config2.bottomLabel;
13053
+ }
13054
+ if (config2.leftLabel) {
13055
+ AreaGraph.config.main.leftLabel = config2.leftLabel;
13056
+ }
13057
+ if (config2.disableLeftLabel) {
13058
+ AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13059
+ }
13060
+ if (config2.leftMargin) {
13061
+ AreaGraph.config.style.labelStyle.margin = {
13062
+ left: config2.leftMargin
13063
+ };
13064
+ }
13065
+ return AreaGraph;
13066
+ };
13067
+ const buildStackBarLineGraph = (config2, componentScope2) => {
13068
+ const StackBarLineGraph = _.cloneDeep(StackBarLineG);
13069
+ StackBarLineGraph.scope = componentScope2;
13070
+ if (config2.layout) {
13071
+ StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13072
+ }
13073
+ StackBarLineGraph.config.main.type = config2.graphType;
13074
+ StackBarLineGraph.scope = componentScope2;
13075
+ StackBarLineGraph.config.main.header = config2.heading;
13076
+ StackBarLineGraph.config.main.subHeader = config2.subHeader;
13077
+ if (config2.legendHide) {
13078
+ StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13079
+ }
13080
+ if (config2.bottomAxisAngle) {
13081
+ StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13082
+ }
13083
+ if (config2.legendLabels) {
13084
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13085
+ }
13086
+ if (config2.legendDirection) {
13087
+ StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13088
+ }
13089
+ if (config2.height) {
13090
+ StackBarLineGraph.config.style.containerStyle.height = config2.height;
13091
+ }
13092
+ if (config2.pieArcColors) {
13093
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13094
+ }
13095
+ if (config2.yAxisTickCount) {
13096
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13097
+ }
13098
+ if (config2.xAxisValue) {
13099
+ StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13100
+ }
13101
+ if (config2.xAxisType) {
13102
+ StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
13103
+ }
13104
+ if (config2.bottomLabel) {
13105
+ StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
13106
+ }
13107
+ if (config2.leftLabel) {
13108
+ StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
13109
+ }
13110
+ if (config2.rightLabel) {
13111
+ StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
13112
+ }
13113
+ if (config2.disableLeftLabel) {
13114
+ StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13115
+ }
13116
+ if (config2.growthRateKey) {
13117
+ StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
13118
+ }
13119
+ if (config2.tooltipUnit) {
13120
+ StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
13121
+ }
13122
+ if (config2.leftMargin) {
13123
+ StackBarLineGraph.config.style.labelStyle.margin = {
13124
+ left: config2.leftMargin
13125
+ };
13126
+ }
13127
+ return StackBarLineGraph;
13128
+ };
13129
+ const cameraUiSchema = {
13130
+ type: "Control",
13131
+ scope: "#/properties/camera",
13132
+ options: {
13133
+ widget: "Camera"
13134
+ },
13135
+ config: {
13136
+ main: {
13137
+ label: "Upload Photo",
13138
+ multiUplaod: false,
13139
+ onUpload: "onFileUpload"
13140
+ }
13141
+ }
13142
+ };
13143
+ const buildCamera = (config2, componentScope2) => {
13144
+ const camera = _.cloneDeep(cameraUiSchema);
13145
+ camera.scope = componentScope2;
13146
+ if (config2.iconName) {
13147
+ camera.config.main.startIcon = config2.iconName;
13148
+ }
13149
+ if (config2.layout) {
13150
+ camera.config.layout = createLayoutFormat(config2.layout, config2.type);
13151
+ }
13152
+ if (config2.tooltipMessage) {
13153
+ camera.config.main.tooltipMessage = config2.tooltipMessage;
13154
+ }
13155
+ camera.config.main.multiUplaod = config2.multiUplaod === "YES" ? true : false;
13156
+ if (config2.style) {
13157
+ camera.config.style = JSON.parse(config2.style);
13158
+ }
13159
+ if (config2.size) {
13160
+ camera.config.main.size = config2.size;
13161
+ }
13162
+ if (config2.variant) {
13163
+ camera.config.main.variant = config2.variant;
13164
+ }
13165
+ if (config2.color) {
13166
+ camera.config.main.color = config2.color;
13167
+ }
13168
+ if (config2.label) {
13169
+ camera.config.main.label = config2.label;
13170
+ }
13171
+ return camera;
13172
+ };
13173
+ var ButtonGroup = {
13174
+ type: "Control",
13175
+ scope: "#/properties/buttonGroup",
13176
+ options: {
13177
+ widget: "ButtonGroup"
13178
+ },
13179
+ config: {
13180
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
13181
+ main: {
13182
+ variant: "contained",
13183
+ styleDefault: false,
13184
+ size: "small"
13185
+ },
13186
+ style: {}
13187
+ }
13188
+ };
13189
+ const buildButtonGroup = (config2, componentScope2) => {
13190
+ const buttonGroup = _.cloneDeep(ButtonGroup);
13191
+ if (config2.layout) {
13192
+ buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
13193
+ }
13194
+ buttonGroup.scope = componentScope2;
13195
+ if (config2.multiSelect) {
13196
+ buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
13197
+ }
13198
+ if (config2.style) {
13199
+ buttonGroup.config.style = JSON.parse(config2.style);
13200
+ }
13201
+ if (config2.size) {
13202
+ buttonGroup.config.main.size = config2.size;
13203
+ }
13204
+ if (config2.color) {
13205
+ buttonGroup.config.main.color = config2.color;
13206
+ }
13207
+ return buttonGroup;
13208
+ };
13209
+ const PopOver = {
13210
+ type: "Control",
13211
+ scope: "#/properties/text",
13212
+ options: {
13213
+ widget: "Popover"
13214
+ },
13215
+ config: {
13216
+ layout: {
13217
+ xs: 12,
13218
+ sm: 12,
13219
+ md: 12,
13220
+ lg: 12
13221
+ },
13222
+ main: {
13223
+ label: "PopOver"
13224
+ },
13225
+ style: {}
13226
+ }
13227
+ };
13228
+ const buildPopOver = (config2, componentScope2) => {
13229
+ const popOver = _.cloneDeep(PopOver);
13230
+ popOver.scope = componentScope2;
13231
+ popOver.config.main.positionVertical = config2.positionVertical;
13232
+ popOver.config.main.positionHorizontal = config2.positionHorizontal;
13233
+ popOver.config.main.contentVertical = config2.contentVertical;
13234
+ popOver.config.main.contentHorizontal = config2.contentHorizontal;
13235
+ popOver.config.main.width = config2.width;
13236
+ popOver.config.main.gap = config2.gap;
13237
+ if (config2.layout) {
13238
+ popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
13239
+ }
13240
+ if (config2.style) {
13241
+ popOver.config.style = JSON.parse(config2.style);
13242
+ }
13243
+ return popOver;
13244
+ };
13245
+ const OTPSchema = {
13246
+ type: "Control",
13247
+ scope: "#/properties/OTPInput",
13248
+ options: {
13249
+ widget: "OTPInput"
13250
+ },
13251
+ config: {
13252
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
13253
+ main: {
13254
+ seperator: "",
13255
+ length: 4,
13256
+ type: "number",
13257
+ masking: true
13258
+ }
13259
+ }
13260
+ };
13261
+ const buildOTP_Input = (config2, componentScope2) => {
13262
+ const OTP = _.cloneDeep(OTPSchema);
13263
+ OTP.scope = componentScope2;
13264
+ if (config2.layout) {
13265
+ OTP.config.layout = createLayoutFormat(config2.layout);
13266
+ }
13267
+ if (config2.style) {
13268
+ OTP.config.style = JSON.parse(config2.style);
13269
+ }
13270
+ if (config2.errorMessage) {
13271
+ OTP.config.main.errorMessage = config2.errorMessage;
13272
+ }
13273
+ if (config2.toolTip) {
13274
+ OTP.config.main.toolTip = config2.toolTip;
13275
+ }
13276
+ OTP.config.main.masking = config2.masking === "YES" ? true : false;
13277
+ OTP.config.main.type = config2.OTP_Format;
13278
+ OTP.config.main.seperator = config2.seperator;
13279
+ OTP.config.main.length = +config2.length;
13280
+ return OTP;
13281
+ };
13282
+ var pdfViewer = {
13283
+ type: "Control",
13284
+ scope: "#/properties/pdfviewer",
13285
+ options: {
13286
+ widget: "PdfViewer"
13287
+ },
13288
+ config: {
13289
+ layout: {
13290
+ xs: 12,
13291
+ sm: 12,
13292
+ md: 12,
13293
+ lg: 12
13294
+ },
13295
+ main: {
13296
+ title: "PDF"
13297
+ }
13298
+ }
13299
+ };
13300
+ const buildPdfViewer = (config2, componentScope2) => {
13301
+ const PdfViewer = _.cloneDeep(pdfViewer);
13302
+ PdfViewer.scope = componentScope2;
13303
+ PdfViewer.config.main.scale = config2.scale;
13304
+ if (config2.layout) {
13305
+ PdfViewer.config.layout = createLayoutFormat(config2.layout);
13306
+ }
13307
+ if (config2.style) {
13308
+ PdfViewer.config.style = JSON.parse(config2.style);
13309
+ }
13310
+ return PdfViewer;
13311
+ };
12292
13312
  let schema = {
12293
13313
  type: "object",
12294
13314
  properties: {},
12295
13315
  required: []
12296
13316
  };
12297
- function buildRule(configObj, tableName, arrayHolderName) {
12298
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
12299
- if (arrayHolderName) {
12300
- if ((_c = (_b = (_a = schema.properties) == null ? void 0 : _a[tableName]) == null ? void 0 : _b.items) == null ? void 0 : _c.properties) {
12301
- if (!((_g = (_f = (_e = (_d = schema.properties) == null ? void 0 : _d[tableName]) == null ? void 0 : _e.items) == null ? void 0 : _f.properties) == null ? void 0 : _g[configObj.name])) {
12302
- schema.properties[tableName].items.properties[configObj.name] = {};
12303
- if (configObj.type === "Select" && ((_h = configObj.value) == null ? void 0 : _h.length) > 0) {
12304
- schema.properties[tableName].items.properties[configObj.name] = {
12305
- oneOf: configObj.value.map((e) => {
12306
- return { const: e.value, title: e.label };
12307
- })
12308
- };
12309
- } else if (configObj.type === "MultipleSelect" && ((_i = configObj.value) == null ? void 0 : _i.length) > 0) {
12310
- schema.properties[tableName].items.properties[configObj.name] = {
12311
- items: {
12312
- oneOf: configObj.value.map((e) => {
12313
- return { const: e.value, title: e.label };
12314
- })
12315
- }
12316
- };
12317
- }
12318
- }
12319
- }
12320
- } else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && ((_j = configObj.value) == null ? void 0 : _j.length) > 0) {
12321
- if (configObj.type === "Select") {
12322
- schema.properties[configObj.name] = {
12323
- oneOf: configObj.value.map((e) => {
12324
- return { const: e.value, title: e.label };
12325
- })
12326
- };
12327
- } else if (configObj.type === "MultipleSelect") {
12328
- schema.properties[configObj.name] = {
13317
+ function buildSchemaFromConfig(config2, parentSchema) {
13318
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
13319
+ if (config2.elements) {
13320
+ if (config2.type === "Array") {
13321
+ (_a = parentSchema.properties) != null ? _a : parentSchema.properties = {};
13322
+ (_d = (_b = parentSchema.properties)[_c = config2.name]) != null ? _d : _b[_c] = {
13323
+ type: "array",
12329
13324
  items: {
12330
- oneOf: configObj.value.map((e) => {
12331
- return { const: e.value, title: e.label };
12332
- })
13325
+ type: "object",
13326
+ properties: {},
13327
+ required: []
12333
13328
  }
12334
13329
  };
13330
+ const arrayItemSchema = parentSchema.properties[config2.name].items;
13331
+ (_e = config2.elements) == null ? void 0 : _e.forEach(
13332
+ (child) => buildSchemaFromConfig(child, arrayItemSchema)
13333
+ );
13334
+ return;
13335
+ } else {
13336
+ (_f = config2.elements) == null ? void 0 : _f.forEach(
13337
+ (child) => buildSchemaFromConfig(child, parentSchema)
13338
+ );
13339
+ return;
12335
13340
  }
12336
13341
  }
12337
- if (configObj.validation) {
12338
- configObj.validation.forEach((rule) => {
12339
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l;
12340
- if (tableName) {
12341
- if ((_c2 = (_b2 = (_a2 = schema.properties) == null ? void 0 : _a2[tableName]) == null ? void 0 : _b2.items) == null ? void 0 : _c2.properties) {
12342
- if (!((_g2 = (_f2 = (_e2 = (_d2 = schema.properties) == null ? void 0 : _d2[tableName]) == null ? void 0 : _e2.items) == null ? void 0 : _f2.properties) == null ? void 0 : _g2[configObj.name])) {
12343
- schema.properties[tableName].items.properties[configObj.name] = {};
12344
- if (configObj.type === "Select" || ((_h2 = configObj.value) == null ? void 0 : _h2.length) > 0) {
12345
- schema.properties[tableName].items.properties[configObj.name] = {
12346
- oneOf: configObj.value.map((e) => {
12347
- return { const: e.value, title: e.label };
12348
- })
12349
- };
12350
- } else if (configObj.type === "MultipleSelect" || ((_i2 = configObj.value) == null ? void 0 : _i2.length) > 0) {
12351
- schema.properties[tableName].items.properties[configObj.name] = {
12352
- items: {
12353
- oneOf: configObj.value.map((e) => {
12354
- return { const: e.value, title: e.label };
12355
- })
12356
- }
12357
- };
12358
- }
12359
- }
12360
- if (rule.validationType === "required") {
12361
- (_l = (_k = (_j2 = schema.properties) == null ? void 0 : _j2[tableName]) == null ? void 0 : _k.items) == null ? void 0 : _l.required.push(configObj.name);
12362
- } else {
12363
- schema.properties[tableName].items.properties[configObj.name]["type"] = "string";
12364
- schema.properties[tableName].items.properties[configObj.name][rule.validationType] = isNaN(rule.validationValue) ? rule.validationValue : Number(rule.validationValue);
12365
- }
12366
- }
12367
- } else {
12368
- if (!schema.properties[configObj.name]) {
12369
- schema.properties[configObj.name] = {};
12370
- }
12371
- if (rule.validationType === "required") {
12372
- schema.required.push(configObj.name);
12373
- } else {
12374
- schema.properties[configObj.name]["type"] = "string";
12375
- schema.properties[configObj.name][rule.validationType] = isNaN(rule.validationValue) ? rule.validationValue : Number(rule.validationValue);
12376
- }
12377
- }
12378
- });
12379
- }
12380
- }
12381
- const buildSchema = (config2, tableName, isArrayType) => {
12382
- buildRule(config2, tableName, isArrayType);
12383
- if (config2 == null ? void 0 : config2.elements) {
12384
- if (config2.type == "Table" || config2.type == "Array") {
12385
- if (!schema.properties[config2.name]) {
12386
- schema.properties[config2.name] = {
12387
- type: "array",
12388
- items: {
12389
- type: "object",
12390
- properties: {},
12391
- required: []
12392
- }
12393
- };
12394
- }
12395
- config2.elements.map((e, elemInd) => {
12396
- buildSchema(e, config2.name, config2.type === "Array" ? true : false);
12397
- });
13342
+ (_g = parentSchema.properties) != null ? _g : parentSchema.properties = {};
13343
+ (_j = (_h = parentSchema.properties)[_i = config2.name]) != null ? _j : _h[_i] = {};
13344
+ const fieldSchema = parentSchema.properties[config2.name];
13345
+ (_k = config2.validation) == null ? void 0 : _k.forEach((v) => {
13346
+ var _a2;
13347
+ if (v.validationType === "required") {
13348
+ (_a2 = parentSchema.required) != null ? _a2 : parentSchema.required = [];
13349
+ parentSchema.required.push(config2.name);
13350
+ } else if (v.validationType === "readOnly") {
13351
+ fieldSchema.type = "string";
13352
+ fieldSchema.disabled = true;
12398
13353
  } else {
12399
- config2.elements.map((e, elemInd) => {
12400
- buildSchema(e);
12401
- });
13354
+ fieldSchema.type = "string";
13355
+ fieldSchema[v.validationType] = isNaN(v.validationValue) ? v.validationValue : Number(v.validationValue);
12402
13356
  }
13357
+ });
13358
+ if (config2.type === "Select" && ((_l = config2.value) == null ? void 0 : _l.length)) {
13359
+ fieldSchema.oneOf = config2.value.map((v) => ({
13360
+ const: v.value,
13361
+ title: v.label
13362
+ }));
13363
+ }
13364
+ if (config2.type === "MultipleSelect" && ((_m = config2.value) == null ? void 0 : _m.length)) {
13365
+ fieldSchema.type = "array";
13366
+ fieldSchema.items = {
13367
+ oneOf: config2.value.map((v) => ({
13368
+ const: v.value,
13369
+ title: v.label
13370
+ }))
13371
+ };
12403
13372
  }
13373
+ }
13374
+ const buildSchema = (config2) => {
13375
+ buildSchemaFromConfig(config2, schema);
12404
13376
  return schema;
12405
13377
  };
12406
13378
  const buildUiSchema = (config2, store2) => {
12407
13379
  let elements = {};
12408
13380
  const componentScope2 = `#/properties/${config2.name}`;
12409
13381
  switch (config2.type) {
13382
+ case "OTP_Input":
13383
+ elements = buildOTP_Input(config2, componentScope2);
13384
+ break;
12410
13385
  case "TreeMap":
12411
13386
  elements = buildTreeMap(config2, componentScope2);
12412
13387
  break;
@@ -12425,6 +13400,9 @@ const buildUiSchema = (config2, store2) => {
12425
13400
  case "PopUp":
12426
13401
  elements = buildPopUp(config2, componentScope2);
12427
13402
  break;
13403
+ case "PopOver":
13404
+ elements = buildPopOver(config2, componentScope2);
13405
+ break;
12428
13406
  case "FileInput":
12429
13407
  elements = buildFileInput(config2, componentScope2);
12430
13408
  break;
@@ -12443,6 +13421,9 @@ const buildUiSchema = (config2, store2) => {
12443
13421
  case "WrapperSection":
12444
13422
  elements = buildWrapperSection(config2, componentScope2);
12445
13423
  break;
13424
+ case "HorizontalLayout":
13425
+ elements = buildHorizontalLayout(config2, componentScope2);
13426
+ break;
12446
13427
  case "Text":
12447
13428
  elements = buildTextField(config2, componentScope2);
12448
13429
  break;
@@ -12461,6 +13442,9 @@ const buildUiSchema = (config2, store2) => {
12461
13442
  case "Button":
12462
13443
  elements = buildButton(config2, componentScope2);
12463
13444
  break;
13445
+ case "ButtonGroup":
13446
+ elements = buildButtonGroup(config2, componentScope2);
13447
+ break;
12464
13448
  case "Table":
12465
13449
  elements = buildTable(config2, componentScope2);
12466
13450
  break;
@@ -12480,11 +13464,14 @@ const buildUiSchema = (config2, store2) => {
12480
13464
  elements = buildDownloadFile(config2, componentScope2);
12481
13465
  break;
12482
13466
  case "EmptyBox":
12483
- elements = buildEmptyBox(config2);
13467
+ elements = buildEmptyBox(config2, componentScope2);
12484
13468
  break;
12485
13469
  case "card":
12486
13470
  elements = buildCard(config2, componentScope2, store2);
12487
13471
  break;
13472
+ case "MetricCard":
13473
+ elements = buildMetricCard(config2, componentScope2);
13474
+ break;
12488
13475
  case "Graph":
12489
13476
  switch (config2.graphType) {
12490
13477
  case "BarGraph":
@@ -12501,6 +13488,12 @@ const buildUiSchema = (config2, store2) => {
12501
13488
  case "HorizontalStackBarGraph":
12502
13489
  elements = buildHorizontalBarGraph(config2, componentScope2);
12503
13490
  break;
13491
+ case "AreaGraph":
13492
+ elements = buildAreaGraph(config2, componentScope2);
13493
+ break;
13494
+ case "StackBarLineGraph":
13495
+ elements = buildStackBarLineGraph(config2, componentScope2);
13496
+ break;
12504
13497
  default:
12505
13498
  elements = buildStackbarGraph(config2, componentScope2);
12506
13499
  break;
@@ -12543,6 +13536,15 @@ const buildUiSchema = (config2, store2) => {
12543
13536
  case "Thought":
12544
13537
  elements = buildThoughtOfTheDay(config2, componentScope2);
12545
13538
  break;
13539
+ case "Image":
13540
+ elements = buildImage(config2, componentScope2);
13541
+ break;
13542
+ case "Camera":
13543
+ elements = buildCamera(config2, componentScope2);
13544
+ break;
13545
+ case "PdfViewer":
13546
+ elements = buildPdfViewer(config2, componentScope2);
13547
+ break;
12546
13548
  default:
12547
13549
  schema = {
12548
13550
  type: "object",
@@ -12553,7 +13555,17 @@ const buildUiSchema = (config2, store2) => {
12553
13555
  }
12554
13556
  if (config2 == null ? void 0 : config2.elements) {
12555
13557
  if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
12556
- return elements;
13558
+ const rowElements = [];
13559
+ config2.elements.map((cellElem) => {
13560
+ const commonProperties = {
13561
+ accessorKey: cellElem.name,
13562
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
13563
+ header: cellElem.label || cellElem.name,
13564
+ columnKey: cellElem.columnKey
13565
+ };
13566
+ rowElements.push({ ...commonProperties });
13567
+ });
13568
+ elements.elements = rowElements;
12557
13569
  } else if (config2.type == "ColumnGroup") {
12558
13570
  const sizeMap = {};
12559
13571
  if (config2.sizeHolder) {
@@ -12562,13 +13574,27 @@ const buildUiSchema = (config2, store2) => {
12562
13574
  });
12563
13575
  }
12564
13576
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12565
- return {
13577
+ const commonProperties = {
12566
13578
  accessorKey: cellElem.name,
13579
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12567
13580
  header: cellElem.label || cellElem.name,
12568
13581
  size: sizeMap[cellElem.name] || 180,
12569
- type: cellElem.columnFormat,
12570
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
13582
+ enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
13583
+ columnFilterModeOptions: cellElem.filteringOptions,
13584
+ enableSorting: cellElem.enableSorting === "No" ? false : true,
13585
+ columnKey: cellElem.columnKey,
13586
+ dateFormat: cellElem.dateFormat
12571
13587
  };
13588
+ if (cellElem.type) {
13589
+ const tableElem = {
13590
+ widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
13591
+ ...commonProperties,
13592
+ ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
13593
+ };
13594
+ return tableElem;
13595
+ } else {
13596
+ return { ...commonProperties };
13597
+ }
12572
13598
  });
12573
13599
  } else if (config2.type == "Table") {
12574
13600
  const sizeMap = {};
@@ -12583,13 +13609,14 @@ const buildUiSchema = (config2, store2) => {
12583
13609
  config2.elements.filter((cellElem, elemInd) => {
12584
13610
  const commonProperties = {
12585
13611
  accessorKey: cellElem.name,
12586
- type: cellElem.columnFormat,
13612
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12587
13613
  header: cellElem.label || cellElem.name,
12588
13614
  size: sizeMap[cellElem.name] || 180,
12589
13615
  enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12590
13616
  columnFilterModeOptions: cellElem.filteringOptions,
12591
13617
  enableSorting: cellElem.enableSorting === "No" ? false : true,
12592
- columnKey: cellElem.columnKey
13618
+ columnKey: cellElem.columnKey,
13619
+ dateFormat: cellElem.dateFormat
12593
13620
  };
12594
13621
  if (cellElem.type) {
12595
13622
  if (cellElem.elementType == "action") {
@@ -12604,8 +13631,8 @@ const buildUiSchema = (config2, store2) => {
12604
13631
  }
12605
13632
  const tableElem = {
12606
13633
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12607
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12608
- ...commonProperties
13634
+ ...commonProperties,
13635
+ ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
12609
13636
  };
12610
13637
  rowElements.push(tableElem);
12611
13638
  } else {
@@ -12623,5 +13650,5 @@ const buildUiSchema = (config2, store2) => {
12623
13650
  }
12624
13651
  return elements;
12625
13652
  };
12626
- export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
13653
+ export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
12627
13654
  //# sourceMappingURL=impaktapps-ui-builder.es.js.map