impaktapps-ui-builder 1.0.4 → 1.0.5

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 +2272 -1158
  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 -8
  77. package/src/impaktapps-ui-builder/builder/build/buildText.ts +15 -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 +397 -141
  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,28 @@ 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
+ getSelectField("iconName", "Start Icon"),
8092
+ emptyBox$1("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
8093
+ getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
8094
+ getInputField("keyName", "Event Key Name")
7713
8095
  ];
7714
8096
  break;
7715
8097
  case "TextArea":
@@ -7745,7 +8127,8 @@ const buildPropertiesSection = function(type) {
7745
8127
  getInputField("nameKey", "Key for Name"),
7746
8128
  getInputField("imageKey", "Key for Image"),
7747
8129
  getInputField("scoreKey", "Key for comparing parameter"),
7748
- emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 })
8130
+ getRadioInputField("isScoreAmount", "Is Score an Amount Type", ["YES", "No"]),
8131
+ emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 })
7749
8132
  ];
7750
8133
  break;
7751
8134
  case "CardSlider":
@@ -7761,8 +8144,9 @@ const buildPropertiesSection = function(type) {
7761
8144
  getInputField("bottomLabel_1", "First BottomLabel"),
7762
8145
  getInputField("bottomLabel_2", "Second BottomLabel"),
7763
8146
  getInputField("bottomLabel_3", "Third BottomLabel"),
7764
- emptyBox$1("ProgressBarCardEmpty1"),
7765
- emptyBox$1("ProgressBarCardEmpty2")
8147
+ getInputField("size", "Size"),
8148
+ getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
8149
+ getArrayControl("pieArcColors", "color", "Color")
7766
8150
  ];
7767
8151
  break;
7768
8152
  case "card":
@@ -7774,6 +8158,17 @@ const buildPropertiesSection = function(type) {
7774
8158
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
7775
8159
  ];
7776
8160
  break;
8161
+ case "MetricCard":
8162
+ uiSchema.elements = [
8163
+ getInputField("url", "Image Url"),
8164
+ getInputField("label", "Label"),
8165
+ getInputField("cardValue", "Value"),
8166
+ getInputField("description", "Description"),
8167
+ getSelectField("growthRate", "Growth Rate"),
8168
+ getInputField("color", "Card Color"),
8169
+ emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8170
+ ];
8171
+ break;
7777
8172
  case "Button":
