@piveau/piveau-hub-ui-modules 4.4.2 → 4.4.3

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.
@@ -1,9 +1,11 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
- value: {
2
+ modelValue: {
3
3
  type: StringConstructor;
4
4
  default: string;
5
5
  };
6
- }, any, {
6
+ }, {
7
+ locale: import('vue').Ref<string>;
8
+ }, {
7
9
  languages: {
8
10
  bg: string;
9
11
  cs: string;
@@ -30,17 +32,12 @@ declare const _default: import('vue').DefineComponent<{
30
32
  fi: string;
31
33
  sv: string;
32
34
  };
33
- }, {
34
- locale: {
35
- get(): any;
36
- set(newLocale: any): void;
37
- };
38
- }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
39
- value: {
35
+ }, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
36
+ modelValue: {
40
37
  type: StringConstructor;
41
38
  default: string;
42
39
  };
43
40
  }>>, {
44
- value: string;
41
+ modelValue: string;
45
42
  }, {}>;
46
43
  export default _default;
@@ -1,6 +1,7 @@
1
- import { openBlock as t, createElementBlock as a, withDirectives as o, createElementVNode as i, Fragment as u, renderList as c, toDisplayString as p, vModelSelect as d } from "vue";
1
+ import { useVModel as s } from "../../external/@vueuse/core/index";
2
+ import { defineComponent as r, openBlock as l, createElementBlock as o, withDirectives as i, createElementVNode as u, Fragment as p, renderList as d, toDisplayString as c, vModelSelect as m } from "vue";
2
3
  import g from "../../_virtual/_plugin-vue_export-helper.mjs";
