impaktapps-ui-builder 0.0.382-alpha.26 → 0.0.382-alpha.300

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.
Files changed (32) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1320 -1259
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +16 -16
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +2 -35
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +18 -15
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +121 -70
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +102 -53
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +2 -17
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +2 -17
  11. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +1 -1
  12. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +1 -0
  13. package/package.json +1 -1
  14. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +27 -50
  15. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +49 -30
  16. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +36 -16
  17. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +6 -1
  18. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  19. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +51 -78
  20. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  21. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +12 -2
  22. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +6 -1
  23. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +56 -84
  24. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +6 -1
  25. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
  26. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +12 -12
  27. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +266 -344
  28. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +438 -352
  29. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +284 -415
  30. package/src/impaktapps-ui-builder/builder/services/component.ts +3 -3
  31. package/src/impaktapps-ui-builder/builder/services/event.ts +8 -8
  32. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +4 -1
@@ -1,408 +1,494 @@
1
- export const PageMasterUiSchema: any = (theme) => {
2
- const uiSchema = {
3
- type: "HorizontalLayout",
4
- heading: "Page Master",
5
- elements: [
6
- {
7
- type: "WrapperLayout",
8
- config: {
9
- main: {
10
- // label: "Page Template",
11
- // isAccordion: true,
1
+ import { EventUiSchema } from "../event/uiSchema"
2
+ export const PageMasterUiSchema: any = {
3
+ type: "HorizontalLayout",
4
+ elements: [
5
+ {
6
+ type: "WrapperLayout",
7
+ config: {
8
+ main: {
9
+ rowSpacing: 1,
10
+ header: true,
11
+ },
12
+ defaultStyle: true,
13
+ },
14
+ elements: [
15
+ {
16
+ type: "Control",
17
+ scope: "#/properties/pageMaster",
18
+
19
+ options: {
20
+ widget: "Box",
12
21
  },
13
- wrapperStyle: {
14
- backgroundColor: theme.palette.background.default
22
+ config: {
23
+ layout: 8,
24
+ main: {
25
+ heading: "Page Master",
26
+ },
15
27
  },
16
- defaultStyle: true,
17
28
  },
18
- elements: [
19
- {
20
- type: "Control",
21
- scope: "#/properties/name",
29
+ {
30
+ type: "Control",
31
+ scope: "#/properties/Back_Button",
22
32
 
23
- options: {
24
- widget: "InputField",
33
+ options: {
34
+ widget: "IconButton",
35
+ },
36
+ config: {
37
+ layout: 3,
38
+ main: {
39
+ icon: "BackIcon",
40
+ styleDefault: true,
41
+ size: "small",
42
+ onClick: "backHandler",
43
+ tooltipMessage: "Back",
25
44
  },
26
- config: {
27
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
28
- main: {
29
- label: "Name",
30
- options: [],
31
- color: "secondary",
32
- errorMessage: "Name should be start with 'page_'",
33
- helperText: 'Name should be start with "page_"',
34
- required: true,
35
- },
45
+ style: {
46
+ float: "right",
36
47
  },
37
48
  },
38
- {
39
- type: "Control",
40
- scope: "#/properties/label",
49
+ },
50
+ ],
51
+ },
52
+ {
53
+ type: "WrapperLayout",
54
+ config: {
55
+ main: {
56
+ label: "Page Template",
57
+ divider: true,
58
+ },
59
+ defaultStyle: true,
60
+ },
61
+ elements: [
62
+ {
63
+ type: "Control",
64
+ scope: "#/properties/name",
41
65
 
42
- options: {
43
- widget: "InputField",
66
+ options: {
67
+ widget: "InputField",
68
+ },
69
+ config: {
70
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
71
+ main: {
72
+ label: "Name",
73
+ options: [],
74
+ color: "secondary",
75
+ errorMessage:"Name should be start with 'page_'",
76
+ helperText:'Name should be start with "page_"',
77
+ required: true,
44
78
  },
45
- config: {
46
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
47
- main: {
48
- label: "Label",
49
- options: [],
50
- color: "secondary",
51
- required: true,
52
- },
79
+ },
80
+ },
81
+ {
82
+ type: "Control",
83
+ scope: "#/properties/label",
84
+
85
+ options: {
86
+ widget: "InputField",
87
+ },
88
+ config: {
89
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
90
+ main: {
91
+ label: "Label",
92
+ options: [],
93
+ color: "secondary",
94
+ required: true,
53
95
  },
54
96
  },
55
- {
56
- type: "Control",
57
- scope: "#/properties/emptyBox",
58
- options: {
59
- widget: "EmptyBox"
97
+ }
98
+ ],
99
+ },
100
+ {
101
+ type: "TabLayout",
102
+ config: {
103
+ main: {
104
+ tabLabels: ["Components", "events"],
105
+ divider: true,
106
+ },
107
+ defaultStyle: true,
108
+ },
109
+ elements: [
110
+ {
111
+ type: "WrapperLayout",
112
+ config: {
113
+ main: {
114
+ // label: "Success Case Event",
115
+ divider: true,
116
+ },
117
+ wrapperStyle: {
118
+ border: "1px solid gray"
60
119
  },
61
- config: {
62
- layout: { xs: 0, sm: 4 }
63
- }
64
120
  },
65
- {
66
- type: "TabLayout",
67
- config: {
68
- main: {
69
- tabLabels: ["Components", "events"],
70
- divider: true,
121
+ elements: [
122
+ {
123
+ type: "Control",
124
+ scope: "#/properties/heading",
125
+
126
+ options: {
127
+ widget: "Box",
128
+ },
129
+ config: {
130
+ layout: 8,
131
+ main: {
132
+ heading: "Components Table",
133
+ },
134
+ style: {
135
+ fontFamily: "Roboto",
136
+ fontWeight: "500",
137
+ paddingLeft: "-10px",
138
+ fontSize: "20px",
139
+ },
71
140
  },
72
- defaultStyle: true,
73
141
  },
74
- elements: [
75
- {
76
- type: "Control",
77
- scope: "#/properties/elements",
78
- options: {
79
- widget: "Table",
142
+ {
143
+ type: "Control",
144
+ scope: "#/properties/AddButton",
145
+ options: {
146
+ widget: "IconButton",
147
+ },
148
+ config: {
149
+ layout: 3,
150
+ main: {
151
+ icon: "AddIcon",
152
+ styleDefault: true,
153
+ size: "small",
154
+ onClick: "onAddClickHandler",
155
+ tooltipMessage: "Add New",
80
156
  },
81
- config: {
82
- main: {
83
- headerIcons: {
84
- elements: [
85
- {
86
- widget: {
87
- type: "Control",
88
- scope: "#/properties/New_Record",
89
-
90
- options: {
91
- widget: "IconButton",
92
- },
93
- config: {
94
- main: {
95
- color: "info",
96
- onClick: "onAddClickHandler",
97
- size: "small",
98
- icon: "AddIcon",
99
- iconLabel: "Add New",
100
- styleDefault: true,
101
- },
102
- style: {
103
- mt: "6px",
104
- },
105
- },
106
- }
107
- },
108
- ]
109
- },
110
- disableAction: true,
111
- disableSelection: true,
112
- enableDrag: true,
113
- }
157
+ style: {
158
+ float: "right",
114
159
  },
115
- elements: [
116
- {
117
- accessorKey: "name",
160
+ },
161
+ },
162
+ {
163
+ type: "Control",
164
+ scope: "#/properties/elements",
165
+ options: {
166
+ widget: "Table",
167
+ },
168
+ config: {
169
+ main: {
170
+ disableAction: true,
171
+ disableSelection: true,
172
+ enableDrag: true,
173
+ }
174
+ },
175
+ elements: [
176
+ {
177
+ accessorKey: "name",
118
178
 
119
- header: "Name",
120
- },
121
- {
122
- accessorKey: "type",
179
+ header: "Name",
180
+ },
181
+ {
182
+ accessorKey: "type",
123
183
 
124
- header: "Type",
125
- },
126
- {
127
- header: "Edit",
128
- field: "Reject_Records",
129
- flex: 1,
130
- widget: {
131
- type: "Control",
132
- scope: "#/properties/RejectButton",
133
- options: {
134
- widget: "IconButton",
135
- },
136
- config: {
137
- main: {
138
- icon: "EditIcon",
139
- color: "primary",
140
- onClick: "Edit_Components",
141
- tooltipMessage: "Edit This Record",
142
- },
184
+ header: "Type",
185
+ },
186
+ {
187
+ header: "Edit",
188
+ field: "Reject_Records",
189
+ flex: 1,
190
+ widget: {
191
+ type: "Control",
192
+ scope: "#/properties/RejectButton",
193
+ options: {
194
+ widget: "IconButton",
195
+ },
196
+ config: {
197
+ main: {
198
+ icon: "EditIcon",
199
+ color: "primary",
200
+ onClick: "Edit_Components",
201
+ tooltipMessage: "Edit This Record",
143
202
  },
144
203
  },
145
204
  },
146
- {
147
- header: "Delete",
148
- field: "Reject_Records",
149
- flex: 1,
150
- widget: {
151
- type: "Control",
152
- scope: "#/properties/RejectButton",
153
- options: {
154
- widget: "IconButton",
155
- },
156
- config: {
157
- main: {
158
- icon: "RejectIcon",
159
- color: "error",
160
- onClick: "Delete_Components",
161
- tooltipMessage: "Reject This Record",
162
- },
205
+ },
206
+ {
207
+ header: "Delete",
208
+ field: "Reject_Records",
209
+ flex: 1,
210
+ widget: {
211
+ type: "Control",
212
+ scope: "#/properties/RejectButton",
213
+ options: {
214
+ widget: "IconButton",
215
+ },
216
+ config: {
217
+ main: {
218
+ icon: "RejectIcon",
219
+ color: "error",
220
+ onClick: "popUpComponent",
221
+ tooltipMessage: "Reject This Record",
163
222
  },
164
223
  },
165
- }]
224
+ },
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ type: "Control",
230
+ scope: "#/properties/popUpComponent",
231
+ options: {
232
+ widget: "PopUp"
166
233
  },
167
- {
168
- type: "Control",
169
- scope: "#/properties/events",
170
- options: {
171
- widget: "Table",
234
+ config: {
235
+ layout: {
236
+ xs: 12,
237
+ sm: 12,
238
+ md: 12,
239
+ lg: 12,
172
240
  },
173
- config: {
174
- main: {
175
- headerIcons: {
176
- elements: [
177
- {
178
- widget: {
179
- type: "Control",
180
- scope: "#/properties/New_Record",
181
-
182
- options: {
183
- widget: "IconButton",
184
- },
185
- config: {
186
- main: {
187
- color: "info",
188
- onClick: "eventAddHandler",
189
- size: "small",
190
- icon: "AddIcon",
191
- iconLabel: "Add New",
192
- styleDefault: true,
193
- },
194
- style: {
195
- mt: "6px",
196
- },
197
- },
198
- }
199
- },
200
- ]
201
- },
202
- disableAction: true,
203
- disableSelection: true,
204
- enableDrag: true,
205
-
206
- },
241
+ main: {
207
242
  },
208
- elements: [
209
-
210
- {
211
- accessorKey: "eventType",
212
- header: "Event Type",
213
- },
243
+ },
244
+ elements:
245
+ [
214
246
  {
215
- accessorKey: "Handler",
216
- header: "Handler",
247
+ type: "Control",
248
+ scope: "#/properties/label",
249
+
250
+ options: {
251
+ widget: "Box",
252
+ },
253
+ config: {
254
+ layout: 12,
255
+ main: {
256
+ heading: "Are you sure you want to delete ?",
257
+ },
258
+ },
217
259
  },
218
260
  {
219
- accessorKey: "Edit_Approve_Records",
220
- header: "Edit Widget",
221
- widget: {
222
- type: "Control",
223
- scope: "#/properties/Edit_Records",
224
- options: {
225
- widget: "IconButton",
261
+ type: "Control",
262
+ scope: "#/properties/ConfirmDeleteCompButton",
263
+ options: {
264
+ widget: "Button",
265
+ },
266
+ config: {
267
+ layout: 3,
268
+ main: {
269
+ name: "No",
270
+ startIcon: "ApproveIcon",
271
+ variant: "contained",
272
+ color: "info",
273
+ type: "text",
274
+ onClick: "deletePopUpComponent",
275
+ size: "small",
226
276
  },
227
- config: {
228
- main: {
229
- color: "info",
230
- size: "small",
231
- icon: "EditIcon",
232
- tooltipMessage: "Edit This Record",
233
- onClick: "editEvent",
234
- },
235
- style: {
236
- color: "#3949ab",
237
- },
277
+ style: {
278
+ // marginBottom: "8px",
279
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
280
+ // float: "left",
238
281
  },
239
282
  },
240
283
  },
241
284
  {
242
- accessorKey: "Reject_Records",
243
- header: "Delete",
244
- widget: {
245
- type: "Control",
246
- scope: "#/properties/RejectButton",
247
- options: {
248
- widget: "IconButton",
285
+ type: "Control",
286
+ scope: "#/properties/CancelDeleteCompButton",
287
+ options: {
288
+ widget: "Button",
289
+ },
290
+ config: {
291
+ layout: 3,
292
+ main: {
293
+ name: "Yes",
294
+ startIcon: "ApproveIcon",
295
+ variant: "contained",
296
+ color: "info",
297
+ type: "text",
298
+ onClick: "deletePopUpComponent",
299
+ size: "small",
249
300
  },
250
- config: {
251
- main: {
252
- icon: "RejectIcon",
253
- color: "error",
254
- tooltipMessage: "Reject This Record",
255
- onClick: "deleteEvent",
256
- },
301
+
302
+ style: {
303
+ // marginBottom: "8px",
304
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
305
+ // float: "left",
257
306
  },
258
307
  },
259
308
  },
309
+ {
310
+ type: "Control",
311
+ scope: "#/properties/emptyBox",
312
+
313
+ options: {
314
+ widget: "Box",
315
+ },
316
+ config: {
317
+ layout: 6,
318
+ },
319
+ },
260
320
  ]
261
321
  },
262
-
263
- ],
264
- },
265
- {
266
- type: "Control",
267
- scope: "#/properties/btn",
268
- options: {
269
- widget: "Button",
270
- },
271
-
272
- config: {
273
- layout: 11.9,
274
- main: {
275
- name: "Save",
276
- startIcon: "ApproveIcon",
277
- variant: "contained",
278
- color: "info",
279
- type: "text",
280
- onClick: "saveHandler",
281
- size: "medium",
282
- },
283
- style: {
284
- width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
285
- float: "right",
286
- },
287
- },
288
- },
289
- ]
290
- },
291
-
292
- {
293
- type: "Control",
294
- scope: "#/properties/notify",
295
- options: {
296
- widget: "Notify",
322
+ ]
297
323
  },
298
- layout: 6,
299
- },
300
- {
301
- type: "HorizontalLayout",
302
- config: {
303
- style: {
304
- position: "fixed",
305
- bottom: 5,
306
- overflow: 'visible',
307
- margin: "0",
308
- width: "100vw",
309
- }
310
- },
311
- elements: [
312
- {
313
- type: "Control",
314
- scope: "#/properties/EmptyBox",
315
- options: {
316
- widget: "EmptyBox",
324
+ {
325
+ type: "WrapperLayout",
326
+ config: {
327
+ main: {
328
+ // label: "Success Case Event",
329
+ divider: true,
317
330
  },
318
- config: {
319
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
331
+ wrapperStyle: {
332
+ border: "1px solid gray"
320
333
  },
321
334
  },
322
- {
323
-
324
- type: "Control",
325
- scope: "#/properties/FooterText",
326
- options: {
327
- widget: "Box",
328
- },
329
- config: {
330
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
331
- main: {
332
- heading: "Copywriter@ACT21.IO"
335
+ elements: [
336
+ {
337
+ type: "Control",
338
+ scope: "#/properties/heading",
339
+
340
+ options: {
341
+ widget: "Box",
342
+ },
343
+ config: {
344
+ layout: 8,
345
+ main: {
346
+ heading: "Event Table",
347
+ },
348
+ style: {
349
+ fontFamily: "Roboto",
350
+ fontWeight: "500",
351
+ paddingLeft: "-10px",
352
+ fontSize: "20px",
353
+ },
333
354
  },
334
- style: {
335
- color: theme?.palette?.text.disabled || "#AFAFAF",
336
- fontSize: '12px',
337
- }
338
- },
339
- },
340
- {
341
- type: "HorizontalLayout",
342
- config: {
343
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
344
355
  },
345
- elements: [
346
- {
347
- type: "Control",
348
- scope: "#/properties/EmptyBox",
349
- options: {
350
- widget: "EmptyBox",
356
+ {
357
+ type: "Control",
358
+ scope: "#/properties/AddButton",
359
+ options: {
360
+ widget: "IconButton",
361
+ },
362
+ config: {
363
+ layout: 3,
364
+ main: {
365
+ icon: "AddIcon",
366
+ styleDefault: true,
367
+ size: "small",
368
+ onClick: "eventAddHandler",
369
+ tooltipMessage: "Back",
351
370
  },
352
- config: {
353
- layout: 2,
371
+ style: {
372
+ float: "right",
354
373
  },
355
374
  },
356
- {
357
- type: "Control",
358
- scope: "#/properties/backIcon",
359
- options: {
360
- widget: "Box",
375
+ },
376
+
377
+ {
378
+ type: "Control",
379
+ scope: "#/properties/events",
380
+ options: {
381
+ widget: "Table",
382
+ },
383
+ config: {
384
+ main: {
385
+ disableAction: true,
386
+ disableSelection: true,
387
+ enableDrag: true,
388
+
361
389
  },
362
- config: {
363
- layout: 1,
364
- main: {
365
- iconName: 'PrevIcon',
366
- onClick: "backHandler"
367
- },
368
- style: {
369
- fill: theme.palette.primary.dark,
370
- width: 20,
371
- height: 20,
372
- display: 'flex',
373
- alignItems: 'center',
374
- justifyContent: 'center',
375
- marginRight: '-8px',
376
- cursor: 'pointer'
377
- }
378
- }
379
390
  },
380
- {
381
- type: "Control",
382
- scope: "#/properties/text",
383
-
384
- options: {
385
- widget: "Box",
391
+ elements: [
392
+
393
+ {
394
+ accessorKey: "eventType",
395
+ header: "Event Type",
396
+ },
397
+ {
398
+ accessorKey: "Handler",
399
+ header: "Handler",
386
400
  },
387
- config: {
388
- layout: 9,
389
- main: {
390
- heading: "Previous Page",
391
- onClick: "backHandler"
401
+ {
402
+ accessorKey: "Edit_Approve_Records",
403
+ header: "Edit Widget",
404
+ widget: {
405
+ type: "Control",
406
+ scope: "#/properties/Edit_Records",
407
+ options: {
408
+ widget: "IconButton",
409
+ },
410
+ config: {
411
+ main: {
412
+ color: "info",
413
+ size: "small",
414
+ icon: "EditIcon",
415
+ tooltipMessage: "Edit This Record",
416
+ onClick: "editEvent",
417
+ },
418
+ style: {
419
+ color: "#3949ab",
420
+ },
421
+ },
392
422
  },
393
- style: {
394
- color: theme.palette.primary.dark,
395
- fontSize: "12px",
396
- cursor: 'pointer',
397
- marginLeft: '-6px'
398
- }
399
423
  },
400
- },
401
- ],
402
- },
403
- ]
424
+ {
425
+ accessorKey: "Reject_Records",
426
+ header: "Delete",
427
+ widget: {
428
+ type: "Control",
429
+ scope: "#/properties/RejectButton",
430
+ options: {
431
+ widget: "IconButton",
432
+ },
433
+ config: {
434
+ main: {
435
+ icon: "RejectIcon",
436
+ color: "error",
437
+ tooltipMessage: "Reject This Record",
438
+ onClick: "deleteEvent",
439
+ },
440
+ },
441
+ },
442
+ },
443
+ ]
444
+ }]
445
+ },
446
+
447
+ ],
448
+ },
449
+ {
450
+ type: "Control",
451
+ scope: "#/properties/btn",
452
+ options: {
453
+ widget: "EmptyBox",
454
+ },
455
+ config: {
456
+ layout: { xs: 0, sm: 0, md: 8, lg: 7 },
404
457
  }
405
- ]
406
- };
407
- return uiSchema
408
- }
458
+ },
459
+ {
460
+ type: "Control",
461
+ scope: "#/properties/btn",
462
+ options: {
463
+ widget: "Button",
464
+ },
465
+
466
+ config: {
467
+ layout: 11.7,
468
+ main: {
469
+ name: "Save",
470
+ startIcon: "ApproveIcon",
471
+ variant: "contained",
472
+ color: "info",
473
+ type: "text",
474
+ onClick: "saveHandler",
475
+ size: "small",
476
+ },
477
+ style: {
478
+ marginBottom: "8px",
479
+ width:{xs:"100%",sm:"100%",md:"25%",lg:"20%"},
480
+ float: "right",
481
+ },
482
+ },
483
+ },
484
+ {
485
+ type: "Control",
486
+ scope: "#/properties/notify",
487
+ options: {
488
+ widget: "Notify",
489
+ },
490
+ layout: 6,
491
+ }
492
+ ]
493
+ }
494
+