impaktapps-ui-builder 0.0.412-mtreemap.12 → 0.0.412-mtreemap.14
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 +7 -6
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +0 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +5 -5
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +0 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +112 -3
package/package.json
CHANGED
|
@@ -29,15 +29,15 @@ export default (FormData: any) => {
|
|
|
29
29
|
export const createLayoutFormat = (config: any[]) => {
|
|
30
30
|
if (_.isEmpty(config)) {
|
|
31
31
|
return {
|
|
32
|
-
xs:
|
|
33
|
-
sm:
|
|
34
|
-
md:
|
|
35
|
-
lg:
|
|
32
|
+
xs: 12,
|
|
33
|
+
sm: 12,
|
|
34
|
+
md: 12,
|
|
35
|
+
lg: 12,
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
let data: any = {};
|
|
39
39
|
config.map((e: any) => {
|
|
40
|
-
data[e.key || "xs"] = +e.value ||
|
|
40
|
+
data[e.key || "xs"] = +e.value || 12
|
|
41
41
|
})
|
|
42
42
|
return data;
|
|
43
43
|
};
|
|
@@ -89,6 +89,115 @@ export default (funcParams: funcParamsProps) => {
|
|
|
89
89
|
}
|
|
90
90
|
const config = pageData?.config;
|
|
91
91
|
const uiSchema = pageData?.uiSchema;
|
|
92
|
+
window.localStorage.setItem("pageName", config.label);
|
|
93
|
+
window.dispatchEvent(new Event('pageNameChanged'))
|
|
94
|
+
// uiSchema.elements.push(
|
|
95
|
+
|
|
96
|
+
// {
|
|
97
|
+
// type: "HorizontalLayout",
|
|
98
|
+
// config: {
|
|
99
|
+
// main: {
|
|
100
|
+
// direction: 'row'
|
|
101
|
+
// },
|
|
102
|
+
// style: {
|
|
103
|
+
// flexDirection: "row",
|
|
104
|
+
// position: "absolute",
|
|
105
|
+
// bottom: 0,
|
|
106
|
+
// marginBottom: '-8px',
|
|
107
|
+
// height: 'fit-content',
|
|
108
|
+
// overflow: 'hidden',
|
|
109
|
+
// zIndex: 1000,
|
|
110
|
+
// width: 'inherit'
|
|
111
|
+
// }
|
|
112
|
+
// },
|
|
113
|
+
// elements: [
|
|
114
|
+
// {
|
|
115
|
+
|
|
116
|
+
// type: "Control",
|
|
117
|
+
// scope: "#/properties/FooterText",
|
|
118
|
+
// options: {
|
|
119
|
+
// widget: "Box",
|
|
120
|
+
// },
|
|
121
|
+
// config: {
|
|
122
|
+
// main: {
|
|
123
|
+
// heading: "Copywriter@ACT21.IO"
|
|
124
|
+
// },
|
|
125
|
+
// style: {
|
|
126
|
+
// color: theme?.palette?.text.disabled || "#AFAFAF",
|
|
127
|
+
// fontSize: '12px',
|
|
128
|
+
// textAlign: 'center',
|
|
129
|
+
// lineHeight: 1,
|
|
130
|
+
// width: 'fit-content',
|
|
131
|
+
// left: '50%',
|
|
132
|
+
// position: 'relative',
|
|
133
|
+
// margin: 0,
|
|
134
|
+
// flexGrow: 1,
|
|
135
|
+
// height: 0
|
|
136
|
+
// }
|
|
137
|
+
// },
|
|
138
|
+
// },
|
|
139
|
+
// {
|
|
140
|
+
// type: "Control",
|
|
141
|
+
// scope: "#/properties/backIcon",
|
|
142
|
+
// options: {
|
|
143
|
+
// widget: "Box",
|
|
144
|
+
// },
|
|
145
|
+
// config: {
|
|
146
|
+
// main: {
|
|
147
|
+
// iconName: 'PrevIcon',
|
|
148
|
+
// onClick: "backHandler",
|
|
149
|
+
// width: 'fit-content',
|
|
150
|
+
// },
|
|
151
|
+
// style: {
|
|
152
|
+
// fill: theme.palette.primary.main,
|
|
153
|
+
// width: 20,
|
|
154
|
+
// height: 0,
|
|
155
|
+
// margin: 0,
|
|
156
|
+
// top: 0,
|
|
157
|
+
// right: '82px',
|
|
158
|
+
// position: 'absolute',
|
|
159
|
+
// fontSize: '12px',
|
|
160
|
+
// cursor: 'pointer',
|
|
161
|
+
// ':hover': {
|
|
162
|
+
// fill: theme.palette.primary.dark,
|
|
163
|
+
// }
|
|
164
|
+
// }
|
|
165
|
+
// }
|
|
166
|
+
// },
|
|
167
|
+
// {
|
|
168
|
+
// type: "Control",
|
|
169
|
+
// scope: "#/properties/text",
|
|
170
|
+
|
|
171
|
+
// options: {
|
|
172
|
+
// widget: "Box",
|
|
173
|
+
// },
|
|
174
|
+
// config: {
|
|
175
|
+
// main: {
|
|
176
|
+
// heading: "Previous Page",
|
|
177
|
+
// onClick: "backHandler"
|
|
178
|
+
// },
|
|
179
|
+
// style: {
|
|
180
|
+
// textAlign: 'left',
|
|
181
|
+
// lineHeight: 1,
|
|
182
|
+
// height: 0,
|
|
183
|
+
// width: 'fit-content',
|
|
184
|
+
// color: theme.palette.primary.main,
|
|
185
|
+
// fontSize: "12px",
|
|
186
|
+
// cursor: 'pointer',
|
|
187
|
+
// marginLeft: '2px',
|
|
188
|
+
// marginRight: 0,
|
|
189
|
+
// top: 3,
|
|
190
|
+
// right: '12px',
|
|
191
|
+
// position: 'absolute',
|
|
192
|
+
// ':hover': {
|
|
193
|
+
// color: theme.palette.primary.dark,
|
|
194
|
+
// }
|
|
195
|
+
// }
|
|
196
|
+
// },
|
|
197
|
+
// },
|
|
198
|
+
// ]
|
|
199
|
+
// }
|
|
200
|
+
// );
|
|
92
201
|
const schema = pageData?.schema ?? { type: "object", properties: {} };
|
|
93
202
|
eventGroups = {}
|
|
94
203
|
eventGroups = extractEvents(config);
|
|
@@ -101,10 +210,10 @@ export default (funcParams: funcParamsProps) => {
|
|
|
101
210
|
await executeRefreshHandler({
|
|
102
211
|
config: {}, componentName: "",
|
|
103
212
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
104
|
-
serviceHolder: this, eventGroups,formDataHolder
|
|
213
|
+
serviceHolder: this, eventGroups, formDataHolder
|
|
105
214
|
})
|
|
106
|
-
|
|
107
|
-
|
|
215
|
+
const jsonres = await fetch('https://jsonplaceholder.typicode.com/todos/1');
|
|
216
|
+
const result = await jsonres.json()
|
|
108
217
|
funcParams.store.setSchema(
|
|
109
218
|
(pre: any) => {
|
|
110
219
|
return {
|