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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.412-mtreemap.34",
3
+ "version": "0.0.412-mtreemap.36",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -3,81 +3,27 @@ export const componentBasicUiSchema: any = (theme)=>{
3
3
  type: "HorizontalLayout",
4
4
  heading: "Component",
5
5
  elements: [
6
- // {
7
- // type: "WrapperLayout",
8
- // config: {
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
- // type: "Control",
19
- // scope: "#/properties/Component",
20
-
21
- // options: {
22
- // widget: "Box",
23
- // },
24
- // config: {
25
- // layout: {xs:12,sm:12,md:2},
26
- // main: {
27
- // heading: "Component",
28
- // },
29
- // style:{
30
- // "float":"left",
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[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
61
- UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
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[0].elements[0].elements[2] = getRadioInputField("isSync","Run in Sync",["Yes","No"])
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[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false)
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[0].elements[0].elements[2] = emptyBox;
38
- uiSchema.elements[0].elements[0].elements[3] = APISection;
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[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
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[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
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[0].elements[0].elements[2] = emptyBox;
50
- uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
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"]