impaktapps-ui-builder 1.0.66-alpha.4 → 1.0.66-alpha1

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.
@@ -8856,15 +8856,9 @@ var pageMaster = (funcParams) => {
8856
8856
  const { store: store2, dynamicData: dynamicData2, submitHandler, service: service2 } = funcParams;
8857
8857
  return {
8858
8858
  setPage: async function() {
8859
- var _a;
8860
- const uiSchema = await this.getUiSchema();
8861
- const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8862
- const event2 = new CustomEvent("pageNameChanged", {
8863
- detail: { pageName: id ? uiSchema.heading + "Add" : uiSchema.heading + "Edit", hasBackIcon: true }
8864
- });
8865
- window.dispatchEvent(event2);
8866
8859
  const formdata = await this.getFormdata();
8867
8860
  store2.setFormdata(formdata);
8861
+ const uiSchema = await this.getUiSchema();
8868
8862
  const schema2 = await this.getSchema();
8869
8863
  store2.setSchema(schema2);
8870
8864
  store2.setUiSchema(uiSchema);
@@ -10378,7 +10372,7 @@ var service = (funcParams) => {
10378
10372
  const config2 = pageData == null ? void 0 : pageData.config;
10379
10373
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10380
10374
  const event2 = new CustomEvent("pageNameChanged", {
10381
- detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10375
+ detail: { pageName: config2.label + "add", hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10382
10376
  });
10383
10377
  window.dispatchEvent(event2);
10384
10378
  (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;