impaktapps-ui-builder 1.0.62 → 1.0.621
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 +112 -41
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +12 -12
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +0 -20
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +1 -16
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -3
- package/src/impaktapps-ui-builder/runtime/services/service.ts +107 -1
package/package.json
CHANGED
|
@@ -10,9 +10,6 @@ export const buildDate = (config:any,componentScope:string)=> {
|
|
|
10
10
|
if(config.layout){
|
|
11
11
|
dateInputField.config.layout = createLayoutFormat(config.layout)
|
|
12
12
|
}
|
|
13
|
-
if (config.variant) {
|
|
14
|
-
dateInputField.config.main.variant = config.variant;
|
|
15
|
-
}
|
|
16
13
|
return dateInputField;
|
|
17
14
|
}
|
|
18
15
|
export const buildDateTime = (config:any,componentScope:string)=>{
|
|
@@ -23,8 +20,5 @@ export const buildDateTime = (config:any,componentScope:string)=>{
|
|
|
23
20
|
if(config.layout){
|
|
24
21
|
dateTimeInputField.config.layout = createLayoutFormat(config.layout)
|
|
25
22
|
}
|
|
26
|
-
if (config.variant) {
|
|
27
|
-
dateTimeInputField.config.main.variant = config.variant;
|
|
28
|
-
}
|
|
29
23
|
return dateTimeInputField;
|
|
30
24
|
}
|
|
@@ -37,7 +37,7 @@ export const buildPopUp = (config,componentScope) =>{
|
|
|
37
37
|
popup.config.layout = createLayoutFormat(config.layout, config.type)
|
|
38
38
|
}
|
|
39
39
|
if (config.style) {
|
|
40
|
-
|
|
40
|
+
popup.config.style = JSON.parse(config.style)
|
|
41
41
|
}
|
|
42
42
|
return popup;
|
|
43
43
|
}
|
|
@@ -514,26 +514,6 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
514
514
|
emptyBox("MultipleSelectEmpty2")
|
|
515
515
|
]
|
|
516
516
|
break;
|
|
517
|
-
case "Date":
|
|
518
|
-
uiSchema.elements = [
|
|
519
|
-
getSelectField("variant", "Variant", [
|
|
520
|
-
{ label: "Outlined", value: "outlined" },
|
|
521
|
-
{ label: "Filled", value: "filled" },
|
|
522
|
-
{ label: "Standard", value: "standard" },
|
|
523
|
-
]),
|
|
524
|
-
emptyBox("DateEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
525
|
-
]
|
|
526
|
-
break;
|
|
527
|
-
case "DateTime":
|
|
528
|
-
uiSchema.elements = [
|
|
529
|
-
getSelectField("variant", "Variant", [
|
|
530
|
-
{ label: "Outlined", value: "outlined" },
|
|
531
|
-
{ label: "Filled", value: "filled" },
|
|
532
|
-
{ label: "Standard", value: "standard" },
|
|
533
|
-
]),
|
|
534
|
-
emptyBox("DateTimeEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
535
|
-
]
|
|
536
|
-
break;
|
|
537
517
|
case "Thought":
|
|
538
518
|
uiSchema.elements = [
|
|
539
519
|
getTextArea("thought", "Today's thought", false),
|
|
@@ -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:
|
|
57
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 },
|
|
73
58
|
},
|
|
74
59
|
options: {
|
|
75
60
|
widget: "EmptyBox",
|
|
@@ -39,9 +39,7 @@ const sectionLabels = {
|
|
|
39
39
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
40
40
|
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
41
41
|
ColumnGroup: ["Core", "Components"],
|
|
42
|
-
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
43
|
-
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
44
|
-
DateTime: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
42
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function refreshPage(type: string, store: any) {
|
|
@@ -80,10 +80,116 @@ export default (funcParams: funcParamsProps) => {
|
|
|
80
80
|
const config = pageData?.config;
|
|
81
81
|
const uiSchema = pageData?.uiSchema;
|
|
82
82
|
const event = new CustomEvent('pageNameChanged', {
|
|
83
|
-
detail: { pageName: config.label, hasBackIcon:
|
|
83
|
+
detail: { pageName: config.label, hasBackIcon: true }
|
|
84
84
|
});
|
|
85
85
|
window.dispatchEvent(event)
|
|
86
86
|
const theme = funcParams?.store?.theme?.myTheme;
|
|
87
|
+
uiSchema.elements.push(
|
|
88
|
+
{
|
|
89
|
+
type: "HorizontalLayout",
|
|
90
|
+
config: {
|
|
91
|
+
main: {
|
|
92
|
+
direction: "row",
|
|
93
|
+
},
|
|
94
|
+
style: {
|
|
95
|
+
flexDirection: "row",
|
|
96
|
+
position: "absolute",
|
|
97
|
+
bottom: 0,
|
|
98
|
+
height: "fit-content",
|
|
99
|
+
overflow: "hidden",
|
|
100
|
+
zIndex: 1000,
|
|
101
|
+
width: "inherit",
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
elements: [
|
|
105
|
+
{
|
|
106
|
+
type: "Control",
|
|
107
|
+
scope: "#/properties/FooterText",
|
|
108
|
+
options: {
|
|
109
|
+
widget: "Box",
|
|
110
|
+
},
|
|
111
|
+
config: {
|
|
112
|
+
main: {
|
|
113
|
+
heading: "Copywriter@ACT21.IO",
|
|
114
|
+
},
|
|
115
|
+
style: {
|
|
116
|
+
color: theme?.palette?.text?.disabled || "#AFAFAF",
|
|
117
|
+
fontSize: "11px",
|
|
118
|
+
textAlign: "center",
|
|
119
|
+
lineHeight: 2,
|
|
120
|
+
width: "fit-content",
|
|
121
|
+
left: "50%",
|
|
122
|
+
position: "relative",
|
|
123
|
+
margin: 0,
|
|
124
|
+
flexGrow: 1,
|
|
125
|
+
height: 0,
|
|
126
|
+
transform: "translate(-50%, 0%)",
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
type: "Control",
|
|
132
|
+
scope: "#/properties/FooterBackIcon",
|
|
133
|
+
options: {
|
|
134
|
+
widget: "Box",
|
|
135
|
+
},
|
|
136
|
+
config: {
|
|
137
|
+
main: {
|
|
138
|
+
iconName: "PrevIcon",
|
|
139
|
+
onClick: "backHandler",
|
|
140
|
+
width: "fit-content",
|
|
141
|
+
},
|
|
142
|
+
style: {
|
|
143
|
+
fill: theme?.palette?.primary?.main,
|
|
144
|
+
width: 20,
|
|
145
|
+
height: 0,
|
|
146
|
+
top: 0,
|
|
147
|
+
right: { xs: "12px", sm: "84px" },
|
|
148
|
+
position: "absolute",
|
|
149
|
+
fontSize: "12px",
|
|
150
|
+
cursor: "pointer",
|
|
151
|
+
":hover": {
|
|
152
|
+
fill: theme?.palette?.primary?.dark,
|
|
153
|
+
},
|
|
154
|
+
marginRight: "20px",
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
type: "Control",
|
|
160
|
+
scope: "#/properties/FooterBackHandlerText",
|
|
161
|
+
options: {
|
|
162
|
+
widget: "Box",
|
|
163
|
+
},
|
|
164
|
+
config: {
|
|
165
|
+
main: {
|
|
166
|
+
heading: "Previous Page",
|
|
167
|
+
onClick: "backHandler",
|
|
168
|
+
},
|
|
169
|
+
style: {
|
|
170
|
+
display: { xs: "none", sm: "flex" },
|
|
171
|
+
textAlign: "left",
|
|
172
|
+
lineHeight: 1,
|
|
173
|
+
height: 0,
|
|
174
|
+
width: "fit-content",
|
|
175
|
+
color: theme?.palette?.primary?.main,
|
|
176
|
+
fontSize: "12px",
|
|
177
|
+
cursor: "pointer",
|
|
178
|
+
marginLeft: "2px",
|
|
179
|
+
|
|
180
|
+
top: 3,
|
|
181
|
+
right: "12px",
|
|
182
|
+
position: "absolute",
|
|
183
|
+
":hover": {
|
|
184
|
+
color: theme?.palette?.primary?.dark,
|
|
185
|
+
},
|
|
186
|
+
marginRight: "4px",
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
}
|
|
192
|
+
);
|
|
87
193
|
const schema = pageData?.schema ?? { type: "object", properties: {} };
|
|
88
194
|
eventGroups = extractEvents(config);
|
|
89
195
|
executeEventsParameters = {
|