impaktapps-ui-builder 0.0.412 → 0.0.592-alpha.1

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 (79) hide show
  1. package/dist/impaktapps-ui-builder.es.js +2348 -1644
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  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/buildCard.d.ts +1 -1
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -1
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +1 -1
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +35 -2
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +2 -2
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +20 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +1 -6
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +106 -87
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +15 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +71 -122
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +6 -6
  17. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +4 -106
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +58 -45
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +74 -99
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +17 -2
  22. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +17 -2
  23. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
  24. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
  25. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -1
  26. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
  27. package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +1 -1
  28. package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +1 -0
  29. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +2 -1
  30. package/package.json +1 -1
  31. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +1 -1
  32. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +6 -6
  33. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +5 -5
  34. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +1 -1
  35. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  36. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +7 -2
  37. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +13 -2
  38. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +1 -1
  39. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  40. package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +0 -1
  41. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -5
  42. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +17 -1
  43. package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +3 -0
  44. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +7 -7
  45. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
  46. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +50 -27
  47. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +3 -2
  48. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +100 -70
  49. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +2 -7
  50. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +114 -74
  51. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +30 -47
  52. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +4 -14
  53. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  54. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +34 -56
  55. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
  56. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +7 -118
  57. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +78 -69
  58. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  59. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +15 -11
  60. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -6
  61. package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +5 -7
  62. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +85 -101
  63. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -6
  64. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
  65. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +13 -13
  66. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
  67. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
  68. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +346 -172
  69. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  70. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +540 -315
  71. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +1 -0
  72. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +388 -264
  73. package/src/impaktapps-ui-builder/builder/services/component.ts +26 -9
  74. package/src/impaktapps-ui-builder/builder/services/event.ts +42 -6
  75. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +19 -3
  76. package/src/impaktapps-ui-builder/builder/services/utils.ts +0 -1
  77. package/src/impaktapps-ui-builder/runtime/services/events.ts +31 -18
  78. package/src/impaktapps-ui-builder/runtime/services/interface.ts +1 -0
  79. package/src/impaktapps-ui-builder/runtime/services/service.ts +135 -15
@@ -1,25 +1,34 @@
1
1
 
2
2
  import _ from "lodash";
3
- import emptyBox from "./emptyBox";
4
- const EmptyBox = {
3
+ import { buildLabel } from "../buildLabel";
4
+ import Box from "./box";
5
+ const emptyBox = (scope:string,layout?: any) => {
6
+
7
+ if(layout !== undefined){
8
+ return {
9
+ type: "Control",
10
+ scope: `#/properties/${scope}`,
11
+ options: {
12
+ widget: "EmptyBox",
13
+ },
14
+ config: {
15
+ //[{},{},{}]
16
+ layout: layout,
17
+ },
18
+ }
19
+ }
20
+ return {
5
21
  type: "Control",
6
- scope: `#/properties/empty`,
22
+ scope: "#/properties/empty",
7
23
 
8
24
  options: {
9
25
  widget: "EmptyBox",
10
26
  },
11
27
  config: {
12
- layout: {
13
- xs: 11,
14
- sm: 11,
15
- md: 5.5,
16
- lg: 5.5,
17
- },
18
- main: {
19
-
20
- },
28
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 },
21
29
  },
22
- };
30
+ }
31
+ }
23
32
  const cardLayout = {
24
33
  type: "Control",
25
34
  scope: "#/properties/cardLayout",
@@ -35,12 +44,7 @@ const cardLayout = {
35
44
  widget: "SelectInputField",
36
45
  },
37
46
  config: {
38
- layout: {
39
- xs: 11,
40
- sm: 11,
41
- md: 5.5,
42
- lg: 5.5,
43
- },
47
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
44
48
  main: {
45
49
  label: "Screen Size",
46
50
 
@@ -55,12 +59,7 @@ const cardLayout = {
55
59
  widget: "InputField",
56
60
  },
57
61
  config: {
58
- layout: {
59
- xs: 11,
60
- sm: 11,
61
- md: 5.5,
62
- lg: 5.5,
63
- },
62
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
64
63
  main: {
65
64
  label: "Value",
66
65
  type: "number",
@@ -71,6 +70,7 @@ const cardLayout = {
71
70
  },
72
71
  },
73
72
  },
73
+ emptyBox("cardEmpty")
74
74
  ],
75
75
  },
76
76
  },
