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