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