impaktapps-ui-builder 0.0.412-mtreemap.1 → 0.0.412-mtreemap.11

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 (31) hide show
  1. package/dist/impaktapps-ui-builder.es.js +349 -297
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +9 -9
  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/card.d.ts +12 -10
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +5 -5
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +1 -1
  10. package/package.json +1 -1
  11. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +2 -2
  12. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +27 -26
  13. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +2 -0
  14. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
  15. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +39 -38
  16. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +10 -9
  17. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +21 -28
  18. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -8
  19. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +155 -102
  20. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -1
  21. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +14 -0
  22. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +1 -1
  23. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
  24. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
  25. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +318 -285
  26. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  27. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +346 -208
  28. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +70 -23
  29. package/src/impaktapps-ui-builder/builder/services/component.ts +17 -17
  30. package/src/impaktapps-ui-builder/builder/services/event.ts +7 -5
  31. package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -1
@@ -3,6 +3,6 @@ export declare const buildBasicUiSchema: (config: any) => {
3
3
  pageName: any;
4
4
  name: any;
5
5
  accessorKey: any;
6
- header: any;
6
+ headeing: any;
7
7
  elements: any[];
8
8
  };
@@ -4,17 +4,19 @@ declare const _default: {
4
4
  main: {
5
5
  rowSpacing: number;
6
6
  };
7
- componentsBoxStyle: {
8
- position: string;
9
- color: string;
10
- height: {
11
- xs: string;
12
- md: string;
7
+ style: {
8
+ componentsBoxStyle: {
9
+ position: string;
10
+ color: string;
11
+ height: {
12
+ xs: string;
13
+ md: string;
14
+ };
15
+ width: string;
16
+ textAlign: string;
17
+ background: string;
18
+ borderRadius: string;
13
19
  };
14
- width: string;
15
- textAlign: string;
16
- background: string;
17
- borderRadius: string;
18
20
  };
19
21
  layout: {
20
22
  xs: number;
@@ -111,18 +111,18 @@ export declare const CoreSection: {
111
111
  } | {
112
112
  type: string;
113
113
  scope: string;
114
- options: {
115
- widget: string;
116
- };
117
114
  config: {
118
115
  layout: {
119
116
  xs: number;
120
117
  sm: number;
121
- md?: undefined;
122
- lg?: undefined;
118
+ md: number;
119
+ lg: number;
123
120
  };
124
121
  main?: undefined;
125
122
  };
123
+ options: {
124
+ widget: string;
125
+ };
126
126
  })[];
127
127
  };
128
128
  widget?: undefined;
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  main: {
5
5
  rowSpacing: number;
6
6
  divider: boolean;
7
+ label: string;
7
8
  };
8
9
  defaultStyle: boolean;
9
10
  };
@@ -5,7 +5,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
5
5
  setPage: () => Promise<void>;
6
6
  refreshPage: (handlerType: any, store: any) => void;
7
7
  getFormData: () => any;
8
- getUiSchema: () => Promise<any>;
8
+ getUiSchema: () => any;
9
9
  getSchema: () => {
10
10
  type: string;
11
11
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.412-mtreemap.1",
3
+ "version": "0.0.412-mtreemap.11",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -4,7 +4,7 @@ export const buildBasicUiSchema = (config) => {
4
4
  pageName: config.name,
5
5
  name: config.name,
6
6
  accessorKey: config.name,
7
- header: config.label || config.name,
7
+ headeing: config.label || config.name,
8
8
  "elements": []
9
9
  }
10
- }
10
+ }
@@ -3,37 +3,38 @@ import { HorizontalBarGraph } from "./uischema/graph";
3
3
  import _ from "lodash";
4
4
 
5
5
 
6
- const buildHorizontalBarGraph = (config: any, componentScope: string) => {
7
- const horizontalBarGraph: any = _.cloneDeep(HorizontalBarGraph);
8
- horizontalBarGraph.scope = componentScope;
9
- if (config.layout) {
10
- horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
11
- }
12
- horizontalBarGraph.scope = componentScope;
13
- horizontalBarGraph.config.main.header = config.heading;
14
- if (config.barColor) {
15
- horizontalBarGraph.config.barStyle.color = config.barColor;
16
- }
17
- if (config.containerBackground) {
18
- horizontalBarGraph.config.containerStyle.background =
19
- config.containerBackground;
20
- }
21
- if (config.height) {
22
- horizontalBarGraph.config.style =
6
+ const buildHorizontalBarGraph = (config:any,componentScope:string) => {
7
+ const horizontalBarGraph: any = _.cloneDeep(HorizontalBarGraph);
8
+ horizontalBarGraph.scope = componentScope;
9
+ if (config.layout) {
10
+ horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
11
+ }
12
+ horizontalBarGraph.scope = componentScope;
13
+ horizontalBarGraph.config.main.header = config.heading;
14
+ if (config.barColor) {
15
+ horizontalBarGraph.config.barStyle.color = config.barColor;
16
+ }
17
+ if (config.containerBackground) {
18
+ horizontalBarGraph.config.containerStyle.background =
19
+ config.containerBackground;
20
+ }
21
+ if (config.height) {
22
+ horizontalBarGraph.config.style =
23
23
  {
24
24
  containerStyle: {
25
25
  height: config.height
26
26
  }
27
27
  }
28
- }
29
- if (config.bottomLabel) {
30
- horizontalBarGraph.config.main.bottomLabel =
31
- config.bottomLabel;
32
- }
33
- if (config.leftLabel) {
34
- horizontalBarGraph.config.main.leftLabel = config.leftLabel;
35
- }
36
- return horizontalBarGraph
28
+
29
+ }
30
+ if (config.bottomLabel) {
31
+ horizontalBarGraph.config.main.bottomLabel =
32
+ config.bottomLabel;
33
+ }
34
+ if (config.leftLabel) {
35
+ horizontalBarGraph.config.main.leftLabel = config.leftLabel;
36
+ }
37
+ return horizontalBarGraph
37
38
  }
38
39
 
39
40
  export default buildHorizontalBarGraph
@@ -13,6 +13,7 @@ export const buildPieGraph = (config, componentScope) => {
13
13
  height: config.height
14
14
  }
15
15
  };
