@piveau/dpi 0.2.0-alpha.47 → 0.2.0-alpha.48

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 (52) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +38 -30
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +59 -55
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +3 -3
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +148 -135
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +5 -5
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +317 -296
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +77 -0
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +58 -56
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +97 -90
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +35 -35
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +86 -86
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +9 -8
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +2 -2
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +55 -50
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +8 -8
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +92 -91
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +49 -48
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +122 -117
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +289 -293
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +32 -30
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +46 -29
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +264 -221
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +41 -35
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +63 -65
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +36 -35
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  34. package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +49 -49
  35. package/dist/packages/dpi/src/data-provider-interface/components/DiscoverabilityPage.vue.js +1 -1
  36. package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +102 -100
  37. package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +657 -600
  38. package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +41 -42
  39. package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +272 -239
  40. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +3 -3
  41. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +94 -82
  42. package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +81 -81
  43. package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +138 -141
  44. package/dist/packages/dpi/src/data-provider-interface/components/TitelPage.vue.js +4 -4
  45. package/dist/packages/dpi/src/data-provider-interface/components/VisibilityPage.vue.js +2 -1
  46. package/dist/packages/dpi/src/data-provider-interface/components/dpiV3Description.vue.js +1 -1
  47. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +255 -242
  48. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +80 -84
  49. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +2 -2
  50. package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +1 -3
  51. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +226 -250
  52. package/package.json +2 -2
@@ -1,62 +1,68 @@
1
- import { ref as f, getCurrentInstance as y, computed as g, onMounted as m, createElementBlock as n, openBlock as c, Fragment as _, renderList as h, createBlock as D } from "vue";
1
+ import { ref as g, getCurrentInstance as m, computed as n, onMounted as _, createElementBlock as d, openBlock as o, Fragment as h, renderList as D, createBlock as P } from "vue";
2
2
  import "@formkit/core";
3
- import { getDatasetCategories as P } from "../../services/dpiV3_apis.js";
4
- import I from "../Chip.vue.js";
5
- import { useFormValues as C } from "../../../composables/useDpiFormValues.js";
3
+ import { useFormValues as I } from "../../../composables/useDpiFormValues.js";
4
+ import { getDatasetCategories as C } from "../../services/dpiV3_apis.js";
5
+ import x from "../Chip.vue.js";
6
6
  /* empty css */
