impaktapps-ui-builder 0.0.99 → 0.0.101-alpha.1

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 (62) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1909 -1522
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +17 -17
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +0 -1
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +94 -23
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +55 -2
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +28 -21
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -301
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +50 -2
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.d.ts +17 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
  17. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +3 -0
  18. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
  19. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +8 -2
  20. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -0
  21. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +5 -0
  22. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -1
  23. package/package.json +5 -1
  24. package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -0
  25. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +7 -3
  26. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +7 -2
  27. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +9 -21
  28. package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +1 -1
  29. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +18 -13
  30. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +3 -8
  31. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +22 -0
  32. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +4 -15
  33. package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
  34. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +8 -10
  35. package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
  36. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +11 -0
  37. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
  38. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +13 -8
  39. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +0 -1
  40. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +103 -46
  41. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +44 -0
  42. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +9 -27
  43. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -366
  44. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  45. package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
  46. package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
  47. package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
  48. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +45 -1
  49. package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
  50. package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
  51. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +6 -1
  52. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +424 -202
  53. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +4 -1
  54. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +479 -167
  55. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -1
  56. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +339 -111
  57. package/src/impaktapps-ui-builder/builder/services/component.ts +94 -8
  58. package/src/impaktapps-ui-builder/builder/services/event.ts +19 -4
  59. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +20 -2
  60. package/src/impaktapps-ui-builder/builder/services/utils.ts +2 -2
  61. package/src/impaktapps-ui-builder/runtime/services/events.ts +24 -20
  62. package/src/impaktapps-ui-builder/runtime/services/service.ts +151 -47
@@ -1,4 +1,4 @@
1
- import _ from "lodash";
1
+ import _, { cloneDeep } from "lodash";
2
2
  import { ComponentSchema } from "../elements/UiSchema/Component/schema";
3
3
  import { componentBasicUiSchema } from "../elements/UiSchema/Component/uiSchema";
4
4
  import { CoreSection } from "../build/uischema/coreSection";
@@ -38,12 +38,11 @@ const sectionLabels = {
38
38
  DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
39
39
  InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
40
40
  TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
41
- ColumnGroup: ["Core", "Components"]
41
+ ColumnGroup: ["Core", "Components"],
42
+ Thought: ["Core", "Properties", "Event", "Style", "Validation"]
42
43
  }
43
44
 
44
-
45
-
46
- export const refreshPage = (type: string, store: any) => {
45
+ export function refreshPage (type: string, store: any) {
47
46
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store.theme.myTheme))
48
47
  if (type) {
49
48
  const sectionUiSchema = {
@@ -58,7 +57,9 @@ export const refreshPage = (type: string, store: any) => {
58
57
  const elements = sectionLabels[type]?.map(e => sectionUiSchema[e]);
59
58
  UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
60
59
  UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection(store.theme.myTheme), ValidationSection];
61
-
60
+ }
61
+ if (sessionStorage.getItem("copiedConfig") ) {
62
+ this.ElementPathSetter(UiSchema);
62
63
  }
63
64
  store.setUiSchema(UiSchema);
64
65
  }
@@ -79,10 +80,14 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
79
80
  return getFormdataFromSessionStorage(path)
80
81
  },
81
82
  getSchema: function () {
82
- return ComponentSchema;
83
+ const schema = _.cloneDeep(ComponentSchema);
84
+ if (sessionStorage.getItem("copiedConfig") ) {
85
+ schema.properties.RemoveItemButton.disabled = false;
86
+ }
87
+ return schema;
83
88
  },
84
89
  okHandler: () => okHandler(store),
