impaktapps-ui-builder 0.0.596 → 0.0.751

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 (82) hide show
  1. package/dist/impaktapps-ui-builder.es.js +2208 -1683
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +14 -14
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +1 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +0 -1
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +1 -1
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +23 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +0 -1
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +170 -82
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +55 -2
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +52 -23
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -301
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
  17. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +50 -2
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/{lazyLoadingTable.d.ts → thoughtOfTheDay.d.ts} +6 -4
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +1 -1
  21. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +3 -0
  22. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
  23. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +8 -2
  24. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -0
  25. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +5 -0
  26. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +4 -4
  27. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
  28. package/package.json +5 -1
  29. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +11 -7
  30. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +1 -1
  31. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  32. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +21 -13
  33. package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +1 -1
  34. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +18 -13
  35. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -2
  36. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +7 -16
  37. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +1 -1
  38. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  39. package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
  40. package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +1 -1
  41. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +19 -4
  42. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +23 -29
  43. package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +6 -0
  44. package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +27 -12
  46. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
  47. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +10 -10
  48. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +111 -56
  49. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -2
  50. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +188 -90
  51. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +11 -11
  52. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -3
  53. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +44 -0
  54. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -2
  55. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +13 -29
  56. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -367
  57. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  58. package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
  59. package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
  60. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +3 -3
  61. package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
  62. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
  63. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +45 -1
  64. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
  65. package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
  66. package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
  67. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +3 -3
  68. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +3 -3
  69. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +37 -2
  70. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +283 -182
  71. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +4 -1
  72. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +344 -130
  73. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -1
  74. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +194 -80
  75. package/src/impaktapps-ui-builder/builder/services/component.ts +105 -26
  76. package/src/impaktapps-ui-builder/builder/services/event.ts +50 -9
  77. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +32 -14
  78. package/src/impaktapps-ui-builder/builder/services/utils.ts +13 -13
  79. package/src/impaktapps-ui-builder/lib/index.ts +1 -1
  80. package/src/impaktapps-ui-builder/runtime/services/events.ts +26 -23
  81. package/src/impaktapps-ui-builder/runtime/services/service.ts +61 -62
  82. package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +0 -15
