@piveau/piveau-hub-ui-modules 4.6.29 → 4.6.31
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/Distribution.vue.mjs +39 -37
- package/dist/datasetDetails/distributions/Distribution.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/Distributions.vue.d.ts +1 -0
- package/dist/datasetDetails/distributions/Distributions.vue.mjs +27 -25
- package/dist/datasetDetails/distributions/Distributions.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/Distributions.vue2.mjs +2 -2
- package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs +2 -2
- package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.mjs +22 -18
- package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/dist/services/datasetService.d.ts +3 -1
- package/dist/services/datasetService.mjs +17 -13
- package/dist/services/datasetService.mjs.map +1 -1
- package/dist/store/modules/cataloguesStore.mjs +1 -1
- package/dist/store/modules/cataloguesStore.mjs.map +1 -1
- package/dist/store/modules/datasetsStore.d.ts +16 -1
- package/dist/store/modules/datasetsStore.mjs +52 -35
- package/dist/store/modules/datasetsStore.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { has as
|
|
2
|
-
import { truncate as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { has as w, isNil as F } from "lodash-es";
|
|
2
|
+
import { truncate as g } from "../../utils/helpers.mjs";
|
|
3
|
+
import h from "./distributionDetails/DistributionExpand.vue.mjs";
|
|
4
|
+
import f from "./distributionDetails/DistributionVisibleContent.vue.mjs";
|
|
5
|
+
import U from "./distributionDetails/DistributionExpandedContent.vue.mjs";
|
|
6
|
+
import p from "./distributionDetails/DistributionDescription.vue.mjs";
|
|
7
|
+
import y from "./DistributionFormat.vue.mjs";
|
|
8
|
+
import E from "./FadingDistributionOverlay.vue.mjs";
|
|
9
|
+
import v from "./distributionActions/DistributionActions.vue.mjs";
|
|
10
10
|
import x from "./DistributionAdded.vue.mjs";
|
|
11
|
-
import { resolveComponent as n, openBlock as
|
|
11
|
+
import { resolveComponent as n, openBlock as a, createElementBlock as C, createElementVNode as d, createVNode as s, createTextVNode as o, renderSlot as I, createBlock as L, createCommentVNode as O } from "vue";
|
|
12
12
|
import "./Distribution.vue2.mjs";
|
|
13
|
-
import
|
|
14
|
-
const
|
|
13
|
+
import V from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
14
|
+
const _ = {
|
|
15
15
|
name: "Distribution",
|
|
16
16
|
components: {
|
|
17
17
|
DistributionAdded: x,
|
|
18
|
-
DistributionActions:
|
|
19
|
-
FadingDistributionOverlay:
|
|
20
|
-
DistributionFormat:
|
|
21
|
-
DistributionDescription:
|
|
22
|
-
DistributionExpandedContent:
|
|
23
|
-
DistributionVisibleContent:
|
|
24
|
-
DistributionExpand:
|
|
18
|
+
DistributionActions: v,
|
|
19
|
+
FadingDistributionOverlay: E,
|
|
20
|
+
DistributionFormat: y,
|
|
21
|
+
DistributionDescription: p,
|
|
22
|
+
DistributionExpandedContent: U,
|
|
23
|
+
DistributionVisibleContent: f,
|
|
24
|
+
DistributionExpand: h
|
|
25
25
|
},
|
|
26
26
|
props: {
|
|
27
27
|
fading: Boolean,
|
|
@@ -69,27 +69,29 @@ const V = {
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
methods: {
|
|
72
|
-
has:
|
|
73
|
-
isNil:
|
|
74
|
-
truncate:
|
|
72
|
+
has: w,
|
|
73
|
+
isNil: F,
|
|
74
|
+
truncate: g,
|
|
75
75
|
selectForPreview() {
|
|
76
|
+
var i, r;
|
|
76
77
|
const e = this.distribution.downloadUrls && this.distribution.downloadUrls.length ? this.distribution.downloadUrls[0] : this.distribution.accessUrl[0];
|
|
77
|
-
|
|
78
|
+
let t = { title: this.getDistributionTitle(this.distribution), url: e, format: this.distribution.format.id.toLowerCase() };
|
|
79
|
+
(r = (i = this.distribution) == null ? void 0 : i.compressFormat) != null && r.resource && (t.compressFormat = this.distribution.compressFormat.resource), this.$emit("selectForPreview", t);
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
|
-
},
|
|
81
|
-
function
|
|
82
|
-
const
|
|
83
|
-
return
|
|
84
|
-
|
|
85
|
-
s(
|
|
82
|
+
}, k = { class: "position-relative" }, A = { class: "mb-3 d-flex flex-row flex-wrap flex-md-nowrap distributions__item" }, T = { class: "actions-container" };
|
|
83
|
+
function N(e, t, i, r, j, u) {
|
|
84
|
+
const l = n("distribution-format"), c = n("distribution-details"), b = n("distribution-added"), D = n("distribution-actions"), m = n("fading-distribution-overlay");
|
|
85
|
+
return a(), C("div", k, [
|
|
86
|
+
d("div", A, [
|
|
87
|
+
s(l, {
|
|
86
88
|
distribution: i.distribution,
|
|
87
89
|
getDistributionFormat: i.getDistributionFormat,
|
|
88
90
|
distributionFormatTruncated: i.distributionFormatTruncated,
|
|
89
91
|
embed: i.embed
|
|
90
92
|
}, null, 8, ["distribution", "getDistributionFormat", "distributionFormatTruncated", "embed"]),
|
|
91
93
|
t[1] || (t[1] = o()),
|
|
92
|
-
s(
|
|
94
|
+
s(c, {
|
|
93
95
|
getDistributionTitle: i.getDistributionTitle,
|
|
94
96
|
distribution: i.distribution,
|
|
95
97
|
distributions: i.distributions,
|
|
@@ -111,11 +113,11 @@ function T(e, t, i, N, j, r) {
|
|
|
111
113
|
toggleDistribution: i.toggleDistribution
|
|
112
114
|
}, null, 8, ["getDistributionTitle", "distribution", "distributions", "distributionDescriptionIsExpanded", "getDistributionDescription", "toggleDistributionDescription", "distributionDescriptionIsExpandable", "distributionVisibleContent", "distributionExpandedContent", "distributionIsExpanded", "showLicensingAssistant", "showLicence", "filterDateFormatEU", "showArray", "showNumber", "showObject", "showObjectArray", "appendCurrentLocaleToURL", "toggleDistribution"]),
|
|
113
115
|
t[2] || (t[2] = o()),
|
|
114
|
-
s(b, { date:
|
|
116
|
+
s(b, { date: u.updatedDate }, null, 8, ["date"]),
|
|
115
117
|
t[3] || (t[3] = o()),
|
|
116
|
-
|
|
117
|
-
s(
|
|
118
|
-
onDisplayVisualisation:
|
|
118
|
+
d("div", T, [
|
|
119
|
+
s(D, {
|
|
120
|
+
onDisplayVisualisation: u.selectForPreview,
|
|
119
121
|
distribution: i.distribution,
|
|
120
122
|
distributions: i.distributions,
|
|
121
123
|
isUrlInvalid: i.isUrlInvalid,
|
|
@@ -136,16 +138,16 @@ function T(e, t, i, N, j, r) {
|
|
|
136
138
|
])
|
|
137
139
|
]),
|
|
138
140
|
t[4] || (t[4] = o()),
|
|
139
|
-
i.fading ? (
|
|
141
|
+
i.fading ? (a(), L(m, {
|
|
140
142
|
key: 0,
|
|
141
143
|
distributions: i.distributions,
|
|
142
144
|
setDistributionsDisplayCount: i.setDistributionsDisplayCount,
|
|
143
145
|
increaseNumDisplayedDistributions: i.increaseNumDisplayedDistributions,
|
|
144
146
|
nonOverflowingIncrementsForDistributions: i.nonOverflowingIncrementsForDistributions
|
|
145
|
-
}, null, 8, ["distributions", "setDistributionsDisplayCount", "increaseNumDisplayedDistributions", "nonOverflowingIncrementsForDistributions"])) :
|
|
147
|
+
}, null, 8, ["distributions", "setDistributionsDisplayCount", "increaseNumDisplayedDistributions", "nonOverflowingIncrementsForDistributions"])) : O("", !0)
|
|
146
148
|
]);
|
|
147
149
|
}
|
|
148
|
-
const X = /* @__PURE__ */
|
|
150
|
+
const X = /* @__PURE__ */ V(_, [["render", N], ["__scopeId", "data-v-e06024c0"]]);
|
|
149
151
|
export {
|
|
150
152
|
X as default
|
|
151
153
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Distribution.vue.mjs","sources":["../../../lib/datasetDetails/distributions/Distribution.vue"],"sourcesContent":["<template>\n <div class=\"position-relative\">\n <div class=\"mb-3 d-flex flex-row flex-wrap flex-md-nowrap distributions__item\">\n <distribution-format :distribution=\"distribution\" :getDistributionFormat=\"getDistributionFormat\"\n :distributionFormatTruncated=\"distributionFormatTruncated\" :embed=\"embed\" />\n <distribution-details :getDistributionTitle=\"getDistributionTitle\" :distribution=\"distribution\"\n :distributions=\"distributions\" :distributionDescriptionIsExpanded=\"distributionDescriptionIsExpanded\"\n :getDistributionDescription=\"getDistributionDescription\"\n :toggleDistributionDescription=\"toggleDistributionDescription\"\n :distributionDescriptionIsExpandable=\"distributionDescriptionIsExpandable\"\n :distributionVisibleContent=\"distributionVisibleContent\"\n :distributionExpandedContent=\"distributionExpandedContent\" :distributionIsExpanded=\"distributionIsExpanded\"\n :showLicensingAssistant=\"showLicensingAssistant\" :showLicence=\"showLicence\"\n :filterDateFormatEU=\"filterDateFormatEU\" :showArray=\"showArray\" :showNumber=\"showNumber\"\n :showObject=\"showObject\" :showObjectArray=\"showObjectArray\" :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n :toggleDistribution=\"toggleDistribution\" />\n <distribution-added :date=\"updatedDate\" />\n\n <div class=\"actions-container\">\n <distribution-actions @display-visualisation=\"selectForPreview\" :distribution=\"distribution\" :distributions=\"distributions\" :isUrlInvalid=\"isUrlInvalid\"\n :getVisualisationLink=\"getVisualisationLink\" :showTooltipVisualiseButton=\"showTooltipVisualiseButton\"\n :previewLinkCallback=\"previewLinkCallback\" :openIfValidUrl=\"openIfValidUrl\"\n :showDownloadDropdown=\"showDownloadDropdown\" :getDownloadUrl=\"getDownloadUrl\" :showAccessUrls=\"showAccessUrls\"\n :isOnlyOneUrl=\"isOnlyOneUrl\" :trackGoto=\"trackGoto\" :getDistributionFormat=\"getDistributionFormat\"\n :replaceHttp=\"replaceHttp\" />\n <slot name=\"additional-actions\"></slot>\n </div>\n\n </div>\n <fading-distribution-overlay v-if=\"fading\" :distributions=\"distributions\"\n :setDistributionsDisplayCount=\"setDistributionsDisplayCount\"\n :increaseNumDisplayedDistributions=\"increaseNumDisplayedDistributions\"\n :nonOverflowingIncrementsForDistributions=\"nonOverflowingIncrementsForDistributions\" />\n </div>\n</template>\n\n<script>\nimport {\n has,\n isNil\n} from 'lodash';\nimport { truncate } from '../../utils/helpers';\nimport DistributionExpand from \"./distributionDetails/DistributionExpand\";\nimport DistributionVisibleContent\n from \"./distributionDetails/DistributionVisibleContent\";\nimport DistributionExpandedContent\n from \"./distributionDetails/DistributionExpandedContent\";\nimport DistributionDescription\n from \"./distributionDetails/DistributionDescription\";\nimport DistributionFormat from \"./DistributionFormat\";\nimport FadingDistributionOverlay\n from \"./FadingDistributionOverlay\";\nimport DistributionActions from \"./distributionActions/DistributionActions\";\nimport DistributionAdded from \"./DistributionAdded\";\n\nexport default {\n name: 'Distribution',\n components: {\n DistributionAdded,\n DistributionActions,\n FadingDistributionOverlay,\n DistributionFormat,\n DistributionDescription,\n DistributionExpandedContent,\n DistributionVisibleContent,\n DistributionExpand\n },\n props: {\n fading: Boolean,\n distribution: Object,\n distributions: Object,\n setDistributionsDisplayCount: Function,\n openModal: Function,\n getDistributionFormat: Function,\n distributionFormatTruncated: Function,\n getDistributionTitle: Function,\n distributionVisibleContent: Array,\n distributionExpandedContent: Array,\n distributionDescriptionIsExpanded: Function,\n distributionDescriptionIsExpandable: Function,\n getDistributionDescription: 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 embed: Boolean,\n },\n computed: {\n updatedDate() {\n if (this.has(this.distribution, 'modificationDate') && !this.isNil(this.distribution.modificationDate)) {\n return this.filterDateFormatEU(this.distribution.modificationDate);\n } else {\n return this.filterDateFormatEU(this.distribution.releaseDate);\n }\n }\n },\n methods: {\n has,\n isNil,\n truncate,\n selectForPreview() {\n const accessUrl = this.distribution.downloadUrls && this.distribution.downloadUrls.length ? this.distribution.downloadUrls[0] : this.distribution.accessUrl[0]\n this.$emit('selectForPreview', {'title': this.getDistributionTitle(this.distribution),'url': accessUrl, 'format': this.distribution.format.id.toLowerCase()})\n }\n }\n};\n</script>\n\n\n<style lang=\"scss\" scoped>\n.text-break {\n word-break: break-word;\n}\n\ntd {\n padding-left: 0 !important;\n padding-top: 1% !important;\n padding-bottom: 1% !important;\n}\n\n/*** BOOTSTRAP ***/\nbutton:focus {\n outline: 0;\n}\n\n.options,\n.download {\n .dropdown-menu {\n .dropdown-item {\n &:hover {\n color: initial;\n background-color: initial;\n }\n }\n }\n}\n\n.material-icons.small-icon {\n font-size: 20px;\n}\n\n.distributions__item {\n //position: relative;\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n}\n</style>\n"],"names":["_sfc_main","DistributionAdded","DistributionActions","FadingDistributionOverlay","DistributionFormat","DistributionDescription","DistributionExpandedContent","DistributionVisibleContent","DistributionExpand","has","isNil","truncate","accessUrl","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_component_distribution_format","$props","_cache","_createTextVNode","_component_distribution_details","_component_distribution_added","$options","_component_distribution_actions","_renderSlot","_ctx","_createBlock","_component_fading_distribution_overlay","_createCommentVNode"],"mappings":";;;;;;;;;;;;;AAuDA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,mBAAAC;AAAA,IACA,qBAAA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f/CC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MAgBMJ,EAA0CM,GAAA,EAArB,MAAMC,EAAW,YAAA,GAAA,MAAA,GAAA,CAAA,MAAA,CAAA;AAAA,MAhB5CJ,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MAkBML,EAQM,OARNH,GAQM;AAAA,QAPJI,EAK+BQ,GAAA;AAAA,UALR,wBAAuBD,EAAgB;AAAA,UAAG,cAAcL,EAAY;AAAA,UAAG,eAAeA,EAAa;AAAA,UAAG,cAAcA,EAAY;AAAA,UACpJ,sBAAsBA,EAAoB;AAAA,UAAG,4BAA4BA,EAA0B;AAAA,UACnG,qBAAqBA,EAAmB;AAAA,UAAG,gBAAgBA,EAAc;AAAA,UACzE,sBAAsBA,EAAoB;AAAA,UAAG,gBAAgBA,EAAc;AAAA,UAAG,gBAAgBA,EAAc;AAAA,UAC5G,cAAcA,EAAY;AAAA,UAAG,WAAWA,EAAS;AAAA,UAAG,uBAAuBA,EAAqB;AAAA,UAChG,aAAaA,EAAW;AAAA;QAxBnCC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,QAyBQK,EAAuCC,EAAA,QAAA,sBAAA,CAAA,GAAA,QAAA,EAAA;AAAA;;IAzB/CP,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IA6BuCF,EAAM,eAAzCS,EAGyFC,GAAA;AAAA,MAhC7F,KAAA;AAAA,MA6BgD,eAAeV,EAAa;AAAA,MACrE,8BAA8BA,EAA4B;AAAA,MAC1D,mCAAmCA,EAAiC;AAAA,MACpE,0CAA0CA,EAAwC;AAAA,uJAhCzFW,EAAA,IAAA,EAAA;AAAA;;;"}
|
|
1
|
+
{"version":3,"file":"Distribution.vue.mjs","sources":["../../../lib/datasetDetails/distributions/Distribution.vue"],"sourcesContent":["<template>\n <div class=\"position-relative\">\n <div class=\"mb-3 d-flex flex-row flex-wrap flex-md-nowrap distributions__item\">\n <distribution-format :distribution=\"distribution\" :getDistributionFormat=\"getDistributionFormat\"\n :distributionFormatTruncated=\"distributionFormatTruncated\" :embed=\"embed\" />\n <distribution-details :getDistributionTitle=\"getDistributionTitle\" :distribution=\"distribution\"\n :distributions=\"distributions\" :distributionDescriptionIsExpanded=\"distributionDescriptionIsExpanded\"\n :getDistributionDescription=\"getDistributionDescription\"\n :toggleDistributionDescription=\"toggleDistributionDescription\"\n :distributionDescriptionIsExpandable=\"distributionDescriptionIsExpandable\"\n :distributionVisibleContent=\"distributionVisibleContent\"\n :distributionExpandedContent=\"distributionExpandedContent\" :distributionIsExpanded=\"distributionIsExpanded\"\n :showLicensingAssistant=\"showLicensingAssistant\" :showLicence=\"showLicence\"\n :filterDateFormatEU=\"filterDateFormatEU\" :showArray=\"showArray\" :showNumber=\"showNumber\"\n :showObject=\"showObject\" :showObjectArray=\"showObjectArray\" :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n :toggleDistribution=\"toggleDistribution\" />\n <distribution-added :date=\"updatedDate\" />\n\n <div class=\"actions-container\">\n <distribution-actions @display-visualisation=\"selectForPreview\" :distribution=\"distribution\" :distributions=\"distributions\" :isUrlInvalid=\"isUrlInvalid\"\n :getVisualisationLink=\"getVisualisationLink\" :showTooltipVisualiseButton=\"showTooltipVisualiseButton\"\n :previewLinkCallback=\"previewLinkCallback\" :openIfValidUrl=\"openIfValidUrl\"\n :showDownloadDropdown=\"showDownloadDropdown\" :getDownloadUrl=\"getDownloadUrl\" :showAccessUrls=\"showAccessUrls\"\n :isOnlyOneUrl=\"isOnlyOneUrl\" :trackGoto=\"trackGoto\" :getDistributionFormat=\"getDistributionFormat\"\n :replaceHttp=\"replaceHttp\" />\n <slot name=\"additional-actions\"></slot>\n </div>\n\n </div>\n <fading-distribution-overlay v-if=\"fading\" :distributions=\"distributions\"\n :setDistributionsDisplayCount=\"setDistributionsDisplayCount\"\n :increaseNumDisplayedDistributions=\"increaseNumDisplayedDistributions\"\n :nonOverflowingIncrementsForDistributions=\"nonOverflowingIncrementsForDistributions\" />\n </div>\n</template>\n\n<script>\nimport {\n has,\n isNil\n} from 'lodash';\nimport { truncate } from '../../utils/helpers';\nimport DistributionExpand from \"./distributionDetails/DistributionExpand\";\nimport DistributionVisibleContent\n from \"./distributionDetails/DistributionVisibleContent\";\nimport DistributionExpandedContent\n from \"./distributionDetails/DistributionExpandedContent\";\nimport DistributionDescription\n from \"./distributionDetails/DistributionDescription\";\nimport DistributionFormat from \"./DistributionFormat\";\nimport FadingDistributionOverlay\n from \"./FadingDistributionOverlay\";\nimport DistributionActions from \"./distributionActions/DistributionActions\";\nimport DistributionAdded from \"./DistributionAdded\";\n\nexport default {\n name: 'Distribution',\n components: {\n DistributionAdded,\n DistributionActions,\n FadingDistributionOverlay,\n DistributionFormat,\n DistributionDescription,\n DistributionExpandedContent,\n DistributionVisibleContent,\n DistributionExpand\n },\n props: {\n fading: Boolean,\n distribution: Object,\n distributions: Object,\n setDistributionsDisplayCount: Function,\n openModal: Function,\n getDistributionFormat: Function,\n distributionFormatTruncated: Function,\n getDistributionTitle: Function,\n distributionVisibleContent: Array,\n distributionExpandedContent: Array,\n distributionDescriptionIsExpanded: Function,\n distributionDescriptionIsExpandable: Function,\n getDistributionDescription: 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 embed: Boolean,\n },\n computed: {\n updatedDate() {\n if (this.has(this.distribution, 'modificationDate') && !this.isNil(this.distribution.modificationDate)) {\n return this.filterDateFormatEU(this.distribution.modificationDate);\n } else {\n return this.filterDateFormatEU(this.distribution.releaseDate);\n }\n }\n },\n methods: {\n has,\n isNil,\n truncate,\n selectForPreview() {\n const accessUrl = this.distribution.downloadUrls && this.distribution.downloadUrls.length ? this.distribution.downloadUrls[0] : this.distribution.accessUrl[0]\n let previewData = {'title': this.getDistributionTitle(this.distribution),'url': accessUrl, 'format': this.distribution.format.id.toLowerCase()}\n if (this.distribution?.compressFormat?.resource){\n previewData.compressFormat = this.distribution.compressFormat.resource;\n }\n this.$emit('selectForPreview', previewData)\n },\n }\n};\n</script>\n\n\n<style lang=\"scss\" scoped>\n.text-break {\n word-break: break-word;\n}\n\ntd {\n padding-left: 0 !important;\n padding-top: 1% !important;\n padding-bottom: 1% !important;\n}\n\n/*** BOOTSTRAP ***/\nbutton:focus {\n outline: 0;\n}\n\n.options,\n.download {\n .dropdown-menu {\n .dropdown-item {\n &:hover {\n color: initial;\n background-color: initial;\n }\n }\n }\n}\n\n.material-icons.small-icon {\n font-size: 20px;\n}\n\n.distributions__item {\n //position: relative;\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n}\n</style>\n"],"names":["_sfc_main","DistributionAdded","DistributionActions","FadingDistributionOverlay","DistributionFormat","DistributionDescription","DistributionExpandedContent","DistributionVisibleContent","DistributionExpand","has","isNil","truncate","accessUrl","previewData","_b","_a","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_component_distribution_format","$props","_cache","_createTextVNode","_component_distribution_details","_component_distribution_added","$options","_component_distribution_actions","_renderSlot","_ctx","_createBlock","_component_fading_distribution_overlay","_createCommentVNode"],"mappings":";;;;;;;;;;;;;AAuDA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,mBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,2BAAAC;AAAA,I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DefineComponent<import('vue').ExtractPropT
|
|
|
48
48
|
previewedDistributionTitle: string;
|
|
49
49
|
previewedDistDownloadUrl: string;
|
|
50
50
|
previewedDistFormat: string;
|
|
51
|
+
previewedDistCompressFormat: string;
|
|
51
52
|
selectedDistribution: null;
|
|
52
53
|
showVisualisation: any;
|
|
53
54
|
}, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { has as v, isNil as
|
|
1
|
+
import { has as v, isNil as U } from "lodash-es";
|
|
2
2
|
import { getTranslationFor as y } from "../../utils/helpers.mjs";
|
|
3
3
|
import { mapGetters as f } from "vuex";
|
|
4
4
|
import I from "./DistributionDownloadAsModal.vue.mjs";
|
|
5
|
-
import { resolveComponent as s, openBlock as e, createElementBlock as a, createVNode as D, createTextVNode as l, createElementVNode as
|
|
5
|
+
import { resolveComponent as s, openBlock as e, createElementBlock as a, createVNode as D, createTextVNode as l, createElementVNode as d, Fragment as C, renderList as T, createBlock as u, createCommentVNode as w } from "vue";
|
|
6
6
|
import "./Distributions.vue2.mjs";
|
|
7
|
-
import
|
|
7
|
+
import A from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
8
|
const L = {
|
|
9
9
|
name: "Distributions",
|
|
10
10
|
components: {
|
|
@@ -63,6 +63,7 @@ const L = {
|
|
|
63
63
|
previewedDistributionTitle: "",
|
|
64
64
|
previewedDistDownloadUrl: "",
|
|
65
65
|
previewedDistFormat: "",
|
|
66
|
+
previewedDistCompressFormat: "",
|
|
66
67
|
selectedDistribution: null,
|
|
67
68
|
showVisualisation: this.$env.content.datasetDetails.distributions.showVisualisation
|
|
68
69
|
};
|
|
@@ -74,19 +75,19 @@ const L = {
|
|
|
74
75
|
])
|
|
75
76
|
},
|
|
76
77
|
methods: {
|
|
77
|
-
getDistributionDescription(
|
|
78
|
-
return v(
|
|
78
|
+
getDistributionDescription(t) {
|
|
79
|
+
return v(t, "description") && !U(t.description) ? y(t.description, this.$route.query.locale, this.getLanguages) : "-";
|
|
79
80
|
},
|
|
80
|
-
selectDistribution(
|
|
81
|
-
this.previewedDistTitle =
|
|
82
|
-
const
|
|
83
|
-
|
|
81
|
+
selectDistribution(t) {
|
|
82
|
+
this.previewedDistTitle = t.title, this.previewedDistDownloadUrl = t.url, this.previewedDistFormat = t.format, this.previewedDistCompressFormat = t.compressFormat ? t.compressFormat : "", this.showDistibutionVisualisation = !0, this.componentKey += 1, this.$nextTick(() => {
|
|
83
|
+
const n = this.$refs.visualisationComponent;
|
|
84
|
+
n && n.$el.scrollIntoView({ behavior: "smooth" });
|
|
84
85
|
});
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
}, V = { class: "mt-1 dsd-distributions" }, _ = { class: "row" }, k = { class: "list list-unstyled w-100" }, x = { class: "w-100 d-flex flex-row justify-content-end" };
|
|
88
|
-
function E(
|
|
89
|
-
const m = s("distributions-header"), h = s("distribution"), g = s("download-all-distributions"), F = s("download-as-modal"),
|
|
89
|
+
function E(t, n, i, O, o, r) {
|
|
90
|
+
const m = s("distributions-header"), h = s("distribution"), g = s("download-all-distributions"), F = s("download-as-modal"), p = s("distribution-visualisation-slot");
|
|
90
91
|
return e(), a("div", V, [
|
|
91
92
|
D(m, {
|
|
92
93
|
getDistributionDescription: r.getDistributionDescription,
|
|
@@ -97,14 +98,14 @@ function E(n, t, i, O, o, r) {
|
|
|
97
98
|
showPublisher: i.showPublisher,
|
|
98
99
|
embed: i.embed
|
|
99
100
|
}, null, 8, ["getDistributionDescription", "openModal", "getDistributionTitle", "showDownloadUrls", "isUrlInvalid", "showPublisher", "embed"]),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
n[1] || (n[1] = l()),
|
|
102
|
+
d("div", _, [
|
|
103
|
+
d("ul", k, [
|
|
103
104
|
(e(), a("div", {
|
|
104
105
|
class: "distributions",
|
|
105
106
|
key: `${i.expandedDistributions.length}--${i.expandedDistributionDescriptions.length}`
|
|
106
107
|
}, [
|
|
107
|
-
(e(!0), a(
|
|
108
|
+
(e(!0), a(C, null, T(i.displayedDistributions, (c, b) => (e(), u(h, {
|
|
108
109
|
onSelectForPreview: r.selectDistribution,
|
|
109
110
|
key: `${b}--${c.id}`,
|
|
110
111
|
distribution: c,
|
|
@@ -147,9 +148,9 @@ function E(n, t, i, O, o, r) {
|
|
|
147
148
|
}, 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
149
|
]))
|
|
149
150
|
]),
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
o.downloadAllTop ? w("", !0) : (e(),
|
|
151
|
+
n[0] || (n[0] = l()),
|
|
152
|
+
d("div", x, [
|
|
153
|
+
o.downloadAllTop ? w("", !0) : (e(), u(g, {
|
|
153
154
|
key: 0,
|
|
154
155
|
getDistributionDescription: r.getDistributionDescription,
|
|
155
156
|
openModal: i.openModal,
|
|
@@ -159,20 +160,21 @@ function E(n, t, i, O, o, r) {
|
|
|
159
160
|
}, null, 8, ["getDistributionDescription", "openModal", "getDistributionTitle", "showDownloadUrls", "isUrlInvalid"]))
|
|
160
161
|
])
|
|
161
162
|
]),
|
|
162
|
-
|
|
163
|
+
n[2] || (n[2] = l()),
|
|
163
164
|
D(F),
|
|
164
|
-
|
|
165
|
-
o.showDistibutionVisualisation && o.showVisualisation ? (e(),
|
|
165
|
+
n[3] || (n[3] = l()),
|
|
166
|
+
o.showDistibutionVisualisation && o.showVisualisation ? (e(), u(p, {
|
|
166
167
|
ref: "visualisationComponent",
|
|
167
168
|
key: o.componentKey,
|
|
168
169
|
class: "mb-4",
|
|
169
|
-
title:
|
|
170
|
+
title: t.previewedDistTitle,
|
|
170
171
|
downloadUrl: o.previewedDistDownloadUrl,
|
|
171
|
-
format: o.previewedDistFormat
|
|
172
|
-
|
|
172
|
+
format: o.previewedDistFormat,
|
|
173
|
+
compressFormat: o.previewedDistCompressFormat
|
|
174
|
+
}, null, 8, ["title", "downloadUrl", "format", "compressFormat"])) : w("", !0)
|
|
173
175
|
]);
|
|
174
176
|
}
|
|
175
|
-
const R = /* @__PURE__ */
|
|
177
|
+
const R = /* @__PURE__ */ A(L, [["render", E], ["__scopeId", "data-v-ddb5654d"]]);
|
|
176
178
|
export {
|
|
177
179
|
R as default
|
|
178
180
|
};
|
|
@@ -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 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\nimport {has, isNil} from \"lodash\";\nimport {getTranslationFor} from \"../../utils/helpers\";\nimport { mapGetters } from \"vuex\";\nimport DownloadAsModal from \"../../datasetDetails/distributions/DistributionDownloadAsModal\";\n\nexport default {\n name: 'Distributions',\n components: {\n DownloadAsModal\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","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":";;;;;;;AA0FA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,iBAAAC;AAAA,EACD;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,oBA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A,EAAmB;AAAA,uDA9EpCC,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 :compressFormat=\"previewedDistCompressFormat\"\n ></distribution-visualisation-slot>\n </div>\n</template>\n\n<script>\n\nimport {has, isNil} from \"lodash\";\nimport {getTranslationFor} from \"../../utils/helpers\";\nimport { mapGetters } from \"vuex\";\nimport DownloadAsModal from \"../../datasetDetails/distributions/DistributionDownloadAsModal\";\n\nexport default {\n name: 'Distributions',\n components: {\n DownloadAsModal\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 previewedDistCompressFormat: \"\",\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.previewedDistCompressFormat = dist.compressFormat ? dist.compressFormat : '';\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","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_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6B;AAAA,YAC5D,mCAAmCA,EAAiC;AAAA,YACpE,0CAA0CA,EAAwC;AAAA,YAClF,cAAcA,EAAY;AAAA,YAC1B,gBAAgBA,EAAc;AAAA,YAC9B,4BAA4BA,EAA0B;AAAA,YACtD,0BAA0BA,EAAwB;AAAA,YAClD,OAAOA,EAAK;AAAA;;;MAtD7BC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MA0DQC,EASM,OATNT,GASM;AAAA,QAPKe,EAAc,iBA5DjCC,EAAA,IAAA,EAAA,UA2DUH,EAOEI,GAAA;AAAA,UAlEZ,KAAA;AAAA,UA6Da,4BAA4BZ,EAA0B;AAAA,UACtD,WAAWC,EAAS;AAAA,UACpB,sBAAsBA,EAAoB;AAAA,UAC1C,kBAAkBA,EAAgB;AAAA,UAClC,cAAcA,EAAY;AAAA;;;IAjEvCC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IAqEML,EAAqBe,CAAA;AAAA,IArE3BX,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IAwEcO,EAAA,gCAAgCA,EAAiB,0BADzDF,EASmCM,GAAA;AAAA,MAPjC,KAAI;AAAA,MACH,KAAKJ,EAAY;AAAA,MAClB,OAAM;AAAA,MACL,OAAOK,EAAkB;AAAA,MACzB,aAAaL,EAAwB;AAAA,MACrC,QAAQA,EAAmB;AAAA,MAC3B,gBAAgBA,EAA2B;AAAA,yEA/EpDC,EAAA,IAAA,EAAA;AAAA;;;"}
|
|
@@ -67,7 +67,7 @@ function O(i, n, t, o, s, c) {
|
|
|
67
67
|
return l(), L("div", C, [
|
|
68
68
|
s.showVisualisationButton ? (l(), r(w, {
|
|
69
69
|
key: 0,
|
|
70
|
-
class: "distribution-action
|
|
70
|
+
class: "distribution-action",
|
|
71
71
|
onDisplayVisualisation: n[0] || (n[0] = (A) => i.$emit("displayVisualisation", t.getDownloadUrl)),
|
|
72
72
|
isUrlInvalid: t.isUrlInvalid,
|
|
73
73
|
getVisualisationLink: t.getVisualisationLink,
|
|
@@ -124,7 +124,7 @@ function O(i, n, t, o, s, c) {
|
|
|
124
124
|
])
|
|
125
125
|
]);
|
|
126
126
|
}
|
|
127
|
-
const S = /* @__PURE__ */ I(x, [["render", O], ["__scopeId", "data-v-
|
|
127
|
+
const S = /* @__PURE__ */ I(x, [["render", O], ["__scopeId", "data-v-3c77eb6f"]]);
|
|
128
128
|
export {
|
|
129
129
|
S as default
|
|
130
130
|
};
|
package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributionActions.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionActions.vue"],"sourcesContent":["<template>\n <div class=\"d-flex flex-sm-row flex-md-column flex-lg-row justify-content-start\n justify-content-lg-end mt-2 text-md-right col text-left distribution-actions\">\n <!-- button of new visualization tool -->\n <distribution-visualize-button v-if=\"showVisualisationButton\" class=\"distribution-action
|
|
1
|
+
{"version":3,"file":"DistributionActions.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionActions.vue"],"sourcesContent":["<template>\n <div class=\"d-flex flex-sm-row flex-md-column flex-lg-row justify-content-start\n justify-content-lg-end mt-2 text-md-right col text-left distribution-actions\">\n <!-- button of new visualization tool -->\n <distribution-visualize-button v-if=\"showVisualisationButton\" class=\"distribution-action\" @displayVisualisation=\"$emit('displayVisualisation', getDownloadUrl)\" :isUrlInvalid=\"isUrlInvalid\"\n :getVisualisationLink=\"getVisualisationLink\" :distribution=\"distribution\" :openIfValidUrl=\"openIfValidUrl\">{{ $t('message.datasetDetails.preview') }}</distribution-visualize-button>\n <!-- TODO: remove distribution-preview button once the new visualisation service is online -->\n <distribution-preview v-if=\"!hidePreviewButton && getCatalog.is_part_of !== 'erpd' && !showVisualisationButton\" :isUrlInvalid=\"isUrlInvalid\"\n :getVisualisationLink=\"getVisualisationLink\" :distribution=\"distribution\" :openIfValidUrl=\"openIfValidUrl\"\n :previewLinkCallback=\"previewLinkCallback\" class=\"distribution-action\" />\n <distribution-download v-if=\"showDownloadDropdown(distribution)\" :getDownloadUrl=\"getDownloadUrl\"\n :showAccessUrls=\"showAccessUrls\" :isOnlyOneUrl=\"isOnlyOneUrl\" :trackGoto=\"trackGoto\"\n :getDistributionFormat=\"getDistributionFormat\" :replaceHttp=\"replaceHttp\" :distribution=\"distribution\"\n class=\"distribution-action distribution-download\" />\n <linked-data-buttons-dropdown :distributions=\"distributions\" :distribution=\"distribution\"\n class=\"distribution-action\" />\n <div>\n <app-link v-if=\"showValidateButton\" class=\"btn btn-sm validate-btn pt-0\"\n :to=\"{ name: 'DatasetDetailsQuality', query: { locale: $route.query.locale, validate: distribution.id } }\">\n Validate\n </app-link>\n </div>\n </div>\n</template>\n\n<script>\nimport AppLink from \"../../../widgets/AppLink\";\nimport DistributionVisualizeButton from \"../../../datasetDetails/distributions/distributionActions/DistributionVisualizeButton\";\nimport DistributionPreview from \"../../../datasetDetails/distributions/distributionActions/DistributionPreview\";\nimport DistributionDownload from \"../../../datasetDetails/distributions/distributionActions/DistributionDownload\";\nimport LinkedDataButtonsDropdown\n from \"../../../datasetDetails/distributions/distributionActions/LinkedDataButtonsDropdown\";\nimport {mapGetters} from \"vuex\";\nimport {has, isNil} from \"lodash\";\n\nexport default {\n name: \"DistributionActions\",\n components: { AppLink, LinkedDataButtonsDropdown, DistributionDownload, DistributionPreview, DistributionVisualizeButton },\n props: {\n distribution: Object,\n distributions: Object,\n isUrlInvalid: Function,\n getVisualisationLink: Function,\n showTooltipVisualiseButton: Function,\n previewLinkCallback: Function,\n openIfValidUrl: Function,\n showDownloadDropdown: Function,\n getDownloadUrl: Function,\n showAccessUrls: Function,\n isOnlyOneUrl: Function,\n trackGoto: Function,\n getDistributionFormat: Function,\n replaceHttp: Function,\n },\n data() {\n return {\n showVisualisationButton: this.$env.content.datasetDetails.distributions.showVisualisation,\n visualisationLinkFormats: [\n 'csv',\n 'tsv',\n 'ods',\n 'xlsx',\n 'xls',\n ],\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getCatalog',\n ]),\n showValidateButton() {\n return this.$env?.content?.datasetDetails?.distributions?.showValidationButton;\n },\n hidePreviewButton() {\n // only returns true if the config variable hidePreviewButton exists and is set to true\n return this.$env?.content?.datasetDetails?.distributions?.hidePreviewButton;\n }\n },\n methods: {\n showVisualisationLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution?.format?.label)\n || (isNil(distribution?.downloadUrls[0]) && isNil(distribution?.accessUrl[0]))) return false;\n const f = distribution?.format?.id?.toLowerCase();\n return f && this.visualisationLinkFormats.includes(f);\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.validate-btn {\n color: #0e47cb;\n vertical-align: text-bottom;\n text-decoration: none;\n}\n</style>\n"],"names":["_sfc_main","AppLink","LinkedDataButtonsDropdown","DistributionDownload","DistributionPreview","DistributionVisualizeButton","mapGetters","_d","_c","_b","_a","distribution","has","isNil","f","_hoisted_1","_openBlock","_createElementBlock","$data","_createBlock","_component_distribution_visualize_button","_cache","$event","_ctx","$props","_withCtx","_createTextVNode","_toDisplayString","_createCommentVNode","$options","_component_distribution_preview","_component_distribution_download","_createVNode","_component_linked_data_buttons_dropdown","_createElementVNode","_component_app_link"],"mappings":";;;;;;;;;;AAmCA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY,EAAE,SAAAC,GAAS,2BAAAC,GAA2B,sBAAAC,GAAsB,qBAAAC,GAAqB,6BAAAC,EAA6B;AAAA,EAC1H,OAAO;AAAA,IACL,cAAc;AAAA,IACd,eAAe;AAAA,IACf,cAAc;AAAA,IACd,sBAAsB;AAAA,IACtB,4BAA4B;AAAA,IAC5B,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,IAChB,sBAAsB;AAAA,IACtB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,WAA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eT,EAAa;AAAA,MAAG,cAAcA,EAAY;AAAA,MACtF,OAAM;AAAA;IAfZH,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAK,EAAA;AAAA,IAgBIQ,EAKM,OAAA,MAAA;AAAA,MAJYL,EAAkB,2BAAlCV,EAGWgB,GAAA;AAAA,QApBjB,KAAA;AAAA,QAiB0C,OAAM;AAAA,QACvC,IAAE,EAAA,MAAA,yBAAA,OAAA,EAAA,QAAoDZ,SAAO,MAAM,QAAM,UAAYC,EAAY,aAAC,GAAE,EAAA;AAAA;QAlB7G,SAAAC,EAkBmH,MAE7GJ,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,UApBNK,EAkBmH;AAAA;AAAA,OAE7G;AAAA;QApBN,GAAA;AAAA,uBAAAE,EAAA,IAAA,EAAA;AAAA;;;;"}
|
package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import g from "../../../widgets/AppLink.vue.mjs";
|
|
2
2
|
import { has as n, isNil as i } from "lodash-es";
|
|
3
|
-
import { mapGetters as
|
|
3
|
+
import { mapGetters as p } from "vuex";
|
|
4
4
|
import { openBlock as r, createElementBlock as c, toDisplayString as m } from "vue";
|
|
5
5
|
import "./DistributionVisualizeButton.vue2.mjs";
|
|
6
|
-
import
|
|
6
|
+
import k from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
7
|
const d = {
|
|
8
8
|
name: "DistributionVisualizeButton",
|
|
9
9
|
components: {
|
|
@@ -18,7 +18,7 @@ const d = {
|
|
|
18
18
|
"previewLinkCallback"
|
|
19
19
|
],
|
|
20
20
|
data() {
|
|
21
|
-
var e, t,
|
|
21
|
+
var e, t, a, s;
|
|
22
22
|
return {
|
|
23
23
|
showVisualisationButton: (e = this.$env.content.datasetDetails.distributions) == null ? void 0 : e.showVisualisation,
|
|
24
24
|
visualisationLinkFormats: [
|
|
@@ -26,7 +26,11 @@ const d = {
|
|
|
26
26
|
"tsv",
|
|
27
27
|
"ods",
|
|
28
28
|
"xlsx",
|
|
29
|
-
"xls"
|
|
29
|
+
"xls",
|
|
30
|
+
"zip",
|
|
31
|
+
"gz",
|
|
32
|
+
"tar.gz",
|
|
33
|
+
"tar"
|
|
30
34
|
],
|
|
31
35
|
geoLinkFormats: {
|
|
32
36
|
wms: "WMS",
|
|
@@ -34,28 +38,28 @@ const d = {
|
|
|
34
38
|
fiware_cb: "fiware_cb",
|
|
35
39
|
"fiware-cb": "fiware_cb"
|
|
36
40
|
},
|
|
37
|
-
geoLink: (
|
|
41
|
+
geoLink: (s = (a = (t = this.$env) == null ? void 0 : t.datasetDetails) == null ? void 0 : a.distributions) == null ? void 0 : s.geoLink
|
|
38
42
|
};
|
|
39
43
|
},
|
|
40
44
|
computed: {
|
|
41
|
-
...
|
|
45
|
+
...p("datasetDetails", [
|
|
42
46
|
"getCatalog",
|
|
43
47
|
"getID"
|
|
44
48
|
]),
|
|
45
49
|
getGeoLink() {
|
|
46
|
-
var
|
|
50
|
+
var a;
|
|
47
51
|
let t = this.distribution.format.label.toLowerCase();
|
|
48
52
|
if (t = this.geoLinkFormats[t], this.geoLink) {
|
|
49
|
-
const
|
|
53
|
+
const s = {
|
|
50
54
|
catalog: this.getCatalog.id,
|
|
51
55
|
dataset: this.getID,
|
|
52
56
|
distribution: this.distribution.id,
|
|
53
57
|
type: t,
|
|
54
58
|
lang: this.$route.query.locale,
|
|
55
|
-
accessUrl: (
|
|
59
|
+
accessUrl: (a = this.distribution) == null ? void 0 : a.accessUrl[0]
|
|
56
60
|
};
|
|
57
|
-
for (let o in
|
|
58
|
-
this.geoLink = this.geoLink.replace(`{${o}}`,
|
|
61
|
+
for (let o in s)
|
|
62
|
+
this.geoLink = this.geoLink.replace(`{${o}}`, s[o]);
|
|
59
63
|
return this.geoLink;
|
|
60
64
|
}
|
|
61
65
|
return `/geo-viewer/?catalog=${this.getCatalog.id}&dataset=${this.getID}&distribution=${this.distribution.id}&type=${t}&lang=${this.$route.query.locale}`;
|
|
@@ -69,10 +73,10 @@ const d = {
|
|
|
69
73
|
return Object.keys(this.geoLinkFormats).includes(t);
|
|
70
74
|
},
|
|
71
75
|
showVisualisationLink(e) {
|
|
72
|
-
var
|
|
73
|
-
if (!n(e, "format.label") || i((
|
|
76
|
+
var a, s, o;
|
|
77
|
+
if (!n(e, "format.label") || i((a = e == null ? void 0 : e.format) == null ? void 0 : a.label) || i(e == null ? void 0 : e.downloadUrls[0]) && i(e == null ? void 0 : e.accessUrl[0]))
|
|
74
78
|
return !1;
|
|
75
|
-
const t = (o = (
|
|
79
|
+
const t = (o = (s = e == null ? void 0 : e.format) == null ? void 0 : s.id) == null ? void 0 : o.toLowerCase();
|
|
76
80
|
return t && this.visualisationLinkFormats.includes(t);
|
|
77
81
|
}
|
|
78
82
|
}
|
|
@@ -80,13 +84,13 @@ const d = {
|
|
|
80
84
|
key: 2,
|
|
81
85
|
class: "d-flex justify-content-between p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button text-opacity-0"
|
|
82
86
|
};
|
|
83
|
-
function L(e, t,
|
|
87
|
+
function L(e, t, a, s, o, l) {
|
|
84
88
|
return r(), c("div", h, [
|
|
85
|
-
o.showVisualisationButton && l.showVisualisationLink(
|
|
89
|
+
o.showVisualisationButton && l.showVisualisationLink(a.distribution) ? (r(), c("div", {
|
|
86
90
|
key: 0,
|
|
87
91
|
class: "distribution-action btn btn-sm visualise-btn pt-0",
|
|
88
92
|
onClick: t[0] || (t[0] = (f) => e.$emit("displayVisualisation", e.getDownloadUrl))
|
|
89
|
-
}, m(e.$t("message.datasetDetails.preview")), 1)) : l.showGeoLink(
|
|
93
|
+
}, m(e.$t("message.datasetDetails.preview")), 1)) : l.showGeoLink(a.distribution) ? (r(), c("a", {
|
|
90
94
|
key: 1,
|
|
91
95
|
onClick: t[1] || (t[1] = (f) => e.$emit("track-link", l.getGeoLink, "link")),
|
|
92
96
|
href: l.getGeoLink,
|
|
@@ -95,7 +99,7 @@ function L(e, t, s, a, o, l) {
|
|
|
95
99
|
}, m(e.$t("message.datasetDetails.preview")), 9, u)) : (r(), c("span", w, m(e.$t("message.datasetDetails.preview")), 1))
|
|
96
100
|
]);
|
|
97
101
|
}
|
|
98
|
-
const _ = /* @__PURE__ */
|
|
102
|
+
const _ = /* @__PURE__ */ k(d, [["render", L], ["__scopeId", "data-v-7350b7ca"]]);
|
|
99
103
|
export {
|
|
100
104
|
_ as default
|
|
101
105
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributionVisualizeButton.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue"],"sourcesContent":["<template>\n <div class=\"position-relative d-inline-block ml-1 mb-1\">\n <div v-if=\"showVisualisationButton && showVisualisationLink(distribution)\" class=\"distribution-action btn btn-sm visualise-btn pt-0\" @click=\"$emit('displayVisualisation', getDownloadUrl)\">{{ $t('message.datasetDetails.preview') }}</div>\n <a @click=\"$emit('track-link', getGeoLink, 'link')\"\n v-else-if=\"showGeoLink(distribution)\"\n :href=\"getGeoLink\"\n target=\"_blank\"\n class=\"d-flex justify-content-between btn btn-sm btn-primary p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button\">\n {{ $t('message.datasetDetails.preview') }}\n </a>\n <span v-else class=\"d-flex justify-content-between p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button text-opacity-0\">{{ $t('message.datasetDetails.preview') }}</span>\n </div>\n </template>\n <script>\n import AppLink from \"../../../widgets/AppLink\";\n import {has, isNil} from \"lodash\";\n import {mapGetters} from \"vuex\";\n \n export default {\n name: \"DistributionVisualizeButton\",\n components: {\n AppLink,\n },\n props: [\n 'showTooltipVisualiseButton',\n 'isUrlInvalid',\n 'getVisualisationLink',\n 'distribution',\n 'openIfValidUrl',\n 'previewLinkCallback'\n ],\n data() {\n return {\n showVisualisationButton: this.$env.content.datasetDetails.distributions?.showVisualisation,\n visualisationLinkFormats: [\n 'csv',\n 'tsv',\n 'ods',\n 'xlsx',\n 'xls',\n ],\n geoLinkFormats: {\n wms: 'WMS',\n geojson: 'GeoJSON',\n fiware_cb: 'fiware_cb',\n 'fiware-cb': 'fiware_cb',\n },\n geoLink: this.$env?.datasetDetails?.distributions?.geoLink,\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getCatalog',\n 'getID'\n ]),\n getGeoLink() {\n const format = this.distribution.format.label;\n let f = format.toLowerCase();\n // Use correct Case Sensitive strings\n f = this.geoLinkFormats[f];\n if (this.geoLink) {\n const geoLinkVariables = {\n catalog: this.getCatalog.id,\n dataset: this.getID,\n distribution: this.distribution.id,\n type: f,\n lang: this.$route.query.locale,\n accessUrl: this.distribution?.accessUrl[0],\n }\n // Inject variables into geo link\n for (let linkVariable in geoLinkVariables) {\n this.geoLink = this.geoLink.replace(`{${linkVariable}}`, geoLinkVariables[linkVariable]);\n }\n // Return Geo Visualisation Link\n return this.geoLink;\n // return `/geo-viewer/?dataset=${distributionID}&type=${f}&lang=${this.$route.query.locale}`;\n }\n // Return default Geo Visualisation Link if no link in user-config provided\n return `/geo-viewer/?catalog=${this.getCatalog.id}&dataset=${this.getID}&distribution=${this.distribution.id}&type=${f}&lang=${this.$route.query.locale}`;\n }\n },\n methods: {\n showGeoLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution.format.label) || !has(distribution, 'id') || isNil(distribution.id) || !has(distribution, 'accessUrl[0]')) return false;\n const f = distribution.format.label.toLowerCase();\n return Object.keys(this.geoLinkFormats).includes(f);\n },\n showVisualisationLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution?.format?.label)\n || (isNil(distribution?.downloadUrls[0]) && isNil(distribution?.accessUrl[0]))) return false;\n const f = distribution?.format?.id?.toLowerCase();\n return f && this.visualisationLinkFormats.includes(f);\n }\n }\n }\n </script>\n <style scoped lang=\"scss\">\n .disabled {\n cursor: not-allowed;\n pointer-events: none;\n text-decoration: none;\n color: gray;\n }\n .text-opacity-0 {\n opacity: 0;\n cursor: default!important;\n }\n\n .visualise-btn {\n color: #0e47cb;\n vertical-align: text-bottom;\n text-decoration: none;\n }\n </style>\n "],"names":["_sfc_main","AppLink","_a","_d","_c","_b","mapGetters","f","geoLinkVariables","linkVariable","distribution","has","isNil","_hoisted_1","_hoisted_2","_openBlock","_createElementBlock","$data","$options","$props","_cache","$event","_ctx","_toDisplayString","_hoisted_3"],"mappings":";;;;;;AAkBE,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,SAAAC;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAAA,EACD,OAAO;;AACL,WAAO;AAAA,MACL,0BAAyBC,IAAA,KAAK,KAAK,QAAQ,eAAe,kBAAjC,gBAAAA,EAAgD;AAAA,MACzE,0BAA0B;AAAA,QACxB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,MACD,gBAAgB;AAAA,QACd,KAAK;AAAA,QACL,SAAS;AAAA,QACT,WAAW;AAAA,QACX,aAAa;AAAA,MACd;AAAA,MACD,UAASC,KAAAC,KAAAC,IAAA,KAAK,SAAL,gBAAAA,EAAW,mBAAX,gBAAAD,EAA2B,kBAA3B,gBAAAD,EAA0C;AAAA;EAEtD;AAAA,EACD,UAAU;AAAA,IACR,GAAGG,EAAW,kBAAkB;AAAA,MAC9B;AAAA,MACA;AAAA,IACF,CAAC;AAAA,IACD,aAAa;;AAEX,UAAIC,IADW,KAAK,aAAa,OAAO,MACzB;AAGf,UADAA,IAAI,KAAK,eAAeA,CAAC,GACrB,KAAK,SAAS;AAChB,cAAMC,IAAmB;AAAA,UACvB,SAAS,KAAK,WAAW;AAAA,UACzB,SAAS,KAAK;AAAA,UACd,cAAc,KAAK,aAAa;AAAA,UAChC,MAAMD;AAAA,UACN,MAAM,KAAK,OAAO,MAAM;AAAA,UACxB,YAAWL,IAAA,KAAK,iBAAL,gBAAAA,EAAmB,UAAU;AAAA,QAC1C;AAEA,iBAASO,KAAgBD;AACvB,eAAK,UAAU,KAAK,QAAQ,QAAQ,IAAIC,CAAY,KAAKD,EAAiBC,CAAY,CAAC;AAGzF,eAAO,KAAK;AAAA,MAEd;AAEA,aAAO,wBAAwB,KAAK,WAAW,EAAE,YAAY,KAAK,KAAK,iBAAiB,KAAK,aAAa,EAAE,SAASF,CAAC,SAAS,KAAK,OAAO,MAAM,MAAM;AAAA,IACzJ;AAAA,EACD;AAAA,EACD,SAAS;AAAA,IACP,YAAYG,GAAc;AACxB,UAAI,CAACC,EAAID,GAAc,cAAc,KAAKE,EAAMF,EAAa,OAAO,KAAK,KAAK,CAACC,EAAID,GAAc,IAAI,KAAKE,EAAMF,EAAa,EAAE,KAAK,CAACC,EAAID,GAAc,cAAc;AAAG,eAAO;AAC/K,YAAMH,IAAIG,EAAa,OAAO,MAAM,YAAW;AAC/C,aAAO,OAAO,KAAK,KAAK,cAAc,EAAE,SAASH,CAAC;AAAA,IACnD;AAAA,IACD,sBAAsBG,GAAc;;AAClC,UAAI,CAACC,EAAID,GAAc,cAAc,KAAKE,GAAMV,IAAAQ,KAAA,gBAAAA,EAAc,WAAd,gBAAAR,EAAsB,KAAK,KACrEU,EAAMF,KAAA,gBAAAA,EAAc,aAAa,EAAE,KAAKE,EAAMF,KAAA,gBAAAA,EAAc,UAAU,EAAE;AAAI,eAAO;AACzF,YAAMH,KAAIH,KAAAC,IAAAK,KAAA,gBAAAA,EAAc,WAAd,gBAAAL,EAAsB,OAAtB,gBAAAD,EAA0B;AACpC,aAAOG,KAAK,KAAK,yBAAyB,SAASA,CAAC;AAAA,IACtD;AAAA,EACF;AACF,
|
|
1
|
+
{"version":3,"file":"DistributionVisualizeButton.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue"],"sourcesContent":["<template>\n <div class=\"position-relative d-inline-block ml-1 mb-1\">\n <div v-if=\"showVisualisationButton && showVisualisationLink(distribution)\" class=\"distribution-action btn btn-sm visualise-btn pt-0\" @click=\"$emit('displayVisualisation', getDownloadUrl)\">{{ $t('message.datasetDetails.preview') }}</div>\n <a @click=\"$emit('track-link', getGeoLink, 'link')\"\n v-else-if=\"showGeoLink(distribution)\"\n :href=\"getGeoLink\"\n target=\"_blank\"\n class=\"d-flex justify-content-between btn btn-sm btn-primary p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button\">\n {{ $t('message.datasetDetails.preview') }}\n </a>\n <span v-else class=\"d-flex justify-content-between p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button text-opacity-0\">{{ $t('message.datasetDetails.preview') }}</span>\n </div>\n </template>\n <script>\n import AppLink from \"../../../widgets/AppLink\";\n import {has, isNil} from \"lodash\";\n import {mapGetters} from \"vuex\";\n \n export default {\n name: \"DistributionVisualizeButton\",\n components: {\n AppLink,\n },\n props: [\n 'showTooltipVisualiseButton',\n 'isUrlInvalid',\n 'getVisualisationLink',\n 'distribution',\n 'openIfValidUrl',\n 'previewLinkCallback'\n ],\n data() {\n return {\n showVisualisationButton: this.$env.content.datasetDetails.distributions?.showVisualisation,\n visualisationLinkFormats: [\n 'csv',\n 'tsv',\n 'ods',\n 'xlsx',\n 'xls',\n 'zip',\n 'gz',\n 'tar.gz',\n 'tar',\n ],\n geoLinkFormats: {\n wms: 'WMS',\n geojson: 'GeoJSON',\n fiware_cb: 'fiware_cb',\n 'fiware-cb': 'fiware_cb',\n },\n geoLink: this.$env?.datasetDetails?.distributions?.geoLink,\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getCatalog',\n 'getID'\n ]),\n getGeoLink() {\n const format = this.distribution.format.label;\n let f = format.toLowerCase();\n // Use correct Case Sensitive strings\n f = this.geoLinkFormats[f];\n if (this.geoLink) {\n const geoLinkVariables = {\n catalog: this.getCatalog.id,\n dataset: this.getID,\n distribution: this.distribution.id,\n type: f,\n lang: this.$route.query.locale,\n accessUrl: this.distribution?.accessUrl[0],\n }\n // Inject variables into geo link\n for (let linkVariable in geoLinkVariables) {\n this.geoLink = this.geoLink.replace(`{${linkVariable}}`, geoLinkVariables[linkVariable]);\n }\n // Return Geo Visualisation Link\n return this.geoLink;\n // return `/geo-viewer/?dataset=${distributionID}&type=${f}&lang=${this.$route.query.locale}`;\n }\n // Return default Geo Visualisation Link if no link in user-config provided\n return `/geo-viewer/?catalog=${this.getCatalog.id}&dataset=${this.getID}&distribution=${this.distribution.id}&type=${f}&lang=${this.$route.query.locale}`;\n }\n },\n methods: {\n showGeoLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution.format.label) || !has(distribution, 'id') || isNil(distribution.id) || !has(distribution, 'accessUrl[0]')) return false;\n const f = distribution.format.label.toLowerCase();\n return Object.keys(this.geoLinkFormats).includes(f);\n },\n showVisualisationLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution?.format?.label)\n || (isNil(distribution?.downloadUrls[0]) && isNil(distribution?.accessUrl[0]))) return false;\n const f = distribution?.format?.id?.toLowerCase();\n return f && this.visualisationLinkFormats.includes(f);\n }\n }\n }\n </script>\n <style scoped lang=\"scss\">\n .disabled {\n cursor: not-allowed;\n pointer-events: none;\n text-decoration: none;\n color: gray;\n }\n .text-opacity-0 {\n opacity: 0;\n cursor: default!important;\n }\n\n .visualise-btn {\n color: #0e47cb;\n vertical-align: text-bottom;\n text-decoration: none;\n border: none;\n padding: 0 0 0 8px;\n }\n </style>\n "],"names":["_sfc_main","AppLink","_a","_d","_c","_b","mapGetters","f","geoLinkVariables","linkVariable","distribution","has","isNil","_hoisted_1","_hoisted_2","_openBlock","_createElementBlock","$data","$options","$props","_cache","$event","_ctx","_toDisplayString","_hoisted_3"],"mappings":";;;;;;AAkBE,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,SAAAC;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AA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