impaktapps-ui-builder 0.0.274 → 0.0.276

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 (40) hide show
  1. package/dist/impaktapps-ui-builder.es.js +398 -121
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +16 -16
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildLineGraph.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildRadio.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildSchema.d.ts +6 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +0 -4
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/cardSlider.d.ts +1 -6
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +8 -1
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/speedoMeter.d.ts +9 -3
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +31 -0
  14. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -0
  15. package/package.json +1 -1
  16. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +14 -7
  17. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +10 -0
  18. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +4 -2
  19. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +28 -21
  20. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +12 -16
  21. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +35 -0
  22. package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +34 -0
  23. package/src/impaktapps-ui-builder/builder/build/buildSpeedoMeter.ts +21 -8
  24. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +2 -1
  25. package/src/impaktapps-ui-builder/builder/build/buildTimer.ts +2 -1
  26. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +44 -37
  27. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +53 -45
  28. package/src/impaktapps-ui-builder/builder/build/uischema/cardSlider.ts +1 -1
  29. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -0
  30. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +4 -1
  31. package/src/impaktapps-ui-builder/builder/build/uischema/speedoMeter.ts +5 -4
  32. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +75 -0
  33. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +41 -0
  34. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +2 -1
  35. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +1 -0
  36. package/src/impaktapps-ui-builder/builder/services/component.ts +27 -24
  37. package/src/impaktapps-ui-builder/builder/services/getNavigationHistory.ts +6 -1
  38. package/src/impaktapps-ui-builder/lib/index.ts +1 -0
  39. package/src/impaktapps-ui-builder/runtime/services/events.ts +86 -4
  40. package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -0
@@ -1,5 +1,37 @@
1
1
  import _ from "lodash";
