@piveau/piveau-hub-ui-modules 4.3.12 → 4.3.13

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 (67) hide show
  1. package/dist/data-provider-interface/DPIMenu.vue.d.ts +2 -2
  2. package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +29 -7
  3. package/dist/data-provider-interface/DataProviderInterface.vue.mjs +12 -69
  4. package/dist/data-provider-interface/DataProviderInterface.vue.mjs.map +1 -1
  5. package/dist/data-provider-interface/DataProviderInterface.vue2.mjs +91 -2
  6. package/dist/data-provider-interface/DataProviderInterface.vue2.mjs.map +1 -1
  7. package/dist/data-provider-interface/DataProviderInterface.vue3.mjs +5 -0
  8. package/dist/data-provider-interface/DataProviderInterface.vue3.mjs.map +1 -0
  9. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +30 -37
  10. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
  11. package/dist/data-provider-interface/components/DataFetchingComponent.vue.d.ts +1 -1
  12. package/dist/data-provider-interface/components/DataFetchingComponent.vue.mjs +23 -18
  13. package/dist/data-provider-interface/components/DataFetchingComponent.vue.mjs.map +1 -1
  14. package/dist/data-provider-interface/components/FileUpload.vue.d.ts +1 -1
  15. package/dist/data-provider-interface/components/Navigation.vue.d.ts +4 -4
  16. package/dist/data-provider-interface/composables/index.d.ts +2 -0
  17. package/dist/data-provider-interface/composables/useDpiContext.d.ts +17 -0
  18. package/dist/data-provider-interface/composables/useDpiContext.mjs +19 -0
  19. package/dist/data-provider-interface/composables/useDpiContext.mjs.map +1 -0
  20. package/dist/data-provider-interface/composables/useDpiEditMode.d.ts +16 -0
  21. package/dist/data-provider-interface/composables/useDpiEditMode.mjs +39 -0
  22. package/dist/data-provider-interface/composables/useDpiEditMode.mjs.map +1 -0
  23. package/dist/data-provider-interface/config/dpi-spec-config.mjs +1 -0
  24. package/dist/data-provider-interface/config/dpi-spec-config.mjs.map +1 -1
  25. package/dist/data-provider-interface/index.d.ts +2 -0
  26. package/dist/data-provider-interface/index.mjs +11 -0
  27. package/dist/data-provider-interface/index.mjs.map +1 -0
  28. package/dist/data-provider-interface/store/dpiStore.d.ts +31 -15
  29. package/dist/data-provider-interface/store/dpiStore.mjs +30 -13
  30. package/dist/data-provider-interface/store/dpiStore.mjs.map +1 -1
  31. package/dist/data-provider-interface/store/modules/autocompleteStore.d.ts +3 -1
  32. package/dist/data-provider-interface/store/modules/autocompleteStore.mjs +28 -29
  33. package/dist/data-provider-interface/store/modules/autocompleteStore.mjs.map +1 -1
  34. package/dist/data-provider-interface/store/modules/conversionStore.d.ts +6 -6
  35. package/dist/data-provider-interface/store/modules/conversionStore.mjs +21 -22
  36. package/dist/data-provider-interface/store/modules/conversionStore.mjs.map +1 -1
  37. package/dist/data-provider-interface/store/modules/formSchemaStore.d.ts +5 -3
  38. package/dist/data-provider-interface/store/modules/formSchemaStore.mjs +29 -29
  39. package/dist/data-provider-interface/store/modules/formSchemaStore.mjs.map +1 -1
  40. package/dist/data-provider-interface/store/modules/navigationStore.d.ts +1 -1
  41. package/dist/data-provider-interface/store/modules/navigationStore.mjs +13 -14
  42. package/dist/data-provider-interface/store/modules/navigationStore.mjs.map +1 -1
  43. package/dist/data-provider-interface/utils/RDFconverter.mjs +63 -60
  44. package/dist/data-provider-interface/utils/RDFconverter.mjs.map +1 -1
  45. package/dist/data-provider-interface/views/DraftsPage.vue.d.ts +1 -1
  46. package/dist/data-provider-interface/views/InputPage.vue.d.ts +3 -3
  47. package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.mjs +1 -1
  48. package/dist/data-provider-interface/views/OverviewPage.vue.d.ts +1 -1
  49. package/dist/datasetDetails/DatasetDetails.vue.d.ts +1 -1
  50. package/dist/datasetDetails/DatasetDetailsDescription.vue.d.ts +1 -1
  51. package/dist/datasetDetails/distributions/DistributionFormat.vue.d.ts +3 -3
  52. package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.d.ts +2 -2
  53. package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.d.ts +3 -3
  54. package/dist/datasetDetails/header/DatasetDetailsHeaderTitle.vue.d.ts +1 -1
  55. package/dist/datasetDetails/navigation/DatasetDetailsNavigation.vue.d.ts +1 -1
  56. package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +1 -1
  57. package/dist/embed/EmbedDataset.vue.d.ts +1 -1
  58. package/dist/embed/EmbedDatasetSnippet.vue.d.ts +2 -2
  59. package/dist/external/@vueuse/core/index +129 -80
  60. package/dist/external/@vueuse/core/index.map +1 -1
  61. package/dist/external/@vueuse/shared/index +121 -17
  62. package/dist/external/@vueuse/shared/index.map +1 -1
  63. package/dist/index.d.ts +1 -0
  64. package/dist/index.mjs +250 -248
  65. package/dist/index.mjs.map +1 -1
  66. package/dist/piveau-hub-ui-modules.css +1 -1
  67. package/package.json +1 -1
