procode-lowcode-core 1.0.11 → 1.0.13
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/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/UIElement/UIElementDefinations/BaseScreenElement.d.ts +1 -0
- package/package.json +1 -1
- package/src/Renderer/WidgetRenderer/useWidgetProps.ts +1 -0
- package/src/Services/CentralService.ts +8 -8
- package/src/UIElement/UIElementDefinations/BaseScreenElement.ts +1 -0
package/dist/index.esm.js
CHANGED
|
@@ -19348,7 +19348,7 @@ const useWidgetProps = (schemaElementProps, viewModel, validation, eventService,
|
|
|
19348
19348
|
return;
|
|
19349
19349
|
}
|
|
19350
19350
|
const events = getEvents();
|
|
19351
|
-
setWidgetProps(Object.assign(Object.assign(Object.assign(Object.assign({}, schemaElementProps), { id: schemaElementProps === null || schemaElementProps === void 0 ? void 0 : schemaElementProps.id, value: getScreenDataFieldValue(), listData: getSupportiveDataFieldValue(), uiElementGroupData: getUiElementGroupData(), validations: getValidationProperty(), eventService: eventService, viewModel: viewModel }), events), { dynamicEvents: events }));
|
|
19351
|
+
setWidgetProps(Object.assign(Object.assign(Object.assign(Object.assign({}, schemaElementProps), { id: schemaElementProps === null || schemaElementProps === void 0 ? void 0 : schemaElementProps.id, value: getScreenDataFieldValue(), listData: getSupportiveDataFieldValue(), uiElementGroupData: getUiElementGroupData(), validations: getValidationProperty(), eventService: eventService, viewModel: viewModel, "sssss": "ss" }), events), { dynamicEvents: events }));
|
|
19352
19352
|
};
|
|
19353
19353
|
const getEvents = () => {
|
|
19354
19354
|
if (!(schemaElementProps === null || schemaElementProps === void 0 ? void 0 : schemaElementProps.events))
|
package/dist/index.js
CHANGED
|
@@ -19352,7 +19352,7 @@ const useWidgetProps = (schemaElementProps, viewModel, validation, eventService,
|
|
|
19352
19352
|
return;
|
|
19353
19353
|
}
|
|
19354
19354
|
const events = getEvents();
|
|
19355
|
-
setWidgetProps(Object.assign(Object.assign(Object.assign(Object.assign({}, schemaElementProps), { id: schemaElementProps === null || schemaElementProps === void 0 ? void 0 : schemaElementProps.id, value: getScreenDataFieldValue(), listData: getSupportiveDataFieldValue(), uiElementGroupData: getUiElementGroupData(), validations: getValidationProperty(), eventService: eventService, viewModel: viewModel }), events), { dynamicEvents: events }));
|
|
19355
|
+
setWidgetProps(Object.assign(Object.assign(Object.assign(Object.assign({}, schemaElementProps), { id: schemaElementProps === null || schemaElementProps === void 0 ? void 0 : schemaElementProps.id, value: getScreenDataFieldValue(), listData: getSupportiveDataFieldValue(), uiElementGroupData: getUiElementGroupData(), validations: getValidationProperty(), eventService: eventService, viewModel: viewModel, "sssss": "ss" }), events), { dynamicEvents: events }));
|
|
19356
19356
|
};
|
|
19357
19357
|
const getEvents = () => {
|
|
19358
19358
|
if (!(schemaElementProps === null || schemaElementProps === void 0 ? void 0 : schemaElementProps.events))
|
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@ export class CentralService {
|
|
|
39
39
|
|
|
40
40
|
private getMessage = (
|
|
41
41
|
response: AxiosResponse<any, any>,
|
|
42
|
-
responseConfig?: ResponseConfig
|
|
42
|
+
responseConfig?: ResponseConfig,
|
|
43
43
|
) => {
|
|
44
44
|
const statusRelatedConfig = (responseConfig ?? {})[response?.status];
|
|
45
45
|
let errorMessage = "";
|
|
@@ -52,7 +52,7 @@ export class CentralService {
|
|
|
52
52
|
errorMessage ||
|
|
53
53
|
ErrorMessageProvider.get(
|
|
54
54
|
response.config.method as RequestType,
|
|
55
|
-
response?.status
|
|
55
|
+
response?.status,
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
58
|
} else if (statusRelatedConfig?.enableMessage) {
|
|
@@ -61,7 +61,7 @@ export class CentralService {
|
|
|
61
61
|
response?.data?.message ||
|
|
62
62
|
ErrorMessageProvider.get(
|
|
63
63
|
response.config.method as RequestType,
|
|
64
|
-
response?.status
|
|
64
|
+
response?.status,
|
|
65
65
|
);
|
|
66
66
|
}
|
|
67
67
|
return errorMessage;
|
|
@@ -76,7 +76,7 @@ export class CentralService {
|
|
|
76
76
|
|
|
77
77
|
response.data.message = this.getMessage(
|
|
78
78
|
response,
|
|
79
|
-
customAxiosRequestConfig?.responseConfig
|
|
79
|
+
customAxiosRequestConfig?.responseConfig,
|
|
80
80
|
);
|
|
81
81
|
|
|
82
82
|
response.data.alertType =
|
|
@@ -92,7 +92,7 @@ export class CentralService {
|
|
|
92
92
|
) {
|
|
93
93
|
NotificationService.showNotification(
|
|
94
94
|
response.data.message,
|
|
95
|
-
getStatusBaseNotifiType(response?.data?.status)
|
|
95
|
+
getStatusBaseNotifiType(response?.data?.status),
|
|
96
96
|
);
|
|
97
97
|
}
|
|
98
98
|
} else {
|
|
@@ -119,7 +119,7 @@ export class CentralService {
|
|
|
119
119
|
(error) => {
|
|
120
120
|
console.error("Response error:", error);
|
|
121
121
|
throw error;
|
|
122
|
-
}
|
|
122
|
+
},
|
|
123
123
|
);
|
|
124
124
|
};
|
|
125
125
|
|
|
@@ -129,14 +129,14 @@ export class CentralService {
|
|
|
129
129
|
(request) => {
|
|
130
130
|
this.setHeaders(
|
|
131
131
|
request,
|
|
132
|
-
AppDependenceyProvider.getInstance().getRequestHeaders()
|
|
132
|
+
AppDependenceyProvider.getInstance().getRequestHeaders(),
|
|
133
133
|
);
|
|
134
134
|
return request;
|
|
135
135
|
},
|
|
136
136
|
(error) => {
|
|
137
137
|
console.error("Request error:", error);
|
|
138
138
|
throw error;
|
|
139
|
-
}
|
|
139
|
+
},
|
|
140
140
|
);
|
|
141
141
|
}
|
|
142
142
|
};
|