85
- saveHandler: async () => await saveHandler(store, service, submitHandler, "PageMaster"),
90
+ saveHandler: async () => await saveHandler(store, service, submitHandler),
86
91
  onChange: function () {
87
92
  if (
88
93
  store?.formData?.type !== store?.newData?.type &&
@@ -172,5 +177,86 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
172
177
  sessionStorage.setItem('rowId',rowId);
173
178
  store.updateDialog("popUpEventSection");
174
179
  },
180
+
181
+ copyPasteElement: function(paramStore: any, setPage: any = this.setPage.bind(this) ){
182
+ const [actionType, elementType] = dynamicData.path.split('.').pop()?.split('_');
183
+ actionType === "Copy" ? this.CopyElement(paramStore, elementType) : this.PasteElement(setPage, elementType);
184
+ },
185
+ CopyElement: function(paramStore: any = store, elementType: string){
186
+ const schema = cloneDeep(paramStore.schema );
187
+ const uiSchema = cloneDeep(paramStore.uiSchema );
188
+ schema.properties.RemoveItemButton.disabled = false;
189
+
190
+ const rowId = dynamicData.path.split(".")[1];
191
+ const parentPathOfCopiedComponent = store.searchParams?.get("path");
192
+ const copiedElementPath = this.elementPathHandler(parentPathOfCopiedComponent, rowId, elementType);
193
+ const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
194
+
195
+ this.ElementPathSetter(uiSchema,copiedFormData);
196
+ sessionStorage.setItem('copiedConfig',JSON.stringify(copiedFormData));
197
+ store.setSchema(schema);
198
+ store.setUiSchema(uiSchema);
199
+ },
200
+ PasteElement: function( setPage: any , elementType: string){
201
+ if (!sessionStorage.getItem("copiedConfig") ) {
202
+ store.setNotify({
203
+ FailMessage: "No item has been copied.",
204
+ Fail: true,
205
+ });
206
+ return;
207
+ }
208
+ const pastedElementParentPath = store.searchParams?.get("path");
209
+ if (!Array.isArray(store.formData.elements) ) {
210
+ store.formData.elements = []
211
+ }
212
+ if (!Array.isArray(store.formData.events)) {
213
+ store.formData.events = []
214
+ }
215
+ saveFormdataInSessionStorage(store.ctx.core.data, pastedElementParentPath);
216
+ const formData = getFormdataFromSessionStorage(pastedElementParentPath);
217
+ const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
218
+ const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
219
+
220
+ const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
221
+ const notificationMessages = {
222
+ Event: " The event cannot be integrated into the component section.",
223
+ Component: "The component cannot be integrated into the event section."
224
+ };
225
+ if(copiedConfig.Handler && elementType === "Component"){
226
+ store.setNotify({
227
+ FailMessage: notificationMessages.Event,
228
+ Fail: true,
229
+ });
230
+ }
231
+ else if(copiedConfig.name && elementType === "Event"){
232
+ store.setNotify({
233
+ FailMessage: notificationMessages.Component,
234
+ Fail: true,
235
+ });
236
+ }
237
+ else{
238
+ saveFormdataInSessionStorage(copiedConfig, pastedElementPath);
239
+ setPage();
240
+ }
241
+ },
242
+ RemoveItemButton: function(paramStore: any = store){
243
+ const schema = cloneDeep(paramStore.schema );
244
+ const uiSchema = cloneDeep(paramStore.uiSchema);
245
+ schema.properties.RemoveItemButton.disabled = true;
246
+ uiSchema.elements[2].elements[1].config.main.heading = `No element copied`;
247
+ sessionStorage.removeItem('copiedConfig');
248
+ store.setSchema(schema);
249
+ store.setUiSchema(uiSchema);
250
+ },
251
+ elementPathHandler: function(parentPath: string, rowId: any, elementType: string){
252
+ if(elementType === "Component"){
253
+ return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
254
+ }
255
+ return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
256
+ },
257
+ ElementPathSetter: function(uiSchema: any,copiedFormData?: any){
258
+ const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
259
+ uiSchema.elements[2].elements[1].config.main.heading = `Copied Path: ${formData.pageName}`;
260
+ }
175
261
  }
176
262
  };
@@ -1,7 +1,7 @@
1
1
  import { EventSchema } from "../elements/UiSchema/event/schema";
2
2
  import { EventUiSchema } from "../elements/UiSchema/event/uiSchema";
3
3
  import Component from "./component";
4
- import { okHandler, saveFormdataInSessionStorage, saveHandler } from "./utils";
4
+ import { okHandler, saveFormdataInSessionStorage, saveHandler, getFormdataFromSessionStorage } from "./utils";
5
5
  import { APISection } from "../build/uischema/apiSection";
6
6
  import { getRadioInputField, getSelectField, getTextArea } from "../build/uischema/buildPropertiesSection";
7
7
  import { refreshSectionUiSchema } from "../build/uischema/refresh";
@@ -85,6 +85,10 @@ export default (
85
85
  ...functionsName
86
86
  ]
87
87
  }
88
+ if (sessionStorage.getItem("copiedConfig") ) {
89
+ Component(store, dynamicData, submitHandler, service).ElementPathSetter(uiSchema);
90
+ schema.properties.RemoveItemButton.disabled = false;
91
+ }
88
92
  store.setSchema(schema)
89
93
  store.setUiSchema(uiSchema)
90
94
  },
@@ -94,10 +98,14 @@ export default (
94
98
  return EventUiSchema;
95
99
  },
