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

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.
@@ -0,0 +1,361 @@
1
+ const C = {
2
+ datasets: [],
3
+ loading: !1,
4
+ searchParameters: {
5
+ query: "",
6
+ fields: void 0,
7
+ limit: 10,
8
+ offset: 0,
9
+ // The Facets to filter for
10
+ facets: {},
11
+ facetOperator: "AND",
12
+ facetGroupOperator: "AND",
13
+ dataServices: "false",
14
+ superCatalogue: void 0,
15
+ // !!!!! Project specific (Bayern). Should be removed as soon as possible !!!!
16
+ datasetGeoBounds: void 0,
17
+ sort: "relevance+desc, modified+desc, title.en+asc"
18
+ },
19
+ availableFacets: [],
20
+ page: 1,
21
+ pageCount: 1,
22
+ datasetsCount: 0,
23
+ dataScope: void 0,
24
+ minScoring: void 0,
25
+ scoringFacets: [
26
+ {
27
+ id: "excellentScoring",
28
+ title: "Excellent",
29
+ count: 0,
30
+ minScoring: 351,
31
+ maxScoring: 405
32
+ },
33
+ {
34
+ id: "goodScoring",
35
+ title: "Good",
36
+ count: 0,
37
+ minScoring: 221,
38
+ maxScoring: 350
39
+ },
40
+ {
41
+ id: "sufficientScoring",
42
+ title: "Sufficient",
43
+ count: 0,
44
+ minScoring: 121,
45
+ maxScoring: 220
46
+ },
47
+ {
48
+ id: "anyScoring",
49
+ title: "Any",
50
+ count: 0,
51
+ minScoring: 0,
52
+ maxScoring: 120
53
+ }
54
+ ]
55
+ }, s = {
56
+ getDatasets: (e) => e.datasets,
57
+ getDatasetsCount: (e) => e.datasetsCount,
58
+ getQuery: (e) => e.searchParameters.query,
59
+ getFields: (e) => e.searchParameters.fields,
60
+ getLimit: (e) => e.searchParameters.limit,
61
+ getLoading: (e) => e.loading,
62
+ getOffset: (e) => e.searchParameters.offset,
63
+ getFacets: (e) => {
64
+ const a = { ...e.searchParameters.facets };
65
+ return a.categories && (a.categories = a.categories.map((t) => t.toUpperCase())), a.dataScope && delete a.dataScope, a;
66
+ },
67
+ getFacetOperator: (e) => e.searchParameters.facetOperator,
68
+ getFacetGroupOperator: (e) => e.searchParameters.facetGroupOperator,
69
+ getDataServices: (e) => e.searchParameters.dataServices,
70
+ getSuperCatalogue_DEPRECATED: (e) => e.searchParameters.superCatalogue,
71
+ // !!!!! Project specific (Bayern). Should be removed as soon as possible !!!!
72
+ getDatasetGeoBounds: (e) => e.searchParameters.datasetGeoBounds,
73
+ getAvailableFacets: (e) => e.availableFacets,
74
+ // Hacky solutiohn to insert special facets
75
+ getAllAvailableFacets: (e) => {
76
+ const a = [...e.availableFacets], t = a.findIndex((c) => c.id === "scoring");
77
+ return a.splice(
78
+ t,
79
+ 0,
80
+ {
81
+ id: "dataServices",
82
+ items: [
83
+ { count: void 0, id: "true", title: "yes" },
84
+ { count: void 0, id: "false", title: "no" }
85
+ ],
86
+ title: "Data services"
87
+ }
88
+ ), a;
89
+ },
90
+ getPage: (e) => e.page,
91
+ getPageCount: (e) => e.pageCount,
92
+ getSort: (e) => e.searchParameters.sort,
93
+ getMinScoring: (e) => e.minScoring,
94
+ getScoringFacets: (e) => e.scoringFacets,
95
+ getDataScope: (e) => e.dataScope
96
+ }, n = {
97
+ /**
98
+ * @description Load all datasets matching the given parameters.
99
+ * @param commit
100
+ * @param state
101
+ * @param options {Object} - Given search parameters
102
+ * @param options.query {String} - The given query string
103
+ * @param options.fields {String} - The given fields
104
+ * @param options.facets {Array} - The active facets
105
+ * @param options.limit {Number} - The maximum amount of datasets to fetch
106
+ * @param options.page {Number} - The current page
107
+ * @param options.sort {String} - The sort method to use
108
+ * @param options.geoBounds {Array} - The given bounds to setup a spatial search for
109
+ * @param options.append {Boolean} - Decides whether current datasets in state will be replaced or fetched datasets appended.
110
+ */
111
+ loadDatasets({ commit: e, state: a }, {
112
+ locale: t,
113
+ query: c = s.getQuery(a),
114
+ fields: r = s.getFields(a),
115
+ limit: T = s.getLimit(a),
116
+ page: g = s.getPage(a),
117
+ sort: _ = s.getSort(a),
118
+ facetOperator: A = s.getFacetOperator(a),
119
+ facetGroupOperator: d = s.getFacetGroupOperator(a),
120
+ dataServices: l = s.getDataServices(a),
121
+ facets: i = s.getFacets(a),
122
+ geoBounds: E = s.getDatasetGeoBounds(a),
123
+ minScoring: u = s.getMinScoring(a),
124
+ dataScope: P = s.getDataScope(a),
125
+ append: O = !1
126
+ }) {
127
+ e("SET_LOADING", !0);
128
+ const S = E;
129
+ return S instanceof Array && S[0] && S[1] ? E = `${S[0][0]},${S[0][1]},${S[1][0]},${S[1][1]}` : E = void 0, i.catalog[0] === "erpd" && (i.catalog = [], i.superCatalog = ["erpd"]), new Promise((D, p) => {
130
+ this.$datasetService.get(c, r, t, T, g, _, A, d, l, i, E, u, P).then((o) => {
131
+ e("SET_FIEELDS", o.fields), e("SET_AVAILABLE_FACETS", o.availableFacets), e("SET_SCORING_COUNT", o.scoringCount), e("SET_DATASETS_COUNT", o.datasetsCount), e(O ? "ADD_DATASETS" : "SET_DATASETS", o.datasets), e("SET_LOADING", !1), D();
132
+ }).catch((o) => {
133
+ console.error(o), e("SET_LOADING", !1), p(o);
134
+ });
135
+ });
136
+ },
137
+ /**
138
+ * @description Loads more datasets.
139
+ * @param commit
140
+ * @param state
141
+ * @param {number} amount - The amount of datasets to add.
142
+ */
143
+ loadSingleDataset({ commit: e }, a) {
144
+ return new Promise((t, c) => {
145
+ this.$datasetService.getSingle(a).then((r) => {
146
+ t(r);
147
+ }).catch((r) => {
148
+ console.error(r), c(r);
149
+ });
150
+ });
151
+ },
152
+ /**
153
+ * @description Loads more datasets.
154
+ * @param commit
155
+ * @param state
156
+ * @param {number} amount - The amount of datasets to add.
157
+ */
158
+ loadAdditionalDatasets({ commit: e, state: a }) {
159
+ const t = s.getPage(a);
160
+ n.loadDatasets({ commit: e, state: a }, { page: t, append: !0 });
161
+ },
162
+ /**
163
+ * @description Autocomplete a query String by using a autocompletion service
164
+ * @param commit
165
+ * @param q {String} The Query to autocomplete
166
+ */
167
+ autocompleteQuery({ commit: e }, a) {
168
+ if (typeof this.$datasetService.autocomplete == "function")
169
+ return new Promise((t, c) => {
170
+ this.$datasetService.autocomplete(a).then((r) => {
171
+ t(r);
172
+ }).catch((r) => {
173
+ c(r);
174
+ });
175
+ });
176
+ },
177
+ /**
178
+ * @description Replace the current state facets by the given facets
179
+ * @param commit
180
+ * @param facets {Array} - The given facets
181
+ */
182
+ setFacets({ commit: e }, a) {
183
+ a && e("SET_FACETS", a);
184
+ },
185
+ /**
186
+ * @description Add the given facet to the states facets.
187
+ * @param commit
188
+ * @param params {Object} - The wrapped action parameters.
189
+ * @param params.field {String} - The field of the given facet
190
+ * @param params.facet {String} - The facet to add
191
+ */
192
+ addFacet({ commit: e }, { field: a, facet: t }) {
193
+ e("ADD_FACET", { field: a, facet: t });
194
+ },
195
+ /**
196
+ * @description Remove the given facet from the states facets.
197
+ * @param commit
198
+ * @param params {Object} - The wrapped action parameters.
199
+ * @param params.field {String} - The field of the given facet
200
+ * @param params.facet {String} - The facet to remove
201
+ */
202
+ removeFacet({ commit: e }, { field: a, facet: t }) {
203
+ e("REMOVE_FACET", { field: a, facet: t });
204
+ },
205
+ /**
206
+ * @description Remove the given facet from the states facets.
207
+ * @param commit
208
+ * @param operator {String} - The facet operator to set. Possible Operators : ['AND', 'OR'].
209
+ */
210
+ setFacetOperator({ commit: e }, a) {
211
+ e("SET_FACET_OPERATOR", a);
212
+ },
213
+ /**
214
+ * @description Remove the given facet from the states facets.
215
+ * @param commit
216
+ * @param operator {String} - The facet operator to set. Possible Operators : ['AND', 'OR'].
217
+ */
218
+ setFacetGroupOperator({ commit: e }, a) {
219
+ e("SET_FACET_GROUP_OPERATOR", a);
220
+ },
221
+ /**
222
+ * @description Remove the given facet from the states facets.
223
+ * @param commit
224
+ * @param operator {String} - The data services to set. Possible Operators : ['true', 'false'].
225
+ */
226
+ setDataServices({ commit: e }, a) {
227
+ e("SET_DATA_SERVICES", a);
228
+ },
229
+ /**
230
+ * @description Remove the given facet from the states facets.
231
+ * @param commit
232
+ * @param operator {String} - Only Erpd data. Possible Operators : ['true', 'false'].
233
+ */
234
+ setSuperCatalogue_DEPRECATED({ commit: e }, a) {
235
+ e("SET_SUPER_CATALOGUE", a);
236
+ },
237
+ setPage({ commit: e }, a) {
238
+ e("SET_PAGE", a);
239
+ },
240
+ setPageCount({ commit: e }, a) {
241
+ e("SET_PAGE_COUNT", a);
242
+ },
243
+ setQuery({ commit: e }, a) {
244
+ e("SET_QUERY", a);
245
+ },
246
+ setFields({ commit: e }, a) {
247
+ e("SET_FIELDS", a);
248
+ },
249
+ setSort({ commit: e }, a) {
250
+ e("SET_SORT", a);
251
+ },
252
+ setLimit({ commit: e }, a = 10) {
253
+ e("SET_LIMIT", a);
254
+ },
255
+ setDatasetGeoBounds({ commit: e }, a) {
256
+ e("SET_DATASET_GEO_BOUNDS", a);
257
+ },
258
+ setLoading({ commit: e }, a) {
259
+ e("SET_LOADING", a);
260
+ },
261
+ setMinScoring({ commit: e }, a) {
262
+ e("SET_MIN_SCORING", a);
263
+ },
264
+ setDataScope({ commit: e }, a) {
265
+ e("SET_DATA_SCOPE", a);
266
+ },
267
+ setAvailableFacets({ commit: e }, a) {
268
+ e("SET_AVAILABLE_FACETS", a);
269
+ },
270
+ setScoringCount({ commit: e }, a) {
271
+ e("SET_SCORING_COUNT", a);
272
+ },
273
+ setDatasetsCount({ commit: e }, a) {
274
+ e("SET_DATASETS_COUNT", a);
275
+ },
276
+ setDatasets({ commit: e }, a) {
277
+ e("SET_DATASETS", a);
278
+ }
279
+ }, m = {
280
+ SET_DATASETS(e, a) {
281
+ e.datasets = a;
282
+ },
283
+ ADD_DATASETS(e, a) {
284
+ e.datasets = e.datasets.concat(a);
285
+ },
286
+ SET_LIMIT(e, a) {
287
+ e.searchParameters.limit = a;
288
+ },
289
+ SET_OFFSET(e, a) {
290
+ e.searchParameters.offset = a;
291
+ },
292
+ SET_FACETS(e, a) {
293
+ e.searchParameters.facets = { ...a };
294
+ },
295
+ ADD_FACET(e, { field: a, facet: t }) {
296
+ Object.prototype.hasOwnProperty.call(e.searchParameters.facets, a) ? e.searchParameters.facets[a].push(t) : e.searchParameters.facets[a] = [t];
297
+ },
298
+ REMOVE_FACET(e, { field: a, facet: t }) {
299
+ const c = e.searchParameters.facets[a].indexOf(t);
300
+ e.searchParameters.facets[a].splice(c, 1);
301
+ },
302
+ SET_DATASET_GEO_BOUNDS(e, a) {
303
+ e.searchParameters.datasetGeoBounds = a;
304
+ },
305
+ SET_AVAILABLE_FACETS(e, a) {
306
+ e.availableFacets = a;
307
+ },
308
+ SET_SCORING_COUNT(e, a) {
309
+ e.scoringFacets.forEach((t) => {
310
+ t.count = a[t.id];
311
+ });
312
+ },
313
+ SET_DATASETS_COUNT(e, a) {
314
+ e.datasetsCount = a;
315
+ },
316
+ SET_FACET_OPERATOR(e, a) {
317
+ e.searchParameters.facetOperator = a;
318
+ },
319
+ SET_FACET_GROUP_OPERATOR(e, a) {
320
+ e.searchParameters.facetGroupOperator = a;
321
+ },
322
+ SET_DATA_SERVICES(e, a) {
323
+ e.searchParameters.dataServices = a;
324
+ },
325
+ SET_SUPER_CATALOGUE(e, a) {
326
+ e.searchParameters.superCatalogue = a;
327
+ },
328
+ SET_PAGE(e, a) {
329
+ e.page = a;
330
+ },
331
+ SET_PAGE_COUNT(e, a) {
332
+ e.pageCount = a;
333
+ },
334
+ SET_QUERY(e, a) {
335
+ e.searchParameters.query = a;
336
+ },
337
+ SET_FIELDS(e, a) {
338
+ e.searchParameters.fields = a;
339
+ },
340
+ SET_SORT(e, a) {
341
+ e.searchParameters.sort = a;
342
+ },
343
+ SET_LOADING(e, a) {
344
+ e.loading = a;
345
+ },
346
+ SET_MIN_SCORING(e, a) {
347
+ e.minScoring = a;
348
+ },
349
+ SET_DATA_SCOPE(e, a) {
350
+ e.dataScope = a;
351
+ }
352
+ }, f = {
353
+ namespaced: !0,
354
+ state: C,
355
+ actions: n,
356
+ mutations: m,
357
+ getters: s
358
+ };
359
+ export {
360
+ f as default
361
+ };
@@ -1,33 +1,32 @@
1
- import e from "./modules/formSchemaStore.js";
2
- import c from "./modules/navigationStore.js";
3
- const o = {
1
+ import e from "./navigationStore.js";
2
+ const c = {
4
3
  // DPI specification as root state to be shared between all modules
5
4
  specification: {},
6
5
  specificationName: ""
7
6
  }, a = {
8
7
  getSpecification: (i) => i.specification,
9
8
  getSpecificationName: (i) => i.specificationName
10
- }, n = {
9
+ }, o = {
11
10
  setSpecification: (i, t) => {
12
11
  i.commit("setSpecification", t);
13
12
  },
14
13
  setSpecificationname: (i, t) => {
15
14
  i.commit("setSpecificationName", t);
16
15
  }
17
- }, s = {
16
+ }, n = {
18
17
  setSpecification: (i, t) => i.specification = t,
19
18
  setSpecificationName: (i, t) => i.specificationName = t
20
- }, p = {
19
+ }, m = {
21
20
  namespaced: !0,
22
- state: o,
23
- actions: n,
24
- mutations: s,
21
+ state: c,
22
+ actions: o,
23
+ mutations: n,
25
24
  getters: a,
26
25
  modules: {
27
- formModule: e,
28
- navigationModule: c
26
+ // formModule,
27
+ navigationModule: e
29
28
  }
30
29
  };
31
30
  export {
32
- p as default
31
+ m as default
33
32
  };
@@ -0,0 +1,45 @@
1
+ import "vuex";
2
+ const n = {
3
+ namespaced: !0,
4
+ state: {
5
+ delay: 5e3,
6
+ autohide: !0,
7
+ animation: !0,
8
+ variant: "",
9
+ message: ""
10
+ },
11
+ mutations: {
12
+ SHOW_MESSAGE(a, r) {
13
+ a.message = r.message, a.autohide = r.autohide, a.animation = r.animation, a.variant = r.variant;
14
+ }
15
+ },
16
+ actions: {
17
+ /**
18
+ * Commits a message to the store.
19
+ * @param {*} commit
20
+ * @param {*} toastOptions - Object containing the message and the toast options
21
+ */
22
+ showSnackbar({ commit: a }, { message: r = "", variant: e = "error", timeout: t = -1 }) {
23
+ a("SHOW_MESSAGE", {
24
+ timeout: t,
25
+ message: r,
26
+ variant: e
27
+ });
28
+ },
29
+ /**
30
+ * Commits an error message to the store.
31
+ * @param {*} commit
32
+ * @param {String} message The message
33
+ */
34
+ showError({ commit: a }, r) {
35
+ a("SHOW_MESSAGE", {
36
+ message: r,
37
+ timeout: -1,
38
+ variant: "error"
39
+ });
40
+ }
41
+ }
42
+ };
43
+ export {
44
+ n as default
45
+ };
package/dist/index.js CHANGED
@@ -13,7 +13,6 @@ import s from "./data-provider-interface/DataProviderInterface.vue.js";
13
13
  import u from "./data-provider-interface/DPIMenu.vue.js";
14
14
  import { default as wo } from "./data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js";
15
15
  import { default as Oo } from "./data-provider-interface/HappyFlowComponents/DPIHome.vue.js";
16
- import { default as Mo } from "./data-provider-interface/store/dpiStore.js";
17
16
  import x from "./data-provider-interface/views/DistributionOverview.vue.js";
18
17
  import c from "./data-provider-interface/views/DraftsPage.vue.js";
19
18
  import l from "./data-provider-interface/views/InputPage.vue.js";
@@ -25,7 +24,8 @@ import C from "./data-provider-interface/views/OverviewPage/DistributionOverview
25
24
  import P from "./data-provider-interface/views/OverviewPage/PropertyEntry.vue.js";
26
25
  import I from "./data-provider-interface/views/UserCataloguesPage.vue.js";
27
26
  import w from "./data-provider-interface/views/UserProfilePage.vue.js";
28
- import { config as ho } from "./data-provider-interface/config/dpi-spec-config.js";
27
+ import { config as Mo } from "./data-provider-interface/config/dpi-spec-config.js";
28
+ import { default as ho } from "./data-provider-interface/store/index.js";
29
29
  import { injectionKey as Bo, userConfigShimPlugin as Lo } from "./data-provider-interface/plugins/userConfigShimPlugin.js";
30
30
  import { dpiContextKey as Fo, setupDpiContext as To, useDpiContext as _o } from "./data-provider-interface/composables/useDpiContext.js";
31
31
  import { useDpiStepper as Ao } from "./data-provider-interface/composables/useDpiStepper.js";
@@ -108,12 +108,12 @@ export {
108
108
  I as UserCataloguesPage,
109
109
  w as UserProfilePage,
110
110
  Fo as dpiContextKey,
111
- ho as dpiSpecConfig,
111
+ Mo as dpiSpecConfig,
112
112
  Bo as injectionKeyRuntimeConfig,
113
113
  vo as inputDefinitions,
114
114
  lo as registerComponents,
115
115
  To as setupDpiContext,
116
- Mo as store,
116
+ ho as store,
117
117
  _o as useDpiContext,
118
118
  ko as useDpiEditMode,
119
119
  Ao as useDpiStepper,
@@ -0,0 +1,33 @@
1
+ import p from "axios";
2
+ const $ = ({ baseURL: n, authToken: D }) => {
3
+ const o = n.endsWith("/") ? "" : "/", s = p.create({
4
+ baseURL: `${n}${o}drafts`,
5
+ headers: {
6
+ "Content-Type": "text/turtle",
7
+ Authorization: `Bearer ${D}`
8
+ }
9
+ });
10
+ return {
11
+ createDatasetDraft: ({ id: t, catalogue: a, body: e }) => s.put(`/datasets/${t}`, e, {
12
+ headers: { "Content-Type": "application/json" },
13
+ params: { catalogue: a }
14
+ }),
15
+ getAllDatasetDrafts: () => s.get("/datasets"),
16
+ getDatasetDrafts: ({ id: t = "", catalogue: a = "", filterByProvider: e = !1 }) => {
17
+ const r = t ? `/${t}` : "";
18
+ return s.get(`/datasets${r}`, { params: { catalogue: a, filterByProvider: e } });
19
+ },
20
+ deleteDatasetDraft: ({ id: t, catalogue: a }) => s.delete(`/datasets/${t}`, { params: { catalogue: a } }),
21
+ publishDatasetDraft: ({ id: t, catalogue: a, body: e }) => {
22
+ const r = t ? `/${t}` : "";
23
+ return s.put(`/datasets/publish${r}`, e, { params: { catalogue: a } });
24
+ },
25
+ putDatasetToDraft: ({ id: t, catalogue: a }) => {
26
+ const e = t ? `/${t}` : "";
27
+ return s.put(`/datasets/hide${e}`, null, { params: { catalogue: a } });
28
+ }
29
+ };
30
+ };
31
+ export {
32
+ $ as default
33
+ };
@@ -1,32 +1,46 @@
1
- import { isNil as c, isObject as o, isString as u, has as s, isArray as d } from "lodash-es";
2
- function g(n, i, e) {
3
- if (!n || c(n) || !o(n) && !u(n))
1
+ import { isNil as g, isObject as y, isString as o, has as f, isArray as c } from "lodash-es";
2
+ function a(n, t, r) {
3
+ if (!n || g(n) || !y(n) && !o(n))
4
4
  return;
5
- if (u(n))
5
+ if (o(n))
6
6
  return n;
7
- if (s(n, i))
8
- return i;
9
- if (e && d(e)) {
10
- const f = e.find((r) => r && u(r) && s(n, r.toLowerCase()));
11
- if (f)
12
- return f;
13
- }
14
- const t = Object.keys(n)[0];
15
- if (t)
7
+ if (f(n, t))
16
8
  return t;
9
+ if (r && c(r)) {
10
+ const i = r.find((u) => u && o(u) && f(n, u.toLowerCase()));
11
+ if (i)
12
+ return i;
13
+ }
14
+ const e = Object.keys(n)[0];
15
+ if (e)
16
+ return e;
17
17
  }
18
- function y(n, i, e) {
19
- const t = g(n, i, e);
20
- return t ? n[t] : void 0;
18
+ function O(n, t, r) {
19
+ const e = a(n, t, r);
20
+ return e ? n[e] : void 0;
21
21
  }
22
- function O(n, i, e) {
22
+ function R(n, t, r) {
23
23
  if (!n)
24
24
  return "";
25
- const t = n.substring(0, i);
26
- return e || n.length <= i ? t : `${t}...`;
25
+ const e = n.substring(0, t);
26
+ return r || n.length <= t ? e : `${e}...`;
27
+ }
28
+ function T(n, t) {
29
+ const r = c(t) ? t : [t];
30
+ return (e) => new Proxy({
31
+ // Add preliminary dstProps to object so lodash _.has won't return false
32
+ ...e,
33
+ ...r.reduce((i, u) => (i[u] = e[n], i), {})
34
+ }, {
35
+ get(i, u, s) {
36
+ const d = r.includes(n) ? n : u;
37
+ return Reflect.get(i, d, s);
38
+ }
39
+ });
27
40
  }
28
41
  export {
29
- g as getRepresentativeLocaleOf,
30
- y as getTranslationFor,
31
- O as truncate
42
+ a as getRepresentativeLocaleOf,
43
+ O as getTranslationFor,
44
+ T as mirrorPropertyFn,
45
+ R as truncate
32
46
  };
@@ -0,0 +1,16 @@
1
+ import o from "axios";
2
+ const p = ({ baseURL: e, authToken: t }) => {
3
+ const r = e.endsWith("/") ? "" : "/", i = o.create({
4
+ baseURL: `${e}${r}identifiers`,
5
+ headers: {
6
+ "Content-Type": "text/turtle",
7
+ Authorization: `Bearer ${t}`
8
+ }
9
+ });
10
+ return {
11
+ createPersistentIdentifier: ({ id: a, catalogue: s, type: n = "mock" }) => i.put(`/datasets/${a}`, null, { params: { catalogue: s, type: n } })
12
+ };
13
+ };
14
+ export {
15
+ p as default
16
+ };
@@ -0,0 +1,7 @@
1
+ function t(e) {
2
+ const o = e.split(".")[1];
3
+ return JSON.parse(window.atob(o));
4
+ }
5
+ export {
6
+ t as decode
7
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@piveau/dpi",
3
3
  "type": "module",
4
- "version": "0.1.0-beta.5",
4
+ "version": "0.1.0-beta.6",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css"
@@ -37,10 +37,10 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@antfu/eslint-config": "^4.19.0",
40
- "@formkit/core": "^1",
41
- "@formkit/themes": "^1",
40
+ "@formkit/core": "^1.6.9",
41
+ "@formkit/themes": "^1.6.9",
42
42
  "@formkit/utils": "^1.6.9",
43
- "@formkit/vue": "^1",
43
+ "@formkit/vue": "^1.6.9",
44
44
  "@headlessui/vue": "^1.7.23",
45
45
  "@histoire/plugin-vue": "1.0.0-alpha.2",
46
46
  "@phosphor-icons/vue": "^2.2.1",
@@ -48,6 +48,7 @@
48
48
  "@popperjs/core": "^2.11.8",
49
49
  "@types/jsonld": "^1.5.15",
50
50
  "@types/node": "^24.1.0",
51
+ "@vee-validate/zod": "^4.15.1",
51
52
  "@vitejs/plugin-vue": "^5.2.3",
52
53
  "@vue/tsconfig": "^0.7.0",
53
54
  "@vueuse/core": "^10.11.1",
@@ -63,6 +64,7 @@
63
64
  "qs": "^6.14.0",
64
65
  "sass": "^1.89.2",
65
66
  "typescript": "~5.8.3",
67
+ "vee-validate": "^4.15.1",
66
68
  "vite": "^6.3.5",
67
69
  "vite-plugin-dts": "^4.5.4",
68
70
  "vite-plugin-lib-inject-css": "^2.2.2",