impaktapps-ui-builder 0.0.412-mtreemap.3 → 0.0.412-mtreemap.30

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.
Files changed (48) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1189 -585
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +13 -13
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +1 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +1 -6
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +12 -10
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +5 -5
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +2 -2
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +6 -6
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +8 -5
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +25 -1
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
  15. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +3 -2
  16. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
  17. package/package.json +1 -1
  18. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +2 -2
  19. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +4 -4
  20. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  21. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +27 -26
  22. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +2 -0
  23. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  24. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -5
  25. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +2 -2
  26. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +48 -66
  27. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +2 -7
  28. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +10 -9
  29. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +21 -28
  30. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -8
  31. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +107 -103
  32. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
  33. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -118
  34. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +9 -5
  35. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +14 -0
  36. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +93 -137
  37. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +1 -1
  38. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
  39. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
  40. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +487 -283
  41. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  42. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +515 -204
  43. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +104 -98
  44. package/src/impaktapps-ui-builder/builder/services/component.ts +39 -21
  45. package/src/impaktapps-ui-builder/builder/services/event.ts +16 -6
  46. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -2
  47. package/src/impaktapps-ui-builder/runtime/services/events.ts +28 -34
  48. package/src/impaktapps-ui-builder/runtime/services/service.ts +112 -4
