@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.
Files changed (28) hide show
  1. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +149 -135
  2. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
  3. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +152 -140
  4. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
  5. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +60 -60
  6. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
  7. package/dist/data-provider-interface/components/FileUpload.vue.d.ts +5 -2
  8. package/dist/data-provider-interface/components/FileUpload.vue.mjs +119 -117
  9. package/dist/data-provider-interface/components/FileUpload.vue.mjs.map +1 -1
  10. package/dist/data-provider-interface/components/SimpleInput.vue.mjs +19 -14
  11. package/dist/data-provider-interface/components/SimpleInput.vue.mjs.map +1 -1
  12. package/dist/data-provider-interface/components/SimpleSelect.vue.mjs +32 -32
  13. package/dist/data-provider-interface/components/SimpleSelect.vue.mjs.map +1 -1
  14. package/dist/data-provider-interface/components/SpatialInput.vue.mjs +90 -94
  15. package/dist/data-provider-interface/components/SpatialInput.vue.mjs.map +1 -1
  16. package/dist/data-provider-interface/components/SpatialInput.vue2.mjs +2 -2
  17. package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs +41 -30
  18. package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs.map +1 -1
  19. package/dist/data-provider-interface/config/dcatapde/input-definition.mjs +81 -78
  20. package/dist/data-provider-interface/config/dcatapde/input-definition.mjs.map +1 -1
  21. package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs +52 -52
  22. package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs.map +1 -1
  23. package/dist/data-provider-interface/views/InputPage.vue.mjs +82 -80
  24. package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
  25. package/dist/form/Repeatable.vue.mjs +37 -37
  26. package/dist/form/Repeatable.vue.mjs.map +1 -1
  27. package/dist/piveau-hub-ui-modules.css +1 -1
  28. package/package.json +1 -1
