impaktapps-ui-builder 0.0.412-mtreemap.2 → 0.0.412-mtreemap.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.412-mtreemap.2",
3
+ "version": "0.0.412-mtreemap.3",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -9,7 +9,12 @@ const EmptyBox = {
9
9
  widget: "EmptyBox",
10
10
  },
11
11
  config: {
12
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
12
+ layout: {
13
+ xs: 11,
14
+ sm: 11,
15
+ md: 5.5,
16
+ lg: 5.5,
17
+ },
13
18
  main: {
14
19
 
15
20
  },
@@ -30,7 +35,12 @@ const cardLayout = {
30
35
  widget: "SelectInputField",
31
36
  },
32
37
  config: {
33
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
38
+ layout: {
39
+ xs: 11,
40
+ sm: 11,
41
+ md: 5.5,
42
+ lg: 5.5,
43
+ },
34
44
  main: {
35
45
  label: "Screen Size",
36
46
 
@@ -45,7 +55,12 @@ const cardLayout = {
45
55
  widget: "InputField",
46
56
  },
47
57
  config: {
48
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
58
+ layout: {
59
+ xs: 11,
60
+ sm: 11,
61
+ md: 5.5,
62
+ lg: 5.5,
63
+ },
49
64
  main: {
50
65
  label: "Value",
51
66
  type: "number",
@@ -56,7 +71,6 @@ const cardLayout = {
56
71
  },
57
72
  },
58
73
  },
59
- EmptyBox,
60
74
  ],
61
75
  },
62
76
  },
@@ -79,13 +93,17 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
79
93
  widget: "InputField",
80
94
  },
81
95
  config: {
82
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
96
+ layout: {
97
+ xs: 11,
98
+ sm: 11,
99
+ md: 5.5,
100
+ lg: 5.5,
101
+ },
83
102
  main: {
84
103
  label: childLabel || "Labels for Tab",
85
104
  },
86
105
  },
87
106
  },
88
- EmptyBox,
89
107
  EmptyBox
90
108
  ],
91
109
  },
@@ -101,7 +119,12 @@ sizeHolder.options.detail.elements[1] = {
101
119
  widget: "InputField",
102
120
  },
103
121
  config: {
104
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
122
+ layout: {
123
+ xs: 11,
124
+ sm: 11,
125
+ md: 5.5,
126
+ lg: 5.5,
127
+ },
105
128
  main: {
106
129
  label: "Size",
107
130
  },
@@ -116,7 +139,12 @@ const getInputField = (scope: String, label: String) => {
116
139
  widget: "InputField",
117
140
  },
118
141
  config: {
119
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
142
+ layout: {
143
+ xs: 11,
144
+ sm: 11,
145
+ md: 5.5,
146
+ lg: 5.5,
147
+ },
120
148
  main: {
121
149
  label: label,
122
150
  },
@@ -133,7 +161,12 @@ export const getRadioInputField = (scope: String, label: String, options: string
133
161
  widget: "RadioInputField",
134
162
  },
135
163
  config: {
136
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
164
+ layout: {
165
+ xs: 11,
166
+ sm: 11,
167
+ md: 5.5,
168
+ lg: 5.5,
169
+ },
137
170
  main: {
138
171
  label: label,
139
172
 
@@ -184,7 +217,7 @@ export const getSelectField = (scope: string, label: string, options: { label: s
184
217
  widget: "SelectInputField",
185
218
  },
186
219
  config: {
187
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
220
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
188
221
  main: {
189
222
  label: label,
190
223
  type: "text",
@@ -227,8 +260,6 @@ export const buildPropertiesSection = function (type: String) {
227
260
  getInputField("elevation", "Card Elevation"),
228
261
  getInputField("height", "Grid height"),
229
262
  getInputField("justifyContent", "justifyContent"),
230
- EmptyBox,
231
- EmptyBox,
232
263
  cardLayout,
233
264
  ]
234
265
  break;
@@ -242,7 +273,7 @@ export const buildPropertiesSection = function (type: String) {
242
273
  { label: "Horizontal", value: "horizontal" },
243
274
  { label: "Vertical", value: "vertical" },
244
275
  ]),
245
- EmptyBox,
276
+
246
277
  getArrayControl("sectionLabels", "label")
247
278
 
248
279
  ]
@@ -259,15 +290,13 @@ export const buildPropertiesSection = function (type: String) {
259
290
  uiSchema.elements = [
260
291
  getInputField("placeholder", "Placeholder"),
261
292
  EmptyBox,
262
- EmptyBox,
263
293
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
264
294
  ]
265
295
  break;
266
296
  case "TextArea":
267
297
  uiSchema.elements = [
268
298
  getInputField("placeholder", "Placeholder"),
269
- EmptyBox,
270
- EmptyBox]
299
+ EmptyBox,]
271
300
  break;
272
301
 
273
302
  case "SpeedoMeter":
@@ -276,8 +305,7 @@ export const buildPropertiesSection = function (type: String) {
276
305
  getInputField("heading", "Container Heading"),
277
306
  getInputField("heading", "Container Heading"),
278
307
  getInputField("speedoCaption", "Speedometer Caption"),
279
- getInputField("width", "Speedometer Width"),
280
- EmptyBox
308
+ getInputField("width", "Speedometer Width")
281
309
  ]
282
310
  break;
283
311
  case "RankCard":
@@ -285,10 +313,7 @@ export const buildPropertiesSection = function (type: String) {
285
313
  getInputField("rank", "Rank"),
286
314
  getInputField("image", "Image Url"),
287
315
  getInputField("title", "Card Title"),
288
- getInputField("description", "Card Description"),
289
- EmptyBox,
290
- EmptyBox
291
- ];
316
+ getInputField("description", "Card Description")];
292
317
  break;
293
318
  case "LeaderBoard":
294
319
  uiSchema.elements = [
@@ -296,8 +321,6 @@ export const buildPropertiesSection = function (type: String) {
296
321
  getInputField("firstImage", "First Image url"),
297
322
  getInputField("secondImage", "Second Image url"),
298
323
  getInputField("thirdImage", "Third Image url"),
299
- EmptyBox,
300
- EmptyBox,
301
324
  getTextArea("functionCode", "Write Compare Code", false)
302
325
  ];
303
326
  break;
@@ -311,9 +334,7 @@ export const buildPropertiesSection = function (type: String) {
311
334
  getInputField("heading", "Heading"),
312
335
  getInputField("bottomLabel_1", "First BottomLabel"),
313
336
  getInputField("bottomLabel_2", "Second BottomLabel"),
314
- getInputField("bottomLabel_3", "Third BottomLabel"),
315
- EmptyBox,
316
- EmptyBox
337
+ getInputField("bottomLabel_3", "Third BottomLabel")
317
338
  ];
318
339
  break;
319
340
  case "card":
@@ -394,13 +415,11 @@ export const buildPropertiesSection = function (type: String) {
394
415
  uiSchema.elements = [
395
416
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
396
417
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
397
- EmptyBox
398
418
  ]
399
419
  break;
400
420
  case "MultipleSelect":
401
421
  uiSchema.elements = [
402
422
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
403
- EmptyBox,
404
423
  EmptyBox
405
424
  ]
406
425
  break;