impaktapps-ui-builder 0.0.341 → 0.0.342

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.
@@ -7333,7 +7333,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7333
7333
  savePageHandler: async () => {
7334
7334
  var _a;
7335
7335
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
7336
- const isSubmitted = await saveHandler(store2, service2, submitHandler);
7336
+ saveFormdataInLocalStorage(store2.ctx.core.data);
7337
+ const config = localStorage.getItem("pageFormdata");
7338
+ const isSubmitted = await saveHandler(store2, service2, submitHandler, config);
7337
7339
  if (isSubmitted) {
7338
7340
  localStorage.removeItem("pageFormdata");
7339
7341
  store2.navigate(`/PageMaster?id=${id}`);
@@ -7425,11 +7427,11 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7425
7427
  }
7426
7428
  };
7427
7429
  };
7428
- async function saveHandler(store2, service2, submitHandler) {
7430
+ async function saveHandler(store2, service2, submitHandler, config) {
7429
7431
  let isTrue = false;
7430
7432
  if (_.isEmpty(store2.ctx.core.errors)) {
7431
7433
  try {
7432
- const saveReturn = await submitHandler(store2, service2);
7434
+ const saveReturn = await submitHandler(store2, service2, config);
7433
7435
  isTrue = true;
7434
7436
  } catch (err) {
7435
7437
  isTrue = false;
@@ -7480,7 +7482,9 @@ var pageMaster = (funcParams) => {
7480
7482
  );
7481
7483
  },
7482
7484
  savePageHandler: async () => {
7483
- const isSubmitted = await saveHandler(store2, service2, submitHandler);
7485
+ saveFormdataInLocalStorage(store2.ctx.core.data);
7486
+ const config2 = localStorage.getItem("pageFormdata");
7487
+ const isSubmitted = await saveHandler(store2, service2, submitHandler, config2);
7484
7488
  if (isSubmitted) {
7485
7489
  localStorage.removeItem("pageFormdata");
7486
7490
  store2.navigate("/PageMasterRecords");
@@ -8132,7 +8136,9 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8132
8136
  savePageHandler: async () => {
8133
8137
  var _a;
8134
8138
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8135
- const isSubmitted = await saveHandler(store2, service2, submitHandler);
8139
+ saveFormdataInLocalStorage(store2.ctx.core.data);
8140
+ const config = localStorage.getItem("pageFormdata");
8141
+ const isSubmitted = await saveHandler(store2, service2, submitHandler, config);
8136
8142
  if (isSubmitted) {
8137
8143
  localStorage.removeItem("pageFormdata");
8138
8144
  store2.navigate(`/PageMaster?id=${id}`);