@piveau/dpi 0.1.0-beta.87 → 0.1.0-beta.89

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,16 +1,16 @@
1
- import w from "axios";
1
+ import I from "axios";
2
2
  import u from "jquery";
3
3
  import "lodash-es";
4
- import { mapActions as k, mapGetters as y } from "vuex";
5
- import A from "./components/Dropup.vue.js";
6
- import { useWindowScroll as T } from "@vueuse/core";
7
- import { resolveComponent as $, createElementBlock as m, openBlock as d, createCommentVNode as b, createVNode as p, createElementVNode as l, toDisplayString as c, withCtx as h, createTextVNode as g, Fragment as C, renderList as P, createBlock as v, resolveDynamicComponent as U, normalizeClass as q, renderSlot as O } from "vue";
4
+ import { mapActions as $, mapGetters as k } from "vuex";
5
+ import w from "./components/Dropup.vue.js";
6
+ import { useWindowScroll as A } from "@vueuse/core";
7
+ import { resolveComponent as y, createElementBlock as c, openBlock as d, createCommentVNode as b, createElementVNode as n, toDisplayString as m, createVNode as D, withCtx as h, createTextVNode as g, Fragment as C, renderList as P, createBlock as v, resolveDynamicComponent as T, normalizeClass as U, renderSlot as q } from "vue";
8
8
  /* empty css */
