@piveau/piveau-hub-ui-modules 4.2.0 → 4.3.0-beta.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.
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +98 -98
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +136 -129
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +60 -60
- package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/FileUpload.vue.mjs +2 -2
- package/dist/data-provider-interface/components/FileUpload.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.d.ts +7 -0
- package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.mjs +33 -0
- package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.mjs.map +1 -0
- package/dist/data-provider-interface/components/SimpleInput.vue.mjs +16 -20
- package/dist/data-provider-interface/components/SimpleInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SimpleSelect.vue.mjs +31 -31
- package/dist/data-provider-interface/components/SimpleSelect.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SpatialInput.vue.mjs +90 -94
- package/dist/data-provider-interface/components/SpatialInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SpatialInput.vue2.mjs +2 -2
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs +41 -30
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatapde/input-definition.mjs +105 -97
- package/dist/data-provider-interface/config/dcatapde/input-definition.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatapdeODB/input-definition.mjs +2 -6
- package/dist/data-provider-interface/config/dcatapdeODB/input-definition.mjs.map +1 -1
- package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs +52 -52
- package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.mjs +67 -67
- package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
- package/dist/form/Repeatable.vue.mjs +29 -29
- package/dist/form/Repeatable.vue.mjs.map +1 -1
- package/dist/form/inputDefinitions.mjs +13 -8
- package/dist/form/inputDefinitions.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/package.json +1 -1
|
@@ -1,32 +1,43 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { isNil as
|
|
3
|
-
import
|
|
4
|
-
import { useStore as
|
|
5
|
-
|
|
1
|
+
import { getCurrentInstance as g, ref as u, onMounted as I, watchEffect as h, resolveComponent as D, openBlock as i, createElementBlock as q, createElementVNode as _, toDisplayString as $, createTextVNode as b, createBlock as n, unref as y } from "vue";
|
|
2
|
+
import { isNil as k } from "lodash-es";
|
|
3
|
+
import E from "axios";
|
|
4
|
+
import { useStore as U } from "vuex";
|
|
5
|
+
import { useI18n as C } from "vue-i18n";
|
|
6
|
+
const M = { class: "formkitProperty DSid" }, N = {
|
|
6
7
|
props: ["context"]
|
|
7
|
-
},
|
|
8
|
+
}, V = /* @__PURE__ */ Object.assign(N, {
|
|
8
9
|
__name: "UniqueIdentifierInput",
|
|
9
|
-
setup(
|
|
10
|
-
let
|
|
11
|
-
const
|
|
12
|
-
o.value = localStorage.getItem("dpi_duplicate"), l.value =
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
setup(S) {
|
|
11
|
+
let p = g().appContext.app.config.globalProperties.$env;
|
|
12
|
+
const d = U(), l = u(), o = u();
|
|
13
|
+
o.value = localStorage.getItem("dpi_duplicate"), l.value = d.getters["auth/getIsEditMode"];
|
|
14
|
+
const { t: s, locale: B } = C();
|
|
15
|
+
let r = {
|
|
16
|
+
idformatvalid: "",
|
|
17
|
+
idunique: "",
|
|
18
|
+
required: ""
|
|
16
19
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
I(() => {
|
|
21
|
+
r = {
|
|
22
|
+
idformatvalid: s("message.dataupload.datasets.datasetID.invalidFormat"),
|
|
23
|
+
idunique: s("message.dataupload.datasets.datasetID.duplicate"),
|
|
24
|
+
required: s("message.dataupload.datasets.datasetID.required")
|
|
25
|
+
};
|
|
26
|
+
}), h(() => {
|
|
27
|
+
});
|
|
28
|
+
async function m(e) {
|
|
29
|
+
let t = !0, a = p.api.hubUrl;
|
|
30
|
+
const f = d.getters["auth/getUserDraftIds"];
|
|
20
31
|
return new Promise(() => {
|
|
21
|
-
if (
|
|
32
|
+
if (k(e.value) || e.value === "" || e.value === void 0)
|
|
22
33
|
t = !0;
|
|
23
|
-
else if (
|
|
34
|
+
else if (f.includes(e.value))
|
|
24
35
|
t = !1;
|
|
25
36
|
else {
|
|
26
|
-
const
|
|
27
|
-
|
|
37
|
+
const v = `${a}datasets/${e.value}?useNormalizedId=true`;
|
|
38
|
+
E.head(v).then(() => {
|
|
28
39
|
t = !1;
|
|
29
|
-
}).catch((
|
|
40
|
+
}).catch((F) => {
|
|
30
41
|
t = !0;
|
|
31
42
|
});
|
|
32
43
|
}
|
|
@@ -36,11 +47,11 @@ const q = { class: "formkitProperty DSid" }, k = {
|
|
|
36
47
|
return /^[a-z0-9-]*$/.test(e.value);
|
|
37
48
|
}
|
|
38
49
|
return (e, t) => {
|
|
39
|
-
const a =
|
|
40
|
-
return
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
!l.value || o.value ? (
|
|
50
|
+
const a = D("FormKit");
|
|
51
|
+
return i(), q("div", M, [
|
|
52
|
+
_("h4", null, $(e.$t("message.dataupload.datasets.datasetID.label")), 1),
|
|
53
|
+
b(),
|
|
54
|
+
!l.value || o.value ? (i(), n(a, {
|
|
44
55
|
key: 0,
|
|
45
56
|
type: "text",
|
|
46
57
|
name: "datasetID",
|
|
@@ -48,12 +59,12 @@ const q = { class: "formkitProperty DSid" }, k = {
|
|
|
48
59
|
placeholder: e.$t("message.dataupload.datasets.datasetID.label"),
|
|
49
60
|
info: e.$t("message.dataupload.datasets.datasetID.info"),
|
|
50
61
|
help: e.$t("message.dataupload.datasets.datasetID.help"),
|
|
51
|
-
"validation-rules": { idformatvalid: c, idunique:
|
|
62
|
+
"validation-rules": { idformatvalid: c, idunique: m },
|
|
52
63
|
validation: "idformatvalid|idunique|required",
|
|
53
64
|
"validation-visibility": "live",
|
|
54
|
-
"validation-messages":
|
|
65
|
+
"validation-messages": y(r),
|
|
55
66
|
"outer-class": "formkitCmpWrap p-3"
|
|
56
|
-
}, null, 8, ["placeholder", "info", "help", "validation-rules"])) : (
|
|
67
|
+
}, null, 8, ["placeholder", "info", "help", "validation-rules", "validation-messages"])) : (i(), n(a, {
|
|
57
68
|
key: 1,
|
|
58
69
|
type: "text",
|
|
59
70
|
name: "datasetID",
|
|
@@ -67,6 +78,6 @@ const q = { class: "formkitProperty DSid" }, k = {
|
|
|
67
78
|
}
|
|
68
79
|
});
|
|
69
80
|
export {
|
|
70
|
-
|
|
81
|
+
V as default
|
|
71
82
|
};
|
|
72
83
|
//# sourceMappingURL=UniqueIdentifierInput.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniqueIdentifierInput.vue.mjs","sources":["../../../lib/data-provider-interface/components/UniqueIdentifierInput.vue"],"sourcesContent":["<script setup>\nimport { ref, onMounted, watchEffect } from 'vue'\nimport { isNil } from 'lodash';\nimport axios from 'axios';\nimport { useStore } from 'vuex';\nimport { getCurrentInstance } from \"vue\";\
|
|
1
|
+
{"version":3,"file":"UniqueIdentifierInput.vue.mjs","sources":["../../../lib/data-provider-interface/components/UniqueIdentifierInput.vue"],"sourcesContent":["<script setup>\nimport { ref, onMounted, watchEffect } from 'vue'\nimport { isNil } from 'lodash';\nimport axios from 'axios';\nimport { useStore } from 'vuex';\nimport { getCurrentInstance } from \"vue\";\nimport { useI18n } from 'vue-i18n';\nlet env = getCurrentInstance().appContext.app.config.globalProperties.$env;\n\nconst store = useStore();\nconst isEditMode = ref();\nconst isDuplicate = ref();\nisDuplicate.value = localStorage.getItem('dpi_duplicate');\nisEditMode.value = store.getters['auth/getIsEditMode'];\nconst { t, locale } = useI18n();\n\nlet validationMessages = {\n idformatvalid: \"\",\n idunique: \"\",\n required: \"\"\n\n};\n\nonMounted(() => {\n // This is kind of buggy, its taking the strings from the wrong json (de and en is switched)\n validationMessages = {\n idformatvalid: t('message.dataupload.datasets.datasetID.invalidFormat'),\n idunique: t('message.dataupload.datasets.datasetID.duplicate'),\n required: t('message.dataupload.datasets.datasetID.required')\n };\n\n});\n\n\nwatchEffect(() => {\n\n\n});\n\n\n\nasync function idunique(node) {\n let isUniqueID = true;\n let hubUrl = env.api.hubUrl;\n const draftIDs = store.getters['auth/getUserDraftIds'];\n\n new Promise(() => {\n if (isNil(node.value) || node.value === '' || node.value === undefined) isUniqueID = true;\n else if (draftIDs.includes(node.value)) isUniqueID = false;\n else {\n const request = `${hubUrl}datasets/${node.value}?useNormalizedId=true`;\n axios.head(request)\n .then(() => {\n isUniqueID = false;\n })\n .catch((e) => {\n isUniqueID = true;\n });\n }\n });\n return isUniqueID;\n}\n\nfunction idformatvalid(node) {\n return /^[a-z0-9-]*$/.test(node.value);\n}\n\n</script>\n\n<template>\n <div class=\"formkitProperty DSid\">\n <h4>{{ $t(`message.dataupload.datasets.datasetID.label`) }}</h4>\n <FormKit v-if=\"!isEditMode || isDuplicate\" type=\"text\" name=\"datasetID\" id=\"datasetID\"\n :placeholder=\"$t(`message.dataupload.datasets.datasetID.label`)\"\n :info=\"$t(`message.dataupload.datasets.datasetID.info`)\" :help=\"$t(`message.dataupload.datasets.datasetID.help`)\"\n :validation-rules=\"{ idformatvalid, idunique }\" validation=\"idformatvalid|idunique|required\"\n validation-visibility=\"live\" :validation-messages=\"validationMessages\" outer-class=\"formkitCmpWrap p-3\">\n </FormKit>\n <FormKit v-else type=\"text\" name=\"datasetID\" id=\"datasetID\" :disabled=\"true\"\n :info=\"$t(`message.dataupload.datasets.datasetID.info`)\" :help=\"$t(`message.dataupload.datasets.datasetID.help`)\">\n </FormKit>\n </div>\n</template>\n\n<script>\nexport default {\n props: ['context']\n}\n</script>\n\n<style></style>\n"],"names":["__default__","env","getCurrentInstance","store","useStore","isEditMode","ref","isDuplicate","t","locale","useI18n","validationMessages","onMounted","watchEffect","idunique","node","isUniqueID","hubUrl","draftIDs","isNil","request","axios","e","idformatvalid"],"mappings":";;;;;6CAqFAA,IAAe;AAAA,EACb,OAAO,CAAC,SAAS;AACnB;;;AAhFA,QAAIC,IAAMC,EAAkB,EAAG,WAAW,IAAI,OAAO,iBAAiB;AAEtE,UAAMC,IAAQC,EAAQ,GAChBC,IAAaC,EAAG,GAChBC,IAAcD,EAAG;AACvB,IAAAC,EAAY,QAAQ,aAAa,QAAQ,eAAe,GACxDF,EAAW,QAAQF,EAAM,QAAQ,oBAAoB;AACrD,UAAM,EAAE,GAAAK,GAAG,QAAAC,MAAWC;AAEtB,QAAIC,IAAqB;AAAA,MACvB,eAAe;AAAA,MACf,UAAU;AAAA,MACV,UAAU;AAAA,IAEZ;AAEA,IAAAC,EAAU,MAAM;AAEd,MAAAD,IAAqB;AAAA,QACnB,eAAeH,EAAE,qDAAqD;AAAA,QACtE,UAAUA,EAAE,iDAAiD;AAAA,QAC7D,UAAUA,EAAE,gDAAgD;AAAA,MAChE;AAAA,IAEA,CAAC,GAGDK,EAAY,MAAM;AAAA,IAGlB,CAAC;AAID,mBAAeC,EAASC,GAAM;AAC5B,UAAIC,IAAa,IACbC,IAAShB,EAAI,IAAI;AACrB,YAAMiB,IAAWf,EAAM,QAAQ,sBAAsB;AAErD,iBAAI,QAAQ,MAAM;AAChB,YAAIgB,EAAMJ,EAAK,KAAK,KAAKA,EAAK,UAAU,MAAMA,EAAK,UAAU;AAAW,UAAAC,IAAa;AAAA,iBAC5EE,EAAS,SAASH,EAAK,KAAK;AAAG,UAAAC,IAAa;AAAA,aAChD;AACH,gBAAMI,IAAU,GAAGH,CAAM,YAAYF,EAAK,KAAK;AAC/C,UAAAM,EAAM,KAAKD,CAAO,EACf,KAAK,MAAM;AACV,YAAAJ,IAAa;AAAA,UACvB,CAAS,EACA,MAAM,CAACM,MAAM;AACZ,YAAAN,IAAa;AAAA,UACvB,CAAS;AAAA,QACJ;AAAA,MACL,CAAG,GACMA;AAAA,IACT;AAEA,aAASO,EAAcR,GAAM;AAC3B,aAAO,eAAe,KAAKA,EAAK,KAAK;AAAA,IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -105,7 +105,8 @@ const t = {
|
|
|
105
105
|
identifier: "qualityProcessURI",
|
|
106
106
|
name: "dcatde:qualityProcessURI",
|
|
107
107
|
class: "property",
|
|
108
|
-
$formkit: "
|
|
108
|
+
$formkit: "simpleInput",
|
|
109
|
+
validationType: "url",
|
|
109
110
|
classes: { outer: "formkitProperty formkitCmpWrap mx-0 my-3 p-3" }
|
|
110
111
|
},
|
|
111
112
|
references: {
|
|
@@ -121,9 +122,10 @@ const t = {
|
|
|
121
122
|
children: [
|
|
122
123
|
{
|
|
123
124
|
name: "@id",
|
|
124
|
-
identifier: "
|
|
125
|
-
$formkit: "
|
|
126
|
-
|
|
125
|
+
identifier: "references",
|
|
126
|
+
$formkit: "simpleInput",
|
|
127
|
+
validationType: "url",
|
|
128
|
+
insideRepeatable: !0,
|
|
127
129
|
classes: {
|
|
128
130
|
outer: "w100-textfield"
|
|
129
131
|
}
|
|
@@ -1117,10 +1119,10 @@ const t = {
|
|
|
1117
1119
|
},
|
|
1118
1120
|
spatialResolutionInMeters: {
|
|
1119
1121
|
identifier: "spatialResolutionInMeters",
|
|
1120
|
-
$formkit: "
|
|
1122
|
+
$formkit: "simpleInput",
|
|
1121
1123
|
name: "dcat:spatialResolutionInMeters",
|
|
1122
1124
|
class: "property",
|
|
1123
|
-
|
|
1125
|
+
validationType: "number",
|
|
1124
1126
|
classes: { outer: "formkitProperty formkitCmpWrap mx-0 my-3 p-3" }
|
|
1125
1127
|
},
|
|
1126
1128
|
temporalResolution: {
|
|
@@ -1178,7 +1180,7 @@ const t = {
|
|
|
1178
1180
|
},
|
|
1179
1181
|
versionInfo: {
|
|
1180
1182
|
identifier: "versionInfo",
|
|
1181
|
-
$formkit: "
|
|
1183
|
+
$formkit: "simpleInput",
|
|
1182
1184
|
name: "owl:versionInfo",
|
|
1183
1185
|
class: "property",
|
|
1184
1186
|
classes: { outer: "formkitProperty formkitCmpWrap mx-0 my-3 p-3" }
|
|
@@ -1500,7 +1502,8 @@ const t = {
|
|
|
1500
1502
|
},
|
|
1501
1503
|
byteSize: {
|
|
1502
1504
|
identifier: "byteSize",
|
|
1503
|
-
$formkit: "
|
|
1505
|
+
$formkit: "simpleInput",
|
|
1506
|
+
validationType: "number",
|
|
1504
1507
|
name: "dcat:byteSize",
|
|
1505
1508
|
class: "property",
|
|
1506
1509
|
classes: { outer: "formkitProperty formkitCmpWrap mx-0 my-3 p-3" }
|
|
@@ -1716,41 +1719,18 @@ const t = {
|
|
|
1716
1719
|
},
|
|
1717
1720
|
rights: {
|
|
1718
1721
|
identifier: "rights",
|
|
1719
|
-
|
|
1722
|
+
id: "rightsCondDataset",
|
|
1723
|
+
$formkit: "simpleConditional",
|
|
1720
1724
|
name: "dct:rights",
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
identifier: "rights",
|
|
1724
|
-
id: "rightsCondDataset",
|
|
1725
|
-
$formkit: "select",
|
|
1726
|
-
name: "@type",
|
|
1727
|
-
options: { url: "Provide URL", text: "Provide a text" }
|
|
1728
|
-
},
|
|
1729
|
-
{
|
|
1730
|
-
identifier: "rights",
|
|
1731
|
-
$cmp: "FormKit",
|
|
1732
|
-
if: "$get(rightsCondDataset).value",
|
|
1733
|
-
props: {
|
|
1734
|
-
if: "$get(rightsCondDataset).value === url",
|
|
1735
|
-
then: {
|
|
1736
|
-
type: "url",
|
|
1737
|
-
name: "rdfs:value"
|
|
1738
|
-
},
|
|
1739
|
-
else: {
|
|
1740
|
-
type: "text",
|
|
1741
|
-
name: "rdfs:value"
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
|
-
]
|
|
1725
|
+
options: { url: "rdfs:label", text: "rdfs:label" },
|
|
1726
|
+
selection: { 1: "URL", 2: "Text" }
|
|
1746
1727
|
},
|
|
1747
1728
|
spatialResolutionInMeters: {
|
|
1748
1729
|
identifier: "spatialResolutionInMeters",
|
|
1749
|
-
$formkit: "
|
|
1730
|
+
$formkit: "simpleInput",
|
|
1750
1731
|
name: "dcat:spatialResolutionInMeters",
|
|
1751
1732
|
class: "property",
|
|
1752
|
-
|
|
1753
|
-
classes: { outer: "formkitProperty formkitCmpWrap mx-0 my-3 p-3" }
|
|
1733
|
+
validationType: "number"
|
|
1754
1734
|
},
|
|
1755
1735
|
temporalResolution: {
|
|
1756
1736
|
identifier: "temporalResolution",
|
|
@@ -1872,45 +1852,43 @@ const t = {
|
|
|
1872
1852
|
mandatory: !0,
|
|
1873
1853
|
minimum: 1,
|
|
1874
1854
|
children: [
|
|
1875
|
-
{
|
|
1876
|
-
identifier: "titleLabel",
|
|
1877
|
-
$formkit: "text",
|
|
1878
|
-
name: "@value",
|
|
1879
|
-
validation: "required"
|
|
1880
|
-
},
|
|
1881
1855
|
{
|
|
1882
1856
|
identifier: "language",
|
|
1883
1857
|
value: "en",
|
|
1884
1858
|
$formkit: "select",
|
|
1885
1859
|
validation: "required",
|
|
1886
1860
|
options: e,
|
|
1887
|
-
name: "@language"
|
|
1861
|
+
name: "@language",
|
|
1862
|
+
classes: {
|
|
1863
|
+
outer: "w25-textfield"
|
|
1864
|
+
}
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
identifier: "title",
|
|
1868
|
+
$formkit: "text",
|
|
1869
|
+
name: "@value",
|
|
1870
|
+
validation: "required",
|
|
1871
|
+
mandatory: !0,
|
|
1872
|
+
classes: {
|
|
1873
|
+
outer: "w75-textfield"
|
|
1874
|
+
}
|
|
1888
1875
|
}
|
|
1889
1876
|
]
|
|
1890
1877
|
}
|
|
1891
1878
|
]
|
|
1892
1879
|
},
|
|
1893
1880
|
description: {
|
|
1894
|
-
identifier: "
|
|
1881
|
+
identifier: "description",
|
|
1895
1882
|
$formkit: "repeatable",
|
|
1896
1883
|
name: "dct:description",
|
|
1897
1884
|
children: [
|
|
1898
1885
|
{
|
|
1899
|
-
identifier: "
|
|
1886
|
+
identifier: "description",
|
|
1900
1887
|
$formkit: "group",
|
|
1901
1888
|
name: "dct:description",
|
|
1902
1889
|
mandatory: !0,
|
|
1903
1890
|
minimum: 1,
|
|
1904
1891
|
children: [
|
|
1905
|
-
{
|
|
1906
|
-
identifier: "description",
|
|
1907
|
-
$formkit: "textarea",
|
|
1908
|
-
name: "@value",
|
|
1909
|
-
validation: "required",
|
|
1910
|
-
classes: {
|
|
1911
|
-
outer: "w25-textfield"
|
|
1912
|
-
}
|
|
1913
|
-
},
|
|
1914
1892
|
{
|
|
1915
1893
|
identifier: "language",
|
|
1916
1894
|
value: "en",
|
|
@@ -1919,7 +1897,16 @@ const t = {
|
|
|
1919
1897
|
validation: "required",
|
|
1920
1898
|
name: "@language",
|
|
1921
1899
|
classes: {
|
|
1922
|
-
outer: "
|
|
1900
|
+
outer: "w25-descField"
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
identifier: "description",
|
|
1905
|
+
$formkit: "textarea",
|
|
1906
|
+
name: "@value",
|
|
1907
|
+
validation: "required",
|
|
1908
|
+
classes: {
|
|
1909
|
+
outer: "w75-textfield"
|
|
1923
1910
|
}
|
|
1924
1911
|
}
|
|
1925
1912
|
]
|
|
@@ -1927,11 +1914,12 @@ const t = {
|
|
|
1927
1914
|
]
|
|
1928
1915
|
},
|
|
1929
1916
|
publisher: {
|
|
1930
|
-
$formkit: "
|
|
1917
|
+
$formkit: "simpleConditional",
|
|
1931
1918
|
identifier: "publisher",
|
|
1932
1919
|
name: "dct:publisher",
|
|
1933
1920
|
voc: "corporate-body",
|
|
1934
|
-
|
|
1921
|
+
options: { text: "foaf:name", email: "foaf:mbox", url: "foaf:homepage" },
|
|
1922
|
+
selection: { 1: "vocabulary", 2: "manually" }
|
|
1935
1923
|
},
|
|
1936
1924
|
language: {
|
|
1937
1925
|
identifier: "language",
|
|
@@ -1947,7 +1935,7 @@ const t = {
|
|
|
1947
1935
|
identifier: "licence",
|
|
1948
1936
|
voc: "licence",
|
|
1949
1937
|
options: { text: "dct:title", textarea: "skos:prefLabel", url: "skos:exactMatch" },
|
|
1950
|
-
selection: { 1: "
|
|
1938
|
+
selection: { 1: "vocabulary", 2: "manually" }
|
|
1951
1939
|
},
|
|
1952
1940
|
spatial: {
|
|
1953
1941
|
identifier: "spatial",
|
|
@@ -1963,7 +1951,7 @@ const t = {
|
|
|
1963
1951
|
},
|
|
1964
1952
|
homepage: {
|
|
1965
1953
|
identifier: "homepage",
|
|
1966
|
-
$formkit: "
|
|
1954
|
+
$formkit: "simpleInput",
|
|
1967
1955
|
name: "foaf:homepage",
|
|
1968
1956
|
validation: "optional|url"
|
|
1969
1957
|
},
|
|
@@ -1981,7 +1969,10 @@ const t = {
|
|
|
1981
1969
|
identifier: "hasPartURL",
|
|
1982
1970
|
$formkit: "url",
|
|
1983
1971
|
name: "@id",
|
|
1984
|
-
|
|
1972
|
+
validationType: "url",
|
|
1973
|
+
classes: {
|
|
1974
|
+
outer: "w100-textfield"
|
|
1975
|
+
}
|
|
1985
1976
|
}
|
|
1986
1977
|
]
|
|
1987
1978
|
}
|
|
@@ -1989,41 +1980,43 @@ const t = {
|
|
|
1989
1980
|
},
|
|
1990
1981
|
isPartOf: {
|
|
1991
1982
|
identifier: "isPartOf",
|
|
1983
|
+
$formkit: "simpleInput",
|
|
1992
1984
|
name: "dct:isPartOf",
|
|
1993
|
-
|
|
1994
|
-
validation: "optional|url"
|
|
1985
|
+
validationType: "url"
|
|
1995
1986
|
},
|
|
1996
1987
|
rights: {
|
|
1997
1988
|
identifier: "rights",
|
|
1998
|
-
$formkit: "
|
|
1989
|
+
$formkit: "simpleConditional",
|
|
1999
1990
|
name: "dct:rights",
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
1991
|
+
options: { url: "rdfs:label", text: "rdfs:label" },
|
|
1992
|
+
selection: { 1: "URL", 2: "text" }
|
|
1993
|
+
// children: [
|
|
1994
|
+
// {
|
|
1995
|
+
// identifier: 'rights',
|
|
1996
|
+
// $formkit: "select",
|
|
1997
|
+
// name: '@type',
|
|
1998
|
+
// options: { url: 'Provide an URL', str: 'String' },
|
|
1999
|
+
// id: "rightsModeCatalogue"
|
|
2000
|
+
// },
|
|
2001
|
+
// {
|
|
2002
|
+
// identifier: 'rights',
|
|
2003
|
+
// $cmp: "FormKit",
|
|
2004
|
+
// if: "$get(rightsModeCatalogue).value",
|
|
2005
|
+
// props: {
|
|
2006
|
+
// if: "$get(rightsModeCatalogue).value === url",
|
|
2007
|
+
// then: {
|
|
2008
|
+
// identifier: 'rightsUrl',
|
|
2009
|
+
// type: "url",
|
|
2010
|
+
// label: "URL",
|
|
2011
|
+
// name: 'rdfs:label',
|
|
2012
|
+
// },
|
|
2013
|
+
// else: {
|
|
2014
|
+
// type: "text",
|
|
2015
|
+
// name: 'rdfs:label',
|
|
2016
|
+
// }
|
|
2017
|
+
// }
|
|
2018
|
+
// }
|
|
2019
|
+
// ]
|
|
2027
2020
|
},
|
|
2028
2021
|
catalog: {
|
|
2029
2022
|
identifier: "catalog",
|
|
@@ -2038,8 +2031,11 @@ const t = {
|
|
|
2038
2031
|
{
|
|
2039
2032
|
identifier: "catalogURL",
|
|
2040
2033
|
$formkit: "url",
|
|
2041
|
-
|
|
2042
|
-
name: "@id"
|
|
2034
|
+
validationType: "url",
|
|
2035
|
+
name: "@id",
|
|
2036
|
+
classes: {
|
|
2037
|
+
outer: "w100-textfield"
|
|
2038
|
+
}
|
|
2043
2039
|
}
|
|
2044
2040
|
]
|
|
2045
2041
|
}
|
|
@@ -2047,7 +2043,7 @@ const t = {
|
|
|
2047
2043
|
},
|
|
2048
2044
|
creator: {
|
|
2049
2045
|
identifier: "creator",
|
|
2050
|
-
$formkit: "
|
|
2046
|
+
$formkit: "formkitGroup",
|
|
2051
2047
|
name: "dct:creator",
|
|
2052
2048
|
children: [
|
|
2053
2049
|
{
|
|
@@ -2058,24 +2054,36 @@ const t = {
|
|
|
2058
2054
|
"": "---",
|
|
2059
2055
|
"foaf:Person": "Person",
|
|
2060
2056
|
"foaf:Organization": "Organization"
|
|
2057
|
+
},
|
|
2058
|
+
classes: {
|
|
2059
|
+
outer: "w100-textfield"
|
|
2061
2060
|
}
|
|
2062
2061
|
},
|
|
2063
2062
|
{
|
|
2064
2063
|
identifier: "creatorName",
|
|
2065
2064
|
$formkit: "text",
|
|
2066
|
-
name: "foaf:name"
|
|
2065
|
+
name: "foaf:name",
|
|
2066
|
+
classes: {
|
|
2067
|
+
outer: "w100-textfield"
|
|
2068
|
+
}
|
|
2067
2069
|
},
|
|
2068
2070
|
{
|
|
2069
2071
|
identifier: "creatorEmail",
|
|
2070
2072
|
$formkit: "email",
|
|
2071
2073
|
name: "foaf:mbox",
|
|
2072
|
-
validation: "optional|email"
|
|
2074
|
+
validation: "optional|email",
|
|
2075
|
+
classes: {
|
|
2076
|
+
outer: "w100-textfield"
|
|
2077
|
+
}
|
|
2073
2078
|
},
|
|
2074
2079
|
{
|
|
2075
2080
|
identifier: "creatorHomepage",
|
|
2076
2081
|
$formkit: "url",
|
|
2077
2082
|
name: "foaf:homepage",
|
|
2078
|
-
validation: "optional|url"
|
|
2083
|
+
validation: "optional|url",
|
|
2084
|
+
classes: {
|
|
2085
|
+
outer: "w100-textfield"
|
|
2086
|
+
}
|
|
2079
2087
|
}
|
|
2080
2088
|
]
|
|
2081
2089
|
}
|