impaktapps-ui-builder 1.0.4 → 1.0.9-4.card.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/impaktapps-ui-builder.es.js +704 -684
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +14 -14
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildArray.d.ts +1 -11
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -1
- 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/uischema/apiSection.d.ts +1 -3
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +9 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +6 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +82 -72
- 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/refresh.d.ts +0 -3
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +14 -65
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +48 -38
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +0 -3
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +3 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +31 -15
- package/src/impaktapps-ui-builder/builder/build/buildButton.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +20 -16
- package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +2 -2
- 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/buildFileInput.ts +4 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +1 -1
- 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 +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +27 -14
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/array.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +4 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +146 -130
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +5 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +58 -119
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +30 -54
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +29 -54
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +58 -113
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +51 -15
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +60 -118
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -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 +9 -4
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
- package/src/impaktapps-ui-builder/builder/services/component.ts +10 -4
- package/src/impaktapps-ui-builder/runtime/services/service.ts +22 -118
|
@@ -44,7 +44,7 @@ const PageMasterSchema = {
|
|
|
44
44
|
disabled: true
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
required: ["
|
|
47
|
+
required: ["name", "label"]
|
|
48
48
|
};
|
|
49
49
|
const PageMasterUiSchema = (theme) => {
|
|
50
50
|
var _a;
|
|
@@ -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
|
}
|
|
@@ -6256,6 +6226,7 @@ const ComponentSchema = {
|
|
|
6256
6226
|
{ title: "Data Card", const: "card" },
|
|
6257
6227
|
{ title: "Check Box", const: "CheckBox" },
|
|
6258
6228
|
{ title: "Container", const: "WrapperSection" },
|
|
6229
|
+
{ title: "Tab Container", const: "HorizontalLayout" },
|
|
6259
6230
|
{ title: "Data Grid", const: "DataGrid" },
|
|
6260
6231
|
{ title: "Date", const: "Date" },
|
|
6261
6232
|
{ title: "Time Stamp", const: "DateTime" },
|
|
@@ -6263,6 +6234,7 @@ const ComponentSchema = {
|
|
|
6263
6234
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
6264
6235
|
{ title: "File Handler", const: "FileInput" },
|
|
6265
6236
|
{ title: "Graph", const: "Graph" },
|
|
6237
|
+
{ title: "Image", const: "Image" },
|
|
6266
6238
|
{ title: "Input Slider", const: "InputSlider" },
|
|
6267
6239
|
{ title: "Label", const: "Box" },
|
|
6268
6240
|
{ title: "Leaderboard", const: "LeaderBoard" },
|
|
@@ -6304,6 +6276,13 @@ const ComponentSchema = {
|
|
|
6304
6276
|
{ title: "Amount Column", const: "amount" }
|
|
6305
6277
|
]
|
|
6306
6278
|
},
|
|
6279
|
+
variant: {
|
|
6280
|
+
oneOf: [
|
|
6281
|
+
{ title: "Outlined", const: "outlined" },
|
|
6282
|
+
{ title: "Filled", const: "filled" },
|
|
6283
|
+
{ title: "Standard", const: "standard" }
|
|
6284
|
+
]
|
|
6285
|
+
},
|
|
6307
6286
|
orientation: {
|
|
6308
6287
|
oneOf: [
|
|
6309
6288
|
{ title: "Horizontal", const: "horizontal" },
|
|
@@ -6386,20 +6365,6 @@ const ComponentSchema = {
|
|
|
6386
6365
|
}
|
|
6387
6366
|
}
|
|
6388
6367
|
},
|
|
6389
|
-
events: {
|
|
6390
|
-
type: "array",
|
|
6391
|
-
items: {
|
|
6392
|
-
type: "object",
|
|
6393
|
-
properties: {
|
|
6394
|
-
eventType: {
|
|
6395
|
-
type: "string"
|
|
6396
|
-
},
|
|
6397
|
-
configType: {
|
|
6398
|
-
type: "string"
|
|
6399
|
-
}
|
|
6400
|
-
}
|
|
6401
|
-
}
|
|
6402
|
-
},
|
|
6403
6368
|
sectionLabels: {
|
|
6404
6369
|
type: "array",
|
|
6405
6370
|
items: {
|
|
@@ -6564,7 +6529,34 @@ const ComponentSchema = {
|
|
|
6564
6529
|
{ title: "Error Icon", const: "ErrorIcon" },
|
|
6565
6530
|
{ title: "Refresh Icon", const: "RefreshIcon" },
|
|
6566
6531
|
{ title: "Download Icon", const: "DownloadIcon" },
|
|
6567
|
-
{ title: "
|
|
6532
|
+
{ title: "Download All Icon", const: "DownloadAllIcon" },
|
|
6533
|
+
{ title: "Exception Icon", const: "ExceptionIcon" },
|
|
6534
|
+
{ "title": "Alarm Icon", "const": "AlarmIcon" },
|
|
6535
|
+
{ "title": "Click Icon", "const": "ClickIcon" },
|
|
6536
|
+
{ "title": "Content Copy Icon", "const": "ContentCopyIcon" },
|
|
6537
|
+
{ "title": "File Copy Icon", "const": "FileCopyIcon" },
|
|
6538
|
+
{ "title": "Pause Icon", "const": "PauseIcon" },
|
|
6539
|
+
{ "title": "Play Icon", "const": "PlayIcon" },
|
|
6540
|
+
{ "title": "Close Icon", "const": "CloseIcon" },
|
|
6541
|
+
{ "title": "Replay Icon", "const": "ReplayIcon" },
|
|
6542
|
+
{ "title": "Delete Icon", "const": "DeleteIcon" },
|
|
6543
|
+
{ "title": "Drafts Icon", "const": "DraftsIcon" },
|
|
6544
|
+
{ "title": "Perm Phone Msg Icon", "const": "PermPhoneMsgIcon" },
|
|
6545
|
+
{ "title": "Paste Icon", "const": "PasteIcon" },
|
|
6546
|
+
{ "title": "Prev Icon", "const": "PrevIcon" },
|
|
6547
|
+
{ "title": "Verified Icon", "const": "VerifiedIcon" },
|
|
6548
|
+
{ "title": "Table Add Icon", "const": "TableAddIcon" },
|
|
6549
|
+
{ "title": "Table Download Icon", "const": "TableDownloadIcon" },
|
|
6550
|
+
{ "title": "Audit Trail Icon", "const": "AuditTrailIcon" },
|
|
6551
|
+
{ "title": "View Component", "const": "View" },
|
|
6552
|
+
{ "title": "Table Edit Icon", "const": "TableEditIcon" },
|
|
6553
|
+
{ "title": "Maximize Icon", "const": "Maximize" },
|
|
6554
|
+
{ "title": "Minimize Icon", "const": "Minimize" },
|
|
6555
|
+
{ "title": "Subtract Icon", "const": "Subtract" },
|
|
6556
|
+
{ "title": "Bin Icon", "const": "Bin" },
|
|
6557
|
+
{ "title": "Export Icon", "const": "Export" },
|
|
6558
|
+
{ "title": "Table Paste Icon", "const": "TablePaste" },
|
|
6559
|
+
{ "title": "Clone Icon", "const": "CloneIcon" }
|
|
6568
6560
|
]
|
|
6569
6561
|
},
|
|
6570
6562
|
color: {
|
|
@@ -6693,53 +6685,64 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6693
6685
|
{
|
|
6694
6686
|
type: "Control",
|
|
6695
6687
|
scope: "#/properties/layout",
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6688
|
+
config: {
|
|
6689
|
+
layout: 12,
|
|
6690
|
+
main: {
|
|
6691
|
+
label: "Layout",
|
|
6692
|
+
childElementLabel: "Layout"
|
|
6693
|
+
},
|
|
6694
|
+
style: {
|
|
6695
|
+
marginLeft: "-24px",
|
|
6696
|
+
marginBottom: "24px !important",
|
|
6697
|
+
labelStyle: {
|
|
6698
|
+
marginLeft: "24px"
|
|
6699
|
+
},
|
|
6700
|
+
detailsStyle: {
|
|
6701
|
+
marginLeft: "24px"
|
|
6702
|
+
}
|
|
6703
|
+
}
|
|
6704
|
+
},
|
|
6705
|
+
elements: [
|
|
6706
|
+
{
|
|
6707
|
+
type: "Control",
|
|
6708
|
+
scope: "#/properties/key",
|
|
6709
|
+
options: {
|
|
6710
|
+
widget: "SelectInputField"
|
|
6711
|
+
},
|
|
6712
|
+
config: {
|
|
6713
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6714
|
+
main: {
|
|
6715
|
+
label: "Screen Size"
|
|
6716
|
+
}
|
|
6717
|
+
}
|
|
6718
|
+
},
|
|
6719
|
+
{
|
|
6720
|
+
type: "Control",
|
|
6721
|
+
scope: "#/properties/value",
|
|
6722
|
+
options: {
|
|
6723
|
+
widget: "InputField"
|
|
6724
|
+
},
|
|
6725
|
+
config: {
|
|
6726
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6727
|
+
main: {
|
|
6728
|
+
label: "Value",
|
|
6729
|
+
type: "number",
|
|
6730
|
+
helperText: "Number should be in range of 0 to 12",
|
|
6731
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
6739
6732
|
}
|
|
6740
|
-
|
|
6733
|
+
}
|
|
6734
|
+
},
|
|
6735
|
+
{
|
|
6736
|
+
type: "Control",
|
|
6737
|
+
scope: "#/properties/proc",
|
|
6738
|
+
config: {
|
|
6739
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
6740
|
+
},
|
|
6741
|
+
options: {
|
|
6742
|
+
widget: "EmptyBox"
|
|
6743
|
+
}
|
|
6741
6744
|
}
|
|
6742
|
-
|
|
6745
|
+
]
|
|
6743
6746
|
}
|
|
6744
6747
|
]
|
|
6745
6748
|
}
|
|
@@ -7204,54 +7207,64 @@ const CoreSection = {
|
|
|
7204
7207
|
{
|
|
7205
7208
|
type: "Control",
|
|
7206
7209
|
scope: "#/properties/layout",
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
label: "Value",
|
|
7236
|
-
type: "number",
|
|
7237
|
-
helperText: "Number should be in range of 0 to 12",
|
|
7238
|
-
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7239
|
-
}
|
|
7240
|
-
}
|
|
7241
|
-
},
|
|
7242
|
-
{
|
|
7243
|
-
type: "Control",
|
|
7244
|
-
scope: "#/properties/proc",
|
|
7245
|
-
config: {
|
|
7246
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7247
|
-
},
|
|
7248
|
-
options: {
|
|
7249
|
-
widget: "EmptyBox"
|
|
7250
|
-
}
|
|
7210
|
+
config: {
|
|
7211
|
+
layout: 12,
|
|
7212
|
+
main: {
|
|
7213
|
+
label: "Layout",
|
|
7214
|
+
childElementLabel: "Layout"
|
|
7215
|
+
},
|
|
7216
|
+
style: {
|
|
7217
|
+
marginLeft: "-24px",
|
|
7218
|
+
marginBottom: "24px !important",
|
|
7219
|
+
labelStyle: {
|
|
7220
|
+
marginLeft: "24px"
|
|
7221
|
+
},
|
|
7222
|
+
detailsStyle: {
|
|
7223
|
+
marginLeft: "24px"
|
|
7224
|
+
}
|
|
7225
|
+
}
|
|
7226
|
+
},
|
|
7227
|
+
elements: [
|
|
7228
|
+
{
|
|
7229
|
+
type: "Control",
|
|
7230
|
+
scope: "#/properties/key",
|
|
7231
|
+
options: {
|
|
7232
|
+
widget: "SelectInputField"
|
|
7233
|
+
},
|
|
7234
|
+
config: {
|
|
7235
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7236
|
+
main: {
|
|
7237
|
+
label: "Screen Size"
|
|
7251
7238
|
}
|
|
7252
|
-
|
|
7239
|
+
}
|
|
7240
|
+
},
|
|
7241
|
+
{
|
|
7242
|
+
type: "Control",
|
|
7243
|
+
scope: "#/properties/value",
|
|
7244
|
+
options: {
|
|
7245
|
+
widget: "InputField"
|
|
7246
|
+
},
|
|
7247
|
+
config: {
|
|
7248
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7249
|
+
main: {
|
|
7250
|
+
label: "Value",
|
|
7251
|
+
type: "number",
|
|
7252
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7253
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7254
|
+
}
|
|
7255
|
+
}
|
|
7256
|
+
},
|
|
7257
|
+
{
|
|
7258
|
+
type: "Control",
|
|
7259
|
+
scope: "#/properties/proc",
|
|
7260
|
+
config: {
|
|
7261
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7262
|
+
},
|
|
7263
|
+
options: {
|
|
7264
|
+
widget: "EmptyBox"
|
|
7265
|
+
}
|
|
7253
7266
|
}
|
|
7254
|
-
|
|
7267
|
+
]
|
|
7255
7268
|
}
|
|
7256
7269
|
]
|
|
7257
7270
|
};
|
|
@@ -7328,95 +7341,71 @@ const EventSection = (theme) => {
|
|
|
7328
7341
|
disableAction: true,
|
|
7329
7342
|
disableSelection: true,
|
|
7330
7343
|
enableDrag: true
|
|
7331
|
-
}
|
|
7332
|
-
},
|
|
7333
|
-
elements: [
|
|
7334
|
-
{
|
|
7335
|
-
accessorKey: "eventType",
|
|
7336
|
-
header: "Event's Type",
|
|
7337
|
-
type: "string",
|
|
7338
|
-
size: 300
|
|
7339
7344
|
},
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
header: "Handler",
|
|
7343
|
-
type: "string",
|
|
7344
|
-
size: 200
|
|
7345
|
-
},
|
|
7346
|
-
{
|
|
7347
|
-
accessorKey: "Edit_Approve_Records",
|
|
7348
|
-
header: "Edit",
|
|
7349
|
-
size: 150,
|
|
7350
|
-
type: "action",
|
|
7351
|
-
widget: {
|
|
7345
|
+
action: [
|
|
7346
|
+
{
|
|
7352
7347
|
type: "Control",
|
|
7353
7348
|
scope: "#/properties/Edit_Records",
|
|
7354
7349
|
options: {
|
|
7355
|
-
widget: "
|
|
7350
|
+
widget: "Button"
|
|
7356
7351
|
},
|
|
7357
7352
|
config: {
|
|
7358
7353
|
main: {
|
|
7359
7354
|
size: "small",
|
|
7360
|
-
|
|
7355
|
+
startIcon: "EditIcon",
|
|
7361
7356
|
tooltipMessage: "Edit This Record",
|
|
7362
|
-
onClick: "eventEditHandler"
|
|
7363
|
-
|
|
7364
|
-
style: {
|
|
7365
|
-
fill: theme.palette.primary.main,
|
|
7366
|
-
"& :hover": {
|
|
7367
|
-
fill: theme.palette.primary.dark
|
|
7368
|
-
}
|
|
7357
|
+
onClick: "eventEditHandler",
|
|
7358
|
+
name: "Edit"
|
|
7369
7359
|
}
|
|
7370
7360
|
}
|
|
7371
|
-
}
|
|
7372
|
-
|
|
7373
|
-
{
|
|
7374
|
-
accessorKey: "Reject_Records",
|
|
7375
|
-
header: "Delete",
|
|
7376
|
-
size: 150,
|
|
7377
|
-
type: "action",
|
|
7378
|
-
widget: {
|
|
7361
|
+
},
|
|
7362
|
+
{
|
|
7379
7363
|
type: "Control",
|
|
7380
7364
|
scope: "#/properties/RejectButton",
|
|
7381
7365
|
accessorKeyName: "Reject_Records",
|
|
7382
7366
|
options: {
|
|
7383
|
-
widget: "
|
|
7367
|
+
widget: "Button"
|
|
7384
7368
|
},
|
|
7385
7369
|
config: {
|
|
7386
7370
|
main: {
|
|
7387
|
-
|
|
7371
|
+
startIcon: "Bin",
|
|
7388
7372
|
tooltipMessage: "Reject This Record",
|
|
7389
|
-
onClick: "deletePopUpEvent"
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
fill: theme.palette.primary.main,
|
|
7393
|
-
"& :hover": {
|
|
7394
|
-
fill: theme.palette.primary.dark
|
|
7395
|
-
}
|
|
7373
|
+
onClick: "deletePopUpEvent",
|
|
7374
|
+
name: "Delete",
|
|
7375
|
+
size: "small"
|
|
7396
7376
|
}
|
|
7397
7377
|
}
|
|
7398
|
-
}
|
|
7399
|
-
|
|
7400
|
-
{
|
|
7401
|
-
header: "Copy",
|
|
7402
|
-
field: "Copy_Event",
|
|
7403
|
-
size: 150,
|
|
7404
|
-
type: "action",
|
|
7405
|
-
widget: {
|
|
7378
|
+
},
|
|
7379
|
+
{
|
|
7406
7380
|
type: "Control",
|
|
7407
7381
|
scope: "#/properties/Copy_Event",
|
|
7408
7382
|
options: {
|
|
7409
|
-
widget: "
|
|
7383
|
+
widget: "Button"
|
|
7410
7384
|
},
|
|
7411
7385
|
config: {
|
|
7412
7386
|
main: {
|
|
7413
|
-
|
|
7387
|
+
startIcon: "FileCopyIcon",
|
|
7414
7388
|
onClick: "copyPasteElement",
|
|
7415
7389
|
tooltipMessage: "Reject This Record",
|
|
7416
|
-
styleDefault:
|
|
7390
|
+
styleDefault: false,
|
|
7391
|
+
name: "Copy"
|
|
7417
7392
|
}
|
|
7418
7393
|
}
|
|
7419
7394
|
}
|
|
7395
|
+
]
|
|
7396
|
+
},
|
|
7397
|
+
elements: [
|
|
7398
|
+
{
|
|
7399
|
+
accessorKey: "eventType",
|
|
7400
|
+
header: "Event's Type",
|
|
7401
|
+
type: "string",
|
|
7402
|
+
size: 300
|
|
7403
|
+
},
|
|
7404
|
+
{
|
|
7405
|
+
accessorKey: "Handler",
|
|
7406
|
+
header: "Handler",
|
|
7407
|
+
type: "string",
|
|
7408
|
+
size: 200
|
|
7420
7409
|
}
|
|
7421
7410
|
]
|
|
7422
7411
|
}
|
|
@@ -7451,44 +7440,55 @@ const emptyBox$1 = (scope, layout) => {
|
|
|
7451
7440
|
const cardLayout = {
|
|
7452
7441
|
type: "Control",
|
|
7453
7442
|
scope: "#/properties/cardLayout",
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
|
-
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
}
|
|
7470
|
-
}
|
|
7471
|
-
},
|
|
7472
|
-
{
|
|
7473
|
-
type: "Control",
|
|
7474
|
-
scope: "#/properties/value",
|
|
7475
|
-
options: {
|
|
7476
|
-
widget: "InputField"
|
|
7477
|
-
},
|
|
7478
|
-
config: {
|
|
7479
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7480
|
-
main: {
|
|
7481
|
-
label: "Value",
|
|
7482
|
-
type: "number",
|
|
7483
|
-
helperText: "Number should be in range of 0 to 12",
|
|
7484
|
-
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7485
|
-
}
|
|
7486
|
-
}
|
|
7487
|
-
},
|
|
7488
|
-
emptyBox$1("cardEmpty")
|
|
7489
|
-
]
|
|
7443
|
+
config: {
|
|
7444
|
+
layout: 12,
|
|
7445
|
+
main: {
|
|
7446
|
+
label: "Card Layout",
|
|
7447
|
+
childElementLabel: "Card Layout"
|
|
7448
|
+
},
|
|
7449
|
+
style: {
|
|
7450
|
+
marginLeft: "-24px",
|
|
7451
|
+
marginBottom: "24px !important",
|
|
7452
|
+
labelStyle: {
|
|
7453
|
+
marginLeft: "24px"
|
|
7454
|
+
},
|
|
7455
|
+
detailsStyle: {
|
|
7456
|
+
marginLeft: "24px"
|
|
7457
|
+
}
|
|
7490
7458
|
}
|
|
7491
|
-
}
|
|
7459
|
+
},
|
|
7460
|
+
elements: [
|
|
7461
|
+
{
|
|
7462
|
+
type: "Control",
|
|
7463
|
+
scope: "#/properties/key",
|
|
7464
|
+
options: {
|
|
7465
|
+
widget: "SelectInputField"
|
|
7466
|
+
},
|
|
7467
|
+
config: {
|
|
7468
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7469
|
+
main: {
|
|
7470
|
+
label: "Screen Size"
|
|
7471
|
+
}
|
|
7472
|
+
}
|
|
7473
|
+
},
|
|
7474
|
+
{
|
|
7475
|
+
type: "Control",
|
|
7476
|
+
scope: "#/properties/value",
|
|
7477
|
+
options: {
|
|
7478
|
+
widget: "InputField"
|
|
7479
|
+
},
|
|
7480
|
+
config: {
|
|
7481
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7482
|
+
main: {
|
|
7483
|
+
label: "Value",
|
|
7484
|
+
type: "number",
|
|
7485
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7486
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7487
|
+
}
|
|
7488
|
+
}
|
|
7489
|
+
},
|
|
7490
|
+
emptyBox$1("cardEmpty")
|
|
7491
|
+
]
|
|
7492
7492
|
};
|
|
7493
7493
|
const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
7494
7494
|
return {
|
|
@@ -7654,6 +7654,16 @@ const BaseSection = {
|
|
|
7654
7654
|
const buildPropertiesSection = function(type) {
|
|
7655
7655
|
let uiSchema = _.cloneDeep(BaseSection);
|
|
7656
7656
|
switch (type) {
|
|
7657
|
+
case "Array":
|
|
7658
|
+
uiSchema.elements = [
|
|
7659
|
+
getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
|
|
7660
|
+
getRadioInputField("disableAddButton", "Disable Add Button", ["YES", "NO"]),
|
|
7661
|
+
getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
|
|
7662
|
+
getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
|
|
7663
|
+
getInputField("childElementLabel", "Child Element Label"),
|
|
7664
|
+
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
7665
|
+
];
|
|
7666
|
+
break;
|
|
7657
7667
|
case "TreeMap":
|
|
7658
7668
|
uiSchema.elements = [
|
|
7659
7669
|
getSelectField("orientation", "orientation"),
|
|
@@ -7708,8 +7718,10 @@ const buildPropertiesSection = function(type) {
|
|
|
7708
7718
|
uiSchema.elements = [
|
|
7709
7719
|
getInputField("placeholder", "Placeholder"),
|
|
7710
7720
|
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7711
|
-
|
|
7712
|
-
|
|
7721
|
+
getSelectField("variant", "Variant"),
|
|
7722
|
+
emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 }),
|
|
7723
|
+
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
|
|
7724
|
+
getInputField("keyName", "Event Key Name")
|
|
7713
7725
|
];
|
|
7714
7726
|
break;
|
|
7715
7727
|
case "TextArea":
|
|
@@ -7784,6 +7796,12 @@ const buildPropertiesSection = function(type) {
|
|
|
7784
7796
|
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7785
7797
|
];
|
|
7786
7798
|
break;
|
|
7799
|
+
case "Box":
|
|
7800
|
+
uiSchema.elements = [
|
|
7801
|
+
getSelectField("iconName", "Icon Name"),
|
|
7802
|
+
emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
|
|
7803
|
+
];
|
|
7804
|
+
break;
|
|
7787
7805
|
case "Graph":
|
|
7788
7806
|
uiSchema.elements = [
|
|
7789
7807
|
getInputField("height", "Height"),
|
|
@@ -7860,21 +7878,47 @@ const buildPropertiesSection = function(type) {
|
|
|
7860
7878
|
uiSchema.elements = [
|
|
7861
7879
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7862
7880
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
7881
|
+
getSelectField("variant", "Variant"),
|
|
7863
7882
|
emptyBox$1("SelectEmpty")
|
|
7864
7883
|
];
|
|
7865
7884
|
break;
|
|
7866
7885
|
case "MultipleSelect":
|
|
7867
7886
|
uiSchema.elements = [
|
|
7868
7887
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7888
|
+
getSelectField("variant", "Variant"),
|
|
7869
7889
|
emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
|
|
7870
7890
|
emptyBox$1("MultipleSelectEmpty2")
|
|
7871
7891
|
];
|
|
7872
7892
|
break;
|
|
7893
|
+
case "Date":
|
|
7894
|
+
uiSchema.elements = [
|
|
7895
|
+
getSelectField("variant", "Variant"),
|
|
7896
|
+
emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
7897
|
+
];
|
|
7898
|
+
break;
|
|
7899
|
+
case "DateTime":
|
|
7900
|
+
uiSchema.elements = [
|
|
7901
|
+
getSelectField("variant", "Variant"),
|
|
7902
|
+
emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
7903
|
+
];
|
|
7904
|
+
break;
|
|
7873
7905
|
case "Thought":
|
|
7874
7906
|
uiSchema.elements = [
|
|
7875
7907
|
getTextArea("thought", "Today's thought", false)
|
|
7876
7908
|
];
|
|
7877
7909
|
break;
|
|
7910
|
+
case "Image":
|
|
7911
|
+
uiSchema.elements = [
|
|
7912
|
+
getInputField("imageUrl", "Image URL"),
|
|
7913
|
+
getInputField("height", "Image Height"),
|
|
7914
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
7915
|
+
];
|
|
7916
|
+
break;
|
|
7917
|
+
case "FileInput":
|
|
7918
|
+
uiSchema.elements = [
|
|
7919
|
+
getRadioInputField("variant", "Variant", ["Outlined", "Standard"])
|
|
7920
|
+
];
|
|
7921
|
+
break;
|
|
7878
7922
|
}
|
|
7879
7923
|
return uiSchema;
|
|
7880
7924
|
};
|
|
@@ -7985,94 +8029,69 @@ const TableSection = (theme) => {
|
|
|
7985
8029
|
disableAction: true,
|
|
7986
8030
|
disableSelection: true,
|
|
7987
8031
|
enableDrag: true
|
|
7988
|
-
}
|
|
7989
|
-
},
|
|
7990
|
-
elements: [
|
|
7991
|
-
{
|
|
7992
|
-
accessorKey: "name",
|
|
7993
|
-
header: "Name",
|
|
7994
|
-
type: "string",
|
|
7995
|
-
size: 300
|
|
7996
|
-
},
|
|
7997
|
-
{
|
|
7998
|
-
accessorKey: "type",
|
|
7999
|
-
header: "Type",
|
|
8000
|
-
type: "string",
|
|
8001
|
-
size: 200
|
|
8002
8032
|
},
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
field: "Reject_Records",
|
|
8006
|
-
size: 150,
|
|
8007
|
-
type: "action",
|
|
8008
|
-
widget: {
|
|
8033
|
+
action: [
|
|
8034
|
+
{
|
|
8009
8035
|
type: "Control",
|
|
8010
8036
|
scope: "#/properties/RejectButton",
|
|
8011
8037
|
options: {
|
|
8012
|
-
widget: "
|
|
8038
|
+
widget: "Button"
|
|
8013
8039
|
},
|
|
8014
8040
|
config: {
|
|
8015
8041
|
main: {
|
|
8016
|
-
|
|
8042
|
+
startIcon: "EditIcon",
|
|
8017
8043
|
size: "small",
|
|
8018
8044
|
onClick: "editComponents",
|
|
8019
|
-
tooltipMessage: "Reject This Record"
|
|
8020
|
-
|
|
8021
|
-
style: {
|
|
8022
|
-
fill: theme.palette.primary.main,
|
|
8023
|
-
"& :hover": {
|
|
8024
|
-
fill: theme.palette.primary.dark
|
|
8025
|
-
}
|
|
8045
|
+
tooltipMessage: "Reject This Record",
|
|
8046
|
+
name: "Edit"
|
|
8026
8047
|
}
|
|
8027
8048
|
}
|
|
8028
|
-
}
|
|
8029
|
-
|
|
8030
|
-
{
|
|
8031
|
-
header: "Delete",
|
|
8032
|
-
field: "Reject_Records",
|
|
8033
|
-
size: 150,
|
|
8034
|
-
type: "action",
|
|
8035
|
-
widget: {
|
|
8049
|
+
},
|
|
8050
|
+
{
|
|
8036
8051
|
type: "Control",
|
|
8037
8052
|
scope: "#/properties/RejectButton",
|
|
8038
8053
|
options: {
|
|
8039
|
-
widget: "
|
|
8054
|
+
widget: "Button"
|
|
8040
8055
|
},
|
|
8041
8056
|
config: {
|
|
8042
8057
|
main: {
|
|
8043
|
-
|
|
8058
|
+
startIcon: "Bin",
|
|
8044
8059
|
onClick: "deletePopUpComponent",
|
|
8045
|
-
tooltipMessage: "Reject This Record"
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
fill: theme.palette.primary.main,
|
|
8049
|
-
"& :hover": {
|
|
8050
|
-
fill: theme.palette.primary.dark
|
|
8051
|
-
}
|
|
8060
|
+
tooltipMessage: "Reject This Record",
|
|
8061
|
+
name: "Delete",
|
|
8062
|
+
size: "small"
|
|
8052
8063
|
}
|
|
8053
8064
|
}
|
|
8054
|
-
}
|
|
8055
|
-
|
|
8056
|
-
{
|
|
8057
|
-
header: "Copy",
|
|
8058
|
-
field: "Copy_Component",
|
|
8059
|
-
size: 150,
|
|
8060
|
-
type: "action",
|
|
8061
|
-
widget: {
|
|
8065
|
+
},
|
|
8066
|
+
{
|
|
8062
8067
|
type: "Control",
|
|
8063
8068
|
scope: "#/properties/Copy_Component",
|
|
8064
8069
|
options: {
|
|
8065
|
-
widget: "
|
|
8070
|
+
widget: "Button"
|
|
8066
8071
|
},
|
|
8067
8072
|
config: {
|
|
8068
8073
|
main: {
|
|
8069
|
-
|
|
8074
|
+
startIcon: "FileCopyIcon",
|
|
8070
8075
|
onClick: "copyPasteElement",
|
|
8071
|
-
styleDefault:
|
|
8072
|
-
|
|
8076
|
+
styleDefault: false,
|
|
8077
|
+
name: "Copy"
|
|
8073
8078
|
}
|
|
8074
8079
|
}
|
|
8075
8080
|
}
|
|
8081
|
+
]
|
|
8082
|
+
},
|
|
8083
|
+
elements: [
|
|
8084
|
+
{
|
|
8085
|
+
accessorKey: "name",
|
|
8086
|
+
header: "Name",
|
|
8087
|
+
type: "string",
|
|
8088
|
+
size: 300
|
|
8089
|
+
},
|
|
8090
|
+
{
|
|
8091
|
+
accessorKey: "type",
|
|
8092
|
+
header: "Type",
|
|
8093
|
+
type: "string",
|
|
8094
|
+
size: 200
|
|
8076
8095
|
}
|
|
8077
8096
|
]
|
|
8078
8097
|
}
|
|
@@ -8092,9 +8111,6 @@ const ValueTab = {
|
|
|
8092
8111
|
{
|
|
8093
8112
|
type: "Control",
|
|
8094
8113
|
scope: "#/properties/value",
|
|
8095
|
-
options: {
|
|
8096
|
-
widget: "Array"
|
|
8097
|
-
},
|
|
8098
8114
|
config: {
|
|
8099
8115
|
layout: 12,
|
|
8100
8116
|
main: {
|
|
@@ -8165,51 +8181,61 @@ const ValidationSection = {
|
|
|
8165
8181
|
{
|
|
8166
8182
|
type: "Control",
|
|
8167
8183
|
scope: "#/properties/validation",
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
label: "Validation Value"
|
|
8197
|
-
}
|
|
8198
|
-
}
|
|
8199
|
-
},
|
|
8200
|
-
{
|
|
8201
|
-
type: "Control",
|
|
8202
|
-
scope: "#/properties/emptyBox",
|
|
8203
|
-
options: {
|
|
8204
|
-
widget: "EmptyBox"
|
|
8205
|
-
},
|
|
8206
|
-
config: {
|
|
8207
|
-
layout: { xs: 0, sm: 0, md: 4 }
|
|
8208
|
-
}
|
|
8184
|
+
config: {
|
|
8185
|
+
layout: 12,
|
|
8186
|
+
main: {
|
|
8187
|
+
label: "Validation",
|
|
8188
|
+
childElementLabel: "Validation"
|
|
8189
|
+
},
|
|
8190
|
+
style: {
|
|
8191
|
+
marginLeft: "-24px",
|
|
8192
|
+
marginBottom: "24px !important",
|
|
8193
|
+
labelStyle: {
|
|
8194
|
+
marginLeft: "24px"
|
|
8195
|
+
},
|
|
8196
|
+
detailsStyle: {
|
|
8197
|
+
marginLeft: "24px"
|
|
8198
|
+
}
|
|
8199
|
+
}
|
|
8200
|
+
},
|
|
8201
|
+
elements: [
|
|
8202
|
+
{
|
|
8203
|
+
type: "Control",
|
|
8204
|
+
scope: "#/properties/validationType",
|
|
8205
|
+
options: {
|
|
8206
|
+
widget: "SelectInputField"
|
|
8207
|
+
},
|
|
8208
|
+
config: {
|
|
8209
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8210
|
+
main: {
|
|
8211
|
+
label: "Validation Type"
|
|
8209
8212
|
}
|
|
8210
|
-
|
|
8213
|
+
}
|
|
8214
|
+
},
|
|
8215
|
+
{
|
|
8216
|
+
type: "Control",
|
|
8217
|
+
scope: "#/properties/validationValue",
|
|
8218
|
+
options: {
|
|
8219
|
+
widget: "InputField"
|
|
8220
|
+
},
|
|
8221
|
+
config: {
|
|
8222
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8223
|
+
main: {
|
|
8224
|
+
label: "Validation Value"
|
|
8225
|
+
}
|
|
8226
|
+
}
|
|
8227
|
+
},
|
|
8228
|
+
{
|
|
8229
|
+
type: "Control",
|
|
8230
|
+
scope: "#/properties/emptyBox",
|
|
8231
|
+
options: {
|
|
8232
|
+
widget: "EmptyBox"
|
|
8233
|
+
},
|
|
8234
|
+
config: {
|
|
8235
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8236
|
+
}
|
|
8211
8237
|
}
|
|
8212
|
-
|
|
8238
|
+
]
|
|
8213
8239
|
}
|
|
8214
8240
|
]
|
|
8215
8241
|
};
|
|
@@ -8235,22 +8261,21 @@ var buildConfig = (FormData) => {
|
|
|
8235
8261
|
component = { ...formData, ...component };
|
|
8236
8262
|
return component;
|
|
8237
8263
|
};
|
|
8238
|
-
const createLayoutFormat = (
|
|
8239
|
-
if (_.isEmpty(
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
sm: 12,
|
|
8243
|
-
|
|
8244
|
-
lg:
|
|
8245
|
-
}
|
|
8264
|
+
const createLayoutFormat = (layout, type) => {
|
|
8265
|
+
if (_.isEmpty(layout)) {
|
|
8266
|
+
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout"];
|
|
8267
|
+
if (fullLayoutComponents.includes(type)) {
|
|
8268
|
+
return { xs: 12, sm: 12, md: 12, lg: 12 };
|
|
8269
|
+
} else if (type === "Graph") {
|
|
8270
|
+
return { xs: 12, sm: 12, md: 12, lg: 6 };
|
|
8271
|
+
} else if (type === "Button") {
|
|
8272
|
+
return { xs: 4, sm: 2.5, md: 2, lg: 1.5 };
|
|
8273
|
+
} else {
|
|
8274
|
+
return { xs: 6, sm: 6, md: 4, lg: 3 };
|
|
8275
|
+
}
|
|
8246
8276
|
}
|
|
8247
|
-
let data = {
|
|
8248
|
-
|
|
8249
|
-
sm: 12,
|
|
8250
|
-
md: 6,
|
|
8251
|
-
lg: 6
|
|
8252
|
-
};
|
|
8253
|
-
config2.map((e) => {
|
|
8277
|
+
let data = {};
|
|
8278
|
+
layout.map((e) => {
|
|
8254
8279
|
data[e.key || "xs"] = +e.value || 5.5;
|
|
8255
8280
|
});
|
|
8256
8281
|
return data;
|
|
@@ -8370,13 +8395,14 @@ const sectionLabels = {
|
|
|
8370
8395
|
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8371
8396
|
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8372
8397
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8398
|
+
HorizontalLayout: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8373
8399
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8374
8400
|
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8375
8401
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8376
8402
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8377
8403
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8378
8404
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8379
|
-
Box: ["Core", "Events", "Style", "Validation"],
|
|
8405
|
+
Box: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8380
8406
|
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8381
8407
|
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8382
8408
|
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8384,7 +8410,7 @@ const sectionLabels = {
|
|
|
8384
8410
|
Timer: ["Core", "Events", "Style", "Validation"],
|
|
8385
8411
|
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8386
8412
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8387
|
-
Array: ["Core", "Components", "Validation"],
|
|
8413
|
+
Array: ["Core", "Components", "Properties", "Validation"],
|
|
8388
8414
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8389
8415
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8390
8416
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8394,7 +8420,11 @@ const sectionLabels = {
|
|
|
8394
8420
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8395
8421
|
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8396
8422
|
ColumnGroup: ["Core", "Components"],
|
|
8397
|
-
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8423
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8424
|
+
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8425
|
+
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8426
|
+
Image: ["Core", "Properties", "Style"],
|
|
8427
|
+
FileInput: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8398
8428
|
};
|
|
8399
8429
|
function refreshPage(type, store2) {
|
|
8400
8430
|
var _a, _b;
|
|
@@ -8418,7 +8448,7 @@ function refreshPage(type, store2) {
|
|
|
8418
8448
|
const lastDotIndex = path.lastIndexOf(".");
|
|
8419
8449
|
const parentPath = path.slice(0, lastDotIndex);
|
|
8420
8450
|
const parentObj = _.get(currentConfig, parentPath);
|
|
8421
|
-
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8451
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
|
|
8422
8452
|
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8423
8453
|
type: "Control",
|
|
8424
8454
|
scope: "#/properties/columnFormat",
|
|
@@ -8907,11 +8937,14 @@ const EventSchema = {
|
|
|
8907
8937
|
{ title: "Start", const: "onStart" },
|
|
8908
8938
|
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8909
8939
|
{ title: "Upload", const: "onUpload" },
|
|
8940
|
+
{ title: "FileDelete", const: "onFileDelete" },
|
|
8941
|
+
{ title: "Download", const: "onDownload" },
|
|
8910
8942
|
{ title: "Back", const: "onBack" },
|
|
8911
8943
|
{ title: "Next", const: "onNext" },
|
|
8912
8944
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
8913
8945
|
{ title: "Download", const: "onDownload" },
|
|
8914
|
-
{ title: "Fail", const: "Fail" }
|
|
8946
|
+
{ title: "Fail", const: "Fail" },
|
|
8947
|
+
{ title: "Key Down", const: "onKeyDown" }
|
|
8915
8948
|
]
|
|
8916
8949
|
},
|
|
8917
8950
|
Handler: {
|
|
@@ -9087,93 +9120,70 @@ const EventUiSchema = (theme) => {
|
|
|
9087
9120
|
disableAction: true,
|
|
9088
9121
|
disableSelection: true,
|
|
9089
9122
|
enableDrag: true
|
|
9090
|
-
}
|
|
9091
|
-
},
|
|
9092
|
-
elements: [
|
|
9093
|
-
{
|
|
9094
|
-
accessorKey: "eventType",
|
|
9095
|
-
header: "Event's Type",
|
|
9096
|
-
size: 300,
|
|
9097
|
-
type: "string"
|
|
9098
9123
|
},
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
header: "Handler",
|
|
9102
|
-
size: 200,
|
|
9103
|
-
type: "string"
|
|
9104
|
-
},
|
|
9105
|
-
{
|
|
9106
|
-
accessorKey: "Edit_Approve_Records",
|
|
9107
|
-
header: "Edit",
|
|
9108
|
-
type: "action",
|
|
9109
|
-
size: 150,
|
|
9110
|
-
widget: {
|
|
9124
|
+
action: [
|
|
9125
|
+
{
|
|
9111
9126
|
type: "Control",
|
|
9112
9127
|
scope: "#/properties/Edit_Records",
|
|
9113
9128
|
options: {
|
|
9114
|
-
widget: "
|
|
9129
|
+
widget: "Button"
|
|
9115
9130
|
},
|
|
9116
9131
|
config: {
|
|
9117
9132
|
main: {
|
|
9118
9133
|
size: "small",
|
|
9119
|
-
|
|
9134
|
+
startIcon: "EditIcon",
|
|
9120
9135
|
tooltipMessage: "Edit This Record",
|
|
9121
|
-
onClick: "editEvent"
|
|
9122
|
-
|
|
9123
|
-
style: {
|
|
9124
|
-
fill: theme.palette.primary.main,
|
|
9125
|
-
"& :hover": {
|
|
9126
|
-
fill: theme.palette.primary.dark
|
|
9127
|
-
}
|
|
9136
|
+
onClick: "editEvent",
|
|
9137
|
+
name: "Edit"
|
|
9128
9138
|
}
|
|
9129
9139
|
}
|
|
9130
|
-
}
|
|
9131
|
-
|
|
9132
|
-
{
|
|
9133
|
-
accessorKey: "Reject_Records",
|
|
9134
|
-
header: "Delete",
|
|
9135
|
-
type: "action",
|
|
9136
|
-
size: 150,
|
|
9137
|
-
widget: {
|
|
9140
|
+
},
|
|
9141
|
+
{
|
|
9138
9142
|
type: "Control",
|
|
9139
9143
|
scope: "#/properties/RejectButton",
|
|
9140
9144
|
options: {
|
|
9141
|
-
widget: "
|
|
9145
|
+
widget: "Button"
|
|
9142
9146
|
},
|
|
9143
9147
|
config: {
|
|
9144
9148
|
main: {
|
|
9145
|
-
|
|
9149
|
+
startIcon: "Bin",
|
|
9146
9150
|
tooltipMessage: "Reject This Record",
|
|
9147
|
-
onClick: "deletePopUpEvent"
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
fill: theme.palette.primary.main,
|
|
9151
|
-
"& :hover": {
|
|
9152
|
-
fill: theme.palette.primary.dark
|
|
9153
|
-
}
|
|
9151
|
+
onClick: "deletePopUpEvent",
|
|
9152
|
+
name: "Delete",
|
|
9153
|
+
size: "small"
|
|
9154
9154
|
}
|
|
9155
9155
|
}
|
|
9156
|
-
}
|
|
9157
|
-
|
|
9158
|
-
{
|
|
9159
|
-
header: "Copy",
|
|
9160
|
-
field: "Copy_Event",
|
|
9161
|
-
type: "action",
|
|
9162
|
-
size: 150,
|
|
9163
|
-
widget: {
|
|
9156
|
+
},
|
|
9157
|
+
{
|
|
9164
9158
|
type: "Control",
|
|
9165
9159
|
scope: "#/properties/Copy_Event",
|
|
9166
9160
|
options: {
|
|
9167
|
-
widget: "
|
|
9161
|
+
widget: "Button"
|
|
9168
9162
|
},
|
|
9169
9163
|
config: {
|
|
9170
9164
|
main: {
|
|
9171
|
-
|
|
9165
|
+
startIcon: "FileCopyIcon",
|
|
9172
9166
|
onClick: "copyPasteElement",
|
|
9173
|
-
styleDefault:
|
|
9167
|
+
styleDefault: false,
|
|
9168
|
+
name: "Copy",
|
|
9169
|
+
size: "small"
|
|
9174
9170
|
}
|
|
9175
9171
|
}
|
|
9176
9172
|
}
|
|
9173
|
+
]
|
|
9174
|
+
},
|
|
9175
|
+
elements: [
|
|
9176
|
+
{
|
|
9177
|
+
accessorKey: "eventType",
|
|
9178
|
+
header: "Event's Type",
|
|
9179
|
+
size: 300,
|
|
9180
|
+
type: "string"
|
|
9181
|
+
},
|
|
9182
|
+
{
|
|
9183
|
+
accessorKey: "Handler",
|
|
9184
|
+
header: "Handler",
|
|
9185
|
+
size: 200,
|
|
9186
|
+
type: "string"
|
|
9177
9187
|
}
|
|
9178
9188
|
]
|
|
9179
9189
|
}
|
|
@@ -9486,9 +9496,6 @@ const APISection = {
|
|
|
9486
9496
|
{
|
|
9487
9497
|
type: "Control",
|
|
9488
9498
|
scope: "#/properties/headers",
|
|
9489
|
-
options: {
|
|
9490
|
-
widget: "Array"
|
|
9491
|
-
},
|
|
9492
9499
|
config: {
|
|
9493
9500
|
layout: 12,
|
|
9494
9501
|
main: {
|
|
@@ -9548,9 +9555,6 @@ const APISection = {
|
|
|
9548
9555
|
{
|
|
9549
9556
|
type: "Control",
|
|
9550
9557
|
scope: "#/properties/body",
|
|
9551
|
-
options: {
|
|
9552
|
-
widget: "Array"
|
|
9553
|
-
},
|
|
9554
9558
|
config: {
|
|
9555
9559
|
layout: 12,
|
|
9556
9560
|
main: {
|
|
@@ -9616,9 +9620,6 @@ const refreshSectionUiSchema = {
|
|
|
9616
9620
|
{
|
|
9617
9621
|
type: "Control",
|
|
9618
9622
|
scope: "#/properties/refreshElements",
|
|
9619
|
-
options: {
|
|
9620
|
-
widget: "Array"
|
|
9621
|
-
},
|
|
9622
9623
|
config: {
|
|
9623
9624
|
layout: 12,
|
|
9624
9625
|
main: {
|
|
@@ -10268,9 +10269,9 @@ var service = (funcParams) => {
|
|
|
10268
10269
|
};
|
|
10269
10270
|
return {
|
|
10270
10271
|
setPage: async function() {
|
|
10271
|
-
var _a, _b, _c
|
|
10272
|
+
var _a, _b, _c;
|
|
10272
10273
|
funcParams.store.setAdditionalErrors([]);
|
|
10273
|
-
funcParams.store.setFormdata({});
|
|
10274
|
+
funcParams.store.setFormdata((funcParams == null ? void 0 : funcParams.initFormData()) || {});
|
|
10274
10275
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
10275
10276
|
funcParams.store.newData = {};
|
|
10276
10277
|
eventGroups = {};
|
|
@@ -10278,116 +10279,11 @@ var service = (funcParams) => {
|
|
|
10278
10279
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10279
10280
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10280
10281
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10281
|
-
detail: { pageName: config2.label }
|
|
10282
|
+
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10282
10283
|
});
|
|
10283
10284
|
window.dispatchEvent(event2);
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
{
|
|
10287
|
-
type: "HorizontalLayout",
|
|
10288
|
-
config: {
|
|
10289
|
-
main: {
|
|
10290
|
-
direction: "row"
|
|
10291
|
-
},
|
|
10292
|
-
style: {
|
|
10293
|
-
flexDirection: "row",
|
|
10294
|
-
position: "absolute",
|
|
10295
|
-
bottom: 0,
|
|
10296
|
-
height: "fit-content",
|
|
10297
|
-
overflow: "hidden",
|
|
10298
|
-
zIndex: 1e3,
|
|
10299
|
-
width: "inherit"
|
|
10300
|
-
}
|
|
10301
|
-
},
|
|
10302
|
-
elements: [
|
|
10303
|
-
{
|
|
10304
|
-
type: "Control",
|
|
10305
|
-
scope: "#/properties/FooterText",
|
|
10306
|
-
options: {
|
|
10307
|
-
widget: "Box"
|
|
10308
|
-
},
|
|
10309
|
-
config: {
|
|
10310
|
-
main: {
|
|
10311
|
-
heading: "Copywriter@ACT21.IO"
|
|
10312
|
-
},
|
|
10313
|
-
style: {
|
|
10314
|
-
color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
|
|
10315
|
-
fontSize: "11px",
|
|
10316
|
-
textAlign: "center",
|
|
10317
|
-
lineHeight: 2,
|
|
10318
|
-
width: "fit-content",
|
|
10319
|
-
left: "50%",
|
|
10320
|
-
position: "relative",
|
|
10321
|
-
margin: 0,
|
|
10322
|
-
flexGrow: 1,
|
|
10323
|
-
height: 0,
|
|
10324
|
-
transform: "translate(-50%, 0%)"
|
|
10325
|
-
}
|
|
10326
|
-
}
|
|
10327
|
-
},
|
|
10328
|
-
{
|
|
10329
|
-
type: "Control",
|
|
10330
|
-
scope: "#/properties/FooterBackIcon",
|
|
10331
|
-
options: {
|
|
10332
|
-
widget: "Box"
|
|
10333
|
-
},
|
|
10334
|
-
config: {
|
|
10335
|
-
main: {
|
|
10336
|
-
iconName: "PrevIcon",
|
|
10337
|
-
onClick: "backHandler",
|
|
10338
|
-
width: "fit-content"
|
|
10339
|
-
},
|
|
10340
|
-
style: {
|
|
10341
|
-
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
|
|
10342
|
-
width: 20,
|
|
10343
|
-
height: 0,
|
|
10344
|
-
top: 0,
|
|
10345
|
-
right: { xs: "12px", sm: "84px" },
|
|
10346
|
-
position: "absolute",
|
|
10347
|
-
fontSize: "12px",
|
|
10348
|
-
cursor: "pointer",
|
|
10349
|
-
":hover": {
|
|
10350
|
-
fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
|
|
10351
|
-
},
|
|
10352
|
-
marginRight: "20px"
|
|
10353
|
-
}
|
|
10354
|
-
}
|
|
10355
|
-
},
|
|
10356
|
-
{
|
|
10357
|
-
type: "Control",
|
|
10358
|
-
scope: "#/properties/FooterBackHandlerText",
|
|
10359
|
-
options: {
|
|
10360
|
-
widget: "Box"
|
|
10361
|
-
},
|
|
10362
|
-
config: {
|
|
10363
|
-
main: {
|
|
10364
|
-
heading: "Previous Page",
|
|
10365
|
-
onClick: "backHandler"
|
|
10366
|
-
},
|
|
10367
|
-
style: {
|
|
10368
|
-
display: { xs: "none", sm: "flex" },
|
|
10369
|
-
textAlign: "left",
|
|
10370
|
-
lineHeight: 1,
|
|
10371
|
-
height: 0,
|
|
10372
|
-
width: "fit-content",
|
|
10373
|
-
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
|
|
10374
|
-
fontSize: "12px",
|
|
10375
|
-
cursor: "pointer",
|
|
10376
|
-
marginLeft: "2px",
|
|
10377
|
-
top: 3,
|
|
10378
|
-
right: "12px",
|
|
10379
|
-
position: "absolute",
|
|
10380
|
-
":hover": {
|
|
10381
|
-
color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
|
|
10382
|
-
},
|
|
10383
|
-
marginRight: "4px"
|
|
10384
|
-
}
|
|
10385
|
-
}
|
|
10386
|
-
}
|
|
10387
|
-
]
|
|
10388
|
-
}
|
|
10389
|
-
);
|
|
10390
|
-
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
10285
|
+
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10286
|
+
const schema2 = (_c = pageData == null ? void 0 : pageData.schema) != null ? _c : { type: "object", properties: {} };
|
|
10391
10287
|
eventGroups = extractEvents(config2);
|
|
10392
10288
|
executeEventsParameters = {
|
|
10393
10289
|
config: {},
|
|
@@ -10401,6 +10297,15 @@ var service = (funcParams) => {
|
|
|
10401
10297
|
eventGroups,
|
|
10402
10298
|
formDataHolder
|
|
10403
10299
|
};
|
|
10300
|
+
funcParams.store.setSchema(
|
|
10301
|
+
(pre) => {
|
|
10302
|
+
return {
|
|
10303
|
+
...schema2,
|
|
10304
|
+
...pre,
|
|
10305
|
+
properties: { ...schema2.properties, ...pre.properties }
|
|
10306
|
+
};
|
|
10307
|
+
}
|
|
10308
|
+
);
|
|
10404
10309
|
await executeRefreshHandler({
|
|
10405
10310
|
config: {},
|
|
10406
10311
|
componentName: "",
|
|
@@ -10412,15 +10317,6 @@ var service = (funcParams) => {
|
|
|
10412
10317
|
eventGroups,
|
|
10413
10318
|
formDataHolder: {}
|
|
10414
10319
|
});
|
|
10415
|
-
funcParams.store.setSchema(
|
|
10416
|
-
(pre) => {
|
|
10417
|
-
return {
|
|
10418
|
-
...schema2,
|
|
10419
|
-
...pre,
|
|
10420
|
-
properties: { ...schema2.properties, ...pre.properties }
|
|
10421
|
-
};
|
|
10422
|
-
}
|
|
10423
|
-
);
|
|
10424
10320
|
uiSchema.elements.push(notifyUiSchema);
|
|
10425
10321
|
funcParams.store.setUiSchema(uiSchema);
|
|
10426
10322
|
},
|
|
@@ -10444,6 +10340,12 @@ var service = (funcParams) => {
|
|
|
10444
10340
|
onClick: function() {
|
|
10445
10341
|
this.callHandler("onClick");
|
|
10446
10342
|
},
|
|
10343
|
+
onKeyDown: function() {
|
|
10344
|
+
this.callHandler("onKeyDown");
|
|
10345
|
+
},
|
|
10346
|
+
onFileDelete: async function() {
|
|
10347
|
+
this.callHandler("onFileDelete");
|
|
10348
|
+
},
|
|
10447
10349
|
onMount: function() {
|
|
10448
10350
|
this.callHandler("onMount");
|
|
10449
10351
|
},
|
|
@@ -10467,13 +10369,14 @@ var service = (funcParams) => {
|
|
|
10467
10369
|
return response == null ? void 0 : response.data;
|
|
10468
10370
|
},
|
|
10469
10371
|
onPaginationChange: async function(paginationValues) {
|
|
10470
|
-
var _a;
|
|
10372
|
+
var _a, _b;
|
|
10471
10373
|
const apiBody = [
|
|
10472
10374
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10473
10375
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
10474
10376
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
10475
10377
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
10476
|
-
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
|
|
10378
|
+
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
|
|
10379
|
+
{ key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
|
|
10477
10380
|
];
|
|
10478
10381
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10479
10382
|
return response == null ? void 0 : response.data;
|
|
@@ -10508,8 +10411,8 @@ var service = (funcParams) => {
|
|
|
10508
10411
|
callExecuteEvents: async function(paramValue, apiBody, eventType) {
|
|
10509
10412
|
var _a, _b;
|
|
10510
10413
|
let LastCallResponse = void 0;
|
|
10511
|
-
const
|
|
10512
|
-
for (const eventConfig of (_a =
|
|
10414
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10415
|
+
for (const eventConfig of (_a = cloneEventGroup == null ? void 0 : cloneEventGroup[eventType]) == null ? void 0 : _a[paramValue.path]) {
|
|
10513
10416
|
if (eventConfig.body) {
|
|
10514
10417
|
eventConfig.body = [
|
|
10515
10418
|
...eventConfig.body,
|
|
@@ -10556,7 +10459,7 @@ var service = (funcParams) => {
|
|
|
10556
10459
|
},
|
|
10557
10460
|
callHandler: async function(eventType, functionParameters) {
|
|
10558
10461
|
var _a, _b, _c;
|
|
10559
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[
|
|
10462
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
|
|
10560
10463
|
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
|
|
10561
10464
|
Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
|
|
10562
10465
|
executeEventsParameters.store.functionParameters = functionParameters;
|
|
@@ -10619,7 +10522,7 @@ const buildLeaderBoard = (config2) => {
|
|
|
10619
10522
|
LeaderBoard.config.main.scoreKey = config2.scoreKey;
|
|
10620
10523
|
}
|
|
10621
10524
|
if (config2.layout) {
|
|
10622
|
-
LeaderBoard.config.layout = createLayoutFormat(config2.layout);
|
|
10525
|
+
LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10623
10526
|
}
|
|
10624
10527
|
if (config2.style) {
|
|
10625
10528
|
LeaderBoard.config.style = JSON.parse(config2.style);
|
|
@@ -10746,7 +10649,7 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10746
10649
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
10747
10650
|
horizontalBarGraph.scope = componentScope2;
|
|
10748
10651
|
if (config2.layout) {
|
|
10749
|
-
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10652
|
+
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10750
10653
|
}
|
|
10751
10654
|
horizontalBarGraph.config.main.type = config2.graphType;
|
|
10752
10655
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -10878,7 +10781,7 @@ const buildSpeedoMeter = (config2, componentScope2) => {
|
|
|
10878
10781
|
const buildPieGraph = (config2, componentScope2) => {
|
|
10879
10782
|
const pieGraph = _.cloneDeep(PieGraph);
|
|
10880
10783
|
if (config2.layout) {
|
|
10881
|
-
pieGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10784
|
+
pieGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10882
10785
|
}
|
|
10883
10786
|
if (config2.height) {
|
|
10884
10787
|
pieGraph.config.style.containerStyle.height = config2.height;
|
|
@@ -10903,7 +10806,7 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
10903
10806
|
var _a;
|
|
10904
10807
|
const barGraph = _.cloneDeep(BarGraph);
|
|
10905
10808
|
if (config2.layout) {
|
|
10906
|
-
barGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10809
|
+
barGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10907
10810
|
}
|
|
10908
10811
|
if (config2.legendHide) {
|
|
10909
10812
|
barGraph.config.main.legendAvailable = config2.legendHide;
|
|
@@ -10982,12 +10885,16 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
10982
10885
|
if (config2.sectionLabels) {
|
|
10983
10886
|
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
10984
10887
|
}
|
|
10888
|
+
if (config2.style) {
|
|
10889
|
+
tab.config.style = JSON.parse(config2.style);
|
|
10890
|
+
}
|
|
10985
10891
|
tab.config.main.id = config2.name;
|
|
10986
10892
|
return tab;
|
|
10987
10893
|
};
|
|
10988
10894
|
var WrapperSection = {
|
|
10989
10895
|
type: "WrapperLayout",
|
|
10990
10896
|
config: {
|
|
10897
|
+
layout: 12,
|
|
10991
10898
|
main: {
|
|
10992
10899
|
rowSpacing: 3,
|
|
10993
10900
|
divider: true,
|
|
@@ -11010,7 +10917,7 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11010
10917
|
wrapper.config.style = JSON.parse(config2.style);
|
|
11011
10918
|
}
|
|
11012
10919
|
if (config2.layout) {
|
|
11013
|
-
wrapper.config.layout = createLayoutFormat(config2.layout);
|
|
10920
|
+
wrapper.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11014
10921
|
}
|
|
11015
10922
|
return wrapper;
|
|
11016
10923
|
};
|
|
@@ -11021,7 +10928,7 @@ var TextInputField = {
|
|
|
11021
10928
|
widget: "InputField"
|
|
11022
10929
|
},
|
|
11023
10930
|
config: {
|
|
11024
|
-
layout: { xs:
|
|
10931
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11025
10932
|
main: {
|
|
11026
10933
|
label: ""
|
|
11027
10934
|
},
|
|
@@ -11037,12 +10944,18 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
11037
10944
|
if (config2.multiline) {
|
|
11038
10945
|
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
11039
10946
|
}
|
|
10947
|
+
if (config2.keyName) {
|
|
10948
|
+
inputField.config.main.keyName = config2.keyName;
|
|
10949
|
+
}
|
|
11040
10950
|
if (config2.InputFormatingAndMasking) {
|
|
11041
10951
|
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
11042
10952
|
}
|
|
11043
10953
|
if (config2.placeholder) {
|
|
11044
10954
|
inputField.config.main.placeholder = config2.placeholder;
|
|
11045
10955
|
}
|
|
10956
|
+
if (config2.variant) {
|
|
10957
|
+
inputField.config.main.variant = config2.variant;
|
|
10958
|
+
}
|
|
11046
10959
|
if (config2.layout) {
|
|
11047
10960
|
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11048
10961
|
}
|
|
@@ -11057,7 +10970,7 @@ var SelectInputField = {
|
|
|
11057
10970
|
widget: "SelectInputField"
|
|
11058
10971
|
},
|
|
11059
10972
|
config: {
|
|
11060
|
-
layout: { xs:
|
|
10973
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11061
10974
|
main: {
|
|
11062
10975
|
label: "",
|
|
11063
10976
|
type: "text",
|
|
@@ -11077,6 +10990,9 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11077
10990
|
if (config2.lazyLoading) {
|
|
11078
10991
|
selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11079
10992
|
}
|
|
10993
|
+
if (config2.variant) {
|
|
10994
|
+
selectInputField.config.main.variant = config2.variant;
|
|
10995
|
+
}
|
|
11080
10996
|
if (config2.layout) {
|
|
11081
10997
|
selectInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11082
10998
|
}
|
|
@@ -11090,7 +11006,7 @@ var Button = {
|
|
|
11090
11006
|
widget: "Button"
|
|
11091
11007
|
},
|
|
11092
11008
|
config: {
|
|
11093
|
-
layout:
|
|
11009
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
11094
11010
|
main: {
|
|
11095
11011
|
name: "Compare",
|
|
11096
11012
|
variant: "contained",
|
|
@@ -11111,7 +11027,7 @@ const buildButton = (config2, componentScope2) => {
|
|
|
11111
11027
|
config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
|
|
11112
11028
|
}
|
|
11113
11029
|
if (config2.layout) {
|
|
11114
|
-
button.config.layout = createLayoutFormat(config2.layout);
|
|
11030
|
+
button.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11115
11031
|
}
|
|
11116
11032
|
if (config2.tooltipMessage) {
|
|
11117
11033
|
button.config.main.tooltipMessage = config2.tooltipMessage;
|
|
@@ -11146,6 +11062,7 @@ var Table = {
|
|
|
11146
11062
|
},
|
|
11147
11063
|
elements: [],
|
|
11148
11064
|
config: {
|
|
11065
|
+
layout: 12,
|
|
11149
11066
|
main: {
|
|
11150
11067
|
onMount: "onMount",
|
|
11151
11068
|
enableExpandAll: true,
|
|
@@ -11237,8 +11154,10 @@ const Box = {
|
|
|
11237
11154
|
widget: "Box"
|
|
11238
11155
|
},
|
|
11239
11156
|
config: {
|
|
11240
|
-
layout:
|
|
11241
|
-
main: {
|
|
11157
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11158
|
+
main: {
|
|
11159
|
+
iconName: ""
|
|
11160
|
+
},
|
|
11242
11161
|
style: {}
|
|
11243
11162
|
}
|
|
11244
11163
|
};
|
|
@@ -11249,6 +11168,9 @@ const buildLabel = (config2, componentScope2) => {
|
|
|
11249
11168
|
if (config2.layout) {
|
|
11250
11169
|
box.config.layout = createLayoutFormat(config2.layout);
|
|
11251
11170
|
}
|
|
11171
|
+
if (config2.iconName) {
|
|
11172
|
+
box.config.main.iconName = config2.iconName;
|
|
11173
|
+
}
|
|
11252
11174
|
if (config2.style) {
|
|
11253
11175
|
box.config.style = JSON.parse(config2.style);
|
|
11254
11176
|
}
|
|
@@ -11267,7 +11189,7 @@ const uploadFile = {
|
|
|
11267
11189
|
"style": {
|
|
11268
11190
|
"backgroundColor": "none"
|
|
11269
11191
|
},
|
|
11270
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
11192
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
11271
11193
|
},
|
|
11272
11194
|
"options": {
|
|
11273
11195
|
"widget": "UploadFile"
|
|
@@ -11284,7 +11206,7 @@ const downloadFile = {
|
|
|
11284
11206
|
"style": {
|
|
11285
11207
|
"backgroundColor": "none"
|
|
11286
11208
|
},
|
|
11287
|
-
layout: { xs:
|
|
11209
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
11288
11210
|
},
|
|
11289
11211
|
"options": {
|
|
11290
11212
|
"widget": "DownloadFile"
|
|
@@ -11309,6 +11231,7 @@ const buildUploadFile = (config2, componentScope2) => {
|
|
|
11309
11231
|
const buildDownloadFile = (config2, componentScope2) => {
|
|
11310
11232
|
const DownloadFile = _.cloneDeep(downloadFile);
|
|
11311
11233
|
DownloadFile.scope = componentScope2;
|
|
11234
|
+
DownloadFile.config.main.label = config2.label;
|
|
11312
11235
|
if (config2.layout) {
|
|
11313
11236
|
DownloadFile.config.layout = config2.layout;
|
|
11314
11237
|
}
|
|
@@ -11363,7 +11286,7 @@ function Card(theme) {
|
|
|
11363
11286
|
{
|
|
11364
11287
|
type: "HorizontalLayout",
|
|
11365
11288
|
config: {
|
|
11366
|
-
layout:
|
|
11289
|
+
layout: 9
|
|
11367
11290
|
},
|
|
11368
11291
|
elements: [
|
|
11369
11292
|
{
|
|
@@ -11383,7 +11306,8 @@ function Card(theme) {
|
|
|
11383
11306
|
width: "100%",
|
|
11384
11307
|
height: "inherit",
|
|
11385
11308
|
background: "transparent",
|
|
11386
|
-
borderRadius: "0px"
|
|
11309
|
+
borderRadius: "0px",
|
|
11310
|
+
padding: 0
|
|
11387
11311
|
},
|
|
11388
11312
|
layout: 12
|
|
11389
11313
|
},
|
|
@@ -11409,7 +11333,8 @@ function Card(theme) {
|
|
|
11409
11333
|
marginLeft: "-10px",
|
|
11410
11334
|
marginTop: "-8px",
|
|
11411
11335
|
justifyContent: "start",
|
|
11412
|
-
position: "relative"
|
|
11336
|
+
position: "relative",
|
|
11337
|
+
padding: 0
|
|
11413
11338
|
},
|
|
11414
11339
|
layout: 12
|
|
11415
11340
|
},
|
|
@@ -11512,7 +11437,7 @@ function Card(theme) {
|
|
|
11512
11437
|
height: "64px"
|
|
11513
11438
|
}
|
|
11514
11439
|
},
|
|
11515
|
-
layout:
|
|
11440
|
+
layout: 3
|
|
11516
11441
|
},
|
|
11517
11442
|
options: {
|
|
11518
11443
|
widget: "Image"
|
|
@@ -11555,7 +11480,7 @@ var DateInputField = {
|
|
|
11555
11480
|
widget: "DateInputField"
|
|
11556
11481
|
},
|
|
11557
11482
|
config: {
|
|
11558
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
11483
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11559
11484
|
main: {
|
|
11560
11485
|
label: "",
|
|
11561
11486
|
type: "date"
|
|
@@ -11569,7 +11494,7 @@ const DateTime = {
|
|
|
11569
11494
|
widget: "DateTimeInputField"
|
|
11570
11495
|
},
|
|
11571
11496
|
config: {
|
|
11572
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
11497
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11573
11498
|
main: {
|
|
11574
11499
|
label: "DateTime",
|
|
11575
11500
|
type: "date"
|
|
@@ -11584,6 +11509,9 @@ const buildDate = (config2, componentScope2) => {
|
|
|
11584
11509
|
if (config2.layout) {
|
|
11585
11510
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11586
11511
|
}
|
|
11512
|
+
if (config2.variant) {
|
|
11513
|
+
dateInputField.config.main.variant = config2.variant;
|
|
11514
|
+
}
|
|
11587
11515
|
return dateInputField;
|
|
11588
11516
|
};
|
|
11589
11517
|
const buildDateTime = (config2, componentScope2) => {
|
|
@@ -11594,6 +11522,9 @@ const buildDateTime = (config2, componentScope2) => {
|
|
|
11594
11522
|
if (config2.layout) {
|
|
11595
11523
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11596
11524
|
}
|
|
11525
|
+
if (config2.variant) {
|
|
11526
|
+
dateTimeInputField.config.main.variant = config2.variant;
|
|
11527
|
+
}
|
|
11597
11528
|
return dateTimeInputField;
|
|
11598
11529
|
};
|
|
11599
11530
|
var RankCard = {
|
|
@@ -11677,12 +11608,12 @@ var MultipleSelect = {
|
|
|
11677
11608
|
widget: "MultipleSelect"
|
|
11678
11609
|
},
|
|
11679
11610
|
config: {
|
|
11680
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
11611
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11681
11612
|
main: {
|
|
11682
11613
|
label: "",
|
|
11683
11614
|
type: "text",
|
|
11684
11615
|
multiple: true,
|
|
11685
|
-
variant: "
|
|
11616
|
+
variant: "outlined",
|
|
11686
11617
|
options: []
|
|
11687
11618
|
}
|
|
11688
11619
|
}
|
|
@@ -11699,6 +11630,9 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
11699
11630
|
if (config2.value) {
|
|
11700
11631
|
multipleSelect.config.main.options = config2.value;
|
|
11701
11632
|
}
|
|
11633
|
+
if (config2.variant) {
|
|
11634
|
+
multipleSelect.config.main.variant = config2.variant;
|
|
11635
|
+
}
|
|
11702
11636
|
if (config2.lazyLoading) {
|
|
11703
11637
|
multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11704
11638
|
}
|
|
@@ -11721,7 +11655,7 @@ const TextArea = {
|
|
|
11721
11655
|
widget: "TextArea"
|
|
11722
11656
|
},
|
|
11723
11657
|
config: {
|
|
11724
|
-
layout:
|
|
11658
|
+
layout: 12,
|
|
11725
11659
|
style: {
|
|
11726
11660
|
containerStyle: {
|
|
11727
11661
|
borderRadius: "20px"
|
|
@@ -11745,7 +11679,7 @@ const buildTextArea = (config2, componentScope2) => {
|
|
|
11745
11679
|
const textArea = _.cloneDeep(TextArea);
|
|
11746
11680
|
textArea.config.main.heading = config2.label;
|
|
11747
11681
|
if (config2.layout) {
|
|
11748
|
-
textArea.config.layout = createLayoutFormat(config2.layout);
|
|
11682
|
+
textArea.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11749
11683
|
}
|
|
11750
11684
|
if (config2.style) {
|
|
11751
11685
|
textArea.config.style = JSON.parse(config2.style);
|
|
@@ -11787,11 +11721,11 @@ const buildSlider = (config2, componentScope2) => {
|
|
|
11787
11721
|
const Checkbox = {
|
|
11788
11722
|
"type": "Control",
|
|
11789
11723
|
"scope": "#/properties/username1",
|
|
11790
|
-
"layout": 12,
|
|
11791
11724
|
"options": {
|
|
11792
11725
|
"widget": "CheckBox"
|
|
11793
11726
|
},
|
|
11794
11727
|
"config": {
|
|
11728
|
+
"layout": { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11795
11729
|
"main": {
|
|
11796
11730
|
"label": "Welcome to Hyperform"
|
|
11797
11731
|
}
|
|
@@ -11812,7 +11746,7 @@ const buildCheckbox = (config2, componentScope2) => {
|
|
|
11812
11746
|
const buildLineGraph = (config2, componentScope2) => {
|
|
11813
11747
|
const lineGraph = _.cloneDeep(LineGraph);
|
|
11814
11748
|
if (config2.layout) {
|
|
11815
|
-
lineGraph.config.layout = createLayoutFormat(config2.layout);
|
|
11749
|
+
lineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11816
11750
|
}
|
|
11817
11751
|
lineGraph.config.main.header = config2.heading;
|
|
11818
11752
|
if (config2.height) {
|
|
@@ -11857,7 +11791,7 @@ const RadioUiSchema = {
|
|
|
11857
11791
|
widget: "RadioInputField"
|
|
11858
11792
|
},
|
|
11859
11793
|
config: {
|
|
11860
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
11794
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11861
11795
|
main: {
|
|
11862
11796
|
label: "Enabled",
|
|
11863
11797
|
options: ["YES", "NO"],
|
|
@@ -11887,7 +11821,7 @@ var emptyBox = {
|
|
|
11887
11821
|
widget: "EmptyBox"
|
|
11888
11822
|
},
|
|
11889
11823
|
config: {
|
|
11890
|
-
layout: { xs:
|
|
11824
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11891
11825
|
main: {},
|
|
11892
11826
|
style: {}
|
|
11893
11827
|
}
|
|
@@ -11902,16 +11836,31 @@ const buildEmptyBox = (config2, componentScope2) => {
|
|
|
11902
11836
|
const ArrayUiSchema = {
|
|
11903
11837
|
type: "Control",
|
|
11904
11838
|
scope: "#/properties/adjustments",
|
|
11905
|
-
layout:
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
elements: []
|
|
11910
|
-
}
|
|
11839
|
+
layout: 12,
|
|
11840
|
+
elements: [],
|
|
11841
|
+
config: {
|
|
11842
|
+
main: {}
|
|
11911
11843
|
}
|
|
11912
11844
|
};
|
|
11913
11845
|
const buildArray = (config2, componentScope2) => {
|
|
11914
11846
|
const array = _.cloneDeep(ArrayUiSchema);
|
|
11847
|
+
if (config2.allExpanded) {
|
|
11848
|
+
array.config.main.allExpanded = config2.allExpanded === "YES" ? true : false;
|
|
11849
|
+
}
|
|
11850
|
+
if (config2.disableAddButton) {
|
|
11851
|
+
array.config.main.disableAddButton = config2.disableAddButton === "YES" ? true : false;
|
|
11852
|
+
}
|
|
11853
|
+
if (config2.disableExpandAllButton) {
|
|
11854
|
+
array.config.main.disableExpandAllButton = config2.disableExpandAllButton === "YES" ? true : false;
|
|
11855
|
+
}
|
|
11856
|
+
if (config2.disableRowActions) {
|
|
11857
|
+
array.config.main.disableRowActions = config2.disableRowActions === "YES" ? true : false;
|
|
11858
|
+
}
|
|
11859
|
+
if (config2.style) {
|
|
11860
|
+
array.config.style = JSON.parse(config2.style);
|
|
11861
|
+
}
|
|
11862
|
+
array.config.main.childElementLabel = config2.childElementLabel;
|
|
11863
|
+
array.config.main.label = config2.label;
|
|
11915
11864
|
array.scope = componentScope2;
|
|
11916
11865
|
return array;
|
|
11917
11866
|
};
|
|
@@ -11923,7 +11872,7 @@ const TextField = {
|
|
|
11923
11872
|
"widget": "InputField"
|
|
11924
11873
|
},
|
|
11925
11874
|
config: {
|
|
11926
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
11875
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11927
11876
|
main: {
|
|
11928
11877
|
label: "Adhaar Card",
|
|
11929
11878
|
formatStrArray: ["9", "9", "9", "9", " ", "9", "9", "9", "9", " ", "X9", "X9", "X9", "X9"],
|
|
@@ -11952,7 +11901,7 @@ const PanField = {
|
|
|
11952
11901
|
"widget": "InputField"
|
|
11953
11902
|
},
|
|
11954
11903
|
config: {
|
|
11955
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
11904
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11956
11905
|
main: {
|
|
11957
11906
|
label: "Pan Card",
|
|
11958
11907
|
placeholder: "AAAAA0000A",
|
|
@@ -11980,7 +11929,7 @@ const FileInput = {
|
|
|
11980
11929
|
widget: "FileInputField"
|
|
11981
11930
|
},
|
|
11982
11931
|
config: {
|
|
11983
|
-
layout: { xs:
|
|
11932
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11984
11933
|
main: {
|
|
11985
11934
|
required: false,
|
|
11986
11935
|
onUpload: "onFileUpload",
|
|
@@ -12002,6 +11951,9 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12002
11951
|
if (config2.style) {
|
|
12003
11952
|
box.config.style = JSON.parse(config2.style);
|
|
12004
11953
|
}
|
|
11954
|
+
if (config2.variant) {
|
|
11955
|
+
box.config.main.variant = config2.variant;
|
|
11956
|
+
}
|
|
12005
11957
|
return box;
|
|
12006
11958
|
};
|
|
12007
11959
|
const Stepper = {
|
|
@@ -12075,10 +12027,10 @@ const buildPopUp = (config2, componentScope2) => {
|
|
|
12075
12027
|
popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
|
|
12076
12028
|
popup.config.main.maxWidth = config2.maxWidth || false;
|
|
12077
12029
|
if (config2.layout) {
|
|
12078
|
-
popup.config.layout = createLayoutFormat(config2.layout);
|
|
12030
|
+
popup.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12079
12031
|
}
|
|
12080
12032
|
if (config2.style) {
|
|
12081
|
-
|
|
12033
|
+
popup.config.style = JSON.parse(config2.style);
|
|
12082
12034
|
}
|
|
12083
12035
|
return popup;
|
|
12084
12036
|
};
|
|
@@ -12115,10 +12067,10 @@ const buildDataGrid = (config2, componentScope2) => {
|
|
|
12115
12067
|
DataGrid.config.main.label = config2.label;
|
|
12116
12068
|
}
|
|
12117
12069
|
if (config2.layout) {
|
|
12118
|
-
DataGrid.config.layout = createLayoutFormat(config2.layout);
|
|
12070
|
+
DataGrid.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12119
12071
|
}
|
|
12120
12072
|
if (config2.cardLayout) {
|
|
12121
|
-
DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
|
|
12073
|
+
DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout, config2.type);
|
|
12122
12074
|
}
|
|
12123
12075
|
if (config2.style) {
|
|
12124
12076
|
DataGrid.config.style = JSON.parse(config2.style);
|
|
@@ -12170,6 +12122,7 @@ const TreeMap = {
|
|
|
12170
12122
|
"type": "Control",
|
|
12171
12123
|
"scope": "#/properties/TreeMap2",
|
|
12172
12124
|
"config": {
|
|
12125
|
+
layout: 12,
|
|
12173
12126
|
"main": {
|
|
12174
12127
|
"layout": "cartsian",
|
|
12175
12128
|
orientation: "vertical",
|
|
@@ -12195,7 +12148,7 @@ const buildTreeMap = (config2, componentScope2) => {
|
|
|
12195
12148
|
treMap.config.main.header = config2.label;
|
|
12196
12149
|
}
|
|
12197
12150
|
if (config2.layout) {
|
|
12198
|
-
treMap.config.layout = createLayoutFormat(config2.layout);
|
|
12151
|
+
treMap.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12199
12152
|
}
|
|
12200
12153
|
if (config2.orientation) {
|
|
12201
12154
|
treMap.config.main.orientation = config2.orientation;
|
|
@@ -12238,7 +12191,7 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12238
12191
|
thought.config.main.thought = `${config2.thought}`;
|
|
12239
12192
|
}
|
|
12240
12193
|
if (config2.layout) {
|
|
12241
|
-
thought.config.layout = createLayoutFormat(config2.layout);
|
|
12194
|
+
thought.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12242
12195
|
}
|
|
12243
12196
|
if (config2.label) {
|
|
12244
12197
|
thought.config.main.label = config2.label;
|
|
@@ -12248,6 +12201,58 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12248
12201
|
}
|
|
12249
12202
|
return thought;
|
|
12250
12203
|
};
|
|
12204
|
+
var horizontalLayout = {
|
|
12205
|
+
type: "HorizontalLayout",
|
|
12206
|
+
config: {
|
|
12207
|
+
layout: 12,
|
|
12208
|
+
main: {
|
|
12209
|
+
rowSpacing: 3,
|
|
12210
|
+
divider: false
|
|
12211
|
+
},
|
|
12212
|
+
defaultStyle: true
|
|
12213
|
+
},
|
|
12214
|
+
elements: []
|
|
12215
|
+
};
|
|
12216
|
+
const buildHorizontalLayout = (config2, componentScope2) => {
|
|
12217
|
+
const horizontal = _.cloneDeep(horizontalLayout);
|
|
12218
|
+
horizontal.scope = componentScope2;
|
|
12219
|
+
if (config2.style) {
|
|
12220
|
+
horizontal.config.style = JSON.parse(config2.style);
|
|
12221
|
+
}
|
|
12222
|
+
if (config2.layout) {
|
|
12223
|
+
horizontal.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12224
|
+
}
|
|
12225
|
+
return horizontal;
|
|
12226
|
+
};
|
|
12227
|
+
const imageUiSchema = {
|
|
12228
|
+
type: "Control",
|
|
12229
|
+
scope: "#/properties/Logo",
|
|
12230
|
+
options: {
|
|
12231
|
+
widget: "Image"
|
|
12232
|
+
},
|
|
12233
|
+
config: {
|
|
12234
|
+
layout: 3,
|
|
12235
|
+
main: {
|
|
12236
|
+
url: ""
|
|
12237
|
+
},
|
|
12238
|
+
style: {}
|
|
12239
|
+
}
|
|
12240
|
+
};
|
|
12241
|
+
const buildImage = (config2, componentScope2) => {
|
|
12242
|
+
const image = _.cloneDeep(imageUiSchema);
|
|
12243
|
+
image.scope = componentScope2;
|
|
12244
|
+
image.config.main.url = config2.imageUrl;
|
|
12245
|
+
if (config2.layout) {
|
|
12246
|
+
image.config.layout = createLayoutFormat(config2.layout);
|
|
12247
|
+
}
|
|
12248
|
+
if (config2.style) {
|
|
12249
|
+
image.config.style = JSON.parse(config2.style);
|
|
12250
|
+
}
|
|
12251
|
+
if (config2.height) {
|
|
12252
|
+
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12253
|
+
}
|
|
12254
|
+
return image;
|
|
12255
|
+
};
|
|
12251
12256
|
let schema = {
|
|
12252
12257
|
type: "object",
|
|
12253
12258
|
properties: {},
|
|
@@ -12340,7 +12345,7 @@ function buildRule(configObj, tableName, arrayHolderName) {
|
|
|
12340
12345
|
const buildSchema = (config2, tableName, isArrayType) => {
|
|
12341
12346
|
buildRule(config2, tableName, isArrayType);
|
|
12342
12347
|
if (config2 == null ? void 0 : config2.elements) {
|
|
12343
|
-
if (config2.type == "
|
|
12348
|
+
if (config2.type == "Array") {
|
|
12344
12349
|
if (!schema.properties[config2.name]) {
|
|
12345
12350
|
schema.properties[config2.name] = {
|
|
12346
12351
|
type: "array",
|
|
@@ -12402,6 +12407,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12402
12407
|
case "WrapperSection":
|
|
12403
12408
|
elements = buildWrapperSection(config2, componentScope2);
|
|
12404
12409
|
break;
|
|
12410
|
+
case "HorizontalLayout":
|
|
12411
|
+
elements = buildHorizontalLayout(config2, componentScope2);
|
|
12412
|
+
break;
|
|
12405
12413
|
case "Text":
|
|
12406
12414
|
elements = buildTextField(config2, componentScope2);
|
|
12407
12415
|
break;
|
|
@@ -12502,6 +12510,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12502
12510
|
case "Thought":
|
|
12503
12511
|
elements = buildThoughtOfTheDay(config2, componentScope2);
|
|
12504
12512
|
break;
|
|
12513
|
+
case "Image":
|
|
12514
|
+
elements = buildImage(config2, componentScope2);
|
|
12515
|
+
break;
|
|
12505
12516
|
default:
|
|
12506
12517
|
schema = {
|
|
12507
12518
|
type: "object",
|
|
@@ -12521,13 +12532,26 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12521
12532
|
});
|
|
12522
12533
|
}
|
|
12523
12534
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12524
|
-
|
|
12535
|
+
const commonProperties = {
|
|
12525
12536
|
accessorKey: cellElem.name,
|
|
12537
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12526
12538
|
header: cellElem.label || cellElem.name,
|
|
12527
12539
|
size: sizeMap[cellElem.name] || 180,
|
|
12528
|
-
|
|
12529
|
-
|
|
12540
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12541
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12542
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12543
|
+
columnKey: cellElem.columnKey
|
|
12530
12544
|
};
|
|
12545
|
+
if (cellElem.type) {
|
|
12546
|
+
const tableElem = {
|
|
12547
|
+
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12548
|
+
...commonProperties,
|
|
12549
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12550
|
+
};
|
|
12551
|
+
return tableElem;
|
|
12552
|
+
} else {
|
|
12553
|
+
return { ...commonProperties };
|
|
12554
|
+
}
|
|
12531
12555
|
});
|
|
12532
12556
|
} else if (config2.type == "Table") {
|
|
12533
12557
|
const sizeMap = {};
|
|
@@ -12542,7 +12566,7 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12542
12566
|
config2.elements.filter((cellElem, elemInd) => {
|
|
12543
12567
|
const commonProperties = {
|
|
12544
12568
|
accessorKey: cellElem.name,
|
|
12545
|
-
type: cellElem.columnFormat,
|
|
12569
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12546
12570
|
header: cellElem.label || cellElem.name,
|
|
12547
12571
|
size: sizeMap[cellElem.name] || 180,
|
|
12548
12572
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
@@ -12563,8 +12587,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12563
12587
|
}
|
|
12564
12588
|
const tableElem = {
|
|
12565
12589
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12566
|
-
|
|
12567
|
-
...
|
|
12590
|
+
...commonProperties,
|
|
12591
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12568
12592
|
};
|
|
12569
12593
|
rowElements.push(tableElem);
|
|
12570
12594
|
} else {
|
|
@@ -12574,10 +12598,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12574
12598
|
elements.elements = rowElements;
|
|
12575
12599
|
elements.config.action = tableActionElement;
|
|
12576
12600
|
elements.config.main.headerIcons.elements = tableHeaderElements;
|
|
12577
|
-
} else if (config2.type == "Array") {
|
|
12578
|
-
elements.options.detail.elements = config2.elements.map((e, elemInd) => {
|
|
12579
|
-
return buildUiSchema(e, store2);
|
|
12580
|
-
});
|
|
12581
12601
|
} else {
|
|
12582
12602
|
elements.elements = config2.elements.map((e, elemInd) => {
|
|
12583
12603
|
return buildUiSchema(e, store2);
|