@piveau/dpi 0.1.0-beta.5
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 +144 -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 +80 -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 +247 -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 +73 -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 +43 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +68 -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 +207 -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 +160 -0
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +1147 -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 +106 -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 +413 -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 +17 -0
- package/dist/data-provider-interface/composables/useDpiEditMode.js +88 -0
- package/dist/data-provider-interface/composables/useDpiFormValues.js +8 -0
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +384 -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 +161 -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/dpiStore.js +33 -0
- package/dist/data-provider-interface/store/modules/formSchemaStore.js +94 -0
- package/dist/data-provider-interface/store/modules/navigationStore.js +24 -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 +1182 -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/helpers.js +32 -0
- package/dist/widgets/AppLink.vue.js +118 -0
- package/package.json +96 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { useI18n as i } from "vue-i18n";
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import n from "../HappyFlowComponents/ui/LogoV3.vue.js";
|
|
5
|
+
import { PhInfo as r } from "@phosphor-icons/vue";
|
|
6
|
+
import l from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
7
|
+
import p from "../HappyFlowComponents/ui/Illustration.vue.js";
|
|
8
|
+
import { resolveComponent as c, createElementBlock as _, openBlock as m, createElementVNode as t, toDisplayString as e, createVNode as g } from "vue";
|
|
9
|
+
/* empty css */
|
|
10
|
+
import u from "../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
+
const h = {
|
|
12
|
+
components: {
|
|
13
|
+
LogoV3: n,
|
|
14
|
+
PhInfo: r,
|
|
15
|
+
ButtonV3: l,
|
|
16
|
+
Illustration: p
|
|
17
|
+
},
|
|
18
|
+
methods: {
|
|
19
|
+
navTrigger(s) {
|
|
20
|
+
this.$emit("handleNav", s);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup() {
|
|
24
|
+
const { t: s } = i();
|
|
25
|
+
return {
|
|
26
|
+
t: s,
|
|
27
|
+
goBack: () => {
|
|
28
|
+
},
|
|
29
|
+
startProcess: () => {
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}, V = { class: "dpiV3_Wizard-Intro V3-typography" }, f = { class: "dpiV3_Content" }, v = { class: "dpiV3_Frame_38" }, P = { class: "dpiV3_Frame_50" }, $ = { class: "dpiV3_title" }, y = { class: "copy-large-regular dpiV3_large_text" }, I = { class: "dpiV3_Card_Tips" }, k = { class: "dpiV3_Icon_Title" }, B = { class: "dpiV3_Info-Text copy-large-semi-bold" }, C = { class: "dpiV3_CT-Content" }, T = { class: "copy-small-semi-bold dpiV3_bold-text" }, b = { class: "copy-small-regular dpiV3_regular-text" }, x = { class: "copy-large-regular dpiV3_regular-text" };
|
|
34
|
+
function q(s, o, a, F, N, z) {
|
|
35
|
+
const d = c("PhInfo");
|
|
36
|
+
return m(), _("div", V, [
|
|
37
|
+
t("div", f, [
|
|
38
|
+
t("div", v, [
|
|
39
|
+
t("div", P, [
|
|
40
|
+
t("h4", $, e(s.$t("message.dataupload.datasets.landingPage.title")), 1),
|
|
41
|
+
t("div", y, e(s.$t("message.dataupload.datasets.landingPage.intro-text")), 1)
|
|
42
|
+
]),
|
|
43
|
+
t("div", I, [
|
|
44
|
+
t("div", k, [
|
|
45
|
+
g(d, {
|
|
46
|
+
size: 32,
|
|
47
|
+
color: "#009fe3"
|
|
48
|
+
}),
|
|
49
|
+
t("div", B, e(s.$t("message.dataupload.datasets.landingPage.requirements-title")), 1)
|
|
50
|
+
]),
|
|
51
|
+
t("ul", C, [
|
|
52
|
+
t("li", null, [
|
|
53
|
+
t("span", T, e(s.$t(
|
|
54
|
+
"message.dataupload.datasets.landingPage.requirements-link"
|
|
55
|
+
)), 1),
|
|
56
|
+
t("span", b, e(s.$t(
|
|
57
|
+
"message.dataupload.datasets.landingPage.requirements-text"
|
|
58
|
+
)), 1)
|
|
59
|
+
])
|
|
60
|
+
])
|
|
61
|
+
]),
|
|
62
|
+
t("div", x, e(s.$t("message.dataupload.datasets.landingPage.start-message")), 1)
|
|
63
|
+
])
|
|
64
|
+
])
|
|
65
|
+
]);
|
|
66
|
+
}
|
|
67
|
+
const J = /* @__PURE__ */ u(h, [["render", q], ["__scopeId", "data-v-d700b302"]]);
|
|
68
|
+
export {
|
|
69
|
+
J as default
|
|
70
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { mapGetters as f } from "vuex";
|
|
2
|
+
import { isEmpty as a, has as s, isArray as m } from "lodash-es";
|
|
3
|
+
import { createElementBlock as l, openBlock as r, createElementVNode as i, withModifiers as g, createCommentVNode as p, toDisplayString as d } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
import h from "../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const _ = "collapsed", y = {
|
|
8
|
+
data: () => ({
|
|
9
|
+
isCollapsed: !1
|
|
10
|
+
}),
|
|
11
|
+
props: {
|
|
12
|
+
context: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: !0
|
|
15
|
+
},
|
|
16
|
+
info: {
|
|
17
|
+
type: [String, Boolean],
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
collapsed: {
|
|
21
|
+
// if true, the fieldset will be collapsed by default
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !1
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
computed: {
|
|
27
|
+
...f("dpiStore", [
|
|
28
|
+
"getData"
|
|
29
|
+
]),
|
|
30
|
+
propertyIsEmpty() {
|
|
31
|
+
let t, o = this.getData(this.$route.params.property);
|
|
32
|
+
return this.$route.params.property === "distributions" && (o = o[this.$route.params.id]), t = o[this.context.name], a(t) || s(t, "skos:exactMatch") && s(t["skos:exactMatch"], "@id") && a(t["skos:exactMatch"]["@id"]) ? !0 : s(t, "@language") && s(t, "@value") ? a(t["@value"]) : m(t) ? t.map((e) => s(e, "@language") && s(e, "@value") && a(e["@value"]) ? !0 : !!a(e)).reduce((e, n) => e && n, !0) : !1;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
mounted() {
|
|
36
|
+
this.collapsed && this.propertyIsEmpty && this.toggleCollapse();
|
|
37
|
+
},
|
|
38
|
+
methods: {
|
|
39
|
+
toggleCollapse() {
|
|
40
|
+
const t = this.$el;
|
|
41
|
+
for (const o of t.parentNode.children)
|
|
42
|
+
o !== t && !o.classList.contains("formkit-input-help") && o.classList.toggle("d-none");
|
|
43
|
+
t.parentNode.classList.toggle(_), this.isCollapsed = !this.isCollapsed;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}, x = ["for"], b = { class: "" }, C = { class: "form-label" }, k = {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: "infoButton"
|
|
49
|
+
}, S = ["title"], v = {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "material-icons"
|
|
52
|
+
};
|
|
53
|
+
function E(t, o, e, n, L, c) {
|
|
54
|
+
return r(), l("label", {
|
|
55
|
+
for: e.context.id,
|
|
56
|
+
class: "w-100"
|
|
57
|
+
}, [
|
|
58
|
+
i("button", {
|
|
59
|
+
class: "btn p-0 w-100 d-flex align-items-center justify-content-between",
|
|
60
|
+
"data-cy": "collapsible-input-group-button",
|
|
61
|
+
onClick: o[0] || (o[0] = g((...u) => c.toggleCollapse && c.toggleCollapse(...u), ["prevent", "stop"]))
|
|
62
|
+
}, [
|
|
63
|
+
i("div", b, [
|
|
64
|
+
i("span", C, d(e.context.label), 1),
|
|
65
|
+
e.info ? (r(), l("a", k, [
|
|
66
|
+
i("i", {
|
|
67
|
+
class: "material-icons",
|
|
68
|
+
title: e.info,
|
|
69
|
+
"data-toggle": "tooltip",
|
|
70
|
+
"data-placement": "top"
|
|
71
|
+
}, "info", 8, S)
|
|
72
|
+
])) : p("", !0)
|
|
73
|
+
]),
|
|
74
|
+
e.context.isSubField() ? p("", !0) : (r(), l("i", v, d(t.isCollapsed ? "expand_more" : "expand_less"), 1))
|
|
75
|
+
])
|
|
76
|
+
], 8, x);
|
|
77
|
+
}
|
|
78
|
+
const I = /* @__PURE__ */ h(y, [["render", E], ["__scopeId", "data-v-202359cc"]]);
|
|
79
|
+
export {
|
|
80
|
+
I as default
|
|
81
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as i, inject as a, computed as s, resolveComponent as c, withDirectives as m, createElementBlock as l, openBlock as d, normalizeClass as u, createVNode as v, withCtx as S, renderSlot as f, vShow as _ } from "vue";
|
|
2
|
+
import { dpiStepperKey as h } from "../utils/injectionKeys.js";
|
|
3
|
+
const K = /* @__PURE__ */ i({
|
|
4
|
+
__name: "InputPageStep",
|
|
5
|
+
props: {
|
|
6
|
+
name: {}
|
|
7
|
+
},
|
|
8
|
+
setup(n) {
|
|
9
|
+
const e = n, t = a(h);
|
|
10
|
+
if (!t)
|
|
11
|
+
throw new Error("dpiStepper is not provided. Please make sure to use this component inside InputPage");
|
|
12
|
+
t.registerStep(e.name);
|
|
13
|
+
const o = s(() => t.activeStep.value === e.name), {
|
|
14
|
+
activeStep: w
|
|
15
|
+
} = t;
|
|
16
|
+
return (r, g) => {
|
|
17
|
+
const p = c("FormKit");
|
|
18
|
+
return m((d(), l("section", {
|
|
19
|
+
class: u({ activeSection: o.value })
|
|
20
|
+
}, [
|
|
21
|
+
v(p, {
|
|
22
|
+
type: "group",
|
|
23
|
+
id: e.name,
|
|
24
|
+
name: e.name,
|
|
25
|
+
ref: e.name
|
|
26
|
+
}, {
|
|
27
|
+
default: S(() => [
|
|
28
|
+
f(r.$slots, "default")
|
|
29
|
+
]),
|
|
30
|
+
_: 3
|
|
31
|
+
}, 8, ["id", "name"])
|
|
32
|
+
], 2)), [
|
|
33
|
+
[_, o.value]
|
|
34
|
+
]);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
K as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { useVModel as s } from "@vueuse/core";
|
|
2
|
+
import { defineComponent as r, createElementBlock as l, openBlock as o, withDirectives as i, createElementVNode as u, Fragment as p, renderList as d, toDisplayString as c, vModelSelect as m } from "vue";
|
|
3
|
+
import g from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = r({
|
|
5
|
+
name: "LanguageSelector",
|
|
6
|
+
data() {
|
|
7
|
+
return {
|
|
8
|
+
languages: {
|
|
9
|
+
bg: "Български",
|
|
10
|
+
cs: "čeština",
|
|
11
|
+
da: "dansk",
|
|
12
|
+
de: "Deutsch",
|
|
13
|
+
el: "Ελληνικά",
|
|
14
|
+
en: "English",
|
|
15
|
+
es: "español",
|
|
16
|
+
et: "eesti",
|
|
17
|
+
fr: "français",
|
|
18
|
+
ga: "Gaeilge",
|
|
19
|
+
hr: "Hrvatski",
|
|
20
|
+
hu: "Magyar",
|
|
21
|
+
it: "italiano",
|
|
22
|
+
lt: "lietuvių",
|
|
23
|
+
lv: "latviešu",
|
|
24
|
+
mt: "Malti",
|
|
25
|
+
nl: "Nederlands",
|
|
26
|
+
pl: "polski",
|
|
27
|
+
pt: "português",
|
|
28
|
+
ro: "română",
|
|
29
|
+
sk: "slovenčina",
|
|
30
|
+
sl: "slovenščina",
|
|
31
|
+
fi: "suomi",
|
|
32
|
+
sv: "svenska"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
props: {
|
|
37
|
+
modelValue: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "en"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
created() {
|
|
43
|
+
},
|
|
44
|
+
setup(e, { emit: a }) {
|
|
45
|
+
return { locale: s(e, "modelValue", a, { passive: !0 }) };
|
|
46
|
+
}
|
|
47
|
+
}), v = { class: "d-inline-block" }, k = ["value"];
|
|
48
|
+
function h(e, a, n, _, y, S) {
|
|
49
|
+
return o(), l("span", v, [
|
|
50
|
+
i(u("select", {
|
|
51
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => e.locale = t)
|
|
52
|
+
}, [
|
|
53
|
+
(o(!0), l(p, null, d(Object.keys(e.languages), (t) => (o(), l("option", {
|
|
54
|
+
key: t,
|
|
55
|
+
value: t
|
|
56
|
+
}, c(e.languages[t]), 9, k))), 128))
|
|
57
|
+
], 512), [
|
|
58
|
+
[m, e.locale]
|
|
59
|
+
])
|
|
60
|
+
]);
|
|
61
|
+
}
|
|
62
|
+
const b = /* @__PURE__ */ g(f, [["render", h]]);
|
|
63
|
+
export {
|
|
64
|
+
b as default
|
|
65
|
+
};
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import k from "jquery";
|
|
2
|
+
import { isNil as P } from "lodash-es";
|
|
3
|
+
import { mapActions as D, mapGetters as _ } from "vuex";
|
|
4
|
+
import { useWindowScroll as U } from "@vueuse/core";
|
|
5
|
+
import q from "axios";
|
|
6
|
+
import { resolveComponent as w, createElementBlock as m, openBlock as o, createElementVNode as v, createVNode as T, createBlock as u, createCommentVNode as l, withCtx as g, createTextVNode as f, toDisplayString as y, getCurrentInstance as x } from "vue";
|
|
7
|
+
import "vue-i18n";
|
|
8
|
+
import { useDpiContext as M } from "../composables/useDpiContext.js";
|
|
9
|
+
import "./Navigation.vue2.js";
|
|
10
|
+
import N from "../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
+
const A = {
|
|
12
|
+
name: "Navigation",
|
|
13
|
+
props: ["steps", "nextStep", "previousStep", "goToNextStep", "goToPreviousStep"],
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
instance: x().appContext.app.config.globalProperties.$env,
|
|
17
|
+
uploading: {
|
|
18
|
+
dataset: !1,
|
|
19
|
+
draft: !1
|
|
20
|
+
},
|
|
21
|
+
modal: {
|
|
22
|
+
confirm: "",
|
|
23
|
+
message: "",
|
|
24
|
+
callback: ""
|
|
25
|
+
},
|
|
26
|
+
modals: {
|
|
27
|
+
id: {
|
|
28
|
+
confirm: "",
|
|
29
|
+
message: "Dataset ID already exists",
|
|
30
|
+
callback: this.closeModal
|
|
31
|
+
},
|
|
32
|
+
clear: {
|
|
33
|
+
confirm: "",
|
|
34
|
+
message: "",
|
|
35
|
+
callback: this.clearStorage
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
property: this.$route.params.property,
|
|
39
|
+
id: this.$route.params.id
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
setup() {
|
|
43
|
+
return {
|
|
44
|
+
scrollToTop: () => {
|
|
45
|
+
let { x: a, y: s } = U({ behavior: "smooth" });
|
|
46
|
+
s.value = 0;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
computed: {
|
|
51
|
+
..._("auth", [
|
|
52
|
+
"getIsEditMode",
|
|
53
|
+
"getIsDraft",
|
|
54
|
+
"getUserData"
|
|
55
|
+
]),
|
|
56
|
+
..._("dpiStore", [
|
|
57
|
+
"getData"
|
|
58
|
+
]),
|
|
59
|
+
formErrorCount() {
|
|
60
|
+
let t = 0;
|
|
61
|
+
return Object.keys(this.steps).forEach((a) => {
|
|
62
|
+
t = t + this.steps[a].blockingCount;
|
|
63
|
+
}), t > 0;
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
created() {
|
|
67
|
+
this.modals.clear.message = this.$t("message.dataupload.modal.resetForm"), this.modals.clear.confirm = this.$t("message.dataupload.modal.confirmReset");
|
|
68
|
+
},
|
|
69
|
+
methods: {
|
|
70
|
+
...D("auth", [
|
|
71
|
+
"setIsEditMode",
|
|
72
|
+
"setIsDraft"
|
|
73
|
+
]),
|
|
74
|
+
...D("snackbar", [
|
|
75
|
+
"showSnackbar"
|
|
76
|
+
]),
|
|
77
|
+
...D("dpiStore", [
|
|
78
|
+
"convertToRDF",
|
|
79
|
+
"clearAll"
|
|
80
|
+
// 'deleteDistribution',
|
|
81
|
+
// 'setDeleteDistributionInline',
|
|
82
|
+
]),
|
|
83
|
+
closeModal() {
|
|
84
|
+
k("#modal").modal("hide");
|
|
85
|
+
},
|
|
86
|
+
handleIDError() {
|
|
87
|
+
this.modal = this.modals.id, k("#modal").modal({ show: !0 });
|
|
88
|
+
},
|
|
89
|
+
handleClear() {
|
|
90
|
+
this.modal = this.modals.clear, k("#modal").modal({ show: !0 });
|
|
91
|
+
},
|
|
92
|
+
clearStorage() {
|
|
93
|
+
this.closeModal(), this.$formkit.reset("dpiForm"), this.clearAll();
|
|
94
|
+
},
|
|
95
|
+
async submit(t) {
|
|
96
|
+
var C, I, $, S, E;
|
|
97
|
+
this.uploading[t] = !0, (C = this.$Progress) == null || C.start();
|
|
98
|
+
const a = this.$env.content.dataProviderInterface.specification, s = await this.convertToRDF({ property: this.property, specification: a }).then((b) => b), p = this.getUserData.rtpToken, e = this.getData(this.property).datasetID, r = this.getData(this.property)["dct:title"], i = this.getData(this.property)["dct:description"], c = ((I = this.dpiContext.edit) == null ? void 0 : I.catalog) || this.getData(this.property).catalog || this.getData(this.property)["dcat:catalog"] || this.getData(this.property)["dct:catalog"];
|
|
99
|
+
let n, d, h = {
|
|
100
|
+
id: e,
|
|
101
|
+
catalog: c,
|
|
102
|
+
body: s,
|
|
103
|
+
title: r,
|
|
104
|
+
description: i
|
|
105
|
+
};
|
|
106
|
+
t === "dataset" ? !this.getIsEditMode || this.getIsEditMode && !this.getIsDraft || this.getIsEditMode && this.getIsDraft && localStorage.getItem("dpi_duplicate") ? (n = `${this.$env.api.hubUrl}datasets?id=${e}&catalogue=${c}`, h = { data: s, token: p, url: n }, d = "auth/createDataset") : (h = { id: e, catalog: c }, d = "auth/publishUserDraftById") : t === "draft" ? !this.getIsEditMode || this.getIsEditMode && this.getIsDraft ? (n = `${this.$env.api.hubUrl}drafts/datasets/${e}?catalogue=${c}`, d = "auth/createUserDraft") : (h = { id: e, catalog: c, title: r, description: i }, d = "auth/putDatasetToDraft") : t === "createcatalogue" && (n = `${this.$env.api.hubUrl}catalogues/${e}`, h = { data: s, token: p, url: n, id: e }, d = "auth/createCatalogue");
|
|
107
|
+
try {
|
|
108
|
+
this.idunique(e) ? (await this.$store.dispatch(d, h), ($ = this.$Progress) == null || $.finish(), this.uploading[t] = !1, t === "createcatalogue" && this.createCatalogue(e), t === "dataset" && this.createDataset(e), t === "draft" && this.createDraft(), this.clearAll()) : (this.uploading[t] = !1, (S = this.$Progress) == null || S.fail(), this.handleIDError());
|
|
109
|
+
} catch (b) {
|
|
110
|
+
console.error(b), this.uploading[t] = !1, (E = this.$Progress) == null || E.fail(), this.showSnackbar({ message: "Network Error", variant: "error" });
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
createDataset(t) {
|
|
114
|
+
this.clearAll(), this.showSnackbar({ message: this.$t("message.dataupload.snackBar.datasetPublished"), variant: "success" }), this.$router.push({ name: "DatasetDetailsDataset", params: { ds_id: t }, query: { locale: this.$route.query.locale } }).then(() => {
|
|
115
|
+
this.$router.go(0);
|
|
116
|
+
});
|
|
117
|
+
},
|
|
118
|
+
createDraft() {
|
|
119
|
+
this.clearAll(), this.showSnackbar({ message: this.$t("message.dataupload.snackBar.draftCreated"), variant: "success" }), this.$router.push({ name: "DataProviderInterface-Draft", query: { locale: this.$route.query.locale } }).catch(() => {
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
createCatalogue(t) {
|
|
123
|
+
this.clearAll(), this.showSnackbar({ message: this.$t("message.dataupload.snackBar.catalogPublished"), variant: "success" }), this.$router.push({ name: "CatalogueDetails", query: { locale: this.$route.query.locale }, params: { ctlg_id: t } }).catch(() => {
|
|
124
|
+
});
|
|
125
|
+
},
|
|
126
|
+
async idunique(t) {
|
|
127
|
+
let a = !0;
|
|
128
|
+
const s = this.$store.getters["auth/getUserDraftIds"];
|
|
129
|
+
return new Promise(() => {
|
|
130
|
+
if (P(t) || t === "" || t === void 0) a = !0;
|
|
131
|
+
else if (s.includes(t)) a = !1;
|
|
132
|
+
else {
|
|
133
|
+
const p = `${this.$env.api.hubUrl}datasets/${t}?useNormalizedId=true`;
|
|
134
|
+
q.head(p).then(() => {
|
|
135
|
+
a = !1;
|
|
136
|
+
}).catch((e) => {
|
|
137
|
+
a = !0;
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}), a;
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
setup() {
|
|
144
|
+
return { dpiContext: M() };
|
|
145
|
+
}
|
|
146
|
+
}, B = {
|
|
147
|
+
id: "nav",
|
|
148
|
+
class: "d-flex"
|
|
149
|
+
}, F = { class: "left-form-nav w-25" }, R = { class: "right-form-nav w-75" }, V = {
|
|
150
|
+
key: 0,
|
|
151
|
+
class: "loading-spinner"
|
|
152
|
+
}, K = {
|
|
153
|
+
key: 0,
|
|
154
|
+
class: "loading-spinner"
|
|
155
|
+
}, j = {
|
|
156
|
+
key: 0,
|
|
157
|
+
class: "loading-spinner"
|
|
158
|
+
}, z = {
|
|
159
|
+
key: 0,
|
|
160
|
+
class: "loading-spinner"
|
|
161
|
+
};
|
|
162
|
+
function G(t, a, s, p, e, r) {
|
|
163
|
+
const i = w("FormKit"), c = w("app-confirmation-dialog");
|
|
164
|
+
return o(), m("div", null, [
|
|
165
|
+
v("div", B, [
|
|
166
|
+
v("div", F, [
|
|
167
|
+
s.previousStep ? (o(), u(i, {
|
|
168
|
+
key: 0,
|
|
169
|
+
type: "button",
|
|
170
|
+
label: t.$t("message.dataupload.preview"),
|
|
171
|
+
onClick: s.goToPreviousStep,
|
|
172
|
+
class: "prev-btn mx-1 my-0"
|
|
173
|
+
}, null, 8, ["label", "onClick"])) : l("", !0),
|
|
174
|
+
T(i, {
|
|
175
|
+
type: "button",
|
|
176
|
+
label: t.$t("message.dataupload.clear"),
|
|
177
|
+
onClick: r.handleClear,
|
|
178
|
+
class: "clear-btn"
|
|
179
|
+
}, null, 8, ["label", "onClick"])
|
|
180
|
+
]),
|
|
181
|
+
v("div", R, [
|
|
182
|
+
!t.getIsEditMode && !t.getIsDraft && e.property === "catalogues" ? (o(), u(i, {
|
|
183
|
+
key: 0,
|
|
184
|
+
type: "button",
|
|
185
|
+
onClick: a[0] || (a[0] = (n) => r.submit("createcatalogue")),
|
|
186
|
+
class: "mr-2"
|
|
187
|
+
}, {
|
|
188
|
+
default: g(() => [
|
|
189
|
+
e.uploading.createcatalogue ? (o(), m("span", V)) : l("", !0),
|
|
190
|
+
f(y(t.$t("message.dataupload.publishcatalogue")), 1)
|
|
191
|
+
]),
|
|
192
|
+
_: 1
|
|
193
|
+
})) : l("", !0),
|
|
194
|
+
t.getIsEditMode && !t.getIsDraft && e.property === "catalogues" ? (o(), u(i, {
|
|
195
|
+
key: 1,
|
|
196
|
+
type: "button",
|
|
197
|
+
onClick: a[1] || (a[1] = (n) => r.submit("createcatalogue")),
|
|
198
|
+
class: "mx-1 my-0"
|
|
199
|
+
}, {
|
|
200
|
+
default: g(() => [
|
|
201
|
+
e.uploading.createcatalogue ? (o(), m("span", K)) : l("", !0),
|
|
202
|
+
f(y(t.$t("message.dataupload.publishcatalogue")), 1)
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
})) : l("", !0),
|
|
206
|
+
e.property === "datasets" ? (o(), u(i, {
|
|
207
|
+
key: 2,
|
|
208
|
+
type: "button",
|
|
209
|
+
onClick: a[2] || (a[2] = (n) => r.submit("dataset")),
|
|
210
|
+
disabled: r.formErrorCount,
|
|
211
|
+
class: "mx-1 my-0"
|
|
212
|
+
}, {
|
|
213
|
+
default: g(() => [
|
|
214
|
+
e.uploading.dataset ? (o(), m("span", j)) : l("", !0),
|
|
215
|
+
f(y(t.$t("message.dataupload.publishdataset")), 1)
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
}, 8, ["disabled"])) : l("", !0),
|
|
219
|
+
e.property === "datasets" ? (o(), u(i, {
|
|
220
|
+
key: 3,
|
|
221
|
+
type: "button",
|
|
222
|
+
onClick: a[3] || (a[3] = (n) => r.submit("draft")),
|
|
223
|
+
disabled: r.formErrorCount,
|
|
224
|
+
class: "mx-1 my-0"
|
|
225
|
+
}, {
|
|
226
|
+
default: g(() => [
|
|
227
|
+
e.uploading.draft ? (o(), m("span", z)) : l("", !0),
|
|
228
|
+
f(y(t.$t("message.dataupload.saveasdraft")), 1)
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["disabled"])) : l("", !0),
|
|
232
|
+
s.nextStep ? (o(), u(i, {
|
|
233
|
+
key: 4,
|
|
234
|
+
type: "button",
|
|
235
|
+
label: t.$t("message.dataupload.next"),
|
|
236
|
+
onClick: s.goToNextStep
|
|
237
|
+
}, null, 8, ["label", "onClick"])) : l("", !0)
|
|
238
|
+
])
|
|
239
|
+
]),
|
|
240
|
+
T(c, {
|
|
241
|
+
id: "modal",
|
|
242
|
+
confirm: e.modal.confirm,
|
|
243
|
+
onConfirm: e.modal.callback,
|
|
244
|
+
close: e.modal.confirm
|
|
245
|
+
}, {
|
|
246
|
+
default: g(() => [
|
|
247
|
+
f(y(e.modal.message), 1)
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
}, 8, ["confirm", "onConfirm", "close"])
|
|
251
|
+
]);
|
|
252
|
+
}
|
|
253
|
+
const et = /* @__PURE__ */ N(A, [["render", G]]);
|
|
254
|
+
export {
|
|
255
|
+
et as default
|
|
256
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ref as n, getCurrentInstance as V, createElementBlock as c, openBlock as u, createElementVNode as i, toDisplayString as p, createVNode as f, createCommentVNode as y, unref as r } from "vue";
|
|
2
|
+
import x from "../HappyFlowComponents/ui/Dropdown.vue.js";
|
|
3
|
+
import { filterGeocodingURIs as P } from "../HappyFlowComponents/services/dpiV3_apis.js";
|
|
4
|
+
import { PhMagnifyingGlass as G } from "@phosphor-icons/vue";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import w from "../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
import { useEditModeInfo as S } from "../composables/useDpiEditMode.js";
|
|
8
|
+
const T = { class: "dpiV3InnerComponentWrap" }, U = { class: "copy-large-regular" }, k = { class: "dropdown-container" }, E = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "empty-state-message"
|
|
11
|
+
}, C = {
|
|
12
|
+
__name: "PolGeoUriPage",
|
|
13
|
+
props: {
|
|
14
|
+
context: Object
|
|
15
|
+
},
|
|
16
|
+
setup(g) {
|
|
17
|
+
const { isEditMode: m } = S();
|
|
18
|
+
let o = n([]), v = V().appContext.app.config.globalProperties.$env, s;
|
|
19
|
+
const a = n(!1), l = n(!1), b = n(""), d = g;
|
|
20
|
+
m.value || d.context.node.input([{ isValid: !0 }]);
|
|
21
|
+
const h = async (e) => {
|
|
22
|
+
clearTimeout(s), b.value = e, s = setTimeout(async () => {
|
|
23
|
+
if (e !== "")
|
|
24
|
+
try {
|
|
25
|
+
a.value = !0, l.value = !0, o.value = await P(e, v.api.baseUrl);
|
|
26
|
+
} catch (t) {
|
|
27
|
+
console.log("Error fetching geocoding data:", t), o.value = [];
|
|
28
|
+
} finally {
|
|
29
|
+
a.value = !1;
|
|
30
|
+
}
|
|
31
|
+
else
|
|
32
|
+
o.value = [], l.value = !1;
|
|
33
|
+
}, 500);
|
|
34
|
+
}, _ = (e, t) => {
|
|
35
|
+
d.context.node.input([{
|
|
36
|
+
isValid: !0,
|
|
37
|
+
uri: e.resource,
|
|
38
|
+
id: e.id,
|
|
39
|
+
label: e.alt_label.de,
|
|
40
|
+
inVoc: t
|
|
41
|
+
}]);
|
|
42
|
+
};
|
|
43
|
+
return (e, t) => (u(), c("div", T, [
|
|
44
|
+
i("h4", null, p(e.$t("message.dataupload.datasets.dcatde:politicalGeocodingURI.title")), 1),
|
|
45
|
+
i("div", U, p(e.$t("message.dataupload.datasets.dcatde:politicalGeocodingURI.description")), 1),
|
|
46
|
+
i("div", k, [
|
|
47
|
+
f(x, {
|
|
48
|
+
dropdownWidth: "large",
|
|
49
|
+
type: "inputField",
|
|
50
|
+
onInput: t[0] || (t[0] = (I) => h(I)),
|
|
51
|
+
inputFieldProps: {
|
|
52
|
+
addOnText: !1,
|
|
53
|
+
initialHintText: !1,
|
|
54
|
+
datePicker: !1,
|
|
55
|
+
infoIcon: !1,
|
|
56
|
+
preIcon: !1,
|
|
57
|
+
label: "Geopolitische Abdeckung",
|
|
58
|
+
dropdown_dpiV3: !0,
|
|
59
|
+
placeholder: "Geben Sie die geopolitische Abdeckung ein..",
|
|
60
|
+
inputFieldSize: "large",
|
|
61
|
+
autocomplete: "true"
|
|
62
|
+
},
|
|
63
|
+
onValueSent: _,
|
|
64
|
+
data: r(o),
|
|
65
|
+
multi: "true",
|
|
66
|
+
autocomplete: !0,
|
|
67
|
+
buttonText: "Dropdown",
|
|
68
|
+
text: "Dropdown",
|
|
69
|
+
loading: a.value
|
|
70
|
+
}, null, 8, ["data", "loading"]),
|
|
71
|
+
l.value && !a.value && r(o).length === 0 ? (u(), c("div", E, [
|
|
72
|
+
f(r(G), { size: 16 }),
|
|
73
|
+
t[1] || (t[1] = i("span", null, "Keine Ergebnisse gefunden. Bitte versuchen Sie einen anderen Suchbegriff.", -1))
|
|
74
|
+
])) : y("", !0)
|
|
75
|
+
])
|
|
76
|
+
]));
|
|
77
|
+
}
|
|
78
|
+
}, z = /* @__PURE__ */ w(C, [["__scopeId", "data-v-c2bfbeff"]]);
|
|
79
|
+
export {
|
|
80
|
+
z as default
|
|
81
|
+
};
|