@piveau/piveau-hub-ui-modules 4.3.2 → 4.3.4

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 (57) hide show
  1. package/dist/data-provider-interface/DPIMenu.vue.mjs +37 -36
  2. package/dist/data-provider-interface/DPIMenu.vue.mjs.map +1 -1
  3. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +149 -135
  4. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
  5. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +152 -140
  6. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
  7. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +60 -60
  8. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
  9. package/dist/data-provider-interface/components/Dropup.vue.mjs +17 -17
  10. package/dist/data-provider-interface/components/Dropup.vue.mjs.map +1 -1
  11. package/dist/data-provider-interface/components/Dropup.vue2.mjs +2 -2
  12. package/dist/data-provider-interface/components/FileUpload.vue.d.ts +5 -2
  13. package/dist/data-provider-interface/components/FileUpload.vue.mjs +119 -117
  14. package/dist/data-provider-interface/components/FileUpload.vue.mjs.map +1 -1
  15. package/dist/data-provider-interface/components/Navigation.vue.mjs +69 -69
  16. package/dist/data-provider-interface/components/Navigation.vue.mjs.map +1 -1
  17. package/dist/data-provider-interface/components/SimpleInput.vue.mjs +19 -14
  18. package/dist/data-provider-interface/components/SimpleInput.vue.mjs.map +1 -1
  19. package/dist/data-provider-interface/components/SimpleSelect.vue.mjs +31 -31
  20. package/dist/data-provider-interface/components/SimpleSelect.vue.mjs.map +1 -1
  21. package/dist/data-provider-interface/components/SpatialInput.vue.mjs +90 -94
  22. package/dist/data-provider-interface/components/SpatialInput.vue.mjs.map +1 -1
  23. package/dist/data-provider-interface/components/SpatialInput.vue2.mjs +2 -2
  24. package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs +41 -30
  25. package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs.map +1 -1
  26. package/dist/data-provider-interface/config/dcatap/input-definition.mjs +27 -1
  27. package/dist/data-provider-interface/config/dcatap/input-definition.mjs.map +1 -1
  28. package/dist/data-provider-interface/config/dcatapde/input-definition.mjs +81 -78
  29. package/dist/data-provider-interface/config/dcatapde/input-definition.mjs.map +1 -1
  30. package/dist/data-provider-interface/config/dcatapdeODB/format-types.mjs +3 -272
  31. package/dist/data-provider-interface/config/dcatapdeODB/format-types.mjs.map +1 -1
  32. package/dist/data-provider-interface/config/dcatapdeODB/input-definition.d.ts +4 -15
  33. package/dist/data-provider-interface/config/dcatapdeODB/input-definition.mjs +13 -2081
  34. package/dist/data-provider-interface/config/dcatapdeODB/input-definition.mjs.map +1 -1
  35. package/dist/data-provider-interface/config/dcatapdeODB/page-content-config.mjs +3 -21
  36. package/dist/data-provider-interface/config/dcatapdeODB/page-content-config.mjs.map +1 -1
  37. package/dist/data-provider-interface/config/dcatapdeODB/prefixes.mjs +3 -24
  38. package/dist/data-provider-interface/config/dcatapdeODB/prefixes.mjs.map +1 -1
  39. package/dist/data-provider-interface/config/dcatapdeODB/vocab-prefixes.mjs +3 -31
  40. package/dist/data-provider-interface/config/dcatapdeODB/vocab-prefixes.mjs.map +1 -1
  41. package/dist/data-provider-interface/config/dpi-spec-config.mjs +8 -8
  42. package/dist/data-provider-interface/config/dpi-spec-config.mjs.map +1 -1
  43. package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs +52 -52
  44. package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs.map +1 -1
  45. package/dist/data-provider-interface/views/DraftsPage.vue.mjs +127 -138
  46. package/dist/data-provider-interface/views/DraftsPage.vue.mjs.map +1 -1
  47. package/dist/data-provider-interface/views/InputPage.vue.mjs +68 -68
  48. package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
  49. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs +31 -31
  50. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs.map +1 -1
  51. package/dist/form/Repeatable.vue.mjs +37 -37
  52. package/dist/form/Repeatable.vue.mjs.map +1 -1
  53. package/dist/modal/AppConfirmationDialog.vue.d.ts +3 -1
  54. package/dist/modal/AppConfirmationDialog.vue.mjs +45 -39
  55. package/dist/modal/AppConfirmationDialog.vue.mjs.map +1 -1
  56. package/dist/piveau-hub-ui-modules.css +1 -1
  57. package/package.json +1 -1
