@piveau/piveau-hub-ui-modules 4.2.0 → 4.3.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +98 -98
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +136 -129
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +60 -60
- package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/FileUpload.vue.mjs +2 -2
- package/dist/data-provider-interface/components/FileUpload.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/components/SimpleInput.vue.mjs +16 -20
- package/dist/data-provider-interface/components/SimpleInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SimpleSelect.vue.mjs +31 -31
- package/dist/data-provider-interface/components/SimpleSelect.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SpatialInput.vue.mjs +90 -94
- package/dist/data-provider-interface/components/SpatialInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SpatialInput.vue2.mjs +2 -2
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs +41 -30
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatapde/input-definition.mjs +105 -97
- package/dist/data-provider-interface/config/dcatapde/input-definition.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatapdeODB/input-definition.mjs +2 -6
- package/dist/data-provider-interface/config/dcatapdeODB/input-definition.mjs.map +1 -1
- package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs +52 -52
- package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.mjs +67 -67
- package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
- package/dist/form/Repeatable.vue.mjs +29 -29
- 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,81 +1,81 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useStore as
|
|
3
|
-
import
|
|
4
|
-
import { cloneDeep as
|
|
1
|
+
import { ref as m, onMounted as C, nextTick as A, resolveComponent as V, openBlock as r, createElementBlock as d, Fragment as v, createElementVNode as e, toDisplayString as a, createTextVNode as i, createVNode as h, withCtx as $, renderList as w, normalizeClass as F } from "vue";
|
|
2
|
+
import { useStore as S } from "vuex";
|
|
3
|
+
import j from "../components/DistributionStepper.vue.mjs";
|
|
4
|
+
import { cloneDeep as L } from "lodash-es";
|
|
5
5
|
import "@formkit/core";
|
|
6
|
-
const
|
|
6
|
+
const E = /* @__PURE__ */ e("hr", null, null, -1), I = {
|
|
7
7
|
name: "distribution-stepper-list",
|
|
8
8
|
class: "distributionsListClass"
|
|
9
|
-
},
|
|
9
|
+
}, N = { class: "d-flex m-4 align-items-center justify-content-between" }, O = { class: "m-0" }, B = ["onClick"], K = ["onClick"], q = {
|
|
10
10
|
__name: "DistributionInputPage",
|
|
11
11
|
props: {
|
|
12
12
|
values: Object,
|
|
13
13
|
schema: Object
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const n =
|
|
15
|
+
setup(f) {
|
|
16
|
+
const n = f, c = m([]), p = S(), s = m({
|
|
17
17
|
disList: []
|
|
18
18
|
});
|
|
19
|
-
|
|
19
|
+
C(async () => {
|
|
20
20
|
if (await A(), n.values.Distributions.distributionList.length != 0)
|
|
21
21
|
for (let t = 0; t < n.values.Distributions.distributionList.length; t++)
|
|
22
22
|
c.value.push("distribution " + t), s.value.disList.push({ name: "distribution " + t, isActive: !1 });
|
|
23
23
|
});
|
|
24
|
-
const
|
|
24
|
+
const D = () => {
|
|
25
25
|
s.value.disList.push({ name: "distribution " + s.value.disList.length, isActive: !1 }), b(s.value.disList.length - 1);
|
|
26
26
|
}, b = (t) => {
|
|
27
27
|
s.value.disList.forEach(
|
|
28
|
-
(
|
|
29
|
-
t !=
|
|
28
|
+
(l, u) => {
|
|
29
|
+
t != u && (l.isActive = !1);
|
|
30
30
|
}
|
|
31
31
|
), s.value.disList[t].isActive = !s.value.disList[t].isActive;
|
|
32
|
-
},
|
|
33
|
-
const
|
|
34
|
-
|
|
32
|
+
}, _ = (t) => {
|
|
33
|
+
const l = L(n.values);
|
|
34
|
+
l.Distributions.distributionList.splice(t, 1), p.dispatch("dpiStore/saveFormValues", { property: "datasets", values: l }), s.value.disList.splice(t, 1);
|
|
35
35
|
}, y = () => {
|
|
36
|
-
const t =
|
|
37
|
-
t.Distributions.distributionList = [],
|
|
36
|
+
const t = L(n.values);
|
|
37
|
+
t.Distributions.distributionList = [], p.dispatch("dpiStore/saveFormValues", { property: "datasets", values: t }), s.value.disList = [];
|
|
38
38
|
};
|
|
39
|
-
return (t,
|
|
40
|
-
const
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
return (t, l) => {
|
|
40
|
+
const u = V("FormKit");
|
|
41
|
+
return r(), d(v, null, [
|
|
42
|
+
e("h1", null, a(t.$t("message.dataupload.info.distributions")), 1),
|
|
43
|
+
i(),
|
|
44
|
+
E,
|
|
45
|
+
i(),
|
|
46
|
+
e("div", I, [
|
|
47
|
+
h(u, {
|
|
48
48
|
type: "list",
|
|
49
49
|
name: "distributionList"
|
|
50
50
|
}, {
|
|
51
|
-
default:
|
|
52
|
-
(
|
|
51
|
+
default: $(() => [
|
|
52
|
+
(r(!0), d(v, null, w(s.value.disList, (g, o) => (r(), d("section", {
|
|
53
53
|
key: o,
|
|
54
54
|
class: "distributionOuter"
|
|
55
55
|
}, [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
e("div", N, [
|
|
57
|
+
e("h2", O, "Distribution " + a(o + 1), 1),
|
|
58
|
+
i(),
|
|
59
|
+
e("div", null, [
|
|
60
|
+
e("button", {
|
|
61
61
|
class: "btn btn-secondary",
|
|
62
62
|
type: "button",
|
|
63
|
-
onClick: (
|
|
64
|
-
}, "
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
onClick: (k) => b(o)
|
|
64
|
+
}, a(t.$t("message.datasetDetails.edit")), 9, B),
|
|
65
|
+
i(),
|
|
66
|
+
e("button", {
|
|
67
67
|
class: "btn btn-secondary",
|
|
68
68
|
type: "button",
|
|
69
|
-
onClick: (
|
|
70
|
-
}, "
|
|
69
|
+
onClick: (k) => _(o)
|
|
70
|
+
}, a(t.$t("message.datasetDetails.delete")), 9, K)
|
|
71
71
|
])
|
|
72
72
|
]),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
class:
|
|
73
|
+
i(),
|
|
74
|
+
e("div", {
|
|
75
|
+
class: F(["disInputWrapper", { "d-none": !s.value.disList[o].isActive }])
|
|
76
76
|
}, [
|
|
77
|
-
|
|
78
|
-
name:
|
|
77
|
+
h(j, {
|
|
78
|
+
name: g.name,
|
|
79
79
|
index: o,
|
|
80
80
|
schema: n.schema,
|
|
81
81
|
values: n.values,
|
|
@@ -86,24 +86,24 @@ const j = /* @__PURE__ */ i("h1", null, "Distributions", -1), I = /* @__PURE__ *
|
|
|
86
86
|
]),
|
|
87
87
|
_: 1
|
|
88
88
|
}),
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
i(),
|
|
90
|
+
e("button", {
|
|
91
91
|
type: "button",
|
|
92
92
|
class: "btn btn-secondary",
|
|
93
|
-
onClick:
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
onClick: D
|
|
94
|
+
}, a(t.$t("message.dataupload.info.newDistribution")), 1),
|
|
95
|
+
i(),
|
|
96
|
+
e("button", {
|
|
97
97
|
type: "button",
|
|
98
98
|
class: "btn btn-secondary",
|
|
99
99
|
onClick: y
|
|
100
|
-
}, "
|
|
100
|
+
}, a(t.$t("message.dataupload.info.deleteDistribution")), 1)
|
|
101
101
|
])
|
|
102
102
|
], 64);
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
export {
|
|
107
|
-
|
|
107
|
+
q as default
|
|
108
108
|
};
|
|
109
109
|
//# sourceMappingURL=DistributionInputPage.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributionInputPage.vue.mjs","sources":["../../../lib/data-provider-interface/views/DistributionInputPage.vue"],"sourcesContent":["<template>\n <h1>
|
|
1
|
+
{"version":3,"file":"DistributionInputPage.vue.mjs","sources":["../../../lib/data-provider-interface/views/DistributionInputPage.vue"],"sourcesContent":["<template>\n <h1>{{ $t('message.dataupload.info.distributions') }}</h1>\n <hr>\n <div name=\"distribution-stepper-list\" class=\"distributionsListClass\">\n\n <FormKit type=\"list\" name=\"distributionList\">\n\n <section v-for=\"(dist, index) in list.disList\" :key=\"index\" class=\"distributionOuter\">\n <div class=\"d-flex m-4 align-items-center justify-content-between\">\n <h2 class=\"m-0\">Distribution {{ index + 1 }}</h2>\n <div>\n <button class=\"btn btn-secondary\" type=\"button\" @click=\"editDis(index)\">{{ $t('message.datasetDetails.edit')\n }}</button>\n <button class=\"btn btn-secondary\" type=\"button\" @click=\"removeDis(index)\">{{\n $t('message.datasetDetails.delete') }}</button>\n </div>\n </div>\n <div class=\"disInputWrapper\" :class=\"{ 'd-none': !list.disList[index].isActive }\">\n <DistributionStepper :name=\"dist.name\" :index=\"index\" :schema=\"props.schema\" :values=\"props.values\"\n :distributionList=\"disIndex\">\n </DistributionStepper>\n\n </div>\n\n </section>\n </FormKit>\n <button type=\"button\" class=\"btn btn-secondary\" @click=\"addDistribution\">{{ $t('message.dataupload.info.newDistribution')\n }}</button>\n <button type=\"button\" class=\"btn btn-secondary\" @click=\"deleteAllDistributions\">{{\n $t('message.dataupload.info.deleteDistribution') }}</button>\n\n </div>\n</template>\n<script setup>\nimport { ref, onMounted, nextTick, computed } from 'vue';\nimport { useStore } from 'vuex';\nimport DistributionStepper from '../components/DistributionStepper.vue';\nimport { cloneDeep } from 'lodash';\nimport { useDpiStepper } from '../composables/useDpiStepper';\n\nconst props = defineProps({\n values: Object,\n schema: Object,\n})\n\nconst disIndex = ref([])\nconst store = useStore();\n\nconst list = ref({\n disList: [],\n})\nonMounted(async () => {\n // Load DOM\n await nextTick()\n if (props.values.Distributions.distributionList.length != 0) {\n for (let index = 0; index < props.values.Distributions.distributionList.length; index++) {\n disIndex.value.push('distribution ' + index)\n list.value.disList.push({ 'name': 'distribution ' + index, 'isActive': false })\n }\n }\n})\nconst addDistribution = () => {\n list.value.disList.push({ 'name': 'distribution ' + list.value.disList.length, 'isActive': false })\n editDis(list.value.disList.length - 1)\n}\nconst editDis = (i) => {\n list.value.disList.forEach((el, index) => {\n if (i != index) {\n el.isActive = false\n }\n }\n )\n list.value.disList[i].isActive = !list.value.disList[i].isActive\n}\nconst removeDis = (i) => {\n const newValues = cloneDeep(props.values);\n newValues.Distributions.distributionList.splice(i, 1);\n\n store.dispatch('dpiStore/saveFormValues', { property: 'datasets', values: newValues });\n list.value.disList.splice(i, 1)\n}\nconst deleteAllDistributions = () => {\n const newValues = cloneDeep(props.values);\n newValues.Distributions.distributionList = [];\n store.dispatch('dpiStore/saveFormValues', { property: 'datasets', values: newValues });\n\n list.value.disList = []\n}\n\n\n</script>"],"names":["props","__props","disIndex","ref","store","useStore","list","onMounted","nextTick","index","addDistribution","editDis","i","el","removeDis","newValues","cloneDeep","deleteAllDistributions"],"mappings":";;;;;;;;;;;;;;;AAwCA,UAAMA,IAAQC,GAKRC,IAAWC,EAAI,EAAE,GACjBC,IAAQC,EAAQ,GAEhBC,IAAOH,EAAI;AAAA,MACf,SAAS,CAAE;AAAA,IACb,CAAC;AACD,IAAAI,EAAU,YAAY;AAGpB,UADA,MAAMC,EAAU,GACZR,EAAM,OAAO,cAAc,iBAAiB,UAAU;AACxD,iBAASS,IAAQ,GAAGA,IAAQT,EAAM,OAAO,cAAc,iBAAiB,QAAQS;AAC9E,UAAAP,EAAS,MAAM,KAAK,kBAAkBO,CAAK,GAC3CH,EAAK,MAAM,QAAQ,KAAK,EAAE,MAAQ,kBAAkBG,GAAO,UAAY,IAAO;AAAA,IAGpF,CAAC;AACD,UAAMC,IAAkB,MAAM;AAC5B,MAAAJ,EAAK,MAAM,QAAQ,KAAK,EAAE,MAAQ,kBAAkBA,EAAK,MAAM,QAAQ,QAAQ,UAAY,GAAK,CAAE,GAClGK,EAAQL,EAAK,MAAM,QAAQ,SAAS,CAAC;AAAA,IACvC,GACMK,IAAU,CAACC,MAAM;AACrB,MAAAN,EAAK,MAAM,QAAQ;AAAA,QAAQ,CAACO,GAAIJ,MAAU;AACxC,UAAIG,KAAKH,MACPI,EAAG,WAAW;AAAA,QAEjB;AAAA,MACA,GACDP,EAAK,MAAM,QAAQM,CAAC,EAAE,WAAW,CAACN,EAAK,MAAM,QAAQM,CAAC,EAAE;AAAA,IAC1D,GACME,IAAY,CAACF,MAAM;AACvB,YAAMG,IAAYC,EAAUhB,EAAM,MAAM;AACxC,MAAAe,EAAU,cAAc,iBAAiB,OAAOH,GAAG,CAAC,GAEpDR,EAAM,SAAS,2BAA2B,EAAE,UAAU,YAAY,QAAQW,EAAS,CAAE,GACrFT,EAAK,MAAM,QAAQ,OAAOM,GAAG,CAAC;AAAA,IAChC,GACMK,IAAyB,MAAM;AACnC,YAAMF,IAAYC,EAAUhB,EAAM,MAAM;AACxC,MAAAe,EAAU,cAAc,mBAAmB,IAC3CX,EAAM,SAAS,2BAA2B,EAAE,UAAU,YAAY,QAAQW,EAAS,CAAE,GAErFT,EAAK,MAAM,UAAU,CAAE;AAAA,IACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as N, markRaw as w, resolveComponent as
|
|
2
|
-
import { mapGetters as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as N, markRaw as w, resolveComponent as S, openBlock as a, createElementBlock as o, createElementVNode as c, createVNode as k, withModifiers as F, withCtx as T, Fragment as C, renderList as P, normalizeClass as L, toDisplayString as g, createTextVNode as l, createCommentVNode as u, createBlock as D } from "vue";
|
|
2
|
+
import { mapGetters as V, mapActions as E } from "vuex";
|
|
3
|
+
import A from "jquery";
|
|
4
|
+
import _ from "./PropertyChooser.vue.mjs";
|
|
5
5
|
import { has as b, isNil as $, isEmpty as M } from "lodash-es";
|
|
6
6
|
import O from "./DistributionInputPage.vue.mjs";
|
|
7
7
|
import H from "./OverviewPage.vue.mjs";
|
|
@@ -37,15 +37,15 @@ const K = N({
|
|
|
37
37
|
components: {
|
|
38
38
|
InputPageStep: U,
|
|
39
39
|
DistributionInputPage: O,
|
|
40
|
-
PropertyChooser:
|
|
40
|
+
PropertyChooser: _,
|
|
41
41
|
Navigation: W
|
|
42
42
|
},
|
|
43
43
|
computed: {
|
|
44
|
-
...
|
|
44
|
+
...V("auth", [
|
|
45
45
|
"getIsEditMode",
|
|
46
46
|
"getUserCatalogIds"
|
|
47
47
|
]),
|
|
48
|
-
...
|
|
48
|
+
...V("dpiStore", [
|
|
49
49
|
"getSchema",
|
|
50
50
|
"getNavSteps",
|
|
51
51
|
"getDeleteDistributionInline"
|
|
@@ -67,11 +67,11 @@ const K = N({
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
methods: {
|
|
70
|
-
...
|
|
70
|
+
...E("auth", [
|
|
71
71
|
"setIsEditMode",
|
|
72
72
|
"setIsDraft"
|
|
73
73
|
]),
|
|
74
|
-
...
|
|
74
|
+
...E("dpiStore", [
|
|
75
75
|
"createSchema",
|
|
76
76
|
"translateSchema",
|
|
77
77
|
"saveFormValues",
|
|
@@ -98,60 +98,60 @@ const K = N({
|
|
|
98
98
|
},
|
|
99
99
|
initInputPage() {
|
|
100
100
|
const e = this.getSchema(this.property), t = Object.keys(e).find(
|
|
101
|
-
(
|
|
101
|
+
(r) => e[r].map((m) => m.name).includes("dct:issued") || e[r].map((m) => m.name).includes("dct:modified")
|
|
102
102
|
);
|
|
103
103
|
localStorage.getItem("dpi_editmode") === "true" && t != null && e[t].forEach(
|
|
104
|
-
(
|
|
105
|
-
(
|
|
104
|
+
(r) => {
|
|
105
|
+
(r.identifier === "issued" || r.identifier === "modified") && (r.children[1].props.else.validation = "", r.children[1].props.else["validation-visibility"] = "", r.children[1].props.then.validation = "", r.children[1].props.then["validation-visibility"] = "", r.children[1].props.then.validation = "", r.children[1].props.then["validation-visibility"] = "");
|
|
106
106
|
}
|
|
107
107
|
), localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.saveLocalstorageValues(this.property);
|
|
108
108
|
const d = this.$store.getters["dpiStore/getRawValues"]({ property: this.property });
|
|
109
109
|
M(d) || (this.formValues = d), this.$nextTick(() => {
|
|
110
|
-
|
|
110
|
+
A('[data-toggle="tooltip"]').tooltip({
|
|
111
111
|
container: "body"
|
|
112
112
|
}), setTimeout(() => {
|
|
113
|
-
document.querySelectorAll(".formkitProperty h4").forEach((n,
|
|
114
|
-
n.parentElement.parentElement.classList.contains("formkitWrapRepeatable") || (
|
|
113
|
+
document.querySelectorAll(".formkitProperty h4").forEach((n, s) => {
|
|
114
|
+
n.parentElement.parentElement.classList.contains("formkitWrapRepeatable") || (s != 0 && s != 1 && s != 2 && s != 3 && n.nextElementSibling.classList.toggle("d-none"), n.addEventListener("click", () => {
|
|
115
115
|
n.classList.toggle("dpiChevUp"), n.nextElementSibling.classList.toggle("d-none");
|
|
116
116
|
}));
|
|
117
117
|
});
|
|
118
|
-
const m = document.querySelectorAll(".formkitProperty"),
|
|
119
|
-
for (const
|
|
120
|
-
if (
|
|
121
|
-
if (
|
|
118
|
+
const m = document.querySelectorAll(".formkitProperty"), y = (n) => {
|
|
119
|
+
for (const s of n)
|
|
120
|
+
if (s.type === "attributes") {
|
|
121
|
+
if (s.target.getAttribute("data-invalid") === "true") {
|
|
122
122
|
try {
|
|
123
|
-
|
|
123
|
+
s.target.parentNode.parentNode.parentNode.previousElementSibling.tagName === "H4" && s.target.parentNode.parentNode.parentNode.previousElementSibling.classList.add("isInvalidProperty");
|
|
124
124
|
} catch {
|
|
125
125
|
}
|
|
126
126
|
try {
|
|
127
|
-
|
|
127
|
+
s.target.previousElementSibling.tagName === "H4" && s.target.previousElementSibling.classList.add("isInvalidProperty");
|
|
128
128
|
} catch {
|
|
129
129
|
}
|
|
130
130
|
try {
|
|
131
|
-
|
|
131
|
+
s.target.parentNode.previousElementSibling.tagName === "H4" && s.target.parentNode.previousElementSibling.classList.add("isInvalidProperty");
|
|
132
132
|
} catch {
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
if (
|
|
135
|
+
if (s.target.getAttribute("data-invalid") === null || s.target.getAttribute("data-invalid") === "false") {
|
|
136
136
|
try {
|
|
137
|
-
|
|
137
|
+
s.target.parentNode.parentNode.parentNode.previousElementSibling.tagName === "H4" && s.target.parentNode.parentNode.parentNode.previousElementSibling.classList.remove("isInvalidProperty");
|
|
138
138
|
} catch {
|
|
139
139
|
}
|
|
140
140
|
try {
|
|
141
|
-
|
|
141
|
+
s.target.previousElementSibling.tagName === "H4" && s.target.previousElementSibling.classList.remove("isInvalidProperty");
|
|
142
142
|
} catch {
|
|
143
143
|
}
|
|
144
144
|
try {
|
|
145
|
-
|
|
145
|
+
s.target.parentNode.previousElementSibling.tagName === "H4" && s.target.parentNode.previousElementSibling.classList.remove("isInvalidProperty");
|
|
146
146
|
} catch {
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
},
|
|
150
|
+
}, v = new MutationObserver(y), f = { attributes: !0 };
|
|
151
151
|
let h = [];
|
|
152
|
-
m.forEach((n,
|
|
152
|
+
m.forEach((n, s) => {
|
|
153
153
|
const i = n.querySelectorAll(".formkit-outer");
|
|
154
|
-
h = h.concat(Array.from(i)),
|
|
154
|
+
h = h.concat(Array.from(i)), v.observe(h[s], f);
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
});
|
|
@@ -190,8 +190,8 @@ const K = N({
|
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
192
|
beforeRouteEnter(e, t, d) {
|
|
193
|
-
d((
|
|
194
|
-
t.name && !t.name.startsWith("DataProviderInterface") &&
|
|
193
|
+
d((r) => {
|
|
194
|
+
t.name && !t.name.startsWith("DataProviderInterface") && r.clearAll();
|
|
195
195
|
});
|
|
196
196
|
},
|
|
197
197
|
setup() {
|
|
@@ -199,27 +199,27 @@ const K = N({
|
|
|
199
199
|
steps: e,
|
|
200
200
|
activeStep: t,
|
|
201
201
|
visitedSteps: d,
|
|
202
|
-
previousStep:
|
|
202
|
+
previousStep: r,
|
|
203
203
|
nextStep: m,
|
|
204
|
-
stepPlugin:
|
|
205
|
-
goToNextStep:
|
|
206
|
-
goToPreviousStep:
|
|
204
|
+
stepPlugin: y,
|
|
205
|
+
goToNextStep: v,
|
|
206
|
+
goToPreviousStep: f
|
|
207
207
|
} = q(), h = () => {
|
|
208
208
|
let { x: i, y: p } = j({ behavior: "smooth" });
|
|
209
209
|
p.value = 0;
|
|
210
|
-
}, n = (i) => (e[i].errorCount > 0 || e[i].blockingCount > 0) && d.value.includes(i),
|
|
210
|
+
}, n = (i) => (e[i].errorCount > 0 || e[i].blockingCount > 0) && d.value.includes(i), s = w({ OverviewPage: H });
|
|
211
211
|
return {
|
|
212
212
|
steps: e,
|
|
213
213
|
visitedSteps: d,
|
|
214
214
|
activeStep: t,
|
|
215
|
-
previousStep:
|
|
215
|
+
previousStep: r,
|
|
216
216
|
nextStep: m,
|
|
217
|
-
stepPlugin:
|
|
217
|
+
stepPlugin: y,
|
|
218
218
|
checkStepValidity: n,
|
|
219
|
-
goToNextStep:
|
|
220
|
-
goToPreviousStep:
|
|
219
|
+
goToNextStep: v,
|
|
220
|
+
goToPreviousStep: f,
|
|
221
221
|
scrollToTop: h,
|
|
222
|
-
library:
|
|
222
|
+
library: s
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
225
|
}), R = { class: "form-container" }, z = {
|
|
@@ -232,21 +232,21 @@ const K = N({
|
|
|
232
232
|
}, te = {
|
|
233
233
|
key: 0,
|
|
234
234
|
class: "step inactiveStep"
|
|
235
|
-
}, ie = /* @__PURE__ */ c("div", { class: "circle stepCircle" }, null, -1),
|
|
235
|
+
}, ie = /* @__PURE__ */ c("div", { class: "circle stepCircle" }, null, -1), se = [
|
|
236
236
|
ie
|
|
237
|
-
],
|
|
237
|
+
], re = { class: "d-flex flex-column w-100" }, ae = {
|
|
238
238
|
key: 0,
|
|
239
239
|
class: "w-100 d-flex justify-content-between"
|
|
240
|
-
},
|
|
240
|
+
}, oe = { style: { "min-width": "80%" } }, ne = { key: 0 }, le = { key: 1 }, pe = { key: 1 }, de = {
|
|
241
241
|
key: 4,
|
|
242
242
|
class: "p-1"
|
|
243
243
|
}, ce = /* @__PURE__ */ c("b", null, "*", -1);
|
|
244
|
-
function ue(e, t, d,
|
|
245
|
-
const
|
|
246
|
-
return
|
|
247
|
-
e.isInput ? (
|
|
244
|
+
function ue(e, t, d, r, m, y) {
|
|
245
|
+
const v = S("FormKitSchema"), f = S("DistributionInputPage"), h = S("InputPageStep"), n = S("Navigation"), s = S("FormKit");
|
|
246
|
+
return a(), o("div", R, [
|
|
247
|
+
e.isInput ? (a(), o("div", z, [
|
|
248
248
|
c("div", G, [
|
|
249
|
-
k(
|
|
249
|
+
k(s, {
|
|
250
250
|
type: "form",
|
|
251
251
|
modelValue: e.formValues,
|
|
252
252
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.formValues = i),
|
|
@@ -262,7 +262,7 @@ function ue(e, t, d, s, m, S) {
|
|
|
262
262
|
default: T(() => [
|
|
263
263
|
c("div", Z, [
|
|
264
264
|
c("ul", J, [
|
|
265
|
-
(
|
|
265
|
+
(a(!0), o(C, null, P(e.steps, (i, p, I) => (a(), o("li", {
|
|
266
266
|
key: i,
|
|
267
267
|
class: L(["step", { activeItem: e.activeStep === p, inactiveStep: p != e.activeStep, "has-errors": e.checkStepValidity(p) }]),
|
|
268
268
|
"data-step-active": e.activeStep === p,
|
|
@@ -272,28 +272,28 @@ function ue(e, t, d, s, m, S) {
|
|
|
272
272
|
}
|
|
273
273
|
}, [
|
|
274
274
|
c("div", X, [
|
|
275
|
-
c("div", Y,
|
|
275
|
+
c("div", Y, g(I + 1), 1),
|
|
276
276
|
l(),
|
|
277
|
-
e.checkStepValidity(p) ? (
|
|
277
|
+
e.checkStepValidity(p) ? (a(), o("span", {
|
|
278
278
|
key: 0,
|
|
279
279
|
class: "step--errors",
|
|
280
|
-
textContent:
|
|
280
|
+
textContent: g(i.errorCount + i.blockingCount)
|
|
281
281
|
}, null, 8, x)) : u("", !0),
|
|
282
|
-
l(
|
|
282
|
+
l(g(e.$t("message.dataupload.steps." + p + "Step")), 1)
|
|
283
283
|
]),
|
|
284
284
|
l(),
|
|
285
|
-
I != Object.keys(e.steps).length ? (
|
|
285
|
+
I != Object.keys(e.steps).length ? (a(), o("div", ee)) : u("", !0)
|
|
286
286
|
], 10, Q))), 128)),
|
|
287
287
|
l(),
|
|
288
|
-
e.activeStep === "Overview" ? (
|
|
288
|
+
e.activeStep === "Overview" ? (a(), o("li", te, se)) : u("", !0)
|
|
289
289
|
]),
|
|
290
290
|
l(),
|
|
291
|
-
c("div",
|
|
292
|
-
(
|
|
291
|
+
c("div", re, [
|
|
292
|
+
(a(!0), o(C, null, P(e.getNavSteps(e.$env.content.dataProviderInterface.specification)[e.property], (i, p) => (a(), o("div", { key: p }, [
|
|
293
293
|
k(h, { name: i }, {
|
|
294
294
|
default: T(() => [
|
|
295
|
-
i !== "Distributions" && i !== "Overview" ? (
|
|
296
|
-
c("h1",
|
|
295
|
+
i !== "Distributions" && i !== "Overview" ? (a(), o("div", ae, [
|
|
296
|
+
c("h1", oe, g(e.$t("message.dataupload.steps." + i)), 1),
|
|
297
297
|
l(),
|
|
298
298
|
c("a", {
|
|
299
299
|
class: "standardButtonDPI",
|
|
@@ -301,25 +301,25 @@ function ue(e, t, d, s, m, S) {
|
|
|
301
301
|
e.dropdownCLick(), e.expandall = !e.expandall;
|
|
302
302
|
})
|
|
303
303
|
}, [
|
|
304
|
-
e.expandall ? (
|
|
304
|
+
e.expandall ? (a(), o("span", ne, g(e.$t("message.dataupload.info.expand")), 1)) : (a(), o("span", le, g(e.$t("message.dataupload.info.hide")), 1))
|
|
305
305
|
])
|
|
306
306
|
])) : u("", !0),
|
|
307
307
|
l(),
|
|
308
|
-
i !== "Distributions" ? (
|
|
308
|
+
i !== "Distributions" ? (a(), o("hr", pe)) : u("", !0),
|
|
309
309
|
l(),
|
|
310
|
-
i !== "Distributions" ? (
|
|
310
|
+
i !== "Distributions" ? (a(), D(v, {
|
|
311
311
|
key: 2,
|
|
312
312
|
schema: e.getSchema(e.property)[i],
|
|
313
313
|
library: e.library
|
|
314
314
|
}, null, 8, ["schema", "library"])) : u("", !0),
|
|
315
315
|
l(),
|
|
316
|
-
i === "Distributions" ? (
|
|
316
|
+
i === "Distributions" ? (a(), D(f, {
|
|
317
317
|
key: 3,
|
|
318
318
|
schema: e.getSchema("distributions"),
|
|
319
319
|
values: e.formValues
|
|
320
320
|
}, null, 8, ["schema", "values"])) : u("", !0),
|
|
321
321
|
l(),
|
|
322
|
-
i === "Mandatory" ? (
|
|
322
|
+
i === "Mandatory" ? (a(), o("p", de, [
|
|
323
323
|
ce,
|
|
324
324
|
l(" mandatory")
|
|
325
325
|
])) : u("", !0)
|
|
@@ -344,8 +344,8 @@ function ue(e, t, d, s, m, S) {
|
|
|
344
344
|
], 512)) : u("", !0)
|
|
345
345
|
]);
|
|
346
346
|
}
|
|
347
|
-
const
|
|
347
|
+
const Ve = /* @__PURE__ */ B(K, [["render", ue]]);
|
|
348
348
|
export {
|
|
349
|
-
|
|
349
|
+
Ve as default
|
|
350
350
|
};
|
|
351
351
|
//# sourceMappingURL=InputPage.vue.mjs.map
|