impaktapps-ui-builder 1.0.621 → 1.0.622-copy.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/impaktapps-ui-builder.es.js +2018 -900
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildAreaGraph.d.ts +2 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.d.ts +1 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildImage.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  17. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +2 -1
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +4 -1
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -1
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -171
  22. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +18 -50
  23. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -4
  24. package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +22 -0
  25. package/dist/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.d.ts +13 -0
  26. package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
  27. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  28. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  29. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  30. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +15 -66
  31. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
  32. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
  33. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -0
  34. package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +5 -2
  35. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +8 -4
  36. package/package.json +1 -1
  37. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
  38. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +13 -0
  39. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
  40. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
  41. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +23 -9
  42. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +35 -13
  43. package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +7 -0
  44. package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +4 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -28
  46. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  47. package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +35 -0
  48. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +9 -3
  49. package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
  50. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +38 -0
  51. package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +3 -0
  52. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +3 -0
  53. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +9 -3
  54. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
  55. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +9 -0
  56. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  57. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  58. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +6 -3
  59. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
  60. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  61. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
  62. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +10 -2
  63. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +9 -0
  64. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +9 -3
  65. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  66. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +5 -0
  67. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +27 -11
  68. package/src/impaktapps-ui-builder/builder/build/buildText.ts +9 -0
  69. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +144 -124
  70. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
  71. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +8 -2
  72. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +4 -1
  73. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +319 -21
  74. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  75. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -169
  76. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +76 -21
  77. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +30 -54
  78. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +1 -1
  79. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
  80. package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
  81. package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
  82. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
  83. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
  84. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  85. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
  86. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +35 -61
  87. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
  88. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +219 -75
  89. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +62 -2
  90. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +95 -107
  91. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -3
  92. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
  93. package/src/impaktapps-ui-builder/builder/services/component.ts +177 -86
  94. package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
  95. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -15
  96. package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
  97. package/src/impaktapps-ui-builder/lib/index.ts +10 -9
  98. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +42 -22
  99. package/src/impaktapps-ui-builder/runtime/services/events.ts +9 -11
  100. package/src/impaktapps-ui-builder/runtime/services/service.ts +118 -158
@@ -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
- scope: "#/properties/RejectButton",
241
+ scope: "#/properties/EditButton",
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
- {
374
- accessorKey: "Handler",
375
- header: "Handler",
376
- size: 200,
377
- type: "string"
378
373
  },
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
  }
@@ -1502,7 +1488,7 @@ var lodash = { exports: {} };
1502
1488
  }
