@piveau/piveau-hub-ui-modules 4.3.0 → 4.4.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 +149 -135
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +152 -140
- 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.d.ts +5 -2
- package/dist/data-provider-interface/components/FileUpload.vue.mjs +119 -117
- package/dist/data-provider-interface/components/FileUpload.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SimpleInput.vue.mjs +19 -14
- package/dist/data-provider-interface/components/SimpleInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SimpleSelect.vue.mjs +32 -32
- 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 +81 -78
- package/dist/data-provider-interface/config/dcatapde/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 +82 -80
- package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
- package/dist/form/Repeatable.vue.mjs +37 -37
- package/dist/form/Repeatable.vue.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 d, toDisplayString as g, createTextVNode as l, createVNode as k, withModifiers as F, withCtx as T, Fragment as C, renderList as P, normalizeClass as L, createCommentVNode as u, createBlock as V } from "vue";
|
|
2
|
+
import { mapGetters as D, 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
|
+
...D("auth", [
|
|
45
45
|
"getIsEditMode",
|
|
46
46
|
"getUserCatalogIds"
|
|
47
47
|
]),
|
|
48
|
-
...
|
|
48
|
+
...D("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",
|
|
@@ -84,9 +84,9 @@ const K = N({
|
|
|
84
84
|
},
|
|
85
85
|
dropdownCLick() {
|
|
86
86
|
const e = document.querySelectorAll(".formkitProperty h4");
|
|
87
|
-
this.expandall && e.forEach((t,
|
|
87
|
+
this.expandall && e.forEach((t, c) => {
|
|
88
88
|
t.classList.add("dpiChevUp"), t.nextElementSibling.classList.remove("d-none");
|
|
89
|
-
}), this.expandall || e.forEach((t,
|
|
89
|
+
}), this.expandall || e.forEach((t, c) => {
|
|
90
90
|
t.classList.remove("dpiChevUp"), t.nextElementSibling.classList.add("d-none");
|
|
91
91
|
});
|
|
92
92
|
},
|
|
@@ -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
|
-
const
|
|
109
|
-
M(
|
|
110
|
-
|
|
108
|
+
const c = this.$store.getters["dpiStore/getRawValues"]({ property: this.property });
|
|
109
|
+
M(c) || (this.formValues = c), this.$nextTick(() => {
|
|
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
|
});
|
|
@@ -189,37 +189,37 @@ const K = N({
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
|
-
beforeRouteEnter(e, t,
|
|
193
|
-
|
|
194
|
-
t.name && !t.name.startsWith("DataProviderInterface") &&
|
|
192
|
+
beforeRouteEnter(e, t, c) {
|
|
193
|
+
c((r) => {
|
|
194
|
+
t.name && !t.name.startsWith("DataProviderInterface") && r.clearAll();
|
|
195
195
|
});
|
|
196
196
|
},
|
|
197
197
|
setup() {
|
|
198
198
|
const {
|
|
199
199
|
steps: e,
|
|
200
200
|
activeStep: t,
|
|
201
|
-
visitedSteps:
|
|
202
|
-
previousStep:
|
|
201
|
+
visitedSteps: c,
|
|
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) &&
|
|
210
|
+
}, n = (i) => (e[i].errorCount > 0 || e[i].blockingCount > 0) && c.value.includes(i), s = w({ OverviewPage: H });
|
|
211
211
|
return {
|
|
212
212
|
steps: e,
|
|
213
|
-
visitedSteps:
|
|
213
|
+
visitedSteps: c,
|
|
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,23 @@ const K = N({
|
|
|
232
232
|
}, te = {
|
|
233
233
|
key: 0,
|
|
234
234
|
class: "step inactiveStep"
|
|
235
|
-
}, ie = /* @__PURE__ */
|
|
235
|
+
}, ie = /* @__PURE__ */ d("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
|
-
}, ce = /* @__PURE__ */
|
|
244
|
-
function ue(e, t,
|
|
245
|
-
const
|
|
246
|
-
return
|
|
247
|
-
e.isInput ? (
|
|
248
|
-
|
|
249
|
-
|
|
243
|
+
}, ce = /* @__PURE__ */ d("b", null, "*", -1);
|
|
244
|
+
function ue(e, t, c, 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
|
+
d("div", G, [
|
|
249
|
+
d("details", null, g(e.formValues), 1),
|
|
250
|
+
l(),
|
|
251
|
+
k(s, {
|
|
250
252
|
type: "form",
|
|
251
253
|
modelValue: e.formValues,
|
|
252
254
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.formValues = i),
|
|
@@ -260,9 +262,9 @@ function ue(e, t, d, s, m, S) {
|
|
|
260
262
|
class: "d-flex"
|
|
261
263
|
}, {
|
|
262
264
|
default: T(() => [
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
(
|
|
265
|
+
d("div", Z, [
|
|
266
|
+
d("ul", J, [
|
|
267
|
+
(a(!0), o(C, null, P(e.steps, (i, p, I) => (a(), o("li", {
|
|
266
268
|
key: i,
|
|
267
269
|
class: L(["step", { activeItem: e.activeStep === p, inactiveStep: p != e.activeStep, "has-errors": e.checkStepValidity(p) }]),
|
|
268
270
|
"data-step-active": e.activeStep === p,
|
|
@@ -271,55 +273,55 @@ function ue(e, t, d, s, m, S) {
|
|
|
271
273
|
e.activeStep = p, e.update(), e.scrollToTop();
|
|
272
274
|
}
|
|
273
275
|
}, [
|
|
274
|
-
|
|
275
|
-
|
|
276
|
+
d("div", X, [
|
|
277
|
+
d("div", Y, g(I + 1), 1),
|
|
276
278
|
l(),
|
|
277
|
-
e.checkStepValidity(p) ? (
|
|
279
|
+
e.checkStepValidity(p) ? (a(), o("span", {
|
|
278
280
|
key: 0,
|
|
279
281
|
class: "step--errors",
|
|
280
|
-
textContent:
|
|
282
|
+
textContent: g(i.errorCount + i.blockingCount)
|
|
281
283
|
}, null, 8, x)) : u("", !0),
|
|
282
|
-
l(
|
|
284
|
+
l(g(e.$t("message.dataupload.steps." + p + "Step")), 1)
|
|
283
285
|
]),
|
|
284
286
|
l(),
|
|
285
|
-
I != Object.keys(e.steps).length ? (
|
|
287
|
+
I != Object.keys(e.steps).length ? (a(), o("div", ee)) : u("", !0)
|
|
286
288
|
], 10, Q))), 128)),
|
|
287
289
|
l(),
|
|
288
|
-
e.activeStep === "Overview" ? (
|
|
290
|
+
e.activeStep === "Overview" ? (a(), o("li", te, se)) : u("", !0)
|
|
289
291
|
]),
|
|
290
292
|
l(),
|
|
291
|
-
|
|
292
|
-
(
|
|
293
|
+
d("div", re, [
|
|
294
|
+
(a(!0), o(C, null, P(e.getNavSteps(e.$env.content.dataProviderInterface.specification)[e.property], (i, p) => (a(), o("div", { key: p }, [
|
|
293
295
|
k(h, { name: i }, {
|
|
294
296
|
default: T(() => [
|
|
295
|
-
i !== "Distributions" && i !== "Overview" ? (
|
|
296
|
-
|
|
297
|
+
i !== "Distributions" && i !== "Overview" ? (a(), o("div", ae, [
|
|
298
|
+
d("h1", oe, g(e.$t("message.dataupload.steps." + i)), 1),
|
|
297
299
|
l(),
|
|
298
|
-
|
|
300
|
+
d("a", {
|
|
299
301
|
class: "standardButtonDPI",
|
|
300
302
|
onClick: t[0] || (t[0] = (I) => {
|
|
301
303
|
e.dropdownCLick(), e.expandall = !e.expandall;
|
|
302
304
|
})
|
|
303
305
|
}, [
|
|
304
|
-
e.expandall ? (
|
|
306
|
+
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
307
|
])
|
|
306
308
|
])) : u("", !0),
|
|
307
309
|
l(),
|
|
308
|
-
i !== "Distributions" ? (
|
|
310
|
+
i !== "Distributions" ? (a(), o("hr", pe)) : u("", !0),
|
|
309
311
|
l(),
|
|
310
|
-
i !== "Distributions" ? (
|
|
312
|
+
i !== "Distributions" ? (a(), V(v, {
|
|
311
313
|
key: 2,
|
|
312
314
|
schema: e.getSchema(e.property)[i],
|
|
313
315
|
library: e.library
|
|
314
316
|
}, null, 8, ["schema", "library"])) : u("", !0),
|
|
315
317
|
l(),
|
|
316
|
-
i === "Distributions" ? (
|
|
318
|
+
i === "Distributions" ? (a(), V(f, {
|
|
317
319
|
key: 3,
|
|
318
320
|
schema: e.getSchema("distributions"),
|
|
319
321
|
values: e.formValues
|
|
320
322
|
}, null, 8, ["schema", "values"])) : u("", !0),
|
|
321
323
|
l(),
|
|
322
|
-
i === "Mandatory" ? (
|
|
324
|
+
i === "Mandatory" ? (a(), o("p", de, [
|
|
323
325
|
ce,
|
|
324
326
|
l(" mandatory")
|
|
325
327
|
])) : u("", !0)
|
|
@@ -344,8 +346,8 @@ function ue(e, t, d, s, m, S) {
|
|
|
344
346
|
], 512)) : u("", !0)
|
|
345
347
|
]);
|
|
346
348
|
}
|
|
347
|
-
const
|
|
349
|
+
const De = /* @__PURE__ */ B(K, [["render", ue]]);
|
|
348
350
|
export {
|
|
349
|
-
|
|
351
|
+
De as default
|
|
350
352
|
};
|
|
351
353
|
//# sourceMappingURL=InputPage.vue.mjs.map
|