@piveau/piveau-hub-ui-modules 4.4.29 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/configurations/configureComponents.mjs +20 -18
  2. package/dist/configurations/configureComponents.mjs.map +1 -1
  3. package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +59 -20
  4. package/dist/data-provider-interface/DataProviderInterface.vue.mjs.map +1 -1
  5. package/dist/data-provider-interface/DataProviderInterface.vue2.mjs +36 -25
  6. package/dist/data-provider-interface/DataProviderInterface.vue2.mjs.map +1 -1
  7. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +92 -89
  8. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
  9. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +104 -107
  10. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
  11. package/dist/data-provider-interface/components/SpatialInput.vue.mjs +190 -148
  12. package/dist/data-provider-interface/components/SpatialInput.vue.mjs.map +1 -1
  13. package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs +19 -8
  14. package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs.map +1 -1
  15. package/dist/data-provider-interface/composables/aucotomplete.d.ts +27 -0
  16. package/dist/data-provider-interface/composables/aucotomplete.mjs +52 -0
  17. package/dist/data-provider-interface/composables/aucotomplete.mjs.map +1 -0
  18. package/dist/data-provider-interface/composables/index.d.ts +4 -0
  19. package/dist/data-provider-interface/composables/useDpiContext.mjs +7 -9
  20. package/dist/data-provider-interface/composables/useDpiContext.mjs.map +1 -1
  21. package/dist/data-provider-interface/composables/useRequestUriName.d.ts +18 -0
  22. package/dist/data-provider-interface/composables/useRequestUriName.mjs +59 -0
  23. package/dist/data-provider-interface/composables/useRequestUriName.mjs.map +1 -0
  24. package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.mjs +1 -1
  25. package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.mjs.map +1 -1
  26. package/dist/data-provider-interface/index.mjs +10 -6
  27. package/dist/data-provider-interface/index.mjs.map +1 -1
  28. package/dist/data-provider-interface/store/dpiStore.d.ts +0 -26
  29. package/dist/data-provider-interface/store/dpiStore.mjs +12 -14
  30. package/dist/data-provider-interface/store/dpiStore.mjs.map +1 -1
  31. package/dist/data-provider-interface/views/InputPage.vue.d.ts +49 -20
  32. package/dist/data-provider-interface/views/InputPage.vue.mjs +125 -107
  33. package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
  34. package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.d.ts +16 -6
  35. package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.d.ts +32 -14
  36. package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs +27 -31
  37. package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs.map +1 -1
  38. package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.d.ts +16 -6
  39. package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.d.ts +8 -3
  40. package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.d.ts +8 -3
  41. package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.mjs +57 -47
  42. package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.mjs.map +1 -1
  43. package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.d.ts +16 -6
  44. package/dist/data-provider-interface/views/OverviewPage.vue.d.ts +48 -20
  45. package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs +50 -36
  46. package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs.map +1 -1
  47. package/dist/datasetDetails/DatasetDetailsDataset.vue2.mjs +4 -4
  48. package/dist/datasetDetails/DatasetDetailsDataset.vue2.mjs.map +1 -1
  49. package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.d.ts +3 -3
  50. package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.mjs +3 -3
  51. package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.mjs.map +1 -1
  52. package/dist/datasetDetails/features/DatasetDetailsIsUsedBy.vue.mjs +18 -18
  53. package/dist/datasetDetails/properties/DatasetDetailsProperties.vue.mjs +58 -50
  54. package/dist/datasetDetails/properties/DatasetDetailsProperties.vue.mjs.map +1 -1
  55. package/dist/external/@vueuse/core/index +3 -2
  56. package/dist/external/@vueuse/shared/index +86 -72
  57. package/dist/external/@vueuse/shared/index.map +1 -1
  58. package/dist/form/Repeatable.vue.d.ts +11 -10
  59. package/dist/form/Repeatable.vue.mjs +5 -62
  60. package/dist/form/Repeatable.vue.mjs.map +1 -1
  61. package/dist/form/Repeatable.vue2.mjs +72 -2
  62. package/dist/form/Repeatable.vue2.mjs.map +1 -1
  63. package/dist/form/Repeatable.vue3.mjs +5 -0
  64. package/dist/form/Repeatable.vue3.mjs.map +1 -0
  65. package/dist/piveau-hub-ui-modules.css +1 -1
  66. package/package.json +1 -1
  67. package/dist/data-provider-interface/store/modules/autocompleteStore.d.ts +0 -27
  68. package/dist/data-provider-interface/store/modules/autocompleteStore.mjs +0 -54
  69. package/dist/data-provider-interface/store/modules/autocompleteStore.mjs.map +0 -1
