impaktapps-ui-builder 1.0.4 → 1.0.9-4.card.2
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 +704 -684
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +14 -14
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildArray.d.ts +1 -11
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildImage.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +1 -3
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +9 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +6 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +82 -72
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +18 -50
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.d.ts +13 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +0 -3
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +14 -65
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +48 -38
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +0 -3
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +3 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +31 -15
- package/src/impaktapps-ui-builder/builder/build/buildButton.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +20 -16
- package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +4 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +35 -0
- package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +27 -14
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/array.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +4 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +146 -130
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +5 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +58 -119
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +30 -54
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +29 -54
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +58 -113
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +51 -15
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +60 -118
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +77 -106
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +9 -4
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
- package/src/impaktapps-ui-builder/builder/services/component.ts +10 -4
- package/src/impaktapps-ui-builder/runtime/services/service.ts +22 -118
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
export const emptyBox = (scope:string,layout?: any) => {
|
|
3
|
+
export const emptyBox = (scope: string, layout?: any) => {
|
|
4
4
|
|
|
5
|
-
if(layout !== undefined){
|
|
5
|
+
if (layout !== undefined) {
|
|
6
6
|
return {
|
|
7
7
|
type: "Control",
|
|
8
8
|
scope: `#/properties/${scope}`,
|
|
@@ -15,123 +15,75 @@ export const emptyBox = (scope:string,layout?: any) => {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
return {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
type: "Control",
|
|
19
|
+
scope: "#/properties/empty",
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
21
|
+
options: {
|
|
22
|
+
widget: "EmptyBox",
|
|
23
|
+
},
|
|
24
|
+
config: {
|
|
25
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
26
|
+
},
|
|
27
|
+
}
|
|
28
28
|
}
|
|
29
|
-
// const cardLayout = {
|
|
30
|
-
// type: "Control",
|
|
31
|
-
// scope: "#/properties/cardLayout",
|
|
32
|
-
// options: {
|
|
33
|
-
// widget: "Array",
|
|
34
|
-
// },
|
|
35
|
-
// config: {
|
|
36
|
-
// layout: 12,
|
|
37
|
-
// main: {
|
|
38
|
-
// label: "Card Layout",
|
|
39
|
-
// childElementLabel: "Card Layout",
|
|
40
|
-
// },
|
|
41
|
-
// style: {
|
|
42
|
-
// marginLeft: "-24px",
|
|
43
|
-
// marginBottom: "24px !important",
|
|
44
|
-
// labelStyle: {
|
|
45
|
-
// marginLeft: "24px",
|
|
46
|
-
// },
|
|
47
|
-
// detailsStyle: {
|
|
48
|
-
// marginLeft: "24px",
|
|
49
|
-
// }
|
|
50
|
-
// }
|
|
51
|
-
// },
|
|
52
|
-
// elements: [
|
|
53
|
-
// {
|
|
54
|
-
// type: "Control",
|
|
55
|
-
// scope: "#/properties/key",
|
|
56
|
-
// options: {
|
|
57
|
-
// widget: "SelectInputField",
|
|
58
|
-
// },
|
|
59
|
-
// config: {
|
|
60
|
-
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
61
|
-
// main: {
|
|
62
|
-
// label: "Screen Size",
|
|
63
|
-
|
|
64
|
-
// },
|
|
65
|
-
// },
|
|
66
|
-
// },
|
|
67
|
-
// {
|
|
68
|
-
// type: "Control",
|
|
69
|
-
// scope: "#/properties/value",
|
|
70
|
-
|
|
71
|
-
// options: {
|
|
72
|
-
// widget: "InputField",
|
|
73
|
-
// },
|
|
74
|
-
// config: {
|
|
75
|
-
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
76
|
-
// main: {
|
|
77
|
-
// label: "Value",
|
|
78
|
-
// type: "number",
|
|
79
|
-
// // freeSolo:true,
|
|
80
|
-
// helperText: 'Number should be in range of 0 to 12',
|
|
81
|
-
// errorMessage: "Number Can't be greater than 12 and can't be less than 0.",
|
|
82
|
-
|
|
83
|
-
// },
|
|
84
|
-
// },
|
|
85
|
-
// },
|
|
86
|
-
// emptyBox("cardEmpty")
|
|
87
|
-
// ],
|
|
88
|
-
// };
|
|
89
29
|
const cardLayout = {
|
|
90
30
|
type: "Control",
|
|
91
31
|
scope: "#/properties/cardLayout",
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
32
|
+
config: {
|
|
33
|
+
layout: 12,
|
|
34
|
+
main: {
|
|
35
|
+
label: "Card Layout",
|
|
36
|
+
childElementLabel: "Card Layout",
|
|
37
|
+
},
|
|
38
|
+
style: {
|
|
39
|
+
marginLeft: "-24px",
|
|
40
|
+
marginBottom: "24px !important",
|
|
41
|
+
labelStyle: {
|
|
42
|
+
marginLeft: "24px",
|
|
43
|
+
},
|
|
44
|
+
detailsStyle: {
|
|
45
|
+
marginLeft: "24px",
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
elements: [
|
|
50
|
+
{
|
|
51
|
+
type: "Control",
|
|
52
|
+
scope: "#/properties/key",
|
|
53
|
+
options: {
|
|
54
|
+
widget: "SelectInputField",
|
|
55
|
+
},
|
|
56
|
+
config: {
|
|
57
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
58
|
+
main: {
|
|
59
|
+
label: "Screen Size",
|
|
107
60
|
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
61
|
},
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
type: "Control",
|
|
66
|
+
scope: "#/properties/value",
|
|
114
67
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
68
|
+
options: {
|
|
69
|
+
widget: "InputField",
|
|
70
|
+
},
|
|
71
|
+
config: {
|
|
72
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
73
|
+
main: {
|
|
74
|
+
label: "Value",
|
|
75
|
+
type: "number",
|
|
76
|
+
// freeSolo:true,
|
|
77
|
+
helperText: 'Number should be in range of 0 to 12',
|
|
78
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0.",
|
|
126
79
|
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
80
|
},
|
|
130
|
-
|
|
131
|
-
],
|
|
81
|
+
},
|
|
132
82
|
},
|
|
133
|
-
|
|
83
|
+
emptyBox("cardEmpty")
|
|
84
|
+
],
|
|
134
85
|
};
|
|
86
|
+
|
|
135
87
|
const getArrayControl = (parentScope: string, childScope: string, childLabel?: string,) => {
|
|
136
88
|
return {
|
|
137
89
|
type: "Control",
|
|
@@ -171,7 +123,7 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
|
|
|
171
123
|
},
|
|
172
124
|
},
|
|
173
125
|
},
|
|
174
|
-
emptyBox("ArrayControlEmpty1", {xs: 6, sm: 6, md: 8, lg: 8 }),
|
|
126
|
+
emptyBox("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 }),
|
|
175
127
|
],
|
|
176
128
|
}
|
|
177
129
|
};
|
|
@@ -276,7 +228,7 @@ export const getSelectField = (scope: string, label: string, options: { label: s
|
|
|
276
228
|
}
|
|
277
229
|
}
|
|
278
230
|
export const getMultiSelectField = (scope: string, label: string) => {
|
|
279
|
-
return
|
|
231
|
+
return {
|
|
280
232
|
type: "Control",
|
|
281
233
|
scope: `#/properties/${scope}`,
|
|
282
234
|
|
|
@@ -309,7 +261,17 @@ const BaseSection = {
|
|
|
309
261
|
export const buildPropertiesSection = function (type: String) {
|
|
310
262
|
let uiSchema = _.cloneDeep(BaseSection);
|
|
311
263
|
switch (type) {
|
|
264
|
+
case "Array":
|
|
265
|
+
uiSchema.elements = [
|
|
266
|
+
getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
|
|
267
|
+
getRadioInputField("disableAddButton", "Disable Add Button", ["YES", "NO"]),
|
|
268
|
+
getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
|
|
269
|
+
getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
|
|
270
|
+
getInputField("childElementLabel", "Child Element Label"),
|
|
271
|
+
emptyBox("empty1", { xs: 12, sm: 6, md: 4, lg: 3 }),
|
|
312
272
|
|
|
273
|
+
]
|
|
274
|
+
break;
|
|
313
275
|
case "TreeMap":
|
|
314
276
|
uiSchema.elements = [
|
|
315
277
|
getSelectField("orientation", "orientation", []),
|
|
@@ -317,7 +279,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
317
279
|
getInputField("graphHeight", "Graph Height"),
|
|
318
280
|
getInputField("graphWidth", "Graph Width"),
|
|
319
281
|
getInputField("graphZoomHeight", "Zoom Height"),
|
|
320
|
-
emptyBox("TreeEmpty", {xs: 6, sm: 6, md: 4, lg: 4})
|
|
282
|
+
emptyBox("TreeEmpty", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
321
283
|
]
|
|
322
284
|
break;
|
|
323
285
|
case "InputSlider":
|
|
@@ -325,9 +287,9 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
325
287
|
getInputField("max", "Max Limit"),
|
|
326
288
|
getInputField("step", "Step"),
|
|
327
289
|
getInputField("min", "Min Limit"),
|
|
328
|
-
emptyBox("InputSliderEmpty1", {xs: 6, sm: 0, md: 0, lg: 0}),
|
|
290
|
+
emptyBox("InputSliderEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
329
291
|
getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
|
|
330
|
-
emptyBox("InputSliderEmpty2", {xs: 0, sm: 0, md: 8, lg: 8})
|
|
292
|
+
emptyBox("InputSliderEmpty2", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
331
293
|
]
|
|
332
294
|
break;
|
|
333
295
|
case "DataGrid":
|
|
@@ -336,8 +298,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
336
298
|
getInputField("elevation", "Card Elevation"),
|
|
337
299
|
getInputField("height", "Grid height"),
|
|
338
300
|
getInputField("justifyContent", "justifyContent"),
|
|
339
|
-
emptyBox("DataGridEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
340
|
-
emptyBox("DataGridEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
301
|
+
emptyBox("DataGridEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
302
|
+
emptyBox("DataGridEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
341
303
|
cardLayout,
|
|
342
304
|
]
|
|
343
305
|
break;
|
|
@@ -351,7 +313,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
351
313
|
{ label: "Horizontal", value: "horizontal" },
|
|
352
314
|
{ label: "Vertical", value: "vertical" },
|
|
353
315
|
]),
|
|
354
|
-
emptyBox("Stepper", {xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
316
|
+
emptyBox("Stepper", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
355
317
|
|
|
356
318
|
getArrayControl("sectionLabels", "label")
|
|
357
319
|
|
|
@@ -362,23 +324,29 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
362
324
|
getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
|
|
363
325
|
getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
|
|
364
326
|
getInputField("maxWidth", "Max. Width"),
|
|
365
|
-
emptyBox("PopUpEmpty", {xs: 6, sm: 6, md: 0, lg: 0 })
|
|
327
|
+
emptyBox("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
366
328
|
]
|
|
367
329
|
break;
|
|
368
|
-
case "Text":
|
|
330
|
+
case "Text":
|
|
369
331
|
uiSchema.elements = [
|
|
370
332
|
getInputField("placeholder", "Placeholder"),
|
|
371
333
|
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
372
|
-
|
|
373
|
-
|
|
334
|
+
getSelectField("variant", "Variant", [
|
|
335
|
+
{ label: "Outlined", value: "outlined" },
|
|
336
|
+
{ label: "Filled", value: "filled" },
|
|
337
|
+
{ label: "Standard", value: "standard" },
|
|
338
|
+
]),
|
|
339
|
+
emptyBox("TextEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 }),
|
|
340
|
+
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
|
|
341
|
+
getInputField("keyName", "Event Key Name"),
|
|
374
342
|
]
|
|
375
343
|
break;
|
|
376
344
|
case "TextArea":
|
|
377
345
|
uiSchema.elements = [
|
|
378
346
|
getInputField("placeholder", "Placeholder"),
|
|
379
|
-
getRadioInputField("enableCodeEditor", "Enable Code Editor",["YES", "NO"]),
|
|
347
|
+
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
380
348
|
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
381
|
-
emptyBox("TextEmpty1", {xs: 0, sm: 0, md: 0, lg: 3 }),
|
|
349
|
+
emptyBox("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 }),
|
|
382
350
|
]
|
|
383
351
|
break;
|
|
384
352
|
|
|
@@ -389,14 +357,14 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
389
357
|
getInputField("heading", "Container Heading"),
|
|
390
358
|
getInputField("speedoCaption", "Speedometer Caption"),
|
|
391
359
|
getInputField("width", "Speedometer Width"),
|
|
392
|
-
emptyBox("SpeedoMeterEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 })
|
|
360
|
+
emptyBox("SpeedoMeterEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
393
361
|
]
|
|
394
362
|
break;
|
|
395
363
|
case "RankCard":
|
|
396
364
|
uiSchema.elements = [
|
|
397
365
|
getInputField("rank", "Rank"),
|
|
398
366
|
getInputField("height", "Height"),
|
|
399
|
-
emptyBox("RankCardEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 })];
|
|
367
|
+
emptyBox("RankCardEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 })];
|
|
400
368
|
break;
|
|
401
369
|
case "LeaderBoard":
|
|
402
370
|
uiSchema.elements = [
|
|
@@ -406,7 +374,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
406
374
|
getInputField("nameKey", "Key for Name"),
|
|
407
375
|
getInputField("imageKey", "Key for Image"),
|
|
408
376
|
getInputField("scoreKey", "Key for comparing parameter"),
|
|
409
|
-
emptyBox("LeaderBoardEmpty1", {xs: 6, sm: 6, md: 0, lg: 0 }),
|
|
377
|
+
emptyBox("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 }),
|
|
410
378
|
];
|
|
411
379
|
break;
|
|
412
380
|
case "CardSlider":
|
|
@@ -429,7 +397,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
429
397
|
getInputField("label", "Label"),
|
|
430
398
|
getInputField("titleIcon", "Unicode of Icon for title"),
|
|
431
399
|
getInputField("description", "Description"),
|
|
432
|
-
emptyBox("cardEmpty", {xs: 0, sm: 0, md: 8, lg: 8 })
|
|
400
|
+
emptyBox("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
433
401
|
];
|
|
434
402
|
break;
|
|
435
403
|
case "Button":
|
|
@@ -442,7 +410,13 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
442
410
|
{ label: "Apply Default Style", value: "true" },
|
|
443
411
|
{ label: "No Style", value: "false" },
|
|
444
412
|
]),
|
|
445
|
-
emptyBox("ButtonEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 })
|
|
413
|
+
emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
414
|
+
];
|
|
415
|
+
break;
|
|
416
|
+
case "Box":
|
|
417
|
+
uiSchema.elements = [
|
|
418
|
+
getSelectField("iconName", "Icon Name", []),
|
|
419
|
+
emptyBox("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
|
|
446
420
|
];
|
|
447
421
|
break;
|
|
448
422
|
case "Graph":
|
|
@@ -459,13 +433,13 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
459
433
|
]),
|
|
460
434
|
getInputField("leftLabel", "Left Label"),
|
|
461
435
|
getInputField("bottomLabel", "Bottom Label"),
|
|
462
|
-
emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
436
|
+
emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
463
437
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
464
438
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
465
439
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
466
440
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
467
441
|
getInputField("leftMargin", "Left Margin"),
|
|
468
|
-
emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
442
|
+
emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
469
443
|
getArrayControl("legendLabels", "label"),
|
|
470
444
|
getArrayControl("pieArcColors", "color"),
|
|
471
445
|
];
|
|
@@ -475,7 +449,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
475
449
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
|
|
476
450
|
, getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
477
451
|
getInputField("rowSpacing", "Row Spacing"),
|
|
478
|
-
|
|
452
|
+
emptyBox("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }), emptyBox("WrapperSectionEmpty2")
|
|
479
453
|
]
|
|
480
454
|
break;
|
|
481
455
|
|
|
@@ -528,21 +502,63 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
528
502
|
uiSchema.elements = [
|
|
529
503
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
530
504
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
505
|
+
getSelectField("variant", "Variant", [
|
|
506
|
+
{ label: "Outlined", value: "outlined" },
|
|
507
|
+
{ label: "Filled", value: "filled" },
|
|
508
|
+
{ label: "Standard", value: "standard" },
|
|
509
|
+
]),
|
|
531
510
|
emptyBox("SelectEmpty")
|
|
532
511
|
]
|
|
533
512
|
break;
|
|
534
513
|
case "MultipleSelect":
|
|
535
514
|
uiSchema.elements = [
|
|
536
515
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
537
|
-
|
|
516
|
+
getSelectField("variant", "Variant", [
|
|
517
|
+
{ label: "Outlined", value: "outlined" },
|
|
518
|
+
{ label: "Filled", value: "filled" },
|
|
519
|
+
{ label: "Standard", value: "standard" },
|
|
520
|
+
]),
|
|
521
|
+
emptyBox("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
|
|
538
522
|
emptyBox("MultipleSelectEmpty2")
|
|
539
523
|
]
|
|
540
524
|
break;
|
|
525
|
+
case "Date":
|
|
526
|
+
uiSchema.elements = [
|
|
527
|
+
getSelectField("variant", "Variant", [
|
|
528
|
+
{ label: "Outlined", value: "outlined" },
|
|
529
|
+
{ label: "Filled", value: "filled" },
|
|
530
|
+
{ label: "Standard", value: "standard" },
|
|
531
|
+
]),
|
|
532
|
+
emptyBox("DateEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
533
|
+
]
|
|
534
|
+
break;
|
|
535
|
+
case "DateTime":
|
|
536
|
+
uiSchema.elements = [
|
|
537
|
+
getSelectField("variant", "Variant", [
|
|
538
|
+
{ label: "Outlined", value: "outlined" },
|
|
539
|
+
{ label: "Filled", value: "filled" },
|
|
540
|
+
{ label: "Standard", value: "standard" },
|
|
541
|
+
]),
|
|
542
|
+
emptyBox("DateTimeEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
543
|
+
]
|
|
544
|
+
break;
|
|
541
545
|
case "Thought":
|
|
542
546
|
uiSchema.elements = [
|
|
543
547
|
getTextArea("thought", "Today's thought", false),
|
|
544
548
|
]
|
|
545
549
|
break;
|
|
550
|
+
case "Image":
|
|
551
|
+
uiSchema.elements = [
|
|
552
|
+
getInputField("imageUrl", "Image URL"),
|
|
553
|
+
getInputField("height", "Image Height"),
|
|
554
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
555
|
+
]
|
|
556
|
+
break;
|
|
557
|
+
case "FileInput":
|
|
558
|
+
uiSchema.elements = [
|
|
559
|
+
getRadioInputField("variant", "Variant", ["Outlined", "Standard"])
|
|
560
|
+
]
|
|
561
|
+
break;
|
|
546
562
|
}
|
|
547
563
|
return uiSchema;
|
|
548
564
|
};
|
|
@@ -35,7 +35,7 @@ export default function Card(theme){
|
|
|
35
35
|
{
|
|
36
36
|
type: "HorizontalLayout",
|
|
37
37
|
config: {
|
|
38
|
-
layout:
|
|
38
|
+
layout: 9,
|
|
39
39
|
},
|
|
40
40
|
elements: [
|
|
41
41
|
{
|
|
@@ -56,6 +56,7 @@ export default function Card(theme){
|
|
|
56
56
|
height: "inherit",
|
|
57
57
|
background: "transparent",
|
|
58
58
|
borderRadius: "0px",
|
|
59
|
+
padding: 0
|
|
59
60
|
},
|
|
60
61
|
layout: 12,
|
|
61
62
|
},
|
|
@@ -81,7 +82,8 @@ export default function Card(theme){
|
|
|
81
82
|
marginLeft: "-10px",
|
|
82
83
|
marginTop: "-8px",
|
|
83
84
|
justifyContent: "start",
|
|
84
|
-
position: "relative"
|
|
85
|
+
position: "relative",
|
|
86
|
+
padding: 0,
|
|
85
87
|
},
|
|
86
88
|
layout: 12,
|
|
87
89
|
},
|
|
@@ -187,7 +189,7 @@ export default function Card(theme){
|
|
|
187
189
|
height: "64px",
|
|
188
190
|
},
|
|
189
191
|
},
|
|
190
|
-
layout:
|
|
192
|
+
layout: 3,
|
|
191
193
|
},
|
|
192
194
|
options: {
|
|
193
195
|
widget: "Image",
|
|
@@ -89,129 +89,68 @@ export const CoreSection = {
|
|
|
89
89
|
{
|
|
90
90
|
type: "Control",
|
|
91
91
|
scope: "#/properties/layout",
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
elements: [
|
|
99
|
-
{
|
|
100
|
-
type: "Control",
|
|
101
|
-
scope: "#/properties/key",
|
|
102
|
-
options: {
|
|
103
|
-
widget: "SelectInputField",
|
|
104
|
-
},
|
|
105
|
-
config: {
|
|
106
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
107
|
-
main: {
|
|
108
|
-
label: "Screen Size",
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
type: "Control",
|
|
115
|
-
scope: "#/properties/value",
|
|
116
|
-
|
|
117
|
-
options: {
|
|
118
|
-
widget: "InputField",
|
|
119
|
-
},
|
|
120
|
-
config: {
|
|
121
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
122
|
-
main: {
|
|
123
|
-
label: "Value",
|
|
124
|
-
type:"number",
|
|
125
|
-
// freeSolo:true,
|
|
126
|
-
helperText:'Number should be in range of 0 to 12',
|
|
127
|
-
errorMessage:"Number Can't be greater than 12 and can't be less than 0.",
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
type: "Control",
|
|
133
|
-
scope: "#/properties/proc",
|
|
134
|
-
config: {
|
|
135
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
136
|
-
},
|
|
137
|
-
options: {
|
|
138
|
-
widget: "EmptyBox",
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
],
|
|
92
|
+
config: {
|
|
93
|
+
layout: 12,
|
|
94
|
+
main: {
|
|
95
|
+
label: "Layout",
|
|
96
|
+
childElementLabel: "Layout",
|
|
142
97
|
},
|
|
98
|
+
style: {
|
|
99
|
+
marginLeft: "-24px",
|
|
100
|
+
marginBottom: "24px !important",
|
|
101
|
+
labelStyle: {
|
|
102
|
+
marginLeft: "24px",
|
|
103
|
+
},
|
|
104
|
+
detailsStyle: {
|
|
105
|
+
marginLeft: "24px",
|
|
106
|
+
}
|
|
107
|
+
}
|
|
143
108
|
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
// main: {
|
|
156
|
-
// label: "Layout",
|
|
157
|
-
// childElementLabel: "Layout",
|
|
158
|
-
// },
|
|
159
|
-
// style: {
|
|
160
|
-
// marginLeft: "-24px",
|
|
161
|
-
// marginBottom: "24px !important",
|
|
162
|
-
// labelStyle: {
|
|
163
|
-
// marginLeft: "24px",
|
|
164
|
-
// },
|
|
165
|
-
// detailsStyle: {
|
|
166
|
-
// marginLeft: "24px",
|
|
167
|
-
// }
|
|
168
|
-
// }
|
|
169
|
-
// },
|
|
170
|
-
// elements: [
|
|
171
|
-
// {
|
|
172
|
-
// type: "Control",
|
|
173
|
-
// scope: "#/properties/key",
|
|
174
|
-
// options: {
|
|
175
|
-
// widget: "SelectInputField",
|
|
176
|
-
// },
|
|
177
|
-
// config: {
|
|
178
|
-
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
179
|
-
// main: {
|
|
180
|
-
// label: "Screen Size",
|
|
109
|
+
elements: [
|
|
110
|
+
{
|
|
111
|
+
type: "Control",
|
|
112
|
+
scope: "#/properties/key",
|
|
113
|
+
options: {
|
|
114
|
+
widget: "SelectInputField",
|
|
115
|
+
},
|
|
116
|
+
config: {
|
|
117
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
118
|
+
main: {
|
|
119
|
+
label: "Screen Size",
|
|
181
120
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: "Control",
|
|
126
|
+
scope: "#/properties/value",
|
|
188
127
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
128
|
+
options: {
|
|
129
|
+
widget: "InputField",
|
|
130
|
+
},
|
|
131
|
+
config: {
|
|
132
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
133
|
+
main: {
|
|
134
|
+
label: "Value",
|
|
135
|
+
type:"number",
|
|
136
|
+
// freeSolo:true,
|
|
137
|
+
helperText:'Number should be in range of 0 to 12',
|
|
138
|
+
errorMessage:"Number Can't be greater than 12 and can't be less than 0.",
|
|
200
139
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
type: "Control",
|
|
145
|
+
scope: "#/properties/proc",
|
|
146
|
+
config: {
|
|
147
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
148
|
+
},
|
|
149
|
+
options: {
|
|
150
|
+
widget: "EmptyBox",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
},
|
|
216
155
|
],
|
|
217
156
|
};
|