@piveau/piveau-hub-ui-modules 4.5.12 → 4.5.13
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/CatalogueMQA.vue.mjs +21 -21
- package/dist/data-provider-interface/CatalogueMQA.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetails.vue.mjs +31 -29
- package/dist/datasetDetails/DatasetDetails.vue.mjs.map +1 -1
- package/dist/embed/DatasetEmbedModal.vue.d.ts +2 -0
- package/dist/embed/DatasetEmbedModal.vue.mjs +126 -88
- package/dist/embed/DatasetEmbedModal.vue.mjs.map +1 -1
- package/dist/embed/EmbedDataset.vue.mjs +31 -26
- package/dist/embed/EmbedDataset.vue.mjs.map +1 -1
- package/dist/embed/EmbedDatasetSnippet.vue.mjs +30 -25
- package/dist/embed/EmbedDatasetSnippet.vue.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { openBlock as m, createElementBlock as r, createElementVNode as t, createTextVNode as d, toDisplayString as
|
|
1
|
+
import { openBlock as m, createElementBlock as r, createElementVNode as t, createTextVNode as d, toDisplayString as a, withDirectives as n, vModelText as p, createCommentVNode as u, vModelCheckbox as b, createStaticVNode as f, vShow as h } from "vue";
|
|
2
2
|
import "./DatasetEmbedModal.vue2.mjs";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import g from "../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const v = {
|
|
5
5
|
name: "embed-modal",
|
|
6
6
|
data() {
|
|
7
7
|
return {
|
|
@@ -11,33 +11,37 @@ const u = {
|
|
|
11
11
|
copied: !1,
|
|
12
12
|
minRange: this.$env.content.datasetDetails.embed.minRange,
|
|
13
13
|
maxRange: this.$env.content.datasetDetails.embed.maxRange,
|
|
14
|
-
embedType: "embed"
|
|
14
|
+
embedType: "embed",
|
|
15
15
|
// default to 'embed'
|
|
16
|
+
isResponsive: !1
|
|
16
17
|
};
|
|
17
18
|
},
|
|
18
19
|
methods: {
|
|
20
|
+
selectAll(o) {
|
|
21
|
+
o.target.select();
|
|
22
|
+
},
|
|
19
23
|
updateEmbedCode() {
|
|
20
|
-
this.iframeWidth = Math.min(Math.max(this.iframeWidth, this.minRange), this.maxRange), this.iframeHeight = Math.min(Math.max(this.iframeHeight, this.minRange), this.maxRange);
|
|
21
|
-
const
|
|
22
|
-
this.embedCode = `<iframe src="${
|
|
24
|
+
this.isResponsive ? this.iframeWidth = "100%" : (this.iframeWidth = 900, this.iframeWidth = Math.min(Math.max(this.iframeWidth, this.minRange), this.maxRange), this.iframeHeight = Math.min(Math.max(this.iframeHeight, this.minRange), this.maxRange));
|
|
25
|
+
const o = window.location.href.replace(/\?.*$/, "") + "/" + this.embedType;
|
|
26
|
+
this.embedCode = `<iframe src="${o}" width="${this.iframeWidth}" height="${this.iframeHeight}" frameborder="0"></iframe>`;
|
|
23
27
|
},
|
|
24
|
-
updateEmbedCodeType(
|
|
25
|
-
this.embedType =
|
|
28
|
+
updateEmbedCodeType(o) {
|
|
29
|
+
this.embedType = o.target.value === "snippet" ? "embed-snippet" : "embed", this.updateEmbedCode();
|
|
26
30
|
},
|
|
27
31
|
copy() {
|
|
28
32
|
navigator.clipboard.writeText(this.embedCode).then(() => {
|
|
29
33
|
this.copied = !0, setTimeout(() => {
|
|
30
34
|
this.copied = !1;
|
|
31
35
|
}, 3e3);
|
|
32
|
-
}).catch((
|
|
33
|
-
console.error("Failed to copy: ",
|
|
36
|
+
}).catch((o) => {
|
|
37
|
+
console.error("Failed to copy: ", o);
|
|
34
38
|
});
|
|
35
39
|
}
|
|
36
40
|
},
|
|
37
41
|
created() {
|
|
38
42
|
this.updateEmbedCode();
|
|
39
43
|
}
|
|
40
|
-
},
|
|
44
|
+
}, c = {
|
|
41
45
|
class: "modal fade",
|
|
42
46
|
id: "embedModal",
|
|
43
47
|
tabindex: "-1",
|
|
@@ -45,14 +49,14 @@ const u = {
|
|
|
45
49
|
"aria-labelledby": "",
|
|
46
50
|
"aria-hidden": "true",
|
|
47
51
|
style: { "background-color": "rgba(0, 0, 0, 0.75)" }
|
|
48
|
-
},
|
|
52
|
+
}, x = {
|
|
49
53
|
class: "modal-dialog modal-dialog-centered modal-lg",
|
|
50
54
|
role: "document",
|
|
51
55
|
style: { "z-index": "1100", "max-width": "52%" }
|
|
52
|
-
},
|
|
56
|
+
}, y = {
|
|
53
57
|
class: "modal-content border-none",
|
|
54
58
|
style: { "border-radius": "0", padding: "1rem 2.125rem 2.75rem" }
|
|
55
|
-
},
|
|
59
|
+
}, C = {
|
|
56
60
|
type: "button",
|
|
57
61
|
id: "modal-close-btn",
|
|
58
62
|
"data-dismiss": "modal",
|
|
@@ -61,7 +65,7 @@ const u = {
|
|
|
61
65
|
}, w = {
|
|
62
66
|
"aria-hidden": "true",
|
|
63
67
|
class: "close-icon rounded-circle"
|
|
64
|
-
},
|
|
68
|
+
}, k = {
|
|
65
69
|
xmlns: "http://www.w3.org/2000/svg",
|
|
66
70
|
fill: "white",
|
|
67
71
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
@@ -72,94 +76,126 @@ const u = {
|
|
|
72
76
|
viewBox: "0 0 512 512",
|
|
73
77
|
width: "8",
|
|
74
78
|
"xml:space": "preserve"
|
|
75
|
-
},
|
|
79
|
+
}, R = { class: "modal-head" }, E = {
|
|
76
80
|
class: "modal-title",
|
|
77
81
|
id: "exampleModalLabel",
|
|
78
82
|
style: { display: "inline-block" }
|
|
79
|
-
},
|
|
83
|
+
}, D = { class: "modal-body" }, H = {
|
|
80
84
|
class: "container",
|
|
81
85
|
style: { padding: "0", margin: "0" }
|
|
82
|
-
},
|
|
86
|
+
}, V = { class: "d-flex flex-row iframeSettings" }, T = { class: "input-wrapper" }, W = { for: "iframeWidth" }, M = { class: "input-with-px" }, L = ["min", "max"], z = ["min", "max"], S = {
|
|
83
87
|
class: "input-wrapper height",
|
|
84
88
|
style: { "padding-left": "3.3rem" }
|
|
85
|
-
},
|
|
89
|
+
}, U = { for: "iframeHeight" }, B = { class: "input-with-px" }, I = ["min", "max"], N = { class: "form-check mb-4" }, A = { class: "ecl-form-group" }, Z = {
|
|
86
90
|
class: "ecl-form-label",
|
|
87
91
|
for: "ebmedTextarea",
|
|
88
92
|
style: { "font-size": "18px", "font-weight": "400", color: "#000000" }
|
|
89
|
-
},
|
|
90
|
-
function
|
|
91
|
-
return m(), r("div",
|
|
92
|
-
t("div",
|
|
93
|
-
t("div",
|
|
94
|
-
t("button",
|
|
95
|
-
d(
|
|
93
|
+
}, P = ["value"], j = { class: "form-check mt-4" }, F = { class: "form-check" }, q = { class: "modal-footer justify-content-start" }, G = { class: "copied" }, J = { class: "form-check-label" };
|
|
94
|
+
function K(o, e, O, Q, i, l) {
|
|
95
|
+
return m(), r("div", c, [
|
|
96
|
+
t("div", x, [
|
|
97
|
+
t("div", y, [
|
|
98
|
+
t("button", C, [
|
|
99
|
+
d(a(o.$t("message.datasetDetails.datasets.modal.close")) + " ", 1),
|
|
96
100
|
t("span", w, [
|
|
97
|
-
(m(), r("svg",
|
|
101
|
+
(m(), r("svg", k, e[12] || (e[12] = [
|
|
98
102
|
t("path", { d: "M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4 L256,197.8L124.9,68.3c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4L68,105.9c-5.4,5.4-5.4,14.2,0,19.6l131.5,130L68.4,387.1 c-2.6,2.6-4.1,6.1-4.1,9.8c0,3.7,1.4,7.2,4.1,9.8l37.4,37.6c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1L256,313.1l130.7,131.1 c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1l37.4-37.6c2.6-2.6,4.1-6.1,4.1-9.8C447.7,393.2,446.2,389.7,443.6,387.1z" }, null, -1)
|
|
99
103
|
])))
|
|
100
104
|
])
|
|
101
105
|
]),
|
|
102
|
-
e[
|
|
103
|
-
t("div", C, [
|
|
104
|
-
t("h5", k, l(a.$t("message.datasetDetails.datasets.modal.embedText")), 1)
|
|
105
|
-
]),
|
|
106
|
-
e[22] || (e[22] = d()),
|
|
106
|
+
e[30] || (e[30] = d()),
|
|
107
107
|
t("div", R, [
|
|
108
|
-
t("
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
t("h5", E, a(o.$t("message.datasetDetails.datasets.modal.embedText")), 1)
|
|
109
|
+
]),
|
|
110
|
+
e[31] || (e[31] = d()),
|
|
111
|
+
t("div", D, [
|
|
112
|
+
t("div", H, [
|
|
113
|
+
t("div", V, [
|
|
114
|
+
t("div", T, [
|
|
115
|
+
t("label", W, a(o.$t("message.datasetDetails.datasets.modal.width")), 1),
|
|
116
|
+
e[14] || (e[14] = t("br", null, null, -1)),
|
|
117
|
+
e[15] || (e[15] = d()),
|
|
118
|
+
t("div", M, [
|
|
119
|
+
i.isResponsive ? u("", !0) : n((m(), r("input", {
|
|
120
|
+
key: 0,
|
|
116
121
|
type: "number",
|
|
117
122
|
id: "iframeWidth",
|
|
118
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
119
|
-
onInput: e[1] || (e[1] = (...
|
|
120
|
-
min:
|
|
121
|
-
max:
|
|
122
|
-
}, null, 40,
|
|
123
|
-
[p,
|
|
124
|
-
])
|
|
123
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => i.iframeWidth = s),
|
|
124
|
+
onInput: e[1] || (e[1] = (...s) => l.updateEmbedCode && l.updateEmbedCode(...s)),
|
|
125
|
+
min: i.minRange,
|
|
126
|
+
max: i.maxRange
|
|
127
|
+
}, null, 40, L)), [
|
|
128
|
+
[p, i.iframeWidth]
|
|
129
|
+
]),
|
|
130
|
+
e[13] || (e[13] = d()),
|
|
131
|
+
i.isResponsive ? n((m(), r("input", {
|
|
132
|
+
key: 1,
|
|
133
|
+
class: "disable-width",
|
|
134
|
+
type: "text",
|
|
135
|
+
id: "iframeWidth",
|
|
136
|
+
"onUpdate:modelValue": e[2] || (e[2] = (s) => i.iframeWidth = s),
|
|
137
|
+
onInput: e[3] || (e[3] = (...s) => l.updateEmbedCode && l.updateEmbedCode(...s)),
|
|
138
|
+
min: i.minRange,
|
|
139
|
+
max: i.maxRange
|
|
140
|
+
}, null, 40, z)), [
|
|
141
|
+
[p, i.iframeWidth]
|
|
142
|
+
]) : u("", !0)
|
|
125
143
|
])
|
|
126
144
|
]),
|
|
127
|
-
e[
|
|
128
|
-
t("div",
|
|
129
|
-
t("label",
|
|
130
|
-
e[
|
|
131
|
-
e[
|
|
132
|
-
t("div",
|
|
145
|
+
e[18] || (e[18] = d()),
|
|
146
|
+
t("div", S, [
|
|
147
|
+
t("label", U, a(o.$t("message.datasetDetails.datasets.modal.height")), 1),
|
|
148
|
+
e[16] || (e[16] = t("br", null, null, -1)),
|
|
149
|
+
e[17] || (e[17] = d()),
|
|
150
|
+
t("div", B, [
|
|
133
151
|
n(t("input", {
|
|
134
152
|
type: "number",
|
|
135
153
|
id: "iframeHeight",
|
|
136
|
-
"onUpdate:modelValue": e[
|
|
137
|
-
onInput: e[
|
|
138
|
-
min:
|
|
139
|
-
max:
|
|
140
|
-
}, null, 40,
|
|
141
|
-
[p,
|
|
154
|
+
"onUpdate:modelValue": e[4] || (e[4] = (s) => i.iframeHeight = s),
|
|
155
|
+
onInput: e[5] || (e[5] = (...s) => l.updateEmbedCode && l.updateEmbedCode(...s)),
|
|
156
|
+
min: i.minRange,
|
|
157
|
+
max: i.maxRange
|
|
158
|
+
}, null, 40, I), [
|
|
159
|
+
[p, i.iframeHeight]
|
|
142
160
|
])
|
|
143
161
|
])
|
|
144
162
|
])
|
|
145
163
|
])
|
|
146
164
|
]),
|
|
147
|
-
e[
|
|
148
|
-
t("div",
|
|
149
|
-
|
|
150
|
-
|
|
165
|
+
e[22] || (e[22] = d()),
|
|
166
|
+
t("div", N, [
|
|
167
|
+
n(t("input", {
|
|
168
|
+
class: "form-check-input",
|
|
169
|
+
type: "checkbox",
|
|
170
|
+
"onUpdate:modelValue": e[6] || (e[6] = (s) => i.isResponsive = s),
|
|
171
|
+
onChange: e[7] || (e[7] = (...s) => l.updateEmbedCode && l.updateEmbedCode(...s))
|
|
172
|
+
}, null, 544), [
|
|
173
|
+
[b, i.isResponsive]
|
|
174
|
+
]),
|
|
175
|
+
e[19] || (e[19] = d()),
|
|
176
|
+
e[20] || (e[20] = t("label", {
|
|
177
|
+
class: "form-check-label",
|
|
178
|
+
for: "responsive"
|
|
179
|
+
}, `
|
|
180
|
+
Responsive
|
|
181
|
+
`, -1))
|
|
182
|
+
]),
|
|
183
|
+
e[23] || (e[23] = d()),
|
|
184
|
+
t("div", A, [
|
|
185
|
+
t("label", Z, a(o.$t("message.datasetDetails.datasets.modal.code")), 1),
|
|
186
|
+
e[21] || (e[21] = d()),
|
|
151
187
|
t("textarea", {
|
|
152
188
|
id: "ebmedTextarea",
|
|
153
189
|
style: { width: "100%", resize: "none", padding: "20px 25px 0px 20px", overflow: "hidden", "font-size": "18px", "line-height": "1.1", color: "#888888", "margin-top": "1.375rem", "word-break": "break-all", float: "left!important" },
|
|
154
190
|
class: "ecl-text-area ecl-text-area--m",
|
|
155
191
|
rows: "4",
|
|
156
|
-
value:
|
|
157
|
-
|
|
158
|
-
}, null, 8,
|
|
192
|
+
value: i.embedCode,
|
|
193
|
+
onClick: e[8] || (e[8] = (...s) => l.selectAll && l.selectAll(...s))
|
|
194
|
+
}, null, 8, P)
|
|
159
195
|
])
|
|
160
196
|
]),
|
|
161
|
-
e[
|
|
162
|
-
t("div",
|
|
197
|
+
e[32] || (e[32] = d()),
|
|
198
|
+
t("div", j, [
|
|
163
199
|
t("input", {
|
|
164
200
|
class: "form-check-input",
|
|
165
201
|
type: "radio",
|
|
@@ -167,56 +203,58 @@ function j(a, e, F, q, s, o) {
|
|
|
167
203
|
id: "complete",
|
|
168
204
|
value: "complete",
|
|
169
205
|
checked: "",
|
|
170
|
-
onChange: e[
|
|
206
|
+
onChange: e[9] || (e[9] = (...s) => l.updateEmbedCodeType && l.updateEmbedCodeType(...s))
|
|
171
207
|
}, null, 32),
|
|
172
|
-
e[
|
|
173
|
-
e[
|
|
208
|
+
e[24] || (e[24] = d()),
|
|
209
|
+
e[25] || (e[25] = t("label", {
|
|
174
210
|
class: "form-check-label",
|
|
175
211
|
for: "exampleRadios1"
|
|
176
212
|
}, `
|
|
177
213
|
Complete Dataset
|
|
178
214
|
`, -1))
|
|
179
215
|
]),
|
|
180
|
-
e[
|
|
181
|
-
t("div",
|
|
216
|
+
e[33] || (e[33] = d()),
|
|
217
|
+
t("div", F, [
|
|
182
218
|
t("input", {
|
|
183
219
|
class: "form-check-input",
|
|
184
220
|
type: "radio",
|
|
185
221
|
name: "exampleRadios",
|
|
186
222
|
id: "snippet",
|
|
187
223
|
value: "snippet",
|
|
188
|
-
onChange: e[
|
|
224
|
+
onChange: e[10] || (e[10] = (...s) => l.updateEmbedCodeType && l.updateEmbedCodeType(...s))
|
|
189
225
|
}, null, 32),
|
|
190
|
-
e[
|
|
191
|
-
e[
|
|
226
|
+
e[26] || (e[26] = d()),
|
|
227
|
+
e[27] || (e[27] = t("label", {
|
|
192
228
|
class: "form-check-label",
|
|
193
229
|
for: "exampleRadios2"
|
|
194
230
|
}, `
|
|
195
231
|
Snippet Dataset
|
|
196
232
|
`, -1))
|
|
197
233
|
]),
|
|
198
|
-
e[
|
|
199
|
-
t("div",
|
|
234
|
+
e[34] || (e[34] = d()),
|
|
235
|
+
t("div", q, [
|
|
200
236
|
t("button", {
|
|
201
|
-
onClick: e[
|
|
237
|
+
onClick: e[11] || (e[11] = (...s) => l.copy && l.copy(...s)),
|
|
202
238
|
class: "ecl-button ecl-button--secondary px-4 py-3",
|
|
203
239
|
style: { float: "left!important" },
|
|
204
240
|
type: "button"
|
|
205
|
-
},
|
|
206
|
-
e[
|
|
207
|
-
n(t("span",
|
|
208
|
-
|
|
209
|
-
|
|
241
|
+
}, a(o.$t("message.datasetDetails.datasets.modal.copy")), 1),
|
|
242
|
+
e[29] || (e[29] = d()),
|
|
243
|
+
n(t("span", G, [
|
|
244
|
+
t("label", J, [
|
|
245
|
+
e[28] || (e[28] = f('<svg width="20" height="23" viewBox="0 0 20 23" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-48ec495c><g clip-path="url(#clip0_13_474)" data-v-48ec495c><path d="M14.2857 20.125V21.9219C14.2857 22.5173 13.806 23 13.2143 23H1.07143C0.479688 23 0 22.5173 0 21.9219V5.39062C0 4.79519 0.479688 4.3125 1.07143 4.3125H4.28571V17.6094C4.28571 18.9965 5.40719 20.125 6.78571 20.125H14.2857ZM14.2857 4.67188V0H6.78571C6.19397 0 5.71429 0.482686 5.71429 1.07812V17.6094C5.71429 18.2048 6.19397 18.6875 6.78571 18.6875H18.9286C19.5203 18.6875 20 18.2048 20 17.6094V5.75H15.3571C14.7679 5.75 14.2857 5.26484 14.2857 4.67188ZM19.6862 3.27799L16.7424 0.315756C16.5414 0.113582 16.2689 1.49498e-06 15.9848 0L15.7143 0V4.3125H20V4.04032C20 3.75439 19.8871 3.48018 19.6862 3.27799Z" fill="#464646" data-v-48ec495c></path></g> <defs data-v-48ec495c><clipPath id="clip0_13_474" data-v-48ec495c><rect width="20" height="23" fill="white" data-v-48ec495c></rect></clipPath></defs></svg>', 1)),
|
|
246
|
+
d(" " + a(o.$t("message.datasetDetails.datasets.modal.copied")), 1)
|
|
247
|
+
])
|
|
210
248
|
], 512), [
|
|
211
|
-
[h,
|
|
249
|
+
[h, i.copied]
|
|
212
250
|
])
|
|
213
251
|
])
|
|
214
252
|
])
|
|
215
253
|
])
|
|
216
254
|
]);
|
|
217
255
|
}
|
|
218
|
-
const
|
|
256
|
+
const $ = /* @__PURE__ */ g(v, [["render", K], ["__scopeId", "data-v-48ec495c"]]);
|
|
219
257
|
export {
|
|
220
|
-
|
|
258
|
+
$ as default
|
|
221
259
|
};
|
|
222
260
|
//# sourceMappingURL=DatasetEmbedModal.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetEmbedModal.vue.mjs","sources":["../../lib/embed/DatasetEmbedModal.vue"],"sourcesContent":["<template>\n <div class=\"modal fade\" id=\"embedModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"\" aria-hidden=\"true\" style=\"background-color: rgba(0, 0, 0, 0.75);\">\n <div class=\"modal-dialog modal-dialog-centered modal-lg\" role=\"document\" style=\"z-index: 1100; max-width:52%;\">\n <div class=\"modal-content border-none\" style=\"border-radius: 0; padding: 1rem 2.125rem 2.75rem;\">\n <button type=\"button\" id=\"modal-close-btn\" data-dismiss=\"modal\" class=\"close\" aria-label=\"Close\">\n {{ $t('message.datasetDetails.datasets.modal.close') }}\n <span aria-hidden=\"true\" class=\"close-icon rounded-circle\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"white\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" height=\"8\" id=\"Layer_1\" style=\"enable-background:new 0 0 512 512;\" version=\"1.1\" viewBox=\"0 0 512 512\" width=\"8\" xml:space=\"preserve\">\n <path d=\"M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4 L256,197.8L124.9,68.3c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4L68,105.9c-5.4,5.4-5.4,14.2,0,19.6l131.5,130L68.4,387.1 c-2.6,2.6-4.1,6.1-4.1,9.8c0,3.7,1.4,7.2,4.1,9.8l37.4,37.6c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1L256,313.1l130.7,131.1 c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1l37.4-37.6c2.6-2.6,4.1-6.1,4.1-9.8C447.7,393.2,446.2,389.7,443.6,387.1z\"/>\n </svg>\n </span>\n </button>\n <div class=\"modal-head\">\n <h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\"display: inline-block;\">{{ $t('message.datasetDetails.datasets.modal.embedText') }}</h5>\n </div>\n <div class=\"modal-body\">\n <div class=\"container\" style=\"padding:0; margin:0;\">\n <div class=\"d-flex flex-row iframeSettings\">\n <div class=\"input-wrapper\">\n <label for=\"iframeWidth\">{{ $t('message.datasetDetails.datasets.modal.width') }}</label><br>\n <div class=\"input-with-px\">\n <input\n type=\"number\"\n id=\"iframeWidth\"\n v-model=\"iframeWidth\"\n @input=\"updateEmbedCode\"\n :min=\"minRange\"\n :max=\"maxRange\"\n />\n </div>\n </div>\n <div class=\"input-wrapper height\" style=\"padding-left: 3.3rem\">\n <label for=\"iframeHeight\">{{ $t('message.datasetDetails.datasets.modal.height') }}</label><br>\n <div class=\"input-with-px\">\n <input\n type=\"number\"\n id=\"iframeHeight\"\n v-model=\"iframeHeight\"\n @input=\"updateEmbedCode\"\n :min=\"minRange\"\n :max=\"maxRange\"\n />\n </div>\n </div>\n </div>\n </div>\n <div class=\"ecl-form-group\">\n <label class=\"ecl-form-label\" for=\"ebmedTextarea\" style=\"font-size:18px; font-weight: 400; color: #000000;\">{{ $t('message.datasetDetails.datasets.modal.code')}}</label>\n <textarea id=\"ebmedTextarea\" style=\"width: 100%; resize: none; padding: 20px 25px 0px 20px; overflow: hidden; font-size:18px; line-height: 1.1; color:#888888; margin-top: 1.375rem; word-break: break-all;float: left!important;\"\n class=\"ecl-text-area ecl-text-area--m\" rows=\"4\" :value=\"embedCode\" readonly></textarea>\n </div>\n </div>\n\n <div class=\"form-check mt-4\">\n <input class=\"form-check-input\" type=\"radio\" name=\"exampleRadios\" id=\"complete\" value=\"complete\" checked @change=\"updateEmbedCodeType\">\n <label class=\"form-check-label\" for=\"exampleRadios1\">\n Complete Dataset\n </label>\n </div>\n <div class=\"form-check\">\n <input class=\"form-check-input\" type=\"radio\" name=\"exampleRadios\" id=\"snippet\" value=\"snippet\" @change=\"updateEmbedCodeType\">\n <label class=\"form-check-label\" for=\"exampleRadios2\">\n Snippet Dataset\n </label>\n </div>\n <div class=\"modal-footer justify-content-start\">\n <button @click=\"copy\" class=\"ecl-button ecl-button--secondary px-4 py-3\" style=\"float: left!important;\" type=\"button\">{{ $t('message.datasetDetails.datasets.modal.copy')}}</button>\n <span v-show=\"copied\" class=\"copied\">\n <svg width=\"20\" height=\"23\" viewBox=\"0 0 20 23\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0_13_474)\">\n <path d=\"M14.2857 20.125V21.9219C14.2857 22.5173 13.806 23 13.2143 23H1.07143C0.479688 23 0 22.5173 0 21.9219V5.39062C0 4.79519 0.479688 4.3125 1.07143 4.3125H4.28571V17.6094C4.28571 18.9965 5.40719 20.125 6.78571 20.125H14.2857ZM14.2857 4.67188V0H6.78571C6.19397 0 5.71429 0.482686 5.71429 1.07812V17.6094C5.71429 18.2048 6.19397 18.6875 6.78571 18.6875H18.9286C19.5203 18.6875 20 18.2048 20 17.6094V5.75H15.3571C14.7679 5.75 14.2857 5.26484 14.2857 4.67188ZM19.6862 3.27799L16.7424 0.315756C16.5414 0.113582 16.2689 1.49498e-06 15.9848 0L15.7143 0V4.3125H20V4.04032C20 3.75439 19.8871 3.48018 19.6862 3.27799Z\" fill=\"#464646\"/>\n </g>\n <defs>\n <clipPath id=\"clip0_13_474\">\n <rect width=\"20\" height=\"23\" fill=\"white\"/>\n </clipPath>\n </defs>\n </svg>\n {{ $t('message.datasetDetails.datasets.modal.copied') }}\n </span>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script >\nexport default {\n name: \"embed-modal\",\n data() {\n return {\n iframeWidth: this.$env.content.datasetDetails.embed.defaultWidth,\n iframeHeight: this.$env.content.datasetDetails.embed.defaultHeight,\n embedCode: '',\n copied: false,\n minRange: this.$env.content.datasetDetails.embed.minRange,\n maxRange: this.$env.content.datasetDetails.embed.maxRange,\n embedType: 'embed', // default to 'embed'\n };\n },\n methods: {\n updateEmbedCode() {\n // Ensure the input values are within the specified range\n this.iframeWidth = Math.min(Math.max(this.iframeWidth, this.minRange), this.maxRange);\n this.iframeHeight = Math.min(Math.max(this.iframeHeight, this.minRange), this.maxRange);\n\n // Generate the embed code\n const currentURL = window.location.href.replace(/\\?.*$/, '') + '/' + this.embedType;\n this.embedCode = `<iframe src=\"${currentURL}\" width=\"${this.iframeWidth}\" height=\"${this.iframeHeight}\" frameborder=\"0\"></iframe>`;\n },\n updateEmbedCodeType(event) {\n // Update the embedType based on selected radio button\n this.embedType = event.target.value === 'snippet' ? 'embed-snippet' : 'embed';\n this.updateEmbedCode(); // Regenerate the embed code with the new type\n },\n copy() {\n navigator.clipboard.writeText(this.embedCode)\n .then(() => {\n this.copied = true;\n setTimeout(() => {\n this.copied = false;\n }, 3000);\n })\n .catch((error) => {\n // Handle the error\n console.error('Failed to copy: ', error);\n });\n }\n },\n created() {\n // Initialize the embed code with default values\n this.updateEmbedCode();\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n.modal-title {\n float: left!important;\n font-family: 'Arial';\n font-style: normal;\n font-weight: 700;\n font-size: 24px;\n // line-height: 24px;\n color: #000000;\n}\n.modal-head {\n border-bottom: none;\n padding: 0;\n padding-bottom: 1rem;\n}\n.modal-body {\n border-top: 1px solid #e9ecef;\n padding: 0;\n}\n.ecl-button {\n font-size: 16px;\n}\n.modal-footer {\n border-top: none;\n padding: 2.438rem 0 0 0;\n font-size: 16px;\n}\n.close {\n font-size: 14px;\n color: #1C3D66;\n opacity: 1;\n padding: 0.5rem!important;\n text-align: right;\n .close-icon {\n color:white;\n background: #1C3D66;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 16px;\n height: 16px;\n float: right;\n margin-left: 10px;\n }\n}\n.active {\n color: #000000!important;\n}\n.iframeSettings {\n padding: 1.875rem 0 2.438rem 0;\n font-size: 18px;\n\n input {\n padding: 1.563rem 0rem;\n }\n /* Style the input field wrapper */\n.input-with-px {\n position: relative;\n margin-top: 5px;\n\n}\n\n.input-with-px input {\n padding: 15px 50px 15px 50px;\n border: 1px solid #A5A5A5;\n}\n\n/* Style the \"px\" text */\n.input-with-px::after {\n content: \"px\";\n position: absolute;\n right: 30%;\n top: 54%;\n transform: translateY(-50%);\n color: #777;\n pointer-events: none; /* Prevent interaction with the \"px\" span */\n}\n}\n.copied {\n margin-left: 30px;\n text-decoration: none !important;\n}\n/* Firefox-specific styles */\n@-moz-document url-prefix() {\n .input-with-px input {\n max-width: 240px;\n }\n}\n@media screen and (max-width: 1100px) {\n .iframeSettings {\n flex-direction: column!important;\n }\n .height {\n padding-left: 0!important;\n margin-top: 10px;\n }\n #ebmedTextarea {\n padding-bottom: 20px!important;\n }\n}\n</style>\n"],"names":["_sfc_main","currentURL","event","error","_hoisted_7","_hoisted_9","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_hoisted_4","_createTextVNode","_toDisplayString","_ctx","_hoisted_5","_hoisted_6","_cache","_hoisted_8","_hoisted_10","$event","$data","$options","args","_hoisted_16","_hoisted_21","_withDirectives","_createStaticVNode"],"mappings":";;;AAuFA,MAAKA,IAAU;AAAA,EACX,MAAM;AAAA,EACN,OAAO;AACP,WAAO;AAAA,MACL,aAAa,KAAK,KAAK,QAAQ,eAAe,MAAM;AAAA,MACpD,cAAc,KAAK,KAAK,QAAQ,eAAe,MAAM;AAAA,MACrD,WAAW;AAAA,MACX,QAAQ;AAAA,MACR,UAAU,KAAK,KAAK,QAAQ,eAAe,MAAM;AAAA,MACjD,UAAU,KAAK,KAA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EAYO,QAZPJ,GAYO;AAAA,YA/EtBa,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAU,EAAA,g9BAAA,CAAA;AAAA,YAAAf,EA6EwB,QACHE,EAAE,GAAA,8CAAA,CAAA,GAAA,CAAA;AAAA;gBAXMO,EAAM,MAAA;AAAA;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"DatasetEmbedModal.vue.mjs","sources":["../../lib/embed/DatasetEmbedModal.vue"],"sourcesContent":["<template>\n <div class=\"modal fade\" id=\"embedModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"\" aria-hidden=\"true\" style=\"background-color: rgba(0, 0, 0, 0.75);\">\n <div class=\"modal-dialog modal-dialog-centered modal-lg\" role=\"document\" style=\"z-index: 1100; max-width:52%;\">\n <div class=\"modal-content border-none\" style=\"border-radius: 0; padding: 1rem 2.125rem 2.75rem;\">\n <button type=\"button\" id=\"modal-close-btn\" data-dismiss=\"modal\" class=\"close\" aria-label=\"Close\">\n {{ $t('message.datasetDetails.datasets.modal.close') }}\n <span aria-hidden=\"true\" class=\"close-icon rounded-circle\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"white\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" height=\"8\" id=\"Layer_1\" style=\"enable-background:new 0 0 512 512;\" version=\"1.1\" viewBox=\"0 0 512 512\" width=\"8\" xml:space=\"preserve\">\n <path d=\"M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4 L256,197.8L124.9,68.3c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4L68,105.9c-5.4,5.4-5.4,14.2,0,19.6l131.5,130L68.4,387.1 c-2.6,2.6-4.1,6.1-4.1,9.8c0,3.7,1.4,7.2,4.1,9.8l37.4,37.6c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1L256,313.1l130.7,131.1 c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1l37.4-37.6c2.6-2.6,4.1-6.1,4.1-9.8C447.7,393.2,446.2,389.7,443.6,387.1z\"/>\n </svg>\n </span>\n </button>\n <div class=\"modal-head\">\n <h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\"display: inline-block;\">{{ $t('message.datasetDetails.datasets.modal.embedText') }}</h5>\n </div>\n <div class=\"modal-body\">\n <div class=\"container\" style=\"padding:0; margin:0;\">\n <div class=\"d-flex flex-row iframeSettings\">\n <div class=\"input-wrapper\">\n <label for=\"iframeWidth\">{{ $t('message.datasetDetails.datasets.modal.width') }}</label><br>\n <div class=\"input-with-px\">\n <input v-if=\"!isResponsive\"\n \n type=\"number\"\n id=\"iframeWidth\"\n v-model=\"iframeWidth\"\n @input=\"updateEmbedCode\"\n :min=\"minRange\"\n :max=\"maxRange\"\n />\n\n <input v-if=\"isResponsive\"\n class=\"disable-width\"\n type=\"text\"\n id=\"iframeWidth\"\n v-model=\"iframeWidth\"\n @input=\"updateEmbedCode\"\n :min=\"minRange\"\n :max=\"maxRange\"\n />\n </div>\n </div>\n <div class=\"input-wrapper height\" style=\"padding-left: 3.3rem\">\n <label for=\"iframeHeight\">{{ $t('message.datasetDetails.datasets.modal.height') }}</label><br>\n <div class=\"input-with-px\">\n <input\n type=\"number\"\n id=\"iframeHeight\"\n v-model=\"iframeHeight\"\n @input=\"updateEmbedCode\"\n :min=\"minRange\"\n :max=\"maxRange\"\n />\n </div>\n </div>\n </div>\n </div>\n \n <div class=\"form-check mb-4\">\n <input class=\"form-check-input\" type=\"checkbox\" v-model=\"isResponsive\" @change=\"updateEmbedCode\">\n <label class=\"form-check-label\" for=\"responsive\">\n Responsive\n </label>\n </div>\n\n <div class=\"ecl-form-group\">\n <label class=\"ecl-form-label\" for=\"ebmedTextarea\" style=\"font-size:18px; font-weight: 400; color: #000000;\">{{ $t('message.datasetDetails.datasets.modal.code')}}</label>\n <textarea id=\"ebmedTextarea\" style=\"width: 100%; resize: none; padding: 20px 25px 0px 20px; overflow: hidden; font-size:18px; line-height: 1.1; color:#888888; margin-top: 1.375rem; word-break: break-all;float: left!important;\"\n class=\"ecl-text-area ecl-text-area--m\" rows=\"4\" :value=\"embedCode\" @click=\"selectAll\" ></textarea>\n </div>\n </div>\n\n <div class=\"form-check mt-4\">\n <input class=\"form-check-input\" type=\"radio\" name=\"exampleRadios\" id=\"complete\" value=\"complete\" checked @change=\"updateEmbedCodeType\">\n <label class=\"form-check-label\" for=\"exampleRadios1\">\n Complete Dataset\n </label>\n </div>\n <div class=\"form-check\">\n <input class=\"form-check-input\" type=\"radio\" name=\"exampleRadios\" id=\"snippet\" value=\"snippet\" @change=\"updateEmbedCodeType\">\n <label class=\"form-check-label\" for=\"exampleRadios2\">\n Snippet Dataset\n </label>\n </div> \n <div class=\"modal-footer justify-content-start\"> \n <button @click=\"copy\" class=\"ecl-button ecl-button--secondary px-4 py-3\" style=\"float: left!important;\" type=\"button\">{{ $t('message.datasetDetails.datasets.modal.copy')}}</button>\n <span v-show=\"copied\" class=\"copied\">\n <label class=\"form-check-label\">\n <svg width=\"20\" height=\"23\" viewBox=\"0 0 20 23\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0_13_474)\">\n <path d=\"M14.2857 20.125V21.9219C14.2857 22.5173 13.806 23 13.2143 23H1.07143C0.479688 23 0 22.5173 0 21.9219V5.39062C0 4.79519 0.479688 4.3125 1.07143 4.3125H4.28571V17.6094C4.28571 18.9965 5.40719 20.125 6.78571 20.125H14.2857ZM14.2857 4.67188V0H6.78571C6.19397 0 5.71429 0.482686 5.71429 1.07812V17.6094C5.71429 18.2048 6.19397 18.6875 6.78571 18.6875H18.9286C19.5203 18.6875 20 18.2048 20 17.6094V5.75H15.3571C14.7679 5.75 14.2857 5.26484 14.2857 4.67188ZM19.6862 3.27799L16.7424 0.315756C16.5414 0.113582 16.2689 1.49498e-06 15.9848 0L15.7143 0V4.3125H20V4.04032C20 3.75439 19.8871 3.48018 19.6862 3.27799Z\" fill=\"#464646\"/>\n </g>\n <defs>\n <clipPath id=\"clip0_13_474\">\n <rect width=\"20\" height=\"23\" fill=\"white\"/>\n </clipPath>\n </defs>\n </svg>\n \n {{ $t('message.datasetDetails.datasets.modal.copied') }}\n </label>\n \n </span>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script >\nexport default {\n name: \"embed-modal\",\n data() {\n return {\n iframeWidth: this.$env.content.datasetDetails.embed.defaultWidth,\n iframeHeight: this.$env.content.datasetDetails.embed.defaultHeight,\n embedCode: '',\n copied: false,\n minRange: this.$env.content.datasetDetails.embed.minRange,\n maxRange: this.$env.content.datasetDetails.embed.maxRange,\n embedType: 'embed', // default to 'embed'\n isResponsive: false\n };\n },\n methods: {\n selectAll(event) {\n event.target.select()\n },\n updateEmbedCode() {\n // Ensure the input values are within the specified range\n if(this.isResponsive){\n this.iframeWidth = '100%';\n } else {\n this.iframeWidth = 900;\n this.iframeWidth = Math.min(Math.max(this.iframeWidth, this.minRange), this.maxRange);\n this.iframeHeight = Math.min(Math.max(this.iframeHeight, this.minRange), this.maxRange);\n }\n\n // Generate the embed code\n const currentURL = window.location.href.replace(/\\?.*$/, '') + '/' + this.embedType;\n this.embedCode = `<iframe src=\"${currentURL}\" width=\"${this.iframeWidth}\" height=\"${this.iframeHeight}\" frameborder=\"0\"></iframe>`;\n },\n updateEmbedCodeType(event) {\n // Update the embedType based on selected radio button\n this.embedType = event.target.value === 'snippet' ? 'embed-snippet' : 'embed';\n this.updateEmbedCode(); // Regenerate the embed code with the new type\n },\n copy() {\n navigator.clipboard.writeText(this.embedCode)\n .then(() => {\n this.copied = true;\n setTimeout(() => {\n this.copied = false;\n }, 3000);\n })\n .catch((error) => {\n // Handle the error\n console.error('Failed to copy: ', error);\n });\n }\n },\n created() {\n // Initialize the embed code with default values\n this.updateEmbedCode();\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n.modal-title {\n float: left!important;\n font-family: 'Arial';\n font-style: normal;\n font-weight: 700;\n font-size: 24px;\n // line-height: 24px;\n color: #000000;\n}\n\n.disable-width {\n background: #d8d8d8;\n border-radius: 10px;\n border: 1px solid #cecece !important;\n width: 140px;\n}\n.modal-head {\n border-bottom: none;\n padding: 0;\n padding-bottom: 1rem;\n}\n.modal-body {\n border-top: 1px solid #e9ecef;\n padding: 0;\n}\n.ecl-button {\n font-size: 16px;\n}\n.modal-footer {\n border-top: none;\n padding: 2.438rem 0 0 0;\n font-size: 16px;\n}\n\n.close {\n font-size: 14px;\n color: #1C3D66;\n opacity: 1;\n padding: 0.5rem!important;\n text-align: right;\n .close-icon {\n color:white;\n background: #1C3D66;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 16px;\n height: 16px;\n float: right;\n margin-left: 10px;\n }\n}\n.active {\n color: #000000!important;\n}\n.iframeSettings {\n padding: 1.875rem 0 1.438rem 0;\n font-size: 18px;\n\n input {\n padding: 1.563rem 0rem;\n }\n /* Style the input field wrapper */\n.input-with-px {\n position: relative;\n margin-top: 5px;\n\n}\n\n.input-with-px input {\n padding: 15px 30px 15px 50px;\n border: 1px solid #cbcbcb;\n}\n\n/* Style the \"px\" text */\n.input-with-px::after {\n// content: \"px\";\n position: absolute;\n right: 30%;\n top: 54%;\n transform: translateY(-50%);\n color: #777;\n pointer-events: none; /* Prevent interaction with the \"px\" span */\n}\n}\n.copied {\n margin-left: 30px;\n text-decoration: none !important;\n}\n/* Firefox-specific styles */\n@-moz-document url-prefix() {\n .input-with-px input {\n max-width: 240px;\n }\n}\n@media screen and (max-width: 1100px) {\n .iframeSettings {\n flex-direction: column!important;\n }\n .height {\n padding-left: 0!important;\n margin-top: 10px;\n }\n #ebmedTextarea {\n padding-bottom: 20px!important;\n }\n}\n</style>\n"],"names":["_sfc_main","event","currentURL","error","_hoisted_7","_hoisted_9","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_hoisted_4","_createTextVNode","_toDisplayString","_ctx","_hoisted_5","_hoisted_6","_cache","_hoisted_8","_hoisted_10","$data","_createCommentVNode","$event","$options","args","_hoisted_17","_hoisted_23","_withDirectives","_createStaticVNode"],"mappings":";;;AA8GA,MAAKA,IAAU;AAAA,EACX,MAAM;AAAA,EACN,OAAO;AACP,WAAO;AAAA,MACL,aAAa,KAAK,KAAK,QAAQ,eAAe,MAAM;AAAA,MACpD,cAAc,KAAK,KAAK,QAAQ,eAAe,MAAM;AAAA,MACrD,WAAW;AAAA,MACX,QAAQ;AAAA,MACR,UAAU,KAAK,KAAK,QAAQ,eAAe,MAAM;AAAA,MACjD,UAAU,KAAK,KAAK,QAAQ,eAAe,MAAM;AAAA,MACjD,WAAW;AAAA;AAAA,MACX,cAAc;AAAA;EAEjB;AAAA,EACD,SAAS;AAAA,IACR,UAAUC,GAAO;AACd,MAAAA,EAAM,OAAO,OAAO;AAAA,IACrB;AAAA,IACD,kBAAkB;AAEhB,MAAG,KAAK,eACR,KAAK,cAAc,UAEnB,KAAK,cAAc,KACnB,KAAK,cAAc,KAAK,IAAI,KAAK,IAAI,KAAK,aAAa,KAAK,QAAQ,GAAG,KAAK,QAAQ,GACpF,KAAK,eAAe,KAAK,IAAI,KAAK,IAAI,KAAK,cAAc,KAAK,QAAQ,GAAG,KAAK,QAAQ;AAItF,YAAMC,IAAa,OAAO,SAAS,KAAK,QAAQ,SAAS,EAAE,IAAI,MAAM,KAAK;AAC1E,WAAK,YAAY,gBAAgBA,CAAU,YAAY,KAAK,WAAW,aAAa,KAAK,YAAY;AAAA,IACtG;AAAA,IACD,oBAAoBD,GAAO;AAEzB,WAAK,YAAYA,EAAM,OAAO,UAAU,YAAY,kBAAkB,SACtE,KAAK,gB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AAA;AAAA,YAAtH,OAAM;AAAA,YAAmB,MAAK;AAAA,YAAQ,MAAK;AAAA,YAAgB,IAAG;AAAA,YAAU,OAAM;AAAA,YAAW,sCAAQe,EAAmB,uBAAAA,EAAA,oBAAA,GAAAC,CAAA;AAAA;UA/E1IP,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAL,EAAA;AAAA,4BAgFeJ,EAEQ,SAAA;AAAA,YAFD,OAAM;AAAA,YAAmB,KAAI;AAAA,aAAiB;AAAA;AAAA,kBAErD,EAAA;AAAA;QAlFfS,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAL,EAAA;AAAA,QAoFYJ,EAmBM,OAnBNN,GAmBM;AAAA,UAlBHM,EAAoL,UAAA;AAAA,YAA3K,qCAAOe,EAAI,QAAAA,EAAA,KAAA,GAAAC,CAAA;AAAA,YAAE,OAAM;AAAA,YAA6C,OAAA,EAA8B,OAAA,iBAAA;AAAA,YAAC,MAAK;AAAA,eAAYV,EAAE,GAAA,4CAAA,CAAA,GAAA,CAAA;AAAA,UArF1IG,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAL,EAAA;AAAA,UAsFee,EAAAnB,EAgBO,QAhBPL,GAgBO;AAAA,YAfJK,EAaK,SAbLJ,GAaK;AAAA,cApGvBa,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAW,EAAA,g9BAAA,CAAA;AAAA,cAAAhB,EAiGwB,QAEAE,EAAE,GAAA,8CAAA,CAAA,GAAA,CAAA;AAAA;;gBAbGM,EAAM,MAAA;AAAA;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import p from "../datasetDetails/header/DatasetDetailsHeaderTitle.vue.mjs";
|
|
2
2
|
import u from "../datasetDetails/DatasetDetailsDataset.vue.mjs";
|
|
3
3
|
import f from "../datasetDetails/header/DatasetDetailsHeaderCatalogue.vue.mjs";
|
|
4
|
-
import { mapGetters as
|
|
5
|
-
import { resolveComponent as
|
|
4
|
+
import { mapGetters as b } from "vuex";
|
|
5
|
+
import { resolveComponent as l, openBlock as c, createElementBlock as _, createElementVNode as e, createTextVNode as o, createVNode as d } from "vue";
|
|
6
6
|
import g from "../assets/img/ec-logo.png.mjs";
|
|
7
7
|
import "./EmbedDataset.vue2.mjs";
|
|
8
8
|
import w from "../_virtual/_plugin-vue_export-helper.mjs";
|
|
@@ -16,35 +16,35 @@ const D = {
|
|
|
16
16
|
DatasetDetailsHeaderCatalogue: f
|
|
17
17
|
},
|
|
18
18
|
computed: {
|
|
19
|
-
...
|
|
19
|
+
...b("datasetDetails", [
|
|
20
20
|
"getLanguages",
|
|
21
21
|
"getTitle"
|
|
22
22
|
])
|
|
23
23
|
},
|
|
24
24
|
methods: {
|
|
25
25
|
openUrl() {
|
|
26
|
-
const
|
|
27
|
-
window.open(
|
|
26
|
+
const r = window.location.href.split("/embed")[0];
|
|
27
|
+
window.open(r, "_blank");
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
}, v = { class: "embed-dataset d-flex flex-column overflow-auto" }, x = { class: "embed-header px-5 py-4 d-flex flex-row justify-content-between" }, h = { class: "openUrl align-self-end" }, k = { class: "p-5" },
|
|
31
|
-
function
|
|
32
|
-
const
|
|
33
|
-
return c(),
|
|
30
|
+
}, v = { class: "embed-dataset d-flex flex-column overflow-auto" }, x = { class: "embed-header px-5 py-4 d-flex flex-row justify-content-between" }, h = { class: "openUrl align-self-end" }, k = { class: "p-5" }, U = { class: "mb-5" };
|
|
31
|
+
function y(r, t, E, V, C, s) {
|
|
32
|
+
const n = l("dataset-details-header-title"), i = l("dataset-details-header-catalogue"), m = l("dataset-details-dataset");
|
|
33
|
+
return c(), _("div", v, [
|
|
34
34
|
e("div", x, [
|
|
35
|
-
t[
|
|
35
|
+
t[3] || (t[3] = e("div", null, [
|
|
36
36
|
e("img", {
|
|
37
37
|
class: "logo",
|
|
38
38
|
src: g
|
|
39
39
|
})
|
|
40
40
|
], -1)),
|
|
41
|
-
t[
|
|
41
|
+
t[4] || (t[4] = o()),
|
|
42
42
|
e("div", h, [
|
|
43
43
|
e("button", {
|
|
44
|
-
onClick: t[0] || (t[0] = (...
|
|
44
|
+
onClick: t[0] || (t[0] = (...a) => s.openUrl && s.openUrl(...a)),
|
|
45
45
|
class: "ecl-button ecl-button--secondary mt-3",
|
|
46
46
|
type: "button"
|
|
47
|
-
}, t[
|
|
47
|
+
}, t[2] || (t[2] = [
|
|
48
48
|
e("svg", {
|
|
49
49
|
class: "mr-3",
|
|
50
50
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -60,25 +60,30 @@ function E(d, t, V, L, N, l) {
|
|
|
60
60
|
]))
|
|
61
61
|
])
|
|
62
62
|
]),
|
|
63
|
-
t[
|
|
64
|
-
t[
|
|
63
|
+
t[7] || (t[7] = o()),
|
|
64
|
+
t[8] || (t[8] = e("div", { class: "headline" }, [
|
|
65
65
|
e("p", { class: "px-5 py-3 m-0" }, "data.europa.eu - The official portal for European data")
|
|
66
66
|
], -1)),
|
|
67
|
-
t[
|
|
67
|
+
t[9] || (t[9] = o()),
|
|
68
68
|
e("div", k, [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
e("button", {
|
|
70
|
+
onClick: t[1] || (t[1] = (...a) => s.openUrl && s.openUrl(...a)),
|
|
71
|
+
class: "btn-title"
|
|
72
|
+
}, [
|
|
73
|
+
d(n, {
|
|
74
|
+
titleFontSize: "0.75rem",
|
|
75
|
+
embed: !0
|
|
76
|
+
})
|
|
77
|
+
]),
|
|
78
|
+
t[5] || (t[5] = o()),
|
|
79
|
+
e("div", U, [
|
|
80
|
+
d(i, {
|
|
76
81
|
disableLink: !0,
|
|
77
82
|
catalogueNameFontSize: "1rem"
|
|
78
83
|
})
|
|
79
84
|
]),
|
|
80
|
-
t[
|
|
81
|
-
|
|
85
|
+
t[6] || (t[6] = o()),
|
|
86
|
+
d(m, {
|
|
82
87
|
showDatasetDescription: !1,
|
|
83
88
|
showDatasetProperties: !1,
|
|
84
89
|
showPublisher: !0,
|
|
@@ -87,7 +92,7 @@ function E(d, t, V, L, N, l) {
|
|
|
87
92
|
])
|
|
88
93
|
]);
|
|
89
94
|
}
|
|
90
|
-
const S = /* @__PURE__ */ w(D, [["render",
|
|
95
|
+
const S = /* @__PURE__ */ w(D, [["render", y], ["__scopeId", "data-v-72dfd6c9"]]);
|
|
91
96
|
export {
|
|
92
97
|
S as default
|
|
93
98
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbedDataset.vue.mjs","sources":["../../lib/embed/EmbedDataset.vue"],"sourcesContent":["<template>\n <div class=\"embed-dataset d-flex flex-column overflow-auto\">\n <div class=\"embed-header px-5 py-4 d-flex flex-row justify-content-between\">\n <div>\n <img class=\"logo\" src=\"../assets/img/ec-logo.png\" />\n </div>\n <div class=\"openUrl align-self-end\">\n <button @click=\"openUrl\" class=\"ecl-button ecl-button--secondary mt-3\" type=\"button\"><svg class=\"mr-3\" xmlns=\"http://www.w3.org/2000/svg\" width=\"22\" height=\"21\"><path fill=\"#123F94\" d=\"M7 7h8.586L5.293 17.293l1.414 1.414L17 8.414V17h2V5H7v2z\"/></svg>Open Dataset</button>\n </div>\n </div>\n <div class=\"headline\">\n <p class=\"px-5 py-3 m-0\">data.europa.eu - The official portal for European data</p>\n </div>\n <div class=\"p-5\">\n
|
|
1
|
+
{"version":3,"file":"EmbedDataset.vue.mjs","sources":["../../lib/embed/EmbedDataset.vue"],"sourcesContent":["<template>\n <div class=\"embed-dataset d-flex flex-column overflow-auto\">\n <div class=\"embed-header px-5 py-4 d-flex flex-row justify-content-between\">\n <div>\n <img class=\"logo\" src=\"../assets/img/ec-logo.png\" />\n </div>\n <div class=\"openUrl align-self-end\">\n <button @click=\"openUrl\" class=\"ecl-button ecl-button--secondary mt-3\" type=\"button\"><svg class=\"mr-3\" xmlns=\"http://www.w3.org/2000/svg\" width=\"22\" height=\"21\"><path fill=\"#123F94\" d=\"M7 7h8.586L5.293 17.293l1.414 1.414L17 8.414V17h2V5H7v2z\"/></svg>Open Dataset</button>\n </div>\n </div>\n <div class=\"headline\">\n <p class=\"px-5 py-3 m-0\">data.europa.eu - The official portal for European data</p>\n </div>\n <div class=\"p-5\">\n <button @click=\"openUrl\" class=\"btn-title\"> \n <dataset-details-header-title \n titleFontSize=\"0.75rem\"\n :embed=\"true\"\n /> </button>\n <div class=\"mb-5\">\n <dataset-details-header-catalogue \n :disableLink=\"true\"\n catalogueNameFontSize=\"1rem\"\n />\n </div>\n <dataset-details-dataset\n :showDatasetDescription=\"false\"\n :showDatasetProperties=\"false\"\n :showPublisher=\"true\"\n :embed=\"true\"\n /> \n </div>\n </div>\n</template>\n\n<script>\nimport DatasetDetailsHeaderTitle from \"../datasetDetails/header/DatasetDetailsHeaderTitle\"\nimport DatasetDetailsDataset from \"../datasetDetails/DatasetDetailsDataset.vue\"\nimport DatasetDetailsHeaderCatalogue from \"../datasetDetails/header/DatasetDetailsHeaderCatalogue.vue\"\nimport { mapGetters } from \"vuex\";\n\nexport default {\n name: 'EmbedDataset',\n created() {},\n components: {\n DatasetDetailsHeaderTitle, DatasetDetailsDataset, DatasetDetailsHeaderCatalogue\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getLanguages',\n 'getTitle'\n ]),\n },\n methods: {\n openUrl() {\n const url = window.location.href.split('/embed')[0];\n window.open(url, '_blank');\n }\n }\n};\n</script>\n\n<style scoped>\n.embed-dataset {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: white; /* Semi-transparent background */\n display: flex;\n color: black;\n z-index: 999999; /* Ensure it's above other content */\n}\n\n.btn-title {\n border: none;\n background: none;\n text-align: left;\n width: 100%;\n}\n\n.logo {\n width: 290px;\n height: 70px;\n}\n.headline {\n background: #123F94;\n color: white;\n font-size: 24px;\n}\n.dsd-title-tag {\n display: none!important;\n}\n\n@media screen and (max-width: 600px) {\n .embed-header {\n flex-direction: column!important;\n justify-content: flex-start!important;\n }\n .openUrl {\n align-self: auto!important;\n }\n}\n</style>\n\n\n\n\n"],"names":["_sfc_main","DatasetDetailsHeaderTitle","DatasetDetailsDataset","DatasetDetailsHeaderCatalogue","mapGetters","url","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_openBlock","_createElementBlock","_createElementVNode","_imports_0","_cache","_createTextVNode","$options","args","_createVNode","_component_dataset_details_header_title","_component_dataset_details_header_catalogue","_component_dataset_details_dataset"],"mappings":";;;;;;;;AAyCA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,EAAE;AAAA,EACZ,YAAY;AAAA,IACR,2BAAAC;AAAA,IAA2B,uBAAAC;AAAA,IAAuB,+BAAAC;AAAA,EACrD;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,kBAAkB;AAAA,MAC9B;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACF;AAAA,EACD,SAAS;AAAA,IACL,UAAU;AACR,YAAMC,IAAM,OAAO,SAAS,KAAK,MAAM,QAAQ,EAAE,CAAC;AAClD,aAAO,KAAKA,GAAK,QAAQ;AAAA,IAC3B;AAAA,EACJ;AACF,GA1DOC,IAAA,EAAA,OAAM,iDAAgD,GACjDC,IAAA,EAAA,OAAM,iEAAgE,GAIlEC,IAAA,EAAA,OAAM,yBAAwB,GAOlCC,IAAA,EAAA,OAAM,MAAK,GAMLC,IAAA,EAAA,OAAM,OAAM;;;AAlB5B,SAAAC,EAAA,GAAAC,EA+BM,OA/BNN,GA+BM;AAAA,IA9BDO,EAOM,OAPNN,GAOM;AAAA,sBANFM,EAEM,OAAA,MAAA;AAAA,QADFA,EAAoD,OAAA;AAAA,UAA/C,OAAM;AAAA,UAAO,KAAAC;AAAA;;MAJjCC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MAMWH,EAEM,OAFNL,GAEM;AAAA,QADFK,EAA+Q,UAAA;AAAA,UAAtQ,mC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