impaktapps-ui-builder 0.0.968 → 0.0.970

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 (25) hide show
  1. package/dist/impaktapps-ui-builder.es.js +521 -75
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +55 -2
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +0 -15
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +50 -2
  8. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +3 -0
  9. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
  10. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +8 -2
  11. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -0
  12. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +5 -0
  13. package/package.json +1 -1
  14. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +47 -0
  15. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +6 -7
  16. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +45 -1
  17. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +4 -1
  18. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +98 -50
  19. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +4 -1
  20. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +148 -9
  21. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -1
  22. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +97 -6
  23. package/src/impaktapps-ui-builder/builder/services/component.ts +85 -6
  24. package/src/impaktapps-ui-builder/builder/services/event.ts +17 -3
  25. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +20 -2
@@ -9,7 +9,7 @@ export declare const EventSection: (theme: any) => {
9
9
  config: {
10
10
  main: {
11
11
  headerIcons: {
12
- elements: {
12
+ elements: ({
13
13
  widget: {
14
14
  type: string;
15
15
  scope: string;
@@ -30,7 +30,28 @@ export declare const EventSection: (theme: any) => {
30
30
  };
31
31
  };
32
32
  };
33
- }[];
33
+ } | {
34
+ widget: {
35
+ type: string;
36
+ scope: string;
37
+ options: {
38
+ widget: string;
39
+ };
40
+ config: {
41
+ main: {
42
+ onClick: string;
43
+ size: string;
44
+ icon: string;
45
+ iconLabel: string;
46
+ styleDefault: boolean;
47
+ color?: undefined;
48
+ };
49
+ style: {
50
+ mt: string;
51
+ };
52
+ };
53
+ };
54
+ })[];
34
55
  };
35
56
  disableAction: boolean;
36
57
  disableSelection: boolean;
@@ -41,6 +62,8 @@ export declare const EventSection: (theme: any) => {
41
62
  accessorKey: string;
42
63
  header: string;
43
64
  widget?: undefined;
65
+ field?: undefined;
66
+ flex?: undefined;
44
67
  } | {
45
68
  accessorKey: string;
46
69
  header: string;
@@ -57,6 +80,7 @@ export declare const EventSection: (theme: any) => {
57
80
  icon: string;
58
81
  tooltipMessage: string;
59
82
  onClick: string;
83
+ styleDefault?: undefined;
60
84
  };
61
85
  style: {
62
86
  color: any;
@@ -64,6 +88,8 @@ export declare const EventSection: (theme: any) => {
64
88
  };
65
89
  accessorKeyName?: undefined;
66
90
  };
91
+ field?: undefined;
92
+ flex?: undefined;
67
93
  } | {
68
94
  accessorKey: string;
69
95
  header: string;
@@ -81,10 +107,37 @@ export declare const EventSection: (theme: any) => {
81
107
  tooltipMessage: string;
82
108
  onClick: string;
83
109
  size?: undefined;
110
+ styleDefault?: undefined;
84
111
  };
85
112
  style?: undefined;
86
113
  };
87
114
  };
115
+ field?: undefined;
116
+ flex?: undefined;
117
+ } | {
118
+ header: string;
119
+ field: string;
120
+ flex: number;
121
+ widget: {
122
+ type: string;
123
+ scope: string;
124
+ options: {
125
+ widget: string;
126
+ };
127
+ config: {
128
+ main: {
129
+ icon: string;
130
+ onClick: string;
131
+ tooltipMessage: string;
132
+ styleDefault: boolean;
133
+ color?: undefined;
134
+ size?: undefined;
135
+ };
136
+ style?: undefined;
137
+ };
138
+ accessorKeyName?: undefined;
139
+ };
140
+ accessorKey?: undefined;
88
141
  })[];
89
142
  }[];
90
143
  };
