impaktapps-ui-builder 0.0.97-alpha.5 → 0.0.97-alpha.6

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.
@@ -14,7 +14,6 @@ export declare const BarGraph: {
14
14
  main: {};
15
15
  style: {
16
16
  containerStyle: {};
17
- labelStyle: {};
18
17
  };
19
18
  };
20
19
  };
@@ -93,8 +92,6 @@ export declare const HorizontalBarGraph: {
93
92
  main: {
94
93
  type: string;
95
94
  };
96
- style: {
97
- labelStyle: {};
98
- };
95
+ style: {};
99
96
  };
100
97
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.97-alpha.5",
3
+ "version": "0.0.97-alpha.6",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -57,4 +57,4 @@ const buildHorizontalBarGraph = (config:any,componentScope:string) => {
57
57
  return horizontalBarGraph
58
58
  }
59
59
 
60
- export default buildHorizontalBarGraph;
60
+ export default buildHorizontalBarGraph
@@ -46,15 +46,6 @@ export const buildLineGraph = (config, componentScope) => {
46
46
  if (config.pieArcColors) {
47
47
  lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
48
48
  }
49
- if (config.leftLabelMargin) {
50
- lineGraph.config.style.labelStyle.margin = {
51
- left: config.leftLabelMargin,
52
- };
53
- }
54
- if (config.leftLabelOffset) {
55
- lineGraph.config.style.labelStyle.leftLabelOffset =
56
- config.leftLabelOffset;
57
- }
58
49
  lineGraph.scope = componentScope;
59
50
  return lineGraph;
60
51
  }
@@ -41,15 +41,6 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
41
41
  if (config.leftLabel) {
42
42
  barGraph.config.main.leftLabel = config.leftLabel;
43
43
  }
44
- if (config.leftLabelMargin) {
45
- barGraph.config.style.labelStyle.margin = {
46
- left: config.leftLabelMargin,
47
- };
48
- }
49
- if (config.leftLabelOffset) {
50
- barGraph.config.style.labelStyle.leftLabelOffset =
51
- config.leftLabelOffset;
52
- }
53
44
  barGraph.scope = componentScope;
54
45
  return barGraph;
55
46
  }
@@ -2,20 +2,23 @@ import { uploadFile } from "./uischema/file";
2
2
  import _ from "lodash";
3
3
  import { createLayoutFormat } from "./buildConfig";
4
4
 
5
- export const buildUploadFile = (config, componentScope) => {
6
- const UploadFile: any = _.cloneDeep(uploadFile);
7
-
8
- UploadFile.scope = componentScope;
9
- UploadFile.config.main.label = config.label;
10
- if (config.layout) {
11
- UploadFile.config.layout = createLayoutFormat(config.layout)
12
- }
13
- if (config.style) {
14
- UploadFile.config.style = config.style;
15
- }
16
- if (config.required) {
17
- UploadFile.config.main.required = true;
18
- }
19
- UploadFile.config.main.errorMessage = config.errorMessage;
20
- return UploadFile;
5
+ export const buildUploadFile = (config,componentScope)=>{
6
+ const UploadFile: any = _.cloneDeep(uploadFile);
7
+
8
+ UploadFile.scope = componentScope;
9
+ UploadFile.config.main.label = config.label;
10
+ if (config.layout) {
11
+ UploadFile.config.layout = config.layout;
12
+ }
13
+ if(config.layout){
14
+ uploadFile.config.layout = createLayoutFormat(config.layout)
15
+ }
16
+ if (config.style) {
17
+ UploadFile.config.style = config.style;
18
+ }
19
+ if (config.required) {
20
+ UploadFile.config.main.required = true;
21
+ }
22
+ UploadFile.config.main.errorMessage = config.errorMessage;
23
+ return UploadFile;
21
24
  }
@@ -407,8 +407,6 @@ export const buildPropertiesSection = function (type: String) {
407
407
  ]),
408
408
  getInputField("leftLabel", "Left Label"),
409
409
  getInputField("bottomLabel", "Bottom Label"),
410
- getInputField("leftLabelMargin", "Left Label Margin"),
411
- getInputField("leftLabelOffset", "Left Label Offset"),
412
410
  emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 0, lg: 0 }),
413
411
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
414
412
  getInputField("yAxisValue", "Y-AxisValue"),
@@ -9,7 +9,7 @@ export const BarGraph = {
9
9
  layout: {xs :12,sm:12,md:12,lg:6},
10
10
  main: {
11
11
  },
12
- style: { containerStyle: {},labelStyle:{} }
12
+ style: { containerStyle: {} }
13
13
  },
14
14
  };
15
15
 
@@ -75,7 +75,7 @@ export const HorizontalBarGraph = {
75
75
  type: "HorizontalBarGraph",
76
76
  },
77
77
  style:{
78
- labelStyle:{}
78
+
79
79
  }
80
80
  },
81
81
  };
@@ -146,7 +146,7 @@ function executeCustomHandler(params: handlersProps) {
146
146
  }
147
147
 
