@piveau/piveau-hub-ui-modules 4.6.6 → 4.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. package/dist/data-provider-interface/composables/useFormSchema.d.ts +5 -1
  2. package/dist/data-provider-interface/composables/useFormSchema.mjs +28 -30
  3. package/dist/data-provider-interface/composables/useFormSchema.mjs.map +1 -1
  4. package/dist/data-provider-interface/utils/translation-helper.mjs +18 -19
  5. package/dist/data-provider-interface/utils/translation-helper.mjs.map +1 -1
  6. package/dist/data-provider-interface/views/InputPage.vue.mjs +60 -59
  7. package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
  8. package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.d.ts +1 -0
  9. package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs +45 -35
  10. package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs.map +1 -1
  11. package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue2.mjs +2 -2
  12. package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.d.ts +35 -0
  13. package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.mjs +102 -0
  14. package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.mjs.map +1 -0
  15. package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue2.mjs +5 -0
  16. package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue2.mjs.map +1 -0
  17. package/dist/piveau-hub-ui-modules.css +1 -1
  18. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"InputPage.vue.mjs","sources":["../../../lib/data-provider-interface/views/InputPage.vue"],"sourcesContent":["<template>\n <div class=\"form-container \">\n <div ref=\"fkInputContainer\" class=\"inputContainer\" v-if=\"isInput\">\n <div class=\"formContainer formkit position-relative\">\n\n <!-- <details>{{ formValues }}</details> -->\n <FormKit type=\"form\" v-model=\"formValues\" :actions=\"false\" :plugins=\"[stepPlugin]\" id=\"dpiForm\"\n @change=\"saveFormValues({ property: property, page: page, distid: id, values: formValues })\"\n @click=\"saveFormValues({ property: property, page: page, distid: id, values: formValues })\" @submit.prevent=\"\"\n class=\"d-flex\" >\n\n <div class=\"d-flex\">\n <ul class=\"steps\">\n <li v-for=\"(step, stepName, index) in steps\" :key=\"step\" class=\"step\"\n :data-step-active=\"activeStep === stepName\" :data-step-valid=\"step.valid && step.errorCount === 0\"\n :class=\"{ activeItem: activeStep === stepName, inactiveStep: stepName != activeStep, 'has-errors': checkStepValidity(stepName) }\"\n @click=\"activeStep = stepName; update(); scrollToTop()\">\n\n <div class=\"stepBubbleWrap\">\n <div class=\"circle stepCircle\">{{ index + 1 }}</div>\n <span v-if=\"checkStepValidity(stepName)\" class=\"step--errors\"\n v-text=\"step.errorCount + step.blockingCount\" />{{ $t('message.dataupload.steps.' + stepName +\n \"Step\")\n }}\n </div>\n <div v-if=\"index != Object.keys(steps).length\" class=\"seperatorHorizontalStepper\"></div>\n </li>\n <li class=\"step inactiveStep\" v-if=\"activeStep === 'Overview'\">\n <div class=\"circle stepCircle\"></div>\n </li>\n\n </ul>\n\n <div class=\"d-flex flex-column w-100\">\n <div v-for=\"(stepName, index) in getNavSteps($env.content.dataProviderInterface.specification)[property]\"\n :key=\"index\">\n <InputPageStep :name=\"stepName\">\n <div v-if=\"stepName !== 'Distributions' && stepName !== 'Overview'\"\n class=\"w-100 d-flex justify-content-between\">\n <h1 style=\"min-width:80%\">{{ $t('message.dataupload.steps.' + stepName) }}</h1>\n <a class=\"standardButtonDPI\" @click=\"dropdownCLick(); expandall = !expandall\"><span\n v-if=\"expandall\">{{ $t('message.dataupload.info.expand') }}</span>\n <span v-else>{{ $t('message.dataupload.info.hide') }}</span></a>\n </div>\n <hr v-if=\"stepName !== 'Distributions'\">\n <FormKitSchema v-if=\"stepName !== 'Distributions'\" :schema=\"getSchema(property).value[stepName]\"\n :library=\"library\" />\n <DistributionInputPage v-if=\"stepName === 'Distributions'\" :schema=\"getSchema('distributions').value\"\n :values=\"formValues\" />\n <p class=\"p-1\" v-if=\"stepName === 'Mandatory'\"> <b>*</b> {{ $t('message.dataupload.info.mandatory') }}\n </p>\n </InputPageStep>\n </div>\n </div>\n </div>\n\n <Navigation :steps=\"steps\" :nextStep=\"nextStep\" :previousStep=\"previousStep\" :goToNextStep=\"goToNextStep\"\n :goToPreviousStep=\"goToPreviousStep\"></Navigation>\n\n </FormKit>\n\n </div>\n </div>\n </div>\n</template>\n\n<script>\n/* eslint-disable no-alert,arrow-parens,no-param-reassign,no-lonely-if */\nimport { defineComponent, markRaw, computed } from 'vue';\nimport { mapActions, mapGetters } from 'vuex';\nimport $ from 'jquery';\nimport PropertyChooser from './PropertyChooser.vue'\nimport { has, isNil, isEmpty } from 'lodash';\nimport DistributionInputPage from './DistributionInputPage.vue';\nimport OverviewPage from './OverviewPage.vue';\nimport InputPageStep from '../components/InputPageStep.vue';\nimport Navigation from '../components/Navigation.vue';\nimport { useDpiStepper } from '../composables/useDpiStepper';\nimport { useWindowScroll } from '@vueuse/core'\nimport { plugin, defaultConfig } from '@formkit/vue'\nimport { useDpiContext, useFormSchema } from '../composables';\n\nexport default defineComponent({\n props: {\n property: {\n required: true,\n type: String,\n },\n id: {\n type: String,\n },\n },\n data() {\n return {\n heightActiveSec: \"10vh\",\n formValues: {},\n offsetTopStepper: \"60px\",\n info: {},\n catalogues: [],\n byte: true,\n expandall: true,\n // steps:{},\n camel2title: (str) =>\n str\n .replace(/([A-Z])/g, (match) => ` ${match}`)\n .replace(/^./, (match) => match.toUpperCase())\n .trim(),\n };\n },\n components: {\n InputPageStep,\n DistributionInputPage,\n PropertyChooser,\n Navigation\n },\n computed: {\n ...mapGetters('auth', [\n 'getIsEditMode',\n 'getUserCatalogIds',\n ]),\n ...mapGetters('dpiStore', [\n 'getNavSteps',\n 'getDeleteDistributionInline',\n ]),\n getTitleStep() {\n return Object.keys(this.formValues).filter(key => has(this.formValues[key], 'dct:title'))[0];\n },\n createIDFromTitle() {\n\n const title = this.formValues[this.getTitleStep]['dct:title'][0]['@value'];\n\n if (title != undefined) {\n return title\n .toLowerCase()\n .replace(/ /g, '-');\n }\n else return;\n },\n getFirstTitleFromForm() {\n const allValues = this.formValues[this.getTitleStep];\n\n return has(allValues, 'dct:title')\n && allValues['dct:title'].length > 0\n && has(allValues['dct:title'][0], '@value')\n && !isNil(allValues['dct:title'][0], '@value')\n ? allValues['dct:title'][0]['@value']\n : '';\n },\n isInput() {\n return this.$route.params.page !== 'overview' && this.$route.params.page !== 'distoverview';\n },\n },\n methods: {\n ...mapActions('auth', [\n 'setIsEditMode',\n 'setIsDraft',\n ]),\n ...mapActions('dpiStore', [\n 'saveFormValues',\n 'saveLocalstorageValues',\n 'clearAll',\n ]),\n update() {\n this.$forceUpdate();\n },\n dropdownCLick() {\n\n const h4Elements = document.querySelectorAll('.formkitProperty h4');\n\n if (this.expandall) {\n h4Elements.forEach((h4Element, index) => {\n h4Element.classList.add('dpiChevUp')\n h4Element.nextElementSibling.classList.remove('d-none')\n })\n }\n if (!this.expandall) {\n h4Elements.forEach((h4Element, index) => {\n h4Element.classList.remove('dpiChevUp')\n h4Element.nextElementSibling.classList.add('d-none')\n })\n\n }\n },\n clearForm() {\n this.$formkit.reset('dpi')\n },\n scrollToTop() {\n window.scrollTo(0, 0);\n },\n initInputPage() {\n // adding validation of modified and issued based on edit mode\n // no validation in edit mode\n\n // get step name where issued and modified are included\n const initialSchema = this.getSchema(this.property).value;\n const stepWithDates = Object.keys(initialSchema).find(\n key => initialSchema[key].map(el => el.name).includes('dct:issued') || initialSchema[key].map(el => el.name).includes('dct:modified')\n );\n\n \n \n this.$formkit.setLocale('de');\n // console.log(this.$formkit);\n \n\n // this.$formkit.getValidationMessages()\n if (localStorage.getItem('dpi_editmode') === 'true' && stepWithDates != undefined) {\n initialSchema[stepWithDates].forEach((el) => {\n if (el['identifier'] === 'issued' || el['identifier'] === 'modified') {\n el['children'][1]['props']['else']['validation'] = ''\n el['children'][1]['props']['else']['validation-visibility'] = ''\n\n el['children'][1]['props']['then']['validation'] = ''\n el['children'][1]['props']['then']['validation-visibility'] = ''\n el['children'][1]['props']['then']['validation'] = ''\n el['children'][1]['props']['then']['validation-visibility'] = ''\n }\n }\n );\n }\n\n if (localStorage.getItem('dpi_editmode') === 'false') {\n this.setIsDraft(false)\n this.setIsEditMode(false)\n }\n\n this.saveLocalstorageValues(this.property); // saves values from localStorage to vuex store\n const existingValues = this.$store.getters['dpiStore/getRawValues']({ property: this.property });\n\n\n // only overwrite empty object if there are values\n if (!isEmpty(existingValues)) this.formValues = existingValues;\n\n\n\n this.$nextTick(() => {\n $('[data-toggle=\"tooltip\"]').tooltip({\n container: 'body',\n });\n setTimeout(() => {\n const h4Elements = document.querySelectorAll('.formkitProperty h4');\n h4Elements.forEach((h4Element, index) => {\n // Added the clickeffect to the headers of the individual properties\n\n if (!h4Element.parentElement.parentElement.classList.contains('formkitWrapRepeatable')) {\n if (index != 0 && index != 1 && index != 2 && index != 3) {\n h4Element.nextElementSibling.classList.toggle('d-none')\n }\n h4Element.addEventListener('click', () => {\n h4Element.classList.toggle('dpiChevUp')\n h4Element.nextElementSibling.classList.toggle('d-none')\n });\n }\n })\n // Observe the validity of the individual properties\n const elements = document.querySelectorAll('.formkitProperty');\n const attributeChangedCallback = (mutationsList) => {\n for (const mutation of mutationsList) {\n\n if (mutation.type === 'attributes') {\n if (mutation.target.getAttribute('data-invalid') === 'true') {\n try {\n if (mutation.target.parentNode.parentNode.parentNode.previousElementSibling.tagName === 'H4') {\n mutation.target.parentNode.parentNode.parentNode.previousElementSibling.classList.add('isInvalidProperty')\n }\n } catch (error) { }\n try {\n if (mutation.target.previousElementSibling.tagName === 'H4') {\n mutation.target.previousElementSibling.classList.add('isInvalidProperty')\n }\n } catch (error) { }\n try {\n if (mutation.target.parentNode.previousElementSibling.tagName === 'H4') {\n mutation.target.parentNode.previousElementSibling.classList.add('isInvalidProperty')\n }\n } catch (error) { }\n }\n if (mutation.target.getAttribute('data-invalid') === null || mutation.target.getAttribute('data-invalid') === 'false') {\n try {\n if (mutation.target.parentNode.parentNode.parentNode.previousElementSibling.tagName === 'H4') {\n mutation.target.parentNode.parentNode.parentNode.previousElementSibling.classList.remove('isInvalidProperty')\n }\n } catch (error) { }\n try {\n if (mutation.target.previousElementSibling.tagName === 'H4') {\n mutation.target.previousElementSibling.classList.remove('isInvalidProperty')\n }\n } catch (error) { }\n try {\n if (mutation.target.parentNode.previousElementSibling.tagName === 'H4') {\n mutation.target.parentNode.previousElementSibling.classList.remove('isInvalidProperty')\n }\n } catch (error) { }\n }\n }\n }\n };\n // MutationObserver \n // const observer = new MutationObserver(attributeChangedCallback);\n // const config = { attributes: true };\n // let allMatchingElements = [];\n\n // elements.forEach((element, index) => {\n // const matchingChildren = element.querySelectorAll('.formkit-outer');\n // allMatchingElements = allMatchingElements.concat(Array.from(matchingChildren));\n // observer.observe(allMatchingElements[index], config);\n // });\n });\n });\n },\n createDatasetID() {\n const valueObject = this.formValues[this.getTitleStep];\n if (!has(valueObject, 'datasetID') || isNil(valueObject['datasetID'])) {\n // console.log('in if');\n this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle;\n }\n else {\n\n if (this.createIDFromTitle.startsWith(valueObject.datasetID) || valueObject.datasetID.startsWith(this.createIDFromTitle)) {\n // console.log('in else');\n this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle;\n }\n }\n },\n generateandTranslateSchema(property) {\n for (let index = 0; index < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[property].length; index++) {\n this.createSchema({ property: property, page: this.getNavSteps(this.$env.content.dataProviderInterface.specification)[property][index], specification: this.$env.content.dataProviderInterface.specification });\n this.translateSchema({ property: property, page: this.getNavSteps(this.$env.content.dataProviderInterface.specification)[property][index] });\n }\n },\n\n },\n created() {\n\n // Needs to be reworked\n if (this.$route.query.edit === 'false') {\n this.clearAll();\n // localStorage.clear();\n }\n\n // create schema for datasets or catalogues\n this.generateandTranslateSchema(this.property);\n\n // for datasets also create schema for distributions\n if (this.property === 'datasets') {\n this.generateandTranslateSchema('distributions');\n }\n },\n mounted() {\n this.initInputPage();\n\n },\n watch: {\n activeStep: {\n handler() {\n this.scrollToTop();\n },\n },\n getFirstTitleFromForm: {\n handler(newVal, oldVal) {\n if (newVal === oldVal) return\n if (localStorage.getItem('dpi_editmode') === 'false') {\n this.setIsDraft(false)\n this.setIsEditMode(false)\n }\n // only create id from title if the user is not editing an existing dataset with an existing datasetID\n if (!this.isEditMode) {\n this.createDatasetID();\n }\n },\n },\n // the schema is a computed value which gets computed only once so on language change this value must be re-computed\n '$i18n.locale': {\n handler() {\n this.generateandTranslateSchema(this.property);\n if (this.property === 'datasets') this.generateandTranslateSchema('distributions');\n }\n },\n },\n beforeRouteEnter(to, from, next) {\n // Always clear storage when entering DPI\n next(vm => {\n if (from.name && !from.name.startsWith('DataProviderInterface')) {\n vm.clearAll();\n }\n });\n },\n setup() {\n const dpiContext = useDpiContext();\n const {\n steps,\n activeStep,\n visitedSteps,\n previousStep,\n nextStep,\n stepPlugin,\n goToNextStep,\n goToPreviousStep,\n } = useDpiStepper();\n\n const { translateSchema, createSchema, getSchema } = useFormSchema();\n\n const scrollToTop = () => {\n let { x, y } = useWindowScroll({ behavior: 'smooth' })\n y.value = 0\n\n }\n\n const checkStepValidity = (stepName) => {\n return (steps[stepName].errorCount > 0 || steps[stepName].blockingCount > 0) && visitedSteps.value.includes(stepName)\n }\n\n const library = markRaw({ OverviewPage })\n\n const isEditMode = computed(() => {\n return !!dpiContext.value.edit?.enabled\n })\n\n\n return {\n steps,\n visitedSteps,\n activeStep,\n previousStep,\n nextStep,\n stepPlugin,\n checkStepValidity,\n goToNextStep,\n goToPreviousStep,\n scrollToTop,\n library,\n isEditMode,\n translateSchema,\n createSchema,\n getSchema,\n }\n }\n});\n</script>\n\n<style lang=\"scss\">\n.standardButtonDPI {\n background-color: #fff;\n color: #000;\n border-radius: 0.3em;\n font-size: 16px;\n padding: 0.75em;\n display: inline-flex;\n align-items: center;\n height: 50px;\n border: 1px solid lightgray;\n transition: all 100ms ease-in-out;\n cursor: pointer;\n\n &:hover {\n transform: scale(98%);\n background-color: #F4F4F4;\n border-color: gray;\n text-decoration: none;\n }\n}\n\n:root {\n --gray: #ccccd7;\n --gray-l: #eeeef4;\n}\n\n.formkit-form {\n max-width: 500px;\n flex-shrink: 0;\n margin-top: 1em;\n margin-bottom: 1em;\n background: #fff;\n color: #000;\n border: 1px solid var(--gray);\n border-radius: 0.5em;\n box-shadow: 0.25em 0.25em 1em 0 rgba(0, 0, 0, 0.1);\n}\n\n#app .source-content {\n padding: 2em;\n background: transparent;\n}\n\n.steps {\n list-style-type: none;\n margin: 0;\n display: flex;\n padding-left: 0;\n background: var(--gray-l);\n border-radius: 0.4em 0.4em 0 0;\n overflow: hidden;\n border-bottom: 1px solid var(--gray);\n}\n\n.step {\n font-size: 14px;\n display: flex;\n align-items: center;\n padding: 16px 20px;\n background: var(--gray-l);\n border-right: 1px solid var(--gray);\n color: gray;\n flex-grow: 0;\n flex-shrink: 0;\n position: relative;\n}\n\n.step:last-child {\n box-shadow: 0.1em -0.1 0.1em 0 rgba(0, 0, 0, 0.33)\n}\n\n.step:hover {\n cursor: pointer;\n}\n\n[data-step-active=\"true\"] {\n color: black;\n background: white !important;\n border-bottom: none;\n position: relative;\n}\n\n.step--errors,\n[data-step-valid=\"true\"]:after {\n content: '✓';\n background-color: #54A085;\n position: absolute;\n top: 4px;\n right: 4px;\n height: 18px;\n width: 18px;\n border-radius: 50%;\n z-index: 10;\n display: flex;\n font-size: 10px;\n flex-direction: column;\n justify-content: center;\n text-align: center;\n color: white;\n}\n\n.step--errors {\n background-color: #ff4949;\n color: #fff;\n z-index: 100;\n}\n\n.step-nav {\n display: flex;\n margin-top: 2em;\n margin-bottom: 1em;\n justify-content: space-between;\n}\n\n.form-body {\n padding: 2em;\n}\n\n.next {\n margin-left: auto;\n}\n\n.formkit-outer[data-type=\"submit\"] .formkit-wrapper {\n padding: 0 2em 1em 2em;\n display: flex;\n}\n\n.formkit-outer[data-type=\"submit\"] .formkit-input {\n margin-left: auto;\n margin-right: 0;\n}\n\ndetails {\n border: 1px solid var(--gray);\n background: var(--gray-l);\n border-radius: .15em;\n padding: 1em;\n}\n\n.formkit-form>.formkit-messages {\n padding: 0 2em 0em 2em;\n}\n\n.formkit-form>.formkit-messages:last-child {\n padding: 0 2em 2em 2em;\n}\n\n[data-errors=\"true\"] .formkit-label {\n color: #ff4949;\n}\n\n.formkit-wrapper {\n max-width: 100%;\n}\n\nbutton:hover,\nsummary {\n cursor: pointer\n}\n\n\n@media (max-width: 438px) {\n h1 {\n font-size: 1.15em;\n }\n\n #app .source-content {\n padding: 0.5em;\n }\n\n .steps {\n flex-direction: column;\n }\n\n .step {\n border-bottom: 1px solid var(--gray);\n border-right: none;\n }\n\n .step:last-child {\n border-bottom: none;\n }\n\n .form-body {\n padding: 1em;\n }\n\n .formkit-outer[data-type=\"submit\"] .formkit-wrapper {\n padding: 0 1em 1em 1em;\n display: flex;\n }\n\n .formkit-form>.formkit-messages {\n padding: 0 1em 0em 1em;\n }\n\n .formkit-form>.formkit-messages:last-child {\n padding: 0 1em 1em 1em;\n }\n}\n\n.repeatableWrap,\n.formkitCmpWrap {\n margin: 2rem 0 !important\n}\n\n.isInvalidProperty {\n background-color: #FFD9D9 !important;\n}\n\n.activeItem {\n flex-grow: 1;\n\n .seperatorHorizontalStepper {\n height: 100%;\n }\n}\n\nselect {\n\n line-height: unset !important;\n}\n\n.form-container {\n padding-top: 20px;\n margin-top: 30px;\n border: solid 1px #d5d5d5;\n border-radius: 3px;\n margin-bottom: 20px;\n}\n\n.inputContainer {\n display: flex;\n}\n\n.formContainer {\n width: 100% !important;\n}\n\n.distributionPage0 {\n display: block;\n}\n\n.distributionPage1 {\n display: none;\n}\n\n.distributionPage2 {\n display: none;\n}\n\n.grid2r2c {\n .formkit-input-group-repeatable {\n display: grid;\n grid-template-columns: 70% 28%;\n grid-template-rows: auto auto;\n grid-gap: 10px;\n background-color: transparent;\n }\n}\n\n.grid1r2c {\n .formkit-input-group-repeatable {\n display: grid;\n grid-template-columns: 70% 28%;\n grid-template-rows: auto;\n grid-gap: 10px;\n background-color: transparent;\n }\n}\n\n.row1 {\n grid-row-start: 1;\n grid-row-end: 2;\n}\n\n.row2 {\n grid-row-start: 2;\n grid-row-end: 3;\n}\n\n.grow3 {\n grid-row-start: 3;\n grid-row-end: 4;\n}\n\n.column1 {\n grid-column-start: 1;\n grid-column-end: 2;\n}\n\n.column2 {\n grid-column-start: 2;\n grid-column-end: 3;\n}\n\n.columnboth {\n grid-column-start: 1;\n grid-column-end: 3;\n}\n\n.display-none {\n display: none;\n}\n\n.activeSection {\n >.formkitProperty {\n >div {}\n }\n}\n\n.formkitCmpWrap {\n border-left: 1px solid lightgray;\n\n\n}\n\n.formkitProperty {\n\n >h4 {\n background-color: #f5f5f5;\n padding: 1rem;\n cursor: pointer;\n position: relative;\n transition: all ease-in-out 200ms;\n\n &:hover {\n\n background-color: lightgray;\n\n &:before {\n\n rotate: -45deg;\n }\n\n &:after {\n\n rotate: 45deg;\n }\n }\n\n &:before {\n transition: all ease-in-out 200ms;\n content: \"\";\n width: 15px;\n height: 1.5px;\n background-color: black;\n position: absolute;\n top: 30px;\n right: 15px;\n rotate: 45deg;\n }\n\n &:after {\n transition: all ease-in-out 200ms;\n content: \"\";\n width: 15px;\n height: 1.5px;\n background-color: black;\n position: absolute;\n top: 30px;\n right: 25px;\n rotate: -45deg;\n }\n }\n\n .formkitProperty {\n h4 {\n padding: 0;\n background-color: unset !important;\n\n &::before {\n display: none !important;\n }\n\n &:after {\n display: none !important;\n }\n }\n }\n}\n\n.dpiChevUp {\n\n &:before {\n\n rotate: -45deg !important;\n }\n\n &:after {\n\n rotate: 45deg !important;\n }\n\n\n\n}\n</style>\n"],"names":["_sfc_main","defineComponent","str","match","InputPageStep","DistributionInputPage","PropertyChooser","Navigation","mapGetters","key","has","title","allValues","isNil","mapActions","h4Elements","h4Element","index","initialSchema","stepWithDates","el","existingValues","isEmpty","$","valueObject","property","newVal","oldVal","to","from","next","vm","dpiContext","useDpiContext","steps","activeStep","visitedSteps","previousStep","nextStep","stepPlugin","goToNextStep","goToPreviousStep","useDpiStepper","translateSchema","createSchema","getSchema","useFormSchema","scrollToTop","x","y","useWindowScroll","checkStepValidity","stepName","library","markRaw","OverviewPage","isEditMode","computed","_a","_hoisted_1","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_12","_hoisted_14","_openBlock","_createElementBlock","_ctx","_hoisted_2","_createElementVNode","_createVNode","_component_FormKit","_cache","$event","_withModifiers","_withCtx","_Fragment","_renderList","step","_normalizeClass","_toDisplayString","_createTextVNode","_createCommentVNode","_hoisted_10","_hoisted_11","_component_InputPageStep","_hoisted_13","_hoisted_15","_hoisted_16","_hoisted_17","_createBlock","_component_FormKitSchema","_component_DistributionInputPage","_hoisted_18","_component_Navigation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFA,MAAKA,IAAaC,EAAa;AAAA,EAC7B,OAAO;AAAA,IACL,UAAU;AAAA,MACR,UAAU;AAAA,MACV,MAAM;AAAA,IACP;AAAA,IACD,IAAI;AAAA,MACF,MAAM;AAAA,IACP;AAAA,EACF;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,iBAAiB;AAAA,MACjB,YAAY,CAAE;AAAA,MACd,kBAAkB;AAAA,MAClB,MAAM,CAAE;AAAA,MACR,YAAY,CAAE;AAAA,MACd,MAAM;AAAA,MACN,WAAW;AAAA;AAAA,MAEX,aAAa,CAACC,MACZA,EACG,QAAQ,YAAY,CAACC,MAAU,IAAIA,CAAK,EAAE,EAC1C,QAAQ,MAAM,CAACA,MAAUA,EAAM,YAAW,CAAE,EAC5C,KAAM;AAAA;EAEd;AAAA,EACD,YAAY;AAAA,mBACVC;AAAAA,IACA,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;;;"}
