impaktapps-ui-builder 0.0.345 → 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 +25 -51
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +5 -5
- 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 +4 -18
- package/src/impaktapps-ui-builder/builder/services/event.ts +5 -19
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +21 -17
|
@@ -7335,23 +7335,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7335
7335
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7336
7336
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
7337
7337
|
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7338
|
-
const config = localStorage.getItem("pageFormdata");
|
|
7339
|
-
const
|
|
7340
|
-
|
|
7341
|
-
if (isSubmitted) {
|
|
7342
|
-
localStorage.removeItem("pageFormdata");
|
|
7343
|
-
store2.navigate(`/PageMaster?id=${id}`);
|
|
7344
|
-
store2.setNotify({
|
|
7345
|
-
SuccessMessage: "Submit Successfully",
|
|
7346
|
-
Success: true
|
|
7347
|
-
});
|
|
7348
|
-
} else {
|
|
7349
|
-
store2.setValidation("ValidateAndShow");
|
|
7350
|
-
store2.setNotify({
|
|
7351
|
-
Fail: true,
|
|
7352
|
-
FailMessage: "Errors on Page"
|
|
7353
|
-
});
|
|
7354
|
-
}
|
|
7338
|
+
const config = JSON.parse(localStorage.getItem("pageFormdata"));
|
|
7339
|
+
const isSubmitted = await saveHandler(store2, service2, submitHandler, config);
|
|
7340
|
+
navigation(store2, isSubmitted, `/PageMaster?id=${id}`);
|
|
7355
7341
|
},
|
|
7356
7342
|
onChange: function() {
|
|
7357
7343
|
var _a, _b, _c, _d;
|
|
@@ -7441,6 +7427,22 @@ async function saveHandler(store2, service2, submitHandler, config) {
|
|
|
7441
7427
|
}
|
|
7442
7428
|
return isTrue;
|
|
7443
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
|
+
};
|
|
7444
7446
|
var pageMaster = (funcParams) => {
|
|
7445
7447
|
const { store: store2, dynamicData: dynamicData2, config, submitHandler, service: service2 } = funcParams;
|
|
7446
7448
|
return {
|
|
@@ -7485,23 +7487,9 @@ var pageMaster = (funcParams) => {
|
|
|
7485
7487
|
},
|
|
7486
7488
|
savePageHandler: async () => {
|
|
7487
7489
|
saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7488
|
-
const config2 = localStorage.getItem("pageFormdata");
|
|
7489
|
-
const
|
|
7490
|
-
|
|
7491
|
-
if (isSubmitted) {
|
|
7492
|
-
localStorage.removeItem("pageFormdata");
|
|
7493
|
-
store2.navigate("/PageMasterRecords");
|
|
7494
|
-
store2.setNotify({
|
|
7495
|
-
SuccessMessage: "Submit Successfully",
|
|
7496
|
-
Success: true
|
|
7497
|
-
});
|
|
7498
|
-
} else {
|
|
7499
|
-
store2.setValidation("ValidateAndShow");
|
|
7500
|
-
store2.setNotify({
|
|
7501
|
-
Fail: true,
|
|
7502
|
-
FailMessage: "Errors on Page"
|
|
7503
|
-
});
|
|
7504
|
-
}
|
|
7490
|
+
const config2 = JSON.parse(localStorage.getItem("pageFormdata"));
|
|
7491
|
+
const isSubmitted = await saveHandler(store2, service2, submitHandler, config2);
|
|
7492
|
+
navigation(store2, isSubmitted);
|
|
7505
7493
|
},
|
|
7506
7494
|
Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
|
|
7507
7495
|
Delete_Components: Component(store2, dynamicData2, submitHandler, service2).deleteComponents,
|
|
@@ -8141,23 +8129,9 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8141
8129
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8142
8130
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8143
8131
|
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
8144
|
-
const config = localStorage.getItem("pageFormdata");
|
|
8145
|
-
const
|
|
8146
|
-
|
|
8147
|
-
if (isSubmitted) {
|
|
8148
|
-
localStorage.removeItem("pageFormdata");
|
|
8149
|
-
store2.navigate(`/PageMaster?id=${id}`);
|
|
8150
|
-
store2.setNotify({
|
|
8151
|
-
SuccessMessage: "Submit Successfully",
|
|
8152
|
-
Success: true
|
|
8153
|
-
});
|
|
8154
|
-
} else {
|
|
8155
|
-
store2.setValidation("ValidateAndShow");
|
|
8156
|
-
store2.setNotify({
|
|
8157
|
-
Fail: true,
|
|
8158
|
-
FailMessage: "Errors on Page"
|
|
8159
|
-
});
|
|
8160
|
-
}
|
|
8132
|
+
const config = JSON.parse(localStorage.getItem("pageFormdata"));
|
|
8133
|
+
const isSubmitted = await saveHandler(store2, service2, submitHandler, config);
|
|
8134
|
+
navigation(store2, isSubmitted, `/PageMaster?id=${id}`);
|
|
8161
8135
|
},
|
|
8162
8136
|
onChange: function() {
|
|
8163
8137
|
var _a, _b, _c;
|