impaktapps-ui-builder 0.0.382460 → 1.0.1-alpha.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 +1316 -1121
- 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/buildPhoneInput.d.ts +1 -0
- 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/phoneInput.d.ts +20 -0
- 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/buildPhoneInput.ts +26 -0
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +42 -29
- 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/phoneInput.ts +16 -0
- 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 +51 -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,52 @@ 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
|
+
{ title: "Phone Input", const: "PhoneInput" }
|
|
6292
|
+
]
|
|
6293
|
+
},
|
|
6294
|
+
elementType: {
|
|
6295
|
+
oneOf: [
|
|
6296
|
+
{ title: "Table Action Element", const: "action" },
|
|
6297
|
+
{ title: "Table Header Element", const: "tableHeader" },
|
|
6298
|
+
{ title: "Table Element", const: "element" }
|
|
6325
6299
|
]
|
|
6326
6300
|
},
|
|
6327
6301
|
columnFormat: {
|
|
@@ -6475,23 +6449,20 @@ const ComponentSchema = {
|
|
|
6475
6449
|
}
|
|
6476
6450
|
},
|
|
6477
6451
|
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
|
-
}
|
|
6452
|
+
oneOf: [
|
|
6453
|
+
{ const: "fuzzy", title: "Fuzzy" },
|
|
6454
|
+
{ const: "contains", title: "Contain" },
|
|
6455
|
+
{ const: "startsWith", title: "Starts with" },
|
|
6456
|
+
{ const: "endsWith", title: "Ends with" },
|
|
6457
|
+
{ const: "equals", title: "Equals" },
|
|
6458
|
+
{ const: "notEquals", title: "Not Equals" },
|
|
6459
|
+
{ const: "between", title: "Between" },
|
|
6460
|
+
{ const: "betweenInclusive", title: "Between inclusive" },
|
|
6461
|
+
{ const: "greaterThan", title: "Greater than" },
|
|
6462
|
+
{ const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
|
|
6463
|
+
{ const: "lessThan", title: "Less than" },
|
|
6464
|
+
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6465
|
+
]
|
|
6495
6466
|
},
|
|
6496
6467
|
legendLabels: {
|
|
6497
6468
|
type: "array",
|
|
@@ -6607,6 +6578,9 @@ const ComponentSchema = {
|
|
|
6607
6578
|
{ title: "Info", const: "info" }
|
|
6608
6579
|
]
|
|
6609
6580
|
},
|
|
6581
|
+
pageName: {
|
|
6582
|
+
path: []
|
|
6583
|
+
},
|
|
6610
6584
|
name: {
|
|
6611
6585
|
type: "string"
|
|
6612
6586
|
},
|
|
@@ -6621,39 +6595,38 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6621
6595
|
var _a;
|
|
6622
6596
|
const uiSchema = {
|
|
6623
6597
|
type: "HorizontalLayout",
|
|
6624
|
-
heading: "Component",
|
|
6598
|
+
heading: "Page-Component",
|
|
6625
6599
|
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
6600
|
{
|
|
6646
6601
|
type: "TabLayout",
|
|
6647
6602
|
config: {
|
|
6648
6603
|
main: {
|
|
6649
6604
|
tabLabels: ["Core"],
|
|
6650
|
-
defaultStyle: true,
|
|
6651
6605
|
id: `component`
|
|
6606
|
+
},
|
|
6607
|
+
style: {
|
|
6608
|
+
TabPanelStyle: {
|
|
6609
|
+
padding: 0
|
|
6610
|
+
}
|
|
6611
|
+
},
|
|
6612
|
+
TabsStyle: {
|
|
6613
|
+
marginBottom: "3px",
|
|
6614
|
+
paddingBottom: "4px",
|
|
6615
|
+
boxShadow: "0px 3px 4px #afafaf80",
|
|
6616
|
+
"& .MuiTabs-indicator": {
|
|
6617
|
+
bottom: "6px"
|
|
6618
|
+
}
|
|
6652
6619
|
}
|
|
6653
6620
|
},
|
|
6654
6621
|
elements: [
|
|
6655
6622
|
{
|
|
6656
|
-
type: "
|
|
6623
|
+
type: "WrapperLayout",
|
|
6624
|
+
config: {
|
|
6625
|
+
main: {
|
|
6626
|
+
label: " ",
|
|
6627
|
+
gap: "8px"
|
|
6628
|
+
}
|
|
6629
|
+
},
|
|
6657
6630
|
elements: [
|
|
6658
6631
|
{
|
|
6659
6632
|
type: "Control",
|
|
@@ -6662,12 +6635,22 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6662
6635
|
widget: "SelectInputField"
|
|
6663
6636
|
},
|
|
6664
6637
|
config: {
|
|
6665
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
6638
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
6666
6639
|
main: {
|
|
6667
6640
|
label: "Type"
|
|
6668
6641
|
}
|
|
6669
6642
|
}
|
|
6670
6643
|
},
|
|
6644
|
+
{
|
|
6645
|
+
type: "Control",
|
|
6646
|
+
scope: "#/properties/proc",
|
|
6647
|
+
config: {
|
|
6648
|
+
layout: { xs: 6, sm: 0, md: 0, lg: 0 }
|
|
6649
|
+
},
|
|
6650
|
+
options: {
|
|
6651
|
+
widget: "EmptyBox"
|
|
6652
|
+
}
|
|
6653
|
+
},
|
|
6671
6654
|
{
|
|
6672
6655
|
type: "Control",
|
|
6673
6656
|
scope: "#/properties/name",
|
|
@@ -6675,11 +6658,9 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6675
6658
|
widget: "InputField"
|
|
6676
6659
|
},
|
|
6677
6660
|
config: {
|
|
6678
|
-
layout: { xs:
|
|
6661
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
6679
6662
|
main: {
|
|
6680
|
-
label: "
|
|
6681
|
-
options: [],
|
|
6682
|
-
color: "secondary",
|
|
6663
|
+
label: "Component ID",
|
|
6683
6664
|
required: true
|
|
6684
6665
|
}
|
|
6685
6666
|
}
|
|
@@ -6691,7 +6672,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6691
6672
|
widget: "InputField"
|
|
6692
6673
|
},
|
|
6693
6674
|
config: {
|
|
6694
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
6675
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
6695
6676
|
main: {
|
|
6696
6677
|
label: "Label",
|
|
6697
6678
|
options: [],
|
|
@@ -6700,34 +6681,11 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6700
6681
|
}
|
|
6701
6682
|
}
|
|
6702
6683
|
},
|
|
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
6684
|
{
|
|
6727
6685
|
type: "Control",
|
|
6728
6686
|
scope: "#/properties/proc",
|
|
6729
6687
|
config: {
|
|
6730
|
-
layout: { xs:
|
|
6688
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
6731
6689
|
},
|
|
6732
6690
|
options: {
|
|
6733
6691
|
widget: "EmptyBox"
|
|
@@ -6789,97 +6747,59 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6789
6747
|
]
|
|
6790
6748
|
},
|
|
6791
6749
|
{
|
|
6792
|
-
type: "
|
|
6750
|
+
type: "WrapperLayout",
|
|
6793
6751
|
config: {
|
|
6794
|
-
|
|
6752
|
+
main: {
|
|
6753
|
+
gap: "8px"
|
|
6754
|
+
}
|
|
6795
6755
|
},
|
|
6796
6756
|
elements: [
|
|
6797
6757
|
{
|
|
6798
6758
|
type: "Control",
|
|
6799
|
-
scope: "#/properties/
|
|
6759
|
+
scope: "#/properties/btn",
|
|
6800
6760
|
options: {
|
|
6801
|
-
widget: "
|
|
6761
|
+
widget: "Button"
|
|
6802
6762
|
},
|
|
6803
6763
|
config: {
|
|
6804
|
-
layout: { xs:
|
|
6764
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6805
6765
|
main: {
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
style: {
|
|
6812
|
-
marginLeft: "-10px"
|
|
6766
|
+
name: "Ok",
|
|
6767
|
+
variant: "contained",
|
|
6768
|
+
type: "text",
|
|
6769
|
+
onClick: "okHandler",
|
|
6770
|
+
size: "medium"
|
|
6813
6771
|
}
|
|
6814
6772
|
}
|
|
6815
6773
|
},
|
|
6816
6774
|
{
|
|
6817
6775
|
type: "Control",
|
|
6818
|
-
scope: "#/properties/
|
|
6776
|
+
scope: "#/properties/btnSubmit",
|
|
6819
6777
|
options: {
|
|
6820
|
-
widget: "
|
|
6778
|
+
widget: "Button"
|
|
6821
6779
|
},
|
|
6822
6780
|
config: {
|
|
6823
|
-
layout: { xs:
|
|
6781
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6824
6782
|
main: {
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
fontSize: "12px",
|
|
6831
|
-
marginTop: "4px"
|
|
6783
|
+
name: "Save & Exit",
|
|
6784
|
+
variant: "contained",
|
|
6785
|
+
type: "text",
|
|
6786
|
+
onClick: "saveHandler",
|
|
6787
|
+
size: "medium"
|
|
6832
6788
|
}
|
|
6833
6789
|
}
|
|
6834
6790
|
},
|
|
6835
6791
|
{
|
|
6836
6792
|
type: "Control",
|
|
6837
6793
|
scope: "#/properties/EmptyBox",
|
|
6794
|
+
config: {
|
|
6795
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
6796
|
+
},
|
|
6838
6797
|
options: {
|
|
6839
6798
|
widget: "EmptyBox"
|
|
6840
|
-
},
|
|
6841
|
-
config: {
|
|
6842
|
-
layout: { xs: 1, sm: 5 }
|
|
6843
6799
|
}
|
|
6844
6800
|
}
|
|
6845
6801
|
]
|
|
6846
6802
|
},
|
|
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
6803
|
{
|
|
6884
6804
|
type: "Control",
|
|
6885
6805
|
scope: "#/properties/popUpComponentSection",
|
|
@@ -6906,17 +6826,18 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6906
6826
|
widget: "Box"
|
|
6907
6827
|
},
|
|
6908
6828
|
config: {
|
|
6909
|
-
layout:
|
|
6829
|
+
layout: 11,
|
|
6910
6830
|
main: {
|
|
6911
|
-
heading: "Are you sure you want to delete ?"
|
|
6831
|
+
heading: "Are you sure you want to delete this Component ?"
|
|
6912
6832
|
},
|
|
6913
6833
|
style: {
|
|
6914
|
-
marginTop: "-20px",
|
|
6915
|
-
fontSize: "20px",
|
|
6916
6834
|
"&.MuiTypography-root": {
|
|
6917
|
-
padding: "
|
|
6835
|
+
padding: "0px 20px",
|
|
6918
6836
|
textAlign: "center",
|
|
6919
|
-
lineHeight: "1"
|
|
6837
|
+
lineHeight: "1.2",
|
|
6838
|
+
fontWeight: "normal",
|
|
6839
|
+
fontSize: "18px",
|
|
6840
|
+
marginBottom: theme.spacing(5)
|
|
6920
6841
|
}
|
|
6921
6842
|
}
|
|
6922
6843
|
}
|
|
@@ -6924,7 +6845,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6924
6845
|
{
|
|
6925
6846
|
type: "WrapperLayout",
|
|
6926
6847
|
config: {
|
|
6927
|
-
layout:
|
|
6848
|
+
layout: 11,
|
|
6928
6849
|
main: {}
|
|
6929
6850
|
},
|
|
6930
6851
|
elements: [
|
|
@@ -6938,15 +6859,15 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6938
6859
|
layout: 6,
|
|
6939
6860
|
main: {
|
|
6940
6861
|
name: "No",
|
|
6941
|
-
startIcon: "ApproveIcon",
|
|
6942
6862
|
variant: "contained",
|
|
6943
|
-
color: "info",
|
|
6944
6863
|
type: "text",
|
|
6945
6864
|
onClick: "deletePopUpComponent",
|
|
6946
6865
|
size: "large"
|
|
6947
6866
|
},
|
|
6948
6867
|
style: {
|
|
6949
6868
|
position: "absolute",
|
|
6869
|
+
padding: "8px 0px",
|
|
6870
|
+
fontSize: "16px",
|
|
6950
6871
|
bottom: 0,
|
|
6951
6872
|
left: 0,
|
|
6952
6873
|
width: "50%",
|
|
@@ -6974,7 +6895,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6974
6895
|
layout: 6,
|
|
6975
6896
|
main: {
|
|
6976
6897
|
name: "Yes",
|
|
6977
|
-
startIcon: "ApproveIcon",
|
|
6978
6898
|
variant: "contained",
|
|
6979
6899
|
color: "error",
|
|
6980
6900
|
type: "text",
|
|
@@ -6983,6 +6903,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6983
6903
|
},
|
|
6984
6904
|
style: {
|
|
6985
6905
|
position: "absolute",
|
|
6906
|
+
padding: "8px 0px",
|
|
6907
|
+
fontSize: "16px",
|
|
6986
6908
|
bottom: 0,
|
|
6987
6909
|
right: 0,
|
|
6988
6910
|
width: "50%",
|
|
@@ -7029,17 +6951,19 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7029
6951
|
widget: "Box"
|
|
7030
6952
|
},
|
|
7031
6953
|
config: {
|
|
7032
|
-
layout:
|
|
6954
|
+
layout: 11,
|
|
7033
6955
|
main: {
|
|
7034
|
-
heading: "Are you sure you want to delete ?"
|
|
6956
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
7035
6957
|
},
|
|
7036
6958
|
style: {
|
|
7037
|
-
marginTop: "-20px",
|
|
7038
6959
|
fontSize: "20px",
|
|
7039
6960
|
"&.MuiTypography-root": {
|
|
7040
|
-
padding: "
|
|
6961
|
+
padding: "0px 20px",
|
|
7041
6962
|
textAlign: "center",
|
|
7042
|
-
lineHeight: "1"
|
|
6963
|
+
lineHeight: "1.2",
|
|
6964
|
+
fontWeight: "normal",
|
|
6965
|
+
fontSize: "18px",
|
|
6966
|
+
marginBottom: theme.spacing(5)
|
|
7043
6967
|
}
|
|
7044
6968
|
}
|
|
7045
6969
|
}
|
|
@@ -7047,7 +6971,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7047
6971
|
{
|
|
7048
6972
|
type: "WrapperLayout",
|
|
7049
6973
|
config: {
|
|
7050
|
-
layout:
|
|
6974
|
+
layout: 11,
|
|
7051
6975
|
main: {}
|
|
7052
6976
|
},
|
|
7053
6977
|
elements: [
|
|
@@ -7061,15 +6985,15 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7061
6985
|
layout: 6,
|
|
7062
6986
|
main: {
|
|
7063
6987
|
name: "No",
|
|
7064
|
-
startIcon: "ApproveIcon",
|
|
7065
6988
|
variant: "contained",
|
|
7066
|
-
color: "info",
|
|
7067
6989
|
type: "text",
|
|
7068
6990
|
onClick: "deletePopUpEvent",
|
|
7069
6991
|
size: "large"
|
|
7070
6992
|
},
|
|
7071
6993
|
style: {
|
|
7072
6994
|
position: "absolute",
|
|
6995
|
+
padding: "8px 0px",
|
|
6996
|
+
fontSize: "16px",
|
|
7073
6997
|
bottom: 0,
|
|
7074
6998
|
left: 0,
|
|
7075
6999
|
width: "50%",
|
|
@@ -7097,7 +7021,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7097
7021
|
layout: 6,
|
|
7098
7022
|
main: {
|
|
7099
7023
|
name: "Yes",
|
|
7100
|
-
startIcon: "ApproveIcon",
|
|
7101
7024
|
variant: "contained",
|
|
7102
7025
|
color: "error",
|
|
7103
7026
|
type: "text",
|
|
@@ -7106,6 +7029,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7106
7029
|
},
|
|
7107
7030
|
style: {
|
|
7108
7031
|
position: "absolute",
|
|
7032
|
+
padding: "8px 0px",
|
|
7033
|
+
fontSize: "16px",
|
|
7109
7034
|
bottom: 0,
|
|
7110
7035
|
right: 0,
|
|
7111
7036
|
width: "50%",
|
|
@@ -7128,47 +7053,25 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7128
7053
|
},
|
|
7129
7054
|
{
|
|
7130
7055
|
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",
|
|
7056
|
+
scope: "#/properties/pageName",
|
|
7160
7057
|
options: {
|
|
7161
|
-
widget: "
|
|
7058
|
+
widget: "Breadcrumb"
|
|
7162
7059
|
},
|
|
7163
7060
|
config: {
|
|
7164
|
-
layout:
|
|
7061
|
+
layout: 12,
|
|
7165
7062
|
main: {
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7063
|
+
onNavigatePopupNo: "onNavigatePopupNo",
|
|
7064
|
+
onNavigatePopupYes: "onNavigatePopupYes"
|
|
7065
|
+
},
|
|
7066
|
+
style: {
|
|
7067
|
+
paddingLeft: theme.spacing(3),
|
|
7068
|
+
color: theme.palette.grey[600],
|
|
7069
|
+
fontSize: "10px",
|
|
7070
|
+
position: "fixed",
|
|
7071
|
+
bottom: "24px",
|
|
7072
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
7073
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
7074
|
+
backgroundColor: theme.palette.background.default
|
|
7172
7075
|
}
|
|
7173
7076
|
}
|
|
7174
7077
|
},
|
|
@@ -7189,8 +7092,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7189
7092
|
style: {
|
|
7190
7093
|
flexDirection: "row",
|
|
7191
7094
|
position: "absolute",
|
|
7192
|
-
bottom:
|
|
7193
|
-
marginBottom: "-8px",
|
|
7095
|
+
bottom: 10,
|
|
7194
7096
|
height: "fit-content",
|
|
7195
7097
|
overflow: "hidden",
|
|
7196
7098
|
zIndex: 1e3,
|
|
@@ -7210,75 +7112,16 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7210
7112
|
},
|
|
7211
7113
|
style: {
|
|
7212
7114
|
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
7213
|
-
fontSize: "
|
|
7115
|
+
fontSize: "11px",
|
|
7214
7116
|
textAlign: "center",
|
|
7215
|
-
lineHeight:
|
|
7117
|
+
lineHeight: 0,
|
|
7216
7118
|
width: "fit-content",
|
|
7217
7119
|
left: "50%",
|
|
7218
7120
|
position: "relative",
|
|
7219
|
-
margin:
|
|
7121
|
+
margin: "revert",
|
|
7220
7122
|
flexGrow: 1,
|
|
7221
7123
|
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
|
-
}
|
|
7124
|
+
transform: "translate(-50%, 0%)"
|
|
7282
7125
|
}
|
|
7283
7126
|
}
|
|
7284
7127
|
}
|
|
@@ -7289,7 +7132,13 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7289
7132
|
return uiSchema;
|
|
7290
7133
|
};
|
|
7291
7134
|
const CoreSection = {
|
|
7292
|
-
type: "
|
|
7135
|
+
type: "WrapperLayout",
|
|
7136
|
+
config: {
|
|
7137
|
+
main: {
|
|
7138
|
+
label: " ",
|
|
7139
|
+
gap: "8px"
|
|
7140
|
+
}
|
|
7141
|
+
},
|
|
7293
7142
|
elements: [
|
|
7294
7143
|
{
|
|
7295
7144
|
type: "Control",
|
|
@@ -7298,7 +7147,7 @@ const CoreSection = {
|
|
|
7298
7147
|
widget: "SelectInputField"
|
|
7299
7148
|
},
|
|
7300
7149
|
config: {
|
|
7301
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7150
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7302
7151
|
main: {
|
|
7303
7152
|
label: "Type",
|
|
7304
7153
|
type: "text"
|
|
@@ -7307,40 +7156,39 @@ const CoreSection = {
|
|
|
7307
7156
|
},
|
|
7308
7157
|
{
|
|
7309
7158
|
type: "Control",
|
|
7310
|
-
scope: "#/properties/
|
|
7311
|
-
options: {
|
|
7312
|
-
widget: "InputField"
|
|
7313
|
-
},
|
|
7159
|
+
scope: "#/properties/proc",
|
|
7314
7160
|
config: {
|
|
7315
|
-
layout: { xs: 6, sm:
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7161
|
+
layout: { xs: 6, sm: 0, md: 0, lg: 0 }
|
|
7162
|
+
},
|
|
7163
|
+
options: {
|
|
7164
|
+
widget: "EmptyBox"
|
|
7319
7165
|
}
|
|
7320
7166
|
},
|
|
7321
7167
|
{
|
|
7322
7168
|
type: "Control",
|
|
7323
|
-
scope: "#/properties/
|
|
7169
|
+
scope: "#/properties/name",
|
|
7324
7170
|
options: {
|
|
7325
7171
|
widget: "InputField"
|
|
7326
7172
|
},
|
|
7327
7173
|
config: {
|
|
7328
|
-
layout: { xs:
|
|
7174
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7329
7175
|
main: {
|
|
7330
|
-
label: "
|
|
7176
|
+
label: "Component ID",
|
|
7177
|
+
required: true
|
|
7331
7178
|
}
|
|
7332
7179
|
}
|
|
7333
7180
|
},
|
|
7334
7181
|
{
|
|
7335
7182
|
type: "Control",
|
|
7336
|
-
scope: "#/properties/
|
|
7183
|
+
scope: "#/properties/label",
|
|
7337
7184
|
options: {
|
|
7338
|
-
widget: "
|
|
7185
|
+
widget: "InputField"
|
|
7339
7186
|
},
|
|
7340
7187
|
config: {
|
|
7341
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7188
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7342
7189
|
main: {
|
|
7343
|
-
label: "
|
|
7190
|
+
label: "Label",
|
|
7191
|
+
required: true
|
|
7344
7192
|
}
|
|
7345
7193
|
}
|
|
7346
7194
|
},
|
|
@@ -7348,17 +7196,7 @@ const CoreSection = {
|
|
|
7348
7196
|
type: "Control",
|
|
7349
7197
|
scope: "#/properties/proc",
|
|
7350
7198
|
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 }
|
|
7199
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7362
7200
|
},
|
|
7363
7201
|
options: {
|
|
7364
7202
|
widget: "EmptyBox"
|
|
@@ -7441,15 +7279,20 @@ const EventSection = (theme) => {
|
|
|
7441
7279
|
},
|
|
7442
7280
|
config: {
|
|
7443
7281
|
main: {
|
|
7444
|
-
color: "info",
|
|
7445
7282
|
onClick: "eventAddHandler",
|
|
7446
7283
|
size: "small",
|
|
7447
|
-
icon: "
|
|
7448
|
-
iconLabel: "Add
|
|
7284
|
+
icon: "TableAddIcon",
|
|
7285
|
+
iconLabel: "Add",
|
|
7449
7286
|
styleDefault: true
|
|
7450
7287
|
},
|
|
7451
7288
|
style: {
|
|
7452
|
-
mt: "6px"
|
|
7289
|
+
mt: "6px",
|
|
7290
|
+
color: "inherit",
|
|
7291
|
+
fill: "inherit",
|
|
7292
|
+
"&:hover": {
|
|
7293
|
+
color: "inherit",
|
|
7294
|
+
fill: "inherit"
|
|
7295
|
+
}
|
|
7453
7296
|
}
|
|
7454
7297
|
}
|
|
7455
7298
|
}
|
|
@@ -7465,12 +7308,18 @@ const EventSection = (theme) => {
|
|
|
7465
7308
|
main: {
|
|
7466
7309
|
onClick: "copyPasteElement",
|
|
7467
7310
|
size: "small",
|
|
7468
|
-
icon: "
|
|
7311
|
+
icon: "TablePaste",
|
|
7469
7312
|
iconLabel: "Paste",
|
|
7470
7313
|
styleDefault: true
|
|
7471
7314
|
},
|
|
7472
7315
|
style: {
|
|
7473
|
-
mt: "6px"
|
|
7316
|
+
mt: "6px",
|
|
7317
|
+
color: "inherit",
|
|
7318
|
+
fill: "inherit",
|
|
7319
|
+
"&:hover": {
|
|
7320
|
+
color: "inherit",
|
|
7321
|
+
fill: "inherit"
|
|
7322
|
+
}
|
|
7474
7323
|
}
|
|
7475
7324
|
}
|
|
7476
7325
|
}
|
|
@@ -7485,15 +7334,21 @@ const EventSection = (theme) => {
|
|
|
7485
7334
|
elements: [
|
|
7486
7335
|
{
|
|
7487
7336
|
accessorKey: "eventType",
|
|
7488
|
-
header: "Event Type"
|
|
7337
|
+
header: "Event's Type",
|
|
7338
|
+
type: "string",
|
|
7339
|
+
size: 300
|
|
7489
7340
|
},
|
|
7490
7341
|
{
|
|
7491
7342
|
accessorKey: "Handler",
|
|
7492
|
-
header: "Handler"
|
|
7343
|
+
header: "Handler",
|
|
7344
|
+
type: "string",
|
|
7345
|
+
size: 200
|
|
7493
7346
|
},
|
|
7494
7347
|
{
|
|
7495
7348
|
accessorKey: "Edit_Approve_Records",
|
|
7496
|
-
header: "Edit
|
|
7349
|
+
header: "Edit",
|
|
7350
|
+
size: 150,
|
|
7351
|
+
type: "action",
|
|
7497
7352
|
widget: {
|
|
7498
7353
|
type: "Control",
|
|
7499
7354
|
scope: "#/properties/Edit_Records",
|
|
@@ -7502,14 +7357,16 @@ const EventSection = (theme) => {
|
|
|
7502
7357
|
},
|
|
7503
7358
|
config: {
|
|
7504
7359
|
main: {
|
|
7505
|
-
color: "info",
|
|
7506
7360
|
size: "small",
|
|
7507
|
-
icon: "
|
|
7361
|
+
icon: "TableEditIcon",
|
|
7508
7362
|
tooltipMessage: "Edit This Record",
|
|
7509
7363
|
onClick: "eventEditHandler"
|
|
7510
7364
|
},
|
|
7511
7365
|
style: {
|
|
7512
|
-
|
|
7366
|
+
fill: theme.palette.primary.main,
|
|
7367
|
+
"& :hover": {
|
|
7368
|
+
fill: theme.palette.primary.dark
|
|
7369
|
+
}
|
|
7513
7370
|
}
|
|
7514
7371
|
}
|
|
7515
7372
|
}
|
|
@@ -7517,6 +7374,8 @@ const EventSection = (theme) => {
|
|
|
7517
7374
|
{
|
|
7518
7375
|
accessorKey: "Reject_Records",
|
|
7519
7376
|
header: "Delete",
|
|
7377
|
+
size: 150,
|
|
7378
|
+
type: "action",
|
|
7520
7379
|
widget: {
|
|
7521
7380
|
type: "Control",
|
|
7522
7381
|
scope: "#/properties/RejectButton",
|
|
@@ -7526,10 +7385,15 @@ const EventSection = (theme) => {
|
|
|
7526
7385
|
},
|
|
7527
7386
|
config: {
|
|
7528
7387
|
main: {
|
|
7529
|
-
icon: "
|
|
7530
|
-
color: "error",
|
|
7388
|
+
icon: "Bin",
|
|
7531
7389
|
tooltipMessage: "Reject This Record",
|
|
7532
7390
|
onClick: "deletePopUpEvent"
|
|
7391
|
+
},
|
|
7392
|
+
style: {
|
|
7393
|
+
fill: theme.palette.primary.main,
|
|
7394
|
+
"& :hover": {
|
|
7395
|
+
fill: theme.palette.primary.dark
|
|
7396
|
+
}
|
|
7533
7397
|
}
|
|
7534
7398
|
}
|
|
7535
7399
|
}
|
|
@@ -7537,7 +7401,8 @@ const EventSection = (theme) => {
|
|
|
7537
7401
|
{
|
|
7538
7402
|
header: "Copy",
|
|
7539
7403
|
field: "Copy_Event",
|
|
7540
|
-
|
|
7404
|
+
size: 150,
|
|
7405
|
+
type: "action",
|
|
7541
7406
|
widget: {
|
|
7542
7407
|
type: "Control",
|
|
7543
7408
|
scope: "#/properties/Copy_Event",
|
|
@@ -7587,7 +7452,7 @@ const emptyBox$1 = (scope, layout) => {
|
|
|
7587
7452
|
const cardLayout = {
|
|
7588
7453
|
type: "Control",
|
|
7589
7454
|
scope: "#/properties/cardLayout",
|
|
7590
|
-
layout:
|
|
7455
|
+
layout: 12,
|
|
7591
7456
|
options: {
|
|
7592
7457
|
detail: {
|
|
7593
7458
|
type: "HorizontalLayout",
|
|
@@ -7630,34 +7495,46 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
7630
7495
|
return {
|
|
7631
7496
|
type: "Control",
|
|
7632
7497
|
scope: `#/properties/${parentScope}`,
|
|
7633
|
-
layout: 12,
|
|
7634
7498
|
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
|
-
]
|
|
7499
|
+
widget: "Array"
|
|
7500
|
+
},
|
|
7501
|
+
config: {
|
|
7502
|
+
layout: 12,
|
|
7503
|
+
main: {
|
|
7504
|
+
label: childLabel,
|
|
7505
|
+
childElementLabel: childLabel
|
|
7506
|
+
},
|
|
7507
|
+
style: {
|
|
7508
|
+
marginLeft: "-24px",
|
|
7509
|
+
marginBottom: "24px !important",
|
|
7510
|
+
labelStyle: {
|
|
7511
|
+
marginLeft: "24px"
|
|
7512
|
+
},
|
|
7513
|
+
detailsStyle: {
|
|
7514
|
+
marginLeft: "24px"
|
|
7515
|
+
}
|
|
7655
7516
|
}
|
|
7656
|
-
}
|
|
7517
|
+
},
|
|
7518
|
+
elements: [
|
|
7519
|
+
{
|
|
7520
|
+
type: "Control",
|
|
7521
|
+
scope: `#/properties/${childScope}`,
|
|
7522
|
+
options: {
|
|
7523
|
+
widget: "InputField"
|
|
7524
|
+
},
|
|
7525
|
+
config: {
|
|
7526
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7527
|
+
main: {
|
|
7528
|
+
label: childLabel || "Labels for Tab"
|
|
7529
|
+
}
|
|
7530
|
+
}
|
|
7531
|
+
},
|
|
7532
|
+
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
|
|
7533
|
+
]
|
|
7657
7534
|
};
|
|
7658
7535
|
};
|
|
7659
7536
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7660
|
-
sizeHolder.
|
|
7537
|
+
sizeHolder.elements[1] = {
|
|
7661
7538
|
type: "Control",
|
|
7662
7539
|
scope: `#/properties/value`,
|
|
7663
7540
|
options: {
|
|
@@ -7670,7 +7547,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7670
7547
|
}
|
|
7671
7548
|
}
|
|
7672
7549
|
};
|
|
7673
|
-
sizeHolder.
|
|
7550
|
+
sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7674
7551
|
const getInputField = (scope, label) => {
|
|
7675
7552
|
return {
|
|
7676
7553
|
type: "Control",
|
|
@@ -7679,7 +7556,7 @@ const getInputField = (scope, label) => {
|
|
|
7679
7556
|
widget: "InputField"
|
|
7680
7557
|
},
|
|
7681
7558
|
config: {
|
|
7682
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7559
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7683
7560
|
main: {
|
|
7684
7561
|
label
|
|
7685
7562
|
}
|
|
@@ -7694,7 +7571,7 @@ const getRadioInputField = (scope, label, options) => {
|
|
|
7694
7571
|
widget: "RadioInputField"
|
|
7695
7572
|
},
|
|
7696
7573
|
config: {
|
|
7697
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
7574
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7698
7575
|
main: {
|
|
7699
7576
|
label,
|
|
7700
7577
|
options
|
|
@@ -7709,17 +7586,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7709
7586
|
main: {
|
|
7710
7587
|
label: label || "Details",
|
|
7711
7588
|
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
|
|
7589
|
+
}
|
|
7723
7590
|
},
|
|
7724
7591
|
elements: elements || []
|
|
7725
7592
|
};
|
|
@@ -7733,18 +7600,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
|
|
|
7733
7600
|
},
|
|
7734
7601
|
config: {
|
|
7735
7602
|
layout: layout || 12,
|
|
7736
|
-
style: {
|
|
7737
|
-
containerStyle: {
|
|
7738
|
-
borderRadius: "20px"
|
|
7739
|
-
},
|
|
7740
|
-
headerContainerStyle: {},
|
|
7741
|
-
textAreaStyle: {
|
|
7742
|
-
borderRadius: "20px",
|
|
7743
|
-
padding: "20px"
|
|
7744
|
-
}
|
|
7745
|
-
},
|
|
7746
7603
|
main: {
|
|
7747
|
-
heading,
|
|
7604
|
+
label: heading,
|
|
7748
7605
|
minRows: 8,
|
|
7749
7606
|
hideButton,
|
|
7750
7607
|
enableCodeEditor: true
|
|
@@ -7760,7 +7617,7 @@ const getSelectField = (scope, label, options) => {
|
|
|
7760
7617
|
widget: "SelectInputField"
|
|
7761
7618
|
},
|
|
7762
7619
|
config: {
|
|
7763
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7620
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7764
7621
|
main: {
|
|
7765
7622
|
label,
|
|
7766
7623
|
type: "text"
|
|
@@ -7776,7 +7633,7 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7776
7633
|
widget: "MultipleSelect"
|
|
7777
7634
|
},
|
|
7778
7635
|
config: {
|
|
7779
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7636
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7780
7637
|
main: {
|
|
7781
7638
|
multiple: true,
|
|
7782
7639
|
label,
|
|
@@ -7785,12 +7642,18 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7785
7642
|
}
|
|
7786
7643
|
};
|
|
7787
7644
|
};
|
|
7788
|
-
const
|
|
7645
|
+
const BaseSection = {
|
|
7789
7646
|
type: "WrapperLayout",
|
|
7647
|
+
config: {
|
|
7648
|
+
main: {
|
|
7649
|
+
label: " ",
|
|
7650
|
+
gap: "8px"
|
|
7651
|
+
}
|
|
7652
|
+
},
|
|
7790
7653
|
elements: []
|
|
7791
7654
|
};
|
|
7792
7655
|
const buildPropertiesSection = function(type) {
|
|
7793
|
-
let uiSchema = _.cloneDeep(
|
|
7656
|
+
let uiSchema = _.cloneDeep(BaseSection);
|
|
7794
7657
|
switch (type) {
|
|
7795
7658
|
case "TreeMap":
|
|
7796
7659
|
uiSchema.elements = [
|
|
@@ -7845,7 +7708,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7845
7708
|
case "Text":
|
|
7846
7709
|
uiSchema.elements = [
|
|
7847
7710
|
getInputField("placeholder", "Placeholder"),
|
|
7848
|
-
|
|
7711
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7849
7712
|
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7850
7713
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7851
7714
|
];
|
|
@@ -7854,7 +7717,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7854
7717
|
uiSchema.elements = [
|
|
7855
7718
|
getInputField("placeholder", "Placeholder"),
|
|
7856
7719
|
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7857
|
-
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7720
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
7721
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
|
|
7858
7722
|
];
|
|
7859
7723
|
break;
|
|
7860
7724
|
case "SpeedoMeter":
|
|
@@ -7934,7 +7798,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7934
7798
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7935
7799
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7936
7800
|
getInputField("leftMargin", "Left Margin"),
|
|
7937
|
-
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg:
|
|
7801
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
7938
7802
|
getArrayControl("legendLabels", "label"),
|
|
7939
7803
|
getArrayControl("pieArcColors", "color")
|
|
7940
7804
|
];
|
|
@@ -8015,7 +7879,13 @@ const buildPropertiesSection = function(type) {
|
|
|
8015
7879
|
return uiSchema;
|
|
8016
7880
|
};
|
|
8017
7881
|
const StyleSection = {
|
|
8018
|
-
type: "
|
|
7882
|
+
type: "WrapperLayout",
|
|
7883
|
+
config: {
|
|
7884
|
+
main: {
|
|
7885
|
+
label: " ",
|
|
7886
|
+
gap: "8px"
|
|
7887
|
+
}
|
|
7888
|
+
},
|
|
8019
7889
|
elements: [
|
|
8020
7890
|
{
|
|
8021
7891
|
type: "Control",
|
|
@@ -8031,14 +7901,7 @@ const StyleSection = {
|
|
|
8031
7901
|
lg: 12
|
|
8032
7902
|
},
|
|
8033
7903
|
style: {
|
|
8034
|
-
|
|
8035
|
-
borderRadius: "20px"
|
|
8036
|
-
},
|
|
8037
|
-
headerContainerStyle: {},
|
|
8038
|
-
textAreaStyle: {
|
|
8039
|
-
borderRadius: "20px",
|
|
8040
|
-
padding: "20px"
|
|
8041
|
-
}
|
|
7904
|
+
"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
|
|
8042
7905
|
},
|
|
8043
7906
|
main: {
|
|
8044
7907
|
heading: "JSON Style",
|
|
@@ -8072,15 +7935,20 @@ const TableSection = (theme) => {
|
|
|
8072
7935
|
},
|
|
8073
7936
|
config: {
|
|
8074
7937
|
main: {
|
|
8075
|
-
color: "info",
|
|
8076
7938
|
onClick: "widgetAddClickHandler",
|
|
8077
7939
|
size: "small",
|
|
8078
|
-
icon: "
|
|
8079
|
-
iconLabel: "Add
|
|
7940
|
+
icon: "TableAddIcon",
|
|
7941
|
+
iconLabel: "Add",
|
|
8080
7942
|
styleDefault: true
|
|
8081
7943
|
},
|
|
8082
7944
|
style: {
|
|
8083
|
-
mt: "6px"
|
|
7945
|
+
mt: "6px",
|
|
7946
|
+
color: "inherit",
|
|
7947
|
+
fill: "inherit",
|
|
7948
|
+
"&:hover": {
|
|
7949
|
+
color: "inherit",
|
|
7950
|
+
fill: "inherit"
|
|
7951
|
+
}
|
|
8084
7952
|
}
|
|
8085
7953
|
}
|
|
8086
7954
|
}
|
|
@@ -8096,12 +7964,18 @@ const TableSection = (theme) => {
|
|
|
8096
7964
|
main: {
|
|
8097
7965
|
onClick: "copyPasteElement",
|
|
8098
7966
|
size: "small",
|
|
8099
|
-
icon: "
|
|
7967
|
+
icon: "TablePaste",
|
|
8100
7968
|
iconLabel: "Paste",
|
|
8101
7969
|
styleDefault: true
|
|
8102
7970
|
},
|
|
8103
7971
|
style: {
|
|
8104
|
-
mt: "6px"
|
|
7972
|
+
mt: "6px",
|
|
7973
|
+
color: "inherit",
|
|
7974
|
+
fill: "inherit",
|
|
7975
|
+
"&:hover": {
|
|
7976
|
+
color: "inherit",
|
|
7977
|
+
fill: "inherit"
|
|
7978
|
+
}
|
|
8105
7979
|
}
|
|
8106
7980
|
}
|
|
8107
7981
|
}
|
|
@@ -8116,16 +7990,21 @@ const TableSection = (theme) => {
|
|
|
8116
7990
|
elements: [
|
|
8117
7991
|
{
|
|
8118
7992
|
accessorKey: "name",
|
|
8119
|
-
header: "Name"
|
|
7993
|
+
header: "Name",
|
|
7994
|
+
type: "string",
|
|
7995
|
+
size: 300
|
|
8120
7996
|
},
|
|
8121
7997
|
{
|
|
8122
7998
|
accessorKey: "type",
|
|
8123
|
-
header: "Type"
|
|
7999
|
+
header: "Type",
|
|
8000
|
+
type: "string",
|
|
8001
|
+
size: 200
|
|
8124
8002
|
},
|
|
8125
8003
|
{
|
|
8126
8004
|
header: "Edit Record",
|
|
8127
8005
|
field: "Reject_Records",
|
|
8128
|
-
|
|
8006
|
+
size: 150,
|
|
8007
|
+
type: "action",
|
|
8129
8008
|
widget: {
|
|
8130
8009
|
type: "Control",
|
|
8131
8010
|
scope: "#/properties/RejectButton",
|
|
@@ -8134,13 +8013,16 @@ const TableSection = (theme) => {
|
|
|
8134
8013
|
},
|
|
8135
8014
|
config: {
|
|
8136
8015
|
main: {
|
|
8137
|
-
icon: "
|
|
8138
|
-
|
|
8016
|
+
icon: "TableEditIcon",
|
|
8017
|
+
size: "small",
|
|
8139
8018
|
onClick: "editComponents",
|
|
8140
8019
|
tooltipMessage: "Reject This Record"
|
|
8141
8020
|
},
|
|
8142
8021
|
style: {
|
|
8143
|
-
|
|
8022
|
+
fill: theme.palette.primary.main,
|
|
8023
|
+
"& :hover": {
|
|
8024
|
+
fill: theme.palette.primary.dark
|
|
8025
|
+
}
|
|
8144
8026
|
}
|
|
8145
8027
|
}
|
|
8146
8028
|
}
|
|
@@ -8148,7 +8030,8 @@ const TableSection = (theme) => {
|
|
|
8148
8030
|
{
|
|
8149
8031
|
header: "Delete",
|
|
8150
8032
|
field: "Reject_Records",
|
|
8151
|
-
|
|
8033
|
+
size: 150,
|
|
8034
|
+
type: "action",
|
|
8152
8035
|
widget: {
|
|
8153
8036
|
type: "Control",
|
|
8154
8037
|
scope: "#/properties/RejectButton",
|
|
@@ -8157,10 +8040,15 @@ const TableSection = (theme) => {
|
|
|
8157
8040
|
},
|
|
8158
8041
|
config: {
|
|
8159
8042
|
main: {
|
|
8160
|
-
icon: "
|
|
8161
|
-
color: "error",
|
|
8043
|
+
icon: "Bin",
|
|
8162
8044
|
onClick: "deletePopUpComponent",
|
|
8163
8045
|
tooltipMessage: "Reject This Record"
|
|
8046
|
+
},
|
|
8047
|
+
style: {
|
|
8048
|
+
fill: theme.palette.primary.main,
|
|
8049
|
+
"& :hover": {
|
|
8050
|
+
fill: theme.palette.primary.dark
|
|
8051
|
+
}
|
|
8164
8052
|
}
|
|
8165
8053
|
}
|
|
8166
8054
|
}
|
|
@@ -8168,7 +8056,8 @@ const TableSection = (theme) => {
|
|
|
8168
8056
|
{
|
|
8169
8057
|
header: "Copy",
|
|
8170
8058
|
field: "Copy_Component",
|
|
8171
|
-
|
|
8059
|
+
size: 150,
|
|
8060
|
+
type: "action",
|
|
8172
8061
|
widget: {
|
|
8173
8062
|
type: "Control",
|
|
8174
8063
|
scope: "#/properties/Copy_Component",
|
|
@@ -8192,60 +8081,86 @@ const TableSection = (theme) => {
|
|
|
8192
8081
|
return uiSchema;
|
|
8193
8082
|
};
|
|
8194
8083
|
const ValueTab = {
|
|
8195
|
-
type: "
|
|
8084
|
+
type: "WrapperLayout",
|
|
8085
|
+
config: {
|
|
8086
|
+
main: {
|
|
8087
|
+
label: " ",
|
|
8088
|
+
gap: "8px"
|
|
8089
|
+
}
|
|
8090
|
+
},
|
|
8196
8091
|
elements: [
|
|
8197
8092
|
{
|
|
8198
8093
|
type: "Control",
|
|
8199
8094
|
scope: "#/properties/value",
|
|
8200
|
-
layout: 12,
|
|
8201
8095
|
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
|
-
}
|
|
8096
|
+
widget: "Array"
|
|
8097
|
+
},
|
|
8098
|
+
config: {
|
|
8099
|
+
layout: 12,
|
|
8100
|
+
main: {
|
|
8101
|
+
label: "Value",
|
|
8102
|
+
childElementLabel: "Value"
|
|
8103
|
+
},
|
|
8104
|
+
style: {
|
|
8105
|
+
marginLeft: "-24px",
|
|
8106
|
+
marginBottom: "24px !important",
|
|
8107
|
+
labelStyle: {
|
|
8108
|
+
marginLeft: "24px"
|
|
8109
|
+
},
|
|
8110
|
+
detailsStyle: {
|
|
8111
|
+
marginLeft: "24px"
|
|
8112
|
+
}
|
|
8113
|
+
}
|
|
8114
|
+
},
|
|
8115
|
+
elements: [
|
|
8116
|
+
{
|
|
8117
|
+
type: "Control",
|
|
8118
|
+
scope: "#/properties/label",
|
|
8119
|
+
options: {
|
|
8120
|
+
widget: "InputField"
|
|
8121
|
+
},
|
|
8122
|
+
config: {
|
|
8123
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8124
|
+
main: {
|
|
8125
|
+
label: "Label"
|
|
8240
8126
|
}
|
|
8241
|
-
|
|
8127
|
+
}
|
|
8128
|
+
},
|
|
8129
|
+
{
|
|
8130
|
+
type: "Control",
|
|
8131
|
+
scope: "#/properties/value",
|
|
8132
|
+
options: {
|
|
8133
|
+
widget: "InputField"
|
|
8134
|
+
},
|
|
8135
|
+
config: {
|
|
8136
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8137
|
+
main: {
|
|
8138
|
+
label: "Value"
|
|
8139
|
+
}
|
|
8140
|
+
}
|
|
8141
|
+
},
|
|
8142
|
+
{
|
|
8143
|
+
type: "Control",
|
|
8144
|
+
scope: "#/properties/emptyBox",
|
|
8145
|
+
options: {
|
|
8146
|
+
widget: "EmptyBox"
|
|
8147
|
+
},
|
|
8148
|
+
config: {
|
|
8149
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8150
|
+
}
|
|
8242
8151
|
}
|
|
8243
|
-
|
|
8152
|
+
]
|
|
8244
8153
|
}
|
|
8245
8154
|
]
|
|
8246
8155
|
};
|
|
8247
8156
|
const ValidationSection = {
|
|
8248
|
-
type: "
|
|
8157
|
+
type: "WrapperLayout",
|
|
8158
|
+
config: {
|
|
8159
|
+
main: {
|
|
8160
|
+
label: " ",
|
|
8161
|
+
gap: "8px"
|
|
8162
|
+
}
|
|
8163
|
+
},
|
|
8249
8164
|
elements: [
|
|
8250
8165
|
{
|
|
8251
8166
|
type: "Control",
|
|
@@ -8329,7 +8244,12 @@ const createLayoutFormat = (config2) => {
|
|
|
8329
8244
|
lg: 12
|
|
8330
8245
|
};
|
|
8331
8246
|
}
|
|
8332
|
-
let data = {
|
|
8247
|
+
let data = {
|
|
8248
|
+
xs: 12,
|
|
8249
|
+
sm: 12,
|
|
8250
|
+
md: 6,
|
|
8251
|
+
lg: 6
|
|
8252
|
+
};
|
|
8333
8253
|
config2.map((e) => {
|
|
8334
8254
|
data[e.key || "xs"] = +e.value || 5.5;
|
|
8335
8255
|
});
|
|
@@ -8395,7 +8315,7 @@ const getFormdataFromSessionStorage = (path) => {
|
|
|
8395
8315
|
}
|
|
8396
8316
|
return returnValue || pageFormdata;
|
|
8397
8317
|
};
|
|
8398
|
-
async function saveHandler(store2, service2, submitHandler
|
|
8318
|
+
async function saveHandler(store2, service2, submitHandler) {
|
|
8399
8319
|
var _a, _b;
|
|
8400
8320
|
(_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8401
8321
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
@@ -8404,7 +8324,7 @@ async function saveHandler(store2, service2, submitHandler, pageName) {
|
|
|
8404
8324
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
8405
8325
|
try {
|
|
8406
8326
|
const saveReturn = await submitHandler(store2, service2, config2);
|
|
8407
|
-
navigateHandler(store2, true,
|
|
8327
|
+
navigateHandler(store2, true, "/PageMasterRecords");
|
|
8408
8328
|
} catch (err) {
|
|
8409
8329
|
navigateHandler(store2, false);
|
|
8410
8330
|
}
|
|
@@ -8445,53 +8365,138 @@ function okHandler(store2) {
|
|
|
8445
8365
|
}
|
|
8446
8366
|
}
|
|
8447
8367
|
const sectionLabels = {
|
|
8448
|
-
Select: ["Core", "Properties", "Value", "
|
|
8449
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
8450
|
-
Table: ["Core", "Components", "Properties", "
|
|
8451
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
8368
|
+
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8369
|
+
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8370
|
+
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8371
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8452
8372
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8453
8373
|
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", "
|
|
8374
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8375
|
+
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8376
|
+
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8377
|
+
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8378
|
+
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8379
|
+
Box: ["Core", "Events", "Style", "Validation"],
|
|
8380
|
+
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8381
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8382
|
+
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8383
|
+
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8384
|
+
Timer: ["Core", "Events", "Style", "Validation"],
|
|
8385
|
+
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8386
|
+
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8467
8387
|
Array: ["Core", "Components", "Validation"],
|
|
8468
|
-
Radio: ["Core", "Properties", "
|
|
8469
|
-
Text: ["Core", "Properties", "
|
|
8470
|
-
TextArea: ["Core", "Properties", "
|
|
8388
|
+
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8389
|
+
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8390
|
+
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8471
8391
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8472
|
-
Stepper: ["Core", "Components", "Properties", "
|
|
8473
|
-
DataGrid: ["Core", "Components", "Properties", "
|
|
8474
|
-
InputSlider: ["Core", "Properties", "
|
|
8475
|
-
TreeMap: ["Core", "Components", "Properties", "
|
|
8392
|
+
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8393
|
+
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8394
|
+
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8395
|
+
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8476
8396
|
ColumnGroup: ["Core", "Components"],
|
|
8477
|
-
Thought: ["Core", "Properties", "
|
|
8397
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8478
8398
|
};
|
|
8479
8399
|
function refreshPage(type, store2) {
|
|
8480
|
-
var _a;
|
|
8400
|
+
var _a, _b;
|
|
8481
8401
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8402
|
+
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8482
8403
|
if (type) {
|
|
8483
8404
|
const sectionUiSchema = {
|
|
8484
8405
|
Core: CoreSection,
|
|
8485
8406
|
Value: ValueTab,
|
|
8486
8407
|
Style: StyleSection,
|
|
8487
|
-
|
|
8408
|
+
Events: EventSection(store2.theme.myTheme),
|
|
8488
8409
|
Components: TableSection(store2.theme.myTheme),
|
|
8489
8410
|
Properties: buildPropertiesSection(type),
|
|
8490
8411
|
Validation: ValidationSection
|
|
8491
8412
|
};
|
|
8492
8413
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8493
|
-
UiSchema.elements[
|
|
8494
|
-
UiSchema.elements[
|
|
8414
|
+
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8415
|
+
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8416
|
+
}
|
|
8417
|
+
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8418
|
+
const lastDotIndex = path.lastIndexOf(".");
|
|
8419
|
+
const parentPath = path.slice(0, lastDotIndex);
|
|
8420
|
+
const parentObj = _.get(currentConfig, parentPath);
|
|
8421
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8422
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8423
|
+
type: "Control",
|
|
8424
|
+
scope: "#/properties/columnFormat",
|
|
8425
|
+
options: {
|
|
8426
|
+
widget: "SelectInputField"
|
|
8427
|
+
},
|
|
8428
|
+
config: {
|
|
8429
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8430
|
+
main: {
|
|
8431
|
+
label: "Column Format"
|
|
8432
|
+
}
|
|
8433
|
+
}
|
|
8434
|
+
};
|
|
8435
|
+
UiSchema.elements[0].elements[0].elements[6] = {
|
|
8436
|
+
type: "Control",
|
|
8437
|
+
scope: "#/properties/filteringOptions",
|
|
8438
|
+
options: {
|
|
8439
|
+
widget: "SelectInputField"
|
|
8440
|
+
},
|
|
8441
|
+
config: {
|
|
8442
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8443
|
+
main: {
|
|
8444
|
+
label: "Filter Mode",
|
|
8445
|
+
multiple: true
|
|
8446
|
+
}
|
|
8447
|
+
}
|
|
8448
|
+
};
|
|
8449
|
+
UiSchema.elements[0].elements[0].elements[5] = {
|
|
8450
|
+
type: "Control",
|
|
8451
|
+
scope: "#/properties/enableFilter",
|
|
8452
|
+
options: {
|
|
8453
|
+
widget: "RadioInputField"
|
|
8454
|
+
},
|
|
8455
|
+
config: {
|
|
8456
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8457
|
+
main: {
|
|
8458
|
+
label: "Enable Filter",
|
|
8459
|
+
options: ["Yes", "No"]
|
|
8460
|
+
}
|
|
8461
|
+
}
|
|
8462
|
+
}, UiSchema.elements[0].elements[0].elements[7] = {
|
|
8463
|
+
type: "Control",
|
|
8464
|
+
scope: "#/properties/enableSorting",
|
|
8465
|
+
options: {
|
|
8466
|
+
widget: "RadioInputField"
|
|
8467
|
+
},
|
|
8468
|
+
config: {
|
|
8469
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8470
|
+
main: {
|
|
8471
|
+
label: "Enable Sorting",
|
|
8472
|
+
options: ["Yes", "No"]
|
|
8473
|
+
}
|
|
8474
|
+
}
|
|
8475
|
+
}, UiSchema.elements[0].elements[0].elements[8] = {
|
|
8476
|
+
type: "Control",
|
|
8477
|
+
scope: "#/properties/columnKey",
|
|
8478
|
+
config: {
|
|
8479
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8480
|
+
main: {
|
|
8481
|
+
label: "Column Key"
|
|
8482
|
+
}
|
|
8483
|
+
},
|
|
8484
|
+
options: {
|
|
8485
|
+
widget: "InputField"
|
|
8486
|
+
}
|
|
8487
|
+
}, UiSchema.elements[0].elements[0].elements[9] = {
|
|
8488
|
+
type: "Control",
|
|
8489
|
+
scope: "#/properties/elementType",
|
|
8490
|
+
options: {
|
|
8491
|
+
widget: "SelectInputField"
|
|
8492
|
+
},
|
|
8493
|
+
config: {
|
|
8494
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8495
|
+
main: {
|
|
8496
|
+
label: "Element Type"
|
|
8497
|
+
}
|
|
8498
|
+
}
|
|
8499
|
+
};
|
|
8495
8500
|
}
|
|
8496
8501
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8497
8502
|
this.ElementPathSetter(UiSchema);
|
|
@@ -8514,14 +8519,38 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8514
8519
|
return getFormdataFromSessionStorage(path);
|
|
8515
8520
|
},
|
|
8516
8521
|
getSchema: function() {
|
|
8522
|
+
var _a, _b, _c;
|
|
8517
8523
|
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8518
8524
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8519
8525
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
8520
8526
|
}
|
|
8527
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8528
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8529
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8530
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
8531
|
+
if (path) {
|
|
8532
|
+
const pathArrayAll = path.split(".");
|
|
8533
|
+
const arr = [];
|
|
8534
|
+
pathArrayAll.map((e, i) => {
|
|
8535
|
+
if (i === 0) {
|
|
8536
|
+
arr.push(e);
|
|
8537
|
+
return;
|
|
8538
|
+
}
|
|
8539
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
8540
|
+
});
|
|
8541
|
+
arr.map((e) => {
|
|
8542
|
+
const data = _.get(config2, e);
|
|
8543
|
+
pathArray.push({
|
|
8544
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
8545
|
+
path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
8546
|
+
});
|
|
8547
|
+
});
|
|
8548
|
+
}
|
|
8549
|
+
schema2.properties.pageName.path = pathArray;
|
|
8521
8550
|
return schema2;
|
|
8522
8551
|
},
|
|
8523
8552
|
okHandler: () => okHandler(store2),
|
|
8524
|
-
saveHandler: async () => await saveHandler(store2, service2, submitHandler
|
|
8553
|
+
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
8525
8554
|
onChange: function() {
|
|
8526
8555
|
var _a, _b, _c, _d;
|
|
8527
8556
|
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 +8659,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8630
8659
|
const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
|
|
8631
8660
|
this.ElementPathSetter(uiSchema, copiedFormData);
|
|
8632
8661
|
sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
|
|
8662
|
+
store2.setNotify({
|
|
8663
|
+
SuccessMessage: `${elementType} Copied Successfully`,
|
|
8664
|
+
Success: true
|
|
8665
|
+
});
|
|
8633
8666
|
store2.setSchema(schema2);
|
|
8634
8667
|
store2.setUiSchema(uiSchema);
|
|
8635
8668
|
},
|
|
@@ -8643,20 +8676,27 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8643
8676
|
return;
|
|
8644
8677
|
}
|
|
8645
8678
|
const pastedElementParentPath = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8679
|
+
if (!Array.isArray(store2.formData.elements)) {
|
|
8680
|
+
store2.formData.elements = [];
|
|
8681
|
+
}
|
|
8682
|
+
if (!Array.isArray(store2.formData.events)) {
|
|
8683
|
+
store2.formData.events = [];
|
|
8684
|
+
}
|
|
8685
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
8646
8686
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
8647
8687
|
const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
|
|
8648
8688
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8649
8689
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8650
8690
|
const notificationMessages = {
|
|
8651
|
-
|
|
8652
|
-
Component: "The component cannot be integrated into the
|
|
8691
|
+
Events: " The Events cannot be integrated into the component section.",
|
|
8692
|
+
Component: "The component cannot be integrated into the Events section."
|
|
8653
8693
|
};
|
|
8654
8694
|
if (copiedConfig.Handler && elementType === "Component") {
|
|
8655
8695
|
store2.setNotify({
|
|
8656
|
-
FailMessage: notificationMessages.
|
|
8696
|
+
FailMessage: notificationMessages.Events,
|
|
8657
8697
|
Fail: true
|
|
8658
8698
|
});
|
|
8659
|
-
} else if (copiedConfig.name && elementType === "
|
|
8699
|
+
} else if (copiedConfig.name && elementType === "Events") {
|
|
8660
8700
|
store2.setNotify({
|
|
8661
8701
|
FailMessage: notificationMessages.Component,
|
|
8662
8702
|
Fail: true
|
|
@@ -8682,8 +8722,33 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8682
8722
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8683
8723
|
},
|
|
8684
8724
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8725
|
+
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
8726
|
const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8686
|
-
uiSchema.elements[
|
|
8727
|
+
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) {
|
|
8728
|
+
uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8729
|
+
} 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) {
|
|
8730
|
+
uiSchema.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8731
|
+
}
|
|
8732
|
+
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) {
|
|
8733
|
+
uiSchema.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Event: ${formData.eventType}`;
|
|
8734
|
+
} 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) {
|
|
8735
|
+
uiSchema.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.eventType}`;
|
|
8736
|
+
}
|
|
8737
|
+
},
|
|
8738
|
+
onNavigatePopupYes: function() {
|
|
8739
|
+
try {
|
|
8740
|
+
store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
|
|
8741
|
+
store2.updateDialog(`pageNamepopup`);
|
|
8742
|
+
} catch (e) {
|
|
8743
|
+
store2.updateDialog(`pageNamepopup`);
|
|
8744
|
+
store2.setNotify({
|
|
8745
|
+
FailMessage: "Couldn't navigate page",
|
|
8746
|
+
Fail: true
|
|
8747
|
+
});
|
|
8748
|
+
}
|
|
8749
|
+
},
|
|
8750
|
+
onNavigatePopupNo: function() {
|
|
8751
|
+
store2.updateDialog(`pageNamepopup`);
|
|
8687
8752
|
}
|
|
8688
8753
|
};
|
|
8689
8754
|
};
|
|
@@ -8834,18 +8899,18 @@ const EventSchema = {
|
|
|
8834
8899
|
eventType: {
|
|
8835
8900
|
type: "string",
|
|
8836
8901
|
oneOf: [
|
|
8837
|
-
{ title: "Click
|
|
8838
|
-
{ title: "Load
|
|
8839
|
-
{ title: "Change
|
|
8840
|
-
{ title: "Mount
|
|
8902
|
+
{ title: "Click", const: "onClick" },
|
|
8903
|
+
{ title: "Load", const: "onLoad" },
|
|
8904
|
+
{ title: "Change", const: "onChange" },
|
|
8905
|
+
{ title: "Mount", const: "onMount" },
|
|
8841
8906
|
{ title: "Success", const: "Success" },
|
|
8842
|
-
{ title: "
|
|
8843
|
-
{ title: "Cell
|
|
8844
|
-
{ title: "
|
|
8845
|
-
{ title: "Back
|
|
8846
|
-
{ title: "Next
|
|
8847
|
-
{ title: "
|
|
8848
|
-
{ title: "
|
|
8907
|
+
{ title: "Start", const: "onStart" },
|
|
8908
|
+
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8909
|
+
{ title: "Upload", const: "onUpload" },
|
|
8910
|
+
{ title: "Back", const: "onBack" },
|
|
8911
|
+
{ title: "Next", const: "onNext" },
|
|
8912
|
+
{ title: "Row Movement", const: "onRowMovement" },
|
|
8913
|
+
{ title: "Download", const: "onDownload" },
|
|
8849
8914
|
{ title: "Fail", const: "Fail" }
|
|
8850
8915
|
]
|
|
8851
8916
|
},
|
|
@@ -8853,7 +8918,7 @@ const EventSchema = {
|
|
|
8853
8918
|
type: "string",
|
|
8854
8919
|
oneOf: [
|
|
8855
8920
|
{ title: "Custom", const: "custom" },
|
|
8856
|
-
{ title: "
|
|
8921
|
+
{ title: "API", const: "api" },
|
|
8857
8922
|
{ title: "Inbuilt Function", const: "inBuiltFunction" },
|
|
8858
8923
|
{ title: "Refresh", const: "refresh" }
|
|
8859
8924
|
]
|
|
@@ -8882,6 +8947,9 @@ const EventSchema = {
|
|
|
8882
8947
|
},
|
|
8883
8948
|
RemoveItemButton: {
|
|
8884
8949
|
disabled: true
|
|
8950
|
+
},
|
|
8951
|
+
pageName: {
|
|
8952
|
+
path: [{ label: "defaultLabel", path: "defaultPath" }]
|
|
8885
8953
|
}
|
|
8886
8954
|
},
|
|
8887
8955
|
required: ["eventType", "Handler"]
|
|
@@ -8890,39 +8958,38 @@ const EventUiSchema = (theme) => {
|
|
|
8890
8958
|
var _a;
|
|
8891
8959
|
const uiSchema = {
|
|
8892
8960
|
type: "HorizontalLayout",
|
|
8893
|
-
heading: "
|
|
8961
|
+
heading: "Page-Events",
|
|
8894
8962
|
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
8963
|
{
|
|
8915
8964
|
type: "TabLayout",
|
|
8916
8965
|
config: {
|
|
8917
8966
|
main: {
|
|
8918
|
-
tabLabels: ["Core", "Response
|
|
8919
|
-
defaultStyle: true,
|
|
8967
|
+
tabLabels: ["Core", "Response Events"],
|
|
8920
8968
|
id: "event"
|
|
8969
|
+
},
|
|
8970
|
+
style: {
|
|
8971
|
+
TabPanelStyle: {
|
|
8972
|
+
padding: 0
|
|
8973
|
+
}
|
|
8974
|
+
},
|
|
8975
|
+
TabsStyle: {
|
|
8976
|
+
marginBottom: "3px",
|
|
8977
|
+
paddingBottom: "4px",
|
|
8978
|
+
boxShadow: "0px 3px 4px #afafaf80",
|
|
8979
|
+
"& .MuiTabs-indicator": {
|
|
8980
|
+
bottom: "6px"
|
|
8981
|
+
}
|
|
8921
8982
|
}
|
|
8922
8983
|
},
|
|
8923
8984
|
elements: [
|
|
8924
8985
|
{
|
|
8925
|
-
type: "
|
|
8986
|
+
type: "WrapperLayout",
|
|
8987
|
+
config: {
|
|
8988
|
+
main: {
|
|
8989
|
+
label: " ",
|
|
8990
|
+
gap: "8px"
|
|
8991
|
+
}
|
|
8992
|
+
},
|
|
8926
8993
|
elements: [
|
|
8927
8994
|
{
|
|
8928
8995
|
type: "Control",
|
|
@@ -8931,9 +8998,9 @@ const EventUiSchema = (theme) => {
|
|
|
8931
8998
|
widget: "SelectInputField"
|
|
8932
8999
|
},
|
|
8933
9000
|
config: {
|
|
8934
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9001
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8935
9002
|
main: {
|
|
8936
|
-
label: "Event Type",
|
|
9003
|
+
label: "Event's Type",
|
|
8937
9004
|
type: "text"
|
|
8938
9005
|
}
|
|
8939
9006
|
}
|
|
@@ -8946,7 +9013,7 @@ const EventUiSchema = (theme) => {
|
|
|
8946
9013
|
widget: "EmptyBox"
|
|
8947
9014
|
},
|
|
8948
9015
|
config: {
|
|
8949
|
-
layout: { xs: 0, sm:
|
|
9016
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
8950
9017
|
}
|
|
8951
9018
|
}
|
|
8952
9019
|
]
|
|
@@ -8972,12 +9039,18 @@ const EventUiSchema = (theme) => {
|
|
|
8972
9039
|
main: {
|
|
8973
9040
|
onClick: "addEvent",
|
|
8974
9041
|
size: "small",
|
|
8975
|
-
icon: "
|
|
8976
|
-
iconLabel: "Add
|
|
9042
|
+
icon: "TableAddIcon",
|
|
9043
|
+
iconLabel: "Add",
|
|
8977
9044
|
styleDefault: true
|
|
8978
9045
|
},
|
|
8979
9046
|
style: {
|
|
8980
|
-
mt: "6px"
|
|
9047
|
+
mt: "6px",
|
|
9048
|
+
color: "inherit",
|
|
9049
|
+
fill: "inherit",
|
|
9050
|
+
"&:hover": {
|
|
9051
|
+
color: "inherit",
|
|
9052
|
+
fill: "inherit"
|
|
9053
|
+
}
|
|
8981
9054
|
}
|
|
8982
9055
|
}
|
|
8983
9056
|
}
|
|
@@ -8993,12 +9066,18 @@ const EventUiSchema = (theme) => {
|
|
|
8993
9066
|
main: {
|
|
8994
9067
|
onClick: "copyPasteElement",
|
|
8995
9068
|
size: "small",
|
|
8996
|
-
icon: "
|
|
9069
|
+
icon: "TablePaste",
|
|
8997
9070
|
iconLabel: "Paste",
|
|
8998
9071
|
styleDefault: true
|
|
8999
9072
|
},
|
|
9000
9073
|
style: {
|
|
9001
|
-
mt: "6px"
|
|
9074
|
+
mt: "6px",
|
|
9075
|
+
color: "inherit",
|
|
9076
|
+
fill: "inherit",
|
|
9077
|
+
"&:hover": {
|
|
9078
|
+
color: "inherit",
|
|
9079
|
+
fill: "inherit"
|
|
9080
|
+
}
|
|
9002
9081
|
}
|
|
9003
9082
|
}
|
|
9004
9083
|
}
|
|
@@ -9013,15 +9092,21 @@ const EventUiSchema = (theme) => {
|
|
|
9013
9092
|
elements: [
|
|
9014
9093
|
{
|
|
9015
9094
|
accessorKey: "eventType",
|
|
9016
|
-
header: "Event Type"
|
|
9095
|
+
header: "Event's Type",
|
|
9096
|
+
size: 300,
|
|
9097
|
+
type: "string"
|
|
9017
9098
|
},
|
|
9018
9099
|
{
|
|
9019
9100
|
accessorKey: "Handler",
|
|
9020
|
-
header: "Handler"
|
|
9101
|
+
header: "Handler",
|
|
9102
|
+
size: 200,
|
|
9103
|
+
type: "string"
|
|
9021
9104
|
},
|
|
9022
9105
|
{
|
|
9023
9106
|
accessorKey: "Edit_Approve_Records",
|
|
9024
|
-
header: "Edit
|
|
9107
|
+
header: "Edit",
|
|
9108
|
+
type: "action",
|
|
9109
|
+
size: 150,
|
|
9025
9110
|
widget: {
|
|
9026
9111
|
type: "Control",
|
|
9027
9112
|
scope: "#/properties/Edit_Records",
|
|
@@ -9030,14 +9115,16 @@ const EventUiSchema = (theme) => {
|
|
|
9030
9115
|
},
|
|
9031
9116
|
config: {
|
|
9032
9117
|
main: {
|
|
9033
|
-
color: "info",
|
|
9034
9118
|
size: "small",
|
|
9035
|
-
icon: "
|
|
9119
|
+
icon: "TableEditIcon",
|
|
9036
9120
|
tooltipMessage: "Edit This Record",
|
|
9037
9121
|
onClick: "editEvent"
|
|
9038
9122
|
},
|
|
9039
9123
|
style: {
|
|
9040
|
-
|
|
9124
|
+
fill: theme.palette.primary.main,
|
|
9125
|
+
"& :hover": {
|
|
9126
|
+
fill: theme.palette.primary.dark
|
|
9127
|
+
}
|
|
9041
9128
|
}
|
|
9042
9129
|
}
|
|
9043
9130
|
}
|
|
@@ -9045,6 +9132,8 @@ const EventUiSchema = (theme) => {
|
|
|
9045
9132
|
{
|
|
9046
9133
|
accessorKey: "Reject_Records",
|
|
9047
9134
|
header: "Delete",
|
|
9135
|
+
type: "action",
|
|
9136
|
+
size: 150,
|
|
9048
9137
|
widget: {
|
|
9049
9138
|
type: "Control",
|
|
9050
9139
|
scope: "#/properties/RejectButton",
|
|
@@ -9053,10 +9142,15 @@ const EventUiSchema = (theme) => {
|
|
|
9053
9142
|
},
|
|
9054
9143
|
config: {
|
|
9055
9144
|
main: {
|
|
9056
|
-
icon: "
|
|
9057
|
-
color: "error",
|
|
9145
|
+
icon: "Bin",
|
|
9058
9146
|
tooltipMessage: "Reject This Record",
|
|
9059
9147
|
onClick: "deletePopUpEvent"
|
|
9148
|
+
},
|
|
9149
|
+
style: {
|
|
9150
|
+
fill: theme.palette.primary.main,
|
|
9151
|
+
"& :hover": {
|
|
9152
|
+
fill: theme.palette.primary.dark
|
|
9153
|
+
}
|
|
9060
9154
|
}
|
|
9061
9155
|
}
|
|
9062
9156
|
}
|
|
@@ -9064,7 +9158,8 @@ const EventUiSchema = (theme) => {
|
|
|
9064
9158
|
{
|
|
9065
9159
|
header: "Copy",
|
|
9066
9160
|
field: "Copy_Event",
|
|
9067
|
-
|
|
9161
|
+
type: "action",
|
|
9162
|
+
size: 150,
|
|
9068
9163
|
widget: {
|
|
9069
9164
|
type: "Control",
|
|
9070
9165
|
scope: "#/properties/Copy_Event",
|
|
@@ -9085,103 +9180,59 @@ const EventUiSchema = (theme) => {
|
|
|
9085
9180
|
]
|
|
9086
9181
|
},
|
|
9087
9182
|
{
|
|
9088
|
-
type: "
|
|
9183
|
+
type: "WrapperLayout",
|
|
9089
9184
|
config: {
|
|
9090
|
-
|
|
9185
|
+
main: {
|
|
9186
|
+
gap: "8px"
|
|
9187
|
+
}
|
|
9091
9188
|
},
|
|
9092
9189
|
elements: [
|
|
9093
9190
|
{
|
|
9094
9191
|
type: "Control",
|
|
9095
|
-
scope: "#/properties/
|
|
9192
|
+
scope: "#/properties/btn",
|
|
9096
9193
|
options: {
|
|
9097
|
-
widget: "
|
|
9194
|
+
widget: "Button"
|
|
9098
9195
|
},
|
|
9099
9196
|
config: {
|
|
9100
|
-
layout: { xs:
|
|
9197
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
9101
9198
|
main: {
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
style: {
|
|
9108
|
-
marginLeft: "-10px"
|
|
9199
|
+
name: "Ok",
|
|
9200
|
+
variant: "contained",
|
|
9201
|
+
type: "text",
|
|
9202
|
+
onClick: "okHandler",
|
|
9203
|
+
size: "medium"
|
|
9109
9204
|
}
|
|
9110
9205
|
}
|
|
9111
9206
|
},
|
|
9112
9207
|
{
|
|
9113
9208
|
type: "Control",
|
|
9114
|
-
scope: "#/properties/
|
|
9209
|
+
scope: "#/properties/btnSubmit",
|
|
9115
9210
|
options: {
|
|
9116
|
-
widget: "
|
|
9211
|
+
widget: "Button"
|
|
9117
9212
|
},
|
|
9118
9213
|
config: {
|
|
9119
|
-
layout: { xs:
|
|
9214
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
9120
9215
|
main: {
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
fontSize: "12px",
|
|
9127
|
-
marginTop: "4px"
|
|
9216
|
+
name: "Save & Exit",
|
|
9217
|
+
variant: "contained",
|
|
9218
|
+
type: "text",
|
|
9219
|
+
onClick: "saveHandler",
|
|
9220
|
+
size: "medium"
|
|
9128
9221
|
}
|
|
9129
9222
|
}
|
|
9130
9223
|
},
|
|
9131
9224
|
{
|
|
9132
9225
|
type: "Control",
|
|
9133
9226
|
scope: "#/properties/EmptyBox",
|
|
9227
|
+
config: {
|
|
9228
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
9229
|
+
},
|
|
9134
9230
|
options: {
|
|
9135
9231
|
widget: "EmptyBox"
|
|
9136
|
-
},
|
|
9137
|
-
config: {
|
|
9138
|
-
layout: { xs: 1, sm: 5 }
|
|
9139
9232
|
}
|
|
9140
9233
|
}
|
|
9141
9234
|
]
|
|
9142
9235
|
},
|
|
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
9236
|
{
|
|
9186
9237
|
type: "Control",
|
|
9187
9238
|
scope: "#/properties/popUpEvent",
|
|
@@ -9208,17 +9259,19 @@ const EventUiSchema = (theme) => {
|
|
|
9208
9259
|
widget: "Box"
|
|
9209
9260
|
},
|
|
9210
9261
|
config: {
|
|
9211
|
-
layout:
|
|
9262
|
+
layout: 11,
|
|
9212
9263
|
main: {
|
|
9213
|
-
heading: "Are you sure you want to delete ?"
|
|
9264
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
9214
9265
|
},
|
|
9215
9266
|
style: {
|
|
9216
|
-
marginTop: "-20px",
|
|
9217
9267
|
fontSize: "20px",
|
|
9218
9268
|
"&.MuiTypography-root": {
|
|
9219
|
-
padding: "
|
|
9269
|
+
padding: "0px 20px",
|
|
9220
9270
|
textAlign: "center",
|
|
9221
|
-
lineHeight: "1"
|
|
9271
|
+
lineHeight: "1.2",
|
|
9272
|
+
fontWeight: "normal",
|
|
9273
|
+
fontSize: "18px",
|
|
9274
|
+
marginBottom: theme.spacing(5)
|
|
9222
9275
|
}
|
|
9223
9276
|
}
|
|
9224
9277
|
}
|
|
@@ -9226,7 +9279,7 @@ const EventUiSchema = (theme) => {
|
|
|
9226
9279
|
{
|
|
9227
9280
|
type: "WrapperLayout",
|
|
9228
9281
|
config: {
|
|
9229
|
-
layout:
|
|
9282
|
+
layout: 11,
|
|
9230
9283
|
main: {}
|
|
9231
9284
|
},
|
|
9232
9285
|
elements: [
|
|
@@ -9242,13 +9295,14 @@ const EventUiSchema = (theme) => {
|
|
|
9242
9295
|
name: "No",
|
|
9243
9296
|
startIcon: "ApproveIcon",
|
|
9244
9297
|
variant: "contained",
|
|
9245
|
-
color: "info",
|
|
9246
9298
|
type: "text",
|
|
9247
9299
|
onClick: "deletePopUpEvent",
|
|
9248
9300
|
size: "large"
|
|
9249
9301
|
},
|
|
9250
9302
|
style: {
|
|
9251
9303
|
position: "absolute",
|
|
9304
|
+
padding: "8px 0px",
|
|
9305
|
+
fontSize: "16px",
|
|
9252
9306
|
bottom: 0,
|
|
9253
9307
|
left: 0,
|
|
9254
9308
|
width: "50%",
|
|
@@ -9276,7 +9330,6 @@ const EventUiSchema = (theme) => {
|
|
|
9276
9330
|
layout: 6,
|
|
9277
9331
|
main: {
|
|
9278
9332
|
name: "Yes",
|
|
9279
|
-
startIcon: "ApproveIcon",
|
|
9280
9333
|
variant: "contained",
|
|
9281
9334
|
color: "error",
|
|
9282
9335
|
type: "text",
|
|
@@ -9285,6 +9338,8 @@ const EventUiSchema = (theme) => {
|
|
|
9285
9338
|
},
|
|
9286
9339
|
style: {
|
|
9287
9340
|
position: "absolute",
|
|
9341
|
+
padding: "8px 0px",
|
|
9342
|
+
fontSize: "16px",
|
|
9288
9343
|
bottom: 0,
|
|
9289
9344
|
right: 0,
|
|
9290
9345
|
width: "50%",
|
|
@@ -9305,6 +9360,30 @@ const EventUiSchema = (theme) => {
|
|
|
9305
9360
|
}
|
|
9306
9361
|
]
|
|
9307
9362
|
},
|
|
9363
|
+
{
|
|
9364
|
+
type: "Control",
|
|
9365
|
+
scope: "#/properties/pageName",
|
|
9366
|
+
options: {
|
|
9367
|
+
widget: "Breadcrumb"
|
|
9368
|
+
},
|
|
9369
|
+
config: {
|
|
9370
|
+
layout: 12,
|
|
9371
|
+
main: {
|
|
9372
|
+
onNavigatePopupNo: "onNavigatePopupNo",
|
|
9373
|
+
onNavigatePopupYes: "onNavigatePopupYes"
|
|
9374
|
+
},
|
|
9375
|
+
style: {
|
|
9376
|
+
paddingLeft: theme.spacing(3),
|
|
9377
|
+
color: theme.palette.grey[600],
|
|
9378
|
+
fontSize: "10px",
|
|
9379
|
+
position: "fixed",
|
|
9380
|
+
bottom: "24px",
|
|
9381
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
9382
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
9383
|
+
backgroundColor: theme.palette.background.default
|
|
9384
|
+
}
|
|
9385
|
+
}
|
|
9386
|
+
},
|
|
9308
9387
|
{
|
|
9309
9388
|
type: "Control",
|
|
9310
9389
|
scope: "#/properties/notify",
|
|
@@ -9322,8 +9401,7 @@ const EventUiSchema = (theme) => {
|
|
|
9322
9401
|
style: {
|
|
9323
9402
|
flexDirection: "row",
|
|
9324
9403
|
position: "absolute",
|
|
9325
|
-
bottom:
|
|
9326
|
-
marginBottom: "-8px",
|
|
9404
|
+
bottom: 10,
|
|
9327
9405
|
height: "fit-content",
|
|
9328
9406
|
overflow: "hidden",
|
|
9329
9407
|
zIndex: 1e3,
|
|
@@ -9343,75 +9421,16 @@ const EventUiSchema = (theme) => {
|
|
|
9343
9421
|
},
|
|
9344
9422
|
style: {
|
|
9345
9423
|
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
9346
|
-
fontSize: "
|
|
9424
|
+
fontSize: "11px",
|
|
9347
9425
|
textAlign: "center",
|
|
9348
|
-
lineHeight:
|
|
9426
|
+
lineHeight: 0,
|
|
9349
9427
|
width: "fit-content",
|
|
9350
9428
|
left: "50%",
|
|
9351
9429
|
position: "relative",
|
|
9352
|
-
margin:
|
|
9430
|
+
margin: "revert",
|
|
9353
9431
|
flexGrow: 1,
|
|
9354
9432
|
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
|
-
}
|
|
9433
|
+
transform: "translate(-50%, 0%)"
|
|
9415
9434
|
}
|
|
9416
9435
|
}
|
|
9417
9436
|
}
|
|
@@ -9431,7 +9450,7 @@ const APISection = {
|
|
|
9431
9450
|
widget: "SelectInputField"
|
|
9432
9451
|
},
|
|
9433
9452
|
config: {
|
|
9434
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9453
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9435
9454
|
main: {
|
|
9436
9455
|
label: "Method",
|
|
9437
9456
|
type: "text"
|
|
@@ -9445,7 +9464,7 @@ const APISection = {
|
|
|
9445
9464
|
widget: "InputField"
|
|
9446
9465
|
},
|
|
9447
9466
|
config: {
|
|
9448
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9467
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9449
9468
|
main: {
|
|
9450
9469
|
label: "Path",
|
|
9451
9470
|
type: "text",
|
|
@@ -9461,116 +9480,132 @@ const APISection = {
|
|
|
9461
9480
|
widget: "EmptyBox"
|
|
9462
9481
|
},
|
|
9463
9482
|
config: {
|
|
9464
|
-
layout: { xs: 0, sm: 0, md: 4, lg:
|
|
9483
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
9465
9484
|
}
|
|
9466
9485
|
},
|
|
9467
9486
|
{
|
|
9468
9487
|
type: "Control",
|
|
9469
|
-
scope: "#/properties/
|
|
9488
|
+
scope: "#/properties/headers",
|
|
9470
9489
|
options: {
|
|
9471
|
-
widget: "
|
|
9490
|
+
widget: "Array"
|
|
9472
9491
|
},
|
|
9473
9492
|
config: {
|
|
9474
|
-
layout:
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
scope: "#/properties/key",
|
|
9489
|
-
options: {
|
|
9490
|
-
widget: "InputField"
|
|
9491
|
-
},
|
|
9492
|
-
config: {
|
|
9493
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9494
|
-
main: {
|
|
9495
|
-
label: "Key"
|
|
9496
|
-
}
|
|
9497
|
-
}
|
|
9498
|
-
},
|
|
9499
|
-
{
|
|
9500
|
-
type: "Control",
|
|
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
|
-
}
|
|
9521
|
-
}
|
|
9522
|
-
]
|
|
9493
|
+
layout: 12,
|
|
9494
|
+
main: {
|
|
9495
|
+
label: "Headers",
|
|
9496
|
+
childElementLabel: "Headers"
|
|
9497
|
+
},
|
|
9498
|
+
style: {
|
|
9499
|
+
marginLeft: "-24px",
|
|
9500
|
+
marginBottom: "24px !important",
|
|
9501
|
+
labelStyle: {
|
|
9502
|
+
marginLeft: "24px"
|
|
9503
|
+
},
|
|
9504
|
+
detailsStyle: {
|
|
9505
|
+
marginLeft: "24px"
|
|
9506
|
+
}
|
|
9523
9507
|
}
|
|
9524
|
-
}
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9549
|
-
type: "Control",
|
|
9550
|
-
scope: "#/properties/value",
|
|
9551
|
-
options: {
|
|
9552
|
-
widget: "InputField"
|
|
9553
|
-
},
|
|
9554
|
-
config: {
|
|
9555
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9556
|
-
main: {
|
|
9557
|
-
label: "Value"
|
|
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
|
-
}
|
|
9508
|
+
},
|
|
9509
|
+
elements: [
|
|
9510
|
+
{
|
|
9511
|
+
type: "Control",
|
|
9512
|
+
scope: "#/properties/key",
|
|
9513
|
+
options: {
|
|
9514
|
+
widget: "InputField"
|
|
9515
|
+
},
|
|
9516
|
+
config: {
|
|
9517
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9518
|
+
main: {
|
|
9519
|
+
label: "Key"
|
|
9520
|
+
}
|
|
9521
|
+
}
|
|
9522
|
+
},
|
|
9523
|
+
{
|
|
9524
|
+
type: "Control",
|
|
9525
|
+
scope: "#/properties/value",
|
|
9526
|
+
options: {
|
|
9527
|
+
widget: "InputField"
|
|
9528
|
+
},
|
|
9529
|
+
config: {
|
|
9530
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9531
|
+
main: {
|
|
9532
|
+
label: "Value"
|
|
9570
9533
|
}
|
|
9571
|
-
|
|
9534
|
+
}
|
|
9535
|
+
},
|
|
9536
|
+
{
|
|
9537
|
+
type: "Control",
|
|
9538
|
+
scope: "#/properties/emptyBox",
|
|
9539
|
+
options: {
|
|
9540
|
+
widget: "EmptyBox"
|
|
9541
|
+
},
|
|
9542
|
+
config: {
|
|
9543
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9544
|
+
}
|
|
9572
9545
|
}
|
|
9573
|
-
|
|
9546
|
+
]
|
|
9547
|
+
},
|
|
9548
|
+
{
|
|
9549
|
+
type: "Control",
|
|
9550
|
+
scope: "#/properties/body",
|
|
9551
|
+
options: {
|
|
9552
|
+
widget: "Array"
|
|
9553
|
+
},
|
|
9554
|
+
config: {
|
|
9555
|
+
layout: 12,
|
|
9556
|
+
main: {
|
|
9557
|
+
label: "Body",
|
|
9558
|
+
childElementLabel: "Body"
|
|
9559
|
+
},
|
|
9560
|
+
style: {
|
|
9561
|
+
marginLeft: "-24px",
|
|
9562
|
+
marginBottom: "24px !important",
|
|
9563
|
+
labelStyle: {
|
|
9564
|
+
marginLeft: "24px"
|
|
9565
|
+
},
|
|
9566
|
+
detailsStyle: {
|
|
9567
|
+
marginLeft: "24px"
|
|
9568
|
+
}
|
|
9569
|
+
}
|
|
9570
|
+
},
|
|
9571
|
+
elements: [
|
|
9572
|
+
{
|
|
9573
|
+
type: "Control",
|
|
9574
|
+
scope: "#/properties/key",
|
|
9575
|
+
options: {
|
|
9576
|
+
widget: "InputField"
|
|
9577
|
+
},
|
|
9578
|
+
config: {
|
|
9579
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9580
|
+
main: {
|
|
9581
|
+
label: "Key"
|
|
9582
|
+
}
|
|
9583
|
+
}
|
|
9584
|
+
},
|
|
9585
|
+
{
|
|
9586
|
+
type: "Control",
|
|
9587
|
+
scope: "#/properties/value",
|
|
9588
|
+
options: {
|
|
9589
|
+
widget: "InputField"
|
|
9590
|
+
},
|
|
9591
|
+
config: {
|
|
9592
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9593
|
+
main: {
|
|
9594
|
+
label: "Value"
|
|
9595
|
+
}
|
|
9596
|
+
}
|
|
9597
|
+
},
|
|
9598
|
+
{
|
|
9599
|
+
type: "Control",
|
|
9600
|
+
scope: "#/properties/emptyBox",
|
|
9601
|
+
options: {
|
|
9602
|
+
widget: "EmptyBox"
|
|
9603
|
+
},
|
|
9604
|
+
config: {
|
|
9605
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9606
|
+
}
|
|
9607
|
+
}
|
|
9608
|
+
]
|
|
9574
9609
|
},
|
|
9575
9610
|
getTextArea("apiBody", "Transformer", true, 12)
|
|
9576
9611
|
]
|
|
@@ -9581,116 +9616,134 @@ const refreshSectionUiSchema = {
|
|
|
9581
9616
|
{
|
|
9582
9617
|
type: "Control",
|
|
9583
9618
|
scope: "#/properties/refreshElements",
|
|
9584
|
-
layout: 11.5,
|
|
9585
9619
|
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
|
-
}
|
|
9620
|
+
widget: "Array"
|
|
9621
|
+
},
|
|
9622
|
+
config: {
|
|
9623
|
+
layout: 12,
|
|
9624
|
+
main: {
|
|
9625
|
+
label: "Refresh Elements",
|
|
9626
|
+
childElementLabel: "Refresh Elements"
|
|
9627
|
+
},
|
|
9628
|
+
style: {
|
|
9629
|
+
marginLeft: "-24px",
|
|
9630
|
+
marginBottom: "24px !important",
|
|
9631
|
+
labelStyle: {
|
|
9632
|
+
marginLeft: "24px"
|
|
9633
|
+
},
|
|
9634
|
+
detailsStyle: {
|
|
9635
|
+
marginLeft: "24px"
|
|
9636
|
+
}
|
|
9637
|
+
}
|
|
9638
|
+
},
|
|
9639
|
+
elements: [
|
|
9640
|
+
{
|
|
9641
|
+
type: "Control",
|
|
9642
|
+
scope: "#/properties/value",
|
|
9643
|
+
options: {
|
|
9644
|
+
widget: "InputField"
|
|
9645
|
+
},
|
|
9646
|
+
config: {
|
|
9647
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9648
|
+
main: {
|
|
9649
|
+
label: "Value"
|
|
9623
9650
|
}
|
|
9624
|
-
|
|
9651
|
+
}
|
|
9652
|
+
},
|
|
9653
|
+
{
|
|
9654
|
+
type: "Control",
|
|
9655
|
+
scope: "#/properties/emptyBox",
|
|
9656
|
+
options: {
|
|
9657
|
+
widget: "EmptyBox"
|
|
9658
|
+
},
|
|
9659
|
+
config: {
|
|
9660
|
+
layout: { xs: 6, sm: 6, md: 8, lg: 8 },
|
|
9661
|
+
main: {}
|
|
9662
|
+
}
|
|
9625
9663
|
}
|
|
9626
|
-
|
|
9664
|
+
]
|
|
9627
9665
|
}
|
|
9628
9666
|
]
|
|
9629
9667
|
};
|
|
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
9668
|
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
9643
9669
|
return {
|
|
9644
9670
|
setPage: async function() {
|
|
9645
9671
|
const formdata = await this.getFormData();
|
|
9646
9672
|
store2.setFormdata(formdata);
|
|
9647
9673
|
const schema2 = await this.getSchema();
|
|
9674
|
+
console.log("SettingSchema>>", schema2);
|
|
9648
9675
|
store2.setSchema(schema2);
|
|
9649
9676
|
this.refreshPage(formdata.Handler, store2);
|
|
9650
9677
|
},
|
|
9651
9678
|
refreshPage: (handlerType, store22) => {
|
|
9679
|
+
var _a, _b, _c;
|
|
9652
9680
|
const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
|
|
9653
9681
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9654
9682
|
if (handlerType) {
|
|
9655
9683
|
if (handlerType === "custom") {
|
|
9656
|
-
uiSchema.elements[
|
|
9657
|
-
|
|
9684
|
+
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
|
|
9685
|
+
"isSync",
|
|
9686
|
+
"Run in Sync",
|
|
9687
|
+
["Yes", "No"]
|
|
9688
|
+
);
|
|
9689
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9658
9690
|
type: "Control",
|
|
9659
9691
|
scope: "#/properties/emptyBox",
|
|
9660
9692
|
options: {
|
|
9661
9693
|
widget: "EmptyBox"
|
|
9662
9694
|
},
|
|
9663
9695
|
config: {
|
|
9664
|
-
layout: { xs:
|
|
9696
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9665
9697
|
main: {},
|
|
9666
9698
|
style: {}
|
|
9667
9699
|
}
|
|
9668
9700
|
};
|
|
9669
|
-
uiSchema.elements[
|
|
9701
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9702
|
+
"eventCode",
|
|
9703
|
+
"Write Custom Code",
|
|
9704
|
+
false
|
|
9705
|
+
);
|
|
9670
9706
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
9671
9707
|
} else if (handlerType === "api") {
|
|
9672
|
-
uiSchema.elements[
|
|
9673
|
-
|
|
9708
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9709
|
+
xs: 0,
|
|
9710
|
+
sm: 0,
|
|
9711
|
+
md: 4,
|
|
9712
|
+
lg: 6
|
|
9713
|
+
});
|
|
9714
|
+
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
9674
9715
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
9675
9716
|
} else if (handlerType === "inBuiltFunction") {
|
|
9676
|
-
uiSchema.elements[
|
|
9677
|
-
|
|
9717
|
+
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9718
|
+
"inBuiltFunctionType",
|
|
9719
|
+
"Function Name"
|
|
9720
|
+
);
|
|
9721
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9678
9722
|
type: "Control",
|
|
9679
9723
|
scope: "#/properties/emptyBox",
|
|
9680
9724
|
options: {
|
|
9681
9725
|
widget: "EmptyBox"
|
|
9682
9726
|
},
|
|
9683
9727
|
config: {
|
|
9684
|
-
layout: { xs: 6, sm: 6, md: 0, lg:
|
|
9728
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9685
9729
|
main: {},
|
|
9686
9730
|
style: {}
|
|
9687
9731
|
}
|
|
9688
9732
|
};
|
|
9689
|
-
uiSchema.elements[
|
|
9733
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9734
|
+
"funcParametersCode",
|
|
9735
|
+
"Write Custom Code for Functions Parameter",
|
|
9736
|
+
true
|
|
9737
|
+
);
|
|
9690
9738
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
9691
9739
|
} else if (handlerType === "refresh") {
|
|
9692
|
-
uiSchema.elements[
|
|
9693
|
-
|
|
9740
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9741
|
+
xs: 0,
|
|
9742
|
+
sm: 0,
|
|
9743
|
+
md: 4,
|
|
9744
|
+
lg: 6
|
|
9745
|
+
});
|
|
9746
|
+
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
9694
9747
|
schema2.properties.refreshElements.required = ["value"];
|
|
9695
9748
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
9696
9749
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|
|
@@ -9703,9 +9756,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9703
9756
|
];
|
|
9704
9757
|
}
|
|
9705
9758
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9706
|
-
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9759
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9760
|
+
uiSchema
|
|
9761
|
+
);
|
|
9707
9762
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9708
9763
|
}
|
|
9764
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9765
|
+
const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
|
|
9766
|
+
const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
|
|
9767
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9768
|
+
if (path) {
|
|
9769
|
+
const pathArrayAll = path.split(".");
|
|
9770
|
+
const arr = [];
|
|
9771
|
+
pathArrayAll.map((e, i) => {
|
|
9772
|
+
if (i === 0) {
|
|
9773
|
+
arr.push(e);
|
|
9774
|
+
return;
|
|
9775
|
+
}
|
|
9776
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9777
|
+
});
|
|
9778
|
+
arr.map((e) => {
|
|
9779
|
+
const data = _.get(config2, e);
|
|
9780
|
+
pathArray.push({
|
|
9781
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9782
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9783
|
+
});
|
|
9784
|
+
});
|
|
9785
|
+
}
|
|
9786
|
+
schema2.properties.pageName.path = pathArray;
|
|
9709
9787
|
store22.setSchema(schema2);
|
|
9710
9788
|
store22.setUiSchema(uiSchema);
|
|
9711
9789
|
},
|
|
@@ -9714,18 +9792,45 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9714
9792
|
return EventUiSchema;
|
|
9715
9793
|
},
|
|
9716
9794
|
getSchema: () => {
|
|
9795
|
+
var _a, _b, _c;
|
|
9717
9796
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9718
9797
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9719
9798
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9720
9799
|
}
|
|
9800
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9801
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9802
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9803
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9804
|
+
if (path) {
|
|
9805
|
+
const pathArrayAll = path.split(".");
|
|
9806
|
+
const arr = [];
|
|
9807
|
+
pathArrayAll.map((e, i) => {
|
|
9808
|
+
if (i === 0) {
|
|
9809
|
+
arr.push(e);
|
|
9810
|
+
return;
|
|
9811
|
+
}
|
|
9812
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9813
|
+
});
|
|
9814
|
+
arr.map((e) => {
|
|
9815
|
+
const data = _.get(config2, e);
|
|
9816
|
+
pathArray.push({
|
|
9817
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9818
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9819
|
+
});
|
|
9820
|
+
});
|
|
9821
|
+
}
|
|
9822
|
+
schema2.properties.pageName.path = _.cloneDeep(pathArray);
|
|
9721
9823
|
return schema2;
|
|
9722
9824
|
},
|
|
9723
9825
|
okHandler: () => okHandler(store2),
|
|
9724
|
-
saveHandler: async () => await saveHandler(store2, service2, submitHandler
|
|
9826
|
+
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
9725
9827
|
onChange: function() {
|
|
9726
9828
|
var _a, _b, _c;
|
|
9727
9829
|
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(
|
|
9830
|
+
this.refreshPage(
|
|
9831
|
+
store2.newData.Handler || store2.formdata.Handler,
|
|
9832
|
+
store2
|
|
9833
|
+
);
|
|
9729
9834
|
}
|
|
9730
9835
|
},
|
|
9731
9836
|
addEvent: function() {
|
|
@@ -9751,7 +9856,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9751
9856
|
this.setPage();
|
|
9752
9857
|
},
|
|
9753
9858
|
deleteEvent: async function() {
|
|
9754
|
-
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9859
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9860
|
+
false
|
|
9861
|
+
);
|
|
9755
9862
|
store2.updateDialog("popUpEvent");
|
|
9756
9863
|
},
|
|
9757
9864
|
backHandler: function() {
|
|
@@ -9763,10 +9870,30 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9763
9870
|
store2.updateDialog("popUpEvent");
|
|
9764
9871
|
},
|
|
9765
9872
|
copyPasteElement: function() {
|
|
9766
|
-
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9873
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9874
|
+
store2,
|
|
9875
|
+
this.setPage.bind(this)
|
|
9876
|
+
);
|
|
9767
9877
|
},
|
|
9768
9878
|
RemoveItemButton: function() {
|
|
9769
|
-
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9879
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9880
|
+
store2
|
|
9881
|
+
);
|
|
9882
|
+
},
|
|
9883
|
+
onNavigatePopupYes: function() {
|
|
9884
|
+
try {
|
|
9885
|
+
store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
|
|
9886
|
+
store2.updateDialog(`pageNamepopup`);
|
|
9887
|
+
} catch (e) {
|
|
9888
|
+
store2.updateDialog(`pageNamepopup`);
|
|
9889
|
+
store2.setNotify({
|
|
9890
|
+
FailMessage: "Couldn't navigate page",
|
|
9891
|
+
Fail: true
|
|
9892
|
+
});
|
|
9893
|
+
}
|
|
9894
|
+
},
|
|
9895
|
+
onNavigatePopupNo: function() {
|
|
9896
|
+
store2.updateDialog(`pageNamepopup`);
|
|
9770
9897
|
}
|
|
9771
9898
|
};
|
|
9772
9899
|
};
|
|
@@ -9937,37 +10064,42 @@ function executeCustomHandler(params) {
|
|
|
9937
10064
|
}
|
|
9938
10065
|
}
|
|
9939
10066
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
...pre
|
|
9947
|
-
|
|
9948
|
-
...
|
|
9949
|
-
|
|
10067
|
+
var _a, _b, _c;
|
|
10068
|
+
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10069
|
+
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10070
|
+
store2.setSchema((pre) => {
|
|
10071
|
+
var _a2;
|
|
10072
|
+
return {
|
|
10073
|
+
...pre,
|
|
10074
|
+
properties: {
|
|
10075
|
+
...pre.properties,
|
|
10076
|
+
[componentName]: {
|
|
10077
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
10078
|
+
oneOf: handlerResponse.data
|
|
10079
|
+
}
|
|
9950
10080
|
}
|
|
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
|
-
|
|
10081
|
+
};
|
|
10082
|
+
});
|
|
10083
|
+
}
|
|
10084
|
+
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10085
|
+
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10086
|
+
store2.setSchema((pre) => {
|
|
10087
|
+
var _a2;
|
|
10088
|
+
return {
|
|
10089
|
+
...pre,
|
|
10090
|
+
properties: {
|
|
10091
|
+
...pre.properties,
|
|
10092
|
+
[componentName]: {
|
|
10093
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
10094
|
+
type: "array",
|
|
10095
|
+
items: {
|
|
10096
|
+
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
10097
|
+
}
|
|
9966
10098
|
}
|
|
9967
10099
|
}
|
|
9968
|
-
}
|
|
9969
|
-
};
|
|
9970
|
-
}
|
|
10100
|
+
};
|
|
10101
|
+
});
|
|
10102
|
+
}
|
|
9971
10103
|
} else if (eventConfig.type === "page") {
|
|
9972
10104
|
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
9973
10105
|
store2.newData = {
|
|
@@ -9978,6 +10110,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9978
10110
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
9979
10111
|
});
|
|
9980
10112
|
}
|
|
10113
|
+
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10114
|
+
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10115
|
+
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
10116
|
+
formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
|
|
10117
|
+
store2.setFormdata((pre) => {
|
|
10118
|
+
return { ...pre, ...formDataHolder };
|
|
10119
|
+
});
|
|
10120
|
+
}
|
|
9981
10121
|
} else {
|
|
9982
10122
|
if (handlerResponse) {
|
|
9983
10123
|
formDataHolder[componentName] = handlerResponse.data;
|
|
@@ -10113,13 +10253,7 @@ const extractEvents = (eventConfig) => {
|
|
|
10113
10253
|
return eventGroups;
|
|
10114
10254
|
};
|
|
10115
10255
|
var service = (funcParams) => {
|
|
10116
|
-
eventGroups = {};
|
|
10117
10256
|
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
10257
|
let executeEventsParameters = {
|
|
10124
10258
|
config: {},
|
|
10125
10259
|
componentName: "",
|
|
@@ -10135,19 +10269,12 @@ var service = (funcParams) => {
|
|
|
10135
10269
|
return {
|
|
10136
10270
|
setPage: async function() {
|
|
10137
10271
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
10272
|
+
funcParams.store.setAdditionalErrors([]);
|
|
10138
10273
|
funcParams.store.setFormdata({});
|
|
10274
|
+
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
10139
10275
|
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
|
-
}
|
|
10276
|
+
eventGroups = {};
|
|
10277
|
+
pageData = await funcParams.pageDataProvider();
|
|
10151
10278
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10152
10279
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10153
10280
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
@@ -10185,7 +10312,7 @@ var service = (funcParams) => {
|
|
|
10185
10312
|
},
|
|
10186
10313
|
style: {
|
|
10187
10314
|
color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
|
|
10188
|
-
fontSize: "
|
|
10315
|
+
fontSize: "11px",
|
|
10189
10316
|
textAlign: "center",
|
|
10190
10317
|
lineHeight: 2,
|
|
10191
10318
|
width: "fit-content",
|
|
@@ -10222,7 +10349,7 @@ var service = (funcParams) => {
|
|
|
10222
10349
|
":hover": {
|
|
10223
10350
|
fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
|
|
10224
10351
|
},
|
|
10225
|
-
marginRight: "
|
|
10352
|
+
marginRight: "20px"
|
|
10226
10353
|
}
|
|
10227
10354
|
}
|
|
10228
10355
|
},
|
|
@@ -10244,7 +10371,7 @@ var service = (funcParams) => {
|
|
|
10244
10371
|
height: 0,
|
|
10245
10372
|
width: "fit-content",
|
|
10246
10373
|
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
|
|
10247
|
-
fontSize: "
|
|
10374
|
+
fontSize: "12px",
|
|
10248
10375
|
cursor: "pointer",
|
|
10249
10376
|
marginLeft: "2px",
|
|
10250
10377
|
top: 3,
|
|
@@ -10261,7 +10388,9 @@ var service = (funcParams) => {
|
|
|
10261
10388
|
}
|
|
10262
10389
|
);
|
|
10263
10390
|
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
10264
|
-
|
|
10391
|
+
const newEventGroups = extractEvents(config2);
|
|
10392
|
+
console.log("newEventGroups", newEventGroups, eventGroups);
|
|
10393
|
+
eventGroups = newEventGroups;
|
|
10265
10394
|
executeEventsParameters = {
|
|
10266
10395
|
config: {},
|
|
10267
10396
|
componentName: "",
|
|
@@ -10271,7 +10400,7 @@ var service = (funcParams) => {
|
|
|
10271
10400
|
service: funcParams.service,
|
|
10272
10401
|
functionsProvider: funcParams.functionsProvider,
|
|
10273
10402
|
serviceHolder: this,
|
|
10274
|
-
eventGroups,
|
|
10403
|
+
eventGroups: newEventGroups,
|
|
10275
10404
|
formDataHolder
|
|
10276
10405
|
};
|
|
10277
10406
|
await executeRefreshHandler({
|
|
@@ -10282,8 +10411,8 @@ var service = (funcParams) => {
|
|
|
10282
10411
|
userValue: funcParams.userValue,
|
|
10283
10412
|
service: funcParams.service,
|
|
10284
10413
|
serviceHolder: this,
|
|
10285
|
-
eventGroups,
|
|
10286
|
-
formDataHolder
|
|
10414
|
+
eventGroups: newEventGroups,
|
|
10415
|
+
formDataHolder: {}
|
|
10287
10416
|
});
|
|
10288
10417
|
funcParams.store.setSchema(
|
|
10289
10418
|
(pre) => {
|
|
@@ -10298,11 +10427,11 @@ var service = (funcParams) => {
|
|
|
10298
10427
|
funcParams.store.setUiSchema(uiSchema);
|
|
10299
10428
|
},
|
|
10300
10429
|
onCellRenderer: (cellParams) => {
|
|
10301
|
-
var _a, _b, _c;
|
|
10430
|
+
var _a, _b, _c, _d;
|
|
10302
10431
|
if (eventGroups.onCellRenderer) {
|
|
10303
10432
|
let finalResponse = {};
|
|
10304
10433
|
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]) {
|
|
10434
|
+
for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
|
|
10306
10435
|
executeEventsParameters.store.functionParameters = cellParams;
|
|
10307
10436
|
finalResponse = executeEvents({
|
|
10308
10437
|
...executeEventsParameters,
|
|
@@ -10357,7 +10486,7 @@ var service = (funcParams) => {
|
|
|
10357
10486
|
{ key: "searchValue", value: param.serachValue },
|
|
10358
10487
|
{ key: "currentValue", value: param.currentValue }
|
|
10359
10488
|
];
|
|
10360
|
-
const response = await this.callExecuteEvents(param, apiBody);
|
|
10489
|
+
const response = await this.callExecuteEvents(param, apiBody, "onLoad");
|
|
10361
10490
|
return response == null ? void 0 : response.data;
|
|
10362
10491
|
}
|
|
10363
10492
|
},
|
|
@@ -10906,6 +11035,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
10906
11035
|
if (config2.style) {
|
|
10907
11036
|
inputField.config.style = JSON.parse(config2.style);
|
|
10908
11037
|
}
|
|
11038
|
+
if (config2.multiline) {
|
|
11039
|
+
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
11040
|
+
}
|
|
10909
11041
|
if (config2.InputFormatingAndMasking) {
|
|
10910
11042
|
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10911
11043
|
}
|
|
@@ -11018,6 +11150,7 @@ var Table = {
|
|
|
11018
11150
|
main: {
|
|
11019
11151
|
onMount: "onMount",
|
|
11020
11152
|
enableExpandAll: true,
|
|
11153
|
+
headerIcons: {},
|
|
11021
11154
|
allRowData: [],
|
|
11022
11155
|
downloadAllData: false,
|
|
11023
11156
|
columns: {
|
|
@@ -11199,7 +11332,8 @@ function Card(theme) {
|
|
|
11199
11332
|
wrapperStyle: {
|
|
11200
11333
|
position: "relative",
|
|
11201
11334
|
top: "50%",
|
|
11202
|
-
transform: "translateY(-50%)"
|
|
11335
|
+
transform: "translateY(-50%)",
|
|
11336
|
+
marginBottom: 0
|
|
11203
11337
|
},
|
|
11204
11338
|
componentsBoxStyle: {
|
|
11205
11339
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
@@ -11238,7 +11372,8 @@ function Card(theme) {
|
|
|
11238
11372
|
gap: 0
|
|
11239
11373
|
},
|
|
11240
11374
|
wrapperStyle: {
|
|
11241
|
-
background: "transparent"
|
|
11375
|
+
background: "transparent",
|
|
11376
|
+
marginBottom: 0
|
|
11242
11377
|
},
|
|
11243
11378
|
componentsBoxStyle: {
|
|
11244
11379
|
flexDirection: "column",
|
|
@@ -11259,7 +11394,8 @@ function Card(theme) {
|
|
|
11259
11394
|
gap: 0
|
|
11260
11395
|
},
|
|
11261
11396
|
wrapperStyle: {
|
|
11262
|
-
background: "transparent"
|
|
11397
|
+
background: "transparent",
|
|
11398
|
+
marginBottom: 0
|
|
11263
11399
|
},
|
|
11264
11400
|
componentsBoxStyle: {
|
|
11265
11401
|
flexDirection: "row",
|
|
@@ -11292,6 +11428,7 @@ function Card(theme) {
|
|
|
11292
11428
|
justifyContent: "flex-start",
|
|
11293
11429
|
width: "auto",
|
|
11294
11430
|
margin: "-8px",
|
|
11431
|
+
marginLeft: "-24px",
|
|
11295
11432
|
height: 0
|
|
11296
11433
|
}
|
|
11297
11434
|
},
|
|
@@ -11316,7 +11453,7 @@ function Card(theme) {
|
|
|
11316
11453
|
width: "auto",
|
|
11317
11454
|
margin: "-8px",
|
|
11318
11455
|
position: "absolute",
|
|
11319
|
-
left: "
|
|
11456
|
+
left: "24px"
|
|
11320
11457
|
}
|
|
11321
11458
|
},
|
|
11322
11459
|
options: {
|
|
@@ -11340,8 +11477,7 @@ function Card(theme) {
|
|
|
11340
11477
|
background: "inherit",
|
|
11341
11478
|
width: "calc(100%+8px)",
|
|
11342
11479
|
margin: "-8px",
|
|
11343
|
-
marginTop: "
|
|
11344
|
-
lineHeight: "1"
|
|
11480
|
+
marginTop: { xs: "16px", md: "20px" }
|
|
11345
11481
|
},
|
|
11346
11482
|
layout: 12
|
|
11347
11483
|
},
|
|
@@ -11367,6 +11503,7 @@ function Card(theme) {
|
|
|
11367
11503
|
justifyContent: "end"
|
|
11368
11504
|
},
|
|
11369
11505
|
imageStyle: {
|
|
11506
|
+
width: "unset",
|
|
11370
11507
|
fontSize: "none",
|
|
11371
11508
|
padding: "4px",
|
|
11372
11509
|
margin: "0px 0px 0px 8px",
|
|
@@ -11741,6 +11878,18 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11741
11878
|
}
|
|
11742
11879
|
return Radio;
|
|
11743
11880
|
};
|
|
11881
|
+
var emptyBox = {
|
|
11882
|
+
type: "Control",
|
|
11883
|
+
scope: "#/properties/emptyBox",
|
|
11884
|
+
options: {
|
|
11885
|
+
widget: "EmptyBox"
|
|
11886
|
+
},
|
|
11887
|
+
config: {
|
|
11888
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
11889
|
+
main: {},
|
|
11890
|
+
style: {}
|
|
11891
|
+
}
|
|
11892
|
+
};
|
|
11744
11893
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11745
11894
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11746
11895
|
if (config2.layout) {
|
|
@@ -11772,6 +11921,7 @@ const TextField = {
|
|
|
11772
11921
|
"widget": "InputField"
|
|
11773
11922
|
},
|
|
11774
11923
|
config: {
|
|
11924
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
11775
11925
|
main: {
|
|
11776
11926
|
label: "Adhaar Card",
|
|
11777
11927
|
formatStrArray: ["9", "9", "9", "9", " ", "9", "9", "9", "9", " ", "X9", "X9", "X9", "X9"],
|
|
@@ -11800,6 +11950,7 @@ const PanField = {
|
|
|
11800
11950
|
"widget": "InputField"
|
|
11801
11951
|
},
|
|
11802
11952
|
config: {
|
|
11953
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
11803
11954
|
main: {
|
|
11804
11955
|
label: "Pan Card",
|
|
11805
11956
|
placeholder: "AAAAA0000A",
|
|
@@ -12095,6 +12246,39 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12095
12246
|
}
|
|
12096
12247
|
return thought;
|
|
12097
12248
|
};
|
|
12249
|
+
const PhoneInput = {
|
|
12250
|
+
scope: "#/properties/testPhone",
|
|
12251
|
+
type: "Control",
|
|
12252
|
+
options: {
|
|
12253
|
+
widget: "PhoneInput"
|
|
12254
|
+
},
|
|
12255
|
+
config: {
|
|
12256
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
12257
|
+
main: {
|
|
12258
|
+
defaultCountry: "in",
|
|
12259
|
+
label: "Phone"
|
|
12260
|
+
}
|
|
12261
|
+
}
|
|
12262
|
+
};
|
|
12263
|
+
const buildPhoneInputField = (config2, componentScope2) => {
|
|
12264
|
+
const phonInputField = _.cloneDeep(PhoneInput);
|
|
12265
|
+
phonInputField.config.main.label = config2.label;
|
|
12266
|
+
if (config2.style) {
|
|
12267
|
+
phonInputField.config.style = JSON.parse(config2.style);
|
|
12268
|
+
}
|
|
12269
|
+
if (config2.InputFormatingAndMasking) {
|
|
12270
|
+
phonInputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
12271
|
+
}
|
|
12272
|
+
if (config2.placeholder) {
|
|
12273
|
+
phonInputField.config.main.placeholder = config2.placeholder;
|
|
12274
|
+
}
|
|
12275
|
+
if (config2.layout) {
|
|
12276
|
+
phonInputField.config.layout = createLayoutFormat(config2.layout);
|
|
12277
|
+
}
|
|
12278
|
+
phonInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
12279
|
+
phonInputField.scope = componentScope2;
|
|
12280
|
+
return phonInputField;
|
|
12281
|
+
};
|
|
12098
12282
|
let schema = {
|
|
12099
12283
|
type: "object",
|
|
12100
12284
|
properties: {},
|
|
@@ -12349,6 +12533,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12349
12533
|
case "Thought":
|
|
12350
12534
|
elements = buildThoughtOfTheDay(config2, componentScope2);
|
|
12351
12535
|
break;
|
|
12536
|
+
case "PhoneInput":
|
|
12537
|
+
elements = buildPhoneInputField(config2, componentScope2);
|
|
12538
|
+
break;
|
|
12352
12539
|
default:
|
|
12353
12540
|
schema = {
|
|
12354
12541
|
type: "object",
|
|
@@ -12378,41 +12565,49 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12378
12565
|
});
|
|
12379
12566
|
} else if (config2.type == "Table") {
|
|
12380
12567
|
const sizeMap = {};
|
|
12381
|
-
const filterMap = {};
|
|
12382
12568
|
if (config2.sizeHolder) {
|
|
12383
12569
|
config2.sizeHolder.map((e, i) => {
|
|
12384
12570
|
sizeMap[e.keyName] = e.value;
|
|
12385
12571
|
});
|
|
12386
12572
|
}
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12393
|
-
|
|
12573
|
+
const tableHeaderElements = [];
|
|
12574
|
+
const tableActionElement = [];
|
|
12575
|
+
const rowElements = [];
|
|
12576
|
+
config2.elements.filter((cellElem, elemInd) => {
|
|
12577
|
+
const commonProperties = {
|
|
12578
|
+
accessorKey: cellElem.name,
|
|
12579
|
+
type: cellElem.columnFormat,
|
|
12580
|
+
header: cellElem.label || cellElem.name,
|
|
12581
|
+
size: sizeMap[cellElem.name] || 180,
|
|
12582
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12583
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12584
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12585
|
+
columnKey: cellElem.columnKey
|
|
12586
|
+
};
|
|
12394
12587
|
if (cellElem.type) {
|
|
12395
|
-
|
|
12396
|
-
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12588
|
+
if (cellElem.elementType == "action") {
|
|
12589
|
+
const actionElem = buildUiSchema(cellElem, store2);
|
|
12590
|
+
tableActionElement.push(actionElem);
|
|
12591
|
+
return false;
|
|
12592
|
+
}
|
|
12593
|
+
if (cellElem.elementType == "tableHeader") {
|
|
12594
|
+
const headerElem = buildUiSchema(cellElem, store2);
|
|
12595
|
+
tableHeaderElements.push({ widget: headerElem });
|
|
12596
|
+
return false;
|
|
12597
|
+
}
|
|
12598
|
+
const tableElem = {
|
|
12400
12599
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12401
12600
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12402
|
-
|
|
12403
|
-
columnFilterModeOptions: config2.filteringOptions
|
|
12601
|
+
...commonProperties
|
|
12404
12602
|
};
|
|
12603
|
+
rowElements.push(tableElem);
|
|
12405
12604
|
} 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
|
-
};
|
|
12605
|
+
rowElements.push({ ...commonProperties });
|
|
12414
12606
|
}
|
|
12415
12607
|
});
|
|
12608
|
+
elements.elements = rowElements;
|
|
12609
|
+
elements.config.action = tableActionElement;
|
|
12610
|
+
elements.config.main.headerIcons.elements = tableHeaderElements;
|
|
12416
12611
|
} else if (config2.type == "Array") {
|
|
12417
12612
|
elements.options.detail.elements = config2.elements.map((e, elemInd) => {
|
|
12418
12613
|
return buildUiSchema(e, store2);
|