impaktapps-ui-builder 0.0.412-mtreemap.4 → 0.0.412-mtreemap.41

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 (44) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1938 -1225
  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/coreSection.d.ts +23 -5
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +71 -122
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +6 -6
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +8 -5
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +25 -1
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +17 -2
  13. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
  14. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -1
  15. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
  16. package/package.json +1 -1
  17. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +1 -1
  18. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +4 -4
  19. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  20. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  21. package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +0 -1
  22. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -5
  23. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
  24. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +48 -66
  25. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +2 -7
  26. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +43 -21
  27. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +34 -56
  28. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
  29. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -117
  30. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +9 -5
  31. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +14 -0
  32. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +93 -137
  33. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +13 -13
  34. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
  35. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +355 -165
  36. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  37. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +533 -315
  38. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +397 -264
  39. package/src/impaktapps-ui-builder/builder/services/component.ts +25 -7
  40. package/src/impaktapps-ui-builder/builder/services/event.ts +17 -7
  41. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +19 -3
  42. package/src/impaktapps-ui-builder/builder/services/utils.ts +0 -1
  43. package/src/impaktapps-ui-builder/runtime/services/events.ts +28 -34
  44. package/src/impaktapps-ui-builder/runtime/services/service.ts +111 -3
@@ -44,14 +44,14 @@ const sectionLabels = {
44
44
 
45
45
 
46
46
  export const refreshPage = (type: string, store: any) => {
47
- const UiSchema = _.cloneDeep(componentBasicUiSchema)
47
+ const UiSchema = _.cloneDeep(componentBasicUiSchema(store.theme.myTheme))
48
48
  if (type) {
49
49
  const sectionUiSchema = {
50
50
  Core: CoreSection,
51
51
  Value: ValueTab,
52
52
  Style: StyleSection,
53
- Event: EventSection,
54
- Components: TableSection,
53
+ Event: EventSection(store.theme.myTheme),
54
+ Components: TableSection(store.theme.myTheme),
55
55
  Properties: buildPropertiesSection(type),
56
56
  Validation: ValidationSection
57
57
 
@@ -107,20 +107,28 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
107
107
  store.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`)
108
108
  }
109
109
  },
110
- deleteComponents: function () {
110
+ deleteComponents: function (shouldUpdateDialog: boolean = true) {
111
111
  const path = store.searchParams?.get("path");
112
- const rowId = dynamicData.path.split(".")[1];
112
+ const rowId = localStorage.getItem('rowId');
113
113
  store.formData.elements.splice(rowId, 1);
114
114
  const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
115
115
  const data = path ? _.get(response, path) : response;
116
116
  store.setFormdata(data);
117
+ if(shouldUpdateDialog){
118
+ store.updateDialog("popUpComponentSection");
119
+ }
120
+ localStorage.removeItem('rowId');
117
121
  },
118
- deleteEvent: function () {
122
+ deleteEvent: function (shouldUpdateDialog: boolean = true) {
119
123
  const path = store.searchParams?.get("path");
120
- const rowId = dynamicData.path.split(".")[1];
124
+ const rowId = localStorage.getItem('rowId');
121
125
  store.formData.events.splice(rowId, 1);
122
126
  const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
123
127
  store.setFormdata(_.get(response, path));
128
+ if(shouldUpdateDialog){
129
+ store.updateDialog("popUpEventSection")
130
+ }
131
+ localStorage.removeItem('rowId');
124
132
  },
125
133
  widgetAddClickHandler: function () {
126
134
  if (!Array.isArray(store.formData.elements)) {
@@ -155,6 +163,16 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
155
163
  backHandler: function () {
156
164
  store.navigate(-1)
157
165
  },
166
+ deletePopUpComponent: function(){
167
+ const rowId = dynamicData.path.split(".")[1];
168
+ localStorage.setItem('rowId',rowId);
169
+ store.updateDialog("popUpComponentSection");
170
+ },
171
+ deletePopUpEvent: function(){
172
+ const rowId = dynamicData.path.split(".")[1];
173
+ localStorage.setItem('rowId',rowId);
174
+ store.updateDialog("popUpEventSection");
175
+ },
158
176
  }
159
177
  };
160
178
 
@@ -24,17 +24,18 @@ export default (
24
24
  this.refreshPage(formdata.Handler, store)
25
25
  },
26
26
  refreshPage: (handlerType: any, store: any) => {
27
- const uiSchema = _.cloneDeep(EventUiSchema);
27
+ const uiSchema = _.cloneDeep(EventUiSchema(store.theme.myTheme));
28
28
  const schema: any = _.cloneDeep(EventSchema)
29
29
  if (handlerType) {
30
30
  if (handlerType === "custom") {
31
31
  uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync","Run in Sync",["Yes","No"])
32
- uiSchema.elements[1].elements[0].elements[3] = emptyBox;
33
- uiSchema.elements[1].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false)
32
+ // uiSchema.elements[0].elements[0].elements[3] = emptyBox;
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[1].elements[0].elements[2] = APISection;
37
+ uiSchema.elements[1].elements[0].elements[2] = emptyBox;
38
+ uiSchema.elements[1].elements[0].elements[3] = APISection;
38
39
  schema.required = ["eventType", "Handler", "method", "path"]
39
40
  } else if (handlerType === "inBuiltFunction") {
40
41
  uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
@@ -42,10 +43,11 @@ export default (
42
43
  { label: "Download File", value: "downloadFile" },
43
44
  { label: "Download Blob File", value: "downloadBlobFile" }
44
45
  ])
45
- uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 });
46
+ uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
46
47
  schema.required = ["eventType", "Handler", "inBuiltFunctionType"]
47
48
  } else if (handlerType === "refresh") {
48
- uiSchema.elements[1].elements[0].elements[2] = refreshSectionUiSchema;
49
+ uiSchema.elements[1].elements[0].elements[2] = emptyBox;
50
+ uiSchema.elements[1].elements[0].elements[3] = refreshSectionUiSchema;
49
51
  schema.properties.refreshElements.required = ["value"]
50
52
  schema.properties.refreshElements.items.required = ["value"]
51
53
  schema.required = ["eventType", "Handler", "refreshElements"]
@@ -99,9 +101,17 @@ export default (
99
101
  this.setPage()
100
102
 
101
103
  },
102
- deleteEvent: Component(store, dynamicData, submitHandler, service).deleteEvent,
104
+ deleteEvent: async function () {
105
+ await Component(store, dynamicData, submitHandler, service).deleteEvent(false);
106
+ store.updateDialog("popUpEvent");
107
+ },
103
108
  backHandler: function () {
104
109
  store.navigate(-1)
105
110
  },
111
+ deletePopUpEvent: function(){
112
+ const rowId = dynamicData.path.split(".")[1];
113
+ localStorage.setItem('rowId',rowId);
114
+ store.updateDialog("popUpEvent");
115
+ }
106
116
  }
107
117
  };
@@ -34,7 +34,7 @@ export default (funcParams: funcParamsProps) => {
34
34
  return config
35
35
  },
36
36
  getUiSchema: function () {
37
- return PageMasterUiSchema;
37
+ return PageMasterUiSchema(store.theme.myTheme);
38
38
  },
39
39
  getSchema: () => {
40
40
  return PageMasterSchema;
@@ -62,7 +62,11 @@ export default (funcParams: funcParamsProps) => {
62
62
  },
63
63
  saveHandler: async () => await saveHandler(store, service, submitHandler),
64
64
  Edit_Components: Component(store, dynamicData, submitHandler, service).editComponents,
65
- Delete_Components: Component(store, dynamicData, submitHandler, service).deleteComponents,
65
+
66
+ Delete_Components: async function() {
67
+ await Component(store, dynamicData, submitHandler, service).deleteComponents(false);
68
+ store.updateDialog("popUpPageMasterComponent");
69
+ },
66
70
  eventAddHandler: function () {
67
71
  const id = store.searchParams?.get("id");
68
72
  if (!Array.isArray(store.formData.events)) {
@@ -80,10 +84,22 @@ export default (funcParams: funcParamsProps) => {
80
84
  store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
81
85
  },
82
86
  deleteEvent: function () {
83
- const rowId = dynamicData.path.split(".")[1];
87
+ const rowId = localStorage.getItem('rowId');
84
88
  store.formData.events.splice(rowId, 1);
85
89
  const response = saveFormdataInLocalStorage(store.ctx.core.data)
86
90
  store.setFormdata(response);
91
+ store.updateDialog("popUpPageMasterEvent");
92
+ localStorage.removeItem('rowId');
93
+ },
94
+ deletePopUpComponent: function(){
95
+ const rowId = dynamicData.path.split(".")[1];
96
+ localStorage.setItem('rowId',rowId);
97
+ store.updateDialog("popUpPageMasterComponent");
98
+ },
99
+ deletePopUpEvent: function(){
100
+ const rowId = dynamicData.path.split(".")[1];
101
+ localStorage.setItem('rowId',rowId);
102
+ store.updateDialog("popUpPageMasterEvent");
87
103
  },
88
104
  }
89
105
  };
@@ -91,7 +91,6 @@ export const navigateHandler = (store, isSubmitted, pageName?: string | boolean)
91
91
 
92
92
  export function okHandler(store) {
93
93
  const path = store.searchParams?.get("path");
94
- console.log(store.ctx.core.errors)
95
94
  if (_.isEmpty(store.ctx.core.errors)) {
96
95
  saveFormdataInLocalStorage(store.ctx.core.data, path)
97
96
  store.navigate(-1)
@@ -3,7 +3,7 @@ import { handlersProps } from "./interface";
3
3
  export const executeEvents = (params: handlersProps) => {
4
4
  let nextEvent = [];
5
5
  let finalResponse = null;
6
-
6
+
7
7
  if (params.config.isSync !== "Yes") {
8
8
  return shouldEventExecute(params)
9
9
  .then((shouldExecute) => {
@@ -52,7 +52,7 @@ export const executeEvents = (params: handlersProps) => {
52
52
  }
53
53
  return finalResponse;
54
54
  }
55
-
55
+
56
56
  function executeEventsHandler(params: handlersProps) {
57
57
  if (params.config.Handler === "api") {
58
58
  return executeApiRequest(params);
@@ -79,56 +79,41 @@ function executeEventsHandler(params: handlersProps) {
79
79
  return params.store.functionParameters?.handleReset();
80
80
  }
81
81
  }
82
-
82
+
83
83
  export function getRefreshElements(eventConfig: any, eventGropus: any) {
84
84
  let result: string[] = [];
85
85
  if (eventConfig?.refreshElements?.length > 0) {
86
86
  result = eventConfig.refreshElements.map((e) => {
87
87
  return e.value
88
88
  })
89
-
89
+
90
90
  } else {
91
91
  if (eventGropus?.onLoad) {
92
92
  result = Object.keys(eventGropus?.onLoad)
93
93
  result.push(result[0]);
94
94
  }
95
95
  }
96
- console.log(result);
97
96
  return result;
98
97
  }
99
98
  export async function executeRefreshHandler(params: handlersProps) {
100
99
  const compToRefresh: string[] = getRefreshElements(params.config, params.eventGroups);
101
-
102
- // Create an array of promises for the components to refresh
103
100
  return Promise.allSettled(compToRefresh.map(componentName => {
104
101
  const eventConfigs = params.eventGroups.onLoad[componentName];
105
-
106
- // If eventConfigs is undefined, return a resolved promise
107
102
  if (!eventConfigs) {
108
- return Promise.resolve(); // Resolve immediately if there are no events to load
103
+ return Promise.resolve();
109
104
  }
110
-
111
- // Create an array of promises for the defined eventConfigs
112
105
  return Promise.allSettled(eventConfigs.map(compEventConfig => {
113
106
  return executeEvents({ ...params, config: compEventConfig, componentName });
114
107
  }));
115
108
  }));
116
109
  }
117
- // export function executeRefreshHandler(params: handlersProps) {
118
- // const compToRefresh: string[] = getRefreshElements(params.config, params.eventGroups);
119
- // return Promise.all(compToRefresh.map(componentName => {
120
- // return Promise.all(params.eventGroups.onLoad[componentName].map(compEventConfig => {
121
- // return executeEvents({ ...params, config: compEventConfig, componentName });
122
- // }));
123
- // }))
124
- // };
125
110
  export function executeApiRequest(params: any) {
126
111
  const initialBody = { ...params.userValue?.payload };
127
112
  const initialHeaders = {
128
113
  "X-Requested-With": "XMLHttpRequest",
129
114
  "Access-Control-Allow-Origin": "*"
130
115
  };
131
-
116
+
132
117
  const payloadApi = buildApiPayload(params.config, initialBody, initialHeaders, params.store, params.dynamicData, params.userValue, params.service)
133
118
  return params.service[params.config.method](
134
119
  params.config.path,
@@ -138,7 +123,7 @@ export function executeApiRequest(params: any) {
138
123
  return response;
139
124
  });
140
125
  };
141
-
126
+
142
127
  function executeInBuiltFunctionHandler(params: handlersProps) {
143
128
  let parameter = {};
144
129
  if (params.config.funcParametersCode) {
@@ -149,7 +134,7 @@ function executeInBuiltFunctionHandler(params: handlersProps) {
149
134
  params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service)
150
135
  }
151
136
  }
152
-
137
+
153
138
  function executeCustomHandler(params: handlersProps) {
154
139
  const makeFunc = eval(params.config.eventCode)
155
140
  if (params.config.isSync !== "Yes") {
@@ -158,9 +143,9 @@ function executeCustomHandler(params: handlersProps) {
158
143
  const response = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName)
159
144
  return response;
160
145
  }
161
-
146
+
162
147
  }
163
-
148
+
164
149
  function mergeFormdata(handlerResponse: any, componentName: string, eventConfig: any, store: any, service: any, formDataHolder: any) {
165
150
  if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse?.data) && handlerResponse?.data)) {
166
151
  store.setSchema((pre) => {
@@ -205,8 +190,8 @@ function mergeFormdata(handlerResponse: any, componentName: string, eventConfig:
205
190
  }
206
191
  }
207
192
  }
208
-
209
- const buildBodyFormat = (body: any[], formData: any, userValue: any) => {
193
+
194
+ const buildBodyFormat = (body: any[], formData: any, userValue: any, store: any) => {
210
195
  let finalBody = { ...userValue?.payload };
211
196
  body.map((elem) => {
212
197
  if (typeof elem?.value !== "string") {
@@ -215,6 +200,15 @@ const buildBodyFormat = (body: any[], formData: any, userValue: any) => {
215
200
  if (elem?.value?.startsWith("$userValue")) {
216
201
  const finalpath = elem.value.substring(11);
217
202
  finalBody[elem.key] = _.get(userValue, finalpath);;
203
+ } else if (elem?.value?.startsWith("$urlParams")) {
204
+ const finalpath = elem.value.substring(11);
205
+ const value = store?.searchParams?.get(finalpath);
206
+ finalBody[elem.key] = value;
207
+ }
208
+ else if (elem?.value?.startsWith("$local")) {
209
+ const finalpath = elem.value.substring(7);
210
+ const value = JSON.parse(localStorage.getItem(finalpath) || '""')
211
+ finalBody[elem.key] = value;
218
212
  }
219
213
  else if (elem?.value?.startsWith("$")) {
220
214
  const finalpath = elem.value.substring(1);
@@ -231,7 +225,7 @@ const buildBodyFormat = (body: any[], formData: any, userValue: any) => {
231
225
  })
232
226
  return finalBody;
233
227
  }
234
-
228
+
235
229
  const buildHeadersFormat = (headers: any[]) => {
236
230
  const headerObj = {
237
231
  // "Content-Type": "application/json",
@@ -242,10 +236,10 @@ const buildHeadersFormat = (headers: any[]) => {
242
236
  })
243
237
  return headerObj;
244
238
  }
245
-
239
+
246
240
  export function shouldEventExecute(params: handlersProps) {
247
241
  const startEvent = params.config?.events?.filter(e => e.eventType === "onStart");
248
-
242
+
249
243
  if (startEvent?.length > 0) {
250
244
  if (startEvent[0]?.isSync !== "Yes") {
251
245
  return executeEventsHandler({ ...params, config: startEvent[0] }).then((response) => {
@@ -262,14 +256,14 @@ export function shouldEventExecute(params: handlersProps) {
262
256
  }
263
257
  }
264
258
  }
265
-
266
-
259
+
260
+
267
261
  export function buildApiPayload(compConfig: any, body: any, headers: any, store: any, dynamicData: any, userValue: any, service) {
268
262
  if (compConfig?.headers) {
269
263
  headers = buildHeadersFormat(compConfig.headers);
270
264
  }
271
265
  if (compConfig.body) {
272
- body = { ...buildBodyFormat(compConfig.body, store.newData || store?.ctx?.core?.data || store.formData, userValue) };
266
+ body = { ...buildBodyFormat(compConfig.body, store.newData || store?.ctx?.core?.data || store.formData,userValue, store) };
273
267
  }
274
268
  const promiseChain = { body, headers };
275
269
  if (compConfig.apiBody) {
@@ -288,4 +282,4 @@ export function asyncOperation() {
288
282
  }
289
283
  }, 50);
290
284
  });
291
- }
285
+ }
@@ -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,8 @@ 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
- const jsonres = await fetch('https://jsonplaceholder.typicode.com/todos/1');
107
- const result = await jsonres.json()
108
216
  funcParams.store.setSchema(
109
217
  (pre: any) => {
110
218
  return {