@@ -25,11 +25,8 @@ declare const _default: {
25
25
  main: {
26
26
  url: string;
27
27
  heading?: undefined;
28
- disableColumnFilter?: undefined;
29
28
  disableAction?: undefined;
30
29
  disableSelection?: undefined;
31
- disableGlobalSearch?: undefined;
32
- disableSorting?: undefined;
33
30
  };
34
31
  style: {
35
32
  imageStyle: {
@@ -98,11 +95,8 @@ declare const _default: {
98
95
  main: {
99
96
  heading: string;
100
97
  url?: undefined;
101
- disableColumnFilter?: undefined;
102
98
  disableAction?: undefined;
103
99
  disableSelection?: undefined;
104
- disableGlobalSearch?: undefined;
105
- disableSorting?: undefined;
106
100
  };
107
101
  style: {
108
102
  objectFit: string;
@@ -150,11 +144,8 @@ declare const _default: {
150
144
  main: {
151
145
  heading: string;
152
146
  url?: undefined;
153
- disableColumnFilter?: undefined;
154
147
  disableAction?: undefined;
155
148
  disableSelection?: undefined;
156
- disableGlobalSearch?: undefined;
157
- disableSorting?: undefined;
158
149
  };
159
150
  style: {
160
151
  objectFit: string;
@@ -202,11 +193,8 @@ declare const _default: {
202
193
  main: {
203
194
  heading: string;
204
195
  url?: undefined;
205
- disableColumnFilter?: undefined;
206
196
  disableAction?: undefined;
207
197
  disableSelection?: undefined;
208
- disableGlobalSearch?: undefined;
209
- disableSorting?: undefined;
210
198
  };
211
199
  style: {
212
200
  objectFit: string;
@@ -308,11 +296,8 @@ declare const _default: {
308
296
  animation?: undefined;
309
297
  };
310
298
  main: {
311
- disableColumnFilter: boolean;
312
299
  disableAction: boolean;
313
300
  disableSelection: boolean;
314
- disableGlobalSearch: boolean;
315
- disableSorting: boolean;
316
301
  url?: undefined;
317
302
  heading?: undefined;
318
303
  };
@@ -9,7 +9,7 @@ export declare const TableSection: (theme: any) => {
9
9
  config: {
10
10
  main: {
11
11
  headerIcons: {
12
- elements: {
12
+ elements: ({
13
13
  widget: {
14
14
  type: string;
15
15
  scope: string;
@@ -30,7 +30,28 @@ export declare const TableSection: (theme: any) => {
30
30
  };
31
31
  };
32
32
  };
33
- }[];
33
+ } | {
34
+ widget: {
35
+ type: string;
36
+ scope: string;
37
+ options: {
38
+ widget: string;
39
+ };
40
+ config: {
41
+ main: {
42
+ onClick: string;
43
+ size: string;
44
+ icon: string;
45
+ iconLabel: string;
46
+ styleDefault: boolean;
47
+ color?: undefined;
48
+ };
49
+ style: {
50
+ mt: string;
51
+ };
52
+ };
53
+ };
54
+ })[];
34
55
  };
35
56
  disableAction: boolean;
36
57
  disableSelection: boolean;
@@ -59,6 +80,8 @@ export declare const TableSection: (theme: any) => {
59
80
  color: string;
60
81
  onClick: string;
61
82
  tooltipMessage: string;
83
+ styleDefault?: undefined;
84
+ disabled?: undefined;
62
85
  };
63
86
  style: {
64
87
  color: any;
@@ -82,6 +105,31 @@ export declare const TableSection: (theme: any) => {
82
105
  color: string;
83
106
  onClick: string;
84
107
  tooltipMessage: string;
108
+ styleDefault?: undefined;
109
+ disabled?: undefined;
110
+ };
111
+ style?: undefined;
112
+ };
113
+ };
114
+ accessorKey?: undefined;
115
+ } | {
116
+ header: string;
117
+ field: string;
118
+ flex: number;
119
+ widget: {
120
+ type: string;
121
+ scope: string;
122
+ options: {
123
+ widget: string;
124
+ };
125
+ config: {
126
+ main: {
127
+ icon: string;
128
+ onClick: string;
129
+ styleDefault: boolean;
130
+ disabled: boolean;
131
+ color?: undefined;
132
+ tooltipMessage?: undefined;
85
133
  };
86
134
  style?: undefined;
87
135
  };
@@ -39,6 +39,9 @@ export declare const PageMasterSchema: {
39
39
  };
40
40
  };
41
41
  };
42
+ RemoveItemButton: {
43
+ disabled: boolean;
44
+ };
42
45
  };
43
46
  required: string[];
44
47
  };
@@ -68,6 +68,9 @@ export declare const EventSchema: {
68
68
  };
69
69
  };
70
70
  };
71
+ RemoveItemButton: {
72
+ disabled: boolean;
73
+ };
71
74
  };
72
75
  required: string[];
73
76
  };
@@ -1,7 +1,7 @@
1
- export declare const refreshPage: (type: string, store: any) => void;
1
+ export declare function refreshPage(type: string, store: any): void;
2
2
  declare const _default: (store: any, dynamicData: any, submitHandler: any, service: any) => {
3
3
  setPage: () => Promise<void>;
4
- refreshPage: (type: string, store: any) => void;
4
+ refreshPage: typeof refreshPage;
5
5
  getFormdata: () => any;
6
6
  getSchema: () => any;
7
7
  okHandler: () => void;
@@ -16,5 +16,11 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
16
16
  backHandler: () => void;
17
17
  deletePopUpComponent: () => void;
18
18
  deletePopUpEvent: () => void;
19
+ copyPasteElement: (paramStore: any, setPage?: any) => void;
20
+ CopyElement: (paramStore: any, elementType: string) => void;
21
+ PasteElement: (setPage: any, elementType: string) => void;
22
+ RemoveItemButton: (paramStore?: any) => void;
23
+ elementPathHandler: (parentPath: string, rowId: any, elementType: string) => string;
24
+ ElementPathSetter: (uiSchema: any, copiedFormData?: any) => void;
19
25
  };
20
26
  export default _default;
@@ -76,6 +76,9 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
76
76
  };
77
77
  };
78
78
  };
