@piveau/piveau-hub-ui-modules 4.1.3 → 4.1.5
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/data-provider-interface/DPIMenu.vue.mjs +74 -68
- package/dist/data-provider-interface/DPIMenu.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +182 -48
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +33 -32
- package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/FileUpload.vue.d.ts +3 -0
- package/dist/data-provider-interface/components/FileUpload.vue.mjs +146 -139
- package/dist/data-provider-interface/components/FileUpload.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SimpleSelect.vue.mjs +55 -44
- package/dist/data-provider-interface/components/SimpleSelect.vue.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatap/format-types.mjs +3 -3
- package/dist/data-provider-interface/config/dcatap/format-types.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatap/input-definition.mjs +108 -86
- package/dist/data-provider-interface/config/dcatap/input-definition.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatapde/input-definition.mjs +3 -3
- package/dist/data-provider-interface/config/dcatapde/input-definition.mjs.map +1 -1
- package/dist/data-provider-interface/views/DraftsPage.vue.d.ts +13 -1
- package/dist/data-provider-interface/views/DraftsPage.vue.mjs +154 -111
- package/dist/data-provider-interface/views/DraftsPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.mjs +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.mjs +27 -24
- package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.mjs.map +1 -1
- package/dist/form/Repeatable.vue.mjs +33 -33
- package/dist/form/Repeatable.vue.mjs.map +1 -1
- package/dist/form/inputDefinitions.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/dist/scss/_dpi-style.scss +17 -3
- package/dist/store/modules/authStore.d.ts +9 -0
- package/dist/store/modules/authStore.mjs +32 -24
- package/dist/store/modules/authStore.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,80 +1,91 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { useStore as
|
|
3
|
-
import { getNode as
|
|
4
|
-
import { onClickOutside as
|
|
5
|
-
import "axios";
|
|
6
|
-
import { useRuntimeEnv as
|
|
7
|
-
import "lodash-es";
|
|
8
|
-
import { FormKit as
|
|
1
|
+
import { computed as b, ref as n, onMounted as j, openBlock as s, createElementBlock as d, createElementVNode as u, toDisplayString as m, createTextVNode as p, createBlock as C, unref as l, isRef as x, withDirectives as q, Fragment as _, renderList as w, createCommentVNode as B, vShow as F } from "vue";
|
|
2
|
+
import { useStore as R } from "vuex";
|
|
3
|
+
import { getNode as v } from "@formkit/core";
|
|
4
|
+
import { onClickOutside as U } from "../../external/@vueuse/core/index";
|
|
5
|
+
import A from "axios";
|
|
6
|
+
import { useRuntimeEnv as D } from "../../composables/useRuntimeEnv.mjs";
|
|
7
|
+
import { has as L, isNil as N } from "lodash-es";
|
|
8
|
+
import { FormKit as S } from "@formkit/vue";
|
|
9
9
|
import "./SimpleSelect.vue2.mjs";
|
|
10
|
-
const
|
|
10
|
+
const J = { class: "formkitProperty" }, K = { class: "position-relative formkitCmpWrap" }, T = ["onClick"], $ = ["onClick"], Z = {
|
|
11
11
|
__name: "SimpleSelect",
|
|
12
12
|
props: {
|
|
13
13
|
context: Object
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
let
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
const k = async (
|
|
23
|
-
|
|
15
|
+
setup(V) {
|
|
16
|
+
const c = V, f = b(() => g.getters["auth/getUserCatalogIds"]);
|
|
17
|
+
let t = n();
|
|
18
|
+
const g = R(), h = n(null), y = n();
|
|
19
|
+
n(!0), y.value = b(() => g.getters["auth/getIsEditMode"]);
|
|
20
|
+
let i = n([]), E = D(), a = n();
|
|
21
|
+
a = v("dcat:catalog").value, U(h, (o) => t.value = !1);
|
|
22
|
+
const k = async (o) => {
|
|
23
|
+
c.context.node.input(o.id), t.value = !t.value, v("dcat:catalog").value = o.id, a = o.name;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
let I = async () => {
|
|
26
|
+
let o;
|
|
27
|
+
await A.get(E.api.baseUrl + "search?filter=catalogue").then((e) => o = e).catch((e) => {
|
|
28
|
+
reject(e);
|
|
29
|
+
}), o.data.result.results.forEach((e) => {
|
|
30
|
+
L(e, "title") && !N(e.title) && L(e, "id") && !N(e.id) && i.value.push({ title: Object.values(e.title)[0], id: e.id });
|
|
31
|
+
}), i.value = await i.value.filter((e) => f.value.includes(e.id)).map((e) => ({ id: e.id, name: e.title }));
|
|
32
|
+
let r = JSON.parse(JSON.stringify(i.value));
|
|
33
|
+
r.length === 1 && (a = r[0].id);
|
|
34
|
+
};
|
|
35
|
+
return j(async () => {
|
|
36
|
+
I();
|
|
37
|
+
}), (o, r) => (s(), d("div", J, [
|
|
38
|
+
u("h4", null, m(c.context.label), 1),
|
|
39
|
+
p(),
|
|
40
|
+
u("div", K, [
|
|
41
|
+
y.value.value ? (s(), C(l(S), {
|
|
31
42
|
key: 0,
|
|
32
43
|
class: "autocompleteInputfield",
|
|
33
44
|
type: "text",
|
|
34
45
|
readonly: "",
|
|
35
|
-
placeholder:
|
|
36
|
-
name:
|
|
37
|
-
}, null, 8, ["placeholder", "name"])) : (
|
|
46
|
+
placeholder: l(v)("dcat:catalog").value,
|
|
47
|
+
name: c.context.node.name
|
|
48
|
+
}, null, 8, ["placeholder", "name"])) : (s(), C(l(S), {
|
|
38
49
|
key: 1,
|
|
39
50
|
class: "autocompleteInputfield",
|
|
40
|
-
modelValue:
|
|
41
|
-
"onUpdate:modelValue":
|
|
42
|
-
placeholder:
|
|
51
|
+
modelValue: l(a),
|
|
52
|
+
"onUpdate:modelValue": r[0] || (r[0] = (e) => x(a) ? a.value = e : a = e),
|
|
53
|
+
placeholder: c.context.attrs.placeholder,
|
|
43
54
|
type: "text",
|
|
44
|
-
onClick:
|
|
55
|
+
onClick: r[1] || (r[1] = (e) => x(t) ? t.value = !l(t) : t = !l(t)),
|
|
45
56
|
validation: "required",
|
|
46
57
|
mandatory: "true",
|
|
47
58
|
readonly: "",
|
|
48
59
|
"validation-messages": {
|
|
49
60
|
required: "The catalog is required"
|
|
50
61
|
},
|
|
51
|
-
name:
|
|
62
|
+
name: c.context.node.name
|
|
52
63
|
}, null, 8, ["modelValue", "placeholder", "name"])),
|
|
53
|
-
|
|
54
|
-
|
|
64
|
+
p(),
|
|
65
|
+
q(u("ul", {
|
|
55
66
|
ref_key: "dropdownList",
|
|
56
|
-
ref:
|
|
67
|
+
ref: h,
|
|
57
68
|
class: "autocompleteResultList selectListFK"
|
|
58
69
|
}, [
|
|
59
|
-
(
|
|
70
|
+
(s(!0), d(_, null, w(l(i), (e) => (s(), d("li", {
|
|
60
71
|
key: e,
|
|
61
|
-
onClick: (
|
|
72
|
+
onClick: (O) => k(e),
|
|
62
73
|
class: "p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC"
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
|
|
74
|
+
}, m(e.name), 9, T))), 128)),
|
|
75
|
+
p(),
|
|
76
|
+
l(i).length === 0 ? (s(!0), d(_, { key: 0 }, w(f.value, (e) => (s(), d("li", {
|
|
66
77
|
key: e,
|
|
67
|
-
onClick: (
|
|
78
|
+
onClick: (O) => k(e),
|
|
68
79
|
class: "p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC"
|
|
69
|
-
},
|
|
80
|
+
}, m(e), 9, $))), 128)) : B("", !0)
|
|
70
81
|
], 512), [
|
|
71
|
-
[
|
|
82
|
+
[F, l(t)]
|
|
72
83
|
])
|
|
73
84
|
])
|
|
74
85
|
]));
|
|
75
86
|
}
|
|
76
87
|
};
|
|
77
88
|
export {
|
|
78
|
-
|
|
89
|
+
Z as default
|
|
79
90
|
};
|
|
80
91
|
//# sourceMappingURL=SimpleSelect.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleSelect.vue.mjs","sources":["../../../lib/data-provider-interface/components/SimpleSelect.vue"],"sourcesContent":["<script setup>\nimport { ref, computed, onMounted } from 'vue';\nimport { useStore } from 'vuex';\nimport { getNode } from '@formkit/core'\nimport { onClickOutside } from '@vueuse/core'\nimport axios from 'axios'\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv.ts\";\nimport {\n has,\n isNil,\n} from 'lodash-es';\nimport { FormKit } from '@formkit/vue';\n\nconst props = defineProps({\n context: Object\n})\n\nconst userCats = computed(() => store.getters['auth/getUserCatalogIds']);\nlet showList = ref()\
|
|
1
|
+
{"version":3,"file":"SimpleSelect.vue.mjs","sources":["../../../lib/data-provider-interface/components/SimpleSelect.vue"],"sourcesContent":["<template>\n <div class=\"formkitProperty\">\n <h4>{{ props.context.label }}</h4>\n\n <div class=\"position-relative formkitCmpWrap\">\n <FormKit v-if=\"isEditMode.value\" class=\"autocompleteInputfield\" type=\"text\" readonly\n :placeholder=\"getNode('dcat:catalog').value\" :name=\"props.context.node.name\" />\n <FormKit v-else class=\"autocompleteInputfield\" v-model=\"catVal\"\n :placeholder=\"props.context.attrs.placeholder\" type=\"text\" @click=\"showList = !showList\"\n validation=\"required\" mandatory=\"true\" readonly :validation-messages=\"{\n required: 'The catalog is required',\n }\" :name=\"props.context.node.name\" />\n\n <ul ref=\"dropdownList\" v-show=\"showList\" class=\"autocompleteResultList selectListFK\">\n\n <li v-for=\"match in filteredCatalogs\" :key=\"match\" @click=\"setvalue(match)\"\n class=\"p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC\">{{\n match.name }}\n </li>\n <li v-if=\"filteredCatalogs.length === 0\" v-for=\"idMatch in userCats\" :key=\"idMatch\"\n @click=\"setvalue(idMatch)\"\n class=\"p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC\">{{\n idMatch }}\n </li>\n </ul>\n </div>\n\n\n </div>\n\n</template>\n<script setup>\nimport { ref, computed, onMounted } from 'vue';\nimport { useStore } from 'vuex';\nimport { getNode } from '@formkit/core'\nimport { onClickOutside } from '@vueuse/core'\nimport axios from 'axios'\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv.ts\";\nimport {\n has,\n isNil,\n} from 'lodash-es';\nimport { FormKit } from '@formkit/vue';\n\nconst props = defineProps({\n context: Object\n})\n\nconst userCats = computed(() => store.getters['auth/getUserCatalogIds']);\nlet showList = ref()\nconst store = useStore()\nconst dropdownList = ref(null)\nconst isEditMode = ref()\nlet validationTrigger = ref(true)\nisEditMode.value = computed(() => store.getters['auth/getIsEditMode']);\nlet filteredCatalogs = ref([])\nlet env = useRuntimeEnv()\nlet catVal = ref()\n\ncatVal = getNode('dcat:catalog').value\n\nonClickOutside(dropdownList, event => showList.value = false)\n\nconst setvalue = async (e) => {\n validationTrigger = false\n props.context.node.input(e.id)\n showList.value = !showList.value;\n getNode('dcat:catalog').value = e.id\n catVal = e.name\n}\nlet filterCatList = async () => {\n let cache;\n await axios\n .get(env.api.baseUrl + 'search?filter=catalogue')\n .then(response => (cache = response))\n .catch((err) => {\n reject(err);\n });\n\n cache.data.result.results.forEach((e) => {\n if (has(e, 'title') && !isNil(e.title) && has(e, 'id') && !isNil(e.id)) filteredCatalogs.value.push({ title: Object.values(e.title)[0], id: e.id })\n });\n\n filteredCatalogs.value = await filteredCatalogs.value\n .filter(item => userCats.value.includes(item.id))\n .map(item => ({ id: item.id, name: item.title }));\n\n // Check if theres only one catalog and set it directly\n\n let clone = JSON.parse(JSON.stringify(filteredCatalogs.value))\n if (clone.length === 1) {\n catVal = clone[0].id\n }\n}\n\n\nonMounted(async () => {\n filterCatList();\n});\n\n</script>\n<style>\n.selectListFK {\n max-height: 20rem;\n overflow: overlay;\n overflow-x: hidden;\n}\n</style>"],"names":["props","__props","userCats","computed","store","showList","ref","useStore","dropdownList","isEditMode","filteredCatalogs","env","useRuntimeEnv","catVal","getNode","onClickOutside","event","setvalue","e","filterCatList","cache","axios","response","err","has","isNil","item","clone","onMounted"],"mappings":";;;;;;;;;;;;;;;AA4CA,UAAMA,IAAQC,GAIRC,IAAWC,EAAS,MAAMC,EAAM,QAAQ,wBAAwB,CAAC;AACvE,QAAIC,IAAWC,EAAK;AACpB,UAAMF,IAAQG,EAAU,GAClBC,IAAeF,EAAI,IAAI,GACvBG,IAAaH,EAAK;AACA,IAAAA,EAAI,EAAI,GAChCG,EAAW,QAAQN,EAAS,MAAMC,EAAM,QAAQ,oBAAoB,CAAC;AACrE,QAAIM,IAAmBJ,EAAI,EAAE,GACzBK,IAAMC,EAAe,GACrBC,IAASP,EAAK;AAElB,IAAAO,IAASC,EAAQ,cAAc,EAAE,OAEjCC,EAAeP,GAAc,CAAAQ,MAASX,EAAS,QAAQ,EAAK;AAE5D,UAAMY,IAAW,OAAOC,MAAM;AAE1B,MAAAlB,EAAM,QAAQ,KAAK,MAAMkB,EAAE,EAAE,GAC7Bb,EAAS,QAAQ,CAACA,EAAS,OAC3BS,EAAQ,cAAc,EAAE,QAAQI,EAAE,IAClCL,IAASK,EAAE;AAAA,IACf;AACA,QAAIC,IAAgB,YAAY;AAC5B,UAAIC;AACJ,YAAMC,EACD,IAAIV,EAAI,IAAI,UAAU,yBAAyB,EAC/C,KAAK,CAAAW,MAAaF,IAAQE,CAAS,EACnC,MAAM,CAACC,MAAQ;AACZ,eAAOA,CAAG;AAAA,MACtB,CAAS,GAELH,EAAM,KAAK,OAAO,QAAQ,QAAQ,CAAC,MAAM;AACrC,QAAII,EAAI,GAAG,OAAO,KAAK,CAACC,EAAM,EAAE,KAAK,KAAKD,EAAI,GAAG,IAAI,KAAK,CAACC,EAAM,EAAE,EAAE,KAAGf,EAAiB,MAAM,KAAK,EAAE,OAAO,OAAO,OAAO,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,GAAE,CAAE;AAAA,MAC1J,CAAK,GAEDA,EAAiB,QAAQ,MAAMA,EAAiB,MAC3C,OAAO,CAAAgB,MAAQxB,EAAS,MAAM,SAASwB,EAAK,EAAE,CAAC,EAC/C,IAAI,CAAAA,OAAS,EAAE,IAAIA,EAAK,IAAI,MAAMA,EAAK,MAAO,EAAC;AAIpD,UAAIC,IAAQ,KAAK,MAAM,KAAK,UAAUjB,EAAiB,KAAK,CAAC;AAC7D,MAAIiB,EAAM,WAAW,MACjBd,IAASc,EAAM,CAAC,EAAE;AAAA,IAE1B;AAGA,WAAAC,EAAU,YAAY;AAClB,MAAAT;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -219,7 +219,8 @@ const t = {
|
|
|
219
219
|
"skos:exactMatch",
|
|
220
220
|
"foaf:homepage",
|
|
221
221
|
"dext:isUsedBy",
|
|
222
|
-
"dcat:endpointURL"
|
|
222
|
+
"dcat:endpointURL",
|
|
223
|
+
"dct:isPartOf"
|
|
223
224
|
],
|
|
224
225
|
// {'@id': ''} mainly used for repeated links
|
|
225
226
|
id: [
|
|
@@ -237,8 +238,7 @@ const t = {
|
|
|
237
238
|
"dct:isReferencedBy",
|
|
238
239
|
"prov:wasGeneratedBy",
|
|
239
240
|
"dct:isVersionOf",
|
|
240
|
-
"dct:hasVersion"
|
|
241
|
-
"dct:isPartOf"
|
|
241
|
+
"dct:hasVersion"
|
|
242
242
|
]
|
|
243
243
|
}, n = {
|
|
244
244
|
singularURI: t,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-types.mjs","sources":["../../../../lib/data-provider-interface/config/dcatap/format-types.js"],"sourcesContent":["// all properties which value is a single URI\nconst singularURI = {\n datasets: [\n \"dct:publisher\",\n \"dct:accrualPeriodicity\",\n \"dct:accessRights\",\n \"dct:type\",\n // singular URIs nested within other properties\n 'vcard:hasEmail', // contact point\n 'vcard:hasURL', // contect point\n 'dext:isUsedBy', // isUsedBy\n 'foaf:mbox', // creator\n 'foaf:homepage', // creator\n 'dct:format', // page\n ],\n distributions: [\n \"dct:format\",\n \"dct:type\",\n \"dcat:mediaType\",\n \"dcatap:availability\",\n \"dcat:compressFormat\",\n \"dcat:packageFormat\",\n \"adms:status\",\n // singular URIs nested within other properties\n 'spdx:algorithm', // checksum\n 'dcat:endpointURL', // accessservice\n \"skos:exactMatch\", // license\n ],\n catalogues: [\n 'foaf:homepage', // homepage and creator\n 'dct:publisher',\n 'dct:isPartOf',\n // singular URIs nested within other properties\n 'foaf:mbox', // creator\n 'dct:format', // page\n \"skos:exactMatch\", // license\n ],\n};\n\n// all properties with multiple URI values\nconst multipleURI = {\n datasets: [\n \"dct:language\", \n \"dct:subject\", \n \"dcat:theme\",\n \"dct:spatial\",\n \"dct:source\",\n \"dcat:landingPage\",\n \"dct:relation\",\n \"dcat:qualifiedRelation\",\n \"prov:qualifiedAttribution\",\n \"dct:isReferencedBy\",\n \"prov:wasGeneratedBy\",\n \"dct:isVersionOf\",\n \"dct:hasVersion\",\n ],\n distributions: [\n \"dcat:accessURL\",\n \"dcat:downloadURL\",\n \"dct:language\",\n \"odrl:hasPolicy\",\n ],\n catalogues: [\n \"dct:hasPart\",\n 'dct:spatial',\n 'dcat:catalog',\n 'dct:language',\n ],\n};\n\n// all properties which are typed strings\nconst typedStrings = {\n datasets: [\n \"dct:issued\",\n \"dct:modified\",\n \"dcat:spatialResolutionInMeters\",\n // nested typed strings\n 'dcat:endDate',\n 'dcat:startDate',\n ],\n distributions: [\n \"dct:issued\",\n \"dct:modified\",\n \"dcat:spatialResolutionInMeters\",\n \"dcat:byteSize\",\n ],\n catalogues: [],\n};\n\n// all properties with a singular string\nconst singularString = {\n datasets: [\n \"owl:versionInfo\",\n // nested singulat strings\n 'vcard:fn', // contactPoint\n 'vcard:hasOrganizationName', // contactPoint\n 'vcard:hasTelephone', // contactPoint\n \"vcard:country_name\", // hasAddress\n \"vcard:locality\", // hasAddress\n \"vcard:postal_code\", // hasAddress\n \"vcard:street_address\", // hasAddress\n 'rdfs:label', // conformsTo and provenance\n 'foaf:name', // creator\n ],\n distributions: [\n // nested singular string\n 'spdx:checksumValue', //checksum\n 'rdfs:label', // rights !!!\n \"skos:prefLabel\", //license\n ],\n catalogues: [\n // nested singular strings\n 'rdfs:label', // conformsTo and rights\n 'foaf:name', // creator\n \"skos:prefLabel\", // license\n ],\n};\n\n// all properties which can be provided in different languages\nconst multilingualStrings = {\n datasets: [\n \"dct:title\", // also nested within page\n \"dct:description\", // also nested within page\n \"dcat:keyword\",\n \"adms:versionNotes\",\n ],\n distributions: [\n \"dct:title\", // also nested within page\n \"dct:description\", // also nested within page\n ],\n catalogues: [\n 'dct:title', \n 'dct:description', \n ],\n};\n\n// all properties which contain grouped values\nconst groupedProperties = {\n datasets: [\n 'dcat:contactPoint',\n 'dct:creator',\n 'dext:metadataExtension',\n 'dct:provenance',\n 'dct:conformsTo',\n 'foaf:page',\n 'dct:temporal',\n 'adms:identifier',\n // nested grouped properties\n 'vcard:hasAddress',\n 'skos:notation',\n ],\n distributions: [\n 'foaf:page',\n 'dcat:accessService',\n 'spdx:checksum',\n 'dct:conformsTo',\n ],\n catalogues: [\n 'dct:creator',\n 'dct:conformsTo',\n ]\n};\n\n// for properties with dynamic input type\nconst conditionalProperties = {\n datasets: [],\n distributions: [\n 'dct:license'\n ],\n catalogues: [\n 'dct:license'\n ],\n}\n\n// some properties have additional statement included which must be added to the linked data\nconst additionalPropertyTypes = {\n 'dct:temporal': 'dct:PeriodOfTime',\n 'dct:conformsTo': 'dct:Standard',\n 'foaf:page': 'foaf:Document',\n 'dct:provenance': 'dct:ProvenanceStatement',\n 'dext:metadataExtension': 'dext:MetadataExtension',\n 'spdx:checksum': 'spdx:Checksum',\n 'dcat:accessService': 'dcat:DataService',\n 'dct:license': 'dct:LicenseDocument'\n}\n\n// some inputs need URIs in diefferent formats\nconst URIformat = {\n // {'name': '', 'resource': ''} mainly needed for vocabulary data\n voc: [\n 'dct:publisher',\n 'dcat:theme',\n \"dct:accrualPeriodicity\",\n \"dct:accessRights\",\n \"dct:type\",\n \"dct:format\",\n \"dcat:mediaType\",\n \"dcatap:availability\",\n \"dcat:compressFormat\",\n \"dcat:packageFormat\",\n 'spdx:algorithm',\n \"dct:subject\",\n \"dct:language\",\n \"adms:status\",\n \"dct:spatial\",\n\n ],\n // 'URI' mainly used for mail addresses\n string: [\n 'vcard:hasEmail',\n 'vcard:hasURL',\n 'foaf:mbox',\n \"skos:exactMatch\",\n 'foaf:homepage',\n 'dext:isUsedBy',\n 'dcat:endpointURL',\n ],\n // {'@id': ''} mainly used for repeated links\n id: [\n 'dct:source',\n \"dcat:accessURL\",\n \"dcat:downloadURL\",\n \"odrl:hasPolicy\",\n \"dct:hasPart\",\n 'dcat:catalog',\n \"dct:source\",\n \"dcat:landingPage\",\n \"dct:relation\",\n \"dcat:qualifiedRelation\",\n \"prov:qualifiedAttribution\",\n \"dct:isReferencedBy\",\n \"prov:wasGeneratedBy\",\n \"dct:isVersionOf\",\n \"dct:hasVersion\",\n
|
|
1
|
+
{"version":3,"file":"format-types.mjs","sources":["../../../../lib/data-provider-interface/config/dcatap/format-types.js"],"sourcesContent":["// all properties which value is a single URI\nconst singularURI = {\n datasets: [\n \"dct:publisher\",\n \"dct:accrualPeriodicity\",\n \"dct:accessRights\",\n \"dct:type\",\n // singular URIs nested within other properties\n 'vcard:hasEmail', // contact point\n 'vcard:hasURL', // contect point\n 'dext:isUsedBy', // isUsedBy\n 'foaf:mbox', // creator\n 'foaf:homepage', // creator\n 'dct:format', // page\n ],\n distributions: [\n \"dct:format\",\n \"dct:type\",\n \"dcat:mediaType\",\n \"dcatap:availability\",\n \"dcat:compressFormat\",\n \"dcat:packageFormat\",\n \"adms:status\",\n // singular URIs nested within other properties\n 'spdx:algorithm', // checksum\n 'dcat:endpointURL', // accessservice\n \"skos:exactMatch\", // license\n ],\n catalogues: [\n 'foaf:homepage', // homepage and creator\n 'dct:publisher',\n 'dct:isPartOf',\n // singular URIs nested within other properties\n 'foaf:mbox', // creator\n 'dct:format', // page\n \"skos:exactMatch\", // license\n ],\n};\n\n// all properties with multiple URI values\nconst multipleURI = {\n datasets: [\n \"dct:language\", \n \"dct:subject\", \n \"dcat:theme\",\n \"dct:spatial\",\n \"dct:source\",\n \"dcat:landingPage\",\n \"dct:relation\",\n \"dcat:qualifiedRelation\",\n \"prov:qualifiedAttribution\",\n \"dct:isReferencedBy\",\n \"prov:wasGeneratedBy\",\n \"dct:isVersionOf\",\n \"dct:hasVersion\",\n ],\n distributions: [\n \"dcat:accessURL\",\n \"dcat:downloadURL\",\n \"dct:language\",\n \"odrl:hasPolicy\",\n ],\n catalogues: [\n \"dct:hasPart\",\n 'dct:spatial',\n 'dcat:catalog',\n 'dct:language',\n ],\n};\n\n// all properties which are typed strings\nconst typedStrings = {\n datasets: [\n \"dct:issued\",\n \"dct:modified\",\n \"dcat:spatialResolutionInMeters\",\n // nested typed strings\n 'dcat:endDate',\n 'dcat:startDate',\n ],\n distributions: [\n \"dct:issued\",\n \"dct:modified\",\n \"dcat:spatialResolutionInMeters\",\n \"dcat:byteSize\",\n ],\n catalogues: [],\n};\n\n// all properties with a singular string\nconst singularString = {\n datasets: [\n \"owl:versionInfo\",\n // nested singulat strings\n 'vcard:fn', // contactPoint\n 'vcard:hasOrganizationName', // contactPoint\n 'vcard:hasTelephone', // contactPoint\n \"vcard:country_name\", // hasAddress\n \"vcard:locality\", // hasAddress\n \"vcard:postal_code\", // hasAddress\n \"vcard:street_address\", // hasAddress\n 'rdfs:label', // conformsTo and provenance\n 'foaf:name', // creator\n ],\n distributions: [\n // nested singular string\n 'spdx:checksumValue', //checksum\n 'rdfs:label', // rights !!!\n \"skos:prefLabel\", //license\n ],\n catalogues: [\n // nested singular strings\n 'rdfs:label', // conformsTo and rights\n 'foaf:name', // creator\n \"skos:prefLabel\", // license\n ],\n};\n\n// all properties which can be provided in different languages\nconst multilingualStrings = {\n datasets: [\n \"dct:title\", // also nested within page\n \"dct:description\", // also nested within page\n \"dcat:keyword\",\n \"adms:versionNotes\",\n ],\n distributions: [\n \"dct:title\", // also nested within page\n \"dct:description\", // also nested within page\n ],\n catalogues: [\n 'dct:title', \n 'dct:description', \n ],\n};\n\n// all properties which contain grouped values\nconst groupedProperties = {\n datasets: [\n 'dcat:contactPoint',\n 'dct:creator',\n 'dext:metadataExtension',\n 'dct:provenance',\n 'dct:conformsTo',\n 'foaf:page',\n 'dct:temporal',\n 'adms:identifier',\n // nested grouped properties\n 'vcard:hasAddress',\n 'skos:notation',\n ],\n distributions: [\n 'foaf:page',\n 'dcat:accessService',\n 'spdx:checksum',\n 'dct:conformsTo',\n ],\n catalogues: [\n 'dct:creator',\n 'dct:conformsTo',\n ]\n};\n\n// for properties with dynamic input type\nconst conditionalProperties = {\n datasets: [],\n distributions: [\n 'dct:license'\n ],\n catalogues: [\n 'dct:license'\n ],\n}\n\n// some properties have additional statement included which must be added to the linked data\nconst additionalPropertyTypes = {\n 'dct:temporal': 'dct:PeriodOfTime',\n 'dct:conformsTo': 'dct:Standard',\n 'foaf:page': 'foaf:Document',\n 'dct:provenance': 'dct:ProvenanceStatement',\n 'dext:metadataExtension': 'dext:MetadataExtension',\n 'spdx:checksum': 'spdx:Checksum',\n 'dcat:accessService': 'dcat:DataService',\n 'dct:license': 'dct:LicenseDocument'\n}\n\n// some inputs need URIs in diefferent formats\nconst URIformat = {\n // {'name': '', 'resource': ''} mainly needed for vocabulary data\n voc: [\n 'dct:publisher',\n 'dcat:theme',\n \"dct:accrualPeriodicity\",\n \"dct:accessRights\",\n \"dct:type\",\n \"dct:format\",\n \"dcat:mediaType\",\n \"dcatap:availability\",\n \"dcat:compressFormat\",\n \"dcat:packageFormat\",\n 'spdx:algorithm',\n \"dct:subject\",\n \"dct:language\",\n \"adms:status\",\n \"dct:spatial\",\n\n ],\n // 'URI' mainly used for mail addresses\n string: [\n 'vcard:hasEmail',\n 'vcard:hasURL',\n 'foaf:mbox',\n \"skos:exactMatch\",\n 'foaf:homepage',\n 'dext:isUsedBy',\n 'dcat:endpointURL',\n 'dct:isPartOf',\n ],\n // {'@id': ''} mainly used for repeated links\n id: [\n 'dct:source',\n \"dcat:accessURL\",\n \"dcat:downloadURL\",\n \"odrl:hasPolicy\",\n \"dct:hasPart\",\n 'dcat:catalog',\n \"dct:source\",\n \"dcat:landingPage\",\n \"dct:relation\",\n \"dcat:qualifiedRelation\",\n \"prov:qualifiedAttribution\",\n \"dct:isReferencedBy\",\n \"prov:wasGeneratedBy\",\n \"dct:isVersionOf\",\n \"dct:hasVersion\",\n \n ]\n}\n\nexport default {\n singularURI,\n multipleURI,\n typedStrings,\n singularString,\n multilingualStrings,\n groupedProperties,\n additionalPropertyTypes,\n conditionalProperties,\n URIformat\n};\n"],"names":["singularURI","multipleURI","typedStrings","singularString","multilingualStrings","groupedProperties","conditionalProperties","additionalPropertyTypes","URIformat","formatTypes"],"mappings":"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"}
|
|
@@ -1013,6 +1013,7 @@ const t = {
|
|
|
1013
1013
|
identifier: "accessUrl",
|
|
1014
1014
|
$formkit: "repeatable",
|
|
1015
1015
|
name: "dcat:accessURL",
|
|
1016
|
+
validation: "required",
|
|
1016
1017
|
children: [
|
|
1017
1018
|
{
|
|
1018
1019
|
identifier: "accessUrl",
|
|
@@ -1460,35 +1461,29 @@ const t = {
|
|
|
1460
1461
|
},
|
|
1461
1462
|
rights: {
|
|
1462
1463
|
identifier: "rights",
|
|
1463
|
-
|
|
1464
|
+
id: "rightsCondDataset",
|
|
1465
|
+
$formkit: "simpleConditional",
|
|
1464
1466
|
name: "dct:rights",
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
else: {
|
|
1486
|
-
type: "text",
|
|
1487
|
-
name: "rdfs:label"
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
]
|
|
1467
|
+
options: { url: "rdfs:label", text: "rdfs:label" },
|
|
1468
|
+
selection: { 1: "URL", 2: "Text" }
|
|
1469
|
+
// {
|
|
1470
|
+
// identifier: 'rights',
|
|
1471
|
+
// $cmp: 'FormKit',
|
|
1472
|
+
// if: '$get(rightsCondDataset).value',
|
|
1473
|
+
// props: {
|
|
1474
|
+
// if: '$get(rightsCondDataset).value === url',
|
|
1475
|
+
// then: {
|
|
1476
|
+
// identifier: 'rightsUrl',
|
|
1477
|
+
// type: "url",
|
|
1478
|
+
// label: "URL",
|
|
1479
|
+
// name: 'rdfs:label'
|
|
1480
|
+
// },
|
|
1481
|
+
// else: {
|
|
1482
|
+
// type: 'text',
|
|
1483
|
+
// name: 'rdfs:label',
|
|
1484
|
+
// }
|
|
1485
|
+
// }
|
|
1486
|
+
// },
|
|
1492
1487
|
},
|
|
1493
1488
|
spatialResolutionInMeters: {
|
|
1494
1489
|
identifier: "spatialResolutionInMeters",
|
|
@@ -1557,7 +1552,7 @@ const t = {
|
|
|
1557
1552
|
overview: {
|
|
1558
1553
|
$cmp: "OverviewPage",
|
|
1559
1554
|
props: {
|
|
1560
|
-
property: "
|
|
1555
|
+
property: "catalogues"
|
|
1561
1556
|
}
|
|
1562
1557
|
},
|
|
1563
1558
|
datasetID: {
|
|
@@ -1578,45 +1573,43 @@ const t = {
|
|
|
1578
1573
|
mandatory: !0,
|
|
1579
1574
|
minimum: 1,
|
|
1580
1575
|
children: [
|
|
1581
|
-
{
|
|
1582
|
-
identifier: "titleLabel",
|
|
1583
|
-
$formkit: "text",
|
|
1584
|
-
name: "@value",
|
|
1585
|
-
validation: "required"
|
|
1586
|
-
},
|
|
1587
1576
|
{
|
|
1588
1577
|
identifier: "language",
|
|
1589
1578
|
value: "en",
|
|
1590
1579
|
$formkit: "select",
|
|
1591
1580
|
validation: "required",
|
|
1592
1581
|
options: e,
|
|
1593
|
-
name: "@language"
|
|
1582
|
+
name: "@language",
|
|
1583
|
+
classes: {
|
|
1584
|
+
outer: "w25-textfield"
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
identifier: "title",
|
|
1589
|
+
$formkit: "text",
|
|
1590
|
+
name: "@value",
|
|
1591
|
+
validation: "required",
|
|
1592
|
+
mandatory: !0,
|
|
1593
|
+
classes: {
|
|
1594
|
+
outer: "w75-textfield"
|
|
1595
|
+
}
|
|
1594
1596
|
}
|
|
1595
1597
|
]
|
|
1596
1598
|
}
|
|
1597
1599
|
]
|
|
1598
1600
|
},
|
|
1599
1601
|
description: {
|
|
1600
|
-
identifier: "
|
|
1602
|
+
identifier: "description",
|
|
1601
1603
|
$formkit: "repeatable",
|
|
1602
1604
|
name: "dct:description",
|
|
1603
1605
|
children: [
|
|
1604
1606
|
{
|
|
1605
|
-
identifier: "
|
|
1607
|
+
identifier: "description",
|
|
1606
1608
|
$formkit: "group",
|
|
1607
1609
|
name: "dct:description",
|
|
1608
1610
|
mandatory: !0,
|
|
1609
1611
|
minimum: 1,
|
|
1610
1612
|
children: [
|
|
1611
|
-
{
|
|
1612
|
-
identifier: "description",
|
|
1613
|
-
$formkit: "textarea",
|
|
1614
|
-
name: "@value",
|
|
1615
|
-
validation: "required",
|
|
1616
|
-
classes: {
|
|
1617
|
-
outer: "w25-textfield"
|
|
1618
|
-
}
|
|
1619
|
-
},
|
|
1620
1613
|
{
|
|
1621
1614
|
identifier: "language",
|
|
1622
1615
|
value: "en",
|
|
@@ -1625,7 +1618,16 @@ const t = {
|
|
|
1625
1618
|
validation: "required",
|
|
1626
1619
|
name: "@language",
|
|
1627
1620
|
classes: {
|
|
1628
|
-
outer: "
|
|
1621
|
+
outer: "w25-descField"
|
|
1622
|
+
}
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
identifier: "description",
|
|
1626
|
+
$formkit: "textarea",
|
|
1627
|
+
name: "@value",
|
|
1628
|
+
validation: "required",
|
|
1629
|
+
classes: {
|
|
1630
|
+
outer: "w75-textfield"
|
|
1629
1631
|
}
|
|
1630
1632
|
}
|
|
1631
1633
|
]
|
|
@@ -1669,7 +1671,7 @@ const t = {
|
|
|
1669
1671
|
},
|
|
1670
1672
|
homepage: {
|
|
1671
1673
|
identifier: "homepage",
|
|
1672
|
-
$formkit: "
|
|
1674
|
+
$formkit: "simpleInput",
|
|
1673
1675
|
name: "foaf:homepage",
|
|
1674
1676
|
validation: "optional|url"
|
|
1675
1677
|
},
|
|
@@ -1687,7 +1689,10 @@ const t = {
|
|
|
1687
1689
|
identifier: "hasPartURL",
|
|
1688
1690
|
$formkit: "url",
|
|
1689
1691
|
name: "@id",
|
|
1690
|
-
|
|
1692
|
+
validationType: "url",
|
|
1693
|
+
classes: {
|
|
1694
|
+
outer: "w100-textfield"
|
|
1695
|
+
}
|
|
1691
1696
|
}
|
|
1692
1697
|
]
|
|
1693
1698
|
}
|
|
@@ -1695,41 +1700,43 @@ const t = {
|
|
|
1695
1700
|
},
|
|
1696
1701
|
isPartOf: {
|
|
1697
1702
|
identifier: "isPartOf",
|
|
1703
|
+
$formkit: "simpleInput",
|
|
1698
1704
|
name: "dct:isPartOf",
|
|
1699
|
-
|
|
1700
|
-
validation: "optional|url"
|
|
1705
|
+
validationType: "url"
|
|
1701
1706
|
},
|
|
1702
1707
|
rights: {
|
|
1703
1708
|
identifier: "rights",
|
|
1704
|
-
$formkit: "
|
|
1709
|
+
$formkit: "simpleConditional",
|
|
1705
1710
|
name: "dct:rights",
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1711
|
+
options: { url: "rdfs:label", text: "rdfs:label" },
|
|
1712
|
+
selection: { 1: "URL", 2: "Text" }
|
|
1713
|
+
// children: [
|
|
1714
|
+
// {
|
|
1715
|
+
// identifier: 'rights',
|
|
1716
|
+
// $formkit: "select",
|
|
1717
|
+
// name: '@type',
|
|
1718
|
+
// options: { url: 'Provide an URL', str: 'String' },
|
|
1719
|
+
// id: "rightsModeCatalogue"
|
|
1720
|
+
// },
|
|
1721
|
+
// {
|
|
1722
|
+
// identifier: 'rights',
|
|
1723
|
+
// $cmp: "FormKit",
|
|
1724
|
+
// if: "$get(rightsModeCatalogue).value",
|
|
1725
|
+
// props: {
|
|
1726
|
+
// if: "$get(rightsModeCatalogue).value === url",
|
|
1727
|
+
// then: {
|
|
1728
|
+
// identifier: 'rightsUrl',
|
|
1729
|
+
// type: "url",
|
|
1730
|
+
// label: "URL",
|
|
1731
|
+
// name: 'rdfs:label',
|
|
1732
|
+
// },
|
|
1733
|
+
// else: {
|
|
1734
|
+
// type: "text",
|
|
1735
|
+
// name: 'rdfs:label',
|
|
1736
|
+
// }
|
|
1737
|
+
// }
|
|
1738
|
+
// }
|
|
1739
|
+
// ]
|
|
1733
1740
|
},
|
|
1734
1741
|
catalog: {
|
|
1735
1742
|
identifier: "catalog",
|
|
@@ -1744,8 +1751,11 @@ const t = {
|
|
|
1744
1751
|
{
|
|
1745
1752
|
identifier: "catalogURL",
|
|
1746
1753
|
$formkit: "url",
|
|
1747
|
-
|
|
1748
|
-
name: "@id"
|
|
1754
|
+
validationType: "url",
|
|
1755
|
+
name: "@id",
|
|
1756
|
+
classes: {
|
|
1757
|
+
outer: "w100-textfield"
|
|
1758
|
+
}
|
|
1749
1759
|
}
|
|
1750
1760
|
]
|
|
1751
1761
|
}
|
|
@@ -1753,7 +1763,7 @@ const t = {
|
|
|
1753
1763
|
},
|
|
1754
1764
|
creator: {
|
|
1755
1765
|
identifier: "creator",
|
|
1756
|
-
$formkit: "
|
|
1766
|
+
$formkit: "formkitGroup",
|
|
1757
1767
|
name: "dct:creator",
|
|
1758
1768
|
children: [
|
|
1759
1769
|
{
|
|
@@ -1764,24 +1774,36 @@ const t = {
|
|
|
1764
1774
|
"": "---",
|
|
1765
1775
|
"foaf:Person": "Person",
|
|
1766
1776
|
"foaf:Organization": "Organization"
|
|
1777
|
+
},
|
|
1778
|
+
classes: {
|
|
1779
|
+
outer: "w100-textfield"
|
|
1767
1780
|
}
|
|
1768
1781
|
},
|
|
1769
1782
|
{
|
|
1770
1783
|
identifier: "creatorName",
|
|
1771
1784
|
$formkit: "text",
|
|
1772
|
-
name: "foaf:name"
|
|
1785
|
+
name: "foaf:name",
|
|
1786
|
+
classes: {
|
|
1787
|
+
outer: "w100-textfield"
|
|
1788
|
+
}
|
|
1773
1789
|
},
|
|
1774
1790
|
{
|
|
1775
1791
|
identifier: "creatorEmail",
|
|
1776
1792
|
$formkit: "email",
|
|
1777
1793
|
name: "foaf:mbox",
|
|
1778
|
-
validation: "optional|email"
|
|
1794
|
+
validation: "optional|email",
|
|
1795
|
+
classes: {
|
|
1796
|
+
outer: "w100-textfield"
|
|
1797
|
+
}
|
|
1779
1798
|
},
|
|
1780
1799
|
{
|
|
1781
1800
|
identifier: "creatorHomepage",
|
|
1782
1801
|
$formkit: "url",
|
|
1783
1802
|
name: "foaf:homepage",
|
|
1784
|
-
validation: "optional|url"
|
|
1803
|
+
validation: "optional|url",
|
|
1804
|
+
classes: {
|
|
1805
|
+
outer: "w100-textfield"
|
|
1806
|
+
}
|
|
1785
1807
|
}
|
|
1786
1808
|
]
|
|
1787
1809
|
}
|