1503
1489
  var runInContext = function runInContext2(context) {
1504
1490
  context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
1505
- var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String = context.String, TypeError = context.TypeError;
1491
+ var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError = context.TypeError;
1506
1492
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
1507
1493
  var coreJsData = context["__core-js_shared__"];
1508
1494
  var funcToString = funcProto.toString;
@@ -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");
@@ -1823,7 +1809,7 @@ var lodash = { exports: {} };
1823
1809
  Stack.prototype.has = stackHas;
1824
1810
  Stack.prototype.set = stackSet;
1825
1811
  function arrayLikeKeys(value, inherited) {
1826
- var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String) : [], length = result2.length;
1812
+ var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length;
1827
1813
  for (var key in value) {
1828
1814
  if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
1829
1815
  result2.push(key);
@@ -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,8 @@ 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" },
6275
+ { title: "Hierarchy Chart", const: "HierarchyChart" },
6281
6276
  { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6282
6277
  { title: "Table", const: "Table" },
6283
6278
  { title: "Tabs", const: "TabSection" },
@@ -6286,8 +6281,8 @@ const ComponentSchema = {
6286
6281
  { title: "Timer", const: "Timer" },
6287
6282
  { title: "Upload", const: "UploadFile" },
6288
6283
  { title: "Tree ", const: "TreeMap" },
6289
- { title: "Column Group", const: "ColumnGroup" },
6290
- { title: "Thought of the day", const: "Thought" }
6284
+ { title: "Thought of the day", const: "Thought" },
6285
+ { title: "PDF", const: "PdfViewer" }
6291
6286
  ]
6292
6287
  },
6293
6288
  elementType: {
@@ -6301,7 +6296,37 @@ const ComponentSchema = {
6301
6296
  oneOf: [
6302
6297
  { title: "Date Column", const: "date" },
6303
6298
  { title: "DateTime Column", const: "dateTime" },
6304
- { title: "Amount Column", const: "amount" }
6299
+ { title: "Amount Column", const: "amount" },
6300
+ { title: "Center Column", const: "action" }
6301
+ ]
6302
+ },
6303
+ dateFormat: {
6304
+ oneOf: [
6305
+ {
6306
+ title: "YYYY-MM-DDTHH:mm:ss.SSSZ",
6307
+ const: "YYYY-MM-DDTHH:mm:ss.SSSZ"
6308
+ },
6309
+ {
6310
+ title: "YYYY-MM-DDTHH:mm:ssZ",
6311
+ const: "YYYY-MM-DDTHH:mm:ssZ"
6312
+ },
6313
+ {
6314
+ title: "YYYY-MM-DDTHH:mm:ss",
6315
+ const: "YYYY-MM-DDTHH:mm:ss"
6316
+ },
6317
+ { title: "YYYY-MM-DD", const: "YYYY-MM-DD" },
6318
+ { title: "DD-MM-YYYY", const: "DD-MM-YYYY" },
6319
+ { title: "MM/DD/YYYY", const: "MM/DD/YYYY" },
6320
+ {
6321
+ title: "YYYY-MM-DD HH:mm:ss",
6322
+ const: "YYYY-MM-DD HH:mm:ss"
6323
+ },
6324
+ {
6325
+ title: "YYYY-MM-DD HH:mm:ss.SSS",
6326
+ const: "YYYY-MM-DD HH:mm:ss.SSS"
6327
+ },
6328
+ { title: "Milliseconds", const: "x" },
6329
+ { title: "Seconds", const: "X" }
6305
6330
  ]
6306
6331
  },
6307
6332
  variant: {
@@ -6311,6 +6336,55 @@ const ComponentSchema = {
6311
6336
  { title: "Standard", const: "standard" }
6312
6337
  ]
6313
6338
  },
6339
+ linkType: {
6340
+ oneOf: [
6341
+ { title: "Step", const: "step" },
6342
+ { title: "Diagonal", const: "diagonal" },
6343
+ { title: "Line", const: "line" }
6344
+ ]
6345
+ },
6346
+ positionVertical: {
6347
+ oneOf: [
6348
+ { title: "Top", const: "top" },
6349
+ { title: "Center", const: "center" },
6350
+ { title: "Bottom", const: "bottom" }
6351
+ ]
6352
+ },
6353
+ positionHorizontal: {
6354
+ oneOf: [
6355
+ { title: "Left", const: "left" },
6356
+ { title: "Center", const: "center" },
6357
+ { title: "Right", const: "right" }
6358
+ ]
6359
+ },
6360
+ contentVertical: {
6361
+ oneOf: [
6362
+ { title: "Top", const: "top" },
6363
+ { title: "Center", const: "center" },
6364
+ { title: "Bottom", const: "bottom" }
6365
+ ]
6366
+ },
6367
+ contentHorizontal: {
6368
+ oneOf: [
6369
+ { title: "Left", const: "left" },
6370
+ { title: "Center", const: "center" },
6371
+ { title: "Right", const: "right" }
6372
+ ]
6373
+ },
6374
+ toolTipPosition: {
6375
+ oneOf: [
6376
+ { title: "Top", const: "top" },
6377
+ { title: "Left", const: "left" },
6378
+ { title: "Right", const: "right" },
6379
+ { title: "Bottom", const: "bottom" }
6380
+ ]
6381
+ },
6382
+ growthRate: {
6383
+ oneOf: [
6384
+ { title: "Positive", const: "positive" },
6385
+ { title: "Negative", const: "negative" }
6386
+ ]
6387
+ },
6314
6388
  orientation: {
6315
6389
  oneOf: [
6316
6390
  { title: "Horizontal", const: "horizontal" },
@@ -6326,6 +6400,40 @@ const ComponentSchema = {
6326
6400
  { title: "Put", const: "put" }
6327
6401
  ]
6328
6402
  },
6403
+ maxPageSize: {
6404
+ type: "number",
6405
+ oneOf: [
6406
+ { title: "10", const: 10 },
6407
+ { title: "20", const: 20 },
6408
+ { title: "30", const: 30 },
6409
+ { title: "50", const: 50 },
6410
+ { title: "100", const: 100 },
6411
+ { title: "500", const: 500 }
6412
+ ]
6413
+ },
6414
+ initialDensity: {
6415
+ type: "string",
6416
+ oneOf: [
6417
+ { title: "Compact", const: "compact" },
6418
+ { title: "Comfortable", const: "comfortable" },
6419
+ { title: "Spacious", const: "spacious" }
6420
+ ]
6421
+ },
6422
+ xAxisFormatType: {
6423
+ type: "string",
6424
+ oneOf: [
6425
+ { title: "Date and Month", const: "Date and Month" },
6426
+ { title: "Month and Year", const: "Month and Year" }
6427
+ ]
6428
+ },
6429
+ xAxisType: {
6430
+ type: "string",
6431
+ oneOf: [
6432
+ { title: "Date", const: "date" },
6433
+ { title: "String", const: "string" },
6434
+ { title: "Number", const: "number" }
6435
+ ]
6436
+ },
6329
6437
  layout: {
6330
6438
  type: "array",
6331
6439
  items: {
@@ -6461,6 +6569,9 @@ const ComponentSchema = {
6461
6569
  items: {
6462
6570
  type: "object",
6463
6571
  properties: {
6572
+ key: {
6573
+ type: "string"
6574
+ },
6464
6575
  label: {
6465
6576
  type: "string"
6466
6577
  }
@@ -6472,12 +6583,26 @@ const ComponentSchema = {
6472
6583
  items: {
6473
6584
  type: "object",
6474
6585
  properties: {
6586
+ key: {
6587
+ type: "string"
6588
+ },
6475
6589
  label: {
6476
6590
  type: "string"
6477
6591
  }
6478
6592
  }
6479
6593
  }
6480
6594
  },
6595
+ tabIcons: {
6596
+ type: "array",
6597
+ items: {
6598
+ type: "object",
6599
+ properties: {
6600
+ url: {
6601
+ type: "string"
6602
+ }
6603
+ }
6604
+ }
6605
+ },
6481
6606
  InputFormatingAndMasking: {
6482
6607
  type: "array",
6483
6608
  items: {
@@ -6503,7 +6628,8 @@ const ComponentSchema = {
6503
6628
  { const: "required", title: "Required" },
6504
6629
  { const: "minLength", title: "Minimum Length" },
6505
6630
  { const: "maxLength", title: "Maximum Length" },
6506
- { const: "pattern", title: "Pattern" }
6631
+ { const: "pattern", title: "Pattern" },
6632
+ { const: "readOnly", title: "Read Only" }
6507
6633
  ]
6508
6634
  },
6509
6635
  validationValue: {
@@ -6535,7 +6661,12 @@ const ComponentSchema = {
6535
6661
  { title: "Line Graph", const: "LineGraph" },
6536
6662
  { title: "Pie Graph", const: "PieGraph" },
6537
6663
  { title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
6538
- { title: "Stack Horizontal Bar Graph", const: "HorizontalStackBarGraph" }
6664
+ {
6665
+ title: "Stack Horizontal Bar Graph",
6666
+ const: "HorizontalStackBarGraph"
6667
+ },
6668
+ { title: "Area Graph", const: "AreaGraph" },
6669
+ { title: "StackBar And Line Graph", const: "StackBarLineGraph" }
6539
6670
  ]
6540
6671
  },
6541
6672
  iconName: {
@@ -6557,33 +6688,43 @@ const ComponentSchema = {
6557
6688
  { title: "Error Icon", const: "ErrorIcon" },
6558
6689
  { title: "Refresh Icon", const: "RefreshIcon" },
6559
6690
  { title: "Download Icon", const: "DownloadIcon" },
6691
+ { title: "Download All Icon", const: "DownloadAllIcon" },
6560
6692
  { title: "Exception Icon", const: "ExceptionIcon" },
6561
- { "title": "Alarm Icon", "const": "AlarmIcon" },
6562
- { "title": "Click Icon", "const": "ClickIcon" },
6563
- { "title": "Content Copy Icon", "const": "ContentCopyIcon" },
6564
- { "title": "File Copy Icon", "const": "FileCopyIcon" },
6565
- { "title": "Pause Icon", "const": "PauseIcon" },
6566
- { "title": "Play Icon", "const": "PlayIcon" },
6567
- { "title": "Close Icon", "const": "CloseIcon" },
6568
- { "title": "Replay Icon", "const": "ReplayIcon" },
6569
- { "title": "Delete Icon", "const": "DeleteIcon" },
6570
- { "title": "Drafts Icon", "const": "DraftsIcon" },
6571
- { "title": "Perm Phone Msg Icon", "const": "PermPhoneMsgIcon" },
6572
- { "title": "Paste Icon", "const": "PasteIcon" },
6573
- { "title": "Prev Icon", "const": "PrevIcon" },
6574
- { "title": "Verified Icon", "const": "VerifiedIcon" },
6575
- { "title": "Table Add Icon", "const": "TableAddIcon" },
6576
- { "title": "Table Download Icon", "const": "TableDownloadIcon" },
6577
- { "title": "Audit Trail Icon", "const": "AuditTrailIcon" },
6578
- { "title": "View Component", "const": "View" },
6579
- { "title": "Table Edit Icon", "const": "TableEditIcon" },
6580
- { "title": "Maximize Icon", "const": "Maximize" },
6581
- { "title": "Minimize Icon", "const": "Minimize" },
6582
- { "title": "Subtract Icon", "const": "Subtract" },
6583
- { "title": "Bin Icon", "const": "Bin" },
6584
- { "title": "Export Icon", "const": "Export" },
6585
- { "title": "Table Paste Icon", "const": "TablePaste" },
6586
- { "title": "Clone Icon", "const": "CloneIcon" }
6693
+ { title: "Alarm Icon", const: "AlarmIcon" },
6694
+ { title: "Click Icon", const: "ClickIcon" },
6695
+ { title: "Content Copy Icon", const: "ContentCopyIcon" },
6696
+ { title: "File Copy Icon", const: "FileCopyIcon" },
6697
+ { title: "Pause Icon", const: "PauseIcon" },
6698
+ { title: "Play Icon", const: "PlayIcon" },
6699
+ { title: "Close Icon", const: "CloseIcon" },
6700
+ { title: "Replay Icon", const: "ReplayIcon" },
6701
+ { title: "Delete Icon", const: "DeleteIcon" },
6702
+ { title: "Drafts Icon", const: "DraftsIcon" },
6703
+ { title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
6704
+ { title: "Paste Icon", const: "PasteIcon" },
6705
+ { title: "Calendar", const: "Calendar" },
6706
+ { title: "Prev Icon", const: "PrevIcon" },
6707
+ { title: "Verified Icon", const: "VerifiedIcon" },
6708
+ { title: "Table Add Icon", const: "TableAddIcon" },
6709
+ { title: "Table Download Icon", const: "TableDownloadIcon" },
6710
+ { title: "Audit Trail Icon", const: "AuditTrailIcon" },
6711
+ { title: "View Component", const: "View" },
6712
+ { title: "Table Edit Icon", const: "TableEditIcon" },
6713
+ { title: "Maximize Icon", const: "Maximize" },
6714
+ { title: "Minimize Icon", const: "Minimize" },
6715
+ { title: "Subtract Icon", const: "Subtract" },
6716
+ { title: "Bin Icon", const: "Bin" },
6717
+ { title: "Export Icon", const: "Export" },
6718
+ { title: "Table Paste Icon", const: "TablePaste" },
6719
+ { title: "Clone Icon", const: "CloneIcon" },
6720
+ { title: "Detail Icon", const: "DetailIcon" },
6721
+ { title: "Report View Icon", const: "ReportViewIcon" },
6722
+ { title: "Payout", const: "Payout" },
6723
+ { title: "Info Outlined", const: "InfoOutlinedIcon" },
6724
+ { title: "Territory Add", const: "TerritoryAdd" },
6725
+ { title: "Territory Edit", const: "TerritoryEdit" },
6726
+ { title: "Territory Delete", const: "TerritoryDelete" },
6727
+ { title: "Git Compare", const: "GitCompare" }
6587
6728
  ]
6588
6729
  },
6589
6730
  color: {
@@ -6701,7 +6842,67 @@ const componentBasicUiSchema = (theme) => {
6701
6842
  },
6702
6843
  {
6703
6844
  type: "Control",
6704
- scope: "#/properties/proc",
6845
+ scope: "#/properties/proc5",
6846
+ config: {
6847
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6848
+ },
6849
+ options: {
6850
+ widget: "EmptyBox"
6851
+ }
6852
+ },
6853
+ {
6854
+ type: "Control",
6855
+ scope: "#/properties/proc6",
6856
+ config: {
6857
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6858
+ },
6859
+ options: {
6860
+ widget: "EmptyBox"
6861
+ }
6862
+ },
6863
+ {
6864
+ type: "Control",
6865
+ scope: "#/properties/proc7",
6866
+ config: {
6867
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6868
+ },
6869
+ options: {
6870
+ widget: "EmptyBox"
6871
+ }
6872
+ },
6873
+ {
6874
+ type: "Control",
6875
+ scope: "#/properties/proc8",
6876
+ config: {
6877
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6878
+ },
6879
+ options: {
6880
+ widget: "EmptyBox"
6881
+ }
6882
+ },
6883
+ {
6884
+ type: "Control",
6885
+ scope: "#/properties/proc9",
6886
+ config: {
6887
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6888
+ },
6889
+ options: {
6890
+ widget: "EmptyBox"
6891
+ }
6892
+ },
6893
+ {
6894
+ type: "Control",
6895
+ scope: "#/properties/proc10",
6896
+ config: {
6897
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6898
+ },
6899
+ options: {
6900
+ widget: "EmptyBox"
6901
+ }
6902
+ },
6903
+ {
6904
+ type: "Control",
6905
+ scope: "#/properties/proc11",
6705
6906
  config: {
6706
6907
  layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6707
6908
  },
@@ -6761,7 +6962,7 @@ const componentBasicUiSchema = (theme) => {
6761
6962
  },
6762
6963
  {
6763
6964
  type: "Control",
6764
- scope: "#/properties/proc",
6965
+ scope: "#/properties/proca",
6765
6966
  config: {
6766
6967
  layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6767
6968
  },
@@ -7223,7 +7424,7 @@ const CoreSection = {
7223
7424
  },
7224
7425
  {
7225
7426
  type: "Control",
7226
- scope: "#/properties/proc",
7427
+ scope: "#/properties/proc5",
7227
7428
  config: {
7228
7429
  layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7229
7430
  },
@@ -7233,20 +7434,90 @@ const CoreSection = {
7233
7434
  },
7234
7435
  {
7235
7436
  type: "Control",
7236
- scope: "#/properties/layout",
7437
+ scope: "#/properties/proc6",
7237
7438
  config: {
7238
- layout: 12,
7239
- main: {
7240
- label: "Layout",
7241
- childElementLabel: "Layout"
7242
- },
7243
- style: {
7244
- marginLeft: "-24px",
7245
- marginBottom: "24px !important",
7246
- labelStyle: {
7247
- marginLeft: "24px"
7248
- },
7249
- detailsStyle: {
7439
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7440
+ },
7441
+ options: {
7442
+ widget: "EmptyBox"
7443
+ }
7444
+ },
7445
+ {
7446
+ type: "Control",
7447
+ scope: "#/properties/proc7",
7448
+ config: {
7449
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7450
+ },
7451
+ options: {
7452
+ widget: "EmptyBox"
7453
+ }
7454
+ },
7455
+ {
7456
+ type: "Control",
7457
+ scope: "#/properties/proc8",
7458
+ config: {
7459
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7460
+ },
7461
+ options: {
7462
+ widget: "EmptyBox"
7463
+ }
7464
+ },
7465
+ {
7466
+ type: "Control",
7467
+ scope: "#/properties/proc9",
7468
+ config: {
7469
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7470
+ },
7471
+ options: {
7472
+ widget: "EmptyBox"
7473
+ }
7474
+ },
7475
+ {
7476
+ type: "Control",
7477
+ scope: "#/properties/proc10",
7478
+ config: {
7479
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7480
+ },
7481
+ options: {
7482
+ widget: "EmptyBox"
7483
+ }
7484
+ },
7485
+ {
7486
+ type: "Control",
7487
+ scope: "#/properties/proc11",
7488
+ config: {
7489
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7490
+ },
7491
+ options: {
7492
+ widget: "EmptyBox"
7493
+ }
7494
+ },
7495
+ {
7496
+ type: "Control",
7497
+ scope: "#/properties/proca",
7498
+ config: {
7499
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7500
+ },
7501
+ options: {
7502
+ widget: "EmptyBox"
7503
+ }
7504
+ },
7505
+ {
7506
+ type: "Control",
7507
+ scope: "#/properties/layout",
7508
+ config: {
7509
+ layout: 12,
7510
+ main: {
7511
+ label: "Layout",
7512
+ childElementLabel: "Layout"
7513
+ },
7514
+ style: {
7515
+ marginLeft: "-24px",
7516
+ marginBottom: "24px !important",
7517
+ labelStyle: {
7518
+ marginLeft: "24px"
7519
+ },
7520
+ detailsStyle: {
7250
7521
  marginLeft: "24px"
7251
7522
  }
7252
7523
  }
@@ -7283,7 +7554,7 @@ const CoreSection = {
7283
7554
  },
7284
7555
  {
7285
7556
  type: "Control",
7286
- scope: "#/properties/proc",
7557
+ scope: "#/properties/procb",
7287
7558
  config: {
7288
7559
  layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7289
7560
  },
@@ -7368,95 +7639,71 @@ const EventSection = (theme) => {
7368
7639
  disableAction: true,
7369
7640
  disableSelection: true,
7370
7641
  enableDrag: true
7371
- }
7372
- },
7373
- elements: [
7374
- {
7375
- accessorKey: "eventType",
7376
- header: "Event's Type",
7377
- type: "string",
7378
- size: 300
7379
- },
7380
- {
7381
- accessorKey: "Handler",
7382
- header: "Handler",
7383
- type: "string",
7384
- size: 200
7385
7642
  },
7386
- {
7387
- accessorKey: "Edit_Approve_Records",
7388
- header: "Edit",
7389
- size: 150,
7390
- type: "action",
7391
- widget: {
7643
+ action: [
7644
+ {
7392
7645
  type: "Control",
7393
7646
  scope: "#/properties/Edit_Records",
7394
7647
  options: {
7395
- widget: "IconButton"
7648
+ widget: "Button"
7396
7649
  },
7397
7650
  config: {
7398
7651
  main: {
7399
7652
  size: "small",
7400
- icon: "TableEditIcon",
7653
+ startIcon: "EditIcon",
7401
7654
  tooltipMessage: "Edit This Record",
7402
- onClick: "eventEditHandler"
7403
- },
7404
- style: {
7405
- fill: theme.palette.primary.main,
7406
- "& :hover": {
7407
- fill: theme.palette.primary.dark
7408
- }
7655
+ onClick: "eventEditHandler",
7656
+ name: "Edit"
7409
7657
  }
7410
7658
  }
7411
- }
7412
- },
7413
- {
7414
- accessorKey: "Reject_Records",
7415
- header: "Delete",
7416
- size: 150,
7417
- type: "action",
7418
- widget: {
7659
+ },
7660
+ {
7419
7661
  type: "Control",
7420
7662
  scope: "#/properties/RejectButton",
7421
7663
  accessorKeyName: "Reject_Records",
7422
7664
  options: {
7423
- widget: "IconButton"
7665
+ widget: "Button"
7424
7666
  },
7425
7667
  config: {
7426
7668
  main: {
7427
- icon: "Bin",
7669
+ startIcon: "Bin",
7428
7670
  tooltipMessage: "Reject This Record",
7429
- onClick: "deletePopUpEvent"
7430
- },
7431
- style: {
7432
- fill: theme.palette.primary.main,
7433
- "& :hover": {
7434
- fill: theme.palette.primary.dark
7435
- }
7671
+ onClick: "deletePopUpEvent",
7672
+ name: "Delete",
7673
+ size: "small"
7436
7674
  }
7437
7675
  }
7438
- }
7439
- },
7440
- {
7441
- header: "Copy",
7442
- field: "Copy_Event",
7443
- size: 150,
7444
- type: "action",
7445
- widget: {
7676
+ },
7677
+ {
7446
7678
  type: "Control",
7447
7679
  scope: "#/properties/Copy_Event",
7448
7680
  options: {
7449
- widget: "IconButton"
7681
+ widget: "Button"
7450
7682
  },
7451
7683
  config: {
7452
7684
  main: {
7453
- icon: "FileCopyIcon",
7685
+ startIcon: "FileCopyIcon",
7454
7686
  onClick: "copyPasteElement",
7455
7687
  tooltipMessage: "Reject This Record",
7456
- styleDefault: true
7688
+ styleDefault: false,
7689
+ name: "Copy"
7457
7690
  }
7458
7691
  }
7459
7692
  }
7693
+ ]
7694
+ },
7695
+ elements: [
7696
+ {
7697
+ accessorKey: "eventType",
7698
+ header: "Event's Type",
7699
+ type: "string",
7700
+ size: 300
7701
+ },
7702
+ {
7703
+ accessorKey: "Handler",
7704
+ header: "Handler",
7705
+ type: "string",
7706
+ size: 200
7460
7707
  }
7461
7708
  ]
7462
7709
  }
@@ -7583,6 +7830,60 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7583
7830
  ]
7584
7831
  };
7585
7832
  };
7833
+ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
7834
+ return {
7835
+ type: "Control",
7836
+ scope: `#/properties/${parentScope}`,
7837
+ options: {
7838
+ widget: "Array"
7839
+ },
7840
+ config: {
7841
+ layout: 12,
7842
+ main: {
7843
+ label: arrayLabel
7844
+ },
7845
+ style: {
7846
+ marginLeft: "-24px",
7847
+ marginBottom: "24px !important",
7848
+ labelStyle: {
7849
+ marginLeft: "24px"
7850
+ },
7851
+ detailsStyle: {
7852
+ marginLeft: "24px"
7853
+ }
7854
+ }
7855
+ },
7856
+ elements: [
7857
+ {
7858
+ type: "Control",
7859
+ scope: `#/properties/${firstFieldScope}`,
7860
+ options: {
7861
+ widget: "InputField"
7862
+ },
7863
+ config: {
7864
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7865
+ main: {
7866
+ label: firstFieldLabel || "Labels for Tab"
7867
+ }
7868
+ }
7869
+ },
7870
+ {
7871
+ type: "Control",
7872
+ scope: `#/properties/${secondFieldScope}`,
7873
+ options: {
7874
+ widget: "InputField"
7875
+ },
7876
+ config: {
7877
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7878
+ main: {
7879
+ label: secondFieldLabel || "Labels for Tab"
7880
+ }
7881
+ }
7882
+ },
7883
+ emptyBox$1("ArrayControlEmpty2", { xs: 6, sm: 6, md: 4, lg: 4 })
7884
+ ]
7885
+ };
7886
+ };
7586
7887
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
7587
7888
  sizeHolder.elements[1] = {
7588
7889
  type: "Control",
@@ -7705,12 +8006,26 @@ const BaseSection = {
7705
8006
  const buildPropertiesSection = function(type) {
7706
8007
  let uiSchema = _.cloneDeep(BaseSection);
7707
8008
  switch (type) {
8009
+ case "OTP_Input":
8010
+ uiSchema.elements = [
8011
+ getInputField("seperator", "Seperator"),
8012
+ getInputField("length", "OTP Length"),
8013
+ getRadioInputField("masking", "OTP Masking", ["YES", "NO"]),
8014
+ emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
8015
+ ];
8016
+ break;
7708
8017
  case "Array":
7709
8018
  uiSchema.elements = [
7710
8019
  getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
8020
+ getRadioInputField("disableAddButton", "Disable Add Button", ["YES", "NO"]),
8021
+ getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
8022
+ getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
7711
8023
  getInputField("childElementLabel", "Child Element Label"),
7712
- emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 }),
7713
- emptyBox$1("empty2", { xs: 0, sm: 0, md: 4, lg: 3 })
8024
+ getInputField("showKeyAsLabel", "ShowKey As Label"),
8025
+ getInputField("rowSpacing", "Row Spacing"),
8026
+ getInputField("columnSpacing", "Column Spacing"),
8027
+ getInputField("spacing", "Spacing"),
8028
+ emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
7714
8029
  ];
7715
8030
  break;
7716
8031
  case "TreeMap":
@@ -7763,12 +8078,26 @@ const buildPropertiesSection = function(type) {
7763
8078
  emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
7764
8079
  ];
7765
8080
  break;
8081
+ case "PopOver":
8082
+ uiSchema.elements = [
8083
+ getSelectField("positionVertical", "Attach To (Vertical)"),
8084
+ getSelectField("positionHorizontal", "Attach To (Horizontal)"),
8085
+ getSelectField("contentVertical", "Popover Start (Vertical)"),
8086
+ getSelectField("contentHorizontal", "Popover Start (Horizontal)"),
8087
+ getInputField("width", "Width"),
8088
+ getInputField("gap", "Gap"),
8089
+ emptyBox$1("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
8090
+ ];
8091
+ break;
7766
8092
  case "Text":
7767
8093
  uiSchema.elements = [
7768
8094
  getInputField("placeholder", "Placeholder"),
7769
8095
  getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7770
8096
  getSelectField("variant", "Variant"),
7771
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 }),
8097
+ getInputField("toolTip", "Tooltip"),
8098
+ getSelectField("toolTipPosition", "Tooltip Position"),
8099
+ getSelectField("iconName", "Start Icon"),
8100
+ emptyBox$1("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
7772
8101
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
7773
8102
  getInputField("keyName", "Event Key Name")
7774
8103
  ];
@@ -7806,7 +8135,8 @@ const buildPropertiesSection = function(type) {
7806
8135
  getInputField("nameKey", "Key for Name"),
7807
8136
  getInputField("imageKey", "Key for Image"),
7808
8137
  getInputField("scoreKey", "Key for comparing parameter"),
7809
- emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 })
8138
+ getRadioInputField("isScoreAmount", "Is Score an Amount Type", ["YES", "No"]),
8139
+ emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 })
7810
8140
  ];
7811
8141
  break;
7812
8142
  case "CardSlider":
@@ -7822,8 +8152,9 @@ const buildPropertiesSection = function(type) {
7822
8152
  getInputField("bottomLabel_1", "First BottomLabel"),
7823
8153
  getInputField("bottomLabel_2", "Second BottomLabel"),
7824
8154
  getInputField("bottomLabel_3", "Third BottomLabel"),
7825
- emptyBox$1("ProgressBarCardEmpty1"),
7826
- emptyBox$1("ProgressBarCardEmpty2")
8155
+ getInputField("size", "Size"),
8156
+ getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
8157
+ getArrayControl("pieArcColors", "color", "Color")
7827
8158
  ];
7828
8159
  break;
7829
8160
  case "card":
@@ -7835,6 +8166,28 @@ const buildPropertiesSection = function(type) {
7835
8166
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
7836
8167
  ];
7837
8168
  break;
8169
+ case "HierarchyChart":
8170
+ uiSchema.elements = [
8171
+ getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8172
+ getSelectField("linkType", "Link Type"),
8173
+ getInputField("nodeWidth", "Node Width"),
8174
+ getInputField("nodeHeight", "Node Height"),
8175
+ getInputField("chartHeight", "Chart Height"),
8176
+ getInputField("stepPercent", "Link Bend Position"),
8177
+ emptyBox$1("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 })
8178
+ ];
8179
+ break;
8180
+ case "MetricCard":
8181
+ uiSchema.elements = [
8182
+ getInputField("url", "Image Url"),
8183
+ getInputField("label", "Label"),
8184
+ getInputField("cardValue", "Value"),
8185
+ getInputField("description", "Description"),
8186
+ getSelectField("growthRate", "Growth Rate"),
8187
+ getInputField("color", "Card Color"),
8188
+ emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8189
+ ];
8190
+ break;
7838
8191
  case "Button":
7839
8192
  uiSchema.elements = [
7840
8193
  getSelectField("buttonType", "Button Type"),
@@ -7845,22 +8198,45 @@ const buildPropertiesSection = function(type) {
7845
8198
  emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
7846
8199
  ];
7847
8200
  break;
8201
+ case "ButtonGroup":
8202
+ uiSchema.elements = [
8203
+ getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
8204
+ getInputField("size", "Size"),
8205
+ getSelectField("color", "Color"),
8206
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
8207
+ ];
8208
+ break;
8209
+ case "Box":
8210
+ uiSchema.elements = [
8211
+ getSelectField("iconName", "Icon Name"),
8212
+ emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
8213
+ ];
8214
+ break;
7848
8215
  case "Graph":
7849
8216
  uiSchema.elements = [
7850
8217
  getInputField("height", "Height"),
7851
8218
  getInputField("heading", "Heading"),
8219
+ getInputField("subHeader", "Sub Header"),
7852
8220
  getSelectField("graphType", "Graph Type"),
7853
8221
  getInputField("leftLabel", "Left Label"),
8222
+ getInputField("rightLabel", "Right Label"),
8223
+ getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
7854
8224
  getInputField("bottomLabel", "Bottom Label"),
7855
8225
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
7856
8226
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7857
- getInputField("yAxisValue", "Y-AxisValue"),
7858
- getInputField("xAxisValue", "X-AxisValue"),
8227
+ getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
8228
+ getInputField("yAxisValue", "Y-Axis Key"),
8229
+ getInputField("xAxisValue", "X-Axis Key"),
8230
+ getSelectField("xAxisType", "X-AxisType"),
7859
8231
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7860
8232
  getInputField("leftMargin", "Left Margin"),
7861
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
7862
- getArrayControl("legendLabels", "label"),
7863
- getArrayControl("pieArcColors", "color")
8233
+ getInputField("yAxisTickCount", "Y Axis TickCount"),
8234
+ getInputField("xAxisTickCount", "X Axis TickCount"),
8235
+ getSelectField("xAxisFormatType", "X Axis Format Type"),
8236
+ getInputField("growthRateKey", "Growth Rate Key"),
8237
+ getInputField("tooltipUnit", "Tooltip Unit"),
8238
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8239
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
7864
8240
  ];
7865
8241
  break;
7866
8242
  case "WrapperSection":
@@ -7868,8 +8244,13 @@ const buildPropertiesSection = function(type) {
7868
8244
  getRadioInputField("divider", "Divider", ["YES", "No"]),
7869
8245
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
7870
8246
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
8247
+ getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
7871
8248
  getInputField("rowSpacing", "Row Spacing"),
7872
- emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
8249
+ getInputField("columnSpacing", "Column Spacing"),
8250
+ getInputField("spacing", "Spacing"),
8251
+ getInputField("iconUrl", "Icon Url"),
8252
+ getInputField("wrapperId", "Wrapper Id"),
8253
+ emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }),
7873
8254
  emptyBox$1("WrapperSectionEmpty2")
7874
8255
  ];
7875
8256
  break;
@@ -7878,7 +8259,7 @@ const buildPropertiesSection = function(type) {
7878
8259
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
7879
8260
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
7880
8261
  emptyBox$1("TabEmpty"),
7881
- getArrayControl("sectionLabels", "label")
8262
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
7882
8263
  ];
7883
8264
  break;
7884
8265
  case "Table":
@@ -7898,13 +8279,17 @@ const buildPropertiesSection = function(type) {
7898
8279
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
7899
8280
  getInputField("selectKey", "Selection Key"),
7900
8281
  getMultiSelectField("filteringOptions", "Filtering Options"),
8282
+ getSelectField("maxPageSize", "Max Page Size"),
8283
+ getSelectField("initialDensity", "Initial Toggle Density"),
8284
+ getInputField("rowIdKey", "Row ID Key"),
8285
+ getInputField("parentIdKey", "Parent ID Key"),
8286
+ emptyBox$1("TreeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
7901
8287
  buildWrapper("Tree Table Properties", [
7902
8288
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
7903
8289
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
7904
8290
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
7905
- getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
7906
8291
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
7907
- emptyBox$1("LazyLoadingTableEmpty2"),
8292
+ getInputField("defaultColumnSize", "Default Column Size"),
7908
8293
  emptyBox$1("LazyLoadingTableEmpty3")
7909
8294
  ]),
7910
8295
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
@@ -7914,6 +8299,10 @@ const buildPropertiesSection = function(type) {
7914
8299
  break;
7915
8300
  case "Radio":
7916
8301
  uiSchema.elements = [
8302
+ getInputField("errorMessage", "Error Message"),
8303
+ getInputField("toolTip", "Tooltip"),
8304
+ getSelectField("toolTipPosition", "Tooltip Position"),
8305
+ emptyBox$1("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
7917
8306
  getArrayControl("sectionLabels", "label", "Options Of Radio")
7918
8307
  ];
7919
8308
  break;
@@ -7922,15 +8311,39 @@ const buildPropertiesSection = function(type) {
7922
8311
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7923
8312
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
7924
8313
  getSelectField("variant", "Variant"),
7925
- emptyBox$1("SelectEmpty")
8314
+ getInputField("toolTip", "Tooltip"),
8315
+ getSelectField("toolTipPosition", "Tooltip Position"),
8316
+ emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
7926
8317
  ];
7927
8318
  break;
7928
8319
  case "MultipleSelect":
7929
8320
  uiSchema.elements = [
7930
8321
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7931
8322
  getSelectField("variant", "Variant"),
7932
- emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
7933
- emptyBox$1("MultipleSelectEmpty2")
8323
+ getInputField("toolTip", "Tooltip"),
8324
+ getSelectField("toolTipPosition", "Tooltip Position")
8325
+ ];
8326
+ break;
8327
+ case "PdfViewer":
8328
+ uiSchema.elements = [
8329
+ getInputField("scale", "Zoom"),
8330
+ emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
8331
+ ];
8332
+ break;
8333
+ case "Date":
8334
+ uiSchema.elements = [
8335
+ getSelectField("variant", "Variant"),
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 "DateTime":
8342
+ uiSchema.elements = [
8343
+ getSelectField("variant", "Variant"),
8344
+ getInputField("toolTip", "Tooltip"),
8345
+ getSelectField("toolTipPosition", "Tooltip Position"),
8346
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
7934
8347
  ];
7935
8348
  break;
7936
8349
  case "Thought":
@@ -7938,6 +8351,40 @@ const buildPropertiesSection = function(type) {
7938
8351
  getTextArea("thought", "Today's thought", false)
7939
8352
  ];
7940
8353
  break;
8354
+ case "Image":
8355
+ uiSchema.elements = [
8356
+ getInputField("imageUrl", "Image URL"),
8357
+ getInputField("height", "Image Height"),
8358
+ getInputField("toolTip", "Tooltip"),
8359
+ getSelectField("toolTipPosition", "Tooltip Position"),
8360
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8361
+ ];
8362
+ break;
8363
+ case "FileInput":
8364
+ uiSchema.elements = [
8365
+ getRadioInputField("variant", "Variant", ["Outlined", "Standard"]),
8366
+ getRadioInputField("disableUpload", "Disable Upload", ["YES", "NO"]),
8367
+ getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
8368
+ getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
8369
+ getInputField("description", "Enter description"),
8370
+ getInputField("toolTip", "Tooltip"),
8371
+ getSelectField("toolTipPosition", "Tooltip Position"),
8372
+ getInputField("chooseButtonLabel", "ChooseButton Label"),
8373
+ getInputField("noFileAvailableMessage", "No Found Message"),
8374
+ getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
8375
+ getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
8376
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8377
+ ];
8378
+ break;
8379
+ case "Camera":
8380
+ uiSchema.elements = [
8381
+ getSelectField("iconName", "Icon Name"),
8382
+ getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
8383
+ getSelectField("color", "Color"),
8384
+ getInputField("tooltipMessage", "Tooltip Message"),
8385
+ getSelectField("variant", "Variant"),
8386
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
8387
+ ];
7941
8388
  }
7942
8389
  return uiSchema;
7943
8390
  };
@@ -7975,13 +8422,13 @@ const StyleSection = {
7975
8422
  }
7976
8423
  ]
7977
8424
  };
7978
- const TableSection = (theme) => {
8425
+ const TableSection = (theme, scopeName = "elements") => {
7979
8426
  const uiSchema = {
7980
8427
  type: "HorizontalLayout",
7981
8428
  elements: [
7982
8429
  {
7983
8430
  type: "Control",
7984
- scope: "#/properties/elements",
8431
+ scope: `#/properties/${scopeName}`,
7985
8432
  options: {
7986
8433
  widget: "Table"
7987
8434
  },
@@ -7992,7 +8439,7 @@ const TableSection = (theme) => {
7992
8439
  {
7993
8440
  widget: {
7994
8441
  type: "Control",
7995
- scope: "#/properties/New_Record",
8442
+ scope: `#/properties/${scopeName}_New_Record`,
7996
8443
  options: {
7997
8444
  widget: "IconButton"
7998
8445
  },
@@ -8019,7 +8466,7 @@ const TableSection = (theme) => {
8019
8466
  {
8020
8467
  widget: {
8021
8468
  type: "Control",
8022
- scope: "#/properties/Paste_Component",
8469
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
8023
8470
  options: {
8024
8471
  widget: "IconButton"
8025
8472
  },
@@ -8048,95 +8495,70 @@ const TableSection = (theme) => {
8048
8495
  disableAction: true,
8049
8496
  disableSelection: true,
8050
8497
  enableDrag: true
8051
- }
8052
- },
8053
- elements: [
8054
- {
8055
- accessorKey: "name",
8056
- header: "Name",
8057
- type: "string",
8058
- size: 300
8059
- },
8060
- {
8061
- accessorKey: "type",
8062
- header: "Type",
8063
- type: "string",
8064
- size: 200
8065
8498
  },
8066
- {
8067
- header: "Edit Record",
8068
- field: "Reject_Records",
8069
- size: 150,
8070
- type: "action",
8071
- widget: {
8499
+ action: [
8500
+ {
8072
8501
  type: "Control",
8073
- scope: "#/properties/RejectButton",
8502
+ scope: "#/properties/EditButton",
8074
8503
  options: {
8075
- widget: "IconButton"
8504
+ widget: "Button"
8076
8505
  },
8077
8506
  config: {
8078
8507
  main: {
8079
- icon: "TableEditIcon",
8508
+ startIcon: "EditIcon",
8080
8509
  size: "small",
8081
8510
  onClick: "editComponents",
8082
- tooltipMessage: "Reject This Record"
8083
- },
8084
- style: {
8085
- fill: theme.palette.primary.main,
8086
- "& :hover": {
8087
- fill: theme.palette.primary.dark
8088
- }
8511
+ tooltipMessage: "Reject This Record",
8512
+ name: "Edit"
8089
8513
  }
8090
8514
  }
8091
- }
8092
- },
8093
- {
8094
- header: "Delete",
8095
- field: "Reject_Records",
8096
- size: 150,
8097
- type: "action",
8098
- widget: {
8515
+ },
8516
+ {
8099
8517
  type: "Control",
8100
8518
  scope: "#/properties/RejectButton",
8101
8519
  options: {
8102
- widget: "IconButton"
8520
+ widget: "Button"
8103
8521
  },
8104
8522
  config: {
8105
8523
  main: {
8106
- icon: "Bin",
8524
+ startIcon: "Bin",
8107
8525
  onClick: "deletePopUpComponent",
8108
- tooltipMessage: "Reject This Record"
8109
- },
8110
- style: {
8111
- fill: theme.palette.primary.main,
8112
- "& :hover": {
8113
- fill: theme.palette.primary.dark
8114
- }
8526
+ tooltipMessage: "Reject This Record",
8527
+ name: "Delete",
8528
+ size: "small"
8115
8529
  }
8116
8530
  }
8117
- }
8118
- },
8119
- {
8120
- header: "Copy",
8121
- field: "Copy_Component",
8122
- size: 150,
8123
- type: "action",
8124
- widget: {
8531
+ },
8532
+ {
8125
8533
  type: "Control",
8126
- scope: "#/properties/Copy_Component",
8534
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8127
8535
  options: {
8128
- widget: "IconButton"
8536
+ widget: "Button"
8129
8537
  },
8130
8538
  config: {
8131
8539
  main: {
8132
- icon: "FileCopyIcon",
8540
+ startIcon: "FileCopyIcon",
8133
8541
  onClick: "copyPasteElement",
8134
- styleDefault: true,
8135
- disabled: false
8542
+ styleDefault: false,
8543
+ name: "Copy"
8136
8544
  }
8137
8545
  }
8138
8546
  }
8139
- }
8547
+ ]
8548
+ },
8549
+ elements: [
8550
+ {
8551
+ accessorKey: "name",
8552
+ header: "Name",
8553
+ type: "string",
8554
+ size: 300
8555
+ },
8556
+ {
8557
+ accessorKey: "type",
8558
+ header: "Type",
8559
+ type: "string",
8560
+ size: 200
8561
+ }
8140
8562
  ]
8141
8563
  }
8142
8564
  ]
@@ -8302,12 +8724,16 @@ var buildConfig = (FormData) => {
8302
8724
  if (formData.events) {
8303
8725
  delete formData.events;
8304
8726
  }
8727
+ if (formData.tabLabelElements) {
8728
+ component.tabLabelElements = formData.tabLabelElements || [];
8729
+ delete formData.tabLabelElements;
8730
+ }
8305
8731
  component = { ...formData, ...component };
8306
8732
  return component;
8307
8733
  };
8308
8734
  const createLayoutFormat = (layout, type) => {
8309
8735
  if (_.isEmpty(layout)) {
8310
- const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought"];
8736
+ const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout", "Table"];
8311
8737
  if (fullLayoutComponents.includes(type)) {
8312
8738
  return { xs: 12, sm: 12, md: 12, lg: 12 };
8313
8739
  } else if (type === "Graph") {
@@ -8320,7 +8746,7 @@ const createLayoutFormat = (layout, type) => {
8320
8746
  }
8321
8747
  let data = {};
8322
8748
  layout.map((e) => {
8323
- data[e.key || "xs"] = +e.value || 5.5;
8749
+ data[e.key || "xs"] = e.value === null || e.value === void 0 || e.value === "" ? 5.5 : +e.value;
8324
8750
  });
8325
8751
  return data;
8326
8752
  };
@@ -8334,9 +8760,27 @@ const flatObjectValueInArray = (config2 = []) => {
8334
8760
  });
8335
8761
  return data;
8336
8762
  };
8763
+ const createKeyValueMap = (config2 = []) => {
8764
+ return config2.reduce((acc, item) => {
8765
+ if (!item.key)
8766
+ return acc;
8767
+ acc[item.key] = item.value;
8768
+ return acc;
8769
+ }, {});
8770
+ };
8337
8771
  const clearFromSessionStorage = () => {
8338
8772
  sessionStorage.removeItem("pageFormdata");
8339
8773
  };
8774
+ const validateAndShowErrors = (store2) => {
8775
+ if (_.isEmpty(store2.ctx.core.errors))
8776
+ return false;
8777
+ store2.setValidation("ValidateAndShow");
8778
+ store2.setNotify({
8779
+ Fail: true,
8780
+ FailMessage: "Error on Page"
8781
+ });
8782
+ return true;
8783
+ };
8340
8784
  const getNavigationHistory = (config2, path) => {
8341
8785
  if (path) {
8342
8786
  let urlRoutes = config2.name;
@@ -8395,11 +8839,13 @@ async function saveHandler(store2, service2, submitHandler) {
8395
8839
  const saveReturn = await submitHandler(store2, service2, config2);
8396
8840
  navigateHandler(store2, true, "/PageMasterRecords");
8397
8841
  } catch (err) {
8398
- navigateHandler(store2, false);
8842
+ navigateHandler(store2, false, void 0, err.message);
8399
8843
  }
8844
+ } else {
8845
+ navigateHandler(store2, false);
8400
8846
  }
8401
8847
  }
8402
- const navigateHandler = (store2, isSubmitted, pageName) => {
8848
+ const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
8403
8849
  if (isSubmitted) {
8404
8850
  sessionStorage.removeItem("pageFormdata");
8405
8851
  store2.navigate(pageName || -1);
@@ -8411,7 +8857,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
8411
8857
  store2.setValidation("ValidateAndShow");
8412
8858
  store2.setNotify({
8413
8859
  Fail: true,
8414
- FailMessage: "Errors on Page"
8860
+ FailMessage: errorMessage || "Errors on Page"
8415
8861
  });
8416
8862
  }
8417
8863
  };
@@ -8436,34 +8882,47 @@ function okHandler(store2) {
8436
8882
  const sectionLabels = {
8437
8883
  Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8438
8884
  MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8439
- Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8440
- LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8441
- WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8442
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8443
- SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8885
+ Table: ["Core", "Components", "Properties", "Events", "Style"],
8886
+ LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8887
+ WrapperSection: ["Core", "Components", "Properties", "Style"],
8888
+ HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8889
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8890
+ SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8444
8891
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8445
8892
  UploadFile: ["Core", "Events", "Style", "Validation"],
8446
8893
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8447
8894
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8448
- Box: ["Core", "Events", "Style", "Validation"],
8895
+ Box: ["Core", "Properties", "Events", "Style", "Validation"],
8449
8896
  Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8450
- ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8451
- RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
8897
+ ProgressBarCard: ["Core", "Properties", "Events", "Style"],
8898
+ ProgressBar: ["Core", "Properties", "Events", "Style"],
8899
+ RankCard: ["Core", "Properties", "Events", "Style"],
8900
+ MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8901
+ HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8452
8902
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8453
- Timer: ["Core", "Events", "Style", "Validation"],
8454
- Rank: ["Core", "Events", "Style", "Validation"],
8903
+ Timer: ["Core", "Events", "Style"],
8904
+ Rank: ["Core", "Events", "Style"],
8455
8905
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8456
- Array: ["Core", "Components", "Properties", "Validation"],
8906
+ ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8907
+ Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8457
8908
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8458
8909
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8459
8910
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8460
- PopUp: ["Core", "Components", "Properties", "Style"],
8911
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
8912
+ PopOver: ["Core", "Components", "Properties", "Style"],
8913
+ PdfViewer: ["Core", "Properties", "Style"],
8461
8914
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8462
8915
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8463
8916
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8464
8917
  TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8465
8918
  ColumnGroup: ["Core", "Components"],
8466
- Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8919
+ Thought: ["Core", "Properties", "Events", "Style"],
8920
+ Date: ["Core", "Properties", "Events", "Style", "Validation"],
8921
+ DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
8922
+ Image: ["Core", "Properties", "Events", "Style"],
8923
+ FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
8924
+ Camera: ["Core", "Properties", "Events", "Style", "Validation"],
8925
+ OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
8467
8926
  };
8468
8927
  function refreshPage(type, store2) {
8469
8928
  var _a, _b;
@@ -8476,6 +8935,7 @@ function refreshPage(type, store2) {
8476
8935
  Style: StyleSection,
8477
8936
  Events: EventSection(store2.theme.myTheme),
8478
8937
  Components: TableSection(store2.theme.myTheme),
8938
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8479
8939
  Properties: buildPropertiesSection(type),
8480
8940
  Validation: ValidationSection
8481
8941
  };
@@ -8487,7 +8947,7 @@ function refreshPage(type, store2) {
8487
8947
  const lastDotIndex = path.lastIndexOf(".");
8488
8948
  const parentPath = path.slice(0, lastDotIndex);
8489
8949
  const parentObj = _.get(currentConfig, parentPath);
8490
- if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8950
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
8491
8951
  UiSchema.elements[0].elements[0].elements[4] = {
8492
8952
  type: "Control",
8493
8953
  scope: "#/properties/columnFormat",
@@ -8566,6 +9026,44 @@ function refreshPage(type, store2) {
8566
9026
  }
8567
9027
  }
8568
9028
  };
9029
+ UiSchema.elements[0].elements[0].elements[10] = {
9030
+ type: "Control",
9031
+ scope: "#/properties/dateFormat",
9032
+ options: {
9033
+ widget: "SelectInputField"
9034
+ },
9035
+ config: {
9036
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
9037
+ main: {
9038
+ label: "Date Time Format"
9039
+ }
9040
+ }
9041
+ };
9042
+ UiSchema.elements[0].elements[0].elements[11] = {
9043
+ type: "Control",
9044
+ scope: "#/properties/emptyBox",
9045
+ options: {
9046
+ widget: "EmptyBox"
9047
+ },
9048
+ config: {
9049
+ layout: { xs: 0, sm: 0, md: 0, lg: 6 }
9050
+ }
9051
+ };
9052
+ }
9053
+ if ((parentObj == null ? void 0 : parentObj.type) === "LeaderBoard") {
9054
+ UiSchema.elements[0].elements[0].elements[4] = {
9055
+ type: "Control",
9056
+ scope: "#/properties/columnFormat",
9057
+ options: {
9058
+ widget: "SelectInputField"
9059
+ },
9060
+ config: {
9061
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
9062
+ main: {
9063
+ label: "Column Format"
9064
+ }
9065
+ }
9066
+ };
8569
9067
  }
8570
9068
  if (sessionStorage.getItem("copiedConfig")) {
8571
9069
  this.ElementPathSetter(UiSchema);
@@ -8628,13 +9126,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8628
9126
  },
8629
9127
  editComponents: function() {
8630
9128
  var _a, _b, _c;
9129
+ if (validateAndShowErrors(store2))
9130
+ return;
8631
9131
  const rowId = dynamicData2.path.split(".")[1];
8632
9132
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8633
9133
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8634
9134
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8635
9135
  if (path) {
8636
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
8637
- const finalPath = `${path2}.elements[${rowId}]`;
9136
+ let finalPath = `${path}`;
9137
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9138
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9139
+ } else {
9140
+ finalPath = `${finalPath}.elements[${rowId}]`;
9141
+ }
8638
9142
  store2.searchParams.set("path", finalPath);
8639
9143
  store2.setSearchParams(store2.searchParams);
8640
9144
  this.setPage();
@@ -8646,7 +9150,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8646
9150
  var _a;
8647
9151
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8648
9152
  const rowId = sessionStorage.getItem("rowId");
8649
- store2.formData.elements.splice(rowId, 1);
9153
+ const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9154
+ if (isTabLabelElements) {
9155
+ store2.formData.tabLabelElements.splice(rowId, 1);
9156
+ } else {
9157
+ store2.formData.elements.splice(rowId, 1);
9158
+ }
8650
9159
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
8651
9160
  const data = path ? _.get(response, path) : response;
8652
9161
  store2.setFormdata(data);
@@ -8654,6 +9163,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8654
9163
  store2.updateDialog("popUpComponentSection");
8655
9164
  }
8656
9165
  sessionStorage.removeItem("rowId");
9166
+ sessionStorage.removeItem("isTabLabelElements");
8657
9167
  },
8658
9168
  deleteEvent: function(shouldUpdateDialog = true) {
8659
9169
  var _a;
@@ -8669,18 +9179,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8669
9179
  },
8670
9180
  widgetAddClickHandler: function() {
8671
9181
  var _a;
9182
+ if (validateAndShowErrors(store2))
9183
+ return;
8672
9184
  if (!Array.isArray(store2.formData.elements)) {
8673
9185
  store2.formData.elements = [];
8674
9186
  }
9187
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9188
+ store2.formData.tabLabelElements = [];
9189
+ }
8675
9190
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8676
9191
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8677
- const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9192
+ let finalPath = `${path}`;
9193
+ if (dynamicData2.path.startsWith("tabLabel")) {
9194
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9195
+ } else {
9196
+ finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9197
+ }
8678
9198
  store2.searchParams.set("path", finalPath);
8679
9199
  store2.setSearchParams(store2.searchParams);
8680
9200
  this.setPage();
8681
9201
  },
8682
9202
  eventEditHandler: function() {
8683
9203
  var _a, _b;
9204
+ if (validateAndShowErrors(store2))
9205
+ return;
8684
9206
  const rowId = dynamicData2.path.split(".")[1];
8685
9207
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8686
9208
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
@@ -8690,6 +9212,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8690
9212
  },
8691
9213
  eventAddHandler: function() {
8692
9214
  var _a, _b;
9215
+ if (validateAndShowErrors(store2))
9216
+ return;
8693
9217
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8694
9218
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8695
9219
  if (!Array.isArray(store2.formData.events)) {
@@ -8705,6 +9229,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8705
9229
  deletePopUpComponent: function() {
8706
9230
  const rowId = dynamicData2.path.split(".")[1];
8707
9231
  sessionStorage.setItem("rowId", rowId);
9232
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
8708
9233
  store2.updateDialog("popUpComponentSection");
8709
9234
  },
8710
9235
  deletePopUpEvent: function() {
@@ -8715,10 +9240,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8715
9240
  copyPasteElement: function(paramStore, setPage = this.setPage.bind(this)) {
8716
9241
  var _a;
8717
9242
  const [actionType, elementType] = (_a = dynamicData2.path.split(".").pop()) == null ? void 0 : _a.split("_");
9243
+ console.log("BEFORE FUNCTION");
8718
9244
  actionType === "Copy" ? this.CopyElement(paramStore, elementType) : this.PasteElement(setPage, elementType);
8719
9245
  },
8720
9246
  CopyElement: function(paramStore = store2, elementType) {
8721
9247
  var _a;
9248
+ console.log("START FUNCTION");
8722
9249
  const schema2 = lodash.exports.cloneDeep(paramStore.schema);
8723
9250
  const uiSchema = lodash.exports.cloneDeep(paramStore.uiSchema);
8724
9251
  schema2.properties.RemoveItemButton.disabled = false;
@@ -8734,6 +9261,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8734
9261
  });
8735
9262
  store2.setSchema(schema2);
8736
9263
  store2.setUiSchema(uiSchema);
9264
+ console.log("END FUNCTION");
8737
9265
  },
8738
9266
  PasteElement: function(setPage, elementType) {
8739
9267
  var _a;
@@ -8751,9 +9279,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8751
9279
  if (!Array.isArray(store2.formData.events)) {
8752
9280
  store2.formData.events = [];
8753
9281
  }
9282
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9283
+ store2.formData.tabLabelElements = [];
9284
+ }
8754
9285
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
8755
9286
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
8756
- const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
9287
+ const currentLength = {
9288
+ "TabsComponent": formData.tabLabelElements.length,
9289
+ "Component": formData.elements.length,
9290
+ "Events": formData.events.length
9291
+ };
9292
+ const insertElementIndex = currentLength[elementType] || 0;
8757
9293
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8758
9294
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8759
9295
  const notificationMessages = {
@@ -8788,6 +9324,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8788
9324
  if (elementType === "Component") {
8789
9325
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
8790
9326
  }
9327
+ if (elementType === "TabsComponent") {
9328
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9329
+ }
8791
9330
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8792
9331
  },
8793
9332
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -8841,7 +9380,7 @@ var pageMaster = (funcParams) => {
8841
9380
  return formData;
8842
9381
  }
8843
9382
  saveFormdataInSessionStorage(config2);
8844
- return config2;
9383
+ return { ...config2, type: "page" };
8845
9384
  },
8846
9385
  getUiSchema: function() {
8847
9386
  const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
@@ -8863,6 +9402,8 @@ var pageMaster = (funcParams) => {
8863
9402
  },
8864
9403
  onAddClickHandler: function() {
8865
9404
  var _a;
9405
+ if (validateAndShowErrors(store2))
9406
+ return;
8866
9407
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8867
9408
  if (!Array.isArray(store2.formData.elements)) {
8868
9409
  store2.formData.elements = [];
@@ -8886,6 +9427,8 @@ var pageMaster = (funcParams) => {
8886
9427
  },
8887
9428
  eventAddHandler: function() {
8888
9429
  var _a;
9430
+ if (validateAndShowErrors(store2))
9431
+ return;
8889
9432
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8890
9433
  if (!Array.isArray(store2.formData.events)) {
8891
9434
  store2.formData.events = [];
@@ -8896,6 +9439,8 @@ var pageMaster = (funcParams) => {
8896
9439
  },
8897
9440
  editEvent: function() {
8898
9441
  var _a;
9442
+ if (validateAndShowErrors(store2))
9443
+ return;
8899
9444
  const rowId = dynamicData2.path.split(".")[1];
8900
9445
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8901
9446
  saveFormdataInSessionStorage(store2.ctx.core.data);
@@ -8983,7 +9528,10 @@ const EventSchema = {
8983
9528
  { title: "Row Movement", const: "onRowMovement" },
8984
9529
  { title: "Download", const: "onDownload" },
8985
9530
  { title: "Fail", const: "Fail" },
8986
- { title: "Key Down", const: "onKeyDown" }
9531
+ { title: "onClose", const: "onClose" },
9532
+ { title: "Key Down", const: "onKeyDown" },
9533
+ { title: "Set Style", const: "setStyle" },
9534
+ { title: "Expand Node", const: "onNodeExpandChange" }
8987
9535
  ]
8988
9536
  },
8989
9537
  Handler: {
@@ -9000,7 +9548,7 @@ const EventSchema = {
9000
9548
  oneOf: [
9001
9549
  { title: "RankProvider", const: "RankProvider" },
9002
9550
  { title: "Download File", const: "downloadFile" },
9003
- { title: "Download", const: "download" }
9551
+ { title: "downloadFileFromUrl", const: "downloadFileFromUrl" }
9004
9552
  ]
9005
9553
  },
9006
9554
  body: {
@@ -9159,93 +9707,70 @@ const EventUiSchema = (theme) => {
9159
9707
  disableAction: true,
9160
9708
  disableSelection: true,
9161
9709
  enableDrag: true
9162
- }
9163
- },
9164
- elements: [
9165
- {
9166
- accessorKey: "eventType",
9167
- header: "Event's Type",
9168
- size: 300,
9169
- type: "string"
9170
- },
9171
- {
9172
- accessorKey: "Handler",
9173
- header: "Handler",
9174
- size: 200,
9175
- type: "string"
9176
9710
  },
9177
- {
9178
- accessorKey: "Edit_Approve_Records",
9179
- header: "Edit",
9180
- type: "action",
9181
- size: 150,
9182
- widget: {
9711
+ action: [
9712
+ {
9183
9713
  type: "Control",
9184
9714
  scope: "#/properties/Edit_Records",
9185
9715
  options: {
9186
- widget: "IconButton"
9716
+ widget: "Button"
9187
9717
  },
9188
9718
  config: {
9189
9719
  main: {
9190
9720
  size: "small",
9191
- icon: "TableEditIcon",
9721
+ startIcon: "EditIcon",
9192
9722
  tooltipMessage: "Edit This Record",
9193
- onClick: "editEvent"
9194
- },
9195
- style: {
9196
- fill: theme.palette.primary.main,
9197
- "& :hover": {
9198
- fill: theme.palette.primary.dark
9199
- }
9723
+ onClick: "editEvent",
9724
+ name: "Edit"
9200
9725
  }
9201
9726
  }
9202
- }
9203
- },
9204
- {
9205
- accessorKey: "Reject_Records",
9206
- header: "Delete",
9207
- type: "action",
9208
- size: 150,
9209
- widget: {
9727
+ },
9728
+ {
9210
9729
  type: "Control",
9211
9730
  scope: "#/properties/RejectButton",
9212
9731
  options: {
9213
- widget: "IconButton"
9732
+ widget: "Button"
9214
9733
  },
9215
9734
  config: {
9216
9735
  main: {
9217
- icon: "Bin",
9736
+ startIcon: "Bin",
9218
9737
  tooltipMessage: "Reject This Record",
9219
- onClick: "deletePopUpEvent"
9220
- },
9221
- style: {
9222
- fill: theme.palette.primary.main,
9223
- "& :hover": {
9224
- fill: theme.palette.primary.dark
9225
- }
9738
+ onClick: "deletePopUpEvent",
9739
+ name: "Delete",
9740
+ size: "small"
9226
9741
  }
9227
9742
  }
9228
- }
9229
- },
9230
- {
9231
- header: "Copy",
9232
- field: "Copy_Event",
9233
- type: "action",
9234
- size: 150,
9235
- widget: {
9743
+ },
9744
+ {
9236
9745
  type: "Control",
9237
9746
  scope: "#/properties/Copy_Event",
9238
9747
  options: {
9239
- widget: "IconButton"
9748
+ widget: "Button"
9240
9749
  },
9241
9750
  config: {
9242
9751
  main: {
9243
- icon: "FileCopyIcon",
9752
+ startIcon: "FileCopyIcon",
9244
9753
  onClick: "copyPasteElement",
9245
- styleDefault: true
9754
+ styleDefault: false,
9755
+ name: "Copy",
9756
+ size: "small"
9246
9757
  }
9247
9758
  }
9248
9759
  }
9760
+ ]
9761
+ },
9762
+ elements: [
9763
+ {
9764
+ accessorKey: "eventType",
9765
+ header: "Event's Type",
9766
+ size: 300,
9767
+ type: "string"
9768
+ },
9769
+ {
9770
+ accessorKey: "Handler",
9771
+ header: "Handler",
9772
+ size: 200,
9773
+ type: "string"
9249
9774
  }
9250
9775
  ]
9251
9776
  }
@@ -9898,6 +10423,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9898
10423
  },
9899
10424
  addEvent: function() {
9900
10425
  var _a, _b, _c;
10426
+ if (validateAndShowErrors(store2))
10427
+ return;
9901
10428
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9902
10429
  if (!Array.isArray(store2.formData.events)) {
9903
10430
  store2.formData.events = [];
@@ -9910,6 +10437,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9910
10437
  },
9911
10438
  editEvent: function() {
9912
10439
  var _a;
10440
+ if (validateAndShowErrors(store2))
10441
+ return;
9913
10442
  const rowId = dynamicData2.path.split(".")[1];
9914
10443
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9915
10444
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
@@ -9960,31 +10489,47 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9960
10489
  }
9961
10490
  };
9962
10491
  };
9963
- const downloadFile$1 = (obj) => {
9964
- const typeArr = obj.name.split(".");
9965
- const data = obj.data;
9966
- const finalData = window.atob(data);
9967
- let file;
9968
- file = new File([finalData], typeArr[typeArr.length - 1]);
9969
- const url = URL.createObjectURL(file);
9970
- const link = document.createElement("a");
9971
- link.href = typeArr[typeArr.length - 1] === "pdf" ? "data:application/octet-stream;base64," + data : url;
9972
- link.download = `${obj.name}`;
9973
- document.body.appendChild(link);
9974
- link.click();
10492
+ function downloadFile$1({ data, name }) {
10493
+ var _a;
10494
+ const binary = window.atob(data);
10495
+ const bytes = new Uint8Array(binary.length);
10496
+ for (let i = 0; i < binary.length; i++) {
10497
+ bytes[i] = binary.charCodeAt(i);
10498
+ }
10499
+ const extension = (_a = name.split(".").pop()) == null ? void 0 : _a.toLowerCase();
10500
+ const mimeMap = {
10501
+ pdf: "application/pdf",
10502
+ png: "image/png",
10503
+ jpg: "image/jpeg",
10504
+ jpeg: "image/jpeg",
10505
+ xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
10506
+ csv: "text/csv"
10507
+ };
10508
+ const blob = new Blob([bytes], {
10509
+ type: mimeMap[extension] || "application/octet-stream"
10510
+ });
10511
+ const url = URL.createObjectURL(blob);
10512
+ const a = document.createElement("a");
10513
+ a.href = url;
10514
+ a.download = name;
10515
+ a.click();
9975
10516
  URL.revokeObjectURL(url);
9976
- document.body.removeChild(link);
9977
- };
9978
- const doDownload = (response, service2) => {
9979
- let url = `${service2.defaults.baseURL}/${response.path}`;
10517
+ }
10518
+ const downloadFileFromUrl = (response, service2) => {
10519
+ const url = new URL(response.path, service2.defaults.baseURL);
9980
10520
  if (response == null ? void 0 : response.params) {
9981
- const keysArray = Object.keys(response == null ? void 0 : response.params);
9982
- keysArray.map((e, i) => {
9983
- url = url + `${i === 0 ? "?" : "&"}${e}=${response == null ? void 0 : response.params[e]}`;
9984
- });
10521
+ for (const [key, value] of Object.entries(response.params)) {
10522
+ if (value == null)
10523
+ continue;
10524
+ url.searchParams.append(
10525
+ key,
10526
+ Array.isArray(value) ? value.join(",") : String(value)
10527
+ );
10528
+ }
9985
10529
  }
9986
10530
  const link = document.createElement("a");
9987
- link.href = url;
10531
+ link.href = url.toString();
10532
+ link.download = "";
9988
10533
  document.body.appendChild(link);
9989
10534
  link.click();
9990
10535
  link.parentNode.removeChild(link);
@@ -10054,7 +10599,6 @@ function executeEventsHandler(params2) {
10054
10599
  params2.componentName,
10055
10600
  params2.config,
10056
10601
  params2.store,
10057
- params2.service,
10058
10602
  params2.formDataHolder
10059
10603
  );
10060
10604
  } else if (params2.config.Handler === "onBackHandler") {
@@ -10126,7 +10670,7 @@ function executeCustomHandler(params) {
10126
10670
  return response;
10127
10671
  }
10128
10672
  }
10129
- function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10673
+ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, formDataHolder) {
10130
10674
  var _a, _b, _c;
10131
10675
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10132
10676
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
@@ -10164,29 +10708,23 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
10164
10708
  });
10165
10709
  }
10166
10710
  } else if (eventConfig.type === "page") {
10167
- if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
10711
+ if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data) && lodash.exports.isObject(handlerResponse.data))) {
10168
10712
  store2.newData = {
10169
10713
  ...store2.newData,
10170
10714
  ...handlerResponse == null ? void 0 : handlerResponse.data
10171
10715
  };
10172
- store2.setFormdata((pre) => {
10173
- return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
10716
+ Object.keys(handlerResponse.data).forEach((e) => {
10717
+ formDataHolder[e] = handlerResponse.data[e];
10174
10718
  });
10175
10719
  }
10176
10720
  } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10177
10721
  if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10178
10722
  formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10179
10723
  formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10180
- store2.setFormdata((pre) => {
10181
- return { ...pre, ...formDataHolder };
10182
- });
10183
10724
  }
10184
10725
  } else {
10185
- if (handlerResponse) {
10726
+ if (handlerResponse == null ? void 0 : handlerResponse.data) {
10186
10727
  formDataHolder[componentName] = handlerResponse.data;
10187
- store2.setFormdata((pre) => {
10188
- return { ...pre, ...formDataHolder };
10189
- });
10190
10728
  }
10191
10729
  }
10192
10730
  }
@@ -10324,14 +10862,14 @@ var service = (funcParams) => {
10324
10862
  dynamicData: funcParams.dynamicData,
10325
10863
  userValue: funcParams.userValue,
10326
10864
  service: funcParams.service,
10327
- serviceHolder: { downloadFile: downloadFile$1, download: doDownload, ...funcParams.functionsProvider },
10865
+ serviceHolder: { downloadFile: downloadFile$1, downloadFileFromUrl, ...funcParams.functionsProvider },
10328
10866
  eventGroups,
10329
10867
  functionsProvider: funcParams.functionsProvider,
10330
10868
  formDataHolder
10331
10869
  };
10332
10870
  return {
10333
10871
  setPage: async function() {
10334
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10872
+ var _a, _b, _c;
10335
10873
  funcParams.store.setAdditionalErrors([]);
10336
10874
  funcParams.store.setFormdata((funcParams == null ? void 0 : funcParams.initFormData()) || {});
10337
10875
  funcParams.store.setSchema({ type: "object", properties: {} });
@@ -10341,116 +10879,11 @@ var service = (funcParams) => {
10341
10879
  const config2 = pageData == null ? void 0 : pageData.config;
10342
10880
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10343
10881
  const event2 = new CustomEvent("pageNameChanged", {
10344
- detail: { pageName: config2.label, hasBackIcon: true }
10882
+ detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10345
10883
  });
10346
10884
  window.dispatchEvent(event2);
10347
- const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
10348
- uiSchema.elements.push(
10349
- {
10350
- type: "HorizontalLayout",
10351
- config: {
10352
- main: {
10353
- direction: "row"
10354
- },
10355
- style: {
10356
- flexDirection: "row",
10357
- position: "absolute",
10358
- bottom: 0,
10359
- height: "fit-content",
10360
- overflow: "hidden",
10361
- zIndex: 1e3,
10362
- width: "inherit"
10363
- }
10364
- },
10365
- elements: [
10366
- {
10367
- type: "Control",
10368
- scope: "#/properties/FooterText",
10369
- options: {
10370
- widget: "Box"
10371
- },
10372
- config: {
10373
- main: {
10374
- heading: "Copywriter@ACT21.IO"
10375
- },
10376
- style: {
10377
- color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
10378
- fontSize: "11px",
10379
- textAlign: "center",
10380
- lineHeight: 2,
10381
- width: "fit-content",
10382
- left: "50%",
10383
- position: "relative",
10384
- margin: 0,
10385
- flexGrow: 1,
10386
- height: 0,
10387
- transform: "translate(-50%, 0%)"
10388
- }
10389
- }
10390
- },
10391
- {
10392
- type: "Control",
10393
- scope: "#/properties/FooterBackIcon",
10394
- options: {
10395
- widget: "Box"
10396
- },
10397
- config: {
10398
- main: {
10399
- iconName: "PrevIcon",
10400
- onClick: "backHandler",
10401
- width: "fit-content"
10402
- },
10403
- style: {
10404
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
10405
- width: 20,
10406
- height: 0,
10407
- top: 0,
10408
- right: { xs: "12px", sm: "84px" },
10409
- position: "absolute",
10410
- fontSize: "12px",
10411
- cursor: "pointer",
10412
- ":hover": {
10413
- fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
10414
- },
10415
- marginRight: "20px"
10416
- }
10417
- }
10418
- },
10419
- {
10420
- type: "Control",
10421
- scope: "#/properties/FooterBackHandlerText",
10422
- options: {
10423
- widget: "Box"
10424
- },
10425
- config: {
10426
- main: {
10427
- heading: "Previous Page",
10428
- onClick: "backHandler"
10429
- },
10430
- style: {
10431
- display: { xs: "none", sm: "flex" },
10432
- textAlign: "left",
10433
- lineHeight: 1,
10434
- height: 0,
10435
- width: "fit-content",
10436
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
10437
- fontSize: "12px",
10438
- cursor: "pointer",
10439
- marginLeft: "2px",
10440
- top: 3,
10441
- right: "12px",
10442
- position: "absolute",
10443
- ":hover": {
10444
- color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
10445
- },
10446
- marginRight: "4px"
10447
- }
10448
- }
10449
- }
10450
- ]
10451
- }
10452
- );
10453
- const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
10885
+ (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
10886
+ const schema2 = (_c = pageData == null ? void 0 : pageData.schema) != null ? _c : { type: "object", properties: {} };
10454
10887
  eventGroups = extractEvents(config2);
10455
10888
  executeEventsParameters = {
10456
10889
  config: {},
@@ -10464,7 +10897,16 @@ var service = (funcParams) => {
10464
10897
  eventGroups,
10465
10898
  formDataHolder
10466
10899
  };
10467
- await executeRefreshHandler({
10900
+ funcParams.store.setSchema(
10901
+ (pre) => {
10902
+ return {
10903
+ ...schema2,
10904
+ ...pre,
10905
+ properties: { ...schema2.properties, ...pre.properties }
10906
+ };
10907
+ }
10908
+ );
10909
+ executeRefreshHandler({
10468
10910
  config: {},
10469
10911
  componentName: "",
10470
10912
  store: funcParams.store,
@@ -10473,34 +10915,49 @@ var service = (funcParams) => {
10473
10915
  service: funcParams.service,
10474
10916
  serviceHolder: this,
10475
10917
  eventGroups,
10476
- formDataHolder: {}
10918
+ formDataHolder
10919
+ }).then((e) => {
10920
+ funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10921
+ uiSchema.elements.push(notifyUiSchema);
10922
+ funcParams.store.setUiSchema(uiSchema);
10477
10923
  });
10478
- funcParams.store.setSchema(
10479
- (pre) => {
10480
- return {
10481
- ...schema2,
10482
- ...pre,
10483
- properties: { ...schema2.properties, ...pre.properties }
10484
- };
10924
+ },
10925
+ getStyle: () => {
10926
+ var _a, _b, _c, _d;
10927
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10928
+ if (cloneEventGroup.setStyle) {
10929
+ let finalResponse = {};
10930
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
10931
+ if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
10932
+ for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10933
+ finalResponse = executeEvents({
10934
+ ...executeEventsParameters,
10935
+ config: eventConfig,
10936
+ componentName: path
10937
+ });
10938
+ }
10939
+ return finalResponse;
10485
10940
  }
10486
- );
10487
- uiSchema.elements.push(notifyUiSchema);
10488
- funcParams.store.setUiSchema(uiSchema);
10941
+ }
10942
+ return {};
10489
10943
  },
10490
10944
  onCellRenderer: (cellParams) => {
10491
- var _a, _b, _c, _d;
10492
- if (eventGroups.onCellRenderer) {
10945
+ var _a, _b, _c, _d, _e;
10946
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10947
+ if (cloneEventGroup.onCellRenderer) {
10493
10948
  let finalResponse = {};
10494
10949
  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]);
10495
- for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10496
- executeEventsParameters.store.functionParameters = cellParams;
10497
- finalResponse = executeEvents({
10498
- ...executeEventsParameters,
10499
- config: eventConfig,
10500
- componentName: path
10501
- });
10950
+ if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _d[path]) {
10951
+ for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _e[path]) {
10952
+ executeEventsParameters.store.functionParameters = cellParams;
10953
+ finalResponse = executeEvents({
10954
+ ...executeEventsParameters,
10955
+ config: eventConfig,
10956
+ componentName: path
10957
+ });
10958
+ }
10959
+ return finalResponse;
10502
10960
  }
10503
- return finalResponse;
10504
10961
  }
10505
10962
  return {};
10506
10963
  },
@@ -10513,6 +10970,9 @@ var service = (funcParams) => {
10513
10970
  onFileDelete: async function() {
10514
10971
  this.callHandler("onFileDelete");
10515
10972
  },
10973
+ onClose: function() {
10974
+ this.callHandler("onClose");
10975
+ },
10516
10976
  onMount: function() {
10517
10977
  this.callHandler("onMount");
10518
10978
  },
@@ -10542,11 +11002,20 @@ var service = (funcParams) => {
10542
11002
  { key: "pageIndex", value: paginationValues.pagination.pageIndex },
10543
11003
  { key: "sorting", value: paginationValues.sorting || [] },
10544
11004
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10545
- { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
11005
+ { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
11006
+ { key: "parentIds", value: paginationValues.parentIds },
11007
+ { key: "isExpandAll", value: paginationValues.isExpandAll }
10546
11008
  ];
10547
11009
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10548
11010
  return response == null ? void 0 : response.data;
10549
11011
  },
11012
+ onNodeExpandChange: async function(param) {
11013
+ const apiBody = [
11014
+ { key: "expandedNodeId", value: param.expandedNodeId }
11015
+ ];
11016
+ const response = await this.callExecuteEvents(param, apiBody, "onNodeExpandChange");
11017
+ return response == null ? void 0 : response.data;
11018
+ },
10550
11019
  getSelectOptions: async function(param) {
10551
11020
  if (param.serachValue !== "" && param.serachValue !== void 0) {
10552
11021
  const apiBody = [
@@ -10557,22 +11026,34 @@ var service = (funcParams) => {
10557
11026
  return response == null ? void 0 : response.data;
10558
11027
  }
10559
11028
  },
10560
- onChange: async function() {
10561
- if (eventGroups.onChange) {
10562
- const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10563
- Promise.all(ChangeEventsKeysArray.map(async (componentName) => {
10564
- var _a, _b;
10565
- 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) {
10566
- for (const eventConfig of eventGroups.onChange[componentName]) {
10567
- await executeEvents({
10568
- ...executeEventsParameters,
10569
- config: eventConfig,
10570
- componentName
10571
- });
11029
+ onChange: function() {
11030
+ if (!eventGroups.onChange)
11031
+ return;
11032
+ const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
11033
+ const promises = ChangeEventsKeysArray.flatMap((componentName) => {
11034
+ var _a;
11035
+ if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
11036
+ return [];
11037
+ }
11038
+ return eventGroups.onChange[componentName].map(
11039
+ (eventConfig) => Promise.resolve(
11040
+ executeEvents({
11041
+ ...executeEventsParameters,
11042
+ config: eventConfig,
11043
+ componentName,
11044
+ formDataHolder
11045
+ })
11046
+ ).then(() => {
11047
+ if (!lodash.exports.isEmpty(formDataHolder)) {
11048
+ funcParams.store.setFormdata((pre) => ({
11049
+ ...pre,
11050
+ ...formDataHolder
11051
+ }));
10572
11052
  }
10573
- }
10574
- }));
10575
- }
11053
+ })
11054
+ );
11055
+ });
11056
+ Promise.allSettled(promises);
10576
11057
  },
10577
11058
  callExecuteEvents: async function(paramValue, apiBody, eventType) {
10578
11059
  var _a, _b;
@@ -10602,7 +11083,7 @@ var service = (funcParams) => {
10602
11083
  onBack: async function(functionParameters) {
10603
11084
  var _a, _b;
10604
11085
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10605
- await this.callHandler("onBack", functionParameters);
11086
+ this.callHandler("onBack", functionParameters);
10606
11087
  if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
10607
11088
  functionParameters == null ? void 0 : functionParameters.handleBack();
10608
11089
  }
@@ -10610,7 +11091,7 @@ var service = (funcParams) => {
10610
11091
  onNext: async function(functionParameters) {
10611
11092
  var _a, _b;
10612
11093
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10613
- await this.callHandler("onNext", functionParameters);
11094
+ this.callHandler("onNext", functionParameters);
10614
11095
  if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
10615
11096
  functionParameters == null ? void 0 : functionParameters.handleNext();
10616
11097
  }
@@ -10618,27 +11099,38 @@ var service = (funcParams) => {
10618
11099
  onReset: async function(functionParameters) {
10619
11100
  var _a, _b;
10620
11101
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10621
- await this.callHandler("onReset", functionParameters);
11102
+ this.callHandler("onReset", functionParameters);
10622
11103
  if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
10623
11104
  functionParameters == null ? void 0 : functionParameters.handleReset();
10624
11105
  }
10625
11106
  },
10626
- callHandler: async function(eventType, functionParameters) {
10627
- var _a, _b, _c;
10628
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
10629
- if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
10630
- Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
10631
- executeEventsParameters.store.functionParameters = functionParameters;
11107
+ callHandler: function(eventType, functionParameters) {
11108
+ var _a, _b;
11109
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".").pop();
11110
+ if (!((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]))
11111
+ return;
11112
+ const promises = eventGroups[eventType][path].map((eventConfig) => {
11113
+ executeEventsParameters.store.functionParameters = functionParameters;
11114
+ return Promise.resolve(
10632
11115
  executeEvents({
10633
11116
  ...executeEventsParameters,
10634
11117
  config: eventConfig,
10635
- componentName: path
10636
- });
10637
- }));
10638
- }
11118
+ componentName: path,
11119
+ formDataHolder
11120
+ })
11121
+ ).then(() => {
11122
+ if (!lodash.exports.isEmpty(formDataHolder)) {
11123
+ funcParams.store.setFormdata((pre) => ({
11124
+ ...pre,
11125
+ ...formDataHolder
11126
+ }));
11127
+ }
11128
+ });
11129
+ });
11130
+ Promise.allSettled(promises);
10639
11131
  },
10640
11132
  downloadFile: downloadFile$1,
10641
- download: doDownload,
11133
+ downloadFileFromUrl,
10642
11134
  ...funcParams.functionsProvider
10643
11135
  };
10644
11136
  };
@@ -10687,6 +11179,9 @@ const buildLeaderBoard = (config2) => {
10687
11179
  if (config2.scoreKey) {
10688
11180
  LeaderBoard.config.main.scoreKey = config2.scoreKey;
10689
11181
  }
11182
+ if (config2.isScoreAmount) {
11183
+ LeaderBoard.config.main.isScoreAmount = config2.isScoreAmount === "YES" ? true : false;
11184
+ }
10690
11185
  if (config2.layout) {
10691
11186
  LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
10692
11187
  }
@@ -10737,6 +11232,15 @@ const buildProgressBar = (config2, componentScope2) => {
10737
11232
  ProgressBar.config.layout = config2.layout;
10738
11233
  }
10739
11234
  ProgressBar.config.main.heading = config2.label;
11235
+ if (config2.variant) {
11236
+ ProgressBar.config.main.variant = config2.variant;
11237
+ }
11238
+ if (config2.pieArcColors) {
11239
+ ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
11240
+ }
11241
+ if (config2.size) {
11242
+ ProgressBar.config.main.size = Number(config2.size);
11243
+ }
10740
11244
  if (config2.bottomLabel_3) {
10741
11245
  ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
10742
11246
  }
@@ -10763,7 +11267,7 @@ const BarGraph = {
10763
11267
  type: "BarGraph",
10764
11268
  legendLabels: null
10765
11269
  },
10766
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11270
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10767
11271
  }
10768
11272
  };
10769
11273
  const PieGraph = {
@@ -10778,7 +11282,7 @@ const PieGraph = {
10778
11282
  type: "PieGraph",
10779
11283
  legendLabels: null
10780
11284
  },
10781
- style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
11285
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10782
11286
  }
10783
11287
  };
10784
11288
  const LineGraph = {
@@ -10793,7 +11297,7 @@ const LineGraph = {
10793
11297
  type: "LineGraph",
10794
11298
  legendLabels: null
10795
11299
  },
10796
- style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
11300
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10797
11301
  }
10798
11302
  };
10799
11303
  const HorizontalBarGraph = {
@@ -10808,18 +11312,48 @@ const HorizontalBarGraph = {
10808
11312
  type: "HorizontalBarGraph",
10809
11313
  legendLabels: null
10810
11314
  },
10811
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11315
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10812
11316
  }
10813
11317
  };
10814
- const buildHorizontalBarGraph = (config2, componentScope2) => {
10815
- const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
10816
- horizontalBarGraph.scope = componentScope2;
10817
- if (config2.layout) {
10818
- horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
11318
+ const AreaBarGraph = {
11319
+ type: "Control",
11320
+ scope: "#/properties/graph",
11321
+ options: {
11322
+ widget: "Graph"
11323
+ },
11324
+ config: {
11325
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11326
+ main: {
11327
+ type: "AreaGraph",
11328
+ legendLabels: null
11329
+ },
11330
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10819
11331
  }
10820
- horizontalBarGraph.config.main.type = config2.graphType;
10821
- horizontalBarGraph.scope = componentScope2;
10822
- horizontalBarGraph.config.main.header = config2.heading;
11332
+ };
11333
+ const StackBarLineG = {
11334
+ type: "Control",
11335
+ scope: "#/properties/graph",
11336
+ options: {
11337
+ widget: "Graph"
11338
+ },
11339
+ config: {
11340
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11341
+ main: {
11342
+ type: "StackBarLineGraph",
11343
+ legendLabels: null
11344
+ },
11345
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11346
+ }
11347
+ };
11348
+ const buildHorizontalBarGraph = (config2, componentScope2) => {
11349
+ const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
11350
+ horizontalBarGraph.scope = componentScope2;
11351
+ if (config2.layout) {
11352
+ horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
11353
+ }
11354
+ horizontalBarGraph.config.main.type = config2.graphType;
11355
+ horizontalBarGraph.scope = componentScope2;
11356
+ horizontalBarGraph.config.main.header = config2.heading;
10823
11357
  if (config2.legendHide) {
10824
11358
  horizontalBarGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10825
11359
  }
@@ -10827,10 +11361,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
10827
11361
  horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10828
11362
  }
10829
11363
  if (config2.legendLabels) {
10830
- horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11364
+ horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11365
+ }
11366
+ if (config2.legendDirection) {
11367
+ horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
10831
11368
  }
10832
11369
  if (config2.pieArcColors) {
10833
- horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11370
+ horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10834
11371
  }
10835
11372
  if (config2.xAxisValue) {
10836
11373
  horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -10849,6 +11386,9 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
10849
11386
  if (config2.leftLabel) {
10850
11387
  horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
10851
11388
  }
11389
+ if (config2.disableLeftLabel) {
11390
+ horizontalBarGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
11391
+ }
10852
11392
  return horizontalBarGraph;
10853
11393
  };
10854
11394
  var SpeedoMeter = {
@@ -10955,16 +11495,19 @@ const buildPieGraph = (config2, componentScope2) => {
10955
11495
  if (config2.legendHide) {
10956
11496
  pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10957
11497
  }
11498
+ if (config2.legendDirection) {
11499
+ pieGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
11500
+ }
10958
11501
  pieGraph.scope = componentScope2;
10959
11502
  pieGraph.config.main.header = config2.heading;
10960
11503
  if (config2.legendLabels) {
10961
- pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11504
+ pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
10962
11505
  }
10963
11506
  if (config2.xAxisValue) {
10964
11507
  pieGraph.config.main.xAxisValue = config2.xAxisValue;
10965
11508
  }
10966
11509
  if (config2.pieArcColors) {
10967
- pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11510
+ pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10968
11511
  }
10969
11512
  return pieGraph;
10970
11513
  };
@@ -10978,16 +11521,19 @@ const buildStackbarGraph = (config2, componentScope2) => {
10978
11521
  barGraph.config.main.legendAvailable = config2.legendHide;
10979
11522
  barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10980
11523
  }
11524
+ if (config2.legendDirection) {
11525
+ barGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
11526
+ }
10981
11527
  if (config2.bottomAxisAngle) {
10982
11528
  barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10983
11529
  }
10984
11530
  barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
10985
11531
  barGraph.config.main.header = config2.heading;
10986
11532
  if (config2.legendLabels) {
10987
- barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11533
+ barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
10988
11534
  }
10989
11535
  if (config2.pieArcColors) {
10990
- barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11536
+ barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10991
11537
  }
10992
11538
  if (config2.xAxisValue) {
10993
11539
  barGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -11006,6 +11552,9 @@ const buildStackbarGraph = (config2, componentScope2) => {
11006
11552
  if (config2.leftLabel) {
11007
11553
  barGraph.config.main.leftLabel = config2.leftLabel;
11008
11554
  }
11555
+ if (config2.disableLeftLabel) {
11556
+ barGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
11557
+ }
11009
11558
  barGraph.scope = componentScope2;
11010
11559
  return barGraph;
11011
11560
  };
@@ -11050,6 +11599,10 @@ const buildTabSection = (config2, componentScope2) => {
11050
11599
  }
11051
11600
  if (config2.sectionLabels) {
11052
11601
  tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
11602
+ tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
11603
+ }
11604
+ if (config2.style) {
11605
+ tab.config.style = JSON.parse(config2.style);
11053
11606
  }
11054
11607
  tab.config.main.id = config2.name;
11055
11608
  return tab;
@@ -11059,9 +11612,11 @@ var WrapperSection = {
11059
11612
  config: {
11060
11613
  layout: 12,
11061
11614
  main: {
11062
- rowSpacing: 3,
11063
11615
  divider: true,
11064
- label: "Default Label"
11616
+ label: "Default Label",
11617
+ rowSpacing: 2,
11618
+ columnSpacing: 2,
11619
+ spacing: 2
11065
11620
  },
11066
11621
  defaultStyle: true
11067
11622
  },
@@ -11073,6 +11628,12 @@ const buildWrapperSection = (config2, componentScope2) => {
11073
11628
  wrapper.config.main.label = config2.label;
11074
11629
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11075
11630
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11631
+ wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11632
+ wrapper.config.main.icon = config2.iconUrl;
11633
+ wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11634
+ wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11635
+ wrapper.config.main.spacing = Number(config2.spacing);
11636
+ wrapper.config.main.wrapperId = config2.wrapperId;
11076
11637
  if (config2.defaultStyle) {
11077
11638
  wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11078
11639
  }
@@ -11122,6 +11683,15 @@ const buildTextField = (config2, componentScope2) => {
11122
11683
  if (config2.layout) {
11123
11684
  inputField.config.layout = createLayoutFormat(config2.layout);
11124
11685
  }
11686
+ if (config2.toolTip) {
11687
+ inputField.config.main.toolTip = config2.toolTip;
11688
+ }
11689
+ if (config2.toolTipPosition) {
11690
+ inputField.config.main.toolTipPosition = config2.toolTipPosition;
11691
+ }
11692
+ if (config2.iconName) {
11693
+ inputField.config.main.startIcon = config2.iconName;
11694
+ }
11125
11695
  inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11126
11696
  inputField.scope = componentScope2;
11127
11697
  return inputField;
@@ -11138,7 +11708,8 @@ var SelectInputField = {
11138
11708
  label: "",
11139
11709
  type: "text",
11140
11710
  freeSole: false
11141
- }
11711
+ },
11712
+ style: {}
11142
11713
  }
11143
11714
  };
11144
11715
  const buildSelect = (config2, componentScope2) => {
@@ -11159,6 +11730,15 @@ const buildSelect = (config2, componentScope2) => {
11159
11730
  if (config2.layout) {
11160
11731
  selectInputField.config.layout = createLayoutFormat(config2.layout);
11161
11732
  }
11733
+ if (config2.toolTip) {
11734
+ selectInputField.config.main.toolTip = config2.toolTip;
11735
+ }
11736
+ if (config2.toolTipPosition) {
11737
+ selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
11738
+ }
11739
+ if (config2.style) {
11740
+ selectInputField.config.style = JSON.parse(config2.style);
11741
+ }
11162
11742
  selectInputField.scope = componentScope2;
11163
11743
  return selectInputField;
11164
11744
  };
@@ -11248,6 +11828,9 @@ const buildTable = (config2, componentScope2) => {
11248
11828
  if (config2.lazyLoading) {
11249
11829
  table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11250
11830
  }
11831
+ if (config2.defaultColumnSize) {
11832
+ table.config.main.defaultColumnSize = config2.defaultColumnSize;
11833
+ }
11251
11834
  if (config2.enableRowMovement) {
11252
11835
  table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
11253
11836
  }
@@ -11263,9 +11846,6 @@ const buildTable = (config2, componentScope2) => {
11263
11846
  if (config2.paginateExpandedRows) {
11264
11847
  table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
11265
11848
  }
11266
- if (config2.treeStructure) {
11267
- table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
11268
- }
11269
11849
  if (config2.SelectionAvailable) {
11270
11850
  table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
11271
11851
  }
@@ -11308,6 +11888,21 @@ const buildTable = (config2, componentScope2) => {
11308
11888
  if (config2.selectKey) {
11309
11889
  table.config.main.selectKey = config2.selectKey;
11310
11890
  }
11891
+ if (config2.rowIdKey) {
11892
+ table.config.main.rowIdKey = config2.rowIdKey;
11893
+ }
11894
+ if (config2.parentIdKey) {
11895
+ table.config.main.parentIdKey = config2.parentIdKey;
11896
+ }
11897
+ if (config2.maxPageSize) {
11898
+ table.config.main.maxPageSize = config2.maxPageSize;
11899
+ }
11900
+ if (config2.initialDensity) {
11901
+ table.config.main.initialDensity = config2.initialDensity;
11902
+ }
11903
+ if (config2.layout) {
11904
+ table.config.layout = createLayoutFormat(config2.layout);
11905
+ }
11311
11906
  return table;
11312
11907
  };
11313
11908
  const Box = {
@@ -11318,7 +11913,10 @@ const Box = {
11318
11913
  },
11319
11914
  config: {
11320
11915
  layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11321
- main: {},
11916
+ main: {
11917
+ iconName: "",
11918
+ onClick: "onClick"
11919
+ },
11322
11920
  style: {}
11323
11921
  }
11324
11922
  };
@@ -11329,6 +11927,9 @@ const buildLabel = (config2, componentScope2) => {
11329
11927
  if (config2.layout) {
11330
11928
  box.config.layout = createLayoutFormat(config2.layout);
11331
11929
  }
11930
+ if (config2.iconName) {
11931
+ box.config.main.iconName = config2.iconName;
11932
+ }
11332
11933
  if (config2.style) {
11333
11934
  box.config.style = JSON.parse(config2.style);
11334
11935
  }
@@ -11383,12 +11984,19 @@ const buildUploadFile = (config2, componentScope2) => {
11383
11984
  if (config2.required) {
11384
11985
  UploadFile.config.main.required = true;
11385
11986
  }
11987
+ if (config2.toolTip) {
11988
+ UploadFile.config.main.toolTip = config2.toolTip;
11989
+ }
11990
+ if (config2.toolTipPosition) {
11991
+ UploadFile.config.main.toolTipPosition = config2.toolTipPosition;
11992
+ }
11386
11993
  UploadFile.config.main.errorMessage = config2.errorMessage;
11387
11994
  return UploadFile;
11388
11995
  };
11389
11996
  const buildDownloadFile = (config2, componentScope2) => {
11390
11997
  const DownloadFile = _.cloneDeep(downloadFile);
11391
11998
  DownloadFile.scope = componentScope2;
11999
+ DownloadFile.config.main.label = config2.label;
11392
12000
  if (config2.layout) {
11393
12001
  DownloadFile.config.layout = config2.layout;
11394
12002
  }
@@ -11404,6 +12012,12 @@ const buildDownloadFile = (config2, componentScope2) => {
11404
12012
  if (config2.errorMessage) {
11405
12013
  DownloadFile.config.main.errorMessage = config2.errorMessage;
11406
12014
  }
12015
+ if (config2.toolTip) {
12016
+ DownloadFile.config.main.toolTip = config2.toolTip;
12017
+ }
12018
+ if (config2.toolTipPosition) {
12019
+ DownloadFile.config.main.toolTipPosition = config2.toolTipPosition;
12020
+ }
11407
12021
  return DownloadFile;
11408
12022
  };
11409
12023
  function Card(theme) {
@@ -11411,192 +12025,159 @@ function Card(theme) {
11411
12025
  type: "WrapperLayout",
11412
12026
  config: {
11413
12027
  main: {},
11414
- wrapperStyle: {
11415
- position: "relative",
11416
- top: "50%",
11417
- transform: "translateY(-50%)",
11418
- marginBottom: 0
11419
- },
11420
- componentsBoxStyle: {
11421
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
11422
- flexDirection: "row",
11423
- flexWrap: "nowrap",
11424
- width: "100% !important",
11425
- background: "transparent",
11426
- border: `1.5px solid ${theme.palette.primary.light}`,
11427
- borderRadius: "8px",
11428
- padding: "0px 4px",
11429
- height: "100%",
11430
- alignItems: "center",
11431
- marginLeft: "0px",
11432
- "&: hover": {
11433
- background: `${theme.palette.primary.main}`,
11434
- border: `1.5px solid black`,
11435
- "& p": {
11436
- color: "white"
12028
+ style: {
12029
+ wrapperStyle: {
12030
+ position: "relative",
12031
+ top: "50%",
12032
+ transform: "translateY(-50%)",
12033
+ marginBottom: 0,
12034
+ borderRadius: "12px",
12035
+ fontFamily: "poppins"
12036
+ },
12037
+ componentsBoxStyle: {
12038
+ boxShadow: "0 0 6px 1px rgba(149, 147, 147, 0.25)",
12039
+ flexDirection: "column",
12040
+ overflow: "hidden",
12041
+ flexWrap: "nowrap",
12042
+ width: "100% !important",
12043
+ background: "transparent",
12044
+ borderRadius: "12px",
12045
+ padding: "20px 20px 20px 14px",
12046
+ height: "100%",
12047
+ minHeight: "100px",
12048
+ position: "relative",
12049
+ marginLeft: "0px",
12050
+ "&: hover": {
12051
+ background: `${theme.palette.primary.main}`,
12052
+ color: `${theme.palette.primary.contrastText}`
11437
12053
  }
11438
12054
  }
11439
12055
  },
11440
- layout: { xs: 12, sm: 12, md: 6, lg: 6 }
12056
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 }
11441
12057
  },
11442
12058
  elements: [
11443
- {
11444
- type: "HorizontalLayout",
11445
- config: {
11446
- layout: 8
11447
- },
11448
- elements: [
11449
- {
11450
- type: "WrapperLayout",
11451
- config: {
11452
- main: {
11453
- columnSpacing: 0,
11454
- gap: 0
11455
- },
11456
- wrapperStyle: {
11457
- background: "transparent",
11458
- marginBottom: 0
11459
- },
11460
- componentsBoxStyle: {
11461
- flexDirection: "column",
11462
- flexWrap: "nowrap",
11463
- width: "100%",
11464
- height: "inherit",
11465
- background: "transparent",
11466
- borderRadius: "0px"
11467
- },
11468
- layout: 12
11469
- },
11470
- elements: [
11471
- {
11472
- type: "WrapperLayout",
11473
- config: {
11474
- main: {
11475
- columnSpacing: 0,
11476
- gap: 0
11477
- },
11478
- wrapperStyle: {
11479
- background: "transparent",
11480
- marginBottom: 0
11481
- },
11482
- componentsBoxStyle: {
11483
- flexDirection: "row",
11484
- flexWrap: "nowrap",
11485
- width: "100%",
11486
- height: "0",
11487
- background: "transparent",
11488
- borderRadius: "0px",
11489
- marginLeft: "-10px",
11490
- marginTop: "-8px",
11491
- justifyContent: "start",
11492
- position: "relative"
11493
- },
11494
- layout: 12
11495
- },
11496
- elements: [
11497
- {
11498
- type: "Control",
11499
- scope: "#/properties/programType",
11500
- config: {
11501
- main: {
11502
- heading: ""
11503
- },
11504
- style: {
11505
- color: "black",
11506
- display: "flex",
11507
- fontSize: { xs: "24px", md: "28px" },
11508
- fontWeight: "bold",
11509
- background: "inherit",
11510
- justifyContent: "flex-start",
11511
- width: "auto",
11512
- margin: "-8px",
11513
- marginLeft: "-24px",
11514
- height: 0
11515
- }
11516
- },
11517
- options: {
11518
- widget: "Box"
11519
- }
11520
- },
11521
- {
11522
- type: "Control",
11523
- scope: "#/properties/programType",
11524
- config: {
11525
- main: {
11526
- heading: "5000.00"
11527
- },
11528
- style: {
11529
- color: "black",
11530
- display: "flex",
11531
- fontSize: { xs: "24px", md: "28px" },
11532
- fontWeight: "bold",
11533
- background: "inherit",
11534
- justifyContent: "flex-start",
11535
- width: "auto",
11536
- margin: "-8px",
11537
- position: "absolute",
11538
- left: "24px"
11539
- }
11540
- },
11541
- options: {
11542
- widget: "Box"
11543
- }
11544
- }
11545
- ]
11546
- },
11547
- {
11548
- type: "Control",
11549
- scope: "#/properties/programType",
11550
- config: {
11551
- main: {
11552
- heading: "Total Earnings"
11553
- },
11554
- style: {
11555
- color: "black",
11556
- fontSize: "16px",
11557
- justifyContent: "center",
11558
- textWrap: "wrap",
11559
- background: "inherit",
11560
- width: "calc(100%+8px)",
11561
- margin: "-8px",
11562
- marginTop: { xs: "16px", md: "20px" }
11563
- },
11564
- layout: 12
11565
- },
11566
- options: {
11567
- widget: "Box"
11568
- }
11569
- }
11570
- ]
11571
- }
11572
- ]
11573
- },
11574
12059
  {
11575
12060
  type: "Control",
11576
- scope: "#/properties/programType",
12061
+ scope: "#/properties/initilCardScope",
11577
12062
  config: {
11578
12063
  main: {
11579
12064
  url: "https://www.svgrepo.com/show/500606/loading.svg"
11580
12065
  },
11581
12066
  style: {
11582
12067
  containerStyle: {
11583
- height: "100%",
12068
+ position: "absolute",
12069
+ color: "inherit",
12070
+ top: "4px",
12071
+ right: "4px",
11584
12072
  display: "flex",
11585
- justifyContent: "end"
12073
+ justifyContent: "flex-end",
12074
+ alignItems: "flex-start"
11586
12075
  },
11587
12076
  imageStyle: {
11588
- width: "unset",
11589
- fontSize: "none",
11590
- padding: "4px",
11591
- margin: "0px 0px 0px 8px",
11592
- height: "64px"
12077
+ color: "inherit",
12078
+ width: "32px",
12079
+ height: "32px",
12080
+ padding: "0px",
12081
+ margin: "0px"
11593
12082
  }
11594
- },
11595
- layout: 4
12083
+ }
11596
12084
  },
11597
12085
  options: {
11598
12086
  widget: "Image"
11599
12087
  }
12088
+ },
12089
+ {
12090
+ type: "Control",
12091
+ scope: "#/properties/initilCardScope",
12092
+ config: {
12093
+ main: {
12094
+ heading: "Total Earnings"
12095
+ },
12096
+ style: {
12097
+ color: "inherit",
12098
+ fontSize: "16px",
12099
+ fontWeight: 300,
12100
+ fontFamily: "Poppins",
12101
+ justifyContent: "flex-start",
12102
+ background: "inherit",
12103
+ position: "absolute",
12104
+ top: "8px",
12105
+ left: "12px",
12106
+ display: "flex",
12107
+ maxWidth: "200px",
12108
+ whiteSpace: "nowrap",
12109
+ overflowX: "auto",
12110
+ scrollbarWidth: "none",
12111
+ "&::-webkit-scrollbar": {
12112
+ display: "none"
12113
+ }
12114
+ }
12115
+ },
12116
+ options: {
12117
+ widget: "Box"
12118
+ }
12119
+ },
12120
+ {
12121
+ type: "Control",
12122
+ scope: "#/properties/initilCardScope",
12123
+ config: {
12124
+ main: {
12125
+ heading: "5000.00"
12126
+ },
12127
+ style: {
12128
+ color: "inherit",
12129
+ display: "flex",
12130
+ fontSize: { xs: "22px", md: "40px" },
12131
+ fontWeight: 600,
12132
+ background: "inherit",
12133
+ justifyContent: "flex-start",
12134
+ width: "100%",
12135
+ margin: "0px",
12136
+ marginBottom: "4px",
12137
+ marginTop: "8px",
12138
+ lineHeight: "1",
12139
+ maxWidth: "300px",
12140
+ whiteSpace: "nowrap",
12141
+ overflowX: "auto",
12142
+ overflowY: "hidden",
12143
+ scrollbarWidth: "none",
12144
+ "&::-webkit-scrollbar": {
12145
+ display: "none"
12146
+ }
12147
+ }
12148
+ },
12149
+ options: {
12150
+ widget: "Box"
12151
+ }
12152
+ },
12153
+ {
12154
+ type: "Control",
12155
+ scope: "#/properties/initilCardScope",
12156
+ config: {
12157
+ main: {
12158
+ heading: "Increased from last month"
12159
+ },
12160
+ style: {
12161
+ color: "inherit",
12162
+ fontSize: "12px",
12163
+ fontWeight: "400",
12164
+ justifyContent: "flex-start",
12165
+ background: "inherit",
12166
+ margin: "0px",
12167
+ paddingLeft: "2px",
12168
+ marginBottom: "8px",
12169
+ maxWidth: "200px",
12170
+ whiteSpace: "nowrap",
12171
+ overflowX: "auto",
12172
+ scrollbarWidth: "none",
12173
+ "&::-webkit-scrollbar": {
12174
+ display: "none"
12175
+ }
12176
+ }
12177
+ },
12178
+ options: {
12179
+ widget: "Box"
12180
+ }
11600
12181
  }
11601
12182
  ]
11602
12183
  };
@@ -11607,9 +12188,10 @@ const buildCard = (config, componentScope, store) => {
11607
12188
  if (config.style) {
11608
12189
  card.config.wrapperStyle = JSON.parse(config.style);
11609
12190
  }
11610
- card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
11611
- card.elements[1].scope = `#/properties/${config.name}/properties/url`;
11612
- card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
12191
+ card.elements[0].scope = `#/properties/${config.name}/properties/url`;
12192
+ card.elements[1].scope = `#/properties/${config.name}/properties/label`;
12193
+ card.elements[2].scope = `#/properties/${config.name}/properties/value`;
12194
+ card.elements[3].scope = `#/properties/${config.name}/properties/description`;
11613
12195
  if (config.layout) {
11614
12196
  card.config.layout = createLayoutFormat(config.layout);
11615
12197
  }
@@ -11618,16 +12200,56 @@ const buildCard = (config, componentScope, store) => {
11618
12200
  card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
11619
12201
  }
11620
12202
  if (config.label) {
11621
- card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
12203
+ card.elements[1].config.main.heading = config.label;
11622
12204
  }
11623
12205
  if (config.url) {
11624
- card.elements[1].config.main.url = config.url;
12206
+ card.elements[0].config.main.url = config.url;
11625
12207
  }
11626
12208
  if (config.description) {
11627
- card.elements[0].elements[0].elements[1].config.main.heading = config.description;
12209
+ card.elements[3].config.main.heading = config.description;
11628
12210
  }
11629
12211
  return card;
11630
12212
  };
12213
+ var MetricCard = {
12214
+ type: "Control",
12215
+ scope: "#/properties/metricpath",
12216
+ options: {
12217
+ widget: "MetricCard"
12218
+ },
12219
+ config: {
12220
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
12221
+ main: {}
12222
+ }
12223
+ };
12224
+ const buildMetricCard = (config2, componentScope2, store2) => {
12225
+ const card2 = _.cloneDeep(MetricCard);
12226
+ card2.scope = componentScope2;
12227
+ if (config2.style) {
12228
+ card2.config.style = JSON.parse(config2.style);
12229
+ }
12230
+ if (config2.layout) {
12231
+ card2.config.layout = createLayoutFormat(config2.layout);
12232
+ }
12233
+ if (config2.label) {
12234
+ card2.config.main.label = config2.label;
12235
+ }
12236
+ if (config2.url) {
12237
+ card2.config.main.url = config2.url;
12238
+ }
12239
+ if (config2.description) {
12240
+ card2.config.main.description = config2.description;
12241
+ }
12242
+ if (config2.cardValue) {
12243
+ card2.config.main.cardValue = config2.cardValue;
12244
+ }
12245
+ if (config2.growthRate) {
12246
+ card2.config.main.growthRate = config2.growthRate;
12247
+ }
12248
+ if (config2.color) {
12249
+ card2.config.main.color = config2.color;
12250
+ }
12251
+ return card2;
12252
+ };
11631
12253
  var DateInputField = {
11632
12254
  type: "Control",
11633
12255
  scope: "#/properties/date",
@@ -11659,21 +12281,43 @@ const DateTime = {
11659
12281
  const buildDate = (config2, componentScope2) => {
11660
12282
  const dateInputField = _.cloneDeep(DateInputField);
11661
12283
  dateInputField.config.main.label = config2.label;
11662
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11663
12284
  dateInputField.scope = componentScope2;
11664
12285
  if (config2.layout) {
11665
12286
  dateInputField.config.layout = createLayoutFormat(config2.layout);
11666
12287
  }
12288
+ if (config2.variant) {
12289
+ dateInputField.config.main.variant = config2.variant;
12290
+ }
12291
+ if (config2.toolTip) {
12292
+ dateInputField.config.main.toolTip = config2.toolTip;
12293
+ }
12294
+ if (config2.toolTipPosition) {
12295
+ dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
12296
+ }
12297
+ if (config2.style) {
12298
+ dateInputField.config.style = JSON.parse(config2.style);
12299
+ }
11667
12300
  return dateInputField;
11668
12301
  };
11669
12302
  const buildDateTime = (config2, componentScope2) => {
11670
12303
  const dateTimeInputField = _.cloneDeep(DateTime);
11671
12304
  dateTimeInputField.config.main.label = config2.label;
11672
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11673
12305
  dateTimeInputField.scope = componentScope2;
11674
12306
  if (config2.layout) {
11675
12307
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
11676
12308
  }
12309
+ if (config2.variant) {
12310
+ dateTimeInputField.config.main.variant = config2.variant;
12311
+ }
12312
+ if (config2.toolTip) {
12313
+ dateTimeInputField.config.main.toolTip = config2.toolTip;
12314
+ }
12315
+ if (config2.toolTipPosition) {
12316
+ dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
12317
+ }
12318
+ if (config2.style) {
12319
+ dateTimeInputField.config.style = JSON.parse(config2.style);
12320
+ }
11677
12321
  return dateTimeInputField;
11678
12322
  };
11679
12323
  var RankCard = {
@@ -11764,7 +12408,8 @@ var MultipleSelect = {
11764
12408
  multiple: true,
11765
12409
  variant: "outlined",
11766
12410
  options: []
11767
- }
12411
+ },
12412
+ style: {}
11768
12413
  }
11769
12414
  };
11770
12415
  const buildMultiSelect = (config2, componentScope2) => {
@@ -11785,6 +12430,15 @@ const buildMultiSelect = (config2, componentScope2) => {
11785
12430
  if (config2.lazyLoading) {
11786
12431
  multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11787
12432
  }
12433
+ if (config2.toolTip) {
12434
+ multipleSelect.config.main.toolTip = config2.toolTip;
12435
+ }
12436
+ if (config2.toolTipPosition) {
12437
+ multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
12438
+ }
12439
+ if (config2.style) {
12440
+ multipleSelect.config.style = JSON.parse(config2.style);
12441
+ }
11788
12442
  return multipleSelect;
11789
12443
  };
11790
12444
  const buildBasicUiSchema = (config2) => {
@@ -11918,17 +12572,23 @@ const buildLineGraph = (config2, componentScope2) => {
11918
12572
  if (config2.leftLabel) {
11919
12573
  lineGraph.config.main.leftLabel = config2.leftLabel;
11920
12574
  }
12575
+ if (config2.disableLeftLabel) {
12576
+ lineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
12577
+ }
11921
12578
  if (config2.legendHide) {
11922
12579
  lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
11923
12580
  }
12581
+ if (config2.legendDirection) {
12582
+ lineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
12583
+ }
11924
12584
  if (config2.bottomAxisAngle) {
11925
12585
  lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
11926
12586
  }
11927
12587
  if (config2.legendLabels) {
11928
- lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
12588
+ lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11929
12589
  }
11930
12590
  if (config2.pieArcColors) {
11931
- lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
12591
+ lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
11932
12592
  }
11933
12593
  lineGraph.scope = componentScope2;
11934
12594
  return lineGraph;
@@ -11943,8 +12603,7 @@ const RadioUiSchema = {
11943
12603
  layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11944
12604
  main: {
11945
12605
  label: "Enabled",
11946
- options: ["YES", "NO"],
11947
- errorMessage: "Enabled is not marked as YES or NO"
12606
+ options: ["YES", "NO"]
11948
12607
  }
11949
12608
  }
11950
12609
  };
@@ -11961,6 +12620,15 @@ const buildRadio = (config2, componentScope2) => {
11961
12620
  if (config2.style) {
11962
12621
  Radio.config.style = JSON.parse(config2.style);
11963
12622
  }
12623
+ if (config2.errorMessage) {
12624
+ Radio.config.main.errorMessage = config2.errorMessage;
12625
+ }
12626
+ if (config2.toolTip) {
12627
+ Radio.config.main.toolTip = config2.toolTip;
12628
+ }
12629
+ if (config2.toolTipPosition) {
12630
+ Radio.config.main.toolTipPosition = config2.toolTipPosition;
12631
+ }
11964
12632
  return Radio;
11965
12633
  };
11966
12634
  var emptyBox = {
@@ -11977,9 +12645,13 @@ var emptyBox = {
11977
12645
  };
11978
12646
  const buildEmptyBox = (config2, componentScope2) => {
11979
12647
  const EmptyBox = _.cloneDeep(emptyBox);
12648
+ EmptyBox.scope = componentScope2;
11980
12649
  if (config2.layout) {
11981
12650
  EmptyBox.config.layout = createLayoutFormat(config2.layout);
11982
12651
  }
12652
+ if (config2.style) {
12653
+ EmptyBox.config.style = JSON.parse(config2.style);
12654
+ }
11983
12655
  return EmptyBox;
11984
12656
  };
11985
12657
  const ArrayUiSchema = {
@@ -11996,10 +12668,23 @@ const buildArray = (config2, componentScope2) => {
11996
12668
  if (config2.allExpanded) {
11997
12669
  array.config.main.allExpanded = config2.allExpanded === "YES" ? true : false;
11998
12670
  }
12671
+ if (config2.disableAddButton) {
12672
+ array.config.main.disableAddButton = config2.disableAddButton === "YES" ? true : false;
12673
+ }
12674
+ if (config2.disableExpandAllButton) {
12675
+ array.config.main.disableExpandAllButton = config2.disableExpandAllButton === "YES" ? true : false;
12676
+ }
12677
+ if (config2.disableRowActions) {
12678
+ array.config.main.disableRowActions = config2.disableRowActions === "YES" ? true : false;
12679
+ }
11999
12680
  if (config2.style) {
12000
12681
  array.config.style = JSON.parse(config2.style);
12001
12682
  }
12683
+ array.config.main.rowSpacing = Number(config2.rowSpacing);
12684
+ array.config.main.columnSpacing = Number(config2.columnSpacing);
12685
+ array.config.main.spacing = Number(config2.spacing);
12002
12686
  array.config.main.childElementLabel = config2.childElementLabel;
12687
+ array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
12003
12688
  array.config.main.label = config2.label;
12004
12689
  array.scope = componentScope2;
12005
12690
  return array;
@@ -12074,7 +12759,8 @@ const FileInput = {
12074
12759
  required: false,
12075
12760
  onUpload: "onFileUpload",
12076
12761
  onDownload: "onFileDownload",
12077
- label: "Aggrement Copy"
12762
+ label: "Aggrement Copy",
12763
+ "onClick": "onClick"
12078
12764
  },
12079
12765
  style: {
12080
12766
  backgroundColor: "none"
@@ -12091,6 +12777,19 @@ const buildFileInput = (config2, componentScope2) => {
12091
12777
  if (config2.style) {
12092
12778
  box.config.style = JSON.parse(config2.style);
12093
12779
  }
12780
+ box.config.main.variant = config2.variant;
12781
+ box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12782
+ box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12783
+ box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12784
+ box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
12785
+ box.config.main.description = config2.description;
12786
+ box.config.main.toolTip = config2.toolTip;
12787
+ box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
12788
+ box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
12789
+ if (config2.toolTipPosition) {
12790
+ box.config.main.toolTipPosition = config2.toolTipPosition;
12791
+ }
12792
+ box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
12094
12793
  return box;
12095
12794
  };
12096
12795
  const Stepper = {
@@ -12147,6 +12846,7 @@ const PopUP = {
12147
12846
  },
12148
12847
  main: {
12149
12848
  label: "PopUp",
12849
+ onClose: "onClose",
12150
12850
  fullScreen: false,
12151
12851
  fullWidth: false,
12152
12852
  maxWidth: false,
@@ -12338,124 +13038,482 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12338
13038
  }
12339
13039
  return thought;
12340
13040
  };
13041
+ var horizontalLayout = {
13042
+ type: "HorizontalLayout",
13043
+ config: {
13044
+ layout: 12,
13045
+ main: {
13046
+ rowSpacing: 3,
13047
+ divider: false
13048
+ },
13049
+ defaultStyle: true
13050
+ },
13051
+ elements: []
13052
+ };
13053
+ const buildHorizontalLayout = (config2, componentScope2) => {
13054
+ const horizontal = _.cloneDeep(horizontalLayout);
13055
+ horizontal.scope = componentScope2;
13056
+ if (config2.style) {
13057
+ horizontal.config.style = JSON.parse(config2.style);
13058
+ }
13059
+ if (config2.layout) {
13060
+ horizontal.config.layout = createLayoutFormat(config2.layout, config2.type);
13061
+ }
13062
+ return horizontal;
13063
+ };
13064
+ const imageUiSchema = {
13065
+ type: "Control",
13066
+ scope: "#/properties/Logo",
13067
+ options: {
13068
+ widget: "Image"
13069
+ },
13070
+ config: {
13071
+ layout: 3,
13072
+ main: {
13073
+ url: "",
13074
+ onClick: "onClick"
13075
+ },
13076
+ style: {}
13077
+ }
13078
+ };
13079
+ const buildImage = (config2, componentScope2) => {
13080
+ const image = _.cloneDeep(imageUiSchema);
13081
+ image.scope = componentScope2;
13082
+ image.config.main.url = config2.imageUrl;
13083
+ if (config2.layout) {
13084
+ image.config.layout = createLayoutFormat(config2.layout);
13085
+ }
13086
+ if (config2.style) {
13087
+ image.config.style = JSON.parse(config2.style);
13088
+ }
13089
+ if (config2.height) {
13090
+ image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
13091
+ }
13092
+ image.config.main.toolTip = config2.toolTip;
13093
+ image.config.main.toolTipPosition = config2.toolTipPosition;
13094
+ return image;
13095
+ };
13096
+ const buildAreaGraph = (config2, componentScope2) => {
13097
+ const AreaGraph = _.cloneDeep(AreaBarGraph);
13098
+ AreaGraph.scope = componentScope2;
13099
+ if (config2.layout) {
13100
+ AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13101
+ }
13102
+ AreaGraph.config.main.type = config2.graphType;
13103
+ AreaGraph.scope = componentScope2;
13104
+ AreaGraph.config.main.header = config2.heading;
13105
+ AreaGraph.config.main.subHeader = config2.subHeader;
13106
+ if (config2.legendHide) {
13107
+ AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13108
+ }
13109
+ if (config2.bottomAxisAngle) {
13110
+ AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13111
+ }
13112
+ if (config2.legendLabels) {
13113
+ AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13114
+ }
13115
+ if (config2.legendDirection) {
13116
+ AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13117
+ }
13118
+ if (config2.height) {
13119
+ AreaGraph.config.style.containerStyle.height = config2.height;
13120
+ }
13121
+ if (config2.pieArcColors) {
13122
+ AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13123
+ }
13124
+ if (config2.xAxisFormatType) {
13125
+ AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
13126
+ }
13127
+ if (config2.yAxisTickCount) {
13128
+ AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13129
+ }
13130
+ if (config2.xAxisTickCount) {
13131
+ AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13132
+ }
13133
+ if (config2.xAxisValue) {
13134
+ AreaGraph.config.main.xAxisValue = config2.xAxisValue;
13135
+ }
13136
+ if (config2.xAxisType) {
13137
+ AreaGraph.config.main.xAxisType = config2.xAxisType;
13138
+ }
13139
+ if (config2.bottomLabel) {
13140
+ AreaGraph.config.main.bottomLabel = config2.bottomLabel;
13141
+ }
13142
+ if (config2.leftLabel) {
13143
+ AreaGraph.config.main.leftLabel = config2.leftLabel;
13144
+ }
13145
+ if (config2.disableLeftLabel) {
13146
+ AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13147
+ }
13148
+ if (config2.leftMargin) {
13149
+ AreaGraph.config.style.labelStyle.margin = {
13150
+ left: config2.leftMargin
13151
+ };
13152
+ }
13153
+ return AreaGraph;
13154
+ };
13155
+ const buildStackBarLineGraph = (config2, componentScope2) => {
13156
+ const StackBarLineGraph = _.cloneDeep(StackBarLineG);
13157
+ StackBarLineGraph.scope = componentScope2;
13158
+ if (config2.layout) {
13159
+ StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13160
+ }
13161
+ StackBarLineGraph.config.main.type = config2.graphType;
13162
+ StackBarLineGraph.scope = componentScope2;
13163
+ StackBarLineGraph.config.main.header = config2.heading;
13164
+ StackBarLineGraph.config.main.subHeader = config2.subHeader;
13165
+ if (config2.legendHide) {
13166
+ StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13167
+ }
13168
+ if (config2.bottomAxisAngle) {
13169
+ StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13170
+ }
13171
+ if (config2.legendLabels) {
13172
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13173
+ }
13174
+ if (config2.legendDirection) {
13175
+ StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13176
+ }
13177
+ if (config2.height) {
13178
+ StackBarLineGraph.config.style.containerStyle.height = config2.height;
13179
+ }
13180
+ if (config2.pieArcColors) {
13181
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13182
+ }
13183
+ if (config2.yAxisTickCount) {
13184
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13185
+ }
13186
+ if (config2.xAxisTickCount) {
13187
+ StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13188
+ }
13189
+ if (config2.xAxisValue) {
13190
+ StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13191
+ }
13192
+ if (config2.xAxisType) {
13193
+ StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
13194
+ }
13195
+ if (config2.bottomLabel) {
13196
+ StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
13197
+ }
13198
+ if (config2.leftLabel) {
13199
+ StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
13200
+ }
13201
+ if (config2.rightLabel) {
13202
+ StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
13203
+ }
13204
+ if (config2.disableLeftLabel) {
13205
+ StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13206
+ }
13207
+ if (config2.growthRateKey) {
13208
+ StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
13209
+ }
13210
+ if (config2.tooltipUnit) {
13211
+ StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
13212
+ }
13213
+ if (config2.leftMargin) {
13214
+ StackBarLineGraph.config.style.labelStyle.margin = {
13215
+ left: config2.leftMargin
13216
+ };
13217
+ }
13218
+ return StackBarLineGraph;
13219
+ };
13220
+ const cameraUiSchema = {
13221
+ type: "Control",
13222
+ scope: "#/properties/camera",
13223
+ options: {
13224
+ widget: "Camera"
13225
+ },
13226
+ config: {
13227
+ main: {
13228
+ label: "Upload Photo",
13229
+ multiUplaod: false,
13230
+ onUpload: "onFileUpload"
13231
+ }
13232
+ }
13233
+ };
13234
+ const buildCamera = (config2, componentScope2) => {
13235
+ const camera = _.cloneDeep(cameraUiSchema);
13236
+ camera.scope = componentScope2;
13237
+ if (config2.iconName) {
13238
+ camera.config.main.startIcon = config2.iconName;
13239
+ }
13240
+ if (config2.layout) {
13241
+ camera.config.layout = createLayoutFormat(config2.layout, config2.type);
13242
+ }
13243
+ if (config2.tooltipMessage) {
13244
+ camera.config.main.tooltipMessage = config2.tooltipMessage;
13245
+ }
13246
+ camera.config.main.multiUplaod = config2.multiUplaod === "YES" ? true : false;
13247
+ if (config2.style) {
13248
+ camera.config.style = JSON.parse(config2.style);
13249
+ }
13250
+ if (config2.size) {
13251
+ camera.config.main.size = config2.size;
13252
+ }
13253
+ if (config2.variant) {
13254
+ camera.config.main.variant = config2.variant;
13255
+ }
13256
+ if (config2.color) {
13257
+ camera.config.main.color = config2.color;
13258
+ }
13259
+ if (config2.label) {
13260
+ camera.config.main.label = config2.label;
13261
+ }
13262
+ return camera;
13263
+ };
13264
+ var ButtonGroup = {
13265
+ type: "Control",
13266
+ scope: "#/properties/buttonGroup",
13267
+ options: {
13268
+ widget: "ButtonGroup"
13269
+ },
13270
+ config: {
13271
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
13272
+ main: {
13273
+ variant: "contained",
13274
+ styleDefault: false,
13275
+ size: "small"
13276
+ },
13277
+ style: {}
13278
+ }
13279
+ };
13280
+ const buildButtonGroup = (config2, componentScope2) => {
13281
+ const buttonGroup = _.cloneDeep(ButtonGroup);
13282
+ if (config2.layout) {
13283
+ buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
13284
+ }
13285
+ buttonGroup.scope = componentScope2;
13286
+ if (config2.multiSelect) {
13287
+ buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
13288
+ }
13289
+ if (config2.style) {
13290
+ buttonGroup.config.style = JSON.parse(config2.style);
13291
+ }
13292
+ if (config2.size) {
13293
+ buttonGroup.config.main.size = config2.size;
13294
+ }
13295
+ if (config2.color) {
13296
+ buttonGroup.config.main.color = config2.color;
13297
+ }
13298
+ return buttonGroup;
13299
+ };
13300
+ const PopOver = {
13301
+ type: "Control",
13302
+ scope: "#/properties/text",
13303
+ options: {
13304
+ widget: "Popover"
13305
+ },
13306
+ config: {
13307
+ layout: {
13308
+ xs: 12,
13309
+ sm: 12,
13310
+ md: 12,
13311
+ lg: 12
13312
+ },
13313
+ main: {
13314
+ label: "PopOver"
13315
+ },
13316
+ style: {}
13317
+ }
13318
+ };
13319
+ const buildPopOver = (config2, componentScope2) => {
13320
+ const popOver = _.cloneDeep(PopOver);
13321
+ popOver.scope = componentScope2;
13322
+ popOver.config.main.positionVertical = config2.positionVertical;
13323
+ popOver.config.main.positionHorizontal = config2.positionHorizontal;
13324
+ popOver.config.main.contentVertical = config2.contentVertical;
13325
+ popOver.config.main.contentHorizontal = config2.contentHorizontal;
13326
+ popOver.config.main.width = config2.width;
13327
+ popOver.config.main.gap = config2.gap;
13328
+ if (config2.layout) {
13329
+ popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
13330
+ }
13331
+ if (config2.style) {
13332
+ popOver.config.style = JSON.parse(config2.style);
13333
+ }
13334
+ return popOver;
13335
+ };
13336
+ const OTPSchema = {
13337
+ type: "Control",
13338
+ scope: "#/properties/OTPInput",
13339
+ options: {
13340
+ widget: "OTPInput"
13341
+ },
13342
+ config: {
13343
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
13344
+ main: {
13345
+ seperator: "",
13346
+ length: 4,
13347
+ type: "number",
13348
+ masking: true
13349
+ }
13350
+ }
13351
+ };
13352
+ const buildOTP_Input = (config2, componentScope2) => {
13353
+ const OTP = _.cloneDeep(OTPSchema);
13354
+ OTP.scope = componentScope2;
13355
+ if (config2.layout) {
13356
+ OTP.config.layout = createLayoutFormat(config2.layout);
13357
+ }
13358
+ if (config2.style) {
13359
+ OTP.config.style = JSON.parse(config2.style);
13360
+ }
13361
+ if (config2.errorMessage) {
13362
+ OTP.config.main.errorMessage = config2.errorMessage;
13363
+ }
13364
+ if (config2.toolTip) {
13365
+ OTP.config.main.toolTip = config2.toolTip;
13366
+ }
13367
+ OTP.config.main.masking = config2.masking === "YES" ? true : false;
13368
+ OTP.config.main.type = config2.OTP_Format;
13369
+ OTP.config.main.seperator = config2.seperator;
13370
+ OTP.config.main.length = +config2.length;
13371
+ return OTP;
13372
+ };
13373
+ var pdfViewer = {
13374
+ type: "Control",
13375
+ scope: "#/properties/pdfviewer",
13376
+ options: {
13377
+ widget: "PdfViewer"
13378
+ },
13379
+ config: {
13380
+ layout: {
13381
+ xs: 12,
13382
+ sm: 12,
13383
+ md: 12,
13384
+ lg: 12
13385
+ },
13386
+ main: {
13387
+ title: "PDF"
13388
+ }
13389
+ }
13390
+ };
13391
+ const buildPdfViewer = (config2, componentScope2) => {
13392
+ const PdfViewer = _.cloneDeep(pdfViewer);
13393
+ PdfViewer.scope = componentScope2;
13394
+ PdfViewer.config.main.scale = config2.scale;
13395
+ if (config2.layout) {
13396
+ PdfViewer.config.layout = createLayoutFormat(config2.layout);
13397
+ }
13398
+ if (config2.style) {
13399
+ PdfViewer.config.style = JSON.parse(config2.style);
13400
+ }
13401
+ return PdfViewer;
13402
+ };
13403
+ const HierarchyChart = {
13404
+ type: "Control",
13405
+ scope: "#/properties/HierarchyChart",
13406
+ options: {
13407
+ widget: "HierarchyChart"
13408
+ },
13409
+ config: {
13410
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
13411
+ main: {},
13412
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
13413
+ }
13414
+ };
13415
+ const buildHierarchyChart = (config2, componentScope2, store2) => {
13416
+ const hierarchyChart = _.cloneDeep(HierarchyChart);
13417
+ hierarchyChart.scope = componentScope2;
13418
+ if (config2.style) {
13419
+ hierarchyChart.config.style = JSON.parse(config2.style);
13420
+ }
13421
+ if (config2.layout) {
13422
+ hierarchyChart.config.layout = createLayoutFormat(config2.layout);
13423
+ }
13424
+ if (config2.linkType) {
13425
+ hierarchyChart.config.main.linkType = config2.linkType;
13426
+ }
13427
+ if (config2.stepPercent) {
13428
+ hierarchyChart.config.main.stepPercent = config2.stepPercent;
13429
+ }
13430
+ if (config2.nodeWidth) {
13431
+ hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
13432
+ }
13433
+ if (config2.nodeHeight) {
13434
+ hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
13435
+ }
13436
+ if (config2.chartHeight) {
13437
+ hierarchyChart.config.main.chartHeight = config2.chartHeight;
13438
+ }
13439
+ if (config2.lazyLoading) {
13440
+ hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
13441
+ }
13442
+ return hierarchyChart;
13443
+ };
12341
13444
  let schema = {
12342
13445
  type: "object",
12343
13446
  properties: {},
12344
13447
  required: []
12345
13448
  };
12346
- function buildRule(configObj, tableName, arrayHolderName) {
12347
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
12348
- if (arrayHolderName) {
12349
- if ((_c = (_b = (_a = schema.properties) == null ? void 0 : _a[tableName]) == null ? void 0 : _b.items) == null ? void 0 : _c.properties) {
12350
- 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])) {
12351
- schema.properties[tableName].items.properties[configObj.name] = {};
12352
- if (configObj.type === "Select" && ((_h = configObj.value) == null ? void 0 : _h.length) > 0) {
12353
- schema.properties[tableName].items.properties[configObj.name] = {
12354
- oneOf: configObj.value.map((e) => {
12355
- return { const: e.value, title: e.label };
12356
- })
12357
- };
12358
- } else if (configObj.type === "MultipleSelect" && ((_i = configObj.value) == null ? void 0 : _i.length) > 0) {
12359
- schema.properties[tableName].items.properties[configObj.name] = {
12360
- items: {
12361
- oneOf: configObj.value.map((e) => {
12362
- return { const: e.value, title: e.label };
12363
- })
12364
- }
12365
- };
12366
- }
12367
- }
12368
- }
12369
- } else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && ((_j = configObj.value) == null ? void 0 : _j.length) > 0) {
12370
- if (configObj.type === "Select") {
12371
- schema.properties[configObj.name] = {
12372
- oneOf: configObj.value.map((e) => {
12373
- return { const: e.value, title: e.label };
12374
- })
12375
- };
12376
- } else if (configObj.type === "MultipleSelect") {
12377
- schema.properties[configObj.name] = {
13449
+ function buildSchemaFromConfig(config2, parentSchema) {
13450
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
13451
+ if (config2.elements) {
13452
+ if (config2.type === "Array") {
13453
+ (_a = parentSchema.properties) != null ? _a : parentSchema.properties = {};
13454
+ (_d = (_b = parentSchema.properties)[_c = config2.name]) != null ? _d : _b[_c] = {
13455
+ type: "array",
12378
13456
  items: {
12379
- oneOf: configObj.value.map((e) => {
12380
- return { const: e.value, title: e.label };
12381
- })
13457
+ type: "object",
13458
+ properties: {},
13459
+ required: []
12382
13460
  }
12383
13461
  };
13462
+ const arrayItemSchema = parentSchema.properties[config2.name].items;
13463
+ (_e = config2.elements) == null ? void 0 : _e.forEach(
13464
+ (child) => buildSchemaFromConfig(child, arrayItemSchema)
13465
+ );
13466
+ return;
13467
+ } else {
13468
+ (_f = config2.elements) == null ? void 0 : _f.forEach(
13469
+ (child) => buildSchemaFromConfig(child, parentSchema)
13470
+ );
13471
+ return;
12384
13472
  }
12385
13473
  }
12386
- if (configObj.validation) {
12387
- configObj.validation.forEach((rule) => {
12388
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l;
12389
- if (tableName) {
12390
- if ((_c2 = (_b2 = (_a2 = schema.properties) == null ? void 0 : _a2[tableName]) == null ? void 0 : _b2.items) == null ? void 0 : _c2.properties) {
12391
- 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])) {
12392
- schema.properties[tableName].items.properties[configObj.name] = {};
12393
- if (configObj.type === "Select" || ((_h2 = configObj.value) == null ? void 0 : _h2.length) > 0) {
12394
- schema.properties[tableName].items.properties[configObj.name] = {
12395
- oneOf: configObj.value.map((e) => {
12396
- return { const: e.value, title: e.label };
12397
- })
12398
- };
12399
- } else if (configObj.type === "MultipleSelect" || ((_i2 = configObj.value) == null ? void 0 : _i2.length) > 0) {
12400
- schema.properties[tableName].items.properties[configObj.name] = {
12401
- items: {
12402
- oneOf: configObj.value.map((e) => {
12403
- return { const: e.value, title: e.label };
12404
- })
12405
- }
12406
- };
12407
- }
12408
- }
12409
- if (rule.validationType === "required") {
12410
- (_l = (_k = (_j2 = schema.properties) == null ? void 0 : _j2[tableName]) == null ? void 0 : _k.items) == null ? void 0 : _l.required.push(configObj.name);
12411
- } else {
12412
- schema.properties[tableName].items.properties[configObj.name]["type"] = "string";
12413
- schema.properties[tableName].items.properties[configObj.name][rule.validationType] = isNaN(rule.validationValue) ? rule.validationValue : Number(rule.validationValue);
12414
- }
12415
- }
12416
- } else {
12417
- if (!schema.properties[configObj.name]) {
12418
- schema.properties[configObj.name] = {};
12419
- }
12420
- if (rule.validationType === "required") {
12421
- schema.required.push(configObj.name);
12422
- } else {
12423
- schema.properties[configObj.name]["type"] = "string";
12424
- schema.properties[configObj.name][rule.validationType] = isNaN(rule.validationValue) ? rule.validationValue : Number(rule.validationValue);
12425
- }
12426
- }
12427
- });
12428
- }
12429
- }
12430
- const buildSchema = (config2, tableName, isArrayType) => {
12431
- buildRule(config2, tableName, isArrayType);
12432
- if (config2 == null ? void 0 : config2.elements) {
12433
- if (config2.type == "Array") {
12434
- if (!schema.properties[config2.name]) {
12435
- schema.properties[config2.name] = {
12436
- type: "array",
12437
- items: {
12438
- type: "object",
12439
- properties: {},
12440
- required: []
12441
- }
12442
- };
12443
- }
12444
- config2.elements.map((e, elemInd) => {
12445
- buildSchema(e, config2.name, config2.type === "Array" ? true : false);
12446
- });
13474
+ (_g = parentSchema.properties) != null ? _g : parentSchema.properties = {};
13475
+ (_j = (_h = parentSchema.properties)[_i = config2.name]) != null ? _j : _h[_i] = {};
13476
+ const fieldSchema = parentSchema.properties[config2.name];
13477
+ (_k = config2.validation) == null ? void 0 : _k.forEach((v) => {
13478
+ var _a2;
13479
+ if (v.validationType === "required") {
13480
+ (_a2 = parentSchema.required) != null ? _a2 : parentSchema.required = [];
13481
+ parentSchema.required.push(config2.name);
13482
+ } else if (v.validationType === "readOnly") {
13483
+ fieldSchema.type = "string";
13484
+ fieldSchema.disabled = true;
12447
13485
  } else {
12448
- config2.elements.map((e, elemInd) => {
12449
- buildSchema(e);
12450
- });
13486
+ fieldSchema.type = "string";
13487
+ fieldSchema[v.validationType] = isNaN(v.validationValue) ? v.validationValue : Number(v.validationValue);
12451
13488
  }
13489
+ });
13490
+ if (config2.type === "Select" && ((_l = config2.value) == null ? void 0 : _l.length)) {
13491
+ fieldSchema.oneOf = config2.value.map((v) => ({
13492
+ const: v.value,
13493
+ title: v.label
13494
+ }));
13495
+ }
13496
+ if (config2.type === "MultipleSelect" && ((_m = config2.value) == null ? void 0 : _m.length)) {
13497
+ fieldSchema.type = "array";
13498
+ fieldSchema.items = {
13499
+ oneOf: config2.value.map((v) => ({
13500
+ const: v.value,
13501
+ title: v.label
13502
+ }))
13503
+ };
12452
13504
  }
13505
+ }
13506
+ const buildSchema = (config2) => {
13507
+ buildSchemaFromConfig(config2, schema);
12453
13508
  return schema;
12454
13509
  };
12455
13510
  const buildUiSchema = (config2, store2) => {
12456
13511
  let elements = {};
12457
13512
  const componentScope2 = `#/properties/${config2.name}`;
12458
13513
  switch (config2.type) {
13514
+ case "OTP_Input":
13515
+ elements = buildOTP_Input(config2, componentScope2);
13516
+ break;
12459
13517
  case "TreeMap":
12460
13518
  elements = buildTreeMap(config2, componentScope2);
12461
13519
  break;
@@ -12474,6 +13532,9 @@ const buildUiSchema = (config2, store2) => {
12474
13532
  case "PopUp":
12475
13533
  elements = buildPopUp(config2, componentScope2);
12476
13534
  break;
13535
+ case "PopOver":
13536
+ elements = buildPopOver(config2, componentScope2);
13537
+ break;
12477
13538
  case "FileInput":
12478
13539
  elements = buildFileInput(config2, componentScope2);
12479
13540
  break;
@@ -12492,6 +13553,9 @@ const buildUiSchema = (config2, store2) => {
12492
13553
  case "WrapperSection":
12493
13554
  elements = buildWrapperSection(config2, componentScope2);
12494
13555
  break;
13556
+ case "HorizontalLayout":
13557
+ elements = buildHorizontalLayout(config2, componentScope2);
13558
+ break;
12495
13559
  case "Text":
12496
13560
  elements = buildTextField(config2, componentScope2);
12497
13561
  break;
@@ -12510,6 +13574,9 @@ const buildUiSchema = (config2, store2) => {
12510
13574
  case "Button":
12511
13575
  elements = buildButton(config2, componentScope2);
12512
13576
  break;
13577
+ case "ButtonGroup":
13578
+ elements = buildButtonGroup(config2, componentScope2);
13579
+ break;
12513
13580
  case "Table":
12514
13581
  elements = buildTable(config2, componentScope2);
12515
13582
  break;
@@ -12529,11 +13596,17 @@ const buildUiSchema = (config2, store2) => {
12529
13596
  elements = buildDownloadFile(config2, componentScope2);
12530
13597
  break;
12531
13598
  case "EmptyBox":
12532
- elements = buildEmptyBox(config2);
13599
+ elements = buildEmptyBox(config2, componentScope2);
12533
13600
  break;
12534
13601
  case "card":
12535
13602
  elements = buildCard(config2, componentScope2, store2);
12536
13603
  break;
13604
+ case "MetricCard":
13605
+ elements = buildMetricCard(config2, componentScope2);
13606
+ break;
13607
+ case "HierarchyChart":
13608
+ elements = buildHierarchyChart(config2, componentScope2);
13609
+ break;
12537
13610
  case "Graph":
12538
13611
  switch (config2.graphType) {
12539
13612
  case "BarGraph":
@@ -12550,6 +13623,12 @@ const buildUiSchema = (config2, store2) => {
12550
13623
  case "HorizontalStackBarGraph":
12551
13624
  elements = buildHorizontalBarGraph(config2, componentScope2);
12552
13625
  break;
13626
+ case "AreaGraph":
13627
+ elements = buildAreaGraph(config2, componentScope2);
13628
+ break;
13629
+ case "StackBarLineGraph":
13630
+ elements = buildStackBarLineGraph(config2, componentScope2);
13631
+ break;
12553
13632
  default:
12554
13633
  elements = buildStackbarGraph(config2, componentScope2);
12555
13634
  break;
@@ -12592,6 +13671,15 @@ const buildUiSchema = (config2, store2) => {
12592
13671
  case "Thought":
12593
13672
  elements = buildThoughtOfTheDay(config2, componentScope2);
12594
13673
  break;
13674
+ case "Image":
13675
+ elements = buildImage(config2, componentScope2);
13676
+ break;
13677
+ case "Camera":
13678
+ elements = buildCamera(config2, componentScope2);
13679
+ break;
13680
+ case "PdfViewer":
13681
+ elements = buildPdfViewer(config2, componentScope2);
13682
+ break;
12595
13683
  default:
12596
13684
  schema = {
12597
13685
  type: "object",
@@ -12602,7 +13690,17 @@ const buildUiSchema = (config2, store2) => {
12602
13690
  }
12603
13691
  if (config2 == null ? void 0 : config2.elements) {
12604
13692
  if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
12605
- return elements;
13693
+ const rowElements = [];
13694
+ config2.elements.map((cellElem) => {
13695
+ const commonProperties = {
13696
+ accessorKey: cellElem.name,
13697
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
13698
+ header: cellElem.label || cellElem.name,
13699
+ columnKey: cellElem.columnKey
13700
+ };
13701
+ rowElements.push({ ...commonProperties });
13702
+ });
13703
+ elements.elements = rowElements;
12606
13704
  } else if (config2.type == "ColumnGroup") {
12607
13705
  const sizeMap = {};
12608
13706
  if (config2.sizeHolder) {
@@ -12611,13 +13709,27 @@ const buildUiSchema = (config2, store2) => {
12611
13709
  });
12612
13710
  }
12613
13711
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12614
- return {
13712
+ const commonProperties = {
12615
13713
  accessorKey: cellElem.name,
13714
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12616
13715
  header: cellElem.label || cellElem.name,
12617
13716
  size: sizeMap[cellElem.name] || 180,
12618
- type: cellElem.columnFormat,
12619
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
13717
+ enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
13718
+ columnFilterModeOptions: cellElem.filteringOptions,
13719
+ enableSorting: cellElem.enableSorting === "No" ? false : true,
13720
+ columnKey: cellElem.columnKey,
13721
+ dateFormat: cellElem.dateFormat
12620
13722
  };
13723
+ if (cellElem.type) {
13724
+ const tableElem = {
13725
+ widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
13726
+ ...commonProperties,
13727
+ ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
13728
+ };
13729
+ return tableElem;
13730
+ } else {
13731
+ return { ...commonProperties };
13732
+ }
12621
13733
  });
12622
13734
  } else if (config2.type == "Table") {
12623
13735
  const sizeMap = {};
@@ -12632,13 +13744,14 @@ const buildUiSchema = (config2, store2) => {
12632
13744
  config2.elements.filter((cellElem, elemInd) => {
12633
13745
  const commonProperties = {
12634
13746
  accessorKey: cellElem.name,
12635
- type: cellElem.columnFormat,
13747
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12636
13748
  header: cellElem.label || cellElem.name,
12637
13749
  size: sizeMap[cellElem.name] || 180,
12638
13750
  enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12639
13751
  columnFilterModeOptions: cellElem.filteringOptions,
12640
13752
  enableSorting: cellElem.enableSorting === "No" ? false : true,
12641
- columnKey: cellElem.columnKey
13753
+ columnKey: cellElem.columnKey,
13754
+ dateFormat: cellElem.dateFormat
12642
13755
  };
12643
13756
  if (cellElem.type) {
12644
13757
  if (cellElem.elementType == "action") {
@@ -12653,8 +13766,8 @@ const buildUiSchema = (config2, store2) => {
12653
13766
  }
12654
13767
  const tableElem = {
12655
13768
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12656
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12657
- ...commonProperties
13769
+ ...commonProperties,
13770
+ ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
12658
13771
  };
12659
13772
  rowElements.push(tableElem);
12660
13773
  } else {
@@ -12670,7 +13783,12 @@ const buildUiSchema = (config2, store2) => {
12670
13783
  });
12671
13784
  }
12672
13785
  }
13786
+ if (config2.tabLabelElements) {
13787
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13788
+ return buildUiSchema(e, store2);
13789
+ });
13790
+ }
12673
13791
  return elements;
12674
13792
  };
12675
- export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
13793
+ export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
12676
13794
  //# sourceMappingURL=impaktapps-ui-builder.es.js.map