impaktapps-ui-builder 0.0.400 → 0.0.402
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
|
@@ -86,8 +86,10 @@ async function executeInBuiltFunctionHandler(params: handlersProps) {
|
|
|
86
86
|
if (params.config.funcParametersCode) {
|
|
87
87
|
const makeFunc = eval(params.config.funcParametersCode)
|
|
88
88
|
parameter = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
89
|
+
params.serviceHolder[params.config.inBuiltFunctionType](parameter, params.service)
|
|
90
|
+
} else {
|
|
91
|
+
params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service)
|
|
89
92
|
}
|
|
90
|
-
params.serviceHolder[params.config.inBuiltFunctionType](parameter,params.service)
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
async function executeCustomHandler(params: handlersProps) {
|
|
@@ -138,7 +140,7 @@ async function mergeFormdata(handlerResponse: any, componentName: string, eventC
|
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
const buildBodyFormat = (body: any[], formData: any, userValue: any) => {
|
|
141
|
-
|
|
143
|
+
let finalBody = { ...userValue?.payload };
|
|
142
144
|
body.map((elem) => {
|
|
143
145
|
if (typeof elem?.value !== "string") {
|
|
144
146
|
finalBody[elem.key] = elem.value;
|
|
@@ -150,7 +152,12 @@ const buildBodyFormat = (body: any[], formData: any, userValue: any) => {
|
|
|
150
152
|
else if (elem?.value?.startsWith("$")) {
|
|
151
153
|
const finalpath = elem.value.substring(1);
|
|
152
154
|
finalBody[elem.key] = _.get(formData, finalpath);;
|
|
153
|
-
} else {
|
|
155
|
+
} else if (elem?.value === "*" && elem?.key === "*") {
|
|
156
|
+
finalBody = { ...finalBody, ...formData };
|
|
157
|
+
} else if (elem?.value === "*") {
|
|
158
|
+
finalBody[elem.key] = formData;
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
154
161
|
finalBody[elem.key] = elem.value;
|
|
155
162
|
}
|
|
156
163
|
}
|