impaktapps-ui-builder 1.0.4 → 1.0.6

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 (122) hide show
  1. package/dist/impaktapps-ui-builder.es.js +2268 -1162
  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/buildArray.d.ts +1 -11
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +2 -1
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.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/apiSection.d.ts +1 -3
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +10 -2
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -1
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +6 -1
  22. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
  23. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -171
  24. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +82 -72
  25. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +18 -50
  26. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -4
  27. package/dist/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.d.ts +13 -0
  28. package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
  29. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  30. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  31. package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +0 -3
  32. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  33. package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
  34. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +15 -66
  35. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +48 -38
  36. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +0 -3
  37. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +4 -1
  38. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
  39. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -0
  40. package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +5 -2
  41. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +10 -4
  42. package/package.json +1 -1
  43. package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -2
  44. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +35 -15
  46. package/src/impaktapps-ui-builder/builder/build/buildButton.ts +1 -1
  47. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
  48. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
  49. package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +1 -1
  50. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +34 -16
  51. package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +2 -2
  52. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +35 -13
  53. package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +7 -0
  54. package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +1 -0
  55. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -28
  56. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  57. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +10 -4
  58. package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
  59. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +38 -0
  60. package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +3 -0
  61. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +4 -1
  62. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -4
  63. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
  64. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +12 -0
  65. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  66. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  67. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +7 -4
  68. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +3 -2
  69. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  70. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
  71. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +11 -3
  72. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +12 -0
  73. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +10 -4
  74. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  75. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +5 -0
  76. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +21 -11
  77. package/src/impaktapps-ui-builder/builder/build/buildText.ts +12 -0
  78. package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +2 -2
  79. package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +1 -1
  80. package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +2 -1
  81. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +140 -130
  82. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
  83. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +8 -3
  84. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +0 -6
  85. package/src/impaktapps-ui-builder/builder/build/uischema/array.ts +1 -1
  86. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +5 -2
  87. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +396 -142
  88. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -1
  89. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  90. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -169
  91. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +127 -133
  92. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +2 -2
  93. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  94. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +30 -54
  95. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +3 -3
  96. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
  97. package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
  98. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
  99. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +4 -2
  100. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  101. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +0 -3
  102. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +3 -1
  103. package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
  104. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +34 -60
  105. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
  106. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +58 -113
  107. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -3
  108. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +4 -1
  109. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +228 -59
  110. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +121 -119
  111. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  112. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +94 -106
  113. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +11 -5
  114. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
  115. package/src/impaktapps-ui-builder/builder/services/component.ts +173 -86
  116. package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
  117. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -15
  118. package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
  119. package/src/impaktapps-ui-builder/lib/index.ts +10 -9
  120. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +33 -18
  121. package/src/impaktapps-ui-builder/runtime/services/events.ts +9 -11
  122. package/src/impaktapps-ui-builder/runtime/services/service.ts +121 -162
@@ -44,7 +44,7 @@ const PageMasterSchema = {
44
44
  disabled: true
45
45
  }
46
46
  },
47
- required: ["template", "name", "label"]
47
+ required: ["name", "label"]
48
48
  };
49
49
  const PageMasterUiSchema = (theme) => {
50
50
  var _a;
@@ -96,11 +96,41 @@ const PageMasterUiSchema = (theme) => {
96
96
  }
97
97
  }
98
98
  },
