impaktapps-ui-builder 0.0.412-mtreemap.34 → 0.0.412-mtreemap.36
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 +50 -10
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +20 -74
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +21 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/event.ts +8 -8
package/package.json
CHANGED
|
@@ -3,81 +3,27 @@ export const componentBasicUiSchema: any = (theme)=>{
|
|
|
3
3
|
type: "HorizontalLayout",
|
|
4
4
|
heading: "Component",
|
|
5
5
|
elements: [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// main: {
|
|
10
|
-
// rowSpacing: 1,
|
|
11
|
-
// header:true
|
|
12
|
-
// },
|
|
13
|
-
// defaultStyle:true
|
|
14
|
-
// },
|
|
15
|
-
// elements: [
|
|
6
|
+
{
|
|
7
|
+
type: "Control",
|
|
8
|
+
scope: "#/properties/pageName",
|
|
16
9
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// {
|
|
36
|
-
// type: "Control",
|
|
37
|
-
// scope: "#/properties/pageName",
|
|
38
|
-
|
|
39
|
-
// options: {
|
|
40
|
-
// widget: "Box",
|
|
41
|
-
// },
|
|
42
|
-
// config: {
|
|
43
|
-
// layout: {xs:7,sm:7,md:9},
|
|
44
|
-
// main: {
|
|
45
|
-
// heading: " ",
|
|
46
|
-
// },
|
|
47
|
-
// style: {
|
|
48
|
-
// float: "right",
|
|
49
|
-
// width:"auto",
|
|
50
|
-
// fontSize:"12px",
|
|
51
|
-
// color:"gray",
|
|
52
|
-
// paddingTop:"10px"
|
|
53
|
-
// },
|
|
54
|
-
// },
|
|
55
|
-
// },
|
|
56
|
-
|
|
57
|
-
// {
|
|
58
|
-
// type: "Control",
|
|
59
|
-
// scope: "#/properties/Back_Button",
|
|
60
|
-
|
|
61
|
-
// options: {
|
|
62
|
-
// widget: "IconButton",
|
|
63
|
-
// },
|
|
64
|
-
// config: {
|
|
65
|
-
// layout: {xs:2,sm:2,md:0.5},
|
|
66
|
-
// main: {
|
|
67
|
-
// icon: "BackIcon",
|
|
68
|
-
// styleDefault: true,
|
|
69
|
-
// size: "small",
|
|
70
|
-
// onClick: "backHandler",
|
|
71
|
-
// tooltipMessage: "Back",
|
|
72
|
-
// },
|
|
73
|
-
// style: {
|
|
74
|
-
// float: "right",
|
|
75
|
-
// },
|
|
76
|
-
// },
|
|
77
|
-
// },
|
|
78
|
-
|
|
79
|
-
// ],
|
|
80
|
-
// },
|
|
10
|
+
options: {
|
|
11
|
+
widget: "Box",
|
|
12
|
+
},
|
|
13
|
+
config: {
|
|
14
|
+
layout: 12,
|
|
15
|
+
main: {
|
|
16
|
+
heading: " ",
|
|
17
|
+
},
|
|
18
|
+
style: {
|
|
19
|
+
lineHeight: 0,
|
|
20
|
+
width:"auto",
|
|
21
|
+
fontSize:"12px",
|
|
22
|
+
color:"gray",
|
|
23
|
+
paddingTop:"10px"
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
81
27
|
{
|
|
82
28
|
type: "TabLayout",
|
|
83
29
|
config: {
|
|
@@ -5,6 +5,27 @@ export const EventUiSchema: any = (theme) => {
|
|
|
5
5
|
type: "HorizontalLayout",
|
|
6
6
|
heading: "Component",
|
|
7
7
|
elements: [
|
|
8
|
+
{
|
|
9
|
+
type: "Control",
|
|
10
|
+
scope: "#/properties/pageName",
|
|
11
|
+
|
|
12
|
+
options: {
|
|
13
|
+
widget: "Box",
|
|
14
|
+
},
|
|
15
|
+
config: {
|
|
16
|
+
layout: 12,
|
|
17
|
+
main: {
|
|
18
|
+
heading: " ",
|
|
19
|
+
},
|
|
20
|
+
style: {
|
|
21
|
+
lineHeight: 0,
|
|
22
|
+
width:"auto",
|
|
23
|
+
fontSize:"12px",
|
|
24
|
+
color:"gray",
|
|
25
|
+
paddingTop:"10px"
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
8
29
|
{
|
|
9
30
|
type: "TabLayout",
|
|
10
31
|
config: {
|
|
@@ -57,8 +57,8 @@ export const refreshPage = (type: string, store: any) => {
|
|
|
57
57
|
|
|
58
58
|
}
|
|
59
59
|
const elements = sectionLabels[type]?.map(e => sectionUiSchema[e]);
|
|
60
|
-
UiSchema.elements[
|
|
61
|
-
UiSchema.elements[
|
|
60
|
+
UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
|
|
61
|
+
UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
|
|
62
62
|
|
|
63
63
|
}
|
|
64
64
|
store.setUiSchema(UiSchema);
|
|
@@ -28,26 +28,26 @@ export default (
|
|
|
28
28
|
const schema: any = _.cloneDeep(EventSchema)
|
|
29
29
|
if (handlerType) {
|
|
30
30
|
if (handlerType === "custom") {
|
|
31
|
-
uiSchema.elements[
|
|
31
|
+
uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync","Run in Sync",["Yes","No"])
|
|
32
32
|
// uiSchema.elements[0].elements[0].elements[3] = emptyBox;
|
|
33
|
-
uiSchema.elements[
|
|
33
|
+
uiSchema.elements[1].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false)
|
|
34
34
|
schema.required = ["eventType", "Handler", "eventCode"]
|
|
35
35
|
|
|
36
36
|
} else if (handlerType === "api") {
|
|
37
|
-
uiSchema.elements[
|
|
38
|
-
uiSchema.elements[
|
|
37
|
+
uiSchema.elements[1].elements[0].elements[2] = emptyBox;
|
|
38
|
+
uiSchema.elements[1].elements[0].elements[3] = APISection;
|
|
39
39
|
schema.required = ["eventType", "Handler", "method", "path"]
|
|
40
40
|
} else if (handlerType === "inBuiltFunction") {
|
|
41
|
-
uiSchema.elements[
|
|
41
|
+
uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
|
|
42
42
|
{ label: "RankProvider", value: "RankProvider" },
|
|
43
43
|
{ label: "Download File", value: "downloadFile" },
|
|
44
44
|
{ label: "Download Blob File", value: "downloadBlobFile" }
|
|
45
45
|
])
|
|
46
|
-
uiSchema.elements[
|
|
46
|
+
uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
|
|
47
47
|
schema.required = ["eventType", "Handler", "inBuiltFunctionType"]
|
|
48
48
|
} else if (handlerType === "refresh") {
|
|
49
|
-
uiSchema.elements[
|
|
50
|
-
uiSchema.elements[
|
|
49
|
+
uiSchema.elements[1].elements[0].elements[2] = emptyBox;
|
|
50
|
+
uiSchema.elements[1].elements[0].elements[3] = refreshSectionUiSchema;
|
|
51
51
|
schema.properties.refreshElements.required = ["value"]
|
|
52
52
|
schema.properties.refreshElements.items.required = ["value"]
|
|
53
53
|
schema.required = ["eventType", "Handler", "refreshElements"]
|