impaktapps-ui-builder 0.0.87 → 0.0.89
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 +4 -5
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +12 -12
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/service.ts +2 -3
package/package.json
CHANGED
|
@@ -146,7 +146,7 @@ function executeCustomHandler(params: handlersProps) {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
function mergeFormdata(handlerResponse: any, componentName: string, eventConfig: any, store: any, service: any, formDataHolder: any) {
|
|
149
|
-
if (eventConfig.type === "Select"
|
|
149
|
+
if (eventConfig.type === "Select" && handlerResponse?.data) {
|
|
150
150
|
store.setSchema((pre) => {
|
|
151
151
|
return {
|
|
152
152
|
...pre, properties: {
|
|
@@ -158,7 +158,7 @@ function mergeFormdata(handlerResponse: any, componentName: string, eventConfig:
|
|
|
158
158
|
}
|
|
159
159
|
})
|
|
160
160
|
}
|
|
161
|
-
else if (eventConfig.type === "MultipleSelect" &&
|
|
161
|
+
else if (eventConfig.type === "MultipleSelect" && handlerResponse?.data) {
|
|
162
162
|
store.setSchema((pre) => {
|
|
163
163
|
return {
|
|
164
164
|
...pre, properties: {
|
|
@@ -93,7 +93,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
93
93
|
const event = new CustomEvent('pageNameChanged', {
|
|
94
94
|
detail: { pageName: config.label }
|
|
95
95
|
});
|
|
96
|
-
window.dispatchEvent(event)
|
|
96
|
+
// window.dispatchEvent(event)
|
|
97
97
|
const theme = funcParams?.store?.theme?.myTheme;
|
|
98
98
|
uiSchema.elements.push(
|
|
99
99
|
|
|
@@ -204,7 +204,6 @@ export default (funcParams: funcParamsProps) => {
|
|
|
204
204
|
}
|
|
205
205
|
);
|
|
206
206
|
const schema = pageData?.schema ?? { type: "object", properties: {} };
|
|
207
|
-
eventGroups = {}
|
|
208
207
|
eventGroups = extractEvents(config);
|
|
209
208
|
executeEventsParameters = {
|
|
210
209
|
config: {}, componentName: "",
|
|
@@ -220,7 +219,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
220
219
|
funcParams.store.setSchema(
|
|
221
220
|
(pre: any) => {
|
|
222
221
|
return {
|
|
223
|
-
...schema, properties:
|
|
222
|
+
...schema,...pre, properties:
|
|
224
223
|
{ ...schema.properties, ...pre.properties, }
|
|
225
224
|
}
|
|
226
225
|
}
|