impaktapps-ui-builder 1.0.3 → 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 +2278 -1161
  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 +24 -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 +398 -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 +123 -165
@@ -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,12 +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
- emptyBox$1("LazyLoadingTableEmpty2"),
8269
+ getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
8270
+ getInputField("defaultColumnSize", "Default Column Size"),
8271
+ ,
7846
8272
  emptyBox$1("LazyLoadingTableEmpty3")
7847
8273
  ]),
7848
8274
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
@@ -7852,6 +8278,10 @@ const buildPropertiesSection = function(type) {
7852
8278
  break;
7853
8279
  case "Radio":
7854
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 }),
7855
8285
  getArrayControl("sectionLabels", "label", "Options Of Radio")
7856
8286
  ];
7857
8287
  break;
@@ -7859,14 +8289,40 @@ const buildPropertiesSection = function(type) {
7859
8289
  uiSchema.elements = [
7860
8290
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7861
8291
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
7862
- 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 })
7863
8296
  ];
7864
8297
  break;
7865
8298
  case "MultipleSelect":
7866
8299
  uiSchema.elements = [
7867
8300
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7868
- emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
7869
- 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 })
7870
8326
  ];
7871
8327
  break;
7872
8328
  case "Thought":
@@ -7874,16 +8330,50 @@ const buildPropertiesSection = function(type) {
7874
8330
  getTextArea("thought", "Today's thought", false)
7875
8331
  ];
7876
8332
  break;
7877
- }
7878
- return uiSchema;
7879
- };
7880
- const StyleSection = {
7881
- type: "WrapperLayout",
7882
- config: {
7883
- main: {
7884
- label: " ",
7885
- gap: "8px"
7886
- }
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
+ }
7887
8377
  },
7888
8378
  elements: [
7889
8379
  {
@@ -7911,13 +8401,13 @@ const StyleSection = {
7911
8401
  }
7912
8402
  ]
7913
8403
  };