@@ -5,8 +5,8 @@ declare const _default: import('vue').DefineComponent<{
5
5
  required: true;
6
6
  };
7
7
  }, any, any, {
8
- getLanguages: import('vuex').Computed;
9
8
  getTitle: import('vuex').Computed;
9
+ getLanguages: import('vuex').Computed;
10
10
  }, {
11
11
  getTranslationFor: typeof getTranslationFor;
12
12
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -18,10 +18,10 @@ declare const _default: import('vue').DefineComponent<{
18
18
  }, {
19
19
  url(): string;
20
20
  showDQV(): any;
21
+ getTitle: import('vuex').Computed;
21
22
  getLoading: import('vuex').Computed;
22
23
  getLanguages: import('vuex').Computed;
23
24
  getID: import('vuex').Computed;
24
- getTitle: import('vuex').Computed;
25
25
  getIsDQVDataRDFAvailable: import('vuex').Computed;
26
26
  getIsDQVDataTTLAvailable: import('vuex').Computed;
27
27
  getIsDQVDataN3Available: import('vuex').Computed;
@@ -1,6 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<{}, {}, {}, {
2
- getLanguages: import('vuex').Computed;
3
2
  getTitle: import('vuex').Computed;
3
+ getLanguages: import('vuex').Computed;
4
4
  }, {
5
5
  openUrl(): void;
6
6
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
@@ -1,8 +1,8 @@
1
1
  declare const _default: import('vue').DefineComponent<{}, {}, {}, {
2
2
  datasets: import('vuex').Computed;
3
- getLanguages: import('vuex').Computed;
4
- getDescription: import('vuex').Computed;
5
3
  getTitle: import('vuex').Computed;
4
+ getDescription: import('vuex').Computed;
5
+ getLanguages: import('vuex').Computed;
6
6
  }, {
7
7
  openUrl(): void;
8
8
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
@@ -1,118 +1,167 @@
1
- import { noop as v, isIOS as k, isClient as O, toValue as L, isObject as S, tryOnScopeDispose as b } from "../shared/index";
2
- import { ref as h, computed as A, watch as I } from "vue-demi";
3
- function p(s) {
4
- var o;
5
- const n = L(s);
6
- return (o = n == null ? void 0 : n.$el) != null ? o : n;
1
+ import { noop as y, isIOS as T, isClient as W, toValue as P, isObject as _, tryOnScopeDispose as C, promiseTimeout as R, until as X } from "../shared/index";
2
+ import { watchOnce as U } from "../shared/index";
3
+ import { ref as m, computed as x, watch as Y, shallowRef as k } from "vue-demi";
4
+ function A(s) {
5
+ var r;
6
+ const o = P(s);
7
+ return (r = o == null ? void 0 : o.$el) != null ? r : o;
7
8
  }
8
- const w = O ? window : void 0;
9
- function y(...s) {
10
- let o, n, t, u;
11
- if (typeof s[0] == "string" || Array.isArray(s[0]) ? ([n, t, u] = s, o = w) : [o, n, t, u] = s, !o)
12
- return v;
13
- Array.isArray(n) || (n = [n]), Array.isArray(t) || (t = [t]);
14
- const a = [], f = () => {
15
- a.forEach((i) => i()), a.length = 0;
16
- }, c = (i, d, e, r) => (i.addEventListener(d, e, r), () => i.removeEventListener(d, e, r)), m = I(
17
- () => [p(o), L(u)],
18
- ([i, d]) => {
19
- if (f(), !i)
9
+ const g = W ? window : void 0;
10
+ function L(...s) {
11
+ let r, o, n, a;
12
+ if (typeof s[0] == "string" || Array.isArray(s[0]) ? ([o, n, a] = s, r = g) : [r, o, n, a] = s, !r)
13
+ return y;
14
+ Array.isArray(o) || (o = [o]), Array.isArray(n) || (n = [n]);
15
+ const f = [], d = () => {
16
+ f.forEach((l) => l()), f.length = 0;
17
+ }, u = (l, i, e, t) => (l.addEventListener(i, e, t), () => l.removeEventListener(i, e, t)), p = Y(
18
+ () => [A(r), P(a)],
19
+ ([l, i]) => {
20
+ if (d(), !l)
20
21
  return;
21
- const e = S(d) ? { ...d } : d;
22
- a.push(
23
- ...n.flatMap((r) => t.map((l) => c(i, r, l, e)))
22
+ const e = _(i) ? { ...i } : i;
23
+ f.push(
24
+ ...o.flatMap((t) => n.map((c) => u(l, t, c, e)))
24
25
  );
25
26
  },
26
27
  { immediate: !0, flush: "post" }
27
- ), E = () => {
28
- m(), f();
28
+ ), w = () => {
29
+ p(), d();
29
30
  };
30
- return b(E), E;
31
+ return C(w), w;
31
32
  }
32
- let g = !1;
33
- function x(s, o, n = {}) {
34
- const { window: t = w, ignore: u = [], capture: a = !0, detectIframe: f = !1 } = n;
35
- if (!t)
36
- return v;
37
- k && !g && (g = !0, Array.from(t.document.body.children).forEach((e) => e.addEventListener("click", v)), t.document.documentElement.addEventListener("click", v));
38
- let c = !0;
39
- const m = (e) => u.some((r) => {
40
- if (typeof r == "string")
41
- return Array.from(t.document.querySelectorAll(r)).some((l) => l === e.target || e.composedPath().includes(l));
33
+ let I = !1;
34
+ function j(s, r, o = {}) {
35
+ const { window: n = g, ignore: a = [], capture: f = !0, detectIframe: d = !1 } = o;
36
+ if (!n)
37
+ return y;
38
+ T && !I && (I = !0, Array.from(n.document.body.children).forEach((e) => e.addEventListener("click", y)), n.document.documentElement.addEventListener("click", y));
39
+ let u = !0;
40
+ const p = (e) => a.some((t) => {
41
+ if (typeof t == "string")
42
+ return Array.from(n.document.querySelectorAll(t)).some((c) => c === e.target || e.composedPath().includes(c));
42
43
  {
43
- const l = p(r);
44
- return l && (e.target === l || e.composedPath().includes(l));
44
+ const c = A(t);
45
+ return c && (e.target === c || e.composedPath().includes(c));
45
46
  }
46
- }), i = [
47
- y(t, "click", (e) => {
48
- const r = p(s);
49
- if (!(!r || r === e.target || e.composedPath().includes(r))) {
50
- if (e.detail === 0 && (c = !m(e)), !c) {
51
- c = !0;
47
+ }), l = [
48
+ L(n, "click", (e) => {
49
+ const t = A(s);
50
+ if (!(!t || t === e.target || e.composedPath().includes(t))) {
51
+ if (e.detail === 0 && (u = !p(e)), !u) {
52
+ u = !0;
52
53
  return;
53
54
  }
54
- o(e);
55
+ r(e);
55
56
  }
56
- }, { passive: !0, capture: a }),
57
- y(t, "pointerdown", (e) => {
58
- const r = p(s);
59
- c = !m(e) && !!(r && !e.composedPath().includes(r));
57
+ }, { passive: !0, capture: f }),
58
+ L(n, "pointerdown", (e) => {
59
+ const t = A(s);
60
+ u = !p(e) && !!(t && !e.composedPath().includes(t));
60
61
  }, { passive: !0 }),
61
- f && y(t, "blur", (e) => {
62
+ d && L(n, "blur", (e) => {
62
63
  setTimeout(() => {
63
- var r;
64
- const l = p(s);
65
- ((r = t.document.activeElement) == null ? void 0 : r.tagName) === "IFRAME" && !(l != null && l.contains(t.document.activeElement)) && o(e);
64
+ var t;
65
+ const c = A(s);
66
+ ((t = n.document.activeElement) == null ? void 0 : t.tagName) === "IFRAME" && !(c != null && c.contains(n.document.activeElement)) && r(e);
66
67
  }, 0);
67
68
  })
68
69
  ].filter(Boolean);
69
- return () => i.forEach((e) => e());
70
+ return () => l.forEach((e) => e());
70
71
  }
71
- function C(s = {}) {
72
- const { window: o = w, behavior: n = "auto" } = s;
73
- if (!o)
72
+ function q(s, r, o) {
73
+ const {
74
+ immediate: n = !0,
75
+ delay: a = 0,
76
+ onError: f = y,
77
+ onSuccess: d = y,
78
+ resetOnExecute: u = !0,
79
+ shallow: p = !0,
80
+ throwError: w
81
+ } = o ?? {}, l = p ? k(r) : m(r), i = m(!1), e = m(!1), t = k(void 0);
82
+ async function c(h = 0, ...E) {
83
+ u && (l.value = r), t.value = void 0, i.value = !1, e.value = !0, h > 0 && await R(h);
84
+ const b = typeof s == "function" ? s(...E) : s;
85
+ try {
86
+ const v = await b;
87
+ l.value = v, i.value = !0, d(v);
88
+ } catch (v) {
89
+ if (t.value = v, f(v), w)
90
+ throw v;
91
+ } finally {
92
+ e.value = !1;
93
+ }
94
+ return l.value;
95
+ }
96
+ n && c(a);
97
+ const O = {
98
+ state: l,
99
+ isReady: i,
100
+ isLoading: e,
101
+ error: t,
102
+ execute: c
103
+ };
104
+ function S() {
105
+ return new Promise((h, E) => {
106
+ X(e).toBe(!1).then(() => h(O)).catch(E);
107
+ });
108
+ }
109
+ return {
110
+ ...O,
111
+ then(h, E) {
112
+ return S().then(h, E);
113
+ }
114
+ };
115
+ }
116
+ function D(s = {}) {
117
+ const { window: r = g, behavior: o = "auto" } = s;
118
+ if (!r)
74
119
  return {
75
- x: h(0),
76
- y: h(0)
120
+ x: m(0),
121
+ y: m(0)
77
122
  };
78
- const t = h(o.scrollX), u = h(o.scrollY), a = A({
123
+ const n = m(r.scrollX), a = m(r.scrollY), f = x({
79
124
  get() {
80
- return t.value;
125
+ return n.value;
81
126
  },
82
- set(c) {
83
- scrollTo({ left: c, behavior: n });
127
+ set(u) {
128
+ scrollTo({ left: u, behavior: o });
84
129
  }
85
- }), f = A({
130
+ }), d = x({
86
131
  get() {
87
- return u.value;
132
+ return a.value;
88
133
  },
89
- set(c) {
90
- scrollTo({ top: c, behavior: n });
134
+ set(u) {
135
+ scrollTo({ top: u, behavior: o });
91
136
  }
92
137
  });
93
- return y(
94
- o,
138
+ return L(
139
+ r,
95
140
  "scroll",
96
141
  () => {
97
- t.value = o.scrollX, u.value = o.scrollY;
142
+ n.value = r.scrollX, a.value = r.scrollY;
98
143
  },
99
144
  {
100
145
  capture: !1,
101
146
  passive: !0
102
147
  }
103
- ), { x: a, y: f };
148
+ ), { x: f, y: d };
104
149
  }
105
150
  export {
106
- w as defaultWindow,
107
- O as isClient,
108
- k as isIOS,
109
- S as isObject,
110
- v as noop,
111
- x as onClickOutside,
112
- L as toValue,
113
- b as tryOnScopeDispose,
114
- p as unrefElement,
115
- y as useEventListener,
116
- C as useWindowScroll
151
+ g as defaultWindow,
152
+ W as isClient,
153
+ T as isIOS,
154
+ _ as isObject,
155
+ y as noop,
156
+ j as onClickOutside,
157
+ R as promiseTimeout,
158
+ P as toValue,
159
+ C as tryOnScopeDispose,
160
+ A as unrefElement,
161
+ X as until,
162
+ q as useAsyncState,
163
+ L as useEventListener,
164
+ D as useWindowScroll,
165
+ U as watchOnce
117
166
  };
118
167
  //# sourceMappingURL=index.map