@piveau/piveau-hub-ui-modules 4.1.2 → 4.1.4

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 (35) hide show
  1. package/dist/data-provider-interface/DPIMenu.vue.mjs +21 -22
  2. package/dist/data-provider-interface/DPIMenu.vue.mjs.map +1 -1
  3. package/dist/data-provider-interface/DataProviderInterface.vue.mjs +8 -9
  4. package/dist/data-provider-interface/DataProviderInterface.vue.mjs.map +1 -1
  5. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +181 -47
  6. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
  7. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +33 -32
  8. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
  9. package/dist/data-provider-interface/components/FileUpload.vue.d.ts +3 -0
  10. package/dist/data-provider-interface/components/FileUpload.vue.mjs +146 -139
  11. package/dist/data-provider-interface/components/FileUpload.vue.mjs.map +1 -1
  12. package/dist/data-provider-interface/components/SimpleSelect.vue.mjs +52 -40
  13. package/dist/data-provider-interface/components/SimpleSelect.vue.mjs.map +1 -1
  14. package/dist/data-provider-interface/config/dcatap/format-types.mjs +3 -3
  15. package/dist/data-provider-interface/config/dcatap/format-types.mjs.map +1 -1
  16. package/dist/data-provider-interface/config/dcatap/input-definition.mjs +108 -86
  17. package/dist/data-provider-interface/config/dcatap/input-definition.mjs.map +1 -1
  18. package/dist/data-provider-interface/config/dcatapde/input-definition.mjs +3 -4
  19. package/dist/data-provider-interface/config/dcatapde/input-definition.mjs.map +1 -1
  20. package/dist/data-provider-interface/views/DraftsPage.vue.d.ts +13 -1
  21. package/dist/data-provider-interface/views/DraftsPage.vue.mjs +154 -111
  22. package/dist/data-provider-interface/views/DraftsPage.vue.mjs.map +1 -1
  23. package/dist/data-provider-interface/views/InputPage.vue.mjs +1 -1
  24. package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
  25. package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.mjs +27 -24
  26. package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.mjs.map +1 -1
  27. package/dist/form/Repeatable.vue.mjs +33 -33
  28. package/dist/form/Repeatable.vue.mjs.map +1 -1
  29. package/dist/form/inputDefinitions.mjs.map +1 -1
  30. package/dist/piveau-hub-ui-modules.css +1 -1
  31. package/dist/scss/_dpi-style.scss +17 -3
  32. package/dist/store/modules/authStore.d.ts +9 -0
  33. package/dist/store/modules/authStore.mjs +32 -24
  34. package/dist/store/modules/authStore.mjs.map +1 -1
  35. 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\" />{{ camel2title(stepName) }}\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%\">{{ stepName }} fields</h1>\n <a class=\"standardButtonDPI\" @click=\"dropdownCLick(); expandall = !expandall\"><span\n v-if=\"expandall\">Expand all</span>\n <span v-else>Hide all</span></a>\n </div>\n <hr v-if=\"stepName !== 'Distributions'\">\n <FormKitSchema v-if=\"stepName !== 'Distributions'\" :schema=\"getSchema(property)[stepName]\"\n :library=\"library\" />\n <DistributionInputPage v-if=\"stepName === 'Distributions'\" :schema=\"getSchema('distributions')\"\n :values=\"formValues\" />\n <p class=\"p-1\" v-if=\"stepName === 'Mandatory'\"> <b>*</b> mandatory</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 } 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'\n\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 'getSchema',\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 'createSchema',\n 'translateSchema',\n 'saveFormValues',\n 'saveLocalstorageValues',\n 'addCatalogOptions',\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 },\n clearForm() {\n this.$formkit.reset('dpi')\n },\n scrollToTop() {\n window.scrollTo(0, 0);\n },\n initInputPage() {\n\n\n\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);\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 if (localStorage.getItem('dpi_editmode') === 'true') {\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 // only overwrite empty object if there are values\n if (!isEmpty(existingValues)) this.formValues = existingValues;\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\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 watch: {\n activeStep: {\n handler() {\n this.scrollToTop();\n },\n },\n getFirstTitleFromForm: {\n handler() {\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.getIsEditMode) {\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 {\n steps,\n activeStep,\n visitedSteps,\n previousStep,\n nextStep,\n stepPlugin,\n goToNextStep,\n goToPreviousStep,\n } = useDpiStepper();\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 return {\n steps,\n visitedSteps,\n activeStep,\n previousStep,\n nextStep,\n stepPlugin,\n checkStepValidity,\n goToNextStep,\n goToPreviousStep,\n scrollToTop,\n library,\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","$","elements","attributeChangedCallback","mutationsList","mutation","observer","config","allMatchingElements","element","matchingChildren","valueObject","property","to","from","next","vm","steps","activeStep","visitedSteps","previousStep","nextStep","stepPlugin","goToNextStep","goToPreviousStep","useDpiStepper","scrollToTop","x","y","useWindowScroll","checkStepValidity","stepName","library","markRaw","OverviewPage","_hoisted_1","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_createElementVNode","_hoisted_12","_hoisted_14","_hoisted_16","_hoisted_21","_openBlock","_createElementBlock","_ctx","_hoisted_2","_createVNode","_component_FormKit","_cache","$event","_withModifiers","_withCtx","_Fragment","_renderList","step","_normalizeClass","_toDisplayString","_createTextVNode","_createCommentVNode","_hoisted_10","_hoisted_11","_hoisted_13","_component_InputPageStep","_hoisted_15","_hoisted_17","_hoisted_18","_hoisted_19","_createBlock","_component_FormKitSchema","_component_DistributionInputPage","_hoisted_20","_component_Navigation"],"mappings":";;;;;;;;;;;;;AA8EA,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;AA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,mBAAlBiB,KAAAC,EAAwC,MA1C1DuB,EAAA,KAAAR,EAAA,IAAA,EAAA;AAAA,sBAAAD,EAAA;AAAA,sBA2CuChC,MAAQ,wBAA7B0C,EACuBC,GAAA;AAAA,wBA5CzC,KAAA;AAAA,wBA2CsE,QAAQxB,EAAA,UAAUA,EAAA,QAAQ,EAAEnB,CAAQ;AAAA,wBACrF,SAASmB,EAAO;AAAA,4DA5CrCc,EAAA,IAAA,EAAA;AAAA,sBAAAD,EAAA;AAAA,sBA6C+ChC,MAAQ,wBAArC0C,EACyBE,GAAA;AAAA,wBA9C3C,KAAA;AAAA,wBA6C8E,QAAQzB,EAAS,UAAA,eAAA;AAAA,wBAC1E,QAAQA,EAAU;AAAA,2DA9CvCc,EAAA,IAAA,EAAA;AAAA,sBAAAD,EAAA;AAAA,sBA+CuChC,MAAQ,eAA7BiB,KAAAC,EAAsE,KAAtE2B,IAAsE;AAAA,wBAAtB7B;AAAA,wBA/ClEgB,EA+C0E,YAAU;AAAA,4BA/CpFC,EAAA,IAAA,EAAA;AAAA;oBAAA,GAAA;AAAA;;;;YAAAD,EAAA;AAAA,YAqDUX,EACoDyB,GAAA;AAAA,cADvC,OAAO3B,EAAK;AAAA,cAAG,UAAUA,EAAQ;AAAA,cAAG,cAAcA,EAAY;AAAA,cAAG,cAAcA,EAAY;AAAA,cACrG,kBAAkBA,EAAgB;AAAA;;UAtD/C,GAAA;AAAA;;eAAAc,EAAA,IAAA,EAAA;AAAA;;;"}
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\" />{{ camel2title(stepName) }}\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%\">{{ stepName }} fields</h1>\n <a class=\"standardButtonDPI\" @click=\"dropdownCLick(); expandall = !expandall\"><span\n v-if=\"expandall\">Expand all</span>\n <span v-else>Hide all</span></a>\n </div>\n <hr v-if=\"stepName !== 'Distributions'\">\n <FormKitSchema v-if=\"stepName !== 'Distributions'\" :schema=\"getSchema(property)[stepName]\"\n :library=\"library\" />\n <DistributionInputPage v-if=\"stepName === 'Distributions'\" :schema=\"getSchema('distributions')\"\n :values=\"formValues\" />\n <p class=\"p-1\" v-if=\"stepName === 'Mandatory'\"> <b>*</b> mandatory</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 } 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'\n\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 'getSchema',\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 'createSchema',\n 'translateSchema',\n 'saveFormValues',\n 'saveLocalstorageValues',\n 'addCatalogOptions',\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 },\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);\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 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\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 watch: {\n activeStep: {\n handler() {\n this.scrollToTop();\n },\n },\n getFirstTitleFromForm: {\n handler() {\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.getIsEditMode) {\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 {\n steps,\n activeStep,\n visitedSteps,\n previousStep,\n nextStep,\n stepPlugin,\n goToNextStep,\n goToPreviousStep,\n } = useDpiStepper();\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 return {\n steps,\n visitedSteps,\n activeStep,\n previousStep,\n nextStep,\n stepPlugin,\n checkStepValidity,\n goToNextStep,\n goToPreviousStep,\n scrollToTop,\n library,\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","$","elements","attributeChangedCallback","mutationsList","mutation","observer","config","allMatchingElements","element","matchingChildren","valueObject","property","to","from","next","vm","steps","activeStep","visitedSteps","previousStep","nextStep","stepPlugin","goToNextStep","goToPreviousStep","useDpiStepper","scrollToTop","x","y","useWindowScroll","checkStepValidity","stepName","library","markRaw","OverviewPage","_hoisted_1","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_createElementVNode","_hoisted_12","_hoisted_14","_hoisted_16","_hoisted_21","_openBlock","_createElementBlock","_ctx","_hoisted_2","_createVNode","_component_FormKit","_cache","$event","_withModifiers","_withCtx","_Fragment","_renderList","step","_normalizeClass","_toDisplayString","_createTextVNode","_createCommentVNode","_hoisted_10","_hoisted_11","_hoisted_13","_component_InputPageStep","_hoisted_15","_hoisted_17","_hoisted_18","_hoisted_19","_createBlock","_component_FormKitSchema","_component_DistributionInputPage","_hoisted_20","_component_Navigation"],"mappings":";;;;;;;;;;;;;AA8EA,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,uBAAAC;AAAAA,IACA,iBAAAC;AAAA,IACA,YAAAC;AAAA,EACD;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,QAAQ;AAAA,MACpB;AAAA,MACA;AAAA,IACF,CAAC;AAAA,IACD,GAAGA,EAAW,YAAY;AAAA,MACxB;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAAA,IACD,eAAe;AACb,aAAO,OAAO,KAAK,KAAK,UAAU,EAAE,OAAO,CAAAC,MAAOC,EAAI,KAAK,WAAWD,CAAG,GAAG,WAAW,CAAC,EAAE,CAAC;AAAA,IAC5F;AAAA,IACD,oBAAoB;AAElB,YAAME,IAAQ,KAAK,WAAW,KAAK,YAAY,EAAE,WAAW,EAAE,CAAC,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AD,EAAA;AAAA,YAqDUX,EACoDyB,GAAA;AAAA,cADvC,OAAO3B,EAAK;AAAA,cAAG,UAAUA,EAAQ;AAAA,cAAG,cAAcA,EAAY;AAAA,cAAG,cAAcA,EAAY;AAAA,cACrG,kBAAkBA,EAAgB;AAAA;;UAtD/C,GAAA;AAAA;;eAAAc,EAAA,IAAA,EAAA;AAAA;;;"}
@@ -1,19 +1,19 @@
1
1
  import m from "./PropertyEntry.vue.mjs";
