impaktapps-ui-builder 0.0.382-alpha.44 → 0.0.382-alpha.550

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 (43) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1701 -1197
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +12 -12
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +0 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +2 -35
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +12 -10
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +18 -15
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +121 -70
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +1 -1
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +102 -53
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +2 -17
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +2 -17
  14. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
  15. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +3 -2
  16. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
  17. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +0 -1
  18. package/package.json +1 -1
  19. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +0 -1
  20. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +5 -5
  21. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -3
  22. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +27 -50
  23. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +49 -30
  24. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +10 -9
  25. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +36 -16
  26. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +6 -1
  27. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  28. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +125 -99
  29. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -1
  30. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  31. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +12 -2
  32. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +6 -1
  33. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +58 -84
  34. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +6 -1
  35. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
  36. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +12 -12
  37. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +442 -342
  38. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +496 -329
  39. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +353 -398
  40. package/src/impaktapps-ui-builder/builder/services/component.ts +25 -7
  41. package/src/impaktapps-ui-builder/builder/services/event.ts +17 -9
  42. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +19 -3
  43. package/src/impaktapps-ui-builder/runtime/services/service.ts +14 -6
@@ -15,10 +15,10 @@ 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
- // }
18
+ if (config.containerBackground) {
19
+ barGraph.config.containerStyle.background =
20
+ config.containerBackground;
21
+ }
22
22
  if (config.height) {
23
23
  barGraph.config.style.containerStyle.height = config.height;
24
24
  }
@@ -28,6 +28,6 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
28
28
  if (config.leftLabel) {
29
29
  barGraph.config.main.leftLabel = config.leftLabel;
30
30
  }
31
- // barGraph.scope = componentScope;
31
+ barGraph.scope = componentScope;
32
32
  return barGraph;
33
33
  }
@@ -4,10 +4,8 @@ import _ from "lodash";
4
4
 
5
5
  export const buildWrapperSection = (config,componentScope) =>{
6
6
  const wrapper: any = _.cloneDeep(WrapperSection);
7
- wrapper.scope = componentScope;
8
7
  wrapper.config.main.label = config.label;
9
8
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
10
- wrapper.config.main.isAccordion = config.isAccordion==="YES"?true:false;
11
9
  if (config.style) {
12
10
  wrapper.config.style = JSON.parse(config.style)
13
11
  }
@@ -15,4 +13,4 @@ export const buildWrapperSection = (config,componentScope) =>{
15
13
  wrapper.config.layout = createLayoutFormat(config.layout)
16
14
  }
17
15
  return wrapper;
18
- }
16
+ }
@@ -11,7 +11,7 @@ export const APISection = {
11
11
  widget: "SelectInputField",
12
12
  },
13
13
  config: {
14
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
14
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
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: 4, md: 4, lg: 4 },
29
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
30
30
  main: {
31
31
  label: "Path",
32
32
  type: "text",
@@ -35,28 +35,6 @@ 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
- },
60
38
  {
61
39
  type: "Control",
62
40
  scope: "#/properties/headers",
@@ -73,7 +51,12 @@ export const APISection = {
73
51
  widget: "InputField",
74
52
  },
75
53
  config: {
76
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
54
+ layout: {
55
+ xs: 11,
56
+ sm: 11,
57
+ md: 5.5,
58
+ lg: 5.5,
59
+ },
77
60
  main: {
78
61
  label: "Key",
79
62
  },
@@ -87,23 +70,17 @@ export const APISection = {
87
70
  widget: "InputField",
88
71
  },
89
72
  config: {
90
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
73
+ layout: {
74
+ xs: 11,
75
+ sm: 11,
76
+ md: 5.5,
77
+ lg: 5.5,
78
+ },
91
79
  main: {
92
80
  label: "Value",
93
81
  },
94
82
  },
95
83
  },
96
- {
97
- type: "Control",
98
- scope: "#/properties/emptyBox",
99
-
100
- options: {
101
- widget: "EmptyBox",
102
- },
103
- config: {
104
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
105
- },
106
- },
107
84
  ],
108
85
  },
109
86
  },
@@ -124,7 +101,12 @@ export const APISection = {
124
101
  widget: "InputField",
125
102
  },
