@piveau/dpi 0.1.0-beta.5 → 0.1.0-beta.50

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 (74) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/DPIMenu.vue.js +2 -2
  3. package/dist/data-provider-interface/DataProviderInterface.vue2.js +45 -40
  4. package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
  5. package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
  6. package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +78 -66
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +100 -76
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +7 -7
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +434 -360
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +91 -61
  16. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  17. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
  18. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +109 -52
  19. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
  20. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  21. package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +153 -102
  22. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +571 -207
  23. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
  24. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +34 -56
  25. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +301 -100
  26. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +46 -27
  27. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -39
  28. package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +182 -105
  29. package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
  30. package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
  31. package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  32. package/dist/data-provider-interface/components/ContactPage.vue.js +153 -105
  33. package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
  34. package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
  35. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +856 -790
  36. package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
  37. package/dist/data-provider-interface/components/HVDPage.vue.js +105 -82
  38. package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
  39. package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
  40. package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
  41. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +302 -251
  42. package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
  43. package/dist/data-provider-interface/components/TempResPageInModal.vue.js +395 -0
  44. package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
  45. package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
  46. package/dist/data-provider-interface/composables/useDpiContext.js +5 -7
  47. package/dist/data-provider-interface/composables/useDpiEditMode.js +15 -13
  48. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
  49. package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
  50. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +478 -91
  51. package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
  52. package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +10 -3
  53. package/dist/data-provider-interface/store/index.js +32 -0
  54. package/dist/data-provider-interface/store/modules/authStore.js +301 -0
  55. package/dist/data-provider-interface/store/modules/catalogueDetailsStore.js +34 -0
  56. package/dist/data-provider-interface/store/modules/cataloguesStore.js +256 -0
  57. package/dist/data-provider-interface/store/modules/datasetDetailsStore.js +644 -0
  58. package/dist/data-provider-interface/store/modules/datasetsStore.js +361 -0
  59. package/dist/data-provider-interface/store/{dpiStore.js → modules/dpiStore.js} +11 -12
  60. package/dist/data-provider-interface/store/modules/snackbarStore.js +45 -0
  61. package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
  62. package/dist/data-provider-interface/views/InputPage.vue.js +378 -752
  63. package/dist/index.js +4 -4
  64. package/dist/styles/_dpi.scss +1614 -0
  65. package/dist/styles/_maps.scss +24 -0
  66. package/dist/styles/_variables.scss +973 -0
  67. package/dist/utils/draftApi.js +33 -0
  68. package/dist/utils/helpers.js +36 -22
  69. package/dist/utils/identifiersApi.js +16 -0
  70. package/dist/utils/jwt.js +7 -0
  71. package/package.json +12 -7
  72. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +0 -41
  73. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
  74. package/dist/data-provider-interface/store/modules/formSchemaStore.js +0 -94
@@ -1,52 +1,82 @@
1
- import { ref as o, createElementBlock as v, openBlock as b, Fragment as m, createElementVNode as s, createVNode as n, unref as d, toDisplayString as h, getCurrentInstance as V } from "vue";
2
- import w from "../SwitchV3.vue.js";
3
- import _ from "../Dropdown.vue.js";
4
- import { getHvdCategories as y } from "../../services/dpiV3_apis.js";
5
- import { getNode as S } from "@formkit/core";
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";
4
+ import { getHvdCategories as H } from "../../services/dpiV3_apis.js";
5
+ import { useFormValues as x } from "../../../composables/useDpiFormValues.js";
6
6
  /* empty css */
