impaktapps-ui-builder 1.0.61 → 1.0.62
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 +40 -111
- 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 +6 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +20 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +16 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +3 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -107
package/package.json
CHANGED
|
@@ -10,6 +10,9 @@ 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
|
+
}
|
|
13
16
|
return dateInputField;
|
|
14
17
|
}
|
|
15
18
|
export const buildDateTime = (config:any,componentScope:string)=>{
|
|
@@ -20,5 +23,8 @@ export const buildDateTime = (config:any,componentScope:string)=>{
|
|
|
20
23
|
if(config.layout){
|
|
21
24
|
dateTimeInputField.config.layout = createLayoutFormat(config.layout)
|
|
22
25
|
}
|
|
26
|
+
if (config.variant) {
|
|
27
|
+
dateTimeInputField.config.main.variant = config.variant;
|
|
28
|
+
}
|
|
23
29
|
return dateTimeInputField;
|
|
24
30
|
}
|
|
@@ -514,6 +514,26 @@ 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;
|
|
517
537
|
case "Thought":
|
|
518
538
|
uiSchema.elements = [
|
|
519
539
|
getTextArea("thought", "Today's thought", false),
|
|
@@ -50,11 +50,26 @@ 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
|
+
},
|
|
53
68
|
{
|
|
54
69
|
type: "Control",
|
|
55
70
|
scope: "#/properties/EmptyBox",
|
|
56
71
|
config: {
|
|
57
|
-
layout: { xs: 0, sm:
|
|
72
|
+
layout: { xs: 0, sm: 6, md: 0, lg: 3 },
|
|
58
73
|
},
|
|
59
74
|
options: {
|
|
60
75
|
widget: "EmptyBox",
|
|
@@ -39,7 +39,9 @@ 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"]
|
|
42
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
43
|
+
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
44
|
+
DateTime: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
export function refreshPage(type: string, store: any) {
|
|
@@ -80,116 +80,10 @@ 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: true }
|
|
83
|
+
detail: { pageName: config.label, hasBackIcon: config.hasBackIcon === "NO" ? false : 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
|
-
);
|
|
193
87
|
const schema = pageData?.schema ?? { type: "object", properties: {} };
|
|
194
88
|
eventGroups = extractEvents(config);
|
|
195
89
|
executeEventsParameters = {
|