126
103
  config: {
127
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
104
+ layout: {
105
+ xs: 11,
106
+ sm: 11,
107
+ md: 5.5,
108
+ lg: 5.5,
109
+ },
128
110
  main: {
129
111
  label: "Key",
130
112
  },
@@ -138,23 +120,18 @@ export const APISection = {
138
120
  widget: "InputField",
139
121
  },
140
122
  config: {
141
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
123
+ layout: {
124
+ xs: 11,
125
+ sm: 11,
126
+ md: 5.5,
127
+ lg: 5.5,
128
+ },
142
129
  main: {
143
130
  label: "Value",
144
131
  },
145
132
  },
146
133
  },
147
- {
148
- type: "Control",
149
- scope: "#/properties/emptyBox",
150
-
151
- options: {
152
- widget: "EmptyBox",
153
- },
154
- config: {
155
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
156
- },
157
- },
134
+
158
135
  ],
159
136
  },
160
137
  },
@@ -8,7 +8,12 @@ const EmptyBox = {
8
8
  widget: "EmptyBox",
9
9
  },
10
10
  config: {
11
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
11
+ layout: {
12
+ xs: 11,
13
+ sm: 11,
14
+ md: 5.5,
15
+ lg: 5.5,
16
+ },
12
17
  main: {
13
18
 
14
19
  },
@@ -29,7 +34,12 @@ const cardLayout = {
29
34
  widget: "SelectInputField",
30
35
  },
31
36
  config: {
32
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
37
+ layout: {
38
+ xs: 11,
39
+ sm: 11,
40
+ md: 5.5,
41
+ lg: 5.5,
42
+ },
33
43
  main: {
34
44
  label: "Screen Size",
35
45
 
@@ -44,7 +54,12 @@ const cardLayout = {
44
54
  widget: "InputField",
45
55
  },
46
56
  config: {
47
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
57
+ layout: {
58
+ xs: 11,
59
+ sm: 11,
60
+ md: 5.5,
61
+ lg: 5.5,
62
+ },
48
63
  main: {
49
64
  label: "Value",
50
65
  type:"number",
@@ -55,7 +70,6 @@ const cardLayout = {
55
70
  },
56
71
  },
57
72
  },
58
- EmptyBox,
59
73
  ],
60
74
  },
61
75
  },
@@ -78,13 +92,17 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
78
92
  widget: "InputField",
79
93
  },
80
94
  config: {
81
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
95
+ layout: {
96
+ xs: 11,
97
+ sm: 11,
98
+ md: 5.5,
99
+ lg: 5.5,
100
+ },
82
101
  main: {
83
102
  label: childLabel || "Labels for Tab",
84
103
  },
85
104
  },
86
105
  },
87
- EmptyBox,
88
106
  EmptyBox
89
107
  ],
90
108
  },
@@ -100,7 +118,12 @@ sizeHolder.options.detail.elements[1] = {
100
118
  widget: "InputField",
101
119
  },
