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

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 (48) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1189 -585
  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/card.d.ts +12 -10
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +5 -5
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +2 -2
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +6 -6
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +8 -5
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +25 -1
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
  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/package.json +1 -1
  18. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +2 -2
  19. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +4 -4
  20. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  21. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +27 -26
  22. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +2 -0
  23. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  24. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -5
  25. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +2 -2
  26. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +48 -66
  27. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +2 -7
  28. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +10 -9
  29. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +21 -28
  30. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -8
  31. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +107 -103
  32. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
  33. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -118
  34. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +9 -5
  35. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +14 -0
  36. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +93 -137
  37. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +1 -1
  38. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
  39. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
  40. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +487 -283
  41. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  42. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +515 -204
  43. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +104 -98
  44. package/src/impaktapps-ui-builder/builder/services/component.ts +39 -21
  45. package/src/impaktapps-ui-builder/builder/services/event.ts +16 -6
  46. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -2
  47. package/src/impaktapps-ui-builder/runtime/services/events.ts +28 -34
  48. package/src/impaktapps-ui-builder/runtime/services/service.ts +112 -4
@@ -1,25 +1,20 @@
1
1
 
2
2
  import _ from "lodash";
3
3
  import emptyBox from "./emptyBox";
4
- const EmptyBox = {
5
- type: "Control",
6
- scope: `#/properties/empty`,
4
+ // const emptyBox = {
5
+ // type: "Control",
6
+ // scope: `#/properties/empty`,
7
7
 
8
- options: {
9
- widget: "EmptyBox",
10
- },
11
- config: {
12
- layout: {
13
- xs: 11,
14
- sm: 11,
15
- md: 5.5,
16
- lg: 5.5,
17
- },
18
- main: {
8
+ // options: {
9
+ // widget: "emptyBox",
10
+ // },
11
+ // config: {
12
+ // layout: { xs: 0, sm: 4, md: 4, lg: 4 },
13
+ // main: {
19
14
 
20
- },
21
- },
22
- };
15
+ // },
16
+ // },
17
+ // };
23
18
  const cardLayout = {
24
19
  type: "Control",
25
20
  scope: "#/properties/cardLayout",
@@ -35,12 +30,7 @@ const cardLayout = {
35
30
  widget: "SelectInputField",
36
31
  },
37
32
  config: {
38
- layout: {
39
- xs: 11,
40
- sm: 11,
41
- md: 5.5,
42
- lg: 5.5,
43
- },
33
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
44
34
  main: {
45
35
  label: "Screen Size",
46
36
 
@@ -55,12 +45,7 @@ const cardLayout = {
55
45
  widget: "InputField",
56
46
  },
57
47
  config: {
58
- layout: {
59
- xs: 11,
60
- sm: 11,
61
- md: 5.5,
62
- lg: 5.5,
63
- },
48
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
64
49
  main: {
65
50
  label: "Value",
66
51
  type: "number",
@@ -71,6 +56,7 @@ const cardLayout = {
71
56
  },
72
57
  },
73
58
  },
59
+ emptyBox
74
60
  ],
75
61
  },
76
62
  },
@@ -79,7 +65,7 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
79
65
  return {
80
66
  type: "Control",
81
67
  scope: `#/properties/${parentScope}`,
82
- layout: 11.5,
68
+ layout: 12,
83
69
  options: {
84
70
  "elementLabelProp": childScope,
85
71
  detail: {
@@ -93,18 +79,14 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
93
79
  widget: "InputField",
94
80
  },
95
81
  config: {
96
- layout: {
97
- xs: 11,
98
- sm: 11,
99
- md: 5.5,
100
- lg: 5.5,
101
- },
82
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
102
83
  main: {
103
84
  label: childLabel || "Labels for Tab",
104
85
  },
105
86
  },
106
87
  },
107
- EmptyBox
88
+ emptyBox,
89
+ emptyBox
108
90
  ],
109
91
  },
110
92
  },
