@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.
Files changed (34) hide show
  1. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +98 -98
  2. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
  3. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +136 -129
  4. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
  5. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +60 -60
  6. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
  7. package/dist/data-provider-interface/components/FileUpload.vue.mjs +2 -2
  8. package/dist/data-provider-interface/components/FileUpload.vue.mjs.map +1 -1
  9. package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.d.ts +7 -0
  10. package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.mjs +33 -0
  11. package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.mjs.map +1 -0
  12. package/dist/data-provider-interface/components/SimpleInput.vue.mjs +16 -20
  13. package/dist/data-provider-interface/components/SimpleInput.vue.mjs.map +1 -1
  14. package/dist/data-provider-interface/components/SimpleSelect.vue.mjs +31 -31
  15. package/dist/data-provider-interface/components/SimpleSelect.vue.mjs.map +1 -1
  16. package/dist/data-provider-interface/components/SpatialInput.vue.mjs +90 -94
  17. package/dist/data-provider-interface/components/SpatialInput.vue.mjs.map +1 -1
  18. package/dist/data-provider-interface/components/SpatialInput.vue2.mjs +2 -2
  19. package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs +41 -30
  20. package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs.map +1 -1
  21. package/dist/data-provider-interface/config/dcatapde/input-definition.mjs +105 -97
  22. package/dist/data-provider-interface/config/dcatapde/input-definition.mjs.map +1 -1
  23. package/dist/data-provider-interface/config/dcatapdeODB/input-definition.mjs +2 -6
  24. package/dist/data-provider-interface/config/dcatapdeODB/input-definition.mjs.map +1 -1
  25. package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs +52 -52
  26. package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs.map +1 -1
  27. package/dist/data-provider-interface/views/InputPage.vue.mjs +67 -67
  28. package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
  29. package/dist/form/Repeatable.vue.mjs +29 -29
  30. package/dist/form/Repeatable.vue.mjs.map +1 -1
  31. package/dist/form/inputDefinitions.mjs +13 -8
  32. package/dist/form/inputDefinitions.mjs.map +1 -1
  33. package/dist/piveau-hub-ui-modules.css +1 -1
  34. package/package.json +1 -1
