impaktapps-ui-builder 0.0.382-alpha.60 → 0.0.382-alpha.6000
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 +1839 -1272
- 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/buildBasicUiSchema.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +2 -35
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +12 -10
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +18 -15
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +121 -70
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +108 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +8 -5
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +102 -53
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +2 -17
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +2 -17
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +3 -2
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +0 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +26 -30
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +21 -30
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +6 -6
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +27 -50
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +49 -30
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +10 -9
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +36 -16
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +6 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +125 -99
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +108 -108
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +9 -5
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +12 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +6 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +58 -84
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +6 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +12 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +440 -448
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +515 -456
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +367 -520
- package/src/impaktapps-ui-builder/builder/services/component.ts +25 -7
- package/src/impaktapps-ui-builder/builder/services/event.ts +17 -9
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +19 -3
- package/src/impaktapps-ui-builder/runtime/services/events.ts +4 -14
- package/src/impaktapps-ui-builder/runtime/services/service.ts +0 -5
|
@@ -2,67 +2,116 @@ export declare const TableSection: {
|
|
|
2
2
|
type: string;
|
|
3
3
|
elements: {
|
|
4
4
|
type: string;
|
|
5
|
-
scope: string;
|
|
6
|
-
options: {
|
|
7
|
-
widget: string;
|
|
8
|
-
};
|
|
9
5
|
config: {
|
|
10
|
-
main: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
widget: {
|
|
14
|
-
type: string;
|
|
15
|
-
scope: string;
|
|
16
|
-
options: {
|
|
17
|
-
widget: string;
|
|
18
|
-
};
|
|
19
|
-
config: {
|
|
20
|
-
main: {
|
|
21
|
-
color: string;
|
|
22
|
-
onClick: string;
|
|
23
|
-
size: string;
|
|
24
|
-
icon: string;
|
|
25
|
-
iconLabel: string;
|
|
26
|
-
styleDefault: boolean;
|
|
27
|
-
};
|
|
28
|
-
style: {
|
|
29
|
-
mt: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
}[];
|
|
34
|
-
};
|
|
35
|
-
disableAction: boolean;
|
|
36
|
-
disableSelection: boolean;
|
|
37
|
-
enableDrag: boolean;
|
|
6
|
+
main: {};
|
|
7
|
+
wrapperStyle: {
|
|
8
|
+
border: string;
|
|
38
9
|
};
|
|
39
10
|
};
|
|
40
11
|
elements: ({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
12
|
+
type: string;
|
|
13
|
+
scope: string;
|
|
14
|
+
options: {
|
|
15
|
+
widget: string;
|
|
16
|
+
};
|
|
17
|
+
config: {
|
|
18
|
+
layout: number;
|
|
19
|
+
main: {
|
|
20
|
+
heading: string;
|
|
21
|
+
icon?: undefined;
|
|
22
|
+
styleDefault?: undefined;
|
|
23
|
+
size?: undefined;
|
|
24
|
+
onClick?: undefined;
|
|
25
|
+
tooltipMessage?: undefined;
|
|
26
|
+
disableAction?: undefined;
|
|
27
|
+
disableSelection?: undefined;
|
|
28
|
+
enableDrag?: undefined;
|
|
29
|
+
};
|
|
30
|
+
style: {
|
|
31
|
+
fontFamily: string;
|
|
32
|
+
fontWeight: string;
|
|
33
|
+
paddingLeft: string;
|
|
34
|
+
fontSize: string;
|
|
35
|
+
float?: undefined;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
elements?: undefined;
|
|
46
39
|
} | {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
40
|
+
type: string;
|
|
41
|
+
scope: string;
|
|
42
|
+
options: {
|
|
43
|
+
widget: string;
|
|
44
|
+
};
|
|
45
|
+
config: {
|
|
46
|
+
layout: number;
|
|
47
|
+
main: {
|
|
48
|
+
icon: string;
|
|
49
|
+
styleDefault: boolean;
|
|
50
|
+
size: string;
|
|
51
|
+
onClick: string;
|
|
52
|
+
tooltipMessage: string;
|
|
53
|
+
heading?: undefined;
|
|
54
|
+
disableAction?: undefined;
|
|
55
|
+
disableSelection?: undefined;
|
|
56
|
+
enableDrag?: undefined;
|
|
55
57
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
};
|
|
58
|
+
style: {
|
|
59
|
+
float: string;
|
|
60
|
+
fontFamily?: undefined;
|
|
61
|
+
fontWeight?: undefined;
|
|
62
|
+
paddingLeft?: undefined;
|
|
63
|
+
fontSize?: undefined;
|
|
63
64
|
};
|
|
64
65
|
};
|
|
65
|
-
|
|
66
|
+
elements?: undefined;
|
|
67
|
+
} | {
|
|
68
|
+
type: string;
|
|
69
|
+
scope: string;
|
|
70
|
+
options: {
|
|
71
|
+
widget: string;
|
|
72
|
+
};
|
|
73
|
+
config: {
|
|
74
|
+
main: {
|
|
75
|
+
disableAction: boolean;
|
|
76
|
+
disableSelection: boolean;
|
|
77
|
+
enableDrag: boolean;
|
|
78
|
+
heading?: undefined;
|
|
79
|
+
icon?: undefined;
|
|
80
|
+
styleDefault?: undefined;
|
|
81
|
+
size?: undefined;
|
|
82
|
+
onClick?: undefined;
|
|
83
|
+
tooltipMessage?: undefined;
|
|
84
|
+
};
|
|
85
|
+
layout?: undefined;
|
|
86
|
+
style?: undefined;
|
|
87
|
+
};
|
|
88
|
+
elements: ({
|
|
89
|
+
accessorKey: string;
|
|
90
|
+
header: string;
|
|
91
|
+
field?: undefined;
|
|
92
|
+
flex?: undefined;
|
|
93
|
+
widget?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
header: string;
|
|
96
|
+
field: string;
|
|
97
|
+
flex: number;
|
|
98
|
+
widget: {
|
|
99
|
+
type: string;
|
|
100
|
+
scope: string;
|
|
101
|
+
options: {
|
|
102
|
+
widget: string;
|
|
103
|
+
};
|
|
104
|
+
config: {
|
|
105
|
+
main: {
|
|
106
|
+
icon: string;
|
|
107
|
+
color: string;
|
|
108
|
+
onClick: string;
|
|
109
|
+
tooltipMessage: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
accessorKey?: undefined;
|
|
114
|
+
})[];
|
|
66
115
|
})[];
|
|
67
116
|
}[];
|
|
68
117
|
};
|
|
@@ -8,7 +8,7 @@ export declare const ValidationSection: {
|
|
|
8
8
|
elementLabelProp: string;
|
|
9
9
|
detail: {
|
|
10
10
|
type: string;
|
|
11
|
-
elements:
|
|
11
|
+
elements: {
|
|
12
12
|
type: string;
|
|
13
13
|
scope: string;
|
|
14
14
|
options: {
|
|
@@ -25,22 +25,7 @@ export declare const ValidationSection: {
|
|
|
25
25
|
label: string;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
}
|
|
29
|
-
type: string;
|
|
30
|
-
scope: string;
|
|
31
|
-
options: {
|
|
32
|
-
widget: string;
|
|
33
|
-
};
|
|
34
|
-
config: {
|
|
35
|
-
layout: {
|
|
36
|
-
xs: number;
|
|
37
|
-
sm: number;
|
|
38
|
-
md?: undefined;
|
|
39
|
-
lg?: undefined;
|
|
40
|
-
};
|
|
41
|
-
main?: undefined;
|
|
42
|
-
};
|
|
43
|
-
})[];
|
|
28
|
+
}[];
|
|
44
29
|
};
|
|
45
30
|
};
|
|
46
31
|
}[];
|
|
@@ -7,7 +7,7 @@ export declare const ValueTab: {
|
|
|
7
7
|
options: {
|
|
8
8
|
detail: {
|
|
9
9
|
type: string;
|
|
10
|
-
elements:
|
|
10
|
+
elements: {
|
|
11
11
|
type: string;
|
|
12
12
|
scope: string;
|
|
13
13
|
options: {
|
|
@@ -24,22 +24,7 @@ export declare const ValueTab: {
|
|
|
24
24
|
label: string;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
}
|
|
28
|
-
type: string;
|
|
29
|
-
scope: string;
|
|
30
|
-
options: {
|
|
31
|
-
widget: string;
|
|
32
|
-
};
|
|
33
|
-
config: {
|
|
34
|
-
layout: {
|
|
35
|
-
xs: number;
|
|
36
|
-
sm: number;
|
|
37
|
-
md: number;
|
|
38
|
-
lg: number;
|
|
39
|
-
};
|
|
40
|
-
main?: undefined;
|
|
41
|
-
};
|
|
42
|
-
})[];
|
|
27
|
+
}[];
|
|
43
28
|
};
|
|
44
29
|
};
|
|
45
30
|
}[];
|
|
@@ -8,11 +8,13 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
8
8
|
saveHandler: () => Promise<void>;
|
|
9
9
|
onChange: () => void;
|
|
10
10
|
editComponents: () => void;
|
|
11
|
-
deleteComponents: () => void;
|
|
12
|
-
deleteEvent: () => void;
|
|
11
|
+
deleteComponents: (shouldUpdateDialog?: boolean) => void;
|
|
12
|
+
deleteEvent: (shouldUpdateDialog?: boolean) => void;
|
|
13
13
|
widgetAddClickHandler: () => void;
|
|
14
14
|
eventEditHandler: () => void;
|
|
15
15
|
eventAddHandler: () => void;
|
|
16
16
|
backHandler: () => void;
|
|
17
|
+
deletePopUpComponent: () => void;
|
|
18
|
+
deletePopUpEvent: () => void;
|
|
17
19
|
};
|
|
18
20
|
export default _default;
|
|
@@ -2,7 +2,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
2
2
|
setPage: () => Promise<void>;
|
|
3
3
|
refreshPage: (handlerType: any, store: any) => void;
|
|
4
4
|
getFormData: () => any;
|
|
5
|
-
getUiSchema: () =>
|
|
5
|
+
getUiSchema: () => any;
|
|
6
6
|
getSchema: () => {
|
|
7
7
|
type: string;
|
|
8
8
|
properties: {
|
|
@@ -81,7 +81,8 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
81
81
|
onChange: () => void;
|
|
82
82
|
addEvent: () => void;
|
|
83
83
|
editEvent: () => void;
|
|
84
|
-
deleteEvent: () => void
|
|
84
|
+
deleteEvent: () => Promise<void>;
|
|
85
85
|
backHandler: () => void;
|
|
86
|
+
deletePopUpEvent: () => void;
|
|
86
87
|
};
|
|
87
88
|
export default _default;
|
|
@@ -51,9 +51,11 @@ declare const _default: (funcParams: funcParamsProps) => {
|
|
|
51
51
|
onAddClickHandler: () => void;
|
|
52
52
|
saveHandler: () => Promise<void>;
|
|
53
53
|
Edit_Components: () => void;
|
|
54
|
-
Delete_Components: () => void
|
|
54
|
+
Delete_Components: () => Promise<void>;
|
|
55
55
|
eventAddHandler: () => void;
|
|
56
56
|
editEvent: () => void;
|
|
57
57
|
deleteEvent: () => void;
|
|
58
|
+
deletePopUpComponent: () => void;
|
|
59
|
+
deletePopUpEvent: () => void;
|
|
58
60
|
};
|
|
59
61
|
export default _default;
|
|
@@ -19,7 +19,6 @@ declare const _default: (funcParams: funcParamsProps) => {
|
|
|
19
19
|
updateConfigApiBody: (paramValue: any, apiBody: any) => Promise<any>;
|
|
20
20
|
onBack: (functionParameters: any) => Promise<void>;
|
|
21
21
|
onNext: (functionParameters: any) => Promise<void>;
|
|
22
|
-
backHandler: () => void;
|
|
23
22
|
onReset: (functionParameters: any) => Promise<void>;
|
|
24
23
|
callHandler: (eventType: string, functionParameters?: any) => Promise<void>;
|
|
25
24
|
downloadFile: (obj: any) => void;
|
package/package.json
CHANGED
|
@@ -3,37 +3,33 @@ import { HorizontalBarGraph } from "./uischema/graph";
|
|
|
3
3
|
import _ from "lodash";
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
const buildHorizontalBarGraph = (config:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
horizontalBarGraph.scope = componentScope;
|
|
13
|
-
horizontalBarGraph.config.main.header = config.heading;
|
|
14
|
-
if (config.barColor) {
|
|
15
|
-
horizontalBarGraph.config.barStyle.color = config.barColor;
|
|
16
|
-
}
|
|
17
|
-
if (config.containerBackground) {
|
|
18
|
-
horizontalBarGraph.config.containerStyle.background =
|
|
19
|
-
config.containerBackground;
|
|
20
|
-
}
|
|
21
|
-
if (config.height) {
|
|
22
|
-
horizontalBarGraph.config.style =
|
|
23
|
-
{
|
|
24
|
-
containerStyle: {
|
|
25
|
-
height: config.height
|
|
26
|
-
}
|
|
6
|
+
const buildHorizontalBarGraph = (config:any,componentScope:string) => {
|
|
7
|
+
const horizontalBarGraph: any = _.cloneDeep(HorizontalBarGraph);
|
|
8
|
+
horizontalBarGraph.scope = componentScope;
|
|
9
|
+
if (config.layout) {
|
|
10
|
+
horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
|
|
27
11
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
config.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
12
|
+
horizontalBarGraph.scope = componentScope;
|
|
13
|
+
horizontalBarGraph.config.main.header = config.heading;
|
|
14
|
+
if (config.barColor) {
|
|
15
|
+
horizontalBarGraph.config.barStyle.color = config.barColor;
|
|
16
|
+
}
|
|
17
|
+
if (config.containerBackground) {
|
|
18
|
+
horizontalBarGraph.config.containerStyle.background =
|
|
19
|
+
config.containerBackground;
|
|
20
|
+
}
|
|
21
|
+
if (config.height) {
|
|
22
|
+
horizontalBarGraph.config.style.containerStyle.height =
|
|
23
|
+
config.height;
|
|
24
|
+
}
|
|
25
|
+
if (config.bottomLabel) {
|
|
26
|
+
horizontalBarGraph.config.main.bottomLabel =
|
|
27
|
+
config.bottomLabel;
|
|
28
|
+
}
|
|
29
|
+
if (config.leftLabel) {
|
|
30
|
+
horizontalBarGraph.config.main.leftLabel = config.leftLabel;
|
|
31
|
+
}
|
|
32
|
+
return horizontalBarGraph
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
export default buildHorizontalBarGraph
|
|
@@ -2,35 +2,26 @@ import { createLayoutFormat, flatObjectValueInArray } from "./buildConfig";
|
|
|
2
2
|
import { PieGraph } from "./uischema/graph";
|
|
3
3
|
import _ from "lodash";
|
|
4
4
|
// flatObjectValueInArray
|
|
5
|
-
export const buildPieGraph = (config,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
if (config.height) {
|
|
11
|
-
pieGraph.config.style =
|
|
12
|
-
{
|
|
13
|
-
containerStyle: {
|
|
14
|
-
height: config.height
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
if (config.legendHide) {
|
|
19
|
-
pieGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
|
|
20
|
-
}
|
|
21
|
-
pieGraph.scope = componentScope;
|
|
22
|
-
pieGraph.config.main.header = config.heading;
|
|
23
|
-
|
|
24
|
-
if (config.legendLabels) {
|
|
25
|
-
pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
if (config.pieArcColors) {
|
|
29
|
-
pieGraph.config.style = {
|
|
30
|
-
pieStyle: {
|
|
31
|
-
colorRange: flatObjectValueInArray(config.pieArcColors)
|
|
32
|
-
}
|
|
5
|
+
export const buildPieGraph = (config,componentScope) =>{
|
|
6
|
+
const pieGraph: any = _.cloneDeep(PieGraph);
|
|
7
|
+
if (config.layout) {
|
|
8
|
+
pieGraph.config.layout = createLayoutFormat(config.layout);
|
|
33
9
|
}
|
|
34
|
-
|
|
35
|
-
|
|
10
|
+
if (config.height) {
|
|
11
|
+
pieGraph.config.style.containerStyle.height = config.height;
|
|
12
|
+
}
|
|
13
|
+
if (config.legendHide) {
|
|
14
|
+
pieGraph.config.main.legendAvailabe = config.legendHide==="YES"?false:true;
|
|
15
|
+
}
|
|
16
|
+
pieGraph.scope = componentScope;
|
|
17
|
+
pieGraph.config.main.header = config.heading;
|
|
18
|
+
|
|
19
|
+
if(config.legendLabels){
|
|
20
|
+
pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if(config.pieArcColors){
|
|
24
|
+
pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
|
|
25
|
+
}
|
|
26
|
+
return pieGraph;
|
|
36
27
|
}
|
|
@@ -8,17 +8,17 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
|
|
|
8
8
|
barGraph.config.layout = createLayoutFormat(config.layout);
|
|
9
9
|
}
|
|
10
10
|
if (config.legendHide) {
|
|
11
|
-
barGraph.config.main.legendAvailable =
|
|
11
|
+
barGraph.config.main.legendAvailable = false;
|
|
12
12
|
}
|
|
13
13
|
barGraph.config.main.type = config.graphType;
|
|
14
14
|
barGraph.config.main.header = config.heading;
|
|
15
15
|
if (config.barColor) {
|
|
16
16
|
barGraph.config.barStyle.color = config.barColor;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
if (config.containerBackground) {
|
|
19
|
+
barGraph.config.containerStyle.background =
|
|
20
|
+
config.containerBackground;
|
|
21
|
+
}
|
|
22
22
|
if (config.height) {
|
|
23
23
|
barGraph.config.style.containerStyle.height = config.height;
|
|
24
24
|
}
|
|
@@ -28,6 +28,6 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
|
|
|
28
28
|
if (config.leftLabel) {
|
|
29
29
|
barGraph.config.main.leftLabel = config.leftLabel;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
barGraph.scope = componentScope;
|
|
32
32
|
return barGraph;
|
|
33
33
|
}
|
|
@@ -4,10 +4,8 @@ import _ from "lodash";
|
|
|
4
4
|
|
|
5
5
|
export const buildWrapperSection = (config,componentScope) =>{
|
|
6
6
|
const wrapper: any = _.cloneDeep(WrapperSection);
|
|
7
|
-
wrapper.scope = componentScope;
|
|
8
7
|
wrapper.config.main.label = config.label;
|
|
9
8
|
wrapper.config.main.divider = config.divider === "YES" ? true : false;
|
|
10
|
-
wrapper.config.main.isAccordion = config.isAccordion==="YES"?true:false;
|
|
11
9
|
if (config.style) {
|
|
12
10
|
wrapper.config.style = JSON.parse(config.style)
|
|
13
11
|
}
|
|
@@ -15,4 +13,4 @@ export const buildWrapperSection = (config,componentScope) =>{
|
|
|
15
13
|
wrapper.config.layout = createLayoutFormat(config.layout)
|
|
16
14
|
}
|
|
17
15
|
return wrapper;
|
|
18
|
-
}
|
|
16
|
+
}
|
|
@@ -11,7 +11,7 @@ export const APISection = {
|
|
|
11
11
|
widget: "SelectInputField",
|
|
12
12
|
},
|
|
13
13
|
config: {
|
|
14
|
-
layout: { xs: 11, sm:
|
|
14
|
+
layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
|
|
15
15
|
main: {
|
|
16
16
|
label: "Method",
|
|
17
17
|
type: "text",
|
|
@@ -26,7 +26,7 @@ export const APISection = {
|
|
|
26
26
|
widget: "InputField",
|
|
27
27
|
},
|
|
28
28
|
config: {
|
|
29
|
-
layout: { xs: 11, sm:
|
|
29
|
+
layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
|
|
30
30
|
main: {
|
|
31
31
|
label: "Path",
|
|
32
32
|
type: "text",
|
|
@@ -35,28 +35,6 @@ export const APISection = {
|
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
|
-
{
|
|
39
|
-
type: "Control",
|
|
40
|
-
scope: "#/properties/emptyBox",
|
|
41
|
-
|
|
42
|
-
options: {
|
|
43
|
-
widget: "EmptyBox",
|
|
44
|
-
},
|
|
45
|
-
config: {
|
|
46
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
type: "Control",
|
|
51
|
-
scope: "#/properties/emptyBox",
|
|
52
|
-
|
|
53
|
-
options: {
|
|
54
|
-
widget: "EmptyBox",
|
|
55
|
-
},
|
|
56
|
-
config: {
|
|
57
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
38
|
{
|
|
61
39
|
type: "Control",
|
|
62
40
|
scope: "#/properties/headers",
|
|
@@ -73,7 +51,12 @@ export const APISection = {
|
|
|
73
51
|
widget: "InputField",
|
|
74
52
|
},
|
|
75
53
|
config: {
|
|
76
|
-
layout: {
|
|
54
|
+
layout: {
|
|
55
|
+
xs: 11,
|
|
56
|
+
sm: 11,
|
|
57
|
+
md: 5.5,
|
|
58
|
+
lg: 5.5,
|
|
59
|
+
},
|
|
77
60
|
main: {
|
|
78
61
|
label: "Key",
|
|
79
62
|
},
|
|
@@ -87,23 +70,17 @@ export const APISection = {
|
|
|
87
70
|
widget: "InputField",
|
|
88
71
|
},
|
|
89
72
|
config: {
|
|
90
|
-
layout: {
|
|
73
|
+
layout: {
|
|
74
|
+
xs: 11,
|
|
75
|
+
sm: 11,
|
|
76
|
+
md: 5.5,
|
|
77
|
+
lg: 5.5,
|
|
78
|
+
},
|
|
91
79
|
main: {
|
|
92
80
|
label: "Value",
|
|
93
81
|
},
|
|
94
82
|
},
|
|
95
83
|
},
|
|
96
|
-
{
|
|
97
|
-
type: "Control",
|
|
98
|
-
scope: "#/properties/emptyBox",
|
|
99
|
-
|
|
100
|
-
options: {
|
|
101
|
-
widget: "EmptyBox",
|
|
102
|
-
},
|
|
103
|
-
config: {
|
|
104
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
84
|
],
|
|
108
85
|
},
|
|
109
86
|
},
|
|
@@ -124,7 +101,12 @@ export const APISection = {
|
|
|
124
101
|
widget: "InputField",
|
|
125
102
|
},
|
|
126
103
|
config: {
|
|
127
|
-
layout: {
|
|
104
|
+
layout: {
|
|
105
|
+
xs: 11,
|
|
106
|
+
sm: 11,
|
|
107
|
+
md: 5.5,
|
|
108
|
+
lg: 5.5,
|
|
109
|
+
},
|
|
128
110
|
main: {
|
|
129
111
|
label: "Key",
|
|
130
112
|
},
|
|
@@ -138,23 +120,18 @@ export const APISection = {
|
|
|
138
120
|
widget: "InputField",
|
|
139
121
|
},
|
|
140
122
|
config: {
|
|
141
|
-
layout: {
|
|
123
|
+
layout: {
|
|
124
|
+
xs: 11,
|
|
125
|
+
sm: 11,
|
|
126
|
+
md: 5.5,
|
|
127
|
+
lg: 5.5,
|
|
128
|
+
},
|
|
142
129
|
main: {
|
|
143
130
|
label: "Value",
|
|
144
131
|
},
|
|
145
132
|
},
|
|
146
133
|
},
|
|
147
|
-
|
|
148
|
-
type: "Control",
|
|
149
|
-
scope: "#/properties/emptyBox",
|
|
150
|
-
|
|
151
|
-
options: {
|
|
152
|
-
widget: "EmptyBox",
|
|
153
|
-
},
|
|
154
|
-
config: {
|
|
155
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
156
|
-
},
|
|
157
|
-
},
|
|
134
|
+
|
|
158
135
|
],
|
|
159
136
|
},
|
|
160
137
|
},
|