@piveau/dpi 0.1.0-beta.10
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/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/dpi.css +1 -0
- package/dist/composables/useRuntimeEnv.js +11 -0
- package/dist/composables/useTed.js +9 -0
- package/dist/data-provider-interface/DPIMenu.vue.js +457 -0
- package/dist/data-provider-interface/DataProviderInterface.vue.js +43 -0
- package/dist/data-provider-interface/DataProviderInterface.vue2.js +149 -0
- package/dist/data-provider-interface/HappyFlowComponents/BlogDPIHome.vue.js +13 -0
- package/dist/data-provider-interface/HappyFlowComponents/CommunityDPI.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1052 -0
- package/dist/data-provider-interface/HappyFlowComponents/ConsultingDPI.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +26 -0
- package/dist/data-provider-interface/HappyFlowComponents/FAQDPIHome.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +109 -0
- package/dist/data-provider-interface/HappyFlowComponents/ServiceDPIHome.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/CheckCircleFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Circle.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/CircleFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/DatenbereitstellerV3.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Ellipse2Error.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Ellipse2Published.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Ellipse2Warning.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/FurV3.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/IllustrationCelebrate.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/IllustrationStart.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/InfoFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected1.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected1_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected2_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected3.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected3_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected4.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected4_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected5.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected5_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/WarningFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/bydata_logo_blue_small.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/iconRight.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/x-circleFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +135 -0
- package/dist/data-provider-interface/HappyFlowComponents/services/eventBus.js +16 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js +256 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/CheckboxV3.vue.js +96 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +91 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +67 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/CrossOutButton.vue.js +63 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/DatasetStatus.vue.js +52 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +7 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +96 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +231 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Illustration.vue.js +33 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +477 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputV3.vue.js +182 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/LogoV3.vue.js +40 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +123 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +566 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/MoreButton.vue.js +56 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +41 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +157 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +75 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js +50 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +113 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +116 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +157 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js +40 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +227 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +148 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js +43 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +70 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +46 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js +43 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +130 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +67 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +157 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +106 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +248 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +79 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +116 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +134 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +45 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +69 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js +64 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SwitchV3.vue.js +195 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +210 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +115 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonLarge.vue.js +108 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +125 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +69 -0
- package/dist/data-provider-interface/components/AutocompleteInput.vue.js +279 -0
- package/dist/data-provider-interface/components/BasicInfosPage.vue.js +9 -0
- package/dist/data-provider-interface/components/ConditionalInput.vue.js +196 -0
- package/dist/data-provider-interface/components/ContactPage.vue.js +246 -0
- package/dist/data-provider-interface/components/CoveringPage.vue.js +9 -0
- package/dist/data-provider-interface/components/DataFetchingComponent.vue.js +49 -0
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +60 -0
- package/dist/data-provider-interface/components/DistLicense.vue.js +158 -0
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +1159 -0
- package/dist/data-provider-interface/components/DistributionStepper.vue.js +212 -0
- package/dist/data-provider-interface/components/Dropup.vue.js +62 -0
- package/dist/data-provider-interface/components/FileUpload.vue.js +278 -0
- package/dist/data-provider-interface/components/HVDPage.vue.js +108 -0
- package/dist/data-provider-interface/components/HappyFlowLandingPage.vue.js +70 -0
- package/dist/data-provider-interface/components/InfoSlot.vue.js +81 -0
- package/dist/data-provider-interface/components/InputPageStep.vue.js +40 -0
- package/dist/data-provider-interface/components/InputPageStep.vue2.js +4 -0
- package/dist/data-provider-interface/components/LanguageSelector.vue.js +65 -0
- package/dist/data-provider-interface/components/Navigation.vue.js +256 -0
- package/dist/data-provider-interface/components/Navigation.vue2.js +1 -0
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +81 -0
- package/dist/data-provider-interface/components/PublisherPage.vue.js +176 -0
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +422 -0
- package/dist/data-provider-interface/components/SelectControlledGroup.vue.js +55 -0
- package/dist/data-provider-interface/components/SelectControlledGroup.vue2.js +4 -0
- package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.js +32 -0
- package/dist/data-provider-interface/components/SimpleInput.vue.js +35 -0
- package/dist/data-provider-interface/components/SimpleSelect.vue.js +111 -0
- package/dist/data-provider-interface/components/SpatialInput.vue.js +276 -0
- package/dist/data-provider-interface/components/TempResPage.vue.js +211 -0
- package/dist/data-provider-interface/components/TheErrorDialog.vue.js +90 -0
- package/dist/data-provider-interface/components/TheErrorDialog.vue2.js +4 -0
- package/dist/data-provider-interface/components/TitelPage.vue.js +52 -0
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.js +75 -0
- package/dist/data-provider-interface/components/UpdateDate.vue.js +75 -0
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +44 -0
- package/dist/data-provider-interface/composables/aucotomplete.js +50 -0
- package/dist/data-provider-interface/composables/useDpiContext.js +15 -0
- package/dist/data-provider-interface/composables/useDpiEditMode.js +90 -0
- package/dist/data-provider-interface/composables/useDpiFormValues.js +8 -0
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +383 -0
- package/dist/data-provider-interface/composables/useDpiStepper.js +47 -0
- package/dist/data-provider-interface/composables/useDpiUtils.js +39 -0
- package/dist/data-provider-interface/composables/useErrorDialog.js +31 -0
- package/dist/data-provider-interface/composables/useFormSchema.js +56 -0
- package/dist/data-provider-interface/composables/useRequestUriName.js +58 -0
- package/dist/data-provider-interface/config/dcatap/format-types.js +256 -0
- package/dist/data-provider-interface/config/dcatap/input-definition.js +1842 -0
- package/dist/data-provider-interface/config/dcatap/page-content-config.js +23 -0
- package/dist/data-provider-interface/config/dcatap/prefixes.js +25 -0
- package/dist/data-provider-interface/config/dcatap/vocab-prefixes.js +24 -0
- package/dist/data-provider-interface/config/dcatapde/format-types.js +274 -0
- package/dist/data-provider-interface/config/dcatapde/input-definition.js +2131 -0
- package/dist/data-provider-interface/config/dcatapde/page-content-config.js +23 -0
- package/dist/data-provider-interface/config/dcatapde/prefixes.js +27 -0
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +33 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +201 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/format-types.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +2196 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +82 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/prefixes.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/vocab-prefixes.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/format-types.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/input-definition.js +18 -0
- package/dist/data-provider-interface/config/dcatapdeODB/page-content-config.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/prefixes.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/vocab-prefixes.js +5 -0
- package/dist/data-provider-interface/config/dpi-spec-config.js +54 -0
- package/dist/data-provider-interface/config/selector-languages.json.js +57 -0
- package/dist/data-provider-interface/plugins/userConfigShimPlugin.js +10 -0
- package/dist/data-provider-interface/store/index.js +32 -0
- package/dist/data-provider-interface/store/modules/authStore.js +301 -0
- package/dist/data-provider-interface/store/modules/catalogueDetailsStore.js +34 -0
- package/dist/data-provider-interface/store/modules/cataloguesStore.js +256 -0
- package/dist/data-provider-interface/store/modules/datasetDetailsStore.js +644 -0
- package/dist/data-provider-interface/store/modules/datasetsStore.js +361 -0
- package/dist/data-provider-interface/store/modules/dpiStore.js +32 -0
- package/dist/data-provider-interface/store/modules/navigationStore.js +24 -0
- package/dist/data-provider-interface/store/modules/snackbarStore.js +45 -0
- package/dist/data-provider-interface/utils/general-helper.js +218 -0
- package/dist/data-provider-interface/utils/injectionKeys.js +5 -0
- package/dist/data-provider-interface/utils/translation-helper.js +31 -0
- package/dist/data-provider-interface/utils/useSteps.js +34 -0
- package/dist/data-provider-interface/views/DistributionInputPage.vue.js +100 -0
- package/dist/data-provider-interface/views/DistributionOverview.vue.js +201 -0
- package/dist/data-provider-interface/views/DraftsPage.vue.js +278 -0
- package/dist/data-provider-interface/views/InputPage.vue.js +1168 -0
- package/dist/data-provider-interface/views/LinkedDataViewer.vue.js +105 -0
- package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.js +86 -0
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.js +214 -0
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.js +219 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/MultilingualProp.vue.js +19 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.js +397 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/StringProp.vue.js +56 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.js +109 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/URLProp.vue.js +92 -0
- package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.js +103 -0
- package/dist/data-provider-interface/views/OverviewPage.vue.js +189 -0
- package/dist/data-provider-interface/views/PropertyChooser.vue.js +41 -0
- package/dist/data-provider-interface/views/UserCataloguesPage.vue.js +74 -0
- package/dist/data-provider-interface/views/UserProfilePage.vue.js +83 -0
- package/dist/filters/dateFilters.js +39 -0
- package/dist/form/FormKitGroup.vue.js +55 -0
- package/dist/form/Repeatable.vue.js +7 -0
- package/dist/form/Repeatable.vue2.js +72 -0
- package/dist/form/inputDefinitions.js +131 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +124 -0
- package/dist/utils/draftApi.js +33 -0
- package/dist/utils/helpers.js +46 -0
- package/dist/utils/identifiersApi.js +16 -0
- package/dist/utils/jwt.js +7 -0
- package/dist/widgets/AppLink.vue.js +118 -0
- package/package.json +101 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { getCurrentInstance as A, ref as p, computed as y, watchEffect as R, resolveComponent as N, createElementBlock as a, openBlock as o, createCommentVNode as d, toDisplayString as m, unref as i, createStaticVNode as L, createElementVNode as l, withDirectives as V, isRef as U, vModelText as $, Fragment as x, renderList as b, createVNode as _, createBlock as P } from "vue";
|
|
2
|
+
import B from "./AutocompleteInput.vue.js";
|
|
3
|
+
import { onClickOutside as H } from "@vueuse/core";
|
|
4
|
+
import { useRuntimeEnv as q } from "../../composables/useRuntimeEnv.js";
|
|
5
|
+
import { useStore as F } from "vuex";
|
|
6
|
+
import "@formkit/core";
|
|
7
|
+
import { useI18n as j } from "vue-i18n";
|
|
8
|
+
import { useRequestUriName as O } from "../composables/useRequestUriName.js";
|
|
9
|
+
/* empty css */
|
|
10
|
+
const X = { class: "formkitProperty" }, z = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "formkitHeader"
|
|
13
|
+
}, K = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "formkitHeader"
|
|
16
|
+
}, W = {
|
|
17
|
+
key: 2,
|
|
18
|
+
class: "d-flex infoLicense py-5"
|
|
19
|
+
}, Y = {
|
|
20
|
+
key: 3,
|
|
21
|
+
class: "d-flex infoLicense py-5"
|
|
22
|
+
}, G = {
|
|
23
|
+
key: 4,
|
|
24
|
+
class: "formkitCmpWrap simpleConditional"
|
|
25
|
+
}, J = { class: "m-3" }, Q = { class: "conditionalSelectDiv" }, Z = ["placeholder"], ee = { key: 0 }, te = { class: "selectListConditional" }, oe = ["onClick"], ae = { class: "conditionalManual" }, ne = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "d-flex"
|
|
28
|
+
}, se = { key: 0 }, ie = {
|
|
29
|
+
key: 5,
|
|
30
|
+
class: "formkitCmpWrap simpleConditional"
|
|
31
|
+
}, le = { class: "m-3" }, re = { class: "conditionalSelectDiv" }, de = ["placeholder"], ce = { key: 0 }, ue = { class: "selectListConditional" }, pe = ["onClick"], me = ["innerHTML"], he = { class: "conditionalManual" }, ve = {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: "d-flex"
|
|
34
|
+
}, fe = {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: ""
|
|
37
|
+
}, ge = {
|
|
38
|
+
key: 1,
|
|
39
|
+
class: "conditionalVocabulary d-flex"
|
|
40
|
+
}, ye = { class: "autocompleteInputSingleValue" }, xe = ["innerHTML"], Te = {
|
|
41
|
+
__name: "ConditionalInput",
|
|
42
|
+
props: {
|
|
43
|
+
context: Object
|
|
44
|
+
},
|
|
45
|
+
setup(M) {
|
|
46
|
+
let k = q();
|
|
47
|
+
const e = M;
|
|
48
|
+
A().appContext.app.config.globalProperties.$env;
|
|
49
|
+
const { t: C, locale: T } = j();
|
|
50
|
+
let r = p(), c = p(!1), u = p(!1);
|
|
51
|
+
e.context.attrs.voc, F();
|
|
52
|
+
let h = p();
|
|
53
|
+
const { execute: D, error: be, isLoading: _e } = O({
|
|
54
|
+
res: y(() => e.context.value.name),
|
|
55
|
+
voc: y(() => e.context.attrs.voc),
|
|
56
|
+
property: y(() => e.context.attrs.property),
|
|
57
|
+
locale: T
|
|
58
|
+
});
|
|
59
|
+
R(() => {
|
|
60
|
+
e.context.value.name && (h.value != e.context.value.name && (e.context.value.name === e.context.value.resource ? D().then((n) => {
|
|
61
|
+
h.value = n;
|
|
62
|
+
}).catch((n) => {
|
|
63
|
+
console.error(n);
|
|
64
|
+
}) : h.value = e.context.value.name), r.value = C("message.dataupload.datasets.conditional.vocabulary")), e.context.value["foaf:name"] && (r.value = C("message.dataupload.datasets.conditional.manually"));
|
|
65
|
+
});
|
|
66
|
+
const f = p(null), w = (n) => {
|
|
67
|
+
u.value = !u.value;
|
|
68
|
+
}, E = () => {
|
|
69
|
+
e.context.node.reset();
|
|
70
|
+
}, I = (n, s) => {
|
|
71
|
+
r.value = s, c.value = n, e.context.node.reset(), e.context.value = "";
|
|
72
|
+
};
|
|
73
|
+
return H(f, (n) => u.value = !1), (n, s) => {
|
|
74
|
+
const g = N("FormKit");
|
|
75
|
+
return o(), a("div", X, [
|
|
76
|
+
e.context.attrs.class != null && e.context.attrs.class.includes("inDistribution") ? (o(), a("h4", z, m(n.$t("message.dataupload.distributions." + e.context.attrs.identifier + ".label")), 1)) : (o(), a("h4", K, m(n.$t("message.dataupload.datasets." + e.context.attrs.identifier + ".label")), 1)),
|
|
77
|
+
e.context.attrs.identifier === "licence" && i(k).content.dataProviderInterface.annifIntegration ? (o(), a("div", W, s[6] || (s[6] = [
|
|
78
|
+
L('<svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" fill="currentColor" class="bi bi-info-circle mx-3 mb-3 mt-1 infoboxI" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"></path><path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"></path></svg><div class="w-80"><p>For <strong>European</strong> <strong>Commission's datasets</strong>, bear in mind that <a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833]" target="_blank" rel="nofollow noopener"><ins>Decision 2011/833/EU</ins></a> allows for their commercial reuse without prior authorisation, except for the material subject to the third party intellectual property rights. This Decision has been implemented under the <a href="https://ec.europa.eu/transparency/documents-register/detail?ref=C(2019)1655&lang=en]" target="_blank" rel="nofollow noopener"><ins>Decision C(2019) 1655 final</ins></a> by which Creative Commons Attribution 4.0 International Public License (CC BY 4.0) is adopted as an open licence for the Commission's reuse policy. Additionally, raw data, metadata or other documents of comparable nature may alternatively be distributed under the provisions of the Creative Commons Universal Public Domain Dedication deed (CC0 1.0).</p><p>The <strong>Council</strong> and the <strong>European Court of Auditors</strong> have approved similar decisions on reuse. It is advisable that you check <strong>the reuse policy of your organisation</strong> before publishing or submitting your dataset.</p><p>If you need further information regarding copyright issues, please contact us at <a href="mailto:op-copyright@publications.europa.eu" target="_blank" rel="nofollow noopener">op-copyright@publications.europa.eu</a></p></div>', 2)
|
|
79
|
+
]))) : d("", !0),
|
|
80
|
+
e.context.attrs.identifier === "rights" && i(k).content.dataProviderInterface.annifIntegration ? (o(), a("div", Y, s[7] || (s[7] = [
|
|
81
|
+
L('<svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" fill="currentColor" class="bi bi-info-circle mx-3 mb-3 mt-1 infoboxI" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"></path><path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"></path></svg><p class="textInfoI">As owner of your dataset, you guarantee that it does not violate the copyright, other intellectual property or privacy rights of any third party. In particular, if third party material is included in the dataset, you must ensure that all necessary permissions have been obtained and appropriate acknowledgment is given, if necessary. <br><br> If you need further information regarding copyright issues, please contact us at <a href="mailto:op-copyright@publications.europa.eu">op-copyright@publications.europa.eu</a></p>', 2)
|
|
82
|
+
]))) : d("", !0),
|
|
83
|
+
e.context.attrs.identifier === "rights" ? (o(), a("div", G, [
|
|
84
|
+
l("div", J, [
|
|
85
|
+
l("div", Q, [
|
|
86
|
+
V(l("input", {
|
|
87
|
+
ref_key: "I1",
|
|
88
|
+
ref: f,
|
|
89
|
+
type: "text",
|
|
90
|
+
class: "conditionalSelect formkit-input formkit-inner",
|
|
91
|
+
onClick: s[0] || (s[0] = (t) => w()),
|
|
92
|
+
placeholder: e.context.attrs.placeholder,
|
|
93
|
+
"onUpdate:modelValue": s[1] || (s[1] = (t) => U(r) ? r.value = t : r = t)
|
|
94
|
+
}, null, 8, Z), [
|
|
95
|
+
[$, i(r)]
|
|
96
|
+
]),
|
|
97
|
+
i(u) ? (o(), a("div", ee, [
|
|
98
|
+
l("ul", te, [
|
|
99
|
+
(o(!0), a(x, null, b(e.context.attrs.selection, (t, v) => (o(), a("li", {
|
|
100
|
+
class: "p-2 border-b border-gray-200",
|
|
101
|
+
onClick: (S) => I(t, n.$t("message.dataupload.datasets.conditional." + t))
|
|
102
|
+
}, m(n.$t("message.dataupload.datasets.conditional." + t)), 9, oe))), 256))
|
|
103
|
+
])
|
|
104
|
+
])) : d("", !0)
|
|
105
|
+
]),
|
|
106
|
+
l("div", ae, [
|
|
107
|
+
i(c) === "URL" || e.context.node.value["@type"] === "url" ? (o(), a("div", ne, [
|
|
108
|
+
_(g, {
|
|
109
|
+
type: "url",
|
|
110
|
+
placeholder: n.$t("message.dataupload.datasets.conditional.URL"),
|
|
111
|
+
name: "rdfs:label",
|
|
112
|
+
validation: "url",
|
|
113
|
+
class: "w-100",
|
|
114
|
+
identifier: "rightsUrl",
|
|
115
|
+
modelValue: e.context.value["rdfs:value"],
|
|
116
|
+
"onUpdate:modelValue": s[2] || (s[2] = (t) => e.context.value["rdfs:value"] = t)
|
|
117
|
+
}, null, 8, ["placeholder", "modelValue"])
|
|
118
|
+
])) : d("", !0)
|
|
119
|
+
]),
|
|
120
|
+
i(c) === "Text" || e.context.value["@type"] === "text" ? (o(), a("div", se, [
|
|
121
|
+
_(g, {
|
|
122
|
+
type: "text",
|
|
123
|
+
placeholder: n.$t("message.dataupload.datasets.conditional.Text"),
|
|
124
|
+
name: "rdfs:label",
|
|
125
|
+
class: "w-100",
|
|
126
|
+
identifier: "rightsText",
|
|
127
|
+
modelValue: e.context.value["rdfs:value"],
|
|
128
|
+
"onUpdate:modelValue": s[3] || (s[3] = (t) => e.context.value["rdfs:value"] = t)
|
|
129
|
+
}, null, 8, ["placeholder", "modelValue"])
|
|
130
|
+
])) : d("", !0)
|
|
131
|
+
])
|
|
132
|
+
])) : (o(), a("div", ie, [
|
|
133
|
+
l("div", le, [
|
|
134
|
+
l("div", re, [
|
|
135
|
+
V(l("input", {
|
|
136
|
+
ref_key: "I1",
|
|
137
|
+
ref: f,
|
|
138
|
+
type: "text",
|
|
139
|
+
class: "conditionalSelect formkit-input formkit-inner",
|
|
140
|
+
onClick: s[4] || (s[4] = (t) => w()),
|
|
141
|
+
placeholder: e.context.attrs.placeholder,
|
|
142
|
+
"onUpdate:modelValue": s[5] || (s[5] = (t) => U(r) ? r.value = t : r = t)
|
|
143
|
+
}, null, 8, de), [
|
|
144
|
+
[$, i(r)]
|
|
145
|
+
]),
|
|
146
|
+
i(u) ? (o(), a("div", ce, [
|
|
147
|
+
l("ul", ue, [
|
|
148
|
+
(o(!0), a(x, null, b(e.context.attrs.selection, (t, v) => (o(), a("li", {
|
|
149
|
+
class: "p-2 border-b border-gray-200",
|
|
150
|
+
onClick: (S) => I(t, n.$t("message.dataupload.datasets.conditional." + t))
|
|
151
|
+
}, m(n.$t("message.dataupload.datasets.conditional." + t)), 9, pe))), 256))
|
|
152
|
+
])
|
|
153
|
+
])) : d("", !0),
|
|
154
|
+
i(c) === "vocabulary" ? (o(), a("div", {
|
|
155
|
+
key: 1,
|
|
156
|
+
innerHTML: n.$t("message.dataupload.distributions.licence.vocabulary.help"),
|
|
157
|
+
class: "formkit-help position-absolute"
|
|
158
|
+
}, null, 8, me)) : d("", !0)
|
|
159
|
+
]),
|
|
160
|
+
l("div", he, [
|
|
161
|
+
i(c) === "manually" || Object.keys(e.context.value).length > 0 && e.context.value["foaf:name"] && i(c) != "vocabulary" ? (o(), a("div", ve, [
|
|
162
|
+
(o(!0), a(x, null, b(e.context.attrs.options, (t, v) => (o(), P(g, {
|
|
163
|
+
type: v,
|
|
164
|
+
placeholder: n.$t("message.dataupload.datasets.individual." + t),
|
|
165
|
+
name: t,
|
|
166
|
+
validation: v,
|
|
167
|
+
class: "w-100"
|
|
168
|
+
}, null, 8, ["type", "placeholder", "name", "validation"]))), 256))
|
|
169
|
+
])) : d("", !0)
|
|
170
|
+
]),
|
|
171
|
+
i(c) === "vocabulary" && !e.context.value.name ? (o(), a("div", fe, [
|
|
172
|
+
_(B, {
|
|
173
|
+
context: e.context
|
|
174
|
+
}, null, 8, ["context"])
|
|
175
|
+
])) : d("", !0),
|
|
176
|
+
e.context.value.name ? (o(), a("div", ge, [
|
|
177
|
+
l("a", ye, m(i(h)), 1),
|
|
178
|
+
l("div", {
|
|
179
|
+
class: "removeX",
|
|
180
|
+
onClick: E
|
|
181
|
+
})
|
|
182
|
+
])) : d("", !0),
|
|
183
|
+
i(c) === "manually" ? (o(), a("div", {
|
|
184
|
+
key: 2,
|
|
185
|
+
innerHTML: e.context.attrs.info,
|
|
186
|
+
class: "formkit-help"
|
|
187
|
+
}, null, 8, xe)) : d("", !0)
|
|
188
|
+
])
|
|
189
|
+
]))
|
|
190
|
+
]);
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
export {
|
|
195
|
+
Te as default
|
|
196
|
+
};
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { ref as h, computed as M, getCurrentInstance as S, unref as m, onMounted as I, createElementBlock as r, openBlock as d, createElementVNode as a, createCommentVNode as f, toDisplayString as i, createVNode as c, Fragment as y, renderList as $ } from "vue";
|
|
2
|
+
import { PhWarning as v } from "@phosphor-icons/vue";
|
|
3
|
+
import { useEditModeInfo as R } from "../composables/useDpiEditMode.js";
|
|
4
|
+
import w from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
5
|
+
import B from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import W from "../../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
+
const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular" }, U = { class: "dpiV3AutoCompleteWrap" }, j = { class: "CardTips_internal" }, F = { class: "CardTips_Part" }, L = { class: "firstRow" }, O = { class: "icon_title copy-small-semi-bold" }, K = { class: "TextButton_small" }, Z = { class: "secondRow" }, q = { class: "copy-small-regular" }, G = { class: "CardTips_Part" }, H = { class: "firstRow" }, J = { class: "icon_title copy-small-semi-bold" }, Q = { class: "TextButton_small" }, X = { class: "secondRow" }, Y = { class: "copy-small-regular" }, ee = { class: "input-container" }, te = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "dpiV3_errormsgWrapper"
|
|
11
|
+
}, ae = { class: "copy-mini-regular" }, se = { class: "input-container" }, oe = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "dpiV3_errormsgWrapper"
|
|
14
|
+
}, le = { class: "copy-mini-regular" }, ne = { class: "input-container" }, ie = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "dpiV3_errormsgWrapper"
|
|
17
|
+
}, re = { class: "copy-mini-regular" }, de = { class: "copy-large-regular" }, ce = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "form-error-message"
|
|
20
|
+
}, k = "", ue = {
|
|
21
|
+
__name: "ContactPage",
|
|
22
|
+
props: {
|
|
23
|
+
context: Object
|
|
24
|
+
},
|
|
25
|
+
setup(C) {
|
|
26
|
+
const g = C, { isEditMode: pe } = R(), P = [
|
|
27
|
+
"Mobilitätsreferat der Landeshauptstadt München",
|
|
28
|
+
"contact@example.com",
|
|
29
|
+
"https://example.com"
|
|
30
|
+
], _ = h([
|
|
31
|
+
"Mobilitätsreferat - Verkehrs- und Verhaltensdaten",
|
|
32
|
+
"verkehrsdaten.mor@muenchen.de"
|
|
33
|
+
]), V = M(() => {
|
|
34
|
+
var s, t;
|
|
35
|
+
const e = (t = (s = S().appContext.config.globalProperties.$keycloak) == null ? void 0 : s.idTokenParsed) == null ? void 0 : t.contact;
|
|
36
|
+
if (e) {
|
|
37
|
+
const n = {
|
|
38
|
+
organization: e.organization
|
|
39
|
+
};
|
|
40
|
+
return e.email && (n.email = e.email), e.website && (n.website = `https://${e.website}`), n;
|
|
41
|
+
}
|
|
42
|
+
return {};
|
|
43
|
+
}), o = h({
|
|
44
|
+
1: {
|
|
45
|
+
show: !1,
|
|
46
|
+
message: "Bitte geben Sie einen gültigen Namen ein (mindestens 2 Zeichen)."
|
|
47
|
+
},
|
|
48
|
+
2: {
|
|
49
|
+
show: !1,
|
|
50
|
+
message: "Bitte geben Sie eine gültige E-Mail-Adresse ein."
|
|
51
|
+
},
|
|
52
|
+
3: {
|
|
53
|
+
show: !1,
|
|
54
|
+
message: "Bitte geben Sie eine gültige Telefonnummer ein."
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
let p = h({ 1: !1, 2: !1, 3: !1 });
|
|
58
|
+
const l = h([
|
|
59
|
+
{
|
|
60
|
+
isValid: "unset",
|
|
61
|
+
"vcard:fn": "",
|
|
62
|
+
"vcard:hasEmail": "",
|
|
63
|
+
"vcard:hasTelephone": ""
|
|
64
|
+
}
|
|
65
|
+
]);
|
|
66
|
+
g.context.node.value.length === 0 && g.context.node.input(m(l)), I(() => {
|
|
67
|
+
try {
|
|
68
|
+
k && k["foaf:name"] && k["foaf:mbox"];
|
|
69
|
+
} catch (e) {
|
|
70
|
+
console.warn("Could not load publisher data from context:", e);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
function E(e) {
|
|
74
|
+
return e.trim().length >= 2;
|
|
75
|
+
}
|
|
76
|
+
function T(e) {
|
|
77
|
+
return /^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(e);
|
|
78
|
+
}
|
|
79
|
+
function z(e) {
|
|
80
|
+
return e.trim() === "" ? !0 : e.trim().length >= 6;
|
|
81
|
+
}
|
|
82
|
+
function u(e, s, t) {
|
|
83
|
+
l.value = l.value.map((b) => s in b ? { ...b, [s]: e } : b);
|
|
84
|
+
let n = !1;
|
|
85
|
+
if (t === 3 && e.trim() === "")
|
|
86
|
+
o.value[t].show = !1, p.value[t] = !0;
|
|
87
|
+
else if (e.trim() === "")
|
|
88
|
+
o.value[t].show = !0, p.value[t] = !1;
|
|
89
|
+
else {
|
|
90
|
+
switch (s) {
|
|
91
|
+
case "vcard:fn":
|
|
92
|
+
n = E(e);
|
|
93
|
+
break;
|
|
94
|
+
case "vcard:hasEmail":
|
|
95
|
+
n = T(e);
|
|
96
|
+
break;
|
|
97
|
+
case "vcard:hasTelephone":
|
|
98
|
+
n = z(e);
|
|
99
|
+
break;
|
|
100
|
+
default:
|
|
101
|
+
n = e.trim() !== "";
|
|
102
|
+
}
|
|
103
|
+
o.value[t].show = !n, p.value[t] = n;
|
|
104
|
+
}
|
|
105
|
+
p.value[1] && p.value[2] ? l.value[0].isValid = !0 : l.value[0].isValid = !1, g.context.node.input(l.value);
|
|
106
|
+
}
|
|
107
|
+
function x() {
|
|
108
|
+
u(P[0], "vcard:fn", 1), u(P[1], "vcard:hasEmail", 2);
|
|
109
|
+
}
|
|
110
|
+
function D() {
|
|
111
|
+
u(_.value[0], "vcard:fn", 1), u(_.value[1], "vcard:hasEmail", 2);
|
|
112
|
+
}
|
|
113
|
+
return (e, s) => (d(), r("div", N, [
|
|
114
|
+
a("h4", null, i(e.$t("message.dataupload.datasets.dcat:contactPoint.title")), 1),
|
|
115
|
+
a("div", A, i(e.$t("message.dataupload.datasets.dcat:contactPoint.description")), 1),
|
|
116
|
+
a("div", U, [
|
|
117
|
+
a("div", j, [
|
|
118
|
+
a("div", F, [
|
|
119
|
+
a("div", L, [
|
|
120
|
+
a("div", O, i(e.$t("message.dataupload.datasets.dcat:contactPoint.account")), 1),
|
|
121
|
+
a("div", K, [
|
|
122
|
+
c(B, {
|
|
123
|
+
"button-text": e.$t(
|
|
124
|
+
"message.dataupload.datasets.dcat:contactPoint.useAccountButton"
|
|
125
|
+
),
|
|
126
|
+
"icon-start": "DeleteBlue",
|
|
127
|
+
"icon-name": "copy",
|
|
128
|
+
class: "dpiV3_usedetailsButton",
|
|
129
|
+
onClick: x
|
|
130
|
+
}, null, 8, ["button-text"])
|
|
131
|
+
])
|
|
132
|
+
]),
|
|
133
|
+
a("div", Z, [
|
|
134
|
+
(d(!0), r(y, null, $(Object.values(V.value), (t) => (d(), r("span", q, i(t), 1))), 256))
|
|
135
|
+
])
|
|
136
|
+
]),
|
|
137
|
+
a("div", G, [
|
|
138
|
+
a("div", H, [
|
|
139
|
+
a("div", J, i(e.$t("message.metadata.publisher")), 1),
|
|
140
|
+
a("div", Q, [
|
|
141
|
+
c(B, {
|
|
142
|
+
"button-text": e.$t(
|
|
143
|
+
"message.dataupload.datasets.dcat:contactPoint.usePublisherButton"
|
|
144
|
+
),
|
|
145
|
+
"icon-start": "true",
|
|
146
|
+
"icon-name": "copy",
|
|
147
|
+
class: "",
|
|
148
|
+
onClick: D
|
|
149
|
+
}, null, 8, ["button-text"])
|
|
150
|
+
])
|
|
151
|
+
]),
|
|
152
|
+
a("div", X, [
|
|
153
|
+
(d(!0), r(y, null, $(_.value, (t) => (d(), r("span", Y, i(t), 1))), 256))
|
|
154
|
+
])
|
|
155
|
+
])
|
|
156
|
+
])
|
|
157
|
+
]),
|
|
158
|
+
a("div", ee, [
|
|
159
|
+
c(w, {
|
|
160
|
+
"model-value": l.value[0]["vcard:fn"],
|
|
161
|
+
"add-on-text": !1,
|
|
162
|
+
"date-picker": !1,
|
|
163
|
+
"info-icon": !1,
|
|
164
|
+
placeholder: e.$t(
|
|
165
|
+
"message.dataupload.datasets.dcat:contactPoint.nameInput.placeholder"
|
|
166
|
+
),
|
|
167
|
+
"pre-icon": !1,
|
|
168
|
+
"input-field-size": "large",
|
|
169
|
+
"initial-hint-text": !1,
|
|
170
|
+
label: e.$t("message.dataupload.datasets.dcat:contactPoint.nameInput.title"),
|
|
171
|
+
"show-end-icon": !1,
|
|
172
|
+
"show-error": o.value[1].show,
|
|
173
|
+
"onUpdate:modelValue": s[0] || (s[0] = (t) => u(t, "vcard:fn", 1))
|
|
174
|
+
}, null, 8, ["model-value", "placeholder", "label", "show-error"]),
|
|
175
|
+
o.value[1].show ? (d(), r("div", te, [
|
|
176
|
+
c(m(v), {
|
|
177
|
+
size: 16,
|
|
178
|
+
weight: "fill"
|
|
179
|
+
}),
|
|
180
|
+
a("span", ae, i(o.value[1].message), 1)
|
|
181
|
+
])) : f("", !0)
|
|
182
|
+
]),
|
|
183
|
+
a("div", se, [
|
|
184
|
+
c(w, {
|
|
185
|
+
"model-value": l.value[0]["vcard:hasEmail"],
|
|
186
|
+
"add-on-text": !1,
|
|
187
|
+
"date-picker": !1,
|
|
188
|
+
"info-icon": !1,
|
|
189
|
+
placeholder: e.$t(
|
|
190
|
+
"message.dataupload.datasets.dcat:contactPoint.mailInput.placeholder"
|
|
191
|
+
),
|
|
192
|
+
"pre-icon": !1,
|
|
193
|
+
"input-field-size": "large",
|
|
194
|
+
"initial-hint-text": !1,
|
|
195
|
+
label: e.$t("message.dataupload.datasets.dcat:contactPoint.mailInput.title"),
|
|
196
|
+
"show-end-icon": !1,
|
|
197
|
+
"show-error": o.value[2].show,
|
|
198
|
+
"onUpdate:modelValue": s[1] || (s[1] = (t) => u(t, "vcard:hasEmail", 2))
|
|
199
|
+
}, null, 8, ["model-value", "placeholder", "label", "show-error"]),
|
|
200
|
+
o.value[2].show ? (d(), r("div", oe, [
|
|
201
|
+
c(m(v), {
|
|
202
|
+
size: 16,
|
|
203
|
+
weight: "fill"
|
|
204
|
+
}),
|
|
205
|
+
a("span", le, i(o.value[2].message), 1)
|
|
206
|
+
])) : f("", !0)
|
|
207
|
+
]),
|
|
208
|
+
a("div", ne, [
|
|
209
|
+
c(w, {
|
|
210
|
+
"model-value": l.value[0]["vcard:hasTelephone"],
|
|
211
|
+
"add-on-text": !1,
|
|
212
|
+
"date-picker": !1,
|
|
213
|
+
"info-icon": !1,
|
|
214
|
+
placeholder: e.$t(
|
|
215
|
+
"message.dataupload.datasets.dcat:contactPoint.telInput.placeholder"
|
|
216
|
+
),
|
|
217
|
+
"pre-icon": !1,
|
|
218
|
+
"input-field-size": "large",
|
|
219
|
+
"initial-hint-text": !1,
|
|
220
|
+
label: e.$t("message.dataupload.datasets.dcat:contactPoint.telInput.title"),
|
|
221
|
+
"show-end-icon": !1,
|
|
222
|
+
"show-error": o.value[3].show,
|
|
223
|
+
"onUpdate:modelValue": s[2] || (s[2] = (t) => u(t, "vcard:hasTelephone", 3))
|
|
224
|
+
}, null, 8, ["model-value", "placeholder", "label", "show-error"]),
|
|
225
|
+
o.value[3].show ? (d(), r("div", ie, [
|
|
226
|
+
c(m(v), {
|
|
227
|
+
size: 16,
|
|
228
|
+
weight: "fill"
|
|
229
|
+
}),
|
|
230
|
+
a("span", re, i(o.value[3].message), 1)
|
|
231
|
+
])) : f("", !0)
|
|
232
|
+
]),
|
|
233
|
+
a("div", de, i(e.$t("message.dataupload.datasets.dcat:contactPoint.descriptionBottom")), 1),
|
|
234
|
+
l.value.find((t) => t.isValid === !1) ? (d(), r("div", ce, [
|
|
235
|
+
c(m(v), {
|
|
236
|
+
size: 16,
|
|
237
|
+
weight: "fill"
|
|
238
|
+
}),
|
|
239
|
+
s[3] || (s[3] = a("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
|
|
240
|
+
])) : f("", !0)
|
|
241
|
+
]));
|
|
242
|
+
}
|
|
243
|
+
}, we = /* @__PURE__ */ W(ue, [["__scopeId", "data-v-2c2768bc"]]);
|
|
244
|
+
export {
|
|
245
|
+
we as default
|
|
246
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { mapActions as o, mapGetters as s } from "vuex";
|
|
2
|
+
import { createElementBlock as i, openBlock as n, createElementVNode as p } from "vue";
|
|
3
|
+
import c from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const u = {
|
|
5
|
+
props: ["id", "property", "catalog"],
|
|
6
|
+
data() {
|
|
7
|
+
return {};
|
|
8
|
+
},
|
|
9
|
+
computed: {
|
|
10
|
+
...s("auth", ["getIsDraft", "getUserData"]),
|
|
11
|
+
token() {
|
|
12
|
+
return this.getUserData.rtpToken;
|
|
13
|
+
},
|
|
14
|
+
redirectUri() {
|
|
15
|
+
return `${this.$env.content.dataProviderInterface.basePath}/${this.property}?locale=${this.$i18n.locale}`;
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
methods: {
|
|
19
|
+
...o("auth", ["setIsEditMode", "setIsDraft"]),
|
|
20
|
+
...o("dpiStore", ["convertToInput"]),
|
|
21
|
+
async setupEditPage() {
|
|
22
|
+
this.$router.push({
|
|
23
|
+
name: "DataProviderInterface-Input",
|
|
24
|
+
params: { property: this.property },
|
|
25
|
+
query: {
|
|
26
|
+
locale: this.$route.query.locale,
|
|
27
|
+
edit: !0,
|
|
28
|
+
id: !this.getIsDraft && this.property === "catalogues" ? this.catalog : this.id,
|
|
29
|
+
catalog: this.catalog,
|
|
30
|
+
fromDraft: this.getIsDraft ? "true" : void 0
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
beforeRouteEnter(a, t, r) {
|
|
36
|
+
r((e) => {
|
|
37
|
+
t.fullPath.startsWith(e.redirectUri) ? e.$router.go(-1) : e.setupEditPage();
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}, d = { style: { height: "370px" } };
|
|
41
|
+
function l(a, t, r, e, h, f) {
|
|
42
|
+
return n(), i("div", d, t[0] || (t[0] = [
|
|
43
|
+
p("div", { class: "spinner" }, null, -1)
|
|
44
|
+
]));
|
|
45
|
+
}
|
|
46
|
+
const y = /* @__PURE__ */ c(u, [["render", l]]);
|
|
47
|
+
export {
|
|
48
|
+
y as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { computed as g, ref as l, getCurrentInstance as h, onMounted as x, createElementBlock as o, openBlock as n, createElementVNode as r, createCommentVNode as y, Fragment as V, renderList as C, unref as d, createBlock as I, createVNode as k } from "vue";
|
|
2
|
+
import D from "../HappyFlowComponents/ui/Chip.vue.js";
|
|
3
|
+
import { getDatasetCategories as E } from "../HappyFlowComponents/services/dpiV3_apis.js";
|
|
4
|
+
import { PhWarning as z } from "@phosphor-icons/vue";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import U from "../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
import { useDpiContext as w } from "../composables/useDpiContext.js";
|
|
8
|
+
const B = { class: "dpiV3_findabilityWrap" }, P = { class: "dpiV3_findabilityThemesWrap" }, S = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "dpiV3_errormsgWrapper"
|
|
11
|
+
}, W = {
|
|
12
|
+
__name: "DiscoverabilityPage",
|
|
13
|
+
props: {
|
|
14
|
+
context: Object
|
|
15
|
+
},
|
|
16
|
+
setup(u) {
|
|
17
|
+
const c = w(), f = g(() => {
|
|
18
|
+
var t;
|
|
19
|
+
return !!((t = c.value.edit) != null && t.enabled);
|
|
20
|
+
});
|
|
21
|
+
let s = l([]), m = h().appContext.app.config.globalProperties.$env, i = l([{ isValid: "unset" }]);
|
|
22
|
+
l(["this is a secret"]);
|
|
23
|
+
const p = u;
|
|
24
|
+
f.value || p.context.node.input(i);
|
|
25
|
+
const v = async () => {
|
|
26
|
+
try {
|
|
27
|
+
s.value = await E(m.api.baseUrl), s.value.sort((t, a) => t.pref_label.de.localeCompare(a.pref_label.de));
|
|
28
|
+
} catch (t) {
|
|
29
|
+
console.log(t);
|
|
30
|
+
}
|
|
31
|
+
}, _ = (t) => {
|
|
32
|
+
i.value.find((e) => e.id === t.id) ? i.value = i.value.filter((e) => e.id !== t.id) : i.value.push({ id: t.id, uri: t.resource, label: t.pref_label.de }), i.value.length > 1 ? i.value.find((e) => e.isValid = !0) : i.value.find((e) => e.isValid = !1), p.context.node.input(i);
|
|
33
|
+
};
|
|
34
|
+
return x(() => {
|
|
35
|
+
v();
|
|
36
|
+
}), (t, a) => (n(), o("div", B, [
|
|
37
|
+
a[1] || (a[1] = r("h4", { class: "dpiV3_title" }, "Machen Sie Ihren Datensatz leicht auffindbar", -1)),
|
|
38
|
+
a[2] || (a[2] = r("span", null, "Um sicherzustellen, dass Ihr Datensatz für andere leicht zu finden ist, wählen Sie die relevanten Kategorien aus.", -1)),
|
|
39
|
+
r("div", P, [
|
|
40
|
+
(n(!0), o(V, null, C(d(s), (e, b) => (n(), I(D, {
|
|
41
|
+
key: b,
|
|
42
|
+
text: e.pref_label.de,
|
|
43
|
+
data: { "@value": e.value, URI: e.URI },
|
|
44
|
+
setup: { "@type": "select", "@inTable": !1, "@findability": !0 },
|
|
45
|
+
onClick: (M) => _(e)
|
|
46
|
+
}, null, 8, ["text", "data", "onClick"]))), 128))
|
|
47
|
+
]),
|
|
48
|
+
d(i).find((e) => e.isValid === !1) ? (n(), o("div", S, [
|
|
49
|
+
k(d(z), {
|
|
50
|
+
size: 16,
|
|
51
|
+
weight: "fill"
|
|
52
|
+
}),
|
|
53
|
+
a[0] || (a[0] = r("span", { class: "copy-mini-regular" }, "Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren.", -1))
|
|
54
|
+
])) : y("", !0)
|
|
55
|
+
]));
|
|
56
|
+
}
|
|
57
|
+
}, j = /* @__PURE__ */ U(W, [["__scopeId", "data-v-35202ed2"]]);
|
|
58
|
+
export {
|
|
59
|
+
j as default
|
|
60
|
+
};
|