@piveau/piveau-hub-ui-modules 4.6.0 → 4.6.2
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/datasetDetails/distributions/Distributions.vue.d.ts +1 -0
- package/dist/datasetDetails/distributions/Distributions.vue.mjs +34 -29
- package/dist/datasetDetails/distributions/Distributions.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs +48 -48
- package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/dist/services/datasetService.mjs +1 -1
- package/dist/services/datasetService.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -42,6 +42,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
42
42
|
showPublisher: BooleanConstructor;
|
|
43
43
|
embed: BooleanConstructor;
|
|
44
44
|
}>, {}, {
|
|
45
|
+
componentKey: number;
|
|
45
46
|
downloadAllTop: boolean;
|
|
46
47
|
showDistibutionVisualisation: boolean;
|
|
47
48
|
previewedDistributionTitle: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import v from "./DownloadAllDistributions.vue.mjs";
|
|
2
|
-
import { has as
|
|
2
|
+
import { has as p, isNil as y } from "lodash-es";
|
|
3
3
|
import { getTranslationFor as f } from "../../utils/helpers.mjs";
|
|
4
4
|
import { mapGetters as I } from "vuex";
|
|
5
5
|
import T from "./DistributionDownloadAsModal.vue.mjs";
|
|
6
|
-
import { resolveComponent as s, openBlock as
|
|
6
|
+
import { resolveComponent as s, openBlock as e, createElementBlock as a, createVNode as D, createTextVNode as l, createElementVNode as u, Fragment as A, renderList as C, createBlock as d, createCommentVNode as w } from "vue";
|
|
7
7
|
import "./Distributions.vue2.mjs";
|
|
8
|
-
import
|
|
9
|
-
const
|
|
8
|
+
import L from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
9
|
+
const V = {
|
|
10
10
|
name: "Distributions",
|
|
11
11
|
components: {
|
|
12
12
|
DownloadAllDistributions: v,
|
|
@@ -60,6 +60,7 @@ const _ = {
|
|
|
60
60
|
},
|
|
61
61
|
data() {
|
|
62
62
|
return {
|
|
63
|
+
componentKey: 0,
|
|
63
64
|
downloadAllTop: this.$env.content.datasetDetails.bulkDownload.buttonPosition === "top",
|
|
64
65
|
// previewedDistributionTitle: this.getDistributionTitle(this.displayedDistributions[0]),
|
|
65
66
|
showDistibutionVisualisation: !1,
|
|
@@ -77,17 +78,20 @@ const _ = {
|
|
|
77
78
|
])
|
|
78
79
|
},
|
|
79
80
|
methods: {
|
|
80
|
-
getDistributionDescription(
|
|
81
|
-
return
|
|
81
|
+
getDistributionDescription(n) {
|
|
82
|
+
return p(n, "description") && !y(n.description) ? f(n.description, this.$route.query.locale, this.getLanguages) : "-";
|
|
82
83
|
},
|
|
83
|
-
selectDistribution(
|
|
84
|
-
this.previewedDistTitle =
|
|
84
|
+
selectDistribution(n) {
|
|
85
|
+
this.previewedDistTitle = n.title, this.previewedDistDownloadUrl = n.url, this.previewedDistFormat = n.format, this.showDistibutionVisualisation = !0, this.componentKey += 1, this.$nextTick(() => {
|
|
86
|
+
const t = this.$refs.visualisationComponent;
|
|
87
|
+
t && t.$el.scrollIntoView({ behavior: "smooth" });
|
|
88
|
+
});
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
|
-
},
|
|
88
|
-
function O(
|
|
89
|
-
const m = s("distributions-header"),
|
|
90
|
-
return
|
|
91
|
+
}, _ = { class: "mt-1 dsd-distributions" }, k = { class: "row" }, x = { class: "list list-unstyled w-100" }, E = { class: "w-100 d-flex flex-row justify-content-end" };
|
|
92
|
+
function O(n, t, i, N, o, r) {
|
|
93
|
+
const m = s("distributions-header"), h = s("distribution"), g = s("download-all-distributions"), F = s("download-as-modal"), U = s("distribution-visualisation-slot");
|
|
94
|
+
return e(), a("div", _, [
|
|
91
95
|
D(m, {
|
|
92
96
|
getDistributionDescription: r.getDistributionDescription,
|
|
93
97
|
openModal: i.openModal,
|
|
@@ -97,14 +101,14 @@ function O(t, n, i, N, e, r) {
|
|
|
97
101
|
showPublisher: i.showPublisher,
|
|
98
102
|
embed: i.embed
|
|
99
103
|
}, null, 8, ["getDistributionDescription", "openModal", "getDistributionTitle", "showDownloadUrls", "isUrlInvalid", "showPublisher", "embed"]),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
(
|
|
104
|
+
t[1] || (t[1] = l()),
|
|
105
|
+
u("div", k, [
|
|
106
|
+
u("ul", x, [
|
|
107
|
+
(e(), a("div", {
|
|
104
108
|
class: "distributions",
|
|
105
109
|
key: `${i.expandedDistributions.length}--${i.expandedDistributionDescriptions.length}`
|
|
106
110
|
}, [
|
|
107
|
-
(
|
|
111
|
+
(e(!0), a(A, null, C(i.displayedDistributions, (c, b) => (e(), d(h, {
|
|
108
112
|
onSelectForPreview: r.selectDistribution,
|
|
109
113
|
key: `${b}--${c.id}`,
|
|
110
114
|
distribution: c,
|
|
@@ -147,9 +151,9 @@ function O(t, n, i, N, e, r) {
|
|
|
147
151
|
}, null, 8, ["onSelectForPreview", "distribution", "fading", "distributions", "setDistributionsDisplayCount", "getDistributionFormat", "distributionFormatTruncated", "getDistributionTitle", "distributionVisibleContent", "distributionExpandedContent", "distributionDescriptionIsExpanded", "distributionDescriptionIsExpandable", "getDistributionDescription", "distributionIsExpanded", "showObject", "showNumber", "showDownloadDropdown", "showLicence", "showLicensingAssistant", "filterDateFormatEU", "showArray", "showObjectArray", "getVisualisationLink", "isOnlyOneUrl", "getDownloadUrl", "trackGoto", "showAccessUrls", "replaceHttp", "previewLinkCallback", "toggleDistribution", "toggleDistributionDescription", "increaseNumDisplayedDistributions", "nonOverflowingIncrementsForDistributions", "isUrlInvalid", "openIfValidUrl", "showTooltipVisualiseButton", "appendCurrentLocaleToURL", "embed"]))), 128))
|
|
148
152
|
]))
|
|
149
153
|
]),
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
154
|
+
t[0] || (t[0] = l()),
|
|
155
|
+
u("div", E, [
|
|
156
|
+
o.downloadAllTop ? w("", !0) : (e(), d(g, {
|
|
153
157
|
key: 0,
|
|
154
158
|
getDistributionDescription: r.getDistributionDescription,
|
|
155
159
|
openModal: i.openModal,
|
|
@@ -159,20 +163,21 @@ function O(t, n, i, N, e, r) {
|
|
|
159
163
|
}, null, 8, ["getDistributionDescription", "openModal", "getDistributionTitle", "showDownloadUrls", "isUrlInvalid"]))
|
|
160
164
|
])
|
|
161
165
|
]),
|
|
162
|
-
|
|
166
|
+
t[2] || (t[2] = l()),
|
|
163
167
|
D(F),
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
168
|
+
t[3] || (t[3] = l()),
|
|
169
|
+
o.showDistibutionVisualisation && o.showVisualisation ? (e(), d(U, {
|
|
170
|
+
ref: "visualisationComponent",
|
|
171
|
+
key: o.componentKey,
|
|
167
172
|
class: "mb-4",
|
|
168
|
-
title:
|
|
169
|
-
downloadUrl:
|
|
170
|
-
format:
|
|
173
|
+
title: n.previewedDistTitle,
|
|
174
|
+
downloadUrl: o.previewedDistDownloadUrl,
|
|
175
|
+
format: o.previewedDistFormat
|
|
171
176
|
}, null, 8, ["title", "downloadUrl", "format"])) : w("", !0)
|
|
172
177
|
]);
|
|
173
178
|
}
|
|
174
|
-
const
|
|
179
|
+
const S = /* @__PURE__ */ L(V, [["render", O], ["__scopeId", "data-v-1d6189ce"]]);
|
|
175
180
|
export {
|
|
176
|
-
|
|
181
|
+
S as default
|
|
177
182
|
};
|
|
178
183
|
//# sourceMappingURL=Distributions.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Distributions.vue.mjs","sources":["../../../lib/datasetDetails/distributions/Distributions.vue"],"sourcesContent":["<template>\n <div class=\"mt-1 dsd-distributions\">\n <distributions-header\n :getDistributionDescription=\"getDistributionDescription\"\n :openModal=\"openModal\"\n :getDistributionTitle=\"getDistributionTitle\"\n :showDownloadUrls=\"showDownloadUrls\"\n :isUrlInvalid=\"isUrlInvalid\"\n :showPublisher=\"showPublisher\"\n :embed=\"embed\"\n />\n <div class=\"row\">\n <ul class=\"list list-unstyled w-100\">\n <div class=\"distributions\" :key=\"`${expandedDistributions.length}--${expandedDistributionDescriptions.length}`\">\n <distribution\n v-for=\"(distribution, index) in displayedDistributions\"\n @selectForPreview=\"selectDistribution\"\n :key=\"`${index}--${distribution.id}`\"\n :distribution=\"distribution\"\n :fading=\"!distributions.displayAll && !isDistributionsAllDisplayed && index === distributions.displayCount - 1\"\n :distributions=\"distributions\"\n :setDistributionsDisplayCount=\"setDistributionsDisplayCount\"\n :getDistributionFormat=\"getDistributionFormat\"\n :distributionFormatTruncated=\"distributionFormatTruncated\"\n :getDistributionTitle=\"getDistributionTitle\"\n :distributionVisibleContent=\"distributionVisibleContent\"\n :distributionExpandedContent=\"distributionExpandedContent\"\n :distributionDescriptionIsExpanded=\"distributionDescriptionIsExpanded\"\n :distributionDescriptionIsExpandable=\"distributionDescriptionIsExpandable\"\n :getDistributionDescription=\"getDistributionDescription\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n :showObject=\"showObject\"\n :showNumber=\"showNumber\"\n :showDownloadDropdown=\"showDownloadDropdown\"\n :showLicence=\"showLicence\"\n :showLicensingAssistant=\"showLicensingAssistant\"\n :filterDateFormatEU=\"filterDateFormatEU\"\n :showArray=\"showArray\"\n :showObjectArray=\"showObjectArray\"\n :getVisualisationLink=\"getVisualisationLink\"\n :isOnlyOneUrl=\"isOnlyOneUrl\"\n :getDownloadUrl=\"getDownloadUrl\"\n :trackGoto=\"trackGoto\"\n :showAccessUrls=\"showAccessUrls\"\n :replaceHttp=\"replaceHttp\"\n :previewLinkCallback=\"previewLinkCallback\"\n :toggleDistribution=\"toggleDistribution\"\n :toggleDistributionDescription=\"toggleDistributionDescription\"\n :increaseNumDisplayedDistributions=\"increaseNumDisplayedDistributions\"\n :nonOverflowingIncrementsForDistributions=\"nonOverflowingIncrementsForDistributions\"\n :isUrlInvalid=\"isUrlInvalid\"\n :openIfValidUrl=\"openIfValidUrl\"\n :showTooltipVisualiseButton=\"showTooltipVisualiseButton\"\n :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n :embed=\"embed\"\n />\n </div>\n </ul>\n <div class=\"w-100 d-flex flex-row justify-content-end\">\n <download-all-distributions\n v-if=\"!downloadAllTop\"\n :getDistributionDescription=\"getDistributionDescription\"\n :openModal=\"openModal\"\n :getDistributionTitle=\"getDistributionTitle\"\n :showDownloadUrls=\"showDownloadUrls\"\n :isUrlInvalid=\"isUrlInvalid\"\n />\n </div>\n </div>\n <download-as-modal />\n <!-- <distribution-visualization v-if=\"showDistibutionVisualisation\" class=\"mb-4\"></distribution-visualization> -->\n <distribution-visualisation-slot \n v-if=\"showDistibutionVisualisation && showVisualisation\"\n class=\"mb-4\"\n :title=\"previewedDistTitle\"\n :downloadUrl=\"previewedDistDownloadUrl\"\n :format=\"previewedDistFormat\"\n ></distribution-visualisation-slot>\n </div>\n</template>\n\n<script>\n\n// import Distribution from './Distribution.vue';\nimport DownloadAllDistributions from \"../../datasetDetails/distributions/DownloadAllDistributions\";\nimport {has, isNil} from \"lodash\";\nimport {getTranslationFor} from \"../../utils/helpers\";\nimport { mapGetters } from \"vuex\";\nimport DownloadAsModal from \"../../datasetDetails/distributions/DistributionDownloadAsModal\";\n// import DistributionVisualisation from \"./distributionPreview/DistributionVisualisation.vue\";\n\nexport default {\n name: 'Distributions',\n components: {\n DownloadAllDistributions,\n // Distribution,\n DownloadAsModal,\n // DistributionVisualisation,\n },\n props: {\n openModal: Function,\n expandedDistributions: Array,\n expandedDistributionDescriptions: Array,\n displayedDistributions: Array,\n distributions: Object,\n setDistributionsDisplayCount: Function,\n isDistributionsAllDisplayed: Boolean,\n pages: Object,\n showDownloadUrls: Function,\n getDistributionFormat: Function,\n distributionFormatTruncated: Function,\n getDistributionTitle: Function,\n distributionVisibleContent: Array,\n distributionExpandedContent: Array,\n distributionDescriptionIsExpanded: Function,\n distributionDescriptionIsExpandable: Function,\n distributionIsExpanded: Function,\n showObject: Function,\n showNumber: Function,\n showDownloadDropdown: Function,\n showLicence: Function,\n showLicensingAssistant: Function,\n filterDateFormatEU: Function,\n showArray: Function,\n showObjectArray: Function,\n getVisualisationLink: Function,\n isOnlyOneUrl: Function,\n getDownloadUrl: Function,\n trackGoto: Function,\n showAccessUrls: Function,\n replaceHttp: Function,\n previewLinkCallback: Function,\n toggleDistribution: Function,\n toggleDistributionDescription: Function,\n increaseNumDisplayedDistributions: Function,\n nonOverflowingIncrementsForDistributions: Function,\n isUrlInvalid: Function,\n openIfValidUrl: Function,\n showTooltipVisualiseButton: Function,\n appendCurrentLocaleToURL: Function,\n showPublisher: Boolean,\n embed: Boolean,\n },\n data() {\n return {\n downloadAllTop: this.$env.content.datasetDetails.bulkDownload.buttonPosition === \"top\",\n // previewedDistributionTitle: this.getDistributionTitle(this.displayedDistributions[0]),\n showDistibutionVisualisation: false,\n previewedDistributionTitle: \"\",\n previewedDistDownloadUrl: \"\",\n previewedDistFormat: \"\",\n selectedDistribution: null,\n showVisualisation: this.$env.content.datasetDetails.distributions.showVisualisation,\n\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getLanguages',\n 'getCatalog',\n ]),\n },\n methods: {\n getDistributionDescription(distribution) {\n return (has(distribution, 'description') && !isNil(distribution.description)) ? getTranslationFor(distribution.description, this.$route.query.locale, this.getLanguages) : '-';\n },\n selectDistribution(dist) {\n this.previewedDistTitle = dist.title;\n this.previewedDistDownloadUrl = dist.url;\n this.previewedDistFormat = dist.format;\n this.showDistibutionVisualisation = true;\n },\n },\n};\n</script>\n\n<style lang=\"scss\" scoped>\n .catalogue-label {\n white-space: pre-line;\n }\n\n .cursor-pointer {\n cursor: pointer;\n }\n\n .tag-color {\n background-color: var(--tag-color);\n }\n .subjectBg {\n background-color: #196fd2;\n }\n .btn-color {\n &:hover {\n background-color: #196fd2;\n border-color: #196fd2;\n }\n }\n\n .download-all-btn {\n min-width: 100px;\n height: 31px;\n }\n\n /*** BOOTSTRAP ***/\n button:focus {\n outline:0;\n }\n\n.spinner-grow {\n width: 20px;\n height: 20px;\n}\n\n /*** FONT AWESOME ICONS ***/\n .fa-check-square {\n color: #28a745;\n width: 16px;\n height: 16px;\n }\n\n /*** MATERIAL ICONS ***/\n %modal-icon {\n font-size: 18px;\n cursor: default;\n }\n\n .help-icon {\n @extend %modal-icon;\n }\n\n .check-icon {\n @extend %modal-icon;\n color: #28a745;\n }\n\n .material-icons.small-icon {\n font-size: 20px;\n }\n\n .mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .keywords {\n\n &__item {\n position: relative;\n }\n\n &__actions {\n display: flex;\n justify-content: center;\n align-items: flex-end;\n height: 100%;\n z-index: 11;\n }\n }\n .sectionList {\n list-style-type: '→ ';\n margin-left:6.5%;\n }\n @media only screen and (max-width: 991px) {\n .sectionList {\n margin-left: 0;\n }\n}\n</style>\n"],"names":["_sfc_main","DownloadAllDistributions","DownloadAsModal","mapGetters","distribution","has","isNil","getTranslationFor","dist","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_openBlock","_createElementBlock","_createVNode","_component_distributions_header","$options","$props","_cache","_createTextVNode","_createElementVNode","_Fragment","_renderList","index","_createBlock","_component_distribution","$data","_createCommentVNode","_component_download_all_distributions","_component_download_as_modal","_component_distribution_visualisation_slot","_ctx"],"mappings":";;;;;;;;AA2FA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,0BAAAC;AAAA;AAAA,IAEA,iBAAAC;AAAA;AAAA,EAED;AAAA,EACD,OAAO;AAAA,IACL,WAAW;AAAA,IACX,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,wBAAwB;AAAA,IACxB,eAAe;AAAA,IACf,8BAA8B;AAAA,IAC9B,6BAA6B;AAAA,IAC7B,OAAO;AAAA,IACP,kBAAkB;AAAA,IAClB,uBAAuB;AAAA,IAC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AqBe,CAAA;AAAA,IArE3BX,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IAwEcO,EAAA,gCAAgCA,EAAiB,0BADzDF,EAMmCM,GAAA;AAAA,MA7EzC,KAAA;AAAA,MAyEQ,OAAM;AAAA,MACL,OAAOC,EAAkB;AAAA,MACzB,aAAaL,EAAwB;AAAA,MACrC,QAAQA,EAAmB;AAAA,uDA5EpCC,EAAA,IAAA,EAAA;AAAA;;;"}
|
|
1
|
+
{"version":3,"file":"Distributions.vue.mjs","sources":["../../../lib/datasetDetails/distributions/Distributions.vue"],"sourcesContent":["<template>\n <div class=\"mt-1 dsd-distributions\">\n <distributions-header\n :getDistributionDescription=\"getDistributionDescription\"\n :openModal=\"openModal\"\n :getDistributionTitle=\"getDistributionTitle\"\n :showDownloadUrls=\"showDownloadUrls\"\n :isUrlInvalid=\"isUrlInvalid\"\n :showPublisher=\"showPublisher\"\n :embed=\"embed\"\n />\n <div class=\"row\">\n <ul class=\"list list-unstyled w-100\">\n <div class=\"distributions\" :key=\"`${expandedDistributions.length}--${expandedDistributionDescriptions.length}`\">\n <distribution\n v-for=\"(distribution, index) in displayedDistributions\"\n @selectForPreview=\"selectDistribution\"\n :key=\"`${index}--${distribution.id}`\"\n :distribution=\"distribution\"\n :fading=\"!distributions.displayAll && !isDistributionsAllDisplayed && index === distributions.displayCount - 1\"\n :distributions=\"distributions\"\n :setDistributionsDisplayCount=\"setDistributionsDisplayCount\"\n :getDistributionFormat=\"getDistributionFormat\"\n :distributionFormatTruncated=\"distributionFormatTruncated\"\n :getDistributionTitle=\"getDistributionTitle\"\n :distributionVisibleContent=\"distributionVisibleContent\"\n :distributionExpandedContent=\"distributionExpandedContent\"\n :distributionDescriptionIsExpanded=\"distributionDescriptionIsExpanded\"\n :distributionDescriptionIsExpandable=\"distributionDescriptionIsExpandable\"\n :getDistributionDescription=\"getDistributionDescription\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n :showObject=\"showObject\"\n :showNumber=\"showNumber\"\n :showDownloadDropdown=\"showDownloadDropdown\"\n :showLicence=\"showLicence\"\n :showLicensingAssistant=\"showLicensingAssistant\"\n :filterDateFormatEU=\"filterDateFormatEU\"\n :showArray=\"showArray\"\n :showObjectArray=\"showObjectArray\"\n :getVisualisationLink=\"getVisualisationLink\"\n :isOnlyOneUrl=\"isOnlyOneUrl\"\n :getDownloadUrl=\"getDownloadUrl\"\n :trackGoto=\"trackGoto\"\n :showAccessUrls=\"showAccessUrls\"\n :replaceHttp=\"replaceHttp\"\n :previewLinkCallback=\"previewLinkCallback\"\n :toggleDistribution=\"toggleDistribution\"\n :toggleDistributionDescription=\"toggleDistributionDescription\"\n :increaseNumDisplayedDistributions=\"increaseNumDisplayedDistributions\"\n :nonOverflowingIncrementsForDistributions=\"nonOverflowingIncrementsForDistributions\"\n :isUrlInvalid=\"isUrlInvalid\"\n :openIfValidUrl=\"openIfValidUrl\"\n :showTooltipVisualiseButton=\"showTooltipVisualiseButton\"\n :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n :embed=\"embed\"\n />\n </div>\n </ul>\n <div class=\"w-100 d-flex flex-row justify-content-end\">\n <download-all-distributions\n v-if=\"!downloadAllTop\"\n :getDistributionDescription=\"getDistributionDescription\"\n :openModal=\"openModal\"\n :getDistributionTitle=\"getDistributionTitle\"\n :showDownloadUrls=\"showDownloadUrls\"\n :isUrlInvalid=\"isUrlInvalid\"\n />\n </div>\n </div>\n <download-as-modal />\n <!-- <distribution-visualization v-if=\"showDistibutionVisualisation\" class=\"mb-4\"></distribution-visualization> -->\n <distribution-visualisation-slot \n v-if=\"showDistibutionVisualisation && showVisualisation\"\n ref=\"visualisationComponent\"\n :key=\"componentKey\"\n class=\"mb-4\"\n :title=\"previewedDistTitle\"\n :downloadUrl=\"previewedDistDownloadUrl\"\n :format=\"previewedDistFormat\"\n ></distribution-visualisation-slot>\n </div>\n</template>\n\n<script>\n\n// import Distribution from './Distribution.vue';\nimport DownloadAllDistributions from \"../../datasetDetails/distributions/DownloadAllDistributions\";\nimport {has, isNil} from \"lodash\";\nimport {getTranslationFor} from \"../../utils/helpers\";\nimport { mapGetters } from \"vuex\";\nimport DownloadAsModal from \"../../datasetDetails/distributions/DistributionDownloadAsModal\";\n// import DistributionVisualisation from \"./distributionPreview/DistributionVisualisation.vue\";\n\nexport default {\n name: 'Distributions',\n components: {\n DownloadAllDistributions,\n // Distribution,\n DownloadAsModal,\n // DistributionVisualisation,\n },\n props: {\n openModal: Function,\n expandedDistributions: Array,\n expandedDistributionDescriptions: Array,\n displayedDistributions: Array,\n distributions: Object,\n setDistributionsDisplayCount: Function,\n isDistributionsAllDisplayed: Boolean,\n pages: Object,\n showDownloadUrls: Function,\n getDistributionFormat: Function,\n distributionFormatTruncated: Function,\n getDistributionTitle: Function,\n distributionVisibleContent: Array,\n distributionExpandedContent: Array,\n distributionDescriptionIsExpanded: Function,\n distributionDescriptionIsExpandable: Function,\n distributionIsExpanded: Function,\n showObject: Function,\n showNumber: Function,\n showDownloadDropdown: Function,\n showLicence: Function,\n showLicensingAssistant: Function,\n filterDateFormatEU: Function,\n showArray: Function,\n showObjectArray: Function,\n getVisualisationLink: Function,\n isOnlyOneUrl: Function,\n getDownloadUrl: Function,\n trackGoto: Function,\n showAccessUrls: Function,\n replaceHttp: Function,\n previewLinkCallback: Function,\n toggleDistribution: Function,\n toggleDistributionDescription: Function,\n increaseNumDisplayedDistributions: Function,\n nonOverflowingIncrementsForDistributions: Function,\n isUrlInvalid: Function,\n openIfValidUrl: Function,\n showTooltipVisualiseButton: Function,\n appendCurrentLocaleToURL: Function,\n showPublisher: Boolean,\n embed: Boolean,\n },\n data() {\n return {\n componentKey: 0,\n downloadAllTop: this.$env.content.datasetDetails.bulkDownload.buttonPosition === \"top\",\n // previewedDistributionTitle: this.getDistributionTitle(this.displayedDistributions[0]),\n showDistibutionVisualisation: false,\n previewedDistributionTitle: \"\",\n previewedDistDownloadUrl: \"\",\n previewedDistFormat: \"\",\n selectedDistribution: null,\n showVisualisation: this.$env.content.datasetDetails.distributions.showVisualisation,\n\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getLanguages',\n 'getCatalog',\n ]),\n },\n methods: {\n getDistributionDescription(distribution) {\n return (has(distribution, 'description') && !isNil(distribution.description)) ? getTranslationFor(distribution.description, this.$route.query.locale, this.getLanguages) : '-';\n },\n selectDistribution(dist) {\n this.previewedDistTitle = dist.title;\n this.previewedDistDownloadUrl = dist.url;\n this.previewedDistFormat = dist.format;\n this.showDistibutionVisualisation = true;\n this.componentKey += 1; // kill and rerender with new values\n\n // scroll to visualisation component\n this.$nextTick(() => {\n const visualisationComponent = this.$refs.visualisationComponent;\n if (visualisationComponent) {\n visualisationComponent.$el.scrollIntoView({ behavior: 'smooth' });\n }\n });\n },\n },\n};\n</script>\n\n<style lang=\"scss\" scoped>\n .catalogue-label {\n white-space: pre-line;\n }\n\n .cursor-pointer {\n cursor: pointer;\n }\n\n .tag-color {\n background-color: var(--tag-color);\n }\n .subjectBg {\n background-color: #196fd2;\n }\n .btn-color {\n &:hover {\n background-color: #196fd2;\n border-color: #196fd2;\n }\n }\n\n .download-all-btn {\n min-width: 100px;\n height: 31px;\n }\n\n /*** BOOTSTRAP ***/\n button:focus {\n outline:0;\n }\n\n.spinner-grow {\n width: 20px;\n height: 20px;\n}\n\n /*** FONT AWESOME ICONS ***/\n .fa-check-square {\n color: #28a745;\n width: 16px;\n height: 16px;\n }\n\n /*** MATERIAL ICONS ***/\n %modal-icon {\n font-size: 18px;\n cursor: default;\n }\n\n .help-icon {\n @extend %modal-icon;\n }\n\n .check-icon {\n @extend %modal-icon;\n color: #28a745;\n }\n\n .material-icons.small-icon {\n font-size: 20px;\n }\n\n .mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .keywords {\n\n &__item {\n position: relative;\n }\n\n &__actions {\n display: flex;\n justify-content: center;\n align-items: flex-end;\n height: 100%;\n z-index: 11;\n }\n }\n .sectionList {\n list-style-type: '→ ';\n margin-left:6.5%;\n }\n @media only screen and (max-width: 991px) {\n .sectionList {\n margin-left: 0;\n }\n}\n</style>\n"],"names":["_sfc_main","DownloadAllDistributions","DownloadAsModal","mapGetters","distribution","has","isNil","getTranslationFor","dist","visualisationComponent","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_openBlock","_createElementBlock","_createVNode","_component_distributions_header","$options","$props","_cache","_createTextVNode","_createElementVNode","_Fragment","_renderList","index","_createBlock","_component_distribution","$data","_createCommentVNode","_component_download_all_distributions","_component_download_as_modal","_component_distribution_visualisation_slot","_ctx"],"mappings":";;;;;;;;AA6FA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,0BAAAC;AAAA;AAAA,IAEA,iBAAAC;AAAA;AAAA,EAED;AAAA,EACD,OAAO;AAAA,IACL,WAAW;AAAA,IACX,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,wBAAwB;AAAA,IACxB,eAAe;AAAA,IACf,8BAA8B;AAAA,IAC9B,6BAA6B;AAAA,IAC7B,OAAO;AAAA,IACP,kBAAkB;AAAA,IAClB,uBAAuB;AAAA,IACvB,6BAA6B;AAAA,IAC7B,sBAAsB;AAAA,IACtB,4BAA4B;AAAA,IAC5B,6BAA6B;AAAA,IAC7B,mCAAmC;AAAA,IACnC,qCAAqC;AAAA,IACrC,wBAAwB;AAAA,IACxB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,sBAAsB;AAAA,IACtB,aAAa;AAAA,IACb,wBAAwB;AAAA,IACxB,oBAAoB;AAAA,IACpB,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,sBAAsB;AAAA,IACtB,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,qBAAqB;AAAA,IACrB,oBAAoB;AAAA,IACpB,+BAA+B;AAAA,IAC/B,mCAAmC;AAAA,IACnC,0CAA0C;AAAA,IAC1C,cAAc;AA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|
|
40
40
|
return i.label ? i.label : i.resource;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
},
|
|
43
|
+
}, O = {
|
|
44
44
|
class: "col-12 table table-borderless table-responsive small pl-0 mt-2 mb-1 distribution-details-table",
|
|
45
45
|
style: { "margin-left": "-10px" }
|
|
46
|
-
},
|
|
46
|
+
}, I = {
|
|
47
47
|
key: 0,
|
|
48
48
|
class: "distribution-license-tr distribution-content-tr"
|
|
49
|
-
}, _ = { class: "w-25 font-weight-bold" },
|
|
49
|
+
}, _ = { class: "w-25 font-weight-bold" }, P = { key: 0 }, E = { key: 1 }, M = {
|
|
50
50
|
key: 1,
|
|
51
51
|
class: "distribution-licenseAttributionByText-tr distribution-content-tr"
|
|
52
52
|
}, S = { class: "w-25 font-weight-bold" }, U = {
|
|
@@ -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
|
-
},
|
|
91
|
+
}, kt = { class: "w-25 font-weight-bold" }, yt = { key: 0 }, ft = { key: 1 }, ct = {
|
|
92
92
|
key: 15,
|
|
93
93
|
class: "distribution-packageFormat-tr distribution-content-tr"
|
|
94
94
|
}, wt = { class: "w-25 font-weight-bold" }, ht = { key: 0 }, Dt = { key: 1 }, vt = {
|
|
@@ -100,20 +100,20 @@ const B = {
|
|
|
100
100
|
}, At = { class: "w-25 font-weight-bold" }, Rt = { key: 0 }, Lt = { key: 1 }, Ct = {
|
|
101
101
|
key: 18,
|
|
102
102
|
class: "distribution-spatialResolutionInMeters-tr distribution-content-tr"
|
|
103
|
-
}, jt = { class: "w-25 font-weight-bold" }, Bt = { key: 0 },
|
|
103
|
+
}, jt = { class: "w-25 font-weight-bold" }, Bt = { key: 0 }, Ot = {
|
|
104
104
|
key: 19,
|
|
105
105
|
class: "distribution-temporalResolution-tr distribution-content-tr"
|
|
106
|
-
},
|
|
106
|
+
}, It = { class: "w-25 font-weight-bold" }, _t = {
|
|
107
107
|
key: 20,
|
|
108
108
|
class: "distribution-validate-tr distribution-content-tr"
|
|
109
|
-
},
|
|
110
|
-
function
|
|
111
|
-
const
|
|
112
|
-
return n(), o("table",
|
|
109
|
+
}, Pt = { key: 0 };
|
|
110
|
+
function Et(s, i, t, Mt, St, a) {
|
|
111
|
+
const k = h("tooltip"), y = h("app-link");
|
|
112
|
+
return n(), o("table", O, [
|
|
113
113
|
(n(!0), o(c, null, w(t.contentList, (m) => (n(), o(c, null, [
|
|
114
|
-
m === "license" ? (n(), o("tr",
|
|
114
|
+
m === "license" ? (n(), o("tr", I, [
|
|
115
115
|
d("td", _, [
|
|
116
|
-
b(
|
|
116
|
+
b(k, {
|
|
117
117
|
title: s.$t("message.tooltip.datasetDetails.distributions.licence")
|
|
118
118
|
}, {
|
|
119
119
|
default: u(() => [
|
|
@@ -123,8 +123,8 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
123
123
|
}, 8, ["title"])
|
|
124
124
|
]),
|
|
125
125
|
i[9] || (i[9] = e()),
|
|
126
|
-
t.showObject(t.distribution.licence) && t.showLicence(t.distribution.licence) ? (n(), o("td",
|
|
127
|
-
b(
|
|
126
|
+
t.showObject(t.distribution.licence) && t.showLicence(t.distribution.licence) ? (n(), o("td", P, [
|
|
127
|
+
b(y, {
|
|
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,7 +135,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
135
135
|
_: 1
|
|
136
136
|
}, 8, ["to"]),
|
|
137
137
|
i[6] || (i[6] = e()),
|
|
138
|
-
b(
|
|
138
|
+
b(y, {
|
|
139
139
|
to: t.distribution.licence.resource,
|
|
140
140
|
target: "_blank",
|
|
141
141
|
"data-toggle": "tooltip",
|
|
@@ -149,7 +149,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
149
149
|
_: 1
|
|
150
150
|
}, 8, ["to", "title"]),
|
|
151
151
|
i[7] || (i[7] = e()),
|
|
152
|
-
t.showLicensingAssistant(t.distribution) ? (n(), D(
|
|
152
|
+
t.showLicensingAssistant(t.distribution) ? (n(), D(y, {
|
|
153
153
|
key: 0,
|
|
154
154
|
to: t.distribution.licence.la_url,
|
|
155
155
|
target: "_blank",
|
|
@@ -161,7 +161,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
161
161
|
_: 1
|
|
162
162
|
}, 8, ["to"])) : r("", !0),
|
|
163
163
|
i[8] || (i[8] = e()),
|
|
164
|
-
t.showLicensingAssistant(t.distribution) ? (n(), D(
|
|
164
|
+
t.showLicensingAssistant(t.distribution) ? (n(), D(y, {
|
|
165
165
|
key: 1,
|
|
166
166
|
to: t.distribution.licence.la_url,
|
|
167
167
|
target: "_blank",
|
|
@@ -172,12 +172,12 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
172
172
|
])),
|
|
173
173
|
_: 1
|
|
174
174
|
}, 8, ["to"])) : r("", !0)
|
|
175
|
-
])) : (n(), o("td",
|
|
175
|
+
])) : (n(), o("td", E, l(s.$t("message.distributionLicense.notProvided")), 1))
|
|
176
176
|
])) : r("", !0),
|
|
177
177
|
i[33] || (i[33] = e()),
|
|
178
|
-
m === "licenseAttributionByText" && a.has(t.distribution, "licenseAttributionByText") && !a.isNil(t.distribution.licenseAttributionByText) && !a.isNil(a.getTranslationFor(t.distribution.licenseAttributionByText)) ? (n(), o("tr",
|
|
178
|
+
m === "licenseAttributionByText" && a.has(t.distribution, "licenseAttributionByText") && !a.isNil(t.distribution.licenseAttributionByText) && !a.isNil(a.getTranslationFor(t.distribution.licenseAttributionByText)) ? (n(), o("tr", M, [
|
|
179
179
|
d("td", S, [
|
|
180
|
-
b(
|
|
180
|
+
b(k, {
|
|
181
181
|
title: s.$t("message.tooltip.datasetDetails.distributions.licenseAttributionByText")
|
|
182
182
|
}, {
|
|
183
183
|
default: u(() => [
|
|
@@ -192,7 +192,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
192
192
|
i[34] || (i[34] = e()),
|
|
193
193
|
m === "updateDate" ? (n(), o("tr", U, [
|
|
194
194
|
d("td", z, [
|
|
195
|
-
b(
|
|
195
|
+
b(k, {
|
|
196
196
|
title: s.$t("message.tooltip.datasetDetails.distributions.updated")
|
|
197
197
|
}, {
|
|
198
198
|
default: u(() => [
|
|
@@ -209,7 +209,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
209
209
|
i[35] || (i[35] = e()),
|
|
210
210
|
m === "modificationDate" && a.has(t.distribution, "modificationDate") && !a.isNil(t.distribution.modificationDate) ? (n(), o("tr", H, [
|
|
211
211
|
d("td", J, [
|
|
212
|
-
b(
|
|
212
|
+
b(k, {
|
|
213
213
|
title: s.$t("message.tooltip.datasetDetails.distributions.updated")
|
|
214
214
|
}, {
|
|
215
215
|
default: u(() => [
|
|
@@ -224,7 +224,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
224
224
|
i[36] || (i[36] = e()),
|
|
225
225
|
m === "releaseDate" && a.has(t.distribution, "releaseDate") && !a.isNil(t.distribution.releaseDate) ? (n(), o("tr", K, [
|
|
226
226
|
d("td", Q, [
|
|
227
|
-
b(
|
|
227
|
+
b(k, {
|
|
228
228
|
title: s.$t("message.tooltip.datasetDetails.distributions.created")
|
|
229
229
|
}, {
|
|
230
230
|
default: u(() => [
|
|
@@ -239,7 +239,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
239
239
|
i[37] || (i[37] = e()),
|
|
240
240
|
m === "language" && a.has(t.distribution, "languages") && t.showArray(t.distribution.languages) ? (n(), o("tr", W, [
|
|
241
241
|
d("td", X, [
|
|
242
|
-
b(
|
|
242
|
+
b(k, {
|
|
243
243
|
title: s.$t("message.tooltip.datasetDetails.distributions.language")
|
|
244
244
|
}, {
|
|
245
245
|
default: u(() => [
|
|
@@ -258,7 +258,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
258
258
|
i[38] || (i[38] = e()),
|
|
259
259
|
m === "availability" && a.has(t.distribution, "availability") && t.showObject(t.distribution.availability) && !a.isNil(t.distribution.availability.label) ? (n(), o("tr", Y, [
|
|
260
260
|
d("td", Z, [
|
|
261
|
-
b(
|
|
261
|
+
b(k, {
|
|
262
262
|
title: s.$t("message.tooltip.datasetDetails.distributions.availability")
|
|
263
263
|
}, {
|
|
264
264
|
default: u(() => [
|
|
@@ -273,7 +273,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
273
273
|
i[39] || (i[39] = e()),
|
|
274
274
|
m === "status" && a.has(t.distribution, "status") && t.showObject(t.distribution.status) ? (n(), o("tr", x, [
|
|
275
275
|
d("td", $, [
|
|
276
|
-
b(
|
|
276
|
+
b(k, {
|
|
277
277
|
title: s.$t("message.tooltip.datasetDetails.distributions.status")
|
|
278
278
|
}, {
|
|
279
279
|
default: u(() => [
|
|
@@ -290,7 +290,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
290
290
|
i[40] || (i[40] = e()),
|
|
291
291
|
m === "rights" && a.has(t.distribution, "rights") && t.showObject(t.distribution.rights) ? (n(), o("tr", tt, [
|
|
292
292
|
d("td", it, [
|
|
293
|
-
b(
|
|
293
|
+
b(k, {
|
|
294
294
|
title: s.$t("message.tooltip.datasetDetails.distributions.rights")
|
|
295
295
|
}, {
|
|
296
296
|
default: u(() => [
|
|
@@ -307,7 +307,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
307
307
|
i[41] || (i[41] = e()),
|
|
308
308
|
m === "mediaType" && a.has(t.distribution, "mediaType") && !a.isNil(t.distribution.mediaType) ? (n(), o("tr", et, [
|
|
309
309
|
d("td", st, [
|
|
310
|
-
b(
|
|
310
|
+
b(k, {
|
|
311
311
|
title: s.$t("message.tooltip.datasetDetails.distributions.mediaType")
|
|
312
312
|
}, {
|
|
313
313
|
default: u(() => [
|
|
@@ -322,7 +322,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
322
322
|
i[42] || (i[42] = e()),
|
|
323
323
|
m === "byteSize" && a.has(t.distribution, "byteSize") && !a.isNil(t.distribution.byteSize) ? (n(), o("tr", at, [
|
|
324
324
|
d("td", lt, [
|
|
325
|
-
b(
|
|
325
|
+
b(k, {
|
|
326
326
|
title: s.$t("message.tooltip.datasetDetails.distributions.byteSize")
|
|
327
327
|
}, {
|
|
328
328
|
default: u(() => [
|
|
@@ -337,7 +337,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
337
337
|
i[43] || (i[43] = e()),
|
|
338
338
|
m === "checksum" && a.has(t.distribution, "checksum") && !a.isNil(t.distribution.checksum) && a.has(t.distribution.checksum, "algorithm") && !a.isNil(t.distribution.checksum.algorithm) && a.has(t.distribution.checksum, "checksum_value") && !a.isNil(t.distribution.checksum.checksum_value) ? (n(), o("tr", nt, [
|
|
339
339
|
d("td", ot, [
|
|
340
|
-
b(
|
|
340
|
+
b(k, {
|
|
341
341
|
title: s.$t("message.tooltip.datasetDetails.distributions.checksum")
|
|
342
342
|
}, {
|
|
343
343
|
default: u(() => [
|
|
@@ -359,7 +359,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
359
359
|
i[22] || (i[22] = e()),
|
|
360
360
|
d("td", null, [
|
|
361
361
|
(n(!0), o(c, null, w(t.distribution.pages, (g, f) => (n(), o("div", { key: f }, [
|
|
362
|
-
b(
|
|
362
|
+
b(y, {
|
|
363
363
|
to: g.resource
|
|
364
364
|
}, {
|
|
365
365
|
default: u(() => [
|
|
@@ -373,7 +373,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
373
373
|
i[45] || (i[45] = e()),
|
|
374
374
|
m === "type" && a.has(t.distribution, "type") && t.showObject(t.distribution.type) ? (n(), o("tr", ut, [
|
|
375
375
|
d("td", bt, [
|
|
376
|
-
b(
|
|
376
|
+
b(k, {
|
|
377
377
|
title: s.$t("message.tooltip.datasetDetails.distributions.type")
|
|
378
378
|
}, {
|
|
379
379
|
default: u(() => [
|
|
@@ -389,8 +389,8 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
389
389
|
])) : r("", !0),
|
|
390
390
|
i[46] || (i[46] = e()),
|
|
391
391
|
m === "compressFormat" && a.has(t.distribution, "compressFormat") && t.showObject(t.distribution.compressFormat) ? (n(), o("tr", gt, [
|
|
392
|
-
d("td",
|
|
393
|
-
b(
|
|
392
|
+
d("td", kt, [
|
|
393
|
+
b(k, {
|
|
394
394
|
title: s.$t("message.tooltip.datasetDetails.distributions.compressFormat")
|
|
395
395
|
}, {
|
|
396
396
|
default: u(() => [
|
|
@@ -401,7 +401,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
401
401
|
]),
|
|
402
402
|
i[25] || (i[25] = e()),
|
|
403
403
|
d("td", null, [
|
|
404
|
-
a.isNil(t.distribution.compressFormat.label) ? r("", !0) : (n(), o("div",
|
|
404
|
+
a.isNil(t.distribution.compressFormat.label) ? r("", !0) : (n(), o("div", yt, l(t.distribution.compressFormat.label), 1)),
|
|
405
405
|
i[24] || (i[24] = e()),
|
|
406
406
|
a.isNil(t.distribution.compressFormat.resource) ? r("", !0) : (n(), o("div", ft, l(t.distribution.compressFormat.resource), 1))
|
|
407
407
|
])
|
|
@@ -409,7 +409,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
409
409
|
i[47] || (i[47] = e()),
|
|
410
410
|
m === "packageFormat" && a.has(t.distribution, "packageFormat") && t.showObject(t.distribution.packageFormat) ? (n(), o("tr", ct, [
|
|
411
411
|
d("td", wt, [
|
|
412
|
-
b(
|
|
412
|
+
b(k, {
|
|
413
413
|
title: s.$t("message.tooltip.datasetDetails.distributions.packageFormat")
|
|
414
414
|
}, {
|
|
415
415
|
default: u(() => [
|
|
@@ -428,7 +428,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
428
428
|
i[48] || (i[48] = e()),
|
|
429
429
|
m === "hasPolicy" && a.has(t.distribution, "hasPolicy") && !a.isNil(t.distribution.hasPolicy) ? (n(), o("tr", vt, [
|
|
430
430
|
d("td", Ft, [
|
|
431
|
-
b(
|
|
431
|
+
b(k, {
|
|
432
432
|
title: s.$t("message.tooltip.datasetDetails.distributions.hasPolicy")
|
|
433
433
|
}, {
|
|
434
434
|
default: u(() => [
|
|
@@ -449,7 +449,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
449
449
|
i[49] || (i[49] = e()),
|
|
450
450
|
m === "conformsTo" && a.has(t.distribution, "conformsTo") && t.showObjectArray(t.distribution.conformsTo) ? (n(), o("tr", Tt, [
|
|
451
451
|
d("td", At, [
|
|
452
|
-
b(
|
|
452
|
+
b(k, {
|
|
453
453
|
title: s.$t("message.tooltip.datasetDetails.conformsTo")
|
|
454
454
|
}, {
|
|
455
455
|
default: u(() => [
|
|
@@ -467,7 +467,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
467
467
|
a.has(g, "resource") && !a.isNil(g.resource) ? (n(), o("div", Lt, [
|
|
468
468
|
e(l(s.$t("message.metadata.resource")) + `:
|
|
469
469
|
`, 1),
|
|
470
|
-
b(
|
|
470
|
+
b(y, {
|
|
471
471
|
to: g.resource,
|
|
472
472
|
target: "_blank",
|
|
473
473
|
onClick: (Ut) => s.$emit("track-link", g.resource, "link")
|
|
@@ -482,9 +482,9 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
482
482
|
])
|
|
483
483
|
])) : r("", !0),
|
|
484
484
|
i[50] || (i[50] = e()),
|
|
485
|
-
m === "spatialResolutionInMeters" && a.has(t.distribution, "spatialResolutionInMeters")
|
|
485
|
+
m === "spatialResolutionInMeters" && a.has(t.distribution, "spatialResolutionInMeters") ? (n(), o("tr", Ct, [
|
|
486
486
|
d("td", jt, [
|
|
487
|
-
b(
|
|
487
|
+
b(k, {
|
|
488
488
|
title: s.$t("message.tooltip.datasetDetails.spatialResolutionInMeters")
|
|
489
489
|
}, {
|
|
490
490
|
default: u(() => [
|
|
@@ -495,13 +495,13 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
495
495
|
]),
|
|
496
496
|
i[31] || (i[31] = e()),
|
|
497
497
|
d("td", null, [
|
|
498
|
-
t.showNumber(t.distribution.spatialResolutionInMeters
|
|
498
|
+
t.showNumber(t.distribution.spatialResolutionInMeters) ? (n(), o("div", Bt, l(s.$t("message.metadata.spatialResolutionInMeters.value", { number: t.distribution.spatialResolutionInMeters })), 1)) : r("", !0)
|
|
499
499
|
])
|
|
500
500
|
])) : r("", !0),
|
|
501
501
|
i[51] || (i[51] = e()),
|
|
502
|
-
m === "temporalResolution" && a.has(t.distribution, "temporalResolution") && t.showArray(t.distribution.temporalResolution) ? (n(), o("tr",
|
|
503
|
-
d("td",
|
|
504
|
-
b(
|
|
502
|
+
m === "temporalResolution" && a.has(t.distribution, "temporalResolution") && t.showArray(t.distribution.temporalResolution) ? (n(), o("tr", Ot, [
|
|
503
|
+
d("td", It, [
|
|
504
|
+
b(k, {
|
|
505
505
|
title: s.$t("message.tooltip.datasetDetails.temporalResolution")
|
|
506
506
|
}, {
|
|
507
507
|
default: u(() => [
|
|
@@ -517,8 +517,8 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
517
517
|
])) : r("", !0),
|
|
518
518
|
i[52] || (i[52] = e()),
|
|
519
519
|
m === "validate" ? (n(), o("tr", _t, [
|
|
520
|
-
this.$env.content.datasetDetails.distributions.showValidationButton ? (n(), o("td",
|
|
521
|
-
b(
|
|
520
|
+
this.$env.content.datasetDetails.distributions.showValidationButton ? (n(), o("td", Pt, [
|
|
521
|
+
b(y, {
|
|
522
522
|
class: "ecl-button--secondary row pt-0 pb-0 pl-4 pr-4 mt-2 text-decoration-none",
|
|
523
523
|
to: { path: `${s.getID}/quality/`, query: Object.assign({}, { locale: s.$route.query.locale }) }
|
|
524
524
|
}, {
|
|
@@ -532,7 +532,7 @@ function Pt(s, i, t, Et, St, a) {
|
|
|
532
532
|
], 64))), 256))
|
|
533
533
|
]);
|
|
534
534
|
}
|
|
535
|
-
const Qt = /* @__PURE__ */ j(B, [["render",
|
|
535
|
+
const Qt = /* @__PURE__ */ j(B, [["render", Et]]);
|
|
536
536
|
export {
|
|
537
537
|
Qt as default
|
|
538
538
|
};
|