99
+ {
100
+ type: "Control",
101
+ scope: "#/properties/pageIconUrl",
102
+ options: {
103
+ widget: "InputField"
104
+ },
105
+ config: {
106
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
107
+ main: {
108
+ label: "Page Icon URL",
109
+ options: [],
110
+ color: "secondary",
111
+ required: true
112
+ }
113
+ }
114
+ },
115
+ {
116
+ type: "Control",
117
+ scope: "#/properties/hasBackIcon",
118
+ options: {
119
+ widget: "RadioInputField"
120
+ },
121
+ config: {
122
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
123
+ main: {
124
+ label: "Back Icon",
125
+ options: [{ label: "Yes", const: "YES" }, { label: "No", const: "NO" }]
126
+ }
127
+ }
128
+ },
99
129
  {
100
130
  type: "Control",
101
131
  scope: "#/properties/EmptyBox",
102
132
  config: {
103
- layout: { xs: 0, sm: 0, md: 4, lg: 6 }
133
+ layout: { xs: 0, sm: 6, md: 0, lg: 3 }
104
134
  },
105
135
  options: {
106
136
  widget: "EmptyBox"
@@ -204,91 +234,70 @@ const PageMasterUiSchema = (theme) => {
204
234
  disableAction: true,
205
235
  disableSelection: true,
206
236
  enableDrag: true
207
- }
208
- },
209
- elements: [
210
- {
211
- accessorKey: "name",
212
- header: "Name",
213
- size: 300,
214
- type: "string"
215
- },
216
- {
217
- accessorKey: "type",
218
- header: "Type",
219
- size: 300,
220
- type: "string"
221
237
  },
222
- {
223
- header: "Edit",
224
- field: "Reject_Records",
225
- size: 150,
226
- type: "action",
227
- widget: {
238
+ action: [
239
+ {
228
240
  type: "Control",
229
241
  scope: "#/properties/RejectButton",
230
242
  options: {
231
- widget: "IconButton"
243
+ widget: "Button"
232
244
  },
233
245
  config: {
234
246
  main: {
235
- icon: "TableEditIcon",
247
+ size: "small",
248
+ startIcon: "EditIcon",
236
249
  onClick: "Edit_Components",
237
- tooltipMessage: "Edit This Record"
238
- },
239
- style: {
240
- fill: theme.palette.primary.main,
241
- "& :hover": {
242
- fill: theme.palette.primary.dark
243
- }
250
+ tooltipMessage: "Edit This Record",
251
+ name: "Edit"
244
252
  }
245
253
  }
246
- }
247
- },
248
- {
249
- header: "Delete",
250
- field: "Reject_Records",
251
- size: 150,
252
- type: "action",
253
- widget: {
254
+ },
255
+ {
254
256
  type: "Control",
255
257
  scope: "#/properties/RejectButton",
256
258
  options: {
257
- widget: "IconButton"
259
+ widget: "Button"
258
260
  },
259
261
  config: {
260
262
  main: {
261
- icon: "Bin",
263
+ size: "small",
264
+ startIcon: "Bin",
262
265
  onClick: "deletePopUpComponent",
263
- tooltipMessage: "Reject This Record"
264
- },
265
- style: {
266
- fill: theme.palette.primary.main,
267
- "& :hover": {
268
- fill: theme.palette.primary.dark
269
- }
266
+ tooltipMessage: "Reject This Record",
267
+ name: "Delete"
270
268
  }
271
269
  }
272
- }
273
- },
274
- {
275
- header: "Copy",
276
- field: "Copy_Component",
277
- flex: 1,
278
- widget: {
270
+ },
271
+ {
279
272
  type: "Control",
280
273
  scope: "#/properties/Copy_Component",
281
274
  options: {
282
- widget: "IconButton"
275
+ widget: "Button"
283
276
  },
284
277
  config: {
285
278
  main: {
286
- icon: "FileCopyIcon",
279
+ size: "small",
280
+ startIcon: "FileCopyIcon",
287
281
  onClick: "copyPasteElement",
288
- styleDefault: true
282
+ styleDefault: false,
283
+ name: "Copy"
289
284
  }
290
285
  }
291
286
  }
287
+ ]
288
+ },
289
+ elements: [
290
+ {
291
+ accessorKey: "name",
292
+ header: "Name",
293
+ size: 300,
294
+ type: "string"
295
+ },
296
+ {
297
+ accessorKey: "type",
298
+ header: "Type",
299
+ size: 300,
300
+ type: "string"
292
301
  }
293
302
  ]
294
303
  },
@@ -361,93 +370,70 @@ const PageMasterUiSchema = (theme) => {
361
370
  disableAction: true,
362
371
  disableSelection: true,
363
372
  enableDrag: true
364
- }
365
- },
366
- elements: [
367
- {
368
- accessorKey: "eventType",
369
- header: "Event's Type",
370
- size: 300,
371
- type: "string"
372
373
  },
373
- {
374
- accessorKey: "Handler",
375
- header: "Handler",
376
- size: 200,
377
- type: "string"
378
- },
379
- {
380
- accessorKey: "Edit_Approve_Records",
381
- header: "Edit",
382
- type: "action",
383
- size: 150,
384
- widget: {
374
+ action: [
375
+ {
385
376
  type: "Control",
386
377
  scope: "#/properties/Edit_Records",
387
378
  options: {
388
- widget: "IconButton"
379
+ widget: "Button"
389
380
  },
390
381
  config: {
391
382
  main: {
392
383
  size: "small",
393
- icon: "TableEditIcon",
384
+ startIcon: "EditIcon",
394
385
  tooltipMessage: "Edit This Record",
395
- onClick: "editEvent"
396
- },
397
- style: {
398
- fill: theme.palette.primary.main,
399
- "& :hover": {
400
- fill: theme.palette.primary.dark
401
- }
386
+ onClick: "editEvent",
387
+ name: "Edit"
402
388
  }
403
389
  }
404
- }
405
- },
406
- {
407
- accessorKey: "Reject_Records",
408
- header: "Delete",
409
- type: "action",
410
- size: 150,
411
- widget: {
390
+ },
391
+ {
412
392
  type: "Control",
413
393
  scope: "#/properties/RejectButton",
414
394
  options: {
415
- widget: "IconButton"
395
+ widget: "Button"
416
396
  },
417
397
  config: {
418
398
  main: {
419
- icon: "Bin",
399
+ size: "small",
400
+ startIcon: "Bin",
420
401
  tooltipMessage: "Reject This Record",
421
- onClick: "deletePopUpEvent"
422
- },
423
- style: {
424
- fill: theme.palette.primary.main,
425
- "& :hover": {
426
- fill: theme.palette.primary.dark
427
- }
402
+ onClick: "deletePopUpEvent",
403
+ name: "Delete"
428
404
  }
429
405
  }
430
- }
431
- },
432
- {
433
- header: "Copy",
434
- field: "Copy_Event",
435
- type: "action",
436
- size: 150,
437
- widget: {
406
+ },
407
+ {
438
408
  type: "Control",
439
409
  scope: "#/properties/Copy_Event",
440
410
  options: {
441
- widget: "IconButton"
411
+ widget: "Button"
442
412
  },
443
413
  config: {
444
414
  main: {
445
- icon: "FileCopyIcon",
415
+ size: "small",
416
+ startIcon: "FileCopyIcon",
446
417
  onClick: "copyPasteElement",
447
- styleDefault: true
418
+ styleDefault: true,
419
+ name: "Copy"
448
420
  }
449
421
  }
450
422
  }
423
+ ]
424
+ },
425
+ elements: [
426
+ {
427
+ accessorKey: "eventType",
428
+ header: "Event's Type",
429
+ size: 300,
430
+ type: "string"
431
+ },
432
+ {
433
+ accessorKey: "Handler",
434
+ header: "Handler",
435
+ size: 200,
436
+ type: "string"
451
437
  }
452
438
  ]
453
439
  }
@@ -1518,7 +1504,7 @@ var lodash = { exports: {} };
1518
1504
  var reIsNative = RegExp2(
1519
1505
  "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1520
1506
  );
1521
- var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined$1, symIterator = Symbol ? Symbol.iterator : undefined$1, symToStringTag = Symbol ? Symbol.toStringTag : undefined$1;
1507
+ var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined$1, symIterator = Symbol ? Symbol.iterator : undefined$1, symToStringTag = Symbol ? Symbol.toStringTag : undefined$1;
1522
1508
  var defineProperty = function() {
1523
1509
  try {
1524
1510
  var func = getNative(Object2, "defineProperty");
@@ -2780,7 +2766,7 @@ var lodash = { exports: {} };
2780
2766
  }
2781
2767
  function cloneArrayBuffer(arrayBuffer) {
2782
2768
  var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
2783
- new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
2769
+ new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
2784
2770
  return result2;
2785
2771
  }
2786
2772
  function cloneDataView(dataView, isDeep) {
@@ -3384,7 +3370,7 @@ var lodash = { exports: {} };
3384
3370
  object = object.buffer;
3385
3371
  other = other.buffer;
3386
3372
  case arrayBufferTag:
3387
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
3373
+ if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
3388
3374
  return false;
3389
3375
  }
3390
3376
  return true;
@@ -6253,9 +6239,13 @@ const ComponentSchema = {
6253
6239
  { title: "Masked Aadhar Card", const: "AadharcardText" },
6254
6240
  { title: "Array", const: "Array" },
6255
6241
  { title: "Button", const: "Button" },
6242
+ { title: "ButtonGroup", const: "ButtonGroup" },
6256
6243
  { title: "Data Card", const: "card" },
6257
6244
  { title: "Check Box", const: "CheckBox" },
6245
+ { title: "Camera", const: "Camera" },
6246
+ { title: "Column Group", const: "ColumnGroup" },
6258
6247
  { title: "Container", const: "WrapperSection" },
6248
+ { title: "Tab Container", const: "HorizontalLayout" },
6259
6249
  { title: "Data Grid", const: "DataGrid" },
6260
6250
  { title: "Date", const: "Date" },
6261
6251
  { title: "Time Stamp", const: "DateTime" },
@@ -6263,12 +6253,15 @@ const ComponentSchema = {
6263
6253
  { title: "Empty Box", const: "EmptyBox" },
6264
6254
  { title: "File Handler", const: "FileInput" },
6265
6255
  { title: "Graph", const: "Graph" },
6256
+ { title: "Image", const: "Image" },
6266
6257
  { title: "Input Slider", const: "InputSlider" },
6267
6258
  { title: "Label", const: "Box" },
6268
6259
  { title: "Leaderboard", const: "LeaderBoard" },
6269
6260
  { title: "Multi-Select Dropdown", const: "MultipleSelect" },
6261
+ { title: "OTP_Input", const: "OTP_Input" },
6270
6262
  { title: "Pan Card Masked", const: "PanCardText" },
6271
6263
  { title: "Pop Up", const: "PopUp" },
6264
+ { title: "Pop Over", const: "PopOver" },
6272
6265
  { title: "Progress Bar", const: "ProgressBar" },
6273
6266
  { title: "Progress Bar Card", const: "ProgressBarCard" },
6274
6267
  { title: "Dropdown", const: "Select" },
@@ -6278,6 +6271,7 @@ const ComponentSchema = {
6278
6271
  { title: "Radio", const: "Radio" },
6279
6272
  { title: "Rank", const: "Rank" },
6280
6273
  { title: "Rank Card", const: "RankCard" },
6274
+ { title: "Metric Card", const: "MetricCard" },
6281
6275
  { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6282
6276
  { title: "Table", const: "Table" },
6283
6277
  { title: "Tabs", const: "TabSection" },
@@ -6286,8 +6280,8 @@ const ComponentSchema = {
6286
6280
  { title: "Timer", const: "Timer" },
6287
6281
  { title: "Upload", const: "UploadFile" },
6288
6282
  { title: "Tree ", const: "TreeMap" },
6289
- { title: "Column Group", const: "ColumnGroup" },
6290
- { title: "Thought of the day", const: "Thought" }
6283
+ { title: "Thought of the day", const: "Thought" },
6284
+ { title: "PDF", const: "PdfViewer" }
6291
6285
  ]
6292
6286
  },
6293
6287
  elementType: {
@@ -6301,7 +6295,86 @@ const ComponentSchema = {
6301
6295
  oneOf: [
6302
6296
  { title: "Date Column", const: "date" },
6303
6297
  { title: "DateTime Column", const: "dateTime" },
6304
- { title: "Amount Column", const: "amount" }
6298
+ { title: "Amount Column", const: "amount" },
6299
+ { title: "Center Column", const: "action" }
6300
+ ]
6301
+ },
6302
+ dateFormat: {
6303
+ oneOf: [
6304
+ {
6305
+ title: "YYYY-MM-DDTHH:mm:ss.SSSZ",
6306
+ const: "YYYY-MM-DDTHH:mm:ss.SSSZ"
6307
+ },
6308
+ {
6309
+ title: "YYYY-MM-DDTHH:mm:ssZ",
6310
+ const: "YYYY-MM-DDTHH:mm:ssZ"
6311
+ },
6312
+ {
6313
+ title: "YYYY-MM-DDTHH:mm:ss",
6314
+ const: "YYYY-MM-DDTHH:mm:ss"
6315
+ },
6316
+ { title: "YYYY-MM-DD", const: "YYYY-MM-DD" },
6317
+ { title: "DD-MM-YYYY", const: "DD-MM-YYYY" },
6318
+ { title: "MM/DD/YYYY", const: "MM/DD/YYYY" },
6319
+ {
6320
+ title: "YYYY-MM-DD HH:mm:ss",
6321
+ const: "YYYY-MM-DD HH:mm:ss"
6322
+ },
6323
+ {
6324
+ title: "YYYY-MM-DD HH:mm:ss.SSS",
6325
+ const: "YYYY-MM-DD HH:mm:ss.SSS"
6326
+ },
6327
+ { title: "Milliseconds", const: "x" },
6328
+ { title: "Seconds", const: "X" }
6329
+ ]
6330
+ },
6331
+ variant: {
6332
+ oneOf: [
6333
+ { title: "Outlined", const: "outlined" },
6334
+ { title: "Filled", const: "filled" },
6335
+ { title: "Standard", const: "standard" }
6336
+ ]
6337
+ },
6338
+ positionVertical: {
6339
+ oneOf: [
6340
+ { title: "Top", const: "top" },
6341
+ { title: "Center", const: "center" },
6342
+ { title: "Bottom", const: "bottom" }
6343
+ ]
6344
+ },
6345
+ positionHorizontal: {
6346
+ oneOf: [
6347
+ { title: "Left", const: "left" },
6348
+ { title: "Center", const: "center" },
6349
+ { title: "Right", const: "right" }
6350
+ ]
6351
+ },
6352
+ contentVertical: {
6353
+ oneOf: [
6354
+ { title: "Top", const: "top" },
6355
+ { title: "Center", const: "center" },
6356
+ { title: "Bottom", const: "bottom" }
6357
+ ]
6358
+ },
6359
+ contentHorizontal: {
6360
+ oneOf: [
6361
+ { title: "Left", const: "left" },
6362
+ { title: "Center", const: "center" },
6363
+ { title: "Right", const: "right" }
6364
+ ]
6365
+ },
6366
+ toolTipPosition: {
6367
+ oneOf: [
6368
+ { title: "Top", const: "top" },
6369
+ { title: "Left", const: "left" },
6370
+ { title: "Right", const: "right" },
6371
+ { title: "Bottom", const: "bottom" }
6372
+ ]
6373
+ },
6374
+ growthRate: {
6375
+ oneOf: [
6376
+ { title: "Positive", const: "positive" },
6377
+ { title: "Negative", const: "negative" }
6305
6378
  ]
6306
6379
  },
6307
6380
  orientation: {
@@ -6319,6 +6392,40 @@ const ComponentSchema = {
6319
6392
  { title: "Put", const: "put" }
6320
6393
  ]
6321
6394
  },
6395
+ maxPageSize: {
6396
+ type: "number",
6397
+ oneOf: [
6398
+ { title: "10", const: 10 },
6399
+ { title: "20", const: 20 },
6400
+ { title: "30", const: 30 },
6401
+ { title: "50", const: 50 },
6402
+ { title: "100", const: 100 },
6403
+ { title: "500", const: 500 }
6404
+ ]
6405
+ },
6406
+ initialDensity: {
6407
+ type: "string",
6408
+ oneOf: [
6409
+ { title: "Compact", const: "compact" },
6410
+ { title: "Comfortable", const: "comfortable" },
6411
+ { title: "Spacious", const: "spacious" }
6412
+ ]
6413
+ },
6414
+ xAxisFormatType: {
6415
+ type: "string",
6416
+ oneOf: [
6417
+ { title: "Date and Month", const: "Date and Month" },
6418
+ { title: "Month and Year", const: "Month and Year" }
6419
+ ]
6420
+ },
6421
+ xAxisType: {
6422
+ type: "string",
6423
+ oneOf: [
6424
+ { title: "Date", const: "date" },
6425
+ { title: "String", const: "string" },
6426
+ { title: "Number", const: "number" }
6427
+ ]
6428
+ },
6322
6429
  layout: {
6323
6430
  type: "array",
6324
6431
  items: {
@@ -6386,20 +6493,6 @@ const ComponentSchema = {
6386
6493
  }
6387
6494
  }
6388
6495
  },
6389
- events: {
6390
- type: "array",
6391
- items: {
6392
- type: "object",
6393
- properties: {
6394
- eventType: {
6395
- type: "string"
6396
- },
6397
- configType: {
6398
- type: "string"
6399
- }
6400
- }
6401
- }
6402
- },
6403
6496
  sectionLabels: {
6404
6497
  type: "array",
6405
6498
  items: {
@@ -6468,6 +6561,9 @@ const ComponentSchema = {
6468
6561
  items: {
6469
6562
  type: "object",
6470
6563
  properties: {
6564
+ key: {
6565
+ type: "string"
6566
+ },
6471
6567
  label: {
6472
6568
  type: "string"
6473
6569
  }
@@ -6479,12 +6575,26 @@ const ComponentSchema = {
6479
6575
  items: {
6480
6576
  type: "object",
6481
6577
  properties: {
6578
+ key: {
6579
+ type: "string"
6580
+ },
6482
6581
  label: {
6483
6582
  type: "string"
6484
6583
  }
6485
6584
  }
6486
6585
  }
6487
6586
  },
6587
+ tabIcons: {
6588
+ type: "array",
6589
+ items: {
6590
+ type: "object",
6591
+ properties: {
6592
+ url: {
6593
+ type: "string"
6594
+ }
6595
+ }
6596
+ }
6597
+ },
6488
6598
  InputFormatingAndMasking: {
6489
6599
  type: "array",
6490
6600
  items: {
@@ -6510,7 +6620,8 @@ const ComponentSchema = {
6510
6620
  { const: "required", title: "Required" },
6511
6621
  { const: "minLength", title: "Minimum Length" },
6512
6622
  { const: "maxLength", title: "Maximum Length" },
6513
- { const: "pattern", title: "Pattern" }
6623
+ { const: "pattern", title: "Pattern" },
6624
+ { const: "readOnly", title: "Read Only" }
6514
6625
  ]
6515
6626
  },
6516
6627
  validationValue: {
@@ -6542,7 +6653,12 @@ const ComponentSchema = {
6542
6653
  { title: "Line Graph", const: "LineGraph" },
6543
6654
  { title: "Pie Graph", const: "PieGraph" },
6544
6655
  { title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
6545
- { title: "Stack Horizontal Bar Graph", const: "HorizontalStackBarGraph" }
6656
+ {
6657
+ title: "Stack Horizontal Bar Graph",
6658
+ const: "HorizontalStackBarGraph"
6659
+ },
6660
+ { title: "Area Graph", const: "AreaGraph" },
6661
+ { title: "StackBar And Line Graph", const: "StackBarLineGraph" }
6546
6662
  ]
6547
6663
  },
6548
6664
  iconName: {
@@ -6564,7 +6680,43 @@ const ComponentSchema = {
6564
6680
  { title: "Error Icon", const: "ErrorIcon" },
6565
6681
  { title: "Refresh Icon", const: "RefreshIcon" },
6566
6682
  { title: "Download Icon", const: "DownloadIcon" },
6567
- { title: "Exception Icon", const: "ExceptionIcon" }
6683
+ { title: "Download All Icon", const: "DownloadAllIcon" },
6684
+ { title: "Exception Icon", const: "ExceptionIcon" },
6685
+ { title: "Alarm Icon", const: "AlarmIcon" },
6686
+ { title: "Click Icon", const: "ClickIcon" },
6687
+ { title: "Content Copy Icon", const: "ContentCopyIcon" },
6688
+ { title: "File Copy Icon", const: "FileCopyIcon" },
6689
+ { title: "Pause Icon", const: "PauseIcon" },
6690
+ { title: "Play Icon", const: "PlayIcon" },
6691
+ { title: "Close Icon", const: "CloseIcon" },
6692
+ { title: "Replay Icon", const: "ReplayIcon" },
6693
+ { title: "Delete Icon", const: "DeleteIcon" },
6694
+ { title: "Drafts Icon", const: "DraftsIcon" },
6695
+ { title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
6696
+ { title: "Paste Icon", const: "PasteIcon" },
6697
+ { title: "Calendar", const: "Calendar" },
6698
+ { title: "Prev Icon", const: "PrevIcon" },
6699
+ { title: "Verified Icon", const: "VerifiedIcon" },
6700
+ { title: "Table Add Icon", const: "TableAddIcon" },
6701
+ { title: "Table Download Icon", const: "TableDownloadIcon" },
6702
+ { title: "Audit Trail Icon", const: "AuditTrailIcon" },
6703
+ { title: "View Component", const: "View" },
6704
+ { title: "Table Edit Icon", const: "TableEditIcon" },
6705
+ { title: "Maximize Icon", const: "Maximize" },
6706
+ { title: "Minimize Icon", const: "Minimize" },
6707
+ { title: "Subtract Icon", const: "Subtract" },
6708
+ { title: "Bin Icon", const: "Bin" },
6709
+ { title: "Export Icon", const: "Export" },
6710
+ { title: "Table Paste Icon", const: "TablePaste" },
6711
+ { title: "Clone Icon", const: "CloneIcon" },
6712
+ { title: "Detail Icon", const: "DetailIcon" },
6713
+ { title: "Report View Icon", const: "ReportViewIcon" },
6714
+ { title: "Payout", const: "Payout" },
6715
+ { title: "Info Outlined", const: "InfoOutlinedIcon" },
6716
+ { title: "Territory Add", const: "TerritoryAdd" },
6717
+ { title: "Territory Edit", const: "TerritoryEdit" },
6718
+ { title: "Territory Delete", const: "TerritoryDelete" },
6719
+ { title: "Git Compare", const: "GitCompare" }
6568
6720
  ]
6569
6721
  },
6570
6722
  color: {
@@ -6682,7 +6834,7 @@ const componentBasicUiSchema = (theme) => {
6682
6834
  },
6683
6835
  {
6684
6836
  type: "Control",
6685
- scope: "#/properties/proc",
6837
+ scope: "#/properties/proc5",
6686
6838
  config: {
6687
6839
  layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6688
6840
  },
@@ -6692,84 +6844,155 @@ const componentBasicUiSchema = (theme) => {
6692
6844
  },
6693
6845
  {
6694
6846
  type: "Control",
6695
- scope: "#/properties/layout",
6696
- layout: 12,
6847
+ scope: "#/properties/proc6",
6848
+ config: {
6849
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6850
+ },
6697
6851
  options: {
6698
- detail: {
6699
- type: "HorizontalLayout",
6700
- elements: [
6701
- {
6702
- type: "Control",
6703
- scope: "#/properties/key",
6704
- options: {
6705
- widget: "SelectInputField"
6706
- },
6707
- config: {
6708
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6709
- main: {
6710
- label: "Screen Size"
6711
- }
6712
- }
6713
- },
6714
- {
6715
- type: "Control",
6716
- scope: "#/properties/value",
6717
- options: {
6718
- widget: "InputField"
6719
- },
6720
- config: {
6721
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6722
- main: {
6723
- label: "Value",
6724
- type: "number",
6725
- helperText: "Number should be in range of 0 to 12",
6726
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6727
- }
6728
- }
6729
- },
6730
- {
6731
- type: "Control",
6732
- scope: "#/properties/proc",
6733
- config: {
6734
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6735
- },
6736
- options: {
6737
- widget: "EmptyBox"
6738
- }
6739
- }
6740
- ]
6741
- }
6852
+ widget: "EmptyBox"
6742
6853
  }
6743
- }
6744
- ]
6745
- }
6746
- ]
6747
- },
6748
- {
6749
- type: "WrapperLayout",
6750
- config: {
6751
- main: {
6752
- gap: "8px"
6753
- }
6754
- },
6755
- elements: [
6756
- {
6757
- type: "Control",
6758
- scope: "#/properties/btn",
6759
- options: {
6760
- widget: "Button"
6761
- },
6762
- config: {
6763
- layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
6764
- main: {
6765
- name: "Ok",
6766
- variant: "contained",
6767
- type: "text",
6768
- onClick: "okHandler",
6769
- size: "medium"
6770
- }
6771
- }
6772
- },
6854
+ },
6855
+ {
6856
+ type: "Control",
6857
+ scope: "#/properties/proc7",
6858
+ config: {
6859
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6860
+ },
6861
+ options: {
6862
+ widget: "EmptyBox"
6863
+ }
6864
+ },
6865
+ {
6866
+ type: "Control",
6867
+ scope: "#/properties/proc8",
6868
+ config: {
6869
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6870
+ },
6871
+ options: {
6872
+ widget: "EmptyBox"
6873
+ }
6874
+ },
6875
+ {
6876
+ type: "Control",
6877
+ scope: "#/properties/proc9",
6878
+ config: {
6879
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6880
+ },
6881
+ options: {
6882
+ widget: "EmptyBox"
6883
+ }
6884
+ },
6885
+ {
6886
+ type: "Control",
6887
+ scope: "#/properties/proc10",
6888
+ config: {
6889
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6890
+ },
6891
+ options: {
6892
+ widget: "EmptyBox"
6893
+ }
6894
+ },
6895
+ {
6896
+ type: "Control",
6897
+ scope: "#/properties/proc11",
6898
+ config: {
6899
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6900
+ },
6901
+ options: {
6902
+ widget: "EmptyBox"
6903
+ }
6904
+ },
6905
+ {
6906
+ type: "Control",
6907
+ scope: "#/properties/layout",
6908
+ config: {
6909
+ layout: 12,
6910
+ main: {
6911
+ label: "Layout",
6912
+ childElementLabel: "Layout"
6913
+ },
6914
+ style: {
6915
+ marginLeft: "-24px",
6916
+ marginBottom: "24px !important",
6917
+ labelStyle: {
6918
+ marginLeft: "24px"
6919
+ },
6920
+ detailsStyle: {
6921
+ marginLeft: "24px"
6922
+ }
6923
+ }
6924
+ },
6925
+ elements: [
6926
+ {
6927
+ type: "Control",
6928
+ scope: "#/properties/key",
6929
+ options: {
6930
+ widget: "SelectInputField"
6931
+ },
6932
+ config: {
6933
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6934
+ main: {
6935
+ label: "Screen Size"
6936
+ }
6937
+ }
6938
+ },
6939
+ {
6940
+ type: "Control",
6941
+ scope: "#/properties/value",
6942
+ options: {
6943
+ widget: "InputField"
6944
+ },
6945
+ config: {
6946
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6947
+ main: {
6948
+ label: "Value",
6949
+ type: "number",
6950
+ helperText: "Number should be in range of 0 to 12",
6951
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6952
+ }
6953
+ }
6954
+ },
6955
+ {
6956
+ type: "Control",
6957
+ scope: "#/properties/proc",
6958
+ config: {
6959
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6960
+ },
6961
+ options: {
6962
+ widget: "EmptyBox"
6963
+ }
6964
+ }
6965
+ ]
6966
+ }
6967
+ ]
6968
+ }
6969
+ ]
6970
+ },
6971
+ {
6972
+ type: "WrapperLayout",
6973
+ config: {
6974
+ main: {
6975
+ gap: "8px"
6976
+ }
6977
+ },
6978
+ elements: [
6979
+ {
6980
+ type: "Control",
6981
+ scope: "#/properties/btn",
6982
+ options: {
6983
+ widget: "Button"
6984
+ },
6985
+ config: {
6986
+ layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
6987
+ main: {
6988
+ name: "Ok",
6989
+ variant: "contained",
6990
+ type: "text",
6991
+ onClick: "okHandler",
6992
+ size: "medium"
6993
+ }
6994
+ }
6995
+ },
6773
6996
  {
6774
6997
  type: "Control",
6775
6998
  scope: "#/properties/btnSubmit",
@@ -7191,6 +7414,76 @@ const CoreSection = {
7191
7414
  }
7192
7415
  }
7193
7416
  },
7417
+ {
7418
+ type: "Control",
7419
+ scope: "#/properties/proc5",
7420
+ config: {
7421
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7422
+ },
7423
+ options: {
7424
+ widget: "EmptyBox"
7425
+ }
7426
+ },
7427
+ {
7428
+ type: "Control",
7429
+ scope: "#/properties/proc6",
7430
+ config: {
7431
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7432
+ },
7433
+ options: {
7434
+ widget: "EmptyBox"
7435
+ }
7436
+ },
7437
+ {
7438
+ type: "Control",
7439
+ scope: "#/properties/proc7",
7440
+ config: {
7441
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7442
+ },
7443
+ options: {
7444
+ widget: "EmptyBox"
7445
+ }
7446
+ },
7447
+ {
7448
+ type: "Control",
7449
+ scope: "#/properties/proc8",
7450
+ config: {
7451
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7452
+ },
7453
+ options: {
7454
+ widget: "EmptyBox"
7455
+ }
7456
+ },
7457
+ {
7458
+ type: "Control",
7459
+ scope: "#/properties/proc9",
7460
+ config: {
7461
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7462
+ },
7463
+ options: {
7464
+ widget: "EmptyBox"
7465
+ }
7466
+ },
7467
+ {
7468
+ type: "Control",
7469
+ scope: "#/properties/proc10",
7470
+ config: {
7471
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7472
+ },
7473
+ options: {
7474
+ widget: "EmptyBox"
7475
+ }
7476
+ },
7477
+ {
7478
+ type: "Control",
7479
+ scope: "#/properties/proc11",
7480
+ config: {
7481
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7482
+ },
7483
+ options: {
7484
+ widget: "EmptyBox"
7485
+ }
7486
+ },
7194
7487
  {
7195
7488
  type: "Control",
7196
7489
  scope: "#/properties/proc",
@@ -7204,78 +7497,88 @@ const CoreSection = {
7204
7497
  {
7205
7498
  type: "Control",
7206
7499
  scope: "#/properties/layout",
7207
- layout: 12,
7208
- options: {
7209
- "elementLabelProp": "key",
7210
- detail: {
7211
- type: "HorizontalLayout",
7212
- elements: [
7213
- {
7214
- type: "Control",
7215
- scope: "#/properties/key",
7216
- options: {
7217
- widget: "SelectInputField"
7218
- },
7219
- config: {
7220
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7221
- main: {
7222
- label: "Screen Size"
7223
- }
7224
- }
7225
- },
7226
- {
7227
- type: "Control",
7228
- scope: "#/properties/value",
7229
- options: {
7230
- widget: "InputField"
7231
- },
7232
- config: {
7233
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7234
- main: {
7235
- label: "Value",
7236
- type: "number",
7237
- helperText: "Number should be in range of 0 to 12",
7238
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7239
- }
7240
- }
7241
- },
7242
- {
7243
- type: "Control",
7244
- scope: "#/properties/proc",
7245
- config: {
7246
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7247
- },
7248
- options: {
7249
- widget: "EmptyBox"
7250
- }
7251
- }
7252
- ]
7500
+ config: {
7501
+ layout: 12,
7502
+ main: {
7503
+ label: "Layout",
7504
+ childElementLabel: "Layout"
7505
+ },
7506
+ style: {
7507
+ marginLeft: "-24px",
7508
+ marginBottom: "24px !important",
7509
+ labelStyle: {
7510
+ marginLeft: "24px"
7511
+ },
7512
+ detailsStyle: {
7513
+ marginLeft: "24px"
7514
+ }
7253
7515
  }
7254
- }
7255
- }
7256
- ]
7257
- };
7258
- const EventSection = (theme) => {
7259
- const uiSchema = {
7260
- type: "HorizontalLayout",
7261
- elements: [
7262
- {
7263
- type: "Control",
7264
- scope: "#/properties/events",
7265
- options: {
7266
- widget: "Table"
7516
+ },
7517
+ elements: [
7518
+ {
7519
+ type: "Control",
7520
+ scope: "#/properties/key",
7521
+ options: {
7522
+ widget: "SelectInputField"
7523
+ },
7524
+ config: {
7525
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7526
+ main: {
7527
+ label: "Screen Size"
7528
+ }
7529
+ }
7267
7530
  },
7268
- config: {
7269
- main: {
7270
- headerIcons: {
7271
- elements: [
7272
- {
7273
- widget: {
7274
- type: "Control",
7275
- scope: "#/properties/New_Record",
7276
- options: {
7277
- widget: "IconButton"
7278
- },
7531
+ {
7532
+ type: "Control",
7533
+ scope: "#/properties/value",
7534
+ options: {
7535
+ widget: "InputField"
7536
+ },
7537
+ config: {
7538
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7539
+ main: {
7540
+ label: "Value",
7541
+ type: "number",
7542
+ helperText: "Number should be in range of 0 to 12",
7543
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7544
+ }
7545
+ }
7546
+ },
7547
+ {
7548
+ type: "Control",
7549
+ scope: "#/properties/proc",
7550
+ config: {
7551
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7552
+ },
7553
+ options: {
7554
+ widget: "EmptyBox"
7555
+ }
7556
+ }
7557
+ ]
7558
+ }
7559
+ ]
7560
+ };
7561
+ const EventSection = (theme) => {
7562
+ const uiSchema = {
7563
+ type: "HorizontalLayout",
7564
+ elements: [
7565
+ {
7566
+ type: "Control",
7567
+ scope: "#/properties/events",
7568
+ options: {
7569
+ widget: "Table"
7570
+ },
7571
+ config: {
7572
+ main: {
7573
+ headerIcons: {
7574
+ elements: [
7575
+ {
7576
+ widget: {
7577
+ type: "Control",
7578
+ scope: "#/properties/New_Record",
7579
+ options: {
7580
+ widget: "IconButton"
7581
+ },
7279
7582
  config: {
7280
7583
  main: {
7281
7584
  onClick: "eventAddHandler",
@@ -7328,95 +7631,71 @@ const EventSection = (theme) => {
7328
7631
  disableAction: true,
7329
7632
  disableSelection: true,
7330
7633
  enableDrag: true
7331
- }
7332
- },
7333
- elements: [
7334
- {
7335
- accessorKey: "eventType",
7336
- header: "Event's Type",
7337
- type: "string",
7338
- size: 300
7339
- },
7340
- {
7341
- accessorKey: "Handler",
7342
- header: "Handler",
7343
- type: "string",
7344
- size: 200
7345
7634
  },
7346
- {
7347
- accessorKey: "Edit_Approve_Records",
7348
- header: "Edit",
7349
- size: 150,
7350
- type: "action",
7351
- widget: {
7635
+ action: [
7636
+ {
7352
7637
  type: "Control",
7353
7638
  scope: "#/properties/Edit_Records",
7354
7639
  options: {
7355
- widget: "IconButton"
7640
+ widget: "Button"
7356
7641
  },
7357
7642
  config: {
7358
7643
  main: {
7359
7644
  size: "small",
7360
- icon: "TableEditIcon",
7645
+ startIcon: "EditIcon",
7361
7646
  tooltipMessage: "Edit This Record",
7362
- onClick: "eventEditHandler"
7363
- },
7364
- style: {
7365
- fill: theme.palette.primary.main,
7366
- "& :hover": {
7367
- fill: theme.palette.primary.dark
7368
- }
7647
+ onClick: "eventEditHandler",
7648
+ name: "Edit"
7369
7649
  }
7370
7650
  }
7371
- }
7372
- },
7373
- {
7374
- accessorKey: "Reject_Records",
7375
- header: "Delete",
7376
- size: 150,
7377
- type: "action",
7378
- widget: {
7651
+ },
7652
+ {
7379
7653
  type: "Control",
7380
7654
  scope: "#/properties/RejectButton",
7381
7655
  accessorKeyName: "Reject_Records",
7382
7656
  options: {
7383
- widget: "IconButton"
7657
+ widget: "Button"
7384
7658
  },
7385
7659
  config: {
7386
7660
  main: {
7387
- icon: "Bin",
7661
+ startIcon: "Bin",
7388
7662
  tooltipMessage: "Reject This Record",
7389
- onClick: "deletePopUpEvent"
7390
- },
7391
- style: {
7392
- fill: theme.palette.primary.main,
7393
- "& :hover": {
7394
- fill: theme.palette.primary.dark
7395
- }
7663
+ onClick: "deletePopUpEvent",
7664
+ name: "Delete",
7665
+ size: "small"
7396
7666
  }
7397
7667
  }
7398
- }
7399
- },
7400
- {
7401
- header: "Copy",
7402
- field: "Copy_Event",
7403
- size: 150,
7404
- type: "action",
7405
- widget: {
7668
+ },
7669
+ {
7406
7670
  type: "Control",
7407
7671
  scope: "#/properties/Copy_Event",
7408
7672
  options: {
7409
- widget: "IconButton"
7673
+ widget: "Button"
7410
7674
  },
7411
7675
  config: {
7412
7676
  main: {
7413
- icon: "FileCopyIcon",
7677
+ startIcon: "FileCopyIcon",
7414
7678
  onClick: "copyPasteElement",
7415
7679
  tooltipMessage: "Reject This Record",
7416
- styleDefault: true
7680
+ styleDefault: false,
7681
+ name: "Copy"
7417
7682
  }
7418
7683
  }
7419
7684
  }
7685
+ ]
7686
+ },
7687
+ elements: [
7688
+ {
7689
+ accessorKey: "eventType",
7690
+ header: "Event's Type",
7691
+ type: "string",
7692
+ size: 300
7693
+ },
7694
+ {
7695
+ accessorKey: "Handler",
7696
+ header: "Handler",
7697
+ type: "string",
7698
+ size: 200
7420
7699
  }
7421
7700
  ]
7422
7701
  }
@@ -7451,44 +7730,55 @@ const emptyBox$1 = (scope, layout) => {
7451
7730
  const cardLayout = {
7452
7731
  type: "Control",
7453
7732
  scope: "#/properties/cardLayout",
7454
- layout: 12,
7455
- options: {
7456
- detail: {
7457
- type: "HorizontalLayout",
7458
- elements: [
7459
- {
7460
- type: "Control",
7461
- scope: "#/properties/key",
7462
- options: {
7463
- widget: "SelectInputField"
7464
- },
7465
- config: {
7466
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7467
- main: {
7468
- label: "Screen Size"
7469
- }
7470
- }
7471
- },
7472
- {
7473
- type: "Control",
7474
- scope: "#/properties/value",
7475
- options: {
7476
- widget: "InputField"
7477
- },
7478
- config: {
7479
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7480
- main: {
7481
- label: "Value",
7482
- type: "number",
7483
- helperText: "Number should be in range of 0 to 12",
7484
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7485
- }
7486
- }
7487
- },
7488
- emptyBox$1("cardEmpty")
7489
- ]
7733
+ config: {
7734
+ layout: 12,
7735
+ main: {
7736
+ label: "Card Layout",
7737
+ childElementLabel: "Card Layout"
7738
+ },
7739
+ style: {
7740
+ marginLeft: "-24px",
7741
+ marginBottom: "24px !important",
7742
+ labelStyle: {
7743
+ marginLeft: "24px"
7744
+ },
7745
+ detailsStyle: {
7746
+ marginLeft: "24px"
7747
+ }
7490
7748
  }
7491
- }
7749
+ },
7750
+ elements: [
7751
+ {
7752
+ type: "Control",
7753
+ scope: "#/properties/key",
7754
+ options: {
7755
+ widget: "SelectInputField"
7756
+ },
7757
+ config: {
7758
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7759
+ main: {
7760
+ label: "Screen Size"
7761
+ }
7762
+ }
7763
+ },
7764
+ {
7765
+ type: "Control",
7766
+ scope: "#/properties/value",
7767
+ options: {
7768
+ widget: "InputField"
7769
+ },
7770
+ config: {
7771
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7772
+ main: {
7773
+ label: "Value",
7774
+ type: "number",
7775
+ helperText: "Number should be in range of 0 to 12",
7776
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7777
+ }
7778
+ }
7779
+ },
7780
+ emptyBox$1("cardEmpty")
7781
+ ]
7492
7782
  };
7493
7783
  const getArrayControl = (parentScope, childScope, childLabel) => {
7494
7784
  return {
@@ -7532,6 +7822,60 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7532
7822
  ]
7533
7823
  };
7534
7824
  };
7825
+ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
7826
+ return {
7827
+ type: "Control",
7828
+ scope: `#/properties/${parentScope}`,
7829
+ options: {
7830
+ widget: "Array"
7831
+ },
7832
+ config: {
7833
+ layout: 12,
7834
+ main: {
7835
+ label: arrayLabel
7836
+ },
7837
+ style: {
7838
+ marginLeft: "-24px",
7839
+ marginBottom: "24px !important",
7840
+ labelStyle: {
7841
+ marginLeft: "24px"
7842
+ },
7843
+ detailsStyle: {
7844
+ marginLeft: "24px"
7845
+ }
7846
+ }
7847
+ },
7848
+ elements: [
7849
+ {
7850
+ type: "Control",
7851
+ scope: `#/properties/${firstFieldScope}`,
7852
+ options: {
7853
+ widget: "InputField"
7854
+ },
7855
+ config: {
7856
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7857
+ main: {
7858
+ label: firstFieldLabel || "Labels for Tab"
7859
+ }
7860
+ }
7861
+ },
7862
+ {
7863
+ type: "Control",
7864
+ scope: `#/properties/${secondFieldScope}`,
7865
+ options: {
7866
+ widget: "InputField"
7867
+ },
7868
+ config: {
7869
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7870
+ main: {
7871
+ label: secondFieldLabel || "Labels for Tab"
7872
+ }
7873
+ }
7874
+ },
7875
+ emptyBox$1("ArrayControlEmpty2", { xs: 6, sm: 6, md: 4, lg: 4 })
7876
+ ]
7877
+ };
7878
+ };
7535
7879
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
7536
7880
  sizeHolder.elements[1] = {
7537
7881
  type: "Control",
@@ -7654,6 +7998,28 @@ const BaseSection = {
7654
7998
  const buildPropertiesSection = function(type) {
7655
7999
  let uiSchema = _.cloneDeep(BaseSection);
7656
8000
  switch (type) {
8001
+ case "OTP_Input":
8002
+ uiSchema.elements = [
8003
+ getInputField("seperator", "Seperator"),
8004
+ getInputField("length", "OTP Length"),
8005
+ getRadioInputField("masking", "OTP Masking", ["YES", "NO"]),
8006
+ emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
8007
+ ];
8008
+ break;
8009
+ case "Array":
8010
+ uiSchema.elements = [
8011
+ getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
8012
+ getRadioInputField("disableAddButton", "Disable Add Button", ["YES", "NO"]),
8013
+ getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
8014
+ getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
8015
+ getInputField("childElementLabel", "Child Element Label"),
8016
+ getInputField("showKeyAsLabel", "ShowKey As Label"),
8017
+ getInputField("rowSpacing", "Row Spacing"),
8018
+ getInputField("columnSpacing", "Column Spacing"),
8019
+ getInputField("spacing", "Spacing"),
8020
+ emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
8021
+ ];
8022
+ break;
7657
8023
  case "TreeMap":
7658
8024
  uiSchema.elements = [
7659
8025
  getSelectField("orientation", "orientation"),
@@ -7704,12 +8070,27 @@ const buildPropertiesSection = function(type) {
7704
8070
  emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
7705
8071
  ];
7706
8072
  break;
8073
+ case "PopOver":
8074
+ uiSchema.elements = [
8075
+ getSelectField("positionVertical", "Attach To (Vertical)"),
8076
+ getSelectField("positionHorizontal", "Attach To (Horizontal)"),
8077
+ getSelectField("contentVertical", "Popover Start (Vertical)"),
8078
+ getSelectField("contentHorizontal", "Popover Start (Horizontal)"),
8079
+ getInputField("width", "Width"),
8080
+ getInputField("gap", "Gap"),
8081
+ emptyBox$1("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
8082
+ ];
8083
+ break;
7707
8084
  case "Text":
7708
8085
  uiSchema.elements = [
7709
8086
  getInputField("placeholder", "Placeholder"),
7710
8087
  getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7711
- emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7712
- getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
8088
+ getSelectField("variant", "Variant"),
8089
+ getInputField("toolTip", "Tooltip"),
8090
+ getSelectField("toolTipPosition", "Tooltip Position"),
8091
+ emptyBox$1("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
8092
+ getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
8093
+ getInputField("keyName", "Event Key Name")
7713
8094
  ];
7714
8095
  break;
7715
8096
  case "TextArea":
@@ -7745,7 +8126,8 @@ const buildPropertiesSection = function(type) {
7745
8126
  getInputField("nameKey", "Key for Name"),
7746
8127
  getInputField("imageKey", "Key for Image"),
7747
8128
  getInputField("scoreKey", "Key for comparing parameter"),
7748
- emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 })
8129
+ getRadioInputField("isScoreAmount", "Is Score an Amount Type", ["YES", "No"]),
8130
+ emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 })
7749
8131
  ];
7750
8132
  break;
7751
8133
  case "CardSlider":
@@ -7761,8 +8143,9 @@ const buildPropertiesSection = function(type) {
7761
8143
  getInputField("bottomLabel_1", "First BottomLabel"),
7762
8144
  getInputField("bottomLabel_2", "Second BottomLabel"),
7763
8145
  getInputField("bottomLabel_3", "Third BottomLabel"),
7764
- emptyBox$1("ProgressBarCardEmpty1"),
7765
- emptyBox$1("ProgressBarCardEmpty2")
8146
+ getInputField("size", "Size"),
8147
+ getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
8148
+ getArrayControl("pieArcColors", "color", "Color")
7766
8149
  ];
7767
8150
  break;
7768
8151
  case "card":
@@ -7774,6 +8157,17 @@ const buildPropertiesSection = function(type) {
7774
8157
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
7775
8158
  ];
7776
8159
  break;
8160
+ case "MetricCard":
8161
+ uiSchema.elements = [
8162
+ getInputField("url", "Image Url"),
8163
+ getInputField("label", "Label"),
8164
+ getInputField("cardValue", "Value"),
8165
+ getInputField("description", "Description"),
8166
+ getSelectField("growthRate", "Growth Rate"),
8167
+ getInputField("color", "Card Color"),
8168
+ emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8169
+ ];
8170
+ break;
7777
8171
  case "Button":
7778
8172
  uiSchema.elements = [
7779
8173
  getSelectField("buttonType", "Button Type"),
@@ -7784,22 +8178,45 @@ const buildPropertiesSection = function(type) {
7784
8178
  emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
7785
8179
  ];
7786
8180
  break;
8181
+ case "ButtonGroup":
8182
+ uiSchema.elements = [
8183
+ getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
8184
+ getInputField("size", "Size"),
8185
+ getSelectField("color", "Color"),
8186
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
8187
+ ];
8188
+ break;
8189
+ case "Box":
8190
+ uiSchema.elements = [
8191
+ getSelectField("iconName", "Icon Name"),
8192
+ emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
8193
+ ];
8194
+ break;
7787
8195
  case "Graph":
7788
8196
  uiSchema.elements = [
7789
8197
  getInputField("height", "Height"),
7790
8198
  getInputField("heading", "Heading"),
8199
+ getInputField("subHeader", "Sub Header"),
7791
8200
  getSelectField("graphType", "Graph Type"),
7792
8201
  getInputField("leftLabel", "Left Label"),
8202
+ getInputField("rightLabel", "Right Label"),
8203
+ getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
7793
8204
  getInputField("bottomLabel", "Bottom Label"),
7794
8205
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
7795
8206
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7796
- getInputField("yAxisValue", "Y-AxisValue"),
7797
- getInputField("xAxisValue", "X-AxisValue"),
8207
+ getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
8208
+ getInputField("yAxisValue", "Y-Axis Key"),
8209
+ getInputField("xAxisValue", "X-Axis Key"),
8210
+ getSelectField("xAxisType", "X-AxisType"),
7798
8211
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7799
8212
  getInputField("leftMargin", "Left Margin"),
7800
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
7801
- getArrayControl("legendLabels", "label"),
7802
- getArrayControl("pieArcColors", "color")
8213
+ getInputField("yAxisTickCount", "Y Axis TickCount"),
8214
+ getInputField("xAxisTickCount", "X Axis TickCount"),
8215
+ getSelectField("xAxisFormatType", "X Axis Format Type"),
8216
+ getInputField("growthRateKey", "Growth Rate Key"),
8217
+ getInputField("tooltipUnit", "Tooltip Unit"),
8218
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8219
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
7803
8220
  ];
7804
8221
  break;
7805
8222
  case "WrapperSection":
@@ -7807,8 +8224,12 @@ const buildPropertiesSection = function(type) {
7807
8224
  getRadioInputField("divider", "Divider", ["YES", "No"]),
7808
8225
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
7809
8226
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
8227
+ getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
7810
8228
  getInputField("rowSpacing", "Row Spacing"),
7811
- emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
8229
+ getInputField("columnSpacing", "Column Spacing"),
8230
+ getInputField("spacing", "Spacing"),
8231
+ getInputField("iconUrl", "Icon Url"),
8232
+ emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
7812
8233
  emptyBox$1("WrapperSectionEmpty2")
7813
8234
  ];
7814
8235
  break;
@@ -7817,7 +8238,7 @@ const buildPropertiesSection = function(type) {
7817
8238
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
7818
8239
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
7819
8240
  emptyBox$1("TabEmpty"),
7820
- getArrayControl("sectionLabels", "label")
8241
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
7821
8242
  ];
7822
8243
  break;
7823
8244
  case "Table":
@@ -7837,13 +8258,15 @@ const buildPropertiesSection = function(type) {
7837
8258
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
7838
8259
  getInputField("selectKey", "Selection Key"),
7839
8260
  getMultiSelectField("filteringOptions", "Filtering Options"),
8261
+ getSelectField("maxPageSize", "Max Page Size"),
8262
+ getSelectField("initialDensity", "Initial Toggle Density"),
7840
8263
  buildWrapper("Tree Table Properties", [
7841
8264
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
7842
8265
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
7843
8266
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
7844
- getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
7845
8267
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
7846
- emptyBox$1("LazyLoadingTableEmpty2"),
8268
+ getInputField("defaultColumnSize", "Default Column Size"),
8269
+ ,
7847
8270
  emptyBox$1("LazyLoadingTableEmpty3")
7848
8271
  ]),
7849
8272
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
@@ -7853,6 +8276,10 @@ const buildPropertiesSection = function(type) {
7853
8276
  break;
7854
8277
  case "Radio":
7855
8278
  uiSchema.elements = [
8279
+ getInputField("errorMessage", "Error Message"),
8280
+ getInputField("toolTip", "Tooltip"),
8281
+ getSelectField("toolTipPosition", "Tooltip Position"),
8282
+ emptyBox$1("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
7856
8283
  getArrayControl("sectionLabels", "label", "Options Of Radio")
7857
8284
  ];
7858
8285
  break;
@@ -7860,14 +8287,40 @@ const buildPropertiesSection = function(type) {
7860
8287
  uiSchema.elements = [
7861
8288
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7862
8289
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
7863
- emptyBox$1("SelectEmpty")
8290
+ getSelectField("variant", "Variant"),
8291
+ getInputField("toolTip", "Tooltip"),
8292
+ getSelectField("toolTipPosition", "Tooltip Position"),
8293
+ emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
7864
8294
  ];
7865
8295
  break;
7866
8296
  case "MultipleSelect":
7867
8297
  uiSchema.elements = [
7868
8298
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7869
- emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
7870
- emptyBox$1("MultipleSelectEmpty2")
8299
+ getSelectField("variant", "Variant"),
8300
+ getInputField("toolTip", "Tooltip"),
8301
+ getSelectField("toolTipPosition", "Tooltip Position")
8302
+ ];
8303
+ break;
8304
+ case "PdfViewer":
8305
+ uiSchema.elements = [
8306
+ getInputField("scale", "Zoom"),
8307
+ emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
8308
+ ];
8309
+ break;
8310
+ case "Date":
8311
+ uiSchema.elements = [
8312
+ getSelectField("variant", "Variant"),
8313
+ getInputField("toolTip", "Tooltip"),
8314
+ getSelectField("toolTipPosition", "Tooltip Position"),
8315
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8316
+ ];
8317
+ break;
8318
+ case "DateTime":
8319
+ uiSchema.elements = [
8320
+ getSelectField("variant", "Variant"),
8321
+ getInputField("toolTip", "Tooltip"),
8322
+ getSelectField("toolTipPosition", "Tooltip Position"),
8323
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
7871
8324
  ];
7872
8325
  break;
7873
8326
  case "Thought":
@@ -7875,16 +8328,50 @@ const buildPropertiesSection = function(type) {
7875
8328
  getTextArea("thought", "Today's thought", false)
7876
8329
  ];
7877
8330
  break;
7878
- }
7879
- return uiSchema;
7880
- };
7881
- const StyleSection = {
7882
- type: "WrapperLayout",
7883
- config: {
7884
- main: {
7885
- label: " ",
7886
- gap: "8px"
7887
- }
8331
+ case "Image":
8332
+ uiSchema.elements = [
8333
+ getInputField("imageUrl", "Image URL"),
8334
+ getInputField("height", "Image Height"),
8335
+ getInputField("toolTip", "Tooltip"),
8336
+ getSelectField("toolTipPosition", "Tooltip Position"),
8337
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8338
+ ];
8339
+ break;
8340
+ case "FileInput":
8341
+ uiSchema.elements = [
8342
+ getRadioInputField("variant", "Variant", ["Outlined", "Standard"]),
8343
+ getRadioInputField("disableUpload", "Disable Upload", ["YES", "NO"]),
8344
+ getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
8345
+ getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
8346
+ getInputField("description", "Enter description"),
8347
+ getInputField("toolTip", "Tooltip"),
8348
+ getSelectField("toolTipPosition", "Tooltip Position"),
8349
+ getInputField("chooseButtonLabel", "ChooseButton Label"),
8350
+ getInputField("noFileAvailableMessage", "No Found Message"),
8351
+ getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
8352
+ getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
8353
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8354
+ ];
8355
+ break;
8356
+ case "Camera":
8357
+ uiSchema.elements = [
8358
+ getSelectField("iconName", "Icon Name"),
8359
+ getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
8360
+ getSelectField("color", "Color"),
8361
+ getInputField("tooltipMessage", "Tooltip Message"),
8362
+ getSelectField("variant", "Variant"),
8363
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
8364
+ ];
8365
+ }
8366
+ return uiSchema;
8367
+ };
8368
+ const StyleSection = {
8369
+ type: "WrapperLayout",
8370
+ config: {
8371
+ main: {
8372
+ label: " ",
8373
+ gap: "8px"
8374
+ }
7888
8375
  },
7889
8376
  elements: [
7890
8377
  {
@@ -7912,13 +8399,13 @@ const StyleSection = {
7912
8399
  }
7913
8400
  ]
7914
8401
  };
7915
- const TableSection = (theme) => {
8402
+ const TableSection = (theme, scopeName = "elements") => {
7916
8403
  const uiSchema = {
7917
8404
  type: "HorizontalLayout",
7918
8405
  elements: [
7919
8406
  {
7920
8407
  type: "Control",
7921
- scope: "#/properties/elements",
8408
+ scope: `#/properties/${scopeName}`,
7922
8409
  options: {
7923
8410
  widget: "Table"
7924
8411
  },
@@ -7929,7 +8416,7 @@ const TableSection = (theme) => {
7929
8416
  {
7930
8417
  widget: {
7931
8418
  type: "Control",
7932
- scope: "#/properties/New_Record",
8419
+ scope: `#/properties/${scopeName}_New_Record`,
7933
8420
  options: {
7934
8421
  widget: "IconButton"
7935
8422
  },
@@ -7956,7 +8443,7 @@ const TableSection = (theme) => {
7956
8443
  {
7957
8444
  widget: {
7958
8445
  type: "Control",
7959
- scope: "#/properties/Paste_Component",
8446
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
7960
8447
  options: {
7961
8448
  widget: "IconButton"
7962
8449
  },
@@ -7985,94 +8472,69 @@ const TableSection = (theme) => {
7985
8472
  disableAction: true,
7986
8473
  disableSelection: true,
7987
8474
  enableDrag: true
7988
- }
7989
- },
7990
- elements: [
7991
- {
7992
- accessorKey: "name",
7993
- header: "Name",
7994
- type: "string",
7995
- size: 300
7996
8475
  },
7997
- {
7998
- accessorKey: "type",
7999
- header: "Type",
8000
- type: "string",
8001
- size: 200
8002
- },
8003
- {
8004
- header: "Edit Record",
8005
- field: "Reject_Records",
8006
- size: 150,
8007
- type: "action",
8008
- widget: {
8476
+ action: [
8477
+ {
8009
8478
  type: "Control",
8010
8479
  scope: "#/properties/RejectButton",
8011
8480
  options: {
8012
- widget: "IconButton"
8481
+ widget: "Button"
8013
8482
  },
8014
8483
  config: {
8015
8484
  main: {
8016
- icon: "TableEditIcon",
8485
+ startIcon: "EditIcon",
8017
8486
  size: "small",
8018
8487
  onClick: "editComponents",
8019
- tooltipMessage: "Reject This Record"
8020
- },
8021
- style: {
8022
- fill: theme.palette.primary.main,
8023
- "& :hover": {
8024
- fill: theme.palette.primary.dark
8025
- }
8488
+ tooltipMessage: "Reject This Record",
8489
+ name: "Edit"
8026
8490
  }
8027
8491
  }
8028
- }
8029
- },
8030
- {
8031
- header: "Delete",
8032
- field: "Reject_Records",
8033
- size: 150,
8034
- type: "action",
8035
- widget: {
8492
+ },
8493
+ {
8036
8494
  type: "Control",
8037
8495
  scope: "#/properties/RejectButton",
8038
8496
  options: {
8039
- widget: "IconButton"
8497
+ widget: "Button"
8040
8498
  },
8041
8499
  config: {
8042
8500
  main: {
8043
- icon: "Bin",
8501
+ startIcon: "Bin",
8044
8502
  onClick: "deletePopUpComponent",
8045
- tooltipMessage: "Reject This Record"
8046
- },
8047
- style: {
8048
- fill: theme.palette.primary.main,
8049
- "& :hover": {
8050
- fill: theme.palette.primary.dark
8051
- }
8503
+ tooltipMessage: "Reject This Record",
8504
+ name: "Delete",
8505
+ size: "small"
8052
8506
  }
8053
8507
  }
8054
- }
8055
- },
8056
- {
8057
- header: "Copy",
8058
- field: "Copy_Component",
8059
- size: 150,
8060
- type: "action",
8061
- widget: {
8508
+ },
8509
+ {
8062
8510
  type: "Control",
8063
- scope: "#/properties/Copy_Component",
8511
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8064
8512
  options: {
8065
- widget: "IconButton"
8513
+ widget: "Button"
8066
8514
  },
8067
8515
  config: {
8068
8516
  main: {
8069
- icon: "FileCopyIcon",
8517
+ startIcon: "FileCopyIcon",
8070
8518
  onClick: "copyPasteElement",
8071
- styleDefault: true,
8072
- disabled: false
8519
+ styleDefault: false,
8520
+ name: "Copy"
8073
8521
  }
8074
8522
  }
8075
8523
  }
8524
+ ]
8525
+ },
8526
+ elements: [
8527
+ {
8528
+ accessorKey: "name",
8529
+ header: "Name",
8530
+ type: "string",
8531
+ size: 300
8532
+ },
8533
+ {
8534
+ accessorKey: "type",
8535
+ header: "Type",
8536
+ type: "string",
8537
+ size: 200
8076
8538
  }
8077
8539
  ]
8078
8540
  }
@@ -8092,9 +8554,6 @@ const ValueTab = {
8092
8554
  {
8093
8555
  type: "Control",
8094
8556
  scope: "#/properties/value",
8095
- options: {
8096
- widget: "Array"
8097
- },
8098
8557
  config: {
8099
8558
  layout: 12,
8100
8559
  main: {
@@ -8165,51 +8624,61 @@ const ValidationSection = {
8165
8624
  {
8166
8625
  type: "Control",
8167
8626
  scope: "#/properties/validation",
8168
- layout: 11.5,
8169
- options: {
8170
- "elementLabelProp": "validationType",
8171
- detail: {
8172
- type: "HorizontalLayout",
8173
- elements: [
8174
- {
8175
- type: "Control",
8176
- scope: "#/properties/validationType",
8177
- options: {
8178
- widget: "SelectInputField"
8179
- },
8180
- config: {
8181
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8182
- main: {
8183
- label: "Validation Type"
8184
- }
8185
- }
8186
- },
8187
- {
8188
- type: "Control",
8189
- scope: "#/properties/validationValue",
8190
- options: {
8191
- widget: "InputField"
8192
- },
8193
- config: {
8194
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8195
- main: {
8196
- label: "Validation Value"
8197
- }
8198
- }
8199
- },
8200
- {
8201
- type: "Control",
8202
- scope: "#/properties/emptyBox",
8203
- options: {
8204
- widget: "EmptyBox"
8205
- },
8206
- config: {
8207
- layout: { xs: 0, sm: 0, md: 4 }
8208
- }
8627
+ config: {
8628
+ layout: 12,
8629
+ main: {
8630
+ label: "Validation",
8631
+ childElementLabel: "Validation"
8632
+ },
8633
+ style: {
8634
+ marginLeft: "-24px",
8635
+ marginBottom: "24px !important",
8636
+ labelStyle: {
8637
+ marginLeft: "24px"
8638
+ },
8639
+ detailsStyle: {
8640
+ marginLeft: "24px"
8641
+ }
8642
+ }
8643
+ },
8644
+ elements: [
8645
+ {
8646
+ type: "Control",
8647
+ scope: "#/properties/validationType",
8648
+ options: {
8649
+ widget: "SelectInputField"
8650
+ },
8651
+ config: {
8652
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8653
+ main: {
8654
+ label: "Validation Type"
8209
8655
  }
8210
- ]
8656
+ }
8657
+ },
8658
+ {
8659
+ type: "Control",
8660
+ scope: "#/properties/validationValue",
8661
+ options: {
8662
+ widget: "InputField"
8663
+ },
8664
+ config: {
8665
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8666
+ main: {
8667
+ label: "Validation Value"
8668
+ }
8669
+ }
8670
+ },
8671
+ {
8672
+ type: "Control",
8673
+ scope: "#/properties/emptyBox",
8674
+ options: {
8675
+ widget: "EmptyBox"
8676
+ },
8677
+ config: {
8678
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8679
+ }
8211
8680
  }
8212
- }
8681
+ ]
8213
8682
  }
8214
8683
  ]
8215
8684
  };
@@ -8232,26 +8701,29 @@ var buildConfig = (FormData) => {
8232
8701
  if (formData.events) {
8233
8702
  delete formData.events;
8234
8703
  }
8704
+ if (formData.tabLabelElements) {
8705
+ component.tabLabelElements = formData.tabLabelElements || [];
8706
+ delete formData.tabLabelElements;
8707
+ }
8235
8708
  component = { ...formData, ...component };
8236
8709
  return component;
8237
8710
  };
8238
- const createLayoutFormat = (config2) => {
8239
- if (_.isEmpty(config2)) {
8240
- return {
8241
- xs: 12,
8242
- sm: 12,
8243
- md: 12,
8244
- lg: 12
8245
- };
8711
+ const createLayoutFormat = (layout, type) => {
8712
+ if (_.isEmpty(layout)) {
8713
+ const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout", "Table"];
8714
+ if (fullLayoutComponents.includes(type)) {
8715
+ return { xs: 12, sm: 12, md: 12, lg: 12 };
8716
+ } else if (type === "Graph") {
8717
+ return { xs: 12, sm: 12, md: 12, lg: 6 };
8718
+ } else if (type === "Button") {
8719
+ return { xs: 4, sm: 2.5, md: 2, lg: 1.5 };
8720
+ } else {
8721
+ return { xs: 6, sm: 6, md: 4, lg: 3 };
8722
+ }
8246
8723
  }
8247
- let data = {
8248
- xs: 12,
8249
- sm: 12,
8250
- md: 6,
8251
- lg: 6
8252
- };
8253
- config2.map((e) => {
8254
- data[e.key || "xs"] = +e.value || 5.5;
8724
+ let data = {};
8725
+ layout.map((e) => {
8726
+ data[e.key || "xs"] = e.value === null || e.value === void 0 || e.value === "" ? 5.5 : +e.value;
8255
8727
  });
8256
8728
  return data;
8257
8729
  };
@@ -8265,9 +8737,27 @@ const flatObjectValueInArray = (config2 = []) => {
8265
8737
  });
8266
8738
  return data;
8267
8739
  };
8740
+ const createKeyValueMap = (config2 = []) => {
8741
+ return config2.reduce((acc, item) => {
8742
+ if (!item.key)
8743
+ return acc;
8744
+ acc[item.key] = item.value;
8745
+ return acc;
8746
+ }, {});
8747
+ };
8268
8748
  const clearFromSessionStorage = () => {
8269
8749
  sessionStorage.removeItem("pageFormdata");
8270
8750
  };
8751
+ const validateAndShowErrors = (store2) => {
8752
+ if (_.isEmpty(store2.ctx.core.errors))
8753
+ return false;
8754
+ store2.setValidation("ValidateAndShow");
8755
+ store2.setNotify({
8756
+ Fail: true,
8757
+ FailMessage: "Error on Page"
8758
+ });
8759
+ return true;
8760
+ };
8271
8761
  const getNavigationHistory = (config2, path) => {
8272
8762
  if (path) {
8273
8763
  let urlRoutes = config2.name;
@@ -8326,11 +8816,13 @@ async function saveHandler(store2, service2, submitHandler) {
8326
8816
  const saveReturn = await submitHandler(store2, service2, config2);
8327
8817
  navigateHandler(store2, true, "/PageMasterRecords");
8328
8818
  } catch (err) {
8329
- navigateHandler(store2, false);
8819
+ navigateHandler(store2, false, void 0, err.message);
8330
8820
  }
8821
+ } else {
8822
+ navigateHandler(store2, false);
8331
8823
  }
8332
8824
  }
8333
- const navigateHandler = (store2, isSubmitted, pageName) => {
8825
+ const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
8334
8826
  if (isSubmitted) {
8335
8827
  sessionStorage.removeItem("pageFormdata");
8336
8828
  store2.navigate(pageName || -1);
@@ -8342,7 +8834,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
8342
8834
  store2.setValidation("ValidateAndShow");
8343
8835
  store2.setNotify({
8344
8836
  Fail: true,
8345
- FailMessage: "Errors on Page"
8837
+ FailMessage: errorMessage || "Errors on Page"
8346
8838
  });
8347
8839
  }
8348
8840
  };
@@ -8367,34 +8859,46 @@ function okHandler(store2) {
8367
8859
  const sectionLabels = {
8368
8860
  Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8369
8861
  MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8370
- Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8371
- LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8372
- WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8373
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8374
- SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8862
+ Table: ["Core", "Components", "Properties", "Events", "Style"],
8863
+ LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8864
+ WrapperSection: ["Core", "Components", "Properties", "Style"],
8865
+ HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8866
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8867
+ SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8375
8868
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8376
8869
  UploadFile: ["Core", "Events", "Style", "Validation"],
8377
8870
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8378
8871
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8379
- Box: ["Core", "Events", "Style", "Validation"],
8872
+ Box: ["Core", "Properties", "Events", "Style", "Validation"],
8380
8873
  Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8381
- ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8382
- RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
8874
+ ProgressBarCard: ["Core", "Properties", "Events", "Style"],
8875
+ ProgressBar: ["Core", "Properties", "Events", "Style"],
8876
+ RankCard: ["Core", "Properties", "Events", "Style"],
8877
+ MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8383
8878
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8384
- Timer: ["Core", "Events", "Style", "Validation"],
8385
- Rank: ["Core", "Events", "Style", "Validation"],
8879
+ Timer: ["Core", "Events", "Style"],
8880
+ Rank: ["Core", "Events", "Style"],
8386
8881
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8387
- Array: ["Core", "Components", "Validation"],
8882
+ ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8883
+ Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8388
8884
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8389
8885
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8390
8886
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8391
- PopUp: ["Core", "Components", "Properties", "Style"],
8887
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
8888
+ PopOver: ["Core", "Components", "Properties", "Style"],
8889
+ PdfViewer: ["Core", "Properties", "Style"],
8392
8890
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8393
8891
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8394
8892
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8395
8893
  TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8396
8894
  ColumnGroup: ["Core", "Components"],
8397
- Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8895
+ Thought: ["Core", "Properties", "Events", "Style"],
8896
+ Date: ["Core", "Properties", "Events", "Style", "Validation"],
8897
+ DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
8898
+ Image: ["Core", "Properties", "Events", "Style"],
8899
+ FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
8900
+ Camera: ["Core", "Properties", "Events", "Style", "Validation"],
8901
+ OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
8398
8902
  };
8399
8903
  function refreshPage(type, store2) {
8400
8904
  var _a, _b;
@@ -8407,6 +8911,7 @@ function refreshPage(type, store2) {
8407
8911
  Style: StyleSection,
8408
8912
  Events: EventSection(store2.theme.myTheme),
8409
8913
  Components: TableSection(store2.theme.myTheme),
8914
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8410
8915
  Properties: buildPropertiesSection(type),
8411
8916
  Validation: ValidationSection
8412
8917
  };
@@ -8418,7 +8923,7 @@ function refreshPage(type, store2) {
8418
8923
  const lastDotIndex = path.lastIndexOf(".");
8419
8924
  const parentPath = path.slice(0, lastDotIndex);
8420
8925
  const parentObj = _.get(currentConfig, parentPath);
8421
- if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8926
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
8422
8927
  UiSchema.elements[0].elements[0].elements[4] = {
8423
8928
  type: "Control",
8424
8929
  scope: "#/properties/columnFormat",
@@ -8497,6 +9002,44 @@ function refreshPage(type, store2) {
8497
9002
  }
8498
9003
  }
8499
9004
  };
9005
+ UiSchema.elements[0].elements[0].elements[10] = {
9006
+ type: "Control",
9007
+ scope: "#/properties/dateFormat",
9008
+ options: {
9009
+ widget: "SelectInputField"
9010
+ },
9011
+ config: {
9012
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
9013
+ main: {
9014
+ label: "Date Time Format"
9015
+ }
9016
+ }
9017
+ };
9018
+ UiSchema.elements[0].elements[0].elements[11] = {
9019
+ type: "Control",
9020
+ scope: "#/properties/emptyBox",
9021
+ options: {
9022
+ widget: "EmptyBox"
9023
+ },
9024
+ config: {
9025
+ layout: { xs: 0, sm: 0, md: 0, lg: 6 }
9026
+ }
9027
+ };
9028
+ }
9029
+ if ((parentObj == null ? void 0 : parentObj.type) === "LeaderBoard") {
9030
+ UiSchema.elements[0].elements[0].elements[4] = {
9031
+ type: "Control",
9032
+ scope: "#/properties/columnFormat",
9033
+ options: {
9034
+ widget: "SelectInputField"
9035
+ },
9036
+ config: {
9037
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
9038
+ main: {
9039
+ label: "Column Format"
9040
+ }
9041
+ }
9042
+ };
8500
9043
  }
8501
9044
  if (sessionStorage.getItem("copiedConfig")) {
8502
9045
  this.ElementPathSetter(UiSchema);
@@ -8559,13 +9102,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8559
9102
  },
8560
9103
  editComponents: function() {
8561
9104
  var _a, _b, _c;
9105
+ if (validateAndShowErrors(store2))
9106
+ return;
8562
9107
  const rowId = dynamicData2.path.split(".")[1];
8563
9108
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8564
9109
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8565
9110
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8566
9111
  if (path) {
8567
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
8568
- const finalPath = `${path2}.elements[${rowId}]`;
9112
+ let finalPath = `${path}`;
9113
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9114
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9115
+ } else {
9116
+ finalPath = `${finalPath}.elements[${rowId}]`;
9117
+ }
8569
9118
  store2.searchParams.set("path", finalPath);
8570
9119
  store2.setSearchParams(store2.searchParams);
8571
9120
  this.setPage();
@@ -8577,7 +9126,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8577
9126
  var _a;
8578
9127
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8579
9128
  const rowId = sessionStorage.getItem("rowId");
8580
- store2.formData.elements.splice(rowId, 1);
9129
+ const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9130
+ if (isTabLabelElements) {
9131
+ store2.formData.tabLabelElements.splice(rowId, 1);
9132
+ } else {
9133
+ store2.formData.elements.splice(rowId, 1);
9134
+ }
8581
9135
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
8582
9136
  const data = path ? _.get(response, path) : response;
8583
9137
  store2.setFormdata(data);
@@ -8585,6 +9139,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8585
9139
  store2.updateDialog("popUpComponentSection");
8586
9140
  }
8587
9141
  sessionStorage.removeItem("rowId");
9142
+ sessionStorage.removeItem("isTabLabelElements");
8588
9143
  },
8589
9144
  deleteEvent: function(shouldUpdateDialog = true) {
8590
9145
  var _a;
@@ -8600,18 +9155,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8600
9155
  },
8601
9156
  widgetAddClickHandler: function() {
8602
9157
  var _a;
9158
+ if (validateAndShowErrors(store2))
9159
+ return;
8603
9160
  if (!Array.isArray(store2.formData.elements)) {
8604
9161
  store2.formData.elements = [];
8605
9162
  }
9163
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9164
+ store2.formData.tabLabelElements = [];
9165
+ }
8606
9166
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8607
9167
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8608
- const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9168
+ let finalPath = `${path}`;
9169
+ if (dynamicData2.path.startsWith("tabLabel")) {
9170
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9171
+ } else {
9172
+ finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9173
+ }
8609
9174
  store2.searchParams.set("path", finalPath);
8610
9175
  store2.setSearchParams(store2.searchParams);
8611
9176
  this.setPage();
8612
9177
  },
8613
9178
  eventEditHandler: function() {
8614
9179
  var _a, _b;
9180
+ if (validateAndShowErrors(store2))
9181
+ return;
8615
9182
  const rowId = dynamicData2.path.split(".")[1];
8616
9183
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8617
9184
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
@@ -8621,6 +9188,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8621
9188
  },
8622
9189
  eventAddHandler: function() {
8623
9190
  var _a, _b;
9191
+ if (validateAndShowErrors(store2))
9192
+ return;
8624
9193
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8625
9194
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8626
9195
  if (!Array.isArray(store2.formData.events)) {
@@ -8636,6 +9205,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8636
9205
  deletePopUpComponent: function() {
8637
9206
  const rowId = dynamicData2.path.split(".")[1];
8638
9207
  sessionStorage.setItem("rowId", rowId);
9208
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
8639
9209
  store2.updateDialog("popUpComponentSection");
8640
9210
  },
8641
9211
  deletePopUpEvent: function() {
@@ -8682,9 +9252,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8682
9252
  if (!Array.isArray(store2.formData.events)) {
8683
9253
  store2.formData.events = [];
8684
9254
  }
9255
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9256
+ store2.formData.tabLabelElements = [];
9257
+ }
8685
9258
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
8686
9259
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
8687
- const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
9260
+ const currentLength = {
9261
+ "TabsComponent": formData.tabLabelElements.length,
9262
+ "Component": formData.elements.length,
9263
+ "Events": formData.events.length
9264
+ };
9265
+ const insertElementIndex = currentLength[elementType] || 0;
8688
9266
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8689
9267
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8690
9268
  const notificationMessages = {
@@ -8719,6 +9297,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8719
9297
  if (elementType === "Component") {
8720
9298
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
8721
9299
  }
9300
+ if (elementType === "TabsComponent") {
9301
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9302
+ }
8722
9303
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8723
9304
  },
8724
9305
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -8772,7 +9353,7 @@ var pageMaster = (funcParams) => {
8772
9353
  return formData;
8773
9354
  }
8774
9355
  saveFormdataInSessionStorage(config2);
8775
- return config2;
9356
+ return { ...config2, type: "page" };
8776
9357
  },
8777
9358
  getUiSchema: function() {
8778
9359
  const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
@@ -8794,6 +9375,8 @@ var pageMaster = (funcParams) => {
8794
9375
  },
8795
9376
  onAddClickHandler: function() {
8796
9377
  var _a;
9378
+ if (validateAndShowErrors(store2))
9379
+ return;
8797
9380
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8798
9381
  if (!Array.isArray(store2.formData.elements)) {
8799
9382
  store2.formData.elements = [];
@@ -8817,6 +9400,8 @@ var pageMaster = (funcParams) => {
8817
9400
  },
8818
9401
  eventAddHandler: function() {
8819
9402
  var _a;
9403
+ if (validateAndShowErrors(store2))
9404
+ return;
8820
9405
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8821
9406
  if (!Array.isArray(store2.formData.events)) {
8822
9407
  store2.formData.events = [];
@@ -8827,6 +9412,8 @@ var pageMaster = (funcParams) => {
8827
9412
  },
8828
9413
  editEvent: function() {
8829
9414
  var _a;
9415
+ if (validateAndShowErrors(store2))
9416
+ return;
8830
9417
  const rowId = dynamicData2.path.split(".")[1];
8831
9418
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8832
9419
  saveFormdataInSessionStorage(store2.ctx.core.data);
@@ -8907,11 +9494,16 @@ const EventSchema = {
8907
9494
  { title: "Start", const: "onStart" },
8908
9495
  { title: "Cell Render", const: "onCellRenderer" },
8909
9496
  { title: "Upload", const: "onUpload" },
9497
+ { title: "FileDelete", const: "onFileDelete" },
9498
+ { title: "Download", const: "onDownload" },
8910
9499
  { title: "Back", const: "onBack" },
8911
9500
  { title: "Next", const: "onNext" },
8912
9501
  { title: "Row Movement", const: "onRowMovement" },
8913
9502
  { title: "Download", const: "onDownload" },
8914
- { title: "Fail", const: "Fail" }
9503
+ { title: "Fail", const: "Fail" },
9504
+ { title: "onClose", const: "onClose" },
9505
+ { title: "Key Down", const: "onKeyDown" },
9506
+ { title: "Set Style", const: "setStyle" }
8915
9507
  ]
8916
9508
  },
8917
9509
  Handler: {
@@ -8928,7 +9520,7 @@ const EventSchema = {
8928
9520
  oneOf: [
8929
9521
  { title: "RankProvider", const: "RankProvider" },
8930
9522
  { title: "Download File", const: "downloadFile" },
8931
- { title: "Download", const: "download" }
9523
+ { title: "downloadFileFromUrl", const: "downloadFileFromUrl" }
8932
9524
  ]
8933
9525
  },
8934
9526
  body: {
@@ -9087,93 +9679,70 @@ const EventUiSchema = (theme) => {
9087
9679
  disableAction: true,
9088
9680
  disableSelection: true,
9089
9681
  enableDrag: true
9090
- }
9091
- },
9092
- elements: [
9093
- {
9094
- accessorKey: "eventType",
9095
- header: "Event's Type",
9096
- size: 300,
9097
- type: "string"
9098
- },
9099
- {
9100
- accessorKey: "Handler",
9101
- header: "Handler",
9102
- size: 200,
9103
- type: "string"
9104
9682
  },
9105
- {
9106
- accessorKey: "Edit_Approve_Records",
9107
- header: "Edit",
9108
- type: "action",
9109
- size: 150,
9110
- widget: {
9683
+ action: [
9684
+ {
9111
9685
  type: "Control",
9112
9686
  scope: "#/properties/Edit_Records",
9113
9687
  options: {
9114
- widget: "IconButton"
9688
+ widget: "Button"
9115
9689
  },
9116
9690
  config: {
9117
9691
  main: {
9118
9692
  size: "small",
9119
- icon: "TableEditIcon",
9693
+ startIcon: "EditIcon",
9120
9694
  tooltipMessage: "Edit This Record",
9121
- onClick: "editEvent"
9122
- },
9123
- style: {
9124
- fill: theme.palette.primary.main,
9125
- "& :hover": {
9126
- fill: theme.palette.primary.dark
9127
- }
9695
+ onClick: "editEvent",
9696
+ name: "Edit"
9128
9697
  }
9129
9698
  }
9130
- }
9131
- },
9132
- {
9133
- accessorKey: "Reject_Records",
9134
- header: "Delete",
9135
- type: "action",
9136
- size: 150,
9137
- widget: {
9699
+ },
9700
+ {
9138
9701
  type: "Control",
9139
9702
  scope: "#/properties/RejectButton",
9140
9703
  options: {
9141
- widget: "IconButton"
9704
+ widget: "Button"
9142
9705
  },
9143
9706
  config: {
9144
9707
  main: {
9145
- icon: "Bin",
9708
+ startIcon: "Bin",
9146
9709
  tooltipMessage: "Reject This Record",
9147
- onClick: "deletePopUpEvent"
9148
- },
9149
- style: {
9150
- fill: theme.palette.primary.main,
9151
- "& :hover": {
9152
- fill: theme.palette.primary.dark
9153
- }
9710
+ onClick: "deletePopUpEvent",
9711
+ name: "Delete",
9712
+ size: "small"
9154
9713
  }
9155
9714
  }
9156
- }
9157
- },
9158
- {
9159
- header: "Copy",
9160
- field: "Copy_Event",
9161
- type: "action",
9162
- size: 150,
9163
- widget: {
9715
+ },
9716
+ {
9164
9717
  type: "Control",
9165
9718
  scope: "#/properties/Copy_Event",
9166
9719
  options: {
9167
- widget: "IconButton"
9720
+ widget: "Button"
9168
9721
  },
9169
9722
  config: {
9170
9723
  main: {
9171
- icon: "FileCopyIcon",
9724
+ startIcon: "FileCopyIcon",
9172
9725
  onClick: "copyPasteElement",
9173
- styleDefault: true
9726
+ styleDefault: false,
9727
+ name: "Copy",
9728
+ size: "small"
9174
9729
  }
9175
9730
  }
9176
9731
  }
9732
+ ]
9733
+ },
9734
+ elements: [
9735
+ {
9736
+ accessorKey: "eventType",
9737
+ header: "Event's Type",
9738
+ size: 300,
9739
+ type: "string"
9740
+ },
9741
+ {
9742
+ accessorKey: "Handler",
9743
+ header: "Handler",
9744
+ size: 200,
9745
+ type: "string"
9177
9746
  }
9178
9747
  ]
9179
9748
  }
@@ -9486,9 +10055,6 @@ const APISection = {
9486
10055
  {
9487
10056
  type: "Control",
9488
10057
  scope: "#/properties/headers",
9489
- options: {
9490
- widget: "Array"
9491
- },
9492
10058
  config: {
9493
10059
  layout: 12,
9494
10060
  main: {
@@ -9548,9 +10114,6 @@ const APISection = {
9548
10114
  {
9549
10115
  type: "Control",
9550
10116
  scope: "#/properties/body",
9551
- options: {
9552
- widget: "Array"
9553
- },
9554
10117
  config: {
9555
10118
  layout: 12,
9556
10119
  main: {
@@ -9616,9 +10179,6 @@ const refreshSectionUiSchema = {
9616
10179
  {
9617
10180
  type: "Control",
9618
10181
  scope: "#/properties/refreshElements",
9619
- options: {
9620
- widget: "Array"
9621
- },
9622
10182
  config: {
9623
10183
  layout: 12,
9624
10184
  main: {
@@ -9835,6 +10395,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9835
10395
  },
9836
10396
  addEvent: function() {
9837
10397
  var _a, _b, _c;
10398
+ if (validateAndShowErrors(store2))
10399
+ return;
9838
10400
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9839
10401
  if (!Array.isArray(store2.formData.events)) {
9840
10402
  store2.formData.events = [];
@@ -9847,6 +10409,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9847
10409
  },
9848
10410
  editEvent: function() {
9849
10411
  var _a;
10412
+ if (validateAndShowErrors(store2))
10413
+ return;
9850
10414
  const rowId = dynamicData2.path.split(".")[1];
9851
10415
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9852
10416
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
@@ -9897,22 +10461,33 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9897
10461
  }
9898
10462
  };
9899
10463
  };
9900
- const downloadFile$1 = (obj) => {
9901
- const typeArr = obj.name.split(".");
9902
- const data = obj.data;
9903
- const finalData = window.atob(data);
9904
- let file;
9905
- file = new File([finalData], typeArr[typeArr.length - 1]);
9906
- const url = URL.createObjectURL(file);
9907
- const link = document.createElement("a");
9908
- link.href = typeArr[typeArr.length - 1] === "pdf" ? "data:application/octet-stream;base64," + data : url;
9909
- link.download = `${obj.name}`;
9910
- document.body.appendChild(link);
9911
- link.click();
10464
+ function downloadFile$1({ data, name }) {
10465
+ var _a;
10466
+ const binary = window.atob(data);
10467
+ const bytes = new Uint8Array(binary.length);
10468
+ for (let i = 0; i < binary.length; i++) {
10469
+ bytes[i] = binary.charCodeAt(i);
10470
+ }
10471
+ const extension = (_a = name.split(".").pop()) == null ? void 0 : _a.toLowerCase();
10472
+ const mimeMap = {
10473
+ pdf: "application/pdf",
10474
+ png: "image/png",
10475
+ jpg: "image/jpeg",
10476
+ jpeg: "image/jpeg",
10477
+ xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
10478
+ csv: "text/csv"
10479
+ };
10480
+ const blob = new Blob([bytes], {
10481
+ type: mimeMap[extension] || "application/octet-stream"
10482
+ });
10483
+ const url = URL.createObjectURL(blob);
10484
+ const a = document.createElement("a");
10485
+ a.href = url;
10486
+ a.download = name;
10487
+ a.click();
9912
10488
  URL.revokeObjectURL(url);
9913
- document.body.removeChild(link);
9914
- };
9915
- const doDownload = (response, service2) => {
10489
+ }
10490
+ const downloadFileFromUrl = (response, service2) => {
9916
10491
  let url = `${service2.defaults.baseURL}/${response.path}`;
9917
10492
  if (response == null ? void 0 : response.params) {
9918
10493
  const keysArray = Object.keys(response == null ? void 0 : response.params);
@@ -9991,7 +10566,6 @@ function executeEventsHandler(params2) {
9991
10566
  params2.componentName,
9992
10567
  params2.config,
9993
10568
  params2.store,
9994
- params2.service,
9995
10569
  params2.formDataHolder
9996
10570
  );
9997
10571
  } else if (params2.config.Handler === "onBackHandler") {
@@ -10063,7 +10637,7 @@ function executeCustomHandler(params) {
10063
10637
  return response;
10064
10638
  }
10065
10639
  }
10066
- function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10640
+ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, formDataHolder) {
10067
10641
  var _a, _b, _c;
10068
10642
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10069
10643
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
@@ -10101,29 +10675,23 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
10101
10675
  });
10102
10676
  }
10103
10677
  } else if (eventConfig.type === "page") {
10104
- if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
10678
+ if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data) && lodash.exports.isObject(handlerResponse.data))) {
10105
10679
  store2.newData = {
10106
10680
  ...store2.newData,
10107
10681
  ...handlerResponse == null ? void 0 : handlerResponse.data
10108
10682
  };
10109
- store2.setFormdata((pre) => {
10110
- return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
10683
+ Object.keys(handlerResponse.data).forEach((e) => {
10684
+ formDataHolder[e] = handlerResponse.data[e];
10111
10685
  });
10112
10686
  }
10113
10687
  } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10114
10688
  if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10115
10689
  formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10116
10690
  formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10117
- store2.setFormdata((pre) => {
10118
- return { ...pre, ...formDataHolder };
10119
- });
10120
10691
  }
10121
10692
  } else {
10122
- if (handlerResponse) {
10693
+ if (handlerResponse == null ? void 0 : handlerResponse.data) {
10123
10694
  formDataHolder[componentName] = handlerResponse.data;
10124
- store2.setFormdata((pre) => {
10125
- return { ...pre, ...formDataHolder };
10126
- });
10127
10695
  }
10128
10696
  }
10129
10697
  }
@@ -10261,16 +10829,16 @@ var service = (funcParams) => {
10261
10829
  dynamicData: funcParams.dynamicData,
10262
10830
  userValue: funcParams.userValue,
10263
10831
  service: funcParams.service,
10264
- serviceHolder: { downloadFile: downloadFile$1, download: doDownload, ...funcParams.functionsProvider },
10832
+ serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, ...funcParams.functionsProvider },
10265
10833
  eventGroups,
10266
10834
  functionsProvider: funcParams.functionsProvider,
10267
10835
  formDataHolder
10268
10836
  };
10269
10837
  return {
10270
10838
  setPage: async function() {
10271
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10839
+ var _a, _b, _c;
10272
10840
  funcParams.store.setAdditionalErrors([]);
10273
- funcParams.store.setFormdata({});
10841
+ funcParams.store.setFormdata((funcParams == null ? void 0 : funcParams.initFormData()) || {});
10274
10842
  funcParams.store.setSchema({ type: "object", properties: {} });
10275
10843
  funcParams.store.newData = {};
10276
10844
  eventGroups = {};
@@ -10278,116 +10846,11 @@ var service = (funcParams) => {
10278
10846
  const config2 = pageData == null ? void 0 : pageData.config;
10279
10847
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10280
10848
  const event2 = new CustomEvent("pageNameChanged", {
10281
- detail: { pageName: config2.label }
10849
+ detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10282
10850
  });
10283
10851
  window.dispatchEvent(event2);
10284
- const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
10285
- uiSchema.elements.push(
10286
- {
10287
- type: "HorizontalLayout",
10288
- config: {
10289
- main: {
10290
- direction: "row"
10291
- },
10292
- style: {
10293
- flexDirection: "row",
10294
- position: "absolute",
10295
- bottom: 0,
10296
- height: "fit-content",
10297
- overflow: "hidden",
10298
- zIndex: 1e3,
10299
- width: "inherit"
10300
- }
10301
- },
10302
- elements: [
10303
- {
10304
- type: "Control",
10305
- scope: "#/properties/FooterText",
10306
- options: {
10307
- widget: "Box"
10308
- },
10309
- config: {
10310
- main: {
10311
- heading: "Copywriter@ACT21.IO"
10312
- },
10313
- style: {
10314
- color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
10315
- fontSize: "11px",
10316
- textAlign: "center",
10317
- lineHeight: 2,
10318
- width: "fit-content",
10319
- left: "50%",
10320
- position: "relative",
10321
- margin: 0,
10322
- flexGrow: 1,
10323
- height: 0,
10324
- transform: "translate(-50%, 0%)"
10325
- }
10326
- }
10327
- },
10328
- {
10329
- type: "Control",
10330
- scope: "#/properties/FooterBackIcon",
10331
- options: {
10332
- widget: "Box"
10333
- },
10334
- config: {
10335
- main: {
10336
- iconName: "PrevIcon",
10337
- onClick: "backHandler",
10338
- width: "fit-content"
10339
- },
10340
- style: {
10341
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
10342
- width: 20,
10343
- height: 0,
10344
- top: 0,
10345
- right: { xs: "12px", sm: "84px" },
10346
- position: "absolute",
10347
- fontSize: "12px",
10348
- cursor: "pointer",
10349
- ":hover": {
10350
- fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
10351
- },
10352
- marginRight: "20px"
10353
- }
10354
- }
10355
- },
10356
- {
10357
- type: "Control",
10358
- scope: "#/properties/FooterBackHandlerText",
10359
- options: {
10360
- widget: "Box"
10361
- },
10362
- config: {
10363
- main: {
10364
- heading: "Previous Page",
10365
- onClick: "backHandler"
10366
- },
10367
- style: {
10368
- display: { xs: "none", sm: "flex" },
10369
- textAlign: "left",
10370
- lineHeight: 1,
10371
- height: 0,
10372
- width: "fit-content",
10373
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
10374
- fontSize: "12px",
10375
- cursor: "pointer",
10376
- marginLeft: "2px",
10377
- top: 3,
10378
- right: "12px",
10379
- position: "absolute",
10380
- ":hover": {
10381
- color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
10382
- },
10383
- marginRight: "4px"
10384
- }
10385
- }
10386
- }
10387
- ]
10388
- }
10389
- );
10390
- const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
10852
+ (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
10853
+ const schema2 = (_c = pageData == null ? void 0 : pageData.schema) != null ? _c : { type: "object", properties: {} };
10391
10854
  eventGroups = extractEvents(config2);
10392
10855
  executeEventsParameters = {
10393
10856
  config: {},
@@ -10401,7 +10864,16 @@ var service = (funcParams) => {
10401
10864
  eventGroups,
10402
10865
  formDataHolder
10403
10866
  };
10404
- await executeRefreshHandler({
10867
+ funcParams.store.setSchema(
10868
+ (pre) => {
10869
+ return {
10870
+ ...schema2,
10871
+ ...pre,
10872
+ properties: { ...schema2.properties, ...pre.properties }
10873
+ };
10874
+ }
10875
+ );
10876
+ executeRefreshHandler({
10405
10877
  config: {},
10406
10878
  componentName: "",
10407
10879
  store: funcParams.store,
@@ -10410,40 +10882,64 @@ var service = (funcParams) => {
10410
10882
  service: funcParams.service,
10411
10883
  serviceHolder: this,
10412
10884
  eventGroups,
10413
- formDataHolder: {}
10885
+ formDataHolder
10886
+ }).then((e) => {
10887
+ funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10888
+ uiSchema.elements.push(notifyUiSchema);
10889
+ funcParams.store.setUiSchema(uiSchema);
10414
10890
  });
10415
- funcParams.store.setSchema(
10416
- (pre) => {
10417
- return {
10418
- ...schema2,
10419
- ...pre,
10420
- properties: { ...schema2.properties, ...pre.properties }
10421
- };
10891
+ },
10892
+ getStyle: () => {
10893
+ var _a, _b, _c, _d;
10894
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10895
+ if (cloneEventGroup.setStyle) {
10896
+ let finalResponse = {};
10897
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
10898
+ if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
10899
+ for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10900
+ finalResponse = executeEvents({
10901
+ ...executeEventsParameters,
10902
+ config: eventConfig,
10903
+ componentName: path
10904
+ });
10905
+ }
10906
+ return finalResponse;
10422
10907
  }
10423
- );
10424
- uiSchema.elements.push(notifyUiSchema);
10425
- funcParams.store.setUiSchema(uiSchema);
10908
+ }
10909
+ return {};
10426
10910
  },
10427
10911
  onCellRenderer: (cellParams) => {
10428
- var _a, _b, _c, _d;
10429
- if (eventGroups.onCellRenderer) {
10912
+ var _a, _b, _c, _d, _e;
10913
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10914
+ if (cloneEventGroup.onCellRenderer) {
10430
10915
  let finalResponse = {};
10431
10916
  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]);
10432
- for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10433
- executeEventsParameters.store.functionParameters = cellParams;
10434
- finalResponse = executeEvents({
10435
- ...executeEventsParameters,
10436
- config: eventConfig,
10437
- componentName: path
10438
- });
10917
+ if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _d[path]) {
10918
+ for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _e[path]) {
10919
+ executeEventsParameters.store.functionParameters = cellParams;
10920
+ finalResponse = executeEvents({
10921
+ ...executeEventsParameters,
10922
+ config: eventConfig,
10923
+ componentName: path
10924
+ });
10925
+ }
10926
+ return finalResponse;
10439
10927
  }
10440
- return finalResponse;
10441
10928
  }
10442
10929
  return {};
10443
10930
  },
10444
10931
  onClick: function() {
10445
10932
  this.callHandler("onClick");
10446
10933
  },
10934
+ onKeyDown: function() {
10935
+ this.callHandler("onKeyDown");
10936
+ },
10937
+ onFileDelete: async function() {
10938
+ this.callHandler("onFileDelete");
10939
+ },
10940
+ onClose: function() {
10941
+ this.callHandler("onClose");
10942
+ },
10447
10943
  onMount: function() {
10448
10944
  this.callHandler("onMount");
10449
10945
  },
@@ -10467,13 +10963,14 @@ var service = (funcParams) => {
10467
10963
  return response == null ? void 0 : response.data;
10468
10964
  },
10469
10965
  onPaginationChange: async function(paginationValues) {
10470
- var _a;
10966
+ var _a, _b;
10471
10967
  const apiBody = [
10472
10968
  { key: "size", value: paginationValues.pagination.pageSize },
10473
10969
  { key: "pageIndex", value: paginationValues.pagination.pageIndex },
10474
10970
  { key: "sorting", value: paginationValues.sorting || [] },
10475
10971
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10476
- { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
10972
+ { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
10973
+ { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
10477
10974
  ];
10478
10975
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10479
10976
  return response == null ? void 0 : response.data;
@@ -10488,28 +10985,40 @@ var service = (funcParams) => {
10488
10985
  return response == null ? void 0 : response.data;
10489
10986
  }
10490
10987
  },
10491
- onChange: async function() {
10492
- if (eventGroups.onChange) {
10493
- const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10494
- Promise.all(ChangeEventsKeysArray.map(async (componentName) => {
10495
- var _a, _b;
10496
- 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) {
10497
- for (const eventConfig of eventGroups.onChange[componentName]) {
10498
- await executeEvents({
10499
- ...executeEventsParameters,
10500
- config: eventConfig,
10501
- componentName
10502
- });
10988
+ onChange: function() {
10989
+ if (!eventGroups.onChange)
10990
+ return;
10991
+ const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10992
+ const promises = ChangeEventsKeysArray.flatMap((componentName) => {
10993
+ var _a;
10994
+ if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
10995
+ return [];
10996
+ }
10997
+ return eventGroups.onChange[componentName].map(
10998
+ (eventConfig) => Promise.resolve(
10999
+ executeEvents({
11000
+ ...executeEventsParameters,
11001
+ config: eventConfig,
11002
+ componentName,
11003
+ formDataHolder
11004
+ })
11005
+ ).then(() => {
11006
+ if (!lodash.exports.isEmpty(formDataHolder)) {
11007
+ funcParams.store.setFormdata((pre) => ({
11008
+ ...pre,
11009
+ ...formDataHolder
11010
+ }));
10503
11011
  }
10504
- }
10505
- }));
10506
- }
11012
+ })
11013
+ );
11014
+ });
11015
+ Promise.allSettled(promises);
10507
11016
  },
10508
11017
  callExecuteEvents: async function(paramValue, apiBody, eventType) {
10509
11018
  var _a, _b;
10510
11019
  let LastCallResponse = void 0;
10511
- const eventsGroupClone = _.cloneDeep(eventGroups);
10512
- for (const eventConfig of (_a = eventsGroupClone == null ? void 0 : eventsGroupClone[eventType]) == null ? void 0 : _a[paramValue.path]) {
11020
+ const cloneEventGroup = _.cloneDeep(eventGroups);
11021
+ for (const eventConfig of (_a = cloneEventGroup == null ? void 0 : cloneEventGroup[eventType]) == null ? void 0 : _a[paramValue.path]) {
10513
11022
  if (eventConfig.body) {
10514
11023
  eventConfig.body = [
10515
11024
  ...eventConfig.body,
@@ -10533,7 +11042,7 @@ var service = (funcParams) => {
10533
11042
  onBack: async function(functionParameters) {
10534
11043
  var _a, _b;
10535
11044
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10536
- await this.callHandler("onBack", functionParameters);
11045
+ this.callHandler("onBack", functionParameters);
10537
11046
  if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
10538
11047
  functionParameters == null ? void 0 : functionParameters.handleBack();
10539
11048
  }
@@ -10541,7 +11050,7 @@ var service = (funcParams) => {
10541
11050
  onNext: async function(functionParameters) {
10542
11051
  var _a, _b;
10543
11052
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10544
- await this.callHandler("onNext", functionParameters);
11053
+ this.callHandler("onNext", functionParameters);
10545
11054
  if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
10546
11055
  functionParameters == null ? void 0 : functionParameters.handleNext();
10547
11056
  }
@@ -10549,27 +11058,38 @@ var service = (funcParams) => {
10549
11058
  onReset: async function(functionParameters) {
10550
11059
  var _a, _b;
10551
11060
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10552
- await this.callHandler("onReset", functionParameters);
11061
+ this.callHandler("onReset", functionParameters);
10553
11062
  if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
10554
11063
  functionParameters == null ? void 0 : functionParameters.handleReset();
10555
11064
  }
10556
11065
  },
10557
- callHandler: async function(eventType, functionParameters) {
10558
- var _a, _b, _c;
10559
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10560
- if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
10561
- Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
10562
- executeEventsParameters.store.functionParameters = functionParameters;
11066
+ callHandler: function(eventType, functionParameters) {
11067
+ var _a, _b;
11068
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".").pop();
11069
+ if (!((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]))
11070
+ return;
11071
+ const promises = eventGroups[eventType][path].map((eventConfig) => {
11072
+ executeEventsParameters.store.functionParameters = functionParameters;
11073
+ return Promise.resolve(
10563
11074
  executeEvents({
10564
11075
  ...executeEventsParameters,
10565
11076
  config: eventConfig,
10566
- componentName: path
10567
- });
10568
- }));
10569
- }
11077
+ componentName: path,
11078
+ formDataHolder
11079
+ })
11080
+ ).then(() => {
11081
+ if (!lodash.exports.isEmpty(formDataHolder)) {
11082
+ funcParams.store.setFormdata((pre) => ({
11083
+ ...pre,
11084
+ ...formDataHolder
11085
+ }));
11086
+ }
11087
+ });
11088
+ });
11089
+ Promise.allSettled(promises);
10570
11090
  },
10571
11091
  downloadFile: downloadFile$1,
10572
- download: doDownload,
11092
+ downloadFileFromUrl,
10573
11093
  ...funcParams.functionsProvider
10574
11094
  };
10575
11095
  };
@@ -10618,8 +11138,11 @@ const buildLeaderBoard = (config2) => {
10618
11138
  if (config2.scoreKey) {
10619
11139
  LeaderBoard.config.main.scoreKey = config2.scoreKey;
10620
11140
  }
11141
+ if (config2.isScoreAmount) {
11142
+ LeaderBoard.config.main.isScoreAmount = config2.isScoreAmount === "YES" ? true : false;
11143
+ }
10621
11144
  if (config2.layout) {
10622
- LeaderBoard.config.layout = createLayoutFormat(config2.layout);
11145
+ LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
10623
11146
  }
10624
11147
  if (config2.style) {
10625
11148
  LeaderBoard.config.style = JSON.parse(config2.style);
@@ -10668,6 +11191,15 @@ const buildProgressBar = (config2, componentScope2) => {
10668
11191
  ProgressBar.config.layout = config2.layout;
10669
11192
  }
10670
11193
  ProgressBar.config.main.heading = config2.label;
11194
+ if (config2.variant) {
11195
+ ProgressBar.config.main.variant = config2.variant;
11196
+ }
11197
+ if (config2.pieArcColors) {
11198
+ ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
11199
+ }
11200
+ if (config2.size) {
11201
+ ProgressBar.config.main.size = Number(config2.size);
11202
+ }
10671
11203
  if (config2.bottomLabel_3) {
10672
11204
  ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
10673
11205
  }
@@ -10694,7 +11226,7 @@ const BarGraph = {
10694
11226
  type: "BarGraph",
10695
11227
  legendLabels: null
10696
11228
  },
10697
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11229
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10698
11230
  }
10699
11231
  };
10700
11232
  const PieGraph = {
@@ -10709,7 +11241,7 @@ const PieGraph = {
10709
11241
  type: "PieGraph",
10710
11242
  legendLabels: null
10711
11243
  },
10712
- style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
11244
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10713
11245
  }
10714
11246
  };
10715
11247
  const LineGraph = {
@@ -10724,7 +11256,7 @@ const LineGraph = {
10724
11256
  type: "LineGraph",
10725
11257
  legendLabels: null
10726
11258
  },
10727
- style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
11259
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10728
11260
  }
10729
11261
  };
10730
11262
  const HorizontalBarGraph = {
@@ -10739,14 +11271,44 @@ const HorizontalBarGraph = {
10739
11271
  type: "HorizontalBarGraph",
10740
11272
  legendLabels: null
10741
11273
  },
10742
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11274
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11275
+ }
11276
+ };
11277
+ const AreaBarGraph = {
11278
+ type: "Control",
11279
+ scope: "#/properties/graph",
11280
+ options: {
11281
+ widget: "Graph"
11282
+ },
11283
+ config: {
11284
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11285
+ main: {
11286
+ type: "AreaGraph",
11287
+ legendLabels: null
11288
+ },
11289
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11290
+ }
11291
+ };
11292
+ const StackBarLineG = {
11293
+ type: "Control",
11294
+ scope: "#/properties/graph",
11295
+ options: {
11296
+ widget: "Graph"
11297
+ },
11298
+ config: {
11299
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11300
+ main: {
11301
+ type: "StackBarLineGraph",
11302
+ legendLabels: null
11303
+ },
11304
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10743
11305
  }
10744
11306
  };
10745
11307
  const buildHorizontalBarGraph = (config2, componentScope2) => {
10746
11308
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
10747
11309
  horizontalBarGraph.scope = componentScope2;
10748
11310
  if (config2.layout) {
10749
- horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
11311
+ horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10750
11312
  }
10751
11313
  horizontalBarGraph.config.main.type = config2.graphType;
10752
11314
  horizontalBarGraph.scope = componentScope2;
@@ -10758,10 +11320,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
10758
11320
  horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10759
11321
  }
10760
11322
  if (config2.legendLabels) {
10761
- horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11323
+ horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11324
+ }
11325
+ if (config2.legendDirection) {
11326
+ horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
10762
11327
  }
10763
11328
  if (config2.pieArcColors) {
10764
- horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11329
+ horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10765
11330
  }
10766
11331
  if (config2.xAxisValue) {
10767
11332
  horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -10780,6 +11345,9 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
10780
11345
  if (config2.leftLabel) {
10781
11346
  horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
10782
11347
  }
11348
+ if (config2.disableLeftLabel) {
11349
+ horizontalBarGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
11350
+ }
10783
11351
  return horizontalBarGraph;
10784
11352
  };
10785
11353
  var SpeedoMeter = {
@@ -10878,7 +11446,7 @@ const buildSpeedoMeter = (config2, componentScope2) => {
10878
11446
  const buildPieGraph = (config2, componentScope2) => {
10879
11447
  const pieGraph = _.cloneDeep(PieGraph);
10880
11448
  if (config2.layout) {
10881
- pieGraph.config.layout = createLayoutFormat(config2.layout);
11449
+ pieGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10882
11450
  }
10883
11451
  if (config2.height) {
10884
11452
  pieGraph.config.style.containerStyle.height = config2.height;
@@ -10886,16 +11454,19 @@ const buildPieGraph = (config2, componentScope2) => {
10886
11454
  if (config2.legendHide) {
10887
11455
  pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10888
11456
  }
11457
+ if (config2.legendDirection) {
11458
+ pieGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
11459
+ }
10889
11460
  pieGraph.scope = componentScope2;
10890
11461
  pieGraph.config.main.header = config2.heading;
10891
11462
  if (config2.legendLabels) {
10892
- pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11463
+ pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
10893
11464
  }
10894
11465
  if (config2.xAxisValue) {
10895
11466
  pieGraph.config.main.xAxisValue = config2.xAxisValue;
10896
11467
  }
10897
11468
  if (config2.pieArcColors) {
10898
- pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11469
+ pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10899
11470
  }
10900
11471
  return pieGraph;
10901
11472
  };
@@ -10903,22 +11474,25 @@ const buildStackbarGraph = (config2, componentScope2) => {
10903
11474
  var _a;
10904
11475
  const barGraph = _.cloneDeep(BarGraph);
10905
11476
  if (config2.layout) {
10906
- barGraph.config.layout = createLayoutFormat(config2.layout);
11477
+ barGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10907
11478
  }
10908
11479
  if (config2.legendHide) {
10909
11480
  barGraph.config.main.legendAvailable = config2.legendHide;
10910
11481
  barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10911
11482
  }
11483
+ if (config2.legendDirection) {
11484
+ barGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
11485
+ }
10912
11486
  if (config2.bottomAxisAngle) {
10913
11487
  barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10914
11488
  }
10915
11489
  barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
10916
11490
  barGraph.config.main.header = config2.heading;
10917
11491
  if (config2.legendLabels) {
10918
- barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11492
+ barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
10919
11493
  }
10920
11494
  if (config2.pieArcColors) {
10921
- barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11495
+ barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10922
11496
  }
10923
11497
  if (config2.xAxisValue) {
10924
11498
  barGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -10937,6 +11511,9 @@ const buildStackbarGraph = (config2, componentScope2) => {
10937
11511
  if (config2.leftLabel) {
10938
11512
  barGraph.config.main.leftLabel = config2.leftLabel;
10939
11513
  }
11514
+ if (config2.disableLeftLabel) {
11515
+ barGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
11516
+ }
10940
11517
  barGraph.scope = componentScope2;
10941
11518
  return barGraph;
10942
11519
  };
@@ -10981,6 +11558,10 @@ const buildTabSection = (config2, componentScope2) => {
10981
11558
  }
10982
11559
  if (config2.sectionLabels) {
10983
11560
  tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
11561
+ tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
11562
+ }
11563
+ if (config2.style) {
11564
+ tab.config.style = JSON.parse(config2.style);
10984
11565
  }
10985
11566
  tab.config.main.id = config2.name;
10986
11567
  return tab;
@@ -10988,10 +11569,13 @@ const buildTabSection = (config2, componentScope2) => {
10988
11569
  var WrapperSection = {
10989
11570
  type: "WrapperLayout",
10990
11571
  config: {
11572
+ layout: 12,
10991
11573
  main: {
10992
- rowSpacing: 3,
10993
11574
  divider: true,
10994
- label: "Default Label"
11575
+ label: "Default Label",
11576
+ rowSpacing: 2,
11577
+ columnSpacing: 2,
11578
+ spacing: 2
10995
11579
  },
10996
11580
  defaultStyle: true
10997
11581
  },
@@ -11003,6 +11587,11 @@ const buildWrapperSection = (config2, componentScope2) => {
11003
11587
  wrapper.config.main.label = config2.label;
11004
11588
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11005
11589
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11590
+ wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11591
+ wrapper.config.main.icon = config2.iconUrl;
11592
+ wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11593
+ wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11594
+ wrapper.config.main.spacing = Number(config2.spacing);
11006
11595
  if (config2.defaultStyle) {
11007
11596
  wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11008
11597
  }
@@ -11010,7 +11599,7 @@ const buildWrapperSection = (config2, componentScope2) => {
11010
11599
  wrapper.config.style = JSON.parse(config2.style);
11011
11600
  }
11012
11601
  if (config2.layout) {
11013
- wrapper.config.layout = createLayoutFormat(config2.layout);
11602
+ wrapper.config.layout = createLayoutFormat(config2.layout, config2.type);
11014
11603
  }
11015
11604
  return wrapper;
11016
11605
  };
@@ -11021,7 +11610,7 @@ var TextInputField = {
11021
11610
  widget: "InputField"
11022
11611
  },
11023
11612
  config: {
11024
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
11613
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11025
11614
  main: {
11026
11615
  label: ""
11027
11616
  },
@@ -11037,15 +11626,27 @@ const buildTextField = (config2, componentScope2) => {
11037
11626
  if (config2.multiline) {
11038
11627
  inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11039
11628
  }
11629
+ if (config2.keyName) {
11630
+ inputField.config.main.keyName = config2.keyName;
11631
+ }
11040
11632
  if (config2.InputFormatingAndMasking) {
11041
11633
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
11042
11634
  }
11043
11635
  if (config2.placeholder) {
11044
11636
  inputField.config.main.placeholder = config2.placeholder;
11045
11637
  }
11638
+ if (config2.variant) {
11639
+ inputField.config.main.variant = config2.variant;
11640
+ }
11046
11641
  if (config2.layout) {
11047
11642
  inputField.config.layout = createLayoutFormat(config2.layout);
11048
11643
  }
11644
+ if (config2.toolTip) {
11645
+ inputField.config.main.toolTip = config2.toolTip;
11646
+ }
11647
+ if (config2.toolTipPosition) {
11648
+ inputField.config.main.toolTipPosition = config2.toolTipPosition;
11649
+ }
11049
11650
  inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11050
11651
  inputField.scope = componentScope2;
11051
11652
  return inputField;
@@ -11057,12 +11658,13 @@ var SelectInputField = {
11057
11658
  widget: "SelectInputField"
11058
11659
  },
11059
11660
  config: {
11060
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
11661
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11061
11662
  main: {
11062
11663
  label: "",
11063
11664
  type: "text",
11064
11665
  freeSole: false
11065
- }
11666
+ },
11667
+ style: {}
11066
11668
  }
11067
11669
  };
11068
11670
  const buildSelect = (config2, componentScope2) => {
@@ -11077,9 +11679,21 @@ const buildSelect = (config2, componentScope2) => {
11077
11679
  if (config2.lazyLoading) {
11078
11680
  selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11079
11681
  }
11682
+ if (config2.variant) {
11683
+ selectInputField.config.main.variant = config2.variant;
11684
+ }
11080
11685
  if (config2.layout) {
11081
11686
  selectInputField.config.layout = createLayoutFormat(config2.layout);
11082
11687
  }
11688
+ if (config2.toolTip) {
11689
+ selectInputField.config.main.toolTip = config2.toolTip;
11690
+ }
11691
+ if (config2.toolTipPosition) {
11692
+ selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
11693
+ }
11694
+ if (config2.style) {
11695
+ selectInputField.config.style = JSON.parse(config2.style);
11696
+ }
11083
11697
  selectInputField.scope = componentScope2;
11084
11698
  return selectInputField;
11085
11699
  };
@@ -11090,7 +11704,7 @@ var Button = {
11090
11704
  widget: "Button"
11091
11705
  },
11092
11706
  config: {
11093
- layout: 3,
11707
+ layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
11094
11708
  main: {
11095
11709
  name: "Compare",
11096
11710
  variant: "contained",
@@ -11111,7 +11725,7 @@ const buildButton = (config2, componentScope2) => {
11111
11725
  config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
11112
11726
  }
11113
11727
  if (config2.layout) {
11114
- button.config.layout = createLayoutFormat(config2.layout);
11728
+ button.config.layout = createLayoutFormat(config2.layout, config2.type);
11115
11729
  }
11116
11730
  if (config2.tooltipMessage) {
11117
11731
  button.config.main.tooltipMessage = config2.tooltipMessage;
@@ -11146,6 +11760,7 @@ var Table = {
11146
11760
  },
11147
11761
  elements: [],
11148
11762
  config: {
11763
+ layout: 12,
11149
11764
  main: {
11150
11765
  onMount: "onMount",
11151
11766
  enableExpandAll: true,
@@ -11168,6 +11783,9 @@ const buildTable = (config2, componentScope2) => {
11168
11783
  if (config2.lazyLoading) {
11169
11784
  table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11170
11785
  }
11786
+ if (config2.defaultColumnSize) {
11787
+ table.config.main.defaultColumnSize = config2.defaultColumnSize;
11788
+ }
11171
11789
  if (config2.enableRowMovement) {
11172
11790
  table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
11173
11791
  }
@@ -11183,9 +11801,6 @@ const buildTable = (config2, componentScope2) => {
11183
11801
  if (config2.paginateExpandedRows) {
11184
11802
  table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
11185
11803
  }
11186
- if (config2.treeStructure) {
11187
- table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
11188
- }
11189
11804
  if (config2.SelectionAvailable) {
11190
11805
  table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
11191
11806
  }
@@ -11228,6 +11843,15 @@ const buildTable = (config2, componentScope2) => {
11228
11843
  if (config2.selectKey) {
11229
11844
  table.config.main.selectKey = config2.selectKey;
11230
11845
  }
11846
+ if (config2.maxPageSize) {
11847
+ table.config.main.maxPageSize = config2.maxPageSize;
11848
+ }
11849
+ if (config2.initialDensity) {
11850
+ table.config.main.initialDensity = config2.initialDensity;
11851
+ }
11852
+ if (config2.layout) {
11853
+ table.config.layout = createLayoutFormat(config2.layout);
11854
+ }
11231
11855
  return table;
11232
11856
  };
11233
11857
  const Box = {
@@ -11237,8 +11861,11 @@ const Box = {
11237
11861
  widget: "Box"
11238
11862
  },
11239
11863
  config: {
11240
- layout: 12,
11241
- main: {},
11864
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11865
+ main: {
11866
+ iconName: "",
11867
+ onClick: "onClick"
11868
+ },
11242
11869
  style: {}
11243
11870
  }
11244
11871
  };
@@ -11249,6 +11876,9 @@ const buildLabel = (config2, componentScope2) => {
11249
11876
  if (config2.layout) {
11250
11877
  box.config.layout = createLayoutFormat(config2.layout);
11251
11878
  }
11879
+ if (config2.iconName) {
11880
+ box.config.main.iconName = config2.iconName;
11881
+ }
11252
11882
  if (config2.style) {
11253
11883
  box.config.style = JSON.parse(config2.style);
11254
11884
  }
@@ -11267,7 +11897,7 @@ const uploadFile = {
11267
11897
  "style": {
11268
11898
  "backgroundColor": "none"
11269
11899
  },
11270
- layout: { xs: 6, sm: 6, md: 4, lg: 4 }
11900
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11271
11901
  },
11272
11902
  "options": {
11273
11903
  "widget": "UploadFile"
@@ -11284,7 +11914,7 @@ const downloadFile = {
11284
11914
  "style": {
11285
11915
  "backgroundColor": "none"
11286
11916
  },
11287
- layout: { xs: 12, sm: 6, md: 4, lg: 4 }
11917
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11288
11918
  },
11289
11919
  "options": {
11290
11920
  "widget": "DownloadFile"
@@ -11303,12 +11933,19 @@ const buildUploadFile = (config2, componentScope2) => {
11303
11933
  if (config2.required) {
11304
11934
  UploadFile.config.main.required = true;
11305
11935
  }
11936
+ if (config2.toolTip) {
11937
+ UploadFile.config.main.toolTip = config2.toolTip;
11938
+ }
11939
+ if (config2.toolTipPosition) {
11940
+ UploadFile.config.main.toolTipPosition = config2.toolTipPosition;
11941
+ }
11306
11942
  UploadFile.config.main.errorMessage = config2.errorMessage;
11307
11943
  return UploadFile;
11308
11944
  };
11309
11945
  const buildDownloadFile = (config2, componentScope2) => {
11310
11946
  const DownloadFile = _.cloneDeep(downloadFile);
11311
11947
  DownloadFile.scope = componentScope2;
11948
+ DownloadFile.config.main.label = config2.label;
11312
11949
  if (config2.layout) {
11313
11950
  DownloadFile.config.layout = config2.layout;
11314
11951
  }
@@ -11324,6 +11961,12 @@ const buildDownloadFile = (config2, componentScope2) => {
11324
11961
  if (config2.errorMessage) {
11325
11962
  DownloadFile.config.main.errorMessage = config2.errorMessage;
11326
11963
  }
11964
+ if (config2.toolTip) {
11965
+ DownloadFile.config.main.toolTip = config2.toolTip;
11966
+ }
11967
+ if (config2.toolTipPosition) {
11968
+ DownloadFile.config.main.toolTipPosition = config2.toolTipPosition;
11969
+ }
11327
11970
  return DownloadFile;
11328
11971
  };
11329
11972
  function Card(theme) {
@@ -11331,193 +11974,160 @@ function Card(theme) {
11331
11974
  type: "WrapperLayout",
11332
11975
  config: {
11333
11976
  main: {},
11334
- wrapperStyle: {
11335
- position: "relative",
11336
- top: "50%",
11337
- transform: "translateY(-50%)",
11338
- marginBottom: 0
11339
- },
11340
- componentsBoxStyle: {
11341
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
11342
- flexDirection: "row",
11343
- flexWrap: "nowrap",
11344
- width: "100% !important",
11345
- background: "transparent",
11346
- border: `1.5px solid ${theme.palette.primary.light}`,
11347
- borderRadius: "8px",
11348
- padding: "0px 4px",
11349
- height: "100%",
11350
- alignItems: "center",
11351
- marginLeft: "0px",
11352
- "&: hover": {
11353
- background: `${theme.palette.primary.main}`,
11354
- border: `1.5px solid black`,
11355
- "& p": {
11356
- color: "white"
11977
+ style: {
11978
+ wrapperStyle: {
11979
+ position: "relative",
11980
+ top: "50%",
11981
+ transform: "translateY(-50%)",
11982
+ marginBottom: 0,
11983
+ borderRadius: "12px",
11984
+ fontFamily: "poppins"
11985
+ },
11986
+ componentsBoxStyle: {
11987
+ boxShadow: "0 0 6px 1px rgba(149, 147, 147, 0.25)",
11988
+ flexDirection: "column",
11989
+ overflow: "hidden",
11990
+ flexWrap: "nowrap",
11991
+ width: "100% !important",
11992
+ background: "transparent",
11993
+ borderRadius: "12px",
11994
+ padding: "20px 20px 20px 14px",
11995
+ height: "100%",
11996
+ minHeight: "100px",
11997
+ position: "relative",
11998
+ marginLeft: "0px",
11999
+ "&: hover": {
12000
+ background: `${theme.palette.primary.main}`,
12001
+ color: `${theme.palette.primary.contrastText}`
11357
12002
  }
11358
12003
  }
11359
12004
  },
11360
- layout: { xs: 12, sm: 12, md: 6, lg: 6 }
12005
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 }
11361
12006
  },
11362
12007
  elements: [
11363
- {
11364
- type: "HorizontalLayout",
11365
- config: {
11366
- layout: 8
11367
- },
11368
- elements: [
11369
- {
11370
- type: "WrapperLayout",
11371
- config: {
11372
- main: {
11373
- columnSpacing: 0,
11374
- gap: 0
11375
- },
11376
- wrapperStyle: {
11377
- background: "transparent",
11378
- marginBottom: 0
11379
- },
11380
- componentsBoxStyle: {
11381
- flexDirection: "column",
11382
- flexWrap: "nowrap",
11383
- width: "100%",
11384
- height: "inherit",
11385
- background: "transparent",
11386
- borderRadius: "0px"
11387
- },
11388
- layout: 12
11389
- },
11390
- elements: [
11391
- {
11392
- type: "WrapperLayout",
11393
- config: {
11394
- main: {
11395
- columnSpacing: 0,
11396
- gap: 0
11397
- },
11398
- wrapperStyle: {
11399
- background: "transparent",
11400
- marginBottom: 0
11401
- },
11402
- componentsBoxStyle: {
11403
- flexDirection: "row",
11404
- flexWrap: "nowrap",
11405
- width: "100%",
11406
- height: "0",
11407
- background: "transparent",
11408
- borderRadius: "0px",
11409
- marginLeft: "-10px",
11410
- marginTop: "-8px",
11411
- justifyContent: "start",
11412
- position: "relative"
11413
- },
11414
- layout: 12
11415
- },
11416
- elements: [
11417
- {
11418
- type: "Control",
11419
- scope: "#/properties/programType",
11420
- config: {
11421
- main: {
11422
- heading: ""
11423
- },
11424
- style: {
11425
- color: "black",
11426
- display: "flex",
11427
- fontSize: { xs: "24px", md: "28px" },
11428
- fontWeight: "bold",
11429
- background: "inherit",
11430
- justifyContent: "flex-start",
11431
- width: "auto",
11432
- margin: "-8px",
11433
- marginLeft: "-24px",
11434
- height: 0
11435
- }
11436
- },
11437
- options: {
11438
- widget: "Box"
11439
- }
11440
- },
11441
- {
11442
- type: "Control",
11443
- scope: "#/properties/programType",
11444
- config: {
11445
- main: {
11446
- heading: "5000.00"
11447
- },
11448
- style: {
11449
- color: "black",
11450
- display: "flex",
11451
- fontSize: { xs: "24px", md: "28px" },
11452
- fontWeight: "bold",
11453
- background: "inherit",
11454
- justifyContent: "flex-start",
11455
- width: "auto",
11456
- margin: "-8px",
11457
- position: "absolute",
11458
- left: "24px"
11459
- }
11460
- },
11461
- options: {
11462
- widget: "Box"
11463
- }
11464
- }
11465
- ]
11466
- },
11467
- {
11468
- type: "Control",
11469
- scope: "#/properties/programType",
11470
- config: {
11471
- main: {
11472
- heading: "Total Earnings"
11473
- },
11474
- style: {
11475
- color: "black",
11476
- fontSize: "16px",
11477
- justifyContent: "center",
11478
- textWrap: "wrap",
11479
- background: "inherit",
11480
- width: "calc(100%+8px)",
11481
- margin: "-8px",
11482
- marginTop: { xs: "16px", md: "20px" }
11483
- },
11484
- layout: 12
11485
- },
11486
- options: {
11487
- widget: "Box"
11488
- }
11489
- }
11490
- ]
11491
- }
11492
- ]
11493
- },
11494
12008
  {
11495
12009
  type: "Control",
11496
- scope: "#/properties/programType",
12010
+ scope: "#/properties/initilCardScope",
11497
12011
  config: {
11498
12012
  main: {
11499
12013
  url: "https://www.svgrepo.com/show/500606/loading.svg"
11500
12014
  },
11501
12015
  style: {
11502
12016
  containerStyle: {
11503
- height: "100%",
12017
+ position: "absolute",
12018
+ color: "inherit",
12019
+ top: "4px",
12020
+ right: "4px",
11504
12021
  display: "flex",
11505
- justifyContent: "end"
12022
+ justifyContent: "flex-end",
12023
+ alignItems: "flex-start"
11506
12024
  },
11507
12025
  imageStyle: {
11508
- width: "unset",
11509
- fontSize: "none",
11510
- padding: "4px",
11511
- margin: "0px 0px 0px 8px",
11512
- height: "64px"
12026
+ color: "inherit",
12027
+ width: "32px",
12028
+ height: "32px",
12029
+ padding: "0px",
12030
+ margin: "0px"
11513
12031
  }
11514
- },
11515
- layout: 4
12032
+ }
11516
12033
  },
11517
12034
  options: {
11518
12035
  widget: "Image"
11519
12036
  }
11520
- }
12037
+ },
12038
+ {
12039
+ type: "Control",
12040
+ scope: "#/properties/initilCardScope",
12041
+ config: {
12042
+ main: {
12043
+ heading: "Total Earnings"
12044
+ },
12045
+ style: {
12046
+ color: "inherit",
12047
+ fontSize: "16px",
12048
+ fontWeight: 300,
12049
+ fontFamily: "Poppins",
12050
+ justifyContent: "flex-start",
12051
+ background: "inherit",
12052
+ position: "absolute",
12053
+ top: "8px",
12054
+ left: "12px",
12055
+ display: "flex",
12056
+ maxWidth: "200px",
12057
+ whiteSpace: "nowrap",
12058
+ overflowX: "auto",
12059
+ scrollbarWidth: "none",
12060
+ "&::-webkit-scrollbar": {
12061
+ display: "none"
12062
+ }
12063
+ }
12064
+ },
12065
+ options: {
12066
+ widget: "Box"
12067
+ }
12068
+ },
12069
+ {
12070
+ type: "Control",
12071
+ scope: "#/properties/initilCardScope",
12072
+ config: {
12073
+ main: {
12074
+ heading: "5000.00"
12075
+ },
12076
+ style: {
12077
+ color: "inherit",
12078
+ display: "flex",
12079
+ fontSize: { xs: "22px", md: "40px" },
12080
+ fontWeight: 600,
12081
+ background: "inherit",
12082
+ justifyContent: "flex-start",
12083
+ width: "100%",
12084
+ margin: "0px",
12085
+ marginBottom: "4px",
12086
+ marginTop: "8px",
12087
+ lineHeight: "1",
12088
+ maxWidth: "300px",
12089
+ whiteSpace: "nowrap",
12090
+ overflowX: "auto",
12091
+ overflowY: "hidden",
12092
+ scrollbarWidth: "none",
12093
+ "&::-webkit-scrollbar": {
12094
+ display: "none"
12095
+ }
12096
+ }
12097
+ },
12098
+ options: {
12099
+ widget: "Box"
12100
+ }
12101
+ },
12102
+ {
12103
+ type: "Control",
12104
+ scope: "#/properties/initilCardScope",
12105
+ config: {
12106
+ main: {
12107
+ heading: "Increased from last month"
12108
+ },
12109
+ style: {
12110
+ color: "inherit",
12111
+ fontSize: "12px",
12112
+ fontWeight: "400",
12113
+ justifyContent: "flex-start",
12114
+ background: "inherit",
12115
+ margin: "0px",
12116
+ paddingLeft: "2px",
12117
+ marginBottom: "8px",
12118
+ maxWidth: "200px",
12119
+ whiteSpace: "nowrap",
12120
+ overflowX: "auto",
12121
+ scrollbarWidth: "none",
12122
+ "&::-webkit-scrollbar": {
12123
+ display: "none"
12124
+ }
12125
+ }
12126
+ },
12127
+ options: {
12128
+ widget: "Box"
12129
+ }
12130
+ }
11521
12131
  ]
11522
12132
  };
11523
12133
  return uiSchema;
@@ -11527,9 +12137,10 @@ const buildCard = (config, componentScope, store) => {
11527
12137
  if (config.style) {
11528
12138
  card.config.wrapperStyle = JSON.parse(config.style);
11529
12139
  }
11530
- card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
11531
- card.elements[1].scope = `#/properties/${config.name}/properties/url`;
11532
- card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
12140
+ card.elements[0].scope = `#/properties/${config.name}/properties/url`;
12141
+ card.elements[1].scope = `#/properties/${config.name}/properties/label`;
12142
+ card.elements[2].scope = `#/properties/${config.name}/properties/value`;
12143
+ card.elements[3].scope = `#/properties/${config.name}/properties/description`;
11533
12144
  if (config.layout) {
11534
12145
  card.config.layout = createLayoutFormat(config.layout);
11535
12146
  }
@@ -11538,16 +12149,56 @@ const buildCard = (config, componentScope, store) => {
11538
12149
  card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
11539
12150
  }
11540
12151
  if (config.label) {
11541
- card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
12152
+ card.elements[1].config.main.heading = config.label;
11542
12153
  }
11543
12154
  if (config.url) {
11544
- card.elements[1].config.main.url = config.url;
12155
+ card.elements[0].config.main.url = config.url;
11545
12156
  }
11546
12157
  if (config.description) {
11547
- card.elements[0].elements[0].elements[1].config.main.heading = config.description;
12158
+ card.elements[3].config.main.heading = config.description;
11548
12159
  }
11549
12160
  return card;
11550
12161
  };
12162
+ var MetricCard = {
12163
+ type: "Control",
12164
+ scope: "#/properties/metricpath",
12165
+ options: {
12166
+ widget: "MetricCard"
12167
+ },
12168
+ config: {
12169
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
12170
+ main: {}
12171
+ }
12172
+ };
12173
+ const buildMetricCard = (config2, componentScope2, store2) => {
12174
+ const card2 = _.cloneDeep(MetricCard);
12175
+ card2.scope = componentScope2;
12176
+ if (config2.style) {
12177
+ card2.config.style = JSON.parse(config2.style);
12178
+ }
12179
+ if (config2.layout) {
12180
+ card2.config.layout = createLayoutFormat(config2.layout);
12181
+ }
12182
+ if (config2.label) {
12183
+ card2.config.main.label = config2.label;
12184
+ }
12185
+ if (config2.url) {
12186
+ card2.config.main.url = config2.url;
12187
+ }
12188
+ if (config2.description) {
12189
+ card2.config.main.description = config2.description;
12190
+ }
12191
+ if (config2.cardValue) {
12192
+ card2.config.main.cardValue = config2.cardValue;
12193
+ }
12194
+ if (config2.growthRate) {
12195
+ card2.config.main.growthRate = config2.growthRate;
12196
+ }
12197
+ if (config2.color) {
12198
+ card2.config.main.color = config2.color;
12199
+ }
12200
+ return card2;
12201
+ };
11551
12202
  var DateInputField = {
11552
12203
  type: "Control",
11553
12204
  scope: "#/properties/date",
@@ -11555,7 +12206,7 @@ var DateInputField = {
11555
12206
  widget: "DateInputField"
11556
12207
  },
11557
12208
  config: {
11558
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12209
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11559
12210
  main: {
11560
12211
  label: "",
11561
12212
  type: "date"
@@ -11569,7 +12220,7 @@ const DateTime = {
11569
12220
  widget: "DateTimeInputField"
11570
12221
  },
11571
12222
  config: {
11572
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12223
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11573
12224
  main: {
11574
12225
  label: "DateTime",
11575
12226
  type: "date"
@@ -11579,21 +12230,43 @@ const DateTime = {
11579
12230
  const buildDate = (config2, componentScope2) => {
11580
12231
  const dateInputField = _.cloneDeep(DateInputField);
11581
12232
  dateInputField.config.main.label = config2.label;
11582
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11583
12233
  dateInputField.scope = componentScope2;
11584
12234
  if (config2.layout) {
11585
12235
  dateInputField.config.layout = createLayoutFormat(config2.layout);
11586
12236
  }
12237
+ if (config2.variant) {
12238
+ dateInputField.config.main.variant = config2.variant;
12239
+ }
12240
+ if (config2.toolTip) {
12241
+ dateInputField.config.main.toolTip = config2.toolTip;
12242
+ }
12243
+ if (config2.toolTipPosition) {
12244
+ dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
12245
+ }
12246
+ if (config2.style) {
12247
+ dateInputField.config.style = JSON.parse(config2.style);
12248
+ }
11587
12249
  return dateInputField;
11588
12250
  };
11589
12251
  const buildDateTime = (config2, componentScope2) => {
11590
12252
  const dateTimeInputField = _.cloneDeep(DateTime);
11591
12253
  dateTimeInputField.config.main.label = config2.label;
11592
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11593
12254
  dateTimeInputField.scope = componentScope2;
11594
12255
  if (config2.layout) {
11595
12256
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
11596
12257
  }
12258
+ if (config2.variant) {
12259
+ dateTimeInputField.config.main.variant = config2.variant;
12260
+ }
12261
+ if (config2.toolTip) {
12262
+ dateTimeInputField.config.main.toolTip = config2.toolTip;
12263
+ }
12264
+ if (config2.toolTipPosition) {
12265
+ dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
12266
+ }
12267
+ if (config2.style) {
12268
+ dateTimeInputField.config.style = JSON.parse(config2.style);
12269
+ }
11597
12270
  return dateTimeInputField;
11598
12271
  };
11599
12272
  var RankCard = {
@@ -11677,14 +12350,15 @@ var MultipleSelect = {
11677
12350
  widget: "MultipleSelect"
11678
12351
  },
11679
12352
  config: {
11680
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12353
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11681
12354
  main: {
11682
12355
  label: "",
11683
12356
  type: "text",
11684
12357
  multiple: true,
11685
- variant: "standard",
12358
+ variant: "outlined",
11686
12359
  options: []
11687
- }
12360
+ },
12361
+ style: {}
11688
12362
  }
11689
12363
  };
11690
12364
  const buildMultiSelect = (config2, componentScope2) => {
@@ -11699,9 +12373,21 @@ const buildMultiSelect = (config2, componentScope2) => {
11699
12373
  if (config2.value) {
11700
12374
  multipleSelect.config.main.options = config2.value;
11701
12375
  }
12376
+ if (config2.variant) {
12377
+ multipleSelect.config.main.variant = config2.variant;
12378
+ }
11702
12379
  if (config2.lazyLoading) {
11703
12380
  multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11704
12381
  }
12382
+ if (config2.toolTip) {
12383
+ multipleSelect.config.main.toolTip = config2.toolTip;
12384
+ }
12385
+ if (config2.toolTipPosition) {
12386
+ multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
12387
+ }
12388
+ if (config2.style) {
12389
+ multipleSelect.config.style = JSON.parse(config2.style);
12390
+ }
11705
12391
  return multipleSelect;
11706
12392
  };
11707
12393
  const buildBasicUiSchema = (config2) => {
@@ -11721,7 +12407,7 @@ const TextArea = {
11721
12407
  widget: "TextArea"
11722
12408
  },
11723
12409
  config: {
11724
- layout: { xs: 12, sm: 12, md: 5.5, lg: 5.5 },
12410
+ layout: 12,
11725
12411
  style: {
11726
12412
  containerStyle: {
11727
12413
  borderRadius: "20px"
@@ -11745,7 +12431,7 @@ const buildTextArea = (config2, componentScope2) => {
11745
12431
  const textArea = _.cloneDeep(TextArea);
11746
12432
  textArea.config.main.heading = config2.label;
11747
12433
  if (config2.layout) {
11748
- textArea.config.layout = createLayoutFormat(config2.layout);
12434
+ textArea.config.layout = createLayoutFormat(config2.layout, config2.type);
11749
12435
  }
11750
12436
  if (config2.style) {
11751
12437
  textArea.config.style = JSON.parse(config2.style);
@@ -11787,11 +12473,11 @@ const buildSlider = (config2, componentScope2) => {
11787
12473
  const Checkbox = {
11788
12474
  "type": "Control",
11789
12475
  "scope": "#/properties/username1",
11790
- "layout": 12,
11791
12476
  "options": {
11792
12477
  "widget": "CheckBox"
11793
12478
  },
11794
12479
  "config": {
12480
+ "layout": { xs: 6, sm: 6, md: 4, lg: 3 },
11795
12481
  "main": {
11796
12482
  "label": "Welcome to Hyperform"
11797
12483
  }
@@ -11812,7 +12498,7 @@ const buildCheckbox = (config2, componentScope2) => {
11812
12498
  const buildLineGraph = (config2, componentScope2) => {
11813
12499
  const lineGraph = _.cloneDeep(LineGraph);
11814
12500
  if (config2.layout) {
11815
- lineGraph.config.layout = createLayoutFormat(config2.layout);
12501
+ lineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
11816
12502
  }
11817
12503
  lineGraph.config.main.header = config2.heading;
11818
12504
  if (config2.height) {
@@ -11835,17 +12521,23 @@ const buildLineGraph = (config2, componentScope2) => {
11835
12521
  if (config2.leftLabel) {
11836
12522
  lineGraph.config.main.leftLabel = config2.leftLabel;
11837
12523
  }
12524
+ if (config2.disableLeftLabel) {
12525
+ lineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
12526
+ }
11838
12527
  if (config2.legendHide) {
11839
12528
  lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
11840
12529
  }
12530
+ if (config2.legendDirection) {
12531
+ lineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
12532
+ }
11841
12533
  if (config2.bottomAxisAngle) {
11842
12534
  lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
11843
12535
  }
11844
12536
  if (config2.legendLabels) {
11845
- lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
12537
+ lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11846
12538
  }
11847
12539
  if (config2.pieArcColors) {
11848
- lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
12540
+ lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
11849
12541
  }
11850
12542
  lineGraph.scope = componentScope2;
11851
12543
  return lineGraph;
@@ -11857,11 +12549,10 @@ const RadioUiSchema = {
11857
12549
  widget: "RadioInputField"
11858
12550
  },
11859
12551
  config: {
11860
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
12552
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11861
12553
  main: {
11862
12554
  label: "Enabled",
11863
- options: ["YES", "NO"],
11864
- errorMessage: "Enabled is not marked as YES or NO"
12555
+ options: ["YES", "NO"]
11865
12556
  }
11866
12557
  }
11867
12558
  };
@@ -11878,6 +12569,15 @@ const buildRadio = (config2, componentScope2) => {
11878
12569
  if (config2.style) {
11879
12570
  Radio.config.style = JSON.parse(config2.style);
11880
12571
  }
12572
+ if (config2.errorMessage) {
12573
+ Radio.config.main.errorMessage = config2.errorMessage;
12574
+ }
12575
+ if (config2.toolTip) {
12576
+ Radio.config.main.toolTip = config2.toolTip;
12577
+ }
12578
+ if (config2.toolTipPosition) {
12579
+ Radio.config.main.toolTipPosition = config2.toolTipPosition;
12580
+ }
11881
12581
  return Radio;
11882
12582
  };
11883
12583
  var emptyBox = {
@@ -11887,13 +12587,14 @@ var emptyBox = {
11887
12587
  widget: "EmptyBox"
11888
12588
  },
11889
12589
  config: {
11890
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
12590
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11891
12591
  main: {},
11892
12592
  style: {}
11893
12593
  }
11894
12594
  };
11895
12595
  const buildEmptyBox = (config2, componentScope2) => {
11896
12596
  const EmptyBox = _.cloneDeep(emptyBox);
12597
+ EmptyBox.scope = componentScope2;
11897
12598
  if (config2.layout) {
11898
12599
  EmptyBox.config.layout = createLayoutFormat(config2.layout);
11899
12600
  }
@@ -11902,16 +12603,35 @@ const buildEmptyBox = (config2, componentScope2) => {
11902
12603
  const ArrayUiSchema = {
11903
12604
  type: "Control",
11904
12605
  scope: "#/properties/adjustments",
11905
- layout: 11.5,
11906
- options: {
11907
- detail: {
11908
- type: "HorizontalLayout",
11909
- elements: []
11910
- }
12606
+ layout: 12,
12607
+ elements: [],
12608
+ config: {
12609
+ main: {}
11911
12610
  }
11912
12611
  };
11913
12612
  const buildArray = (config2, componentScope2) => {
11914
12613
  const array = _.cloneDeep(ArrayUiSchema);
12614
+ if (config2.allExpanded) {
12615
+ array.config.main.allExpanded = config2.allExpanded === "YES" ? true : false;
12616
+ }
12617
+ if (config2.disableAddButton) {
12618
+ array.config.main.disableAddButton = config2.disableAddButton === "YES" ? true : false;
12619
+ }
12620
+ if (config2.disableExpandAllButton) {
12621
+ array.config.main.disableExpandAllButton = config2.disableExpandAllButton === "YES" ? true : false;
12622
+ }
12623
+ if (config2.disableRowActions) {
12624
+ array.config.main.disableRowActions = config2.disableRowActions === "YES" ? true : false;
12625
+ }
12626
+ if (config2.style) {
12627
+ array.config.style = JSON.parse(config2.style);
12628
+ }
12629
+ array.config.main.rowSpacing = Number(config2.rowSpacing);
12630
+ array.config.main.columnSpacing = Number(config2.columnSpacing);
12631
+ array.config.main.spacing = Number(config2.spacing);
12632
+ array.config.main.childElementLabel = config2.childElementLabel;
12633
+ array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
12634
+ array.config.main.label = config2.label;
11915
12635
  array.scope = componentScope2;
11916
12636
  return array;
11917
12637
  };
@@ -11923,7 +12643,7 @@ const TextField = {
11923
12643
  "widget": "InputField"
11924
12644
  },
11925
12645
  config: {
11926
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
12646
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11927
12647
  main: {
11928
12648
  label: "Adhaar Card",
11929
12649
  formatStrArray: ["9", "9", "9", "9", " ", "9", "9", "9", "9", " ", "X9", "X9", "X9", "X9"],
@@ -11952,7 +12672,7 @@ const PanField = {
11952
12672
  "widget": "InputField"
11953
12673
  },
11954
12674
  config: {
11955
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
12675
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11956
12676
  main: {
11957
12677
  label: "Pan Card",
11958
12678
  placeholder: "AAAAA0000A",
@@ -11980,12 +12700,13 @@ const FileInput = {
11980
12700
  widget: "FileInputField"
11981
12701
  },
11982
12702
  config: {
11983
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12703
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11984
12704
  main: {
11985
12705
  required: false,
11986
12706
  onUpload: "onFileUpload",
11987
12707
  onDownload: "onFileDownload",
11988
- label: "Aggrement Copy"
12708
+ label: "Aggrement Copy",
12709
+ "onClick": "onClick"
11989
12710
  },
11990
12711
  style: {
11991
12712
  backgroundColor: "none"
@@ -12002,6 +12723,19 @@ const buildFileInput = (config2, componentScope2) => {
12002
12723
  if (config2.style) {
12003
12724
  box.config.style = JSON.parse(config2.style);
12004
12725
  }
12726
+ box.config.main.variant = config2.variant;
12727
+ box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12728
+ box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12729
+ box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12730
+ box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
12731
+ box.config.main.description = config2.description;
12732
+ box.config.main.toolTip = config2.toolTip;
12733
+ box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
12734
+ box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
12735
+ if (config2.toolTipPosition) {
12736
+ box.config.main.toolTipPosition = config2.toolTipPosition;
12737
+ }
12738
+ box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
12005
12739
  return box;
12006
12740
  };
12007
12741
  const Stepper = {
@@ -12058,6 +12792,7 @@ const PopUP = {
12058
12792
  },
12059
12793
  main: {
12060
12794
  label: "PopUp",
12795
+ onClose: "onClose",
12061
12796
  fullScreen: false,
12062
12797
  fullWidth: false,
12063
12798
  maxWidth: false,
@@ -12075,10 +12810,10 @@ const buildPopUp = (config2, componentScope2) => {
12075
12810
  popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
12076
12811
  popup.config.main.maxWidth = config2.maxWidth || false;
12077
12812
  if (config2.layout) {
12078
- popup.config.layout = createLayoutFormat(config2.layout);
12813
+ popup.config.layout = createLayoutFormat(config2.layout, config2.type);
12079
12814
  }
12080
12815
  if (config2.style) {
12081
- PopUP.config.style = JSON.parse(config2.style);
12816
+ popup.config.style = JSON.parse(config2.style);
12082
12817
  }
12083
12818
  return popup;
12084
12819
  };
@@ -12115,10 +12850,10 @@ const buildDataGrid = (config2, componentScope2) => {
12115
12850
  DataGrid.config.main.label = config2.label;
12116
12851
  }
12117
12852
  if (config2.layout) {
12118
- DataGrid.config.layout = createLayoutFormat(config2.layout);
12853
+ DataGrid.config.layout = createLayoutFormat(config2.layout, config2.type);
12119
12854
  }
12120
12855
  if (config2.cardLayout) {
12121
- DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
12856
+ DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout, config2.type);
12122
12857
  }
12123
12858
  if (config2.style) {
12124
12859
  DataGrid.config.style = JSON.parse(config2.style);
@@ -12170,6 +12905,7 @@ const TreeMap = {
12170
12905
  "type": "Control",
12171
12906
  "scope": "#/properties/TreeMap2",
12172
12907
  "config": {
12908
+ layout: 12,
12173
12909
  "main": {
12174
12910
  "layout": "cartsian",
12175
12911
  orientation: "vertical",
@@ -12195,7 +12931,7 @@ const buildTreeMap = (config2, componentScope2) => {
12195
12931
  treMap.config.main.header = config2.label;
12196
12932
  }
12197
12933
  if (config2.layout) {
12198
- treMap.config.layout = createLayoutFormat(config2.layout);
12934
+ treMap.config.layout = createLayoutFormat(config2.layout, config2.type);
12199
12935
  }
12200
12936
  if (config2.orientation) {
12201
12937
  treMap.config.main.orientation = config2.orientation;
@@ -12238,7 +12974,7 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12238
12974
  thought.config.main.thought = `${config2.thought}`;
12239
12975
  }
12240
12976
  if (config2.layout) {
12241
- thought.config.layout = createLayoutFormat(config2.layout);
12977
+ thought.config.layout = createLayoutFormat(config2.layout, config2.type);
12242
12978
  }
12243
12979
  if (config2.label) {
12244
12980
  thought.config.main.label = config2.label;
@@ -12248,124 +12984,441 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12248
12984
  }
12249
12985
  return thought;
12250
12986
  };
12987
+ var horizontalLayout = {
12988
+ type: "HorizontalLayout",
12989
+ config: {
12990
+ layout: 12,
12991
+ main: {
12992
+ rowSpacing: 3,
12993
+ divider: false
12994
+ },
12995
+ defaultStyle: true
12996
+ },
12997
+ elements: []
12998
+ };
12999
+ const buildHorizontalLayout = (config2, componentScope2) => {
13000
+ const horizontal = _.cloneDeep(horizontalLayout);
13001
+ horizontal.scope = componentScope2;
13002
+ if (config2.style) {
13003
+ horizontal.config.style = JSON.parse(config2.style);
13004
+ }
13005
+ if (config2.layout) {
13006
+ horizontal.config.layout = createLayoutFormat(config2.layout, config2.type);
13007
+ }
13008
+ return horizontal;
13009
+ };
13010
+ const imageUiSchema = {
13011
+ type: "Control",
13012
+ scope: "#/properties/Logo",
13013
+ options: {
13014
+ widget: "Image"
13015
+ },
13016
+ config: {
13017
+ layout: 3,
13018
+ main: {
13019
+ url: "",
13020
+ onClick: "onClick"
13021
+ },
13022
+ style: {}
13023
+ }
13024
+ };
13025
+ const buildImage = (config2, componentScope2) => {
13026
+ const image = _.cloneDeep(imageUiSchema);
13027
+ image.scope = componentScope2;
13028
+ image.config.main.url = config2.imageUrl;
13029
+ if (config2.layout) {
13030
+ image.config.layout = createLayoutFormat(config2.layout);
13031
+ }
13032
+ if (config2.style) {
13033
+ image.config.style = JSON.parse(config2.style);
13034
+ }
13035
+ if (config2.height) {
13036
+ image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
13037
+ }
13038
+ image.config.main.toolTip = config2.toolTip;
13039
+ image.config.main.toolTipPosition = config2.toolTipPosition;
13040
+ return image;
13041
+ };
13042
+ const buildAreaGraph = (config2, componentScope2) => {
13043
+ const AreaGraph = _.cloneDeep(AreaBarGraph);
13044
+ AreaGraph.scope = componentScope2;
13045
+ if (config2.layout) {
13046
+ AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13047
+ }
13048
+ AreaGraph.config.main.type = config2.graphType;
13049
+ AreaGraph.scope = componentScope2;
13050
+ AreaGraph.config.main.header = config2.heading;
13051
+ AreaGraph.config.main.subHeader = config2.subHeader;
13052
+ if (config2.legendHide) {
13053
+ AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13054
+ }
13055
+ if (config2.bottomAxisAngle) {
13056
+ AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13057
+ }
13058
+ if (config2.legendLabels) {
13059
+ AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13060
+ }
13061
+ if (config2.legendDirection) {
13062
+ AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13063
+ }
13064
+ if (config2.height) {
13065
+ AreaGraph.config.style.containerStyle.height = config2.height;
13066
+ }
13067
+ if (config2.pieArcColors) {
13068
+ AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13069
+ }
13070
+ if (config2.xAxisFormatType) {
13071
+ AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
13072
+ }
13073
+ if (config2.yAxisTickCount) {
13074
+ AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13075
+ }
13076
+ if (config2.xAxisTickCount) {
13077
+ AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13078
+ }
13079
+ if (config2.xAxisValue) {
13080
+ AreaGraph.config.main.xAxisValue = config2.xAxisValue;
13081
+ }
13082
+ if (config2.xAxisType) {
13083
+ AreaGraph.config.main.xAxisType = config2.xAxisType;
13084
+ }
13085
+ if (config2.bottomLabel) {
13086
+ AreaGraph.config.main.bottomLabel = config2.bottomLabel;
13087
+ }
13088
+ if (config2.leftLabel) {
13089
+ AreaGraph.config.main.leftLabel = config2.leftLabel;
13090
+ }
13091
+ if (config2.disableLeftLabel) {
13092
+ AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13093
+ }
13094
+ if (config2.leftMargin) {
13095
+ AreaGraph.config.style.labelStyle.margin = {
13096
+ left: config2.leftMargin
13097
+ };
13098
+ }
13099
+ return AreaGraph;
13100
+ };
13101
+ const buildStackBarLineGraph = (config2, componentScope2) => {
13102
+ const StackBarLineGraph = _.cloneDeep(StackBarLineG);
13103
+ StackBarLineGraph.scope = componentScope2;
13104
+ if (config2.layout) {
13105
+ StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13106
+ }
13107
+ StackBarLineGraph.config.main.type = config2.graphType;
13108
+ StackBarLineGraph.scope = componentScope2;
13109
+ StackBarLineGraph.config.main.header = config2.heading;
13110
+ StackBarLineGraph.config.main.subHeader = config2.subHeader;
13111
+ if (config2.legendHide) {
13112
+ StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13113
+ }
13114
+ if (config2.bottomAxisAngle) {
13115
+ StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13116
+ }
13117
+ if (config2.legendLabels) {
13118
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13119
+ }
13120
+ if (config2.legendDirection) {
13121
+ StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13122
+ }
13123
+ if (config2.height) {
13124
+ StackBarLineGraph.config.style.containerStyle.height = config2.height;
13125
+ }
13126
+ if (config2.pieArcColors) {
13127
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13128
+ }
13129
+ if (config2.yAxisTickCount) {
13130
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13131
+ }
13132
+ if (config2.xAxisTickCount) {
13133
+ StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13134
+ }
13135
+ if (config2.xAxisValue) {
13136
+ StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13137
+ }
13138
+ if (config2.xAxisType) {
13139
+ StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
13140
+ }
13141
+ if (config2.bottomLabel) {
13142
+ StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
13143
+ }
13144
+ if (config2.leftLabel) {
13145
+ StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
13146
+ }
13147
+ if (config2.rightLabel) {
13148
+ StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
13149
+ }
13150
+ if (config2.disableLeftLabel) {
13151
+ StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13152
+ }
13153
+ if (config2.growthRateKey) {
13154
+ StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
13155
+ }
13156
+ if (config2.tooltipUnit) {
13157
+ StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
13158
+ }
13159
+ if (config2.leftMargin) {
13160
+ StackBarLineGraph.config.style.labelStyle.margin = {
13161
+ left: config2.leftMargin
13162
+ };
13163
+ }
13164
+ return StackBarLineGraph;
13165
+ };
13166
+ const cameraUiSchema = {
13167
+ type: "Control",
13168
+ scope: "#/properties/camera",
13169
+ options: {
13170
+ widget: "Camera"
13171
+ },
13172
+ config: {
13173
+ main: {
13174
+ label: "Upload Photo",
13175
+ multiUplaod: false,
13176
+ onUpload: "onFileUpload"
13177
+ }
13178
+ }
13179
+ };
13180
+ const buildCamera = (config2, componentScope2) => {
13181
+ const camera = _.cloneDeep(cameraUiSchema);
13182
+ camera.scope = componentScope2;
13183
+ if (config2.iconName) {
13184
+ camera.config.main.startIcon = config2.iconName;
13185
+ }
13186
+ if (config2.layout) {
13187
+ camera.config.layout = createLayoutFormat(config2.layout, config2.type);
13188
+ }
13189
+ if (config2.tooltipMessage) {
13190
+ camera.config.main.tooltipMessage = config2.tooltipMessage;
13191
+ }
13192
+ camera.config.main.multiUplaod = config2.multiUplaod === "YES" ? true : false;
13193
+ if (config2.style) {
13194
+ camera.config.style = JSON.parse(config2.style);
13195
+ }
13196
+ if (config2.size) {
13197
+ camera.config.main.size = config2.size;
13198
+ }
13199
+ if (config2.variant) {
13200
+ camera.config.main.variant = config2.variant;
13201
+ }
13202
+ if (config2.color) {
13203
+ camera.config.main.color = config2.color;
13204
+ }
13205
+ if (config2.label) {
13206
+ camera.config.main.label = config2.label;
13207
+ }
13208
+ return camera;
13209
+ };
13210
+ var ButtonGroup = {
13211
+ type: "Control",
13212
+ scope: "#/properties/buttonGroup",
13213
+ options: {
13214
+ widget: "ButtonGroup"
13215
+ },
13216
+ config: {
13217
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
13218
+ main: {
13219
+ variant: "contained",
13220
+ styleDefault: false,
13221
+ size: "small"
13222
+ },
13223
+ style: {}
13224
+ }
13225
+ };
13226
+ const buildButtonGroup = (config2, componentScope2) => {
13227
+ const buttonGroup = _.cloneDeep(ButtonGroup);
13228
+ if (config2.layout) {
13229
+ buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
13230
+ }
13231
+ buttonGroup.scope = componentScope2;
13232
+ if (config2.multiSelect) {
13233
+ buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
13234
+ }
13235
+ if (config2.style) {
13236
+ buttonGroup.config.style = JSON.parse(config2.style);
13237
+ }
13238
+ if (config2.size) {
13239
+ buttonGroup.config.main.size = config2.size;
13240
+ }
13241
+ if (config2.color) {
13242
+ buttonGroup.config.main.color = config2.color;
13243
+ }
13244
+ return buttonGroup;
13245
+ };
13246
+ const PopOver = {
13247
+ type: "Control",
13248
+ scope: "#/properties/text",
13249
+ options: {
13250
+ widget: "Popover"
13251
+ },
13252
+ config: {
13253
+ layout: {
13254
+ xs: 12,
13255
+ sm: 12,
13256
+ md: 12,
13257
+ lg: 12
13258
+ },
13259
+ main: {
13260
+ label: "PopOver"
13261
+ },
13262
+ style: {}
13263
+ }
13264
+ };
13265
+ const buildPopOver = (config2, componentScope2) => {
13266
+ const popOver = _.cloneDeep(PopOver);
13267
+ popOver.scope = componentScope2;
13268
+ popOver.config.main.positionVertical = config2.positionVertical;
13269
+ popOver.config.main.positionHorizontal = config2.positionHorizontal;
13270
+ popOver.config.main.contentVertical = config2.contentVertical;
13271
+ popOver.config.main.contentHorizontal = config2.contentHorizontal;
13272
+ popOver.config.main.width = config2.width;
13273
+ popOver.config.main.gap = config2.gap;
13274
+ if (config2.layout) {
13275
+ popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
13276
+ }
13277
+ if (config2.style) {
13278
+ popOver.config.style = JSON.parse(config2.style);
13279
+ }
13280
+ return popOver;
13281
+ };
13282
+ const OTPSchema = {
13283
+ type: "Control",
13284
+ scope: "#/properties/OTPInput",
13285
+ options: {
13286
+ widget: "OTPInput"
13287
+ },
13288
+ config: {
13289
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
13290
+ main: {
13291
+ seperator: "",
13292
+ length: 4,
13293
+ type: "number",
13294
+ masking: true
13295
+ }
13296
+ }
13297
+ };
13298
+ const buildOTP_Input = (config2, componentScope2) => {
13299
+ const OTP = _.cloneDeep(OTPSchema);
13300
+ OTP.scope = componentScope2;
13301
+ if (config2.layout) {
13302
+ OTP.config.layout = createLayoutFormat(config2.layout);
13303
+ }
13304
+ if (config2.style) {
13305
+ OTP.config.style = JSON.parse(config2.style);
13306
+ }
13307
+ if (config2.errorMessage) {
13308
+ OTP.config.main.errorMessage = config2.errorMessage;
13309
+ }
13310
+ if (config2.toolTip) {
13311
+ OTP.config.main.toolTip = config2.toolTip;
13312
+ }
13313
+ OTP.config.main.masking = config2.masking === "YES" ? true : false;
13314
+ OTP.config.main.type = config2.OTP_Format;
13315
+ OTP.config.main.seperator = config2.seperator;
13316
+ OTP.config.main.length = +config2.length;
13317
+ return OTP;
13318
+ };
13319
+ var pdfViewer = {
13320
+ type: "Control",
13321
+ scope: "#/properties/pdfviewer",
13322
+ options: {
13323
+ widget: "PdfViewer"
13324
+ },
13325
+ config: {
13326
+ layout: {
13327
+ xs: 12,
13328
+ sm: 12,
13329
+ md: 12,
13330
+ lg: 12
13331
+ },
13332
+ main: {
13333
+ title: "PDF"
13334
+ }
13335
+ }
13336
+ };
13337
+ const buildPdfViewer = (config2, componentScope2) => {
13338
+ const PdfViewer = _.cloneDeep(pdfViewer);
13339
+ PdfViewer.scope = componentScope2;
13340
+ PdfViewer.config.main.scale = config2.scale;
13341
+ if (config2.layout) {
13342
+ PdfViewer.config.layout = createLayoutFormat(config2.layout);
13343
+ }
13344
+ if (config2.style) {
13345
+ PdfViewer.config.style = JSON.parse(config2.style);
13346
+ }
13347
+ return PdfViewer;
13348
+ };
12251
13349
  let schema = {
12252
13350
  type: "object",
12253
13351
  properties: {},
12254
13352
  required: []
12255
13353
  };
12256
- function buildRule(configObj, tableName, arrayHolderName) {
12257
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
12258
- if (arrayHolderName) {
12259
- if ((_c = (_b = (_a = schema.properties) == null ? void 0 : _a[tableName]) == null ? void 0 : _b.items) == null ? void 0 : _c.properties) {
12260
- 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])) {
12261
- schema.properties[tableName].items.properties[configObj.name] = {};
12262
- if (configObj.type === "Select" && ((_h = configObj.value) == null ? void 0 : _h.length) > 0) {
12263
- schema.properties[tableName].items.properties[configObj.name] = {
12264
- oneOf: configObj.value.map((e) => {
12265
- return { const: e.value, title: e.label };
12266
- })
12267
- };
12268
- } else if (configObj.type === "MultipleSelect" && ((_i = configObj.value) == null ? void 0 : _i.length) > 0) {
12269
- schema.properties[tableName].items.properties[configObj.name] = {
12270
- items: {
12271
- oneOf: configObj.value.map((e) => {
12272
- return { const: e.value, title: e.label };
12273
- })
12274
- }
12275
- };
12276
- }
12277
- }
12278
- }
12279
- } else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && ((_j = configObj.value) == null ? void 0 : _j.length) > 0) {
12280
- if (configObj.type === "Select") {
12281
- schema.properties[configObj.name] = {
12282
- oneOf: configObj.value.map((e) => {
12283
- return { const: e.value, title: e.label };
12284
- })
12285
- };
12286
- } else if (configObj.type === "MultipleSelect") {
12287
- schema.properties[configObj.name] = {
13354
+ function buildSchemaFromConfig(config2, parentSchema) {
13355
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
13356
+ if (config2.elements) {
13357
+ if (config2.type === "Array") {
13358
+ (_a = parentSchema.properties) != null ? _a : parentSchema.properties = {};
13359
+ (_d = (_b = parentSchema.properties)[_c = config2.name]) != null ? _d : _b[_c] = {
13360
+ type: "array",
12288
13361
  items: {
12289
- oneOf: configObj.value.map((e) => {
12290
- return { const: e.value, title: e.label };
12291
- })
13362
+ type: "object",
13363
+ properties: {},
13364
+ required: []
12292
13365
  }
12293
13366
  };
13367
+ const arrayItemSchema = parentSchema.properties[config2.name].items;
13368
+ (_e = config2.elements) == null ? void 0 : _e.forEach(
13369
+ (child) => buildSchemaFromConfig(child, arrayItemSchema)
13370
+ );
13371
+ return;
13372
+ } else {
13373
+ (_f = config2.elements) == null ? void 0 : _f.forEach(
13374
+ (child) => buildSchemaFromConfig(child, parentSchema)
13375
+ );
13376
+ return;
12294
13377
  }
12295
13378
  }
12296
- if (configObj.validation) {
12297
- configObj.validation.forEach((rule) => {
12298
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l;
12299
- if (tableName) {
12300
- if ((_c2 = (_b2 = (_a2 = schema.properties) == null ? void 0 : _a2[tableName]) == null ? void 0 : _b2.items) == null ? void 0 : _c2.properties) {
12301
- 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])) {
12302
- schema.properties[tableName].items.properties[configObj.name] = {};
12303
- if (configObj.type === "Select" || ((_h2 = configObj.value) == null ? void 0 : _h2.length) > 0) {
12304
- schema.properties[tableName].items.properties[configObj.name] = {
12305
- oneOf: configObj.value.map((e) => {
12306
- return { const: e.value, title: e.label };
12307
- })
12308
- };
12309
- } else if (configObj.type === "MultipleSelect" || ((_i2 = configObj.value) == null ? void 0 : _i2.length) > 0) {
12310
- schema.properties[tableName].items.properties[configObj.name] = {
12311
- items: {
12312
- oneOf: configObj.value.map((e) => {
12313
- return { const: e.value, title: e.label };
12314
- })
12315
- }
12316
- };
12317
- }
12318
- }
12319
- if (rule.validationType === "required") {
12320
- (_l = (_k = (_j2 = schema.properties) == null ? void 0 : _j2[tableName]) == null ? void 0 : _k.items) == null ? void 0 : _l.required.push(configObj.name);
12321
- } else {
12322
- schema.properties[tableName].items.properties[configObj.name]["type"] = "string";
12323
- schema.properties[tableName].items.properties[configObj.name][rule.validationType] = isNaN(rule.validationValue) ? rule.validationValue : Number(rule.validationValue);
12324
- }
12325
- }
12326
- } else {
12327
- if (!schema.properties[configObj.name]) {
12328
- schema.properties[configObj.name] = {};
12329
- }
12330
- if (rule.validationType === "required") {
12331
- schema.required.push(configObj.name);
12332
- } else {
12333
- schema.properties[configObj.name]["type"] = "string";
12334
- schema.properties[configObj.name][rule.validationType] = isNaN(rule.validationValue) ? rule.validationValue : Number(rule.validationValue);
12335
- }
12336
- }
12337
- });
12338
- }
12339
- }
12340
- const buildSchema = (config2, tableName, isArrayType) => {
12341
- buildRule(config2, tableName, isArrayType);
12342
- if (config2 == null ? void 0 : config2.elements) {
12343
- if (config2.type == "Table" || config2.type == "Array") {
12344
- if (!schema.properties[config2.name]) {
12345
- schema.properties[config2.name] = {
12346
- type: "array",
12347
- items: {
12348
- type: "object",
12349
- properties: {},
12350
- required: []
12351
- }
12352
- };
12353
- }
12354
- config2.elements.map((e, elemInd) => {
12355
- buildSchema(e, config2.name, config2.type === "Array" ? true : false);
12356
- });
13379
+ (_g = parentSchema.properties) != null ? _g : parentSchema.properties = {};
13380
+ (_j = (_h = parentSchema.properties)[_i = config2.name]) != null ? _j : _h[_i] = {};
13381
+ const fieldSchema = parentSchema.properties[config2.name];
13382
+ (_k = config2.validation) == null ? void 0 : _k.forEach((v) => {
13383
+ var _a2;
13384
+ if (v.validationType === "required") {
13385
+ (_a2 = parentSchema.required) != null ? _a2 : parentSchema.required = [];
13386
+ parentSchema.required.push(config2.name);
13387
+ } else if (v.validationType === "readOnly") {
13388
+ fieldSchema.type = "string";
13389
+ fieldSchema.disabled = true;
12357
13390
  } else {
12358
- config2.elements.map((e, elemInd) => {
12359
- buildSchema(e);
12360
- });
13391
+ fieldSchema.type = "string";
13392
+ fieldSchema[v.validationType] = isNaN(v.validationValue) ? v.validationValue : Number(v.validationValue);
12361
13393
  }
13394
+ });
13395
+ if (config2.type === "Select" && ((_l = config2.value) == null ? void 0 : _l.length)) {
13396
+ fieldSchema.oneOf = config2.value.map((v) => ({
13397
+ const: v.value,
13398
+ title: v.label
13399
+ }));
12362
13400
  }
13401
+ if (config2.type === "MultipleSelect" && ((_m = config2.value) == null ? void 0 : _m.length)) {
13402
+ fieldSchema.type = "array";
13403
+ fieldSchema.items = {
13404
+ oneOf: config2.value.map((v) => ({
13405
+ const: v.value,
13406
+ title: v.label
13407
+ }))
13408
+ };
13409
+ }
13410
+ }
13411
+ const buildSchema = (config2) => {
13412
+ buildSchemaFromConfig(config2, schema);
12363
13413
  return schema;
12364
13414
  };
12365
13415
  const buildUiSchema = (config2, store2) => {
12366
13416
  let elements = {};
12367
13417
  const componentScope2 = `#/properties/${config2.name}`;
12368
13418
  switch (config2.type) {
13419
+ case "OTP_Input":
13420
+ elements = buildOTP_Input(config2, componentScope2);
13421
+ break;
12369
13422
  case "TreeMap":
12370
13423
  elements = buildTreeMap(config2, componentScope2);
12371
13424
  break;
@@ -12384,6 +13437,9 @@ const buildUiSchema = (config2, store2) => {
12384
13437
  case "PopUp":
12385
13438
  elements = buildPopUp(config2, componentScope2);
12386
13439
  break;
13440
+ case "PopOver":
13441
+ elements = buildPopOver(config2, componentScope2);
13442
+ break;
12387
13443
  case "FileInput":
12388
13444
  elements = buildFileInput(config2, componentScope2);
12389
13445
  break;
@@ -12402,6 +13458,9 @@ const buildUiSchema = (config2, store2) => {
12402
13458
  case "WrapperSection":
12403
13459
  elements = buildWrapperSection(config2, componentScope2);
12404
13460
  break;
13461
+ case "HorizontalLayout":
13462
+ elements = buildHorizontalLayout(config2, componentScope2);
13463
+ break;
12405
13464
  case "Text":
12406
13465
  elements = buildTextField(config2, componentScope2);
12407
13466
  break;
@@ -12420,6 +13479,9 @@ const buildUiSchema = (config2, store2) => {
12420
13479
  case "Button":
12421
13480
  elements = buildButton(config2, componentScope2);
12422
13481
  break;
13482
+ case "ButtonGroup":
13483
+ elements = buildButtonGroup(config2, componentScope2);
13484
+ break;
12423
13485
  case "Table":
12424
13486
  elements = buildTable(config2, componentScope2);
12425
13487
  break;
@@ -12439,11 +13501,14 @@ const buildUiSchema = (config2, store2) => {
12439
13501
  elements = buildDownloadFile(config2, componentScope2);
12440
13502
  break;
12441
13503
  case "EmptyBox":
12442
- elements = buildEmptyBox(config2);
13504
+ elements = buildEmptyBox(config2, componentScope2);
12443
13505
  break;
12444
13506
  case "card":
12445
13507
  elements = buildCard(config2, componentScope2, store2);
12446
13508
  break;
13509
+ case "MetricCard":
13510
+ elements = buildMetricCard(config2, componentScope2);
13511
+ break;
12447
13512
  case "Graph":
12448
13513
  switch (config2.graphType) {
12449
13514
  case "BarGraph":
@@ -12460,6 +13525,12 @@ const buildUiSchema = (config2, store2) => {
12460
13525
  case "HorizontalStackBarGraph":
12461
13526
  elements = buildHorizontalBarGraph(config2, componentScope2);
12462
13527
  break;
13528
+ case "AreaGraph":
13529
+ elements = buildAreaGraph(config2, componentScope2);
13530
+ break;
13531
+ case "StackBarLineGraph":
13532
+ elements = buildStackBarLineGraph(config2, componentScope2);
13533
+ break;
12463
13534
  default:
12464
13535
  elements = buildStackbarGraph(config2, componentScope2);
12465
13536
  break;
@@ -12502,6 +13573,15 @@ const buildUiSchema = (config2, store2) => {
12502
13573
  case "Thought":
12503
13574
  elements = buildThoughtOfTheDay(config2, componentScope2);
12504
13575
  break;
13576
+ case "Image":
13577
+ elements = buildImage(config2, componentScope2);
13578
+ break;
13579
+ case "Camera":
13580
+ elements = buildCamera(config2, componentScope2);
13581
+ break;
13582
+ case "PdfViewer":
13583
+ elements = buildPdfViewer(config2, componentScope2);
13584
+ break;
12505
13585
  default:
12506
13586
  schema = {
12507
13587
  type: "object",
@@ -12512,7 +13592,17 @@ const buildUiSchema = (config2, store2) => {
12512
13592
  }
12513
13593
  if (config2 == null ? void 0 : config2.elements) {
12514
13594
  if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
12515
- return elements;
13595
+ const rowElements = [];
13596
+ config2.elements.map((cellElem) => {
13597
+ const commonProperties = {
13598
+ accessorKey: cellElem.name,
13599
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
13600
+ header: cellElem.label || cellElem.name,
13601
+ columnKey: cellElem.columnKey
13602
+ };
13603
+ rowElements.push({ ...commonProperties });
13604
+ });
13605
+ elements.elements = rowElements;
12516
13606
  } else if (config2.type == "ColumnGroup") {
12517
13607
  const sizeMap = {};
12518
13608
  if (config2.sizeHolder) {
@@ -12521,13 +13611,27 @@ const buildUiSchema = (config2, store2) => {
12521
13611
  });
12522
13612
  }
12523
13613
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12524
- return {
13614
+ const commonProperties = {
12525
13615
  accessorKey: cellElem.name,
13616
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12526
13617
  header: cellElem.label || cellElem.name,
12527
13618
  size: sizeMap[cellElem.name] || 180,
12528
- type: cellElem.columnFormat,
12529
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
13619
+ enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
13620
+ columnFilterModeOptions: cellElem.filteringOptions,
13621
+ enableSorting: cellElem.enableSorting === "No" ? false : true,
13622
+ columnKey: cellElem.columnKey,
13623
+ dateFormat: cellElem.dateFormat
12530
13624
  };
13625
+ if (cellElem.type) {
13626
+ const tableElem = {
13627
+ widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
13628
+ ...commonProperties,
13629
+ ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
13630
+ };
13631
+ return tableElem;
13632
+ } else {
13633
+ return { ...commonProperties };
13634
+ }
12531
13635
  });
12532
13636
  } else if (config2.type == "Table") {
12533
13637
  const sizeMap = {};
@@ -12542,13 +13646,14 @@ const buildUiSchema = (config2, store2) => {
12542
13646
  config2.elements.filter((cellElem, elemInd) => {
12543
13647
  const commonProperties = {
12544
13648
  accessorKey: cellElem.name,
12545
- type: cellElem.columnFormat,
13649
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12546
13650
  header: cellElem.label || cellElem.name,
12547
13651
  size: sizeMap[cellElem.name] || 180,
12548
13652
  enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12549
13653
  columnFilterModeOptions: cellElem.filteringOptions,
12550
13654
  enableSorting: cellElem.enableSorting === "No" ? false : true,
12551
- columnKey: cellElem.columnKey
13655
+ columnKey: cellElem.columnKey,
13656
+ dateFormat: cellElem.dateFormat
12552
13657
  };
12553
13658
  if (cellElem.type) {
12554
13659
  if (cellElem.elementType == "action") {
@@ -12563,8 +13668,8 @@ const buildUiSchema = (config2, store2) => {
12563
13668
  }
12564
13669
  const tableElem = {
12565
13670
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12566
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12567
- ...commonProperties
13671
+ ...commonProperties,
13672
+ ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
12568
13673
  };
12569
13674
  rowElements.push(tableElem);
12570
13675
  } else {
@@ -12574,17 +13679,18 @@ const buildUiSchema = (config2, store2) => {
12574
13679
  elements.elements = rowElements;
12575
13680
  elements.config.action = tableActionElement;
12576
13681
  elements.config.main.headerIcons.elements = tableHeaderElements;
12577
- } else if (config2.type == "Array") {
12578
- elements.options.detail.elements = config2.elements.map((e, elemInd) => {
12579
- return buildUiSchema(e, store2);
12580
- });
12581
13682
  } else {
12582
13683
  elements.elements = config2.elements.map((e, elemInd) => {
12583
13684
  return buildUiSchema(e, store2);
12584
13685
  });
12585
13686
  }
12586
13687
  }
13688
+ if (config2.tabLabelElements) {
13689
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13690
+ return buildUiSchema(e, store2);
13691
+ });
13692
+ }
12587
13693
  return elements;
12588
13694
  };
12589
- export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
13695
+ export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
12590
13696
  //# sourceMappingURL=impaktapps-ui-builder.es.js.map