16
+
16
17
  }
17
18
  if (config.legendHide) {
18
19
  pieGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
@@ -30,6 +31,7 @@ export const buildPieGraph = (config, componentScope) => {
30
31
  colorRange: flatObjectValueInArray(config.pieArcColors)
31
32
  }
32
33
  }
34
+
33
35
  }
34
36
  return pieGraph;
35
37
  }
@@ -18,4 +18,4 @@ export const buildWrapperSection = (config, componentScope) => {
18
18
  wrapper.config.layout = createLayoutFormat(config.layout)
19
19
  }
20
20
  return wrapper;
21
- }
21
+ }
@@ -1,20 +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: { xs: 0, sm: 4, md: 4, lg: 4 },
13
- main: {
8
+ // options: {
9
+ // widget: "emptyBox",
10
+ // },
11
+ // config: {
12
+ // layout: { xs: 0, sm: 4, md: 4, lg: 4 },
13
+ // main: {
14
14
 
15
- },
16
- },
17
- };
15
+ // },
16
+ // },
17
+ // };
18
18
  const cardLayout = {
19
19
  type: "Control",
20
20
  scope: "#/properties/cardLayout",
@@ -56,7 +56,7 @@ const cardLayout = {
56
56
  },
57
57
  },
58
58
  },
59
- EmptyBox,
59
+ emptyBox
60
60
  ],
61
61
  },
62
62
  },
@@ -65,7 +65,7 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
65
65
  return {
66
66
  type: "Control",
67
67
  scope: `#/properties/${parentScope}`,
68
- layout: 11.5,
68
+ layout: 12,
69
69
  options: {
70
70
  "elementLabelProp": childScope,
71
71
  detail: {
@@ -85,8 +85,8 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
85
85
  },
86
86
  },
87
87
  },
88
- EmptyBox,
89
- EmptyBox
88
+ emptyBox,
89
+ emptyBox
90
90
  ],
91
91
  },
92
92
  },
@@ -107,6 +107,7 @@ sizeHolder.options.detail.elements[1] = {
107
107
  },
108
108
  },
109
109
  };
110
+ sizeHolder.options.detail.elements[2] = emptyBox
110
111
  const getInputField = (scope: String, label: String) => {
111
112
  return {
112
113
  type: "Control",
@@ -211,6 +212,7 @@ export const buildPropertiesSection = function (type: String) {
211
212
  getInputField("graphHeight", "Graph Height"),
212
213
  getInputField("graphWidth", "Graph Width"),
213
214
  getInputField("graphZoomHeight", "Zoom Height"),
215
+ emptyBox
214
216
  ]
215
217
  break;
216
218
  case "InputSlider":
@@ -219,6 +221,7 @@ export const buildPropertiesSection = function (type: String) {
219
221
  getInputField("step", "Step"),
220
222
  getInputField("min", "Min Limit"),
221
223
  getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
224
+ emptyBox,emptyBox
222
225
  ]
223
226
  break;
224
227
  case "DataGrid":
@@ -227,8 +230,8 @@ export const buildPropertiesSection = function (type: String) {
227
230
  getInputField("elevation", "Card Elevation"),
228
231
  getInputField("height", "Grid height"),
229
232
  getInputField("justifyContent", "justifyContent"),
230
- EmptyBox,
231
- EmptyBox,
233
+ emptyBox,
234
+ emptyBox,
232
235
  cardLayout,
233
236
  ]
234
237
  break;
@@ -242,7 +245,8 @@ export const buildPropertiesSection = function (type: String) {
242
245
  { label: "Horizontal", value: "horizontal" },
243
246
  { label: "Vertical", value: "vertical" },
244
247
  ]),
245
- EmptyBox,
248
+ emptyBox,
249
+
246
250
  getArrayControl("sectionLabels", "label")
247
251
 
248
252
  ]
