impaktapps-ui-builder 0.0.101-alpha.336 → 0.0.101-alpha.338

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.
@@ -96,25 +96,11 @@ const PageMasterUiSchema = (theme) => {
96
96
  }
97
97
  }
98
98
  },
99
- {
100
- type: "Control",
101
- scope: "#/properties/programIdRequired",
102
- options: {
103
- widget: "RadioInputField"
104
- },
105
- config: {
106
- layout: { xs: 12, sm: 6, md: 4, lg: 3 },
107
- main: {
108
- label: "Program ID Required",
109
- options: [{ label: "Yes", const: "YES" }, { label: "No", const: "NO" }]
110
- }
111
- }
112
- },
113
99
  {
114
100
  type: "Control",
115
101
  scope: "#/properties/EmptyBox",
116
102
  config: {
117
- layout: { xs: 0, sm: 6, md: 0, lg: 3 }
103
+ layout: { xs: 0, sm: 0, md: 4, lg: 6 }
118
104
  },
119
105
  options: {
120
106
  widget: "EmptyBox"
@@ -10299,18 +10285,16 @@ var service = (funcParams) => {
10299
10285
  }));
10300
10286
  }
10301
10287
  const config2 = pageData == null ? void 0 : pageData.config;
10302
- const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10303
- if (config2 == null ? void 0 : config2.programIdRequired) {
10304
- const programId = ((_a = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")) == null ? void 0 : _a.value) || "programID";
10305
- const queryParams = new URLSearchParams(location.search);
10306
- console.log("queryParams ", queryParams);
10307
- if ((queryParams == null ? void 0 : queryParams.get("ProgramID")) !== programId + "") {
10308
- funcParams.store.setSearchParams({ ...queryParams, ProgramID: programId });
10309
- }
10310
- if (programId !== "programID") {
10311
- funcParams.store.setFormdata((pre) => ({ ...pre, programId }));
10288
+ const pathParts = funcParams.store.location.pathname.split("/");
10289
+ const programId = ((_a = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")) == null ? void 0 : _a.value) || "programID";
10290
+ if (pathParts.length >= 2) {
10291
+ if (pathParts[1] !== programId + "") {
10292
+ pathParts[1] = programId;
10293
+ const newPath = pathParts.slice(0, 3).join("/");
10294
+ funcParams.store.navigate(newPath);
10312
10295
  }
10313
10296
  }
10297
+ const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10314
10298
  const event2 = new CustomEvent("pageNameChanged", {
10315
10299
  detail: { pageName: config2.label }
10316
10300
  });