7
- const C = { class: "dpiV3_findabilitySwitchWrapper" }, D = { class: "dpiV3_Switch_Label copy-large-semi-bold" }, E = {
7
+ const I = { class: "dpiV3_findabilitySwitchWrapper" }, P = { class: "dpiV3_Switch_Label copy-large-semi-bold" }, W = {
8
8
  __name: "HVDSwitch",
9
9
  props: {
10
10
  context: Object
11
11
  },
12
- setup(k) {
13
- const l = o(!1);
14
- let i = o([{ isValid: !0 }]);
15
- const r = o([]), c = o([]), p = (e) => {
16
- i.value[0].isValid = !1, l.value = !e, console.log(l);
17
- }, u = async () => {
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 () => {
18
22
  try {
19
- const e = V().appContext.app.config.globalProperties.$env, t = await y(e.api.baseUrl);
20
- c.value = t, r.value = t.map((a) => ({
21
- label: a.pref_label.de,
22
- uri: a.resource,
23
- "@value": a.pref_label.de,
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,
24
28
  selected: !1
25
- // oder eine andere Eigenschaft, die du binden möchtest
26
- }));
27
- } catch (e) {
28
- console.error("Error in component:", e), error.value = e;
29
+ })), m();
30
+ } catch (a) {
31
+ console.error("Error in component:", a);
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) {
37
+ s.value = !0;
38
+ const d = i.value.find(
39
+ (n) => n.label === a.label || n.uri === a.uri
40
+ );
41
+ d && (i.value.forEach((n) => n.selected = !1), d.selected = !0, r.value = d.label), c.value++;
42
+ }
43
+ }, g = (a) => {
44
+ const e = i.value.find(
45
+ (l) => l.label === a.target.innerHTML
46
+ );
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
+ ];
29
59
  }
30
- }, f = (e) => {
31
- const t = r.value.find((g) => g.label === e.target.innerHTML), a = S("Discoverability").value;
32
- a[Object.keys(a)[1]] = [{ isValid: !0, label: t.label, uri: t.uri }];
33
60
  };
