@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.
- 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/data-provider-interface/views/UserCataloguesPage.vue.mjs +35 -33
- package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs.map +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
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useStore as
|
|
1
|
+
import { getCurrentInstance as N, ref as A, computed as m, onMounted as I, openBlock as i, createElementBlock as r, createElementVNode as o, toDisplayString as s, createTextVNode as a, Fragment as q, renderList as S, unref as T, createVNode as _, withCtx as $, createCommentVNode as k } from "vue";
|
|
2
|
+
import { useStore as E } from "vuex";
|
|
3
3
|
import V from "../../widgets/AppLink.vue.mjs";
|
|
4
|
-
import
|
|
5
|
-
import { useRouter as
|
|
4
|
+
import D from "axios";
|
|
5
|
+
import { useRouter as O, useRoute as Q } from "vue-router";
|
|
6
6
|
import { has as f, isNil as g } from "lodash-es";
|
|
7
7
|
import "./UserCataloguesPage.vue2.mjs";
|
|
8
|
-
import
|
|
9
|
-
const U = { class: "catOverview" },
|
|
8
|
+
import L from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
9
|
+
const U = { class: "catOverview" }, x = { class: "d-flex flex-column bg-transparent container-fluid justify-content-between content" }, P = { class: "small-headline" }, R = { class: "m-0" }, B = ["onClick"], j = ["onClick"], z = {
|
|
10
10
|
__name: "UserCataloguesPage",
|
|
11
|
-
setup(
|
|
12
|
-
let p =
|
|
13
|
-
const v =
|
|
14
|
-
let l = A([]),
|
|
15
|
-
const
|
|
11
|
+
setup(F) {
|
|
12
|
+
let p = N().appContext.app.config.globalProperties.$env;
|
|
13
|
+
const v = O(), c = Q(), h = E();
|
|
14
|
+
let l = A([]), C = m(() => h.getters["auth/getUserCatalogIds"]);
|
|
15
|
+
const w = m(() => {
|
|
16
16
|
const e = p.content.dataProviderInterface.buttons.showMqaNotificationSettings;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
console.log("[MQA] env.content...showMqaNotificationSettings (raw):", e, "type:", typeof e);
|
|
18
|
+
const t = {}.VITE_CONTENT_DATA_PROVIDER_INTERFACE_BUTTONS_SHOW_MQA_NOTIFICATION_SETTINGS === "true";
|
|
19
|
+
if (console.log("[MQA] env.content...viteshowMqaNotificationSettings (raw):", t, "type:", typeof t), typeof e == "string") {
|
|
20
|
+
const n = e.trim().toLowerCase();
|
|
21
|
+
return console.log("[MQA] normalized string value:", n), n === "true";
|
|
20
22
|
}
|
|
21
23
|
return e === !0;
|
|
22
24
|
});
|
|
23
|
-
let
|
|
25
|
+
let b = async () => {
|
|
24
26
|
let e;
|
|
25
|
-
await
|
|
27
|
+
await D.get(p.api.baseUrl + "search?filter=catalogue&limit=1000").then((t) => e = t).catch((t) => {
|
|
26
28
|
reject(t);
|
|
27
29
|
}), e.data.result.results.forEach((t) => {
|
|
28
30
|
f(t, "title") && !g(t.title) && f(t, "id") && !g(t.id) && l.value.push({ title: Object.values(t.title)[0], id: t.id });
|
|
29
|
-
}), l.value = l.value.filter((t) =>
|
|
31
|
+
}), l.value = l.value.filter((t) => C.value.includes(t.id)).map((t) => ({ id: t.id, name: t.title }));
|
|
30
32
|
};
|
|
31
|
-
const
|
|
33
|
+
const y = (e) => {
|
|
32
34
|
const t = e.id, n = "https://data.europa.eu", u = c.query.locale || "en", d = `${n}/mqa/catalogues/${t}?locale=${u}`;
|
|
33
35
|
window.open(d, "_blank");
|
|
34
|
-
},
|
|
36
|
+
}, M = (e) => {
|
|
35
37
|
v.push({
|
|
36
38
|
name: "DataProviderInterface-MQASettings",
|
|
37
39
|
params: { id: e.id },
|
|
@@ -39,13 +41,13 @@ const U = { class: "catOverview" }, L = { class: "d-flex flex-column bg-transpar
|
|
|
39
41
|
}).catch(() => {
|
|
40
42
|
});
|
|
41
43
|
};
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
}), (e, t) => (
|
|
45
|
-
o("div",
|
|
44
|
+
return I(async () => {
|
|
45
|
+
b();
|
|
46
|
+
}), (e, t) => (i(), r("div", U, [
|
|
47
|
+
o("div", x, [
|
|
46
48
|
o("h1", P, s(e.$t("message.dataupload.info.userCatalogues")), 1),
|
|
47
49
|
t[7] || (t[7] = a()),
|
|
48
|
-
o("p",
|
|
50
|
+
o("p", R, s(e.$t("message.dataupload.info.userCatDescription")), 1),
|
|
49
51
|
t[8] || (t[8] = a()),
|
|
50
52
|
o("table", null, [
|
|
51
53
|
o("thead", null, [
|
|
@@ -58,12 +60,12 @@ const U = { class: "catOverview" }, L = { class: "d-flex flex-column bg-transpar
|
|
|
58
60
|
])
|
|
59
61
|
]),
|
|
60
62
|
t[6] || (t[6] = a()),
|
|
61
|
-
(
|
|
63
|
+
(i(!0), r(q, null, S(T(l), (n, u) => (i(), r("tr", { key: u }, [
|
|
62
64
|
o("td", null, [
|
|
63
|
-
|
|
65
|
+
_(V, {
|
|
64
66
|
to: { name: "CatalogueDetails", query: { locale: e.$route.query.locale }, params: { ctlg_id: n.id } }
|
|
65
67
|
}, {
|
|
66
|
-
default:
|
|
68
|
+
default: $(() => [
|
|
67
69
|
a(s(n.id), 1)
|
|
68
70
|
]),
|
|
69
71
|
_: 2
|
|
@@ -75,19 +77,19 @@ const U = { class: "catOverview" }, L = { class: "d-flex flex-column bg-transpar
|
|
|
75
77
|
]),
|
|
76
78
|
t[5] || (t[5] = a()),
|
|
77
79
|
o("td", null, [
|
|
78
|
-
|
|
80
|
+
w.value ? (i(), r("button", {
|
|
79
81
|
key: 0,
|
|
80
82
|
type: "button",
|
|
81
83
|
class: "btn btn-action",
|
|
82
|
-
onClick: (d) =>
|
|
84
|
+
onClick: (d) => M(n)
|
|
83
85
|
}, `
|
|
84
86
|
Configure MQA notifications
|
|
85
|
-
`, 8, B)) :
|
|
87
|
+
`, 8, B)) : k("", !0),
|
|
86
88
|
t[3] || (t[3] = a()),
|
|
87
89
|
o("button", {
|
|
88
90
|
type: "button",
|
|
89
91
|
class: "btn btn-action",
|
|
90
|
-
onClick: (d) =>
|
|
92
|
+
onClick: (d) => y(n)
|
|
91
93
|
}, t[2] || (t[2] = [
|
|
92
94
|
o("span", { class: "mr-1" }, " MQA report ", -1),
|
|
93
95
|
a(),
|
|
@@ -109,14 +111,14 @@ const U = { class: "catOverview" }, L = { class: "d-flex flex-column bg-transpar
|
|
|
109
111
|
d: "M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"
|
|
110
112
|
})
|
|
111
113
|
], -1)
|
|
112
|
-
]), 8,
|
|
114
|
+
]), 8, j)
|
|
113
115
|
])
|
|
114
116
|
]))), 128))
|
|
115
117
|
])
|
|
116
118
|
])
|
|
117
119
|
]));
|
|
118
120
|
}
|
|
119
|
-
}, tt = /* @__PURE__ */
|
|
121
|
+
}, tt = /* @__PURE__ */ L(z, [["__scopeId", "data-v-30ec1546"]]);
|
|
120
122
|
export {
|
|
121
123
|
tt as default
|
|
122
124
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserCataloguesPage.vue.mjs","sources":["../../../lib/data-provider-interface/views/UserCataloguesPage.vue"],"sourcesContent":["<script setup>\nimport { useStore } from 'vuex';\nimport { ref, computed, onMounted, } from 'vue';\nimport AppLink from \"../../widgets/AppLink.vue\";\nimport axios from 'axios'\nimport { useRouter, useRoute } from 'vue-router';\nimport { getCurrentInstance } from \"vue\";\n\nimport {\n has,\n isNil,\n} from 'lodash-es';\n\nlet env = getCurrentInstance().appContext.app.config.globalProperties.$env;\n\nconst router = useRouter();\nconst route = useRoute();\n\n\nconst store = useStore();\nlet filteredCatalogs = ref([])\nlet userCatIDList = computed(() => store.getters['auth/getUserCatalogIds'])\n\nconst showMqaNotificationSettings = computed(() => {\n const raw = env.content.dataProviderInterface.buttons.showMqaNotificationSettings;\n console.log('[MQA] env.content...showMqaNotificationSettings (raw):', raw, 'type:', typeof raw);\n console.log('[MQA] VITE_CONTENT_DATA_PROVIDER_INTERFACE_BUTTONS_SHOW_MQA_NOTIFICATION_SETTINGS:', import.meta.env.VITE_CONTENT_DATA_PROVIDER_INTERFACE_BUTTONS_SHOW_MQA_NOTIFICATION_SETTINGS);\n\n if (typeof raw === 'string') {\n const normalized = raw.trim().toLowerCase();\n console.log('[MQA] normalized string value:', normalized);\n return normalized === 'true';\n }\n return raw === true;\n});\n\n\nlet filterCatList = async () => {\n let cache;\n await axios\n .get(env.api.baseUrl + 'search?filter=catalogue&limit=1000')\n .then(response => (cache = response))\n .catch((err) => {\n reject(err);\n });\n\n cache.data.result.results.forEach((e) => {\n if (has(e, 'title') && !isNil(e.title) && has(e, 'id') && !isNil(e.id)) filteredCatalogs.value.push({ title: Object.values(e.title)[0], id: e.id })\n });\n\n filteredCatalogs.value = filteredCatalogs.value\n .filter(item => userCatIDList.value.includes(item.id))\n .map(item => ({ id: item.id, name: item.title }));\n\n\n}\n\nconst openMqaReport = (catalog) => {\n const catalogId = catalog.id;\n const mqaBaseUrl = 'https://data.europa.eu';\n const locale = route.query.locale || 'en';\n const mqaUrl = `${mqaBaseUrl}/mqa/catalogues/${catalogId}?locale=${locale}`;\n window.open(mqaUrl, '_blank');\n}\n\nconst handleMQA = (cat) => {\n\n router.push({\n name: 'DataProviderInterface-MQASettings',\n params: { id: cat.id },\n query: { locale: route.query.locale }\n }).catch(() => { });\n}\nconst handleEdit = () => {\n\n}\nonMounted(async () => {\n filterCatList()\n});\n</script>\n<template>\n <div class=\"catOverview\">\n <div class=\"d-flex flex-column bg-transparent container-fluid justify-content-between content \">\n <h1 class=\"small-headline\">{{ $t('message.dataupload.info.userCatalogues') }}</h1>\n <p class=\"m-0 \">{{ $t('message.dataupload.info.userCatDescription') }}</p>\n <!-- <div class=\"catWrap\">\n <div v-for=\"(catalog, index) in filteredCatalogs\" :key=\"index\" class=\"annifItems \">\n <app-link\n :to=\"{ name: 'CatalogueDetails', query: { locale: $route.query.locale }, params: { ctlg_id: catalog.id } }\">{{\n catalog.name }}</app-link>\n </div>\n <div v-if=\"filteredCatalogs.length === 0\" v-for=\"(catalog, index) in userCatIDList\" :key=\"index\"\n class=\"annifItems \">\n <app-link\n :to=\"{ name: 'CatalogueDetails', query: { locale: $route.query.locale }, params: { ctlg_id: catalog } }\">{{\n catalog }}</app-link>\n </div>\n </div> -->\n\n\n\n\n\n\n\n <table>\n <thead>\n <tr>\n <th>{{ $t('message.metadata.catalog') }} - ID</th>\n <th>{{ $t('message.metadata.description') }}</th>\n <th>{{ $t('message.dataupload.menu.actions') }}</th>\n </tr>\n </thead>\n\n <tr v-for=\"(catalog, index) in filteredCatalogs\" :key=\"index\">\n <td>\n\n <app-link\n :to=\"{ name: 'CatalogueDetails', query: { locale: $route.query.locale }, params: { ctlg_id: catalog.id } }\">{{\n catalog.id }}</app-link>\n\n </td>\n <td>\n <span>{{ catalog.name }}</span>\n\n </td>\n <td>\n <!-- <button type=\"button\" class=\"btn btn-secondary\" @click=\"handleEdit(id, catalog)\">{{\n $t('message.metadata.linkedData') }}</button>\n <button type=\"button\" class=\"btn btn-secondary\" @click=\"handleEdit(id, catalog)\">{{\n $t('message.dataupload.menu.edit') }}</button> -->\n\n <button\n v-if=\"showMqaNotificationSettings\"\n type=\"button\"\n class=\"btn btn-action\"\n @click=\"handleMQA(catalog)\"\n >\n Configure MQA notifications\n </button>\n <button type=\"button\" class=\"btn btn-action\" @click=\"openMqaReport(catalog)\" >\n <span class=\"mr-1\"> MQA report </span>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-box-arrow-up-right mb-1\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5\"/>\n <path fill-rule=\"evenodd\" d=\"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z\"/>\n </svg>\n </button>\n\n </td>\n </tr>\n\n\n\n </table>\n\n</div>\n </div>\n\n</template>\n<style scoped>\n\ntable {\nmargin-top: 50px !important;\nmargin-left: 0px !important;\n}\n.catOverview {\n min-height: 60vh;\n}\n\n.btn-action {\n border: solid 1px #3f3f3f;\n}\n\n.btn-action:hover {\n border: solid 1px #3f3f3f;\n background-color: #3f3f3f;\n color: #fff;\n}\n\n.catWrap {\n display: flex;\n flex-wrap: wrap;\n margin-top: 10px;\n padding-top: 10px;\n border-top: 1px solid lightgray;\n justify-content: space-between;\n}\n\n.catWrap .annifItems {\n background: #ECECEC;\n flex-grow: 1;\n text-align: center;\n}\n\n.subline {\n font-size: 12px;\n color: lightgray;\n\n}\n\n\nth,\ntd {\n padding: 1rem;\n\n}\n\ntr {\n padding: 1rem;\n border-bottom: 1px solid lightgray;\n}\n\nthead {\n border-bottom: 1px solid lightgray;\n}\n</style>\n"],"names":["env","getCurrentInstance","router","useRouter","route","useRoute","store","useStore","filteredCatalogs","ref","userCatIDList","computed","showMqaNotificationSettings","raw","normalized","filterCatList","cache","axios","response","err","e","has","isNil","item","openMqaReport","catalog","catalogId","mqaBaseUrl","locale","mqaUrl","handleMQA","cat","onMounted","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_toDisplayString","$t","_hoisted_4","_Fragment","_renderList","_unref","index","_createVNode","AppLink","$route","_createTextVNode","$event","_hoisted_5"],"mappings":";;;;;;;;;;;AAaA,QAAIA,IAAMC,EAAkB,EAAG,WAAW,IAAI,OAAO,iBAAiB;AAEtE,UAAMC,IAASC,EAAS,GAClBC,IAAQC,EAAQ,GAGhBC,IAAQC,EAAQ;AACtB,QAAIC,IAAmBC,EAAI,EAAE,GACzBC,IAAgBC,EAAS,MAAML,EAAM,QAAQ,wBAAwB,CAAC;AAE1E,UAAMM,IAA8BD,EAAS,MAAM;AACjD,YAAME,IAAMb,EAAI,QAAQ,sBAAsB,QAAQ;AAItD,UAHA,QAAQ,IAAI,0DAA0Da,GAAK,SAAS,OAAOA,CAAG,GAC9F,QAAQ,IAAI,sFAAsG,CAAA,EAAA,2EAA2E,GAEzL,OAAOA,KAAQ,UAAU;AAC3B,cAAMC,IAAaD,EAAI,KAAM,EAAC,YAAW;AACzC,uBAAQ,IAAI,kCAAkCC,CAAU,GACjDA,MAAe;AAAA,MACxB;AACA,aAAOD,MAAQ;AAAA,IACjB,CAAC;AAGD,QAAIE,IAAgB,YAAY;AAC9B,UAAIC;AACJ,YAAMC,EACH,IAAIjB,EAAI,IAAI,UAAU,oCAAoC,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B,EAAcC,CAAO;AAAA;gBACtEW,EAAwC,QAAlC,EAAA,OAAM,OAAM,GAAC,kBAAc,EAAA;AAAA;gBAC/BA,EAGM,OAAA;AAAA,kBAHD,OAAM;AAAA,kBAA6B,OAAM;AAAA,kBAAK,QAAO;AAAA,kBAAK,MAAK;AAAA,kBAAe,OAAM;AAAA,kBAAgC,SAAQ;AAAA;kBACjIA,EAA+O,QAAA;AAAA,oBAAzO,aAAU;AAAA,oBAAU,GAAE;AAAA;;kBAC5BA,EAA4I,QAAA;AAAA,oBAAtI,aAAU;AAAA,oBAAU,GAAE;AAAA;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"UserCataloguesPage.vue.mjs","sources":["../../../lib/data-provider-interface/views/UserCataloguesPage.vue"],"sourcesContent":["<script setup>\nimport { useStore } from 'vuex';\nimport { ref, computed, onMounted, } from 'vue';\nimport AppLink from \"../../widgets/AppLink.vue\";\nimport axios from 'axios'\nimport { useRouter, useRoute } from 'vue-router';\nimport { getCurrentInstance } from \"vue\";\n\nimport {\n has,\n isNil,\n} from 'lodash-es';\n\nlet env = getCurrentInstance().appContext.app.config.globalProperties.$env;\n\nconst router = useRouter();\nconst route = useRoute();\n\n\nconst store = useStore();\nlet filteredCatalogs = ref([])\nlet userCatIDList = computed(() => store.getters['auth/getUserCatalogIds'])\n\nconst showMqaNotificationSettings = computed(() => {\n const raw = env.content.dataProviderInterface.buttons.showMqaNotificationSettings;\n console.log('[MQA] env.content...showMqaNotificationSettings (raw):', raw, 'type:', typeof raw);\n const viteshowMqaNotificationSettings = import.meta.env.VITE_CONTENT_DATA_PROVIDER_INTERFACE_BUTTONS_SHOW_MQA_NOTIFICATION_SETTINGS === 'true'\n console.log('[MQA] env.content...viteshowMqaNotificationSettings (raw):', viteshowMqaNotificationSettings, 'type:', typeof viteshowMqaNotificationSettings);\n\n if (typeof raw === 'string') {\n const normalized = raw.trim().toLowerCase();\n console.log('[MQA] normalized string value:', normalized);\n return normalized === 'true';\n }\n return raw === true;\n});\n\n\nlet filterCatList = async () => {\n let cache;\n await axios\n .get(env.api.baseUrl + 'search?filter=catalogue&limit=1000')\n .then(response => (cache = response))\n .catch((err) => {\n reject(err);\n });\n\n cache.data.result.results.forEach((e) => {\n if (has(e, 'title') && !isNil(e.title) && has(e, 'id') && !isNil(e.id)) filteredCatalogs.value.push({ title: Object.values(e.title)[0], id: e.id })\n });\n\n filteredCatalogs.value = filteredCatalogs.value\n .filter(item => userCatIDList.value.includes(item.id))\n .map(item => ({ id: item.id, name: item.title }));\n\n\n}\n\nconst openMqaReport = (catalog) => {\n const catalogId = catalog.id;\n const mqaBaseUrl = 'https://data.europa.eu';\n const locale = route.query.locale || 'en';\n const mqaUrl = `${mqaBaseUrl}/mqa/catalogues/${catalogId}?locale=${locale}`;\n window.open(mqaUrl, '_blank');\n}\n\nconst handleMQA = (cat) => {\n\n router.push({\n name: 'DataProviderInterface-MQASettings',\n params: { id: cat.id },\n query: { locale: route.query.locale }\n }).catch(() => { });\n}\nconst handleEdit = () => {\n\n}\nonMounted(async () => {\n filterCatList()\n});\n</script>\n<template>\n <div class=\"catOverview\">\n <div class=\"d-flex flex-column bg-transparent container-fluid justify-content-between content \">\n <h1 class=\"small-headline\">{{ $t('message.dataupload.info.userCatalogues') }}</h1>\n <p class=\"m-0 \">{{ $t('message.dataupload.info.userCatDescription') }}</p>\n <!-- <div class=\"catWrap\">\n <div v-for=\"(catalog, index) in filteredCatalogs\" :key=\"index\" class=\"annifItems \">\n <app-link\n :to=\"{ name: 'CatalogueDetails', query: { locale: $route.query.locale }, params: { ctlg_id: catalog.id } }\">{{\n catalog.name }}</app-link>\n </div>\n <div v-if=\"filteredCatalogs.length === 0\" v-for=\"(catalog, index) in userCatIDList\" :key=\"index\"\n class=\"annifItems \">\n <app-link\n :to=\"{ name: 'CatalogueDetails', query: { locale: $route.query.locale }, params: { ctlg_id: catalog } }\">{{\n catalog }}</app-link>\n </div>\n </div> -->\n\n\n\n\n\n\n\n <table>\n <thead>\n <tr>\n <th>{{ $t('message.metadata.catalog') }} - ID</th>\n <th>{{ $t('message.metadata.description') }}</th>\n <th>{{ $t('message.dataupload.menu.actions') }}</th>\n </tr>\n </thead>\n\n <tr v-for=\"(catalog, index) in filteredCatalogs\" :key=\"index\">\n <td>\n\n <app-link\n :to=\"{ name: 'CatalogueDetails', query: { locale: $route.query.locale }, params: { ctlg_id: catalog.id } }\">{{\n catalog.id }}</app-link>\n\n </td>\n <td>\n <span>{{ catalog.name }}</span>\n\n </td>\n <td>\n <!-- <button type=\"button\" class=\"btn btn-secondary\" @click=\"handleEdit(id, catalog)\">{{\n $t('message.metadata.linkedData') }}</button>\n <button type=\"button\" class=\"btn btn-secondary\" @click=\"handleEdit(id, catalog)\">{{\n $t('message.dataupload.menu.edit') }}</button> -->\n\n <button\n v-if=\"showMqaNotificationSettings\"\n type=\"button\"\n class=\"btn btn-action\"\n @click=\"handleMQA(catalog)\"\n >\n Configure MQA notifications\n </button>\n <button type=\"button\" class=\"btn btn-action\" @click=\"openMqaReport(catalog)\" >\n <span class=\"mr-1\"> MQA report </span>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-box-arrow-up-right mb-1\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5\"/>\n <path fill-rule=\"evenodd\" d=\"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z\"/>\n </svg>\n </button>\n\n </td>\n </tr>\n\n\n\n </table>\n\n</div>\n </div>\n\n</template>\n<style scoped>\n\ntable {\nmargin-top: 50px !important;\nmargin-left: 0px !important;\n}\n.catOverview {\n min-height: 60vh;\n}\n\n.btn-action {\n border: solid 1px #3f3f3f;\n}\n\n.btn-action:hover {\n border: solid 1px #3f3f3f;\n background-color: #3f3f3f;\n color: #fff;\n}\n\n.catWrap {\n display: flex;\n flex-wrap: wrap;\n margin-top: 10px;\n padding-top: 10px;\n border-top: 1px solid lightgray;\n justify-content: space-between;\n}\n\n.catWrap .annifItems {\n background: #ECECEC;\n flex-grow: 1;\n text-align: center;\n}\n\n.subline {\n font-size: 12px;\n color: lightgray;\n\n}\n\n\nth,\ntd {\n padding: 1rem;\n\n}\n\ntr {\n padding: 1rem;\n border-bottom: 1px solid lightgray;\n}\n\nthead {\n border-bottom: 1px solid lightgray;\n}\n</style>\n"],"names":["env","getCurrentInstance","router","useRouter","route","useRoute","store","useStore","filteredCatalogs","ref","userCatIDList","computed","showMqaNotificationSettings","raw","viteshowMqaNotificationSettings","normalized","filterCatList","cache","axios","response","err","e","has","isNil","item","openMqaReport","catalog","catalogId","mqaBaseUrl","locale","mqaUrl","handleMQA","cat","onMounted","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_toDisplayString","$t","_hoisted_4","_Fragment","_renderList","_unref","index","_createVNode","AppLink","$route","_createTextVNode","$event","_hoisted_5"],"mappings":";;;;;;;;;;;AAaA,QAAIA,IAAMC,EAAkB,EAAG,WAAW,IAAI,OAAO,iBAAiB;AAEtE,UAAMC,IAASC,EAAS,GAClBC,IAAQC,EAAQ,GAGhBC,IAAQC,EAAQ;AACtB,QAAIC,IAAmBC,EAAI,EAAE,GACzBC,IAAgBC,EAAS,MAAML,EAAM,QAAQ,wBAAwB,CAAC;AAE1E,UAAMM,IAA8BD,EAAS,MAAM;AACjD,YAAME,IAAMb,EAAI,QAAQ,sBAAsB,QAAQ;AACtD,cAAQ,IAAI,0DAA0Da,GAAK,SAAS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GK,MAAA,MAAA;AAAA,cAFHA,EAA+B,QAAA,MAAAG,EAAtBd,EAAQ,IAAI,GAAA,CAAA;AAAA;;YAGvBW,EAsBK,MAAA,MAAA;AAAA,cAfKzB,EAA2B,cADnCuB,EAOS,UAAA;AAAA;gBALP,MAAK;AAAA,gBACL,OAAM;AAAA,gBACL,SAAK,CAAAgB,MAAEpB,EAAUL,CAAO;AAAA,iBAC1B;AAAA;AAAA,WAED,GAAA0B,CAAA;;cACCf,EAMU,UAAA;AAAA,gBANF,MAAK;AAAA,gBAAU,OAAM;AAAA,gBAAkB,SAAK,CAAAc,MAAE1B,EAAcC,CAAO;AAAA;gBACtEW,EAAwC,QAAlC,EAAA,OAAM,OAAM,GAAC,kBAAc,EAAA;AAAA;gBAC/BA,EAGM,OAAA;AAAA,kBAHD,OAAM;AAAA,kBAA6B,OAAM;AAAA,kBAAK,QAAO;AAAA,kBAAK,MAAK;AAAA,kBAAe,OAAM;AAAA,kBAAgC,SAAQ;AAAA;kBACjIA,EAA+O,QAAA;AAAA,oBAAzO,aAAU;AAAA,oBAAU,GAAE;AAAA;;kBAC5BA,EAA4I,QAAA;AAAA,oBAAtI,aAAU;AAAA,oBAAU,GAAE;AAAA;;;;;;;;;;"}
|
|
@@ -2,14 +2,14 @@ import { truncate } from '../../utils/helpers';
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<{
|
|
3
3
|
embed?: any;
|
|
4
4
|
getDistributionFormat?: any;
|
|
5
|
-
distribution?: any;
|
|
6
5
|
distributionFormatTruncated?: any;
|
|
6
|
+
distribution?: any;
|
|
7
7
|
}, {}, {}, {}, {
|
|
8
8
|
truncate: typeof truncate;
|
|
9
9
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
10
10
|
embed?: any;
|
|
11
11
|
getDistributionFormat?: any;
|
|
12
|
-
distribution?: any;
|
|
13
12
|
distributionFormatTruncated?: any;
|
|
13
|
+
distribution?: any;
|
|
14
14
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
15
|
export default _default;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
getDistributionDescription?: any;
|
|
3
2
|
openModal?: any;
|
|
4
|
-
getDistributionTitle?: any;
|
|
5
3
|
showDownloadUrls?: any;
|
|
4
|
+
getDistributionTitle?: any;
|
|
6
5
|
isUrlInvalid?: any;
|
|
6
|
+
getDistributionDescription?: any;
|
|
7
7
|
}, {}, {
|
|
8
8
|
downloadAllTop: boolean;
|
|
9
9
|
}, {
|
|
10
10
|
getDistributions: import('vuex').Computed;
|
|
11
11
|
getLanguages: import('vuex').Computed;
|
|
12
12
|
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
13
|
-
getDistributionDescription?: any;
|
|
14
13
|
openModal?: any;
|
|
15
|
-
getDistributionTitle?: any;
|
|
16
14
|
showDownloadUrls?: any;
|
|
15
|
+
getDistributionTitle?: any;
|
|
17
16
|
isUrlInvalid?: any;
|
|
17
|
+
getDistributionDescription?: any;
|
|
18
18
|
}> & Readonly<{}>, {}, {}, {
|
|
19
19
|
DownloadAllDistributions: any;
|
|
20
20
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getTranslationFor } from '../../utils/helpers';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<{
|
|
3
3
|
small?: any;
|
|
4
|
-
primary?: any;
|
|
5
|
-
getDistributionDescription?: any;
|
|
6
4
|
openModal?: any;
|
|
7
|
-
getDistributionTitle?: any;
|
|
8
5
|
showDownloadUrls?: any;
|
|
6
|
+
getDistributionTitle?: any;
|
|
9
7
|
isUrlInvalid?: any;
|
|
8
|
+
getDistributionDescription?: any;
|
|
9
|
+
primary?: any;
|
|
10
10
|
}, void, {
|
|
11
11
|
downloadedFilesCounter: number;
|
|
12
12
|
numberOfFilesToZip: number;
|
|
@@ -25,9 +25,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
27
|
files(): any;
|
|
28
|
-
getDistributions: import('vuex').Computed;
|
|
29
|
-
getTitle: import('vuex').Computed;
|
|
30
28
|
getCatalog: import('vuex').Computed;
|
|
29
|
+
getTitle: import('vuex').Computed;
|
|
30
|
+
getDistributions: import('vuex').Computed;
|
|
31
31
|
getLanguages: import('vuex').Computed;
|
|
32
32
|
}, {
|
|
33
33
|
getTranslationFor: typeof getTranslationFor;
|
|
@@ -42,11 +42,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
42
42
|
onClose(e: any): void;
|
|
43
43
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
44
44
|
small?: any;
|
|
45
|
-
primary?: any;
|
|
46
|
-
getDistributionDescription?: any;
|
|
47
45
|
openModal?: any;
|
|
48
|
-
getDistributionTitle?: any;
|
|
49
46
|
showDownloadUrls?: any;
|
|
47
|
+
getDistributionTitle?: any;
|
|
50
48
|
isUrlInvalid?: any;
|
|
49
|
+
getDistributionDescription?: any;
|
|
50
|
+
primary?: any;
|
|
51
51
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
52
52
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
2
|
getDistributionFormat?: any;
|
|
3
|
-
distribution?: any;
|
|
4
3
|
isOnlyOneUrl?: any;
|
|
5
4
|
getDownloadUrl?: any;
|
|
6
5
|
trackGoto?: any;
|
|
7
6
|
showAccessUrls?: any;
|
|
8
7
|
replaceHttp?: any;
|
|
8
|
+
distribution?: any;
|
|
9
9
|
}, {}, {
|
|
10
10
|
showUrlCopiedPopup: boolean;
|
|
11
11
|
}, {}, {
|
|
@@ -13,12 +13,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
13
13
|
popupCopyUrlAlert(): void;
|
|
14
14
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
15
15
|
getDistributionFormat?: any;
|
|
16
|
-
distribution?: any;
|
|
17
16
|
isOnlyOneUrl?: any;
|
|
18
17
|
getDownloadUrl?: any;
|
|
19
18
|
trackGoto?: any;
|
|
20
19
|
showAccessUrls?: any;
|
|
21
20
|
replaceHttp?: any;
|
|
21
|
+
distribution?: any;
|
|
22
22
|
}> & Readonly<{}>, {}, {}, {
|
|
23
23
|
DistributionDropdownDownload: any;
|
|
24
24
|
DistributionDownloadAs: any;
|
package/dist/datasetDetails/distributions/distributionActions/DistributionDropdownDownload.vue.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { replaceHttp } from '../../../utils/helpers';
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<{
|
|
3
3
|
title?: any;
|
|
4
4
|
message?: any;
|
|
5
|
-
distribution?: any;
|
|
6
5
|
isOnlyOneUrl?: any;
|
|
7
6
|
getDownloadUrl?: any;
|
|
7
|
+
distribution?: any;
|
|
8
8
|
bgLight?: any;
|
|
9
9
|
}, {}, {
|
|
10
10
|
open: boolean;
|
|
@@ -16,9 +16,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
16
16
|
}, any, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
17
17
|
title?: any;
|
|
18
18
|
message?: any;
|
|
19
|
-
distribution?: any;
|
|
20
19
|
isOnlyOneUrl?: any;
|
|
21
20
|
getDownloadUrl?: any;
|
|
21
|
+
distribution?: any;
|
|
22
22
|
bgLight?: any;
|
|
23
23
|
}> & Readonly<{}>, {}, {}, {
|
|
24
24
|
AppLink: any;
|
package/dist/datasetDetails/distributions/distributionActions/DistributionOptionsDropdown.vue.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
isUrlInvalid?: any;
|
|
3
|
-
distribution?: any;
|
|
4
2
|
getVisualisationLink?: any;
|
|
5
3
|
previewLinkCallback?: any;
|
|
4
|
+
isUrlInvalid?: any;
|
|
6
5
|
openIfValidUrl?: any;
|
|
7
6
|
showTooltipVisualiseButton?: any;
|
|
7
|
+
distribution?: any;
|
|
8
8
|
}, {}, {
|
|
9
9
|
visualisationLinkFormats: string[];
|
|
10
10
|
geoLinkFormats: {
|
|
@@ -23,12 +23,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
23
23
|
showGeoLink(distribution: any): boolean;
|
|
24
24
|
showVisualisationLink(distribution: any): any;
|
|
25
25
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
26
|
-
isUrlInvalid?: any;
|
|
27
|
-
distribution?: any;
|
|
28
26
|
getVisualisationLink?: any;
|
|
29
27
|
previewLinkCallback?: any;
|
|
28
|
+
isUrlInvalid?: any;
|
|
30
29
|
openIfValidUrl?: any;
|
|
31
30
|
showTooltipVisualiseButton?: any;
|
|
31
|
+
distribution?: any;
|
|
32
32
|
}> & Readonly<{}>, {}, {}, {
|
|
33
33
|
Dropdown: any;
|
|
34
34
|
AppLink: any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
isUrlInvalid?: any;
|
|
3
|
-
distribution?: any;
|
|
4
2
|
getVisualisationLink?: any;
|
|
5
3
|
previewLinkCallback?: any;
|
|
4
|
+
isUrlInvalid?: any;
|
|
6
5
|
openIfValidUrl?: any;
|
|
7
6
|
showTooltipVisualiseButton?: any;
|
|
7
|
+
distribution?: any;
|
|
8
8
|
}, {}, {
|
|
9
9
|
visualisationLinkFormats: string[];
|
|
10
10
|
geoLinkFormats: {
|
|
@@ -23,12 +23,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
23
23
|
showGeoLink(distribution: any): boolean;
|
|
24
24
|
showVisualisationLink(distribution: any): any;
|
|
25
25
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
26
|
-
isUrlInvalid?: any;
|
|
27
|
-
distribution?: any;
|
|
28
26
|
getVisualisationLink?: any;
|
|
29
27
|
previewLinkCallback?: any;
|
|
28
|
+
isUrlInvalid?: any;
|
|
30
29
|
openIfValidUrl?: any;
|
|
31
30
|
showTooltipVisualiseButton?: any;
|
|
31
|
+
distribution?: any;
|
|
32
32
|
}> & Readonly<{}>, {}, {}, {
|
|
33
33
|
AppLink: any;
|
|
34
34
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
isUrlInvalid?: any;
|
|
3
|
-
distribution?: any;
|
|
4
2
|
getVisualisationLink?: any;
|
|
5
3
|
previewLinkCallback?: any;
|
|
4
|
+
isUrlInvalid?: any;
|
|
6
5
|
openIfValidUrl?: any;
|
|
7
6
|
showTooltipVisualiseButton?: any;
|
|
7
|
+
distribution?: any;
|
|
8
8
|
}, {}, {
|
|
9
9
|
showVisualisationButton: any;
|
|
10
10
|
visualisationLinkFormats: string[];
|
|
@@ -23,12 +23,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
23
23
|
showGeoLink(distribution: any): boolean;
|
|
24
24
|
showVisualisationLink(distribution: any): any;
|
|
25
25
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
26
|
-
isUrlInvalid?: any;
|
|
27
|
-
distribution?: any;
|
|
28
26
|
getVisualisationLink?: any;
|
|
29
27
|
previewLinkCallback?: any;
|
|
28
|
+
isUrlInvalid?: any;
|
|
30
29
|
openIfValidUrl?: any;
|
|
31
30
|
showTooltipVisualiseButton?: any;
|
|
31
|
+
distribution?: any;
|
|
32
32
|
}> & Readonly<{}>, {}, {}, {
|
|
33
33
|
AppLink: any;
|
|
34
34
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -3,7 +3,7 @@ import { mapGetters as F } from "vuex";
|
|
|
3
3
|
import N from "../../../widgets/Tooltip.vue.mjs";
|
|
4
4
|
import T from "../../../widgets/AppLink.vue.mjs";
|
|
5
5
|
import { truncate as A, formatDatetime as R, getTranslationFor as L } from "../../../utils/helpers.mjs";
|
|
6
|
-
import { resolveComponent as w, openBlock as n, createElementBlock as o, Fragment as
|
|
6
|
+
import { resolveComponent as w, openBlock as n, createElementBlock as o, Fragment as f, renderList as h, createElementVNode as d, createVNode as b, withCtx as u, createTextVNode as e, toDisplayString as l, createBlock as _, createCommentVNode as r } from "vue";
|
|
7
7
|
import j from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
8
|
const B = {
|
|
9
9
|
name: "DistributionContent",
|
|
@@ -88,7 +88,7 @@ const B = {
|
|
|
88
88
|
}, bt = { class: "w-25 font-weight-bold" }, mt = { key: 0 }, gt = {
|
|
89
89
|
key: 14,
|
|
90
90
|
class: "distribution-compressFormat-tr distribution-content-tr"
|
|
91
|
-
}, yt = { class: "w-25 font-weight-bold" }, kt = { key: 0 },
|
|
91
|
+
}, yt = { class: "w-25 font-weight-bold" }, kt = { key: 0 }, ct = { key: 1 }, ft = {
|
|
92
92
|
key: 15,
|
|
93
93
|
class: "distribution-packageFormat-tr distribution-content-tr"
|
|
94
94
|
}, ht = { class: "w-25 font-weight-bold" }, wt = { key: 0 }, Dt = { key: 1 }, vt = {
|
|
@@ -108,9 +108,9 @@ const B = {
|
|
|
108
108
|
class: "distribution-validate-tr distribution-content-tr"
|
|
109
109
|
}, Ut = { key: 0 };
|
|
110
110
|
function Pt(s, i, t, Et, Mt, a) {
|
|
111
|
-
const y = w("tooltip"),
|
|
111
|
+
const y = w("tooltip"), c = w("app-link");
|
|
112
112
|
return n(), o("table", C, [
|
|
113
|
-
(n(!0), o(
|
|
113
|
+
(n(!0), o(f, null, h(t.contentList, (m) => (n(), o(f, null, [
|
|
114
114
|
m === "license" ? (n(), o("tr", O, [
|
|
115
115
|
d("td", I, [
|
|
116
116
|
b(y, {
|
|
@@ -124,7 +124,7 @@ function Pt(s, i, t, Et, Mt, a) {
|
|
|
124
124
|
]),
|
|
125
125
|
i[6] || (i[6] = e()),
|
|
126
126
|
t.showObject(t.distribution.licence) && t.showLicence(t.distribution.licence) ? (n(), o("td", U, [
|
|
127
|
-
b(
|
|
127
|
+
b(c, {
|
|
128
128
|
to: t.distribution.licence.resource,
|
|
129
129
|
target: "_blank",
|
|
130
130
|
onClick: i[0] || (i[0] = (g) => s.$emit("track-link", t.distribution.licence.resource, "link"))
|
|
@@ -135,13 +135,13 @@ function Pt(s, i, t, Et, Mt, a) {
|
|
|
135
135
|
_: 1
|
|
136
136
|
}, 8, ["to"]),
|
|
137
137
|
i[4] || (i[4] = e()),
|
|
138
|
-
b(
|
|
138
|
+
b(c, {
|
|
139
139
|
to: this.$env.content.datasetDetails.distributions.licencingAssistantUrl ? `${this.$env.content.datasetDetails.distributions.licencingAssistantUrl}?locale=${s.$route.query.locale}` : t.distribution.licence.resource,
|
|
140
140
|
target: "_blank",
|
|
141
141
|
"data-toggle": "tooltip",
|
|
142
142
|
isTooltip: "true",
|
|
143
143
|
"data-placement": "top",
|
|
144
|
-
title: t.distribution.licence.description,
|
|
144
|
+
title: this.$env.content.datasetDetails.distributions.licencingAssistantUrl ? "Licensing assistant" : t.distribution.licence.description,
|
|
145
145
|
onClick: i[1] || (i[1] = (g) => s.$emit("track-link", t.distribution.licence.resource, "link"))
|
|
146
146
|
}, {
|
|
147
147
|
default: u(() => i[3] || (i[3] = [
|
|
@@ -151,7 +151,7 @@ function Pt(s, i, t, Et, Mt, a) {
|
|
|
151
151
|
__: [3]
|
|
152
152
|
}, 8, ["to", "title"]),
|
|
153
153
|
i[5] || (i[5] = e()),
|
|
154
|
-
t.showLicensingAssistant(t.distribution) ? (n(), _(
|
|
154
|
+
t.showLicensingAssistant(t.distribution) ? (n(), _(c, {
|
|
155
155
|
key: 0,
|
|
156
156
|
to: t.distribution.licence.la_url,
|
|
157
157
|
target: "_blank",
|
|
@@ -240,7 +240,7 @@ function Pt(s, i, t, Et, Mt, a) {
|
|
|
240
240
|
]),
|
|
241
241
|
i[11] || (i[11] = e()),
|
|
242
242
|
d("td", null, [
|
|
243
|
-
(n(!0), o(
|
|
243
|
+
(n(!0), o(f, null, h(t.distribution.languages.map((g) => g.label), (g, k) => (n(), o("div", { key: k }, [
|
|
244
244
|
d("span", null, l(g), 1)
|
|
245
245
|
]))), 128))
|
|
246
246
|
])
|
|
@@ -348,8 +348,8 @@ function Pt(s, i, t, Et, Mt, a) {
|
|
|
348
348
|
d("td", rt, l(s.$t("message.metadata.pages")), 1),
|
|
349
349
|
i[19] || (i[19] = e()),
|
|
350
350
|
d("td", null, [
|
|
351
|
-
(n(!0), o(
|
|
352
|
-
b(
|
|
351
|
+
(n(!0), o(f, null, h(t.distribution.pages, (g, k) => (n(), o("div", { key: k }, [
|
|
352
|
+
b(c, {
|
|
353
353
|
to: g.resource
|
|
354
354
|
}, {
|
|
355
355
|
default: u(() => [
|
|
@@ -393,11 +393,11 @@ function Pt(s, i, t, Et, Mt, a) {
|
|
|
393
393
|
d("td", null, [
|
|
394
394
|
a.isNil(t.distribution.compressFormat.label) ? r("", !0) : (n(), o("div", kt, l(t.distribution.compressFormat.label), 1)),
|
|
395
395
|
i[21] || (i[21] = e()),
|
|
396
|
-
a.isNil(t.distribution.compressFormat.resource) ? r("", !0) : (n(), o("div",
|
|
396
|
+
a.isNil(t.distribution.compressFormat.resource) ? r("", !0) : (n(), o("div", ct, l(t.distribution.compressFormat.resource), 1))
|
|
397
397
|
])
|
|
398
398
|
])) : r("", !0),
|
|
399
399
|
i[44] || (i[44] = e()),
|
|
400
|
-
m === "packageFormat" && a.has(t.distribution, "packageFormat") && t.showObject(t.distribution.packageFormat) ? (n(), o("tr",
|
|
400
|
+
m === "packageFormat" && a.has(t.distribution, "packageFormat") && t.showObject(t.distribution.packageFormat) ? (n(), o("tr", ft, [
|
|
401
401
|
d("td", ht, [
|
|
402
402
|
b(y, {
|
|
403
403
|
title: s.$t("message.tooltip.datasetDetails.distributions.packageFormat")
|
|
@@ -450,14 +450,14 @@ function Pt(s, i, t, Et, Mt, a) {
|
|
|
450
450
|
]),
|
|
451
451
|
i[27] || (i[27] = e()),
|
|
452
452
|
d("td", null, [
|
|
453
|
-
(n(!0), o(
|
|
453
|
+
(n(!0), o(f, null, h(t.distribution.conformsTo, (g, k) => (n(), o("div", { key: k }, [
|
|
454
454
|
a.has(g, "label") && !a.isNil(g.label) ? (n(), o("div", Rt, l(s.$t("message.metadata.label")) + `:
|
|
455
455
|
` + l(g.label), 1)) : r("", !0),
|
|
456
456
|
i[26] || (i[26] = e()),
|
|
457
457
|
a.has(g, "resource") && !a.isNil(g.resource) ? (n(), o("div", Lt, [
|
|
458
458
|
e(l(s.$t("message.metadata.resource")) + `:
|
|
459
459
|
`, 1),
|
|
460
|
-
b(
|
|
460
|
+
b(c, {
|
|
461
461
|
to: g.resource,
|
|
462
462
|
target: "_blank",
|
|
463
463
|
onClick: (St) => s.$emit("track-link", g.resource, "link")
|
|
@@ -502,13 +502,13 @@ function Pt(s, i, t, Et, Mt, a) {
|
|
|
502
502
|
]),
|
|
503
503
|
i[29] || (i[29] = e()),
|
|
504
504
|
d("td", null, [
|
|
505
|
-
(n(!0), o(
|
|
505
|
+
(n(!0), o(f, null, h(t.distribution.temporalResolution, (g, k) => (n(), o("div", { key: k }, l(a.formatDatetime(g)), 1))), 128))
|
|
506
506
|
])
|
|
507
507
|
])) : r("", !0),
|
|
508
508
|
i[49] || (i[49] = e()),
|
|
509
509
|
m === "validate" ? (n(), o("tr", It, [
|
|
510
510
|
this.$env.content.datasetDetails.distributions.showValidationButton ? (n(), o("td", Ut, [
|
|
511
|
-
b(
|
|
511
|
+
b(c, {
|
|
512
512
|
class: "ecl-button--secondary row pt-0 pb-0 pl-4 pr-4 mt-2 text-decoration-none",
|
|
513
513
|
to: { path: `${s.getID}/quality/`, query: Object.assign({}, { locale: s.$route.query.locale }) }
|
|
514
514
|
}, {
|