@piveau/piveau-hub-ui-modules 4.6.10 → 4.6.12

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 i from "../facets/ExpandableSelectFacet.vue.mjs";
1
+ import e from "../facets/ExpandableSelectFacet.vue.mjs";
2
2
  import a from "../facets/RadioFacet.vue.mjs";
3
3
  import m from "../widgets/PvShowMore.vue.mjs";
4
4
  import s from "../widgets/PvButton.vue.mjs";
@@ -6,21 +6,23 @@ import n from "../widgets/PvBanner.vue.mjs";
6
6
  import p from "../datasetDetails/navigation/DatasetDetailsNavigationPage.vue.mjs";
7
7
  import f from "../PvDataInfoBox/PvDataInfoBox.vue.mjs";
8
8
  import D from "../datasets/Datasets.vue.mjs";
9
- import c from "../datasetDetails/distributions/DistributionsHeader.vue.mjs";
10
- import l from "../datasetDetails/distributions/distributionDetails/DistributionDetails.vue.mjs";
9
+ import l from "../datasetDetails/distributions/DistributionsHeader.vue.mjs";
10
+ import c from "../datasetDetails/distributions/distributionDetails/DistributionDetails.vue.mjs";
11
11
  import u from "../facets/SelectedFacetsOverview.vue.mjs";
12
12
  import b from "../navigation/SubNavigation.vue.mjs";
13
- import v from "../datasetDetails/header/DatasetDetailsHeader.vue.mjs";
14
- import d from "../datasetDetails/DatasetDetailsDescription.vue.mjs";
13
+ import d from "../datasetDetails/header/DatasetDetailsHeader.vue.mjs";
14
+ import v from "../datasetDetails/DatasetDetailsDescription.vue.mjs";
15
15
  import F from "../datasetDetails/DatasetDetailsDataset.vue.mjs";
16
16
  import P from "../datasetDetails/distributions/Distribution.vue.mjs";
17
17
  import S from "../datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs";
18
18
  import g from "../datasetDetails/properties/DatasetDetailsProperties.vue.mjs";