@@ -79,7 +79,7 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
79
79
  return {
80
80
  type: "Control",
81
81
  scope: `#/properties/${parentScope}`,
82
- layout: 11.5,
82
+ layout: 12,
83
83
  options: {
84
84
  "elementLabelProp": childScope,
85
85
  detail: {
@@ -93,18 +93,14 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
93
93
  widget: "InputField",
94
94
  },
95
95
  config: {
96
- layout: {
97
- xs: 11,
98
- sm: 11,
99
- md: 5.5,
100
- lg: 5.5,
101
- },
96
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
102
97
  main: {
103
98
  label: childLabel || "Labels for Tab",
104
99
  },
105
100
  },
106
101
  },
107
- EmptyBox
102
+ emptyBox("ArrayControlEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 }),
103
+ emptyBox("ArrayControlEmpty2", {xs: 0, sm: 0, md: 4, lg: 4 })
108
104
  ],
109
105
  },
110
106
  },
@@ -119,17 +115,13 @@ sizeHolder.options.detail.elements[1] = {
119
115
  widget: "InputField",
120
116
  },
121
117
  config: {
122
- layout: {
123
- xs: 11,
124
- sm: 11,
125
- md: 5.5,
126
- lg: 5.5,
127
- },
118
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
128
119
  main: {
129
120
  label: "Size",
130
121
  },
131
122
  },
132
123
  };
