@piveau/dpi 0.1.0-beta.7 → 0.1.0-beta.70

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 (62) 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/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
  4. package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
  5. package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +88 -68
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +101 -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 +11 -11
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +444 -355
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +64 -28
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +108 -74
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  16. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +122 -85
  17. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  18. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
  19. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
  20. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +110 -52
  21. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
  22. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  23. package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
  24. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
  25. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +566 -207
  26. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
  27. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +43 -89
  28. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +329 -100
  29. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +43 -26
  30. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -38
  31. package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +181 -107
  32. package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
  33. package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
  34. package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  35. package/dist/data-provider-interface/components/ContactPage.vue.js +148 -100
  36. package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
  37. package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
  38. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +950 -833
  39. package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
  40. package/dist/data-provider-interface/components/HVDPage.vue.js +107 -85
  41. package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
  42. package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
  43. package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
  44. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +314 -260
  45. package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
  46. package/dist/data-provider-interface/components/TempResPageInModal.vue.js +392 -0
  47. package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
  48. package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
  49. package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
  50. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
  51. package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
  52. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +477 -96
  53. package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
  54. package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +9 -2
  55. package/dist/data-provider-interface/store/modules/authStore.js +11 -11
  56. package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
  57. package/dist/data-provider-interface/views/InputPage.vue.js +389 -760
  58. package/dist/styles/_dpi.scss +1614 -0
  59. package/dist/styles/_maps.scss +24 -0
  60. package/dist/styles/_variables.scss +973 -0
  61. package/package.json +28 -19
  62. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
@@ -1,53 +1,84 @@
1
- import { ref as o, createElementBlock as g, openBlock as b, Fragment as h, createElementVNode as s, createVNode as n, unref as d, toDisplayString as V, getCurrentInstance as w } from "vue";
2
- import _ from "../SwitchV3.vue.js";
3
- import y from "../Dropdown.vue.js";
4
- import { getHvdCategories as S } from "../../services/dpiV3_apis.js";
5
- import "@formkit/core";
6
- import { useFormValues as C } from "../../../composables/useDpiFormValues.js";
1
+ import { ref as s, onMounted as V, createElementBlock as _, openBlock as p, Fragment as y, createElementVNode as f, createVNode as D, createBlock as w, toDisplayString as S, getCurrentInstance as C } from "vue";
2
+ import k 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";
7
6
  /* empty css */