2
-
2
+ const getArrayControl = (parentScope:string,childScope:string,childLabel?:string,) =>{
3
+ return {
4
+ type: "Control",
5
+ scope: `#/properties/${parentScope}`,
6
+ layout: 11.5,
7
+ options: {
8
+ detail: {
9
+ type: "HorizontalLayout",
10
+ elements: [
11
+ {
12
+ type: "Control",
13
+ scope: `#/properties/${childScope}`,
14
+
15
+ options: {
16
+ widget: "InputField",
17
+ },
18
+ config: {
19
+ layout: {
20
+ xs: 11,
21
+ sm: 11,
22
+ md: 5.5,
23
+ lg: 5.5,
24
+ },
25
+ main: {
26
+ label: childLabel||"Labels for Tab",
27
+ },
28
+ },
29
+ },
30
+ ],
31
+ },
32
+ },
33
+ }
34
+ }
3
35
  const getInputField = (scope: String, label: String) => {
4
36
  return {
5
37
  type: "Control",
@@ -97,16 +129,6 @@ export const getSelectField = (scope: string, label: string, options: { label: s
97
129
  }
98
130
  }
99
131
 
100
- const emptyBox = {
101
- type: "Control",
102
- scope: "#/properties/proc",
103
- config: {
104
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
105
- },
106
- options: {
107
- widget: "EmptyBox",
108
- },
109
- };
110
132
 
111
133
  const GraphSection = {
112
134
  type: "HorizontalLayout",
@@ -115,9 +137,16 @@ const GraphSection = {
115
137
 
116
138
  export const buildPropertiesSection = function (type: String) {
117
139
  let uiSchema = _.cloneDeep(GraphSection);
118
-
119
- if (type === "SpeedoMeter" || type === "RankCard" || type === "Timer") {
120
-
140
+ if(type === "SpeedoMeter" ){
141
+ uiSchema.elements = [
142
+ getInputField("segments", "Segments Count"),
143
+ getInputField("heading", "Container Heading"),
144
+ getInputField("heading", "Container Heading"),
145
+ getInputField("speedoCaption", "Speedometer Caption"),
146
+ getInputField("width","Speedometer Width")
147
+ ]
148
+ }
149
+ else if ( type === "RankCard") {
121
150
  uiSchema.elements = [
122
151
  getInputField("rank", "Rank"),
123
152
  getInputField("image", "Image Url"),
@@ -166,57 +195,36 @@ export const buildPropertiesSection = function (type: String) {
166
195
  const leftLabel = getInputField("leftLabel", "Left Label");
167
196
  const bottomLabel = getInputField("bottomLabel", "Bottom Label");
168
197
  const legendAvailabe = getRadioInputField("legendHide","Legend Hide",["YES","No"])
198
+
169
199
  uiSchema.elements = [
170
200
  heading,
171
201
  height,
172
202
  getSelectField("graphType","Graph Type",[
173
203
  { label: "Bar Graph", value: "BarGraph" },
174
204
  { label: "Stack Bar Graph", value: "StackBarGraph" },
205
+ { label: "Line Graph", value: "LineGraph" },
175
206
  { label: "Pie Graph", value: "PieGraph" },
176
207
  { label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
177
208
  ]),
178
209
  leftLabel,
179
210
  bottomLabel,
180
211
  legendAvailabe,
212
+ getArrayControl("legendLabels","label"),
213
+ getArrayControl("pieArcColors","color"),
181
214
  ];
182
215
  }else if(type === "WrapperSection"){
183
216
  uiSchema.elements = [getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("heading","Page Heading",["YES","No"])]
184
217
  }
185
218
  else if(type === "TabSection"){
186
219
  uiSchema.elements =[
187
- {
188
- type: "Control",
189
- scope: "#/properties/sectionLabels",
190
- layout: 11.5,
191
- options: {
192
- detail: {
193
- type: "HorizontalLayout",
194
- elements: [
195
- {
196
- type: "Control",
197
- scope: "#/properties/label",
198
-
199
- options: {
200
- widget: "InputField",
201
- },
202
- config: {
203
- layout: {
204
- xs: 11,
205
- sm: 11,
206
- md: 5.5,
207
- lg: 5.5,
208
- },
209
- main: {
210
- label: "Labels for Tab",
211
- },
212
- },
213
- },
214
- ],
215
- },
216
- },
217
- }
220
+ getArrayControl("sectionLabels","label"),
218
221
  ]
219
222
  }
223
+ else if(type === "Radio"){
224
+ uiSchema.elements =[
225
+ getArrayControl("sectionLabels","label","Options Of Radio"),
226
+ ]
227
+ }
220
228
 
221
229
  return uiSchema;
222
230
  };
@@ -7,7 +7,7 @@ export default {
7
7
  },
8
8
  elements:[],
9
9
  config: {
10
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
10
+ layout: 12,
11
11
  main: {
12
12
  },
13
13
  },
@@ -25,6 +25,7 @@ export const CoreSection = {
25
25
  { label: "Text Area", value: "TextArea" },
26
26
  { label: "Button", value: "Button" },
27
27
  { label: "Card", value: "card" },
28
+ { label: "Radio", value: "Radio" },
28
29
  { label: "Rank", value: "Rank" },
29
30
  { label: "SpeedoMeter", value: "SpeedoMeter" },
30
31
  { label: "ProgressBar", value: "ProgressBar" },
@@ -7,10 +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
13
  wrapperStyle: {
11
14
  position: "relative",
12
15
  width: "100%",
13
- height: 1000
16
+ // height: {xs:800,sm:1000}
14
17
  }
15
18
  },
16
19
  elements: [
@@ -5,10 +5,12 @@ export default {
5
5
  widget: "SpeedoMeter",
6
6
  },
7
7
  config:{
8
- layout:12,
8
+ layout:{xs:0,sm:12,md:12,lg:12},
9
+ width:350,
10
+ segments:"5",
9
11
  main:{
10
- currentValueText:"",
11
- customSegmentLabels:{},
12
+ currentValueText:"Your Score",
13
+ customSegmentLabels:[],
12
14
  data:{
13
15
  maxValue:100000,
14
16
  value:50000,
@@ -23,7 +25,6 @@ export default {
23
25
  needleColor:"#3f51b5",
24
26
  startColor:"red",
25
27
  textColor:"black",
26
- segments:5,
27
28
  endColor:"green",
28
29
 
29
30
  containerStyle:{
@@ -0,0 +1,75 @@
1
+ export const ValidationSection = {
2
+ type: "HorizontalLayout",
3
+ elements: [
4
+ {
5
+ type: "Control",
6
+ scope: "#/properties/validation",
7
+ layout: 11.5,
8
+ options: {
9
+ detail: {
10
+ type: "HorizontalLayout",
11
+ elements: [
12
+ {
13
+ type: "Control",
14
+ scope: "#/properties/validationType",
15
+
16
+ options: {
17
+ widget: "InputField",
18
+ },
19
+ config: {
20
+ layout: {
21
+ xs: 11,
22
+ sm: 11,
23
+ md: 5.5,
24
+ lg: 5.5,
25
+ },
26
+ main: {
27
+ label: "Validation Type",
28
+ },
29
+ },
30
+ },
31
+ {
32
+ type: "Control",
33
+ scope: "#/properties/validationValue",
34
+
35
+ options: {
36
+ widget: "InputField",
37
+ },
38
+ config: {
39
+ layout: {
40
+ xs: 11,
41
+ sm: 11,
42
+ md: 5.5,
43
+ lg: 5.5,
44
+ },
45
+ main: {
46
+ label: "Validation Value",
47
+ },
48
+ },
49
+ }
50
+ ],
51
+ },
52
+ },
53
+
54
+ },
55
+ ]};
56
+
57
+ // export const ValidationSchema = {
58
+ // validation: {
59
+ // type: "array",
60
+ // items: {
61
+ // type: "object",
62
+ // properties: {
63
+ // componentName: {
64
+ // type: "string",
65
+ // },
66
+ // validationType:{
67
+ // type: "string",
68
+ // },
69
+ // validationValue: {
70
+ // type: "string",
71
+ // },
72
+ // },
73
+ // },
74
+ // },
75
+ // };
@@ -72,6 +72,47 @@ export const ComponentSchema:any = {
72
72
  },
73
73
  },
74
74
  },
75
+ legendLabels: {
76
+ type: "array",
77
+ items: {
78
+ type: "object",
79
+ properties: {
80
+ label: {
81
+ type: "string",
82
+ },
83
+
84
+ },
85
+ },
86
+ },
87
+ pieArcColors: {
88
+ type: "array",
89
+ items: {
90
+ type: "object",
91
+ properties: {
92
+ label: {
93
+ type: "string",
94
+ },
95
+
96
+ },
97
+ },
98
+ },
99
+ validation: {
100
+ type: "array",
101
+ items: {
102
+ type: "object",
103
+ properties: {
104
+ componentName: {
105
+ type: "string",
106
+ },
107
+ validationType:{
108
+ type: "string",
109
+ },
110
+ validationValue: {
111
+ type: "string",
112
+ },
113
+ },
114
+ },
115
+ }
75
116
  },
76
117
 
77
118
  };
@@ -82,7 +82,7 @@ export const componentBasicUiSchema: any = {
82
82
  main: {
83
83
  tabLabels: ["Core"],
84
84
  defaultStyle: true,
85
- id:"component"
85
+ id:`component`
86
86
  },
87
87
  },
88
88
 
@@ -110,6 +110,7 @@ export const componentBasicUiSchema: any = {
110
110
  { label: "Container", value: "WrapperSection" },
111
111
  { label: "Tabs", value: "TabSection" },
112
112
  { label: "Text", value: "Text" },
113
+ { label: "Radio", value: "Radio" },
113
114
  { label: "Text Area", value: "TextArea" },
114
115
  { label: "Button", value: "Button" },
115
116
  { label: "Card", value: "card" },
@@ -104,6 +104,7 @@ export const EventUiSchema: any = {
104
104
  type: "text",
105
105
  options: [
106
106
  { label: "Click Event", value: "onClick" },
107
+ { label: "onStart", value: "onStart" },
107
108
  { label: "Load Event", value: "onLoad" },
108
109
  { label: "Change Event", value: "onChange" },
109
110
  { label: "Success", value: "Success" },
@@ -8,29 +8,31 @@ import { buildPropertiesSection } from "../build/uischema/buildPropertiesSection
8
8
  import { StyleSection } from "../build/uischema/styleSection";
9
9
  import { TableSection } from "../build/uischema/tableSection";
10
10
  import { ValueTab } from "../build/uischema/valueTab";
11
+ import { ValidationSection } from "../build/uischema/validationSections";
11
12
 
12
13
  const sectionLabels = {
13
- Select: ["Core", "Value", "style", "Event"],
14
- MultipleSelect: ["Core", "Value", "style", "Event"],
15
- Table: ["Core", "Components", "style", "Event"],
16
- LeaderBoard: ["Core", "Components", "Properties", "style", "Event"],
17
- WrapperSection: ["Core", "Components","Properties", "style"],
18
- TabSection: ["Core", "Components", "Properties", "style"],
19
- SpeedoMeter:["Core", "Properties", "style", "Event"],
20
- card:["Core", "Properties", "style", "Event"],
21
- UploadFile:["Core", "style", "Event"],
22
- Graph:["Core", "Properties", "style", "Event"],
23
- DownloadFile:["Core", "style", "Event"],
24
- Box: ["Core", "Properties", "style", "Event"],
25
- Properties: ["Core", "Properties", "style", "Event"],
26
- ProgressBarCard: ["Core", "Properties", "style", "Event"],
27
- RankCard: ["Core", "Properties", "style", "Event"],
28
- Slider: ["Core", "Components","Properties", "style", "Event"],
29
- Timer: ["Core", "Properties", "style", "Event"],
30
- Rank: ["Core", "Properties", "style", "Event"],
31
- Button: ["Core", "Properties", "style", "Event"],
32
- Array:["Core","Components",],
33
-
14
+ Select: ["Core", "Value", "style", "Event","Validation"],
15
+ MultipleSelect: ["Core", "Value", "style", "Event","Validation"],
16
+ Table: ["Core", "Components", "style", "Event","Validation"],
17
+ LeaderBoard: ["Core", "Components", "Properties", "style", "Event","Validation"],
18
+ WrapperSection: ["Core", "Components","Properties", "style","Validation"],
19
+ TabSection: ["Core", "Components", "Properties", "style","Validation"],
20
+ SpeedoMeter:["Core", "Properties", "style", "Event","Validation"],
21
+ card:["Core", "Properties", "style", "Event","Validation"],
22
+ UploadFile:["Core", "style", "Event","Validation"],
23
+ Graph:["Core", "Properties", "style", "Event","Validation"],
24
+ DownloadFile:["Core", "style", "Event","Validation"],
25
+ Box: ["Core", "Properties", "style", "Event","Validation"],
26
+ Properties: ["Core", "Properties", "style", "Event","Validation"],
27
+ ProgressBarCard: ["Core", "Properties", "style", "Event","Validation"],
28
+ RankCard: ["Core", "Properties", "style", "Event","Validation"],
29
+ Slider: ["Core", "Components","Properties", "style", "Event","Validation"],
30
+ Timer: ["Core", "Properties", "style", "Event","Validation"],
31
+ Rank: ["Core", "Properties", "style", "Event","Validation"],
32
+ Button: ["Core", "Properties", "style", "Event","Validation"],
33
+ Array:["Core","Components","Validation"],
34
+ Radio:["Core", "Properties", "style", "Event","Validation"],
35
+ Text:["Core", "Event","Validation"]
34
36
  }
35
37
 
36
38
  export const refreshPage = (type:string,store:any) => {
@@ -42,12 +44,13 @@ export const refreshPage = (type:string,store:any) => {
42
44
  style: StyleSection,
43
45
  Event: EventSection,
44
46
  Components: TableSection,
45
- Properties: buildPropertiesSection(type)
47
+ Properties: buildPropertiesSection(type),
48
+ Validation:ValidationSection
46
49
 
47
50
  }
48
51
  const elements = sectionLabels[type]?.map(e => sectionUiSchema[e]);
49
- UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "style","Event"];
50
- UiSchema.elements[1].elements = elements || [CoreSection, StyleSection,EventSection];
52
+ UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "style","Event","Validation"];
53
+ UiSchema.elements[1].elements = elements || [CoreSection, StyleSection,EventSection,ValidationSection];
51
54
 
52
55
  }
53
56
  store.setUiSchema(UiSchema);
@@ -14,7 +14,12 @@ export const getNavigationHistory = (config: any, path: string|undefined) => {
14
14
  })
15
15
  arr.map((e) => {
16
16
  const data = _.get(config, e)
17
- urlRoutes = urlRoutes + ` > ${data?.name || data?.eventType}`;
17
+ if(data){
18
+ urlRoutes = urlRoutes + ` > ${data?.name || data?.eventType}`
19
+ }else{
20
+ urlRoutes = urlRoutes + " > NewComponent";
21
+ }
22
+
18
23
  })
19
24
  return { pageName: urlRoutes }
20
25
  }
@@ -5,4 +5,5 @@ export {default as pageMasterComponents} from "../builder/services/component"
5
5
  export {default as pageService} from "../runtime/services/service"
6
6
  export {default as buildConfig} from "../builder/build/buildConfig"
7
7
  export {default as buildUiSchema} from "../builder/build/buildUiSchema"
8
+ export {default as buildSchema} from "../builder/build/buildSchema"
8
9
  export {default as clearPreviousCache} from "../builder/services/clearLocalStorage"
@@ -35,6 +35,15 @@ const executetOnLoadEvent = async (
35
35
  ) => {
36
36
 
37
37
  try {
38
+ const startEvent = config?.events.filter(e => e.eventType === "onStart");
39
+ if(startEvent.length > 0){
40
+ const { response } = await executeEventsHandler(config, componentName,
41
+ store, dynamicData, userValue,
42
+ service, serviceHolder, eventGroups, parentEventOutput);
43
+ if(response){
44
+ return;
45
+ }
46
+ }
38
47
  const { response } = await executeEventsHandler(config, componentName,
39
48
  store, dynamicData, userValue,
40
49
  service, serviceHolder, eventGroups, parentEventOutput)
@@ -132,12 +141,14 @@ async function executeInBuiltFunctionHandler(refreshHandlerConfig: any, componen
132
141
  async function executeCustomHandler(customHandlerConfig: any, componentName: string,
133
142
  store: any, dynamicData: any, userValue: any,
134
143
  service: any, serviceHolder: any, parentEventOutput?: any) {
135
- const makeFunc = eval(customHandlerConfig.eventCode)
136
- makeFunc(store, dynamicData, userValue, parentEventOutput, service);
137
- return { response: undefined, events: customHandlerConfig?.events };
144
+ console.log(service)
145
+ const makeFunc = eval(customHandlerConfig.eventCode)
146
+ const response = await makeFunc(store, dynamicData, userValue, parentEventOutput, service,componentName);
147
+ return { response: response, events: customHandlerConfig?.events };
138
148
  }
139
149
 
140
150
  async function mergeFormdata(handlerResponse: any, componentName: string, eventConfig: any, store: any) {
151
+
141
152
  if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse)&&handlerResponse)) {
142
153
  store.setSchema((pre) => {
143
154
  return {
@@ -217,10 +228,81 @@ export function getRefreshElements(eventConfig: any, eventGropus: any) {
217
228
  result = eventConfig.refreshElements.map((e) => {
218
229
  return e.value
219
230
  })
231
+
220
232
  } else {
221
233
  if (eventGropus?.onLoad) {
222
234
  result = Object.keys(eventGropus?.onLoad)
235
+ // const firstElem = result.shift();
236
+ result.push(result[0]);
223
237
  }
224
238
  }
225
239
  return result;
226
- }
240
+ }
241
+
242
+
243
+
244
+ // const changeServerToFormData = async (res) => {
245
+ // // store.formData = res?.data?.payload?.config?.features?.rule?.id;
246
+ // const Api =
247
+ // "/master/getDetailById?masterName=com.act21.hyperform3.entity.master.rule.Rule&id=" +
248
+ // res?.data?.payload?.config?.features?.rule?.id;
249
+
250
+ // const data = await service.get(Api).then((response: any) => {
251
+ // const reportData = res?.data?.payload?.config?.features?.Reports?.names?.map(
252
+ // (elem: any) => {
253
+ // if (typeof elem === "string" || typeof elem === "number") {
254
+ // return { label: elem, value: elem };
255
+ // }
256
+ // return elem;
257
+ // }
258
+ // );
259
+ // const newData = {
260
+ // id: res.data.payload.id,
261
+ // name: res.data.payload.name,
262
+ // program: JSON.stringify(res.data.payload.program),
263
+ // startDate: res.data.payload.startDate,
264
+ // endDate: res.data.payload.endDate,
265
+ // downloadWorkflowFile:
266
+ // res.data.payload.config.features.workflow.externalFileName,
267
+ // uploadWorkflowFileId:
268
+ // res.data.payload.config.features.workflow.externalDataId,
269
+ // processDefKey1:
270
+ // res.data.payload.config.features.workflow.processDefKey,
271
+ // downloadInvoiceFile:
272
+ // res.data.payload.config.features.invoice.externalFileName,
273
+ // uploadInvoiceFileId:
274
+ // res.data.payload.config.features.invoice.externalDataId,
275
+ // invoiceEnabled: res.data.payload.config.features.invoice.enabled,
276
+ // groupId: response?.data?.payload?.groupId,
277
+ // project: response?.data?.payload?.artifactId,
278
+ // version: response?.data?.payload?.version,
279
+ // reportNames: reportData,
280
+ // clawbackEnabled: res.data.payload.config.features.Clawback.enabled,
281
+ // loadTimeout: res.data.payload.config.features?.timeouts?.loadTimeOut,
282
+ // computeTimeout:
283
+ // res.data.payload.config.features?.timeouts?.computeTimeOut,
284
+ // adjustments: res.data.payload.config.features?.Adjustments,
285
+ // };
286
+ // return newData;
287
+ // });
288
+ // return data;
289
+ // };
290
+ // const action = store.searchParams?.get("id");
291
+ // console.log(action)
292
+ // if (action) {
293
+ // const Api =
294
+ // "/master/getDetailById?masterName=com.act21.hyperform3.entity.program.ProgramCycleStaging";
295
+ // await service
296
+ // .get(`${Api}&id=${action}`)
297
+ // .then(async (res) => {
298
+ // console.log("response", res)
299
+ // const newData = await changeServerToFormData(res);
300
+ // store.setFormdata((pre)=>{return {...pre,...newData}});
301
+ // })
302
+ // .catch(() => {});
303
+ // }
304
+
305
+
306
+
307
+
308
+
@@ -55,6 +55,7 @@ export default (funcParams:funcParamsProps) => {
55
55
  { Handler: "refresh",eventType:"onPageRefresh"}, "all",
56
56
  funcParams.store, funcParams.dynamicData, funcParams.userValue, funcParams.service,
57
57
  this, eventGroups)
58
+ // funcParams.store.setSchema(JSON.parse(localStorage.getItem("schemaDemo")))
58
59
  funcParams.uiSchema.elements.push(notifyUiSchema);
59
60
  funcParams.store.setUiSchema(funcParams.uiSchema);
60
61
  },