impaktapps-ui-builder 0.0.101-alpha.337 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.101-alpha.337",
3
+ "version": "0.0.101-alpha.338",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -71,28 +71,28 @@ export const PageMasterUiSchema: any = (theme) => {
71
71
  },
72
72
  },
73
73
  },
74
- {
75
- type: "Control",
76
- scope: "#/properties/programIdRequired",
74
+ // {
75
+ // type: "Control",
76
+ // scope: "#/properties/programIdRequired",
77
77
 
78
- options: {
79
- widget: "RadioInputField",
80
- },
81
- config: {
82
- layout: { xs: 12, sm: 6, md: 4, lg: 3 },
83
- main: {
84
- label: "Program ID Required",
85
- // options: ["YES", "NO"],
86
- options: [{label: "Yes",const: "YES"}, {label: "No",const: "NO"}],
87
- // errorMessage: "Active is not marked YES or NO",
88
- },
89
- },
90
- },
78
+ // options: {
79
+ // widget: "RadioInputField",
80
+ // },
81
+ // config: {
82
+ // layout: { xs: 12, sm: 6, md: 4, lg: 3 },
83
+ // main: {
84
+ // label: "Program ID Required",
85
+ // // options: ["YES", "NO"],
86
+ // options: [{label: "Yes",const: "YES"}, {label: "No",const: "NO"}],
87
+ // // errorMessage: "Active is not marked YES or NO",
88
+ // },
89
+ // },
90
+ // },
91
91
  {
92
92
  type: "Control",
93
93
  scope: "#/properties/EmptyBox",
94
94
  config: {
95
- layout: { xs: 0, sm: 6, md: 0, lg: 3 },
95
+ layout: { xs: 0, sm: 0, md: 4, lg: 6 },
96
96
  },
97
97
  options: {
98
98
  widget: "EmptyBox",
@@ -105,17 +105,18 @@ export default (funcParams: funcParamsProps) => {
105
105
 
106
106
  const pathParts = funcParams.store.location.pathname.split("/");
107
107
  const programId = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.value || "programID";
108
- if (config?.programIdRequired && programId) {
109
- if (pathParts.length < 2) {
110
- funcParams.store.navigate(
111
- `${programId}/${funcParams.store.location.pathname}`
112
- );
113
- } else if(pathParts[1] !== programId+"") {
108
+ // if (config?.programIdRequired && programId) {
109
+ if (pathParts.length >= 2) {
110
+ // funcParams.store.navigate(
111
+ // `${programId}/${funcParams.store.location.pathname}`
112
+ // );
113
+ if(pathParts[1] !== programId+""){
114
114
  pathParts[1] = programId;
115
115
  const newPath = pathParts.slice(0, 3).join("/");
116
116
  funcParams.store.navigate(newPath);
117
+ }
117
118
  }
118
- }
119
+ // }
119
120
  const uiSchema = pageData?.uiSchema;
120
121
 
121
122
  // if (config?.programIdRequired) {