@@ -1,81 +1,81 @@
1
- import { ref as p, onMounted as g, nextTick as A, resolveComponent as V, openBlock as u, createElementBlock as r, Fragment as v, createTextVNode as e, createElementVNode as i, createVNode as m, withCtx as w, renderList as F, toDisplayString as h, normalizeClass as S } from "vue";
2
- import { useStore as x } from "vuex";
3
- import E from "../components/DistributionStepper.vue.mjs";
4
- import { cloneDeep as _ } from "lodash-es";
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 j = /* @__PURE__ */ i("h1", null, "Distributions", -1), I = /* @__PURE__ */ i("hr", null, null, -1), N = {
6
+ const E = /* @__PURE__ */ e("hr", null, null, -1), I = {
7
7
  name: "distribution-stepper-list",
8
8
  class: "distributionsListClass"
9
- }, O = { class: "d-flex m-4 align-items-center justify-content-between" }, $ = { class: "m-0" }, B = ["onClick"], K = ["onClick"], W = {
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(L) {
16
- const n = L, c = p([]), d = x(), s = p({
15
+ setup(f) {
16
+ const n = f, c = m([]), p = S(), s = m({
17
17
  disList: []
18
18
  });
19
- g(async () => {
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 f = () => {
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
- (a, l) => {
29
- t != l && (a.isActive = !1);
28
+ (l, u) => {
29
+ t != u && (l.isActive = !1);
30
30
  }
31
31
  ), s.value.disList[t].isActive = !s.value.disList[t].isActive;
32
- }, D = (t) => {
33
- const a = _(n.values);
34
- a.Distributions.distributionList.splice(t, 1), d.dispatch("dpiStore/saveFormValues", { property: "datasets", values: a }), s.value.disList.splice(t, 1);
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 = _(n.values);
37
- t.Distributions.distributionList = [], d.dispatch("dpiStore/saveFormValues", { property: "datasets", values: t }), s.value.disList = [];
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, a) => {
40
- const l = V("FormKit");
41
- return u(), r(v, null, [
42
- j,
43
- e(),
44
- I,
45
- e(),
46
- i("div", N, [
47
- m(l, {
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: w(() => [
52
- (u(!0), r(v, null, F(s.value.disList, (k, o) => (u(), r("section", {
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
- i("div", O, [
57
- i("h2", $, "Distribution " + h(o + 1), 1),
58
- e(),
59
- i("div", null, [
60
- i("button", {
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: (C) => b(o)
64
- }, "Edit", 8, B),
65
- e(),
66
- i("button", {
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: (C) => D(o)
70
- }, "Remove", 8, K)
69
+ onClick: (k) => _(o)
70
+ }, a(t.$t("message.datasetDetails.delete")), 9, K)
71
71
  ])
72
72
  ]),
73
- e(),
74
- i("div", {
75
- class: S(["disInputWrapper", { "d-none": !s.value.disList[o].isActive }])
73
+ i(),
74
+ e("div", {
75
+ class: F(["disInputWrapper", { "d-none": !s.value.disList[o].isActive }])
76
76
  }, [
77
- m(E, {
78
- name: k.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
- e(),
90
- i("button", {
89
+ i(),
90
+ e("button", {
91
91
  type: "button",
92
92
  class: "btn btn-secondary",
93
- onClick: f
94
- }, h(t.$t("message.dataupload.newDistribution")), 1),
95
- e(),
96
- i("button", {
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
- }, "Delete all Distributions")
100
+ }, a(t.$t("message.dataupload.info.deleteDistribution")), 1)
101
101
  ])
102
102
  ], 64);
103
103
  };
104
104
  }
105
105
  };
106
106
  export {
107
- W as default
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>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)\">Edit</button>\n <button class=\"btn btn-secondary\" type=\"button\" @click=\"removeDis(index)\">Remove</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.newDistribution')\n }}</button>\n <button type=\"button\" class=\"btn btn-secondary\" @click=\"deleteAllDistributions\">Delete all Distributions</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":";;;;;;;;;;;;;;;AAqCA,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
+ {"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 f, openBlock as o, createElementBlock as a, createElementVNode as c, createVNode as k, withModifiers as F, withCtx as T, Fragment as C, renderList as P, normalizeClass as L, toDisplayString as y, createTextVNode as l, createCommentVNode as u, createBlock as D } from "vue";
2
- import { mapGetters as E, mapActions as V } from "vuex";
3
- import _ from "jquery";
4
- import A from "./PropertyChooser.vue.mjs";
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: A,
40
+ PropertyChooser: _,
41
41
  Navigation: W
42
42
  },
43
43
  computed: {
44
- ...E("auth", [
44
+ ...D("auth", [
45
45
  "getIsEditMode",
46
46
  "getUserCatalogIds"
47
47
  ]),
48
- ...E("dpiStore", [
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
- ...V("auth", [
70
+ ...E("auth", [
71
71
  "setIsEditMode",
72
72
  "setIsDraft"
73
73
  ]),
74
- ...V("dpiStore", [
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, d) => {
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, d) => {
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
- (s) => e[s].map((m) => m.name).includes("dct:issued") || e[s].map((m) => m.name).includes("dct:modified")
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
- (s) => {
105
- (s.identifier === "issued" || s.identifier === "modified") && (s.children[1].props.else.validation = "", s.children[1].props.else["validation-visibility"] = "", s.children[1].props.then.validation = "", s.children[1].props.then["validation-visibility"] = "", s.children[1].props.then.validation = "", s.children[1].props.then["validation-visibility"] = "");
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 d = this.$store.getters["dpiStore/getRawValues"]({ property: this.property });
109
- M(d) || (this.formValues = d), this.$nextTick(() => {
110
- _('[data-toggle="tooltip"]').tooltip({
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, r) => {
114
- n.parentElement.parentElement.classList.contains("formkitWrapRepeatable") || (r != 0 && r != 1 && r != 2 && r != 3 && n.nextElementSibling.classList.toggle("d-none"), n.addEventListener("click", () => {
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"), S = (n) => {
119
- for (const r of n)
120
- if (r.type === "attributes") {
121
- if (r.target.getAttribute("data-invalid") === "true") {
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
- r.target.parentNode.parentNode.parentNode.previousElementSibling.tagName === "H4" && r.target.parentNode.parentNode.parentNode.previousElementSibling.classList.add("isInvalidProperty");
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
- r.target.previousElementSibling.tagName === "H4" && r.target.previousElementSibling.classList.add("isInvalidProperty");
127
+ s.target.previousElementSibling.tagName === "H4" && s.target.previousElementSibling.classList.add("isInvalidProperty");
128
128
  } catch {
129
129
  }
130
130
  try {
131
- r.target.parentNode.previousElementSibling.tagName === "H4" && r.target.parentNode.previousElementSibling.classList.add("isInvalidProperty");
131
+ s.target.parentNode.previousElementSibling.tagName === "H4" && s.target.parentNode.previousElementSibling.classList.add("isInvalidProperty");
132
132
  } catch {
133
133
  }
134
134
  }
135
- if (r.target.getAttribute("data-invalid") === null || r.target.getAttribute("data-invalid") === "false") {
135
+ if (s.target.getAttribute("data-invalid") === null || s.target.getAttribute("data-invalid") === "false") {
136
136
  try {
137
- r.target.parentNode.parentNode.parentNode.previousElementSibling.tagName === "H4" && r.target.parentNode.parentNode.parentNode.previousElementSibling.classList.remove("isInvalidProperty");
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
- r.target.previousElementSibling.tagName === "H4" && r.target.previousElementSibling.classList.remove("isInvalidProperty");
141
+ s.target.previousElementSibling.tagName === "H4" && s.target.previousElementSibling.classList.remove("isInvalidProperty");
142
142
  } catch {
143
143
  }
144
144
  try {
145
- r.target.parentNode.previousElementSibling.tagName === "H4" && r.target.parentNode.previousElementSibling.classList.remove("isInvalidProperty");
145
+ s.target.parentNode.previousElementSibling.tagName === "H4" && s.target.parentNode.previousElementSibling.classList.remove("isInvalidProperty");
146
146
  } catch {
147
147
  }
148
148
  }
149
149
  }
150
- }, g = new MutationObserver(S), v = { attributes: !0 };
150
+ }, v = new MutationObserver(y), f = { attributes: !0 };
151
151
  let h = [];
152
- m.forEach((n, r) => {
152
+ m.forEach((n, s) => {
153
153
  const i = n.querySelectorAll(".formkit-outer");
154
- h = h.concat(Array.from(i)), g.observe(h[r], v);
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, d) {
193
- d((s) => {
194
- t.name && !t.name.startsWith("DataProviderInterface") && s.clearAll();
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: d,
202
- previousStep: s,
201
+ visitedSteps: c,
202
+ previousStep: r,
203
203
  nextStep: m,
204
- stepPlugin: S,
205
- goToNextStep: g,
206
- goToPreviousStep: v
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), r = w({ OverviewPage: H });
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: d,
213
+ visitedSteps: c,
214
214
  activeStep: t,
215
- previousStep: s,
215
+ previousStep: r,
216
216
  nextStep: m,
217
- stepPlugin: S,
217
+ stepPlugin: y,
218
218
  checkStepValidity: n,
219
- goToNextStep: g,
220
- goToPreviousStep: v,
219
+ goToNextStep: v,
220
+ goToPreviousStep: f,
221
221
  scrollToTop: h,
222
- library: r
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__ */ c("div", { class: "circle stepCircle" }, null, -1), re = [
235
+ }, ie = /* @__PURE__ */ d("div", { class: "circle stepCircle" }, null, -1), se = [
236
236
  ie
237
- ], se = { class: "d-flex flex-column w-100" }, oe = {
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
- }, ae = { style: { "min-width": "80%" } }, ne = { key: 0 }, le = { key: 1 }, pe = { key: 1 }, de = {
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__ */ c("b", null, "*", -1);
244
- function ue(e, t, d, s, m, S) {
245
- const g = f("FormKitSchema"), v = f("DistributionInputPage"), h = f("InputPageStep"), n = f("Navigation"), r = f("FormKit");
246
- return o(), a("div", R, [
247
- e.isInput ? (o(), a("div", z, [
248
- c("div", G, [
249
- k(r, {
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
- c("div", Z, [
264
- c("ul", J, [
265
- (o(!0), a(C, null, P(e.steps, (i, p, I) => (o(), a("li", {
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
- c("div", X, [
275
- c("div", Y, y(I + 1), 1),
276
+ d("div", X, [
277
+ d("div", Y, g(I + 1), 1),
276
278
  l(),
277
- e.checkStepValidity(p) ? (o(), a("span", {
279
+ e.checkStepValidity(p) ? (a(), o("span", {
278
280
  key: 0,
279
281
  class: "step--errors",
280
- textContent: y(i.errorCount + i.blockingCount)
282
+ textContent: g(i.errorCount + i.blockingCount)
281
283
  }, null, 8, x)) : u("", !0),
282
- l(y(e.camel2title(p)), 1)
284
+ l(g(e.$t("message.dataupload.steps." + p + "Step")), 1)
283
285
  ]),
284
286
  l(),
285
- I != Object.keys(e.steps).length ? (o(), a("div", ee)) : u("", !0)
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" ? (o(), a("li", te, re)) : u("", !0)
290
+ e.activeStep === "Overview" ? (a(), o("li", te, se)) : u("", !0)
289
291
  ]),
290
292
  l(),
291
- c("div", se, [
292
- (o(!0), a(C, null, P(e.getNavSteps(e.$env.content.dataProviderInterface.specification)[e.property], (i, p) => (o(), a("div", { key: p }, [
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" ? (o(), a("div", oe, [
296
- c("h1", ae, y(i) + " fields", 1),
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
- c("a", {
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 ? (o(), a("span", ne, "Expand all")) : (o(), a("span", le, "Hide all"))
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" ? (o(), a("hr", pe)) : u("", !0),
310
+ i !== "Distributions" ? (a(), o("hr", pe)) : u("", !0),
309
311
  l(),
310
- i !== "Distributions" ? (o(), D(g, {
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" ? (o(), D(v, {
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" ? (o(), a("p", de, [
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 Ee = /* @__PURE__ */ B(K, [["render", ue]]);
349
+ const De = /* @__PURE__ */ B(K, [["render", ue]]);
348
350
  export {
349
- Ee as default
351
+ De as default
350
352
  };
351
353
  //# sourceMappingURL=InputPage.vue.mjs.map