@piveau/dpi 0.1.0-beta.77 → 0.1.0-beta.79

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.
@@ -1,4 +1,4 @@
1
- import { ref as v, computed as c, watch as f, createElementBlock as o, openBlock as s, createElementVNode as r, createCommentVNode as b, unref as u, createTextVNode as _, createVNode as h, withCtx as B, createStaticVNode as L, Fragment as D, renderList as y, createBlock as k } from "vue";
1
+ import { ref as v, computed as c, watch as f, createElementBlock as o, openBlock as s, createElementVNode as r, createCommentVNode as _, unref as u, createTextVNode as h, createVNode as b, withCtx as B, createStaticVNode as L, Fragment as D, renderList as y, createBlock as k } from "vue";
2
2
  import { useAsyncState as N, useDebounce as U } from "@vueuse/core";
3
3
  import z from "axios";
4
4
  import "jquery";
@@ -33,14 +33,14 @@ const F = { class: "dpiV3_dpiHome V3-typography" }, K = { class: "dpiV3_homeHead
33
33
  message: "",
34
34
  confirm: () => null
35
35
  });
36
- const n = c(() => l.getters["auth/getUserDrafts"].sort((a, t) => (a.id ?? "").localeCompare(t.id ?? "", "de", { sensitivity: "base", numeric: !0 })));
37
- console.log(n);
36
+ const d = c(() => l.getters["auth/getUserDrafts"].sort((a, t) => (a.title.de ?? "").localeCompare(t.title.de ?? "", "de", { sensitivity: "base", numeric: !0 })));
37
+ console.log(d);
38
38
  const I = c(() => l.getters["auth/getUserData"]);
39
39
  c(() => I.value.rtpToken);
40
40
  const S = (a) => l.dispatch("snackbar/showSnackbar", a);
41
41
  async function w(a) {
42
42
  const t = a.map((i) => z.get(`${x.api.baseUrl}search?facets={%22catalog%22:[%22${i}%22]}&filters=dataset&includes=title,modified,id,description,catalog&limit=1000`));
43
- return (await Promise.all(t)).flatMap((i) => i.data.result.results).sort((i, d) => (i.id ?? "").localeCompare(d.id ?? "", "de", { sensitivity: "base", numeric: !0 }));
43
+ return (await Promise.all(t)).flatMap((i) => i.data.result.results).sort((i, n) => (i.title.de ?? "").localeCompare(n.title.de ?? "", "de", { sensitivity: "base", numeric: !0 }));
44
44
  }
45
45
  const {
46
46
  state: p,
@@ -61,15 +61,15 @@ const F = { class: "dpiV3_dpiHome V3-typography" }, K = { class: "dpiV3_homeHead
61
61
  return (a, t) => (s(), o("div", F, [
62
62
  r("div", K, [
63
63
  t[1] || (t[1] = r("h2", { class: "dpiV3_tableHeader" }, " Ihre Datensätze ", -1)),
64
- u(p).length === 0 && n.value.length === 0 ? (s(), o("p", M, t[0] || (t[0] = [
65
- _(" Willkommen im Data Provider Interface ✨ ", -1),
64
+ u(p).length === 0 && d.value.length === 0 ? (s(), o("p", M, t[0] || (t[0] = [
65
+ h(" Willkommen im Data Provider Interface ✨ ", -1),
66
66
  r("br", null, null, -1),
67
- _("Beginnen Sie mit der Erstellung Ihres ersten Datensatzes! ", -1)
68
- ]))) : b("", !0),
67
+ h("Beginnen Sie mit der Erstellung Ihres ersten Datensatzes! ", -1)
68
+ ]))) : _("", !0),
69
69
  r("div", j, [
70
- h(A, { to: { name: "DataProviderInterface-Input", query: { locale: "de", edit: !1 }, params: { property: "datasets" } } }, {
70
+ b(A, { to: { name: "DataProviderInterface-Input", query: { locale: "de", edit: !1 }, params: { property: "datasets" } } }, {
71
71
  default: B(() => [
72
- h($, {
72
+ b($, {
73
73
  "button-text": "Neuen Datensatz erstellen",
74
74
  size: "large"
75
75
  })
@@ -78,13 +78,13 @@ const F = { class: "dpiV3_dpiHome V3-typography" }, K = { class: "dpiV3_homeHead
78
78
  })
79
79
  ])
80
80
  ]),
81
- u(p).length > 0 || n.value.length > 0 ? (s(), o("div", G, [
81
+ u(p).length > 0 || d.value.length > 0 ? (s(), o("div", G, [
82
82
  u(C) ? (s(), o("div", J, t[2] || (t[2] = [
83
83
  r("p", null, "Lädt Daten...", -1)
84
84
  ]))) : (s(), o("div", O, [
85
- t[3] || (t[3] = L('<div class="dpiV3_tableHeadWrap" data-v-2cb4e971><div class="dpiV3_thWrap" data-v-2cb4e971><div scope="col" data-v-2cb4e971><span data-v-2cb4e971>Datensätze</span></div><div scope="col" class="dpiV3_statusHead" data-v-2cb4e971><span data-v-2cb4e971>Status</span></div></div><div class="dpiV3_blankCell" data-v-2cb4e971></div></div>', 1)),
85
+ t[3] || (t[3] = L('<div class="dpiV3_tableHeadWrap" data-v-73d6a7a0><div class="dpiV3_thWrap" data-v-73d6a7a0><div scope="col" data-v-73d6a7a0><span data-v-73d6a7a0>Datensätze</span></div><div scope="col" class="dpiV3_statusHead" data-v-73d6a7a0><span data-v-73d6a7a0>Status</span></div></div><div class="dpiV3_blankCell" data-v-73d6a7a0></div></div>', 1)),
86
86
  r("div", null, [
87
- (s(!0), o(D, null, y(n.value, (e) => (s(), k(V, {
87
+ (s(!0), o(D, null, y(d.value, (e) => (s(), k(V, {
88
88
  id: e.id,
89
89
  key: e.id,
90
90
  "data-cy": e,
@@ -95,20 +95,20 @@ const F = { class: "dpiV3_dpiHome V3-typography" }, K = { class: "dpiV3_homeHead
95
95
  dataset: e
96
96
  }, null, 8, ["id", "data-cy", "catalogue", "text", "date", "dataset"]))), 128)),
97
97
  (s(!0), o(D, null, y(u(p), (e, P) => {
98
- var i, d;
98
+ var i, n;
99
99
  return s(), k(V, {
100
100
  key: e.id,
101
- text: ((i = e.title) == null ? void 0 : i.de) || ((d = e.title) == null ? void 0 : d.en) || "Kein Titel in englisch oder deutsch vohanden",
101
+ text: ((i = e.title) == null ? void 0 : i.de) || ((n = e.title) == null ? void 0 : n.en) || "Kein Titel in englisch oder deutsch vohanden",
102
102
  date: e.modified ? new Date(e.modified).toDateString() : "-",
103
103
  dataset: e
104
104
  }, null, 8, ["text", "date", "dataset"]);
105
105
  }), 128))
106
106
  ])
107
107
  ]))
108
- ])) : b("", !0)
108
+ ])) : _("", !0)
109
109
  ]));
110
110
  }
111
- }, ce = /* @__PURE__ */ q(Q, [["__scopeId", "data-v-2cb4e971"]]);
111
+ }, ce = /* @__PURE__ */ q(Q, [["__scopeId", "data-v-73d6a7a0"]]);
112
112
  export {
113
113
  ce as default
114
114
  };