impaktapps-ui-builder 0.0.412-mtreemap.16 → 0.0.412-mtreemap.17
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 +228 -20
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +8 -5
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +9 -5
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +179 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +22 -4
- package/src/impaktapps-ui-builder/builder/services/event.ts +9 -1
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -2
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -3
|
@@ -9,10 +9,8 @@ declare const _default: {
|
|
|
9
9
|
};
|
|
10
10
|
style: {
|
|
11
11
|
wrapperStyle: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
sm: number;
|
|
15
|
-
};
|
|
12
|
+
display: string;
|
|
13
|
+
gap: string;
|
|
16
14
|
};
|
|
17
15
|
};
|
|
18
16
|
wrapperStyle: {
|
|
@@ -76,6 +74,7 @@ declare const _default: {
|
|
|
76
74
|
'@keyframes rotateAnimation'?: undefined;
|
|
77
75
|
animation?: undefined;
|
|
78
76
|
tableHeadstyle?: undefined;
|
|
77
|
+
margin?: undefined;
|
|
79
78
|
};
|
|
80
79
|
layout: number;
|
|
81
80
|
};
|
|
@@ -122,6 +121,7 @@ declare const _default: {
|
|
|
122
121
|
'@keyframes rotateAnimation'?: undefined;
|
|
123
122
|
animation?: undefined;
|
|
124
123
|
tableHeadstyle?: undefined;
|
|
124
|
+
margin?: undefined;
|
|
125
125
|
};
|
|
126
126
|
layout: number;
|
|
127
127
|
containerStyle?: undefined;
|
|
@@ -169,6 +169,7 @@ declare const _default: {
|
|
|
169
169
|
'@keyframes rotateAnimation'?: undefined;
|
|
170
170
|
animation?: undefined;
|
|
171
171
|
tableHeadstyle?: undefined;
|
|
172
|
+
margin?: undefined;
|
|
172
173
|
};
|
|
173
174
|
layout: number;
|
|
174
175
|
containerStyle?: undefined;
|
|
@@ -235,6 +236,7 @@ declare const _default: {
|
|
|
235
236
|
zIndex: number;
|
|
236
237
|
fontWeight?: undefined;
|
|
237
238
|
tableHeadstyle?: undefined;
|
|
239
|
+
margin?: undefined;
|
|
238
240
|
};
|
|
239
241
|
layout: number;
|
|
240
242
|
containerStyle?: undefined;
|
|
@@ -256,7 +258,6 @@ declare const _default: {
|
|
|
256
258
|
fontWeight: number;
|
|
257
259
|
background: string;
|
|
258
260
|
};
|
|
259
|
-
position: string;
|
|
260
261
|
top: {
|
|
261
262
|
xs: string;
|
|
262
263
|
sm: string;
|
|
@@ -266,9 +267,11 @@ declare const _default: {
|
|
|
266
267
|
border: string;
|
|
267
268
|
width: string;
|
|
268
269
|
left: string;
|
|
270
|
+
margin: string;
|
|
269
271
|
objectFit?: undefined;
|
|
270
272
|
height?: undefined;
|
|
271
273
|
borderRadius?: undefined;
|
|
274
|
+
position?: undefined;
|
|
272
275
|
display?: undefined;
|
|
273
276
|
justifyContent?: undefined;
|
|
274
277
|
alignItems?: undefined;
|
|
@@ -8,11 +8,13 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
8
8
|
saveHandler: () => Promise<void>;
|
|
9
9
|
onChange: () => void;
|
|
10
10
|
editComponents: () => void;
|
|
11
|
-
deleteComponents: () => void;
|
|
12
|
-
deleteEvent: () => void;
|
|
11
|
+
deleteComponents: (shouldUpdateDialog?: boolean) => void;
|
|
12
|
+
deleteEvent: (shouldUpdateDialog?: boolean) => void;
|
|
13
13
|
widgetAddClickHandler: () => void;
|
|
14
14
|
eventEditHandler: () => void;
|
|
15
15
|
eventAddHandler: () => void;
|
|
16
16
|
backHandler: () => void;
|
|
17
|
+
deletePopUpComponent: () => void;
|
|
18
|
+
deletePopUpEvent: () => void;
|
|
17
19
|
};
|
|
18
20
|
export default _default;
|
|
@@ -84,7 +84,8 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
84
84
|
onChange: () => void;
|
|
85
85
|
addEvent: () => void;
|
|
86
86
|
editEvent: () => void;
|
|
87
|
-
deleteEvent: () => void
|
|
87
|
+
deleteEvent: () => Promise<void>;
|
|
88
88
|
backHandler: () => void;
|
|
89
|
+
deletePopUpEvent: () => void;
|
|
89
90
|
};
|
|
90
91
|
export default _default;
|
|
@@ -57,9 +57,11 @@ declare const _default: (funcParams: funcParamsProps) => {
|
|
|
57
57
|
onAddClickHandler: () => void;
|
|
58
58
|
saveHandler: () => Promise<void>;
|
|
59
59
|
Edit_Components: () => void;
|
|
60
|
-
Delete_Components: () => void
|
|
60
|
+
Delete_Components: () => Promise<void>;
|
|
61
61
|
eventAddHandler: () => void;
|
|
62
62
|
editEvent: () => void;
|
|
63
63
|
deleteEvent: () => void;
|
|
64
|
+
deletePopUpComponent: () => void;
|
|
65
|
+
deletePopUpEvent: () => void;
|
|
64
66
|
};
|
|
65
67
|
export default _default;
|
package/package.json
CHANGED
|
@@ -7,9 +7,13 @@ export default {
|
|
|
7
7
|
label: "LeaderBoard",
|
|
8
8
|
divider: true,
|
|
9
9
|
},
|
|
10
|
-
style:{
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
style: {
|
|
11
|
+
wrapperStyle: {
|
|
12
|
+
display: "flex",
|
|
13
|
+
gap: "10px",
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
},
|
|
13
17
|
wrapperStyle: {
|
|
14
18
|
position: "relative",
|
|
15
19
|
width: "100%",
|
|
@@ -339,12 +343,12 @@ export default {
|
|
|
339
343
|
fontWeight: 900,
|
|
340
344
|
background: "rgb(179, 198, 255)"
|
|
341
345
|
},
|
|
342
|
-
position: "absolute",
|
|
343
346
|
top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
|
|
344
347
|
// top:"390px",
|
|
345
348
|
border: "2px solid rgb(179, 198, 255)",
|
|
346
349
|
width: "95%",
|
|
347
|
-
left: "2.5%"
|
|
350
|
+
left: "2.5%",
|
|
351
|
+
margin: "auto"
|
|
348
352
|
|
|
349
353
|
},
|
|
350
354
|
|
|
@@ -233,6 +233,185 @@ export const componentBasicUiSchema: any = (theme)=>{
|
|
|
233
233
|
},
|
|
234
234
|
],
|
|
235
235
|
},
|
|
236
|
+
{
|
|
237
|
+
type: "Control",
|
|
238
|
+
scope: "#/properties/popUpComponentSection",
|
|
239
|
+
options: {
|
|
240
|
+
widget: "PopUp"
|
|
241
|
+
},
|
|
242
|
+
config: {
|
|
243
|
+
layout: {
|
|
244
|
+
xs: 12,
|
|
245
|
+
sm: 12,
|
|
246
|
+
md: 12,
|
|
247
|
+
lg: 12,
|
|
248
|
+
},
|
|
249
|
+
main: {
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
elements:
|
|
253
|
+
[
|
|
254
|
+
{
|
|
255
|
+
type: "Control",
|
|
256
|
+
scope: "#/properties/label",
|
|
257
|
+
options: {
|
|
258
|
+
widget: "Box",
|
|
259
|
+
},
|
|
260
|
+
config: {
|
|
261
|
+
layout: 12,
|
|
262
|
+
main: {
|
|
263
|
+
heading: "Are you sure you want to delete ?",
|
|
264
|
+
},
|
|
265
|
+
style:{
|
|
266
|
+
marginTop: "-40px"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
type: "Control",
|
|
272
|
+
scope: "#/properties/EmptyBox",
|
|
273
|
+
options: {
|
|
274
|
+
widget: "EmptyBox",
|
|
275
|
+
},
|
|
276
|
+
config: {
|
|
277
|
+
main:{},
|
|
278
|
+
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
type: "Control",
|
|
283
|
+
scope: "#/properties/ConfirmDeleteCompButton",
|
|
284
|
+
options: {
|
|
285
|
+
widget: "Button",
|
|
286
|
+
},
|
|
287
|
+
config: {
|
|
288
|
+
layout: 3,
|
|
289
|
+
main: {
|
|
290
|
+
name: "Yes",
|
|
291
|
+
startIcon: "ApproveIcon",
|
|
292
|
+
variant: "contained",
|
|
293
|
+
color: "info",
|
|
294
|
+
type: "text",
|
|
295
|
+
onClick: "deleteComponents",
|
|
296
|
+
size: "small",
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
type: "Control",
|
|
302
|
+
scope: "#/properties/CancelDeleteCompButton",
|
|
303
|
+
options: {
|
|
304
|
+
widget: "Button",
|
|
305
|
+
},
|
|
306
|
+
config: {
|
|
307
|
+
layout: 3,
|
|
308
|
+
main: {
|
|
309
|
+
name: "No",
|
|
310
|
+
startIcon: "ApproveIcon",
|
|
311
|
+
variant: "contained",
|
|
312
|
+
color: "info",
|
|
313
|
+
type: "text",
|
|
314
|
+
onClick: "deletePopUpComponent",
|
|
315
|
+
size: "small",
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
]
|
|
320
|
+
},
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
{
|
|
330
|
+
type: "Control",
|
|
331
|
+
scope: "#/properties/popUpEventSection",
|
|
332
|
+
options: {
|
|
333
|
+
widget: "PopUp"
|
|
334
|
+
},
|
|
335
|
+
config: {
|
|
336
|
+
layout: {
|
|
337
|
+
xs: 12,
|
|
338
|
+
sm: 12,
|
|
339
|
+
md: 12,
|
|
340
|
+
lg: 12,
|
|
341
|
+
},
|
|
342
|
+
main: {
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
elements:
|
|
346
|
+
[
|
|
347
|
+
{
|
|
348
|
+
type: "Control",
|
|
349
|
+
scope: "#/properties/label",
|
|
350
|
+
options: {
|
|
351
|
+
widget: "Box",
|
|
352
|
+
},
|
|
353
|
+
config: {
|
|
354
|
+
layout: 12,
|
|
355
|
+
main: {
|
|
356
|
+
heading: "Are you sure you want to delete ?",
|
|
357
|
+
},
|
|
358
|
+
style:{
|
|
359
|
+
marginTop: "-40px"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
type: "Control",
|
|
365
|
+
scope: "#/properties/EmptyBox",
|
|
366
|
+
options: {
|
|
367
|
+
widget: "EmptyBox",
|
|
368
|
+
},
|
|
369
|
+
config: {
|
|
370
|
+
main:{},
|
|
371
|
+
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
type: "Control",
|
|
376
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
377
|
+
options: {
|
|
378
|
+
widget: "Button",
|
|
379
|
+
},
|
|
380
|
+
config: {
|
|
381
|
+
layout: 3,
|
|
382
|
+
main: {
|
|
383
|
+
name: "Yes",
|
|
384
|
+
startIcon: "ApproveIcon",
|
|
385
|
+
variant: "contained",
|
|
386
|
+
color: "info",
|
|
387
|
+
type: "text",
|
|
388
|
+
onClick: "deleteEvent",
|
|
389
|
+
size: "small",
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
type: "Control",
|
|
395
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
396
|
+
options: {
|
|
397
|
+
widget: "Button",
|
|
398
|
+
},
|
|
399
|
+
config: {
|
|
400
|
+
layout: 3,
|
|
401
|
+
main: {
|
|
402
|
+
name: "No",
|
|
403
|
+
startIcon: "ApproveIcon",
|
|
404
|
+
variant: "contained",
|
|
405
|
+
color: "info",
|
|
406
|
+
type: "text",
|
|
407
|
+
onClick: "deletePopUpEvent",
|
|
408
|
+
size: "small",
|
|
409
|
+
},
|
|
410
|
+
},
|
|
411
|
+
},
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
|
|
236
415
|
{
|
|
237
416
|
type: "Control",
|
|
238
417
|
scope: "#/properties/EmptyBox",
|
|
@@ -107,20 +107,28 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
107
107
|
store.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`)
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
|
-
deleteComponents: function () {
|
|
110
|
+
deleteComponents: function (shouldUpdateDialog: boolean = true) {
|
|
111
111
|
const path = store.searchParams?.get("path");
|
|
112
|
-
const rowId =
|
|
112
|
+
const rowId = localStorage.getItem('rowId');
|
|
113
113
|
store.formData.elements.splice(rowId, 1);
|
|
114
114
|
const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
115
115
|
const data = path ? _.get(response, path) : response;
|
|
116
116
|
store.setFormdata(data);
|
|
117
|
+
if(shouldUpdateDialog){
|
|
118
|
+
store.updateDialog("popUpComponentSection");
|
|
119
|
+
}
|
|
120
|
+
localStorage.removeItem('rowId');
|
|
117
121
|
},
|
|
118
|
-
deleteEvent: function () {
|
|
122
|
+
deleteEvent: function (shouldUpdateDialog: boolean = true) {
|
|
119
123
|
const path = store.searchParams?.get("path");
|
|
120
|
-
const rowId =
|
|
124
|
+
const rowId = localStorage.getItem('rowId');
|
|
121
125
|
store.formData.events.splice(rowId, 1);
|
|
122
126
|
const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
123
127
|
store.setFormdata(_.get(response, path));
|
|
128
|
+
if(shouldUpdateDialog){
|
|
129
|
+
store.updateDialog("popUpEventSection")
|
|
130
|
+
}
|
|
131
|
+
localStorage.removeItem('rowId');
|
|
124
132
|
},
|
|
125
133
|
widgetAddClickHandler: function () {
|
|
126
134
|
if (!Array.isArray(store.formData.elements)) {
|
|
@@ -155,6 +163,16 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
155
163
|
backHandler: function () {
|
|
156
164
|
store.navigate(-1)
|
|
157
165
|
},
|
|
166
|
+
deletePopUpComponent: function(){
|
|
167
|
+
const rowId = dynamicData.path.split(".")[1];
|
|
168
|
+
localStorage.setItem('rowId',rowId);
|
|
169
|
+
store.updateDialog("popUpComponentSection");
|
|
170
|
+
},
|
|
171
|
+
deletePopUpEvent: function(){
|
|
172
|
+
const rowId = dynamicData.path.split(".")[1];
|
|
173
|
+
localStorage.setItem('rowId',rowId);
|
|
174
|
+
store.updateDialog("popUpEventSection");
|
|
175
|
+
},
|
|
158
176
|
}
|
|
159
177
|
};
|
|
160
178
|
|
|
@@ -101,9 +101,17 @@ export default (
|
|
|
101
101
|
this.setPage()
|
|
102
102
|
|
|
103
103
|
},
|
|
104
|
-
deleteEvent:
|
|
104
|
+
deleteEvent: async function () {
|
|
105
|
+
await Component(store, dynamicData, submitHandler, service).deleteEvent(false);
|
|
106
|
+
store.updateDialog("popUpEvent");
|
|
107
|
+
},
|
|
105
108
|
backHandler: function () {
|
|
106
109
|
store.navigate(-1)
|
|
107
110
|
},
|
|
111
|
+
deletePopUpEvent: function(){
|
|
112
|
+
const rowId = dynamicData.path.split(".")[1];
|
|
113
|
+
localStorage.setItem('rowId',rowId);
|
|
114
|
+
store.updateDialog("popUpEvent");
|
|
115
|
+
}
|
|
108
116
|
}
|
|
109
117
|
};
|
|
@@ -62,7 +62,11 @@ export default (funcParams: funcParamsProps) => {
|
|
|
62
62
|
},
|
|
63
63
|
saveHandler: async () => await saveHandler(store, service, submitHandler),
|
|
64
64
|
Edit_Components: Component(store, dynamicData, submitHandler, service).editComponents,
|
|
65
|
-
|
|
65
|
+
|
|
66
|
+
Delete_Components: async function() {
|
|
67
|
+
await Component(store, dynamicData, submitHandler, service).deleteComponents(false);
|
|
68
|
+
store.updateDialog("popUpPageMasterComponent");
|
|
69
|
+
},
|
|
66
70
|
eventAddHandler: function () {
|
|
67
71
|
const id = store.searchParams?.get("id");
|
|
68
72
|
if (!Array.isArray(store.formData.events)) {
|
|
@@ -80,10 +84,22 @@ export default (funcParams: funcParamsProps) => {
|
|
|
80
84
|
store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
|
|
81
85
|
},
|
|
82
86
|
deleteEvent: function () {
|
|
83
|
-
const rowId =
|
|
87
|
+
const rowId = localStorage.getItem('rowId');
|
|
84
88
|
store.formData.events.splice(rowId, 1);
|
|
85
89
|
const response = saveFormdataInLocalStorage(store.ctx.core.data)
|
|
86
90
|
store.setFormdata(response);
|
|
91
|
+
store.updateDialog("popUpPageMasterEvent");
|
|
92
|
+
localStorage.removeItem('rowId');
|
|
93
|
+
},
|
|
94
|
+
deletePopUpComponent: function(){
|
|
95
|
+
const rowId = dynamicData.path.split(".")[1];
|
|
96
|
+
localStorage.setItem('rowId',rowId);
|
|
97
|
+
store.updateDialog("popUpPageMasterComponent");
|
|
98
|
+
},
|
|
99
|
+
deletePopUpEvent: function(){
|
|
100
|
+
const rowId = dynamicData.path.split(".")[1];
|
|
101
|
+
localStorage.setItem('rowId',rowId);
|
|
102
|
+
store.updateDialog("popUpPageMasterEvent");
|
|
87
103
|
},
|
|
88
104
|
}
|
|
89
105
|
};
|
|
@@ -91,7 +91,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
91
91
|
const uiSchema = pageData?.uiSchema;
|
|
92
92
|
window.localStorage.setItem("pageName", config.label);
|
|
93
93
|
window.dispatchEvent(new Event('pageNameChanged'))
|
|
94
|
-
const theme = funcParams
|
|
94
|
+
const theme = funcParams?.store?.theme?.myTheme;
|
|
95
95
|
uiSchema.elements.push(
|
|
96
96
|
|
|
97
97
|
{
|
|
@@ -213,8 +213,6 @@ export default (funcParams: funcParamsProps) => {
|
|
|
213
213
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
214
214
|
serviceHolder: this, eventGroups, formDataHolder
|
|
215
215
|
})
|
|
216
|
-
const jsonres = await fetch('https://jsonplaceholder.typicode.com/todos/1');
|
|
217
|
-
const result = await jsonres.json()
|
|
218
216
|
funcParams.store.setSchema(
|
|
219
217
|
(pre: any) => {
|
|
220
218
|
return {
|