impaktapps-ui-builder 1.0.107 → 1.0.108
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 +15 -11
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +3 -3
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +3 -3
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +14 -14
- package/src/impaktapps-ui-builder/runtime/services/events.ts +7 -3
- package/src/impaktapps-ui-builder/runtime/services/service.ts +11 -10
|
@@ -8825,7 +8825,7 @@ var pageMaster = (funcParams) => {
|
|
|
8825
8825
|
return formData;
|
|
8826
8826
|
}
|
|
8827
8827
|
saveFormdataInSessionStorage(config2);
|
|
8828
|
-
return config2;
|
|
8828
|
+
return { ...config2, type: "page" };
|
|
8829
8829
|
},
|
|
8830
8830
|
getUiSchema: function() {
|
|
8831
8831
|
const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
|
|
@@ -10135,12 +10135,15 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, form
|
|
|
10135
10135
|
});
|
|
10136
10136
|
}
|
|
10137
10137
|
} else if (eventConfig.type === "page") {
|
|
10138
|
-
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
10138
|
+
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data) && lodash.exports.isObject(handlerResponse.data))) {
|
|
10139
10139
|
store2.newData = {
|
|
10140
10140
|
...store2.newData,
|
|
10141
10141
|
...handlerResponse == null ? void 0 : handlerResponse.data
|
|
10142
10142
|
};
|
|
10143
|
-
|
|
10143
|
+
const keys = Object.keys(handlerResponse.data);
|
|
10144
|
+
keys.map((e) => {
|
|
10145
|
+
formDataHolder[e] = { ...formDataHolder, [e]: handlerResponse.data[e] };
|
|
10146
|
+
});
|
|
10144
10147
|
}
|
|
10145
10148
|
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10146
10149
|
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
@@ -10465,7 +10468,7 @@ var service = (funcParams) => {
|
|
|
10465
10468
|
onBack: async function(functionParameters) {
|
|
10466
10469
|
var _a, _b;
|
|
10467
10470
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10468
|
-
|
|
10471
|
+
this.callHandler("onBack", functionParameters);
|
|
10469
10472
|
if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10470
10473
|
functionParameters == null ? void 0 : functionParameters.handleBack();
|
|
10471
10474
|
}
|
|
@@ -10473,7 +10476,7 @@ var service = (funcParams) => {
|
|
|
10473
10476
|
onNext: async function(functionParameters) {
|
|
10474
10477
|
var _a, _b;
|
|
10475
10478
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10476
|
-
|
|
10479
|
+
this.callHandler("onNext", functionParameters);
|
|
10477
10480
|
if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10478
10481
|
functionParameters == null ? void 0 : functionParameters.handleNext();
|
|
10479
10482
|
}
|
|
@@ -10481,25 +10484,26 @@ var service = (funcParams) => {
|
|
|
10481
10484
|
onReset: async function(functionParameters) {
|
|
10482
10485
|
var _a, _b;
|
|
10483
10486
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10484
|
-
|
|
10487
|
+
this.callHandler("onReset", functionParameters);
|
|
10485
10488
|
if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10486
10489
|
functionParameters == null ? void 0 : functionParameters.handleReset();
|
|
10487
10490
|
}
|
|
10488
10491
|
},
|
|
10489
|
-
callHandler:
|
|
10492
|
+
callHandler: function(eventType, functionParameters) {
|
|
10490
10493
|
var _a, _b, _c;
|
|
10491
10494
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
|
|
10492
10495
|
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
|
|
10493
|
-
|
|
10496
|
+
(_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
|
|
10494
10497
|
executeEventsParameters.store.functionParameters = functionParameters;
|
|
10495
10498
|
if (eventConfig.Handler === "refresh") {
|
|
10496
|
-
|
|
10499
|
+
executeEvents({
|
|
10497
10500
|
...executeEventsParameters,
|
|
10498
10501
|
config: eventConfig,
|
|
10499
10502
|
componentName: path,
|
|
10500
10503
|
formDataHolder
|
|
10504
|
+
}).then((res) => {
|
|
10505
|
+
funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
|
|
10501
10506
|
});
|
|
10502
|
-
funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
|
|
10503
10507
|
} else {
|
|
10504
10508
|
executeEvents({
|
|
10505
10509
|
...executeEventsParameters,
|
|
@@ -10507,7 +10511,7 @@ var service = (funcParams) => {
|
|
|
10507
10511
|
componentName: path
|
|
10508
10512
|
});
|
|
10509
10513
|
}
|
|
10510
|
-
})
|
|
10514
|
+
});
|
|
10511
10515
|
}
|
|
10512
10516
|
},
|
|
10513
10517
|
downloadFile: downloadFile$1,
|