@piveau/piveau-hub-ui-modules 4.6.82 → 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.
Files changed (74) hide show
  1. package/dist/composables/useRuntimeEnv.d.ts +1 -1
  2. package/dist/configurations/config-schema/apiSchema.mjs +1 -1
  3. package/dist/configurations/config-schema/authenticationSchema.mjs +1 -1
  4. package/dist/configurations/config-schema/configSchema.d.ts +1 -1
  5. package/dist/configurations/config-schema/configSchema.mjs +1 -1
  6. package/dist/configurations/config-schema/contentSchema.mjs +1 -1
  7. package/dist/configurations/config-schema/languagesSchema.mjs +1 -1
  8. package/dist/configurations/config-schema/metadataSchema.mjs +1 -1
  9. package/dist/configurations/config-schema/routingSchema.mjs +1 -1
  10. package/dist/configurations/config-schema/themesSchema.mjs +1 -1
  11. package/dist/configurations/config-schema/trackerSchema.mjs +1 -1
  12. package/dist/data-provider-interface/DPIMenu.vue.d.ts +3 -3
  13. package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +7 -7
  14. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +110 -106
  15. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
  16. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +99 -80
  17. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
  18. package/dist/data-provider-interface/components/DataFetchingComponent.vue.d.ts +1 -1
  19. package/dist/data-provider-interface/components/Dropup.vue.d.ts +1 -1
  20. package/dist/data-provider-interface/components/FileUpload.vue.d.ts +1 -1
  21. package/dist/data-provider-interface/components/Navigation.vue.d.ts +5 -5
  22. package/dist/data-provider-interface/views/DistributionOverview.vue.d.ts +2 -2
  23. package/dist/data-provider-interface/views/DraftsPage.vue.d.ts +2 -2
  24. package/dist/data-provider-interface/views/InputPage.vue.d.ts +7 -7
  25. package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs.map +1 -1
  26. package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.mjs.map +1 -1
  27. package/dist/data-provider-interface/views/OverviewPage.vue.d.ts +1 -1
  28. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs +35 -33
  29. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs.map +1 -1
  30. package/dist/datasetDetails/distributions/DistributionFormat.vue.d.ts +2 -2
  31. package/dist/datasetDetails/distributions/DistributionsHeader.vue.d.ts +4 -4
  32. package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.d.ts +8 -8
  33. package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.d.ts +2 -2
  34. package/dist/datasetDetails/distributions/distributionActions/DistributionDropdownDownload.vue.d.ts +2 -2
  35. package/dist/datasetDetails/distributions/distributionActions/DistributionOptionsDropdown.vue.d.ts +4 -4
  36. package/dist/datasetDetails/distributions/distributionActions/DistributionPreview.vue.d.ts +4 -4
  37. package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.d.ts +4 -4
  38. package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs +17 -17
  39. package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs.map +1 -1
  40. package/dist/datasetDetails/distributions/distributionDetails/DistributionDescription.vue.d.ts +6 -6
  41. package/dist/datasetDetails/distributions/distributionDetails/DistributionDetails.vue.d.ts +16 -16
  42. package/dist/datasetDetails/distributions/distributionDetails/DistributionExpand.vue.d.ts +2 -2
  43. package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.d.ts +1 -1
  44. package/dist/datasetDetails/header/DatasetDetailsHeaderCatalogue.vue.d.ts +1 -1
  45. package/dist/datasetDetails/header/DatasetDetailsHeaderTitle.vue.d.ts +2 -2
  46. package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +2 -2
  47. package/dist/datasetDetails/navigation/DatasetDetailsNavigationPages.vue.d.ts +7 -1
  48. package/dist/datasetDetails/properties/DatasetDetailsProperties.vue.d.ts +200 -1
  49. package/dist/external/zod/dist/esm/v3/ZodError +84 -0
  50. package/dist/external/zod/dist/esm/v3/ZodError.map +1 -0
  51. package/dist/external/zod/dist/esm/v3/errors.map +1 -0
  52. package/dist/external/zod/dist/esm/v3/helpers/errorUtil.map +1 -0
  53. package/dist/external/zod/dist/esm/v3/helpers/parseUtil.map +1 -0
  54. package/dist/external/zod/dist/esm/v3/helpers/util.map +1 -0
  55. package/dist/external/zod/{v3 → dist/esm/v3}/locales/en +4 -4
  56. package/dist/external/zod/dist/esm/v3/locales/en.map +1 -0
  57. package/dist/external/zod/{v3 → dist/esm/v3}/types +544 -524
  58. package/dist/external/zod/dist/esm/v3/types.map +1 -0
  59. package/dist/piveau-hub-ui-modules.css +1 -1
  60. package/dist/services/datasetService.d.ts +1 -1
  61. package/dist/widgets/Pagination.vue.d.ts +1 -1
  62. package/package.json +1 -1
  63. package/dist/external/zod/v3/ZodError +0 -88
  64. package/dist/external/zod/v3/ZodError.map +0 -1
  65. package/dist/external/zod/v3/errors.map +0 -1
  66. package/dist/external/zod/v3/helpers/errorUtil.map +0 -1
  67. package/dist/external/zod/v3/helpers/parseUtil.map +0 -1
  68. package/dist/external/zod/v3/helpers/util.map +0 -1
  69. package/dist/external/zod/v3/locales/en.map +0 -1
  70. package/dist/external/zod/v3/types.map +0 -1
  71. /package/dist/external/zod/{v3 → dist/esm/v3}/errors +0 -0
  72. /package/dist/external/zod/{v3 → dist/esm/v3}/helpers/errorUtil +0 -0
  73. /package/dist/external/zod/{v3 → dist/esm/v3}/helpers/parseUtil +0 -0
  74. /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 s, string as r } from "../../external/zod/v3/types";
