impaktapps-ui-builder 1.0.59 → 1.0.60-alpha.2
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 +41 -112
- 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/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +16 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +7 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +16 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +6 -108
|
@@ -5,6 +5,7 @@ interface funcParamsProps {
|
|
|
5
5
|
userValue: any;
|
|
6
6
|
pageDataProvider: any;
|
|
7
7
|
functionsProvider?: Record<string, any>;
|
|
8
|
+
setExternaldata?: any;
|
|
8
9
|
}
|
|
9
10
|
export declare const extractEvents: (eventConfig: any) => any;
|
|
10
11
|
declare const _default: (funcParams: funcParamsProps) => {
|
package/package.json
CHANGED
|
@@ -15,6 +15,9 @@ export const buildMultiSelect = (config, componentScope) => {
|
|
|
15
15
|
if (config.value) {
|
|
16
16
|
multipleSelect.config.main.options = config.value;
|
|
17
17
|
}
|
|
18
|
+
if (config.variant) {
|
|
19
|
+
multipleSelect.config.main.variant = config.variant;
|
|
20
|
+
}
|
|
18
21
|
if (config.lazyLoading) {
|
|
19
22
|
multipleSelect.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
|
|
20
23
|
}
|
|
@@ -14,6 +14,9 @@ export const buildSelect = (config: any, componentScope: string) => {
|
|
|
14
14
|
if (config.lazyLoading) {
|
|
15
15
|
selectInputField.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
|
|
16
16
|
}
|
|
17
|
+
if (config.variant) {
|
|
18
|
+
selectInputField.config.main.variant = config.variant;
|
|
19
|
+
}
|
|
17
20
|
if (config.layout) {
|
|
18
21
|
selectInputField.config.layout = createLayoutFormat(config.layout)
|
|
19
22
|
}
|
|
@@ -20,6 +20,9 @@ export const buildTextField = (config: any, componentScope: string) => {
|
|
|
20
20
|
if (config.placeholder) {
|
|
21
21
|
inputField.config.main.placeholder = config.placeholder;
|
|
22
22
|
}
|
|
23
|
+
if (config.variant) {
|
|
24
|
+
inputField.config.main.variant = config.variant;
|
|
25
|
+
}
|
|
23
26
|
if (config.layout) {
|
|
24
27
|
inputField.config.layout = createLayoutFormat(config.layout)
|
|
25
28
|
}
|
|
@@ -329,7 +329,12 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
329
329
|
uiSchema.elements = [
|
|
330
330
|
getInputField("placeholder", "Placeholder"),
|
|
331
331
|
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
332
|
-
|
|
332
|
+
getSelectField("variant", "Variant", [
|
|
333
|
+
{ label: "Outlined", value: "outlined" },
|
|
334
|
+
{ label: "Filled", value: "filled" },
|
|
335
|
+
{ label: "Standard", value: "standard" },
|
|
336
|
+
]),
|
|
337
|
+
emptyBox("TextEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 }),
|
|
333
338
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
|
|
334
339
|
getInputField("keyName", "Event Key Name"),
|
|
335
340
|
]
|
|
@@ -489,12 +494,22 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
489
494
|
uiSchema.elements = [
|
|
490
495
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
491
496
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
497
|
+
getSelectField("variant", "Variant", [
|
|
498
|
+
{ label: "Outlined", value: "outlined" },
|
|
499
|
+
{ label: "Filled", value: "filled" },
|
|
500
|
+
{ label: "Standard", value: "standard" },
|
|
501
|
+
]),
|
|
492
502
|
emptyBox("SelectEmpty")
|
|
493
503
|
]
|
|
494
504
|
break;
|
|
495
505
|
case "MultipleSelect":
|
|
496
506
|
uiSchema.elements = [
|
|
497
507
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
508
|
+
getSelectField("variant", "Variant", [
|
|
509
|
+
{ label: "Outlined", value: "outlined" },
|
|
510
|
+
{ label: "Filled", value: "filled" },
|
|
511
|
+
{ label: "Standard", value: "standard" },
|
|
512
|
+
]),
|
|
498
513
|
emptyBox("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
|
|
499
514
|
emptyBox("MultipleSelectEmpty2")
|
|
500
515
|
]
|
|
@@ -58,6 +58,13 @@ export const ComponentSchema: any = {
|
|
|
58
58
|
{ title: "Amount Column", const: "amount" },
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
|
+
variant: {
|
|
62
|
+
oneOf: [
|
|
63
|
+
{ title: "Outlined", const: "outlined" },
|
|
64
|
+
{ title: "Filled", const: "filled" },
|
|
65
|
+
{ title: "Standard", const: "standard" },
|
|
66
|
+
]
|
|
67
|
+
},
|
|
61
68
|
orientation: {
|
|
62
69
|
oneOf: [
|
|
63
70
|
{ title: "Horizontal", const: "horizontal" },
|
|
@@ -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",
|
|
@@ -19,7 +19,8 @@ interface funcParamsProps {
|
|
|
19
19
|
service: any,
|
|
20
20
|
userValue: any,
|
|
21
21
|
pageDataProvider: any,
|
|
22
|
-
functionsProvider?: Record<string, any
|
|
22
|
+
functionsProvider?: Record<string, any>,
|
|
23
|
+
setExternaldata?: any
|
|
23
24
|
}
|
|
24
25
|
let pageData: any = false;
|
|
25
26
|
export const extractEvents = (eventConfig: any) => {
|
|
@@ -77,118 +78,15 @@ export default (funcParams: funcParamsProps) => {
|
|
|
77
78
|
eventGroups = {};
|
|
78
79
|
pageData = await funcParams.pageDataProvider();
|
|
79
80
|
const config = pageData?.config;
|
|
81
|
+
|
|
82
|
+
funcParams?.setExternaldata();
|
|
83
|
+
|
|
80
84
|
const uiSchema = pageData?.uiSchema;
|
|
81
85
|
const event = new CustomEvent('pageNameChanged', {
|
|
82
|
-
detail: { pageName: config.label, hasBackIcon: true }
|
|
86
|
+
detail: { pageName: config.label, hasBackIcon: config.hasBackIcon || true }
|
|
83
87
|
});
|
|
84
88
|
window.dispatchEvent(event)
|
|
85
89
|
const theme = funcParams?.store?.theme?.myTheme;
|
|
86
|
-
uiSchema.elements.push(
|
|
87
|
-
{
|
|
88
|
-
type: "HorizontalLayout",
|
|
89
|
-
config: {
|
|
90
|
-
main: {
|
|
91
|
-
direction: "row",
|
|
92
|
-
},
|
|
93
|
-
style: {
|
|
94
|
-
flexDirection: "row",
|
|
95
|
-
position: "absolute",
|
|
96
|
-
bottom: 0,
|
|
97
|
-
height: "fit-content",
|
|
98
|
-
overflow: "hidden",
|
|
99
|
-
zIndex: 1000,
|
|
100
|
-
width: "inherit",
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
elements: [
|
|
104
|
-
{
|
|
105
|
-
type: "Control",
|
|
106
|
-
scope: "#/properties/FooterText",
|
|
107
|
-
options: {
|
|
108
|
-
widget: "Box",
|
|
109
|
-
},
|
|
110
|
-
config: {
|
|
111
|
-
main: {
|
|
112
|
-
heading: "Copywriter@ACT21.IO",
|
|
113
|
-
},
|
|
114
|
-
style: {
|
|
115
|
-
color: theme?.palette?.text?.disabled || "#AFAFAF",
|
|
116
|
-
fontSize: "11px",
|
|
117
|
-
textAlign: "center",
|
|
118
|
-
lineHeight: 2,
|
|
119
|
-
width: "fit-content",
|
|
120
|
-
left: "50%",
|
|
121
|
-
position: "relative",
|
|
122
|
-
margin: 0,
|
|
123
|
-
flexGrow: 1,
|
|
124
|
-
height: 0,
|
|
125
|
-
transform: "translate(-50%, 0%)",
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
type: "Control",
|
|
131
|
-
scope: "#/properties/FooterBackIcon",
|
|
132
|
-
options: {
|
|
133
|
-
widget: "Box",
|
|
134
|
-
},
|
|
135
|
-
config: {
|
|
136
|
-
main: {
|
|
137
|
-
iconName: "PrevIcon",
|
|
138
|
-
onClick: "backHandler",
|
|
139
|
-
width: "fit-content",
|
|
140
|
-
},
|
|
141
|
-
style: {
|
|
142
|
-
fill: theme?.palette?.primary?.main,
|
|
143
|
-
width: 20,
|
|
144
|
-
height: 0,
|
|
145
|
-
top: 0,
|
|
146
|
-
right: { xs: "12px", sm: "84px" },
|
|
147
|
-
position: "absolute",
|
|
148
|
-
fontSize: "12px",
|
|
149
|
-
cursor: "pointer",
|
|
150
|
-
":hover": {
|
|
151
|
-
fill: theme?.palette?.primary?.dark,
|
|
152
|
-
},
|
|
153
|
-
marginRight: "20px",
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
type: "Control",
|
|
159
|
-
scope: "#/properties/FooterBackHandlerText",
|
|
160
|
-
options: {
|
|
161
|
-
widget: "Box",
|
|
162
|
-
},
|
|
163
|
-
config: {
|
|
164
|
-
main: {
|
|
165
|
-
heading: "Previous Page",
|
|
166
|
-
onClick: "backHandler",
|
|
167
|
-
},
|
|
168
|
-
style: {
|
|
169
|
-
display: { xs: "none", sm: "flex" },
|
|
170
|
-
textAlign: "left",
|
|
171
|
-
lineHeight: 1,
|
|
172
|
-
height: 0,
|
|
173
|
-
width: "fit-content",
|
|
174
|
-
color: theme?.palette?.primary?.main,
|
|
175
|
-
fontSize: "12px",
|
|
176
|
-
cursor: "pointer",
|
|
177
|
-
marginLeft: "2px",
|
|
178
|
-
|
|
179
|
-
top: 3,
|
|
180
|
-
right: "12px",
|
|
181
|
-
position: "absolute",
|
|
182
|
-
":hover": {
|
|
183
|
-
color: theme?.palette?.primary?.dark,
|
|
184
|
-
},
|
|
185
|
-
marginRight: "4px",
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
],
|
|
190
|
-
}
|
|
191
|
-
);
|
|
192
90
|
const schema = pageData?.schema ?? { type: "object", properties: {} };
|
|
193
91
|
eventGroups = extractEvents(config);
|
|
194
92
|
executeEventsParameters = {
|