@@ -1,13 +1,13 @@
1
1
  import { mapGetters as V } from "vuex";
2
- import S from "./DatasetDetailsProperty.vue.mjs";
3
- import { dcatSchema as k, dcatDeSchema as P, dcatFields as F, dcatDeFields as E } from "./specification.mjs";
4
- import { resolveComponent as l, openBlock as a, createElementBlock as D, createElementVNode as o, createVNode as I, createTextVNode as n, withDirectives as u, Fragment as T, renderList as A, createBlock as H, vShow as _, createCommentVNode as C } from "vue";
2
+ import k from "./DatasetDetailsProperty.vue.mjs";
3
+ import { dcatSchema as P, dcatDeSchema as F, dcatFields as E, dcatDeFields as I } from "./specification.mjs";
4
+ import { resolveComponent as p, openBlock as o, createElementBlock as b, createElementVNode as d, renderSlot as l, createVNode as T, createTextVNode as a, withDirectives as D, Fragment as A, renderList as C, createBlock as H, vShow as v, createCommentVNode as M } from "vue";
5
5
  import "./DatasetDetailsProperties.vue2.mjs";
6
- import M from "../../_virtual/_plugin-vue_export-helper.mjs";
7
- const N = {
6
+ import N from "../../_virtual/_plugin-vue_export-helper.mjs";
7
+ const $ = {
8
8
  name: "DatasetDetailsProperties",
9
9
  components: {
10
- DatasetDetailsProperty: S
10
+ DatasetDetailsProperty: k
11
11
  },
12
12
  data() {
13
13
  return {
@@ -22,15 +22,15 @@ const N = {
22
22
  "getDatasetDescriptionHeight"
23
23
  ]),
24
24
  fieldSchema() {
25
- return Object.assign(k(this.i18n.global.t), P());
25
+ return Object.assign(P(this.i18n.global.t), F());
26
26
  },
27
27
  propertyFields() {
28
- var i, d;
29
- let t = (d = (i = this.$env.content) == null ? void 0 : i.datasetDetails) == null ? void 0 : d.properties;
30
- return (!t || t === "") && (t = F, this.$env.content.dataProviderInterface.specification === "dcatapde" && (t += "," + E)), t;
28
+ var t, n;
29
+ let e = (n = (t = this.$env.content) == null ? void 0 : t.datasetDetails) == null ? void 0 : n.properties;
30
+ return (!e || e === "") && (e = E, this.$env.content.dataProviderInterface.specification === "dcatapde" && (e += "," + I)), e;
31
31
  },
32
32
  fieldsArray() {
33
- return this.propertyFields.split(",").map((t) => t.trim());
33
+ return this.propertyFields.split(",").map((e) => e.trim());
34
34
  },
35
35
  showMoreVisible() {
36
36
  return this.initialHeight > this.restrictedHeight;
@@ -62,53 +62,61 @@ const N = {
62
62
  class: "additional-information-overlay",
63
63
  ref: "overlay"
64
64
  };
65
- function q(t, i, d, z, r, e) {
66
- const b = l("dataset-details-feature-header"), v = l("dataset-details-property"), x = l("pv-show-more");
67
- return a(), D("div", B, [
68
- o("div", L, [
69
- I(b, {
70
- title: t.$t("message.datasetDetails.additionalInfo"),
71
- arrowDown: !r.infoVisible,
72
- tag: "additional-information-toggle",
73
- onClick: e.toggleInfo
74
- }, null, 8, ["title", "arrowDown", "onClick"]),
75
- i[1] || (i[1] = n()),
76
- u(o("div", j, [
77
- o("table", G, [
78
- (a(!0), D(T, null, A(e.fieldsArray, (s, w) => {
79
- var h, p, c, m, f, g, y;
80
- return a(), H(v, {
81
- name: s,
82
- translate: (h = e.fieldSchema[s]) == null ? void 0 : h.translate,
83
- type: (p = e.fieldSchema[s]) == null ? void 0 : p.type,
84
- propertyFields: (c = e.fieldSchema[s]) == null ? void 0 : c.fields,
85
- track: (m = e.fieldSchema[s]) == null ? void 0 : m.track,
86
- itemstyles: (f = e.fieldSchema[s]) == null ? void 0 : f.itemstyles,
87
- preTransform: (g = e.fieldSchema[s]) == null ? void 0 : g.preTransform,
88
- transform: (y = e.fieldSchema[s]) == null ? void 0 : y.transform,
89
- key: w
90
- }, null, 8, ["name", "translate", "type", "propertyFields", "track", "itemstyles", "preTransform", "transform"]);
91
- }), 128))
92
- ], 512),
93
- i[0] || (i[0] = n()),
94
- u(o("div", O, null, 512), [
95
- [_, e.showMoreVisible && !r.expanded]
96
- ])
65
+ function q(e, t, n, z, r, i) {
66
+ const w = p("dataset-details-feature-header"), _ = p("dataset-details-property"), x = p("pv-show-more");
67
+ return o(), b("div", B, [
68
+ d("div", L, [
69
+ l(e.$slots, "property-header", {}, () => [
70
+ T(w, {
71
+ title: e.$t("message.datasetDetails.additionalInfo"),
72
+ arrowDown: !r.infoVisible,
73
+ tag: "additional-information-toggle",
74
+ onClick: i.toggleInfo
75
+ }, null, 8, ["title", "arrowDown", "onClick"])
76
+ ], !0),
77
+ t[3] || (t[3] = a()),
78
+ D(d("div", j, [
79
+ l(e.$slots, "property-table-before", {}, void 0, !0),
80
+ t[0] || (t[0] = a()),
81
+ l(e.$slots, "property-table", {}, () => [
82
+ d("table", G, [
83
+ (o(!0), b(A, null, C(i.fieldsArray, (s, S) => {
84
+ var h, f, m, c, g, u, y;
85
+ return o(), H(_, {
86
+ name: s,
87
+ translate: (h = i.fieldSchema[s]) == null ? void 0 : h.translate,
88
+ type: (f = i.fieldSchema[s]) == null ? void 0 : f.type,
89
+ propertyFields: (m = i.fieldSchema[s]) == null ? void 0 : m.fields,
90
+ track: (c = i.fieldSchema[s]) == null ? void 0 : c.track,
91
+ itemstyles: (g = i.fieldSchema[s]) == null ? void 0 : g.itemstyles,
92
+ preTransform: (u = i.fieldSchema[s]) == null ? void 0 : u.preTransform,
93
+ transform: (y = i.fieldSchema[s]) == null ? void 0 : y.transform,
94
+ key: S
95
+ }, null, 8, ["name", "translate", "type", "propertyFields", "track", "itemstyles", "preTransform", "transform"]);
96
+ }), 128))
97
+ ], 512)
98
+ ], !0),
99
+ t[1] || (t[1] = a()),
100
+ D(d("div", O, null, 512), [
101
+ [v, i.showMoreVisible && !r.expanded]
102
+ ]),
103
+ t[2] || (t[2] = a()),
104
+ l(e.$slots, "property-table-after", {}, void 0, !0)
97
105
  ], 512), [
98
- [_, r.infoVisible]
106
+ [v, r.infoVisible]
99
107
  ])
100
108
  ]),
101
- i[2] || (i[2] = n()),
102
- e.showMoreVisible ? (a(), H(x, {
109
+ t[4] || (t[4] = a()),
110
+ i.showMoreVisible ? (o(), H(x, {
103
111
  key: 0,
104
- label: r.expanded ? t.$t("message.metadata.showLess") : t.$t("message.metadata.showMore"),
112
+ label: r.expanded ? e.$t("message.metadata.showLess") : e.$t("message.metadata.showMore"),
105
113
  upArrow: r.expanded,
106
- action: e.toggleExpanded,
114
+ action: i.toggleExpanded,
107
115
  class: "row text-primary"
108
- }, null, 8, ["label", "upArrow", "action"])) : C("", !0)
116
+ }, null, 8, ["label", "upArrow", "action"])) : M("", !0)
109
117
  ]);
110
118
  }
111
- const X = /* @__PURE__ */ M(N, [["render", q], ["__scopeId", "data-v-ac33eda5"]]);
119
+ const X = /* @__PURE__ */ N($, [["render", q], ["__scopeId", "data-v-cf81b192"]]);
112
120
  export {
113
121
  X as default
114
122
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DatasetDetailsProperties.vue.mjs","sources":["../../../lib/datasetDetails/properties/DatasetDetailsProperties.vue"],"sourcesContent":["<template>\n <div class=\"mt-5 dsd-properties\">\n <div class=\"col-12 mb-2 p-0 dsd-properties-list\">\n <dataset-details-feature-header\n :title=\"$t('message.datasetDetails.additionalInfo')\"\n :arrowDown=\"!infoVisible\"\n tag=\"additional-information-toggle\"\n :onClick=\"toggleInfo\"\n />\n <div class=\"position-relative dsd-item additional-information\"\n data-cy=\"additional-information\"\n v-show=\"infoVisible\">\n <table class=\"table table-borderless table-responsive\" ref=\"dsdProperties\" role=\"tablist\" id=\"myTab\">\n <dataset-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 <div class=\"additional-information-overlay\" ref=\"overlay\" v-show=\"showMoreVisible && !expanded\"></div>\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 DatasetDetailsProperty from \"./DatasetDetailsProperty\";\nimport {dcatDeFields, dcatFields, dcatSchema, dcatDeSchema} from \"./specification.ts\";\n\nexport default {\n name: \"DatasetDetailsProperties\",\n components: {\n DatasetDetailsProperty\n },\n data() {\n return {\n infoVisible: true,\n initialHeight: 0,\n restrictedHeight: 100,\n expanded: false,\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getDatasetDescriptionHeight'\n ]),\n fieldSchema() {\n return Object.assign(dcatSchema(this.i18n.global.t), dcatDeSchema())\n },\n propertyFields() {\n let properties = this.$env.content?.datasetDetails?.properties;\n if (!properties || properties === \"\") {\n properties = dcatFields;\n if (this.$env.content.dataProviderInterface.specification === 'dcatapde') {\n properties += \",\" + dcatDeFields;\n }\n }\n return properties;\n },\n fieldsArray() {\n return this.propertyFields.split(',').map(item => item.trim());\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 // this.$refs.dsdProperties.style['overflow-y'] = this.expanded ? \"auto\": \"hidden\";\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","DatasetDetailsProperty","mapGetters","dcatSchema","dcatDeSchema","properties","_b","_a","dcatFields","dcatDeFields","item","_hoisted_1","_hoisted_2","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_component_dataset_details_feature_header","_ctx","$data","$options","_cache","_createTextVNode","_withDirectives","_hoisted_3","_hoisted_4","_Fragment","_renderList","name","index","_createBlock","_component_dataset_details_property","_c","_d","_e","_f","_g","_hoisted_5","_vShow","_component_pv_show_more","_createCommentVNode"],"mappings":";;;;;;AA0CA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,wBAAAC;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,kBAAkB;AAAA,MAC9B;AAAA,IACF,CAAC;AAAA,IACD,cAAc;AACZ,aAAO,OAAO,OAAOC,EAAW,KAAK,KAAK,OAAO,CAAC,GAAGC,GAAc;AAAA,IACpE;AAAA,IACD,iBAAiB;;AACf,UAAIC,KAAaC,KAAAC,IAAA,KAAK,KAAK,YAAV,gBAAAA,EAAmB,mBAAnB,gBAAAD,EAAmC;AACpD,cAAI,CAACD,KAAcA,MAAe,QAChCA,IAAaG,GACT,KAAK,KAAK,QAAQ,sBAAsB,kBAAkB,eAC5DH,KAAc,MAAMI,KAGjBJ;AAAA,IACR;AAAA,IACD,cAAc;AACZ,aAAO,KAAK,eAAe,MAAM,GAAG,EAAE,IAAI,CAAAK,MAAQA,EAAK,KAAI,CAAE;AAAA,IAC9D;AAAA,IACD,kBAAkB;AAChB,aAAO,KAAK,gBAAgB,KAAK;AAAA,IACnC;AAAA,EACD;AAAA,EACD,SAAS;AAAA,IACP,aAAa;AACX,WAAK,cAAc,CAAC,KAAK;AAAA,IAC1B;AAAA,IACD,iBAAiB;AACf,WAAK,WAAW,CAAE,KAAK,UACvB,KAAK,YAAW;AAAA,IACjB;AAAA,IACD,cAAc;AACZ,WAAK,MAAM,cAAc,MAAM,OAAU,KAAK,WAAW,aAAY,OAAO,KAAK,gBAAgB,MACjG,KAAK,MAAM,cAAc,MAAM,YAAY,IAAI,KAAK,WAAW,SAAQ,GAAG,KAAK,gBAAgB;AAAA,IAEjG;A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Q,CAAI,MAAhB,gBAAAI,EAAmB;AAAA,cACnC,QAAOC,IAAAb,EAAA,YAAYQ,CAAI,MAAhB,gBAAAK,EAAmB;AAAA,cAC1B,aAAYC,IAAAd,EAAA,YAAYQ,CAAI,MAAhB,gBAAAM,EAAmB;AAAA,cAC/B,eAAcC,IAAAf,EAAA,YAAYQ,CAAI,MAAhB,gBAAAO,EAAmB;AAAA,cACjC,YAAWC,IAAAhB,EAAA,YAAYQ,CAAI,MAAhB,gBAAAQ,EAAmB;AAAA,cAC9B,KAAKP;AAAA;;;QAtBpBR,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,QAwBQC,EAAAR,EAAsG,OAAtGsB,GAAsG,MAAA,GAAA,GAAA;AAAA,UAApC,CAAAC,GAAAlB,EAAA,oBAAoBD,EAAQ,QAAA;AAAA;;YAbnFA,EAAW,WAAA;AAAA;;IAX9BE,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IA4BYF,EAAe,wBADvBU,EAMES,GAAA;AAAA,MAjCN,KAAA;AAAA,MA6BO,OAAOpB,EAAA,WAAUD,EAAA,kCAAkCA,EAAE,GAAA,2BAAA;AAAA,MACrD,SAASC,EAAQ;AAAA,MACjB,QAAQC,EAAc;AAAA,MACvB,OAAM;AAAA,mDAhCZoB,EAAA,IAAA,EAAA;AAAA;;;"}
1
+ {"version":3,"file":"DatasetDetailsProperties.vue.mjs","sources":["../../../lib/datasetDetails/properties/DatasetDetailsProperties.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 <dataset-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 DatasetDetailsProperty from \"./DatasetDetailsProperty\";\nimport {dcatDeFields, dcatFields, dcatSchema, dcatDeSchema} from \"./specification.ts\";\n\nexport default {\n name: \"DatasetDetailsProperties\",\n components: {\n DatasetDetailsProperty\n },\n data() {\n return {\n infoVisible: true,\n initialHeight: 0,\n restrictedHeight: 100,\n expanded: false,\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getDatasetDescriptionHeight'\n ]),\n fieldSchema() {\n return Object.assign(dcatSchema(this.i18n.global.t), dcatDeSchema())\n },\n propertyFields() {\n let properties = this.$env.content?.datasetDetails?.properties;\n if (!properties || properties === \"\") {\n properties = dcatFields;\n if (this.$env.content.dataProviderInterface.specification === 'dcatapde') {\n properties += \",\" + dcatDeFields;\n }\n }\n return properties;\n },\n fieldsArray() {\n return this.propertyFields.split(',').map(item => item.trim());\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 // this.$refs.dsdProperties.style['overflow-y'] = this.expanded ? \"auto\": \"hidden\";\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","DatasetDetailsProperty","mapGetters","dcatSchema","dcatDeSchema","properties","_b","_a","dcatFields","dcatDeFields","item","_hoisted_1","_hoisted_2","_openBlock","_createElementBlock","_createElementVNode","_renderSlot","_ctx","_createVNode","_component_dataset_details_feature_header","$data","$options","_cache","_createTextVNode","_withDirectives","_hoisted_3","_hoisted_4","_Fragment","_renderList","name","index","_createBlock","_component_dataset_details_property","_c","_d","_e","_f","_g","_hoisted_5","_vShow","_component_pv_show_more","_createCommentVNode"],"mappings":";;;;;;AAgDA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,wBAAAC;AAA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AAgB2B,IAAAZ,EAAA,YAAYQ,CAAI,MAAhB,gBAAAI,EAAmB;AAAA,gBACnC,QAAOC,IAAAb,EAAA,YAAYQ,CAAI,MAAhB,gBAAAK,EAAmB;AAAA,gBAC1B,aAAYC,IAAAd,EAAA,YAAYQ,CAAI,MAAhB,gBAAAM,EAAmB;AAAA,gBAC/B,eAAcC,IAAAf,EAAA,YAAYQ,CAAI,MAAhB,gBAAAO,EAAmB;AAAA,gBACjC,YAAWC,IAAAhB,EAAA,YAAYQ,CAAI,MAAhB,gBAAAQ,EAAmB;AAAA,gBAC9B,KAAKP;AAAA;;;;QA1BtBR,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,QA6BQC,EAAAT,EAAsG,OAAtGuB,GAAsG,MAAA,GAAA,GAAA;AAAA,UAApC,CAAAC,GAAAlB,EAAA,oBAAoBD,EAAQ,QAAA;AAAA;QA7BtGE,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,QA8BQP,EAAyCC,EAAA,QAAA,wBAAA,CAAA,GAAA,QAAA,EAAA;AAAA;YAjB9BG,EAAW,WAAA;AAAA;;IAb9BE,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IAkCYF,EAAe,wBADvBU,EAMES,GAAA;AAAA,MAvCN,KAAA;AAAA,MAmCO,OAAOpB,EAAA,WAAUH,EAAA,kCAAkCA,EAAE,GAAA,2BAAA;AAAA,MACrD,SAASG,EAAQ;AAAA,MACjB,QAAQC,EAAc;AAAA,MACvB,OAAM;AAAA,mDAtCZoB,EAAA,IAAA,EAAA;AAAA;;;"}
@@ -1,5 +1,5 @@
1
1
  import { noop as g, isIOS as F, toValue as P, notNullish as J, tryOnScopeDispose as $, isClient as R, isObject as X, isDef as Y, promiseTimeout as D, until as U } from "../shared/index";
2
- import { watchOnce as se } from "../shared/index";
2
+ import { watchOnce as se, whenever as le } from "../shared/index";
3
3
  import { computed as x, ref as y, watch as M, getCurrentInstance as C, isVue2 as B, nextTick as j, shallowRef as T, onMounted as q } from "vue-demi";
4
4
  function O(n) {
5
5
  var e;
@@ -273,6 +273,7 @@ export {
273
273
  G as useSupported,
274
274
  te as useVModel,
275
275
  ne as useWindowScroll,
276
- se as watchOnce
276
+ se as watchOnce,
277
+ le as whenever
277
278
  };
278
279
  //# sourceMappingURL=index.map
@@ -1,118 +1,131 @@
1
- import { getCurrentScope as j, onScopeDispose as N, unref as k, watch as g, nextTick as x, isRef as C } from "vue-demi";
1
+ import { watch as p, nextTick as P, getCurrentScope as N, onScopeDispose as k, unref as x, isRef as C } from "vue-demi";
2
2
  function U(n) {
3
- return j() ? (N(n), !0) : !1;
3
+ return N() ? (k(n), !0) : !1;
4
4
  }
5
5
  function d(n) {
6
- return typeof n == "function" ? n() : k(n);
6
+ return typeof n == "function" ? n() : x(n);
7
7
  }
8
8
  const D = typeof window < "u" && typeof document < "u";
9
9
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
10
  const W = (n) => typeof n < "u", _ = (n) => n != null, I = Object.prototype.toString, R = (n) => I.call(n) === "[object Object]", V = () => {
11
11
  }, q = /* @__PURE__ */ G();
12
12
  function G() {
13
- var n, e;
14
- return D && ((n = window == null ? void 0 : window.navigator) == null ? void 0 : n.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
13
+ var n, o;
14
+ return D && ((n = window == null ? void 0 : window.navigator) == null ? void 0 : n.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((o = window == null ? void 0 : window.navigator) == null ? void 0 : o.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
15
15
  }
16
- function b(n, e = !1, o = "Timeout") {
17
- return new Promise((r, f) => {
18
- setTimeout(e ? () => f(o) : r, n);
16
+ function O(n, o = !1, t = "Timeout") {
17
+ return new Promise((i, u) => {
18
+ setTimeout(o ? () => u(t) : i, n);
19
19
  });
20
20
  }
21
- function y(n, e = !1) {
22
- function o(t, { flush: i = "sync", deep: u = !1, timeout: c, throwOnTimeout: w } = {}) {
23
- let s = null;
24
- const h = [new Promise((p) => {
25
- s = g(
21
+ function T(n, o = !1) {
22
+ function t(e, { flush: r = "sync", deep: c = !1, timeout: s, throwOnTimeout: w } = {}) {
23
+ let l = null;
24
+ const v = [new Promise((m) => {
25
+ l = p(
26
26
  n,
27
27
  (a) => {
28
- t(a) !== e && (s == null || s(), p(a));
28
+ e(a) !== o && (l == null || l(), m(a));
29
29
  },
30
30
  {
31
- flush: i,
32
- deep: u,
31
+ flush: r,
32
+ deep: c,
33
33
  immediate: !0
34
34
  }
35
35
  );
36
36
  })];
37
- return c != null && h.push(
38
- b(c, w).then(() => d(n)).finally(() => s == null ? void 0 : s())
39
- ), Promise.race(h);
37
+ return s != null && v.push(
38
+ O(s, w).then(() => d(n)).finally(() => l == null ? void 0 : l())
39
+ ), Promise.race(v);
40
40
  }
41
- function r(t, i) {
42
- if (!C(t))
43
- return o((a) => a === t, i);
44
- const { flush: u = "sync", deep: c = !1, timeout: w, throwOnTimeout: s } = i ?? {};
45
- let l = null;
46
- const p = [new Promise((a) => {
47
- l = g(
48
- [n, t],
49
- ([T, B]) => {
50
- e !== (T === B) && (l == null || l(), a(T));
41
+ function i(e, r) {
42
+ if (!C(e))
43
+ return t((a) => a === e, r);
44
+ const { flush: c = "sync", deep: s = !1, timeout: w, throwOnTimeout: l } = r ?? {};
45
+ let f = null;
46
+ const m = [new Promise((a) => {
47
+ f = p(
48
+ [n, e],
49
+ ([S, j]) => {
50
+ o !== (S === j) && (f == null || f(), a(S));
51
51
  },
52
52
  {
53
- flush: u,
54
- deep: c,
53
+ flush: c,
54
+ deep: s,
55
55
  immediate: !0
56
56
  }
57
57
  );
58
58
  })];
59
- return w != null && p.push(
60
- b(w, s).then(() => d(n)).finally(() => (l == null || l(), d(n)))
61
- ), Promise.race(p);
59
+ return w != null && m.push(
60
+ O(w, l).then(() => d(n)).finally(() => (f == null || f(), d(n)))
61
+ ), Promise.race(m);
62
62
  }
63
- function f(t) {
64
- return o((i) => !!i, t);
63
+ function u(e) {
64
+ return t((r) => !!r, e);
65
65
  }
66
- function S(t) {
67
- return r(null, t);
66
+ function h(e) {
67
+ return i(null, e);
68
68
  }
69
- function O(t) {
70
- return r(void 0, t);
69
+ function g(e) {
70
+ return i(void 0, e);
71
71
  }
72
- function P(t) {
73
- return o(Number.isNaN, t);
72
+ function A(e) {
73
+ return t(Number.isNaN, e);
74
74
  }
75
- function A(t, i) {
76
- return o((u) => {
77
- const c = Array.from(u);
78
- return c.includes(t) || c.includes(d(t));
79
- }, i);
75
+ function B(e, r) {
76
+ return t((c) => {
77
+ const s = Array.from(c);
78
+ return s.includes(e) || s.includes(d(e));
79
+ }, r);
80
80
  }
81
- function v(t) {
82
- return m(1, t);
81
+ function b(e) {
82
+ return y(1, e);
83
83
  }
84
- function m(t = 1, i) {
85
- let u = -1;
86
- return o(() => (u += 1, u >= t), i);
84
+ function y(e = 1, r) {
85
+ let c = -1;
86
+ return t(() => (c += 1, c >= e), r);
87
87
  }
88
88
  return Array.isArray(d(n)) ? {
89
- toMatch: o,
90
- toContains: A,
91
- changed: v,
92
- changedTimes: m,
89
+ toMatch: t,
90
+ toContains: B,
91
+ changed: b,
92
+ changedTimes: y,
93
93
  get not() {
94
- return y(n, !e);
94
+ return T(n, !o);
95
95
  }
96
96
  } : {
97
- toMatch: o,
98
- toBe: r,
99
- toBeTruthy: f,
100
- toBeNull: S,
101
- toBeNaN: P,
102
- toBeUndefined: O,
103
- changed: v,
104
- changedTimes: m,
97
+ toMatch: t,
98
+ toBe: i,
99
+ toBeTruthy: u,
100
+ toBeNull: h,
101
+ toBeNaN: A,
102
+ toBeUndefined: g,
103
+ changed: b,
104
+ changedTimes: y,
105
105
  get not() {
106
- return y(n, !e);
106
+ return T(n, !o);
107
107
  }
108
108
  };
109
109
  }
110
110
  function z(n) {
111
- return y(n);
111
+ return T(n);
112
+ }
113
+ function E(n, o, t) {
114
+ const i = p(n, (...u) => (P(() => i()), o(...u)), t);
115
+ return i;
112
116
  }
113
- function E(n, e, o) {
114
- const r = g(n, (...f) => (x(() => r()), e(...f)), o);
115
- return r;
117
+ function F(n, o, t) {
118
+ const i = p(
119
+ n,
120
+ (u, h, g) => {
121
+ u && (t != null && t.once && P(() => i()), o(u, h, g));
122
+ },
123
+ {
124
+ ...t,
125
+ once: !1
126
+ }
127
+ );
128
+ return i;
116
129
  }
117
130
  export {
118
131
  D as isClient,
@@ -121,10 +134,11 @@ export {
121
134
  R as isObject,
122
135
  V as noop,
123
136
  _ as notNullish,
124
- b as promiseTimeout,
137
+ O as promiseTimeout,
125
138
  d as toValue,
126
139
  U as tryOnScopeDispose,
127
140
  z as until,
128
- E as watchOnce
141
+ E as watchOnce,
142
+ F as whenever
129
143
  };
130
144
  //# sourceMappingURL=index.map