79
+ RemoveItemButton: {
80
+ disabled: boolean;
81
+ };
79
82
  };
80
83
  required: string[];
81
84
  };
@@ -87,5 +90,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
87
90
  deleteEvent: () => Promise<void>;
88
91
  backHandler: () => void;
89
92
  deletePopUpEvent: () => void;
93
+ copyPasteElement: () => void;
94
+ RemoveItemButton: () => void;
90
95
  };
91
96
  export default _default;
@@ -50,6 +50,9 @@ declare const _default: (funcParams: funcParamsProps) => {
50
50
  };
51
51
  };
52
52
  };
53
+ RemoveItemButton: {
54
+ disabled: boolean;
55
+ };
53
56
  };
54
57
  required: string[];
55
58
  };
@@ -63,5 +66,7 @@ declare const _default: (funcParams: funcParamsProps) => {
63
66
  deleteEvent: () => void;
64
67
  deletePopUpComponent: () => void;
65
68
  deletePopUpEvent: () => void;
69
+ copyPasteElement: () => void;
70
+ RemoveItemButton: () => void;
66
71
  };
67
72
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.968",
3
+ "version": "0.0.970",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -35,6 +35,32 @@ export const EventSection = (theme)=>{
35
35
  },
36
36
  }
37
37
  },
38
+ {
39
+ widget: {
40
+ type: "Control",
41
+ scope: "#/properties/Paste_Event",
42
+
43
+ options: {
44
+ widget: "IconButton",
45
+ },
46
+ config: {
47
+ main: {
48
+ // color: "info",
49
+ onClick: "copyPasteElement",
50
+ size: "small",
51
+ icon: "PasteIcon",
52
+ iconLabel: "Paste",
53
+ styleDefault: true,
54
+ },
55
+ style: {
56
+ mt: "6px",
57
+ },
58
+ },
59
+ }
60
+ },
61
+
62
+
63
+ //////////////////////////
38
64
  ]
39
65
  },
40
66
  disableAction: true,
@@ -98,6 +124,27 @@ export const EventSection = (theme)=>{
98
124
  },
99
125
  },
100
126
  },
127
+ {
128
+ header: "Copy",
129
+ field: "Copy_Event",
130
+ flex: 1,
131
+ widget: {
132
+ type: "Control",
133
+ scope: "#/properties/Copy_Event",
134
+ options: {
135
+ widget: "IconButton",
136
+ },
137
+ config: {
138
+ main: {
139
+ icon: "FileCopyIcon",
140
+ // color: "error",
141
+ onClick: "copyPasteElement",
142
+ tooltipMessage: "Reject This Record",
143
+ styleDefault: true,
144
+ },
145
+ },
146
+ },
147
+ },
101
148
  ]
