@piveau/piveau-hub-ui-modules 4.7.9 → 4.7.11
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/datasetDetails/distributions/distributionActions/DistributionPreview.vue.mjs +11 -10
- package/dist/datasetDetails/distributions/distributionActions/DistributionPreview.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsPages.vue.mjs +59 -59
- package/dist/datasetDetails/features/DatasetDetailsPages.vue.mjs.map +1 -1
- package/dist/facets/SelectedFacetsOverview.vue.d.ts +1 -0
- package/dist/facets/SelectedFacetsOverview.vue.mjs +45 -30
- package/dist/facets/SelectedFacetsOverview.vue.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import k from "../../../widgets/AppLink.vue.mjs";
|
|
2
2
|
import { has as l, isNil as o } from "lodash-es";
|
|
3
3
|
import { mapGetters as m } from "vuex";
|
|
4
|
-
import { openBlock as r, createElementBlock as
|
|
4
|
+
import { openBlock as r, createElementBlock as f, withModifiers as g, normalizeClass as w, toDisplayString as c } from "vue";
|
|
5
5
|
import "./DistributionPreview.vue2.mjs";
|
|
6
6
|
import h from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
7
|
const L = {
|
|
8
8
|
name: "DistributionPreview",
|
|
9
9
|
components: {
|
|
10
|
-
AppLink:
|
|
10
|
+
AppLink: k
|
|
11
11
|
},
|
|
12
12
|
props: [
|
|
13
13
|
"showTooltipVisualiseButton",
|
|
@@ -21,6 +21,7 @@ const L = {
|
|
|
21
21
|
var e, a, t;
|
|
22
22
|
return {
|
|
23
23
|
visualisationLinkFormats: [
|
|
24
|
+
"pdf",
|
|
24
25
|
"csv",
|
|
25
26
|
"xlsx",
|
|
26
27
|
"xls"
|
|
@@ -81,24 +82,24 @@ const L = {
|
|
|
81
82
|
class: "d-flex justify-content-between btn btn-sm p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button text-opacity-0"
|
|
82
83
|
};
|
|
83
84
|
function y(e, a, t, i, s, n) {
|
|
84
|
-
return r(),
|
|
85
|
-
n.showVisualisationLink(t.distribution) ? (r(),
|
|
85
|
+
return r(), f("div", u, [
|
|
86
|
+
n.showVisualisationLink(t.distribution) ? (r(), f("a", {
|
|
86
87
|
key: 0,
|
|
87
|
-
onClick: a[0] || (a[0] = g((
|
|
88
|
+
onClick: a[0] || (a[0] = g((d) => t.openIfValidUrl(!t.isUrlInvalid(t.getVisualisationLink(t.distribution)), t.previewLinkCallback, t.distribution, d), ["prevent"])),
|
|
88
89
|
class: w([{ disabled: t.isUrlInvalid(t.getVisualisationLink(t.distribution)) }, "d-flex justify-content-between btn btn-sm btn-primary p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button"]),
|
|
89
90
|
ref: "previewLink",
|
|
90
91
|
href: t.getVisualisationLink(t.distribution),
|
|
91
92
|
target: "_blank"
|
|
92
|
-
},
|
|
93
|
+
}, c(e.$t("message.datasetDetails.preview")), 11, b)) : n.showGeoLink(t.distribution) ? (r(), f("a", {
|
|
93
94
|
key: 1,
|
|
94
|
-
onClick: a[1] || (a[1] = (
|
|
95
|
+
onClick: a[1] || (a[1] = (d) => e.$emit("track-link", n.getGeoLink, "link")),
|
|
95
96
|
href: n.getGeoLink,
|
|
96
97
|
target: "_blank",
|
|
97
98
|
class: "d-flex justify-content-between btn btn-sm btn-primary p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button"
|
|
98
|
-
},
|
|
99
|
+
}, c(e.$t("message.datasetDetails.preview")), 9, p)) : (r(), f("span", v, c(e.$t("message.datasetDetails.preview")), 1))
|
|
99
100
|
]);
|
|
100
101
|
}
|
|
101
|
-
const G = /* @__PURE__ */ h(L, [["render", y], ["__scopeId", "data-v-
|
|
102
|
+
const G = /* @__PURE__ */ h(L, [["render", y], ["__scopeId", "data-v-6df12ff5"]]);
|
|
102
103
|
export {
|
|
103
104
|
G as default
|
|
104
105
|
};
|
package/dist/datasetDetails/distributions/distributionActions/DistributionPreview.vue.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributionPreview.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionPreview.vue"],"sourcesContent":["<template>\n <div class=\"position-relative d-inline-block ml-1 mb-1\">\n <a @click.prevent=\"openIfValidUrl(!isUrlInvalid(getVisualisationLink(distribution)), previewLinkCallback, distribution, $event)\" :class=\"{ disabled: isUrlInvalid(getVisualisationLink(distribution)) }\" ref=\"previewLink\" class=\"d-flex justify-content-between btn btn-sm btn-primary p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button\"\n :href=\"getVisualisationLink(distribution)\"\n target=\"_blank\"\n v-if=\"showVisualisationLink(distribution)\">\n {{ $t('message.datasetDetails.preview') }}\n </a>\n <a @click=\"$emit('track-link', getGeoLink, 'link')\"\n :href=\"getGeoLink\"\n target=\"_blank\"\n v-else-if=\"showGeoLink(distribution)\"\n class=\"d-flex justify-content-between btn btn-sm btn-primary p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button\">\n {{ $t('message.datasetDetails.preview') }}\n </a>\n <span v-else class=\"d-flex justify-content-between btn btn-sm p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button text-opacity-0\">{{ $t('message.datasetDetails.preview') }}</span>\n </div>\n</template>\n<script>\nimport AppLink from \"../../../widgets/AppLink\";\nimport {has, isNil} from \"lodash\";\nimport {mapGetters} from \"vuex\";\n\nexport default {\n name: \"DistributionPreview\",\n components: {\n AppLink,\n },\n props: [\n 'showTooltipVisualiseButton',\n 'isUrlInvalid',\n 'getVisualisationLink',\n 'distribution',\n 'openIfValidUrl',\n 'previewLinkCallback'\n ],\n data() {\n return {\n visualisationLinkFormats: [\n 'csv',\n 'xlsx',\n 'xls',\n ],\n geoLinkFormats: {\n wms: 'WMS',\n geojson: 'GeoJSON',\n fiware_cb: 'fiware_cb',\n 'fiware-cb': 'fiware_cb',\n },\n geoLink: this.$env?.datasetDetails?.distributions?.geoLink,\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getCatalog',\n 'getID'\n ]),\n getGeoLink() {\n const format = this.distribution.format.label;\n let f = format.toLowerCase();\n // Use correct Case Sensitive strings\n f = this.geoLinkFormats[f];\n if (this.geoLink) {\n const geoLinkVariables = {\n catalog: this.getCatalog.id,\n dataset: this.getID,\n distribution: this.distribution.id,\n type: f,\n lang: this.$route.query.locale,\n accessUrl: this.distribution?.accessUrl[0],\n }\n // Inject variables into geo link\n for (let linkVariable in geoLinkVariables) {\n this.geoLink = this.geoLink.replace(`{${linkVariable}}`, geoLinkVariables[linkVariable]);\n }\n // Return Geo Visualisation Link\n return this.geoLink;\n // return `/geo-viewer/?dataset=${distributionID}&type=${f}&lang=${this.$route.query.locale}`;\n }\n // Return default Geo Visualisation Link if no link in user-config provided\n return `/geo-viewer/?catalog=${this.getCatalog.id}&dataset=${this.getID}&distribution=${this.distribution.id}&type=${f}&lang=${this.$route.query.locale}`;\n }\n },\n methods: {\n showOptionsDropdown(distribution) {\n return this.showVisualisationLink(distribution) || this.showGeoLink(distribution);\n },\n showGeoLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution.format.label) || !has(distribution, 'id') || isNil(distribution.id) || !has(distribution, 'accessUrl[0]')) return false;\n const f = distribution.format.label.toLowerCase();\n return Object.keys(this.geoLinkFormats).includes(f);\n },\n showVisualisationLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution?.format?.label)\n || (isNil(distribution?.downloadUrls[0]) && isNil(distribution?.accessUrl[0]))) return false;\n const f = distribution?.format?.id?.toLowerCase();\n return f && this.visualisationLinkFormats.includes(f);\n }\n }\n}\n</script>\n<style scoped lang=\"scss\">\n .disabled {\n cursor: not-allowed;\n pointer-events: none;\n text-decoration: none;\n color: gray;\n }\n .text-opacity-0 {\n opacity: 0;\n cursor: default!important;\n }\n</style>\n"],"names":["_sfc_main","AppLink","_c","_b","_a","mapGetters","f","geoLinkVariables","linkVariable","distribution","has","isNil","_hoisted_1","_openBlock","_createElementBlock","$options","$props","_cache","_withModifiers","$event","_ctx","_hoisted_2","_hoisted_3","_hoisted_4","_toDisplayString"],"mappings":";;;;;;AAuBA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,SAAAC;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAAA,EACD,OAAO;;AACL,WAAO;AAAA,MACL,0BAA0B;AAAA,QACxB;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,MACD,gBAAgB;AAAA,QACd,KAAK;AAAA,QACL,SAAS;AAAA,QACT,WAAW;AAAA,QACX,aAAa;AAAA,MACd;AAAA,MACD,UAASC,KAAAC,KAAAC,IAAA,KAAK,SAAL,gBAAAA,EAAW,mBAAX,gBAAAD,EAA2B,kBAA3B,gBAAAD,EAA0C;AAAA;EAEtD;AAAA,EACD,UAAU;AAAA,IACR,GAAGG,EAAW,kBAAkB;AAAA,MAC9B;AAAA,MACA;AAAA,IACF,CAAC;AAAA,IACD,aAAa;;AAEX,UAAIC,IADW,KAAK,aAAa,OAAO,MACzB;AAGf,UADAA,IAAI,KAAK,eAAeA,CAAC,GACrB,KAAK,SAAS;AAChB,cAAMC,IAAmB;AAAA,UACvB,SAAS,KAAK,WAAW;AAAA,UACzB,SAAS,KAAK;AAAA,UACd,cAAc,KAAK,aAAa;AAAA,UAChC,MAAMD;AAAA,UACN,MAAM,KAAK,OAAO,MAAM;AAAA,UACxB,YAAWF,IAAA,KAAK,iBAAL,gBAAAA,EAAmB,UAAU;AAAA,QAC1C;AAEA,iBAASI,KAAgBD;AACvB,eAAK,UAAU,KAAK,QAAQ,QAAQ,IAAIC,CAAY,KAAKD,EAAiBC,CAAY,CAAC;AAGzF,eAAO,KAAK;AAAA,MAEd;AAEA,aAAO,wBAAwB,KAAK,WAAW,EAAE,YAAY,KAAK,KAAK,iBAAiB,KAAK,aAAa,EAAE,SAASF,CAAC,SAAS,KAAK,OAAO,MAAM,MAAM;AAAA,IACzJ;AAAA,EACD;AAAA,EACD,SAAS;AAAA,IACP,oBAAoBG,GAAc;AAChC,aAAO,KAAK,sBAAsBA,CAAY,KAAK,KAAK,YAAYA,CAAY;AAAA,IACjF;AAAA,IACD,YAAYA,GAAc;AACxB,UAAI,CAACC,EAAID,GAAc,cAAc,KAAKE,EAAMF,EAAa,OAAO,KAAK,KAAK,CAACC,EAAID,GAAc,IAAI,KAAKE,EAAMF,EAAa,EAAE,KAAK,CAACC,EAAID,GAAc,cAAc;AAAG,eAAO;AAC/K,YAAMH,IAAIG,EAAa,OAAO,MAAM,YAAW;AAC/C,aAAO,OAAO,KAAK,KAAK,cAAc,EAAE,SAASH,CAAC;AAAA,IACnD;AAAA,IACD,sBAAsBG,GAAc;;AAClC,UAAI,CAACC,EAAID,GAAc,cAAc,KAAKE,GAAMP,IAAAK,KAAA,gBAAAA,EAAc,WAAd,gBAAAL,EAAsB,KAAK,KACrEO,EAAMF,KAAA,gBAAAA,EAAc,aAAa,EAAE,KAAKE,EAAMF,KAAA,gBAAAA,EAAc,UAAU,EAAE;AAAI,eAAO;AACzF,YAAMH,KAAIJ,KAAAC,IAAAM,KAAA,gBAAAA,EAAc,WAAd,gBAAAN,EAAsB,OAAtB,gBAAAD,EAA0B;AACpC,aAAOI,KAAK,KAAK,yBAAyB,SAASA,CAAC;AAAA,IACtD;AAAA,EACF;AACF,
|
|
1
|
+
{"version":3,"file":"DistributionPreview.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionPreview.vue"],"sourcesContent":["<template>\n <div class=\"position-relative d-inline-block ml-1 mb-1\">\n <a @click.prevent=\"openIfValidUrl(!isUrlInvalid(getVisualisationLink(distribution)), previewLinkCallback, distribution, $event)\" :class=\"{ disabled: isUrlInvalid(getVisualisationLink(distribution)) }\" ref=\"previewLink\" class=\"d-flex justify-content-between btn btn-sm btn-primary p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button\"\n :href=\"getVisualisationLink(distribution)\"\n target=\"_blank\"\n v-if=\"showVisualisationLink(distribution)\">\n {{ $t('message.datasetDetails.preview') }}\n </a>\n <a @click=\"$emit('track-link', getGeoLink, 'link')\"\n :href=\"getGeoLink\"\n target=\"_blank\"\n v-else-if=\"showGeoLink(distribution)\"\n class=\"d-flex justify-content-between btn btn-sm btn-primary p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button\">\n {{ $t('message.datasetDetails.preview') }}\n </a>\n <span v-else class=\"d-flex justify-content-between btn btn-sm p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button text-opacity-0\">{{ $t('message.datasetDetails.preview') }}</span>\n </div>\n</template>\n<script>\nimport AppLink from \"../../../widgets/AppLink\";\nimport {has, isNil} from \"lodash\";\nimport {mapGetters} from \"vuex\";\n\nexport default {\n name: \"DistributionPreview\",\n components: {\n AppLink,\n },\n props: [\n 'showTooltipVisualiseButton',\n 'isUrlInvalid',\n 'getVisualisationLink',\n 'distribution',\n 'openIfValidUrl',\n 'previewLinkCallback'\n ],\n data() {\n return {\n visualisationLinkFormats: [\n 'pdf',\n 'csv',\n 'xlsx',\n 'xls',\n ],\n geoLinkFormats: {\n wms: 'WMS',\n geojson: 'GeoJSON',\n fiware_cb: 'fiware_cb',\n 'fiware-cb': 'fiware_cb',\n },\n geoLink: this.$env?.datasetDetails?.distributions?.geoLink,\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getCatalog',\n 'getID'\n ]),\n getGeoLink() {\n const format = this.distribution.format.label;\n let f = format.toLowerCase();\n // Use correct Case Sensitive strings\n f = this.geoLinkFormats[f];\n if (this.geoLink) {\n const geoLinkVariables = {\n catalog: this.getCatalog.id,\n dataset: this.getID,\n distribution: this.distribution.id,\n type: f,\n lang: this.$route.query.locale,\n accessUrl: this.distribution?.accessUrl[0],\n }\n // Inject variables into geo link\n for (let linkVariable in geoLinkVariables) {\n this.geoLink = this.geoLink.replace(`{${linkVariable}}`, geoLinkVariables[linkVariable]);\n }\n // Return Geo Visualisation Link\n return this.geoLink;\n // return `/geo-viewer/?dataset=${distributionID}&type=${f}&lang=${this.$route.query.locale}`;\n }\n // Return default Geo Visualisation Link if no link in user-config provided\n return `/geo-viewer/?catalog=${this.getCatalog.id}&dataset=${this.getID}&distribution=${this.distribution.id}&type=${f}&lang=${this.$route.query.locale}`;\n }\n },\n methods: {\n showOptionsDropdown(distribution) {\n return this.showVisualisationLink(distribution) || this.showGeoLink(distribution);\n },\n showGeoLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution.format.label) || !has(distribution, 'id') || isNil(distribution.id) || !has(distribution, 'accessUrl[0]')) return false;\n const f = distribution.format.label.toLowerCase();\n return Object.keys(this.geoLinkFormats).includes(f);\n },\n showVisualisationLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution?.format?.label)\n || (isNil(distribution?.downloadUrls[0]) && isNil(distribution?.accessUrl[0]))) return false;\n const f = distribution?.format?.id?.toLowerCase();\n return f && this.visualisationLinkFormats.includes(f);\n }\n }\n}\n</script>\n<style scoped lang=\"scss\">\n .disabled {\n cursor: not-allowed;\n pointer-events: none;\n text-decoration: none;\n color: gray;\n }\n .text-opacity-0 {\n opacity: 0;\n cursor: default!important;\n }\n</style>\n"],"names":["_sfc_main","AppLink","_c","_b","_a","mapGetters","f","geoLinkVariables","linkVariable","distribution","has","isNil","_hoisted_1","_openBlock","_createElementBlock","$options","$props","_cache","_withModifiers","$event","_ctx","_hoisted_2","_hoisted_3","_hoisted_4","_toDisplayString"],"mappings":";;;;;;AAuBA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,SAAAC;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAA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AAA,IAAAC,CAAA,KAKIN,EAAA,YAAYC,EAAY,YAAA,UAHvCF,EAMI,KAAA;AAAA;MANA,SAAKG,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAE,MAAEC,EAAK,MAAA,cAAeL,EAAU,YAAA,MAAA;AAAA,MACpC,MAAMA,EAAU;AAAA,MACjB,QAAO;AAAA,MAEP,OAAM;AAAA,SACDK,EAAE,GAAA,gCAAA,CAAA,GAAA,GAAAE,CAAA,WAEXR,EAAwL,QAAxLS,GAAwLC,EAA9CJ,EAAE,GAAA,gCAAA,CAAA,GAAA,CAAA;AAAA;;;"}
|
|
@@ -4,7 +4,7 @@ import { isNil as w, has as v } from "lodash-es";
|
|
|
4
4
|
import B from "../../widgets/AppLink.vue.mjs";
|
|
5
5
|
import { mapGetters as V } from "vuex";
|
|
6
6
|
import x from "../../PvBadge/PvBadge.vue.mjs";
|
|
7
|
-
import { resolveComponent as P, openBlock as
|
|
7
|
+
import { resolveComponent as P, openBlock as a, createElementBlock as d, createVNode as b, createTextVNode as i, createElementVNode as s, normalizeClass as m, toDisplayString as l, Fragment as D, renderList as M, withKeys as A, withModifiers as L, createBlock as O, withCtx as T, createCommentVNode as g } from "vue";
|
|
8
8
|
import "./DatasetDetailsPages.vue2.mjs";
|
|
9
9
|
import N from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
10
10
|
const S = {
|
|
@@ -166,7 +166,7 @@ const S = {
|
|
|
166
166
|
}, E = { class: "dsd-feature d-flex flex-column mt-3" }, G = { key: 0 }, z = { class: "mobile-sort-controls d-md-none mb-3" }, K = ["aria-label"], U = { class: "sort-arrows" }, Z = {
|
|
167
167
|
class: "table-responsive-wrapper d-none d-md-block mt-3",
|
|
168
168
|
"data-cy": "documentation"
|
|
169
|
-
}, q = { class: "pages-wrapper" }, H = { class: "pages-grid" }, j = { class: "grid-header" }, W = { class: "grid-col title-col" }, X = ["aria-label"], J = { class: "sort-arrows" }, Q = { class: "grid-col format-col" }, R = { class: "grid-col date-col" }, Y = { class: "grid-col actions-col" }, _ = { class: "grid-row page-header" }, $ = { class: "grid-col title-col" }, tt = { class: "title-with-arrow" }, et = ["id", "aria-expanded", "aria-controls", "onClick", "onKeydown"], st = { class: "m-0 page-title" }, ot = { class: "grid-col format-col" }, it = ["data-toggle", "data-placement", "title"], rt = { class: "grid-col date-col" },
|
|
169
|
+
}, q = { class: "pages-wrapper" }, H = { class: "pages-grid" }, j = { class: "grid-header" }, W = { class: "grid-col title-col" }, X = ["aria-label"], J = { class: "sort-arrows" }, Q = { class: "grid-col format-col" }, R = { class: "grid-col date-col" }, Y = { class: "grid-col actions-col" }, _ = { class: "grid-row page-header" }, $ = { class: "grid-col title-col" }, tt = { class: "title-with-arrow" }, et = ["id", "aria-expanded", "aria-controls", "onClick", "onKeydown"], st = { class: "m-0 page-title" }, ot = { class: "grid-col format-col" }, it = ["data-toggle", "data-placement", "title"], rt = { class: "grid-col date-col" }, lt = { class: "grid-col actions-col" }, at = ["id", "aria-labelledby"], dt = { class: "expanded-details" }, nt = { class: "details-list" }, gt = { key: 0 }, ut = { key: 1 }, mt = { key: 2 }, ht = { key: 3 }, ct = ["href"], wt = {
|
|
170
170
|
key: 0,
|
|
171
171
|
class: "grid-row empty-state"
|
|
172
172
|
}, vt = { class: "grid-col-full text-center text-muted" }, ft = {
|
|
@@ -184,7 +184,7 @@ const S = {
|
|
|
184
184
|
};
|
|
185
185
|
function Et(e, t, c, f, u, o) {
|
|
186
186
|
const F = P("dataset-details-feature-header"), I = P("PvBadge"), p = P("app-link");
|
|
187
|
-
return
|
|
187
|
+
return a(), d("div", E, [
|
|
188
188
|
b(F, {
|
|
189
189
|
title: `${e.$t("message.metadata.documentations")} (${e.getPages ? e.getPages.length.toLocaleString("fi") : 0})`,
|
|
190
190
|
arrowDown: !c.pages.isVisible,
|
|
@@ -192,7 +192,7 @@ function Et(e, t, c, f, u, o) {
|
|
|
192
192
|
onClick: o.togglePage
|
|
193
193
|
}, null, 8, ["title", "arrowDown", "onClick"]),
|
|
194
194
|
t[56] || (t[56] = i()),
|
|
195
|
-
c.pages.isVisible ? (
|
|
195
|
+
c.pages.isVisible ? (a(), d("div", G, [
|
|
196
196
|
s("div", z, [
|
|
197
197
|
s("button", {
|
|
198
198
|
class: "sort-button",
|
|
@@ -203,7 +203,7 @@ function Et(e, t, c, f, u, o) {
|
|
|
203
203
|
Sort
|
|
204
204
|
`, -1)),
|
|
205
205
|
s("div", U, [
|
|
206
|
-
(
|
|
206
|
+
(a(), d("svg", {
|
|
207
207
|
class: m(["sort-arrow sort-arrow-up", { active: u.sortOrder === "asc" }]),
|
|
208
208
|
width: "10",
|
|
209
209
|
height: "8",
|
|
@@ -215,7 +215,7 @@ function Et(e, t, c, f, u, o) {
|
|
|
215
215
|
}, null, -1)
|
|
216
216
|
])], 2)),
|
|
217
217
|
t[7] || (t[7] = i()),
|
|
218
|
-
(
|
|
218
|
+
(a(), d("svg", {
|
|
219
219
|
class: m(["sort-arrow sort-arrow-down", { active: u.sortOrder === "desc" }]),
|
|
220
220
|
width: "10",
|
|
221
221
|
height: "8",
|
|
@@ -240,9 +240,9 @@ function Et(e, t, c, f, u, o) {
|
|
|
240
240
|
onClick: t[1] || (t[1] = (...r) => o.toggleTitleSort && o.toggleTitleSort(...r)),
|
|
241
241
|
"aria-label": e.$t("message.metadata.title") + " sortieren"
|
|
242
242
|
}, [
|
|
243
|
-
i(
|
|
243
|
+
i(l(e.$t("message.metadata.title")) + " ", 1),
|
|
244
244
|
s("div", J, [
|
|
245
|
-
(
|
|
245
|
+
(a(), d("svg", {
|
|
246
246
|
class: m(["sort-arrow sort-arrow-up", { active: u.sortOrder === "asc" }]),
|
|
247
247
|
width: "10",
|
|
248
248
|
height: "8",
|
|
@@ -254,7 +254,7 @@ function Et(e, t, c, f, u, o) {
|
|
|
254
254
|
}, null, -1)
|
|
255
255
|
])], 2)),
|
|
256
256
|
t[11] || (t[11] = i()),
|
|
257
|
-
(
|
|
257
|
+
(a(), d("svg", {
|
|
258
258
|
class: m(["sort-arrow sort-arrow-down", { active: u.sortOrder === "desc" }]),
|
|
259
259
|
width: "10",
|
|
260
260
|
height: "8",
|
|
@@ -269,14 +269,14 @@ function Et(e, t, c, f, u, o) {
|
|
|
269
269
|
], 8, X)
|
|
270
270
|
]),
|
|
271
271
|
t[12] || (t[12] = i()),
|
|
272
|
-
s("div", Q,
|
|
272
|
+
s("div", Q, l(e.$t("message.metadata.format")), 1),
|
|
273
273
|
t[13] || (t[13] = i()),
|
|
274
|
-
s("div", R,
|
|
274
|
+
s("div", R, l(e.$t("message.metadata.updated")), 1),
|
|
275
275
|
t[14] || (t[14] = i()),
|
|
276
|
-
s("div", Y,
|
|
276
|
+
s("div", Y, l(e.$t("message.dataupload.menu.actions")), 1)
|
|
277
277
|
]),
|
|
278
278
|
t[29] || (t[29] = i()),
|
|
279
|
-
(
|
|
279
|
+
(a(!0), d(D, null, M(o.visiblePages, (r, n) => (a(), d("div", {
|
|
280
280
|
key: n,
|
|
281
281
|
class: m(["page-item", { "accordion-open": u.expandedItems[n] }])
|
|
282
282
|
}, [
|
|
@@ -295,9 +295,9 @@ function Et(e, t, c, f, u, o) {
|
|
|
295
295
|
A(L((k) => o.toggleAccordion(n), ["prevent"]), ["space"])
|
|
296
296
|
]
|
|
297
297
|
}, [
|
|
298
|
-
s("h3", st,
|
|
298
|
+
s("h3", st, l(o.getPageTitle(r)), 1),
|
|
299
299
|
t[16] || (t[16] = i()),
|
|
300
|
-
(
|
|
300
|
+
(a(), d("svg", {
|
|
301
301
|
class: m(`accordion-arrow ${u.expandedItems[n] ? "rotated" : ""}`),
|
|
302
302
|
width: "16",
|
|
303
303
|
height: "16",
|
|
@@ -316,23 +316,23 @@ function Et(e, t, c, f, u, o) {
|
|
|
316
316
|
]),
|
|
317
317
|
t[17] || (t[17] = i()),
|
|
318
318
|
s("div", ot, [
|
|
319
|
-
r.format ? (
|
|
319
|
+
r.format ? (a(), O(I, {
|
|
320
320
|
key: 0,
|
|
321
321
|
class: "format-badge",
|
|
322
322
|
value: r.format,
|
|
323
323
|
type: r.format.id
|
|
324
|
-
}, null, 8, ["value", "type"])) : (
|
|
324
|
+
}, null, 8, ["value", "type"])) : (a(), d("span", {
|
|
325
325
|
key: 1,
|
|
326
326
|
class: "badge badge-secondary",
|
|
327
327
|
"data-toggle": o.pageFormatTruncated(r) ? "tooltip" : !1,
|
|
328
328
|
"data-placement": o.pageFormatTruncated(r) ? "top" : !1,
|
|
329
329
|
title: o.pageFormatTruncated(r) ? o.getPageFormat(r) : !1
|
|
330
|
-
},
|
|
330
|
+
}, l(o.truncate(o.getPageFormat(r), 10, !0)), 9, it))
|
|
331
331
|
]),
|
|
332
332
|
t[18] || (t[18] = i()),
|
|
333
|
-
s("div", rt,
|
|
333
|
+
s("div", rt, l(o.formatDate(o.getPageModified(r))), 1),
|
|
334
334
|
t[19] || (t[19] = i()),
|
|
335
|
-
s("div",
|
|
335
|
+
s("div", lt, [
|
|
336
336
|
b(p, {
|
|
337
337
|
class: "action-btns",
|
|
338
338
|
to: r.resource,
|
|
@@ -342,14 +342,14 @@ function Et(e, t, c, f, u, o) {
|
|
|
342
342
|
onAfterClick: c.trackGoto
|
|
343
343
|
}, {
|
|
344
344
|
default: T(() => [
|
|
345
|
-
i(
|
|
345
|
+
i(l(e.$t("message.datasetDetails.access")), 1)
|
|
346
346
|
]),
|
|
347
347
|
_: 1
|
|
348
348
|
}, 8, ["to", "onAfterClick"])
|
|
349
349
|
])
|
|
350
350
|
]),
|
|
351
351
|
t[28] || (t[28] = i()),
|
|
352
|
-
u.expandedItems[n] ? (
|
|
352
|
+
u.expandedItems[n] ? (a(), d("div", {
|
|
353
353
|
key: 0,
|
|
354
354
|
id: `accordion-content-${n}`,
|
|
355
355
|
"aria-labelledby": `accordion-button-${n}`,
|
|
@@ -358,19 +358,19 @@ function Et(e, t, c, f, u, o) {
|
|
|
358
358
|
}, [
|
|
359
359
|
s("div", dt, [
|
|
360
360
|
s("dl", nt, [
|
|
361
|
-
o.getPageDescription(r) ? (
|
|
361
|
+
o.getPageDescription(r) ? (a(), d("dt", gt, l(e.$t("message.metadata.description")), 1)) : g("", !0),
|
|
362
362
|
t[21] || (t[21] = i()),
|
|
363
|
-
o.getPageDescription(r) ? (
|
|
363
|
+
o.getPageDescription(r) ? (a(), d("dd", ut, l(o.getPageDescription(r)), 1)) : g("", !0),
|
|
364
364
|
t[22] || (t[22] = i()),
|
|
365
|
-
s("dt", null,
|
|
365
|
+
s("dt", null, l(e.$t("message.metadata.format")), 1),
|
|
366
366
|
t[23] || (t[23] = i()),
|
|
367
|
-
s("dd", null,
|
|
367
|
+
s("dd", null, l(o.getPageFormat(r)), 1),
|
|
368
368
|
t[24] || (t[24] = i()),
|
|
369
|
-
o.getPageModified(r) ? (
|
|
369
|
+
o.getPageModified(r) ? (a(), d("dt", mt, l(e.$t("message.metadata.updated")), 1)) : g("", !0),
|
|
370
370
|
t[25] || (t[25] = i()),
|
|
371
|
-
o.getPageModified(r) ? (
|
|
371
|
+
o.getPageModified(r) ? (a(), d("dd", ht, l(o.formatDate(o.getPageModified(r))), 1)) : g("", !0),
|
|
372
372
|
t[26] || (t[26] = i()),
|
|
373
|
-
s("dt", null,
|
|
373
|
+
s("dt", null, l(e.$t("message.metadata.accessUrl")), 1),
|
|
374
374
|
t[27] || (t[27] = i()),
|
|
375
375
|
s("dd", null, [
|
|
376
376
|
s("a", {
|
|
@@ -378,7 +378,7 @@ function Et(e, t, c, f, u, o) {
|
|
|
378
378
|
target: "_blank",
|
|
379
379
|
rel: "noopener"
|
|
380
380
|
}, [
|
|
381
|
-
i(
|
|
381
|
+
i(l((r.resource || "").substring(0, 80) + "...") + " ", 1),
|
|
382
382
|
t[20] || (t[20] = s("svg", {
|
|
383
383
|
class: "outgoing-icon ml-1",
|
|
384
384
|
width: "12",
|
|
@@ -411,20 +411,20 @@ function Et(e, t, c, f, u, o) {
|
|
|
411
411
|
])
|
|
412
412
|
])
|
|
413
413
|
])
|
|
414
|
-
], 8,
|
|
414
|
+
], 8, at)) : g("", !0)
|
|
415
415
|
], 2))), 128)),
|
|
416
416
|
t[30] || (t[30] = i()),
|
|
417
|
-
!e.getPages || e.getPages.length === 0 ? (
|
|
418
|
-
s("div", vt,
|
|
417
|
+
!e.getPages || e.getPages.length === 0 ? (a(), d("div", wt, [
|
|
418
|
+
s("div", vt, l(e.$t("message.metadata.noDocumentationsAvailable")), 1)
|
|
419
419
|
])) : g("", !0)
|
|
420
420
|
])
|
|
421
421
|
]),
|
|
422
422
|
t[31] || (t[31] = i()),
|
|
423
|
-
o.showingAll ? g("", !0) : (
|
|
423
|
+
o.showingAll ? g("", !0) : (a(), d("div", ft))
|
|
424
424
|
]),
|
|
425
425
|
t[54] || (t[54] = i()),
|
|
426
426
|
s("div", kt, [
|
|
427
|
-
(
|
|
427
|
+
(a(!0), d(D, null, M(o.visiblePages, (r, n) => (a(), d("div", {
|
|
428
428
|
key: n,
|
|
429
429
|
class: m(["page-card", { expanded: u.expandedItems[n] }])
|
|
430
430
|
}, [
|
|
@@ -433,16 +433,16 @@ function Et(e, t, c, f, u, o) {
|
|
|
433
433
|
onClick: (k) => o.toggleAccordion(n)
|
|
434
434
|
}, [
|
|
435
435
|
s("div", bt, [
|
|
436
|
-
s("h3", pt,
|
|
436
|
+
s("h3", pt, l(o.getPageTitle(r)), 1),
|
|
437
437
|
t[33] || (t[33] = i()),
|
|
438
438
|
s("div", yt, [
|
|
439
|
-
s("span", Ct,
|
|
439
|
+
s("span", Ct, l(o.truncate(o.getPageFormat(r), 10, !0)), 1),
|
|
440
440
|
t[32] || (t[32] = i()),
|
|
441
|
-
s("span", Dt,
|
|
441
|
+
s("span", Dt, l(o.formatDate(o.getPageModified(r))), 1)
|
|
442
442
|
])
|
|
443
443
|
]),
|
|
444
444
|
t[35] || (t[35] = i()),
|
|
445
|
-
(
|
|
445
|
+
(a(), d("svg", {
|
|
446
446
|
class: m(["accordion-arrow", { rotated: u.expandedItems[n] }]),
|
|
447
447
|
width: "16",
|
|
448
448
|
height: "16",
|
|
@@ -496,28 +496,28 @@ function Et(e, t, c, f, u, o) {
|
|
|
496
496
|
"stroke-width": "2"
|
|
497
497
|
})
|
|
498
498
|
], -1)),
|
|
499
|
-
i(" " +
|
|
499
|
+
i(" " + l(e.$t("message.datasetDetails.access")), 1)
|
|
500
500
|
]),
|
|
501
501
|
_: 1
|
|
502
502
|
}, 8, ["to", "onAfterClick"])
|
|
503
503
|
]),
|
|
504
504
|
t[46] || (t[46] = i()),
|
|
505
|
-
u.expandedItems[n] ? (
|
|
505
|
+
u.expandedItems[n] ? (a(), d("div", At, [
|
|
506
506
|
s("div", Tt, [
|
|
507
507
|
s("dl", Ft, [
|
|
508
|
-
o.getPageDescription(r) ? (
|
|
508
|
+
o.getPageDescription(r) ? (a(), d("dt", It, l(e.$t("message.metadata.description")), 1)) : g("", !0),
|
|
509
509
|
t[38] || (t[38] = i()),
|
|
510
|
-
o.getPageDescription(r) ? (
|
|
510
|
+
o.getPageDescription(r) ? (a(), d("dd", Bt, l(o.getPageDescription(r)), 1)) : g("", !0),
|
|
511
511
|
t[39] || (t[39] = i()),
|
|
512
|
-
s("dt", null,
|
|
512
|
+
s("dt", null, l(e.$t("message.metadata.format")), 1),
|
|
513
513
|
t[40] || (t[40] = i()),
|
|
514
|
-
s("dd", null,
|
|
514
|
+
s("dd", null, l(o.getPageFormat(r)), 1),
|
|
515
515
|
t[41] || (t[41] = i()),
|
|
516
|
-
o.getPageModified(r) ? (
|
|
516
|
+
o.getPageModified(r) ? (a(), d("dt", Vt, l(e.$t("message.metadata.updated")), 1)) : g("", !0),
|
|
517
517
|
t[42] || (t[42] = i()),
|
|
518
|
-
o.getPageModified(r) ? (
|
|
518
|
+
o.getPageModified(r) ? (a(), d("dd", xt, l(o.formatDate(o.getPageModified(r))), 1)) : g("", !0),
|
|
519
519
|
t[43] || (t[43] = i()),
|
|
520
|
-
s("dt", null,
|
|
520
|
+
s("dt", null, l(e.$t("message.metadata.accessUrl")), 1),
|
|
521
521
|
t[44] || (t[44] = i()),
|
|
522
522
|
s("dd", null, [
|
|
523
523
|
s("a", {
|
|
@@ -525,7 +525,7 @@ function Et(e, t, c, f, u, o) {
|
|
|
525
525
|
target: "_blank",
|
|
526
526
|
rel: "noopener"
|
|
527
527
|
}, [
|
|
528
|
-
i(
|
|
528
|
+
i(l((r.resource || "").substring(0, 80) + "...") + " ", 1),
|
|
529
529
|
t[37] || (t[37] = s("svg", {
|
|
530
530
|
class: "outgoing-icon ml-1",
|
|
531
531
|
width: "12",
|
|
@@ -561,13 +561,13 @@ function Et(e, t, c, f, u, o) {
|
|
|
561
561
|
])) : g("", !0)
|
|
562
562
|
], 2))), 128)),
|
|
563
563
|
t[47] || (t[47] = i()),
|
|
564
|
-
!e.getPages || e.getPages.length === 0 ? (
|
|
565
|
-
s("div", Nt,
|
|
564
|
+
!e.getPages || e.getPages.length === 0 ? (a(), d("div", Ot, [
|
|
565
|
+
s("div", Nt, l(e.$t("message.metadata.noDocumentationsAvailable")), 1)
|
|
566
566
|
])) : g("", !0)
|
|
567
567
|
]),
|
|
568
568
|
t[55] || (t[55] = i()),
|
|
569
|
-
o.hasMorePages || o.showingMoreThanInitial ? (
|
|
570
|
-
!o.showingAll && o.hasMorePages ? (
|
|
569
|
+
o.hasMorePages || o.showingMoreThanInitial ? (a(), d("div", St, [
|
|
570
|
+
!o.showingAll && o.hasMorePages ? (a(), d("button", {
|
|
571
571
|
key: 0,
|
|
572
572
|
class: "show-more-btn",
|
|
573
573
|
onClick: t[2] || (t[2] = (...r) => o.showMorePages && o.showMorePages(...r))
|
|
@@ -585,10 +585,10 @@ function Et(e, t, c, f, u, o) {
|
|
|
585
585
|
fill: "none"
|
|
586
586
|
})
|
|
587
587
|
], -1)),
|
|
588
|
-
i(" " +
|
|
588
|
+
i(" " + l(e.$t("message.metadata.showXMore", { increment: o.remainingCount })), 1)
|
|
589
589
|
])) : g("", !0),
|
|
590
590
|
t[51] || (t[51] = i()),
|
|
591
|
-
o.showingAll || o.showingMoreThanInitial ? (
|
|
591
|
+
o.showingAll || o.showingMoreThanInitial ? (a(), d("button", {
|
|
592
592
|
key: 1,
|
|
593
593
|
class: m(["show-more-btn", { "ml-2": !o.showingAll }]),
|
|
594
594
|
onClick: t[3] || (t[3] = (...r) => o.resetView && o.resetView(...r))
|
|
@@ -606,10 +606,10 @@ function Et(e, t, c, f, u, o) {
|
|
|
606
606
|
fill: "none"
|
|
607
607
|
})
|
|
608
608
|
], -1)),
|
|
609
|
-
i(" " +
|
|
609
|
+
i(" " + l(e.$t("message.metadata.showLess")), 1)
|
|
610
610
|
], 2)) : g("", !0),
|
|
611
611
|
t[52] || (t[52] = i()),
|
|
612
|
-
!o.showingAll && o.hasMorePages ? (
|
|
612
|
+
!o.showingAll && o.hasMorePages ? (a(), d("button", {
|
|
613
613
|
key: 2,
|
|
614
614
|
class: "show-all-btn ml-2",
|
|
615
615
|
onClick: t[4] || (t[4] = (...r) => o.showAllPages && o.showAllPages(...r))
|
|
@@ -627,13 +627,13 @@ function Et(e, t, c, f, u, o) {
|
|
|
627
627
|
fill: "none"
|
|
628
628
|
})
|
|
629
629
|
], -1)),
|
|
630
|
-
i(" " +
|
|
630
|
+
i(" " + l(e.$t("message.metadata.showAll")), 1)
|
|
631
631
|
])) : g("", !0)
|
|
632
632
|
])) : g("", !0)
|
|
633
633
|
])) : g("", !0)
|
|
634
634
|
]);
|
|
635
635
|
}
|
|
636
|
-
const Xt = /* @__PURE__ */ N(S, [["render", Et], ["__scopeId", "data-v-
|
|
636
|
+
const Xt = /* @__PURE__ */ N(S, [["render", Et], ["__scopeId", "data-v-62de4d25"]]);
|
|
637
637
|
export {
|
|
638
638
|
Xt as default
|
|
639
639
|
};
|