19
- import x from "../datasetDetails/features/DatasetDetailsFeatures.vue.mjs";
20
- import B from "../datasetDetails/features/DatasetDetailsFeatureHeader.vue.mjs";
21
- import C from "../datasetDetails/distributions/distributionPreview/DistributionVisualisationSlot.vue.mjs";
19
+ import w from "../datasetDetails/features/DatasetDetailsFeatures.vue.mjs";
20
+ import x from "../datasetDetails/features/DatasetDetailsFeatureHeader.vue.mjs";
21
+ import B from "../datasetDetails/distributions/distributionPreview/DistributionVisualisationSlot.vue.mjs";
22
+ import C from "../datasetDetails/distributions/DownloadAllDistributions.vue.mjs";
22
23
  const H = {
23
- SelectFacet: i,
24
+ SelectFacet: e,
25
+ DownloadAllDistributions: C,
24
26
  RadioFacet: a,
25
27
  PvShowMore: m,
26
28
  PvButton: s,
@@ -28,27 +30,27 @@ const H = {
28
30
  DatasetDetailsNavigationPage: p,
29
31
  PvDataInfoBox: f,
30
32
  Datasets: D,
31
- DistributionsHeader: c,
32
- DistributionDetails: l,
33
+ DistributionsHeader: l,
34
+ DistributionDetails: c,
33
35
  SelectedFacetsOverview: u,
34
36
  SubNavigation: b,
35
- DatasetDetailsHeader: v,
36
- DatasetDetailsDescription: d,
37
+ DatasetDetailsHeader: d,
38
+ DatasetDetailsDescription: v,
37
39
  DatasetDetailsDataset: F,
38
40
  Distribution: P,
39
41
  DistributionActions: S,
40
42
  DatasetDetailsProperties: g,
41
- DatasetDetailsFeatures: x,
42
- DatasetDetailsFeatureHeader: B,
43
- DistributionVisualisationSlot: C
43
+ DatasetDetailsFeatures: w,
44
+ DatasetDetailsFeatureHeader: x,
45
+ DistributionVisualisationSlot: B
44
46
  };
45
- function W(r, e) {
46
- const t = { ...H, ...e };
47
+ function Y(r, i) {
48
+ const t = { ...H, ...i };
47
49
  Object.keys(t).forEach((o) => {
48
50
  r.component(o, t[o]);
49
51
  });
50
52
  }
51
53
  export {
52
- W as configureComponents
54
+ Y as configureComponents
53
55
  };
54
56
  //# sourceMappingURL=configureComponents.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"configureComponents.mjs","sources":["../../lib/configurations/configureComponents.ts"],"sourcesContent":["import ExpandableSelectFacet from \"../facets/ExpandableSelectFacet.vue\";\nimport RadioFacet from \"../facets/RadioFacet.vue\";\nimport PvShowMore from \"../widgets/PvShowMore.vue\";\nimport PvButton from \"../widgets/PvButton.vue\";\nimport PvBanner from \"../widgets/PvBanner.vue\";\nimport DatasetDetailsNavigationPage from \"../datasetDetails/navigation/DatasetDetailsNavigationPage.vue\";\nimport PvDataInfoBox from \"../PvDataInfoBox/PvDataInfoBox.vue\";\nimport Datasets from \"../datasets/Datasets.vue\";\nimport DistributionsHeader from \"../datasetDetails/distributions/DistributionsHeader.vue\";\nimport DistributionDetails from \"../datasetDetails/distributions/distributionDetails/DistributionDetails.vue\";\nimport SelectedFacetsOverview from \"../facets/SelectedFacetsOverview.vue\"\nimport SubNavigation from \"../navigation/SubNavigation.vue\";\nimport DatasetDetailsHeader from \"../datasetDetails/header/DatasetDetailsHeader.vue\";\nimport DatasetDetailsDescription from \"../datasetDetails/DatasetDetailsDescription.vue\";\nimport DatasetDetailsDataset from \"../datasetDetails/DatasetDetailsDataset.vue\";\nimport Distribution from \"../datasetDetails/distributions/Distribution.vue\";\nimport DistributionActions from \"../datasetDetails/distributions/distributionActions/DistributionActions.vue\";\nimport DatasetDetailsProperties from \"../datasetDetails/properties/DatasetDetailsProperties.vue\";\nimport DatasetDetailsFeatures from \"../datasetDetails/features/DatasetDetailsFeatures.vue\";\nimport DatasetDetailsFeatureHeader from \"../datasetDetails/features/DatasetDetailsFeatureHeader.vue\"\nimport DistributionVisualisationSlot from \"../datasetDetails/distributions/distributionPreview/DistributionVisualisationSlot.vue\";\n\nexport type ComponentMap = { [key: string]: any };\n\nconst defaultComponents: ComponentMap = {\n SelectFacet: ExpandableSelectFacet,\n RadioFacet,\n PvShowMore,\n PvButton,\n PvBanner,\n DatasetDetailsNavigationPage,\n PvDataInfoBox,\n Datasets,\n DistributionsHeader,\n DistributionDetails,\n SelectedFacetsOverview,\n SubNavigation,\n DatasetDetailsHeader,\n DatasetDetailsDescription,\n DatasetDetailsDataset,\n Distribution,\n DistributionActions,\n DatasetDetailsProperties,\n DatasetDetailsFeatures,\n DatasetDetailsFeatureHeader,\n DistributionVisualisationSlot\n};\n\nexport function configureComponents(app: any, components?: ComponentMap) {\n const allComponents: ComponentMap = { ...defaultComponents, ...components };\n const componentKeys: string[] = Object.keys(allComponents);\n componentKeys.forEach((key: string) => { \n app.component(key, allComponents[key]);\n });\n}\n"],"names":["defaultComponents","ExpandableSelectFacet","RadioFacet","PvShowMore","PvButton","PvBanner","DatasetDetailsNavigationPage","PvDataInfoBox","Datasets","DistributionsHeader","DistributionDetails","SelectedFacetsOverview","SubNavigation","DatasetDetailsHeader","DatasetDetailsDescription","DatasetDetailsDataset","Distribution","DistributionActions","DatasetDetailsProperties","DatasetDetailsFeatures","DatasetDetailsFeatureHeader","DistributionVisualisationSlot","configureComponents","app","components","allComponents","key"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA,MAAMA,IAAkC;AAAA,EACtC,aAAaC;AAAA,EACb,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,8BAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,wBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,2BAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,0BAAAC;AAAA,EACA,wBAAAC;AAAA,EACA,6BAAAC;AAAA,EACA,+BAAAC;AACF;AAEgB,SAAAC,EAAoBC,GAAUC,GAA2B;AACvE,QAAMC,IAA8B,EAAE,GAAGzB,GAAmB,GAAGwB,EAAW;AAE5D,EADkB,OAAO,KAAKC,CAAa,EAC3C,QAAQ,CAACC,MAAgB;AACrC,IAAAH,EAAI,UAAUG,GAAKD,EAAcC,CAAG,CAAC;AAAA,EAAA,CACtC;AACH;"}
1
+ {"version":3,"file":"configureComponents.mjs","sources":["../../lib/configurations/configureComponents.ts"],"sourcesContent":["import ExpandableSelectFacet from \"../facets/ExpandableSelectFacet.vue\";\nimport RadioFacet from \"../facets/RadioFacet.vue\";\nimport PvShowMore from \"../widgets/PvShowMore.vue\";\nimport PvButton from \"../widgets/PvButton.vue\";\nimport PvBanner from \"../widgets/PvBanner.vue\";\nimport DatasetDetailsNavigationPage from \"../datasetDetails/navigation/DatasetDetailsNavigationPage.vue\";\nimport PvDataInfoBox from \"../PvDataInfoBox/PvDataInfoBox.vue\";\nimport Datasets from \"../datasets/Datasets.vue\";\nimport DistributionsHeader from \"../datasetDetails/distributions/DistributionsHeader.vue\";\nimport DistributionDetails from \"../datasetDetails/distributions/distributionDetails/DistributionDetails.vue\";\nimport SelectedFacetsOverview from \"../facets/SelectedFacetsOverview.vue\"\nimport SubNavigation from \"../navigation/SubNavigation.vue\";\nimport DatasetDetailsHeader from \"../datasetDetails/header/DatasetDetailsHeader.vue\";\nimport DatasetDetailsDescription from \"../datasetDetails/DatasetDetailsDescription.vue\";\nimport DatasetDetailsDataset from \"../datasetDetails/DatasetDetailsDataset.vue\";\nimport Distribution from \"../datasetDetails/distributions/Distribution.vue\";\nimport DistributionActions from \"../datasetDetails/distributions/distributionActions/DistributionActions.vue\";\nimport DatasetDetailsProperties from \"../datasetDetails/properties/DatasetDetailsProperties.vue\";\nimport DatasetDetailsFeatures from \"../datasetDetails/features/DatasetDetailsFeatures.vue\";\nimport DatasetDetailsFeatureHeader from \"../datasetDetails/features/DatasetDetailsFeatureHeader.vue\"\nimport DistributionVisualisationSlot from \"../datasetDetails/distributions/distributionPreview/DistributionVisualisationSlot.vue\";\nimport DownloadAllDistributions from \"../datasetDetails/distributions/DownloadAllDistributions\";\n\nexport type ComponentMap = { [key: string]: any };\n\nconst defaultComponents: ComponentMap = {\n SelectFacet: ExpandableSelectFacet,\n DownloadAllDistributions,\n RadioFacet,\n PvShowMore,\n PvButton,\n PvBanner,\n DatasetDetailsNavigationPage,\n PvDataInfoBox,\n Datasets,\n DistributionsHeader,\n DistributionDetails,\n SelectedFacetsOverview,\n SubNavigation,\n DatasetDetailsHeader,\n DatasetDetailsDescription,\n DatasetDetailsDataset,\n Distribution,\n DistributionActions,\n DatasetDetailsProperties,\n DatasetDetailsFeatures,\n DatasetDetailsFeatureHeader,\n DistributionVisualisationSlot\n};\n\nexport function configureComponents(app: any, components?: ComponentMap) {\n const allComponents: ComponentMap = { ...defaultComponents, ...components };\n const componentKeys: string[] = Object.keys(allComponents);\n componentKeys.forEach((key: string) => {\n app.component(key, allComponents[key]);\n });\n}\n"],"names":["defaultComponents","ExpandableSelectFacet","DownloadAllDistributions","RadioFacet","PvShowMore","PvButton","PvBanner","DatasetDetailsNavigationPage","PvDataInfoBox","Datasets","DistributionsHeader","DistributionDetails","SelectedFacetsOverview","SubNavigation","DatasetDetailsHeader","DatasetDetailsDescription","DatasetDetailsDataset","Distribution","DistributionActions","DatasetDetailsProperties","DatasetDetailsFeatures","DatasetDetailsFeatureHeader","DistributionVisualisationSlot","configureComponents","app","components","allComponents","key"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAMA,IAAkC;AAAA,EACtC,aAAaC;AAAA,EACb,0BAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,8BAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,wBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,2BAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,0BAAAC;AAAA,EACA,wBAAAC;AAAA,EACA,6BAAAC;AAAA,EACA,+BAAAC;AACF;AAEgB,SAAAC,EAAoBC,GAAUC,GAA2B;AACvE,QAAMC,IAA8B,EAAE,GAAG1B,GAAmB,GAAGyB,EAAW;AAE5D,EADkB,OAAO,KAAKC,CAAa,EAC3C,QAAQ,CAACC,MAAgB;AACrC,IAAAH,EAAI,UAAUG,GAAKD,EAAcC,CAAG,CAAC;AAAA,EAAA,CACtC;AACH;"}
@@ -1,34 +1,34 @@
1
- import { computed as u, ref as i, watch as N, onMounted as J, nextTick as O, openBlock as a, createElementBlock as d, createElementVNode as h, toDisplayString as V, createTextVNode as k, withDirectives as $, createVNode as z, unref as M, vShow as U, Fragment as j, renderList as A, createCommentVNode as D } from "vue";
2
- import { useStore as X } from "vuex";
3
- import { getNode as Y } from "@formkit/core";
4
- import { onClickOutside as Z, useAsyncState as g } from "../../external/@vueuse/core/index";
5
- import ee from "axios";
6
- import { useRuntimeEnv as te } from "../../composables/useRuntimeEnv.mjs";
7
- import { useI18n as se } from "vue-i18n";
8
- import { FormKit as T } from "@formkit/vue";
1
+ import { computed as u, ref as i, watch as N, onMounted as X, nextTick as O, openBlock as a, createElementBlock as d, createElementVNode as h, toDisplayString as V, createTextVNode as k, withDirectives as $, createVNode as z, unref as M, vShow as T, Fragment as U, renderList as j, createCommentVNode as A } from "vue";
2
+ import { useStore as Y } from "vuex";
3
+ import { getNode as Z } from "@formkit/core";
4
+ import { onClickOutside as g, useAsyncState as ee } from "../../external/@vueuse/core/index";
5
+ import te from "axios";
6
+ import { useRuntimeEnv as se } from "../../composables/useRuntimeEnv.mjs";
7
+ import { useI18n as le } from "vue-i18n";
8
+ import { FormKit as D } from "@formkit/vue";
9
9
  import "./SimpleSelect.vue2.mjs";
10
- const le = { class: "formkitProperty" }, re = { class: "position-relative formkitCmpWrap" }, oe = { key: 0 }, ne = ["onClick"], ue = ["onClick"], Ce = {
10
+ const re = { class: "formkitProperty" }, oe = { class: "position-relative formkitCmpWrap" }, ne = { key: 0 }, ue = ["onClick"], ie = ["onClick"], be = {
11
11
  __name: "SimpleSelect",
12
12
  props: {
13
13
  context: Object
14
14
  },
15
15
  setup(q) {
16
- const m = q, { locale: B, fallbackLocale: K } = se({ useScope: "global" });
16
+ const m = q, { locale: B, fallbackLocale: K } = le({ useScope: "global" });
17
17
  u(() => localStorage.getItem("dpi_duplicate"));
18
- const w = u(() => I.getters["auth/getUserCatalogIds"]), v = i(!1), I = X(), L = i(null), Q = i();
19
- i(!0), Q.value = u(() => I.getters["auth/getIsEditMode"]);
20
- const P = te(), f = i(""), c = i(""), S = i(!1);
21
- Z(L, (l) => v.value = !1);
18
+ const w = u(() => I.getters["auth/getUserCatalogIds"]), v = i(!1), I = Y(), L = i(null), Q = i(), P = i(!0);
19
+ Q.value = u(() => I.getters["auth/getIsEditMode"]);
20
+ const W = se(), f = i(""), c = i(""), S = i(!1);
21
+ g(L, (l) => v.value = !1);
22
22
  const y = async (l) => {
23
- l.id ? (c.value = l.id, f.value = l.name) : (c.value = l, f.value = l), v.value = !1;
24
- }, { execute: W, state: o, isReady: R, error: E } = g(async () => await ee.get(P.api.baseUrl + "search?filter=catalogue&limit=1000"), { data: { result: { results: [] } } }, { immediate: !1 }), G = u(() => S.value && !!o.value && R.value);
23
+ P.value = !1, l.id ? (c.value = l.id, f.value = l.name) : (c.value = l, f.value = l), v.value = !1;
24
+ }, { execute: G, state: o, isReady: R, error: E } = ee(async () => await te.get(W.api.baseUrl + "search?filter=catalogue&limit=1000"), { data: { result: { results: [] } } }, { immediate: !1 }), H = u(() => S.value && !!o.value && R.value);
25
25
  N(E, () => {
26
26
  console.error(E.value);
27
27
  });
28
28
  const F = u(() => {
29
29
  var l, e, s, r;
30
30
  return ((r = (s = (e = (l = o == null ? void 0 : o.value) == null ? void 0 : l.data) == null ? void 0 : e.result) == null ? void 0 : s.results) == null ? void 0 : r.length) > 0;
31
- }), H = u(() => {
31
+ }), J = u(() => {
32
32
  var l, e, s, r;
33
33
  return F && ((r = (s = (e = (l = o == null ? void 0 : o.value) == null ? void 0 : l.data) == null ? void 0 : e.result) == null ? void 0 : s.results) == null ? void 0 : r.length) === 1;
34
34
  }), x = u(() => {
@@ -43,31 +43,31 @@ const le = { class: "formkitProperty" }, re = { class: "position-relative formki
43
43
  return t != null && t.title ? typeof (t == null ? void 0 : t.title) == "string" ? b = t == null ? void 0 : t.title : typeof (t == null ? void 0 : t.title) == "object" && (b = (t == null ? void 0 : t.title[B.value]) || (t == null ? void 0 : t.title[K.value]) || ((_ = Object.values(t == null ? void 0 : t.title)) == null ? void 0 : _[0]) || n) : b = n, { id: n, name: b || n };
44
44
  });
45
45
  });
46
- return N(H, (l) => {
46
+ return N(J, (l) => {
47
47
  if (l) {
48
48
  const e = o.value.data.result.results[0];
49
49
  y({ id: e.id, name: e.name });
50
50
  }
51
- }, { immediate: !0 }), J(async () => {
51
+ }, { immediate: !0 }), X(async () => {
52
52
  var s, r, p;
53
- await W(), await O();
54
- const l = ((r = (s = Y) == null ? void 0 : s("dcat:catalog")) == null ? void 0 : r.value) || void 0, e = (p = x.value) == null ? void 0 : p.find((C) => C.id === l);
53
+ await G(), await O();
54
+ const l = ((r = (s = Z) == null ? void 0 : s("dcat:catalog")) == null ? void 0 : r.value) || void 0, e = (p = x.value) == null ? void 0 : p.find((C) => C.id === l);
55
55
  e && y({ id: e.id, name: e.name }), await O(), S.value = !0;
56
- }), (l, e) => (a(), d("div", le, [
56
+ }), (l, e) => (a(), d("div", re, [
57
57
  h("h4", null, V(m.context.label), 1),
58
58
  e[6] || (e[6] = k()),
59
- h("div", re, [
60
- G.value ? (a(), d("div", oe, [
61
- $(z(M(T), {
59
+ h("div", oe, [
60
+ H.value ? (a(), d("div", ne, [
61
+ $(z(M(D), {
62
62
  modelValue: c.value,
63
63
  "onUpdate:modelValue": e[0] || (e[0] = (s) => c.value = s),
64
64
  name: `${m.context.node.name}`,
65
65
  type: "text"
66
66
  }, null, 8, ["modelValue", "name"]), [
67
- [U, !1]
67
+ [T, !1]
68
68
  ]),
69
69
  e[4] || (e[4] = k()),
70
- z(M(T), {
70
+ z(M(D), {
71
71
  class: "autocompleteInputfield",
72
72
  modelValue: f.value,
73
73
  "onUpdate:modelValue": e[1] || (e[1] = (s) => f.value = s),
@@ -87,26 +87,26 @@ const le = { class: "formkitProperty" }, re = { class: "position-relative formki
87
87
  ref: L,
88
88
  class: "autocompleteResultList selectListFK catSelectList"
89
89
  }, [
90
- (a(!0), d(j, null, A(x.value, (s) => (a(), d("li", {
90
+ (a(!0), d(U, null, j(x.value, (s) => (a(), d("li", {
91
91
  key: s,
92
92
  onClick: (r) => y(s),
93
93
  class: "p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC"
94
- }, V(s.name), 9, ne))), 128)),
94
+ }, V(s.name), 9, ue))), 128)),
95
95
  e[3] || (e[3] = k()),
96
- x.value.length === 0 ? (a(!0), d(j, { key: 0 }, A(w.value, (s) => (a(), d("li", {
96
+ x.value.length === 0 ? (a(!0), d(U, { key: 0 }, j(w.value, (s) => (a(), d("li", {
97
97
  key: s,
98
98
  onClick: (r) => y(s),
99
99
  class: "p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC"
100
- }, V(s), 9, ue))), 128)) : D("", !0)
100
+ }, V(s), 9, ie))), 128)) : A("", !0)
101
101
  ], 512), [
102
- [U, v.value]
102
+ [T, v.value]
103
103
  ])
104
- ])) : D("", !0)
104
+ ])) : A("", !0)
105
105
  ])
106
106
  ]));
107
107
  }
108
108
  };
109
109
  export {
110
- Ce as default
110
+ be as default
111
111
  };
112
112
  //# sourceMappingURL=SimpleSelect.vue.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleSelect.vue.mjs","sources":["../../../lib/data-provider-interface/components/SimpleSelect.vue"],"sourcesContent":["<template>\n <div class=\"formkitProperty\">\n <h4>{{ props.context.label }}</h4>\n <div class=\"position-relative formkitCmpWrap\">\n\n <div v-if=\"isReady\">\n <FormKit v-show=\"false\" v-model=\"catId\" :name=\"`${props.context.node.name}`\" type=\"text\" />\n <FormKit class=\"autocompleteInputfield\" v-model=\"catVal\" :placeholder=\"props.context.attrs.placeholder\"\n type=\"text\" @click=\"showList = !showList\" validation=\"required\" mandatory=\"true\" :validation-messages=\"{\n required: props.context.attrs.placeholder,\n }\" :name=\"`${props.context.node.name}__displayedValue`\" />\n <ul ref=\"dropdownList\" v-show=\"showList\" class=\"autocompleteResultList selectListFK catSelectList\">\n <li v-for=\"match in filteredCatalogs\" :key=\"match\" @click=\"setvalue(match)\"\n class=\"p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC\">{{\n match.name }}\n </li>\n <li v-if=\"filteredCatalogs.length === 0\" v-for=\"idMatch in userCats\" :key=\"idMatch\" @click=\"setvalue(idMatch)\"\n class=\"p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC\">{{\n idMatch }}\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n</template>\n<script setup>\nimport { ref, computed, onMounted, watch, nextTick } from 'vue';\nimport { useStore } from 'vuex';\nimport { getNode } from '@formkit/core'\nimport { onClickOutside } from '@vueuse/core'\nimport axios from 'axios'\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv.ts\";\nimport { useI18n } from 'vue-i18n';\nimport { useAsyncState } from '@vueuse/core';\nimport { FormKit } from '@formkit/vue';\n\nconst props = defineProps({\n context: Object\n})\n\nconst { locale, fallbackLocale } = useI18n({ useScope: 'global' })\n\nconst isDuplicate = computed(() => localStorage.getItem('dpi_duplicate'))\nconst userCats = computed(() => store.getters['auth/getUserCatalogIds']);\nconst showList = ref(false)\nconst store = useStore()\nconst dropdownList = ref(null)\nconst isEditMode = ref()\nconst validationTrigger = ref(true)\nisEditMode.value = computed(() => store.getters['auth/getIsEditMode']);\nconst env = useRuntimeEnv()\nconst catVal = ref('')\nconst catId = ref('')\nconst hasMounted = ref(false)\n\nonClickOutside(dropdownList, event => showList.value = false)\n\nconst setvalue = async (e) => {\n validationTrigger = false\n if (e.id) {\n catId.value = e.id\n catVal.value = e.name\n } else {\n catId.value = e\n catVal.value = e\n }\n\n showList.value = false\n}\n\nconst { execute: filterCatList, state: catalogListData, isReady: isQueryReady, error } = useAsyncState(async () => {\n const catalogListData = await axios.get(env.api.baseUrl + 'search?filter=catalogue&limit=1000')\n return catalogListData\n}, { data: { result: { results: [] } } }, { immediate: false })\n\nconst isReady = computed(() => hasMounted.value && !!catalogListData.value && isQueryReady.value)\n\nwatch(error, () => {\n console.error(error.value)\n})\n\nconst hasResults = computed(() => {\n return catalogListData?.value?.data?.result?.results?.length > 0\n})\n\nconst hasOneResultOnly = computed(() => {\n return hasResults && catalogListData?.value?.data?.result?.results?.length === 1\n})\n\n/**\n * Computes list of users' authorized catalogs in { id: string; name: string } format\n */\nconst filteredCatalogs = computed(() => {\n if (!hasResults.value || !isQueryReady.value) return []\n\n const allCatalogs = catalogListData.value?.data?.result?.results || []\n const authorizedCatalogs = allCatalogs.filter(catalog => userCats.value?.includes(catalog.id))\n\n // map to { id: string; name: string } pairs\n const authorizedCatalogsDataModel = authorizedCatalogs.map((catalog) => {\n const id = catalog?.id || ''\n let title = ''\n\n if (!catalog?.title) title = id\n else if (typeof catalog?.title === 'string') title = catalog?.title\n else if (typeof catalog?.title === 'object') title = \n catalog?.title[locale.value]\n || catalog?.title[fallbackLocale.value]\n || Object.values(catalog?.title)?.[0]\n || id\n\n return { id, name: title || id }\n });\n return authorizedCatalogsDataModel\n})\n\nwatch(hasOneResultOnly, (yes) => {\n if (yes) {\n const result = catalogListData.value.data.result.results[0]\n setvalue({ id: result.id, name: result.name })\n }\n}, { immediate: true })\n\nonMounted(async () => {\n await filterCatList()\n await nextTick()\n const catalogIdToLoadForEdit = getNode?.('dcat:catalog')?.value || undefined\n const maybeFoundCatalogFromQuery = filteredCatalogs.value?.find(item => item.id === catalogIdToLoadForEdit)\n if (maybeFoundCatalogFromQuery) {\n setvalue({ id: maybeFoundCatalogFromQuery.id, name: maybeFoundCatalogFromQuery.name })\n }\n await nextTick()\n hasMounted.value = true\n});\n\n</script>\n<style>\n.catSelectList {\n width: 97.3% !important;\n margin: 0 1rem;\n}\n\n.selectListFK {\n\n max-height: 20rem;\n overflow: overlay;\n overflow-x: hidden;\n}\n</style>"],"names":["props","__props","locale","fallbackLocale","useI18n","computed","userCats","store","showList","ref","useStore","dropdownList","isEditMode","env","useRuntimeEnv","catVal","catId","hasMounted","onClickOutside","event","setvalue","e","filterCatList","catalogListData","isQueryReady","error","useAsyncState","axios","isReady","watch","hasResults","_d","_c","_b","_a","hasOneResultOnly","filteredCatalogs","catalog","id","title","yes","result","onMounted","nextTick","catalogIdToLoadForEdit","getNode","maybeFoundCatalogFromQuery","item"],"mappings":";;;;;;;;;;;;;;;AAqCA,UAAMA,IAAQC,GAIR,EAAE,QAAAC,GAAQ,gBAAAC,EAAgB,IAAGC,GAAQ,EAAE,UAAU,UAAU;AAE7C,IAAAC,EAAS,MAAM,aAAa,QAAQ,eAAe,CAAC;AACxE,UAAMC,IAAWD,EAAS,MAAME,EAAM,QAAQ,wBAAwB,CAAC,GACjEC,IAAWC,EAAI,EAAK,GACpBF,IAAQG,EAAS,GACjBC,IAAeF,EAAI,IAAI,GACvBG,IAAaH,EAAI;AACG,IAAAA,EAAI,EAAI,GAClCG,EAAW,QAAQP,EAAS,MAAME,EAAM,QAAQ,oBAAoB,CAAC;AACrE,UAAMM,IAAMC,GAAc,GACpBC,IAASN,EAAI,EAAE,GACfO,IAAQP,EAAI,EAAE,GACdQ,IAAaR,EAAI,EAAK;AAE5B,IAAAS,EAAeP,GAAc,CAAAQ,MAASX,EAAS,QAAQ,EAAK;AAE5D,UAAMY,IAAW,OAAOC,MAAM;AAE5B,MAAIA,EAAE,MACJL,EAAM,QAAQK,EAAE,IAChBN,EAAO,QAAQM,EAAE,SAEjBL,EAAM,QAAQK,GACdN,EAAO,QAAQM,IAGjBb,EAAS,QAAQ;AAAA,IACnB,GAEM,EAAE,SAASc,GAAe,OAAOC,GAAiB,SAASC,GAAc,OAAAC,MAAUC,EAAc,YAC7E,MAAMC,GAAM,IAAId,EAAI,IAAI,UAAU,oCAAoC,GAE7F,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,GAAI,EAAA,KAAM,EAAE,WAAW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MAAMlC,EAAe,aAC9B+B,IAAA,OAAO,OAAOG,KAAA,gBAAAA,EAAS,KAAK,MAA5B,gBAAAH,EAAgC,OAChCI,KANgBC,IAAQD,GAQtB,EAAE,IAAAA,GAAI,MAAMC,KAASD,EAAG;AAAA,MACnC,CAAG;AAAA,IAEH,CAAC;AAED,WAAAT,EAAMM,GAAkB,CAACK,MAAQ;AAC/B,UAAIA,GAAK;AACP,cAAMC,IAASlB,EAAgB,MAAM,KAAK,OAAO,QAAQ,CAAC;AAC1D,QAAAH,EAAS,EAAE,IAAIqB,EAAO,IAAI,MAAMA,EAAO,MAAM;AAAA,MAC/C;AAAA,IACF,GAAG,EAAE,WAAW,IAAM,GAEtBC,EAAU,YAAY;;AACpB,YAAMpB,EAAc,GACpB,MAAMqB,EAAS;AACf,YAAMC,MAAyBX,KAAAC,IAAAW,MAAA,gBAAAX,EAAU,oBAAV,gBAAAD,EAA2B,UAAS,QAC7Da,KAA6Bd,IAAAI,EAAiB,UAAjB,gBAAAJ,EAAwB,KAAK,CAAAe,MAAQA,EAAK,OAAOH;AACpF,MAAIE,KACF1B,EAAS,EAAE,IAAI0B,EAA2B,IAAI,MAAMA,EAA2B,MAAM,GAEvF,MAAMH,EAAS,GACf1B,EAAW,QAAQ;AAAA,IACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SimpleSelect.vue.mjs","sources":["../../../lib/data-provider-interface/components/SimpleSelect.vue"],"sourcesContent":["<template>\n <div class=\"formkitProperty\">\n <h4>{{ props.context.label }}</h4>\n <div class=\"position-relative formkitCmpWrap\">\n\n <div v-if=\"isReady\">\n <FormKit v-show=\"false\" v-model=\"catId\" :name=\"`${props.context.node.name}`\" type=\"text\" />\n <FormKit class=\"autocompleteInputfield\" v-model=\"catVal\" :placeholder=\"props.context.attrs.placeholder\"\n type=\"text\" @click=\"showList = !showList\" validation=\"required\" mandatory=\"true\" :validation-messages=\"{\n required: props.context.attrs.placeholder,\n }\" :name=\"`${props.context.node.name}__displayedValue`\" />\n <ul ref=\"dropdownList\" v-show=\"showList\" class=\"autocompleteResultList selectListFK catSelectList\">\n <li v-for=\"match in filteredCatalogs\" :key=\"match\" @click=\"setvalue(match)\"\n class=\"p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC\">{{\n match.name }}\n </li>\n <li v-if=\"filteredCatalogs.length === 0\" v-for=\"idMatch in userCats\" :key=\"idMatch\" @click=\"setvalue(idMatch)\"\n class=\"p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC\">{{\n idMatch }}\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n</template>\n<script setup>\nimport { ref, computed, onMounted, watch, nextTick } from 'vue';\nimport { useStore } from 'vuex';\nimport { getNode } from '@formkit/core'\nimport { onClickOutside } from '@vueuse/core'\nimport axios from 'axios'\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv.ts\";\nimport { useI18n } from 'vue-i18n';\nimport { useAsyncState } from '@vueuse/core';\nimport { FormKit } from '@formkit/vue';\n\nconst props = defineProps({\n context: Object\n})\n\nconst { locale, fallbackLocale } = useI18n({ useScope: 'global' })\n\nconst isDuplicate = computed(() => localStorage.getItem('dpi_duplicate'))\nconst userCats = computed(() => store.getters['auth/getUserCatalogIds']);\nconst showList = ref(false)\nconst store = useStore()\nconst dropdownList = ref(null)\nconst isEditMode = ref()\nconst validationTrigger = ref(true)\nisEditMode.value = computed(() => store.getters['auth/getIsEditMode']);\nconst env = useRuntimeEnv()\nconst catVal = ref('')\nconst catId = ref('')\nconst hasMounted = ref(false)\n\nonClickOutside(dropdownList, event => showList.value = false)\n\nconst setvalue = async (e) => {\n validationTrigger.value = false\n if (e.id) {\n catId.value = e.id\n catVal.value = e.name\n } else {\n catId.value = e\n catVal.value = e\n }\n\n showList.value = false\n}\n\nconst { execute: filterCatList, state: catalogListData, isReady: isQueryReady, error } = useAsyncState(async () => {\n const catalogListData = await axios.get(env.api.baseUrl + 'search?filter=catalogue&limit=1000')\n return catalogListData\n}, { data: { result: { results: [] } } }, { immediate: false })\n\nconst isReady = computed(() => hasMounted.value && !!catalogListData.value && isQueryReady.value)\n\nwatch(error, () => {\n console.error(error.value)\n})\n\nconst hasResults = computed(() => {\n return catalogListData?.value?.data?.result?.results?.length > 0\n})\n\nconst hasOneResultOnly = computed(() => {\n return hasResults && catalogListData?.value?.data?.result?.results?.length === 1\n})\n\n/**\n * Computes list of users' authorized catalogs in { id: string; name: string } format\n */\nconst filteredCatalogs = computed(() => {\n if (!hasResults.value || !isQueryReady.value) return []\n\n const allCatalogs = catalogListData.value?.data?.result?.results || []\n const authorizedCatalogs = allCatalogs.filter(catalog => userCats.value?.includes(catalog.id))\n\n // map to { id: string; name: string } pairs\n const authorizedCatalogsDataModel = authorizedCatalogs.map((catalog) => {\n const id = catalog?.id || ''\n let title = ''\n\n if (!catalog?.title) title = id\n else if (typeof catalog?.title === 'string') title = catalog?.title\n else if (typeof catalog?.title === 'object') title =\n catalog?.title[locale.value]\n || catalog?.title[fallbackLocale.value]\n || Object.values(catalog?.title)?.[0]\n || id\n\n return { id, name: title || id }\n });\n return authorizedCatalogsDataModel\n})\n\nwatch(hasOneResultOnly, (yes) => {\n if (yes) {\n const result = catalogListData.value.data.result.results[0]\n setvalue({ id: result.id, name: result.name })\n }\n}, { immediate: true })\n\nonMounted(async () => {\n await filterCatList()\n await nextTick()\n const catalogIdToLoadForEdit = getNode?.('dcat:catalog')?.value || undefined\n const maybeFoundCatalogFromQuery = filteredCatalogs.value?.find(item => item.id === catalogIdToLoadForEdit)\n if (maybeFoundCatalogFromQuery) {\n setvalue({ id: maybeFoundCatalogFromQuery.id, name: maybeFoundCatalogFromQuery.name })\n }\n await nextTick()\n hasMounted.value = true\n});\n\n</script>\n<style>\n.catSelectList {\n width: 97.3% !important;\n margin: 0 1rem;\n}\n\n.selectListFK {\n\n max-height: 20rem;\n overflow: overlay;\n overflow-x: hidden;\n}\n</style>\n"],"names":["props","__props","locale","fallbackLocale","useI18n","computed","userCats","store","showList","ref","useStore","dropdownList","isEditMode","validationTrigger","env","useRuntimeEnv","catVal","catId","hasMounted","onClickOutside","event","setvalue","e","filterCatList","catalogListData","isQueryReady","error","useAsyncState","axios","isReady","watch","hasResults","_d","_c","_b","_a","hasOneResultOnly","filteredCatalogs","catalog","id","title","yes","result","onMounted","nextTick","catalogIdToLoadForEdit","getNode","maybeFoundCatalogFromQuery","item"],"mappings":";;;;;;;;;;;;;;;AAqCA,UAAMA,IAAQC,GAIR,EAAE,QAAAC,GAAQ,gBAAAC,EAAgB,IAAGC,GAAQ,EAAE,UAAU,UAAU;AAE7C,IAAAC,EAAS,MAAM,aAAa,QAAQ,eAAe,CAAC;AACxE,UAAMC,IAAWD,EAAS,MAAME,EAAM,QAAQ,wBAAwB,CAAC,GACjEC,IAAWC,EAAI,EAAK,GACpBF,IAAQG,EAAS,GACjBC,IAAeF,EAAI,IAAI,GACvBG,IAAaH,EAAI,GACjBI,IAAoBJ,EAAI,EAAI;AAClC,IAAAG,EAAW,QAAQP,EAAS,MAAME,EAAM,QAAQ,oBAAoB,CAAC;AACrE,UAAMO,IAAMC,GAAc,GACpBC,IAASP,EAAI,EAAE,GACfQ,IAAQR,EAAI,EAAE,GACdS,IAAaT,EAAI,EAAK;AAE5B,IAAAU,EAAeR,GAAc,CAAAS,MAASZ,EAAS,QAAQ,EAAK;AAE5D,UAAMa,IAAW,OAAOC,MAAM;AAC5B,MAAAT,EAAkB,QAAQ,IACtBS,EAAE,MACJL,EAAM,QAAQK,EAAE,IAChBN,EAAO,QAAQM,EAAE,SAEjBL,EAAM,QAAQK,GACdN,EAAO,QAAQM,IAGjBd,EAAS,QAAQ;AAAA,IACnB,GAEM,EAAE,SAASe,GAAe,OAAOC,GAAiB,SAASC,GAAc,OAAAC,MAAUC,GAAc,YAC7E,MAAMC,GAAM,IAAId,EAAI,IAAI,UAAU,oCAAoC,GAE7F,EAAE,MAAM,EA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AAA,EAAS,MAAMpC,EAAO,YACnBoC,KAAA,gBAAAA,EAAS,MAAMnC,EAAe,aAC9BgC,IAAA,OAAO,OAAOG,KAAA,gBAAAA,EAAS,KAAK,MAA5B,gBAAAH,EAAgC,OAChCI,KANgBC,IAAQD,GAQtB,EAAE,IAAAA,GAAI,MAAMC,KAASD,EAAG;AAAA,MACnC,CAAG;AAAA,IAEH,CAAC;AAED,WAAAT,EAAMM,GAAkB,CAACK,MAAQ;AAC/B,UAAIA,GAAK;AACP,cAAMC,IAASlB,EAAgB,MAAM,KAAK,OAAO,QAAQ,CAAC;AAC1D,QAAAH,EAAS,EAAE,IAAIqB,EAAO,IAAI,MAAMA,EAAO,MAAM;AAAA,MAC/C;AAAA,IACF,GAAG,EAAE,WAAW,IAAM,GAEtBC,EAAU,YAAY;;AACpB,YAAMpB,EAAc,GACpB,MAAMqB,EAAS;AACf,YAAMC,MAAyBX,KAAAC,IAAAW,MAAA,gBAAAX,EAAU,oBAAV,gBAAAD,EAA2B,UAAS,QAC7Da,KAA6Bd,IAAAI,EAAiB,UAAjB,gBAAAJ,EAAwB,KAAK,CAAAe,MAAQA,EAAK,OAAOH;AACpF,MAAIE,KACF1B,EAAS,EAAE,IAAI0B,EAA2B,IAAI,MAAMA,EAA2B,MAAM,GAEvF,MAAMH,EAAS,GACf1B,EAAW,QAAQ;AAAA,IACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -104,7 +104,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
104
104
  isDistributionsAllDisplayed: boolean;
105
105
  showPublisher: boolean;
106
106
  }, {}, {
107
- DownloadAllDistributions: any;
108
107
  DownloadAsModal: any;
109
108
  }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
110
109
  export default _default;
@@ -1,18 +1,14 @@
1
- import v from "./DownloadAllDistributions.vue.mjs";
2
- import { has as p, isNil as y } from "lodash-es";
3
- import { getTranslationFor as f } from "../../utils/helpers.mjs";
4
- import { mapGetters as I } from "vuex";
5
- import T from "./DistributionDownloadAsModal.vue.mjs";
6
- import { resolveComponent as s, openBlock as e, createElementBlock as a, createVNode as D, createTextVNode as l, createElementVNode as u, Fragment as A, renderList as C, createBlock as d, createCommentVNode as w } from "vue";
1
+ import { has as v, isNil as p } from "lodash-es";
2
+ import { getTranslationFor as y } from "../../utils/helpers.mjs";
3
+ import { mapGetters as f } from "vuex";
4
+ import I from "./DistributionDownloadAsModal.vue.mjs";
5
+ import { resolveComponent as s, openBlock as e, createElementBlock as a, createVNode as D, createTextVNode as l, createElementVNode as u, Fragment as T, renderList as A, createBlock as d, createCommentVNode as w } from "vue";
7
6
  import "./Distributions.vue2.mjs";
8
- import L from "../../_virtual/_plugin-vue_export-helper.mjs";
9
- const V = {
7
+ import C from "../../_virtual/_plugin-vue_export-helper.mjs";
8
+ const L = {
10
9
  name: "Distributions",
11
10
  components: {
12
- DownloadAllDistributions: v,
13
- // Distribution,
14
- DownloadAsModal: T
15
- // DistributionVisualisation,
11
+ DownloadAsModal: I
16
12
  },
17
13
  props: {
18
14
  openModal: Function,
@@ -72,14 +68,14 @@ const V = {
72
68
  };
73
69
  },
74
70
  computed: {
75
- ...I("datasetDetails", [
71
+ ...f("datasetDetails", [
76
72
  "getLanguages",
77
73
  "getCatalog"
78
74
  ])
79
75
  },
80
76
  methods: {
81
77
  getDistributionDescription(n) {
82
- return p(n, "description") && !y(n.description) ? f(n.description, this.$route.query.locale, this.getLanguages) : "-";
78
+ return v(n, "description") && !p(n.description) ? y(n.description, this.$route.query.locale, this.getLanguages) : "-";
83
79
  },
84
80
  selectDistribution(n) {
85
81
  this.previewedDistTitle = n.title, this.previewedDistDownloadUrl = n.url, this.previewedDistFormat = n.format, this.showDistibutionVisualisation = !0, this.componentKey += 1, this.$nextTick(() => {
@@ -88,10 +84,10 @@ const V = {
88
84
  });
89
85
  }
90
86
  }
91
- }, _ = { class: "mt-1 dsd-distributions" }, k = { class: "row" }, x = { class: "list list-unstyled w-100" }, E = { class: "w-100 d-flex flex-row justify-content-end" };
92
- function O(n, t, i, N, o, r) {
87
+ }, V = { class: "mt-1 dsd-distributions" }, _ = { class: "row" }, k = { class: "list list-unstyled w-100" }, x = { class: "w-100 d-flex flex-row justify-content-end" };
88
+ function E(n, t, i, O, o, r) {
93
89
  const m = s("distributions-header"), h = s("distribution"), g = s("download-all-distributions"), F = s("download-as-modal"), U = s("distribution-visualisation-slot");
94
- return e(), a("div", _, [
90
+ return e(), a("div", V, [
95
91
  D(m, {
96
92
  getDistributionDescription: r.getDistributionDescription,
97
93
  openModal: i.openModal,
@@ -102,13 +98,13 @@ function O(n, t, i, N, o, r) {
102
98
  embed: i.embed
103
99
  }, null, 8, ["getDistributionDescription", "openModal", "getDistributionTitle", "showDownloadUrls", "isUrlInvalid", "showPublisher", "embed"]),
104
100
  t[1] || (t[1] = l()),
105
- u("div", k, [
106
- u("ul", x, [
101
+ u("div", _, [
102
+ u("ul", k, [
107
103
  (e(), a("div", {
108
104
  class: "distributions",
109
105
  key: `${i.expandedDistributions.length}--${i.expandedDistributionDescriptions.length}`
110
106
  }, [
111
- (e(!0), a(A, null, C(i.displayedDistributions, (c, b) => (e(), d(h, {
107
+ (e(!0), a(T, null, A(i.displayedDistributions, (c, b) => (e(), d(h, {
112
108
  onSelectForPreview: r.selectDistribution,
113
109
  key: `${b}--${c.id}`,
114
110
  distribution: c,
@@ -152,7 +148,7 @@ function O(n, t, i, N, o, r) {
152
148
  ]))
153
149
  ]),
154
150
  t[0] || (t[0] = l()),
155
- u("div", E, [
151
+ u("div", x, [
156
152
  o.downloadAllTop ? w("", !0) : (e(), d(g, {
157
153
  key: 0,
158
154
  getDistributionDescription: r.getDistributionDescription,
@@ -176,8 +172,8 @@ function O(n, t, i, N, o, r) {
176
172
  }, null, 8, ["title", "downloadUrl", "format"])) : w("", !0)
177
173
  ]);
178
174
  }
179
- const S = /* @__PURE__ */ L(V, [["render", O], ["__scopeId", "data-v-1d6189ce"]]);
175
+ const R = /* @__PURE__ */ C(L, [["render", E], ["__scopeId", "data-v-9fa8ef29"]]);
180
176
  export {
181
- S as default
177
+ R as default
182
178
  };
183
179
  //# sourceMappingURL=Distributions.vue.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Distributions.vue.mjs","sources":["../../../lib/datasetDetails/distributions/Distributions.vue"],"sourcesContent":["<template>\n <div class=\"mt-1 dsd-distributions\">\n <distributions-header\n :getDistributionDescription=\"getDistributionDescription\"\n :openModal=\"openModal\"\n :getDistributionTitle=\"getDistributionTitle\"\n :showDownloadUrls=\"showDownloadUrls\"\n :isUrlInvalid=\"isUrlInvalid\"\n :showPublisher=\"showPublisher\"\n :embed=\"embed\"\n />\n <div class=\"row\">\n <ul class=\"list list-unstyled w-100\">\n <div class=\"distributions\" :key=\"`${expandedDistributions.length}--${expandedDistributionDescriptions.length}`\">\n <distribution\n v-for=\"(distribution, index) in displayedDistributions\"\n @selectForPreview=\"selectDistribution\"\n :key=\"`${index}--${distribution.id}`\"\n :distribution=\"distribution\"\n :fading=\"!distributions.displayAll && !isDistributionsAllDisplayed && index === distributions.displayCount - 1\"\n :distributions=\"distributions\"\n :setDistributionsDisplayCount=\"setDistributionsDisplayCount\"\n :getDistributionFormat=\"getDistributionFormat\"\n :distributionFormatTruncated=\"distributionFormatTruncated\"\n :getDistributionTitle=\"getDistributionTitle\"\n :distributionVisibleContent=\"distributionVisibleContent\"\n :distributionExpandedContent=\"distributionExpandedContent\"\n :distributionDescriptionIsExpanded=\"distributionDescriptionIsExpanded\"\n :distributionDescriptionIsExpandable=\"distributionDescriptionIsExpandable\"\n :getDistributionDescription=\"getDistributionDescription\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n :showObject=\"showObject\"\n :showNumber=\"showNumber\"\n :showDownloadDropdown=\"showDownloadDropdown\"\n :showLicence=\"showLicence\"\n :showLicensingAssistant=\"showLicensingAssistant\"\n :filterDateFormatEU=\"filterDateFormatEU\"\n :showArray=\"showArray\"\n :showObjectArray=\"showObjectArray\"\n :getVisualisationLink=\"getVisualisationLink\"\n :isOnlyOneUrl=\"isOnlyOneUrl\"\n :getDownloadUrl=\"getDownloadUrl\"\n :trackGoto=\"trackGoto\"\n :showAccessUrls=\"showAccessUrls\"\n :replaceHttp=\"replaceHttp\"\n :previewLinkCallback=\"previewLinkCallback\"\n :toggleDistribution=\"toggleDistribution\"\n :toggleDistributionDescription=\"toggleDistributionDescription\"\n :increaseNumDisplayedDistributions=\"increaseNumDisplayedDistributions\"\n :nonOverflowingIncrementsForDistributions=\"nonOverflowingIncrementsForDistributions\"\n :isUrlInvalid=\"isUrlInvalid\"\n :openIfValidUrl=\"openIfValidUrl\"\n :showTooltipVisualiseButton=\"showTooltipVisualiseButton\"\n :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n :embed=\"embed\"\n />\n </div>\n </ul>\n <div class=\"w-100 d-flex flex-row justify-content-end\">\n <download-all-distributions\n v-if=\"!downloadAllTop\"\n :getDistributionDescription=\"getDistributionDescription\"\n :openModal=\"openModal\"\n :getDistributionTitle=\"getDistributionTitle\"\n :showDownloadUrls=\"showDownloadUrls\"\n :isUrlInvalid=\"isUrlInvalid\"\n />\n </div>\n </div>\n <download-as-modal />\n <!-- <distribution-visualization v-if=\"showDistibutionVisualisation\" class=\"mb-4\"></distribution-visualization> -->\n <distribution-visualisation-slot \n v-if=\"showDistibutionVisualisation && showVisualisation\"\n ref=\"visualisationComponent\"\n :key=\"componentKey\"\n class=\"mb-4\"\n :title=\"previewedDistTitle\"\n :downloadUrl=\"previewedDistDownloadUrl\"\n :format=\"previewedDistFormat\"\n ></distribution-visualisation-slot>\n </div>\n</template>\n\n<script>\n\n// import Distribution from './Distribution.vue';\nimport DownloadAllDistributions from \"../../datasetDetails/distributions/DownloadAllDistributions\";\nimport {has, isNil} from \"lodash\";\nimport {getTranslationFor} from \"../../utils/helpers\";\nimport { mapGetters } from \"vuex\";\nimport DownloadAsModal from \"../../datasetDetails/distributions/DistributionDownloadAsModal\";\n// import DistributionVisualisation from \"./distributionPreview/DistributionVisualisation.vue\";\n\nexport default {\n name: 'Distributions',\n components: {\n DownloadAllDistributions,\n // Distribution,\n DownloadAsModal,\n // DistributionVisualisation,\n },\n props: {\n openModal: Function,\n expandedDistributions: Array,\n expandedDistributionDescriptions: Array,\n displayedDistributions: Array,\n distributions: Object,\n setDistributionsDisplayCount: Function,\n isDistributionsAllDisplayed: Boolean,\n pages: Object,\n showDownloadUrls: Function,\n getDistributionFormat: Function,\n distributionFormatTruncated: Function,\n getDistributionTitle: Function,\n distributionVisibleContent: Array,\n distributionExpandedContent: Array,\n distributionDescriptionIsExpanded: Function,\n distributionDescriptionIsExpandable: Function,\n distributionIsExpanded: Function,\n showObject: Function,\n showNumber: Function,\n showDownloadDropdown: Function,\n showLicence: Function,\n showLicensingAssistant: Function,\n filterDateFormatEU: Function,\n showArray: Function,\n showObjectArray: Function,\n getVisualisationLink: Function,\n isOnlyOneUrl: Function,\n getDownloadUrl: Function,\n trackGoto: Function,\n showAccessUrls: Function,\n replaceHttp: Function,\n previewLinkCallback: Function,\n toggleDistribution: Function,\n toggleDistributionDescription: Function,\n increaseNumDisplayedDistributions: Function,\n nonOverflowingIncrementsForDistributions: Function,\n isUrlInvalid: Function,\n openIfValidUrl: Function,\n showTooltipVisualiseButton: Function,\n appendCurrentLocaleToURL: Function,\n showPublisher: Boolean,\n embed: Boolean,\n },\n data() {\n return {\n componentKey: 0,\n downloadAllTop: this.$env.content.datasetDetails.bulkDownload.buttonPosition === \"top\",\n // previewedDistributionTitle: this.getDistributionTitle(this.displayedDistributions[0]),\n showDistibutionVisualisation: false,\n previewedDistributionTitle: \"\",\n previewedDistDownloadUrl: \"\",\n previewedDistFormat: \"\",\n selectedDistribution: null,\n showVisualisation: this.$env.content.datasetDetails.distributions.showVisualisation,\n\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getLanguages',\n 'getCatalog',\n ]),\n },\n methods: {\n getDistributionDescription(distribution) {\n return (has(distribution, 'description') && !isNil(distribution.description)) ? getTranslationFor(distribution.description, this.$route.query.locale, this.getLanguages) : '-';\n },\n selectDistribution(dist) {\n this.previewedDistTitle = dist.title;\n this.previewedDistDownloadUrl = dist.url;\n this.previewedDistFormat = dist.format;\n this.showDistibutionVisualisation = true;\n this.componentKey += 1; // kill and rerender with new values\n\n // scroll to visualisation component\n this.$nextTick(() => {\n const visualisationComponent = this.$refs.visualisationComponent;\n if (visualisationComponent) {\n visualisationComponent.$el.scrollIntoView({ behavior: 'smooth' });\n }\n });\n },\n },\n};\n</script>\n\n<style lang=\"scss\" scoped>\n .catalogue-label {\n white-space: pre-line;\n }\n\n .cursor-pointer {\n cursor: pointer;\n }\n\n .tag-color {\n background-color: var(--tag-color);\n }\n .subjectBg {\n background-color: #196fd2;\n }\n .btn-color {\n &:hover {\n background-color: #196fd2;\n border-color: #196fd2;\n }\n }\n\n .download-all-btn {\n min-width: 100px;\n height: 31px;\n }\n\n /*** BOOTSTRAP ***/\n button:focus {\n outline:0;\n }\n\n.spinner-grow {\n width: 20px;\n height: 20px;\n}\n\n /*** FONT AWESOME ICONS ***/\n .fa-check-square {\n color: #28a745;\n width: 16px;\n height: 16px;\n }\n\n /*** MATERIAL ICONS ***/\n %modal-icon {\n font-size: 18px;\n cursor: default;\n }\n\n .help-icon {\n @extend %modal-icon;\n }\n\n .check-icon {\n @extend %modal-icon;\n color: #28a745;\n }\n\n .material-icons.small-icon {\n font-size: 20px;\n }\n\n .mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .keywords {\n\n &__item {\n position: relative;\n }\n\n &__actions {\n display: flex;\n justify-content: center;\n align-items: flex-end;\n height: 100%;\n z-index: 11;\n }\n }\n .sectionList {\n list-style-type: '→ ';\n margin-left:6.5%;\n }\n @media only screen and (max-width: 991px) {\n .sectionList {\n margin-left: 0;\n }\n}\n</style>\n"],"names":["_sfc_main","DownloadAllDistributions","DownloadAsModal","mapGetters","distribution","has","isNil","getTranslationFor","dist","visualisationComponent","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_openBlock","_createElementBlock","_createVNode","_component_distributions_header","$options","$props","_cache","_createTextVNode","_createElementVNode","_Fragment","_renderList","index","_createBlock","_component_distribution","$data","_createCommentVNode","_component_download_all_distributions","_component_download_as_modal","_component_distribution_visualisation_slot","_ctx"],"mappings":";;;;;;;;AA6FA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,0BAAAC;AAAA;AAAA,IAEA,iBAAAC;AAAA;AAAA,EAED;AAAA,EACD,OAAO;AAAA,IACL,WAAW;AAAA,IACX,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,wBAAwB;AAAA,IACxB,eAAe;AAAA,IACf,8BAA8B;AAAA,IAC9B,6BAA6B;AAAA,IAC7B,OAAO;AAAA,IACP,kBAAkB;AAAA,IAClB,uBAAuB;AAAA,IACvB,6BAA6B;AAAA,IAC7B,sBAAsB;AAAA,IACtB,4BAA4B;AAAA,IAC5B,6BAA6B;AAAA,IAC7B,mCAAmC;AAAA,IACnC,qCAAqC;AAAA,IACrC,wBAAwB;AAAA,IACxB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,sBAAsB;AAAA,IACtB,aAAa;AAAA,IACb,wBAAwB;AAAA,IACxB,oBAAoB;AAAA,IACpB,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,sBAAsB;AAAA,IACtB,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,qBAAqB;AAAA,IACrB,oBAAoB;AAAA,IACpB,+BAA+B;AAAA,IAC/B,mCAAmC;AAAA,IACnC,0CAA0C;AAAA,IAC1C,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,4BAA4B;AAAA,IAC5B,0BAA0B;AAAA,IAC1B,eAAe;AAAA,IACf,OAAO;AAAA,EACR;AAAA,EACD,OAAO;AACL,WAAO;AAAA,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S;AAAA,YACpB,gBAAgBA,EAAc;AAAA,YAC9B,aAAaA,EAAW;AAAA,YACxB,qBAAqBA,EAAmB;AAAA,YACxC,oBAAoBA,EAAkB;AAAA,YACtC,+BAA+BA,EAA6B;AAAA,YAC5D,mCAAmCA,EAAiC;AAAA,YACpE,0CAA0CA,EAAwC;AAAA,YAClF,cAAcA,EAAY;AAAA,YAC1B,gBAAgBA,EAAc;AAAA,YAC9B,4BAA4BA,EAA0B;AAAA,YACtD,0BAA0BA,EAAwB;AAAA,YAClD,OAAOA,EAAK;AAAA;;;MAtD7BC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MA0DQC,EASM,OATNT,GASM;AAAA,QAPKe,EAAc,iBA5DjCC,EAAA,IAAA,EAAA,UA2DUH,EAOEI,GAAA;AAAA,UAlEZ,KAAA;AAAA,UA6Da,4BAA4BZ,EAA0B;AAAA,UACtD,WAAWC,EAAS;AAAA,UACpB,sBAAsBA,EAAoB;AAAA,UAC1C,kBAAkBA,EAAgB;AAAA,UAClC,cAAcA,EAAY;AAAA;;;IAjEvCC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IAqEML,EAAqBe,CAAA;AAAA,IArE3BX,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IAwEcO,EAAA,gCAAgCA,EAAiB,0BADzDF,EAQmCM,GAAA;AAAA,MANjC,KAAI;AAAA,MACH,KAAKJ,EAAY;AAAA,MAClB,OAAM;AAAA,MACL,OAAOK,EAAkB;AAAA,MACzB,aAAaL,EAAwB;AAAA,MACrC,QAAQA,EAAmB;AAAA,uDA9EpCC,EAAA,IAAA,EAAA;AAAA;;;"}
1
+ {"version":3,"file":"Distributions.vue.mjs","sources":["../../../lib/datasetDetails/distributions/Distributions.vue"],"sourcesContent":["<template>\n <div class=\"mt-1 dsd-distributions\">\n <distributions-header\n :getDistributionDescription=\"getDistributionDescription\"\n :openModal=\"openModal\"\n :getDistributionTitle=\"getDistributionTitle\"\n :showDownloadUrls=\"showDownloadUrls\"\n :isUrlInvalid=\"isUrlInvalid\"\n :showPublisher=\"showPublisher\"\n :embed=\"embed\"\n />\n <div class=\"row\">\n <ul class=\"list list-unstyled w-100\">\n <div class=\"distributions\" :key=\"`${expandedDistributions.length}--${expandedDistributionDescriptions.length}`\">\n <distribution\n v-for=\"(distribution, index) in displayedDistributions\"\n @selectForPreview=\"selectDistribution\"\n :key=\"`${index}--${distribution.id}`\"\n :distribution=\"distribution\"\n :fading=\"!distributions.displayAll && !isDistributionsAllDisplayed && index === distributions.displayCount - 1\"\n :distributions=\"distributions\"\n :setDistributionsDisplayCount=\"setDistributionsDisplayCount\"\n :getDistributionFormat=\"getDistributionFormat\"\n :distributionFormatTruncated=\"distributionFormatTruncated\"\n :getDistributionTitle=\"getDistributionTitle\"\n :distributionVisibleContent=\"distributionVisibleContent\"\n :distributionExpandedContent=\"distributionExpandedContent\"\n :distributionDescriptionIsExpanded=\"distributionDescriptionIsExpanded\"\n :distributionDescriptionIsExpandable=\"distributionDescriptionIsExpandable\"\n :getDistributionDescription=\"getDistributionDescription\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n :showObject=\"showObject\"\n :showNumber=\"showNumber\"\n :showDownloadDropdown=\"showDownloadDropdown\"\n :showLicence=\"showLicence\"\n :showLicensingAssistant=\"showLicensingAssistant\"\n :filterDateFormatEU=\"filterDateFormatEU\"\n :showArray=\"showArray\"\n :showObjectArray=\"showObjectArray\"\n :getVisualisationLink=\"getVisualisationLink\"\n :isOnlyOneUrl=\"isOnlyOneUrl\"\n :getDownloadUrl=\"getDownloadUrl\"\n :trackGoto=\"trackGoto\"\n :showAccessUrls=\"showAccessUrls\"\n :replaceHttp=\"replaceHttp\"\n :previewLinkCallback=\"previewLinkCallback\"\n :toggleDistribution=\"toggleDistribution\"\n :toggleDistributionDescription=\"toggleDistributionDescription\"\n :increaseNumDisplayedDistributions=\"increaseNumDisplayedDistributions\"\n :nonOverflowingIncrementsForDistributions=\"nonOverflowingIncrementsForDistributions\"\n :isUrlInvalid=\"isUrlInvalid\"\n :openIfValidUrl=\"openIfValidUrl\"\n :showTooltipVisualiseButton=\"showTooltipVisualiseButton\"\n :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n :embed=\"embed\"\n />\n </div>\n </ul>\n <div class=\"w-100 d-flex flex-row justify-content-end\">\n <download-all-distributions\n v-if=\"!downloadAllTop\"\n :getDistributionDescription=\"getDistributionDescription\"\n :openModal=\"openModal\"\n :getDistributionTitle=\"getDistributionTitle\"\n :showDownloadUrls=\"showDownloadUrls\"\n :isUrlInvalid=\"isUrlInvalid\"\n />\n </div>\n </div>\n <download-as-modal />\n <!-- <distribution-visualization v-if=\"showDistibutionVisualisation\" class=\"mb-4\"></distribution-visualization> -->\n <distribution-visualisation-slot\n v-if=\"showDistibutionVisualisation && showVisualisation\"\n ref=\"visualisationComponent\"\n :key=\"componentKey\"\n class=\"mb-4\"\n :title=\"previewedDistTitle\"\n :downloadUrl=\"previewedDistDownloadUrl\"\n :format=\"previewedDistFormat\"\n ></distribution-visualisation-slot>\n </div>\n</template>\n\n<script>\n\nimport {has, isNil} from \"lodash\";\nimport {getTranslationFor} from \"../../utils/helpers\";\nimport { mapGetters } from \"vuex\";\nimport DownloadAsModal from \"../../datasetDetails/distributions/DistributionDownloadAsModal\";\n\nexport default {\n name: 'Distributions',\n components: {\n DownloadAsModal\n },\n props: {\n openModal: Function,\n expandedDistributions: Array,\n expandedDistributionDescriptions: Array,\n displayedDistributions: Array,\n distributions: Object,\n setDistributionsDisplayCount: Function,\n isDistributionsAllDisplayed: Boolean,\n pages: Object,\n showDownloadUrls: Function,\n getDistributionFormat: Function,\n distributionFormatTruncated: Function,\n getDistributionTitle: Function,\n distributionVisibleContent: Array,\n distributionExpandedContent: Array,\n distributionDescriptionIsExpanded: Function,\n distributionDescriptionIsExpandable: Function,\n distributionIsExpanded: Function,\n showObject: Function,\n showNumber: Function,\n showDownloadDropdown: Function,\n showLicence: Function,\n showLicensingAssistant: Function,\n filterDateFormatEU: Function,\n showArray: Function,\n showObjectArray: Function,\n getVisualisationLink: Function,\n isOnlyOneUrl: Function,\n getDownloadUrl: Function,\n trackGoto: Function,\n showAccessUrls: Function,\n replaceHttp: Function,\n previewLinkCallback: Function,\n toggleDistribution: Function,\n toggleDistributionDescription: Function,\n increaseNumDisplayedDistributions: Function,\n nonOverflowingIncrementsForDistributions: Function,\n isUrlInvalid: Function,\n openIfValidUrl: Function,\n showTooltipVisualiseButton: Function,\n appendCurrentLocaleToURL: Function,\n showPublisher: Boolean,\n embed: Boolean,\n },\n data() {\n return {\n componentKey: 0,\n downloadAllTop: this.$env.content.datasetDetails.bulkDownload.buttonPosition === \"top\",\n // previewedDistributionTitle: this.getDistributionTitle(this.displayedDistributions[0]),\n showDistibutionVisualisation: false,\n previewedDistributionTitle: \"\",\n previewedDistDownloadUrl: \"\",\n previewedDistFormat: \"\",\n selectedDistribution: null,\n showVisualisation: this.$env.content.datasetDetails.distributions.showVisualisation,\n\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getLanguages',\n 'getCatalog',\n ]),\n },\n methods: {\n getDistributionDescription(distribution) {\n return (has(distribution, 'description') && !isNil(distribution.description)) ? getTranslationFor(distribution.description, this.$route.query.locale, this.getLanguages) : '-';\n },\n selectDistribution(dist) {\n this.previewedDistTitle = dist.title;\n this.previewedDistDownloadUrl = dist.url;\n this.previewedDistFormat = dist.format;\n this.showDistibutionVisualisation = true;\n this.componentKey += 1; // kill and rerender with new values\n\n // scroll to visualisation component\n this.$nextTick(() => {\n const visualisationComponent = this.$refs.visualisationComponent;\n if (visualisationComponent) {\n visualisationComponent.$el.scrollIntoView({ behavior: 'smooth' });\n }\n });\n },\n },\n};\n</script>\n\n<style lang=\"scss\" scoped>\n .catalogue-label {\n white-space: pre-line;\n }\n\n .cursor-pointer {\n cursor: pointer;\n }\n\n .tag-color {\n background-color: var(--tag-color);\n }\n .subjectBg {\n background-color: #196fd2;\n }\n .btn-color {\n &:hover {\n background-color: #196fd2;\n border-color: #196fd2;\n }\n }\n\n .download-all-btn {\n min-width: 100px;\n height: 31px;\n }\n\n /*** BOOTSTRAP ***/\n button:focus {\n outline:0;\n }\n\n.spinner-grow {\n width: 20px;\n height: 20px;\n}\n\n /*** FONT AWESOME ICONS ***/\n .fa-check-square {\n color: #28a745;\n width: 16px;\n height: 16px;\n }\n\n /*** MATERIAL ICONS ***/\n %modal-icon {\n font-size: 18px;\n cursor: default;\n }\n\n .help-icon {\n @extend %modal-icon;\n }\n\n .check-icon {\n @extend %modal-icon;\n color: #28a745;\n }\n\n .material-icons.small-icon {\n font-size: 20px;\n }\n\n .mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .keywords {\n\n &__item {\n position: relative;\n }\n\n &__actions {\n display: flex;\n justify-content: center;\n align-items: flex-end;\n height: 100%;\n z-index: 11;\n }\n }\n .sectionList {\n list-style-type: '→ ';\n margin-left:6.5%;\n }\n @media only screen and (max-width: 991px) {\n .sectionList {\n margin-left: 0;\n }\n}\n</style>\n"],"names":["_sfc_main","DownloadAsModal","mapGetters","distribution","has","isNil","getTranslationFor","dist","visualisationComponent","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_openBlock","_createElementBlock","_createVNode","_component_distributions_header","$options","$props","_cache","_createTextVNode","_createElementVNode","_Fragment","_renderList","index","_createBlock","_component_distribution","$data","_createCommentVNode","_component_download_all_distributions","_component_download_as_modal","_component_distribution_visualisation_slot","_ctx"],"mappings":";;;;;;;AA0FA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,iBAAAC;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL,WAAW;AAAA,IACX,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,wBAAwB;AAAA,IACxB,eAAe;AAAA,IACf,8BAA8B;AAAA,IAC9B,6BAA6B;AAAA,IAC7B,OAAO;AAAA,IACP,kBAAkB;AAAA,I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Z,EAA0B;AAAA,UACtD,WAAWC,EAAS;AAAA,UACpB,sBAAsBA,EAAoB;AAAA,UAC1C,kBAAkBA,EAAgB;AAAA,UAClC,cAAcA,EAAY;AAAA;;;IAjEvCC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IAqEML,EAAqBe,CAAA;AAAA,IArE3BX,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IAwEcO,EAAA,gCAAgCA,EAAiB,0BADzDF,EAQmCM,GAAA;AAAA,MANjC,KAAI;AAAA,MACH,KAAKJ,EAAY;AAAA,MAClB,OAAM;AAAA,MACL,OAAOK,EAAkB;AAAA,MACzB,aAAaL,EAAwB;AAAA,MACrC,QAAQA,EAAmB;AAAA,uDA9EpCC,EAAA,IAAA,EAAA;AAAA;;;"}
@@ -38,6 +38,8 @@ declare const _default: import('vue').DefineComponent<{
38
38
  trackAndDownloadAllDistributions(): Promise<void>;
39
39
  downloadAllDistributions(): Promise<void>;
40
40
  beforeWindowUnload(e: any): void;
41
+ openRessourceAccessPopup(): void;
42
+ onClose(e: any): void;
41
43
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
42
44
  small?: any;
43
45
  primary?: any;