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