@piveau/piveau-hub-ui-modules 4.3.1 → 4.3.3

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.
Files changed (62) hide show
  1. package/dist/composables/useRuntimeEnv.d.ts +1 -1
  2. package/dist/configurations/config-schema/apiSchema.d.ts +3 -3
  3. package/dist/configurations/config-schema/apiSchema.mjs +1 -1
  4. package/dist/configurations/config-schema/apiSchema.mjs.map +1 -1
  5. package/dist/configurations/config-schema/configSchema.d.ts +5 -5
  6. package/dist/data-provider-interface/DPIMenu.vue.mjs +37 -36
  7. package/dist/data-provider-interface/DPIMenu.vue.mjs.map +1 -1
  8. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +149 -135
  9. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
  10. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +152 -140
  11. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
  12. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +60 -60
  13. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
  14. package/dist/data-provider-interface/components/Dropup.vue.mjs +17 -17
  15. package/dist/data-provider-interface/components/Dropup.vue.mjs.map +1 -1
  16. package/dist/data-provider-interface/components/Dropup.vue2.mjs +2 -2
  17. package/dist/data-provider-interface/components/FileUpload.vue.d.ts +5 -2
  18. package/dist/data-provider-interface/components/FileUpload.vue.mjs +119 -117
  19. package/dist/data-provider-interface/components/FileUpload.vue.mjs.map +1 -1
  20. package/dist/data-provider-interface/components/Navigation.vue.d.ts +1 -1
  21. package/dist/data-provider-interface/components/Navigation.vue.mjs +69 -69
  22. package/dist/data-provider-interface/components/Navigation.vue.mjs.map +1 -1
  23. package/dist/data-provider-interface/components/SimpleInput.vue.mjs +19 -14
  24. package/dist/data-provider-interface/components/SimpleInput.vue.mjs.map +1 -1
  25. package/dist/data-provider-interface/components/SimpleSelect.vue.mjs +31 -31
  26. package/dist/data-provider-interface/components/SimpleSelect.vue.mjs.map +1 -1
  27. package/dist/data-provider-interface/components/SpatialInput.vue.mjs +90 -94
  28. package/dist/data-provider-interface/components/SpatialInput.vue.mjs.map +1 -1
  29. package/dist/data-provider-interface/components/SpatialInput.vue2.mjs +2 -2
  30. package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs +41 -30
  31. package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs.map +1 -1
  32. package/dist/data-provider-interface/config/dcatapde/input-definition.mjs +81 -78
  33. package/dist/data-provider-interface/config/dcatapde/input-definition.mjs.map +1 -1
  34. package/dist/data-provider-interface/config/dcatapdeODB/format-types.mjs +3 -272
  35. package/dist/data-provider-interface/config/dcatapdeODB/format-types.mjs.map +1 -1
  36. package/dist/data-provider-interface/config/dcatapdeODB/input-definition.d.ts +4 -15
  37. package/dist/data-provider-interface/config/dcatapdeODB/input-definition.mjs +13 -2081
  38. package/dist/data-provider-interface/config/dcatapdeODB/input-definition.mjs.map +1 -1
  39. package/dist/data-provider-interface/config/dcatapdeODB/page-content-config.mjs +3 -21
  40. package/dist/data-provider-interface/config/dcatapdeODB/page-content-config.mjs.map +1 -1
  41. package/dist/data-provider-interface/config/dcatapdeODB/prefixes.mjs +3 -24
  42. package/dist/data-provider-interface/config/dcatapdeODB/prefixes.mjs.map +1 -1
  43. package/dist/data-provider-interface/config/dcatapdeODB/vocab-prefixes.mjs +3 -31
  44. package/dist/data-provider-interface/config/dcatapdeODB/vocab-prefixes.mjs.map +1 -1
  45. package/dist/data-provider-interface/config/dpi-spec-config.mjs +8 -8
  46. package/dist/data-provider-interface/config/dpi-spec-config.mjs.map +1 -1
  47. package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs +52 -52
  48. package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs.map +1 -1
  49. package/dist/data-provider-interface/views/DraftsPage.vue.d.ts +1 -1
  50. package/dist/data-provider-interface/views/DraftsPage.vue.mjs +127 -138
  51. package/dist/data-provider-interface/views/DraftsPage.vue.mjs.map +1 -1
  52. package/dist/data-provider-interface/views/InputPage.vue.mjs +68 -68
  53. package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
  54. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs +31 -31
  55. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs.map +1 -1
  56. package/dist/form/Repeatable.vue.mjs +37 -37
  57. package/dist/form/Repeatable.vue.mjs.map +1 -1
  58. package/dist/modal/AppConfirmationDialog.vue.d.ts +3 -1
  59. package/dist/modal/AppConfirmationDialog.vue.mjs +45 -39
  60. package/dist/modal/AppConfirmationDialog.vue.mjs.map +1 -1
  61. package/dist/piveau-hub-ui-modules.css +1 -1
  62. package/package.json +1 -1
