impaktapps-ui-builder 0.0.382-alpha.19 → 0.0.382-alpha.20

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.
@@ -70,6 +70,24 @@ export declare const APISection: {
70
70
  };
71
71
  };
72
72
  layout?: undefined;
73
+ } | {
74
+ type: string;
75
+ scope: string;
76
+ options: {
77
+ widget: string;
78
+ elementLabelProp?: undefined;
79
+ detail?: undefined;
80
+ };
81
+ config: {
82
+ layout: {
83
+ xs: number;
84
+ sm: number;
85
+ md: number;
86
+ lg: number;
87
+ };
88
+ main?: undefined;
89
+ };
90
+ layout?: undefined;
73
91
  } | {
74
92
  type: string;
75
93
  scope: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.382-alpha.19",
3
+ "version": "0.0.382-alpha.20",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -11,7 +11,7 @@ export const APISection = {
11
11
  widget: "SelectInputField",
12
12
  },
13
13
  config: {
14
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
14
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
15
15
  main: {
16
16
  label: "Method",
17
17
  type: "text",
@@ -26,7 +26,7 @@ export const APISection = {
26
26
  widget: "InputField",
27
27
  },
28
28
  config: {
29
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
29
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
30
30
  main: {
31
31
  label: "Path",
32
32
  type: "text",
@@ -35,6 +35,28 @@ export const APISection = {
35
35
  },
36
36
  },
37
37
  },
38
+ {
39
+ type: "Control",
40
+ scope: "#/properties/emptyBox",
41
+
42
+ options: {
43
+ widget: "EmptyBox",
44
+ },
45
+ config: {
46
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
47
+ },
48
+ },
49
+ {
50
+ type: "Control",
51
+ scope: "#/properties/emptyBox",
52
+
53
+ options: {
54
+ widget: "EmptyBox",
55
+ },
56
+ config: {
57
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
58
+ },
59
+ },
38
60
  {
39
61
  type: "Control",
40
62
  scope: "#/properties/headers",
@@ -51,12 +73,7 @@ export const APISection = {
51
73
  widget: "InputField",
52
74
  },
53
75
  config: {
54
- layout: {
55
- xs: 11,
56
- sm: 11,
57
- md: 5.5,
58
- lg: 5.5,
59
- },
76
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
60
77
  main: {
61
78
  label: "Key",
62
79
  },
@@ -70,12 +87,7 @@ export const APISection = {
70
87
  widget: "InputField",
71
88
  },
72
89
  config: {
73
- layout: {
74
- xs: 11,
75
- sm: 11,
76
- md: 5.5,
77
- lg: 5.5,
78
- },
90
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
79
91
  main: {
80
92
  label: "Value",
81
93
  },
@@ -101,12 +113,7 @@ export const APISection = {
101
113
  widget: "InputField",
102
114
  },
103
115
  config: {
104
- layout: {
105
- xs: 11,
106
- sm: 11,
107
- md: 5.5,
108
- lg: 5.5,
109
- },
116
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
110
117
  main: {
111
118
  label: "Key",
112
119
  },
@@ -120,12 +127,7 @@ export const APISection = {
120
127
  widget: "InputField",
121
128
  },
122
129
  config: {
123
- layout: {
124
- xs: 11,
125
- sm: 11,
126
- md: 5.5,
127
- lg: 5.5,
128
- },
130
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
129
131
  main: {
130
132
  label: "Value",
131
133
  },
@@ -226,6 +226,7 @@ export const buildPropertiesSection = function (type: String) {
226
226
  getInputField("elevation", "Card Elevation"),
227
227
  getInputField("height", "Grid height"),
228
228
  getInputField("justifyContent", "justifyContent"),
229
+ EmptyBox,
229
230
  cardLayout,
230
231
  ]
231
232
  break;
@@ -239,7 +240,7 @@ export const buildPropertiesSection = function (type: String) {
239
240
  { label: "Horizontal", value: "horizontal" },
240
241
  { label: "Vertical", value: "vertical" },
241
242
  ]),
242
-
243
+ EmptyBox,
243
244
  getArrayControl("sectionLabels", "label")
244
245
 
245
246
  ]
@@ -256,13 +257,15 @@ export const buildPropertiesSection = function (type: String) {
256
257
  uiSchema.elements = [
257
258
  getInputField("placeholder", "Placeholder"),
258
259
  EmptyBox,
260
+ EmptyBox,
259
261
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
260
262
  ]
261
263
  break;
262
264
  case "TextArea":
263
265
  uiSchema.elements = [
264
266
  getInputField("placeholder", "Placeholder"),
265
- EmptyBox,]
267
+ EmptyBox,
268
+ EmptyBox]
266
269
  break;
267
270
 
268
271
  case "SpeedoMeter":
@@ -271,7 +274,8 @@ export const buildPropertiesSection = function (type: String) {
271
274
  getInputField("heading", "Container Heading"),
272
275
  getInputField("heading", "Container Heading"),
273
276
  getInputField("speedoCaption", "Speedometer Caption"),
274
- getInputField("width", "Speedometer Width")
277
+ getInputField("width", "Speedometer Width"),
278
+ EmptyBox
275
279
  ]
276
280
  break;
277
281
  case "RankCard":
@@ -279,7 +283,10 @@ export const buildPropertiesSection = function (type: String) {
279
283
  getInputField("rank", "Rank"),
280
284
  getInputField("image", "Image Url"),
281
285
  getInputField("title", "Card Title"),
282
- getInputField("description", "Card Description")];
286
+ getInputField("description", "Card Description"),
287
+ EmptyBox,
288
+ EmptyBox
289
+ ];
283
290
  break;
284
291
  case "LeaderBoard":
285
292
  uiSchema.elements = [
@@ -287,6 +294,7 @@ export const buildPropertiesSection = function (type: String) {
287
294
  getInputField("firstImage", "First Image url"),
288
295
  getInputField("secondImage", "Second Image url"),
289
296
  getInputField("thirdImage", "Third Image url"),
297
+ EmptyBox,
290
298
  getTextArea("functionCode", "Write Compare Code", false)
291
299
  ];
292
300
  break;
@@ -300,7 +308,9 @@ export const buildPropertiesSection = function (type: String) {
300
308
  getInputField("heading", "Heading"),
301
309
  getInputField("bottomLabel_1", "First BottomLabel"),
302
310
  getInputField("bottomLabel_2", "Second BottomLabel"),
303
- getInputField("bottomLabel_3", "Third BottomLabel")
311
+ getInputField("bottomLabel_3", "Third BottomLabel"),
312
+ EmptyBox,
313
+ EmptyBox
304
314
  ];
305
315
  break;
306
316
  case "card":
@@ -343,7 +353,7 @@ export const buildPropertiesSection = function (type: String) {
343
353
  ];
344
354
  break;
345
355
  case "WrapperSection":
346
- uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), EmptyBox]
356
+ uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), EmptyBox, EmptyBox]
347
357
  break;
348
358
 
349
359
  case "TabSection":
@@ -373,11 +383,13 @@ export const buildPropertiesSection = function (type: String) {
373
383
  uiSchema.elements = [
374
384
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
375
385
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
386
+ EmptyBox
376
387
  ]
377
388
  break;
378
389
  case "MultipleSelect":
379
390
  uiSchema.elements = [
380
391
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
392
+ EmptyBox,
381
393
  EmptyBox
382
394
  ]
383
395
  break;
@@ -26,7 +26,7 @@ export default (
26
26
  const schema: any = _.cloneDeep(EventSchema)
27
27
  if (handlerType) {
28
28
  if (handlerType === "custom") {
29
- uiSchema.elements[0].elements[0].elements[2] = getTextArea("eventCode", "Write Custom Code", false)
29
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false)
30
30
  schema.required = ["eventType", "Handler", "eventCode"]
31
31
 
32
32
  } else if (handlerType === "api") {
@@ -38,10 +38,10 @@ export default (
38
38
  { label: "Download File", value: "downloadFile" },
39
39
  { label: "Download Blob File", value: "downloadBlobFile" }
40
40
  ])
41
- uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 });
41
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, 12);
42
42
  schema.required = ["eventType", "Handler", "inBuiltFunctionType"]
43
43
  } else if (handlerType === "refresh") {
44
- uiSchema.elements[0].elements[0].elements[2] = refreshSectionUiSchema;
44
+ uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
45
45
  schema.properties.refreshElements.required = ["value"]
46
46
  schema.properties.refreshElements.items.required = ["value"]
47
47
  schema.required = ["eventType", "Handler", "refreshElements"]