@piveau/piveau-hub-ui-modules 4.6.83 → 4.6.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/PvDataInfoBox/PvDataInfoBox.vue.mjs +1 -2
  2. package/dist/PvDataInfoBox/PvDataInfoBox.vue.mjs.map +1 -1
  3. package/dist/catalogues/CatalogPageDatasetCard.vue.mjs +6 -7
  4. package/dist/catalogues/CatalogPageDatasetCard.vue.mjs.map +1 -1
  5. package/dist/catalogues/Catalogues.vue.mjs +2 -2
  6. package/dist/citation/DatasetCitationTable.vue.mjs +2 -2
  7. package/dist/citation/DatasetCitationTable.vue.mjs.map +1 -1
  8. package/dist/composables/useRuntimeEnv.d.ts +1 -1
  9. package/dist/configurations/config-schema/configSchema.d.ts +1 -1
  10. package/dist/data-provider-interface/CatalogueMQA.vue.mjs +216 -226
  11. package/dist/data-provider-interface/CatalogueMQA.vue.mjs.map +1 -1
  12. package/dist/data-provider-interface/DPIMenu.vue.d.ts +3 -3
  13. package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +7 -7
  14. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +110 -106
  15. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
  16. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +101 -82
  17. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
  18. package/dist/data-provider-interface/components/DataFetchingComponent.vue.d.ts +1 -1
  19. package/dist/data-provider-interface/components/DataFetchingComponent.vue.mjs +2 -2
  20. package/dist/data-provider-interface/components/DataFetchingComponent.vue.mjs.map +1 -1
  21. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +3 -4
  22. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
  23. package/dist/data-provider-interface/components/Dropup.vue.d.ts +1 -1
  24. package/dist/data-provider-interface/components/FileUpload.vue.d.ts +1 -1
  25. package/dist/data-provider-interface/components/FileUpload.vue.mjs +4 -4
  26. package/dist/data-provider-interface/components/FileUpload.vue.mjs.map +1 -1
  27. package/dist/data-provider-interface/components/Navigation.vue.d.ts +5 -5
  28. package/dist/data-provider-interface/components/SelectControlledGroup.vue.mjs +2 -3
  29. package/dist/data-provider-interface/components/SelectControlledGroup.vue.mjs.map +1 -1
  30. package/dist/data-provider-interface/views/DistributionOverview.vue.d.ts +2 -2
  31. package/dist/data-provider-interface/views/DistributionOverview.vue.mjs +4 -4
  32. package/dist/data-provider-interface/views/DraftsPage.vue.d.ts +2 -2
  33. package/dist/data-provider-interface/views/DraftsPage.vue.mjs +29 -34
  34. package/dist/data-provider-interface/views/DraftsPage.vue.mjs.map +1 -1
  35. package/dist/data-provider-interface/views/InputPage.vue.d.ts +7 -7
  36. package/dist/data-provider-interface/views/InputPage.vue.mjs +4 -6
  37. package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
  38. package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs +1 -1
  39. package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs.map +1 -1
  40. package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.mjs +6 -6
  41. package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.mjs.map +1 -1
  42. package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.mjs +2 -2
  43. package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.mjs.map +1 -1
  44. package/dist/data-provider-interface/views/OverviewPage.vue.d.ts +1 -1
  45. package/dist/data-provider-interface/views/OverviewPage.vue.mjs +2 -2
  46. package/dist/data-provider-interface/views/OverviewPage.vue.mjs.map +1 -1
  47. package/dist/data-provider-interface/views/PropertyChooser.vue.mjs +8 -8
  48. package/dist/data-provider-interface/views/PropertyChooser.vue.mjs.map +1 -1
  49. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs +38 -38
  50. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs.map +1 -1
  51. package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs +1 -2
  52. package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs.map +1 -1
  53. package/dist/datasetDetails/DatasetDetailsQuality.vue.mjs +36 -36
  54. package/dist/datasetDetails/DatasetDetailsQuality.vue.mjs.map +1 -1
  55. package/dist/datasetDetails/distributions/DistributionAdded.vue.mjs +2 -2
  56. package/dist/datasetDetails/distributions/DistributionAdded.vue.mjs.map +1 -1
  57. package/dist/datasetDetails/distributions/DistributionDownloadAsModal.vue.mjs +9 -9
  58. package/dist/datasetDetails/distributions/DistributionDownloadAsModal.vue.mjs.map +1 -1
  59. package/dist/datasetDetails/distributions/DistributionFormat.vue.d.ts +2 -2
  60. package/dist/datasetDetails/distributions/DistributionsHeader.vue.d.ts +4 -4
  61. package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.d.ts +8 -8
  62. package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.mjs +3 -4
  63. package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.mjs.map +1 -1
  64. package/dist/datasetDetails/distributions/FadingDistributionOverlay.vue.mjs +5 -7
  65. package/dist/datasetDetails/distributions/FadingDistributionOverlay.vue.mjs.map +1 -1
  66. package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs +8 -9
  67. package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs.map +1 -1
  68. package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.d.ts +2 -2
  69. package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.mjs +22 -25
  70. package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.mjs.map +1 -1
  71. package/dist/datasetDetails/distributions/distributionActions/DistributionDropdownDownload.vue.d.ts +2 -2
  72. package/dist/datasetDetails/distributions/distributionActions/DistributionOptionsDropdown.vue.d.ts +4 -4
  73. package/dist/datasetDetails/distributions/distributionActions/DistributionOptionsDropdown.vue.mjs +5 -6
  74. package/dist/datasetDetails/distributions/distributionActions/DistributionOptionsDropdown.vue.mjs.map +1 -1
  75. package/dist/datasetDetails/distributions/distributionActions/DistributionPreview.vue.d.ts +4 -4
  76. package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.d.ts +4 -4
  77. package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs +41 -42
  78. package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs.map +1 -1
  79. package/dist/datasetDetails/distributions/distributionDetails/DistributionDescription.vue.d.ts +6 -6
  80. package/dist/datasetDetails/distributions/distributionDetails/DistributionDetails.vue.d.ts +16 -16
  81. package/dist/datasetDetails/distributions/distributionDetails/DistributionExpand.vue.d.ts +2 -2
  82. package/dist/datasetDetails/features/DatasetDetailsDataServices.vue.mjs +3 -3
  83. package/dist/datasetDetails/features/DatasetDetailsDataServices.vue.mjs.map +1 -1
  84. package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.d.ts +1 -1
  85. package/dist/datasetDetails/features/DatasetDetailsPages.vue.mjs +2 -2
  86. package/dist/datasetDetails/features/DatasetDetailsVisualisations.vue.mjs +2 -2
  87. package/dist/datasetDetails/header/DatasetDetailsHeaderCatalogue.vue.d.ts +1 -1
  88. package/dist/datasetDetails/header/DatasetDetailsHeaderTitle.vue.d.ts +2 -2
  89. package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +2 -2
  90. package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.mjs +2 -2
  91. package/dist/datasetDetails/navigation/DatasetDetailsNavigationPages.vue.d.ts +7 -1
  92. package/dist/datasetDetails/properties/DatasetDetailsProperties.vue.d.ts +200 -1
  93. package/dist/datasets/DatasetsFilters.vue.mjs +2 -2
  94. package/dist/datasets/DatasetsTopControls.vue.mjs +12 -14
  95. package/dist/datasets/DatasetsTopControls.vue.mjs.map +1 -1
  96. package/dist/datasets/datasetsFacets/DatasetsMapFacet.vue.mjs +4 -4
  97. package/dist/embed/DatasetEmbedModal.vue.mjs +2 -2
  98. package/dist/embed/DatasetEmbedModal.vue.mjs.map +1 -1
  99. package/dist/embed/EmbedDataset.vue.mjs +3 -3
  100. package/dist/embed/EmbedDataset.vue.mjs.map +1 -1
  101. package/dist/embed/EmbedDatasetSnippet.vue.mjs +3 -3
  102. package/dist/embed/EmbedDatasetSnippet.vue.mjs.map +1 -1
  103. package/dist/form/Repeatable.vue2.mjs +1 -2
  104. package/dist/form/Repeatable.vue2.mjs.map +1 -1
  105. package/dist/modal/AppConfirmationDialog.vue.mjs +1 -1
  106. package/dist/modal/AppConfirmationDialog.vue.mjs.map +1 -1
  107. package/dist/pages/user/UserImprint.vue.mjs +1 -1
  108. package/dist/pages/user/UserImprint.vue.mjs.map +1 -1
  109. package/dist/pages/user/UserPrivacyPolicy.vue.mjs +1 -1
  110. package/dist/pages/user/UserPrivacyPolicy.vue.mjs.map +1 -1
  111. package/dist/piveau-hub-ui-modules.css +1 -1
  112. package/dist/services/datasetService.d.ts +1 -1
  113. package/dist/widgets/AppLink.vue.mjs +2 -2
  114. package/dist/widgets/AppLink.vue.mjs.map +1 -1
  115. package/dist/widgets/Pagination.vue.d.ts +1 -1
  116. package/dist/widgets/ResourceAccessPopup.vue.mjs +2 -2
  117. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { getCurrentInstance as N, ref as m, computed as x, watchEffect as R, resolveComponent as P, openBlock as n, createElementBlock as a, toDisplayString as v, createTextVNode as l, unref as s, createStaticVNode as L, createCommentVNode as u, createElementVNode as r, withDirectives as U, isRef as $, vModelText as M, Fragment as b, renderList as k, createVNode as C, createBlock as B } from "vue";
2
- import H from "./AutocompleteInput.vue.mjs";
3
- import { onClickOutside as q } from "../../external/@vueuse/core/index";
4
- import { useRuntimeEnv as F } from "../../composables/useRuntimeEnv.mjs";
1
+ import { getCurrentInstance as N, ref as m, computed as x, watchEffect as R, resolveComponent as B, openBlock as n, createElementBlock as a, toDisplayString as f, createTextVNode as i, unref as r, createStaticVNode as U, createCommentVNode as u, createElementVNode as l, withDirectives as L, isRef as $, vModelText as E, Fragment as b, renderList as k, createVNode as C, createBlock as P } from "vue";
2
+ import q from "./AutocompleteInput.vue.mjs";
3
+ import { onClickOutside as F } from "../../external/@vueuse/core/index";
4
+ import { useRuntimeEnv as H } from "../../composables/useRuntimeEnv.mjs";
5
5
  import { useStore as j } from "vuex";
6
6
  import "../../utils/helpers.mjs";
7
7
  import "@formkit/core";
