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

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.
@@ -50,7 +50,7 @@ const PageMasterUiSchema = (theme) => {
50
50
  var _a;
51
51
  const uiSchema = {
52
52
  type: "HorizontalLayout",
53
- heading: "Page-add",
53
+ heading: "Page",
54
54
  elements: [
55
55
  {
56
56
  type: "WrapperLayout",
@@ -8856,9 +8856,15 @@ 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);
8859
8866
  const formdata = await this.getFormdata();
8860
8867
  store2.setFormdata(formdata);
8861
- const uiSchema = await this.getUiSchema();
8862
8868
  const schema2 = await this.getSchema();
8863
8869
  store2.setSchema(schema2);
8864
8870
  store2.setUiSchema(uiSchema);