@piveau/dpi 0.1.0-beta.5 → 0.1.0-beta.51
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.
- package/dist/assets/dpi.css +1 -1
- package/dist/data-provider-interface/DPIMenu.vue.js +2 -2
- package/dist/data-provider-interface/DataProviderInterface.vue2.js +45 -40
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +78 -66
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +100 -76
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +7 -7
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +434 -360
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +91 -61
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +109 -52
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +153 -102
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +571 -207
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +34 -56
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +301 -100
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +46 -27
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -39
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +182 -105
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
- package/dist/data-provider-interface/components/ContactPage.vue.js +153 -105
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
- package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +856 -790
- package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
- package/dist/data-provider-interface/components/HVDPage.vue.js +105 -82
- package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
- package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +302 -251
- package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +395 -0
- package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
- package/dist/data-provider-interface/composables/useDpiContext.js +5 -7
- package/dist/data-provider-interface/composables/useDpiEditMode.js +15 -13
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +472 -95
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +10 -3
- package/dist/data-provider-interface/store/index.js +32 -0
- package/dist/data-provider-interface/store/modules/authStore.js +301 -0
- package/dist/data-provider-interface/store/modules/catalogueDetailsStore.js +34 -0
- package/dist/data-provider-interface/store/modules/cataloguesStore.js +256 -0
- package/dist/data-provider-interface/store/modules/datasetDetailsStore.js +644 -0
- package/dist/data-provider-interface/store/modules/datasetsStore.js +361 -0
- package/dist/data-provider-interface/store/{dpiStore.js → modules/dpiStore.js} +11 -12
- package/dist/data-provider-interface/store/modules/snackbarStore.js +45 -0
- package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
- package/dist/data-provider-interface/views/InputPage.vue.js +378 -752
- package/dist/index.js +4 -4
- package/dist/styles/_dpi.scss +1614 -0
- package/dist/styles/_maps.scss +24 -0
- package/dist/styles/_variables.scss +973 -0
- package/dist/utils/draftApi.js +33 -0
- package/dist/utils/helpers.js +36 -22
- package/dist/utils/identifiersApi.js +16 -0
- package/dist/utils/jwt.js +7 -0
- package/package.json +12 -7
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +0 -41
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
- package/dist/data-provider-interface/store/modules/formSchemaStore.js +0 -94
|
@@ -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 "./
|
|
2
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
16
|
+
}, n = {
|
|
18
17
|
setSpecification: (i, t) => i.specification = t,
|
|
19
18
|
setSpecificationName: (i, t) => i.specificationName = t
|
|
20
|
-
},
|
|
19
|
+
}, m = {
|
|
21
20
|
namespaced: !0,
|
|
22
|
-
state:
|
|
23
|
-
actions:
|
|
24
|
-
mutations:
|
|
21
|
+
state: c,
|
|
22
|
+
actions: o,
|
|
23
|
+
mutations: n,
|
|
25
24
|
getters: a,
|
|
26
25
|
modules: {
|
|
27
|
-
formModule
|
|
28
|
-
navigationModule:
|
|
26
|
+
// formModule,
|
|
27
|
+
navigationModule: e
|
|
29
28
|
}
|
|
30
29
|
};
|
|
31
30
|
export {
|
|
32
|
-
|
|
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
|
+
};
|
|
@@ -163,14 +163,14 @@ function Q(a, e, m, _, p, r) {
|
|
|
163
163
|
fragment: "#",
|
|
164
164
|
role: "button",
|
|
165
165
|
id: "linkedDataDropdown",
|
|
166
|
-
"data-toggle": "dropdown",
|
|
166
|
+
"data-bs-toggle": "dropdown",
|
|
167
167
|
"aria-haspopup": "true",
|
|
168
168
|
"aria-expanded": "false"
|
|
169
169
|
}, {
|
|
170
170
|
default: i(() => [
|
|
171
171
|
t("span", {
|
|
172
172
|
title: a.$t("message.metadata.linkedData"),
|
|
173
|
-
"data-toggle": "tooltip",
|
|
173
|
+
"data-bs-toggle": "tooltip",
|
|
174
174
|
"data-placement": "top"
|
|
175
175
|
}, o(a.$t("message.metadata.linkedData")), 9, H)
|
|
176
176
|
]),
|
|
@@ -272,7 +272,7 @@ function Q(a, e, m, _, p, r) {
|
|
|
272
272
|
}, 8, ["loading", "onConfirm"])
|
|
273
273
|
]);
|
|
274
274
|
}
|
|
275
|
-
const rt = /* @__PURE__ */ I(C, [["render", Q], ["__scopeId", "data-v-
|
|
275
|
+
const rt = /* @__PURE__ */ I(C, [["render", Q], ["__scopeId", "data-v-f3a8f6a6"]]);
|
|
276
276
|
export {
|
|
277
277
|
rt as default
|
|
278
278
|
};
|