impaktapps-ui-builder 0.0.412-mtreemap.4 → 0.0.412-mtreemap.41

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 (44) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1938 -1225
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +13 -13
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +1 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +1 -6
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +23 -5
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +71 -122
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +6 -6
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +8 -5
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +25 -1
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +17 -2
  13. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
  14. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -1
  15. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
  16. package/package.json +1 -1
  17. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +1 -1
  18. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +4 -4
  19. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  20. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  21. package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +0 -1
  22. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -5
  23. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
  24. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +48 -66
  25. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +2 -7
  26. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +43 -21
  27. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +34 -56
  28. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
  29. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -117
  30. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +9 -5
  31. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +14 -0
  32. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +93 -137
  33. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +13 -13
  34. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
  35. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +355 -165
  36. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  37. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +533 -315
  38. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +397 -264
  39. package/src/impaktapps-ui-builder/builder/services/component.ts +25 -7
  40. package/src/impaktapps-ui-builder/builder/services/event.ts +17 -7
  41. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +19 -3
  42. package/src/impaktapps-ui-builder/builder/services/utils.ts +0 -1
  43. package/src/impaktapps-ui-builder/runtime/services/events.ts +28 -34
  44. package/src/impaktapps-ui-builder/runtime/services/service.ts +111 -3
@@ -3,6 +3,6 @@ export declare const buildBasicUiSchema: (config: any) => {
3
3
  pageName: any;
4
4
  name: any;
5
5
  accessorKey: any;
6
- headeing: any;
6
+ heading: any;
7
7
  elements: any[];
8
8
  };
@@ -5,12 +5,7 @@ declare const _default: {
5
5
  widget: string;
6
6
  };
7
7
  config: {
8
- layout: {
9
- xs: number;
10
- sm: number;
11
- md: number;
12
- lg: number;
13
- };
8
+ layout: number;
14
9
  main: {
15
10
  name: string;
16
11
  variant: string;
@@ -42,6 +42,24 @@ export declare const CoreSection: {
42
42
  };
43
43
  };
44
44
  layout?: undefined;
45
+ } | {
46
+ type: string;
47
+ scope: string;
48
+ config: {
49
+ layout: {
50
+ xs: number;
51
+ sm: number;
52
+ md: number;
53
+ lg: number;
54
+ };
55
+ main?: undefined;
56
+ };
57
+ options: {
58
+ widget: string;
59
+ elementLabelProp?: undefined;
60
+ detail?: undefined;
61
+ };
62
+ layout?: undefined;
45
63
  } | {
46
64
  type: string;
47
65
  scope: string;
@@ -93,18 +111,18 @@ export declare const CoreSection: {
93
111
  } | {
94
112
  type: string;
95
113
  scope: string;
96
- options: {
97
- widget: string;
98
- };
99
114
  config: {
100
115
  layout: {
101
116
  xs: number;
102
117
  sm: number;
103
- md?: undefined;
104
- lg?: undefined;
118
+ md: number;
119
+ lg: number;
105
120
  };
106
121
  main?: undefined;
107
122
  };
123
+ options: {
124
+ widget: string;
125
+ };
108
126
  })[];
109
127
  };
110
128
  widget?: undefined;
