@piveau/piveau-hub-ui-modules 4.4.0-beta.2 → 4.4.0
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/catalogues/CatalogPage.vue.mjs +23 -22
- package/dist/catalogues/CatalogPage.vue.mjs.map +1 -1
- package/dist/composables/head/useDatasetDetailsDatasetHead.mjs +19 -15
- package/dist/composables/head/useDatasetDetailsDatasetHead.mjs.map +1 -1
- package/dist/composables/useRuntimeEnv.d.ts +1 -1
- package/dist/configurations/config-schema/apiSchema.d.ts +3 -3
- package/dist/configurations/config-schema/apiSchema.mjs +1 -1
- package/dist/configurations/config-schema/apiSchema.mjs.map +1 -1
- package/dist/configurations/config-schema/configSchema.d.ts +5 -5
- package/dist/data-provider-interface/DPIMenu.vue.d.ts +2 -2
- package/dist/data-provider-interface/DPIMenu.vue.mjs +3 -3
- package/dist/data-provider-interface/DPIMenu.vue.mjs.map +1 -1
- package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +29 -7
- package/dist/data-provider-interface/DataProviderInterface.vue.mjs +12 -69
- package/dist/data-provider-interface/DataProviderInterface.vue.mjs.map +1 -1
- package/dist/data-provider-interface/DataProviderInterface.vue2.mjs +91 -2
- package/dist/data-provider-interface/DataProviderInterface.vue2.mjs.map +1 -1
- package/dist/data-provider-interface/DataProviderInterface.vue3.mjs +5 -0
- package/dist/data-provider-interface/DataProviderInterface.vue3.mjs.map +1 -0
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +66 -65
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +127 -115
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/DataFetchingComponent.vue.d.ts +1 -1
- package/dist/data-provider-interface/components/DataFetchingComponent.vue.mjs +25 -19
- package/dist/data-provider-interface/components/DataFetchingComponent.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/FileUpload.vue.d.ts +1 -1
- package/dist/data-provider-interface/components/Navigation.vue.d.ts +5 -5
- package/dist/data-provider-interface/composables/index.d.ts +2 -0
- package/dist/data-provider-interface/composables/useDpiContext.d.ts +17 -0
- package/dist/data-provider-interface/composables/useDpiContext.mjs +19 -0
- package/dist/data-provider-interface/composables/useDpiContext.mjs.map +1 -0
- package/dist/data-provider-interface/composables/useDpiEditMode.d.ts +16 -0
- package/dist/data-provider-interface/composables/useDpiEditMode.mjs +41 -0
- package/dist/data-provider-interface/composables/useDpiEditMode.mjs.map +1 -0
- package/dist/data-provider-interface/config/dcatap/input-definition.mjs +28 -2
- package/dist/data-provider-interface/config/dcatap/input-definition.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatapde/input-definition.mjs +5 -2
- package/dist/data-provider-interface/config/dcatapde/input-definition.mjs.map +1 -1
- package/dist/data-provider-interface/config/dpi-spec-config.mjs +1 -0
- package/dist/data-provider-interface/config/dpi-spec-config.mjs.map +1 -1
- package/dist/data-provider-interface/index.d.ts +2 -0
- package/dist/data-provider-interface/index.mjs +11 -0
- package/dist/data-provider-interface/index.mjs.map +1 -0
- package/dist/data-provider-interface/store/dpiStore.d.ts +31 -15
- package/dist/data-provider-interface/store/dpiStore.mjs +30 -13
- package/dist/data-provider-interface/store/dpiStore.mjs.map +1 -1
- package/dist/data-provider-interface/store/modules/autocompleteStore.d.ts +3 -1
- package/dist/data-provider-interface/store/modules/autocompleteStore.mjs +28 -29
- package/dist/data-provider-interface/store/modules/autocompleteStore.mjs.map +1 -1
- package/dist/data-provider-interface/store/modules/conversionStore.d.ts +6 -6
- package/dist/data-provider-interface/store/modules/conversionStore.mjs +21 -22
- package/dist/data-provider-interface/store/modules/conversionStore.mjs.map +1 -1
- package/dist/data-provider-interface/store/modules/formSchemaStore.d.ts +5 -3
- package/dist/data-provider-interface/store/modules/formSchemaStore.mjs +29 -29
- package/dist/data-provider-interface/store/modules/formSchemaStore.mjs.map +1 -1
- package/dist/data-provider-interface/store/modules/navigationStore.d.ts +1 -1
- package/dist/data-provider-interface/store/modules/navigationStore.mjs +13 -14
- package/dist/data-provider-interface/store/modules/navigationStore.mjs.map +1 -1
- package/dist/data-provider-interface/utils/RDFconverter.mjs +63 -60
- package/dist/data-provider-interface/utils/RDFconverter.mjs.map +1 -1
- package/dist/data-provider-interface/views/DraftsPage.vue.d.ts +2 -2
- package/dist/data-provider-interface/views/InputPage.vue.d.ts +3 -3
- package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.mjs +1 -1
- package/dist/data-provider-interface/views/OverviewPage.vue.d.ts +1 -1
- package/dist/datasetDetails/DatasetDetails.vue.d.ts +1 -1
- package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs +1 -1
- package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsDataset.vue2.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsDescription.vue.d.ts +1 -1
- package/dist/datasetDetails/distributions/Distribution.vue.mjs +45 -43
- package/dist/datasetDetails/distributions/Distribution.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/DistributionFormat.vue.d.ts +3 -3
- package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.d.ts +2 -2
- package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.d.ts +1 -0
- package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs +18 -14
- package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.d.ts +3 -3
- package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.mjs +68 -57
- package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue2.mjs +2 -2
- package/dist/datasetDetails/header/DatasetDetailsHeaderTitle.vue.d.ts +1 -1
- package/dist/datasetDetails/navigation/DatasetDetailsNavigation.vue.d.ts +1 -1
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +1 -1
- package/dist/embed/EmbedDataset.vue.d.ts +1 -1
- package/dist/embed/EmbedDatasetSnippet.vue.d.ts +2 -2
- package/dist/external/@vueuse/core/index +129 -80
- package/dist/external/@vueuse/core/index.map +1 -1
- package/dist/external/@vueuse/shared/index +121 -17
- package/dist/external/@vueuse/shared/index.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +250 -248
- package/dist/index.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/dist/services/datasetService.d.ts +1 -1
- package/dist/services/datasetService.mjs +2 -2
- package/dist/services/datasetService.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2,9 +2,10 @@ import w from "../../../widgets/AppLink.vue.mjs";
|
|
|
2
2
|
import k from "./DistributionPreview.vue.mjs";
|
|
3
3
|
import _ from "./DistributionDownload.vue.mjs";
|
|
4
4
|
import f from "./LinkedDataButtonsDropdown.vue.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { mapGetters as D } from "vuex";
|
|
6
|
+
import { resolveComponent as e, openBlock as a, createElementBlock as p, createBlock as s, createCommentVNode as l, createTextVNode as r, createVNode as v, createElementVNode as U, withCtx as g } from "vue";
|
|
6
7
|
import "./DistributionActions.vue2.mjs";
|
|
7
|
-
import
|
|
8
|
+
import h from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
9
|
const V = {
|
|
9
10
|
name: "DistributionActions",
|
|
10
11
|
components: { AppLink: w, LinkedDataButtonsDropdown: f, DistributionDownload: _, DistributionPreview: k },
|
|
@@ -25,6 +26,9 @@ const V = {
|
|
|
25
26
|
replaceHttp: Function
|
|
26
27
|
},
|
|
27
28
|
computed: {
|
|
29
|
+
...D("datasetDetails", [
|
|
30
|
+
"getCatalog"
|
|
31
|
+
]),
|
|
28
32
|
showValidateButton() {
|
|
29
33
|
var i, n, t, o;
|
|
30
34
|
return (o = (t = (n = (i = this.$env) == null ? void 0 : i.content) == null ? void 0 : n.datasetDetails) == null ? void 0 : t.distributions) == null ? void 0 : o.showValidationButton;
|
|
@@ -35,10 +39,10 @@ const V = {
|
|
|
35
39
|
}
|
|
36
40
|
}
|
|
37
41
|
}, F = { class: "d-flex flex-sm-row flex-md-column flex-lg-row justify-content-start justify-content-lg-end mt-2 text-md-right col text-left distribution-actions" };
|
|
38
|
-
function
|
|
39
|
-
const
|
|
40
|
-
return
|
|
41
|
-
d.hidePreviewButton
|
|
42
|
+
function y(i, n, t, o, B, d) {
|
|
43
|
+
const u = e("distribution-preview"), c = e("distribution-download"), b = e("linked-data-buttons-dropdown"), m = e("app-link");
|
|
44
|
+
return a(), p("div", F, [
|
|
45
|
+
!d.hidePreviewButton && i.getCatalog.is_part_of !== "erpd" ? (a(), s(u, {
|
|
42
46
|
key: 0,
|
|
43
47
|
isUrlInvalid: t.isUrlInvalid,
|
|
44
48
|
getVisualisationLink: t.getVisualisationLink,
|
|
@@ -46,9 +50,9 @@ function g(i, n, t, o, y, d) {
|
|
|
46
50
|
openIfValidUrl: t.openIfValidUrl,
|
|
47
51
|
previewLinkCallback: t.previewLinkCallback,
|
|
48
52
|
class: "distribution-action"
|
|
49
|
-
}, null, 8, ["isUrlInvalid", "getVisualisationLink", "distribution", "openIfValidUrl", "previewLinkCallback"])),
|
|
53
|
+
}, null, 8, ["isUrlInvalid", "getVisualisationLink", "distribution", "openIfValidUrl", "previewLinkCallback"])) : l("", !0),
|
|
50
54
|
r(),
|
|
51
|
-
t.showDownloadDropdown(t.distribution) ? (
|
|
55
|
+
t.showDownloadDropdown(t.distribution) ? (a(), s(c, {
|
|
52
56
|
key: 1,
|
|
53
57
|
getDownloadUrl: t.getDownloadUrl,
|
|
54
58
|
showAccessUrls: t.showAccessUrls,
|
|
@@ -58,7 +62,7 @@ function g(i, n, t, o, y, d) {
|
|
|
58
62
|
replaceHttp: t.replaceHttp,
|
|
59
63
|
distribution: t.distribution,
|
|
60
64
|
class: "distribution-action"
|
|
61
|
-
}, null, 8, ["getDownloadUrl", "showAccessUrls", "isOnlyOneUrl", "trackGoto", "getDistributionFormat", "replaceHttp", "distribution"])) :
|
|
65
|
+
}, null, 8, ["getDownloadUrl", "showAccessUrls", "isOnlyOneUrl", "trackGoto", "getDistributionFormat", "replaceHttp", "distribution"])) : l("", !0),
|
|
62
66
|
r(),
|
|
63
67
|
v(b, {
|
|
64
68
|
distributions: t.distributions,
|
|
@@ -67,23 +71,23 @@ function g(i, n, t, o, y, d) {
|
|
|
67
71
|
}, null, 8, ["distributions", "distribution"]),
|
|
68
72
|
r(),
|
|
69
73
|
U("div", null, [
|
|
70
|
-
d.showValidateButton ? (
|
|
74
|
+
d.showValidateButton ? (a(), s(m, {
|
|
71
75
|
key: 0,
|
|
72
76
|
class: "btn btn-sm validate-btn pt-0",
|
|
73
77
|
to: { name: "DatasetDetailsQuality", query: { locale: i.$route.query.locale, validate: t.distribution.id } }
|
|
74
78
|
}, {
|
|
75
|
-
default:
|
|
79
|
+
default: g(() => [
|
|
76
80
|
r(`
|
|
77
81
|
Validate
|
|
78
82
|
`)
|
|
79
83
|
]),
|
|
80
84
|
_: 1
|
|
81
|
-
}, 8, ["to"])) :
|
|
85
|
+
}, 8, ["to"])) : l("", !0)
|
|
82
86
|
])
|
|
83
87
|
]);
|
|
84
88
|
}
|
|
85
|
-
const
|
|
89
|
+
const H = /* @__PURE__ */ h(V, [["render", y], ["__scopeId", "data-v-86e67d67"]]);
|
|
86
90
|
export {
|
|
87
|
-
|
|
91
|
+
H as default
|
|
88
92
|
};
|
|
89
93
|
//# sourceMappingURL=DistributionActions.vue.mjs.map
|
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 <distribution-preview v-if=\"!hidePreviewButton\" :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\" />\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 DistributionPreview from \"../../../datasetDetails/distributions/distributionActions/DistributionPreview\";\nimport DistributionDownload from \"../../../datasetDetails/distributions/distributionActions/DistributionDownload\";\nimport LinkedDataButtonsDropdown\n from \"../../../datasetDetails/distributions/distributionActions/LinkedDataButtonsDropdown\";\nexport default {\n name: \"DistributionActions\",\n components: { AppLink, LinkedDataButtonsDropdown, DistributionDownload, DistributionPreview },\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 computed: {\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}\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","_d","_c","_b","_a","_hoisted_1","_openBlock","_createElementBlock","$options","
|
|
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 <distribution-preview v-if=\"!hidePreviewButton && getCatalog.is_part_of !== 'erpd'\" :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\" />\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 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\";\nexport default {\n name: \"DistributionActions\",\n components: { AppLink, LinkedDataButtonsDropdown, DistributionDownload, DistributionPreview },\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 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}\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","mapGetters","_d","_c","_b","_a","_hoisted_1","_openBlock","_createElementBlock","$options","_ctx","_createBlock","_component_distribution_preview","$props","_createCommentVNode","_createTextVNode","_component_distribution_download","_createVNode","_component_linked_data_buttons_dropdown","_createElementVNode","_component_app_link","_withCtx"],"mappings":";;;;;;;;AA4BA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY,EAAE,SAAAC,GAAS,2BAAAC,GAA2B,sBAAAC,GAAsB,qBAAAC,EAAqB;AAAA,EAC7F,OAAO;AAAA,IACL,cAAc;AAAA,IACd,eAAe;AAAA,IACf,cAAc;AAAA,IACd,sBAAsB;AAAA,IACtB,4BAA4B;AAAA,IAC5B,qBAAqB;AA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AAG,cAAcA,EAAY;AAAA,MACrG,OAAM;AAAA,8IATZC,EAAA,IAAA,EAAA;AAAA,IAAAC,EAAA;AAAA,IAUIE,EACgCC,GAAA;AAAA,MADD,eAAeL,EAAa;AAAA,MAAG,cAAcA,EAAY;AAAA,MACtF,OAAM;AAAA;IAXZE,EAAA;AAAA,IAYII,EAKM,OAAA,MAAA;AAAA,MAJYV,EAAkB,2BAAlCE,EAGWS,GAAA;AAAA,QAhBjB,KAAA;AAAA,QAa0C,OAAM;AAAA,QACvC,IAAE,EAAA,MAAA,yBAAA,OAAA,EAAA,QAAoDV,SAAO,MAAM,QAAM,UAAYG,EAAY,aAAC,GAAE,EAAA;AAAA;QAd7G,SAAAQ,EAcmH,MAE7G;AAAA,UAhBNN,EAcmH;AAAA;AAAA,OAE7G;AAAA;QAhBN,GAAA;AAAA,uBAAAD,EAAA,IAAA,EAAA;AAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<Readonly<{
|
|
2
|
-
distribution?: any;
|
|
3
2
|
getDistributionFormat?: any;
|
|
3
|
+
distribution?: any;
|
|
4
4
|
isOnlyOneUrl?: any;
|
|
5
5
|
getDownloadUrl?: any;
|
|
6
6
|
trackGoto?: any;
|
|
@@ -12,16 +12,16 @@ declare const _default: import('vue').DefineComponent<Readonly<{
|
|
|
12
12
|
setClipboard(value: any): void;
|
|
13
13
|
popupCopyUrlAlert(): void;
|
|
14
14
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<Readonly<{
|
|
15
|
-
distribution?: any;
|
|
16
15
|
getDistributionFormat?: any;
|
|
16
|
+
distribution?: any;
|
|
17
17
|
isOnlyOneUrl?: any;
|
|
18
18
|
getDownloadUrl?: any;
|
|
19
19
|
trackGoto?: any;
|
|
20
20
|
showAccessUrls?: any;
|
|
21
21
|
replaceHttp?: any;
|
|
22
22
|
}>>>, {
|
|
23
|
-
readonly distribution?: any;
|
|
24
23
|
readonly getDistributionFormat?: any;
|
|
24
|
+
readonly distribution?: any;
|
|
25
25
|
readonly isOnlyOneUrl?: any;
|
|
26
26
|
readonly getDownloadUrl?: any;
|
|
27
27
|
readonly trackGoto?: any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { resolveComponent as
|
|
1
|
+
import T from "./DistributionDropdownDownload.vue.mjs";
|
|
2
|
+
import H from "./DistributionDownloadAs.vue.mjs";
|
|
3
|
+
import I from "../../../widgets/AppLink.vue.mjs";
|
|
4
|
+
import { resolveComponent as c, openBlock as l, createBlock as D, withCtx as s, createElementBlock as m, createVNode as r, createTextVNode as i, createElementVNode as n, toDisplayString as h, createCommentVNode as x, normalizeClass as N, Fragment as P, renderList as j, pushScopeId as S, popScopeId as V } from "vue";
|
|
5
5
|
import "./DistributionDownload.vue2.mjs";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import B from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
+
const E = {
|
|
8
8
|
name: "DistributionDownload",
|
|
9
9
|
data() {
|
|
10
10
|
return {
|
|
@@ -21,14 +21,14 @@ const j = {
|
|
|
21
21
|
"distribution"
|
|
22
22
|
],
|
|
23
23
|
components: {
|
|
24
|
-
DistributionDropdownDownload:
|
|
25
|
-
DistributionDownloadAs:
|
|
26
|
-
AppLink:
|
|
24
|
+
DistributionDropdownDownload: T,
|
|
25
|
+
DistributionDownloadAs: H,
|
|
26
|
+
AppLink: I
|
|
27
27
|
},
|
|
28
28
|
methods: {
|
|
29
29
|
setClipboard(e) {
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const o = document.createElement("INPUT");
|
|
31
|
+
o.value = e, document.body.appendChild(o), o.select(), document.execCommand("copy"), document.body.removeChild(o), this.popupCopyUrlAlert();
|
|
32
32
|
},
|
|
33
33
|
popupCopyUrlAlert() {
|
|
34
34
|
this.showUrlCopiedPopup = !0, setTimeout((function() {
|
|
@@ -36,20 +36,20 @@ const j = {
|
|
|
36
36
|
}).bind(this), 3500);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
}, u = (e) => (
|
|
39
|
+
}, u = (e) => (S("data-v-f47a6ab5"), e = e(), V(), e), F = {
|
|
40
40
|
key: 0,
|
|
41
41
|
class: "dropdown-item px-3 d-flex align-items-center d-block"
|
|
42
|
-
},
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
], -1)),
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
], -1)),
|
|
42
|
+
}, L = /* @__PURE__ */ u(() => /* @__PURE__ */ n("span", null, [
|
|
43
|
+
/* @__PURE__ */ n("i", { class: "material-icons align-bottom" }, "open_in_new")
|
|
44
|
+
], -1)), z = ["content"], q = /* @__PURE__ */ u(() => /* @__PURE__ */ n("i", { class: "material-icons align-bottom" }, "done_all", -1)), J = /* @__PURE__ */ u(() => /* @__PURE__ */ n("span", null, [
|
|
45
|
+
/* @__PURE__ */ n("i", { class: "open_in_new material-icons align-bottom" }, "open_in_new")
|
|
46
|
+
], -1)), K = ["onClick"], M = {
|
|
47
47
|
class: "px-2",
|
|
48
48
|
property: "dcat:mediaType"
|
|
49
49
|
};
|
|
50
|
-
function
|
|
51
|
-
const d =
|
|
52
|
-
return l(),
|
|
50
|
+
function Q(e, o, t, W, v, p) {
|
|
51
|
+
const d = c("app-link"), A = c("distribution-download-as"), G = c("distribution-dropdown-download");
|
|
52
|
+
return l(), D(G, {
|
|
53
53
|
distribution: t.distribution,
|
|
54
54
|
title: e.$t("message.tooltip.datasetDetails.distributions.download"),
|
|
55
55
|
message: e.$t("message.datasetDetails.download"),
|
|
@@ -59,102 +59,113 @@ function K(e, n, t, M, h, p) {
|
|
|
59
59
|
bgLight: "true"
|
|
60
60
|
}, {
|
|
61
61
|
default: s(() => {
|
|
62
|
-
var b,
|
|
62
|
+
var b, f, w, k;
|
|
63
63
|
return [
|
|
64
|
-
t.showAccessUrls(t.distribution) ? (l(),
|
|
65
|
-
|
|
64
|
+
t.showAccessUrls(t.distribution) ? (l(), m("span", F, [
|
|
65
|
+
r(d, {
|
|
66
66
|
class: "text-decoration-none d-flex justify-content-between access-uri-link",
|
|
67
67
|
to: t.replaceHttp(t.distribution.accessUrl[0]),
|
|
68
68
|
target: "_blank",
|
|
69
69
|
rel: "dcat:distribution noopener",
|
|
70
|
-
"matomo-track-download": { format: (
|
|
71
|
-
onAfterClick:
|
|
70
|
+
"matomo-track-download": { format: (f = (b = t.distribution) == null ? void 0 : b.format) == null ? void 0 : f.id },
|
|
71
|
+
onAfterClick: o[0] || (o[0] = (a) => e.$emit("trackGoto"))
|
|
72
72
|
}, {
|
|
73
73
|
default: s(() => [
|
|
74
|
-
|
|
74
|
+
L
|
|
75
75
|
]),
|
|
76
76
|
_: 1
|
|
77
77
|
}, 8, ["to", "matomo-track-download"]),
|
|
78
78
|
i(),
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
n("span", null, [
|
|
80
|
+
n("i", {
|
|
81
81
|
class: "copy-text material-icons align-bottom",
|
|
82
|
-
onClick:
|
|
82
|
+
onClick: o[1] || (o[1] = (a) => p.setClipboard(t.distribution.accessUrl[0]))
|
|
83
83
|
}, "file_copy")
|
|
84
84
|
]),
|
|
85
85
|
i(),
|
|
86
|
-
|
|
86
|
+
r(d, {
|
|
87
87
|
class: "text-decoration-none d-flex justify-content-between access-uri-link",
|
|
88
88
|
to: t.replaceHttp(t.distribution.accessUrl[0]),
|
|
89
89
|
target: "_blank",
|
|
90
90
|
rel: "dcat:distribution noopener",
|
|
91
|
-
"matomo-track-download": { format: (k = (
|
|
92
|
-
onAfterClick:
|
|
91
|
+
"matomo-track-download": { format: (k = (w = t.distribution) == null ? void 0 : w.format) == null ? void 0 : k.id },
|
|
92
|
+
onAfterClick: o[2] || (o[2] = (a) => e.$emit("trackGoto"))
|
|
93
93
|
}, {
|
|
94
94
|
default: s(() => [
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
n("span", null, [
|
|
96
|
+
n("small", {
|
|
97
97
|
class: "px-2",
|
|
98
98
|
property: "dcat:mediaType",
|
|
99
99
|
content: t.getDistributionFormat
|
|
100
|
-
},
|
|
100
|
+
}, h(e.$t("message.metadata.accessUrl")), 9, z)
|
|
101
101
|
])
|
|
102
102
|
]),
|
|
103
103
|
_: 1
|
|
104
104
|
}, 8, ["to", "matomo-track-download"])
|
|
105
|
-
])) :
|
|
105
|
+
])) : x("", !0),
|
|
106
106
|
i(),
|
|
107
|
-
|
|
108
|
-
class:
|
|
107
|
+
n("span", {
|
|
108
|
+
class: N([v.showUrlCopiedPopup ? "display" : "hide", "copy-url-popup"])
|
|
109
109
|
}, [
|
|
110
|
-
|
|
110
|
+
q,
|
|
111
111
|
i(` URL copied
|
|
112
112
|
`)
|
|
113
113
|
], 2),
|
|
114
114
|
i(),
|
|
115
|
-
(l(!0),
|
|
116
|
-
var _, g;
|
|
117
|
-
return l(),
|
|
115
|
+
(l(!0), m(P, null, j(t.distribution.downloadUrls, (a, O) => {
|
|
116
|
+
var _, g, y, C;
|
|
117
|
+
return l(), m("span", {
|
|
118
118
|
class: "dropdown-item d-block px-3 d-flex align-items-center",
|
|
119
|
-
key:
|
|
119
|
+
key: O
|
|
120
120
|
}, [
|
|
121
|
-
|
|
121
|
+
r(d, {
|
|
122
122
|
class: "text-decoration-none d-flex justify-content-between",
|
|
123
123
|
to: t.replaceHttp(a),
|
|
124
124
|
target: "_blank",
|
|
125
125
|
"matomo-track-download": { format: (g = (_ = t.distribution) == null ? void 0 : _.format) == null ? void 0 : g.id },
|
|
126
|
-
onAfterClick:
|
|
126
|
+
onAfterClick: o[3] || (o[3] = (U) => e.$emit("trackGoto"))
|
|
127
127
|
}, {
|
|
128
128
|
default: s(() => [
|
|
129
|
-
|
|
129
|
+
J
|
|
130
130
|
]),
|
|
131
131
|
_: 2
|
|
132
132
|
}, 1032, ["to", "matomo-track-download"]),
|
|
133
133
|
i(),
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
n("span", null, [
|
|
135
|
+
n("i", {
|
|
136
136
|
class: "copy-text material-icons align-bottom",
|
|
137
|
-
onClick: (
|
|
138
|
-
}, "file_copy", 8,
|
|
137
|
+
onClick: (U) => p.setClipboard(a)
|
|
138
|
+
}, "file_copy", 8, K)
|
|
139
139
|
]),
|
|
140
140
|
i(),
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
r(d, {
|
|
142
|
+
class: "text-decoration-none d-flex justify-content-between",
|
|
143
|
+
to: t.replaceHttp(a),
|
|
144
|
+
target: "_blank",
|
|
145
|
+
"matomo-track-download": { format: (C = (y = t.distribution) == null ? void 0 : y.format) == null ? void 0 : C.id },
|
|
146
|
+
onAfterClick: o[4] || (o[4] = (U) => e.$emit("trackGoto"))
|
|
147
|
+
}, {
|
|
148
|
+
default: s(() => [
|
|
149
|
+
n("span", null, [
|
|
150
|
+
n("small", M, h(e.$t("message.metadata.downloadUrl")), 1)
|
|
151
|
+
])
|
|
152
|
+
]),
|
|
153
|
+
_: 2
|
|
154
|
+
}, 1032, ["to", "matomo-track-download"])
|
|
144
155
|
]);
|
|
145
156
|
}), 128)),
|
|
146
157
|
i(),
|
|
147
|
-
this.$env.content.datasetDetails.downloadAs.enable ? (l(),
|
|
158
|
+
this.$env.content.datasetDetails.downloadAs.enable ? (l(), D(A, {
|
|
148
159
|
key: 1,
|
|
149
160
|
distribution: t.distribution
|
|
150
|
-
}, null, 8, ["distribution"])) :
|
|
161
|
+
}, null, 8, ["distribution"])) : x("", !0)
|
|
151
162
|
];
|
|
152
163
|
}),
|
|
153
164
|
_: 1
|
|
154
165
|
}, 8, ["distribution", "title", "message", "isOnlyOneUrl", "getDownloadUrl", "onTrackGoto"]);
|
|
155
166
|
}
|
|
156
|
-
const
|
|
167
|
+
const ot = /* @__PURE__ */ B(E, [["render", Q], ["__scopeId", "data-v-f47a6ab5"]]);
|
|
157
168
|
export {
|
|
158
|
-
|
|
169
|
+
ot as default
|
|
159
170
|
};
|
|
160
171
|
//# sourceMappingURL=DistributionDownload.vue.mjs.map
|
package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributionDownload.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionDownload.vue"],"sourcesContent":["<template>\n <distribution-dropdown-download :distribution=\"distribution\"\n :title=\"$t('message.tooltip.datasetDetails.distributions.download')\" :message=\"$t('message.datasetDetails.download')\"\n :isOnlyOneUrl=\"isOnlyOneUrl(distribution)\" :getDownloadUrl=\"getDownloadUrl\" @trackGoto=\"trackGoto\" bgLight=\"true\">\n\n <span class=\"dropdown-item px-3 d-flex align-items-center d-block\" v-if=\"showAccessUrls(distribution)\">\n <app-link class=\"text-decoration-none d-flex justify-content-between access-uri-link\"\n :to=\"replaceHttp(distribution.accessUrl[0])\" target=\"_blank\" rel=\"dcat:distribution noopener\"\n :matomo-track-download=\"{ format: distribution?.format?.id }\" @after-click=\"$emit('trackGoto')\">\n <span>\n <i class=\"material-icons align-bottom\">open_in_new</i>\n <!-- <i class=\" copy-text material-icons align-bottom\" @click=\"setClipboard(distribution.accessUrl[0])\">file_copy</i> copy -->\n </span>\n <!-- <span>\n <small class=\"px-2\" property=\"dcat:mediaType\" :content=\"getDistributionFormat\">Access URL</small>\n </span> -->\n </app-link>\n\n <span>\n <!-- <i class=\"material-icons align-bottom\">open_in_new</i> down -->\n <i class=\"copy-text material-icons align-bottom\" @click=\"setClipboard(distribution.accessUrl[0])\">file_copy</i>\n </span>\n\n <app-link class=\"text-decoration-none d-flex justify-content-between access-uri-link\"\n :to=\"replaceHttp(distribution.accessUrl[0])\" target=\"_blank\" rel=\"dcat:distribution noopener\"\n :matomo-track-download=\"{ format: distribution?.format?.id }\" @after-click=\"$emit('trackGoto')\">\n <span>\n <small class=\"px-2\" property=\"dcat:mediaType\" :content=\"getDistributionFormat\">{{\n $t('message.metadata.accessUrl') }}</small>\n </span>\n </app-link>\n <!-- <i class=\"material-icons help-icon ml-3\" data-toggle=\"tooltip\" data-placement=\"bottom\" :title=\"$t('message.datasetDetails.accessURLTooltip')\">help_outline</i> -->\n </span>\n\n <span :class=\"(showUrlCopiedPopup) ? 'display' : 'hide'\" class=\"copy-url-popup\">\n <i class=\"material-icons align-bottom\">done_all</i> URL copied\n </span>\n\n <span class=\"dropdown-item d-block px-3 d-flex align-items-center\"\n v-for=\"(downloadURL, i) in distribution.downloadUrls\" :key=\"i\">\n <app-link class=\"text-decoration-none d-flex justify-content-between\" :to=\"replaceHttp(downloadURL)\" target=\"_blank\"\n :matomo-track-download=\"{ format: distribution?.format?.id }\" @after-click=\"$emit('trackGoto')\">\n <span>\n <i class=\"material-icons align-bottom\">open_in_new</i>\n <!-- <i class=\" copy-text material-icons align-bottom\" @click=\"setClipboard(downloadURL)\">file_copy</i> -->\n </span>\n <!-- <span>\n <small class=\"px-2\" property=\"dcat:mediaType\">Download URL</small>\n </span> -->\n </app-link>\n <span>\n <!-- <i class=\"material-icons align-bottom\">open_in_new</i> -->\n <i class=\"copy-text material-icons align-bottom\" @click=\"setClipboard(downloadURL)\">file_copy</i>\n </span>\n <span>\n <small class=\"px-2\" property=\"dcat:mediaType\">{{ $t('message.metadata.downloadUrl') }}</small>\n </span>\n <!-- <i class=\"material-icons help-icon ml-3\" data-toggle=\"tooltip\" data-placement=\"bottom\" :title=\"$t('message.datasetDetails.downloadURLTooltip')\">help_outline</i> -->\n </span>\n\n <distribution-download-as v-if=\"this.$env.content.datasetDetails.downloadAs.enable\" :distribution=\"distribution\" />\n </distribution-dropdown-download>\n</template>\n\n<script>\nimport DistributionDropdownDownload from \"../../../datasetDetails/distributions/distributionActions/DistributionDropdownDownload\";\nimport DistributionDownloadAs from \"../../../datasetDetails/distributions/distributionActions/DistributionDownloadAs\";\nimport AppLink from \"../../../widgets/AppLink\";\n\nexport default {\n name: \"DistributionDownload\",\n data() {\n return {\n showUrlCopiedPopup: false\n }\n },\n props: [\n \"getDownloadUrl\",\n \"showAccessUrls\",\n \"isOnlyOneUrl\",\n \"trackGoto\",\n \"replaceHttp\",\n \"getDistributionFormat\",\n \"distribution\"\n ],\n components: {\n DistributionDropdownDownload,\n DistributionDownloadAs,\n AppLink\n },\n methods: {\n setClipboard(value) {\n const input = document.createElement('INPUT');\n // input.style = \"position: absolute; left: -1000px; top: -1000px\";\n input.value = value;\n document.body.appendChild(input);\n input.select();\n document.execCommand('copy');\n document.body.removeChild(input);\n\n this.popupCopyUrlAlert()\n },\n popupCopyUrlAlert() {\n this.showUrlCopiedPopup = true\n setTimeout(function () {\n this.showUrlCopiedPopup = false\n }.bind(this), 3500)\n }\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n/*** MATERIAL ICONS ***/\n%modal-icon {\n font-size: 18px;\n cursor: default;\n}\n\n.dropdown-item {\n .access-uri-link,\n .copy-text {\n color: #0e47cb;\n }\n}\n\n.help-icon {\n @extend %modal-icon;\n}\n\n.copy-text {\n cursor: pointer;\n}\n\n.copy-url-popup {\n position: fixed !important;\n bottom: 10vh;\n left: 50vw;\n background-color: #F3F6FC;\n padding: .5rem 1.5rem;\n border-radius: .25rem;\n}\n\n.copy-url-popup.display {\n display: block;\n}\n\n.copy-url-popup.hide {\n display: none;\n}\n</style>\n"],"names":["_sfc_main","DistributionDropdownDownload","DistributionDownloadAs","AppLink","value","input","_createElementVNode","_hoisted_3","_hoisted_4","_withScopeId","_hoisted_6","_createBlock","_component_distribution_dropdown_download","$props","_ctx","_withCtx","_openBlock","_createElementBlock","_hoisted_1","_createVNode","_component_app_link","_b","_a","_hoisted_2","_createTextVNode","_cache","$event","$options","_d","_c","_toDisplayString","_createCommentVNode","_normalizeClass","$data","_Fragment","_renderList","downloadURL","i","_hoisted_5","_hoisted_7","_component_distribution_download_as"],"mappings":";;;;;;AAqEA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO;AACL,WAAO;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UA5DvH,KAAA;AAAA,UA4DyF,cAAc3B,EAAY;AAAA,yCA5DnHkB,EAAA,IAAA,EAAA;AAAA;;IAAA,GAAA;AAAA;;;"}
|
|
1
|
+
{"version":3,"file":"DistributionDownload.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionDownload.vue"],"sourcesContent":["<template>\n <distribution-dropdown-download :distribution=\"distribution\"\n :title=\"$t('message.tooltip.datasetDetails.distributions.download')\"\n :message=\"$t('message.datasetDetails.download')\"\n :isOnlyOneUrl=\"isOnlyOneUrl(distribution)\" :getDownloadUrl=\"getDownloadUrl\"\n @trackGoto=\"trackGoto\" bgLight=\"true\">\n\n <span class=\"dropdown-item px-3 d-flex align-items-center d-block\" v-if=\"showAccessUrls(distribution)\">\n <app-link class=\"text-decoration-none d-flex justify-content-between access-uri-link\"\n :to=\"replaceHttp(distribution.accessUrl[0])\" target=\"_blank\" rel=\"dcat:distribution noopener\"\n :matomo-track-download=\"{ format: distribution?.format?.id }\" @after-click=\"$emit('trackGoto')\">\n <span>\n <i class=\"material-icons align-bottom\">open_in_new</i>\n <!-- <i class=\" copy-text material-icons align-bottom\" @click=\"setClipboard(distribution.accessUrl[0])\">file_copy</i> copy -->\n </span>\n <!-- <span>\n <small class=\"px-2\" property=\"dcat:mediaType\" :content=\"getDistributionFormat\">Access URL</small>\n </span> -->\n </app-link>\n\n <span>\n <!-- <i class=\"material-icons align-bottom\">open_in_new</i> down -->\n <i class=\"copy-text material-icons align-bottom\" @click=\"setClipboard(distribution.accessUrl[0])\">file_copy</i>\n </span>\n\n <app-link class=\"text-decoration-none d-flex justify-content-between access-uri-link\"\n :to=\"replaceHttp(distribution.accessUrl[0])\" target=\"_blank\" rel=\"dcat:distribution noopener\"\n :matomo-track-download=\"{ format: distribution?.format?.id }\" @after-click=\"$emit('trackGoto')\">\n <span>\n <small class=\"px-2\" property=\"dcat:mediaType\" :content=\"getDistributionFormat\">{{\n $t('message.metadata.accessUrl')\n }}</small>\n </span>\n </app-link>\n <!-- <i class=\"material-icons help-icon ml-3\" data-toggle=\"tooltip\" data-placement=\"bottom\" :title=\"$t('message.datasetDetails.accessURLTooltip')\">help_outline</i> -->\n </span>\n\n <span :class=\"(showUrlCopiedPopup) ? 'display' : 'hide'\" class=\"copy-url-popup\">\n <i class=\"material-icons align-bottom\">done_all</i> URL copied\n </span>\n\n <span class=\"dropdown-item d-block px-3 d-flex align-items-center\"\n v-for=\"(downloadURL, i) in distribution.downloadUrls\" :key=\"i\">\n <app-link class=\"text-decoration-none d-flex justify-content-between\" :to=\"replaceHttp(downloadURL)\"\n target=\"_blank\"\n :matomo-track-download=\"{ format: distribution?.format?.id }\" @after-click=\"$emit('trackGoto')\">\n <span>\n <i class=\"open_in_new material-icons align-bottom\" >open_in_new</i>\n <!-- <i class=\" copy-text material-icons align-bottom\" @click=\"setClipboard(downloadURL)\">file_copy</i> -->\n </span>\n <!-- <span>\n <small class=\"px-2\" property=\"dcat:mediaType\">Download URL</small>\n </span> -->\n </app-link>\n <span>\n <!-- <i class=\"material-icons align-bottom\">open_in_new</i> -->\n <i class=\"copy-text material-icons align-bottom\" @click=\"setClipboard(downloadURL)\">file_copy</i>\n </span>\n <app-link class=\"text-decoration-none d-flex justify-content-between\" :to=\"replaceHttp(downloadURL)\"\n target=\"_blank\"\n :matomo-track-download=\"{ format: distribution?.format?.id }\" @after-click=\"$emit('trackGoto')\">\n <span>\n <small class=\"px-2\" property=\"dcat:mediaType\">{{ $t('message.metadata.downloadUrl') }}</small>\n </span>\n </app-link>\n <!-- <i class=\"material-icons help-icon ml-3\" data-toggle=\"tooltip\" data-placement=\"bottom\" :title=\"$t('message.datasetDetails.downloadURLTooltip')\">help_outline</i> -->\n </span>\n\n <distribution-download-as v-if=\"this.$env.content.datasetDetails.downloadAs.enable\" :distribution=\"distribution\"/>\n </distribution-dropdown-download>\n</template>\n\n<script>\nimport DistributionDropdownDownload\n from \"../../../datasetDetails/distributions/distributionActions/DistributionDropdownDownload\";\nimport DistributionDownloadAs from \"../../../datasetDetails/distributions/distributionActions/DistributionDownloadAs\";\nimport AppLink from \"../../../widgets/AppLink\";\n\nexport default {\n name: \"DistributionDownload\",\n data() {\n return {\n showUrlCopiedPopup: false\n }\n },\n props: [\n \"getDownloadUrl\",\n \"showAccessUrls\",\n \"isOnlyOneUrl\",\n \"trackGoto\",\n \"replaceHttp\",\n \"getDistributionFormat\",\n \"distribution\"\n ],\n components: {\n DistributionDropdownDownload,\n DistributionDownloadAs,\n AppLink\n },\n methods: {\n setClipboard(value) {\n const input = document.createElement('INPUT');\n // input.style = \"position: absolute; left: -1000px; top: -1000px\";\n input.value = value;\n document.body.appendChild(input);\n input.select();\n document.execCommand('copy');\n document.body.removeChild(input);\n\n this.popupCopyUrlAlert()\n },\n popupCopyUrlAlert() {\n this.showUrlCopiedPopup = true\n setTimeout(function () {\n this.showUrlCopiedPopup = false\n }.bind(this), 3500)\n }\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n/*** MATERIAL ICONS ***/\n%modal-icon {\n font-size: 18px;\n cursor: default;\n}\n\n.dropdown-item {\n .access-uri-link,\n .open_in_new {\n color: #0e47cb;\n }\n .copy-text {\n color: #0e47cb;\n }\n}\n\n.help-icon {\n @extend %modal-icon;\n}\n\n.copy-text {\n cursor: pointer;\n}\n\n.copy-url-popup {\n position: fixed !important;\n bottom: 10vh;\n left: 50vw;\n background-color: #F3F6FC;\n padding: .5rem 1.5rem;\n border-radius: .25rem;\n}\n\n.copy-url-popup.display {\n display: block;\n}\n\n.copy-url-popup.hide {\n display: none;\n}\n\n\n</style>\n"],"names":["_sfc_main","DistributionDropdownDownload","DistributionDownloadAs","AppLink","value","input","_createElementVNode","_hoisted_3","_hoisted_4","_withScopeId","_hoisted_6","_createBlock","_component_distribution_dropdown_download","$props","_ctx","_withCtx","_openBlock","_createElementBlock","_hoisted_1","_createVNode","_component_app_link","_b","_a","_hoisted_2","_createTextVNode","_cache","$event","$options","_d","_c","_toDisplayString","_createCommentVNode","_normalizeClass","$data","_Fragment","_renderList","downloadURL","i","_hoisted_5","_hoisted_7","_component_distribution_download_as"],"mappings":";;;;;;AA8EA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO;AACL,WAAO;AAAA,MACL,oBAAoB;AAAA,IACtB;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAAA,EACD,YAAY;AAAA,IACV,8BAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,SAAAC;AAAA,EACD;AAAA,EACD,SAAS;AAAA,IACP,aAAaC,GAAO;AAClB,YAAMC,IAAQ,SAAS,cAAc,OAAO;AAE5C,MAAAA,EAAM,QAAQD,GACd,SAAS,KAAK,YAAYC,CAAK,GAC/BA,EAAM,OAAM,GACZ,SAAS,YAAY,MAAM,GAC3B,SAAS,KAAK,YAAYA,CAAK,GAE/B,KAAK,kBAAkB;AAAA,IACxB;AAAA,IACD,oBAAoB;AAClB,WAAK,qBAAqB,IAC1B,YAAW,WAAY;AACrB,aAAK,qBAAqB;AAAA,MAC5B,GAAE,KAAK,IAAI,GAAG,IAAI;AAAA,IACpB;AAAA,EACF;AACF;EAtHA,KAAA;AAAA,EAOU,OAAM;+BAIRC,gBAAAA,EAGO,QAAA,MAAA;AAAA,EAFLA,gBAAAA,EAAsD,KAAnD,EAAA,OAAM,8BAA6B,GAAC,aAAW;SAZ5DC,IAAA,CAAA,SAAA,GAsCOC,IAAA,gBAAAC,EAAA,MAAAH,gBAAAA,EAAmD,KAAhD,EAAA,OAAM,iCAA8B,YAAQ,EAAA,CAAA,+BAQ9CA,gBAAAA,EAGO,QAAA,MAAA;AAAA,EAFLA,gBAAAA,EAAmE,KAAhE,EAAA,OAAM,0CAAyC,GAAE,aAAW;SA/CzEI,IAAA,CAAA,SAAA;EA8De,OAAM;AAAA,EAAO,UAAS;;;;cA7DnCC,EAoEiCC,GAAA;AAAA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AACuB,CAAW;AAAA,cACxF,QAAO;AAAA,cACN,yBAAiC,EAAA,SAAAR,KAAAC,IAAAhB,EAAA,iBAAA,gBAAAgB,EAAc,WAAd,gBAAAD,EAAsB,GAAE;AAAA,cAAK,qCAAad,EAAK,MAAA,WAAA;AAAA;cA5DlG,SAAAC,EA6DM,MAEO;AAAA,gBAFPT,EAEO,QAAA,MAAA;AAAA,kBADLA,EAA8F,SAA9FiC,GAA8FT,EAA7ChB,EAAE,GAAA,8BAAA,CAAA,GAAA,CAAA;AAAA;;cA9D3D,GAAA;AAAA;;;QAAAU,EAAA;AAAA,QAoEyC,KAAA,KAAK,QAAQ,eAAe,WAAW,eAA5Eb,EAAkH6B,GAAA;AAAA,UApEtH,KAAA;AAAA,UAoEyF,cAAc3B,EAAY;AAAA,yCApEnHkB,EAAA,IAAA,EAAA;AAAA;;IAAA,GAAA;AAAA;;;"}
|
|
@@ -6,10 +6,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
6
6
|
default: () => boolean;
|
|
7
7
|
};
|
|
8
8
|
}, any, any, {
|
|
9
|
+
getTitle: import('vuex').Computed;
|
|
9
10
|
getCatalog: import('vuex').Computed;
|
|
10
11
|
getLanguages: import('vuex').Computed;
|
|
11
12
|
getID: import('vuex').Computed;
|
|
12
|
-
getTitle: import('vuex').Computed;
|
|
13
13
|
}, {
|
|
14
14
|
getTranslationFor: typeof getTranslationFor;
|
|
15
15
|
isErpdActive(): boolean;
|
|
@@ -5,8 +5,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
7
7
|
}, any, any, {
|
|
8
|
-
getLanguages: import('vuex').Computed;
|
|
9
8
|
getTitle: import('vuex').Computed;
|
|
9
|
+
getLanguages: import('vuex').Computed;
|
|
10
10
|
}, {
|
|
11
11
|
getTranslationFor: typeof getTranslationFor;
|
|
12
12
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -18,10 +18,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
18
18
|
}, {
|
|
19
19
|
url(): string;
|
|
20
20
|
showDQV(): any;
|
|
21
|
+
getTitle: import('vuex').Computed;
|
|
21
22
|
getLoading: import('vuex').Computed;
|
|
22
23
|
getLanguages: import('vuex').Computed;
|
|
23
24
|
getID: import('vuex').Computed;
|
|
24
|
-
getTitle: import('vuex').Computed;
|
|
25
25
|
getIsDQVDataRDFAvailable: import('vuex').Computed;
|
|
26
26
|
getIsDQVDataTTLAvailable: import('vuex').Computed;
|
|
27
27
|
getIsDQVDataN3Available: import('vuex').Computed;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {}, {}, {
|
|
2
|
-
getLanguages: import('vuex').Computed;
|
|
3
2
|
getTitle: import('vuex').Computed;
|
|
3
|
+
getLanguages: import('vuex').Computed;
|
|
4
4
|
}, {
|
|
5
5
|
openUrl(): void;
|
|
6
6
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {}, {}, {
|
|
2
2
|
datasets: import('vuex').Computed;
|
|
3
|
-
getLanguages: import('vuex').Computed;
|
|
4
|
-
getDescription: import('vuex').Computed;
|
|
5
3
|
getTitle: import('vuex').Computed;
|
|
4
|
+
getDescription: import('vuex').Computed;
|
|
5
|
+
getLanguages: import('vuex').Computed;
|
|
6
6
|
}, {
|
|
7
7
|
openUrl(): void;
|
|
8
8
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|