@piveau/piveau-hub-ui-modules 4.4.9 → 4.4.11
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/data-provider-interface/components/AutocompleteInput.vue.mjs +67 -77
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +109 -91
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/Distribution.vue.mjs +31 -29
- package/dist/datasetDetails/distributions/Distribution.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/Distributions.vue.d.ts +6 -2
- package/dist/datasetDetails/distributions/Distributions.vue.mjs +44 -37
- package/dist/datasetDetails/distributions/Distributions.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.d.ts +3 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs +35 -24
- package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue2.mjs +2 -2
- package/dist/datasetDetails/distributions/distributionPreview/DistributionVisualisationSlot.vue.d.ts +9 -1
- package/dist/datasetDetails/distributions/distributionPreview/DistributionVisualisationSlot.vue.mjs +21 -8
- package/dist/datasetDetails/distributions/distributionPreview/DistributionVisualisationSlot.vue.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as v, watchEffect as E, resolveComponent as S, openBlock as n, createElementBlock as a, toDisplayString as m, createTextVNode as
|
|
1
|
+
import { ref as v, watchEffect as E, resolveComponent as S, openBlock as n, createElementBlock as a, toDisplayString as m, createTextVNode as s, unref as l, createStaticVNode as I, createCommentVNode as u, createElementVNode as r, withDirectives as V, isRef as L, vModelText as M, Fragment as g, renderList as x, createVNode as b, createBlock as U } from "vue";
|
|
2
2
|
import A from "./AutocompleteInput.vue.mjs";
|
|
3
3
|
import { onClickOutside as B } from "../../external/@vueuse/core/index";
|
|
4
|
-
import { useRuntimeEnv as
|
|
5
|
-
import { useI18n as
|
|
4
|
+
import { useRuntimeEnv as H } from "../../composables/useRuntimeEnv.mjs";
|
|
5
|
+
import { useI18n as N } from "vue-i18n";
|
|
6
6
|
import "./ConditionalInput.vue2.mjs";
|
|
7
|
-
const
|
|
7
|
+
const P = { class: "formkitProperty" }, F = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "formkitHeader"
|
|
10
10
|
}, R = {
|
|
@@ -22,47 +22,58 @@ const F = { class: "formkitProperty" }, H = {
|
|
|
22
22
|
}, z = { class: "m-3" }, K = { class: "conditionalSelectDiv" }, W = ["placeholder"], Y = { key: 0 }, q = { class: "selectListConditional" }, G = ["onClick"], J = { class: "conditionalManual" }, Q = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "d-flex"
|
|
25
|
-
}, Z = { key: 0 },
|
|
25
|
+
}, Z = { key: 0 }, tt = {
|
|
26
26
|
key: 5,
|
|
27
27
|
class: "formkitCmpWrap simpleConditional"
|
|
28
|
-
},
|
|
28
|
+
}, et = { class: "m-3" }, ot = { class: "conditionalSelectDiv" }, nt = ["placeholder"], at = { key: 0 }, it = { class: "selectListConditional" }, st = ["onClick"], lt = ["innerHTML"], rt = { class: "conditionalManual" }, dt = {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "d-flex"
|
|
31
|
-
},
|
|
31
|
+
}, ut = {
|
|
32
32
|
key: 0,
|
|
33
33
|
class: ""
|
|
34
|
-
},
|
|
34
|
+
}, ct = {
|
|
35
35
|
key: 1,
|
|
36
36
|
class: "conditionalVocabulary d-flex"
|
|
37
|
-
},
|
|
37
|
+
}, pt = { class: "autocompleteInputSingleValue" }, mt = ["innerHTML"], bt = {
|
|
38
38
|
__name: "ConditionalInput",
|
|
39
39
|
props: {
|
|
40
40
|
context: Object
|
|
41
41
|
},
|
|
42
|
-
setup(
|
|
43
|
-
let k =
|
|
44
|
-
const
|
|
45
|
-
let
|
|
42
|
+
setup(T) {
|
|
43
|
+
let k = H();
|
|
44
|
+
const e = T, { t: C } = N();
|
|
45
|
+
let d = v(), c = v(!1), p = v(!1);
|
|
46
46
|
E(() => {
|
|
47
|
-
|
|
47
|
+
e.context.value.name && (d.value = C("message.dataupload.datasets.conditional.vocabulary")), e.context.value["foaf:name"] && (d.value = C("message.dataupload.datasets.conditional.manually"));
|
|
48
48
|
});
|
|
49
|
-
const h = v(null), w = (
|
|
49
|
+
const h = v(null), w = (i) => {
|
|
50
50
|
p.value = !p.value;
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
}, _ = (
|
|
54
|
-
|
|
51
|
+
}, $ = () => {
|
|
52
|
+
e.context.node.reset();
|
|
53
|
+
}, _ = (i, t) => {
|
|
54
|
+
d.value = t, c.value = i, e.context.node.reset(), e.context.value = "";
|
|
55
55
|
};
|
|
56
|
-
return B(h, (
|
|
57
|
-
const
|
|
58
|
-
return n(), a("div",
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
I(
|
|
56
|
+
return B(h, (i) => p.value = !1), (i, t) => {
|
|
57
|
+
const y = S("FormKit");
|
|
58
|
+
return n(), a("div", P, [
|
|
59
|
+
e.context.attrs.class != null && e.context.attrs.class.includes("inDistribution") ? (n(), a("h4", F, m(i.$t("message.dataupload.distributions." + e.context.attrs.identifier + ".label")), 1)) : (n(), a("h4", R, m(i.$t("message.dataupload.datasets." + e.context.attrs.identifier + ".label")), 1)),
|
|
60
|
+
t[18] || (t[18] = s()),
|
|
61
|
+
e.context.attrs.identifier === "licence" && l(k).content.dataProviderInterface.annifIntegration ? (n(), a("div", j, t[6] || (t[6] = [
|
|
62
|
+
I(`<svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" fill="currentColor" class="bi bi-info-circle mx-3 mb-3 mt-1 infoboxI" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"></path> <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"></path></svg> <div class="w-80"><p>For <strong>European</strong> <strong>Commission's datasets</strong>, bear in mind
|
|
63
|
+
that <a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833]" target="_blank" rel="nofollow noopener"><ins>Decision 2011/833/EU</ins></a> allows for their commercial
|
|
64
|
+
reuse without
|
|
65
|
+
prior authorisation, except for the material subject to the third party intellectual property rights. This
|
|
66
|
+
Decision has been implemented under the <a href="https://ec.europa.eu/transparency/documents-register/detail?ref=C(2019)1655&lang=en]" target="_blank" rel="nofollow noopener"><ins>Decision C(2019) 1655 final</ins></a> by which Creative
|
|
67
|
+
Commons
|
|
68
|
+
Attribution 4.0 International Public License (CC BY 4.0) is adopted as an open licence for the Commission's
|
|
69
|
+
reuse policy. Additionally, raw data, metadata or other documents of comparable nature may alternatively be
|
|
70
|
+
distributed under the provisions of the Creative Commons Universal Public Domain Dedication deed (CC0
|
|
71
|
+
1.0).</p> <p>The <strong>Council</strong> and the <strong>European Court of Auditors</strong> have
|
|
72
|
+
approved similar decisions on reuse. It is advisable that you check <strong>the reuse policy of your
|
|
73
|
+
organisation</strong> before publishing or submitting your dataset.</p> <p>If you need further information regarding copyright issues, please contact us at <a href="mailto:op-copyright@publications.europa.eu" target="_blank" rel="nofollow noopener">op-copyright@publications.europa.eu</a></p></div>`, 3)
|
|
63
74
|
]))) : u("", !0),
|
|
64
|
-
|
|
65
|
-
|
|
75
|
+
t[19] || (t[19] = s()),
|
|
76
|
+
e.context.attrs.identifier === "rights" && l(k).content.dataProviderInterface.annifIntegration ? (n(), a("div", O, t[7] || (t[7] = [
|
|
66
77
|
I(`<svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" fill="currentColor" class="bi bi-info-circle mx-3 mb-3 mt-1 infoboxI" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"></path> <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"></path></svg> <p class="textInfoI">As owner of your dataset, you guarantee that it does not violate the copyright, other
|
|
67
78
|
intellectual property or
|
|
68
79
|
privacy rights of any third party. In particular, if third party material is included in the dataset, you must
|
|
@@ -71,115 +82,122 @@ const F = { class: "formkitProperty" }, H = {
|
|
|
71
82
|
If you need further information regarding copyright issues, please contact us at
|
|
72
83
|
<a href="mailto:op-copyright@publications.europa.eu">op-copyright@publications.europa.eu</a></p>`, 3)
|
|
73
84
|
]))) : u("", !0),
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
V(
|
|
85
|
+
t[20] || (t[20] = s()),
|
|
86
|
+
e.context.attrs.identifier === "rights" ? (n(), a("div", X, [
|
|
87
|
+
r("div", z, [
|
|
88
|
+
r("div", K, [
|
|
89
|
+
V(r("input", {
|
|
79
90
|
ref_key: "I1",
|
|
80
91
|
ref: h,
|
|
81
92
|
type: "text",
|
|
82
93
|
class: "conditionalSelect formkit-input formkit-inner",
|
|
83
|
-
onClick:
|
|
84
|
-
placeholder:
|
|
85
|
-
"onUpdate:modelValue":
|
|
94
|
+
onClick: t[0] || (t[0] = (o) => w()),
|
|
95
|
+
placeholder: e.context.attrs.placeholder,
|
|
96
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => L(d) ? d.value = o : d = o)
|
|
86
97
|
}, null, 8, W), [
|
|
87
|
-
[
|
|
98
|
+
[M, l(d)]
|
|
88
99
|
]),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
(n(!0), a(
|
|
100
|
+
t[8] || (t[8] = s()),
|
|
101
|
+
l(p) ? (n(), a("div", Y, [
|
|
102
|
+
r("ul", q, [
|
|
103
|
+
(n(!0), a(g, null, x(e.context.attrs.selection, (o, f) => (n(), a("li", {
|
|
93
104
|
class: "p-2 border-b border-gray-200",
|
|
94
|
-
onClick: (
|
|
95
|
-
}, m(
|
|
105
|
+
onClick: (D) => _(o, i.$t("message.dataupload.datasets.conditional." + o))
|
|
106
|
+
}, m(i.$t("message.dataupload.datasets.conditional." + o)), 9, G))), 256))
|
|
96
107
|
])
|
|
97
108
|
])) : u("", !0)
|
|
98
109
|
]),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
b(
|
|
110
|
+
t[9] || (t[9] = s()),
|
|
111
|
+
r("div", J, [
|
|
112
|
+
l(c) === "URL" || e.context.node.value["@type"] === "url" ? (n(), a("div", Q, [
|
|
113
|
+
b(y, {
|
|
103
114
|
type: "url",
|
|
104
|
-
placeholder:
|
|
115
|
+
placeholder: i.$t("message.dataupload.datasets.conditional.URL"),
|
|
105
116
|
name: "rdfs:label",
|
|
106
117
|
validation: "url",
|
|
107
118
|
class: "w-100",
|
|
108
119
|
identifier: "rightsUrl",
|
|
109
|
-
modelValue:
|
|
110
|
-
"onUpdate:modelValue":
|
|
120
|
+
modelValue: e.context.value["rdfs:value"],
|
|
121
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => e.context.value["rdfs:value"] = o)
|
|
111
122
|
}, null, 8, ["placeholder", "modelValue"])
|
|
112
123
|
])) : u("", !0)
|
|
113
124
|
]),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
b(
|
|
125
|
+
t[10] || (t[10] = s()),
|
|
126
|
+
l(c) === "Text" || e.context.value["@type"] === "text" ? (n(), a("div", Z, [
|
|
127
|
+
b(y, {
|
|
117
128
|
type: "text",
|
|
118
|
-
placeholder:
|
|
129
|
+
placeholder: i.$t("message.dataupload.datasets.conditional.Text"),
|
|
119
130
|
name: "rdfs:label",
|
|
120
131
|
class: "w-100",
|
|
121
132
|
identifier: "rightsText",
|
|
122
|
-
modelValue:
|
|
123
|
-
"onUpdate:modelValue":
|
|
133
|
+
modelValue: e.context.value["rdfs:value"],
|
|
134
|
+
"onUpdate:modelValue": t[3] || (t[3] = (o) => e.context.value["rdfs:value"] = o)
|
|
124
135
|
}, null, 8, ["placeholder", "modelValue"])
|
|
125
136
|
])) : u("", !0)
|
|
126
137
|
])
|
|
127
|
-
])) : (n(), a("div",
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
V(
|
|
138
|
+
])) : (n(), a("div", tt, [
|
|
139
|
+
r("div", et, [
|
|
140
|
+
r("div", ot, [
|
|
141
|
+
V(r("input", {
|
|
131
142
|
ref_key: "I1",
|
|
132
143
|
ref: h,
|
|
133
144
|
type: "text",
|
|
134
145
|
class: "conditionalSelect formkit-input formkit-inner",
|
|
135
|
-
onClick:
|
|
136
|
-
placeholder:
|
|
137
|
-
"onUpdate:modelValue":
|
|
138
|
-
}, null, 8,
|
|
139
|
-
[
|
|
146
|
+
onClick: t[4] || (t[4] = (o) => w()),
|
|
147
|
+
placeholder: e.context.attrs.placeholder,
|
|
148
|
+
"onUpdate:modelValue": t[5] || (t[5] = (o) => L(d) ? d.value = o : d = o)
|
|
149
|
+
}, null, 8, nt), [
|
|
150
|
+
[M, l(d)]
|
|
140
151
|
]),
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
(n(!0), a(
|
|
152
|
+
t[11] || (t[11] = s()),
|
|
153
|
+
l(p) ? (n(), a("div", at, [
|
|
154
|
+
r("ul", it, [
|
|
155
|
+
(n(!0), a(g, null, x(e.context.attrs.selection, (o, f) => (n(), a("li", {
|
|
145
156
|
class: "p-2 border-b border-gray-200",
|
|
146
|
-
onClick: (
|
|
147
|
-
}, m(
|
|
157
|
+
onClick: (D) => _(o, i.$t("message.dataupload.datasets.conditional." + o))
|
|
158
|
+
}, m(i.$t("message.dataupload.datasets.conditional." + o)), 9, st))), 256))
|
|
148
159
|
])
|
|
149
|
-
])) : u("", !0)
|
|
160
|
+
])) : u("", !0),
|
|
161
|
+
t[12] || (t[12] = s()),
|
|
162
|
+
l(c) === "vocabulary" ? (n(), a("div", {
|
|
163
|
+
key: 1,
|
|
164
|
+
innerHTML: i.$t("message.dataupload.distributions.licence.vocabulary.help"),
|
|
165
|
+
class: "formkit-help position-absolute"
|
|
166
|
+
}, null, 8, lt)) : u("", !0)
|
|
150
167
|
]),
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
(n(!0), a(
|
|
168
|
+
t[14] || (t[14] = s()),
|
|
169
|
+
r("div", rt, [
|
|
170
|
+
l(c) === "manually" || Object.keys(e.context.value).length > 0 && e.context.value["foaf:name"] && l(c) != "vocabulary" ? (n(), a("div", dt, [
|
|
171
|
+
(n(!0), a(g, null, x(e.context.attrs.options, (o, f) => (n(), U(y, {
|
|
155
172
|
type: f,
|
|
156
|
-
placeholder:
|
|
173
|
+
placeholder: i.$t("message.dataupload.datasets.individual." + o),
|
|
157
174
|
name: o,
|
|
158
175
|
validation: f,
|
|
159
176
|
class: "w-100"
|
|
160
177
|
}, null, 8, ["type", "placeholder", "name", "validation"]))), 256))
|
|
161
178
|
])) : u("", !0)
|
|
162
179
|
]),
|
|
163
|
-
|
|
164
|
-
|
|
180
|
+
t[15] || (t[15] = s()),
|
|
181
|
+
l(c) === "vocabulary" && !e.context.value.name ? (n(), a("div", ut, [
|
|
165
182
|
b(A, {
|
|
166
|
-
context:
|
|
183
|
+
context: e.context
|
|
167
184
|
}, null, 8, ["context"])
|
|
168
185
|
])) : u("", !0),
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
186
|
+
t[16] || (t[16] = s()),
|
|
187
|
+
e.context.value.name ? (n(), a("div", ct, [
|
|
188
|
+
r("a", pt, m(e.context.value.name), 1),
|
|
189
|
+
t[13] || (t[13] = s()),
|
|
190
|
+
r("div", {
|
|
174
191
|
class: "removeX",
|
|
175
|
-
onClick:
|
|
192
|
+
onClick: $
|
|
176
193
|
})
|
|
177
194
|
])) : u("", !0),
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
195
|
+
t[17] || (t[17] = s()),
|
|
196
|
+
l(c) === "manually" ? (n(), a("div", {
|
|
197
|
+
key: 2,
|
|
198
|
+
innerHTML: e.context.attrs.info,
|
|
181
199
|
class: "formkit-help"
|
|
182
|
-
}, null, 8,
|
|
200
|
+
}, null, 8, mt)) : u("", !0)
|
|
183
201
|
])
|
|
184
202
|
]))
|
|
185
203
|
]);
|
|
@@ -187,6 +205,6 @@ const F = { class: "formkitProperty" }, H = {
|
|
|
187
205
|
}
|
|
188
206
|
};
|
|
189
207
|
export {
|
|
190
|
-
|
|
208
|
+
bt as default
|
|
191
209
|
};
|
|
192
210
|
//# sourceMappingURL=ConditionalInput.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionalInput.vue.mjs","sources":["../../../lib/data-provider-interface/components/ConditionalInput.vue"],"sourcesContent":["<template>\n <div class=\"formkitProperty\">\n <!-- <h4 class=\"formkitHeader\">{{ props.context.attrs.identifier.charAt(0).toUpperCase() +\n props.context.attrs.identifier.slice(1) }}</h4> -->\n <h4 class=\"formkitHeader\"\n v-if=\"props.context.attrs.class != undefined && props.context.attrs.class.includes('inDistribution')\">\n {{ $t('message.dataupload.distributions.' + props.context.attrs.identifier + '.label') }}\n </h4>\n <h4 class=\"formkitHeader\" v-else>\n {{ $t('message.dataupload.datasets.' + props.context.attrs.identifier + '.label') }}\n </h4>\n <div v-if=\"props.context.attrs.identifier === 'licence' && env.content.dataProviderInterface.annifIntegration\"\n class=\"d-flex infoLicense py-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" fill=\"currentColor\"\n class=\"bi bi-info-circle mx-3 mb-3 mt-1 infoboxI \" viewBox=\"0 0 16 16\">\n <path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\" />\n <path\n d=\"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" />\n </svg>\n <div class=\"w-80\">\n <p>For <strong>European</strong> <strong>Commission's datasets</strong>, bear in mind that <a class=\"external-link\" href=\"https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833\" target=\"_blank\" rel=\"nofollow noopener\"><ins>Decision 2011/833/EU</ins></a> allows for their commercial reuse without prior authorisation, except for the material subject to the third party intellectual property rights. This Decision has been implemented under the <a class=\"external-link\" href=\"https://ec.europa.eu/transparency/documents-register/detail?ref=C(2019)1655&lang=en\" target=\"_blank\" rel=\"nofollow noopener\"><ins>Decision C(2019) 1655 final</ins></a> by which Creative Commons Attribution 4.0 International Public License (CC BY 4.0) is adopted as an open licence for the Commission's reuse policy. Additionally, raw data, metadata or other documents of comparable nature may alternatively be distributed under the provisions of the Creative Commons Universal Public Domain Dedication deed (CC0 1.0).</p>\n <p>The <strong>Council</strong> and the <strong>European Court of Auditors</strong> have approved similar decisions on reuse. It is advisable that you check <strong>the reuse policy of your organisation</strong> before publishing or submitting your dataset.</p>\n <p>If you need further information regarding copyright issues, please contact us at <span class=\"nobr\"><a class=\"external-link\" href=\"mailto:op-copyright@publications.europa.eu\" target=\"_blank\" rel=\"nofollow noopener\">op-copyright@publications.europa.eu</a></span></p>\n </div>\n\n </div>\n\n <div v-if=\"props.context.attrs.identifier === 'rights' && env.content.dataProviderInterface.annifIntegration\"\n class=\"d-flex infoLicense py-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" fill=\"currentColor\"\n class=\"bi bi-info-circle mx-3 mb-3 mt-1 infoboxI\" viewBox=\"0 0 16 16\">\n <path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\" />\n <path\n d=\"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" />\n </svg>\n <p class=\"textInfoI\">As owner of your dataset, you guarantee that it does not violate the copyright, other\n intellectual property or\n privacy rights of any third party. In particular, if third party material is included in the dataset, you must\n ensure that all necessary permissions have been obtained and appropriate acknowledgment is given, if necessary.\n <br><br>\n If you need further information regarding copyright issues, please contact us at\n <a href=\"mailto:op-copyright@publications.europa.eu\">op-copyright@publications.europa.eu</a>\n </p>\n </div>\n <!-- Choice between text and URL -->\n <div class=\"formkitCmpWrap simpleConditional\" v-if=\"props.context.attrs.identifier === 'rights'\">\n <div class=\"m-3\">\n <div class=\"conditionalSelectDiv\">\n <input ref=\"I1\" type=\"text\" class=\"conditionalSelect formkit-input formkit-inner\" @click=\"openSelect($event)\"\n :placeholder=\"props.context.attrs.placeholder\" v-model=\"selectModeVal\">\n <div v-if=\"showSelect\">\n <ul class=\"selectListConditional\">\n <li v-for=\"el, index in props.context.attrs.selection\" class=\"p-2 border-b border-gray-200 \"\n @click=\"selectMode(el, $t('message.dataupload.datasets.conditional.' + el))\">{{\n $t('message.dataupload.datasets.conditional.' + el) }}</li>\n </ul>\n </div>\n </div>\n <div class=\"conditionalManual\">\n <div class=\"d-flex\" v-if=\"selectedItem === 'URL' || props.context.node.value['@type'] === 'url'\">\n <FormKit type=\"url\" :placeholder=\"$t('message.dataupload.datasets.conditional.URL')\" name=\"rdfs:label\"\n validation=\"url\" class=\"w-100\" identifier=\"rightsUrl\" v-model=\"props.context.value['rdfs:value']\">\n </FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'Text' || props.context.value['@type'] === 'text'\">\n <FormKit type=\"text\" :placeholder=\"$t('message.dataupload.datasets.conditional.Text')\" name=\"rdfs:label\"\n class=\"w-100\" identifier=\"rightsText\" v-model=\"props.context.value['rdfs:value']\"></FormKit>\n </div>\n </div>\n </div>\n\n <!-- Choice between manualinput and vocabulary search -->\n <div class=\"formkitCmpWrap simpleConditional\" v-else>\n <div class=\"m-3\">\n <div class=\"conditionalSelectDiv\">\n <input ref=\"I1\" type=\"text\" class=\"conditionalSelect formkit-input formkit-inner\" @click=\"openSelect($event)\"\n :placeholder=props.context.attrs.placeholder v-model=\"selectModeVal\">\n <div v-if=\"showSelect\">\n <ul class=\"selectListConditional\">\n <li v-for=\"el, index in props.context.attrs.selection\" class=\"p-2 border-b border-gray-200 \"\n @click=\"selectMode(el, $t('message.dataupload.datasets.conditional.' + el))\">{{\n $t('message.dataupload.datasets.conditional.' + el) }}</li>\n </ul>\n </div>\n </div>\n <div class=\"conditionalManual\">\n <div class=\"d-flex\" v-if=\"selectedItem === 'manually' ||\n Object.keys(props.context.value).length > 0 && props.context.value['foaf:name']\n && selectedItem != 'vocabulary'\">\n <FormKit v-for=\"el, key in props.context.attrs.options\" :type=\"key\"\n :placeholder=\"$t('message.dataupload.datasets.individual.' + el)\" :name=\"el\" :validation=\"key\"\n class=\"w-100\"></FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'vocabulary' && !props.context.value['name']\" class=\"\">\n <AutocompleteInput :context=\"props.context\"></AutocompleteInput>\n </div>\n <div v-if=\"props.context.value['name']\" class=\"conditionalVocabulary d-flex\">\n <a class=\"autocompleteInputSingleValue\">{{\n props.context.value['name'] }}</a>\n <div class=\"removeX\" @click=\"removeProperty\"></div>\n\n </div>\n <div v-html=\"props.context.help\" class=\"formkit-help\"></div>\n\n </div>\n\n </div>\n </div>\n\n</template>\n<script setup>\nimport { ref, watchEffect } from 'vue';\nimport AutocompleteInput from './AutocompleteInput.vue';\nimport { onClickOutside } from '@vueuse/core'\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv.ts\";\nimport { useI18n } from 'vue-i18n';\n\nlet env = useRuntimeEnv()\nconst props = defineProps({\n context: Object,\n})\nconst { t } = useI18n();\nlet selectModeVal = ref()\nlet selectedItem = ref(false)\nlet showSelect = ref(false)\n\n\n\nwatchEffect(() => {\n if (props.context.value['name']) {\n selectModeVal.value = t('message.dataupload.datasets.conditional.' + 'vocabulary');\n }\n if (props.context.value['foaf:name']) {\n selectModeVal.value = t('message.dataupload.datasets.conditional.' + 'manually');\n }\n});\n\nconst I1 = ref(null)\n\nconst openSelect = (e) => {\n\n showSelect.value = !showSelect.value\n\n}\nconst removeProperty = () => {\n props.context.node.reset()\n}\nconst selectMode = (e, translatedString) => {\n selectModeVal.value = translatedString\n selectedItem.value = e\n props.context.node.reset()\n props.context.value = \"\"\n}\n\nonClickOutside(I1, event => showSelect.value = false)\n\n</script>\n<style>\n.conditionalManual {\n .formkit-outer {\n width: 100%;\n }\n}\n\n.hover {\n text-decoration: underline;\n}\n\n.conditionalVocabulary {\n display: flex;\n align-items: center;\n margin: 1rem 0;\n}\n\n.w-80 {\n width: 80%;\n}\n\n.infoLicense {\n a {\n color: blue;\n }\n\n padding: 1rem;\n background-color: rgb(171, 225, 165)\n}\n\n.infoboxI {\n width: 5%;\n}\n\n.textInfoI {\n width: 95%;\n}\n</style>\n"],"names":["env","useRuntimeEnv","props","__props","t","useI18n","selectModeVal","ref","selectedItem","showSelect","watchEffect","I1","openSelect","e","removeProperty","selectMode","translatedString","onClickOutside","event"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuHA,QAAIA,IAAMC,EAAc;AACxB,UAAMC,IAAQC,GAGR,EAAE,GAAAC,EAAC,IAAKC;AACd,QAAIC,IAAgBC,EAAI,GACpBC,IAAeD,EAAI,EAAK,GACxBE,IAAaF,EAAI,EAAK;AAI1B,IAAAG,EAAY,MAAM;AAChB,MAAIR,EAAM,QAAQ,MAAM,SACtBI,EAAc,QAAQF,EAAE,oDAAyD,IAE/EF,EAAM,QAAQ,MAAM,WAAW,MACjCI,EAAc,QAAQF,EAAE,kDAAuD;AAAA,IAEnF,CAAC;AAED,UAAMO,IAAKJ,EAAI,IAAI,GAEbK,IAAa,CAACC,MAAM;AAExB,MAAAJ,EAAW,QAAQ,CAACA,EAAW;AAAA,IAEjC,GACMK,IAAiB,MAAM;AAC3B,MAAAZ,EAAM,QAAQ,KAAK,MAAM;AAAA,IAC3B,GACMa,IAAa,CAACF,GAAGG,MAAqB;AAC1C,MAAAV,EAAc,QAAQU,GACtBR,EAAa,QAAQK,GACrBX,EAAM,QAAQ,KAAK,MAAM,GACzBA,EAAM,QAAQ,QAAQ;AAAA,IACxB;AAEA,WAAAe,EAAeN,GAAI,CAAAO,MAAST,EAAW,QAAQ,EAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"ConditionalInput.vue.mjs","sources":["../../../lib/data-provider-interface/components/ConditionalInput.vue"],"sourcesContent":["<template>\n <div class=\"formkitProperty\">\n <!-- <h4 class=\"formkitHeader\">{{ props.context.attrs.identifier.charAt(0).toUpperCase() +\n props.context.attrs.identifier.slice(1) }}</h4> -->\n <h4 class=\"formkitHeader\"\n v-if=\"props.context.attrs.class != undefined && props.context.attrs.class.includes('inDistribution')\">\n {{ $t('message.dataupload.distributions.' + props.context.attrs.identifier + '.label') }}\n </h4>\n <h4 class=\"formkitHeader\" v-else>\n {{ $t('message.dataupload.datasets.' + props.context.attrs.identifier + '.label') }}\n </h4>\n <div v-if=\"props.context.attrs.identifier === 'licence' && env.content.dataProviderInterface.annifIntegration\"\n class=\"d-flex infoLicense py-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" fill=\"currentColor\"\n class=\"bi bi-info-circle mx-3 mb-3 mt-1 infoboxI \" viewBox=\"0 0 16 16\">\n <path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\" />\n <path\n d=\"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" />\n </svg>\n <div class=\"w-80\">\n <p>For <strong>European</strong> <strong>Commission's datasets</strong>, bear in mind\n that <a href=\"https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833]\"\n target=\"_blank\" rel=\"nofollow noopener\"><ins>Decision 2011/833/EU</ins></a> allows for their commercial\n reuse without\n prior authorisation, except for the material subject to the third party intellectual property rights. This\n Decision has been implemented under the <a\n href=\"https://ec.europa.eu/transparency/documents-register/detail?ref=C(2019)1655&lang=en]\"\n target=\"_blank\" rel=\"nofollow noopener\"><ins>Decision C(2019) 1655 final</ins></a> by which Creative\n Commons\n Attribution 4.0 International Public License (CC BY 4.0) is adopted as an open licence for the Commission's\n reuse policy. Additionally, raw data, metadata or other documents of comparable nature may alternatively be\n distributed under the provisions of the Creative Commons Universal Public Domain Dedication deed (CC0\n 1.0).</p>\n <p>The <strong>Council</strong> and the <strong>European Court of Auditors</strong> have\n approved similar decisions on reuse. It is advisable that you check <strong>the reuse policy of your\n organisation</strong> before publishing or submitting your dataset.</p>\n <p>If you need further information regarding copyright issues, please contact us at <a\n href=\"mailto:op-copyright@publications.europa.eu\" target=\"_blank\"\n rel=\"nofollow noopener\">op-copyright@publications.europa.eu</a></p>\n </div>\n\n </div>\n\n <div v-if=\"props.context.attrs.identifier === 'rights' && env.content.dataProviderInterface.annifIntegration\"\n class=\"d-flex infoLicense py-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" fill=\"currentColor\"\n class=\"bi bi-info-circle mx-3 mb-3 mt-1 infoboxI\" viewBox=\"0 0 16 16\">\n <path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\" />\n <path\n d=\"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" />\n </svg>\n <p class=\"textInfoI\">As owner of your dataset, you guarantee that it does not violate the copyright, other\n intellectual property or\n privacy rights of any third party. In particular, if third party material is included in the dataset, you must\n ensure that all necessary permissions have been obtained and appropriate acknowledgment is given, if necessary.\n <br><br>\n If you need further information regarding copyright issues, please contact us at\n <a href=\"mailto:op-copyright@publications.europa.eu\">op-copyright@publications.europa.eu</a>\n </p>\n </div>\n <!-- Choice between text and URL -->\n <div class=\"formkitCmpWrap simpleConditional\" v-if=\"props.context.attrs.identifier === 'rights'\">\n <div class=\"m-3\">\n <div class=\"conditionalSelectDiv\">\n <input ref=\"I1\" type=\"text\" class=\"conditionalSelect formkit-input formkit-inner\" @click=\"openSelect($event)\"\n :placeholder=\"props.context.attrs.placeholder\" v-model=\"selectModeVal\">\n <div v-if=\"showSelect\">\n <ul class=\"selectListConditional\">\n <li v-for=\"el, index in props.context.attrs.selection\" class=\"p-2 border-b border-gray-200 \"\n @click=\"selectMode(el, $t('message.dataupload.datasets.conditional.' + el))\">{{\n $t('message.dataupload.datasets.conditional.' + el) }}</li>\n </ul>\n </div>\n </div>\n <div class=\"conditionalManual\">\n <div class=\"d-flex\" v-if=\"selectedItem === 'URL' || props.context.node.value['@type'] === 'url'\">\n <FormKit type=\"url\" :placeholder=\"$t('message.dataupload.datasets.conditional.URL')\" name=\"rdfs:label\"\n validation=\"url\" class=\"w-100\" identifier=\"rightsUrl\" v-model=\"props.context.value['rdfs:value']\">\n </FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'Text' || props.context.value['@type'] === 'text'\">\n <FormKit type=\"text\" :placeholder=\"$t('message.dataupload.datasets.conditional.Text')\" name=\"rdfs:label\"\n class=\"w-100\" identifier=\"rightsText\" v-model=\"props.context.value['rdfs:value']\"></FormKit>\n </div>\n </div>\n </div>\n\n <!-- Choice between manualinput and vocabulary search -->\n <div class=\"formkitCmpWrap simpleConditional\" v-else>\n <div class=\"m-3\">\n <div class=\"conditionalSelectDiv\">\n <input ref=\"I1\" type=\"text\" class=\"conditionalSelect formkit-input formkit-inner\" @click=\"openSelect($event)\"\n :placeholder=props.context.attrs.placeholder v-model=\"selectModeVal\">\n \n <div v-if=\"showSelect\">\n <ul class=\"selectListConditional\">\n <li v-for=\"el, index in props.context.attrs.selection\" class=\"p-2 border-b border-gray-200 \"\n @click=\"selectMode(el, $t('message.dataupload.datasets.conditional.' + el))\">{{\n $t('message.dataupload.datasets.conditional.' + el) }}</li>\n </ul>\n </div>\n <div v-if=\"selectedItem === 'vocabulary'\" v-html=\"$t('message.dataupload.distributions.licence.vocabulary.help')\" class=\"formkit-help position-absolute\">\n </div>\n </div>\n <div class=\"conditionalManual\">\n <div class=\"d-flex\" v-if=\"selectedItem === 'manually' ||\n Object.keys(props.context.value).length > 0 && props.context.value['foaf:name']\n && selectedItem != 'vocabulary'\">\n <FormKit v-for=\"el, key in props.context.attrs.options\" :type=\"key\"\n :placeholder=\"$t('message.dataupload.datasets.individual.' + el)\" :name=\"el\" :validation=\"key\"\n class=\"w-100\"></FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'vocabulary' && !props.context.value['name']\" class=\"\">\n <AutocompleteInput :context=\"props.context\"></AutocompleteInput>\n </div>\n\n <div v-if=\"props.context.value['name']\" class=\"conditionalVocabulary d-flex\">\n <a class=\"autocompleteInputSingleValue\">{{\n props.context.value['name'] }}</a>\n <div class=\"removeX\" @click=\"removeProperty\"></div>\n\n </div>\n <div v-if=\"selectedItem === 'manually'\" v-html=\"props.context.attrs.info\" class=\"formkit-help\"></div>\n\n </div>\n\n </div>\n </div>\n\n</template>\n<script setup>\nimport { ref, watchEffect } from 'vue';\nimport AutocompleteInput from './AutocompleteInput.vue';\nimport { onClickOutside } from '@vueuse/core'\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv.ts\";\nimport { useI18n } from 'vue-i18n';\n\nlet env = useRuntimeEnv()\nconst props = defineProps({\n context: Object,\n})\nconst { t } = useI18n();\nlet selectModeVal = ref()\nlet selectedItem = ref(false)\nlet showSelect = ref(false)\n\n\n\nwatchEffect(() => {\n if (props.context.value['name']) {\n selectModeVal.value = t('message.dataupload.datasets.conditional.' + 'vocabulary');\n }\n if (props.context.value['foaf:name']) {\n selectModeVal.value = t('message.dataupload.datasets.conditional.' + 'manually');\n }\n});\n\nconst I1 = ref(null)\n\nconst openSelect = (e) => {\n\n showSelect.value = !showSelect.value\n\n}\nconst removeProperty = () => {\n props.context.node.reset()\n}\nconst selectMode = (e, translatedString) => {\n selectModeVal.value = translatedString\n selectedItem.value = e\n props.context.node.reset()\n props.context.value = \"\"\n}\n\nonClickOutside(I1, event => showSelect.value = false)\n\n</script>\n<style>\n.conditionalManual {\n .formkit-outer {\n width: 100%;\n }\n}\n\n.hover {\n text-decoration: underline;\n}\n\n.conditionalVocabulary {\n display: flex;\n align-items: center;\n margin: 1rem 0;\n}\n\n.w-80 {\n width: 80%;\n}\n\n.infoLicense {\n a {\n color: blue;\n }\n\n padding: 1rem;\n background-color: rgb(171, 225, 165)\n}\n\n.infoboxI {\n width: 5%;\n}\n\n.textInfoI {\n width: 95%;\n}\n</style>\n"],"names":["env","useRuntimeEnv","props","__props","t","useI18n","selectModeVal","ref","selectedItem","showSelect","watchEffect","I1","openSelect","e","removeProperty","selectMode","translatedString","onClickOutside","event"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2IA,QAAIA,IAAMC,EAAc;AACxB,UAAMC,IAAQC,GAGR,EAAE,GAAAC,EAAC,IAAKC;AACd,QAAIC,IAAgBC,EAAI,GACpBC,IAAeD,EAAI,EAAK,GACxBE,IAAaF,EAAI,EAAK;AAI1B,IAAAG,EAAY,MAAM;AAChB,MAAIR,EAAM,QAAQ,MAAM,SACtBI,EAAc,QAAQF,EAAE,oDAAyD,IAE/EF,EAAM,QAAQ,MAAM,WAAW,MACjCI,EAAc,QAAQF,EAAE,kDAAuD;AAAA,IAEnF,CAAC;AAED,UAAMO,IAAKJ,EAAI,IAAI,GAEbK,IAAa,CAACC,MAAM;AAExB,MAAAJ,EAAW,QAAQ,CAACA,EAAW;AAAA,IAEjC,GACMK,IAAiB,MAAM;AAC3B,MAAAZ,EAAM,QAAQ,KAAK,MAAM;AAAA,IAC3B,GACMa,IAAa,CAACF,GAAGG,MAAqB;AAC1C,MAAAV,EAAc,QAAQU,GACtBR,EAAa,QAAQK,GACrBX,EAAM,QAAQ,KAAK,MAAM,GACzBA,EAAM,QAAQ,QAAQ;AAAA,IACxB;AAEA,WAAAe,EAAeN,GAAI,CAAAO,MAAST,EAAW,QAAQ,EAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { has as w, isNil as F } from "lodash-es";
|
|
2
2
|
import { truncate as g } from "../../utils/helpers.mjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import h from "./distributionDetails/DistributionExpand.vue.mjs";
|
|
4
|
+
import f from "./distributionDetails/DistributionVisibleContent.vue.mjs";
|
|
5
5
|
import U from "./distributionDetails/DistributionExpandedContent.vue.mjs";
|
|
6
6
|
import y from "./distributionDetails/DistributionDescription.vue.mjs";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { resolveComponent as n, openBlock as
|
|
7
|
+
import p from "./DistributionFormat.vue.mjs";
|
|
8
|
+
import v from "./FadingDistributionOverlay.vue.mjs";
|
|
9
|
+
import C from "./distributionActions/DistributionActions.vue.mjs";
|
|
10
|
+
import E from "./DistributionAdded.vue.mjs";
|
|
11
|
+
import { resolveComponent as n, openBlock as u, createElementBlock as x, createElementVNode as a, 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 k = {
|
|
15
15
|
name: "Distribution",
|
|
16
16
|
components: {
|
|
17
|
-
DistributionAdded:
|
|
18
|
-
DistributionActions:
|
|
19
|
-
FadingDistributionOverlay:
|
|
20
|
-
DistributionFormat:
|
|
17
|
+
DistributionAdded: E,
|
|
18
|
+
DistributionActions: C,
|
|
19
|
+
FadingDistributionOverlay: v,
|
|
20
|
+
DistributionFormat: p,
|
|
21
21
|
DistributionDescription: y,
|
|
22
22
|
DistributionExpandedContent: U,
|
|
23
|
-
DistributionVisibleContent:
|
|
24
|
-
DistributionExpand:
|
|
23
|
+
DistributionVisibleContent: f,
|
|
24
|
+
DistributionExpand: h
|
|
25
25
|
},
|
|
26
26
|
props: {
|
|
27
27
|
fading: Boolean,
|
|
@@ -73,25 +73,26 @@ const V = {
|
|
|
73
73
|
isNil: F,
|
|
74
74
|
truncate: g,
|
|
75
75
|
selectForPreview() {
|
|
76
|
-
this
|
|
76
|
+
const r = this.distribution.downloadUrls && this.distribution.downloadUrls.length ? this.distribution.downloadUrls[0] : this.distribution.accessUrl[0];
|
|
77
|
+
this.$emit("selectForPreview", { title: this.getDistributionTitle(this.distribution), url: r, format: this.getDistributionFormat(this.distribution).toLowerCase() });
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
}, A = { class: "mb-3 d-flex flex-row flex-wrap flex-md-nowrap distributions__item" }, _ = { class: "actions-container" };
|
|
80
|
-
function T(
|
|
81
|
+
function T(r, t, i, N, j, e) {
|
|
81
82
|
const d = n("distribution-format"), l = n("distribution-details"), b = n("distribution-added"), c = n("distribution-actions"), D = n("fading-distribution-overlay");
|
|
82
|
-
return
|
|
83
|
+
return u(), x("div", {
|
|
83
84
|
class: "position-relative",
|
|
84
|
-
onClick: t[0] || (t[0] = (...m) =>
|
|
85
|
+
onClick: t[0] || (t[0] = (...m) => e.selectForPreview && e.selectForPreview(...m))
|
|
85
86
|
}, [
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
a("div", A, [
|
|
88
|
+
s(d, {
|
|
88
89
|
distribution: i.distribution,
|
|
89
90
|
getDistributionFormat: i.getDistributionFormat,
|
|
90
91
|
distributionFormatTruncated: i.distributionFormatTruncated,
|
|
91
92
|
embed: i.embed
|
|
92
93
|
}, null, 8, ["distribution", "getDistributionFormat", "distributionFormatTruncated", "embed"]),
|
|
93
94
|
t[2] || (t[2] = o()),
|
|
94
|
-
|
|
95
|
+
s(l, {
|
|
95
96
|
getDistributionTitle: i.getDistributionTitle,
|
|
96
97
|
distribution: i.distribution,
|
|
97
98
|
distributions: i.distributions,
|
|
@@ -113,10 +114,11 @@ function T(a, t, i, N, j, s) {
|
|
|
113
114
|
toggleDistribution: i.toggleDistribution
|
|
114
115
|
}, null, 8, ["getDistributionTitle", "distribution", "distributions", "distributionDescriptionIsExpanded", "getDistributionDescription", "toggleDistributionDescription", "distributionDescriptionIsExpandable", "distributionVisibleContent", "distributionExpandedContent", "distributionIsExpanded", "showLicensingAssistant", "showLicence", "filterDateFormatEU", "showArray", "showNumber", "showObject", "showObjectArray", "appendCurrentLocaleToURL", "toggleDistribution"]),
|
|
115
116
|
t[3] || (t[3] = o()),
|
|
116
|
-
|
|
117
|
+
s(b, { date: e.updatedDate }, null, 8, ["date"]),
|
|
117
118
|
t[4] || (t[4] = o()),
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
a("div", _, [
|
|
120
|
+
s(c, {
|
|
121
|
+
onDisplayVisualisation: e.selectForPreview,
|
|
120
122
|
distribution: i.distribution,
|
|
121
123
|
distributions: i.distributions,
|
|
122
124
|
isUrlInvalid: i.isUrlInvalid,
|
|
@@ -131,13 +133,13 @@ function T(a, t, i, N, j, s) {
|
|
|
131
133
|
trackGoto: i.trackGoto,
|
|
132
134
|
getDistributionFormat: i.getDistributionFormat,
|
|
133
135
|
replaceHttp: i.replaceHttp
|
|
134
|
-
}, null, 8, ["distribution", "distributions", "isUrlInvalid", "getVisualisationLink", "showTooltipVisualiseButton", "previewLinkCallback", "openIfValidUrl", "showDownloadDropdown", "getDownloadUrl", "showAccessUrls", "isOnlyOneUrl", "trackGoto", "getDistributionFormat", "replaceHttp"]),
|
|
136
|
+
}, null, 8, ["onDisplayVisualisation", "distribution", "distributions", "isUrlInvalid", "getVisualisationLink", "showTooltipVisualiseButton", "previewLinkCallback", "openIfValidUrl", "showDownloadDropdown", "getDownloadUrl", "showAccessUrls", "isOnlyOneUrl", "trackGoto", "getDistributionFormat", "replaceHttp"]),
|
|
135
137
|
t[1] || (t[1] = o()),
|
|
136
|
-
I(
|
|
138
|
+
I(r.$slots, "additional-actions", {}, void 0, !0)
|
|
137
139
|
])
|
|
138
140
|
]),
|
|
139
141
|
t[5] || (t[5] = o()),
|
|
140
|
-
i.fading ? (
|
|
142
|
+
i.fading ? (u(), L(D, {
|
|
141
143
|
key: 0,
|
|
142
144
|
distributions: i.distributions,
|
|
143
145
|
setDistributionsDisplayCount: i.setDistributionsDisplayCount,
|
|
@@ -146,7 +148,7 @@ function T(a, t, i, N, j, s) {
|
|
|
146
148
|
}, null, 8, ["distributions", "setDistributionsDisplayCount", "increaseNumDisplayedDistributions", "nonOverflowingIncrementsForDistributions"])) : O("", !0)
|
|
147
149
|
]);
|
|
148
150
|
}
|
|
149
|
-
const X = /* @__PURE__ */ k
|
|
151
|
+
const X = /* @__PURE__ */ V(k, [["render", T], ["__scopeId", "data-v-87cb6876"]]);
|
|
150
152
|
export {
|
|
151
153
|
X as default
|
|
152
154
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Distribution.vue.mjs","sources":["../../../lib/datasetDetails/distributions/Distribution.vue"],"sourcesContent":["<template>\n <div class=\"position-relative\" @click=\"selectForPreview\">\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 :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 this.$emit('selectForPreview', this.getDistributionTitle(this.distribution))\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","_hoisted_1","_hoisted_2","_createElementBlock","$options","args","_createElementVNode","_createVNode","_component_distribution_format","$props","_cache","_createTextVNode","_component_distribution_details","_component_distribution_added","_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,IACA,oBAAAC;AAAA,IACA,yBAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,4BAAAC;AAAA,IACA,oBAAAC;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL,QAAQ;AAAA,IACR,cAAc;AAAA,IACd,eAAe;AAAA,IACf,8BAA8B;AAAA,IAC9B,WAAW;AAAA,IACX,uBAAuB;AAAA,IACvB,6BAA6B;AAAA,IAC7B,sBAAsB;AAAA,IACtB,4BAA4B;AAAA,IAC5B,6BAA6B;AAAA,IAC7B,mCAAmC;AAAA,IACnC,qCAAqC;AAAA,IACrC,4BAA4B;AAAA,IAC5B,wBAAwB;AAAA,IACxB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,sBAAsB;AAAA,IACtB,aAAa;AAAA,IACb,wBAAwB;AAAA,IACxB,oBAAoB;AAAA,IACpB,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,sBAAsB;AAAA,IACtB,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,qBAAqB;AAAA,IACrB,oBAAoB;AAAA,IACpB,+BAA+B;AAAA,IAC/B,mCAAmC;AAAA,IACnC,0CAA0C;AAAA,IAC1C,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,4BAA4B;AAAA,IAC5B,0BAA0B;AAAA,IAC1B,OAAO;AAAA,EACR;AAAA,EACD,UAAU;AAAA,IACR,cAAc;AACZ,aAAI,KAAK,IAAI,KAAK,cAAc,kBAAkB,KAAK,CAAC,KAAK,MAAM,KAAK,aAAa,gBAAgB,IAC5F,KAAK,mBAAmB,KAAK,aAAa,gBAAgB,IAE1D,KAAK,mBAAmB,KAAK,aAAa,WAAW;AAAA,IAEhE;AAAA,EACD;AAAA,EACD,SAAS;AAAA,IACP,KAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,mBAAmB;AACjB,WAAK,MAAM,oBAAoB,KAAK,qBAAqB,KAAK,YAAY,CAAC;AAAA,IAC7E;AAAA,EACF;AACF,GA1HSC,IAAA,EAAA,OAAM,oEAAmE,GAgBvEC,IAAA,EAAA,OAAM,oBAAmB;;;cAjBlCC,EAgCM,OAAA;AAAA,IAhCD,OAAM;AAAA,IAAqB,mCAAOC,EAAgB,oBAAAA,EAAA,iBAAA,GAAAC,CAAA;AAAA;IACrDC,EA0BM,OA1BNL,GA0BM;AAAA,MAzBJM,EAC8EC,GAAA;AAAA,QADxD,cAAcC,EAAY;AAAA,QAAG,uBAAuBA,EAAqB;AAAA,QAC5F,6BAA6BA,EAA2B;AAAA,QAAG,OAAOA,EAAK;AAAA;MAJhFC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MAKMJ,EAU6CK,GAAA;AAAA,QAVtB,sBAAsBH,EAAoB;AAAA,QAAG,cAAcA,EAAY;AAAA,QAC3F,eAAeA,EAAa;AAAA,QAAG,mCAAmCA,EAAiC;AAAA,QACnG,4BAA4BA,EAA0B;AAAA,QACtD,+BAA+BA,EAA6B;AAAA,QAC5D,qCAAqCA,EAAmC;AAAA,QACxE,4BAA4BA,EAA0B;AAAA,QACtD,6BAA6BA,EAA2B;AAAA,QAAG,wBAAwBA,EAAsB;AAAA,QACzG,wBAAwBA,EAAsB;AAAA,QAAG,aAAaA,EAAW;AAAA,QACzE,oBAAoBA,EAAkB;AAAA,QAAG,WAAWA,EAAS;AAAA,QAAG,YAAYA,EAAU;AAAA,QACtF,YAAYA,EAAU;AAAA,QAAG,iBAAiBA,EAAe;AAAA,QAAG,0BAA0BA,EAAwB;AAAA,QAC9G,oBAAoBA,EAAkB;AAAA;MAf/CC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MAgBMJ,EAA0CM,GAAA,EAArB,MAAMT,EAAW,YAAA,GAAA,MAAA,GAAA,CAAA,MAAA,CAAA;AAAA,MAhB5CM,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MAkBML,EAQM,OARNJ,GAQM;AAAA,QAPJK,EAK+BO,GAAA;AAAA,UALR,cAAcL,EAAY;AAAA,UAAG,eAAeA,EAAa;AAAA,UAAG,cAAcA,EAAY;AAAA,UAC1G,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,QAyBQI,EAAuCC,EAAA,QAAA,sBAAA,CAAA,GAAA,QAAA,EAAA;AAAA;;IAzB/CN,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IA6BuCF,EAAM,eAAzCQ,EAGyFC,GAAA;AAAA,MAhC7F,KAAA;AAAA,MA6BgD,eAAeT,EAAa;AAAA,MACrE,8BAA8BA,EAA4B;AAAA,MAC1D,mCAAmCA,EAAiC;AAAA,MACpE,0CAA0CA,EAAwC;AAAA,uJAhCzFU,EAAA,IAAA,EAAA;AAAA;;;"}
|
|
1
|
+
{"version":3,"file":"Distribution.vue.mjs","sources":["../../../lib/datasetDetails/distributions/Distribution.vue"],"sourcesContent":["<template>\n <div class=\"position-relative\" @click=\"selectForPreview\">\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.getDistributionFormat(this.distribution).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","_createElementBlock","$options","args","_createElementVNode","_createVNode","_component_distribution_format","$props","_cache","_createTextVNode","_component_distribution_details","_component_distribution_added","_component_distribution_actions","_renderSlot","_ctx","_createBlock","_component_fading_distribution_overlay","_createCommentVNode"],"mappings":"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"}
|
|
@@ -43,13 +43,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
43
43
|
embed: BooleanConstructor;
|
|
44
44
|
}>, {}, {
|
|
45
45
|
downloadAllTop: boolean;
|
|
46
|
-
showDistibutionVisualisation:
|
|
46
|
+
showDistibutionVisualisation: boolean;
|
|
47
|
+
previewedDistributionTitle: string;
|
|
48
|
+
previewedDistDownloadUrl: string;
|
|
49
|
+
previewedDistFormat: string;
|
|
50
|
+
selectedDistribution: null;
|
|
47
51
|
}, {
|
|
48
52
|
getCatalog: import('vuex').Computed;
|
|
49
53
|
getLanguages: import('vuex').Computed;
|
|
50
54
|
}, {
|
|
51
55
|
getDistributionDescription(distribution: any): any;
|
|
52
|
-
selectDistribution(
|
|
56
|
+
selectDistribution(dist: any): void;
|
|
53
57
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
54
58
|
openModal: FunctionConstructor;
|
|
55
59
|
expandedDistributions: ArrayConstructor;
|