@@ -1,12 +1,19 @@
1
- import { ref as h, resolveComponent as V, openBlock as i, createElementBlock as r, createElementVNode as e, toDisplayString as x, createTextVNode as o, unref as s, createCommentVNode as u, withDirectives as I, isRef as L, vModelText as M, Fragment as g, renderList as b, createVNode as _, createBlock as H } from "vue";
2
- import D from "./AutocompleteInput.vue.mjs";
3
- import { onClickOutside as U } from "../../external/@vueuse/core/index";
4
- import { useRuntimeEnv as A } from "../../composables/useRuntimeEnv.mjs";
1
+ import { ref as f, watchEffect as M, resolveComponent as S, openBlock as a, createElementBlock as n, toDisplayString as m, createTextVNode as i, unref as d, createCommentVNode as c, createElementVNode as o, withDirectives as I, isRef as V, vModelText as $, Fragment as g, renderList as x, createVNode as _, createBlock as T, createStaticVNode as U } from "vue";
2
+ import A from "./AutocompleteInput.vue.mjs";
3
+ import { onClickOutside as B } from "../../external/@vueuse/core/index";
4
+ import { useRuntimeEnv as N } from "../../composables/useRuntimeEnv.mjs";
5
+ import { useI18n as P } from "vue-i18n";
5
6
  import "./ConditionalInput.vue2.mjs";