96
100
  getSchema: () => {
97
- return EventSchema;
101
+ const schema = _.cloneDeep(EventSchema);
102
+ if (sessionStorage.getItem("copiedConfig") ) {
103
+ schema.properties.RemoveItemButton.disabled = false;
104
+ }
105
+ return schema;
98
106
  },
99
107
  okHandler: () => okHandler(store),
100
- saveHandler: async () => await saveHandler(store, service, submitHandler, "PageMaster"),
108
+ saveHandler: async () => await saveHandler(store, service, submitHandler),
101
109
  onChange: function () {
102
110
  if (
103
111
  store?.formData?.Handler !== store?.newData?.Handler &&
@@ -138,6 +146,13 @@ export default (
138
146
  const rowId = dynamicData.path.split(".")[1];
139
147
  sessionStorage.setItem('rowId',rowId);
140
148
  store.updateDialog("popUpEvent");
141
- }
149
+ },
150
+ copyPasteElement: function(){
151
+ Component(store, dynamicData, submitHandler, service).copyPasteElement(store,this.setPage.bind(this));
152
+ },
153
+ RemoveItemButton: function(){
154
+ Component(store, dynamicData, submitHandler, service).RemoveItemButton(store)
155
+ },
156
+
142
157
  }
143
158
  };
@@ -34,10 +34,18 @@ export default (funcParams: funcParamsProps) => {
34
34
  return config
35
35
  },
36
36
  getUiSchema: function () {
37
- return PageMasterUiSchema(store.theme.myTheme);
37
+ const UiSchema = _.cloneDeep(PageMasterUiSchema(store.theme.myTheme));
38
+ if (sessionStorage.getItem("copiedConfig") ) {
39
+ Component(store, dynamicData, submitHandler, service).ElementPathSetter(UiSchema)
40
+ }
41
+ return UiSchema;
38
42
  },
39
43
  getSchema: () => {
40
- return PageMasterSchema;
44
+ const schema = _.cloneDeep(PageMasterSchema);
45
+ if (sessionStorage.getItem("copiedConfig") ) {
46
+ schema.properties.RemoveItemButton.disabled = false;
47
+ }
48
+ return schema;
41
49
  },
42
50
  backHandler: () => {
43
51
  sessionStorage.removeItem("pageFormdata")
@@ -101,5 +109,15 @@ export default (funcParams: funcParamsProps) => {
101
109
  sessionStorage.setItem('rowId',rowId);
102
110
  store.updateDialog("popUpPageMasterEvent");
103
111
  },
112
+
113
+
114
+ copyPasteElement: function(){
115
+ Component(store, dynamicData, submitHandler, service).copyPasteElement(store,this.setPage.bind(this));
116
+ },
117
+
118
+ RemoveItemButton: function(){
119
+ Component(store, dynamicData, submitHandler, service).RemoveItemButton(store)
120
+ },
121
+
104
122
  }
105
123
  };
@@ -57,7 +57,7 @@ export const getFormdataFromSessionStorage = (path?: string) => {
57
57
 
58
58
  }
59
59
 
