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

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 +347 -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 +37 -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.10",
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,7 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
85
85
  },
86
86
  },
87
87
  },
88
- EmptyBox,
89
- EmptyBox
88
+ emptyBox
90
89
  ],
91
90
  },
92
91
  },
@@ -211,6 +210,7 @@ export const buildPropertiesSection = function (type: String) {
211
210
  getInputField("graphHeight", "Graph Height"),
212
211
  getInputField("graphWidth", "Graph Width"),
213
212
  getInputField("graphZoomHeight", "Zoom Height"),
213
+ emptyBox
214
214
  ]
215
215
  break;
216
216
  case "InputSlider":
@@ -219,6 +219,7 @@ export const buildPropertiesSection = function (type: String) {
219
219
  getInputField("step", "Step"),
220
220
  getInputField("min", "Min Limit"),
221
221
  getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
222
+ emptyBox,emptyBox
222
223
  ]
223
224
  break;
224
225
  case "DataGrid":
@@ -227,8 +228,8 @@ export const buildPropertiesSection = function (type: String) {
227
228
  getInputField("elevation", "Card Elevation"),
228
229
  getInputField("height", "Grid height"),
229
230
  getInputField("justifyContent", "justifyContent"),
230
- EmptyBox,
231
- EmptyBox,
231
+ emptyBox,
232
+ emptyBox,
232
233
  cardLayout,
233
234
  ]
234
235
  break;
@@ -242,7 +243,8 @@ export const buildPropertiesSection = function (type: String) {
242
243
  { label: "Horizontal", value: "horizontal" },
243
244
  { label: "Vertical", value: "vertical" },
244
245
  ]),
245
- EmptyBox,
246
+ emptyBox,
247
+
246
248
  getArrayControl("sectionLabels", "label")
247
249
 
248
250
  ]
@@ -252,22 +254,20 @@ export const buildPropertiesSection = function (type: String) {
252
254
  getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
253
255
  getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
254
256
  getInputField("maxWidth", "Max. Width"),
255
- EmptyBox
256
257
  ]
257
258
  break;
258
259
  case "Text":
259
260
  uiSchema.elements = [
260
261
  getInputField("placeholder", "Placeholder"),
261
- EmptyBox,
262
- EmptyBox,
262
+ emptyBox,
263
+ emptyBox,
263
264
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
264
265
  ]
265
266
  break;
266
267
  case "TextArea":
267
268
  uiSchema.elements = [
268
269
  getInputField("placeholder", "Placeholder"),
269
- EmptyBox,
270
- EmptyBox]
270
+ emptyBox,emptyBox]
271
271
  break;
272
272
 
273
273
  case "SpeedoMeter":
@@ -277,7 +277,7 @@ export const buildPropertiesSection = function (type: String) {
277
277
  getInputField("heading", "Container Heading"),
278
278
  getInputField("speedoCaption", "Speedometer Caption"),
279
279
  getInputField("width", "Speedometer Width"),
280
- EmptyBox
280
+ emptyBox
281
281
  ]
282
282
  break;
283
283
  case "RankCard":
@@ -286,9 +286,7 @@ export const buildPropertiesSection = function (type: String) {
286
286
  getInputField("image", "Image Url"),
287
287
  getInputField("title", "Card Title"),
288
288
  getInputField("description", "Card Description"),
289
- EmptyBox,
290
- EmptyBox
291
- ];
289
+ emptyBox,emptyBox];
292
290
  break;
293
291
  case "LeaderBoard":
294
292
  uiSchema.elements = [
@@ -296,9 +294,8 @@ export const buildPropertiesSection = function (type: String) {
296
294
  getInputField("firstImage", "First Image url"),
297
295
  getInputField("secondImage", "Second Image url"),
298
296
  getInputField("thirdImage", "Third Image url"),
299
- EmptyBox,
300
- EmptyBox,
301
- getTextArea("functionCode", "Write Compare Code", false)
297
+ emptyBox,emptyBox,
298
+ getTextArea("functionCode", "Write Compare Code", false),
302
299
  ];
303
300
  break;
304
301
  case "CardSlider":
@@ -312,8 +309,7 @@ export const buildPropertiesSection = function (type: String) {
312
309
  getInputField("bottomLabel_1", "First BottomLabel"),
313
310
  getInputField("bottomLabel_2", "Second BottomLabel"),
314
311
  getInputField("bottomLabel_3", "Third BottomLabel"),
315
- EmptyBox,
316
- EmptyBox
312
+ emptyBox,emptyBox
317
313
  ];
318
314
  break;
319
315
  case "card":
@@ -321,7 +317,7 @@ export const buildPropertiesSection = function (type: String) {
321
317
  getInputField("url", "Image Url"),
322
318
  getInputField("label", "Label"),
323
319
  getInputField("description", "Description"),
324
- EmptyBox
320
+ emptyBox
325
321
  ];
326
322
  break;
327
323
  case "Button":
@@ -334,7 +330,7 @@ export const buildPropertiesSection = function (type: String) {
334
330
  { label: "Apply Default Style", value: "true" },
335
331
  { label: "No Style", value: "false" },
336
332
  ]),
337
- EmptyBox
333
+ emptyBox
338
334
  ];
339
335
  break;
340
336
  case "Graph":
@@ -353,6 +349,7 @@ export const buildPropertiesSection = function (type: String) {
353
349
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
354
350
  getInputField("yAxisValue", "Y-AxisValue"),
355
351
  getInputField("xAxisValue", "X-AxisValue"),
352
+ emptyBox,
356
353
  getArrayControl("legendLabels", "label"),
357
354
  getArrayControl("pieArcColors", "color"),
358
355
  ];
@@ -362,6 +359,7 @@ export const buildPropertiesSection = function (type: String) {
362
359
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
363
360
  , getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
364
361
  getInputField("rowSpacing", "Row Spacing"),
362
+ emptyBox,emptyBox
365
363
  ]
366
364
  break;
367
365
 
@@ -369,6 +367,7 @@ export const buildPropertiesSection = function (type: String) {
369
367
  uiSchema.elements = [
370
368
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
371
369
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
370
+ emptyBox,
372
371
  getArrayControl("sectionLabels", "label"),
373
372
  ]
374
373
  break;
@@ -394,14 +393,14 @@ export const buildPropertiesSection = function (type: String) {
394
393
  uiSchema.elements = [
395
394
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
396
395
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
397
- EmptyBox
396
+ emptyBox
398
397
  ]
399
398
  break;
400
399
  case "MultipleSelect":
401
400
  uiSchema.elements = [
402
401
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
403
- EmptyBox,
404
- EmptyBox
402
+ emptyBox,
403
+ emptyBox
405
404
  ]
406
405
  break;
407
406
  }
@@ -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",