102
120
  config: {
103
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
121
+ layout: {
122
+ xs: 11,
123
+ sm: 11,
124
+ md: 5.5,
125
+ lg: 5.5,
126
+ },
104
127
  main: {
105
128
  label: "Size",
106
129
  },
@@ -115,7 +138,12 @@ const getInputField = (scope: String, label: String) => {
115
138
  widget: "InputField",
116
139
  },
117
140
  config: {
118
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
141
+ layout: {
142
+ xs: 11,
143
+ sm: 11,
144
+ md: 5.5,
145
+ lg: 5.5,
146
+ },
119
147
  main: {
120
148
  label: label,
121
149
  },
@@ -132,7 +160,12 @@ const getRadioInputField = (scope: String, label: String, options: string[]) =>
132
160
  widget: "RadioInputField",
133
161
  },
134
162
  config: {
135
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
163
+ layout: {
164
+ xs: 11,
165
+ sm: 11,
166
+ md: 5.5,
167
+ lg: 5.5,
168
+ },
136
169
  main: {
137
170
  label: label,
138
171
 
@@ -183,7 +216,7 @@ export const getSelectField = (scope: string, label: string, options: { label: s
183
216
  widget: "SelectInputField",
184
217
  },
185
218
  config: {
186
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
219
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
187
220
  main: {
188
221
  label: label,
189
222
  type: "text",
@@ -208,8 +241,6 @@ export const buildPropertiesSection = function (type: String) {
208
241
  getInputField("elevation", "Card Elevation"),
209
242
  getInputField("height", "Grid height"),
210
243
  getInputField("justifyContent", "justifyContent"),
211
- EmptyBox,
212
- EmptyBox,
213
244
  cardLayout,
214
245
  ]
215
246
  break;
@@ -223,7 +254,7 @@ export const buildPropertiesSection = function (type: String) {
223
254
  { label: "Horizontal", value: "horizontal" },
224
255
  { label: "Vertical", value: "vertical" },
225
256
  ]),
226
- EmptyBox,
257
+
227
258
  getArrayControl("sectionLabels", "label")
228
259
 
229
260
  ]
@@ -240,15 +271,13 @@ export const buildPropertiesSection = function (type: String) {
240
271
  uiSchema.elements = [
241
272
  getInputField("placeholder", "Placeholder"),
242
273
  EmptyBox,
243
- EmptyBox,
244
274
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
245
275
  ]
246
276
  break;
247
277
  case "TextArea":
248
278
  uiSchema.elements = [
249
279
  getInputField("placeholder", "Placeholder"),
250
- EmptyBox,
251
- EmptyBox]
280
+ EmptyBox,]
252
281
  break;
253
282
 
254
283
  case "SpeedoMeter":
@@ -257,8 +286,7 @@ export const buildPropertiesSection = function (type: String) {
257
286
  getInputField("heading", "Container Heading"),
258
287
  getInputField("heading", "Container Heading"),
259
288
  getInputField("speedoCaption", "Speedometer Caption"),
260
- getInputField("width", "Speedometer Width"),
261
- EmptyBox
289
+ getInputField("width", "Speedometer Width")
262
290
  ]
263
291
  break;
264
292
  case "RankCard":
@@ -266,10 +294,7 @@ export const buildPropertiesSection = function (type: String) {
266
294
  getInputField("rank", "Rank"),
267
295
  getInputField("image", "Image Url"),
268
296
  getInputField("title", "Card Title"),
269
- getInputField("description", "Card Description"),
270
- EmptyBox,
271
- EmptyBox
272
- ];
297
+ getInputField("description", "Card Description")];
273
298
  break;
274
299
  case "LeaderBoard":
275
300
  uiSchema.elements = [
@@ -277,8 +302,6 @@ export const buildPropertiesSection = function (type: String) {
277
302
  getInputField("firstImage", "First Image url"),
278
303
  getInputField("secondImage", "Second Image url"),
279
304
  getInputField("thirdImage", "Third Image url"),
280
- EmptyBox,
281
- EmptyBox,
282
305
  getTextArea("functionCode", "Write Compare Code", false)
283
306
  ];
284
307
  break;
@@ -292,9 +315,7 @@ export const buildPropertiesSection = function (type: String) {
292
315
  getInputField("heading", "Heading"),
293
316
  getInputField("bottomLabel_1", "First BottomLabel"),
294
317
  getInputField("bottomLabel_2", "Second BottomLabel"),
295
- getInputField("bottomLabel_3", "Third BottomLabel"),
296
- EmptyBox,
297
- EmptyBox
318
+ getInputField("bottomLabel_3", "Third BottomLabel")
298
319
  ];
299
320
  break;
300
321
  case "card":
@@ -337,7 +358,7 @@ export const buildPropertiesSection = function (type: String) {
337
358
  ];
338
359
  break;
339
360
  case "WrapperSection":
340
- uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), getRadioInputField("isAccordion", "Accordion", ["YES", "No"]), EmptyBox]
361
+ uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), EmptyBox]
341
362
  break;
342
363
 
343
364
  case "TabSection":
