impaktapps-ui-builder 1.0.621 → 1.0.622
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 +2002 -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 +21 -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 +7 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +4 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +315 -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 +174 -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,12 @@ 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
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
7873
8253
|
emptyBox$1("WrapperSectionEmpty2")
|
|
7874
8254
|
];
|
|
7875
8255
|
break;
|
|
@@ -7878,7 +8258,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7878
8258
|
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
7879
8259
|
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
7880
8260
|
emptyBox$1("TabEmpty"),
|
|
7881
|
-
|
|
8261
|
+
getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
|
|
7882
8262
|
];
|
|
7883
8263
|
break;
|
|
7884
8264
|
case "Table":
|
|
@@ -7898,13 +8278,15 @@ const buildPropertiesSection = function(type) {
|
|
|
7898
8278
|
getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
|
|
7899
8279
|
getInputField("selectKey", "Selection Key"),
|
|
7900
8280
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
8281
|
+
getSelectField("maxPageSize", "Max Page Size"),
|
|
8282
|
+
getSelectField("initialDensity", "Initial Toggle Density"),
|
|
7901
8283
|
buildWrapper("Tree Table Properties", [
|
|
7902
8284
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
7903
8285
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
7904
8286
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
7905
|
-
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
7906
8287
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
7907
|
-
|
|
8288
|
+
getInputField("defaultColumnSize", "Default Column Size"),
|
|
8289
|
+
,
|
|
7908
8290
|
emptyBox$1("LazyLoadingTableEmpty3")
|
|
7909
8291
|
]),
|
|
7910
8292
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
@@ -7914,6 +8296,10 @@ const buildPropertiesSection = function(type) {
|
|
|
7914
8296
|
break;
|
|
7915
8297
|
case "Radio":
|
|
7916
8298
|
uiSchema.elements = [
|
|
8299
|
+
getInputField("errorMessage", "Error Message"),
|
|
8300
|
+
getInputField("toolTip", "Tooltip"),
|
|
8301
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8302
|
+
emptyBox$1("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
7917
8303
|
getArrayControl("sectionLabels", "label", "Options Of Radio")
|
|
7918
8304
|
];
|
|
7919
8305
|
break;
|
|
@@ -7922,15 +8308,39 @@ const buildPropertiesSection = function(type) {
|
|
|
7922
8308
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7923
8309
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
7924
8310
|
getSelectField("variant", "Variant"),
|
|
7925
|
-
|
|
8311
|
+
getInputField("toolTip", "Tooltip"),
|
|
8312
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8313
|
+
emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
7926
8314
|
];
|
|
7927
8315
|
break;
|
|
7928
8316
|
case "MultipleSelect":
|
|
7929
8317
|
uiSchema.elements = [
|
|
7930
8318
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7931
8319
|
getSelectField("variant", "Variant"),
|
|
7932
|
-
|
|
7933
|
-
|
|
8320
|
+
getInputField("toolTip", "Tooltip"),
|
|
8321
|
+
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8322
|
+
];
|
|
8323
|
+
break;
|
|
8324
|
+
case "PdfViewer":
|
|
8325
|
+
uiSchema.elements = [
|
|
8326
|
+
getInputField("scale", "Zoom"),
|
|
8327
|
+
emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8328
|
+
];
|
|
8329
|
+
break;
|
|
8330
|
+
case "Date":
|
|
8331
|
+
uiSchema.elements = [
|
|
8332
|
+
getSelectField("variant", "Variant"),
|
|
8333
|
+
getInputField("toolTip", "Tooltip"),
|
|
8334
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8335
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8336
|
+
];
|
|
8337
|
+
break;
|
|
8338
|
+
case "DateTime":
|
|
8339
|
+
uiSchema.elements = [
|
|
8340
|
+
getSelectField("variant", "Variant"),
|
|
8341
|
+
getInputField("toolTip", "Tooltip"),
|
|
8342
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8343
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
7934
8344
|
];
|
|
7935
8345
|
break;
|
|
7936
8346
|
case "Thought":
|
|
@@ -7938,6 +8348,40 @@ const buildPropertiesSection = function(type) {
|
|
|
7938
8348
|
getTextArea("thought", "Today's thought", false)
|
|
7939
8349
|
];
|
|
7940
8350
|
break;
|
|
8351
|
+
case "Image":
|
|
8352
|
+
uiSchema.elements = [
|
|
8353
|
+
getInputField("imageUrl", "Image URL"),
|
|
8354
|
+
getInputField("height", "Image Height"),
|
|
8355
|
+
getInputField("toolTip", "Tooltip"),
|
|
8356
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8357
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8358
|
+
];
|
|
8359
|
+
break;
|
|
8360
|
+
case "FileInput":
|
|
8361
|
+
uiSchema.elements = [
|
|
8362
|
+
getRadioInputField("variant", "Variant", ["Outlined", "Standard"]),
|
|
8363
|
+
getRadioInputField("disableUpload", "Disable Upload", ["YES", "NO"]),
|
|
8364
|
+
getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
|
|
8365
|
+
getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
|
|
8366
|
+
getInputField("description", "Enter description"),
|
|
8367
|
+
getInputField("toolTip", "Tooltip"),
|
|
8368
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8369
|
+
getInputField("chooseButtonLabel", "ChooseButton Label"),
|
|
8370
|
+
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
8371
|
+
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
8372
|
+
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
8373
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8374
|
+
];
|
|
8375
|
+
break;
|
|
8376
|
+
case "Camera":
|
|
8377
|
+
uiSchema.elements = [
|
|
8378
|
+
getSelectField("iconName", "Icon Name"),
|
|
8379
|
+
getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
|
|
8380
|
+
getSelectField("color", "Color"),
|
|
8381
|
+
getInputField("tooltipMessage", "Tooltip Message"),
|
|
8382
|
+
getSelectField("variant", "Variant"),
|
|
8383
|
+
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
8384
|
+
];
|
|
7941
8385
|
}
|
|
7942
8386
|
return uiSchema;
|
|
7943
8387
|
};
|
|
@@ -7975,13 +8419,13 @@ const StyleSection = {
|
|
|
7975
8419
|
}
|
|
7976
8420
|
]
|
|
7977
8421
|
};
|
|
7978
|
-
const TableSection = (theme) => {
|
|
8422
|
+
const TableSection = (theme, scopeName = "elements") => {
|
|
7979
8423
|
const uiSchema = {
|
|
7980
8424
|
type: "HorizontalLayout",
|
|
7981
8425
|
elements: [
|
|
7982
8426
|
{
|
|
7983
8427
|
type: "Control",
|
|
7984
|
-
scope:
|
|
8428
|
+
scope: `#/properties/${scopeName}`,
|
|
7985
8429
|
options: {
|
|
7986
8430
|
widget: "Table"
|
|
7987
8431
|
},
|
|
@@ -7992,7 +8436,7 @@ const TableSection = (theme) => {
|
|
|
7992
8436
|
{
|
|
7993
8437
|
widget: {
|
|
7994
8438
|
type: "Control",
|
|
7995
|
-
scope:
|
|
8439
|
+
scope: `#/properties/${scopeName}_New_Record`,
|
|
7996
8440
|
options: {
|
|
7997
8441
|
widget: "IconButton"
|
|
7998
8442
|
},
|
|
@@ -8019,7 +8463,7 @@ const TableSection = (theme) => {
|
|
|
8019
8463
|
{
|
|
8020
8464
|
widget: {
|
|
8021
8465
|
type: "Control",
|
|
8022
|
-
scope: "
|
|
8466
|
+
scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
|
|
8023
8467
|
options: {
|
|
8024
8468
|
widget: "IconButton"
|
|
8025
8469
|
},
|
|
@@ -8048,94 +8492,69 @@ const TableSection = (theme) => {
|
|
|
8048
8492
|
disableAction: true,
|
|
8049
8493
|
disableSelection: true,
|
|
8050
8494
|
enableDrag: true
|
|
8051
|
-
}
|
|
8052
|
-
},
|
|
8053
|
-
elements: [
|
|
8054
|
-
{
|
|
8055
|
-
accessorKey: "name",
|
|
8056
|
-
header: "Name",
|
|
8057
|
-
type: "string",
|
|
8058
|
-
size: 300
|
|
8059
8495
|
},
|
|
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: {
|
|
8496
|
+
action: [
|
|
8497
|
+
{
|
|
8072
8498
|
type: "Control",
|
|
8073
8499
|
scope: "#/properties/RejectButton",
|
|
8074
8500
|
options: {
|
|
8075
|
-
widget: "
|
|
8501
|
+
widget: "Button"
|
|
8076
8502
|
},
|
|
8077
8503
|
config: {
|
|
8078
8504
|
main: {
|
|
8079
|
-
|
|
8505
|
+
startIcon: "EditIcon",
|
|
8080
8506
|
size: "small",
|
|
8081
8507
|
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
|
-
}
|
|
8508
|
+
tooltipMessage: "Reject This Record",
|
|
8509
|
+
name: "Edit"
|
|
8089
8510
|
}
|
|
8090
8511
|
}
|
|
8091
|
-
}
|
|
8092
|
-
|
|
8093
|
-
{
|
|
8094
|
-
header: "Delete",
|
|
8095
|
-
field: "Reject_Records",
|
|
8096
|
-
size: 150,
|
|
8097
|
-
type: "action",
|
|
8098
|
-
widget: {
|
|
8512
|
+
},
|
|
8513
|
+
{
|
|
8099
8514
|
type: "Control",
|
|
8100
8515
|
scope: "#/properties/RejectButton",
|
|
8101
8516
|
options: {
|
|
8102
|
-
widget: "
|
|
8517
|
+
widget: "Button"
|
|
8103
8518
|
},
|
|
8104
8519
|
config: {
|
|
8105
8520
|
main: {
|
|
8106
|
-
|
|
8521
|
+
startIcon: "Bin",
|
|
8107
8522
|
onClick: "deletePopUpComponent",
|
|
8108
|
-
tooltipMessage: "Reject This Record"
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
fill: theme.palette.primary.main,
|
|
8112
|
-
"& :hover": {
|
|
8113
|
-
fill: theme.palette.primary.dark
|
|
8114
|
-
}
|
|
8523
|
+
tooltipMessage: "Reject This Record",
|
|
8524
|
+
name: "Delete",
|
|
8525
|
+
size: "small"
|
|
8115
8526
|
}
|
|
8116
8527
|
}
|
|
8117
|
-
}
|
|
8118
|
-
|
|
8119
|
-
{
|
|
8120
|
-
header: "Copy",
|
|
8121
|
-
field: "Copy_Component",
|
|
8122
|
-
size: 150,
|
|
8123
|
-
type: "action",
|
|
8124
|
-
widget: {
|
|
8528
|
+
},
|
|
8529
|
+
{
|
|
8125
8530
|
type: "Control",
|
|
8126
|
-
scope: "
|
|
8531
|
+
scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
|
|
8127
8532
|
options: {
|
|
8128
|
-
widget: "
|
|
8533
|
+
widget: "Button"
|
|
8129
8534
|
},
|
|
8130
8535
|
config: {
|
|
8131
8536
|
main: {
|
|
8132
|
-
|
|
8537
|
+
startIcon: "FileCopyIcon",
|
|
8133
8538
|
onClick: "copyPasteElement",
|
|
8134
|
-
styleDefault:
|
|
8135
|
-
|
|
8539
|
+
styleDefault: false,
|
|
8540
|
+
name: "Copy"
|
|
8136
8541
|
}
|
|
8137
8542
|
}
|
|
8138
8543
|
}
|
|
8544
|
+
]
|
|
8545
|
+
},
|
|
8546
|
+
elements: [
|
|
8547
|
+
{
|
|
8548
|
+
accessorKey: "name",
|
|
8549
|
+
header: "Name",
|
|
8550
|
+
type: "string",
|
|
8551
|
+
size: 300
|
|
8552
|
+
},
|
|
8553
|
+
{
|
|
8554
|
+
accessorKey: "type",
|
|
8555
|
+
header: "Type",
|
|
8556
|
+
type: "string",
|
|
8557
|
+
size: 200
|
|
8139
8558
|
}
|
|
8140
8559
|
]
|
|
8141
8560
|
}
|
|
@@ -8302,12 +8721,16 @@ var buildConfig = (FormData) => {
|
|
|
8302
8721
|
if (formData.events) {
|
|
8303
8722
|
delete formData.events;
|
|
8304
8723
|
}
|
|
8724
|
+
if (formData.tabLabelElements) {
|
|
8725
|
+
component.tabLabelElements = formData.tabLabelElements || [];
|
|
8726
|
+
delete formData.tabLabelElements;
|
|
8727
|
+
}
|
|
8305
8728
|
component = { ...formData, ...component };
|
|
8306
8729
|
return component;
|
|
8307
8730
|
};
|
|
8308
8731
|
const createLayoutFormat = (layout, type) => {
|
|
8309
8732
|
if (_.isEmpty(layout)) {
|
|
8310
|
-
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought"];
|
|
8733
|
+
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout", "Table"];
|
|
8311
8734
|
if (fullLayoutComponents.includes(type)) {
|
|
8312
8735
|
return { xs: 12, sm: 12, md: 12, lg: 12 };
|
|
8313
8736
|
} else if (type === "Graph") {
|
|
@@ -8320,7 +8743,7 @@ const createLayoutFormat = (layout, type) => {
|
|
|
8320
8743
|
}
|
|
8321
8744
|
let data = {};
|
|
8322
8745
|
layout.map((e) => {
|
|
8323
|
-
data[e.key || "xs"] =
|
|
8746
|
+
data[e.key || "xs"] = e.value === null || e.value === void 0 || e.value === "" ? 5.5 : +e.value;
|
|
8324
8747
|
});
|
|
8325
8748
|
return data;
|
|
8326
8749
|
};
|
|
@@ -8334,9 +8757,27 @@ const flatObjectValueInArray = (config2 = []) => {
|
|
|
8334
8757
|
});
|
|
8335
8758
|
return data;
|
|
8336
8759
|
};
|
|
8760
|
+
const createKeyValueMap = (config2 = []) => {
|
|
8761
|
+
return config2.reduce((acc, item) => {
|
|
8762
|
+
if (!item.key)
|
|
8763
|
+
return acc;
|
|
8764
|
+
acc[item.key] = item.value;
|
|
8765
|
+
return acc;
|
|
8766
|
+
}, {});
|
|
8767
|
+
};
|
|
8337
8768
|
const clearFromSessionStorage = () => {
|
|
8338
8769
|
sessionStorage.removeItem("pageFormdata");
|
|
8339
8770
|
};
|
|
8771
|
+
const validateAndShowErrors = (store2) => {
|
|
8772
|
+
if (_.isEmpty(store2.ctx.core.errors))
|
|
8773
|
+
return false;
|
|
8774
|
+
store2.setValidation("ValidateAndShow");
|
|
8775
|
+
store2.setNotify({
|
|
8776
|
+
Fail: true,
|
|
8777
|
+
FailMessage: "Error on Page"
|
|
8778
|
+
});
|
|
8779
|
+
return true;
|
|
8780
|
+
};
|
|
8340
8781
|
const getNavigationHistory = (config2, path) => {
|
|
8341
8782
|
if (path) {
|
|
8342
8783
|
let urlRoutes = config2.name;
|
|
@@ -8395,11 +8836,13 @@ async function saveHandler(store2, service2, submitHandler) {
|
|
|
8395
8836
|
const saveReturn = await submitHandler(store2, service2, config2);
|
|
8396
8837
|
navigateHandler(store2, true, "/PageMasterRecords");
|
|
8397
8838
|
} catch (err) {
|
|
8398
|
-
navigateHandler(store2, false);
|
|
8839
|
+
navigateHandler(store2, false, void 0, err.message);
|
|
8399
8840
|
}
|
|
8841
|
+
} else {
|
|
8842
|
+
navigateHandler(store2, false);
|
|
8400
8843
|
}
|
|
8401
8844
|
}
|
|
8402
|
-
const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
8845
|
+
const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
|
|
8403
8846
|
if (isSubmitted) {
|
|
8404
8847
|
sessionStorage.removeItem("pageFormdata");
|
|
8405
8848
|
store2.navigate(pageName || -1);
|
|
@@ -8411,7 +8854,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
|
8411
8854
|
store2.setValidation("ValidateAndShow");
|
|
8412
8855
|
store2.setNotify({
|
|
8413
8856
|
Fail: true,
|
|
8414
|
-
FailMessage: "Errors on Page"
|
|
8857
|
+
FailMessage: errorMessage || "Errors on Page"
|
|
8415
8858
|
});
|
|
8416
8859
|
}
|
|
8417
8860
|
};
|
|
@@ -8436,34 +8879,47 @@ function okHandler(store2) {
|
|
|
8436
8879
|
const sectionLabels = {
|
|
8437
8880
|
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8438
8881
|
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
|
-
|
|
8882
|
+
Table: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8883
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8884
|
+
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8885
|
+
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8886
|
+
TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
|
|
8887
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8444
8888
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8445
8889
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8446
8890
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8447
8891
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8448
|
-
Box: ["Core", "Events", "Style", "Validation"],
|
|
8892
|
+
Box: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8449
8893
|
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8450
|
-
ProgressBarCard: ["Core", "Properties", "Events", "Style"
|
|
8451
|
-
|
|
8894
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style"],
|
|
8895
|
+
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8896
|
+
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8897
|
+
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8898
|
+
HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8452
8899
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8453
|
-
Timer: ["Core", "Events", "Style"
|
|
8454
|
-
Rank: ["Core", "Events", "Style"
|
|
8900
|
+
Timer: ["Core", "Events", "Style"],
|
|
8901
|
+
Rank: ["Core", "Events", "Style"],
|
|
8455
8902
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8456
|
-
|
|
8903
|
+
ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8904
|
+
Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8457
8905
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8458
8906
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8459
8907
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8460
|
-
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8908
|
+
PopUp: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8909
|
+
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8910
|
+
PdfViewer: ["Core", "Properties", "Style"],
|
|
8461
8911
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8462
8912
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8463
8913
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8464
8914
|
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8465
8915
|
ColumnGroup: ["Core", "Components"],
|
|
8466
|
-
Thought: ["Core", "Properties", "Events", "Style",
|
|
8916
|
+
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8917
|
+
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8918
|
+
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8919
|
+
Image: ["Core", "Properties", "Events", "Style"],
|
|
8920
|
+
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8921
|
+
Camera: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8922
|
+
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8467
8923
|
};
|
|
8468
8924
|
function refreshPage(type, store2) {
|
|
8469
8925
|
var _a, _b;
|
|
@@ -8476,6 +8932,7 @@ function refreshPage(type, store2) {
|
|
|
8476
8932
|
Style: StyleSection,
|
|
8477
8933
|
Events: EventSection(store2.theme.myTheme),
|
|
8478
8934
|
Components: TableSection(store2.theme.myTheme),
|
|
8935
|
+
TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
|
|
8479
8936
|
Properties: buildPropertiesSection(type),
|
|
8480
8937
|
Validation: ValidationSection
|
|
8481
8938
|
};
|
|
@@ -8487,7 +8944,7 @@ function refreshPage(type, store2) {
|
|
|
8487
8944
|
const lastDotIndex = path.lastIndexOf(".");
|
|
8488
8945
|
const parentPath = path.slice(0, lastDotIndex);
|
|
8489
8946
|
const parentObj = _.get(currentConfig, parentPath);
|
|
8490
|
-
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8947
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
|
|
8491
8948
|
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8492
8949
|
type: "Control",
|
|
8493
8950
|
scope: "#/properties/columnFormat",
|
|
@@ -8566,6 +9023,44 @@ function refreshPage(type, store2) {
|
|
|
8566
9023
|
}
|
|
8567
9024
|
}
|
|
8568
9025
|
};
|
|
9026
|
+
UiSchema.elements[0].elements[0].elements[10] = {
|
|
9027
|
+
type: "Control",
|
|
9028
|
+
scope: "#/properties/dateFormat",
|
|
9029
|
+
options: {
|
|
9030
|
+
widget: "SelectInputField"
|
|
9031
|
+
},
|
|
9032
|
+
config: {
|
|
9033
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9034
|
+
main: {
|
|
9035
|
+
label: "Date Time Format"
|
|
9036
|
+
}
|
|
9037
|
+
}
|
|
9038
|
+
};
|
|
9039
|
+
UiSchema.elements[0].elements[0].elements[11] = {
|
|
9040
|
+
type: "Control",
|
|
9041
|
+
scope: "#/properties/emptyBox",
|
|
9042
|
+
options: {
|
|
9043
|
+
widget: "EmptyBox"
|
|
9044
|
+
},
|
|
9045
|
+
config: {
|
|
9046
|
+
layout: { xs: 0, sm: 0, md: 0, lg: 6 }
|
|
9047
|
+
}
|
|
9048
|
+
};
|
|
9049
|
+
}
|
|
9050
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "LeaderBoard") {
|
|
9051
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
9052
|
+
type: "Control",
|
|
9053
|
+
scope: "#/properties/columnFormat",
|
|
9054
|
+
options: {
|
|
9055
|
+
widget: "SelectInputField"
|
|
9056
|
+
},
|
|
9057
|
+
config: {
|
|
9058
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9059
|
+
main: {
|
|
9060
|
+
label: "Column Format"
|
|
9061
|
+
}
|
|
9062
|
+
}
|
|
9063
|
+
};
|
|
8569
9064
|
}
|
|
8570
9065
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8571
9066
|
this.ElementPathSetter(UiSchema);
|
|
@@ -8628,13 +9123,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8628
9123
|
},
|
|
8629
9124
|
editComponents: function() {
|
|
8630
9125
|
var _a, _b, _c;
|
|
9126
|
+
if (validateAndShowErrors(store2))
|
|
9127
|
+
return;
|
|
8631
9128
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8632
9129
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8633
9130
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8634
9131
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8635
9132
|
if (path) {
|
|
8636
|
-
|
|
8637
|
-
|
|
9133
|
+
let finalPath = `${path}`;
|
|
9134
|
+
if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
|
|
9135
|
+
finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
|
|
9136
|
+
} else {
|
|
9137
|
+
finalPath = `${finalPath}.elements[${rowId}]`;
|
|
9138
|
+
}
|
|
8638
9139
|
store2.searchParams.set("path", finalPath);
|
|
8639
9140
|
store2.setSearchParams(store2.searchParams);
|
|
8640
9141
|
this.setPage();
|
|
@@ -8646,7 +9147,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8646
9147
|
var _a;
|
|
8647
9148
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8648
9149
|
const rowId = sessionStorage.getItem("rowId");
|
|
8649
|
-
|
|
9150
|
+
const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
|
|
9151
|
+
if (isTabLabelElements) {
|
|
9152
|
+
store2.formData.tabLabelElements.splice(rowId, 1);
|
|
9153
|
+
} else {
|
|
9154
|
+
store2.formData.elements.splice(rowId, 1);
|
|
9155
|
+
}
|
|
8650
9156
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8651
9157
|
const data = path ? _.get(response, path) : response;
|
|
8652
9158
|
store2.setFormdata(data);
|
|
@@ -8654,6 +9160,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8654
9160
|
store2.updateDialog("popUpComponentSection");
|
|
8655
9161
|
}
|
|
8656
9162
|
sessionStorage.removeItem("rowId");
|
|
9163
|
+
sessionStorage.removeItem("isTabLabelElements");
|
|
8657
9164
|
},
|
|
8658
9165
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
8659
9166
|
var _a;
|
|
@@ -8669,18 +9176,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8669
9176
|
},
|
|
8670
9177
|
widgetAddClickHandler: function() {
|
|
8671
9178
|
var _a;
|
|
9179
|
+
if (validateAndShowErrors(store2))
|
|
9180
|
+
return;
|
|
8672
9181
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8673
9182
|
store2.formData.elements = [];
|
|
8674
9183
|
}
|
|
9184
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9185
|
+
store2.formData.tabLabelElements = [];
|
|
9186
|
+
}
|
|
8675
9187
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8676
9188
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8677
|
-
|
|
9189
|
+
let finalPath = `${path}`;
|
|
9190
|
+
if (dynamicData2.path.startsWith("tabLabel")) {
|
|
9191
|
+
finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
|
|
9192
|
+
} else {
|
|
9193
|
+
finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
|
|
9194
|
+
}
|
|
8678
9195
|
store2.searchParams.set("path", finalPath);
|
|
8679
9196
|
store2.setSearchParams(store2.searchParams);
|
|
8680
9197
|
this.setPage();
|
|
8681
9198
|
},
|
|
8682
9199
|
eventEditHandler: function() {
|
|
8683
9200
|
var _a, _b;
|
|
9201
|
+
if (validateAndShowErrors(store2))
|
|
9202
|
+
return;
|
|
8684
9203
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8685
9204
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8686
9205
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
@@ -8690,6 +9209,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8690
9209
|
},
|
|
8691
9210
|
eventAddHandler: function() {
|
|
8692
9211
|
var _a, _b;
|
|
9212
|
+
if (validateAndShowErrors(store2))
|
|
9213
|
+
return;
|
|
8693
9214
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8694
9215
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8695
9216
|
if (!Array.isArray(store2.formData.events)) {
|
|
@@ -8705,6 +9226,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8705
9226
|
deletePopUpComponent: function() {
|
|
8706
9227
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8707
9228
|
sessionStorage.setItem("rowId", rowId);
|
|
9229
|
+
sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
|
|
8708
9230
|
store2.updateDialog("popUpComponentSection");
|
|
8709
9231
|
},
|
|
8710
9232
|
deletePopUpEvent: function() {
|
|
@@ -8751,9 +9273,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8751
9273
|
if (!Array.isArray(store2.formData.events)) {
|
|
8752
9274
|
store2.formData.events = [];
|
|
8753
9275
|
}
|
|
9276
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9277
|
+
store2.formData.tabLabelElements = [];
|
|
9278
|
+
}
|
|
8754
9279
|
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
8755
9280
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
8756
|
-
const
|
|
9281
|
+
const currentLength = {
|
|
9282
|
+
"TabsComponent": formData.tabLabelElements.length,
|
|
9283
|
+
"Component": formData.elements.length,
|
|
9284
|
+
"Events": formData.events.length
|
|
9285
|
+
};
|
|
9286
|
+
const insertElementIndex = currentLength[elementType] || 0;
|
|
8757
9287
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8758
9288
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8759
9289
|
const notificationMessages = {
|
|
@@ -8788,6 +9318,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8788
9318
|
if (elementType === "Component") {
|
|
8789
9319
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
8790
9320
|
}
|
|
9321
|
+
if (elementType === "TabsComponent") {
|
|
9322
|
+
return `${parentPath}.tabLabelElements[${rowId}]`;
|
|
9323
|
+
}
|
|
8791
9324
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8792
9325
|
},
|
|
8793
9326
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
@@ -8841,7 +9374,7 @@ var pageMaster = (funcParams) => {
|
|
|
8841
9374
|
return formData;
|
|
8842
9375
|
}
|
|
8843
9376
|
saveFormdataInSessionStorage(config2);
|
|
8844
|
-
return config2;
|
|
9377
|
+
return { ...config2, type: "page" };
|
|
8845
9378
|
},
|
|
8846
9379
|
getUiSchema: function() {
|
|
8847
9380
|
const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
|
|
@@ -8863,6 +9396,8 @@ var pageMaster = (funcParams) => {
|
|
|
8863
9396
|
},
|
|
8864
9397
|
onAddClickHandler: function() {
|
|
8865
9398
|
var _a;
|
|
9399
|
+
if (validateAndShowErrors(store2))
|
|
9400
|
+
return;
|
|
8866
9401
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8867
9402
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8868
9403
|
store2.formData.elements = [];
|
|
@@ -8886,6 +9421,8 @@ var pageMaster = (funcParams) => {
|
|
|
8886
9421
|
},
|
|
8887
9422
|
eventAddHandler: function() {
|
|
8888
9423
|
var _a;
|
|
9424
|
+
if (validateAndShowErrors(store2))
|
|
9425
|
+
return;
|
|
8889
9426
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8890
9427
|
if (!Array.isArray(store2.formData.events)) {
|
|
8891
9428
|
store2.formData.events = [];
|
|
@@ -8896,6 +9433,8 @@ var pageMaster = (funcParams) => {
|
|
|
8896
9433
|
},
|
|
8897
9434
|
editEvent: function() {
|
|
8898
9435
|
var _a;
|
|
9436
|
+
if (validateAndShowErrors(store2))
|
|
9437
|
+
return;
|
|
8899
9438
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8900
9439
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8901
9440
|
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
@@ -8983,7 +9522,10 @@ const EventSchema = {
|
|
|
8983
9522
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
8984
9523
|
{ title: "Download", const: "onDownload" },
|
|
8985
9524
|
{ title: "Fail", const: "Fail" },
|
|
8986
|
-
{ title: "
|
|
9525
|
+
{ title: "onClose", const: "onClose" },
|
|
9526
|
+
{ title: "Key Down", const: "onKeyDown" },
|
|
9527
|
+
{ title: "Set Style", const: "setStyle" },
|
|
9528
|
+
{ title: "Expand Node", const: "onNodeExpandChange" }
|
|
8987
9529
|
]
|
|
8988
9530
|
},
|
|
8989
9531
|
Handler: {
|
|
@@ -9000,7 +9542,7 @@ const EventSchema = {
|
|
|
9000
9542
|
oneOf: [
|
|
9001
9543
|
{ title: "RankProvider", const: "RankProvider" },
|
|
9002
9544
|
{ title: "Download File", const: "downloadFile" },
|
|
9003
|
-
{ title: "
|
|
9545
|
+
{ title: "downloadFileFromUrl", const: "downloadFileFromUrl" }
|
|
9004
9546
|
]
|
|
9005
9547
|
},
|
|
9006
9548
|
body: {
|
|
@@ -9159,93 +9701,70 @@ const EventUiSchema = (theme) => {
|
|
|
9159
9701
|
disableAction: true,
|
|
9160
9702
|
disableSelection: true,
|
|
9161
9703
|
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
9704
|
},
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
header: "Edit",
|
|
9180
|
-
type: "action",
|
|
9181
|
-
size: 150,
|
|
9182
|
-
widget: {
|
|
9705
|
+
action: [
|
|
9706
|
+
{
|
|
9183
9707
|
type: "Control",
|
|
9184
9708
|
scope: "#/properties/Edit_Records",
|
|
9185
9709
|
options: {
|
|
9186
|
-
widget: "
|
|
9710
|
+
widget: "Button"
|
|
9187
9711
|
},
|
|
9188
9712
|
config: {
|
|
9189
9713
|
main: {
|
|
9190
9714
|
size: "small",
|
|
9191
|
-
|
|
9715
|
+
startIcon: "EditIcon",
|
|
9192
9716
|
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
|
-
}
|
|
9717
|
+
onClick: "editEvent",
|
|
9718
|
+
name: "Edit"
|
|
9200
9719
|
}
|
|
9201
9720
|
}
|
|
9202
|
-
}
|
|
9203
|
-
|
|
9204
|
-
{
|
|
9205
|
-
accessorKey: "Reject_Records",
|
|
9206
|
-
header: "Delete",
|
|
9207
|
-
type: "action",
|
|
9208
|
-
size: 150,
|
|
9209
|
-
widget: {
|
|
9721
|
+
},
|
|
9722
|
+
{
|
|
9210
9723
|
type: "Control",
|
|
9211
9724
|
scope: "#/properties/RejectButton",
|
|
9212
9725
|
options: {
|
|
9213
|
-
widget: "
|
|
9726
|
+
widget: "Button"
|
|
9214
9727
|
},
|
|
9215
9728
|
config: {
|
|
9216
9729
|
main: {
|
|
9217
|
-
|
|
9730
|
+
startIcon: "Bin",
|
|
9218
9731
|
tooltipMessage: "Reject This Record",
|
|
9219
|
-
onClick: "deletePopUpEvent"
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
fill: theme.palette.primary.main,
|
|
9223
|
-
"& :hover": {
|
|
9224
|
-
fill: theme.palette.primary.dark
|
|
9225
|
-
}
|
|
9732
|
+
onClick: "deletePopUpEvent",
|
|
9733
|
+
name: "Delete",
|
|
9734
|
+
size: "small"
|
|
9226
9735
|
}
|
|
9227
9736
|
}
|
|
9228
|
-
}
|
|
9229
|
-
|
|
9230
|
-
{
|
|
9231
|
-
header: "Copy",
|
|
9232
|
-
field: "Copy_Event",
|
|
9233
|
-
type: "action",
|
|
9234
|
-
size: 150,
|
|
9235
|
-
widget: {
|
|
9737
|
+
},
|
|
9738
|
+
{
|
|
9236
9739
|
type: "Control",
|
|
9237
9740
|
scope: "#/properties/Copy_Event",
|
|
9238
9741
|
options: {
|
|
9239
|
-
widget: "
|
|
9742
|
+
widget: "Button"
|
|
9240
9743
|
},
|
|
9241
9744
|
config: {
|
|
9242
9745
|
main: {
|
|
9243
|
-
|
|
9746
|
+
startIcon: "FileCopyIcon",
|
|
9244
9747
|
onClick: "copyPasteElement",
|
|
9245
|
-
styleDefault:
|
|
9748
|
+
styleDefault: false,
|
|
9749
|
+
name: "Copy",
|
|
9750
|
+
size: "small"
|
|
9246
9751
|
}
|
|
9247
9752
|
}
|
|
9248
9753
|
}
|
|
9754
|
+
]
|
|
9755
|
+
},
|
|
9756
|
+
elements: [
|
|
9757
|
+
{
|
|
9758
|
+
accessorKey: "eventType",
|
|
9759
|
+
header: "Event's Type",
|
|
9760
|
+
size: 300,
|
|
9761
|
+
type: "string"
|
|
9762
|
+
},
|
|
9763
|
+
{
|
|
9764
|
+
accessorKey: "Handler",
|
|
9765
|
+
header: "Handler",
|
|
9766
|
+
size: 200,
|
|
9767
|
+
type: "string"
|
|
9249
9768
|
}
|
|
9250
9769
|
]
|
|
9251
9770
|
}
|
|
@@ -9898,6 +10417,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9898
10417
|
},
|
|
9899
10418
|
addEvent: function() {
|
|
9900
10419
|
var _a, _b, _c;
|
|
10420
|
+
if (validateAndShowErrors(store2))
|
|
10421
|
+
return;
|
|
9901
10422
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9902
10423
|
if (!Array.isArray(store2.formData.events)) {
|
|
9903
10424
|
store2.formData.events = [];
|
|
@@ -9910,6 +10431,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9910
10431
|
},
|
|
9911
10432
|
editEvent: function() {
|
|
9912
10433
|
var _a;
|
|
10434
|
+
if (validateAndShowErrors(store2))
|
|
10435
|
+
return;
|
|
9913
10436
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9914
10437
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9915
10438
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
@@ -9960,31 +10483,47 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9960
10483
|
}
|
|
9961
10484
|
};
|
|
9962
10485
|
};
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
const
|
|
9966
|
-
const
|
|
9967
|
-
let
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
const
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
10486
|
+
function downloadFile$1({ data, name }) {
|
|
10487
|
+
var _a;
|
|
10488
|
+
const binary = window.atob(data);
|
|
10489
|
+
const bytes = new Uint8Array(binary.length);
|
|
10490
|
+
for (let i = 0; i < binary.length; i++) {
|
|
10491
|
+
bytes[i] = binary.charCodeAt(i);
|
|
10492
|
+
}
|
|
10493
|
+
const extension = (_a = name.split(".").pop()) == null ? void 0 : _a.toLowerCase();
|
|
10494
|
+
const mimeMap = {
|
|
10495
|
+
pdf: "application/pdf",
|
|
10496
|
+
png: "image/png",
|
|
10497
|
+
jpg: "image/jpeg",
|
|
10498
|
+
jpeg: "image/jpeg",
|
|
10499
|
+
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
10500
|
+
csv: "text/csv"
|
|
10501
|
+
};
|
|
10502
|
+
const blob = new Blob([bytes], {
|
|
10503
|
+
type: mimeMap[extension] || "application/octet-stream"
|
|
10504
|
+
});
|
|
10505
|
+
const url = URL.createObjectURL(blob);
|
|
10506
|
+
const a = document.createElement("a");
|
|
10507
|
+
a.href = url;
|
|
10508
|
+
a.download = name;
|
|
10509
|
+
a.click();
|
|
9975
10510
|
URL.revokeObjectURL(url);
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
const
|
|
9979
|
-
let url = `${service2.defaults.baseURL}/${response.path}`;
|
|
10511
|
+
}
|
|
10512
|
+
const downloadFileFromUrl = (response, service2) => {
|
|
10513
|
+
const url = new URL(response.path, service2.defaults.baseURL);
|
|
9980
10514
|
if (response == null ? void 0 : response.params) {
|
|
9981
|
-
const
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
10515
|
+
for (const [key, value] of Object.entries(response.params)) {
|
|
10516
|
+
if (value == null)
|
|
10517
|
+
continue;
|
|
10518
|
+
url.searchParams.append(
|
|
10519
|
+
key,
|
|
10520
|
+
Array.isArray(value) ? value.join(",") : String(value)
|
|
10521
|
+
);
|
|
10522
|
+
}
|
|
9985
10523
|
}
|
|
9986
10524
|
const link = document.createElement("a");
|
|
9987
|
-
link.href = url;
|
|
10525
|
+
link.href = url.toString();
|
|
10526
|
+
link.download = "";
|
|
9988
10527
|
document.body.appendChild(link);
|
|
9989
10528
|
link.click();
|
|
9990
10529
|
link.parentNode.removeChild(link);
|
|
@@ -10054,7 +10593,6 @@ function executeEventsHandler(params2) {
|
|
|
10054
10593
|
params2.componentName,
|
|
10055
10594
|
params2.config,
|
|
10056
10595
|
params2.store,
|
|
10057
|
-
params2.service,
|
|
10058
10596
|
params2.formDataHolder
|
|
10059
10597
|
);
|
|
10060
10598
|
} else if (params2.config.Handler === "onBackHandler") {
|
|
@@ -10126,7 +10664,7 @@ function executeCustomHandler(params) {
|
|
|
10126
10664
|
return response;
|
|
10127
10665
|
}
|
|
10128
10666
|
}
|
|
10129
|
-
function mergeFormdata(handlerResponse, componentName, eventConfig, store2,
|
|
10667
|
+
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, formDataHolder) {
|
|
10130
10668
|
var _a, _b, _c;
|
|
10131
10669
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10132
10670
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
@@ -10164,29 +10702,23 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
10164
10702
|
});
|
|
10165
10703
|
}
|
|
10166
10704
|
} else if (eventConfig.type === "page") {
|
|
10167
|
-
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
10705
|
+
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data) && lodash.exports.isObject(handlerResponse.data))) {
|
|
10168
10706
|
store2.newData = {
|
|
10169
10707
|
...store2.newData,
|
|
10170
10708
|
...handlerResponse == null ? void 0 : handlerResponse.data
|
|
10171
10709
|
};
|
|
10172
|
-
|
|
10173
|
-
|
|
10710
|
+
Object.keys(handlerResponse.data).forEach((e) => {
|
|
10711
|
+
formDataHolder[e] = handlerResponse.data[e];
|
|
10174
10712
|
});
|
|
10175
10713
|
}
|
|
10176
10714
|
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10177
10715
|
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10178
10716
|
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
10179
10717
|
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
10718
|
}
|
|
10184
10719
|
} else {
|
|
10185
|
-
if (handlerResponse) {
|
|
10720
|
+
if (handlerResponse == null ? void 0 : handlerResponse.data) {
|
|
10186
10721
|
formDataHolder[componentName] = handlerResponse.data;
|
|
10187
|
-
store2.setFormdata((pre) => {
|
|
10188
|
-
return { ...pre, ...formDataHolder };
|
|
10189
|
-
});
|
|
10190
10722
|
}
|
|
10191
10723
|
}
|
|
10192
10724
|
}
|
|
@@ -10324,14 +10856,14 @@ var service = (funcParams) => {
|
|
|
10324
10856
|
dynamicData: funcParams.dynamicData,
|
|
10325
10857
|
userValue: funcParams.userValue,
|
|
10326
10858
|
service: funcParams.service,
|
|
10327
|
-
serviceHolder: { downloadFile: downloadFile$1,
|
|
10859
|
+
serviceHolder: { downloadFile: downloadFile$1, downloadFileFromUrl, ...funcParams.functionsProvider },
|
|
10328
10860
|
eventGroups,
|
|
10329
10861
|
functionsProvider: funcParams.functionsProvider,
|
|
10330
10862
|
formDataHolder
|
|
10331
10863
|
};
|
|
10332
10864
|
return {
|
|
10333
10865
|
setPage: async function() {
|
|
10334
|
-
var _a, _b, _c
|
|
10866
|
+
var _a, _b, _c;
|
|
10335
10867
|
funcParams.store.setAdditionalErrors([]);
|
|
10336
10868
|
funcParams.store.setFormdata((funcParams == null ? void 0 : funcParams.initFormData()) || {});
|
|
10337
10869
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
@@ -10341,116 +10873,11 @@ var service = (funcParams) => {
|
|
|
10341
10873
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10342
10874
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10343
10875
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10344
|
-
detail: { pageName: config2.label, hasBackIcon: true }
|
|
10876
|
+
detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10345
10877
|
});
|
|
10346
10878
|
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: {} };
|
|
10879
|
+
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10880
|
+
const schema2 = (_c = pageData == null ? void 0 : pageData.schema) != null ? _c : { type: "object", properties: {} };
|
|
10454
10881
|
eventGroups = extractEvents(config2);
|
|
10455
10882
|
executeEventsParameters = {
|
|
10456
10883
|
config: {},
|
|
@@ -10464,7 +10891,16 @@ var service = (funcParams) => {
|
|
|
10464
10891
|
eventGroups,
|
|
10465
10892
|
formDataHolder
|
|
10466
10893
|
};
|
|
10467
|
-
|
|
10894
|
+
funcParams.store.setSchema(
|
|
10895
|
+
(pre) => {
|
|
10896
|
+
return {
|
|
10897
|
+
...schema2,
|
|
10898
|
+
...pre,
|
|
10899
|
+
properties: { ...schema2.properties, ...pre.properties }
|
|
10900
|
+
};
|
|
10901
|
+
}
|
|
10902
|
+
);
|
|
10903
|
+
executeRefreshHandler({
|
|
10468
10904
|
config: {},
|
|
10469
10905
|
componentName: "",
|
|
10470
10906
|
store: funcParams.store,
|
|
@@ -10473,34 +10909,49 @@ var service = (funcParams) => {
|
|
|
10473
10909
|
service: funcParams.service,
|
|
10474
10910
|
serviceHolder: this,
|
|
10475
10911
|
eventGroups,
|
|
10476
|
-
formDataHolder
|
|
10912
|
+
formDataHolder
|
|
10913
|
+
}).then((e) => {
|
|
10914
|
+
funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
|
|
10915
|
+
uiSchema.elements.push(notifyUiSchema);
|
|
10916
|
+
funcParams.store.setUiSchema(uiSchema);
|
|
10477
10917
|
});
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
|
|
10481
|
-
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
|
|
10918
|
+
},
|
|
10919
|
+
getStyle: () => {
|
|
10920
|
+
var _a, _b, _c, _d;
|
|
10921
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10922
|
+
if (cloneEventGroup.setStyle) {
|
|
10923
|
+
let finalResponse = {};
|
|
10924
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
|
|
10925
|
+
if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
|
|
10926
|
+
for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
|
|
10927
|
+
finalResponse = executeEvents({
|
|
10928
|
+
...executeEventsParameters,
|
|
10929
|
+
config: eventConfig,
|
|
10930
|
+
componentName: path
|
|
10931
|
+
});
|
|
10932
|
+
}
|
|
10933
|
+
return finalResponse;
|
|
10485
10934
|
}
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
funcParams.store.setUiSchema(uiSchema);
|
|
10935
|
+
}
|
|
10936
|
+
return {};
|
|
10489
10937
|
},
|
|
10490
10938
|
onCellRenderer: (cellParams) => {
|
|
10491
|
-
var _a, _b, _c, _d;
|
|
10492
|
-
|
|
10939
|
+
var _a, _b, _c, _d, _e;
|
|
10940
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10941
|
+
if (cloneEventGroup.onCellRenderer) {
|
|
10493
10942
|
let finalResponse = {};
|
|
10494
10943
|
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
|
-
|
|
10944
|
+
if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _d[path]) {
|
|
10945
|
+
for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _e[path]) {
|
|
10946
|
+
executeEventsParameters.store.functionParameters = cellParams;
|
|
10947
|
+
finalResponse = executeEvents({
|
|
10948
|
+
...executeEventsParameters,
|
|
10949
|
+
config: eventConfig,
|
|
10950
|
+
componentName: path
|
|
10951
|
+
});
|
|
10952
|
+
}
|
|
10953
|
+
return finalResponse;
|
|
10502
10954
|
}
|
|
10503
|
-
return finalResponse;
|
|
10504
10955
|
}
|
|
10505
10956
|
return {};
|
|
10506
10957
|
},
|
|
@@ -10513,6 +10964,9 @@ var service = (funcParams) => {
|
|
|
10513
10964
|
onFileDelete: async function() {
|
|
10514
10965
|
this.callHandler("onFileDelete");
|
|
10515
10966
|
},
|
|
10967
|
+
onClose: function() {
|
|
10968
|
+
this.callHandler("onClose");
|
|
10969
|
+
},
|
|
10516
10970
|
onMount: function() {
|
|
10517
10971
|
this.callHandler("onMount");
|
|
10518
10972
|
},
|
|
@@ -10542,11 +10996,20 @@ var service = (funcParams) => {
|
|
|
10542
10996
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
10543
10997
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
10544
10998
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
10545
|
-
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
|
|
10999
|
+
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
|
|
11000
|
+
{ key: "parentIds", value: paginationValues.parentIds },
|
|
11001
|
+
{ key: "isExpandAll", value: paginationValues.isExpandAll }
|
|
10546
11002
|
];
|
|
10547
11003
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10548
11004
|
return response == null ? void 0 : response.data;
|
|
10549
11005
|
},
|
|
11006
|
+
onNodeExpandChange: async function(param) {
|
|
11007
|
+
const apiBody = [
|
|
11008
|
+
{ key: "expandedNodeId", value: param.expandedNodeId }
|
|
11009
|
+
];
|
|
11010
|
+
const response = await this.callExecuteEvents(param, apiBody, "onNodeExpandChange");
|
|
11011
|
+
return response == null ? void 0 : response.data;
|
|
11012
|
+
},
|
|
10550
11013
|
getSelectOptions: async function(param) {
|
|
10551
11014
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10552
11015
|
const apiBody = [
|
|
@@ -10557,22 +11020,34 @@ var service = (funcParams) => {
|
|
|
10557
11020
|
return response == null ? void 0 : response.data;
|
|
10558
11021
|
}
|
|
10559
11022
|
},
|
|
10560
|
-
onChange:
|
|
10561
|
-
if (eventGroups.onChange)
|
|
10562
|
-
|
|
10563
|
-
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
11023
|
+
onChange: function() {
|
|
11024
|
+
if (!eventGroups.onChange)
|
|
11025
|
+
return;
|
|
11026
|
+
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
11027
|
+
const promises = ChangeEventsKeysArray.flatMap((componentName) => {
|
|
11028
|
+
var _a;
|
|
11029
|
+
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
|
|
11030
|
+
return [];
|
|
11031
|
+
}
|
|
11032
|
+
return eventGroups.onChange[componentName].map(
|
|
11033
|
+
(eventConfig) => Promise.resolve(
|
|
11034
|
+
executeEvents({
|
|
11035
|
+
...executeEventsParameters,
|
|
11036
|
+
config: eventConfig,
|
|
11037
|
+
componentName,
|
|
11038
|
+
formDataHolder
|
|
11039
|
+
})
|
|
11040
|
+
).then(() => {
|
|
11041
|
+
if (!lodash.exports.isEmpty(formDataHolder)) {
|
|
11042
|
+
funcParams.store.setFormdata((pre) => ({
|
|
11043
|
+
...pre,
|
|
11044
|
+
...formDataHolder
|
|
11045
|
+
}));
|
|
10572
11046
|
}
|
|
10573
|
-
}
|
|
10574
|
-
|
|
10575
|
-
}
|
|
11047
|
+
})
|
|
11048
|
+
);
|
|
11049
|
+
});
|
|
11050
|
+
Promise.allSettled(promises);
|
|
10576
11051
|
},
|
|
10577
11052
|
callExecuteEvents: async function(paramValue, apiBody, eventType) {
|
|
10578
11053
|
var _a, _b;
|
|
@@ -10602,7 +11077,7 @@ var service = (funcParams) => {
|
|
|
10602
11077
|
onBack: async function(functionParameters) {
|
|
10603
11078
|
var _a, _b;
|
|
10604
11079
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10605
|
-
|
|
11080
|
+
this.callHandler("onBack", functionParameters);
|
|
10606
11081
|
if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10607
11082
|
functionParameters == null ? void 0 : functionParameters.handleBack();
|
|
10608
11083
|
}
|
|
@@ -10610,7 +11085,7 @@ var service = (funcParams) => {
|
|
|
10610
11085
|
onNext: async function(functionParameters) {
|
|
10611
11086
|
var _a, _b;
|
|
10612
11087
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10613
|
-
|
|
11088
|
+
this.callHandler("onNext", functionParameters);
|
|
10614
11089
|
if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10615
11090
|
functionParameters == null ? void 0 : functionParameters.handleNext();
|
|
10616
11091
|
}
|
|
@@ -10618,27 +11093,38 @@ var service = (funcParams) => {
|
|
|
10618
11093
|
onReset: async function(functionParameters) {
|
|
10619
11094
|
var _a, _b;
|
|
10620
11095
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10621
|
-
|
|
11096
|
+
this.callHandler("onReset", functionParameters);
|
|
10622
11097
|
if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10623
11098
|
functionParameters == null ? void 0 : functionParameters.handleReset();
|
|
10624
11099
|
}
|
|
10625
11100
|
},
|
|
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
|
-
|
|
11101
|
+
callHandler: function(eventType, functionParameters) {
|
|
11102
|
+
var _a, _b;
|
|
11103
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".").pop();
|
|
11104
|
+
if (!((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]))
|
|
11105
|
+
return;
|
|
11106
|
+
const promises = eventGroups[eventType][path].map((eventConfig) => {
|
|
11107
|
+
executeEventsParameters.store.functionParameters = functionParameters;
|
|
11108
|
+
return Promise.resolve(
|
|
10632
11109
|
executeEvents({
|
|
10633
11110
|
...executeEventsParameters,
|
|
10634
11111
|
config: eventConfig,
|
|
10635
|
-
componentName: path
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
11112
|
+
componentName: path,
|
|
11113
|
+
formDataHolder
|
|
11114
|
+
})
|
|
11115
|
+
).then(() => {
|
|
11116
|
+
if (!lodash.exports.isEmpty(formDataHolder)) {
|
|
11117
|
+
funcParams.store.setFormdata((pre) => ({
|
|
11118
|
+
...pre,
|
|
11119
|
+
...formDataHolder
|
|
11120
|
+
}));
|
|
11121
|
+
}
|
|
11122
|
+
});
|
|
11123
|
+
});
|
|
11124
|
+
Promise.allSettled(promises);
|
|
10639
11125
|
},
|
|
10640
11126
|
downloadFile: downloadFile$1,
|
|
10641
|
-
|
|
11127
|
+
downloadFileFromUrl,
|
|
10642
11128
|
...funcParams.functionsProvider
|
|
10643
11129
|
};
|
|
10644
11130
|
};
|
|
@@ -10687,6 +11173,9 @@ const buildLeaderBoard = (config2) => {
|
|
|
10687
11173
|
if (config2.scoreKey) {
|
|
10688
11174
|
LeaderBoard.config.main.scoreKey = config2.scoreKey;
|
|
10689
11175
|
}
|
|
11176
|
+
if (config2.isScoreAmount) {
|
|
11177
|
+
LeaderBoard.config.main.isScoreAmount = config2.isScoreAmount === "YES" ? true : false;
|
|
11178
|
+
}
|
|
10690
11179
|
if (config2.layout) {
|
|
10691
11180
|
LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10692
11181
|
}
|
|
@@ -10737,6 +11226,15 @@ const buildProgressBar = (config2, componentScope2) => {
|
|
|
10737
11226
|
ProgressBar.config.layout = config2.layout;
|
|
10738
11227
|
}
|
|
10739
11228
|
ProgressBar.config.main.heading = config2.label;
|
|
11229
|
+
if (config2.variant) {
|
|
11230
|
+
ProgressBar.config.main.variant = config2.variant;
|
|
11231
|
+
}
|
|
11232
|
+
if (config2.pieArcColors) {
|
|
11233
|
+
ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
11234
|
+
}
|
|
11235
|
+
if (config2.size) {
|
|
11236
|
+
ProgressBar.config.main.size = Number(config2.size);
|
|
11237
|
+
}
|
|
10740
11238
|
if (config2.bottomLabel_3) {
|
|
10741
11239
|
ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
|
|
10742
11240
|
}
|
|
@@ -10763,7 +11261,7 @@ const BarGraph = {
|
|
|
10763
11261
|
type: "BarGraph",
|
|
10764
11262
|
legendLabels: null
|
|
10765
11263
|
},
|
|
10766
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11264
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10767
11265
|
}
|
|
10768
11266
|
};
|
|
10769
11267
|
const PieGraph = {
|
|
@@ -10778,7 +11276,7 @@ const PieGraph = {
|
|
|
10778
11276
|
type: "PieGraph",
|
|
10779
11277
|
legendLabels: null
|
|
10780
11278
|
},
|
|
10781
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11279
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10782
11280
|
}
|
|
10783
11281
|
};
|
|
10784
11282
|
const LineGraph = {
|
|
@@ -10793,7 +11291,7 @@ const LineGraph = {
|
|
|
10793
11291
|
type: "LineGraph",
|
|
10794
11292
|
legendLabels: null
|
|
10795
11293
|
},
|
|
10796
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11294
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10797
11295
|
}
|
|
10798
11296
|
};
|
|
10799
11297
|
const HorizontalBarGraph = {
|
|
@@ -10808,29 +11306,62 @@ const HorizontalBarGraph = {
|
|
|
10808
11306
|
type: "HorizontalBarGraph",
|
|
10809
11307
|
legendLabels: null
|
|
10810
11308
|
},
|
|
10811
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11309
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10812
11310
|
}
|
|
10813
11311
|
};
|
|
10814
|
-
const
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
11312
|
+
const AreaBarGraph = {
|
|
11313
|
+
type: "Control",
|
|
11314
|
+
scope: "#/properties/graph",
|
|
11315
|
+
options: {
|
|
11316
|
+
widget: "Graph"
|
|
11317
|
+
},
|
|
11318
|
+
config: {
|
|
11319
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11320
|
+
main: {
|
|
11321
|
+
type: "AreaGraph",
|
|
11322
|
+
legendLabels: null
|
|
11323
|
+
},
|
|
11324
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10819
11325
|
}
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
11326
|
+
};
|
|
11327
|
+
const StackBarLineG = {
|
|
11328
|
+
type: "Control",
|
|
11329
|
+
scope: "#/properties/graph",
|
|
11330
|
+
options: {
|
|
11331
|
+
widget: "Graph"
|
|
11332
|
+
},
|
|
11333
|
+
config: {
|
|
11334
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11335
|
+
main: {
|
|
11336
|
+
type: "StackBarLineGraph",
|
|
11337
|
+
legendLabels: null
|
|
11338
|
+
},
|
|
11339
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11340
|
+
}
|
|
11341
|
+
};
|
|
11342
|
+
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
11343
|
+
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
11344
|
+
horizontalBarGraph.scope = componentScope2;
|
|
11345
|
+
if (config2.layout) {
|
|
11346
|
+
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11347
|
+
}
|
|
11348
|
+
horizontalBarGraph.config.main.type = config2.graphType;
|
|
11349
|
+
horizontalBarGraph.scope = componentScope2;
|
|
11350
|
+
horizontalBarGraph.config.main.header = config2.heading;
|
|
11351
|
+
if (config2.legendHide) {
|
|
10824
11352
|
horizontalBarGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10825
11353
|
}
|
|
10826
11354
|
if (config2.bottomAxisAngle) {
|
|
10827
11355
|
horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10828
11356
|
}
|
|
10829
11357
|
if (config2.legendLabels) {
|
|
10830
|
-
horizontalBarGraph.config.main.legendLabels =
|
|
11358
|
+
horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11359
|
+
}
|
|
11360
|
+
if (config2.legendDirection) {
|
|
11361
|
+
horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
10831
11362
|
}
|
|
10832
11363
|
if (config2.pieArcColors) {
|
|
10833
|
-
horizontalBarGraph.config.style.
|
|
11364
|
+
horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
10834
11365
|
}
|
|
10835
11366
|
if (config2.xAxisValue) {
|
|
10836
11367
|
horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -10849,6 +11380,9 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10849
11380
|
if (config2.leftLabel) {
|
|
10850
11381
|
horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
|
|
10851
11382
|
}
|
|
11383
|
+
if (config2.disableLeftLabel) {
|
|
11384
|
+
horizontalBarGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
11385
|
+
}
|
|
10852
11386
|
return horizontalBarGraph;
|
|
10853
11387
|
};
|
|
10854
11388
|
var SpeedoMeter = {
|
|
@@ -10955,16 +11489,19 @@ const buildPieGraph = (config2, componentScope2) => {
|
|
|
10955
11489
|
if (config2.legendHide) {
|
|
10956
11490
|
pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10957
11491
|
}
|
|
11492
|
+
if (config2.legendDirection) {
|
|
11493
|
+
pieGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
11494
|
+
}
|
|
10958
11495
|
pieGraph.scope = componentScope2;
|
|
10959
11496
|
pieGraph.config.main.header = config2.heading;
|
|
10960
11497
|
if (config2.legendLabels) {
|
|
10961
|
-
pieGraph.config.main.legendLabels =
|
|
11498
|
+
pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
10962
11499
|
}
|
|
10963
11500
|
if (config2.xAxisValue) {
|
|
10964
11501
|
pieGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10965
11502
|
}
|
|
10966
11503
|
if (config2.pieArcColors) {
|
|
10967
|
-
pieGraph.config.style.
|
|
11504
|
+
pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
10968
11505
|
}
|
|
10969
11506
|
return pieGraph;
|
|
10970
11507
|
};
|
|
@@ -10978,16 +11515,19 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
10978
11515
|
barGraph.config.main.legendAvailable = config2.legendHide;
|
|
10979
11516
|
barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10980
11517
|
}
|
|
11518
|
+
if (config2.legendDirection) {
|
|
11519
|
+
barGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
11520
|
+
}
|
|
10981
11521
|
if (config2.bottomAxisAngle) {
|
|
10982
11522
|
barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10983
11523
|
}
|
|
10984
11524
|
barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
|
|
10985
11525
|
barGraph.config.main.header = config2.heading;
|
|
10986
11526
|
if (config2.legendLabels) {
|
|
10987
|
-
barGraph.config.main.legendLabels =
|
|
11527
|
+
barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
10988
11528
|
}
|
|
10989
11529
|
if (config2.pieArcColors) {
|
|
10990
|
-
barGraph.config.style.
|
|
11530
|
+
barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
10991
11531
|
}
|
|
10992
11532
|
if (config2.xAxisValue) {
|
|
10993
11533
|
barGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11006,6 +11546,9 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
11006
11546
|
if (config2.leftLabel) {
|
|
11007
11547
|
barGraph.config.main.leftLabel = config2.leftLabel;
|
|
11008
11548
|
}
|
|
11549
|
+
if (config2.disableLeftLabel) {
|
|
11550
|
+
barGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
11551
|
+
}
|
|
11009
11552
|
barGraph.scope = componentScope2;
|
|
11010
11553
|
return barGraph;
|
|
11011
11554
|
};
|
|
@@ -11050,6 +11593,10 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
11050
11593
|
}
|
|
11051
11594
|
if (config2.sectionLabels) {
|
|
11052
11595
|
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
11596
|
+
tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
|
|
11597
|
+
}
|
|
11598
|
+
if (config2.style) {
|
|
11599
|
+
tab.config.style = JSON.parse(config2.style);
|
|
11053
11600
|
}
|
|
11054
11601
|
tab.config.main.id = config2.name;
|
|
11055
11602
|
return tab;
|
|
@@ -11059,9 +11606,11 @@ var WrapperSection = {
|
|
|
11059
11606
|
config: {
|
|
11060
11607
|
layout: 12,
|
|
11061
11608
|
main: {
|
|
11062
|
-
rowSpacing: 3,
|
|
11063
11609
|
divider: true,
|
|
11064
|
-
label: "Default Label"
|
|
11610
|
+
label: "Default Label",
|
|
11611
|
+
rowSpacing: 2,
|
|
11612
|
+
columnSpacing: 2,
|
|
11613
|
+
spacing: 2
|
|
11065
11614
|
},
|
|
11066
11615
|
defaultStyle: true
|
|
11067
11616
|
},
|
|
@@ -11073,6 +11622,11 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11073
11622
|
wrapper.config.main.label = config2.label;
|
|
11074
11623
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11075
11624
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11625
|
+
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11626
|
+
wrapper.config.main.icon = config2.iconUrl;
|
|
11627
|
+
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11628
|
+
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11629
|
+
wrapper.config.main.spacing = Number(config2.spacing);
|
|
11076
11630
|
if (config2.defaultStyle) {
|
|
11077
11631
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11078
11632
|
}
|
|
@@ -11122,6 +11676,15 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
11122
11676
|
if (config2.layout) {
|
|
11123
11677
|
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11124
11678
|
}
|
|
11679
|
+
if (config2.toolTip) {
|
|
11680
|
+
inputField.config.main.toolTip = config2.toolTip;
|
|
11681
|
+
}
|
|
11682
|
+
if (config2.toolTipPosition) {
|
|
11683
|
+
inputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11684
|
+
}
|
|
11685
|
+
if (config2.iconName) {
|
|
11686
|
+
inputField.config.main.startIcon = config2.iconName;
|
|
11687
|
+
}
|
|
11125
11688
|
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11126
11689
|
inputField.scope = componentScope2;
|
|
11127
11690
|
return inputField;
|
|
@@ -11138,7 +11701,8 @@ var SelectInputField = {
|
|
|
11138
11701
|
label: "",
|
|
11139
11702
|
type: "text",
|
|
11140
11703
|
freeSole: false
|
|
11141
|
-
}
|
|
11704
|
+
},
|
|
11705
|
+
style: {}
|
|
11142
11706
|
}
|
|
11143
11707
|
};
|
|
11144
11708
|
const buildSelect = (config2, componentScope2) => {
|
|
@@ -11159,6 +11723,15 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11159
11723
|
if (config2.layout) {
|
|
11160
11724
|
selectInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11161
11725
|
}
|
|
11726
|
+
if (config2.toolTip) {
|
|
11727
|
+
selectInputField.config.main.toolTip = config2.toolTip;
|
|
11728
|
+
}
|
|
11729
|
+
if (config2.toolTipPosition) {
|
|
11730
|
+
selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11731
|
+
}
|
|
11732
|
+
if (config2.style) {
|
|
11733
|
+
selectInputField.config.style = JSON.parse(config2.style);
|
|
11734
|
+
}
|
|
11162
11735
|
selectInputField.scope = componentScope2;
|
|
11163
11736
|
return selectInputField;
|
|
11164
11737
|
};
|
|
@@ -11248,6 +11821,9 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11248
11821
|
if (config2.lazyLoading) {
|
|
11249
11822
|
table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11250
11823
|
}
|
|
11824
|
+
if (config2.defaultColumnSize) {
|
|
11825
|
+
table.config.main.defaultColumnSize = config2.defaultColumnSize;
|
|
11826
|
+
}
|
|
11251
11827
|
if (config2.enableRowMovement) {
|
|
11252
11828
|
table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
|
|
11253
11829
|
}
|
|
@@ -11263,9 +11839,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11263
11839
|
if (config2.paginateExpandedRows) {
|
|
11264
11840
|
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
11265
11841
|
}
|
|
11266
|
-
if (config2.treeStructure) {
|
|
11267
|
-
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
11268
|
-
}
|
|
11269
11842
|
if (config2.SelectionAvailable) {
|
|
11270
11843
|
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
11271
11844
|
}
|
|
@@ -11308,6 +11881,15 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11308
11881
|
if (config2.selectKey) {
|
|
11309
11882
|
table.config.main.selectKey = config2.selectKey;
|
|
11310
11883
|
}
|
|
11884
|
+
if (config2.maxPageSize) {
|
|
11885
|
+
table.config.main.maxPageSize = config2.maxPageSize;
|
|
11886
|
+
}
|
|
11887
|
+
if (config2.initialDensity) {
|
|
11888
|
+
table.config.main.initialDensity = config2.initialDensity;
|
|
11889
|
+
}
|
|
11890
|
+
if (config2.layout) {
|
|
11891
|
+
table.config.layout = createLayoutFormat(config2.layout);
|
|
11892
|
+
}
|
|
11311
11893
|
return table;
|
|
11312
11894
|
};
|
|
11313
11895
|
const Box = {
|
|
@@ -11318,7 +11900,10 @@ const Box = {
|
|
|
11318
11900
|
},
|
|
11319
11901
|
config: {
|
|
11320
11902
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11321
|
-
main: {
|
|
11903
|
+
main: {
|
|
11904
|
+
iconName: "",
|
|
11905
|
+
onClick: "onClick"
|
|
11906
|
+
},
|
|
11322
11907
|
style: {}
|
|
11323
11908
|
}
|
|
11324
11909
|
};
|
|
@@ -11329,6 +11914,9 @@ const buildLabel = (config2, componentScope2) => {
|
|
|
11329
11914
|
if (config2.layout) {
|
|
11330
11915
|
box.config.layout = createLayoutFormat(config2.layout);
|
|
11331
11916
|
}
|
|
11917
|
+
if (config2.iconName) {
|
|
11918
|
+
box.config.main.iconName = config2.iconName;
|
|
11919
|
+
}
|
|
11332
11920
|
if (config2.style) {
|
|
11333
11921
|
box.config.style = JSON.parse(config2.style);
|
|
11334
11922
|
}
|
|
@@ -11383,12 +11971,19 @@ const buildUploadFile = (config2, componentScope2) => {
|
|
|
11383
11971
|
if (config2.required) {
|
|
11384
11972
|
UploadFile.config.main.required = true;
|
|
11385
11973
|
}
|
|
11974
|
+
if (config2.toolTip) {
|
|
11975
|
+
UploadFile.config.main.toolTip = config2.toolTip;
|
|
11976
|
+
}
|
|
11977
|
+
if (config2.toolTipPosition) {
|
|
11978
|
+
UploadFile.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11979
|
+
}
|
|
11386
11980
|
UploadFile.config.main.errorMessage = config2.errorMessage;
|
|
11387
11981
|
return UploadFile;
|
|
11388
11982
|
};
|
|
11389
11983
|
const buildDownloadFile = (config2, componentScope2) => {
|
|
11390
11984
|
const DownloadFile = _.cloneDeep(downloadFile);
|
|
11391
11985
|
DownloadFile.scope = componentScope2;
|
|
11986
|
+
DownloadFile.config.main.label = config2.label;
|
|
11392
11987
|
if (config2.layout) {
|
|
11393
11988
|
DownloadFile.config.layout = config2.layout;
|
|
11394
11989
|
}
|
|
@@ -11404,6 +11999,12 @@ const buildDownloadFile = (config2, componentScope2) => {
|
|
|
11404
11999
|
if (config2.errorMessage) {
|
|
11405
12000
|
DownloadFile.config.main.errorMessage = config2.errorMessage;
|
|
11406
12001
|
}
|
|
12002
|
+
if (config2.toolTip) {
|
|
12003
|
+
DownloadFile.config.main.toolTip = config2.toolTip;
|
|
12004
|
+
}
|
|
12005
|
+
if (config2.toolTipPosition) {
|
|
12006
|
+
DownloadFile.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12007
|
+
}
|
|
11407
12008
|
return DownloadFile;
|
|
11408
12009
|
};
|
|
11409
12010
|
function Card(theme) {
|
|
@@ -11411,192 +12012,159 @@ function Card(theme) {
|
|
|
11411
12012
|
type: "WrapperLayout",
|
|
11412
12013
|
config: {
|
|
11413
12014
|
main: {},
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
12015
|
+
style: {
|
|
12016
|
+
wrapperStyle: {
|
|
12017
|
+
position: "relative",
|
|
12018
|
+
top: "50%",
|
|
12019
|
+
transform: "translateY(-50%)",
|
|
12020
|
+
marginBottom: 0,
|
|
12021
|
+
borderRadius: "12px",
|
|
12022
|
+
fontFamily: "poppins"
|
|
12023
|
+
},
|
|
12024
|
+
componentsBoxStyle: {
|
|
12025
|
+
boxShadow: "0 0 6px 1px rgba(149, 147, 147, 0.25)",
|
|
12026
|
+
flexDirection: "column",
|
|
12027
|
+
overflow: "hidden",
|
|
12028
|
+
flexWrap: "nowrap",
|
|
12029
|
+
width: "100% !important",
|
|
12030
|
+
background: "transparent",
|
|
12031
|
+
borderRadius: "12px",
|
|
12032
|
+
padding: "20px 20px 20px 14px",
|
|
12033
|
+
height: "100%",
|
|
12034
|
+
minHeight: "100px",
|
|
12035
|
+
position: "relative",
|
|
12036
|
+
marginLeft: "0px",
|
|
12037
|
+
"&: hover": {
|
|
12038
|
+
background: `${theme.palette.primary.main}`,
|
|
12039
|
+
color: `${theme.palette.primary.contrastText}`
|
|
11437
12040
|
}
|
|
11438
12041
|
}
|
|
11439
12042
|
},
|
|
11440
|
-
layout: { xs: 12, sm: 12, md:
|
|
12043
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 }
|
|
11441
12044
|
},
|
|
11442
12045
|
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
12046
|
{
|
|
11575
12047
|
type: "Control",
|
|
11576
|
-
scope: "#/properties/
|
|
12048
|
+
scope: "#/properties/initilCardScope",
|
|
11577
12049
|
config: {
|
|
11578
12050
|
main: {
|
|
11579
12051
|
url: "https://www.svgrepo.com/show/500606/loading.svg"
|
|
11580
12052
|
},
|
|
11581
12053
|
style: {
|
|
11582
12054
|
containerStyle: {
|
|
11583
|
-
|
|
12055
|
+
position: "absolute",
|
|
12056
|
+
color: "inherit",
|
|
12057
|
+
top: "4px",
|
|
12058
|
+
right: "4px",
|
|
11584
12059
|
display: "flex",
|
|
11585
|
-
justifyContent: "end"
|
|
12060
|
+
justifyContent: "flex-end",
|
|
12061
|
+
alignItems: "flex-start"
|
|
11586
12062
|
},
|
|
11587
12063
|
imageStyle: {
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
12064
|
+
color: "inherit",
|
|
12065
|
+
width: "32px",
|
|
12066
|
+
height: "32px",
|
|
12067
|
+
padding: "0px",
|
|
12068
|
+
margin: "0px"
|
|
11593
12069
|
}
|
|
11594
|
-
}
|
|
11595
|
-
layout: 4
|
|
12070
|
+
}
|
|
11596
12071
|
},
|
|
11597
12072
|
options: {
|
|
11598
12073
|
widget: "Image"
|
|
11599
12074
|
}
|
|
12075
|
+
},
|
|
12076
|
+
{
|
|
12077
|
+
type: "Control",
|
|
12078
|
+
scope: "#/properties/initilCardScope",
|
|
12079
|
+
config: {
|
|
12080
|
+
main: {
|
|
12081
|
+
heading: "Total Earnings"
|
|
12082
|
+
},
|
|
12083
|
+
style: {
|
|
12084
|
+
color: "inherit",
|
|
12085
|
+
fontSize: "16px",
|
|
12086
|
+
fontWeight: 300,
|
|
12087
|
+
fontFamily: "Poppins",
|
|
12088
|
+
justifyContent: "flex-start",
|
|
12089
|
+
background: "inherit",
|
|
12090
|
+
position: "absolute",
|
|
12091
|
+
top: "8px",
|
|
12092
|
+
left: "12px",
|
|
12093
|
+
display: "flex",
|
|
12094
|
+
maxWidth: "200px",
|
|
12095
|
+
whiteSpace: "nowrap",
|
|
12096
|
+
overflowX: "auto",
|
|
12097
|
+
scrollbarWidth: "none",
|
|
12098
|
+
"&::-webkit-scrollbar": {
|
|
12099
|
+
display: "none"
|
|
12100
|
+
}
|
|
12101
|
+
}
|
|
12102
|
+
},
|
|
12103
|
+
options: {
|
|
12104
|
+
widget: "Box"
|
|
12105
|
+
}
|
|
12106
|
+
},
|
|
12107
|
+
{
|
|
12108
|
+
type: "Control",
|
|
12109
|
+
scope: "#/properties/initilCardScope",
|
|
12110
|
+
config: {
|
|
12111
|
+
main: {
|
|
12112
|
+
heading: "5000.00"
|
|
12113
|
+
},
|
|
12114
|
+
style: {
|
|
12115
|
+
color: "inherit",
|
|
12116
|
+
display: "flex",
|
|
12117
|
+
fontSize: { xs: "22px", md: "40px" },
|
|
12118
|
+
fontWeight: 600,
|
|
12119
|
+
background: "inherit",
|
|
12120
|
+
justifyContent: "flex-start",
|
|
12121
|
+
width: "100%",
|
|
12122
|
+
margin: "0px",
|
|
12123
|
+
marginBottom: "4px",
|
|
12124
|
+
marginTop: "8px",
|
|
12125
|
+
lineHeight: "1",
|
|
12126
|
+
maxWidth: "300px",
|
|
12127
|
+
whiteSpace: "nowrap",
|
|
12128
|
+
overflowX: "auto",
|
|
12129
|
+
overflowY: "hidden",
|
|
12130
|
+
scrollbarWidth: "none",
|
|
12131
|
+
"&::-webkit-scrollbar": {
|
|
12132
|
+
display: "none"
|
|
12133
|
+
}
|
|
12134
|
+
}
|
|
12135
|
+
},
|
|
12136
|
+
options: {
|
|
12137
|
+
widget: "Box"
|
|
12138
|
+
}
|
|
12139
|
+
},
|
|
12140
|
+
{
|
|
12141
|
+
type: "Control",
|
|
12142
|
+
scope: "#/properties/initilCardScope",
|
|
12143
|
+
config: {
|
|
12144
|
+
main: {
|
|
12145
|
+
heading: "Increased from last month"
|
|
12146
|
+
},
|
|
12147
|
+
style: {
|
|
12148
|
+
color: "inherit",
|
|
12149
|
+
fontSize: "12px",
|
|
12150
|
+
fontWeight: "400",
|
|
12151
|
+
justifyContent: "flex-start",
|
|
12152
|
+
background: "inherit",
|
|
12153
|
+
margin: "0px",
|
|
12154
|
+
paddingLeft: "2px",
|
|
12155
|
+
marginBottom: "8px",
|
|
12156
|
+
maxWidth: "200px",
|
|
12157
|
+
whiteSpace: "nowrap",
|
|
12158
|
+
overflowX: "auto",
|
|
12159
|
+
scrollbarWidth: "none",
|
|
12160
|
+
"&::-webkit-scrollbar": {
|
|
12161
|
+
display: "none"
|
|
12162
|
+
}
|
|
12163
|
+
}
|
|
12164
|
+
},
|
|
12165
|
+
options: {
|
|
12166
|
+
widget: "Box"
|
|
12167
|
+
}
|
|
11600
12168
|
}
|
|
11601
12169
|
]
|
|
11602
12170
|
};
|
|
@@ -11607,9 +12175,10 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11607
12175
|
if (config.style) {
|
|
11608
12176
|
card.config.wrapperStyle = JSON.parse(config.style);
|
|
11609
12177
|
}
|
|
11610
|
-
card.elements[0].
|
|
11611
|
-
card.elements[1].scope = `#/properties/${config.name}/properties/
|
|
11612
|
-
card.elements[
|
|
12178
|
+
card.elements[0].scope = `#/properties/${config.name}/properties/url`;
|
|
12179
|
+
card.elements[1].scope = `#/properties/${config.name}/properties/label`;
|
|
12180
|
+
card.elements[2].scope = `#/properties/${config.name}/properties/value`;
|
|
12181
|
+
card.elements[3].scope = `#/properties/${config.name}/properties/description`;
|
|
11613
12182
|
if (config.layout) {
|
|
11614
12183
|
card.config.layout = createLayoutFormat(config.layout);
|
|
11615
12184
|
}
|
|
@@ -11618,16 +12187,56 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11618
12187
|
card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
|
|
11619
12188
|
}
|
|
11620
12189
|
if (config.label) {
|
|
11621
|
-
card.elements[
|
|
12190
|
+
card.elements[1].config.main.heading = config.label;
|
|
11622
12191
|
}
|
|
11623
12192
|
if (config.url) {
|
|
11624
|
-
card.elements[
|
|
12193
|
+
card.elements[0].config.main.url = config.url;
|
|
11625
12194
|
}
|
|
11626
12195
|
if (config.description) {
|
|
11627
|
-
card.elements[
|
|
12196
|
+
card.elements[3].config.main.heading = config.description;
|
|
11628
12197
|
}
|
|
11629
12198
|
return card;
|
|
11630
12199
|
};
|
|
12200
|
+
var MetricCard = {
|
|
12201
|
+
type: "Control",
|
|
12202
|
+
scope: "#/properties/metricpath",
|
|
12203
|
+
options: {
|
|
12204
|
+
widget: "MetricCard"
|
|
12205
|
+
},
|
|
12206
|
+
config: {
|
|
12207
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
12208
|
+
main: {}
|
|
12209
|
+
}
|
|
12210
|
+
};
|
|
12211
|
+
const buildMetricCard = (config2, componentScope2, store2) => {
|
|
12212
|
+
const card2 = _.cloneDeep(MetricCard);
|
|
12213
|
+
card2.scope = componentScope2;
|
|
12214
|
+
if (config2.style) {
|
|
12215
|
+
card2.config.style = JSON.parse(config2.style);
|
|
12216
|
+
}
|
|
12217
|
+
if (config2.layout) {
|
|
12218
|
+
card2.config.layout = createLayoutFormat(config2.layout);
|
|
12219
|
+
}
|
|
12220
|
+
if (config2.label) {
|
|
12221
|
+
card2.config.main.label = config2.label;
|
|
12222
|
+
}
|
|
12223
|
+
if (config2.url) {
|
|
12224
|
+
card2.config.main.url = config2.url;
|
|
12225
|
+
}
|
|
12226
|
+
if (config2.description) {
|
|
12227
|
+
card2.config.main.description = config2.description;
|
|
12228
|
+
}
|
|
12229
|
+
if (config2.cardValue) {
|
|
12230
|
+
card2.config.main.cardValue = config2.cardValue;
|
|
12231
|
+
}
|
|
12232
|
+
if (config2.growthRate) {
|
|
12233
|
+
card2.config.main.growthRate = config2.growthRate;
|
|
12234
|
+
}
|
|
12235
|
+
if (config2.color) {
|
|
12236
|
+
card2.config.main.color = config2.color;
|
|
12237
|
+
}
|
|
12238
|
+
return card2;
|
|
12239
|
+
};
|
|
11631
12240
|
var DateInputField = {
|
|
11632
12241
|
type: "Control",
|
|
11633
12242
|
scope: "#/properties/date",
|
|
@@ -11659,21 +12268,43 @@ const DateTime = {
|
|
|
11659
12268
|
const buildDate = (config2, componentScope2) => {
|
|
11660
12269
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
11661
12270
|
dateInputField.config.main.label = config2.label;
|
|
11662
|
-
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11663
12271
|
dateInputField.scope = componentScope2;
|
|
11664
12272
|
if (config2.layout) {
|
|
11665
12273
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11666
12274
|
}
|
|
12275
|
+
if (config2.variant) {
|
|
12276
|
+
dateInputField.config.main.variant = config2.variant;
|
|
12277
|
+
}
|
|
12278
|
+
if (config2.toolTip) {
|
|
12279
|
+
dateInputField.config.main.toolTip = config2.toolTip;
|
|
12280
|
+
}
|
|
12281
|
+
if (config2.toolTipPosition) {
|
|
12282
|
+
dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12283
|
+
}
|
|
12284
|
+
if (config2.style) {
|
|
12285
|
+
dateInputField.config.style = JSON.parse(config2.style);
|
|
12286
|
+
}
|
|
11667
12287
|
return dateInputField;
|
|
11668
12288
|
};
|
|
11669
12289
|
const buildDateTime = (config2, componentScope2) => {
|
|
11670
12290
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
11671
12291
|
dateTimeInputField.config.main.label = config2.label;
|
|
11672
|
-
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11673
12292
|
dateTimeInputField.scope = componentScope2;
|
|
11674
12293
|
if (config2.layout) {
|
|
11675
12294
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11676
12295
|
}
|
|
12296
|
+
if (config2.variant) {
|
|
12297
|
+
dateTimeInputField.config.main.variant = config2.variant;
|
|
12298
|
+
}
|
|
12299
|
+
if (config2.toolTip) {
|
|
12300
|
+
dateTimeInputField.config.main.toolTip = config2.toolTip;
|
|
12301
|
+
}
|
|
12302
|
+
if (config2.toolTipPosition) {
|
|
12303
|
+
dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12304
|
+
}
|
|
12305
|
+
if (config2.style) {
|
|
12306
|
+
dateTimeInputField.config.style = JSON.parse(config2.style);
|
|
12307
|
+
}
|
|
11677
12308
|
return dateTimeInputField;
|
|
11678
12309
|
};
|
|
11679
12310
|
var RankCard = {
|
|
@@ -11764,7 +12395,8 @@ var MultipleSelect = {
|
|
|
11764
12395
|
multiple: true,
|
|
11765
12396
|
variant: "outlined",
|
|
11766
12397
|
options: []
|
|
11767
|
-
}
|
|
12398
|
+
},
|
|
12399
|
+
style: {}
|
|
11768
12400
|
}
|
|
11769
12401
|
};
|
|
11770
12402
|
const buildMultiSelect = (config2, componentScope2) => {
|
|
@@ -11785,6 +12417,15 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
11785
12417
|
if (config2.lazyLoading) {
|
|
11786
12418
|
multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11787
12419
|
}
|
|
12420
|
+
if (config2.toolTip) {
|
|
12421
|
+
multipleSelect.config.main.toolTip = config2.toolTip;
|
|
12422
|
+
}
|
|
12423
|
+
if (config2.toolTipPosition) {
|
|
12424
|
+
multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12425
|
+
}
|
|
12426
|
+
if (config2.style) {
|
|
12427
|
+
multipleSelect.config.style = JSON.parse(config2.style);
|
|
12428
|
+
}
|
|
11788
12429
|
return multipleSelect;
|
|
11789
12430
|
};
|
|
11790
12431
|
const buildBasicUiSchema = (config2) => {
|
|
@@ -11918,17 +12559,23 @@ const buildLineGraph = (config2, componentScope2) => {
|
|
|
11918
12559
|
if (config2.leftLabel) {
|
|
11919
12560
|
lineGraph.config.main.leftLabel = config2.leftLabel;
|
|
11920
12561
|
}
|
|
12562
|
+
if (config2.disableLeftLabel) {
|
|
12563
|
+
lineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
12564
|
+
}
|
|
11921
12565
|
if (config2.legendHide) {
|
|
11922
12566
|
lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
11923
12567
|
}
|
|
12568
|
+
if (config2.legendDirection) {
|
|
12569
|
+
lineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
12570
|
+
}
|
|
11924
12571
|
if (config2.bottomAxisAngle) {
|
|
11925
12572
|
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
11926
12573
|
}
|
|
11927
12574
|
if (config2.legendLabels) {
|
|
11928
|
-
lineGraph.config.main.legendLabels =
|
|
12575
|
+
lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11929
12576
|
}
|
|
11930
12577
|
if (config2.pieArcColors) {
|
|
11931
|
-
lineGraph.config.style.
|
|
12578
|
+
lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11932
12579
|
}
|
|
11933
12580
|
lineGraph.scope = componentScope2;
|
|
11934
12581
|
return lineGraph;
|
|
@@ -11943,8 +12590,7 @@ const RadioUiSchema = {
|
|
|
11943
12590
|
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11944
12591
|
main: {
|
|
11945
12592
|
label: "Enabled",
|
|
11946
|
-
options: ["YES", "NO"]
|
|
11947
|
-
errorMessage: "Enabled is not marked as YES or NO"
|
|
12593
|
+
options: ["YES", "NO"]
|
|
11948
12594
|
}
|
|
11949
12595
|
}
|
|
11950
12596
|
};
|
|
@@ -11961,6 +12607,15 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11961
12607
|
if (config2.style) {
|
|
11962
12608
|
Radio.config.style = JSON.parse(config2.style);
|
|
11963
12609
|
}
|
|
12610
|
+
if (config2.errorMessage) {
|
|
12611
|
+
Radio.config.main.errorMessage = config2.errorMessage;
|
|
12612
|
+
}
|
|
12613
|
+
if (config2.toolTip) {
|
|
12614
|
+
Radio.config.main.toolTip = config2.toolTip;
|
|
12615
|
+
}
|
|
12616
|
+
if (config2.toolTipPosition) {
|
|
12617
|
+
Radio.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12618
|
+
}
|
|
11964
12619
|
return Radio;
|
|
11965
12620
|
};
|
|
11966
12621
|
var emptyBox = {
|
|
@@ -11977,9 +12632,13 @@ var emptyBox = {
|
|
|
11977
12632
|
};
|
|
11978
12633
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11979
12634
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
12635
|
+
EmptyBox.scope = componentScope2;
|
|
11980
12636
|
if (config2.layout) {
|
|
11981
12637
|
EmptyBox.config.layout = createLayoutFormat(config2.layout);
|
|
11982
12638
|
}
|
|
12639
|
+
if (config2.style) {
|
|
12640
|
+
EmptyBox.config.style = JSON.parse(config2.style);
|
|
12641
|
+
}
|
|
11983
12642
|
return EmptyBox;
|
|
11984
12643
|
};
|
|
11985
12644
|
const ArrayUiSchema = {
|
|
@@ -11996,10 +12655,23 @@ const buildArray = (config2, componentScope2) => {
|
|
|
11996
12655
|
if (config2.allExpanded) {
|
|
11997
12656
|
array.config.main.allExpanded = config2.allExpanded === "YES" ? true : false;
|
|
11998
12657
|
}
|
|
12658
|
+
if (config2.disableAddButton) {
|
|
12659
|
+
array.config.main.disableAddButton = config2.disableAddButton === "YES" ? true : false;
|
|
12660
|
+
}
|
|
12661
|
+
if (config2.disableExpandAllButton) {
|
|
12662
|
+
array.config.main.disableExpandAllButton = config2.disableExpandAllButton === "YES" ? true : false;
|
|
12663
|
+
}
|
|
12664
|
+
if (config2.disableRowActions) {
|
|
12665
|
+
array.config.main.disableRowActions = config2.disableRowActions === "YES" ? true : false;
|
|
12666
|
+
}
|
|
11999
12667
|
if (config2.style) {
|
|
12000
12668
|
array.config.style = JSON.parse(config2.style);
|
|
12001
12669
|
}
|
|
12670
|
+
array.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
12671
|
+
array.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
12672
|
+
array.config.main.spacing = Number(config2.spacing);
|
|
12002
12673
|
array.config.main.childElementLabel = config2.childElementLabel;
|
|
12674
|
+
array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
|
|
12003
12675
|
array.config.main.label = config2.label;
|
|
12004
12676
|
array.scope = componentScope2;
|
|
12005
12677
|
return array;
|
|
@@ -12074,7 +12746,8 @@ const FileInput = {
|
|
|
12074
12746
|
required: false,
|
|
12075
12747
|
onUpload: "onFileUpload",
|
|
12076
12748
|
onDownload: "onFileDownload",
|
|
12077
|
-
label: "Aggrement Copy"
|
|
12749
|
+
label: "Aggrement Copy",
|
|
12750
|
+
"onClick": "onClick"
|
|
12078
12751
|
},
|
|
12079
12752
|
style: {
|
|
12080
12753
|
backgroundColor: "none"
|
|
@@ -12091,6 +12764,19 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12091
12764
|
if (config2.style) {
|
|
12092
12765
|
box.config.style = JSON.parse(config2.style);
|
|
12093
12766
|
}
|
|
12767
|
+
box.config.main.variant = config2.variant;
|
|
12768
|
+
box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
|
|
12769
|
+
box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
|
|
12770
|
+
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12771
|
+
box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
|
|
12772
|
+
box.config.main.description = config2.description;
|
|
12773
|
+
box.config.main.toolTip = config2.toolTip;
|
|
12774
|
+
box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
|
|
12775
|
+
box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
|
|
12776
|
+
if (config2.toolTipPosition) {
|
|
12777
|
+
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12778
|
+
}
|
|
12779
|
+
box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
|
|
12094
12780
|
return box;
|
|
12095
12781
|
};
|
|
12096
12782
|
const Stepper = {
|
|
@@ -12147,6 +12833,7 @@ const PopUP = {
|
|
|
12147
12833
|
},
|
|
12148
12834
|
main: {
|
|
12149
12835
|
label: "PopUp",
|
|
12836
|
+
onClose: "onClose",
|
|
12150
12837
|
fullScreen: false,
|
|
12151
12838
|
fullWidth: false,
|
|
12152
12839
|
maxWidth: false,
|
|
@@ -12338,124 +13025,482 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12338
13025
|
}
|
|
12339
13026
|
return thought;
|
|
12340
13027
|
};
|
|
13028
|
+
var horizontalLayout = {
|
|
13029
|
+
type: "HorizontalLayout",
|
|
13030
|
+
config: {
|
|
13031
|
+
layout: 12,
|
|
13032
|
+
main: {
|
|
13033
|
+
rowSpacing: 3,
|
|
13034
|
+
divider: false
|
|
13035
|
+
},
|
|
13036
|
+
defaultStyle: true
|
|
13037
|
+
},
|
|
13038
|
+
elements: []
|
|
13039
|
+
};
|
|
13040
|
+
const buildHorizontalLayout = (config2, componentScope2) => {
|
|
13041
|
+
const horizontal = _.cloneDeep(horizontalLayout);
|
|
13042
|
+
horizontal.scope = componentScope2;
|
|
13043
|
+
if (config2.style) {
|
|
13044
|
+
horizontal.config.style = JSON.parse(config2.style);
|
|
13045
|
+
}
|
|
13046
|
+
if (config2.layout) {
|
|
13047
|
+
horizontal.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13048
|
+
}
|
|
13049
|
+
return horizontal;
|
|
13050
|
+
};
|
|
13051
|
+
const imageUiSchema = {
|
|
13052
|
+
type: "Control",
|
|
13053
|
+
scope: "#/properties/Logo",
|
|
13054
|
+
options: {
|
|
13055
|
+
widget: "Image"
|
|
13056
|
+
},
|
|
13057
|
+
config: {
|
|
13058
|
+
layout: 3,
|
|
13059
|
+
main: {
|
|
13060
|
+
url: "",
|
|
13061
|
+
onClick: "onClick"
|
|
13062
|
+
},
|
|
13063
|
+
style: {}
|
|
13064
|
+
}
|
|
13065
|
+
};
|
|
13066
|
+
const buildImage = (config2, componentScope2) => {
|
|
13067
|
+
const image = _.cloneDeep(imageUiSchema);
|
|
13068
|
+
image.scope = componentScope2;
|
|
13069
|
+
image.config.main.url = config2.imageUrl;
|
|
13070
|
+
if (config2.layout) {
|
|
13071
|
+
image.config.layout = createLayoutFormat(config2.layout);
|
|
13072
|
+
}
|
|
13073
|
+
if (config2.style) {
|
|
13074
|
+
image.config.style = JSON.parse(config2.style);
|
|
13075
|
+
}
|
|
13076
|
+
if (config2.height) {
|
|
13077
|
+
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
13078
|
+
}
|
|
13079
|
+
image.config.main.toolTip = config2.toolTip;
|
|
13080
|
+
image.config.main.toolTipPosition = config2.toolTipPosition;
|
|
13081
|
+
return image;
|
|
13082
|
+
};
|
|
13083
|
+
const buildAreaGraph = (config2, componentScope2) => {
|
|
13084
|
+
const AreaGraph = _.cloneDeep(AreaBarGraph);
|
|
13085
|
+
AreaGraph.scope = componentScope2;
|
|
13086
|
+
if (config2.layout) {
|
|
13087
|
+
AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13088
|
+
}
|
|
13089
|
+
AreaGraph.config.main.type = config2.graphType;
|
|
13090
|
+
AreaGraph.scope = componentScope2;
|
|
13091
|
+
AreaGraph.config.main.header = config2.heading;
|
|
13092
|
+
AreaGraph.config.main.subHeader = config2.subHeader;
|
|
13093
|
+
if (config2.legendHide) {
|
|
13094
|
+
AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13095
|
+
}
|
|
13096
|
+
if (config2.bottomAxisAngle) {
|
|
13097
|
+
AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13098
|
+
}
|
|
13099
|
+
if (config2.legendLabels) {
|
|
13100
|
+
AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13101
|
+
}
|
|
13102
|
+
if (config2.legendDirection) {
|
|
13103
|
+
AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13104
|
+
}
|
|
13105
|
+
if (config2.height) {
|
|
13106
|
+
AreaGraph.config.style.containerStyle.height = config2.height;
|
|
13107
|
+
}
|
|
13108
|
+
if (config2.pieArcColors) {
|
|
13109
|
+
AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13110
|
+
}
|
|
13111
|
+
if (config2.xAxisFormatType) {
|
|
13112
|
+
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
13113
|
+
}
|
|
13114
|
+
if (config2.yAxisTickCount) {
|
|
13115
|
+
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13116
|
+
}
|
|
13117
|
+
if (config2.xAxisTickCount) {
|
|
13118
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13119
|
+
}
|
|
13120
|
+
if (config2.xAxisValue) {
|
|
13121
|
+
AreaGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13122
|
+
}
|
|
13123
|
+
if (config2.xAxisType) {
|
|
13124
|
+
AreaGraph.config.main.xAxisType = config2.xAxisType;
|
|
13125
|
+
}
|
|
13126
|
+
if (config2.bottomLabel) {
|
|
13127
|
+
AreaGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13128
|
+
}
|
|
13129
|
+
if (config2.leftLabel) {
|
|
13130
|
+
AreaGraph.config.main.leftLabel = config2.leftLabel;
|
|
13131
|
+
}
|
|
13132
|
+
if (config2.disableLeftLabel) {
|
|
13133
|
+
AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13134
|
+
}
|
|
13135
|
+
if (config2.leftMargin) {
|
|
13136
|
+
AreaGraph.config.style.labelStyle.margin = {
|
|
13137
|
+
left: config2.leftMargin
|
|
13138
|
+
};
|
|
13139
|
+
}
|
|
13140
|
+
return AreaGraph;
|
|
13141
|
+
};
|
|
13142
|
+
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
13143
|
+
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
13144
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13145
|
+
if (config2.layout) {
|
|
13146
|
+
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13147
|
+
}
|
|
13148
|
+
StackBarLineGraph.config.main.type = config2.graphType;
|
|
13149
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13150
|
+
StackBarLineGraph.config.main.header = config2.heading;
|
|
13151
|
+
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
13152
|
+
if (config2.legendHide) {
|
|
13153
|
+
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13154
|
+
}
|
|
13155
|
+
if (config2.bottomAxisAngle) {
|
|
13156
|
+
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13157
|
+
}
|
|
13158
|
+
if (config2.legendLabels) {
|
|
13159
|
+
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13160
|
+
}
|
|
13161
|
+
if (config2.legendDirection) {
|
|
13162
|
+
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13163
|
+
}
|
|
13164
|
+
if (config2.height) {
|
|
13165
|
+
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13166
|
+
}
|
|
13167
|
+
if (config2.pieArcColors) {
|
|
13168
|
+
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13169
|
+
}
|
|
13170
|
+
if (config2.yAxisTickCount) {
|
|
13171
|
+
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13172
|
+
}
|
|
13173
|
+
if (config2.xAxisTickCount) {
|
|
13174
|
+
StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13175
|
+
}
|
|
13176
|
+
if (config2.xAxisValue) {
|
|
13177
|
+
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13178
|
+
}
|
|
13179
|
+
if (config2.xAxisType) {
|
|
13180
|
+
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13181
|
+
}
|
|
13182
|
+
if (config2.bottomLabel) {
|
|
13183
|
+
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13184
|
+
}
|
|
13185
|
+
if (config2.leftLabel) {
|
|
13186
|
+
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13187
|
+
}
|
|
13188
|
+
if (config2.rightLabel) {
|
|
13189
|
+
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13190
|
+
}
|
|
13191
|
+
if (config2.disableLeftLabel) {
|
|
13192
|
+
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13193
|
+
}
|
|
13194
|
+
if (config2.growthRateKey) {
|
|
13195
|
+
StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
|
|
13196
|
+
}
|
|
13197
|
+
if (config2.tooltipUnit) {
|
|
13198
|
+
StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
|
|
13199
|
+
}
|
|
13200
|
+
if (config2.leftMargin) {
|
|
13201
|
+
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13202
|
+
left: config2.leftMargin
|
|
13203
|
+
};
|
|
13204
|
+
}
|
|
13205
|
+
return StackBarLineGraph;
|
|
13206
|
+
};
|
|
13207
|
+
const cameraUiSchema = {
|
|
13208
|
+
type: "Control",
|
|
13209
|
+
scope: "#/properties/camera",
|
|
13210
|
+
options: {
|
|
13211
|
+
widget: "Camera"
|
|
13212
|
+
},
|
|
13213
|
+
config: {
|
|
13214
|
+
main: {
|
|
13215
|
+
label: "Upload Photo",
|
|
13216
|
+
multiUplaod: false,
|
|
13217
|
+
onUpload: "onFileUpload"
|
|
13218
|
+
}
|
|
13219
|
+
}
|
|
13220
|
+
};
|
|
13221
|
+
const buildCamera = (config2, componentScope2) => {
|
|
13222
|
+
const camera = _.cloneDeep(cameraUiSchema);
|
|
13223
|
+
camera.scope = componentScope2;
|
|
13224
|
+
if (config2.iconName) {
|
|
13225
|
+
camera.config.main.startIcon = config2.iconName;
|
|
13226
|
+
}
|
|
13227
|
+
if (config2.layout) {
|
|
13228
|
+
camera.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13229
|
+
}
|
|
13230
|
+
if (config2.tooltipMessage) {
|
|
13231
|
+
camera.config.main.tooltipMessage = config2.tooltipMessage;
|
|
13232
|
+
}
|
|
13233
|
+
camera.config.main.multiUplaod = config2.multiUplaod === "YES" ? true : false;
|
|
13234
|
+
if (config2.style) {
|
|
13235
|
+
camera.config.style = JSON.parse(config2.style);
|
|
13236
|
+
}
|
|
13237
|
+
if (config2.size) {
|
|
13238
|
+
camera.config.main.size = config2.size;
|
|
13239
|
+
}
|
|
13240
|
+
if (config2.variant) {
|
|
13241
|
+
camera.config.main.variant = config2.variant;
|
|
13242
|
+
}
|
|
13243
|
+
if (config2.color) {
|
|
13244
|
+
camera.config.main.color = config2.color;
|
|
13245
|
+
}
|
|
13246
|
+
if (config2.label) {
|
|
13247
|
+
camera.config.main.label = config2.label;
|
|
13248
|
+
}
|
|
13249
|
+
return camera;
|
|
13250
|
+
};
|
|
13251
|
+
var ButtonGroup = {
|
|
13252
|
+
type: "Control",
|
|
13253
|
+
scope: "#/properties/buttonGroup",
|
|
13254
|
+
options: {
|
|
13255
|
+
widget: "ButtonGroup"
|
|
13256
|
+
},
|
|
13257
|
+
config: {
|
|
13258
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
13259
|
+
main: {
|
|
13260
|
+
variant: "contained",
|
|
13261
|
+
styleDefault: false,
|
|
13262
|
+
size: "small"
|
|
13263
|
+
},
|
|
13264
|
+
style: {}
|
|
13265
|
+
}
|
|
13266
|
+
};
|
|
13267
|
+
const buildButtonGroup = (config2, componentScope2) => {
|
|
13268
|
+
const buttonGroup = _.cloneDeep(ButtonGroup);
|
|
13269
|
+
if (config2.layout) {
|
|
13270
|
+
buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13271
|
+
}
|
|
13272
|
+
buttonGroup.scope = componentScope2;
|
|
13273
|
+
if (config2.multiSelect) {
|
|
13274
|
+
buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
|
|
13275
|
+
}
|
|
13276
|
+
if (config2.style) {
|
|
13277
|
+
buttonGroup.config.style = JSON.parse(config2.style);
|
|
13278
|
+
}
|
|
13279
|
+
if (config2.size) {
|
|
13280
|
+
buttonGroup.config.main.size = config2.size;
|
|
13281
|
+
}
|
|
13282
|
+
if (config2.color) {
|
|
13283
|
+
buttonGroup.config.main.color = config2.color;
|
|
13284
|
+
}
|
|
13285
|
+
return buttonGroup;
|
|
13286
|
+
};
|
|
13287
|
+
const PopOver = {
|
|
13288
|
+
type: "Control",
|
|
13289
|
+
scope: "#/properties/text",
|
|
13290
|
+
options: {
|
|
13291
|
+
widget: "Popover"
|
|
13292
|
+
},
|
|
13293
|
+
config: {
|
|
13294
|
+
layout: {
|
|
13295
|
+
xs: 12,
|
|
13296
|
+
sm: 12,
|
|
13297
|
+
md: 12,
|
|
13298
|
+
lg: 12
|
|
13299
|
+
},
|
|
13300
|
+
main: {
|
|
13301
|
+
label: "PopOver"
|
|
13302
|
+
},
|
|
13303
|
+
style: {}
|
|
13304
|
+
}
|
|
13305
|
+
};
|
|
13306
|
+
const buildPopOver = (config2, componentScope2) => {
|
|
13307
|
+
const popOver = _.cloneDeep(PopOver);
|
|
13308
|
+
popOver.scope = componentScope2;
|
|
13309
|
+
popOver.config.main.positionVertical = config2.positionVertical;
|
|
13310
|
+
popOver.config.main.positionHorizontal = config2.positionHorizontal;
|
|
13311
|
+
popOver.config.main.contentVertical = config2.contentVertical;
|
|
13312
|
+
popOver.config.main.contentHorizontal = config2.contentHorizontal;
|
|
13313
|
+
popOver.config.main.width = config2.width;
|
|
13314
|
+
popOver.config.main.gap = config2.gap;
|
|
13315
|
+
if (config2.layout) {
|
|
13316
|
+
popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13317
|
+
}
|
|
13318
|
+
if (config2.style) {
|
|
13319
|
+
popOver.config.style = JSON.parse(config2.style);
|
|
13320
|
+
}
|
|
13321
|
+
return popOver;
|
|
13322
|
+
};
|
|
13323
|
+
const OTPSchema = {
|
|
13324
|
+
type: "Control",
|
|
13325
|
+
scope: "#/properties/OTPInput",
|
|
13326
|
+
options: {
|
|
13327
|
+
widget: "OTPInput"
|
|
13328
|
+
},
|
|
13329
|
+
config: {
|
|
13330
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
13331
|
+
main: {
|
|
13332
|
+
seperator: "",
|
|
13333
|
+
length: 4,
|
|
13334
|
+
type: "number",
|
|
13335
|
+
masking: true
|
|
13336
|
+
}
|
|
13337
|
+
}
|
|
13338
|
+
};
|
|
13339
|
+
const buildOTP_Input = (config2, componentScope2) => {
|
|
13340
|
+
const OTP = _.cloneDeep(OTPSchema);
|
|
13341
|
+
OTP.scope = componentScope2;
|
|
13342
|
+
if (config2.layout) {
|
|
13343
|
+
OTP.config.layout = createLayoutFormat(config2.layout);
|
|
13344
|
+
}
|
|
13345
|
+
if (config2.style) {
|
|
13346
|
+
OTP.config.style = JSON.parse(config2.style);
|
|
13347
|
+
}
|
|
13348
|
+
if (config2.errorMessage) {
|
|
13349
|
+
OTP.config.main.errorMessage = config2.errorMessage;
|
|
13350
|
+
}
|
|
13351
|
+
if (config2.toolTip) {
|
|
13352
|
+
OTP.config.main.toolTip = config2.toolTip;
|
|
13353
|
+
}
|
|
13354
|
+
OTP.config.main.masking = config2.masking === "YES" ? true : false;
|
|
13355
|
+
OTP.config.main.type = config2.OTP_Format;
|
|
13356
|
+
OTP.config.main.seperator = config2.seperator;
|
|
13357
|
+
OTP.config.main.length = +config2.length;
|
|
13358
|
+
return OTP;
|
|
13359
|
+
};
|
|
13360
|
+
var pdfViewer = {
|
|
13361
|
+
type: "Control",
|
|
13362
|
+
scope: "#/properties/pdfviewer",
|
|
13363
|
+
options: {
|
|
13364
|
+
widget: "PdfViewer"
|
|
13365
|
+
},
|
|
13366
|
+
config: {
|
|
13367
|
+
layout: {
|
|
13368
|
+
xs: 12,
|
|
13369
|
+
sm: 12,
|
|
13370
|
+
md: 12,
|
|
13371
|
+
lg: 12
|
|
13372
|
+
},
|
|
13373
|
+
main: {
|
|
13374
|
+
title: "PDF"
|
|
13375
|
+
}
|
|
13376
|
+
}
|
|
13377
|
+
};
|
|
13378
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13379
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13380
|
+
PdfViewer.scope = componentScope2;
|
|
13381
|
+
PdfViewer.config.main.scale = config2.scale;
|
|
13382
|
+
if (config2.layout) {
|
|
13383
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13384
|
+
}
|
|
13385
|
+
if (config2.style) {
|
|
13386
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13387
|
+
}
|
|
13388
|
+
return PdfViewer;
|
|
13389
|
+
};
|
|
13390
|
+
const HierarchyChart = {
|
|
13391
|
+
type: "Control",
|
|
13392
|
+
scope: "#/properties/HierarchyChart",
|
|
13393
|
+
options: {
|
|
13394
|
+
widget: "HierarchyChart"
|
|
13395
|
+
},
|
|
13396
|
+
config: {
|
|
13397
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
13398
|
+
main: {},
|
|
13399
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
13400
|
+
}
|
|
13401
|
+
};
|
|
13402
|
+
const buildHierarchyChart = (config2, componentScope2, store2) => {
|
|
13403
|
+
const hierarchyChart = _.cloneDeep(HierarchyChart);
|
|
13404
|
+
hierarchyChart.scope = componentScope2;
|
|
13405
|
+
if (config2.style) {
|
|
13406
|
+
hierarchyChart.config.style = JSON.parse(config2.style);
|
|
13407
|
+
}
|
|
13408
|
+
if (config2.layout) {
|
|
13409
|
+
hierarchyChart.config.layout = createLayoutFormat(config2.layout);
|
|
13410
|
+
}
|
|
13411
|
+
if (config2.linkType) {
|
|
13412
|
+
hierarchyChart.config.main.linkType = config2.linkType;
|
|
13413
|
+
}
|
|
13414
|
+
if (config2.stepPercent) {
|
|
13415
|
+
hierarchyChart.config.main.stepPercent = config2.stepPercent;
|
|
13416
|
+
}
|
|
13417
|
+
if (config2.nodeWidth) {
|
|
13418
|
+
hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
|
|
13419
|
+
}
|
|
13420
|
+
if (config2.nodeHeight) {
|
|
13421
|
+
hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
|
|
13422
|
+
}
|
|
13423
|
+
if (config2.chartHeight) {
|
|
13424
|
+
hierarchyChart.config.main.chartHeight = config2.chartHeight;
|
|
13425
|
+
}
|
|
13426
|
+
if (config2.lazyLoading) {
|
|
13427
|
+
hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
13428
|
+
}
|
|
13429
|
+
return hierarchyChart;
|
|
13430
|
+
};
|
|
12341
13431
|
let schema = {
|
|
12342
13432
|
type: "object",
|
|
12343
13433
|
properties: {},
|
|
12344
13434
|
required: []
|
|
12345
13435
|
};
|
|
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] = {
|
|
13436
|
+
function buildSchemaFromConfig(config2, parentSchema) {
|
|
13437
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
13438
|
+
if (config2.elements) {
|
|
13439
|
+
if (config2.type === "Array") {
|
|
13440
|
+
(_a = parentSchema.properties) != null ? _a : parentSchema.properties = {};
|
|
13441
|
+
(_d = (_b = parentSchema.properties)[_c = config2.name]) != null ? _d : _b[_c] = {
|
|
13442
|
+
type: "array",
|
|
12378
13443
|
items: {
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
13444
|
+
type: "object",
|
|
13445
|
+
properties: {},
|
|
13446
|
+
required: []
|
|
12382
13447
|
}
|
|
12383
13448
|
};
|
|
13449
|
+
const arrayItemSchema = parentSchema.properties[config2.name].items;
|
|
13450
|
+
(_e = config2.elements) == null ? void 0 : _e.forEach(
|
|
13451
|
+
(child) => buildSchemaFromConfig(child, arrayItemSchema)
|
|
13452
|
+
);
|
|
13453
|
+
return;
|
|
13454
|
+
} else {
|
|
13455
|
+
(_f = config2.elements) == null ? void 0 : _f.forEach(
|
|
13456
|
+
(child) => buildSchemaFromConfig(child, parentSchema)
|
|
13457
|
+
);
|
|
13458
|
+
return;
|
|
12384
13459
|
}
|
|
12385
13460
|
}
|
|
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
|
-
});
|
|
13461
|
+
(_g = parentSchema.properties) != null ? _g : parentSchema.properties = {};
|
|
13462
|
+
(_j = (_h = parentSchema.properties)[_i = config2.name]) != null ? _j : _h[_i] = {};
|
|
13463
|
+
const fieldSchema = parentSchema.properties[config2.name];
|
|
13464
|
+
(_k = config2.validation) == null ? void 0 : _k.forEach((v) => {
|
|
13465
|
+
var _a2;
|
|
13466
|
+
if (v.validationType === "required") {
|
|
13467
|
+
(_a2 = parentSchema.required) != null ? _a2 : parentSchema.required = [];
|
|
13468
|
+
parentSchema.required.push(config2.name);
|
|
13469
|
+
} else if (v.validationType === "readOnly") {
|
|
13470
|
+
fieldSchema.type = "string";
|
|
13471
|
+
fieldSchema.disabled = true;
|
|
12447
13472
|
} else {
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
});
|
|
13473
|
+
fieldSchema.type = "string";
|
|
13474
|
+
fieldSchema[v.validationType] = isNaN(v.validationValue) ? v.validationValue : Number(v.validationValue);
|
|
12451
13475
|
}
|
|
13476
|
+
});
|
|
13477
|
+
if (config2.type === "Select" && ((_l = config2.value) == null ? void 0 : _l.length)) {
|
|
13478
|
+
fieldSchema.oneOf = config2.value.map((v) => ({
|
|
13479
|
+
const: v.value,
|
|
13480
|
+
title: v.label
|
|
13481
|
+
}));
|
|
13482
|
+
}
|
|
13483
|
+
if (config2.type === "MultipleSelect" && ((_m = config2.value) == null ? void 0 : _m.length)) {
|
|
13484
|
+
fieldSchema.type = "array";
|
|
13485
|
+
fieldSchema.items = {
|
|
13486
|
+
oneOf: config2.value.map((v) => ({
|
|
13487
|
+
const: v.value,
|
|
13488
|
+
title: v.label
|
|
13489
|
+
}))
|
|
13490
|
+
};
|
|
12452
13491
|
}
|
|
13492
|
+
}
|
|
13493
|
+
const buildSchema = (config2) => {
|
|
13494
|
+
buildSchemaFromConfig(config2, schema);
|
|
12453
13495
|
return schema;
|
|
12454
13496
|
};
|
|
12455
13497
|
const buildUiSchema = (config2, store2) => {
|
|
12456
13498
|
let elements = {};
|
|
12457
13499
|
const componentScope2 = `#/properties/${config2.name}`;
|
|
12458
13500
|
switch (config2.type) {
|
|
13501
|
+
case "OTP_Input":
|
|
13502
|
+
elements = buildOTP_Input(config2, componentScope2);
|
|
13503
|
+
break;
|
|
12459
13504
|
case "TreeMap":
|
|
12460
13505
|
elements = buildTreeMap(config2, componentScope2);
|
|
12461
13506
|
break;
|
|
@@ -12474,6 +13519,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12474
13519
|
case "PopUp":
|
|
12475
13520
|
elements = buildPopUp(config2, componentScope2);
|
|
12476
13521
|
break;
|
|
13522
|
+
case "PopOver":
|
|
13523
|
+
elements = buildPopOver(config2, componentScope2);
|
|
13524
|
+
break;
|
|
12477
13525
|
case "FileInput":
|
|
12478
13526
|
elements = buildFileInput(config2, componentScope2);
|
|
12479
13527
|
break;
|
|
@@ -12492,6 +13540,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12492
13540
|
case "WrapperSection":
|
|
12493
13541
|
elements = buildWrapperSection(config2, componentScope2);
|
|
12494
13542
|
break;
|
|
13543
|
+
case "HorizontalLayout":
|
|
13544
|
+
elements = buildHorizontalLayout(config2, componentScope2);
|
|
13545
|
+
break;
|
|
12495
13546
|
case "Text":
|
|
12496
13547
|
elements = buildTextField(config2, componentScope2);
|
|
12497
13548
|
break;
|
|
@@ -12510,6 +13561,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12510
13561
|
case "Button":
|
|
12511
13562
|
elements = buildButton(config2, componentScope2);
|
|
12512
13563
|
break;
|
|
13564
|
+
case "ButtonGroup":
|
|
13565
|
+
elements = buildButtonGroup(config2, componentScope2);
|
|
13566
|
+
break;
|
|
12513
13567
|
case "Table":
|
|
12514
13568
|
elements = buildTable(config2, componentScope2);
|
|
12515
13569
|
break;
|
|
@@ -12529,11 +13583,17 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12529
13583
|
elements = buildDownloadFile(config2, componentScope2);
|
|
12530
13584
|
break;
|
|
12531
13585
|
case "EmptyBox":
|
|
12532
|
-
elements = buildEmptyBox(config2);
|
|
13586
|
+
elements = buildEmptyBox(config2, componentScope2);
|
|
12533
13587
|
break;
|
|
12534
13588
|
case "card":
|
|
12535
13589
|
elements = buildCard(config2, componentScope2, store2);
|
|
12536
13590
|
break;
|
|
13591
|
+
case "MetricCard":
|
|
13592
|
+
elements = buildMetricCard(config2, componentScope2);
|
|
13593
|
+
break;
|
|
13594
|
+
case "HierarchyChart":
|
|
13595
|
+
elements = buildHierarchyChart(config2, componentScope2);
|
|
13596
|
+
break;
|
|
12537
13597
|
case "Graph":
|
|
12538
13598
|
switch (config2.graphType) {
|
|
12539
13599
|
case "BarGraph":
|
|
@@ -12550,6 +13610,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12550
13610
|
case "HorizontalStackBarGraph":
|
|
12551
13611
|
elements = buildHorizontalBarGraph(config2, componentScope2);
|
|
12552
13612
|
break;
|
|
13613
|
+
case "AreaGraph":
|
|
13614
|
+
elements = buildAreaGraph(config2, componentScope2);
|
|
13615
|
+
break;
|
|
13616
|
+
case "StackBarLineGraph":
|
|
13617
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13618
|
+
break;
|
|
12553
13619
|
default:
|
|
12554
13620
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
12555
13621
|
break;
|
|
@@ -12592,6 +13658,15 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12592
13658
|
case "Thought":
|
|
12593
13659
|
elements = buildThoughtOfTheDay(config2, componentScope2);
|
|
12594
13660
|
break;
|
|
13661
|
+
case "Image":
|
|
13662
|
+
elements = buildImage(config2, componentScope2);
|
|
13663
|
+
break;
|
|
13664
|
+
case "Camera":
|
|
13665
|
+
elements = buildCamera(config2, componentScope2);
|
|
13666
|
+
break;
|
|
13667
|
+
case "PdfViewer":
|
|
13668
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13669
|
+
break;
|
|
12595
13670
|
default:
|
|
12596
13671
|
schema = {
|
|
12597
13672
|
type: "object",
|
|
@@ -12602,7 +13677,17 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12602
13677
|
}
|
|
12603
13678
|
if (config2 == null ? void 0 : config2.elements) {
|
|
12604
13679
|
if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
|
|
12605
|
-
|
|
13680
|
+
const rowElements = [];
|
|
13681
|
+
config2.elements.map((cellElem) => {
|
|
13682
|
+
const commonProperties = {
|
|
13683
|
+
accessorKey: cellElem.name,
|
|
13684
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
13685
|
+
header: cellElem.label || cellElem.name,
|
|
13686
|
+
columnKey: cellElem.columnKey
|
|
13687
|
+
};
|
|
13688
|
+
rowElements.push({ ...commonProperties });
|
|
13689
|
+
});
|
|
13690
|
+
elements.elements = rowElements;
|
|
12606
13691
|
} else if (config2.type == "ColumnGroup") {
|
|
12607
13692
|
const sizeMap = {};
|
|
12608
13693
|
if (config2.sizeHolder) {
|
|
@@ -12611,13 +13696,27 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12611
13696
|
});
|
|
12612
13697
|
}
|
|
12613
13698
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12614
|
-
|
|
13699
|
+
const commonProperties = {
|
|
12615
13700
|
accessorKey: cellElem.name,
|
|
13701
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12616
13702
|
header: cellElem.label || cellElem.name,
|
|
12617
13703
|
size: sizeMap[cellElem.name] || 180,
|
|
12618
|
-
|
|
12619
|
-
|
|
13704
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
13705
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
13706
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
13707
|
+
columnKey: cellElem.columnKey,
|
|
13708
|
+
dateFormat: cellElem.dateFormat
|
|
12620
13709
|
};
|
|
13710
|
+
if (cellElem.type) {
|
|
13711
|
+
const tableElem = {
|
|
13712
|
+
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
13713
|
+
...commonProperties,
|
|
13714
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
13715
|
+
};
|
|
13716
|
+
return tableElem;
|
|
13717
|
+
} else {
|
|
13718
|
+
return { ...commonProperties };
|
|
13719
|
+
}
|
|
12621
13720
|
});
|
|
12622
13721
|
} else if (config2.type == "Table") {
|
|
12623
13722
|
const sizeMap = {};
|
|
@@ -12632,13 +13731,14 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12632
13731
|
config2.elements.filter((cellElem, elemInd) => {
|
|
12633
13732
|
const commonProperties = {
|
|
12634
13733
|
accessorKey: cellElem.name,
|
|
12635
|
-
type: cellElem.columnFormat,
|
|
13734
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12636
13735
|
header: cellElem.label || cellElem.name,
|
|
12637
13736
|
size: sizeMap[cellElem.name] || 180,
|
|
12638
13737
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12639
13738
|
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12640
13739
|
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12641
|
-
columnKey: cellElem.columnKey
|
|
13740
|
+
columnKey: cellElem.columnKey,
|
|
13741
|
+
dateFormat: cellElem.dateFormat
|
|
12642
13742
|
};
|
|
12643
13743
|
if (cellElem.type) {
|
|
12644
13744
|
if (cellElem.elementType == "action") {
|
|
@@ -12653,8 +13753,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12653
13753
|
}
|
|
12654
13754
|
const tableElem = {
|
|
12655
13755
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12656
|
-
|
|
12657
|
-
...
|
|
13756
|
+
...commonProperties,
|
|
13757
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12658
13758
|
};
|
|
12659
13759
|
rowElements.push(tableElem);
|
|
12660
13760
|
} else {
|
|
@@ -12670,7 +13770,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12670
13770
|
});
|
|
12671
13771
|
}
|
|
12672
13772
|
}
|
|
13773
|
+
if (config2.tabLabelElements) {
|
|
13774
|
+
elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
|
|
13775
|
+
return buildUiSchema(e, store2);
|
|
13776
|
+
});
|
|
13777
|
+
}
|
|
12673
13778
|
return elements;
|
|
12674
13779
|
};
|
|
12675
|
-
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|
|
13780
|
+
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|
|
12676
13781
|
//# sourceMappingURL=impaktapps-ui-builder.es.js.map
|