@@ -1,32 +1,43 @@
1
- import { getCurrentInstance as v, ref as d, resolveComponent as h, openBlock as s, createElementBlock as I, createElementVNode as g, toDisplayString as D, createTextVNode as _, createBlock as n } from "vue";
2
- import { isNil as y } from "lodash-es";
3
- import $ from "axios";
4
- import { useStore as b } from "vuex";
5
- const q = { class: "formkitProperty DSid" }, k = {
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
- }, B = /* @__PURE__ */ Object.assign(k, {
8
+ }, V = /* @__PURE__ */ Object.assign(N, {
8
9
  __name: "UniqueIdentifierInput",
9
- setup(U) {
10
- let r = v().appContext.app.config.globalProperties.$env;
11
- const i = b(), l = d(), o = d();
12
- o.value = localStorage.getItem("dpi_duplicate"), l.value = i.getters["auth/getIsEditMode"];
13
- const u = {
14
- idformatvalid: "Dataset ID must only contain lower case letters, numbers and single dashes (-). Please choose a different ID.",
15
- idunique: "This ID is already in use, please choose a different one."
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
- async function p(e) {
18
- let t = !0, a = r.api.hubUrl;
19
- const m = i.getters["auth/getUserDraftIds"];
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 (y(e.value) || e.value === "" || e.value === void 0)
32
+ if (k(e.value) || e.value === "" || e.value === void 0)
22
33
  t = !0;
23
- else if (m.includes(e.value))
34
+ else if (f.includes(e.value))
24
35
  t = !1;
25
36
  else {
26
- const f = `${a}datasets/${e.value}?useNormalizedId=true`;
27
- $.head(f).then(() => {
37
+ const v = `${a}datasets/${e.value}?useNormalizedId=true`;
38
+ E.head(v).then(() => {
28
39
  t = !1;
29
- }).catch((C) => {
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 = h("FormKit");
40
- return s(), I("div", q, [
41
- g("h4", null, D(e.$t("message.dataupload.datasets.datasetID.label")), 1),
42
- _(),
43
- !l.value || o.value ? (s(), n(a, {
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: p },
62
+ "validation-rules": { idformatvalid: c, idunique: m },
52
63
  validation: "idformatvalid|idunique|required",
53
64
  "validation-visibility": "live",
54
- "validation-messages": u,
65
+ "validation-messages": y(r),
55
66
  "outer-class": "formkitCmpWrap p-3"
56
- }, null, 8, ["placeholder", "info", "help", "validation-rules"])) : (s(), n(a, {
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
- B as default
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\";\n\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'];\n\nconst validationMessages = {\n idformatvalid: \"Dataset ID must only contain lower case letters, numbers and single dashes (-). Please choose a different ID.\",\n idunique: \"This ID is already in use, please choose a different one.\"\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","validationMessages","idunique","node","isUniqueID","hubUrl","draftIDs","isNil","request","axios","e","idformatvalid"],"mappings":";;;;6CAgEAA,IAAe;AAAA,EACb,OAAO,CAAC,SAAS;AACnB;;;AA3DA,QAAIC,IAAMC,EAAkB,EAAG,WAAW,IAAI,OAAO,iBAAiB;AAEtE,UAAMC,IAAQC,EAAQ,GAChBC,IAAaC,EAAG,GAChBC,IAAaD,EAAG;AACtB,IAAAC,EAAY,QAAQ,aAAa,QAAQ,eAAe,GACxDF,EAAW,QAAQF,EAAM,QAAQ,oBAAoB;AAErD,UAAMK,IAAqB;AAAA,MACzB,eAAe;AAAA,MACf,UAAU;AAAA,IACZ;AAEA,mBAAeC,EAASC,GAAM;AAC5B,UAAIC,IAAa,IACbC,IAASX,EAAI,IAAI;AACrB,YAAMY,IAAWV,EAAM,QAAQ,sBAAsB;AAErD,iBAAI,QAAQ,MAAM;AAChB,YAAIW,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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: "url",
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: "referencesUrl",
125
- $formkit: "url",
126
- validation: "optional|url",
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: "number",
1122
+ $formkit: "simpleInput",
1121
1123
  name: "dcat:spatialResolutionInMeters",
1122
1124
  class: "property",
1123
- validation: "number",
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: "text",
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: "text",
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
- $formkit: "group",
1722
+ id: "rightsCondDataset",
1723
+ $formkit: "simpleConditional",
1720
1724
  name: "dct:rights",
1721
- children: [
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: "number",
1730
+ $formkit: "simpleInput",
1750
1731
  name: "dcat:spatialResolutionInMeters",
1751
1732
  class: "property",
1752
- validation: "number",
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: "datasetDescription",
1881
+ identifier: "description",
1895
1882
  $formkit: "repeatable",
1896
1883
  name: "dct:description",
1897
1884
  children: [
1898
1885
  {
1899
- identifier: "datasetDescription",
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: "w75-descField"
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: "auto",
1917
+ $formkit: "simpleConditional",
1931
1918
  identifier: "publisher",
1932
1919
  name: "dct:publisher",
1933
1920
  voc: "corporate-body",
1934
- id: "publisher"
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: "Vocabulary", 2: "Manually" }
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: "url",
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
- validation: "optional|url"
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
- $formkit: "url",
1994
- validation: "optional|url"
1985
+ validationType: "url"
1995
1986
  },
1996
1987
  rights: {
1997
1988
  identifier: "rights",
1998
- $formkit: "group",
1989
+ $formkit: "simpleConditional",
1999
1990
  name: "dct:rights",
2000
- children: [
2001
- {
2002
- identifier: "rights",
2003
- $formkit: "select",
2004
- name: "@type",
2005
- options: { url: "Provide an URL", str: "String" },
2006
- id: "rightsModeCatalogue"
2007
- },
2008
- {
2009
- identifier: "rights",
2010
- $cmp: "FormKit",
2011
- if: "$get(rightsModeCatalogue).value",
2012
- props: {
2013
- if: "$get(rightsModeCatalogue).value === url",
2014
- then: {
2015
- identifier: "rightsUrl",
2016
- type: "url",
2017
- label: "URL",
2018
- name: "rdfs:label"
2019
- },
2020
- else: {
2021
- type: "text",
2022
- name: "rdfs:label"
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
- validation: "optional|url",
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: "group",
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
  }