3
- const m = {
4
+ const f = r({
4
5
  name: "LanguageSelector",
5
6
  data() {
6
7
  return {
@@ -33,39 +34,32 @@ const m = {
33
34
  };
34
35
  },
35
36
  props: {
36
- value: {
37
+ modelValue: {
37
38
  type: String,
38
39
  default: "en"
39
40
  }
40
41
  },
41
- computed: {
42
- locale: {
43
- get() {
44
- return this.value;
45
- },
46
- set(l) {
47
- this.$emit("input", l);
48
- }
49
- }
50
- },
51
42
  created() {
43
+ },
44
+ setup(e, { emit: a }) {
45
+ return { locale: s(e, "modelValue", a, { passive: !0 }) };
52
46
  }
53
- }, v = { class: "d-inline-block" }, f = ["value"];
54
- function k(l, s, _, h, n, r) {
55
- return t(), a("span", v, [
56
- o(i("select", {
57
- "onUpdate:modelValue": s[0] || (s[0] = (e) => r.locale = e)
47
+ }), v = { class: "d-inline-block" }, k = ["value"];
48
+ function h(e, a, n, _, y, S) {
49
+ return l(), o("span", v, [
50
+ i(u("select", {
51
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => e.locale = t)
58
52
  }, [
59
- (t(!0), a(u, null, c(Object.keys(n.languages), (e) => (t(), a("option", {
60
- key: e,
61
- value: e
62
- }, p(n.languages[e]), 9, f))), 128))
53
+ (l(!0), o(p, null, d(Object.keys(e.languages), (t) => (l(), o("option", {
54
+ key: t,
55
+ value: t
56
+ }, c(e.languages[t]), 9, k))), 128))
63
57
  ], 512), [
64
- [d, r.locale]
58
+ [m, e.locale]
65
59
  ])
66
60
  ]);
67
61
  }
68
- const b = /* @__PURE__ */ g(m, [["render", k]]);
62
+ const b = /* @__PURE__ */ g(f, [["render", h]]);
69
63
  export {
70
64
  b as default
71
65
  };
@@ -1 +1 @@
1
- {"version":3,"file":"LanguageSelector.vue.mjs","sources":["../../../lib/data-provider-interface/components/LanguageSelector.vue"],"sourcesContent":["<!-- LANGUAGE SELECTOR -->\n<template>\n <span class=\"d-inline-block\">\n <select v-model=\"locale\">\n <option v-for=\"lang in Object.keys(languages)\" :key=\"lang\" :value=\"lang\">{{ languages[lang] }}</option>\n </select>\n </span>\n</template>\n \n <script>\n export default {\n name: 'LanguageSelector',\n data() {\n return {\n languages: {\n bg: 'Български',\n cs: 'čeština',\n da: 'dansk',\n de: 'Deutsch',\n el: 'Ελληνικά',\n en: 'English',\n es: 'español',\n et: 'eesti',\n fr: 'français',\n ga: 'Gaeilge',\n hr: 'Hrvatski',\n hu: 'Magyar',\n it: 'italiano',\n lt: 'lietuvių',\n lv: 'latviešu',\n mt: 'Malti',\n nl: 'Nederlands',\n pl: 'polski',\n pt: 'português',\n ro: 'română',\n sk: 'slovenčina',\n sl: 'slovenščina',\n fi: 'suomi',\n sv: 'svenska',\n },\n };\n },\n props: {\n value: {\n type: String,\n default: 'en',\n },\n },\n computed: {\n locale: {\n get() {\n return this.value;\n },\n set(newLocale) {\n this.$emit('input', newLocale);\n }\n }\n },\n created() {},\n };\n </script>\n \n <style lang=\"scss\" scoped>\n </style>\n "],"names":["_sfc_main","newLocale","_hoisted_1","_hoisted_2","_openBlock","_createElementBlock","_createElementVNode","_cache","$event","$options","_Fragment","_renderList","$data","lang"],"mappings":";;AAUE,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO;AACL,WAAO;AAAA,MACL,WAAW;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA;EAEJ;AAAA,EACD,OAAO;AAAA,IACL,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACF;AAAA,EACD,UAAU;AAAA,IACN,QAAQ;AAAA,MACJ,MAAM;AACF,eAAO,KAAK;AAAA,MACf;AAAA,MACD,IAAIC,GAAW;AACX,aAAK,MAAM,SAASA,CAAS;AAAA,MACjC;AAAA,IACJ;AAAA,EACH;AAAA,EACD,UAAU;AAAA,EAAE;GAxDNC,IAAA,EAAA,OAAM,iBAAgB,GAFhCC,IAAA,CAAA,OAAA;;AAEI,SAAAC,EAAA,GAAAC,EAIO,QAJPH,GAIO;AAAA,MAHHI,EAES,UAAA;AAAA,MALjB,uBAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAGyBC,EAAM,SAAAD;AAAA;cACnBH,EAAuGK,GAAA,MAJnHC,EAImC,OAAO,KAAKC,EAAA,SAAS,GAJxD,CAI2BC,YAAfR,EAAuG,UAAA;AAAA,QAAvD,KAAKQ;AAAA,QAAO,OAAOA;AAAA,WAASD,EAAS,UAACC,CAAI,CAJtG,GAAA,GAAAV,CAAA;;UAGyBM,EAAM,MAAA;AAAA;;;;"}
1
+ {"version":3,"file":"LanguageSelector.vue.mjs","sources":["../../../lib/data-provider-interface/components/LanguageSelector.vue"],"sourcesContent":["<!-- LANGUAGE SELECTOR -->\n<template>\n <span class=\"d-inline-block\">\n <select v-model=\"locale\">\n <option v-for=\"lang in Object.keys(languages)\" :key=\"lang\" :value=\"lang\">{{ languages[lang] }}</option>\n </select>\n </span>\n</template>\n \n <script>\n import { useVModel } from '@vueuse/core';\nimport { defineComponent } from 'vue';\n\n export default defineComponent({\n name: 'LanguageSelector',\n data() {\n return {\n languages: {\n bg: 'Български',\n cs: 'čeština',\n da: 'dansk',\n de: 'Deutsch',\n el: 'Ελληνικά',\n en: 'English',\n es: 'español',\n et: 'eesti',\n fr: 'français',\n ga: 'Gaeilge',\n hr: 'Hrvatski',\n hu: 'Magyar',\n it: 'italiano',\n lt: 'lietuvių',\n lv: 'latviešu',\n mt: 'Malti',\n nl: 'Nederlands',\n pl: 'polski',\n pt: 'português',\n ro: 'română',\n sk: 'slovenčina',\n sl: 'slovenščina',\n fi: 'suomi',\n sv: 'svenska',\n },\n };\n },\n props: {\n modelValue: {\n type: String,\n default: 'en',\n },\n },\n created() {},\n setup(props, { emit }) {\n const locale = useVModel(props, 'modelValue', emit, { passive: true });\n\n return { locale }\n }\n });\n </script>\n \n <style lang=\"scss\" scoped>\n </style>\n "],"names":["_sfc_main","defineComponent","props","emit","useVModel","_hoisted_1","_hoisted_2","_openBlock","_createElementBlock","_createElementVNode","_cache","$event","_ctx","_Fragment","_renderList","lang"],"mappings":";;;AAaE,MAAKA,IAAaC,EAAa;AAAA,EAC7B,MAAM;AAAA,EACN,OAAO;AACL,WAAO;AAAA,MACL,WAAW;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA;EAEJ;AAAA,EACD,OAAO;AAAA,IACL,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACF;AAAA,EACD,UAAU;AAAA,EAAE;AAAA,EACZ,MAAMC,GAAO,EAAE,MAAAC,KAAQ;AAGrB,WAAO,EAAE,QAFMC,EAAUF,GAAO,cAAcC,GAAM,EAAE,SAAS,GAAK,CAAC,EAErD;AAAA,EAClB;AACF,CAAC,GAvDOE,IAAA,EAAA,OAAM,iBAAgB,GAFhCC,IAAA,CAAA,OAAA;;AAEI,SAAAC,EAAA,GAAAC,EAIO,QAJPH,GAIO;AAAA,MAHHI,EAES,UAAA;AAAA,MALjB,uBAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAGyBC,EAAM,SAAAD;AAAA;cACnBH,EAAuGK,GAAA,MAJnHC,EAImC,OAAO,KAAKF,EAAA,SAAS,GAJxD,CAI2BG,YAAfP,EAAuG,UAAA;AAAA,QAAvD,KAAKO;AAAA,QAAO,OAAOA;AAAA,WAASH,EAAS,UAACG,CAAI,CAJtG,GAAA,GAAAT,CAAA;;UAGyBM,EAAM,MAAA;AAAA;;;;"}
@@ -25,11 +25,10 @@ declare const _default: import('vue').DefineComponent<{
25
25
  context: {
26
26
  type: ObjectConstructor;
27
27
  };
28
- }, any, {
29
- dpiLocale: string;
30
- }, {
28
+ }, any, any, {
31
29
  showDatasetsOverview(): boolean;
32
30
  showCatalogsOverview(): boolean;
31
+ dpiLocale(): any;
33
32
  getData: import('vuex').Computed;
34
33
  getIsEditMode: import('vuex').Computed;
35
34
  }, {
@@ -215,12 +215,12 @@ declare const _default: import('vue').DefineComponent<{
215
215
  getDistributions(): any;
216
216
  showTable(): boolean;
217
217
  storeData(): any;
218
+ getTitle(): any;
219
+ getDescription(): any;
218
220
  getData: import('vuex').Computed;
219
221
  }, {
220
222
  checkIfPropertySet(data: any, property: any): any;
221
223
  checkIfPropertyValueSet(data: any, property: any, value: any): any;
222
- getTitle(): any;
223
- getDescription(): any;
224
224
  reqName(URI: any): Promise<any>;
225
225
  requestFirstEntrySuggestions: import('vuex').ActionMethod;
226
226
  requestAutocompleteSuggestions: import('vuex').ActionMethod;
@@ -2,7 +2,7 @@ import D from "./PropertyEntry.vue.mjs";
2
2
  import R from "./DistributionOverview.vue.mjs";
3
3
  import { mapGetters as L, mapActions as I } from "vuex";
4
4
  import U from "axios";
5
- import { resolveComponent as b, openBlock as o, createElementBlock as c, createElementVNode as e, createTextVNode as s, toDisplayString as d, createVNode as p, Fragment as v, renderList as y, createCommentVNode as g } from "vue";
5
+ import { resolveComponent as b, openBlock as o, createElementBlock as c, createElementVNode as t, toDisplayString as i, createTextVNode as s, createVNode as p, Fragment as v, renderList as y, createCommentVNode as g } from "vue";
6
6
  import "./DatasetOverview.vue2.mjs";
7
7
  import w from "../../../_virtual/_plugin-vue_export-helper.mjs";
8
8
  const P = {
@@ -75,10 +75,16 @@ const P = {
75
75
  return this.getDatasets.distributionList || [];
76
76
  },
77
77
  showTable() {
78
- return Object.keys(this.tableProperties).filter((t) => this.getDatasets[t]).length > 0;
78
+ return Object.keys(this.tableProperties).filter((e) => this.getDatasets[e]).length > 0;
79
79
  },
80
80
  storeData() {
81
81
  return this.getData("datasets");
82
+ },
83
+ getTitle() {
84
+ return this.getDatasets["dct:title"] && this.getDatasets["dct:title"].filter((e) => e["@language"] === this.dpiLocale).map((e) => e["@value"])[0];
85
+ },
86
+ getDescription() {
87
+ return this.getDatasets["dct:description"] && this.getDatasets["dct:description"].filter((e) => e["@language"] === this.dpiLocale).map((e) => e["@value"])[0];
82
88
  }
83
89
  },
84
90
  methods: {
@@ -86,21 +92,15 @@ const P = {
86
92
  "requestFirstEntrySuggestions",
87
93
  "requestAutocompleteSuggestions"
88
94
  ]),
89
- checkIfPropertySet(t, l) {
90
- return t[l] != null ? t[l] : "No data available";
95
+ checkIfPropertySet(e, l) {
96
+ return e[l] != null ? e[l] : "-";
91
97
  },
92
- checkIfPropertyValueSet(t, l, i) {
93
- return t[l] != null && t[l][i] != null ? t[l][i] : "No data available";
98
+ checkIfPropertyValueSet(e, l, d) {
99
+ return e[l] != null && e[l][d] != null ? e[l][d] : "-";
94
100
  },
95
- getTitle() {
96
- return this.getDatasets["dct:title"] && this.getDatasets["dct:title"].filter((t) => t["@language"] === this.dpiLocale).map((t) => t["@value"])[0];
97
- },
98
- getDescription() {
99
- return this.getDatasets["dct:description"] && this.getDatasets["dct:description"].filter((t) => t["@language"] === this.dpiLocale).map((t) => t["@value"])[0];
100
- },
101
- async reqName(t) {
102
- let l = t.split("/"), i = `${this.$env.api.baseUrl}vocabularies/${l[l.length - 2]}/${l[l.length - 1]}`;
103
- return (await U.get(i)).data.result.pref_label[this.dpiLocale];
101
+ async reqName(e) {
102
+ let l = e.split("/"), d = `${this.$env.api.baseUrl}vocabularies/${l[l.length - 2]}/${l[l.length - 1]}`;
103
+ return (await U.get(d)).data.result.pref_label[this.dpiLocale];
104
104
  }
105
105
  },
106
106
  async mounted() {
@@ -109,120 +109,120 @@ const P = {
109
109
  });
110
110
  },
111
111
  watch: {
112
- storeData(t, l) {
113
- this.values = t;
112
+ storeData(e, l) {
113
+ this.values = e;
114
114
  }
115
115
  }
116
116
  }, k = {
117
117
  key: 0,
118
118
  class: "mt-2"
119
- }, x = { class: "overviewHeader p-3" }, S = { class: "firstRow d-flex" }, V = /* @__PURE__ */ e("div", { class: "datasetNotation dsd-title-tag d-flex align-items-center" }, [
120
- /* @__PURE__ */ e("span", null, "Dataset")
121
- ], -1), q = { class: "dsTitle" }, N = { class: "secondRow d-flex justify-content-between" }, B = { class: "dsCatalogue" }, O = /* @__PURE__ */ e("span", null, [
122
- /* @__PURE__ */ e("b", null, "Catalog:")
123
- ], -1), E = { href: "" }, T = { class: "dsPublisher" }, G = { class: "dsIssued" }, j = /* @__PURE__ */ e("span", null, [
124
- /* @__PURE__ */ e("b", null, "Issued:")
125
- ], -1), A = { class: "dsUpdated" }, C = /* @__PURE__ */ e("span", null, [
126
- /* @__PURE__ */ e("b", null, "Updated:")
127
- ], -1), M = { class: "dsMainWrap d-flex flex-column mt-3" }, F = { class: "" }, H = { class: "dsDesc px-3" }, K = { class: "" }, W = { class: "table table-borderless table-responsive bg-light disOverview p-3" }, z = {
119
+ }, S = { class: "overviewHeader p-3" }, V = { class: "firstRow d-flex" }, q = { class: "datasetNotation dsd-title-tag d-flex align-items-center" }, x = { class: "dsTitle" }, B = { class: "secondRow d-flex justify-content-between" }, O = { class: "dsCatalogue" }, E = { href: "" }, N = { class: "dsPublisher" }, T = { class: "dsIssued" }, G = { class: "dsUpdated" }, j = { class: "dsMainWrap d-flex flex-column mt-3" }, A = { class: "" }, C = { class: "dsDesc px-3" }, M = { class: "" }, F = { class: "table table-borderless table-responsive bg-light disOverview p-3" }, H = {
128
120
  key: 0,
129
121
  class: "dsDist b-top p-3"
130
- }, J = { class: "my-4" }, Q = {
122
+ }, K = { class: "my-4" }, W = {
131
123
  key: 1,
132
124
  class: "dsKeywords b-top my-2 p-3"
133
- }, X = { class: "my-4" }, Y = { class: "d-flex" }, Z = ["title"];
134
- function $(t, l, i, h, n, a) {
125
+ }, z = { class: "my-4" }, J = { class: "d-flex" }, Q = ["title"];
126
+ function X(e, l, d, h, n, a) {
135
127
  const m = b("PropertyEntry"), f = b("DistributionOverview");
136
128
  return n.pageLoaded ? (o(), c("div", k, [
137
- e("div", x, [
138
- e("div", S, [
139
- V,
129
+ t("div", S, [
130
+ t("div", V, [
131
+ t("div", q, [
132
+ t("span", null, i(e.$te("message.metadata.dataset") ? e.$t("message.metadata.dataset") : "Dataset"), 1)
133
+ ]),
140
134
  s(),
141
- e("h1", q, d(a.getTitle()), 1)
135
+ t("h1", x, i(a.getTitle), 1)
142
136
  ]),
143
137
  s(),
144
- e("div", N, [
145
- e("div", B, [
146
- O,
138
+ t("div", B, [
139
+ t("div", O, [
140
+ t("span", null, [
141
+ t("b", null, i(e.$te("message.metadata.catalog") ? e.$t("message.metadata.catalog") : "Catalogue") + ":", 1)
142
+ ]),
147
143
  s(),
148
- e("a", E, d(a.checkIfPropertySet(a.getDatasets, "dcat:catalog")), 1)
144
+ t("a", E, i(a.checkIfPropertySet(a.getDatasets, "dcat:catalog")), 1)
149
145
  ]),
150
146
  s(),
151
- e("div", T, [
147
+ t("div", N, [
152
148
  p(m, {
153
149
  profile: "datasets",
154
150
  data: a.getDatasets,
155
151
  property: "dct:publisher",
156
152
  value: { type: "special", voc: "corporate-body", label: "message.metadata.publisher", isHeader: !0 },
157
- dpiLocale: i.dpiLocale
153
+ dpiLocale: d.dpiLocale
158
154
  }, null, 8, ["data", "dpiLocale"])
159
155
  ]),
160
156
  s(),
161
- e("div", G, [
162
- j,
157
+ t("div", T, [
158
+ t("span", null, [
159
+ t("b", null, i(e.$te("message.dataupload.datasets.issued.label") ? e.$t("message.dataupload.datasets.issued.label") : "Issued") + ":", 1)
160
+ ]),
163
161
  s(),
164
- e("a", null, d(new Date(a.checkIfPropertyValueSet(a.getDatasets, "dct:issued", "@value")).toDateString()), 1)
162
+ t("a", null, i(new Date(a.checkIfPropertyValueSet(a.getDatasets, "dct:issued", "@value")).toDateString()), 1)
165
163
  ]),
166
164
  s(),
167
- e("div", A, [
168
- C,
165
+ t("div", G, [
166
+ t("span", null, [
167
+ t("b", null, i(e.$te("message.dataupload.datasets.modified.label") ? e.$t("message.dataupload.datasets.modified.label") : "Updated") + ":", 1)
168
+ ]),
169
169
  s(),
170
- e("a", null, d(new Date(a.checkIfPropertyValueSet(a.getDatasets, "dct:modified", "@value")).toDateString()), 1)
170
+ t("a", null, i(new Date(a.checkIfPropertyValueSet(a.getDatasets, "dct:modified", "@value")).toDateString()), 1)
171
171
  ])
172
172
  ])
173
173
  ]),
174
174
  s(),
175
- e("div", M, [
176
- e("div", F, [
177
- e("p", H, d(a.getDescription()), 1)
175
+ t("div", j, [
176
+ t("div", A, [
177
+ t("p", C, i(a.getDescription), 1)
178
178
  ]),
179
179
  s(),
180
- e("div", K, [
181
- e("table", W, [
180
+ t("div", M, [
181
+ t("table", F, [
182
182
  (o(!0), c(v, null, y(n.tableProperties, (r, u, _) => (o(), c("div", { key: _ }, [
183
183
  p(m, {
184
184
  profile: "datasets",
185
185
  data: n.values,
186
186
  property: u,
187
187
  value: r,
188
- dpiLocale: i.dpiLocale
188
+ dpiLocale: d.dpiLocale
189
189
  }, null, 8, ["data", "property", "value", "dpiLocale"])
190
190
  ]))), 128))
191
191
  ])
192
192
  ])
193
193
  ]),
194
194
  s(),
195
- a.getDistributions.length > 0 ? (o(), c("div", z, [
196
- e("h2", J, d(t.$t("message.metadata.distributions")) + " (" + d(a.getDistributions.length) + ")", 1),
195
+ a.getDistributions.length > 0 ? (o(), c("div", H, [
196
+ t("h2", K, i(e.$t("message.metadata.distributions")) + " (" + i(a.getDistributions.length) + ")", 1),
197
197
  s(),
198
198
  p(f, {
199
- dpiLocale: i.dpiLocale,
199
+ dpiLocale: d.dpiLocale,
200
200
  distributions: a.getDistributions
201
201
  }, null, 8, ["dpiLocale", "distributions"])
202
202
  ])) : g("", !0),
203
203
  s(),
204
- a.getDatasets["dct:keyword"] != null && a.getDatasets["dct:keyword"][0]["@value"] != null && a.getDatasets["dct:keyword"].length > 0 ? (o(), c("div", Q, [
205
- e("h2", X, [
204
+ a.getDatasets["dct:keyword"] != null && a.getDatasets["dct:keyword"][0]["@value"] != null && a.getDatasets["dct:keyword"].length > 0 ? (o(), c("div", W, [
205
+ t("h2", z, [
206
206
  s("Keywords "),
207
- e("span", null, "(" + d(a.getDatasets["dct:keyword"].length) + ")", 1)
207
+ t("span", null, "(" + i(a.getDatasets["dct:keyword"].length) + ")", 1)
208
208
  ]),
209
209
  s(),
210
- e("div", Y, [
211
- (o(!0), c(v, null, y(a.getDatasets["dct:keyword"].filter((r) => r["@language"] === i.dpiLocale), (r, u) => (o(), c("span", {
210
+ t("div", J, [
211
+ (o(!0), c(v, null, y(a.getDatasets["dct:keyword"].filter((r) => r["@language"] === d.dpiLocale), (r, u) => (o(), c("span", {
212
212
  class: "mx-1",
213
213
  key: u
214
214
  }, [
215
- e("small", {
215
+ t("small", {
216
216
  title: r,
217
217
  class: "d-inline-block w-100 p-2 ml-1 rounded-pill text-center text-white text-truncate bg-primary"
218
- }, d(r["@value"]), 9, Z)
218
+ }, i(r["@value"]), 9, Q)
219
219
  ]))), 128))
220
220
  ])
221
221
  ])) : g("", !0)
222
222
  ])) : g("", !0);
223
223
  }
224
- const oe = /* @__PURE__ */ w(P, [["render", $]]);
224
+ const le = /* @__PURE__ */ w(P, [["render", X]]);
225
225
  export {
226
- oe as default
226
+ le as default
227
227
  };
228
228
  //# sourceMappingURL=DatasetOverview.vue.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatasetOverview.vue.mjs","sources":["../../../../lib/data-provider-interface/views/OverviewPage/DatasetOverview.vue"],"sourcesContent":["<template>\n <div class=\"mt-2\" v-if=\"pageLoaded\">\n\n <div class=\"overviewHeader p-3\">\n <div class=\"firstRow d-flex \">\n <div class=\"datasetNotation dsd-title-tag d-flex align-items-center\"><span>Dataset</span></div>\n <h1 class=\"dsTitle\"> {{ getTitle() }}</h1>\n </div>\n <div class=\"secondRow d-flex justify-content-between\">\n <div class=\"dsCatalogue \">\n <span><b>Catalog:</b></span>\n <a href=\"\">\n {{ checkIfPropertySet(getDatasets, 'dcat:catalog') }}\n </a>\n </div>\n <div class=\"dsPublisher\">\n <PropertyEntry profile=\"datasets\" :data=\"getDatasets\" property='dct:publisher'\n :value=\"{ type: 'special', voc: 'corporate-body', label: 'message.metadata.publisher', isHeader: true }\"\n :dpiLocale=\"dpiLocale\"></PropertyEntry>\n </div>\n <div class=\"dsIssued \">\n <span><b>Issued:</b></span>\n <a>\n {{ new Date(checkIfPropertyValueSet(getDatasets, 'dct:issued', '@value')).toDateString() }}\n <!-- {{ new Date(getDatasets['dct:modified']).toISOString().split('T')[0] }} -->\n </a>\n </div>\n <div class=\"dsUpdated \">\n <span><b>Updated:</b></span>\n <a>\n {{ new Date(checkIfPropertyValueSet(getDatasets, 'dct:modified', '@value')).toDateString() }}\n <!-- {{ new Date(getDatasets['dct:modified']).toISOString().split('T')[0] }} -->\n </a>\n </div>\n </div>\n </div>\n <div class=\"dsMainWrap d-flex flex-column mt-3\">\n <div class=\"\">\n <p class=\"dsDesc px-3\">\n {{ getDescription() }}\n </p>\n </div>\n <div class=\"\">\n\n <table class=\"table table-borderless table-responsive bg-light disOverview p-3\">\n <div v-for=\"(value, name, index) in tableProperties\" :key=\"index\">\n\n <PropertyEntry profile=\"datasets\" :data=\"values\" :property=\"name\" :value=\"value\"\n :dpiLocale=\"dpiLocale\"></PropertyEntry>\n </div>\n </table>\n </div>\n </div>\n <div class=\"dsDist b-top p-3\" v-if=\"getDistributions.length > 0\">\n <h2 class=\"my-4\">{{ $t('message.metadata.distributions') }} ({{ getDistributions.length }})</h2>\n <DistributionOverview :dpiLocale=\"dpiLocale\" :distributions=\"getDistributions\"></DistributionOverview>\n </div>\n <div class=\"dsKeywords b-top my-2 p-3\"\n v-if=\"getDatasets['dct:keyword'] != undefined && getDatasets['dct:keyword'][0]['@value'] != undefined && getDatasets['dct:keyword'].length > 0\">\n <h2 class=\"my-4\">Keywords <span>({{ getDatasets['dct:keyword'].length }})</span></h2>\n <div class=\"d-flex\">\n <span class=\"mx-1\"\n v-for=\"( element, index ) in getDatasets['dct:keyword'].filter(el => el['@language'] === dpiLocale)\"\n :key=\"index\">\n <small :title=\"element\"\n class=\"d-inline-block w-100 p-2 ml-1 rounded-pill text-center text-white text-truncate bg-primary\">\n {{ element['@value'] }}\n </small>\n </span>\n </div>\n </div>\n </div>\n</template>\n\n<script>\n\nimport PropertyEntry from './PropertyEntry.vue';\nimport DistributionOverview from './DistributionOverview.vue';\nimport { mapGetters, mapActions } from 'vuex';\nimport axios from 'axios';\n\nexport default {\n data() {\n return {\n values: [],\n pageLoaded: false,\n tableProperties: {\n 'dct:publisher': { type: 'special', voc: 'corporate-body', label: 'message.metadata.publisher' },\n 'dcat:contactPoint': { type: 'special', voc: '', label: 'message.metadata.contactPoints' },\n 'dct:creator': { type: 'special', voc: '', label: 'message.metadata.creator' },\n // 'dct:issued': { type: 'date', label: 'message.metadata.created' },\n // 'dct:modified': { type: 'date', label: 'message.metadata.updated' },\n 'dct:language': { type: 'multiURI', voc: 'language', label: 'message.metadata.languages' },\n 'dct:subject': { type: 'multiURI', voc: 'eurovoc', label: 'message.dataupload.datasets.subject.label' },\n 'dcat:theme': { type: 'multiURI', voc: 'data-theme', label: 'message.dataupload.datasets.theme.label' },\n 'dct:type': { type: 'singularURI', voc: 'dataset-type', label: 'message.metadata.type' },\n 'dct:source': { type: 'multiURL', voc: '', label: 'message.metadata.sources' },\n 'dct:identifier': { type: 'multiString', voc: '', label: 'message.metadata.identifiers' },\n 'adms:identifier': { type: 'special', voc: '', label: 'message.metadata.otherIdentifiers' },\n 'foaf:page': { type: 'special', voc: '', label: 'message.dataupload.datasets.page.label' },\n 'dcat:landingPage': { type: 'multiURL', voc: '', label: 'message.metadata.landingPage' },\n 'dct:provenance': { type: 'multiString', voc: '', label: 'message.metadata.provenances' },\n 'dct:accrualPeriodicity': { type: 'singularURI', voc: 'frequency', label: 'message.metadata.accrualPeriodicity' },\n 'dct:accessRights': { type: 'singularURI', voc: 'access-right', label: 'message.metadata.accessRights' },\n 'dct:conformsTo': { type: 'special', voc: '', label: 'message.metadata.conformsTo' },\n 'dct:relation': { type: 'multiURL', voc: '', label: 'message.dataupload.datasets.relation.label' },\n 'dcat:qualifiedRelation': { type: 'multiURL', voc: '', label: 'message.dataupload.datasets.qualifiedRelation.label' },\n 'prov:qualifiedAttribution': { type: 'multiURL', voc: '', label: 'message.dataupload.datasets.qualifiedAttribution.label' },\n 'dct:spatial': { type: 'multiURI', voc: '', label: 'message.metadata.spatial' },\n 'dcat:spatialResolutionInMeters': { type: 'singularString', voc: '', label: 'message.dataupload.datasets.spatialResolutionInMeters.label' },\n 'dct:temporal': { type: 'special', voc: '', label: 'message.metadata.temporal' },\n 'dcat:temporalResolution': { type: 'special', voc: '', label: 'message.dataupload.datasets.temporalResolution.label' },\n 'dct:isReferencedBy': { type: 'multiURL', voc: '', label: 'message.dataupload.datasets.isReferencedBy.label' },\n 'prov:wasGeneratedBy': { type: 'multiURL', voc: '', label: 'message.dataupload.datasets.wasGeneratedBy.label' },\n 'dct:isVersionOf': { type: 'multiURL', voc: '', label: 'message.metadata.isVersionOf' },\n 'dext:metadataExtension': { type: 'multiURL', voc: '', label: 'message.dataupload.datasets.isUsedBy.label' },\n 'dct:hasVersion': { type: 'multiURL', voc: '', label: 'message.metadata.hasVersion' },\n 'owl:versionInfo': { type: 'singularString', voc: '', label: 'message.metadata.versionInfo' },\n 'adms:versionNotes': { type: 'multiLingual', voc: '', label: 'message.metadata.versionNotes' },\n 'dcatde:qualityProcessURI': { type: 'singularURI', voc: '', label: 'message.dataupload.datasets.qualityProcessURI.label' },\n 'dct:references': { type: 'singularURI', voc: '', label: 'message.dataupload.datasets.references.label' },\n 'dcatde:legalBasis': { type: 'multiLingual', voc: '', label: 'message.dataupload.datasets.legalBasis.label' },\n 'dct:contributor': { type: 'special', voc: '', label: 'message.dataupload.datasets.contributor.label' },\n 'dcatde:contributorID': { type: 'multiURI', voc: 'contributors', label: 'message.dataupload.datasets.contributorID.label' },\n 'dcatde:originator': { type: 'special', voc: '', label: 'message.dataupload.datasets.originator.label' },\n 'dcatde:maintainer': { type: 'special', voc: '', label: 'message.dataupload.datasets.maintainer.label' },\n 'dcatap:availability': { type: 'singularURI', voc: 'planned-availability', label: 'message.dataupload.datasets.availabilityDE.label' },\n 'dcatde:geocodingDescription': { type: 'multiLingual', voc: '', label: 'message.dataupload.datasets.geocodingDescription.label' },\n 'dcatde:politicalGeocodingLevelURI': { type: 'multiURI', voc: '', label: 'message.dataupload.datasets.politicalGeocodingLevelURI.label' },\n 'dcatde:politicalGeocodingURI': { type: 'multiURI', voc: 'political-geocoding-level', label: 'message.dataupload.datasets.politicalGeocodingURI.label' },\n }\n }\n },\n props: {\n dpiLocale: String,\n\n },\n components: {\n PropertyEntry,\n DistributionOverview,\n },\n computed: {\n ...mapGetters('dpiStore', [\n 'getData',\n ]),\n getDatasets() {\n return this.values;\n },\n getDistributions() {\n return this.getDatasets['distributionList'] || [];\n },\n showTable() {\n return Object.keys(this.tableProperties).filter(prop => this.getDatasets[prop]).length > 0;\n },\n storeData() {\n return this.getData('datasets')\n }\n },\n methods: {\n ...mapActions(\"dpiStore\", [\n \"requestFirstEntrySuggestions\",\n \"requestAutocompleteSuggestions\",\n ]),\n checkIfPropertySet(data, property) {\n if (data[property] != undefined) return data[property]\n else {\n return \"No data available\"\n }\n },\n checkIfPropertyValueSet(data, property, value) {\n if (data[property] != undefined && data[property][value] != undefined) return data[property][value]\n else {\n return \"No data available\"\n }\n },\n getTitle() {\n return this.getDatasets['dct:title'] && this.getDatasets['dct:title'].filter(el => el['@language'] === this.dpiLocale).map(el => el['@value'])[0];\n },\n getDescription() {\n return this.getDatasets['dct:description'] && this.getDatasets['dct:description'].filter(el => el['@language'] === this.dpiLocale).map(el => el['@value'])[0];\n },\n async reqName(URI) {\n let nameOfProperty = URI.split('/')\n let req = `${this.$env.api.baseUrl}vocabularies/${nameOfProperty[nameOfProperty.length - 2]}/${nameOfProperty[nameOfProperty.length - 1]}`\n\n const data = await axios.get(req)\n return data['data']['result']['pref_label'][this.dpiLocale]\n }\n },\n async mounted() {\n this.$nextTick(() => {\n this.pageLoaded = true;\n this.values = this.getData('datasets');\n })\n\n\n },\n watch: {\n storeData(newValue, oldValue) {\n this.values = newValue\n }\n }\n}\n</script>\n\n<style>\n.overviewHeader {\n border-bottom: 1px solid lightgray\n}\n\n.firstRow {\n align-items: center;\n}\n\n.dsDist td:first-child {\n padding: 1rem;\n width: 25%;\n\n}\n\n.disOverview td:first-child {\n min-width: 25%;\n}\n\n.disOverview td:last-child {\n width: 75%;\n}\n\n.b-top {\n border-top: 1px solid lightgray\n}\n\n.dist-edit {\n cursor: pointer\n}\n</style>\n"],"names":["_sfc_main","PropertyEntry","DistributionOverview","mapGetters","prop","mapActions","data","property","value","el","URI","nameOfProperty","req","axios","newValue","oldValue","_hoisted_2","_hoisted_3","_createElementVNode","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_13","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_21","_hoisted_23","_hoisted_24","_hoisted_25","$data","_openBlock","_createElementBlock","_hoisted_1","_hoisted_4","_createTextVNode","_toDisplayString","$options","_hoisted_8","_createVNode","_component_PropertyEntry","$props","_hoisted_12","_hoisted_14","_Fragment","_renderList","name","index","_hoisted_20","_ctx","_component_Distribut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Ga,GAAgGU,EAA5Ea,EAAE,GAAA,gCAAA,CAAA,IAAqC,OAAEb,EAAGC,EAAgB,iBAAC,MAAM,IAAG,KAAC,CAAA;AAAA,MAtDvGF,EAAA;AAAA,MAuDYI,EAAsGW,GAAA;AAAA,QAA/E,WAAWT,EAAS;AAAA,QAAG,eAAeJ,EAAgB;AAAA;UAvDzFc,EAAA,IAAA,EAAA;AAAA,IAAAhB,EAAA;AAAA,IA0DkBE,EAAW,YAAA,aAAA,KAAmB,QAAaA,EAAA,2CAA2C,QAAaA,EAAW,YAAA,aAAA,EAAgB,SAAM,KAD9IN,KAAAC,EAaM,OAbNoB,GAaM;AAAA,MAXFvC,EAAqF,MAArFc,GAAqF;AAAA,QA3DjGQ,EA2D6B,WAAS;AAAA,QAAAtB,EAAsD,cAAhD,MAACuB,EAAGC,cAA2B,aAAA,EAAA,MAAM,IAAG,KAAC,CAAA;AAAA;MA3DrFF,EAAA;AAAA,MA4DYtB,EASM,OATNe,GASM;AAAA,SARFG,EAAA,EAAA,GAAAC,EAOOY,GApEvB,MAAAC,EA8DiDR,EAAW,YAAA,aAAA,EAAgB,OAAO,CAAAjC,MAAMA,mBAAoBqC,EAAS,SAAA,GA9DtH,CA8D6BY,GAASN,YADtBf,EAOO,QAAA;AAAA,UAPD,OAAM;AAAA,UAEP,KAAKe;AAAA;UACNlC,EAGQ,SAAA;AAAA,YAHA,OAAOwC;AAAA,YACX,OAAM;AAAA,UACH,GAAAjB,EAAAiB,EAlE3B,QAAA,CAAA,GAAA,GAAAxB,CAAA;AAAA;;UAAAsB,EAAA,IAAA,EAAA;AAAA,QAAAA,EAAA,IAAA,EAAA;;;"}
1
+ {"version":3,"file":"DatasetOverview.vue.mjs","sources":["../../../../lib/data-provider-interface/views/OverviewPage/DatasetOverview.vue"],"sourcesContent":["<template>\n <div class=\"mt-2\" v-if=\"pageLoaded\">\n\n <div class=\"overviewHeader p-3\">\n <div class=\"firstRow d-flex \">\n <div class=\"datasetNotation dsd-title-tag d-flex align-items-center\"><span>\n {{ $te('message.metadata.dataset') ? $t('message.metadata.dataset') : 'Dataset' }}\n </span></div>\n <h1 class=\"dsTitle\"> {{ getTitle }}</h1>\n </div>\n <div class=\"secondRow d-flex justify-content-between\">\n <div class=\"dsCatalogue \">\n <span><b>{{ $te('message.metadata.catalog') ? $t('message.metadata.catalog') : 'Catalogue' }}:</b></span>\n <a href=\"\">\n {{ checkIfPropertySet(getDatasets, 'dcat:catalog') }}\n </a>\n </div>\n <div class=\"dsPublisher\">\n <PropertyEntry profile=\"datasets\" :data=\"getDatasets\" property='dct:publisher'\n :value=\"{ type: 'special', voc: 'corporate-body', label: 'message.metadata.publisher', isHeader: true }\"\n :dpiLocale=\"dpiLocale\"></PropertyEntry>\n </div>\n <div class=\"dsIssued \">\n <span><b>\n {{ $te('message.dataupload.datasets.issued.label') ? $t('message.dataupload.datasets.issued.label') : 'Issued' }}:</b></span>\n <a>\n {{ new Date(checkIfPropertyValueSet(getDatasets, 'dct:issued', '@value')).toDateString() }}\n <!-- {{ new Date(getDatasets['dct:modified']).toISOString().split('T')[0] }} -->\n </a>\n </div>\n <div class=\"dsUpdated \">\n <span><b>{{ $te('message.dataupload.datasets.modified.label') ? $t('message.dataupload.datasets.modified.label') : 'Updated' }}:</b></span>\n <a>\n {{ new Date(checkIfPropertyValueSet(getDatasets, 'dct:modified', '@value')).toDateString() }}\n <!-- {{ new Date(getDatasets['dct:modified']).toISOString().split('T')[0] }} -->\n </a>\n </div>\n </div>\n </div>\n <div class=\"dsMainWrap d-flex flex-column mt-3\">\n <div class=\"\">\n <p class=\"dsDesc px-3\">\n {{ getDescription }}\n </p>\n </div>\n <div class=\"\">\n\n <table class=\"table table-borderless table-responsive bg-light disOverview p-3\">\n <div v-for=\"(value, name, index) in tableProperties\" :key=\"index\">\n\n <PropertyEntry profile=\"datasets\" :data=\"values\" :property=\"name\" :value=\"value\"\n :dpiLocale=\"dpiLocale\"></PropertyEntry>\n </div>\n </table>\n </div>\n </div>\n <div class=\"dsDist b-top p-3\" v-if=\"getDistributions.length > 0\">\n <h2 class=\"my-4\">{{ $t('message.metadata.distributions') }} ({{ getDistributions.length }})</h2>\n <DistributionOverview :dpiLocale=\"dpiLocale\" :distributions=\"getDistributions\"></DistributionOverview>\n </div>\n <div class=\"dsKeywords b-top my-2 p-3\"\n v-if=\"getDatasets['dct:keyword'] != undefined && getDatasets['dct:keyword'][0]['@value'] != undefined && getDatasets['dct:keyword'].length > 0\">\n <h2 class=\"my-4\">Keywords <span>({{ getDatasets['dct:keyword'].length }})</span></h2>\n <div class=\"d-flex\">\n <span class=\"mx-1\"\n v-for=\"( element, index ) in getDatasets['dct:keyword'].filter(el => el['@language'] === dpiLocale)\"\n :key=\"index\">\n <small :title=\"element\"\n class=\"d-inline-block w-100 p-2 ml-1 rounded-pill text-center text-white text-truncate bg-primary\">\n {{ element['@value'] }}\n </small>\n </span>\n </div>\n </div>\n </div>\n</template>\n\n<script>\n\nimport PropertyEntry from './PropertyEntry.vue';\nimport DistributionOverview from './DistributionOverview.vue';\nimport { mapGetters, mapActions } from 'vuex';\nimport axios from 'axios';\n\nexport default {\n data() {\n return {\n values: [],\n pageLoaded: false,\n tableProperties: {\n 'dct:publisher': { type: 'special', voc: 'corporate-body', label: 'message.metadata.publisher' },\n 'dcat:contactPoint': { type: 'special', voc: '', label: 'message.metadata.contactPoints' },\n 'dct:creator': { type: 'special', voc: '', label: 'message.metadata.creator' },\n // 'dct:issued': { type: 'date', label: 'message.metadata.created' },\n // 'dct:modified': { type: 'date', label: 'message.metadata.updated' },\n 'dct:language': { type: 'multiURI', voc: 'language', label: 'message.metadata.languages' },\n 'dct:subject': { type: 'multiURI', voc: 'eurovoc', label: 'message.dataupload.datasets.subject.label' },\n 'dcat:theme': { type: 'multiURI', voc: 'data-theme', label: 'message.dataupload.datasets.theme.label' },\n 'dct:type': { type: 'singularURI', voc: 'dataset-type', label: 'message.metadata.type' },\n 'dct:source': { type: 'multiURL', voc: '', label: 'message.metadata.sources' },\n 'dct:identifier': { type: 'multiString', voc: '', label: 'message.metadata.identifiers' },\n 'adms:identifier': { type: 'special', voc: '', label: 'message.metadata.otherIdentifiers' },\n 'foaf:page': { type: 'special', voc: '', label: 'message.dataupload.datasets.page.label' },\n 'dcat:landingPage': { type: 'multiURL', voc: '', label: 'message.metadata.landingPage' },\n 'dct:provenance': { type: 'multiString', voc: '', label: 'message.metadata.provenances' },\n 'dct:accrualPeriodicity': { type: 'singularURI', voc: 'frequency', label: 'message.metadata.accrualPeriodicity' },\n 'dct:accessRights': { type: 'singularURI', voc: 'access-right', label: 'message.metadata.accessRights' },\n 'dct:conformsTo': { type: 'special', voc: '', label: 'message.metadata.conformsTo' },\n 'dct:relation': { type: 'multiURL', voc: '', label: 'message.dataupload.datasets.relation.label' },\n 'dcat:qualifiedRelation': { type: 'multiURL', voc: '', label: 'message.dataupload.datasets.qualifiedRelation.label' },\n 'prov:qualifiedAttribution': { type: 'multiURL', voc: '', label: 'message.dataupload.datasets.qualifiedAttribution.label' },\n 'dct:spatial': { type: 'multiURI', voc: '', label: 'message.metadata.spatial' },\n 'dcat:spatialResolutionInMeters': { type: 'singularString', voc: '', label: 'message.dataupload.datasets.spatialResolutionInMeters.label' },\n 'dct:temporal': { type: 'special', voc: '', label: 'message.metadata.temporal' },\n 'dcat:temporalResolution': { type: 'special', voc: '', label: 'message.dataupload.datasets.temporalResolution.label' },\n 'dct:isReferencedBy': { type: 'multiURL', voc: '', label: 'message.dataupload.datasets.isReferencedBy.label' },\n 'prov:wasGeneratedBy': { type: 'multiURL', voc: '', label: 'message.dataupload.datasets.wasGeneratedBy.label' },\n 'dct:isVersionOf': { type: 'multiURL', voc: '', label: 'message.metadata.isVersionOf' },\n 'dext:metadataExtension': { type: 'multiURL', voc: '', label: 'message.dataupload.datasets.isUsedBy.label' },\n 'dct:hasVersion': { type: 'multiURL', voc: '', label: 'message.metadata.hasVersion' },\n 'owl:versionInfo': { type: 'singularString', voc: '', label: 'message.metadata.versionInfo' },\n 'adms:versionNotes': { type: 'multiLingual', voc: '', label: 'message.metadata.versionNotes' },\n 'dcatde:qualityProcessURI': { type: 'singularURI', voc: '', label: 'message.dataupload.datasets.qualityProcessURI.label' },\n 'dct:references': { type: 'singularURI', voc: '', label: 'message.dataupload.datasets.references.label' },\n 'dcatde:legalBasis': { type: 'multiLingual', voc: '', label: 'message.dataupload.datasets.legalBasis.label' },\n 'dct:contributor': { type: 'special', voc: '', label: 'message.dataupload.datasets.contributor.label' },\n 'dcatde:contributorID': { type: 'multiURI', voc: 'contributors', label: 'message.dataupload.datasets.contributorID.label' },\n 'dcatde:originator': { type: 'special', voc: '', label: 'message.dataupload.datasets.originator.label' },\n 'dcatde:maintainer': { type: 'special', voc: '', label: 'message.dataupload.datasets.maintainer.label' },\n 'dcatap:availability': { type: 'singularURI', voc: 'planned-availability', label: 'message.dataupload.datasets.availabilityDE.label' },\n 'dcatde:geocodingDescription': { type: 'multiLingual', voc: '', label: 'message.dataupload.datasets.geocodingDescription.label' },\n 'dcatde:politicalGeocodingLevelURI': { type: 'multiURI', voc: '', label: 'message.dataupload.datasets.politicalGeocodingLevelURI.label' },\n 'dcatde:politicalGeocodingURI': { type: 'multiURI', voc: 'political-geocoding-level', label: 'message.dataupload.datasets.politicalGeocodingURI.label' },\n }\n }\n },\n props: {\n dpiLocale: String,\n\n },\n components: {\n PropertyEntry,\n DistributionOverview,\n },\n computed: {\n ...mapGetters('dpiStore', [\n 'getData',\n ]),\n getDatasets() {\n return this.values;\n },\n getDistributions() {\n return this.getDatasets['distributionList'] || [];\n },\n showTable() {\n return Object.keys(this.tableProperties).filter(prop => this.getDatasets[prop]).length > 0;\n },\n storeData() {\n return this.getData('datasets')\n },\n getTitle() {\n return this.getDatasets['dct:title'] && this.getDatasets['dct:title'].filter(el => el['@language'] === this.dpiLocale).map(el => el['@value'])[0];\n },\n getDescription() {\n return this.getDatasets['dct:description'] && this.getDatasets['dct:description'].filter(el => el['@language'] === this.dpiLocale).map(el => el['@value'])[0];\n },\n },\n methods: {\n ...mapActions(\"dpiStore\", [\n \"requestFirstEntrySuggestions\",\n \"requestAutocompleteSuggestions\",\n ]),\n checkIfPropertySet(data, property) {\n if (data[property] != undefined) return data[property]\n else {\n return '-'\n // return \"No data available\"\n }\n },\n checkIfPropertyValueSet(data, property, value) {\n if (data[property] != undefined && data[property][value] != undefined) return data[property][value]\n else {\n return '-'\n // return \"No data available\"\n }\n },\n async reqName(URI) {\n let nameOfProperty = URI.split('/')\n let req = `${this.$env.api.baseUrl}vocabularies/${nameOfProperty[nameOfProperty.length - 2]}/${nameOfProperty[nameOfProperty.length - 1]}`\n\n const data = await axios.get(req)\n return data['data']['result']['pref_label'][this.dpiLocale]\n }\n },\n async mounted() {\n this.$nextTick(() => {\n this.pageLoaded = true;\n this.values = this.getData('datasets');\n })\n\n\n },\n watch: {\n storeData(newValue, oldValue) {\n this.values = newValue\n }\n }\n}\n</script>\n\n<style>\n.overviewHeader {\n border-bottom: 1px solid lightgray\n}\n\n.firstRow {\n align-items: center;\n}\n\n.dsDist td:first-child {\n padding: 1rem;\n width: 25%;\n\n}\n\n.disOverview td:first-child {\n min-width: 25%;\n}\n\n.disOverview td:last-child {\n width: 75%;\n}\n\n.b-top {\n border-top: 1px solid lightgray\n}\n\n.dist-edit {\n cursor: pointer\n}\n</style>\n"],"names":["_sfc_main","PropertyEntry","DistributionOverview","mapGetters","prop","el","mapActions","data","property","value","URI","nameOfProperty","req","axios","newValue","oldValue","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_18","_hoisted_20","_hoisted_21","_hoisted_22","$data","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_toDisplayString","_ctx","_createTextVNode","$options","_createVNode","_component_PropertyEntry","$props","_Fragment","_renderList","name","index","_hoisted_17","_component_DistributionOverview","_createComment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: ObjectConstructor;
7
7
  };
8
- }, any, {
9
- dpiLocale: string;
10
- }, {
8
+ }, any, any, {
11
9
  showDatasetsOverview(): boolean;
12
10
  showCatalogsOverview(): boolean;
11
+ dpiLocale(): any;
13
12
  getData: import('vuex').Computed;
14
13
  getIsEditMode: import('vuex').Computed;
15
14
  }, {
@@ -1,15 +1,15 @@
1
- import _ from "axios";
2
- import { mapGetters as d, mapActions as f } from "vuex";
3
- import w from "../components/LanguageSelector.vue.mjs";
4
- import D from "./OverviewPage/DatasetOverview.vue.mjs";
1
+ import g from "axios";
2
+ import { mapGetters as d, mapActions as _ } from "vuex";
3
+ import f from "../components/LanguageSelector.vue.mjs";
4
+ import w from "./OverviewPage/DatasetOverview.vue.mjs";
5
5
  import L from "./OverviewPage/CatalogueOverview.vue.mjs";
6
- import { resolveComponent as a, openBlock as s, createElementBlock as r, createElementVNode as i, createTextVNode as c, toDisplayString as O, createVNode as l, createCommentVNode as m } from "vue";
6
+ import { resolveComponent as o, openBlock as s, createElementBlock as r, createElementVNode as i, createTextVNode as c, toDisplayString as D, createVNode as l, createCommentVNode as p } from "vue";
7
7
  import "./OverviewPage.vue2.mjs";
8
8
  import y from "../../_virtual/_plugin-vue_export-helper.mjs";
9
- const I = {
9
+ const O = {
10
10
  components: {
11
- LanguageSelector: w,
12
- DatasetOverview: D,
11
+ LanguageSelector: f,
12
+ DatasetOverview: w,
13
13
  CatalogueOverview: L
14
14
  },
15
15
  props: {
@@ -20,11 +20,6 @@ const I = {
20
20
  type: Object
21
21
  }
22
22
  },
23
- data() {
24
- return {
25
- dpiLocale: "en"
26
- };
27
- },
28
23
  computed: {
29
24
  ...d("auth", [
30
25
  "getIsEditMode"
@@ -37,10 +32,14 @@ const I = {
37
32
  },
38
33
  showCatalogsOverview() {
39
34
  return this.property === "catalogues";
35
+ },
36
+ dpiLocale() {
37
+ var e;
38
+ return ((e = this.$route.query) == null ? void 0 : e.locale) || this.$i18n.locale || this.$i18n.fallbackLocale || "en";
40
39
  }
41
40
  },
42
41
  methods: {
43
- ...f("dpiStore", [
42
+ ..._("dpiStore", [
44
43
  "clearAll",
45
44
  "saveLocalstorageValues"
46
45
  ]),
@@ -113,7 +112,7 @@ const I = {
113
112
  return new Promise((t) => {
114
113
  if (this.getData(e)["@id"] !== "") {
115
114
  const n = `${this.$env.api.hubUrl}${e}/${this.getData(e)["@id"]}?useNormalizedId=true`;
116
- _.head(n).then(() => {
115
+ g.head(n).then(() => {
117
116
  t(!1);
118
117
  }).catch(() => {
119
118
  t(!0);
@@ -127,40 +126,40 @@ const I = {
127
126
  this.property, this.property;
128
127
  });
129
128
  }
130
- }, k = { class: "col-12" }, V = { class: "mt-5 mb-0" }, C = { class: "row" }, S = { class: "col-10" }, b = {
129
+ }, k = { class: "col-12" }, I = { class: "mt-5 mb-0" }, $ = { class: "row" }, V = { class: "col-10" }, C = {
131
130
  key: 0,
132
131
  class: "mb-3"
133
- }, x = {
132
+ }, S = {
134
133
  key: 1,
135
134
  class: "mb-3"
136
135
  };
137
- function $(e, t, n, q, o, p) {
138
- const u = a("LanguageSelector"), h = a("DatasetOverview"), v = a("CatalogueOverview");
136
+ function b(e, t, n, q, x, a) {
137
+ const u = o("LanguageSelector"), m = o("DatasetOverview"), h = o("CatalogueOverview");
139
138
  return s(), r("div", k, [
140
- i("div", V, [
141
- i("div", C, [
142
- i("div", S, [
143
- c(O(e.$t("message.dataupload.info.selectDisplayLanguage")) + `:
139
+ i("div", I, [
140
+ i("div", $, [
141
+ i("div", V, [
142
+ c(D(e.$t("message.dataupload.info.selectDisplayLanguage")) + `:
144
143
  `, 1),
145
144
  l(u, {
146
145
  class: "ml-1",
147
- modelValue: o.dpiLocale,
148
- "onUpdate:modelValue": t[0] || (t[0] = (g) => o.dpiLocale = g)
146
+ modelValue: a.dpiLocale,
147
+ "onUpdate:modelValue": t[0] || (t[0] = (v) => a.dpiLocale = v)
149
148
  }, null, 8, ["modelValue"])
150
149
  ])
151
150
  ])
152
151
  ]),
153
152
  c(),
154
- p.showDatasetsOverview ? (s(), r("div", b, [
155
- l(h, { dpiLocale: o.dpiLocale }, null, 8, ["dpiLocale"])
156
- ])) : m("", !0),
153
+ a.showDatasetsOverview ? (s(), r("div", C, [
154
+ l(m, { dpiLocale: a.dpiLocale }, null, 8, ["dpiLocale"])
155
+ ])) : p("", !0),
157
156
  c(),
158
- p.showCatalogsOverview ? (s(), r("div", x, [
159
- l(v, { dpiLocale: o.dpiLocale }, null, 8, ["dpiLocale"])
160
- ])) : m("", !0)
157
+ a.showCatalogsOverview ? (s(), r("div", S, [
158
+ l(h, { dpiLocale: a.dpiLocale }, null, 8, ["dpiLocale"])
159
+ ])) : p("", !0)
161
160
  ]);
162
161
  }
163
- const j = /* @__PURE__ */ y(I, [["render", $], ["__scopeId", "data-v-fb342e96"]]);
162
+ const j = /* @__PURE__ */ y(O, [["render", b], ["__scopeId", "data-v-c3c91832"]]);
164
163
  export {
165
164
  j as default
166
165
  };