@@ -119,17 +101,13 @@ sizeHolder.options.detail.elements[1] = {
119
101
  widget: "InputField",
120
102
  },
121
103
  config: {
122
- layout: {
123
- xs: 11,
124
- sm: 11,
125
- md: 5.5,
126
- lg: 5.5,
127
- },
104
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
128
105
  main: {
129
106
  label: "Size",
130
107
  },
131
108
  },
132
109
  };
110
+ sizeHolder.options.detail.elements[2] = emptyBox
133
111
  const getInputField = (scope: String, label: String) => {
134
112
  return {
135
113
  type: "Control",
@@ -139,12 +117,7 @@ const getInputField = (scope: String, label: String) => {
139
117
  widget: "InputField",
140
118
  },
141
119
  config: {
142
- layout: {
143
- xs: 11,
144
- sm: 11,
145
- md: 5.5,
146
- lg: 5.5,
147
- },
120
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
148
121
  main: {
149
122
  label: label,
150
123
  },
@@ -161,12 +134,7 @@ export const getRadioInputField = (scope: String, label: String, options: string
161
134
  widget: "RadioInputField",
162
135
  },
163
136
  config: {
164
- layout: {
165
- xs: 11,
166
- sm: 11,
167
- md: 5.5,
168
- lg: 5.5,
169
- },
137
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
170
138
  main: {
171
139
  label: label,
172
140
 
@@ -217,7 +185,7 @@ export const getSelectField = (scope: string, label: string, options: { label: s
217
185
  widget: "SelectInputField",
218
186
  },
219
187
  config: {
220
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
188
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
221
189
  main: {
222
190
  label: label,
223
191
  type: "text",
@@ -244,6 +212,7 @@ export const buildPropertiesSection = function (type: String) {
244
212
  getInputField("graphHeight", "Graph Height"),
245
213
  getInputField("graphWidth", "Graph Width"),
246
214
  getInputField("graphZoomHeight", "Zoom Height"),
215
+ emptyBox
247
216
  ]
248
217
  break;
249
218
  case "InputSlider":
@@ -252,6 +221,7 @@ export const buildPropertiesSection = function (type: String) {
252
221
  getInputField("step", "Step"),
253
222
  getInputField("min", "Min Limit"),
254
223
  getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
224
+ emptyBox,emptyBox
255
225
  ]
256
226
  break;
257
227
  case "DataGrid":
@@ -260,6 +230,8 @@ export const buildPropertiesSection = function (type: String) {
260
230
  getInputField("elevation", "Card Elevation"),
261
231
  getInputField("height", "Grid height"),
262
232
  getInputField("justifyContent", "justifyContent"),
233
+ emptyBox,
234
+ emptyBox,
263
235
  cardLayout,
264
236
  ]
265
237
  break;
@@ -273,6 +245,7 @@ export const buildPropertiesSection = function (type: String) {
273
245
  { label: "Horizontal", value: "horizontal" },
274
246
  { label: "Vertical", value: "vertical" },
275
247
  ]),
248
+ emptyBox,
276
249
 
277
250
  getArrayControl("sectionLabels", "label")
278
251
 
@@ -283,20 +256,20 @@ export const buildPropertiesSection = function (type: String) {
283
256
  getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
284
257
  getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
285
258
  getInputField("maxWidth", "Max. Width"),
286
- EmptyBox
287
259
  ]
288
260
  break;
289
261
  case "Text":
290
262
  uiSchema.elements = [
291
263
  getInputField("placeholder", "Placeholder"),
292
- EmptyBox,
264
+ emptyBox,
265
+ emptyBox,
293
266
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
294
267
  ]
295
268
  break;
296
269
  case "TextArea":
297
270
  uiSchema.elements = [
298
271
  getInputField("placeholder", "Placeholder"),
299
- EmptyBox,]
272
+ emptyBox,emptyBox]
300
273
  break;
301
274
 
302
275
  case "SpeedoMeter":
@@ -305,7 +278,8 @@ export const buildPropertiesSection = function (type: String) {
305
278
  getInputField("heading", "Container Heading"),
306
279
  getInputField("heading", "Container Heading"),
307
280
  getInputField("speedoCaption", "Speedometer Caption"),
308
- getInputField("width", "Speedometer Width")
281
+ getInputField("width", "Speedometer Width"),
282
+ emptyBox
309
283
  ]
310
284
  break;
311
285
  case "RankCard":
@@ -313,7 +287,8 @@ export const buildPropertiesSection = function (type: String) {
313
287
  getInputField("rank", "Rank"),
314
288
  getInputField("image", "Image Url"),
315
289
  getInputField("title", "Card Title"),
316
- getInputField("description", "Card Description")];
290
+ getInputField("description", "Card Description"),
291
+ emptyBox,emptyBox];
317
292
  break;
318
293
  case "LeaderBoard":
319
294
  uiSchema.elements = [
@@ -321,7 +296,8 @@ export const buildPropertiesSection = function (type: String) {
321
296
  getInputField("firstImage", "First Image url"),
322
297
  getInputField("secondImage", "Second Image url"),
323
298
  getInputField("thirdImage", "Third Image url"),
324
- getTextArea("functionCode", "Write Compare Code", false)
299
+ emptyBox,emptyBox,
300
+ getTextArea("functionCode", "Write Compare Code", false),
325
301
  ];
326
302
  break;
327
303
  case "CardSlider":
@@ -334,7 +310,8 @@ export const buildPropertiesSection = function (type: String) {
334
310
  getInputField("heading", "Heading"),
335
311
  getInputField("bottomLabel_1", "First BottomLabel"),
336
312
  getInputField("bottomLabel_2", "Second BottomLabel"),
337
- getInputField("bottomLabel_3", "Third BottomLabel")
313
+ getInputField("bottomLabel_3", "Third BottomLabel"),
314
+ emptyBox,emptyBox
338
315
  ];
339
316
  break;
340
317
  case "card":
@@ -342,7 +319,7 @@ export const buildPropertiesSection = function (type: String) {
342
319
  getInputField("url", "Image Url"),
343
320
  getInputField("label", "Label"),
344
321
  getInputField("description", "Description"),
345
- EmptyBox
322
+ emptyBox
346
323
  ];
347
324
  break;
348
325
  case "Button":
@@ -355,7 +332,7 @@ export const buildPropertiesSection = function (type: String) {
355
332
  { label: "Apply Default Style", value: "true" },
356
333
  { label: "No Style", value: "false" },
357
334
  ]),
358
- EmptyBox
335
+ emptyBox
359
336
  ];
360
337
  break;
361
338
  case "Graph":
@@ -374,6 +351,7 @@ export const buildPropertiesSection = function (type: String) {
374
351
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
375
352
  getInputField("yAxisValue", "Y-AxisValue"),
376
353
  getInputField("xAxisValue", "X-AxisValue"),
354
+ emptyBox,
377
355
  getArrayControl("legendLabels", "label"),
378
356
  getArrayControl("pieArcColors", "color"),
379
357
  ];
@@ -383,6 +361,7 @@ export const buildPropertiesSection = function (type: String) {
383
361
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
384
362
  , getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
385
363
  getInputField("rowSpacing", "Row Spacing"),
364
+ emptyBox,emptyBox
386
365
  ]
387
366
  break;
388
367
 
@@ -390,6 +369,7 @@ export const buildPropertiesSection = function (type: String) {
390
369
  uiSchema.elements = [
391
370
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
392
371
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
372
+ emptyBox,
393
373
  getArrayControl("sectionLabels", "label"),
394
374
  ]
395
375
  break;
@@ -415,12 +395,14 @@ export const buildPropertiesSection = function (type: String) {
415
395
  uiSchema.elements = [
416
396
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
417
397
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
398
+ emptyBox
418
399
  ]
419
400
  break;
420
401
  case "MultipleSelect":
421
402
  uiSchema.elements = [
422
403
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
423
- EmptyBox
404
+ emptyBox,
405
+ emptyBox
424
406
  ]
425
407
  break;
426
408
  }
@@ -5,12 +5,7 @@ export default {
5
5
  widget: "Button",
6
6
  },
7
7
  config: {
8
- layout: {
9
- xs: 11,
10
- sm: 11,
11
- md: 5.5,
12
- lg: 5.5,
13
- },
8
+ layout: 3,
14
9
  main: {
15
10
  name: "Compare",
16
11
  variant: "contained",
@@ -20,7 +15,7 @@ export default {
20
15
  styleDefault:false,
21
16
  icon:"",
22
17
  onClick: "onClick",
23
- size: "small",
18
+ size: "medium",
24
19
  },
25
20
  style: {
26
21
  },
@@ -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
+ 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",
16
+ },
16
17
  },
17
18
  layout: { xs: 12, sm: 12,md: 6,lg: 6, },},
18
19
  elements: [
@@ -51,12 +51,7 @@ export const CoreSection = {
51
51
  widget: "SelectInputField",
52
52
  },
53
53
  config: {
54
- layout: {
55
- xs: 12,
56
- sm: 12,
57
- md: 6,
58
- lg: 6,
59
- },
54
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
60
55
  main: {
61
56
  label: "Column Format",
62
57
 
@@ -67,7 +62,17 @@ export const CoreSection = {
67
62
  type: "Control",
68
63
  scope: "#/properties/proc",
69
64
  config: {
70
- layout: { xs: 11, sm: 11, md: 6, lg: 6 },
65
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
66
+ },
67
+ options: {
68
+ widget: "EmptyBox",
69
+ },
70
+ },
71
+ {
72
+ type: "Control",
73
+ scope: "#/properties/proc",
74
+ config: {
75
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
71
76
  },
72
77
  options: {
73
78
  widget: "EmptyBox",
@@ -116,15 +121,15 @@ export const CoreSection = {
116
121
  },
117
122
  },
118
123
  {
119
- type: 'Control',
120
- scope: '#/properties/emptyBox',
124
+ type: "Control",
125
+ scope: "#/properties/proc",
126
+ config: {
127
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
128
+ },
121
129
  options: {
122
- widget: "EmptyBox"
130
+ widget: "EmptyBox",
123
131
  },
124
- config: {
125
- layout: {xs: 0, sm: 4}
126
- }
127
- }
132
+ },
128
133
  ],
129
134
  },
130
135
  },
@@ -147,12 +152,7 @@ export const OptionArray: any = {
147
152
  widget: "SelectInputField",
148
153
  },
149
154
  config: {
150
- layout: {
151
- xs: 11,
152
- sm: 11,
153
- md: 5.5,
154
- lg: 5.5,
155
- },
155
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
156
156
  main: {
157
157
  label: "Label",
158
158
  },
@@ -166,12 +166,7 @@ export const OptionArray: any = {
166
166
  widget: "InputField",
167
167
  },
168
168
  config: {
169
- layout: {
170
- xs: 11,
171
- sm: 11,
172
- md: 5.5,
173
- lg: 5.5,
174
- },
169
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
175
170
  main: {
176
171
  label: "Value",
177
172
  helperText: 'Number should be in range of 0 to 12',
@@ -200,5 +195,3 @@ export const OptionArraySchema = {
200
195
  },
201
196
  },
202
197
  };
203
-
204
-
@@ -5,8 +5,8 @@ export default {
5
5
  widget: "DateInputField",
6
6
  },
7
7
 
8
- config: {
9
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8
+ config: {
9
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10
10
  main: {
11
11
  label: "",
12
12
  type: "date",
@@ -21,12 +21,7 @@ export const DateTime = {
21
21
  },
22
22
 
23
23
  config: {
24
- layout: {
25
- xs: 11,
26
- sm: 11,
27
- md: 5.5,
28
- lg: 5.5,
29
- },
24
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
30
25
  main: {
31
26
  label: "DateTime",
32
27
  type: "date",