impaktapps-ui-builder 0.0.346 → 0.0.347
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 +19 -42
- 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/builder/services/pageMaster.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -15
- package/src/impaktapps-ui-builder/builder/services/event.ts +3 -16
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +19 -14
|
@@ -7337,20 +7337,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7337
7337
|
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7338
7338
|
const config = JSON.parse(localStorage.getItem("pageFormdata"));
|
|
7339
7339
|
const isSubmitted = await saveHandler(store2, service2, submitHandler, config);
|
|
7340
|
-
|
|
7341
|
-
localStorage.removeItem("pageFormdata");
|
|
7342
|
-
store2.navigate(`/PageMaster?id=${id}`);
|
|
7343
|
-
store2.setNotify({
|
|
7344
|
-
SuccessMessage: "Submit Successfully",
|
|
7345
|
-
Success: true
|
|
7346
|
-
});
|
|
7347
|
-
} else {
|
|
7348
|
-
store2.setValidation("ValidateAndShow");
|
|
7349
|
-
store2.setNotify({
|
|
7350
|
-
Fail: true,
|
|
7351
|
-
FailMessage: "Errors on Page"
|
|
7352
|
-
});
|
|
7353
|
-
}
|
|
7340
|
+
navigation(store2, isSubmitted, `/PageMaster?id=${id}`);
|
|
7354
7341
|
},
|
|
7355
7342
|
onChange: function() {
|
|
7356
7343
|
var _a, _b, _c, _d;
|
|
@@ -7440,6 +7427,22 @@ async function saveHandler(store2, service2, submitHandler, config) {
|
|
|
7440
7427
|
}
|
|
7441
7428
|
return isTrue;
|
|
7442
7429
|
}
|
|
7430
|
+
const navigation = (store2, isSubmitted, pageName) => {
|
|
7431
|
+
if (isSubmitted) {
|
|
7432
|
+
localStorage.removeItem("pageFormdata");
|
|
7433
|
+
store2.navigate(pageName || -1);
|
|
7434
|
+
store2.setNotify({
|
|
7435
|
+
SuccessMessage: "Submit Successfully",
|
|
7436
|
+
Success: true
|
|
7437
|
+
});
|
|
7438
|
+
} else {
|
|
7439
|
+
store2.setValidation("ValidateAndShow");
|
|
7440
|
+
store2.setNotify({
|
|
7441
|
+
Fail: true,
|
|
7442
|
+
FailMessage: "Errors on Page"
|
|
7443
|
+
});
|
|
7444
|
+
}
|
|
7445
|
+
};
|
|
7443
7446
|
var pageMaster = (funcParams) => {
|
|
7444
7447
|
const { store: store2, dynamicData: dynamicData2, config, submitHandler, service: service2 } = funcParams;
|
|
7445
7448
|
return {
|
|
@@ -7486,20 +7489,7 @@ var pageMaster = (funcParams) => {
|
|
|
7486
7489
|
saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7487
7490
|
const config2 = JSON.parse(localStorage.getItem("pageFormdata"));
|
|
7488
7491
|
const isSubmitted = await saveHandler(store2, service2, submitHandler, config2);
|
|
7489
|
-
|
|
7490
|
-
localStorage.removeItem("pageFormdata");
|
|
7491
|
-
store2.navigate("/PageMasterRecords");
|
|
7492
|
-
store2.setNotify({
|
|
7493
|
-
SuccessMessage: "Submit Successfully",
|
|
7494
|
-
Success: true
|
|
7495
|
-
});
|
|
7496
|
-
} else {
|
|
7497
|
-
store2.setValidation("ValidateAndShow");
|
|
7498
|
-
store2.setNotify({
|
|
7499
|
-
Fail: true,
|
|
7500
|
-
FailMessage: "Errors on Page"
|
|
7501
|
-
});
|
|
7502
|
-
}
|
|
7492
|
+
navigation(store2, isSubmitted);
|
|
7503
7493
|
},
|
|
7504
7494
|
Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
|
|
7505
7495
|
Delete_Components: Component(store2, dynamicData2, submitHandler, service2).deleteComponents,
|
|
@@ -8141,20 +8131,7 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8141
8131
|
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
8142
8132
|
const config = JSON.parse(localStorage.getItem("pageFormdata"));
|
|
8143
8133
|
const isSubmitted = await saveHandler(store2, service2, submitHandler, config);
|
|
8144
|
-
|
|
8145
|
-
localStorage.removeItem("pageFormdata");
|
|
8146
|
-
store2.navigate(`/PageMaster?id=${id}`);
|
|
8147
|
-
store2.setNotify({
|
|
8148
|
-
SuccessMessage: "Submit Successfully",
|
|
8149
|
-
Success: true
|
|
8150
|
-
});
|
|
8151
|
-
} else {
|
|
8152
|
-
store2.setValidation("ValidateAndShow");
|
|
8153
|
-
store2.setNotify({
|
|
8154
|
-
Fail: true,
|
|
8155
|
-
FailMessage: "Errors on Page"
|
|
8156
|
-
});
|
|
8157
|
-
}
|
|
8134
|
+
navigation(store2, isSubmitted, `/PageMaster?id=${id}`);
|
|
8158
8135
|
},
|
|
8159
8136
|
onChange: function() {
|
|
8160
8137
|
var _a, _b, _c;
|