@piveau/piveau-hub-ui-modules 4.6.83 → 4.6.84
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/composables/useRuntimeEnv.d.ts +1 -1
- package/dist/configurations/config-schema/apiSchema.mjs +1 -1
- package/dist/configurations/config-schema/authenticationSchema.mjs +1 -1
- package/dist/configurations/config-schema/configSchema.d.ts +1 -1
- package/dist/configurations/config-schema/configSchema.mjs +1 -1
- package/dist/configurations/config-schema/contentSchema.mjs +1 -1
- package/dist/configurations/config-schema/languagesSchema.mjs +1 -1
- package/dist/configurations/config-schema/metadataSchema.mjs +1 -1
- package/dist/configurations/config-schema/routingSchema.mjs +1 -1
- package/dist/configurations/config-schema/themesSchema.mjs +1 -1
- package/dist/configurations/config-schema/trackerSchema.mjs +1 -1
- package/dist/data-provider-interface/DPIMenu.vue.d.ts +3 -3
- package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +7 -7
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +110 -106
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +99 -80
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/DataFetchingComponent.vue.d.ts +1 -1
- package/dist/data-provider-interface/components/Dropup.vue.d.ts +1 -1
- package/dist/data-provider-interface/components/FileUpload.vue.d.ts +1 -1
- package/dist/data-provider-interface/components/Navigation.vue.d.ts +5 -5
- package/dist/data-provider-interface/views/DistributionOverview.vue.d.ts +2 -2
- package/dist/data-provider-interface/views/DraftsPage.vue.d.ts +2 -2
- package/dist/data-provider-interface/views/InputPage.vue.d.ts +7 -7
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage.vue.d.ts +1 -1
- package/dist/datasetDetails/distributions/DistributionFormat.vue.d.ts +2 -2
- package/dist/datasetDetails/distributions/DistributionsHeader.vue.d.ts +4 -4
- package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.d.ts +8 -8
- package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.d.ts +2 -2
- package/dist/datasetDetails/distributions/distributionActions/DistributionDropdownDownload.vue.d.ts +2 -2
- package/dist/datasetDetails/distributions/distributionActions/DistributionOptionsDropdown.vue.d.ts +4 -4
- package/dist/datasetDetails/distributions/distributionActions/DistributionPreview.vue.d.ts +4 -4
- package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.d.ts +4 -4
- package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs +17 -17
- package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionDetails/DistributionDescription.vue.d.ts +6 -6
- package/dist/datasetDetails/distributions/distributionDetails/DistributionDetails.vue.d.ts +16 -16
- package/dist/datasetDetails/distributions/distributionDetails/DistributionExpand.vue.d.ts +2 -2
- package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.d.ts +1 -1
- package/dist/datasetDetails/header/DatasetDetailsHeaderCatalogue.vue.d.ts +1 -1
- package/dist/datasetDetails/header/DatasetDetailsHeaderTitle.vue.d.ts +2 -2
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +2 -2
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationPages.vue.d.ts +7 -1
- package/dist/datasetDetails/properties/DatasetDetailsProperties.vue.d.ts +200 -1
- package/dist/external/zod/dist/esm/v3/ZodError +84 -0
- package/dist/external/zod/dist/esm/v3/ZodError.map +1 -0
- package/dist/external/zod/dist/esm/v3/errors.map +1 -0
- package/dist/external/zod/dist/esm/v3/helpers/errorUtil.map +1 -0
- package/dist/external/zod/dist/esm/v3/helpers/parseUtil.map +1 -0
- package/dist/external/zod/dist/esm/v3/helpers/util.map +1 -0
- package/dist/external/zod/{v3 → dist/esm/v3}/locales/en +4 -4
- package/dist/external/zod/dist/esm/v3/locales/en.map +1 -0
- package/dist/external/zod/{v3 → dist/esm/v3}/types +544 -524
- package/dist/external/zod/dist/esm/v3/types.map +1 -0
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/dist/services/datasetService.d.ts +1 -1
- package/dist/widgets/Pagination.vue.d.ts +1 -1
- package/package.json +1 -1
- package/dist/external/zod/v3/ZodError +0 -88
- package/dist/external/zod/v3/ZodError.map +0 -1
- package/dist/external/zod/v3/errors.map +0 -1
- package/dist/external/zod/v3/helpers/errorUtil.map +0 -1
- package/dist/external/zod/v3/helpers/parseUtil.map +0 -1
- package/dist/external/zod/v3/helpers/util.map +0 -1
- package/dist/external/zod/v3/locales/en.map +0 -1
- package/dist/external/zod/v3/types.map +0 -1
- /package/dist/external/zod/{v3 → dist/esm/v3}/errors +0 -0
- /package/dist/external/zod/{v3 → dist/esm/v3}/helpers/errorUtil +0 -0
- /package/dist/external/zod/{v3 → dist/esm/v3}/helpers/parseUtil +0 -0
- /package/dist/external/zod/{v3 → dist/esm/v3}/helpers/util +0 -0
|
@@ -19,7 +19,6 @@ export declare function useRuntimeEnv(): {
|
|
|
19
19
|
corsproxyApiUrl: string;
|
|
20
20
|
};
|
|
21
21
|
authentication: {
|
|
22
|
-
useService: boolean;
|
|
23
22
|
login: {
|
|
24
23
|
useLogin: boolean;
|
|
25
24
|
loginTitle: string;
|
|
@@ -29,6 +28,7 @@ export declare function useRuntimeEnv(): {
|
|
|
29
28
|
logoutURL: string;
|
|
30
29
|
logoutRedirectUri: string;
|
|
31
30
|
};
|
|
31
|
+
useService: boolean;
|
|
32
32
|
keycloak: {
|
|
33
33
|
realm: string;
|
|
34
34
|
clientId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { object as a, string as e, boolean as t, number as u, enum as l } from "../../external/zod/v3/types";
|
|
1
|
+
import { object as a, string as e, boolean as t, number as u, enum as l } from "../../external/zod/dist/esm/v3/types";
|
|
2
2
|
const o = a({
|
|
3
3
|
realm: e().default("piveau"),
|
|
4
4
|
url: e().url().optional(),
|
|
@@ -2116,7 +2116,6 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2116
2116
|
corsproxyApiUrl: string;
|
|
2117
2117
|
};
|
|
2118
2118
|
authentication: {
|
|
2119
|
-
useService: boolean;
|
|
2120
2119
|
login: {
|
|
2121
2120
|
useLogin: boolean;
|
|
2122
2121
|
loginTitle: string;
|
|
@@ -2126,6 +2125,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2126
2125
|
logoutURL: string;
|
|
2127
2126
|
logoutRedirectUri: string;
|
|
2128
2127
|
};
|
|
2128
|
+
useService: boolean;
|
|
2129
2129
|
keycloak: {
|
|
2130
2130
|
realm: string;
|
|
2131
2131
|
clientId: string;
|
|
@@ -6,7 +6,7 @@ import { metadataSchema as e } from "./metadataSchema.mjs";
|
|
|
6
6
|
import { languagesSchema as r } from "./languagesSchema.mjs";
|
|
7
7
|
import { themesSchema as c } from "./themesSchema.mjs";
|
|
8
8
|
import { trackerSchema as i } from "./trackerSchema.mjs";
|
|
9
|
-
import { object as n } from "../../external/zod/v3/types";
|
|
9
|
+
import { object as n } from "../../external/zod/dist/esm/v3/types";
|
|
10
10
|
const j = n({
|
|
11
11
|
api: t,
|
|
12
12
|
authentication: m,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { object as l, string as t, boolean as e, coerce as a, array as u, record as S, number as o, tuple as i, union as f, literal as s } from "../../external/zod/v3/types";
|
|
1
|
+
import { object as l, string as t, boolean as e, coerce as a, array as u, record as S, number as o, tuple as i, union as f, literal as s } from "../../external/zod/dist/esm/v3/types";
|
|
2
2
|
const r = l({
|
|
3
3
|
or: t().default("OR"),
|
|
4
4
|
and: t().default("AND")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { object as e, string as a } from "../../external/zod/v3/types";
|
|
1
|
+
import { object as e, string as a } from "../../external/zod/dist/esm/v3/types";
|
|
2
2
|
const o = e({
|
|
3
3
|
title: a().default("piveau Hub-UI"),
|
|
4
4
|
description: a().default("A modern and customizable web application for data management of extensive data catalogs."),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { object as e, string as t, boolean as a, number as r, array as u } from "../../external/zod/v3/types";
|
|
1
|
+
import { object as e, string as t, boolean as a, number as r, array as u } from "../../external/zod/dist/esm/v3/types";
|
|
2
2
|
const s = e({
|
|
3
3
|
routerOptions: e({
|
|
4
4
|
base: t().default("/"),
|
|
@@ -127,14 +127,14 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
127
127
|
isOperator(): any;
|
|
128
128
|
getUserData: import('vuex').Computed;
|
|
129
129
|
hasAnyDoi(): any;
|
|
130
|
-
getTitle: import('vuex').Computed;
|
|
131
|
-
getDescription: import('vuex').Computed;
|
|
132
130
|
getCatalog: import('vuex').Computed;
|
|
133
131
|
getLoading: import('vuex').Computed;
|
|
134
132
|
getID: import('vuex').Computed;
|
|
135
|
-
|
|
133
|
+
getTitle: import('vuex').Computed;
|
|
134
|
+
getDescription: import('vuex').Computed;
|
|
136
135
|
getAdmsIdentifiers: import('vuex').Computed;
|
|
137
136
|
getIdentifiers: import('vuex').Computed;
|
|
137
|
+
getOtherIdentifiers: import('vuex').Computed;
|
|
138
138
|
}, {
|
|
139
139
|
setupKeycloakWatcher(): void;
|
|
140
140
|
handleConfirm(action: any, argsObj: any, { successMessage, errorMessage }: {
|
|
@@ -96,7 +96,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
96
96
|
corsproxyApiUrl: string;
|
|
97
97
|
};
|
|
98
98
|
authentication: {
|
|
99
|
-
useService: boolean;
|
|
100
99
|
login: {
|
|
101
100
|
useLogin: boolean;
|
|
102
101
|
loginTitle: string;
|
|
@@ -106,6 +105,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
106
105
|
logoutURL: string;
|
|
107
106
|
logoutRedirectUri: string;
|
|
108
107
|
};
|
|
108
|
+
useService: boolean;
|
|
109
109
|
keycloak: {
|
|
110
110
|
realm: string;
|
|
111
111
|
clientId: string;
|
|
@@ -1295,8 +1295,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1295
1295
|
createDatasetID(): void;
|
|
1296
1296
|
generateandTranslateSchema(property: any): void;
|
|
1297
1297
|
clearAll: import('vuex').ActionMethod;
|
|
1298
|
-
saveFormValues: import('vuex').ActionMethod;
|
|
1299
1298
|
saveLocalstorageValues: import('vuex').ActionMethod;
|
|
1299
|
+
saveFormValues: import('vuex').ActionMethod;
|
|
1300
1300
|
setIsEditMode: import('vuex').ActionMethod;
|
|
1301
1301
|
setIsDraft: import('vuex').ActionMethod;
|
|
1302
1302
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -1351,8 +1351,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1351
1351
|
PropertyChooser: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
1352
1352
|
Navigation: import('vue').DefineComponent<{
|
|
1353
1353
|
steps?: any;
|
|
1354
|
-
nextStep?: any;
|
|
1355
1354
|
previousStep?: any;
|
|
1355
|
+
nextStep?: any;
|
|
1356
1356
|
goToNextStep?: any;
|
|
1357
1357
|
goToPreviousStep?: any;
|
|
1358
1358
|
}, {
|
|
@@ -1376,7 +1376,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1376
1376
|
corsproxyApiUrl: string;
|
|
1377
1377
|
};
|
|
1378
1378
|
authentication: {
|
|
1379
|
-
useService: boolean;
|
|
1380
1379
|
login: {
|
|
1381
1380
|
useLogin: boolean;
|
|
1382
1381
|
loginTitle: string;
|
|
@@ -1386,6 +1385,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1386
1385
|
logoutURL: string;
|
|
1387
1386
|
logoutRedirectUri: string;
|
|
1388
1387
|
};
|
|
1388
|
+
useService: boolean;
|
|
1389
1389
|
keycloak: {
|
|
1390
1390
|
realm: string;
|
|
1391
1391
|
clientId: string;
|
|
@@ -1707,9 +1707,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1707
1707
|
}, {
|
|
1708
1708
|
formErrorCount(): boolean;
|
|
1709
1709
|
getData: import('vuex').Computed;
|
|
1710
|
+
getUserData: import('vuex').Computed;
|
|
1710
1711
|
getIsEditMode: import('vuex').Computed;
|
|
1711
1712
|
getIsDraft: import('vuex').Computed;
|
|
1712
|
-
getUserData: import('vuex').Computed;
|
|
1713
1713
|
}, {
|
|
1714
1714
|
closeModal(): void;
|
|
1715
1715
|
handleIDError(): void;
|
|
@@ -1721,15 +1721,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1721
1721
|
createDraft(): void;
|
|
1722
1722
|
createCatalogue(datasetId: any): void;
|
|
1723
1723
|
idunique(id: any): Promise<boolean>;
|
|
1724
|
-
convertToRDF: import('vuex').ActionMethod;
|
|
1725
1724
|
clearAll: import('vuex').ActionMethod;
|
|
1725
|
+
convertToRDF: import('vuex').ActionMethod;
|
|
1726
1726
|
showSnackbar: import('vuex').ActionMethod;
|
|
1727
1727
|
setIsEditMode: import('vuex').ActionMethod;
|
|
1728
1728
|
setIsDraft: import('vuex').ActionMethod;
|
|
1729
1729
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
1730
1730
|
steps?: any;
|
|
1731
|
-
nextStep?: any;
|
|
1732
1731
|
previousStep?: any;
|
|
1732
|
+
nextStep?: any;
|
|
1733
1733
|
goToNextStep?: any;
|
|
1734
1734
|
goToPreviousStep?: any;
|
|
1735
1735
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useStore as
|
|
3
|
-
import { getTranslationFor as
|
|
4
|
-
import { getNode as
|
|
5
|
-
import { onClickOutside as
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useAutocomplete as
|
|
10
|
-
const
|
|
1
|
+
import { getCurrentInstance as le, computed as _, ref as h, onMounted as oe, watch as B, watchEffect as se, openBlock as i, createElementBlock as u, unref as c, toDisplayString as v, createCommentVNode as N, createTextVNode as p, createElementVNode as s, withDirectives as X, isRef as M, vModelText as re, Fragment as T, renderList as A, vShow as ie, normalizeClass as ue } from "vue";
|
|
2
|
+
import { useStore as ce } from "vuex";
|
|
3
|
+
import { getTranslationFor as R } from "../../utils/helpers.mjs";
|
|
4
|
+
import { getNode as de } from "@formkit/core";
|
|
5
|
+
import { onClickOutside as j } from "../../external/@vueuse/core/index";
|
|
6
|
+
import { useI18n as fe } from "vue-i18n";
|
|
7
|
+
import pe from "qs";
|
|
8
|
+
import me from "axios";
|
|
9
|
+
import { useAutocomplete as ve } from "../composables/aucotomplete.mjs";
|
|
10
|
+
const ge = { class: "formkitProperty" }, ye = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "formkitHeader"
|
|
13
|
-
},
|
|
13
|
+
}, he = ["innerHTML"], xe = { class: "formkitCmpWrap" }, ke = { class: "formkit-outer" }, be = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "d-flex formkit-inner"
|
|
16
|
-
},
|
|
16
|
+
}, we = { class: "autocompleteInputSingleValue" }, _e = { key: 1 }, Ce = { class: "d-flex align-items-center justify-content-center formkit-inner mb-2" }, Ie = ["placeholder"], Le = ["onClick"], Te = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "d-flex flex-wrap"
|
|
19
|
-
},
|
|
19
|
+
}, Ae = { class: "activeResultsAutocompleteWrapper" }, Se = ["onClick"], Ve = ["onClick"], Pe = { class: "w-100 mt-4" }, Oe = { class: "d-flex justify-content-between align-items-center flex-wrap" }, $e = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "annifresultContainer"
|
|
22
|
-
},
|
|
22
|
+
}, Ne = ["onClick"], Me = { class: "d-flex" }, Re = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "d-flex flex-wrap"
|
|
25
|
-
},
|
|
25
|
+
}, je = ["onClick"], De = ["innerHTML"], Ke = {
|
|
26
26
|
__name: "AutocompleteInput",
|
|
27
27
|
props: {
|
|
28
28
|
context: Object
|
|
29
29
|
},
|
|
30
30
|
setup(J) {
|
|
31
|
-
let k =
|
|
32
|
-
const { requestAutocompleteSuggestions:
|
|
33
|
-
|
|
34
|
-
const { t:
|
|
35
|
-
let g =
|
|
36
|
-
value: { name:
|
|
37
|
-
}), f =
|
|
31
|
+
let k = le().appContext.app.config.globalProperties.$env;
|
|
32
|
+
const { requestAutocompleteSuggestions: K, requestResourceName: z } = ve(), a = J;
|
|
33
|
+
ce();
|
|
34
|
+
const { t: S, te: G, locale: V } = fe();
|
|
35
|
+
let g = _(() => a.context.value), d, b = a.context.attrs.voc, Q = _(() => S("message.dataupload.info.searchVocabulary")), Y = _(() => S("message.dataupload.info.matchesNothingFound")), C = h({
|
|
36
|
+
value: { name: Q }
|
|
37
|
+
}), f = h(), D = h(null), E = h(null), x = h({}), m = [], I = [], H = h({
|
|
38
38
|
value: !1
|
|
39
39
|
});
|
|
40
|
-
|
|
41
|
-
let
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
h();
|
|
41
|
+
let P = h({});
|
|
42
|
+
oe(async () => {
|
|
43
|
+
x.value = "";
|
|
44
44
|
});
|
|
45
|
-
let q =
|
|
45
|
+
let q = _(() => {
|
|
46
46
|
try {
|
|
47
47
|
if (a.context.attrs.class.includes("inDistribution"))
|
|
48
48
|
return !0;
|
|
49
49
|
} catch {
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
-
B(
|
|
53
|
-
}), B(
|
|
52
|
+
B(C, async () => {
|
|
53
|
+
}), B(P, async () => {
|
|
54
54
|
});
|
|
55
55
|
const U = async (n) => {
|
|
56
56
|
if (n != null) {
|
|
57
57
|
let e = b === "iana-media-types" || b === "spdx-checksum-algorithm", t;
|
|
58
|
-
return await
|
|
58
|
+
return await z({ voc: b, uri: n, envs: k }).then(
|
|
59
59
|
(o) => {
|
|
60
|
-
a.context.attrs.property === "dcatde:politicalGeocodingURI" ? o != null && (t = e ? o.data.result.results.filter((l) => l.resource === n).map((l) => l.alt_label)[0].en :
|
|
60
|
+
a.context.attrs.property === "dcatde:politicalGeocodingURI" ? o != null && (t = e ? o.data.result.results.filter((l) => l.resource === n).map((l) => l.alt_label)[0].en : R(o.data.result.alt_label, V.value, [])) : o != null && (t = e ? o.data.result.results.filter((l) => l.resource === n).map((l) => l.pref_label)[0].en : R(o.data.result.pref_label, V.value, []));
|
|
61
61
|
}
|
|
62
62
|
), t;
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
se(async () => {
|
|
66
66
|
const n = g.value;
|
|
67
67
|
if (n.hasOwnProperty("name") && n.name === n.resource) {
|
|
68
68
|
let e;
|
|
@@ -74,29 +74,29 @@ const me = { class: "formkitProperty" }, ve = {
|
|
|
74
74
|
n[t].name === n[t].resource && (e.push({ name: await U(n[t].resource), resource: n[t].resource }), a.context.node.input(e));
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
function
|
|
77
|
+
function O(n) {
|
|
78
78
|
let e = { step: "", prop: a.context.node.name }, t = JSON.parse(localStorage.getItem("dpi_datasets"));
|
|
79
79
|
for (let o = 0; o < Object.keys(t).length; o++)
|
|
80
|
-
for (let
|
|
80
|
+
for (let r = 0; r < Object.keys(t)[o].length; r++) {
|
|
81
81
|
let l = Object.entries(t);
|
|
82
82
|
try {
|
|
83
|
-
Object.keys(l[o][
|
|
84
|
-
w === a.context.node.name && (e.step = l[o][0], n === "erase" && (
|
|
83
|
+
Object.keys(l[o][r]).filter((w) => {
|
|
84
|
+
w === a.context.node.name && (e.step = l[o][0], n === "erase" && (d = {}, t[e.step][e.prop] = d), t[e.step][e.prop] = d, localStorage.setItem("dpi_datasets", JSON.stringify(t)));
|
|
85
85
|
});
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
window.removeEventListener("click",
|
|
89
|
+
window.removeEventListener("click", j);
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
j(D, (n) => f.value = !1), j(E, (n) => x.value = "");
|
|
92
92
|
let F = async (n, e) => {
|
|
93
93
|
let t = 10;
|
|
94
94
|
e != null && (t = t + 10);
|
|
95
|
-
let o =
|
|
95
|
+
let o = pe.stringify({
|
|
96
96
|
text: n,
|
|
97
97
|
limit: t
|
|
98
98
|
});
|
|
99
|
-
var
|
|
99
|
+
var r = {
|
|
100
100
|
method: "post",
|
|
101
101
|
url: b == "eurovoc" ? k.content.dataProviderInterface.annifLinkSubject : k.content.dataProviderInterface.annifLinkTheme,
|
|
102
102
|
headers: {
|
|
@@ -105,93 +105,97 @@ const me = { class: "formkitProperty" }, ve = {
|
|
|
105
105
|
},
|
|
106
106
|
data: o
|
|
107
107
|
};
|
|
108
|
-
|
|
108
|
+
me(r).then(async (l) => {
|
|
109
109
|
for (let y = 0; y < l.data.results.length; y++)
|
|
110
|
-
|
|
110
|
+
I[y] = { name: l.data.results[y].label, resource: l.data.results[y].uri, activeValue: !1 };
|
|
111
111
|
let w = [];
|
|
112
112
|
g.value.length > 0 && g.value.forEach((y) => {
|
|
113
113
|
w.push({ name: y.name, resource: y.resource, activeValue: !0 });
|
|
114
|
-
}), l.data.results.length > 9 && (
|
|
114
|
+
}), l.data.results.length > 9 && (I[I.length + 1] = { name: "...", resource: "invalid", activeValue: !1 }), P.value = ee(w, I);
|
|
115
115
|
}).catch(function(l) {
|
|
116
116
|
console.log(l);
|
|
117
117
|
});
|
|
118
118
|
};
|
|
119
|
-
async function
|
|
120
|
-
n.resource === "invalid" ?
|
|
119
|
+
async function Z(n) {
|
|
120
|
+
n.resource === "invalid" ? L(5) : ($({ name: n.name, resource: n.resource }), L());
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
let t = n.concat(e), o = [],
|
|
122
|
+
function ee(n, e) {
|
|
123
|
+
let t = n.concat(e), o = [], r = /* @__PURE__ */ new Set();
|
|
124
124
|
return t.forEach((l) => {
|
|
125
|
-
|
|
125
|
+
r.has(l.resource) || (r.add(l.resource), l.activeValue || o.push(l));
|
|
126
126
|
}), o;
|
|
127
127
|
}
|
|
128
|
-
const
|
|
129
|
-
let e =
|
|
128
|
+
const L = async (n) => {
|
|
129
|
+
let e = de("Mandatory").value["dct:description"];
|
|
130
130
|
for (let t = 0; t < e.length; t++)
|
|
131
131
|
e[t]["@language"] === "en" && (n != null ? await F(e[t]["@value"], 5) : await F(e[t]["@value"]));
|
|
132
|
-
}
|
|
132
|
+
}, te = _(() => {
|
|
133
|
+
var t, o, r, l;
|
|
134
|
+
const n = (o = (t = a == null ? void 0 : a.context) == null ? void 0 : t.attrs) == null ? void 0 : o.identifier, e = n ? `message.dataupload.datasets.${n}.placeholder_autocomplete` : null;
|
|
135
|
+
return e && G(e) ? S(e) : ((l = (r = a == null ? void 0 : a.context) == null ? void 0 : r.attrs) == null ? void 0 : l.placeholder) || "";
|
|
136
|
+
});
|
|
133
137
|
a.context.classes.outer += " autocompleteInput " + a.context.attrs.identifier;
|
|
134
|
-
const
|
|
135
|
-
if (
|
|
138
|
+
const $ = async (n) => {
|
|
139
|
+
if (x.value = "", Object.keys(n).length !== 1) {
|
|
136
140
|
if (g.value.length > 0 && (m = g.value), a.context.attrs.multiple)
|
|
137
141
|
if (m.length != 0) {
|
|
138
142
|
let e = { name: n.name, resource: n.resource }, t = m.filter((o) => o.name != n.name);
|
|
139
|
-
t.push(e),
|
|
143
|
+
t.push(e), d = t, await a.context.node.input(d);
|
|
140
144
|
} else
|
|
141
|
-
m.push({ name: n.name, resource: n.resource }),
|
|
145
|
+
m.push({ name: n.name, resource: n.resource }), d = m, await a.context.node.input(d);
|
|
142
146
|
else {
|
|
143
147
|
if (n.resource === "invalid")
|
|
144
148
|
return;
|
|
145
|
-
n === "erase" ? (await a.context.node.input({}),
|
|
149
|
+
n === "erase" ? (await a.context.node.input({}), O(n)) : (d = { name: n.name, resource: n.resource }, await a.context.node.input(d));
|
|
146
150
|
}
|
|
147
|
-
|
|
151
|
+
O();
|
|
148
152
|
}
|
|
149
|
-
},
|
|
153
|
+
}, ne = async (n) => {
|
|
150
154
|
let e = n.target.value;
|
|
151
|
-
await
|
|
152
|
-
const
|
|
153
|
-
name:
|
|
155
|
+
await K({ voc: b, text: e, base: k.api.baseUrl }).then((t) => {
|
|
156
|
+
const r = t.data.result.results.filter((l) => l.id !== "OP_DATPRO").map((l) => ({
|
|
157
|
+
name: R(l.pref_label, V.value, []) + " (" + l.id + ")",
|
|
154
158
|
resource: l.resource
|
|
155
159
|
}));
|
|
156
|
-
|
|
160
|
+
r.length === 0 ? C.value = { value: { name: Y } } : C.value = r;
|
|
157
161
|
});
|
|
158
162
|
};
|
|
159
|
-
function
|
|
160
|
-
a.context.node.input({}),
|
|
163
|
+
function ae(n) {
|
|
164
|
+
a.context.node.input({}), $("erase");
|
|
161
165
|
}
|
|
162
166
|
function W(n) {
|
|
163
|
-
k.content.dataProviderInterface.annifIntegration &&
|
|
167
|
+
k.content.dataProviderInterface.annifIntegration && L(), g.value.length > 0 && (m = g.value), m.splice(m.findIndex((e) => e.name == n.name), 1), d = m, a.context.node.input(d), O();
|
|
164
168
|
}
|
|
165
|
-
return (n, e) => (
|
|
166
|
-
|
|
169
|
+
return (n, e) => (i(), u("div", ge, [
|
|
170
|
+
c(q) ? (i(), u("h4", ye, v(n.$t("message.dataupload.distributions." + a.context.attrs.identifier + ".label")), 1)) : N("", !0),
|
|
167
171
|
e[14] || (e[14] = p()),
|
|
168
|
-
a.context.attrs.identifier != "licence" && !
|
|
172
|
+
a.context.attrs.identifier != "licence" && !c(q) ? (i(), u("h4", {
|
|
169
173
|
key: 1,
|
|
170
174
|
innerHTML: n.$t("message.dataupload.datasets." + a.context.attrs.identifier + ".label")
|
|
171
|
-
}, null, 8,
|
|
175
|
+
}, null, 8, he)) : N("", !0),
|
|
172
176
|
e[15] || (e[15] = p()),
|
|
173
|
-
s("div",
|
|
174
|
-
s("div",
|
|
175
|
-
!a.context.attrs.multiple && a.context.value.name ? (
|
|
176
|
-
s("a",
|
|
177
|
+
s("div", xe, [
|
|
178
|
+
s("div", ke, [
|
|
179
|
+
!a.context.attrs.multiple && a.context.value.name ? (i(), u("div", be, [
|
|
180
|
+
s("a", we, v(a.context.value.name), 1),
|
|
177
181
|
e[4] || (e[4] = p()),
|
|
178
182
|
s("div", {
|
|
179
183
|
class: "removeX",
|
|
180
|
-
onClick:
|
|
184
|
+
onClick: ae
|
|
181
185
|
})
|
|
182
|
-
])) : (
|
|
183
|
-
s("div",
|
|
186
|
+
])) : (i(), u("div", _e, [
|
|
187
|
+
s("div", Ce, [
|
|
184
188
|
X(s("input", {
|
|
185
189
|
ref_key: "acInput",
|
|
186
190
|
ref: E,
|
|
187
191
|
class: "autocompleteInputfield",
|
|
188
|
-
placeholder:
|
|
189
|
-
"onUpdate:modelValue": e[0] || (e[0] = (t) =>
|
|
192
|
+
placeholder: te.value,
|
|
193
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => M(x) ? x.value = t : x = t),
|
|
190
194
|
type: "text",
|
|
191
|
-
onKeyup: e[1] || (e[1] = (t) =>
|
|
192
|
-
onClick: e[2] || (e[2] = (t) =>
|
|
193
|
-
}, null, 40,
|
|
194
|
-
[
|
|
195
|
+
onKeyup: e[1] || (e[1] = (t) => ne(t)),
|
|
196
|
+
onClick: e[2] || (e[2] = (t) => M(f) ? f.value = !c(f) : f = !c(f))
|
|
197
|
+
}, null, 40, Ie), [
|
|
198
|
+
[re, c(x)]
|
|
195
199
|
])
|
|
196
200
|
]),
|
|
197
201
|
e[11] || (e[11] = p()),
|
|
@@ -200,20 +204,20 @@ const me = { class: "formkitProperty" }, ve = {
|
|
|
200
204
|
ref: D,
|
|
201
205
|
class: "autocompleteResultList"
|
|
202
206
|
}, [
|
|
203
|
-
(
|
|
207
|
+
(i(!0), u(T, null, A(c(C), (t) => (i(), u("li", {
|
|
204
208
|
key: t,
|
|
205
209
|
onClick: (o) => {
|
|
206
|
-
|
|
210
|
+
$(t), M(f) ? f.value = !c(f) : f = !c(f);
|
|
207
211
|
},
|
|
208
212
|
class: "p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC"
|
|
209
|
-
}, v(t.name), 9,
|
|
213
|
+
}, v(t.name), 9, Le))), 128))
|
|
210
214
|
], 512), [
|
|
211
|
-
[
|
|
215
|
+
[ie, c(f)]
|
|
212
216
|
]),
|
|
213
217
|
e[12] || (e[12] = p()),
|
|
214
|
-
|
|
215
|
-
(
|
|
216
|
-
s("div",
|
|
218
|
+
c(k).content.dataProviderInterface.annifIntegration && a.context.attrs.annifTheme ? (i(), u("div", Te, [
|
|
219
|
+
(i(!0), u(T, null, A(c(g), (t) => (i(), u("div", { key: t }, [
|
|
220
|
+
s("div", Ae, [
|
|
217
221
|
s("div", {
|
|
218
222
|
class: "d-flex",
|
|
219
223
|
onClick: (o) => {
|
|
@@ -225,13 +229,13 @@ const me = { class: "formkitProperty" }, ve = {
|
|
|
225
229
|
s("div", {
|
|
226
230
|
class: "removeX",
|
|
227
231
|
onClick: (o) => W(t)
|
|
228
|
-
}, null, 8,
|
|
229
|
-
], 8,
|
|
232
|
+
}, null, 8, Ve)
|
|
233
|
+
], 8, Se)
|
|
230
234
|
])
|
|
231
235
|
]))), 128)),
|
|
232
236
|
e[9] || (e[9] = p()),
|
|
233
|
-
s("div",
|
|
234
|
-
s("div",
|
|
237
|
+
s("div", Pe, [
|
|
238
|
+
s("div", Oe, [
|
|
235
239
|
s("h3", null, v(n.$t("message.dataupload.info.suggestions")), 1),
|
|
236
240
|
e[6] || (e[6] = p()),
|
|
237
241
|
s("span", null, v(n.$t("message.dataupload.info.suggestionText")), 1),
|
|
@@ -240,31 +244,31 @@ const me = { class: "formkitProperty" }, ve = {
|
|
|
240
244
|
class: "navlikeButton",
|
|
241
245
|
type: "button",
|
|
242
246
|
onClick: e[3] || (e[3] = (t) => {
|
|
243
|
-
|
|
247
|
+
L(), c(H).value = !0;
|
|
244
248
|
})
|
|
245
249
|
}, v(n.$t("message.dataupload.info.tryIt")), 1)
|
|
246
250
|
]),
|
|
247
251
|
e[8] || (e[8] = p()),
|
|
248
|
-
|
|
249
|
-
(
|
|
252
|
+
c(H).value ? (i(), u("div", $e, [
|
|
253
|
+
(i(!0), u(T, null, A(c(P), (t) => (i(), u("div", {
|
|
250
254
|
key: t,
|
|
251
255
|
class: "d-flex"
|
|
252
256
|
}, [
|
|
253
257
|
s("div", {
|
|
254
|
-
class:
|
|
258
|
+
class: ue(["activeResultsAutocompleteWrapper annifResults", { loadMore: t.resource === "invalid" }]),
|
|
255
259
|
onClick: (o) => {
|
|
256
|
-
t.activeValue = !t.activeValue,
|
|
260
|
+
t.activeValue = !t.activeValue, Z(t);
|
|
257
261
|
}
|
|
258
262
|
}, [
|
|
259
|
-
s("div",
|
|
263
|
+
s("div", Me, [
|
|
260
264
|
s("span", null, v(t.name), 1)
|
|
261
265
|
])
|
|
262
|
-
], 10,
|
|
266
|
+
], 10, Ne)
|
|
263
267
|
]))), 128))
|
|
264
|
-
])) :
|
|
268
|
+
])) : N("", !0)
|
|
265
269
|
])
|
|
266
|
-
])) : (
|
|
267
|
-
(
|
|
270
|
+
])) : (i(), u("div", Re, [
|
|
271
|
+
(i(!0), u(T, null, A(a.context.value, (t) => (i(), u("div", {
|
|
268
272
|
class: "activeResultsAutocompleteWrapper",
|
|
269
273
|
key: t
|
|
270
274
|
}, [
|
|
@@ -273,14 +277,14 @@ const me = { class: "formkitProperty" }, ve = {
|
|
|
273
277
|
s("div", {
|
|
274
278
|
class: "removeX",
|
|
275
279
|
onClick: (o) => W(t)
|
|
276
|
-
}, null, 8,
|
|
280
|
+
}, null, 8, je)
|
|
277
281
|
]))), 128))
|
|
278
282
|
])),
|
|
279
283
|
e[13] || (e[13] = p()),
|
|
280
284
|
s("div", {
|
|
281
285
|
innerHTML: a.context.attrs.info,
|
|
282
286
|
class: "formkit-help"
|
|
283
|
-
}, null, 8,
|
|
287
|
+
}, null, 8, De)
|
|
284
288
|
]))
|
|
285
289
|
])
|
|
286
290
|
])
|
|
@@ -288,6 +292,6 @@ const me = { class: "formkitProperty" }, ve = {
|
|
|
288
292
|
}
|
|
289
293
|
};
|
|
290
294
|
export {
|
|
291
|
-
|
|
295
|
+
Ke as default
|
|
292
296
|
};
|
|
293
297
|
//# sourceMappingURL=AutocompleteInput.vue.mjs.map
|