@@ -1,141 +1,90 @@
1
- export declare const EventSection: {
1
+ export declare const EventSection: (theme: any) => {
2
2
  type: string;
3
3
  elements: {
4
4
  type: string;
5
+ scope: string;
6
+ options: {
7
+ widget: string;
8
+ };
5
9
  config: {
6
10
  main: {
7
- divider: boolean;
8
- };
9
- wrapperStyle: {
10
- border: string;
11
+ headerIcons: {
12
+ elements: {
13
+ widget: {
14
+ type: string;
15
+ scope: string;
16
+ options: {
17
+ widget: string;
18
+ };
19
+ config: {
20
+ main: {
21
+ color: string;
22
+ onClick: string;
23
+ size: string;
24
+ icon: string;
25
+ iconLabel: string;
26
+ styleDefault: boolean;
27
+ };
28
+ style: {
29
+ mt: string;
30
+ };
31
+ };
32
+ };
33
+ }[];
34
+ };
35
+ disableAction: boolean;
36
+ disableSelection: boolean;
37
+ enableDrag: boolean;
11
38
  };
12
39
  };
13
40
  elements: ({
14
- type: string;
15
- scope: string;
16
- options: {
17
- widget: string;
18
- };
19
- config: {
20
- layout: number;
21
- main: {
22
- heading: string;
23
- icon?: undefined;
24
- styleDefault?: undefined;
25
- size?: undefined;
26
- onClick?: undefined;
27
- tooltipMessage?: undefined;
28
- disableAction?: undefined;
29
- disableSelection?: undefined;
30
- enableDrag?: undefined;
31
- };
32
- style: {
33
- fontFamily: string;
34
- fontWeight: string;
35
- paddingLeft: string;
36
- fontSize: string;
37
- float?: undefined;
38
- };
39
- };
40
- elements?: undefined;
41
+ accessorKey: string;
42
+ header: string;
43
+ widget?: undefined;
41
44
  } | {
42
- type: string;
43
- scope: string;
44
- options: {
45
- widget: string;
46
- };
47
- config: {
48
- layout: number;
49
- main: {
50
- icon: string;
51
- styleDefault: boolean;
52
- size: string;
53
- onClick: string;
54
- tooltipMessage: string;
55
- heading?: undefined;
56
- disableAction?: undefined;
57
- disableSelection?: undefined;
58
- enableDrag?: undefined;
45
+ accessorKey: string;
46
+ header: string;
47
+ widget: {
48
+ type: string;
49
+ scope: string;
50
+ options: {
51
+ widget: string;
59
52
  };
60
- style: {
61
- float: string;
62
- fontFamily?: undefined;
63
- fontWeight?: undefined;
64
- paddingLeft?: undefined;
65
- fontSize?: undefined;
53
+ config: {
54
+ main: {
55
+ color: string;
56
+ size: string;
57
+ icon: string;
58
+ tooltipMessage: string;
59
+ onClick: string;
60
+ };
61
+ style: {
62
+ color: any;
63
+ };
66
64
  };
65
+ accessorKeyName?: undefined;
67
66
  };
68
- elements?: undefined;
69
67
  } | {
70
- type: string;
71
- scope: string;
72
- options: {
73
- widget: string;
74
- };
75
- config: {
76
- main: {
77
- disableAction: boolean;
78
- disableSelection: boolean;
79
- enableDrag: boolean;
80
- heading?: undefined;
81
- icon?: undefined;
82
- styleDefault?: undefined;
83
- size?: undefined;
84
- onClick?: undefined;
85
- tooltipMessage?: undefined;
68
+ accessorKey: string;
69
+ header: string;
70
+ widget: {
71
+ type: string;
72
+ scope: string;
73
+ accessorKeyName: string;
74
+ options: {
75
+ widget: string;
86
76
  };
87
- layout?: undefined;
88
- style?: undefined;
89
- };
90
- elements: ({
91
- accessorKey: string;
92
- header: string;
93
- widget?: undefined;
94
- } | {
95
- accessorKey: string;
96
- header: string;
97
- widget: {
98
- type: string;
99
- scope: string;
100
- options: {
101
- widget: string;
102
- };
103
- config: {
104
- main: {
105
- color: string;
106
- size: string;
107
- icon: string;
108
- tooltipMessage: string;
109
- onClick: string;
110
- };
111
- style: {
112
- color: string;
113
- };
77
+ config: {
78
+ main: {
79
+ icon: string;
80
+ color: string;
81
+ tooltipMessage: string;
82
+ onClick: string;
83
+ size?: undefined;
114
84
  };
115
- accessorKeyName?: undefined;
85
+ style?: undefined;
116
86
  };
117
- } | {
118
- accessorKey: string;
119
- header: string;
120
- widget: {
121
- type: string;
122
- scope: string;
123
- accessorKeyName: string;
124
- options: {
125
- widget: string;
126
- };
127
- config: {
128
- main: {
129
- icon: string;
130
- color: string;
131
- tooltipMessage: string;
132
- onClick: string;
133
- size?: undefined;
134
- };
135
- style?: undefined;
136
- };
137
- };
138
- })[];
87
+ };
139
88
  })[];
140
89
  }[];
141
90
  };
@@ -12,10 +12,10 @@ export declare const uploadFile: {
12
12
  backgroundColor: string;
13
13
  };
14
14
  layout: {
15
- lg: number;
16
- md: number;
17
- sm: number;
18
15
  xs: number;
16
+ sm: number;
17
+ md: number;
18
+ lg: number;
19
19
  };
20
20
  };
21
21
  options: {
@@ -34,10 +34,10 @@ export declare const downloadFile: {
34
34
  backgroundColor: string;
35
35
  };
36
36
  layout: {
37
- lg: number;
38
- md: number;
39
- sm: number;
40
37
  xs: number;
38
+ sm: number;
39
+ md: number;
40
+ lg: number;
41
41
  };
42
42
  };
43
43
  options: {
@@ -9,10 +9,8 @@ declare const _default: {
9
9
  };
10
10
  style: {
11
11
  wrapperStyle: {
12
- height: {
13
- xs: number;
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;
@@ -1,4 +1,4 @@
1
- export declare const TableSection: {
1
+ export declare const TableSection: (theme: any) => {
2
2
  type: string;
3
3
  elements: {
4
4
  type: string;
@@ -60,6 +60,30 @@ export declare const TableSection: {
60
60
  onClick: string;
61
61
  tooltipMessage: string;
62
62
  };
63
+ style: {
64
+ color: any;
65
+ };
66
+ };
67
+ };
68
+ accessorKey?: undefined;
69
+ } | {
70
+ header: string;
71
+ field: string;
72
+ flex: number;
73
+ widget: {
74
+ type: string;
75
+ scope: string;
76
+ options: {
77
+ widget: string;
78
+ };
79
+ config: {
80
+ main: {
81
+ icon: string;
82
+ color: string;
83
+ onClick: string;
84
+ tooltipMessage: string;
85
+ };
86
+ style?: undefined;
63
87
  };
64
88
  };
65
89
  accessorKey?: undefined;
@@ -7,7 +7,7 @@ export declare const ValueTab: {
7
7
  options: {
8
8
  detail: {
9
9
  type: string;
10
- elements: {
10
+ elements: ({
11
11
  type: string;
12
12
  scope: string;
13
13
  options: {
@@ -24,7 +24,22 @@ export declare const ValueTab: {
24
24
  label: string;
25
25
  };
26
26
  };
27
- }[];
27
+ } | {
28
+ type: string;
29
+ scope: string;
30
+ options: {
31
+ widget: string;
32
+ };
33
+ config: {
34
+ layout: {
35
+ xs: number;
36
+ sm: number;
37
+ md: number;
38
+ lg: number;
39
+ };
40
+ main?: undefined;
41
+ };
42
+ })[];
28
43
  };
29
44
  };
30
45
  }[];
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.412-mtreemap.4",
3
+ "version": "0.0.412-mtreemap.41",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -4,7 +4,7 @@ export const buildBasicUiSchema = (config) => {
4
4
  pageName: config.name,
5
5
  name: config.name,
6
6
  accessorKey: config.name,
7
- headeing: config.label || config.name,
7
+ heading: config.label || config.name,
8
8
  "elements": []
9
9
  }
10
10
  }
@@ -29,10 +29,10 @@ export default (FormData: any) => {
29
29
  export const createLayoutFormat = (config: any[]) => {
30
30
  if (_.isEmpty(config)) {
31
31
  return {
32
- xs: 11,
33
- sm: 11,
34
- md: 5.5,
35
- lg: 5.5,
32
+ xs: 12,
33
+ sm: 12,
34
+ md: 12,
35
+ lg: 12,
36
36
  }
37
37
  }
38
38
  let data: any = {};
@@ -8,7 +8,7 @@ const FileInput = {
8
8
  widget: "FileInputField",
9
9
  },
10
10
  config: {
11
- layout: 11.5,
11
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
12
12
  main: {
13
13
  required: false,
14
14
  onUpload: "onFileUpload",
@@ -9,7 +9,7 @@ const RadioUiSchema = {
9
9
  widget: "RadioInputField",
10
10
  },
11
11
  config: {
12
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
12
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
13
13
  main: {
14
14
  label: "Enabled",
15
15
  options: ["YES", "NO"],
@@ -25,7 +25,6 @@ export const buildSchema = (config: any) => {
25
25
 
26
26
  }
27
27
  buildRule(config)
28
- console.log(schema)
29
28
  window.localStorage.setItem("schemaDemo",JSON.stringify(schema))
30
29
  return schema;
31
30
  };
@@ -15,10 +15,6 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
15
15
  if (config.barColor) {
16
16
  barGraph.config.barStyle.color = config.barColor;
17
17
  }
18
- // if (config.containerBackground) {
19
- // barGraph.config.containerStyle.background =
20
- // config.containerBackground;
21
- // }
22
18
  if (config.height) {
23
19
  barGraph.config.style.containerStyle.height = config.height;
24
20
  }
@@ -28,6 +24,6 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
28
24
  if (config.leftLabel) {
29
25
  barGraph.config.main.leftLabel = config.leftLabel;
30
26
  }
31
- // barGraph.scope = componentScope;
27
+ barGraph.scope = componentScope;
32
28
  return barGraph;
33
29
  }
@@ -7,7 +7,7 @@ export const buildWrapperSection = (config, componentScope) => {
7
7
  wrapper.scope = componentScope;
8
8
  wrapper.config.main.label = config.label;
9
9
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
10
- wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
10
+ wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
11
11
  if(config.defaultStyle){
12
12
  wrapper.config.defaultStyle = config.defaultStyle ==="YES" ? true : false;
13
13
  }