7914
- const TableSection = (theme) => {
8404
+ const TableSection = (theme, scopeName = "elements") => {
7915
8405
  const uiSchema = {
7916
8406
  type: "HorizontalLayout",
7917
8407
  elements: [
7918
8408
  {
7919
8409
  type: "Control",
7920
- scope: "#/properties/elements",
8410
+ scope: `#/properties/${scopeName}`,
7921
8411
  options: {
7922
8412
  widget: "Table"
7923
8413
  },
@@ -7928,7 +8418,7 @@ const TableSection = (theme) => {
7928
8418
  {
7929
8419
  widget: {
7930
8420
  type: "Control",
7931
- scope: "#/properties/New_Record",
8421
+ scope: `#/properties/${scopeName}_New_Record`,
7932
8422
  options: {
7933
8423
  widget: "IconButton"
7934
8424
  },
@@ -7955,7 +8445,7 @@ const TableSection = (theme) => {
7955
8445
  {
7956
8446
  widget: {
7957
8447
  type: "Control",
7958
- scope: "#/properties/Paste_Component",
8448
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
7959
8449
  options: {
7960
8450
  widget: "IconButton"
7961
8451
  },
@@ -7984,94 +8474,69 @@ const TableSection = (theme) => {
7984
8474
  disableAction: true,
7985
8475
  disableSelection: true,
7986
8476
  enableDrag: true
7987
- }
7988
- },
7989
- elements: [
7990
- {
7991
- accessorKey: "name",
7992
- header: "Name",
7993
- type: "string",
7994
- size: 300
7995
8477
  },
7996
- {
7997
- accessorKey: "type",
7998
- header: "Type",
7999
- type: "string",
8000
- size: 200
8001
- },
8002
- {
8003
- header: "Edit Record",
8004
- field: "Reject_Records",
8005
- size: 150,
8006
- type: "action",
8007
- widget: {
8478
+ action: [
8479
+ {
8008
8480
  type: "Control",
8009
8481
  scope: "#/properties/RejectButton",
8010
8482
  options: {
8011
- widget: "IconButton"
8483
+ widget: "Button"
8012
8484
  },
8013
8485
  config: {
8014
8486
  main: {
8015
- icon: "TableEditIcon",
8487
+ startIcon: "EditIcon",
8016
8488
  size: "small",
8017
8489
  onClick: "editComponents",
8018
- tooltipMessage: "Reject This Record"
8019
- },
8020
- style: {
8021
- fill: theme.palette.primary.main,
8022
- "& :hover": {
8023
- fill: theme.palette.primary.dark
8024
- }
8490
+ tooltipMessage: "Reject This Record",
8491
+ name: "Edit"
8025
8492
  }
8026
8493
  }
8027
- }
8028
- },
8029
- {
8030
- header: "Delete",
8031
- field: "Reject_Records",
8032
- size: 150,
8033
- type: "action",
8034
- widget: {
8494
+ },
8495
+ {
8035
8496
  type: "Control",
8036
8497
  scope: "#/properties/RejectButton",
8037
8498
  options: {
8038
- widget: "IconButton"
8499
+ widget: "Button"
8039
8500
  },
8040
8501
  config: {
8041
8502
  main: {
8042
- icon: "Bin",
8503
+ startIcon: "Bin",
8043
8504
  onClick: "deletePopUpComponent",
8044
- tooltipMessage: "Reject This Record"
8045
- },
8046
- style: {
8047
- fill: theme.palette.primary.main,
8048
- "& :hover": {
8049
- fill: theme.palette.primary.dark
8050
- }
8505
+ tooltipMessage: "Reject This Record",
8506
+ name: "Delete",
8507
+ size: "small"
8051
8508
  }
8052
8509
  }
8053
- }
8054
- },
8055
- {
8056
- header: "Copy",
8057
- field: "Copy_Component",
8058
- size: 150,
8059
- type: "action",
8060
- widget: {
8510
+ },
8511
+ {
8061
8512
  type: "Control",
8062
- scope: "#/properties/Copy_Component",
8513
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8063
8514
  options: {
8064
- widget: "IconButton"
8515
+ widget: "Button"
8065
8516
  },
8066
8517
  config: {
8067
8518
  main: {
8068
- icon: "FileCopyIcon",
8519
+ startIcon: "FileCopyIcon",
8069
8520
  onClick: "copyPasteElement",
8070
- styleDefault: true,
8071
- disabled: false
8521
+ styleDefault: false,
8522
+ name: "Copy"
8072
8523
  }
8073
8524
  }
8074
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
8075
8540
  }
8076
8541
  ]
8077
8542
  }
@@ -8091,9 +8556,6 @@ const ValueTab = {
8091
8556
  {
8092
8557
  type: "Control",
8093
8558
  scope: "#/properties/value",
8094
- options: {
8095
- widget: "Array"
8096
- },
8097
8559
  config: {
8098
8560
  layout: 12,
8099
8561
  main: {
@@ -8164,51 +8626,61 @@ const ValidationSection = {
8164
8626
  {
8165
8627
  type: "Control",
8166
8628
  scope: "#/properties/validation",
8167
- layout: 11.5,
8168
- options: {
8169
- "elementLabelProp": "validationType",
8170
- detail: {
8171
- type: "HorizontalLayout",
8172
- elements: [
8173
- {
8174
- type: "Control",
8175
- scope: "#/properties/validationType",
8176
- options: {
8177
- widget: "SelectInputField"
8178
- },
8179
- config: {
8180
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8181
- main: {
8182
- label: "Validation Type"
8183
- }
8184
- }
8185
- },
8186
- {
8187
- type: "Control",
8188
- scope: "#/properties/validationValue",
8189
- options: {
8190
- widget: "InputField"
8191
- },
8192
- config: {
8193
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8194
- main: {
8195
- label: "Validation Value"
8196
- }
8197
- }
8198
- },
8199
- {
8200
- type: "Control",
8201
- scope: "#/properties/emptyBox",
8202
- options: {
8203
- widget: "EmptyBox"
8204
- },
8205
- config: {
8206
- layout: { xs: 0, sm: 0, md: 4 }
8207
- }
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"
8208
8657
  }
8209
- ]
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
+ }
8210
8682
  }
8211
- }
8683
+ ]
8212
8684
  }
8213
8685
  ]
8214
8686
  };
@@ -8231,26 +8703,29 @@ var buildConfig = (FormData) => {
8231
8703
  if (formData.events) {
8232
8704
  delete formData.events;
8233
8705
  }
8706
+ if (formData.tabLabelElements) {
8707
+ component.tabLabelElements = formData.tabLabelElements || [];
8708
+ delete formData.tabLabelElements;
8709
+ }
8234
8710
  component = { ...formData, ...component };
8235
8711
  return component;
8236
8712
  };
8237
- const createLayoutFormat = (config2) => {
8238
- if (_.isEmpty(config2)) {
8239
- return {
8240
- xs: 12,
8241
- sm: 12,
8242
- md: 12,
8243
- lg: 12
8244
- };
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
+ }
8245
8725
  }
8246
- let data = {
8247
- xs: 12,
8248
- sm: 12,
8249
- md: 6,
8250
- lg: 6
8251
- };
8252
- config2.map((e) => {
8253
- 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;
8254
8729
  });
8255
8730
  return data;
8256
8731
  };
@@ -8264,9 +8739,27 @@ const flatObjectValueInArray = (config2 = []) => {
8264
8739
  });
8265
8740
  return data;
8266
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
+ };
8267
8750
  const clearFromSessionStorage = () => {
8268
8751
  sessionStorage.removeItem("pageFormdata");
8269
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
+ };
8270
8763
  const getNavigationHistory = (config2, path) => {
8271
8764
  if (path) {
8272
8765
  let urlRoutes = config2.name;
@@ -8325,11 +8818,13 @@ async function saveHandler(store2, service2, submitHandler) {
8325
8818
  const saveReturn = await submitHandler(store2, service2, config2);
8326
8819
  navigateHandler(store2, true, "/PageMasterRecords");
8327
8820
  } catch (err) {
8328
- navigateHandler(store2, false);
8821
+ navigateHandler(store2, false, void 0, err.message);
8329
8822
  }
8823
+ } else {
8824
+ navigateHandler(store2, false);
8330
8825
  }
8331
8826
  }
8332
- const navigateHandler = (store2, isSubmitted, pageName) => {
8827
+ const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
8333
8828
  if (isSubmitted) {
8334
8829
  sessionStorage.removeItem("pageFormdata");
8335
8830
  store2.navigate(pageName || -1);
@@ -8341,7 +8836,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
8341
8836
  store2.setValidation("ValidateAndShow");
8342
8837
  store2.setNotify({
8343
8838
  Fail: true,
8344
- FailMessage: "Errors on Page"
8839
+ FailMessage: errorMessage || "Errors on Page"
8345
8840
  });
8346
8841
  }
8347
8842
  };
@@ -8366,34 +8861,46 @@ function okHandler(store2) {
8366
8861
  const sectionLabels = {
8367
8862
  Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8368
8863
  MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8369
- Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8370
- LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8371
- WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8372
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8373
- 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"],
8374
8870
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8375
8871
  UploadFile: ["Core", "Events", "Style", "Validation"],
8376
8872
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8377
8873
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8378
- Box: ["Core", "Events", "Style", "Validation"],
8874
+ Box: ["Core", "Properties", "Events", "Style", "Validation"],
8379
8875
  Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8380
- ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8381
- 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"],
8382
8880
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8383
- Timer: ["Core", "Events", "Style", "Validation"],
8384
- Rank: ["Core", "Events", "Style", "Validation"],
8881
+ Timer: ["Core", "Events", "Style"],
8882
+ Rank: ["Core", "Events", "Style"],
8385
8883
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8386
- Array: ["Core", "Components", "Validation"],
8884
+ ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8885
+ Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8387
8886
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8388
8887
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8389
8888
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8390
- PopUp: ["Core", "Components", "Properties", "Style"],
8889
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
8890
+ PopOver: ["Core", "Components", "Properties", "Style"],
8891
+ PdfViewer: ["Core", "Properties", "Style"],
8391
8892
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8392
8893
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8393
8894
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8394
8895
  TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8395
8896
  ColumnGroup: ["Core", "Components"],
8396
- 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"]
8397
8904
  };
8398
8905
  function refreshPage(type, store2) {
8399
8906
  var _a, _b;
@@ -8406,6 +8913,7 @@ function refreshPage(type, store2) {
8406
8913
  Style: StyleSection,
8407
8914
  Events: EventSection(store2.theme.myTheme),
8408
8915
  Components: TableSection(store2.theme.myTheme),
8916
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8409
8917
  Properties: buildPropertiesSection(type),
8410
8918
  Validation: ValidationSection
8411
8919
  };
@@ -8417,7 +8925,7 @@ function refreshPage(type, store2) {
8417
8925
  const lastDotIndex = path.lastIndexOf(".");
8418
8926
  const parentPath = path.slice(0, lastDotIndex);
8419
8927
  const parentObj = _.get(currentConfig, parentPath);
8420
- if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8928
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
8421
8929
  UiSchema.elements[0].elements[0].elements[4] = {
8422
8930
  type: "Control",
8423
8931
  scope: "#/properties/columnFormat",
@@ -8496,6 +9004,44 @@ function refreshPage(type, store2) {
8496
9004
  }
8497
9005
  }
8498
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
+ };
8499
9045
  }
8500
9046
  if (sessionStorage.getItem("copiedConfig")) {
8501
9047
  this.ElementPathSetter(UiSchema);
@@ -8558,13 +9104,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8558
9104
  },
8559
9105
  editComponents: function() {
8560
9106
  var _a, _b, _c;
9107
+ if (validateAndShowErrors(store2))
9108
+ return;
8561
9109
  const rowId = dynamicData2.path.split(".")[1];
8562
9110
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8563
9111
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8564
9112
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8565
9113
  if (path) {
8566
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
8567
- 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
+ }
8568
9120
  store2.searchParams.set("path", finalPath);
8569
9121
  store2.setSearchParams(store2.searchParams);
8570
9122
  this.setPage();
@@ -8576,7 +9128,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8576
9128
  var _a;
8577
9129
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8578
9130
  const rowId = sessionStorage.getItem("rowId");
8579
- 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
+ }
8580
9137
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
8581
9138
  const data = path ? _.get(response, path) : response;
8582
9139
  store2.setFormdata(data);
@@ -8584,6 +9141,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8584
9141
  store2.updateDialog("popUpComponentSection");
8585
9142
  }
8586
9143
  sessionStorage.removeItem("rowId");
9144
+ sessionStorage.removeItem("isTabLabelElements");
8587
9145
  },
8588
9146
  deleteEvent: function(shouldUpdateDialog = true) {
8589
9147
  var _a;
@@ -8599,18 +9157,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8599
9157
  },
8600
9158
  widgetAddClickHandler: function() {
8601
9159
  var _a;
9160
+ if (validateAndShowErrors(store2))
9161
+ return;
8602
9162
  if (!Array.isArray(store2.formData.elements)) {
8603
9163
  store2.formData.elements = [];
8604
9164
  }
9165
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9166
+ store2.formData.tabLabelElements = [];
9167
+ }
8605
9168
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8606
9169
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8607
- 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
+ }
8608
9176
  store2.searchParams.set("path", finalPath);
8609
9177
  store2.setSearchParams(store2.searchParams);
8610
9178
  this.setPage();
8611
9179
  },
8612
9180
  eventEditHandler: function() {
8613
9181
  var _a, _b;
9182
+ if (validateAndShowErrors(store2))
9183
+ return;
8614
9184
  const rowId = dynamicData2.path.split(".")[1];
8615
9185
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8616
9186
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
@@ -8620,6 +9190,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8620
9190
  },
8621
9191
  eventAddHandler: function() {
8622
9192
  var _a, _b;
9193
+ if (validateAndShowErrors(store2))
9194
+ return;
8623
9195
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8624
9196
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8625
9197
  if (!Array.isArray(store2.formData.events)) {
@@ -8635,6 +9207,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8635
9207
  deletePopUpComponent: function() {
8636
9208
  const rowId = dynamicData2.path.split(".")[1];
8637
9209
  sessionStorage.setItem("rowId", rowId);
9210
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
8638
9211
  store2.updateDialog("popUpComponentSection");
8639
9212
  },
8640
9213
  deletePopUpEvent: function() {
@@ -8681,9 +9254,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8681
9254
  if (!Array.isArray(store2.formData.events)) {
8682
9255
  store2.formData.events = [];
8683
9256
  }
9257
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9258
+ store2.formData.tabLabelElements = [];
9259
+ }
8684
9260
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
8685
9261
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
8686
- 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;
8687
9268
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8688
9269
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8689
9270
  const notificationMessages = {
@@ -8718,6 +9299,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8718
9299
  if (elementType === "Component") {
8719
9300
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
8720
9301
  }
9302
+ if (elementType === "TabsComponent") {
9303
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9304
+ }
8721
9305
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8722
9306
  },
8723
9307
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -8771,7 +9355,7 @@ var pageMaster = (funcParams) => {
8771
9355
  return formData;
8772
9356
  }
8773
9357
  saveFormdataInSessionStorage(config2);
8774
- return config2;
9358
+ return { ...config2, type: "page" };
8775
9359
  },
8776
9360
  getUiSchema: function() {
8777
9361
  const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
@@ -8793,6 +9377,8 @@ var pageMaster = (funcParams) => {
8793
9377
  },
8794
9378
  onAddClickHandler: function() {
8795
9379
  var _a;
9380
+ if (validateAndShowErrors(store2))
9381
+ return;
8796
9382
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8797
9383
  if (!Array.isArray(store2.formData.elements)) {
8798
9384
  store2.formData.elements = [];
@@ -8816,6 +9402,8 @@ var pageMaster = (funcParams) => {
8816
9402
  },
8817
9403
  eventAddHandler: function() {
8818
9404
  var _a;
9405
+ if (validateAndShowErrors(store2))
9406
+ return;
8819
9407
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8820
9408
  if (!Array.isArray(store2.formData.events)) {
8821
9409
  store2.formData.events = [];
@@ -8826,6 +9414,8 @@ var pageMaster = (funcParams) => {
8826
9414
  },
8827
9415
  editEvent: function() {
8828
9416
  var _a;
9417
+ if (validateAndShowErrors(store2))
9418
+ return;
8829
9419
  const rowId = dynamicData2.path.split(".")[1];
8830
9420
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8831
9421
  saveFormdataInSessionStorage(store2.ctx.core.data);
@@ -8906,11 +9496,16 @@ const EventSchema = {
8906
9496
  { title: "Start", const: "onStart" },
8907
9497
  { title: "Cell Render", const: "onCellRenderer" },
8908
9498
  { title: "Upload", const: "onUpload" },
9499
+ { title: "FileDelete", const: "onFileDelete" },
9500
+ { title: "Download", const: "onDownload" },
8909
9501
  { title: "Back", const: "onBack" },
8910
9502
  { title: "Next", const: "onNext" },
8911
9503
  { title: "Row Movement", const: "onRowMovement" },
8912
9504
  { title: "Download", const: "onDownload" },
8913
- { 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" }
8914
9509
  ]
8915
9510
  },
8916
9511
  Handler: {
@@ -8927,7 +9522,7 @@ const EventSchema = {
8927
9522
  oneOf: [
8928
9523
  { title: "RankProvider", const: "RankProvider" },
8929
9524
  { title: "Download File", const: "downloadFile" },
8930
- { title: "Download", const: "download" }
9525
+ { title: "downloadFileFromUrl", const: "downloadFileFromUrl" }
8931
9526
  ]
8932
9527
  },
8933
9528
  body: {
@@ -9086,93 +9681,70 @@ const EventUiSchema = (theme) => {
9086
9681
  disableAction: true,
9087
9682
  disableSelection: true,
9088
9683
  enableDrag: true
9089
- }
9090
- },
9091
- elements: [
9092
- {
9093
- accessorKey: "eventType",
9094
- header: "Event's Type",
9095
- size: 300,
9096
- type: "string"
9097
- },
9098
- {
9099
- accessorKey: "Handler",
9100
- header: "Handler",
9101
- size: 200,
9102
- type: "string"
9103
9684
  },
9104
- {
9105
- accessorKey: "Edit_Approve_Records",
9106
- header: "Edit",
9107
- type: "action",
9108
- size: 150,
9109
- widget: {
9685
+ action: [
9686
+ {
9110
9687
  type: "Control",
9111
9688
  scope: "#/properties/Edit_Records",
9112
9689
  options: {
9113
- widget: "IconButton"
9690
+ widget: "Button"
9114
9691
  },
9115
9692
  config: {
9116
9693
  main: {
9117
9694
  size: "small",
9118
- icon: "TableEditIcon",
9695
+ startIcon: "EditIcon",
9119
9696
  tooltipMessage: "Edit This Record",
9120
- onClick: "editEvent"
9121
- },
9122
- style: {
9123
- fill: theme.palette.primary.main,
9124
- "& :hover": {
9125
- fill: theme.palette.primary.dark
9126
- }
9697
+ onClick: "editEvent",
9698
+ name: "Edit"
9127
9699
  }
9128
9700
  }
9129
- }
9130
- },
9131
- {
9132
- accessorKey: "Reject_Records",
9133
- header: "Delete",
9134
- type: "action",
9135
- size: 150,
9136
- widget: {
9701
+ },
9702
+ {
9137
9703
  type: "Control",
9138
9704
  scope: "#/properties/RejectButton",
9139
9705
  options: {
9140
- widget: "IconButton"
9706
+ widget: "Button"
9141
9707
  },
9142
9708
  config: {
9143
9709
  main: {
9144
- icon: "Bin",
9710
+ startIcon: "Bin",
9145
9711
  tooltipMessage: "Reject This Record",
9146
- onClick: "deletePopUpEvent"
9147
- },
9148
- style: {
9149
- fill: theme.palette.primary.main,
9150
- "& :hover": {
9151
- fill: theme.palette.primary.dark
9152
- }
9712
+ onClick: "deletePopUpEvent",
9713
+ name: "Delete",
9714
+ size: "small"
9153
9715
  }
9154
9716
  }
9155
- }
9156
- },
9157
- {
9158
- header: "Copy",
9159
- field: "Copy_Event",
9160
- type: "action",
9161
- size: 150,
9162
- widget: {
9717
+ },
9718
+ {
9163
9719
  type: "Control",
9164
9720
  scope: "#/properties/Copy_Event",
9165
9721
  options: {
9166
- widget: "IconButton"
9722
+ widget: "Button"
9167
9723
  },
9168
9724
  config: {
9169
9725
  main: {
9170
- icon: "FileCopyIcon",
9726
+ startIcon: "FileCopyIcon",
9171
9727
  onClick: "copyPasteElement",
9172
- styleDefault: true
9728
+ styleDefault: false,
9729
+ name: "Copy",
9730
+ size: "small"
9173
9731
  }
9174
9732
  }
9175
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"
9176
9748
  }
9177
9749
  ]
9178
9750
  }
@@ -9485,9 +10057,6 @@ const APISection = {
9485
10057
  {
9486
10058
  type: "Control",
9487
10059
  scope: "#/properties/headers",
9488
- options: {
9489
- widget: "Array"
9490
- },
9491
10060
  config: {
9492
10061
  layout: 12,
9493
10062
  main: {
@@ -9547,9 +10116,6 @@ const APISection = {
9547
10116
  {
9548
10117
  type: "Control",
9549
10118
  scope: "#/properties/body",
9550
- options: {
9551
- widget: "Array"
9552
- },
9553
10119
  config: {
9554
10120
  layout: 12,
9555
10121
  main: {
@@ -9615,9 +10181,6 @@ const refreshSectionUiSchema = {
9615
10181
  {
9616
10182
  type: "Control",
9617
10183
  scope: "#/properties/refreshElements",
9618
- options: {
9619
- widget: "Array"
9620
- },
9621
10184
  config: {
9622
10185
  layout: 12,
9623
10186
  main: {
@@ -9834,6 +10397,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9834
10397
  },
9835
10398
  addEvent: function() {
9836
10399
  var _a, _b, _c;
10400
+ if (validateAndShowErrors(store2))
10401
+ return;
9837
10402
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9838
10403
  if (!Array.isArray(store2.formData.events)) {
9839
10404
  store2.formData.events = [];
@@ -9846,6 +10411,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9846
10411
  },
9847
10412
  editEvent: function() {
9848
10413
  var _a;
10414
+ if (validateAndShowErrors(store2))
10415
+ return;
9849
10416
  const rowId = dynamicData2.path.split(".")[1];
9850
10417
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9851
10418
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
@@ -9896,22 +10463,33 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9896
10463
  }
9897
10464
  };
9898
10465
  };
9899
- const downloadFile$1 = (obj) => {
9900
- const typeArr = obj.name.split(".");
9901
- const data = obj.data;
9902
- const finalData = window.atob(data);
9903
- let file;
9904
- file = new File([finalData], typeArr[typeArr.length - 1]);
9905
- const url = URL.createObjectURL(file);
9906
- const link = document.createElement("a");
9907
- link.href = typeArr[typeArr.length - 1] === "pdf" ? "data:application/octet-stream;base64," + data : url;
9908
- link.download = `${obj.name}`;
9909
- document.body.appendChild(link);
9910
- 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();
9911
10490
  URL.revokeObjectURL(url);
9912
- document.body.removeChild(link);
9913
- };
9914
- const doDownload = (response, service2) => {
10491
+ }
10492
+ const downloadFileFromUrl = (response, service2) => {
9915
10493
  let url = `${service2.defaults.baseURL}/${response.path}`;
9916
10494
  if (response == null ? void 0 : response.params) {
9917
10495
  const keysArray = Object.keys(response == null ? void 0 : response.params);
@@ -9990,7 +10568,6 @@ function executeEventsHandler(params2) {
9990
10568
  params2.componentName,
9991
10569
  params2.config,
9992
10570
  params2.store,
9993
- params2.service,
9994
10571
  params2.formDataHolder
9995
10572
  );
9996
10573
  } else if (params2.config.Handler === "onBackHandler") {
@@ -10062,7 +10639,7 @@ function executeCustomHandler(params) {
10062
10639
  return response;
10063
10640
  }
10064
10641
  }
10065
- function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10642
+ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, formDataHolder) {
10066
10643
  var _a, _b, _c;
10067
10644
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10068
10645
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
@@ -10100,29 +10677,23 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
10100
10677
  });
10101
10678
  }
10102
10679
  } else if (eventConfig.type === "page") {
10103
- 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))) {
10104
10681
  store2.newData = {
10105
10682
  ...store2.newData,
10106
10683
  ...handlerResponse == null ? void 0 : handlerResponse.data
10107
10684
  };
10108
- store2.setFormdata((pre) => {
10109
- return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
10685
+ Object.keys(handlerResponse.data).forEach((e) => {
10686
+ formDataHolder[e] = handlerResponse.data[e];
10110
10687
  });
10111
10688
  }
10112
10689
  } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10113
10690
  if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10114
10691
  formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10115
10692
  formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10116
- store2.setFormdata((pre) => {
10117
- return { ...pre, ...formDataHolder };
10118
- });
10119
10693
  }
10120
10694
  } else {
10121
- if (handlerResponse) {
10695
+ if (handlerResponse == null ? void 0 : handlerResponse.data) {
10122
10696
  formDataHolder[componentName] = handlerResponse.data;
10123
- store2.setFormdata((pre) => {
10124
- return { ...pre, ...formDataHolder };
10125
- });
10126
10697
  }
10127
10698
  }
10128
10699
  }
@@ -10260,16 +10831,16 @@ var service = (funcParams) => {
10260
10831
  dynamicData: funcParams.dynamicData,
10261
10832
  userValue: funcParams.userValue,
10262
10833
  service: funcParams.service,
10263
- serviceHolder: { downloadFile: downloadFile$1, download: doDownload, ...funcParams.functionsProvider },
10834
+ serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, ...funcParams.functionsProvider },
10264
10835
  eventGroups,
10265
10836
  functionsProvider: funcParams.functionsProvider,
10266
10837
  formDataHolder
10267
10838
  };
10268
10839
  return {
10269
10840
  setPage: async function() {
10270
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10841
+ var _a, _b, _c;
10271
10842
  funcParams.store.setAdditionalErrors([]);
10272
- funcParams.store.setFormdata({});
10843
+ funcParams.store.setFormdata((funcParams == null ? void 0 : funcParams.initFormData()) || {});
10273
10844
  funcParams.store.setSchema({ type: "object", properties: {} });
10274
10845
  funcParams.store.newData = {};
10275
10846
  eventGroups = {};
@@ -10277,119 +10848,12 @@ var service = (funcParams) => {
10277
10848
  const config2 = pageData == null ? void 0 : pageData.config;
10278
10849
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10279
10850
  const event2 = new CustomEvent("pageNameChanged", {
10280
- detail: { pageName: config2.label }
10851
+ detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10281
10852
  });
10282
10853
  window.dispatchEvent(event2);
10283
- const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
10284
- uiSchema.elements.push(
10285
- {
10286
- type: "HorizontalLayout",
10287
- config: {
10288
- main: {
10289
- direction: "row"
10290
- },
10291
- style: {
10292
- flexDirection: "row",
10293
- position: "absolute",
10294
- bottom: 0,
10295
- height: "fit-content",
10296
- overflow: "hidden",
10297
- zIndex: 1e3,
10298
- width: "inherit"
10299
- }
10300
- },
10301
- elements: [
10302
- {
10303
- type: "Control",
10304
- scope: "#/properties/FooterText",
10305
- options: {
10306
- widget: "Box"
10307
- },
10308
- config: {
10309
- main: {
10310
- heading: "Copywriter@ACT21.IO"
10311
- },
10312
- style: {
10313
- color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
10314
- fontSize: "11px",
10315
- textAlign: "center",
10316
- lineHeight: 2,
10317
- width: "fit-content",
10318
- left: "50%",
10319
- position: "relative",
10320
- margin: 0,
10321
- flexGrow: 1,
10322
- height: 0,
10323
- transform: "translate(-50%, 0%)"
10324
- }
10325
- }
10326
- },
10327
- {
10328
- type: "Control",
10329
- scope: "#/properties/FooterBackIcon",
10330
- options: {
10331
- widget: "Box"
10332
- },
10333
- config: {
10334
- main: {
10335
- iconName: "PrevIcon",
10336
- onClick: "backHandler",
10337
- width: "fit-content"
10338
- },
10339
- style: {
10340
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
10341
- width: 20,
10342
- height: 0,
10343
- top: 0,
10344
- right: { xs: "12px", sm: "84px" },
10345
- position: "absolute",
10346
- fontSize: "12px",
10347
- cursor: "pointer",
10348
- ":hover": {
10349
- fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
10350
- },
10351
- marginRight: "20px"
10352
- }
10353
- }
10354
- },
10355
- {
10356
- type: "Control",
10357
- scope: "#/properties/FooterBackHandlerText",
10358
- options: {
10359
- widget: "Box"
10360
- },
10361
- config: {
10362
- main: {
10363
- heading: "Previous Page",
10364
- onClick: "backHandler"
10365
- },
10366
- style: {
10367
- display: { xs: "none", sm: "flex" },
10368
- textAlign: "left",
10369
- lineHeight: 1,
10370
- height: 0,
10371
- width: "fit-content",
10372
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
10373
- fontSize: "12px",
10374
- cursor: "pointer",
10375
- marginLeft: "2px",
10376
- top: 3,
10377
- right: "12px",
10378
- position: "absolute",
10379
- ":hover": {
10380
- color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
10381
- },
10382
- marginRight: "4px"
10383
- }
10384
- }
10385
- }
10386
- ]
10387
- }
10388
- );
10389
- const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
10390
- const newEventGroups = extractEvents(config2);
10391
- console.log("newEventGroups", newEventGroups, eventGroups);
10392
- eventGroups = newEventGroups;
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: {} };
10856
+ eventGroups = extractEvents(config2);
10393
10857
  executeEventsParameters = {
10394
10858
  config: {},
10395
10859
  componentName: "",
@@ -10399,20 +10863,9 @@ var service = (funcParams) => {
10399
10863
  service: funcParams.service,
10400
10864
  functionsProvider: funcParams.functionsProvider,
10401
10865
  serviceHolder: this,
10402
- eventGroups: newEventGroups,
10866
+ eventGroups,
10403
10867
  formDataHolder
10404
10868
  };
10405
- await executeRefreshHandler({
10406
- config: {},
10407
- componentName: "",
10408
- store: funcParams.store,
10409
- dynamicData: funcParams.dynamicData,
10410
- userValue: funcParams.userValue,
10411
- service: funcParams.service,
10412
- serviceHolder: this,
10413
- eventGroups: newEventGroups,
10414
- formDataHolder: {}
10415
- });
10416
10869
  funcParams.store.setSchema(
10417
10870
  (pre) => {
10418
10871
  return {
@@ -10422,29 +10875,73 @@ var service = (funcParams) => {
10422
10875
  };
10423
10876
  }
10424
10877
  );
10425
- uiSchema.elements.push(notifyUiSchema);
10426
- funcParams.store.setUiSchema(uiSchema);
10878
+ executeRefreshHandler({
10879
+ config: {},
10880
+ componentName: "",
10881
+ store: funcParams.store,
10882
+ dynamicData: funcParams.dynamicData,
10883
+ userValue: funcParams.userValue,
10884
+ service: funcParams.service,
10885
+ serviceHolder: this,
10886
+ eventGroups,
10887
+ formDataHolder
10888
+ }).then((e) => {
10889
+ funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10890
+ uiSchema.elements.push(notifyUiSchema);
10891
+ funcParams.store.setUiSchema(uiSchema);
10892
+ });
10427
10893
  },
10428
- onCellRenderer: (cellParams) => {
10894
+ getStyle: () => {
10429
10895
  var _a, _b, _c, _d;
10430
- if (eventGroups.onCellRenderer) {
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;
10909
+ }
10910
+ }
10911
+ return {};
10912
+ },
10913
+ onCellRenderer: (cellParams) => {
10914
+ var _a, _b, _c, _d, _e;
10915
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10916
+ if (cloneEventGroup.onCellRenderer) {
10431
10917
  let finalResponse = {};
10432
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]);
10433
- for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10434
- executeEventsParameters.store.functionParameters = cellParams;
10435
- finalResponse = executeEvents({
10436
- ...executeEventsParameters,
10437
- config: eventConfig,
10438
- componentName: path
10439
- });
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;
10440
10929
  }
10441
- return finalResponse;
10442
10930
  }
10443
10931
  return {};
10444
10932
  },
10445
10933
  onClick: function() {
10446
10934
  this.callHandler("onClick");
10447
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
+ },
10448
10945
  onMount: function() {
10449
10946
  this.callHandler("onMount");
10450
10947
  },
@@ -10468,13 +10965,14 @@ var service = (funcParams) => {
10468
10965
  return response == null ? void 0 : response.data;
10469
10966
  },
10470
10967
  onPaginationChange: async function(paginationValues) {
10471
- var _a;
10968
+ var _a, _b;
10472
10969
  const apiBody = [
10473
10970
  { key: "size", value: paginationValues.pagination.pageSize },
10474
10971
  { key: "pageIndex", value: paginationValues.pagination.pageIndex },
10475
10972
  { key: "sorting", value: paginationValues.sorting || [] },
10476
10973
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10477
- { 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 : [] }
10478
10976
  ];
10479
10977
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10480
10978
  return response == null ? void 0 : response.data;
@@ -10489,27 +10987,40 @@ var service = (funcParams) => {
10489
10987
  return response == null ? void 0 : response.data;
10490
10988
  }
10491
10989
  },
10492
- onChange: async function() {
10493
- if (eventGroups.onChange) {
10494
- const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10495
- Promise.all(ChangeEventsKeysArray.map(async (componentName) => {
10496
- var _a, _b;
10497
- 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) {
10498
- for (const eventConfig of eventGroups.onChange[componentName]) {
10499
- await executeEvents({
10500
- ...executeEventsParameters,
10501
- config: eventConfig,
10502
- componentName
10503
- });
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
+ }));
10504
11013
  }
10505
- }
10506
- }));
10507
- }
11014
+ })
11015
+ );
11016
+ });
11017
+ Promise.allSettled(promises);
10508
11018
  },
10509
11019
  callExecuteEvents: async function(paramValue, apiBody, eventType) {
10510
11020
  var _a, _b;
10511
11021
  let LastCallResponse = void 0;
10512
- for (const eventConfig of (_a = eventGroups == null ? void 0 : eventGroups[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
  }
@@ -11177,6 +11800,9 @@ const buildTable = (config2, componentScope2) => {
11177
11800
  if (config2.enableExpandAll) {
11178
11801
  table.config.main.enableExpandAll = config2.enableExpandAll === "YES" ? true : false;
11179
11802
  }
11803
+ if (config2.filterFromLeafRows) {
11804
+ table.config.main.filterFromLeafRows = config2.filterFromLeafRows === "YES" ? true : false;
11805
+ }
11180
11806
  if (config2.paginateExpandedRows) {
11181
11807
  table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
11182
11808
  }
@@ -11225,6 +11851,15 @@ const buildTable = (config2, componentScope2) => {
11225
11851
  if (config2.selectKey) {
11226
11852
  table.config.main.selectKey = config2.selectKey;
11227
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
+ }
11228
11863
  return table;
11229
11864
  };
11230
11865
  const Box = {
@@ -11234,8 +11869,11 @@ const Box = {
11234
11869
  widget: "Box"
11235
11870
  },
11236
11871
  config: {
11237
- layout: 12,
11238
- main: {},
11872
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11873
+ main: {
11874
+ iconName: "",
11875
+ onClick: "onClick"
11876
+ },
11239
11877
  style: {}
11240
11878
  }
11241
11879
  };
@@ -11246,6 +11884,9 @@ const buildLabel = (config2, componentScope2) => {
11246
11884
  if (config2.layout) {
11247
11885
  box.config.layout = createLayoutFormat(config2.layout);
11248
11886
  }
11887
+ if (config2.iconName) {
11888
+ box.config.main.iconName = config2.iconName;
11889
+ }
11249
11890
  if (config2.style) {
11250
11891
  box.config.style = JSON.parse(config2.style);
11251
11892
  }
@@ -11264,7 +11905,7 @@ const uploadFile = {
11264
11905
  "style": {
11265
11906
  "backgroundColor": "none"
11266
11907
  },
11267
- layout: { xs: 6, sm: 6, md: 4, lg: 4 }
11908
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11268
11909
  },
11269
11910
  "options": {
11270
11911
  "widget": "UploadFile"
@@ -11281,7 +11922,7 @@ const downloadFile = {
11281
11922
  "style": {
11282
11923
  "backgroundColor": "none"
11283
11924
  },
11284
- layout: { xs: 12, sm: 6, md: 4, lg: 4 }
11925
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11285
11926
  },
11286
11927
  "options": {
11287
11928
  "widget": "DownloadFile"
@@ -11300,12 +11941,19 @@ const buildUploadFile = (config2, componentScope2) => {
11300
11941
  if (config2.required) {
11301
11942
  UploadFile.config.main.required = true;
11302
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
+ }
11303
11950
  UploadFile.config.main.errorMessage = config2.errorMessage;
11304
11951
  return UploadFile;
11305
11952
  };
11306
11953
  const buildDownloadFile = (config2, componentScope2) => {
11307
11954
  const DownloadFile = _.cloneDeep(downloadFile);
11308
11955
  DownloadFile.scope = componentScope2;
11956
+ DownloadFile.config.main.label = config2.label;
11309
11957
  if (config2.layout) {
11310
11958
  DownloadFile.config.layout = config2.layout;
11311
11959
  }
@@ -11321,6 +11969,12 @@ const buildDownloadFile = (config2, componentScope2) => {
11321
11969
  if (config2.errorMessage) {
11322
11970
  DownloadFile.config.main.errorMessage = config2.errorMessage;
11323
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
+ }
11324
11978
  return DownloadFile;
11325
11979
  };
11326
11980
  function Card(theme) {
@@ -11328,192 +11982,159 @@ function Card(theme) {
11328
11982
  type: "WrapperLayout",
11329
11983
  config: {
11330
11984
  main: {},
11331
- wrapperStyle: {
11332
- position: "relative",
11333
- top: "50%",
11334
- transform: "translateY(-50%)",
11335
- marginBottom: 0
11336
- },
11337
- componentsBoxStyle: {
11338
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
11339
- flexDirection: "row",
11340
- flexWrap: "nowrap",
11341
- width: "100% !important",
11342
- background: "transparent",
11343
- border: `1.5px solid ${theme.palette.primary.light}`,
11344
- borderRadius: "8px",
11345
- padding: "0px 4px",
11346
- height: "100%",
11347
- alignItems: "center",
11348
- marginLeft: "0px",
11349
- "&: hover": {
11350
- background: `${theme.palette.primary.main}`,
11351
- border: `1.5px solid black`,
11352
- "& p": {
11353
- 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}`
11354
12010
  }
11355
12011
  }
11356
12012
  },
11357
- layout: { xs: 12, sm: 12, md: 6, lg: 6 }
12013
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 }
11358
12014
  },
11359
12015
  elements: [
11360
- {
11361
- type: "HorizontalLayout",
11362
- config: {
11363
- layout: 8
11364
- },
11365
- elements: [
11366
- {
11367
- type: "WrapperLayout",
11368
- config: {
11369
- main: {
11370
- columnSpacing: 0,
11371
- gap: 0
11372
- },
11373
- wrapperStyle: {
11374
- background: "transparent",
11375
- marginBottom: 0
11376
- },
11377
- componentsBoxStyle: {
11378
- flexDirection: "column",
11379
- flexWrap: "nowrap",
11380
- width: "100%",
11381
- height: "inherit",
11382
- background: "transparent",
11383
- borderRadius: "0px"
11384
- },
11385
- layout: 12
11386
- },
11387
- elements: [
11388
- {
11389
- type: "WrapperLayout",
11390
- config: {
11391
- main: {
11392
- columnSpacing: 0,
11393
- gap: 0
11394
- },
11395
- wrapperStyle: {
11396
- background: "transparent",
11397
- marginBottom: 0
11398
- },
11399
- componentsBoxStyle: {
11400
- flexDirection: "row",
11401
- flexWrap: "nowrap",
11402
- width: "100%",
11403
- height: "0",
11404
- background: "transparent",
11405
- borderRadius: "0px",
11406
- marginLeft: "-10px",
11407
- marginTop: "-8px",
11408
- justifyContent: "start",
11409
- position: "relative"
11410
- },
11411
- layout: 12
11412
- },
11413
- elements: [
11414
- {
11415
- type: "Control",
11416
- scope: "#/properties/programType",
11417
- config: {
11418
- main: {
11419
- heading: ""
11420
- },
11421
- style: {
11422
- color: "black",
11423
- display: "flex",
11424
- fontSize: { xs: "24px", md: "28px" },
11425
- fontWeight: "bold",
11426
- background: "inherit",
11427
- justifyContent: "flex-start",
11428
- width: "auto",
11429
- margin: "-8px",
11430
- marginLeft: "-24px",
11431
- height: 0
11432
- }
11433
- },
11434
- options: {
11435
- widget: "Box"
11436
- }
11437
- },
11438
- {
11439
- type: "Control",
11440
- scope: "#/properties/programType",
11441
- config: {
11442
- main: {
11443
- heading: "5000.00"
11444
- },
11445
- style: {
11446
- color: "black",
11447
- display: "flex",
11448
- fontSize: { xs: "24px", md: "28px" },
11449
- fontWeight: "bold",
11450
- background: "inherit",
11451
- justifyContent: "flex-start",
11452
- width: "auto",
11453
- margin: "-8px",
11454
- position: "absolute",
11455
- left: "24px"
11456
- }
11457
- },
11458
- options: {
11459
- widget: "Box"
11460
- }
11461
- }
11462
- ]
11463
- },
11464
- {
11465
- type: "Control",
11466
- scope: "#/properties/programType",
11467
- config: {
11468
- main: {
11469
- heading: "Total Earnings"
11470
- },
11471
- style: {
11472
- color: "black",
11473
- fontSize: "16px",
11474
- justifyContent: "center",
11475
- textWrap: "wrap",
11476
- background: "inherit",
11477
- width: "calc(100%+8px)",
11478
- margin: "-8px",
11479
- marginTop: { xs: "16px", md: "20px" }
11480
- },
11481
- layout: 12
11482
- },
11483
- options: {
11484
- widget: "Box"
11485
- }
11486
- }
11487
- ]
11488
- }
11489
- ]
11490
- },
11491
12016
  {
11492
12017
  type: "Control",
11493
- scope: "#/properties/programType",
12018
+ scope: "#/properties/initilCardScope",
11494
12019
  config: {
11495
12020
  main: {
11496
12021
  url: "https://www.svgrepo.com/show/500606/loading.svg"
11497
12022
  },
11498
12023
  style: {
11499
12024
  containerStyle: {
11500
- height: "100%",
12025
+ position: "absolute",
12026
+ color: "inherit",
12027
+ top: "4px",
12028
+ right: "4px",
11501
12029
  display: "flex",
11502
- justifyContent: "end"
12030
+ justifyContent: "flex-end",
12031
+ alignItems: "flex-start"
11503
12032
  },
11504
12033
  imageStyle: {
11505
- width: "unset",
11506
- fontSize: "none",
11507
- padding: "4px",
11508
- margin: "0px 0px 0px 8px",
11509
- height: "64px"
12034
+ color: "inherit",
12035
+ width: "32px",
12036
+ height: "32px",
12037
+ padding: "0px",
12038
+ margin: "0px"
11510
12039
  }
11511
- },
11512
- layout: 4
12040
+ }
11513
12041
  },
11514
12042
  options: {
11515
12043
  widget: "Image"
11516
12044
  }
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
+ }
11517
12138
  }
11518
12139
  ]
11519
12140
  };
@@ -11524,9 +12145,10 @@ const buildCard = (config, componentScope, store) => {
11524
12145
  if (config.style) {
11525
12146
  card.config.wrapperStyle = JSON.parse(config.style);
11526
12147
  }
11527
- card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
11528
- card.elements[1].scope = `#/properties/${config.name}/properties/url`;
11529
- 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`;
11530
12152
  if (config.layout) {
11531
12153
  card.config.layout = createLayoutFormat(config.layout);
11532
12154
  }
@@ -11535,16 +12157,56 @@ const buildCard = (config, componentScope, store) => {
11535
12157
  card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
11536
12158
  }
11537
12159
  if (config.label) {
11538
- card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
12160
+ card.elements[1].config.main.heading = config.label;
11539
12161
  }
11540
12162
  if (config.url) {
11541
- card.elements[1].config.main.url = config.url;
12163
+ card.elements[0].config.main.url = config.url;
11542
12164
  }
11543
12165
  if (config.description) {
11544
- card.elements[0].elements[0].elements[1].config.main.heading = config.description;
12166
+ card.elements[3].config.main.heading = config.description;
11545
12167
  }
11546
12168
  return card;
11547
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
+ };
11548
12210
  var DateInputField = {
11549
12211
  type: "Control",
11550
12212
  scope: "#/properties/date",
@@ -11552,7 +12214,7 @@ var DateInputField = {
11552
12214
  widget: "DateInputField"
11553
12215
  },
11554
12216
  config: {
11555
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12217
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11556
12218
  main: {
11557
12219
  label: "",
11558
12220
  type: "date"
@@ -11566,7 +12228,7 @@ const DateTime = {
11566
12228
  widget: "DateTimeInputField"
11567
12229
  },
11568
12230
  config: {
11569
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12231
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11570
12232
  main: {
11571
12233
  label: "DateTime",
11572
12234
  type: "date"
@@ -11576,21 +12238,43 @@ const DateTime = {
11576
12238
  const buildDate = (config2, componentScope2) => {
11577
12239
  const dateInputField = _.cloneDeep(DateInputField);
11578
12240
  dateInputField.config.main.label = config2.label;
11579
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11580
12241
  dateInputField.scope = componentScope2;
11581
12242
  if (config2.layout) {
11582
12243
  dateInputField.config.layout = createLayoutFormat(config2.layout);
11583
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
+ }
11584
12257
  return dateInputField;
11585
12258
  };
11586
12259
  const buildDateTime = (config2, componentScope2) => {
11587
12260
  const dateTimeInputField = _.cloneDeep(DateTime);
11588
12261
  dateTimeInputField.config.main.label = config2.label;
11589
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11590
12262
  dateTimeInputField.scope = componentScope2;
11591
12263
  if (config2.layout) {
11592
12264
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
11593
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
+ }
11594
12278
  return dateTimeInputField;
11595
12279
  };
11596
12280
  var RankCard = {
@@ -11674,14 +12358,15 @@ var MultipleSelect = {
11674
12358
  widget: "MultipleSelect"
11675
12359
  },
11676
12360
  config: {
11677
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12361
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11678
12362
  main: {
11679
12363
  label: "",
11680
12364
  type: "text",
11681
12365
  multiple: true,
11682
- variant: "standard",
12366
+ variant: "outlined",
11683
12367
  options: []
11684
- }
12368
+ },
12369
+ style: {}
11685
12370
  }
11686
12371
  };
11687
12372
  const buildMultiSelect = (config2, componentScope2) => {
@@ -11696,9 +12381,21 @@ const buildMultiSelect = (config2, componentScope2) => {
11696
12381
  if (config2.value) {
11697
12382
  multipleSelect.config.main.options = config2.value;
11698
12383
  }
12384
+ if (config2.variant) {
12385
+ multipleSelect.config.main.variant = config2.variant;
12386
+ }
11699
12387
  if (config2.lazyLoading) {
11700
12388
  multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11701
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
+ }
11702
12399
  return multipleSelect;
11703
12400
  };
11704
12401
  const buildBasicUiSchema = (config2) => {
@@ -11718,7 +12415,7 @@ const TextArea = {
11718
12415
  widget: "TextArea"
11719
12416
  },
11720
12417
  config: {
11721
- layout: { xs: 12, sm: 12, md: 5.5, lg: 5.5 },
12418
+ layout: 12,
11722
12419
  style: {
11723
12420
  containerStyle: {
11724
12421
  borderRadius: "20px"
@@ -11742,7 +12439,7 @@ const buildTextArea = (config2, componentScope2) => {
11742
12439
  const textArea = _.cloneDeep(TextArea);
11743
12440
  textArea.config.main.heading = config2.label;
11744
12441
  if (config2.layout) {
11745
- textArea.config.layout = createLayoutFormat(config2.layout);
12442
+ textArea.config.layout = createLayoutFormat(config2.layout, config2.type);
11746
12443
  }
11747
12444
  if (config2.style) {
11748
12445
  textArea.config.style = JSON.parse(config2.style);
@@ -11784,11 +12481,11 @@ const buildSlider = (config2, componentScope2) => {
11784
12481
  const Checkbox = {
11785
12482
  "type": "Control",
11786
12483
  "scope": "#/properties/username1",
11787
- "layout": 12,
11788
12484
  "options": {
11789
12485
  "widget": "CheckBox"
11790
12486
  },
11791
12487
  "config": {
12488
+ "layout": { xs: 6, sm: 6, md: 4, lg: 3 },
11792
12489
  "main": {
11793
12490
  "label": "Welcome to Hyperform"
11794
12491
  }
@@ -11809,7 +12506,7 @@ const buildCheckbox = (config2, componentScope2) => {
11809
12506
  const buildLineGraph = (config2, componentScope2) => {
11810
12507
  const lineGraph = _.cloneDeep(LineGraph);
11811
12508
  if (config2.layout) {
11812
- lineGraph.config.layout = createLayoutFormat(config2.layout);
12509
+ lineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
11813
12510
  }
11814
12511
  lineGraph.config.main.header = config2.heading;
11815
12512
  if (config2.height) {
@@ -11832,17 +12529,23 @@ const buildLineGraph = (config2, componentScope2) => {
11832
12529
  if (config2.leftLabel) {
11833
12530
  lineGraph.config.main.leftLabel = config2.leftLabel;
11834
12531
  }
12532
+ if (config2.disableLeftLabel) {
12533
+ lineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
12534
+ }
11835
12535
  if (config2.legendHide) {
11836
12536
  lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
11837
12537
  }
12538
+ if (config2.legendDirection) {
12539
+ lineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
12540
+ }
11838
12541
  if (config2.bottomAxisAngle) {
11839
12542
  lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
11840
12543
  }
11841
12544
  if (config2.legendLabels) {
11842
- lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
12545
+ lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11843
12546
  }
11844
12547
  if (config2.pieArcColors) {
11845
- lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
12548
+ lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
11846
12549
  }
11847
12550
  lineGraph.scope = componentScope2;
11848
12551
  return lineGraph;
@@ -11854,11 +12557,10 @@ const RadioUiSchema = {
11854
12557
  widget: "RadioInputField"
11855
12558
  },
11856
12559
  config: {
11857
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
12560
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11858
12561
  main: {
11859
12562
  label: "Enabled",
11860
- options: ["YES", "NO"],
11861
- errorMessage: "Enabled is not marked as YES or NO"
12563
+ options: ["YES", "NO"]
11862
12564
  }
11863
12565
  }
11864
12566
  };
@@ -11875,6 +12577,15 @@ const buildRadio = (config2, componentScope2) => {
11875
12577
  if (config2.style) {
11876
12578
  Radio.config.style = JSON.parse(config2.style);
11877
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
+ }
11878
12589
  return Radio;
11879
12590
  };
11880
12591
  var emptyBox = {
@@ -11884,13 +12595,14 @@ var emptyBox = {
11884
12595
  widget: "EmptyBox"
11885
12596
  },
11886
12597
  config: {
11887
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
12598
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11888
12599
  main: {},
11889
12600
  style: {}
11890
12601
  }
11891
12602
  };
11892
12603
  const buildEmptyBox = (config2, componentScope2) => {
11893
12604
  const EmptyBox = _.cloneDeep(emptyBox);
12605
+ EmptyBox.scope = componentScope2;
11894
12606
  if (config2.layout) {
11895
12607
  EmptyBox.config.layout = createLayoutFormat(config2.layout);
11896
12608
  }
@@ -11899,16 +12611,35 @@ const buildEmptyBox = (config2, componentScope2) => {
11899
12611
  const ArrayUiSchema = {
11900
12612
  type: "Control",
11901
12613
  scope: "#/properties/adjustments",
11902
- layout: 11.5,
11903
- options: {
11904
- detail: {
11905
- type: "HorizontalLayout",
11906
- elements: []
11907
- }
12614
+ layout: 12,
12615
+ elements: [],
12616
+ config: {
12617
+ main: {}
11908
12618
  }
11909
12619
  };
11910
12620
  const buildArray = (config2, componentScope2) => {
11911
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;
11912
12643
  array.scope = componentScope2;
11913
12644
  return array;
11914
12645
  };
@@ -11920,7 +12651,7 @@ const TextField = {
11920
12651
  "widget": "InputField"
11921
12652
  },
11922
12653
  config: {
11923
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
12654
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11924
12655
  main: {
11925
12656
  label: "Adhaar Card",
11926
12657
  formatStrArray: ["9", "9", "9", "9", " ", "9", "9", "9", "9", " ", "X9", "X9", "X9", "X9"],
@@ -11949,7 +12680,7 @@ const PanField = {
11949
12680
  "widget": "InputField"
11950
12681
  },
11951
12682
  config: {
11952
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
12683
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11953
12684
  main: {
11954
12685
  label: "Pan Card",
11955
12686
  placeholder: "AAAAA0000A",
@@ -11977,12 +12708,13 @@ const FileInput = {
11977
12708
  widget: "FileInputField"
11978
12709
  },
11979
12710
  config: {
11980
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12711
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
11981
12712
  main: {
11982
12713
  required: false,
11983
12714
  onUpload: "onFileUpload",
11984
12715
  onDownload: "onFileDownload",
11985
- label: "Aggrement Copy"
12716
+ label: "Aggrement Copy",
12717
+ "onClick": "onClick"
11986
12718
  },
11987
12719
  style: {
11988
12720
  backgroundColor: "none"
@@ -11999,6 +12731,19 @@ const buildFileInput = (config2, componentScope2) => {
11999
12731
  if (config2.style) {
12000
12732
  box.config.style = JSON.parse(config2.style);
12001
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;
12002
12747
  return box;
12003
12748
  };
12004
12749
  const Stepper = {
@@ -12055,6 +12800,7 @@ const PopUP = {
12055
12800
  },
12056
12801
  main: {
12057
12802
  label: "PopUp",
12803
+ onClose: "onClose",
12058
12804
  fullScreen: false,
12059
12805
  fullWidth: false,
12060
12806
  maxWidth: false,
@@ -12072,10 +12818,10 @@ const buildPopUp = (config2, componentScope2) => {
12072
12818
  popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
12073
12819
  popup.config.main.maxWidth = config2.maxWidth || false;
12074
12820
  if (config2.layout) {
12075
- popup.config.layout = createLayoutFormat(config2.layout);
12821
+ popup.config.layout = createLayoutFormat(config2.layout, config2.type);
12076
12822
  }
12077
12823
  if (config2.style) {
12078
- PopUP.config.style = JSON.parse(config2.style);
12824
+ popup.config.style = JSON.parse(config2.style);
12079
12825
  }
12080
12826
  return popup;
12081
12827
  };
@@ -12112,10 +12858,10 @@ const buildDataGrid = (config2, componentScope2) => {
12112
12858
  DataGrid.config.main.label = config2.label;
12113
12859
  }
12114
12860
  if (config2.layout) {
12115
- DataGrid.config.layout = createLayoutFormat(config2.layout);
12861
+ DataGrid.config.layout = createLayoutFormat(config2.layout, config2.type);
12116
12862
  }
12117
12863
  if (config2.cardLayout) {
12118
- DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
12864
+ DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout, config2.type);
12119
12865
  }
12120
12866
  if (config2.style) {
12121
12867
  DataGrid.config.style = JSON.parse(config2.style);
@@ -12167,6 +12913,7 @@ const TreeMap = {
12167
12913
  "type": "Control",
12168
12914
  "scope": "#/properties/TreeMap2",
12169
12915
  "config": {
12916
+ layout: 12,
12170
12917
  "main": {
12171
12918
  "layout": "cartsian",
12172
12919
  orientation: "vertical",
@@ -12192,7 +12939,7 @@ const buildTreeMap = (config2, componentScope2) => {
12192
12939
  treMap.config.main.header = config2.label;
12193
12940
  }
12194
12941
  if (config2.layout) {
12195
- treMap.config.layout = createLayoutFormat(config2.layout);
12942
+ treMap.config.layout = createLayoutFormat(config2.layout, config2.type);
12196
12943
  }
12197
12944
  if (config2.orientation) {
12198
12945
  treMap.config.main.orientation = config2.orientation;
@@ -12235,7 +12982,7 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12235
12982
  thought.config.main.thought = `${config2.thought}`;
12236
12983
  }
12237
12984
  if (config2.layout) {
12238
- thought.config.layout = createLayoutFormat(config2.layout);
12985
+ thought.config.layout = createLayoutFormat(config2.layout, config2.type);
12239
12986
  }
12240
12987
  if (config2.label) {
12241
12988
  thought.config.main.label = config2.label;
@@ -12245,124 +12992,441 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12245
12992
  }
12246
12993
  return thought;
12247
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
+ };
12248
13357
  let schema = {
12249
13358
  type: "object",
12250
13359
  properties: {},
12251
13360
  required: []
12252
13361
  };
12253
- function buildRule(configObj, tableName, arrayHolderName) {
12254
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
12255
- if (arrayHolderName) {
12256
- if ((_c = (_b = (_a = schema.properties) == null ? void 0 : _a[tableName]) == null ? void 0 : _b.items) == null ? void 0 : _c.properties) {
12257
- 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])) {
12258
- schema.properties[tableName].items.properties[configObj.name] = {};
12259
- if (configObj.type === "Select" && ((_h = configObj.value) == null ? void 0 : _h.length) > 0) {
12260
- schema.properties[tableName].items.properties[configObj.name] = {
12261
- oneOf: configObj.value.map((e) => {
12262
- return { const: e.value, title: e.label };
12263
- })
12264
- };
12265
- } else if (configObj.type === "MultipleSelect" && ((_i = configObj.value) == null ? void 0 : _i.length) > 0) {
12266
- schema.properties[tableName].items.properties[configObj.name] = {
12267
- items: {
12268
- oneOf: configObj.value.map((e) => {
12269
- return { const: e.value, title: e.label };
12270
- })
12271
- }
12272
- };
12273
- }
12274
- }
12275
- }
12276
- } else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && ((_j = configObj.value) == null ? void 0 : _j.length) > 0) {
12277
- if (configObj.type === "Select") {
12278
- schema.properties[configObj.name] = {
12279
- oneOf: configObj.value.map((e) => {
12280
- return { const: e.value, title: e.label };
12281
- })
12282
- };
12283
- } else if (configObj.type === "MultipleSelect") {
12284
- 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",
12285
13369
  items: {
12286
- oneOf: configObj.value.map((e) => {
12287
- return { const: e.value, title: e.label };
12288
- })
13370
+ type: "object",
13371
+ properties: {},
13372
+ required: []
12289
13373
  }
12290
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;
12291
13385
  }
12292
13386
  }
12293
- if (configObj.validation) {
12294
- configObj.validation.forEach((rule) => {
12295
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l;
12296
- if (tableName) {
12297
- if ((_c2 = (_b2 = (_a2 = schema.properties) == null ? void 0 : _a2[tableName]) == null ? void 0 : _b2.items) == null ? void 0 : _c2.properties) {
12298
- 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])) {
12299
- schema.properties[tableName].items.properties[configObj.name] = {};
12300
- if (configObj.type === "Select" || ((_h2 = configObj.value) == null ? void 0 : _h2.length) > 0) {
12301
- schema.properties[tableName].items.properties[configObj.name] = {
12302
- oneOf: configObj.value.map((e) => {
12303
- return { const: e.value, title: e.label };
12304
- })
12305
- };
12306
- } else if (configObj.type === "MultipleSelect" || ((_i2 = configObj.value) == null ? void 0 : _i2.length) > 0) {
12307
- schema.properties[tableName].items.properties[configObj.name] = {
12308
- items: {
12309
- oneOf: configObj.value.map((e) => {
12310
- return { const: e.value, title: e.label };
12311
- })
12312
- }
12313
- };
12314
- }
12315
- }
12316
- if (rule.validationType === "required") {
12317
- (_l = (_k = (_j2 = schema.properties) == null ? void 0 : _j2[tableName]) == null ? void 0 : _k.items) == null ? void 0 : _l.required.push(configObj.name);
12318
- } else {
12319
- schema.properties[tableName].items.properties[configObj.name]["type"] = "string";
12320
- schema.properties[tableName].items.properties[configObj.name][rule.validationType] = isNaN(rule.validationValue) ? rule.validationValue : Number(rule.validationValue);
12321
- }
12322
- }
12323
- } else {
12324
- if (!schema.properties[configObj.name]) {
12325
- schema.properties[configObj.name] = {};
12326
- }
12327
- if (rule.validationType === "required") {
12328
- schema.required.push(configObj.name);
12329
- } else {
12330
- schema.properties[configObj.name]["type"] = "string";
12331
- schema.properties[configObj.name][rule.validationType] = isNaN(rule.validationValue) ? rule.validationValue : Number(rule.validationValue);
12332
- }
12333
- }
12334
- });
12335
- }
12336
- }
12337
- const buildSchema = (config2, tableName, isArrayType) => {
12338
- buildRule(config2, tableName, isArrayType);
12339
- if (config2 == null ? void 0 : config2.elements) {
12340
- if (config2.type == "Table" || config2.type == "Array") {
12341
- if (!schema.properties[config2.name]) {
12342
- schema.properties[config2.name] = {
12343
- type: "array",
12344
- items: {
12345
- type: "object",
12346
- properties: {},
12347
- required: []
12348
- }
12349
- };
12350
- }
12351
- config2.elements.map((e, elemInd) => {
12352
- buildSchema(e, config2.name, config2.type === "Array" ? true : false);
12353
- });
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;
12354
13398
  } else {
12355
- config2.elements.map((e, elemInd) => {
12356
- buildSchema(e);
12357
- });
13399
+ fieldSchema.type = "string";
13400
+ fieldSchema[v.validationType] = isNaN(v.validationValue) ? v.validationValue : Number(v.validationValue);
12358
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
+ }));
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
+ };
12359
13417
  }
13418
+ }
13419
+ const buildSchema = (config2) => {
13420
+ buildSchemaFromConfig(config2, schema);
12360
13421
  return schema;
12361
13422
  };
12362
13423
  const buildUiSchema = (config2, store2) => {
12363
13424
  let elements = {};
12364
13425
  const componentScope2 = `#/properties/${config2.name}`;
12365
13426
  switch (config2.type) {
13427
+ case "OTP_Input":
13428
+ elements = buildOTP_Input(config2, componentScope2);
13429
+ break;
12366
13430
  case "TreeMap":
12367
13431
  elements = buildTreeMap(config2, componentScope2);
12368
13432
  break;
@@ -12381,6 +13445,9 @@ const buildUiSchema = (config2, store2) => {
12381
13445
  case "PopUp":
12382
13446
  elements = buildPopUp(config2, componentScope2);
12383
13447
  break;
13448
+ case "PopOver":
13449
+ elements = buildPopOver(config2, componentScope2);
13450
+ break;
12384
13451
  case "FileInput":
12385
13452
  elements = buildFileInput(config2, componentScope2);
12386
13453
  break;
@@ -12399,6 +13466,9 @@ const buildUiSchema = (config2, store2) => {
12399
13466
  case "WrapperSection":
12400
13467
  elements = buildWrapperSection(config2, componentScope2);
12401
13468
  break;
13469
+ case "HorizontalLayout":
13470
+ elements = buildHorizontalLayout(config2, componentScope2);
13471
+ break;
12402
13472
  case "Text":
12403
13473
  elements = buildTextField(config2, componentScope2);
12404
13474
  break;
@@ -12417,6 +13487,9 @@ const buildUiSchema = (config2, store2) => {
12417
13487
  case "Button":
12418
13488
  elements = buildButton(config2, componentScope2);
12419
13489
  break;
13490
+ case "ButtonGroup":
13491
+ elements = buildButtonGroup(config2, componentScope2);
13492
+ break;
12420
13493
  case "Table":
12421
13494
  elements = buildTable(config2, componentScope2);
12422
13495
  break;
@@ -12436,11 +13509,14 @@ const buildUiSchema = (config2, store2) => {
12436
13509
  elements = buildDownloadFile(config2, componentScope2);
12437
13510
  break;
12438
13511
  case "EmptyBox":
12439
- elements = buildEmptyBox(config2);
13512
+ elements = buildEmptyBox(config2, componentScope2);
12440
13513
  break;
12441
13514
  case "card":
12442
13515
  elements = buildCard(config2, componentScope2, store2);
12443
13516
  break;
13517
+ case "MetricCard":
13518
+ elements = buildMetricCard(config2, componentScope2);
13519
+ break;
12444
13520
  case "Graph":
12445
13521
  switch (config2.graphType) {
12446
13522
  case "BarGraph":
@@ -12457,6 +13533,12 @@ const buildUiSchema = (config2, store2) => {
12457
13533
  case "HorizontalStackBarGraph":
12458
13534
  elements = buildHorizontalBarGraph(config2, componentScope2);
12459
13535
  break;
13536
+ case "AreaGraph":
13537
+ elements = buildAreaGraph(config2, componentScope2);
13538
+ break;
13539
+ case "StackBarLineGraph":
13540
+ elements = buildStackBarLineGraph(config2, componentScope2);
13541
+ break;
12460
13542
  default:
12461
13543
  elements = buildStackbarGraph(config2, componentScope2);
12462
13544
  break;
@@ -12499,6 +13581,15 @@ const buildUiSchema = (config2, store2) => {
12499
13581
  case "Thought":
12500
13582
  elements = buildThoughtOfTheDay(config2, componentScope2);
12501
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;
12502
13593
  default:
12503
13594
  schema = {
12504
13595
  type: "object",
@@ -12509,7 +13600,17 @@ const buildUiSchema = (config2, store2) => {
12509
13600
  }
12510
13601
  if (config2 == null ? void 0 : config2.elements) {
12511
13602
  if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
12512
- 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;
12513
13614
  } else if (config2.type == "ColumnGroup") {
12514
13615
  const sizeMap = {};
12515
13616
  if (config2.sizeHolder) {
@@ -12518,13 +13619,27 @@ const buildUiSchema = (config2, store2) => {
12518
13619
  });
12519
13620
  }
12520
13621
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12521
- return {
13622
+ const commonProperties = {
12522
13623
  accessorKey: cellElem.name,
13624
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12523
13625
  header: cellElem.label || cellElem.name,
12524
13626
  size: sizeMap[cellElem.name] || 180,
12525
- type: cellElem.columnFormat,
12526
- 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
12527
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
+ }
12528
13643
  });
12529
13644
  } else if (config2.type == "Table") {
12530
13645
  const sizeMap = {};
@@ -12539,13 +13654,14 @@ const buildUiSchema = (config2, store2) => {
12539
13654
  config2.elements.filter((cellElem, elemInd) => {
12540
13655
  const commonProperties = {
12541
13656
  accessorKey: cellElem.name,
12542
- type: cellElem.columnFormat,
13657
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12543
13658
  header: cellElem.label || cellElem.name,
12544
13659
  size: sizeMap[cellElem.name] || 180,
12545
13660
  enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12546
13661
  columnFilterModeOptions: cellElem.filteringOptions,
12547
13662
  enableSorting: cellElem.enableSorting === "No" ? false : true,
12548
- columnKey: cellElem.columnKey
13663
+ columnKey: cellElem.columnKey,
13664
+ dateFormat: cellElem.dateFormat
12549
13665
  };
12550
13666
  if (cellElem.type) {
12551
13667
  if (cellElem.elementType == "action") {
@@ -12560,8 +13676,8 @@ const buildUiSchema = (config2, store2) => {
12560
13676
  }
12561
13677
  const tableElem = {
12562
13678
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12563
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12564
- ...commonProperties
13679
+ ...commonProperties,
13680
+ ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
12565
13681
  };
12566
13682
  rowElements.push(tableElem);
12567
13683
  } else {
@@ -12571,17 +13687,18 @@ const buildUiSchema = (config2, store2) => {
12571
13687
  elements.elements = rowElements;
12572
13688
  elements.config.action = tableActionElement;
12573
13689
  elements.config.main.headerIcons.elements = tableHeaderElements;
12574
- } else if (config2.type == "Array") {
12575
- elements.options.detail.elements = config2.elements.map((e, elemInd) => {
12576
- return buildUiSchema(e, store2);
12577
- });
12578
13690
  } else {
12579
13691
  elements.elements = config2.elements.map((e, elemInd) => {
12580
13692
  return buildUiSchema(e, store2);
12581
13693
  });
12582
13694
  }
12583
13695
  }
13696
+ if (config2.tabLabelElements) {
13697
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13698
+ return buildUiSchema(e, store2);
13699
+ });
13700
+ }
12584
13701
  return elements;
12585
13702
  };
12586
- 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 };
12587
13704
  //# sourceMappingURL=impaktapps-ui-builder.es.js.map