@@ -367,13 +388,11 @@ export const buildPropertiesSection = function (type: String) {
367
388
  uiSchema.elements = [
368
389
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
369
390
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
370
- EmptyBox
371
391
  ]
372
392
  break;
373
393
  case "MultipleSelect":
374
394
  uiSchema.elements = [
375
395
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
376
- EmptyBox,
377
396
  EmptyBox
378
397
  ]
379
398
  break;
@@ -4,15 +4,16 @@ export default {
4
4
  main: {
5
5
  rowSpacing: 0.5,
6
6
  },
7
-
8
- componentsBoxStyle: {
9
- position : "relative",
10
- color: "white",
11
- height: {xs:"120px",md:"160px"},
12
- width: "100%",
13
- textAlign: "left",
14
- background: "#3f51b5",
15
- borderRadius: "20px",
7
+ style: {
8
+ wrapperStyle: {
9
+ position : "relative",
10
+ color: "white",
11
+ height: {xs:"120px",md:"160px"},
12
+ width: "100%",
13
+ textAlign: "left",
14
+ background: "#3f51b5",
15
+ borderRadius: "20px",
16
+ },
16
17
  },
17
18
  layout: { xs: 12, sm: 12,md: 6,lg: 6, },},
18
19
  elements: [
@@ -9,7 +9,7 @@ export const CoreSection = {
9
9
  widget: "SelectInputField",
10
10
  },
11
11
  config: {
12
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
12
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
13
13
  main: {
14
14
  label: "Type",
15
15
  type: "text",
@@ -24,7 +24,12 @@ export const CoreSection = {
24
24
  widget: "InputField",
25
25
  },
26
26
  config: {
27
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
27
+ layout: {
28
+ xs: 12,
29
+ sm: 12,
30
+ md: 6,
31
+ lg: 6,
32
+ },
28
33
  main: {
29
34
  label: "Name",
30
35
  },
@@ -38,16 +43,31 @@ export const CoreSection = {
38
43
  widget: "InputField",
39
44
  },
40
45
  config: {
41
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
46
+ layout: {
47
+ xs: 12,
48
+ sm: 12,
49
+ md: 6,
50
+ lg: 6,
51
+ },
42
52
  main: {
43
53
  label: "Label",
44
54
  },
45
55
  },
46
56
  },
57
+ {
58
+ type: "Control",
59
+ scope: "#/properties/proc",
60
+ config: {
61
+ layout: { xs: 11, sm: 11, md: 6, lg: 6 },
62
+ },
63
+ options: {
64
+ widget: "EmptyBox",
65
+ },
66
+ },
47
67
  {
48
68
  type: "Control",
49
69
  scope: "#/properties/layout",
50
- layout: 12,
70
+ layout: 11.5,
51
71
  options: {
52
72
  "elementLabelProp": "key",
53
73
  detail: {
@@ -61,7 +81,12 @@ export const CoreSection = {
61
81
  widget: "SelectInputField",
62
82
  },
63
83
  config: {
64
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
84
+ layout: {
85
+ xs: 11,
86
+ sm: 11,
87
+ md: 5.5,
88
+ lg: 5.5,
89
+ },
65
90
  main: {
66
91
  label: "Screen Size",
67
92
 
@@ -76,7 +101,12 @@ export const CoreSection = {
76
101
  widget: "InputField",
77
102
  },
78
103
  config: {
79
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
104
+ layout: {
105
+ xs: 11,
106
+ sm: 11,
107
+ md: 5.5,
108
+ lg: 5.5,
109
+ },
80
110
  main: {
81
111
  label: "Value",
82
112
  type:"number",
@@ -86,16 +116,6 @@ export const CoreSection = {
86
116
  },
87
117
  },
88
118
  },
89
- {
90
- type: 'Control',
91
- scope: '#/properties/emptyBox',
92
- options: {
93
- widget: "EmptyBox"
94
- },
95
- config: {
96
- layout: {xs: 0, sm: 4}
97
- }
98
- }
99
119
  ],
100
120
  },
101
121
  },
@@ -6,7 +6,12 @@ export default {
6
6
  },
7
7
 
8
8
  config: {
9
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
9
+ layout: {
10
+ xs: 11,
11
+ sm: 11,
12
+ md: 5.5,
13
+ lg: 5.5,
14
+ },
10
15
  main: {
11
16
  label: "",
12
17
  type: "date",
@@ -6,7 +6,7 @@ export default {
6
6
  },
7
7
 
8
8
  config: {
9
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
9
+ layout:{xs:12,sm:12,md:5.5,lg:5.5},
10
10
  main: {},
11
11
  style:{}
12
12
  },