impaktapps-ui-builder 1.0.60-alpha.1 → 1.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.60-alpha.1",
3
+ "version": "1.0.60",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -50,26 +50,11 @@ export const PageMasterUiSchema: any = (theme) => {
50
50
  },
51
51
  },
52
52
  },
53
- {
54
- type: "Control",
55
- scope: "#/properties/hasBackIcon",
56
-
57
- options: {
58
- widget: "RadioInputField",
59
- },
60
- config: {
61
- layout: { xs: 12, sm: 6, md: 4, lg: 3 },
62
- main: {
63
- label: "Back Icon",
64
- options: [{label: "Yes",const: "YES"}, {label: "No",const: "NO"}],
65
- },
66
- },
67
- },
68
53
  {
69
54
  type: "Control",
70
55
  scope: "#/properties/EmptyBox",
71
56
  config: {
72
- layout: { xs: 0, sm: 6, md: 0, lg: 3 },
57
+ layout: { xs: 0, sm: 0, md: 4, lg: 6 },
73
58
  },
74
59
  options: {
75
60
  widget: "EmptyBox",
@@ -83,10 +83,116 @@ export default (funcParams: funcParamsProps) => {
83
83
 
84
84
  const uiSchema = pageData?.uiSchema;
85
85
  const event = new CustomEvent('pageNameChanged', {
86
- detail: { pageName: config.label, hasBackIcon: config.hasBackIcon }
86
+ detail: { pageName: config.label, hasBackIcon: true }
87
87
  });
88
88
  window.dispatchEvent(event)
89
89
  const theme = funcParams?.store?.theme?.myTheme;
90
+ uiSchema.elements.push(
91
+ {
92
+ type: "HorizontalLayout",
93
+ config: {
94
+ main: {
95
+ direction: "row",
96
+ },
97
+ style: {
98
+ flexDirection: "row",
99
+ position: "absolute",
100
+ bottom: 0,
101
+ height: "fit-content",
102
+ overflow: "hidden",
103
+ zIndex: 1000,
104
+ width: "inherit",
105
+ },
106
+ },
107
+ elements: [
108
+ {
109
+ type: "Control",
110
+ scope: "#/properties/FooterText",
111
+ options: {
112
+ widget: "Box",
113
+ },
114
+ config: {
115
+ main: {
116
+ heading: "Copywriter@ACT21.IO",
117
+ },
118
+ style: {
119
+ color: theme?.palette?.text?.disabled || "#AFAFAF",
120
+ fontSize: "11px",
121
+ textAlign: "center",
122
+ lineHeight: 2,
123
+ width: "fit-content",
124
+ left: "50%",
125
+ position: "relative",
126
+ margin: 0,
127
+ flexGrow: 1,
128
+ height: 0,
129
+ transform: "translate(-50%, 0%)",
130
+ },
131
+ },
132
+ },
133
+ {
134
+ type: "Control",
135
+ scope: "#/properties/FooterBackIcon",
136
+ options: {
137
+ widget: "Box",
138
+ },
139
+ config: {
140
+ main: {
141
+ iconName: "PrevIcon",
142
+ onClick: "backHandler",
143
+ width: "fit-content",
144
+ },
145
+ style: {
146
+ fill: theme?.palette?.primary?.main,
147
+ width: 20,
148
+ height: 0,
149
+ top: 0,
150
+ right: { xs: "12px", sm: "84px" },
151
+ position: "absolute",
152
+ fontSize: "12px",
153
+ cursor: "pointer",
154
+ ":hover": {
155
+ fill: theme?.palette?.primary?.dark,
156
+ },
157
+ marginRight: "20px",
158
+ },
159
+ },
160
+ },
161
+ {
162
+ type: "Control",
163
+ scope: "#/properties/FooterBackHandlerText",
164
+ options: {
165
+ widget: "Box",
166
+ },
167
+ config: {
168
+ main: {
169
+ heading: "Previous Page",
170
+ onClick: "backHandler",
171
+ },
172
+ style: {
173
+ display: { xs: "none", sm: "flex" },
174
+ textAlign: "left",
175
+ lineHeight: 1,
176
+ height: 0,
177
+ width: "fit-content",
178
+ color: theme?.palette?.primary?.main,
179
+ fontSize: "12px",
180
+ cursor: "pointer",
181
+ marginLeft: "2px",
182
+
183
+ top: 3,
184
+ right: "12px",
185
+ position: "absolute",
186
+ ":hover": {
187
+ color: theme?.palette?.primary?.dark,
188
+ },
189
+ marginRight: "4px",
190
+ },
191
+ },
192
+ },
193
+ ],
194
+ }
195
+ );
90
196
  const schema = pageData?.schema ?? { type: "object", properties: {} };
91
197
  eventGroups = extractEvents(config);
92
198
  executeEventsParameters = {