8
- const D = { class: "dpiV3_findabilitySwitchWrapper" }, k = { class: "dpiV3_Switch_Label copy-large-semi-bold" }, W = {
7
+ const I = { class: "dpiV3_findabilitySwitchWrapper" }, P = { class: "dpiV3_Switch_Label copy-large-semi-bold" }, W = {
9
8
  __name: "HVDSwitch",
10
9
  props: {
11
10
  context: Object
12
11
  },
13
- setup(H) {
14
- const { formValues: c } = C(), l = o(!1);
15
- let i = o([{ isValid: !0 }]);
16
- const r = o([]), p = o([]), u = (e) => {
17
- i.value[0].isValid = !1, l.value = !e, console.log(l);
18
- }, f = async () => {
12
+ setup(T) {
13
+ const { formValues: o } = x(), r = s(!1), u = s(0), d = s("");
14
+ s([{ isValid: !0 }]);
15
+ const i = s([]), v = s([]), b = (e) => {
16
+ if (r.value = e, !e) {
17
+ d.value = "";
18
+ const l = o.value.Discoverability;
19
+ l[Object.keys(l)[1]] = [{ isValid: !1 }], i.value.forEach((a) => a.selected = !1);
20
+ }
21
+ }, h = async () => {
19
22
  try {
20
- const e = w().appContext.app.config.globalProperties.$env, t = await S(e.api.baseUrl);
21
- p.value = t, r.value = t.map((a) => ({
22
- label: a.pref_label.de,
23
- uri: a.resource,
24
- "@value": a.pref_label.de,
23
+ const e = C().appContext.app.config.globalProperties.$env, a = (await H(e.api.baseUrl)).sort(
24
+ (t, n) => t.pref_label.de.localeCompare(n.pref_label.de, "de")
25
+ );
26
+ v.value = a, i.value = a.map((t) => ({
27
+ label: t.pref_label.de,
28
+ uri: t.resource,
29
+ "@value": t.pref_label.de,
25
30
  selected: !1
26
- // oder eine andere Eigenschaft, die du binden möchtest
27
- }));
31
+ })), m();
28
32
  } catch (e) {
29
- console.error("Error in component:", e), error.value = e;
33
+ console.error("Error in component:", e);
34
+ }
35
+ }, m = () => {
36
+ var l, a, t;
37
+ const e = (t = (a = (l = o.value) == null ? void 0 : l.Discoverability) == null ? void 0 : a.hvdPage) == null ? void 0 : t[0];
38
+ if (e && e.isValid && e.label) {
39
+ r.value = !0;
40
+ const n = i.value.find(
41
+ (c) => c.label === e.label || c.uri === e.uri
42
+ );
43
+ n && (i.value.forEach((c) => c.selected = !1), n.selected = !0, d.value = n.label), u.value++;
44
+ }
45
+ }, g = (e) => {
46
+ const l = i.value.find(
47
+ (a) => a.label === e.target.innerHTML
48
+ );
49
+ if (l) {
50
+ o.value.DistributionSimple.hvdNotation === void 0 && (o.value.DistributionSimple.hvdNotation = {}), o.value.DistributionSimple.hvdNotation = {
51
+ hvdUri: l.uri
52
+ }, d.value = l.label;
53
+ const a = o.value.Discoverability;
54
+ a[Object.keys(a)[1]] = [
55
+ {
56
+ isValid: !0,
57
+ label: l.label,
58
+ uri: l.uri
59
+ }
60
+ ];
30
61
  }
31
- }, m = (e) => {
32
- const t = r.value.find((v) => v.label === e.target.innerHTML), a = c.value.Discoverability;
33
- a[Object.keys(a)[1]] = [{ isValid: !0, label: t.label, uri: t.uri }];
34
62
  };
35
- return f(), (e, t) => (b(), g(h, null, [
36
- s("div", D, [
37
- n(_, {
38
- onSwitchToggled: t[0] || (t[0] = (a) => d(i)[0].isValid === !0 ? u(l.value) : (d(i)[0].isValid = !0, l.value = !l.value)),
63
+ return V(() => {
64
+ h();
65
+ }), (e, l) => (p(), _(y, null, [
66
+ f("div", I, [
67
+ (p(), w(k, {
68
+ onSwitchToggled: b,
39
69
  hasIcon: !1,
40
- defaultChecked: !1,
41
- disabled: !1
42
- }),
43
- s("div", k, V(e.$t("message.dataupload.datasets.hvdPage.switch-label")), 1)
70
+ defaultChecked: r.value,
71
+ disabled: !1,
72
+ key: u.value
73
+ }, null, 8, ["defaultChecked"])),
74
+ f("div", P, S(e.$t("message.dataupload.datasets.hvdPage.switch-label")), 1)
44
75
  ]),
45
- n(y, {
76
+ D(F, {
46
77
  dropdownWidth: "large",
47
- isDisabled: !l.value,
78
+ isDisabled: !r.value,
48
79
  type: "inputField",
49
80
  inputFieldProps: {
50
- isDisabled: !l.value,
81
+ isDisabled: !r.value,
51
82
  addOnText: !1,
52
83
  initialHintText: !1,
53
84
  datePicker: !1,
@@ -58,9 +89,10 @@ const D = { class: "dpiV3_findabilitySwitchWrapper" }, k = { class: "dpiV3_Switc
58
89
  placeholder: "Wählen Sie eine HVD-Kategorie",
59
90
  inputFieldSize: "large"
60
91
  },
61
- data: r.value,
62
- onClick: t[1] || (t[1] = (a) => m(a))
63
- }, null, 8, ["isDisabled", "inputFieldProps", "data"])
92
+ data: i.value,
93
+ modelValue: d.value,
94
+ onClick: l[0] || (l[0] = (a) => g(a))
95
+ }, null, 8, ["isDisabled", "inputFieldProps", "data", "modelValue"])
64
96
  ], 64));
65
97
  }
66
98
  };
@@ -1,15 +1,17 @@
1
- import { ref as u, watch as $, createElementBlock as N, openBlock as c, Fragment as H, createElementVNode as o, createBlock as m, createCommentVNode as g, withKeys as v, normalizeClass as L, withModifiers as b, unref as n, toDisplayString as x, isRef as T } from "vue";
2
- import _ from "./StateTag.vue.js";
3
- import j from "./Dropdown.vue.js";
4
- import q from "./ModalSimpleV3.vue.js";
5
- import F from "./Toast.vue.js";
6
- import { useStore as J } from "vuex";
7
- import { useRouter as O } from "vue-router";
8
- import { useDpiUtils as W } 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 G from "../../../_virtual/_plugin-vue_export-helper.js";
11
- import { useDpiContext as S } from "../../composables/useDpiContext.js";
12
- const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescContainer" }, X = { class: "dpiV3_dsDesc" }, Y = { class: "dpiV3_TableRowStatus" }, Z = { class: "dpiV3_TableRowUpdated" }, ee = { class: "dpiV3_TableRowButtonWrap" }, te = {
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 = {
13
15
  __name: "TableRowV3",
14
16
  props: {
15
17
  text: {
@@ -28,31 +30,84 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
28
30
  catalogue: String,
29
31
  dataset: Object
30
32
  },
31
- setup(z) {
32
- const h = J();
33
- O();
34
- let r = u(!1), l = u(!1), f = u(!1), i = u({}), d = u({}), D = u({ edit: { fromDraft: !1 } });
35
- S() && (D = S());
36
- const s = z, { toEditMode: R } = W(), B = () => {
37
- const t = s.draft, e = s.catalogue, a = s.id || s.dataset.id || s.catalogue.id;
38
- R({ id: a, catalogId: e, isDraft: t, locale: "de" });
39
- }, C = (t, e, a, U) => {
40
- console.log(s.dataset), h.dispatch("auth/putDatasetToDraft", { id: t, catalog: e, title: a, description: U });
41
- }, M = (t, e) => {
42
- h.dispatch("auth/deleteUserDraftById", { id: t, catalog: e });
43
- }, E = (t, e) => {
44
- h.dispatch("auth/publishUserDraftById", { id: t, catalog: e });
45
- }, I = () => {
46
- f.value = !1, setTimeout(() => {
47
- 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;
48
103
  }, 2e3);
49
104
  };
50
- $(l, (t) => {
51
- t && setTimeout(() => {
52
- f.value || (l.value = !1);
105
+ Q(s, (n) => {
106
+ n && setTimeout(() => {
107
+ r.value || (s.value = !1);
53
108
  }, 2e3);
54
109
  });
55
- const A = () => s.draft ? [
110
+ const q = () => t.draft ? [
56
111
  { "@value": "Bearbeiten", selected: !1 },
57
112
  { "@value": "Veröffentlichen", selected: !1 },
58
113
  { "@value": "Löschen", selected: !1 }
@@ -60,10 +115,10 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
60
115
  { "@value": "Bearbeiten", selected: !1 },
61
116
  { "@value": "Veröffentlichung aufheben", selected: !1 },
62
117
  { "@value": "Löschen", selected: !1 }
63
- ], K = (t) => {
64
- switch (t) {
118
+ ], F = (n) => {
119
+ switch (n) {
65
120
  case "publishDataset":
66
- E(s.id, s.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 = {
67
122
  type: "success",
68
123
  text: "Der Datensatz wurde veröffentlicht",
69
124
  button: "Ansehen",
@@ -71,140 +126,159 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
71
126
  };
72
127
  break;
73
128
  case "deleteDataset":
74
- M(s.id, s.catalogue), l.value = !0, d.value = {
75
- type: "success",
76
- text: "Der Datensatz wurde erfolgreich gelöscht",
77
- button: "Rückgängig machen",
78
- action: "revertDeletion"
79
- };
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
+ })();
80
145
  break;
81
146
  case "setToDraft":
82
- C(
83
- s.dataset.id,
84
- s.dataset.catalog.id,
85
- s.dataset.title,
86
- s.dataset.description
87
- ), 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 = {
88
153
  type: "success",
89
154
  text: "Der Datensatz wurde erfolgreich zu einem Entwurf zurückgesetzt",
90
155
  button: "Rückgängig machen",
91
156
  action: "revertToDraft"
92
157
  };
93
158
  }
94
- }, w = (t) => {
159
+ }, B = (n) => {
95
160
  let e = "";
96
- 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) {
97
162
  case "Bearbeiten":
98
- B();
163
+ H();
99
164
  break;
100
165
  case "Veröffentlichen":
101
- i.value = {
166
+ c.value = {
102
167
  button: "Veröffentlichen",
103
168
  header: "Datensatz veröffentlichen",
104
169
  text: "Sind Sie sicher, dass Sie diesen Datensatz veröffentlichen möchten?",
105
170
  action: "publishDataset"
106
- }, r.value = !0;
171
+ }, u.value = !0;
107
172
  break;
108
173
  case "Löschen":
109
- i.value = {
174
+ c.value = {
110
175
  button: "Ja, löschen",
111
176
  header: "Datensatz endgültig löschen",
112
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.",
113
178
  action: "deleteDataset"
114
- }, 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;
115
188
  break;
116
189
  case "Veröffentlichung aufheben":
117
- i.value = {
190
+ c.value = {
118
191
  button: "Ja",
119
192
  header: "Veröffentlichung aufheben",
120
193
  text: "Sind Sie sicher, dass Sie diesen Datensatz zu einem Entwurf zurücksetzen möchten?",
121
194
  action: "setToDraft"
122
- }, r.value = !0;
195
+ }, u.value = !0;
123
196
  break;
124
197
  }
125
198
  };
126
- let p = u(!1);
127
- const V = (t, e) => {
128
- e ? p.value = !0 : p.value = !1;
129
- }, k = (t) => {
130
- t.target.className != "dpiV3_more-button dpiV3_activeState" && (p.value = !0);
131
- }, y = (t) => {
132
- t.target.className != "dpiV3_more-button dpiV3_activeState" && (p.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);
133
206
  };
134
- return (t, e) => (c(), N(H, null, [
135
- o("button", {
136
- class: L(["dpiV3_tableRowWrapper", {
137
- dpiV3_pressedTableRow: n(p),
138
- tRowInDraft: s.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
139
212
  }]),
140
213
  onKeydown: [
141
- e[3] || (e[3] = v(b((a) => k(a), ["prevent"]), ["space"])),
142
- e[4] || (e[4] = v(b((a) => k(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"]))
143
216
  ],
144
217
  onKeyup: [
145
- e[5] || (e[5] = v((a) => y(a), ["space"])),
146
- e[6] || (e[6] = v((a) => y(a), ["enter"]))
218
+ e[5] || (e[5] = b((a) => _(a), ["space"])),
219
+ e[6] || (e[6] = b((a) => _(a), ["enter"]))
147
220
  ]
148
221
  }, [
149
- o("div", P, [
150
- o("div", {
222
+ f("div", ce, [
223
+ f("div", {
151
224
  class: "dpiV3_tableRowContent",
152
- onMousedown: e[0] || (e[0] = b((a) => V(a, !0), ["prevent"])),
153
- onMouseup: e[1] || (e[1] = b((a) => V(a, !1), ["prevent"])),
154
- onClick: e[2] || (e[2] = (a) => w("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"))
155
228
  }, [
156
- o("div", Q, [
157
- o("span", X, x(s.text), 1)
229
+ f("div", de, [
230
+ f("span", fe, ee(t.text), 1)
158
231
  ]),
159
- o("div", Y, [
160
- s.draft ? (c(), m(_, {
232
+ f("div", ve, [
233
+ t.draft ? (p(), h(E, {
161
234
  key: 1,
162
235
  label: "Entwurf",
163
236
  state: "draft"
164
- })) : (c(), m(_, {
237
+ })) : (p(), h(E, {
165
238
  key: 0,
166
239
  label: "Veröffentlicht",
167
240
  state: "published"
168
- })),
169
- o("span", Z, " Updated am: " + x(s.date), 1)
241
+ }))
170
242
  ])
171
243
  ], 32),
172
- o("div", ee, [
173
- n(D).edit.fromDraft ? g("", !0) : (c(), m(j, {
244
+ f("div", pe, [
245
+ o(V).edit.enabled ? x("", !0) : (p(), h(te, {
174
246
  key: 0,
175
- onClick: w,
247
+ onClick: B,
176
248
  type: "moreButton",
249
+ notDraft: !t.draft,
177
250
  alignment: "right",
178
251
  text: {
179
252
  support: "This is a supporting message"
180
253
  },
181
- data: A()
182
- }, null, 8, ["data"]))
254
+ data: q()
255
+ }, null, 8, ["notDraft", "data"]))
183
256
  ])
184
257
  ])
185
258
  ], 34),
186
- n(r) ? (c(), m(q, {
259
+ o(u) ? (p(), h(ae, {
187
260
  key: 0,
188
- buttons: n(i).button,
189
- headerText: n(i).header,
190
- text: n(i).text,
191
- onClose: e[7] || (e[7] = (a) => T(r) ? r.value = !1 : r = !1),
192
- action: n(i).action,
193
- onActionHandling: e[8] || (e[8] = (a) => K(a))
194
- }, null, 8, ["buttons", "headerText", "text", "action"])) : g("", !0),
195
- n(l) ? (c(), m(F, {
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, {
196
269
  key: 1,
197
- type: n(d).type,
198
- text: n(d).text,
270
+ type: o(i).type,
271
+ text: o(i).text,
199
272
  class: "dpiV3_tableToast",
200
- button: n(d).button,
201
- action: n(d).action,
202
- onMouseenter: e[9] || (e[9] = (a) => T(f) ? f.value = !0 : f = !0),
203
- onMouseleave: I
204
- }, null, 8, ["type", "text", "button", "action"])) : g("", !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)
205
279
  ], 64));
206
280
  }
207
- }, pe = /* @__PURE__ */ G(te, [["__scopeId", "data-v-6f8807e5"]]);
281
+ }, Be = /* @__PURE__ */ ue(ge, [["__scopeId", "data-v-0fa9244e"]]);
208
282
  export {
209
- pe as default
283
+ Be as default
210
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
  };