102
149
  }]}
103
150
  return uiSchema
@@ -125,7 +125,7 @@ export default {
125
125
  scope: "#/properties/leaderBoard/properties/firstName",
126
126
  config: {
127
127
  main: {
128
- heading: "No User",
128
+ heading: "Satendra Raghav",
129
129
  },
130
130
  style: {
131
131
  objectFit: "cover",
@@ -154,7 +154,7 @@ export default {
154
154
  scope: "#/properties/leaderBoard/properties/secondName",
155
155
  config: {
156
156
  main: {
157
- heading: "No User",
157
+ heading: "Satendra Raghav",
158
158
  },
159
159
  style: {
160
160
  objectFit: "cover",
@@ -181,7 +181,7 @@ export default {
181
181
  scope: "#/properties/leaderBoard/properties/thirdName",
182
182
  config: {
183
183
  main: {
184
- heading: "No User",
184
+ heading: "Satendra Raghav",
185
185
  },
186
186
  style: {
187
187
  objectFit: "cover",
@@ -348,7 +348,8 @@ export default {
348
348
  fontWeight: 900,
349
349
  background: "rgb(179, 198, 255)"
350
350
  },
351
- top: { xs: "100px", sm: "200px", md: "390px", lg: "390px" },
351
+ top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
352
+ // top:"390px",
352
353
  border: "2px solid rgb(179, 198, 255)",
353
354
  width: "95%",
354
355
  left: "2.5%",
@@ -357,11 +358,9 @@ export default {
357
358
  },
358
359
 
359
360
  main: {
360
- disableColumnFilter:true,
361
361
  disableAction: true,
362
362
  disableSelection: true,
363
- disableGlobalSearch:true,
364
- disableSorting:true
363
+
365
364
  },
366
365
  },
367
366
 
@@ -35,6 +35,29 @@ export const TableSection = (theme) => {
35
35
  },
36
36
  }
37
37
  },
38
+ {
39
+ widget: {
40
+ type: "Control",
41
+ scope: "#/properties/Paste_Component",
42
+
43
+ options: {
44
+ widget: "IconButton",
45
+ },
46
+ config: {
47
+ main: {
48
+ // color: "info",
49
+ onClick: "copyPasteElement",
50
+ size: "small",
51
+ icon: "PasteIcon",
52
+ iconLabel: "Paste",
53
+ styleDefault: true,
54
+ },
55
+ style: {
56
+ mt: "6px",
57
+ },
58
+ },
59
+ }
60
+ },
38
61
  ]
39
62
  },
40
63
  disableAction: true,
@@ -95,7 +118,28 @@ export const TableSection = (theme) => {
95
118
  },
96
119
  },
97
120
  },
98
- }
121
+ },
122
+ {
123
+ header: "Copy",
124
+ field: "Copy_Component",
125
+ flex: 1,
126
+ widget: {
127
+ type: "Control",
128
+ scope: "#/properties/Copy_Component",
129
+ options: {
130
+ widget: "IconButton",
131
+ },
132
+ config: {
133
+ main: {
134
+ icon: "FileCopyIcon",
135
+ // color: "error",
136
+ onClick: "copyPasteElement",
137
+ styleDefault: true,
138
+ disabled: false
139
+ },
140
+ },
141
+ },
142
+ },
99
143
  ]
100
144
  }]
101
145
  }
@@ -341,7 +341,10 @@ export const ComponentSchema: any = {
341
341
  name: {
342
342
  type: "string",
343
343
  },
344
- label: { type: 'string' }
344
+ label: { type: 'string' },
345
+ RemoveItemButton:{
346
+ disabled: true,
347
+ },
345
348
  },
346
349
 
347
350
  required: ["name",]
@@ -178,6 +178,104 @@ export const componentBasicUiSchema: any = (theme)=>{
178
178
  },
179
179
  ],
180
180
  },
