@piveau/piveau-hub-ui-modules 4.6.40 → 4.6.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import T from "./DistributionDropdownDownload.vue.mjs";
2
- import H from "./DistributionDownloadAs.vue.mjs";
3
- import N from "../../../widgets/AppLink.vue.mjs";
4
- import { resolveComponent as m, openBlock as a, createBlock as D, withCtx as s, createElementBlock as u, createVNode as d, createElementVNode as e, createTextVNode as i, toDisplayString as x, createCommentVNode as v, normalizeClass as P, Fragment as j, renderList as V } from "vue";
1
+ import v from "./DistributionDropdownDownload.vue.mjs";
2
+ import A from "./DistributionDownloadAs.vue.mjs";
3
+ import O from "../../../widgets/AppLink.vue.mjs";
4
+ import { resolveComponent as a, openBlock as l, createBlock as f, withCtx as d, createElementBlock as r, createElementVNode as e, createTextVNode as i, createVNode as k, toDisplayString as y, createCommentVNode as g, normalizeClass as T, Fragment as G, renderList as N } from "vue";
5
5
  import "./DistributionDownload.vue2.mjs";
6
- import B from "../../../_virtual/_plugin-vue_export-helper.mjs";
7
- const E = {
6
+ import P from "../../../_virtual/_plugin-vue_export-helper.mjs";
7
+ const h = {
8
8
  name: "DistributionDownload",
9
9
  data() {
10
10
  return {
@@ -21,9 +21,9 @@ const E = {
21
21
  "distribution"
22
22
  ],
23
23
  components: {
24
- DistributionDropdownDownload: T,
25
- DistributionDownloadAs: H,
26
- AppLink: N
24
+ DistributionDropdownDownload: v,
25
+ DistributionDownloadAs: A,
26
+ AppLink: O
27
27
  },
28
28
  methods: {
29
29
  setClipboard(n) {
@@ -36,16 +36,16 @@ const E = {
36
36
  }).bind(this), 3500);
37
37
  }
38
38
  }
39
- }, F = {
39
+ }, V = {
40
40
  key: 0,
41
41
  class: "dropdown-item px-3 d-flex align-items-center d-block"
42
- }, I = ["content"], L = ["onClick"], z = {
42
+ }, B = ["content"], E = ["onClick"], F = {
43
43
  class: "px-2",
44
44
  property: "dcat:mediaType"
45
45
  };
46
- function S(n, t, o, q, A, p) {
47
- const r = m("app-link"), _ = m("distribution-download-as"), G = m("distribution-dropdown-download");
48
- return a(), D(G, {
46
+ function H(n, t, o, L, U, m) {
47
+ const u = a("app-link"), C = a("distribution-download-as"), D = a("distribution-dropdown-download");
48
+ return l(), f(D, {
49
49
  distribution: o.distribution,
50
50
  title: n.$t("message.tooltip.datasetDetails.distributions.download"),
51
51
  message: n.$t("message.datasetDetails.download"),
@@ -54,118 +54,87 @@ function S(n, t, o, q, A, p) {
54
54
  onTrackGoto: o.trackGoto,
55
55
  bgLight: "true"
56
56
  }, {
57
- default: s(() => {
58
- var c, b, f, w;
57
+ default: d(() => {
58
+ var c, p;
59
59
  return [
60
- o.showAccessUrls(o.distribution) ? (a(), u("span", F, [
61
- d(r, {
62
- class: "text-decoration-none d-flex justify-content-between access-uri-link",
63
- to: o.replaceHttp(o.distribution.accessUrl[0]),
64
- target: "_blank",
65
- rel: "dcat:distribution noopener",
66
- "matomo-track-download": { format: (b = (c = o.distribution) == null ? void 0 : c.format) == null ? void 0 : b.id },
67
- onAfterClick: t[0] || (t[0] = (l) => n.$emit("trackGoto"))
68
- }, {
69
- default: s(() => t[5] || (t[5] = [
70
- e("span", null, [
71
- e("i", { class: "material-icons align-bottom" }, "open_in_new")
72
- ], -1)
73
- ])),
74
- _: 1
75
- }, 8, ["to", "matomo-track-download"]),
76
- t[6] || (t[6] = i()),
60
+ o.showAccessUrls(o.distribution) ? (l(), r("span", V, [
77
61
  e("span", null, [
78
62
  e("i", {
79
63
  class: "copy-text material-icons align-bottom",
80
- onClick: t[1] || (t[1] = (l) => p.setClipboard(o.distribution.accessUrl[0]))
64
+ onClick: t[0] || (t[0] = (s) => m.setClipboard(o.distribution.accessUrl[0]))
81
65
  }, "file_copy")
82
66
  ]),
83
- t[7] || (t[7] = i()),
84
- d(r, {
67
+ t[3] || (t[3] = i()),
68
+ k(u, {
85
69
  class: "text-decoration-none d-flex justify-content-between access-uri-link",
86
70
  to: o.replaceHttp(o.distribution.accessUrl[0]),
87
71
  target: "_blank",
88
72
  rel: "dcat:distribution noopener",
89
- "matomo-track-download": { format: (w = (f = o.distribution) == null ? void 0 : f.format) == null ? void 0 : w.id },
90
- onAfterClick: t[2] || (t[2] = (l) => n.$emit("trackGoto"))
73
+ "matomo-track-download": { format: (p = (c = o.distribution) == null ? void 0 : c.format) == null ? void 0 : p.id },
74
+ onAfterClick: t[1] || (t[1] = (s) => n.$emit("trackGoto"))
91
75
  }, {
92
- default: s(() => [
76
+ default: d(() => [
93
77
  e("span", null, [
94
78
  e("small", {
95
79
  class: "px-2",
96
80
  property: "dcat:mediaType",
97
81
  content: o.getDistributionFormat
98
- }, x(n.$t("message.metadata.accessUrl")), 9, I)
82
+ }, y(n.$t("message.metadata.accessUrl")), 9, B)
99
83
  ])
100
84
  ]),
101
85
  _: 1
102
86
  }, 8, ["to", "matomo-track-download"])
103
- ])) : v("", !0),
104
- t[12] || (t[12] = i()),
87
+ ])) : g("", !0),
88
+ t[6] || (t[6] = i()),
105
89
  e("span", {
106
- class: P([A.showUrlCopiedPopup ? "display" : "hide", "copy-url-popup"])
107
- }, t[8] || (t[8] = [
90
+ class: T([U.showUrlCopiedPopup ? "display" : "hide", "copy-url-popup"])
91
+ }, t[4] || (t[4] = [
108
92
  e("i", { class: "material-icons align-bottom" }, "done_all", -1),
109
93
  i(` URL copied
110
94
  `)
111
95
  ]), 2),
112
- t[13] || (t[13] = i()),
113
- (a(!0), u(j, null, V(o.distribution.downloadUrls, (l, O) => {
114
- var k, g, y, C;
115
- return a(), u("span", {
96
+ t[7] || (t[7] = i()),
97
+ (l(!0), r(G, null, N(o.distribution.downloadUrls, (s, _) => {
98
+ var b, w;
99
+ return l(), r("span", {
116
100
  class: "dropdown-item d-block px-3 d-flex align-items-center",
117
- key: O
101
+ key: _
118
102
  }, [
119
- d(r, {
120
- class: "text-decoration-none d-flex justify-content-between",
121
- to: o.replaceHttp(l),
122
- target: "_blank",
123
- "matomo-track-download": { format: (g = (k = o.distribution) == null ? void 0 : k.format) == null ? void 0 : g.id },
124
- onAfterClick: t[3] || (t[3] = (U) => n.$emit("trackGoto"))
125
- }, {
126
- default: s(() => t[9] || (t[9] = [
127
- e("span", null, [
128
- e("i", { class: "open_in_new material-icons align-bottom" }, "open_in_new")
129
- ], -1)
130
- ])),
131
- _: 2
132
- }, 1032, ["to", "matomo-track-download"]),
133
- t[10] || (t[10] = i()),
134
103
  e("span", null, [
135
104
  e("i", {
136
105
  class: "copy-text material-icons align-bottom",
137
- onClick: (U) => p.setClipboard(l)
138
- }, "file_copy", 8, L)
106
+ onClick: (x) => m.setClipboard(s)
107
+ }, "file_copy", 8, E)
139
108
  ]),
140
- t[11] || (t[11] = i()),
141
- d(r, {
109
+ t[5] || (t[5] = i()),
110
+ k(u, {
142
111
  class: "text-decoration-none d-flex justify-content-between",
143
- to: o.replaceHttp(l),
112
+ to: o.replaceHttp(s),
144
113
  target: "_blank",
145
- "matomo-track-download": { format: (C = (y = o.distribution) == null ? void 0 : y.format) == null ? void 0 : C.id },
146
- onAfterClick: t[4] || (t[4] = (U) => n.$emit("trackGoto"))
114
+ "matomo-track-download": { format: (w = (b = o.distribution) == null ? void 0 : b.format) == null ? void 0 : w.id },
115
+ onAfterClick: t[2] || (t[2] = (x) => n.$emit("trackGoto"))
147
116
  }, {
148
- default: s(() => [
117
+ default: d(() => [
149
118
  e("span", null, [
150
- e("small", z, x(n.$t("message.metadata.downloadUrl")), 1)
119
+ e("small", F, y(n.$t("message.metadata.downloadUrl")), 1)
151
120
  ])
152
121
  ]),
153
122
  _: 2
154
123
  }, 1032, ["to", "matomo-track-download"])
155
124
  ]);
156
125
  }), 128)),
157
- t[14] || (t[14] = i()),
158
- this.$env.content.datasetDetails.downloadAs.enable ? (a(), D(_, {
126
+ t[8] || (t[8] = i()),
127
+ this.$env.content.datasetDetails.downloadAs.enable ? (l(), f(C, {
159
128
  key: 1,
160
129
  distribution: o.distribution
161
- }, null, 8, ["distribution"])) : v("", !0)
130
+ }, null, 8, ["distribution"])) : g("", !0)
162
131
  ];
163
132
  }),
164
133
  _: 1
165
134
  }, 8, ["distribution", "title", "message", "isOnlyOneUrl", "getDownloadUrl", "onTrackGoto"]);
166
135
  }
167
- const Y = /* @__PURE__ */ B(E, [["render", S], ["__scopeId", "data-v-f47a6ab5"]]);
136
+ const K = /* @__PURE__ */ P(h, [["render", H], ["__scopeId", "data-v-4ef3cedf"]]);
168
137
  export {
169
- Y as default
138
+ K as default
170
139
  };
171
140
  //# sourceMappingURL=DistributionDownload.vue.mjs.map
@@ -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')\"\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","_hoisted_2","_hoisted_3","_createBlock","_component_distribution_dropdown_download","$props","_ctx","_withCtx","_openBlock","_createElementBlock","_hoisted_1","_createVNode","_component_app_link","_b","_a","_cache","_createElementVNode","_createTextVNode","$event","$options","_d","_c","_toDisplayString","_createCommentVNode","_normalizeClass","$data","_Fragment","_renderList","downloadURL","i","_hoisted_4","_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;GAPhBC,IAAA,CAAA,SAAA,GAAAC,IAAA,CAAA,SAAA;EA8De,OAAM;AAAA,EAAO,UAAS;;;;cA7DnCC,EAoEiCC,GAAA;AAAA,IApEA,cAAcC,EAAY;AAAA,IAC1B,OAAOC,EAAE,GAAA,uDAAA;AAAA,IACT,SAASA,EAAE,GAAA,iCA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AmE,KAAhE,EAAA,OAAM,0CAAyC,GAAE,aAAW;AAAA;;cA/CzE,GAAA;AAAA;YAAAD,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAE,EAAA;AAAA,YAsDMD,EAGO,QAAA,MAAA;AAAA,cADLA,EAAiG,KAAA;AAAA,gBAA9F,OAAM;AAAA,gBAAyC,SAAK,CAAAE,MAAEC,EAAY,aAACS,CAAW;AAAA,cAAG,GAAA,aAxD5F,GAAA1B,CAAA;AAAA;YAAAa,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAE,EAAA;AAAA,YA0DON,EAMcC,GAAA;AAAA,cANJ,OAAM;AAAA,cAAuD,IAAIP,EAAW,YAACuB,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,gBAFPS,EAEO,QAAA,MAAA;AAAA,kBADLA,EAA8F,SAA9Fc,GAA8FR,EAA7ChB,EAAE,GAAA,8BAAA,CAAA,GAAA,CAAA;AAAA;;cA9D3D,GAAA;AAAA;;;QAAAS,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAE,EAAA;AAAA,QAoEyC,KAAA,KAAK,QAAQ,eAAe,WAAW,eAA5Ed,EAAkH4B,GAAA;AAAA,UApEtH,KAAA;AAAA,UAoEyF,cAAc1B,EAAY;AAAA,yCApEnHkB,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 <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\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","_hoisted_2","_hoisted_3","_createBlock","_component_distribution_dropdown_download","$props","_ctx","_withCtx","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_cache","$event","$options","_createTextVNode","_createVNode","_component_app_link","_b","_a","_toDisplayString","_createCommentVNode","_normalizeClass","$data","_Fragment","_renderList","downloadURL","i","_hoisted_4","_component_distribution_download_as"],"mappings":";;;;;;AAwDA,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;EAhGA,KAAA;AAAA,EAOU,OAAM;GAPhBC,IAAA,CAAA,SAAA,GAAAC,IAAA,CAAA,SAAA;EAwCe,OAAM;AAAA,EAAO,UAAS;;;;cAvCnCC,EA8CiCC,GAAA;AAAA,IA9CA,cAAcC,EAAY;AAAA,IAC1B,OAAOC,EAAE,GAAA,uDAAA;AAAA,IACT,SAASA,EAAE,GAAA,iCAAA;AAAA,IACX,cAAcD,EAAY,aAACA,EAAY,YAAA;AAA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 as default
3
+ e as default
4
4
  };
5
5
  //# sourceMappingURL=DistributionDownload.vue2.mjs.map
@@ -2,7 +2,7 @@ import m from "jquery";
2
2
  import { mixin as c } from "vue3-click-away";
3
3
  import { replaceHttp as u } from "../../../utils/helpers.mjs";
4
4
  import b from "../../../widgets/AppLink.vue.mjs";
5
- import { resolveDirective as w, openBlock as r, createElementBlock as d, createElementVNode as i, toDisplayString as f, createTextVNode as a, withDirectives as g, normalizeClass as y, renderSlot as D, createCommentVNode as v } from "vue";
5
+ import { resolveDirective as f, openBlock as r, createElementBlock as a, createElementVNode as i, toDisplayString as w, createTextVNode as d, withDirectives as g, normalizeClass as y, renderSlot as D, createCommentVNode as v } from "vue";
6
6
  import "./DistributionDropdownDownload.vue2.mjs";
7
7
  import _ from "../../../_virtual/_plugin-vue_export-helper.mjs";
8
8
  const k = {
@@ -36,8 +36,8 @@ const k = {
36
36
  }
37
37
  }, x = { class: "position-relative d-inline-block ml-1 mb-1" }, C = ["title"];
38
38
  function h(o, t, e, N, l, n) {
39
- const s = w("click-away");
40
- return r(), d("div", x, [
39
+ const s = f("click-away");
40
+ return r(), a("div", x, [
41
41
  i("button", {
42
42
  onClick: t[0] || (t[0] = (...p) => n.openDropdown && n.openDropdown(...p)),
43
43
  class: "distribution-download dsd-action-button btn btn-sm btn-primary p-0 pl-2 w-100 rounded-lg btn-color dropdown-button d-flex justify-content-between",
@@ -49,12 +49,12 @@ function h(o, t, e, N, l, n) {
49
49
  "data-toggle": "tooltip",
50
50
  title: e.title,
51
51
  "data-placement": "top"
52
- }, f(e.message), 9, C),
53
- t[1] || (t[1] = a()),
52
+ }, w(e.message), 9, C),
53
+ t[1] || (t[1] = d()),
54
54
  t[2] || (t[2] = i("i", { class: "material-icons small-icon float-right align-bottom" }, "keyboard_arrow_down", -1))
55
55
  ]),
56
- t[3] || (t[3] = a()),
57
- l.open ? g((r(), d("div", {
56
+ t[3] || (t[3] = d()),
57
+ l.open ? g((r(), a("div", {
58
58
  key: 0,
59
59
  class: y(["dropdownMenu", { bglight: e.bgLight }])
60
60
  }, [
@@ -64,7 +64,7 @@ function h(o, t, e, N, l, n) {
64
64
  ]) : v("", !0)
65
65
  ]);
66
66
  }
67
- const O = /* @__PURE__ */ _(k, [["render", h], ["__scopeId", "data-v-35ed682d"]]);
67
+ const O = /* @__PURE__ */ _(k, [["render", h], ["__scopeId", "data-v-8780f721"]]);
68
68
  export {
69
69
  O as default
70
70
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DistributionDropdownDownload.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionDropdownDownload.vue"],"sourcesContent":["<template>\n <div class=\"position-relative d-inline-block ml-1 mb-1\">\n <button @click=\"openDropdown\" class=\"distribution-download dsd-action-button btn btn-sm btn-primary p-0 pl-2 w-100 rounded-lg btn-color dropdown-button d-flex justify-content-between\"\n type=\"button\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\">\n <span data-toggle=\"tooltip\"\n :title=\"title\"\n data-placement=\"top\">\n {{ message }}\n </span>\n <i class=\"material-icons small-icon float-right align-bottom\">keyboard_arrow_down</i>\n </button>\n <div v-if=\"open\" v-click-away=\"away\" class=\"dropdownMenu\" :class=\"{ bglight: bgLight }\">\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script>\n/* eslint-disable */\nimport $ from 'jquery';\nimport { mixin as clickaway } from 'vue3-click-away';\nimport { replaceHttp } from '../../../utils/helpers';\nimport AppLink from \"../../../widgets/AppLink\";\n\nexport default {\n mixins: [clickaway],\n name: 'DistributionDropdownDownload',\n props: ['distribution', 'title', 'message', 'bgLight', 'isOnlyOneUrl', 'getDownloadUrl'],\n components: {\n AppLink,\n },\n methods: {\n openDropdown() {\n this.open = true;\n setTimeout(() => {\n $('[data-toggle=\"tooltip\"]').tooltip({\n container: 'body',\n });\n }, 500);\n },\n away() {\n this.open = false;\n },\n replaceHttp,\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 },\n data() {\n return {\n open: false,\n };\n },\n};\n</script>\n<style lang=\"scss\" scoped>\n .material-icons.small-icon {\n font-size: 20px;\n }\n .dropdownMenu {\n z-index: 1000;\n max-width: 15rem;\n padding: 0.5rem 0;\n margin: 0.125rem 0;\n font-size: 1rem;\n color: #212529;\n text-align: left;\n list-style: none;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0,0,0,.15);\n transform-origin: top right;\n position: absolute;\n right: 0;\n }\n button:hover {\n background-color: #196fd2;\n border-color: #196fd2;\n }\n .bglight {\n background:#f8f9fa;\n }\n</style>\n"],"names":["_sfc_main","clickaway","AppLink","$","replaceHttp","value","input","_hoisted_1","_hoisted_2","_openBlock","_createElementBlock","_createElementVNode","$options","args","$props","_toDisplayString","_cache","_createTextVNode","$data","_normalizeClass","_renderSlot","_ctx","_createCommentVNode"],"mappings":";;;;;;;AA0BA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAS;AAAA,EAClB,MAAM;AAAA,EACN,OAAO,CAAC,gBAAgB,SAAS,WAAW,WAAW,gBAAgB,gBAAgB;AAAA,EACvF,YAAY;AAAA,IACV,SAAAC;AAAA,EACD;AAAA,EACD,SAAS;AAAA,IACP,eAAe;AACb,WAAK,OAAO,IACZ,WAAW,MAAM;AACf,QAAAC,EAAE,yBAAyB,EAAE,QAAQ;AAAA,UACnC,WAAW;AAAA,QACb,CAAC;AAAA,MACF,GAAE,GAAG;AAAA,IACP;AAAA,IACD,OAAO;AACL,WAAK,OAAO;AAAA,IACb;AAAA,IACD,aAAAC;AAAA,IACA,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;AAAA,IAChC;AAAA,EACF;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,MAAM;AAAA;EAET;AACH,GA5DOC,IAAA,EAAA,OAAM,6CAA4C,GADzDC,IAAA,CAAA,OAAA;;;AACE,SAAAC,EAAA,GAAAC,EAeM,OAfNH,GAeM;AAAA,IAdJI,EAUS,UAAA;AAAA,MAVA,mCAAOC,EAAY,gBAAAA,EAAA,aAAA,GAAAC,CAAA;AAAA,MAAE,OAAM;AAAA,MAClC,MAAK;AAAA,MACL,iBAAc;AAAA,MACd,iBAAc;AAAA;MACdF,EAIO,QAAA;AAAA,QAJD,eAAY;AAAA,QACf,OAAOG,EAAK;AAAA,QACb,kBAAe;AAAA,MACd,GAAAC,EAAAD,EAAA,OAAO,GAThB,GAAAN,CAAA;AAAA,MAAAQ,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MAWMD,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAL,EAAqF,KAAlF,EAAA,OAAM,qDAAoD,GAAC,uBAAmB,EAAA;AAAA;IAXvFK,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IAaeC,EAAI,eAAfR,EAEM,OAAA;AAAA,MAfV,KAAA;AAAA,MAayC,OAbzCS,EAAA,CAa+C,gBAAc,EAAA,SAAoBL,EAAO,QAAA,CAAA,CAAA;AAAA;MAClFM,EAAaC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA;UADgBT,EAAI,IAAA;AAAA,SAbvCU,EAAA,IAAA,EAAA;AAAA;;;"}
1
+ {"version":3,"file":"DistributionDropdownDownload.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionDropdownDownload.vue"],"sourcesContent":["<template>\n <div class=\"position-relative d-inline-block ml-1 mb-1\">\n <button @click=\"openDropdown\" class=\"distribution-download dsd-action-button btn btn-sm btn-primary p-0 pl-2 w-100 rounded-lg btn-color dropdown-button d-flex justify-content-between\"\n type=\"button\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\">\n <span data-toggle=\"tooltip\"\n :title=\"title\"\n data-placement=\"top\">\n {{ message }}\n </span>\n <i class=\"material-icons small-icon float-right align-bottom\">keyboard_arrow_down</i>\n </button>\n\n <div v-if=\"open\" v-click-away=\"away\" class=\"dropdownMenu\" :class=\"{ bglight: bgLight }\">\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script>\n/* eslint-disable */\nimport $ from 'jquery';\nimport { mixin as clickaway } from 'vue3-click-away';\nimport { replaceHttp } from '../../../utils/helpers';\nimport AppLink from \"../../../widgets/AppLink\";\n\nexport default {\n mixins: [clickaway],\n name: 'DistributionDropdownDownload',\n props: ['distribution', 'title', 'message', 'bgLight', 'isOnlyOneUrl', 'getDownloadUrl'],\n components: {\n AppLink,\n },\n methods: {\n openDropdown() {\n this.open = true;\n setTimeout(() => {\n $('[data-toggle=\"tooltip\"]').tooltip({\n container: 'body',\n });\n }, 500);\n },\n away() {\n this.open = false;\n },\n replaceHttp,\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 },\n data() {\n return {\n open: false,\n };\n },\n};\n</script>\n<style lang=\"scss\" scoped>\n .material-icons.small-icon {\n font-size: 20px;\n }\n .dropdownMenu {\n z-index: 1000;\n max-width: 15rem;\n padding: 0.5rem 0;\n margin: 0.125rem 0;\n font-size: 1rem;\n color: #212529;\n text-align: left;\n list-style: none;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0,0,0,.15);\n transform-origin: top right;\n position: absolute;\n right: 0;\n }\n button:hover {\n background-color: #196fd2;\n border-color: #196fd2;\n }\n .bglight {\n background:#f8f9fa;\n }\n</style>\n"],"names":["_sfc_main","clickaway","AppLink","$","replaceHttp","value","input","_hoisted_1","_hoisted_2","_openBlock","_createElementBlock","_createElementVNode","$options","args","$props","_toDisplayString","_cache","_createTextVNode","$data","_normalizeClass","_renderSlot","_ctx","_createCommentVNode"],"mappings":";;;;;;;AA2BA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAS;AAAA,EAClB,MAAM;AAAA,EACN,OAAO,CAAC,gBAAgB,SAAS,WAAW,WAAW,gBAAgB,gBAAgB;AAAA,EACvF,YAAY;AAAA,IACX,SAAAC;AAAA,EACA;AAAA,EACD,SAAS;AAAA,IACP,eAAe;AACb,WAAK,OAAO,IACZ,WAAW,MAAM;AACf,QAAAC,EAAE,yBAAyB,EAAE,QAAQ;AAAA,UACnC,WAAW;AAAA,QACb,CAAC;AAAA,MACF,GAAE,GAAG;AAAA,IACP;AAAA,IACD,OAAO;AACL,WAAK,OAAO;AAAA,IACb;AAAA,IACD,aAAAC;AAAA,IACA,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;AAAA,IAChC;AAAA,EACF;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,MAAM;AAAA;EAET;AACH,GA7DOC,IAAA,EAAA,OAAM,6CAA4C,GADzDC,IAAA,CAAA,OAAA;;;AACE,SAAAC,EAAA,GAAAC,EAgBM,OAhBNH,GAgBM;AAAA,IAfJI,EAUS,UAAA;AAAA,MAVA,mCAAOC,EAAY,gBAAAA,EAAA,aAAA,GAAAC,CAAA;AAAA,MAAE,OAAM;AAAA,MAClC,MAAK;AAAA,MACL,iBAAc;AAAA,MACd,iBAAc;AAAA;MACdF,EAIO,QAAA;AAAA,QAJD,eAAY;AAAA,QACf,OAAOG,EAAK;AAAA,QACb,kBAAe;AAAA,MACd,GAAAC,EAAAD,EAAA,OAAO,GAThB,GAAAN,CAAA;AAAA,MAAAQ,EAAA,CAAA,MAAAA,EAAA,CA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