1
+ {"version":3,"file":"InputPage.vue.mjs","sources":["../../../lib/data-provider-interface/views/InputPage.vue"],"sourcesContent":["<template>\n <div class=\"form-container \">\n <div ref=\"fkInputContainer\" class=\"inputContainer\" v-if=\"isInput\">\n <div class=\"formContainer formkit position-relative\">\n\n <!-- <details>{{ formValues }}</details> -->\n <FormKit type=\"form\" v-model=\"formValues\" :actions=\"false\" :plugins=\"[stepPlugin]\" id=\"dpiForm\"\n @change=\"saveFormValues({ property: property, page: page, distid: id, values: formValues })\"\n @click=\"saveFormValues({ property: property, page: page, distid: id, values: formValues })\" @submit.prevent=\"\"\n class=\"d-flex\" >\n\n <div class=\"d-flex\">\n <ul class=\"steps\">\n <li v-for=\"(step, stepName, index) in steps\" :key=\"step\" class=\"step\"\n :data-step-active=\"activeStep === stepName\" :data-step-valid=\"step.valid && step.errorCount === 0\"\n :class=\"{ activeItem: activeStep === stepName, inactiveStep: stepName != activeStep, 'has-errors': checkStepValidity(stepName) }\"\n @click=\"activeStep = stepName; update(); scrollToTop()\">\n\n <div class=\"stepBubbleWrap\">\n <div class=\"circle stepCircle\">{{ index + 1 }}</div>\n <span v-if=\"checkStepValidity(stepName)\" class=\"step--errors\"\n v-text=\"step.errorCount + step.blockingCount\" />{{ $t('message.dataupload.steps.' + stepName +\n \"Step\")\n }}\n </div>\n <div v-if=\"index != Object.keys(steps).length\" class=\"seperatorHorizontalStepper\"></div>\n </li>\n <li class=\"step inactiveStep\" v-if=\"activeStep === 'Overview'\">\n <div class=\"circle stepCircle\"></div>\n </li>\n\n </ul>\n\n <div class=\"d-flex flex-column w-100\">\n <div v-for=\"(stepName, index) in getNavSteps($env.content.dataProviderInterface.specification)[property]\"\n :key=\"index\">\n <InputPageStep :name=\"stepName\">\n <div v-if=\"stepName !== 'Distributions' && stepName !== 'Overview'\"\n class=\"w-100 d-flex justify-content-between\">\n <h1 style=\"min-width:80%\">{{ $t('message.dataupload.steps.' + stepName) }}</h1>\n <a class=\"standardButtonDPI\" @click=\"dropdownCLick(); expandall = !expandall\"><span\n v-if=\"expandall\">{{ $t('message.dataupload.info.expand') }}</span>\n <span v-else>{{ $t('message.dataupload.info.hide') }}</span></a>\n </div>\n <hr v-if=\"stepName !== 'Distributions'\">\n <FormKitSchema v-if=\"stepName !== 'Distributions'\" :schema=\"getSchema(property).value[stepName]\"\n :library=\"library\" />\n <DistributionInputPage v-if=\"stepName === 'Distributions'\" :schema=\"getSchema('distributions').value\"\n :values=\"formValues\" />\n <p class=\"p-1\" v-if=\"stepName === 'Mandatory'\"> <b>*</b> {{ $t('message.dataupload.info.mandatory') }}\n </p>\n </InputPageStep>\n </div>\n </div>\n </div>\n\n <Navigation :steps=\"steps\" :nextStep=\"nextStep\" :previousStep=\"previousStep\" :goToNextStep=\"goToNextStep\"\n :goToPreviousStep=\"goToPreviousStep\"></Navigation>\n\n </FormKit>\n\n </div>\n </div>\n </div>\n</template>\n\n<script>\n/* eslint-disable no-alert,arrow-parens,no-param-reassign,no-lonely-if */\nimport { defineComponent, markRaw, computed } from 'vue';\nimport { mapActions, mapGetters } from 'vuex';\nimport $ from 'jquery';\nimport PropertyChooser from './PropertyChooser.vue'\nimport { has, isNil, isEmpty } from 'lodash';\nimport DistributionInputPage from './DistributionInputPage.vue';\nimport OverviewPage from './OverviewPage.vue';\nimport InputPageStep from '../components/InputPageStep.vue';\nimport Navigation from '../components/Navigation.vue';\nimport { useDpiStepper } from '../composables/useDpiStepper';\nimport { useWindowScroll } from '@vueuse/core'\nimport { plugin, defaultConfig } from '@formkit/vue'\nimport { useDpiContext, useFormSchema } from '../composables';\nimport { useI18n } from 'vue-i18n'\n\nexport default defineComponent({\n props: {\n property: {\n required: true,\n type: String,\n },\n id: {\n type: String,\n },\n },\n data() {\n return {\n heightActiveSec: \"10vh\",\n formValues: {},\n offsetTopStepper: \"60px\",\n info: {},\n catalogues: [],\n byte: true,\n expandall: true,\n // steps:{},\n camel2title: (str) =>\n str\n .replace(/([A-Z])/g, (match) => ` ${match}`)\n .replace(/^./, (match) => match.toUpperCase())\n .trim(),\n };\n },\n components: {\n InputPageStep,\n DistributionInputPage,\n PropertyChooser,\n Navigation\n },\n computed: {\n ...mapGetters('auth', [\n 'getIsEditMode',\n 'getUserCatalogIds',\n ]),\n ...mapGetters('dpiStore', [\n 'getNavSteps',\n 'getDeleteDistributionInline',\n ]),\n getTitleStep() {\n return Object.keys(this.formValues).filter(key => has(this.formValues[key], 'dct:title'))[0];\n },\n createIDFromTitle() {\n\n const title = this.formValues[this.getTitleStep]['dct:title'][0]['@value'];\n\n if (title != undefined) {\n return title\n .toLowerCase()\n .replace(/ /g, '-');\n }\n else return;\n },\n getFirstTitleFromForm() {\n const allValues = this.formValues[this.getTitleStep];\n\n return has(allValues, 'dct:title')\n && allValues['dct:title'].length > 0\n && has(allValues['dct:title'][0], '@value')\n && !isNil(allValues['dct:title'][0], '@value')\n ? allValues['dct:title'][0]['@value']\n : '';\n },\n isInput() {\n return this.$route.params.page !== 'overview' && this.$route.params.page !== 'distoverview';\n },\n },\n methods: {\n ...mapActions('auth', [\n 'setIsEditMode',\n 'setIsDraft',\n ]),\n ...mapActions('dpiStore', [\n 'saveFormValues',\n 'saveLocalstorageValues',\n 'clearAll',\n ]),\n update() {\n this.$forceUpdate();\n },\n dropdownCLick() {\n\n const h4Elements = document.querySelectorAll('.formkitProperty h4');\n\n if (this.expandall) {\n h4Elements.forEach((h4Element, index) => {\n h4Element.classList.add('dpiChevUp')\n h4Element.nextElementSibling.classList.remove('d-none')\n })\n }\n if (!this.expandall) {\n h4Elements.forEach((h4Element, index) => {\n h4Element.classList.remove('dpiChevUp')\n h4Element.nextElementSibling.classList.add('d-none')\n })\n\n }\n },\n clearForm() {\n this.$formkit.reset('dpi')\n },\n scrollToTop() {\n window.scrollTo(0, 0);\n },\n initInputPage() {\n // adding validation of modified and issued based on edit mode\n // no validation in edit mode\n\n // get step name where issued and modified are included\n const initialSchema = this.getSchema(this.property).value;\n const stepWithDates = Object.keys(initialSchema).find(\n key => initialSchema[key].map(el => el.name).includes('dct:issued') || initialSchema[key].map(el => el.name).includes('dct:modified')\n );\n\n \n \n this.$formkit.setLocale('de');\n // console.log(this.$formkit);\n \n\n // this.$formkit.getValidationMessages()\n if (localStorage.getItem('dpi_editmode') === 'true' && stepWithDates != undefined) {\n initialSchema[stepWithDates].forEach((el) => {\n if (el['identifier'] === 'issued' || el['identifier'] === 'modified') {\n el['children'][1]['props']['else']['validation'] = ''\n el['children'][1]['props']['else']['validation-visibility'] = ''\n\n el['children'][1]['props']['then']['validation'] = ''\n el['children'][1]['props']['then']['validation-visibility'] = ''\n el['children'][1]['props']['then']['validation'] = ''\n el['children'][1]['props']['then']['validation-visibility'] = ''\n }\n }\n );\n }\n\n if (localStorage.getItem('dpi_editmode') === 'false') {\n this.setIsDraft(false)\n this.setIsEditMode(false)\n }\n\n this.saveLocalstorageValues(this.property); // saves values from localStorage to vuex store\n const existingValues = this.$store.getters['dpiStore/getRawValues']({ property: this.property });\n\n\n // only overwrite empty object if there are values\n if (!isEmpty(existingValues)) this.formValues = existingValues;\n\n\n\n this.$nextTick(() => {\n $('[data-toggle=\"tooltip\"]').tooltip({\n container: 'body',\n });\n setTimeout(() => {\n const h4Elements = document.querySelectorAll('.formkitProperty h4');\n h4Elements.forEach((h4Element, index) => {\n // Added the clickeffect to the headers of the individual properties\n\n if (!h4Element.parentElement.parentElement.classList.contains('formkitWrapRepeatable')) {\n if (index != 0 && index != 1 && index != 2 && index != 3) {\n h4Element.nextElementSibling.classList.toggle('d-none')\n }\n h4Element.addEventListener('click', () => {\n h4Element.classList.toggle('dpiChevUp')\n h4Element.nextElementSibling.classList.toggle('d-none')\n });\n }\n })\n // Observe the validity of the individual properties\n const elements = document.querySelectorAll('.formkitProperty');\n const attributeChangedCallback = (mutationsList) => {\n for (const mutation of mutationsList) {\n\n if (mutation.type === 'attributes') {\n if (mutation.target.getAttribute('data-invalid') === 'true') {\n try {\n if (mutation.target.parentNode.parentNode.parentNode.previousElementSibling.tagName === 'H4') {\n mutation.target.parentNode.parentNode.parentNode.previousElementSibling.classList.add('isInvalidProperty')\n }\n } catch (error) { }\n try {\n if (mutation.target.previousElementSibling.tagName === 'H4') {\n mutation.target.previousElementSibling.classList.add('isInvalidProperty')\n }\n } catch (error) { }\n try {\n if (mutation.target.parentNode.previousElementSibling.tagName === 'H4') {\n mutation.target.parentNode.previousElementSibling.classList.add('isInvalidProperty')\n }\n } catch (error) { }\n }\n if (mutation.target.getAttribute('data-invalid') === null || mutation.target.getAttribute('data-invalid') === 'false') {\n try {\n if (mutation.target.parentNode.parentNode.parentNode.previousElementSibling.tagName === 'H4') {\n mutation.target.parentNode.parentNode.parentNode.previousElementSibling.classList.remove('isInvalidProperty')\n }\n } catch (error) { }\n try {\n if (mutation.target.previousElementSibling.tagName === 'H4') {\n mutation.target.previousElementSibling.classList.remove('isInvalidProperty')\n }\n } catch (error) { }\n try {\n if (mutation.target.parentNode.previousElementSibling.tagName === 'H4') {\n mutation.target.parentNode.previousElementSibling.classList.remove('isInvalidProperty')\n }\n } catch (error) { }\n }\n }\n }\n };\n // MutationObserver \n // const observer = new MutationObserver(attributeChangedCallback);\n // const config = { attributes: true };\n // let allMatchingElements = [];\n\n // elements.forEach((element, index) => {\n // const matchingChildren = element.querySelectorAll('.formkit-outer');\n // allMatchingElements = allMatchingElements.concat(Array.from(matchingChildren));\n // observer.observe(allMatchingElements[index], config);\n // });\n });\n });\n },\n createDatasetID() {\n const valueObject = this.formValues[this.getTitleStep];\n if (!has(valueObject, 'datasetID') || isNil(valueObject['datasetID'])) {\n // console.log('in if');\n this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle;\n }\n else {\n\n if (this.createIDFromTitle.startsWith(valueObject.datasetID) || valueObject.datasetID.startsWith(this.createIDFromTitle)) {\n // console.log('in else');\n this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle;\n }\n }\n },\n generateandTranslateSchema(property) {\n for (let index = 0; index < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[property].length; index++) {\n this.createSchema({ property: property, page: this.getNavSteps(this.$env.content.dataProviderInterface.specification)[property][index], specification: this.$env.content.dataProviderInterface.specification });\n this.translateSchema({ property: property, page: this.getNavSteps(this.$env.content.dataProviderInterface.specification)[property][index] });\n }\n },\n\n },\n created() {\n\n // Needs to be reworked\n if (this.$route.query.edit === 'false') {\n this.clearAll();\n // localStorage.clear();\n }\n\n // create schema for datasets or catalogues\n this.generateandTranslateSchema(this.property);\n\n // for datasets also create schema for distributions\n if (this.property === 'datasets') {\n this.generateandTranslateSchema('distributions');\n }\n },\n mounted() {\n this.initInputPage();\n\n },\n watch: {\n activeStep: {\n handler() {\n this.scrollToTop();\n },\n },\n getFirstTitleFromForm: {\n handler(newVal, oldVal) {\n if (newVal === oldVal) return\n if (localStorage.getItem('dpi_editmode') === 'false') {\n this.setIsDraft(false)\n this.setIsEditMode(false)\n }\n // only create id from title if the user is not editing an existing dataset with an existing datasetID\n if (!this.isEditMode) {\n this.createDatasetID();\n }\n },\n },\n // the schema is a computed value which gets computed only once so on language change this value must be re-computed\n '$i18n.locale': {\n handler() {\n this.generateandTranslateSchema(this.property);\n if (this.property === 'datasets') this.generateandTranslateSchema('distributions');\n }\n },\n },\n beforeRouteEnter(to, from, next) {\n // Always clear storage when entering DPI\n next(vm => {\n if (from.name && !from.name.startsWith('DataProviderInterface')) {\n vm.clearAll();\n }\n });\n },\n setup() {\n const dpiContext = useDpiContext();\n const {\n steps,\n activeStep,\n visitedSteps,\n previousStep,\n nextStep,\n stepPlugin,\n goToNextStep,\n goToPreviousStep,\n } = useDpiStepper();\n const { t, te } = useI18n()\n\n const { translateSchema, createSchema, getSchema } = useFormSchema({ t, te });\n\n const scrollToTop = () => {\n let { x, y } = useWindowScroll({ behavior: 'smooth' })\n y.value = 0\n\n }\n\n const checkStepValidity = (stepName) => {\n return (steps[stepName].errorCount > 0 || steps[stepName].blockingCount > 0) && visitedSteps.value.includes(stepName)\n }\n\n const library = markRaw({ OverviewPage })\n\n const isEditMode = computed(() => {\n return !!dpiContext.value.edit?.enabled\n })\n\n\n return {\n steps,\n visitedSteps,\n activeStep,\n previousStep,\n nextStep,\n stepPlugin,\n checkStepValidity,\n goToNextStep,\n goToPreviousStep,\n scrollToTop,\n library,\n isEditMode,\n translateSchema,\n createSchema,\n getSchema,\n }\n }\n});\n</script>\n\n<style lang=\"scss\">\n.standardButtonDPI {\n background-color: #fff;\n color: #000;\n border-radius: 0.3em;\n font-size: 16px;\n padding: 0.75em;\n display: inline-flex;\n align-items: center;\n height: 50px;\n border: 1px solid lightgray;\n transition: all 100ms ease-in-out;\n cursor: pointer;\n\n &:hover {\n transform: scale(98%);\n background-color: #F4F4F4;\n border-color: gray;\n text-decoration: none;\n }\n}\n\n:root {\n --gray: #ccccd7;\n --gray-l: #eeeef4;\n}\n\n.formkit-form {\n max-width: 500px;\n flex-shrink: 0;\n margin-top: 1em;\n margin-bottom: 1em;\n background: #fff;\n color: #000;\n border: 1px solid var(--gray);\n border-radius: 0.5em;\n box-shadow: 0.25em 0.25em 1em 0 rgba(0, 0, 0, 0.1);\n}\n\n#app .source-content {\n padding: 2em;\n background: transparent;\n}\n\n.steps {\n list-style-type: none;\n margin: 0;\n display: flex;\n padding-left: 0;\n background: var(--gray-l);\n border-radius: 0.4em 0.4em 0 0;\n overflow: hidden;\n border-bottom: 1px solid var(--gray);\n}\n\n.step {\n font-size: 14px;\n display: flex;\n align-items: center;\n padding: 16px 20px;\n background: var(--gray-l);\n border-right: 1px solid var(--gray);\n color: gray;\n flex-grow: 0;\n flex-shrink: 0;\n position: relative;\n}\n\n.step:last-child {\n box-shadow: 0.1em -0.1 0.1em 0 rgba(0, 0, 0, 0.33)\n}\n\n.step:hover {\n cursor: pointer;\n}\n\n[data-step-active=\"true\"] {\n color: black;\n background: white !important;\n border-bottom: none;\n position: relative;\n}\n\n.step--errors,\n[data-step-valid=\"true\"]:after {\n content: '✓';\n background-color: #54A085;\n position: absolute;\n top: 4px;\n right: 4px;\n height: 18px;\n width: 18px;\n border-radius: 50%;\n z-index: 10;\n display: flex;\n font-size: 10px;\n flex-direction: column;\n justify-content: center;\n text-align: center;\n color: white;\n}\n\n.step--errors {\n background-color: #ff4949;\n color: #fff;\n z-index: 100;\n}\n\n.step-nav {\n display: flex;\n margin-top: 2em;\n margin-bottom: 1em;\n justify-content: space-between;\n}\n\n.form-body {\n padding: 2em;\n}\n\n.next {\n margin-left: auto;\n}\n\n.formkit-outer[data-type=\"submit\"] .formkit-wrapper {\n padding: 0 2em 1em 2em;\n display: flex;\n}\n\n.formkit-outer[data-type=\"submit\"] .formkit-input {\n margin-left: auto;\n margin-right: 0;\n}\n\ndetails {\n border: 1px solid var(--gray);\n background: var(--gray-l);\n border-radius: .15em;\n padding: 1em;\n}\n\n.formkit-form>.formkit-messages {\n padding: 0 2em 0em 2em;\n}\n\n.formkit-form>.formkit-messages:last-child {\n padding: 0 2em 2em 2em;\n}\n\n[data-errors=\"true\"] .formkit-label {\n color: #ff4949;\n}\n\n.formkit-wrapper {\n max-width: 100%;\n}\n\nbutton:hover,\nsummary {\n cursor: pointer\n}\n\n\n@media (max-width: 438px) {\n h1 {\n font-size: 1.15em;\n }\n\n #app .source-content {\n padding: 0.5em;\n }\n\n .steps {\n flex-direction: column;\n }\n\n .step {\n border-bottom: 1px solid var(--gray);\n border-right: none;\n }\n\n .step:last-child {\n border-bottom: none;\n }\n\n .form-body {\n padding: 1em;\n }\n\n .formkit-outer[data-type=\"submit\"] .formkit-wrapper {\n padding: 0 1em 1em 1em;\n display: flex;\n }\n\n .formkit-form>.formkit-messages {\n padding: 0 1em 0em 1em;\n }\n\n .formkit-form>.formkit-messages:last-child {\n padding: 0 1em 1em 1em;\n }\n}\n\n.repeatableWrap,\n.formkitCmpWrap {\n margin: 2rem 0 !important\n}\n\n.isInvalidProperty {\n background-color: #FFD9D9 !important;\n}\n\n.activeItem {\n flex-grow: 1;\n\n .seperatorHorizontalStepper {\n height: 100%;\n }\n}\n\nselect {\n\n line-height: unset !important;\n}\n\n.form-container {\n padding-top: 20px;\n margin-top: 30px;\n border: solid 1px #d5d5d5;\n border-radius: 3px;\n margin-bottom: 20px;\n}\n\n.inputContainer {\n display: flex;\n}\n\n.formContainer {\n width: 100% !important;\n}\n\n.distributionPage0 {\n display: block;\n}\n\n.distributionPage1 {\n display: none;\n}\n\n.distributionPage2 {\n display: none;\n}\n\n.grid2r2c {\n .formkit-input-group-repeatable {\n display: grid;\n grid-template-columns: 70% 28%;\n grid-template-rows: auto auto;\n grid-gap: 10px;\n background-color: transparent;\n }\n}\n\n.grid1r2c {\n .formkit-input-group-repeatable {\n display: grid;\n grid-template-columns: 70% 28%;\n grid-template-rows: auto;\n grid-gap: 10px;\n background-color: transparent;\n }\n}\n\n.row1 {\n grid-row-start: 1;\n grid-row-end: 2;\n}\n\n.row2 {\n grid-row-start: 2;\n grid-row-end: 3;\n}\n\n.grow3 {\n grid-row-start: 3;\n grid-row-end: 4;\n}\n\n.column1 {\n grid-column-start: 1;\n grid-column-end: 2;\n}\n\n.column2 {\n grid-column-start: 2;\n grid-column-end: 3;\n}\n\n.columnboth {\n grid-column-start: 1;\n grid-column-end: 3;\n}\n\n.display-none {\n display: none;\n}\n\n.activeSection {\n >.formkitProperty {\n >div {}\n }\n}\n\n.formkitCmpWrap {\n border-left: 1px solid lightgray;\n\n\n}\n\n.formkitProperty {\n\n >h4 {\n background-color: #f5f5f5;\n padding: 1rem;\n cursor: pointer;\n position: relative;\n transition: all ease-in-out 200ms;\n\n &:hover {\n\n background-color: lightgray;\n\n &:before {\n\n rotate: -45deg;\n }\n\n &:after {\n\n rotate: 45deg;\n }\n }\n\n &:before {\n transition: all ease-in-out 200ms;\n content: \"\";\n width: 15px;\n height: 1.5px;\n background-color: black;\n position: absolute;\n top: 30px;\n right: 15px;\n rotate: 45deg;\n }\n\n &:after {\n transition: all ease-in-out 200ms;\n content: \"\";\n width: 15px;\n height: 1.5px;\n background-color: black;\n position: absolute;\n top: 30px;\n right: 25px;\n rotate: -45deg;\n }\n }\n\n .formkitProperty {\n h4 {\n padding: 0;\n background-color: unset !important;\n\n &::before {\n display: none !important;\n }\n\n &:after {\n display: none !important;\n }\n }\n }\n}\n\n.dpiChevUp {\n\n &:before {\n\n rotate: -45deg !important;\n }\n\n &:after {\n\n rotate: 45deg !important;\n }\n\n\n\n}\n</style>\n"],"names":["_sfc_main","defineComponent","str","match","InputPageStep","DistributionInputPage","PropertyChooser","Navigation","mapGetters","key","has","title","allValues","isNil","mapActions","h4Elements","h4Element","index","initialSchema","stepWithDates","el","existingValues","isEmpty","$","valueObject","property","newVal","oldVal","to","from","next","vm","dpiContext","useDpiContext","steps","activeStep","visitedSteps","previousStep","nextStep","stepPlugin","goToNextStep","goToPreviousStep","useDpiStepper","t","te","useI18n","translateSchema","createSchema","getSchema","useFormSchema","scrollToTop","x","y","useWindowScroll","checkStepValidity","stepName","library","markRaw","OverviewPage","isEditMode","computed","_a","_hoisted_1","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_12","_hoisted_14","_openBlock","_createElementBlock","_ctx","_hoisted_2","_createElementVNode","_createVNode","_component_FormKit","_cache","$event","_withModifiers","_withCtx","_Fragment","_renderList","step","_normalizeClass","_toDisplayString","_createTextVNode","_createCommentVNode","_hoisted_10","_hoisted_11","_component_InputPageStep","_hoisted_13","_hoisted_15","_hoisted_16","_hoisted_17","_createBlock","_component_FormKitSchema","_component_DistributionInputPage","_hoisted_18","_component_Navigation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,MAAKA,KAAaC,EAAa;AAAA,EAC7B,OAAO;AAAA,IACL,UAAU;AAAA,MACR,UAAU;AAAA,MACV,MAAM;AAAA,IACP;AAAA,IACD,IAAI;AAAA,MACF,MAAM;AAAA,IACP;AAAA,EACF;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,iBAAiB;AAAA,MACjB,YAAY,CAAE;AAAA,MACd,kBAAkB;AAAA,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AAE,GAAA,mCAAA,CAAA,GAAA,CAAA;AAAA,4BAjDhFe,EAAA,IAAA,EAAA;AAAA;oBAAA,GAAA;AAAA;;;;YAAAV,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAS,EAAA;AAAA,YAwDUX,EACoDwB,GAAA;AAAA,cADvC,OAAO3B,EAAK;AAAA,cAAG,UAAUA,EAAQ;AAAA,cAAG,cAAcA,EAAY;AAAA,cAAG,cAAcA,EAAY;AAAA,cACrG,kBAAkBA,EAAgB;AAAA;;UAzD/C,GAAA;AAAA;;eAAAe,EAAA,IAAA,EAAA;AAAA;;;"}
@@ -42,5 +42,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
42
42
  LinkedDataButtonsDropdown: any;
43
43
  DistributionDownload: any;
44
44
  DistributionPreview: any;
45
+ DistributionVisualizeButton: any;
45
46
  }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