@@ -1,308 +1,17 @@
1
1
  declare const _default: {
2
2
  type: string;
3
+ scope: string;
4
+ options: {
5
+ widget: string;
6
+ };
3
7
  config: {
4
- main: {
5
- rowSpacing: number;
6
- header: boolean;
7
- label: string;
8
- divider: boolean;
9
- };
10
- style: {};
11
- wrapperStyle: {
12
- position: string;
13
- width: string;
14
- };
15
- componentsBoxStyle: {
16
- display: string;
17
- flexDirection: string;
18
- gap: string;
8
+ layout: {
9
+ xs: number;
10
+ sm: number;
11
+ md: number;
12
+ lg: number;
19
13
  };
14
+ main: {};
20
15
  };
21
- elements: ({
22
- type: string;
23
- scope: string;
24
- config: {
25
- main: {
26
- url: string;
27
- heading?: undefined;
28
- disableAction?: undefined;
29
- disableSelection?: undefined;
30
- };
31
- style: {
32
- imageStyle: {
33
- objectFit: string;
34
- width: string;
35
- height: string;
36
- borderRadius: string;
37
- };
38
- containerStyle: {
39
- objectFit: string;
40
- position: string;
41
- top: {
42
- xs: string;
43
- md: string;
44
- };
45
- left: {
46
- xs: string;
47
- sm: string;
48
- md: string;
49
- };
50
- width: {
51
- xs: string;
52
- sm: string;
53
- md: string;
54
- };
55
- border: string;
56
- height: {
57
- xs: string;
58
- sm: string;
59
- md: string;
60
- };
61
- borderRadius: string;
62
- };
63
- objectFit?: undefined;
64
- position?: undefined;
65
- display?: undefined;
66
- justifyContent?: undefined;
67
- alignItems?: undefined;
68
- color?: undefined;
69
- top?: undefined;
70
- fontSize?: undefined;
71
- left?: undefined;
72
- width?: undefined;
73
- fontWeight?: undefined;
74
- borderRadius?: undefined;
75
- zIndex?: undefined;
76
- textShadow?: undefined;
77
- background?: undefined;
78
- border?: undefined;
79
- height?: undefined;
80
- '@keyframes rotateAnimation'?: undefined;
81
- animation?: undefined;
82
- tableHeadstyle?: undefined;
83
- margin?: undefined;
84
- };
85
- layout: number;
86
- };
87
- options: {
88
- widget: string;
89
- };
90
- elements?: undefined;
91
- } | {
92
- type: string;
93
- scope: string;
94
- config: {
95
- main: {
96
- heading: string;
97
- url?: undefined;
98
- disableAction?: undefined;
99
- disableSelection?: undefined;
100
- };
101
- style: {
102
- objectFit: string;
103
- position: string;
104
- display: string;
105
- justifyContent: string;
106
- alignItems: string;
107
- color: string;
108
- top: {
109
- xs: string;
110
- md: string;
111
- sm?: undefined;
112
- lg?: undefined;
113
- };
114
- fontSize: {
115
- xs: string;
116
- md: string;
117
- };
118
- left: string;
119
- width: string;
120
- fontWeight: string;
121
- borderRadius: string;
122
- zIndex: number;
123
- imageStyle?: undefined;
124
- containerStyle?: undefined;
125
- textShadow?: undefined;
126
- background?: undefined;
127
- border?: undefined;
128
- height?: undefined;
129
- '@keyframes rotateAnimation'?: undefined;
130
- animation?: undefined;
131
- tableHeadstyle?: undefined;
132
- margin?: undefined;
133
- };
134
- layout: number;
135
- };
136
- options: {
137
- widget: string;
138
- };
139
- elements?: undefined;
140
- } | {
141
- type: string;
142
- scope: string;
143
- config: {
144
- main: {
145
- heading: string;
146
- url?: undefined;
147
- disableAction?: undefined;
148
- disableSelection?: undefined;
149
- };
150
- style: {
151
- objectFit: string;
152
- position: string;
153
- display: string;
154
- justifyContent: string;
155
- alignItems: string;
156
- color: string;
157
- top: {
158
- xs: string;
159
- md: string;
160
- sm?: undefined;
161
- lg?: undefined;
162
- };
163
- fontSize: {
164
- xs: string;
165
- md: string;
166
- };
167
- left: string;
168
- width: string;
169
- fontWeight: string;
170
- borderRadius: string;
171
- imageStyle?: undefined;
172
- containerStyle?: undefined;
173
- zIndex?: undefined;
174
- textShadow?: undefined;
175
- background?: undefined;
176
- border?: undefined;
177
- height?: undefined;
178
- '@keyframes rotateAnimation'?: undefined;
179
- animation?: undefined;
180
- tableHeadstyle?: undefined;
181
- margin?: undefined;
182
- };
183
- layout: number;
184
- };
185
- options: {
186
- widget: string;
187
- };
188
- elements?: undefined;
189
- } | {
190
- type: string;
191
- scope: string;
192
- config: {
193
- main: {
194
- heading: string;
195
- url?: undefined;
196
- disableAction?: undefined;
197
- disableSelection?: undefined;
198
- };
199
- style: {
200
- objectFit: string;
201
- position: string;
202
- display: string;
203
- justifyContent: string;
204
- alignItems: string;
205
- textShadow: string;
206
- background: string;
207
- color: string;
208
- top: {
209
- xs: string;
210
- md: string;
211
- sm?: undefined;
212
- lg?: undefined;
213
- };
214
- fontSize: {
215
- xs: string;
216
- md: string;
217
- };
218
- left: {
219
- xs: string;
220
- md: string;
221
- };
222
- width: {
223
- xs: string;
224
- md: string;
225
- };
226
- border: {
227
- xs: string;
228
- md: string;
229
- };
230
- height: {
231
- xs: string;
232
- md: string;
233
- };
234
- '@keyframes rotateAnimation': {
235
- from: {
236
- transform: string;
237
- };
238
- to: {
239
- transform: string;
240
- };
241
- };
242
- animation: string;
243
- borderRadius: string;
244
- zIndex: number;
245
- imageStyle?: undefined;
246
- containerStyle?: undefined;
247
- fontWeight?: undefined;
248
- tableHeadstyle?: undefined;
249
- margin?: undefined;
250
- };
251
- layout: number;
252
- };
253
- options: {
254
- widget: string;
255
- };
256
- elements?: undefined;
257
- } | {
258
- type: string;
259
- scope: string;
260
- options: {
261
- widget: string;
262
- };
263
- elements: any[];
264
- config: {
265
- style: {
266
- tableHeadstyle: {
267
- fontWeight: number;
268
- background: string;
269
- };
270
- top: {
271
- xs: string;
272
- sm: string;
273
- md: string;
274
- lg: string;
275
- };
276
- border: string;
277
- width: string;
278
- left: string;
279
- margin: string;
280
- imageStyle?: undefined;
281
- containerStyle?: undefined;
282
- objectFit?: undefined;
283
- position?: undefined;
284
- display?: undefined;
285
- justifyContent?: undefined;
286
- alignItems?: undefined;
287
- color?: undefined;
288
- fontSize?: undefined;
289
- fontWeight?: undefined;
290
- borderRadius?: undefined;
291
- zIndex?: undefined;
292
- textShadow?: undefined;
293
- background?: undefined;
294
- height?: undefined;
295
- '@keyframes rotateAnimation'?: undefined;
296
- animation?: undefined;
297
- };
298
- main: {
299
- disableAction: boolean;
300
- disableSelection: boolean;
301
- url?: undefined;
302
- heading?: undefined;
303
- };
304
- layout?: undefined;
305
- };
306
- })[];
307
16
  };
308
17
  export default _default;
@@ -5,7 +5,12 @@ declare const _default: {
5
5
  widget: string;
6
6
  };
7
7
  config: {
8
- layout: number;
8
+ layout: {
9
+ xs: number;
10
+ sm: number;
11
+ md: number;
12
+ lg: number;
13
+ };
9
14
  main: {
10
15
  developOnlyProgresBar: boolean;
11
16
  bottomLabel_3: string;
@@ -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
  };
@@ -4,12 +4,14 @@ declare const _default: {
4
4
  options: {
5
5
  widget: string;
6
6
  };
7
- elements: any[];
8
7
  config: {
9
- main: {
10
- onMount: string;
11
- columns: {};
8
+ layout: {
9
+ xs: number;
10
+ sm: number;
11
+ md: number;
12
+ lg: number;
12
13
  };
14
+ main: {};
13
15
  };
14
16
  };
15
17
  export default _default;
@@ -12,20 +12,7 @@ declare const _default: {
12
12
  lg: number;
13
13
  };
14
14
  main: {};
15
- style: {
16
- digitContainer: {
17
- borderRadius: string;
18
- textShawdow: string;
19
- width: string;
20
- };
21
- container: {
22
- backgroundColor: string;
23
- borderRadius: string;
24
- };
25
- containerLabelColor: {
26
- color: string;
27
- };
28
- };
15
+ style: {};
29
16
  };
30
17
  };
31
18
  export default _default;
@@ -35,7 +35,7 @@ export declare const ValidationSection: {
35
35
  layout: {
36
36
  xs: number;
37
37
  sm: number;
38
- md?: undefined;
38
+ md: number;
39
39
  lg?: undefined;
40
40
  };
41
41
  main?: undefined;
@@ -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;
@@ -1,10 +1,10 @@
1
- declare const clearFromLocalStorage: () => void;
2
- export default clearFromLocalStorage;
1
+ declare const clearFromSessionStorage: () => void;
2
+ export default clearFromSessionStorage;
3
3
  export declare const getNavigationHistory: (config: any, path: string | undefined) => {
4
4
  pageName: string;
5
5
  };
6
- export declare const saveFormdataInLocalStorage: (formData: any, path?: string) => any;
7
- export declare const getFormdataFromLocalStorage: (path?: string) => any;
6
+ export declare const saveFormdataInSessionStorage: (formData: any, path?: string) => any;
7
+ export declare const getFormdataFromSessionStorage: (path?: string) => any;
8
8
  export declare function saveHandler(store: any, service: any, submitHandler: any, pageName?: string): Promise<void>;
9
9
  export declare const navigateHandler: (store: any, isSubmitted: any, pageName?: string | boolean) => void;
10
10
  export declare function okHandler(store: any): void;
@@ -6,4 +6,4 @@ export { schema } from "../builder/build/buildUiSchema";
6
6
  export { default as buildConfig } from "../builder/build/buildConfig";
7
7
  export { default as buildUiSchema } from "../builder/build/buildUiSchema";
8
8
  export { buildSchema } from "../builder/build/buildUiSchema";
9
- export { default as clearFromLocalStorage } from "../builder/services/utils";
9
+ export { default as clearFromSessionStorage } from "../builder/services/utils";
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.596",
3
+ "version": "0.0.751",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
7
7
  "preview": "vite preview"
8
8
  },
9
+ "publishConfig": {
10
+ "tag": "alpha"
11
+ },
12
+
9
13
  "dependencies": {
10
14
  "@babel/core": "^7.16.12",
11
15
  "@insertcoinab/gwen-react-components": "^1.2.65",
@@ -2,25 +2,29 @@ import Card from "./uischema/card";
2
2
  import _ from "lodash";
3
3
  import { createLayoutFormat } from "./buildConfig";
4
4
 
5
- export const buildCard = (config,componentScope) =>{
6
- const card: any = _.cloneDeep(Card);
5
+ export const buildCard = (config,componentScope,store) =>{
6
+ const card: any = _.cloneDeep(Card(store.theme.myTheme));
7
7
  if (config.style) {
8
- card.config.style = JSON.parse(config.style)
8
+ card.config.wrapperStyle = JSON.parse(config.style)
9
9
  }
10
- card.elements[0].scope = `#/properties/${config.name}/properties/value`
10
+ card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`
11
11
  card.elements[1].scope = `#/properties/${config.name}/properties/url`
12
- card.elements[2].scope = `#/properties/${config.name}/properties/description`
12
+ card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`
13
13
  if(config.layout){
14
14
  card.config.layout = createLayoutFormat(config.layout)
15
15
  }
16
+ if(config?.titleIcon){
17
+ card.elements[0].elements[0].elements[0].elements[0].config.main.heading = eval(`'\\${config.titleIcon}'`);
18
+ card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px"
19
+ }
16
20
  if(config.label){
17
- card.elements[0].config.main.heading = config.label;
21
+ card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
18
22
  }
19
23
  if(config.url){
20
24
  card.elements[1].config.main.url = config.url;
21
25
  }
22
26
  if(config.description){
23
- card.elements[2].config.main.heading = config.description;
27
+ card.elements[0].elements[0].elements[1].config.main.heading = config.description;
24
28
  }
25
29
 
26
30
 
@@ -42,7 +42,7 @@ export const createLayoutFormat = (config: any[]) => {
42
42
  return data;
43
43
  };
44
44
  export const flatObjectValueInArray = (config: any[]=[]) => {
45
- if (config[0].length < 1) {
45
+ if (config.length < 1) {
46
46
  return
47
47
  }
48
48
  const keyName = Object.keys(config[0])[0]
@@ -8,7 +8,7 @@ const FileInput = {
8
8
  widget: "FileInputField",
9
9
  },
10
10
  config: {
11
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
11
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
12
12
  main: {
13
13
  required: false,
14
14
  onUpload: "onFileUpload",