impaktapps-ui-builder 1.0.621 → 1.0.1581
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 +1072 -820
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +13 -13
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.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/buildUiSchema.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +3 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -1
- 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/horizontalLayout.d.ts +13 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +14 -65
- 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 +5 -4
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +46 -0
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +5 -3
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +15 -0
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +35 -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 +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +4 -2
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +21 -8
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +107 -124
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +3 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +85 -9
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -169
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +75 -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/horizontalLayout.ts +11 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +29 -54
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +124 -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 +77 -106
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +3 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
- package/src/impaktapps-ui-builder/builder/services/component.ts +58 -12
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +14 -14
- package/src/impaktapps-ui-builder/lib/index.ts +10 -9
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +33 -18
- package/src/impaktapps-ui-builder/runtime/services/events.ts +9 -11
- package/src/impaktapps-ui-builder/runtime/services/service.ts +89 -158
|
@@ -96,11 +96,25 @@ const PageMasterUiSchema = (theme) => {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
+
{
|
|
100
|
+
type: "Control",
|
|
101
|
+
scope: "#/properties/hasBackIcon",
|
|
102
|
+
options: {
|
|
103
|
+
widget: "RadioInputField"
|
|
104
|
+
},
|
|
105
|
+
config: {
|
|
106
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
107
|
+
main: {
|
|
108
|
+
label: "Back Icon",
|
|
109
|
+
options: [{ label: "Yes", const: "YES" }, { label: "No", const: "NO" }]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
99
113
|
{
|
|
100
114
|
type: "Control",
|
|
101
115
|
scope: "#/properties/EmptyBox",
|
|
102
116
|
config: {
|
|
103
|
-
layout: { xs: 0, sm:
|
|
117
|
+
layout: { xs: 0, sm: 6, md: 0, lg: 3 }
|
|
104
118
|
},
|
|
105
119
|
options: {
|
|
106
120
|
widget: "EmptyBox"
|
|
@@ -204,91 +218,70 @@ const PageMasterUiSchema = (theme) => {
|
|
|
204
218
|
disableAction: true,
|
|
205
219
|
disableSelection: true,
|
|
206
220
|
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
221
|
},
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
field: "Reject_Records",
|
|
225
|
-
size: 150,
|
|
226
|
-
type: "action",
|
|
227
|
-
widget: {
|
|
222
|
+
action: [
|
|
223
|
+
{
|
|
228
224
|
type: "Control",
|
|
229
225
|
scope: "#/properties/RejectButton",
|
|
230
226
|
options: {
|
|
231
|
-
widget: "
|
|
227
|
+
widget: "Button"
|
|
232
228
|
},
|
|
233
229
|
config: {
|
|
234
230
|
main: {
|
|
235
|
-
|
|
231
|
+
size: "small",
|
|
232
|
+
startIcon: "EditIcon",
|
|
236
233
|
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
|
-
}
|
|
234
|
+
tooltipMessage: "Edit This Record",
|
|
235
|
+
name: "Edit"
|
|
244
236
|
}
|
|
245
237
|
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
{
|
|
249
|
-
header: "Delete",
|
|
250
|
-
field: "Reject_Records",
|
|
251
|
-
size: 150,
|
|
252
|
-
type: "action",
|
|
253
|
-
widget: {
|
|
238
|
+
},
|
|
239
|
+
{
|
|
254
240
|
type: "Control",
|
|
255
241
|
scope: "#/properties/RejectButton",
|
|
256
242
|
options: {
|
|
257
|
-
widget: "
|
|
243
|
+
widget: "Button"
|
|
258
244
|
},
|
|
259
245
|
config: {
|
|
260
246
|
main: {
|
|
261
|
-
|
|
247
|
+
size: "small",
|
|
248
|
+
startIcon: "Bin",
|
|
262
249
|
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
|
-
}
|
|
250
|
+
tooltipMessage: "Reject This Record",
|
|
251
|
+
name: "Delete"
|
|
270
252
|
}
|
|
271
253
|
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
{
|
|
275
|
-
header: "Copy",
|
|
276
|
-
field: "Copy_Component",
|
|
277
|
-
flex: 1,
|
|
278
|
-
widget: {
|
|
254
|
+
},
|
|
255
|
+
{
|
|
279
256
|
type: "Control",
|
|
280
257
|
scope: "#/properties/Copy_Component",
|
|
281
258
|
options: {
|
|
282
|
-
widget: "
|
|
259
|
+
widget: "Button"
|
|
283
260
|
},
|
|
284
261
|
config: {
|
|
285
262
|
main: {
|
|
286
|
-
|
|
263
|
+
size: "small",
|
|
264
|
+
startIcon: "FileCopyIcon",
|
|
287
265
|
onClick: "copyPasteElement",
|
|
288
|
-
styleDefault:
|
|
266
|
+
styleDefault: false,
|
|
267
|
+
name: "Copy"
|
|
289
268
|
}
|
|
290
269
|
}
|
|
291
270
|
}
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
elements: [
|
|
274
|
+
{
|
|
275
|
+
accessorKey: "name",
|
|
276
|
+
header: "Name",
|
|
277
|
+
size: 300,
|
|
278
|
+
type: "string"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
accessorKey: "type",
|
|
282
|
+
header: "Type",
|
|
283
|
+
size: 300,
|
|
284
|
+
type: "string"
|
|
292
285
|
}
|
|
293
286
|
]
|
|
294
287
|
},
|
|
@@ -361,93 +354,70 @@ const PageMasterUiSchema = (theme) => {
|
|
|
361
354
|
disableAction: true,
|
|
362
355
|
disableSelection: true,
|
|
363
356
|
enableDrag: true
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
elements: [
|
|
367
|
-
{
|
|
368
|
-
accessorKey: "eventType",
|
|
369
|
-
header: "Event's Type",
|
|
370
|
-
size: 300,
|
|
371
|
-
type: "string"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
accessorKey: "Handler",
|
|
375
|
-
header: "Handler",
|
|
376
|
-
size: 200,
|
|
377
|
-
type: "string"
|
|
378
357
|
},
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
header: "Edit",
|
|
382
|
-
type: "action",
|
|
383
|
-
size: 150,
|
|
384
|
-
widget: {
|
|
358
|
+
action: [
|
|
359
|
+
{
|
|
385
360
|
type: "Control",
|
|
386
361
|
scope: "#/properties/Edit_Records",
|
|
387
362
|
options: {
|
|
388
|
-
widget: "
|
|
363
|
+
widget: "Button"
|
|
389
364
|
},
|
|
390
365
|
config: {
|
|
391
366
|
main: {
|
|
392
367
|
size: "small",
|
|
393
|
-
|
|
368
|
+
startIcon: "EditIcon",
|
|
394
369
|
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
|
-
}
|
|
370
|
+
onClick: "editEvent",
|
|
371
|
+
name: "Edit"
|
|
402
372
|
}
|
|
403
373
|
}
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
{
|
|
407
|
-
accessorKey: "Reject_Records",
|
|
408
|
-
header: "Delete",
|
|
409
|
-
type: "action",
|
|
410
|
-
size: 150,
|
|
411
|
-
widget: {
|
|
374
|
+
},
|
|
375
|
+
{
|
|
412
376
|
type: "Control",
|
|
413
377
|
scope: "#/properties/RejectButton",
|
|
414
378
|
options: {
|
|
415
|
-
widget: "
|
|
379
|
+
widget: "Button"
|
|
416
380
|
},
|
|
417
381
|
config: {
|
|
418
382
|
main: {
|
|
419
|
-
|
|
383
|
+
size: "small",
|
|
384
|
+
startIcon: "Bin",
|
|
420
385
|
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
|
-
}
|
|
386
|
+
onClick: "deletePopUpEvent",
|
|
387
|
+
name: "Delete"
|
|
428
388
|
}
|
|
429
389
|
}
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
{
|
|
433
|
-
header: "Copy",
|
|
434
|
-
field: "Copy_Event",
|
|
435
|
-
type: "action",
|
|
436
|
-
size: 150,
|
|
437
|
-
widget: {
|
|
390
|
+
},
|
|
391
|
+
{
|
|
438
392
|
type: "Control",
|
|
439
393
|
scope: "#/properties/Copy_Event",
|
|
440
394
|
options: {
|
|
441
|
-
widget: "
|
|
395
|
+
widget: "Button"
|
|
442
396
|
},
|
|
443
397
|
config: {
|
|
444
398
|
main: {
|
|
445
|
-
|
|
399
|
+
size: "small",
|
|
400
|
+
startIcon: "FileCopyIcon",
|
|
446
401
|
onClick: "copyPasteElement",
|
|
447
|
-
styleDefault: true
|
|
402
|
+
styleDefault: true,
|
|
403
|
+
name: "Copy"
|
|
448
404
|
}
|
|
449
405
|
}
|
|
450
406
|
}
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
elements: [
|
|
410
|
+
{
|
|
411
|
+
accessorKey: "eventType",
|
|
412
|
+
header: "Event's Type",
|
|
413
|
+
size: 300,
|
|
414
|
+
type: "string"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
accessorKey: "Handler",
|
|
418
|
+
header: "Handler",
|
|
419
|
+
size: 200,
|
|
420
|
+
type: "string"
|
|
451
421
|
}
|
|
452
422
|
]
|
|
453
423
|
}
|
|
@@ -1518,7 +1488,7 @@ var lodash = { exports: {} };
|
|
|
1518
1488
|
var reIsNative = RegExp2(
|
|
1519
1489
|
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1520
1490
|
);
|
|
1521
|
-
var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol = context.Symbol,
|
|
1491
|
+
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
1492
|
var defineProperty = function() {
|
|
1523
1493
|
try {
|
|
1524
1494
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -2780,7 +2750,7 @@ var lodash = { exports: {} };
|
|
|
2780
2750
|
}
|
|
2781
2751
|
function cloneArrayBuffer(arrayBuffer) {
|
|
2782
2752
|
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
2783
|
-
new
|
|
2753
|
+
new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
|
|
2784
2754
|
return result2;
|
|
2785
2755
|
}
|
|
2786
2756
|
function cloneDataView(dataView, isDeep) {
|
|
@@ -3384,7 +3354,7 @@ var lodash = { exports: {} };
|
|
|
3384
3354
|
object = object.buffer;
|
|
3385
3355
|
other = other.buffer;
|
|
3386
3356
|
case arrayBufferTag:
|
|
3387
|
-
if (object.byteLength != other.byteLength || !equalFunc(new
|
|
3357
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
|
|
3388
3358
|
return false;
|
|
3389
3359
|
}
|
|
3390
3360
|
return true;
|
|
@@ -6255,7 +6225,10 @@ const ComponentSchema = {
|
|
|
6255
6225
|
{ title: "Button", const: "Button" },
|
|
6256
6226
|
{ title: "Data Card", const: "card" },
|
|
6257
6227
|
{ title: "Check Box", const: "CheckBox" },
|
|
6228
|
+
{ title: "Camera", const: "Camera" },
|
|
6229
|
+
{ title: "Column Group", const: "ColumnGroup" },
|
|
6258
6230
|
{ title: "Container", const: "WrapperSection" },
|
|
6231
|
+
{ title: "Tab Container", const: "HorizontalLayout" },
|
|
6259
6232
|
{ title: "Data Grid", const: "DataGrid" },
|
|
6260
6233
|
{ title: "Date", const: "Date" },
|
|
6261
6234
|
{ title: "Time Stamp", const: "DateTime" },
|
|
@@ -6263,6 +6236,7 @@ const ComponentSchema = {
|
|
|
6263
6236
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
6264
6237
|
{ title: "File Handler", const: "FileInput" },
|
|
6265
6238
|
{ title: "Graph", const: "Graph" },
|
|
6239
|
+
{ title: "Image", const: "Image" },
|
|
6266
6240
|
{ title: "Input Slider", const: "InputSlider" },
|
|
6267
6241
|
{ title: "Label", const: "Box" },
|
|
6268
6242
|
{ title: "Leaderboard", const: "LeaderBoard" },
|
|
@@ -6286,7 +6260,6 @@ const ComponentSchema = {
|
|
|
6286
6260
|
{ title: "Timer", const: "Timer" },
|
|
6287
6261
|
{ title: "Upload", const: "UploadFile" },
|
|
6288
6262
|
{ title: "Tree ", const: "TreeMap" },
|
|
6289
|
-
{ title: "Column Group", const: "ColumnGroup" },
|
|
6290
6263
|
{ title: "Thought of the day", const: "Thought" }
|
|
6291
6264
|
]
|
|
6292
6265
|
},
|
|
@@ -6301,7 +6274,37 @@ const ComponentSchema = {
|
|
|
6301
6274
|
oneOf: [
|
|
6302
6275
|
{ title: "Date Column", const: "date" },
|
|
6303
6276
|
{ title: "DateTime Column", const: "dateTime" },
|
|
6304
|
-
{ title: "Amount Column", const: "amount" }
|
|
6277
|
+
{ title: "Amount Column", const: "amount" },
|
|
6278
|
+
{ title: "Center Column", const: "action" }
|
|
6279
|
+
]
|
|
6280
|
+
},
|
|
6281
|
+
dateFormat: {
|
|
6282
|
+
oneOf: [
|
|
6283
|
+
{
|
|
6284
|
+
title: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
6285
|
+
const: "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
6286
|
+
},
|
|
6287
|
+
{
|
|
6288
|
+
title: "YYYY-MM-DDTHH:mm:ssZ",
|
|
6289
|
+
const: "YYYY-MM-DDTHH:mm:ssZ"
|
|
6290
|
+
},
|
|
6291
|
+
{
|
|
6292
|
+
title: "YYYY-MM-DDTHH:mm:ss",
|
|
6293
|
+
const: "YYYY-MM-DDTHH:mm:ss"
|
|
6294
|
+
},
|
|
6295
|
+
{ title: "YYYY-MM-DD", const: "YYYY-MM-DD" },
|
|
6296
|
+
{ title: "DD-MM-YYYY", const: "DD-MM-YYYY" },
|
|
6297
|
+
{ title: "MM/DD/YYYY", const: "MM/DD/YYYY" },
|
|
6298
|
+
{
|
|
6299
|
+
title: "YYYY-MM-DD HH:mm:ss",
|
|
6300
|
+
const: "YYYY-MM-DD HH:mm:ss"
|
|
6301
|
+
},
|
|
6302
|
+
{
|
|
6303
|
+
title: "YYYY-MM-DD HH:mm:ss.SSS",
|
|
6304
|
+
const: "YYYY-MM-DD HH:mm:ss.SSS"
|
|
6305
|
+
},
|
|
6306
|
+
{ title: "Milliseconds", const: "x" },
|
|
6307
|
+
{ title: "Seconds", const: "X" }
|
|
6305
6308
|
]
|
|
6306
6309
|
},
|
|
6307
6310
|
variant: {
|
|
@@ -6326,6 +6329,25 @@ const ComponentSchema = {
|
|
|
6326
6329
|
{ title: "Put", const: "put" }
|
|
6327
6330
|
]
|
|
6328
6331
|
},
|
|
6332
|
+
maxPageSize: {
|
|
6333
|
+
type: "number",
|
|
6334
|
+
oneOf: [
|
|
6335
|
+
{ title: "10", const: 10 },
|
|
6336
|
+
{ title: "20", const: 20 },
|
|
6337
|
+
{ title: "30", const: 30 },
|
|
6338
|
+
{ title: "50", const: 50 },
|
|
6339
|
+
{ title: "100", const: 100 },
|
|
6340
|
+
{ title: "500", const: 500 }
|
|
6341
|
+
]
|
|
6342
|
+
},
|
|
6343
|
+
initialDensity: {
|
|
6344
|
+
type: "string",
|
|
6345
|
+
oneOf: [
|
|
6346
|
+
{ title: "Compact", const: "compact" },
|
|
6347
|
+
{ title: "Comfortable", const: "comfortable" },
|
|
6348
|
+
{ title: "Spacious", const: "spacious" }
|
|
6349
|
+
]
|
|
6350
|
+
},
|
|
6329
6351
|
layout: {
|
|
6330
6352
|
type: "array",
|
|
6331
6353
|
items: {
|
|
@@ -6503,7 +6525,8 @@ const ComponentSchema = {
|
|
|
6503
6525
|
{ const: "required", title: "Required" },
|
|
6504
6526
|
{ const: "minLength", title: "Minimum Length" },
|
|
6505
6527
|
{ const: "maxLength", title: "Maximum Length" },
|
|
6506
|
-
{ const: "pattern", title: "Pattern" }
|
|
6528
|
+
{ const: "pattern", title: "Pattern" },
|
|
6529
|
+
{ const: "readOnly", title: "Read Only" }
|
|
6507
6530
|
]
|
|
6508
6531
|
},
|
|
6509
6532
|
validationValue: {
|
|
@@ -6535,7 +6558,10 @@ const ComponentSchema = {
|
|
|
6535
6558
|
{ title: "Line Graph", const: "LineGraph" },
|
|
6536
6559
|
{ title: "Pie Graph", const: "PieGraph" },
|
|
6537
6560
|
{ title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
|
|
6538
|
-
{
|
|
6561
|
+
{
|
|
6562
|
+
title: "Stack Horizontal Bar Graph",
|
|
6563
|
+
const: "HorizontalStackBarGraph"
|
|
6564
|
+
}
|
|
6539
6565
|
]
|
|
6540
6566
|
},
|
|
6541
6567
|
iconName: {
|
|
@@ -6557,33 +6583,37 @@ const ComponentSchema = {
|
|
|
6557
6583
|
{ title: "Error Icon", const: "ErrorIcon" },
|
|
6558
6584
|
{ title: "Refresh Icon", const: "RefreshIcon" },
|
|
6559
6585
|
{ title: "Download Icon", const: "DownloadIcon" },
|
|
6586
|
+
{ title: "Download All Icon", const: "DownloadAllIcon" },
|
|
6560
6587
|
{ 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
|
-
{
|
|
6588
|
+
{ title: "Alarm Icon", const: "AlarmIcon" },
|
|
6589
|
+
{ title: "Click Icon", const: "ClickIcon" },
|
|
6590
|
+
{ title: "Content Copy Icon", const: "ContentCopyIcon" },
|
|
6591
|
+
{ title: "File Copy Icon", const: "FileCopyIcon" },
|
|
6592
|
+
{ title: "Pause Icon", const: "PauseIcon" },
|
|
6593
|
+
{ title: "Play Icon", const: "PlayIcon" },
|
|
6594
|
+
{ title: "Close Icon", const: "CloseIcon" },
|
|
6595
|
+
{ title: "Replay Icon", const: "ReplayIcon" },
|
|
6596
|
+
{ title: "Delete Icon", const: "DeleteIcon" },
|
|
6597
|
+
{ title: "Drafts Icon", const: "DraftsIcon" },
|
|
6598
|
+
{ title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
|
|
6599
|
+
{ title: "Paste Icon", const: "PasteIcon" },
|
|
6600
|
+
{ title: "Prev Icon", const: "PrevIcon" },
|
|
6601
|
+
{ title: "Verified Icon", const: "VerifiedIcon" },
|
|
6602
|
+
{ title: "Table Add Icon", const: "TableAddIcon" },
|
|
6603
|
+
{ title: "Table Download Icon", const: "TableDownloadIcon" },
|
|
6604
|
+
{ title: "Audit Trail Icon", const: "AuditTrailIcon" },
|
|
6605
|
+
{ title: "View Component", const: "View" },
|
|
6606
|
+
{ title: "Table Edit Icon", const: "TableEditIcon" },
|
|
6607
|
+
{ title: "Maximize Icon", const: "Maximize" },
|
|
6608
|
+
{ title: "Minimize Icon", const: "Minimize" },
|
|
6609
|
+
{ title: "Subtract Icon", const: "Subtract" },
|
|
6610
|
+
{ title: "Bin Icon", const: "Bin" },
|
|
6611
|
+
{ title: "Export Icon", const: "Export" },
|
|
6612
|
+
{ title: "Table Paste Icon", const: "TablePaste" },
|
|
6613
|
+
{ title: "Clone Icon", const: "CloneIcon" },
|
|
6614
|
+
{ title: "Detail Icon", const: "DetailIcon" },
|
|
6615
|
+
{ title: "Report View Icon", const: "ReportViewIcon" },
|
|
6616
|
+
{ title: "Payout", const: "Payout" }
|
|
6587
6617
|
]
|
|
6588
6618
|
},
|
|
6589
6619
|
color: {
|
|
@@ -6701,7 +6731,67 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6701
6731
|
},
|
|
6702
6732
|
{
|
|
6703
6733
|
type: "Control",
|
|
6704
|
-
scope: "#/properties/
|
|
6734
|
+
scope: "#/properties/proc5",
|
|
6735
|
+
config: {
|
|
6736
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6737
|
+
},
|
|
6738
|
+
options: {
|
|
6739
|
+
widget: "EmptyBox"
|
|
6740
|
+
}
|
|
6741
|
+
},
|
|
6742
|
+
{
|
|
6743
|
+
type: "Control",
|
|
6744
|
+
scope: "#/properties/proc6",
|
|
6745
|
+
config: {
|
|
6746
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6747
|
+
},
|
|
6748
|
+
options: {
|
|
6749
|
+
widget: "EmptyBox"
|
|
6750
|
+
}
|
|
6751
|
+
},
|
|
6752
|
+
{
|
|
6753
|
+
type: "Control",
|
|
6754
|
+
scope: "#/properties/proc7",
|
|
6755
|
+
config: {
|
|
6756
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6757
|
+
},
|
|
6758
|
+
options: {
|
|
6759
|
+
widget: "EmptyBox"
|
|
6760
|
+
}
|
|
6761
|
+
},
|
|
6762
|
+
{
|
|
6763
|
+
type: "Control",
|
|
6764
|
+
scope: "#/properties/proc8",
|
|
6765
|
+
config: {
|
|
6766
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6767
|
+
},
|
|
6768
|
+
options: {
|
|
6769
|
+
widget: "EmptyBox"
|
|
6770
|
+
}
|
|
6771
|
+
},
|
|
6772
|
+
{
|
|
6773
|
+
type: "Control",
|
|
6774
|
+
scope: "#/properties/proc9",
|
|
6775
|
+
config: {
|
|
6776
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6777
|
+
},
|
|
6778
|
+
options: {
|
|
6779
|
+
widget: "EmptyBox"
|
|
6780
|
+
}
|
|
6781
|
+
},
|
|
6782
|
+
{
|
|
6783
|
+
type: "Control",
|
|
6784
|
+
scope: "#/properties/proc10",
|
|
6785
|
+
config: {
|
|
6786
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6787
|
+
},
|
|
6788
|
+
options: {
|
|
6789
|
+
widget: "EmptyBox"
|
|
6790
|
+
}
|
|
6791
|
+
},
|
|
6792
|
+
{
|
|
6793
|
+
type: "Control",
|
|
6794
|
+
scope: "#/properties/proc11",
|
|
6705
6795
|
config: {
|
|
6706
6796
|
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6707
6797
|
},
|
|
@@ -7221,6 +7311,76 @@ const CoreSection = {
|
|
|
7221
7311
|
}
|
|
7222
7312
|
}
|
|
7223
7313
|
},
|
|
7314
|
+
{
|
|
7315
|
+
type: "Control",
|
|
7316
|
+
scope: "#/properties/proc5",
|
|
7317
|
+
config: {
|
|
7318
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7319
|
+
},
|
|
7320
|
+
options: {
|
|
7321
|
+
widget: "EmptyBox"
|
|
7322
|
+
}
|
|
7323
|
+
},
|
|
7324
|
+
{
|
|
7325
|
+
type: "Control",
|
|
7326
|
+
scope: "#/properties/proc6",
|
|
7327
|
+
config: {
|
|
7328
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7329
|
+
},
|
|
7330
|
+
options: {
|
|
7331
|
+
widget: "EmptyBox"
|
|
7332
|
+
}
|
|
7333
|
+
},
|
|
7334
|
+
{
|
|
7335
|
+
type: "Control",
|
|
7336
|
+
scope: "#/properties/proc7",
|
|
7337
|
+
config: {
|
|
7338
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7339
|
+
},
|
|
7340
|
+
options: {
|
|
7341
|
+
widget: "EmptyBox"
|
|
7342
|
+
}
|
|
7343
|
+
},
|
|
7344
|
+
{
|
|
7345
|
+
type: "Control",
|
|
7346
|
+
scope: "#/properties/proc8",
|
|
7347
|
+
config: {
|
|
7348
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7349
|
+
},
|
|
7350
|
+
options: {
|
|
7351
|
+
widget: "EmptyBox"
|
|
7352
|
+
}
|
|
7353
|
+
},
|
|
7354
|
+
{
|
|
7355
|
+
type: "Control",
|
|
7356
|
+
scope: "#/properties/proc9",
|
|
7357
|
+
config: {
|
|
7358
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7359
|
+
},
|
|
7360
|
+
options: {
|
|
7361
|
+
widget: "EmptyBox"
|
|
7362
|
+
}
|
|
7363
|
+
},
|
|
7364
|
+
{
|
|
7365
|
+
type: "Control",
|
|
7366
|
+
scope: "#/properties/proc10",
|
|
7367
|
+
config: {
|
|
7368
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7369
|
+
},
|
|
7370
|
+
options: {
|
|
7371
|
+
widget: "EmptyBox"
|
|
7372
|
+
}
|
|
7373
|
+
},
|
|
7374
|
+
{
|
|
7375
|
+
type: "Control",
|
|
7376
|
+
scope: "#/properties/proc11",
|
|
7377
|
+
config: {
|
|
7378
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7379
|
+
},
|
|
7380
|
+
options: {
|
|
7381
|
+
widget: "EmptyBox"
|
|
7382
|
+
}
|
|
7383
|
+
},
|
|
7224
7384
|
{
|
|
7225
7385
|
type: "Control",
|
|
7226
7386
|
scope: "#/properties/proc",
|
|
@@ -7368,95 +7528,71 @@ const EventSection = (theme) => {
|
|
|
7368
7528
|
disableAction: true,
|
|
7369
7529
|
disableSelection: true,
|
|
7370
7530
|
enableDrag: true
|
|
7371
|
-
}
|
|
7372
|
-
},
|
|
7373
|
-
elements: [
|
|
7374
|
-
{
|
|
7375
|
-
accessorKey: "eventType",
|
|
7376
|
-
header: "Event's Type",
|
|
7377
|
-
type: "string",
|
|
7378
|
-
size: 300
|
|
7379
7531
|
},
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
header: "Handler",
|
|
7383
|
-
type: "string",
|
|
7384
|
-
size: 200
|
|
7385
|
-
},
|
|
7386
|
-
{
|
|
7387
|
-
accessorKey: "Edit_Approve_Records",
|
|
7388
|
-
header: "Edit",
|
|
7389
|
-
size: 150,
|
|
7390
|
-
type: "action",
|
|
7391
|
-
widget: {
|
|
7532
|
+
action: [
|
|
7533
|
+
{
|
|
7392
7534
|
type: "Control",
|
|
7393
7535
|
scope: "#/properties/Edit_Records",
|
|
7394
7536
|
options: {
|
|
7395
|
-
widget: "
|
|
7537
|
+
widget: "Button"
|
|
7396
7538
|
},
|
|
7397
7539
|
config: {
|
|
7398
7540
|
main: {
|
|
7399
7541
|
size: "small",
|
|
7400
|
-
|
|
7542
|
+
startIcon: "EditIcon",
|
|
7401
7543
|
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
|
-
}
|
|
7544
|
+
onClick: "eventEditHandler",
|
|
7545
|
+
name: "Edit"
|
|
7409
7546
|
}
|
|
7410
7547
|
}
|
|
7411
|
-
}
|
|
7412
|
-
|
|
7413
|
-
{
|
|
7414
|
-
accessorKey: "Reject_Records",
|
|
7415
|
-
header: "Delete",
|
|
7416
|
-
size: 150,
|
|
7417
|
-
type: "action",
|
|
7418
|
-
widget: {
|
|
7548
|
+
},
|
|
7549
|
+
{
|
|
7419
7550
|
type: "Control",
|
|
7420
7551
|
scope: "#/properties/RejectButton",
|
|
7421
7552
|
accessorKeyName: "Reject_Records",
|
|
7422
7553
|
options: {
|
|
7423
|
-
widget: "
|
|
7554
|
+
widget: "Button"
|
|
7424
7555
|
},
|
|
7425
7556
|
config: {
|
|
7426
7557
|
main: {
|
|
7427
|
-
|
|
7558
|
+
startIcon: "Bin",
|
|
7428
7559
|
tooltipMessage: "Reject This Record",
|
|
7429
|
-
onClick: "deletePopUpEvent"
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
fill: theme.palette.primary.main,
|
|
7433
|
-
"& :hover": {
|
|
7434
|
-
fill: theme.palette.primary.dark
|
|
7435
|
-
}
|
|
7560
|
+
onClick: "deletePopUpEvent",
|
|
7561
|
+
name: "Delete",
|
|
7562
|
+
size: "small"
|
|
7436
7563
|
}
|
|
7437
7564
|
}
|
|
7438
|
-
}
|
|
7439
|
-
|
|
7440
|
-
{
|
|
7441
|
-
header: "Copy",
|
|
7442
|
-
field: "Copy_Event",
|
|
7443
|
-
size: 150,
|
|
7444
|
-
type: "action",
|
|
7445
|
-
widget: {
|
|
7565
|
+
},
|
|
7566
|
+
{
|
|
7446
7567
|
type: "Control",
|
|
7447
7568
|
scope: "#/properties/Copy_Event",
|
|
7448
7569
|
options: {
|
|
7449
|
-
widget: "
|
|
7570
|
+
widget: "Button"
|
|
7450
7571
|
},
|
|
7451
7572
|
config: {
|
|
7452
7573
|
main: {
|
|
7453
|
-
|
|
7574
|
+
startIcon: "FileCopyIcon",
|
|
7454
7575
|
onClick: "copyPasteElement",
|
|
7455
7576
|
tooltipMessage: "Reject This Record",
|
|
7456
|
-
styleDefault:
|
|
7577
|
+
styleDefault: false,
|
|
7578
|
+
name: "Copy"
|
|
7457
7579
|
}
|
|
7458
7580
|
}
|
|
7459
7581
|
}
|
|
7582
|
+
]
|
|
7583
|
+
},
|
|
7584
|
+
elements: [
|
|
7585
|
+
{
|
|
7586
|
+
accessorKey: "eventType",
|
|
7587
|
+
header: "Event's Type",
|
|
7588
|
+
type: "string",
|
|
7589
|
+
size: 300
|
|
7590
|
+
},
|
|
7591
|
+
{
|
|
7592
|
+
accessorKey: "Handler",
|
|
7593
|
+
header: "Handler",
|
|
7594
|
+
type: "string",
|
|
7595
|
+
size: 200
|
|
7460
7596
|
}
|
|
7461
7597
|
]
|
|
7462
7598
|
}
|
|
@@ -7708,9 +7844,11 @@ const buildPropertiesSection = function(type) {
|
|
|
7708
7844
|
case "Array":
|
|
7709
7845
|
uiSchema.elements = [
|
|
7710
7846
|
getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
|
|
7847
|
+
getRadioInputField("disableAddButton", "Disable Add Button", ["YES", "NO"]),
|
|
7848
|
+
getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
|
|
7849
|
+
getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
|
|
7711
7850
|
getInputField("childElementLabel", "Child Element Label"),
|
|
7712
|
-
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
7713
|
-
emptyBox$1("empty2", { xs: 0, sm: 0, md: 4, lg: 3 })
|
|
7851
|
+
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
7714
7852
|
];
|
|
7715
7853
|
break;
|
|
7716
7854
|
case "TreeMap":
|
|
@@ -7806,7 +7944,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7806
7944
|
getInputField("nameKey", "Key for Name"),
|
|
7807
7945
|
getInputField("imageKey", "Key for Image"),
|
|
7808
7946
|
getInputField("scoreKey", "Key for comparing parameter"),
|
|
7809
|
-
|
|
7947
|
+
getRadioInputField("isScoreAmount", "Is Score an Amount Type", ["YES", "No"]),
|
|
7948
|
+
emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 })
|
|
7810
7949
|
];
|
|
7811
7950
|
break;
|
|
7812
7951
|
case "CardSlider":
|
|
@@ -7822,8 +7961,9 @@ const buildPropertiesSection = function(type) {
|
|
|
7822
7961
|
getInputField("bottomLabel_1", "First BottomLabel"),
|
|
7823
7962
|
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
7824
7963
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
7825
|
-
|
|
7826
|
-
|
|
7964
|
+
getInputField("size", "Size"),
|
|
7965
|
+
getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
|
|
7966
|
+
getArrayControl("pieArcColors", "color", "Color")
|
|
7827
7967
|
];
|
|
7828
7968
|
break;
|
|
7829
7969
|
case "card":
|
|
@@ -7845,15 +7985,23 @@ const buildPropertiesSection = function(type) {
|
|
|
7845
7985
|
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7846
7986
|
];
|
|
7847
7987
|
break;
|
|
7988
|
+
case "Box":
|
|
7989
|
+
uiSchema.elements = [
|
|
7990
|
+
getSelectField("iconName", "Icon Name"),
|
|
7991
|
+
emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
|
|
7992
|
+
];
|
|
7993
|
+
break;
|
|
7848
7994
|
case "Graph":
|
|
7849
7995
|
uiSchema.elements = [
|
|
7850
7996
|
getInputField("height", "Height"),
|
|
7851
7997
|
getInputField("heading", "Heading"),
|
|
7852
7998
|
getSelectField("graphType", "Graph Type"),
|
|
7853
7999
|
getInputField("leftLabel", "Left Label"),
|
|
8000
|
+
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
7854
8001
|
getInputField("bottomLabel", "Bottom Label"),
|
|
7855
8002
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
7856
8003
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
8004
|
+
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
7857
8005
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
7858
8006
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7859
8007
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
@@ -7869,6 +8017,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7869
8017
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
7870
8018
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
7871
8019
|
getInputField("rowSpacing", "Row Spacing"),
|
|
8020
|
+
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
7872
8021
|
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
7873
8022
|
emptyBox$1("WrapperSectionEmpty2")
|
|
7874
8023
|
];
|
|
@@ -7898,13 +8047,16 @@ const buildPropertiesSection = function(type) {
|
|
|
7898
8047
|
getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
|
|
7899
8048
|
getInputField("selectKey", "Selection Key"),
|
|
7900
8049
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
8050
|
+
getSelectField("maxPageSize", "Max Page Size"),
|
|
8051
|
+
getSelectField("initialDensity", "Initial Toggle Density"),
|
|
7901
8052
|
buildWrapper("Tree Table Properties", [
|
|
7902
8053
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
7903
8054
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
7904
8055
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
7905
8056
|
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
7906
8057
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
7907
|
-
|
|
8058
|
+
getInputField("defaultColumnSize", "Default Column Size"),
|
|
8059
|
+
,
|
|
7908
8060
|
emptyBox$1("LazyLoadingTableEmpty3")
|
|
7909
8061
|
]),
|
|
7910
8062
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
@@ -7914,6 +8066,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7914
8066
|
break;
|
|
7915
8067
|
case "Radio":
|
|
7916
8068
|
uiSchema.elements = [
|
|
8069
|
+
getInputField("errorMessage", "Error Message"),
|
|
8070
|
+
emptyBox$1("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
7917
8071
|
getArrayControl("sectionLabels", "label", "Options Of Radio")
|
|
7918
8072
|
];
|
|
7919
8073
|
break;
|
|
@@ -7933,11 +8087,48 @@ const buildPropertiesSection = function(type) {
|
|
|
7933
8087
|
emptyBox$1("MultipleSelectEmpty2")
|
|
7934
8088
|
];
|
|
7935
8089
|
break;
|
|
8090
|
+
case "Date":
|
|
8091
|
+
uiSchema.elements = [
|
|
8092
|
+
getSelectField("variant", "Variant"),
|
|
8093
|
+
emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8094
|
+
];
|
|
8095
|
+
break;
|
|
8096
|
+
case "DateTime":
|
|
8097
|
+
uiSchema.elements = [
|
|
8098
|
+
getSelectField("variant", "Variant"),
|
|
8099
|
+
emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8100
|
+
];
|
|
8101
|
+
break;
|
|
7936
8102
|
case "Thought":
|
|
7937
8103
|
uiSchema.elements = [
|
|
7938
8104
|
getTextArea("thought", "Today's thought", false)
|
|
7939
8105
|
];
|
|
7940
8106
|
break;
|
|
8107
|
+
case "Image":
|
|
8108
|
+
uiSchema.elements = [
|
|
8109
|
+
getInputField("imageUrl", "Image URL"),
|
|
8110
|
+
getInputField("height", "Image Height"),
|
|
8111
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8112
|
+
];
|
|
8113
|
+
break;
|
|
8114
|
+
case "FileInput":
|
|
8115
|
+
uiSchema.elements = [
|
|
8116
|
+
getRadioInputField("variant", "Variant", ["Outlined", "Standard"]),
|
|
8117
|
+
getRadioInputField("disableUpload", "Disable Upload", ["YES", "NO"]),
|
|
8118
|
+
getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
|
|
8119
|
+
getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
|
|
8120
|
+
getInputField("description", "Enter description"),
|
|
8121
|
+
emptyBox$1("FileInputEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8122
|
+
];
|
|
8123
|
+
break;
|
|
8124
|
+
case "Camera":
|
|
8125
|
+
uiSchema.elements = [
|
|
8126
|
+
getSelectField("iconName", "Icon Name"),
|
|
8127
|
+
getSelectField("color", "Color"),
|
|
8128
|
+
getInputField("tooltipMessage", "Tooltip Message"),
|
|
8129
|
+
getSelectField("variant", "Variant"),
|
|
8130
|
+
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
8131
|
+
];
|
|
7941
8132
|
}
|
|
7942
8133
|
return uiSchema;
|
|
7943
8134
|
};
|
|
@@ -8048,94 +8239,69 @@ const TableSection = (theme) => {
|
|
|
8048
8239
|
disableAction: true,
|
|
8049
8240
|
disableSelection: true,
|
|
8050
8241
|
enableDrag: true
|
|
8051
|
-
}
|
|
8052
|
-
},
|
|
8053
|
-
elements: [
|
|
8054
|
-
{
|
|
8055
|
-
accessorKey: "name",
|
|
8056
|
-
header: "Name",
|
|
8057
|
-
type: "string",
|
|
8058
|
-
size: 300
|
|
8059
|
-
},
|
|
8060
|
-
{
|
|
8061
|
-
accessorKey: "type",
|
|
8062
|
-
header: "Type",
|
|
8063
|
-
type: "string",
|
|
8064
|
-
size: 200
|
|
8065
8242
|
},
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
field: "Reject_Records",
|
|
8069
|
-
size: 150,
|
|
8070
|
-
type: "action",
|
|
8071
|
-
widget: {
|
|
8243
|
+
action: [
|
|
8244
|
+
{
|
|
8072
8245
|
type: "Control",
|
|
8073
8246
|
scope: "#/properties/RejectButton",
|
|
8074
8247
|
options: {
|
|
8075
|
-
widget: "
|
|
8248
|
+
widget: "Button"
|
|
8076
8249
|
},
|
|
8077
8250
|
config: {
|
|
8078
8251
|
main: {
|
|
8079
|
-
|
|
8252
|
+
startIcon: "EditIcon",
|
|
8080
8253
|
size: "small",
|
|
8081
8254
|
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
|
-
}
|
|
8255
|
+
tooltipMessage: "Reject This Record",
|
|
8256
|
+
name: "Edit"
|
|
8089
8257
|
}
|
|
8090
8258
|
}
|
|
8091
|
-
}
|
|
8092
|
-
|
|
8093
|
-
{
|
|
8094
|
-
header: "Delete",
|
|
8095
|
-
field: "Reject_Records",
|
|
8096
|
-
size: 150,
|
|
8097
|
-
type: "action",
|
|
8098
|
-
widget: {
|
|
8259
|
+
},
|
|
8260
|
+
{
|
|
8099
8261
|
type: "Control",
|
|
8100
8262
|
scope: "#/properties/RejectButton",
|
|
8101
8263
|
options: {
|
|
8102
|
-
widget: "
|
|
8264
|
+
widget: "Button"
|
|
8103
8265
|
},
|
|
8104
8266
|
config: {
|
|
8105
8267
|
main: {
|
|
8106
|
-
|
|
8268
|
+
startIcon: "Bin",
|
|
8107
8269
|
onClick: "deletePopUpComponent",
|
|
8108
|
-
tooltipMessage: "Reject This Record"
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
fill: theme.palette.primary.main,
|
|
8112
|
-
"& :hover": {
|
|
8113
|
-
fill: theme.palette.primary.dark
|
|
8114
|
-
}
|
|
8270
|
+
tooltipMessage: "Reject This Record",
|
|
8271
|
+
name: "Delete",
|
|
8272
|
+
size: "small"
|
|
8115
8273
|
}
|
|
8116
8274
|
}
|
|
8117
|
-
}
|
|
8118
|
-
|
|
8119
|
-
{
|
|
8120
|
-
header: "Copy",
|
|
8121
|
-
field: "Copy_Component",
|
|
8122
|
-
size: 150,
|
|
8123
|
-
type: "action",
|
|
8124
|
-
widget: {
|
|
8275
|
+
},
|
|
8276
|
+
{
|
|
8125
8277
|
type: "Control",
|
|
8126
8278
|
scope: "#/properties/Copy_Component",
|
|
8127
8279
|
options: {
|
|
8128
|
-
widget: "
|
|
8280
|
+
widget: "Button"
|
|
8129
8281
|
},
|
|
8130
8282
|
config: {
|
|
8131
8283
|
main: {
|
|
8132
|
-
|
|
8284
|
+
startIcon: "FileCopyIcon",
|
|
8133
8285
|
onClick: "copyPasteElement",
|
|
8134
|
-
styleDefault:
|
|
8135
|
-
|
|
8286
|
+
styleDefault: false,
|
|
8287
|
+
name: "Copy"
|
|
8136
8288
|
}
|
|
8137
8289
|
}
|
|
8138
8290
|
}
|
|
8291
|
+
]
|
|
8292
|
+
},
|
|
8293
|
+
elements: [
|
|
8294
|
+
{
|
|
8295
|
+
accessorKey: "name",
|
|
8296
|
+
header: "Name",
|
|
8297
|
+
type: "string",
|
|
8298
|
+
size: 300
|
|
8299
|
+
},
|
|
8300
|
+
{
|
|
8301
|
+
accessorKey: "type",
|
|
8302
|
+
header: "Type",
|
|
8303
|
+
type: "string",
|
|
8304
|
+
size: 200
|
|
8139
8305
|
}
|
|
8140
8306
|
]
|
|
8141
8307
|
}
|
|
@@ -8307,7 +8473,7 @@ var buildConfig = (FormData) => {
|
|
|
8307
8473
|
};
|
|
8308
8474
|
const createLayoutFormat = (layout, type) => {
|
|
8309
8475
|
if (_.isEmpty(layout)) {
|
|
8310
|
-
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought"];
|
|
8476
|
+
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout", "Table"];
|
|
8311
8477
|
if (fullLayoutComponents.includes(type)) {
|
|
8312
8478
|
return { xs: 12, sm: 12, md: 12, lg: 12 };
|
|
8313
8479
|
} else if (type === "Graph") {
|
|
@@ -8320,7 +8486,7 @@ const createLayoutFormat = (layout, type) => {
|
|
|
8320
8486
|
}
|
|
8321
8487
|
let data = {};
|
|
8322
8488
|
layout.map((e) => {
|
|
8323
|
-
data[e.key || "xs"] =
|
|
8489
|
+
data[e.key || "xs"] = e.value === null || e.value === void 0 || e.value === "" ? 5.5 : +e.value;
|
|
8324
8490
|
});
|
|
8325
8491
|
return data;
|
|
8326
8492
|
};
|
|
@@ -8436,24 +8602,26 @@ function okHandler(store2) {
|
|
|
8436
8602
|
const sectionLabels = {
|
|
8437
8603
|
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8438
8604
|
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"
|
|
8605
|
+
Table: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8606
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8607
|
+
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8608
|
+
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8442
8609
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8443
|
-
SpeedoMeter: ["Core", "Properties", "Events", "Style"
|
|
8610
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8444
8611
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8445
8612
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8446
8613
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8447
8614
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8448
|
-
Box: ["Core", "Events", "Style", "Validation"],
|
|
8615
|
+
Box: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8449
8616
|
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8450
|
-
ProgressBarCard: ["Core", "Properties", "Events", "Style"
|
|
8451
|
-
|
|
8617
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style"],
|
|
8618
|
+
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8619
|
+
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8452
8620
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8453
|
-
Timer: ["Core", "Events", "Style"
|
|
8454
|
-
Rank: ["Core", "Events", "Style"
|
|
8621
|
+
Timer: ["Core", "Events", "Style"],
|
|
8622
|
+
Rank: ["Core", "Events", "Style"],
|
|
8455
8623
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8456
|
-
Array: ["Core", "Components", "Properties", "Validation"],
|
|
8624
|
+
Array: ["Core", "Components", "Properties", "Events", "Validation"],
|
|
8457
8625
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8458
8626
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8459
8627
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8463,7 +8631,12 @@ const sectionLabels = {
|
|
|
8463
8631
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8464
8632
|
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8465
8633
|
ColumnGroup: ["Core", "Components"],
|
|
8466
|
-
Thought: ["Core", "Properties", "Events", "Style",
|
|
8634
|
+
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8635
|
+
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8636
|
+
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8637
|
+
Image: ["Core", "Properties", "Style"],
|
|
8638
|
+
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8639
|
+
Camera: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8467
8640
|
};
|
|
8468
8641
|
function refreshPage(type, store2) {
|
|
8469
8642
|
var _a, _b;
|
|
@@ -8487,7 +8660,7 @@ function refreshPage(type, store2) {
|
|
|
8487
8660
|
const lastDotIndex = path.lastIndexOf(".");
|
|
8488
8661
|
const parentPath = path.slice(0, lastDotIndex);
|
|
8489
8662
|
const parentObj = _.get(currentConfig, parentPath);
|
|
8490
|
-
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8663
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
|
|
8491
8664
|
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8492
8665
|
type: "Control",
|
|
8493
8666
|
scope: "#/properties/columnFormat",
|
|
@@ -8566,6 +8739,44 @@ function refreshPage(type, store2) {
|
|
|
8566
8739
|
}
|
|
8567
8740
|
}
|
|
8568
8741
|
};
|
|
8742
|
+
UiSchema.elements[0].elements[0].elements[10] = {
|
|
8743
|
+
type: "Control",
|
|
8744
|
+
scope: "#/properties/dateFormat",
|
|
8745
|
+
options: {
|
|
8746
|
+
widget: "SelectInputField"
|
|
8747
|
+
},
|
|
8748
|
+
config: {
|
|
8749
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8750
|
+
main: {
|
|
8751
|
+
label: "Date Time Format"
|
|
8752
|
+
}
|
|
8753
|
+
}
|
|
8754
|
+
};
|
|
8755
|
+
UiSchema.elements[0].elements[0].elements[11] = {
|
|
8756
|
+
type: "Control",
|
|
8757
|
+
scope: "#/properties/emptyBox",
|
|
8758
|
+
options: {
|
|
8759
|
+
widget: "EmptyBox"
|
|
8760
|
+
},
|
|
8761
|
+
config: {
|
|
8762
|
+
layout: { xs: 0, sm: 0, md: 0, lg: 6 }
|
|
8763
|
+
}
|
|
8764
|
+
};
|
|
8765
|
+
}
|
|
8766
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "LeaderBoard") {
|
|
8767
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8768
|
+
type: "Control",
|
|
8769
|
+
scope: "#/properties/columnFormat",
|
|
8770
|
+
options: {
|
|
8771
|
+
widget: "SelectInputField"
|
|
8772
|
+
},
|
|
8773
|
+
config: {
|
|
8774
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8775
|
+
main: {
|
|
8776
|
+
label: "Column Format"
|
|
8777
|
+
}
|
|
8778
|
+
}
|
|
8779
|
+
};
|
|
8569
8780
|
}
|
|
8570
8781
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8571
8782
|
this.ElementPathSetter(UiSchema);
|
|
@@ -8841,7 +9052,7 @@ var pageMaster = (funcParams) => {
|
|
|
8841
9052
|
return formData;
|
|
8842
9053
|
}
|
|
8843
9054
|
saveFormdataInSessionStorage(config2);
|
|
8844
|
-
return config2;
|
|
9055
|
+
return { ...config2, type: "page" };
|
|
8845
9056
|
},
|
|
8846
9057
|
getUiSchema: function() {
|
|
8847
9058
|
const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
|
|
@@ -9000,7 +9211,7 @@ const EventSchema = {
|
|
|
9000
9211
|
oneOf: [
|
|
9001
9212
|
{ title: "RankProvider", const: "RankProvider" },
|
|
9002
9213
|
{ title: "Download File", const: "downloadFile" },
|
|
9003
|
-
{ title: "
|
|
9214
|
+
{ title: "downloadFileFromUrl", const: "downloadFileFromUrl" }
|
|
9004
9215
|
]
|
|
9005
9216
|
},
|
|
9006
9217
|
body: {
|
|
@@ -9159,93 +9370,70 @@ const EventUiSchema = (theme) => {
|
|
|
9159
9370
|
disableAction: true,
|
|
9160
9371
|
disableSelection: true,
|
|
9161
9372
|
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
9373
|
},
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
header: "Edit",
|
|
9180
|
-
type: "action",
|
|
9181
|
-
size: 150,
|
|
9182
|
-
widget: {
|
|
9374
|
+
action: [
|
|
9375
|
+
{
|
|
9183
9376
|
type: "Control",
|
|
9184
9377
|
scope: "#/properties/Edit_Records",
|
|
9185
9378
|
options: {
|
|
9186
|
-
widget: "
|
|
9379
|
+
widget: "Button"
|
|
9187
9380
|
},
|
|
9188
9381
|
config: {
|
|
9189
9382
|
main: {
|
|
9190
9383
|
size: "small",
|
|
9191
|
-
|
|
9384
|
+
startIcon: "EditIcon",
|
|
9192
9385
|
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
|
-
}
|
|
9386
|
+
onClick: "editEvent",
|
|
9387
|
+
name: "Edit"
|
|
9200
9388
|
}
|
|
9201
9389
|
}
|
|
9202
|
-
}
|
|
9203
|
-
|
|
9204
|
-
{
|
|
9205
|
-
accessorKey: "Reject_Records",
|
|
9206
|
-
header: "Delete",
|
|
9207
|
-
type: "action",
|
|
9208
|
-
size: 150,
|
|
9209
|
-
widget: {
|
|
9390
|
+
},
|
|
9391
|
+
{
|
|
9210
9392
|
type: "Control",
|
|
9211
9393
|
scope: "#/properties/RejectButton",
|
|
9212
9394
|
options: {
|
|
9213
|
-
widget: "
|
|
9395
|
+
widget: "Button"
|
|
9214
9396
|
},
|
|
9215
9397
|
config: {
|
|
9216
9398
|
main: {
|
|
9217
|
-
|
|
9399
|
+
startIcon: "Bin",
|
|
9218
9400
|
tooltipMessage: "Reject This Record",
|
|
9219
|
-
onClick: "deletePopUpEvent"
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
fill: theme.palette.primary.main,
|
|
9223
|
-
"& :hover": {
|
|
9224
|
-
fill: theme.palette.primary.dark
|
|
9225
|
-
}
|
|
9401
|
+
onClick: "deletePopUpEvent",
|
|
9402
|
+
name: "Delete",
|
|
9403
|
+
size: "small"
|
|
9226
9404
|
}
|
|
9227
9405
|
}
|
|
9228
|
-
}
|
|
9229
|
-
|
|
9230
|
-
{
|
|
9231
|
-
header: "Copy",
|
|
9232
|
-
field: "Copy_Event",
|
|
9233
|
-
type: "action",
|
|
9234
|
-
size: 150,
|
|
9235
|
-
widget: {
|
|
9406
|
+
},
|
|
9407
|
+
{
|
|
9236
9408
|
type: "Control",
|
|
9237
9409
|
scope: "#/properties/Copy_Event",
|
|
9238
9410
|
options: {
|
|
9239
|
-
widget: "
|
|
9411
|
+
widget: "Button"
|
|
9240
9412
|
},
|
|
9241
9413
|
config: {
|
|
9242
9414
|
main: {
|
|
9243
|
-
|
|
9415
|
+
startIcon: "FileCopyIcon",
|
|
9244
9416
|
onClick: "copyPasteElement",
|
|
9245
|
-
styleDefault:
|
|
9417
|
+
styleDefault: false,
|
|
9418
|
+
name: "Copy",
|
|
9419
|
+
size: "small"
|
|
9246
9420
|
}
|
|
9247
9421
|
}
|
|
9248
9422
|
}
|
|
9423
|
+
]
|
|
9424
|
+
},
|
|
9425
|
+
elements: [
|
|
9426
|
+
{
|
|
9427
|
+
accessorKey: "eventType",
|
|
9428
|
+
header: "Event's Type",
|
|
9429
|
+
size: 300,
|
|
9430
|
+
type: "string"
|
|
9431
|
+
},
|
|
9432
|
+
{
|
|
9433
|
+
accessorKey: "Handler",
|
|
9434
|
+
header: "Handler",
|
|
9435
|
+
size: 200,
|
|
9436
|
+
type: "string"
|
|
9249
9437
|
}
|
|
9250
9438
|
]
|
|
9251
9439
|
}
|
|
@@ -9960,22 +10148,33 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9960
10148
|
}
|
|
9961
10149
|
};
|
|
9962
10150
|
};
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
const
|
|
9966
|
-
const
|
|
9967
|
-
let
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
const
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
10151
|
+
function downloadFile$1({ data, name }) {
|
|
10152
|
+
var _a;
|
|
10153
|
+
const binary = window.atob(data);
|
|
10154
|
+
const bytes = new Uint8Array(binary.length);
|
|
10155
|
+
for (let i = 0; i < binary.length; i++) {
|
|
10156
|
+
bytes[i] = binary.charCodeAt(i);
|
|
10157
|
+
}
|
|
10158
|
+
const extension = (_a = name.split(".").pop()) == null ? void 0 : _a.toLowerCase();
|
|
10159
|
+
const mimeMap = {
|
|
10160
|
+
pdf: "application/pdf",
|
|
10161
|
+
png: "image/png",
|
|
10162
|
+
jpg: "image/jpeg",
|
|
10163
|
+
jpeg: "image/jpeg",
|
|
10164
|
+
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
10165
|
+
csv: "text/csv"
|
|
10166
|
+
};
|
|
10167
|
+
const blob = new Blob([bytes], {
|
|
10168
|
+
type: mimeMap[extension] || "application/octet-stream"
|
|
10169
|
+
});
|
|
10170
|
+
const url = URL.createObjectURL(blob);
|
|
10171
|
+
const a = document.createElement("a");
|
|
10172
|
+
a.href = url;
|
|
10173
|
+
a.download = name;
|
|
10174
|
+
a.click();
|
|
9975
10175
|
URL.revokeObjectURL(url);
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
const doDownload = (response, service2) => {
|
|
10176
|
+
}
|
|
10177
|
+
const downloadFileFromUrl = (response, service2) => {
|
|
9979
10178
|
let url = `${service2.defaults.baseURL}/${response.path}`;
|
|
9980
10179
|
if (response == null ? void 0 : response.params) {
|
|
9981
10180
|
const keysArray = Object.keys(response == null ? void 0 : response.params);
|
|
@@ -10054,7 +10253,6 @@ function executeEventsHandler(params2) {
|
|
|
10054
10253
|
params2.componentName,
|
|
10055
10254
|
params2.config,
|
|
10056
10255
|
params2.store,
|
|
10057
|
-
params2.service,
|
|
10058
10256
|
params2.formDataHolder
|
|
10059
10257
|
);
|
|
10060
10258
|
} else if (params2.config.Handler === "onBackHandler") {
|
|
@@ -10126,7 +10324,7 @@ function executeCustomHandler(params) {
|
|
|
10126
10324
|
return response;
|
|
10127
10325
|
}
|
|
10128
10326
|
}
|
|
10129
|
-
function mergeFormdata(handlerResponse, componentName, eventConfig, store2,
|
|
10327
|
+
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, formDataHolder) {
|
|
10130
10328
|
var _a, _b, _c;
|
|
10131
10329
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10132
10330
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
@@ -10164,29 +10362,23 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
10164
10362
|
});
|
|
10165
10363
|
}
|
|
10166
10364
|
} else if (eventConfig.type === "page") {
|
|
10167
|
-
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
10365
|
+
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data) && lodash.exports.isObject(handlerResponse.data))) {
|
|
10168
10366
|
store2.newData = {
|
|
10169
10367
|
...store2.newData,
|
|
10170
10368
|
...handlerResponse == null ? void 0 : handlerResponse.data
|
|
10171
10369
|
};
|
|
10172
|
-
|
|
10173
|
-
|
|
10370
|
+
Object.keys(handlerResponse.data).forEach((e) => {
|
|
10371
|
+
formDataHolder[e] = handlerResponse.data[e];
|
|
10174
10372
|
});
|
|
10175
10373
|
}
|
|
10176
10374
|
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10177
10375
|
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10178
10376
|
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
10179
10377
|
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
10378
|
}
|
|
10184
10379
|
} else {
|
|
10185
|
-
if (handlerResponse) {
|
|
10380
|
+
if (handlerResponse == null ? void 0 : handlerResponse.data) {
|
|
10186
10381
|
formDataHolder[componentName] = handlerResponse.data;
|
|
10187
|
-
store2.setFormdata((pre) => {
|
|
10188
|
-
return { ...pre, ...formDataHolder };
|
|
10189
|
-
});
|
|
10190
10382
|
}
|
|
10191
10383
|
}
|
|
10192
10384
|
}
|
|
@@ -10324,14 +10516,14 @@ var service = (funcParams) => {
|
|
|
10324
10516
|
dynamicData: funcParams.dynamicData,
|
|
10325
10517
|
userValue: funcParams.userValue,
|
|
10326
10518
|
service: funcParams.service,
|
|
10327
|
-
serviceHolder: { downloadFile: downloadFile$1, download:
|
|
10519
|
+
serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, ...funcParams.functionsProvider },
|
|
10328
10520
|
eventGroups,
|
|
10329
10521
|
functionsProvider: funcParams.functionsProvider,
|
|
10330
10522
|
formDataHolder
|
|
10331
10523
|
};
|
|
10332
10524
|
return {
|
|
10333
10525
|
setPage: async function() {
|
|
10334
|
-
var _a, _b, _c
|
|
10526
|
+
var _a, _b, _c;
|
|
10335
10527
|
funcParams.store.setAdditionalErrors([]);
|
|
10336
10528
|
funcParams.store.setFormdata((funcParams == null ? void 0 : funcParams.initFormData()) || {});
|
|
10337
10529
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
@@ -10341,116 +10533,11 @@ var service = (funcParams) => {
|
|
|
10341
10533
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10342
10534
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10343
10535
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10344
|
-
detail: { pageName: config2.label, hasBackIcon: true }
|
|
10536
|
+
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10345
10537
|
});
|
|
10346
10538
|
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: {} };
|
|
10539
|
+
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10540
|
+
const schema2 = (_c = pageData == null ? void 0 : pageData.schema) != null ? _c : { type: "object", properties: {} };
|
|
10454
10541
|
eventGroups = extractEvents(config2);
|
|
10455
10542
|
executeEventsParameters = {
|
|
10456
10543
|
config: {},
|
|
@@ -10464,17 +10551,6 @@ var service = (funcParams) => {
|
|
|
10464
10551
|
eventGroups,
|
|
10465
10552
|
formDataHolder
|
|
10466
10553
|
};
|
|
10467
|
-
await executeRefreshHandler({
|
|
10468
|
-
config: {},
|
|
10469
|
-
componentName: "",
|
|
10470
|
-
store: funcParams.store,
|
|
10471
|
-
dynamicData: funcParams.dynamicData,
|
|
10472
|
-
userValue: funcParams.userValue,
|
|
10473
|
-
service: funcParams.service,
|
|
10474
|
-
serviceHolder: this,
|
|
10475
|
-
eventGroups,
|
|
10476
|
-
formDataHolder: {}
|
|
10477
|
-
});
|
|
10478
10554
|
funcParams.store.setSchema(
|
|
10479
10555
|
(pre) => {
|
|
10480
10556
|
return {
|
|
@@ -10484,23 +10560,39 @@ var service = (funcParams) => {
|
|
|
10484
10560
|
};
|
|
10485
10561
|
}
|
|
10486
10562
|
);
|
|
10487
|
-
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10501
|
-
|
|
10563
|
+
executeRefreshHandler({
|
|
10564
|
+
config: {},
|
|
10565
|
+
componentName: "",
|
|
10566
|
+
store: funcParams.store,
|
|
10567
|
+
dynamicData: funcParams.dynamicData,
|
|
10568
|
+
userValue: funcParams.userValue,
|
|
10569
|
+
service: funcParams.service,
|
|
10570
|
+
serviceHolder: this,
|
|
10571
|
+
eventGroups,
|
|
10572
|
+
formDataHolder
|
|
10573
|
+
}).then((e) => {
|
|
10574
|
+
funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
|
|
10575
|
+
uiSchema.elements.push(notifyUiSchema);
|
|
10576
|
+
funcParams.store.setUiSchema(uiSchema);
|
|
10577
|
+
});
|
|
10578
|
+
},
|
|
10579
|
+
onCellRenderer: (cellParams) => {
|
|
10580
|
+
var _a, _b, _c, _d, _e;
|
|
10581
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10582
|
+
if (cloneEventGroup.onCellRenderer) {
|
|
10583
|
+
let finalResponse = {};
|
|
10584
|
+
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]);
|
|
10585
|
+
if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _d[path]) {
|
|
10586
|
+
for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.onCellRenderer) == null ? void 0 : _e[path]) {
|
|
10587
|
+
executeEventsParameters.store.functionParameters = cellParams;
|
|
10588
|
+
finalResponse = executeEvents({
|
|
10589
|
+
...executeEventsParameters,
|
|
10590
|
+
config: eventConfig,
|
|
10591
|
+
componentName: path
|
|
10592
|
+
});
|
|
10593
|
+
}
|
|
10594
|
+
return finalResponse;
|
|
10502
10595
|
}
|
|
10503
|
-
return finalResponse;
|
|
10504
10596
|
}
|
|
10505
10597
|
return {};
|
|
10506
10598
|
},
|
|
@@ -10536,13 +10628,14 @@ var service = (funcParams) => {
|
|
|
10536
10628
|
return response == null ? void 0 : response.data;
|
|
10537
10629
|
},
|
|
10538
10630
|
onPaginationChange: async function(paginationValues) {
|
|
10539
|
-
var _a;
|
|
10631
|
+
var _a, _b;
|
|
10540
10632
|
const apiBody = [
|
|
10541
10633
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10542
10634
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
10543
10635
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
10544
10636
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
10545
|
-
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
|
|
10637
|
+
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
|
|
10638
|
+
{ key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
|
|
10546
10639
|
];
|
|
10547
10640
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10548
10641
|
return response == null ? void 0 : response.data;
|
|
@@ -10557,22 +10650,34 @@ var service = (funcParams) => {
|
|
|
10557
10650
|
return response == null ? void 0 : response.data;
|
|
10558
10651
|
}
|
|
10559
10652
|
},
|
|
10560
|
-
onChange:
|
|
10561
|
-
if (eventGroups.onChange)
|
|
10562
|
-
|
|
10563
|
-
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10653
|
+
onChange: function() {
|
|
10654
|
+
if (!eventGroups.onChange)
|
|
10655
|
+
return;
|
|
10656
|
+
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10657
|
+
const promises = ChangeEventsKeysArray.flatMap((componentName) => {
|
|
10658
|
+
var _a, _b;
|
|
10659
|
+
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName] || ((_b = funcParams.store) == null ? void 0 : _b.newData[componentName]) === void 0) {
|
|
10660
|
+
return [];
|
|
10661
|
+
}
|
|
10662
|
+
return eventGroups.onChange[componentName].map(
|
|
10663
|
+
(eventConfig) => Promise.resolve(
|
|
10664
|
+
executeEvents({
|
|
10665
|
+
...executeEventsParameters,
|
|
10666
|
+
config: eventConfig,
|
|
10667
|
+
componentName,
|
|
10668
|
+
formDataHolder
|
|
10669
|
+
})
|
|
10670
|
+
).then(() => {
|
|
10671
|
+
if (!lodash.exports.isEmpty(formDataHolder)) {
|
|
10672
|
+
funcParams.store.setFormdata((pre) => ({
|
|
10673
|
+
...pre,
|
|
10674
|
+
...formDataHolder
|
|
10675
|
+
}));
|
|
10572
10676
|
}
|
|
10573
|
-
}
|
|
10574
|
-
|
|
10575
|
-
}
|
|
10677
|
+
})
|
|
10678
|
+
);
|
|
10679
|
+
});
|
|
10680
|
+
Promise.allSettled(promises);
|
|
10576
10681
|
},
|
|
10577
10682
|
callExecuteEvents: async function(paramValue, apiBody, eventType) {
|
|
10578
10683
|
var _a, _b;
|
|
@@ -10602,7 +10707,7 @@ var service = (funcParams) => {
|
|
|
10602
10707
|
onBack: async function(functionParameters) {
|
|
10603
10708
|
var _a, _b;
|
|
10604
10709
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10605
|
-
|
|
10710
|
+
this.callHandler("onBack", functionParameters);
|
|
10606
10711
|
if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10607
10712
|
functionParameters == null ? void 0 : functionParameters.handleBack();
|
|
10608
10713
|
}
|
|
@@ -10610,7 +10715,7 @@ var service = (funcParams) => {
|
|
|
10610
10715
|
onNext: async function(functionParameters) {
|
|
10611
10716
|
var _a, _b;
|
|
10612
10717
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10613
|
-
|
|
10718
|
+
this.callHandler("onNext", functionParameters);
|
|
10614
10719
|
if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10615
10720
|
functionParameters == null ? void 0 : functionParameters.handleNext();
|
|
10616
10721
|
}
|
|
@@ -10618,27 +10723,38 @@ var service = (funcParams) => {
|
|
|
10618
10723
|
onReset: async function(functionParameters) {
|
|
10619
10724
|
var _a, _b;
|
|
10620
10725
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10621
|
-
|
|
10726
|
+
this.callHandler("onReset", functionParameters);
|
|
10622
10727
|
if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10623
10728
|
functionParameters == null ? void 0 : functionParameters.handleReset();
|
|
10624
10729
|
}
|
|
10625
10730
|
},
|
|
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
|
-
|
|
10731
|
+
callHandler: function(eventType, functionParameters) {
|
|
10732
|
+
var _a, _b;
|
|
10733
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".").pop();
|
|
10734
|
+
if (!((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]))
|
|
10735
|
+
return;
|
|
10736
|
+
const promises = eventGroups[eventType][path].map((eventConfig) => {
|
|
10737
|
+
executeEventsParameters.store.functionParameters = functionParameters;
|
|
10738
|
+
return Promise.resolve(
|
|
10632
10739
|
executeEvents({
|
|
10633
10740
|
...executeEventsParameters,
|
|
10634
10741
|
config: eventConfig,
|
|
10635
|
-
componentName: path
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10742
|
+
componentName: path,
|
|
10743
|
+
formDataHolder
|
|
10744
|
+
})
|
|
10745
|
+
).then(() => {
|
|
10746
|
+
if (!lodash.exports.isEmpty(formDataHolder)) {
|
|
10747
|
+
funcParams.store.setFormdata((pre) => ({
|
|
10748
|
+
...pre,
|
|
10749
|
+
...formDataHolder
|
|
10750
|
+
}));
|
|
10751
|
+
}
|
|
10752
|
+
});
|
|
10753
|
+
});
|
|
10754
|
+
Promise.allSettled(promises);
|
|
10639
10755
|
},
|
|
10640
10756
|
downloadFile: downloadFile$1,
|
|
10641
|
-
|
|
10757
|
+
downloadFileFromUrl,
|
|
10642
10758
|
...funcParams.functionsProvider
|
|
10643
10759
|
};
|
|
10644
10760
|
};
|
|
@@ -10687,6 +10803,9 @@ const buildLeaderBoard = (config2) => {
|
|
|
10687
10803
|
if (config2.scoreKey) {
|
|
10688
10804
|
LeaderBoard.config.main.scoreKey = config2.scoreKey;
|
|
10689
10805
|
}
|
|
10806
|
+
if (config2.isScoreAmount) {
|
|
10807
|
+
LeaderBoard.config.main.isScoreAmount = config2.isScoreAmount === "YES" ? true : false;
|
|
10808
|
+
}
|
|
10690
10809
|
if (config2.layout) {
|
|
10691
10810
|
LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10692
10811
|
}
|
|
@@ -10737,6 +10856,15 @@ const buildProgressBar = (config2, componentScope2) => {
|
|
|
10737
10856
|
ProgressBar.config.layout = config2.layout;
|
|
10738
10857
|
}
|
|
10739
10858
|
ProgressBar.config.main.heading = config2.label;
|
|
10859
|
+
if (config2.variant) {
|
|
10860
|
+
ProgressBar.config.main.variant = config2.variant;
|
|
10861
|
+
}
|
|
10862
|
+
if (config2.pieArcColors) {
|
|
10863
|
+
ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10864
|
+
}
|
|
10865
|
+
if (config2.size) {
|
|
10866
|
+
ProgressBar.config.main.size = Number(config2.size);
|
|
10867
|
+
}
|
|
10740
10868
|
if (config2.bottomLabel_3) {
|
|
10741
10869
|
ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
|
|
10742
10870
|
}
|
|
@@ -10829,6 +10957,9 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10829
10957
|
if (config2.legendLabels) {
|
|
10830
10958
|
horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
10831
10959
|
}
|
|
10960
|
+
if (config2.legendDirection) {
|
|
10961
|
+
horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
10962
|
+
}
|
|
10832
10963
|
if (config2.pieArcColors) {
|
|
10833
10964
|
horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10834
10965
|
}
|
|
@@ -10849,6 +10980,9 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10849
10980
|
if (config2.leftLabel) {
|
|
10850
10981
|
horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
|
|
10851
10982
|
}
|
|
10983
|
+
if (config2.disableLeftLabel) {
|
|
10984
|
+
horizontalBarGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
10985
|
+
}
|
|
10852
10986
|
return horizontalBarGraph;
|
|
10853
10987
|
};
|
|
10854
10988
|
var SpeedoMeter = {
|
|
@@ -10955,6 +11089,9 @@ const buildPieGraph = (config2, componentScope2) => {
|
|
|
10955
11089
|
if (config2.legendHide) {
|
|
10956
11090
|
pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10957
11091
|
}
|
|
11092
|
+
if (config2.legendDirection) {
|
|
11093
|
+
pieGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
11094
|
+
}
|
|
10958
11095
|
pieGraph.scope = componentScope2;
|
|
10959
11096
|
pieGraph.config.main.header = config2.heading;
|
|
10960
11097
|
if (config2.legendLabels) {
|
|
@@ -10978,6 +11115,9 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
10978
11115
|
barGraph.config.main.legendAvailable = config2.legendHide;
|
|
10979
11116
|
barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10980
11117
|
}
|
|
11118
|
+
if (config2.legendDirection) {
|
|
11119
|
+
barGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
11120
|
+
}
|
|
10981
11121
|
if (config2.bottomAxisAngle) {
|
|
10982
11122
|
barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10983
11123
|
}
|
|
@@ -11006,6 +11146,9 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
11006
11146
|
if (config2.leftLabel) {
|
|
11007
11147
|
barGraph.config.main.leftLabel = config2.leftLabel;
|
|
11008
11148
|
}
|
|
11149
|
+
if (config2.disableLeftLabel) {
|
|
11150
|
+
barGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
11151
|
+
}
|
|
11009
11152
|
barGraph.scope = componentScope2;
|
|
11010
11153
|
return barGraph;
|
|
11011
11154
|
};
|
|
@@ -11051,6 +11194,9 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
11051
11194
|
if (config2.sectionLabels) {
|
|
11052
11195
|
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
11053
11196
|
}
|
|
11197
|
+
if (config2.style) {
|
|
11198
|
+
tab.config.style = JSON.parse(config2.style);
|
|
11199
|
+
}
|
|
11054
11200
|
tab.config.main.id = config2.name;
|
|
11055
11201
|
return tab;
|
|
11056
11202
|
};
|
|
@@ -11073,6 +11219,7 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11073
11219
|
wrapper.config.main.label = config2.label;
|
|
11074
11220
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11075
11221
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11222
|
+
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11076
11223
|
if (config2.defaultStyle) {
|
|
11077
11224
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11078
11225
|
}
|
|
@@ -11248,6 +11395,9 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11248
11395
|
if (config2.lazyLoading) {
|
|
11249
11396
|
table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11250
11397
|
}
|
|
11398
|
+
if (config2.defaultColumnSize) {
|
|
11399
|
+
table.config.main.defaultColumnSize = config2.defaultColumnSize;
|
|
11400
|
+
}
|
|
11251
11401
|
if (config2.enableRowMovement) {
|
|
11252
11402
|
table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
|
|
11253
11403
|
}
|
|
@@ -11308,6 +11458,15 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11308
11458
|
if (config2.selectKey) {
|
|
11309
11459
|
table.config.main.selectKey = config2.selectKey;
|
|
11310
11460
|
}
|
|
11461
|
+
if (config2.maxPageSize) {
|
|
11462
|
+
table.config.main.maxPageSize = config2.maxPageSize;
|
|
11463
|
+
}
|
|
11464
|
+
if (config2.initialDensity) {
|
|
11465
|
+
table.config.main.initialDensity = config2.initialDensity;
|
|
11466
|
+
}
|
|
11467
|
+
if (config2.layout) {
|
|
11468
|
+
table.config.layout = createLayoutFormat(config2.layout);
|
|
11469
|
+
}
|
|
11311
11470
|
return table;
|
|
11312
11471
|
};
|
|
11313
11472
|
const Box = {
|
|
@@ -11318,7 +11477,9 @@ const Box = {
|
|
|
11318
11477
|
},
|
|
11319
11478
|
config: {
|
|
11320
11479
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11321
|
-
main: {
|
|
11480
|
+
main: {
|
|
11481
|
+
iconName: ""
|
|
11482
|
+
},
|
|
11322
11483
|
style: {}
|
|
11323
11484
|
}
|
|
11324
11485
|
};
|
|
@@ -11329,6 +11490,9 @@ const buildLabel = (config2, componentScope2) => {
|
|
|
11329
11490
|
if (config2.layout) {
|
|
11330
11491
|
box.config.layout = createLayoutFormat(config2.layout);
|
|
11331
11492
|
}
|
|
11493
|
+
if (config2.iconName) {
|
|
11494
|
+
box.config.main.iconName = config2.iconName;
|
|
11495
|
+
}
|
|
11332
11496
|
if (config2.style) {
|
|
11333
11497
|
box.config.style = JSON.parse(config2.style);
|
|
11334
11498
|
}
|
|
@@ -11389,6 +11553,7 @@ const buildUploadFile = (config2, componentScope2) => {
|
|
|
11389
11553
|
const buildDownloadFile = (config2, componentScope2) => {
|
|
11390
11554
|
const DownloadFile = _.cloneDeep(downloadFile);
|
|
11391
11555
|
DownloadFile.scope = componentScope2;
|
|
11556
|
+
DownloadFile.config.main.label = config2.label;
|
|
11392
11557
|
if (config2.layout) {
|
|
11393
11558
|
DownloadFile.config.layout = config2.layout;
|
|
11394
11559
|
}
|
|
@@ -11411,192 +11576,159 @@ function Card(theme) {
|
|
|
11411
11576
|
type: "WrapperLayout",
|
|
11412
11577
|
config: {
|
|
11413
11578
|
main: {},
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11579
|
+
style: {
|
|
11580
|
+
wrapperStyle: {
|
|
11581
|
+
position: "relative",
|
|
11582
|
+
top: "50%",
|
|
11583
|
+
transform: "translateY(-50%)",
|
|
11584
|
+
marginBottom: 0,
|
|
11585
|
+
borderRadius: "12px",
|
|
11586
|
+
fontFamily: "poppins"
|
|
11587
|
+
},
|
|
11588
|
+
componentsBoxStyle: {
|
|
11589
|
+
boxShadow: "0 0 6px 1px rgba(149, 147, 147, 0.25)",
|
|
11590
|
+
flexDirection: "column",
|
|
11591
|
+
overflow: "hidden",
|
|
11592
|
+
flexWrap: "nowrap",
|
|
11593
|
+
width: "100% !important",
|
|
11594
|
+
background: "transparent",
|
|
11595
|
+
borderRadius: "12px",
|
|
11596
|
+
padding: "20px 20px 20px 14px",
|
|
11597
|
+
height: "100%",
|
|
11598
|
+
minHeight: "100px",
|
|
11599
|
+
position: "relative",
|
|
11600
|
+
marginLeft: "0px",
|
|
11601
|
+
"&: hover": {
|
|
11602
|
+
background: `${theme.palette.primary.main}`,
|
|
11603
|
+
color: `${theme.palette.primary.contrastText}`
|
|
11437
11604
|
}
|
|
11438
11605
|
}
|
|
11439
11606
|
},
|
|
11440
|
-
layout: { xs: 12, sm: 12, md:
|
|
11607
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 }
|
|
11441
11608
|
},
|
|
11442
11609
|
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
11610
|
{
|
|
11575
11611
|
type: "Control",
|
|
11576
|
-
scope: "#/properties/
|
|
11612
|
+
scope: "#/properties/initilCardScope",
|
|
11577
11613
|
config: {
|
|
11578
11614
|
main: {
|
|
11579
11615
|
url: "https://www.svgrepo.com/show/500606/loading.svg"
|
|
11580
11616
|
},
|
|
11581
11617
|
style: {
|
|
11582
11618
|
containerStyle: {
|
|
11583
|
-
|
|
11619
|
+
position: "absolute",
|
|
11620
|
+
color: "inherit",
|
|
11621
|
+
top: "4px",
|
|
11622
|
+
right: "4px",
|
|
11584
11623
|
display: "flex",
|
|
11585
|
-
justifyContent: "end"
|
|
11624
|
+
justifyContent: "flex-end",
|
|
11625
|
+
alignItems: "flex-start"
|
|
11586
11626
|
},
|
|
11587
11627
|
imageStyle: {
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11628
|
+
color: "inherit",
|
|
11629
|
+
width: "32px",
|
|
11630
|
+
height: "32px",
|
|
11631
|
+
padding: "0px",
|
|
11632
|
+
margin: "0px"
|
|
11593
11633
|
}
|
|
11594
|
-
}
|
|
11595
|
-
layout: 4
|
|
11634
|
+
}
|
|
11596
11635
|
},
|
|
11597
11636
|
options: {
|
|
11598
11637
|
widget: "Image"
|
|
11599
11638
|
}
|
|
11639
|
+
},
|
|
11640
|
+
{
|
|
11641
|
+
type: "Control",
|
|
11642
|
+
scope: "#/properties/initilCardScope",
|
|
11643
|
+
config: {
|
|
11644
|
+
main: {
|
|
11645
|
+
heading: "Total Earnings"
|
|
11646
|
+
},
|
|
11647
|
+
style: {
|
|
11648
|
+
color: "inherit",
|
|
11649
|
+
fontSize: "16px",
|
|
11650
|
+
fontWeight: 300,
|
|
11651
|
+
fontFamily: "Poppins",
|
|
11652
|
+
justifyContent: "flex-start",
|
|
11653
|
+
background: "inherit",
|
|
11654
|
+
position: "absolute",
|
|
11655
|
+
top: "8px",
|
|
11656
|
+
left: "12px",
|
|
11657
|
+
display: "flex",
|
|
11658
|
+
maxWidth: "200px",
|
|
11659
|
+
whiteSpace: "nowrap",
|
|
11660
|
+
overflowX: "auto",
|
|
11661
|
+
scrollbarWidth: "none",
|
|
11662
|
+
"&::-webkit-scrollbar": {
|
|
11663
|
+
display: "none"
|
|
11664
|
+
}
|
|
11665
|
+
}
|
|
11666
|
+
},
|
|
11667
|
+
options: {
|
|
11668
|
+
widget: "Box"
|
|
11669
|
+
}
|
|
11670
|
+
},
|
|
11671
|
+
{
|
|
11672
|
+
type: "Control",
|
|
11673
|
+
scope: "#/properties/initilCardScope",
|
|
11674
|
+
config: {
|
|
11675
|
+
main: {
|
|
11676
|
+
heading: "5000.00"
|
|
11677
|
+
},
|
|
11678
|
+
style: {
|
|
11679
|
+
color: "inherit",
|
|
11680
|
+
display: "flex",
|
|
11681
|
+
fontSize: { xs: "22px", md: "40px" },
|
|
11682
|
+
fontWeight: 600,
|
|
11683
|
+
background: "inherit",
|
|
11684
|
+
justifyContent: "flex-start",
|
|
11685
|
+
width: "100%",
|
|
11686
|
+
margin: "0px",
|
|
11687
|
+
marginBottom: "4px",
|
|
11688
|
+
marginTop: "8px",
|
|
11689
|
+
lineHeight: "1",
|
|
11690
|
+
maxWidth: "300px",
|
|
11691
|
+
whiteSpace: "nowrap",
|
|
11692
|
+
overflowX: "auto",
|
|
11693
|
+
overflowY: "hidden",
|
|
11694
|
+
scrollbarWidth: "none",
|
|
11695
|
+
"&::-webkit-scrollbar": {
|
|
11696
|
+
display: "none"
|
|
11697
|
+
}
|
|
11698
|
+
}
|
|
11699
|
+
},
|
|
11700
|
+
options: {
|
|
11701
|
+
widget: "Box"
|
|
11702
|
+
}
|
|
11703
|
+
},
|
|
11704
|
+
{
|
|
11705
|
+
type: "Control",
|
|
11706
|
+
scope: "#/properties/initilCardScope",
|
|
11707
|
+
config: {
|
|
11708
|
+
main: {
|
|
11709
|
+
heading: "Increased from last month"
|
|
11710
|
+
},
|
|
11711
|
+
style: {
|
|
11712
|
+
color: "inherit",
|
|
11713
|
+
fontSize: "12px",
|
|
11714
|
+
fontWeight: "400",
|
|
11715
|
+
justifyContent: "flex-start",
|
|
11716
|
+
background: "inherit",
|
|
11717
|
+
margin: "0px",
|
|
11718
|
+
paddingLeft: "2px",
|
|
11719
|
+
marginBottom: "8px",
|
|
11720
|
+
maxWidth: "200px",
|
|
11721
|
+
whiteSpace: "nowrap",
|
|
11722
|
+
overflowX: "auto",
|
|
11723
|
+
scrollbarWidth: "none",
|
|
11724
|
+
"&::-webkit-scrollbar": {
|
|
11725
|
+
display: "none"
|
|
11726
|
+
}
|
|
11727
|
+
}
|
|
11728
|
+
},
|
|
11729
|
+
options: {
|
|
11730
|
+
widget: "Box"
|
|
11731
|
+
}
|
|
11600
11732
|
}
|
|
11601
11733
|
]
|
|
11602
11734
|
};
|
|
@@ -11607,9 +11739,10 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11607
11739
|
if (config.style) {
|
|
11608
11740
|
card.config.wrapperStyle = JSON.parse(config.style);
|
|
11609
11741
|
}
|
|
11610
|
-
card.elements[0].
|
|
11611
|
-
card.elements[1].scope = `#/properties/${config.name}/properties/
|
|
11612
|
-
card.elements[
|
|
11742
|
+
card.elements[0].scope = `#/properties/${config.name}/properties/url`;
|
|
11743
|
+
card.elements[1].scope = `#/properties/${config.name}/properties/label`;
|
|
11744
|
+
card.elements[2].scope = `#/properties/${config.name}/properties/value`;
|
|
11745
|
+
card.elements[3].scope = `#/properties/${config.name}/properties/description`;
|
|
11613
11746
|
if (config.layout) {
|
|
11614
11747
|
card.config.layout = createLayoutFormat(config.layout);
|
|
11615
11748
|
}
|
|
@@ -11618,13 +11751,13 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11618
11751
|
card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
|
|
11619
11752
|
}
|
|
11620
11753
|
if (config.label) {
|
|
11621
|
-
card.elements[
|
|
11754
|
+
card.elements[1].config.main.heading = config.label;
|
|
11622
11755
|
}
|
|
11623
11756
|
if (config.url) {
|
|
11624
|
-
card.elements[
|
|
11757
|
+
card.elements[0].config.main.url = config.url;
|
|
11625
11758
|
}
|
|
11626
11759
|
if (config.description) {
|
|
11627
|
-
card.elements[
|
|
11760
|
+
card.elements[3].config.main.heading = config.description;
|
|
11628
11761
|
}
|
|
11629
11762
|
return card;
|
|
11630
11763
|
};
|
|
@@ -11664,6 +11797,9 @@ const buildDate = (config2, componentScope2) => {
|
|
|
11664
11797
|
if (config2.layout) {
|
|
11665
11798
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11666
11799
|
}
|
|
11800
|
+
if (config2.variant) {
|
|
11801
|
+
dateInputField.config.main.variant = config2.variant;
|
|
11802
|
+
}
|
|
11667
11803
|
return dateInputField;
|
|
11668
11804
|
};
|
|
11669
11805
|
const buildDateTime = (config2, componentScope2) => {
|
|
@@ -11674,6 +11810,9 @@ const buildDateTime = (config2, componentScope2) => {
|
|
|
11674
11810
|
if (config2.layout) {
|
|
11675
11811
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11676
11812
|
}
|
|
11813
|
+
if (config2.variant) {
|
|
11814
|
+
dateTimeInputField.config.main.variant = config2.variant;
|
|
11815
|
+
}
|
|
11677
11816
|
return dateTimeInputField;
|
|
11678
11817
|
};
|
|
11679
11818
|
var RankCard = {
|
|
@@ -11918,9 +12057,15 @@ const buildLineGraph = (config2, componentScope2) => {
|
|
|
11918
12057
|
if (config2.leftLabel) {
|
|
11919
12058
|
lineGraph.config.main.leftLabel = config2.leftLabel;
|
|
11920
12059
|
}
|
|
12060
|
+
if (config2.disableLeftLabel) {
|
|
12061
|
+
lineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
12062
|
+
}
|
|
11921
12063
|
if (config2.legendHide) {
|
|
11922
12064
|
lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
11923
12065
|
}
|
|
12066
|
+
if (config2.legendDirection) {
|
|
12067
|
+
lineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
12068
|
+
}
|
|
11924
12069
|
if (config2.bottomAxisAngle) {
|
|
11925
12070
|
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
11926
12071
|
}
|
|
@@ -11943,8 +12088,7 @@ const RadioUiSchema = {
|
|
|
11943
12088
|
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11944
12089
|
main: {
|
|
11945
12090
|
label: "Enabled",
|
|
11946
|
-
options: ["YES", "NO"]
|
|
11947
|
-
errorMessage: "Enabled is not marked as YES or NO"
|
|
12091
|
+
options: ["YES", "NO"]
|
|
11948
12092
|
}
|
|
11949
12093
|
}
|
|
11950
12094
|
};
|
|
@@ -11961,6 +12105,9 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11961
12105
|
if (config2.style) {
|
|
11962
12106
|
Radio.config.style = JSON.parse(config2.style);
|
|
11963
12107
|
}
|
|
12108
|
+
if (config2.errorMessage) {
|
|
12109
|
+
Radio.config.main.errorMessage = config2.errorMessage;
|
|
12110
|
+
}
|
|
11964
12111
|
return Radio;
|
|
11965
12112
|
};
|
|
11966
12113
|
var emptyBox = {
|
|
@@ -11977,6 +12124,7 @@ var emptyBox = {
|
|
|
11977
12124
|
};
|
|
11978
12125
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11979
12126
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
12127
|
+
EmptyBox.scope = componentScope2;
|
|
11980
12128
|
if (config2.layout) {
|
|
11981
12129
|
EmptyBox.config.layout = createLayoutFormat(config2.layout);
|
|
11982
12130
|
}
|
|
@@ -11996,6 +12144,15 @@ const buildArray = (config2, componentScope2) => {
|
|
|
11996
12144
|
if (config2.allExpanded) {
|
|
11997
12145
|
array.config.main.allExpanded = config2.allExpanded === "YES" ? true : false;
|
|
11998
12146
|
}
|
|
12147
|
+
if (config2.disableAddButton) {
|
|
12148
|
+
array.config.main.disableAddButton = config2.disableAddButton === "YES" ? true : false;
|
|
12149
|
+
}
|
|
12150
|
+
if (config2.disableExpandAllButton) {
|
|
12151
|
+
array.config.main.disableExpandAllButton = config2.disableExpandAllButton === "YES" ? true : false;
|
|
12152
|
+
}
|
|
12153
|
+
if (config2.disableRowActions) {
|
|
12154
|
+
array.config.main.disableRowActions = config2.disableRowActions === "YES" ? true : false;
|
|
12155
|
+
}
|
|
11999
12156
|
if (config2.style) {
|
|
12000
12157
|
array.config.style = JSON.parse(config2.style);
|
|
12001
12158
|
}
|
|
@@ -12091,6 +12248,21 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12091
12248
|
if (config2.style) {
|
|
12092
12249
|
box.config.style = JSON.parse(config2.style);
|
|
12093
12250
|
}
|
|
12251
|
+
if (config2.variant) {
|
|
12252
|
+
box.config.main.variant = config2.variant;
|
|
12253
|
+
}
|
|
12254
|
+
if (config2.disableUpload) {
|
|
12255
|
+
box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
|
|
12256
|
+
}
|
|
12257
|
+
if (config2.disableDownload) {
|
|
12258
|
+
box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
|
|
12259
|
+
}
|
|
12260
|
+
if (config2.disableDelete) {
|
|
12261
|
+
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12262
|
+
}
|
|
12263
|
+
if (config2.description) {
|
|
12264
|
+
box.config.main.description = config2.description;
|
|
12265
|
+
}
|
|
12094
12266
|
return box;
|
|
12095
12267
|
};
|
|
12096
12268
|
const Stepper = {
|
|
@@ -12338,118 +12510,164 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12338
12510
|
}
|
|
12339
12511
|
return thought;
|
|
12340
12512
|
};
|
|
12513
|
+
var horizontalLayout = {
|
|
12514
|
+
type: "HorizontalLayout",
|
|
12515
|
+
config: {
|
|
12516
|
+
layout: 12,
|
|
12517
|
+
main: {
|
|
12518
|
+
rowSpacing: 3,
|
|
12519
|
+
divider: false
|
|
12520
|
+
},
|
|
12521
|
+
defaultStyle: true
|
|
12522
|
+
},
|
|
12523
|
+
elements: []
|
|
12524
|
+
};
|
|
12525
|
+
const buildHorizontalLayout = (config2, componentScope2) => {
|
|
12526
|
+
const horizontal = _.cloneDeep(horizontalLayout);
|
|
12527
|
+
horizontal.scope = componentScope2;
|
|
12528
|
+
if (config2.style) {
|
|
12529
|
+
horizontal.config.style = JSON.parse(config2.style);
|
|
12530
|
+
}
|
|
12531
|
+
if (config2.layout) {
|
|
12532
|
+
horizontal.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12533
|
+
}
|
|
12534
|
+
return horizontal;
|
|
12535
|
+
};
|
|
12536
|
+
const imageUiSchema = {
|
|
12537
|
+
type: "Control",
|
|
12538
|
+
scope: "#/properties/Logo",
|
|
12539
|
+
options: {
|
|
12540
|
+
widget: "Image"
|
|
12541
|
+
},
|
|
12542
|
+
config: {
|
|
12543
|
+
layout: 3,
|
|
12544
|
+
main: {
|
|
12545
|
+
url: ""
|
|
12546
|
+
},
|
|
12547
|
+
style: {}
|
|
12548
|
+
}
|
|
12549
|
+
};
|
|
12550
|
+
const buildImage = (config2, componentScope2) => {
|
|
12551
|
+
const image = _.cloneDeep(imageUiSchema);
|
|
12552
|
+
image.scope = componentScope2;
|
|
12553
|
+
image.config.main.url = config2.imageUrl;
|
|
12554
|
+
if (config2.layout) {
|
|
12555
|
+
image.config.layout = createLayoutFormat(config2.layout);
|
|
12556
|
+
}
|
|
12557
|
+
if (config2.style) {
|
|
12558
|
+
image.config.style = JSON.parse(config2.style);
|
|
12559
|
+
}
|
|
12560
|
+
if (config2.height) {
|
|
12561
|
+
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12562
|
+
}
|
|
12563
|
+
return image;
|
|
12564
|
+
};
|
|
12565
|
+
const cameraUiSchema = {
|
|
12566
|
+
type: "Control",
|
|
12567
|
+
scope: "#/properties/camera",
|
|
12568
|
+
options: {
|
|
12569
|
+
widget: "Camera"
|
|
12570
|
+
},
|
|
12571
|
+
config: {
|
|
12572
|
+
main: {
|
|
12573
|
+
label: "Upload Photo",
|
|
12574
|
+
multiUplaod: true
|
|
12575
|
+
}
|
|
12576
|
+
}
|
|
12577
|
+
};
|
|
12578
|
+
const buildCamera = (config2, componentScope2) => {
|
|
12579
|
+
const camera = _.cloneDeep(cameraUiSchema);
|
|
12580
|
+
camera.scope = componentScope2;
|
|
12581
|
+
if (config2.startIcon) {
|
|
12582
|
+
camera.config.main.startIcon = config2.iconName;
|
|
12583
|
+
}
|
|
12584
|
+
if (config2.layout) {
|
|
12585
|
+
camera.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12586
|
+
}
|
|
12587
|
+
if (config2.tooltipMessage) {
|
|
12588
|
+
camera.config.main.tooltipMessage = config2.tooltipMessage;
|
|
12589
|
+
}
|
|
12590
|
+
if (config2.style) {
|
|
12591
|
+
camera.config.style = JSON.parse(config2.style);
|
|
12592
|
+
}
|
|
12593
|
+
if (config2.size) {
|
|
12594
|
+
camera.config.main.size = config2.size;
|
|
12595
|
+
}
|
|
12596
|
+
if (config2.variant) {
|
|
12597
|
+
camera.config.main.variant = config2.variant;
|
|
12598
|
+
}
|
|
12599
|
+
if (config2.color) {
|
|
12600
|
+
camera.config.main.color = config2.color;
|
|
12601
|
+
}
|
|
12602
|
+
if (config2.label) {
|
|
12603
|
+
camera.config.main.name = config2.label;
|
|
12604
|
+
}
|
|
12605
|
+
return camera;
|
|
12606
|
+
};
|
|
12341
12607
|
let schema = {
|
|
12342
12608
|
type: "object",
|
|
12343
12609
|
properties: {},
|
|
12344
12610
|
required: []
|
|
12345
12611
|
};
|
|
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] = {
|
|
12612
|
+
function buildSchemaFromConfig(config2, parentSchema) {
|
|
12613
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
12614
|
+
if (config2.elements) {
|
|
12615
|
+
if (config2.type === "Array") {
|
|
12616
|
+
(_a = parentSchema.properties) != null ? _a : parentSchema.properties = {};
|
|
12617
|
+
(_d = (_b = parentSchema.properties)[_c = config2.name]) != null ? _d : _b[_c] = {
|
|
12618
|
+
type: "array",
|
|
12378
12619
|
items: {
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
12620
|
+
type: "object",
|
|
12621
|
+
properties: {},
|
|
12622
|
+
required: []
|
|
12382
12623
|
}
|
|
12383
12624
|
};
|
|
12625
|
+
const arrayItemSchema = parentSchema.properties[config2.name].items;
|
|
12626
|
+
(_e = config2.elements) == null ? void 0 : _e.forEach(
|
|
12627
|
+
(child) => buildSchemaFromConfig(child, arrayItemSchema)
|
|
12628
|
+
);
|
|
12629
|
+
return;
|
|
12630
|
+
} else {
|
|
12631
|
+
(_f = config2.elements) == null ? void 0 : _f.forEach(
|
|
12632
|
+
(child) => buildSchemaFromConfig(child, parentSchema)
|
|
12633
|
+
);
|
|
12634
|
+
return;
|
|
12384
12635
|
}
|
|
12385
12636
|
}
|
|
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
|
-
});
|
|
12637
|
+
(_g = parentSchema.properties) != null ? _g : parentSchema.properties = {};
|
|
12638
|
+
(_j = (_h = parentSchema.properties)[_i = config2.name]) != null ? _j : _h[_i] = {};
|
|
12639
|
+
const fieldSchema = parentSchema.properties[config2.name];
|
|
12640
|
+
(_k = config2.validation) == null ? void 0 : _k.forEach((v) => {
|
|
12641
|
+
var _a2;
|
|
12642
|
+
if (v.validationType === "required") {
|
|
12643
|
+
(_a2 = parentSchema.required) != null ? _a2 : parentSchema.required = [];
|
|
12644
|
+
parentSchema.required.push(config2.name);
|
|
12645
|
+
} else if (v.validationType === "readOnly") {
|
|
12646
|
+
fieldSchema.type = "string";
|
|
12647
|
+
fieldSchema.disabled = true;
|
|
12447
12648
|
} else {
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
});
|
|
12649
|
+
fieldSchema.type = "string";
|
|
12650
|
+
fieldSchema[v.validationType] = isNaN(v.validationValue) ? v.validationValue : Number(v.validationValue);
|
|
12451
12651
|
}
|
|
12652
|
+
});
|
|
12653
|
+
if (config2.type === "Select" && ((_l = config2.value) == null ? void 0 : _l.length)) {
|
|
12654
|
+
fieldSchema.oneOf = config2.value.map((v) => ({
|
|
12655
|
+
const: v.value,
|
|
12656
|
+
title: v.label
|
|
12657
|
+
}));
|
|
12658
|
+
}
|
|
12659
|
+
if (config2.type === "MultipleSelect" && ((_m = config2.value) == null ? void 0 : _m.length)) {
|
|
12660
|
+
fieldSchema.type = "array";
|
|
12661
|
+
fieldSchema.items = {
|
|
12662
|
+
oneOf: config2.value.map((v) => ({
|
|
12663
|
+
const: v.value,
|
|
12664
|
+
title: v.label
|
|
12665
|
+
}))
|
|
12666
|
+
};
|
|
12452
12667
|
}
|
|
12668
|
+
}
|
|
12669
|
+
const buildSchema = (config2) => {
|
|
12670
|
+
buildSchemaFromConfig(config2, schema);
|
|
12453
12671
|
return schema;
|
|
12454
12672
|
};
|
|
12455
12673
|
const buildUiSchema = (config2, store2) => {
|
|
@@ -12492,6 +12710,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12492
12710
|
case "WrapperSection":
|
|
12493
12711
|
elements = buildWrapperSection(config2, componentScope2);
|
|
12494
12712
|
break;
|
|
12713
|
+
case "HorizontalLayout":
|
|
12714
|
+
elements = buildHorizontalLayout(config2, componentScope2);
|
|
12715
|
+
break;
|
|
12495
12716
|
case "Text":
|
|
12496
12717
|
elements = buildTextField(config2, componentScope2);
|
|
12497
12718
|
break;
|
|
@@ -12529,7 +12750,7 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12529
12750
|
elements = buildDownloadFile(config2, componentScope2);
|
|
12530
12751
|
break;
|
|
12531
12752
|
case "EmptyBox":
|
|
12532
|
-
elements = buildEmptyBox(config2);
|
|
12753
|
+
elements = buildEmptyBox(config2, componentScope2);
|
|
12533
12754
|
break;
|
|
12534
12755
|
case "card":
|
|
12535
12756
|
elements = buildCard(config2, componentScope2, store2);
|
|
@@ -12592,6 +12813,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12592
12813
|
case "Thought":
|
|
12593
12814
|
elements = buildThoughtOfTheDay(config2, componentScope2);
|
|
12594
12815
|
break;
|
|
12816
|
+
case "Image":
|
|
12817
|
+
elements = buildImage(config2, componentScope2);
|
|
12818
|
+
break;
|
|
12819
|
+
case "Camera":
|
|
12820
|
+
elements = buildCamera(config2, componentScope2);
|
|
12821
|
+
break;
|
|
12595
12822
|
default:
|
|
12596
12823
|
schema = {
|
|
12597
12824
|
type: "object",
|
|
@@ -12602,7 +12829,17 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12602
12829
|
}
|
|
12603
12830
|
if (config2 == null ? void 0 : config2.elements) {
|
|
12604
12831
|
if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
|
|
12605
|
-
|
|
12832
|
+
const rowElements = [];
|
|
12833
|
+
config2.elements.map((cellElem) => {
|
|
12834
|
+
const commonProperties = {
|
|
12835
|
+
accessorKey: cellElem.name,
|
|
12836
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12837
|
+
header: cellElem.label || cellElem.name,
|
|
12838
|
+
columnKey: cellElem.columnKey
|
|
12839
|
+
};
|
|
12840
|
+
rowElements.push({ ...commonProperties });
|
|
12841
|
+
});
|
|
12842
|
+
elements.elements = rowElements;
|
|
12606
12843
|
} else if (config2.type == "ColumnGroup") {
|
|
12607
12844
|
const sizeMap = {};
|
|
12608
12845
|
if (config2.sizeHolder) {
|
|
@@ -12611,13 +12848,27 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12611
12848
|
});
|
|
12612
12849
|
}
|
|
12613
12850
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12614
|
-
|
|
12851
|
+
const commonProperties = {
|
|
12615
12852
|
accessorKey: cellElem.name,
|
|
12853
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12616
12854
|
header: cellElem.label || cellElem.name,
|
|
12617
12855
|
size: sizeMap[cellElem.name] || 180,
|
|
12618
|
-
|
|
12619
|
-
|
|
12856
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12857
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12858
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12859
|
+
columnKey: cellElem.columnKey,
|
|
12860
|
+
dateFormat: cellElem.dateFormat
|
|
12620
12861
|
};
|
|
12862
|
+
if (cellElem.type) {
|
|
12863
|
+
const tableElem = {
|
|
12864
|
+
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12865
|
+
...commonProperties,
|
|
12866
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12867
|
+
};
|
|
12868
|
+
return tableElem;
|
|
12869
|
+
} else {
|
|
12870
|
+
return { ...commonProperties };
|
|
12871
|
+
}
|
|
12621
12872
|
});
|
|
12622
12873
|
} else if (config2.type == "Table") {
|
|
12623
12874
|
const sizeMap = {};
|
|
@@ -12632,13 +12883,14 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12632
12883
|
config2.elements.filter((cellElem, elemInd) => {
|
|
12633
12884
|
const commonProperties = {
|
|
12634
12885
|
accessorKey: cellElem.name,
|
|
12635
|
-
type: cellElem.columnFormat,
|
|
12886
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12636
12887
|
header: cellElem.label || cellElem.name,
|
|
12637
12888
|
size: sizeMap[cellElem.name] || 180,
|
|
12638
12889
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12639
12890
|
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12640
12891
|
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12641
|
-
columnKey: cellElem.columnKey
|
|
12892
|
+
columnKey: cellElem.columnKey,
|
|
12893
|
+
dateFormat: cellElem.dateFormat
|
|
12642
12894
|
};
|
|
12643
12895
|
if (cellElem.type) {
|
|
12644
12896
|
if (cellElem.elementType == "action") {
|
|
@@ -12653,8 +12905,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12653
12905
|
}
|
|
12654
12906
|
const tableElem = {
|
|
12655
12907
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12656
|
-
|
|
12657
|
-
...
|
|
12908
|
+
...commonProperties,
|
|
12909
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12658
12910
|
};
|
|
12659
12911
|
rowElements.push(tableElem);
|
|
12660
12912
|
} else {
|
|
@@ -12672,5 +12924,5 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12672
12924
|
}
|
|
12673
12925
|
return elements;
|
|
12674
12926
|
};
|
|
12675
|
-
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|
|
12927
|
+
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|
|
12676
12928
|
//# sourceMappingURL=impaktapps-ui-builder.es.js.map
|