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/dist/impaktapps-ui-builder.es.js +3 -21
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +2 -2
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -17
- package/src/impaktapps-ui-builder/runtime/services/service.ts +8 -7
package/package.json
CHANGED
|
@@ -71,28 +71,28 @@ export const PageMasterUiSchema: any = (theme) => {
|
|
|
71
71
|
},
|
|
72
72
|
},
|
|
73
73
|
},
|
|
74
|
-
{
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
// {
|
|
75
|
+
// type: "Control",
|
|
76
|
+
// scope: "#/properties/programIdRequired",
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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:
|
|
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
|
|
110
|
-
funcParams.store.navigate(
|
|
111
|
-
|
|
112
|
-
);
|
|
113
|
-
|
|
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) {
|