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.
- package/dist/impaktapps-ui-builder.es.js +9 -25
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +9 -9
- 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 +26 -25
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",
|
|
@@ -103,35 +103,36 @@ export default (funcParams: funcParamsProps) => {
|
|
|
103
103
|
// funcParams.store.setFormdata((pre)=>({...pre,programId: programId}))
|
|
104
104
|
// }
|
|
105
105
|
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
const pathParts = funcParams.store.location.pathname.split("/");
|
|
107
|
+
const programId = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.value || "programID";
|
|
108
108
|
// if (config?.programIdRequired && programId) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
109
|
+
if (pathParts.length >= 2) {
|
|
110
|
+
// funcParams.store.navigate(
|
|
111
|
+
// `${programId}/${funcParams.store.location.pathname}`
|
|
112
|
+
// );
|
|
113
|
+
if(pathParts[1] !== programId+""){
|
|
114
|
+
pathParts[1] = programId;
|
|
115
|
+
const newPath = pathParts.slice(0, 3).join("/");
|
|
116
|
+
funcParams.store.navigate(newPath);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
118
119
|
// }
|
|
119
120
|
const uiSchema = pageData?.uiSchema;
|
|
120
121
|
|
|
121
|
-
if (config?.programIdRequired) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
122
|
+
// if (config?.programIdRequired) {
|
|
123
|
+
// const programId =
|
|
124
|
+
// JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.value ||
|
|
125
|
+
// "programID";
|
|
126
|
+
// const queryParams = new URLSearchParams(location.search);
|
|
127
|
+
// console.log("queryParams ", queryParams);
|
|
128
|
+
// if (queryParams?.get("ProgramID") !== programId + "") {
|
|
129
|
+
// funcParams.store.setSearchParams({ ...queryParams, ProgramID: programId });
|
|
130
|
+
// // funcParams.store.navigate(0);
|
|
131
|
+
// }
|
|
132
|
+
// if (programId !== "programID") {
|
|
133
|
+
// funcParams.store.setFormdata((pre) => ({ ...pre, programId: programId }));
|
|
134
|
+
// }
|
|
135
|
+
// }
|
|
135
136
|
|
|
136
137
|
const event = new CustomEvent('pageNameChanged', {
|
|
137
138
|
detail: { pageName: config.label }
|