7778
8173
  uiSchema.elements = [
7779
8174
  getSelectField("buttonType", "Button Type"),
@@ -7784,22 +8179,45 @@ const buildPropertiesSection = function(type) {
7784
8179
  emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
7785
8180
  ];
7786
8181
  break;
8182
+ case "ButtonGroup":
8183
+ uiSchema.elements = [
8184
+ getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
8185
+ getInputField("size", "Size"),
8186
+ getSelectField("color", "Color"),
8187
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
8188
+ ];
8189
+ break;
8190
+ case "Box":
8191
+ uiSchema.elements = [
8192
+ getSelectField("iconName", "Icon Name"),
8193
+ emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
8194
+ ];
8195
+ break;
7787
8196
  case "Graph":
7788
8197
  uiSchema.elements = [
7789
8198
  getInputField("height", "Height"),
7790
8199
  getInputField("heading", "Heading"),
8200
+ getInputField("subHeader", "Sub Header"),
7791
8201
  getSelectField("graphType", "Graph Type"),
7792
8202
  getInputField("leftLabel", "Left Label"),
8203
+ getInputField("rightLabel", "Right Label"),
8204
+ getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
7793
8205
  getInputField("bottomLabel", "Bottom Label"),
7794
8206
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
7795
8207
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7796
- getInputField("yAxisValue", "Y-AxisValue"),
7797
- getInputField("xAxisValue", "X-AxisValue"),
8208
+ getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
8209
+ getInputField("yAxisValue", "Y-Axis Key"),
8210
+ getInputField("xAxisValue", "X-Axis Key"),
8211
+ getSelectField("xAxisType", "X-AxisType"),
7798
8212
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7799
8213
  getInputField("leftMargin", "Left Margin"),
7800
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
7801
- getArrayControl("legendLabels", "label"),
7802
- getArrayControl("pieArcColors", "color")
8214
+ getInputField("yAxisTickCount", "Y Axis TickCount"),
8215
+ getInputField("xAxisTickCount", "X Axis TickCount"),
8216
+ getSelectField("xAxisFormatType", "X Axis Format Type"),
8217
+ getInputField("growthRateKey", "Growth Rate Key"),
8218
+ getInputField("tooltipUnit", "Tooltip Unit"),
8219
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8220
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
7803
8221
  ];
7804
8222
  break;
7805
8223
  case "WrapperSection":
@@ -7807,8 +8225,12 @@ const buildPropertiesSection = function(type) {
7807
8225
  getRadioInputField("divider", "Divider", ["YES", "No"]),
7808
8226
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
7809
8227
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
8228
+ getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
7810
8229
  getInputField("rowSpacing", "Row Spacing"),
7811
- emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
8230
+ getInputField("columnSpacing", "Column Spacing"),
8231
+ getInputField("spacing", "Spacing"),
8232
+ getInputField("iconUrl", "Icon Url"),
8233
+ emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
7812
8234
  emptyBox$1("WrapperSectionEmpty2")
7813
8235
  ];
7814
8236
  break;
@@ -7817,7 +8239,7 @@ const buildPropertiesSection = function(type) {
7817
8239
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
7818
8240
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
7819
8241
  emptyBox$1("TabEmpty"),
7820
- getArrayControl("sectionLabels", "label")
8242
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
7821
8243
  ];
7822
8244
  break;
7823
8245
  case "Table":
@@ -7837,13 +8259,16 @@ const buildPropertiesSection = function(type) {
7837
8259
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
7838
8260
  getInputField("selectKey", "Selection Key"),
7839
8261
  getMultiSelectField("filteringOptions", "Filtering Options"),
8262
+ getSelectField("maxPageSize", "Max Page Size"),
8263
+ getSelectField("initialDensity", "Initial Toggle Density"),
7840
8264
  buildWrapper("Tree Table Properties", [
7841
8265
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
7842
8266
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
7843
8267
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
7844
8268
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
7845
8269
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
7846
- emptyBox$1("LazyLoadingTableEmpty2"),
8270
+ getInputField("defaultColumnSize", "Default Column Size"),
8271
+ ,
7847
8272
  emptyBox$1("LazyLoadingTableEmpty3")
7848
8273
  ]),
7849
8274
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
@@ -7853,6 +8278,10 @@ const buildPropertiesSection = function(type) {
7853
8278
  break;
7854
8279
  case "Radio":
7855
8280
  uiSchema.elements = [
8281
+ getInputField("errorMessage", "Error Message"),
8282
+ getInputField("toolTip", "Tooltip"),
8283
+ getSelectField("toolTipPosition", "Tooltip Position"),
8284
+ emptyBox$1("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
7856
8285
  getArrayControl("sectionLabels", "label", "Options Of Radio")
7857
8286
  ];
7858
8287
  break;
@@ -7860,14 +8289,40 @@ const buildPropertiesSection = function(type) {
7860
8289
  uiSchema.elements = [
7861
8290
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7862
8291
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
7863
- emptyBox$1("SelectEmpty")
8292
+ getSelectField("variant", "Variant"),
8293
+ getInputField("toolTip", "Tooltip"),
8294
+ getSelectField("toolTipPosition", "Tooltip Position"),
8295
+ emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
7864
8296
  ];
7865
8297
  break;
7866
8298
  case "MultipleSelect":
7867
8299
  uiSchema.elements = [
7868
8300
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7869
- emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
7870
- emptyBox$1("MultipleSelectEmpty2")
8301
+ getSelectField("variant", "Variant"),
8302
+ getInputField("toolTip", "Tooltip"),
8303
+ getSelectField("toolTipPosition", "Tooltip Position")
8304
+ ];
8305
+ break;
8306
+ case "PdfViewer":
8307
+ uiSchema.elements = [
8308
+ getInputField("scale", "Zoom"),
8309
+ emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
8310
+ ];
8311
+ break;
8312
+ case "Date":
8313
+ uiSchema.elements = [
8314
+ getSelectField("variant", "Variant"),
8315
+ getInputField("toolTip", "Tooltip"),
8316
+ getSelectField("toolTipPosition", "Tooltip Position"),
8317
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8318
+ ];
8319
+ break;
8320
+ case "DateTime":
8321
+ uiSchema.elements = [
8322
+ getSelectField("variant", "Variant"),
8323
+ getInputField("toolTip", "Tooltip"),
8324
+ getSelectField("toolTipPosition", "Tooltip Position"),
8325
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
7871
8326
  ];
7872
8327
  break;
7873
8328
  case "Thought":
@@ -7875,16 +8330,50 @@ const buildPropertiesSection = function(type) {
7875
8330
  getTextArea("thought", "Today's thought", false)
7876
8331
  ];
7877
8332
  break;
7878
- }
7879
- return uiSchema;
7880
- };
7881
- const StyleSection = {
7882
- type: "WrapperLayout",
7883
- config: {
7884
- main: {
7885
- label: " ",
7886
- gap: "8px"
7887
- }
8333
+ case "Image":
8334
+ uiSchema.elements = [
8335
+ getInputField("imageUrl", "Image URL"),
8336
+ getInputField("height", "Image Height"),
8337
+ getInputField("toolTip", "Tooltip"),
8338
+ getSelectField("toolTipPosition", "Tooltip Position"),
8339
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8340
+ ];
8341
+ break;
8342
+ case "FileInput":
8343
+ uiSchema.elements = [
8344
+ getRadioInputField("variant", "Variant", ["Outlined", "Standard"]),
8345
+ getRadioInputField("disableUpload", "Disable Upload", ["YES", "NO"]),
8346
+ getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
8347
+ getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
8348
+ getInputField("description", "Enter description"),
8349
+ getInputField("toolTip", "Tooltip"),
8350
+ getSelectField("toolTipPosition", "Tooltip Position"),
8351
+ getInputField("chooseButtonLabel", "ChooseButton Label"),
8352
+ getInputField("noFileAvailableMessage", "No Found Message"),
8353
+ getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
8354
+ getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
8355
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8356
+ ];
8357
+ break;
8358
+ case "Camera":
8359
+ uiSchema.elements = [
8360
+ getSelectField("iconName", "Icon Name"),
8361
+ getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
8362
+ getSelectField("color", "Color"),
8363
+ getInputField("tooltipMessage", "Tooltip Message"),
8364
+ getSelectField("variant", "Variant"),
8365
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
8366
+ ];
8367
+ }
8368
+ return uiSchema;
8369
+ };
8370
+ const StyleSection = {
8371
+ type: "WrapperLayout",
8372
+ config: {
8373
+ main: {
8374
+ label: " ",
8375
+ gap: "8px"
8376
+ }
7888
8377
  },
7889
8378
  elements: [
7890
8379
  {
@@ -7912,13 +8401,13 @@ const StyleSection = {
7912
8401
  }
7913
8402
  ]
7914
8403
  };
7915
- const TableSection = (theme) => {
8404
+ const TableSection = (theme, scopeName = "elements") => {
7916
8405
  const uiSchema = {
7917
8406
  type: "HorizontalLayout",
7918
8407
  elements: [
7919
8408
  {
7920
8409
  type: "Control",
7921
- scope: "#/properties/elements",
8410
+ scope: `#/properties/${scopeName}`,
7922
8411
  options: {
7923
8412
  widget: "Table"
7924
8413
  },
@@ -7929,7 +8418,7 @@ const TableSection = (theme) => {
7929
8418
  {
7930
8419
  widget: {
7931
8420
  type: "Control",
7932
- scope: "#/properties/New_Record",
8421
+ scope: `#/properties/${scopeName}_New_Record`,
7933
8422
  options: {
7934
8423
  widget: "IconButton"
7935
8424
  },
@@ -7956,7 +8445,7 @@ const TableSection = (theme) => {
7956
8445
  {
7957
8446
  widget: {
7958
8447
  type: "Control",
7959
- scope: "#/properties/Paste_Component",
8448
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
7960
8449
  options: {
7961
8450
  widget: "IconButton"
7962
8451
  },
@@ -7985,94 +8474,69 @@ const TableSection = (theme) => {
7985
8474
  disableAction: true,
7986
8475
  disableSelection: true,
7987
8476
  enableDrag: true
7988
- }
7989
- },
7990
- elements: [
7991
- {
7992
- accessorKey: "name",
7993
- header: "Name",
7994
- type: "string",
7995
- size: 300
7996
8477
  },
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: {
8478
+ action: [
8479
+ {
8009
8480
  type: "Control",
8010
8481
  scope: "#/properties/RejectButton",
8011
8482
  options: {
8012
- widget: "IconButton"
8483
+ widget: "Button"
8013
8484
  },
8014
8485
  config: {
8015
8486
  main: {
8016
- icon: "TableEditIcon",
8487
+ startIcon: "EditIcon",
8017
8488
  size: "small",
8018
8489
  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
- }
8490
+ tooltipMessage: "Reject This Record",
8491
+ name: "Edit"
8026
8492
  }
8027
8493
  }
8028
- }
8029
- },
8030
- {
8031
- header: "Delete",
8032
- field: "Reject_Records",
8033
- size: 150,
8034
- type: "action",
8035
- widget: {
8494
+ },
8495
+ {
8036
8496
  type: "Control",
8037
8497
  scope: "#/properties/RejectButton",
8038
8498
  options: {
8039
- widget: "IconButton"
8499
+ widget: "Button"
8040
8500
  },
8041
8501
  config: {
8042
8502
  main: {
8043
- icon: "Bin",
8503
+ startIcon: "Bin",
8044
8504
  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
- }
8505
+ tooltipMessage: "Reject This Record",
8506
+ name: "Delete",
8507
+ size: "small"
8052
8508
  }
8053
8509
  }
8054
- }
8055
- },
8056
- {
8057
- header: "Copy",
8058
- field: "Copy_Component",
8059
- size: 150,
8060
- type: "action",
8061
- widget: {
8510
+ },
8511
+ {
8062
8512
  type: "Control",
8063
- scope: "#/properties/Copy_Component",
8513
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8064
8514
  options: {
8065
- widget: "IconButton"
8515
+ widget: "Button"
8066
8516
  },
8067
8517
  config: {
8068
8518
  main: {
8069
- icon: "FileCopyIcon",
8519
+ startIcon: "FileCopyIcon",
8070
8520
  onClick: "copyPasteElement",
8071
- styleDefault: true,
8072
- disabled: false
8521
+ styleDefault: false,
8522
+ name: "Copy"
8073
8523
  }
8074
8524
  }
8075
8525
  }
8526
+ ]
8527
+ },
8528
+ elements: [
8529
+ {
8530
+ accessorKey: "name",
8531
+ header: "Name",
8532
+ type: "string",
8533
+ size: 300
8534
+ },
8535
+ {
8536
+ accessorKey: "type",
8537
+ header: "Type",
8538
+ type: "string",
8539
+ size: 200
8076
8540
  }
8077
8541
  ]
8078
8542
  }
@@ -8092,9 +8556,6 @@ const ValueTab = {
8092
8556
  {
8093
8557
  type: "Control",
8094
8558
  scope: "#/properties/value",
8095
- options: {
8096
- widget: "Array"
8097
- },
8098
8559
  config: {
8099
8560
  layout: 12,
8100
8561
  main: {
@@ -8165,51 +8626,61 @@ const ValidationSection = {
8165
8626
  {
8166
8627
  type: "Control",
8167
8628
  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
- }
8629
+ config: {
8630
+ layout: 12,
8631
+ main: {
8632
+ label: "Validation",
8633
+ childElementLabel: "Validation"
8634
+ },
8635
+ style: {
8636
+ marginLeft: "-24px",
8637
+ marginBottom: "24px !important",
8638
+ labelStyle: {
8639
+ marginLeft: "24px"
8640
+ },
8641
+ detailsStyle: {
8642
+ marginLeft: "24px"
8643
+ }
8644
+ }
8645
+ },
8646
+ elements: [
8647
+ {
8648
+ type: "Control",
8649
+ scope: "#/properties/validationType",
8650
+ options: {
8651
+ widget: "SelectInputField"
8652
+ },
8653
+ config: {
8654
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8655
+ main: {
8656
+ label: "Validation Type"
8209
8657
  }
8210
- ]
8658
+ }
8659
+ },
8660
+ {
8661
+ type: "Control",
8662
+ scope: "#/properties/validationValue",
8663
+ options: {
8664
+ widget: "InputField"
8665
+ },
8666
+ config: {
8667
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8668
+ main: {
8669
+ label: "Validation Value"
8670
+ }
8671
+ }
8672
+ },
8673
+ {
8674
+ type: "Control",
8675
+ scope: "#/properties/emptyBox",
8676
+ options: {
8677
+ widget: "EmptyBox"
8678
+ },
8679
+ config: {
8680
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8681
+ }
8211
8682
  }
8212
- }
8683
+ ]
8213
8684
  }
8214
8685
  ]
8215
8686
  };
@@ -8232,26 +8703,29 @@ var buildConfig = (FormData) => {
8232
8703
  if (formData.events) {
8233
8704
  delete formData.events;
8234
8705
  }
8706
+ if (formData.tabLabelElements) {
8707
+ component.tabLabelElements = formData.tabLabelElements || [];
8708
+ delete formData.tabLabelElements;
8709
+ }
8235
8710
  component = { ...formData, ...component };
8236
8711
  return component;
8237
8712
  };
8238
- const createLayoutFormat = (config2) => {
8239
- if (_.isEmpty(config2)) {
8240
- return {
8241
- xs: 12,
8242
- sm: 12,
8243
- md: 12,
8244
- lg: 12
8245
- };
8713
+ const createLayoutFormat = (layout, type) => {
8714
+ if (_.isEmpty(layout)) {
8715
+ const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout", "Table"];
8716
+ if (fullLayoutComponents.includes(type)) {
8717
+ return { xs: 12, sm: 12, md: 12, lg: 12 };
8718
+ } else if (type === "Graph") {
8719
+ return { xs: 12, sm: 12, md: 12, lg: 6 };
8720
+ } else if (type === "Button") {
8721
+ return { xs: 4, sm: 2.5, md: 2, lg: 1.5 };
8722
+ } else {
8723
+ return { xs: 6, sm: 6, md: 4, lg: 3 };
8724
+ }
8246
8725
  }
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;
8726
+ let data = {};
8727
+ layout.map((e) => {
8728
+ data[e.key || "xs"] = e.value === null || e.value === void 0 || e.value === "" ? 5.5 : +e.value;
8255
8729
  });
8256
8730
  return data;
8257
8731
  };
@@ -8265,9 +8739,27 @@ const flatObjectValueInArray = (config2 = []) => {
8265
8739
  });
8266
8740
  return data;
8267
8741
  };
8742
+ const createKeyValueMap = (config2 = []) => {
8743
+ return config2.reduce((acc, item) => {
8744
+ if (!item.key)
8745
+ return acc;
8746
+ acc[item.key] = item.value;
8747
+ return acc;
8748
+ }, {});
8749
+ };
8268
8750
  const clearFromSessionStorage = () => {
8269
8751
  sessionStorage.removeItem("pageFormdata");
8270
8752
  };
8753
+ const validateAndShowErrors = (store2) => {
8754
+ if (_.isEmpty(store2.ctx.core.errors))
8755
+ return false;
8756
+ store2.setValidation("ValidateAndShow");
8757
+ store2.setNotify({
8758
+ Fail: true,
8759
+ FailMessage: "Error on Page"
8760
+ });
8761
+ return true;
8762
+ };
8271
8763
  const getNavigationHistory = (config2, path) => {
8272
8764
  if (path) {
8273
8765
  let urlRoutes = config2.name;
@@ -8326,11 +8818,13 @@ async function saveHandler(store2, service2, submitHandler) {
8326
8818
  const saveReturn = await submitHandler(store2, service2, config2);
8327
8819
  navigateHandler(store2, true, "/PageMasterRecords");
8328
8820
  } catch (err) {
8329
- navigateHandler(store2, false);
8821
+ navigateHandler(store2, false, void 0, err.message);
8330
8822
  }
8823
+ } else {
8824
+ navigateHandler(store2, false);
8331
8825
  }
8332
8826
  }
8333
- const navigateHandler = (store2, isSubmitted, pageName) => {
8827
+ const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
8334
8828
  if (isSubmitted) {
8335
8829
  sessionStorage.removeItem("pageFormdata");
8336
8830
  store2.navigate(pageName || -1);
@@ -8342,7 +8836,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
8342
8836
  store2.setValidation("ValidateAndShow");
8343
8837
  store2.setNotify({
8344
8838
  Fail: true,
8345
- FailMessage: "Errors on Page"
8839
+ FailMessage: errorMessage || "Errors on Page"
8346
8840
  });
8347
8841
  }
8348
8842
  };
@@ -8367,34 +8861,46 @@ function okHandler(store2) {
8367
8861
  const sectionLabels = {
8368
8862
  Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8369
8863
  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"],
8864
+ Table: ["Core", "Components", "Properties", "Events", "Style"],
8865
+ LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8866
+ WrapperSection: ["Core", "Components", "Properties", "Style"],
8867
+ HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8868
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8869
+ SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8375
8870
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8376
8871
  UploadFile: ["Core", "Events", "Style", "Validation"],
8377
8872
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8378
8873
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8379
- Box: ["Core", "Events", "Style", "Validation"],
8874
+ Box: ["Core", "Properties", "Events", "Style", "Validation"],
8380
8875
  Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8381
- ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8382
- RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
8876
+ ProgressBarCard: ["Core", "Properties", "Events", "Style"],
8877
+ ProgressBar: ["Core", "Properties", "Events", "Style"],
8878
+ RankCard: ["Core", "Properties", "Events", "Style"],
8879
+ MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8383
8880
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8384
- Timer: ["Core", "Events", "Style", "Validation"],
8385
- Rank: ["Core", "Events", "Style", "Validation"],
8881
+ Timer: ["Core", "Events", "Style"],
8882
+ Rank: ["Core", "Events", "Style"],
8386
8883
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8387
- Array: ["Core", "Components", "Validation"],
8884
+ ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8885
+ Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8388
8886
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8389
8887
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8390
8888
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8391
- PopUp: ["Core", "Components", "Properties", "Style"],
8889
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
8890
+ PopOver: ["Core", "Components", "Properties", "Style"],
8891
+ PdfViewer: ["Core", "Properties", "Style"],
8392
8892
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8393
8893
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8394
8894
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8395
8895
  TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8396
8896
  ColumnGroup: ["Core", "Components"],
8397
- Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8897
+ Thought: ["Core", "Properties", "Events", "Style"],
8898
+ Date: ["Core", "Properties", "Events", "Style", "Validation"],
8899
+ DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
8900
+ Image: ["Core", "Properties", "Events", "Style"],
8901
+ FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
8902
+ Camera: ["Core", "Properties", "Events", "Style", "Validation"],
8903
+ OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
8398
8904
  };
8399
8905
  function refreshPage(type, store2) {
8400
8906
  var _a, _b;
@@ -8407,6 +8913,7 @@ function refreshPage(type, store2) {
8407
8913
  Style: StyleSection,
8408
8914
  Events: EventSection(store2.theme.myTheme),
8409
8915
  Components: TableSection(store2.theme.myTheme),
8916
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8410
8917
  Properties: buildPropertiesSection(type),
8411
8918
  Validation: ValidationSection
8412
8919
  };
@@ -8418,7 +8925,7 @@ function refreshPage(type, store2) {
8418
8925
  const lastDotIndex = path.lastIndexOf(".");
8419
8926
  const parentPath = path.slice(0, lastDotIndex);
8420
8927
  const parentObj = _.get(currentConfig, parentPath);
8421
- if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8928
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
8422
8929
  UiSchema.elements[0].elements[0].elements[4] = {
8423
8930
  type: "Control",
8424
8931
  scope: "#/properties/columnFormat",
@@ -8497,6 +9004,44 @@ function refreshPage(type, store2) {
8497
9004
  }
8498
9005
  }
8499
9006
  };
9007
+ UiSchema.elements[0].elements[0].elements[10] = {
9008
+ type: "Control",
9009
+ scope: "#/properties/dateFormat",
9010
+ options: {
9011
+ widget: "SelectInputField"
9012
+ },
9013
+ config: {
9014
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
9015
+ main: {
9016
+ label: "Date Time Format"
9017
+ }
9018
+ }
9019
+ };
9020
+ UiSchema.elements[0].elements[0].elements[11] = {
9021
+ type: "Control",
9022
+ scope: "#/properties/emptyBox",
9023
+ options: {
9024
+ widget: "EmptyBox"
9025
+ },
9026
+ config: {
9027
+ layout: { xs: 0, sm: 0, md: 0, lg: 6 }
9028
+ }
9029
+ };
9030
+ }
9031
+ if ((parentObj == null ? void 0 : parentObj.type) === "LeaderBoard") {
9032
+ UiSchema.elements[0].elements[0].elements[4] = {
9033
+ type: "Control",
9034
+ scope: "#/properties/columnFormat",
9035
+ options: {
9036
+ widget: "SelectInputField"
9037
+ },
9038
+ config: {
9039
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
9040
+ main: {
9041
+ label: "Column Format"
9042
+ }
9043
+ }
9044
+ };
8500
9045
  }
8501
9046
  if (sessionStorage.getItem("copiedConfig")) {
8502
9047
  this.ElementPathSetter(UiSchema);
@@ -8559,13 +9104,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8559
9104
  },
8560
9105
  editComponents: function() {
8561
9106
  var _a, _b, _c;
9107
+ if (validateAndShowErrors(store2))
9108
+ return;
8562
9109
  const rowId = dynamicData2.path.split(".")[1];
8563
9110
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8564
9111
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8565
9112
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8566
9113
  if (path) {
8567
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
8568
- const finalPath = `${path2}.elements[${rowId}]`;
9114
+ let finalPath = `${path}`;
9115
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9116
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9117
+ } else {
9118
+ finalPath = `${finalPath}.elements[${rowId}]`;
9119
+ }
8569
9120
  store2.searchParams.set("path", finalPath);
8570
9121
  store2.setSearchParams(store2.searchParams);
8571
9122
  this.setPage();
@@ -8577,7 +9128,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8577
9128
  var _a;
8578
9129
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8579
9130
  const rowId = sessionStorage.getItem("rowId");
8580
- store2.formData.elements.splice(rowId, 1);
9131
+ const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9132
+ if (isTabLabelElements) {
9133
+ store2.formData.tabLabelElements.splice(rowId, 1);
9134
+ } else {
9135
+ store2.formData.elements.splice(rowId, 1);
9136
+ }
8581
9137
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
8582
9138
  const data = path ? _.get(response, path) : response;
8583
9139
  store2.setFormdata(data);
@@ -8585,6 +9141,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8585
9141
  store2.updateDialog("popUpComponentSection");
8586
9142
  }
8587
9143
  sessionStorage.removeItem("rowId");
9144
+ sessionStorage.removeItem("isTabLabelElements");
8588
9145
  },
8589
9146
  deleteEvent: function(shouldUpdateDialog = true) {
8590
9147
  var _a;
@@ -8600,18 +9157,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8600
9157
  },
8601
9158
  widgetAddClickHandler: function() {
8602
9159
  var _a;
9160
+ if (validateAndShowErrors(store2))
9161
+ return;
8603
9162
  if (!Array.isArray(store2.formData.elements)) {
8604
9163
  store2.formData.elements = [];
8605
9164
  }
9165
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9166
+ store2.formData.tabLabelElements = [];
9167
+ }
8606
9168
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8607
9169
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8608
- const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9170
+ let finalPath = `${path}`;
9171
+ if (dynamicData2.path.startsWith("tabLabel")) {
9172
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9173
+ } else {
9174
+ finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9175
+ }
8609
9176
  store2.searchParams.set("path", finalPath);
8610
9177
  store2.setSearchParams(store2.searchParams);
8611
9178
  this.setPage();
8612
9179
  },
8613
9180
  eventEditHandler: function() {
8614
9181
  var _a, _b;
9182
+ if (validateAndShowErrors(store2))
9183
+ return;
8615
9184
  const rowId = dynamicData2.path.split(".")[1];
8616
9185
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8617
9186
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
@@ -8621,6 +9190,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8621
9190
  },
8622
9191
  eventAddHandler: function() {
8623
9192
  var _a, _b;
9193
+ if (validateAndShowErrors(store2))
9194
+ return;
8624
9195
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8625
9196
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8626
9197
  if (!Array.isArray(store2.formData.events)) {
@@ -8636,6 +9207,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8636
9207
  deletePopUpComponent: function() {
8637
9208
  const rowId = dynamicData2.path.split(".")[1];
8638
9209
  sessionStorage.setItem("rowId", rowId);
9210
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
8639
9211
  store2.updateDialog("popUpComponentSection");
8640
9212
  },
8641
9213
  deletePopUpEvent: function() {
@@ -8682,9 +9254,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8682
9254
  if (!Array.isArray(store2.formData.events)) {
8683
9255
  store2.formData.events = [];
8684
9256
  }
9257
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9258
+ store2.formData.tabLabelElements = [];
9259
+ }
8685
9260
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
8686
9261
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
8687
- const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
9262
+ const currentLength = {
9263
+ "TabsComponent": formData.tabLabelElements.length,
9264
+ "Component": formData.elements.length,
9265
+ "Events": formData.events.length
9266
+ };
9267
+ const insertElementIndex = currentLength[elementType] || 0;
8688
9268
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8689
9269
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8690
9270
  const notificationMessages = {
@@ -8719,6 +9299,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8719
9299
  if (elementType === "Component") {
8720
9300
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
8721
9301
  }
9302
+ if (elementType === "TabsComponent") {
9303
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9304
+ }
8722
9305
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8723
9306
  },
8724
9307
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -8772,7 +9355,7 @@ var pageMaster = (funcParams) => {
8772
9355
  return formData;
8773
9356
  }
8774
9357
  saveFormdataInSessionStorage(config2);
8775
- return config2;
9358
+ return { ...config2, type: "page" };
8776
9359
  },
8777
9360
  getUiSchema: function() {
8778
9361
  const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
@@ -8794,6 +9377,8 @@ var pageMaster = (funcParams) => {
8794
9377
  },
8795
9378
  onAddClickHandler: function() {
8796
9379
  var _a;
9380
+ if (validateAndShowErrors(store2))
9381
+ return;
8797
9382
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8798
9383
  if (!Array.isArray(store2.formData.elements)) {
8799
9384
  store2.formData.elements = [];
@@ -8817,6 +9402,8 @@ var pageMaster = (funcParams) => {
8817
9402
  },
8818
9403
  eventAddHandler: function() {
8819
9404
  var _a;
9405
+ if (validateAndShowErrors(store2))
9406
+ return;
8820
9407
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8821
9408
  if (!Array.isArray(store2.formData.events)) {
8822
9409
  store2.formData.events = [];
@@ -8827,6 +9414,8 @@ var pageMaster = (funcParams) => {
8827
9414
  },
8828
9415
  editEvent: function() {
8829
9416
  var _a;
9417
+ if (validateAndShowErrors(store2))
9418
+ return;
8830
9419
  const rowId = dynamicData2.path.split(".")[1];
8831
9420
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8832
9421
  saveFormdataInSessionStorage(store2.ctx.core.data);
@@ -8907,11 +9496,16 @@ const EventSchema = {
8907
9496
  { title: "Start", const: "onStart" },
8908
9497
  { title: "Cell Render", const: "onCellRenderer" },
8909
9498
  { title: "Upload", const: "onUpload" },
9499
+ { title: "FileDelete", const: "onFileDelete" },
9500
+ { title: "Download", const: "onDownload" },
8910
9501
  { title: "Back", const: "onBack" },
8911
9502
  { title: "Next", const: "onNext" },
8912
9503
  { title: "Row Movement", const: "onRowMovement" },
8913
9504
  { title: "Download", const: "onDownload" },
8914
- { title: "Fail", const: "Fail" }
9505
+ { title: "Fail", const: "Fail" },
9506
+ { title: "onClose", const: "onClose" },
9507
+ { title: "Key Down", const: "onKeyDown" },
9508
+ { title: "Set Style", const: "setStyle" }
8915
9509
  ]
8916
9510
  },
8917
9511
  Handler: {
@@ -8928,7 +9522,7 @@ const EventSchema = {
8928
9522
  oneOf: [
8929
9523
  { title: "RankProvider", const: "RankProvider" },
8930
9524
  { title: "Download File", const: "downloadFile" },
8931
- { title: "Download", const: "download" }
9525
+ { title: "downloadFileFromUrl", const: "downloadFileFromUrl" }
8932
9526
  ]
8933
9527
  },
8934
9528
  body: {
@@ -9087,93 +9681,70 @@ const EventUiSchema = (theme) => {
9087
9681
  disableAction: true,
9088
9682
  disableSelection: true,
9089
9683
  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
9684
  },
9105
- {
9106
- accessorKey: "Edit_Approve_Records",
9107
- header: "Edit",
9108
- type: "action",
9109
- size: 150,
9110
- widget: {
9685
+ action: [
9686
+ {
9111
9687
  type: "Control",
9112
9688
  scope: "#/properties/Edit_Records",
9113
9689
  options: {
9114
- widget: "IconButton"
9690
+ widget: "Button"
9115
9691
  },
9116
9692
  config: {
9117
9693
  main: {
9118
9694
  size: "small",
9119
- icon: "TableEditIcon",
9695
+ startIcon: "EditIcon",
9120
9696
  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
- }
9697
+ onClick: "editEvent",
9698
+ name: "Edit"
9128
9699
  }
9129
9700
  }
9130
- }
9131
- },
9132
- {
9133
- accessorKey: "Reject_Records",
9134
- header: "Delete",
9135
- type: "action",
9136
- size: 150,
9137
- widget: {
9701
+ },
9702
+ {
9138
9703
  type: "Control",
9139
9704
  scope: "#/properties/RejectButton",
9140
9705
  options: {
9141
- widget: "IconButton"
9706
+ widget: "Button"
9142
9707
  },
9143
9708
  config: {
9144
9709
  main: {
9145
- icon: "Bin",
9710
+ startIcon: "Bin",
9146
9711
  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
- }
9712
+ onClick: "deletePopUpEvent",
9713
+ name: "Delete",
9714
+ size: "small"
9154
9715
  }
9155
9716
  }
9156
- }
9157
- },
9158
- {
9159
- header: "Copy",
9160
- field: "Copy_Event",
9161
- type: "action",
9162
- size: 150,
9163
- widget: {
9717
+ },
9718
+ {
9164
9719
  type: "Control",
9165
9720
  scope: "#/properties/Copy_Event",
9166
9721
  options: {
9167
- widget: "IconButton"
9722
+ widget: "Button"
9168
9723
  },
9169
9724
  config: {
9170
9725
  main: {
9171
- icon: "FileCopyIcon",
9726
+ startIcon: "FileCopyIcon",
9172
9727
  onClick: "copyPasteElement",
9173
- styleDefault: true
9728
+ styleDefault: false,
9729
+ name: "Copy",
9730
+ size: "small"
9174
9731
  }
9175
9732
  }
9176
9733
  }
9734
+ ]
9735
+ },
9736
+ elements: [
9737
+ {
9738
+ accessorKey: "eventType",
9739
+ header: "Event's Type",
9740
+ size: 300,
9741
+ type: "string"
9742
+ },
9743
+ {
9744
+ accessorKey: "Handler",
9745
+ header: "Handler",
9746
+ size: 200,
9747
+ type: "string"
9177
9748
  }
9178
9749
  ]
9179
9750
  }
@@ -9486,9 +10057,6 @@ const APISection = {
9486
10057
  {
9487
10058
  type: "Control",
9488
10059
  scope: "#/properties/headers",
9489
- options: {
9490
- widget: "Array"
9491
- },
9492
10060
  config: {
9493
10061
  layout: 12,
9494
10062
  main: {
@@ -9548,9 +10116,6 @@ const APISection = {
9548
10116
  {
9549
10117
  type: "Control",
9550
10118
  scope: "#/properties/body",
9551
- options: {
9552
- widget: "Array"
9553
- },
9554
10119
  config: {
9555
10120
  layout: 12,
9556
10121
  main: {
@@ -9616,9 +10181,6 @@ const refreshSectionUiSchema = {
9616
10181
  {
9617
10182
  type: "Control",
9618
10183
  scope: "#/properties/refreshElements",
9619
- options: {
9620
- widget: "Array"
9621
- },
9622
10184
  config: {
9623
10185
  layout: 12,
9624
10186
  main: {
@@ -9835,6 +10397,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9835
10397
  },
9836
10398
  addEvent: function() {
9837
10399
  var _a, _b, _c;
10400
+ if (validateAndShowErrors(store2))
10401
+ return;
9838
10402
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9839
10403
  if (!Array.isArray(store2.formData.events)) {
9840
10404
  store2.formData.events = [];
@@ -9847,6 +10411,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9847
10411
  },
9848
10412
  editEvent: function() {
9849
10413
  var _a;
10414
+ if (validateAndShowErrors(store2))
10415
+ return;
9850
10416
  const rowId = dynamicData2.path.split(".")[1];
9851
10417
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9852
10418
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
@@ -9897,22 +10463,33 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9897
10463
  }
9898
10464
  };
9899
10465
  };
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();
10466
+ function downloadFile$1({ data, name }) {
10467
+ var _a;
10468
+ const binary = window.atob(data);
10469
+ const bytes = new Uint8Array(binary.length);
10470
+ for (let i = 0; i < binary.length; i++) {
10471
+ bytes[i] = binary.charCodeAt(i);
10472
+ }
10473
+ const extension = (_a = name.split(".").pop()) == null ? void 0 : _a.toLowerCase();
10474
+ const mimeMap = {
10475
+ pdf: "application/pdf",
10476
+ png: "image/png",
10477
+ jpg: "image/jpeg",
10478
+ jpeg: "image/jpeg",
10479
+ xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
10480
+ csv: "text/csv"
10481
+ };
10482
+ const blob = new Blob([bytes], {
10483
+ type: mimeMap[extension] || "application/octet-stream"
10484
+ });
10485
+ const url = URL.createObjectURL(blob);
10486
+ const a = document.createElement("a");
10487
+ a.href = url;
10488
+ a.download = name;
10489
+ a.click();
9912
10490
  URL.revokeObjectURL(url);
9913
- document.body.removeChild(link);
9914
- };
9915
- const doDownload = (response, service2) => {
10491
+ }
10492
+ const downloadFileFromUrl = (response, service2) => {
9916
10493
  let url = `${service2.defaults.baseURL}/${response.path}`;
9917
10494
  if (response == null ? void 0 : response.params) {
9918
10495
  const keysArray = Object.keys(response == null ? void 0 : response.params);
@@ -9991,7 +10568,6 @@ function executeEventsHandler(params2) {
9991
10568
  params2.componentName,
9992
10569
  params2.config,
9993
10570
  params2.store,
9994
- params2.service,
9995
10571
  params2.formDataHolder
9996
10572
  );
9997
10573
  } else if (params2.config.Handler === "onBackHandler") {
@@ -10063,7 +10639,7 @@ function executeCustomHandler(params) {
10063
10639
  return response;
10064
10640
  }
10065
10641
  }
10066
- function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10642
+ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, formDataHolder) {
10067
10643
  var _a, _b, _c;
10068
10644
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10069
10645
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
@@ -10101,29 +10677,23 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
10101
10677
  });
10102
10678
  }
10103
10679
  } else if (eventConfig.type === "page") {
10104
- if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
10680
+ if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data) && lodash.exports.isObject(handlerResponse.data))) {
10105
10681
  store2.newData = {
10106
10682
  ...store2.newData,
10107
10683
  ...handlerResponse == null ? void 0 : handlerResponse.data
10108
10684
  };
10109
- store2.setFormdata((pre) => {
10110
- return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
10685
+ Object.keys(handlerResponse.data).forEach((e) => {
10686
+ formDataHolder[e] = handlerResponse.data[e];
10111
10687
  });
10112
10688
  }
10113
10689
  } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10114
10690
  if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10115
10691
  formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10116
10692
  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
10693
  }
10121
10694
  } else {
10122
- if (handlerResponse) {
10695
+ if (handlerResponse == null ? void 0 : handlerResponse.data) {
10123
10696
  formDataHolder[componentName] = handlerResponse.data;
10124
- store2.setFormdata((pre) => {
10125
- return { ...pre, ...formDataHolder };
10126
- });
10127
10697
  }
10128
10698
  }
10129
10699
  }
@@ -10261,16 +10831,16 @@ var service = (funcParams) => {
10261
10831
  dynamicData: funcParams.dynamicData,
10262
10832
  userValue: funcParams.userValue,
10263
10833
  service: funcParams.service,
10264
- serviceHolder: { downloadFile: downloadFile$1, download: doDownload, ...funcParams.functionsProvider },
10834
+ serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, ...funcParams.functionsProvider },
10265
10835
  eventGroups,
10266
10836
  functionsProvider: funcParams.functionsProvider,
10267
10837
  formDataHolder
10268
10838
  };
10269
10839
  return {
10270
10840
  setPage: async function() {
10271
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10841
+ var _a, _b, _c;
10272
10842
  funcParams.store.setAdditionalErrors([]);
10273
- funcParams.store.setFormdata({});
10843
+ funcParams.store.setFormdata((funcParams == null ? void 0 : funcParams.initFormData()) || {});
10274
10844
  funcParams.store.setSchema({ type: "object", properties: {} });
10275
10845
  funcParams.store.newData = {};
10276
10846
  eventGroups = {};
@@ -10278,116 +10848,11 @@ var service = (funcParams) => {
10278
10848
  const config2 = pageData == null ? void 0 : pageData.config;
10279
10849
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10280
10850
  const event2 = new CustomEvent("pageNameChanged", {
10281
- detail: { pageName: config2.label }
10851
+ detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10282
10852
  });
10283
10853
  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: {} };
10854
+ (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
10855
+ const schema2 = (_c = pageData == null ? void 0 : pageData.schema) != null ? _c : { type: "object", properties: {} };
10391
10856
  eventGroups = extractEvents(config2);
10392
10857
  executeEventsParameters = {
10393
10858
  config: {},
@@ -10401,7 +10866,16 @@ var service = (funcParams) => {
10401
10866
  eventGroups,
10402
10867
  formDataHolder
10403
10868
  };
10404
- await executeRefreshHandler({
10869
+ funcParams.store.setSchema(
10870
+ (pre) => {
10871
+ return {
10872
+ ...schema2,
10873
+ ...pre,
10874
+ properties: { ...schema2.properties, ...pre.properties }
10875
+ };
10876
+ }
10877
+ );
10878
+ executeRefreshHandler({
10405
10879
  config: {},
10406
10880
  componentName: "",
10407
10881
  store: funcParams.store,
@@ -10410,40 +10884,64 @@ var service = (funcParams) => {
10410
10884
  service: funcParams.service,
10411
10885
  serviceHolder: this,
10412
10886
  eventGroups,
10413
- formDataHolder: {}
10887
+ formDataHolder
10888
+ }).then((e) => {
10889
+ funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10890
+ uiSchema.elements.push(notifyUiSchema);
10891
+ funcParams.store.setUiSchema(uiSchema);
10414
10892
  });
10415
- funcParams.store.setSchema(
10416
- (pre) => {
10417
- return {
10418
- ...schema2,
10419
- ...pre,
10420
- properties: { ...schema2.properties, ...pre.properties }
10421
- };
10893
+ },
10894
+ getStyle: () => {
10895
+ var _a, _b, _c, _d;
10896
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10897
+ if (cloneEventGroup.setStyle) {
10898
+ let finalResponse = {};
10899
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
10900
+ if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
10901
+ for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10902
+ finalResponse = executeEvents({
10903
+ ...executeEventsParameters,
10904
+ config: eventConfig,
10905
+ componentName: path
10906
+ });
10907
+ }
10908
+ return finalResponse;
10422
10909
  }
10423
- );
10424
- uiSchema.elements.push(notifyUiSchema);
10425
- funcParams.store.setUiSchema(uiSchema);
10910
+ }
10911
+ return {};
10426
10912
  },
10427
10913
  onCellRenderer: (cellParams) => {
10428
- var _a, _b, _c, _d;
10429
- if (eventGroups.onCellRenderer) {
10914
+ var _a, _b, _c, _d, _e;
10915
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10916
+ if (cloneEventGroup.onCellRenderer) {
10430
10917
  let finalResponse = {};
10431
10918
  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
- });
10919
+ if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _d[path]) {
10920
+ for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _e[path]) {
10921
+ executeEventsParameters.store.functionParameters = cellParams;
10922
+ finalResponse = executeEvents({
10923
+ ...executeEventsParameters,
10924
+ config: eventConfig,
10925
+ componentName: path
10926
+ });
10927
+ }
10928
+ return finalResponse;
10439
10929
  }
10440
- return finalResponse;
10441
10930
  }
10442
10931
  return {};
10443
10932
  },
10444
10933
  onClick: function() {
10445
10934
  this.callHandler("onClick");
10446
10935
  },
10936
+ onKeyDown: function() {
10937
+ this.callHandler("onKeyDown");
10938
+ },
10939
+ onFileDelete: async function() {
10940
+ this.callHandler("onFileDelete");
10941
+ },
10942
+ onClose: function() {
10943
+ this.callHandler("onClose");
10944
+ },
10447
10945
  onMount: function() {
10448
10946
  this.callHandler("onMount");
10449
10947
  },
@@ -10467,13 +10965,14 @@ var service = (funcParams) => {
10467
10965
  return response == null ? void 0 : response.data;
10468
10966
  },
10469
10967
  onPaginationChange: async function(paginationValues) {
10470
- var _a;
10968
+ var _a, _b;
10471
10969
  const apiBody = [
10472
10970
  { key: "size", value: paginationValues.pagination.pageSize },
10473
10971
  { key: "pageIndex", value: paginationValues.pagination.pageIndex },
10474
10972
  { key: "sorting", value: paginationValues.sorting || [] },
10475
10973
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10476
- { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
10974
+ { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
10975
+ { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
10477
10976
  ];
10478
10977
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10479
10978
  return response == null ? void 0 : response.data;
@@ -10488,28 +10987,40 @@ var service = (funcParams) => {
10488
10987
  return response == null ? void 0 : response.data;
10489
10988
  }
10490
10989
  },
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
- });
10990
+ onChange: function() {
10991
+ if (!eventGroups.onChange)
10992
+ return;
10993
+ const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10994
+ const promises = ChangeEventsKeysArray.flatMap((componentName) => {
10995
+ var _a;
10996
+ if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
10997
+ return [];
10998
+ }
10999
+ return eventGroups.onChange[componentName].map(
11000
+ (eventConfig) => Promise.resolve(
11001
+ executeEvents({
11002
+ ...executeEventsParameters,
11003
+ config: eventConfig,
11004
+ componentName,
11005
+ formDataHolder
11006
+ })
11007
+ ).then(() => {
11008
+ if (!lodash.exports.isEmpty(formDataHolder)) {
11009
+ funcParams.store.setFormdata((pre) => ({
11010
+ ...pre,
11011
+ ...formDataHolder
11012
+ }));
10503
11013
  }
10504
- }
10505
- }));
10506
- }
11014
+ })
11015
+ );
11016
+ });
11017
+ Promise.allSettled(promises);
10507
11018
  },
10508
11019
  callExecuteEvents: async function(paramValue, apiBody, eventType) {
10509
11020
  var _a, _b;
10510
11021
  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]) {
11022
+ const cloneEventGroup = _.cloneDeep(eventGroups);
11023
+ for (const eventConfig of (_a = cloneEventGroup == null ? void 0 : cloneEventGroup[eventType]) == null ? void 0 : _a[paramValue.path]) {
10513
11024
  if (eventConfig.body) {
10514
11025
  eventConfig.body = [
10515
11026
  ...eventConfig.body,
@@ -10533,7 +11044,7 @@ var service = (funcParams) => {
10533
11044
  onBack: async function(functionParameters) {
10534
11045
  var _a, _b;
10535
11046
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10536
- await this.callHandler("onBack", functionParameters);
11047
+ this.callHandler("onBack", functionParameters);
10537
11048
  if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
10538
11049
  functionParameters == null ? void 0 : functionParameters.handleBack();
10539
11050
  }
@@ -10541,7 +11052,7 @@ var service = (funcParams) => {
10541
11052
  onNext: async function(functionParameters) {
10542
11053
  var _a, _b;
10543
11054
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10544
- await this.callHandler("onNext", functionParameters);
11055
+ this.callHandler("onNext", functionParameters);
10545
11056
  if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
10546
11057
  functionParameters == null ? void 0 : functionParameters.handleNext();
10547
11058
  }
@@ -10549,27 +11060,38 @@ var service = (funcParams) => {
10549
11060
  onReset: async function(functionParameters) {
10550
11061
  var _a, _b;
10551
11062
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10552
- await this.callHandler("onReset", functionParameters);
11063
+ this.callHandler("onReset", functionParameters);
10553
11064
  if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
10554
11065
  functionParameters == null ? void 0 : functionParameters.handleReset();
10555
11066
  }
10556
11067
  },
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;
11068
+ callHandler: function(eventType, functionParameters) {
11069
+ var _a, _b;
11070
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".").pop();
11071
+ if (!((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]))
11072
+ return;
11073
+ const promises = eventGroups[eventType][path].map((eventConfig) => {
11074
+ executeEventsParameters.store.functionParameters = functionParameters;
11075
+ return Promise.resolve(
10563
11076
  executeEvents({
10564
11077
  ...executeEventsParameters,
10565
11078
  config: eventConfig,
10566
- componentName: path
10567
- });
10568
- }));
10569
- }
11079
+ componentName: path,
11080
+ formDataHolder
11081
+ })
11082
+ ).then(() => {
11083
+ if (!lodash.exports.isEmpty(formDataHolder)) {
11084
+ funcParams.store.setFormdata((pre) => ({
11085
+ ...pre,
11086
+ ...formDataHolder
11087
+ }));
11088
+ }
11089
+ });
11090
+ });
11091
+ Promise.allSettled(promises);
10570
11092
  },
10571
11093
  downloadFile: downloadFile$1,
10572
- download: doDownload,
11094
+ downloadFileFromUrl,
10573
11095
  ...funcParams.functionsProvider
10574
11096
  };
10575
11097
  };
@@ -10618,8 +11140,11 @@ const buildLeaderBoard = (config2) => {
10618
11140
  if (config2.scoreKey) {
10619
11141
  LeaderBoard.config.main.scoreKey = config2.scoreKey;
10620
11142
  }
11143
+ if (config2.isScoreAmount) {
11144
+ LeaderBoard.config.main.isScoreAmount = config2.isScoreAmount === "YES" ? true : false;
11145
+ }
10621
11146
  if (config2.layout) {
10622
- LeaderBoard.config.layout = createLayoutFormat(config2.layout);
11147
+ LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
10623
11148
  }
10624
11149
  if (config2.style) {
10625
11150
  LeaderBoard.config.style = JSON.parse(config2.style);
@@ -10668,6 +11193,15 @@ const buildProgressBar = (config2, componentScope2) => {
10668
11193
  ProgressBar.config.layout = config2.layout;
10669
11194
  }
10670
11195
  ProgressBar.config.main.heading = config2.label;
11196
+ if (config2.variant) {
11197
+ ProgressBar.config.main.variant = config2.variant;
11198
+ }
11199
+ if (config2.pieArcColors) {
11200
+ ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
11201
+ }
11202
+ if (config2.size) {
11203
+ ProgressBar.config.main.size = Number(config2.size);
11204
+ }
10671
11205
  if (config2.bottomLabel_3) {
10672
11206
  ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
10673
11207
  }
@@ -10694,7 +11228,7 @@ const BarGraph = {
10694
11228
  type: "BarGraph",
10695
11229
  legendLabels: null
10696
11230
  },
10697
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11231
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10698
11232
  }
10699
11233
  };
10700
11234
  const PieGraph = {
@@ -10709,7 +11243,7 @@ const PieGraph = {
10709
11243
  type: "PieGraph",
10710
11244
  legendLabels: null
10711
11245
  },
10712
- style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
11246
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10713
11247
  }
10714
11248
  };
10715
11249
  const LineGraph = {
@@ -10724,7 +11258,7 @@ const LineGraph = {
10724
11258
  type: "LineGraph",
10725
11259
  legendLabels: null
10726
11260
  },
10727
- style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
11261
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10728
11262
  }
10729
11263
  };
10730
11264
  const HorizontalBarGraph = {
@@ -10739,14 +11273,44 @@ const HorizontalBarGraph = {
10739
11273
  type: "HorizontalBarGraph",
10740
11274
  legendLabels: null
10741
11275
  },
10742
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11276
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11277
+ }
11278
+ };
11279
+ const AreaBarGraph = {
11280
+ type: "Control",
11281
+ scope: "#/properties/graph",
11282
+ options: {
11283
+ widget: "Graph"
11284
+ },
11285
+ config: {
11286
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11287
+ main: {
11288
+ type: "AreaGraph",
11289
+ legendLabels: null
11290
+ },
11291
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11292
+ }
11293
+ };
11294
+ const StackBarLineG = {
11295
+ type: "Control",
11296
+ scope: "#/properties/graph",
11297
+ options: {
11298
+ widget: "Graph"
11299
+ },
11300
+ config: {
11301
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11302
+ main: {
11303
+ type: "StackBarLineGraph",
11304
+ legendLabels: null
11305
+ },
11306
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10743
11307
  }
10744
11308
  };
10745
11309
  const buildHorizontalBarGraph = (config2, componentScope2) => {
10746
11310
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
10747
11311
  horizontalBarGraph.scope = componentScope2;
10748
11312
  if (config2.layout) {
10749
- horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
11313
+ horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10750
11314
  }
10751
11315
  horizontalBarGraph.config.main.type = config2.graphType;
10752
11316
  horizontalBarGraph.scope = componentScope2;
@@ -10758,10 +11322,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
10758
11322
  horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10759
11323
  }
10760
11324
  if (config2.legendLabels) {
10761
- horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11325
+ horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11326
+ }
11327
+ if (config2.legendDirection) {
11328
+ horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
10762
11329
  }
10763
11330
  if (config2.pieArcColors) {
10764
- horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11331
+ horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10765
11332
  }
10766
11333
  if (config2.xAxisValue) {
10767
11334
  horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -10780,6 +11347,9 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
10780
11347
  if (config2.leftLabel) {
10781
11348
  horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
10782
11349
  }
11350
+ if (config2.disableLeftLabel) {
11351
+ horizontalBarGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
11352
+ }
10783
11353
  return horizontalBarGraph;
10784
11354
  };
10785
11355
  var SpeedoMeter = {
@@ -10878,7 +11448,7 @@ const buildSpeedoMeter = (config2, componentScope2) => {
10878
11448
  const buildPieGraph = (config2, componentScope2) => {
10879
11449
  const pieGraph = _.cloneDeep(PieGraph);
10880
11450
  if (config2.layout) {
10881
- pieGraph.config.layout = createLayoutFormat(config2.layout);
11451
+ pieGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10882
11452
  }
10883
11453
  if (config2.height) {
10884
11454
  pieGraph.config.style.containerStyle.height = config2.height;
@@ -10886,16 +11456,19 @@ const buildPieGraph = (config2, componentScope2) => {
10886
11456
  if (config2.legendHide) {
10887
11457
  pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10888
11458
  }
11459
+ if (config2.legendDirection) {
11460
+ pieGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
11461
+ }
10889
11462
  pieGraph.scope = componentScope2;
10890
11463
  pieGraph.config.main.header = config2.heading;
10891
11464
  if (config2.legendLabels) {
10892
- pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11465
+ pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
10893
11466
  }
10894
11467
  if (config2.xAxisValue) {
10895
11468
  pieGraph.config.main.xAxisValue = config2.xAxisValue;
10896
11469
  }
10897
11470
  if (config2.pieArcColors) {
10898
- pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11471
+ pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10899
11472
  }
10900
11473
  return pieGraph;
10901
11474
  };
@@ -10903,22 +11476,25 @@ const buildStackbarGraph = (config2, componentScope2) => {
10903
11476
  var _a;
10904
11477
  const barGraph = _.cloneDeep(BarGraph);
10905
11478
  if (config2.layout) {
10906
- barGraph.config.layout = createLayoutFormat(config2.layout);
11479
+ barGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10907
11480
  }
10908
11481
  if (config2.legendHide) {
10909
11482
  barGraph.config.main.legendAvailable = config2.legendHide;
10910
11483
  barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10911
11484
  }
11485
+ if (config2.legendDirection) {
11486
+ barGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
11487
+ }
10912
11488
  if (config2.bottomAxisAngle) {
10913
11489
  barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10914
11490
  }
10915
11491
  barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
10916
11492
  barGraph.config.main.header = config2.heading;
10917
11493
  if (config2.legendLabels) {
10918
- barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11494
+ barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
10919
11495
  }
10920
11496
  if (config2.pieArcColors) {
10921
- barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11497
+ barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10922
11498
  }
10923
11499
  if (config2.xAxisValue) {
10924
11500
  barGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -10937,6 +11513,9 @@ const buildStackbarGraph = (config2, componentScope2) => {
10937
11513
  if (config2.leftLabel) {
10938
11514
  barGraph.config.main.leftLabel = config2.leftLabel;
10939
11515
  }
11516
+ if (config2.disableLeftLabel) {
11517
+ barGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
11518
+ }
10940
11519
  barGraph.scope = componentScope2;
10941
11520
  return barGraph;
10942
11521
  };
@@ -10981,6 +11560,10 @@ const buildTabSection = (config2, componentScope2) => {
10981
11560
  }
10982
11561
  if (config2.sectionLabels) {
10983
11562
  tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
11563
+ tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
11564
+ }
11565
+ if (config2.style) {
11566
+ tab.config.style = JSON.parse(config2.style);
10984
11567
  }
10985
11568
  tab.config.main.id = config2.name;
10986
11569
  return tab;
@@ -10988,10 +11571,13 @@ const buildTabSection = (config2, componentScope2) => {
10988
11571
  var WrapperSection = {
10989
11572
  type: "WrapperLayout",
10990
11573
  config: {
11574
+ layout: 12,
10991
11575
  main: {
10992
- rowSpacing: 3,
10993
11576
  divider: true,
10994
- label: "Default Label"
11577
+ label: "Default Label",
11578
+ rowSpacing: 2,
11579
+ columnSpacing: 2,
11580
+ spacing: 2
10995
11581
  },
10996
11582
  defaultStyle: true
10997
11583
  },
@@ -11003,6 +11589,11 @@ const buildWrapperSection = (config2, componentScope2) => {
11003
11589
  wrapper.config.main.label = config2.label;
11004
11590
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11005
11591
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11592
+ wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11593
+ wrapper.config.main.icon = config2.iconUrl;
11594
+ wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11595
+ wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11596
+ wrapper.config.main.spacing = Number(config2.spacing);
11006
11597
  if (config2.defaultStyle) {
11007
11598
  wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11008
11599
  }
@@ -11010,7 +11601,7 @@ const buildWrapperSection = (config2, componentScope2) => {
11010
11601
  wrapper.config.style = JSON.parse(config2.style);
11011
11602
  }
11012
11603
  if (config2.layout) {
11013
- wrapper.config.layout = createLayoutFormat(config2.layout);
11604
+ wrapper.config.layout = createLayoutFormat(config2.layout, config2.type);
11014
11605
  }
11015
11606
  return wrapper;
11016
11607
  };
@@ -11021,7 +11612,7 @@ var TextInputField = {
11021
11612
  widget: "InputField"
11022
11613
  },
11023
11614
  config: {
11024
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
11615
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11025
11616
  main: {
11026
11617
  label: ""
11027
11618
  },
@@ -11037,15 +11628,30 @@ const buildTextField = (config2, componentScope2) => {
11037
11628
  if (config2.multiline) {
11038
11629
  inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11039
11630
  }
11631
+ if (config2.keyName) {
11632
+ inputField.config.main.keyName = config2.keyName;
11633
+ }
11040
11634
  if (config2.InputFormatingAndMasking) {
11041
11635
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
11042
11636
  }
11043
11637
  if (config2.placeholder) {
11044
11638
  inputField.config.main.placeholder = config2.placeholder;
11045
11639
  }
11640
+ if (config2.variant) {
11641
+ inputField.config.main.variant = config2.variant;
11642
+ }
11046
11643
  if (config2.layout) {
11047
11644
  inputField.config.layout = createLayoutFormat(config2.layout);
11048
11645
  }
11646
+ if (config2.toolTip) {
11647
+ inputField.config.main.toolTip = config2.toolTip;
11648
+ }
11649
+ if (config2.toolTipPosition) {
11650
+ inputField.config.main.toolTipPosition = config2.toolTipPosition;
11651
+ }
11652
+ if (config2.iconName) {
11653
+ inputField.config.main.startIcon = config2.iconName;
11654
+ }
11049
11655
  inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11050
11656
  inputField.scope = componentScope2;
11051
11657
  return inputField;
@@ -11057,12 +11663,13 @@ var SelectInputField = {
11057
11663
  widget: "SelectInputField"
11058
11664
  },
11059
11665
  config: {
11060
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
11666
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11061
11667
  main: {
11062
11668
  label: "",
11063
11669
  type: "text",
11064
11670
  freeSole: false
11065
- }
11671
+ },
11672
+ style: {}
11066
11673
  }
11067
11674
  };
11068
11675
  const buildSelect = (config2, componentScope2) => {
@@ -11077,9 +11684,21 @@ const buildSelect = (config2, componentScope2) => {
11077
11684
  if (config2.lazyLoading) {
11078
11685
  selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11079
11686
  }
11687
+ if (config2.variant) {
11688
+ selectInputField.config.main.variant = config2.variant;
11689
+ }
11080
11690
  if (config2.layout) {
11081
11691
  selectInputField.config.layout = createLayoutFormat(config2.layout);
11082
11692
  }
11693
+ if (config2.toolTip) {
11694
+ selectInputField.config.main.toolTip = config2.toolTip;
11695
+ }
11696
+ if (config2.toolTipPosition) {
11697
+ selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
11698
+ }
11699
+ if (config2.style) {
11700
+ selectInputField.config.style = JSON.parse(config2.style);
11701
+ }
11083
11702
  selectInputField.scope = componentScope2;
11084
11703
  return selectInputField;
11085
11704
  };
@@ -11090,7 +11709,7 @@ var Button = {
11090
11709
  widget: "Button"
11091
11710
  },
11092
11711
  config: {
11093
- layout: 3,
11712
+ layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
11094
11713
  main: {
11095
11714
  name: "Compare",
11096
11715
  variant: "contained",
@@ -11111,7 +11730,7 @@ const buildButton = (config2, componentScope2) => {
11111
11730
  config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
11112
11731
  }
11113
11732
  if (config2.layout) {
11114
- button.config.layout = createLayoutFormat(config2.layout);
11733
+ button.config.layout = createLayoutFormat(config2.layout, config2.type);
11115
11734
  }
11116
11735
  if (config2.tooltipMessage) {
11117
11736
  button.config.main.tooltipMessage = config2.tooltipMessage;
@@ -11146,6 +11765,7 @@ var Table = {
11146
11765
  },
11147
11766
  elements: [],
11148
11767
  config: {
11768
+ layout: 12,
11149
11769
  main: {
11150
11770
  onMount: "onMount",
11151
11771
  enableExpandAll: true,
@@ -11168,6 +11788,9 @@ const buildTable = (config2, componentScope2) => {
11168
11788
  if (config2.lazyLoading) {
11169
11789
  table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11170
11790
  }
11791
+ if (config2.defaultColumnSize) {
11792
+ table.config.main.defaultColumnSize = config2.defaultColumnSize;
11793
+ }
11171
11794
  if (config2.enableRowMovement) {
11172
11795
  table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
11173
11796
  }
@@ -11228,6 +11851,15 @@ const buildTable = (config2, componentScope2) => {
11228
11851
  if (config2.selectKey) {
11229
11852
  table.config.main.selectKey = config2.selectKey;
11230
11853
  }
11854
+ if (config2.maxPageSize) {
11855
+ table.config.main.maxPageSize = config2.maxPageSize;
11856
+ }
11857
+ if (config2.initialDensity) {
11858
+ table.config.main.initialDensity = config2.initialDensity;
11859
+ }
11860
+ if (config2.layout) {
11861
+ table.config.layout = createLayoutFormat(config2.layout);
11862
+ }
11231
11863
  return table;
11232
11864
  };
11233
11865
  const Box = {
@@ -11237,8 +11869,11 @@ const Box = {
11237
11869
  widget: "Box"
11238
11870
  },
11239
11871
  config: {
11240
- layout: 12,
11241
- main: {},
11872
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11873
+ main: {
11874
+ iconName: "",
11875
+ onClick: "onClick"
11876
+ },
11242
11877
  style: {}
11243
11878
  }
11244
11879
  };
@@ -11249,6 +11884,9 @@ const buildLabel = (config2, componentScope2) => {
11249
11884
  if (config2.layout) {
11250
11885
  box.config.layout = createLayoutFormat(config2.layout);
11251
11886
  }
11887
+ if (config2.iconName) {
11888
+ box.config.main.iconName = config2.iconName;
11889
+ }
11252
11890
  if (config2.style) {
11253
11891
  box.config.style = JSON.parse(config2.style);
11254
11892
  }
@@ -11267,7 +11905,7 @@ const uploadFile = {
11267
11905
  "style": {
11268
11906
  "backgroundColor": "none"
11269
11907
  },
11270
- layout: { xs: 6, sm: 6, md: 4, lg: 4 }
11908
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11271
11909
  },
11272
11910
  "options": {
11273
11911
  "widget": "UploadFile"
@@ -11284,7 +11922,7 @@ const downloadFile = {
11284
11922
  "style": {
11285
11923
  "backgroundColor": "none"
11286
11924
  },
11287
- layout: { xs: 12, sm: 6, md: 4, lg: 4 }
11925
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11288
11926
  },
11289
11927
  "options": {
11290
11928
  "widget": "DownloadFile"
@@ -11303,12 +11941,19 @@ const buildUploadFile = (config2, componentScope2) => {
11303
11941
  if (config2.required) {
11304
11942
  UploadFile.config.main.required = true;
11305
11943
  }
11944
+ if (config2.toolTip) {
11945
+ UploadFile.config.main.toolTip = config2.toolTip;
11946
+ }
11947
+ if (config2.toolTipPosition) {
11948
+ UploadFile.config.main.toolTipPosition = config2.toolTipPosition;
11949
+ }
11306
11950
  UploadFile.config.main.errorMessage = config2.errorMessage;
11307
11951
  return UploadFile;
11308
11952
  };
11309
11953
  const buildDownloadFile = (config2, componentScope2) => {
11310
11954
  const DownloadFile = _.cloneDeep(downloadFile);
11311
11955
  DownloadFile.scope = componentScope2;
11956
+ DownloadFile.config.main.label = config2.label;
11312
11957
  if (config2.layout) {
11313
11958
  DownloadFile.config.layout = config2.layout;
11314
11959
  }
@@ -11324,6 +11969,12 @@ const buildDownloadFile = (config2, componentScope2) => {
11324
11969
  if (config2.errorMessage) {
11325
11970
  DownloadFile.config.main.errorMessage = config2.errorMessage;
11326
11971
  }
11972
+ if (config2.toolTip) {
11973
+ DownloadFile.config.main.toolTip = config2.toolTip;
11974
+ }
11975
+ if (config2.toolTipPosition) {
11976
+ DownloadFile.config.main.toolTipPosition = config2.toolTipPosition;
11977
+ }
11327
11978
  return DownloadFile;
11328
11979
  };
11329
11980
  function Card(theme) {
@@ -11331,193 +11982,160 @@ function Card(theme) {
11331
11982
  type: "WrapperLayout",
11332
11983
  config: {
11333
11984
  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"
11985
+ style: {
11986
+ wrapperStyle: {
11987
+ position: "relative",
11988
+ top: "50%",
11989
+ transform: "translateY(-50%)",
11990
+ marginBottom: 0,
11991
+ borderRadius: "12px",
11992
+ fontFamily: "poppins"
11993
+ },
11994
+ componentsBoxStyle: {
11995
+ boxShadow: "0 0 6px 1px rgba(149, 147, 147, 0.25)",
11996
+ flexDirection: "column",
11997
+ overflow: "hidden",
11998
+ flexWrap: "nowrap",
11999
+ width: "100% !important",
12000
+ background: "transparent",
12001
+ borderRadius: "12px",
12002
+ padding: "20px 20px 20px 14px",
12003
+ height: "100%",
12004
+ minHeight: "100px",
12005
+ position: "relative",
12006
+ marginLeft: "0px",
12007
+ "&: hover": {
12008
+ background: `${theme.palette.primary.main}`,
12009
+ color: `${theme.palette.primary.contrastText}`
11357
12010
  }
11358
12011
  }
11359
12012
  },
11360
- layout: { xs: 12, sm: 12, md: 6, lg: 6 }
12013
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 }
11361
12014
  },
11362
12015
  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
12016
  {
11495
12017
  type: "Control",
11496
- scope: "#/properties/programType",
12018
+ scope: "#/properties/initilCardScope",
11497
12019
  config: {
11498
12020
  main: {
11499
12021
  url: "https://www.svgrepo.com/show/500606/loading.svg"
11500
12022
  },
11501
12023
  style: {
11502
12024
  containerStyle: {
11503
- height: "100%",
12025
+ position: "absolute",
12026
+ color: "inherit",
12027
+ top: "4px",
12028
+ right: "4px",
11504
12029
  display: "flex",
11505
- justifyContent: "end"
12030
+ justifyContent: "flex-end",
12031
+ alignItems: "flex-start"
11506
12032
  },
11507
12033
  imageStyle: {
11508
- width: "unset",
11509
- fontSize: "none",
11510
- padding: "4px",
11511
- margin: "0px 0px 0px 8px",
11512
- height: "64px"
12034
+ color: "inherit",
12035
+ width: "32px",
12036
+ height: "32px",
12037
+ padding: "0px",
12038
+ margin: "0px"
11513
12039
  }
11514
- },
11515
- layout: 4
12040
+ }
11516
12041
  },
11517
12042
  options: {
11518
12043
  widget: "Image"
11519
12044
  }
11520
- }
12045
+ },
12046
+ {
12047
+ type: "Control",
12048
+ scope: "#/properties/initilCardScope",
12049
+ config: {
12050
+ main: {
12051
+ heading: "Total Earnings"
12052
+ },
12053
+ style: {
12054
+ color: "inherit",
12055
+ fontSize: "16px",
12056
+ fontWeight: 300,
12057
+ fontFamily: "Poppins",
12058
+ justifyContent: "flex-start",
12059
+ background: "inherit",
12060
+ position: "absolute",
12061
+ top: "8px",
12062
+ left: "12px",
12063
+ display: "flex",
12064
+ maxWidth: "200px",
12065
+ whiteSpace: "nowrap",
12066
+ overflowX: "auto",
12067
+ scrollbarWidth: "none",
12068
+ "&::-webkit-scrollbar": {
12069
+ display: "none"
12070
+ }
12071
+ }
12072
+ },
12073
+ options: {
12074
+ widget: "Box"
12075
+ }
12076
+ },
12077
+ {
12078
+ type: "Control",
12079
+ scope: "#/properties/initilCardScope",
12080
+ config: {
12081
+ main: {
12082
+ heading: "5000.00"
12083
+ },
12084
+ style: {
12085
+ color: "inherit",
12086
+ display: "flex",
12087
+ fontSize: { xs: "22px", md: "40px" },
12088
+ fontWeight: 600,
12089
+ background: "inherit",
12090
+ justifyContent: "flex-start",
12091
+ width: "100%",
12092
+ margin: "0px",
12093
+ marginBottom: "4px",
12094
+ marginTop: "8px",
12095
+ lineHeight: "1",
12096
+ maxWidth: "300px",
12097
+ whiteSpace: "nowrap",
12098
+ overflowX: "auto",
12099
+ overflowY: "hidden",
12100
+ scrollbarWidth: "none",
12101
+ "&::-webkit-scrollbar": {
12102
+ display: "none"
12103
+ }
12104
+ }
12105
+ },
12106
+ options: {
12107
+ widget: "Box"
12108
+ }
12109
+ },
12110
+ {
12111
+ type: "Control",
12112
+ scope: "#/properties/initilCardScope",
12113
+ config: {
12114
+ main: {
12115
+ heading: "Increased from last month"
12116
+ },
12117
+ style: {
12118
+ color: "inherit",
12119
+ fontSize: "12px",
12120
+ fontWeight: "400",
12121
+ justifyContent: "flex-start",
12122
+ background: "inherit",
12123
+ margin: "0px",
12124
+ paddingLeft: "2px",
12125
+ marginBottom: "8px",
12126
+ maxWidth: "200px",
12127
+ whiteSpace: "nowrap",
12128
+ overflowX: "auto",
12129
+ scrollbarWidth: "none",
12130
+ "&::-webkit-scrollbar": {
12131
+ display: "none"
12132
+ }
12133
+ }
12134
+ },
12135
+ options: {
12136
+ widget: "Box"
12137
+ }
12138
+ }
11521
12139
  ]
11522
12140
  };
11523
12141
  return uiSchema;
@@ -11527,9 +12145,10 @@ const buildCard = (config, componentScope, store) => {
11527
12145
  if (config.style) {
11528
12146
  card.config.wrapperStyle = JSON.parse(config.style);
11529
12147
  }
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`;
12148
+ card.elements[0].scope = `#/properties/${config.name}/properties/url`;
12149
+ card.elements[1].scope = `#/properties/${config.name}/properties/label`;
12150
+ card.elements[2].scope = `#/properties/${config.name}/properties/value`;
12151
+ card.elements[3].scope = `#/properties/${config.name}/properties/description`;
11533
12152
  if (config.layout) {
11534
12153
  card.config.layout = createLayoutFormat(config.layout);
11535
12154
  }
@@ -11538,16 +12157,56 @@ const buildCard = (config, componentScope, store) => {
11538
12157
  card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
11539
12158
  }
11540
12159
  if (config.label) {
11541
- card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
12160
+ card.elements[1].config.main.heading = config.label;
11542
12161
  }
11543
12162
  if (config.url) {
11544
- card.elements[1].config.main.url = config.url;
12163
+ card.elements[0].config.main.url = config.url;
11545
12164
  }
11546
12165
  if (config.description) {
11547
- card.elements[0].elements[0].elements[1].config.main.heading = config.description;
12166
+ card.elements[3].config.main.heading = config.description;
11548
12167
  }
11549
12168
  return card;
11550
12169
  };
12170
+ var MetricCard = {
12171
+ type: "Control",
12172
+ scope: "#/properties/metricpath",
12173
+ options: {
12174
+ widget: "MetricCard"
12175
+ },
12176
+ config: {
12177
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
12178
+ main: {}
12179
+ }
12180
+ };
12181
+ const buildMetricCard = (config2, componentScope2, store2) => {
12182
+ const card2 = _.cloneDeep(MetricCard);
12183
+ card2.scope = componentScope2;
12184
+ if (config2.style) {
12185
+ card2.config.style = JSON.parse(config2.style);
12186
+ }
12187
+ if (config2.layout) {
12188
+ card2.config.layout = createLayoutFormat(config2.layout);
12189
+ }
12190
+ if (config2.label) {
12191
+ card2.config.main.label = config2.label;
12192
+ }
12193
+ if (config2.url) {
12194
+ card2.config.main.url = config2.url;
12195
+ }
12196
+ if (config2.description) {
12197
+ card2.config.main.description = config2.description;
12198
+ }
12199
+ if (config2.cardValue) {
12200
+ card2.config.main.cardValue = config2.cardValue;
12201
+ }
12202
+ if (config2.growthRate) {
12203
+ card2.config.main.growthRate = config2.growthRate;
12204
+ }
12205
+ if (config2.color) {
12206
+ card2.config.main.color = config2.color;
12207
+ }
12208
+ return card2;
12209
+ };
11551
12210
  var DateInputField = {
11552
12211
  type: "Control",
11553
12212
  scope: "#/properties/date",
@@ -11555,7 +12214,7 @@ var DateInputField = {
11555
12214
  widget: "DateInputField"
11556
12215
  },
11557
12216
  config: {
11558
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12217
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11559
12218
  main: {
11560
12219
  label: "",
11561
12220
  type: "date"
@@ -11569,7 +12228,7 @@ const DateTime = {
11569
12228
  widget: "DateTimeInputField"
11570
12229
  },
11571
12230
  config: {
11572
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12231
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11573
12232
  main: {
11574
12233
  label: "DateTime",
11575
12234
  type: "date"
@@ -11579,21 +12238,43 @@ const DateTime = {
11579
12238
  const buildDate = (config2, componentScope2) => {
11580
12239
  const dateInputField = _.cloneDeep(DateInputField);
11581
12240
  dateInputField.config.main.label = config2.label;
11582
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11583
12241
  dateInputField.scope = componentScope2;
11584
12242
  if (config2.layout) {
11585
12243
  dateInputField.config.layout = createLayoutFormat(config2.layout);
11586
12244
  }
12245
+ if (config2.variant) {
12246
+ dateInputField.config.main.variant = config2.variant;
12247
+ }
12248
+ if (config2.toolTip) {
12249
+ dateInputField.config.main.toolTip = config2.toolTip;
12250
+ }
12251
+ if (config2.toolTipPosition) {
12252
+ dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
12253
+ }
12254
+ if (config2.style) {
12255
+ dateInputField.config.style = JSON.parse(config2.style);
12256
+ }
11587
12257
  return dateInputField;
11588
12258
  };
11589
12259
  const buildDateTime = (config2, componentScope2) => {
11590
12260
  const dateTimeInputField = _.cloneDeep(DateTime);
11591
12261
  dateTimeInputField.config.main.label = config2.label;
11592
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11593
12262
  dateTimeInputField.scope = componentScope2;
11594
12263
  if (config2.layout) {
11595
12264
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
11596
12265
  }
12266
+ if (config2.variant) {
12267
+ dateTimeInputField.config.main.variant = config2.variant;
12268
+ }
12269
+ if (config2.toolTip) {
12270
+ dateTimeInputField.config.main.toolTip = config2.toolTip;
12271
+ }
12272
+ if (config2.toolTipPosition) {
12273
+ dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
12274
+ }
12275
+ if (config2.style) {
12276
+ dateTimeInputField.config.style = JSON.parse(config2.style);
12277
+ }
11597
12278
  return dateTimeInputField;
11598
12279
  };
11599
12280
  var RankCard = {
@@ -11677,14 +12358,15 @@ var MultipleSelect = {
11677
12358
  widget: "MultipleSelect"
11678
12359
  },
11679
12360
  config: {
11680
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12361
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11681
12362
  main: {
11682
12363
  label: "",
11683
12364
  type: "text",
11684
12365
  multiple: true,
11685
- variant: "standard",
12366
+ variant: "outlined",
11686
12367
  options: []
11687
- }
12368
+ },
12369
+ style: {}
11688
12370
  }
11689
12371
  };
11690
12372
  const buildMultiSelect = (config2, componentScope2) => {
@@ -11699,9 +12381,21 @@ const buildMultiSelect = (config2, componentScope2) => {
11699
12381
  if (config2.value) {
11700
12382
  multipleSelect.config.main.options = config2.value;
11701
12383
  }
12384
+ if (config2.variant) {
12385
+ multipleSelect.config.main.variant = config2.variant;
12386
+ }
11702
12387
  if (config2.lazyLoading) {
11703
12388
  multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11704
12389
  }
12390
+ if (config2.toolTip) {
12391
+ multipleSelect.config.main.toolTip = config2.toolTip;
12392
+ }
12393
+ if (config2.toolTipPosition) {
12394
+ multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
12395
+ }
12396
+ if (config2.style) {
12397
+ multipleSelect.config.style = JSON.parse(config2.style);
12398
+ }
11705
12399
  return multipleSelect;
11706
12400
  };
11707
12401
  const buildBasicUiSchema = (config2) => {
@@ -11721,7 +12415,7 @@ const TextArea = {
11721
12415
  widget: "TextArea"
11722
12416
  },
11723
12417
  config: {
11724
- layout: { xs: 12, sm: 12, md: 5.5, lg: 5.5 },
12418
+ layout: 12,
11725
12419
  style: {
11726
12420
  containerStyle: {
11727
12421
  borderRadius: "20px"
@@ -11745,7 +12439,7 @@ const buildTextArea = (config2, componentScope2) => {
11745
12439
  const textArea = _.cloneDeep(TextArea);
11746
12440
  textArea.config.main.heading = config2.label;
11747
12441
  if (config2.layout) {
11748
- textArea.config.layout = createLayoutFormat(config2.layout);
12442
+ textArea.config.layout = createLayoutFormat(config2.layout, config2.type);
11749
12443
  }
11750
12444
  if (config2.style) {
11751
12445
  textArea.config.style = JSON.parse(config2.style);
@@ -11787,11 +12481,11 @@ const buildSlider = (config2, componentScope2) => {
11787
12481
  const Checkbox = {
11788
12482
  "type": "Control",
11789
12483
  "scope": "#/properties/username1",
11790
- "layout": 12,
11791
12484
  "options": {
11792
12485
  "widget": "CheckBox"
11793
12486
  },
11794
12487
  "config": {
12488
+ "layout": { xs: 6, sm: 6, md: 4, lg: 3 },
11795
12489
  "main": {
11796
12490
  "label": "Welcome to Hyperform"
11797
12491
  }
@@ -11812,7 +12506,7 @@ const buildCheckbox = (config2, componentScope2) => {
11812
12506
  const buildLineGraph = (config2, componentScope2) => {
11813
12507
  const lineGraph = _.cloneDeep(LineGraph);
11814
12508
  if (config2.layout) {
11815
- lineGraph.config.layout = createLayoutFormat(config2.layout);
12509
+ lineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
11816
12510
  }
11817
12511
  lineGraph.config.main.header = config2.heading;
11818
12512
  if (config2.height) {
@@ -11835,17 +12529,23 @@ const buildLineGraph = (config2, componentScope2) => {
11835
12529
  if (config2.leftLabel) {
11836
12530
  lineGraph.config.main.leftLabel = config2.leftLabel;
11837
12531
  }
12532
+ if (config2.disableLeftLabel) {
12533
+ lineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
12534
+ }
11838
12535
  if (config2.legendHide) {
11839
12536
  lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
11840
12537
  }
12538
+ if (config2.legendDirection) {
12539
+ lineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
12540
+ }
11841
12541
  if (config2.bottomAxisAngle) {
11842
12542
  lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
11843
12543
  }
11844
12544
  if (config2.legendLabels) {
11845
- lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
12545
+ lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11846
12546
  }
11847
12547
  if (config2.pieArcColors) {
11848
- lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
12548
+ lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
11849
12549
  }
11850
12550
  lineGraph.scope = componentScope2;
11851
12551
  return lineGraph;
@@ -11857,11 +12557,10 @@ const RadioUiSchema = {
11857
12557
  widget: "RadioInputField"
11858
12558
  },
11859
12559
  config: {
11860
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
12560
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11861
12561
  main: {
11862
12562
  label: "Enabled",
11863
- options: ["YES", "NO"],
11864
- errorMessage: "Enabled is not marked as YES or NO"
12563
+ options: ["YES", "NO"]
11865
12564
  }
11866
12565
  }
11867
12566
  };
@@ -11878,6 +12577,15 @@ const buildRadio = (config2, componentScope2) => {
11878
12577
  if (config2.style) {
11879
12578
  Radio.config.style = JSON.parse(config2.style);
11880
12579
  }
12580
+ if (config2.errorMessage) {
12581
+ Radio.config.main.errorMessage = config2.errorMessage;
12582
+ }
12583
+ if (config2.toolTip) {
12584
+ Radio.config.main.toolTip = config2.toolTip;
12585
+ }
12586
+ if (config2.toolTipPosition) {
12587
+ Radio.config.main.toolTipPosition = config2.toolTipPosition;
12588
+ }
11881
12589
  return Radio;
11882
12590
  };
11883
12591
  var emptyBox = {
@@ -11887,13 +12595,14 @@ var emptyBox = {
11887
12595
  widget: "EmptyBox"
11888
12596
  },
11889
12597
  config: {
11890
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
12598
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11891
12599
  main: {},
11892
12600
  style: {}
11893
12601
  }
11894
12602
  };
11895
12603
  const buildEmptyBox = (config2, componentScope2) => {
11896
12604
  const EmptyBox = _.cloneDeep(emptyBox);
12605
+ EmptyBox.scope = componentScope2;
11897
12606
  if (config2.layout) {
11898
12607
  EmptyBox.config.layout = createLayoutFormat(config2.layout);
11899
12608
  }
@@ -11902,16 +12611,35 @@ const buildEmptyBox = (config2, componentScope2) => {
11902
12611
  const ArrayUiSchema = {
11903
12612
  type: "Control",
11904
12613
  scope: "#/properties/adjustments",
11905
- layout: 11.5,
11906
- options: {
11907
- detail: {
11908
- type: "HorizontalLayout",
11909
- elements: []
11910
- }
12614
+ layout: 12,
12615
+ elements: [],
12616
+ config: {
12617
+ main: {}
11911
12618
  }
11912
12619
  };
11913
12620
  const buildArray = (config2, componentScope2) => {
11914
12621
  const array = _.cloneDeep(ArrayUiSchema);
12622
+ if (config2.allExpanded) {
12623
+ array.config.main.allExpanded = config2.allExpanded === "YES" ? true : false;
12624
+ }
12625
+ if (config2.disableAddButton) {
12626
+ array.config.main.disableAddButton = config2.disableAddButton === "YES" ? true : false;
12627
+ }
12628
+ if (config2.disableExpandAllButton) {
12629
+ array.config.main.disableExpandAllButton = config2.disableExpandAllButton === "YES" ? true : false;
12630
+ }
12631
+ if (config2.disableRowActions) {
12632
+ array.config.main.disableRowActions = config2.disableRowActions === "YES" ? true : false;
12633
+ }
12634
+ if (config2.style) {
12635
+ array.config.style = JSON.parse(config2.style);
12636
+ }
12637
+ array.config.main.rowSpacing = Number(config2.rowSpacing);
12638
+ array.config.main.columnSpacing = Number(config2.columnSpacing);
12639
+ array.config.main.spacing = Number(config2.spacing);
12640
+ array.config.main.childElementLabel = config2.childElementLabel;
12641
+ array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
12642
+ array.config.main.label = config2.label;
11915
12643
  array.scope = componentScope2;
11916
12644
  return array;
11917
12645
  };
@@ -11923,7 +12651,7 @@ const TextField = {
11923
12651
  "widget": "InputField"
11924
12652
  },
11925
12653
  config: {
11926
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
12654
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11927
12655
  main: {
11928
12656
  label: "Adhaar Card",
11929
12657
  formatStrArray: ["9", "9", "9", "9", " ", "9", "9", "9", "9", " ", "X9", "X9", "X9", "X9"],
@@ -11952,7 +12680,7 @@ const PanField = {
11952
12680
  "widget": "InputField"
11953
12681
  },
11954
12682
  config: {
11955
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
12683
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11956
12684
  main: {
11957
12685
  label: "Pan Card",
11958
12686
  placeholder: "AAAAA0000A",
@@ -11980,12 +12708,13 @@ const FileInput = {
11980
12708
  widget: "FileInputField"
11981
12709
  },
11982
12710
  config: {
11983
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12711
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11984
12712
  main: {
11985
12713
  required: false,
11986
12714
  onUpload: "onFileUpload",
11987
12715
  onDownload: "onFileDownload",
11988
- label: "Aggrement Copy"
12716
+ label: "Aggrement Copy",
12717
+ "onClick": "onClick"
11989
12718
  },
11990
12719
  style: {
11991
12720
  backgroundColor: "none"
@@ -12002,6 +12731,19 @@ const buildFileInput = (config2, componentScope2) => {
12002
12731
  if (config2.style) {
12003
12732
  box.config.style = JSON.parse(config2.style);
12004
12733
  }
12734
+ box.config.main.variant = config2.variant;
12735
+ box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12736
+ box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12737
+ box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12738
+ box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
12739
+ box.config.main.description = config2.description;
12740
+ box.config.main.toolTip = config2.toolTip;
12741
+ box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
12742
+ box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
12743
+ if (config2.toolTipPosition) {
12744
+ box.config.main.toolTipPosition = config2.toolTipPosition;
12745
+ }
12746
+ box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
12005
12747
  return box;
12006
12748
  };
12007
12749
  const Stepper = {
@@ -12058,6 +12800,7 @@ const PopUP = {
12058
12800
  },
12059
12801
  main: {
12060
12802
  label: "PopUp",
12803
+ onClose: "onClose",
12061
12804
  fullScreen: false,
12062
12805
  fullWidth: false,
12063
12806
  maxWidth: false,
@@ -12075,10 +12818,10 @@ const buildPopUp = (config2, componentScope2) => {
12075
12818
  popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
12076
12819
  popup.config.main.maxWidth = config2.maxWidth || false;
12077
12820
  if (config2.layout) {
12078
- popup.config.layout = createLayoutFormat(config2.layout);
12821
+ popup.config.layout = createLayoutFormat(config2.layout, config2.type);
12079
12822
  }
12080
12823
  if (config2.style) {
12081
- PopUP.config.style = JSON.parse(config2.style);
12824
+ popup.config.style = JSON.parse(config2.style);
12082
12825
  }
12083
12826
  return popup;
12084
12827
  };
@@ -12115,10 +12858,10 @@ const buildDataGrid = (config2, componentScope2) => {
12115
12858
  DataGrid.config.main.label = config2.label;
12116
12859
  }
12117
12860
  if (config2.layout) {
12118
- DataGrid.config.layout = createLayoutFormat(config2.layout);
12861
+ DataGrid.config.layout = createLayoutFormat(config2.layout, config2.type);
12119
12862
  }
12120
12863
  if (config2.cardLayout) {
12121
- DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
12864
+ DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout, config2.type);
12122
12865
  }
12123
12866
  if (config2.style) {
12124
12867
  DataGrid.config.style = JSON.parse(config2.style);
@@ -12170,6 +12913,7 @@ const TreeMap = {
12170
12913
  "type": "Control",
12171
12914
  "scope": "#/properties/TreeMap2",
12172
12915
  "config": {
12916
+ layout: 12,
12173
12917
  "main": {
12174
12918
  "layout": "cartsian",
12175
12919
  orientation: "vertical",
@@ -12195,7 +12939,7 @@ const buildTreeMap = (config2, componentScope2) => {
12195
12939
  treMap.config.main.header = config2.label;
12196
12940
  }
12197
12941
  if (config2.layout) {
12198
- treMap.config.layout = createLayoutFormat(config2.layout);
12942
+ treMap.config.layout = createLayoutFormat(config2.layout, config2.type);
12199
12943
  }
12200
12944
  if (config2.orientation) {
12201
12945
  treMap.config.main.orientation = config2.orientation;
@@ -12238,7 +12982,7 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12238
12982
  thought.config.main.thought = `${config2.thought}`;
12239
12983
  }
12240
12984
  if (config2.layout) {
12241
- thought.config.layout = createLayoutFormat(config2.layout);
12985
+ thought.config.layout = createLayoutFormat(config2.layout, config2.type);
12242
12986
  }
12243
12987
  if (config2.label) {
12244
12988
  thought.config.main.label = config2.label;
@@ -12248,124 +12992,441 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12248
12992
  }
12249
12993
  return thought;
12250
12994
  };
12995
+ var horizontalLayout = {
12996
+ type: "HorizontalLayout",
12997
+ config: {
12998
+ layout: 12,
12999
+ main: {
13000
+ rowSpacing: 3,
13001
+ divider: false
13002
+ },
13003
+ defaultStyle: true
13004
+ },
13005
+ elements: []
13006
+ };
13007
+ const buildHorizontalLayout = (config2, componentScope2) => {
13008
+ const horizontal = _.cloneDeep(horizontalLayout);
13009
+ horizontal.scope = componentScope2;
13010
+ if (config2.style) {
13011
+ horizontal.config.style = JSON.parse(config2.style);
13012
+ }
13013
+ if (config2.layout) {
13014
+ horizontal.config.layout = createLayoutFormat(config2.layout, config2.type);
13015
+ }
13016
+ return horizontal;
13017
+ };
13018
+ const imageUiSchema = {
13019
+ type: "Control",
13020
+ scope: "#/properties/Logo",
13021
+ options: {
13022
+ widget: "Image"
13023
+ },
13024
+ config: {
13025
+ layout: 3,
13026
+ main: {
13027
+ url: "",
13028
+ onClick: "onClick"
13029
+ },
13030
+ style: {}
13031
+ }
13032
+ };
13033
+ const buildImage = (config2, componentScope2) => {
13034
+ const image = _.cloneDeep(imageUiSchema);
13035
+ image.scope = componentScope2;
13036
+ image.config.main.url = config2.imageUrl;
13037
+ if (config2.layout) {
13038
+ image.config.layout = createLayoutFormat(config2.layout);
13039
+ }
13040
+ if (config2.style) {
13041
+ image.config.style = JSON.parse(config2.style);
13042
+ }
13043
+ if (config2.height) {
13044
+ image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
13045
+ }
13046
+ image.config.main.toolTip = config2.toolTip;
13047
+ image.config.main.toolTipPosition = config2.toolTipPosition;
13048
+ return image;
13049
+ };
13050
+ const buildAreaGraph = (config2, componentScope2) => {
13051
+ const AreaGraph = _.cloneDeep(AreaBarGraph);
13052
+ AreaGraph.scope = componentScope2;
13053
+ if (config2.layout) {
13054
+ AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13055
+ }
13056
+ AreaGraph.config.main.type = config2.graphType;
13057
+ AreaGraph.scope = componentScope2;
13058
+ AreaGraph.config.main.header = config2.heading;
13059
+ AreaGraph.config.main.subHeader = config2.subHeader;
13060
+ if (config2.legendHide) {
13061
+ AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13062
+ }
13063
+ if (config2.bottomAxisAngle) {
13064
+ AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13065
+ }
13066
+ if (config2.legendLabels) {
13067
+ AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13068
+ }
13069
+ if (config2.legendDirection) {
13070
+ AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13071
+ }
13072
+ if (config2.height) {
13073
+ AreaGraph.config.style.containerStyle.height = config2.height;
13074
+ }
13075
+ if (config2.pieArcColors) {
13076
+ AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13077
+ }
13078
+ if (config2.xAxisFormatType) {
13079
+ AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
13080
+ }
13081
+ if (config2.yAxisTickCount) {
13082
+ AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13083
+ }
13084
+ if (config2.xAxisTickCount) {
13085
+ AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13086
+ }
13087
+ if (config2.xAxisValue) {
13088
+ AreaGraph.config.main.xAxisValue = config2.xAxisValue;
13089
+ }
13090
+ if (config2.xAxisType) {
13091
+ AreaGraph.config.main.xAxisType = config2.xAxisType;
13092
+ }
13093
+ if (config2.bottomLabel) {
13094
+ AreaGraph.config.main.bottomLabel = config2.bottomLabel;
13095
+ }
13096
+ if (config2.leftLabel) {
13097
+ AreaGraph.config.main.leftLabel = config2.leftLabel;
13098
+ }
13099
+ if (config2.disableLeftLabel) {
13100
+ AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13101
+ }
13102
+ if (config2.leftMargin) {
13103
+ AreaGraph.config.style.labelStyle.margin = {
13104
+ left: config2.leftMargin
13105
+ };
13106
+ }
13107
+ return AreaGraph;
13108
+ };
13109
+ const buildStackBarLineGraph = (config2, componentScope2) => {
13110
+ const StackBarLineGraph = _.cloneDeep(StackBarLineG);
13111
+ StackBarLineGraph.scope = componentScope2;
13112
+ if (config2.layout) {
13113
+ StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13114
+ }
13115
+ StackBarLineGraph.config.main.type = config2.graphType;
13116
+ StackBarLineGraph.scope = componentScope2;
13117
+ StackBarLineGraph.config.main.header = config2.heading;
13118
+ StackBarLineGraph.config.main.subHeader = config2.subHeader;
13119
+ if (config2.legendHide) {
13120
+ StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13121
+ }
13122
+ if (config2.bottomAxisAngle) {
13123
+ StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13124
+ }
13125
+ if (config2.legendLabels) {
13126
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13127
+ }
13128
+ if (config2.legendDirection) {
13129
+ StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13130
+ }
13131
+ if (config2.height) {
13132
+ StackBarLineGraph.config.style.containerStyle.height = config2.height;
13133
+ }
13134
+ if (config2.pieArcColors) {
13135
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13136
+ }
13137
+ if (config2.yAxisTickCount) {
13138
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13139
+ }
13140
+ if (config2.xAxisTickCount) {
13141
+ StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13142
+ }
13143
+ if (config2.xAxisValue) {
13144
+ StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13145
+ }
13146
+ if (config2.xAxisType) {
13147
+ StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
13148
+ }
13149
+ if (config2.bottomLabel) {
13150
+ StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
13151
+ }
13152
+ if (config2.leftLabel) {
13153
+ StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
13154
+ }
13155
+ if (config2.rightLabel) {
13156
+ StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
13157
+ }
13158
+ if (config2.disableLeftLabel) {
13159
+ StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13160
+ }
13161
+ if (config2.growthRateKey) {
13162
+ StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
13163
+ }
13164
+ if (config2.tooltipUnit) {
13165
+ StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
13166
+ }
13167
+ if (config2.leftMargin) {
13168
+ StackBarLineGraph.config.style.labelStyle.margin = {
13169
+ left: config2.leftMargin
13170
+ };
13171
+ }
13172
+ return StackBarLineGraph;
13173
+ };
13174
+ const cameraUiSchema = {
13175
+ type: "Control",
13176
+ scope: "#/properties/camera",
13177
+ options: {
13178
+ widget: "Camera"
13179
+ },
13180
+ config: {
13181
+ main: {
13182
+ label: "Upload Photo",
13183
+ multiUplaod: false,
13184
+ onUpload: "onFileUpload"
13185
+ }
13186
+ }
13187
+ };
13188
+ const buildCamera = (config2, componentScope2) => {
13189
+ const camera = _.cloneDeep(cameraUiSchema);
13190
+ camera.scope = componentScope2;
13191
+ if (config2.iconName) {
13192
+ camera.config.main.startIcon = config2.iconName;
13193
+ }
13194
+ if (config2.layout) {
13195
+ camera.config.layout = createLayoutFormat(config2.layout, config2.type);
13196
+ }
13197
+ if (config2.tooltipMessage) {
13198
+ camera.config.main.tooltipMessage = config2.tooltipMessage;
13199
+ }
13200
+ camera.config.main.multiUplaod = config2.multiUplaod === "YES" ? true : false;
13201
+ if (config2.style) {
13202
+ camera.config.style = JSON.parse(config2.style);
13203
+ }
13204
+ if (config2.size) {
13205
+ camera.config.main.size = config2.size;
13206
+ }
13207
+ if (config2.variant) {
13208
+ camera.config.main.variant = config2.variant;
13209
+ }
13210
+ if (config2.color) {
13211
+ camera.config.main.color = config2.color;
13212
+ }
13213
+ if (config2.label) {
13214
+ camera.config.main.label = config2.label;
13215
+ }
13216
+ return camera;
13217
+ };
13218
+ var ButtonGroup = {
13219
+ type: "Control",
13220
+ scope: "#/properties/buttonGroup",
13221
+ options: {
13222
+ widget: "ButtonGroup"
13223
+ },
13224
+ config: {
13225
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
13226
+ main: {
13227
+ variant: "contained",
13228
+ styleDefault: false,
13229
+ size: "small"
13230
+ },
13231
+ style: {}
13232
+ }
13233
+ };
13234
+ const buildButtonGroup = (config2, componentScope2) => {
13235
+ const buttonGroup = _.cloneDeep(ButtonGroup);
13236
+ if (config2.layout) {
13237
+ buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
13238
+ }
13239
+ buttonGroup.scope = componentScope2;
13240
+ if (config2.multiSelect) {
13241
+ buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
13242
+ }
13243
+ if (config2.style) {
13244
+ buttonGroup.config.style = JSON.parse(config2.style);
13245
+ }
13246
+ if (config2.size) {
13247
+ buttonGroup.config.main.size = config2.size;
13248
+ }
13249
+ if (config2.color) {
13250
+ buttonGroup.config.main.color = config2.color;
13251
+ }
13252
+ return buttonGroup;
13253
+ };
13254
+ const PopOver = {
13255
+ type: "Control",
13256
+ scope: "#/properties/text",
13257
+ options: {
13258
+ widget: "Popover"
13259
+ },
13260
+ config: {
13261
+ layout: {
13262
+ xs: 12,
13263
+ sm: 12,
13264
+ md: 12,
13265
+ lg: 12
13266
+ },
13267
+ main: {
13268
+ label: "PopOver"
13269
+ },
13270
+ style: {}
13271
+ }
13272
+ };
13273
+ const buildPopOver = (config2, componentScope2) => {
13274
+ const popOver = _.cloneDeep(PopOver);
13275
+ popOver.scope = componentScope2;
13276
+ popOver.config.main.positionVertical = config2.positionVertical;
13277
+ popOver.config.main.positionHorizontal = config2.positionHorizontal;
13278
+ popOver.config.main.contentVertical = config2.contentVertical;
13279
+ popOver.config.main.contentHorizontal = config2.contentHorizontal;
13280
+ popOver.config.main.width = config2.width;
13281
+ popOver.config.main.gap = config2.gap;
13282
+ if (config2.layout) {
13283
+ popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
13284
+ }
13285
+ if (config2.style) {
13286
+ popOver.config.style = JSON.parse(config2.style);
13287
+ }
13288
+ return popOver;
13289
+ };
13290
+ const OTPSchema = {
13291
+ type: "Control",
13292
+ scope: "#/properties/OTPInput",
13293
+ options: {
13294
+ widget: "OTPInput"
13295
+ },
13296
+ config: {
13297
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
13298
+ main: {
13299
+ seperator: "",
13300
+ length: 4,
13301
+ type: "number",
13302
+ masking: true
13303
+ }
13304
+ }
13305
+ };
13306
+ const buildOTP_Input = (config2, componentScope2) => {
13307
+ const OTP = _.cloneDeep(OTPSchema);
13308
+ OTP.scope = componentScope2;
13309
+ if (config2.layout) {
13310
+ OTP.config.layout = createLayoutFormat(config2.layout);
13311
+ }
13312
+ if (config2.style) {
13313
+ OTP.config.style = JSON.parse(config2.style);
13314
+ }
13315
+ if (config2.errorMessage) {
13316
+ OTP.config.main.errorMessage = config2.errorMessage;
13317
+ }
13318
+ if (config2.toolTip) {
13319
+ OTP.config.main.toolTip = config2.toolTip;
13320
+ }
13321
+ OTP.config.main.masking = config2.masking === "YES" ? true : false;
13322
+ OTP.config.main.type = config2.OTP_Format;
13323
+ OTP.config.main.seperator = config2.seperator;
13324
+ OTP.config.main.length = +config2.length;
13325
+ return OTP;
13326
+ };
13327
+ var pdfViewer = {
13328
+ type: "Control",
13329
+ scope: "#/properties/pdfviewer",
13330
+ options: {
13331
+ widget: "PdfViewer"
13332
+ },
13333
+ config: {
13334
+ layout: {
13335
+ xs: 12,
13336
+ sm: 12,
13337
+ md: 12,
13338
+ lg: 12
13339
+ },
13340
+ main: {
13341
+ title: "PDF"
13342
+ }
13343
+ }
13344
+ };
13345
+ const buildPdfViewer = (config2, componentScope2) => {
13346
+ const PdfViewer = _.cloneDeep(pdfViewer);
13347
+ PdfViewer.scope = componentScope2;
13348
+ PdfViewer.config.main.scale = config2.scale;
13349
+ if (config2.layout) {
13350
+ PdfViewer.config.layout = createLayoutFormat(config2.layout);
13351
+ }
13352
+ if (config2.style) {
13353
+ PdfViewer.config.style = JSON.parse(config2.style);
13354
+ }
13355
+ return PdfViewer;
13356
+ };
12251
13357
  let schema = {
12252
13358
  type: "object",
12253
13359
  properties: {},
12254
13360
  required: []
12255
13361
  };
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] = {
13362
+ function buildSchemaFromConfig(config2, parentSchema) {
13363
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
13364
+ if (config2.elements) {
13365
+ if (config2.type === "Array") {
13366
+ (_a = parentSchema.properties) != null ? _a : parentSchema.properties = {};
13367
+ (_d = (_b = parentSchema.properties)[_c = config2.name]) != null ? _d : _b[_c] = {
13368
+ type: "array",
12288
13369
  items: {
12289
- oneOf: configObj.value.map((e) => {
12290
- return { const: e.value, title: e.label };
12291
- })
13370
+ type: "object",
13371
+ properties: {},
13372
+ required: []
12292
13373
  }
12293
13374
  };
13375
+ const arrayItemSchema = parentSchema.properties[config2.name].items;
13376
+ (_e = config2.elements) == null ? void 0 : _e.forEach(
13377
+ (child) => buildSchemaFromConfig(child, arrayItemSchema)
13378
+ );
13379
+ return;
13380
+ } else {
13381
+ (_f = config2.elements) == null ? void 0 : _f.forEach(
13382
+ (child) => buildSchemaFromConfig(child, parentSchema)
13383
+ );
13384
+ return;
12294
13385
  }
12295
13386
  }
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
- });
13387
+ (_g = parentSchema.properties) != null ? _g : parentSchema.properties = {};
13388
+ (_j = (_h = parentSchema.properties)[_i = config2.name]) != null ? _j : _h[_i] = {};
13389
+ const fieldSchema = parentSchema.properties[config2.name];
13390
+ (_k = config2.validation) == null ? void 0 : _k.forEach((v) => {
13391
+ var _a2;
13392
+ if (v.validationType === "required") {
13393
+ (_a2 = parentSchema.required) != null ? _a2 : parentSchema.required = [];
13394
+ parentSchema.required.push(config2.name);
13395
+ } else if (v.validationType === "readOnly") {
13396
+ fieldSchema.type = "string";
13397
+ fieldSchema.disabled = true;
12357
13398
  } else {
12358
- config2.elements.map((e, elemInd) => {
12359
- buildSchema(e);
12360
- });
13399
+ fieldSchema.type = "string";
13400
+ fieldSchema[v.validationType] = isNaN(v.validationValue) ? v.validationValue : Number(v.validationValue);
12361
13401
  }
13402
+ });
13403
+ if (config2.type === "Select" && ((_l = config2.value) == null ? void 0 : _l.length)) {
13404
+ fieldSchema.oneOf = config2.value.map((v) => ({
13405
+ const: v.value,
13406
+ title: v.label
13407
+ }));
12362
13408
  }
13409
+ if (config2.type === "MultipleSelect" && ((_m = config2.value) == null ? void 0 : _m.length)) {
13410
+ fieldSchema.type = "array";
13411
+ fieldSchema.items = {
13412
+ oneOf: config2.value.map((v) => ({
13413
+ const: v.value,
13414
+ title: v.label
13415
+ }))
13416
+ };
13417
+ }
13418
+ }
13419
+ const buildSchema = (config2) => {
13420
+ buildSchemaFromConfig(config2, schema);
12363
13421
  return schema;
12364
13422
  };
12365
13423
  const buildUiSchema = (config2, store2) => {
12366
13424
  let elements = {};
12367
13425
  const componentScope2 = `#/properties/${config2.name}`;
12368
13426
  switch (config2.type) {
13427
+ case "OTP_Input":
13428
+ elements = buildOTP_Input(config2, componentScope2);
13429
+ break;
12369
13430
  case "TreeMap":
12370
13431
  elements = buildTreeMap(config2, componentScope2);
12371
13432
  break;
@@ -12384,6 +13445,9 @@ const buildUiSchema = (config2, store2) => {
12384
13445
  case "PopUp":
12385
13446
  elements = buildPopUp(config2, componentScope2);
12386
13447
  break;
13448
+ case "PopOver":
13449
+ elements = buildPopOver(config2, componentScope2);
13450
+ break;
12387
13451
  case "FileInput":
12388
13452
  elements = buildFileInput(config2, componentScope2);
12389
13453
  break;
@@ -12402,6 +13466,9 @@ const buildUiSchema = (config2, store2) => {
12402
13466
  case "WrapperSection":
12403
13467
  elements = buildWrapperSection(config2, componentScope2);
12404
13468
  break;
13469
+ case "HorizontalLayout":
13470
+ elements = buildHorizontalLayout(config2, componentScope2);
13471
+ break;
12405
13472
  case "Text":
12406
13473
  elements = buildTextField(config2, componentScope2);
12407
13474
  break;
@@ -12420,6 +13487,9 @@ const buildUiSchema = (config2, store2) => {
12420
13487
  case "Button":
12421
13488
  elements = buildButton(config2, componentScope2);
12422
13489
  break;
13490
+ case "ButtonGroup":
13491
+ elements = buildButtonGroup(config2, componentScope2);
13492
+ break;
12423
13493
  case "Table":
12424
13494
  elements = buildTable(config2, componentScope2);
12425
13495
  break;
@@ -12439,11 +13509,14 @@ const buildUiSchema = (config2, store2) => {
12439
13509
  elements = buildDownloadFile(config2, componentScope2);
12440
13510
  break;
12441
13511
  case "EmptyBox":
12442
- elements = buildEmptyBox(config2);
13512
+ elements = buildEmptyBox(config2, componentScope2);
12443
13513
  break;
12444
13514
  case "card":
12445
13515
  elements = buildCard(config2, componentScope2, store2);
12446
13516
  break;
13517
+ case "MetricCard":
13518
+ elements = buildMetricCard(config2, componentScope2);
13519
+ break;
12447
13520
  case "Graph":
12448
13521
  switch (config2.graphType) {
12449
13522
  case "BarGraph":
@@ -12460,6 +13533,12 @@ const buildUiSchema = (config2, store2) => {
12460
13533
  case "HorizontalStackBarGraph":
12461
13534
  elements = buildHorizontalBarGraph(config2, componentScope2);
12462
13535
  break;
13536
+ case "AreaGraph":
13537
+ elements = buildAreaGraph(config2, componentScope2);
13538
+ break;
13539
+ case "StackBarLineGraph":
13540
+ elements = buildStackBarLineGraph(config2, componentScope2);
13541
+ break;
12463
13542
  default:
12464
13543
  elements = buildStackbarGraph(config2, componentScope2);
12465
13544
  break;
@@ -12502,6 +13581,15 @@ const buildUiSchema = (config2, store2) => {
12502
13581
  case "Thought":
12503
13582
  elements = buildThoughtOfTheDay(config2, componentScope2);
12504
13583
  break;
13584
+ case "Image":
13585
+ elements = buildImage(config2, componentScope2);
13586
+ break;
13587
+ case "Camera":
13588
+ elements = buildCamera(config2, componentScope2);
13589
+ break;
13590
+ case "PdfViewer":
13591
+ elements = buildPdfViewer(config2, componentScope2);
13592
+ break;
12505
13593
  default:
12506
13594
  schema = {
12507
13595
  type: "object",
@@ -12512,7 +13600,17 @@ const buildUiSchema = (config2, store2) => {
12512
13600
  }
12513
13601
  if (config2 == null ? void 0 : config2.elements) {
12514
13602
  if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
12515
- return elements;
13603
+ const rowElements = [];
13604
+ config2.elements.map((cellElem) => {
13605
+ const commonProperties = {
13606
+ accessorKey: cellElem.name,
13607
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
13608
+ header: cellElem.label || cellElem.name,
13609
+ columnKey: cellElem.columnKey
13610
+ };
13611
+ rowElements.push({ ...commonProperties });
13612
+ });
13613
+ elements.elements = rowElements;
12516
13614
  } else if (config2.type == "ColumnGroup") {
12517
13615
  const sizeMap = {};
12518
13616
  if (config2.sizeHolder) {
@@ -12521,13 +13619,27 @@ const buildUiSchema = (config2, store2) => {
12521
13619
  });
12522
13620
  }
12523
13621
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12524
- return {
13622
+ const commonProperties = {
12525
13623
  accessorKey: cellElem.name,
13624
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12526
13625
  header: cellElem.label || cellElem.name,
12527
13626
  size: sizeMap[cellElem.name] || 180,
12528
- type: cellElem.columnFormat,
12529
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
13627
+ enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
13628
+ columnFilterModeOptions: cellElem.filteringOptions,
13629
+ enableSorting: cellElem.enableSorting === "No" ? false : true,
13630
+ columnKey: cellElem.columnKey,
13631
+ dateFormat: cellElem.dateFormat
12530
13632
  };
13633
+ if (cellElem.type) {
13634
+ const tableElem = {
13635
+ widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
13636
+ ...commonProperties,
13637
+ ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
13638
+ };
13639
+ return tableElem;
13640
+ } else {
13641
+ return { ...commonProperties };
13642
+ }
12531
13643
  });
12532
13644
  } else if (config2.type == "Table") {
12533
13645
  const sizeMap = {};
@@ -12542,13 +13654,14 @@ const buildUiSchema = (config2, store2) => {
12542
13654
  config2.elements.filter((cellElem, elemInd) => {
12543
13655
  const commonProperties = {
12544
13656
  accessorKey: cellElem.name,
12545
- type: cellElem.columnFormat,
13657
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12546
13658
  header: cellElem.label || cellElem.name,
12547
13659
  size: sizeMap[cellElem.name] || 180,
12548
13660
  enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12549
13661
  columnFilterModeOptions: cellElem.filteringOptions,
12550
13662
  enableSorting: cellElem.enableSorting === "No" ? false : true,
12551
- columnKey: cellElem.columnKey
13663
+ columnKey: cellElem.columnKey,
13664
+ dateFormat: cellElem.dateFormat
12552
13665
  };
12553
13666
  if (cellElem.type) {
12554
13667
  if (cellElem.elementType == "action") {
@@ -12563,8 +13676,8 @@ const buildUiSchema = (config2, store2) => {
12563
13676
  }
12564
13677
  const tableElem = {
12565
13678
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12566
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12567
- ...commonProperties
13679
+ ...commonProperties,
13680
+ ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
12568
13681
  };
12569
13682
  rowElements.push(tableElem);
12570
13683
  } else {
@@ -12574,17 +13687,18 @@ const buildUiSchema = (config2, store2) => {
12574
13687
  elements.elements = rowElements;
12575
13688
  elements.config.action = tableActionElement;
12576
13689
  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
13690
  } else {
12582
13691
  elements.elements = config2.elements.map((e, elemInd) => {
12583
13692
  return buildUiSchema(e, store2);
12584
13693
  });
12585
13694
  }
12586
13695
  }
13696
+ if (config2.tabLabelElements) {
13697
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13698
+ return buildUiSchema(e, store2);
13699
+ });
13700
+ }
12587
13701
  return elements;
12588
13702
  };
12589
- export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
13703
+ export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
12590
13704
  //# sourceMappingURL=impaktapps-ui-builder.es.js.map