1
+ import { object as s, string as r } from "../../external/zod/dist/esm/v3/types";
2
2
  function a(t) {
3
3
  return t.endsWith("/") ? t : `${t}/`;
4
4
  }
@@ -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 a, boolean as l, string as e } from "../../external/zod/v3/types";
1
+ import { object as a, boolean as l, string as e } from "../../external/zod/dist/esm/v3/types";
2
2
  const t = a({
3
3
  useLanguageSelector: l().default(!0),
4
4
  locale: e().default("en"),
@@ -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("/"),
@@ -1,4 +1,4 @@
1
- import { object as e, string as t } from "../../external/zod/v3/types";
1
+ import { object as e, string as t } from "../../external/zod/dist/esm/v3/types";
2
2
  const r = e({
3
3
  header: t().default("dark")
4
4
  }).default({});
@@ -1,4 +1,4 @@
1
- import { object as t, boolean as a, string as e } from "../../external/zod/v3/types";
1
+ import { object as t, boolean as a, string as e } from "../../external/zod/dist/esm/v3/types";
2
2
  const o = t({
3
3
  isPiwikPro: a().default(!1),
4
4
  siteId: e().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
- getOtherIdentifiers: import('vuex').Computed;
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 ne, computed as L, ref as x, onMounted as ae, watch as B, watchEffect as le, openBlock as r, createElementBlock as i, unref as u, toDisplayString as v, createCommentVNode as $, createTextVNode as p, createElementVNode as s, withDirectives as X, isRef as N, vModelText as oe, Fragment as T, renderList as A, vShow as se, normalizeClass as re } from "vue";
2
- import { useStore as ie } from "vuex";
3
- import { getTranslationFor as M } from "../../utils/helpers.mjs";
4
- import { getNode as ue } from "@formkit/core";
5
- import { onClickOutside as R } from "../../external/@vueuse/core/index";
6
- import { useI18n as ce } from "vue-i18n";
7
- import de from "qs";
8
- import fe from "axios";
9
- import { useAutocomplete as pe } from "../composables/aucotomplete.mjs";
10
- const me = { class: "formkitProperty" }, ve = {
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
- }, ge = ["innerHTML"], ye = { class: "formkitCmpWrap" }, xe = { class: "formkit-outer" }, he = {
13
+ }, he = ["innerHTML"], xe = { class: "formkitCmpWrap" }, ke = { class: "formkit-outer" }, be = {
14
14
  key: 0,
15
15
  class: "d-flex formkit-inner"
16
- }, ke = { class: "autocompleteInputSingleValue" }, be = { key: 1 }, we = { class: "d-flex align-items-center justify-content-center formkit-inner mb-2" }, _e = ["placeholder"], Ce = ["onClick"], Ie = {
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
- }, Le = { class: "activeResultsAutocompleteWrapper" }, Te = ["onClick"], Ae = ["onClick"], Se = { class: "w-100 mt-4" }, Ve = { class: "d-flex justify-content-between align-items-center flex-wrap" }, Pe = {
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
- }, Oe = ["onClick"], $e = { class: "d-flex" }, Ne = {
22
+ }, Ne = ["onClick"], Me = { class: "d-flex" }, Re = {
23
23
  key: 1,
24
24
  class: "d-flex flex-wrap"
25
- }, Me = ["onClick"], Re = ["innerHTML"], Xe = {
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 = ne().appContext.app.config.globalProperties.$env;
32
- const { requestAutocompleteSuggestions: z, requestResourceName: G } = pe(), a = J;
33
- ie();
34
- const { t: j, locale: S } = ce();
35
- let g = L(() => a.context.value), c, b = a.context.attrs.voc, K = L(() => j("message.dataupload.info.searchVocabulary")), Q = L(() => j("message.dataupload.info.matchesNothingFound")), _ = x({
36
- value: { name: K }
37
- }), f = x(), D = x(null), E = x(null), h = x({}), m = [], C = [], H = x({
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
- x();
41
- let V = x({});
42
- ae(async () => {
43
- h.value = "";
40
+ h();
41
+ let P = h({});
42
+ oe(async () => {
43
+ x.value = "";
44
44
  });
45
- let q = L(() => {
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(_, async () => {
53
- }), B(V, async () => {
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 G({ voc: b, uri: n, envs: k }).then(
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 : M(o.data.result.alt_label, S.value, [])) : o != null && (t = e ? o.data.result.results.filter((l) => l.resource === n).map((l) => l.pref_label)[0].en : M(o.data.result.pref_label, S.value, []));
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
- le(async () => {
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 P(n) {
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 d = 0; d < Object.keys(t)[o].length; d++) {
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][d]).filter((w) => {
84
- w === a.context.node.name && (e.step = l[o][0], n === "erase" && (c = {}, t[e.step][e.prop] = c), t[e.step][e.prop] = c, localStorage.setItem("dpi_datasets", JSON.stringify(t)));
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", R);
89
+ window.removeEventListener("click", j);
90
90
  }
91
- R(D, (n) => f.value = !1), R(E, (n) => h.value = "");
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 = de.stringify({
95
+ let o = pe.stringify({
96
96
  text: n,
97
97
  limit: t
98
98
  });
99
- var d = {
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
- fe(d).then(async (l) => {
108
+ me(r).then(async (l) => {
109
109
  for (let y = 0; y < l.data.results.length; y++)
110
- C[y] = { name: l.data.results[y].label, resource: l.data.results[y].uri, activeValue: !1 };
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 && (C[C.length + 1] = { name: "...", resource: "invalid", activeValue: !1 }), V.value = Z(w, C);
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 Y(n) {
120
- n.resource === "invalid" ? I(5) : (O({ name: n.name, resource: n.resource }), I());
119
+ async function Z(n) {
120
+ n.resource === "invalid" ? L(5) : ($({ name: n.name, resource: n.resource }), L());
121
121
  }
122
- function Z(n, e) {
123
- let t = n.concat(e), o = [], d = /* @__PURE__ */ new Set();
122
+ function ee(n, e) {
123
+ let t = n.concat(e), o = [], r = /* @__PURE__ */ new Set();
124
124
  return t.forEach((l) => {
125
- d.has(l.resource) || (d.add(l.resource), l.activeValue || o.push(l));
125
+ r.has(l.resource) || (r.add(l.resource), l.activeValue || o.push(l));
126
126
  }), o;
127
127
  }
128
- const I = async (n) => {
129
- let e = ue("Mandatory").value["dct:description"];
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 O = async (n) => {
135
- if (h.value = "", Object.keys(n).length !== 1) {
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), c = t, await a.context.node.input(c);
143
+ t.push(e), d = t, await a.context.node.input(d);
140
144
  } else
141
- m.push({ name: n.name, resource: n.resource }), c = m, await a.context.node.input(c);
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({}), P(n)) : (c = { name: n.name, resource: n.resource }, await a.context.node.input(c));
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
- P();
151
+ O();
148
152
  }
149
- }, ee = async (n) => {
153
+ }, ne = async (n) => {
150
154
  let e = n.target.value;
151
- await z({ voc: b, text: e, base: k.api.baseUrl }).then((t) => {
152
- const d = t.data.result.results.filter((l) => l.id !== "OP_DATPRO").map((l) => ({
153
- name: M(l.pref_label, S.value, []) + " (" + l.id + ")",
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
- d.length === 0 ? _.value = { value: { name: Q } } : _.value = d;
160
+ r.length === 0 ? C.value = { value: { name: Y } } : C.value = r;
157
161
  });
158
162
  };
159
- function te(n) {
160
- a.context.node.input({}), O("erase");
163
+ function ae(n) {
164
+ a.context.node.input({}), $("erase");
161
165
  }
162
166
  function W(n) {
163
- k.content.dataProviderInterface.annifIntegration && I(), g.value.length > 0 && (m = g.value), m.splice(m.findIndex((e) => e.name == n.name), 1), c = m, a.context.node.input(c), P();
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) => (r(), i("div", me, [
166
- u(q) ? (r(), i("h4", ve, v(n.$t("message.dataupload.distributions." + a.context.attrs.identifier + ".label")), 1)) : $("", !0),
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" && !u(q) ? (r(), i("h4", {
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, ge)) : $("", !0),
175
+ }, null, 8, he)) : N("", !0),
172
176
  e[15] || (e[15] = p()),
173
- s("div", ye, [
174
- s("div", xe, [
175
- !a.context.attrs.multiple && a.context.value.name ? (r(), i("div", he, [
176
- s("a", ke, v(a.context.value.name), 1),
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: te
184
+ onClick: ae
181
185
  })
182
- ])) : (r(), i("div", be, [
183
- s("div", we, [
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: a.context.attrs.placeholder,
189
- "onUpdate:modelValue": e[0] || (e[0] = (t) => N(h) ? h.value = t : h = 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) => ee(t)),
192
- onClick: e[2] || (e[2] = (t) => N(f) ? f.value = !u(f) : f = !u(f))
193
- }, null, 40, _e), [
194
- [oe, u(h)]
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
- (r(!0), i(T, null, A(u(_), (t) => (r(), i("li", {
207
+ (i(!0), u(T, null, A(c(C), (t) => (i(), u("li", {
204
208
  key: t,
205
209
  onClick: (o) => {
206
- O(t), N(f) ? f.value = !u(f) : f = !u(f);
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, Ce))), 128))
213
+ }, v(t.name), 9, Le))), 128))
210
214
  ], 512), [
211
- [se, u(f)]
215
+ [ie, c(f)]
212
216
  ]),
213
217
  e[12] || (e[12] = p()),
214
- u(k).content.dataProviderInterface.annifIntegration && a.context.attrs.annifTheme ? (r(), i("div", Ie, [
215
- (r(!0), i(T, null, A(u(g), (t) => (r(), i("div", { key: t }, [
216
- s("div", Le, [
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, Ae)
229
- ], 8, Te)
232
+ }, null, 8, Ve)
233
+ ], 8, Se)
230
234
  ])
231
235
  ]))), 128)),
232
236
  e[9] || (e[9] = p()),
233
- s("div", Se, [
234
- s("div", Ve, [
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
- I(), u(H).value = !0;
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
- u(H).value ? (r(), i("div", Pe, [
249
- (r(!0), i(T, null, A(u(V), (t) => (r(), i("div", {
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: re(["activeResultsAutocompleteWrapper annifResults", { loadMore: t.resource === "invalid" }]),
258
+ class: ue(["activeResultsAutocompleteWrapper annifResults", { loadMore: t.resource === "invalid" }]),
255
259
  onClick: (o) => {
256
- t.activeValue = !t.activeValue, Y(t);
260
+ t.activeValue = !t.activeValue, Z(t);
257
261
  }
258
262
  }, [
259
- s("div", $e, [
263
+ s("div", Me, [
260
264
  s("span", null, v(t.name), 1)
261
265
  ])
262
- ], 10, Oe)
266
+ ], 10, Ne)
263
267
  ]))), 128))
264
- ])) : $("", !0)
268
+ ])) : N("", !0)
265
269
  ])
266
- ])) : (r(), i("div", Ne, [
267
- (r(!0), i(T, null, A(a.context.value, (t) => (r(), i("div", {
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, Me)
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, Re)
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
- Xe as default
295
+ Ke as default
292
296
  };
293
297
  //# sourceMappingURL=AutocompleteInput.vue.mjs.map