6
- const E = { class: "formkitProperty" }, P = { class: "formkitHeader" }, S = {
7
+ const F = { class: "formkitProperty" }, R = {
7
8
  key: 0,
9
+ class: "formkitHeader"
10
+ }, j = {
11
+ key: 1,
12
+ class: "formkitHeader"
13
+ }, O = {
14
+ key: 2,
8
15
  class: "d-flex infoLicense py-5"
9
- }, B = /* @__PURE__ */ e("svg", {
16
+ }, X = /* @__PURE__ */ o("svg", {
10
17
  xmlns: "http://www.w3.org/2000/svg",
11
18
  width: "30px",
12
19
  height: "30px",
@@ -14,33 +21,21 @@ const E = { class: "formkitProperty" }, P = { class: "formkitHeader" }, S = {
14
21
  class: "bi bi-info-circle mx-3 mb-3 mt-1 infoboxI",
15
22
  viewBox: "0 0 16 16"
16
23
  }, [
17
- /* @__PURE__ */ e("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" }),
18
- /* @__PURE__ */ o(),
19
- /* @__PURE__ */ e("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" })
20
- ], -1), N = /* @__PURE__ */ e("p", { class: "textInfoI" }, [
21
- /* @__PURE__ */ o("For European Commission’s datasets, bear in mind that Decision "),
22
- /* @__PURE__ */ e("a", { href: "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833" }, "2011/833/EU"),
23
- /* @__PURE__ */ o(` allows for their
24
- commercial reuse
25
- without prior authorisation, except for the material subject to the third party intellectual property rights.
26
- This Decision has been implemented under the `),
27
- /* @__PURE__ */ e("a", { href: "https://ec.europa.eu/transparency/documents-register/detail?ref=C(2019)1655&lang=en" }, `Decision C(2019)
28
- 1655 final`),
29
- /* @__PURE__ */ o(` by which Creative Commons Attribution
30
- 4.0 International Public License (CC BY 4.0) is adopted as an open licence for the Commission’s reuse policy.
31
- Additionally, raw data, metadata or other documents of comparable nature may alternatively be distributed under
32
- the provisions of the Creative Commons Universal Public Domain Dedication deed (CC0 1.0).
33
- `),
34
- /* @__PURE__ */ e("br"),
35
- /* @__PURE__ */ e("br"),
36
- /* @__PURE__ */ o(`
37
- The Council and the European Court of Auditors have approved similar decisions on reuse. It is advisable that
38
- you check the reuse policy of your organisation before publishing or submitting your dataset.
39
- `)
40
- ], -1), j = {
41
- key: 1,
24
+ /* @__PURE__ */ o("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" }),
25
+ /* @__PURE__ */ i(),
26
+ /* @__PURE__ */ o("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" })
27
+ ], -1), z = /* @__PURE__ */ U(`<div class="w-80"><p><em>For <strong>European</strong> <strong>Commission&#39;s datasets</strong>, bear in mind
28
+ that <ins>Decision 2011/833/EU</ins> <a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833]" target="_blank" rel="nofollow noopener">[link</a> ] allows for their commercial reuse without prior authorisation,
29
+ except for the material subject to the third party intellectual property rights. This Decision has been
30
+ implemented under the <ins>Decision C(2019) 1655 final</ins> <a href="https://ec.europa.eu/transparency/documents-register/detail?ref=C(2019)1655&amp;lang=en]" target="_blank" rel="nofollow noopener">[link</a> ] by which Creative Commons Attribution 4.0
31
+ International Public License (CC BY 4.0) is adopted as an open licence for the Commission&#39;s reuse policy.
32
+ Additionally, raw data, metadata or other documents of comparable nature may alternatively be distributed
33
+ under the provisions of the Creative Commons Universal Public Domain Dedication deed (CC0 1.0).</em></p> <p><em>The <strong>Council</strong> and the <strong>European Court of Auditors</strong> have
34
+ approved similar decisions on reuse. It is advisable that you check <strong>the reuse policy of your
35
+ organisation</strong> before publishing or submitting your dataset.</em></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>`, 1), H = {
36
+ key: 3,
42
37
  class: "d-flex infoLicense py-5"
43
- }, F = /* @__PURE__ */ e("svg", {
38
+ }, K = /* @__PURE__ */ o("svg", {
44
39
  xmlns: "http://www.w3.org/2000/svg",
45
40
  width: "30px",
46
41
  height: "30px",
@@ -48,161 +43,178 @@ const E = { class: "formkitProperty" }, P = { class: "formkitHeader" }, S = {
48
43
  class: "bi bi-info-circle mx-3 mb-3 mt-1 infoboxI",
49
44
  viewBox: "0 0 16 16"
50
45
  }, [
51
- /* @__PURE__ */ e("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" }),
52
- /* @__PURE__ */ o(),
53
- /* @__PURE__ */ e("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" })
54
- ], -1), O = /* @__PURE__ */ e("p", { class: "textInfoI" }, [
55
- /* @__PURE__ */ o(`As owner of your dataset, you guarantee that it does not violate the copyright, other
46
+ /* @__PURE__ */ o("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" }),
47
+ /* @__PURE__ */ i(),
48
+ /* @__PURE__ */ o("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" })
49
+ ], -1), W = /* @__PURE__ */ o("p", { class: "textInfoI" }, [
50
+ /* @__PURE__ */ i(`As owner of your dataset, you guarantee that it does not violate the copyright, other
56
51
  intellectual property or
57
52
  privacy rights of any third party. In particular, if third party material is included in the dataset, you must
58
53
  ensure that all necessary permissions have been obtained and appropriate acknowledgment is given, if necessary.
59
54
  `),
60
- /* @__PURE__ */ e("br"),
61
- /* @__PURE__ */ e("br"),
62
- /* @__PURE__ */ o(`
55
+ /* @__PURE__ */ o("br"),
56
+ /* @__PURE__ */ o("br"),
57
+ /* @__PURE__ */ i(`
63
58
  If you need further information regarding copyright issues, please contact us at
64
59
  `),
65
- /* @__PURE__ */ e("a", { href: "mailto:op-copyright@publications.europa.eu" }, "op-copyright@publications.europa.eu")
66
- ], -1), R = {
67
- key: 2,
60
+ /* @__PURE__ */ o("a", { href: "mailto:op-copyright@publications.europa.eu" }, "op-copyright@publications.europa.eu")
61
+ ], -1), Y = {
62
+ key: 4,
68
63
  class: "formkitCmpWrap simpleConditional"
69
- }, z = { class: "m-3" }, K = { class: "conditionalSelectDiv" }, W = { key: 0 }, X = { class: "selectListConditional" }, Y = { class: "conditionalManual" }, $ = {
64
+ }, q = { class: "m-3" }, G = { class: "conditionalSelectDiv" }, J = ["placeholder"], Q = { key: 0 }, Z = { class: "selectListConditional" }, ee = ["onClick"], te = { class: "conditionalManual" }, oe = {
70
65
  key: 0,
71
66
  class: "d-flex"
72
- }, q = { key: 0 }, G = {
73
- key: 3,
67
+ }, ae = { key: 0 }, ne = {
68
+ key: 5,
74
69
  class: "formkitCmpWrap simpleConditional"
75
- }, J = { class: "m-3" }, Q = { class: "conditionalSelectDiv" }, Z = { key: 0 }, ee = { class: "selectListConditional" }, te = { class: "conditionalManual" }, oe = {
70
+ }, ie = { class: "m-3" }, se = { class: "conditionalSelectDiv" }, le = ["placeholder"], re = { key: 0 }, de = { class: "selectListConditional" }, ce = ["onClick"], ue = { class: "conditionalManual" }, pe = {
76
71
  key: 0,
77
72
  class: "d-flex"
78
- }, ne = {
73
+ }, me = {
79
74
  key: 0,
80
- class: "conditionalVocabulary"
81
- }, ce = {
75
+ class: ""
76
+ }, he = {
77
+ key: 1,
78
+ class: "conditionalVocabulary d-flex"
79
+ }, fe = { class: "autocompleteInputSingleValue" }, ke = {
82
80
  __name: "ConditionalInput",
83
81
  props: {
84
82
  context: Object
85
83
  },
86
- setup(T) {
87
- let C = A();
88
- const t = T;
89
- let d = h(), c = h(!1), p = h(!1);
90
- const f = h(null), k = (l) => {
84
+ setup(D) {
85
+ let b = N();
86
+ const e = D, { t: k } = P();
87
+ let r = f(), u = f(!1), p = f(!1);
88
+ M(() => {
89
+ e.context.value.name && (r.value = k("message.dataupload.datasets.conditional.vocabulary")), e.context.value["foaf:name"] && (r.value = k("message.dataupload.datasets.conditional.manually"));
90
+ });
91
+ const v = f(null), C = (l) => {
91
92
  p.value = !p.value;
92
- }, w = (l) => {
93
- console.log(l.target.innerHTML), d.value = l.target.innerHTML, (l.target.innerHTML === "manually" || l.target.innerHTML === "manually") && (c.value = "manually"), (l.target.innerHTML === "Vocabulary" || l.target.innerHTML === "vocabulary") && (c.value = "vocabulary"), (l.target.innerHTML === "URL" || l.target.innerHTML === "url") && (c.value = "url"), (l.target.innerHTML === "Text" || l.target.innerHTML === "text") && (c.value = "text"), t.context.node.reset(), t.context.value = "";
93
+ }, E = () => {
94
+ e.context.node.reset();
95
+ }, w = (l, s) => {
96
+ r.value = s, u.value = l, e.context.node.reset(), e.context.value = "";
94
97
  };
95
- return U(f, (l) => p.value = !1), (l, a) => {
96
- const v = V("FormKit");
97
- return i(), r("div", E, [
98
- e("h4", P, x(t.context.attrs.identifier.charAt(0).toUpperCase() + t.context.attrs.identifier.slice(1)), 1),
99
- o(),
100
- t.context.attrs.identifier === "licence" && s(C).content.dataProviderInterface.annifIntegration ? (i(), r("div", S, [
101
- B,
102
- o(),
103
- N
104
- ])) : u("", !0),
105
- o(),
106
- t.context.attrs.identifier === "rights" && s(C).content.dataProviderInterface.annifIntegration ? (i(), r("div", j, [
107
- F,
108
- o(),
109
- O
110
- ])) : u("", !0),
111
- o(),
112
- t.context.attrs.identifier === "rights" ? (i(), r("div", R, [
113
- e("div", z, [
114
- e("div", K, [
115
- I(e("input", {
98
+ return B(v, (l) => p.value = !1), (l, s) => {
99
+ const y = S("FormKit");
100
+ return a(), n("div", F, [
101
+ e.context.attrs.class != null && e.context.attrs.class.includes("inDistribution") ? (a(), n("h4", R, m(l.$t("message.dataupload.distributions." + e.context.attrs.identifier + ".label")), 1)) : (a(), n("h4", j, m(l.$t("message.dataupload.datasets." + e.context.attrs.identifier + ".label")), 1)),
102
+ i(),
103
+ e.context.attrs.identifier === "licence" && d(b).content.dataProviderInterface.annifIntegration ? (a(), n("div", O, [
104
+ X,
105
+ i(),
106
+ z
107
+ ])) : c("", !0),
108
+ i(),
109
+ e.context.attrs.identifier === "rights" && d(b).content.dataProviderInterface.annifIntegration ? (a(), n("div", H, [
110
+ K,
111
+ i(),
112
+ W
113
+ ])) : c("", !0),
114
+ i(),
115
+ e.context.attrs.identifier === "rights" ? (a(), n("div", Y, [
116
+ o("div", q, [
117
+ o("div", G, [
118
+ I(o("input", {
116
119
  ref_key: "I1",
117
- ref: f,
120
+ ref: v,
118
121
  type: "text",
119
122
  class: "conditionalSelect formkit-input formkit-inner",
120
- onClick: a[0] || (a[0] = (n) => k()),
121
- placeholder: "Choose input method",
122
- "onUpdate:modelValue": a[1] || (a[1] = (n) => L(d) ? d.value = n : d = n)
123
- }, null, 512), [
124
- [M, s(d)]
123
+ onClick: s[0] || (s[0] = (t) => C()),
124
+ placeholder: e.context.attrs.placeholder,
125
+ "onUpdate:modelValue": s[1] || (s[1] = (t) => V(r) ? r.value = t : r = t)
126
+ }, null, 8, J), [
127
+ [$, d(r)]
125
128
  ]),
126
- o(),
127
- s(p) ? (i(), r("div", W, [
128
- e("ul", X, [
129
- (i(!0), r(g, null, b(t.context.attrs.selection, (n, m) => (i(), r("li", {
129
+ i(),
130
+ d(p) ? (a(), n("div", Q, [
131
+ o("ul", Z, [
132
+ (a(!0), n(g, null, x(e.context.attrs.selection, (t, h) => (a(), n("li", {
130
133
  class: "p-2 border-b border-gray-200",
131
- onClick: a[2] || (a[2] = (y) => w(y))
132
- }, x(n), 1))), 256))
134
+ onClick: (L) => w(t, l.$t("message.dataupload.datasets.conditional." + t))
135
+ }, m(l.$t("message.dataupload.datasets.conditional." + t)), 9, ee))), 256))
133
136
  ])
134
- ])) : u("", !0)
137
+ ])) : c("", !0)
135
138
  ]),
136
- o(),
137
- e("div", Y, [
138
- s(c) === "url" || t.context.node.value["@type"] === "url" ? (i(), r("div", $, [
139
- _(v, {
139
+ i(),
140
+ o("div", te, [
141
+ d(u) === "URL" || e.context.node.value["@type"] === "url" ? (a(), n("div", oe, [
142
+ _(y, {
140
143
  type: "url",
141
- placeholder: "Please provide a valid URL",
144
+ placeholder: l.$t("message.dataupload.datasets.conditional.URL"),
142
145
  name: "rdfs:label",
143
146
  validation: "url",
144
147
  class: "w-100",
145
148
  identifier: "rightsUrl",
146
- modelValue: t.context.value["rdfs:value"],
147
- "onUpdate:modelValue": a[3] || (a[3] = (n) => t.context.value["rdfs:value"] = n)
148
- }, null, 8, ["modelValue"])
149
- ])) : u("", !0)
149
+ modelValue: e.context.value["rdfs:value"],
150
+ "onUpdate:modelValue": s[2] || (s[2] = (t) => e.context.value["rdfs:value"] = t)
151
+ }, null, 8, ["placeholder", "modelValue"])
152
+ ])) : c("", !0)
150
153
  ]),
151
- o(),
152
- s(c) === "text" || t.context.value["@type"] === "text" ? (i(), r("div", q, [
153
- _(v, {
154
+ i(),
155
+ d(u) === "Text" || e.context.value["@type"] === "text" ? (a(), n("div", ae, [
156
+ _(y, {
154
157
  type: "text",
155
- placeholder: "Please provide a Text",
158
+ placeholder: l.$t("message.dataupload.datasets.conditional.Text"),
156
159
  name: "rdfs:label",
157
160
  class: "w-100",
158
161
  identifier: "rightsText",
159
- modelValue: t.context.value["rdfs:value"],
160
- "onUpdate:modelValue": a[4] || (a[4] = (n) => t.context.value["rdfs:value"] = n)
161
- }, null, 8, ["modelValue"])
162
- ])) : u("", !0)
162
+ modelValue: e.context.value["rdfs:value"],
163
+ "onUpdate:modelValue": s[3] || (s[3] = (t) => e.context.value["rdfs:value"] = t)
164
+ }, null, 8, ["placeholder", "modelValue"])
165
+ ])) : c("", !0)
163
166
  ])
164
- ])) : (i(), r("div", G, [
165
- e("div", J, [
166
- e("div", Q, [
167
- I(e("input", {
167
+ ])) : (a(), n("div", ne, [
168
+ o("div", ie, [
169
+ o("div", se, [
170
+ I(o("input", {
168
171
  ref_key: "I1",
169
- ref: f,
172
+ ref: v,
170
173
  type: "text",
171
174
  class: "conditionalSelect formkit-input formkit-inner",
172
- onClick: a[5] || (a[5] = (n) => k()),
173
- placeholder: "Choose input method",
174
- "onUpdate:modelValue": a[6] || (a[6] = (n) => L(d) ? d.value = n : d = n)
175
- }, null, 512), [
176
- [M, s(d)]
175
+ onClick: s[4] || (s[4] = (t) => C()),
176
+ placeholder: e.context.attrs.placeholder,
177
+ "onUpdate:modelValue": s[5] || (s[5] = (t) => V(r) ? r.value = t : r = t)
178
+ }, null, 8, le), [
179
+ [$, d(r)]
177
180
  ]),
178
- o(),
179
- s(p) ? (i(), r("div", Z, [
180
- e("ul", ee, [
181
- (i(!0), r(g, null, b(t.context.attrs.selection, (n, m) => (i(), r("li", {
181
+ i(),
182
+ d(p) ? (a(), n("div", re, [
183
+ o("ul", de, [
184
+ (a(!0), n(g, null, x(e.context.attrs.selection, (t, h) => (a(), n("li", {
182
185
  class: "p-2 border-b border-gray-200",
183
- onClick: a[7] || (a[7] = (y) => w(y))
184
- }, x(n), 1))), 256))
186
+ onClick: (L) => w(t, l.$t("message.dataupload.datasets.conditional." + t))
187
+ }, m(l.$t("message.dataupload.datasets.conditional." + t)), 9, ce))), 256))
185
188
  ])
186
- ])) : u("", !0)
189
+ ])) : c("", !0)
187
190
  ]),
188
- o(),
189
- e("div", te, [
190
- s(c) === "manually" || Object.keys(t.context.value).length > 0 && t.context.value["foaf:name"] && s(c) != "vocabulary" ? (i(), r("div", oe, [
191
- (i(!0), r(g, null, b(t.context.attrs.options, (n, m) => (i(), H(v, {
192
- type: m,
193
- placeholder: m,
194
- name: n,
195
- validation: m,
191
+ i(),
192
+ o("div", ue, [
193
+ d(u) === "manually" || Object.keys(e.context.value).length > 0 && e.context.value["foaf:name"] && d(u) != "vocabulary" ? (a(), n("div", pe, [
194
+ (a(!0), n(g, null, x(e.context.attrs.options, (t, h) => (a(), T(y, {
195
+ type: h,
196
+ placeholder: l.$t("message.dataupload.datasets.individual." + t),
197
+ name: t,
198
+ validation: h,
196
199
  class: "w-100"
197
200
  }, null, 8, ["type", "placeholder", "name", "validation"]))), 256))
198
- ])) : u("", !0)
201
+ ])) : c("", !0)
199
202
  ]),
200
- o(),
201
- s(c) === "vocabulary" || Object.keys(t.context.value).length > 0 && t.context.value.name && s(c) != "manually" ? (i(), r("div", ne, [
202
- _(D, {
203
- context: t.context
203
+ i(),
204
+ d(u) === "vocabulary" && !e.context.value.name ? (a(), n("div", me, [
205
+ _(A, {
206
+ context: e.context
204
207
  }, null, 8, ["context"])
205
- ])) : u("", !0)
208
+ ])) : c("", !0),
209
+ i(),
210
+ e.context.value.name ? (a(), n("div", he, [
211
+ o("a", fe, m(e.context.value.name), 1),
212
+ i(),
213
+ o("div", {
214
+ class: "removeX",
215
+ onClick: E
216
+ })
217
+ ])) : c("", !0)
206
218
  ])
207
219
  ]))
208
220
  ]);
@@ -210,6 +222,6 @@ const E = { class: "formkitProperty" }, P = { class: "formkitHeader" }, S = {
210
222
  }
211
223
  };
212
224
  export {
213
- ce as default
225
+ ke as default
214
226
  };
215
227
  //# 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 <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 <p class=\"textInfoI\">For European Commission’s datasets, bear in mind that Decision <a\n href=\"https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833\">2011/833/EU</a> allows for their\n commercial reuse\n without prior authorisation, except for the material subject to the third party intellectual property rights.\n This Decision has been implemented under the <a\n href=\"https://ec.europa.eu/transparency/documents-register/detail?ref=C(2019)1655&lang=en\">Decision C(2019)\n 1655 final</a> by which Creative Commons Attribution\n 4.0 International Public License (CC BY 4.0) is adopted as an open licence for the Commission’s reuse policy.\n Additionally, raw data, metadata or other documents of comparable nature may alternatively be distributed under\n the provisions of the Creative Commons Universal Public Domain Dedication deed (CC0 1.0).\n <br><br>\n The Council and the European Court of Auditors have approved similar decisions on reuse. It is advisable that\n you check the reuse policy of your organisation before publishing or submitting your dataset.\n </p>\n </div>\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=\"Choose input method\" 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($event)\">{{ 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=\"Please provide a valid URL\" name=\"rdfs:label\" validation=\"url\"\n class=\"w-100\" identifier=\"rightsUrl\" v-model=\"props.context.value['rdfs:value']\"></FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'text' || props.context.value['@type'] === 'text'\">\n <FormKit type=\"text\" placeholder=\"Please provide a Text\" name=\"rdfs:label\" class=\"w-100\"\n 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=\"Choose input method\" 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($event)\">{{ 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\" :placeholder=\"key\" :name=\"el\"\n :validation=\"key\" class=\"w-100\"></FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'vocabulary' || Object.keys(props.context.value).length > 0\n && props.context.value.name && selectedItem != 'manually'\" class=\"conditionalVocabulary\">\n <AutocompleteInput :context=\"props.context\"></AutocompleteInput>\n </div>\n\n\n </div>\n\n </div>\n </div>\n\n</template>\n<script setup>\nimport { ref } from 'vue';\nimport AutocompleteInput from './AutocompleteInput.vue';\nimport { onClickOutside } from '@vueuse/core'\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv.ts\";\n\nlet env = useRuntimeEnv()\nconst props = defineProps({\n context: Object,\n})\nlet selectModeVal = ref()\nlet selectedItem = ref(false)\nlet showSelect = ref(false)\n\n\nconst I1 = ref(null)\n\nconst openSelect = (e) => {\n\n showSelect.value = !showSelect.value\n\n}\nconst selectMode = (e) => {\n\n console.log(e.target.innerHTML);\n \n selectModeVal.value = e.target.innerHTML\n\n if (e.target.innerHTML === 'manually'|| e.target.innerHTML === 'manually') { selectedItem.value = \"manually\" }\n if (e.target.innerHTML === 'Vocabulary' || e.target.innerHTML === 'vocabulary') { selectedItem.value = \"vocabulary\" }\n if (e.target.innerHTML === 'URL' ||e.target.innerHTML === 'url') { selectedItem.value = \"url\" }\n if (e.target.innerHTML === 'Text' || e.target.innerHTML === 'text') { selectedItem.value = \"text\" }\n\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.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>"],"names":["env","useRuntimeEnv","props","__props","selectModeVal","ref","selectedItem","showSelect","I1","openSelect","e","selectMode","onClickOutside","event"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6GA,QAAIA,IAAMC,EAAe;AACzB,UAAMC,IAAQC;AAGd,QAAIC,IAAgBC,EAAK,GACrBC,IAAeD,EAAI,EAAK,GACxBE,IAAaF,EAAI,EAAK;AAG1B,UAAMG,IAAKH,EAAI,IAAI,GAEbI,IAAa,CAACC,MAAM;AAExB,MAAAH,EAAW,QAAQ,CAACA,EAAW;AAAA,IAEjC,GACMI,IAAa,CAACD,MAAM;AAExB,cAAQ,IAAIA,EAAE,OAAO,SAAS,GAE9BN,EAAc,QAAQM,EAAE,OAAO,YAE3BA,EAAE,OAAO,cAAc,cAAaA,EAAE,OAAO,cAAc,gBAAcJ,EAAa,QAAQ,cAC9FI,EAAE,OAAO,cAAc,gBAAgBA,EAAE,OAAO,cAAc,kBAAgBJ,EAAa,QAAQ,gBACnGI,EAAE,OAAO,cAAc,SAAQA,EAAE,OAAO,cAAc,WAASJ,EAAa,QAAQ,SACpFI,EAAE,OAAO,cAAc,UAAUA,EAAE,OAAO,cAAc,YAAUJ,EAAa,QAAQ,SAE3FJ,EAAM,QAAQ,KAAK,MAAO,GAC1BA,EAAM,QAAQ,QAAQ;AAAA,IACxB;AAEA,WAAAU,EAAeJ,GAAI,CAAAK,MAASN,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><em>For&nbsp;<strong>European</strong>&nbsp;<strong>Commission's datasets</strong>, bear in mind\n that&nbsp;<ins>Decision 2011/833/EU</ins>&nbsp;<a\n href=\"https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833]\" target=\"_blank\"\n rel=\"nofollow noopener\">[link</a>&nbsp;] allows for their commercial reuse without prior authorisation,\n except for the material subject to the third party intellectual property rights. This Decision has been\n implemented under the&nbsp;<ins>Decision C(2019) 1655 final</ins>&nbsp;<a\n href=\"https://ec.europa.eu/transparency/documents-register/detail?ref=C(2019)1655&amp;lang=en]\"\n target=\"_blank\" rel=\"nofollow noopener\">[link</a>&nbsp;] by which Creative Commons Attribution 4.0\n International Public License (CC BY 4.0) is adopted as an open licence for the Commission's reuse policy.\n Additionally, raw data, metadata or other documents of comparable nature may alternatively be distributed\n under the provisions of the Creative Commons Universal Public Domain Dedication deed (CC0 1.0).</em></p>\n <p><em>The&nbsp;<strong>Council</strong>&nbsp;and the&nbsp;<strong>European Court of Auditors</strong>&nbsp;have\n approved similar decisions on reuse. It is advisable that you check&nbsp;<strong>the reuse policy of your\n organisation</strong>&nbsp;before publishing or submitting your dataset.</em></p>\n <p>If you need further information regarding copyright issues, please contact us at&nbsp;<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\n </div>\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\" validation=\"url\"\n class=\"w-100\" identifier=\"rightsUrl\" v-model=\"props.context.value['rdfs:value']\"></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\" class=\"w-100\"\n 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\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>"],"names":["env","useRuntimeEnv","props","__props","t","useI18n","selectModeVal","ref","selectedItem","showSelect","watchEffect","I1","openSelect","e","removeProperty","selectMode","translatedString","onClickOutside","event"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoIA,QAAIA,IAAMC,EAAe;AACzB,UAAMC,IAAQC,GAGR,EAAE,GAAAC,EAAC,IAAKC;AACd,QAAIC,IAAgBC,EAAK,GACrBC,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,MAAO;AAAA,IAC5B,GACMa,IAAa,CAACF,GAAGG,MAAqB;AAC1C,MAAAV,EAAc,QAAQU,GACtBR,EAAa,QAAQK,GACrBX,EAAM,QAAQ,KAAK,MAAO,GAC1BA,EAAM,QAAQ,QAAQ;AAAA,IACxB;AAEA,WAAAe,EAAeN,GAAI,CAAAO,MAAST,EAAW,QAAQ,EAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}