46
47
  export default _default;
@@ -1,15 +1,16 @@
1
- import v from "../../../widgets/AppLink.vue.mjs";
2
- import D from "./DistributionPreview.vue.mjs";
3
- import V from "./DistributionDownload.vue.mjs";
1
+ import V from "../../../widgets/AppLink.vue.mjs";
2
+ import D from "./DistributionVisualizeButton.vue.mjs";
3
+ import U from "./DistributionPreview.vue.mjs";
4
+ import g from "./DistributionDownload.vue.mjs";
4
5
  import p from "./LinkedDataButtonsDropdown.vue.mjs";
5
- import { mapGetters as U } from "vuex";
6
- import { has as g, isNil as u } from "lodash-es";
7
- import { resolveComponent as l, openBlock as s, createElementBlock as m, toDisplayString as F, createCommentVNode as r, createTextVNode as a, createBlock as c, createVNode as h, createElementVNode as y, withCtx as L } from "vue";
6
+ import { mapGetters as F } from "vuex";
7
+ import { has as _, isNil as d } from "lodash-es";
8
+ import { resolveComponent as a, openBlock as l, createElementBlock as L, createBlock as r, withCtx as m, createTextVNode as e, toDisplayString as h, createCommentVNode as u, createVNode as y, createElementVNode as B } from "vue";
8
9
  import "./DistributionActions.vue2.mjs";
