impaktapps-ui-builder 1.0.621 → 1.0.622-copy.1
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 +1972 -959
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +15 -15
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildAreaGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildImage.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +4 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -171
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +18 -50
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +22 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.d.ts +13 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +15 -66
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +5 -2
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +8 -4
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +23 -9
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +35 -13
- package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +7 -0
- package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -28
- package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
- package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +35 -0
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +9 -3
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +38 -0
- package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +9 -3
- package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +10 -2
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +9 -3
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +5 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +27 -11
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +144 -124
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +8 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +4 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +319 -21
- package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -169
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +74 -19
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +30 -54
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +34 -60
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +219 -75
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +61 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +94 -106
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -3
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
- package/src/impaktapps-ui-builder/builder/services/component.ts +223 -135
- package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -15
- package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
- package/src/impaktapps-ui-builder/lib/index.ts +10 -9
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +42 -22
- package/src/impaktapps-ui-builder/runtime/services/events.ts +9 -11
- package/src/impaktapps-ui-builder/runtime/services/service.ts +118 -158
|
@@ -96,11 +96,41 @@ const PageMasterUiSchema = (theme) => {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
+
{
|
|
100
|
+
type: "Control",
|
|
101
|
+
scope: "#/properties/pageIconUrl",
|
|
102
|
+
options: {
|
|
103
|
+
widget: "InputField"
|
|
104
|
+
},
|
|
105
|
+
config: {
|
|
106
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
107
|
+
main: {
|
|
108
|
+
label: "Page Icon URL",
|
|
109
|
+
options: [],
|
|
110
|
+
color: "secondary",
|
|
111
|
+
required: true
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
type: "Control",
|
|
117
|
+
scope: "#/properties/hasBackIcon",
|
|
118
|
+
options: {
|
|
119
|
+
widget: "RadioInputField"
|
|
120
|
+
},
|
|
121
|
+
config: {
|
|
122
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
123
|
+
main: {
|
|
124
|
+
label: "Back Icon",
|
|
125
|
+
options: [{ label: "Yes", const: "YES" }, { label: "No", const: "NO" }]
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
99
129
|
{
|
|
100
130
|
type: "Control",
|
|
101
131
|
scope: "#/properties/EmptyBox",
|
|
102
132
|
config: {
|
|
103
|
-
layout: { xs: 0, sm:
|
|
133
|
+
layout: { xs: 0, sm: 6, md: 0, lg: 3 }
|
|
104
134
|
},
|
|
105
135
|
options: {
|
|
106
136
|
widget: "EmptyBox"
|
|
@@ -204,91 +234,70 @@ const PageMasterUiSchema = (theme) => {
|
|
|
204
234
|
disableAction: true,
|
|
205
235
|
disableSelection: true,
|
|
206
236
|
enableDrag: true
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
elements: [
|
|
210
|
-
{
|
|
211
|
-
accessorKey: "name",
|
|
212
|
-
header: "Name",
|
|
213
|
-
size: 300,
|
|
214
|
-
type: "string"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
accessorKey: "type",
|
|
218
|
-
header: "Type",
|
|
219
|
-
size: 300,
|
|
220
|
-
type: "string"
|
|
221
237
|
},
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
field: "Reject_Records",
|
|
225
|
-
size: 150,
|
|
226
|
-
type: "action",
|
|
227
|
-
widget: {
|
|
238
|
+
action: [
|
|
239
|
+
{
|
|
228
240
|
type: "Control",
|
|
229
241
|
scope: "#/properties/RejectButton",
|
|
230
242
|
options: {
|
|
231
|
-
widget: "
|
|
243
|
+
widget: "Button"
|
|
232
244
|
},
|
|
233
245
|
config: {
|
|
234
246
|
main: {
|
|
235
|
-
|
|
247
|
+
size: "small",
|
|
248
|
+
startIcon: "EditIcon",
|
|
236
249
|
onClick: "Edit_Components",
|
|
237
|
-
tooltipMessage: "Edit This Record"
|
|
238
|
-
|
|
239
|
-
style: {
|
|
240
|
-
fill: theme.palette.primary.main,
|
|
241
|
-
"& :hover": {
|
|
242
|
-
fill: theme.palette.primary.dark
|
|
243
|
-
}
|
|
250
|
+
tooltipMessage: "Edit This Record",
|
|
251
|
+
name: "Edit"
|
|
244
252
|
}
|
|
245
253
|
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
{
|
|
249
|
-
header: "Delete",
|
|
250
|
-
field: "Reject_Records",
|
|
251
|
-
size: 150,
|
|
252
|
-
type: "action",
|
|
253
|
-
widget: {
|
|
254
|
+
},
|
|
255
|
+
{
|
|
254
256
|
type: "Control",
|
|
255
257
|
scope: "#/properties/RejectButton",
|
|
256
258
|
options: {
|
|
257
|
-
widget: "
|
|
259
|
+
widget: "Button"
|
|
258
260
|
},
|
|
259
261
|
config: {
|
|
260
262
|
main: {
|
|
261
|
-
|
|
263
|
+
size: "small",
|
|
264
|
+
startIcon: "Bin",
|
|
262
265
|
onClick: "deletePopUpComponent",
|
|
263
|
-
tooltipMessage: "Reject This Record"
|
|
264
|
-
|
|
265
|
-
style: {
|
|
266
|
-
fill: theme.palette.primary.main,
|
|
267
|
-
"& :hover": {
|
|
268
|
-
fill: theme.palette.primary.dark
|
|
269
|
-
}
|
|
266
|
+
tooltipMessage: "Reject This Record",
|
|
267
|
+
name: "Delete"
|
|
270
268
|
}
|
|
271
269
|
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
{
|
|
275
|
-
header: "Copy",
|
|
276
|
-
field: "Copy_Component",
|
|
277
|
-
flex: 1,
|
|
278
|
-
widget: {
|
|
270
|
+
},
|
|
271
|
+
{
|
|
279
272
|
type: "Control",
|
|
280
273
|
scope: "#/properties/Copy_Component",
|
|
281
274
|
options: {
|
|
282
|
-
widget: "
|
|
275
|
+
widget: "Button"
|
|
283
276
|
},
|
|
284
277
|
config: {
|
|
285
278
|
main: {
|
|
286
|
-
|
|
279
|
+
size: "small",
|
|
280
|
+
startIcon: "FileCopyIcon",
|
|
287
281
|
onClick: "copyPasteElement",
|
|
288
|
-
styleDefault:
|
|
282
|
+
styleDefault: false,
|
|
283
|
+
name: "Copy"
|
|
289
284
|
}
|
|
290
285
|
}
|
|
291
286
|
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
elements: [
|
|
290
|
+
{
|
|
291
|
+
accessorKey: "name",
|
|
292
|
+
header: "Name",
|
|
293
|
+
size: 300,
|
|
294
|
+
type: "string"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
accessorKey: "type",
|
|
298
|
+
header: "Type",
|
|
299
|
+
size: 300,
|
|
300
|
+
type: "string"
|
|
292
301
|
}
|
|
293
302
|
]
|
|
294
303
|
},
|
|
@@ -361,93 +370,70 @@ const PageMasterUiSchema = (theme) => {
|
|
|
361
370
|
disableAction: true,
|
|
362
371
|
disableSelection: true,
|
|
363
372
|
enableDrag: true
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
elements: [
|
|
367
|
-
{
|
|
368
|
-
accessorKey: "eventType",
|
|
369
|
-
header: "Event's Type",
|
|
370
|
-
size: 300,
|
|
371
|
-
type: "string"
|
|
372
373
|
},
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
header: "Handler",
|
|
376
|
-
size: 200,
|
|
377
|
-
type: "string"
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
accessorKey: "Edit_Approve_Records",
|
|
381
|
-
header: "Edit",
|
|
382
|
-
type: "action",
|
|
383
|
-
size: 150,
|
|
384
|
-
widget: {
|
|
374
|
+
action: [
|
|
375
|
+
{
|
|
385
376
|
type: "Control",
|
|
386
377
|
scope: "#/properties/Edit_Records",
|
|
387
378
|
options: {
|
|
388
|
-
widget: "
|
|
379
|
+
widget: "Button"
|
|
389
380
|
},
|
|
390
381
|
config: {
|
|
391
382
|
main: {
|
|
392
383
|
size: "small",
|
|
393
|
-
|
|
384
|
+
startIcon: "EditIcon",
|
|
394
385
|
tooltipMessage: "Edit This Record",
|
|
395
|
-
onClick: "editEvent"
|
|
396
|
-
|
|
397
|
-
style: {
|
|
398
|
-
fill: theme.palette.primary.main,
|
|
399
|
-
"& :hover": {
|
|
400
|
-
fill: theme.palette.primary.dark
|
|
401
|
-
}
|
|
386
|
+
onClick: "editEvent",
|
|
387
|
+
name: "Edit"
|
|
402
388
|
}
|
|
403
389
|
}
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
{
|
|
407
|
-
accessorKey: "Reject_Records",
|
|
408
|
-
header: "Delete",
|
|
409
|
-
type: "action",
|
|
410
|
-
size: 150,
|
|
411
|
-
widget: {
|
|
390
|
+
},
|
|
391
|
+
{
|
|
412
392
|
type: "Control",
|
|
413
393
|
scope: "#/properties/RejectButton",
|
|
414
394
|
options: {
|
|
415
|
-
widget: "
|
|
395
|
+
widget: "Button"
|
|
416
396
|
},
|
|
417
397
|
config: {
|
|
418
398
|
main: {
|
|
419
|
-
|
|
399
|
+
size: "small",
|
|
400
|
+
startIcon: "Bin",
|
|
420
401
|
tooltipMessage: "Reject This Record",
|
|
421
|
-
onClick: "deletePopUpEvent"
|
|
422
|
-
|
|
423
|
-
style: {
|
|
424
|
-
fill: theme.palette.primary.main,
|
|
425
|
-
"& :hover": {
|
|
426
|
-
fill: theme.palette.primary.dark
|
|
427
|
-
}
|
|
402
|
+
onClick: "deletePopUpEvent",
|
|
403
|
+
name: "Delete"
|
|
428
404
|
}
|
|
429
405
|
}
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
{
|
|
433
|
-
header: "Copy",
|
|
434
|
-
field: "Copy_Event",
|
|
435
|
-
type: "action",
|
|
436
|
-
size: 150,
|
|
437
|
-
widget: {
|
|
406
|
+
},
|
|
407
|
+
{
|
|
438
408
|
type: "Control",
|
|
439
409
|
scope: "#/properties/Copy_Event",
|
|
440
410
|
options: {
|
|
441
|
-
widget: "
|
|
411
|
+
widget: "Button"
|
|
442
412
|
},
|
|
443
413
|
config: {
|
|
444
414
|
main: {
|
|
445
|
-
|
|
415
|
+
size: "small",
|
|
416
|
+
startIcon: "FileCopyIcon",
|
|
446
417
|
onClick: "copyPasteElement",
|
|
447
|
-
styleDefault: true
|
|
418
|
+
styleDefault: true,
|
|
419
|
+
name: "Copy"
|
|
448
420
|
}
|
|
449
421
|
}
|
|
450
422
|
}
|
|
423
|
+
]
|
|
424
|
+
},
|
|
425
|
+
elements: [
|
|
426
|
+
{
|
|
427
|
+
accessorKey: "eventType",
|
|
428
|
+
header: "Event's Type",
|
|
429
|
+
size: 300,
|
|
430
|
+
type: "string"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
accessorKey: "Handler",
|
|
434
|
+
header: "Handler",
|
|
435
|
+
size: 200,
|
|
436
|
+
type: "string"
|
|
451
437
|
}
|
|
452
438
|
]
|
|
453
439
|
}
|
|
@@ -1502,7 +1488,7 @@ var lodash = { exports: {} };
|
|
|
1502
1488
|
}
|
|
1503
1489
|
var runInContext = function runInContext2(context) {
|
|
1504
1490
|
context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
|
|
1505
|
-
var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp,
|
|
1491
|
+
var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError = context.TypeError;
|
|
1506
1492
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
|
1507
1493
|
var coreJsData = context["__core-js_shared__"];
|
|
1508
1494
|
var funcToString = funcProto.toString;
|
|
@@ -1518,7 +1504,7 @@ var lodash = { exports: {} };
|
|
|
1518
1504
|
var reIsNative = RegExp2(
|
|
1519
1505
|
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1520
1506
|
);
|
|
1521
|
-
var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol = context.Symbol,
|
|
1507
|
+
var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined$1, symIterator = Symbol ? Symbol.iterator : undefined$1, symToStringTag = Symbol ? Symbol.toStringTag : undefined$1;
|
|
1522
1508
|
var defineProperty = function() {
|
|
1523
1509
|
try {
|
|
1524
1510
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -1823,7 +1809,7 @@ var lodash = { exports: {} };
|
|
|
1823
1809
|
Stack.prototype.has = stackHas;
|
|
1824
1810
|
Stack.prototype.set = stackSet;
|
|
1825
1811
|
function arrayLikeKeys(value, inherited) {
|
|
1826
|
-
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length,
|
|
1812
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length;
|
|
1827
1813
|
for (var key in value) {
|
|
1828
1814
|
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
|
|
1829
1815
|
result2.push(key);
|
|
@@ -2780,7 +2766,7 @@ var lodash = { exports: {} };
|
|
|
2780
2766
|
}
|
|
2781
2767
|
function cloneArrayBuffer(arrayBuffer) {
|
|
2782
2768
|
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
2783
|
-
new
|
|
2769
|
+
new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
|
|
2784
2770
|
return result2;
|
|
2785
2771
|
}
|
|
2786
2772
|
function cloneDataView(dataView, isDeep) {
|
|
@@ -3384,7 +3370,7 @@ var lodash = { exports: {} };
|
|
|
3384
3370
|
object = object.buffer;
|
|
3385
3371
|
other = other.buffer;
|
|
3386
3372
|
case arrayBufferTag:
|
|
3387
|
-
if (object.byteLength != other.byteLength || !equalFunc(new
|
|
3373
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
|
|
3388
3374
|
return false;
|
|
3389
3375
|
}
|
|
3390
3376
|
return true;
|
|
@@ -6253,9 +6239,13 @@ const ComponentSchema = {
|
|
|
6253
6239
|
{ title: "Masked Aadhar Card", const: "AadharcardText" },
|
|
6254
6240
|
{ title: "Array", const: "Array" },
|
|
6255
6241
|
{ title: "Button", const: "Button" },
|
|
6242
|
+
{ title: "ButtonGroup", const: "ButtonGroup" },
|
|
6256
6243
|
{ title: "Data Card", const: "card" },
|
|
6257
6244
|
{ title: "Check Box", const: "CheckBox" },
|
|
6245
|
+
{ title: "Camera", const: "Camera" },
|
|
6246
|
+
{ title: "Column Group", const: "ColumnGroup" },
|
|
6258
6247
|
{ title: "Container", const: "WrapperSection" },
|
|
6248
|
+
{ title: "Tab Container", const: "HorizontalLayout" },
|
|
6259
6249
|
{ title: "Data Grid", const: "DataGrid" },
|
|
6260
6250
|
{ title: "Date", const: "Date" },
|
|
6261
6251
|
{ title: "Time Stamp", const: "DateTime" },
|
|
@@ -6263,12 +6253,15 @@ const ComponentSchema = {
|
|
|
6263
6253
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
6264
6254
|
{ title: "File Handler", const: "FileInput" },
|
|
6265
6255
|
{ title: "Graph", const: "Graph" },
|
|
6256
|
+
{ title: "Image", const: "Image" },
|
|
6266
6257
|
{ title: "Input Slider", const: "InputSlider" },
|
|
6267
6258
|
{ title: "Label", const: "Box" },
|
|
6268
6259
|
{ title: "Leaderboard", const: "LeaderBoard" },
|
|
6269
6260
|
{ title: "Multi-Select Dropdown", const: "MultipleSelect" },
|
|
6261
|
+
{ title: "OTP_Input", const: "OTP_Input" },
|
|
6270
6262
|
{ title: "Pan Card Masked", const: "PanCardText" },
|
|
6271
6263
|
{ title: "Pop Up", const: "PopUp" },
|
|
6264
|
+
{ title: "Pop Over", const: "PopOver" },
|
|
6272
6265
|
{ title: "Progress Bar", const: "ProgressBar" },
|
|
6273
6266
|
{ title: "Progress Bar Card", const: "ProgressBarCard" },
|
|
6274
6267
|
{ title: "Dropdown", const: "Select" },
|
|
@@ -6278,6 +6271,8 @@ const ComponentSchema = {
|
|
|
6278
6271
|
{ title: "Radio", const: "Radio" },
|
|
6279
6272
|
{ title: "Rank", const: "Rank" },
|
|
6280
6273
|
{ title: "Rank Card", const: "RankCard" },
|
|
6274
|
+
{ title: "Metric Card", const: "MetricCard" },
|
|
6275
|
+
{ title: "Hierarchy Chart", const: "HierarchyChart" },
|
|
6281
6276
|
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6282
6277
|
{ title: "Table", const: "Table" },
|
|
6283
6278
|
{ title: "Tabs", const: "TabSection" },
|
|
@@ -6286,8 +6281,8 @@ const ComponentSchema = {
|
|
|
6286
6281
|
{ title: "Timer", const: "Timer" },
|
|
6287
6282
|
{ title: "Upload", const: "UploadFile" },
|
|
6288
6283
|
{ title: "Tree ", const: "TreeMap" },
|
|
6289
|
-
{ title: "
|
|
6290
|
-
{ title: "
|
|
6284
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6285
|
+
{ title: "PDF", const: "PdfViewer" }
|
|
6291
6286
|
]
|
|
6292
6287
|
},
|
|
6293
6288
|
elementType: {
|
|
@@ -6301,7 +6296,37 @@ const ComponentSchema = {
|
|
|
6301
6296
|
oneOf: [
|
|
6302
6297
|
{ title: "Date Column", const: "date" },
|
|
6303
6298
|
{ title: "DateTime Column", const: "dateTime" },
|
|
6304
|
-
{ title: "Amount Column", const: "amount" }
|
|
6299
|
+
{ title: "Amount Column", const: "amount" },
|
|
6300
|
+
{ title: "Center Column", const: "action" }
|
|
6301
|
+
]
|
|
6302
|
+
},
|
|
6303
|
+
dateFormat: {
|
|
6304
|
+
oneOf: [
|
|
6305
|
+
{
|
|
6306
|
+
title: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
6307
|
+
const: "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
6308
|
+
},
|
|
6309
|
+
{
|
|
6310
|
+
title: "YYYY-MM-DDTHH:mm:ssZ",
|
|
6311
|
+
const: "YYYY-MM-DDTHH:mm:ssZ"
|
|
6312
|
+
},
|
|
6313
|
+
{
|
|
6314
|
+
title: "YYYY-MM-DDTHH:mm:ss",
|
|
6315
|
+
const: "YYYY-MM-DDTHH:mm:ss"
|
|
6316
|
+
},
|
|
6317
|
+
{ title: "YYYY-MM-DD", const: "YYYY-MM-DD" },
|
|
6318
|
+
{ title: "DD-MM-YYYY", const: "DD-MM-YYYY" },
|
|
6319
|
+
{ title: "MM/DD/YYYY", const: "MM/DD/YYYY" },
|
|
6320
|
+
{
|
|
6321
|
+
title: "YYYY-MM-DD HH:mm:ss",
|
|
6322
|
+
const: "YYYY-MM-DD HH:mm:ss"
|
|
6323
|
+
},
|
|
6324
|
+
{
|
|
6325
|
+
title: "YYYY-MM-DD HH:mm:ss.SSS",
|
|
6326
|
+
const: "YYYY-MM-DD HH:mm:ss.SSS"
|
|
6327
|
+
},
|
|
6328
|
+
{ title: "Milliseconds", const: "x" },
|
|
6329
|
+
{ title: "Seconds", const: "X" }
|
|
6305
6330
|
]
|
|
6306
6331
|
},
|
|
6307
6332
|
variant: {
|
|
@@ -6311,6 +6336,55 @@ const ComponentSchema = {
|
|
|
6311
6336
|
{ title: "Standard", const: "standard" }
|
|
6312
6337
|
]
|
|
6313
6338
|
},
|
|
6339
|
+
linkType: {
|
|
6340
|
+
oneOf: [
|
|
6341
|
+
{ title: "Step", const: "step" },
|
|
6342
|
+
{ title: "Diagonal", const: "diagonal" },
|
|
6343
|
+
{ title: "Line", const: "line" }
|
|
6344
|
+
]
|
|
6345
|
+
},
|
|
6346
|
+
positionVertical: {
|
|
6347
|
+
oneOf: [
|
|
6348
|
+
{ title: "Top", const: "top" },
|
|
6349
|
+
{ title: "Center", const: "center" },
|
|
6350
|
+
{ title: "Bottom", const: "bottom" }
|
|
6351
|
+
]
|
|
6352
|
+
},
|
|
6353
|
+
positionHorizontal: {
|
|
6354
|
+
oneOf: [
|
|
6355
|
+
{ title: "Left", const: "left" },
|
|
6356
|
+
{ title: "Center", const: "center" },
|
|
6357
|
+
{ title: "Right", const: "right" }
|
|
6358
|
+
]
|
|
6359
|
+
},
|
|
6360
|
+
contentVertical: {
|
|
6361
|
+
oneOf: [
|
|
6362
|
+
{ title: "Top", const: "top" },
|
|
6363
|
+
{ title: "Center", const: "center" },
|
|
6364
|
+
{ title: "Bottom", const: "bottom" }
|
|
6365
|
+
]
|
|
6366
|
+
},
|
|
6367
|
+
contentHorizontal: {
|
|
6368
|
+
oneOf: [
|
|
6369
|
+
{ title: "Left", const: "left" },
|
|
6370
|
+
{ title: "Center", const: "center" },
|
|
6371
|
+
{ title: "Right", const: "right" }
|
|
6372
|
+
]
|
|
6373
|
+
},
|
|
6374
|
+
toolTipPosition: {
|
|
6375
|
+
oneOf: [
|
|
6376
|
+
{ title: "Top", const: "top" },
|
|
6377
|
+
{ title: "Left", const: "left" },
|
|
6378
|
+
{ title: "Right", const: "right" },
|
|
6379
|
+
{ title: "Bottom", const: "bottom" }
|
|
6380
|
+
]
|
|
6381
|
+
},
|
|
6382
|
+
growthRate: {
|
|
6383
|
+
oneOf: [
|
|
6384
|
+
{ title: "Positive", const: "positive" },
|
|
6385
|
+
{ title: "Negative", const: "negative" }
|
|
6386
|
+
]
|
|
6387
|
+
},
|
|
6314
6388
|
orientation: {
|
|
6315
6389
|
oneOf: [
|
|
6316
6390
|
{ title: "Horizontal", const: "horizontal" },
|
|
@@ -6326,6 +6400,40 @@ const ComponentSchema = {
|
|
|
6326
6400
|
{ title: "Put", const: "put" }
|
|
6327
6401
|
]
|
|
6328
6402
|
},
|
|
6403
|
+
maxPageSize: {
|
|
6404
|
+
type: "number",
|
|
6405
|
+
oneOf: [
|
|
6406
|
+
{ title: "10", const: 10 },
|
|
6407
|
+
{ title: "20", const: 20 },
|
|
6408
|
+
{ title: "30", const: 30 },
|
|
6409
|
+
{ title: "50", const: 50 },
|
|
6410
|
+
{ title: "100", const: 100 },
|
|
6411
|
+
{ title: "500", const: 500 }
|
|
6412
|
+
]
|
|
6413
|
+
},
|
|
6414
|
+
initialDensity: {
|
|
6415
|
+
type: "string",
|
|
6416
|
+
oneOf: [
|
|
6417
|
+
{ title: "Compact", const: "compact" },
|
|
6418
|
+
{ title: "Comfortable", const: "comfortable" },
|
|
6419
|
+
{ title: "Spacious", const: "spacious" }
|
|
6420
|
+
]
|
|
6421
|
+
},
|
|
6422
|
+
xAxisFormatType: {
|
|
6423
|
+
type: "string",
|
|
6424
|
+
oneOf: [
|
|
6425
|
+
{ title: "Date and Month", const: "Date and Month" },
|
|
6426
|
+
{ title: "Month and Year", const: "Month and Year" }
|
|
6427
|
+
]
|
|
6428
|
+
},
|
|
6429
|
+
xAxisType: {
|
|
6430
|
+
type: "string",
|
|
6431
|
+
oneOf: [
|
|
6432
|
+
{ title: "Date", const: "date" },
|
|
6433
|
+
{ title: "String", const: "string" },
|
|
6434
|
+
{ title: "Number", const: "number" }
|
|
6435
|
+
]
|
|
6436
|
+
},
|
|
6329
6437
|
layout: {
|
|
6330
6438
|
type: "array",
|
|
6331
6439
|
items: {
|
|
@@ -6461,6 +6569,9 @@ const ComponentSchema = {
|
|
|
6461
6569
|
items: {
|
|
6462
6570
|
type: "object",
|
|
6463
6571
|
properties: {
|
|
6572
|
+
key: {
|
|
6573
|
+
type: "string"
|
|
6574
|
+
},
|
|
6464
6575
|
label: {
|
|
6465
6576
|
type: "string"
|
|
6466
6577
|
}
|
|
@@ -6472,12 +6583,26 @@ const ComponentSchema = {
|
|
|
6472
6583
|
items: {
|
|
6473
6584
|
type: "object",
|
|
6474
6585
|
properties: {
|
|
6586
|
+
key: {
|
|
6587
|
+
type: "string"
|
|
6588
|
+
},
|
|
6475
6589
|
label: {
|
|
6476
6590
|
type: "string"
|
|
6477
6591
|
}
|
|
6478
6592
|
}
|
|
6479
6593
|
}
|
|
6480
6594
|
},
|
|
6595
|
+
tabIcons: {
|
|
6596
|
+
type: "array",
|
|
6597
|
+
items: {
|
|
6598
|
+
type: "object",
|
|
6599
|
+
properties: {
|
|
6600
|
+
url: {
|
|
6601
|
+
type: "string"
|
|
6602
|
+
}
|
|
6603
|
+
}
|
|
6604
|
+
}
|
|
6605
|
+
},
|
|
6481
6606
|
InputFormatingAndMasking: {
|
|
6482
6607
|
type: "array",
|
|
6483
6608
|
items: {
|
|
@@ -6503,7 +6628,8 @@ const ComponentSchema = {
|
|
|
6503
6628
|
{ const: "required", title: "Required" },
|
|
6504
6629
|
{ const: "minLength", title: "Minimum Length" },
|
|
6505
6630
|
{ const: "maxLength", title: "Maximum Length" },
|
|
6506
|
-
{ const: "pattern", title: "Pattern" }
|
|
6631
|
+
{ const: "pattern", title: "Pattern" },
|
|
6632
|
+
{ const: "readOnly", title: "Read Only" }
|
|
6507
6633
|
]
|
|
6508
6634
|
},
|
|
6509
6635
|
validationValue: {
|
|
@@ -6535,7 +6661,12 @@ const ComponentSchema = {
|
|
|
6535
6661
|
{ title: "Line Graph", const: "LineGraph" },
|
|
6536
6662
|
{ title: "Pie Graph", const: "PieGraph" },
|
|
6537
6663
|
{ title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
|
|
6538
|
-
{
|
|
6664
|
+
{
|
|
6665
|
+
title: "Stack Horizontal Bar Graph",
|
|
6666
|
+
const: "HorizontalStackBarGraph"
|
|
6667
|
+
},
|
|
6668
|
+
{ title: "Area Graph", const: "AreaGraph" },
|
|
6669
|
+
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" }
|
|
6539
6670
|
]
|
|
6540
6671
|
},
|
|
6541
6672
|
iconName: {
|
|
@@ -6557,33 +6688,43 @@ const ComponentSchema = {
|
|
|
6557
6688
|
{ title: "Error Icon", const: "ErrorIcon" },
|
|
6558
6689
|
{ title: "Refresh Icon", const: "RefreshIcon" },
|
|
6559
6690
|
{ title: "Download Icon", const: "DownloadIcon" },
|
|
6691
|
+
{ title: "Download All Icon", const: "DownloadAllIcon" },
|
|
6560
6692
|
{ title: "Exception Icon", const: "ExceptionIcon" },
|
|
6561
|
-
{
|
|
6562
|
-
{
|
|
6563
|
-
{
|
|
6564
|
-
{
|
|
6565
|
-
{
|
|
6566
|
-
{
|
|
6567
|
-
{
|
|
6568
|
-
{
|
|
6569
|
-
{
|
|
6570
|
-
{
|
|
6571
|
-
{
|
|
6572
|
-
{
|
|
6573
|
-
{
|
|
6574
|
-
{
|
|
6575
|
-
{
|
|
6576
|
-
{
|
|
6577
|
-
{
|
|
6578
|
-
{
|
|
6579
|
-
{
|
|
6580
|
-
{
|
|
6581
|
-
{
|
|
6582
|
-
{
|
|
6583
|
-
{
|
|
6584
|
-
{
|
|
6585
|
-
{
|
|
6586
|
-
{
|
|
6693
|
+
{ title: "Alarm Icon", const: "AlarmIcon" },
|
|
6694
|
+
{ title: "Click Icon", const: "ClickIcon" },
|
|
6695
|
+
{ title: "Content Copy Icon", const: "ContentCopyIcon" },
|
|
6696
|
+
{ title: "File Copy Icon", const: "FileCopyIcon" },
|
|
6697
|
+
{ title: "Pause Icon", const: "PauseIcon" },
|
|
6698
|
+
{ title: "Play Icon", const: "PlayIcon" },
|
|
6699
|
+
{ title: "Close Icon", const: "CloseIcon" },
|
|
6700
|
+
{ title: "Replay Icon", const: "ReplayIcon" },
|
|
6701
|
+
{ title: "Delete Icon", const: "DeleteIcon" },
|
|
6702
|
+
{ title: "Drafts Icon", const: "DraftsIcon" },
|
|
6703
|
+
{ title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
|
|
6704
|
+
{ title: "Paste Icon", const: "PasteIcon" },
|
|
6705
|
+
{ title: "Calendar", const: "Calendar" },
|
|
6706
|
+
{ title: "Prev Icon", const: "PrevIcon" },
|
|
6707
|
+
{ title: "Verified Icon", const: "VerifiedIcon" },
|
|
6708
|
+
{ title: "Table Add Icon", const: "TableAddIcon" },
|
|
6709
|
+
{ title: "Table Download Icon", const: "TableDownloadIcon" },
|
|
6710
|
+
{ title: "Audit Trail Icon", const: "AuditTrailIcon" },
|
|
6711
|
+
{ title: "View Component", const: "View" },
|
|
6712
|
+
{ title: "Table Edit Icon", const: "TableEditIcon" },
|
|
6713
|
+
{ title: "Maximize Icon", const: "Maximize" },
|
|
6714
|
+
{ title: "Minimize Icon", const: "Minimize" },
|
|
6715
|
+
{ title: "Subtract Icon", const: "Subtract" },
|
|
6716
|
+
{ title: "Bin Icon", const: "Bin" },
|
|
6717
|
+
{ title: "Export Icon", const: "Export" },
|
|
6718
|
+
{ title: "Table Paste Icon", const: "TablePaste" },
|
|
6719
|
+
{ title: "Clone Icon", const: "CloneIcon" },
|
|
6720
|
+
{ title: "Detail Icon", const: "DetailIcon" },
|
|
6721
|
+
{ title: "Report View Icon", const: "ReportViewIcon" },
|
|
6722
|
+
{ title: "Payout", const: "Payout" },
|
|
6723
|
+
{ title: "Info Outlined", const: "InfoOutlinedIcon" },
|
|
6724
|
+
{ title: "Territory Add", const: "TerritoryAdd" },
|
|
6725
|
+
{ title: "Territory Edit", const: "TerritoryEdit" },
|
|
6726
|
+
{ title: "Territory Delete", const: "TerritoryDelete" },
|
|
6727
|
+
{ title: "Git Compare", const: "GitCompare" }
|
|
6587
6728
|
]
|
|
6588
6729
|
},
|
|
6589
6730
|
color: {
|
|
@@ -6701,7 +6842,67 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6701
6842
|
},
|
|
6702
6843
|
{
|
|
6703
6844
|
type: "Control",
|
|
6704
|
-
scope: "#/properties/
|
|
6845
|
+
scope: "#/properties/proc5",
|
|
6846
|
+
config: {
|
|
6847
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6848
|
+
},
|
|
6849
|
+
options: {
|
|
6850
|
+
widget: "EmptyBox"
|
|
6851
|
+
}
|
|
6852
|
+
},
|
|
6853
|
+
{
|
|
6854
|
+
type: "Control",
|
|
6855
|
+
scope: "#/properties/proc6",
|
|
6856
|
+
config: {
|
|
6857
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6858
|
+
},
|
|
6859
|
+
options: {
|
|
6860
|
+
widget: "EmptyBox"
|
|
6861
|
+
}
|
|
6862
|
+
},
|
|
6863
|
+
{
|
|
6864
|
+
type: "Control",
|
|
6865
|
+
scope: "#/properties/proc7",
|
|
6866
|
+
config: {
|
|
6867
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6868
|
+
},
|
|
6869
|
+
options: {
|
|
6870
|
+
widget: "EmptyBox"
|
|
6871
|
+
}
|
|
6872
|
+
},
|
|
6873
|
+
{
|
|
6874
|
+
type: "Control",
|
|
6875
|
+
scope: "#/properties/proc8",
|
|
6876
|
+
config: {
|
|
6877
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6878
|
+
},
|
|
6879
|
+
options: {
|
|
6880
|
+
widget: "EmptyBox"
|
|
6881
|
+
}
|
|
6882
|
+
},
|
|
6883
|
+
{
|
|
6884
|
+
type: "Control",
|
|
6885
|
+
scope: "#/properties/proc9",
|
|
6886
|
+
config: {
|
|
6887
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6888
|
+
},
|
|
6889
|
+
options: {
|
|
6890
|
+
widget: "EmptyBox"
|
|
6891
|
+
}
|
|
6892
|
+
},
|
|
6893
|
+
{
|
|
6894
|
+
type: "Control",
|
|
6895
|
+
scope: "#/properties/proc10",
|
|
6896
|
+
config: {
|
|
6897
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6898
|
+
},
|
|
6899
|
+
options: {
|
|
6900
|
+
widget: "EmptyBox"
|
|
6901
|
+
}
|
|
6902
|
+
},
|
|
6903
|
+
{
|
|
6904
|
+
type: "Control",
|
|
6905
|
+
scope: "#/properties/proc11",
|
|
6705
6906
|
config: {
|
|
6706
6907
|
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6707
6908
|
},
|
|
@@ -7223,7 +7424,7 @@ const CoreSection = {
|
|
|
7223
7424
|
},
|
|
7224
7425
|
{
|
|
7225
7426
|
type: "Control",
|
|
7226
|
-
scope: "#/properties/
|
|
7427
|
+
scope: "#/properties/proc5",
|
|
7227
7428
|
config: {
|
|
7228
7429
|
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7229
7430
|
},
|
|
@@ -7233,21 +7434,91 @@ const CoreSection = {
|
|
|
7233
7434
|
},
|
|
7234
7435
|
{
|
|
7235
7436
|
type: "Control",
|
|
7236
|
-
scope: "#/properties/
|
|
7437
|
+
scope: "#/properties/proc6",
|
|
7237
7438
|
config: {
|
|
7238
|
-
layout:
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7439
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7440
|
+
},
|
|
7441
|
+
options: {
|
|
7442
|
+
widget: "EmptyBox"
|
|
7443
|
+
}
|
|
7444
|
+
},
|
|
7445
|
+
{
|
|
7446
|
+
type: "Control",
|
|
7447
|
+
scope: "#/properties/proc7",
|
|
7448
|
+
config: {
|
|
7449
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7450
|
+
},
|
|
7451
|
+
options: {
|
|
7452
|
+
widget: "EmptyBox"
|
|
7453
|
+
}
|
|
7454
|
+
},
|
|
7455
|
+
{
|
|
7456
|
+
type: "Control",
|
|
7457
|
+
scope: "#/properties/proc8",
|
|
7458
|
+
config: {
|
|
7459
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7460
|
+
},
|
|
7461
|
+
options: {
|
|
7462
|
+
widget: "EmptyBox"
|
|
7463
|
+
}
|
|
7464
|
+
},
|
|
7465
|
+
{
|
|
7466
|
+
type: "Control",
|
|
7467
|
+
scope: "#/properties/proc9",
|
|
7468
|
+
config: {
|
|
7469
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7470
|
+
},
|
|
7471
|
+
options: {
|
|
7472
|
+
widget: "EmptyBox"
|
|
7473
|
+
}
|
|
7474
|
+
},
|
|
7475
|
+
{
|
|
7476
|
+
type: "Control",
|
|
7477
|
+
scope: "#/properties/proc10",
|
|
7478
|
+
config: {
|
|
7479
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7480
|
+
},
|
|
7481
|
+
options: {
|
|
7482
|
+
widget: "EmptyBox"
|
|
7483
|
+
}
|
|
7484
|
+
},
|
|
7485
|
+
{
|
|
7486
|
+
type: "Control",
|
|
7487
|
+
scope: "#/properties/proc11",
|
|
7488
|
+
config: {
|
|
7489
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7490
|
+
},
|
|
7491
|
+
options: {
|
|
7492
|
+
widget: "EmptyBox"
|
|
7493
|
+
}
|
|
7494
|
+
},
|
|
7495
|
+
{
|
|
7496
|
+
type: "Control",
|
|
7497
|
+
scope: "#/properties/proc",
|
|
7498
|
+
config: {
|
|
7499
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7500
|
+
},
|
|
7501
|
+
options: {
|
|
7502
|
+
widget: "EmptyBox"
|
|
7503
|
+
}
|
|
7504
|
+
},
|
|
7505
|
+
{
|
|
7506
|
+
type: "Control",
|
|
7507
|
+
scope: "#/properties/layout",
|
|
7508
|
+
config: {
|
|
7509
|
+
layout: 12,
|
|
7510
|
+
main: {
|
|
7511
|
+
label: "Layout",
|
|
7512
|
+
childElementLabel: "Layout"
|
|
7513
|
+
},
|
|
7514
|
+
style: {
|
|
7515
|
+
marginLeft: "-24px",
|
|
7516
|
+
marginBottom: "24px !important",
|
|
7517
|
+
labelStyle: {
|
|
7518
|
+
marginLeft: "24px"
|
|
7519
|
+
},
|
|
7520
|
+
detailsStyle: {
|
|
7521
|
+
marginLeft: "24px"
|
|
7251
7522
|
}
|
|
7252
7523
|
}
|
|
7253
7524
|
},
|
|
@@ -7368,95 +7639,71 @@ const EventSection = (theme) => {
|
|
|
7368
7639
|
disableAction: true,
|
|
7369
7640
|
disableSelection: true,
|
|
7370
7641
|
enableDrag: true
|
|
7371
|
-
}
|
|
7372
|
-
},
|
|
7373
|
-
elements: [
|
|
7374
|
-
{
|
|
7375
|
-
accessorKey: "eventType",
|
|
7376
|
-
header: "Event's Type",
|
|
7377
|
-
type: "string",
|
|
7378
|
-
size: 300
|
|
7379
|
-
},
|
|
7380
|
-
{
|
|
7381
|
-
accessorKey: "Handler",
|
|
7382
|
-
header: "Handler",
|
|
7383
|
-
type: "string",
|
|
7384
|
-
size: 200
|
|
7385
7642
|
},
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
header: "Edit",
|
|
7389
|
-
size: 150,
|
|
7390
|
-
type: "action",
|
|
7391
|
-
widget: {
|
|
7643
|
+
action: [
|
|
7644
|
+
{
|
|
7392
7645
|
type: "Control",
|
|
7393
7646
|
scope: "#/properties/Edit_Records",
|
|
7394
7647
|
options: {
|
|
7395
|
-
widget: "
|
|
7648
|
+
widget: "Button"
|
|
7396
7649
|
},
|
|
7397
7650
|
config: {
|
|
7398
7651
|
main: {
|
|
7399
7652
|
size: "small",
|
|
7400
|
-
|
|
7653
|
+
startIcon: "EditIcon",
|
|
7401
7654
|
tooltipMessage: "Edit This Record",
|
|
7402
|
-
onClick: "eventEditHandler"
|
|
7403
|
-
|
|
7404
|
-
style: {
|
|
7405
|
-
fill: theme.palette.primary.main,
|
|
7406
|
-
"& :hover": {
|
|
7407
|
-
fill: theme.palette.primary.dark
|
|
7408
|
-
}
|
|
7655
|
+
onClick: "eventEditHandler",
|
|
7656
|
+
name: "Edit"
|
|
7409
7657
|
}
|
|
7410
7658
|
}
|
|
7411
|
-
}
|
|
7412
|
-
|
|
7413
|
-
{
|
|
7414
|
-
accessorKey: "Reject_Records",
|
|
7415
|
-
header: "Delete",
|
|
7416
|
-
size: 150,
|
|
7417
|
-
type: "action",
|
|
7418
|
-
widget: {
|
|
7659
|
+
},
|
|
7660
|
+
{
|
|
7419
7661
|
type: "Control",
|
|
7420
7662
|
scope: "#/properties/RejectButton",
|
|
7421
7663
|
accessorKeyName: "Reject_Records",
|
|
7422
7664
|
options: {
|
|
7423
|
-
widget: "
|
|
7665
|
+
widget: "Button"
|
|
7424
7666
|
},
|
|
7425
7667
|
config: {
|
|
7426
7668
|
main: {
|
|
7427
|
-
|
|
7669
|
+
startIcon: "Bin",
|
|
7428
7670
|
tooltipMessage: "Reject This Record",
|
|
7429
|
-
onClick: "deletePopUpEvent"
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
fill: theme.palette.primary.main,
|
|
7433
|
-
"& :hover": {
|
|
7434
|
-
fill: theme.palette.primary.dark
|
|
7435
|
-
}
|
|
7671
|
+
onClick: "deletePopUpEvent",
|
|
7672
|
+
name: "Delete",
|
|
7673
|
+
size: "small"
|
|
7436
7674
|
}
|
|
7437
7675
|
}
|
|
7438
|
-
}
|
|
7439
|
-
|
|
7440
|
-
{
|
|
7441
|
-
header: "Copy",
|
|
7442
|
-
field: "Copy_Event",
|
|
7443
|
-
size: 150,
|
|
7444
|
-
type: "action",
|
|
7445
|
-
widget: {
|
|
7676
|
+
},
|
|
7677
|
+
{
|
|
7446
7678
|
type: "Control",
|
|
7447
7679
|
scope: "#/properties/Copy_Event",
|
|
7448
7680
|
options: {
|
|
7449
|
-
widget: "
|
|
7681
|
+
widget: "Button"
|
|
7450
7682
|
},
|
|
7451
7683
|
config: {
|
|
7452
7684
|
main: {
|
|
7453
|
-
|
|
7685
|
+
startIcon: "FileCopyIcon",
|
|
7454
7686
|
onClick: "copyPasteElement",
|
|
7455
7687
|
tooltipMessage: "Reject This Record",
|
|
7456
|
-
styleDefault:
|
|
7688
|
+
styleDefault: false,
|
|
7689
|
+
name: "Copy"
|
|
7457
7690
|
}
|
|
7458
7691
|
}
|
|
7459
7692
|
}
|
|
7693
|
+
]
|
|
7694
|
+
},
|
|
7695
|
+
elements: [
|
|
7696
|
+
{
|
|
7697
|
+
accessorKey: "eventType",
|
|
7698
|
+
header: "Event's Type",
|
|
7699
|
+
type: "string",
|
|
7700
|
+
size: 300
|
|
7701
|
+
},
|
|
7702
|
+
{
|
|
7703
|
+
accessorKey: "Handler",
|
|
7704
|
+
header: "Handler",
|
|
7705
|
+
type: "string",
|
|
7706
|
+
size: 200
|
|
7460
7707
|
}
|
|
7461
7708
|
]
|
|
7462
7709
|
}
|
|
@@ -7583,6 +7830,60 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
7583
7830
|
]
|
|
7584
7831
|
};
|
|
7585
7832
|
};
|
|
7833
|
+
const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
|
|
7834
|
+
return {
|
|
7835
|
+
type: "Control",
|
|
7836
|
+
scope: `#/properties/${parentScope}`,
|
|
7837
|
+
options: {
|
|
7838
|
+
widget: "Array"
|
|
7839
|
+
},
|
|
7840
|
+
config: {
|
|
7841
|
+
layout: 12,
|
|
7842
|
+
main: {
|
|
7843
|
+
label: arrayLabel
|
|
7844
|
+
},
|
|
7845
|
+
style: {
|
|
7846
|
+
marginLeft: "-24px",
|
|
7847
|
+
marginBottom: "24px !important",
|
|
7848
|
+
labelStyle: {
|
|
7849
|
+
marginLeft: "24px"
|
|
7850
|
+
},
|
|
7851
|
+
detailsStyle: {
|
|
7852
|
+
marginLeft: "24px"
|
|
7853
|
+
}
|
|
7854
|
+
}
|
|
7855
|
+
},
|
|
7856
|
+
elements: [
|
|
7857
|
+
{
|
|
7858
|
+
type: "Control",
|
|
7859
|
+
scope: `#/properties/${firstFieldScope}`,
|
|
7860
|
+
options: {
|
|
7861
|
+
widget: "InputField"
|
|
7862
|
+
},
|
|
7863
|
+
config: {
|
|
7864
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7865
|
+
main: {
|
|
7866
|
+
label: firstFieldLabel || "Labels for Tab"
|
|
7867
|
+
}
|
|
7868
|
+
}
|
|
7869
|
+
},
|
|
7870
|
+
{
|
|
7871
|
+
type: "Control",
|
|
7872
|
+
scope: `#/properties/${secondFieldScope}`,
|
|
7873
|
+
options: {
|
|
7874
|
+
widget: "InputField"
|
|
7875
|
+
},
|
|
7876
|
+
config: {
|
|
7877
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7878
|
+
main: {
|
|
7879
|
+
label: secondFieldLabel || "Labels for Tab"
|
|
7880
|
+
}
|
|
7881
|
+
}
|
|
7882
|
+
},
|
|
7883
|
+
emptyBox$1("ArrayControlEmpty2", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7884
|
+
]
|
|
7885
|
+
};
|
|
7886
|
+
};
|
|
7586
7887
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7587
7888
|
sizeHolder.elements[1] = {
|
|
7588
7889
|
type: "Control",
|
|
@@ -7705,12 +8006,26 @@ const BaseSection = {
|
|
|
7705
8006
|
const buildPropertiesSection = function(type) {
|
|
7706
8007
|
let uiSchema = _.cloneDeep(BaseSection);
|
|
7707
8008
|
switch (type) {
|
|
8009
|
+
case "OTP_Input":
|
|
8010
|
+
uiSchema.elements = [
|
|
8011
|
+
getInputField("seperator", "Seperator"),
|
|
8012
|
+
getInputField("length", "OTP Length"),
|
|
8013
|
+
getRadioInputField("masking", "OTP Masking", ["YES", "NO"]),
|
|
8014
|
+
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
8015
|
+
];
|
|
8016
|
+
break;
|
|
7708
8017
|
case "Array":
|
|
7709
8018
|
uiSchema.elements = [
|
|
7710
8019
|
getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
|
|
8020
|
+
getRadioInputField("disableAddButton", "Disable Add Button", ["YES", "NO"]),
|
|
8021
|
+
getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
|
|
8022
|
+
getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
|
|
7711
8023
|
getInputField("childElementLabel", "Child Element Label"),
|
|
7712
|
-
|
|
7713
|
-
|
|
8024
|
+
getInputField("showKeyAsLabel", "ShowKey As Label"),
|
|
8025
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
8026
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
8027
|
+
getInputField("spacing", "Spacing"),
|
|
8028
|
+
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
7714
8029
|
];
|
|
7715
8030
|
break;
|
|
7716
8031
|
case "TreeMap":
|
|
@@ -7763,12 +8078,26 @@ const buildPropertiesSection = function(type) {
|
|
|
7763
8078
|
emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
7764
8079
|
];
|
|
7765
8080
|
break;
|
|
8081
|
+
case "PopOver":
|
|
8082
|
+
uiSchema.elements = [
|
|
8083
|
+
getSelectField("positionVertical", "Attach To (Vertical)"),
|
|
8084
|
+
getSelectField("positionHorizontal", "Attach To (Horizontal)"),
|
|
8085
|
+
getSelectField("contentVertical", "Popover Start (Vertical)"),
|
|
8086
|
+
getSelectField("contentHorizontal", "Popover Start (Horizontal)"),
|
|
8087
|
+
getInputField("width", "Width"),
|
|
8088
|
+
getInputField("gap", "Gap"),
|
|
8089
|
+
emptyBox$1("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
|
|
8090
|
+
];
|
|
8091
|
+
break;
|
|
7766
8092
|
case "Text":
|
|
7767
8093
|
uiSchema.elements = [
|
|
7768
8094
|
getInputField("placeholder", "Placeholder"),
|
|
7769
8095
|
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7770
8096
|
getSelectField("variant", "Variant"),
|
|
7771
|
-
|
|
8097
|
+
getInputField("toolTip", "Tooltip"),
|
|
8098
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8099
|
+
getSelectField("iconName", "Start Icon"),
|
|
8100
|
+
emptyBox$1("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
|
|
7772
8101
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
|
|
7773
8102
|
getInputField("keyName", "Event Key Name")
|
|
7774
8103
|
];
|
|
@@ -7806,7 +8135,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7806
8135
|
getInputField("nameKey", "Key for Name"),
|
|
7807
8136
|
getInputField("imageKey", "Key for Image"),
|
|
7808
8137
|
getInputField("scoreKey", "Key for comparing parameter"),
|
|
7809
|
-
|
|
8138
|
+
getRadioInputField("isScoreAmount", "Is Score an Amount Type", ["YES", "No"]),
|
|
8139
|
+
emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 })
|
|
7810
8140
|
];
|
|
7811
8141
|
break;
|
|
7812
8142
|
case "CardSlider":
|
|
@@ -7822,8 +8152,9 @@ const buildPropertiesSection = function(type) {
|
|
|
7822
8152
|
getInputField("bottomLabel_1", "First BottomLabel"),
|
|
7823
8153
|
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
7824
8154
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
7825
|
-
|
|
7826
|
-
|
|
8155
|
+
getInputField("size", "Size"),
|
|
8156
|
+
getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
|
|
8157
|
+
getArrayControl("pieArcColors", "color", "Color")
|
|
7827
8158
|
];
|
|
7828
8159
|
break;
|
|
7829
8160
|
case "card":
|
|
@@ -7835,6 +8166,28 @@ const buildPropertiesSection = function(type) {
|
|
|
7835
8166
|
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
7836
8167
|
];
|
|
7837
8168
|
break;
|
|
8169
|
+
case "HierarchyChart":
|
|
8170
|
+
uiSchema.elements = [
|
|
8171
|
+
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8172
|
+
getSelectField("linkType", "Link Type"),
|
|
8173
|
+
getInputField("nodeWidth", "Node Width"),
|
|
8174
|
+
getInputField("nodeHeight", "Node Height"),
|
|
8175
|
+
getInputField("chartHeight", "Chart Height"),
|
|
8176
|
+
getInputField("stepPercent", "Link Bend Position"),
|
|
8177
|
+
emptyBox$1("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8178
|
+
];
|
|
8179
|
+
break;
|
|
8180
|
+
case "MetricCard":
|
|
8181
|
+
uiSchema.elements = [
|
|
8182
|
+
getInputField("url", "Image Url"),
|
|
8183
|
+
getInputField("label", "Label"),
|
|
8184
|
+
getInputField("cardValue", "Value"),
|
|
8185
|
+
getInputField("description", "Description"),
|
|
8186
|
+
getSelectField("growthRate", "Growth Rate"),
|
|
8187
|
+
getInputField("color", "Card Color"),
|
|
8188
|
+
emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
|
|
8189
|
+
];
|
|
8190
|
+
break;
|
|
7838
8191
|
case "Button":
|
|
7839
8192
|
uiSchema.elements = [
|
|
7840
8193
|
getSelectField("buttonType", "Button Type"),
|
|
@@ -7845,22 +8198,45 @@ const buildPropertiesSection = function(type) {
|
|
|
7845
8198
|
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7846
8199
|
];
|
|
7847
8200
|
break;
|
|
8201
|
+
case "ButtonGroup":
|
|
8202
|
+
uiSchema.elements = [
|
|
8203
|
+
getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
|
|
8204
|
+
getInputField("size", "Size"),
|
|
8205
|
+
getSelectField("color", "Color"),
|
|
8206
|
+
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8207
|
+
];
|
|
8208
|
+
break;
|
|
8209
|
+
case "Box":
|
|
8210
|
+
uiSchema.elements = [
|
|
8211
|
+
getSelectField("iconName", "Icon Name"),
|
|
8212
|
+
emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
|
|
8213
|
+
];
|
|
8214
|
+
break;
|
|
7848
8215
|
case "Graph":
|
|
7849
8216
|
uiSchema.elements = [
|
|
7850
8217
|
getInputField("height", "Height"),
|
|
7851
8218
|
getInputField("heading", "Heading"),
|
|
8219
|
+
getInputField("subHeader", "Sub Header"),
|
|
7852
8220
|
getSelectField("graphType", "Graph Type"),
|
|
7853
8221
|
getInputField("leftLabel", "Left Label"),
|
|
8222
|
+
getInputField("rightLabel", "Right Label"),
|
|
8223
|
+
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
7854
8224
|
getInputField("bottomLabel", "Bottom Label"),
|
|
7855
8225
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
7856
8226
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
7857
|
-
|
|
7858
|
-
getInputField("
|
|
8227
|
+
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
8228
|
+
getInputField("yAxisValue", "Y-Axis Key"),
|
|
8229
|
+
getInputField("xAxisValue", "X-Axis Key"),
|
|
8230
|
+
getSelectField("xAxisType", "X-AxisType"),
|
|
7859
8231
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7860
8232
|
getInputField("leftMargin", "Left Margin"),
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
8233
|
+
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8234
|
+
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8235
|
+
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8236
|
+
getInputField("growthRateKey", "Growth Rate Key"),
|
|
8237
|
+
getInputField("tooltipUnit", "Tooltip Unit"),
|
|
8238
|
+
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
|
|
8239
|
+
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
|
|
7864
8240
|
];
|
|
7865
8241
|
break;
|
|
7866
8242
|
case "WrapperSection":
|
|
@@ -7868,8 +8244,13 @@ const buildPropertiesSection = function(type) {
|
|
|
7868
8244
|
getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
7869
8245
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
7870
8246
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
8247
|
+
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
7871
8248
|
getInputField("rowSpacing", "Row Spacing"),
|
|
7872
|
-
|
|
8249
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
8250
|
+
getInputField("spacing", "Spacing"),
|
|
8251
|
+
getInputField("iconUrl", "Icon Url"),
|
|
8252
|
+
getInputField("wrapperId", "Wrapper Id"),
|
|
8253
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
7873
8254
|
emptyBox$1("WrapperSectionEmpty2")
|
|
7874
8255
|
];
|
|
7875
8256
|
break;
|
|
@@ -7878,7 +8259,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7878
8259
|
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
7879
8260
|
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
7880
8261
|
emptyBox$1("TabEmpty"),
|
|
7881
|
-
|
|
8262
|
+
getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
|
|
7882
8263
|
];
|
|
7883
8264
|
break;
|
|
7884
8265
|
case "Table":
|
|
@@ -7898,13 +8279,18 @@ const buildPropertiesSection = function(type) {
|
|
|
7898
8279
|
getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
|
|
7899
8280
|
getInputField("selectKey", "Selection Key"),
|
|
7900
8281
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
8282
|
+
getSelectField("maxPageSize", "Max Page Size"),
|
|
8283
|
+
getSelectField("initialDensity", "Initial Toggle Density"),
|
|
8284
|
+
getInputField("rowIdKey", "Row ID Key"),
|
|
8285
|
+
getInputField("parentIdKey", "Parent ID Key"),
|
|
8286
|
+
emptyBox$1("TreeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
7901
8287
|
buildWrapper("Tree Table Properties", [
|
|
7902
8288
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
7903
8289
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
7904
8290
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
7905
|
-
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
7906
8291
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
7907
|
-
|
|
8292
|
+
getInputField("defaultColumnSize", "Default Column Size"),
|
|
8293
|
+
,
|
|
7908
8294
|
emptyBox$1("LazyLoadingTableEmpty3")
|
|
7909
8295
|
]),
|
|
7910
8296
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
@@ -7914,6 +8300,10 @@ const buildPropertiesSection = function(type) {
|
|
|
7914
8300
|
break;
|
|
7915
8301
|
case "Radio":
|
|
7916
8302
|
uiSchema.elements = [
|
|
8303
|
+
getInputField("errorMessage", "Error Message"),
|
|
8304
|
+
getInputField("toolTip", "Tooltip"),
|
|
8305
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8306
|
+
emptyBox$1("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
7917
8307
|
getArrayControl("sectionLabels", "label", "Options Of Radio")
|
|
7918
8308
|
];
|
|
7919
8309
|
break;
|
|
@@ -7922,15 +8312,39 @@ const buildPropertiesSection = function(type) {
|
|
|
7922
8312
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7923
8313
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
7924
8314
|
getSelectField("variant", "Variant"),
|
|
7925
|
-
|
|
8315
|
+
getInputField("toolTip", "Tooltip"),
|
|
8316
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8317
|
+
emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
7926
8318
|
];
|
|
7927
8319
|
break;
|
|
7928
8320
|
case "MultipleSelect":
|
|
7929
8321
|
uiSchema.elements = [
|
|
7930
8322
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7931
8323
|
getSelectField("variant", "Variant"),
|
|
7932
|
-
|
|
7933
|
-
|
|
8324
|
+
getInputField("toolTip", "Tooltip"),
|
|
8325
|
+
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8326
|
+
];
|
|
8327
|
+
break;
|
|
8328
|
+
case "PdfViewer":
|
|
8329
|
+
uiSchema.elements = [
|
|
8330
|
+
getInputField("scale", "Zoom"),
|
|
8331
|
+
emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8332
|
+
];
|
|
8333
|
+
break;
|
|
8334
|
+
case "Date":
|
|
8335
|
+
uiSchema.elements = [
|
|
8336
|
+
getSelectField("variant", "Variant"),
|
|
8337
|
+
getInputField("toolTip", "Tooltip"),
|
|
8338
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8339
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8340
|
+
];
|
|
8341
|
+
break;
|
|
8342
|
+
case "DateTime":
|
|
8343
|
+
uiSchema.elements = [
|
|
8344
|
+
getSelectField("variant", "Variant"),
|
|
8345
|
+
getInputField("toolTip", "Tooltip"),
|
|
8346
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8347
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
7934
8348
|
];
|
|
7935
8349
|
break;
|
|
7936
8350
|
case "Thought":
|
|
@@ -7938,6 +8352,40 @@ const buildPropertiesSection = function(type) {
|
|
|
7938
8352
|
getTextArea("thought", "Today's thought", false)
|
|
7939
8353
|
];
|
|
7940
8354
|
break;
|
|
8355
|
+
case "Image":
|
|
8356
|
+
uiSchema.elements = [
|
|
8357
|
+
getInputField("imageUrl", "Image URL"),
|
|
8358
|
+
getInputField("height", "Image Height"),
|
|
8359
|
+
getInputField("toolTip", "Tooltip"),
|
|
8360
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8361
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8362
|
+
];
|
|
8363
|
+
break;
|
|
8364
|
+
case "FileInput":
|
|
8365
|
+
uiSchema.elements = [
|
|
8366
|
+
getRadioInputField("variant", "Variant", ["Outlined", "Standard"]),
|
|
8367
|
+
getRadioInputField("disableUpload", "Disable Upload", ["YES", "NO"]),
|
|
8368
|
+
getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
|
|
8369
|
+
getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
|
|
8370
|
+
getInputField("description", "Enter description"),
|
|
8371
|
+
getInputField("toolTip", "Tooltip"),
|
|
8372
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8373
|
+
getInputField("chooseButtonLabel", "ChooseButton Label"),
|
|
8374
|
+
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
8375
|
+
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
8376
|
+
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
8377
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8378
|
+
];
|
|
8379
|
+
break;
|
|
8380
|
+
case "Camera":
|
|
8381
|
+
uiSchema.elements = [
|
|
8382
|
+
getSelectField("iconName", "Icon Name"),
|
|
8383
|
+
getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
|
|
8384
|
+
getSelectField("color", "Color"),
|
|
8385
|
+
getInputField("tooltipMessage", "Tooltip Message"),
|
|
8386
|
+
getSelectField("variant", "Variant"),
|
|
8387
|
+
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
8388
|
+
];
|
|
7941
8389
|
}
|
|
7942
8390
|
return uiSchema;
|
|
7943
8391
|
};
|
|
@@ -7975,13 +8423,13 @@ const StyleSection = {
|
|
|
7975
8423
|
}
|
|
7976
8424
|
]
|
|
7977
8425
|
};
|
|
7978
|
-
const TableSection = (theme) => {
|
|
8426
|
+
const TableSection = (theme, scopeName = "elements") => {
|
|
7979
8427
|
const uiSchema = {
|
|
7980
8428
|
type: "HorizontalLayout",
|
|
7981
8429
|
elements: [
|
|
7982
8430
|
{
|
|
7983
8431
|
type: "Control",
|
|
7984
|
-
scope:
|
|
8432
|
+
scope: `#/properties/${scopeName}`,
|
|
7985
8433
|
options: {
|
|
7986
8434
|
widget: "Table"
|
|
7987
8435
|
},
|
|
@@ -7992,7 +8440,7 @@ const TableSection = (theme) => {
|
|
|
7992
8440
|
{
|
|
7993
8441
|
widget: {
|
|
7994
8442
|
type: "Control",
|
|
7995
|
-
scope:
|
|
8443
|
+
scope: `#/properties/${scopeName}_New_Record`,
|
|
7996
8444
|
options: {
|
|
7997
8445
|
widget: "IconButton"
|
|
7998
8446
|
},
|
|
@@ -8019,7 +8467,7 @@ const TableSection = (theme) => {
|
|
|
8019
8467
|
{
|
|
8020
8468
|
widget: {
|
|
8021
8469
|
type: "Control",
|
|
8022
|
-
scope: "
|
|
8470
|
+
scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
|
|
8023
8471
|
options: {
|
|
8024
8472
|
widget: "IconButton"
|
|
8025
8473
|
},
|
|
@@ -8048,94 +8496,69 @@ const TableSection = (theme) => {
|
|
|
8048
8496
|
disableAction: true,
|
|
8049
8497
|
disableSelection: true,
|
|
8050
8498
|
enableDrag: true
|
|
8051
|
-
}
|
|
8052
|
-
},
|
|
8053
|
-
elements: [
|
|
8054
|
-
{
|
|
8055
|
-
accessorKey: "name",
|
|
8056
|
-
header: "Name",
|
|
8057
|
-
type: "string",
|
|
8058
|
-
size: 300
|
|
8059
8499
|
},
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
header: "Type",
|
|
8063
|
-
type: "string",
|
|
8064
|
-
size: 200
|
|
8065
|
-
},
|
|
8066
|
-
{
|
|
8067
|
-
header: "Edit Record",
|
|
8068
|
-
field: "Reject_Records",
|
|
8069
|
-
size: 150,
|
|
8070
|
-
type: "action",
|
|
8071
|
-
widget: {
|
|
8500
|
+
action: [
|
|
8501
|
+
{
|
|
8072
8502
|
type: "Control",
|
|
8073
8503
|
scope: "#/properties/RejectButton",
|
|
8074
8504
|
options: {
|
|
8075
|
-
widget: "
|
|
8505
|
+
widget: "Button"
|
|
8076
8506
|
},
|
|
8077
8507
|
config: {
|
|
8078
8508
|
main: {
|
|
8079
|
-
|
|
8509
|
+
startIcon: "EditIcon",
|
|
8080
8510
|
size: "small",
|
|
8081
8511
|
onClick: "editComponents",
|
|
8082
|
-
tooltipMessage: "Reject This Record"
|
|
8083
|
-
|
|
8084
|
-
style: {
|
|
8085
|
-
fill: theme.palette.primary.main,
|
|
8086
|
-
"& :hover": {
|
|
8087
|
-
fill: theme.palette.primary.dark
|
|
8088
|
-
}
|
|
8512
|
+
tooltipMessage: "Reject This Record",
|
|
8513
|
+
name: "Edit"
|
|
8089
8514
|
}
|
|
8090
8515
|
}
|
|
8091
|
-
}
|
|
8092
|
-
|
|
8093
|
-
{
|
|
8094
|
-
header: "Delete",
|
|
8095
|
-
field: "Reject_Records",
|
|
8096
|
-
size: 150,
|
|
8097
|
-
type: "action",
|
|
8098
|
-
widget: {
|
|
8516
|
+
},
|
|
8517
|
+
{
|
|
8099
8518
|
type: "Control",
|
|
8100
8519
|
scope: "#/properties/RejectButton",
|
|
8101
8520
|
options: {
|
|
8102
|
-
widget: "
|
|
8521
|
+
widget: "Button"
|
|
8103
8522
|
},
|
|
8104
8523
|
config: {
|
|
8105
8524
|
main: {
|
|
8106
|
-
|
|
8525
|
+
startIcon: "Bin",
|
|
8107
8526
|
onClick: "deletePopUpComponent",
|
|
8108
|
-
tooltipMessage: "Reject This Record"
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
fill: theme.palette.primary.main,
|
|
8112
|
-
"& :hover": {
|
|
8113
|
-
fill: theme.palette.primary.dark
|
|
8114
|
-
}
|
|
8527
|
+
tooltipMessage: "Reject This Record",
|
|
8528
|
+
name: "Delete",
|
|
8529
|
+
size: "small"
|
|
8115
8530
|
}
|
|
8116
8531
|
}
|
|
8117
|
-
}
|
|
8118
|
-
|
|
8119
|
-
{
|
|
8120
|
-
header: "Copy",
|
|
8121
|
-
field: "Copy_Component",
|
|
8122
|
-
size: 150,
|
|
8123
|
-
type: "action",
|
|
8124
|
-
widget: {
|
|
8532
|
+
},
|
|
8533
|
+
{
|
|
8125
8534
|
type: "Control",
|
|
8126
|
-
scope: "
|
|
8535
|
+
scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
|
|
8127
8536
|
options: {
|
|
8128
|
-
widget: "
|
|
8537
|
+
widget: "Button"
|
|
8129
8538
|
},
|
|
8130
8539
|
config: {
|
|
8131
8540
|
main: {
|
|
8132
|
-
|
|
8541
|
+
startIcon: "FileCopyIcon",
|
|
8133
8542
|
onClick: "copyPasteElement",
|
|
8134
|
-
styleDefault:
|
|
8135
|
-
|
|
8543
|
+
styleDefault: false,
|
|
8544
|
+
name: "Copy"
|
|
8136
8545
|
}
|
|
8137
8546
|
}
|
|
8138
8547
|
}
|
|
8548
|
+
]
|
|
8549
|
+
},
|
|
8550
|
+
elements: [
|
|
8551
|
+
{
|
|
8552
|
+
accessorKey: "name",
|
|
8553
|
+
header: "Name",
|
|
8554
|
+
type: "string",
|
|
8555
|
+
size: 300
|
|
8556
|
+
},
|
|
8557
|
+
{
|
|
8558
|
+
accessorKey: "type",
|
|
8559
|
+
header: "Type",
|
|
8560
|
+
type: "string",
|
|
8561
|
+
size: 200
|
|
8139
8562
|
}
|
|
8140
8563
|
]
|
|
8141
8564
|
}
|
|
@@ -8302,12 +8725,16 @@ var buildConfig = (FormData) => {
|
|
|
8302
8725
|
if (formData.events) {
|
|
8303
8726
|
delete formData.events;
|
|
8304
8727
|
}
|
|
8728
|
+
if (formData.tabLabelElements) {
|
|
8729
|
+
component.tabLabelElements = formData.tabLabelElements || [];
|
|
8730
|
+
delete formData.tabLabelElements;
|
|
8731
|
+
}
|
|
8305
8732
|
component = { ...formData, ...component };
|
|
8306
8733
|
return component;
|
|
8307
8734
|
};
|
|
8308
8735
|
const createLayoutFormat = (layout, type) => {
|
|
8309
8736
|
if (_.isEmpty(layout)) {
|
|
8310
|
-
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought"];
|
|
8737
|
+
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout", "Table"];
|
|
8311
8738
|
if (fullLayoutComponents.includes(type)) {
|
|
8312
8739
|
return { xs: 12, sm: 12, md: 12, lg: 12 };
|
|
8313
8740
|
} else if (type === "Graph") {
|
|
@@ -8320,7 +8747,7 @@ const createLayoutFormat = (layout, type) => {
|
|
|
8320
8747
|
}
|
|
8321
8748
|
let data = {};
|
|
8322
8749
|
layout.map((e) => {
|
|
8323
|
-
data[e.key || "xs"] =
|
|
8750
|
+
data[e.key || "xs"] = e.value === null || e.value === void 0 || e.value === "" ? 5.5 : +e.value;
|
|
8324
8751
|
});
|
|
8325
8752
|
return data;
|
|
8326
8753
|
};
|
|
@@ -8334,9 +8761,27 @@ const flatObjectValueInArray = (config2 = []) => {
|
|
|
8334
8761
|
});
|
|
8335
8762
|
return data;
|
|
8336
8763
|
};
|
|
8764
|
+
const createKeyValueMap = (config2 = []) => {
|
|
8765
|
+
return config2.reduce((acc, item) => {
|
|
8766
|
+
if (!item.key)
|
|
8767
|
+
return acc;
|
|
8768
|
+
acc[item.key] = item.value;
|
|
8769
|
+
return acc;
|
|
8770
|
+
}, {});
|
|
8771
|
+
};
|
|
8337
8772
|
const clearFromSessionStorage = () => {
|
|
8338
8773
|
sessionStorage.removeItem("pageFormdata");
|
|
8339
8774
|
};
|
|
8775
|
+
const validateAndShowErrors = (store2) => {
|
|
8776
|
+
if (_.isEmpty(store2.ctx.core.errors))
|
|
8777
|
+
return false;
|
|
8778
|
+
store2.setValidation("ValidateAndShow");
|
|
8779
|
+
store2.setNotify({
|
|
8780
|
+
Fail: true,
|
|
8781
|
+
FailMessage: "Error on Page"
|
|
8782
|
+
});
|
|
8783
|
+
return true;
|
|
8784
|
+
};
|
|
8340
8785
|
const getNavigationHistory = (config2, path) => {
|
|
8341
8786
|
if (path) {
|
|
8342
8787
|
let urlRoutes = config2.name;
|
|
@@ -8395,11 +8840,13 @@ async function saveHandler(store2, service2, submitHandler) {
|
|
|
8395
8840
|
const saveReturn = await submitHandler(store2, service2, config2);
|
|
8396
8841
|
navigateHandler(store2, true, "/PageMasterRecords");
|
|
8397
8842
|
} catch (err) {
|
|
8398
|
-
navigateHandler(store2, false);
|
|
8843
|
+
navigateHandler(store2, false, void 0, err.message);
|
|
8399
8844
|
}
|
|
8845
|
+
} else {
|
|
8846
|
+
navigateHandler(store2, false);
|
|
8400
8847
|
}
|
|
8401
8848
|
}
|
|
8402
|
-
const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
8849
|
+
const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
|
|
8403
8850
|
if (isSubmitted) {
|
|
8404
8851
|
sessionStorage.removeItem("pageFormdata");
|
|
8405
8852
|
store2.navigate(pageName || -1);
|
|
@@ -8411,7 +8858,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
|
8411
8858
|
store2.setValidation("ValidateAndShow");
|
|
8412
8859
|
store2.setNotify({
|
|
8413
8860
|
Fail: true,
|
|
8414
|
-
FailMessage: "Errors on Page"
|
|
8861
|
+
FailMessage: errorMessage || "Errors on Page"
|
|
8415
8862
|
});
|
|
8416
8863
|
}
|
|
8417
8864
|
};
|
|
@@ -8436,34 +8883,47 @@ function okHandler(store2) {
|
|
|
8436
8883
|
const sectionLabels = {
|
|
8437
8884
|
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8438
8885
|
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8439
|
-
Table: ["Core", "Components", "Properties", "Events", "Style"
|
|
8440
|
-
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"
|
|
8441
|
-
WrapperSection: ["Core", "Components", "Properties", "Style"
|
|
8442
|
-
|
|
8443
|
-
|
|
8886
|
+
Table: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8887
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8888
|
+
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8889
|
+
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8890
|
+
TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
|
|
8891
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8444
8892
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8445
8893
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8446
8894
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8447
8895
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8448
|
-
Box: ["Core", "Events", "Style", "Validation"],
|
|
8896
|
+
Box: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8449
8897
|
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8450
|
-
ProgressBarCard: ["Core", "Properties", "Events", "Style"
|
|
8451
|
-
|
|
8898
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style"],
|
|
8899
|
+
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8900
|
+
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8901
|
+
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8902
|
+
HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8452
8903
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8453
|
-
Timer: ["Core", "Events", "Style"
|
|
8454
|
-
Rank: ["Core", "Events", "Style"
|
|
8904
|
+
Timer: ["Core", "Events", "Style"],
|
|
8905
|
+
Rank: ["Core", "Events", "Style"],
|
|
8455
8906
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8456
|
-
|
|
8907
|
+
ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8908
|
+
Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8457
8909
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8458
8910
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8459
8911
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8460
|
-
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8912
|
+
PopUp: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8913
|
+
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8914
|
+
PdfViewer: ["Core", "Properties", "Style"],
|
|
8461
8915
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8462
8916
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8463
8917
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8464
8918
|
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8465
8919
|
ColumnGroup: ["Core", "Components"],
|
|
8466
|
-
Thought: ["Core", "Properties", "Events", "Style",
|
|
8920
|
+
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8921
|
+
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8922
|
+
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8923
|
+
Image: ["Core", "Properties", "Events", "Style"],
|
|
8924
|
+
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8925
|
+
Camera: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8926
|
+
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8467
8927
|
};
|
|
8468
8928
|
function refreshPage(type, store2) {
|
|
8469
8929
|
var _a, _b;
|
|
@@ -8476,6 +8936,7 @@ function refreshPage(type, store2) {
|
|
|
8476
8936
|
Style: StyleSection,
|
|
8477
8937
|
Events: EventSection(store2.theme.myTheme),
|
|
8478
8938
|
Components: TableSection(store2.theme.myTheme),
|
|
8939
|
+
TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
|
|
8479
8940
|
Properties: buildPropertiesSection(type),
|
|
8480
8941
|
Validation: ValidationSection
|
|
8481
8942
|
};
|
|
@@ -8487,7 +8948,7 @@ function refreshPage(type, store2) {
|
|
|
8487
8948
|
const lastDotIndex = path.lastIndexOf(".");
|
|
8488
8949
|
const parentPath = path.slice(0, lastDotIndex);
|
|
8489
8950
|
const parentObj = _.get(currentConfig, parentPath);
|
|
8490
|
-
if ((parentObj == null ? void 0 : parentObj.type) === "
|
|
8951
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "LeaderBoard") {
|
|
8491
8952
|
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8492
8953
|
type: "Control",
|
|
8493
8954
|
scope: "#/properties/columnFormat",
|
|
@@ -8501,71 +8962,6 @@ function refreshPage(type, store2) {
|
|
|
8501
8962
|
}
|
|
8502
8963
|
}
|
|
8503
8964
|
};
|
|
8504
|
-
UiSchema.elements[0].elements[0].elements[6] = {
|
|
8505
|
-
type: "Control",
|
|
8506
|
-
scope: "#/properties/filteringOptions",
|
|
8507
|
-
options: {
|
|
8508
|
-
widget: "SelectInputField"
|
|
8509
|
-
},
|
|
8510
|
-
config: {
|
|
8511
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8512
|
-
main: {
|
|
8513
|
-
label: "Filter Mode",
|
|
8514
|
-
multiple: true
|
|
8515
|
-
}
|
|
8516
|
-
}
|
|
8517
|
-
};
|
|
8518
|
-
UiSchema.elements[0].elements[0].elements[5] = {
|
|
8519
|
-
type: "Control",
|
|
8520
|
-
scope: "#/properties/enableFilter",
|
|
8521
|
-
options: {
|
|
8522
|
-
widget: "RadioInputField"
|
|
8523
|
-
},
|
|
8524
|
-
config: {
|
|
8525
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8526
|
-
main: {
|
|
8527
|
-
label: "Enable Filter",
|
|
8528
|
-
options: ["Yes", "No"]
|
|
8529
|
-
}
|
|
8530
|
-
}
|
|
8531
|
-
}, UiSchema.elements[0].elements[0].elements[7] = {
|
|
8532
|
-
type: "Control",
|
|
8533
|
-
scope: "#/properties/enableSorting",
|
|
8534
|
-
options: {
|
|
8535
|
-
widget: "RadioInputField"
|
|
8536
|
-
},
|
|
8537
|
-
config: {
|
|
8538
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8539
|
-
main: {
|
|
8540
|
-
label: "Enable Sorting",
|
|
8541
|
-
options: ["Yes", "No"]
|
|
8542
|
-
}
|
|
8543
|
-
}
|
|
8544
|
-
}, UiSchema.elements[0].elements[0].elements[8] = {
|
|
8545
|
-
type: "Control",
|
|
8546
|
-
scope: "#/properties/columnKey",
|
|
8547
|
-
config: {
|
|
8548
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8549
|
-
main: {
|
|
8550
|
-
label: "Column Key"
|
|
8551
|
-
}
|
|
8552
|
-
},
|
|
8553
|
-
options: {
|
|
8554
|
-
widget: "InputField"
|
|
8555
|
-
}
|
|
8556
|
-
}, UiSchema.elements[0].elements[0].elements[9] = {
|
|
8557
|
-
type: "Control",
|
|
8558
|
-
scope: "#/properties/elementType",
|
|
8559
|
-
options: {
|
|
8560
|
-
widget: "SelectInputField"
|
|
8561
|
-
},
|
|
8562
|
-
config: {
|
|
8563
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8564
|
-
main: {
|
|
8565
|
-
label: "Element Type"
|
|
8566
|
-
}
|
|
8567
|
-
}
|
|
8568
|
-
};
|
|
8569
8965
|
}
|
|
8570
8966
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8571
8967
|
this.ElementPathSetter(UiSchema);
|
|
@@ -8628,13 +9024,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8628
9024
|
},
|
|
8629
9025
|
editComponents: function() {
|
|
8630
9026
|
var _a, _b, _c;
|
|
9027
|
+
if (validateAndShowErrors(store2))
|
|
9028
|
+
return;
|
|
8631
9029
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8632
9030
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8633
9031
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8634
9032
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8635
9033
|
if (path) {
|
|
8636
|
-
|
|
8637
|
-
|
|
9034
|
+
let finalPath = `${path}`;
|
|
9035
|
+
if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
|
|
9036
|
+
finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
|
|
9037
|
+
} else {
|
|
9038
|
+
finalPath = `${finalPath}.elements[${rowId}]`;
|
|
9039
|
+
}
|
|
8638
9040
|
store2.searchParams.set("path", finalPath);
|
|
8639
9041
|
store2.setSearchParams(store2.searchParams);
|
|
8640
9042
|
this.setPage();
|
|
@@ -8646,7 +9048,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8646
9048
|
var _a;
|
|
8647
9049
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8648
9050
|
const rowId = sessionStorage.getItem("rowId");
|
|
8649
|
-
|
|
9051
|
+
const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
|
|
9052
|
+
if (isTabLabelElements) {
|
|
9053
|
+
store2.formData.tabLabelElements.splice(rowId, 1);
|
|
9054
|
+
} else {
|
|
9055
|
+
store2.formData.elements.splice(rowId, 1);
|
|
9056
|
+
}
|
|
8650
9057
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8651
9058
|
const data = path ? _.get(response, path) : response;
|
|
8652
9059
|
store2.setFormdata(data);
|
|
@@ -8654,6 +9061,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8654
9061
|
store2.updateDialog("popUpComponentSection");
|
|
8655
9062
|
}
|
|
8656
9063
|
sessionStorage.removeItem("rowId");
|
|
9064
|
+
sessionStorage.removeItem("isTabLabelElements");
|
|
8657
9065
|
},
|
|
8658
9066
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
8659
9067
|
var _a;
|
|
@@ -8669,18 +9077,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8669
9077
|
},
|
|
8670
9078
|
widgetAddClickHandler: function() {
|
|
8671
9079
|
var _a;
|
|
9080
|
+
if (validateAndShowErrors(store2))
|
|
9081
|
+
return;
|
|
8672
9082
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8673
9083
|
store2.formData.elements = [];
|
|
8674
9084
|
}
|
|
9085
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9086
|
+
store2.formData.tabLabelElements = [];
|
|
9087
|
+
}
|
|
8675
9088
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8676
9089
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8677
|
-
|
|
9090
|
+
let finalPath = `${path}`;
|
|
9091
|
+
if (dynamicData2.path.startsWith("tabLabel")) {
|
|
9092
|
+
finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
|
|
9093
|
+
} else {
|
|
9094
|
+
finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
|
|
9095
|
+
}
|
|
8678
9096
|
store2.searchParams.set("path", finalPath);
|
|
8679
9097
|
store2.setSearchParams(store2.searchParams);
|
|
8680
9098
|
this.setPage();
|
|
8681
9099
|
},
|
|
8682
9100
|
eventEditHandler: function() {
|
|
8683
9101
|
var _a, _b;
|
|
9102
|
+
if (validateAndShowErrors(store2))
|
|
9103
|
+
return;
|
|
8684
9104
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8685
9105
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8686
9106
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
@@ -8690,6 +9110,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8690
9110
|
},
|
|
8691
9111
|
eventAddHandler: function() {
|
|
8692
9112
|
var _a, _b;
|
|
9113
|
+
if (validateAndShowErrors(store2))
|
|
9114
|
+
return;
|
|
8693
9115
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8694
9116
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8695
9117
|
if (!Array.isArray(store2.formData.events)) {
|
|
@@ -8705,6 +9127,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8705
9127
|
deletePopUpComponent: function() {
|
|
8706
9128
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8707
9129
|
sessionStorage.setItem("rowId", rowId);
|
|
9130
|
+
sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
|
|
8708
9131
|
store2.updateDialog("popUpComponentSection");
|
|
8709
9132
|
},
|
|
8710
9133
|
deletePopUpEvent: function() {
|
|
@@ -8751,9 +9174,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8751
9174
|
if (!Array.isArray(store2.formData.events)) {
|
|
8752
9175
|
store2.formData.events = [];
|
|
8753
9176
|
}
|
|
9177
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9178
|
+
store2.formData.tabLabelElements = [];
|
|
9179
|
+
}
|
|
8754
9180
|
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
8755
9181
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
8756
|
-
const
|
|
9182
|
+
const currentLength = {
|
|
9183
|
+
"TabsComponent": formData.tabLabelElements.length,
|
|
9184
|
+
"Component": formData.elements.length,
|
|
9185
|
+
"Events": formData.events.length
|
|
9186
|
+
};
|
|
9187
|
+
const insertElementIndex = currentLength[elementType] || 0;
|
|
8757
9188
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8758
9189
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8759
9190
|
const notificationMessages = {
|
|
@@ -8788,6 +9219,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8788
9219
|
if (elementType === "Component") {
|
|
8789
9220
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
8790
9221
|
}
|
|
9222
|
+
if (elementType === "TabsComponent") {
|
|
9223
|
+
return `${parentPath}.tabLabelElements[${rowId}]`;
|
|
9224
|
+
}
|
|
8791
9225
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8792
9226
|
},
|
|
8793
9227
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
@@ -8841,7 +9275,7 @@ var pageMaster = (funcParams) => {
|
|
|
8841
9275
|
return formData;
|
|
8842
9276
|
}
|
|
8843
9277
|
saveFormdataInSessionStorage(config2);
|
|
8844
|
-
return config2;
|
|
9278
|
+
return { ...config2, type: "page" };
|
|
8845
9279
|
},
|
|
8846
9280
|
getUiSchema: function() {
|
|
8847
9281
|
const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
|
|
@@ -8863,6 +9297,8 @@ var pageMaster = (funcParams) => {
|
|
|
8863
9297
|
},
|
|
8864
9298
|
onAddClickHandler: function() {
|
|
8865
9299
|
var _a;
|
|
9300
|
+
if (validateAndShowErrors(store2))
|
|
9301
|
+
return;
|
|
8866
9302
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8867
9303
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8868
9304
|
store2.formData.elements = [];
|
|
@@ -8886,6 +9322,8 @@ var pageMaster = (funcParams) => {
|
|
|
8886
9322
|
},
|
|
8887
9323
|
eventAddHandler: function() {
|
|
8888
9324
|
var _a;
|
|
9325
|
+
if (validateAndShowErrors(store2))
|
|
9326
|
+
return;
|
|
8889
9327
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8890
9328
|
if (!Array.isArray(store2.formData.events)) {
|
|
8891
9329
|
store2.formData.events = [];
|
|
@@ -8896,6 +9334,8 @@ var pageMaster = (funcParams) => {
|
|
|
8896
9334
|
},
|
|
8897
9335
|
editEvent: function() {
|
|
8898
9336
|
var _a;
|
|
9337
|
+
if (validateAndShowErrors(store2))
|
|
9338
|
+
return;
|
|
8899
9339
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8900
9340
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8901
9341
|
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
@@ -8983,7 +9423,10 @@ const EventSchema = {
|
|
|
8983
9423
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
8984
9424
|
{ title: "Download", const: "onDownload" },
|
|
8985
9425
|
{ title: "Fail", const: "Fail" },
|
|
8986
|
-
{ title: "
|
|
9426
|
+
{ title: "onClose", const: "onClose" },
|
|
9427
|
+
{ title: "Key Down", const: "onKeyDown" },
|
|
9428
|
+
{ title: "Set Style", const: "setStyle" },
|
|
9429
|
+
{ title: "Expand Node", const: "onNodeExpandChange" }
|
|
8987
9430
|
]
|
|
8988
9431
|
},
|
|
8989
9432
|
Handler: {
|
|
@@ -9000,7 +9443,7 @@ const EventSchema = {
|
|
|
9000
9443
|
oneOf: [
|
|
9001
9444
|
{ title: "RankProvider", const: "RankProvider" },
|
|
9002
9445
|
{ title: "Download File", const: "downloadFile" },
|
|
9003
|
-
{ title: "
|
|
9446
|
+
{ title: "downloadFileFromUrl", const: "downloadFileFromUrl" }
|
|
9004
9447
|
]
|
|
9005
9448
|
},
|
|
9006
9449
|
body: {
|
|
@@ -9159,93 +9602,70 @@ const EventUiSchema = (theme) => {
|
|
|
9159
9602
|
disableAction: true,
|
|
9160
9603
|
disableSelection: true,
|
|
9161
9604
|
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
9605
|
},
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
header: "Edit",
|
|
9180
|
-
type: "action",
|
|
9181
|
-
size: 150,
|
|
9182
|
-
widget: {
|
|
9606
|
+
action: [
|
|
9607
|
+
{
|
|
9183
9608
|
type: "Control",
|
|
9184
9609
|
scope: "#/properties/Edit_Records",
|
|
9185
9610
|
options: {
|
|
9186
|
-
widget: "
|
|
9611
|
+
widget: "Button"
|
|
9187
9612
|
},
|
|
9188
9613
|
config: {
|
|
9189
9614
|
main: {
|
|
9190
9615
|
size: "small",
|
|
9191
|
-
|
|
9616
|
+
startIcon: "EditIcon",
|
|
9192
9617
|
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
|
-
}
|
|
9618
|
+
onClick: "editEvent",
|
|
9619
|
+
name: "Edit"
|
|
9200
9620
|
}
|
|
9201
9621
|
}
|
|
9202
|
-
}
|
|
9203
|
-
|
|
9204
|
-
{
|
|
9205
|
-
accessorKey: "Reject_Records",
|
|
9206
|
-
header: "Delete",
|
|
9207
|
-
type: "action",
|
|
9208
|
-
size: 150,
|
|
9209
|
-
widget: {
|
|
9622
|
+
},
|
|
9623
|
+
{
|
|
9210
9624
|
type: "Control",
|
|
9211
9625
|
scope: "#/properties/RejectButton",
|
|
9212
9626
|
options: {
|
|
9213
|
-
widget: "
|
|
9627
|
+
widget: "Button"
|
|
9214
9628
|
},
|
|
9215
9629
|
config: {
|
|
9216
9630
|
main: {
|
|
9217
|
-
|
|
9631
|
+
startIcon: "Bin",
|
|
9218
9632
|
tooltipMessage: "Reject This Record",
|
|
9219
|
-
onClick: "deletePopUpEvent"
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
fill: theme.palette.primary.main,
|
|
9223
|
-
"& :hover": {
|
|
9224
|
-
fill: theme.palette.primary.dark
|
|
9225
|
-
}
|
|
9633
|
+
onClick: "deletePopUpEvent",
|
|
9634
|
+
name: "Delete",
|
|
9635
|
+
size: "small"
|
|
9226
9636
|
}
|
|
9227
9637
|
}
|
|
9228
|
-
}
|
|
9229
|
-
|
|
9230
|
-
{
|
|
9231
|
-
header: "Copy",
|
|
9232
|
-
field: "Copy_Event",
|
|
9233
|
-
type: "action",
|
|
9234
|
-
size: 150,
|
|
9235
|
-
widget: {
|
|
9638
|
+
},
|
|
9639
|
+
{
|
|
9236
9640
|
type: "Control",
|
|
9237
9641
|
scope: "#/properties/Copy_Event",
|
|
9238
9642
|
options: {
|
|
9239
|
-
widget: "
|
|
9643
|
+
widget: "Button"
|
|
9240
9644
|
},
|
|
9241
9645
|
config: {
|
|
9242
9646
|
main: {
|
|
9243
|
-
|
|
9647
|
+
startIcon: "FileCopyIcon",
|
|
9244
9648
|
onClick: "copyPasteElement",
|
|
9245
|
-
styleDefault:
|
|
9649
|
+
styleDefault: false,
|
|
9650
|
+
name: "Copy",
|
|
9651
|
+
size: "small"
|
|
9246
9652
|
}
|
|
9247
9653
|
}
|
|
9248
9654
|
}
|
|
9655
|
+
]
|
|
9656
|
+
},
|
|
9657
|
+
elements: [
|
|
9658
|
+
{
|
|
9659
|
+
accessorKey: "eventType",
|
|
9660
|
+
header: "Event's Type",
|
|
9661
|
+
size: 300,
|
|
9662
|
+
type: "string"
|
|
9663
|
+
},
|
|
9664
|
+
{
|
|
9665
|
+
accessorKey: "Handler",
|
|
9666
|
+
header: "Handler",
|
|
9667
|
+
size: 200,
|
|
9668
|
+
type: "string"
|
|
9249
9669
|
}
|
|
9250
9670
|
]
|
|
9251
9671
|
}
|
|
@@ -9898,6 +10318,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9898
10318
|
},
|
|
9899
10319
|
addEvent: function() {
|
|
9900
10320
|
var _a, _b, _c;
|
|
10321
|
+
if (validateAndShowErrors(store2))
|
|
10322
|
+
return;
|
|
9901
10323
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9902
10324
|
if (!Array.isArray(store2.formData.events)) {
|
|
9903
10325
|
store2.formData.events = [];
|
|
@@ -9910,6 +10332,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9910
10332
|
},
|
|
9911
10333
|
editEvent: function() {
|
|
9912
10334
|
var _a;
|
|
10335
|
+
if (validateAndShowErrors(store2))
|
|
10336
|
+
return;
|
|
9913
10337
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9914
10338
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9915
10339
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
@@ -9960,31 +10384,47 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9960
10384
|
}
|
|
9961
10385
|
};
|
|
9962
10386
|
};
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
const
|
|
9966
|
-
const
|
|
9967
|
-
let
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
const
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
10387
|
+
function downloadFile$1({ data, name }) {
|
|
10388
|
+
var _a;
|
|
10389
|
+
const binary = window.atob(data);
|
|
10390
|
+
const bytes = new Uint8Array(binary.length);
|
|
10391
|
+
for (let i = 0; i < binary.length; i++) {
|
|
10392
|
+
bytes[i] = binary.charCodeAt(i);
|
|
10393
|
+
}
|
|
10394
|
+
const extension = (_a = name.split(".").pop()) == null ? void 0 : _a.toLowerCase();
|
|
10395
|
+
const mimeMap = {
|
|
10396
|
+
pdf: "application/pdf",
|
|
10397
|
+
png: "image/png",
|
|
10398
|
+
jpg: "image/jpeg",
|
|
10399
|
+
jpeg: "image/jpeg",
|
|
10400
|
+
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
10401
|
+
csv: "text/csv"
|
|
10402
|
+
};
|
|
10403
|
+
const blob = new Blob([bytes], {
|
|
10404
|
+
type: mimeMap[extension] || "application/octet-stream"
|
|
10405
|
+
});
|
|
10406
|
+
const url = URL.createObjectURL(blob);
|
|
10407
|
+
const a = document.createElement("a");
|
|
10408
|
+
a.href = url;
|
|
10409
|
+
a.download = name;
|
|
10410
|
+
a.click();
|
|
9975
10411
|
URL.revokeObjectURL(url);
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
const
|
|
9979
|
-
let url = `${service2.defaults.baseURL}/${response.path}`;
|
|
10412
|
+
}
|
|
10413
|
+
const downloadFileFromUrl = (response, service2) => {
|
|
10414
|
+
const url = new URL(response.path, service2.defaults.baseURL);
|
|
9980
10415
|
if (response == null ? void 0 : response.params) {
|
|
9981
|
-
const
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
10416
|
+
for (const [key, value] of Object.entries(response.params)) {
|
|
10417
|
+
if (value == null)
|
|
10418
|
+
continue;
|
|
10419
|
+
url.searchParams.append(
|
|
10420
|
+
key,
|
|
10421
|
+
Array.isArray(value) ? value.join(",") : String(value)
|
|
10422
|
+
);
|
|
10423
|
+
}
|
|
9985
10424
|
}
|
|
9986
10425
|
const link = document.createElement("a");
|
|
9987
|
-
link.href = url;
|
|
10426
|
+
link.href = url.toString();
|
|
10427
|
+
link.download = "";
|
|
9988
10428
|
document.body.appendChild(link);
|
|
9989
10429
|
link.click();
|
|
9990
10430
|
link.parentNode.removeChild(link);
|
|
@@ -10054,7 +10494,6 @@ function executeEventsHandler(params2) {
|
|
|
10054
10494
|
params2.componentName,
|
|
10055
10495
|
params2.config,
|
|
10056
10496
|
params2.store,
|
|
10057
|
-
params2.service,
|
|
10058
10497
|
params2.formDataHolder
|
|
10059
10498
|
);
|
|
10060
10499
|
} else if (params2.config.Handler === "onBackHandler") {
|
|
@@ -10126,7 +10565,7 @@ function executeCustomHandler(params) {
|
|
|
10126
10565
|
return response;
|
|
10127
10566
|
}
|
|
10128
10567
|
}
|
|
10129
|
-
function mergeFormdata(handlerResponse, componentName, eventConfig, store2,
|
|
10568
|
+
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, formDataHolder) {
|
|
10130
10569
|
var _a, _b, _c;
|
|
10131
10570
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10132
10571
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
@@ -10164,29 +10603,23 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
10164
10603
|
});
|
|
10165
10604
|
}
|
|
10166
10605
|
} else if (eventConfig.type === "page") {
|
|
10167
|
-
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
10606
|
+
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data) && lodash.exports.isObject(handlerResponse.data))) {
|
|
10168
10607
|
store2.newData = {
|
|
10169
10608
|
...store2.newData,
|
|
10170
10609
|
...handlerResponse == null ? void 0 : handlerResponse.data
|
|
10171
10610
|
};
|
|
10172
|
-
|
|
10173
|
-
|
|
10611
|
+
Object.keys(handlerResponse.data).forEach((e) => {
|
|
10612
|
+
formDataHolder[e] = handlerResponse.data[e];
|
|
10174
10613
|
});
|
|
10175
10614
|
}
|
|
10176
10615
|
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10177
10616
|
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10178
10617
|
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
10179
10618
|
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
10619
|
}
|
|
10184
10620
|
} else {
|
|
10185
|
-
if (handlerResponse) {
|
|
10621
|
+
if (handlerResponse == null ? void 0 : handlerResponse.data) {
|
|
10186
10622
|
formDataHolder[componentName] = handlerResponse.data;
|
|
10187
|
-
store2.setFormdata((pre) => {
|
|
10188
|
-
return { ...pre, ...formDataHolder };
|
|
10189
|
-
});
|
|
10190
10623
|
}
|
|
10191
10624
|
}
|
|
10192
10625
|
}
|
|
@@ -10324,14 +10757,14 @@ var service = (funcParams) => {
|
|
|
10324
10757
|
dynamicData: funcParams.dynamicData,
|
|
10325
10758
|
userValue: funcParams.userValue,
|
|
10326
10759
|
service: funcParams.service,
|
|
10327
|
-
serviceHolder: { downloadFile: downloadFile$1,
|
|
10760
|
+
serviceHolder: { downloadFile: downloadFile$1, downloadFileFromUrl, ...funcParams.functionsProvider },
|
|
10328
10761
|
eventGroups,
|
|
10329
10762
|
functionsProvider: funcParams.functionsProvider,
|
|
10330
10763
|
formDataHolder
|
|
10331
10764
|
};
|
|
10332
10765
|
return {
|
|
10333
10766
|
setPage: async function() {
|
|
10334
|
-
var _a, _b, _c
|
|
10767
|
+
var _a, _b, _c;
|
|
10335
10768
|
funcParams.store.setAdditionalErrors([]);
|
|
10336
10769
|
funcParams.store.setFormdata((funcParams == null ? void 0 : funcParams.initFormData()) || {});
|
|
10337
10770
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
@@ -10341,116 +10774,11 @@ var service = (funcParams) => {
|
|
|
10341
10774
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10342
10775
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10343
10776
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10344
|
-
detail: { pageName: config2.label, hasBackIcon: true }
|
|
10777
|
+
detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10345
10778
|
});
|
|
10346
10779
|
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: {} };
|
|
10780
|
+
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10781
|
+
const schema2 = (_c = pageData == null ? void 0 : pageData.schema) != null ? _c : { type: "object", properties: {} };
|
|
10454
10782
|
eventGroups = extractEvents(config2);
|
|
10455
10783
|
executeEventsParameters = {
|
|
10456
10784
|
config: {},
|
|
@@ -10464,7 +10792,16 @@ var service = (funcParams) => {
|
|
|
10464
10792
|
eventGroups,
|
|
10465
10793
|
formDataHolder
|
|
10466
10794
|
};
|
|
10467
|
-
|
|
10795
|
+
funcParams.store.setSchema(
|
|
10796
|
+
(pre) => {
|
|
10797
|
+
return {
|
|
10798
|
+
...schema2,
|
|
10799
|
+
...pre,
|
|
10800
|
+
properties: { ...schema2.properties, ...pre.properties }
|
|
10801
|
+
};
|
|
10802
|
+
}
|
|
10803
|
+
);
|
|
10804
|
+
executeRefreshHandler({
|
|
10468
10805
|
config: {},
|
|
10469
10806
|
componentName: "",
|
|
10470
10807
|
store: funcParams.store,
|
|
@@ -10473,34 +10810,49 @@ var service = (funcParams) => {
|
|
|
10473
10810
|
service: funcParams.service,
|
|
10474
10811
|
serviceHolder: this,
|
|
10475
10812
|
eventGroups,
|
|
10476
|
-
formDataHolder
|
|
10813
|
+
formDataHolder
|
|
10814
|
+
}).then((e) => {
|
|
10815
|
+
funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
|
|
10816
|
+
uiSchema.elements.push(notifyUiSchema);
|
|
10817
|
+
funcParams.store.setUiSchema(uiSchema);
|
|
10477
10818
|
});
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
|
|
10481
|
-
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
|
|
10819
|
+
},
|
|
10820
|
+
getStyle: () => {
|
|
10821
|
+
var _a, _b, _c, _d;
|
|
10822
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10823
|
+
if (cloneEventGroup.setStyle) {
|
|
10824
|
+
let finalResponse = {};
|
|
10825
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
|
|
10826
|
+
if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
|
|
10827
|
+
for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
|
|
10828
|
+
finalResponse = executeEvents({
|
|
10829
|
+
...executeEventsParameters,
|
|
10830
|
+
config: eventConfig,
|
|
10831
|
+
componentName: path
|
|
10832
|
+
});
|
|
10833
|
+
}
|
|
10834
|
+
return finalResponse;
|
|
10485
10835
|
}
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
funcParams.store.setUiSchema(uiSchema);
|
|
10836
|
+
}
|
|
10837
|
+
return {};
|
|
10489
10838
|
},
|
|
10490
10839
|
onCellRenderer: (cellParams) => {
|
|
10491
|
-
var _a, _b, _c, _d;
|
|
10492
|
-
|
|
10840
|
+
var _a, _b, _c, _d, _e;
|
|
10841
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10842
|
+
if (cloneEventGroup.onCellRenderer) {
|
|
10493
10843
|
let finalResponse = {};
|
|
10494
10844
|
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
|
-
|
|
10845
|
+
if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _d[path]) {
|
|
10846
|
+
for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _e[path]) {
|
|
10847
|
+
executeEventsParameters.store.functionParameters = cellParams;
|
|
10848
|
+
finalResponse = executeEvents({
|
|
10849
|
+
...executeEventsParameters,
|
|
10850
|
+
config: eventConfig,
|
|
10851
|
+
componentName: path
|
|
10852
|
+
});
|
|
10853
|
+
}
|
|
10854
|
+
return finalResponse;
|
|
10502
10855
|
}
|
|
10503
|
-
return finalResponse;
|
|
10504
10856
|
}
|
|
10505
10857
|
return {};
|
|
10506
10858
|
},
|
|
@@ -10513,6 +10865,9 @@ var service = (funcParams) => {
|
|
|
10513
10865
|
onFileDelete: async function() {
|
|
10514
10866
|
this.callHandler("onFileDelete");
|
|
10515
10867
|
},
|
|
10868
|
+
onClose: function() {
|
|
10869
|
+
this.callHandler("onClose");
|
|
10870
|
+
},
|
|
10516
10871
|
onMount: function() {
|
|
10517
10872
|
this.callHandler("onMount");
|
|
10518
10873
|
},
|
|
@@ -10542,11 +10897,20 @@ var service = (funcParams) => {
|
|
|
10542
10897
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
10543
10898
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
10544
10899
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
10545
|
-
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
|
|
10900
|
+
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
|
|
10901
|
+
{ key: "parentIds", value: paginationValues.parentIds },
|
|
10902
|
+
{ key: "isExpandAll", value: paginationValues.isExpandAll }
|
|
10546
10903
|
];
|
|
10547
10904
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10548
10905
|
return response == null ? void 0 : response.data;
|
|
10549
10906
|
},
|
|
10907
|
+
onNodeExpandChange: async function(param) {
|
|
10908
|
+
const apiBody = [
|
|
10909
|
+
{ key: "expandedNodeId", value: param.expandedNodeId }
|
|
10910
|
+
];
|
|
10911
|
+
const response = await this.callExecuteEvents(param, apiBody, "onNodeExpandChange");
|
|
10912
|
+
return response == null ? void 0 : response.data;
|
|
10913
|
+
},
|
|
10550
10914
|
getSelectOptions: async function(param) {
|
|
10551
10915
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10552
10916
|
const apiBody = [
|
|
@@ -10557,22 +10921,34 @@ var service = (funcParams) => {
|
|
|
10557
10921
|
return response == null ? void 0 : response.data;
|
|
10558
10922
|
}
|
|
10559
10923
|
},
|
|
10560
|
-
onChange:
|
|
10561
|
-
if (eventGroups.onChange)
|
|
10562
|
-
|
|
10563
|
-
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10924
|
+
onChange: function() {
|
|
10925
|
+
if (!eventGroups.onChange)
|
|
10926
|
+
return;
|
|
10927
|
+
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10928
|
+
const promises = ChangeEventsKeysArray.flatMap((componentName) => {
|
|
10929
|
+
var _a;
|
|
10930
|
+
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
|
|
10931
|
+
return [];
|
|
10932
|
+
}
|
|
10933
|
+
return eventGroups.onChange[componentName].map(
|
|
10934
|
+
(eventConfig) => Promise.resolve(
|
|
10935
|
+
executeEvents({
|
|
10936
|
+
...executeEventsParameters,
|
|
10937
|
+
config: eventConfig,
|
|
10938
|
+
componentName,
|
|
10939
|
+
formDataHolder
|
|
10940
|
+
})
|
|
10941
|
+
).then(() => {
|
|
10942
|
+
if (!lodash.exports.isEmpty(formDataHolder)) {
|
|
10943
|
+
funcParams.store.setFormdata((pre) => ({
|
|
10944
|
+
...pre,
|
|
10945
|
+
...formDataHolder
|
|
10946
|
+
}));
|
|
10572
10947
|
}
|
|
10573
|
-
}
|
|
10574
|
-
|
|
10575
|
-
}
|
|
10948
|
+
})
|
|
10949
|
+
);
|
|
10950
|
+
});
|
|
10951
|
+
Promise.allSettled(promises);
|
|
10576
10952
|
},
|
|
10577
10953
|
callExecuteEvents: async function(paramValue, apiBody, eventType) {
|
|
10578
10954
|
var _a, _b;
|
|
@@ -10602,7 +10978,7 @@ var service = (funcParams) => {
|
|
|
10602
10978
|
onBack: async function(functionParameters) {
|
|
10603
10979
|
var _a, _b;
|
|
10604
10980
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10605
|
-
|
|
10981
|
+
this.callHandler("onBack", functionParameters);
|
|
10606
10982
|
if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10607
10983
|
functionParameters == null ? void 0 : functionParameters.handleBack();
|
|
10608
10984
|
}
|
|
@@ -10610,7 +10986,7 @@ var service = (funcParams) => {
|
|
|
10610
10986
|
onNext: async function(functionParameters) {
|
|
10611
10987
|
var _a, _b;
|
|
10612
10988
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10613
|
-
|
|
10989
|
+
this.callHandler("onNext", functionParameters);
|
|
10614
10990
|
if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10615
10991
|
functionParameters == null ? void 0 : functionParameters.handleNext();
|
|
10616
10992
|
}
|
|
@@ -10618,27 +10994,38 @@ var service = (funcParams) => {
|
|
|
10618
10994
|
onReset: async function(functionParameters) {
|
|
10619
10995
|
var _a, _b;
|
|
10620
10996
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10621
|
-
|
|
10997
|
+
this.callHandler("onReset", functionParameters);
|
|
10622
10998
|
if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10623
10999
|
functionParameters == null ? void 0 : functionParameters.handleReset();
|
|
10624
11000
|
}
|
|
10625
11001
|
},
|
|
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
|
-
|
|
11002
|
+
callHandler: function(eventType, functionParameters) {
|
|
11003
|
+
var _a, _b;
|
|
11004
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".").pop();
|
|
11005
|
+
if (!((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]))
|
|
11006
|
+
return;
|
|
11007
|
+
const promises = eventGroups[eventType][path].map((eventConfig) => {
|
|
11008
|
+
executeEventsParameters.store.functionParameters = functionParameters;
|
|
11009
|
+
return Promise.resolve(
|
|
10632
11010
|
executeEvents({
|
|
10633
11011
|
...executeEventsParameters,
|
|
10634
11012
|
config: eventConfig,
|
|
10635
|
-
componentName: path
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
11013
|
+
componentName: path,
|
|
11014
|
+
formDataHolder
|
|
11015
|
+
})
|
|
11016
|
+
).then(() => {
|
|
11017
|
+
if (!lodash.exports.isEmpty(formDataHolder)) {
|
|
11018
|
+
funcParams.store.setFormdata((pre) => ({
|
|
11019
|
+
...pre,
|
|
11020
|
+
...formDataHolder
|
|
11021
|
+
}));
|
|
11022
|
+
}
|
|
11023
|
+
});
|
|
11024
|
+
});
|
|
11025
|
+
Promise.allSettled(promises);
|
|
10639
11026
|
},
|
|
10640
11027
|
downloadFile: downloadFile$1,
|
|
10641
|
-
|
|
11028
|
+
downloadFileFromUrl,
|
|
10642
11029
|
...funcParams.functionsProvider
|
|
10643
11030
|
};
|
|
10644
11031
|
};
|
|
@@ -10687,6 +11074,9 @@ const buildLeaderBoard = (config2) => {
|
|
|
10687
11074
|
if (config2.scoreKey) {
|
|
10688
11075
|
LeaderBoard.config.main.scoreKey = config2.scoreKey;
|
|
10689
11076
|
}
|
|
11077
|
+
if (config2.isScoreAmount) {
|
|
11078
|
+
LeaderBoard.config.main.isScoreAmount = config2.isScoreAmount === "YES" ? true : false;
|
|
11079
|
+
}
|
|
10690
11080
|
if (config2.layout) {
|
|
10691
11081
|
LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10692
11082
|
}
|
|
@@ -10737,6 +11127,15 @@ const buildProgressBar = (config2, componentScope2) => {
|
|
|
10737
11127
|
ProgressBar.config.layout = config2.layout;
|
|
10738
11128
|
}
|
|
10739
11129
|
ProgressBar.config.main.heading = config2.label;
|
|
11130
|
+
if (config2.variant) {
|
|
11131
|
+
ProgressBar.config.main.variant = config2.variant;
|
|
11132
|
+
}
|
|
11133
|
+
if (config2.pieArcColors) {
|
|
11134
|
+
ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
11135
|
+
}
|
|
11136
|
+
if (config2.size) {
|
|
11137
|
+
ProgressBar.config.main.size = Number(config2.size);
|
|
11138
|
+
}
|
|
10740
11139
|
if (config2.bottomLabel_3) {
|
|
10741
11140
|
ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
|
|
10742
11141
|
}
|
|
@@ -10763,7 +11162,7 @@ const BarGraph = {
|
|
|
10763
11162
|
type: "BarGraph",
|
|
10764
11163
|
legendLabels: null
|
|
10765
11164
|
},
|
|
10766
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11165
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10767
11166
|
}
|
|
10768
11167
|
};
|
|
10769
11168
|
const PieGraph = {
|
|
@@ -10778,7 +11177,7 @@ const PieGraph = {
|
|
|
10778
11177
|
type: "PieGraph",
|
|
10779
11178
|
legendLabels: null
|
|
10780
11179
|
},
|
|
10781
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11180
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10782
11181
|
}
|
|
10783
11182
|
};
|
|
10784
11183
|
const LineGraph = {
|
|
@@ -10793,7 +11192,7 @@ const LineGraph = {
|
|
|
10793
11192
|
type: "LineGraph",
|
|
10794
11193
|
legendLabels: null
|
|
10795
11194
|
},
|
|
10796
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11195
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10797
11196
|
}
|
|
10798
11197
|
};
|
|
10799
11198
|
const HorizontalBarGraph = {
|
|
@@ -10808,15 +11207,45 @@ const HorizontalBarGraph = {
|
|
|
10808
11207
|
type: "HorizontalBarGraph",
|
|
10809
11208
|
legendLabels: null
|
|
10810
11209
|
},
|
|
10811
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11210
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10812
11211
|
}
|
|
10813
11212
|
};
|
|
10814
|
-
const
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
}
|
|
11213
|
+
const AreaBarGraph = {
|
|
11214
|
+
type: "Control",
|
|
11215
|
+
scope: "#/properties/graph",
|
|
11216
|
+
options: {
|
|
11217
|
+
widget: "Graph"
|
|
11218
|
+
},
|
|
11219
|
+
config: {
|
|
11220
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11221
|
+
main: {
|
|
11222
|
+
type: "AreaGraph",
|
|
11223
|
+
legendLabels: null
|
|
11224
|
+
},
|
|
11225
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11226
|
+
}
|
|
11227
|
+
};
|
|
11228
|
+
const StackBarLineG = {
|
|
11229
|
+
type: "Control",
|
|
11230
|
+
scope: "#/properties/graph",
|
|
11231
|
+
options: {
|
|
11232
|
+
widget: "Graph"
|
|
11233
|
+
},
|
|
11234
|
+
config: {
|
|
11235
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11236
|
+
main: {
|
|
11237
|
+
type: "StackBarLineGraph",
|
|
11238
|
+
legendLabels: null
|
|
11239
|
+
},
|
|
11240
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11241
|
+
}
|
|
11242
|
+
};
|
|
11243
|
+
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
11244
|
+
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
11245
|
+
horizontalBarGraph.scope = componentScope2;
|
|
11246
|
+
if (config2.layout) {
|
|
11247
|
+
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11248
|
+
}
|
|
10820
11249
|
horizontalBarGraph.config.main.type = config2.graphType;
|
|
10821
11250
|
horizontalBarGraph.scope = componentScope2;
|
|
10822
11251
|
horizontalBarGraph.config.main.header = config2.heading;
|
|
@@ -10827,10 +11256,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10827
11256
|
horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10828
11257
|
}
|
|
10829
11258
|
if (config2.legendLabels) {
|
|
10830
|
-
horizontalBarGraph.config.main.legendLabels =
|
|
11259
|
+
horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11260
|
+
}
|
|
11261
|
+
if (config2.legendDirection) {
|
|
11262
|
+
horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
10831
11263
|
}
|
|
10832
11264
|
if (config2.pieArcColors) {
|
|
10833
|
-
horizontalBarGraph.config.style.
|
|
11265
|
+
horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
10834
11266
|
}
|
|
10835
11267
|
if (config2.xAxisValue) {
|
|
10836
11268
|
horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -10849,6 +11281,9 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10849
11281
|
if (config2.leftLabel) {
|
|
10850
11282
|
horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
|
|
10851
11283
|
}
|
|
11284
|
+
if (config2.disableLeftLabel) {
|
|
11285
|
+
horizontalBarGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
11286
|
+
}
|
|
10852
11287
|
return horizontalBarGraph;
|
|
10853
11288
|
};
|
|
10854
11289
|
var SpeedoMeter = {
|
|
@@ -10955,16 +11390,19 @@ const buildPieGraph = (config2, componentScope2) => {
|
|
|
10955
11390
|
if (config2.legendHide) {
|
|
10956
11391
|
pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10957
11392
|
}
|
|
11393
|
+
if (config2.legendDirection) {
|
|
11394
|
+
pieGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
11395
|
+
}
|
|
10958
11396
|
pieGraph.scope = componentScope2;
|
|
10959
11397
|
pieGraph.config.main.header = config2.heading;
|
|
10960
11398
|
if (config2.legendLabels) {
|
|
10961
|
-
pieGraph.config.main.legendLabels =
|
|
11399
|
+
pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
10962
11400
|
}
|
|
10963
11401
|
if (config2.xAxisValue) {
|
|
10964
11402
|
pieGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10965
11403
|
}
|
|
10966
11404
|
if (config2.pieArcColors) {
|
|
10967
|
-
pieGraph.config.style.
|
|
11405
|
+
pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
10968
11406
|
}
|
|
10969
11407
|
return pieGraph;
|
|
10970
11408
|
};
|
|
@@ -10978,16 +11416,19 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
10978
11416
|
barGraph.config.main.legendAvailable = config2.legendHide;
|
|
10979
11417
|
barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10980
11418
|
}
|
|
11419
|
+
if (config2.legendDirection) {
|
|
11420
|
+
barGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
11421
|
+
}
|
|
10981
11422
|
if (config2.bottomAxisAngle) {
|
|
10982
11423
|
barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10983
11424
|
}
|
|
10984
11425
|
barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
|
|
10985
11426
|
barGraph.config.main.header = config2.heading;
|
|
10986
11427
|
if (config2.legendLabels) {
|
|
10987
|
-
barGraph.config.main.legendLabels =
|
|
11428
|
+
barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
10988
11429
|
}
|
|
10989
11430
|
if (config2.pieArcColors) {
|
|
10990
|
-
barGraph.config.style.
|
|
11431
|
+
barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
10991
11432
|
}
|
|
10992
11433
|
if (config2.xAxisValue) {
|
|
10993
11434
|
barGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11006,6 +11447,9 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
11006
11447
|
if (config2.leftLabel) {
|
|
11007
11448
|
barGraph.config.main.leftLabel = config2.leftLabel;
|
|
11008
11449
|
}
|
|
11450
|
+
if (config2.disableLeftLabel) {
|
|
11451
|
+
barGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
11452
|
+
}
|
|
11009
11453
|
barGraph.scope = componentScope2;
|
|
11010
11454
|
return barGraph;
|
|
11011
11455
|
};
|
|
@@ -11050,6 +11494,10 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
11050
11494
|
}
|
|
11051
11495
|
if (config2.sectionLabels) {
|
|
11052
11496
|
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
11497
|
+
tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
|
|
11498
|
+
}
|
|
11499
|
+
if (config2.style) {
|
|
11500
|
+
tab.config.style = JSON.parse(config2.style);
|
|
11053
11501
|
}
|
|
11054
11502
|
tab.config.main.id = config2.name;
|
|
11055
11503
|
return tab;
|
|
@@ -11059,9 +11507,11 @@ var WrapperSection = {
|
|
|
11059
11507
|
config: {
|
|
11060
11508
|
layout: 12,
|
|
11061
11509
|
main: {
|
|
11062
|
-
rowSpacing: 3,
|
|
11063
11510
|
divider: true,
|
|
11064
|
-
label: "Default Label"
|
|
11511
|
+
label: "Default Label",
|
|
11512
|
+
rowSpacing: 2,
|
|
11513
|
+
columnSpacing: 2,
|
|
11514
|
+
spacing: 2
|
|
11065
11515
|
},
|
|
11066
11516
|
defaultStyle: true
|
|
11067
11517
|
},
|
|
@@ -11073,6 +11523,12 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11073
11523
|
wrapper.config.main.label = config2.label;
|
|
11074
11524
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11075
11525
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11526
|
+
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11527
|
+
wrapper.config.main.icon = config2.iconUrl;
|
|
11528
|
+
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11529
|
+
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11530
|
+
wrapper.config.main.spacing = Number(config2.spacing);
|
|
11531
|
+
wrapper.config.main.wrapperId = config2.wrapperId;
|
|
11076
11532
|
if (config2.defaultStyle) {
|
|
11077
11533
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11078
11534
|
}
|
|
@@ -11122,6 +11578,15 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
11122
11578
|
if (config2.layout) {
|
|
11123
11579
|
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11124
11580
|
}
|
|
11581
|
+
if (config2.toolTip) {
|
|
11582
|
+
inputField.config.main.toolTip = config2.toolTip;
|
|
11583
|
+
}
|
|
11584
|
+
if (config2.toolTipPosition) {
|
|
11585
|
+
inputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11586
|
+
}
|
|
11587
|
+
if (config2.iconName) {
|
|
11588
|
+
inputField.config.main.startIcon = config2.iconName;
|
|
11589
|
+
}
|
|
11125
11590
|
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11126
11591
|
inputField.scope = componentScope2;
|
|
11127
11592
|
return inputField;
|
|
@@ -11138,7 +11603,8 @@ var SelectInputField = {
|
|
|
11138
11603
|
label: "",
|
|
11139
11604
|
type: "text",
|
|
11140
11605
|
freeSole: false
|
|
11141
|
-
}
|
|
11606
|
+
},
|
|
11607
|
+
style: {}
|
|
11142
11608
|
}
|
|
11143
11609
|
};
|
|
11144
11610
|
const buildSelect = (config2, componentScope2) => {
|
|
@@ -11159,6 +11625,15 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11159
11625
|
if (config2.layout) {
|
|
11160
11626
|
selectInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11161
11627
|
}
|
|
11628
|
+
if (config2.toolTip) {
|
|
11629
|
+
selectInputField.config.main.toolTip = config2.toolTip;
|
|
11630
|
+
}
|
|
11631
|
+
if (config2.toolTipPosition) {
|
|
11632
|
+
selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11633
|
+
}
|
|
11634
|
+
if (config2.style) {
|
|
11635
|
+
selectInputField.config.style = JSON.parse(config2.style);
|
|
11636
|
+
}
|
|
11162
11637
|
selectInputField.scope = componentScope2;
|
|
11163
11638
|
return selectInputField;
|
|
11164
11639
|
};
|
|
@@ -11248,6 +11723,9 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11248
11723
|
if (config2.lazyLoading) {
|
|
11249
11724
|
table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11250
11725
|
}
|
|
11726
|
+
if (config2.defaultColumnSize) {
|
|
11727
|
+
table.config.main.defaultColumnSize = config2.defaultColumnSize;
|
|
11728
|
+
}
|
|
11251
11729
|
if (config2.enableRowMovement) {
|
|
11252
11730
|
table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
|
|
11253
11731
|
}
|
|
@@ -11263,9 +11741,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11263
11741
|
if (config2.paginateExpandedRows) {
|
|
11264
11742
|
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
11265
11743
|
}
|
|
11266
|
-
if (config2.treeStructure) {
|
|
11267
|
-
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
11268
|
-
}
|
|
11269
11744
|
if (config2.SelectionAvailable) {
|
|
11270
11745
|
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
11271
11746
|
}
|
|
@@ -11308,6 +11783,21 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11308
11783
|
if (config2.selectKey) {
|
|
11309
11784
|
table.config.main.selectKey = config2.selectKey;
|
|
11310
11785
|
}
|
|
11786
|
+
if (config2.rowIdKey) {
|
|
11787
|
+
table.config.main.rowIdKey = config2.rowIdKey;
|
|
11788
|
+
}
|
|
11789
|
+
if (config2.parentIdKey) {
|
|
11790
|
+
table.config.main.parentIdKey = config2.parentIdKey;
|
|
11791
|
+
}
|
|
11792
|
+
if (config2.maxPageSize) {
|
|
11793
|
+
table.config.main.maxPageSize = config2.maxPageSize;
|
|
11794
|
+
}
|
|
11795
|
+
if (config2.initialDensity) {
|
|
11796
|
+
table.config.main.initialDensity = config2.initialDensity;
|
|
11797
|
+
}
|
|
11798
|
+
if (config2.layout) {
|
|
11799
|
+
table.config.layout = createLayoutFormat(config2.layout);
|
|
11800
|
+
}
|
|
11311
11801
|
return table;
|
|
11312
11802
|
};
|
|
11313
11803
|
const Box = {
|
|
@@ -11318,7 +11808,10 @@ const Box = {
|
|
|
11318
11808
|
},
|
|
11319
11809
|
config: {
|
|
11320
11810
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11321
|
-
main: {
|
|
11811
|
+
main: {
|
|
11812
|
+
iconName: "",
|
|
11813
|
+
onClick: "onClick"
|
|
11814
|
+
},
|
|
11322
11815
|
style: {}
|
|
11323
11816
|
}
|
|
11324
11817
|
};
|
|
@@ -11329,6 +11822,9 @@ const buildLabel = (config2, componentScope2) => {
|
|
|
11329
11822
|
if (config2.layout) {
|
|
11330
11823
|
box.config.layout = createLayoutFormat(config2.layout);
|
|
11331
11824
|
}
|
|
11825
|
+
if (config2.iconName) {
|
|
11826
|
+
box.config.main.iconName = config2.iconName;
|
|
11827
|
+
}
|
|
11332
11828
|
if (config2.style) {
|
|
11333
11829
|
box.config.style = JSON.parse(config2.style);
|
|
11334
11830
|
}
|
|
@@ -11383,12 +11879,19 @@ const buildUploadFile = (config2, componentScope2) => {
|
|
|
11383
11879
|
if (config2.required) {
|
|
11384
11880
|
UploadFile.config.main.required = true;
|
|
11385
11881
|
}
|
|
11882
|
+
if (config2.toolTip) {
|
|
11883
|
+
UploadFile.config.main.toolTip = config2.toolTip;
|
|
11884
|
+
}
|
|
11885
|
+
if (config2.toolTipPosition) {
|
|
11886
|
+
UploadFile.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11887
|
+
}
|
|
11386
11888
|
UploadFile.config.main.errorMessage = config2.errorMessage;
|
|
11387
11889
|
return UploadFile;
|
|
11388
11890
|
};
|
|
11389
11891
|
const buildDownloadFile = (config2, componentScope2) => {
|
|
11390
11892
|
const DownloadFile = _.cloneDeep(downloadFile);
|
|
11391
11893
|
DownloadFile.scope = componentScope2;
|
|
11894
|
+
DownloadFile.config.main.label = config2.label;
|
|
11392
11895
|
if (config2.layout) {
|
|
11393
11896
|
DownloadFile.config.layout = config2.layout;
|
|
11394
11897
|
}
|
|
@@ -11404,6 +11907,12 @@ const buildDownloadFile = (config2, componentScope2) => {
|
|
|
11404
11907
|
if (config2.errorMessage) {
|
|
11405
11908
|
DownloadFile.config.main.errorMessage = config2.errorMessage;
|
|
11406
11909
|
}
|
|
11910
|
+
if (config2.toolTip) {
|
|
11911
|
+
DownloadFile.config.main.toolTip = config2.toolTip;
|
|
11912
|
+
}
|
|
11913
|
+
if (config2.toolTipPosition) {
|
|
11914
|
+
DownloadFile.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11915
|
+
}
|
|
11407
11916
|
return DownloadFile;
|
|
11408
11917
|
};
|
|
11409
11918
|
function Card(theme) {
|
|
@@ -11411,192 +11920,159 @@ function Card(theme) {
|
|
|
11411
11920
|
type: "WrapperLayout",
|
|
11412
11921
|
config: {
|
|
11413
11922
|
main: {},
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11923
|
+
style: {
|
|
11924
|
+
wrapperStyle: {
|
|
11925
|
+
position: "relative",
|
|
11926
|
+
top: "50%",
|
|
11927
|
+
transform: "translateY(-50%)",
|
|
11928
|
+
marginBottom: 0,
|
|
11929
|
+
borderRadius: "12px",
|
|
11930
|
+
fontFamily: "poppins"
|
|
11931
|
+
},
|
|
11932
|
+
componentsBoxStyle: {
|
|
11933
|
+
boxShadow: "0 0 6px 1px rgba(149, 147, 147, 0.25)",
|
|
11934
|
+
flexDirection: "column",
|
|
11935
|
+
overflow: "hidden",
|
|
11936
|
+
flexWrap: "nowrap",
|
|
11937
|
+
width: "100% !important",
|
|
11938
|
+
background: "transparent",
|
|
11939
|
+
borderRadius: "12px",
|
|
11940
|
+
padding: "20px 20px 20px 14px",
|
|
11941
|
+
height: "100%",
|
|
11942
|
+
minHeight: "100px",
|
|
11943
|
+
position: "relative",
|
|
11944
|
+
marginLeft: "0px",
|
|
11945
|
+
"&: hover": {
|
|
11946
|
+
background: `${theme.palette.primary.main}`,
|
|
11947
|
+
color: `${theme.palette.primary.contrastText}`
|
|
11437
11948
|
}
|
|
11438
11949
|
}
|
|
11439
11950
|
},
|
|
11440
|
-
layout: { xs: 12, sm: 12, md:
|
|
11951
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 }
|
|
11441
11952
|
},
|
|
11442
11953
|
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
11954
|
{
|
|
11575
11955
|
type: "Control",
|
|
11576
|
-
scope: "#/properties/
|
|
11956
|
+
scope: "#/properties/initilCardScope",
|
|
11577
11957
|
config: {
|
|
11578
11958
|
main: {
|
|
11579
11959
|
url: "https://www.svgrepo.com/show/500606/loading.svg"
|
|
11580
11960
|
},
|
|
11581
11961
|
style: {
|
|
11582
11962
|
containerStyle: {
|
|
11583
|
-
|
|
11963
|
+
position: "absolute",
|
|
11964
|
+
color: "inherit",
|
|
11965
|
+
top: "4px",
|
|
11966
|
+
right: "4px",
|
|
11584
11967
|
display: "flex",
|
|
11585
|
-
justifyContent: "end"
|
|
11968
|
+
justifyContent: "flex-end",
|
|
11969
|
+
alignItems: "flex-start"
|
|
11586
11970
|
},
|
|
11587
11971
|
imageStyle: {
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11972
|
+
color: "inherit",
|
|
11973
|
+
width: "32px",
|
|
11974
|
+
height: "32px",
|
|
11975
|
+
padding: "0px",
|
|
11976
|
+
margin: "0px"
|
|
11593
11977
|
}
|
|
11594
|
-
}
|
|
11595
|
-
layout: 4
|
|
11978
|
+
}
|
|
11596
11979
|
},
|
|
11597
11980
|
options: {
|
|
11598
11981
|
widget: "Image"
|
|
11599
11982
|
}
|
|
11983
|
+
},
|
|
11984
|
+
{
|
|
11985
|
+
type: "Control",
|
|
11986
|
+
scope: "#/properties/initilCardScope",
|
|
11987
|
+
config: {
|
|
11988
|
+
main: {
|
|
11989
|
+
heading: "Total Earnings"
|
|
11990
|
+
},
|
|
11991
|
+
style: {
|
|
11992
|
+
color: "inherit",
|
|
11993
|
+
fontSize: "16px",
|
|
11994
|
+
fontWeight: 300,
|
|
11995
|
+
fontFamily: "Poppins",
|
|
11996
|
+
justifyContent: "flex-start",
|
|
11997
|
+
background: "inherit",
|
|
11998
|
+
position: "absolute",
|
|
11999
|
+
top: "8px",
|
|
12000
|
+
left: "12px",
|
|
12001
|
+
display: "flex",
|
|
12002
|
+
maxWidth: "200px",
|
|
12003
|
+
whiteSpace: "nowrap",
|
|
12004
|
+
overflowX: "auto",
|
|
12005
|
+
scrollbarWidth: "none",
|
|
12006
|
+
"&::-webkit-scrollbar": {
|
|
12007
|
+
display: "none"
|
|
12008
|
+
}
|
|
12009
|
+
}
|
|
12010
|
+
},
|
|
12011
|
+
options: {
|
|
12012
|
+
widget: "Box"
|
|
12013
|
+
}
|
|
12014
|
+
},
|
|
12015
|
+
{
|
|
12016
|
+
type: "Control",
|
|
12017
|
+
scope: "#/properties/initilCardScope",
|
|
12018
|
+
config: {
|
|
12019
|
+
main: {
|
|
12020
|
+
heading: "5000.00"
|
|
12021
|
+
},
|
|
12022
|
+
style: {
|
|
12023
|
+
color: "inherit",
|
|
12024
|
+
display: "flex",
|
|
12025
|
+
fontSize: { xs: "22px", md: "40px" },
|
|
12026
|
+
fontWeight: 600,
|
|
12027
|
+
background: "inherit",
|
|
12028
|
+
justifyContent: "flex-start",
|
|
12029
|
+
width: "100%",
|
|
12030
|
+
margin: "0px",
|
|
12031
|
+
marginBottom: "4px",
|
|
12032
|
+
marginTop: "8px",
|
|
12033
|
+
lineHeight: "1",
|
|
12034
|
+
maxWidth: "300px",
|
|
12035
|
+
whiteSpace: "nowrap",
|
|
12036
|
+
overflowX: "auto",
|
|
12037
|
+
overflowY: "hidden",
|
|
12038
|
+
scrollbarWidth: "none",
|
|
12039
|
+
"&::-webkit-scrollbar": {
|
|
12040
|
+
display: "none"
|
|
12041
|
+
}
|
|
12042
|
+
}
|
|
12043
|
+
},
|
|
12044
|
+
options: {
|
|
12045
|
+
widget: "Box"
|
|
12046
|
+
}
|
|
12047
|
+
},
|
|
12048
|
+
{
|
|
12049
|
+
type: "Control",
|
|
12050
|
+
scope: "#/properties/initilCardScope",
|
|
12051
|
+
config: {
|
|
12052
|
+
main: {
|
|
12053
|
+
heading: "Increased from last month"
|
|
12054
|
+
},
|
|
12055
|
+
style: {
|
|
12056
|
+
color: "inherit",
|
|
12057
|
+
fontSize: "12px",
|
|
12058
|
+
fontWeight: "400",
|
|
12059
|
+
justifyContent: "flex-start",
|
|
12060
|
+
background: "inherit",
|
|
12061
|
+
margin: "0px",
|
|
12062
|
+
paddingLeft: "2px",
|
|
12063
|
+
marginBottom: "8px",
|
|
12064
|
+
maxWidth: "200px",
|
|
12065
|
+
whiteSpace: "nowrap",
|
|
12066
|
+
overflowX: "auto",
|
|
12067
|
+
scrollbarWidth: "none",
|
|
12068
|
+
"&::-webkit-scrollbar": {
|
|
12069
|
+
display: "none"
|
|
12070
|
+
}
|
|
12071
|
+
}
|
|
12072
|
+
},
|
|
12073
|
+
options: {
|
|
12074
|
+
widget: "Box"
|
|
12075
|
+
}
|
|
11600
12076
|
}
|
|
11601
12077
|
]
|
|
11602
12078
|
};
|
|
@@ -11607,9 +12083,10 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11607
12083
|
if (config.style) {
|
|
11608
12084
|
card.config.wrapperStyle = JSON.parse(config.style);
|
|
11609
12085
|
}
|
|
11610
|
-
card.elements[0].
|
|
11611
|
-
card.elements[1].scope = `#/properties/${config.name}/properties/
|
|
11612
|
-
card.elements[
|
|
12086
|
+
card.elements[0].scope = `#/properties/${config.name}/properties/url`;
|
|
12087
|
+
card.elements[1].scope = `#/properties/${config.name}/properties/label`;
|
|
12088
|
+
card.elements[2].scope = `#/properties/${config.name}/properties/value`;
|
|
12089
|
+
card.elements[3].scope = `#/properties/${config.name}/properties/description`;
|
|
11613
12090
|
if (config.layout) {
|
|
11614
12091
|
card.config.layout = createLayoutFormat(config.layout);
|
|
11615
12092
|
}
|
|
@@ -11618,16 +12095,56 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11618
12095
|
card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
|
|
11619
12096
|
}
|
|
11620
12097
|
if (config.label) {
|
|
11621
|
-
card.elements[
|
|
12098
|
+
card.elements[1].config.main.heading = config.label;
|
|
11622
12099
|
}
|
|
11623
12100
|
if (config.url) {
|
|
11624
|
-
card.elements[
|
|
12101
|
+
card.elements[0].config.main.url = config.url;
|
|
11625
12102
|
}
|
|
11626
12103
|
if (config.description) {
|
|
11627
|
-
card.elements[
|
|
12104
|
+
card.elements[3].config.main.heading = config.description;
|
|
11628
12105
|
}
|
|
11629
12106
|
return card;
|
|
11630
12107
|
};
|
|
12108
|
+
var MetricCard = {
|
|
12109
|
+
type: "Control",
|
|
12110
|
+
scope: "#/properties/metricpath",
|
|
12111
|
+
options: {
|
|
12112
|
+
widget: "MetricCard"
|
|
12113
|
+
},
|
|
12114
|
+
config: {
|
|
12115
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
12116
|
+
main: {}
|
|
12117
|
+
}
|
|
12118
|
+
};
|
|
12119
|
+
const buildMetricCard = (config2, componentScope2, store2) => {
|
|
12120
|
+
const card2 = _.cloneDeep(MetricCard);
|
|
12121
|
+
card2.scope = componentScope2;
|
|
12122
|
+
if (config2.style) {
|
|
12123
|
+
card2.config.style = JSON.parse(config2.style);
|
|
12124
|
+
}
|
|
12125
|
+
if (config2.layout) {
|
|
12126
|
+
card2.config.layout = createLayoutFormat(config2.layout);
|
|
12127
|
+
}
|
|
12128
|
+
if (config2.label) {
|
|
12129
|
+
card2.config.main.label = config2.label;
|
|
12130
|
+
}
|
|
12131
|
+
if (config2.url) {
|
|
12132
|
+
card2.config.main.url = config2.url;
|
|
12133
|
+
}
|
|
12134
|
+
if (config2.description) {
|
|
12135
|
+
card2.config.main.description = config2.description;
|
|
12136
|
+
}
|
|
12137
|
+
if (config2.cardValue) {
|
|
12138
|
+
card2.config.main.cardValue = config2.cardValue;
|
|
12139
|
+
}
|
|
12140
|
+
if (config2.growthRate) {
|
|
12141
|
+
card2.config.main.growthRate = config2.growthRate;
|
|
12142
|
+
}
|
|
12143
|
+
if (config2.color) {
|
|
12144
|
+
card2.config.main.color = config2.color;
|
|
12145
|
+
}
|
|
12146
|
+
return card2;
|
|
12147
|
+
};
|
|
11631
12148
|
var DateInputField = {
|
|
11632
12149
|
type: "Control",
|
|
11633
12150
|
scope: "#/properties/date",
|
|
@@ -11659,21 +12176,43 @@ const DateTime = {
|
|
|
11659
12176
|
const buildDate = (config2, componentScope2) => {
|
|
11660
12177
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
11661
12178
|
dateInputField.config.main.label = config2.label;
|
|
11662
|
-
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11663
12179
|
dateInputField.scope = componentScope2;
|
|
11664
12180
|
if (config2.layout) {
|
|
11665
12181
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11666
12182
|
}
|
|
12183
|
+
if (config2.variant) {
|
|
12184
|
+
dateInputField.config.main.variant = config2.variant;
|
|
12185
|
+
}
|
|
12186
|
+
if (config2.toolTip) {
|
|
12187
|
+
dateInputField.config.main.toolTip = config2.toolTip;
|
|
12188
|
+
}
|
|
12189
|
+
if (config2.toolTipPosition) {
|
|
12190
|
+
dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12191
|
+
}
|
|
12192
|
+
if (config2.style) {
|
|
12193
|
+
dateInputField.config.style = JSON.parse(config2.style);
|
|
12194
|
+
}
|
|
11667
12195
|
return dateInputField;
|
|
11668
12196
|
};
|
|
11669
12197
|
const buildDateTime = (config2, componentScope2) => {
|
|
11670
12198
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
11671
12199
|
dateTimeInputField.config.main.label = config2.label;
|
|
11672
|
-
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11673
12200
|
dateTimeInputField.scope = componentScope2;
|
|
11674
12201
|
if (config2.layout) {
|
|
11675
12202
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11676
12203
|
}
|
|
12204
|
+
if (config2.variant) {
|
|
12205
|
+
dateTimeInputField.config.main.variant = config2.variant;
|
|
12206
|
+
}
|
|
12207
|
+
if (config2.toolTip) {
|
|
12208
|
+
dateTimeInputField.config.main.toolTip = config2.toolTip;
|
|
12209
|
+
}
|
|
12210
|
+
if (config2.toolTipPosition) {
|
|
12211
|
+
dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12212
|
+
}
|
|
12213
|
+
if (config2.style) {
|
|
12214
|
+
dateTimeInputField.config.style = JSON.parse(config2.style);
|
|
12215
|
+
}
|
|
11677
12216
|
return dateTimeInputField;
|
|
11678
12217
|
};
|
|
11679
12218
|
var RankCard = {
|
|
@@ -11764,7 +12303,8 @@ var MultipleSelect = {
|
|
|
11764
12303
|
multiple: true,
|
|
11765
12304
|
variant: "outlined",
|
|
11766
12305
|
options: []
|
|
11767
|
-
}
|
|
12306
|
+
},
|
|
12307
|
+
style: {}
|
|
11768
12308
|
}
|
|
11769
12309
|
};
|
|
11770
12310
|
const buildMultiSelect = (config2, componentScope2) => {
|
|
@@ -11785,6 +12325,15 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
11785
12325
|
if (config2.lazyLoading) {
|
|
11786
12326
|
multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11787
12327
|
}
|
|
12328
|
+
if (config2.toolTip) {
|
|
12329
|
+
multipleSelect.config.main.toolTip = config2.toolTip;
|
|
12330
|
+
}
|
|
12331
|
+
if (config2.toolTipPosition) {
|
|
12332
|
+
multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12333
|
+
}
|
|
12334
|
+
if (config2.style) {
|
|
12335
|
+
multipleSelect.config.style = JSON.parse(config2.style);
|
|
12336
|
+
}
|
|
11788
12337
|
return multipleSelect;
|
|
11789
12338
|
};
|
|
11790
12339
|
const buildBasicUiSchema = (config2) => {
|
|
@@ -11918,17 +12467,23 @@ const buildLineGraph = (config2, componentScope2) => {
|
|
|
11918
12467
|
if (config2.leftLabel) {
|
|
11919
12468
|
lineGraph.config.main.leftLabel = config2.leftLabel;
|
|
11920
12469
|
}
|
|
12470
|
+
if (config2.disableLeftLabel) {
|
|
12471
|
+
lineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
12472
|
+
}
|
|
11921
12473
|
if (config2.legendHide) {
|
|
11922
12474
|
lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
11923
12475
|
}
|
|
12476
|
+
if (config2.legendDirection) {
|
|
12477
|
+
lineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
12478
|
+
}
|
|
11924
12479
|
if (config2.bottomAxisAngle) {
|
|
11925
12480
|
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
11926
12481
|
}
|
|
11927
12482
|
if (config2.legendLabels) {
|
|
11928
|
-
lineGraph.config.main.legendLabels =
|
|
12483
|
+
lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11929
12484
|
}
|
|
11930
12485
|
if (config2.pieArcColors) {
|
|
11931
|
-
lineGraph.config.style.
|
|
12486
|
+
lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11932
12487
|
}
|
|
11933
12488
|
lineGraph.scope = componentScope2;
|
|
11934
12489
|
return lineGraph;
|
|
@@ -11943,8 +12498,7 @@ const RadioUiSchema = {
|
|
|
11943
12498
|
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11944
12499
|
main: {
|
|
11945
12500
|
label: "Enabled",
|
|
11946
|
-
options: ["YES", "NO"]
|
|
11947
|
-
errorMessage: "Enabled is not marked as YES or NO"
|
|
12501
|
+
options: ["YES", "NO"]
|
|
11948
12502
|
}
|
|
11949
12503
|
}
|
|
11950
12504
|
};
|
|
@@ -11961,6 +12515,15 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11961
12515
|
if (config2.style) {
|
|
11962
12516
|
Radio.config.style = JSON.parse(config2.style);
|
|
11963
12517
|
}
|
|
12518
|
+
if (config2.errorMessage) {
|
|
12519
|
+
Radio.config.main.errorMessage = config2.errorMessage;
|
|
12520
|
+
}
|
|
12521
|
+
if (config2.toolTip) {
|
|
12522
|
+
Radio.config.main.toolTip = config2.toolTip;
|
|
12523
|
+
}
|
|
12524
|
+
if (config2.toolTipPosition) {
|
|
12525
|
+
Radio.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12526
|
+
}
|
|
11964
12527
|
return Radio;
|
|
11965
12528
|
};
|
|
11966
12529
|
var emptyBox = {
|
|
@@ -11977,9 +12540,13 @@ var emptyBox = {
|
|
|
11977
12540
|
};
|
|
11978
12541
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11979
12542
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
12543
|
+
EmptyBox.scope = componentScope2;
|
|
11980
12544
|
if (config2.layout) {
|
|
11981
12545
|
EmptyBox.config.layout = createLayoutFormat(config2.layout);
|
|
11982
12546
|
}
|
|
12547
|
+
if (config2.style) {
|
|
12548
|
+
EmptyBox.config.style = JSON.parse(config2.style);
|
|
12549
|
+
}
|
|
11983
12550
|
return EmptyBox;
|
|
11984
12551
|
};
|
|
11985
12552
|
const ArrayUiSchema = {
|
|
@@ -11996,10 +12563,23 @@ const buildArray = (config2, componentScope2) => {
|
|
|
11996
12563
|
if (config2.allExpanded) {
|
|
11997
12564
|
array.config.main.allExpanded = config2.allExpanded === "YES" ? true : false;
|
|
11998
12565
|
}
|
|
12566
|
+
if (config2.disableAddButton) {
|
|
12567
|
+
array.config.main.disableAddButton = config2.disableAddButton === "YES" ? true : false;
|
|
12568
|
+
}
|
|
12569
|
+
if (config2.disableExpandAllButton) {
|
|
12570
|
+
array.config.main.disableExpandAllButton = config2.disableExpandAllButton === "YES" ? true : false;
|
|
12571
|
+
}
|
|
12572
|
+
if (config2.disableRowActions) {
|
|
12573
|
+
array.config.main.disableRowActions = config2.disableRowActions === "YES" ? true : false;
|
|
12574
|
+
}
|
|
11999
12575
|
if (config2.style) {
|
|
12000
12576
|
array.config.style = JSON.parse(config2.style);
|
|
12001
12577
|
}
|
|
12578
|
+
array.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
12579
|
+
array.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
12580
|
+
array.config.main.spacing = Number(config2.spacing);
|
|
12002
12581
|
array.config.main.childElementLabel = config2.childElementLabel;
|
|
12582
|
+
array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
|
|
12003
12583
|
array.config.main.label = config2.label;
|
|
12004
12584
|
array.scope = componentScope2;
|
|
12005
12585
|
return array;
|
|
@@ -12074,7 +12654,8 @@ const FileInput = {
|
|
|
12074
12654
|
required: false,
|
|
12075
12655
|
onUpload: "onFileUpload",
|
|
12076
12656
|
onDownload: "onFileDownload",
|
|
12077
|
-
label: "Aggrement Copy"
|
|
12657
|
+
label: "Aggrement Copy",
|
|
12658
|
+
"onClick": "onClick"
|
|
12078
12659
|
},
|
|
12079
12660
|
style: {
|
|
12080
12661
|
backgroundColor: "none"
|
|
@@ -12091,6 +12672,19 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12091
12672
|
if (config2.style) {
|
|
12092
12673
|
box.config.style = JSON.parse(config2.style);
|
|
12093
12674
|
}
|
|
12675
|
+
box.config.main.variant = config2.variant;
|
|
12676
|
+
box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
|
|
12677
|
+
box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
|
|
12678
|
+
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12679
|
+
box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
|
|
12680
|
+
box.config.main.description = config2.description;
|
|
12681
|
+
box.config.main.toolTip = config2.toolTip;
|
|
12682
|
+
box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
|
|
12683
|
+
box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
|
|
12684
|
+
if (config2.toolTipPosition) {
|
|
12685
|
+
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12686
|
+
}
|
|
12687
|
+
box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
|
|
12094
12688
|
return box;
|
|
12095
12689
|
};
|
|
12096
12690
|
const Stepper = {
|
|
@@ -12147,6 +12741,7 @@ const PopUP = {
|
|
|
12147
12741
|
},
|
|
12148
12742
|
main: {
|
|
12149
12743
|
label: "PopUp",
|
|
12744
|
+
onClose: "onClose",
|
|
12150
12745
|
fullScreen: false,
|
|
12151
12746
|
fullWidth: false,
|
|
12152
12747
|
maxWidth: false,
|
|
@@ -12338,124 +12933,482 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12338
12933
|
}
|
|
12339
12934
|
return thought;
|
|
12340
12935
|
};
|
|
12936
|
+
var horizontalLayout = {
|
|
12937
|
+
type: "HorizontalLayout",
|
|
12938
|
+
config: {
|
|
12939
|
+
layout: 12,
|
|
12940
|
+
main: {
|
|
12941
|
+
rowSpacing: 3,
|
|
12942
|
+
divider: false
|
|
12943
|
+
},
|
|
12944
|
+
defaultStyle: true
|
|
12945
|
+
},
|
|
12946
|
+
elements: []
|
|
12947
|
+
};
|
|
12948
|
+
const buildHorizontalLayout = (config2, componentScope2) => {
|
|
12949
|
+
const horizontal = _.cloneDeep(horizontalLayout);
|
|
12950
|
+
horizontal.scope = componentScope2;
|
|
12951
|
+
if (config2.style) {
|
|
12952
|
+
horizontal.config.style = JSON.parse(config2.style);
|
|
12953
|
+
}
|
|
12954
|
+
if (config2.layout) {
|
|
12955
|
+
horizontal.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12956
|
+
}
|
|
12957
|
+
return horizontal;
|
|
12958
|
+
};
|
|
12959
|
+
const imageUiSchema = {
|
|
12960
|
+
type: "Control",
|
|
12961
|
+
scope: "#/properties/Logo",
|
|
12962
|
+
options: {
|
|
12963
|
+
widget: "Image"
|
|
12964
|
+
},
|
|
12965
|
+
config: {
|
|
12966
|
+
layout: 3,
|
|
12967
|
+
main: {
|
|
12968
|
+
url: "",
|
|
12969
|
+
onClick: "onClick"
|
|
12970
|
+
},
|
|
12971
|
+
style: {}
|
|
12972
|
+
}
|
|
12973
|
+
};
|
|
12974
|
+
const buildImage = (config2, componentScope2) => {
|
|
12975
|
+
const image = _.cloneDeep(imageUiSchema);
|
|
12976
|
+
image.scope = componentScope2;
|
|
12977
|
+
image.config.main.url = config2.imageUrl;
|
|
12978
|
+
if (config2.layout) {
|
|
12979
|
+
image.config.layout = createLayoutFormat(config2.layout);
|
|
12980
|
+
}
|
|
12981
|
+
if (config2.style) {
|
|
12982
|
+
image.config.style = JSON.parse(config2.style);
|
|
12983
|
+
}
|
|
12984
|
+
if (config2.height) {
|
|
12985
|
+
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12986
|
+
}
|
|
12987
|
+
image.config.main.toolTip = config2.toolTip;
|
|
12988
|
+
image.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12989
|
+
return image;
|
|
12990
|
+
};
|
|
12991
|
+
const buildAreaGraph = (config2, componentScope2) => {
|
|
12992
|
+
const AreaGraph = _.cloneDeep(AreaBarGraph);
|
|
12993
|
+
AreaGraph.scope = componentScope2;
|
|
12994
|
+
if (config2.layout) {
|
|
12995
|
+
AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12996
|
+
}
|
|
12997
|
+
AreaGraph.config.main.type = config2.graphType;
|
|
12998
|
+
AreaGraph.scope = componentScope2;
|
|
12999
|
+
AreaGraph.config.main.header = config2.heading;
|
|
13000
|
+
AreaGraph.config.main.subHeader = config2.subHeader;
|
|
13001
|
+
if (config2.legendHide) {
|
|
13002
|
+
AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13003
|
+
}
|
|
13004
|
+
if (config2.bottomAxisAngle) {
|
|
13005
|
+
AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13006
|
+
}
|
|
13007
|
+
if (config2.legendLabels) {
|
|
13008
|
+
AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13009
|
+
}
|
|
13010
|
+
if (config2.legendDirection) {
|
|
13011
|
+
AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13012
|
+
}
|
|
13013
|
+
if (config2.height) {
|
|
13014
|
+
AreaGraph.config.style.containerStyle.height = config2.height;
|
|
13015
|
+
}
|
|
13016
|
+
if (config2.pieArcColors) {
|
|
13017
|
+
AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13018
|
+
}
|
|
13019
|
+
if (config2.xAxisFormatType) {
|
|
13020
|
+
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
13021
|
+
}
|
|
13022
|
+
if (config2.yAxisTickCount) {
|
|
13023
|
+
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13024
|
+
}
|
|
13025
|
+
if (config2.xAxisTickCount) {
|
|
13026
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13027
|
+
}
|
|
13028
|
+
if (config2.xAxisValue) {
|
|
13029
|
+
AreaGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13030
|
+
}
|
|
13031
|
+
if (config2.xAxisType) {
|
|
13032
|
+
AreaGraph.config.main.xAxisType = config2.xAxisType;
|
|
13033
|
+
}
|
|
13034
|
+
if (config2.bottomLabel) {
|
|
13035
|
+
AreaGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13036
|
+
}
|
|
13037
|
+
if (config2.leftLabel) {
|
|
13038
|
+
AreaGraph.config.main.leftLabel = config2.leftLabel;
|
|
13039
|
+
}
|
|
13040
|
+
if (config2.disableLeftLabel) {
|
|
13041
|
+
AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13042
|
+
}
|
|
13043
|
+
if (config2.leftMargin) {
|
|
13044
|
+
AreaGraph.config.style.labelStyle.margin = {
|
|
13045
|
+
left: config2.leftMargin
|
|
13046
|
+
};
|
|
13047
|
+
}
|
|
13048
|
+
return AreaGraph;
|
|
13049
|
+
};
|
|
13050
|
+
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
13051
|
+
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
13052
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13053
|
+
if (config2.layout) {
|
|
13054
|
+
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13055
|
+
}
|
|
13056
|
+
StackBarLineGraph.config.main.type = config2.graphType;
|
|
13057
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13058
|
+
StackBarLineGraph.config.main.header = config2.heading;
|
|
13059
|
+
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
13060
|
+
if (config2.legendHide) {
|
|
13061
|
+
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13062
|
+
}
|
|
13063
|
+
if (config2.bottomAxisAngle) {
|
|
13064
|
+
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13065
|
+
}
|
|
13066
|
+
if (config2.legendLabels) {
|
|
13067
|
+
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13068
|
+
}
|
|
13069
|
+
if (config2.legendDirection) {
|
|
13070
|
+
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13071
|
+
}
|
|
13072
|
+
if (config2.height) {
|
|
13073
|
+
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13074
|
+
}
|
|
13075
|
+
if (config2.pieArcColors) {
|
|
13076
|
+
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13077
|
+
}
|
|
13078
|
+
if (config2.yAxisTickCount) {
|
|
13079
|
+
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13080
|
+
}
|
|
13081
|
+
if (config2.xAxisTickCount) {
|
|
13082
|
+
StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13083
|
+
}
|
|
13084
|
+
if (config2.xAxisValue) {
|
|
13085
|
+
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13086
|
+
}
|
|
13087
|
+
if (config2.xAxisType) {
|
|
13088
|
+
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13089
|
+
}
|
|
13090
|
+
if (config2.bottomLabel) {
|
|
13091
|
+
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13092
|
+
}
|
|
13093
|
+
if (config2.leftLabel) {
|
|
13094
|
+
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13095
|
+
}
|
|
13096
|
+
if (config2.rightLabel) {
|
|
13097
|
+
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13098
|
+
}
|
|
13099
|
+
if (config2.disableLeftLabel) {
|
|
13100
|
+
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13101
|
+
}
|
|
13102
|
+
if (config2.growthRateKey) {
|
|
13103
|
+
StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
|
|
13104
|
+
}
|
|
13105
|
+
if (config2.tooltipUnit) {
|
|
13106
|
+
StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
|
|
13107
|
+
}
|
|
13108
|
+
if (config2.leftMargin) {
|
|
13109
|
+
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13110
|
+
left: config2.leftMargin
|
|
13111
|
+
};
|
|
13112
|
+
}
|
|
13113
|
+
return StackBarLineGraph;
|
|
13114
|
+
};
|
|
13115
|
+
const cameraUiSchema = {
|
|
13116
|
+
type: "Control",
|
|
13117
|
+
scope: "#/properties/camera",
|
|
13118
|
+
options: {
|
|
13119
|
+
widget: "Camera"
|
|
13120
|
+
},
|
|
13121
|
+
config: {
|
|
13122
|
+
main: {
|
|
13123
|
+
label: "Upload Photo",
|
|
13124
|
+
multiUplaod: false,
|
|
13125
|
+
onUpload: "onFileUpload"
|
|
13126
|
+
}
|
|
13127
|
+
}
|
|
13128
|
+
};
|
|
13129
|
+
const buildCamera = (config2, componentScope2) => {
|
|
13130
|
+
const camera = _.cloneDeep(cameraUiSchema);
|
|
13131
|
+
camera.scope = componentScope2;
|
|
13132
|
+
if (config2.iconName) {
|
|
13133
|
+
camera.config.main.startIcon = config2.iconName;
|
|
13134
|
+
}
|
|
13135
|
+
if (config2.layout) {
|
|
13136
|
+
camera.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13137
|
+
}
|
|
13138
|
+
if (config2.tooltipMessage) {
|
|
13139
|
+
camera.config.main.tooltipMessage = config2.tooltipMessage;
|
|
13140
|
+
}
|
|
13141
|
+
camera.config.main.multiUplaod = config2.multiUplaod === "YES" ? true : false;
|
|
13142
|
+
if (config2.style) {
|
|
13143
|
+
camera.config.style = JSON.parse(config2.style);
|
|
13144
|
+
}
|
|
13145
|
+
if (config2.size) {
|
|
13146
|
+
camera.config.main.size = config2.size;
|
|
13147
|
+
}
|
|
13148
|
+
if (config2.variant) {
|
|
13149
|
+
camera.config.main.variant = config2.variant;
|
|
13150
|
+
}
|
|
13151
|
+
if (config2.color) {
|
|
13152
|
+
camera.config.main.color = config2.color;
|
|
13153
|
+
}
|
|
13154
|
+
if (config2.label) {
|
|
13155
|
+
camera.config.main.label = config2.label;
|
|
13156
|
+
}
|
|
13157
|
+
return camera;
|
|
13158
|
+
};
|
|
13159
|
+
var ButtonGroup = {
|
|
13160
|
+
type: "Control",
|
|
13161
|
+
scope: "#/properties/buttonGroup",
|
|
13162
|
+
options: {
|
|
13163
|
+
widget: "ButtonGroup"
|
|
13164
|
+
},
|
|
13165
|
+
config: {
|
|
13166
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
13167
|
+
main: {
|
|
13168
|
+
variant: "contained",
|
|
13169
|
+
styleDefault: false,
|
|
13170
|
+
size: "small"
|
|
13171
|
+
},
|
|
13172
|
+
style: {}
|
|
13173
|
+
}
|
|
13174
|
+
};
|
|
13175
|
+
const buildButtonGroup = (config2, componentScope2) => {
|
|
13176
|
+
const buttonGroup = _.cloneDeep(ButtonGroup);
|
|
13177
|
+
if (config2.layout) {
|
|
13178
|
+
buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13179
|
+
}
|
|
13180
|
+
buttonGroup.scope = componentScope2;
|
|
13181
|
+
if (config2.multiSelect) {
|
|
13182
|
+
buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
|
|
13183
|
+
}
|
|
13184
|
+
if (config2.style) {
|
|
13185
|
+
buttonGroup.config.style = JSON.parse(config2.style);
|
|
13186
|
+
}
|
|
13187
|
+
if (config2.size) {
|
|
13188
|
+
buttonGroup.config.main.size = config2.size;
|
|
13189
|
+
}
|
|
13190
|
+
if (config2.color) {
|
|
13191
|
+
buttonGroup.config.main.color = config2.color;
|
|
13192
|
+
}
|
|
13193
|
+
return buttonGroup;
|
|
13194
|
+
};
|
|
13195
|
+
const PopOver = {
|
|
13196
|
+
type: "Control",
|
|
13197
|
+
scope: "#/properties/text",
|
|
13198
|
+
options: {
|
|
13199
|
+
widget: "Popover"
|
|
13200
|
+
},
|
|
13201
|
+
config: {
|
|
13202
|
+
layout: {
|
|
13203
|
+
xs: 12,
|
|
13204
|
+
sm: 12,
|
|
13205
|
+
md: 12,
|
|
13206
|
+
lg: 12
|
|
13207
|
+
},
|
|
13208
|
+
main: {
|
|
13209
|
+
label: "PopOver"
|
|
13210
|
+
},
|
|
13211
|
+
style: {}
|
|
13212
|
+
}
|
|
13213
|
+
};
|
|
13214
|
+
const buildPopOver = (config2, componentScope2) => {
|
|
13215
|
+
const popOver = _.cloneDeep(PopOver);
|
|
13216
|
+
popOver.scope = componentScope2;
|
|
13217
|
+
popOver.config.main.positionVertical = config2.positionVertical;
|
|
13218
|
+
popOver.config.main.positionHorizontal = config2.positionHorizontal;
|
|
13219
|
+
popOver.config.main.contentVertical = config2.contentVertical;
|
|
13220
|
+
popOver.config.main.contentHorizontal = config2.contentHorizontal;
|
|
13221
|
+
popOver.config.main.width = config2.width;
|
|
13222
|
+
popOver.config.main.gap = config2.gap;
|
|
13223
|
+
if (config2.layout) {
|
|
13224
|
+
popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13225
|
+
}
|
|
13226
|
+
if (config2.style) {
|
|
13227
|
+
popOver.config.style = JSON.parse(config2.style);
|
|
13228
|
+
}
|
|
13229
|
+
return popOver;
|
|
13230
|
+
};
|
|
13231
|
+
const OTPSchema = {
|
|
13232
|
+
type: "Control",
|
|
13233
|
+
scope: "#/properties/OTPInput",
|
|
13234
|
+
options: {
|
|
13235
|
+
widget: "OTPInput"
|
|
13236
|
+
},
|
|
13237
|
+
config: {
|
|
13238
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
13239
|
+
main: {
|
|
13240
|
+
seperator: "",
|
|
13241
|
+
length: 4,
|
|
13242
|
+
type: "number",
|
|
13243
|
+
masking: true
|
|
13244
|
+
}
|
|
13245
|
+
}
|
|
13246
|
+
};
|
|
13247
|
+
const buildOTP_Input = (config2, componentScope2) => {
|
|
13248
|
+
const OTP = _.cloneDeep(OTPSchema);
|
|
13249
|
+
OTP.scope = componentScope2;
|
|
13250
|
+
if (config2.layout) {
|
|
13251
|
+
OTP.config.layout = createLayoutFormat(config2.layout);
|
|
13252
|
+
}
|
|
13253
|
+
if (config2.style) {
|
|
13254
|
+
OTP.config.style = JSON.parse(config2.style);
|
|
13255
|
+
}
|
|
13256
|
+
if (config2.errorMessage) {
|
|
13257
|
+
OTP.config.main.errorMessage = config2.errorMessage;
|
|
13258
|
+
}
|
|
13259
|
+
if (config2.toolTip) {
|
|
13260
|
+
OTP.config.main.toolTip = config2.toolTip;
|
|
13261
|
+
}
|
|
13262
|
+
OTP.config.main.masking = config2.masking === "YES" ? true : false;
|
|
13263
|
+
OTP.config.main.type = config2.OTP_Format;
|
|
13264
|
+
OTP.config.main.seperator = config2.seperator;
|
|
13265
|
+
OTP.config.main.length = +config2.length;
|
|
13266
|
+
return OTP;
|
|
13267
|
+
};
|
|
13268
|
+
var pdfViewer = {
|
|
13269
|
+
type: "Control",
|
|
13270
|
+
scope: "#/properties/pdfviewer",
|
|
13271
|
+
options: {
|
|
13272
|
+
widget: "PdfViewer"
|
|
13273
|
+
},
|
|
13274
|
+
config: {
|
|
13275
|
+
layout: {
|
|
13276
|
+
xs: 12,
|
|
13277
|
+
sm: 12,
|
|
13278
|
+
md: 12,
|
|
13279
|
+
lg: 12
|
|
13280
|
+
},
|
|
13281
|
+
main: {
|
|
13282
|
+
title: "PDF"
|
|
13283
|
+
}
|
|
13284
|
+
}
|
|
13285
|
+
};
|
|
13286
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13287
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13288
|
+
PdfViewer.scope = componentScope2;
|
|
13289
|
+
PdfViewer.config.main.scale = config2.scale;
|
|
13290
|
+
if (config2.layout) {
|
|
13291
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13292
|
+
}
|
|
13293
|
+
if (config2.style) {
|
|
13294
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13295
|
+
}
|
|
13296
|
+
return PdfViewer;
|
|
13297
|
+
};
|
|
13298
|
+
const HierarchyChart = {
|
|
13299
|
+
type: "Control",
|
|
13300
|
+
scope: "#/properties/HierarchyChart",
|
|
13301
|
+
options: {
|
|
13302
|
+
widget: "HierarchyChart"
|
|
13303
|
+
},
|
|
13304
|
+
config: {
|
|
13305
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
13306
|
+
main: {},
|
|
13307
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
13308
|
+
}
|
|
13309
|
+
};
|
|
13310
|
+
const buildHierarchyChart = (config2, componentScope2, store2) => {
|
|
13311
|
+
const hierarchyChart = _.cloneDeep(HierarchyChart);
|
|
13312
|
+
hierarchyChart.scope = componentScope2;
|
|
13313
|
+
if (config2.style) {
|
|
13314
|
+
hierarchyChart.config.style = JSON.parse(config2.style);
|
|
13315
|
+
}
|
|
13316
|
+
if (config2.layout) {
|
|
13317
|
+
hierarchyChart.config.layout = createLayoutFormat(config2.layout);
|
|
13318
|
+
}
|
|
13319
|
+
if (config2.linkType) {
|
|
13320
|
+
hierarchyChart.config.main.linkType = config2.linkType;
|
|
13321
|
+
}
|
|
13322
|
+
if (config2.stepPercent) {
|
|
13323
|
+
hierarchyChart.config.main.stepPercent = config2.stepPercent;
|
|
13324
|
+
}
|
|
13325
|
+
if (config2.nodeWidth) {
|
|
13326
|
+
hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
|
|
13327
|
+
}
|
|
13328
|
+
if (config2.nodeHeight) {
|
|
13329
|
+
hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
|
|
13330
|
+
}
|
|
13331
|
+
if (config2.chartHeight) {
|
|
13332
|
+
hierarchyChart.config.main.chartHeight = config2.chartHeight;
|
|
13333
|
+
}
|
|
13334
|
+
if (config2.lazyLoading) {
|
|
13335
|
+
hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
13336
|
+
}
|
|
13337
|
+
return hierarchyChart;
|
|
13338
|
+
};
|
|
12341
13339
|
let schema = {
|
|
12342
13340
|
type: "object",
|
|
12343
13341
|
properties: {},
|
|
12344
13342
|
required: []
|
|
12345
13343
|
};
|
|
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] = {
|
|
13344
|
+
function buildSchemaFromConfig(config2, parentSchema) {
|
|
13345
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
13346
|
+
if (config2.elements) {
|
|
13347
|
+
if (config2.type === "Array") {
|
|
13348
|
+
(_a = parentSchema.properties) != null ? _a : parentSchema.properties = {};
|
|
13349
|
+
(_d = (_b = parentSchema.properties)[_c = config2.name]) != null ? _d : _b[_c] = {
|
|
13350
|
+
type: "array",
|
|
12378
13351
|
items: {
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
13352
|
+
type: "object",
|
|
13353
|
+
properties: {},
|
|
13354
|
+
required: []
|
|
12382
13355
|
}
|
|
12383
13356
|
};
|
|
13357
|
+
const arrayItemSchema = parentSchema.properties[config2.name].items;
|
|
13358
|
+
(_e = config2.elements) == null ? void 0 : _e.forEach(
|
|
13359
|
+
(child) => buildSchemaFromConfig(child, arrayItemSchema)
|
|
13360
|
+
);
|
|
13361
|
+
return;
|
|
13362
|
+
} else {
|
|
13363
|
+
(_f = config2.elements) == null ? void 0 : _f.forEach(
|
|
13364
|
+
(child) => buildSchemaFromConfig(child, parentSchema)
|
|
13365
|
+
);
|
|
13366
|
+
return;
|
|
12384
13367
|
}
|
|
12385
13368
|
}
|
|
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
|
-
});
|
|
13369
|
+
(_g = parentSchema.properties) != null ? _g : parentSchema.properties = {};
|
|
13370
|
+
(_j = (_h = parentSchema.properties)[_i = config2.name]) != null ? _j : _h[_i] = {};
|
|
13371
|
+
const fieldSchema = parentSchema.properties[config2.name];
|
|
13372
|
+
(_k = config2.validation) == null ? void 0 : _k.forEach((v) => {
|
|
13373
|
+
var _a2;
|
|
13374
|
+
if (v.validationType === "required") {
|
|
13375
|
+
(_a2 = parentSchema.required) != null ? _a2 : parentSchema.required = [];
|
|
13376
|
+
parentSchema.required.push(config2.name);
|
|
13377
|
+
} else if (v.validationType === "readOnly") {
|
|
13378
|
+
fieldSchema.type = "string";
|
|
13379
|
+
fieldSchema.disabled = true;
|
|
12447
13380
|
} else {
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
});
|
|
13381
|
+
fieldSchema.type = "string";
|
|
13382
|
+
fieldSchema[v.validationType] = isNaN(v.validationValue) ? v.validationValue : Number(v.validationValue);
|
|
12451
13383
|
}
|
|
13384
|
+
});
|
|
13385
|
+
if (config2.type === "Select" && ((_l = config2.value) == null ? void 0 : _l.length)) {
|
|
13386
|
+
fieldSchema.oneOf = config2.value.map((v) => ({
|
|
13387
|
+
const: v.value,
|
|
13388
|
+
title: v.label
|
|
13389
|
+
}));
|
|
13390
|
+
}
|
|
13391
|
+
if (config2.type === "MultipleSelect" && ((_m = config2.value) == null ? void 0 : _m.length)) {
|
|
13392
|
+
fieldSchema.type = "array";
|
|
13393
|
+
fieldSchema.items = {
|
|
13394
|
+
oneOf: config2.value.map((v) => ({
|
|
13395
|
+
const: v.value,
|
|
13396
|
+
title: v.label
|
|
13397
|
+
}))
|
|
13398
|
+
};
|
|
12452
13399
|
}
|
|
13400
|
+
}
|
|
13401
|
+
const buildSchema = (config2) => {
|
|
13402
|
+
buildSchemaFromConfig(config2, schema);
|
|
12453
13403
|
return schema;
|
|
12454
13404
|
};
|
|
12455
13405
|
const buildUiSchema = (config2, store2) => {
|
|
12456
13406
|
let elements = {};
|
|
12457
13407
|
const componentScope2 = `#/properties/${config2.name}`;
|
|
12458
13408
|
switch (config2.type) {
|
|
13409
|
+
case "OTP_Input":
|
|
13410
|
+
elements = buildOTP_Input(config2, componentScope2);
|
|
13411
|
+
break;
|
|
12459
13412
|
case "TreeMap":
|
|
12460
13413
|
elements = buildTreeMap(config2, componentScope2);
|
|
12461
13414
|
break;
|
|
@@ -12474,6 +13427,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12474
13427
|
case "PopUp":
|
|
12475
13428
|
elements = buildPopUp(config2, componentScope2);
|
|
12476
13429
|
break;
|
|
13430
|
+
case "PopOver":
|
|
13431
|
+
elements = buildPopOver(config2, componentScope2);
|
|
13432
|
+
break;
|
|
12477
13433
|
case "FileInput":
|
|
12478
13434
|
elements = buildFileInput(config2, componentScope2);
|
|
12479
13435
|
break;
|
|
@@ -12492,6 +13448,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12492
13448
|
case "WrapperSection":
|
|
12493
13449
|
elements = buildWrapperSection(config2, componentScope2);
|
|
12494
13450
|
break;
|
|
13451
|
+
case "HorizontalLayout":
|
|
13452
|
+
elements = buildHorizontalLayout(config2, componentScope2);
|
|
13453
|
+
break;
|
|
12495
13454
|
case "Text":
|
|
12496
13455
|
elements = buildTextField(config2, componentScope2);
|
|
12497
13456
|
break;
|
|
@@ -12510,6 +13469,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12510
13469
|
case "Button":
|
|
12511
13470
|
elements = buildButton(config2, componentScope2);
|
|
12512
13471
|
break;
|
|
13472
|
+
case "ButtonGroup":
|
|
13473
|
+
elements = buildButtonGroup(config2, componentScope2);
|
|
13474
|
+
break;
|
|
12513
13475
|
case "Table":
|
|
12514
13476
|
elements = buildTable(config2, componentScope2);
|
|
12515
13477
|
break;
|
|
@@ -12529,11 +13491,17 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12529
13491
|
elements = buildDownloadFile(config2, componentScope2);
|
|
12530
13492
|
break;
|
|
12531
13493
|
case "EmptyBox":
|
|
12532
|
-
elements = buildEmptyBox(config2);
|
|
13494
|
+
elements = buildEmptyBox(config2, componentScope2);
|
|
12533
13495
|
break;
|
|
12534
13496
|
case "card":
|
|
12535
13497
|
elements = buildCard(config2, componentScope2, store2);
|
|
12536
13498
|
break;
|
|
13499
|
+
case "MetricCard":
|
|
13500
|
+
elements = buildMetricCard(config2, componentScope2);
|
|
13501
|
+
break;
|
|
13502
|
+
case "HierarchyChart":
|
|
13503
|
+
elements = buildHierarchyChart(config2, componentScope2);
|
|
13504
|
+
break;
|
|
12537
13505
|
case "Graph":
|
|
12538
13506
|
switch (config2.graphType) {
|
|
12539
13507
|
case "BarGraph":
|
|
@@ -12550,6 +13518,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12550
13518
|
case "HorizontalStackBarGraph":
|
|
12551
13519
|
elements = buildHorizontalBarGraph(config2, componentScope2);
|
|
12552
13520
|
break;
|
|
13521
|
+
case "AreaGraph":
|
|
13522
|
+
elements = buildAreaGraph(config2, componentScope2);
|
|
13523
|
+
break;
|
|
13524
|
+
case "StackBarLineGraph":
|
|
13525
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13526
|
+
break;
|
|
12553
13527
|
default:
|
|
12554
13528
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
12555
13529
|
break;
|
|
@@ -12592,6 +13566,15 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12592
13566
|
case "Thought":
|
|
12593
13567
|
elements = buildThoughtOfTheDay(config2, componentScope2);
|
|
12594
13568
|
break;
|
|
13569
|
+
case "Image":
|
|
13570
|
+
elements = buildImage(config2, componentScope2);
|
|
13571
|
+
break;
|
|
13572
|
+
case "Camera":
|
|
13573
|
+
elements = buildCamera(config2, componentScope2);
|
|
13574
|
+
break;
|
|
13575
|
+
case "PdfViewer":
|
|
13576
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13577
|
+
break;
|
|
12595
13578
|
default:
|
|
12596
13579
|
schema = {
|
|
12597
13580
|
type: "object",
|
|
@@ -12602,7 +13585,17 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12602
13585
|
}
|
|
12603
13586
|
if (config2 == null ? void 0 : config2.elements) {
|
|
12604
13587
|
if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
|
|
12605
|
-
|
|
13588
|
+
const rowElements = [];
|
|
13589
|
+
config2.elements.map((cellElem) => {
|
|
13590
|
+
const commonProperties = {
|
|
13591
|
+
accessorKey: cellElem.name,
|
|
13592
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
13593
|
+
header: cellElem.label || cellElem.name,
|
|
13594
|
+
columnKey: cellElem.columnKey
|
|
13595
|
+
};
|
|
13596
|
+
rowElements.push({ ...commonProperties });
|
|
13597
|
+
});
|
|
13598
|
+
elements.elements = rowElements;
|
|
12606
13599
|
} else if (config2.type == "ColumnGroup") {
|
|
12607
13600
|
const sizeMap = {};
|
|
12608
13601
|
if (config2.sizeHolder) {
|
|
@@ -12611,13 +13604,27 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12611
13604
|
});
|
|
12612
13605
|
}
|
|
12613
13606
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12614
|
-
|
|
13607
|
+
const commonProperties = {
|
|
12615
13608
|
accessorKey: cellElem.name,
|
|
13609
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12616
13610
|
header: cellElem.label || cellElem.name,
|
|
12617
13611
|
size: sizeMap[cellElem.name] || 180,
|
|
12618
|
-
|
|
12619
|
-
|
|
13612
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
13613
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
13614
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
13615
|
+
columnKey: cellElem.columnKey,
|
|
13616
|
+
dateFormat: cellElem.dateFormat
|
|
12620
13617
|
};
|
|
13618
|
+
if (cellElem.type) {
|
|
13619
|
+
const tableElem = {
|
|
13620
|
+
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
13621
|
+
...commonProperties,
|
|
13622
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
13623
|
+
};
|
|
13624
|
+
return tableElem;
|
|
13625
|
+
} else {
|
|
13626
|
+
return { ...commonProperties };
|
|
13627
|
+
}
|
|
12621
13628
|
});
|
|
12622
13629
|
} else if (config2.type == "Table") {
|
|
12623
13630
|
const sizeMap = {};
|
|
@@ -12632,13 +13639,14 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12632
13639
|
config2.elements.filter((cellElem, elemInd) => {
|
|
12633
13640
|
const commonProperties = {
|
|
12634
13641
|
accessorKey: cellElem.name,
|
|
12635
|
-
type: cellElem.columnFormat,
|
|
13642
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12636
13643
|
header: cellElem.label || cellElem.name,
|
|
12637
13644
|
size: sizeMap[cellElem.name] || 180,
|
|
12638
13645
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12639
13646
|
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12640
13647
|
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12641
|
-
columnKey: cellElem.columnKey
|
|
13648
|
+
columnKey: cellElem.columnKey,
|
|
13649
|
+
dateFormat: cellElem.dateFormat
|
|
12642
13650
|
};
|
|
12643
13651
|
if (cellElem.type) {
|
|
12644
13652
|
if (cellElem.elementType == "action") {
|
|
@@ -12653,8 +13661,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12653
13661
|
}
|
|
12654
13662
|
const tableElem = {
|
|
12655
13663
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12656
|
-
|
|
12657
|
-
...
|
|
13664
|
+
...commonProperties,
|
|
13665
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12658
13666
|
};
|
|
12659
13667
|
rowElements.push(tableElem);
|
|
12660
13668
|
} else {
|
|
@@ -12670,7 +13678,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12670
13678
|
});
|
|
12671
13679
|
}
|
|
12672
13680
|
}
|
|
13681
|
+
if (config2.tabLabelElements) {
|
|
13682
|
+
elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
|
|
13683
|
+
return buildUiSchema(e, store2);
|
|
13684
|
+
});
|
|
13685
|
+
}
|
|
12673
13686
|
return elements;
|
|
12674
13687
|
};
|
|
12675
|
-
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|
|
13688
|
+
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|
|
12676
13689
|
//# sourceMappingURL=impaktapps-ui-builder.es.js.map
|