@@ -1,68 +1,68 @@
1
- import { ref as g, resolveComponent as k, openBlock as c, createElementBlock as i, Fragment as x, renderList as b, normalizeClass as d, createElementVNode as a, toDisplayString as l, createTextVNode as p, createVNode as C, withCtx as u, renderSlot as y } from "vue";
1
+ import { ref as b, resolveComponent as g, openBlock as s, createElementBlock as n, Fragment as k, renderList as x, normalizeClass as c, toDisplayString as l, createTextVNode as u, createElementVNode as o, createVNode as y, withCtx as p, renderSlot as C } from "vue";
2
2
  import "./Repeatable.vue2.mjs";
3
- import R from "../_virtual/_plugin-vue_export-helper.mjs";
4
- const $ = { class: "horizontal-wrapper" }, N = { class: "repeatableWrap" }, V = { class: "interactionHeaderRepeatable my-1" }, w = ["onClick"], z = ["onClick", "data-key"], B = { class: "formkitWrapRepeatable" }, E = {
3
+ import $ from "../_virtual/_plugin-vue_export-helper.mjs";
4
+ const R = { key: 0 }, N = { key: 1 }, V = { class: "horizontal-wrapper" }, w = { class: "repeatableWrap" }, z = { class: "interactionHeaderRepeatable my-1" }, B = ["onClick"], D = ["onClick", "data-key"], E = { class: "formkitWrapRepeatable" }, I = {
5
5
  __name: "Repeatable",
6
6
  props: {
7
7
  context: Object
8
8
  },
9
- setup(v) {
10
- const t = v, o = g([]);
9
+ setup(m) {
10
+ const t = m, a = b([]);
11
11
  setTimeout(() => {
12
12
  if (t.context.value.length === 0)
13
- o.value.push("init");
13
+ a.value.push("init");
14
14
  else
15
15
  for (let e = 0; e < t.context.value.length; e++)
16
- t.context.value[e] != null && o.value.push(t.context.value[e]["@value"]);
16
+ t.context.value[e] != null && a.value.push(t.context.value[e]["@value"]);
17
17
  });
18
- const m = (e) => {
19
- o.value.push(t.context.value[e]["@value"]);
20
- }, _ = (e, n) => {
21
- n != 1 && o.value.splice(e, 1);
18
+ const v = (e) => {
19
+ a.value.push(t.context.value[e]["@value"]);
20
+ }, _ = (e, i) => {
21
+ i != 1 && a.value.splice(e, 1);
22
22
  };
23
- return (e, n) => {
24
- const f = k("i18n-t");
25
- return c(!0), i(x, null, b(o.value, (s, r) => (c(), i("div", {
26
- class: d(["repeatable formkitProperty", [t.context.attrs.identifier]]),
27
- key: s
23
+ return (e, i) => {
24
+ const f = g("i18n-t");
25
+ return s(!0), n(k, null, x(a.value, (r, d) => (s(), n("div", {
26
+ class: c(["repeatable formkitProperty", [t.context.attrs.identifier]]),
27
+ key: r
28
28
  }, [
29
- a("h4", null, l(t.context.label), 1),
30
- p(),
31
- a("div", $, [
32
- a("div", N, [
33
- a("div", V, [
34
- C(f, {
29
+ t.context.attrs.class != null && t.context.attrs.class.includes("inDistribution") ? (s(), n("h4", R, l(e.$t("message.dataupload.distributions." + t.context.attrs.identifier + ".label")), 1)) : (s(), n("h4", N, l(e.$t("message.dataupload.datasets." + t.context.attrs.identifier + ".label")), 1)),
30
+ u(),
31
+ o("div", V, [
32
+ o("div", w, [
33
+ o("div", z, [
34
+ y(f, {
35
35
  keypath: "message.dataupload.info.repeatable",
36
36
  scope: "global",
37
37
  tag: "p"
38
38
  }, {
39
- add: u(() => [
40
- a("a", {
39
+ add: p(() => [
40
+ o("a", {
41
41
  class: "add",
42
- onClick: (h) => m(r)
43
- }, "+ " + l(e.$t("message.dataupload.info.add")), 9, w)
42
+ onClick: (h) => v(d)
43
+ }, "+ " + l(e.$t("message.dataupload.info.add")), 9, B)
44
44
  ]),
45
- remove: u(() => [
46
- a("a", {
47
- class: d(["remove", { disabledRemove: t.context.value.length === 1 }]),
48
- onClick: (h) => _(r, o.value.length),
49
- "data-key": s
50
- }, "- " + l(e.$t("message.dataupload.info.remove")), 11, z)
45
+ remove: p(() => [
46
+ o("a", {
47
+ class: c(["remove", { disabledRemove: t.context.value.length === 1 }]),
48
+ onClick: (h) => _(d, a.value.length),
49
+ "data-key": r
50
+ }, "- " + l(e.$t("message.dataupload.info.remove")), 11, D)
51
51
  ]),
52
52
  _: 2
53
53
  }, 1024)
54
54
  ]),
55
- p(),
56
- a("div", B, [
57
- y(e.$slots, "default", {}, void 0, !0)
55
+ u(),
56
+ o("div", E, [
57
+ C(e.$slots, "default", {}, void 0, !0)
58
58
  ])
59
59
  ])
60
60
  ])
61
61
  ], 2))), 128);
62
62
  };
63
63
  }
64
- }, W = /* @__PURE__ */ R(E, [["__scopeId", "data-v-782c69ee"]]);
64
+ }, j = /* @__PURE__ */ $(I, [["__scopeId", "data-v-80f8648a"]]);
65
65
  export {
66
- W as default
66
+ j as default
67
67
  };
68
68
  //# sourceMappingURL=Repeatable.vue.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Repeatable.vue.mjs","sources":["../../lib/form/Repeatable.vue"],"sourcesContent":["<template>\n <div class=\"repeatable formkitProperty\" :class=\"[props.context.attrs.identifier]\"\n v-for=\"key, repeatableIndex in counter\" :key=\"key\">\n <h4>{{ props.context.label }}</h4>\n <div class=\"horizontal-wrapper\">\n <div class=\"repeatableWrap\">\n <div class=\"interactionHeaderRepeatable my-1\">\n <i18n-t keypath=\"message.dataupload.info.repeatable\" scope=\"global\" tag=\"p\">\n <template v-slot:add>\n <a class=\"add\" @click=\"addItem(repeatableIndex)\">+ {{ $t('message.dataupload.info.add') }}</a>\n </template>\n <template v-slot:remove>\n\n <a class=\"remove\" :class=\"{ disabledRemove: props.context.value.length === 1 }\"\n @click=\"removeItem(repeatableIndex, counter.length)\" :data-key=\"key\">- {{\n $t('message.dataupload.info.remove') }}</a>\n </template>\n </i18n-t>\n </div>\n <div class=\"formkitWrapRepeatable\">\n\n <slot></slot>\n\n </div>\n </div>\n </div>\n </div>\n</template>\n<script setup>\nimport { ref } from 'vue';\n\nconst props = defineProps({\n context: Object\n})\n\nconst counter = ref([])\n\n// Need to handle the data like this. The values seem to take their time while loading into the DOM.\nsetTimeout(() => {\n if (props.context.value.length === 0) {\n counter.value.push('init')\n }\n else {\n for (let index = 0; index < props.context.value.length; index++) {\n if (props.context.value[index] != null) {\n counter.value.push(props.context.value[index]['@value'])\n }\n }\n }\n});\n\n// Pushing a blank to the context object and refreshing the counter\nconst addItem = (index) => {\n counter.value.push(props.context.value[index]['@value'])\n \n}\n// remove Item - ToDo need to make sure the localhost notices the splice\nconst removeItem = (index, counterLength) => {\n\n if (counterLength != 1) {\n counter.value.splice(index, 1)\n }\n\n}\n</script>\n<style scoped>\n.add,\n.remove {\n padding: 0.5rem;\n margin: 0.5rem;\n border-radius: 5px;\n transition: all 200ms ease-in-out;\n}\n\n.add {\n border: 1px solid lightseagreen;\n\n &:hover {\n text-decoration: none;\n color: white;\n background-color: lightseagreen;\n }\n}\n\n.remove {\n border: 1px solid lightcoral;\n\n &:hover {\n text-decoration: none;\n color: white;\n background-color: lightcoral;\n }\n}\n\n.disabledRemove {\n &:hover {\n text-decoration: none;\n color: white;\n background-color: lightgray;\n }\n}\n</style>\n"],"names":["props","__props","counter","ref","index","addItem","removeItem","counterLength"],"mappings":";;;;;;;;;AA+BA,UAAMA,IAAQC,GAIRC,IAAUC,EAAI,EAAE;AAGtB,eAAW,MAAM;AACf,UAAIH,EAAM,QAAQ,MAAM,WAAW;AACjC,QAAAE,EAAQ,MAAM,KAAK,MAAM;AAAA;AAGzB,iBAASE,IAAQ,GAAGA,IAAQJ,EAAM,QAAQ,MAAM,QAAQI;AACtD,UAAIJ,EAAM,QAAQ,MAAMI,CAAK,KAAK,QAChCF,EAAQ,MAAM,KAAKF,EAAM,QAAQ,MAAMI,CAAK,EAAE,QAAQ,CAAC;AAAA,IAI/D,CAAC;AAGD,UAAMC,IAAU,CAACD,MAAU;AACzB,MAAAF,EAAQ,MAAM,KAAKF,EAAM,QAAQ,MAAMI,CAAK,EAAE,QAAQ,CAAC;AAAA,IAEzD,GAEME,IAAa,CAACF,GAAOG,MAAkB;AAE3C,MAAIA,KAAiB,KACnBL,EAAQ,MAAM,OAAOE,GAAO,CAAC;AAAA,IAGjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Repeatable.vue.mjs","sources":["../../lib/form/Repeatable.vue"],"sourcesContent":["<template>\n <div class=\"repeatable formkitProperty\" :class=\"[props.context.attrs.identifier]\"\n v-for=\"key, repeatableIndex in counter\" :key=\"key\">\n <h4 v-if=\"props.context.attrs.class != undefined && props.context.attrs.class.includes('inDistribution')\">{{\n $t('message.dataupload.distributions.' + props.context.attrs.identifier + '.label') }}</h4>\n <h4 v-else>{{ $t('message.dataupload.datasets.' + props.context.attrs.identifier + '.label') }}</h4>\n <div class=\"horizontal-wrapper\">\n <div class=\"repeatableWrap\">\n <div class=\"interactionHeaderRepeatable my-1\">\n <i18n-t keypath=\"message.dataupload.info.repeatable\" scope=\"global\" tag=\"p\">\n <template v-slot:add>\n <a class=\"add\" @click=\"addItem(repeatableIndex)\">+ {{ $t('message.dataupload.info.add') }}</a>\n </template>\n <template v-slot:remove>\n\n <a class=\"remove\" :class=\"{ disabledRemove: props.context.value.length === 1 }\"\n @click=\"removeItem(repeatableIndex, counter.length)\" :data-key=\"key\">- {{\n $t('message.dataupload.info.remove') }}</a>\n </template>\n </i18n-t>\n </div>\n <div class=\"formkitWrapRepeatable\">\n\n <slot></slot>\n\n </div>\n </div>\n </div>\n </div>\n</template>\n<script setup>\nimport { ref } from 'vue';\n\nconst props = defineProps({\n context: Object\n})\n\nconst counter = ref([])\n\n// Need to handle the data like this. The values seem to take their time while loading into the DOM.\nsetTimeout(() => {\n if (props.context.value.length === 0) {\n counter.value.push('init')\n }\n else {\n for (let index = 0; index < props.context.value.length; index++) {\n if (props.context.value[index] != null) {\n counter.value.push(props.context.value[index]['@value'])\n }\n }\n }\n});\n\n// Pushing a blank to the context object and refreshing the counter\nconst addItem = (index) => {\n counter.value.push(props.context.value[index]['@value'])\n\n}\n// remove Item - ToDo need to make sure the localhost notices the splice\nconst removeItem = (index, counterLength) => {\n\n if (counterLength != 1) {\n counter.value.splice(index, 1)\n }\n\n}\n</script>\n<style scoped>\n.add,\n.remove {\n padding: 0.5rem;\n margin: 0.5rem;\n border-radius: 5px;\n transition: all 200ms ease-in-out;\n}\n\n.add {\n border: 1px solid lightseagreen;\n\n &:hover {\n text-decoration: none;\n color: white;\n background-color: lightseagreen;\n }\n}\n\n.remove {\n border: 1px solid lightcoral;\n\n &:hover {\n text-decoration: none;\n color: white;\n background-color: lightcoral;\n }\n}\n\n.disabledRemove {\n &:hover {\n text-decoration: none;\n color: white;\n background-color: lightgray;\n }\n}\n</style>\n"],"names":["props","__props","counter","ref","index","addItem","removeItem","counterLength"],"mappings":";;;;;;;;;AAiCA,UAAMA,IAAQC,GAIRC,IAAUC,EAAI,EAAE;AAGtB,eAAW,MAAM;AACf,UAAIH,EAAM,QAAQ,MAAM,WAAW;AACjC,QAAAE,EAAQ,MAAM,KAAK,MAAM;AAAA;AAGzB,iBAASE,IAAQ,GAAGA,IAAQJ,EAAM,QAAQ,MAAM,QAAQI;AACtD,UAAIJ,EAAM,QAAQ,MAAMI,CAAK,KAAK,QAChCF,EAAQ,MAAM,KAAKF,EAAM,QAAQ,MAAMI,CAAK,EAAE,QAAQ,CAAC;AAAA,IAI/D,CAAC;AAGD,UAAMC,IAAU,CAACD,MAAU;AACzB,MAAAF,EAAQ,MAAM,KAAKF,EAAM,QAAQ,MAAMI,CAAK,EAAE,QAAQ,CAAC;AAAA,IAEzD,GAEME,IAAa,CAACF,GAAOG,MAAkB;AAE3C,MAAIA,KAAiB,KACnBL,EAAQ,MAAM,OAAOE,GAAO,CAAC;AAAA,IAGjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -7,7 +7,9 @@ declare const _default: import('vue').DefineComponent<{
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
9
9
  };
10
- }, any, any, {}, {
10
+ }, any, {
11
+ resolvedConfirm: string;
12
+ }, {}, {
11
13
  handleHeader(): void;
12
14
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
15
  confirm: {
@@ -1,26 +1,34 @@
1
- import { defineComponent as d, openBlock as n, createElementBlock as i, createElementVNode as o, createTextVNode as a, renderSlot as l, withDirectives as r, vShow as m, toDisplayString as c } from "vue";
2
- import p from "jquery";
1
+ import { defineComponent as i, openBlock as n, createElementBlock as l, createElementVNode as o, toDisplayString as t, createTextVNode as a, renderSlot as r, withDirectives as m, vShow as c } from "vue";
2
+ import f from "jquery";
3
3
  import "./AppConfirmationDialog.vue2.mjs";
4
- import f from "../_virtual/_plugin-vue_export-helper.mjs";
5
- const b = d({
4
+ import p from "../_virtual/_plugin-vue_export-helper.mjs";
5
+ const h = i({
6
6
  name: "ConfirmationDialog",
7
7
  inheritAttrs: !1,
8
8
  props: {
9
9
  confirm: {
10
10
  type: String,
11
- default: "confirm"
11
+ default: "Confirm"
12
12
  },
13
13
  loading: {
14
14
  type: Boolean,
15
15
  default: !1
16
16
  }
17
17
  },
18
+ data() {
19
+ return {
20
+ resolvedConfirm: this.confirm
21
+ };
22
+ },
18
23
  methods: {
19
24
  handleHeader() {
20
- p("#navbar-toggle").css("z-index", "99");
25
+ f("#navbar-toggle").css("z-index", "99");
21
26
  }
27
+ },
28
+ created() {
29
+ this.confirm === "Confirm" && (this.$i18n.locale = this.$route.query.locale, this.resolvedConfirm = this.$t("message.dataupload.modal.confirmModal"));
22
30
  }
23
- }), h = {
31
+ }), b = {
24
32
  id: "modal",
25
33
  class: "modal fade modalWrapper",
26
34
  tabindex: "-1",
@@ -31,35 +39,33 @@ const b = d({
31
39
  }, u = {
32
40
  class: "modal-dialog modal-lg",
33
41
  role: "document"
34
- }, g = { class: "modal-content" }, _ = /* @__PURE__ */ o("div", { class: "modal-header" }, [
35
- /* @__PURE__ */ o("h2", {
36
- class: "modal-title",
37
- id: "confirmationDialogLabel"
38
- }, `
39
- Confirmation
40
- `),
41
- /* @__PURE__ */ a(),
42
- /* @__PURE__ */ o("button", {
43
- type: "button",
44
- class: "close",
45
- "data-dismiss": "modal",
46
- "aria-label": "Close"
47
- }, [
48
- /* @__PURE__ */ o("span", { "aria-hidden": "true" }, "×")
49
- ])
50
- ], -1), v = { class: "modal-body" }, y = { class: "modal-footer" }, C = ["disabled"], $ = {
42
+ }, g = { class: "modal-content" }, _ = { class: "modal-header" }, v = {
43
+ class: "modal-title",
44
+ id: "confirmationDialogLabel"
45
+ }, $ = /* @__PURE__ */ o("button", {
46
+ type: "button",
47
+ class: "close",
48
+ "data-dismiss": "modal",
49
+ "aria-label": "Close"
50
+ }, [
51
+ /* @__PURE__ */ o("span", { "aria-hidden": "true" }, "×")
52
+ ], -1), C = { class: "modal-body" }, y = { class: "modal-footer" }, D = ["disabled"], k = {
51
53
  class: "spinner-border spinner-border-sm",
52
54
  role: "status",
53
55
  "aria-hidden": "true"
54
- }, k = ["disabled"];
55
- function D(e, t, S, A, B, H) {
56
- return n(), i("div", h, [
56
+ }, H = ["disabled"];
57
+ function S(e, s, A, B, w, E) {
58
+ return n(), l("div", b, [
57
59
  o("div", u, [
58
60
  o("div", g, [
59
- _,
61
+ o("div", _, [
62
+ o("h2", v, t(e.$t("message.dataupload.modal.confirmHead")), 1),
63
+ a(),
64
+ $
65
+ ]),
60
66
  a(),
61
- o("div", v, [
62
- l(e.$slots, "default", {}, () => [
67
+ o("div", C, [
68
+ r(e.$slots, "default", {}, () => [
63
69
  a(`
64
70
  Are you sure? This process can not be reverted.
65
71
  `)
@@ -69,28 +75,28 @@ function D(e, t, S, A, B, H) {
69
75
  o("div", y, [
70
76
  o("button", {
71
77
  class: "btn btn-link",
72
- onClick: t[0] || (t[0] = (s) => e.$emit("confirm")),
78
+ onClick: s[0] || (s[0] = (d) => e.$emit("confirm")),
73
79
  disabled: e.loading
74
80
  }, [
75
- r(o("span", $, null, 512), [
76
- [m, e.loading]
81
+ m(o("span", k, null, 512), [
82
+ [c, e.loading]
77
83
  ]),
78
- a(" " + c(e.confirm), 1)
79
- ], 8, C),
84
+ a(" " + t(e.resolvedConfirm), 1)
85
+ ], 8, D),
80
86
  a(),
81
87
  o("button", {
82
88
  class: "btn btn-secondary",
83
89
  "data-dismiss": "modal",
84
- onClick: t[1] || (t[1] = (...s) => e.handleHeader && e.handleHeader(...s)),
90
+ onClick: s[1] || (s[1] = (...d) => e.handleHeader && e.handleHeader(...d)),
85
91
  disabled: e.loading
86
- }, "Close", 8, k)
92
+ }, t(e.$t("message.datasetDetails.datasets.modal.close")), 9, H)
87
93
  ])
88
94
  ])
89
95
  ])
90
96
  ]);
91
97
  }
92
- const T = /* @__PURE__ */ f(b, [["render", D]]);
98
+ const q = /* @__PURE__ */ p(h, [["render", S]]);
93
99
  export {
94
- T as default
100
+ q as default
95
101
  };
96
102
  //# sourceMappingURL=AppConfirmationDialog.vue.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppConfirmationDialog.vue.mjs","sources":["../../lib/modal/AppConfirmationDialog.vue"],"sourcesContent":["<template>\n <!-- Modals -->\n <div id=\"modal\" class=\"modal fade modalWrapper\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"confirmationDialogLabel\"\n data-backdrop=\"false\" data-cy=\"create-doi-modal\">\n <div class=\"modal-dialog modal-lg\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h2 class=\"modal-title\" id=\"confirmationDialogLabel\">\n Confirmation\n </h2>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <slot>\n Are you sure? This process can not be reverted.\n </slot>\n </div>\n <!-- Export options -->\n <!-- Currently unused but might be useful in the future -->\n <div class=\"modal-footer\">\n <!-- <div class=\"alert alert-danger mr-auto\" v-if=\"modal.error\">\n {{ modal.error.message || \"An unexpected network error occured.\" }}\n </div> -->\n <button class=\"btn btn-link\" @click=\"$emit('confirm')\" :disabled=\"loading\">\n <span v-show=\"loading\" class=\"spinner-border spinner-border-sm\" role=\"status\" aria-hidden=\"true\" />\n {{ confirm }}\n </button>\n <button class=\"btn btn-secondary\" data-dismiss=\"modal\" @click=\"handleHeader\" :disabled=\"loading\">Close</button>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { defineComponent } from 'vue'\nimport $ from 'jquery';\n\nexport default defineComponent({\n name: 'ConfirmationDialog',\n inheritAttrs: false,\n props: {\n confirm: {\n type: String,\n default: 'confirm',\n },\n loading: {\n type: Boolean,\n default: false,\n },\n },\n methods:{\n handleHeader(){\n $('#navbar-toggle').css(\"z-index\", \"99\")\n }\n }\n});\n</script>\n\n<style>\n/* If the display:block is active, the modal will appear in the bavaria hub-ui and makes it unusable. But it's actually not needed here.*/\n.modalWrapper {\n backdrop-filter: brightness(0.5);\n /* display: block; */\n align-items: center;\n z-index: 100;\n}\n</style>"],"names":["_sfc_main","defineComponent","$","_hoisted_3","_createElementVNode","_createTextVNode","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_9","_openBlock","_createElementBlock","_hoisted_1","_hoisted_2","_hoisted_4","_renderSlot","_ctx","_withDirectives","_hoisted_8","args"],"mappings":";;;;AAwCA,MAAKA,IAAaC,EAAa;AAAA,EAC7B,MAAM;AAAA,EACN,cAAc;AAAA,EACd,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACF;AAAA,EACD,SAAQ;AAAA,IACN,eAAc;AACZ,MAAAC,EAAE,gBAAgB,EAAE,IAAI,WAAW,IAAI;AAAA,IACzC;AAAA,EACF;AACF,CAAC;EAxDM,IAAG;AAAA,EAAQ,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,QAChGW,EAAO,OAAA,GAAA,CAAA;AAAA,UA3BtB,GAAA,GAAAR,CAAA;AAAA,UAAAH,EAAA;AAAA,UA6BUD,EAA+G,UAAA;AAAA,YAAvG,OAAM;AAAA,YAAoB,gBAAa;AAAA,YAAS,mCAAOY,EAAY,gBAAAA,EAAA,aAAA,GAAAG,CAAA;AAAA,YAAG,UAAUH,EAAO;AAAA,UAAE,GAAA,SA7B3G,GAAAP,CAAA;AAAA;;;;;;"}
1
+ {"version":3,"file":"AppConfirmationDialog.vue.mjs","sources":["../../lib/modal/AppConfirmationDialog.vue"],"sourcesContent":["<template>\n <!-- Modals -->\n <div id=\"modal\" class=\"modal fade modalWrapper\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"confirmationDialogLabel\"\n data-backdrop=\"false\" data-cy=\"create-doi-modal\">\n <div class=\"modal-dialog modal-lg\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h2 class=\"modal-title\" id=\"confirmationDialogLabel\">\n {{$t('message.dataupload.modal.confirmHead')}}\n </h2>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <slot>\n Are you sure? This process can not be reverted.\n </slot>\n </div>\n <!-- Export options -->\n <!-- Currently unused but might be useful in the future -->\n <div class=\"modal-footer\">\n <!-- <div class=\"alert alert-danger mr-auto\" v-if=\"modal.error\">\n {{ modal.error.message || \"An unexpected network error occured.\" }}\n </div> -->\n <button class=\"btn btn-link\" @click=\"$emit('confirm')\" :disabled=\"loading\">\n <span v-show=\"loading\" class=\"spinner-border spinner-border-sm\" role=\"status\" aria-hidden=\"true\" />\n {{ resolvedConfirm }}\n </button>\n <button class=\"btn btn-secondary\" data-dismiss=\"modal\" @click=\"handleHeader\" :disabled=\"loading\">{{ $t('message.datasetDetails.datasets.modal.close') }}</button>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { defineComponent } from 'vue'\nimport $ from 'jquery';\n\nexport default defineComponent({\n name: 'ConfirmationDialog',\n inheritAttrs: false,\n props: {\n confirm: {\n type: String,\n default: 'Confirm'\n },\n loading: {\n type: Boolean,\n default: false,\n },\n },\n data() {\n return {\n resolvedConfirm: this.confirm,\n };\n },\n methods:{\n handleHeader(){\n $('#navbar-toggle').css(\"z-index\", \"99\")\n }\n }, created() {\n if (this.confirm === 'Confirm') { // Überprüfe den Default-Wert\n this.$i18n.locale = this.$route.query.locale\n this.resolvedConfirm = this.$t('message.dataupload.modal.confirmModal'); \n }\n },\n});\n</script>\n\n<style>\n/* If the display:block is active, the modal will appear in the bavaria hub-ui and makes it unusable. But it's actually not needed here.*/\n.modalWrapper {\n backdrop-filter: brightness(0.5);\n /* display: block; */\n align-items: center;\n z-index: 100;\n}\n</style>"],"names":["_sfc_main","defineComponent","$","_hoisted_3","_hoisted_4","_createElementVNode","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_11","_openBlock","_createElementBlock","_hoisted_1","_hoisted_2","_hoisted_5","_toDisplayString","_ctx","_createTextVNode","_hoisted_6","_renderSlot","_withDirectives","_hoisted_10","args"],"mappings":";;;;AAwCA,MAAKA,IAAaC,EAAa;AAAA,EAC7B,MAAM;AAAA,EACN,cAAc;AAAA,EACd,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACF;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,iBAAiB,KAAK;AAAA;EAEzB;AAAA,EACD,SAAQ;AAAA,IACN,eAAc;AACZ,MAAAC,EAAE,gBAAgB,EAAE,IAAI,WAAW,IAAI;AAAA,IACzC;AAAA,EACD;AAAA,EAAE,UAAU;AACX,IAAI,KAAK,YAAY,cACnB,KAAK,MAAM,SAAS,KAAK,OAAO,MAAM,QACtC,KAAK,kBAAkB,KAAK,GAAG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