impaktapps-ui-builder 0.0.399 → 0.0.401
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 +9 -3
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +10 -3
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -1
|
@@ -8444,8 +8444,10 @@ async function executeInBuiltFunctionHandler(params) {
|
|
|
8444
8444
|
if (params.config.funcParametersCode) {
|
|
8445
8445
|
const makeFunc = eval(params.config.funcParametersCode);
|
|
8446
8446
|
parameter = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
8447
|
+
params.serviceHolder[params.config.inBuiltFunctionType](parameter, params.service);
|
|
8448
|
+
} else {
|
|
8449
|
+
params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
8447
8450
|
}
|
|
8448
|
-
params.serviceHolder[params.config.inBuiltFunctionType](parameter, params.service);
|
|
8449
8451
|
}
|
|
8450
8452
|
async function executeCustomHandler(params) {
|
|
8451
8453
|
const makeFunc = eval(params.config.eventCode);
|
|
@@ -8501,7 +8503,7 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
8501
8503
|
}
|
|
8502
8504
|
}
|
|
8503
8505
|
const buildBodyFormat = (body2, formData, userValue2) => {
|
|
8504
|
-
|
|
8506
|
+
let finalBody = { ...userValue2 == null ? void 0 : userValue2.payload };
|
|
8505
8507
|
body2.map((elem) => {
|
|
8506
8508
|
var _a, _b;
|
|
8507
8509
|
if (typeof (elem == null ? void 0 : elem.value) !== "string") {
|
|
@@ -8513,6 +8515,10 @@ const buildBodyFormat = (body2, formData, userValue2) => {
|
|
|
8513
8515
|
} else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$")) {
|
|
8514
8516
|
const finalpath = elem.value.substring(1);
|
|
8515
8517
|
finalBody[elem.key] = _.get(formData, finalpath);
|
|
8518
|
+
} else if ((elem == null ? void 0 : elem.value) === "*" && (elem == null ? void 0 : elem.key) === "*") {
|
|
8519
|
+
finalBody = { ...finalBody, ...formData };
|
|
8520
|
+
} else if ((elem == null ? void 0 : elem.value) === "*") {
|
|
8521
|
+
finalBody[elem.key] = formData;
|
|
8516
8522
|
} else {
|
|
8517
8523
|
finalBody[elem.key] = elem.value;
|
|
8518
8524
|
}
|
|
@@ -8633,7 +8639,7 @@ var service = (funcParams) => {
|
|
|
8633
8639
|
dynamicData: funcParams.dynamicData,
|
|
8634
8640
|
userValue: funcParams.userValue,
|
|
8635
8641
|
service: funcParams.service,
|
|
8636
|
-
serviceHolder: { downloadFile: downloadFile$1, download: doDownload },
|
|
8642
|
+
serviceHolder: { downloadFile: downloadFile$1, download: doDownload, ...funcParams.functionsProvider },
|
|
8637
8643
|
eventGroups,
|
|
8638
8644
|
functionsProvider: funcParams.functionsProvider
|
|
8639
8645
|
};
|