datastake-daf 0.6.729 → 0.6.731
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 +3 -2
- package/dist/services/index.js +1 -1
- 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/services/LinkedSubjects.js +1 -6
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
|
@@ -26190,11 +26190,12 @@ function AjaxSelectMain({
|
|
|
26190
26190
|
const [lastFilters, setLastFilters] = React.useState(null);
|
|
26191
26191
|
const [isFetchWithThisFilter, setIsFetchWithThisFilter] = React.useState(false);
|
|
26192
26192
|
const url = getApiBaseUrl();
|
|
26193
|
-
const queryOptionsApps = ["kota", "nashiriki", "straatos"];
|
|
26193
|
+
const queryOptionsApps = ["kota", "nashiriki", "straatos", "wazi"];
|
|
26194
26194
|
const queryOptionsAppEndpoints = {
|
|
26195
26195
|
kota: `query/options`,
|
|
26196
26196
|
nashiriki: "query",
|
|
26197
|
-
straatos: "query"
|
|
26197
|
+
straatos: "query",
|
|
26198
|
+
wazi: "query"
|
|
26198
26199
|
};
|
|
26199
26200
|
const endpoint = meta?.endpoint ? `${url}${meta?.endpoint}` : meta.application && !queryOptionsApps.includes(app) ? `${url}/query/${app}/options` : `${url}/${queryOptionsAppEndpoints[app] || "query/options"}`;
|
|
26200
26201
|
React.useEffect(() => {
|
package/dist/services/index.js
CHANGED
|
@@ -1347,7 +1347,7 @@ class LinkedSubjectsService extends BaseService {
|
|
|
1347
1347
|
url: `forms/${namespace === "documents" ? namespace : getNamespace(namespace)}`,
|
|
1348
1348
|
isApp: true,
|
|
1349
1349
|
params: {
|
|
1350
|
-
scope:
|
|
1350
|
+
scope: "create",
|
|
1351
1351
|
language
|
|
1352
1352
|
}
|
|
1353
1353
|
});
|
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
|
|
@@ -32,12 +32,7 @@ class LinkedSubjectsService extends BaseService {
|
|
|
32
32
|
url: `forms/${namespace === "documents" ? namespace : getNamespace(namespace)}`,
|
|
33
33
|
isApp: true,
|
|
34
34
|
params: {
|
|
35
|
-
scope:
|
|
36
|
-
namespace === "nashirikiEvent"
|
|
37
|
-
? "event"
|
|
38
|
-
: namespace !== "documents"
|
|
39
|
-
? getNamespace(namespace)
|
|
40
|
-
: "createDocument",
|
|
35
|
+
scope:"create",
|
|
41
36
|
language,
|
|
42
37
|
},
|
|
43
38
|
});
|