@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.
- package/dist/configurations/configureComponents.mjs +20 -18
- package/dist/configurations/configureComponents.mjs.map +1 -1
- package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +59 -20
- package/dist/data-provider-interface/DataProviderInterface.vue.mjs.map +1 -1
- package/dist/data-provider-interface/DataProviderInterface.vue2.mjs +36 -25
- package/dist/data-provider-interface/DataProviderInterface.vue2.mjs.map +1 -1
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +92 -89
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +104 -107
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SpatialInput.vue.mjs +190 -148
- package/dist/data-provider-interface/components/SpatialInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs +19 -8
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/composables/aucotomplete.d.ts +27 -0
- package/dist/data-provider-interface/composables/aucotomplete.mjs +52 -0
- package/dist/data-provider-interface/composables/aucotomplete.mjs.map +1 -0
- package/dist/data-provider-interface/composables/index.d.ts +4 -0
- package/dist/data-provider-interface/composables/useDpiContext.mjs +7 -9
- package/dist/data-provider-interface/composables/useDpiContext.mjs.map +1 -1
- package/dist/data-provider-interface/composables/useRequestUriName.d.ts +18 -0
- package/dist/data-provider-interface/composables/useRequestUriName.mjs +59 -0
- package/dist/data-provider-interface/composables/useRequestUriName.mjs.map +1 -0
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.mjs +1 -1
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.mjs.map +1 -1
- package/dist/data-provider-interface/index.mjs +10 -6
- package/dist/data-provider-interface/index.mjs.map +1 -1
- package/dist/data-provider-interface/store/dpiStore.d.ts +0 -26
- package/dist/data-provider-interface/store/dpiStore.mjs +12 -14
- package/dist/data-provider-interface/store/dpiStore.mjs.map +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.d.ts +49 -20
- package/dist/data-provider-interface/views/InputPage.vue.mjs +125 -107
- package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.d.ts +16 -6
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.d.ts +32 -14
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs +27 -31
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.d.ts +16 -6
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.d.ts +8 -3
- package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.d.ts +8 -3
- package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.mjs +57 -47
- package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.d.ts +16 -6
- package/dist/data-provider-interface/views/OverviewPage.vue.d.ts +48 -20
- package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs +50 -36
- package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsDataset.vue2.mjs +4 -4
- package/dist/datasetDetails/DatasetDetailsDataset.vue2.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.d.ts +3 -3
- package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.mjs +3 -3
- package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsIsUsedBy.vue.mjs +18 -18
- package/dist/datasetDetails/properties/DatasetDetailsProperties.vue.mjs +58 -50
- package/dist/datasetDetails/properties/DatasetDetailsProperties.vue.mjs.map +1 -1
- package/dist/external/@vueuse/core/index +3 -2
- package/dist/external/@vueuse/shared/index +86 -72
- package/dist/external/@vueuse/shared/index.map +1 -1
- package/dist/form/Repeatable.vue.d.ts +11 -10
- package/dist/form/Repeatable.vue.mjs +5 -62
- package/dist/form/Repeatable.vue.mjs.map +1 -1
- package/dist/form/Repeatable.vue2.mjs +72 -2
- package/dist/form/Repeatable.vue2.mjs.map +1 -1
- package/dist/form/Repeatable.vue3.mjs +5 -0
- package/dist/form/Repeatable.vue3.mjs.map +1 -0
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/package.json +1 -1
- package/dist/data-provider-interface/store/modules/autocompleteStore.d.ts +0 -27
- package/dist/data-provider-interface/store/modules/autocompleteStore.mjs +0 -54
- package/dist/data-provider-interface/store/modules/autocompleteStore.mjs.map +0 -1
|
@@ -595,8 +595,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
595
595
|
getDate(date: any): string;
|
|
596
596
|
checkIfPropertyValueSet(data: any, property: any, value: any): any;
|
|
597
597
|
reqName(URI: any): Promise<any>;
|
|
598
|
-
requestFirstEntrySuggestions: import('vuex').ActionMethod;
|
|
599
|
-
requestAutocompleteSuggestions: import('vuex').ActionMethod;
|
|
600
598
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
601
599
|
dpiLocale: StringConstructor;
|
|
602
600
|
}>> & Readonly<{}>, {}, {}, {
|
|
@@ -626,15 +624,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
626
624
|
value: ObjectConstructor;
|
|
627
625
|
data: ObjectConstructor;
|
|
628
626
|
inHeader: StringConstructor;
|
|
629
|
-
}>, {
|
|
627
|
+
}>, {
|
|
628
|
+
requestResourceName: (options: {
|
|
629
|
+
voc: string;
|
|
630
|
+
uri: string;
|
|
631
|
+
envs: any;
|
|
632
|
+
}) => Promise<any>;
|
|
633
|
+
getURILabel: (value: any) => Promise<any>;
|
|
634
|
+
}, {
|
|
630
635
|
nameOfProperty: string;
|
|
631
636
|
namesOfMulti: never[];
|
|
632
637
|
}, {}, {
|
|
633
638
|
trimString(str: any, maxLength: any): any;
|
|
634
639
|
getTranslationFor: typeof import('../..').getTranslationFor;
|
|
635
640
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
636
|
-
getURILabel(value: any): Promise<any>;
|
|
637
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
638
641
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
639
642
|
property: StringConstructor;
|
|
640
643
|
value: ObjectConstructor;
|
|
@@ -698,15 +701,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
698
701
|
value: ObjectConstructor;
|
|
699
702
|
data: ObjectConstructor;
|
|
700
703
|
inHeader: StringConstructor;
|
|
701
|
-
}>, {
|
|
704
|
+
}>, {
|
|
705
|
+
requestResourceName: (options: {
|
|
706
|
+
voc: string;
|
|
707
|
+
uri: string;
|
|
708
|
+
envs: any;
|
|
709
|
+
}) => Promise<any>;
|
|
710
|
+
getURILabel: (value: any) => Promise<any>;
|
|
711
|
+
}, {
|
|
702
712
|
nameOfProperty: string;
|
|
703
713
|
namesOfMulti: never[];
|
|
704
714
|
}, {}, {
|
|
705
715
|
trimString(str: any, maxLength: any): any;
|
|
706
716
|
getTranslationFor: typeof import('../..').getTranslationFor;
|
|
707
717
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
708
|
-
getURILabel(value: any): Promise<any>;
|
|
709
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
710
718
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
711
719
|
property: StringConstructor;
|
|
712
720
|
value: ObjectConstructor;
|
|
@@ -885,15 +893,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
885
893
|
value: ObjectConstructor;
|
|
886
894
|
data: ObjectConstructor;
|
|
887
895
|
inHeader: StringConstructor;
|
|
888
|
-
}>, {
|
|
896
|
+
}>, {
|
|
897
|
+
requestResourceName: (options: {
|
|
898
|
+
voc: string;
|
|
899
|
+
uri: string;
|
|
900
|
+
envs: any;
|
|
901
|
+
}) => Promise<any>;
|
|
902
|
+
getURILabel: (value: any) => Promise<any>;
|
|
903
|
+
}, {
|
|
889
904
|
nameOfProperty: string;
|
|
890
905
|
namesOfMulti: never[];
|
|
891
906
|
}, {}, {
|
|
892
907
|
trimString(str: any, maxLength: any): any;
|
|
893
908
|
getTranslationFor: typeof import('../..').getTranslationFor;
|
|
894
909
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
895
|
-
getURILabel(value: any): Promise<any>;
|
|
896
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
897
910
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
898
911
|
property: StringConstructor;
|
|
899
912
|
value: ObjectConstructor;
|
|
@@ -957,15 +970,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
957
970
|
value: ObjectConstructor;
|
|
958
971
|
data: ObjectConstructor;
|
|
959
972
|
inHeader: StringConstructor;
|
|
960
|
-
}>, {
|
|
973
|
+
}>, {
|
|
974
|
+
requestResourceName: (options: {
|
|
975
|
+
voc: string;
|
|
976
|
+
uri: string;
|
|
977
|
+
envs: any;
|
|
978
|
+
}) => Promise<any>;
|
|
979
|
+
getURILabel: (value: any) => Promise<any>;
|
|
980
|
+
}, {
|
|
961
981
|
nameOfProperty: string;
|
|
962
982
|
namesOfMulti: never[];
|
|
963
983
|
}, {}, {
|
|
964
984
|
trimString(str: any, maxLength: any): any;
|
|
965
985
|
getTranslationFor: typeof import('../..').getTranslationFor;
|
|
966
986
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
967
|
-
getURILabel(value: any): Promise<any>;
|
|
968
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
969
987
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
970
988
|
property: StringConstructor;
|
|
971
989
|
value: ObjectConstructor;
|
|
@@ -1074,15 +1092,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1074
1092
|
value: ObjectConstructor;
|
|
1075
1093
|
data: ObjectConstructor;
|
|
1076
1094
|
inHeader: StringConstructor;
|
|
1077
|
-
}>, {
|
|
1095
|
+
}>, {
|
|
1096
|
+
requestResourceName: (options: {
|
|
1097
|
+
voc: string;
|
|
1098
|
+
uri: string;
|
|
1099
|
+
envs: any;
|
|
1100
|
+
}) => Promise<any>;
|
|
1101
|
+
getURILabel: (value: any) => Promise<any>;
|
|
1102
|
+
}, {
|
|
1078
1103
|
nameOfProperty: string;
|
|
1079
1104
|
namesOfMulti: never[];
|
|
1080
1105
|
}, {}, {
|
|
1081
1106
|
trimString(str: any, maxLength: any): any;
|
|
1082
1107
|
getTranslationFor: typeof import('../..').getTranslationFor;
|
|
1083
1108
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
1084
|
-
getURILabel(value: any): Promise<any>;
|
|
1085
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
1086
1109
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1087
1110
|
property: StringConstructor;
|
|
1088
1111
|
value: ObjectConstructor;
|
|
@@ -1146,15 +1169,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1146
1169
|
value: ObjectConstructor;
|
|
1147
1170
|
data: ObjectConstructor;
|
|
1148
1171
|
inHeader: StringConstructor;
|
|
1149
|
-
}>, {
|
|
1172
|
+
}>, {
|
|
1173
|
+
requestResourceName: (options: {
|
|
1174
|
+
voc: string;
|
|
1175
|
+
uri: string;
|
|
1176
|
+
envs: any;
|
|
1177
|
+
}) => Promise<any>;
|
|
1178
|
+
getURILabel: (value: any) => Promise<any>;
|
|
1179
|
+
}, {
|
|
1150
1180
|
nameOfProperty: string;
|
|
1151
1181
|
namesOfMulti: never[];
|
|
1152
1182
|
}, {}, {
|
|
1153
1183
|
trimString(str: any, maxLength: any): any;
|
|
1154
1184
|
getTranslationFor: typeof import('../..').getTranslationFor;
|
|
1155
1185
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
1156
|
-
getURILabel(value: any): Promise<any>;
|
|
1157
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
1158
1186
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1159
1187
|
property: StringConstructor;
|
|
1160
1188
|
value: ObjectConstructor;
|
|
@@ -1178,6 +1206,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1178
1206
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1179
1207
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1180
1208
|
}>;
|
|
1209
|
+
isEditMode: import('vue').ComputedRef<boolean>;
|
|
1181
1210
|
}, {
|
|
1182
1211
|
heightActiveSec: string;
|
|
1183
1212
|
formValues: {};
|
|
@@ -1,18 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { mapGetters as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { has as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { useDpiStepper as
|
|
11
|
-
import { useWindowScroll as
|
|
1
|
+
import { defineComponent as E, markRaw as L, computed as A, resolveComponent as h, openBlock as o, createElementBlock as r, createElementVNode as d, createVNode as b, withModifiers as M, withCtx as C, Fragment as D, renderList as V, normalizeClass as O, toDisplayString as f, createTextVNode as n, createCommentVNode as m, createBlock as $ } from "vue";
|
|
2
|
+
import { mapGetters as P, mapActions as F } from "vuex";
|
|
3
|
+
import U from "jquery";
|
|
4
|
+
import W from "./PropertyChooser.vue.mjs";
|
|
5
|
+
import { has as v, isNil as w, isEmpty as j } from "lodash-es";
|
|
6
|
+
import q from "./DistributionInputPage.vue.mjs";
|
|
7
|
+
import B from "./OverviewPage.vue.mjs";
|
|
8
|
+
import K from "../components/InputPageStep.vue.mjs";
|
|
9
|
+
import R from "../components/Navigation.vue.mjs";
|
|
10
|
+
import { useDpiStepper as z } from "../composables/useDpiStepper.mjs";
|
|
11
|
+
import { useWindowScroll as G } from "../../external/@vueuse/core/index";
|
|
12
12
|
import "@formkit/vue";
|
|
13
|
+
import { useDpiContext as H } from "../composables/useDpiContext.mjs";
|
|
14
|
+
import "vue-router";
|
|
15
|
+
import "merge-anything";
|
|
16
|
+
import "../../configurations/config-schema/apiSchema.mjs";
|
|
17
|
+
import "../../configurations/config-schema/authenticationSchema.mjs";
|
|
18
|
+
import "../../configurations/config-schema/contentSchema.mjs";
|
|
19
|
+
import "../../configurations/config-schema/routingSchema.mjs";
|
|
20
|
+
import "../../configurations/config-schema/metadataSchema.mjs";
|
|
21
|
+
import "../../configurations/config-schema/languagesSchema.mjs";
|
|
22
|
+
import "../../configurations/config-schema/themesSchema.mjs";
|
|
23
|
+
import "../../configurations/config-schema/trackerSchema.mjs";
|
|
24
|
+
import "../../configurations/config-schema/configSchema.mjs";
|
|
25
|
+
import "../../utils/helpers.mjs";
|
|
26
|
+
import "axios";
|
|
13
27
|
import "./InputPage.vue2.mjs";
|
|
14
|
-
import
|
|
15
|
-
const
|
|
28
|
+
import N from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
29
|
+
const Z = E({
|
|
16
30
|
props: {
|
|
17
31
|
property: {
|
|
18
32
|
required: !0,
|
|
@@ -36,23 +50,23 @@ const G = w({
|
|
|
36
50
|
};
|
|
37
51
|
},
|
|
38
52
|
components: {
|
|
39
|
-
InputPageStep:
|
|
40
|
-
DistributionInputPage:
|
|
41
|
-
PropertyChooser:
|
|
42
|
-
Navigation:
|
|
53
|
+
InputPageStep: K,
|
|
54
|
+
DistributionInputPage: q,
|
|
55
|
+
PropertyChooser: W,
|
|
56
|
+
Navigation: R
|
|
43
57
|
},
|
|
44
58
|
computed: {
|
|
45
|
-
|
|
59
|
+
...P("auth", [
|
|
46
60
|
"getIsEditMode",
|
|
47
61
|
"getUserCatalogIds"
|
|
48
62
|
]),
|
|
49
|
-
|
|
63
|
+
...P("dpiStore", [
|
|
50
64
|
"getSchema",
|
|
51
65
|
"getNavSteps",
|
|
52
66
|
"getDeleteDistributionInline"
|
|
53
67
|
]),
|
|
54
68
|
getTitleStep() {
|
|
55
|
-
return Object.keys(this.formValues).filter((e) =>
|
|
69
|
+
return Object.keys(this.formValues).filter((e) => v(this.formValues[e], "dct:title"))[0];
|
|
56
70
|
},
|
|
57
71
|
createIDFromTitle() {
|
|
58
72
|
const e = this.formValues[this.getTitleStep]["dct:title"][0]["@value"];
|
|
@@ -61,18 +75,18 @@ const G = w({
|
|
|
61
75
|
},
|
|
62
76
|
getFirstTitleFromForm() {
|
|
63
77
|
const e = this.formValues[this.getTitleStep];
|
|
64
|
-
return
|
|
78
|
+
return v(e, "dct:title") && e["dct:title"].length > 0 && v(e["dct:title"][0], "@value") && !w(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
|
|
65
79
|
},
|
|
66
80
|
isInput() {
|
|
67
81
|
return this.$route.params.page !== "overview" && this.$route.params.page !== "distoverview";
|
|
68
82
|
}
|
|
69
83
|
},
|
|
70
84
|
methods: {
|
|
71
|
-
...
|
|
85
|
+
...F("auth", [
|
|
72
86
|
"setIsEditMode",
|
|
73
87
|
"setIsDraft"
|
|
74
88
|
]),
|
|
75
|
-
...
|
|
89
|
+
...F("dpiStore", [
|
|
76
90
|
"createSchema",
|
|
77
91
|
"translateSchema",
|
|
78
92
|
"saveFormValues",
|
|
@@ -85,9 +99,9 @@ const G = w({
|
|
|
85
99
|
},
|
|
86
100
|
dropdownCLick() {
|
|
87
101
|
const e = document.querySelectorAll(".formkitProperty h4");
|
|
88
|
-
this.expandall && e.forEach((t,
|
|
102
|
+
this.expandall && e.forEach((t, u) => {
|
|
89
103
|
t.classList.add("dpiChevUp"), t.nextElementSibling.classList.remove("d-none");
|
|
90
|
-
}), this.expandall || e.forEach((t,
|
|
104
|
+
}), this.expandall || e.forEach((t, u) => {
|
|
91
105
|
t.classList.remove("dpiChevUp"), t.nextElementSibling.classList.add("d-none");
|
|
92
106
|
});
|
|
93
107
|
},
|
|
@@ -106,13 +120,13 @@ const G = w({
|
|
|
106
120
|
(s.identifier === "issued" || s.identifier === "modified") && (s.children[1].props.else.validation = "", s.children[1].props.else["validation-visibility"] = "", s.children[1].props.then.validation = "", s.children[1].props.then["validation-visibility"] = "", s.children[1].props.then.validation = "", s.children[1].props.then["validation-visibility"] = "");
|
|
107
121
|
}
|
|
108
122
|
), localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.saveLocalstorageValues(this.property);
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
123
|
+
const u = this.$store.getters["dpiStore/getRawValues"]({ property: this.property });
|
|
124
|
+
j(u) || (this.formValues = u), this.$nextTick(() => {
|
|
125
|
+
U('[data-toggle="tooltip"]').tooltip({
|
|
112
126
|
container: "body"
|
|
113
127
|
}), setTimeout(() => {
|
|
114
|
-
document.querySelectorAll(".formkitProperty h4").forEach((a,
|
|
115
|
-
a.parentElement.parentElement.classList.contains("formkitWrapRepeatable") || (
|
|
128
|
+
document.querySelectorAll(".formkitProperty h4").forEach((a, c) => {
|
|
129
|
+
a.parentElement.parentElement.classList.contains("formkitWrapRepeatable") || (c != 0 && c != 1 && c != 2 && c != 3 && a.nextElementSibling.classList.toggle("d-none"), a.addEventListener("click", () => {
|
|
116
130
|
a.classList.toggle("dpiChevUp"), a.nextElementSibling.classList.toggle("d-none");
|
|
117
131
|
}));
|
|
118
132
|
}), document.querySelectorAll(".formkitProperty");
|
|
@@ -121,7 +135,7 @@ const G = w({
|
|
|
121
135
|
},
|
|
122
136
|
createDatasetID() {
|
|
123
137
|
const e = this.formValues[this.getTitleStep];
|
|
124
|
-
!
|
|
138
|
+
!v(e, "datasetID") || w(e.datasetID) ? this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle : (this.createIDFromTitle.startsWith(e.datasetID) || e.datasetID.startsWith(this.createIDFromTitle)) && (this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle);
|
|
125
139
|
},
|
|
126
140
|
generateandTranslateSchema(e) {
|
|
127
141
|
for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
|
|
@@ -141,8 +155,8 @@ const G = w({
|
|
|
141
155
|
}
|
|
142
156
|
},
|
|
143
157
|
getFirstTitleFromForm: {
|
|
144
|
-
handler() {
|
|
145
|
-
localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.
|
|
158
|
+
handler(e, t) {
|
|
159
|
+
e !== t && (localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.isEditMode || this.createDatasetID());
|
|
146
160
|
}
|
|
147
161
|
},
|
|
148
162
|
// the schema is a computed value which gets computed only once so on language change this value must be re-computed
|
|
@@ -152,62 +166,66 @@ const G = w({
|
|
|
152
166
|
}
|
|
153
167
|
}
|
|
154
168
|
},
|
|
155
|
-
beforeRouteEnter(e, t,
|
|
156
|
-
|
|
169
|
+
beforeRouteEnter(e, t, u) {
|
|
170
|
+
u((s) => {
|
|
157
171
|
t.name && !t.name.startsWith("DataProviderInterface") && s.clearAll();
|
|
158
172
|
});
|
|
159
173
|
},
|
|
160
174
|
setup() {
|
|
161
|
-
const {
|
|
162
|
-
steps:
|
|
163
|
-
activeStep:
|
|
164
|
-
visitedSteps:
|
|
165
|
-
previousStep:
|
|
166
|
-
nextStep:
|
|
167
|
-
stepPlugin:
|
|
168
|
-
goToNextStep:
|
|
169
|
-
goToPreviousStep:
|
|
170
|
-
} =
|
|
171
|
-
let { x:
|
|
172
|
-
|
|
173
|
-
},
|
|
175
|
+
const e = H(), {
|
|
176
|
+
steps: t,
|
|
177
|
+
activeStep: u,
|
|
178
|
+
visitedSteps: s,
|
|
179
|
+
previousStep: a,
|
|
180
|
+
nextStep: c,
|
|
181
|
+
stepPlugin: g,
|
|
182
|
+
goToNextStep: S,
|
|
183
|
+
goToPreviousStep: y
|
|
184
|
+
} = z(), I = () => {
|
|
185
|
+
let { x: p, y: T } = G({ behavior: "smooth" });
|
|
186
|
+
T.value = 0;
|
|
187
|
+
}, k = (p) => (t[p].errorCount > 0 || t[p].blockingCount > 0) && s.value.includes(p), i = L({ OverviewPage: B }), l = A(() => {
|
|
188
|
+
var p;
|
|
189
|
+
return !!((p = e.value.edit) != null && p.enabled);
|
|
190
|
+
});
|
|
174
191
|
return {
|
|
175
|
-
steps:
|
|
176
|
-
visitedSteps:
|
|
177
|
-
activeStep:
|
|
178
|
-
previousStep:
|
|
179
|
-
nextStep:
|
|
180
|
-
stepPlugin:
|
|
181
|
-
checkStepValidity:
|
|
182
|
-
goToNextStep:
|
|
183
|
-
goToPreviousStep:
|
|
184
|
-
scrollToTop:
|
|
185
|
-
library:
|
|
192
|
+
steps: t,
|
|
193
|
+
visitedSteps: s,
|
|
194
|
+
activeStep: u,
|
|
195
|
+
previousStep: a,
|
|
196
|
+
nextStep: c,
|
|
197
|
+
stepPlugin: g,
|
|
198
|
+
checkStepValidity: k,
|
|
199
|
+
goToNextStep: S,
|
|
200
|
+
goToPreviousStep: y,
|
|
201
|
+
scrollToTop: I,
|
|
202
|
+
library: i,
|
|
203
|
+
isEditMode: l
|
|
186
204
|
};
|
|
187
205
|
}
|
|
188
|
-
}),
|
|
206
|
+
}), J = { class: "form-container" }, Q = {
|
|
189
207
|
key: 0,
|
|
190
208
|
ref: "fkInputContainer",
|
|
191
209
|
class: "inputContainer"
|
|
192
|
-
},
|
|
210
|
+
}, X = { class: "formContainer formkit position-relative" }, Y = { class: "d-flex" }, x = { class: "steps" }, _ = ["data-step-active", "data-step-valid", "onClick"], ee = { class: "stepBubbleWrap" }, te = { class: "circle stepCircle" }, ie = ["textContent"], se = {
|
|
193
211
|
key: 0,
|
|
194
212
|
class: "seperatorHorizontalStepper"
|
|
195
|
-
},
|
|
213
|
+
}, oe = {
|
|
196
214
|
key: 0,
|
|
197
215
|
class: "step inactiveStep"
|
|
198
|
-
},
|
|
216
|
+
}, re = { class: "d-flex flex-column w-100" }, ae = {
|
|
199
217
|
key: 0,
|
|
200
218
|
class: "w-100 d-flex justify-content-between"
|
|
201
|
-
},
|
|
219
|
+
}, ne = { style: { "min-width": "80%" } }, le = { key: 0 }, pe = { key: 1 }, de = { key: 1 }, ue = {
|
|
202
220
|
key: 4,
|
|
203
221
|
class: "p-1"
|
|
204
222
|
};
|
|
205
|
-
function
|
|
206
|
-
const
|
|
207
|
-
return o(), r("div",
|
|
208
|
-
e.isInput ? (o(), r("div",
|
|
209
|
-
d("div",
|
|
210
|
-
|
|
223
|
+
function me(e, t, u, s, a, c) {
|
|
224
|
+
const g = h("FormKitSchema"), S = h("DistributionInputPage"), y = h("InputPageStep"), I = h("Navigation"), k = h("FormKit");
|
|
225
|
+
return o(), r("div", J, [
|
|
226
|
+
e.isInput ? (o(), r("div", Q, [
|
|
227
|
+
d("div", X, [
|
|
228
|
+
b(k, {
|
|
211
229
|
type: "form",
|
|
212
230
|
modelValue: e.formValues,
|
|
213
231
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.formValues = i),
|
|
@@ -216,76 +234,76 @@ function pe(e, t, p, s, a, m) {
|
|
|
216
234
|
id: "dpiForm",
|
|
217
235
|
onChange: t[2] || (t[2] = (i) => e.saveFormValues({ property: e.property, page: e.page, distid: e.id, values: e.formValues })),
|
|
218
236
|
onClick: t[3] || (t[3] = (i) => e.saveFormValues({ property: e.property, page: e.page, distid: e.id, values: e.formValues })),
|
|
219
|
-
onSubmit: t[4] || (t[4] =
|
|
237
|
+
onSubmit: t[4] || (t[4] = M(() => {
|
|
220
238
|
}, ["prevent"])),
|
|
221
239
|
class: "d-flex"
|
|
222
240
|
}, {
|
|
223
|
-
default:
|
|
224
|
-
d("div",
|
|
225
|
-
d("ul",
|
|
226
|
-
(o(!0), r(
|
|
241
|
+
default: C(() => [
|
|
242
|
+
d("div", Y, [
|
|
243
|
+
d("ul", x, [
|
|
244
|
+
(o(!0), r(D, null, V(e.steps, (i, l, p) => (o(), r("li", {
|
|
227
245
|
key: i,
|
|
228
|
-
class:
|
|
246
|
+
class: O(["step", { activeItem: e.activeStep === l, inactiveStep: l != e.activeStep, "has-errors": e.checkStepValidity(l) }]),
|
|
229
247
|
"data-step-active": e.activeStep === l,
|
|
230
248
|
"data-step-valid": i.valid && i.errorCount === 0,
|
|
231
|
-
onClick: (
|
|
249
|
+
onClick: (T) => {
|
|
232
250
|
e.activeStep = l, e.update(), e.scrollToTop();
|
|
233
251
|
}
|
|
234
252
|
}, [
|
|
235
|
-
d("div",
|
|
236
|
-
d("div",
|
|
253
|
+
d("div", ee, [
|
|
254
|
+
d("div", te, f(p + 1), 1),
|
|
237
255
|
t[5] || (t[5] = n()),
|
|
238
256
|
e.checkStepValidity(l) ? (o(), r("span", {
|
|
239
257
|
key: 0,
|
|
240
258
|
class: "step--errors",
|
|
241
|
-
textContent:
|
|
242
|
-
}, null, 8,
|
|
243
|
-
n(
|
|
259
|
+
textContent: f(i.errorCount + i.blockingCount)
|
|
260
|
+
}, null, 8, ie)) : m("", !0),
|
|
261
|
+
n(f(e.$t("message.dataupload.steps." + l + "Step")), 1)
|
|
244
262
|
]),
|
|
245
263
|
t[6] || (t[6] = n()),
|
|
246
|
-
|
|
247
|
-
], 10,
|
|
264
|
+
p != Object.keys(e.steps).length ? (o(), r("div", se)) : m("", !0)
|
|
265
|
+
], 10, _))), 128)),
|
|
248
266
|
t[8] || (t[8] = n()),
|
|
249
|
-
e.activeStep === "Overview" ? (o(), r("li",
|
|
267
|
+
e.activeStep === "Overview" ? (o(), r("li", oe, t[7] || (t[7] = [
|
|
250
268
|
d("div", { class: "circle stepCircle" }, null, -1)
|
|
251
|
-
]))) :
|
|
269
|
+
]))) : m("", !0)
|
|
252
270
|
]),
|
|
253
271
|
t[15] || (t[15] = n()),
|
|
254
|
-
d("div",
|
|
255
|
-
(o(!0), r(
|
|
256
|
-
|
|
257
|
-
default:
|
|
258
|
-
i !== "Distributions" && i !== "Overview" ? (o(), r("div",
|
|
259
|
-
d("h1",
|
|
272
|
+
d("div", re, [
|
|
273
|
+
(o(!0), r(D, null, V(e.getNavSteps(e.$env.content.dataProviderInterface.specification)[e.property], (i, l) => (o(), r("div", { key: l }, [
|
|
274
|
+
b(y, { name: i }, {
|
|
275
|
+
default: C(() => [
|
|
276
|
+
i !== "Distributions" && i !== "Overview" ? (o(), r("div", ae, [
|
|
277
|
+
d("h1", ne, f(e.$t("message.dataupload.steps." + i)), 1),
|
|
260
278
|
t[9] || (t[9] = n()),
|
|
261
279
|
d("a", {
|
|
262
280
|
class: "standardButtonDPI",
|
|
263
|
-
onClick: t[0] || (t[0] = (
|
|
281
|
+
onClick: t[0] || (t[0] = (p) => {
|
|
264
282
|
e.dropdownCLick(), e.expandall = !e.expandall;
|
|
265
283
|
})
|
|
266
284
|
}, [
|
|
267
|
-
e.expandall ? (o(), r("span",
|
|
285
|
+
e.expandall ? (o(), r("span", le, f(e.$t("message.dataupload.info.expand")), 1)) : (o(), r("span", pe, f(e.$t("message.dataupload.info.hide")), 1))
|
|
268
286
|
])
|
|
269
|
-
])) :
|
|
287
|
+
])) : m("", !0),
|
|
270
288
|
t[11] || (t[11] = n()),
|
|
271
|
-
i !== "Distributions" ? (o(), r("hr",
|
|
289
|
+
i !== "Distributions" ? (o(), r("hr", de)) : m("", !0),
|
|
272
290
|
t[12] || (t[12] = n()),
|
|
273
|
-
i !== "Distributions" ? (o(),
|
|
291
|
+
i !== "Distributions" ? (o(), $(g, {
|
|
274
292
|
key: 2,
|
|
275
293
|
schema: e.getSchema(e.property)[i],
|
|
276
294
|
library: e.library
|
|
277
|
-
}, null, 8, ["schema", "library"])) :
|
|
295
|
+
}, null, 8, ["schema", "library"])) : m("", !0),
|
|
278
296
|
t[13] || (t[13] = n()),
|
|
279
|
-
i === "Distributions" ? (o(),
|
|
297
|
+
i === "Distributions" ? (o(), $(S, {
|
|
280
298
|
key: 3,
|
|
281
299
|
schema: e.getSchema("distributions"),
|
|
282
300
|
values: e.formValues
|
|
283
|
-
}, null, 8, ["schema", "values"])) :
|
|
301
|
+
}, null, 8, ["schema", "values"])) : m("", !0),
|
|
284
302
|
t[14] || (t[14] = n()),
|
|
285
|
-
i === "Mandatory" ? (o(), r("p",
|
|
303
|
+
i === "Mandatory" ? (o(), r("p", ue, [
|
|
286
304
|
t[10] || (t[10] = d("b", null, "*", -1)),
|
|
287
|
-
n(" " +
|
|
288
|
-
])) :
|
|
305
|
+
n(" " + f(e.$t("message.dataupload.info.mandatory")), 1)
|
|
306
|
+
])) : m("", !0)
|
|
289
307
|
]),
|
|
290
308
|
_: 2
|
|
291
309
|
}, 1032, ["name"])
|
|
@@ -293,7 +311,7 @@ function pe(e, t, p, s, a, m) {
|
|
|
293
311
|
])
|
|
294
312
|
]),
|
|
295
313
|
t[16] || (t[16] = n()),
|
|
296
|
-
|
|
314
|
+
b(I, {
|
|
297
315
|
steps: e.steps,
|
|
298
316
|
nextStep: e.nextStep,
|
|
299
317
|
previousStep: e.previousStep,
|
|
@@ -304,11 +322,11 @@ function pe(e, t, p, s, a, m) {
|
|
|
304
322
|
_: 1
|
|
305
323
|
}, 8, ["modelValue", "plugins"])
|
|
306
324
|
])
|
|
307
|
-
], 512)) :
|
|
325
|
+
], 512)) : m("", !0)
|
|
308
326
|
]);
|
|
309
327
|
}
|
|
310
|
-
const
|
|
328
|
+
const Ke = /* @__PURE__ */ N(Z, [["render", me]]);
|
|
311
329
|
export {
|
|
312
|
-
|
|
330
|
+
Ke as default
|
|
313
331
|
};
|
|
314
332
|
//# sourceMappingURL=InputPage.vue.mjs.map
|