impaktapps-ui-builder 0.0.382460 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/impaktapps-ui-builder.es.js +1273 -1115
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +16 -16
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +62 -59
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +17 -21
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +10 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +23 -32
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +26 -33
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +52 -38
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/styleSection.d.ts +7 -8
- 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 +29 -33
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +6 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +56 -36
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +8 -0
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +6 -1
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +39 -27
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +111 -96
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +113 -61
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +8 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +108 -88
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +39 -17
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +44 -44
- package/src/impaktapps-ui-builder/builder/build/uischema/styleSection.ts +9 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +40 -18
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +73 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +63 -45
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +50 -44
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +232 -309
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +166 -224
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +147 -205
- package/src/impaktapps-ui-builder/builder/services/component.ts +228 -57
- package/src/impaktapps-ui-builder/builder/services/event.ts +182 -66
- package/src/impaktapps-ui-builder/builder/services/utils.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/events.ts +32 -21
- package/src/impaktapps-ui-builder/runtime/services/service.ts +18 -29
|
@@ -50,15 +50,15 @@ const PageMasterUiSchema = (theme) => {
|
|
|
50
50
|
var _a;
|
|
51
51
|
const uiSchema = {
|
|
52
52
|
type: "HorizontalLayout",
|
|
53
|
-
heading: "Page
|
|
53
|
+
heading: "Page",
|
|
54
54
|
elements: [
|
|
55
55
|
{
|
|
56
56
|
type: "WrapperLayout",
|
|
57
57
|
config: {
|
|
58
|
-
main: {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
main: {
|
|
59
|
+
label: "Basic Details",
|
|
60
|
+
isAccordion: true,
|
|
61
|
+
gap: "8px"
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
elements: [
|
|
@@ -69,9 +69,9 @@ const PageMasterUiSchema = (theme) => {
|
|
|
69
69
|
widget: "InputField"
|
|
70
70
|
},
|
|
71
71
|
config: {
|
|
72
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
72
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
73
73
|
main: {
|
|
74
|
-
label: "Name",
|
|
74
|
+
label: "Page Name",
|
|
75
75
|
options: [],
|
|
76
76
|
color: "secondary",
|
|
77
77
|
errorMessage: "Name should be start with 'page_'",
|
|
@@ -80,26 +80,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
|
-
{
|
|
84
|
-
type: "Control",
|
|
85
|
-
scope: "#/properties/template",
|
|
86
|
-
options: {
|
|
87
|
-
widget: "SelectInputField"
|
|
88
|
-
},
|
|
89
|
-
config: {
|
|
90
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
91
|
-
main: {
|
|
92
|
-
label: "Template",
|
|
93
|
-
options: [
|
|
94
|
-
{ const: "template1", title: "template1" },
|
|
95
|
-
{ const: "template2", title: "template2" },
|
|
96
|
-
{ const: "template3", title: "template3" }
|
|
97
|
-
],
|
|
98
|
-
color: "secondary",
|
|
99
|
-
required: true
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
83
|
{
|
|
104
84
|
type: "Control",
|
|
105
85
|
scope: "#/properties/label",
|
|
@@ -107,9 +87,9 @@ const PageMasterUiSchema = (theme) => {
|
|
|
107
87
|
widget: "InputField"
|
|
108
88
|
},
|
|
109
89
|
config: {
|
|
110
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
90
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
111
91
|
main: {
|
|
112
|
-
label: "
|
|
92
|
+
label: "Page Heading",
|
|
113
93
|
options: [],
|
|
114
94
|
color: "secondary",
|
|
115
95
|
required: true
|
|
@@ -120,7 +100,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
120
100
|
type: "Control",
|
|
121
101
|
scope: "#/properties/EmptyBox",
|
|
122
102
|
config: {
|
|
123
|
-
layout: { xs:
|
|
103
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
124
104
|
},
|
|
125
105
|
options: {
|
|
126
106
|
widget: "EmptyBox"
|
|
@@ -131,11 +111,27 @@ const PageMasterUiSchema = (theme) => {
|
|
|
131
111
|
{
|
|
132
112
|
type: "TabLayout",
|
|
133
113
|
config: {
|
|
114
|
+
layout: 12,
|
|
134
115
|
main: {
|
|
135
|
-
tabLabels: ["Components", "Events"]
|
|
136
|
-
|
|
116
|
+
tabLabels: ["Page Components", "Page Events"]
|
|
117
|
+
},
|
|
118
|
+
style: {
|
|
119
|
+
TabPanelStyle: {
|
|
120
|
+
padding: 0
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
TabsStyle: {
|
|
124
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
125
|
+
marginBottom: "3px",
|
|
126
|
+
paddingBottom: "4px",
|
|
127
|
+
boxShadow: "0px 3px 4px #afafaf80",
|
|
128
|
+
"& .MuiTabs-indicator": {
|
|
129
|
+
bottom: "6px"
|
|
130
|
+
}
|
|
137
131
|
},
|
|
138
|
-
|
|
132
|
+
TabContainerStyle: {
|
|
133
|
+
marginTop: "-16px"
|
|
134
|
+
}
|
|
139
135
|
},
|
|
140
136
|
elements: [
|
|
141
137
|
{
|
|
@@ -159,12 +155,18 @@ const PageMasterUiSchema = (theme) => {
|
|
|
159
155
|
main: {
|
|
160
156
|
onClick: "onAddClickHandler",
|
|
161
157
|
size: "small",
|
|
162
|
-
icon: "
|
|
163
|
-
iconLabel: "Add
|
|
158
|
+
icon: "TableAddIcon",
|
|
159
|
+
iconLabel: "Add",
|
|
164
160
|
styleDefault: true
|
|
165
161
|
},
|
|
166
162
|
style: {
|
|
167
|
-
mt: "6px"
|
|
163
|
+
mt: "6px",
|
|
164
|
+
color: "inherit",
|
|
165
|
+
fill: "inherit",
|
|
166
|
+
"&:hover": {
|
|
167
|
+
color: "inherit",
|
|
168
|
+
fill: "inherit"
|
|
169
|
+
}
|
|
168
170
|
}
|
|
169
171
|
}
|
|
170
172
|
}
|
|
@@ -180,12 +182,19 @@ const PageMasterUiSchema = (theme) => {
|
|
|
180
182
|
main: {
|
|
181
183
|
onClick: "copyPasteElement",
|
|
182
184
|
size: "small",
|
|
183
|
-
icon: "
|
|
185
|
+
icon: "TablePaste",
|
|
184
186
|
iconLabel: "Paste",
|
|
185
|
-
styleDefault: true
|
|
187
|
+
styleDefault: true,
|
|
188
|
+
title: ""
|
|
186
189
|
},
|
|
187
190
|
style: {
|
|
188
|
-
mt: "6px"
|
|
191
|
+
mt: "6px",
|
|
192
|
+
color: "inherit",
|
|
193
|
+
fill: "inherit",
|
|
194
|
+
"&:hover": {
|
|
195
|
+
color: "inherit",
|
|
196
|
+
fill: "inherit"
|
|
197
|
+
}
|
|
189
198
|
}
|
|
190
199
|
}
|
|
191
200
|
}
|
|
@@ -200,16 +209,21 @@ const PageMasterUiSchema = (theme) => {
|
|
|
200
209
|
elements: [
|
|
201
210
|
{
|
|
202
211
|
accessorKey: "name",
|
|
203
|
-
header: "Name"
|
|
212
|
+
header: "Name",
|
|
213
|
+
size: 300,
|
|
214
|
+
type: "string"
|
|
204
215
|
},
|
|
205
216
|
{
|
|
206
217
|
accessorKey: "type",
|
|
207
|
-
header: "Type"
|
|
218
|
+
header: "Type",
|
|
219
|
+
size: 300,
|
|
220
|
+
type: "string"
|
|
208
221
|
},
|
|
209
222
|
{
|
|
210
223
|
header: "Edit",
|
|
211
224
|
field: "Reject_Records",
|
|
212
|
-
|
|
225
|
+
size: 150,
|
|
226
|
+
type: "action",
|
|
213
227
|
widget: {
|
|
214
228
|
type: "Control",
|
|
215
229
|
scope: "#/properties/RejectButton",
|
|
@@ -218,13 +232,15 @@ const PageMasterUiSchema = (theme) => {
|
|
|
218
232
|
},
|
|
219
233
|
config: {
|
|
220
234
|
main: {
|
|
221
|
-
icon: "
|
|
222
|
-
color: "primary",
|
|
235
|
+
icon: "TableEditIcon",
|
|
223
236
|
onClick: "Edit_Components",
|
|
224
237
|
tooltipMessage: "Edit This Record"
|
|
225
238
|
},
|
|
226
239
|
style: {
|
|
227
|
-
|
|
240
|
+
fill: theme.palette.primary.main,
|
|
241
|
+
"& :hover": {
|
|
242
|
+
fill: theme.palette.primary.dark
|
|
243
|
+
}
|
|
228
244
|
}
|
|
229
245
|
}
|
|
230
246
|
}
|
|
@@ -232,7 +248,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
232
248
|
{
|
|
233
249
|
header: "Delete",
|
|
234
250
|
field: "Reject_Records",
|
|
235
|
-
|
|
251
|
+
size: 150,
|
|
252
|
+
type: "action",
|
|
236
253
|
widget: {
|
|
237
254
|
type: "Control",
|
|
238
255
|
scope: "#/properties/RejectButton",
|
|
@@ -241,10 +258,15 @@ const PageMasterUiSchema = (theme) => {
|
|
|
241
258
|
},
|
|
242
259
|
config: {
|
|
243
260
|
main: {
|
|
244
|
-
icon: "
|
|
245
|
-
color: "error",
|
|
261
|
+
icon: "Bin",
|
|
246
262
|
onClick: "deletePopUpComponent",
|
|
247
263
|
tooltipMessage: "Reject This Record"
|
|
264
|
+
},
|
|
265
|
+
style: {
|
|
266
|
+
fill: theme.palette.primary.main,
|
|
267
|
+
"& :hover": {
|
|
268
|
+
fill: theme.palette.primary.dark
|
|
269
|
+
}
|
|
248
270
|
}
|
|
249
271
|
}
|
|
250
272
|
}
|
|
@@ -291,12 +313,18 @@ const PageMasterUiSchema = (theme) => {
|
|
|
291
313
|
main: {
|
|
292
314
|
onClick: "eventAddHandler",
|
|
293
315
|
size: "small",
|
|
294
|
-
icon: "
|
|
295
|
-
iconLabel: "Add
|
|
316
|
+
icon: "TableAddIcon",
|
|
317
|
+
iconLabel: "Add",
|
|
296
318
|
styleDefault: true
|
|
297
319
|
},
|
|
298
320
|
style: {
|
|
299
|
-
mt: "6px"
|
|
321
|
+
mt: "6px",
|
|
322
|
+
color: "inherit",
|
|
323
|
+
fill: "inherit",
|
|
324
|
+
"&:hover": {
|
|
325
|
+
color: "inherit",
|
|
326
|
+
fill: "inherit"
|
|
327
|
+
}
|
|
300
328
|
}
|
|
301
329
|
}
|
|
302
330
|
}
|
|
@@ -312,12 +340,18 @@ const PageMasterUiSchema = (theme) => {
|
|
|
312
340
|
main: {
|
|
313
341
|
onClick: "copyPasteElement",
|
|
314
342
|
size: "small",
|
|
315
|
-
icon: "
|
|
343
|
+
icon: "TablePaste",
|
|
316
344
|
iconLabel: "Paste",
|
|
317
345
|
styleDefault: true
|
|
318
346
|
},
|
|
319
347
|
style: {
|
|
320
|
-
mt: "6px"
|
|
348
|
+
mt: "6px",
|
|
349
|
+
color: "inherit",
|
|
350
|
+
fill: "inherit",
|
|
351
|
+
"&:hover": {
|
|
352
|
+
color: "inherit",
|
|
353
|
+
fill: "inherit"
|
|
354
|
+
}
|
|
321
355
|
}
|
|
322
356
|
}
|
|
323
357
|
}
|
|
@@ -332,15 +366,21 @@ const PageMasterUiSchema = (theme) => {
|
|
|
332
366
|
elements: [
|
|
333
367
|
{
|
|
334
368
|
accessorKey: "eventType",
|
|
335
|
-
header: "Event Type"
|
|
369
|
+
header: "Event's Type",
|
|
370
|
+
size: 300,
|
|
371
|
+
type: "string"
|
|
336
372
|
},
|
|
337
373
|
{
|
|
338
374
|
accessorKey: "Handler",
|
|
339
|
-
header: "Handler"
|
|
375
|
+
header: "Handler",
|
|
376
|
+
size: 200,
|
|
377
|
+
type: "string"
|
|
340
378
|
},
|
|
341
379
|
{
|
|
342
380
|
accessorKey: "Edit_Approve_Records",
|
|
343
|
-
header: "Edit
|
|
381
|
+
header: "Edit",
|
|
382
|
+
type: "action",
|
|
383
|
+
size: 150,
|
|
344
384
|
widget: {
|
|
345
385
|
type: "Control",
|
|
346
386
|
scope: "#/properties/Edit_Records",
|
|
@@ -349,14 +389,16 @@ const PageMasterUiSchema = (theme) => {
|
|
|
349
389
|
},
|
|
350
390
|
config: {
|
|
351
391
|
main: {
|
|
352
|
-
color: "info",
|
|
353
392
|
size: "small",
|
|
354
|
-
icon: "
|
|
393
|
+
icon: "TableEditIcon",
|
|
355
394
|
tooltipMessage: "Edit This Record",
|
|
356
395
|
onClick: "editEvent"
|
|
357
396
|
},
|
|
358
397
|
style: {
|
|
359
|
-
|
|
398
|
+
fill: theme.palette.primary.main,
|
|
399
|
+
"& :hover": {
|
|
400
|
+
fill: theme.palette.primary.dark
|
|
401
|
+
}
|
|
360
402
|
}
|
|
361
403
|
}
|
|
362
404
|
}
|
|
@@ -364,6 +406,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
364
406
|
{
|
|
365
407
|
accessorKey: "Reject_Records",
|
|
366
408
|
header: "Delete",
|
|
409
|
+
type: "action",
|
|
410
|
+
size: 150,
|
|
367
411
|
widget: {
|
|
368
412
|
type: "Control",
|
|
369
413
|
scope: "#/properties/RejectButton",
|
|
@@ -372,10 +416,15 @@ const PageMasterUiSchema = (theme) => {
|
|
|
372
416
|
},
|
|
373
417
|
config: {
|
|
374
418
|
main: {
|
|
375
|
-
icon: "
|
|
376
|
-
color: "error",
|
|
419
|
+
icon: "Bin",
|
|
377
420
|
tooltipMessage: "Reject This Record",
|
|
378
421
|
onClick: "deletePopUpEvent"
|
|
422
|
+
},
|
|
423
|
+
style: {
|
|
424
|
+
fill: theme.palette.primary.main,
|
|
425
|
+
"& :hover": {
|
|
426
|
+
fill: theme.palette.primary.dark
|
|
427
|
+
}
|
|
379
428
|
}
|
|
380
429
|
}
|
|
381
430
|
}
|
|
@@ -383,7 +432,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
383
432
|
{
|
|
384
433
|
header: "Copy",
|
|
385
434
|
field: "Copy_Event",
|
|
386
|
-
|
|
435
|
+
type: "action",
|
|
436
|
+
size: 150,
|
|
387
437
|
widget: {
|
|
388
438
|
type: "Control",
|
|
389
439
|
scope: "#/properties/Copy_Event",
|
|
@@ -404,79 +454,49 @@ const PageMasterUiSchema = (theme) => {
|
|
|
404
454
|
]
|
|
405
455
|
},
|
|
406
456
|
{
|
|
407
|
-
|
|
457
|
+
scope: "#/properties/Remarks Container",
|
|
458
|
+
type: "WrapperLayout",
|
|
408
459
|
config: {
|
|
409
|
-
layout:
|
|
460
|
+
layout: 12,
|
|
461
|
+
main: {
|
|
462
|
+
divider: false,
|
|
463
|
+
rowSpacing: 0,
|
|
464
|
+
gap: 0
|
|
465
|
+
},
|
|
466
|
+
componentsBoxStyle: {
|
|
467
|
+
padding: "8px 8px 8px 24px"
|
|
468
|
+
}
|
|
410
469
|
},
|
|
411
470
|
elements: [
|
|
412
471
|
{
|
|
413
472
|
type: "Control",
|
|
414
|
-
scope: "#/properties/
|
|
415
|
-
options: {
|
|
416
|
-
widget: "IconButton"
|
|
417
|
-
},
|
|
418
|
-
config: {
|
|
419
|
-
layout: { xs: 1, sm: 1 },
|
|
420
|
-
main: {
|
|
421
|
-
onClick: "RemoveItemButton",
|
|
422
|
-
size: "large",
|
|
423
|
-
icon: "RejectIcon",
|
|
424
|
-
styleDefault: true
|
|
425
|
-
},
|
|
426
|
-
style: {
|
|
427
|
-
marginLeft: "-5px"
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
type: "Control",
|
|
433
|
-
scope: "#/properties/copiedElementDetails",
|
|
473
|
+
scope: "#/properties/btn",
|
|
434
474
|
options: {
|
|
435
|
-
widget: "
|
|
475
|
+
widget: "Button"
|
|
436
476
|
},
|
|
437
477
|
config: {
|
|
438
|
-
layout: { xs:
|
|
478
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
439
479
|
main: {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
fontSize: "12px",
|
|
446
|
-
marginTop: "4px"
|
|
480
|
+
name: "Save",
|
|
481
|
+
variant: "contained",
|
|
482
|
+
type: "text",
|
|
483
|
+
onClick: "saveHandler",
|
|
484
|
+
size: "medium"
|
|
447
485
|
}
|
|
448
486
|
}
|
|
449
487
|
},
|
|
450
488
|
{
|
|
451
489
|
type: "Control",
|
|
452
490
|
scope: "#/properties/EmptyBox",
|
|
491
|
+
config: {
|
|
492
|
+
layout: { xs: 8, sm: 9.5, md: 10, lg: 10.5 }
|
|
493
|
+
},
|
|
453
494
|
options: {
|
|
454
495
|
widget: "EmptyBox"
|
|
455
|
-
},
|
|
456
|
-
config: {
|
|
457
|
-
layout: { xs: 1, sm: 5 }
|
|
458
496
|
}
|
|
459
497
|
}
|
|
460
498
|
]
|
|
461
499
|
},
|
|
462
|
-
{
|
|
463
|
-
type: "Control",
|
|
464
|
-
scope: "#/properties/btn",
|
|
465
|
-
options: {
|
|
466
|
-
widget: "Button"
|
|
467
|
-
},
|
|
468
|
-
config: {
|
|
469
|
-
layout: { xs: 4, sm: 2 },
|
|
470
|
-
main: {
|
|
471
|
-
name: "Save",
|
|
472
|
-
startIcon: "ApproveIcon",
|
|
473
|
-
variant: "contained",
|
|
474
|
-
type: "text",
|
|
475
|
-
onClick: "saveHandler",
|
|
476
|
-
size: "medium"
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
},
|
|
480
500
|
{
|
|
481
501
|
type: "Control",
|
|
482
502
|
scope: "#/properties/popUpPageMasterComponent",
|
|
@@ -503,17 +523,19 @@ const PageMasterUiSchema = (theme) => {
|
|
|
503
523
|
widget: "Box"
|
|
504
524
|
},
|
|
505
525
|
config: {
|
|
506
|
-
layout:
|
|
526
|
+
layout: 11,
|
|
507
527
|
main: {
|
|
508
|
-
heading: "Are you sure you want to delete ?"
|
|
528
|
+
heading: "Are you sure you want to delete this Component ?"
|
|
509
529
|
},
|
|
510
530
|
style: {
|
|
511
|
-
marginTop: "-20px",
|
|
512
531
|
fontSize: "20px",
|
|
513
532
|
"&.MuiTypography-root": {
|
|
514
|
-
padding: "
|
|
533
|
+
padding: "0px 20px",
|
|
515
534
|
textAlign: "center",
|
|
516
|
-
lineHeight: "1"
|
|
535
|
+
lineHeight: "1.2",
|
|
536
|
+
fontWeight: "normal",
|
|
537
|
+
fontSize: "18px",
|
|
538
|
+
marginBottom: theme.spacing(5)
|
|
517
539
|
}
|
|
518
540
|
}
|
|
519
541
|
}
|
|
@@ -521,7 +543,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
521
543
|
{
|
|
522
544
|
type: "WrapperLayout",
|
|
523
545
|
config: {
|
|
524
|
-
layout:
|
|
546
|
+
layout: 11,
|
|
525
547
|
main: {}
|
|
526
548
|
},
|
|
527
549
|
elements: [
|
|
@@ -535,15 +557,15 @@ const PageMasterUiSchema = (theme) => {
|
|
|
535
557
|
layout: 6,
|
|
536
558
|
main: {
|
|
537
559
|
name: "No",
|
|
538
|
-
startIcon: "ApproveIcon",
|
|
539
560
|
variant: "contained",
|
|
540
|
-
color: "info",
|
|
541
561
|
type: "text",
|
|
542
562
|
onClick: "deletePopUpComponent",
|
|
543
563
|
size: "large"
|
|
544
564
|
},
|
|
545
565
|
style: {
|
|
546
566
|
position: "absolute",
|
|
567
|
+
padding: "8px 0px",
|
|
568
|
+
fontSize: "16px",
|
|
547
569
|
bottom: 0,
|
|
548
570
|
left: 0,
|
|
549
571
|
width: "50%",
|
|
@@ -571,7 +593,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
571
593
|
layout: 6,
|
|
572
594
|
main: {
|
|
573
595
|
name: "Yes",
|
|
574
|
-
startIcon: "ApproveIcon",
|
|
575
596
|
variant: "contained",
|
|
576
597
|
color: "error",
|
|
577
598
|
type: "text",
|
|
@@ -580,6 +601,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
580
601
|
},
|
|
581
602
|
style: {
|
|
582
603
|
position: "absolute",
|
|
604
|
+
padding: "8px 0px",
|
|
605
|
+
fontSize: "16px",
|
|
583
606
|
bottom: 0,
|
|
584
607
|
right: 0,
|
|
585
608
|
width: "50%",
|
|
@@ -626,17 +649,19 @@ const PageMasterUiSchema = (theme) => {
|
|
|
626
649
|
widget: "Box"
|
|
627
650
|
},
|
|
628
651
|
config: {
|
|
629
|
-
layout:
|
|
652
|
+
layout: 11,
|
|
630
653
|
main: {
|
|
631
|
-
heading: "Are you sure you want to delete ?"
|
|
654
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
632
655
|
},
|
|
633
656
|
style: {
|
|
634
|
-
marginTop: "-20px",
|
|
635
657
|
fontSize: "20px",
|
|
636
658
|
"&.MuiTypography-root": {
|
|
637
|
-
padding: "
|
|
659
|
+
padding: "0px 20px",
|
|
638
660
|
textAlign: "center",
|
|
639
|
-
lineHeight: "1"
|
|
661
|
+
lineHeight: "1.2",
|
|
662
|
+
fontWeight: "normal",
|
|
663
|
+
fontSize: "18px",
|
|
664
|
+
marginBottom: theme.spacing(5)
|
|
640
665
|
}
|
|
641
666
|
}
|
|
642
667
|
}
|
|
@@ -644,7 +669,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
644
669
|
{
|
|
645
670
|
type: "WrapperLayout",
|
|
646
671
|
config: {
|
|
647
|
-
layout:
|
|
672
|
+
layout: 11,
|
|
648
673
|
main: {}
|
|
649
674
|
},
|
|
650
675
|
elements: [
|
|
@@ -658,15 +683,15 @@ const PageMasterUiSchema = (theme) => {
|
|
|
658
683
|
layout: 6,
|
|
659
684
|
main: {
|
|
660
685
|
name: "No",
|
|
661
|
-
startIcon: "ApproveIcon",
|
|
662
686
|
variant: "contained",
|
|
663
|
-
color: "info",
|
|
664
687
|
type: "text",
|
|
665
688
|
onClick: "deletePopUpEvent",
|
|
666
689
|
size: "large"
|
|
667
690
|
},
|
|
668
691
|
style: {
|
|
669
692
|
position: "absolute",
|
|
693
|
+
padding: "8px 0px",
|
|
694
|
+
fontSize: "16px",
|
|
670
695
|
bottom: 0,
|
|
671
696
|
left: 0,
|
|
672
697
|
width: "50%",
|
|
@@ -694,7 +719,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
694
719
|
layout: 6,
|
|
695
720
|
main: {
|
|
696
721
|
name: "Yes",
|
|
697
|
-
startIcon: "ApproveIcon",
|
|
698
722
|
variant: "contained",
|
|
699
723
|
color: "error",
|
|
700
724
|
type: "text",
|
|
@@ -703,6 +727,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
703
727
|
},
|
|
704
728
|
style: {
|
|
705
729
|
position: "absolute",
|
|
730
|
+
padding: "8px 0px",
|
|
731
|
+
fontSize: "16px",
|
|
706
732
|
bottom: 0,
|
|
707
733
|
right: 0,
|
|
708
734
|
width: "50%",
|
|
@@ -740,8 +766,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
740
766
|
style: {
|
|
741
767
|
flexDirection: "row",
|
|
742
768
|
position: "absolute",
|
|
743
|
-
bottom:
|
|
744
|
-
marginBottom: "-8px",
|
|
769
|
+
bottom: 10,
|
|
745
770
|
height: "fit-content",
|
|
746
771
|
overflow: "hidden",
|
|
747
772
|
zIndex: 1e3,
|
|
@@ -761,75 +786,16 @@ const PageMasterUiSchema = (theme) => {
|
|
|
761
786
|
},
|
|
762
787
|
style: {
|
|
763
788
|
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
764
|
-
fontSize: "
|
|
789
|
+
fontSize: "11px",
|
|
765
790
|
textAlign: "center",
|
|
766
|
-
lineHeight:
|
|
791
|
+
lineHeight: 0,
|
|
767
792
|
width: "fit-content",
|
|
768
793
|
left: "50%",
|
|
769
794
|
position: "relative",
|
|
770
|
-
margin:
|
|
795
|
+
margin: "revert",
|
|
771
796
|
flexGrow: 1,
|
|
772
797
|
height: 0,
|
|
773
|
-
transform: "translate(-50%,0%)"
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
},
|
|
777
|
-
{
|
|
778
|
-
type: "Control",
|
|
779
|
-
scope: "#/properties/backIcon",
|
|
780
|
-
options: {
|
|
781
|
-
widget: "Box"
|
|
782
|
-
},
|
|
783
|
-
config: {
|
|
784
|
-
main: {
|
|
785
|
-
iconName: "PrevIcon",
|
|
786
|
-
onClick: "backHandler",
|
|
787
|
-
width: "fit-content"
|
|
788
|
-
},
|
|
789
|
-
style: {
|
|
790
|
-
fill: theme.palette.primary.main,
|
|
791
|
-
width: 20,
|
|
792
|
-
height: 0,
|
|
793
|
-
margin: 0,
|
|
794
|
-
top: 0,
|
|
795
|
-
right: { xs: "12px", sm: "84px" },
|
|
796
|
-
position: "absolute",
|
|
797
|
-
fontSize: "12px",
|
|
798
|
-
cursor: "pointer",
|
|
799
|
-
":hover": {
|
|
800
|
-
fill: theme.palette.primary.dark
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
},
|
|
805
|
-
{
|
|
806
|
-
type: "Control",
|
|
807
|
-
scope: "#/properties/text",
|
|
808
|
-
options: {
|
|
809
|
-
widget: "Box"
|
|
810
|
-
},
|
|
811
|
-
config: {
|
|
812
|
-
main: {
|
|
813
|
-
heading: "Previous Page",
|
|
814
|
-
onClick: "backHandler"
|
|
815
|
-
},
|
|
816
|
-
style: {
|
|
817
|
-
display: { xs: "none", sm: "flex" },
|
|
818
|
-
textAlign: "left",
|
|
819
|
-
lineHeight: 1,
|
|
820
|
-
height: 0,
|
|
821
|
-
width: "fit-content",
|
|
822
|
-
color: theme.palette.primary.main,
|
|
823
|
-
fontSize: "12px",
|
|
824
|
-
cursor: "pointer",
|
|
825
|
-
marginLeft: "2px",
|
|
826
|
-
marginRight: 0,
|
|
827
|
-
top: 3,
|
|
828
|
-
right: "12px",
|
|
829
|
-
position: "absolute",
|
|
830
|
-
":hover": {
|
|
831
|
-
color: theme.palette.primary.dark
|
|
832
|
-
}
|
|
798
|
+
transform: "translate(-50%, 0%)"
|
|
833
799
|
}
|
|
834
800
|
}
|
|
835
801
|
}
|
|
@@ -6284,44 +6250,51 @@ const ComponentSchema = {
|
|
|
6284
6250
|
properties: {
|
|
6285
6251
|
type: {
|
|
6286
6252
|
oneOf: [
|
|
6287
|
-
{ title: "
|
|
6253
|
+
{ title: "Masked Aadhar Card", const: "AadharcardText" },
|
|
6288
6254
|
{ title: "Array", const: "Array" },
|
|
6289
6255
|
{ title: "Button", const: "Button" },
|
|
6290
|
-
{ title: "Card", const: "card" },
|
|
6291
|
-
{ title: "
|
|
6256
|
+
{ title: "Data Card", const: "card" },
|
|
6257
|
+
{ title: "Check Box", const: "CheckBox" },
|
|
6292
6258
|
{ title: "Container", const: "WrapperSection" },
|
|
6293
|
-
{ title: "
|
|
6259
|
+
{ title: "Data Grid", const: "DataGrid" },
|
|
6294
6260
|
{ title: "Date", const: "Date" },
|
|
6295
|
-
{ title: "
|
|
6296
|
-
{ title: "Download
|
|
6261
|
+
{ title: "Time Stamp", const: "DateTime" },
|
|
6262
|
+
{ title: "Download", const: "DownloadFile" },
|
|
6297
6263
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
6298
|
-
{ title: "File", const: "FileInput" },
|
|
6264
|
+
{ title: "File Handler", const: "FileInput" },
|
|
6299
6265
|
{ title: "Graph", const: "Graph" },
|
|
6300
6266
|
{ title: "Input Slider", const: "InputSlider" },
|
|
6301
6267
|
{ title: "Label", const: "Box" },
|
|
6302
|
-
{ title: "
|
|
6303
|
-
{ title: "
|
|
6304
|
-
{ title: "
|
|
6305
|
-
{ title: "
|
|
6306
|
-
{ title: "
|
|
6307
|
-
{ title: "
|
|
6308
|
-
{ title: "
|
|
6268
|
+
{ title: "Leaderboard", const: "LeaderBoard" },
|
|
6269
|
+
{ title: "Multi-Select Dropdown", const: "MultipleSelect" },
|
|
6270
|
+
{ title: "Pan Card Masked", const: "PanCardText" },
|
|
6271
|
+
{ title: "Pop Up", const: "PopUp" },
|
|
6272
|
+
{ title: "Progress Bar", const: "ProgressBar" },
|
|
6273
|
+
{ title: "Progress Bar Card", const: "ProgressBarCard" },
|
|
6274
|
+
{ title: "Dropdown", const: "Select" },
|
|
6309
6275
|
{ title: "Slider", const: "Slider" },
|
|
6310
|
-
{ title: "
|
|
6276
|
+
{ title: "Speedometer", const: "SpeedoMeter" },
|
|
6311
6277
|
{ title: "Stepper Container", const: "Stepper" },
|
|
6312
6278
|
{ title: "Radio", const: "Radio" },
|
|
6313
6279
|
{ title: "Rank", const: "Rank" },
|
|
6314
6280
|
{ title: "Rank Card", const: "RankCard" },
|
|
6315
|
-
{ title: "Runner Boy
|
|
6281
|
+
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6316
6282
|
{ title: "Table", const: "Table" },
|
|
6317
6283
|
{ title: "Tabs", const: "TabSection" },
|
|
6318
6284
|
{ title: "Text", const: "Text" },
|
|
6319
6285
|
{ title: "Text Area", const: "TextArea" },
|
|
6320
6286
|
{ title: "Timer", const: "Timer" },
|
|
6321
|
-
{ title: "Upload
|
|
6322
|
-
{ title: "
|
|
6323
|
-
{ title: "
|
|
6324
|
-
{ title: "Thought of the
|
|
6287
|
+
{ title: "Upload", const: "UploadFile" },
|
|
6288
|
+
{ title: "Tree ", const: "TreeMap" },
|
|
6289
|
+
{ title: "Column Group", const: "ColumnGroup" },
|
|
6290
|
+
{ title: "Thought of the day", const: "Thought" }
|
|
6291
|
+
]
|
|
6292
|
+
},
|
|
6293
|
+
elementType: {
|
|
6294
|
+
oneOf: [
|
|
6295
|
+
{ title: "Table Action Element", const: "action" },
|
|
6296
|
+
{ title: "Table Header Element", const: "tableHeader" },
|
|
6297
|
+
{ title: "Table Element", const: "element" }
|
|
6325
6298
|
]
|
|
6326
6299
|
},
|
|
6327
6300
|
columnFormat: {
|
|
@@ -6475,23 +6448,20 @@ const ComponentSchema = {
|
|
|
6475
6448
|
}
|
|
6476
6449
|
},
|
|
6477
6450
|
filteringOptions: {
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6493
|
-
]
|
|
6494
|
-
}
|
|
6451
|
+
oneOf: [
|
|
6452
|
+
{ const: "fuzzy", title: "Fuzzy" },
|
|
6453
|
+
{ const: "contains", title: "Contain" },
|
|
6454
|
+
{ const: "startsWith", title: "Starts with" },
|
|
6455
|
+
{ const: "endsWith", title: "Ends with" },
|
|
6456
|
+
{ const: "equals", title: "Equals" },
|
|
6457
|
+
{ const: "notEquals", title: "Not Equals" },
|
|
6458
|
+
{ const: "between", title: "Between" },
|
|
6459
|
+
{ const: "betweenInclusive", title: "Between inclusive" },
|
|
6460
|
+
{ const: "greaterThan", title: "Greater than" },
|
|
6461
|
+
{ const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
|
|
6462
|
+
{ const: "lessThan", title: "Less than" },
|
|
6463
|
+
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6464
|
+
]
|
|
6495
6465
|
},
|
|
6496
6466
|
legendLabels: {
|
|
6497
6467
|
type: "array",
|
|
@@ -6607,6 +6577,9 @@ const ComponentSchema = {
|
|
|
6607
6577
|
{ title: "Info", const: "info" }
|
|
6608
6578
|
]
|
|
6609
6579
|
},
|
|
6580
|
+
pageName: {
|
|
6581
|
+
path: []
|
|
6582
|
+
},
|
|
6610
6583
|
name: {
|
|
6611
6584
|
type: "string"
|
|
6612
6585
|
},
|
|
@@ -6621,39 +6594,38 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6621
6594
|
var _a;
|
|
6622
6595
|
const uiSchema = {
|
|
6623
6596
|
type: "HorizontalLayout",
|
|
6624
|
-
heading: "Component",
|
|
6597
|
+
heading: "Page-Component",
|
|
6625
6598
|
elements: [
|
|
6626
|
-
{
|
|
6627
|
-
type: "Control",
|
|
6628
|
-
scope: "#/properties/pageName",
|
|
6629
|
-
options: {
|
|
6630
|
-
widget: "Box"
|
|
6631
|
-
},
|
|
6632
|
-
config: {
|
|
6633
|
-
layout: 12,
|
|
6634
|
-
main: {
|
|
6635
|
-
heading: " "
|
|
6636
|
-
},
|
|
6637
|
-
style: {
|
|
6638
|
-
marginLeft: theme.spacing(3),
|
|
6639
|
-
width: "auto",
|
|
6640
|
-
fontSize: "12px",
|
|
6641
|
-
color: "gray"
|
|
6642
|
-
}
|
|
6643
|
-
}
|
|
6644
|
-
},
|
|
6645
6599
|
{
|
|
6646
6600
|
type: "TabLayout",
|
|
6647
6601
|
config: {
|
|
6648
6602
|
main: {
|
|
6649
6603
|
tabLabels: ["Core"],
|
|
6650
|
-
defaultStyle: true,
|
|
6651
6604
|
id: `component`
|
|
6605
|
+
},
|
|
6606
|
+
style: {
|
|
6607
|
+
TabPanelStyle: {
|
|
6608
|
+
padding: 0
|
|
6609
|
+
}
|
|
6610
|
+
},
|
|
6611
|
+
TabsStyle: {
|
|
6612
|
+
marginBottom: "3px",
|
|
6613
|
+
paddingBottom: "4px",
|
|
6614
|
+
boxShadow: "0px 3px 4px #afafaf80",
|
|
6615
|
+
"& .MuiTabs-indicator": {
|
|
6616
|
+
bottom: "6px"
|
|
6617
|
+
}
|
|
6652
6618
|
}
|
|
6653
6619
|
},
|
|
6654
6620
|
elements: [
|
|
6655
6621
|
{
|
|
6656
|
-
type: "
|
|
6622
|
+
type: "WrapperLayout",
|
|
6623
|
+
config: {
|
|
6624
|
+
main: {
|
|
6625
|
+
label: " ",
|
|
6626
|
+
gap: "8px"
|
|
6627
|
+
}
|
|
6628
|
+
},
|
|
6657
6629
|
elements: [
|
|
6658
6630
|
{
|
|
6659
6631
|
type: "Control",
|
|
@@ -6662,12 +6634,22 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6662
6634
|
widget: "SelectInputField"
|
|
6663
6635
|
},
|
|
6664
6636
|
config: {
|
|
6665
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
6637
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
6666
6638
|
main: {
|
|
6667
6639
|
label: "Type"
|
|
6668
6640
|
}
|
|
6669
6641
|
}
|
|
6670
6642
|
},
|
|
6643
|
+
{
|
|
6644
|
+
type: "Control",
|
|
6645
|
+
scope: "#/properties/proc",
|
|
6646
|
+
config: {
|
|
6647
|
+
layout: { xs: 6, sm: 0, md: 0, lg: 0 }
|
|
6648
|
+
},
|
|
6649
|
+
options: {
|
|
6650
|
+
widget: "EmptyBox"
|
|
6651
|
+
}
|
|
6652
|
+
},
|
|
6671
6653
|
{
|
|
6672
6654
|
type: "Control",
|
|
6673
6655
|
scope: "#/properties/name",
|
|
@@ -6675,11 +6657,9 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6675
6657
|
widget: "InputField"
|
|
6676
6658
|
},
|
|
6677
6659
|
config: {
|
|
6678
|
-
layout: { xs:
|
|
6660
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
6679
6661
|
main: {
|
|
6680
|
-
label: "
|
|
6681
|
-
options: [],
|
|
6682
|
-
color: "secondary",
|
|
6662
|
+
label: "Component ID",
|
|
6683
6663
|
required: true
|
|
6684
6664
|
}
|
|
6685
6665
|
}
|
|
@@ -6691,7 +6671,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6691
6671
|
widget: "InputField"
|
|
6692
6672
|
},
|
|
6693
6673
|
config: {
|
|
6694
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
6674
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
6695
6675
|
main: {
|
|
6696
6676
|
label: "Label",
|
|
6697
6677
|
options: [],
|
|
@@ -6700,34 +6680,11 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6700
6680
|
}
|
|
6701
6681
|
}
|
|
6702
6682
|
},
|
|
6703
|
-
{
|
|
6704
|
-
type: "Control",
|
|
6705
|
-
scope: "#/properties/columnFormat",
|
|
6706
|
-
options: {
|
|
6707
|
-
widget: "SelectInputField"
|
|
6708
|
-
},
|
|
6709
|
-
config: {
|
|
6710
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6711
|
-
main: {
|
|
6712
|
-
label: "Column Format"
|
|
6713
|
-
}
|
|
6714
|
-
}
|
|
6715
|
-
},
|
|
6716
|
-
{
|
|
6717
|
-
type: "Control",
|
|
6718
|
-
scope: "#/properties/proc",
|
|
6719
|
-
config: {
|
|
6720
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
6721
|
-
},
|
|
6722
|
-
options: {
|
|
6723
|
-
widget: "EmptyBox"
|
|
6724
|
-
}
|
|
6725
|
-
},
|
|
6726
6683
|
{
|
|
6727
6684
|
type: "Control",
|
|
6728
6685
|
scope: "#/properties/proc",
|
|
6729
6686
|
config: {
|
|
6730
|
-
layout: { xs:
|
|
6687
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6731
6688
|
},
|
|
6732
6689
|
options: {
|
|
6733
6690
|
widget: "EmptyBox"
|
|
@@ -6789,97 +6746,59 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6789
6746
|
]
|
|
6790
6747
|
},
|
|
6791
6748
|
{
|
|
6792
|
-
type: "
|
|
6749
|
+
type: "WrapperLayout",
|
|
6793
6750
|
config: {
|
|
6794
|
-
|
|
6751
|
+
main: {
|
|
6752
|
+
gap: "8px"
|
|
6753
|
+
}
|
|
6795
6754
|
},
|
|
6796
6755
|
elements: [
|
|
6797
6756
|
{
|
|
6798
6757
|
type: "Control",
|
|
6799
|
-
scope: "#/properties/
|
|
6758
|
+
scope: "#/properties/btn",
|
|
6800
6759
|
options: {
|
|
6801
|
-
widget: "
|
|
6760
|
+
widget: "Button"
|
|
6802
6761
|
},
|
|
6803
6762
|
config: {
|
|
6804
|
-
layout: { xs:
|
|
6763
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6805
6764
|
main: {
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
style: {
|
|
6812
|
-
marginLeft: "-10px"
|
|
6765
|
+
name: "Ok",
|
|
6766
|
+
variant: "contained",
|
|
6767
|
+
type: "text",
|
|
6768
|
+
onClick: "okHandler",
|
|
6769
|
+
size: "medium"
|
|
6813
6770
|
}
|
|
6814
6771
|
}
|
|
6815
6772
|
},
|
|
6816
6773
|
{
|
|
6817
6774
|
type: "Control",
|
|
6818
|
-
scope: "#/properties/
|
|
6775
|
+
scope: "#/properties/btnSubmit",
|
|
6819
6776
|
options: {
|
|
6820
|
-
widget: "
|
|
6777
|
+
widget: "Button"
|
|
6821
6778
|
},
|
|
6822
6779
|
config: {
|
|
6823
|
-
layout: { xs:
|
|
6780
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6824
6781
|
main: {
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
fontSize: "12px",
|
|
6831
|
-
marginTop: "4px"
|
|
6782
|
+
name: "Save & Exit",
|
|
6783
|
+
variant: "contained",
|
|
6784
|
+
type: "text",
|
|
6785
|
+
onClick: "saveHandler",
|
|
6786
|
+
size: "medium"
|
|
6832
6787
|
}
|
|
6833
6788
|
}
|
|
6834
6789
|
},
|
|
6835
6790
|
{
|
|
6836
6791
|
type: "Control",
|
|
6837
6792
|
scope: "#/properties/EmptyBox",
|
|
6793
|
+
config: {
|
|
6794
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
6795
|
+
},
|
|
6838
6796
|
options: {
|
|
6839
6797
|
widget: "EmptyBox"
|
|
6840
|
-
},
|
|
6841
|
-
config: {
|
|
6842
|
-
layout: { xs: 1, sm: 5 }
|
|
6843
6798
|
}
|
|
6844
6799
|
}
|
|
6845
6800
|
]
|
|
6846
6801
|
},
|
|
6847
|
-
{
|
|
6848
|
-
type: "Control",
|
|
6849
|
-
scope: "#/properties/btn",
|
|
6850
|
-
options: {
|
|
6851
|
-
widget: "Button"
|
|
6852
|
-
},
|
|
6853
|
-
config: {
|
|
6854
|
-
layout: { xs: 4, sm: 2 },
|
|
6855
|
-
main: {
|
|
6856
|
-
name: "Ok",
|
|
6857
|
-
startIcon: "ApproveIcon",
|
|
6858
|
-
variant: "contained",
|
|
6859
|
-
type: "text",
|
|
6860
|
-
onClick: "okHandler",
|
|
6861
|
-
size: "medium"
|
|
6862
|
-
}
|
|
6863
|
-
}
|
|
6864
|
-
},
|
|
6865
|
-
{
|
|
6866
|
-
type: "Control",
|
|
6867
|
-
scope: "#/properties/btnSubmit",
|
|
6868
|
-
options: {
|
|
6869
|
-
widget: "Button"
|
|
6870
|
-
},
|
|
6871
|
-
config: {
|
|
6872
|
-
layout: { xs: 4, sm: 2 },
|
|
6873
|
-
main: {
|
|
6874
|
-
name: "Save & Exit",
|
|
6875
|
-
startIcon: "ApproveIcon",
|
|
6876
|
-
variant: "contained",
|
|
6877
|
-
type: "text",
|
|
6878
|
-
onClick: "saveHandler",
|
|
6879
|
-
size: "medium"
|
|
6880
|
-
}
|
|
6881
|
-
}
|
|
6882
|
-
},
|
|
6883
6802
|
{
|
|
6884
6803
|
type: "Control",
|
|
6885
6804
|
scope: "#/properties/popUpComponentSection",
|
|
@@ -6906,17 +6825,18 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6906
6825
|
widget: "Box"
|
|
6907
6826
|
},
|
|
6908
6827
|
config: {
|
|
6909
|
-
layout:
|
|
6828
|
+
layout: 11,
|
|
6910
6829
|
main: {
|
|
6911
|
-
heading: "Are you sure you want to delete ?"
|
|
6830
|
+
heading: "Are you sure you want to delete this Component ?"
|
|
6912
6831
|
},
|
|
6913
6832
|
style: {
|
|
6914
|
-
marginTop: "-20px",
|
|
6915
|
-
fontSize: "20px",
|
|
6916
6833
|
"&.MuiTypography-root": {
|
|
6917
|
-
padding: "
|
|
6834
|
+
padding: "0px 20px",
|
|
6918
6835
|
textAlign: "center",
|
|
6919
|
-
lineHeight: "1"
|
|
6836
|
+
lineHeight: "1.2",
|
|
6837
|
+
fontWeight: "normal",
|
|
6838
|
+
fontSize: "18px",
|
|
6839
|
+
marginBottom: theme.spacing(5)
|
|
6920
6840
|
}
|
|
6921
6841
|
}
|
|
6922
6842
|
}
|
|
@@ -6924,7 +6844,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6924
6844
|
{
|
|
6925
6845
|
type: "WrapperLayout",
|
|
6926
6846
|
config: {
|
|
6927
|
-
layout:
|
|
6847
|
+
layout: 11,
|
|
6928
6848
|
main: {}
|
|
6929
6849
|
},
|
|
6930
6850
|
elements: [
|
|
@@ -6938,15 +6858,15 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6938
6858
|
layout: 6,
|
|
6939
6859
|
main: {
|
|
6940
6860
|
name: "No",
|
|
6941
|
-
startIcon: "ApproveIcon",
|
|
6942
6861
|
variant: "contained",
|
|
6943
|
-
color: "info",
|
|
6944
6862
|
type: "text",
|
|
6945
6863
|
onClick: "deletePopUpComponent",
|
|
6946
6864
|
size: "large"
|
|
6947
6865
|
},
|
|
6948
6866
|
style: {
|
|
6949
6867
|
position: "absolute",
|
|
6868
|
+
padding: "8px 0px",
|
|
6869
|
+
fontSize: "16px",
|
|
6950
6870
|
bottom: 0,
|
|
6951
6871
|
left: 0,
|
|
6952
6872
|
width: "50%",
|
|
@@ -6974,7 +6894,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6974
6894
|
layout: 6,
|
|
6975
6895
|
main: {
|
|
6976
6896
|
name: "Yes",
|
|
6977
|
-
startIcon: "ApproveIcon",
|
|
6978
6897
|
variant: "contained",
|
|
6979
6898
|
color: "error",
|
|
6980
6899
|
type: "text",
|
|
@@ -6983,6 +6902,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6983
6902
|
},
|
|
6984
6903
|
style: {
|
|
6985
6904
|
position: "absolute",
|
|
6905
|
+
padding: "8px 0px",
|
|
6906
|
+
fontSize: "16px",
|
|
6986
6907
|
bottom: 0,
|
|
6987
6908
|
right: 0,
|
|
6988
6909
|
width: "50%",
|
|
@@ -7029,17 +6950,19 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7029
6950
|
widget: "Box"
|
|
7030
6951
|
},
|
|
7031
6952
|
config: {
|
|
7032
|
-
layout:
|
|
6953
|
+
layout: 11,
|
|
7033
6954
|
main: {
|
|
7034
|
-
heading: "Are you sure you want to delete ?"
|
|
6955
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
7035
6956
|
},
|
|
7036
6957
|
style: {
|
|
7037
|
-
marginTop: "-20px",
|
|
7038
6958
|
fontSize: "20px",
|
|
7039
6959
|
"&.MuiTypography-root": {
|
|
7040
|
-
padding: "
|
|
6960
|
+
padding: "0px 20px",
|
|
7041
6961
|
textAlign: "center",
|
|
7042
|
-
lineHeight: "1"
|
|
6962
|
+
lineHeight: "1.2",
|
|
6963
|
+
fontWeight: "normal",
|
|
6964
|
+
fontSize: "18px",
|
|
6965
|
+
marginBottom: theme.spacing(5)
|
|
7043
6966
|
}
|
|
7044
6967
|
}
|
|
7045
6968
|
}
|
|
@@ -7047,7 +6970,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7047
6970
|
{
|
|
7048
6971
|
type: "WrapperLayout",
|
|
7049
6972
|
config: {
|
|
7050
|
-
layout:
|
|
6973
|
+
layout: 11,
|
|
7051
6974
|
main: {}
|
|
7052
6975
|
},
|
|
7053
6976
|
elements: [
|
|
@@ -7061,15 +6984,15 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7061
6984
|
layout: 6,
|
|
7062
6985
|
main: {
|
|
7063
6986
|
name: "No",
|
|
7064
|
-
startIcon: "ApproveIcon",
|
|
7065
6987
|
variant: "contained",
|
|
7066
|
-
color: "info",
|
|
7067
6988
|
type: "text",
|
|
7068
6989
|
onClick: "deletePopUpEvent",
|
|
7069
6990
|
size: "large"
|
|
7070
6991
|
},
|
|
7071
6992
|
style: {
|
|
7072
6993
|
position: "absolute",
|
|
6994
|
+
padding: "8px 0px",
|
|
6995
|
+
fontSize: "16px",
|
|
7073
6996
|
bottom: 0,
|
|
7074
6997
|
left: 0,
|
|
7075
6998
|
width: "50%",
|
|
@@ -7097,7 +7020,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7097
7020
|
layout: 6,
|
|
7098
7021
|
main: {
|
|
7099
7022
|
name: "Yes",
|
|
7100
|
-
startIcon: "ApproveIcon",
|
|
7101
7023
|
variant: "contained",
|
|
7102
7024
|
color: "error",
|
|
7103
7025
|
type: "text",
|
|
@@ -7106,6 +7028,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7106
7028
|
},
|
|
7107
7029
|
style: {
|
|
7108
7030
|
position: "absolute",
|
|
7031
|
+
padding: "8px 0px",
|
|
7032
|
+
fontSize: "16px",
|
|
7109
7033
|
bottom: 0,
|
|
7110
7034
|
right: 0,
|
|
7111
7035
|
width: "50%",
|
|
@@ -7128,47 +7052,25 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7128
7052
|
},
|
|
7129
7053
|
{
|
|
7130
7054
|
type: "Control",
|
|
7131
|
-
scope: "#/properties/
|
|
7132
|
-
options: {
|
|
7133
|
-
widget: "EmptyBox"
|
|
7134
|
-
},
|
|
7135
|
-
config: {
|
|
7136
|
-
layout: { xs: 4, sm: 8 }
|
|
7137
|
-
}
|
|
7138
|
-
},
|
|
7139
|
-
{
|
|
7140
|
-
type: "Control",
|
|
7141
|
-
scope: "#/properties/btn",
|
|
7142
|
-
options: {
|
|
7143
|
-
widget: "Button"
|
|
7144
|
-
},
|
|
7145
|
-
config: {
|
|
7146
|
-
layout: { xs: 4, sm: 2 },
|
|
7147
|
-
main: {
|
|
7148
|
-
name: "Ok",
|
|
7149
|
-
startIcon: "ApproveIcon",
|
|
7150
|
-
variant: "contained",
|
|
7151
|
-
type: "text",
|
|
7152
|
-
onClick: "okHandler",
|
|
7153
|
-
size: "medium"
|
|
7154
|
-
}
|
|
7155
|
-
}
|
|
7156
|
-
},
|
|
7157
|
-
{
|
|
7158
|
-
type: "Control",
|
|
7159
|
-
scope: "#/properties/btnSubmit",
|
|
7055
|
+
scope: "#/properties/pageName",
|
|
7160
7056
|
options: {
|
|
7161
|
-
widget: "
|
|
7057
|
+
widget: "Breadcrumb"
|
|
7162
7058
|
},
|
|
7163
7059
|
config: {
|
|
7164
|
-
layout:
|
|
7060
|
+
layout: 12,
|
|
7165
7061
|
main: {
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7062
|
+
onNavigatePopupNo: "onNavigatePopupNo",
|
|
7063
|
+
onNavigatePopupYes: "onNavigatePopupYes"
|
|
7064
|
+
},
|
|
7065
|
+
style: {
|
|
7066
|
+
paddingLeft: theme.spacing(3),
|
|
7067
|
+
color: theme.palette.grey[600],
|
|
7068
|
+
fontSize: "10px",
|
|
7069
|
+
position: "fixed",
|
|
7070
|
+
bottom: "24px",
|
|
7071
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
7072
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
7073
|
+
backgroundColor: theme.palette.background.default
|
|
7172
7074
|
}
|
|
7173
7075
|
}
|
|
7174
7076
|
},
|
|
@@ -7189,8 +7091,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7189
7091
|
style: {
|
|
7190
7092
|
flexDirection: "row",
|
|
7191
7093
|
position: "absolute",
|
|
7192
|
-
bottom:
|
|
7193
|
-
marginBottom: "-8px",
|
|
7094
|
+
bottom: 10,
|
|
7194
7095
|
height: "fit-content",
|
|
7195
7096
|
overflow: "hidden",
|
|
7196
7097
|
zIndex: 1e3,
|
|
@@ -7210,75 +7111,16 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7210
7111
|
},
|
|
7211
7112
|
style: {
|
|
7212
7113
|
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
7213
|
-
fontSize: "
|
|
7114
|
+
fontSize: "11px",
|
|
7214
7115
|
textAlign: "center",
|
|
7215
|
-
lineHeight:
|
|
7116
|
+
lineHeight: 0,
|
|
7216
7117
|
width: "fit-content",
|
|
7217
7118
|
left: "50%",
|
|
7218
7119
|
position: "relative",
|
|
7219
|
-
margin:
|
|
7120
|
+
margin: "revert",
|
|
7220
7121
|
flexGrow: 1,
|
|
7221
7122
|
height: 0,
|
|
7222
|
-
transform: "translate(-50%,0%)"
|
|
7223
|
-
}
|
|
7224
|
-
}
|
|
7225
|
-
},
|
|
7226
|
-
{
|
|
7227
|
-
type: "Control",
|
|
7228
|
-
scope: "#/properties/backIcon",
|
|
7229
|
-
options: {
|
|
7230
|
-
widget: "Box"
|
|
7231
|
-
},
|
|
7232
|
-
config: {
|
|
7233
|
-
main: {
|
|
7234
|
-
iconName: "PrevIcon",
|
|
7235
|
-
onClick: "backHandler",
|
|
7236
|
-
width: "fit-content"
|
|
7237
|
-
},
|
|
7238
|
-
style: {
|
|
7239
|
-
fill: theme.palette.primary.main,
|
|
7240
|
-
width: 20,
|
|
7241
|
-
height: 0,
|
|
7242
|
-
margin: 0,
|
|
7243
|
-
top: 0,
|
|
7244
|
-
right: { xs: "12px", sm: "84px" },
|
|
7245
|
-
position: "absolute",
|
|
7246
|
-
fontSize: "12px",
|
|
7247
|
-
cursor: "pointer",
|
|
7248
|
-
":hover": {
|
|
7249
|
-
fill: theme.palette.primary.dark
|
|
7250
|
-
}
|
|
7251
|
-
}
|
|
7252
|
-
}
|
|
7253
|
-
},
|
|
7254
|
-
{
|
|
7255
|
-
type: "Control",
|
|
7256
|
-
scope: "#/properties/text",
|
|
7257
|
-
options: {
|
|
7258
|
-
widget: "Box"
|
|
7259
|
-
},
|
|
7260
|
-
config: {
|
|
7261
|
-
main: {
|
|
7262
|
-
heading: "Previous Page",
|
|
7263
|
-
onClick: "backHandler"
|
|
7264
|
-
},
|
|
7265
|
-
style: {
|
|
7266
|
-
display: { xs: "none", sm: "flex" },
|
|
7267
|
-
textAlign: "left",
|
|
7268
|
-
lineHeight: 1,
|
|
7269
|
-
height: 0,
|
|
7270
|
-
width: "fit-content",
|
|
7271
|
-
color: theme.palette.primary.main,
|
|
7272
|
-
fontSize: "12px",
|
|
7273
|
-
cursor: "pointer",
|
|
7274
|
-
marginLeft: "2px",
|
|
7275
|
-
marginRight: 0,
|
|
7276
|
-
top: 3,
|
|
7277
|
-
right: "12px",
|
|
7278
|
-
position: "absolute",
|
|
7279
|
-
":hover": {
|
|
7280
|
-
color: theme.palette.primary.dark
|
|
7281
|
-
}
|
|
7123
|
+
transform: "translate(-50%, 0%)"
|
|
7282
7124
|
}
|
|
7283
7125
|
}
|
|
7284
7126
|
}
|
|
@@ -7289,7 +7131,13 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7289
7131
|
return uiSchema;
|
|
7290
7132
|
};
|
|
7291
7133
|
const CoreSection = {
|
|
7292
|
-
type: "
|
|
7134
|
+
type: "WrapperLayout",
|
|
7135
|
+
config: {
|
|
7136
|
+
main: {
|
|
7137
|
+
label: " ",
|
|
7138
|
+
gap: "8px"
|
|
7139
|
+
}
|
|
7140
|
+
},
|
|
7293
7141
|
elements: [
|
|
7294
7142
|
{
|
|
7295
7143
|
type: "Control",
|
|
@@ -7298,7 +7146,7 @@ const CoreSection = {
|
|
|
7298
7146
|
widget: "SelectInputField"
|
|
7299
7147
|
},
|
|
7300
7148
|
config: {
|
|
7301
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7149
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7302
7150
|
main: {
|
|
7303
7151
|
label: "Type",
|
|
7304
7152
|
type: "text"
|
|
@@ -7307,40 +7155,39 @@ const CoreSection = {
|
|
|
7307
7155
|
},
|
|
7308
7156
|
{
|
|
7309
7157
|
type: "Control",
|
|
7310
|
-
scope: "#/properties/
|
|
7311
|
-
options: {
|
|
7312
|
-
widget: "InputField"
|
|
7313
|
-
},
|
|
7158
|
+
scope: "#/properties/proc",
|
|
7314
7159
|
config: {
|
|
7315
|
-
layout: { xs: 6, sm:
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7160
|
+
layout: { xs: 6, sm: 0, md: 0, lg: 0 }
|
|
7161
|
+
},
|
|
7162
|
+
options: {
|
|
7163
|
+
widget: "EmptyBox"
|
|
7319
7164
|
}
|
|
7320
7165
|
},
|
|
7321
7166
|
{
|
|
7322
7167
|
type: "Control",
|
|
7323
|
-
scope: "#/properties/
|
|
7168
|
+
scope: "#/properties/name",
|
|
7324
7169
|
options: {
|
|
7325
7170
|
widget: "InputField"
|
|
7326
7171
|
},
|
|
7327
7172
|
config: {
|
|
7328
|
-
layout: { xs:
|
|
7173
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7329
7174
|
main: {
|
|
7330
|
-
label: "
|
|
7175
|
+
label: "Component ID",
|
|
7176
|
+
required: true
|
|
7331
7177
|
}
|
|
7332
7178
|
}
|
|
7333
7179
|
},
|
|
7334
7180
|
{
|
|
7335
7181
|
type: "Control",
|
|
7336
|
-
scope: "#/properties/
|
|
7182
|
+
scope: "#/properties/label",
|
|
7337
7183
|
options: {
|
|
7338
|
-
widget: "
|
|
7184
|
+
widget: "InputField"
|
|
7339
7185
|
},
|
|
7340
7186
|
config: {
|
|
7341
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7187
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7342
7188
|
main: {
|
|
7343
|
-
label: "
|
|
7189
|
+
label: "Label",
|
|
7190
|
+
required: true
|
|
7344
7191
|
}
|
|
7345
7192
|
}
|
|
7346
7193
|
},
|
|
@@ -7348,17 +7195,7 @@ const CoreSection = {
|
|
|
7348
7195
|
type: "Control",
|
|
7349
7196
|
scope: "#/properties/proc",
|
|
7350
7197
|
config: {
|
|
7351
|
-
layout: { xs:
|
|
7352
|
-
},
|
|
7353
|
-
options: {
|
|
7354
|
-
widget: "EmptyBox"
|
|
7355
|
-
}
|
|
7356
|
-
},
|
|
7357
|
-
{
|
|
7358
|
-
type: "Control",
|
|
7359
|
-
scope: "#/properties/proc",
|
|
7360
|
-
config: {
|
|
7361
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7198
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7362
7199
|
},
|
|
7363
7200
|
options: {
|
|
7364
7201
|
widget: "EmptyBox"
|
|
@@ -7441,15 +7278,20 @@ const EventSection = (theme) => {
|
|
|
7441
7278
|
},
|
|
7442
7279
|
config: {
|
|
7443
7280
|
main: {
|
|
7444
|
-
color: "info",
|
|
7445
7281
|
onClick: "eventAddHandler",
|
|
7446
7282
|
size: "small",
|
|
7447
|
-
icon: "
|
|
7448
|
-
iconLabel: "Add
|
|
7283
|
+
icon: "TableAddIcon",
|
|
7284
|
+
iconLabel: "Add",
|
|
7449
7285
|
styleDefault: true
|
|
7450
7286
|
},
|
|
7451
7287
|
style: {
|
|
7452
|
-
mt: "6px"
|
|
7288
|
+
mt: "6px",
|
|
7289
|
+
color: "inherit",
|
|
7290
|
+
fill: "inherit",
|
|
7291
|
+
"&:hover": {
|
|
7292
|
+
color: "inherit",
|
|
7293
|
+
fill: "inherit"
|
|
7294
|
+
}
|
|
7453
7295
|
}
|
|
7454
7296
|
}
|
|
7455
7297
|
}
|
|
@@ -7465,12 +7307,18 @@ const EventSection = (theme) => {
|
|
|
7465
7307
|
main: {
|
|
7466
7308
|
onClick: "copyPasteElement",
|
|
7467
7309
|
size: "small",
|
|
7468
|
-
icon: "
|
|
7310
|
+
icon: "TablePaste",
|
|
7469
7311
|
iconLabel: "Paste",
|
|
7470
7312
|
styleDefault: true
|
|
7471
7313
|
},
|
|
7472
7314
|
style: {
|
|
7473
|
-
mt: "6px"
|
|
7315
|
+
mt: "6px",
|
|
7316
|
+
color: "inherit",
|
|
7317
|
+
fill: "inherit",
|
|
7318
|
+
"&:hover": {
|
|
7319
|
+
color: "inherit",
|
|
7320
|
+
fill: "inherit"
|
|
7321
|
+
}
|
|
7474
7322
|
}
|
|
7475
7323
|
}
|
|
7476
7324
|
}
|
|
@@ -7485,15 +7333,21 @@ const EventSection = (theme) => {
|
|
|
7485
7333
|
elements: [
|
|
7486
7334
|
{
|
|
7487
7335
|
accessorKey: "eventType",
|
|
7488
|
-
header: "Event Type"
|
|
7336
|
+
header: "Event's Type",
|
|
7337
|
+
type: "string",
|
|
7338
|
+
size: 300
|
|
7489
7339
|
},
|
|
7490
7340
|
{
|
|
7491
7341
|
accessorKey: "Handler",
|
|
7492
|
-
header: "Handler"
|
|
7342
|
+
header: "Handler",
|
|
7343
|
+
type: "string",
|
|
7344
|
+
size: 200
|
|
7493
7345
|
},
|
|
7494
7346
|
{
|
|
7495
7347
|
accessorKey: "Edit_Approve_Records",
|
|
7496
|
-
header: "Edit
|
|
7348
|
+
header: "Edit",
|
|
7349
|
+
size: 150,
|
|
7350
|
+
type: "action",
|
|
7497
7351
|
widget: {
|
|
7498
7352
|
type: "Control",
|
|
7499
7353
|
scope: "#/properties/Edit_Records",
|
|
@@ -7502,14 +7356,16 @@ const EventSection = (theme) => {
|
|
|
7502
7356
|
},
|
|
7503
7357
|
config: {
|
|
7504
7358
|
main: {
|
|
7505
|
-
color: "info",
|
|
7506
7359
|
size: "small",
|
|
7507
|
-
icon: "
|
|
7360
|
+
icon: "TableEditIcon",
|
|
7508
7361
|
tooltipMessage: "Edit This Record",
|
|
7509
7362
|
onClick: "eventEditHandler"
|
|
7510
7363
|
},
|
|
7511
7364
|
style: {
|
|
7512
|
-
|
|
7365
|
+
fill: theme.palette.primary.main,
|
|
7366
|
+
"& :hover": {
|
|
7367
|
+
fill: theme.palette.primary.dark
|
|
7368
|
+
}
|
|
7513
7369
|
}
|
|
7514
7370
|
}
|
|
7515
7371
|
}
|
|
@@ -7517,6 +7373,8 @@ const EventSection = (theme) => {
|
|
|
7517
7373
|
{
|
|
7518
7374
|
accessorKey: "Reject_Records",
|
|
7519
7375
|
header: "Delete",
|
|
7376
|
+
size: 150,
|
|
7377
|
+
type: "action",
|
|
7520
7378
|
widget: {
|
|
7521
7379
|
type: "Control",
|
|
7522
7380
|
scope: "#/properties/RejectButton",
|
|
@@ -7526,10 +7384,15 @@ const EventSection = (theme) => {
|
|
|
7526
7384
|
},
|
|
7527
7385
|
config: {
|
|
7528
7386
|
main: {
|
|
7529
|
-
icon: "
|
|
7530
|
-
color: "error",
|
|
7387
|
+
icon: "Bin",
|
|
7531
7388
|
tooltipMessage: "Reject This Record",
|
|
7532
7389
|
onClick: "deletePopUpEvent"
|
|
7390
|
+
},
|
|
7391
|
+
style: {
|
|
7392
|
+
fill: theme.palette.primary.main,
|
|
7393
|
+
"& :hover": {
|
|
7394
|
+
fill: theme.palette.primary.dark
|
|
7395
|
+
}
|
|
7533
7396
|
}
|
|
7534
7397
|
}
|
|
7535
7398
|
}
|
|
@@ -7537,7 +7400,8 @@ const EventSection = (theme) => {
|
|
|
7537
7400
|
{
|
|
7538
7401
|
header: "Copy",
|
|
7539
7402
|
field: "Copy_Event",
|
|
7540
|
-
|
|
7403
|
+
size: 150,
|
|
7404
|
+
type: "action",
|
|
7541
7405
|
widget: {
|
|
7542
7406
|
type: "Control",
|
|
7543
7407
|
scope: "#/properties/Copy_Event",
|
|
@@ -7587,7 +7451,7 @@ const emptyBox$1 = (scope, layout) => {
|
|
|
7587
7451
|
const cardLayout = {
|
|
7588
7452
|
type: "Control",
|
|
7589
7453
|
scope: "#/properties/cardLayout",
|
|
7590
|
-
layout:
|
|
7454
|
+
layout: 12,
|
|
7591
7455
|
options: {
|
|
7592
7456
|
detail: {
|
|
7593
7457
|
type: "HorizontalLayout",
|
|
@@ -7630,34 +7494,46 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
7630
7494
|
return {
|
|
7631
7495
|
type: "Control",
|
|
7632
7496
|
scope: `#/properties/${parentScope}`,
|
|
7633
|
-
layout: 12,
|
|
7634
7497
|
options: {
|
|
7635
|
-
"
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7653
|
-
emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7654
|
-
]
|
|
7498
|
+
widget: "Array"
|
|
7499
|
+
},
|
|
7500
|
+
config: {
|
|
7501
|
+
layout: 12,
|
|
7502
|
+
main: {
|
|
7503
|
+
label: childLabel,
|
|
7504
|
+
childElementLabel: childLabel
|
|
7505
|
+
},
|
|
7506
|
+
style: {
|
|
7507
|
+
marginLeft: "-24px",
|
|
7508
|
+
marginBottom: "24px !important",
|
|
7509
|
+
labelStyle: {
|
|
7510
|
+
marginLeft: "24px"
|
|
7511
|
+
},
|
|
7512
|
+
detailsStyle: {
|
|
7513
|
+
marginLeft: "24px"
|
|
7514
|
+
}
|
|
7655
7515
|
}
|
|
7656
|
-
}
|
|
7516
|
+
},
|
|
7517
|
+
elements: [
|
|
7518
|
+
{
|
|
7519
|
+
type: "Control",
|
|
7520
|
+
scope: `#/properties/${childScope}`,
|
|
7521
|
+
options: {
|
|
7522
|
+
widget: "InputField"
|
|
7523
|
+
},
|
|
7524
|
+
config: {
|
|
7525
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7526
|
+
main: {
|
|
7527
|
+
label: childLabel || "Labels for Tab"
|
|
7528
|
+
}
|
|
7529
|
+
}
|
|
7530
|
+
},
|
|
7531
|
+
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
|
|
7532
|
+
]
|
|
7657
7533
|
};
|
|
7658
7534
|
};
|
|
7659
7535
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7660
|
-
sizeHolder.
|
|
7536
|
+
sizeHolder.elements[1] = {
|
|
7661
7537
|
type: "Control",
|
|
7662
7538
|
scope: `#/properties/value`,
|
|
7663
7539
|
options: {
|
|
@@ -7670,7 +7546,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7670
7546
|
}
|
|
7671
7547
|
}
|
|
7672
7548
|
};
|
|
7673
|
-
sizeHolder.
|
|
7549
|
+
sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7674
7550
|
const getInputField = (scope, label) => {
|
|
7675
7551
|
return {
|
|
7676
7552
|
type: "Control",
|
|
@@ -7679,7 +7555,7 @@ const getInputField = (scope, label) => {
|
|
|
7679
7555
|
widget: "InputField"
|
|
7680
7556
|
},
|
|
7681
7557
|
config: {
|
|
7682
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7558
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7683
7559
|
main: {
|
|
7684
7560
|
label
|
|
7685
7561
|
}
|
|
@@ -7694,7 +7570,7 @@ const getRadioInputField = (scope, label, options) => {
|
|
|
7694
7570
|
widget: "RadioInputField"
|
|
7695
7571
|
},
|
|
7696
7572
|
config: {
|
|
7697
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
7573
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7698
7574
|
main: {
|
|
7699
7575
|
label,
|
|
7700
7576
|
options
|
|
@@ -7709,17 +7585,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7709
7585
|
main: {
|
|
7710
7586
|
label: label || "Details",
|
|
7711
7587
|
isAccordion: true
|
|
7712
|
-
}
|
|
7713
|
-
wrapperStyle: {
|
|
7714
|
-
marginTop: "-6px",
|
|
7715
|
-
marginBottom: "-8px",
|
|
7716
|
-
marginLeft: "-34px",
|
|
7717
|
-
width: "108%"
|
|
7718
|
-
},
|
|
7719
|
-
componentsBoxStyle: {
|
|
7720
|
-
marginLeft: "12px"
|
|
7721
|
-
},
|
|
7722
|
-
defaultStyle: true
|
|
7588
|
+
}
|
|
7723
7589
|
},
|
|
7724
7590
|
elements: elements || []
|
|
7725
7591
|
};
|
|
@@ -7733,18 +7599,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
|
|
|
7733
7599
|
},
|
|
7734
7600
|
config: {
|
|
7735
7601
|
layout: layout || 12,
|
|
7736
|
-
style: {
|
|
7737
|
-
containerStyle: {
|
|
7738
|
-
borderRadius: "20px"
|
|
7739
|
-
},
|
|
7740
|
-
headerContainerStyle: {},
|
|
7741
|
-
textAreaStyle: {
|
|
7742
|
-
borderRadius: "20px",
|
|
7743
|
-
padding: "20px"
|
|
7744
|
-
}
|
|
7745
|
-
},
|
|
7746
7602
|
main: {
|
|
7747
|
-
heading,
|
|
7603
|
+
label: heading,
|
|
7748
7604
|
minRows: 8,
|
|
7749
7605
|
hideButton,
|
|
7750
7606
|
enableCodeEditor: true
|
|
@@ -7760,7 +7616,7 @@ const getSelectField = (scope, label, options) => {
|
|
|
7760
7616
|
widget: "SelectInputField"
|
|
7761
7617
|
},
|
|
7762
7618
|
config: {
|
|
7763
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7619
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7764
7620
|
main: {
|
|
7765
7621
|
label,
|
|
7766
7622
|
type: "text"
|
|
@@ -7776,7 +7632,7 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7776
7632
|
widget: "MultipleSelect"
|
|
7777
7633
|
},
|
|
7778
7634
|
config: {
|
|
7779
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7635
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7780
7636
|
main: {
|
|
7781
7637
|
multiple: true,
|
|
7782
7638
|
label,
|
|
@@ -7785,12 +7641,18 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7785
7641
|
}
|
|
7786
7642
|
};
|
|
7787
7643
|
};
|
|
7788
|
-
const
|
|
7644
|
+
const BaseSection = {
|
|
7789
7645
|
type: "WrapperLayout",
|
|
7646
|
+
config: {
|
|
7647
|
+
main: {
|
|
7648
|
+
label: " ",
|
|
7649
|
+
gap: "8px"
|
|
7650
|
+
}
|
|
7651
|
+
},
|
|
7790
7652
|
elements: []
|
|
7791
7653
|
};
|
|
7792
7654
|
const buildPropertiesSection = function(type) {
|
|
7793
|
-
let uiSchema = _.cloneDeep(
|
|
7655
|
+
let uiSchema = _.cloneDeep(BaseSection);
|
|
7794
7656
|
switch (type) {
|
|
7795
7657
|
case "TreeMap":
|
|
7796
7658
|
uiSchema.elements = [
|
|
@@ -7845,7 +7707,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7845
7707
|
case "Text":
|
|
7846
7708
|
uiSchema.elements = [
|
|
7847
7709
|
getInputField("placeholder", "Placeholder"),
|
|
7848
|
-
|
|
7710
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7849
7711
|
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7850
7712
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7851
7713
|
];
|
|
@@ -7854,7 +7716,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7854
7716
|
uiSchema.elements = [
|
|
7855
7717
|
getInputField("placeholder", "Placeholder"),
|
|
7856
7718
|
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7857
|
-
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7719
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
7720
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
|
|
7858
7721
|
];
|
|
7859
7722
|
break;
|
|
7860
7723
|
case "SpeedoMeter":
|
|
@@ -7934,7 +7797,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7934
7797
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7935
7798
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7936
7799
|
getInputField("leftMargin", "Left Margin"),
|
|
7937
|
-
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg:
|
|
7800
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
7938
7801
|
getArrayControl("legendLabels", "label"),
|
|
7939
7802
|
getArrayControl("pieArcColors", "color")
|
|
7940
7803
|
];
|
|
@@ -8015,7 +7878,13 @@ const buildPropertiesSection = function(type) {
|
|
|
8015
7878
|
return uiSchema;
|
|
8016
7879
|
};
|
|
8017
7880
|
const StyleSection = {
|
|
8018
|
-
type: "
|
|
7881
|
+
type: "WrapperLayout",
|
|
7882
|
+
config: {
|
|
7883
|
+
main: {
|
|
7884
|
+
label: " ",
|
|
7885
|
+
gap: "8px"
|
|
7886
|
+
}
|
|
7887
|
+
},
|
|
8019
7888
|
elements: [
|
|
8020
7889
|
{
|
|
8021
7890
|
type: "Control",
|
|
@@ -8031,14 +7900,7 @@ const StyleSection = {
|
|
|
8031
7900
|
lg: 12
|
|
8032
7901
|
},
|
|
8033
7902
|
style: {
|
|
8034
|
-
|
|
8035
|
-
borderRadius: "20px"
|
|
8036
|
-
},
|
|
8037
|
-
headerContainerStyle: {},
|
|
8038
|
-
textAreaStyle: {
|
|
8039
|
-
borderRadius: "20px",
|
|
8040
|
-
padding: "20px"
|
|
8041
|
-
}
|
|
7903
|
+
"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
|
|
8042
7904
|
},
|
|
8043
7905
|
main: {
|
|
8044
7906
|
heading: "JSON Style",
|
|
@@ -8072,15 +7934,20 @@ const TableSection = (theme) => {
|
|
|
8072
7934
|
},
|
|
8073
7935
|
config: {
|
|
8074
7936
|
main: {
|
|
8075
|
-
color: "info",
|
|
8076
7937
|
onClick: "widgetAddClickHandler",
|
|
8077
7938
|
size: "small",
|
|
8078
|
-
icon: "
|
|
8079
|
-
iconLabel: "Add
|
|
7939
|
+
icon: "TableAddIcon",
|
|
7940
|
+
iconLabel: "Add",
|
|
8080
7941
|
styleDefault: true
|
|
8081
7942
|
},
|
|
8082
7943
|
style: {
|
|
8083
|
-
mt: "6px"
|
|
7944
|
+
mt: "6px",
|
|
7945
|
+
color: "inherit",
|
|
7946
|
+
fill: "inherit",
|
|
7947
|
+
"&:hover": {
|
|
7948
|
+
color: "inherit",
|
|
7949
|
+
fill: "inherit"
|
|
7950
|
+
}
|
|
8084
7951
|
}
|
|
8085
7952
|
}
|
|
8086
7953
|
}
|
|
@@ -8096,12 +7963,18 @@ const TableSection = (theme) => {
|
|
|
8096
7963
|
main: {
|
|
8097
7964
|
onClick: "copyPasteElement",
|
|
8098
7965
|
size: "small",
|
|
8099
|
-
icon: "
|
|
7966
|
+
icon: "TablePaste",
|
|
8100
7967
|
iconLabel: "Paste",
|
|
8101
7968
|
styleDefault: true
|
|
8102
7969
|
},
|
|
8103
7970
|
style: {
|
|
8104
|
-
mt: "6px"
|
|
7971
|
+
mt: "6px",
|
|
7972
|
+
color: "inherit",
|
|
7973
|
+
fill: "inherit",
|
|
7974
|
+
"&:hover": {
|
|
7975
|
+
color: "inherit",
|
|
7976
|
+
fill: "inherit"
|
|
7977
|
+
}
|
|
8105
7978
|
}
|
|
8106
7979
|
}
|
|
8107
7980
|
}
|
|
@@ -8116,16 +7989,21 @@ const TableSection = (theme) => {
|
|
|
8116
7989
|
elements: [
|
|
8117
7990
|
{
|
|
8118
7991
|
accessorKey: "name",
|
|
8119
|
-
header: "Name"
|
|
7992
|
+
header: "Name",
|
|
7993
|
+
type: "string",
|
|
7994
|
+
size: 300
|
|
8120
7995
|
},
|
|
8121
7996
|
{
|
|
8122
7997
|
accessorKey: "type",
|
|
8123
|
-
header: "Type"
|
|
7998
|
+
header: "Type",
|
|
7999
|
+
type: "string",
|
|
8000
|
+
size: 200
|
|
8124
8001
|
},
|
|
8125
8002
|
{
|
|
8126
8003
|
header: "Edit Record",
|
|
8127
8004
|
field: "Reject_Records",
|
|
8128
|
-
|
|
8005
|
+
size: 150,
|
|
8006
|
+
type: "action",
|
|
8129
8007
|
widget: {
|
|
8130
8008
|
type: "Control",
|
|
8131
8009
|
scope: "#/properties/RejectButton",
|
|
@@ -8134,13 +8012,16 @@ const TableSection = (theme) => {
|
|
|
8134
8012
|
},
|
|
8135
8013
|
config: {
|
|
8136
8014
|
main: {
|
|
8137
|
-
icon: "
|
|
8138
|
-
|
|
8015
|
+
icon: "TableEditIcon",
|
|
8016
|
+
size: "small",
|
|
8139
8017
|
onClick: "editComponents",
|
|
8140
8018
|
tooltipMessage: "Reject This Record"
|
|
8141
8019
|
},
|
|
8142
8020
|
style: {
|
|
8143
|
-
|
|
8021
|
+
fill: theme.palette.primary.main,
|
|
8022
|
+
"& :hover": {
|
|
8023
|
+
fill: theme.palette.primary.dark
|
|
8024
|
+
}
|
|
8144
8025
|
}
|
|
8145
8026
|
}
|
|
8146
8027
|
}
|
|
@@ -8148,7 +8029,8 @@ const TableSection = (theme) => {
|
|
|
8148
8029
|
{
|
|
8149
8030
|
header: "Delete",
|
|
8150
8031
|
field: "Reject_Records",
|
|
8151
|
-
|
|
8032
|
+
size: 150,
|
|
8033
|
+
type: "action",
|
|
8152
8034
|
widget: {
|
|
8153
8035
|
type: "Control",
|
|
8154
8036
|
scope: "#/properties/RejectButton",
|
|
@@ -8157,10 +8039,15 @@ const TableSection = (theme) => {
|
|
|
8157
8039
|
},
|
|
8158
8040
|
config: {
|
|
8159
8041
|
main: {
|
|
8160
|
-
icon: "
|
|
8161
|
-
color: "error",
|
|
8042
|
+
icon: "Bin",
|
|
8162
8043
|
onClick: "deletePopUpComponent",
|
|
8163
8044
|
tooltipMessage: "Reject This Record"
|
|
8045
|
+
},
|
|
8046
|
+
style: {
|
|
8047
|
+
fill: theme.palette.primary.main,
|
|
8048
|
+
"& :hover": {
|
|
8049
|
+
fill: theme.palette.primary.dark
|
|
8050
|
+
}
|
|
8164
8051
|
}
|
|
8165
8052
|
}
|
|
8166
8053
|
}
|
|
@@ -8168,7 +8055,8 @@ const TableSection = (theme) => {
|
|
|
8168
8055
|
{
|
|
8169
8056
|
header: "Copy",
|
|
8170
8057
|
field: "Copy_Component",
|
|
8171
|
-
|
|
8058
|
+
size: 150,
|
|
8059
|
+
type: "action",
|
|
8172
8060
|
widget: {
|
|
8173
8061
|
type: "Control",
|
|
8174
8062
|
scope: "#/properties/Copy_Component",
|
|
@@ -8192,60 +8080,86 @@ const TableSection = (theme) => {
|
|
|
8192
8080
|
return uiSchema;
|
|
8193
8081
|
};
|
|
8194
8082
|
const ValueTab = {
|
|
8195
|
-
type: "
|
|
8083
|
+
type: "WrapperLayout",
|
|
8084
|
+
config: {
|
|
8085
|
+
main: {
|
|
8086
|
+
label: " ",
|
|
8087
|
+
gap: "8px"
|
|
8088
|
+
}
|
|
8089
|
+
},
|
|
8196
8090
|
elements: [
|
|
8197
8091
|
{
|
|
8198
8092
|
type: "Control",
|
|
8199
8093
|
scope: "#/properties/value",
|
|
8200
|
-
layout: 12,
|
|
8201
8094
|
options: {
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
type: "Control",
|
|
8233
|
-
scope: "#/properties/emptyBox",
|
|
8234
|
-
options: {
|
|
8235
|
-
widget: "EmptyBox"
|
|
8236
|
-
},
|
|
8237
|
-
config: {
|
|
8238
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8239
|
-
}
|
|
8095
|
+
widget: "Array"
|
|
8096
|
+
},
|
|
8097
|
+
config: {
|
|
8098
|
+
layout: 12,
|
|
8099
|
+
main: {
|
|
8100
|
+
label: "Value",
|
|
8101
|
+
childElementLabel: "Value"
|
|
8102
|
+
},
|
|
8103
|
+
style: {
|
|
8104
|
+
marginLeft: "-24px",
|
|
8105
|
+
marginBottom: "24px !important",
|
|
8106
|
+
labelStyle: {
|
|
8107
|
+
marginLeft: "24px"
|
|
8108
|
+
},
|
|
8109
|
+
detailsStyle: {
|
|
8110
|
+
marginLeft: "24px"
|
|
8111
|
+
}
|
|
8112
|
+
}
|
|
8113
|
+
},
|
|
8114
|
+
elements: [
|
|
8115
|
+
{
|
|
8116
|
+
type: "Control",
|
|
8117
|
+
scope: "#/properties/label",
|
|
8118
|
+
options: {
|
|
8119
|
+
widget: "InputField"
|
|
8120
|
+
},
|
|
8121
|
+
config: {
|
|
8122
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8123
|
+
main: {
|
|
8124
|
+
label: "Label"
|
|
8240
8125
|
}
|
|
8241
|
-
|
|
8126
|
+
}
|
|
8127
|
+
},
|
|
8128
|
+
{
|
|
8129
|
+
type: "Control",
|
|
8130
|
+
scope: "#/properties/value",
|
|
8131
|
+
options: {
|
|
8132
|
+
widget: "InputField"
|
|
8133
|
+
},
|
|
8134
|
+
config: {
|
|
8135
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8136
|
+
main: {
|
|
8137
|
+
label: "Value"
|
|
8138
|
+
}
|
|
8139
|
+
}
|
|
8140
|
+
},
|
|
8141
|
+
{
|
|
8142
|
+
type: "Control",
|
|
8143
|
+
scope: "#/properties/emptyBox",
|
|
8144
|
+
options: {
|
|
8145
|
+
widget: "EmptyBox"
|
|
8146
|
+
},
|
|
8147
|
+
config: {
|
|
8148
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8149
|
+
}
|
|
8242
8150
|
}
|
|
8243
|
-
|
|
8151
|
+
]
|
|
8244
8152
|
}
|
|
8245
8153
|
]
|
|
8246
8154
|
};
|
|
8247
8155
|
const ValidationSection = {
|
|
8248
|
-
type: "
|
|
8156
|
+
type: "WrapperLayout",
|
|
8157
|
+
config: {
|
|
8158
|
+
main: {
|
|
8159
|
+
label: " ",
|
|
8160
|
+
gap: "8px"
|
|
8161
|
+
}
|
|
8162
|
+
},
|
|
8249
8163
|
elements: [
|
|
8250
8164
|
{
|
|
8251
8165
|
type: "Control",
|
|
@@ -8329,7 +8243,12 @@ const createLayoutFormat = (config2) => {
|
|
|
8329
8243
|
lg: 12
|
|
8330
8244
|
};
|
|
8331
8245
|
}
|
|
8332
|
-
let data = {
|
|
8246
|
+
let data = {
|
|
8247
|
+
xs: 12,
|
|
8248
|
+
sm: 12,
|
|
8249
|
+
md: 6,
|
|
8250
|
+
lg: 6
|
|
8251
|
+
};
|
|
8333
8252
|
config2.map((e) => {
|
|
8334
8253
|
data[e.key || "xs"] = +e.value || 5.5;
|
|
8335
8254
|
});
|
|
@@ -8395,7 +8314,7 @@ const getFormdataFromSessionStorage = (path) => {
|
|
|
8395
8314
|
}
|
|
8396
8315
|
return returnValue || pageFormdata;
|
|
8397
8316
|
};
|
|
8398
|
-
async function saveHandler(store2, service2, submitHandler
|
|
8317
|
+
async function saveHandler(store2, service2, submitHandler) {
|
|
8399
8318
|
var _a, _b;
|
|
8400
8319
|
(_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8401
8320
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
@@ -8404,7 +8323,7 @@ async function saveHandler(store2, service2, submitHandler, pageName) {
|
|
|
8404
8323
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
8405
8324
|
try {
|
|
8406
8325
|
const saveReturn = await submitHandler(store2, service2, config2);
|
|
8407
|
-
navigateHandler(store2, true,
|
|
8326
|
+
navigateHandler(store2, true, "/PageMasterRecords");
|
|
8408
8327
|
} catch (err) {
|
|
8409
8328
|
navigateHandler(store2, false);
|
|
8410
8329
|
}
|
|
@@ -8445,53 +8364,138 @@ function okHandler(store2) {
|
|
|
8445
8364
|
}
|
|
8446
8365
|
}
|
|
8447
8366
|
const sectionLabels = {
|
|
8448
|
-
Select: ["Core", "Properties", "Value", "
|
|
8449
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
8450
|
-
Table: ["Core", "Components", "Properties", "
|
|
8451
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
8367
|
+
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8368
|
+
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8369
|
+
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8370
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8452
8371
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8453
8372
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8454
|
-
SpeedoMeter: ["Core", "Properties", "
|
|
8455
|
-
card: ["Core", "Properties", "
|
|
8456
|
-
UploadFile: ["Core", "
|
|
8457
|
-
Graph: ["Core", "Properties", "
|
|
8458
|
-
DownloadFile: ["Core", "
|
|
8459
|
-
Box: ["Core", "
|
|
8460
|
-
Properties: ["Core", "Properties", "
|
|
8461
|
-
ProgressBarCard: ["Core", "Properties", "
|
|
8462
|
-
RankCard: ["Core", "Properties", "
|
|
8463
|
-
Slider: ["Core", "Components", "
|
|
8464
|
-
Timer: ["Core", "
|
|
8465
|
-
Rank: ["Core", "
|
|
8466
|
-
Button: ["Core", "Properties", "
|
|
8373
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8374
|
+
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8375
|
+
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8376
|
+
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8377
|
+
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8378
|
+
Box: ["Core", "Events", "Style", "Validation"],
|
|
8379
|
+
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8380
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8381
|
+
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8382
|
+
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8383
|
+
Timer: ["Core", "Events", "Style", "Validation"],
|
|
8384
|
+
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8385
|
+
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8467
8386
|
Array: ["Core", "Components", "Validation"],
|
|
8468
|
-
Radio: ["Core", "Properties", "
|
|
8469
|
-
Text: ["Core", "Properties", "
|
|
8470
|
-
TextArea: ["Core", "Properties", "
|
|
8387
|
+
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8388
|
+
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8389
|
+
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8471
8390
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8472
|
-
Stepper: ["Core", "Components", "Properties", "
|
|
8473
|
-
DataGrid: ["Core", "Components", "Properties", "
|
|
8474
|
-
InputSlider: ["Core", "Properties", "
|
|
8475
|
-
TreeMap: ["Core", "Components", "Properties", "
|
|
8391
|
+
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8392
|
+
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8393
|
+
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8394
|
+
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8476
8395
|
ColumnGroup: ["Core", "Components"],
|
|
8477
|
-
Thought: ["Core", "Properties", "
|
|
8396
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8478
8397
|
};
|
|
8479
8398
|
function refreshPage(type, store2) {
|
|
8480
|
-
var _a;
|
|
8399
|
+
var _a, _b;
|
|
8481
8400
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8401
|
+
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8482
8402
|
if (type) {
|
|
8483
8403
|
const sectionUiSchema = {
|
|
8484
8404
|
Core: CoreSection,
|
|
8485
8405
|
Value: ValueTab,
|
|
8486
8406
|
Style: StyleSection,
|
|
8487
|
-
|
|
8407
|
+
Events: EventSection(store2.theme.myTheme),
|
|
8488
8408
|
Components: TableSection(store2.theme.myTheme),
|
|
8489
8409
|
Properties: buildPropertiesSection(type),
|
|
8490
8410
|
Validation: ValidationSection
|
|
8491
8411
|
};
|
|
8492
8412
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8493
|
-
UiSchema.elements[
|
|
8494
|
-
UiSchema.elements[
|
|
8413
|
+
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8414
|
+
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8415
|
+
}
|
|
8416
|
+
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8417
|
+
const lastDotIndex = path.lastIndexOf(".");
|
|
8418
|
+
const parentPath = path.slice(0, lastDotIndex);
|
|
8419
|
+
const parentObj = _.get(currentConfig, parentPath);
|
|
8420
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8421
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8422
|
+
type: "Control",
|
|
8423
|
+
scope: "#/properties/columnFormat",
|
|
8424
|
+
options: {
|
|
8425
|
+
widget: "SelectInputField"
|
|
8426
|
+
},
|
|
8427
|
+
config: {
|
|
8428
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8429
|
+
main: {
|
|
8430
|
+
label: "Column Format"
|
|
8431
|
+
}
|
|
8432
|
+
}
|
|
8433
|
+
};
|
|
8434
|
+
UiSchema.elements[0].elements[0].elements[6] = {
|
|
8435
|
+
type: "Control",
|
|
8436
|
+
scope: "#/properties/filteringOptions",
|
|
8437
|
+
options: {
|
|
8438
|
+
widget: "SelectInputField"
|
|
8439
|
+
},
|
|
8440
|
+
config: {
|
|
8441
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8442
|
+
main: {
|
|
8443
|
+
label: "Filter Mode",
|
|
8444
|
+
multiple: true
|
|
8445
|
+
}
|
|
8446
|
+
}
|
|
8447
|
+
};
|
|
8448
|
+
UiSchema.elements[0].elements[0].elements[5] = {
|
|
8449
|
+
type: "Control",
|
|
8450
|
+
scope: "#/properties/enableFilter",
|
|
8451
|
+
options: {
|
|
8452
|
+
widget: "RadioInputField"
|
|
8453
|
+
},
|
|
8454
|
+
config: {
|
|
8455
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8456
|
+
main: {
|
|
8457
|
+
label: "Enable Filter",
|
|
8458
|
+
options: ["Yes", "No"]
|
|
8459
|
+
}
|
|
8460
|
+
}
|
|
8461
|
+
}, UiSchema.elements[0].elements[0].elements[7] = {
|
|
8462
|
+
type: "Control",
|
|
8463
|
+
scope: "#/properties/enableSorting",
|
|
8464
|
+
options: {
|
|
8465
|
+
widget: "RadioInputField"
|
|
8466
|
+
},
|
|
8467
|
+
config: {
|
|
8468
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8469
|
+
main: {
|
|
8470
|
+
label: "Enable Sorting",
|
|
8471
|
+
options: ["Yes", "No"]
|
|
8472
|
+
}
|
|
8473
|
+
}
|
|
8474
|
+
}, UiSchema.elements[0].elements[0].elements[8] = {
|
|
8475
|
+
type: "Control",
|
|
8476
|
+
scope: "#/properties/columnKey",
|
|
8477
|
+
config: {
|
|
8478
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8479
|
+
main: {
|
|
8480
|
+
label: "Column Key"
|
|
8481
|
+
}
|
|
8482
|
+
},
|
|
8483
|
+
options: {
|
|
8484
|
+
widget: "InputField"
|
|
8485
|
+
}
|
|
8486
|
+
}, UiSchema.elements[0].elements[0].elements[9] = {
|
|
8487
|
+
type: "Control",
|
|
8488
|
+
scope: "#/properties/elementType",
|
|
8489
|
+
options: {
|
|
8490
|
+
widget: "SelectInputField"
|
|
8491
|
+
},
|
|
8492
|
+
config: {
|
|
8493
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8494
|
+
main: {
|
|
8495
|
+
label: "Element Type"
|
|
8496
|
+
}
|
|
8497
|
+
}
|
|
8498
|
+
};
|
|
8495
8499
|
}
|
|
8496
8500
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8497
8501
|
this.ElementPathSetter(UiSchema);
|
|
@@ -8514,14 +8518,38 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8514
8518
|
return getFormdataFromSessionStorage(path);
|
|
8515
8519
|
},
|
|
8516
8520
|
getSchema: function() {
|
|
8521
|
+
var _a, _b, _c;
|
|
8517
8522
|
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8518
8523
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8519
8524
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
8520
8525
|
}
|
|
8526
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8527
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8528
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8529
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
8530
|
+
if (path) {
|
|
8531
|
+
const pathArrayAll = path.split(".");
|
|
8532
|
+
const arr = [];
|
|
8533
|
+
pathArrayAll.map((e, i) => {
|
|
8534
|
+
if (i === 0) {
|
|
8535
|
+
arr.push(e);
|
|
8536
|
+
return;
|
|
8537
|
+
}
|
|
8538
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
8539
|
+
});
|
|
8540
|
+
arr.map((e) => {
|
|
8541
|
+
const data = _.get(config2, e);
|
|
8542
|
+
pathArray.push({
|
|
8543
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
8544
|
+
path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
8545
|
+
});
|
|
8546
|
+
});
|
|
8547
|
+
}
|
|
8548
|
+
schema2.properties.pageName.path = pathArray;
|
|
8521
8549
|
return schema2;
|
|
8522
8550
|
},
|
|
8523
8551
|
okHandler: () => okHandler(store2),
|
|
8524
|
-
saveHandler: async () => await saveHandler(store2, service2, submitHandler
|
|
8552
|
+
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
8525
8553
|
onChange: function() {
|
|
8526
8554
|
var _a, _b, _c, _d;
|
|
8527
8555
|
if (((_a = store2 == null ? void 0 : store2.formData) == null ? void 0 : _a.type) !== ((_b = store2 == null ? void 0 : store2.newData) == null ? void 0 : _b.type) && ((_c = store2 == null ? void 0 : store2.newData) == null ? void 0 : _c.type) !== void 0) {
|
|
@@ -8630,6 +8658,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8630
8658
|
const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
|
|
8631
8659
|
this.ElementPathSetter(uiSchema, copiedFormData);
|
|
8632
8660
|
sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
|
|
8661
|
+
store2.setNotify({
|
|
8662
|
+
SuccessMessage: `${elementType} Copied Successfully`,
|
|
8663
|
+
Success: true
|
|
8664
|
+
});
|
|
8633
8665
|
store2.setSchema(schema2);
|
|
8634
8666
|
store2.setUiSchema(uiSchema);
|
|
8635
8667
|
},
|
|
@@ -8643,20 +8675,27 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8643
8675
|
return;
|
|
8644
8676
|
}
|
|
8645
8677
|
const pastedElementParentPath = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8678
|
+
if (!Array.isArray(store2.formData.elements)) {
|
|
8679
|
+
store2.formData.elements = [];
|
|
8680
|
+
}
|
|
8681
|
+
if (!Array.isArray(store2.formData.events)) {
|
|
8682
|
+
store2.formData.events = [];
|
|
8683
|
+
}
|
|
8684
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
8646
8685
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
8647
8686
|
const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
|
|
8648
8687
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8649
8688
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8650
8689
|
const notificationMessages = {
|
|
8651
|
-
|
|
8652
|
-
Component: "The component cannot be integrated into the
|
|
8690
|
+
Events: " The Events cannot be integrated into the component section.",
|
|
8691
|
+
Component: "The component cannot be integrated into the Events section."
|
|
8653
8692
|
};
|
|
8654
8693
|
if (copiedConfig.Handler && elementType === "Component") {
|
|
8655
8694
|
store2.setNotify({
|
|
8656
|
-
FailMessage: notificationMessages.
|
|
8695
|
+
FailMessage: notificationMessages.Events,
|
|
8657
8696
|
Fail: true
|
|
8658
8697
|
});
|
|
8659
|
-
} else if (copiedConfig.name && elementType === "
|
|
8698
|
+
} else if (copiedConfig.name && elementType === "Events") {
|
|
8660
8699
|
store2.setNotify({
|
|
8661
8700
|
FailMessage: notificationMessages.Component,
|
|
8662
8701
|
Fail: true
|
|
@@ -8682,8 +8721,33 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8682
8721
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8683
8722
|
},
|
|
8684
8723
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8724
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
8685
8725
|
const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8686
|
-
uiSchema.elements[
|
|
8726
|
+
if ((_f = (_e = (_d = (_c = (_b = (_a = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _a[1]) == null ? void 0 : _b.elements) == null ? void 0 : _c[0]) == null ? void 0 : _d.config) == null ? void 0 : _e.main) == null ? void 0 : _f.headerIcons) {
|
|
8727
|
+
uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8728
|
+
} else if ((_n = (_m = (_l = (_k = (_j = (_i = (_h = (_g = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _g[0]) == null ? void 0 : _h.elements) == null ? void 0 : _i[1]) == null ? void 0 : _j.elements) == null ? void 0 : _k[0]) == null ? void 0 : _l.config) == null ? void 0 : _m.main) == null ? void 0 : _n.headerIcons) {
|
|
8729
|
+
uiSchema.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8730
|
+
}
|
|
8731
|
+
if ((_t = (_s = (_r = (_q = (_p = (_o = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _o[1]) == null ? void 0 : _p.elements) == null ? void 0 : _q[1]) == null ? void 0 : _r.config) == null ? void 0 : _s.main) == null ? void 0 : _t.headerIcons) {
|
|
8732
|
+
uiSchema.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Event: ${formData.eventType}`;
|
|
8733
|
+
} else if ((_z = (_y = (_x = (_w = (_v = (_u = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _u[0]) == null ? void 0 : _v.elements) == null ? void 0 : _w[1]) == null ? void 0 : _x.config) == null ? void 0 : _y.main) == null ? void 0 : _z.headerIcons) {
|
|
8734
|
+
uiSchema.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.eventType}`;
|
|
8735
|
+
}
|
|
8736
|
+
},
|
|
8737
|
+
onNavigatePopupYes: function() {
|
|
8738
|
+
try {
|
|
8739
|
+
store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
|
|
8740
|
+
store2.updateDialog(`pageNamepopup`);
|
|
8741
|
+
} catch (e) {
|
|
8742
|
+
store2.updateDialog(`pageNamepopup`);
|
|
8743
|
+
store2.setNotify({
|
|
8744
|
+
FailMessage: "Couldn't navigate page",
|
|
8745
|
+
Fail: true
|
|
8746
|
+
});
|
|
8747
|
+
}
|
|
8748
|
+
},
|
|
8749
|
+
onNavigatePopupNo: function() {
|
|
8750
|
+
store2.updateDialog(`pageNamepopup`);
|
|
8687
8751
|
}
|
|
8688
8752
|
};
|
|
8689
8753
|
};
|
|
@@ -8834,18 +8898,18 @@ const EventSchema = {
|
|
|
8834
8898
|
eventType: {
|
|
8835
8899
|
type: "string",
|
|
8836
8900
|
oneOf: [
|
|
8837
|
-
{ title: "Click
|
|
8838
|
-
{ title: "Load
|
|
8839
|
-
{ title: "Change
|
|
8840
|
-
{ title: "Mount
|
|
8901
|
+
{ title: "Click", const: "onClick" },
|
|
8902
|
+
{ title: "Load", const: "onLoad" },
|
|
8903
|
+
{ title: "Change", const: "onChange" },
|
|
8904
|
+
{ title: "Mount", const: "onMount" },
|
|
8841
8905
|
{ title: "Success", const: "Success" },
|
|
8842
|
-
{ title: "
|
|
8843
|
-
{ title: "Cell
|
|
8844
|
-
{ title: "
|
|
8845
|
-
{ title: "Back
|
|
8846
|
-
{ title: "Next
|
|
8847
|
-
{ title: "
|
|
8848
|
-
{ title: "
|
|
8906
|
+
{ title: "Start", const: "onStart" },
|
|
8907
|
+
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8908
|
+
{ title: "Upload", const: "onUpload" },
|
|
8909
|
+
{ title: "Back", const: "onBack" },
|
|
8910
|
+
{ title: "Next", const: "onNext" },
|
|
8911
|
+
{ title: "Row Movement", const: "onRowMovement" },
|
|
8912
|
+
{ title: "Download", const: "onDownload" },
|
|
8849
8913
|
{ title: "Fail", const: "Fail" }
|
|
8850
8914
|
]
|
|
8851
8915
|
},
|
|
@@ -8853,7 +8917,7 @@ const EventSchema = {
|
|
|
8853
8917
|
type: "string",
|
|
8854
8918
|
oneOf: [
|
|
8855
8919
|
{ title: "Custom", const: "custom" },
|
|
8856
|
-
{ title: "
|
|
8920
|
+
{ title: "API", const: "api" },
|
|
8857
8921
|
{ title: "Inbuilt Function", const: "inBuiltFunction" },
|
|
8858
8922
|
{ title: "Refresh", const: "refresh" }
|
|
8859
8923
|
]
|
|
@@ -8882,6 +8946,9 @@ const EventSchema = {
|
|
|
8882
8946
|
},
|
|
8883
8947
|
RemoveItemButton: {
|
|
8884
8948
|
disabled: true
|
|
8949
|
+
},
|
|
8950
|
+
pageName: {
|
|
8951
|
+
path: [{ label: "defaultLabel", path: "defaultPath" }]
|
|
8885
8952
|
}
|
|
8886
8953
|
},
|
|
8887
8954
|
required: ["eventType", "Handler"]
|
|
@@ -8890,39 +8957,38 @@ const EventUiSchema = (theme) => {
|
|
|
8890
8957
|
var _a;
|
|
8891
8958
|
const uiSchema = {
|
|
8892
8959
|
type: "HorizontalLayout",
|
|
8893
|
-
heading: "
|
|
8960
|
+
heading: "Page-Events",
|
|
8894
8961
|
elements: [
|
|
8895
|
-
{
|
|
8896
|
-
type: "Control",
|
|
8897
|
-
scope: "#/properties/pageName",
|
|
8898
|
-
options: {
|
|
8899
|
-
widget: "Box"
|
|
8900
|
-
},
|
|
8901
|
-
config: {
|
|
8902
|
-
layout: 12,
|
|
8903
|
-
main: {
|
|
8904
|
-
heading: " "
|
|
8905
|
-
},
|
|
8906
|
-
style: {
|
|
8907
|
-
marginLeft: theme.spacing(3),
|
|
8908
|
-
width: "auto",
|
|
8909
|
-
fontSize: "12px",
|
|
8910
|
-
color: "gray"
|
|
8911
|
-
}
|
|
8912
|
-
}
|
|
8913
|
-
},
|
|
8914
8962
|
{
|
|
8915
8963
|
type: "TabLayout",
|
|
8916
8964
|
config: {
|
|
8917
8965
|
main: {
|
|
8918
|
-
tabLabels: ["Core", "Response
|
|
8919
|
-
defaultStyle: true,
|
|
8966
|
+
tabLabels: ["Core", "Response Events"],
|
|
8920
8967
|
id: "event"
|
|
8968
|
+
},
|
|
8969
|
+
style: {
|
|
8970
|
+
TabPanelStyle: {
|
|
8971
|
+
padding: 0
|
|
8972
|
+
}
|
|
8973
|
+
},
|
|
8974
|
+
TabsStyle: {
|
|
8975
|
+
marginBottom: "3px",
|
|
8976
|
+
paddingBottom: "4px",
|
|
8977
|
+
boxShadow: "0px 3px 4px #afafaf80",
|
|
8978
|
+
"& .MuiTabs-indicator": {
|
|
8979
|
+
bottom: "6px"
|
|
8980
|
+
}
|
|
8921
8981
|
}
|
|
8922
8982
|
},
|
|
8923
8983
|
elements: [
|
|
8924
8984
|
{
|
|
8925
|
-
type: "
|
|
8985
|
+
type: "WrapperLayout",
|
|
8986
|
+
config: {
|
|
8987
|
+
main: {
|
|
8988
|
+
label: " ",
|
|
8989
|
+
gap: "8px"
|
|
8990
|
+
}
|
|
8991
|
+
},
|
|
8926
8992
|
elements: [
|
|
8927
8993
|
{
|
|
8928
8994
|
type: "Control",
|
|
@@ -8931,9 +8997,9 @@ const EventUiSchema = (theme) => {
|
|
|
8931
8997
|
widget: "SelectInputField"
|
|
8932
8998
|
},
|
|
8933
8999
|
config: {
|
|
8934
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9000
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8935
9001
|
main: {
|
|
8936
|
-
label: "Event Type",
|
|
9002
|
+
label: "Event's Type",
|
|
8937
9003
|
type: "text"
|
|
8938
9004
|
}
|
|
8939
9005
|
}
|
|
@@ -8946,7 +9012,7 @@ const EventUiSchema = (theme) => {
|
|
|
8946
9012
|
widget: "EmptyBox"
|
|
8947
9013
|
},
|
|
8948
9014
|
config: {
|
|
8949
|
-
layout: { xs: 0, sm:
|
|
9015
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
8950
9016
|
}
|
|
8951
9017
|
}
|
|
8952
9018
|
]
|
|
@@ -8972,12 +9038,18 @@ const EventUiSchema = (theme) => {
|
|
|
8972
9038
|
main: {
|
|
8973
9039
|
onClick: "addEvent",
|
|
8974
9040
|
size: "small",
|
|
8975
|
-
icon: "
|
|
8976
|
-
iconLabel: "Add
|
|
9041
|
+
icon: "TableAddIcon",
|
|
9042
|
+
iconLabel: "Add",
|
|
8977
9043
|
styleDefault: true
|
|
8978
9044
|
},
|
|
8979
9045
|
style: {
|
|
8980
|
-
mt: "6px"
|
|
9046
|
+
mt: "6px",
|
|
9047
|
+
color: "inherit",
|
|
9048
|
+
fill: "inherit",
|
|
9049
|
+
"&:hover": {
|
|
9050
|
+
color: "inherit",
|
|
9051
|
+
fill: "inherit"
|
|
9052
|
+
}
|
|
8981
9053
|
}
|
|
8982
9054
|
}
|
|
8983
9055
|
}
|
|
@@ -8993,12 +9065,18 @@ const EventUiSchema = (theme) => {
|
|
|
8993
9065
|
main: {
|
|
8994
9066
|
onClick: "copyPasteElement",
|
|
8995
9067
|
size: "small",
|
|
8996
|
-
icon: "
|
|
9068
|
+
icon: "TablePaste",
|
|
8997
9069
|
iconLabel: "Paste",
|
|
8998
9070
|
styleDefault: true
|
|
8999
9071
|
},
|
|
9000
9072
|
style: {
|
|
9001
|
-
mt: "6px"
|
|
9073
|
+
mt: "6px",
|
|
9074
|
+
color: "inherit",
|
|
9075
|
+
fill: "inherit",
|
|
9076
|
+
"&:hover": {
|
|
9077
|
+
color: "inherit",
|
|
9078
|
+
fill: "inherit"
|
|
9079
|
+
}
|
|
9002
9080
|
}
|
|
9003
9081
|
}
|
|
9004
9082
|
}
|
|
@@ -9013,15 +9091,21 @@ const EventUiSchema = (theme) => {
|
|
|
9013
9091
|
elements: [
|
|
9014
9092
|
{
|
|
9015
9093
|
accessorKey: "eventType",
|
|
9016
|
-
header: "Event Type"
|
|
9094
|
+
header: "Event's Type",
|
|
9095
|
+
size: 300,
|
|
9096
|
+
type: "string"
|
|
9017
9097
|
},
|
|
9018
9098
|
{
|
|
9019
9099
|
accessorKey: "Handler",
|
|
9020
|
-
header: "Handler"
|
|
9100
|
+
header: "Handler",
|
|
9101
|
+
size: 200,
|
|
9102
|
+
type: "string"
|
|
9021
9103
|
},
|
|
9022
9104
|
{
|
|
9023
9105
|
accessorKey: "Edit_Approve_Records",
|
|
9024
|
-
header: "Edit
|
|
9106
|
+
header: "Edit",
|
|
9107
|
+
type: "action",
|
|
9108
|
+
size: 150,
|
|
9025
9109
|
widget: {
|
|
9026
9110
|
type: "Control",
|
|
9027
9111
|
scope: "#/properties/Edit_Records",
|
|
@@ -9030,14 +9114,16 @@ const EventUiSchema = (theme) => {
|
|
|
9030
9114
|
},
|
|
9031
9115
|
config: {
|
|
9032
9116
|
main: {
|
|
9033
|
-
color: "info",
|
|
9034
9117
|
size: "small",
|
|
9035
|
-
icon: "
|
|
9118
|
+
icon: "TableEditIcon",
|
|
9036
9119
|
tooltipMessage: "Edit This Record",
|
|
9037
9120
|
onClick: "editEvent"
|
|
9038
9121
|
},
|
|
9039
9122
|
style: {
|
|
9040
|
-
|
|
9123
|
+
fill: theme.palette.primary.main,
|
|
9124
|
+
"& :hover": {
|
|
9125
|
+
fill: theme.palette.primary.dark
|
|
9126
|
+
}
|
|
9041
9127
|
}
|
|
9042
9128
|
}
|
|
9043
9129
|
}
|
|
@@ -9045,6 +9131,8 @@ const EventUiSchema = (theme) => {
|
|
|
9045
9131
|
{
|
|
9046
9132
|
accessorKey: "Reject_Records",
|
|
9047
9133
|
header: "Delete",
|
|
9134
|
+
type: "action",
|
|
9135
|
+
size: 150,
|
|
9048
9136
|
widget: {
|
|
9049
9137
|
type: "Control",
|
|
9050
9138
|
scope: "#/properties/RejectButton",
|
|
@@ -9053,10 +9141,15 @@ const EventUiSchema = (theme) => {
|
|
|
9053
9141
|
},
|
|
9054
9142
|
config: {
|
|
9055
9143
|
main: {
|
|
9056
|
-
icon: "
|
|
9057
|
-
color: "error",
|
|
9144
|
+
icon: "Bin",
|
|
9058
9145
|
tooltipMessage: "Reject This Record",
|
|
9059
9146
|
onClick: "deletePopUpEvent"
|
|
9147
|
+
},
|
|
9148
|
+
style: {
|
|
9149
|
+
fill: theme.palette.primary.main,
|
|
9150
|
+
"& :hover": {
|
|
9151
|
+
fill: theme.palette.primary.dark
|
|
9152
|
+
}
|
|
9060
9153
|
}
|
|
9061
9154
|
}
|
|
9062
9155
|
}
|
|
@@ -9064,7 +9157,8 @@ const EventUiSchema = (theme) => {
|
|
|
9064
9157
|
{
|
|
9065
9158
|
header: "Copy",
|
|
9066
9159
|
field: "Copy_Event",
|
|
9067
|
-
|
|
9160
|
+
type: "action",
|
|
9161
|
+
size: 150,
|
|
9068
9162
|
widget: {
|
|
9069
9163
|
type: "Control",
|
|
9070
9164
|
scope: "#/properties/Copy_Event",
|
|
@@ -9085,103 +9179,59 @@ const EventUiSchema = (theme) => {
|
|
|
9085
9179
|
]
|
|
9086
9180
|
},
|
|
9087
9181
|
{
|
|
9088
|
-
type: "
|
|
9182
|
+
type: "WrapperLayout",
|
|
9089
9183
|
config: {
|
|
9090
|
-
|
|
9184
|
+
main: {
|
|
9185
|
+
gap: "8px"
|
|
9186
|
+
}
|
|
9091
9187
|
},
|
|
9092
9188
|
elements: [
|
|
9093
9189
|
{
|
|
9094
9190
|
type: "Control",
|
|
9095
|
-
scope: "#/properties/
|
|
9191
|
+
scope: "#/properties/btn",
|
|
9096
9192
|
options: {
|
|
9097
|
-
widget: "
|
|
9193
|
+
widget: "Button"
|
|
9098
9194
|
},
|
|
9099
9195
|
config: {
|
|
9100
|
-
layout: { xs:
|
|
9196
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
9101
9197
|
main: {
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
style: {
|
|
9108
|
-
marginLeft: "-10px"
|
|
9198
|
+
name: "Ok",
|
|
9199
|
+
variant: "contained",
|
|
9200
|
+
type: "text",
|
|
9201
|
+
onClick: "okHandler",
|
|
9202
|
+
size: "medium"
|
|
9109
9203
|
}
|
|
9110
9204
|
}
|
|
9111
9205
|
},
|
|
9112
9206
|
{
|
|
9113
9207
|
type: "Control",
|
|
9114
|
-
scope: "#/properties/
|
|
9208
|
+
scope: "#/properties/btnSubmit",
|
|
9115
9209
|
options: {
|
|
9116
|
-
widget: "
|
|
9210
|
+
widget: "Button"
|
|
9117
9211
|
},
|
|
9118
9212
|
config: {
|
|
9119
|
-
layout: { xs:
|
|
9213
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
9120
9214
|
main: {
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
fontSize: "12px",
|
|
9127
|
-
marginTop: "4px"
|
|
9215
|
+
name: "Save & Exit",
|
|
9216
|
+
variant: "contained",
|
|
9217
|
+
type: "text",
|
|
9218
|
+
onClick: "saveHandler",
|
|
9219
|
+
size: "medium"
|
|
9128
9220
|
}
|
|
9129
9221
|
}
|
|
9130
9222
|
},
|
|
9131
9223
|
{
|
|
9132
9224
|
type: "Control",
|
|
9133
9225
|
scope: "#/properties/EmptyBox",
|
|
9226
|
+
config: {
|
|
9227
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
9228
|
+
},
|
|
9134
9229
|
options: {
|
|
9135
9230
|
widget: "EmptyBox"
|
|
9136
|
-
},
|
|
9137
|
-
config: {
|
|
9138
|
-
layout: { xs: 1, sm: 5 }
|
|
9139
9231
|
}
|
|
9140
9232
|
}
|
|
9141
9233
|
]
|
|
9142
9234
|
},
|
|
9143
|
-
{
|
|
9144
|
-
type: "Control",
|
|
9145
|
-
scope: "#/properties/btn",
|
|
9146
|
-
options: {
|
|
9147
|
-
widget: "Button"
|
|
9148
|
-
},
|
|
9149
|
-
config: {
|
|
9150
|
-
layout: { xs: 4, sm: 2 },
|
|
9151
|
-
main: {
|
|
9152
|
-
name: "Ok",
|
|
9153
|
-
startIcon: "ApproveIcon",
|
|
9154
|
-
variant: "contained",
|
|
9155
|
-
type: "text",
|
|
9156
|
-
onClick: "okHandler",
|
|
9157
|
-
size: "medium"
|
|
9158
|
-
},
|
|
9159
|
-
style: {
|
|
9160
|
-
float: "right"
|
|
9161
|
-
}
|
|
9162
|
-
}
|
|
9163
|
-
},
|
|
9164
|
-
{
|
|
9165
|
-
type: "Control",
|
|
9166
|
-
scope: "#/properties/btnSubmit",
|
|
9167
|
-
options: {
|
|
9168
|
-
widget: "Button"
|
|
9169
|
-
},
|
|
9170
|
-
config: {
|
|
9171
|
-
layout: { xs: 4, sm: 2 },
|
|
9172
|
-
main: {
|
|
9173
|
-
name: "Save & Exit",
|
|
9174
|
-
startIcon: "ApproveIcon",
|
|
9175
|
-
variant: "contained",
|
|
9176
|
-
type: "text",
|
|
9177
|
-
onClick: "saveHandler",
|
|
9178
|
-
size: "medium"
|
|
9179
|
-
},
|
|
9180
|
-
style: {
|
|
9181
|
-
float: "right"
|
|
9182
|
-
}
|
|
9183
|
-
}
|
|
9184
|
-
},
|
|
9185
9235
|
{
|
|
9186
9236
|
type: "Control",
|
|
9187
9237
|
scope: "#/properties/popUpEvent",
|
|
@@ -9208,17 +9258,19 @@ const EventUiSchema = (theme) => {
|
|
|
9208
9258
|
widget: "Box"
|
|
9209
9259
|
},
|
|
9210
9260
|
config: {
|
|
9211
|
-
layout:
|
|
9261
|
+
layout: 11,
|
|
9212
9262
|
main: {
|
|
9213
|
-
heading: "Are you sure you want to delete ?"
|
|
9263
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
9214
9264
|
},
|
|
9215
9265
|
style: {
|
|
9216
|
-
marginTop: "-20px",
|
|
9217
9266
|
fontSize: "20px",
|
|
9218
9267
|
"&.MuiTypography-root": {
|
|
9219
|
-
padding: "
|
|
9268
|
+
padding: "0px 20px",
|
|
9220
9269
|
textAlign: "center",
|
|
9221
|
-
lineHeight: "1"
|
|
9270
|
+
lineHeight: "1.2",
|
|
9271
|
+
fontWeight: "normal",
|
|
9272
|
+
fontSize: "18px",
|
|
9273
|
+
marginBottom: theme.spacing(5)
|
|
9222
9274
|
}
|
|
9223
9275
|
}
|
|
9224
9276
|
}
|
|
@@ -9226,7 +9278,7 @@ const EventUiSchema = (theme) => {
|
|
|
9226
9278
|
{
|
|
9227
9279
|
type: "WrapperLayout",
|
|
9228
9280
|
config: {
|
|
9229
|
-
layout:
|
|
9281
|
+
layout: 11,
|
|
9230
9282
|
main: {}
|
|
9231
9283
|
},
|
|
9232
9284
|
elements: [
|
|
@@ -9242,13 +9294,14 @@ const EventUiSchema = (theme) => {
|
|
|
9242
9294
|
name: "No",
|
|
9243
9295
|
startIcon: "ApproveIcon",
|
|
9244
9296
|
variant: "contained",
|
|
9245
|
-
color: "info",
|
|
9246
9297
|
type: "text",
|
|
9247
9298
|
onClick: "deletePopUpEvent",
|
|
9248
9299
|
size: "large"
|
|
9249
9300
|
},
|
|
9250
9301
|
style: {
|
|
9251
9302
|
position: "absolute",
|
|
9303
|
+
padding: "8px 0px",
|
|
9304
|
+
fontSize: "16px",
|
|
9252
9305
|
bottom: 0,
|
|
9253
9306
|
left: 0,
|
|
9254
9307
|
width: "50%",
|
|
@@ -9276,7 +9329,6 @@ const EventUiSchema = (theme) => {
|
|
|
9276
9329
|
layout: 6,
|
|
9277
9330
|
main: {
|
|
9278
9331
|
name: "Yes",
|
|
9279
|
-
startIcon: "ApproveIcon",
|
|
9280
9332
|
variant: "contained",
|
|
9281
9333
|
color: "error",
|
|
9282
9334
|
type: "text",
|
|
@@ -9285,6 +9337,8 @@ const EventUiSchema = (theme) => {
|
|
|
9285
9337
|
},
|
|
9286
9338
|
style: {
|
|
9287
9339
|
position: "absolute",
|
|
9340
|
+
padding: "8px 0px",
|
|
9341
|
+
fontSize: "16px",
|
|
9288
9342
|
bottom: 0,
|
|
9289
9343
|
right: 0,
|
|
9290
9344
|
width: "50%",
|
|
@@ -9305,6 +9359,30 @@ const EventUiSchema = (theme) => {
|
|
|
9305
9359
|
}
|
|
9306
9360
|
]
|
|
9307
9361
|
},
|
|
9362
|
+
{
|
|
9363
|
+
type: "Control",
|
|
9364
|
+
scope: "#/properties/pageName",
|
|
9365
|
+
options: {
|
|
9366
|
+
widget: "Breadcrumb"
|
|
9367
|
+
},
|
|
9368
|
+
config: {
|
|
9369
|
+
layout: 12,
|
|
9370
|
+
main: {
|
|
9371
|
+
onNavigatePopupNo: "onNavigatePopupNo",
|
|
9372
|
+
onNavigatePopupYes: "onNavigatePopupYes"
|
|
9373
|
+
},
|
|
9374
|
+
style: {
|
|
9375
|
+
paddingLeft: theme.spacing(3),
|
|
9376
|
+
color: theme.palette.grey[600],
|
|
9377
|
+
fontSize: "10px",
|
|
9378
|
+
position: "fixed",
|
|
9379
|
+
bottom: "24px",
|
|
9380
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
9381
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
9382
|
+
backgroundColor: theme.palette.background.default
|
|
9383
|
+
}
|
|
9384
|
+
}
|
|
9385
|
+
},
|
|
9308
9386
|
{
|
|
9309
9387
|
type: "Control",
|
|
9310
9388
|
scope: "#/properties/notify",
|
|
@@ -9322,8 +9400,7 @@ const EventUiSchema = (theme) => {
|
|
|
9322
9400
|
style: {
|
|
9323
9401
|
flexDirection: "row",
|
|
9324
9402
|
position: "absolute",
|
|
9325
|
-
bottom:
|
|
9326
|
-
marginBottom: "-8px",
|
|
9403
|
+
bottom: 10,
|
|
9327
9404
|
height: "fit-content",
|
|
9328
9405
|
overflow: "hidden",
|
|
9329
9406
|
zIndex: 1e3,
|
|
@@ -9343,75 +9420,16 @@ const EventUiSchema = (theme) => {
|
|
|
9343
9420
|
},
|
|
9344
9421
|
style: {
|
|
9345
9422
|
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
9346
|
-
fontSize: "
|
|
9423
|
+
fontSize: "11px",
|
|
9347
9424
|
textAlign: "center",
|
|
9348
|
-
lineHeight:
|
|
9425
|
+
lineHeight: 0,
|
|
9349
9426
|
width: "fit-content",
|
|
9350
9427
|
left: "50%",
|
|
9351
9428
|
position: "relative",
|
|
9352
|
-
margin:
|
|
9429
|
+
margin: "revert",
|
|
9353
9430
|
flexGrow: 1,
|
|
9354
9431
|
height: 0,
|
|
9355
|
-
transform: "translate(-50%,0%)"
|
|
9356
|
-
}
|
|
9357
|
-
}
|
|
9358
|
-
},
|
|
9359
|
-
{
|
|
9360
|
-
type: "Control",
|
|
9361
|
-
scope: "#/properties/backIcon",
|
|
9362
|
-
options: {
|
|
9363
|
-
widget: "Box"
|
|
9364
|
-
},
|
|
9365
|
-
config: {
|
|
9366
|
-
main: {
|
|
9367
|
-
iconName: "PrevIcon",
|
|
9368
|
-
onClick: "backHandler",
|
|
9369
|
-
width: "fit-content"
|
|
9370
|
-
},
|
|
9371
|
-
style: {
|
|
9372
|
-
fill: theme.palette.primary.main,
|
|
9373
|
-
width: 20,
|
|
9374
|
-
height: 0,
|
|
9375
|
-
margin: 0,
|
|
9376
|
-
top: 0,
|
|
9377
|
-
right: { xs: "12px", sm: "84px" },
|
|
9378
|
-
position: "absolute",
|
|
9379
|
-
fontSize: "12px",
|
|
9380
|
-
cursor: "pointer",
|
|
9381
|
-
":hover": {
|
|
9382
|
-
fill: theme.palette.primary.dark
|
|
9383
|
-
}
|
|
9384
|
-
}
|
|
9385
|
-
}
|
|
9386
|
-
},
|
|
9387
|
-
{
|
|
9388
|
-
type: "Control",
|
|
9389
|
-
scope: "#/properties/text",
|
|
9390
|
-
options: {
|
|
9391
|
-
widget: "Box"
|
|
9392
|
-
},
|
|
9393
|
-
config: {
|
|
9394
|
-
main: {
|
|
9395
|
-
heading: "Previous Page",
|
|
9396
|
-
onClick: "backHandler"
|
|
9397
|
-
},
|
|
9398
|
-
style: {
|
|
9399
|
-
display: { xs: "none", sm: "flex" },
|
|
9400
|
-
textAlign: "left",
|
|
9401
|
-
lineHeight: 1,
|
|
9402
|
-
height: 0,
|
|
9403
|
-
width: "fit-content",
|
|
9404
|
-
color: theme.palette.primary.main,
|
|
9405
|
-
fontSize: "12px",
|
|
9406
|
-
cursor: "pointer",
|
|
9407
|
-
marginLeft: "2px",
|
|
9408
|
-
marginRight: 0,
|
|
9409
|
-
top: 3,
|
|
9410
|
-
right: "12px",
|
|
9411
|
-
position: "absolute",
|
|
9412
|
-
":hover": {
|
|
9413
|
-
color: theme.palette.primary.dark
|
|
9414
|
-
}
|
|
9432
|
+
transform: "translate(-50%, 0%)"
|
|
9415
9433
|
}
|
|
9416
9434
|
}
|
|
9417
9435
|
}
|
|
@@ -9431,7 +9449,7 @@ const APISection = {
|
|
|
9431
9449
|
widget: "SelectInputField"
|
|
9432
9450
|
},
|
|
9433
9451
|
config: {
|
|
9434
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9452
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9435
9453
|
main: {
|
|
9436
9454
|
label: "Method",
|
|
9437
9455
|
type: "text"
|
|
@@ -9445,7 +9463,7 @@ const APISection = {
|
|
|
9445
9463
|
widget: "InputField"
|
|
9446
9464
|
},
|
|
9447
9465
|
config: {
|
|
9448
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9466
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9449
9467
|
main: {
|
|
9450
9468
|
label: "Path",
|
|
9451
9469
|
type: "text",
|
|
@@ -9461,116 +9479,132 @@ const APISection = {
|
|
|
9461
9479
|
widget: "EmptyBox"
|
|
9462
9480
|
},
|
|
9463
9481
|
config: {
|
|
9464
|
-
layout: { xs: 0, sm: 0, md: 4, lg:
|
|
9482
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
9465
9483
|
}
|
|
9466
9484
|
},
|
|
9467
9485
|
{
|
|
9468
9486
|
type: "Control",
|
|
9469
|
-
scope: "#/properties/
|
|
9487
|
+
scope: "#/properties/headers",
|
|
9470
9488
|
options: {
|
|
9471
|
-
widget: "
|
|
9489
|
+
widget: "Array"
|
|
9472
9490
|
},
|
|
9473
9491
|
config: {
|
|
9474
|
-
layout:
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
},
|
|
9499
|
-
{
|
|
9500
|
-
|
|
9501
|
-
scope: "#/properties/value",
|
|
9502
|
-
options: {
|
|
9503
|
-
widget: "InputField"
|
|
9504
|
-
},
|
|
9505
|
-
config: {
|
|
9506
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9507
|
-
main: {
|
|
9508
|
-
label: "Value"
|
|
9509
|
-
}
|
|
9510
|
-
}
|
|
9511
|
-
},
|
|
9512
|
-
{
|
|
9513
|
-
type: "Control",
|
|
9514
|
-
scope: "#/properties/emptyBox",
|
|
9515
|
-
options: {
|
|
9516
|
-
widget: "EmptyBox"
|
|
9517
|
-
},
|
|
9518
|
-
config: {
|
|
9519
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9520
|
-
}
|
|
9492
|
+
layout: 12,
|
|
9493
|
+
main: {
|
|
9494
|
+
label: "Headers",
|
|
9495
|
+
childElementLabel: "Headers"
|
|
9496
|
+
},
|
|
9497
|
+
style: {
|
|
9498
|
+
marginLeft: "-24px",
|
|
9499
|
+
marginBottom: "24px !important",
|
|
9500
|
+
labelStyle: {
|
|
9501
|
+
marginLeft: "24px"
|
|
9502
|
+
},
|
|
9503
|
+
detailsStyle: {
|
|
9504
|
+
marginLeft: "24px"
|
|
9505
|
+
}
|
|
9506
|
+
}
|
|
9507
|
+
},
|
|
9508
|
+
elements: [
|
|
9509
|
+
{
|
|
9510
|
+
type: "Control",
|
|
9511
|
+
scope: "#/properties/key",
|
|
9512
|
+
options: {
|
|
9513
|
+
widget: "InputField"
|
|
9514
|
+
},
|
|
9515
|
+
config: {
|
|
9516
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9517
|
+
main: {
|
|
9518
|
+
label: "Key"
|
|
9521
9519
|
}
|
|
9522
|
-
|
|
9520
|
+
}
|
|
9521
|
+
},
|
|
9522
|
+
{
|
|
9523
|
+
type: "Control",
|
|
9524
|
+
scope: "#/properties/value",
|
|
9525
|
+
options: {
|
|
9526
|
+
widget: "InputField"
|
|
9527
|
+
},
|
|
9528
|
+
config: {
|
|
9529
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9530
|
+
main: {
|
|
9531
|
+
label: "Value"
|
|
9532
|
+
}
|
|
9533
|
+
}
|
|
9534
|
+
},
|
|
9535
|
+
{
|
|
9536
|
+
type: "Control",
|
|
9537
|
+
scope: "#/properties/emptyBox",
|
|
9538
|
+
options: {
|
|
9539
|
+
widget: "EmptyBox"
|
|
9540
|
+
},
|
|
9541
|
+
config: {
|
|
9542
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9543
|
+
}
|
|
9523
9544
|
}
|
|
9524
|
-
|
|
9545
|
+
]
|
|
9525
9546
|
},
|
|
9526
9547
|
{
|
|
9527
9548
|
type: "Control",
|
|
9528
9549
|
scope: "#/properties/body",
|
|
9529
|
-
layout: 11.5,
|
|
9530
9550
|
options: {
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9549
|
-
|
|
9550
|
-
|
|
9551
|
-
|
|
9552
|
-
|
|
9553
|
-
|
|
9554
|
-
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
{
|
|
9562
|
-
type: "Control",
|
|
9563
|
-
scope: "#/properties/emptyBox",
|
|
9564
|
-
options: {
|
|
9565
|
-
widget: "EmptyBox"
|
|
9566
|
-
},
|
|
9567
|
-
config: {
|
|
9568
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9569
|
-
}
|
|
9551
|
+
widget: "Array"
|
|
9552
|
+
},
|
|
9553
|
+
config: {
|
|
9554
|
+
layout: 12,
|
|
9555
|
+
main: {
|
|
9556
|
+
label: "Body",
|
|
9557
|
+
childElementLabel: "Body"
|
|
9558
|
+
},
|
|
9559
|
+
style: {
|
|
9560
|
+
marginLeft: "-24px",
|
|
9561
|
+
marginBottom: "24px !important",
|
|
9562
|
+
labelStyle: {
|
|
9563
|
+
marginLeft: "24px"
|
|
9564
|
+
},
|
|
9565
|
+
detailsStyle: {
|
|
9566
|
+
marginLeft: "24px"
|
|
9567
|
+
}
|
|
9568
|
+
}
|
|
9569
|
+
},
|
|
9570
|
+
elements: [
|
|
9571
|
+
{
|
|
9572
|
+
type: "Control",
|
|
9573
|
+
scope: "#/properties/key",
|
|
9574
|
+
options: {
|
|
9575
|
+
widget: "InputField"
|
|
9576
|
+
},
|
|
9577
|
+
config: {
|
|
9578
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9579
|
+
main: {
|
|
9580
|
+
label: "Key"
|
|
9570
9581
|
}
|
|
9571
|
-
|
|
9582
|
+
}
|
|
9583
|
+
},
|
|
9584
|
+
{
|
|
9585
|
+
type: "Control",
|
|
9586
|
+
scope: "#/properties/value",
|
|
9587
|
+
options: {
|
|
9588
|
+
widget: "InputField"
|
|
9589
|
+
},
|
|
9590
|
+
config: {
|
|
9591
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9592
|
+
main: {
|
|
9593
|
+
label: "Value"
|
|
9594
|
+
}
|
|
9595
|
+
}
|
|
9596
|
+
},
|
|
9597
|
+
{
|
|
9598
|
+
type: "Control",
|
|
9599
|
+
scope: "#/properties/emptyBox",
|
|
9600
|
+
options: {
|
|
9601
|
+
widget: "EmptyBox"
|
|
9602
|
+
},
|
|
9603
|
+
config: {
|
|
9604
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9605
|
+
}
|
|
9572
9606
|
}
|
|
9573
|
-
|
|
9607
|
+
]
|
|
9574
9608
|
},
|
|
9575
9609
|
getTextArea("apiBody", "Transformer", true, 12)
|
|
9576
9610
|
]
|
|
@@ -9581,116 +9615,134 @@ const refreshSectionUiSchema = {
|
|
|
9581
9615
|
{
|
|
9582
9616
|
type: "Control",
|
|
9583
9617
|
scope: "#/properties/refreshElements",
|
|
9584
|
-
layout: 11.5,
|
|
9585
9618
|
options: {
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
{
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
options: {
|
|
9617
|
-
widget: "EmptyBox"
|
|
9618
|
-
},
|
|
9619
|
-
config: {
|
|
9620
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
9621
|
-
main: {}
|
|
9622
|
-
}
|
|
9619
|
+
widget: "Array"
|
|
9620
|
+
},
|
|
9621
|
+
config: {
|
|
9622
|
+
layout: 12,
|
|
9623
|
+
main: {
|
|
9624
|
+
label: "Refresh Elements",
|
|
9625
|
+
childElementLabel: "Refresh Elements"
|
|
9626
|
+
},
|
|
9627
|
+
style: {
|
|
9628
|
+
marginLeft: "-24px",
|
|
9629
|
+
marginBottom: "24px !important",
|
|
9630
|
+
labelStyle: {
|
|
9631
|
+
marginLeft: "24px"
|
|
9632
|
+
},
|
|
9633
|
+
detailsStyle: {
|
|
9634
|
+
marginLeft: "24px"
|
|
9635
|
+
}
|
|
9636
|
+
}
|
|
9637
|
+
},
|
|
9638
|
+
elements: [
|
|
9639
|
+
{
|
|
9640
|
+
type: "Control",
|
|
9641
|
+
scope: "#/properties/value",
|
|
9642
|
+
options: {
|
|
9643
|
+
widget: "InputField"
|
|
9644
|
+
},
|
|
9645
|
+
config: {
|
|
9646
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9647
|
+
main: {
|
|
9648
|
+
label: "Value"
|
|
9623
9649
|
}
|
|
9624
|
-
|
|
9650
|
+
}
|
|
9651
|
+
},
|
|
9652
|
+
{
|
|
9653
|
+
type: "Control",
|
|
9654
|
+
scope: "#/properties/emptyBox",
|
|
9655
|
+
options: {
|
|
9656
|
+
widget: "EmptyBox"
|
|
9657
|
+
},
|
|
9658
|
+
config: {
|
|
9659
|
+
layout: { xs: 6, sm: 6, md: 8, lg: 8 },
|
|
9660
|
+
main: {}
|
|
9661
|
+
}
|
|
9625
9662
|
}
|
|
9626
|
-
|
|
9663
|
+
]
|
|
9627
9664
|
}
|
|
9628
9665
|
]
|
|
9629
9666
|
};
|
|
9630
|
-
var emptyBox = {
|
|
9631
|
-
type: "Control",
|
|
9632
|
-
scope: "#/properties/emptyBox",
|
|
9633
|
-
options: {
|
|
9634
|
-
widget: "EmptyBox"
|
|
9635
|
-
},
|
|
9636
|
-
config: {
|
|
9637
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
9638
|
-
main: {},
|
|
9639
|
-
style: {}
|
|
9640
|
-
}
|
|
9641
|
-
};
|
|
9642
9667
|
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
9643
9668
|
return {
|
|
9644
9669
|
setPage: async function() {
|
|
9645
9670
|
const formdata = await this.getFormData();
|
|
9646
9671
|
store2.setFormdata(formdata);
|
|
9647
9672
|
const schema2 = await this.getSchema();
|
|
9673
|
+
console.log("SettingSchema>>", schema2);
|
|
9648
9674
|
store2.setSchema(schema2);
|
|
9649
9675
|
this.refreshPage(formdata.Handler, store2);
|
|
9650
9676
|
},
|
|
9651
9677
|
refreshPage: (handlerType, store22) => {
|
|
9678
|
+
var _a, _b, _c;
|
|
9652
9679
|
const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
|
|
9653
9680
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9654
9681
|
if (handlerType) {
|
|
9655
9682
|
if (handlerType === "custom") {
|
|
9656
|
-
uiSchema.elements[
|
|
9657
|
-
|
|
9683
|
+
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
|
|
9684
|
+
"isSync",
|
|
9685
|
+
"Run in Sync",
|
|
9686
|
+
["Yes", "No"]
|
|
9687
|
+
);
|
|
9688
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9658
9689
|
type: "Control",
|
|
9659
9690
|
scope: "#/properties/emptyBox",
|
|
9660
9691
|
options: {
|
|
9661
9692
|
widget: "EmptyBox"
|
|
9662
9693
|
},
|
|
9663
9694
|
config: {
|
|
9664
|
-
layout: { xs:
|
|
9695
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9665
9696
|
main: {},
|
|
9666
9697
|
style: {}
|
|
9667
9698
|
}
|
|
9668
9699
|
};
|
|
9669
|
-
uiSchema.elements[
|
|
9700
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9701
|
+
"eventCode",
|
|
9702
|
+
"Write Custom Code",
|
|
9703
|
+
false
|
|
9704
|
+
);
|
|
9670
9705
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
9671
9706
|
} else if (handlerType === "api") {
|
|
9672
|
-
uiSchema.elements[
|
|
9673
|
-
|
|
9707
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9708
|
+
xs: 0,
|
|
9709
|
+
sm: 0,
|
|
9710
|
+
md: 4,
|
|
9711
|
+
lg: 6
|
|
9712
|
+
});
|
|
9713
|
+
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
9674
9714
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
9675
9715
|
} else if (handlerType === "inBuiltFunction") {
|
|
9676
|
-
uiSchema.elements[
|
|
9677
|
-
|
|
9716
|
+
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9717
|
+
"inBuiltFunctionType",
|
|
9718
|
+
"Function Name"
|
|
9719
|
+
);
|
|
9720
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9678
9721
|
type: "Control",
|
|
9679
9722
|
scope: "#/properties/emptyBox",
|
|
9680
9723
|
options: {
|
|
9681
9724
|
widget: "EmptyBox"
|
|
9682
9725
|
},
|
|
9683
9726
|
config: {
|
|
9684
|
-
layout: { xs: 6, sm: 6, md: 0, lg:
|
|
9727
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9685
9728
|
main: {},
|
|
9686
9729
|
style: {}
|
|
9687
9730
|
}
|
|
9688
9731
|
};
|
|
9689
|
-
uiSchema.elements[
|
|
9732
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9733
|
+
"funcParametersCode",
|
|
9734
|
+
"Write Custom Code for Functions Parameter",
|
|
9735
|
+
true
|
|
9736
|
+
);
|
|
9690
9737
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
9691
9738
|
} else if (handlerType === "refresh") {
|
|
9692
|
-
uiSchema.elements[
|
|
9693
|
-
|
|
9739
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9740
|
+
xs: 0,
|
|
9741
|
+
sm: 0,
|
|
9742
|
+
md: 4,
|
|
9743
|
+
lg: 6
|
|
9744
|
+
});
|
|
9745
|
+
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
9694
9746
|
schema2.properties.refreshElements.required = ["value"];
|
|
9695
9747
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
9696
9748
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|
|
@@ -9703,9 +9755,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9703
9755
|
];
|
|
9704
9756
|
}
|
|
9705
9757
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9706
|
-
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9758
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9759
|
+
uiSchema
|
|
9760
|
+
);
|
|
9707
9761
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9708
9762
|
}
|
|
9763
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9764
|
+
const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
|
|
9765
|
+
const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
|
|
9766
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9767
|
+
if (path) {
|
|
9768
|
+
const pathArrayAll = path.split(".");
|
|
9769
|
+
const arr = [];
|
|
9770
|
+
pathArrayAll.map((e, i) => {
|
|
9771
|
+
if (i === 0) {
|
|
9772
|
+
arr.push(e);
|
|
9773
|
+
return;
|
|
9774
|
+
}
|
|
9775
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9776
|
+
});
|
|
9777
|
+
arr.map((e) => {
|
|
9778
|
+
const data = _.get(config2, e);
|
|
9779
|
+
pathArray.push({
|
|
9780
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9781
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9782
|
+
});
|
|
9783
|
+
});
|
|
9784
|
+
}
|
|
9785
|
+
schema2.properties.pageName.path = pathArray;
|
|
9709
9786
|
store22.setSchema(schema2);
|
|
9710
9787
|
store22.setUiSchema(uiSchema);
|
|
9711
9788
|
},
|
|
@@ -9714,18 +9791,45 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9714
9791
|
return EventUiSchema;
|
|
9715
9792
|
},
|
|
9716
9793
|
getSchema: () => {
|
|
9794
|
+
var _a, _b, _c;
|
|
9717
9795
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9718
9796
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9719
9797
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9720
9798
|
}
|
|
9799
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9800
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9801
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9802
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9803
|
+
if (path) {
|
|
9804
|
+
const pathArrayAll = path.split(".");
|
|
9805
|
+
const arr = [];
|
|
9806
|
+
pathArrayAll.map((e, i) => {
|
|
9807
|
+
if (i === 0) {
|
|
9808
|
+
arr.push(e);
|
|
9809
|
+
return;
|
|
9810
|
+
}
|
|
9811
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9812
|
+
});
|
|
9813
|
+
arr.map((e) => {
|
|
9814
|
+
const data = _.get(config2, e);
|
|
9815
|
+
pathArray.push({
|
|
9816
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9817
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9818
|
+
});
|
|
9819
|
+
});
|
|
9820
|
+
}
|
|
9821
|
+
schema2.properties.pageName.path = _.cloneDeep(pathArray);
|
|
9721
9822
|
return schema2;
|
|
9722
9823
|
},
|
|
9723
9824
|
okHandler: () => okHandler(store2),
|
|
9724
|
-
saveHandler: async () => await saveHandler(store2, service2, submitHandler
|
|
9825
|
+
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
9725
9826
|
onChange: function() {
|
|
9726
9827
|
var _a, _b, _c;
|
|
9727
9828
|
if (((_a = store2 == null ? void 0 : store2.formData) == null ? void 0 : _a.Handler) !== ((_b = store2 == null ? void 0 : store2.newData) == null ? void 0 : _b.Handler) && ((_c = store2 == null ? void 0 : store2.newData) == null ? void 0 : _c.Handler) !== void 0) {
|
|
9728
|
-
this.refreshPage(
|
|
9829
|
+
this.refreshPage(
|
|
9830
|
+
store2.newData.Handler || store2.formdata.Handler,
|
|
9831
|
+
store2
|
|
9832
|
+
);
|
|
9729
9833
|
}
|
|
9730
9834
|
},
|
|
9731
9835
|
addEvent: function() {
|
|
@@ -9751,7 +9855,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9751
9855
|
this.setPage();
|
|
9752
9856
|
},
|
|
9753
9857
|
deleteEvent: async function() {
|
|
9754
|
-
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9858
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9859
|
+
false
|
|
9860
|
+
);
|
|
9755
9861
|
store2.updateDialog("popUpEvent");
|
|
9756
9862
|
},
|
|
9757
9863
|
backHandler: function() {
|
|
@@ -9763,10 +9869,30 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9763
9869
|
store2.updateDialog("popUpEvent");
|
|
9764
9870
|
},
|
|
9765
9871
|
copyPasteElement: function() {
|
|
9766
|
-
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9872
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9873
|
+
store2,
|
|
9874
|
+
this.setPage.bind(this)
|
|
9875
|
+
);
|
|
9767
9876
|
},
|
|
9768
9877
|
RemoveItemButton: function() {
|
|
9769
|
-
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9878
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9879
|
+
store2
|
|
9880
|
+
);
|
|
9881
|
+
},
|
|
9882
|
+
onNavigatePopupYes: function() {
|
|
9883
|
+
try {
|
|
9884
|
+
store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
|
|
9885
|
+
store2.updateDialog(`pageNamepopup`);
|
|
9886
|
+
} catch (e) {
|
|
9887
|
+
store2.updateDialog(`pageNamepopup`);
|
|
9888
|
+
store2.setNotify({
|
|
9889
|
+
FailMessage: "Couldn't navigate page",
|
|
9890
|
+
Fail: true
|
|
9891
|
+
});
|
|
9892
|
+
}
|
|
9893
|
+
},
|
|
9894
|
+
onNavigatePopupNo: function() {
|
|
9895
|
+
store2.updateDialog(`pageNamepopup`);
|
|
9770
9896
|
}
|
|
9771
9897
|
};
|
|
9772
9898
|
};
|
|
@@ -9937,37 +10063,42 @@ function executeCustomHandler(params) {
|
|
|
9937
10063
|
}
|
|
9938
10064
|
}
|
|
9939
10065
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
...pre
|
|
9947
|
-
|
|
9948
|
-
...
|
|
9949
|
-
|
|
10066
|
+
var _a, _b, _c;
|
|
10067
|
+
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10068
|
+
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10069
|
+
store2.setSchema((pre) => {
|
|
10070
|
+
var _a2;
|
|
10071
|
+
return {
|
|
10072
|
+
...pre,
|
|
10073
|
+
properties: {
|
|
10074
|
+
...pre.properties,
|
|
10075
|
+
[componentName]: {
|
|
10076
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
10077
|
+
oneOf: handlerResponse.data
|
|
10078
|
+
}
|
|
9950
10079
|
}
|
|
9951
|
-
}
|
|
9952
|
-
};
|
|
9953
|
-
}
|
|
9954
|
-
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
10080
|
+
};
|
|
10081
|
+
});
|
|
10082
|
+
}
|
|
10083
|
+
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10084
|
+
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10085
|
+
store2.setSchema((pre) => {
|
|
10086
|
+
var _a2;
|
|
10087
|
+
return {
|
|
10088
|
+
...pre,
|
|
10089
|
+
properties: {
|
|
10090
|
+
...pre.properties,
|
|
10091
|
+
[componentName]: {
|
|
10092
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
10093
|
+
type: "array",
|
|
10094
|
+
items: {
|
|
10095
|
+
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
10096
|
+
}
|
|
9966
10097
|
}
|
|
9967
10098
|
}
|
|
9968
|
-
}
|
|
9969
|
-
};
|
|
9970
|
-
}
|
|
10099
|
+
};
|
|
10100
|
+
});
|
|
10101
|
+
}
|
|
9971
10102
|
} else if (eventConfig.type === "page") {
|
|
9972
10103
|
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
9973
10104
|
store2.newData = {
|
|
@@ -9978,6 +10109,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9978
10109
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
9979
10110
|
});
|
|
9980
10111
|
}
|
|
10112
|
+
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10113
|
+
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10114
|
+
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
10115
|
+
formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
|
|
10116
|
+
store2.setFormdata((pre) => {
|
|
10117
|
+
return { ...pre, ...formDataHolder };
|
|
10118
|
+
});
|
|
10119
|
+
}
|
|
9981
10120
|
} else {
|
|
9982
10121
|
if (handlerResponse) {
|
|
9983
10122
|
formDataHolder[componentName] = handlerResponse.data;
|
|
@@ -10113,13 +10252,7 @@ const extractEvents = (eventConfig) => {
|
|
|
10113
10252
|
return eventGroups;
|
|
10114
10253
|
};
|
|
10115
10254
|
var service = (funcParams) => {
|
|
10116
|
-
eventGroups = {};
|
|
10117
10255
|
const formDataHolder = {};
|
|
10118
|
-
if (pageData) {
|
|
10119
|
-
if (!lodash.exports.isEmpty(pageData) && typeof pageData === "object") {
|
|
10120
|
-
eventGroups = extractEvents(pageData == null ? void 0 : pageData.config);
|
|
10121
|
-
}
|
|
10122
|
-
}
|
|
10123
10256
|
let executeEventsParameters = {
|
|
10124
10257
|
config: {},
|
|
10125
10258
|
componentName: "",
|
|
@@ -10135,19 +10268,12 @@ var service = (funcParams) => {
|
|
|
10135
10268
|
return {
|
|
10136
10269
|
setPage: async function() {
|
|
10137
10270
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
10271
|
+
funcParams.store.setAdditionalErrors([]);
|
|
10138
10272
|
funcParams.store.setFormdata({});
|
|
10273
|
+
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
10139
10274
|
funcParams.store.newData = {};
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
pageData = JSON.parse(pageBasicDetailString);
|
|
10143
|
-
} else {
|
|
10144
|
-
pageData = await funcParams.pageDataProvider();
|
|
10145
|
-
sessionStorage.setItem("pagemasterMetaData", JSON.stringify({
|
|
10146
|
-
schema: pageData == null ? void 0 : pageData.schema,
|
|
10147
|
-
uiSchema: pageData == null ? void 0 : pageData.uiSchema,
|
|
10148
|
-
config: pageData == null ? void 0 : pageData.config
|
|
10149
|
-
}));
|
|
10150
|
-
}
|
|
10275
|
+
eventGroups = {};
|
|
10276
|
+
pageData = await funcParams.pageDataProvider();
|
|
10151
10277
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10152
10278
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10153
10279
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
@@ -10185,7 +10311,7 @@ var service = (funcParams) => {
|
|
|
10185
10311
|
},
|
|
10186
10312
|
style: {
|
|
10187
10313
|
color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
|
|
10188
|
-
fontSize: "
|
|
10314
|
+
fontSize: "11px",
|
|
10189
10315
|
textAlign: "center",
|
|
10190
10316
|
lineHeight: 2,
|
|
10191
10317
|
width: "fit-content",
|
|
@@ -10222,7 +10348,7 @@ var service = (funcParams) => {
|
|
|
10222
10348
|
":hover": {
|
|
10223
10349
|
fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
|
|
10224
10350
|
},
|
|
10225
|
-
marginRight: "
|
|
10351
|
+
marginRight: "20px"
|
|
10226
10352
|
}
|
|
10227
10353
|
}
|
|
10228
10354
|
},
|
|
@@ -10244,7 +10370,7 @@ var service = (funcParams) => {
|
|
|
10244
10370
|
height: 0,
|
|
10245
10371
|
width: "fit-content",
|
|
10246
10372
|
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
|
|
10247
|
-
fontSize: "
|
|
10373
|
+
fontSize: "12px",
|
|
10248
10374
|
cursor: "pointer",
|
|
10249
10375
|
marginLeft: "2px",
|
|
10250
10376
|
top: 3,
|
|
@@ -10261,7 +10387,9 @@ var service = (funcParams) => {
|
|
|
10261
10387
|
}
|
|
10262
10388
|
);
|
|
10263
10389
|
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
10264
|
-
|
|
10390
|
+
const newEventGroups = extractEvents(config2);
|
|
10391
|
+
console.log("newEventGroups", newEventGroups, eventGroups);
|
|
10392
|
+
eventGroups = newEventGroups;
|
|
10265
10393
|
executeEventsParameters = {
|
|
10266
10394
|
config: {},
|
|
10267
10395
|
componentName: "",
|
|
@@ -10271,7 +10399,7 @@ var service = (funcParams) => {
|
|
|
10271
10399
|
service: funcParams.service,
|
|
10272
10400
|
functionsProvider: funcParams.functionsProvider,
|
|
10273
10401
|
serviceHolder: this,
|
|
10274
|
-
eventGroups,
|
|
10402
|
+
eventGroups: newEventGroups,
|
|
10275
10403
|
formDataHolder
|
|
10276
10404
|
};
|
|
10277
10405
|
await executeRefreshHandler({
|
|
@@ -10282,8 +10410,8 @@ var service = (funcParams) => {
|
|
|
10282
10410
|
userValue: funcParams.userValue,
|
|
10283
10411
|
service: funcParams.service,
|
|
10284
10412
|
serviceHolder: this,
|
|
10285
|
-
eventGroups,
|
|
10286
|
-
formDataHolder
|
|
10413
|
+
eventGroups: newEventGroups,
|
|
10414
|
+
formDataHolder: {}
|
|
10287
10415
|
});
|
|
10288
10416
|
funcParams.store.setSchema(
|
|
10289
10417
|
(pre) => {
|
|
@@ -10298,11 +10426,11 @@ var service = (funcParams) => {
|
|
|
10298
10426
|
funcParams.store.setUiSchema(uiSchema);
|
|
10299
10427
|
},
|
|
10300
10428
|
onCellRenderer: (cellParams) => {
|
|
10301
|
-
var _a, _b, _c;
|
|
10429
|
+
var _a, _b, _c, _d;
|
|
10302
10430
|
if (eventGroups.onCellRenderer) {
|
|
10303
10431
|
let finalResponse = {};
|
|
10304
10432
|
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]);
|
|
10305
|
-
for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
|
|
10433
|
+
for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
|
|
10306
10434
|
executeEventsParameters.store.functionParameters = cellParams;
|
|
10307
10435
|
finalResponse = executeEvents({
|
|
10308
10436
|
...executeEventsParameters,
|
|
@@ -10357,7 +10485,7 @@ var service = (funcParams) => {
|
|
|
10357
10485
|
{ key: "searchValue", value: param.serachValue },
|
|
10358
10486
|
{ key: "currentValue", value: param.currentValue }
|
|
10359
10487
|
];
|
|
10360
|
-
const response = await this.callExecuteEvents(param, apiBody);
|
|
10488
|
+
const response = await this.callExecuteEvents(param, apiBody, "onLoad");
|
|
10361
10489
|
return response == null ? void 0 : response.data;
|
|
10362
10490
|
}
|
|
10363
10491
|
},
|
|
@@ -10906,6 +11034,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
10906
11034
|
if (config2.style) {
|
|
10907
11035
|
inputField.config.style = JSON.parse(config2.style);
|
|
10908
11036
|
}
|
|
11037
|
+
if (config2.multiline) {
|
|
11038
|
+
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
11039
|
+
}
|
|
10909
11040
|
if (config2.InputFormatingAndMasking) {
|
|
10910
11041
|
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10911
11042
|
}
|
|
@@ -11018,6 +11149,7 @@ var Table = {
|
|
|
11018
11149
|
main: {
|
|
11019
11150
|
onMount: "onMount",
|
|
11020
11151
|
enableExpandAll: true,
|
|
11152
|
+
headerIcons: {},
|
|
11021
11153
|
allRowData: [],
|
|
11022
11154
|
downloadAllData: false,
|
|
11023
11155
|
columns: {
|
|
@@ -11199,7 +11331,8 @@ function Card(theme) {
|
|
|
11199
11331
|
wrapperStyle: {
|
|
11200
11332
|
position: "relative",
|
|
11201
11333
|
top: "50%",
|
|
11202
|
-
transform: "translateY(-50%)"
|
|
11334
|
+
transform: "translateY(-50%)",
|
|
11335
|
+
marginBottom: 0
|
|
11203
11336
|
},
|
|
11204
11337
|
componentsBoxStyle: {
|
|
11205
11338
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
@@ -11238,7 +11371,8 @@ function Card(theme) {
|
|
|
11238
11371
|
gap: 0
|
|
11239
11372
|
},
|
|
11240
11373
|
wrapperStyle: {
|
|
11241
|
-
background: "transparent"
|
|
11374
|
+
background: "transparent",
|
|
11375
|
+
marginBottom: 0
|
|
11242
11376
|
},
|
|
11243
11377
|
componentsBoxStyle: {
|
|
11244
11378
|
flexDirection: "column",
|
|
@@ -11259,7 +11393,8 @@ function Card(theme) {
|
|
|
11259
11393
|
gap: 0
|
|
11260
11394
|
},
|
|
11261
11395
|
wrapperStyle: {
|
|
11262
|
-
background: "transparent"
|
|
11396
|
+
background: "transparent",
|
|
11397
|
+
marginBottom: 0
|
|
11263
11398
|
},
|
|
11264
11399
|
componentsBoxStyle: {
|
|
11265
11400
|
flexDirection: "row",
|
|
@@ -11292,6 +11427,7 @@ function Card(theme) {
|
|
|
11292
11427
|
justifyContent: "flex-start",
|
|
11293
11428
|
width: "auto",
|
|
11294
11429
|
margin: "-8px",
|
|
11430
|
+
marginLeft: "-24px",
|
|
11295
11431
|
height: 0
|
|
11296
11432
|
}
|
|
11297
11433
|
},
|
|
@@ -11316,7 +11452,7 @@ function Card(theme) {
|
|
|
11316
11452
|
width: "auto",
|
|
11317
11453
|
margin: "-8px",
|
|
11318
11454
|
position: "absolute",
|
|
11319
|
-
left: "
|
|
11455
|
+
left: "24px"
|
|
11320
11456
|
}
|
|
11321
11457
|
},
|
|
11322
11458
|
options: {
|
|
@@ -11340,8 +11476,7 @@ function Card(theme) {
|
|
|
11340
11476
|
background: "inherit",
|
|
11341
11477
|
width: "calc(100%+8px)",
|
|
11342
11478
|
margin: "-8px",
|
|
11343
|
-
marginTop: "
|
|
11344
|
-
lineHeight: "1"
|
|
11479
|
+
marginTop: { xs: "16px", md: "20px" }
|
|
11345
11480
|
},
|
|
11346
11481
|
layout: 12
|
|
11347
11482
|
},
|
|
@@ -11367,6 +11502,7 @@ function Card(theme) {
|
|
|
11367
11502
|
justifyContent: "end"
|
|
11368
11503
|
},
|
|
11369
11504
|
imageStyle: {
|
|
11505
|
+
width: "unset",
|
|
11370
11506
|
fontSize: "none",
|
|
11371
11507
|
padding: "4px",
|
|
11372
11508
|
margin: "0px 0px 0px 8px",
|
|
@@ -11741,6 +11877,18 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11741
11877
|
}
|
|
11742
11878
|
return Radio;
|
|
11743
11879
|
};
|
|
11880
|
+
var emptyBox = {
|
|
11881
|
+
type: "Control",
|
|
11882
|
+
scope: "#/properties/emptyBox",
|
|
11883
|
+
options: {
|
|
11884
|
+
widget: "EmptyBox"
|
|
11885
|
+
},
|
|
11886
|
+
config: {
|
|
11887
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
11888
|
+
main: {},
|
|
11889
|
+
style: {}
|
|
11890
|
+
}
|
|
11891
|
+
};
|
|
11744
11892
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11745
11893
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11746
11894
|
if (config2.layout) {
|
|
@@ -11772,6 +11920,7 @@ const TextField = {
|
|
|
11772
11920
|
"widget": "InputField"
|
|
11773
11921
|
},
|
|
11774
11922
|
config: {
|
|
11923
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
11775
11924
|
main: {
|
|
11776
11925
|
label: "Adhaar Card",
|
|
11777
11926
|
formatStrArray: ["9", "9", "9", "9", " ", "9", "9", "9", "9", " ", "X9", "X9", "X9", "X9"],
|
|
@@ -11800,6 +11949,7 @@ const PanField = {
|
|
|
11800
11949
|
"widget": "InputField"
|
|
11801
11950
|
},
|
|
11802
11951
|
config: {
|
|
11952
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
11803
11953
|
main: {
|
|
11804
11954
|
label: "Pan Card",
|
|
11805
11955
|
placeholder: "AAAAA0000A",
|
|
@@ -12378,41 +12528,49 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12378
12528
|
});
|
|
12379
12529
|
} else if (config2.type == "Table") {
|
|
12380
12530
|
const sizeMap = {};
|
|
12381
|
-
const filterMap = {};
|
|
12382
12531
|
if (config2.sizeHolder) {
|
|
12383
12532
|
config2.sizeHolder.map((e, i) => {
|
|
12384
12533
|
sizeMap[e.keyName] = e.value;
|
|
12385
12534
|
});
|
|
12386
12535
|
}
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12393
|
-
|
|
12536
|
+
const tableHeaderElements = [];
|
|
12537
|
+
const tableActionElement = [];
|
|
12538
|
+
const rowElements = [];
|
|
12539
|
+
config2.elements.filter((cellElem, elemInd) => {
|
|
12540
|
+
const commonProperties = {
|
|
12541
|
+
accessorKey: cellElem.name,
|
|
12542
|
+
type: cellElem.columnFormat,
|
|
12543
|
+
header: cellElem.label || cellElem.name,
|
|
12544
|
+
size: sizeMap[cellElem.name] || 180,
|
|
12545
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12546
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12547
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12548
|
+
columnKey: cellElem.columnKey
|
|
12549
|
+
};
|
|
12394
12550
|
if (cellElem.type) {
|
|
12395
|
-
|
|
12396
|
-
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12551
|
+
if (cellElem.elementType == "action") {
|
|
12552
|
+
const actionElem = buildUiSchema(cellElem, store2);
|
|
12553
|
+
tableActionElement.push(actionElem);
|
|
12554
|
+
return false;
|
|
12555
|
+
}
|
|
12556
|
+
if (cellElem.elementType == "tableHeader") {
|
|
12557
|
+
const headerElem = buildUiSchema(cellElem, store2);
|
|
12558
|
+
tableHeaderElements.push({ widget: headerElem });
|
|
12559
|
+
return false;
|
|
12560
|
+
}
|
|
12561
|
+
const tableElem = {
|
|
12400
12562
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12401
12563
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12402
|
-
|
|
12403
|
-
columnFilterModeOptions: config2.filteringOptions
|
|
12564
|
+
...commonProperties
|
|
12404
12565
|
};
|
|
12566
|
+
rowElements.push(tableElem);
|
|
12405
12567
|
} else {
|
|
12406
|
-
|
|
12407
|
-
accessorKey: cellElem.name,
|
|
12408
|
-
type: cellElem.columnFormat,
|
|
12409
|
-
header: cellElem.label || cellElem.name,
|
|
12410
|
-
size: sizeMap[cellElem.name] || 180,
|
|
12411
|
-
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
|
|
12412
|
-
columnFilterModeOptions: config2.filteringOptions
|
|
12413
|
-
};
|
|
12568
|
+
rowElements.push({ ...commonProperties });
|
|
12414
12569
|
}
|
|
12415
12570
|
});
|
|
12571
|
+
elements.elements = rowElements;
|
|
12572
|
+
elements.config.action = tableActionElement;
|
|
12573
|
+
elements.config.main.headerIcons.elements = tableHeaderElements;
|
|
12416
12574
|
} else if (config2.type == "Array") {
|
|
12417
12575
|
elements.options.detail.elements = config2.elements.map((e, elemInd) => {
|
|
12418
12576
|
return buildUiSchema(e, store2);
|