@piveau/piveau-hub-ui-modules 4.1.10 → 4.2.1
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/ConditionalInput.vue.mjs +41 -40
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/DistributionStepper.vue.d.ts +1 -0
- package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +120 -95
- package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.d.ts +7 -0
- package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.mjs +33 -0
- package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.mjs.map +1 -0
- package/dist/data-provider-interface/config/dcatap/input-definition.mjs +1 -1
- package/dist/data-provider-interface/config/dcatap/input-definition.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatapde/input-definition.mjs +87 -59
- package/dist/data-provider-interface/config/dcatapde/input-definition.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatapdeODB/format-types.mjs +275 -0
- package/dist/data-provider-interface/config/dcatapdeODB/format-types.mjs.map +1 -0
- package/dist/data-provider-interface/config/dcatapdeODB/input-definition.d.ts +18 -0
- package/dist/data-provider-interface/config/dcatapdeODB/input-definition.mjs +2087 -0
- package/dist/data-provider-interface/config/dcatapdeODB/input-definition.mjs.map +1 -0
- package/dist/data-provider-interface/config/dcatapdeODB/page-content-config.mjs +24 -0
- package/dist/data-provider-interface/config/dcatapdeODB/page-content-config.mjs.map +1 -0
- package/dist/data-provider-interface/config/dcatapdeODB/prefixes.mjs +27 -0
- package/dist/data-provider-interface/config/dcatapdeODB/prefixes.mjs.map +1 -0
- package/dist/data-provider-interface/config/dcatapdeODB/vocab-prefixes.mjs +34 -0
- package/dist/data-provider-interface/config/dcatapdeODB/vocab-prefixes.mjs.map +1 -0
- package/dist/data-provider-interface/config/dpi-spec-config.mjs +14 -2
- package/dist/data-provider-interface/config/dpi-spec-config.mjs.map +1 -1
- package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs +3 -2
- package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs.map +1 -1
- package/dist/external/@vueuse/core/index +1 -1
- package/dist/form/Repeatable.vue.mjs +30 -30
- package/dist/form/Repeatable.vue.mjs.map +1 -1
- package/dist/form/inputDefinitions.mjs +13 -8
- package/dist/form/inputDefinitions.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ref as h, resolveComponent as
|
|
2
|
-
import
|
|
3
|
-
import { onClickOutside as
|
|
4
|
-
import { useRuntimeEnv as
|
|
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";
|
|
5
5
|
import "./ConditionalInput.vue2.mjs";
|
|
6
|
-
const
|
|
6
|
+
const E = { class: "formkitProperty" }, P = { class: "formkitHeader" }, S = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "d-flex infoLicense py-5"
|
|
9
|
-
},
|
|
9
|
+
}, B = /* @__PURE__ */ e("svg", {
|
|
10
10
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11
11
|
width: "30px",
|
|
12
12
|
height: "30px",
|
|
@@ -52,14 +52,15 @@ const P = { class: "formkitProperty" }, S = { class: "formkitHeader" }, B = {
|
|
|
52
52
|
/* @__PURE__ */ o(),
|
|
53
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
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
|
|
55
|
+
/* @__PURE__ */ o(`As owner of your dataset, you guarantee that it does not violate the copyright, other
|
|
56
|
+
intellectual property or
|
|
56
57
|
privacy rights of any third party. In particular, if third party material is included in the dataset, you must
|
|
57
58
|
ensure that all necessary permissions have been obtained and appropriate acknowledgment is given, if necessary.
|
|
58
59
|
`),
|
|
59
60
|
/* @__PURE__ */ e("br"),
|
|
60
61
|
/* @__PURE__ */ e("br"),
|
|
61
62
|
/* @__PURE__ */ o(`
|
|
62
|
-
If you need further information regarding copyright issues, please contact us at
|
|
63
|
+
If you need further information regarding copyright issues, please contact us at
|
|
63
64
|
`),
|
|
64
65
|
/* @__PURE__ */ e("a", { href: "mailto:op-copyright@publications.europa.eu" }, "op-copyright@publications.europa.eu")
|
|
65
66
|
], -1), R = {
|
|
@@ -82,33 +83,33 @@ const P = { class: "formkitProperty" }, S = { class: "formkitHeader" }, B = {
|
|
|
82
83
|
props: {
|
|
83
84
|
context: Object
|
|
84
85
|
},
|
|
85
|
-
setup(
|
|
86
|
-
let C =
|
|
87
|
-
const t =
|
|
88
|
-
let
|
|
89
|
-
const f = h(null), k = (
|
|
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) => {
|
|
90
91
|
p.value = !p.value;
|
|
91
|
-
}, w = (
|
|
92
|
-
|
|
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
94
|
};
|
|
94
|
-
return
|
|
95
|
-
const v =
|
|
96
|
-
return i(),
|
|
97
|
-
e("h4",
|
|
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),
|
|
98
99
|
o(),
|
|
99
|
-
t.context.attrs.identifier === "licence" &&
|
|
100
|
-
|
|
100
|
+
t.context.attrs.identifier === "licence" && s(C).content.dataProviderInterface.annifIntegration ? (i(), r("div", S, [
|
|
101
|
+
B,
|
|
101
102
|
o(),
|
|
102
103
|
N
|
|
103
104
|
])) : u("", !0),
|
|
104
105
|
o(),
|
|
105
|
-
t.context.attrs.identifier === "rights" &&
|
|
106
|
+
t.context.attrs.identifier === "rights" && s(C).content.dataProviderInterface.annifIntegration ? (i(), r("div", j, [
|
|
106
107
|
F,
|
|
107
108
|
o(),
|
|
108
109
|
O
|
|
109
110
|
])) : u("", !0),
|
|
110
111
|
o(),
|
|
111
|
-
t.context.attrs.identifier === "rights" ? (i(),
|
|
112
|
+
t.context.attrs.identifier === "rights" ? (i(), r("div", R, [
|
|
112
113
|
e("div", z, [
|
|
113
114
|
e("div", K, [
|
|
114
115
|
I(e("input", {
|
|
@@ -118,14 +119,14 @@ const P = { class: "formkitProperty" }, S = { class: "formkitHeader" }, B = {
|
|
|
118
119
|
class: "conditionalSelect formkit-input formkit-inner",
|
|
119
120
|
onClick: a[0] || (a[0] = (n) => k()),
|
|
120
121
|
placeholder: "Choose input method",
|
|
121
|
-
"onUpdate:modelValue": a[1] || (a[1] = (n) =>
|
|
122
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => L(d) ? d.value = n : d = n)
|
|
122
123
|
}, null, 512), [
|
|
123
|
-
[
|
|
124
|
+
[M, s(d)]
|
|
124
125
|
]),
|
|
125
126
|
o(),
|
|
126
|
-
|
|
127
|
+
s(p) ? (i(), r("div", W, [
|
|
127
128
|
e("ul", X, [
|
|
128
|
-
(i(!0),
|
|
129
|
+
(i(!0), r(g, null, b(t.context.attrs.selection, (n, m) => (i(), r("li", {
|
|
129
130
|
class: "p-2 border-b border-gray-200",
|
|
130
131
|
onClick: a[2] || (a[2] = (y) => w(y))
|
|
131
132
|
}, x(n), 1))), 256))
|
|
@@ -134,8 +135,8 @@ const P = { class: "formkitProperty" }, S = { class: "formkitHeader" }, B = {
|
|
|
134
135
|
]),
|
|
135
136
|
o(),
|
|
136
137
|
e("div", Y, [
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
s(c) === "url" || t.context.node.value["@type"] === "url" ? (i(), r("div", $, [
|
|
139
|
+
_(v, {
|
|
139
140
|
type: "url",
|
|
140
141
|
placeholder: "Please provide a valid URL",
|
|
141
142
|
name: "rdfs:label",
|
|
@@ -148,8 +149,8 @@ const P = { class: "formkitProperty" }, S = { class: "formkitHeader" }, B = {
|
|
|
148
149
|
])) : u("", !0)
|
|
149
150
|
]),
|
|
150
151
|
o(),
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
s(c) === "text" || t.context.value["@type"] === "text" ? (i(), r("div", q, [
|
|
153
|
+
_(v, {
|
|
153
154
|
type: "text",
|
|
154
155
|
placeholder: "Please provide a Text",
|
|
155
156
|
name: "rdfs:label",
|
|
@@ -160,7 +161,7 @@ const P = { class: "formkitProperty" }, S = { class: "formkitHeader" }, B = {
|
|
|
160
161
|
}, null, 8, ["modelValue"])
|
|
161
162
|
])) : u("", !0)
|
|
162
163
|
])
|
|
163
|
-
])) : (i(),
|
|
164
|
+
])) : (i(), r("div", G, [
|
|
164
165
|
e("div", J, [
|
|
165
166
|
e("div", Q, [
|
|
166
167
|
I(e("input", {
|
|
@@ -170,14 +171,14 @@ const P = { class: "formkitProperty" }, S = { class: "formkitHeader" }, B = {
|
|
|
170
171
|
class: "conditionalSelect formkit-input formkit-inner",
|
|
171
172
|
onClick: a[5] || (a[5] = (n) => k()),
|
|
172
173
|
placeholder: "Choose input method",
|
|
173
|
-
"onUpdate:modelValue": a[6] || (a[6] = (n) =>
|
|
174
|
+
"onUpdate:modelValue": a[6] || (a[6] = (n) => L(d) ? d.value = n : d = n)
|
|
174
175
|
}, null, 512), [
|
|
175
|
-
[
|
|
176
|
+
[M, s(d)]
|
|
176
177
|
]),
|
|
177
178
|
o(),
|
|
178
|
-
|
|
179
|
+
s(p) ? (i(), r("div", Z, [
|
|
179
180
|
e("ul", ee, [
|
|
180
|
-
(i(!0),
|
|
181
|
+
(i(!0), r(g, null, b(t.context.attrs.selection, (n, m) => (i(), r("li", {
|
|
181
182
|
class: "p-2 border-b border-gray-200",
|
|
182
183
|
onClick: a[7] || (a[7] = (y) => w(y))
|
|
183
184
|
}, x(n), 1))), 256))
|
|
@@ -186,8 +187,8 @@ const P = { class: "formkitProperty" }, S = { class: "formkitHeader" }, B = {
|
|
|
186
187
|
]),
|
|
187
188
|
o(),
|
|
188
189
|
e("div", te, [
|
|
189
|
-
|
|
190
|
-
(i(!0),
|
|
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, {
|
|
191
192
|
type: m,
|
|
192
193
|
placeholder: m,
|
|
193
194
|
name: n,
|
|
@@ -197,8 +198,8 @@ const P = { class: "formkitProperty" }, S = { class: "formkitHeader" }, B = {
|
|
|
197
198
|
])) : u("", !0)
|
|
198
199
|
]),
|
|
199
200
|
o(),
|
|
200
|
-
|
|
201
|
-
|
|
201
|
+
s(c) === "vocabulary" || Object.keys(t.context.value).length > 0 && t.context.value.name && s(c) != "manually" ? (i(), r("div", ne, [
|
|
202
|
+
_(D, {
|
|
202
203
|
context: t.context
|
|
203
204
|
}, null, 8, ["context"])
|
|
204
205
|
])) : u("", !0)
|
|
@@ -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()
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -182,6 +182,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
182
182
|
getNavSteps: import('vuex').Computed;
|
|
183
183
|
}, {
|
|
184
184
|
editDistribution(): void;
|
|
185
|
+
scrollToTop(): void;
|
|
185
186
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
186
187
|
name: {
|
|
187
188
|
type: StringConstructor;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as k, markRaw as $, resolveComponent as v, openBlock as
|
|
2
|
-
import { mapGetters as
|
|
3
|
-
import { useDpiStepper as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as k, markRaw as $, resolveComponent as v, openBlock as s, createElementBlock as n, Fragment as S, createVNode as h, withCtx as _, createElementVNode as a, renderList as g, normalizeClass as D, toDisplayString as b, createTextVNode as r, createCommentVNode as l } from "vue";
|
|
2
|
+
import { mapGetters as T } from "vuex";
|
|
3
|
+
import { useDpiStepper as P } from "../composables/useDpiStepper.mjs";
|
|
4
|
+
import I from "./InputPageStep.vue.mjs";
|
|
5
5
|
import w from "./SelectControlledGroup.vue.mjs";
|
|
6
|
-
import
|
|
7
|
-
|
|
6
|
+
import { useWindowScroll as F } from "../../external/@vueuse/core/index";
|
|
7
|
+
import V from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
|
+
const j = k({
|
|
8
9
|
props: {
|
|
9
10
|
name: {
|
|
10
11
|
type: String,
|
|
@@ -31,22 +32,26 @@ const K = k({
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
components: {
|
|
34
|
-
InputPageStep:
|
|
35
|
+
InputPageStep: I
|
|
35
36
|
},
|
|
36
37
|
data() {
|
|
37
38
|
return {
|
|
38
39
|
isCollapsed: !1,
|
|
39
|
-
camel2title: (e) => e.replace(/([A-Z])/g, (
|
|
40
|
+
camel2title: (e) => e.replace(/([A-Z])/g, (o) => ` ${o}`).replace(/^./, (o) => o.toUpperCase()).trim(),
|
|
40
41
|
isActive: !1
|
|
41
42
|
};
|
|
42
43
|
},
|
|
43
44
|
methods: {
|
|
44
45
|
editDistribution() {
|
|
45
46
|
this.isCollapsed = !this.isCollapsed, this.collapseDistributions(this.index);
|
|
47
|
+
},
|
|
48
|
+
scrollToTop() {
|
|
49
|
+
let { x: e, y: o } = F({ behavior: "smooth" });
|
|
50
|
+
o.value = 0;
|
|
46
51
|
}
|
|
47
52
|
},
|
|
48
53
|
computed: {
|
|
49
|
-
...
|
|
54
|
+
...T("dpiStore", [
|
|
50
55
|
"getNavSteps"
|
|
51
56
|
]),
|
|
52
57
|
getName() {
|
|
@@ -65,117 +70,137 @@ const K = k({
|
|
|
65
70
|
setup() {
|
|
66
71
|
const {
|
|
67
72
|
steps: e,
|
|
68
|
-
activeStep:
|
|
69
|
-
visitedSteps:
|
|
70
|
-
previousStep:
|
|
71
|
-
nextStep:
|
|
72
|
-
stepPlugin:
|
|
73
|
-
goToNextStep:
|
|
73
|
+
activeStep: o,
|
|
74
|
+
visitedSteps: p,
|
|
75
|
+
previousStep: y,
|
|
76
|
+
nextStep: f,
|
|
77
|
+
stepPlugin: C,
|
|
78
|
+
goToNextStep: c,
|
|
74
79
|
goToPreviousStep: d
|
|
75
|
-
} =
|
|
80
|
+
} = P(), u = (t) => (e[t].errorCount > 0 || e[t].blockingCount > 0) && p.value.includes(t), i = $({
|
|
76
81
|
SelectControlledGroup: w
|
|
77
82
|
});
|
|
78
83
|
return {
|
|
79
84
|
steps: e,
|
|
80
|
-
visitedSteps:
|
|
81
|
-
activeStep:
|
|
82
|
-
previousStep:
|
|
83
|
-
nextStep:
|
|
84
|
-
stepPlugin:
|
|
85
|
+
visitedSteps: p,
|
|
86
|
+
activeStep: o,
|
|
87
|
+
previousStep: y,
|
|
88
|
+
nextStep: f,
|
|
89
|
+
stepPlugin: C,
|
|
85
90
|
checkStepValidity: u,
|
|
86
|
-
goToNextStep:
|
|
91
|
+
goToNextStep: c,
|
|
87
92
|
goToPreviousStep: d,
|
|
88
|
-
library:
|
|
93
|
+
library: i
|
|
89
94
|
};
|
|
90
95
|
}
|
|
91
|
-
}),
|
|
96
|
+
}), B = {
|
|
92
97
|
name: "distribution-stepper",
|
|
93
98
|
class: "singleDistributions"
|
|
94
|
-
},
|
|
99
|
+
}, K = {
|
|
95
100
|
key: 0,
|
|
96
101
|
class: "disInfoWrapper"
|
|
97
|
-
},
|
|
102
|
+
}, z = { class: "steps" }, L = ["data-step-active", "data-step-valid", "onClick"], O = { class: "stepBubbleWrap" }, W = { class: "circle stepCircle" }, q = ["textContent"], A = {
|
|
98
103
|
key: 0,
|
|
99
104
|
class: "seperatorHorizontalStepper"
|
|
100
|
-
},
|
|
105
|
+
}, E = {
|
|
101
106
|
key: 1,
|
|
102
107
|
class: "seperatorHorizontalStepper"
|
|
103
|
-
},
|
|
108
|
+
}, G = {
|
|
104
109
|
key: 0,
|
|
105
110
|
class: "step inactiveStep"
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
],
|
|
111
|
+
}, H = /* @__PURE__ */ a("div", { class: "circle stepCircle" }, null, -1), M = [
|
|
112
|
+
H
|
|
113
|
+
], R = { class: "d-flex flex-column w-100" }, U = {
|
|
109
114
|
key: 0,
|
|
110
115
|
class: "p-1"
|
|
111
|
-
},
|
|
112
|
-
function J(e,
|
|
113
|
-
const
|
|
114
|
-
return
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
n("
|
|
123
|
-
(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
116
|
+
}, N = /* @__PURE__ */ a("b", null, "*", -1), Z = { class: "m-3 d-flex justify-content-end" };
|
|
117
|
+
function J(e, o, p, y, f, C) {
|
|
118
|
+
const c = v("FormKitSchema"), d = v("InputPageStep"), u = v("FormKit");
|
|
119
|
+
return s(), n(S, null, [
|
|
120
|
+
h(u, {
|
|
121
|
+
type: "form",
|
|
122
|
+
actions: !1,
|
|
123
|
+
plugins: [e.stepPlugin]
|
|
124
|
+
}, {
|
|
125
|
+
default: _(() => [
|
|
126
|
+
a("div", B, [
|
|
127
|
+
e.isCollapsed ? l("", !0) : (s(), n("div", K, [
|
|
128
|
+
a("ul", z, [
|
|
129
|
+
(s(!0), n(S, null, g(e.steps, (i, t, m) => (s(), n("li", {
|
|
130
|
+
key: m,
|
|
131
|
+
class: D(["step", {
|
|
132
|
+
activeItem: e.activeStep === t,
|
|
133
|
+
inactiveStep: t != e.activeStep,
|
|
134
|
+
"has-errors": e.checkStepValidity(t)
|
|
135
|
+
}]),
|
|
136
|
+
"data-step-active": e.activeStep === t,
|
|
137
|
+
"data-step-valid": i.valid && i.errorCount === 0,
|
|
138
|
+
onClick: (Q) => e.activeStep = t
|
|
139
|
+
}, [
|
|
140
|
+
a("div", O, [
|
|
141
|
+
a("div", W, b(m + 1), 1),
|
|
142
|
+
r(),
|
|
143
|
+
e.checkStepValidity(t) ? (s(), n("span", {
|
|
144
|
+
key: 0,
|
|
145
|
+
class: "step--errors",
|
|
146
|
+
textContent: b(i.errorCount + i.blockingCount)
|
|
147
|
+
}, null, 8, q)) : l("", !0),
|
|
148
|
+
r(" " + b(e.camel2title(t)), 1)
|
|
149
|
+
]),
|
|
136
150
|
r(),
|
|
137
|
-
e.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}, null, 8, A)) : l("", !0),
|
|
142
|
-
r(" " + h(e.camel2title(t)), 1)
|
|
143
|
-
]),
|
|
144
|
-
r(),
|
|
145
|
-
m + 1 != Object.keys(e.getNavSteps(e.$env.content.dataProviderInterface.specification).distributions).length ? (i(), o("div", E)) : l("", !0),
|
|
151
|
+
m + 1 != Object.keys(e.getNavSteps(e.$env.content.dataProviderInterface.specification).distributions).length ? (s(), n("div", A)) : l("", !0),
|
|
152
|
+
r(),
|
|
153
|
+
e.activeStep === "overview" ? (s(), n("div", E)) : l("", !0)
|
|
154
|
+
], 10, L))), 128)),
|
|
146
155
|
r(),
|
|
147
|
-
e.activeStep === "overview" ? (
|
|
148
|
-
]
|
|
156
|
+
e.activeStep === "overview" ? (s(), n("li", G, M)) : l("", !0)
|
|
157
|
+
]),
|
|
149
158
|
r(),
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
159
|
+
a("div", R, [
|
|
160
|
+
(s(!0), n(S, null, g(e.getNavSteps(e.$env.content.dataProviderInterface.specification).distributions, (i, t) => (s(), n("div", { key: t }, [
|
|
161
|
+
h(d, { name: i }, {
|
|
162
|
+
default: _(() => [
|
|
163
|
+
h(c, {
|
|
164
|
+
schema: e.schema[i],
|
|
165
|
+
library: e.library
|
|
166
|
+
}, null, 8, ["schema", "library"]),
|
|
167
|
+
r(),
|
|
168
|
+
i === "Mandatory" ? (s(), n("p", U, [
|
|
169
|
+
N,
|
|
170
|
+
r(" mandatory")
|
|
171
|
+
])) : l("", !0)
|
|
172
|
+
]),
|
|
173
|
+
_: 2
|
|
174
|
+
}, 1032, ["name"])
|
|
175
|
+
]))), 128))
|
|
176
|
+
])
|
|
177
|
+
]))
|
|
178
|
+
])
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
}, 8, ["plugins"]),
|
|
182
|
+
r(),
|
|
183
|
+
a("div", Z, [
|
|
184
|
+
a("button", {
|
|
185
|
+
type: "button",
|
|
186
|
+
class: "btn btn-secondary",
|
|
187
|
+
onClick: o[0] || (o[0] = (i) => {
|
|
188
|
+
e.goToPreviousStep(), e.scrollToTop();
|
|
189
|
+
})
|
|
190
|
+
}, "Previous Distribution Step"),
|
|
191
|
+
r(),
|
|
192
|
+
a("button", {
|
|
193
|
+
type: "button",
|
|
194
|
+
class: "btn btn-secondary ml-3",
|
|
195
|
+
onClick: o[1] || (o[1] = (i) => {
|
|
196
|
+
e.goToNextStep(), e.scrollToTop();
|
|
197
|
+
})
|
|
198
|
+
}, "Next Distribution Step")
|
|
199
|
+
])
|
|
200
|
+
], 64);
|
|
176
201
|
}
|
|
177
|
-
const
|
|
202
|
+
const se = /* @__PURE__ */ V(j, [["render", J]]);
|
|
178
203
|
export {
|
|
179
|
-
|
|
204
|
+
se as default
|
|
180
205
|
};
|
|
181
206
|
//# sourceMappingURL=DistributionStepper.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributionStepper.vue.mjs","sources":["../../../lib/data-provider-interface/components/DistributionStepper.vue"],"sourcesContent":["<template>\n <FormKit type=\"form\" :actions=\"false\" :plugins=\"[stepPlugin]\">\n <div name=\"distribution-stepper\" class=\"singleDistributions\">\n <div class=\"disInfoWrapper\" v-if=\"!isCollapsed\">\n <ul class=\"steps\">\n <li v-for=\"(step, stepName, index) in steps\" :key=\"index\" class=\"step\"\n :data-step-active=\"activeStep === stepName\" :data-step-valid=\"step.valid && step.errorCount === 0\" :class=\"{\n activeItem: activeStep === stepName, inactiveStep: stepName != activeStep, 'has-errors': checkStepValidity(stepName)\n }\" @click=\"activeStep = stepName\">\n <div class=\"stepBubbleWrap\">\n <div class=\"circle stepCircle\">{{ index + 1 }}</div>\n <span v-if=\"checkStepValidity(stepName)\" class=\"step--errors\" \n v-text=\"step.errorCount + step.blockingCount\" />\n {{ camel2title(stepName) }}\n </div>\n <div v-if=\"index + 1 != Object.keys(getNavSteps($env.content.dataProviderInterface.specification).distributions).length\" class=\"seperatorHorizontalStepper\">\n </div>\n <div v-if=\"activeStep === 'overview'\" class=\"seperatorHorizontalStepper\"></div>\n </li>\n <li class=\"step inactiveStep\" v-if=\"activeStep === 'overview'\">\n <div class=\"circle stepCircle\"></div>\n </li>\n </ul>\n <div class=\"d-flex flex-column w-100\">\n <div v-for=\"(stepName, index) in getNavSteps($env.content.dataProviderInterface.specification).distributions\" :key=\"index\">\n <InputPageStep :name=\"stepName\">\n <!-- <PropertyChooser></PropertyChooser> -->\n <FormKitSchema :schema=\"schema[stepName]\" :library=\"library\" />\n <p v-if=\"stepName === 'Mandatory'\" class=\"p-1\"> <b>*</b> mandatory</p>\n </InputPageStep>\n </div>\n </div>\n </div>\n </div>\n </FormKit>\n</template>\n\n<script>\nimport { defineComponent, markRaw } from 'vue';\nimport { mapGetters } from 'vuex';\nimport { useDpiStepper } from '../composables/useDpiStepper';\nimport InputPageStep from '../components/InputPageStep.vue';\nimport SelectControlledGroup from './SelectControlledGroup.vue';\n\n\nexport default defineComponent({\n props: {\n name: {\n type: String,\n default: '',\n },\n index: {\n required: true\n },\n schema: {\n required: true,\n type: Object,\n },\n context: {\n type: Object,\n },\n distributionIsCollapsed: {\n type: Boolean,\n },\n collapseDistributions: {\n type: Function,\n },\n deleteDistribution: {\n type: Function,\n },\n },\n components: {\n InputPageStep,\n },\n data() {\n return {\n isCollapsed: false,\n camel2title: (str) =>\n str\n .replace(/([A-Z])/g, (match) => ` ${match}`)\n .replace(/^./, (match) => match.toUpperCase())\n .trim(),\n isActive: false\n }\n }, \n methods: {\n editDistribution() {\n this.isCollapsed = !this.isCollapsed;\n this.collapseDistributions(this.index);\n }\n }, \n computed: {\n ...mapGetters('dpiStore', [\n 'getNavSteps'\n ]),\n getName() {\n return this.name \n || values['Distributions']['distributionList'][this.name - 1]['Mandatory']['dcat:accessURL'][0]['@id'];\n },\n },\n watch: {\n distributionIsCollapsed: {\n handler(newValue) {\n this.isCollapsed = newValue;\n },\n },\n },\n created() {},\n setup() {\n const {\n steps,\n activeStep,\n visitedSteps,\n previousStep,\n nextStep,\n stepPlugin,\n goToNextStep,\n goToPreviousStep,\n } = useDpiStepper();\n\n const checkStepValidity = (stepName) => {\n return (steps[stepName].errorCount > 0 || steps[stepName].blockingCount > 0) && visitedSteps.value.includes(stepName)\n }\n\n const library = markRaw({\n SelectControlledGroup,\n })\n\n return {\n steps,\n visitedSteps,\n activeStep,\n previousStep,\n nextStep,\n stepPlugin,\n checkStepValidity,\n goToNextStep,\n goToPreviousStep,\n \n library,\n }\n }\n});\n</script>\n\n<style></style>"],"names":["_sfc_main","defineComponent","InputPageStep","str","match","mapGetters","newValue","steps","activeStep","visitedSteps","previousStep","nextStep","stepPlugin","goToNextStep","goToPreviousStep","useDpiStepper","checkStepValidity","stepName","library","markRaw","SelectControlledGroup","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_createElementVNode","_hoisted_11","_hoisted_13","_hoisted_15","_createBlock","_component_FormKit","_ctx","_withCtx","_hoisted_1","_createCommentVNode","_openBlock","_createElementBlock","_hoisted_2","_Fragment","_renderList","step","index","_normalizeClass","$event","_toDisplayString","_createTextVNode","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_12","_createVNode","_component_InputPageStep","_component_FormKitSchema","_hoisted_14"],"mappings":";;;;;;AA6CA,MAAKA,IAAaC,EAAa;AAAA,EAC7B,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,OAAO;AAAA,MACL,UAAU;AAAA,IACX;AAAA,IACD,QAAQ;AAAA,MACN,UAAU;AAAA,MACV,MAAM;AAAA,IACP;AAAA,IACD,SAAS;AAAA,MACP,MAAM;AAAA,IACP;AAAA,IACD,yBAAyB;AAAA,MACvB,MAAM;AAAA,IACP;AAAA,IACD,uBAAuB;AAAA,MACrB,MAAM;AAAA,IACP;AAAA,IACD,oBAAoB;AAAA,MAClB,MAAM;AAAA,IACP;AAAA,EACF;AAAA,EACD,YAAY;AAAA,mBACVC;AAAAA,EACD;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,aAAa;AAAA,MACb,aAAa,CAACC,MACZA,EACG,QAAQ,YAAY,CAACC,MAAU,IAAIA,CAAK,EAAE,EAC1C,QAAQ,MAAM,CAACA,MAAUA,EAAM,YAAW,CAAE,EAC5C,KAAM;AAAA,MACX,UAAU;AAAA,IACZ;AAAA,EACD;AAAA,EACD,SAAS;AAAA,IACP,mBAAmB;AACjB,WAAK,cAAc,CAAC,KAA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AAA,GAAA;AAAA;;;;;;IAAA,GAAA;AAAA;;;"}
|
|
1
|
+
{"version":3,"file":"DistributionStepper.vue.mjs","sources":["../../../lib/data-provider-interface/components/DistributionStepper.vue"],"sourcesContent":["<template>\n <FormKit type=\"form\" :actions=\"false\" :plugins=\"[stepPlugin]\">\n <div name=\"distribution-stepper\" class=\"singleDistributions\">\n <div class=\"disInfoWrapper\" v-if=\"!isCollapsed\">\n <ul class=\"steps\">\n <li v-for=\"(step, stepName, index) in steps\" :key=\"index\" class=\"step\"\n :data-step-active=\"activeStep === stepName\" :data-step-valid=\"step.valid && step.errorCount === 0\" :class=\"{\n activeItem: activeStep === stepName, inactiveStep: stepName != activeStep, 'has-errors': checkStepValidity(stepName)\n }\" @click=\"activeStep = stepName\">\n <div class=\"stepBubbleWrap\">\n <div class=\"circle stepCircle\">{{ index + 1 }}</div>\n <span v-if=\"checkStepValidity(stepName)\" class=\"step--errors\"\n v-text=\"step.errorCount + step.blockingCount\" />\n {{ camel2title(stepName) }}\n </div>\n <div\n v-if=\"index + 1 != Object.keys(getNavSteps($env.content.dataProviderInterface.specification).distributions).length\"\n class=\"seperatorHorizontalStepper\">\n </div>\n <div v-if=\"activeStep === 'overview'\" class=\"seperatorHorizontalStepper\"></div>\n </li>\n <li class=\"step inactiveStep\" v-if=\"activeStep === 'overview'\">\n <div class=\"circle stepCircle\"></div>\n </li>\n </ul>\n <div class=\"d-flex flex-column w-100\">\n <div v-for=\"(stepName, index) in getNavSteps($env.content.dataProviderInterface.specification).distributions\"\n :key=\"index\">\n <InputPageStep :name=\"stepName\">\n <!-- <PropertyChooser></PropertyChooser> -->\n <FormKitSchema :schema=\"schema[stepName]\" :library=\"library\" />\n <p v-if=\"stepName === 'Mandatory'\" class=\"p-1\"> <b>*</b> mandatory</p>\n </InputPageStep>\n </div>\n </div>\n </div>\n </div>\n </FormKit>\n <div class=\"m-3 d-flex justify-content-end\">\n <button type=\"button\" class=\"btn btn-secondary\" @click=\"goToPreviousStep(); scrollToTop();\">Previous Distribution Step</button>\n <button type=\"button\" class=\"btn btn-secondary ml-3\" @click=\"goToNextStep(); scrollToTop();\">Next Distribution Step</button>\n </div>\n</template>\n\n<script>\nimport { defineComponent, markRaw } from 'vue';\nimport { mapGetters } from 'vuex';\nimport { useDpiStepper } from '../composables/useDpiStepper';\nimport InputPageStep from '../components/InputPageStep.vue';\nimport SelectControlledGroup from './SelectControlledGroup.vue';\nimport { useWindowScroll } from '@vueuse/core'\n\n\nexport default defineComponent({\n props: {\n name: {\n type: String,\n default: '',\n },\n index: {\n required: true\n },\n schema: {\n required: true,\n type: Object,\n },\n context: {\n type: Object,\n },\n distributionIsCollapsed: {\n type: Boolean,\n },\n collapseDistributions: {\n type: Function,\n },\n deleteDistribution: {\n type: Function,\n },\n },\n components: {\n InputPageStep,\n },\n data() {\n return {\n isCollapsed: false,\n camel2title: (str) =>\n str\n .replace(/([A-Z])/g, (match) => ` ${match}`)\n .replace(/^./, (match) => match.toUpperCase())\n .trim(),\n isActive: false\n }\n },\n methods: {\n editDistribution() {\n this.isCollapsed = !this.isCollapsed;\n this.collapseDistributions(this.index);\n },\n scrollToTop() {\n let { x, y } = useWindowScroll({ behavior: 'smooth' })\n y.value = 0\n\n }\n },\n computed: {\n ...mapGetters('dpiStore', [\n 'getNavSteps'\n ]),\n getName() {\n return this.name\n || values['Distributions']['distributionList'][this.name - 1]['Mandatory']['dcat:accessURL'][0]['@id'];\n },\n },\n watch: {\n distributionIsCollapsed: {\n handler(newValue) {\n this.isCollapsed = newValue;\n },\n },\n },\n created() { },\n setup() {\n const {\n steps,\n activeStep,\n visitedSteps,\n previousStep,\n nextStep,\n stepPlugin,\n goToNextStep,\n goToPreviousStep,\n } = useDpiStepper();\n\n const checkStepValidity = (stepName) => {\n return (steps[stepName].errorCount > 0 || steps[stepName].blockingCount > 0) && visitedSteps.value.includes(stepName)\n }\n\n const library = markRaw({\n SelectControlledGroup,\n })\n\n return {\n steps,\n visitedSteps,\n activeStep,\n previousStep,\n nextStep,\n stepPlugin,\n checkStepValidity,\n goToNextStep,\n goToPreviousStep,\n\n library,\n }\n }\n});\n</script>\n\n<style></style>"],"names":["_sfc_main","defineComponent","InputPageStep","str","match","x","y","useWindowScroll","mapGetters","newValue","steps","activeStep","visitedSteps","previousStep","nextStep","stepPlugin","goToNextStep","goToPreviousStep","useDpiStepper","checkStepValidity","stepName","library","markRaw","SelectControlledGroup","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_createElementVNode","_hoisted_11","_hoisted_13","_hoisted_15","_hoisted_16","_openBlock","_createElementBlock","_Fragment","_createVNode","_component_FormKit","_ctx","_withCtx","_hoisted_1","_createCommentVNode","_hoisted_2","_renderList","step","index","_normalizeClass","$event","_toDisplayString","_createTextVNode","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_12","_component_InputPageStep","_component_FormKitSchema","_hoisted_14","_cache"],"mappings":";;;;;;;AAqDA,MAAKA,IAAaC,EAAa;AAAA,EAC7B,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,OAAO;AAAA,MACL,UAAU;AAAA,IACX;AAAA,IACD,QAAQ;AAAA,MACN,UAAU;AAAA,MACV,MAAM;AAAA,IACP;AAAA,IACD,SAAS;AAAA,MACP,MAAM;AAAA,IACP;AAAA,IACD,yBAAyB;AAAA,MACvB,MAAM;AAAA,IACP;AAAA,IACD,uBAAuB;AAAA,MACrB,MAAM;AAAA,IACP;AAAA,IACD,oBAAoB;AAAA,MAClB,MAAM;AAAA,IACP;AAAA,EACF;AAAA,EACD,YAAY;AAAA,mBACVC;AAAAA,EACD;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,aAAa;AAAA,MACb,aAAa,CAACC,MACZA,EACG,QAAQ,YAAY,CAACC,MAAU,IAAIA,CAAK,EAAE,EAC1C,QAAQ,MAAM,CAACA,MAAUA,EAAM,YAAW,CAAE,EAC5C,KAAM;AAAA,MACX,U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;AAAA,kBA5B1C,SAAAoB,EA8Bc,MAA+D;AAAA,oBAA/DH,EAA+DmB,GAAA;AAAA,sBAA/C,QAAQjB,EAAM,OAACnB,CAAQ;AAAA,sBAAI,SAASmB,EAAO;AAAA;oBA9BzEW,EAAA;AAAA,oBA+BuB9B,MAAQ,eAAjBc,KAAAC,EAAsE,KAAtEsB,GAAsE;AAAA,sBAAtBzB;AAAA,sBA/B9DkB,EA+BsE,YAAU;AAAA,0BA/BhFR,EAAA,IAAA,EAAA;AAAA;kBAAA,GAAA;AAAA;;;;;;MAAA,GAAA;AAAA;IAAAQ,EAAA;AAAA,IAsCErB,EAGM,OAHNI,GAGM;AAAA,MAFJJ,EAA+H,UAAA;AAAA,QAAvH,MAAK;AAAA,QAAS,OAAM;AAAA,QAAqB,SAAK6B,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAV,MAAA;AAAE,UAAAT,EAAgB,iBAAA,GAAIA,EAAW,YAAA;AAAA,QAAA;AAAA,SAAK,4BAA0B;AAAA,MAvC1HW,EAAA;AAAA,MAwCIrB,EAA4H,UAAA;AAAA,QAApH,MAAK;AAAA,QAAS,OAAM;AAAA,QAA0B,SAAK6B,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAV,MAAA;AAAE,UAAAT,EAAY,aAAA,GAAIA,EAAW,YAAA;AAAA,QAAA;AAAA,SAAK,wBAAsB;AAAA;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
context?: Record<string, any> | undefined;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly context?: Record<string, any> | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { openBlock as s, createElementBlock as p, createVNode as r, unref as a, isRef as c } from "vue";
|
|
2
|
+
import { FormKit as d } from "@formkit/vue";
|
|
3
|
+
const u = { class: "formkitProperty w-100" }, U = {
|
|
4
|
+
__name: "SimpleAccessURLInput",
|
|
5
|
+
props: {
|
|
6
|
+
context: Object
|
|
7
|
+
},
|
|
8
|
+
setup(i) {
|
|
9
|
+
const e = i;
|
|
10
|
+
let t;
|
|
11
|
+
const n = async () => {
|
|
12
|
+
this.URLValue.includes("http://") || this.URLValue.includes("https://") ? await this.context.node.input({ "@id": this.URLValue }) : await this.context.node.input({ "@id": "https://" + this.URLValue });
|
|
13
|
+
};
|
|
14
|
+
return (h, l) => (s(), p("div", u, [
|
|
15
|
+
r(a(d), {
|
|
16
|
+
id: "aUrlLink",
|
|
17
|
+
modelValue: a(t),
|
|
18
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => c(t) ? t.value = o : t = o),
|
|
19
|
+
class: "selectInputField formkit-inner",
|
|
20
|
+
type: "url",
|
|
21
|
+
name: "@id",
|
|
22
|
+
help: e.context.help,
|
|
23
|
+
placeholder: e.context.attrs.placeholder,
|
|
24
|
+
validation: e.context.attrs.validationType,
|
|
25
|
+
onInput: n
|
|
26
|
+
}, null, 8, ["modelValue", "help", "placeholder", "validation"])
|
|
27
|
+
]));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
U as default
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=SimpleAccessURLInput.vue.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleAccessURLInput.vue.mjs","sources":["../../../lib/data-provider-interface/components/SimpleAccessURLInput.vue"],"sourcesContent":["<script setup>\n\nimport { FormKit } from '@formkit/vue';\n\nconst props = defineProps({\n context: Object\n})\n\nlet URLValue\n\nconst saveUrl = async () => {\n\n if (this.URLValue.includes('http://') || this.URLValue.includes('https://')) {\n await this.context.node.input({ '@id': this.URLValue})\n }\n else await this.context.node.input({ '@id': 'https://' + this.URLValue })\n\n}\n</script>\n<template>\n <div class=\"formkitProperty w-100\">\n <FormKit id=\"aUrlLink\" v-model=\"URLValue\" class=\"selectInputField formkit-inner\" type=\"url\" name=\"@id\"\n :help=\"props.context.help\" :placeholder=\"props.context.attrs.placeholder\"\n :validation=\"props.context.attrs.validationType\" @input=\"saveUrl\" />\n </div>\n</template>\n<style></style>"],"names":["props","__props","URLValue","saveUrl"],"mappings":";;;;;;;;AAIA,UAAMA,IAAQC;AAId,QAAIC;AAEJ,UAAMC,IAAU,YAAY;AAExB,MAAI,KAAK,SAAS,SAAS,SAAS,KAAK,KAAK,SAAS,SAAS,UAAU,IACtE,MAAM,KAAK,QAAQ,KAAK,MAAM,EAAE,OAAO,KAAK,SAAQ,CAAC,IAEpD,MAAM,KAAK,QAAQ,KAAK,MAAM,EAAE,OAAO,aAAa,KAAK,UAAU;AAAA,IAE5E;;;;;;;;;;;;;;;;;"}
|