datastake-daf 0.6.730 → 0.6.732
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/components/index.js +6 -4
- package/dist/pages/index.js +13 -6
- package/package.json +1 -1
- package/src/@daf/core/components/EditForm/components/ajaxSelect.js +2 -1
- package/src/@daf/core/components/PdfForm/utils/ajaxSelectFieldData.js +2 -1
- package/src/@daf/pages/dashboards/AllInformation/Stakeholders/index.jsx +5 -4
package/dist/components/index.js
CHANGED
|
@@ -9226,11 +9226,12 @@ PdfView.propTypes = {
|
|
|
9226
9226
|
|
|
9227
9227
|
const ajaxSelectFieldData = async (value, config, getApiBaseUrl = () => {}, getAppHeader = () => {}, app, formValues = {}) => {
|
|
9228
9228
|
const url = getApiBaseUrl();
|
|
9229
|
-
const queryOptionsApps = ["kota", "nashiriki", "straatos"];
|
|
9229
|
+
const queryOptionsApps = ["kota", "nashiriki", "straatos", "wazi"];
|
|
9230
9230
|
const queryOptionsAppEndpoints = {
|
|
9231
9231
|
kota: `query/options`,
|
|
9232
9232
|
nashiriki: "query",
|
|
9233
|
-
straatos: "query"
|
|
9233
|
+
straatos: "query",
|
|
9234
|
+
wazi: "query"
|
|
9234
9235
|
};
|
|
9235
9236
|
const endpoint = config?.meta?.endpoint ? `${url}${config?.meta?.endpoint}` : app && !queryOptionsApps.includes(app) ? `${url}/query/${app}/options` : `${url}/${queryOptionsAppEndpoints[app] || "query/options"}`;
|
|
9236
9237
|
const call = config?.meta?.call;
|
|
@@ -36813,11 +36814,12 @@ function AjaxSelectMain(_ref) {
|
|
|
36813
36814
|
const [lastFilters, setLastFilters] = React.useState(null);
|
|
36814
36815
|
const [isFetchWithThisFilter, setIsFetchWithThisFilter] = React.useState(false);
|
|
36815
36816
|
const url = getApiBaseUrl();
|
|
36816
|
-
const queryOptionsApps = ["kota", "nashiriki", "straatos"];
|
|
36817
|
+
const queryOptionsApps = ["kota", "nashiriki", "straatos", "wazi"];
|
|
36817
36818
|
const queryOptionsAppEndpoints = {
|
|
36818
36819
|
kota: "query/options",
|
|
36819
36820
|
nashiriki: "query",
|
|
36820
|
-
straatos: "query"
|
|
36821
|
+
straatos: "query",
|
|
36822
|
+
wazi: "query"
|
|
36821
36823
|
};
|
|
36822
36824
|
const endpoint = meta !== null && meta !== void 0 && meta.endpoint ? "".concat(url).concat(meta === null || meta === void 0 ? void 0 : meta.endpoint) : meta.application && !queryOptionsApps.includes(app) ? "".concat(url, "/query/").concat(app, "/options") : "".concat(url, "/").concat(queryOptionsAppEndpoints[app] || "query/options");
|
|
36823
36825
|
React.useEffect(() => {
|
package/dist/pages/index.js
CHANGED
|
@@ -16191,6 +16191,15 @@ const MessageTypes = {
|
|
|
16191
16191
|
WARNING: 'warning'
|
|
16192
16192
|
};
|
|
16193
16193
|
|
|
16194
|
+
/**
|
|
16195
|
+
* Displays a notification message using Ant Design's message component
|
|
16196
|
+
* @param {string} type - The type of message (success, error, warning)
|
|
16197
|
+
* @param {string} m - The message content to display
|
|
16198
|
+
*/
|
|
16199
|
+
function displayMessage(type, m) {
|
|
16200
|
+
antd.message[type](m);
|
|
16201
|
+
}
|
|
16202
|
+
|
|
16194
16203
|
const countriesPhoneNumberLength = {
|
|
16195
16204
|
AD: 6,
|
|
16196
16205
|
AE: 9,
|
|
@@ -26190,11 +26199,12 @@ function AjaxSelectMain({
|
|
|
26190
26199
|
const [lastFilters, setLastFilters] = React.useState(null);
|
|
26191
26200
|
const [isFetchWithThisFilter, setIsFetchWithThisFilter] = React.useState(false);
|
|
26192
26201
|
const url = getApiBaseUrl();
|
|
26193
|
-
const queryOptionsApps = ["kota", "nashiriki", "straatos"];
|
|
26202
|
+
const queryOptionsApps = ["kota", "nashiriki", "straatos", "wazi"];
|
|
26194
26203
|
const queryOptionsAppEndpoints = {
|
|
26195
26204
|
kota: `query/options`,
|
|
26196
26205
|
nashiriki: "query",
|
|
26197
|
-
straatos: "query"
|
|
26206
|
+
straatos: "query",
|
|
26207
|
+
wazi: "query"
|
|
26198
26208
|
};
|
|
26199
26209
|
const endpoint = meta?.endpoint ? `${url}${meta?.endpoint}` : meta.application && !queryOptionsApps.includes(app) ? `${url}/query/${app}/options` : `${url}/${queryOptionsAppEndpoints[app] || "query/options"}`;
|
|
26200
26210
|
React.useEffect(() => {
|
|
@@ -30050,11 +30060,8 @@ const StakeholdersTable = ({
|
|
|
30050
30060
|
saveData: saveFormData,
|
|
30051
30061
|
loading: formLoading,
|
|
30052
30062
|
onSubmitted: (type, m, data) => {
|
|
30053
|
-
// displayMessage(
|
|
30054
|
-
// type,
|
|
30055
|
-
// t("affirmations::subject-created-successfully") || m,
|
|
30056
|
-
// );
|
|
30057
30063
|
if (data.datastakeId) {
|
|
30064
|
+
displayMessage(type, t("affirmations::subject-created-successfully") || m);
|
|
30058
30065
|
goTo(`/app/edit/stakeholders/${data.datastakeId}`);
|
|
30059
30066
|
}
|
|
30060
30067
|
},
|
package/package.json
CHANGED
|
@@ -71,11 +71,12 @@ export function AjaxSelectMain({
|
|
|
71
71
|
const [isFetchWithThisFilter, setIsFetchWithThisFilter] = useState(false);
|
|
72
72
|
const url = getApiBaseUrl();
|
|
73
73
|
|
|
74
|
-
const queryOptionsApps = ["kota", "nashiriki", "straatos" ];
|
|
74
|
+
const queryOptionsApps = ["kota", "nashiriki", "straatos", "wazi" ];
|
|
75
75
|
const queryOptionsAppEndpoints = {
|
|
76
76
|
kota: `query/options`,
|
|
77
77
|
nashiriki: "query",
|
|
78
78
|
straatos: "query",
|
|
79
|
+
wazi: "query",
|
|
79
80
|
};
|
|
80
81
|
|
|
81
82
|
const endpoint = meta?.endpoint
|
|
@@ -6,11 +6,12 @@ import { findOptions } from '../../../../../helpers/StringHelper';
|
|
|
6
6
|
export const ajaxSelectFieldData = async (value, config, getApiBaseUrl = () => {}, getAppHeader = () => {}, app, formValues = {}) => {
|
|
7
7
|
const url = getApiBaseUrl();
|
|
8
8
|
|
|
9
|
-
const queryOptionsApps = ["kota", "nashiriki", "straatos"];
|
|
9
|
+
const queryOptionsApps = ["kota", "nashiriki", "straatos", "wazi" ];
|
|
10
10
|
const queryOptionsAppEndpoints = {
|
|
11
11
|
kota: `query/options`,
|
|
12
12
|
nashiriki: "query",
|
|
13
13
|
straatos: "query",
|
|
14
|
+
wazi: "query",
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
const endpoint = config?.meta?.endpoint
|
|
@@ -4,6 +4,7 @@ import { getColumns } from './columns.js';
|
|
|
4
4
|
import { checkboxConfig, getFiltersConfig, filtersConfig, getFilterOptions } from './config.js';
|
|
5
5
|
import { useGetQueryParams } from '../../../../hooks/useGetQueryParams.js';
|
|
6
6
|
import StakeholdersCreate from './create.jsx';
|
|
7
|
+
import { displayMessage } from '../../../../../helpers/messages.js';
|
|
7
8
|
|
|
8
9
|
const StakeholdersTable = ({
|
|
9
10
|
t = () => {},
|
|
@@ -114,11 +115,11 @@ const StakeholdersTable = ({
|
|
|
114
115
|
saveData={saveFormData}
|
|
115
116
|
loading={formLoading}
|
|
116
117
|
onSubmitted={(type, m, data) => {
|
|
117
|
-
// displayMessage(
|
|
118
|
-
// type,
|
|
119
|
-
// t("affirmations::subject-created-successfully") || m,
|
|
120
|
-
// );
|
|
121
118
|
if (data.datastakeId) {
|
|
119
|
+
displayMessage(
|
|
120
|
+
type,
|
|
121
|
+
t("affirmations::subject-created-successfully") || m,
|
|
122
|
+
);
|
|
122
123
|
goTo(`/app/edit/stakeholders/${data.datastakeId}`);
|
|
123
124
|
}
|
|
124
125
|
}}
|