148
148
  function mergeFormdata(handlerResponse: any, componentName: string, eventConfig: any, store: any, service: any, formDataHolder: any) {
149
- if (eventConfig.type === "Select" && handlerResponse?.data && !_.isEmpty(handlerResponse?.data)) {
149
+ if (eventConfig.type === "Select" && handlerResponse?.data) {
150
150
  store.setSchema((pre) => {
151
151
  return {
152
152
  ...pre, properties: {
@@ -158,7 +158,7 @@ function mergeFormdata(handlerResponse: any, componentName: string, eventConfig:
158
158
  }
159
159
  })
160
160
  }
161
- else if (eventConfig.type === "MultipleSelect" && handlerResponse?.data && !_.isEmpty(handlerResponse?.data)) {
161
+ else if (eventConfig.type === "MultipleSelect" && handlerResponse?.data) {
162
162
  store.setSchema((pre) => {
163
163
  return {
164
164
  ...pre, properties: {
@@ -101,20 +101,22 @@ export default (funcParams: funcParamsProps) => {
101
101
  type: "HorizontalLayout",
102
102
  config: {
103
103
  main: {
104
- direction: "row",
104
+ direction: 'row'
105
105
  },
106
106
  style: {
107
107
  flexDirection: "row",
108
108
  position: "absolute",
109
109
  bottom: 0,
110
- height: "fit-content",
111
- overflow: "hidden",
110
+ marginBottom: '-8px',
111
+ height: 'fit-content',
112
+ overflow: 'hidden',
112
113
  zIndex: 1000,
113
- width: "inherit",
114
- },
114
+ width: 'inherit'
115
+ }
115
116
  },
116
117
  elements: [
117
118
  {
119
+
118
120
  type: "Control",
119
121
  scope: "#/properties/FooterText",
120
122
  options: {
@@ -122,85 +124,84 @@ export default (funcParams: funcParamsProps) => {
122
124
  },
123
125
  config: {
124
126
  main: {
125
- heading: "Copywriter@ACT21.IO",
127
+ heading: "Copywriter@ACT21.IO"
126
128
  },
127
129
  style: {
128
- color: theme?.palette?.text?.disabled || "#AFAFAF",
129
- fontSize: "12px",
130
- textAlign: "center",
130
+ color: theme?.palette?.text.disabled || "#AFAFAF",
131
+ fontSize: '12px',
132
+ textAlign: 'center',
131
133
  lineHeight: 2,
132
- width: "fit-content",
133
- left: "50%",
134
- position: "relative",
134
+ width: 'fit-content',
135
+ left: '50%',
136
+ position: 'relative',
135
137
  margin: 0,
136
138
  flexGrow: 1,
137
139
  height: 0,
138
- transform: "translate(-50%, 0%)",
139
- },
140
+ transform: "translate(-50%,0%)"
141
+ }
140
142
  },
141
143
  },
142
144
  {
143
145
  type: "Control",
144
- scope: "#/properties/FooterBackIcon",
146
+ scope: "#/properties/backIcon",
145
147
  options: {
146
148
  widget: "Box",
147
149
  },
148
150
  config: {
149
151
  main: {
150
- iconName: "PrevIcon",
152
+ iconName: 'PrevIcon',
151
153
  onClick: "backHandler",
152
- width: "fit-content",
154
+ width: 'fit-content',
153
155
  },
154
156
  style: {
155
- fill: theme?.palette?.primary?.main,
157
+ fill: theme.palette.primary.main,
156
158
  width: 20,
157
159
  height: 0,
158
- // margin: 0,
160
+ margin: 0,
159
161
  top: 0,
160
- right: { xs: "12px", sm: "84px" },
161
- position: "absolute",
162
- fontSize: "12px",
163
- cursor: "pointer",
164
- ":hover": {
165
- fill: theme?.palette?.primary?.dark,
166
- },
167
- marginRight: "13px",
168
- },
169
- },
162
+ right: {xs: '12px', sm: '84px'},
163
+ position: 'absolute',
164
+ fontSize: '12px',
165
+ cursor: 'pointer',
166
+ ':hover': {
167
+ fill: theme.palette.primary.dark,
168
+ }
169
+ }
170
+ }
170
171
  },
171
172
  {
172
173
  type: "Control",
173
- scope: "#/properties/FooterBackHandlerText",
174
+ scope: "#/properties/text",
175
+
174
176
  options: {
175
177
  widget: "Box",
176
178
  },
177
179
  config: {
178
180
  main: {
179
181
  heading: "Previous Page",
180
- onClick: "backHandler",
182
+ onClick: "backHandler"
181
183
  },
182
184
  style: {
183
- display: { xs: "none", sm: "flex" },
184
- textAlign: "left",
185
+ display: {xs: 'none', sm: "flex"},
186
+ textAlign: 'left',
185
187
  lineHeight: 1,
186
188
  height: 0,
187
- width: "fit-content",
188
- color: theme?.palette?.primary?.main,
189
- fontSize: "14px",
190
- cursor: "pointer",
191
- marginLeft: "2px",
192
-
189
+ width: 'fit-content',
190
+ color: theme.palette.primary.main,
191
+ fontSize: "12px",
192
+ cursor: 'pointer',
193
+ marginLeft: '2px',
194
+ marginRight: 0,
193
195
  top: 3,
194
- right: "12px",
195
- position: "absolute",
196
- ":hover": {
197
- color: theme?.palette?.primary?.dark,
198
- },
199
- marginRight: "4px",
200
- },
196
+ right: '12px',
197
+ position: 'absolute',
198
+ ':hover': {
199
+ color: theme.palette.primary.dark,
200
+ }
201
+ }
201
202
  },
202
203
  },
203
- ],
204
+ ]
204
205
  }
205
206
  );
206
207
  const schema = pageData?.schema ?? { type: "object", properties: {} };