60
- export async function saveHandler(store, service, submitHandler, pageName?: string) {
60
+ export async function saveHandler(store, service, submitHandler) {
61
61
  const id = store.searchParams?.get("id");
62
62
  const path = store.searchParams?.get("path");
63
63
  saveFormdataInSessionStorage(store.ctx.core.data, path);
@@ -65,7 +65,7 @@ export async function saveHandler(store, service, submitHandler, pageName?: stri
65
65
  if (_.isEmpty(store.ctx.core.errors)) {
66
66
  try {
67
67
  const saveReturn = await submitHandler(store, service, config);
68
- navigateHandler(store, true, pageName ? `/${pageName}?id=${saveReturn.id}` : "/PageMasterRecords")
68
+ navigateHandler(store, true,"/PageMasterRecords")
69
69
  } catch (err) {
70
70
  navigateHandler(store, false)
71
71
  }
@@ -146,32 +146,36 @@ 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)) {
150
- store.setSchema((pre) => {
151
- return {
152
- ...pre, properties: {
153
- ...pre.properties, [componentName]: {
154
- ...pre.properties?.[componentName],
155
- oneOf: handlerResponse.data
149
+ if (eventConfig.type === "Select" && handlerResponse?.data) {
150
+ if (!_.isEmpty(handlerResponse?.data)) {
151
+ store.setSchema((pre) => {
152
+ return {
153
+ ...pre, properties: {
154
+ ...pre.properties, [componentName]: {
155
+ ...pre.properties?.[componentName],
156
+ oneOf: handlerResponse.data
157
+ }
156
158
  }
157
159
  }
158
- }
159
- })
160
+ })
161
+ }
160
162
  }
161
- else if (eventConfig.type === "MultipleSelect" && handlerResponse?.data && !_.isEmpty(handlerResponse?.data)) {
162
- store.setSchema((pre) => {
163
- return {
164
- ...pre, properties: {
165
- ...pre.properties, [componentName]: {
166
- ...pre.properties?.[componentName],
167
- type: "array",
168
- items: {
169
- oneOf: handlerResponse?.data
163
+ else if (eventConfig.type === "MultipleSelect" && handlerResponse?.data) {
164
+ if (!_.isEmpty(handlerResponse?.data)) {
165
+ store.setSchema((pre) => {
166
+ return {
167
+ ...pre, properties: {
168
+ ...pre.properties, [componentName]: {
169
+ ...pre.properties?.[componentName],
170
+ type: "array",
171
+ items: {
172
+ oneOf: handlerResponse?.data
173
+ }
170
174
  }
171
175
  }
172
176
  }
173
- }
174
- })
177
+ })
178
+ }
175
179
  }
176
180
  else if (eventConfig.type === "page") {
177
181
  if (!(_.isEmpty(handlerResponse?.data) && handlerResponse?.data)) {
@@ -97,26 +97,129 @@ export default (funcParams: funcParamsProps) => {
97
97
  const theme = funcParams?.store?.theme?.myTheme;
98
98
  uiSchema.elements.push(
99
99
 
100
+ // {
101
+ // type: "HorizontalLayout",
102
+ // config: {
103
+ // main: {
104
+ // direction: "row",
105
+ // },
106
+ // style: {
107
+ // flexDirection: "row",
108
+ // position: "absolute",
109
+ // bottom: 0,
110
+ // height: "fit-content",
111
+ // overflow: "hidden",
112
+ // zIndex: 1000,
113
+ // width: "inherit",
114
+ // },
115
+ // },
116
+ // elements: [
117
+ // {
118
+ // type: "Control",
119
+ // scope: "#/properties/FooterText",
120
+ // options: {
121
+ // widget: "Box",
122
+ // },
123
+ // config: {
124
+ // main: {
125
+ // heading: "Copywriter@ACT21.IO",
126
+ // },
127
+ // style: {
128
+ // color: theme?.palette?.text?.disabled || "#AFAFAF",
129
+ // fontSize: "12px",
130
+ // textAlign: "center",
131
+ // lineHeight: 2,
132
+ // width: "fit-content",
133
+ // left: "50%",
134
+ // position: "relative",
135
+ // margin: 0,
136
+ // flexGrow: 1,
137
+ // height: 0,
138
+ // transform: "translate(-50%, 0%)",
139
+ // },
140
+ // },
141
+ // },
142
+ // {
143
+ // type: "Control",
144
+ // scope: "#/properties/FooterBackIcon",
145
+ // options: {
146
+ // widget: "Box",
147
+ // },
148
+ // config: {
149
+ // main: {
150
+ // iconName: "PrevIcon",
151
+ // onClick: "backHandler",
152
+ // width: "fit-content",
153
+ // },
154
+ // style: {
155
+ // fill: theme?.palette?.primary?.main,
156
+ // width: 20,
157
+ // height: 0,
158
+ // // margin: 0,
159
+ // 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
+ // },
170
+ // },
171
+ // {
172
+ // type: "Control",
173
+ // scope: "#/properties/FooterBackHandlerText",
174
+ // options: {
175
+ // widget: "Box",
176
+ // },
177
+ // config: {
178
+ // main: {
179
+ // heading: "Previous Page",
180
+ // onClick: "backHandler",
181
+ // },
182
+ // style: {
183
+ // display: { xs: "none", sm: "flex" },
184
+ // textAlign: "left",
185
+ // lineHeight: 1,
186
+ // height: 0,
187
+ // width: "fit-content",
188
+ // color: theme?.palette?.primary?.main,
189
+ // fontSize: "14px",
190
+ // cursor: "pointer",
191
+ // marginLeft: "2px",
192
+
193
+ // top: 3,
194
+ // right: "12px",
195
+ // position: "absolute",
196
+ // ":hover": {
197
+ // color: theme?.palette?.primary?.dark,
198
+ // },
199
+ // marginRight: "4px",
200
+ // },
201
+ // },
202
+ // },
203
+ // ],
204
+ // }
100
205
  {
101
206
  type: "HorizontalLayout",
102
207
  config: {
103
208
  main: {
104
- direction: 'row'
209
+ direction: "row",
105
210
  },
106
211
  style: {
107
212
  flexDirection: "row",
108
213
  position: "absolute",
109
214
  bottom: 0,
110
- marginBottom: '-8px',
111
- height: 'fit-content',
112
- overflow: 'hidden',
215
+ height: "fit-content",
216
+ overflow: "hidden",
113
217
  zIndex: 1000,
114
- width: 'inherit'
115
- }
218
+ width: "inherit",
219
+ },
116
220
  },
117
221
  elements: [
118
222
  {
119
-
120
223
  type: "Control",
121
224
  scope: "#/properties/FooterText",
122
225
  options: {
@@ -124,84 +227,85 @@ export default (funcParams: funcParamsProps) => {
124
227
  },
125
228
  config: {
126
229
  main: {
127
- heading: "Copywriter@ACT21.IO"
230
+ heading: "Copywriter@ACT21.IO",
128
231
  },
129
232
  style: {
130
- color: theme?.palette?.text.disabled || "#AFAFAF",
131
- fontSize: '12px',
132
- textAlign: 'center',
233
+ color: theme?.palette?.text?.disabled || "#AFAFAF",
234
+ fontSize: "11px",
235
+ textAlign: "center",
133
236
  lineHeight: 2,
134
- width: 'fit-content',
135
- left: '50%',
136
- position: 'relative',
237
+ width: "fit-content",
238
+ left: "50%",
239
+ position: "relative",
137
240
  margin: 0,
138
241
  flexGrow: 1,
139
242
  height: 0,
140
- transform: "translate(-50%,0%)"
141
- }
243
+ transform: "translate(-50%, 0%)",
244
+ },
142
245
  },
143
246
  },
144
247
  {
145
248
  type: "Control",
146
- scope: "#/properties/backIcon",
249
+ scope: "#/properties/FooterBackIcon",
147
250
  options: {
148
251
  widget: "Box",
149
252
  },
150
253
  config: {
151
254
  main: {
152
- iconName: 'PrevIcon',
255
+ iconName: "PrevIcon",
153
256
  onClick: "backHandler",
154
- width: 'fit-content',
257
+ width: "fit-content",
155
258
  },
156
259
  style: {
157
- fill: theme.palette.primary.main,
260
+ fill: theme?.palette?.primary?.main,
158
261
  width: 20,
159
262
  height: 0,
160
- margin: 0,
263
+ // margin: 0,
161
264
  top: 0,
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
- }
265
+ right: { xs: "12px", sm: "84px" },
266
+ position: "absolute",
267
+ fontSize: "12px",
268
+ cursor: "pointer",
269
+ ":hover": {
270
+ fill: theme?.palette?.primary?.dark,
271
+ },
272
+ marginRight: "20px",
273
+ },
274
+ },
171
275
  },
172
276
  {
173
277
  type: "Control",
174
- scope: "#/properties/text",
175
-
278
+ scope: "#/properties/FooterBackHandlerText",
176
279
  options: {
177
280
  widget: "Box",
178
281
  },
179
282
  config: {
180
283
  main: {
181
284
  heading: "Previous Page",
182
- onClick: "backHandler"
285
+ onClick: "backHandler",
183
286
  },
184
287
  style: {
185
- display: {xs: 'none', sm: "flex"},
186
- textAlign: 'left',
288
+ display: { xs: "none", sm: "flex" },
289
+ textAlign: "left",
187
290
  lineHeight: 1,
188
291
  height: 0,
189
- width: 'fit-content',
190
- color: theme.palette.primary.main,
292
+ width: "fit-content",
293
+ color: theme?.palette?.primary?.main,
191
294
  fontSize: "12px",
192
- cursor: 'pointer',
193
- marginLeft: '2px',
194
- marginRight: 0,
295
+ cursor: "pointer",
296
+ marginLeft: "2px",
297
+
195
298
  top: 3,
196
- right: '12px',
197
- position: 'absolute',
198
- ':hover': {
199
- color: theme.palette.primary.dark,
200
- }
201
- }
299
+ right: "12px",
300
+ position: "absolute",
301
+ ":hover": {
302
+ color: theme?.palette?.primary?.dark,
303
+ },
304
+ marginRight: "4px",
305
+ },
202
306
  },
203
307
  },
204
- ]
308
+ ],
205
309
  }
206
310
  );
207
311
  const schema = pageData?.schema ?? { type: "object", properties: {} };