2
2
  import { mapGetters as u } from "vuex";
3
- import { resolveComponent as v, openBlock as s, createElementBlock as o, createElementVNode as e, toDisplayString as i, createCommentVNode as r, createTextVNode as l, Fragment as _, renderList as h, createVNode as b } from "vue";
3
+ import { resolveComponent as v, openBlock as s, createElementBlock as l, createElementVNode as e, toDisplayString as i, createCommentVNode as r, createTextVNode as o, Fragment as _, renderList as h, createVNode as b } from "vue";
4
4
  import f from "../../../_virtual/_plugin-vue_export-helper.mjs";
5
5
  const y = {
6
6
  data() {
7
7
  return {
8
8
  tableProperties: {
9
9
  "dct:publisher": { type: "conditional", voc: "corporate-body", label: "message.metadata.publisher" },
10
- "foaf:homepage": { type: "singularURL", voc: "", label: "message.metadata.homepage" },
10
+ "foaf:homepage": { type: "singularURI", voc: "", label: "message.metadata.homepage" },
11
11
  "dct:language": { type: "multiURI", voc: "language", label: "message.metadata.languages" },
12
12
  "dct:license": { type: "singularURI", voc: "", label: "message.metadata.license" },
13
13
  "dct:spatial": { type: "special", voc: "", label: "message.metadata.spatial" },
14
14
  "dct:creator": { type: "special", voc: "", label: "message.metadata.creator" },
15
15
  "dct:hasPart": { type: "multiURL", voc: "", label: "message.dataupload.catalogues.hasPart.label" },
16
- "dct:isPartOf": { type: "singularURL", voc: "", label: "message.metadata.isPartOf" },
16
+ "dct:isPartOf": { type: "singularURI", voc: "", label: "message.metadata.isPartOf" },
17
17
  "dcat:catalog": { type: "multiURL", voc: "", label: "message.dataupload.catalogues.catalog.label" },
18
18
  "dct:rights": { type: "singularString", voc: "", label: "message.metadata.rights" }
19
19
  }
@@ -32,41 +32,44 @@ const y = {
32
32
  }
33
33
  }, L = {
34
34
  key: 0,
35
- class: "mt-2 mb-4"
36
- }, P = { class: "row" }, D = { class: "col-8 offset-1" }, R = {
35
+ class: "mt-4 mb-2"
36
+ }, P = { class: "row" }, D = { class: "col-8 offset-1" }, w = {
37
37
  key: 1,
38
38
  class: "mt-2"
39
- }, U = { class: "row" }, k = { class: "col-10 offset-1" }, w = /* @__PURE__ */ e("hr", null, null, -1), E = { class: "mt-5" }, N = { class: "row" }, S = { class: "col-10 offset-1 py-2 bg-white" }, V = { class: "heading" }, C = { class: "col-10 offset-1" }, I = { class: "table table-borderless table-responsive pl-3 bg-light" };
40
- function O(a, B, c, F, d, G) {
39
+ }, R = { class: "row" }, U = { class: "col-10 offset-1" }, k = /* @__PURE__ */ e("hr", null, null, -1), E = { class: "mt-5" }, I = { class: "row" }, N = { class: "col-10 offset-1 py-2 bg-white" }, O = { class: "heading" }, S = { class: "col-10 offset-1" }, V = { class: "table table-borderless table-responsive pl-3 bg-light" };
40
+ function C(a, B, c, T, d, F) {
41
41
  const n = v("PropertyEntry");
42
- return s(), o("div", null, [
43
- a.getData("catalogues")["dct:title"] ? (s(), o("div", L, [
42
+ return s(), l("div", null, [
43
+ a.getData("catalogues")["dct:title"] ? (s(), l("div", L, [
44
44
  e("div", P, [
45
45
  e("div", D, [
46
46
  e("h2", null, i(a.getData("catalogues")["dct:title"].filter((t) => t["@language"] === c.dpiLocale).map((t) => t["@value"])[0]), 1)
47
47
  ])
48
48
  ])
49
49
  ])) : r("", !0),
50
- l(),
51
- a.getData("catalogues")["dct:description"] ? (s(), o("div", R, [
52
- e("div", U, [
53
- e("div", k, [
50
+ o(),
51
+ a.getData("catalogues")["dct:description"] ? (s(), l("div", w, [
52
+ e("div", R, [
53
+ e("div", U, [
54
54
  e("p", null, i(a.getData("catalogues")["dct:description"].filter((t) => t["@language"] === c.dpiLocale).map((t) => t["@value"])[0]), 1)
55
55
  ])
56
56
  ]),
57
- l(),
58
- w
57
+ o(),
58
+ k
59
59
  ])) : r("", !0),
60
- l(),
60
+ o(),
61
61
  e("div", E, [
62
- e("div", N, [
63
- e("div", S, [
64
- e("h2", V, i(a.$t("message.datasetDetails.additionalInfo")), 1)
62
+ e("div", I, [
63
+ e("div", N, [
64
+ e("h2", O, i(a.$t("message.datasetDetails.additionalInfo")), 1)
65
65
  ]),
66
- l(),
67
- e("div", C, [
68
- e("table", I, [
69
- (s(!0), o(_, null, h(d.tableProperties, (t, p, g) => (s(), o("div", { key: g }, [
66
+ o(),
67
+ e("div", S, [
68
+ e("table", V, [
69
+ (s(!0), l(_, null, h(d.tableProperties, (t, p, g) => (s(), l("div", {
70
+ key: g,
71
+ class: "catOverviewTable"
72
+ }, [
70
73
  b(n, {
71
74
  data: a.getData("catalogues"),
72
75
  profile: "catalogues",
@@ -81,7 +84,7 @@ function O(a, B, c, F, d, G) {
81
84
  ])
82
85
  ]);
83
86
  }
84
- const z = /* @__PURE__ */ f(y, [["render", O]]);
87
+ const z = /* @__PURE__ */ f(y, [["render", C]]);
85
88
  export {
86
89
  z as default
87
90
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CatalogueOverview.vue.mjs","sources":["../../../../lib/data-provider-interface/views/OverviewPage/CatalogueOverview.vue"],"sourcesContent":["<template>\n <div>\n <!-- TITLE -->\n <div class=\"mt-2 mb-4\" v-if=\"getData('catalogues')['dct:title']\">\n <div class=\"row\">\n <div class=\"col-8 offset-1\">\n <h2>\n {{getData('catalogues')['dct:title'].filter(el => el['@language'] === dpiLocale).map(el => el['@value'])[0]}}\n </h2>\n </div>\n </div>\n </div>\n\n <!-- DESCRIPTION -->\n <div class=\"mt-2\" v-if=\"getData('catalogues')['dct:description']\">\n <div class=\"row\">\n <div class=\"col-10 offset-1\">\n <p>\n {{getData('catalogues')['dct:description'].filter(el => el['@language'] === dpiLocale).map(el => el['@value'])[0]}}\n </p>\n </div>\n </div>\n <hr>\n </div>\n\n <!-- INFO TABLE -->\n <div class=\"mt-5\">\n <div class=\"row\">\n <div class=\"col-10 offset-1 py-2 bg-white\">\n <h2 class=\"heading\">{{ $t('message.datasetDetails.additionalInfo') }}</h2>\n </div>\n <div class=\"col-10 offset-1\">\n <table class=\"table table-borderless table-responsive pl-3 bg-light\">\n\n <div v-for=\"(value, name, index) in tableProperties\" :key=\"index\">\n <PropertyEntry :data=\"getData('catalogues')\" profile=\"catalogues\" :property=\"name\" :value=\"value\" :dpiLocale=\"dpiLocale\"></PropertyEntry>\n </div>\n\n </table>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport PropertyEntry from './PropertyEntry.vue';\nimport { mapGetters } from 'vuex';\n\nexport default {\n data() {\n return {\n tableProperties: {\n 'dct:publisher': {type: 'conditional', voc: 'corporate-body', label: 'message.metadata.publisher' },\n 'foaf:homepage': {type: 'singularURL', voc: '', label: 'message.metadata.homepage'},\n 'dct:language': { type: 'multiURI', voc: 'language', label: 'message.metadata.languages' },\n 'dct:license': {type: 'singularURI', voc: '', label: 'message.metadata.license'},\n 'dct:spatial': { type: 'special', voc: '', label: 'message.metadata.spatial' },\n 'dct:creator': {type: 'special', voc: '', label: 'message.metadata.creator'},\n 'dct:hasPart': {type: 'multiURL', voc: '', label:'message.dataupload.catalogues.hasPart.label'},\n 'dct:isPartOf': {type: 'singularURL', voc: '', label:'message.metadata.isPartOf'},\n 'dcat:catalog': {type: 'multiURL', voc: '', label:'message.dataupload.catalogues.catalog.label'},\n 'dct:rights': {type: 'singularString', voc: '', label:'message.metadata.rights'},\n }\n }\n },\n props: {\n dpiLocale: String,\n },\n components: {\n PropertyEntry,\n },\n computed: {\n ...mapGetters('dpiStore', [\n 'getData',\n ]),\n }\n}\n</script>\n\n<style>\n\n</style>"],"names":["_sfc_main","PropertyEntry","mapGetters","_hoisted_2","_hoisted_3","_hoisted_5","_hoisted_6","_createElementVNode","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_createElementBlock","_ctx","_openBlock","_hoisted_1","_toDisplayString","el","$props","_createCommentVNode","_createTextVNode","_hoisted_4","_hoisted_7","_Fragment","_renderList","$data","value","name","index","_createVNode","_component_PropertyEntry"],"mappings":";;;;AAiDA,MAAKA,IAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,iBAAiB;AAAA,QACf,iBAAiB,EAAC,MAAM,eAAe,KAAK,kBAAkB,OAAO,6BAA8B;AAAA,QACnG,iBAAiB,EAAC,MAAM,eAAe,KAAK,IAAI,OAAO,4BAA2B;AAAA,QAClF,gBAAgB,EAAE,MAAM,YAAY,KAAK,YAAY,OAAO,6BAA8B;AAAA,QAC1F,eAAe,EAAC,MAAM,eAAe,KAAK,IAAI,OAAO,2BAA0B;AAAA,QAC/E,eAAe,EAAE,MAAM,WAAW,KAAK,IAAI,OAAO,2BAA4B;AAAA,QAC9E,eAAe,EAAC,MAAM,WAAW,KAAK,IAAI,OAAO,2BAA0B;AAAA,QAC3E,eAAe,EAAC,MAAM,YAAY,KAAK,IAAI,OAAM,8CAA6C;AAAA,QAC9F,gBAAgB,EAAC,MAAM,eAAe,KAAK,IAAI,OAAM,4BAA2B;AAAA,QAChF,gBAAgB,EAAC,MAAM,YAAY,KAAK,IAAI,OAAM,8CAA6C;AAAA,QAC/F,cAAc,EAAC,MAAM,kBAAkB,KAAK,IAAI,OAAM,0BAAyB;AAAA,MACjF;AAAA,IACF;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACH,WAAW;AAAA,EACd;AAAA,EACD,YAAY;AAAA,IACR,eAAAC;AAAA,EACH;AAAA,EACD,UAAU;AAAA,IACJ,GAAGC,EAAW,YAAY;AAAA,MACtB;AAAA,IACJ,CAAC;AAAA,EACL;AACJ;EA7EA,KAAA;AAAA,EAGW,OAAM;GACJC,IAAA,EAAA,OAAM,MAAK,GACTC,IAAA,EAAA,OAAM,iBAAgB;EALrC,KAAA;AAAA,EAcW,OAAM;GACJC,IAAA,EAAA,OAAM,MAAK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H,EAA0E,MAA1EI,GAA0EO,EAAnDH,EAAE,GAAA,uCAAA,CAAA,GAAA,CAAA;AAAA;QA7BrCO,EAAA;AAAA,QA+BUf,EAQM,OARNK,GAQM;AAAA,UAPJL,EAMQ,SANRM,GAMQ;AAAA,oBAJNC,EAEMW,GAAA,MApCpBC,EAkCkDC,EAAe,iBAlCjE,CAkC2BC,GAAOC,GAAMC,YAA1BhB,EAEM,OAAA,EAFgD,KAAKgB,KAAK;AAAA,cAC5DC,EAAyIC,GAAA;AAAA,gBAAzH,MAAMjB,EAAO,QAAA,YAAA;AAAA,gBAAgB,SAAQ;AAAA,gBAAc,UAAUc;AAAA,gBAAO,OAAOD;AAAA,gBAAQ,WAAWR,EAAS;AAAA;;;;;;;;;"}
1
+ {"version":3,"file":"CatalogueOverview.vue.mjs","sources":["../../../../lib/data-provider-interface/views/OverviewPage/CatalogueOverview.vue"],"sourcesContent":["<template>\n <div>\n \n <!-- TITLE -->\n <div class=\"mt-4 mb-2\" v-if=\"getData('catalogues')['dct:title']\">\n <div class=\"row\">\n <div class=\"col-8 offset-1\">\n <h2>\n {{getData('catalogues')['dct:title'].filter(el => el['@language'] === dpiLocale).map(el => el['@value'])[0]}}\n </h2>\n </div>\n </div>\n </div>\n\n <!-- DESCRIPTION -->\n <div class=\"mt-2\" v-if=\"getData('catalogues')['dct:description']\">\n <div class=\"row\">\n <div class=\"col-10 offset-1\">\n <p>\n {{getData('catalogues')['dct:description'].filter(el => el['@language'] === dpiLocale).map(el => el['@value'])[0]}}\n </p>\n </div>\n </div>\n <hr>\n </div>\n\n <!-- INFO TABLE -->\n <div class=\"mt-5\">\n <div class=\"row\">\n <div class=\"col-10 offset-1 py-2 bg-white\">\n <h2 class=\"heading\">{{ $t('message.datasetDetails.additionalInfo') }}</h2>\n </div>\n <div class=\"col-10 offset-1\">\n <table class=\"table table-borderless table-responsive pl-3 bg-light\">\n\n <div v-for=\"(value, name, index) in tableProperties\" :key=\"index\" class=\"catOverviewTable\">\n <PropertyEntry :data=\"getData('catalogues')\" profile=\"catalogues\" :property=\"name\" :value=\"value\" :dpiLocale=\"dpiLocale\"></PropertyEntry>\n </div>\n\n </table>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport PropertyEntry from './PropertyEntry.vue';\nimport { mapGetters } from 'vuex';\n\nexport default {\n data() {\n return {\n tableProperties: {\n 'dct:publisher': {type: 'conditional', voc: 'corporate-body', label: 'message.metadata.publisher' },\n 'foaf:homepage': {type: 'singularURI', voc: '', label: 'message.metadata.homepage'},\n 'dct:language': { type: 'multiURI', voc: 'language', label: 'message.metadata.languages' },\n 'dct:license': {type: 'singularURI', voc: '', label: 'message.metadata.license'},\n 'dct:spatial': { type: 'special', voc: '', label: 'message.metadata.spatial' },\n 'dct:creator': {type: 'special', voc: '', label: 'message.metadata.creator'},\n 'dct:hasPart': {type: 'multiURL', voc: '', label:'message.dataupload.catalogues.hasPart.label'},\n 'dct:isPartOf': {type: 'singularURI', voc: '', label:'message.metadata.isPartOf'},\n 'dcat:catalog': {type: 'multiURL', voc: '', label:'message.dataupload.catalogues.catalog.label'},\n 'dct:rights': {type: 'singularString', voc: '', label:'message.metadata.rights'},\n }\n }\n },\n props: {\n dpiLocale: String,\n },\n components: {\n PropertyEntry,\n },\n computed: {\n ...mapGetters('dpiStore', [\n 'getData',\n ]),\n }\n}\n</script>\n\n<style>\n\n</style>"],"names":["_sfc_main","PropertyEntry","mapGetters","_hoisted_2","_hoisted_3","_hoisted_5","_hoisted_6","_createElementVNode","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_createElementBlock","_ctx","_openBlock","_hoisted_1","_toDisplayString","el","$props","_createCommentVNode","_createTextVNode","_hoisted_4","_hoisted_7","_Fragment","_renderList","$data","value","name","index","_createVNode","_component_PropertyEntry"],"mappings":";;;;AAkDA,MAAKA,IAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,iBAAiB;AAAA,QACf,iBAAiB,EAAC,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,GAAMC,YAA1BhB,EAEM,OAAA;AAAA,cAFgD,KAAKgB;AAAA,cAAO,OAAM;AAAA;cACpEC,EAAyIC,GAAA;AAAA,gBAAzH,MAAMjB,EAAO,QAAA,YAAA;AAAA,gBAAgB,SAAQ;AAAA,gBAAc,UAAUc;AAAA,gBAAO,OAAOD;AAAA,gBAAQ,WAAWR,EAAS;AAAA;;;;;;;;;"}
@@ -1,67 +1,67 @@
1
- import { ref as _, resolveComponent as f, openBlock as l, createElementBlock as r, Fragment as h, renderList as b, normalizeClass as x, createElementVNode as t, toDisplayString as n, createTextVNode as c, createVNode as k, withCtx as i, renderSlot as g } from "vue";
1
+ import { ref as h, resolveComponent as x, openBlock as r, createElementBlock as i, Fragment as b, renderList as g, normalizeClass as c, createElementVNode as a, toDisplayString as n, createTextVNode as d, createVNode as k, withCtx as p, renderSlot as y } from "vue";
2
2
  import "./Repeatable.vue2.mjs";
3
- import y from "../_virtual/_plugin-vue_export-helper.mjs";
4
- const C = { class: "horizontal-wrapper" }, R = { class: "repeatableWrap" }, $ = { class: "interactionHeaderRepeatable my-1" }, w = ["onClick", "data-key"], I = { class: "formkitWrapRepeatable" }, N = {
3
+ import C from "../_virtual/_plugin-vue_export-helper.mjs";
4
+ const R = { class: "horizontal-wrapper" }, $ = { class: "repeatableWrap" }, w = { class: "interactionHeaderRepeatable my-1" }, I = ["onClick", "data-key"], N = { class: "formkitWrapRepeatable" }, V = {
5
5
  __name: "Repeatable",
6
6
  props: {
7
7
  context: Object
8
8
  },
9
- setup(d) {
10
- const a = d, o = _([]);
9
+ setup(u) {
10
+ const t = u, o = h([]);
11
11
  setTimeout(() => {
12
- if (a.context.value.length === 0)
12
+ if (t.context.value.length === 0)
13
13
  o.value.push("init");
14
14
  else
15
- for (let e = 0; e < a.context.value.length; e++)
16
- a.context.value[e] != null && o.value.push(a.context.value[e]["@value"]);
15
+ for (let e = 0; e < t.context.value.length; e++)
16
+ t.context.value[e] != null && o.value.push(t.context.value[e]["@value"]);
17
17
  });
18
- const p = () => {
18
+ const m = () => {
19
19
  o.value.push("new_index");
20
- }, u = (e) => {
21
- o.value.splice(e, 1);
20
+ }, v = (e, l) => {
21
+ l != 1 && o.value.splice(e, 1);
22
22
  };
23
- return (e, V) => {
24
- const m = f("i18n-t");
25
- return l(!0), r(h, null, b(o.value, (s, v) => (l(), r("div", {
26
- class: x(["repeatable formkitProperty", [a.context.attrs.identifier]]),
23
+ return (e, l) => {
24
+ const _ = x("i18n-t");
25
+ return r(!0), i(b, null, g(o.value, (s, f) => (r(), i("div", {
26
+ class: c(["repeatable formkitProperty", [t.context.attrs.identifier]]),
27
27
  key: s
28
28
  }, [
29
- t("h4", null, n(a.context.label), 1),
30
- c(),
31
- t("div", C, [
32
- t("div", R, [
33
- t("div", $, [
34
- k(m, {
29
+ a("h4", null, n(t.context.label), 1),
30
+ d(),
31
+ a("div", R, [
32
+ a("div", $, [
33
+ a("div", w, [
34
+ k(_, {
35
35
  keypath: "message.dataupload.info.repeatable",
36
36
  scope: "global",
37
37
  tag: "p"
38
38
  }, {
39
- add: i(() => [
40
- t("a", {
39
+ add: p(() => [
40
+ a("a", {
41
41
  class: "add",
42
- onClick: p
42
+ onClick: m
43
43
  }, "+ " + n(e.$t("message.dataupload.info.add")), 1)
44
44
  ]),
45
- remove: i(() => [
46
- t("a", {
47
- class: "remove",
48
- onClick: (z) => u(v),
45
+ remove: p(() => [
46
+ a("a", {
47
+ class: c(["remove", { disabledRemove: t.context.value.length === 1 }]),
48
+ onClick: (z) => v(f, o.value.length),
49
49
  "data-key": s
50
- }, "- " + n(e.$t("message.dataupload.info.remove")), 9, w)
50
+ }, "- " + n(e.$t("message.dataupload.info.remove")), 11, I)
51
51
  ]),
52
52
  _: 2
53
53
  }, 1024)
54
54
  ]),
55
- c(),
56
- t("div", I, [
57
- g(e.$slots, "default", {}, void 0, !0)
55
+ d(),
56
+ a("div", N, [
57
+ y(e.$slots, "default", {}, void 0, !0)
58
58
  ])
59
59
  ])
60
60
  ])
61
61
  ], 2))), 128);
62
62
  };
63
63
  }
64
- }, T = /* @__PURE__ */ y(N, [["__scopeId", "data-v-c2ab58c9"]]);
64
+ }, T = /* @__PURE__ */ C(V, [["__scopeId", "data-v-4e469aa1"]]);
65
65
  export {
66
66
  T as default
67
67
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Repeatable.vue.mjs","sources":["../../lib/form/Repeatable.vue"],"sourcesContent":["<script setup>\nimport { ref, computed } from 'vue';\n\nconst props = defineProps({\n context: Object\n})\n\nconst counter = ref([])\n\n//Need to handle the data like this. The values seem to take their time while loading into the DOM.\nsetTimeout(() => {\n if (props.context.value.length === 0) {\n counter.value.push('init')\n }\n else {\n for (let index = 0; index < props.context.value.length; index++) {\n if (props.context.value[index] != null) {\n counter.value.push(props.context.value[index]['@value'])\n }\n }\n }\n});\n\n// Pushing a blank to the context object and refreshing the counter\nconst addItem = () => {\n counter.value.push('new_index')\n}\n// remove Item - ToDo need to make sure the localhost notices the splice\nconst removeItem = (index) => {\n counter.value.splice(index, 1)\n}\n</script>\n\n<template>\n <div class=\"repeatable formkitProperty\" :class=\"[props.context.attrs.identifier]\"\n v-for=\"key, repeatableIndex in counter\" :key=\"key\">\n <h4>{{ props.context.label }}</h4>\n <div class=\"horizontal-wrapper\">\n <div class=\"repeatableWrap\">\n <div class=\"interactionHeaderRepeatable my-1\">\n <i18n-t keypath=\"message.dataupload.info.repeatable\" scope=\"global\" tag=\"p\">\n <template v-slot:add>\n <a class=\"add\" @click=\"addItem\">+ {{ $t('message.dataupload.info.add') }}</a>\n </template>\n <template v-slot:remove>\n <a class=\"remove\" @click=\"removeItem(repeatableIndex)\" :data-key=\"key\">- {{\n $t('message.dataupload.info.remove') }}</a>\n </template>\n </i18n-t>\n </div>\n <div class=\"formkitWrapRepeatable\">\n\n <slot></slot>\n\n </div>\n </div>\n </div>\n </div>\n</template>\n<style scoped>\n.add,\n.remove {\n padding: 0.5rem;\n margin: 0.5rem;\n border-radius: 5px;\n transition: all 200ms ease-in-out;\n}\n\n.add {\n border: 1px solid lightseagreen;\n &:hover {\n text-decoration: none;\n color: white;\n background-color: lightseagreen;\n }\n}\n\n.remove {\n border: 1px solid lightcoral;\n\n &:hover {\n text-decoration: none;\n color: white;\n background-color: lightcoral;\n }\n}\n</style>\n"],"names":["props","__props","counter","ref","index","addItem","removeItem"],"mappings":";;;;;;;;;AAGA,UAAMA,IAAQC,GAIRC,IAAUC,EAAI,EAAE;AAGtB,eAAW,MAAM;AACf,UAAIH,EAAM,QAAQ,MAAM,WAAW;AACjC,QAAAE,EAAQ,MAAM,KAAK,MAAM;AAAA;AAGzB,iBAASE,IAAQ,GAAGA,IAAQJ,EAAM,QAAQ,MAAM,QAAQI;AACtD,UAAIJ,EAAM,QAAQ,MAAMI,CAAK,KAAK,QAChCF,EAAQ,MAAM,KAAKF,EAAM,QAAQ,MAAMI,CAAK,EAAE,QAAQ,CAAC;AAAA,IAI/D,CAAC;AAGD,UAAMC,IAAU,MAAM;AACpB,MAAAH,EAAQ,MAAM,KAAK,WAAW;AAAA,IAChC,GAEMI,IAAa,CAACF,MAAU;AAC5B,MAAAF,EAAQ,MAAM,OAAOE,GAAO,CAAC;AAAA,IAC/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Repeatable.vue.mjs","sources":["../../lib/form/Repeatable.vue"],"sourcesContent":["<template>\n <div class=\"repeatable formkitProperty\" :class=\"[props.context.attrs.identifier]\"\n v-for=\"key, repeatableIndex in counter\" :key=\"key\">\n <h4>{{ props.context.label }}</h4>\n <div class=\"horizontal-wrapper\">\n <div class=\"repeatableWrap\">\n <div class=\"interactionHeaderRepeatable my-1\">\n <i18n-t keypath=\"message.dataupload.info.repeatable\" scope=\"global\" tag=\"p\">\n <template v-slot:add>\n <a class=\"add\" @click=\"addItem\">+ {{ $t('message.dataupload.info.add') }}</a>\n </template>\n <template v-slot:remove>\n\n <a class=\"remove\" :class=\"{ disabledRemove: props.context.value.length === 1 }\"\n @click=\"removeItem(repeatableIndex, counter.length)\" :data-key=\"key\">- {{\n $t('message.dataupload.info.remove') }}</a>\n </template>\n </i18n-t>\n </div>\n <div class=\"formkitWrapRepeatable\">\n\n <slot></slot>\n\n </div>\n </div>\n </div>\n </div>\n</template>\n<script setup>\nimport { ref } from 'vue';\n\nconst props = defineProps({\n context: Object\n})\n\nconst counter = ref([])\n\n//Need to handle the data like this. The values seem to take their time while loading into the DOM.\nsetTimeout(() => {\n if (props.context.value.length === 0) {\n counter.value.push('init')\n }\n else {\n for (let index = 0; index < props.context.value.length; index++) {\n if (props.context.value[index] != null) {\n counter.value.push(props.context.value[index]['@value'])\n }\n }\n }\n});\n\n// Pushing a blank to the context object and refreshing the counter\nconst addItem = () => {\n counter.value.push('new_index')\n}\n// remove Item - ToDo need to make sure the localhost notices the splice\nconst removeItem = (index, counterLength) => {\n if (counterLength != 1) {\n counter.value.splice(index, 1)\n }\n\n}\n</script>\n<style scoped>\n.add,\n.remove {\n padding: 0.5rem;\n margin: 0.5rem;\n border-radius: 5px;\n transition: all 200ms ease-in-out;\n}\n\n.add {\n border: 1px solid lightseagreen;\n\n &:hover {\n text-decoration: none;\n color: white;\n background-color: lightseagreen;\n }\n}\n\n.remove {\n border: 1px solid lightcoral;\n\n &:hover {\n text-decoration: none;\n color: white;\n background-color: lightcoral;\n }\n}\n\n.disabledRemove {\n &:hover {\n text-decoration: none;\n color: white;\n background-color: lightgray;\n }\n}\n</style>\n"],"names":["props","__props","counter","ref","index","addItem","removeItem","counterLength"],"mappings":";;;;;;;;;AA+BA,UAAMA,IAAQC,GAIRC,IAAUC,EAAI,EAAE;AAGtB,eAAW,MAAM;AACf,UAAIH,EAAM,QAAQ,MAAM,WAAW;AACjC,QAAAE,EAAQ,MAAM,KAAK,MAAM;AAAA;AAGzB,iBAASE,IAAQ,GAAGA,IAAQJ,EAAM,QAAQ,MAAM,QAAQI;AACtD,UAAIJ,EAAM,QAAQ,MAAMI,CAAK,KAAK,QAChCF,EAAQ,MAAM,KAAKF,EAAM,QAAQ,MAAMI,CAAK,EAAE,QAAQ,CAAC;AAAA,IAI/D,CAAC;AAGD,UAAMC,IAAU,MAAM;AACpB,MAAAH,EAAQ,MAAM,KAAK,WAAW;AAAA,IAChC,GAEMI,IAAa,CAACF,GAAOG,MAAkB;AAC3C,MAAIA,KAAiB,KACnBL,EAAQ,MAAM,OAAOE,GAAO,CAAC;AAAA,IAGjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"inputDefinitions.mjs","sources":["../../lib/form/inputDefinitions.ts"],"sourcesContent":["import Repeatable from \"./Repeatable.vue\";\nimport FormKitGroup from \"./FormKitGroup.vue\";\nimport { FormKitLibrary } from \"@formkit/core\";\nimport AutocompleteInput from \"../data-provider-interface/components/AutocompleteInput.vue\";\nimport FileUpload from \"../data-provider-interface/components/FileUpload.vue\";\nimport UniqueIdentifierInput from \"../data-provider-interface/components/UniqueIdentifierInput.vue\";\nimport SpatialInput from \"../data-provider-interface/components/SpatialInput.vue\";\nimport ConditionalInput from \"../data-provider-interface/components/ConditionalInput.vue\";\nimport SimpleSelect from \"../data-provider-interface/components/SimpleSelect.vue\";\nimport SimpleInput from \"../data-provider-interface/components/SimpleInput.vue\";\n\nexport default {\n repeatable: {\n type: 'list',\n component: Repeatable\n },\n id: {\n type: 'input',\n component: UniqueIdentifierInput,\n },\n auto: {\n type: 'group',\n component: AutocompleteInput\n },\n fileupload: {\n type: 'group',\n component: FileUpload\n },\n spatialinput: {\n type: 'group',\n component: SpatialInput\n },\n formkitGroup: {\n type: 'group',\n component: FormKitGroup\n },\n simpleConditional: {\n type: 'group',\n component: ConditionalInput\n },\n simpleSelect: {\n type: 'input',\n component: SimpleSelect,\n },\n simpleInput: {\n type: 'input',\n component: SimpleInput,\n },\n\n\n} as FormKitLibrary;"],"names":["inputDefinitions","Repeatable","UniqueIdentifierInput","AutocompleteInput","FileUpload","SpatialInput","FormKitGroup","ConditionalInput","SimpleSelect","SimpleInput"],"mappings":";;;;;;;;;AAWA,MAAeA,IAAA;AAAA,EACX,YAAY;AAAA,IACR,MAAM;AAAA,IACN,WAAWC;AAAA,EACf;AAAA,EACA,IAAI;AAAA,IACA,MAAM;AAAA,IACN,WAAWC;AAAAA,EACf;AAAA,EACA,MAAM;AAAA,IACF,MAAM;AAAA,IACN,WAAWC;AAAAA,EACf;AAAA,EACA,YAAY;AAAA,IACR,MAAM;AAAA,IACN,WAAWC;AAAA,EACf;AAAA,EACA,cAAc;AAAA,IACV,MAAM;AAAA,IACN,WAAWC;AAAA,EACf;AAAA,EACA,cAAc;AAAA,IACV,MAAM;AAAA,IACN,WAAWC;AAAA,EACf;AAAA,EACA,mBAAmB;AAAA,IACf,MAAM;AAAA,IACN,WAAWC;AAAAA,EACf;AAAA,EACA,cAAc;AAAA,IACV,MAAM;AAAA,IACN,WAAWC;AAAAA,EACf;AAAA,EACA,aAAa;AAAA,IACT,MAAM;AAAA,IACN,WAAWC;AAAAA,EACf;AAGJ;"}
1
+ {"version":3,"file":"inputDefinitions.mjs","sources":["../../lib/form/inputDefinitions.ts"],"sourcesContent":["import Repeatable from \"./Repeatable.vue\";\nimport FormKitGroup from \"./FormKitGroup.vue\";\nimport { FormKitLibrary } from \"@formkit/core\";\nimport AutocompleteInput from \"../data-provider-interface/components/AutocompleteInput.vue\";\nimport FileUpload from \"../data-provider-interface/components/FileUpload.vue\";\nimport UniqueIdentifierInput from \"../data-provider-interface/components/UniqueIdentifierInput.vue\";\nimport SpatialInput from \"../data-provider-interface/components/SpatialInput.vue\";\nimport ConditionalInput from \"../data-provider-interface/components/ConditionalInput.vue\";\nimport SimpleSelect from \"../data-provider-interface/components/SimpleSelect.vue\";\nimport SimpleInput from \"../data-provider-interface/components/SimpleInput.vue\";\n\n\nexport default {\n \n repeatable: {\n type: 'list',\n component: Repeatable\n },\n id: {\n type: 'input',\n component: UniqueIdentifierInput,\n },\n auto: {\n type: 'group',\n component: AutocompleteInput\n },\n fileupload: {\n type: 'group',\n component: FileUpload\n },\n spatialinput: {\n type: 'group',\n component: SpatialInput\n },\n formkitGroup: {\n type: 'group',\n component: FormKitGroup\n },\n simpleConditional: {\n type: 'group',\n component: ConditionalInput\n },\n simpleSelect: {\n type: 'input',\n component: SimpleSelect,\n },\n simpleInput: {\n type: 'input',\n component: SimpleInput,\n },\n\n\n} as FormKitLibrary;"],"names":["inputDefinitions","Repeatable","UniqueIdentifierInput","AutocompleteInput","FileUpload","SpatialInput","FormKitGroup","ConditionalInput","SimpleSelect","SimpleInput"],"mappings":";;;;;;;;;AAYA,MAAeA,IAAA;AAAA,EAEX,YAAY;AAAA,IACR,MAAM;AAAA,IACN,WAAWC;AAAA,EACf;AAAA,EACA,IAAI;AAAA,IACA,MAAM;AAAA,IACN,WAAWC;AAAAA,EACf;AAAA,EACA,MAAM;AAAA,IACF,MAAM;AAAA,IACN,WAAWC;AAAAA,EACf;AAAA,EACA,YAAY;AAAA,IACR,MAAM;AAAA,IACN,WAAWC;AAAA,EACf;AAAA,EACA,cAAc;AAAA,IACV,MAAM;AAAA,IACN,WAAWC;AAAA,EACf;AAAA,EACA,cAAc;AAAA,IACV,MAAM;AAAA,IACN,WAAWC;AAAA,EACf;AAAA,EACA,mBAAmB;AAAA,IACf,MAAM;AAAA,IACN,WAAWC;AAAAA,EACf;AAAA,EACA,cAAc;AAAA,IACV,MAAM;AAAA,IACN,WAAWC;AAAAA,EACf;AAAA,EACA,aAAa;AAAA,IACT,MAAM;AAAA,IACN,WAAWC;AAAAA,EACf;AAGJ;"}