@@ -23,13 +23,16 @@ const z = { class: "formkitProperty" }, K = {
23
23
  }, J = {
24
24
  key: 4,
25
25
  class: "formkitCmpWrap simpleConditional"
26
- }, Q = { class: "m-3" }, Z = { class: "conditionalSelectDiv" }, ee = ["placeholder"], te = { key: 0 }, oe = { class: "selectListConditional" }, ne = ["onClick"], ae = { class: "conditionalManual" }, ie = {
26
+ }, Q = { class: "m-3" }, Z = { class: "conditionalSelectDiv" }, ee = ["placeholder"], te = { key: 0 }, oe = { class: "selectListConditional" }, ne = ["onClick"], ae = { class: "conditionalManual" }, se = {
27
27
  key: 0,
28
28
  class: "d-flex"
29
- }, se = { key: 0 }, le = {
29
+ }, ie = { key: 0 }, re = {
30
30
  key: 5,
31
31
  class: "formkitCmpWrap simpleConditional"
32
- }, re = { class: "m-3" }, de = { class: "conditionalSelectDiv" }, ue = ["placeholder"], ce = { key: 0 }, pe = { class: "selectListConditional" }, me = ["onClick"], ve = ["innerHTML"], fe = { class: "conditionalManual" }, he = {
32
+ }, le = { class: "m-3" }, de = { class: "conditionalSelectDiv" }, ue = ["placeholder"], ce = { key: 0 }, pe = { class: "selectListConditional" }, me = ["onClick"], fe = {
33
+ key: 1,
34
+ class: "formkit-help position-absolute"
35
+ }, ve = { class: "conditionalManual" }, he = {
33
36
  key: 0,
34
37
  class: "d-flex"
35
38
  }, ye = {
@@ -38,46 +41,46 @@ const z = { class: "formkitProperty" }, K = {
38
41
  }, ge = {
39
42
  key: 1,
40
43
  class: "conditionalVocabulary d-flex"
41
- }, xe = { class: "autocompleteInputSingleValue" }, be = ["innerHTML"], Ee = {
44
+ }, xe = { class: "autocompleteInputSingleValue" }, be = ["innerHTML"], Te = {
42
45
  __name: "ConditionalInput",
43
46
  props: {
44
47
  context: Object
45
48
  },
46
- setup(T) {
47
- let w = F();
48
- const t = T;
49
+ setup(D) {
50
+ let w = H();
51
+ const t = D;
49
52
  N().appContext.app.config.globalProperties.$env;
50
- const { t: I, locale: D } = O();
53
+ const { t: I, locale: M } = O();
51
54
  let d = m(), c = m(!1), p = m(!1);
52
55
  t.context.attrs.voc, j();
53
- let f = m();
54
- const { execute: E, error: ke, isLoading: Ce } = X({
56
+ let v = m();
57
+ const { execute: T, error: ke, isLoading: Ce } = X({
55
58
  res: x(() => t.context.value.name),
56
59
  voc: x(() => t.context.attrs.voc),
57
60
  property: x(() => t.context.attrs.property),
58
- locale: D
61
+ locale: M
59
62
  });
60
63
  R(() => {
61
- t.context.value.name && (f.value != t.context.value.name && (t.context.value.name === t.context.value.resource ? E().then((i) => {
62
- f.value = i;
63
- }).catch((i) => {
64
- console.error(i);
65
- }) : f.value = t.context.value.name), d.value = I("message.dataupload.datasets.conditional.vocabulary")), t.context.value["foaf:name"] && (d.value = I("message.dataupload.datasets.conditional.manually"));
64
+ t.context.value.name && (v.value != t.context.value.name && (t.context.value.name === t.context.value.resource ? T().then((s) => {
65
+ v.value = s;
66
+ }).catch((s) => {
67
+ console.error(s);
68
+ }) : v.value = t.context.value.name), d.value = I("message.dataupload.datasets.conditional.vocabulary")), t.context.value["foaf:name"] && (d.value = I("message.dataupload.datasets.conditional.manually"));
66
69
  });
67
- const y = m(null), _ = (i) => {
70
+ const y = m(null), _ = (s) => {
68
71
  p.value = !p.value;
69
72
  }, S = () => {
70
73
  t.context.node.reset();
71
- }, V = (i, e) => {
72
- d.value = e, c.value = i, t.context.node.reset(), t.context.value = "";
74
+ }, V = (s, e) => {
75
+ d.value = e, c.value = s, t.context.node.reset(), t.context.value = "";
73
76
  };
74
- return q(y, (i) => p.value = !1), (i, e) => {
75
- const g = P("FormKit");
77
+ return F(y, (s) => p.value = !1), (s, e) => {
78
+ const g = B("FormKit");
76
79
  return n(), a("div", z, [
77
- t.context.attrs.class != null && t.context.attrs.class.includes("inDistribution") ? (n(), a("h4", K, v(i.$t("message.dataupload.distributions." + t.context.attrs.identifier + ".label")), 1)) : (n(), a("h4", W, v(i.$t("message.dataupload.datasets." + t.context.attrs.identifier + ".label")), 1)),
78
- e[18] || (e[18] = l()),
79
- t.context.attrs.identifier === "licence" && s(w).content.dataProviderInterface.annifIntegration ? (n(), a("div", Y, e[6] || (e[6] = [
80
- L(`<svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" fill="currentColor" class="bi bi-info-circle mx-3 mb-3 mt-1 infoboxI" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"></path> <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"></path></svg> <div class="w-80"><p>For <strong>European</strong> <strong>Commission&#39;s datasets</strong>, bear in mind
80
+ t.context.attrs.class != null && t.context.attrs.class.includes("inDistribution") ? (n(), a("h4", K, f(s.$t("message.dataupload.distributions." + t.context.attrs.identifier + ".label")), 1)) : (n(), a("h4", W, f(s.$t("message.dataupload.datasets." + t.context.attrs.identifier + ".label")), 1)),
81
+ e[19] || (e[19] = i()),
82
+ t.context.attrs.identifier === "licence" && r(w).content.dataProviderInterface.annifIntegration ? (n(), a("div", Y, [...e[6] || (e[6] = [
83
+ U(`<svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" fill="currentColor" class="bi bi-info-circle mx-3 mb-3 mt-1 infoboxI" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"></path> <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"></path></svg> <div class="w-80"><p>For <strong>European</strong> <strong>Commission&#39;s datasets</strong>, bear in mind
81
84
  that  <a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833]" target="_blank" rel="nofollow noopener"><ins>Decision 2011/833/EU</ins></a> allows for their commercial
82
85
  reuse without
83
86
  prior authorisation, except for the material subject to the third party intellectual property rights. This
@@ -89,22 +92,22 @@ const z = { class: "formkitProperty" }, K = {
89
92
  1.0).</p> <p>The <strong>Council</strong> and the <strong>European Court of Auditors</strong> have
90
93
  approved similar decisions on reuse. It is advisable that you check <strong>the reuse policy of your
91
94
  organisation</strong> before publishing or submitting your dataset.</p> <p>If you need further information regarding copyright issues, please contact us at <a href="mailto:op-copyright@publications.europa.eu" target="_blank" rel="nofollow noopener">op-copyright@publications.europa.eu</a></p></div>`, 3)
92
- ]))) : u("", !0),
93
- e[19] || (e[19] = l()),
94
- t.context.attrs.identifier === "rights" && s(w).content.dataProviderInterface.annifIntegration ? (n(), a("div", G, e[7] || (e[7] = [
95
- L(`<svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" fill="currentColor" class="bi bi-info-circle mx-3 mb-3 mt-1 infoboxI" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"></path> <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"></path></svg> <p class="textInfoI">As owner of your dataset, you guarantee that it does not violate the copyright, other
95
+ ])])) : u("", !0),
96
+ e[20] || (e[20] = i()),
97
+ t.context.attrs.identifier === "rights" && r(w).content.dataProviderInterface.annifIntegration ? (n(), a("div", G, [...e[7] || (e[7] = [
98
+ U(`<svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" fill="currentColor" class="bi bi-info-circle mx-3 mb-3 mt-1 infoboxI" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"></path> <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"></path></svg> <p class="textInfoI">As owner of your dataset, you guarantee that it does not violate the copyright, other
96
99
  intellectual property or
97
100
  privacy rights of any third party. In particular, if third party material is included in the dataset, you must
98
101
  ensure that all necessary permissions have been obtained and appropriate acknowledgment is given, if necessary.
99
102
  <br><br>
100
103
  If you need further information regarding copyright issues, please contact us at
101
104
  <a href="mailto:op-copyright@publications.europa.eu">op-copyright@publications.europa.eu</a></p>`, 3)
102
- ]))) : u("", !0),
103
- e[20] || (e[20] = l()),
105
+ ])])) : u("", !0),
106
+ e[21] || (e[21] = i()),
104
107
  t.context.attrs.identifier === "rights" ? (n(), a("div", J, [
105
- r("div", Q, [
106
- r("div", Z, [
107
- U(r("input", {
108
+ l("div", Q, [
109
+ l("div", Z, [
110
+ L(l("input", {
108
111
  ref_key: "I1",
109
112
  ref: y,
110
113
  type: "text",
@@ -113,24 +116,24 @@ const z = { class: "formkitProperty" }, K = {
113
116
  placeholder: t.context.attrs.placeholder,
114
117
  "onUpdate:modelValue": e[1] || (e[1] = (o) => $(d) ? d.value = o : d = o)
115
118
  }, null, 8, ee), [
116
- [M, s(d)]
119
+ [E, r(d)]
117
120
  ]),
118
- e[8] || (e[8] = l()),
119
- s(p) ? (n(), a("div", te, [
120
- r("ul", oe, [
121
+ e[8] || (e[8] = i()),
122
+ r(p) ? (n(), a("div", te, [
123
+ l("ul", oe, [
121
124
  (n(!0), a(b, null, k(t.context.attrs.selection, (o, h) => (n(), a("li", {
122
125
  class: "p-2 border-b border-gray-200",
123
- onClick: (A) => V(o, i.$t("message.dataupload.datasets.conditional." + o))
124
- }, v(i.$t("message.dataupload.datasets.conditional." + o)), 9, ne))), 256))
126
+ onClick: (A) => V(o, s.$t("message.dataupload.datasets.conditional." + o))
127
+ }, f(s.$t("message.dataupload.datasets.conditional." + o)), 9, ne))), 256))
125
128
  ])
126
129
  ])) : u("", !0)
127
130
  ]),
128
- e[9] || (e[9] = l()),
129
- r("div", ae, [
130
- s(c) === "URL" || t.context.node.value["@type"] === "url" ? (n(), a("div", ie, [
131
+ e[9] || (e[9] = i()),
132
+ l("div", ae, [
133
+ r(c) === "URL" || t.context.node.value["@type"] === "url" ? (n(), a("div", se, [
131
134
  C(g, {
132
135
  type: "url",
133
- placeholder: i.$t("message.dataupload.datasets.conditional.URL"),
136
+ placeholder: s.$t("message.dataupload.datasets.conditional.URL"),
134
137
  name: "rdfs:label",
135
138
  validation: "url",
136
139
  class: "w-100",
@@ -140,11 +143,11 @@ const z = { class: "formkitProperty" }, K = {
140
143
  }, null, 8, ["placeholder", "modelValue"])
141
144
  ])) : u("", !0)
142
145
  ]),
143
- e[10] || (e[10] = l()),
144
- s(c) === "Text" || t.context.value["@type"] === "text" ? (n(), a("div", se, [
146
+ e[10] || (e[10] = i()),
147
+ r(c) === "Text" || t.context.value["@type"] === "text" ? (n(), a("div", ie, [
145
148
  C(g, {
146
149
  type: "text",
147
- placeholder: i.$t("message.dataupload.datasets.conditional.Text"),
150
+ placeholder: s.$t("message.dataupload.datasets.conditional.Text"),
148
151
  name: "rdfs:label",
149
152
  class: "w-100",
150
153
  identifier: "rightsText",
@@ -153,10 +156,10 @@ const z = { class: "formkitProperty" }, K = {
153
156
  }, null, 8, ["placeholder", "modelValue"])
154
157
  ])) : u("", !0)
155
158
  ])
156
- ])) : (n(), a("div", le, [
157
- r("div", re, [
158
- r("div", de, [
159
- U(r("input", {
159
+ ])) : (n(), a("div", re, [
160
+ l("div", le, [
161
+ l("div", de, [
162
+ L(l("input", {
160
163
  ref_key: "I1",
161
164
  ref: y,
162
165
  type: "text",
@@ -166,53 +169,69 @@ const z = { class: "formkitProperty" }, K = {
166
169
  "onUpdate:modelValue": e[5] || (e[5] = (o) => $(d) ? d.value = o : d = o),
167
170
  readonly: ""
168
171
  }, null, 8, ue), [
169
- [M, s(d)]
172
+ [E, r(d)]
170
173
  ]),
171
- e[11] || (e[11] = l()),
172
- s(p) ? (n(), a("div", ce, [
173
- r("ul", pe, [
174
+ e[12] || (e[12] = i()),
175
+ r(p) ? (n(), a("div", ce, [
176
+ l("ul", pe, [
174
177
  (n(!0), a(b, null, k(t.context.attrs.selection, (o, h) => (n(), a("li", {
175
178
  class: "p-2 border-b border-gray-200",
176
- onClick: (A) => V(o, i.$t("message.dataupload.datasets.conditional." + o))
177
- }, v(i.$t("message.dataupload.datasets.conditional." + o)), 9, me))), 256))
179
+ onClick: (A) => V(o, s.$t("message.dataupload.datasets.conditional." + o))
180
+ }, f(s.$t("message.dataupload.datasets.conditional." + o)), 9, me))), 256))
178
181
  ])
179
182
  ])) : u("", !0),
180
- e[12] || (e[12] = l()),
181
- s(c) === "vocabulary" ? (n(), a("div", {
182
- key: 1,
183
- innerHTML: i.$t("message.dataupload.distributions.licence.vocabulary.help"),
184
- class: "formkit-help position-absolute"
185
- }, null, 8, ve)) : u("", !0)
183
+ e[13] || (e[13] = i()),
184
+ r(c) === "vocabulary" ? (n(), a("div", fe, [...e[11] || (e[11] = [
185
+ i(`
186
+ Vocabulary (see
187
+ `, -1),
188
+ l("a", {
189
+ href: "https://op.europa.eu/en/web/eu-vocabularies/concept-scheme/-/resource?uri=https://publications.europa.eu/resource/authority/licence",
190
+ target: "_blank",
191
+ rel: "noopener noreferrer"
192
+ }, "EU Vocabularies", -1),
193
+ i(`
194
+ and
195
+ `, -1),
196
+ l("a", {
197
+ href: "https://op.europa.eu/en/web/eu-vocabularies/dataset/-/resource?uri=http://publications.europa.eu/resource/dataset/corporate-body",
198
+ target: "_blank",
199
+ rel: "noopener noreferrer"
200
+ }, "Corporate Body", -1),
201
+ i(`
202
+ for details on the entities.)
203
+ `, -1)
204
+ ])])) : u("", !0)
186
205
  ]),
187
- e[14] || (e[14] = l()),
188
- r("div", fe, [
189
- s(c) === "manually" || Object.keys(t.context.value).length > 0 && t.context.value["foaf:name"] && s(c) != "vocabulary" ? (n(), a("div", he, [
190
- (n(!0), a(b, null, k(t.context.attrs.options, (o, h) => (n(), B(g, {
206
+ e[15] || (e[15] = i()),
207
+ l("div", ve, [
208
+ r(c) === "manually" || Object.keys(t.context.value).length > 0 && t.context.value["foaf:name"] && r(c) != "vocabulary" ? (n(), a("div", he, [
209
+ (n(!0), a(b, null, k(t.context.attrs.options, (o, h) => (n(), P(g, {
191
210
  type: h,
192
- placeholder: i.$t("message.dataupload.datasets.individual." + o),
211
+ placeholder: s.$t("message.dataupload.datasets.individual." + o),
193
212
  name: o,
194
213
  validation: h,
195
214
  class: "w-100"
196
215
  }, null, 8, ["type", "placeholder", "name", "validation"]))), 256))
197
216
  ])) : u("", !0)
198
217
  ]),
199
- e[15] || (e[15] = l()),
200
- s(c) === "vocabulary" && !t.context.value.name ? (n(), a("div", ye, [
201
- C(H, {
218
+ e[16] || (e[16] = i()),
219
+ r(c) === "vocabulary" && !t.context.value.name ? (n(), a("div", ye, [
220
+ C(q, {
202
221
  context: t.context
203
222
  }, null, 8, ["context"])
204
223
  ])) : u("", !0),
205
- e[16] || (e[16] = l()),
224
+ e[17] || (e[17] = i()),
206
225
  t.context.value.name ? (n(), a("div", ge, [
207
- r("a", xe, v(s(f)), 1),
208
- e[13] || (e[13] = l()),
209
- r("div", {
226
+ l("a", xe, f(r(v)), 1),
227
+ e[14] || (e[14] = i()),
228
+ l("div", {
210
229
  class: "removeX",
211
230
  onClick: S
212
231
  })
213
232
  ])) : u("", !0),
214
- e[17] || (e[17] = l()),
215
- s(c) === "manually" ? (n(), a("div", {
233
+ e[18] || (e[18] = i()),
234
+ r(c) === "manually" ? (n(), a("div", {
216
235
  key: 2,
217
236
  innerHTML: t.context.attrs.info,
218
237
  class: "formkit-help"
@@ -224,6 +243,6 @@ const z = { class: "formkitProperty" }, K = {
224
243
  }
225
244
  };
226
245
  export {
227
- Ee as default
246
+ Te as default
228
247
  };
229
248
  //# sourceMappingURL=ConditionalInput.vue.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConditionalInput.vue.mjs","sources":["../../../lib/data-provider-interface/components/ConditionalInput.vue"],"sourcesContent":["<template>\n <div class=\"formkitProperty\">\n <!-- <h4 class=\"formkitHeader\">{{ props.context.attrs.identifier.charAt(0).toUpperCase() +\n props.context.attrs.identifier.slice(1) }}</h4> -->\n <h4 class=\"formkitHeader\"\n v-if=\"props.context.attrs.class != undefined && props.context.attrs.class.includes('inDistribution')\">\n {{ $t('message.dataupload.distributions.' + props.context.attrs.identifier + '.label') }}\n </h4>\n <h4 class=\"formkitHeader\" v-else>\n {{ $t('message.dataupload.datasets.' + props.context.attrs.identifier + '.label') }}\n </h4>\n <div v-if=\"props.context.attrs.identifier === 'licence' && env.content.dataProviderInterface.annifIntegration\"\n class=\"d-flex infoLicense py-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" fill=\"currentColor\"\n class=\"bi bi-info-circle mx-3 mb-3 mt-1 infoboxI \" viewBox=\"0 0 16 16\">\n <path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\" />\n <path\n d=\"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" />\n </svg>\n <div class=\"w-80\">\n <p>For&nbsp;<strong>European</strong>&nbsp;<strong>Commission's datasets</strong>, bear in mind\n that&nbsp;&nbsp;<a href=\"https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833]\"\n target=\"_blank\" rel=\"nofollow noopener\"><ins>Decision 2011/833/EU</ins></a> allows for their commercial\n reuse without\n prior authorisation, except for the material subject to the third party intellectual property rights. This\n Decision has been implemented under the&nbsp;&nbsp;<a\n href=\"https://ec.europa.eu/transparency/documents-register/detail?ref=C(2019)1655&amp;lang=en]\"\n target=\"_blank\" rel=\"nofollow noopener\"><ins>Decision C(2019) 1655 final</ins></a>&nbsp; by which Creative\n Commons\n Attribution 4.0 International Public License (CC BY 4.0) is adopted as an open licence for the Commission's\n reuse policy. Additionally, raw data, metadata or other documents of comparable nature may alternatively be\n distributed under the provisions of the Creative Commons Universal Public Domain Dedication deed (CC0\n 1.0).</p>\n <p>The&nbsp;<strong>Council</strong>&nbsp;and the&nbsp;<strong>European Court of Auditors</strong>&nbsp;have\n approved similar decisions on reuse. It is advisable that you check&nbsp;<strong>the reuse policy of your\n organisation</strong>&nbsp;before publishing or submitting your dataset.</p>\n <p>If you need further information regarding copyright issues, please contact us at&nbsp;<a\n href=\"mailto:op-copyright@publications.europa.eu\" target=\"_blank\"\n rel=\"nofollow noopener\">op-copyright@publications.europa.eu</a></p>\n </div>\n\n </div>\n\n <div v-if=\"props.context.attrs.identifier === 'rights' && env.content.dataProviderInterface.annifIntegration\"\n class=\"d-flex infoLicense py-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" fill=\"currentColor\"\n class=\"bi bi-info-circle mx-3 mb-3 mt-1 infoboxI\" viewBox=\"0 0 16 16\">\n <path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\" />\n <path\n d=\"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" />\n </svg>\n <p class=\"textInfoI\">As owner of your dataset, you guarantee that it does not violate the copyright, other\n intellectual property or\n privacy rights of any third party. In particular, if third party material is included in the dataset, you must\n ensure that all necessary permissions have been obtained and appropriate acknowledgment is given, if necessary.\n <br><br>\n If you need further information regarding copyright issues, please contact us at\n <a href=\"mailto:op-copyright@publications.europa.eu\">op-copyright@publications.europa.eu</a>\n </p>\n </div>\n <!-- Choice between text and URL -->\n <div class=\"formkitCmpWrap simpleConditional\" v-if=\"props.context.attrs.identifier === 'rights'\">\n <div class=\"m-3\">\n <div class=\"conditionalSelectDiv\">\n <input ref=\"I1\" type=\"text\" class=\"conditionalSelect formkit-input formkit-inner\" @click=\"openSelect($event)\"\n :placeholder=\"props.context.attrs.placeholder\" v-model=\"selectModeVal\">\n <div v-if=\"showSelect\">\n <ul class=\"selectListConditional\">\n <li v-for=\"el, index in props.context.attrs.selection\" class=\"p-2 border-b border-gray-200 \"\n @click=\"selectMode(el, $t('message.dataupload.datasets.conditional.' + el))\">{{\n $t('message.dataupload.datasets.conditional.' + el) }}</li>\n </ul>\n </div>\n </div>\n <div class=\"conditionalManual\">\n <div class=\"d-flex\" v-if=\"selectedItem === 'URL' || props.context.node.value['@type'] === 'url'\">\n <FormKit type=\"url\" :placeholder=\"$t('message.dataupload.datasets.conditional.URL')\" name=\"rdfs:label\"\n validation=\"url\" class=\"w-100\" identifier=\"rightsUrl\" v-model=\"props.context.value['rdfs:value']\">\n </FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'Text' || props.context.value['@type'] === 'text'\">\n <FormKit type=\"text\" :placeholder=\"$t('message.dataupload.datasets.conditional.Text')\" name=\"rdfs:label\"\n class=\"w-100\" identifier=\"rightsText\" v-model=\"props.context.value['rdfs:value']\"></FormKit>\n </div>\n </div>\n </div>\n\n <!-- Choice between manualinput and vocabulary search -->\n <div class=\"formkitCmpWrap simpleConditional\" v-else>\n <div class=\"m-3\">\n <div class=\"conditionalSelectDiv\">\n <input ref=\"I1\" type=\"text\" class=\"conditionalSelect formkit-input formkit-inner\" @click=\"openSelect($event)\"\n :placeholder=props.context.attrs.placeholder v-model=\"selectModeVal\" readonly>\n\n <div v-if=\"showSelect\">\n <ul class=\"selectListConditional\">\n <li v-for=\"el, index in props.context.attrs.selection\" class=\"p-2 border-b border-gray-200 \"\n @click=\"selectMode(el, $t('message.dataupload.datasets.conditional.' + el))\">{{\n $t('message.dataupload.datasets.conditional.' + el) }}</li>\n </ul>\n </div>\n <div v-if=\"selectedItem === 'vocabulary'\"\n v-html=\"$t('message.dataupload.distributions.licence.vocabulary.help')\"\n class=\"formkit-help position-absolute\">\n </div>\n </div>\n <div class=\"conditionalManual\">\n <div class=\"d-flex\" v-if=\"selectedItem === 'manually' ||\n Object.keys(props.context.value).length > 0 && props.context.value['foaf:name']\n && selectedItem != 'vocabulary'\">\n <FormKit v-for=\"el, key in props.context.attrs.options\" :type=\"key\"\n :placeholder=\"$t('message.dataupload.datasets.individual.' + el)\" :name=\"el\" :validation=\"key\"\n class=\"w-100\"></FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'vocabulary' && !props.context.value['name']\" class=\"\">\n <AutocompleteInput :context=\"props.context\"></AutocompleteInput>\n </div>\n\n <div v-if=\"props.context.value['name']\" class=\"conditionalVocabulary d-flex\">\n <a class=\"autocompleteInputSingleValue\">{{\n resolvedUriName }}</a>\n <div class=\"removeX\" @click=\"removeProperty\"></div>\n\n </div>\n <div v-if=\"selectedItem === 'manually'\" v-html=\"props.context.attrs.info\" class=\"formkit-help\"></div>\n\n </div>\n\n </div>\n </div>\n\n</template>\n<script setup>\n\nimport AutocompleteInput from './AutocompleteInput.vue';\nimport { onClickOutside } from '@vueuse/core'\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv.ts\";\nimport { ref, watch, computed, onMounted, watchEffect, toRef } from 'vue';\nimport { useStore } from 'vuex';\nimport { getTranslationFor } from \"../../utils/helpers\";\nimport { getCurrentInstance } from \"vue\";\nimport { getNode } from '@formkit/core'\nimport { useI18n } from 'vue-i18n';\nimport { useRequestUriName } from '../composables/useRequestUriName';\n\nlet env = useRuntimeEnv()\nconst props = defineProps({\n context: Object,\n})\nlet instance = getCurrentInstance().appContext.app.config.globalProperties.$env\nconst { t, locale } = useI18n();\nlet selectModeVal = ref()\nlet selectedItem = ref(false)\nlet showSelect = ref(false)\nlet voc = props.context.attrs.voc;\nconst store = useStore();\nlet resolvedUriName = ref();\n\nconst { execute: requestURIname, error: requestURInameError, isLoading: requestURInameLoading } = useRequestUriName({\n res: computed(() => props.context.value.name),\n voc: computed(() => props.context.attrs.voc),\n property: computed(() => props.context.attrs.property),\n locale,\n})\n\nwatchEffect(() => {\n if (props.context.value['name']) {\n if (resolvedUriName.value != props.context.value.name) {\n\n if (props.context.value.name === props.context.value.resource) {\n requestURIname().then(result => {\n resolvedUriName.value = result;\n }).catch(error => {\n console.error(error);\n })\n }\n else {\n resolvedUriName.value = props.context.value.name\n }\n }\n\n selectModeVal.value = t('message.dataupload.datasets.conditional.' + 'vocabulary');\n }\n if (props.context.value['foaf:name']) {\n selectModeVal.value = t('message.dataupload.datasets.conditional.' + 'manually');\n }\n});\n\nconst I1 = ref(null)\n\nconst openSelect = (e) => {\n\n showSelect.value = !showSelect.value\n\n}\nconst removeProperty = () => {\n props.context.node.reset()\n}\nconst selectMode = (e, translatedString) => {\n selectModeVal.value = translatedString\n selectedItem.value = e\n props.context.node.reset()\n props.context.value = \"\"\n}\n\nonClickOutside(I1, event => showSelect.value = false)\n\n</script>\n<style>\n.conditionalManual {\n .formkit-outer {\n width: 100%;\n }\n}\n\n.hover {\n text-decoration: underline;\n}\n\n.conditionalVocabulary {\n display: flex;\n align-items: center;\n margin: 1rem 0;\n}\n\n.w-80 {\n width: 80%;\n}\n\n.infoLicense {\n a {\n color: blue;\n }\n\n padding: 1rem;\n background-color: rgb(171, 225, 165)\n}\n\n.infoboxI {\n width: 5%;\n}\n\n.textInfoI {\n width: 95%;\n}\n</style>\n"],"names":["env","useRuntimeEnv","props","__props","getCurrentInstance","t","locale","useI18n","selectModeVal","ref","selectedItem","showSelect","useStore","resolvedUriName","requestURIname","requestURInameError","requestURInameLoading","useRequestUriName","computed","watchEffect","result","error","I1","openSelect","e","removeProperty","selectMode","translatedString","onClickOutside","event","_openBlock","_createElementBlock","_hoisted_1","_hoisted_2","_toDisplayString","$t","_hoisted_3","_unref","_hoisted_4","_cache","_hoisted_5","_hoisted_6","_createElementVNode","_hoisted_7","_hoisted_8","$event","_hoisted_10","_hoisted_11","_Fragment","_renderList","el","index","_hoisted_12","_hoisted_13","_hoisted_14","_createVNode","_component_FormKit","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_24","_hoisted_25","key","_createBlock","_hoisted_26","AutocompleteInput","_hoisted_27","_hoisted_28"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmJA,QAAIA,IAAMC,EAAc;AACxB,UAAMC,IAAQC;AAGC,IAAAC,EAAkB,EAAG,WAAW,IAAI,OAAO,iBAAiB;AAC3E,UAAM,EAAE,GAAAC,GAAG,QAAAC,MAAWC;AACtB,QAAIC,IAAgBC,EAAI,GACpBC,IAAeD,EAAI,EAAK,GACxBE,IAAaF,EAAI,EAAK;AAChB,IAAAP,EAAM,QAAQ,MAAM,KAChBU,EAAU;AACxB,QAAIC,IAAkBJ,EAAG;AAEzB,UAAM,EAAE,SA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hE4B,KAAAC,EAEM,OAFNqC,IAEM;AAAA,cADJb,EAAgEc,GAAA;AAAA,gBAA5C,SAASnE,EAAM;AAAA;;;YAG1BA,EAAM,QAAQ,MAAK,QAA9B4B,KAAAC,EAKM,OALNuC,IAKM;AAAA,cAJJ5B,EACwB,KADxB6B,IACwBrC,EAAtBG,EAAexB,CAAA,CAAA,GAAA,CAAA;AAAA;cACjB6B,EAAmD,OAAA;AAAA,gBAA9C,OAAM;AAAA,gBAAW,SAAOjB;AAAA;;;YAGpBY,EAAY3B,CAAA,MAAA,mBAAvBqB,EAAqG,OAAA;AAAA;cAA7D,WAAQ7B,EAAM,QAAQ,MAAM;AAAA,cAAM,OAAM;AAAA;;;;;;;"}
1
+ {"version":3,"file":"ConditionalInput.vue.mjs","sources":["../../../lib/data-provider-interface/components/ConditionalInput.vue"],"sourcesContent":["<template>\n <div class=\"formkitProperty\">\n <!-- <h4 class=\"formkitHeader\">{{ props.context.attrs.identifier.charAt(0).toUpperCase() +\n props.context.attrs.identifier.slice(1) }}</h4> -->\n <h4 class=\"formkitHeader\"\n v-if=\"props.context.attrs.class != undefined && props.context.attrs.class.includes('inDistribution')\">\n {{ $t('message.dataupload.distributions.' + props.context.attrs.identifier + '.label') }}\n </h4>\n <h4 class=\"formkitHeader\" v-else>\n {{ $t('message.dataupload.datasets.' + props.context.attrs.identifier + '.label') }}\n </h4>\n <div v-if=\"props.context.attrs.identifier === 'licence' && env.content.dataProviderInterface.annifIntegration\"\n class=\"d-flex infoLicense py-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" fill=\"currentColor\"\n class=\"bi bi-info-circle mx-3 mb-3 mt-1 infoboxI \" viewBox=\"0 0 16 16\">\n <path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\" />\n <path\n d=\"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" />\n </svg>\n <div class=\"w-80\">\n <p>For&nbsp;<strong>European</strong>&nbsp;<strong>Commission's datasets</strong>, bear in mind\n that&nbsp;&nbsp;<a href=\"https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833]\"\n target=\"_blank\" rel=\"nofollow noopener\"><ins>Decision 2011/833/EU</ins></a> allows for their commercial\n reuse without\n prior authorisation, except for the material subject to the third party intellectual property rights. This\n Decision has been implemented under the&nbsp;&nbsp;<a\n href=\"https://ec.europa.eu/transparency/documents-register/detail?ref=C(2019)1655&amp;lang=en]\"\n target=\"_blank\" rel=\"nofollow noopener\"><ins>Decision C(2019) 1655 final</ins></a>&nbsp; by which Creative\n Commons\n Attribution 4.0 International Public License (CC BY 4.0) is adopted as an open licence for the Commission's\n reuse policy. Additionally, raw data, metadata or other documents of comparable nature may alternatively be\n distributed under the provisions of the Creative Commons Universal Public Domain Dedication deed (CC0\n 1.0).</p>\n <p>The&nbsp;<strong>Council</strong>&nbsp;and the&nbsp;<strong>European Court of Auditors</strong>&nbsp;have\n approved similar decisions on reuse. It is advisable that you check&nbsp;<strong>the reuse policy of your\n organisation</strong>&nbsp;before publishing or submitting your dataset.</p>\n <p>If you need further information regarding copyright issues, please contact us at&nbsp;<a\n href=\"mailto:op-copyright@publications.europa.eu\" target=\"_blank\"\n rel=\"nofollow noopener\">op-copyright@publications.europa.eu</a></p>\n </div>\n\n </div>\n\n <div v-if=\"props.context.attrs.identifier === 'rights' && env.content.dataProviderInterface.annifIntegration\"\n class=\"d-flex infoLicense py-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" fill=\"currentColor\"\n class=\"bi bi-info-circle mx-3 mb-3 mt-1 infoboxI\" viewBox=\"0 0 16 16\">\n <path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\" />\n <path\n d=\"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" />\n </svg>\n <p class=\"textInfoI\">As owner of your dataset, you guarantee that it does not violate the copyright, other\n intellectual property or\n privacy rights of any third party. In particular, if third party material is included in the dataset, you must\n ensure that all necessary permissions have been obtained and appropriate acknowledgment is given, if necessary.\n <br><br>\n If you need further information regarding copyright issues, please contact us at\n <a href=\"mailto:op-copyright@publications.europa.eu\">op-copyright@publications.europa.eu</a>\n </p>\n </div>\n <!-- Choice between text and URL -->\n <div class=\"formkitCmpWrap simpleConditional\" v-if=\"props.context.attrs.identifier === 'rights'\">\n <div class=\"m-3\">\n <div class=\"conditionalSelectDiv\">\n <input ref=\"I1\" type=\"text\" class=\"conditionalSelect formkit-input formkit-inner\" @click=\"openSelect($event)\"\n :placeholder=\"props.context.attrs.placeholder\" v-model=\"selectModeVal\">\n <div v-if=\"showSelect\">\n <ul class=\"selectListConditional\">\n <li v-for=\"el, index in props.context.attrs.selection\" class=\"p-2 border-b border-gray-200 \"\n @click=\"selectMode(el, $t('message.dataupload.datasets.conditional.' + el))\">{{\n $t('message.dataupload.datasets.conditional.' + el) }}</li>\n </ul>\n </div>\n </div>\n <div class=\"conditionalManual\">\n <div class=\"d-flex\" v-if=\"selectedItem === 'URL' || props.context.node.value['@type'] === 'url'\">\n <FormKit type=\"url\" :placeholder=\"$t('message.dataupload.datasets.conditional.URL')\" name=\"rdfs:label\"\n validation=\"url\" class=\"w-100\" identifier=\"rightsUrl\" v-model=\"props.context.value['rdfs:value']\">\n </FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'Text' || props.context.value['@type'] === 'text'\">\n <FormKit type=\"text\" :placeholder=\"$t('message.dataupload.datasets.conditional.Text')\" name=\"rdfs:label\"\n class=\"w-100\" identifier=\"rightsText\" v-model=\"props.context.value['rdfs:value']\"></FormKit>\n </div>\n </div>\n </div>\n\n <!-- Choice between manualinput and vocabulary search -->\n <div class=\"formkitCmpWrap simpleConditional\" v-else>\n <div class=\"m-3\">\n <div class=\"conditionalSelectDiv\">\n <input ref=\"I1\" type=\"text\" class=\"conditionalSelect formkit-input formkit-inner\" @click=\"openSelect($event)\"\n :placeholder=props.context.attrs.placeholder v-model=\"selectModeVal\" readonly>\n\n <div v-if=\"showSelect\">\n <ul class=\"selectListConditional\">\n <li v-for=\"el, index in props.context.attrs.selection\" class=\"p-2 border-b border-gray-200 \"\n @click=\"selectMode(el, $t('message.dataupload.datasets.conditional.' + el))\">{{\n $t('message.dataupload.datasets.conditional.' + el) }}</li>\n </ul>\n </div>\n <!-- <div v-if=\"selectedItem === 'vocabulary'\"\n v-html=\"$t('Vocabulary (see EU Vocabularies and Corporate Body for details on the entities.)')\"\n class=\"formkit-help position-absolute\">\n </div> -->\n <div v-if=\"selectedItem === 'vocabulary'\" class=\"formkit-help position-absolute\">\n Vocabulary (see\n <a href=\"https://op.europa.eu/en/web/eu-vocabularies/concept-scheme/-/resource?uri=https://publications.europa.eu/resource/authority/licence\"\n target=\"_blank\" rel=\"noopener noreferrer\">EU Vocabularies</a>\n and\n <a href=\"https://op.europa.eu/en/web/eu-vocabularies/dataset/-/resource?uri=http://publications.europa.eu/resource/dataset/corporate-body\"\n target=\"_blank\" rel=\"noopener noreferrer\">Corporate Body</a>\n for details on the entities.)\n </div>\n </div>\n <div class=\"conditionalManual\">\n <div class=\"d-flex\" v-if=\"selectedItem === 'manually' ||\n Object.keys(props.context.value).length > 0 && props.context.value['foaf:name']\n && selectedItem != 'vocabulary'\">\n <FormKit v-for=\"el, key in props.context.attrs.options\" :type=\"key\"\n :placeholder=\"$t('message.dataupload.datasets.individual.' + el)\" :name=\"el\" :validation=\"key\"\n class=\"w-100\"></FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'vocabulary' && !props.context.value['name']\" class=\"\">\n <AutocompleteInput :context=\"props.context\"></AutocompleteInput>\n </div>\n\n <div v-if=\"props.context.value['name']\" class=\"conditionalVocabulary d-flex\">\n <a class=\"autocompleteInputSingleValue\">{{\n resolvedUriName }}</a>\n <div class=\"removeX\" @click=\"removeProperty\"></div>\n\n </div>\n <div v-if=\"selectedItem === 'manually'\" v-html=\"props.context.attrs.info\" class=\"formkit-help\"></div>\n\n </div>\n\n </div>\n </div>\n\n</template>\n<script setup>\n\nimport AutocompleteInput from './AutocompleteInput.vue';\nimport { onClickOutside } from '@vueuse/core'\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv.ts\";\nimport { ref, watch, computed, onMounted, watchEffect, toRef } from 'vue';\nimport { useStore } from 'vuex';\nimport { getTranslationFor } from \"../../utils/helpers\";\nimport { getCurrentInstance } from \"vue\";\nimport { getNode } from '@formkit/core'\nimport { useI18n } from 'vue-i18n';\nimport { useRequestUriName } from '../composables/useRequestUriName';\n\nlet env = useRuntimeEnv()\nconst props = defineProps({\n context: Object,\n})\nlet instance = getCurrentInstance().appContext.app.config.globalProperties.$env\nconst { t, locale } = useI18n();\nlet selectModeVal = ref()\nlet selectedItem = ref(false)\nlet showSelect = ref(false)\nlet voc = props.context.attrs.voc;\nconst store = useStore();\nlet resolvedUriName = ref();\n\nconst { execute: requestURIname, error: requestURInameError, isLoading: requestURInameLoading } = useRequestUriName({\n res: computed(() => props.context.value.name),\n voc: computed(() => props.context.attrs.voc),\n property: computed(() => props.context.attrs.property),\n locale,\n})\n\nwatchEffect(() => {\n if (props.context.value['name']) {\n if (resolvedUriName.value != props.context.value.name) {\n\n if (props.context.value.name === props.context.value.resource) {\n requestURIname().then(result => {\n resolvedUriName.value = result;\n }).catch(error => {\n console.error(error);\n })\n }\n else {\n resolvedUriName.value = props.context.value.name\n }\n }\n\n selectModeVal.value = t('message.dataupload.datasets.conditional.' + 'vocabulary');\n }\n if (props.context.value['foaf:name']) {\n selectModeVal.value = t('message.dataupload.datasets.conditional.' + 'manually');\n }\n});\n\nconst I1 = ref(null)\n\nconst openSelect = (e) => {\n\n showSelect.value = !showSelect.value\n\n}\nconst removeProperty = () => {\n props.context.node.reset()\n}\nconst selectMode = (e, translatedString) => {\n selectModeVal.value = translatedString\n selectedItem.value = e\n props.context.node.reset()\n props.context.value = \"\"\n}\n\nonClickOutside(I1, event => showSelect.value = false)\n\n</script>\n<style>\n.conditionalManual {\n .formkit-outer {\n width: 100%;\n }\n}\n\n.hover {\n text-decoration: underline;\n}\n\n.conditionalVocabulary {\n display: flex;\n align-items: center;\n margin: 1rem 0;\n}\n\n.w-80 {\n width: 80%;\n}\n\n.infoLicense {\n a {\n color: blue;\n }\n\n padding: 1rem;\n background-color: rgb(171, 225, 165)\n}\n\n.infoboxI {\n width: 5%;\n}\n\n.textInfoI {\n width: 95%;\n}\n</style>\n"],"names":["env","useRuntimeEnv","props","__props","getCurrentInstance","t","locale","useI18n","selectModeVal","ref","selectedItem","showSelect","useStore","resolvedUriName","requestURIname","requestURInameError","requestURInameLoading","useRequestUriName","computed","watchEffect","result","error","I1","openSelect","e","removeProperty","selectMode","translatedString","onClickOutside","event","_openBlock","_createElementBlock","_hoisted_1","_hoisted_2","_toDisplayString","$t","_hoisted_3","_unref","_hoisted_4","_cache","_hoisted_5","_hoisted_6","_createElementVNode","_hoisted_7","_hoisted_8","$event","_hoisted_10","_hoisted_11","_Fragment","_renderList","el","index","_hoisted_12","_hoisted_13","_hoisted_14","_createVNode","_component_FormKit","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","key","_createBlock","_hoisted_26","AutocompleteInput","_hoisted_27","_hoisted_28"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4JA,QAAIA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vuex').Computed;
9
8
  getUserData: import('vuex').Computed;
9
+ getIsDraft: import('vuex').Computed;
10
10
  }, {
11
11
  setupEditPage(): Promise<void>;
12
12
  convertToInput: import('vuex').ActionMethod;
@@ -47,9 +47,9 @@ const u = {
47
47
  }
48
48
  }, d = { style: { height: "370px" } };
49
49
  function l(a, t, r, e, h, f) {
50
- return i(), n("div", d, t[0] || (t[0] = [
50
+ return i(), n("div", d, [...t[0] || (t[0] = [
51
51
  p("div", { class: "spinner" }, null, -1)
52
- ]));
52
+ ])]);
53
53
  }
54
54
  const y = /* @__PURE__ */ c(u, [["render", l]]);
55
55
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"DataFetchingComponent.vue.mjs","sources":["../../../lib/data-provider-interface/components/DataFetchingComponent.vue"],"sourcesContent":["<template>\n <div style=\"height:370px;\">\n <div class=\"spinner\"></div>\n </div>\n</template>\n\n<script>\nimport { mapActions, mapGetters } from 'vuex';\n\nexport default {\n props: ['id', 'property', 'catalog'],\n data() {\n return {};\n },\n computed: {\n ...mapGetters('auth', [\n 'getIsDraft',\n 'getUserData',\n ]),\n token() {\n return this.getUserData.rtpToken;\n },\n redirectUri() {\n return `${this.$env.content.dataProviderInterface.basePath}/${this.property}?locale=${this.$i18n.locale}`;\n },\n },\n methods: {\n ...mapActions('auth', [\n 'setIsEditMode',\n 'setIsDraft',\n ]),\n ...mapActions('dpiStore', [\n 'convertToInput',\n ]),\n async setupEditPage() {\n this.$router.push({\n name: 'DataProviderInterface-Input',\n params: { property: this.property },\n query: { \n locale: this.$route.query.locale,\n edit: true,\n id: !this.getIsDraft && this.property === 'catalogues'\n ? this.catalog\n : this.id,\n catalog: this.catalog,\n fromDraft: this.getIsDraft ? 'true' : undefined,\n },\n })\n\n return;\n\n let endpoint;\n this.setIsEditMode(true);\n const specification = this.$env.content.dataProviderInterface.specification;\n\n if (this.getIsDraft) {\n this.setIsDraft(true);\n endpoint = `${this.$env.api.hubUrl}drafts/datasets/${this.id}.nt?catalogue=${this.catalog}`;\n await this.convertToInput({endpoint, token: this.token, property: this.property, id: this.id, specification: specification });\n } else {\n this.setIsDraft(false);\n if (this.property === 'catalogues') {\n endpoint = `${this.$env.api.hubUrl}catalogues/${this.catalog}.nt`;\n await this.convertToInput({endpoint, token: this.token, property: this.property, id: this.catalog, specification: specification });\n } else {\n endpoint = `${this.$env.api.hubUrl}datasets/${this.id}.nt?useNormalizedId=true`;\n await this.convertToInput({endpoint, token: this.token, property: this.property, id: this.id, specification: specification });\n } \n }\n\n this.$router.push(this.redirectUri).catch(() => {});\n },\n },\n beforeRouteEnter(to, from, next) {\n next(vm => {\n if (from.fullPath.startsWith(vm.redirectUri)) {\n vm.$router.go(-1);\n } else vm.setupEditPage();\n });\n },\n};\n</script>\n"],"names":["_sfc_main","mapGetters","mapActions","to","from","next","vm","_hoisted_1","_openBlock","_createElementBlock","_cache","_createElementVNode"],"mappings":";;;AASA,MAAKA,IAAU;AAAA,EACb,OAAO,CAAC,MAAM,YAAY,SAAS;AAAA,EACnC,OAAO;AACL,WAAO;EACR;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,QAAQ;AAAA,MACpB;AAAA,MACA;AAAA,IACF,CAAC;AAAA,IACD,QAAQ;AACN,aAAO,KAAK,YAAY;AAAA,IACzB;AAAA,IACD,cAAc;AACZ,aAAO,GAAG,KAAK,KAAK,QAAQ,sBAAsB,QAAQ,IAAI,KAAK,QAAQ,WAAW,KAAK,MAAM,MAAM;AAAA,IACxG;AAAA,EACF;AAAA,EACD,SAAS;AAAA,IACP,GAAGC,EAAW,QAAQ;AAAA,MACpB;AAAA,MACA;AAAA,IACF,CAAC;AAAA,IACD,GAAGA,EAAW,YAAY;AAAA,MACxB;AAAA,IACF,CAAC;AAAA,IACD,MAAM,gBAAgB;AACpB,WAAK,QAAQ,KAAK;AAAA,QAChB,MAAM;AAAA,QACN,QAAQ,EAAE,UAAU,KAAK,SAAU;AAAA,QACnC,OAAO;AAAA,UACL,QAAQ,KAAK,OAAO,MAAM;AAAA,UAC1B,MAAM;AAAA,UACN,IAAI,CAAC,KAAK,cAAc,KAAK,aAAa,eACtC,KAAK,UACL,KAAK;AAAA,UACT,SAAS,KAAK;AAAA,UACd,WAAW,KAAK,aAAa,SAAS;AAAA,QACvC;AAAA,OACF;AAAA,IAwBF;AAAA,EACF;AAAA,EACD,iBAAiBC,GAAIC,GAAMC,GAAM;AAC/B,IAAAA,EAAK,CAAAC,MAAM;AACT,MAAIF,EAAK,SAAS,WAAWE,EAAG,WAAW,IACzCA,EAAG,QAAQ,GAAG,EAAE,IACXA,EAAG;IACZ,CAAC;AAAA,EACF;AACH,GA/EOC,IAAA,EAAA,OAAA,EAAqB,QAAA,QAAA,EAAA;;AAA1B,SAAAC,EAAA,GAAAC,EAEM,OAFNF,GAEMG,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,IADJC,EAA2B,OAAA,EAAtB,OAAM,UAAS,GAAA,MAAA,EAAA;AAAA;;;"}
1
+ {"version":3,"file":"DataFetchingComponent.vue.mjs","sources":["../../../lib/data-provider-interface/components/DataFetchingComponent.vue"],"sourcesContent":["<template>\n <div style=\"height:370px;\">\n <div class=\"spinner\"></div>\n </div>\n</template>\n\n<script>\nimport { mapActions, mapGetters } from 'vuex';\n\nexport default {\n props: ['id', 'property', 'catalog'],\n data() {\n return {};\n },\n computed: {\n ...mapGetters('auth', [\n 'getIsDraft',\n 'getUserData',\n ]),\n token() {\n return this.getUserData.rtpToken;\n },\n redirectUri() {\n return `${this.$env.content.dataProviderInterface.basePath}/${this.property}?locale=${this.$i18n.locale}`;\n },\n },\n methods: {\n ...mapActions('auth', [\n 'setIsEditMode',\n 'setIsDraft',\n ]),\n ...mapActions('dpiStore', [\n 'convertToInput',\n ]),\n async setupEditPage() {\n this.$router.push({\n name: 'DataProviderInterface-Input',\n params: { property: this.property },\n query: { \n locale: this.$route.query.locale,\n edit: true,\n id: !this.getIsDraft && this.property === 'catalogues'\n ? this.catalog\n : this.id,\n catalog: this.catalog,\n fromDraft: this.getIsDraft ? 'true' : undefined,\n },\n })\n\n return;\n\n let endpoint;\n this.setIsEditMode(true);\n const specification = this.$env.content.dataProviderInterface.specification;\n\n if (this.getIsDraft) {\n this.setIsDraft(true);\n endpoint = `${this.$env.api.hubUrl}drafts/datasets/${this.id}.nt?catalogue=${this.catalog}`;\n await this.convertToInput({endpoint, token: this.token, property: this.property, id: this.id, specification: specification });\n } else {\n this.setIsDraft(false);\n if (this.property === 'catalogues') {\n endpoint = `${this.$env.api.hubUrl}catalogues/${this.catalog}.nt`;\n await this.convertToInput({endpoint, token: this.token, property: this.property, id: this.catalog, specification: specification });\n } else {\n endpoint = `${this.$env.api.hubUrl}datasets/${this.id}.nt?useNormalizedId=true`;\n await this.convertToInput({endpoint, token: this.token, property: this.property, id: this.id, specification: specification });\n } \n }\n\n this.$router.push(this.redirectUri).catch(() => {});\n },\n },\n beforeRouteEnter(to, from, next) {\n next(vm => {\n if (from.fullPath.startsWith(vm.redirectUri)) {\n vm.$router.go(-1);\n } else vm.setupEditPage();\n });\n },\n};\n</script>\n"],"names":["_sfc_main","mapGetters","mapActions","to","from","next","vm","_hoisted_1","_openBlock","_createElementBlock","_cache","_createElementVNode"],"mappings":";;;AASA,MAAKA,IAAU;AAAA,EACb,OAAO,CAAC,MAAM,YAAY,SAAS;AAAA,EACnC,OAAO;AACL,WAAO;EACR;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,QAAQ;AAAA,MACpB;AAAA,MACA;AAAA,IACF,CAAC;AAAA,IACD,QAAQ;AACN,aAAO,KAAK,YAAY;AAAA,IACzB;AAAA,IACD,cAAc;AACZ,aAAO,GAAG,KAAK,KAAK,QAAQ,sBAAsB,QAAQ,IAAI,KAAK,QAAQ,WAAW,KAAK,MAAM,MAAM;AAAA,IACxG;AAAA,EACF;AAAA,EACD,SAAS;AAAA,IACP,GAAGC,EAAW,QAAQ;AAAA,MACpB;AAAA,MACA;AAAA,IACF,CAAC;AAAA,IACD,GAAGA,EAAW,YAAY;AAAA,MACxB;AAAA,IACF,CAAC;AAAA,IACD,MAAM,gBAAgB;AACpB,WAAK,QAAQ,KAAK;AAAA,QAChB,MAAM;AAAA,QACN,QAAQ,EAAE,UAAU,KAAK,SAAU;AAAA,QACnC,OAAO;AAAA,UACL,QAAQ,KAAK,OAAO,MAAM;AAAA,UAC1B,MAAM;AAAA,UACN,IAAI,CAAC,KAAK,cAAc,KAAK,aAAa,eACtC,KAAK,UACL,KAAK;AAAA,UACT,SAAS,KAAK;AAAA,UACd,WAAW,KAAK,aAAa,SAAS;AAAA,QACvC;AAAA,OACF;AAAA,IAwBF;AAAA,EACF;AAAA,EACD,iBAAiBC,GAAIC,GAAMC,GAAM;AAC/B,IAAAA,EAAK,CAAAC,MAAM;AACT,MAAIF,EAAK,SAAS,WAAWE,EAAG,WAAW,IACzCA,EAAG,QAAQ,GAAG,EAAE,IACXA,EAAG;IACZ,CAAC;AAAA,EACF;AACH,GA/EOC,IAAA,EAAA,OAAA,EAAqB,QAAA,QAAA,EAAA;;AAA1B,SAAAC,EAAA,GAAAC,EAEM,OAFNF,GAEM,CAAA,GAAAG,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,IADJC,EAA2B,OAAA,EAAtB,OAAM,UAAS,GAAA,MAAA,EAAA;AAAA;;;"}
@@ -164,9 +164,9 @@ function Z(e, t, u, b, C, g) {
164
164
  e.activeStep === "overview" ? (i(), o("div", q)) : l("", !0)
165
165
  ], 10, z))), 128)),
166
166
  t[6] || (t[6] = r()),
167
- e.activeStep === "overview" ? (i(), o("li", E, t[5] || (t[5] = [
167
+ e.activeStep === "overview" ? (i(), o("li", E, [...t[5] || (t[5] = [
168
168
  a("div", { class: "circle stepCircle" }, null, -1)
169
- ]))) : l("", !0)
169
+ ])])) : l("", !0)
170
170
  ]),
171
171
  t[9] || (t[9] = r()),
172
172
  a("div", G, [
@@ -183,8 +183,7 @@ function Z(e, t, u, b, C, g) {
183
183
  r(" " + p(e.$t("message.dataupload.steps.MandatoryStep")), 1)
184
184
  ])) : l("", !0)
185
185
  ]),
186
- _: 2,
187
- __: [8]
186
+ _: 2
188
187
  }, 1032, ["name"])
189
188
  ]))), 128))
190
189
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"DistributionStepper.vue.mjs","sources":["../../../lib/data-provider-interface/components/DistributionStepper.vue"],"sourcesContent":["<template>\n <FormKit type=\"form\" :actions=\"false\" :plugins=\"[stepPlugin]\">\n <div name=\"distribution-stepper\" class=\"singleDistributions\">\n <div class=\"disInfoWrapper\" v-if=\"!isCollapsed\">\n <ul class=\"steps\">\n <li v-for=\"(step, stepName, index) in steps\" :key=\"index\" class=\"step\"\n :data-step-active=\"activeStep === stepName\" :data-step-valid=\"step.valid && step.errorCount === 0\" :class=\"{\n activeItem: activeStep === stepName, inactiveStep: stepName != activeStep, 'has-errors': checkStepValidity(stepName)\n }\" @click=\"activeStep = stepName; indexOfDis = index + 1\">\n\n <div class=\"stepBubbleWrap\">\n <div class=\"circle stepCircle\">{{ convertToRoman(index + 1) }}</div>\n <span v-if=\"checkStepValidity(stepName)\" class=\"step--errors\"\n v-text=\"step.errorCount + step.blockingCount\" />\n {{ $t('message.dataupload.steps.' + stepName + 'Step') }}\n </div>\n <div\n v-if=\"index + 1 != Object.keys(getNavSteps($env.content.dataProviderInterface.specification).distributions).length\"\n class=\"seperatorHorizontalStepper\">\n </div>\n <div v-if=\"activeStep === 'overview'\" class=\"seperatorHorizontalStepper\"></div>\n </li>\n <li class=\"step inactiveStep\" v-if=\"activeStep === 'overview'\">\n <div class=\"circle stepCircle\"></div>\n </li>\n </ul>\n <div class=\"d-flex flex-column w-100\">\n <div v-for=\"(stepName, i) in getNavSteps($env.content.dataProviderInterface.specification).distributions\"\n :key=\"i\">\n <InputPageStep :name=\"stepName\">\n <!-- <PropertyChooser></PropertyChooser> -->\n\n <FormKitSchema :schema=\"schema[stepName]\" :library=\"library\" />\n <p v-if=\"stepName === 'Mandatory'\" class=\"p-1\"> <b>*</b> {{ $t('message.dataupload.steps.MandatoryStep')\n }}</p>\n </InputPageStep>\n </div>\n </div>\n </div>\n </div>\n </FormKit>\n\n <div class=\"m-3 d-flex justify-content-end\">\n\n <button v-if=\"indexOfDis > 1\" type=\"button\" class=\"btn btn-secondary\"\n @click=\"goToPreviousStep(); scrollToTop(); indexOfDis = indexOfDis - 1\">{{\n $t('message.dataupload.steps.previousDisStep')\n }}</button>\n <button v-if=\"indexOfDis < 4\" type=\"button\" class=\"btn btn-secondary ml-3\"\n @click=\"goToNextStep(); scrollToTop(); indexOfDis = indexOfDis + 1\">{{\n $t('message.dataupload.steps.nextDisStep')\n }}</button>\n </div>\n</template>\n\n<script>\nimport { defineComponent, markRaw, reactive } from 'vue';\nimport { mapGetters } from 'vuex';\nimport { useDpiStepper } from '../composables/useDpiStepper';\nimport InputPageStep from '../components/InputPageStep.vue';\nimport SelectControlledGroup from './SelectControlledGroup.vue';\nimport { useWindowScroll } from '@vueuse/core'\n\n\nexport default defineComponent({\n props: {\n name: {\n type: String,\n default: '',\n },\n index: {\n required: true\n },\n schema: {\n required: true,\n type: Object,\n },\n context: {\n type: Object,\n },\n distributionIsCollapsed: {\n type: Boolean,\n },\n collapseDistributions: {\n type: Function,\n },\n deleteDistribution: {\n type: Function,\n },\n },\n components: {\n InputPageStep,\n },\n data() {\n return {\n isCollapsed: false,\n camel2title: (str) =>\n str\n .replace(/([A-Z])/g, (match) => ` ${match}`)\n .replace(/^./, (match) => match.toUpperCase())\n .trim(),\n isActive: false,\n indexOfDis: 1,\n\n }\n },\n methods: {\n editDistribution() {\n this.isCollapsed = !this.isCollapsed;\n this.collapseDistributions(this.index);\n },\n scrollToTop() {\n let { x, y } = useWindowScroll({ behavior: 'smooth' })\n y.value = 0\n\n },\n convertToRoman(element) {\n if (element === 1) {\n return \"A\"\n }\n if (element === 2) {\n return \"B\"\n }\n if (element === 3) {\n return \"C\"\n }\n if (element === 4) {\n return \"D\"\n }\n }\n },\n computed: {\n ...mapGetters('dpiStore', [\n 'getNavSteps'\n ]),\n getName() {\n return this.name\n || values['Distributions']['distributionList'][this.name - 1]['Mandatory']['dcat:accessURL'][0]['@id'];\n },\n },\n watch: {\n distributionIsCollapsed: {\n handler(newValue) {\n this.isCollapsed = newValue;\n },\n },\n },\n created() { },\n setup() {\n const {\n steps,\n activeStep,\n visitedSteps,\n previousStep,\n nextStep,\n stepPlugin,\n goToNextStep,\n goToPreviousStep,\n } = useDpiStepper();\n\n const checkStepValidity = (stepName) => {\n return (steps[stepName].errorCount > 0 || steps[stepName].blockingCount > 0) && visitedSteps.value.includes(stepName)\n }\n\n const library = markRaw({\n SelectControlledGroup,\n })\n\n return {\n steps,\n visitedSteps,\n activeStep,\n previousStep,\n nextStep,\n stepPlugin,\n checkStepValidity,\n goToNextStep,\n goToPreviousStep,\n library,\n }\n }\n});\n</script>\n\n<style></style>"],"names":["_sfc_main","defineComponent","InputPageStep","str","match","x","y","useWindowScroll","element","mapGetters","newValue","steps","activeStep","visitedSteps","previousStep","nextStep","stepPlugin","goToNextStep","goToPreviousStep","useDpiStepper","checkStepValidity","stepName","library","markRaw","SelectControlledGroup","_hoisted_3","_hoisted_5","_hoisted_6","_hoisted_11","_hoisted_13","_createVNode","_component_FormKit","_ctx","_createElementVNode","_hoisted_1","_openBlock","_createElementBlock","_hoisted_2","_Fragment","step","index","_toDisplayString","_hoisted_8","_hoisted_9","_hoisted_10","_cache","_renderList","i","_component_InputPageStep","_component_FormKitSchema","_hoisted_12","_createTextVNode"],"mappings":";;;;;;;AAgEA,MAAKA,IAAaC,EAAa;AAAA,EAC7B,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,OAAO;AAAA,MACL,UAAU;AAAA,IACX;AAAA,IACD,QAAQ;AAAA,MACN,UAAU;AAAA,MACV,MAAM;AAAA,IACP;AAAA,IACD,SAAS;AAAA,MACP,MAAM;AAAA,IACP;AAAA,IACD,yBAAyB;AAAA,M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GAAA;AAAA,6BAG5B,MAA+D;AAAA,oBAA/DS,EAA+DmB,GAAA;AAAA,sBAA/C,QAAQjB,EAAM,OAACX,CAAQ;AAAA,sBAAI,SAASW,EAAO;AAAA;;oBAClDX,MAAQ,eAAjBc,KAAAC,EACM,KADNc,GACM;AAAA,sBAD0CL,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAZ,EAAQ,WAAL,KAAC,EAAA;AAAA,sBAAIkB,EAAA,QAAInB,EAAE,GAAA,wCAAA,CAAA,GAAA,CAAA;AAAA;;;;;;;;;;;;;IAS1EC,EAUM,OAVNJ,GAUM;AAAA,MARUG,EAAU,aAAA,UAAxBI,EAGa,UAAA;AAAA;QAHiB,MAAK;AAAA,QAAS,OAAM;AAAA,QAC/C;AAAO,UAAAJ,EAAgB,iBAAA,GAAIA,cAAW,GAAIA,EAAA,aAAaA,EAAU,aAAA;AAAA,QAAA;AAAA,WAChEA,EAAE,GAAA,0CAAA,CAAA,GAAA,CAAA;;MAEQA,EAAU,aAAA,UAAxBI,EAGa,UAAA;AAAA;QAHiB,MAAK;AAAA,QAAS,OAAM;AAAA,QAC/C;AAAO,UAAAJ,EAAY,aAAA,GAAIA,cAAW,GAAIA,EAAA,aAAaA,EAAU,aAAA;AAAA,QAAA;AAAA,WAC5DA,EAAE,GAAA,sCAAA,CAAA,GAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"DistributionStepper.vue.mjs","sources":["../../../lib/data-provider-interface/components/DistributionStepper.vue"],"sourcesContent":["<template>\n <FormKit type=\"form\" :actions=\"false\" :plugins=\"[stepPlugin]\">\n <div name=\"distribution-stepper\" class=\"singleDistributions\">\n <div class=\"disInfoWrapper\" v-if=\"!isCollapsed\">\n <ul class=\"steps\">\n <li v-for=\"(step, stepName, index) in steps\" :key=\"index\" class=\"step\"\n :data-step-active=\"activeStep === stepName\" :data-step-valid=\"step.valid && step.errorCount === 0\" :class=\"{\n activeItem: activeStep === stepName, inactiveStep: stepName != activeStep, 'has-errors': checkStepValidity(stepName)\n }\" @click=\"activeStep = stepName; indexOfDis = index + 1\">\n\n <div class=\"stepBubbleWrap\">\n <div class=\"circle stepCircle\">{{ convertToRoman(index + 1) }}</div>\n <span v-if=\"checkStepValidity(stepName)\" class=\"step--errors\"\n v-text=\"step.errorCount + step.blockingCount\" />\n {{ $t('message.dataupload.steps.' + stepName + 'Step') }}\n </div>\n <div\n v-if=\"index + 1 != Object.keys(getNavSteps($env.content.dataProviderInterface.specification).distributions).length\"\n class=\"seperatorHorizontalStepper\">\n </div>\n <div v-if=\"activeStep === 'overview'\" class=\"seperatorHorizontalStepper\"></div>\n </li>\n <li class=\"step inactiveStep\" v-if=\"activeStep === 'overview'\">\n <div class=\"circle stepCircle\"></div>\n </li>\n </ul>\n <div class=\"d-flex flex-column w-100\">\n <div v-for=\"(stepName, i) in getNavSteps($env.content.dataProviderInterface.specification).distributions\"\n :key=\"i\">\n <InputPageStep :name=\"stepName\">\n <!-- <PropertyChooser></PropertyChooser> -->\n\n <FormKitSchema :schema=\"schema[stepName]\" :library=\"library\" />\n <p v-if=\"stepName === 'Mandatory'\" class=\"p-1\"> <b>*</b> {{ $t('message.dataupload.steps.MandatoryStep')\n }}</p>\n </InputPageStep>\n </div>\n </div>\n </div>\n </div>\n </FormKit>\n\n <div class=\"m-3 d-flex justify-content-end\">\n\n <button v-if=\"indexOfDis > 1\" type=\"button\" class=\"btn btn-secondary\"\n @click=\"goToPreviousStep(); scrollToTop(); indexOfDis = indexOfDis - 1\">{{\n $t('message.dataupload.steps.previousDisStep')\n }}</button>\n <button v-if=\"indexOfDis < 4\" type=\"button\" class=\"btn btn-secondary ml-3\"\n @click=\"goToNextStep(); scrollToTop(); indexOfDis = indexOfDis + 1\">{{\n $t('message.dataupload.steps.nextDisStep')\n }}</button>\n </div>\n</template>\n\n<script>\nimport { defineComponent, markRaw, reactive } from 'vue';\nimport { mapGetters } from 'vuex';\nimport { useDpiStepper } from '../composables/useDpiStepper';\nimport InputPageStep from '../components/InputPageStep.vue';\nimport SelectControlledGroup from './SelectControlledGroup.vue';\nimport { useWindowScroll } from '@vueuse/core'\n\n\nexport default defineComponent({\n props: {\n name: {\n type: String,\n default: '',\n },\n index: {\n required: true\n },\n schema: {\n required: true,\n type: Object,\n },\n context: {\n type: Object,\n },\n distributionIsCollapsed: {\n type: Boolean,\n },\n collapseDistributions: {\n type: Function,\n },\n deleteDistribution: {\n type: Function,\n },\n },\n components: {\n InputPageStep,\n },\n data() {\n return {\n isCollapsed: false,\n camel2title: (str) =>\n str\n .replace(/([A-Z])/g, (match) => ` ${match}`)\n .replace(/^./, (match) => match.toUpperCase())\n .trim(),\n isActive: false,\n indexOfDis: 1,\n\n }\n },\n methods: {\n editDistribution() {\n this.isCollapsed = !this.isCollapsed;\n this.collapseDistributions(this.index);\n },\n scrollToTop() {\n let { x, y } = useWindowScroll({ behavior: 'smooth' })\n y.value = 0\n\n },\n convertToRoman(element) {\n if (element === 1) {\n return \"A\"\n }\n if (element === 2) {\n return \"B\"\n }\n if (element === 3) {\n return \"C\"\n }\n if (element === 4) {\n return \"D\"\n }\n }\n },\n computed: {\n ...mapGetters('dpiStore', [\n 'getNavSteps'\n ]),\n getName() {\n return this.name\n || values['Distributions']['distributionList'][this.name - 1]['Mandatory']['dcat:accessURL'][0]['@id'];\n },\n },\n watch: {\n distributionIsCollapsed: {\n handler(newValue) {\n this.isCollapsed = newValue;\n },\n },\n },\n created() { },\n setup() {\n const {\n steps,\n activeStep,\n visitedSteps,\n previousStep,\n nextStep,\n stepPlugin,\n goToNextStep,\n goToPreviousStep,\n } = useDpiStepper();\n\n const checkStepValidity = (stepName) => {\n return (steps[stepName].errorCount > 0 || steps[stepName].blockingCount > 0) && visitedSteps.value.includes(stepName)\n }\n\n const library = markRaw({\n SelectControlledGroup,\n })\n\n return {\n steps,\n visitedSteps,\n activeStep,\n previousStep,\n nextStep,\n stepPlugin,\n checkStepValidity,\n goToNextStep,\n goToPreviousStep,\n library,\n }\n }\n});\n</script>\n\n<style></style>"],"names":["_sfc_main","defineComponent","InputPageStep","str","match","x","y","useWindowScroll","element","mapGetters","newValue","steps","activeStep","visitedSteps","previousStep","nextStep","stepPlugin","goToNextStep","goToPreviousStep","useDpiStepper","checkStepValidity","stepName","library","markRaw","SelectControlledGroup","_hoisted_3","_hoisted_5","_hoisted_6","_hoisted_11","_hoisted_13","_createVNode","_component_FormKit","_ctx","_createElementVNode","_hoisted_1","_openBlock","_createElementBlock","_hoisted_2","_Fragment","step","index","_toDisplayString","_hoisted_8","_hoisted_9","_hoisted_10","_cache","_renderList","i","_component_InputPageStep","_component_FormKitSchema","_hoisted_12","_createTextVNode"],"mappings":";;;;;;;AAgEA,MAAKA,IAAaC,EAAa;AAAA,EAC7B,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,OAAO;AAAA,MACL,UAAU;AAAA,IACX;AAAA,IACD,QAAQ;AAAA,MACN,UAAU;AAAA,MACV,MAAM;AAAA,IACP;AAAA,IACD,SAAS;AAAA,MACP,MAAM;AAAA,IACP;AAAA,IACD,yBAAyB;AAAA,MACvB,MAAM;AAAA,IACP;AAAA,IACD,uBAAuB;AAAA,MACrB,MAAM;AAAA,IACP;AAAA,IACD,oBAAoB;AAAA,MAClB,MAAM;AAAA,IACP;AAAA,EACF;AAAA,EACD,YAAY;AAAA,mBACVC;AAAAA,EACD;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,aAAa;AAAA,MACb,aAAa,CAACC,MACZA,EACG,QAAQ,YAAY,CAACC,MAAU,IAAIA,CAAK,EAAE,EAC1C,QAAQ,MAAM,CAACA,MAAUA,EAAM,YAAW,CAAE,EAC5C,KAAM;AAAA,MACX,UAAU;AAAA,MACV,YAAY;AAAA,IAEd;AAAA,EACD;AAAA,EACD,SAAS;AAAA,IACP,mBAAmB;AACjB,WAAK,cAAc,CAAC,KAAK,aACzB,KAAK,sBAAsB,KAAK,KAAK;AAAA,IACtC;AAAA,IAC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AaA,EAAU,aAAA;AAAA,QAAA;AAAA,WAChEA,EAAE,GAAA,0CAAA,CAAA,GAAA,CAAA;;MAEQA,EAAU,aAAA,UAAxBI,EAGa,UAAA;AAAA;QAHiB,MAAK;AAAA,QAAS,OAAM;AAAA,QAC/C;AAAO,UAAAJ,EAAY,aAAA,GAAIA,cAAW,GAAIA,EAAA,aAAaA,EAAU,aAAA;AAAA,QAAA;AAAA,WAC5DA,EAAE,GAAA,sCAAA,CAAA,GAAA,CAAA;;;;;"}
@@ -32,7 +32,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
32
32
  };
33
33
  }>> & Readonly<{}>, {
34
34
  isCatalog: boolean;
35
- show: boolean;
36
35
  isOperator: boolean;
36
+ show: boolean;
37
37
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
38
38
  export default _default;
@@ -29,8 +29,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
29
29
  validExtensions: any;
30
30
  }, {
31
31
  getData: import('vuex').Computed;
32
- getIsEditMode: import('vuex').Computed;
33
32
  getUserData: import('vuex').Computed;
33
+ getIsEditMode: import('vuex').Computed;
34
34
  }, {
35
35
  toggleUploadUrl(): void;
36
36
  toggleUploadFileSwitch(): void;
@@ -267,13 +267,13 @@ function ae(t, e, d, p, m, n) {
267
267
  r("div", Y, [
268
268
  t.isLoading ? (s(), l("div", Z)) : f("", !0),
269
269
  e[12] || (e[12] = a()),
270
- t.success ? (s(), l("div", _, e[10] || (e[10] = [
270
+ t.success ? (s(), l("div", _, [...e[10] || (e[10] = [
271
271
  r("i", { class: "material-icons d-flex check-icon" }, "check_circle", -1)
272
- ]))) : f("", !0),
272
+ ])])) : f("", !0),
273
273
  e[13] || (e[13] = a()),
274
- t.fail ? (s(), l("div", ee, e[11] || (e[11] = [
274
+ t.fail ? (s(), l("div", ee, [...e[11] || (e[11] = [
275
275
  r("i", { class: "material-icons d-flex close-icon" }, "error", -1)
276
- ]))) : f("", !0)
276
+ ])])) : f("", !0)
277
277
  ])
278
278
  ]),
279
279
  e[17] || (e[17] = a()),