@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,125 @@
|
|
|
1
|
+
import { defineComponent as u, resolveComponent as l, createElementBlock as n, openBlock as t, mergeProps as m, createCommentVNode as r, createBlock as i, toDisplayString as f, createVNode as y } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { PhCaretLeft as P, PhCopySimple as b, PhTrash as C } from "@phosphor-icons/vue";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import c from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const h = u({
|
|
8
|
+
name: "TextButtonSmall",
|
|
9
|
+
components: {
|
|
10
|
+
PhTrash: C,
|
|
11
|
+
PhCopySimple: b,
|
|
12
|
+
PhCaretLeft: P
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
buttonText: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: !1
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "small"
|
|
22
|
+
},
|
|
23
|
+
iconStart: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: null
|
|
26
|
+
},
|
|
27
|
+
iconEnd: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: null
|
|
30
|
+
},
|
|
31
|
+
disabled: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !1
|
|
34
|
+
},
|
|
35
|
+
iconName: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "trash"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
data() {
|
|
41
|
+
return {
|
|
42
|
+
isHovered: !1,
|
|
43
|
+
isPressed: !1
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
computed: {
|
|
47
|
+
buttonClass() {
|
|
48
|
+
const e = this.$attrs.class || "";
|
|
49
|
+
return [
|
|
50
|
+
"dpiV3_text-button-small",
|
|
51
|
+
{ "dpiV3_text-button-disabled": this.disabled },
|
|
52
|
+
e
|
|
53
|
+
];
|
|
54
|
+
},
|
|
55
|
+
iconSizeClass() {
|
|
56
|
+
return ["dpiV3_icon-small", this.$attrs.class || ""];
|
|
57
|
+
},
|
|
58
|
+
iconColor() {
|
|
59
|
+
return this.disabled ? "#67C5F0" : this.isPressed ? "#009FE3" : this.isHovered ? "#003F6F" : "#0172AD";
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
methods: {
|
|
63
|
+
async onPress(e) {
|
|
64
|
+
e.preventDefault(), this.isPressed = !0;
|
|
65
|
+
},
|
|
66
|
+
onKeyPress(e) {
|
|
67
|
+
(e.key === "Enter" || e.key === " " || e.key === "Spacebar") && (e.preventDefault(), this.isPressed = !0);
|
|
68
|
+
},
|
|
69
|
+
onKeyRelease(e) {
|
|
70
|
+
(e.key === "Enter" || e.key === " " || e.key === "Spacebar") && (e.preventDefault(), this.isPressed = !1, this.disabled || this.$emit("click", e));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}), k = ["disabled"], S = {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: "dpiV3_icon-small"
|
|
76
|
+
}, $ = { key: 1 }, B = {
|
|
77
|
+
key: 2,
|
|
78
|
+
class: "dpiV3_icon-small"
|
|
79
|
+
};
|
|
80
|
+
function K(e, s, T, V, v, z) {
|
|
81
|
+
const a = l("PhTrash"), d = l("PhCopySimple"), p = l("PhCaretLeft");
|
|
82
|
+
return t(), n("button", m({
|
|
83
|
+
type: "button",
|
|
84
|
+
tabindex: "0",
|
|
85
|
+
class: [e.buttonClass, { "dpiV3_text-button-pressed": e.isPressed }],
|
|
86
|
+
disabled: e.disabled,
|
|
87
|
+
onMousedown: s[0] || (s[0] = (...o) => e.onPress && e.onPress(...o)),
|
|
88
|
+
onMouseup: s[1] || (s[1] = (o) => e.isPressed = !1),
|
|
89
|
+
onKeydown: s[2] || (s[2] = (...o) => e.onKeyPress && e.onKeyPress(...o)),
|
|
90
|
+
onKeyup: s[3] || (s[3] = (...o) => e.onKeyRelease && e.onKeyRelease(...o)),
|
|
91
|
+
onMouseover: s[4] || (s[4] = (o) => e.isHovered = !0),
|
|
92
|
+
onMouseleave: s[5] || (s[5] = () => {
|
|
93
|
+
e.isHovered = !1, e.isPressed = !1;
|
|
94
|
+
})
|
|
95
|
+
}, e.$attrs), [
|
|
96
|
+
e.iconStart ? (t(), n("span", S, [
|
|
97
|
+
e.iconName === "trash" ? (t(), i(a, {
|
|
98
|
+
key: 0,
|
|
99
|
+
size: 24,
|
|
100
|
+
color: e.iconColor
|
|
101
|
+
}, null, 8, ["color"])) : r("", !0),
|
|
102
|
+
e.iconName === "copy" ? (t(), i(d, {
|
|
103
|
+
key: 1,
|
|
104
|
+
size: 24,
|
|
105
|
+
color: e.iconColor
|
|
106
|
+
}, null, 8, ["color"])) : r("", !0),
|
|
107
|
+
e.iconName === "caretLeft" ? (t(), i(p, {
|
|
108
|
+
key: 2,
|
|
109
|
+
size: 24,
|
|
110
|
+
color: e.iconColor
|
|
111
|
+
}, null, 8, ["color"])) : r("", !0)
|
|
112
|
+
])) : r("", !0),
|
|
113
|
+
e.buttonText ? (t(), n("span", $, f(e.buttonText), 1)) : r("", !0),
|
|
114
|
+
e.iconEnd ? (t(), n("span", B, [
|
|
115
|
+
y(a, {
|
|
116
|
+
size: 24,
|
|
117
|
+
color: e.iconColor
|
|
118
|
+
}, null, 8, ["color"])
|
|
119
|
+
])) : r("", !0)
|
|
120
|
+
], 16, k);
|
|
121
|
+
}
|
|
122
|
+
const L = /* @__PURE__ */ c(h, [["render", K], ["__scopeId", "data-v-5d413fe3"]]);
|
|
123
|
+
export {
|
|
124
|
+
L as default
|
|
125
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ref as i, createElementBlock as g, openBlock as v, normalizeClass as u, createElementVNode as s, toDisplayString as S, createVNode as c, unref as p } from "vue";
|
|
2
|
+
import x from "../img/x-circleFill.svg.js";
|
|
3
|
+
import _ from "../img/InfoFill.svg.js";
|
|
4
|
+
import T from "../img/CheckCircleFill.svg.js";
|
|
5
|
+
import B from "../img/WarningFill.svg.js";
|
|
6
|
+
import b from "./TextButtonSmall.vue.js";
|
|
7
|
+
import w from "./CrossOutButton.vue.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
const E = { class: "imgTextWrap" }, K = ["src"], h = { class: "btnWrapToast" }, $ = {
|
|
10
|
+
__name: "Toast",
|
|
11
|
+
props: {
|
|
12
|
+
text: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: !0
|
|
15
|
+
},
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: !0
|
|
19
|
+
},
|
|
20
|
+
button: String,
|
|
21
|
+
action: String
|
|
22
|
+
},
|
|
23
|
+
setup(f) {
|
|
24
|
+
const o = i();
|
|
25
|
+
let n = i(!1), a = i(!1);
|
|
26
|
+
const e = f;
|
|
27
|
+
e.type === "info" && (o.value = _), e.type === "success" && (o.value = T), e.type === "warning" && (o.value = B), e.type === "error" && (o.value = x);
|
|
28
|
+
const l = (t) => {
|
|
29
|
+
t === "in" ? a.value = !0 : a.value = !1;
|
|
30
|
+
}, d = (t) => {
|
|
31
|
+
(t.code === "Space" || t.code === "Enter") && (n.value = !0, t.preventDefault());
|
|
32
|
+
}, m = (t) => {
|
|
33
|
+
(t.code === "Space" || t.code === "Enter") && (n.value = !1);
|
|
34
|
+
};
|
|
35
|
+
return (t, r) => (v(), g("div", {
|
|
36
|
+
class: u(["toastBody", {
|
|
37
|
+
error: e.type === "error",
|
|
38
|
+
warning: e.type === "warning",
|
|
39
|
+
info: e.type === "info",
|
|
40
|
+
success: e.type === "success"
|
|
41
|
+
}])
|
|
42
|
+
}, [
|
|
43
|
+
s("div", E, [
|
|
44
|
+
s("img", {
|
|
45
|
+
src: o.value,
|
|
46
|
+
alt: ""
|
|
47
|
+
}, null, 8, K),
|
|
48
|
+
s("span", null, S(e.text), 1)
|
|
49
|
+
]),
|
|
50
|
+
s("div", h, [
|
|
51
|
+
c(b, {
|
|
52
|
+
buttonText: e.button,
|
|
53
|
+
style: { margin: "auto" }
|
|
54
|
+
}, null, 8, ["buttonText"]),
|
|
55
|
+
c(w, {
|
|
56
|
+
onKeydown: d,
|
|
57
|
+
onKeyup: m,
|
|
58
|
+
onFocus: r[0] || (r[0] = (y) => l("in")),
|
|
59
|
+
onBlur: r[1] || (r[1] = (y) => l()),
|
|
60
|
+
type: "inToast",
|
|
61
|
+
class: u(["crossout", { pressed: p(n), focused: p(a) }])
|
|
62
|
+
}, null, 8, ["class"])
|
|
63
|
+
])
|
|
64
|
+
], 2));
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
$ as default
|
|
69
|
+
};
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { getCurrentInstance as te, computed as I, ref as g, onMounted as ne, watch as W, watchEffect as ae, createElementBlock as r, openBlock as i, createCommentVNode as O, createElementVNode as s, unref as c, toDisplayString as m, withDirectives as B, isRef as $, vModelText as le, Fragment as L, renderList as T, vShow as oe, normalizeClass as se } from "vue";
|
|
2
|
+
import { useStore as re } from "vuex";
|
|
3
|
+
import { getTranslationFor as M } from "../../utils/helpers.js";
|
|
4
|
+
import { getNode as ie } from "@formkit/core";
|
|
5
|
+
import { onClickOutside as N } from "@vueuse/core";
|
|
6
|
+
import { useI18n as ce } from "vue-i18n";
|
|
7
|
+
import ue from "qs";
|
|
8
|
+
import de from "axios";
|
|
9
|
+
import { useAutocomplete as fe } from "../composables/aucotomplete.js";
|
|
10
|
+
const pe = { class: "formkitProperty" }, me = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "formkitHeader"
|
|
13
|
+
}, ve = ["innerHTML"], he = { class: "formkitCmpWrap" }, ge = { class: "formkit-outer" }, ye = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "d-flex formkit-inner"
|
|
16
|
+
}, xe = { class: "autocompleteInputSingleValue" }, _e = { key: 1 }, ke = { class: "d-flex align-items-center justify-content-center formkit-inner mb-2" }, be = ["placeholder"], we = ["onClick"], Ce = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "d-flex flex-wrap"
|
|
19
|
+
}, Ie = { class: "activeResultsAutocompleteWrapper" }, Le = ["onClick"], Te = ["onClick"], Ae = { class: "w-100 mt-4" }, Se = { class: "d-flex justify-content-between align-items-center flex-wrap" }, Ve = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "annifresultContainer"
|
|
22
|
+
}, Pe = ["onClick"], Oe = { class: "d-flex" }, $e = {
|
|
23
|
+
key: 1,
|
|
24
|
+
class: "d-flex flex-wrap"
|
|
25
|
+
}, Me = ["onClick"], Ne = ["innerHTML"], Be = {
|
|
26
|
+
__name: "AutocompleteInput",
|
|
27
|
+
props: {
|
|
28
|
+
context: Object
|
|
29
|
+
},
|
|
30
|
+
setup(X) {
|
|
31
|
+
let x = te().appContext.app.config.globalProperties.$env;
|
|
32
|
+
const { requestAutocompleteSuggestions: J, requestResourceName: z } = fe(), a = X;
|
|
33
|
+
re();
|
|
34
|
+
const { t: R, locale: A } = ce();
|
|
35
|
+
let v = I(() => a.context.value), u, _ = a.context.attrs.voc, G = I(() => R("message.dataupload.info.searchVocabulary")), K = I(() => R("message.dataupload.info.matchesNothingFound")), b = g({
|
|
36
|
+
value: { name: G }
|
|
37
|
+
}), f = g(), j = g(null), D = g(null), y = g({}), p = [], w = [], E = g({
|
|
38
|
+
value: !1
|
|
39
|
+
});
|
|
40
|
+
g();
|
|
41
|
+
let S = g({});
|
|
42
|
+
ne(async () => {
|
|
43
|
+
y.value = "";
|
|
44
|
+
});
|
|
45
|
+
let H = I(() => {
|
|
46
|
+
try {
|
|
47
|
+
if (a.context.attrs.class.includes("inDistribution"))
|
|
48
|
+
return !0;
|
|
49
|
+
} catch {
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
W(b, async () => {
|
|
53
|
+
}), W(S, async () => {
|
|
54
|
+
});
|
|
55
|
+
const q = async (t) => {
|
|
56
|
+
if (t != null) {
|
|
57
|
+
let n = _ === "iana-media-types" || _ === "spdx-checksum-algorithm", e;
|
|
58
|
+
return await z({ voc: _, uri: t, envs: x }).then(
|
|
59
|
+
(o) => {
|
|
60
|
+
a.context.attrs.property === "dcatde:politicalGeocodingURI" ? o != null && (e = n ? o.data.result.results.filter((l) => l.resource === t).map((l) => l.alt_label)[0].en : M(o.data.result.alt_label, A.value, [])) : o != null && (e = n ? o.data.result.results.filter((l) => l.resource === t).map((l) => l.pref_label)[0].en : M(o.data.result.pref_label, A.value, []));
|
|
61
|
+
}
|
|
62
|
+
), e;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
ae(async () => {
|
|
66
|
+
const t = v.value;
|
|
67
|
+
if (t.hasOwnProperty("name") && t.name === t.resource) {
|
|
68
|
+
let n;
|
|
69
|
+
a.context.attrs.multiple || (n = q(t.resource), a.context.node.input({ name: await n, resource: t.resource }));
|
|
70
|
+
}
|
|
71
|
+
if (t.length >= 1) {
|
|
72
|
+
let n = [];
|
|
73
|
+
for (let e = 0; e < t.length; e++)
|
|
74
|
+
t[e].name === t[e].resource && (n.push({ name: await q(t[e].resource), resource: t[e].resource }), a.context.node.input(n));
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
function V(t) {
|
|
78
|
+
let n = { step: "", prop: a.context.node.name }, e = JSON.parse(localStorage.getItem("dpi_datasets"));
|
|
79
|
+
for (let o = 0; o < Object.keys(e).length; o++)
|
|
80
|
+
for (let d = 0; d < Object.keys(e)[o].length; d++) {
|
|
81
|
+
let l = Object.entries(e);
|
|
82
|
+
try {
|
|
83
|
+
Object.keys(l[o][d]).filter((k) => {
|
|
84
|
+
k === a.context.node.name && (n.step = l[o][0], t === "erase" && (u = {}, e[n.step][n.prop] = u), e[n.step][n.prop] = u, localStorage.setItem("dpi_datasets", JSON.stringify(e)));
|
|
85
|
+
});
|
|
86
|
+
} catch {
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
window.removeEventListener("click", N);
|
|
90
|
+
}
|
|
91
|
+
N(j, (t) => f.value = !1), N(D, (t) => y.value = "");
|
|
92
|
+
let U = async (t, n) => {
|
|
93
|
+
let e = 10;
|
|
94
|
+
n != null && (e = e + 10);
|
|
95
|
+
let o = ue.stringify({
|
|
96
|
+
text: t,
|
|
97
|
+
limit: e
|
|
98
|
+
});
|
|
99
|
+
var d = {
|
|
100
|
+
method: "post",
|
|
101
|
+
url: _ == "eurovoc" ? x.content.dataProviderInterface.annifLinkSubject : x.content.dataProviderInterface.annifLinkTheme,
|
|
102
|
+
headers: {
|
|
103
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
104
|
+
Accept: "application/json"
|
|
105
|
+
},
|
|
106
|
+
data: o
|
|
107
|
+
};
|
|
108
|
+
de(d).then(async (l) => {
|
|
109
|
+
for (let h = 0; h < l.data.results.length; h++)
|
|
110
|
+
w[h] = { name: l.data.results[h].label, resource: l.data.results[h].uri, activeValue: !1 };
|
|
111
|
+
let k = [];
|
|
112
|
+
v.value.length > 0 && v.value.forEach((h) => {
|
|
113
|
+
k.push({ name: h.name, resource: h.resource, activeValue: !0 });
|
|
114
|
+
}), l.data.results.length > 9 && (w[w.length + 1] = { name: "...", resource: "invalid", activeValue: !1 }), S.value = Y(k, w);
|
|
115
|
+
}).catch(function(l) {
|
|
116
|
+
console.log(l);
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
async function Q(t) {
|
|
120
|
+
t.resource === "invalid" ? C(5) : (P({ name: t.name, resource: t.resource }), C());
|
|
121
|
+
}
|
|
122
|
+
function Y(t, n) {
|
|
123
|
+
let e = t.concat(n), o = [], d = /* @__PURE__ */ new Set();
|
|
124
|
+
return e.forEach((l) => {
|
|
125
|
+
d.has(l.resource) || (d.add(l.resource), l.activeValue || o.push(l));
|
|
126
|
+
}), o;
|
|
127
|
+
}
|
|
128
|
+
const C = async (t) => {
|
|
129
|
+
let n = ie("Mandatory").value["dct:description"];
|
|
130
|
+
for (let e = 0; e < n.length; e++)
|
|
131
|
+
n[e]["@language"] === "en" && (t != null ? await U(n[e]["@value"], 5) : await U(n[e]["@value"]));
|
|
132
|
+
};
|
|
133
|
+
a.context.classes.outer += " autocompleteInput " + a.context.attrs.identifier;
|
|
134
|
+
const P = async (t) => {
|
|
135
|
+
if (y.value = "", Object.keys(t).length !== 1) {
|
|
136
|
+
if (v.value.length > 0 && (p = v.value), a.context.attrs.multiple)
|
|
137
|
+
if (p.length != 0) {
|
|
138
|
+
let n = { name: t.name, resource: t.resource }, e = p.filter((o) => o.name != t.name);
|
|
139
|
+
e.push(n), u = e, await a.context.node.input(u);
|
|
140
|
+
} else
|
|
141
|
+
p.push({ name: t.name, resource: t.resource }), u = p, await a.context.node.input(u);
|
|
142
|
+
else {
|
|
143
|
+
if (t.resource === "invalid") return;
|
|
144
|
+
t === "erase" ? (await a.context.node.input({}), V(t)) : (u = { name: t.name, resource: t.resource }, await a.context.node.input(u));
|
|
145
|
+
}
|
|
146
|
+
V();
|
|
147
|
+
}
|
|
148
|
+
}, Z = async (t) => {
|
|
149
|
+
let n = t.target.value;
|
|
150
|
+
await J({ voc: _, text: n, base: x.api.baseUrl }).then((e) => {
|
|
151
|
+
const d = e.data.result.results.filter((l) => l.id !== "OP_DATPRO").map((l) => ({
|
|
152
|
+
name: M(l.pref_label, A.value, []) + " (" + l.id + ")",
|
|
153
|
+
resource: l.resource
|
|
154
|
+
}));
|
|
155
|
+
d.length === 0 ? b.value = { value: { name: K } } : b.value = d;
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
function ee(t) {
|
|
159
|
+
a.context.node.input({}), P("erase");
|
|
160
|
+
}
|
|
161
|
+
function F(t) {
|
|
162
|
+
x.content.dataProviderInterface.annifIntegration && C(), v.value.length > 0 && (p = v.value), p.splice(p.findIndex((n) => n.name == t.name), 1), u = p, a.context.node.input(u), V();
|
|
163
|
+
}
|
|
164
|
+
return (t, n) => (i(), r("div", pe, [
|
|
165
|
+
c(H) ? (i(), r("h4", me, m(t.$t("message.dataupload.distributions." + a.context.attrs.identifier + ".label")), 1)) : O("", !0),
|
|
166
|
+
a.context.attrs.identifier != "licence" && !c(H) ? (i(), r("h4", {
|
|
167
|
+
key: 1,
|
|
168
|
+
innerHTML: t.$t("message.dataupload.datasets." + a.context.attrs.identifier + ".label")
|
|
169
|
+
}, null, 8, ve)) : O("", !0),
|
|
170
|
+
s("div", he, [
|
|
171
|
+
s("div", ge, [
|
|
172
|
+
!a.context.attrs.multiple && a.context.value.name ? (i(), r("div", ye, [
|
|
173
|
+
s("a", xe, m(a.context.value.name), 1),
|
|
174
|
+
s("div", {
|
|
175
|
+
class: "removeX",
|
|
176
|
+
onClick: ee
|
|
177
|
+
})
|
|
178
|
+
])) : (i(), r("div", _e, [
|
|
179
|
+
s("div", ke, [
|
|
180
|
+
B(s("input", {
|
|
181
|
+
ref_key: "acInput",
|
|
182
|
+
ref: D,
|
|
183
|
+
class: "autocompleteInputfield",
|
|
184
|
+
placeholder: a.context.attrs.placeholder,
|
|
185
|
+
"onUpdate:modelValue": n[0] || (n[0] = (e) => $(y) ? y.value = e : y = e),
|
|
186
|
+
type: "text",
|
|
187
|
+
onKeyup: n[1] || (n[1] = (e) => Z(e)),
|
|
188
|
+
onClick: n[2] || (n[2] = (e) => $(f) ? f.value = !c(f) : f = !c(f))
|
|
189
|
+
}, null, 40, be), [
|
|
190
|
+
[le, c(y)]
|
|
191
|
+
])
|
|
192
|
+
]),
|
|
193
|
+
B(s("ul", {
|
|
194
|
+
ref_key: "dropdownList",
|
|
195
|
+
ref: j,
|
|
196
|
+
class: "autocompleteResultList"
|
|
197
|
+
}, [
|
|
198
|
+
(i(!0), r(L, null, T(c(b), (e) => (i(), r("li", {
|
|
199
|
+
key: e,
|
|
200
|
+
onClick: (o) => {
|
|
201
|
+
P(e), $(f) ? f.value = !c(f) : f = !c(f);
|
|
202
|
+
},
|
|
203
|
+
class: "p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC"
|
|
204
|
+
}, m(e.name), 9, we))), 128))
|
|
205
|
+
], 512), [
|
|
206
|
+
[oe, c(f)]
|
|
207
|
+
]),
|
|
208
|
+
c(x).content.dataProviderInterface.annifIntegration && a.context.attrs.annifTheme ? (i(), r("div", Ce, [
|
|
209
|
+
(i(!0), r(L, null, T(c(v), (e) => (i(), r("div", { key: e }, [
|
|
210
|
+
s("div", Ie, [
|
|
211
|
+
s("div", {
|
|
212
|
+
class: "d-flex",
|
|
213
|
+
onClick: (o) => {
|
|
214
|
+
e.activeValue = !e.activeValue;
|
|
215
|
+
}
|
|
216
|
+
}, [
|
|
217
|
+
s("span", null, m(e.name), 1),
|
|
218
|
+
s("div", {
|
|
219
|
+
class: "removeX",
|
|
220
|
+
onClick: (o) => F(e)
|
|
221
|
+
}, null, 8, Te)
|
|
222
|
+
], 8, Le)
|
|
223
|
+
])
|
|
224
|
+
]))), 128)),
|
|
225
|
+
s("div", Ae, [
|
|
226
|
+
s("div", Se, [
|
|
227
|
+
s("h3", null, m(t.$t("message.dataupload.info.suggestions")), 1),
|
|
228
|
+
s("span", null, m(t.$t("message.dataupload.info.suggestionText")), 1),
|
|
229
|
+
s("button", {
|
|
230
|
+
class: "navlikeButton",
|
|
231
|
+
type: "button",
|
|
232
|
+
onClick: n[3] || (n[3] = (e) => {
|
|
233
|
+
C(), c(E).value = !0;
|
|
234
|
+
})
|
|
235
|
+
}, m(t.$t("message.dataupload.info.tryIt")), 1)
|
|
236
|
+
]),
|
|
237
|
+
c(E).value ? (i(), r("div", Ve, [
|
|
238
|
+
(i(!0), r(L, null, T(c(S), (e) => (i(), r("div", {
|
|
239
|
+
key: e,
|
|
240
|
+
class: "d-flex"
|
|
241
|
+
}, [
|
|
242
|
+
s("div", {
|
|
243
|
+
class: se(["activeResultsAutocompleteWrapper annifResults", { loadMore: e.resource === "invalid" }]),
|
|
244
|
+
onClick: (o) => {
|
|
245
|
+
e.activeValue = !e.activeValue, Q(e);
|
|
246
|
+
}
|
|
247
|
+
}, [
|
|
248
|
+
s("div", Oe, [
|
|
249
|
+
s("span", null, m(e.name), 1)
|
|
250
|
+
])
|
|
251
|
+
], 10, Pe)
|
|
252
|
+
]))), 128))
|
|
253
|
+
])) : O("", !0)
|
|
254
|
+
])
|
|
255
|
+
])) : (i(), r("div", $e, [
|
|
256
|
+
(i(!0), r(L, null, T(a.context.value, (e) => (i(), r("div", {
|
|
257
|
+
class: "activeResultsAutocompleteWrapper",
|
|
258
|
+
key: e
|
|
259
|
+
}, [
|
|
260
|
+
s("span", null, m(e.name), 1),
|
|
261
|
+
s("div", {
|
|
262
|
+
class: "removeX",
|
|
263
|
+
onClick: (o) => F(e)
|
|
264
|
+
}, null, 8, Me)
|
|
265
|
+
]))), 128))
|
|
266
|
+
])),
|
|
267
|
+
s("div", {
|
|
268
|
+
innerHTML: a.context.attrs.info,
|
|
269
|
+
class: "formkit-help"
|
|
270
|
+
}, null, 8, Ne)
|
|
271
|
+
]))
|
|
272
|
+
])
|
|
273
|
+
])
|
|
274
|
+
]));
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
export {
|
|
278
|
+
Be as default
|
|
279
|
+
};
|
|
@@ -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
|
+
};
|