@@ -1,119 +1,123 @@
1
- export const EventSection = {
2
- type: "HorizontalLayout",
3
- elements: [
4
- {
5
- type: "Control",
6
- scope: "#/properties/events",
7
- options: {
8
- widget: "Table",
9
- },
10
- config: {
11
- main: {
12
- headerIcons: {
13
- elements: [
14
- {
15
- widget: {
16
- type: "Control",
17
- scope: "#/properties/New_Record",
18
-
19
- options: {
20
- widget: "IconButton",
21
- },
22
- config: {
23
- main: {
24
- color: "info",
25
- onClick: "eventAddHandler",
26
- size: "small",
27
- icon: "AddIcon",
28
- iconLabel: "Add New",
29
- styleDefault: true,
1
+ export const EventSection = (theme)=>{
2
+ const uiSchema = {
3
+ type: "HorizontalLayout",
4
+ elements: [
5
+ {
6
+ type: "Control",
7
+ scope: "#/properties/events",
8
+ options: {
9
+ widget: "Table",
10
+ },
11
+ config: {
12
+ main: {
13
+ headerIcons: {
14
+ elements: [
15
+ {
16
+ widget: {
17
+ type: "Control",
18
+ scope: "#/properties/New_Record",
19
+
20
+ options: {
21
+ widget: "IconButton",
30
22
  },
31
- style: {
32
- mt: "6px",
23
+ config: {
24
+ main: {
25
+ color: "info",
26
+ onClick: "eventAddHandler",
27
+ size: "small",
28
+ icon: "AddIcon",
29
+ iconLabel: "Add New",
30
+ styleDefault: true,
31
+ },
32
+ style: {
33
+ mt: "6px",
34
+ },
33
35
  },
34
- },
35
- }
36
- },
37
- ]
36
+ }
37
+ },
38
+ ]
39
+ },
40
+ disableAction: true,
41
+ disableSelection: true,
42
+ enableDrag: true,
43
+
38
44
  },
39
- disableAction: true,
40
- disableSelection: true,
41
- enableDrag: true,
42
-
43
45
  },
44
- },
45
- elements: [
46
-
47
- {
48
- accessorKey: "eventType",
49
- header: "Event Type",
50
- },
51
- {
52
- accessorKey: "Handler",
53
- header: "Handler",
54
- },
55
- {
56
- accessorKey: "Edit_Approve_Records",
57
- header: "Edit Widget",
46
+ elements: [
47
+
48
+ {
49
+ accessorKey: "eventType",
50
+ header: "Event Type",
51
+ },
52
+ {
53
+ accessorKey: "Handler",
54
+ header: "Handler",
55
+ },
56
+ {
57
+ accessorKey: "Edit_Approve_Records",
58
+ header: "Edit Widget",
58
59
 
59
- widget: {
60
- type: "Control",
61
- scope: "#/properties/Edit_Records",
62
- options: {
63
- widget: "IconButton",
64
- },
65
- config: {
66
- main: {
67
- color: "info",
68
- size: "small",
69
- icon: "EditIcon",
70
- tooltipMessage: "Edit This Record",
71
- onClick: "eventEditHandler",
60
+ widget: {
61
+ type: "Control",
62
+ scope: "#/properties/Edit_Records",
63
+ options: {
64
+ widget: "IconButton",
72
65
  },
73
- style: {
74
- color: "#3949ab",
66
+ config: {
67
+ main: {
68
+ color: "info",
69
+ size: "small",
70
+ icon: "EditIcon",
71
+ tooltipMessage: "Edit This Record",
72
+ onClick: "eventEditHandler",
73
+ },
74
+ style: {
75
+ color: theme.palette.primary.main,
76
+ },
75
77
  },
76
78
  },
77
79
  },
78
- },
79
- {
80
- accessorKey: "Reject_Records",
81
- header: "Delete",
80
+ {
81
+ accessorKey: "Reject_Records",
82
+ header: "Delete",
82
83
 
83
- widget: {
84
- type: "Control",
85
- scope: "#/properties/RejectButton",
86
- accessorKeyName: "Reject_Records",
87
- options: {
88
- widget: "IconButton",
89
- },
90
- config: {
91
- main: {
92
- icon: "RejectIcon",
93
- color: "error",
94
- tooltipMessage: "Reject This Record",
95
- onClick: "deleteEvent",
84
+ widget: {
85
+ type: "Control",
86
+ scope: "#/properties/RejectButton",
87
+ accessorKeyName: "Reject_Records",
88
+ options: {
89
+ widget: "IconButton",
90
+ },
91
+ config: {
92
+ main: {
93
+ icon: "RejectIcon",
94
+ color: "error",
95
+ tooltipMessage: "Reject This Record",
96
+ onClick: "deletePopUpEvent",
97
+ },
96
98
  },
97
99
  },
98
100
  },
99
- },
100
- ]
101
- }]
102
- }
103
-
104
- export const EventSectionSchema = {
105
- events: {
106
- type: "array",
107
- items: {
108
- type: "object",
109
- properties: {
110
- eventType: {
111
- type: "string",
112
- },
113
- configType: {
114
- type: "string",
101
+ ]
102
+ }]}
103
+ return uiSchema
104
+ }
105
+ // ]}
106
+
107
+ export const EventSectionSchema = {
108
+ events: {
109
+ type: "array",
110
+ items: {
111
+ type: "object",
112
+ properties: {
113
+ eventType: {
114
+ type: "string",
115
+ },
116
+ configType: {
117
+ type: "string",
118
+ },
115
119
  },
116
120
  },
117
121
  },
118
- },
119
- };
122
+ };
123
+
@@ -13,12 +13,7 @@ export const uploadFile = {
13
13
  "style": {
14
14
  "backgroundColor": "none"
15
15
  },
16
- "layout": {
17
- "lg": 5.5,
18
- "md": 5.5,
19
- "sm": 11,
20
- "xs": 11
21
- }
16
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
22
17
  },
23
18
  "options": {
24
19
  "widget": "UploadFile"
@@ -35,12 +30,7 @@ export const downloadFile = {
35
30
  "style": {
36
31
  "backgroundColor": "none"
37
32
  },
38
- "layout": {
39
- "lg": 5.5,
40
- "md": 5.5,
41
- "sm": 11,
42
- "xs": 11
43
- }
33
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
44
34
  },
45
35
  "options": {
46
36
  "widget": "DownloadFile"
@@ -7,72 +7,7 @@ export const BarGraph = {
7
7
 
8
8
  config: {
9
9
  main: {
10
- // header: "Bar Graph",
11
- // bottomLabel: "Name of Employe",
12
- // numTicks: 6,
13
- // leftLabel: "Value in lakhs",
14
- // axisLeft: true,
15
- // axisBottom: true,
16
-
17
- // hideTicks: false,
18
- // hideLeftAxisLine: false,
19
- // hideBottomAxisLine: false,
20
- // bottomAxisWidth: "10px",
21
- // legend: {
22
- // labelColor: "green",
23
- // legendTitle: "",
24
- // direction: "row",
25
- // align: "none",
26
-
27
- // },
28
10
  },
29
- // style: {
30
- // containerStyle: {
31
- // // width:"100%",
32
- // // height:"450",
33
-
34
- // },
35
- // headerStyle: {
36
- // // color:"white"
37
- // },
38
- // tooltipStyle: {
39
-
40
-
41
- // },
42
- // // labelStyle: { margin:{left:80,bottom:20},
43
- // // leftLabelOffset: 50,
44
- // // bottomLabelOffset:10
45
- // // },
46
- // barStyle: {
47
- // // color:{
48
- // // firstBarColor:"#6c5efb",
49
- // // secondBarColor:"#3f51b5"
50
- // // "#6c5efb"#3f51b5
51
- // // secondColor:"#3e50b3"
52
- // // }
53
- // },
54
- // legendStyle: {
55
- // legend: {
56
- // // lineHeight: "0.9em",
57
- // // fontSize: "8px",
58
- // // fontFamily: "arial",
59
- // // padding: "10px 10px",
60
- // // width:"30%",
61
- // // display:"flex",
62
- // // justifyContent:"center",
63
- // // border: "1px solid rgba(255, 255, 255, 0.3)",
64
- // // borderRadius: " 8px",
65
- // // marginRight: "auto",
66
-
67
- // },
68
- // legendTitle: {
69
- // // fontSize: "10px",
70
- // // marginBottom: "10px",
71
- // // fontWeight: "100",
72
-
73
- // },
74
- // },
75
- // },
76
11
  },
77
12
  };
78
13
 
@@ -84,39 +19,8 @@ export const PieGraph = {
84
19
  },
85
20
  config: {
86
21
  main: {
87
- // header: "Incentive Branch category wise",
88
22
  type: "PieGraph",
89
- // bottomLabel: "Name of Employe",
90
- // leftLabel: "Value",
91
- // tooltipDataKey: ["HDFC", "SBI", "Kotak","Sbi"],
92
- // axisLeft: true,
93
- // axisBottom: true,
94
- // legendAvailable: true,
95
- // legend: {
96
- // labelColor: "green",
97
- // legendTitle: "Branches",
98
- // direction: "row",
99
- // align: "right",
100
- // },
101
23
  },
102
-
103
- // style: {
104
- // containerStyle: {
105
- // height:"340"
106
- // },
107
- // headerStyle: {},
108
- // tooltipStyle: {
109
- // // width: "100%",
110
- // backgroundColor:"black",
111
- // width:"80px"
112
- // },
113
- // labelStyle: {},
114
- // legendStyle: {
115
- // legend: {},
116
- // legendTitle: {},
117
- // },
118
- // pieStyle: {},
119
- // },
120
24
  },
121
25
  };
122
26
  export const LineGraph = {
@@ -134,7 +38,7 @@ export const LineGraph = {
134
38
  leftLabel: "Incentive",
135
39
  gridHidden: true,
136
40
  numHidden: false,
137
- tooltipDataKey: ["First", "Second", "Third"],
41
+ tooltipDataKey: ["MAMA New Project", "Second", "Third"],
138
42
  axisLeft: true,
139
43
  axisBottom: true,
140
44
  hideLeftAxisLine: false,
@@ -164,28 +68,7 @@ export const HorizontalBarGraph = {
164
68
  },
165
69
  config: {
166
70
  main: {
167
- // header: " ",
168
71
  type: "HorizontalBarGraph",
169
- // bottomLabel: " ",
170
- // leftLabel: "Value",
171
- // axisLeft: false,
172
- // axisBottom: true,
173
- // hideBottomTicks: false,
174
- // hideLeftTicks: false,
175
- // hideLeftAxisLine: true,
176
- // hideBottomAxisLine: false,
177
- // bottomAxisWidth: "10px",
178
72
  },
179
- // style: {
180
- // containerStyle: {
181
- // width:"100%"
182
- // },
183
- // headerStyle: {},
184
- // tooltipStyle: {},
185
- // labelStyle: {},
186
- // barStyle: {
187
- // color: "#6c5efb",
188
- // },
189
- // },
190
73
  },
191
74
  };
@@ -7,9 +7,13 @@ export default {
7
7
  label: "LeaderBoard",
8
8
  divider: true,
9
9
  },
10
- style:{wrapperStyle:{
11
- height: {xs:850,sm:1000}
12
- }},
10
+ style: {
11
+ wrapperStyle: {
12
+ display: "flex",
13
+ gap: "10px",
14
+
15
+ }
16
+ },
13
17
  wrapperStyle: {
14
18
  position: "relative",
15
19
  width: "100%",
@@ -339,12 +343,12 @@ export default {
339
343
  fontWeight: 900,
340
344
  background: "rgb(179, 198, 255)"
341
345
  },
342
- position: "absolute",
343
346
  top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
344
347
  // top:"390px",
345
348
  border: "2px solid rgb(179, 198, 255)",
346
349
  width: "95%",
347
- left: "2.5%"
350
+ left: "2.5%",
351
+ margin: "auto"
348
352
 
349
353
  },
350
354
 
@@ -29,6 +29,20 @@ export const refreshSectionUiSchema = {
29
29
  type: "Control",
30
30
  scope: "#/properties/emptyBox",
31
31
 
32
+ options: {
33
+ widget: "EmptyBox",
34
+ },
35
+ config: {
36
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
37
+ main: {
38
+
39
+ },
40
+ },
41
+ },
42
+ {
43
+ type: "Control",
44
+ scope: "#/properties/emptyBox",
45
+
32
46
  options: {
33
47
  widget: "EmptyBox",
34
48
  },