@piveau/piveau-hub-ui-modules 4.6.2 → 4.6.4

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.
@@ -3,11 +3,11 @@ import D from "./DistributionPreview.vue.mjs";
3
3
  import V from "./DistributionDownload.vue.mjs";
4
4
  import U from "./LinkedDataButtonsDropdown.vue.mjs";
5
5
  import { mapGetters as p } from "vuex";
6
- import { has as g, isNil as u } from "lodash-es";
7
- import { resolveComponent as l, openBlock as e, createElementBlock as m, createBlock as c, createCommentVNode as r, createTextVNode as s, createVNode as F, createElementVNode as h, withCtx as L } from "vue";
6
+ import { has as g, isNil as d } from "lodash-es";
7
+ import { resolveComponent as l, openBlock as s, createElementBlock as m, createBlock as c, createCommentVNode as r, createTextVNode as a, createVNode as F, createElementVNode as h, withCtx as L } from "vue";
8
8
  import "./DistributionActions.vue2.mjs";
9
9
  import y from "../../../_virtual/_plugin-vue_export-helper.mjs";
10
- const _ = {
10
+ const B = {
11
11
  name: "DistributionActions",
12
12
  components: { AppLink: v, LinkedDataButtonsDropdown: U, DistributionDownload: V, DistributionPreview: D },
13
13
  props: {
@@ -53,18 +53,18 @@ const _ = {
53
53
  },
54
54
  methods: {
55
55
  showVisualisationLink(i) {
56
- var t, o, a;
57
- if (!g(i, "format.label") || u((t = i == null ? void 0 : i.format) == null ? void 0 : t.label) || u(i == null ? void 0 : i.downloadUrls[0]) && u(i == null ? void 0 : i.accessUrl[0]))
56
+ var t, o, e;
57
+ if (!g(i, "format.label") || d((t = i == null ? void 0 : i.format) == null ? void 0 : t.label) || d(i == null ? void 0 : i.downloadUrls[0]) && d(i == null ? void 0 : i.accessUrl[0]))
58
58
  return !1;
59
- const n = (a = (o = i == null ? void 0 : i.format) == null ? void 0 : o.id) == null ? void 0 : a.toLowerCase();
59
+ const n = (e = (o = i == null ? void 0 : i.format) == null ? void 0 : o.id) == null ? void 0 : e.toLowerCase();
60
60
  return n && this.visualisationLinkFormats.includes(n);
61
61
  }
62
62
  }
63
- }, B = { class: "d-flex flex-sm-row flex-md-column flex-lg-row justify-content-start justify-content-lg-end mt-2 text-md-right col text-left distribution-actions" };
64
- function x(i, n, t, o, a, d) {
63
+ }, _ = { class: "d-flex flex-sm-row flex-md-column flex-lg-row justify-content-start justify-content-lg-end mt-2 text-md-right col text-left distribution-actions" };
64
+ function x(i, n, t, o, e, u) {
65
65
  const w = l("distribution-preview"), b = l("distribution-download"), k = l("linked-data-buttons-dropdown"), f = l("app-link");
66
- return e(), m("div", B, [
67
- !d.hidePreviewButton && i.getCatalog.is_part_of !== "erpd" ? (e(), c(w, {
66
+ return s(), m("div", _, [
67
+ !u.hidePreviewButton && i.getCatalog.is_part_of !== "erpd" && !e.showVisualisationButton ? (s(), c(w, {
68
68
  key: 0,
69
69
  isUrlInvalid: t.isUrlInvalid,
70
70
  getVisualisationLink: t.getVisualisationLink,
@@ -73,8 +73,8 @@ function x(i, n, t, o, a, d) {
73
73
  previewLinkCallback: t.previewLinkCallback,
74
74
  class: "distribution-action"
75
75
  }, null, 8, ["isUrlInvalid", "getVisualisationLink", "distribution", "openIfValidUrl", "previewLinkCallback"])) : r("", !0),
76
- n[2] || (n[2] = s()),
77
- t.showDownloadDropdown(t.distribution) ? (e(), c(b, {
76
+ n[2] || (n[2] = a()),
77
+ t.showDownloadDropdown(t.distribution) ? (s(), c(b, {
78
78
  key: 1,
79
79
  getDownloadUrl: t.getDownloadUrl,
80
80
  showAccessUrls: t.showAccessUrls,
@@ -85,36 +85,36 @@ function x(i, n, t, o, a, d) {
85
85
  distribution: t.distribution,
86
86
  class: "distribution-action"
87
87
  }, null, 8, ["getDownloadUrl", "showAccessUrls", "isOnlyOneUrl", "trackGoto", "getDistributionFormat", "replaceHttp", "distribution"])) : r("", !0),
88
- n[3] || (n[3] = s()),
88
+ n[3] || (n[3] = a()),
89
89
  F(k, {
90
90
  distributions: t.distributions,
91
91
  distribution: t.distribution,
92
92
  class: "distribution-action"
93
93
  }, null, 8, ["distributions", "distribution"]),
94
- n[4] || (n[4] = s()),
94
+ n[4] || (n[4] = a()),
95
95
  h("div", null, [
96
- d.showValidateButton ? (e(), c(f, {
96
+ u.showValidateButton ? (s(), c(f, {
97
97
  key: 0,
98
98
  class: "btn btn-sm validate-btn pt-0",
99
99
  to: { name: "DatasetDetailsQuality", query: { locale: i.$route.query.locale, validate: t.distribution.id } }
100
100
  }, {
101
101
  default: L(() => n[1] || (n[1] = [
102
- s(`
102
+ a(`
103
103
  Validate
104
104
  `)
105
105
  ])),
106
106
  _: 1
107
107
  }, 8, ["to"])) : r("", !0)
108
108
  ]),
109
- n[5] || (n[5] = s()),
110
- a.showVisualisationButton && d.showVisualisationLink(t.distribution) ? (e(), m("div", {
109
+ n[5] || (n[5] = a()),
110
+ e.showVisualisationButton && u.showVisualisationLink(t.distribution) ? (s(), m("div", {
111
111
  key: 2,
112
112
  class: "distribution-action btn btn-sm visualise-btn pt-0",
113
113
  onClick: n[0] || (n[0] = (C) => i.$emit("displayVisualisation", t.getDownloadUrl))
114
114
  }, "Visualise")) : r("", !0)
115
115
  ]);
116
116
  }
117
- const E = /* @__PURE__ */ y(_, [["render", x], ["__scopeId", "data-v-99dfebda"]]);
117
+ const E = /* @__PURE__ */ y(B, [["render", x], ["__scopeId", "data-v-6015bf63"]]);
118
118
  export {
119
119
  E as default
120
120
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DistributionActions.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionActions.vue"],"sourcesContent":["<template>\n <div class=\"d-flex flex-sm-row flex-md-column flex-lg-row justify-content-start\n justify-content-lg-end mt-2 text-md-right col text-left distribution-actions\">\n <distribution-preview v-if=\"!hidePreviewButton && getCatalog.is_part_of !== 'erpd'\" :isUrlInvalid=\"isUrlInvalid\"\n :getVisualisationLink=\"getVisualisationLink\" :distribution=\"distribution\" :openIfValidUrl=\"openIfValidUrl\"\n :previewLinkCallback=\"previewLinkCallback\" class=\"distribution-action\" />\n <distribution-download v-if=\"showDownloadDropdown(distribution)\" :getDownloadUrl=\"getDownloadUrl\"\n :showAccessUrls=\"showAccessUrls\" :isOnlyOneUrl=\"isOnlyOneUrl\" :trackGoto=\"trackGoto\"\n :getDistributionFormat=\"getDistributionFormat\" :replaceHttp=\"replaceHttp\" :distribution=\"distribution\"\n class=\"distribution-action\" />\n <linked-data-buttons-dropdown :distributions=\"distributions\" :distribution=\"distribution\"\n class=\"distribution-action\" />\n <div>\n <app-link v-if=\"showValidateButton\" class=\"btn btn-sm validate-btn pt-0\"\n :to=\"{ name: 'DatasetDetailsQuality', query: { locale: $route.query.locale, validate: distribution.id } }\">\n Validate\n </app-link>\n </div>\n <div v-if=\"showVisualisationButton && showVisualisationLink(distribution)\" class=\"distribution-action btn btn-sm visualise-btn pt-0\" @click=\"$emit('displayVisualisation', getDownloadUrl)\">Visualise</div>\n </div>\n</template>\n\n<script>\nimport AppLink from \"../../../widgets/AppLink\";\nimport DistributionPreview from \"../../../datasetDetails/distributions/distributionActions/DistributionPreview\";\nimport DistributionDownload from \"../../../datasetDetails/distributions/distributionActions/DistributionDownload\";\nimport LinkedDataButtonsDropdown\n from \"../../../datasetDetails/distributions/distributionActions/LinkedDataButtonsDropdown\";\nimport {mapGetters} from \"vuex\";\nimport {has, isNil} from \"lodash\";\n\nexport default {\n name: \"DistributionActions\",\n components: { AppLink, LinkedDataButtonsDropdown, DistributionDownload, DistributionPreview },\n props: {\n distribution: Object,\n distributions: Object,\n isUrlInvalid: Function,\n getVisualisationLink: Function,\n showTooltipVisualiseButton: Function,\n previewLinkCallback: Function,\n openIfValidUrl: Function,\n showDownloadDropdown: Function,\n getDownloadUrl: Function,\n showAccessUrls: Function,\n isOnlyOneUrl: Function,\n trackGoto: Function,\n getDistributionFormat: Function,\n replaceHttp: Function,\n },\n data() {\n return {\n showVisualisationButton: this.$env.content.datasetDetails.distributions.showVisualisation,\n visualisationLinkFormats: [\n 'csv',\n 'tsv',\n 'ods',\n 'xlsx',\n 'xls',\n ],\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getCatalog',\n ]),\n showValidateButton() {\n return this.$env?.content?.datasetDetails?.distributions?.showValidationButton;\n },\n hidePreviewButton() {\n // only returns true if the config variable hidePreviewButton exists and is set to true\n return this.$env?.content?.datasetDetails?.distributions?.hidePreviewButton;\n }\n },\n methods: {\n showVisualisationLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution?.format?.label)\n || (isNil(distribution?.downloadUrls[0]) && isNil(distribution?.accessUrl[0]))) return false;\n const f = distribution?.format?.id?.toLowerCase();\n return f && this.visualisationLinkFormats.includes(f);\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.validate-btn, .visualise-btn {\n color: #0e47cb;\n vertical-align: text-bottom;\n text-decoration: none;\n}\n</style>\n"],"names":["_sfc_main","AppLink","LinkedDataButtonsDropdown","DistributionDownload","DistributionPreview","mapGetters","_d","_c","_b","_a","distribution","has","isNil","f","_hoisted_1","_openBlock","_createElementBlock","$options","_ctx","_createBlock","_component_distribution_preview","$props","_createCommentVNode","_cache","_createTextVNode","_component_distribution_download","_createVNode","_component_linked_data_buttons_dropdown","_createElementVNode","_component_app_link","_withCtx","$data","$event"],"mappings":";;;;;;;;;AA+BA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY,EAAE,SAAAC,GAAS,2BAAAC,GAA2B,sBAAAC,GAAsB,qBAAAC,EAAqB;AAAA,EAC7F,OAAO;AAAA,IACL,cAAc;AAAA,IACd,eAAe;AAAA,IACf,cAAc;AAAA,IACd,sBAAsB;AAAA,IACtB,4BAA4B;AAAA,IAC5B,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,IAChB,sBAAsB;AAAA,IACtB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,WAAW;AAAA,IACX,uBAAuB;AAAA,IACvB,aAAa;AAAA,EACd;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,yBAAyB,KAA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AA;AAAA,MAlB/M,KAAA;AAAA,MAkB+E,OAAM;AAAA,MAAqD,SAAKO,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAS,MAAEd,EAAK,MAAA,wBAAyBG,EAAc,cAAA;AAAA,OAAG,WAAS,KAlBzMC,EAAA,IAAA,EAAA;AAAA;;;"}
1
+ {"version":3,"file":"DistributionActions.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionActions.vue"],"sourcesContent":["<template>\n <div class=\"d-flex flex-sm-row flex-md-column flex-lg-row justify-content-start\n justify-content-lg-end mt-2 text-md-right col text-left distribution-actions\">\n <!-- TODO: remove distribution-preview button once the new visualisation service is online -->\n <distribution-preview v-if=\"!hidePreviewButton && getCatalog.is_part_of !== 'erpd' && !showVisualisationButton\" :isUrlInvalid=\"isUrlInvalid\"\n :getVisualisationLink=\"getVisualisationLink\" :distribution=\"distribution\" :openIfValidUrl=\"openIfValidUrl\"\n :previewLinkCallback=\"previewLinkCallback\" class=\"distribution-action\" />\n <distribution-download v-if=\"showDownloadDropdown(distribution)\" :getDownloadUrl=\"getDownloadUrl\"\n :showAccessUrls=\"showAccessUrls\" :isOnlyOneUrl=\"isOnlyOneUrl\" :trackGoto=\"trackGoto\"\n :getDistributionFormat=\"getDistributionFormat\" :replaceHttp=\"replaceHttp\" :distribution=\"distribution\"\n class=\"distribution-action\" />\n <linked-data-buttons-dropdown :distributions=\"distributions\" :distribution=\"distribution\"\n class=\"distribution-action\" />\n <div>\n <app-link v-if=\"showValidateButton\" class=\"btn btn-sm validate-btn pt-0\"\n :to=\"{ name: 'DatasetDetailsQuality', query: { locale: $route.query.locale, validate: distribution.id } }\">\n Validate\n </app-link>\n </div>\n <div v-if=\"showVisualisationButton && showVisualisationLink(distribution)\" class=\"distribution-action btn btn-sm visualise-btn pt-0\" @click=\"$emit('displayVisualisation', getDownloadUrl)\">Visualise</div>\n </div>\n</template>\n\n<script>\nimport AppLink from \"../../../widgets/AppLink\";\nimport DistributionPreview from \"../../../datasetDetails/distributions/distributionActions/DistributionPreview\";\nimport DistributionDownload from \"../../../datasetDetails/distributions/distributionActions/DistributionDownload\";\nimport LinkedDataButtonsDropdown\n from \"../../../datasetDetails/distributions/distributionActions/LinkedDataButtonsDropdown\";\nimport {mapGetters} from \"vuex\";\nimport {has, isNil} from \"lodash\";\n\nexport default {\n name: \"DistributionActions\",\n components: { AppLink, LinkedDataButtonsDropdown, DistributionDownload, DistributionPreview },\n props: {\n distribution: Object,\n distributions: Object,\n isUrlInvalid: Function,\n getVisualisationLink: Function,\n showTooltipVisualiseButton: Function,\n previewLinkCallback: Function,\n openIfValidUrl: Function,\n showDownloadDropdown: Function,\n getDownloadUrl: Function,\n showAccessUrls: Function,\n isOnlyOneUrl: Function,\n trackGoto: Function,\n getDistributionFormat: Function,\n replaceHttp: Function,\n },\n data() {\n return {\n showVisualisationButton: this.$env.content.datasetDetails.distributions.showVisualisation,\n visualisationLinkFormats: [\n 'csv',\n 'tsv',\n 'ods',\n 'xlsx',\n 'xls',\n ],\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getCatalog',\n ]),\n showValidateButton() {\n return this.$env?.content?.datasetDetails?.distributions?.showValidationButton;\n },\n hidePreviewButton() {\n // only returns true if the config variable hidePreviewButton exists and is set to true\n return this.$env?.content?.datasetDetails?.distributions?.hidePreviewButton;\n }\n },\n methods: {\n showVisualisationLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution?.format?.label)\n || (isNil(distribution?.downloadUrls[0]) && isNil(distribution?.accessUrl[0]))) return false;\n const f = distribution?.format?.id?.toLowerCase();\n return f && this.visualisationLinkFormats.includes(f);\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.validate-btn, .visualise-btn {\n color: #0e47cb;\n vertical-align: text-bottom;\n text-decoration: none;\n}\n</style>\n"],"names":["_sfc_main","AppLink","LinkedDataButtonsDropdown","DistributionDownload","DistributionPreview","mapGetters","_d","_c","_b","_a","distribution","has","isNil","f","_hoisted_1","_openBlock","_createElementBlock","$options","_ctx","$data","_createBlock","_component_distribution_preview","$props","_createCommentVNode","_cache","_createTextVNode","_component_distribution_download","_createVNode","_component_linked_data_buttons_dropdown","_createElementVNode","_component_app_link","_withCtx","$event"],"mappings":";;;;;;;;;AAgCA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY,EAAE,SAAAC,GAAS,2BAAAC,GAA2B,sBAAAC,GAAsB,qBAAAC,EAAqB;AAAA,EAC7F,OAAO;AAAA,IACL,cAAc;AAAA,IACd,eAAe;AAAA,IACf,cAAc;AAAA,IACd,sBAAsB;AAAA,IACtB,4BAA4B;AAAA,IAC5B,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,IAChB,sBAAsB;AAAA,IACtB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,WAAW;AAAA,IACX,uBAAuB;AAAA,IACvB,aAAa;AAAA,EACd;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,yBAAyB,KAAK,KAAK,QAAQ,eAAe,cAAc;AAAA,MACxE,0BAA0B;AAAA,QACxB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,IACH;AAAA,EACD;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,kBAAkB;AAAA,MAC9B;AAAA,IACF,CAAC;AAAA,IACD,qBAAqB;;AACnB,cAAOC,KAAAC,KAAAC,KAAAC,IAAA,KAAK,SAAL,gBAAAA,EAAW,YAAX,gBAAAD,EAAoB,mBAApB,gBAAAD,EAAoC,kBAApC,gBAAAD,EAAmD;AAAA,IAC3D;AAAA,IACD,oBAAoB;;AAElB,cAAOA,KAAAC,KAAAC,KAAAC,IAAA,KAAK,SAAL,gBAAAA,EAAW,YAAX,gBAAAD,EAAoB,mBAApB,gBAAAD,EAAoC,kBAApC,gBAAAD,EAAmD;AAAA,IAC5D;AAAA,EACD;AAAA,EACD,SAAS;AAAA,IACP,s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WIE,EACgCC,GAAA;AAAA,MADD,eAAeN,EAAa;AAAA,MAAG,cAAcA,EAAY;AAAA,MACtF,OAAM;AAAA;IAZZE,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IAaII,EAKM,OAAA,MAAA;AAAA,MAJYZ,EAAkB,2BAAlCG,EAGWU,GAAA;AAAA,QAjBjB,KAAA;AAAA,QAc0C,OAAM;AAAA,QACvC,IAAE,EAAA,MAAA,yBAAA,OAAA,EAAA,QAAoDZ,SAAO,MAAM,QAAM,UAAYI,EAAY,aAAC,GAAE,EAAA;AAAA;QAf7G,SAAAS,EAemH,MAE7GP,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,UAjBNC,EAemH;AAAA;AAAA,OAE7G;AAAA;QAjBN,GAAA;AAAA,uBAAAF,EAAA,IAAA,EAAA;AAAA;IAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IAmBeN,EAAuB,2BAAIF,EAAqB,sBAACK,EAAY,YAAA,UAAxEN,EAA2M,OAAA;AAAA,MAnB/M,KAAA;AAAA,MAmB+E,OAAM;AAAA,MAAqD,SAAKQ,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAQ,MAAEd,EAAK,MAAA,wBAAyBI,EAAc,cAAA;AAAA,OAAG,WAAS,KAnBzMC,EAAA,IAAA,EAAA;AAAA;;;"}
@@ -1,5 +1,5 @@
1
- const e = "";
1
+ const _ = "";
2
2
  export {
3
- e as default
3
+ _ as default
4
4
  };
5
5
  //# sourceMappingURL=DistributionActions.vue2.mjs.map
@@ -79,7 +79,7 @@ const L = {
79
79
  case "conformsTo":
80
80
  return i || s(t, "conformsTo") && this.showObjectArray(t.conformsTo);
81
81
  case "spatialResolutionInMeters":
82
- return i || s(t, "spatialResolutionInMeters") && this.showArray(t.spatialResolutionInMeters);
82
+ return i || s(t, "spatialResolutionInMeters") && !n(t.spatialResolutionInMeters);
83
83
  case "temporalResolution":
84
84
  return i || s(t, "temporalResolution") && this.showArray(t.temporalResolution);
85
85
  default:
@@ -1 +1 @@
1
- {"version":3,"file":"DistributionDetails.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionDetails/DistributionDetails.vue"],"sourcesContent":["<template>\n <div class=\"flex-grow-1 d-flex distribution-details\">\n <div class=\"col-sm-12 col-md-9 col-lg-7\">\n <h3 class=\"m-0\">{{ getDistributionTitle(distribution) }}</h3>\n <distribution-description\n :distribution=\"distribution\"\n :distributions=\"distributions\"\n :distributionDescriptionIsExpanded=\"distributionDescriptionIsExpanded\"\n :getDistributionDescription=\"getDistributionDescription\"\n :toggleDistributionDescription=\"toggleDistributionDescription\"\n :distributionDescriptionIsExpandable=\"distributionDescriptionIsExpandable\"\n />\n <distribution-expanded-content\n :contentList=\"distributionVisibleExpandedContent\"\n :distribution=\"distribution\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n :showLicensingAssistant=\"showLicensingAssistant\"\n :showLicence=\"showLicence\"\n :filterDateFormatEU=\"filterDateFormatEU\"\n :showArray=\"showArray\"\n :showNumber=\"showNumber\"\n :showObject=\"showObject\"\n :showObjectArray=\"showObjectArray\"\n :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n />\n <distribution-visible-content\n :contentList=\"distributionVisibleContent\"\n :distribution=\"distribution\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n :showLicensingAssistant=\"showLicensingAssistant\"\n :showLicence=\"showLicence\"\n :filterDateFormatEU=\"filterDateFormatEU\"\n :showArray=\"showArray\"\n :showNumber=\"showNumber\"\n :showObject=\"showObject\"\n :showObjectArray=\"showObjectArray\"\n :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n />\n <distribution-expand\n :distribution=\"distribution\"\n :distributionCanShowMore=\"distributionCanShowMore\"\n :toggleDistribution=\"toggleDistribution\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport {\n has,\n isNil,\n isArray,\n isObject,\n isString,\n isNumber,\n isEmpty,\n} from 'lodash';\nimport DistributionDescription\n from \"../../../datasetDetails/distributions/distributionDetails/DistributionDescription\";\nimport DistributionExpandedContent\n from \"../../../datasetDetails/distributions/distributionDetails/DistributionExpandedContent\";\nimport DistributionVisibleContent\n from \"../../../datasetDetails/distributions/distributionDetails/DistributionVisibleContent\";\nimport DistributionExpand from \"../../../datasetDetails/distributions/distributionDetails/DistributionExpand\";\nexport default {\n name: \"DistributionDetails\",\n components: {\n DistributionExpand,\n DistributionVisibleContent,\n DistributionExpandedContent,\n DistributionDescription\n },\n props: [\n \"getDistributionTitle\",\n \"distribution\",\n \"distributions\",\n \"distributionDescriptionIsExpanded\",\n \"getDistributionDescription\",\n \"toggleDistributionDescription\",\n \"distributionDescriptionIsExpandable\",\n \"distributionIsExpanded\",\n \"distributionVisibleContent\",\n \"distributionExpandedContent\",\n \"showLicensingAssistant\",\n \"showLicence\",\n \"filterDateFormatEU\",\n \"showArray\",\n \"showNumber\",\n \"showObject\",\n \"showObjectArray\",\n \"appendCurrentLocaleToURL\",\n \"toggleDistribution\"\n ],\n computed: {\n distributionVisibleExpandedContent() {\n return [...new Set(this.distributionVisibleContent\n .concat(this.distributionExpandedContent))];\n },\n distributionExtraContent() {\n return this.distributionExpandedContent\n .filter(item => !this.distributionVisibleContent.includes(item))\n },\n },\n methods: {\n distributionCanShowMore(distribution) {\n return this.distributionExtraContent.reduce((accu, item) => {\n switch (item) {\n case 'license': return accu || (has(distribution, 'licence'))\n case 'licenseAttributionByText': return accu || has(distribution , 'licenseAttributionByText') && (!isNil(distribution.licenseAttributionByText) && !isNil(getTranslationFor(distribution.licenseAttributionByText)))\n case 'modificationDate': return accu || has(distribution, 'modificationDate') && !isNil(distribution.modificationDate)\n case 'releaseDate': return accu || (has(distribution, 'releaseDate') && !isNil(distribution.releaseDate))\n case 'availability': return accu || (has(distribution, 'availability') && this.showObject(distribution.availability) && !isNil(distribution.availability.label))\n case 'status': return accu || (has(distribution, 'status') && this.showObject(distribution.status))\n case 'rights': return accu || (has(distribution, 'rights') && this.showObject(distribution.rights))\n case 'mediaType': return accu || (has(distribution, 'mediaType') && !isNil(distribution.mediaType))\n case 'byteSize': return accu || (has(distribution, 'byteSize') && !isNil(distribution.byteSize))\n case 'checksum': return accu || (has(distribution, 'checksum') && !isNil(distribution.checksum) && has(distribution.checksum, 'algorithm') && !isNil(distribution.checksum.algorithm) && has(distribution.checksum, 'checksum_value') && !isNil(distribution.checksum.checksum_value))\n case 'pages': return accu || (has(distribution, 'pages') && this.showObjectArray(distribution.pages))\n case 'languages': return accu || (has(distribution, 'languages') && this.showArray(distribution.languages))\n case 'compressFormat': return accu || (has(distribution, 'compressFormat') && this.showObject(distribution.compressFormat))\n case 'packageFormat': return accu || (has(distribution, 'packageFormat') && this.showObject(distribution.packageFormat))\n case 'hasPolicy': return accu || (has(distribution, 'hasPolicy') && !isNil(distribution.hasPolicy))\n case 'conformsTo': return accu || (has(distribution, 'conformsTo') && this.showObjectArray(distribution.conformsTo))\n case 'spatialResolutionInMeters': return accu || (has(distribution, 'spatialResolutionInMeters') && this.showArray(distribution.spatialResolutionInMeters))\n case 'temporalResolution': return accu || (has(distribution, 'temporalResolution') && this.showArray(distribution.temporalResolution))\n default: return accu\n }\n }, false);\n },\n }\n}\n</script>\n"],"names":["_sfc_main","DistributionExpand","DistributionVisibleContent","DistributionExpandedContent","DistributionDescription","item","distribution","accu","has","isNil","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","$props","_cache","_createTextVNode","_createVNode","_component_distribution_description","_component_distribution_expanded_content","$options","_component_distribution_visible_content","_component_distribution_expand"],"mappings":";;;;;;;AAiEA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,oBAAAC;AAAA,IACA,4BAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,yBAAAC;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL;AAAA,IACA;AA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A,EAAS;AAAA,QACpB,YAAYA,EAAU;AAAA,QACtB,YAAYA,EAAU;AAAA,QACtB,iBAAiBA,EAAe;AAAA,QAChC,0BAA0BA,EAAwB;AAAA;MApC3DC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MAsCMC,EAKEK,GAAA;AAAA,QAJC,cAAcR,EAAY;AAAA,QAC1B,yBAAyBM,EAAuB;AAAA,QAChD,oBAAoBN,EAAkB;AAAA,QACtC,wBAAwBA,EAAsB;AAAA;;;;;"}
1
+ {"version":3,"file":"DistributionDetails.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionDetails/DistributionDetails.vue"],"sourcesContent":["<template>\n <div class=\"flex-grow-1 d-flex distribution-details\">\n <div class=\"col-sm-12 col-md-9 col-lg-7\">\n <h3 class=\"m-0\">{{ getDistributionTitle(distribution) }}</h3>\n <distribution-description\n :distribution=\"distribution\"\n :distributions=\"distributions\"\n :distributionDescriptionIsExpanded=\"distributionDescriptionIsExpanded\"\n :getDistributionDescription=\"getDistributionDescription\"\n :toggleDistributionDescription=\"toggleDistributionDescription\"\n :distributionDescriptionIsExpandable=\"distributionDescriptionIsExpandable\"\n />\n <distribution-expanded-content\n :contentList=\"distributionVisibleExpandedContent\"\n :distribution=\"distribution\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n :showLicensingAssistant=\"showLicensingAssistant\"\n :showLicence=\"showLicence\"\n :filterDateFormatEU=\"filterDateFormatEU\"\n :showArray=\"showArray\"\n :showNumber=\"showNumber\"\n :showObject=\"showObject\"\n :showObjectArray=\"showObjectArray\"\n :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n />\n <distribution-visible-content\n :contentList=\"distributionVisibleContent\"\n :distribution=\"distribution\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n :showLicensingAssistant=\"showLicensingAssistant\"\n :showLicence=\"showLicence\"\n :filterDateFormatEU=\"filterDateFormatEU\"\n :showArray=\"showArray\"\n :showNumber=\"showNumber\"\n :showObject=\"showObject\"\n :showObjectArray=\"showObjectArray\"\n :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n />\n <distribution-expand\n :distribution=\"distribution\"\n :distributionCanShowMore=\"distributionCanShowMore\"\n :toggleDistribution=\"toggleDistribution\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport {\n has,\n isNil,\n isArray,\n isObject,\n isString,\n isNumber,\n isEmpty,\n} from 'lodash';\nimport DistributionDescription\n from \"../../../datasetDetails/distributions/distributionDetails/DistributionDescription\";\nimport DistributionExpandedContent\n from \"../../../datasetDetails/distributions/distributionDetails/DistributionExpandedContent\";\nimport DistributionVisibleContent\n from \"../../../datasetDetails/distributions/distributionDetails/DistributionVisibleContent\";\nimport DistributionExpand from \"../../../datasetDetails/distributions/distributionDetails/DistributionExpand\";\nexport default {\n name: \"DistributionDetails\",\n components: {\n DistributionExpand,\n DistributionVisibleContent,\n DistributionExpandedContent,\n DistributionDescription\n },\n props: [\n \"getDistributionTitle\",\n \"distribution\",\n \"distributions\",\n \"distributionDescriptionIsExpanded\",\n \"getDistributionDescription\",\n \"toggleDistributionDescription\",\n \"distributionDescriptionIsExpandable\",\n \"distributionIsExpanded\",\n \"distributionVisibleContent\",\n \"distributionExpandedContent\",\n \"showLicensingAssistant\",\n \"showLicence\",\n \"filterDateFormatEU\",\n \"showArray\",\n \"showNumber\",\n \"showObject\",\n \"showObjectArray\",\n \"appendCurrentLocaleToURL\",\n \"toggleDistribution\"\n ],\n computed: {\n distributionVisibleExpandedContent() {\n return [...new Set(this.distributionVisibleContent\n .concat(this.distributionExpandedContent))];\n },\n distributionExtraContent() {\n return this.distributionExpandedContent\n .filter(item => !this.distributionVisibleContent.includes(item))\n },\n },\n methods: {\n distributionCanShowMore(distribution) {\n return this.distributionExtraContent.reduce((accu, item) => {\n switch (item) {\n case 'license': return accu || (has(distribution, 'licence'))\n case 'licenseAttributionByText': return accu || has(distribution , 'licenseAttributionByText') && (!isNil(distribution.licenseAttributionByText) && !isNil(getTranslationFor(distribution.licenseAttributionByText)))\n case 'modificationDate': return accu || has(distribution, 'modificationDate') && !isNil(distribution.modificationDate)\n case 'releaseDate': return accu || (has(distribution, 'releaseDate') && !isNil(distribution.releaseDate))\n case 'availability': return accu || (has(distribution, 'availability') && this.showObject(distribution.availability) && !isNil(distribution.availability.label))\n case 'status': return accu || (has(distribution, 'status') && this.showObject(distribution.status))\n case 'rights': return accu || (has(distribution, 'rights') && this.showObject(distribution.rights))\n case 'mediaType': return accu || (has(distribution, 'mediaType') && !isNil(distribution.mediaType))\n case 'byteSize': return accu || (has(distribution, 'byteSize') && !isNil(distribution.byteSize))\n case 'checksum': return accu || (has(distribution, 'checksum') && !isNil(distribution.checksum) && has(distribution.checksum, 'algorithm') && !isNil(distribution.checksum.algorithm) && has(distribution.checksum, 'checksum_value') && !isNil(distribution.checksum.checksum_value))\n case 'pages': return accu || (has(distribution, 'pages') && this.showObjectArray(distribution.pages))\n case 'languages': return accu || (has(distribution, 'languages') && this.showArray(distribution.languages))\n case 'compressFormat': return accu || (has(distribution, 'compressFormat') && this.showObject(distribution.compressFormat))\n case 'packageFormat': return accu || (has(distribution, 'packageFormat') && this.showObject(distribution.packageFormat))\n case 'hasPolicy': return accu || (has(distribution, 'hasPolicy') && !isNil(distribution.hasPolicy))\n case 'conformsTo': return accu || (has(distribution, 'conformsTo') && this.showObjectArray(distribution.conformsTo))\n //case 'spatialResolutionInMeters': return accu || (has(distribution, 'spatialResolutionInMeters') && this.showArray(distribution.spatialResolutionInMeters))\n case 'spatialResolutionInMeters': return accu || (has(distribution, 'spatialResolutionInMeters') && !isNil(distribution.spatialResolutionInMeters))\n case 'temporalResolution': return accu || (has(distribution, 'temporalResolution') && this.showArray(distribution.temporalResolution))\n default: return accu\n }\n }, false);\n },\n }\n}\n</script>\n"],"names":["_sfc_main","DistributionExpand","DistributionVisibleContent","DistributionExpandedContent","DistributionDescription","item","distribution","accu","has","isNil","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","$props","_cache","_createTextVNode","_createVNode","_component_distribution_description","_component_distribution_expanded_content","$options","_component_distribution_visible_content","_component_distribution_expand"],"mappings":";;;;;;;AAiEA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,oBAAAC;AAAA,IACA,4BAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,yBAAAC;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAAA,EACD,UAAU;AAAA,IACR,qCAAqC;AACnC,aAAO,CAAC,GAAG,IAAI,IAAI,KAAK,2BACrB,OAAO,KAAK,2BAA2B,CAAC,CAAC;AAAA,IAC7C;AAAA,IACD,2BAA2B;AACzB,aAAO,KAAK,4BACT,OAAO,CAAAC,MAAQ,CAAC,KAAK,2BAA2B,SAASA,CAAI,CAAC;AAAA,IAClE;AAAA,EACF;AAAA,EACD,SAAS;AAAA,IACP,wBAAwBC,GAAc;AACpC,aAAO,KAAK,yBAAyB,OAAO,CAACC,GAAMF,MAAS;AAC1D,gBAAQA,GAAI;AAAA,UACV,KAAK;AAAW,mBAAOE,KAASC,EAAIF,GAAc,SAAS;AAAA,UAC3D,KAAK;AAA4B,mBAAOC,KAAQC,EAAIF,GAAe,0BAA0B,KAAM,CAACG,EAAMH,EAAa,wBAAwB,KAAK,CAACG,EAAM,kBAAkBH,EAAa,wBAAwB,CAAC;AAAA,UACnN,KAAK;AAAoB,mBAAOC,KAAQC,EAAIF,GAAc,kBAAkB,KAAK,CAACG,EAAMH,EAAa,gBAAgB;AAAA,UACrH,KAAK;AAAe,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B,YAAYA,EAAU;AAAA,QACtB,iBAAiBA,EAAe;AAAA,QAChC,0BAA0BA,EAAwB;AAAA;MAvB3DC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MAyBMC,EAYEI,GAAA;AAAA,QAXC,aAAaP,EAA0B;AAAA,QACvC,cAAcA,EAAY;AAAA,QAC1B,wBAAwBA,EAAsB;AAAA,QAC9C,wBAAwBA,EAAsB;AAAA,QAC9C,aAAaA,EAAW;AAAA,QACxB,oBAAoBA,EAAkB;AAAA,QACtC,WAAWA,EAAS;AAAA,QACpB,YAAYA,EAAU;AAAA,QACtB,YAAYA,EAAU;AAAA,QACtB,iBAAiBA,EAAe;AAAA,QAChC,0BAA0BA,EAAwB;AAAA;MApC3DC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MAsCMC,EAKEK,GAAA;AAAA,QAJC,cAAcR,EAAY;AAAA,QAC1B,yBAAyBM,EAAuB;AAAA,QAChD,oBAAoBN,EAAkB;AAAA,QACtC,wBAAwBA,EAAsB;AAAA;;;;;"}
@@ -6,7 +6,7 @@ import N from "./ValuesList.vue.mjs";
6
6
  import { mapGetters as S } from "vuex";
7
7
  import _ from "../../filters/dateFilters.mjs";
8
8
  import { truncate as j, getTranslationFor as V } from "../../utils/helpers.mjs";
9
- import { resolveComponent as f, openBlock as s, createElementBlock as i, createElementVNode as b, createVNode as h, withCtx as k, createTextVNode as o, toDisplayString as d, createCommentVNode as u, Fragment as T, renderList as v, createBlock as B } from "vue";
9
+ import { resolveComponent as f, openBlock as a, createElementBlock as i, createElementVNode as b, createVNode as h, withCtx as k, createTextVNode as o, toDisplayString as d, createCommentVNode as u, Fragment as T, renderList as v, createBlock as B } from "vue";
10
10
  import "./DatasetDetailsProperty.vue2.mjs";
11
11
  import E from "../../_virtual/_plugin-vue_export-helper.mjs";
12
12
  const O = {
@@ -109,62 +109,62 @@ const O = {
109
109
  }
110
110
  }
111
111
  }, P = { key: 0 }, A = { class: "w-25 text-break font-weight-bold" }, C = { key: 0 }, L = { key: 1 }, W = ["href"], I = { key: 2 }, U = { key: 1 }, q = { key: 3 }, G = { key: 4 };
112
- function z(e, t, r, n, p, a) {
112
+ function z(e, t, r, n, p, s) {
113
113
  const D = f("tooltip"), F = f("app-link"), y = f("values-list");
114
- return a.show ? (s(), i("tr", P, [
114
+ return s.show ? (a(), i("tr", P, [
115
115
  b("td", A, [
116
116
  h(D, {
117
- title: a.labelDisplay[0]
117
+ title: s.labelDisplay[0]
118
118
  }, {
119
119
  default: k(() => [
120
- o(d(a.labelDisplay[1]), 1)
120
+ o(d(s.labelDisplay[1]), 1)
121
121
  ]),
122
122
  _: 1
123
123
  }, 8, ["title"])
124
124
  ]),
125
125
  t[1] || (t[1] = o()),
126
- ["string", "date", "first:number", "translation"].includes(r.type) ? (s(), i("td", C, d(a.value), 1)) : u("", !0),
126
+ ["string", "date", "number", "first:number", "translation"].includes(r.type) ? (a(), i("td", C, d(s.value), 1)) : u("", !0),
127
127
  t[2] || (t[2] = o()),
128
- r.type === "uri" ? (s(), i("td", L, [
129
- b("a", { href: a.value }, d(a.value), 9, W)
128
+ r.type === "uri" ? (a(), i("td", L, [
129
+ b("a", { href: s.value }, d(s.value), 9, W)
130
130
  ])) : u("", !0),
131
131
  t[3] || (t[3] = o()),
132
- r.type === "links" ? (s(), i("td", I, [
133
- (s(!0), i(T, null, v(a.value, (l, m) => (s(), i("div", { key: m }, [
134
- !a.isNil(l) && l.link && r.name !== "languages" ? (s(), B(F, {
132
+ r.type === "links" ? (a(), i("td", I, [
133
+ (a(!0), i(T, null, v(s.value, (l, m) => (a(), i("div", { key: m }, [
134
+ !s.isNil(l) && l.link && r.name !== "languages" ? (a(), B(F, {
135
135
  key: 0,
136
136
  to: l.link
137
137
  }, {
138
138
  default: k(() => [
139
- o(d(a.truncate(l.label, 75)), 1)
139
+ o(d(s.truncate(l.label, 75)), 1)
140
140
  ]),
141
141
  _: 2
142
142
  }, 1032, ["to"])) : u("", !0),
143
143
  t[0] || (t[0] = o()),
144
- !a.isNil(l) && !l.link || r.name === "languages" ? (s(), i("div", U, d(a.truncate(l.label, 75)), 1)) : u("", !0)
144
+ !s.isNil(l) && !l.link || r.name === "languages" ? (a(), i("div", U, d(s.truncate(l.label, 75)), 1)) : u("", !0)
145
145
  ]))), 128))
146
146
  ])) : u("", !0),
147
147
  t[4] || (t[4] = o()),
148
- r.type === "object" ? (s(), i("td", q, [
148
+ r.type === "object" ? (a(), i("td", q, [
149
149
  h(y, {
150
- values: a.value,
151
- interpretTranslateKey: a.interpretTranslateKey,
150
+ values: s.value,
151
+ interpretTranslateKey: s.interpretTranslateKey,
152
152
  itemstyles: r.itemstyles
153
153
  }, null, 8, ["values", "interpretTranslateKey", "itemstyles"])
154
154
  ])) : u("", !0),
155
155
  t[5] || (t[5] = o()),
156
- r.type === "objects" ? (s(), i("td", G, [
157
- (s(!0), i(T, null, v(a.value, (l, m) => (s(), i("div", { key: m }, [
156
+ r.type === "objects" ? (a(), i("td", G, [
157
+ (a(!0), i(T, null, v(s.value, (l, m) => (a(), i("div", { key: m }, [
158
158
  h(y, {
159
159
  values: l,
160
- interpretTranslateKey: a.interpretTranslateKey,
160
+ interpretTranslateKey: s.interpretTranslateKey,
161
161
  itemstyles: r.itemstyles
162
162
  }, null, 8, ["values", "interpretTranslateKey", "itemstyles"])
163
163
  ]))), 128))
164
164
  ])) : u("", !0)
165
165
  ])) : u("", !0);
166
166
  }
167
- const rt = /* @__PURE__ */ E(O, [["render", z], ["__scopeId", "data-v-ace59886"]]);
167
+ const rt = /* @__PURE__ */ E(O, [["render", z], ["__scopeId", "data-v-8df61e05"]]);
168
168
  export {
169
169
  rt as default
170
170
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DatasetDetailsProperty.vue.mjs","sources":["../../../lib/datasetDetails/properties/DatasetDetailsProperty.vue"],"sourcesContent":["<template>\n <tr v-if=\"show\">\n <td class=\"w-25 text-break font-weight-bold\">\n <tooltip :title=\"labelDisplay[0]\">\n {{ labelDisplay[1] }}\n </tooltip>\n </td>\n <td v-if=\"['string', 'date', 'first:number', 'translation'].includes(type)\">{{ value }}</td>\n <td v-if=\"type==='uri'\"><a :href='value'>{{ value }}</a></td>\n <td v-if=\"type==='links'\">\n <div v-for=\"(v, i) of value\" :key=\"i\">\n <app-link v-if=\"!isNil(v) && v.link && name !== 'languages'\" :to=\"v.link\">{{ truncate(v.label, 75) }}</app-link>\n <div v-if=\"(!isNil(v) && !v.link) || name === 'languages'\">{{ truncate(v.label, 75) }}</div>\n </div>\n </td>\n <td v-if=\"type==='object'\">\n <values-list :values=\"value\" :interpretTranslateKey=\"interpretTranslateKey\" :itemstyles=\"itemstyles\"/>\n </td>\n <td v-if=\"type==='objects'\">\n <div v-for=\"(item, i) of value\" :key=\"i\">\n <values-list :values=\"item\" :interpretTranslateKey=\"interpretTranslateKey\" :itemstyles=\"itemstyles\"/>\n </div>\n </td>\n </tr>\n</template>\n\n<script>\nimport AppLink from \"../../widgets/AppLink\";\nimport Tooltip from \"../../widgets/Tooltip\";\nimport {isNil, isArray} from \"lodash\";\nimport {showByType} from \"./typeCheckers.ts\";\nimport ValuesList from \"./ValuesList\";\nimport {mapGetters} from \"vuex\";\nimport dateFilters from \"../../filters/dateFilters.ts\";\nimport {truncate, getTranslationFor} from \"../../utils/helpers\";\n\nexport default {\n name: \"DatasetDetailsProperty\",\n props: {\n type: String, // Can be any of the types recognized in typeCheckers.ts\n translate: String | Array, // i18n key for the tooltip and label string values (if not given, name is used!)\n name: String, // Key to extract the value from the Datasets store\n propertyFields: String, // Comma-separated keys for extracting data from an object\n itemstyles: String, // Styles to apply to an object key-value block\n track: String, // Comma-separated keys for tracking\n preTransform: Function, // Transform raw data from dataset service\n transform: Function // Transform data after preparing by this.value\n },\n components: {\n Tooltip, AppLink, ValuesList\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getProperty'\n ]),\n labelDisplay() {\n const prefix = [\"message.tooltip.datasetDetails\", \"message.metadata\"];\n let translateItems;\n if (this.translate) {\n translateItems = this.translate.split(',');\n if (translateItems.length === 1) {\n translateItems.push(translateItems[0]);\n }\n } else {\n translateItems = [this.name, this.name];\n }\n return translateItems.map((item, i) => this.interpretTranslateKey(item, prefix[i]));\n },\n data() {\n let d = this.getProperty(this.name);\n if (this.name === 'languages') {\n d.sort((a, b) => {\n if (a.id < b.id) return -1;\n if (a.id > b.id) return 1;\n return 0;\n });\n }\n return d;\n },\n preparedFields() {\n return this.propertyFields?.split(',').map(field => field.split(':'));\n },\n preparedTrack() {\n return this.track?.split(',');\n },\n value() {\n let v = this.data;\n if (this.preTransform) v = this.preTransform(v);\n switch (this.type) {\n case 'date':\n v = dateFilters.formatEU(v);\n break;\n case 'links':\n v = this.data.map(item => {\n if (item) {\n const link = typeof item === 'string'? item : item.resource;\n const label = typeof item === 'string'? item : item.label || item.id || item.resource;\n return { link, label };\n }\n });\n break;\n case 'object':\n v = this.prepareObject(this.data);\n break;\n case 'objects':\n v = this.data.map(item => {\n return this.prepareObject(item);\n });\n break;\n case 'translation':\n v = this.getTranslationFor(v, this.$route.query.locale, ['en']);\n break;\n default:\n if (this.type.startsWith('first')) {\n v = this.data[0];\n }\n }\n if (this.transform) v = this.transform(v);\n return v;\n },\n show() {\n return showByType(this.type, this.data);\n }\n },\n methods: {\n isNil,\n isArray,\n truncate,\n getTranslationFor,\n dateValue() {\n return dateFilters.formatEU(this.value);\n },\n prepareObject(object) {\n // Because this.fields can contain \":\" signs that split a key into an array,\n // we also transform the keys in the case this.fields is undefined into arrays:\n let keys = this.preparedFields ?? Object.keys(object).map(key => [key]);\n\n // Now key[0] holds the actual key in all cases. Check if the value given\n // For a key is undefined and filter them out:\n keys = keys.filter(key => !isNil(object[key[0]]));\n\n return keys.map(key => {\n let value = object[key[0]];\n\n // Values can be arrays for displaying several values. For uniform treatment,\n // transform single values into arrays of length 1:\n if (!isArray(value)) value = [value];\n\n // First step: an object holding key and value:\n const result = {key: key[0], value};\n\n // Enrich the object when appropriate:\n if (key[1] !== undefined) result.type = key[1];\n if (key[2] !== undefined) result.translation = key[2];\n\n return result;\n });\n },\n interpretTranslateKey(key, prefix) {\n if (key === '') return '';\n if (key.startsWith('/')) return `${this.i18n.global.t(key.substring(1))}:`;\n if (key.startsWith('\\'')) return key.substring(1, key.length - 1);\n return `${this.i18n.global.t(`${prefix}.${key}`)}:`;\n },\n }\n}\n</script>\n\n<style scoped>\ntr {\n width: 100%;\n}\n.w-25 {\n min-width: 160px;\n}\n\n</style>\n"],"names":["_sfc_main","Tooltip","AppLink","ValuesList","mapGetters","prefix","translateItems","item","i","d","a","b","_a","field","v","dateFilters","link","label","showByType","isNil","isArray","truncate","getTranslationFor","object","keys","key","value","result","_hoisted_2","_hoisted_5","$options","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_createVNode","_component_tooltip","_withCtx","_createTextVNode","_toDisplayString","_cache","$props","_hoisted_3","_createCommentVNode","_hoisted_4","_hoisted_6","_Fragment","_renderList","_createBlock","_component_app_link","_hoisted_7","_hoisted_8","_component_values_list","_hoisted_9"],"mappings":";;;;;;;;;;;AAoCA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO;AAAA,IACL,MAAM;AAAA;AAAA,IACN,WAAW,SAAS;AAAA;AAAA,IACpB,MAAM;AAAA;AAAA,IACN,gBAAgB;AAAA;AAAA,IAChB,YAAY;AAAA;AAAA,IACZ,OAAO;AAAA;AAAA,IACP,cAAc;AAAA;AAAA,IACd,WAAW;AAAA;AAAA,EACZ;AAAA,EACD,YAAY;AAAA,IACV,SAAAC;AAAA,IAAS,SAAAC;AAAA,IAAS,YAAAC;AAAA,EACnB;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,kBAAkB;AAAA,MAC9B;AAAA,IACF,CAAC;AAAA,IACD,eAAe;AACb,YAAMC,IAAS,CAAC,kCAAkC,kBAAkB;AACpE,UAAIC;AACJ,aAAI,KAAK,aACPA,IAAiB,KAAK,UAAU,MAAM,G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AAKxB,KAAC;AAAA,QACrC2B,EAAqGiB,GAAA;AAAA,UAAvF,QAAQ7C;AAAA,UAAO,uBAAuBuB,EAAqB;AAAA,UAAG,YAAYW,EAAU;AAAA;;UApB1GE,EAAA,IAAA,EAAA;AAAA,QAAAA,EAAA,IAAA,EAAA;;;"}
1
+ {"version":3,"file":"DatasetDetailsProperty.vue.mjs","sources":["../../../lib/datasetDetails/properties/DatasetDetailsProperty.vue"],"sourcesContent":["<template>\n <tr v-if=\"show\">\n <td class=\"w-25 text-break font-weight-bold\">\n <tooltip :title=\"labelDisplay[0]\">\n {{ labelDisplay[1] }}\n </tooltip>\n </td>\n <td v-if=\"['string', 'date', 'number', 'first:number', 'translation'].includes(type)\">{{ value }}</td>\n <td v-if=\"type==='uri'\"><a :href='value'>{{ value }}</a></td>\n <td v-if=\"type==='links'\">\n <div v-for=\"(v, i) of value\" :key=\"i\">\n <app-link v-if=\"!isNil(v) && v.link && name !== 'languages'\" :to=\"v.link\">{{ truncate(v.label, 75) }}</app-link>\n <div v-if=\"(!isNil(v) && !v.link) || name === 'languages'\">{{ truncate(v.label, 75) }}</div>\n </div>\n </td>\n <td v-if=\"type==='object'\">\n <values-list :values=\"value\" :interpretTranslateKey=\"interpretTranslateKey\" :itemstyles=\"itemstyles\"/>\n </td>\n <td v-if=\"type==='objects'\">\n <div v-for=\"(item, i) of value\" :key=\"i\">\n <values-list :values=\"item\" :interpretTranslateKey=\"interpretTranslateKey\" :itemstyles=\"itemstyles\"/>\n </div>\n </td>\n </tr>\n</template>\n\n<script>\nimport AppLink from \"../../widgets/AppLink\";\nimport Tooltip from \"../../widgets/Tooltip\";\nimport {isNil, isArray} from \"lodash\";\nimport {showByType} from \"./typeCheckers.ts\";\nimport ValuesList from \"./ValuesList\";\nimport {mapGetters} from \"vuex\";\nimport dateFilters from \"../../filters/dateFilters.ts\";\nimport {truncate, getTranslationFor} from \"../../utils/helpers\";\n\nexport default {\n name: \"DatasetDetailsProperty\",\n props: {\n type: String, // Can be any of the types recognized in typeCheckers.ts\n translate: String | Array, // i18n key for the tooltip and label string values (if not given, name is used!)\n name: String, // Key to extract the value from the Datasets store\n propertyFields: String, // Comma-separated keys for extracting data from an object\n itemstyles: String, // Styles to apply to an object key-value block\n track: String, // Comma-separated keys for tracking\n preTransform: Function, // Transform raw data from dataset service\n transform: Function // Transform data after preparing by this.value\n },\n components: {\n Tooltip, AppLink, ValuesList\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getProperty'\n ]),\n labelDisplay() {\n const prefix = [\"message.tooltip.datasetDetails\", \"message.metadata\"];\n let translateItems;\n if (this.translate) {\n translateItems = this.translate.split(',');\n if (translateItems.length === 1) {\n translateItems.push(translateItems[0]);\n }\n } else {\n translateItems = [this.name, this.name];\n }\n return translateItems.map((item, i) => this.interpretTranslateKey(item, prefix[i]));\n },\n data() {\n let d = this.getProperty(this.name);\n if (this.name === 'languages') {\n d.sort((a, b) => {\n if (a.id < b.id) return -1;\n if (a.id > b.id) return 1;\n return 0;\n });\n }\n return d;\n },\n preparedFields() {\n return this.propertyFields?.split(',').map(field => field.split(':'));\n },\n preparedTrack() {\n return this.track?.split(',');\n },\n value() {\n let v = this.data;\n if (this.preTransform) v = this.preTransform(v);\n switch (this.type) {\n case 'date':\n v = dateFilters.formatEU(v);\n break;\n case 'links':\n v = this.data.map(item => {\n if (item) {\n const link = typeof item === 'string'? item : item.resource;\n const label = typeof item === 'string'? item : item.label || item.id || item.resource;\n return { link, label };\n }\n });\n break;\n case 'object':\n v = this.prepareObject(this.data);\n break;\n case 'objects':\n v = this.data.map(item => {\n return this.prepareObject(item);\n });\n break;\n case 'translation':\n v = this.getTranslationFor(v, this.$route.query.locale, ['en']);\n break;\n default:\n if (this.type.startsWith('first')) {\n v = this.data[0];\n }\n }\n if (this.transform) v = this.transform(v);\n return v;\n },\n show() {\n return showByType(this.type, this.data);\n }\n },\n methods: {\n isNil,\n isArray,\n truncate,\n getTranslationFor,\n dateValue() {\n return dateFilters.formatEU(this.value);\n },\n prepareObject(object) {\n // Because this.fields can contain \":\" signs that split a key into an array,\n // we also transform the keys in the case this.fields is undefined into arrays:\n let keys = this.preparedFields ?? Object.keys(object).map(key => [key]);\n\n // Now key[0] holds the actual key in all cases. Check if the value given\n // For a key is undefined and filter them out:\n keys = keys.filter(key => !isNil(object[key[0]]));\n\n return keys.map(key => {\n let value = object[key[0]];\n\n // Values can be arrays for displaying several values. For uniform treatment,\n // transform single values into arrays of length 1:\n if (!isArray(value)) value = [value];\n\n // First step: an object holding key and value:\n const result = {key: key[0], value};\n\n // Enrich the object when appropriate:\n if (key[1] !== undefined) result.type = key[1];\n if (key[2] !== undefined) result.translation = key[2];\n\n return result;\n });\n },\n interpretTranslateKey(key, prefix) {\n if (key === '') return '';\n if (key.startsWith('/')) return `${this.i18n.global.t(key.substring(1))}:`;\n if (key.startsWith('\\'')) return key.substring(1, key.length - 1);\n return `${this.i18n.global.t(`${prefix}.${key}`)}:`;\n },\n }\n}\n</script>\n\n<style scoped>\ntr {\n width: 100%;\n}\n.w-25 {\n min-width: 160px;\n}\n\n</style>\n"],"names":["_sfc_main","Tooltip","AppLink","ValuesList","mapGetters","prefix","translateItems","item","i","d","a","b","_a","field","v","dateFilters","link","label","showByType","isNil","isArray","truncate","getTranslationFor","object","keys","key","value","result","_hoisted_2","_hoisted_5","$options","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_createVNode","_component_tooltip","_withCtx","_createTextVNode","_toDisplayString","_cache","$props","_hoisted_3","_createCommentVNode","_hoisted_4","_hoisted_6","_Fragment","_renderList","_createBlock","_component_app_link","_hoisted_7","_hoisted_8","_component_values_list","_hoisted_9"],"mappings":";;;;;;;;;;;AAoCA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO;AAAA,IACL,MAAM;AAAA;AAAA,IACN,WAAW,SAAS;AAAA;AAAA,IACpB,MAAM;AAAA;AAAA,IACN,gBAAgB;AAAA;AAAA,IAChB,YAAY;AAAA;AAAA,IACZ,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AAA;AAAA,QAAxF,QAAQtB,EAAK;AAAA,QAAG,uBAAuBA,EAAqB;AAAA,QAAG,YAAYW,EAAU;AAAA;UAhBzGE,EAAA,IAAA,EAAA;AAAA,IAAAH,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAF,EAAA;AAAA,IAkBcG,EAAI,SAAA,aAAdV,KAAAC,EAIK,MAtBTqB,GAAA;AAAA,OAmBMtB,EAAA,EAAA,GAAAC,EAEMc,SArBZC,EAmB+BjB,EAAA,OAnB/B,CAmBmBvB,GAAMC,YAAnBwB,EAEM,OAAA,EAF2B,KAAKxB,KAAC;AAAA,QACrC2B,EAAqGiB,GAAA;AAAA,UAAvF,QAAQ7C;AAAA,UAAO,uBAAuBuB,EAAqB;AAAA,UAAG,YAAYW,EAAU;AAAA;;UApB1GE,EAAA,IAAA,EAAA;AAAA,QAAAA,EAAA,IAAA,EAAA;;;"}
@@ -43,9 +43,9 @@ const a = `releaseDate,modificationDate,creator,landingPages,sources,
43
43
  qualifiedRelations: { type: "objects", translate: "qualifiedRelation", fields: "relation:link,had_role:link:role" },
44
44
  sample: { type: "links" },
45
45
  spatialResolutionInMeters: {
46
- type: "first:number",
46
+ type: "number",
47
47
  translate: "spatialResolutionInMeters,spatialResolutionInMeters.label",
48
- transform: (t) => e("message.metadata.spatialResolutionInMeters.value", { number: t[0] })
48
+ transform: (t) => e("message.metadata.spatialResolutionInMeters.value", { number: t })
49
49
  },
50
50
  type: { type: "object", fields: "label,resource:link" },
51
51
  temporalResolution: { type: "string" }
@@ -1 +1 @@
1
- {"version":3,"file":"specification.mjs","sources":["../../../lib/datasetDetails/properties/specification.ts"],"sourcesContent":["export const dcatFields = `releaseDate,modificationDate,creator,landingPages,sources,\n languages,publisher,contactPoints,catalogRecord,spatial,\n spatialResource,conformsTo,provenances,identifiers,otherIdentifiers,resource,\n frequency,accessRights,accrualPeriodicity,hasVersion,isVersionOf,\n temporal,versionInfo,versionNotes,attributes,dimensions,numSeries,hasQualityAnnotations,\n statUnitMeasures,isReferencedBy,qualifiedAttributions,wasGeneratedBy,\n qualifiedRelations,sample,spatialResolutionInMeters,type,temporalResolution`;\n\nexport const dcatDeFields = `politicalGeocodingLevelURI,politicalGeocodingURI,availability,\n contributorID,geocodingDescriptionDe,legalBasis,qualityProcessURI,typeDe,\n references,contributor,originator,maintainer`;\n\n/*\n Below we have schemata describing how properties should be rendered in DatasetDatailsProperties.vue. A schema is\n an object where keys correspond to the above defined fields. For each key, the value is an object the format of which\n we will now describe:\n\n - type: is the the only required property. Will be evaluated in typeCheckers.ts. It reflects the format of the\n data item (CALLED \"response\" BELOW!) retrieved by from the search network response (number, string, url, array, object, array of objects).\n Supported values are:\n * \"number\": response is a single number\n * \"first:number\": render response[0] as a number\n * \"string\": response a simple string\n * \"uri\": response a simple string, rendered as a link\n * \"date\": response a simple string, formatted as a date conforming to the current locale\n * \"translation\": response an object containing locale keys (like \"en\", \"de\"). The value corresponding to the\n current locale is rendered\n * \"object\": response an object whose where each key-value pair is rendered on a separate line\n * \"array\": response an array whose elements are rendered vertically\n * \"links\": reponse either an array of uri-strings rendered as links, or an\n array of objects with a label field that is displayed as a link and another field\n holding the href; that other field is either resource, label or id\n\n - translate: for a property \"xxx\", we have a bold label and tooltip to the left which comes from\n an i18n translation; the default i18n keys are: message.tooltip.datasetDetails.xxx for the tooltip and\n message.metadata.xxx for the displayed label. if instead of xxx, you want to use another key (with the same prefixes),\n translate can provide it. If translate is two strings separated by commas, the left one applies to the tooltip, the right\n to the label. Instead of just a replacement for xxx, you can provide i18n keys without the prefixes by starting the string with\n a slash (example: translate:\"/message.tooltip.yyy,/message.mykey.mylabelkey\"). Instead of translation keys, you can also\n provide literal values as tooltip or label by enclosing the strings in single quotes.\n\n - fields: for objects and arrays of objects, this comma-separated value indicates, what keys of the objects should\n be used for display (filtering out any additional data in the object). If not present, all existent keys will be used.\n A key given in this comma separated list can be of the form \"x\": just a key, or of the form \"x:y\": key x of type y (where\n the type is any of \"link\", \"link_blank\", \"date\" or empty; accordingly, a link (possibly target=\"_blank\") or date will be displayed).\n Also the form \"x:y:z\" is possible, where z is an indication how to translate the key for rendering. If z does not exist,\n the i18n key message.metadata.x will be translated; if z exists, we use message.metadata.z instead. The additional properties for\n \"translate\" above can also be applied to z: leading slash or single quotes.\n\n - track: enable Matomo tracking for a link. track is a string value indicating the key of the data object for which\n tracking should be enabled.\n\n - itemstyles: a string of CSS properties that applies to key-value items of a rendered object\n\n - transform: a function that maps the data to be rendered. Applies after the data has been processed in the value-method of\n DatsetDetailsProperty.vue\n\n - preTransform: same as transform, only applied to the raw data value before processing in the value-method\n\n */\n\nexport const dcatSchema = (t) => ({\n releaseDate: {type: 'date', translate: 'created'},\n modificationDate: {type: 'date', translate: 'updated'},\n landingPages: {type: 'links', translate: 'landingPage'},\n sources: {type: 'links', translate:',sources'},\n languages: {type: 'links', translate: 'language,languages'},\n publisher: {type: 'object', fields: 'name,email,homepage'},\n contactPoints: {type: 'objects', translate:\"/message.tooltip.contactPoints,contactPoints\", fields: \"name::/message.metadata.name,organisation_name::/message.datasetDetails.contactPoints.organizationName, email,telephone,address,url:link\"},\n catalogRecord: {type: 'object', translate:\"/message.tooltip.catalogRecord,catalogRecord\", fields: \"issued:date:addedToDataEuropaEU,modified:date:updatedOnDataEuropaEU,homepage\"},\n spatial: {type: 'objects', fields: \"coordinates,type\"},\n spatialResource: {type: 'objects', translate:\",spatialResource\", fields: \"resource:link\"},\n conformsTo: {type: 'objects', fields: \"title::label,label,resource:link_blank\", track:\"resource\"},\n provenances: {type: 'objects', translate: 'provenance,provenances', fields: \"label,resource:link\"},\n // relatedResources: {type: 'links', translate: 'relatedResource,relatedResources'},\n identifiers: {type: 'links', translate: 'identifier,identifiers'},\n otherIdentifiers: {type: 'objects', translate: 'otherIdentifier,otherIdentifiers', fields:\"identifier:link,resource:link:identifier,scheme:link\"},\n resource: {type: 'uri', translate: \",'uriRef:'\"},\n frequency: {type: 'object', fields:\"title,resource:link\"},\n accessRights: {type: 'object', translate:\"/message.tooltip.datasetDetails.distributions.rights,accessRights\", fields:\"label::\"},\n accrualPeriodicity: {type: 'object', translate:\"frequency,accrualPeriodicity\", fields:\"label::\"},\n creator: {type: 'object', fields:\"name,email,homepage\"},\n hasVersion: {type: 'links'},\n isVersionOf: {type: 'links', translate:\"versionOf,isVersionOf\"},\n temporal: {type: 'objects', translate:\"/message.tooltip.datasetDetails.distributions.temporalResolution,temporal\", fields: \"gte:date:,lte:date:' -'\", itemstyles:\"float:left\"},\n versionInfo: {type: 'string'},\n versionNotes: {type: 'translation'},\n attributes: {type: 'links', translate:\",attributes\"},\n dimensions: {type: 'links', translate:\",dimensions\"},\n numSeries: {type: 'number'},\n hasQualityAnnotations: {type: 'links', translate: \",qualityAnnotations\"},\n statUnitMeasures: {type: 'links', translate: \"unitsOfMeasurement\"},\n isReferencedBy: {type: 'links'},\n qualifiedAttributions: {type: 'links', translate: \"qualifiedAttribution\"},\n wasGeneratedBy: {type: 'links'},\n qualifiedRelations: {type: 'objects', translate: \"qualifiedRelation\", fields: \"relation:link,had_role:link:role\"},\n sample: {type: 'links'},\n spatialResolutionInMeters: {\n type: 'first:number', translate: \"spatialResolutionInMeters,spatialResolutionInMeters.label\",\n transform: value => t('message.metadata.spatialResolutionInMeters.value', {number: value[0]})\n },\n type: {type: 'object', fields: \"label,resource:link\"},\n temporalResolution: {type: 'string'}\n});\n\nexport const dcatDeSchema = () => ({\n politicalGeocodingLevelURI: {type: 'objects', fields:\"label,resource:link\"},\n politicalGeocodingURI: {type: 'objects', fields:\"label,resource:link\"},\n availability: {type: 'object', translate:\"availabilityDE,availability\", fields:\"label,resource:link\"},\n contributorID: {type: 'objects', fields:\"label,resource:link\"},\n geocodingDescriptionDe: {type: 'translation'},\n legalBasis: {type: 'translation'},\n qualityProcessURI: {type: 'uri'},\n typeDe: {type: 'string', translate:\"type,type\"},\n references: {type: 'uri'},\n contributor: {type: 'objects', fields:\"name,type,homepage,email,resource\"},\n originator: {type: 'objects', fields:\"name,type,homepage,email,resource\"},\n maintainer: {type: 'objects', fields:\"name,type,homepage,email,resource\"}\n});\n"],"names":["dcatFields","dcatDeFields","dcatSchema","t","value","dcatDeSchema"],"mappings":"AAAO,MAAMA,IAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kFAQbC,IAAe;AAAA;AAAA,mDAqDfC,IAAa,CAACC,OAAO;AAAA,EAC9B,aAAa,EAAC,MAAM,QAAQ,WAAW,UAAS;AAAA,EAChD,kBAAkB,EAAC,MAAM,QAAQ,WAAW,UAAS;AAAA,EACrD,cAAc,EAAC,MAAM,SAAS,WAAW,cAAa;AAAA,EACtD,SAAS,EAAC,MAAM,SAAS,WAAU,WAAU;AAAA,EAC7C,WAAW,EAAC,MAAM,SAAS,WAAW,qBAAoB;AAAA,EAC1D,WAAW,EAAC,MAAM,UAAU,QAAQ,sBAAqB;AAAA,EACzD,eAAe,EAAC,MAAM,WAAW,WAAU,gDAAgD,QAAQ,2IAA0I;AAAA,EAC7O,eAAe,EAAC,MAAM,UAAU,WAAU,gDAAgD,QAAQ,+EAA8E;AAAA,EAChL,SAAS,EAAC,MAAM,WAAW,QAAQ,mBAAkB;AAAA,EACrD,iBAAiB,EAAC,MAAM,WAAW,WAAU,oBAAoB,QAAQ,gBAAe;AAAA,EACxF,YAAY,EAAC,MAAM,WAAW,QAAQ,0CAA0C,OAAM,WAAU;AAAA,EAChG,aAAa,EAAC,MAAM,WAAW,WAAW,0BAA0B,QAAQ,sBAAqB;AAAA;AAAA,EAEjG,aAAa,EAAC,MAAM,SAAS,WAAW,yBAAwB;AAAA,EAChE,kBAAkB,EAAC,MAAM,WAAW,WAAW,oCAAoC,QAAO,uDAAsD;AAAA,EAChJ,UAAU,EAAC,MAAM,OAAO,WAAW,aAAY;AAAA,EAC/C,WAAW,EAAC,MAAM,UAAU,QAAO,sBAAqB;AAAA,EACxD,cAAc,EAAC,MAAM,UAAU,WAAU,qEAAqE,QAAO,UAAS;AAAA,EAC9H,oBAAoB,EAAC,M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sBAAqB;AAAA,EACpG,eAAe,EAAC,MAAM,WAAW,QAAO,sBAAqB;AAAA,EAC7D,wBAAwB,EAAC,MAAM,cAAa;AAAA,EAC5C,YAAY,EAAC,MAAM,cAAa;AAAA,EAChC,mBAAmB,EAAC,MAAM,MAAK;AAAA,EAC/B,QAAQ,EAAC,MAAM,UAAU,WAAU,YAAW;AAAA,EAC9C,YAAY,EAAC,MAAM,MAAK;AAAA,EACxB,aAAa,EAAC,MAAM,WAAW,QAAO,oCAAmC;AAAA,EACzE,YAAY,EAAC,MAAM,WAAW,QAAO,oCAAmC;AAAA,EACxE,YAAY,EAAC,MAAM,WAAW,QAAO,oCAAmC;AAC5E;"}
1
+ {"version":3,"file":"specification.mjs","sources":["../../../lib/datasetDetails/properties/specification.ts"],"sourcesContent":["export const dcatFields = `releaseDate,modificationDate,creator,landingPages,sources,\n languages,publisher,contactPoints,catalogRecord,spatial,\n spatialResource,conformsTo,provenances,identifiers,otherIdentifiers,resource,\n frequency,accessRights,accrualPeriodicity,hasVersion,isVersionOf,\n temporal,versionInfo,versionNotes,attributes,dimensions,numSeries,hasQualityAnnotations,\n statUnitMeasures,isReferencedBy,qualifiedAttributions,wasGeneratedBy,\n qualifiedRelations,sample,spatialResolutionInMeters,type,temporalResolution`;\n\nexport const dcatDeFields = `politicalGeocodingLevelURI,politicalGeocodingURI,availability,\n contributorID,geocodingDescriptionDe,legalBasis,qualityProcessURI,typeDe,\n references,contributor,originator,maintainer`;\n\n/*\n Below we have schemata describing how properties should be rendered in DatasetDatailsProperties.vue. A schema is\n an object where keys correspond to the above defined fields. For each key, the value is an object the format of which\n we will now describe:\n\n - type: is the the only required property. Will be evaluated in typeCheckers.ts. It reflects the format of the\n data item (CALLED \"response\" BELOW!) retrieved by from the search network response (number, string, url, array, object, array of objects).\n Supported values are:\n * \"number\": response is a single number\n * \"first:number\": render response[0] as a number\n * \"string\": response a simple string\n * \"uri\": response a simple string, rendered as a link\n * \"date\": response a simple string, formatted as a date conforming to the current locale\n * \"translation\": response an object containing locale keys (like \"en\", \"de\"). The value corresponding to the\n current locale is rendered\n * \"object\": response an object whose where each key-value pair is rendered on a separate line\n * \"array\": response an array whose elements are rendered vertically\n * \"links\": reponse either an array of uri-strings rendered as links, or an\n array of objects with a label field that is displayed as a link and another field\n holding the href; that other field is either resource, label or id\n\n - translate: for a property \"xxx\", we have a bold label and tooltip to the left which comes from\n an i18n translation; the default i18n keys are: message.tooltip.datasetDetails.xxx for the tooltip and\n message.metadata.xxx for the displayed label. if instead of xxx, you want to use another key (with the same prefixes),\n translate can provide it. If translate is two strings separated by commas, the left one applies to the tooltip, the right\n to the label. Instead of just a replacement for xxx, you can provide i18n keys without the prefixes by starting the string with\n a slash (example: translate:\"/message.tooltip.yyy,/message.mykey.mylabelkey\"). Instead of translation keys, you can also\n provide literal values as tooltip or label by enclosing the strings in single quotes.\n\n - fields: for objects and arrays of objects, this comma-separated value indicates, what keys of the objects should\n be used for display (filtering out any additional data in the object). If not present, all existent keys will be used.\n A key given in this comma separated list can be of the form \"x\": just a key, or of the form \"x:y\": key x of type y (where\n the type is any of \"link\", \"link_blank\", \"date\" or empty; accordingly, a link (possibly target=\"_blank\") or date will be displayed).\n Also the form \"x:y:z\" is possible, where z is an indication how to translate the key for rendering. If z does not exist,\n the i18n key message.metadata.x will be translated; if z exists, we use message.metadata.z instead. The additional properties for\n \"translate\" above can also be applied to z: leading slash or single quotes.\n\n - track: enable Matomo tracking for a link. track is a string value indicating the key of the data object for which\n tracking should be enabled.\n\n - itemstyles: a string of CSS properties that applies to key-value items of a rendered object\n\n - transform: a function that maps the data to be rendered. Applies after the data has been processed in the value-method of\n DatsetDetailsProperty.vue\n\n - preTransform: same as transform, only applied to the raw data value before processing in the value-method\n\n */\n\nexport const dcatSchema = (t) => ({\n releaseDate: {type: 'date', translate: 'created'},\n modificationDate: {type: 'date', translate: 'updated'},\n landingPages: {type: 'links', translate: 'landingPage'},\n sources: {type: 'links', translate:',sources'},\n languages: {type: 'links', translate: 'language,languages'},\n publisher: {type: 'object', fields: 'name,email,homepage'},\n contactPoints: {type: 'objects', translate:\"/message.tooltip.contactPoints,contactPoints\", fields: \"name::/message.metadata.name,organisation_name::/message.datasetDetails.contactPoints.organizationName, email,telephone,address,url:link\"},\n catalogRecord: {type: 'object', translate:\"/message.tooltip.catalogRecord,catalogRecord\", fields: \"issued:date:addedToDataEuropaEU,modified:date:updatedOnDataEuropaEU,homepage\"},\n spatial: {type: 'objects', fields: \"coordinates,type\"},\n spatialResource: {type: 'objects', translate:\",spatialResource\", fields: \"resource:link\"},\n conformsTo: {type: 'objects', fields: \"title::label,label,resource:link_blank\", track:\"resource\"},\n provenances: {type: 'objects', translate: 'provenance,provenances', fields: \"label,resource:link\"},\n // relatedResources: {type: 'links', translate: 'relatedResource,relatedResources'},\n identifiers: {type: 'links', translate: 'identifier,identifiers'},\n otherIdentifiers: {type: 'objects', translate: 'otherIdentifier,otherIdentifiers', fields:\"identifier:link,resource:link:identifier,scheme:link\"},\n resource: {type: 'uri', translate: \",'uriRef:'\"},\n frequency: {type: 'object', fields:\"title,resource:link\"},\n accessRights: {type: 'object', translate:\"/message.tooltip.datasetDetails.distributions.rights,accessRights\", fields:\"label::\"},\n accrualPeriodicity: {type: 'object', translate:\"frequency,accrualPeriodicity\", fields:\"label::\"},\n creator: {type: 'object', fields:\"name,email,homepage\"},\n hasVersion: {type: 'links'},\n isVersionOf: {type: 'links', translate:\"versionOf,isVersionOf\"},\n temporal: {type: 'objects', translate:\"/message.tooltip.datasetDetails.distributions.temporalResolution,temporal\", fields: \"gte:date:,lte:date:' -'\", itemstyles:\"float:left\"},\n versionInfo: {type: 'string'},\n versionNotes: {type: 'translation'},\n attributes: {type: 'links', translate:\",attributes\"},\n dimensions: {type: 'links', translate:\",dimensions\"},\n numSeries: {type: 'number'},\n hasQualityAnnotations: {type: 'links', translate: \",qualityAnnotations\"},\n statUnitMeasures: {type: 'links', translate: \"unitsOfMeasurement\"},\n isReferencedBy: {type: 'links'},\n qualifiedAttributions: {type: 'links', translate: \"qualifiedAttribution\"},\n wasGeneratedBy: {type: 'links'},\n qualifiedRelations: {type: 'objects', translate: \"qualifiedRelation\", fields: \"relation:link,had_role:link:role\"},\n sample: {type: 'links'},\n spatialResolutionInMeters: {\n type: 'number', translate: \"spatialResolutionInMeters,spatialResolutionInMeters.label\",\n transform: value => t('message.metadata.spatialResolutionInMeters.value', {number: value})\n },\n type: {type: 'object', fields: \"label,resource:link\"},\n temporalResolution: {type: 'string'}\n});\n\nexport const dcatDeSchema = () => ({\n politicalGeocodingLevelURI: {type: 'objects', fields:\"label,resource:link\"},\n politicalGeocodingURI: {type: 'objects', fields:\"label,resource:link\"},\n availability: {type: 'object', translate:\"availabilityDE,availability\", fields:\"label,resource:link\"},\n contributorID: {type: 'objects', fields:\"label,resource:link\"},\n geocodingDescriptionDe: {type: 'translation'},\n legalBasis: {type: 'translation'},\n qualityProcessURI: {type: 'uri'},\n typeDe: {type: 'string', translate:\"type,type\"},\n references: {type: 'uri'},\n contributor: {type: 'objects', fields:\"name,type,homepage,email,resource\"},\n originator: {type: 'objects', fields:\"name,type,homepage,email,resource\"},\n maintainer: {type: 'objects', fields:\"name,type,homepage,email,resource\"}\n});\n"],"names":["dcatFields","dcatDeFields","dcatSchema","t","value","dcatDeSchema"],"mappings":"AAAO,MAAMA,IAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kFAQbC,IAAe;AAAA;AAAA,mDAqDfC,IAAa,CAACC,OAAO;AAAA,EAC9B,aAAa,EAAC,MAAM,QAAQ,WAAW,UAAS;AAAA,EAChD,kBAAkB,EAAC,MAAM,QAAQ,WAAW,UAAS;AAAA,EACrD,cAAc,EAAC,MAAM,SAAS,WAAW,cAAa;AAAA,EACtD,SAAS,EAAC,MAAM,SAAS,WAAU,WAAU;AAAA,EAC7C,WAAW,EAAC,MAAM,SAAS,WAAW,qBAAoB;AAAA,EAC1D,WAAW,EAAC,MAAM,UAAU,QAAQ,sBAAqB;AAAA,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