124
+ sizeHolder.options.detail.elements[2] = emptyBox("sizeHolderempty")
133
125
  const getInputField = (scope: String, label: String) => {
134
126
  return {
135
127
  type: "Control",
@@ -139,12 +131,7 @@ const getInputField = (scope: String, label: String) => {
139
131
  widget: "InputField",
140
132
  },
141
133
  config: {
142
- layout: {
143
- xs: 11,
144
- sm: 11,
145
- md: 5.5,
146
- lg: 5.5,
147
- },
134
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
148
135
  main: {
149
136
  label: label,
150
137
  },
@@ -161,12 +148,7 @@ export const getRadioInputField = (scope: String, label: String, options: string
161
148
  widget: "RadioInputField",
162
149
  },
163
150
  config: {
164
- layout: {
165
- xs: 11,
166
- sm: 11,
167
- md: 5.5,
168
- lg: 5.5,
169
- },
151
+ layout: { xs: 12, sm: 6, md: 4, lg: 4 },
170
152
  main: {
171
153
  label: label,
172
154
 
@@ -175,7 +157,28 @@ export const getRadioInputField = (scope: String, label: String, options: string
175
157
  },
176
158
  };
177
159
  };
178
-
160
+ export const buildWrapper = (label: string, elements: any[]) => {
161
+ return {
162
+ type: "WrapperLayout",
163
+ config: {
164
+ main: {
165
+ label: label || "Details",
166
+ isAccordion: true,
167
+ },
168
+ wrapperStyle: {
169
+ marginTop: '-6px',
170
+ marginBottom: '-8px',
171
+ marginLeft: "-34px",
172
+ width: "108%"
173
+ },
174
+ componentsBoxStyle: {
175
+ marginLeft: "24px",
176
+ },
177
+ defaultStyle: true
178
+ },
179
+ elements: elements || []
180
+ }
181
+ }
179
182
  export const getTextArea = (scope: string, heading: string, hideButton: boolean, layout?: any) => {
180
183
  return {
181
184
  type: "Control",
@@ -217,7 +220,7 @@ export const getSelectField = (scope: string, label: string, options: { label: s
217
220
  widget: "SelectInputField",
218
221
  },
219
222
  config: {
220
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
223
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
221
224
  main: {
222
225
  label: label,
223
226
  type: "text",
@@ -229,7 +232,7 @@ export const getSelectField = (scope: string, label: string, options: { label: s
229
232
 
230
233
 
231
234
  const GraphSection = {
232
- type: "HorizontalLayout",
235
+ type: "WrapperLayout",
233
236
  elements: [],
234
237
  };
235
238
 
@@ -244,13 +247,17 @@ export const buildPropertiesSection = function (type: String) {
244
247
  getInputField("graphHeight", "Graph Height"),
245
248
  getInputField("graphWidth", "Graph Width"),
246
249
  getInputField("graphZoomHeight", "Zoom Height"),
250
+ emptyBox("TreeEmpty", {xs: 6, sm: 6, md: 4, lg: 4})
247
251
  ]
252
+ break;
248
253
  case "InputSlider":
249
254
  uiSchema.elements = [
250
255
  getInputField("max", "Max Limit"),
251
256
  getInputField("step", "Step"),
252
257
  getInputField("min", "Min Limit"),
258
+ emptyBox("InputSliderEmpty1", {xs: 6, sm: 0, md: 0, lg: 0}),
253
259
  getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
260
+ emptyBox("InputSliderEmpty2", {xs: 0, sm: 0, md: 8, lg: 8})
254
261
  ]
255
262
  break;
256
263
  case "DataGrid":
@@ -259,6 +266,8 @@ export const buildPropertiesSection = function (type: String) {
259
266
  getInputField("elevation", "Card Elevation"),
260
267
  getInputField("height", "Grid height"),
261
268
  getInputField("justifyContent", "justifyContent"),
269
+ emptyBox("DataGridEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }),
270
+ emptyBox("DataGridEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 }),
262
271
  cardLayout,
263
272
  ]
264
273
  break;
@@ -272,6 +281,7 @@ export const buildPropertiesSection = function (type: String) {
272
281
  { label: "Horizontal", value: "horizontal" },
273
282
  { label: "Vertical", value: "vertical" },
274
283
  ]),
284
+ emptyBox("Stepper", {xs: 6, sm: 6, md: 4, lg: 4 }),
275
285
 
276
286
  getArrayControl("sectionLabels", "label")
277
287
 
@@ -282,20 +292,21 @@ export const buildPropertiesSection = function (type: String) {
282
292
  getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
283
293
  getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
284
294
  getInputField("maxWidth", "Max. Width"),
285
- EmptyBox
295
+ emptyBox("PopUpEmpty", {xs: 6, sm: 6, md: 0, lg: 0 })
286
296
  ]
287
297
  break;
288
298
  case "Text":
289
299
  uiSchema.elements = [
290
300
  getInputField("placeholder", "Placeholder"),
291
- EmptyBox,
301
+ emptyBox("TextEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 }),
302
+ emptyBox("TextEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 }),
292
303
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
293
304
  ]
294
305
  break;
295
306
  case "TextArea":
296
307
  uiSchema.elements = [
297
308
  getInputField("placeholder", "Placeholder"),
298
- EmptyBox,]
309
+ emptyBox("TextAreaEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 }), emptyBox("TextAreaEmpty2", {xs: 0, sm: 0, md: 4, lg: 4 })]
299
310
  break;
300
311
 
301
312
  case "SpeedoMeter":
@@ -304,7 +315,8 @@ export const buildPropertiesSection = function (type: String) {
304
315
  getInputField("heading", "Container Heading"),
305
316
  getInputField("heading", "Container Heading"),
306
317
  getInputField("speedoCaption", "Speedometer Caption"),
307
- getInputField("width", "Speedometer Width")
318
+ getInputField("width", "Speedometer Width"),
319
+ emptyBox("SpeedoMeterEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 })
308
320
  ]
309
321
  break;
310
322
  case "RankCard":
@@ -312,7 +324,8 @@ export const buildPropertiesSection = function (type: String) {
312
324
  getInputField("rank", "Rank"),
313
325
  getInputField("image", "Image Url"),
314
326
  getInputField("title", "Card Title"),
315
- getInputField("description", "Card Description")];
327
+ getInputField("description", "Card Description"),
328
+ emptyBox("RankCardEmpty1"), emptyBox("RankCardEmpty2")];
316
329
  break;
317
330
  case "LeaderBoard":
318
331
  uiSchema.elements = [
@@ -320,7 +333,8 @@ export const buildPropertiesSection = function (type: String) {
320
333
  getInputField("firstImage", "First Image url"),
321
334
  getInputField("secondImage", "Second Image url"),
322
335
  getInputField("thirdImage", "Third Image url"),
323
- getTextArea("functionCode", "Write Compare Code", false)
336
+ emptyBox("LeaderBoardEmpty1"), emptyBox("LeaderBoardEmpty2"),
337
+ getTextArea("functionCode", "Write Compare Code", false),
324
338
  ];
325
339
  break;
326
340
  case "CardSlider":
@@ -333,7 +347,8 @@ export const buildPropertiesSection = function (type: String) {
333
347
  getInputField("heading", "Heading"),
334
348
  getInputField("bottomLabel_1", "First BottomLabel"),
335
349
  getInputField("bottomLabel_2", "Second BottomLabel"),
336
- getInputField("bottomLabel_3", "Third BottomLabel")
350
+ getInputField("bottomLabel_3", "Third BottomLabel"),
351
+ emptyBox("ProgressBarCardEmpty1"), emptyBox("ProgressBarCardEmpty2")
337
352
  ];
338
353
  break;
339
354
  case "card":
@@ -341,7 +356,7 @@ export const buildPropertiesSection = function (type: String) {
341
356
  getInputField("url", "Image Url"),
342
357
  getInputField("label", "Label"),
343
358
  getInputField("description", "Description"),
344
- EmptyBox
359
+ emptyBox("cardEmpty", {xs: 6, sm: 6, md: 0, lg: 0 })
345
360
  ];
346
361
  break;
347
362
  case "Button":
@@ -354,7 +369,7 @@ export const buildPropertiesSection = function (type: String) {
354
369
  { label: "Apply Default Style", value: "true" },
355
370
  { label: "No Style", value: "false" },
356
371
  ]),
357
- EmptyBox
372
+ emptyBox("ButtonEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 })
358
373
  ];
359
374
  break;
360
375
  case "Graph":
@@ -370,9 +385,11 @@ export const buildPropertiesSection = function (type: String) {
370
385
  ]),
371
386
  getInputField("leftLabel", "Left Label"),
372
387
  getInputField("bottomLabel", "Bottom Label"),
388
+ emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 0, lg: 0 }),
373
389
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
374
390
  getInputField("yAxisValue", "Y-AxisValue"),
375
391
  getInputField("xAxisValue", "X-AxisValue"),
392
+ emptyBox("GraphEmpty2"),
376
393
  getArrayControl("legendLabels", "label"),
377
394
  getArrayControl("pieArcColors", "color"),
378
395
  ];
@@ -381,7 +398,8 @@ export const buildPropertiesSection = function (type: String) {
381
398
  uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]),
382
399
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
383
400
  , getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
384
- getInputField("rowSpacing", "Row Spacing"),
401
+ getInputField("rowSpacing", "Row Spacing"),
402
+ emptyBox("WrapperSectionEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }), emptyBox("WrapperSectionEmpty2")
385
403
  ]
386
404
  break;
387
405
 
@@ -389,6 +407,7 @@ export const buildPropertiesSection = function (type: String) {
389
407
  uiSchema.elements = [
390
408
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
391
409
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
410
+ emptyBox("TabEmpty"),
392
411
  getArrayControl("sectionLabels", "label"),
393
412
  ]
394
413
  break;
@@ -396,13 +415,22 @@ export const buildPropertiesSection = function (type: String) {
396
415
  case "LazyLoadingTable":
397
416
  uiSchema.elements = [
398
417
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
399
- getRadioInputField("SelectionAvailable", "Selection Available", ["YES", "NO"]),
400
- getRadioInputField("ColumnResizingAvailable", "ColumnResizing Available", ["YES", "NO"]),
401
- getRadioInputField("DragAvailable", "Drag Available", ["YES", "NO"]),
418
+ getRadioInputField("SelectionAvailable", "Row Selection", ["YES", "NO"]),
419
+ getRadioInputField("ColumnResizingAvailable", "ColumnResizing ", ["YES", "NO"]),
420
+ getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
402
421
  getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
403
- getInputField("selectKey", "Selection Key"),
422
+ getInputField("selectKey", "Selection Key"), emptyBox("LazyLoadingTableEmpty1", {xs: 6, sm: 0, md: 0, lg: 0 }),
423
+ buildWrapper("Tree Table Properties", [
424
+ getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
425
+ getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
426
+ // getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
427
+ getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
428
+ getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
429
+ emptyBox("LazyLoadingTableEmpty2"), emptyBox("LazyLoadingTableEmpty3")
430
+ ]),
404
431
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
405
- sizeHolder
432
+ sizeHolder,
433
+
406
434
  ]
407
435
  break;
408
436
  case "Radio":
@@ -414,12 +442,14 @@ export const buildPropertiesSection = function (type: String) {
414
442
  uiSchema.elements = [
415
443
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
416
444
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
445
+ emptyBox("SelectEmpty")
417
446
  ]
418
447
  break;
419
448
  case "MultipleSelect":
420
449
  uiSchema.elements = [
421
450
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
422
- EmptyBox
451
+ emptyBox("MultipleSelectEmpty1", {xs: 0, sm: 6, md: 4, lg: 4 }),
452
+ emptyBox("MultipleSelectEmpty2")
423
453
  ]
424
454
  break;
425
455
  }
@@ -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
  },
@@ -1,47 +1,109 @@
1
- export default {
1
+ export default function Card(theme){
2
+ const uiSchema = {
2
3
  type: "WrapperLayout",
3
4
  config: {
4
5
  main: {
5
- rowSpacing: 0.5,
6
6
  },
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
- },
7
+ wrapperStyle: {
8
+
17
9
  },
18
- layout: { xs: 12, sm: 12,md: 6,lg: 6, },},
10
+ componentsBoxStyle: {
11
+ flexDirection: "row",
12
+ flexWrap: "nowrap",
13
+ width: "100%",
14
+ background: "transparent",
15
+ border: `1.5px solid ${theme.palette.primary.main}`,
16
+ borderRadius: "20px",
17
+ padding: "0px 20px 0px 20px",
18
+ "&: hover": {
19
+ background: `${theme.palette.primary.main}`,
20
+ border: `1.5px solid black`,
21
+ "& p": {
22
+ color: "white"
23
+ }
24
+ }
25
+ },
26
+ layout: { xs: 12, sm: 12, md: 6, lg: 6, },
27
+ },
19
28
  elements: [
20
29
  {
21
- type: "Control",
22
- scope: "#/properties/programType",
30
+ type: "HorizontalLayout",
23
31
  config: {
24
- main: {
25
- heading: "$5000.00",
26
- },
27
- style: {
28
- position : "absolute",
29
- left : "10%",
30
- top: "15%",
31
- color: "#f5effc",
32
- height: "80px",
33
- display: "flex",
34
- fontSize: {xs:"24px",md:"32px"},
35
- alignItems: "center",
36
- background: "inherit",
37
- justifyContent:"flex-start",
38
-
39
- },
40
- layout: 5,
41
- },
42
- options: {
43
- widget: "Box",
32
+ layout: 8
44
33
  },
34
+ elements: [
35
+ {
36
+ type: "WrapperLayout",
37
+ config: {
38
+ main: {
39
+ columnSpacing: 0,
40
+ gap: 0
41
+ },
42
+ wrapperStyle: {
43
+ marginTop: "4px",
44
+ background: "transparent"
45
+ },
46
+ componentsBoxStyle: {
47
+ flexDirection: "column",
48
+ flexWrap: "nowrap",
49
+ width: '100%',
50
+ height: 'inherit',
51
+ background: "transparent",
52
+ borderRadius: "0px",
53
+ },
54
+ layout: 12,
55
+ },
56
+ elements: [
57
+ {
58
+ type: "Control",
59
+ scope: "#/properties/programType",
60
+ config: {
61
+ main: {
62
+ heading: "$5000.00",
63
+ },
64
+ style: {
65
+ color: "black",
66
+ display: "flex",
67
+ fontSize: { xs: "24px", md: "28px" },
68
+ fontWeight: "bold",
69
+ background: "inherit",
70
+ justifyContent: "flex-start",
71
+ width: "calc(100%+8px)",
72
+ margin: "-8px",
73
+ },
74
+ layout: 12,
75
+ },
76
+ options: {
77
+ widget: "Box",
78
+ },
79
+ },
80
+ {
81
+ type: "Control",
82
+ scope: "#/properties/programType",
83
+ config: {
84
+ main: {
85
+ heading: "Total Earnings",
86
+ },
87
+ style: {
88
+ color: "black",
89
+ fontSize: "16px",
90
+ justifyContent: "center",
91
+ textWrap: "wrap",
92
+ background: "inherit",
93
+ width: "calc(100%+8pc)",
94
+ margin: "-8px",
95
+ lineHeight: "1"
96
+ },
97
+ layout: 12,
98
+ },
99
+
100
+ options: {
101
+ widget: "Box",
102
+ },
103
+ },
104
+ ]
105
+ },
106
+ ]
45
107
  },
46
108
  {
47
109
  type: "Control",
@@ -51,50 +113,28 @@ export default {
51
113
  url: "https://www.svgrepo.com/show/500606/loading.svg",
52
114
  },
53
115
  style: {
54
- color: "#f5effc",
55
- objectFit: "contain",
56
- position:"absolute",
57
- top:"10px",
58
- right:"10px",
59
- height: "80%",
60
- width : "35%",
61
- display: "flex",
62
- fontSize: "34px",
63
- alignItems: "center",
64
- background: "inherit",
65
- padding: "20px",
66
- justifyContent: "left",
116
+ containerStyle: {
117
+ height: '100%',
118
+ display: "flex",
119
+ justifyContent: "center"
120
+ },
121
+ imageStyle: {
122
+ // width: "none",
123
+ height: '100%',
124
+ fontSize: "none",
125
+ padding: "4px",
126
+ marginLeft: "8px"
127
+ },
67
128
  },
68
- layout: 5,
129
+ layout: 4,
69
130
  },
70
131
  options: {
71
132
  widget: "Image",
72
133
  },
73
134
  },
74
- {
75
- type: "Control",
76
- scope: "#/properties/programType",
77
- config: {
78
- main: {
79
- heading: "Total Earnings",
80
- },
81
- style: {
82
- position : "absolute",
83
- top: "calc(60%)",
84
- alignItems : "center",
85
- color: "#8999e8",
86
- fontSize: "16px",
87
- left: "10%",
88
- background: "inherit",
89
- justifyContent :"center",
90
- },
91
- layout: 12,
92
- },
93
-
94
- options: {
95
- widget: "Box",
96
- },
97
- },
135
+
98
136
  ],
99
137
  };
100
-
138
+
139
+ return uiSchema
140
+ }