9
- import B from "../../../_virtual/_plugin-vue_export-helper.mjs";
10
- const _ = {
10
+ import I from "../../../_virtual/_plugin-vue_export-helper.mjs";
11
+ const x = {
11
12
  name: "DistributionActions",
12
- components: { AppLink: v, LinkedDataButtonsDropdown: p, DistributionDownload: V, DistributionPreview: D },
13
+ components: { AppLink: V, LinkedDataButtonsDropdown: p, DistributionDownload: g, DistributionPreview: U, DistributionVisualizeButton: D },
13
14
  props: {
14
15
  distribution: Object,
15
16
  distributions: Object,
@@ -39,7 +40,7 @@ const _ = {
39
40
  };
40
41
  },
41
42
  computed: {
42
- ...U("datasetDetails", [
43
+ ...F("datasetDetails", [
43
44
  "getCatalog"
44
45
  ]),
45
46
  showValidateButton() {
@@ -53,24 +54,33 @@ const _ = {
53
54
  },
54
55
  methods: {
55
56
  showVisualisationLink(i) {
56
- var t, o, e;
57
- if (!g(i, "format.label") || u((t = i == null ? void 0 : i.format) == null ? void 0 : t.label) || u(i == null ? void 0 : i.downloadUrls[0]) && u(i == null ? void 0 : i.accessUrl[0]))
57
+ var t, o, s;
58
+ if (!_(i, "format.label") || d((t = i == null ? void 0 : i.format) == null ? void 0 : t.label) || d(i == null ? void 0 : i.downloadUrls[0]) && d(i == null ? void 0 : i.accessUrl[0]))
58
59
  return !1;
59
- const n = (e = (o = i == null ? void 0 : i.format) == null ? void 0 : o.id) == null ? void 0 : e.toLowerCase();
60
+ const n = (s = (o = i == null ? void 0 : i.format) == null ? void 0 : o.id) == null ? void 0 : s.toLowerCase();
60
61
  return n && this.visualisationLinkFormats.includes(n);
61
62
  }
62
63
  }
63
64
  }, C = { class: "d-flex flex-sm-row flex-md-column flex-lg-row justify-content-start justify-content-lg-end mt-2 text-md-right col text-left distribution-actions" };
64
- function x(i, n, t, o, e, d) {
65
- const w = l("distribution-preview"), b = l("distribution-download"), k = l("linked-data-buttons-dropdown"), f = l("app-link");
66
- return s(), m("div", C, [
67
- e.showVisualisationButton && d.showVisualisationLink(t.distribution) ? (s(), m("div", {
65
+ function O(i, n, t, o, s, c) {
66
+ const w = a("distribution-visualize-button"), b = a("distribution-preview"), f = a("distribution-download"), k = a("linked-data-buttons-dropdown"), v = a("app-link");
67
+ return l(), L("div", C, [
68
+ s.showVisualisationButton ? (l(), r(w, {
68
69
  key: 0,
69
70
  class: "distribution-action btn btn-sm visualise-btn pt-0",
70
- onClick: n[0] || (n[0] = (O) => i.$emit("displayVisualisation", t.getDownloadUrl))
71
- }, F(i.$t("message.datasetDetails.preview")), 1)) : r("", !0),
72
- n[2] || (n[2] = a()),
73
- !d.hidePreviewButton && i.getCatalog.is_part_of !== "erpd" && !e.showVisualisationButton ? (s(), c(w, {
71
+ onDisplayVisualisation: n[0] || (n[0] = (A) => i.$emit("displayVisualisation", t.getDownloadUrl)),
72
+ isUrlInvalid: t.isUrlInvalid,
73
+ getVisualisationLink: t.getVisualisationLink,
74
+ distribution: t.distribution,
75
+ openIfValidUrl: t.openIfValidUrl
76
+ }, {
77
+ default: m(() => [
78
+ e(h(i.$t("message.datasetDetails.preview")), 1)
79
+ ]),
80
+ _: 1
81
+ }, 8, ["isUrlInvalid", "getVisualisationLink", "distribution", "openIfValidUrl"])) : u("", !0),
82
+ n[2] || (n[2] = e()),
83
+ !c.hidePreviewButton && i.getCatalog.is_part_of !== "erpd" && !s.showVisualisationButton ? (l(), r(b, {
74
84
  key: 1,
75
85
  isUrlInvalid: t.isUrlInvalid,
76
86
  getVisualisationLink: t.getVisualisationLink,
@@ -78,9 +88,9 @@ function x(i, n, t, o, e, d) {
78
88
  openIfValidUrl: t.openIfValidUrl,
79
89
  previewLinkCallback: t.previewLinkCallback,
80
90
  class: "distribution-action"
81
- }, null, 8, ["isUrlInvalid", "getVisualisationLink", "distribution", "openIfValidUrl", "previewLinkCallback"])) : r("", !0),
82
- n[3] || (n[3] = a()),
83
- t.showDownloadDropdown(t.distribution) ? (s(), c(b, {
91
+ }, null, 8, ["isUrlInvalid", "getVisualisationLink", "distribution", "openIfValidUrl", "previewLinkCallback"])) : u("", !0),
92
+ n[3] || (n[3] = e()),
93
+ t.showDownloadDropdown(t.distribution) ? (l(), r(f, {
84
94
  key: 2,
85
95
  getDownloadUrl: t.getDownloadUrl,
86
96
  showAccessUrls: t.showAccessUrls,
@@ -90,32 +100,32 @@ function x(i, n, t, o, e, d) {
90
100
  replaceHttp: t.replaceHttp,
91
101
  distribution: t.distribution,
92
102
  class: "distribution-action distribution-download"
93
- }, null, 8, ["getDownloadUrl", "showAccessUrls", "isOnlyOneUrl", "trackGoto", "getDistributionFormat", "replaceHttp", "distribution"])) : r("", !0),
94
- n[4] || (n[4] = a()),
95
- h(k, {
103
+ }, null, 8, ["getDownloadUrl", "showAccessUrls", "isOnlyOneUrl", "trackGoto", "getDistributionFormat", "replaceHttp", "distribution"])) : u("", !0),
104
+ n[4] || (n[4] = e()),
105
+ y(k, {
96
106
  distributions: t.distributions,
97
107
  distribution: t.distribution,
98
108
  class: "distribution-action"
99
109
  }, null, 8, ["distributions", "distribution"]),
100
- n[5] || (n[5] = a()),
101
- y("div", null, [
102
- d.showValidateButton ? (s(), c(f, {
110
+ n[5] || (n[5] = e()),
111
+ B("div", null, [
112
+ c.showValidateButton ? (l(), r(v, {
103
113
  key: 0,
104
114
  class: "btn btn-sm validate-btn pt-0",
105
115
  to: { name: "DatasetDetailsQuality", query: { locale: i.$route.query.locale, validate: t.distribution.id } }
106
116
  }, {
107
- default: L(() => n[1] || (n[1] = [
108
- a(`
117
+ default: m(() => n[1] || (n[1] = [
118
+ e(`
109
119
  Validate
110
120
  `)
111
121
  ])),
112
122
  _: 1
113
- }, 8, ["to"])) : r("", !0)
123
+ }, 8, ["to"])) : u("", !0)
114
124
  ])
115
125
  ]);
116
126
  }
117
- const T = /* @__PURE__ */ B(_, [["render", x], ["__scopeId", "data-v-2baaa093"]]);
127
+ const S = /* @__PURE__ */ I(x, [["render", O], ["__scopeId", "data-v-105c9e17"]]);
118
128
  export {
119
- T as default
129
+ S as default
120
130
  };
121
131
  //# sourceMappingURL=DistributionActions.vue.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DistributionActions.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionActions.vue"],"sourcesContent":["<template>\n <div class=\"d-flex flex-sm-row flex-md-column flex-lg-row justify-content-start\n justify-content-lg-end mt-2 text-md-right col text-left distribution-actions\">\n <!-- button of new visualization tool -->\n <!-- <distribution-visualize-button v-if=\"showVisualisationButton && showVisualisationLink(distribution)\" class=\"distribution-action btn btn-sm visualise-btn pt-0\" @click=\"$emit('displayVisualisation', getDownloadUrl)\">{{ $t('message.datasetDetails.preview') }}</distribution-visualize-button> -->\n <div v-if=\"showVisualisationButton && showVisualisationLink(distribution)\" class=\"distribution-action btn btn-sm visualise-btn pt-0\" @click=\"$emit('displayVisualisation', getDownloadUrl)\">{{ $t('message.datasetDetails.preview') }}</div>\n <!-- TODO: remove distribution-preview button once the new visualisation service is online -->\n <distribution-preview v-if=\"!hidePreviewButton && getCatalog.is_part_of !== 'erpd' && !showVisualisationButton\" :isUrlInvalid=\"isUrlInvalid\"\n :getVisualisationLink=\"getVisualisationLink\" :distribution=\"distribution\" :openIfValidUrl=\"openIfValidUrl\"\n :previewLinkCallback=\"previewLinkCallback\" class=\"distribution-action\" />\n <distribution-download v-if=\"showDownloadDropdown(distribution)\" :getDownloadUrl=\"getDownloadUrl\"\n :showAccessUrls=\"showAccessUrls\" :isOnlyOneUrl=\"isOnlyOneUrl\" :trackGoto=\"trackGoto\"\n :getDistributionFormat=\"getDistributionFormat\" :replaceHttp=\"replaceHttp\" :distribution=\"distribution\"\n class=\"distribution-action distribution-download\" />\n <linked-data-buttons-dropdown :distributions=\"distributions\" :distribution=\"distribution\"\n class=\"distribution-action\" />\n <div>\n <app-link v-if=\"showValidateButton\" class=\"btn btn-sm validate-btn pt-0\"\n :to=\"{ name: 'DatasetDetailsQuality', query: { locale: $route.query.locale, validate: distribution.id } }\">\n Validate\n </app-link>\n </div>\n </div>\n</template>\n\n<script>\nimport AppLink from \"../../../widgets/AppLink\";\nimport DistributionPreview from \"../../../datasetDetails/distributions/distributionActions/DistributionPreview\";\nimport DistributionDownload from \"../../../datasetDetails/distributions/distributionActions/DistributionDownload\";\nimport LinkedDataButtonsDropdown\n from \"../../../datasetDetails/distributions/distributionActions/LinkedDataButtonsDropdown\";\nimport {mapGetters} from \"vuex\";\nimport {has, isNil} from \"lodash\";\n\nexport default {\n name: \"DistributionActions\",\n components: { AppLink, LinkedDataButtonsDropdown, DistributionDownload, DistributionPreview },\n props: {\n distribution: Object,\n distributions: Object,\n isUrlInvalid: Function,\n getVisualisationLink: Function,\n showTooltipVisualiseButton: Function,\n previewLinkCallback: Function,\n openIfValidUrl: Function,\n showDownloadDropdown: Function,\n getDownloadUrl: Function,\n showAccessUrls: Function,\n isOnlyOneUrl: Function,\n trackGoto: Function,\n getDistributionFormat: Function,\n replaceHttp: Function,\n },\n data() {\n return {\n showVisualisationButton: this.$env.content.datasetDetails.distributions.showVisualisation,\n visualisationLinkFormats: [\n 'csv',\n 'tsv',\n 'ods',\n 'xlsx',\n 'xls',\n ],\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getCatalog',\n ]),\n showValidateButton() {\n return this.$env?.content?.datasetDetails?.distributions?.showValidationButton;\n },\n hidePreviewButton() {\n // only returns true if the config variable hidePreviewButton exists and is set to true\n return this.$env?.content?.datasetDetails?.distributions?.hidePreviewButton;\n }\n },\n methods: {\n showVisualisationLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution?.format?.label)\n || (isNil(distribution?.downloadUrls[0]) && isNil(distribution?.accessUrl[0]))) return false;\n const f = distribution?.format?.id?.toLowerCase();\n return f && this.visualisationLinkFormats.includes(f);\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.validate-btn, .visualise-btn {\n color: #0e47cb;\n vertical-align: text-bottom;\n text-decoration: none;\n}\n</style>\n"],"names":["_sfc_main","AppLink","LinkedDataButtonsDropdown","DistributionDownload","DistributionPreview","mapGetters","_d","_c","_b","_a","distribution","has","isNil","f","_hoisted_1","_openBlock","_createElementBlock","$data","$options","$props","_cache","$event","_ctx","_createCommentVNode","_createTextVNode","_createBlock","_component_distribution_preview","_component_distribution_download","_createVNode","_component_linked_data_buttons_dropdown","_createElementVNode","_component_app_link","_withCtx"],"mappings":";;;;;;;;;AAkCA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY,EAAE,SAAAC,GAAS,2BAAAC,GAA2B,sBAAAC,GAAsB,qBAAAC,EAAqB;AAAA,EAC7F,OAAO;AAAA,IACL,cAAc;AAAA,IACd,eAAe;AAAA,IACf,cAAc;AAAA,IACd,sBAAsB;AAAA,IACtB,4BAA4B;AAAA,IAC5B,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,IAChB,sBAAsB;AAAA,IACtB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,WAAW;AAAA,IACX,uBAAuB;AAAA,IACvB,aAAa;AAAA,EACd;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,yBAAyB,KAAK,KAAK,QAAQ,eAAe,cAAc;AAAA,MACxE,0BAA0B;AAAA,QACxB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,IACH;AAAA,EACD;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,kBAAkB;AAAA,MAC9B;AAAA,IACF,CAAC;AAAA,IACD,qBAAqB;;AACnB,cAAOC,KAAAC,KAAAC,KAAAC,IAAA,KAAK,SAAL,gBAAAA,EAAW,YAAX,gBAAAD,EAAoB,mBAApB,gBAAAD,EAAoC,kBAApC,gBAAAD,EAAmD;AAAA,IAC3D;AAAA,IACD,oBAAoB;;AAElB,cAAOA,KAAAC,KAAAC,KAAAC,IAAA,KAAK,SAAL,gBAAAA,EAAW,YAAX,gBAAAD,EAAoB,mBAApB,gBAAAD,EAAoC,kBAApC,gBAAAD,EAAmD;AAAA,IAC5D;AAAA,EACD;AAAA,EACD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AA,qBAAqBA,EAAY,YAAA,UAA9DM,EAGsDE,GAAA;AAAA,MAb1D,KAAA;AAAA,MAUsE,gBAAgBR,EAAc;AAAA,MAC7F,gBAAgBA,EAAc;AAAA,MAAG,cAAcA,EAAY;AAAA,MAAG,WAAWA,EAAS;AAAA,MAClF,uBAAuBA,EAAqB;AAAA,MAAG,aAAaA,EAAW;AAAA,MAAG,cAAcA,EAAY;AAAA,MACrG,OAAM;AAAA,8IAbZI,EAAA,IAAA,EAAA;AAAA,IAAAH,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAI,EAAA;AAAA,IAcII,EACgCC,GAAA;AAAA,MADD,eAAeV,EAAa;AAAA,MAAG,cAAcA,EAAY;AAAA,MACtF,OAAM;AAAA;IAfZC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAI,EAAA;AAAA,IAgBIM,EAKM,OAAA,MAAA;AAAA,MAJYZ,EAAkB,2BAAlCO,EAGWM,GAAA;AAAA,QApBjB,KAAA;AAAA,QAiB0C,OAAM;AAAA,QACvC,IAAE,EAAA,MAAA,yBAAA,OAAA,EAAA,QAAoDT,SAAO,MAAM,QAAM,UAAYH,EAAY,aAAC,GAAE,EAAA;AAAA;QAlB7G,SAAAa,EAkBmH,MAE7GZ,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,UApBNI,EAkBmH;AAAA;AAAA,OAE7G;AAAA;QApBN,GAAA;AAAA,uBAAAD,EAAA,IAAA,EAAA;AAAA;;;;"}
1
+ {"version":3,"file":"DistributionActions.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionActions.vue"],"sourcesContent":["<template>\n <div class=\"d-flex flex-sm-row flex-md-column flex-lg-row justify-content-start\n justify-content-lg-end mt-2 text-md-right col text-left distribution-actions\">\n <!-- button of new visualization tool -->\n <distribution-visualize-button v-if=\"showVisualisationButton\" class=\"distribution-action btn btn-sm visualise-btn pt-0\" @displayVisualisation=\"$emit('displayVisualisation', getDownloadUrl)\" :isUrlInvalid=\"isUrlInvalid\"\n :getVisualisationLink=\"getVisualisationLink\" :distribution=\"distribution\" :openIfValidUrl=\"openIfValidUrl\">{{ $t('message.datasetDetails.preview') }}</distribution-visualize-button>\n <!-- TODO: remove distribution-preview button once the new visualisation service is online -->\n <distribution-preview v-if=\"!hidePreviewButton && getCatalog.is_part_of !== 'erpd' && !showVisualisationButton\" :isUrlInvalid=\"isUrlInvalid\"\n :getVisualisationLink=\"getVisualisationLink\" :distribution=\"distribution\" :openIfValidUrl=\"openIfValidUrl\"\n :previewLinkCallback=\"previewLinkCallback\" class=\"distribution-action\" />\n <distribution-download v-if=\"showDownloadDropdown(distribution)\" :getDownloadUrl=\"getDownloadUrl\"\n :showAccessUrls=\"showAccessUrls\" :isOnlyOneUrl=\"isOnlyOneUrl\" :trackGoto=\"trackGoto\"\n :getDistributionFormat=\"getDistributionFormat\" :replaceHttp=\"replaceHttp\" :distribution=\"distribution\"\n class=\"distribution-action distribution-download\" />\n <linked-data-buttons-dropdown :distributions=\"distributions\" :distribution=\"distribution\"\n class=\"distribution-action\" />\n <div>\n <app-link v-if=\"showValidateButton\" class=\"btn btn-sm validate-btn pt-0\"\n :to=\"{ name: 'DatasetDetailsQuality', query: { locale: $route.query.locale, validate: distribution.id } }\">\n Validate\n </app-link>\n </div>\n </div>\n</template>\n\n<script>\nimport AppLink from \"../../../widgets/AppLink\";\nimport DistributionVisualizeButton from \"../../../datasetDetails/distributions/distributionActions/DistributionVisualizeButton\";\nimport DistributionPreview from \"../../../datasetDetails/distributions/distributionActions/DistributionPreview\";\nimport DistributionDownload from \"../../../datasetDetails/distributions/distributionActions/DistributionDownload\";\nimport LinkedDataButtonsDropdown\n from \"../../../datasetDetails/distributions/distributionActions/LinkedDataButtonsDropdown\";\nimport {mapGetters} from \"vuex\";\nimport {has, isNil} from \"lodash\";\n\nexport default {\n name: \"DistributionActions\",\n components: { AppLink, LinkedDataButtonsDropdown, DistributionDownload, DistributionPreview, DistributionVisualizeButton },\n props: {\n distribution: Object,\n distributions: Object,\n isUrlInvalid: Function,\n getVisualisationLink: Function,\n showTooltipVisualiseButton: Function,\n previewLinkCallback: Function,\n openIfValidUrl: Function,\n showDownloadDropdown: Function,\n getDownloadUrl: Function,\n showAccessUrls: Function,\n isOnlyOneUrl: Function,\n trackGoto: Function,\n getDistributionFormat: Function,\n replaceHttp: Function,\n },\n data() {\n return {\n showVisualisationButton: this.$env.content.datasetDetails.distributions.showVisualisation,\n visualisationLinkFormats: [\n 'csv',\n 'tsv',\n 'ods',\n 'xlsx',\n 'xls',\n ],\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getCatalog',\n ]),\n showValidateButton() {\n return this.$env?.content?.datasetDetails?.distributions?.showValidationButton;\n },\n hidePreviewButton() {\n // only returns true if the config variable hidePreviewButton exists and is set to true\n return this.$env?.content?.datasetDetails?.distributions?.hidePreviewButton;\n }\n },\n methods: {\n showVisualisationLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution?.format?.label)\n || (isNil(distribution?.downloadUrls[0]) && isNil(distribution?.accessUrl[0]))) return false;\n const f = distribution?.format?.id?.toLowerCase();\n return f && this.visualisationLinkFormats.includes(f);\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.validate-btn {\n color: #0e47cb;\n vertical-align: text-bottom;\n text-decoration: none;\n}\n</style>\n"],"names":["_sfc_main","AppLink","LinkedDataButtonsDropdown","DistributionDownload","DistributionPreview","DistributionVisualizeButton","mapGetters","_d","_c","_b","_a","distribution","has","isNil","f","_hoisted_1","_openBlock","_createElementBlock","$data","_createBlock","_component_distribution_visualize_button","_cache","$event","_ctx","$props","_withCtx","_createTextVNode","_toDisplayString","_createCommentVNode","$options","_component_distribution_preview","_component_distribution_download","_createVNode","_component_linked_data_buttons_dropdown","_createElementVNode","_component_app_link"],"mappings":";;;;;;;;;;AAmCA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY,EAAE,SAAAC,GAAS,2BAAAC,GAA2B,s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gBA,EAAc;AAAA,MAAG,cAAcA,EAAY;AAAA,MAAG,WAAWA,EAAS;AAAA,MAClF,uBAAuBA,EAAqB;AAAA,MAAG,aAAaA,EAAW;AAAA,MAAG,cAAcA,EAAY;AAAA,MACrG,OAAM;AAAA,8IAbZI,EAAA,IAAA,EAAA;AAAA,IAAAP,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAK,EAAA;AAAA,IAcIM,EACgCC,GAAA;AAAA,MADD,eAAeT,EAAa;AAAA,MAAG,cAAcA,EAAY;AAAA,MACtF,OAAM;AAAA;IAfZH,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAK,EAAA;AAAA,IAgBIQ,EAKM,OAAA,MAAA;AAAA,MAJYL,EAAkB,2BAAlCV,EAGWgB,GAAA;AAAA,QApBjB,KAAA;AAAA,QAiB0C,OAAM;AAAA,QACvC,IAAE,EAAA,MAAA,yBAAA,OAAA,EAAA,QAAoDZ,SAAO,MAAM,QAAM,UAAYC,EAAY,aAAC,GAAE,EAAA;AAAA;QAlB7G,SAAAC,EAkBmH,MAE7GJ,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,UApBNK,EAkBmH;AAAA;AAAA,OAE7G;AAAA;QApBN,GAAA;AAAA,uBAAAE,EAAA,IAAA,EAAA;AAAA;;;;"}
@@ -1,5 +1,5 @@
1
- const _ = "";
1
+ const e = "";
2
2
  export {
3
- _ as default
3
+ e as default
4
4
  };
5
5
  //# sourceMappingURL=DistributionActions.vue2.mjs.map
@@ -0,0 +1,35 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ isUrlInvalid?: any;
3
+ distribution?: any;
4
+ getVisualisationLink?: any;
5
+ previewLinkCallback?: any;
6
+ openIfValidUrl?: any;
7
+ showTooltipVisualiseButton?: any;
8
+ }, {}, {
9
+ showVisualisationButton: any;
10
+ visualisationLinkFormats: string[];
11
+ geoLinkFormats: {
12
+ wms: string;
13
+ geojson: string;
14
+ fiware_cb: string;
15
+ 'fiware-cb': string;
16
+ };
17
+ geoLink: any;
18
+ }, {
19
+ getGeoLink(): any;
20
+ getCatalog: import('vuex').Computed;
21
+ getID: import('vuex').Computed;
22
+ }, {
23
+ showGeoLink(distribution: any): boolean;
24
+ showVisualisationLink(distribution: any): any;
25
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
26
+ isUrlInvalid?: any;
27
+ distribution?: any;
28
+ getVisualisationLink?: any;
29
+ previewLinkCallback?: any;
30
+ openIfValidUrl?: any;
31
+ showTooltipVisualiseButton?: any;
32
+ }> & Readonly<{}>, {}, {}, {
33
+ AppLink: any;
34
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
+ export default _default;
@@ -0,0 +1,102 @@
1
+ import g from "../../../widgets/AppLink.vue.mjs";
2
+ import { has as n, isNil as i } from "lodash-es";
3
+ import { mapGetters as k } from "vuex";
4
+ import { openBlock as r, createElementBlock as c, toDisplayString as m } from "vue";
5
+ import "./DistributionVisualizeButton.vue2.mjs";
6
+ import p from "../../../_virtual/_plugin-vue_export-helper.mjs";
7
+ const d = {
8
+ name: "DistributionVisualizeButton",
9
+ components: {
10
+ AppLink: g
11
+ },
12
+ props: [
13
+ "showTooltipVisualiseButton",
14
+ "isUrlInvalid",
15
+ "getVisualisationLink",
16
+ "distribution",
17
+ "openIfValidUrl",
18
+ "previewLinkCallback"
19
+ ],
20
+ data() {
21
+ var e, t, s, a;
22
+ return {
23
+ showVisualisationButton: (e = this.$env.content.datasetDetails.distributions) == null ? void 0 : e.showVisualisation,
24
+ visualisationLinkFormats: [
25
+ "csv",
26
+ "tsv",
27
+ "ods",
28
+ "xlsx",
29
+ "xls"
30
+ ],
31
+ geoLinkFormats: {
32
+ wms: "WMS",
33
+ geojson: "GeoJSON",
34
+ fiware_cb: "fiware_cb",
35
+ "fiware-cb": "fiware_cb"
36
+ },
37
+ geoLink: (a = (s = (t = this.$env) == null ? void 0 : t.datasetDetails) == null ? void 0 : s.distributions) == null ? void 0 : a.geoLink
38
+ };
39
+ },
40
+ computed: {
41
+ ...k("datasetDetails", [
42
+ "getCatalog",
43
+ "getID"
44
+ ]),
45
+ getGeoLink() {
46
+ var s;
47
+ let t = this.distribution.format.label.toLowerCase();
48
+ if (t = this.geoLinkFormats[t], this.geoLink) {
49
+ const a = {
50
+ catalog: this.getCatalog.id,
51
+ dataset: this.getID,
52
+ distribution: this.distribution.id,
53
+ type: t,
54
+ lang: this.$route.query.locale,
55
+ accessUrl: (s = this.distribution) == null ? void 0 : s.accessUrl[0]
56
+ };
57
+ for (let o in a)
58
+ this.geoLink = this.geoLink.replace(`{${o}}`, a[o]);
59
+ return this.geoLink;
60
+ }
61
+ return `/geo-viewer/?catalog=${this.getCatalog.id}&dataset=${this.getID}&distribution=${this.distribution.id}&type=${t}&lang=${this.$route.query.locale}`;
62
+ }
63
+ },
64
+ methods: {
65
+ showGeoLink(e) {
66
+ if (!n(e, "format.label") || i(e.format.label) || !n(e, "id") || i(e.id) || !n(e, "accessUrl[0]"))
67
+ return !1;
68
+ const t = e.format.label.toLowerCase();
69
+ return Object.keys(this.geoLinkFormats).includes(t);
70
+ },
71
+ showVisualisationLink(e) {
72
+ var s, a, o;
73
+ if (!n(e, "format.label") || i((s = e == null ? void 0 : e.format) == null ? void 0 : s.label) || i(e == null ? void 0 : e.downloadUrls[0]) && i(e == null ? void 0 : e.accessUrl[0]))
74
+ return !1;
75
+ const t = (o = (a = e == null ? void 0 : e.format) == null ? void 0 : a.id) == null ? void 0 : o.toLowerCase();
76
+ return t && this.visualisationLinkFormats.includes(t);
77
+ }
78
+ }
79
+ }, h = { class: "position-relative d-inline-block ml-1 mb-1" }, u = ["href"], w = {
80
+ key: 2,
81
+ class: "d-flex justify-content-between p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button text-opacity-0"
82
+ };
83
+ function L(e, t, s, a, o, l) {
84
+ return r(), c("div", h, [
85
+ o.showVisualisationButton && l.showVisualisationLink(s.distribution) ? (r(), c("div", {
86
+ key: 0,
87
+ class: "distribution-action btn btn-sm visualise-btn pt-0",
88
+ onClick: t[0] || (t[0] = (f) => e.$emit("displayVisualisation", e.getDownloadUrl))
89
+ }, m(e.$t("message.datasetDetails.preview")), 1)) : l.showGeoLink(s.distribution) ? (r(), c("a", {
90
+ key: 1,
91
+ onClick: t[1] || (t[1] = (f) => e.$emit("track-link", l.getGeoLink, "link")),
92
+ href: l.getGeoLink,
93
+ target: "_blank",
94
+ class: "d-flex justify-content-between btn btn-sm btn-primary p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button"
95
+ }, m(e.$t("message.datasetDetails.preview")), 9, u)) : (r(), c("span", w, m(e.$t("message.datasetDetails.preview")), 1))
96
+ ]);
97
+ }
98
+ const _ = /* @__PURE__ */ p(d, [["render", L], ["__scopeId", "data-v-fc58797b"]]);
99
+ export {
100
+ _ as default
101
+ };
102
+ //# sourceMappingURL=DistributionVisualizeButton.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DistributionVisualizeButton.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue"],"sourcesContent":["<template>\n <div class=\"position-relative d-inline-block ml-1 mb-1\">\n <div v-if=\"showVisualisationButton && showVisualisationLink(distribution)\" class=\"distribution-action btn btn-sm visualise-btn pt-0\" @click=\"$emit('displayVisualisation', getDownloadUrl)\">{{ $t('message.datasetDetails.preview') }}</div>\n <a @click=\"$emit('track-link', getGeoLink, 'link')\"\n v-else-if=\"showGeoLink(distribution)\"\n :href=\"getGeoLink\"\n target=\"_blank\"\n class=\"d-flex justify-content-between btn btn-sm btn-primary p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button\">\n {{ $t('message.datasetDetails.preview') }}\n </a>\n <span v-else class=\"d-flex justify-content-between p-0 pl-2 pr-2 w-100 rounded-lg btn-color dropdown-button text-opacity-0\">{{ $t('message.datasetDetails.preview') }}</span>\n </div>\n </template>\n <script>\n import AppLink from \"../../../widgets/AppLink\";\n import {has, isNil} from \"lodash\";\n import {mapGetters} from \"vuex\";\n \n export default {\n name: \"DistributionVisualizeButton\",\n components: {\n AppLink,\n },\n props: [\n 'showTooltipVisualiseButton',\n 'isUrlInvalid',\n 'getVisualisationLink',\n 'distribution',\n 'openIfValidUrl',\n 'previewLinkCallback'\n ],\n data() {\n return {\n showVisualisationButton: this.$env.content.datasetDetails.distributions?.showVisualisation,\n visualisationLinkFormats: [\n 'csv',\n 'tsv',\n 'ods',\n 'xlsx',\n 'xls',\n ],\n geoLinkFormats: {\n wms: 'WMS',\n geojson: 'GeoJSON',\n fiware_cb: 'fiware_cb',\n 'fiware-cb': 'fiware_cb',\n },\n geoLink: this.$env?.datasetDetails?.distributions?.geoLink,\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getCatalog',\n 'getID'\n ]),\n getGeoLink() {\n const format = this.distribution.format.label;\n let f = format.toLowerCase();\n // Use correct Case Sensitive strings\n f = this.geoLinkFormats[f];\n if (this.geoLink) {\n const geoLinkVariables = {\n catalog: this.getCatalog.id,\n dataset: this.getID,\n distribution: this.distribution.id,\n type: f,\n lang: this.$route.query.locale,\n accessUrl: this.distribution?.accessUrl[0],\n }\n // Inject variables into geo link\n for (let linkVariable in geoLinkVariables) {\n this.geoLink = this.geoLink.replace(`{${linkVariable}}`, geoLinkVariables[linkVariable]);\n }\n // Return Geo Visualisation Link\n return this.geoLink;\n // return `/geo-viewer/?dataset=${distributionID}&type=${f}&lang=${this.$route.query.locale}`;\n }\n // Return default Geo Visualisation Link if no link in user-config provided\n return `/geo-viewer/?catalog=${this.getCatalog.id}&dataset=${this.getID}&distribution=${this.distribution.id}&type=${f}&lang=${this.$route.query.locale}`;\n }\n },\n methods: {\n showGeoLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution.format.label) || !has(distribution, 'id') || isNil(distribution.id) || !has(distribution, 'accessUrl[0]')) return false;\n const f = distribution.format.label.toLowerCase();\n return Object.keys(this.geoLinkFormats).includes(f);\n },\n showVisualisationLink(distribution) {\n if (!has(distribution, 'format.label') || isNil(distribution?.format?.label)\n || (isNil(distribution?.downloadUrls[0]) && isNil(distribution?.accessUrl[0]))) return false;\n const f = distribution?.format?.id?.toLowerCase();\n return f && this.visualisationLinkFormats.includes(f);\n }\n }\n }\n </script>\n <style scoped lang=\"scss\">\n .disabled {\n cursor: not-allowed;\n pointer-events: none;\n text-decoration: none;\n color: gray;\n }\n .text-opacity-0 {\n opacity: 0;\n cursor: default!important;\n }\n\n .visualise-btn {\n color: #0e47cb;\n vertical-align: text-bottom;\n text-decoration: none;\n }\n </style>\n "],"names":["_sfc_main","AppLink","_a","_d","_c","_b","mapGetters","f","geoLinkVariables","linkVariable","distribution","has","isNil","_hoisted_1","_hoisted_2","_openBlock","_createElementBlock","$data","$options","$props","_cache","$event","_ctx","_toDisplayString","_hoisted_3"],"mappings":";;;;;;AAkBE,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,SAAAC;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAAA,EACD,OAAO;;AACL,WAAO;AAAA,MACL,0BAAyBC,IAAA,KAAK,KAAK,QAAQ,eAAe,kBAAjC,gBAAAA,EAAgD;AAAA,MACzE,0BAA0B;AAAA,QACxB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,MACD,gBAAgB;AAAA,QACd,KAAK;AAAA,QACL,SAAS;AAAA,QACT,WAAW;AAAA,QACX,aAAa;AAAA,MACd;AAAA,MACD,UAASC,KAAAC,KAAAC,IAAA,KAAK,SAAL,gBAAAA,EAAW,mBAAX,gBAAAD,EAA2B,kBAA3B,gBAAAD,EAA0C;AAAA;EAEtD;AAAA,EACD,UAAU;AAAA,IACR,GAAGG,EAAW,kBAAkB;AAAA,MAC9B;AAAA,MACA;AAAA,IACF,CA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A,gBAAAA,EAAc,WAAd,gBAAAL,EAAsB,OAAtB,gBAAAD,EAA0B;AACpC,aAAOG,KAAK,KAAK,yBAAyB,SAASA,CAAC;AAAA,IACtD;AAAA,EACF;AACF,GA7FOM,IAAA,EAAA,OAAM,6CAA4C,GAD3DC,IAAA,CAAA,MAAA;EAAA,KAAA;AAAA,EAUmB,OAAM;;;AATrB,SAAAC,EAAA,GAAAC,EAUM,OAVNH,GAUM;AAAA,IATOI,EAAuB,2BAAIC,EAAqB,sBAACC,EAAY,YAAA,UAAxEH,EAA4O,OAAA;AAAA,MAFlP,KAAA;AAAA,MAEiF,OAAM;AAAA,MAAqD,SAAKI,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEC,EAAK,MAAA,wBAAyBA,EAAc,cAAA;AAAA,SAAMA,EAAE,GAAA,gCAAA,CAAA,GAAA,CAAA,KAElLJ,EAAA,YAAYC,EAAY,YAAA,UADvCH,EAMI,KAAA;AAAA,MATV,KAAA;AAAA,MAGU,SAAKI,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEC,EAAK,MAAA,cAAeJ,EAAU,YAAA,MAAA;AAAA,MAEpC,MAAMA,EAAU;AAAA,MACjB,QAAO;AAAA,MACP,OAAM;AAAA,IACD,GAAAK,EAAAD,EAAA,GARf,gCAAA,CAAA,GAAA,GAAAR,CAAA,WAUME,EAA6K,QAA7KQ,GAA6KD,EAA9CD,EAAE,GAAA,gCAAA,CAAA,GAAA,CAAA;AAAA;;;"}
@@ -0,0 +1,5 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
5
+ //# sourceMappingURL=DistributionVisualizeButton.vue2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DistributionVisualizeButton.vue2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}