@piveau/piveau-hub-ui-modules 4.8.1 → 4.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configurations/configureServices.mjs +9 -6
- package/dist/configurations/configureServices.mjs.map +1 -1
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +2 -0
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.mjs +59 -53
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.mjs.map +1 -1
- package/dist/datasetDetails/properties/DatasetseriesDetailsProperties.vue.d.ts +55 -0
- package/dist/datasetDetails/properties/DatasetseriesDetailsProperties.vue.mjs +128 -0
- package/dist/datasetDetails/properties/DatasetseriesDetailsProperties.vue.mjs.map +1 -0
- package/dist/datasetDetails/properties/DatasetseriesDetailsProperties.vue2.mjs +5 -0
- package/dist/datasetDetails/properties/DatasetseriesDetailsProperties.vue2.mjs.map +1 -0
- package/dist/datasetDetails/properties/DatasetseriesDetailsProperty.vue.d.ts +52 -0
- package/dist/datasetDetails/properties/DatasetseriesDetailsProperty.vue.mjs +168 -0
- package/dist/datasetDetails/properties/DatasetseriesDetailsProperty.vue.mjs.map +1 -0
- package/dist/datasetDetails/properties/DatasetseriesDetailsProperty.vue2.mjs +5 -0
- package/dist/datasetDetails/properties/DatasetseriesDetailsProperty.vue2.mjs.map +1 -0
- package/dist/datasetDetails/properties/specification.d.ts +38 -0
- package/dist/datasetDetails/properties/specification.mjs +15 -4
- package/dist/datasetDetails/properties/specification.mjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +112 -108
- package/dist/index.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/dist/services/datasetService.mjs +1 -1
- package/dist/services/datasetService.mjs.map +1 -1
- package/dist/services/datasetseriesService.d.ts +9 -0
- package/dist/services/datasetseriesService.mjs +30 -0
- package/dist/services/datasetseriesService.mjs.map +1 -0
- package/dist/store/index.mjs +25 -23
- package/dist/store/index.mjs.map +1 -1
- package/dist/store/modules/datasetseriesDetailsStore.d.ts +85 -0
- package/dist/store/modules/datasetseriesDetailsStore.mjs +142 -0
- package/dist/store/modules/datasetseriesDetailsStore.mjs.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { mapGetters as V } from "vuex";
|
|
2
|
+
import S from "./DatasetseriesDetailsProperty.vue.mjs";
|
|
3
|
+
import { dcatDatasetseriesSchema as k } from "./specification.mjs";
|
|
4
|
+
import { resolveComponent as n, openBlock as o, createElementBlock as y, createElementVNode as l, renderSlot as d, createVNode as P, createTextVNode as a, withDirectives as b, Fragment as E, renderList as T, createBlock as D, vShow as H, createCommentVNode as A } from "vue";
|
|
5
|
+
import "./DatasetseriesDetailsProperties.vue2.mjs";
|
|
6
|
+
import C from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
+
const I = {
|
|
8
|
+
name: "DatasetseriesDetailsProperties",
|
|
9
|
+
components: {
|
|
10
|
+
DatasetseriesDetailsProperty: S
|
|
11
|
+
},
|
|
12
|
+
data() {
|
|
13
|
+
return {
|
|
14
|
+
infoVisible: !0,
|
|
15
|
+
initialHeight: 0,
|
|
16
|
+
restrictedHeight: 100,
|
|
17
|
+
expanded: !1
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
computed: {
|
|
21
|
+
...V("datasetseriesDetails", [
|
|
22
|
+
"getDatasetDescriptionHeight"
|
|
23
|
+
]),
|
|
24
|
+
fieldSchema() {
|
|
25
|
+
return k();
|
|
26
|
+
},
|
|
27
|
+
fieldsArray() {
|
|
28
|
+
return [
|
|
29
|
+
"issued",
|
|
30
|
+
"spatial_resource",
|
|
31
|
+
"spatial",
|
|
32
|
+
"accrual_periodicity",
|
|
33
|
+
"temporal",
|
|
34
|
+
"applicable_legislation",
|
|
35
|
+
"contact_point",
|
|
36
|
+
"modified",
|
|
37
|
+
"publisher"
|
|
38
|
+
];
|
|
39
|
+
},
|
|
40
|
+
showMoreVisible() {
|
|
41
|
+
return this.initialHeight > this.restrictedHeight;
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
toggleInfo() {
|
|
46
|
+
this.infoVisible = !this.infoVisible;
|
|
47
|
+
},
|
|
48
|
+
toggleExpanded() {
|
|
49
|
+
this.expanded = !this.expanded, this.adaptHeight();
|
|
50
|
+
},
|
|
51
|
+
adaptHeight() {
|
|
52
|
+
this.$refs.dsdProperties.style.flex = this.expanded ? "0 0 100%" : `0 0 ${this.restrictedHeight}px`, this.$refs.dsdProperties.style["max-height"] = this.expanded ? "100%" : `${this.restrictedHeight}px`;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
mounted() {
|
|
56
|
+
this.initialHeight = this.$refs.dsdProperties.clientHeight, this.$refs.overlay.style.bottom = this.$refs.dsdProperties.offsetHeight - this.$refs.dsdProperties.clientHeight + "px", this.getDatasetDescriptionHeight >= this.initialHeight ? (this.restrictedHeight = this.getDatasetDescriptionHeight, this.toggleExpanded()) : this.getDatasetDescriptionHeight >= this.restrictedHeight && this.getDatasetDescriptionHeight <= this.initialHeight && (this.restrictedHeight = this.getDatasetDescriptionHeight), this.adaptHeight();
|
|
57
|
+
}
|
|
58
|
+
}, M = { class: "mt-5 dsd-properties" }, N = { class: "col-12 mb-2 p-0 dsd-properties-list" }, B = {
|
|
59
|
+
class: "position-relative dsd-item additional-information",
|
|
60
|
+
"data-cy": "additional-information"
|
|
61
|
+
}, F = {
|
|
62
|
+
class: "table table-borderless table-responsive",
|
|
63
|
+
ref: "dsdProperties",
|
|
64
|
+
role: "tablist",
|
|
65
|
+
id: "myTab"
|
|
66
|
+
}, L = {
|
|
67
|
+
class: "additional-information-overlay",
|
|
68
|
+
ref: "overlay"
|
|
69
|
+
};
|
|
70
|
+
function $(s, t, G, j, r, e) {
|
|
71
|
+
const _ = n("dataset-details-feature-header"), w = n("datasetseries-details-property"), v = n("pv-show-more");
|
|
72
|
+
return o(), y("div", M, [
|
|
73
|
+
l("div", N, [
|
|
74
|
+
d(s.$slots, "property-header", {}, () => [
|
|
75
|
+
P(_, {
|
|
76
|
+
title: s.$t("message.datasetDetails.additionalInfo"),
|
|
77
|
+
arrowDown: !r.infoVisible,
|
|
78
|
+
tag: "additional-information-toggle",
|
|
79
|
+
onClick: e.toggleInfo
|
|
80
|
+
}, null, 8, ["title", "arrowDown", "onClick"])
|
|
81
|
+
], !0),
|
|
82
|
+
t[3] || (t[3] = a()),
|
|
83
|
+
b(l("div", B, [
|
|
84
|
+
d(s.$slots, "property-table-before", {}, void 0, !0),
|
|
85
|
+
t[0] || (t[0] = a()),
|
|
86
|
+
d(s.$slots, "property-table", {}, () => [
|
|
87
|
+
l("table", F, [
|
|
88
|
+
(o(!0), y(E, null, T(e.fieldsArray, (i, x) => {
|
|
89
|
+
var p, h, f, m, c, g, u;
|
|
90
|
+
return o(), D(w, {
|
|
91
|
+
name: i,
|
|
92
|
+
translate: (p = e.fieldSchema[i]) == null ? void 0 : p.translate,
|
|
93
|
+
type: (h = e.fieldSchema[i]) == null ? void 0 : h.type,
|
|
94
|
+
propertyFields: (f = e.fieldSchema[i]) == null ? void 0 : f.fields,
|
|
95
|
+
track: (m = e.fieldSchema[i]) == null ? void 0 : m.track,
|
|
96
|
+
itemstyles: (c = e.fieldSchema[i]) == null ? void 0 : c.itemstyles,
|
|
97
|
+
preTransform: (g = e.fieldSchema[i]) == null ? void 0 : g.preTransform,
|
|
98
|
+
transform: (u = e.fieldSchema[i]) == null ? void 0 : u.transform,
|
|
99
|
+
key: x
|
|
100
|
+
}, null, 8, ["name", "translate", "type", "propertyFields", "track", "itemstyles", "preTransform", "transform"]);
|
|
101
|
+
}), 128))
|
|
102
|
+
], 512)
|
|
103
|
+
], !0),
|
|
104
|
+
t[1] || (t[1] = a()),
|
|
105
|
+
b(l("div", L, null, 512), [
|
|
106
|
+
[H, e.showMoreVisible && !r.expanded]
|
|
107
|
+
]),
|
|
108
|
+
t[2] || (t[2] = a()),
|
|
109
|
+
d(s.$slots, "property-table-after", {}, void 0, !0)
|
|
110
|
+
], 512), [
|
|
111
|
+
[H, r.infoVisible]
|
|
112
|
+
])
|
|
113
|
+
]),
|
|
114
|
+
t[4] || (t[4] = a()),
|
|
115
|
+
e.showMoreVisible ? (o(), D(v, {
|
|
116
|
+
key: 0,
|
|
117
|
+
label: r.expanded ? s.$t("message.metadata.showLess") : s.$t("message.metadata.showMore"),
|
|
118
|
+
upArrow: r.expanded,
|
|
119
|
+
action: e.toggleExpanded,
|
|
120
|
+
class: "row text-primary"
|
|
121
|
+
}, null, 8, ["label", "upArrow", "action"])) : A("", !0)
|
|
122
|
+
]);
|
|
123
|
+
}
|
|
124
|
+
const R = /* @__PURE__ */ C(I, [["render", $], ["__scopeId", "data-v-c45ab356"]]);
|
|
125
|
+
export {
|
|
126
|
+
R as default
|
|
127
|
+
};
|
|
128
|
+
//# sourceMappingURL=DatasetseriesDetailsProperties.vue.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatasetseriesDetailsProperties.vue.mjs","sources":["../../../lib/datasetDetails/properties/DatasetseriesDetailsProperties.vue"],"sourcesContent":["<template>\n <div class=\"mt-5 dsd-properties\">\n <div class=\"col-12 mb-2 p-0 dsd-properties-list\">\n <slot name=\"property-header\">\n <dataset-details-feature-header\n :title=\"$t('message.datasetDetails.additionalInfo')\"\n :arrowDown=\"!infoVisible\"\n tag=\"additional-information-toggle\"\n :onClick=\"toggleInfo\"\n />\n </slot>\n <div class=\"position-relative dsd-item additional-information\"\n data-cy=\"additional-information\"\n v-show=\"infoVisible\">\n <slot name=\"property-table-before\"></slot>\n <slot name=\"property-table\">\n <table class=\"table table-borderless table-responsive\" ref=\"dsdProperties\" role=\"tablist\" id=\"myTab\">\n <datasetseries-details-property v-for='(name, index) in fieldsArray'\n :name=\"name\"\n :translate=\"fieldSchema[name]?.translate\"\n :type=\"fieldSchema[name]?.type\"\n :propertyFields=\"fieldSchema[name]?.fields\"\n :track=\"fieldSchema[name]?.track\"\n :itemstyles=\"fieldSchema[name]?.itemstyles\"\n :preTransform=\"fieldSchema[name]?.preTransform\"\n :transform=\"fieldSchema[name]?.transform\"\n :key=\"index\"/>\n </table>\n </slot>\n <div class=\"additional-information-overlay\" ref=\"overlay\" v-show=\"showMoreVisible && !expanded\"></div>\n <slot name=\"property-table-after\"></slot>\n </div>\n </div>\n <pv-show-more\n v-if=\"showMoreVisible\"\n :label=\"expanded? $t('message.metadata.showLess') : $t('message.metadata.showMore')\"\n :upArrow=\"expanded\"\n :action=\"toggleExpanded\"\n class=\"row text-primary\"\n />\n </div>\n</template>\n\n<script>\nimport { mapGetters } from \"vuex\";\nimport DatasetseriesDetailsProperty from \"./DatasetseriesDetailsProperty\";\nimport { dcatDatasetseriesSchema } from \"./specification.ts\";\n\nexport default {\n name: \"DatasetseriesDetailsProperties\",\n components: {\n DatasetseriesDetailsProperty,\n },\n data() {\n return {\n infoVisible: true,\n initialHeight: 0,\n restrictedHeight: 100,\n expanded: false,\n };\n },\n computed: {\n ...mapGetters('datasetseriesDetails', [\n 'getDatasetDescriptionHeight'\n ]),\n fieldSchema() {\n return dcatDatasetseriesSchema();\n },\n fieldsArray() {\n return [\n 'issued',\n 'spatial_resource',\n 'spatial',\n 'accrual_periodicity',\n 'temporal',\n 'applicable_legislation',\n 'contact_point',\n 'modified',\n 'publisher',\n ];\n },\n showMoreVisible() {\n return this.initialHeight > this.restrictedHeight;\n }\n },\n methods: {\n toggleInfo() {\n this.infoVisible = !this.infoVisible;\n },\n toggleExpanded() {\n this.expanded = ! this.expanded;\n this.adaptHeight();\n },\n adaptHeight() {\n this.$refs.dsdProperties.style['flex'] = this.expanded ? \"0 0 100%\": `0 0 ${this.restrictedHeight}px`;\n this.$refs.dsdProperties.style['max-height'] = this.expanded ? \"100%\": `${this.restrictedHeight}px`;\n }\n },\n mounted() {\n this.initialHeight = this.$refs.dsdProperties.clientHeight;\n this.$refs.overlay.style.bottom = (this.$refs.dsdProperties.offsetHeight - this.$refs.dsdProperties.clientHeight) + \"px\";\n if (this.getDatasetDescriptionHeight >= this.initialHeight) {\n this.restrictedHeight = this.getDatasetDescriptionHeight;\n this.toggleExpanded();\n } else if ((this.getDatasetDescriptionHeight >= this.restrictedHeight) && (this.getDatasetDescriptionHeight <= this.initialHeight)) {\n this.restrictedHeight = this.getDatasetDescriptionHeight;\n }\n this.adaptHeight();\n }\n};\n</script>\n\n<style scoped lang=\"scss\">\n.arrow {\n cursor: pointer;\n}\n\n.additional-information-overlay {\n width: 100%;\n height: 100px;\n position: absolute;\n left: 0;\n background: linear-gradient(to bottom, rgba(0,0,0,0) 0, white 100%);\n pointer-events: none;\n}\ntable {\n background: #F5F5F5;\n}\n\n</style>\n"],"names":["_sfc_main","DatasetseriesDetailsProperty","mapGetters","dcatDatasetseriesSchema","_hoisted_1","_hoisted_2","_openBlock","_createElementBlock","_createElementVNode","_renderSlot","_ctx","_createVNode","_component_dataset_details_feature_header","$data","$options","_withDirectives","_hoisted_3","_hoisted_4","_Fragment","_renderList","name","index","_createBlock","_component_datasetseries_details_property","_a","_b","_c","_d","_e","_f","_g","_hoisted_5","_vShow","_component_pv_show_more"],"mappings":";;;;;;AAgDA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,8BAAAC;AAAA,EACD;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,aAAa;AAAA,MACb,eAAe;AAAA,MACf,kBAAkB;AAAA,MAClB,UAAU;AAAA;EAEb;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,wBAAwB;AAAA,MACpC;AAAA,IACF,CAAC;AAAA,IACD,cAAc;AACZ,aAAOC,EAAuB;AAAA,IAC/B;AAAA,IACD,cAAc;AACZ,aAAO;AAAA,QACH;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA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OAAM;AAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatasetseriesDetailsProperties.vue2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { truncate, getTranslationFor } from '../../utils/helpers';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
translate: {
|
|
5
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
name: StringConstructor;
|
|
9
|
+
propertyFields: StringConstructor;
|
|
10
|
+
itemstyles: StringConstructor;
|
|
11
|
+
track: StringConstructor;
|
|
12
|
+
preTransform: FunctionConstructor;
|
|
13
|
+
transform: FunctionConstructor;
|
|
14
|
+
}>, {}, {}, {
|
|
15
|
+
labelDisplay(): any;
|
|
16
|
+
data(): any;
|
|
17
|
+
preparedFields(): string[][] | undefined;
|
|
18
|
+
preparedTrack(): string[] | undefined;
|
|
19
|
+
value(): any;
|
|
20
|
+
show(): boolean;
|
|
21
|
+
getProperty: import('vuex').Computed;
|
|
22
|
+
}, {
|
|
23
|
+
isNil: (value: any) => value is null | undefined;
|
|
24
|
+
isArray: (value?: any) => value is any[];
|
|
25
|
+
truncate: typeof truncate;
|
|
26
|
+
getTranslationFor: typeof getTranslationFor;
|
|
27
|
+
dateValue(): any;
|
|
28
|
+
prepareObject(object: any): {
|
|
29
|
+
key: string;
|
|
30
|
+
value: any;
|
|
31
|
+
}[];
|
|
32
|
+
interpretTranslateKey(key: any, prefix: any): any;
|
|
33
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
translate: {
|
|
36
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
name: StringConstructor;
|
|
40
|
+
propertyFields: StringConstructor;
|
|
41
|
+
itemstyles: StringConstructor;
|
|
42
|
+
track: StringConstructor;
|
|
43
|
+
preTransform: FunctionConstructor;
|
|
44
|
+
transform: FunctionConstructor;
|
|
45
|
+
}>> & Readonly<{}>, {
|
|
46
|
+
translate: string | unknown[];
|
|
47
|
+
}, {}, {
|
|
48
|
+
Tooltip: any;
|
|
49
|
+
AppLink: any;
|
|
50
|
+
ValuesList: any;
|
|
51
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import w from "../../widgets/AppLink.vue.mjs";
|
|
2
|
+
import x from "../../widgets/Tooltip.vue.mjs";
|
|
3
|
+
import { isNil as c, isArray as g } from "lodash-es";
|
|
4
|
+
import { showByType as N } from "./typeCheckers.mjs";
|
|
5
|
+
import S from "./ValuesList.vue.mjs";
|
|
6
|
+
import { mapGetters as j } from "vuex";
|
|
7
|
+
import b from "../../filters/dateFilters.mjs";
|
|
8
|
+
import { getTranslationFor as _, truncate as V } from "../../utils/helpers.mjs";
|
|
9
|
+
import { resolveComponent as f, openBlock as a, createElementBlock as i, createElementVNode as k, createVNode as y, withCtx as T, createTextVNode as o, toDisplayString as d, createCommentVNode as u, Fragment as v, renderList as D, createBlock as A } from "vue";
|
|
10
|
+
import "./DatasetseriesDetailsProperty.vue2.mjs";
|
|
11
|
+
import B from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
12
|
+
const E = {
|
|
13
|
+
name: "DatasetseriesDetailsProperty",
|
|
14
|
+
props: {
|
|
15
|
+
type: String,
|
|
16
|
+
translate: {
|
|
17
|
+
type: [String, Array],
|
|
18
|
+
default: void 0
|
|
19
|
+
},
|
|
20
|
+
name: String,
|
|
21
|
+
propertyFields: String,
|
|
22
|
+
itemstyles: String,
|
|
23
|
+
track: String,
|
|
24
|
+
preTransform: Function,
|
|
25
|
+
transform: Function
|
|
26
|
+
},
|
|
27
|
+
components: {
|
|
28
|
+
Tooltip: x,
|
|
29
|
+
AppLink: w,
|
|
30
|
+
ValuesList: S
|
|
31
|
+
},
|
|
32
|
+
computed: {
|
|
33
|
+
...j("datasetseriesDetails", ["getProperty"]),
|
|
34
|
+
labelDisplay() {
|
|
35
|
+
const e = ["message.tooltip.datasetDetails", "message.metadata"];
|
|
36
|
+
let t;
|
|
37
|
+
return this.translate ? (t = this.translate.split(","), t.length === 1 && t.push(t[0])) : t = [this.name, this.name], t.map(
|
|
38
|
+
(r, l) => this.interpretTranslateKey(r, e[l])
|
|
39
|
+
);
|
|
40
|
+
},
|
|
41
|
+
data() {
|
|
42
|
+
let e = this.getProperty(this.name) || [];
|
|
43
|
+
return this.name === "languages" && Array.isArray(e) && (e = [...e].sort((t, r) => t.id < r.id ? -1 : t.id > r.id ? 1 : 0)), e;
|
|
44
|
+
},
|
|
45
|
+
preparedFields() {
|
|
46
|
+
var e;
|
|
47
|
+
return (e = this.propertyFields) == null ? void 0 : e.split(",").map((t) => t.split(":"));
|
|
48
|
+
},
|
|
49
|
+
preparedTrack() {
|
|
50
|
+
var e;
|
|
51
|
+
return (e = this.track) == null ? void 0 : e.split(",");
|
|
52
|
+
},
|
|
53
|
+
value() {
|
|
54
|
+
let e = this.data;
|
|
55
|
+
switch (this.preTransform && (e = this.preTransform(e)), this.type) {
|
|
56
|
+
case "date":
|
|
57
|
+
e = b.formatEU(e);
|
|
58
|
+
break;
|
|
59
|
+
case "links":
|
|
60
|
+
e = this.data.map((t) => {
|
|
61
|
+
if (t) {
|
|
62
|
+
const r = typeof t == "string" ? t : t.resource, l = typeof t == "string" ? t : t.label || t.id || t.resource;
|
|
63
|
+
return { link: r, label: l };
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
break;
|
|
67
|
+
case "object":
|
|
68
|
+
e = this.prepareObject(this.data);
|
|
69
|
+
break;
|
|
70
|
+
case "objects":
|
|
71
|
+
e = this.data.map((t) => this.prepareObject(t));
|
|
72
|
+
break;
|
|
73
|
+
case "translation":
|
|
74
|
+
e = _(e, this.$route.query.locale, ["en"]);
|
|
75
|
+
break;
|
|
76
|
+
default:
|
|
77
|
+
this.type.startsWith("first") && (e = this.data[0]);
|
|
78
|
+
}
|
|
79
|
+
return this.transform && (e = this.transform(e)), e;
|
|
80
|
+
},
|
|
81
|
+
show() {
|
|
82
|
+
return N(this.type, this.data);
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
methods: {
|
|
86
|
+
isNil: c,
|
|
87
|
+
isArray: g,
|
|
88
|
+
truncate: V,
|
|
89
|
+
getTranslationFor: _,
|
|
90
|
+
dateValue() {
|
|
91
|
+
return b.formatEU(this.value);
|
|
92
|
+
},
|
|
93
|
+
prepareObject(e) {
|
|
94
|
+
let t = this.preparedFields ?? Object.keys(e).map((r) => [r]);
|
|
95
|
+
return t = t.filter((r) => !c(e[r[0]])), t.map((r) => {
|
|
96
|
+
let l = e[r[0]];
|
|
97
|
+
g(l) || (l = [l]);
|
|
98
|
+
const m = { key: r[0], value: l };
|
|
99
|
+
return r[1] !== void 0 && (m.type = r[1]), r[2] !== void 0 && (m.translation = r[2]), m;
|
|
100
|
+
});
|
|
101
|
+
},
|
|
102
|
+
interpretTranslateKey(e, t) {
|
|
103
|
+
return e === "" ? "" : e.startsWith("/") ? `${this.i18n.global.t(e.substring(1))}:` : e.startsWith("'") ? e.substring(1, e.length - 1) : `${this.i18n.global.t(`${t}.${e}`)}:`;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}, O = { key: 0 }, P = { 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 };
|
|
107
|
+
function H(e, t, r, l, m, s) {
|
|
108
|
+
const F = f("tooltip"), K = f("app-link"), h = f("values-list");
|
|
109
|
+
return s.show ? (a(), i("tr", O, [
|
|
110
|
+
k("td", P, [
|
|
111
|
+
y(F, {
|
|
112
|
+
title: s.labelDisplay[0]
|
|
113
|
+
}, {
|
|
114
|
+
default: T(() => [
|
|
115
|
+
o(d(s.labelDisplay[1]), 1)
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["title"])
|
|
119
|
+
]),
|
|
120
|
+
t[2] || (t[2] = o()),
|
|
121
|
+
["string", "date", "number", "first:number", "translation"].includes(r.type) ? (a(), i("td", C, d(s.value), 1)) : u("", !0),
|
|
122
|
+
t[3] || (t[3] = o()),
|
|
123
|
+
r.type === "uri" ? (a(), i("td", L, [
|
|
124
|
+
k("a", { href: s.value }, d(s.value), 9, W)
|
|
125
|
+
])) : u("", !0),
|
|
126
|
+
t[4] || (t[4] = o()),
|
|
127
|
+
r.type === "links" ? (a(), i("td", I, [
|
|
128
|
+
(a(!0), i(v, null, D(s.value, (n, p) => (a(), i("div", { key: p }, [
|
|
129
|
+
r.name === "identifiers" ? (a(), i("div", U, d(n.label), 1)) : u("", !0),
|
|
130
|
+
t[0] || (t[0] = o()),
|
|
131
|
+
!s.isNil(n) && n.link && r.name !== "languages" && r.name != "identifiers" ? (a(), A(K, {
|
|
132
|
+
key: 1,
|
|
133
|
+
to: n.link
|
|
134
|
+
}, {
|
|
135
|
+
default: T(() => [
|
|
136
|
+
o(d(s.truncate(n.label, 75)), 1)
|
|
137
|
+
]),
|
|
138
|
+
_: 2
|
|
139
|
+
}, 1032, ["to"])) : u("", !0),
|
|
140
|
+
t[1] || (t[1] = o()),
|
|
141
|
+
!s.isNil(n) && !n.link || r.name === "languages" && r.name != "identifiers" ? (a(), i("div", q, d(s.truncate(n.label, 75)), 1)) : u("", !0)
|
|
142
|
+
]))), 128))
|
|
143
|
+
])) : u("", !0),
|
|
144
|
+
t[5] || (t[5] = o()),
|
|
145
|
+
r.type === "object" ? (a(), i("td", G, [
|
|
146
|
+
y(h, {
|
|
147
|
+
values: s.value,
|
|
148
|
+
interpretTranslateKey: s.interpretTranslateKey,
|
|
149
|
+
itemstyles: r.itemstyles
|
|
150
|
+
}, null, 8, ["values", "interpretTranslateKey", "itemstyles"])
|
|
151
|
+
])) : u("", !0),
|
|
152
|
+
t[6] || (t[6] = o()),
|
|
153
|
+
r.type === "objects" ? (a(), i("td", z, [
|
|
154
|
+
(a(!0), i(v, null, D(s.value, (n, p) => (a(), i("div", { key: p }, [
|
|
155
|
+
y(h, {
|
|
156
|
+
values: n,
|
|
157
|
+
interpretTranslateKey: s.interpretTranslateKey,
|
|
158
|
+
itemstyles: r.itemstyles
|
|
159
|
+
}, null, 8, ["values", "interpretTranslateKey", "itemstyles"])
|
|
160
|
+
]))), 128))
|
|
161
|
+
])) : u("", !0)
|
|
162
|
+
])) : u("", !0);
|
|
163
|
+
}
|
|
164
|
+
const st = /* @__PURE__ */ B(E, [["render", H], ["__scopeId", "data-v-1d0fa328"]]);
|
|
165
|
+
export {
|
|
166
|
+
st as default
|
|
167
|
+
};
|
|
168
|
+
//# sourceMappingURL=DatasetseriesDetailsProperty.vue.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatasetseriesDetailsProperty.vue.mjs","sources":["../../../lib/datasetDetails/properties/DatasetseriesDetailsProperty.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=\"['string', 'date', 'number', 'first:number', 'translation'].includes(type)\"\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: \"DatasetseriesDetailsProperty\",\n props: {\n type: String,\n translate: {\n type: [String, Array],\n default: undefined,\n },\n name: String,\n propertyFields: String,\n itemstyles: String,\n track: String,\n preTransform: Function,\n transform: Function,\n },\n components: {\n Tooltip,\n AppLink,\n ValuesList,\n },\n computed: {\n ...mapGetters(\"datasetseriesDetails\", [\"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\" && Array.isArray(d)) {\n d = [...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 = 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 let keys = this.preparedFields ?? Object.keys(object).map((key) => [key]);\n keys = keys.filter((key) => !isNil(object[key[0]]));\n return keys.map((key) => {\n let value = object[key[0]];\n if (!isArray(value)) value = [value];\n const result = { key: key[0], value };\n if (key[1] !== undefined) result.type = key[1];\n if (key[2] !== undefined) result.translation = key[2];\n return result;\n });\n },\n interpretTranslateKey(key, prefix) {\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","getTranslationFor","showByType","isNil","isArray","truncate","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":";;;;;;;;;;;AAyDA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO;AAAA,IACL,MAAM;AAAA,IACN,WAAW;AAAA,MACT,MAAM,CAAC,QAAQ,KAAK;AAAA,MACpB,SAAS;AAAA,IACV;AAAA,IACD,MAAM;AAAA,IACN,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,cAAc;AAAA,IACd,WAAW;AAAA,EACZ;AAAA,EACD,YAAY;AAAA,IACV,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,YAAAC;AAAA,EACD;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,wBAAwB,CAAC,aAAa,CAAC;AAAA,IACrD,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;AAAA;IAE7C;AAAA,IACD,OAAO;AACL,UAAIC,IAAI,KAAK,YAAY,KAAK,IAAI,KAAK;AACvC,aAAI,KAAK,SAAS,eAAe,MAAM,QAAQA,CAAC,MAC9CA,IAAI,CAAC,GAAGA,CAAC,EAAE,KAAK,CAACC,GAAGC,MACdD,EAAE,KAAKC,EAAE,KAAW,KACpBD,EAAE,KAAKC,EAAE,KAAW,IACjB,CACR,IAEIF;AAAA,IACR;AAAA,IACD,iBAAiB;;AACf,cAAOG,IAAA,KAAK,mBAAL,gBAAAA,EAAqB,M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tB,KAAC;AAAA,QACrCyB,EAIEe,GAAA;AAAA,UAHC,QAAQzC;AAAA,UACR,uBAAuBsB,EAAqB;AAAA,UAC5C,YAAYM,EAAU;AAAA;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatasetseriesDetailsProperty.vue2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -228,3 +228,41 @@ export declare const dcatDataserviceSchema: () => {
|
|
|
228
228
|
fields: string;
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
|
+
export declare const dcatDatasetseriesSchema: () => {
|
|
232
|
+
publisher: {
|
|
233
|
+
type: string;
|
|
234
|
+
fields: string;
|
|
235
|
+
};
|
|
236
|
+
issued: {
|
|
237
|
+
type: string;
|
|
238
|
+
translate: string;
|
|
239
|
+
};
|
|
240
|
+
modified: {
|
|
241
|
+
type: string;
|
|
242
|
+
translate: string;
|
|
243
|
+
};
|
|
244
|
+
temporal: {
|
|
245
|
+
type: string;
|
|
246
|
+
fields: string;
|
|
247
|
+
};
|
|
248
|
+
spatial_resource: {
|
|
249
|
+
type: string;
|
|
250
|
+
fields: string;
|
|
251
|
+
};
|
|
252
|
+
contact_point: {
|
|
253
|
+
type: string;
|
|
254
|
+
fields: string;
|
|
255
|
+
};
|
|
256
|
+
spatial: {
|
|
257
|
+
type: string;
|
|
258
|
+
fields: string;
|
|
259
|
+
};
|
|
260
|
+
accrual_periodicity: {
|
|
261
|
+
type: string;
|
|
262
|
+
fields: string;
|
|
263
|
+
};
|
|
264
|
+
applicable_legislation: {
|
|
265
|
+
type: string;
|
|
266
|
+
translate: string;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
@@ -52,7 +52,7 @@ const a = `releaseDate,modificationDate,creator,landingPages,sources,
|
|
|
52
52
|
name: (e == null ? void 0 : e.name) ?? (e == null ? void 0 : e.label)
|
|
53
53
|
}) },
|
|
54
54
|
temporalResolution: { type: "string" }
|
|
55
|
-
}),
|
|
55
|
+
}), l = () => ({
|
|
56
56
|
politicalGeocodingLevelURI: { type: "objects", fields: "label,resource:link" },
|
|
57
57
|
politicalGeocodingURI: { type: "objects", fields: "label,resource:link" },
|
|
58
58
|
availability: { type: "object", translate: "availabilityDE,availability", fields: "label,resource:link" },
|
|
@@ -65,18 +65,29 @@ const a = `releaseDate,modificationDate,creator,landingPages,sources,
|
|
|
65
65
|
contributor: { type: "objects", fields: "name,type,homepage,email,resource" },
|
|
66
66
|
originator: { type: "objects", fields: "name,type,homepage,email,resource" },
|
|
67
67
|
maintainer: { type: "objects", fields: "name,type,homepage,email,resource" }
|
|
68
|
-
}),
|
|
68
|
+
}), n = () => ({
|
|
69
69
|
catalog: { type: "translation", fields: "title" },
|
|
70
70
|
publisher: { type: "object", fields: "name,email,homepage:link" },
|
|
71
71
|
contact_point: { type: "objects", fields: "email" },
|
|
72
72
|
access_right: { type: "object", fields: "resource" },
|
|
73
73
|
endpoint_url: { type: "links", translate: ",endpoint_url" },
|
|
74
74
|
format: { type: "object", fields: "label,resource:link_blank" }
|
|
75
|
+
}), o = () => ({
|
|
76
|
+
publisher: { type: "object", fields: "type,name,resource:link" },
|
|
77
|
+
issued: { type: "date", translate: "created" },
|
|
78
|
+
modified: { type: "date", translate: "updated" },
|
|
79
|
+
temporal: { type: "objects", fields: "gte:date,lte:date" },
|
|
80
|
+
spatial_resource: { type: "links", fields: "resource:link" },
|
|
81
|
+
contact_point: { type: "objects", fields: "name,email,telephone,address" },
|
|
82
|
+
spatial: { type: "objects", fields: "coordinates,type" },
|
|
83
|
+
accrual_periodicity: { type: "object", fields: "label:label,resource:link" },
|
|
84
|
+
applicable_legislation: { type: "links", translate: "legalBasis,applicableLegislation" }
|
|
75
85
|
});
|
|
76
86
|
export {
|
|
77
|
-
|
|
87
|
+
n as dcatDataserviceSchema,
|
|
88
|
+
o as dcatDatasetseriesSchema,
|
|
78
89
|
i as dcatDeFields,
|
|
79
|
-
|
|
90
|
+
l as dcatDeSchema,
|
|
80
91
|
a as dcatFields,
|
|
81
92
|
s as dcatSchema
|
|
82
93
|
};
|
|
@@ -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"],"names":["dcatFields","dcatDeFields","dcatSchema","value","dcatDeSchema","dcatDataserviceSchema"],"mappings":"AAAO,MAAMA,IAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kFAQbC,IAAe;AAAA;AAAA,mDAqDfC,IAAa,CAAC,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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AAM,eAAe,QAAQ,QAAO;AAAA,EAC9C,WAAW,EAAC,MAAM,UAAU,QAAQ,2BAA0B;AAAA,EAC9D,eAAe,EAAC,MAAM,WAAW,QAAQ,QAAO;AAAA,EAChD,cAAc,EAAC,MAAM,UAAU,QAAQ,WAAU;AAAA,EACjD,cAAc,EAAC,MAAM,SAAS,WAAU,gBAAe;AAAA,EACvD,QAAQ,EAAC,MAAM,UAAU,QAAQ,4BAA2B;AAChE;"}
|
|
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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AQ,mBAAkB;AAAA,EACrD,qBAAqB,EAAC,MAAM,UAAU,QAAQ,4BAA2B;AAAA,EACzE,wBAAwB,EAAC,MAAM,SAAS,WAAW,mCAAkC;AACzF;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -99,6 +99,8 @@ import { default as DatasetDetailsLinkedMetricsButton } from './datasetDetails/D
|
|
|
99
99
|
import { default as DatasetDetailsProperties } from './datasetDetails/properties/DatasetDetailsProperties';
|
|
100
100
|
import { default as DataserviceDetailsProperties } from './datasetDetails/properties/DataserviceDetailsProperties';
|
|
101
101
|
import { default as DataserviceDetailsProperty } from './datasetDetails/properties/DataserviceDetailsProperty';
|
|
102
|
+
import { default as DatasetseriesDetailsProperties } from './datasetDetails/properties/DatasetseriesDetailsProperties';
|
|
103
|
+
import { default as DatasetseriesDetailsProperty } from './datasetDetails/properties/DatasetseriesDetailsProperty';
|
|
102
104
|
import { default as DatasetDetailsQuality } from './datasetDetails/DatasetDetailsQuality';
|
|
103
105
|
import { default as DatasetDetailsShareButton } from './datasetDetails/DatasetDetailsShareButton';
|
|
104
106
|
import { default as DatasetDetailsSimilarDatasets } from './datasetDetails/DatasetDetailsSimilarDatasets';
|
|
@@ -148,7 +150,7 @@ import { default as ResourceDetailsLinkedDataButton } from './widgets/ResourceDe
|
|
|
148
150
|
import { default as Tooltip } from './widgets/Tooltip';
|
|
149
151
|
import { configSchema } from './configurations/config-schema';
|
|
150
152
|
|
|
151
|
-
export { Search, inputDefinitions, configSchema, vueKeycloak, bulkDownloadCorsProxyService, corsProxyService, uploadService, runtimeConfigurationService, datasetService, catalogService, gazetteerService, getResponseData, store, decode, truncate, getImg, getCountryFlagImg, getTranslationFor, getFacetTranslation, fileTypes, dateFilters, usePiwikSuspendFilter, useRouteMetaBreadcrumbs, configureModules, Auth, CataloguesFacets, CatalogPage, Catalogues, DatasetCitationModal, DatasetCitationTable, AutocompleteInput, ConditionalInput, DataFetchingComponent, Dropup, FileUpload, InfoSlot, LanguageSelector, Navigation, UniqueIdentifierInput, CatalogueOverview, DatasetOverview, DistributionOverview, PropertyEntry, DistOverview, DraftsPage, InputPage, LinkedDataViewer, OverviewPage, UserCataloguesPage, CatalogueMQA, UserProfilePage, DataProviderInterface, DpiMenu, DistributionActions, DistributionDownload, DistributionDownloadAs, DistributionDropdownDownload, DistributionOptionsDropdown, DistributionPreview, LinkedDataButtonsDropdown, DistributionVisualizeButton, DistributionDescription, DistributionDetails, DistributionExpand, DistributionExpandedContent, DistributionVisibleContent, Distribution, DistributionAdded, DistributionDownloadAsModal, DistributionFormat, Distributions, DistributionsHeader, DownloadAllDistributions, FadingDistributionOverlay, DatasetDetailsCategoriesKey, DatasetDetailsDataServices, DatasetDetailsFeatureHeader, DatasetDetailsFeatures, DatasetDetailsIsUsedBy, DatasetDetailsKeywords, DatasetDetailsMap, DatasetDetailsPages, DatasetDetailsRelations, DatasetDetailsSubject, DatasetDetailsVisualisations, DatasetDetailsHeader, DatasetDetailsHeaderCatalogue, DatasetDetailsHeaderTitle, DatasetDetailsNavigation, DatasetDetailsNavigationLinks, DatasetDetailsNavigationPage, DatasetDetailsNavigationPages, DatasetDetailsHvdThemes, AppMarkdownContent, DatasetDetails, DatasetDetailsActivityStream, DatasetDetailsBanners, DatasetDetailsCategories, CSVLinter, DatasetDetailsDataset, DatasetDetailsDescription, DatasetDetailsFeedbackButton, DatasetDetailsLinkedMetricsButton, DatasetDetailsProperties, DataserviceDetailsProperties, DataserviceDetailsProperty, DatasetDetailsQuality, DatasetDetailsShareButton, DatasetDetailsSimilarDatasets, DatasetDetailsSkeleton, EmbedDataset, EmbedDatasetSnippet, DatasetDate, Datasets, DatasetList, DatasetsFilters, DatasetsFiltersTabs, DatasetsTopControls, CatalogDetailsFacet, DatasetsFacets, DatasetsFacetsItem, DatasetsMapFacet, SettingsFacet, ExpandableSelectFacet, Facet, FacetTitle, SelectedFacetsOverview, RadioFacet, MapBasic, MapBoundsReceiver, MapBoundsSender, AppConfirmationDialog, AppSnackbar, AppToast, SubNavigation, Imprint, NotFound, PrivacyPolicy, SparqlSearch, PvBadge, PvDataInfoBox, PvDataInfoBoxDescription, PvDataInfoBoxFooter, PvDataInfoBoxFormats, AppLink, Dropdown, Pagination, PropertyValue, PvBanner, PvButton, PvShowMore, ResourceAccessPopup, ResourceDetailsLinkedDataButton, Tooltip, };
|
|
153
|
+
export { Search, inputDefinitions, configSchema, vueKeycloak, bulkDownloadCorsProxyService, corsProxyService, uploadService, runtimeConfigurationService, datasetService, catalogService, gazetteerService, getResponseData, store, decode, truncate, getImg, getCountryFlagImg, getTranslationFor, getFacetTranslation, fileTypes, dateFilters, usePiwikSuspendFilter, useRouteMetaBreadcrumbs, configureModules, Auth, CataloguesFacets, CatalogPage, Catalogues, DatasetCitationModal, DatasetCitationTable, AutocompleteInput, ConditionalInput, DataFetchingComponent, Dropup, FileUpload, InfoSlot, LanguageSelector, Navigation, UniqueIdentifierInput, CatalogueOverview, DatasetOverview, DistributionOverview, PropertyEntry, DistOverview, DraftsPage, InputPage, LinkedDataViewer, OverviewPage, UserCataloguesPage, CatalogueMQA, UserProfilePage, DataProviderInterface, DpiMenu, DistributionActions, DistributionDownload, DistributionDownloadAs, DistributionDropdownDownload, DistributionOptionsDropdown, DistributionPreview, LinkedDataButtonsDropdown, DistributionVisualizeButton, DistributionDescription, DistributionDetails, DistributionExpand, DistributionExpandedContent, DistributionVisibleContent, Distribution, DistributionAdded, DistributionDownloadAsModal, DistributionFormat, Distributions, DistributionsHeader, DownloadAllDistributions, FadingDistributionOverlay, DatasetDetailsCategoriesKey, DatasetDetailsDataServices, DatasetDetailsFeatureHeader, DatasetDetailsFeatures, DatasetDetailsIsUsedBy, DatasetDetailsKeywords, DatasetDetailsMap, DatasetDetailsPages, DatasetDetailsRelations, DatasetDetailsSubject, DatasetDetailsVisualisations, DatasetDetailsHeader, DatasetDetailsHeaderCatalogue, DatasetDetailsHeaderTitle, DatasetDetailsNavigation, DatasetDetailsNavigationLinks, DatasetDetailsNavigationPage, DatasetDetailsNavigationPages, DatasetDetailsHvdThemes, AppMarkdownContent, DatasetDetails, DatasetDetailsActivityStream, DatasetDetailsBanners, DatasetDetailsCategories, CSVLinter, DatasetDetailsDataset, DatasetDetailsDescription, DatasetDetailsFeedbackButton, DatasetDetailsLinkedMetricsButton, DatasetDetailsProperties, DataserviceDetailsProperties, DataserviceDetailsProperty, DatasetseriesDetailsProperties, DatasetseriesDetailsProperty, DatasetDetailsQuality, DatasetDetailsShareButton, DatasetDetailsSimilarDatasets, DatasetDetailsSkeleton, EmbedDataset, EmbedDatasetSnippet, DatasetDate, Datasets, DatasetList, DatasetsFilters, DatasetsFiltersTabs, DatasetsTopControls, CatalogDetailsFacet, DatasetsFacets, DatasetsFacetsItem, DatasetsMapFacet, SettingsFacet, ExpandableSelectFacet, Facet, FacetTitle, SelectedFacetsOverview, RadioFacet, MapBasic, MapBoundsReceiver, MapBoundsSender, AppConfirmationDialog, AppSnackbar, AppToast, SubNavigation, Imprint, NotFound, PrivacyPolicy, SparqlSearch, PvBadge, PvDataInfoBox, PvDataInfoBoxDescription, PvDataInfoBoxFooter, PvDataInfoBoxFormats, AppLink, Dropdown, Pagination, PropertyValue, PvBanner, PvButton, PvShowMore, ResourceAccessPopup, ResourceDetailsLinkedDataButton, Tooltip, };
|
|
152
154
|
export * as helpers from './utils/helpers';
|
|
153
155
|
export { defineUserConfig, type Config, type ResolvedConfig } from './configurations/config-schema';
|
|
154
156
|
export { useRuntimeEnv } from './composables/useRuntimeEnv';
|