impaktapps-ui-builder 0.0.412-f → 0.0.412-h
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 +12 -3
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +30 -14
- package/src/impaktapps-ui-builder/runtime/services/service.ts +3 -7
|
@@ -8541,10 +8541,14 @@ function getRefreshElements(eventConfig, eventGropus) {
|
|
|
8541
8541
|
console.log(result);
|
|
8542
8542
|
return result;
|
|
8543
8543
|
}
|
|
8544
|
-
function executeRefreshHandler(params2) {
|
|
8544
|
+
async function executeRefreshHandler(params2) {
|
|
8545
8545
|
const compToRefresh = getRefreshElements(params2.config, params2.eventGroups);
|
|
8546
|
-
return Promise.
|
|
8547
|
-
|
|
8546
|
+
return Promise.allSettled(compToRefresh.map((componentName) => {
|
|
8547
|
+
const eventConfigs = params2.eventGroups.onLoad[componentName];
|
|
8548
|
+
if (!eventConfigs) {
|
|
8549
|
+
return Promise.resolve();
|
|
8550
|
+
}
|
|
8551
|
+
return Promise.allSettled(eventConfigs.map((compEventConfig) => {
|
|
8548
8552
|
return executeEvents({ ...params2, config: compEventConfig, componentName });
|
|
8549
8553
|
}));
|
|
8550
8554
|
}));
|
|
@@ -8619,6 +8623,10 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
8619
8623
|
});
|
|
8620
8624
|
} else if (eventConfig.type === "page") {
|
|
8621
8625
|
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
8626
|
+
store2.newData = {
|
|
8627
|
+
...store2.newData,
|
|
8628
|
+
...handlerResponse == null ? void 0 : handlerResponse.data
|
|
8629
|
+
};
|
|
8622
8630
|
store2.setFormdata((pre) => {
|
|
8623
8631
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
8624
8632
|
});
|
|
@@ -8773,6 +8781,7 @@ var service = (funcParams) => {
|
|
|
8773
8781
|
setPage: async function() {
|
|
8774
8782
|
var _a;
|
|
8775
8783
|
funcParams.store.setFormdata({});
|
|
8784
|
+
funcParams.store.newData = {};
|
|
8776
8785
|
const pageBasicDetailString = localStorage.getItem("pagemasterMetaData");
|
|
8777
8786
|
if (pageBasicDetailString) {
|
|
8778
8787
|
pageData = JSON.parse(pageBasicDetailString);
|