@piveau/piveau-hub-ui-modules 4.8.5 → 4.9.1

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.
@@ -6,7 +6,7 @@ import N from "./ValuesList.vue.mjs";
6
6
  import { mapGetters as S } from "vuex";
7
7
  import b 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 _, createVNode as y, 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 _, createVNode as y, 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 = {
@@ -70,10 +70,10 @@ const O = {
70
70
  });
71
71
  break;
72
72
  case "object":
73
- e = this.prepareObject(this.data);
73
+ e = this.prepareObject(e);
74
74
  break;
75
75
  case "objects":
76
- e = this.data.map((t) => this.prepareObject(t));
76
+ e = e.map((t) => this.prepareObject(t));
77
77
  break;
78
78
  case "translation":
79
79
  e = this.getTranslationFor(e, this.$route.query.locale, ["en"]);
@@ -109,15 +109,15 @@ 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: 0 }, q = { key: 2 }, G = { key: 3 }, z = { key: 4 };
112
- function H(e, t, r, l, m, a) {
112
+ function H(e, t, r, l, m, s) {
113
113
  const D = f("tooltip"), F = f("app-link"), h = f("values-list");
114
- return a.show ? (s(), i("tr", P, [
114
+ return s.show ? (a(), i("tr", P, [
115
115
  _("td", A, [
116
116
  y(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"])
@@ -125,51 +125,51 @@ function H(e, t, r, l, m, a) {
125
125
  t[2] || (t[2] = o()),
126
126
  ["string", "date", "number", "first:number", "translation"].includes(
127
127
  r.type
128
- ) ? (s(), i("td", C, d(a.value), 1)) : u("", !0),
128
+ ) ? (a(), i("td", C, d(s.value), 1)) : u("", !0),
129
129
  t[3] || (t[3] = o()),
130
- r.type === "uri" ? (s(), i("td", L, [
131
- _("a", { href: a.value }, d(a.value), 9, W)
130
+ r.type === "uri" ? (a(), i("td", L, [
131
+ _("a", { href: s.value }, d(s.value), 9, W)
132
132
  ])) : u("", !0),
133
133
  t[4] || (t[4] = o()),
134
- r.type === "links" ? (s(), i("td", I, [
135
- (s(!0), i(T, null, v(a.value, (n, p) => (s(), i("div", { key: p }, [
136
- r.name === "identifiers" ? (s(), i("div", U, d(n.label), 1)) : u("", !0),
134
+ r.type === "links" ? (a(), i("td", I, [
135
+ (a(!0), i(T, null, v(s.value, (n, p) => (a(), i("div", { key: p }, [
136
+ r.name === "identifiers" ? (a(), i("div", U, d(n.label), 1)) : u("", !0),
137
137
  t[0] || (t[0] = o()),
138
- !a.isNil(n) && n.link && r.name !== "languages" && r.name != "identifiers" ? (s(), B(F, {
138
+ !s.isNil(n) && n.link && r.name !== "languages" && r.name != "identifiers" ? (a(), B(F, {
139
139
  key: 1,
140
140
  to: n.link
141
141
  }, {
142
142
  default: k(() => [
143
- o(d(a.truncate(n.label, 75)), 1)
143
+ o(d(s.truncate(n.label, 75)), 1)
144
144
  ]),
145
145
  _: 2
146
146
  }, 1032, ["to"])) : u("", !0),
147
147
  t[1] || (t[1] = o()),
148
- !a.isNil(n) && !n.link || r.name === "languages" && r.name != "identifiers" ? (s(), i("div", q, d(a.truncate(n.label, 75)), 1)) : u("", !0)
148
+ !s.isNil(n) && !n.link || r.name === "languages" && r.name != "identifiers" ? (a(), i("div", q, d(s.truncate(n.label, 75)), 1)) : u("", !0)
149
149
  ]))), 128))
150
150
  ])) : u("", !0),
151
151
  t[5] || (t[5] = o()),
152
- r.type === "object" ? (s(), i("td", G, [
152
+ r.type === "object" ? (a(), i("td", G, [
153
153
  y(h, {
154
- values: a.value,
155
- interpretTranslateKey: a.interpretTranslateKey,
154
+ values: s.value,
155
+ interpretTranslateKey: s.interpretTranslateKey,
156
156
  itemstyles: r.itemstyles
157
157
  }, null, 8, ["values", "interpretTranslateKey", "itemstyles"])
158
158
  ])) : u("", !0),
159
159
  t[6] || (t[6] = o()),
160
- r.type === "objects" ? (s(), i("td", z, [
161
- (s(!0), i(T, null, v(a.value, (n, p) => (s(), i("div", { key: p }, [
160
+ r.type === "objects" ? (a(), i("td", z, [
161
+ (a(!0), i(T, null, v(s.value, (n, p) => (a(), i("div", { key: p }, [
162
162
  y(h, {
163
163
  values: n,
164
- interpretTranslateKey: a.interpretTranslateKey,
164
+ interpretTranslateKey: s.interpretTranslateKey,
165
165
  itemstyles: r.itemstyles
166
166
  }, null, 8, ["values", "interpretTranslateKey", "itemstyles"])
167
167
  ]))), 128))
168
168
  ])) : u("", !0)
169
169
  ])) : u("", !0);
170
170
  }
171
- const at = /* @__PURE__ */ E(O, [["render", H], ["__scopeId", "data-v-38338bea"]]);
171
+ const st = /* @__PURE__ */ E(O, [["render", H], ["__scopeId", "data-v-8e02a846"]]);
172
172
  export {
173
- at as default
173
+ st as default
174
174
  };
175
175
  //# sourceMappingURL=DatasetDetailsProperty.vue.mjs.map
@@ -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\n v-if=\"\n ['string', 'date', 'number', 'first:number', 'translation'].includes(\n type\n )\n \"\n >\n {{ value }}\n </td>\n <td v-if=\"type === 'uri'\">\n <a :href=\"value\">{{ value }}</a>\n </td>\n <td v-if=\"type === 'links'\">\n <div v-for=\"(v, i) of value\" :key=\"i\">\n <div v-if=\"name === 'identifiers'\">{{ v.label }}</div>\n <app-link\n v-if=\"!isNil(v) && v.link && name !== 'languages' && name != 'identifiers'\"\n :to=\"v.link\"\n >{{ truncate(v.label, 75) }}</app-link\n >\n <div v-if=\"(!isNil(v) && !v.link) || name === 'languages' && name != 'identifiers'\">\n {{ truncate(v.label, 75) }}\n </div>\n </div>\n </td>\n <td v-if=\"type === 'object'\">\n <values-list\n :values=\"value\"\n :interpretTranslateKey=\"interpretTranslateKey\"\n :itemstyles=\"itemstyles\"\n />\n </td>\n <td v-if=\"type === 'objects'\">\n <div v-for=\"(item, i) of value\" :key=\"i\">\n <values-list\n :values=\"item\"\n :interpretTranslateKey=\"interpretTranslateKey\"\n :itemstyles=\"itemstyles\"\n />\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,\n AppLink,\n ValuesList,\n },\n computed: {\n ...mapGetters(\"datasetDetails\", [\"getProperty\"]),\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) =>\n this.interpretTranslateKey(item, prefix[i])\n );\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 =\n typeof item === \"string\"\n ? item\n : 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 // console.log(key);\n\n if (key === \"\") return \"\";\n if (key.startsWith(\"/\"))\n 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</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","$options","_createElementBlock","_hoisted_1","_createElementVNode","_createVNode","_component_tooltip","$props","_openBlock","_hoisted_4","_hoisted_5","_hoisted_6","_Fragment","_renderList","_hoisted_7","_toDisplayString","_createBlock","_component_app_link","_hoisted_8","_hoisted_9","_component_values_list","_hoisted_10"],"mappings":";;;;;;;;;;;AA6DA,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,IACA,SAAAC;AAAA,IACA,YAAAC;AAAA,EACD;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,kBAAkB,CAAC,aAAa,CAAC;AAAA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e,EAAQ,SAACf,EAAE,OAAK,EAAA,CAAA,GAAA,CAAA;AAAA;;;;SAETe,EAAK,MAACf,CAAC,KAAM,CAAAA,EAAE,QAASqB,EAAI,SAAA,eAAoBA,EAAI,QAAA,iBAAjEC,EAAA,GAAAN,EAEM,OADDgB,GAAAH,EAAAd,EAAA,SAASf,EAAE,OAAK,EAAA,CAAA,GAAA,CAAA;;;;IAIfqB,EAAI,SAAA,iBAAdL,EAMK,MAAAiB,GAAA;AAAA,MALHd,EAIEe,GAAA;AAAA,QAHC,QAAQnB,EAAK;AAAA,QACb,uBAAuBA,EAAqB;AAAA,QAC5C,YAAYM,EAAU;AAAA;;;IAGjBA,EAAI,SAAA,kBAAdL,EAQK,MAAAmB,GAAA;AAAA,OAPHb,EAAA,EAAA,GAAAN,EAMMU,GANmB,MAAAC,EAAAZ,EAAA,OAAZ,CAAAtB,GAAMC,YAAnBsB,EAMM,OAAA,EAN2B,KAAKtB,KAAC;AAAA,QACrCyB,EAIEe,GAAA;AAAA,UAHC,QAAQzC;AAAA,UACR,uBAAuBsB,EAAqB;AAAA,UAC5C,YAAYM,EAAU;AAAA;;;;;;"}
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\n v-if=\"\n ['string', 'date', 'number', 'first:number', 'translation'].includes(\n type\n )\n \"\n >\n {{ value }}\n </td>\n <td v-if=\"type === 'uri'\">\n <a :href=\"value\">{{ value }}</a>\n </td>\n <td v-if=\"type === 'links'\">\n <div v-for=\"(v, i) of value\" :key=\"i\">\n <div v-if=\"name === 'identifiers'\">{{ v.label }}</div>\n <app-link\n v-if=\"!isNil(v) && v.link && name !== 'languages' && name != 'identifiers'\"\n :to=\"v.link\"\n >{{ truncate(v.label, 75) }}</app-link\n >\n <div v-if=\"(!isNil(v) && !v.link) || name === 'languages' && name != 'identifiers'\">\n {{ truncate(v.label, 75) }}\n </div>\n </div>\n </td>\n <td v-if=\"type === 'object'\">\n <values-list\n :values=\"value\"\n :interpretTranslateKey=\"interpretTranslateKey\"\n :itemstyles=\"itemstyles\"\n />\n </td>\n <td v-if=\"type === 'objects'\">\n <div v-for=\"(item, i) of value\" :key=\"i\">\n <values-list\n :values=\"item\"\n :interpretTranslateKey=\"interpretTranslateKey\"\n :itemstyles=\"itemstyles\"\n />\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,\n AppLink,\n ValuesList,\n },\n computed: {\n ...mapGetters(\"datasetDetails\", [\"getProperty\"]),\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) =>\n this.interpretTranslateKey(item, prefix[i])\n );\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 =\n typeof item === \"string\"\n ? item\n : item.label || item.id || item.resource;\n return { link, label };\n }\n });\n break;\n case \"object\":\n v = this.prepareObject(v);\n break;\n case \"objects\":\n v = v.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 // console.log(key);\n\n if (key === \"\") return \"\";\n if (key.startsWith(\"/\"))\n 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</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","$options","_createElementBlock","_hoisted_1","_createElementVNode","_createVNode","_component_tooltip","$props","_openBlock","_hoisted_4","_hoisted_5","_hoisted_6","_Fragment","_renderList","_hoisted_7","_toDisplayString","_createBlock","_component_app_link","_hoisted_8","_hoisted_9","_component_values_list","_hoisted_10"],"mappings":";;;;;;;;;;;AA6DA,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,IACA,SAAAC;AAAA,IACA,YAAAC;AAAA,EACD;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,kBAAkB,CAAC,aAAa,CAAC;AAAA,IAC/C,eAAe;AACb,YAAMC,IAAS,CAAC,kCAAkC,kBAAkB;AACpE,UAAIC;AACJ,aAAI,KAAK,aACPA,IAAiB,KAAK,UAAU,MAAM,GAAG,GACrCA,EAAe,WAAW,KAC5BA,EAAe,KAAKA,EAAe,CAAC,CAAC,KAGvCA,IAAiB,CAAC,KAAK,MAAM,KAAK,IAAI,GAEjCA,EAAe;AAAA,QAAI,CAACC,GAAMC,MAC/B,KAAK,sBAAsBD,GAAMF,EAAOG,CAAC,CAAC;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QAHC,QAAQnB,EAAK;AAAA,QACb,uBAAuBA,EAAqB;AAAA,QAC5C,YAAYM,EAAU;AAAA;;;IAGjBA,EAAI,SAAA,kBAAdL,EAQK,MAAAmB,GAAA;AAAA,OAPHb,EAAA,EAAA,GAAAN,EAMMU,GANmB,MAAAC,EAAAZ,EAAA,OAAZ,CAAAtB,GAAMC,YAAnBsB,EAMM,OAAA,EAN2B,KAAKtB,KAAC;AAAA,QACrCyB,EAIEe,GAAA;AAAA,UAHC,QAAQzC;AAAA,UACR,uBAAuBsB,EAAqB;AAAA,UAC5C,YAAYM,EAAU;AAAA;;;;;;"}
@@ -1,4 +1,4 @@
1
- export declare 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";
1
+ export declare 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, geoDcatAp";
2
2
  export declare const dcatDeFields = "politicalGeocodingLevelURI,politicalGeocodingURI,availability,\n contributorID,geocodingDescriptionDe,legalBasis,qualityProcessURI,typeDe,\n references,contributor,originator,maintainer";
3
3
  export declare const dcatSchema: (t: any) => {
4
4
  releaseDate: {
@@ -154,6 +154,14 @@ export declare const dcatSchema: (t: any) => {
154
154
  temporalResolution: {
155
155
  type: string;
156
156
  };
157
+ geoDcatAp: {
158
+ type: string;
159
+ translate: string;
160
+ fields: string;
161
+ preTransform: (data: any) => {
162
+ label: any;
163
+ }[];
164
+ };
157
165
  };
158
166
  export declare const dcatDeSchema: () => {
159
167
  politicalGeocodingLevelURI: {
@@ -1,12 +1,13 @@
1
- const a = `releaseDate,modificationDate,creator,landingPages,sources,
1
+ import { getTranslationFor as i } from "../../utils/helpers.mjs";
2
+ const n = `releaseDate, modificationDate,creator,landingPages,sources,
2
3
  languages,publisher,contactPoints,catalogRecord,spatial,
3
4
  spatialResource,conformsTo,provenances,identifiers,otherIdentifiers, resource,
4
5
  frequency,accessRights,accrualPeriodicity,hasVersion,isVersionOf,
5
6
  temporal,versionInfo,versionNotes,attributes,dimensions,numSeries,hasQualityAnnotations,
6
7
  statUnitMeasures,isReferencedBy,qualifiedAttributions,wasGeneratedBy,
7
- qualifiedRelations,sample,spatialResolutionInMeters,type,temporalResolution`, i = `politicalGeocodingLevelURI,politicalGeocodingURI,availability,
8
+ qualifiedRelations,sample,spatialResolutionInMeters,type,temporalResolution, geoDcatAp`, o = `politicalGeocodingLevelURI,politicalGeocodingURI,availability,
8
9
  contributorID,geocodingDescriptionDe,legalBasis,qualityProcessURI,typeDe,
9
- references,contributor,originator,maintainer`, s = (t) => ({
10
+ references,contributor,originator,maintainer`, r = (s) => ({
10
11
  releaseDate: { type: "date", translate: "created" },
11
12
  modificationDate: { type: "date", translate: "updated" },
12
13
  landingPages: { type: "links", translate: "landingPage" },
@@ -45,14 +46,25 @@ const a = `releaseDate,modificationDate,creator,landingPages,sources,
45
46
  spatialResolutionInMeters: {
46
47
  type: "number",
47
48
  translate: "spatialResolutionInMeters,spatialResolutionInMeters.label",
48
- transform: (e) => t("message.metadata.spatialResolutionInMeters.value", { number: e })
49
+ transform: (e) => s("message.metadata.spatialResolutionInMeters.value", { number: e })
49
50
  },
50
51
  type: { type: "object", fields: "label,resource:link_blank", preTransform: (e) => ({
51
52
  ...e,
52
53
  name: (e == null ? void 0 : e.name) ?? (e == null ? void 0 : e.label)
53
54
  }) },
54
- temporalResolution: { type: "string" }
55
- }), l = () => ({
55
+ temporalResolution: { type: "string" },
56
+ geoDcatAp: {
57
+ type: "objects",
58
+ translate: "/message.tooltip.datasetDetails.geoDcatAp,'GeoDCAT-AP'",
59
+ fields: "label",
60
+ preTransform: (e) => [{
61
+ label: (e || []).map((t) => {
62
+ const a = t == null ? void 0 : t.label;
63
+ return typeof a == "object" ? i(a, "en", ["en"]) : a;
64
+ }).filter(Boolean).join(", ")
65
+ }]
66
+ }
67
+ }), c = () => ({
56
68
  politicalGeocodingLevelURI: { type: "objects", fields: "label,resource:link" },
57
69
  politicalGeocodingURI: { type: "objects", fields: "label,resource:link" },
58
70
  availability: { type: "object", translate: "availabilityDE,availability", fields: "label,resource:link" },
@@ -65,14 +77,14 @@ const a = `releaseDate,modificationDate,creator,landingPages,sources,
65
77
  contributor: { type: "objects", fields: "name,type,homepage,email,resource" },
66
78
  originator: { type: "objects", fields: "name,type,homepage,email,resource" },
67
79
  maintainer: { type: "objects", fields: "name,type,homepage,email,resource" }
68
- }), n = () => ({
80
+ }), p = () => ({
69
81
  catalog: { type: "translation", fields: "title" },
70
82
  publisher: { type: "object", fields: "name,email,homepage:link" },
71
83
  contact_point: { type: "objects", fields: "email" },
72
84
  access_right: { type: "object", fields: "resource" },
73
85
  endpoint_url: { type: "links", translate: ",endpoint_url" },
74
86
  format: { type: "object", fields: "label,resource:link_blank" }
75
- }), o = () => ({
87
+ }), d = () => ({
76
88
  publisher: { type: "object", fields: "type,name,resource:link" },
77
89
  issued: { type: "date", translate: "created" },
78
90
  modified: { type: "date", translate: "updated" },
@@ -84,11 +96,11 @@ const a = `releaseDate,modificationDate,creator,landingPages,sources,
84
96
  applicable_legislation: { type: "links", translate: "legalBasis,applicableLegislation" }
85
97
  });
86
98
  export {
87
- n as dcatDataserviceSchema,
88
- o as dcatDatasetseriesSchema,
89
- i as dcatDeFields,
90
- l as dcatDeSchema,
91
- a as dcatFields,
92
- s as dcatSchema
99
+ p as dcatDataserviceSchema,
100
+ d as dcatDatasetseriesSchema,
101
+ o as dcatDeFields,
102
+ c as dcatDeSchema,
103
+ n as dcatFields,
104
+ r as dcatSchema
93
105
  };
94
106
  //# sourceMappingURL=specification.mjs.map
@@ -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: 'links', 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: 'links', 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: 'objects', fields:\"type,name,resource:link,email,homepage:link\"},\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_blank\", preTransform: (value) => ({\n ...value,\n name: value?.name ?? value?.label\n })},\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\n/* Schema for dataservice-specific properties */\nexport const dcatDataserviceSchema = () => ({\n catalog: {type: 'translation', fields: 'title'},\n publisher: {type: 'object', fields: 'name,email,homepage:link'},\n contact_point: {type: 'objects', fields: 'email'},\n access_right: {type: 'object', fields: 'resource'},\n endpoint_url: {type: 'links', translate:\",endpoint_url\"},\n format: {type: 'object', fields: 'label,resource:link_blank'}\n});\n\nexport const dcatDatasetseriesSchema = () => ({\n publisher: {type: 'object', fields: 'type,name,resource:link'},\n issued: {type: 'date', translate: 'created'},\n modified: {type: 'date', translate: 'updated'},\n temporal: {type: 'objects', fields: 'gte:date,lte:date'},\n spatial_resource: {type: 'links', fields: 'resource:link'},\n contact_point: {type: 'objects', fields: 'name,email,telephone,address'},\n spatial: {type: 'objects', fields: 'coordinates,type'},\n accrual_periodicity: {type: 'object', fields: 'label:label,resource:link'},\n applicable_legislation: {type: 'links', translate: 'legalBasis,applicableLegislation'},\n});\n"],"names":["dcatFields","dcatDeFields","dcatSchema","value","dcatDeSchema","dc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zE,wBAAwB,EAAC,MAAM,SAAS,WAAW,mCAAkC;AACzF;"}
1
+ {"version":3,"file":"specification.mjs","sources":["../../../lib/datasetDetails/properties/specification.ts"],"sourcesContent":["import { getTranslationFor } from \"../../../lib/utils/helpers\";\n\nexport 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, geoDcatAp`;\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: 'links', 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: 'links', 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: 'objects', fields:\"type,name,resource:link,email,homepage:link\"},\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_blank\", preTransform: (value) => ({\n ...value,\n name: value?.name ?? value?.label\n })},\n temporalResolution: {type: 'string'},\n geoDcatAp: {\n type: 'objects',\n translate: \"/message.tooltip.datasetDetails.geoDcatAp,'GeoDCAT-AP'\",\n fields: \"label\",\n preTransform: (data) => [{\n label: (data || [])\n .map(item => {\n const label = item?.label;\n return typeof label === 'object' ? getTranslationFor(label, 'en', ['en']) : label;\n })\n .filter(Boolean)\n .join(', ')\n }]\n},\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\n/* Schema for dataservice-specific properties */\nexport const dcatDataserviceSchema = () => ({\n catalog: {type: 'translation', fields: 'title'},\n publisher: {type: 'object', fields: 'name,email,homepage:link'},\n contact_point: {type: 'objects', fields: 'email'},\n access_right: {type: 'object', fields: 'resource'},\n endpoint_url: {type: 'links', translate:\",endpoint_url\"},\n format: {type: 'object', fields: 'label,resource:link_blank'}\n});\n\nexport const dcatDatasetseriesSchema = () => ({\n publisher: {type: 'object', fields: 'type,name,resource:link'},\n issued: {type: 'date', translate: 'created'},\n modified: {type: 'date', translate: 'updated'},\n temporal: {type: 'objects', fields: 'gte:date,lte:date'},\n spatial_resource: {type: 'links', fields: 'resource:link'},\n contact_point: {type: 'objects', fields: 'name,email,telephone,address'},\n spatial: {type: 'objects', fields: 'coordinates,type'},\n accrual_periodicity: {type: 'object', fields: 'label:label,resource:link'},\n applicable_legislation: {type: 'links', translate: 'legalBasis,applicableLegislation'},\n});\n"],"names":["dcatFields","dcatDeFields","dcatSchema","t","value","data","item","label","getTranslationFor","dcatDeSchema","dcatDataserviceSchema","dcatDatasetseriesSchema"],"mappings":";AAEO,MAAMA,IAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6FAQbC,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,0IAAyI;AAAA,EAC5O,eAAe,EAAC,MAAM,UAAU,WAAU,gDAAgD,QAAQ,+EAA8E;AAAA,EAChL,SAAS,EAAC,MAAM,WAAW,QAAQ,mBAAkB;AAAA,EACrD,iBAAiB,EAAC,MAAM,SAAS,WAAU,oBAAoB,QAAQ,gBAAe;AAAA,EACtF,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,SAAS,WAAW,oCAAoC,QAAO,uDAAsD;AAAA,EAC9I,UAAU,EAAC,MAAM,OAAO,WAAW,aAAY;AAAA,EAC/C,WAAW,EAAC,MAAM,UAAU,QAAO,sBAAqB;AAAA,EACxD,cAAc,EAAC,MAAM,UAAU,WAAU,qEAAqE,QAAO,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