@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,4 +1,4 @@
1
- import { getCurrentInstance as g, ref as l, computed as D, onMounted as h, watchEffect as q, resolveComponent as $, openBlock as d, createElementBlock as b, createElementVNode as _, toDisplayString as y, createTextVNode as k, createBlock as r } from "vue";
1
+ import { getCurrentInstance as g, ref as l, computed as D, onMounted as h, watchEffect as q, resolveComponent as $, openBlock as o, createElementBlock as b, createElementVNode as _, toDisplayString as y, createTextVNode as k, createBlock as r } from "vue";
2
2
  import "vue-router";
3
3
  import { isNil as C } from "lodash-es";
4
4
  import U from "axios";
@@ -6,17 +6,28 @@ import { useStore as x } from "vuex";
6
6
  import { useI18n as E } from "vue-i18n";
7
7
  import { useDpiContext as N } from "../composables/useDpiContext.mjs";
8
8
  import "@formkit/core";
9
+ import "merge-anything";
10
+ import "../../configurations/config-schema/apiSchema.mjs";
11
+ import "../../configurations/config-schema/authenticationSchema.mjs";
12
+ import "../../configurations/config-schema/contentSchema.mjs";
13
+ import "../../configurations/config-schema/routingSchema.mjs";
14
+ import "../../configurations/config-schema/metadataSchema.mjs";
15
+ import "../../configurations/config-schema/languagesSchema.mjs";
16
+ import "../../configurations/config-schema/themesSchema.mjs";
17
+ import "../../configurations/config-schema/trackerSchema.mjs";
18
+ import "../../configurations/config-schema/configSchema.mjs";
19
+ import "../../utils/helpers.mjs";
9
20
  const S = { class: "formkitProperty DSid" }, B = {
10
21
  props: ["context"]
11
- }, A = /* @__PURE__ */ Object.assign(B, {
22
+ }, te = /* @__PURE__ */ Object.assign(B, {
12
23
  __name: "UniqueIdentifierInput",
13
24
  setup(F) {
14
25
  let u = g().appContext.app.config.globalProperties.$env;
15
- const n = x(), p = N(), o = l(), m = D(() => {
26
+ const n = x(), p = N(), d = l(), m = D(() => {
16
27
  var e;
17
28
  return !!((e = p.value.edit) != null && e.enabled);
18
29
  });
19
- o.value = localStorage.getItem("dpi_duplicate");
30
+ d.value = localStorage.getItem("dpi_duplicate");
20
31
  const { t: i, locale: M } = E(), a = l({
21
32
  idformatvalid: "",
22
33
  idunique: "",
@@ -49,10 +60,10 @@ const S = { class: "formkitProperty DSid" }, B = {
49
60
  }
50
61
  return (e, t) => {
51
62
  const s = $("FormKit");
52
- return d(), b("div", S, [
63
+ return o(), b("div", S, [
53
64
  _("h4", null, y(e.$t("message.dataupload.datasets.datasetID.label")), 1),
54
65
  t[0] || (t[0] = k()),
55
- !m.value || o.value ? (d(), r(s, {
66
+ !m.value || d.value ? (o(), r(s, {
56
67
  key: 0,
57
68
  type: "text",
58
69
  name: "datasetID",
@@ -65,7 +76,7 @@ const S = { class: "formkitProperty DSid" }, B = {
65
76
  "validation-visibility": "live",
66
77
  "validation-messages": a.value,
67
78
  "outer-class": "formkitCmpWrap p-3"
68
- }, null, 8, ["placeholder", "info", "help", "validation-rules", "validation-messages"])) : (d(), r(s, {
79
+ }, null, 8, ["placeholder", "info", "help", "validation-rules", "validation-messages"])) : (o(), r(s, {
69
80
  key: 1,
70
81
  type: "text",
71
82
  name: "datasetID",
@@ -79,6 +90,6 @@ const S = { class: "formkitProperty DSid" }, B = {
79
90
  }
80
91
  });
81
92
  export {
82
- A as default
93
+ te as default
83
94
  };
84
95
  //# 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, computed } from 'vue'\nimport { useRoute } from 'vue-router';\nimport { isNil } from 'lodash';\nimport axios from 'axios';\nimport { useStore } from 'vuex';\nimport { getCurrentInstance } from \"vue\";\nimport { useI18n } from 'vue-i18n';\nimport { useDpiContext } from '../composables';\nlet env = getCurrentInstance().appContext.app.config.globalProperties.$env;\n\nconst store = useStore();\nconst dpiContext = useDpiContext();\nconst isDuplicate = ref();\nconst isEditMode = computed(() => !!dpiContext.value.edit?.enabled)\nisDuplicate.value = localStorage.getItem('dpi_duplicate');\n\nconst { t, locale } = useI18n();\n\nconst validationMessages = ref({\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.value.idformatvalid = t('message.dataupload.datasets.datasetID.invalidFormat');\n validationMessages.value.idunique = t('message.dataupload.datasets.datasetID.duplicate');\n validationMessages.value.required = t('message.dataupload.datasets.datasetID.required');\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","dpiContext","useDpiContext","isDuplicate","ref","isEditMode","computed","_a","t","locale","useI18n","validationMessages","onMounted","watchEffect","idunique","node","isUniqueID","hubUrl","draftIDs","isNil","request","axios","e","idformatvalid"],"mappings":";;;;;;;;6CAqFeA,IAAA;AAAA,EACb,OAAO,CAAC,SAAS;AACnB;;;AA9EA,QAAIC,IAAMC,EAAkB,EAAG,WAAW,IAAI,OAAO,iBAAiB;AAEtE,UAAMC,IAAQC,EAAQ,GAChBC,IAAaC,EAAa,GAC1BC,IAAcC,EAAG,GACjBC,IAAaC,EAAS;;AAAM,cAAC,GAACC,IAAAN,EAAW,MAAM,SAAjB,QAAAM,EAAuB;AAAA,KAAO;AAClE,IAAAJ,EAAY,QAAQ,aAAa,QAAQ,eAAe;AAExD,UAAM,EAAE,GAAAK,GAAG,QAAAC,MAAWC,KAEhBC,IAAqBP,EAAI;AAAA,MAC7B,eAAe;AAAA,MACf,UAAU;AAAA,MACV,UAAU;AAAA,IAEZ,CAAC;AAED,IAAAQ,EAAU,MAAM;AAEd,MAAAD,EAAmB,MAAM,gBAAgBH,EAAE,qDAAqD,GAChGG,EAAmB,MAAM,WAAWH,EAAE,iDAAiD,GACvFG,EAAmB,MAAM,WAAWH,EAAE,gDAAgD;AAAA,IACxF,CAAC,GAGDK,EAAY,MAAM;AAAA,IAGlB,CAAC;AAID,mBAAeC,EAASC,GAAM;AAC5B,UAAIC,IAAa,IACbC,IAASpB,EAAI,IAAI;AACrB,YAAMqB,IAAWnB,EAAM,QAAQ,sBAAsB;AAErD,iBAAI,QAAQ,MAAM;AAChB,YAAIoB,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,QACL;AAAA,MACJ,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, computed } from 'vue'\nimport { useRoute } from 'vue-router';\nimport { isNil } from 'lodash';\nimport axios from 'axios';\nimport { useStore } from 'vuex';\nimport { getCurrentInstance } from \"vue\";\nimport { useI18n } from 'vue-i18n';\nimport { useDpiContext } from '../composables';\nlet env = getCurrentInstance().appContext.app.config.globalProperties.$env;\n\nconst store = useStore();\nconst dpiContext = useDpiContext();\nconst isDuplicate = ref();\nconst isEditMode = computed(() => !!dpiContext.value.edit?.enabled)\nisDuplicate.value = localStorage.getItem('dpi_duplicate');\n\nconst { t, locale } = useI18n();\n\nconst validationMessages = ref({\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.value.idformatvalid = t('message.dataupload.datasets.datasetID.invalidFormat');\n validationMessages.value.idunique = t('message.dataupload.datasets.datasetID.duplicate');\n validationMessages.value.required = t('message.dataupload.datasets.datasetID.required');\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","dpiContext","useDpiContext","isDuplicate","ref","isEditMode","computed","_a","t","locale","useI18n","validationMessages","onMounted","watchEffect","idunique","node","isUniqueID","hubUrl","draftIDs","isNil","request","axios","e","idformatvalid"],"mappings":";;;;;;;;;;;;;;;;;;;6CAqFeA,IAAA;AAAA,EACb,OAAO,CAAC,SAAS;AACnB;;;AA9EA,QAAIC,IAAMC,EAAkB,EAAG,WAAW,IAAI,OAAO,iBAAiB;AAEtE,UAAMC,IAAQC,EAAQ,GAChBC,IAAaC,EAAa,GAC1BC,IAAcC,EAAG,GACjBC,IAAaC,EAAS;;AAAM,cAAC,GAACC,IAAAN,EAAW,MAAM,SAAjB,QAAAM,EAAuB;AAAA,KAAO;AAClE,IAAAJ,EAAY,QAAQ,aAAa,QAAQ,eAAe;AAExD,UAAM,EAAE,GAAAK,GAAG,QAAAC,MAAWC,KAEhBC,IAAqBP,EAAI;AAAA,MAC7B,eAAe;AAAA,MACf,UAAU;AAAA,MACV,UAAU;AAAA,IAEZ,CAAC;AAED,IAAAQ,EAAU,MAAM;AAEd,MAAAD,EAAmB,MAAM,gBAAgBH,EAAE,qDAAqD,GAChGG,EAAmB,MAAM,WAAWH,EAAE,iDAAiD,GACvFG,EAAmB,MAAM,WAAWH,EAAE,gDAAgD;AAAA,IACxF,CAAC,GAGDK,EAAY,MAAM;AAAA,IAGlB,CAAC;AAID,mBAAeC,EAASC,GAAM;AAC5B,UAAIC,IAAa,IACbC,IAASpB,EAAI,IAAI;AACrB,YAAMqB,IAAWnB,EAAM,QAAQ,sBAAsB;AAErD,iBAAI,QAAQ,MAAM;AAChB,YAAIoB,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,QACL;AAAA,MACJ,CAAG,GACMA;AAAA,IACT;AAEA,aAASO,EAAcR,GAAM;AAC3B,aAAO,eAAe,KAAKA,EAAK,KAAK;AAAA,IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,27 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { ComputedDpiContext } from './useDpiContext';
3
+ import { ResolvedConfig } from '../../configurations/config-schema';
4
+
5
+ export interface AutocompleteInstance {
6
+ requestFirstEntrySuggestions(voc: string, base: string): Promise<any>;
7
+ requestAutocompleteSuggestions(options: {
8
+ voc: string;
9
+ text: string;
10
+ base: string;
11
+ }): Promise<any>;
12
+ requestResourceName(options: {
13
+ voc: string;
14
+ uri: string;
15
+ envs: any;
16
+ }): Promise<any>;
17
+ }
18
+ export interface AutocompleteOptions {
19
+ name: string;
20
+ adapter: AutocompleteInstance;
21
+ }
22
+ export declare const autocompleteKey: InjectionKey<AutocompleteInstance>;
23
+ export declare function defaultAutocompleteAdapter(options: {
24
+ envs: ResolvedConfig;
25
+ dpiContext: ComputedDpiContext;
26
+ }): AutocompleteOptions;
27
+ export declare function useAutocomplete(): AutocompleteInstance;
@@ -0,0 +1,52 @@
1
+ import { computed as p, toValue as m, inject as f } from "vue";
2
+ import u from "axios";
3
+ const v = Symbol(
4
+ "autocomplete"
5
+ );
6
+ function $(r) {
7
+ const { envs: a, dpiContext: s } = r;
8
+ return {
9
+ name: "default",
10
+ adapter: {
11
+ requestFirstEntrySuggestions: async (t, e) => u.get(`${e}search?filter=vocabulary&vocabulary=${t}`),
12
+ requestAutocompleteSuggestions: async (t) => u.get(
13
+ `${t.base}search?filter=vocabulary&vocabulary=${t.voc}&q=${t.text}&limit=14`
14
+ ),
15
+ requestResourceName: async (t) => {
16
+ const { voc: e, uri: n } = t, l = p(
17
+ () => {
18
+ var o;
19
+ return (o = m(s)) == null ? void 0 : o.specification;
20
+ }
21
+ );
22
+ if (e === void 0 || e === "application")
23
+ return;
24
+ let c = "";
25
+ if (e === "iana-media-types" || e === "spdx-checksum-algorithm")
26
+ c = `${a.api.baseUrl}vocabularies/${e}`;
27
+ else {
28
+ const o = n.replace(
29
+ l.value.vocabPrefixes[e],
30
+ ""
31
+ ), i = encodeURIComponent(o);
32
+ c = o !== i ? `${a.api.baseUrl}vocabularies/${e}/vocable?resource=${encodeURIComponent(n)}` : `${a.api.baseUrl}vocabularies/${e}/${i}`;
33
+ }
34
+ return u.get(c);
35
+ }
36
+ }
37
+ };
38
+ }
39
+ function g() {
40
+ const r = f(v);
41
+ if (!r)
42
+ throw new Error(
43
+ "[useAutocomplete] Autocomplete not found. Did you forget to inject it?"
44
+ );
45
+ return r;
46
+ }
47
+ export {
48
+ v as autocompleteKey,
49
+ $ as defaultAutocompleteAdapter,
50
+ g as useAutocomplete
51
+ };
52
+ //# sourceMappingURL=aucotomplete.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aucotomplete.mjs","sources":["../../../lib/data-provider-interface/composables/aucotomplete.ts"],"sourcesContent":["import { computed, inject, InjectionKey, toValue } from \"vue\";\nimport axios from \"axios\";\nimport { ComputedDpiContext, useDpiContext } from \"./useDpiContext\";\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv\";\nimport { ResolvedConfig } from \"../../configurations/config-schema\";\n\nexport interface AutocompleteInstance {\n requestFirstEntrySuggestions(voc: string, base: string): Promise<any>;\n requestAutocompleteSuggestions(options: {\n voc: string;\n text: string;\n base: string;\n }): Promise<any>;\n requestResourceName(options: {\n voc: string;\n uri: string;\n envs: any;\n }): Promise<any>;\n}\n\nexport interface AutocompleteOptions {\n name: string;\n adapter: AutocompleteInstance;\n}\n\nexport const autocompleteKey = Symbol(\n \"autocomplete\"\n) as InjectionKey<AutocompleteInstance>;\n\nexport function defaultAutocompleteAdapter(options: {\n envs: ResolvedConfig\n dpiContext: ComputedDpiContext\n}): AutocompleteOptions {\n const { envs, dpiContext } = options\n \n return {\n name: \"default\",\n adapter: {\n requestFirstEntrySuggestions: async (voc, base) => {\n return axios.get(`${base}search?filter=vocabulary&vocabulary=${voc}`);\n },\n requestAutocompleteSuggestions: async (options) => {\n return axios.get(\n `${options.base}search?filter=vocabulary&vocabulary=${options.voc}&q=${options.text}&limit=14`\n );\n },\n requestResourceName: async (options) => {\n const { voc, uri } = options;\n const specification = computed(\n () => toValue(dpiContext)?.specification\n );\n\n // // Catching invalid URIs\n if (voc === undefined) return;\n if (voc === \"application\") return;\n\n let req = \"\";\n\n // vocabularies for spdx checksum and inana-media-types are structured differently in the backend then other vocabularies\n if (voc === \"iana-media-types\" || voc === \"spdx-checksum-algorithm\") {\n req = `${envs.api.baseUrl}vocabularies/${voc}`;\n } else {\n const value = uri.replace(\n (specification.value.vocabPrefixes as any)[voc],\n \"\"\n );\n const valueEncoded = encodeURIComponent(value);\n const requestByUri = value !== valueEncoded;\n req = !requestByUri\n ? `${envs.api.baseUrl}vocabularies/${voc}/${valueEncoded}`\n : `${\n envs.api.baseUrl\n }vocabularies/${voc}/vocable?resource=${encodeURIComponent(uri)}`;\n }\n return axios.get(req);\n },\n },\n };\n}\n\nexport function useAutocomplete() {\n const autocomplete = inject(autocompleteKey);\n\n if (!autocomplete) {\n throw new Error(\n \"[useAutocomplete] Autocomplete not found. Did you forget to inject it?\"\n );\n }\n\n return autocomplete;\n}\n"],"names":["autocompleteKey","defaultAutocompleteAdapter","options","envs","dpiContext","voc","base","axios","uri","specification","computed","_a","toValue","req","value","valueEncoded","useAutocomplete","autocomplete","inject"],"mappings":";;AAyBO,MAAMA,IAAkB;AAAA,EAC7B;AACF;AAEO,SAASC,EAA2BC,GAGnB;AAChB,QAAA,EAAE,MAAAC,GAAM,YAAAC,EAAe,IAAAF;AAEtB,SAAA;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,MACP,8BAA8B,OAAOG,GAAKC,MACjCC,EAAM,IAAI,GAAGD,CAAI,uCAAuCD,CAAG,EAAE;AAAA,MAEtE,gCAAgC,OAAOH,MAC9BK,EAAM;AAAA,QACX,GAAGL,EAAQ,IAAI,uCAAuCA,EAAQ,GAAG,MAAMA,EAAQ,IAAI;AAAA,MAAA;AAAA,MAGvF,qBAAqB,OAAOA,MAAY;AAChC,cAAA,EAAE,KAAAG,GAAK,KAAAG,EAAQN,IAAAA,GACfO,IAAgBC;AAAA,UACpB;;AAAM,oBAAAC,IAAAC,EAAQR,CAAU,MAAlB,gBAAAO,EAAqB;AAAA;AAAA,QAAA;AAK7B,YADIN,MAAQ,UACRA,MAAQ;AAAe;AAE3B,YAAIQ,IAAM;AAGN,YAAAR,MAAQ,sBAAsBA,MAAQ;AACxC,UAAAQ,IAAM,GAAGV,EAAK,IAAI,OAAO,gBAAgBE,CAAG;AAAA,aACvC;AACL,gBAAMS,IAAQN,EAAI;AAAA,YACfC,EAAc,MAAM,cAAsBJ,CAAG;AAAA,YAC9C;AAAA,UAAA,GAEIU,IAAe,mBAAmBD,CAAK;AAEvC,UAAAD,IADeC,MAAUC,IAG3B,GACEZ,EAAK,IAAI,OACX,gBAAgBE,CAAG,qBAAqB,mBAAmBG,CAAG,CAAC,KAH/D,GAAGL,EAAK,IAAI,OAAO,gBAAgBE,CAAG,IAAIU,CAAY;AAAA,QAI5D;AACO,eAAAR,EAAM,IAAIM,CAAG;AAAA,MACtB;AAAA,IACF;AAAA,EAAA;AAEJ;AAEO,SAASG,IAAkB;AAC1B,QAAAC,IAAeC,EAAOlB,CAAe;AAE3C,MAAI,CAACiB;AACH,UAAM,IAAI;AAAA,MACR;AAAA,IAAA;AAIG,SAAAA;AACT;"}
@@ -1,2 +1,6 @@
1
1
  export * from './useDpiContext';
2
2
  export * from './useDpiStepper';
3
+ export * from './useDpiContext';
4
+ export * from './useDpiEditMode';
5
+ export * from './useDpiStepper';
6
+ export * from './useRequestUriName';
@@ -1,19 +1,17 @@
1
- import { getCurrentInstance as n, inject as i, provide as r, computed as u, toValue as p } from "vue";
1
+ import { inject as e, provide as n, computed as i, toValue as p } from "vue";
2
2
  const o = Symbol("dpiContext");
3
- function c() {
4
- if (!n())
5
- throw new Error("[useDpiContext] useDpiContext must be used inside a setup function");
6
- const e = i(o);
7
- if (!e)
3
+ function u() {
4
+ const t = e(o);
5
+ if (!t)
8
6
  throw new Error("[useDpiContext] DPI Context not found. Did you forget to inject it?");
9
- return e;
7
+ return t;
10
8
  }
11
9
  function x(t) {
12
- r(o, u(() => p(t)));
10
+ n(o, i(() => p(t)));
13
11
  }
14
12
  export {
15
13
  o as dpiContextKey,
16
14
  x as setupDpiContext,
17
- c as useDpiContext
15
+ u as useDpiContext
18
16
  };
19
17
  //# sourceMappingURL=useDpiContext.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDpiContext.mjs","sources":["../../../lib/data-provider-interface/composables/useDpiContext.ts"],"sourcesContent":["import { FormKitLibrary } from \"@formkit/core\"\nimport { computed, ComputedRef, getCurrentInstance, inject, InjectionKey, MaybeRefOrGetter, provide, toValue } from \"vue\"\n\nexport interface DpiSpecification {\n pageConent?: object\n inputDefinition: object\n prefixes: object\n formatTypes: object\n vocabPrefixes: object\n}\n\nexport interface DpiContext {\n specification: DpiSpecification\n specificationName: string\n edit?: {\n enabled?: boolean\n id?: string\n fromDraft?: boolean\n }\n}\n\nexport type ComputedDpiContext = ComputedRef<DpiContext>\n\nexport const dpiContextKey: InjectionKey<ComputedDpiContext> = Symbol('dpiContext')\n\nexport function useDpiContext(): ComputedDpiContext {\n const vm = getCurrentInstance();\n if (!vm) throw new Error('[useDpiContext] useDpiContext must be used inside a setup function')\n\n const dpiContext = inject(dpiContextKey)\n\n if (!dpiContext) {\n throw new Error('[useDpiContext] DPI Context not found. Did you forget to inject it?')\n }\n\n return dpiContext\n}\n\nexport function setupDpiContext(context: MaybeRefOrGetter<DpiContext>) {\n provide(dpiContextKey, computed(() => toValue(context)))\n}"],"names":["dpiContextKey","useDpiContext","getCurrentInstance","dpiContext","inject","setupDpiContext","context","provide","computed","toValue"],"mappings":";AAuBa,MAAAA,IAAkD,OAAO,YAAY;AAE3E,SAASC,IAAoC;AAElD,MAAI,CADOC;AACI,UAAA,IAAI,MAAM,oEAAoE;AAEvF,QAAAC,IAAaC,EAAOJ,CAAa;AAEvC,MAAI,CAACG;AACG,UAAA,IAAI,MAAM,qEAAqE;AAGhF,SAAAA;AACT;AAEO,SAASE,EAAgBC,GAAuC;AACrE,EAAAC,EAAQP,GAAeQ,EAAS,MAAMC,EAAQH,CAAO,CAAC,CAAC;AACzD;"}
1
+ {"version":3,"file":"useDpiContext.mjs","sources":["../../../lib/data-provider-interface/composables/useDpiContext.ts"],"sourcesContent":["import { FormKitLibrary } from \"@formkit/core\"\nimport { computed, ComputedRef, getCurrentInstance, inject, InjectionKey, MaybeRefOrGetter, provide, toValue } from \"vue\"\n\nexport interface DpiSpecification {\n pageConent?: object\n inputDefinition: object\n prefixes: object\n formatTypes: object\n vocabPrefixes: object\n}\n\nexport interface DpiContext {\n specification: DpiSpecification\n specificationName: string\n edit?: {\n enabled?: boolean\n id?: string\n fromDraft?: boolean\n }\n}\n\nexport type ComputedDpiContext = ComputedRef<DpiContext>\n\nexport const dpiContextKey: InjectionKey<ComputedDpiContext> = Symbol('dpiContext')\n\nexport function useDpiContext(): ComputedDpiContext {\n const dpiContext = inject(dpiContextKey)\n\n if (!dpiContext) {\n throw new Error('[useDpiContext] DPI Context not found. Did you forget to inject it?')\n }\n\n return dpiContext\n}\n\nexport function setupDpiContext(context: MaybeRefOrGetter<DpiContext>) {\n provide(dpiContextKey, computed(() => toValue(context)))\n}"],"names":["dpiContextKey","useDpiContext","dpiContext","inject","setupDpiContext","context","provide","computed","toValue"],"mappings":";AAuBa,MAAAA,IAAkD,OAAO,YAAY;AAE3E,SAASC,IAAoC;AAC5C,QAAAC,IAAaC,EAAOH,CAAa;AAEvC,MAAI,CAACE;AACG,UAAA,IAAI,MAAM,qEAAqE;AAGhF,SAAAA;AACT;AAEO,SAASE,EAAgBC,GAAuC;AACrE,EAAAC,EAAQN,GAAeO,EAAS,MAAMC,EAAQH,CAAO,CAAC,CAAC;AACzD;"}
@@ -0,0 +1,18 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+
3
+ /**
4
+ * Fetches the name of a resource based on its URI, vocabulary, and property.
5
+ */
6
+ export declare function useRequestUriName(options: {
7
+ res: MaybeRefOrGetter<string>;
8
+ voc: MaybeRefOrGetter<string>;
9
+ property: MaybeRefOrGetter<string>;
10
+ locale: MaybeRefOrGetter<string>;
11
+ }): {
12
+ state: import('vue').Ref<undefined, undefined>;
13
+ isReady: import('vue').Ref<boolean>;
14
+ isLoading: import('vue').Ref<boolean>;
15
+ error: import('vue').Ref<unknown>;
16
+ execute: (delay?: number) => Promise<undefined>;
17
+ then<TResult1 = import('@vueuse/core').UseAsyncStateReturnBase<undefined, [], true>, TResult2 = never>(onfulfilled?: ((value: import('@vueuse/core').UseAsyncStateReturnBase<undefined, [], true>) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): PromiseLike<TResult1 | TResult2>;
18
+ };
@@ -0,0 +1,59 @@
1
+ import { useStore as b } from "vuex";
2
+ import { useRuntimeEnv as h } from "../../composables/useRuntimeEnv.mjs";
3
+ import { getTranslationFor as a } from "../../utils/helpers.mjs";
4
+ import { toValue as t } from "vue";
5
+ import { useAsyncState as q } from "../../external/@vueuse/core/index";
6
+ import { useAutocomplete as R } from "./aucotomplete.mjs";
7
+ function w(c) {
8
+ const {
9
+ res: m,
10
+ voc: n,
11
+ property: f,
12
+ locale: p
13
+ } = c, d = h();
14
+ b();
15
+ const { requestResourceName: v } = R();
16
+ return {
17
+ ...q(
18
+ async () => {
19
+ const o = t(m), s = t(n), _ = t(f), l = p;
20
+ if (o != null) {
21
+ let u = s === "iana-media-types" || s === "spdx-checksum-algorithm", i;
22
+ return await v({
23
+ voc: s,
24
+ uri: o,
25
+ envs: d
26
+ }).then((r) => {
27
+ _ === "dcatde:politicalGeocodingURI" ? r != null && (i = u ? r.data.result.results.filter((e) => e.resource === o).map(
28
+ (e) => a(
29
+ e.alt_label,
30
+ t(l),
31
+ []
32
+ )
33
+ )[0] : a(
34
+ r.data.result.alt_label,
35
+ t(l),
36
+ []
37
+ )) : r != null && (i = u ? r.data.result.results.filter((e) => e.resource === o).map(
38
+ (e) => a(
39
+ e.pref_label,
40
+ t(l),
41
+ []
42
+ )
43
+ )[0] : a(
44
+ r.data.result.pref_label,
45
+ t(l),
46
+ []
47
+ ));
48
+ }), i;
49
+ }
50
+ },
51
+ void 0,
52
+ { immediate: !1 }
53
+ )
54
+ };
55
+ }
56
+ export {
57
+ w as useRequestUriName
58
+ };
59
+ //# sourceMappingURL=useRequestUriName.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRequestUriName.mjs","sources":["../../../lib/data-provider-interface/composables/useRequestUriName.ts"],"sourcesContent":["import { useStore } from \"vuex\";\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv\";\nimport { getTranslationFor } from \"../../utils/helpers\";\nimport { MaybeRefOrGetter, toValue } from \"vue\";\nimport { useAsyncState } from \"@vueuse/core\";\nimport { useAutocomplete } from \"./aucotomplete\";\n\n/**\n * Fetches the name of a resource based on its URI, vocabulary, and property.\n */\nexport function useRequestUriName(options: {\n res: MaybeRefOrGetter<string>;\n voc: MaybeRefOrGetter<string>;\n property: MaybeRefOrGetter<string>;\n locale: MaybeRefOrGetter<string>;\n}) {\n const {\n res: _res,\n voc: _voc,\n property: _property,\n locale: _locale,\n } = options;\n\n const envs = useRuntimeEnv();\n const store = useStore();\n const { requestResourceName } = useAutocomplete()\n\n const request = useAsyncState(\n async () => {\n const res = toValue(_res);\n const voc = toValue(_voc);\n const property = toValue(_property);\n const locale = _locale;\n\n if (res != undefined) {\n let vocMatch =\n voc === \"iana-media-types\" || voc === \"spdx-checksum-algorithm\";\n\n let name;\n\n await requestResourceName({\n voc: voc,\n uri: res,\n envs,\n })\n .then((response) => {\n if (property === \"dcatde:politicalGeocodingURI\") {\n if (response != undefined) {\n let result = vocMatch\n ? response.data.result.results\n .filter((dataset: any) => dataset.resource === res)\n .map((dataset: any) =>\n getTranslationFor(\n dataset.alt_label,\n toValue(locale),\n []\n )\n )[0]\n : getTranslationFor(\n response.data.result.alt_label,\n toValue(locale),\n []\n );\n name = result;\n }\n } else {\n if (response != undefined) {\n let result = vocMatch\n ? response.data.result.results\n .filter((dataset: any) => dataset.resource === res)\n .map((dataset: any) =>\n getTranslationFor(\n dataset.pref_label,\n toValue(locale),\n []\n )\n )[0]\n : getTranslationFor(\n response.data.result.pref_label,\n toValue(locale),\n []\n );\n name = result;\n }\n }\n });\n\n return name;\n }\n },\n undefined,\n { immediate: false }\n );\n\n return {\n ...request,\n };\n}\n"],"names":["useRequestUriName","options","_res","_voc","_property","_locale","envs","useRuntimeEnv","useStore","requestResourceName","useAutocomplete","useAsyncState","res","toValue","voc","property","locale","vocMatch","name","response","dataset","getTranslationFor"],"mappings":";;;;;;AAUO,SAASA,EAAkBC,GAK/B;AACK,QAAA;AAAA,IACJ,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,UAAUC;AAAA,IACV,QAAQC;AAAA,EACN,IAAAJ,GAEEK,IAAOC;AACC,EAAAC,EAAS;AACjB,QAAA,EAAE,qBAAAC,MAAwBC;AAqEzB,SAAA;AAAA,IACL,GApEcC;AAAA,MACd,YAAY;AACJ,cAAAC,IAAMC,EAAQX,CAAI,GAClBY,IAAMD,EAAQV,CAAI,GAClBY,IAAWF,EAAQT,CAAS,GAC5BY,IAASX;AAEf,YAAIO,KAAO,MAAW;AAChB,cAAAK,IACFH,MAAQ,sBAAsBA,MAAQ,2BAEpCI;AAEJ,uBAAMT,EAAoB;AAAA,YACtB,KAAAK;AAAA,YACA,KAAKF;AAAA,YACL,MAAAN;AAAA,UAAA,CACD,EACA,KAAK,CAACa,MAAa;AAClB,YAAIJ,MAAa,iCACXI,KAAY,SAgBPD,IAfMD,IACTE,EAAS,KAAK,OAAO,QAClB,OAAO,CAACC,MAAiBA,EAAQ,aAAaR,CAAG,EACjD;AAAA,cAAI,CAACQ,MACJC;AAAA,gBACED,EAAQ;AAAA,gBACRP,EAAQG,CAAM;AAAA,gBACd,CAAC;AAAA,cACH;AAAA,YAAA,EACA,CAAC,IACLK;AAAA,cACEF,EAAS,KAAK,OAAO;AAAA,cACrBN,EAAQG,CAAM;AAAA,cACd,CAAC;AAAA,YAAA,KAKLG,KAAY,SAgBPD,IAfMD,IACTE,EAAS,KAAK,OAAO,QAClB,OAAO,CAACC,MAAiBA,EAAQ,aAAaR,CAAG,EACjD;AAAA,cAAI,CAACQ,MACJC;AAAA,gBACED,EAAQ;AAAA,gBACRP,EAAQG,CAAM;AAAA,gBACd,CAAC;AAAA,cACH;AAAA,YAAA,EACA,CAAC,IACLK;AAAA,cACEF,EAAS,KAAK,OAAO;AAAA,cACrBN,EAAQG,CAAM;AAAA,cACd,CAAC;AAAA,YAAA;AAAA,UAIX,CACD,GAEIE;AAAA,QACT;AAAA,MACF;AAAA,MACA;AAAA,MACA,EAAE,WAAW,GAAM;AAAA,IAAA;AAAA,EAIhB;AAEP;"}
@@ -1,5 +1,5 @@
1
1
  const t = {
2
- licenses: "http://dcat-ap.de/def/licenses/",
2
+ licence: "http://dcat-ap.de/def/licenses/",
3
3
  contributors: "http://dcat-ap.de/def/contributors/",
4
4
  "dataset-type": "http://publications.europa.eu/resource/authority/dataset-type/",
5
5
  "dataset-types": "http://dcat-ap.de/def/datasetTypes/",
@@ -1 +1 @@
1
- {"version":3,"file":"vocab-prefixes.mjs","sources":["../../../../lib/data-provider-interface/config/dcatapde/vocab-prefixes.js"],"sourcesContent":["const vocabPrefixesDCATAPDE = {\n \"licenses\": \"http://dcat-ap.de/def/licenses/\",\n \"contributors\": \"http://dcat-ap.de/def/contributors/\",\n \"dataset-type\": \"http://publications.europa.eu/resource/authority/dataset-type/\",\n \"dataset-types\": \"http://dcat-ap.de/def/datasetTypes/\",\n \"hash-algorithm\": \"http://dcat-ap.de/def/hashAlgorithms/\",\n \"planned-availability\": \"http://dcat-ap.de/def/plannedAvailability/\",\n \"political-geocoding-level\": \"http://dcat-ap.de/def/politicalGeocoding/Level/\",\n \"political-geocoding-district-key\": \"http://dcat-ap.de/def/politicalGeocoding/districtKey/\",\n \"political-geocoding-government-district-key\": \"http://dcat-ap.de/def/politicalGeocoding/governmentDistrictKey/\",\n \"political-geocoding-municipal-association-key\": \"http://dcat-ap.de/def/politicalGeocoding/municipalAssociationKey/\",\n \"political-geocoding-municipality-key\": \"http://dcat-ap.de/def/politicalGeocoding/municipalityKey/\",\n \"political-geocoding-regional-key\": \"http://dcat-ap.de/def/politicalGeocoding/regionalKey/\",\n \"political-geocoding-state-key\": \"http://dcat-ap.de/def/politicalGeocoding/\",\n \"eurovoc\": \"http://eurovoc.europa.eu/\",\n \"corporate-body\": \"http://publications.europa.eu/resource/authority/corporate-body/\",\n \"continent\": \"http://publications.europa.eu/resource/authority/continent/\",\n \"country\": \"http://publications.europa.eu/resource/authority/country/\",\n \"place\": \"http://publications.europa.eu/resource/authority/place/\",\n \"data-theme\": \"http://publications.europa.eu/resource/authority/data-theme/\",\n \"access-right\": \"http://publications.europa.eu/resource/authority/access-right/\",\n \"file-type\": \"http://publications.europa.eu/resource/authority/file-type/\",\n \"frequency\": \"http://publications.europa.eu/resource/authority/frequency/\",\n \"language\": \"http://publications.europa.eu/resource/authority/language/\",\n \"notation-type\": \"http://publications.europa.eu/resource/authority/notation-type/\",\n \"iana-media-types\": \"https://www.iana.org/assignments/media-types/\",\n \"spdx-checksum-algorithm\": \"http://spdx.org/rdf/terms#\",\n \"distribution-type\": \"http://publications.europa.eu/resource/authority/distribution-type/\",\n \"dataset-status\": \"http://publications.europa.eu/resource/authority/dataset-status/\",\n};\n\nexport default vocabPrefixesDCATAPDE;\n"],"names":["vocabPrefixesDCATAPDE"],"mappings":"AAAK,MAACA,IAAwB;AAAA,EAC1B,UAAY;AAAA,EACZ,cAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,wBAAwB;AAAA,EACxB,6BAA6B;AAAA,EAC7B,oCAAoC;AAAA,EACpC,+CAA+C;AAAA,EAC/C,iDAAiD;AAAA,EACjD,wCAAwC;AAAA,EACxC,oCAAoC;AAAA,EACpC,iCAAiC;AAAA,EACjC,SAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,WAAa;AAAA,EACb,SAAW;AAAA,EACX,OAAS;AAAA,EACT,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,WAAa;AAAA,EACb,UAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,oBAAoB;AAAA,EACpB,2BAA2B;AAAA,EAC3B,qBAAqB;AAAA,EACrB,kBAAkB;AACtB;"}
1
+ {"version":3,"file":"vocab-prefixes.mjs","sources":["../../../../lib/data-provider-interface/config/dcatapde/vocab-prefixes.js"],"sourcesContent":["const vocabPrefixesDCATAPDE = {\n \"licence\": \"http://dcat-ap.de/def/licenses/\",\n \"contributors\": \"http://dcat-ap.de/def/contributors/\",\n \"dataset-type\": \"http://publications.europa.eu/resource/authority/dataset-type/\",\n \"dataset-types\": \"http://dcat-ap.de/def/datasetTypes/\",\n \"hash-algorithm\": \"http://dcat-ap.de/def/hashAlgorithms/\",\n \"planned-availability\": \"http://dcat-ap.de/def/plannedAvailability/\",\n \"political-geocoding-level\": \"http://dcat-ap.de/def/politicalGeocoding/Level/\",\n \"political-geocoding-district-key\": \"http://dcat-ap.de/def/politicalGeocoding/districtKey/\",\n \"political-geocoding-government-district-key\": \"http://dcat-ap.de/def/politicalGeocoding/governmentDistrictKey/\",\n \"political-geocoding-municipal-association-key\": \"http://dcat-ap.de/def/politicalGeocoding/municipalAssociationKey/\",\n \"political-geocoding-municipality-key\": \"http://dcat-ap.de/def/politicalGeocoding/municipalityKey/\",\n \"political-geocoding-regional-key\": \"http://dcat-ap.de/def/politicalGeocoding/regionalKey/\",\n \"political-geocoding-state-key\": \"http://dcat-ap.de/def/politicalGeocoding/\",\n \"eurovoc\": \"http://eurovoc.europa.eu/\",\n \"corporate-body\": \"http://publications.europa.eu/resource/authority/corporate-body/\",\n \"continent\": \"http://publications.europa.eu/resource/authority/continent/\",\n \"country\": \"http://publications.europa.eu/resource/authority/country/\",\n \"place\": \"http://publications.europa.eu/resource/authority/place/\",\n \"data-theme\": \"http://publications.europa.eu/resource/authority/data-theme/\",\n \"access-right\": \"http://publications.europa.eu/resource/authority/access-right/\",\n \"file-type\": \"http://publications.europa.eu/resource/authority/file-type/\",\n \"frequency\": \"http://publications.europa.eu/resource/authority/frequency/\",\n \"language\": \"http://publications.europa.eu/resource/authority/language/\",\n \"notation-type\": \"http://publications.europa.eu/resource/authority/notation-type/\",\n \"iana-media-types\": \"https://www.iana.org/assignments/media-types/\",\n \"spdx-checksum-algorithm\": \"http://spdx.org/rdf/terms#\",\n \"distribution-type\": \"http://publications.europa.eu/resource/authority/distribution-type/\",\n \"dataset-status\": \"http://publications.europa.eu/resource/authority/dataset-status/\",\n};\n\nexport default vocabPrefixesDCATAPDE;\n"],"names":["vocabPrefixesDCATAPDE"],"mappings":"AAAK,MAACA,IAAwB;AAAA,EAC1B,SAAW;AAAA,EACX,cAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,wBAAwB;AAAA,EACxB,6BAA6B;AAAA,EAC7B,oCAAoC;AAAA,EACpC,+CAA+C;AAAA,EAC/C,iDAAiD;AAAA,EACjD,wCAAwC;AAAA,EACxC,oCAAoC;AAAA,EACpC,iCAAiC;AAAA,EACjC,SAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,WAAa;AAAA,EACb,SAAW;AAAA,EACX,OAAS;AAAA,EACT,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,WAAa;AAAA,EACb,UAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,oBAAoB;AAAA,EACpB,2BAA2B;AAAA,EAC3B,qBAAqB;AAAA,EACrB,kBAAkB;AACtB;"}
@@ -1,11 +1,15 @@
1
- import { dpiContextKey as o, setupDpiContext as t, useDpiContext as i } from "./composables/useDpiContext.mjs";
1
+ import { dpiContextKey as p, setupDpiContext as t, useDpiContext as r } from "./composables/useDpiContext.mjs";
2
2
  import { useDpiStepper as x } from "./composables/useDpiStepper.mjs";
3
- import { config as n } from "./config/dpi-spec-config.mjs";
3
+ import { useDpiEditMode as s } from "./composables/useDpiEditMode.mjs";
4
+ import { useRequestUriName as u } from "./composables/useRequestUriName.mjs";
5
+ import { config as d } from "./config/dpi-spec-config.mjs";
4
6
  export {
5
- o as dpiContextKey,
6
- n as dpiSpecConfig,
7
+ p as dpiContextKey,
8
+ d as dpiSpecConfig,
7
9
  t as setupDpiContext,
8
- i as useDpiContext,
9
- x as useDpiStepper
10
+ r as useDpiContext,
11
+ s as useDpiEditMode,
12
+ x as useDpiStepper,
13
+ u as useRequestUriName
10
14
  };
11
15
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -68,32 +68,6 @@ declare const module: {
68
68
  }): void;
69
69
  };
70
70
  };
71
- autocompleteModule: {
72
- state: {};
73
- getters: {};
74
- actions: {
75
- requestFirstEntrySuggestions({ commit }: {
76
- commit: any;
77
- }, voc: any, base: any): Promise<unknown>;
78
- requestAutocompleteSuggestions({ commit }: {
79
- commit: any;
80
- }, { voc, text, base }: {
81
- voc: any;
82
- text: any;
83
- base: any;
84
- }): Promise<unknown>;
85
- requestResourceName({ commit, state, rootGetters }: {
86
- commit: any;
87
- state: any;
88
- rootGetters: any;
89
- }, { voc, uri, envs }: {
90
- voc: any;
91
- uri: any;
92
- envs: any;
93
- }): Promise<unknown>;
94
- };
95
- mutations: {};
96
- };
97
71
  conversionModule: {
98
72
  state: {
99
73
  datasets: {};
@@ -1,12 +1,11 @@
1
1
  import t from "./modules/formSchemaStore.mjs";
2
- import o from "./modules/autocompleteStore.mjs";
3
- import c from "./modules/conversionStore.mjs";
4
- import a from "./modules/navigationStore.mjs";
5
- const n = {
2
+ import o from "./modules/conversionStore.mjs";
3
+ import c from "./modules/navigationStore.mjs";
4
+ const a = {
6
5
  // DPI specification as root state to be shared between all modules
7
6
  specification: {},
8
7
  specificationName: ""
9
- }, m = {
8
+ }, n = {
10
9
  getSpecification: (i) => i.specification,
11
10
  getSpecificationName: (i) => i.specificationName
12
11
  }, s = {
@@ -16,23 +15,22 @@ const n = {
16
15
  setSpecificationname: (i, e) => {
17
16
  i.commit("setSpecificationName", e);
18
17
  }
19
- }, p = {
18
+ }, m = {
20
19
  setSpecification: (i, e) => i.specification = e,
21
20
  setSpecificationName: (i, e) => i.specificationName = e
22
- }, l = {
21
+ }, u = {
23
22
  namespaced: !0,
24
- state: n,
23
+ state: a,
25
24
  actions: s,
26
- mutations: p,
27
- getters: m,
25
+ mutations: m,
26
+ getters: n,
28
27
  modules: {
29
28
  formModule: t,
30
- autocompleteModule: o,
31
- conversionModule: c,
32
- navigationModule: a
29
+ conversionModule: o,
30
+ navigationModule: c
33
31
  }
34
32
  };
35
33
  export {
36
- l as default
34
+ u as default
37
35
  };
38
36
  //# sourceMappingURL=dpiStore.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"dpiStore.mjs","sources":["../../../lib/data-provider-interface/store/dpiStore.ts"],"sourcesContent":["// @ts-nocheck\n/* eslint-disable no-param-reassign, no-shadow, no-console */\nimport formModule from './modules/formSchemaStore';\nimport autocompleteModule from './modules/autocompleteStore';\nimport conversionModule from './modules/conversionStore';\nimport navigationModule from './modules/navigationStore';\n\nconst state = {\n // DPI specification as root state to be shared between all modules\n specification: {},\n specificationName: '',\n};\nconst getters = {\n getSpecification: state => state.specification,\n getSpecificationName: state => state.specificationName\n};\nconst actions = {\n setSpecification: (context, specification) => {\n context.commit('setSpecification', specification);\n },\n setSpecificationname: (context, specificationName) => {\n context.commit('setSpecificationName', specificationName);\n }\n};\nconst mutations = {\n setSpecification: (state, specification) => (state.specification = specification),\n setSpecificationName: (state, specificationName) => (state.specificationName = specificationName)\n};\n\nconst module = {\n namespaced: true,\n state,\n actions,\n mutations,\n getters,\n modules: {\n formModule,\n autocompleteModule,\n conversionModule,\n navigationModule\n }\n};\n\nexport default module;\n"],"names":["state","getters","actions","context","specification","specificationName","mutations","module","formModule","autocompleteModule","conversionModule","navigationModule"],"mappings":";;;;AAOA,MAAMA,IAAQ;AAAA;AAAA,EAEZ,eAAe,CAAC;AAAA,EAChB,mBAAmB;AACrB,GACMC,IAAU;AAAA,EACd,kBAAkB,CAAAD,MAASA,EAAM;AAAA,EACjC,sBAAsB,CAAAA,MAASA,EAAM;AACvC,GACME,IAAU;AAAA,EACd,kBAAkB,CAACC,GAASC,MAAkB;AACpC,IAAAD,EAAA,OAAO,oBAAoBC,CAAa;AAAA,EAClD;AAAA,EACA,sBAAsB,CAACD,GAASE,MAAsB;AAC5C,IAAAF,EAAA,OAAO,wBAAwBE,CAAiB;AAAA,EAC1D;AACF,GACMC,IAAY;AAAA,EAChB,kBAAkB,CAACN,GAAOI,MAAmBJ,EAAM,gBAAgBI;AAAA,EACnE,sBAAsB,CAACJ,GAAOK,MAAuBL,EAAM,oBAAoBK;AACjF,GAEME,IAAS;AAAA,EACb,YAAY;AAAA,EACZ,OAAAP;AAAA,EACA,SAAAE;AAAA,EACA,WAAAI;AAAA,EACA,SAAAL;AAAA,EACA,SAAS;AAAA,IACP,YAAAO;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,kBAAAC;AAAA,EACF;AACF;"}
1
+ {"version":3,"file":"dpiStore.mjs","sources":["../../../lib/data-provider-interface/store/dpiStore.ts"],"sourcesContent":["// @ts-nocheck\n/* eslint-disable no-param-reassign, no-shadow, no-console */\nimport formModule from './modules/formSchemaStore';\nimport conversionModule from './modules/conversionStore';\nimport navigationModule from './modules/navigationStore';\n\nconst state = {\n // DPI specification as root state to be shared between all modules\n specification: {},\n specificationName: '',\n};\nconst getters = {\n getSpecification: state => state.specification,\n getSpecificationName: state => state.specificationName\n};\nconst actions = {\n setSpecification: (context, specification) => {\n context.commit('setSpecification', specification);\n },\n setSpecificationname: (context, specificationName) => {\n context.commit('setSpecificationName', specificationName);\n }\n};\nconst mutations = {\n setSpecification: (state, specification) => (state.specification = specification),\n setSpecificationName: (state, specificationName) => (state.specificationName = specificationName)\n};\n\nconst module = {\n namespaced: true,\n state,\n actions,\n mutations,\n getters,\n modules: {\n formModule,\n conversionModule,\n navigationModule\n }\n};\n\nexport default module;\n"],"names":["state","getters","actions","context","specification","specificationName","mutations","module","formModule","conversionModule","navigationModule"],"mappings":";;;AAMA,MAAMA,IAAQ;AAAA;AAAA,EAEZ,eAAe,CAAC;AAAA,EAChB,mBAAmB;AACrB,GACMC,IAAU;AAAA,EACd,kBAAkB,CAAAD,MAASA,EAAM;AAAA,EACjC,sBAAsB,CAAAA,MAASA,EAAM;AACvC,GACME,IAAU;AAAA,EACd,kBAAkB,CAACC,GAASC,MAAkB;AACpC,IAAAD,EAAA,OAAO,oBAAoBC,CAAa;AAAA,EAClD;AAAA,EACA,sBAAsB,CAACD,GAASE,MAAsB;AAC5C,IAAAF,EAAA,OAAO,wBAAwBE,CAAiB;AAAA,EAC1D;AACF,GACMC,IAAY;AAAA,EAChB,kBAAkB,CAACN,GAAOI,MAAmBJ,EAAM,gBAAgBI;AAAA,EACnE,sBAAsB,CAACJ,GAAOK,MAAuBL,EAAM,oBAAoBK;AACjF,GAEME,IAAS;AAAA,EACb,YAAY;AAAA,EACZ,OAAAP;AAAA,EACA,SAAAE;AAAA,EACA,WAAAI;AAAA,EACA,SAAAL;AAAA,EACA,SAAS;AAAA,IACP,YAAAO;AAAA,IACA,kBAAAC;AAAA,IACA,kBAAAC;AAAA,EACF;AACF;"}