34
- return u(), (e, t) => (b(), v(m, null, [
35
- s("div", C, [
36
- n(w, {
37
- onSwitchToggled: t[0] || (t[0] = (a) => d(i)[0].isValid === !0 ? p(l.value) : (d(i)[0].isValid = !0, l.value = !l.value)),
61
+ return V(() => {
62
+ h();
63
+ }), (a, e) => (p(), y(D, null, [
64
+ v("div", I, [
65
+ (p(), _(C, {
66
+ onSwitchToggled: b,
38
67
  hasIcon: !1,
39
- defaultChecked: !1,
40
- disabled: !1
41
- }),
42
- s("div", D, h(e.$t("message.dataupload.datasets.hvdPage.switch-label")), 1)
68
+ defaultChecked: s.value,
69
+ disabled: !1,
70
+ key: c.value
71
+ }, null, 8, ["defaultChecked"])),
72
+ v("div", P, S(a.$t("message.dataupload.datasets.hvdPage.switch-label")), 1)
43
73
  ]),
44
- n(_, {
74
+ w(F, {
45
75
  dropdownWidth: "large",
46
- isDisabled: !l.value,
76
+ isDisabled: !s.value,
47
77
  type: "inputField",
48
78
  inputFieldProps: {
49
- isDisabled: !l.value,
79
+ isDisabled: !s.value,
50
80
  addOnText: !1,
51
81
  initialHintText: !1,
52
82
  datePicker: !1,
@@ -57,12 +87,13 @@ const C = { class: "dpiV3_findabilitySwitchWrapper" }, D = { class: "dpiV3_Switc
57
87
  placeholder: "Wählen Sie eine HVD-Kategorie",
58
88
  inputFieldSize: "large"
59
89
  },
60
- data: r.value,
61
- onClick: t[1] || (t[1] = (a) => f(a))
62
- }, null, 8, ["isDisabled", "inputFieldProps", "data"])
90
+ data: i.value,
91
+ modelValue: r.value,
92
+ onClick: e[0] || (e[0] = (l) => g(l))
93
+ }, null, 8, ["isDisabled", "inputFieldProps", "data", "modelValue"])
63
94
  ], 64));
64
95
  }
65
96
  };
66
97
  export {
67
- E as default
98
+ W as default
68
99
  };
@@ -1,14 +1,17 @@
1
- import { ref as u, watch as K, createElementBlock as N, openBlock as p, Fragment as U, createElementVNode as o, createBlock as v, createCommentVNode as k, withKeys as b, normalizeClass as $, withModifiers as h, unref as s, toDisplayString as y, createVNode as H, isRef as T } from "vue";
2
- import x from "./StateTag.vue.js";
3
- import L from "./Dropdown.vue.js";
4
- import j from "./ModalSimpleV3.vue.js";
5
- import q from "./Toast.vue.js";
6
- import { useStore as F } from "vuex";
7
- import { useRouter as J } from "vue-router";
8
- import { useDpiUtils as O } from "../../composables/useDpiUtils.js";
1
+ import { ref as d, computed as M, watch as Q, createElementBlock as X, openBlock as p, Fragment as Y, createElementVNode as f, createBlock as h, createCommentVNode as x, withKeys as b, normalizeClass as Z, withModifiers as m, unref as o, toDisplayString as ee, isRef as A } from "vue";
2
+ import E from "./StateTag.vue.js";
3
+ import te from "./Dropdown.vue.js";
4
+ import ae from "./ModalSimpleV3.vue.js";
5
+ import ne from "./Toast.vue.js";
6
+ import { useStore as se } from "vuex";
7
+ import { useRouter as le } from "vue-router";
8
+ import { useDpiUtils as oe } from "../../composables/useDpiUtils.js";
9
+ import re from "axios";
10
+ import { useRuntimeEnv as ie } from "../../../composables/useRuntimeEnv.js";
9
11
  /* empty css */
10
- import W from "../../../_virtual/_plugin-vue_export-helper.js";
11
- const G = { class: "dpiV3_tableRowInner" }, P = { class: "dpiV3_TableRowDescContainer" }, Q = { class: "dpiV3_dsDesc" }, X = { class: "dpiV3_TableRowStatus" }, Y = { class: "dpiV3_TableRowUpdated" }, Z = { class: "dpiV3_TableRowButtonWrap" }, ee = {
12
+ import ue from "../../../_virtual/_plugin-vue_export-helper.js";
13
+ import { useDpiContext as U } from "../../composables/useDpiContext.js";
14
+ const ce = { class: "dpiV3_tableRowInner" }, de = { class: "dpiV3_TableRowDescContainer" }, fe = { class: "dpiV3_dsDesc" }, ve = { class: "dpiV3_TableRowStatus" }, pe = { class: "dpiV3_TableRowButtonWrap" }, ge = {
12
15
  __name: "TableRowV3",
13
16
  props: {
14
17
  text: {
@@ -27,30 +30,84 @@ const G = { class: "dpiV3_tableRowInner" }, P = { class: "dpiV3_TableRowDescCont
27
30
  catalogue: String,
28
31
  dataset: Object
29
32
  },
30
- setup(_) {
31
- const m = F();
32
- J();
33
- let r = u(!1), l = u(!1), c = u(!1), i = u({}), d = u({});
34
- const n = _, { toEditMode: S } = O(), z = () => {
35
- const t = n.draft, e = n.catalogue, a = n.id || n.dataset.id || n.catalogue.id;
36
- S({ id: a, catalogId: e, isDraft: t, locale: "de" });
37
- }, R = (t, e, a, A) => {
38
- console.log(n.dataset), m.dispatch("auth/putDatasetToDraft", { id: t, catalog: e, title: a, description: A });
39
- }, B = (t, e) => {
40
- m.dispatch("auth/deleteUserDraftById", { id: t, catalog: e });
41
- }, C = (t, e) => {
42
- m.dispatch("auth/publishUserDraftById", { id: t, catalog: e });
43
- }, M = () => {
44
- c.value = !1, setTimeout(() => {
45
- l.value = !1;
33
+ setup(L) {
34
+ const D = se(), w = le();
35
+ let u = d(!1), s = d(!1), r = d(!1), c = d({}), i = d({}), V = d({ edit: { fromDraft: !1 } }), l = d(!1);
36
+ U() && (V = U());
37
+ const z = ie(), S = M(() => D.getters["auth/getUserData"]), K = M(() => S.value && S.value.rtpToken), t = L, { toEditMode: N } = oe(), H = () => {
38
+ const n = t.draft, e = t.catalogue, a = t.id || t.dataset.id || t.catalogue.id;
39
+ N({ id: a, catalogId: e, isDraft: n, locale: "de" });
40
+ }, J = () => {
41
+ switch (i.value.action) {
42
+ case "goToDataset":
43
+ l.value = !0;
44
+ const n = t.id || t.dataset.id, e = new URL(z.api.baseUrl).origin + "/";
45
+ r.value = !1, s.value = !1, setTimeout(() => {
46
+ window.location.href = e + "datasets/" + n + "?locale=de";
47
+ }, 500);
48
+ break;
49
+ case "revertDeletion":
50
+ l.value = !0, k(), setTimeout(() => {
51
+ l.value = !1;
52
+ }, 200);
53
+ break;
54
+ case "revertToDraft":
55
+ l.value = !0, k(), setTimeout(() => {
56
+ l.value = !1;
57
+ }, 200);
58
+ break;
59
+ }
60
+ }, P = (n, e, a, v) => {
61
+ const y = async () => {
62
+ await D.dispatch("auth/putDatasetToDraft", {
63
+ id: n,
64
+ catalog: e,
65
+ title: a,
66
+ description: v
67
+ }), w.go();
68
+ }, T = setInterval(() => {
69
+ if (console.log(
70
+ !s.value,
71
+ !r.value,
72
+ !l.value
73
+ ), l.value) {
74
+ clearInterval(T);
75
+ return;
76
+ }
77
+ !s.value && !r.value && !l.value && (clearInterval(T), y());
78
+ }, 100);
79
+ }, j = (n, e) => {
80
+ const a = async () => {
81
+ await D.dispatch("auth/publishUserDraftById", { id: n, catalog: e }), l.value || w.go();
82
+ }, v = setInterval(() => {
83
+ (l.value || !s.value && !r.value) && (clearInterval(v), a());
84
+ }, 100);
85
+ }, I = (n, e) => {
86
+ const a = n || t.dataset && t.dataset.id || t.catalogue && t.catalogue.id, v = e || t.catalogue, y = z.api.hubUrl, O = !!t.draft ? `drafts/datasets/${a}?catalogue=${v}` : `datasets/${a}?useNormalizedId=true&catalogue=${v}`, W = `${y}${O}`, G = async () => {
87
+ await re.delete(W, {
88
+ headers: {
89
+ "Content-Type": "text/turtle",
90
+ Authorization: `Bearer ${K.value}`
91
+ }
92
+ }), w.go();
93
+ }, $ = setInterval(() => {
94
+ if (l.value) {
95
+ clearInterval($);
96
+ return;
97
+ }
98
+ !s.value && !r.value && !l.value && (clearInterval($), G());
99
+ }, 100);
100
+ }, k = () => {
101
+ r.value = !1, setTimeout(() => {
102
+ s.value = !1;
46
103
  }, 2e3);
47
104
  };
48
- K(l, (t) => {
49
- t && setTimeout(() => {
50
- c.value || (l.value = !1);
105
+ Q(s, (n) => {
106
+ n && setTimeout(() => {
107
+ r.value || (s.value = !1);
51
108
  }, 2e3);
52
109
  });
53
- const E = () => n.draft ? [
110
+ const q = () => t.draft ? [
54
111
  { "@value": "Bearbeiten", selected: !1 },
55
112
  { "@value": "Veröffentlichen", selected: !1 },
56
113
  { "@value": "Löschen", selected: !1 }
@@ -58,10 +115,10 @@ const G = { class: "dpiV3_tableRowInner" }, P = { class: "dpiV3_TableRowDescCont
58
115
  { "@value": "Bearbeiten", selected: !1 },
59
116
  { "@value": "Veröffentlichung aufheben", selected: !1 },
60
117
  { "@value": "Löschen", selected: !1 }
61
- ], I = (t) => {
62
- switch (t) {
118
+ ], F = (n) => {
119
+ switch (n) {
63
120
  case "publishDataset":
64
- C(n.id, n.catalogue), console.log("Datensatz wird veröffentlicht"), l.value = !0, d.value = {
121
+ j(t.id, t.catalogue), console.log("Datensatz wird veröffentlicht"), s.value = !0, i.value = {
65
122
  type: "success",
66
123
  text: "Der Datensatz wurde veröffentlicht",
67
124
  button: "Ansehen",
@@ -69,139 +126,159 @@ const G = { class: "dpiV3_tableRowInner" }, P = { class: "dpiV3_TableRowDescCont
69
126
  };
70
127
  break;
71
128
  case "deleteDataset":
72
- B(n.id, n.catalogue), l.value = !0, d.value = {
73
- type: "success",
74
- text: "Der Datensatz wurde erfolgreich gelöscht",
75
- button: "Rückgängig machen",
76
- action: "revertDeletion"
77
- };
129
+ (async () => {
130
+ try {
131
+ t.draft ? await I(t.id, t.catalogue) : await I(t.dataset.id, t.dataset.catalog.id), s.value = !0, i.value = {
132
+ type: "success",
133
+ text: "Der Datensatz wurde erfolgreich gelöscht",
134
+ button: "Rückgängig machen",
135
+ action: "revertDeletion"
136
+ };
137
+ } catch (e) {
138
+ s.value = !0, i.value = {
139
+ type: "error",
140
+ text: "Das Löschen des Datensatzes ist fehlgeschlagen",
141
+ button: "Schließen"
142
+ }, console.error(e);
143
+ }
144
+ })();
78
145
  break;
79
146
  case "setToDraft":
80
- R(
81
- n.dataset.id,
82
- n.dataset.catalog.id,
83
- n.dataset.title,
84
- n.dataset.description
85
- ), l.value = !0, d.value = {
147
+ P(
148
+ t.dataset.id,
149
+ t.dataset.catalog.id,
150
+ t.dataset.title,
151
+ t.dataset.description
152
+ ), s.value = !0, i.value = {
86
153
  type: "success",
87
154
  text: "Der Datensatz wurde erfolgreich zu einem Entwurf zurückgesetzt",
88
155
  button: "Rückgängig machen",
89
156
  action: "revertToDraft"
90
157
  };
91
158
  }
92
- }, g = (t) => {
159
+ }, B = (n) => {
93
160
  let e = "";
94
- switch (typeof t == "string" ? e = t : e = t.target.innerText, e) {
161
+ switch (typeof n == "string" ? e = n : e = n.target.innerText, console.log(e), e) {
95
162
  case "Bearbeiten":
96
- z();
163
+ H();
97
164
  break;
98
165
  case "Veröffentlichen":
99
- i.value = {
166
+ c.value = {
100
167
  button: "Veröffentlichen",
101
168
  header: "Datensatz veröffentlichen",
102
169
  text: "Sind Sie sicher, dass Sie diesen Datensatz veröffentlichen möchten?",
103
170
  action: "publishDataset"
104
- }, r.value = !0;
171
+ }, u.value = !0;
105
172
  break;
106
173
  case "Löschen":
107
- i.value = {
174
+ c.value = {
108
175
  button: "Ja, löschen",
109
176
  header: "Datensatz endgültig löschen",
110
177
  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.",
111
178
  action: "deleteDataset"
112
- }, r.value = !0;
179
+ }, u.value = !0;
180
+ break;
181
+ case "LöschenPublished":
182
+ c.value = {
183
+ button: "Ja, löschen",
184
+ header: "Datensatz endgültig löschen",
185
+ 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.",
186
+ action: "deletePublishedDataset"
187
+ }, u.value = !0;
113
188
  break;
114
189
  case "Veröffentlichung aufheben":
115
- i.value = {
190
+ c.value = {
116
191
  button: "Ja",
117
192
  header: "Veröffentlichung aufheben",
118
193
  text: "Sind Sie sicher, dass Sie diesen Datensatz zu einem Entwurf zurücksetzen möchten?",
119
194
  action: "setToDraft"
120
- }, r.value = !0;
195
+ }, u.value = !0;
121
196
  break;
122
197
  }
123
198
  };
124
- let f = u(!1);
125
- const D = (t, e) => {
126
- e ? f.value = !0 : f.value = !1;
127
- }, w = (t) => {
128
- t.target.className != "dpiV3_more-button dpiV3_activeState" && (f.value = !0);
129
- }, V = (t) => {
130
- t.target.className != "dpiV3_more-button dpiV3_activeState" && (f.value = !1);
199
+ let g = d(!1);
200
+ const R = (n, e) => {
201
+ e ? g.value = !0 : g.value = !1;
202
+ }, C = (n) => {
203
+ n.target.className != "dpiV3_more-button dpiV3_activeState" && (g.value = !0);
204
+ }, _ = (n) => {
205
+ n.target.className != "dpiV3_more-button dpiV3_activeState" && (g.value = !1);
131
206
  };
132
- return (t, e) => (p(), N(U, null, [
133
- o("button", {
134
- class: $(["dpiV3_tableRowWrapper", {
135
- dpiV3_pressedTableRow: s(f),
136
- tRowInDraft: n.fromDraft
207
+ return (n, e) => (p(), X(Y, null, [
208
+ f("button", {
209
+ class: Z(["dpiV3_tableRowWrapper", {
210
+ dpiV3_pressedTableRow: o(g),
211
+ tRowInDraft: t.fromDraft
137
212
  }]),
138
213
  onKeydown: [
139
- e[3] || (e[3] = b(h((a) => w(a), ["prevent"]), ["space"])),
140
- e[4] || (e[4] = b(h((a) => w(a), ["prevent"]), ["enter"]))
214
+ e[3] || (e[3] = b(m((a) => C(a), ["prevent"]), ["space"])),
215
+ e[4] || (e[4] = b(m((a) => C(a), ["prevent"]), ["enter"]))
141
216
  ],
142
217
  onKeyup: [
143
- e[5] || (e[5] = b((a) => V(a), ["space"])),
144
- e[6] || (e[6] = b((a) => V(a), ["enter"]))
218
+ e[5] || (e[5] = b((a) => _(a), ["space"])),
219
+ e[6] || (e[6] = b((a) => _(a), ["enter"]))
145
220
  ]
146
221
  }, [
147
- o("div", G, [
148
- o("div", {
222
+ f("div", ce, [
223
+ f("div", {
149
224
  class: "dpiV3_tableRowContent",
150
- onMousedown: e[0] || (e[0] = h((a) => D(a, !0), ["prevent"])),
151
- onMouseup: e[1] || (e[1] = h((a) => D(a, !1), ["prevent"])),
152
- onClick: e[2] || (e[2] = (a) => g("Bearbeiten"))
225
+ onMousedown: e[0] || (e[0] = m((a) => R(a, !0), ["prevent"])),
226
+ onMouseup: e[1] || (e[1] = m((a) => R(a, !1), ["prevent"])),
227
+ onClick: e[2] || (e[2] = (a) => B("Bearbeiten"))
153
228
  }, [
154
- o("div", P, [
155
- o("span", Q, y(n.text), 1)
229
+ f("div", de, [
230
+ f("span", fe, ee(t.text), 1)
156
231
  ]),
157
- o("div", X, [
158
- n.draft ? (p(), v(x, {
232
+ f("div", ve, [
233
+ t.draft ? (p(), h(E, {
159
234
  key: 1,
160
235
  label: "Entwurf",
161
236
  state: "draft"
162
- })) : (p(), v(x, {
237
+ })) : (p(), h(E, {
163
238
  key: 0,
164
239
  label: "Veröffentlicht",
165
240
  state: "published"
166
- })),
167
- o("span", Y, " Updated am: " + y(n.date), 1)
241
+ }))
168
242
  ])
169
243
  ], 32),
170
- o("div", Z, [
171
- H(L, {
172
- onClick: g,
244
+ f("div", pe, [
245
+ o(V).edit.enabled ? x("", !0) : (p(), h(te, {
246
+ key: 0,
247
+ onClick: B,
173
248
  type: "moreButton",
249
+ notDraft: !t.draft,
174
250
  alignment: "right",
175
251
  text: {
176
252
  support: "This is a supporting message"
177
253
  },
178
- data: E()
179
- }, null, 8, ["data"])
254
+ data: q()
255
+ }, null, 8, ["notDraft", "data"]))
180
256
  ])
181
257
  ])
182
258
  ], 34),
183
- s(r) ? (p(), v(j, {
259
+ o(u) ? (p(), h(ae, {
184
260
  key: 0,
185
- buttons: s(i).button,
186
- headerText: s(i).header,
187
- text: s(i).text,
188
- onClose: e[7] || (e[7] = (a) => T(r) ? r.value = !1 : r = !1),
189
- action: s(i).action,
190
- onActionHandling: e[8] || (e[8] = (a) => I(a))
191
- }, null, 8, ["buttons", "headerText", "text", "action"])) : k("", !0),
192
- s(l) ? (p(), v(q, {
261
+ buttons: o(c).button,
262
+ headerText: o(c).header,
263
+ text: o(c).text,
264
+ onClose: e[7] || (e[7] = (a) => A(u) ? u.value = !1 : u = !1),
265
+ action: o(c).action,
266
+ onActionHandling: e[8] || (e[8] = (a) => F(a))
267
+ }, null, 8, ["buttons", "headerText", "text", "action"])) : x("", !0),
268
+ o(s) ? (p(), h(ne, {
193
269
  key: 1,
194
- type: s(d).type,
195
- text: s(d).text,
270
+ type: o(i).type,
271
+ text: o(i).text,
196
272
  class: "dpiV3_tableToast",
197
- button: s(d).button,
198
- action: s(d).action,
199
- onMouseenter: e[9] || (e[9] = (a) => T(c) ? c.value = !0 : c = !0),
200
- onMouseleave: M
201
- }, null, 8, ["type", "text", "button", "action"])) : k("", !0)
273
+ button: o(i).button,
274
+ action: o(i).action,
275
+ onButtonClicked: e[9] || (e[9] = (a) => J()),
276
+ onMouseenter: e[10] || (e[10] = (a) => A(r) ? r.value = !0 : r = !0),
277
+ onMouseleave: k
278
+ }, null, 8, ["type", "text", "button", "action"])) : x("", !0)
202
279
  ], 64));
203
280
  }
204
- }, ce = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-1bc7ccce"]]);
281
+ }, Be = /* @__PURE__ */ ue(ge, [["__scopeId", "data-v-0fa9244e"]]);
205
282
  export {
206
- ce as default
283
+ Be as default
207
284
  };
@@ -1,4 +1,4 @@
1
- import { ref as l, watch as h, createElementBlock as x, openBlock as c, createElementVNode as a, createCommentVNode as b, createBlock as M, toDisplayString as T, normalizeStyle as C, normalizeClass as m, unref as s, withDirectives as S, vModelText as A } from "vue";
1
+ import { ref as l, watch as h, createElementBlock as x, openBlock as c, createElementVNode as a, createCommentVNode as m, createBlock as M, toDisplayString as T, normalizeStyle as C, normalizeClass as b, unref as s, withDirectives as S, vModelText as A } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import L from "./TextButtonSmall.vue.js";
@@ -19,6 +19,10 @@ const N = { class: "dpiV3_input-field V3-typography" }, R = { class: "dpiV3_Inpu
19
19
  type: Boolean,
20
20
  default: !1
21
21
  },
22
+ isDescription: {
23
+ type: Boolean,
24
+ default: !1
25
+ },
22
26
  showError: {
23
27
  type: Boolean,
24
28
  default: !1
@@ -47,13 +51,13 @@ const N = { class: "dpiV3_input-field V3-typography" }, R = { class: "dpiV3_Inpu
47
51
  f("deleteClicked");
48
52
  }, B = () => {
49
53
  y.value = !1, n.value = !0, o.value = !0, t.value = "0 0 0 2px var(--blue-70, #009FE3)";
50
- }, E = () => {
54
+ }, D = () => {
51
55
  n.value = !1, o.value = !1, t.value = "inset 0 0 0 1px var(--neutral-30, #687178)";
52
- }, I = () => {
56
+ }, E = () => {
53
57
  v.value = !0, t.value = "inset 0 0 0 1px var(--neutral-60, #687178)", n.value && (t.value = "0 0 0 2px var(--blue-70, #009FE3)");
54
- }, F = () => {
58
+ }, I = () => {
55
59
  v.value = !1, t.value = "inset 0 0 0 1px var(--neutral-30, #687178)", n.value && (t.value = "0 0 0 2px var(--blue-70, #009FE3)");
56
- }, D = () => {
60
+ }, F = () => {
57
61
  o.value && (t.value = "0 0 0 2px var(--blue-70, #009FE3)");
58
62
  }, g = () => {
59
63
  t.value = "inset 0 0 0 2px var(--Focused)";
@@ -69,19 +73,20 @@ const N = { class: "dpiV3_input-field V3-typography" }, R = { class: "dpiV3_Inpu
69
73
  buttonText: "löschen",
70
74
  onClick: w,
71
75
  tabindex: "0"
72
- })) : b("", !0)
76
+ })) : m("", !0)
73
77
  ])
74
78
  ]),
75
79
  a("div", {
76
- class: m(["dpiV3_Input", {
80
+ class: b(["dpiV3_Input", {
81
+ isDescription: e.isDescription,
77
82
  dpiV3_disabled: e.isDisabled,
78
83
  "error-state": e.showError && !s(o) && !s(p),
79
84
  "focused-error-state": e.showError && s(o),
80
85
  "filled-error-state": e.showError && s(p)
81
86
  }]),
82
- onMouseenter: I,
83
- onMouseleave: F,
84
- onMousedown: D,
87
+ onMouseenter: E,
88
+ onMouseleave: I,
89
+ onMousedown: F,
85
90
  style: C({ "box-shadow": s(t) })
86
91
  }, [
87
92
  S(a("textarea", {
@@ -89,14 +94,14 @@ const N = { class: "dpiV3_input-field V3-typography" }, R = { class: "dpiV3_Inpu
89
94
  ref: _,
90
95
  "onUpdate:modelValue": r[0] || (r[0] = (k) => u.value = k),
91
96
  type: "text",
92
- class: m(["dpiV3_textArea copy-large-regular", {
97
+ class: b(["dpiV3_textArea copy-large-regular", {
93
98
  "error-state": e.showError,
94
99
  dpiV3_input_disabled: e.isDisabled
95
100
  }]),
96
101
  disabled: e.isDisabled,
97
102
  placeholder: e.placeholder,
98
103
  onFocus: B,
99
- onBlur: E,
104
+ onBlur: D,
100
105
  onMousedown: g
101
106
  }, null, 42, q), [
102
107
  [A, u.value]
@@ -105,11 +110,11 @@ const N = { class: "dpiV3_input-field V3-typography" }, R = { class: "dpiV3_Inpu
105
110
  ]),
106
111
  e.hint && !e.showError ? (c(), x("div", G, r[1] || (r[1] = [
107
112
  a("span", null, "This is a supporting message.", -1)
108
- ]))) : b("", !0)
113
+ ]))) : m("", !0)
109
114
  ])
110
115
  ]));
111
116
  }
112
- }, Z = /* @__PURE__ */ z(H, [["__scopeId", "data-v-7248be35"]]);
117
+ }, Z = /* @__PURE__ */ z(H, [["__scopeId", "data-v-0ea4816f"]]);
113
118
  export {
114
119
  Z as default
115
120
  };
@@ -119,7 +119,7 @@ function K(e, s, T, V, v, z) {
119
119
  ])) : r("", !0)
120
120
  ], 16, k);
121
121
  }
122
- const L = /* @__PURE__ */ c(h, [["render", K], ["__scopeId", "data-v-5d413fe3"]]);
122
+ const L = /* @__PURE__ */ c(h, [["render", K], ["__scopeId", "data-v-cfbe885e"]]);
123
123
  export {
124
124
  L as default
125
125
  };