impaktapps-ui-builder 0.0.100 → 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.
- package/dist/impaktapps-ui-builder.es.js +1908 -1475
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +17 -17
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +94 -23
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +55 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +52 -22
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -301
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +50 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +3 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +8 -2
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -0
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +5 -0
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -1
- package/package.json +5 -1
- package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +7 -3
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +7 -2
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +18 -14
- package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +18 -13
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -2
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +22 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +4 -15
- package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +16 -4
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +11 -0
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +17 -10
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +103 -46
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +44 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +13 -28
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -366
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +45 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +6 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +424 -202
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +4 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +479 -167
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +339 -111
- package/src/impaktapps-ui-builder/builder/services/component.ts +94 -8
- package/src/impaktapps-ui-builder/builder/services/event.ts +19 -4
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +20 -2
- package/src/impaktapps-ui-builder/builder/services/utils.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/events.ts +23 -19
- package/src/impaktapps-ui-builder/runtime/services/service.ts +108 -3
|
@@ -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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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,
|
|
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"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
...pre
|
|
154
|
-
...pre.properties
|
|
155
|
-
|
|
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
163
|
else if (eventConfig.type === "MultipleSelect" && handlerResponse?.data) {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
...pre
|
|
166
|
-
...pre.properties
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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,6 +97,111 @@ 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: {
|
|
@@ -126,7 +231,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
126
231
|
},
|
|
127
232
|
style: {
|
|
128
233
|
color: theme?.palette?.text?.disabled || "#AFAFAF",
|
|
129
|
-
fontSize: "
|
|
234
|
+
fontSize: "11px",
|
|
130
235
|
textAlign: "center",
|
|
131
236
|
lineHeight: 2,
|
|
132
237
|
width: "fit-content",
|
|
@@ -164,7 +269,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
164
269
|
":hover": {
|
|
165
270
|
fill: theme?.palette?.primary?.dark,
|
|
166
271
|
},
|
|
167
|
-
marginRight: "
|
|
272
|
+
marginRight: "20px",
|
|
168
273
|
},
|
|
169
274
|
},
|
|
170
275
|
},
|
|
@@ -186,7 +291,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
186
291
|
height: 0,
|
|
187
292
|
width: "fit-content",
|
|
188
293
|
color: theme?.palette?.primary?.main,
|
|
189
|
-
fontSize: "
|
|
294
|
+
fontSize: "12px",
|
|
190
295
|
cursor: "pointer",
|
|
191
296
|
marginLeft: "2px",
|
|
192
297
|
|