7
- import x from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
8
- const k = { class: "dpiV3_fChipWrap" }, V = {
7
+ import V from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
8
+ const k = { class: "dpiV3_fChipWrap" }, F = {
9
9
  __name: "FindabilityChips",
10
10
  props: {
11
11
  context: Object
12
12
  },
13
- setup(F) {
14
- const o = f([]), d = y().appContext.app.config.globalProperties.$env, { formValues: i } = C(), v = g(() => {
15
- var t;
16
- return (((t = i.value.Discoverability) == null ? void 0 : t.discoverabilityPage) || []).filter((l) => l.id);
17
- }), u = (e) => {
13
+ setup(U) {
14
+ const s = g([]), u = m().appContext.app.config.globalProperties.$env, { formValues: t } = I(), v = n(() => {
15
+ var a;
16
+ return (((a = t.value.Discoverability) == null ? void 0 : a.discoverabilityPage) || []).filter((i) => i.id);
17
+ });
18
+ function p(e) {
18
19
  try {
19
- return v.value.find((t) => t.id === e.id);
20
+ return v.value.find((a) => a.id === e.id);
20
21
  } catch {
21
22
  return !1;
22
23
  }
23
- };
24
- async function p() {
24
+ }
25
+ async function b() {
25
26
  try {
26
- o.value = await P(d.api.baseUrl), o.value.sort((e, t) => e.pref_label.de.localeCompare(t.pref_label.de));
27
+ s.value = await C(u.api.baseUrl), s.value.sort((e, a) => e.pref_label.de.localeCompare(a.pref_label.de));
27
28
  } catch (e) {
28
29
  console.log(e);
29
30
  }
30
31
  }
31
- function b(e) {
32
- i.value.Discoverability || (i.value.Discoverability = {}), i.value.Discoverability.discoverabilityPage || (i.value.Discoverability.discoverabilityPage = [{ isValid: !0 }]);
33
- const t = i.value.Discoverability.discoverabilityPage;
34
- if (t.find((a) => a.id === e.id))
35
- i.value.Discoverability.discoverabilityPage = t.filter((a) => a.id !== e.id);
32
+ function f(e) {
33
+ t.value.Discoverability || (t.value.Discoverability = {}), t.value.Discoverability.discoverabilityPage || (t.value.Discoverability.discoverabilityPage = [{ isValid: !0 }]);
34
+ const a = t.value.Discoverability.discoverabilityPage;
35
+ if (a.find((l) => l.id === e.id))
36
+ t.value.Discoverability.discoverabilityPage = a.filter((l) => l.id !== e.id);
36
37
  else {
37
- const a = {
38
+ const l = {
38
39
  id: e.id,
39
40
  uri: e.resource,
40
41
  label: e.pref_label.de
41
42
  };
42
- i.value.Discoverability.discoverabilityPage.push(a);
43
+ t.value.Discoverability.discoverabilityPage.push(l);
43
44
  }
44
- const r = i.value.Discoverability.discoverabilityPage.filter((a) => a.id), s = i.value.Discoverability.discoverabilityPage.find((a) => a.hasOwnProperty("isValid"));
45
- s ? s.isValid = r.length > 0 : i.value.Discoverability.discoverabilityPage.unshift({ isValid: r.length > 0 }), console.log("Updated discoverabilityPage:", i.value.Discoverability.discoverabilityPage);
45
+ const r = t.value.Discoverability.discoverabilityPage.filter((l) => l.id), c = t.value.Discoverability.discoverabilityPage.find((l) => l.hasOwnProperty("isValid"));
46
+ c ? c.isValid = r.length > 0 : t.value.Discoverability.discoverabilityPage.unshift({ isValid: r.length > 0 }), console.log("Updated discoverabilityPage:", t.value.Discoverability.discoverabilityPage);
46
47
  }
47
- return m(() => {
48
- p();
49
- }), (e, t) => (c(), n("div", k, [
50
- (c(!0), n(_, null, h(o.value, (l, r) => (c(), D(I, {
51
- key: r,
52
- text: l.pref_label.de,
53
- data: { "@value": l.value, URI: l.URI },
54
- setup: { "@type": "select", "@inTable": !1, "@findability": !0, "@selected": u(l) },
55
- onClick: (s) => b(l)
56
- }, null, 8, ["text", "data", "setup", "onClick"]))), 128))
48
+ const y = n(() => s.value.map((i) => ({
49
+ ...i,
50
+ selected: p(i)
51
+ })));
52
+ return _(() => {
53
+ b();
54
+ }), (e, a) => (o(), d("div", k, [
55
+ (o(!0), d(h, null, D(y.value, (i) => (o(), P(x, {
56
+ key: i.id,
57
+ text: i.pref_label.de,
58
+ data: { "@value": i.value, URI: i.URI },
59
+ setup: { "@type": "select", "@inTable": !1, "@findability": !0, "@selected": i.selected },
60
+ "select-value": i.selected,
61
+ onClick: (r) => f(i)
62
+ }, null, 8, ["text", "data", "setup", "select-value", "onClick"]))), 128))
57
63
  ]));
58
64
  }
59
- }, L = /* @__PURE__ */ x(V, [["__scopeId", "data-v-0071bef7"]]);
65
+ }, L = /* @__PURE__ */ V(F, [["__scopeId", "data-v-dada2322"]]);
60
66
  export {
61
67
  L as default
62
68
  };
@@ -1,81 +1,79 @@
1
- import { ref as o, onMounted as V, createElementBlock as y, openBlock as p, Fragment as D, createElementVNode as v, createVNode as w, createBlock as _, toDisplayString as S, getCurrentInstance as k } from "vue";
2
- import C from "../SwitchV3.vue.js";
3
- import F from "../Dropdown.vue.js";
1
+ import { ref as r, onMounted as V, createElementBlock as _, openBlock as p, Fragment as w, createElementVNode as f, createVNode as D, createBlock as S, toDisplayString as y, getCurrentInstance as k } from "vue";
2
+ import { useFormValues as C } from "../../../composables/useDpiFormValues.js";
4
3
  import { getHvdCategories as H } from "../../services/dpiV3_apis.js";
5
- import { useFormValues as x } from "../../../composables/useDpiFormValues.js";
4
+ import x from "../Dropdown.vue.js";
5
+ import F from "../SwitchV3.vue.js";
6
6
  /* empty css */
7
- const I = { class: "dpiV3_findabilitySwitchWrapper" }, P = { class: "dpiV3_Switch_Label copy-large-semi-bold" }, W = {
7
+ const P = { class: "dpiV3_findabilitySwitchWrapper" }, T = { class: "dpiV3_Switch_Label copy-large-semi-bold" }, M = {
8
8
  __name: "HVDSwitch",
9
9
  props: {
10
10
  context: Object
11
11
  },
12
- setup(T) {
13
- const { formValues: t } = x(), s = o(!1), c = o(0), r = o("");
14
- o([{ isValid: !0 }]);
15
- const i = o([]), f = o([]), b = (a) => {
16
- if (s.value = a, !a) {
17
- r.value = "";
18
- const e = t.value.Discoverability;
19
- e[Object.keys(e)[1]] = [{ isValid: !1 }], i.value.forEach((l) => l.selected = !1);
20
- }
21
- }, h = async () => {
12
+ setup(E) {
13
+ const { formValues: i } = C(), s = r(!1), u = r(0), d = r("");
14
+ r([{ isValid: !0 }]);
15
+ const o = r([]), v = r([]);
16
+ function h(e) {
17
+ s.value = e, e || (d.value = "", i.value.Discoverability.hvdPage = [{ isValid: !1 }], o.value.forEach((a) => a.selected = !1));
18
+ }
19
+ async function b() {
22
20
  try {
23
- const a = k().appContext.app.config.globalProperties.$env, e = await H(a.api.baseUrl);
24
- f.value = e, i.value = e.map((l) => ({
25
- label: l.pref_label.de,
26
- uri: l.resource,
27
- "@value": l.pref_label.de,
21
+ const e = k().appContext.app.config.globalProperties.$env, l = (await H(e.api.baseUrl)).sort(
22
+ (t, n) => t.pref_label.de.localeCompare(n.pref_label.de, "de")
23
+ );
24
+ v.value = l, o.value = l.map((t) => ({
25
+ label: t.pref_label.de,
26
+ uri: t.resource,
27
+ "@value": t.pref_label.de,
28
28
  selected: !1
29
29
  })), m();
30
- } catch (a) {
31
- console.error("Error in component:", a);
30
+ } catch (e) {
31
+ console.error("Error in component:", e);
32
32
  }
33
- }, m = () => {
34
- var e, l, u;
35
- const a = (u = (l = (e = t.value) == null ? void 0 : e.Discoverability) == null ? void 0 : l.hvdPage) == null ? void 0 : u[0];
36
- if (a && a.isValid && a.label) {
33
+ }
34
+ function m() {
35
+ var a, l, t;
36
+ const e = (t = (l = (a = i.value) == null ? void 0 : a.Discoverability) == null ? void 0 : l.hvdPage) == null ? void 0 : t[0];
37
+ if (e && e.isValid && e.label) {
37
38
  s.value = !0;
38
- const d = i.value.find(
39
- (n) => n.label === a.label || n.uri === a.uri
39
+ const n = o.value.find(
40
+ (c) => c.label === e.label || c.uri === e.uri
40
41
  );
41
- d && (i.value.forEach((n) => n.selected = !1), d.selected = !0, r.value = d.label), c.value++;
42
+ n && (o.value.forEach((c) => c.selected = !1), n.selected = !0, d.value = n.label), u.value++;
42
43
  }
43
- }, g = (a) => {
44
- const e = i.value.find(
45
- (l) => l.label === a.target.innerHTML
44
+ }
45
+ function g(e) {
46
+ const a = o.value.find(
47
+ (l) => l.label === e.target.innerHTML
46
48
  );
47
- if (e) {
48
- t.value.DistributionSimple.hvdNotation === void 0 && (t.value.DistributionSimple.hvdNotation = {}), t.value.DistributionSimple.hvdNotation = {
49
- hvdUri: e.uri
50
- }, r.value = e.label;
51
- const l = t.value.Discoverability;
52
- l[Object.keys(l)[1]] = [
53
- {
54
- isValid: !0,
55
- label: e.label,
56
- uri: e.uri
57
- }
58
- ];
59
- }
60
- };
49
+ a && (i.value.DistributionSimple.hvdNotation === void 0 && (i.value.DistributionSimple.hvdNotation = {}), i.value.DistributionSimple.hvdNotation = {
50
+ hvdUri: a.uri
51
+ }, d.value = a.label, i.value.Discoverability.hvdPage = [
52
+ {
53
+ isValid: !0,
54
+ label: a.label,
55
+ uri: a.uri
56
+ }
57
+ ]);
58
+ }
61
59
  return V(() => {
62
- h();
63
- }), (a, e) => (p(), y(D, null, [
64
- v("div", I, [
65
- (p(), _(C, {
66
- onSwitchToggled: b,
67
- hasIcon: !1,
68
- defaultChecked: s.value,
60
+ b();
61
+ }), (e, a) => (p(), _(w, null, [
62
+ f("div", P, [
63
+ (p(), S(F, {
64
+ key: u.value,
65
+ "has-icon": !1,
66
+ "default-checked": s.value,
69
67
  disabled: !1,
70
- key: c.value
71
- }, null, 8, ["defaultChecked"])),
72
- v("div", P, S(a.$t("message.dataupload.datasets.hvdPage.switch-label")), 1)
68
+ onSwitchToggled: h
69
+ }, null, 8, ["default-checked"])),
70
+ f("div", T, y(e.$t("message.dataupload.datasets.hvdPage.switch-label")), 1)
73
71
  ]),
74
- w(F, {
75
- dropdownWidth: "large",
76
- isDisabled: !s.value,
72
+ D(x, {
73
+ "dropdown-width": "large",
74
+ "is-disabled": !s.value,
77
75
  type: "inputField",
78
- inputFieldProps: {
76
+ "input-field-props": {
79
77
  isDisabled: !s.value,
80
78
  addOnText: !1,
81
79
  initialHintText: !1,
@@ -87,13 +85,13 @@ const I = { class: "dpiV3_findabilitySwitchWrapper" }, P = { class: "dpiV3_Switc
87
85
  placeholder: "Wählen Sie eine HVD-Kategorie",
88
86
  inputFieldSize: "large"
89
87
  },
90
- data: i.value,
91
- modelValue: r.value,
92
- onClick: e[0] || (e[0] = (l) => g(l))
93
- }, null, 8, ["isDisabled", "inputFieldProps", "data", "modelValue"])
88
+ data: o.value,
89
+ "model-value": d.value,
90
+ onClick: a[0] || (a[0] = (l) => g(l))
91
+ }, null, 8, ["is-disabled", "input-field-props", "data", "model-value"])
94
92
  ], 64));
95
93
  }
96
94
  };
97
95
  export {
98
- W as default
96
+ M as default
99
97
  };
@@ -1,4 +1,4 @@
1
- import { ref as p, computed as R, watch as L, createElementBlock as q, openBlock as d, Fragment as F, createElementVNode as s, createBlock as b, createCommentVNode as h, withKeys as m, normalizeClass as H, withModifiers as y, unref as n, toDisplayString as z, isRef as B } from "vue";
1
+ import { ref as p, computed as x, watch as L, createElementBlock as q, openBlock as d, Fragment as F, createElementVNode as o, createBlock as b, createCommentVNode as h, withKeys as m, normalizeClass as H, withModifiers as y, unref as n, toDisplayString as z, isRef as B } from "vue";
2
2
  import { setResourcePublicationStatus as j, setDatasetPublicationStatus as I, deleteResource as O, deleteDataset as W } from "@piveau/sdk-core/hubRepo";
3
3
  import { useRouter as Z, useRoute as G } from "vue-router";
4
4
  import { useStore as J } from "vuex";
@@ -10,7 +10,7 @@ import k from "./StateTag.vue.js";
10
10
  import te from "./Toast.vue.js";
11
11
  /* empty css */
12
12
  import ae from "../../../../../../_virtual/_plugin-vue_export-helper.js";
13
- const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescContainer" }, se = { class: "dpiV3_dsDesc" }, oe = { class: "dpiV3_TableRowStatus" }, ie = { class: "dpiV3_TableRowUpdated" }, re = { class: "dpiV3_TableRowStatus" }, ue = { class: "dpiV3_TableRowButtonWrap" }, de = {
13
+ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescContainer" }, oe = { class: "dpiV3_dsDesc" }, se = { class: "dpiV3_TableRowStatus" }, ie = { class: "dpiV3_TableRowUpdated" }, re = { class: "dpiV3_TableRowStatus" }, ue = { class: "dpiV3_TableRowButtonWrap" }, de = {
14
14
  __name: "TableRowV3",
15
15
  props: {
16
16
  text: {
@@ -57,21 +57,21 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
57
57
  }
58
58
  },
59
59
  emits: ["complete", "start"],
60
- setup(w, { emit: _ }) {
61
- const t = w, U = _, C = J();
60
+ setup(w, { emit: C }) {
61
+ const t = w, U = C, E = J();
62
62
  Z();
63
- const E = G(), c = Q().api.hubUrl;
64
- let o = p(!1), i = p(!1), v = p(!1), r = p({}), u = p({});
65
- const D = R(() => {
63
+ const _ = G(), c = Q().api.hubUrl;
64
+ let s = p(!1), i = p(!1), v = p(!1), r = p({}), u = p({});
65
+ const D = x(() => {
66
66
  var a;
67
- return !!((a = E.query) != null && a.fromDraft);
68
- }), f = R(() => {
67
+ return !!((a = _.query) != null && a.fromDraft);
68
+ }), f = x(() => {
69
69
  var a, e;
70
- return (e = (a = C.getters) == null ? void 0 : a["auth/getUserData"]) == null ? void 0 : e.authToken;
71
- }), { toEditMode: A } = X();
72
- function P() {
70
+ return (e = (a = E.getters) == null ? void 0 : a["auth/getUserData"]) == null ? void 0 : e.authToken;
71
+ }), { toEditMode: $ } = X();
72
+ function A() {
73
73
  const a = t.draft || D.value, e = t.catalogue, l = t.id || t.dataset.id || t.catalogue.id;
74
- A({
74
+ $({
75
75
  routeName: t.type === "projects" ? "DataProviderInterface-InputProject" : "DataProviderInterface-Input",
76
76
  id: l,
77
77
  catalogId: e,
@@ -82,7 +82,7 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
82
82
  }
83
83
  });
84
84
  }
85
- function $() {
85
+ function P() {
86
86
  v.value = !1, setTimeout(() => {
87
87
  i.value = !1;
88
88
  }, 2e3);
@@ -198,7 +198,7 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
198
198
  window.open(N(t.type, t.id), "_blank");
199
199
  break;
200
200
  case "Bearbeiten":
201
- P();
201
+ A();
202
202
  break;
203
203
  case "Veröffentlichen":
204
204
  r.value = {
@@ -206,7 +206,7 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
206
206
  header: "Datensatz veröffentlichen",
207
207
  text: "Sind Sie sicher, dass Sie diesen Datensatz veröffentlichen möchten?",
208
208
  action: "publishDataset"
209
- }, o.value = !0;
209
+ }, s.value = !0;
210
210
  break;
211
211
  case "Löschen":
212
212
  r.value = {
@@ -214,7 +214,7 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
214
214
  header: "Datensatz endgültig löschen",
215
215
  text: "Möchten Sie diesen Datensatz wirklich endgültig löschen? Diese Aktion kann nicht rückgängig gemacht werden. Alle damit verbundenen Daten werden entfernt.",
216
216
  action: "deleteDataset"
217
- }, o.value = !0;
217
+ }, s.value = !0;
218
218
  break;
219
219
  case "Veröffentlichung aufheben":
220
220
  r.value = {
@@ -222,7 +222,7 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
222
222
  header: "Veröffentlichung aufheben",
223
223
  text: "Sind Sie sicher, dass Sie diesen Datensatz zu einem Entwurf zurücksetzen möchten?",
224
224
  action: "setToDraft"
225
- }, o.value = !0;
225
+ }, s.value = !0;
226
226
  break;
227
227
  }
228
228
  }
@@ -233,11 +233,11 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
233
233
  function V(a) {
234
234
  a.target.className != "dpiV3_more-button dpiV3_activeState" && (g.value = !0);
235
235
  }
236
- function x(a) {
236
+ function R(a) {
237
237
  a.target.className != "dpiV3_more-button dpiV3_activeState" && (g.value = !1);
238
238
  }
239
239
  return (a, e) => (d(), q(F, null, [
240
- s("button", {
240
+ o("button", {
241
241
  class: H(["dpiV3_tableRowWrapper", {
242
242
  dpiV3_pressedTableRow: n(g),
243
243
  tRowInDraft: t.fromDraft
@@ -247,21 +247,21 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
247
247
  e[4] || (e[4] = m(y((l) => V(l), ["prevent"]), ["enter"]))
248
248
  ],
249
249
  onKeyup: [
250
- e[5] || (e[5] = m((l) => x(l), ["space"])),
251
- e[6] || (e[6] = m((l) => x(l), ["enter"]))
250
+ e[5] || (e[5] = m((l) => R(l), ["space"])),
251
+ e[6] || (e[6] = m((l) => R(l), ["enter"]))
252
252
  ]
253
253
  }, [
254
- s("div", le, [
255
- s("div", {
254
+ o("div", le, [
255
+ o("div", {
256
256
  class: "dpiV3_tableRowContent",
257
257
  onMousedown: e[0] || (e[0] = y((l) => T(l, !0), ["prevent"])),
258
258
  onMouseup: e[1] || (e[1] = y((l) => T(l, !1), ["prevent"])),
259
259
  onClick: e[2] || (e[2] = (l) => S("Ansehen"))
260
260
  }, [
261
- s("div", ne, [
262
- s("span", se, z(t.text), 1)
261
+ o("div", ne, [
262
+ o("span", oe, z(t.text), 1)
263
263
  ]),
264
- s("div", oe, [
264
+ o("div", se, [
265
265
  t.draft ? (d(), b(k, {
266
266
  key: 1,
267
267
  label: "Entwurf",
@@ -271,9 +271,9 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
271
271
  label: "Freigegeben",
272
272
  state: "published"
273
273
  })),
274
- s("span", ie, " Bearbeitet am: " + z(t.date), 1)
274
+ o("span", ie, " Bearbeitet am: " + z(t.date), 1)
275
275
  ]),
276
- s("div", re, [
276
+ o("div", re, [
277
277
  w.visibility ? (d(), b(k, {
278
278
  key: 0,
279
279
  label: w.visibility,
@@ -282,7 +282,7 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
282
282
  }, null, 8, ["label", "state"])) : h("", !0)
283
283
  ])
284
284
  ], 32),
285
- s("div", ue, [
285
+ o("div", ue, [
286
286
  D.value ? h("", !0) : (d(), b(Y, {
287
287
  key: 0,
288
288
  type: "moreButton",
@@ -297,13 +297,13 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
297
297
  ])
298
298
  ])
299
299
  ], 34),
300
- n(o) ? (d(), b(ee, {
300
+ n(s) ? (d(), b(ee, {
301
301
  key: 0,
302
302
  buttons: n(r).button,
303
303
  "header-text": n(r).header,
304
304
  text: n(r).text,
305
305
  action: n(r).action,
306
- onClose: e[7] || (e[7] = (l) => B(o) ? o.value = !1 : o = !1),
306
+ onClose: e[7] || (e[7] = (l) => B(s) ? s.value = !1 : s = !1),
307
307
  onActionHandling: e[8] || (e[8] = (l) => K(l, U))
308
308
  }, null, 8, ["buttons", "header-text", "text", "action"])) : h("", !0),
309
309
  n(i) ? (d(), b(te, {
@@ -313,12 +313,13 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
313
313
  class: "dpiV3_tableToast",
314
314
  button: n(u).button,
315
315
  action: n(u).action,
316
- onMouseenter: e[9] || (e[9] = (l) => B(v) ? v.value = !0 : v = !0),
317
- onMouseleave: $
316
+ onButtonClicked: e[9] || (e[9] = (l) => a.handleToastClick()),
317
+ onMouseenter: e[10] || (e[10] = (l) => B(v) ? v.value = !0 : v = !0),
318
+ onMouseleave: P
318
319
  }, null, 8, ["type", "text", "button", "action"])) : h("", !0)
319
320
  ], 64));
320
321
  }
321
- }, Te = /* @__PURE__ */ ae(de, [["__scopeId", "data-v-5c454e49"]]);
322
+ }, Te = /* @__PURE__ */ ae(de, [["__scopeId", "data-v-dfbbf5be"]]);
322
323
  export {
323
324
  Te as default
324
325
  };
@@ -1,12 +1,12 @@
1
- import { ref as i, createElementBlock as g, openBlock as v, normalizeClass as u, createElementVNode as s, toDisplayString as S, createVNode as c, unref as p } from "vue";
1
+ import { ref as l, createElementBlock as v, openBlock as g, normalizeClass as p, createElementVNode as s, toDisplayString as S, createVNode as c, unref as f } from "vue";
2
2
  import x from "../img/x-circleFill.svg.js";
3
- import _ from "../img/InfoFill.svg.js";
4
- import T from "../img/CheckCircleFill.svg.js";
3
+ import T from "../img/InfoFill.svg.js";
4
+ import b from "../img/CheckCircleFill.svg.js";
5
5
  import B from "../img/WarningFill.svg.js";
6
- import b from "./TextButtonSmall.vue.js";
7
- import w from "./CrossOutButton.vue.js";
6
+ import w from "./TextButtonSmall.vue.js";
7
+ import E from "./CrossOutButton.vue.js";
8
8
  /* empty css */
9
- const E = { class: "imgTextWrap" }, K = ["src"], h = { class: "btnWrapToast" }, $ = {
9
+ const _ = { class: "imgTextWrap" }, k = ["src"], K = { class: "btnWrapToast" }, h = {
10
10
  __name: "Toast",
11
11
  props: {
12
12
  text: {
@@ -20,50 +20,51 @@ const E = { class: "imgTextWrap" }, K = ["src"], h = { class: "btnWrapToast" },
20
20
  button: String,
21
21
  action: String
22
22
  },
23
- setup(f) {
24
- const o = i();
25
- let n = i(!1), a = i(!1);
26
- const e = f;
27
- e.type === "info" && (o.value = _), e.type === "success" && (o.value = T), e.type === "warning" && (o.value = B), e.type === "error" && (o.value = x);
28
- const l = (t) => {
29
- t === "in" ? a.value = !0 : a.value = !1;
30
- }, d = (t) => {
31
- (t.code === "Space" || t.code === "Enter") && (n.value = !0, t.preventDefault());
23
+ setup(d) {
24
+ const r = l();
25
+ let n = l(!1), i = l(!1);
26
+ const e = d;
27
+ e.type === "info" && (r.value = T), e.type === "success" && (r.value = b), e.type === "warning" && (r.value = B), e.type === "error" && (r.value = x);
28
+ const u = (t) => {
29
+ t === "in" ? i.value = !0 : i.value = !1;
32
30
  }, m = (t) => {
31
+ (t.code === "Space" || t.code === "Enter") && (n.value = !0, t.preventDefault());
32
+ }, y = (t) => {
33
33
  (t.code === "Space" || t.code === "Enter") && (n.value = !1);
34
34
  };
35
- return (t, r) => (v(), g("div", {
36
- class: u(["toastBody", {
35
+ return (t, o) => (g(), v("div", {
36
+ class: p(["toastBody", {
37
37
  error: e.type === "error",
38
38
  warning: e.type === "warning",
39
39
  info: e.type === "info",
40
40
  success: e.type === "success"
41
41
  }])
42
42
  }, [
43
- s("div", E, [
43
+ s("div", _, [
44
44
  s("img", {
45
- src: o.value,
45
+ src: r.value,
46
46
  alt: ""
47
- }, null, 8, K),
47
+ }, null, 8, k),
48
48
  s("span", null, S(e.text), 1)
49
49
  ]),
50
- s("div", h, [
51
- c(b, {
50
+ s("div", K, [
51
+ c(w, {
52
+ onClick: o[0] || (o[0] = (a) => t.$emit("button-clicked")),
52
53
  buttonText: e.button,
53
54
  style: { margin: "auto" }
54
55
  }, null, 8, ["buttonText"]),
55
- c(w, {
56
- onKeydown: d,
57
- onKeyup: m,
58
- onFocus: r[0] || (r[0] = (y) => l("in")),
59
- onBlur: r[1] || (r[1] = (y) => l()),
56
+ c(E, {
57
+ onKeydown: m,
58
+ onKeyup: y,
59
+ onFocus: o[1] || (o[1] = (a) => u("in")),
60
+ onBlur: o[2] || (o[2] = (a) => u()),
60
61
  type: "inToast",
61
- class: u(["crossout", { pressed: p(n), focused: p(a) }])
62
+ class: p(["crossout", { pressed: f(n), focused: f(i) }])
62
63
  }, null, 8, ["class"])
63
64
  ])
64
65
  ], 2));
65
66
  }
66
67
  };
67
68
  export {
68
- $ as default
69
+ h as default
69
70
  };