181
+ {
182
+ type: "HorizontalLayout",
183
+ config: {
184
+ layout:{xs:12,sm: 6}
185
+ },
186
+ elements: [
187
+ {
188
+ type: "Control",
189
+ scope: "#/properties/RemoveItemButton",
190
+ options: {
191
+ widget: "IconButton",
192
+ },
193
+ config: {
194
+ layout: { xs: 1, sm: 1 },
195
+ main: {
196
+ onClick: "RemoveItemButton",
197
+ size: "large",
198
+ icon: "RejectIcon",
199
+ styleDefault: true,
200
+ },
201
+ style:{
202
+ marginLeft: "-10px"
203
+ }
204
+ },
205
+ },
206
+
207
+ {
208
+ type: "Control",
209
+ scope: "#/properties/copiedElementDetails",
210
+
211
+ options: {
212
+ widget: "Box",
213
+ },
214
+ config: {
215
+ layout: { xs: 6, sm: 6 },
216
+ main: {
217
+ heading: "No element copied",
218
+ },
219
+ style: {
220
+ color: "#535557",
221
+ marginLeft: "-10px"
222
+ },
223
+ },
224
+ },
225
+ {
226
+ type: "Control",
227
+ scope: "#/properties/EmptyBox",
228
+ options: {
229
+ widget: "EmptyBox",
230
+ },
231
+ config: {
232
+ layout: { xs: 1, sm: 5 },
233
+ },
234
+ },
235
+ ]
236
+ },
237
+ {
238
+ type: "Control",
239
+ scope: "#/properties/btn",
240
+ options: {
241
+ widget: "Button",
242
+ },
243
+
244
+ config: {
245
+ layout: { xs: 4, sm: 2 },
246
+ main: {
247
+ name: "Ok",
248
+ startIcon: "ApproveIcon",
249
+ variant: "contained",
250
+ // color: "info",
251
+ type: "text",
252
+ onClick: "okHandler",
253
+ size: "medium",
254
+ },
255
+ },
256
+ },
257
+ {
258
+ type: "Control",
259
+ scope: "#/properties/btnSubmit",
260
+ options: {
261
+ widget: "Button",
262
+ },
263
+
264
+ config: {
265
+ layout: { xs: 4, sm: 2 },
266
+ main: {
267
+ name: "Save & Exit",
268
+ startIcon: "ApproveIcon",
269
+ variant: "contained",
270
+ // color: "info",
271
+ type: "text",
272
+ onClick: "saveHandler",
273
+ size: "medium",
274
+ },
275
+ },
276
+ },
277
+
278
+
181
279
  {
182
280
  type: "Control",
183
281
  scope: "#/properties/popUpComponentSection",
@@ -363,56 +461,6 @@ export const componentBasicUiSchema: any = (theme)=>{
363
461
  },
364
462
  },
365
463
  ]
366
- },
367
- {
368
- type: "Control",
369
- scope: "#/properties/EmptyBox",
370
- options: {
371
- widget: "EmptyBox",
372
- },
373
- config: {
374
- layout: { xs: 4, sm: 8 },
375
- },
376
- },
377
- {
378
- type: "Control",
379
- scope: "#/properties/btn",
380
- options: {
381
- widget: "Button",
382
- },
383
-
384
- config: {
385
- layout: { xs: 4, sm: 2 },
386
- main: {
387
- name: "Ok",
388
- startIcon: "ApproveIcon",
389
- variant: "contained",
390
- // color: "info",
391
- type: "text",
392
- onClick: "okHandler",
393
- size: "medium",
394
- },
395
- },
396
- },
397
- {
398
- type: "Control",
399
- scope: "#/properties/btnSubmit",
400
- options: {
401
- widget: "Button",
402
- },
403
-
404
- config: {
405
- layout: { xs: 4, sm: 2 },
406
- main: {
407
- name: "Save & Exit",
408
- startIcon: "ApproveIcon",
409
- variant: "contained",
410
- // color: "info",
411
- type: "text",
412
- onClick: "saveHandler",
413
- size: "medium",
414
- },
415
- },
416
464
  },
417
465
  {
418
466
  type: "Control",
@@ -40,7 +40,10 @@ export const PageMasterSchema = {
40
40
  }
41
41
  },
42
42
  },
43
- }
43
+ },
44
+ RemoveItemButton:{
45
+ disabled: true
46
+ }
44
47
  },
45
48
  required:["template","name", "label"]
46
49
  }