@@ -252,22 +256,20 @@ export const buildPropertiesSection = function (type: String) {
252
256
  getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
253
257
  getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
254
258
  getInputField("maxWidth", "Max. Width"),
255
- EmptyBox
256
259
  ]
257
260
  break;
258
261
  case "Text":
259
262
  uiSchema.elements = [
260
263
  getInputField("placeholder", "Placeholder"),
261
- EmptyBox,
262
- EmptyBox,
264
+ emptyBox,
265
+ emptyBox,
263
266
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
264
267
  ]
265
268
  break;
266
269
  case "TextArea":
267
270
  uiSchema.elements = [
268
271
  getInputField("placeholder", "Placeholder"),
269
- EmptyBox,
270
- EmptyBox]
272
+ emptyBox,emptyBox]
271
273
  break;
272
274
 
273
275
  case "SpeedoMeter":
@@ -277,7 +279,7 @@ export const buildPropertiesSection = function (type: String) {
277
279
  getInputField("heading", "Container Heading"),
278
280
  getInputField("speedoCaption", "Speedometer Caption"),
279
281
  getInputField("width", "Speedometer Width"),
280
- EmptyBox
282
+ emptyBox
281
283
  ]
282
284
  break;
283
285
  case "RankCard":
@@ -286,9 +288,7 @@ export const buildPropertiesSection = function (type: String) {
286
288
  getInputField("image", "Image Url"),
287
289
  getInputField("title", "Card Title"),
288
290
  getInputField("description", "Card Description"),
289
- EmptyBox,
290
- EmptyBox
291
- ];
291
+ emptyBox,emptyBox];
292
292
  break;
293
293
  case "LeaderBoard":
294
294
  uiSchema.elements = [
@@ -296,9 +296,8 @@ export const buildPropertiesSection = function (type: String) {
296
296
  getInputField("firstImage", "First Image url"),
297
297
  getInputField("secondImage", "Second Image url"),
298
298
  getInputField("thirdImage", "Third Image url"),
299
- EmptyBox,
300
- EmptyBox,
301
- getTextArea("functionCode", "Write Compare Code", false)
299
+ emptyBox,emptyBox,
300
+ getTextArea("functionCode", "Write Compare Code", false),
302
301
  ];
303
302
  break;
304
303
  case "CardSlider":
@@ -312,8 +311,7 @@ export const buildPropertiesSection = function (type: String) {
312
311
  getInputField("bottomLabel_1", "First BottomLabel"),
313
312
  getInputField("bottomLabel_2", "Second BottomLabel"),
314
313
  getInputField("bottomLabel_3", "Third BottomLabel"),
315
- EmptyBox,
316
- EmptyBox
314
+ emptyBox,emptyBox
317
315
  ];
318
316
  break;
319
317
  case "card":
@@ -321,7 +319,7 @@ export const buildPropertiesSection = function (type: String) {
321
319
  getInputField("url", "Image Url"),
322
320
  getInputField("label", "Label"),
323
321
  getInputField("description", "Description"),
324
- EmptyBox
322
+ emptyBox
325
323
  ];
326
324
  break;
327
325
  case "Button":
@@ -334,7 +332,7 @@ export const buildPropertiesSection = function (type: String) {
334
332
  { label: "Apply Default Style", value: "true" },
335
333
  { label: "No Style", value: "false" },
336
334
  ]),
337
- EmptyBox
335
+ emptyBox
338
336
  ];
339
337
  break;
340
338
  case "Graph":
@@ -353,6 +351,7 @@ export const buildPropertiesSection = function (type: String) {
353
351
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
354
352
  getInputField("yAxisValue", "Y-AxisValue"),
355
353
  getInputField("xAxisValue", "X-AxisValue"),
354
+ emptyBox,
356
355
  getArrayControl("legendLabels", "label"),
357
356
  getArrayControl("pieArcColors", "color"),
358
357
  ];
@@ -362,6 +361,7 @@ export const buildPropertiesSection = function (type: String) {
362
361
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
363
362
  , getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
364
363
  getInputField("rowSpacing", "Row Spacing"),
364
+ emptyBox,emptyBox
365
365
  ]
366
366
  break;
367
367
 
@@ -369,6 +369,7 @@ export const buildPropertiesSection = function (type: String) {
369
369
  uiSchema.elements = [
370
370
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
371
371
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
372
+ emptyBox,
372
373
  getArrayControl("sectionLabels", "label"),
373
374
  ]
374
375
  break;
@@ -394,14 +395,14 @@ export const buildPropertiesSection = function (type: String) {
394
395
  uiSchema.elements = [
395
396
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
396
397
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
397
- EmptyBox
398
+ emptyBox
398
399
  ]
399
400
  break;
400
401
  case "MultipleSelect":
401
402
  uiSchema.elements = [
402
403
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
403
- EmptyBox,
404
- EmptyBox
404
+ emptyBox,
405
+ emptyBox
405
406
  ]
406
407
  break;
407
408
  }
@@ -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",