9
- import L from "../_virtual/_plugin-vue_export-helper.js";
10
- const z = {
9
+ import O from "../_virtual/_plugin-vue_export-helper.js";
10
+ const L = {
11
11
  name: "DPI-menu",
12
12
  components: {
13
- Dropup: A
13
+ Dropup: w
14
14
  },
15
15
  props: {},
16
16
  data() {
@@ -29,20 +29,20 @@ const z = {
29
29
  setup() {
30
30
  return {
31
31
  scrollToTop: () => {
32
- let { x: t, y: o } = T({ behavior: "smooth" });
33
- o.value = 0;
32
+ let { x: t, y: r } = A({ behavior: "smooth" });
33
+ r.value = 0;
34
34
  }
35
35
  };
36
36
  },
37
37
  computed: {
38
- ...y("datasetDetails", [
38
+ ...k("datasetDetails", [
39
39
  "getCatalog",
40
40
  "getID",
41
41
  "getLoading",
42
42
  "getTitle",
43
43
  "getDescription"
44
44
  ]),
45
- ...y("auth", ["getUserData"]),
45
+ ...k("auth", ["getUserData"]),
46
46
  menuGroups() {
47
47
  return [
48
48
  {
@@ -219,8 +219,8 @@ const z = {
219
219
  if (this.getLoading) return !1;
220
220
  const e = this.$route.name === "DatasetDetailsDataset";
221
221
  if (!e) return !1;
222
- const t = e && this.$route.params.ds_id, o = this.getUserData && this.getUserData.permissions, s = this.getCatalog && this.getCatalog.id;
223
- return o.find(
222
+ const t = e && this.$route.params.ds_id, r = this.getUserData && this.getUserData.permissions, s = this.getCatalog && this.getCatalog.id;
223
+ return r.find(
224
224
  (i) => i.rsname === s
225
225
  ) && e && t === this.getID;
226
226
  },
@@ -231,8 +231,8 @@ const z = {
231
231
  }
232
232
  },
233
233
  methods: {
234
- ...k("auth", ["updateUserData"]),
235
- ...k("snackbar", ["showSnackbar"]),
234
+ ...$("auth", ["updateUserData"]),
235
+ ...$("snackbar", ["showSnackbar"]),
236
236
  setupKeycloakWatcher() {
237
237
  this.$keycloak && this.$keycloak.authenticated && (this.$watch(
238
238
  "$keycloak.token",
@@ -240,8 +240,8 @@ const z = {
240
240
  if (!e) return;
241
241
  let t = this.$keycloak.rtpToken;
242
242
  if (!t) {
243
- const o = this.$keycloak.getRtpToken;
244
- o && (t = await o({ autoRefresh: !0 }));
243
+ const r = this.$keycloak.getRtpToken;
244
+ r && (t = await r());
245
245
  }
246
246
  this.updateUserData({
247
247
  authToken: e,
@@ -251,18 +251,18 @@ const z = {
251
251
  },
252
252
  { immediate: !0 }
253
253
  ), this.$watch("$keycloak.rtpToken", (e) => {
254
- e && this.updateUserData({
254
+ e && (!e || e === oldRtpToken || this.updateUserData({
255
255
  authToken: this.$keycloak.token,
256
256
  rtpToken: e,
257
257
  hubUrl: this.$env.api.hubUrl
258
- });
258
+ }));
259
259
  }));
260
260
  },
261
- async handleConfirm(e, t, { successMessage: o, errorMessage: s }) {
261
+ async handleConfirm(e, t, { successMessage: r, errorMessage: s }) {
262
262
  this.modal.loading = !0;
263
263
  try {
264
264
  this.$Progress.start(), await new Promise((a) => setTimeout(a, 250)), this.$Progress.set(25), await this.$store.dispatch(e, t), this.showSnackbar({
265
- message: o,
265
+ message: r,
266
266
  variant: "success"
267
267
  }), await new Promise((a) => setTimeout(a, 250)), this.$Progress.finish();
268
268
  } catch (a) {
@@ -275,21 +275,21 @@ const z = {
275
275
  confirm: "Okay",
276
276
  confirmHandler: () => u("#modal").modal("hide")
277
277
  }, console.log(a.response.data);
278
- let r = typeof s == "string" && s;
279
- r = typeof s == "function" && s(a), r = typeof s == "object" && s.prefix + " - " + a.response.data, console.log(s);
280
- const f = r || i || a.message || "An error occurred";
278
+ let o = typeof s == "string" && s;
279
+ o = typeof s == "function" && s(a), o = typeof s == "object" && s.prefix + " - " + a.response.data, console.log(s);
280
+ const p = o || i || a.message || "An error occurred";
281
281
  this.showSnackbar({
282
- message: f,
282
+ message: p,
283
283
  variant: "error"
284
284
  });
285
285
  } finally {
286
286
  this.modal.loading = !1, u("#modal").modal("hide");
287
287
  }
288
288
  },
289
- async handleRegisterDoi({ id: e, catalog: t, type: o = "eu-ra-doi" }) {
289
+ async handleRegisterDoi({ id: e, catalog: t, type: r = "eu-ra-doi" }) {
290
290
  await this.handleConfirm(
291
291
  "auth/createPersistentIdentifier",
292
- { id: e, catalog: t, type: o },
292
+ { id: e, catalog: t, type: r },
293
293
  {
294
294
  successMessage: this.$te("message.snackbar.doiRegistration.success") ? this.$t("message.snackbar.doiRegistration.success") : "Successfully registered DOI",
295
295
  errorMessage: {
@@ -298,13 +298,13 @@ const z = {
298
298
  }
299
299
  );
300
300
  },
301
- async handleMarkAsDraft({ id: e, catalog: t, title: o, description: s }) {
301
+ async handleMarkAsDraft({ id: e, catalog: t, title: r, description: s }) {
302
302
  await this.handleConfirm(
303
303
  "auth/putDatasetToDraft",
304
304
  {
305
305
  id: e,
306
306
  catalog: t,
307
- title: o,
307
+ title: r,
308
308
  description: s
309
309
  },
310
310
  {
@@ -319,20 +319,20 @@ const z = {
319
319
  }).catch(() => {
320
320
  });
321
321
  },
322
- async handleDelete({ id: e, property: t, catalog: o }) {
322
+ async handleDelete({ id: e, property: t, catalog: r }) {
323
323
  var s, a;
324
324
  this.modal.loading = !0, this.$Progress.start();
325
325
  try {
326
326
  let i;
327
- t === "datasets" ? i = `${this.$env.api.hubUrl}datasets/${e}?useNormalizedId=true&catalogue=${o}` : t === "catalogues" && (i = `${this.$env.api.hubUrl}catalogues/${e}`), await w.delete(i, {
327
+ t === "datasets" ? i = `${this.$env.api.hubUrl}datasets/${e}?useNormalizedId=true&catalogue=${r}` : t === "catalogues" && (i = `${this.$env.api.hubUrl}catalogues/${e}`), await I.delete(i, {
328
328
  headers: {
329
329
  "Content-Type": "text/turtle",
330
330
  Authorization: `Bearer ${this.getUserData.rtpToken}`
331
331
  }
332
332
  });
333
- let r;
334
- t === "datasets" ? r = this.$te("message.snackbar.deleteDataset.success") ? this.$t("message.snackbar.deleteDataset.success") : "Dataset successfully deleted" : t === "catalogues" && (r = this.$te("message.snackbar.deleteCatalog.success") ? this.$t("message.snackbar.deleteCatalog.success") : "Catalog successfully deleted"), this.showSnackbar({
335
- message: r,
333
+ let o;
334
+ t === "datasets" ? o = this.$te("message.snackbar.deleteDataset.success") ? this.$t("message.snackbar.deleteDataset.success") : "Dataset successfully deleted" : t === "catalogues" && (o = this.$te("message.snackbar.deleteCatalog.success") ? this.$t("message.snackbar.deleteCatalog.success") : "Catalog successfully deleted"), this.showSnackbar({
335
+ message: o,
336
336
  variant: "success"
337
337
  }), this.$Progress.finish(), this.$router.push({
338
338
  name: "Datasets",
@@ -341,9 +341,9 @@ const z = {
341
341
  });
342
342
  } catch (i) {
343
343
  this.$Progress.fail();
344
- let r;
345
- t === "datasets" ? r = this.$te("message.snackbar.deleteDataset.error") ? this.$t("message.snackbar.deleteDataset.error") : "Failed to delete dataset" : t === "catalogues" && (r = this.$te("message.snackbar.deleteCatalog.error") ? this.$t("message.snackbar.deleteCatalog.error") : "Failed to delete catalog"), this.showSnackbar({
346
- message: `${r}${(s = i.response) != null && s.data ? ` — ${(a = i.response) == null ? void 0 : a.data}` : i.message}`,
344
+ let o;
345
+ t === "datasets" ? o = this.$te("message.snackbar.deleteDataset.error") ? this.$t("message.snackbar.deleteDataset.error") : "Failed to delete dataset" : t === "catalogues" && (o = this.$te("message.snackbar.deleteCatalog.error") ? this.$t("message.snackbar.deleteCatalog.error") : "Failed to delete catalog"), this.showSnackbar({
346
+ message: `${o}${(s = i.response) != null && s.data ? ` — ${(a = i.response) == null ? void 0 : a.data}` : i.message}`,
347
347
  variant: "error"
348
348
  });
349
349
  } finally {
@@ -354,25 +354,25 @@ const z = {
354
354
  created() {
355
355
  this.setupKeycloakWatcher();
356
356
  }
357
- }, S = {
357
+ }, z = {
358
358
  id: "navWrapper",
359
359
  "data-cy": "dpi-menu"
360
- }, H = { key: 0 }, M = { class: "text-white" }, N = { class: "btn btn-default" }, R = { class: "btn btn-default" }, E = { style: { "margin-top": "1%" } }, x = { class: "btn-group dropup" }, F = {
360
+ }, S = { key: 0 }, H = { class: "text-white" }, N = { class: "btn btn-default" }, E = { class: "btn btn-default" }, M = { style: { "margin-top": "1%" } }, x = { class: "btn-group dropup" }, F = {
361
361
  key: 0,
362
362
  class: "logoutWrap"
363
- }, W = { class: "text-white" }, B = {
363
+ }, R = { class: "text-white" }, W = {
364
364
  type: "button",
365
365
  class: "btn btn-default logout"
366
366
  };
367
- function G(e, t, o, s, a, i) {
368
- const r = $("router-link"), f = $("dropup"), _ = $("app-confirmation-dialog");
369
- return d(), m("div", S, [
370
- a.visible ? (d(), m("nav", H, [
371
- l("div", null, [
372
- l("h4", M, c(e.$t("message.dataupload.menu.dpi")), 1)
367
+ function B(e, t, r, s, a, i) {
368
+ const o = y("router-link"), p = y("dropup");
369
+ return d(), c("div", z, [
370
+ a.visible ? (d(), c("nav", S, [
371
+ n("div", null, [
372
+ n("h4", H, m(e.$t("message.dataupload.menu.dpi")), 1)
373
373
  ]),
374
- l("button", N, [
375
- p(r, { to: { name: "DPI-Home-HappyFlow" } }, {
374
+ n("button", N, [
375
+ D(o, { to: { name: "DPI-Home-HappyFlow" } }, {
376
376
  default: h(() => t[1] || (t[1] = [
377
377
  g("DPI Home", -1)
378
378
  ])),
@@ -380,8 +380,8 @@ function G(e, t, o, s, a, i) {
380
380
  __: [1]
381
381
  })
382
382
  ]),
383
- l("button", R, [
384
- p(r, { to: { name: "DPI-Comp-Lib" } }, {
383
+ n("button", E, [
384
+ D(o, { to: { name: "DPI-Comp-Lib" } }, {
385
385
  default: h(() => t[2] || (t[2] = [
386
386
  g("Component Library", -1)
387
387
  ])),
@@ -389,32 +389,32 @@ function G(e, t, o, s, a, i) {
389
389
  __: [2]
390
390
  })
391
391
  ]),
392
- l("div", E, [
393
- (d(!0), m(C, null, P(i.menuGroups, (n, D) => (d(), v(f, {
394
- key: `Group${D}`,
395
- groupName: n.group,
396
- groupItems: n.items,
397
- show: e.$env.content.dataProviderInterface.buttons[n.group],
392
+ n("div", M, [
393
+ (d(!0), c(C, null, P(i.menuGroups, (l, f) => (d(), v(p, {
394
+ key: `Group${f}`,
395
+ groupName: l.group,
396
+ groupItems: l.items,
397
+ show: e.$env.content.dataProviderInterface.buttons[l.group],
398
398
  isOperator: e.getUserData.roles.includes("operator"),
399
- isCatalog: n.group === "Catalogue"
399
+ isCatalog: l.group === "Catalogue"
400
400
  }, null, 8, ["groupName", "groupItems", "show", "isOperator", "isCatalog"]))), 128)),
401
- l("ul", null, [
402
- l("div", x, [
403
- (d(!0), m(C, null, P(i.menuItems, (n, D) => (d(), m("li", {
404
- key: `Menu${D}`
401
+ n("ul", null, [
402
+ n("div", x, [
403
+ (d(!0), c(C, null, P(i.menuItems, (l, f) => (d(), c("li", {
404
+ key: `Menu${f}`
405
405
  }, [
406
- l("button", {
406
+ n("button", {
407
407
  type: "button",
408
408
  class: "btn btn-link",
409
- onClick: t[0] || (t[0] = (I) => s.scrollToTop())
409
+ onClick: t[0] || (t[0] = (_) => s.scrollToTop())
410
410
  }, [
411
- (d(), v(U(n.handler ? "button" : "router-link"), {
412
- class: q({ disabled: n.disabled }),
413
- to: n.to,
414
- onClick: (I) => n.handler ? n.handler() : null
411
+ (d(), v(T(l.handler ? "button" : "router-link"), {
412
+ class: U({ disabled: l.disabled }),
413
+ to: l.to,
414
+ onClick: (_) => l.handler ? l.handler() : null
415
415
  }, {
416
416
  default: h(() => [
417
- g(c(n.handler) + " " + c(n.name), 1)
417
+ g(m(l.handler) + " " + m(l.name), 1)
418
418
  ]),
419
419
  _: 2
420
420
  }, 1032, ["class", "to", "onClick"]))
@@ -423,35 +423,24 @@ function G(e, t, o, s, a, i) {
423
423
  ])
424
424
  ])
425
425
  ]),
426
- e.getUserData.userName ? (d(), m("div", F, [
427
- O(e.$slots, "right", { getUserData: e.getUserData }, () => [
428
- l("small", W, c(e.$t("message.dataupload.menu.loggedInAs")) + " " + c(e.getUserData.userName), 1),
429
- t[3] || (t[3] = l("br", null, null, -1)),
430
- l("button", B, [
431
- p(r, { to: { name: "Logout" } }, {
426
+ e.getUserData.userName ? (d(), c("div", F, [
427
+ q(e.$slots, "right", { getUserData: e.getUserData }, () => [
428
+ n("small", R, m(e.$t("message.dataupload.menu.loggedInAs")) + " " + m(e.getUserData.userName), 1),
429
+ t[3] || (t[3] = n("br", null, null, -1)),
430
+ n("button", W, [
431
+ D(o, { to: { name: "Logout" } }, {
432
432
  default: h(() => [
433
- g(c(e.$t("message.dataupload.menu.logout")), 1)
433
+ g(m(e.$t("message.dataupload.menu.logout")), 1)
434
434
  ]),
435
435
  _: 1
436
436
  })
437
437
  ])
438
438
  ], !0)
439
439
  ])) : b("", !0)
440
- ])) : b("", !0),
441
- p(_, {
442
- id: "DPIMenuModal",
443
- loading: a.modal.loading,
444
- confirm: a.modal.confirm,
445
- onConfirm: a.modal.confirmHandler
446
- }, {
447
- default: h(() => [
448
- g(c(a.modal.message), 1)
449
- ]),
450
- _: 1
451
- }, 8, ["loading", "confirm", "onConfirm"])
440
+ ])) : b("", !0)
452
441
  ]);
453
442
  }
454
- const te = /* @__PURE__ */ L(z, [["render", G], ["__scopeId", "data-v-145c074e"]]);
443
+ const ee = /* @__PURE__ */ O(L, [["render", B], ["__scopeId", "data-v-dbc97d41"]]);
455
444
  export {
456
- te as default
445
+ ee as default
457
446
  };
@@ -1,111 +1,100 @@
1
- import { computed as r, ref as D, watch as y, createElementBlock as i, openBlock as s, createElementVNode as l, createCommentVNode as k, unref as u, createTextVNode as V, createVNode as x, withCtx as U, createStaticVNode as z, Fragment as I, renderList as S, createBlock as w } from "vue";
2
- import { useAsyncState as R, useDebounce as E } from "@vueuse/core";
3
- import W from "axios";
1
+ import { computed as n, ref as V, watch as x, createElementBlock as r, openBlock as i, createElementVNode as l, createCommentVNode as I, unref as m, createTextVNode as S, createVNode as w, withCtx as A, createStaticVNode as E, Fragment as B, renderList as H, createBlock as T } from "vue";
2
+ import { useAsyncState as W, useDebounce as $ } from "@vueuse/core";
3
+ import q from "axios";
4
4
  import "jquery";
5
- import { useRouter as A } from "vue-router";
6
- import { useStore as $ } from "vuex";
7
- import { useRuntimeEnv as q } from "../../composables/useRuntimeEnv.js";
8
- import F from "../../widgets/AppLink.vue.js";
9
- import K from "./ui/ButtonV3.vue.js";
10
- import H from "./ui/TableRowV3.vue.js";
5
+ import { useRouter as F } from "vue-router";
6
+ import { useStore as K } from "vuex";
7
+ import { useRuntimeEnv as M } from "../../composables/useRuntimeEnv.js";
8
+ import j from "../../widgets/AppLink.vue.js";
9
+ import G from "./ui/ButtonV3.vue.js";
10
+ import C from "./ui/TableRowV3.vue.js";
11
11
  /* empty css */
12
- import M from "../../_virtual/_plugin-vue_export-helper.js";
13
- const j = { class: "dpiV3_dpiHome V3-typography" }, G = { class: "dpiV3_homeHeadWrap" }, J = {
12
+ import J from "../../_virtual/_plugin-vue_export-helper.js";
13
+ const O = { class: "dpiV3_dpiHome V3-typography" }, Q = { class: "dpiV3_homeHeadWrap" }, X = {
14
14
  key: 0,
15
15
  class: "copy-large-semi-bold landingText"
16
- }, O = { class: "interactionButtonsDPIHome" }, Q = {
16
+ }, Y = { class: "interactionButtonsDPIHome" }, Z = {
17
17
  key: 0,
18
18
  class: "dpiV3_table"
19
- }, X = {
19
+ }, ee = {
20
20
  key: 0,
21
21
  class: "loading-screen"
22
- }, Y = {
22
+ }, te = {
23
23
  key: 1,
24
24
  class: "dpiV3_innerTable"
25
- }, Z = {
25
+ }, ae = {
26
26
  __name: "HomeTable",
27
- setup(ee) {
28
- const v = q(), n = $();
29
- A();
30
- const _ = r(() => {
27
+ setup(se) {
28
+ const b = M(), d = K();
29
+ F(), n(() => {
31
30
  var t;
32
- return ((t = v.languages) == null ? void 0 : t.locale) || "de";
33
- });
34
- localStorage.getItem("dpi_duplicate"), D("");
35
- let m = r(() => n.getters["auth/getUserCatalogIds"]);
36
- D({
31
+ return ((t = b.languages) == null ? void 0 : t.locale) || "de";
32
+ }), localStorage.getItem("dpi_duplicate"), V("");
33
+ let p = n(() => d.getters["auth/getUserCatalogIds"]);
34
+ V({
37
35
  loading: !1,
38
36
  message: "",
39
37
  confirm: () => null
40
38
  });
41
- const p = r(
42
- () => n.getters["auth/getUserDrafts"].sort(
43
- (t, a) => {
44
- var e, d;
45
- return (((e = t.title) == null ? void 0 : e.locale) ?? "").localeCompare(((d = a.title) == null ? void 0 : d.locale) ?? "", _.value, {
46
- sensitivity: "base",
47
- numeric: !0
48
- });
49
- }
50
- )
51
- ), T = r(() => n.getters["auth/getUserData"]);
52
- r(() => T.value.rtpToken);
53
- const C = (t) => n.dispatch("snackbar/showSnackbar", t);
54
- async function P(t) {
55
- const a = t.map((o) => W.get(
56
- `${v.api.baseUrl}search?facets={%22catalog%22:[%22${o}%22]}&filters=dataset&includes=title,modified,id,description,catalog&limit=1000`
39
+ const f = n(
40
+ () => d.getters["auth/getUserDrafts"].sort((t, a) => {
41
+ var s, o, c, u;
42
+ const e = ((s = t.title) == null ? void 0 : s.de) ?? ((o = t.title) == null ? void 0 : o.en) ?? "", _ = ((c = a.title) == null ? void 0 : c.de) ?? ((u = a.title) == null ? void 0 : u.en) ?? "";
43
+ return e.localeCompare(_, "de", { sensitivity: "base" });
44
+ })
45
+ ), P = n(() => d.getters["auth/getUserData"]);
46
+ n(() => P.value.rtpToken);
47
+ const L = (t) => d.dispatch("snackbar/showSnackbar", t);
48
+ async function N(t) {
49
+ const a = t.map((s) => q.get(
50
+ `${b.api.baseUrl}search?facets={%22catalog%22:[%22${s}%22]}&filters=dataset&includes=title,modified,id,description,catalog&limit=1000`
57
51
  ));
58
- return (await Promise.all(a)).flatMap((o) => o.data.result.results).sort(
59
- (o, c) => {
60
- var h, b;
61
- return (((h = o.title) == null ? void 0 : h.locale) ?? "").localeCompare(
62
- ((b = c.title) == null ? void 0 : b.locale) ?? "",
63
- _.value,
64
- { sensitivity: "base", numeric: !0 }
65
- );
66
- }
67
- );
52
+ return (await Promise.all(a)).flatMap((s) => s.data.result.results).sort((s, o) => {
53
+ var h, D, y, k;
54
+ const c = ((h = s.title) == null ? void 0 : h.de) ?? ((D = s.title) == null ? void 0 : D.en) ?? "", u = ((y = o.title) == null ? void 0 : y.de) ?? ((k = o.title) == null ? void 0 : k.en) ?? "";
55
+ return c.localeCompare(u, "de", { sensitivity: "base" });
56
+ });
68
57
  }
69
58
  const {
70
- state: f,
71
- execute: B,
72
- isLoading: L,
73
- error: g
74
- } = R(
75
- async () => P(m.value),
59
+ state: g,
60
+ execute: U,
61
+ isLoading: z,
62
+ error: v
63
+ } = W(
64
+ async () => N(p.value),
76
65
  [],
77
66
  { immediate: !1 }
78
67
  );
79
- y(
80
- m,
68
+ x(
69
+ p,
81
70
  () => {
82
71
  var t;
83
- ((t = m.value) == null ? void 0 : t.length) > 0 && B();
72
+ ((t = p.value) == null ? void 0 : t.length) > 0 && U();
84
73
  },
85
74
  { immediate: !0 }
86
- ), y(g, () => {
87
- console.error(g), C({
88
- message: g.message,
75
+ ), x(v, () => {
76
+ console.error(v), L({
77
+ message: v.message,
89
78
  color: "error"
90
79
  });
91
80
  });
92
- const N = E(L, 500);
93
- return (t, a) => (s(), i("div", j, [
94
- l("div", G, [
81
+ const R = $(z, 500);
82
+ return (t, a) => (i(), r("div", O, [
83
+ l("div", Q, [
95
84
  a[1] || (a[1] = l("h2", { class: "dpiV3_tableHeader" }, "Ihre Datensätze", -1)),
96
- u(f).length === 0 && p.value.length === 0 ? (s(), i("p", J, a[0] || (a[0] = [
97
- V(" Willkommen im Data Provider Interface ✨ ", -1),
85
+ m(g).length === 0 && f.value.length === 0 ? (i(), r("p", X, a[0] || (a[0] = [
86
+ S(" Willkommen im Data Provider Interface ✨ ", -1),
98
87
  l("br", null, null, -1),
99
- V("Beginnen Sie mit der Erstellung Ihres ersten Datensatzes! ", -1)
100
- ]))) : k("", !0),
101
- l("div", O, [
102
- x(F, { to: {
88
+ S("Beginnen Sie mit der Erstellung Ihres ersten Datensatzes! ", -1)
89
+ ]))) : I("", !0),
90
+ l("div", Y, [
91
+ w(j, { to: {
103
92
  name: "DataProviderInterface-Input",
104
93
  query: { locale: "de", edit: !1 },
105
94
  params: { property: "datasets" }
106
95
  } }, {
107
- default: U(() => [
108
- x(K, {
96
+ default: A(() => [
97
+ w(G, {
109
98
  "button-text": "Neuen Datensatz erstellen",
110
99
  size: "large"
111
100
  })
@@ -114,13 +103,13 @@ const j = { class: "dpiV3_dpiHome V3-typography" }, G = { class: "dpiV3_homeHead
114
103
  })
115
104
  ])
116
105
  ]),
117
- u(f).length > 0 || p.value.length > 0 ? (s(), i("div", Q, [
118
- u(N) ? (s(), i("div", X, a[2] || (a[2] = [
106
+ m(g).length > 0 || f.value.length > 0 ? (i(), r("div", Z, [
107
+ m(R) ? (i(), r("div", ee, a[2] || (a[2] = [
119
108
  l("p", null, "Lädt Daten...", -1)
120
- ]))) : (s(), i("div", Y, [
121
- a[3] || (a[3] = z('<div class="dpiV3_tableHeadWrap" data-v-807f661d><div class="dpiV3_thWrap" data-v-807f661d><div scope="col" data-v-807f661d><span data-v-807f661d>Datensätze</span></div><div scope="col" class="dpiV3_statusHead" data-v-807f661d><span data-v-807f661d>Status</span></div></div><div class="dpiV3_blankCell" data-v-807f661d></div></div>', 1)),
109
+ ]))) : (i(), r("div", te, [
110
+ a[3] || (a[3] = E('<div class="dpiV3_tableHeadWrap" data-v-df4b37ff><div class="dpiV3_thWrap" data-v-df4b37ff><div scope="col" data-v-df4b37ff><span data-v-df4b37ff>Datensätze</span></div><div scope="col" class="dpiV3_statusHead" data-v-df4b37ff><span data-v-df4b37ff>Status</span></div></div><div class="dpiV3_blankCell" data-v-df4b37ff></div></div>', 1)),
122
111
  l("div", null, [
123
- (s(!0), i(I, null, S(p.value, (e) => (s(), w(H, {
112
+ (i(!0), r(B, null, H(f.value, (e) => (i(), T(C, {
124
113
  id: e.id,
125
114
  key: e.id,
126
115
  "data-cy": e,
@@ -130,21 +119,21 @@ const j = { class: "dpiV3_dpiHome V3-typography" }, G = { class: "dpiV3_homeHead
130
119
  draft: "true",
131
120
  dataset: e
132
121
  }, null, 8, ["id", "data-cy", "catalogue", "text", "date", "dataset"]))), 128)),
133
- (s(!0), i(I, null, S(u(f), (e, d) => {
134
- var o, c;
135
- return s(), w(H, {
122
+ (i(!0), r(B, null, H(m(g), (e, _) => {
123
+ var s, o;
124
+ return i(), T(C, {
136
125
  key: e.id,
137
- text: ((o = e.title) == null ? void 0 : o.de) || ((c = e.title) == null ? void 0 : c.en) || "Kein Titel in englisch oder deutsch vohanden",
126
+ text: ((s = e.title) == null ? void 0 : s.de) || ((o = e.title) == null ? void 0 : o.en) || "Kein Titel in englisch oder deutsch vohanden",
138
127
  date: e.modified ? new Date(e.modified).toDateString() : "-",
139
128
  dataset: e
140
129
  }, null, 8, ["text", "date", "dataset"]);
141
130
  }), 128))
142
131
  ])
143
132
  ]))
144
- ])) : k("", !0)
133
+ ])) : I("", !0)
145
134
  ]));
146
135
  }
147
- }, pe = /* @__PURE__ */ M(Z, [["__scopeId", "data-v-807f661d"]]);
136
+ }, ve = /* @__PURE__ */ J(ae, [["__scopeId", "data-v-df4b37ff"]]);
148
137
  export {
149
- pe as default
138
+ ve as default
150
139
  };