impaktapps-ui-builder 0.0.101-alpha.24 → 0.0.101-alpha.251
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 +557 -328
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +15 -15
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +0 -10
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +3 -5
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +8 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +21 -29
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +87 -72
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +11 -8
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -60
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +0 -52
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -50
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +25 -28
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +46 -159
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +23 -97
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +43 -259
- package/src/impaktapps-ui-builder/builder/services/component.ts +217 -56
- package/src/impaktapps-ui-builder/builder/services/event.ts +175 -58
- package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -111
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +0 -19
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +0 -22
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +0 -18
|
@@ -34,16 +34,6 @@ export declare const buildWrapper: (label: string, elements: any[]) => {
|
|
|
34
34
|
label: string;
|
|
35
35
|
isAccordion: boolean;
|
|
36
36
|
};
|
|
37
|
-
wrapperStyle: {
|
|
38
|
-
marginTop: string;
|
|
39
|
-
marginBottom: string;
|
|
40
|
-
marginLeft: string;
|
|
41
|
-
width: string;
|
|
42
|
-
};
|
|
43
|
-
componentsBoxStyle: {
|
|
44
|
-
marginLeft: string;
|
|
45
|
-
};
|
|
46
|
-
defaultStyle: boolean;
|
|
47
37
|
};
|
|
48
38
|
elements: any[];
|
|
49
39
|
};
|
|
@@ -6,6 +6,7 @@ export default function Card(theme: any): {
|
|
|
6
6
|
position: string;
|
|
7
7
|
top: string;
|
|
8
8
|
transform: string;
|
|
9
|
+
marginBottom: number;
|
|
9
10
|
};
|
|
10
11
|
componentsBoxStyle: {
|
|
11
12
|
boxShadow: string;
|
|
@@ -50,6 +51,7 @@ export default function Card(theme: any): {
|
|
|
50
51
|
};
|
|
51
52
|
wrapperStyle: {
|
|
52
53
|
background: string;
|
|
54
|
+
marginBottom: number;
|
|
53
55
|
};
|
|
54
56
|
componentsBoxStyle: {
|
|
55
57
|
flexDirection: string;
|
|
@@ -71,6 +73,7 @@ export default function Card(theme: any): {
|
|
|
71
73
|
};
|
|
72
74
|
wrapperStyle: {
|
|
73
75
|
background: string;
|
|
76
|
+
marginBottom: number;
|
|
74
77
|
};
|
|
75
78
|
componentsBoxStyle: {
|
|
76
79
|
flexDirection: string;
|
|
@@ -79,8 +82,6 @@ export default function Card(theme: any): {
|
|
|
79
82
|
height: string;
|
|
80
83
|
background: string;
|
|
81
84
|
borderRadius: string;
|
|
82
|
-
marginLeft: string;
|
|
83
|
-
marginTop: string;
|
|
84
85
|
justifyContent: string;
|
|
85
86
|
position: string;
|
|
86
87
|
};
|
|
@@ -105,7 +106,6 @@ export default function Card(theme: any): {
|
|
|
105
106
|
background: string;
|
|
106
107
|
justifyContent: string;
|
|
107
108
|
width: string;
|
|
108
|
-
margin: string;
|
|
109
109
|
height: number;
|
|
110
110
|
position?: undefined;
|
|
111
111
|
left?: undefined;
|
|
@@ -132,7 +132,6 @@ export default function Card(theme: any): {
|
|
|
132
132
|
background: string;
|
|
133
133
|
justifyContent: string;
|
|
134
134
|
width: string;
|
|
135
|
-
margin: string;
|
|
136
135
|
position: string;
|
|
137
136
|
left: string;
|
|
138
137
|
height?: undefined;
|
|
@@ -160,7 +159,6 @@ export default function Card(theme: any): {
|
|
|
160
159
|
textWrap: string;
|
|
161
160
|
background: string;
|
|
162
161
|
width: string;
|
|
163
|
-
margin: string;
|
|
164
162
|
marginTop: {
|
|
165
163
|
xs: string;
|
|
166
164
|
md: string;
|
|
@@ -22,5 +22,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
22
22
|
RemoveItemButton: (paramStore?: any) => void;
|
|
23
23
|
elementPathHandler: (parentPath: string, rowId: any, elementType: string) => string;
|
|
24
24
|
ElementPathSetter: (uiSchema: any, copiedFormData?: any) => void;
|
|
25
|
+
onNavigatePopupYes: () => void;
|
|
26
|
+
onNavigatePopupNo: () => void;
|
|
25
27
|
};
|
|
26
28
|
export default _default;
|
|
@@ -79,6 +79,12 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
79
79
|
RemoveItemButton: {
|
|
80
80
|
disabled: boolean;
|
|
81
81
|
};
|
|
82
|
+
pageName: {
|
|
83
|
+
path: {
|
|
84
|
+
label: string;
|
|
85
|
+
path: string;
|
|
86
|
+
}[];
|
|
87
|
+
};
|
|
82
88
|
};
|
|
83
89
|
required: string[];
|
|
84
90
|
};
|
|
@@ -92,5 +98,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
92
98
|
deletePopUpEvent: () => void;
|
|
93
99
|
copyPasteElement: () => void;
|
|
94
100
|
RemoveItemButton: () => void;
|
|
101
|
+
onNavigatePopupYes: () => void;
|
|
102
|
+
onNavigatePopupNo: () => void;
|
|
95
103
|
};
|
|
96
104
|
export default _default;
|
package/package.json
CHANGED
|
@@ -2,22 +2,25 @@ import _ from "lodash";
|
|
|
2
2
|
import TextInputField from "./uischema/textInputField";
|
|
3
3
|
import { createLayoutFormat } from "./buildConfig";
|
|
4
4
|
|
|
5
|
-
export const buildTextField = (config:any,componentScope:string) =>{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
inputField.
|
|
22
|
-
|
|
5
|
+
export const buildTextField = (config: any, componentScope: string) => {
|
|
6
|
+
const inputField: any = _.cloneDeep(TextInputField);
|
|
7
|
+
inputField.config.main.label = config.label;
|
|
8
|
+
if (config.style) {
|
|
9
|
+
inputField.config.style = JSON.parse(config.style)
|
|
10
|
+
}
|
|
11
|
+
if (config.multiline) {
|
|
12
|
+
inputField.config.main.multiline = config.multiline === "YES" ? true : false;
|
|
13
|
+
}
|
|
14
|
+
if (config.InputFormatingAndMasking) {
|
|
15
|
+
inputField.config.main.formatStrArray = config.InputFormatingAndMasking.map(e => e.formatElement);
|
|
16
|
+
}
|
|
17
|
+
if (config.placeholder) {
|
|
18
|
+
inputField.config.main.placeholder = config.placeholder;
|
|
19
|
+
}
|
|
20
|
+
if (config.layout) {
|
|
21
|
+
inputField.config.layout = createLayoutFormat(config.layout)
|
|
22
|
+
}
|
|
23
|
+
inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
|
|
24
|
+
inputField.scope = componentScope;
|
|
25
|
+
return inputField;
|
|
23
26
|
}
|
|
@@ -14,7 +14,7 @@ import { buildWrapperSection } from "./buildWrapperSection";
|
|
|
14
14
|
import { buildTextField } from "./buildText";
|
|
15
15
|
import { buildSelect } from "./buildSelect";
|
|
16
16
|
import { buildButton } from "./buildButton";
|
|
17
|
-
import {
|
|
17
|
+
import { buildTable } from "./buildTable";
|
|
18
18
|
import { buildLabel } from "./buildLabel";
|
|
19
19
|
import { buildUploadFile } from "./buildUplaodFile";
|
|
20
20
|
import { buildDownloadFile } from "./buildDownloadFile";
|
|
@@ -40,7 +40,6 @@ import { buildDataGrid } from "./buildDataGrid";
|
|
|
40
40
|
import { buildInputSlider } from "./buildInputSlider";
|
|
41
41
|
import { buildTreeMap } from "./buildTreeMap";
|
|
42
42
|
import { buildThoughtOfTheDay } from "./buildThoughtOfTheDay";
|
|
43
|
-
import { buildPdfViewer } from "./buildPdfViewer";
|
|
44
43
|
export let schema = {
|
|
45
44
|
type: "object",
|
|
46
45
|
properties: {},
|
|
@@ -308,8 +307,6 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
308
307
|
case "Thought":
|
|
309
308
|
elements = buildThoughtOfTheDay(config, componentScope);
|
|
310
309
|
break;
|
|
311
|
-
case "PdfViewer":
|
|
312
|
-
elements = buildPdfViewer(config);
|
|
313
310
|
break;
|
|
314
311
|
default:
|
|
315
312
|
schema = {
|
|
@@ -340,53 +337,48 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
340
337
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store)) : []
|
|
341
338
|
}
|
|
342
339
|
})
|
|
343
|
-
}
|
|
344
|
-
else if (config.type == "Table") {
|
|
340
|
+
} else if (config.type == "Table") {
|
|
345
341
|
const sizeMap = {}
|
|
346
|
-
|
|
342
|
+
|
|
347
343
|
if (config.sizeHolder) {
|
|
348
344
|
config.sizeHolder.map((e, i) => {
|
|
349
345
|
sizeMap[e.keyName] = e.value
|
|
350
346
|
});
|
|
351
347
|
}
|
|
352
|
-
|
|
353
|
-
config.enableColumnFilter.map((e)=>{
|
|
354
|
-
filterMap[e.keyName] = true
|
|
355
|
-
})
|
|
356
|
-
}
|
|
348
|
+
|
|
357
349
|
elements.elements = config.elements.map((cellElem, elemInd) => {
|
|
350
|
+
const commonProperties = {
|
|
351
|
+
accessorKey: cellElem.name,
|
|
352
|
+
type: cellElem.columnFormat,
|
|
353
|
+
header: cellElem.label || cellElem.name,
|
|
354
|
+
size: sizeMap[cellElem.name] || 180,
|
|
355
|
+
enableColumnFilter: cellElem.enableFilter === "No"?false:true,
|
|
356
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
357
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
358
|
+
columnKey: cellElem.columnKey
|
|
359
|
+
}
|
|
358
360
|
if (cellElem.type) {
|
|
359
361
|
return {
|
|
360
|
-
accessorKey: cellElem.name,
|
|
361
|
-
header: cellElem.label || cellElem.name,
|
|
362
|
-
size: sizeMap[cellElem.name] || 180,
|
|
363
|
-
type: cellElem.columnFormat,
|
|
364
362
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
|
|
365
363
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store)) : [],
|
|
366
|
-
|
|
367
|
-
|
|
364
|
+
...commonProperties
|
|
365
|
+
|
|
368
366
|
}
|
|
369
367
|
} else {
|
|
370
|
-
return
|
|
371
|
-
accessorKey: cellElem.name,
|
|
372
|
-
type: cellElem.columnFormat,
|
|
373
|
-
header: cellElem.label || cellElem.name,
|
|
374
|
-
size: sizeMap[cellElem.name] || 180,
|
|
375
|
-
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false,
|
|
376
|
-
columnFilterModeOptions: config.filteringOptions
|
|
377
|
-
}
|
|
368
|
+
return commonProperties
|
|
378
369
|
}
|
|
379
|
-
|
|
370
|
+
|
|
380
371
|
})
|
|
381
372
|
}
|
|
373
|
+
|
|
382
374
|
else if (config.type == "Array") {
|
|
383
375
|
elements.options.detail.elements = config.elements.map((e: any, elemInd: number) => {
|
|
384
|
-
return buildUiSchema(e,store)
|
|
376
|
+
return buildUiSchema(e, store)
|
|
385
377
|
});
|
|
386
378
|
}
|
|
387
379
|
else {
|
|
388
380
|
elements.elements = config.elements.map((e: any, elemInd: number) => {
|
|
389
|
-
return buildUiSchema(e,store)
|
|
381
|
+
return buildUiSchema(e, store)
|
|
390
382
|
});
|
|
391
383
|
}
|
|
392
384
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
import { buildLabel } from "../buildLabel";
|
|
4
|
-
import Box from "./box";
|
|
5
3
|
export const emptyBox = (scope:string,layout?: any) => {
|
|
6
4
|
|
|
7
5
|
if(layout !== undefined){
|
|
@@ -31,82 +29,108 @@ export const emptyBox = (scope:string,layout?: any) => {
|
|
|
31
29
|
const cardLayout = {
|
|
32
30
|
type: "Control",
|
|
33
31
|
scope: "#/properties/cardLayout",
|
|
34
|
-
layout: 11.5,
|
|
35
32
|
options: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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",
|
|
49
63
|
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
64
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "Control",
|
|
69
|
+
scope: "#/properties/value",
|
|
56
70
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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.",
|
|
68
82
|
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
83
|
},
|
|
72
|
-
|
|
73
|
-
],
|
|
84
|
+
},
|
|
74
85
|
},
|
|
75
|
-
|
|
86
|
+
emptyBox("cardEmpty")
|
|
87
|
+
],
|
|
76
88
|
};
|
|
77
89
|
const getArrayControl = (parentScope: string, childScope: string, childLabel?: string,) => {
|
|
78
90
|
return {
|
|
79
91
|
type: "Control",
|
|
80
92
|
scope: `#/properties/${parentScope}`,
|
|
81
|
-
layout: 12,
|
|
82
93
|
options: {
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
94
|
+
widget: "Array"
|
|
95
|
+
},
|
|
96
|
+
config: {
|
|
97
|
+
layout: 12,
|
|
98
|
+
main: {
|
|
99
|
+
label: childLabel,
|
|
100
|
+
childElementLabel: childLabel,
|
|
101
|
+
},
|
|
102
|
+
style: {
|
|
103
|
+
marginLeft: "-24px",
|
|
104
|
+
marginBottom: "24px !important",
|
|
105
|
+
labelStyle: {
|
|
106
|
+
marginLeft: "24px",
|
|
107
|
+
},
|
|
108
|
+
detailsStyle: {
|
|
109
|
+
marginLeft: "24px",
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
elements: [
|
|
114
|
+
{
|
|
115
|
+
type: "Control",
|
|
116
|
+
scope: `#/properties/${childScope}`,
|
|
90
117
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
},
|
|
118
|
+
options: {
|
|
119
|
+
widget: "InputField",
|
|
120
|
+
},
|
|
121
|
+
config: {
|
|
122
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
123
|
+
main: {
|
|
124
|
+
label: childLabel || "Labels for Tab",
|
|
100
125
|
},
|
|
101
|
-
|
|
102
|
-
emptyBox("ArrayControlEmpty2", {xs: 0, sm: 0, md: 4, lg: 4 })
|
|
103
|
-
],
|
|
126
|
+
},
|
|
104
127
|
},
|
|
105
|
-
|
|
128
|
+
emptyBox("ArrayControlEmpty1", {xs: 6, sm: 6, md: 8, lg: 8 }),
|
|
129
|
+
],
|
|
106
130
|
}
|
|
107
131
|
};
|
|
108
132
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
109
|
-
sizeHolder.
|
|
133
|
+
sizeHolder.elements[1] = {
|
|
110
134
|
type: "Control",
|
|
111
135
|
scope: `#/properties/value`,
|
|
112
136
|
|
|
@@ -120,7 +144,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
120
144
|
},
|
|
121
145
|
},
|
|
122
146
|
};
|
|
123
|
-
sizeHolder.
|
|
147
|
+
sizeHolder.elements[2] = emptyBox("sizeHolderempty")
|
|
124
148
|
const getInputField = (scope: String, label: String) => {
|
|
125
149
|
return {
|
|
126
150
|
type: "Control",
|
|
@@ -164,16 +188,6 @@ export const buildWrapper = (label: string, elements: any[]) => {
|
|
|
164
188
|
label: label || "Details",
|
|
165
189
|
isAccordion: true,
|
|
166
190
|
},
|
|
167
|
-
wrapperStyle: {
|
|
168
|
-
marginTop: '-6px',
|
|
169
|
-
marginBottom: '-8px',
|
|
170
|
-
marginLeft: "-34px",
|
|
171
|
-
width: "108%"
|
|
172
|
-
},
|
|
173
|
-
componentsBoxStyle: {
|
|
174
|
-
marginLeft: "12px",
|
|
175
|
-
},
|
|
176
|
-
defaultStyle: true
|
|
177
191
|
},
|
|
178
192
|
elements: elements || []
|
|
179
193
|
}
|
|
@@ -308,7 +322,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
308
322
|
case "Text":
|
|
309
323
|
uiSchema.elements = [
|
|
310
324
|
getInputField("placeholder", "Placeholder"),
|
|
311
|
-
|
|
325
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
312
326
|
emptyBox("TextEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
313
327
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
314
328
|
]
|
|
@@ -318,6 +332,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
318
332
|
getInputField("placeholder", "Placeholder"),
|
|
319
333
|
getRadioInputField("enableCodeEditor", "Enable Code Editor",["YES", "NO"]),
|
|
320
334
|
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
335
|
+
emptyBox("TextEmpty1", {xs: 0, sm: 0, md: 0, lg: 3 }),
|
|
321
336
|
]
|
|
322
337
|
break;
|
|
323
338
|
|
|
@@ -404,7 +419,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
404
419
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
405
420
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
406
421
|
getInputField("leftMargin", "Left Margin"),
|
|
407
|
-
emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 8, lg:
|
|
422
|
+
emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
408
423
|
getArrayControl("legendLabels", "label"),
|
|
409
424
|
getArrayControl("pieArcColors", "color"),
|
|
410
425
|
];
|
|
@@ -6,7 +6,8 @@ export default function Card(theme){
|
|
|
6
6
|
wrapperStyle: {
|
|
7
7
|
position: "relative",
|
|
8
8
|
top: "50%",
|
|
9
|
-
transform: "translateY(-50%)"
|
|
9
|
+
transform: "translateY(-50%)",
|
|
10
|
+
marginBottom: 0
|
|
10
11
|
},
|
|
11
12
|
componentsBoxStyle: {
|
|
12
13
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
@@ -46,6 +47,7 @@ export default function Card(theme){
|
|
|
46
47
|
},
|
|
47
48
|
wrapperStyle: {
|
|
48
49
|
background: "transparent",
|
|
50
|
+
marginBottom: 0
|
|
49
51
|
},
|
|
50
52
|
componentsBoxStyle: {
|
|
51
53
|
flexDirection: "column",
|
|
@@ -67,6 +69,7 @@ export default function Card(theme){
|
|
|
67
69
|
},
|
|
68
70
|
wrapperStyle: {
|
|
69
71
|
background: "transparent",
|
|
72
|
+
marginBottom: 0
|
|
70
73
|
},
|
|
71
74
|
componentsBoxStyle: {
|
|
72
75
|
flexDirection: "row",
|
|
@@ -75,8 +78,8 @@ export default function Card(theme){
|
|
|
75
78
|
height: "0",
|
|
76
79
|
background: "transparent",
|
|
77
80
|
borderRadius: "0px",
|
|
78
|
-
marginLeft: "-10px",
|
|
79
|
-
marginTop: "-8px",
|
|
81
|
+
// marginLeft: "-10px",
|
|
82
|
+
// marginTop: "-8px",
|
|
80
83
|
justifyContent: "start",
|
|
81
84
|
position: "relative"
|
|
82
85
|
},
|
|
@@ -98,7 +101,7 @@ export default function Card(theme){
|
|
|
98
101
|
background: "inherit",
|
|
99
102
|
justifyContent: "flex-start",
|
|
100
103
|
width: "auto",
|
|
101
|
-
margin: "-8px",
|
|
104
|
+
// margin: "-8px",
|
|
102
105
|
height: 0
|
|
103
106
|
},
|
|
104
107
|
// layout: 1,
|
|
@@ -122,9 +125,9 @@ export default function Card(theme){
|
|
|
122
125
|
background: "inherit",
|
|
123
126
|
justifyContent: "flex-start",
|
|
124
127
|
width: "auto",
|
|
125
|
-
margin: "-8px",
|
|
128
|
+
// margin: "-8px",
|
|
126
129
|
position: "absolute",
|
|
127
|
-
left: "
|
|
130
|
+
left: "0px"
|
|
128
131
|
},
|
|
129
132
|
// layout: 11,
|
|
130
133
|
},
|
|
@@ -147,8 +150,8 @@ export default function Card(theme){
|
|
|
147
150
|
justifyContent: "center",
|
|
148
151
|
textWrap: "wrap",
|
|
149
152
|
background: "inherit",
|
|
150
|
-
width: "
|
|
151
|
-
margin: "-8px",
|
|
153
|
+
width: "100%",
|
|
154
|
+
// margin: "-8px",
|
|
152
155
|
marginTop: {xs: "0px", md: "12px"},
|
|
153
156
|
lineHeight: "1",
|
|
154
157
|
},
|
|
@@ -214,63 +214,4 @@ export const CoreSection = {
|
|
|
214
214
|
],
|
|
215
215
|
},
|
|
216
216
|
],
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
// export const OptionArray: any = {
|
|
220
|
-
// type: "Control",
|
|
221
|
-
// scope: "#/properties/value",
|
|
222
|
-
// layout: 11.5,
|
|
223
|
-
// options: {
|
|
224
|
-
// detail: {
|
|
225
|
-
// type: "HorizontalLayout",
|
|
226
|
-
// elements: [
|
|
227
|
-
// {
|
|
228
|
-
// type: "Control",
|
|
229
|
-
// scope: "#/properties/label",
|
|
230
|
-
// options: {
|
|
231
|
-
// widget: "SelectInputField",
|
|
232
|
-
// },
|
|
233
|
-
// config: {
|
|
234
|
-
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
235
|
-
// main: {
|
|
236
|
-
// label: "Label",
|
|
237
|
-
// },
|
|
238
|
-
// },
|
|
239
|
-
// },
|
|
240
|
-
// {
|
|
241
|
-
// type: "Control",
|
|
242
|
-
// scope: "#/properties/value",
|
|
243
|
-
|
|
244
|
-
// options: {
|
|
245
|
-
// widget: "InputField",
|
|
246
|
-
// },
|
|
247
|
-
// config: {
|
|
248
|
-
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
249
|
-
// main: {
|
|
250
|
-
// label: "Value",
|
|
251
|
-
// helperText: 'Number should be in range of 0 to 12',
|
|
252
|
-
// errorMessage: "Number Can't be greater than 12 and can't be less than 0.",
|
|
253
|
-
// },
|
|
254
|
-
// },
|
|
255
|
-
// },
|
|
256
|
-
// ],
|
|
257
|
-
// },
|
|
258
|
-
// },
|
|
259
|
-
// };
|
|
260
|
-
|
|
261
|
-
// export const OptionArraySchema = {
|
|
262
|
-
// value: {
|
|
263
|
-
// type: "array",
|
|
264
|
-
// items: {
|
|
265
|
-
// type: "object",
|
|
266
|
-
// properties: {
|
|
267
|
-
// label: {
|
|
268
|
-
// type: "string",
|
|
269
|
-
// },
|
|
270
|
-
// value: {
|
|
271
|
-
// type: "string",
|
|
272
|
-
// },
|
|
273
|
-
// },
|
|
274
|
-
// },
|
|
275
|
-
// },
|
|
276
|
-
// };
|
|
217
|
+
};
|
|
@@ -79,7 +79,7 @@ export const EventSection = (theme)=>{
|
|
|
79
79
|
|
|
80
80
|
{
|
|
81
81
|
accessorKey: "eventType",
|
|
82
|
-
header: "Event Type",
|
|
82
|
+
header: "Event's Type",
|
|
83
83
|
type: "string",
|
|
84
84
|
size: 300,
|
|
85
85
|
},
|
|
@@ -91,7 +91,7 @@ export const EventSection = (theme)=>{
|
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
accessorKey: "Edit_Approve_Records",
|
|
94
|
-
header: "Edit
|
|
94
|
+
header: "Edit",
|
|
95
95
|
size: 150,
|
|
96
96
|
type: "action",
|
|
97
97
|
widget: {
|