@piveau/piveau-hub-ui-modules 4.6.83 → 4.6.85

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 (117) hide show
  1. package/dist/PvDataInfoBox/PvDataInfoBox.vue.mjs +1 -2
  2. package/dist/PvDataInfoBox/PvDataInfoBox.vue.mjs.map +1 -1
  3. package/dist/catalogues/CatalogPageDatasetCard.vue.mjs +6 -7
  4. package/dist/catalogues/CatalogPageDatasetCard.vue.mjs.map +1 -1
  5. package/dist/catalogues/Catalogues.vue.mjs +2 -2
  6. package/dist/citation/DatasetCitationTable.vue.mjs +2 -2
  7. package/dist/citation/DatasetCitationTable.vue.mjs.map +1 -1
  8. package/dist/composables/useRuntimeEnv.d.ts +1 -1
  9. package/dist/configurations/config-schema/configSchema.d.ts +1 -1
  10. package/dist/data-provider-interface/CatalogueMQA.vue.mjs +216 -226
  11. package/dist/data-provider-interface/CatalogueMQA.vue.mjs.map +1 -1
  12. package/dist/data-provider-interface/DPIMenu.vue.d.ts +3 -3
  13. package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +7 -7
  14. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +110 -106
  15. package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
  16. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +101 -82
  17. package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
  18. package/dist/data-provider-interface/components/DataFetchingComponent.vue.d.ts +1 -1
  19. package/dist/data-provider-interface/components/DataFetchingComponent.vue.mjs +2 -2
  20. package/dist/data-provider-interface/components/DataFetchingComponent.vue.mjs.map +1 -1
  21. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +3 -4
  22. package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
  23. package/dist/data-provider-interface/components/Dropup.vue.d.ts +1 -1
  24. package/dist/data-provider-interface/components/FileUpload.vue.d.ts +1 -1
  25. package/dist/data-provider-interface/components/FileUpload.vue.mjs +4 -4
  26. package/dist/data-provider-interface/components/FileUpload.vue.mjs.map +1 -1
  27. package/dist/data-provider-interface/components/Navigation.vue.d.ts +5 -5
  28. package/dist/data-provider-interface/components/SelectControlledGroup.vue.mjs +2 -3
  29. package/dist/data-provider-interface/components/SelectControlledGroup.vue.mjs.map +1 -1
  30. package/dist/data-provider-interface/views/DistributionOverview.vue.d.ts +2 -2
  31. package/dist/data-provider-interface/views/DistributionOverview.vue.mjs +4 -4
  32. package/dist/data-provider-interface/views/DraftsPage.vue.d.ts +2 -2
  33. package/dist/data-provider-interface/views/DraftsPage.vue.mjs +29 -34
  34. package/dist/data-provider-interface/views/DraftsPage.vue.mjs.map +1 -1
  35. package/dist/data-provider-interface/views/InputPage.vue.d.ts +7 -7
  36. package/dist/data-provider-interface/views/InputPage.vue.mjs +4 -6
  37. package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
  38. package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs +1 -1
  39. package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs.map +1 -1
  40. package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.mjs +6 -6
  41. package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.mjs.map +1 -1
  42. package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.mjs +2 -2
  43. package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.mjs.map +1 -1
  44. package/dist/data-provider-interface/views/OverviewPage.vue.d.ts +1 -1
  45. package/dist/data-provider-interface/views/OverviewPage.vue.mjs +2 -2
  46. package/dist/data-provider-interface/views/OverviewPage.vue.mjs.map +1 -1
  47. package/dist/data-provider-interface/views/PropertyChooser.vue.mjs +8 -8
  48. package/dist/data-provider-interface/views/PropertyChooser.vue.mjs.map +1 -1
  49. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs +38 -38
  50. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs.map +1 -1
  51. package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs +1 -2
  52. package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs.map +1 -1
  53. package/dist/datasetDetails/DatasetDetailsQuality.vue.mjs +36 -36
  54. package/dist/datasetDetails/DatasetDetailsQuality.vue.mjs.map +1 -1
  55. package/dist/datasetDetails/distributions/DistributionAdded.vue.mjs +2 -2
  56. package/dist/datasetDetails/distributions/DistributionAdded.vue.mjs.map +1 -1
  57. package/dist/datasetDetails/distributions/DistributionDownloadAsModal.vue.mjs +9 -9
  58. package/dist/datasetDetails/distributions/DistributionDownloadAsModal.vue.mjs.map +1 -1
  59. package/dist/datasetDetails/distributions/DistributionFormat.vue.d.ts +2 -2
  60. package/dist/datasetDetails/distributions/DistributionsHeader.vue.d.ts +4 -4
  61. package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.d.ts +8 -8
  62. package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.mjs +3 -4
  63. package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.mjs.map +1 -1
  64. package/dist/datasetDetails/distributions/FadingDistributionOverlay.vue.mjs +5 -7
  65. package/dist/datasetDetails/distributions/FadingDistributionOverlay.vue.mjs.map +1 -1
  66. package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs +8 -9
  67. package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs.map +1 -1
  68. package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.d.ts +2 -2
  69. package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.mjs +22 -25
  70. package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.mjs.map +1 -1
  71. package/dist/datasetDetails/distributions/distributionActions/DistributionDropdownDownload.vue.d.ts +2 -2
  72. package/dist/datasetDetails/distributions/distributionActions/DistributionOptionsDropdown.vue.d.ts +4 -4
  73. package/dist/datasetDetails/distributions/distributionActions/DistributionOptionsDropdown.vue.mjs +5 -6
  74. package/dist/datasetDetails/distributions/distributionActions/DistributionOptionsDropdown.vue.mjs.map +1 -1
  75. package/dist/datasetDetails/distributions/distributionActions/DistributionPreview.vue.d.ts +4 -4
  76. package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.d.ts +4 -4
  77. package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs +41 -42
  78. package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs.map +1 -1
  79. package/dist/datasetDetails/distributions/distributionDetails/DistributionDescription.vue.d.ts +6 -6
  80. package/dist/datasetDetails/distributions/distributionDetails/DistributionDetails.vue.d.ts +16 -16
  81. package/dist/datasetDetails/distributions/distributionDetails/DistributionExpand.vue.d.ts +2 -2
  82. package/dist/datasetDetails/features/DatasetDetailsDataServices.vue.mjs +3 -3
  83. package/dist/datasetDetails/features/DatasetDetailsDataServices.vue.mjs.map +1 -1
  84. package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.d.ts +1 -1
  85. package/dist/datasetDetails/features/DatasetDetailsPages.vue.mjs +2 -2
  86. package/dist/datasetDetails/features/DatasetDetailsVisualisations.vue.mjs +2 -2
  87. package/dist/datasetDetails/header/DatasetDetailsHeaderCatalogue.vue.d.ts +1 -1
  88. package/dist/datasetDetails/header/DatasetDetailsHeaderTitle.vue.d.ts +2 -2
  89. package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +2 -2
  90. package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.mjs +2 -2
  91. package/dist/datasetDetails/navigation/DatasetDetailsNavigationPages.vue.d.ts +7 -1
  92. package/dist/datasetDetails/properties/DatasetDetailsProperties.vue.d.ts +200 -1
  93. package/dist/datasets/DatasetsFilters.vue.mjs +2 -2
  94. package/dist/datasets/DatasetsTopControls.vue.mjs +12 -14
  95. package/dist/datasets/DatasetsTopControls.vue.mjs.map +1 -1
  96. package/dist/datasets/datasetsFacets/DatasetsMapFacet.vue.mjs +4 -4
  97. package/dist/embed/DatasetEmbedModal.vue.mjs +2 -2
  98. package/dist/embed/DatasetEmbedModal.vue.mjs.map +1 -1
  99. package/dist/embed/EmbedDataset.vue.mjs +3 -3
  100. package/dist/embed/EmbedDataset.vue.mjs.map +1 -1
  101. package/dist/embed/EmbedDatasetSnippet.vue.mjs +3 -3
  102. package/dist/embed/EmbedDatasetSnippet.vue.mjs.map +1 -1
  103. package/dist/form/Repeatable.vue2.mjs +1 -2
  104. package/dist/form/Repeatable.vue2.mjs.map +1 -1
  105. package/dist/modal/AppConfirmationDialog.vue.mjs +1 -1
  106. package/dist/modal/AppConfirmationDialog.vue.mjs.map +1 -1
  107. package/dist/pages/user/UserImprint.vue.mjs +1 -1
  108. package/dist/pages/user/UserImprint.vue.mjs.map +1 -1
  109. package/dist/pages/user/UserPrivacyPolicy.vue.mjs +1 -1
  110. package/dist/pages/user/UserPrivacyPolicy.vue.mjs.map +1 -1
  111. package/dist/piveau-hub-ui-modules.css +1 -1
  112. package/dist/services/datasetService.d.ts +1 -1
  113. package/dist/widgets/AppLink.vue.mjs +2 -2
  114. package/dist/widgets/AppLink.vue.mjs.map +1 -1
  115. package/dist/widgets/Pagination.vue.d.ts +1 -1
  116. package/dist/widgets/ResourceAccessPopup.vue.mjs +2 -2
  117. package/package.json +1 -1
@@ -101,8 +101,7 @@ function V(t, o, T, w, E, L) {
101
101
  }, null, 8, ["src", "createdDate", "updatedDate", "catalog"]))
102
102
  ])
103
103
  ]),
104
- _: 3,
105
- __: [5, 6]
104
+ _: 3
106
105
  }, 8, ["to", "class"]);
107
106
  }
108
107
  const j = /* @__PURE__ */ y(k, [["render", V]]);
@@ -1 +1 @@
1
- {"version":3,"file":"PvDataInfoBox.vue.mjs","sources":["../../lib/PvDataInfoBox/PvDataInfoBox.vue"],"sourcesContent":["<template>\n <router-link\n :to=\"to\"\n class=\"dataset-info-box text-dark text-decoration-none\"\n :class=\"{'dataset-info-box--catalog': catalogMode}\"\n >\n <slot name=\"header\" v-if=\"!compact\">\n <div class=\"dataset-info-box-header\" data-cy=\"dataset-title\">\n <h2 class=\"card-title m0\">{{ datasetOrCatalogTitle }}</h2>\n </div>\n </slot>\n\n <!-- Body slot -->\n <slot name=\"body\" :dataset=\"dataset\">\n <div class=\"dataset-info-box-body\">\n <div class=\"row\">\n <div v-if=\"catalogMode && !compact\" class=\"col-12 col-md-2\">\n <img\n :src=\"src\"\n alt=\"img\"\n class=\"catalog-img border border-dark\"\n :class=\"{'catalog-img--big': !compact}\"\n />\n </div>\n \n <div\n class=\"dataset-info-box-description-container col-12 col-md\"\n data-cy=\"dataset-description\"\n >\n <slot name=\"header\" v-if=\"compact\">\n <div data-cy=\"dataset-title\">\n <h2 class=\"card-title\">{{ datasetOrCatalogTitle }}</h2>\n </div>\n </slot>\n\n <slot name=\"description\">\n <pv-data-info-box-description\n v-if=\"!catalogMode || !compact\"\n :class=\"'mb-3'\"\n :description=\"dataset.description\"\n :description-max-length=\"descriptionMaxLength\"\n :truncate=\"descriptionMaxLength\"\n />\n </slot>\n \n <slot name=\"after-description\" />\n </div>\n <div\n v-if=\"dataset.formats && dataset.formats.length > 0\"\n class=\"dataset-info-box-badge-container col-12 mb-3\"\n :class=\"{ 'col-md-3': !compact }\"\n >\n <slot name=\"right\" :formats=\"dataset.formats\">\n <PvDataInfoBoxFormats :formats=\"dataset.formats\"></PvDataInfoBoxFormats>\n </slot>\n </div>\n <slot name=\"footer\" :dataset=\"dataset\" v-if=\"compact\">\n <PvDataInfoBoxFooter\n class=\"col-12\"\n :src=\"src\"\n :createdDate=\"null\"\n :updatedDate=\"null\"\n :catalog=\"catalogMode ? dataset.description : dataset.catalog\"\n />\n <!-- <div v-else class=\"dataset-info-box-footer\" /> -->\n </slot>\n </div>\n </div>\n </slot>\n\n <!-- Footer slot -->\n <slot name=\"footer\" :dataset=\"dataset\" v-if=\"!compact\">\n <PvDataInfoBoxFooter\n class=\"dataset-info-box-footer\"\n v-if=\"!catalogMode\"\n :src=\"src\"\n :createdDate=\"dataset.createdDate\"\n :updatedDate=\"dataset.updatedDate\"\n :catalog=\"dataset.catalog\"\n />\n <div v-else class=\"dataset-info-box-footer\" />\n </slot>\n </router-link>\n</template>\n\n<script lang=\"ts\">\nimport { Dataset } from \"../types/global\";\nimport {defineComponent, PropType} from \"vue\";\nimport type RouteLocationRaw from \"vue-router\";\n\nimport PvBadge from \"../PvBadge/PvBadge.vue\";\nimport PvDataInfoBoxFooter from \"./PvDataInfoBoxFooter.vue\";\nimport PvDataInfoBoxDescription from \"./PvDataInfoBoxDescription.vue\";\nimport PvDataInfoBoxFormats from \"./PvDataInfoBoxFormats.vue\"\n\nexport default defineComponent({\n name: \"PvDataInfoBox\",\n components: {\n PvBadge,\n PvDataInfoBoxFooter,\n PvDataInfoBoxDescription,\n PvDataInfoBoxFormats,\n },\n props: {\n /**\n * The dataset to display.\n */\n dataset: {\n type: Object as PropType<Dataset>,\n default: () =>\n ({\n title: \"\",\n description: \"\",\n catalog: \"\",\n createdDate: \"12.12.2023\",\n updatedDate: \"13.12.2023\",\n formats: [],\n } as Dataset),\n },\n\n /**\n * The route to navigate to when clicking on the dataset.\n */\n to: {\n type: [Object, String] as PropType<RouteLocationRaw | string>,\n required: true,\n },\n\n /**\n * Specified the maximum length of the description before it is cut off.\n */\n descriptionMaxLength: {\n type: Number,\n default: 200,\n },\n\n /**\n * Image source for the catalog logo/flag.\n */\n src: {\n type: String,\n default: \"\",\n },\n\n /**\n * If true, swaps to catalog display mode\n */\n catalogMode: {\n type: Boolean,\n default: false,\n },\n\n /**\n * If true switches from two column to one column layout\n * and decreases vertical distancing between elements.\n */\n compact: {\n type: Boolean,\n default: false,\n },\n },\n\n computed: {\n datasetOrCatalogTitle(): string {\n const { dataset, catalogMode } = this;\n return catalogMode\n ? dataset.title || dataset.catalog || \"\"\n : dataset.title || \"\";\n },\n },\n});\n</script>\n"],"names":["_hoisted_1","_hoisted_2","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_10","_resolveComponent","_openBlock","_createBlock","_component_router_link","_ctx","_normalizeClass","_withCtx","_createCommentVNode","_renderSlot","_createElementVNode","_cache","_createTextVNode","catalogMode","compact","_hoisted_4","_createElementBlock","_hoisted_8","_component_pv_data_info_box_description","descriptionMaxLength","dataset","_createVNode","_component_PvDataInfoBoxFormats","src","_component_PvDataInfoBoxFooter"],"mappings":";;;MAO2CA,IAAQ;AAAA,EAAA,OAAA;AAAA;GAQtCC,IAAA,EAAA,OAAM,iFAC2BC,IAAM;AAAA,EAAA,KAAA;AAAA;GAUxCC,IAAM,CAAA,KAAA,GACNC,IAAQ;AAAA,EAAA,OAAA;AAAA;oEAqDFC,IAAM;AAAA,EAAA,KAAA;AAAA;;;gHA/EtBC,EAiFc,aAAA;SA/EPC,EAAC,GAAAC,EAAAC,GAAA;AAAA,IAAA,IAAAC,EAAA;AAAA,IAOC,OAAAC,EAAA,CAAA,mDAAA,EAAA,6BAAAD,EAAA,YAAA,CAAA,CAAA;AAAA,EAAA,GAAA;AAAA,aAJPE,EAIO,MAAA;AAAA,MAHLF,EAAA,UAMFG,EAuDO,IAAA,EAAA,IA7DLC,EACEJ,EAA0D,QAAA,UAA1D,EAA0D,KAAA,EAAA,GAAA,MAAA;AAAA,QAAAK,EAAA,OAAAf,GAAA;AAAA;;;MA4DvDgB,EAtDL,CAqDM,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,MApDJH,EAAAJ,EAAA,QAmDM,QAnDN,EAmDM,SAAAA,EAAA,QAAA,GAAA,MAAA;AAAA,QAAAK,EAlDOG,OAAgBC,GAAO;AAAA,UAAlCJ,EAAA,OAAAK,GAAA;AAAA,YACEV,EAAA,eAAA,CAAAA,EAKE,gBAJSW,EAAA,OAAAnB,GAAA;AAAA,cACAa,EAAA,OAAA;AAAA,gBACT,KAAKL,EAAA;AAAA,gBAAA,KAAA;AAAA;;YAKT,CAAA,KAAAG,EAqBM,IArBN,EAAA;AAAA,YAAAG,EAI4BG,CAAO,MAAAH,EAAA,CAAA,IAAAC,EAAA;AAA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A,KAAAlB,EAAA;AAAA,gBACA,aAASQ;AAAAA,gBAAAA,aAAAA;AAAAA;;;;;;QASpB,CAUO,MAAAF,EAAA,CAAA,IAAAC,EAAA;AAAA,MAAAP,EAAA,sBAAAI,EAVuBW,EAAO,QAAA,UAAA;AAAA,QAU9B,KAAA;AAAA,QAPIP,SAAAA,EAAAA;AAAAA,MAAAA,GAAAA,MAAAA;AAAAA,yBAMTX,EAAA,GAAAc,EAAA,OAAAhB,CAAA,WAPiCG,EAAAqB,GAAA;AAAA,UAE9B,KAAKD;AAAAA,UACL,OAAA;AAAA,UACA,KAAAlB,EAAA;AAAA,UACA,aAASe,EAAQ,QAAA;AAAA,UAAA,aAAAf,EAAA,QAAA;AAAA,UAEpB,SAAAA,EAAA,QAAA;AAAA,QAAA,GAAA,MAAA,GAAA,CAAA,OAAA,eAAA,eAAA,SAAA,CAAA;AAAA;;;;;;;"}
1
+ {"version":3,"file":"PvDataInfoBox.vue.mjs","sources":["../../lib/PvDataInfoBox/PvDataInfoBox.vue"],"sourcesContent":["<template>\n <router-link\n :to=\"to\"\n class=\"dataset-info-box text-dark text-decoration-none\"\n :class=\"{'dataset-info-box--catalog': catalogMode}\"\n >\n <slot name=\"header\" v-if=\"!compact\">\n <div class=\"dataset-info-box-header\" data-cy=\"dataset-title\">\n <h2 class=\"card-title m0\">{{ datasetOrCatalogTitle }}</h2>\n </div>\n </slot>\n\n <!-- Body slot -->\n <slot name=\"body\" :dataset=\"dataset\">\n <div class=\"dataset-info-box-body\">\n <div class=\"row\">\n <div v-if=\"catalogMode && !compact\" class=\"col-12 col-md-2\">\n <img\n :src=\"src\"\n alt=\"img\"\n class=\"catalog-img border border-dark\"\n :class=\"{'catalog-img--big': !compact}\"\n />\n </div>\n \n <div\n class=\"dataset-info-box-description-container col-12 col-md\"\n data-cy=\"dataset-description\"\n >\n <slot name=\"header\" v-if=\"compact\">\n <div data-cy=\"dataset-title\">\n <h2 class=\"card-title\">{{ datasetOrCatalogTitle }}</h2>\n </div>\n </slot>\n\n <slot name=\"description\">\n <pv-data-info-box-description\n v-if=\"!catalogMode || !compact\"\n :class=\"'mb-3'\"\n :description=\"dataset.description\"\n :description-max-length=\"descriptionMaxLength\"\n :truncate=\"descriptionMaxLength\"\n />\n </slot>\n \n <slot name=\"after-description\" />\n </div>\n <div\n v-if=\"dataset.formats && dataset.formats.length > 0\"\n class=\"dataset-info-box-badge-container col-12 mb-3\"\n :class=\"{ 'col-md-3': !compact }\"\n >\n <slot name=\"right\" :formats=\"dataset.formats\">\n <PvDataInfoBoxFormats :formats=\"dataset.formats\"></PvDataInfoBoxFormats>\n </slot>\n </div>\n <slot name=\"footer\" :dataset=\"dataset\" v-if=\"compact\">\n <PvDataInfoBoxFooter\n class=\"col-12\"\n :src=\"src\"\n :createdDate=\"null\"\n :updatedDate=\"null\"\n :catalog=\"catalogMode ? dataset.description : dataset.catalog\"\n />\n <!-- <div v-else class=\"dataset-info-box-footer\" /> -->\n </slot>\n </div>\n </div>\n </slot>\n\n <!-- Footer slot -->\n <slot name=\"footer\" :dataset=\"dataset\" v-if=\"!compact\">\n <PvDataInfoBoxFooter\n class=\"dataset-info-box-footer\"\n v-if=\"!catalogMode\"\n :src=\"src\"\n :createdDate=\"dataset.createdDate\"\n :updatedDate=\"dataset.updatedDate\"\n :catalog=\"dataset.catalog\"\n />\n <div v-else class=\"dataset-info-box-footer\" />\n </slot>\n </router-link>\n</template>\n\n<script lang=\"ts\">\nimport { Dataset } from \"../types/global\";\nimport {defineComponent, PropType} from \"vue\";\nimport type RouteLocationRaw from \"vue-router\";\n\nimport PvBadge from \"../PvBadge/PvBadge.vue\";\nimport PvDataInfoBoxFooter from \"./PvDataInfoBoxFooter.vue\";\nimport PvDataInfoBoxDescription from \"./PvDataInfoBoxDescription.vue\";\nimport PvDataInfoBoxFormats from \"./PvDataInfoBoxFormats.vue\"\n\nexport default defineComponent({\n name: \"PvDataInfoBox\",\n components: {\n PvBadge,\n PvDataInfoBoxFooter,\n PvDataInfoBoxDescription,\n PvDataInfoBoxFormats,\n },\n props: {\n /**\n * The dataset to display.\n */\n dataset: {\n type: Object as PropType<Dataset>,\n default: () =>\n ({\n title: \"\",\n description: \"\",\n catalog: \"\",\n createdDate: \"12.12.2023\",\n updatedDate: \"13.12.2023\",\n formats: [],\n } as Dataset),\n },\n\n /**\n * The route to navigate to when clicking on the dataset.\n */\n to: {\n type: [Object, String] as PropType<RouteLocationRaw | string>,\n required: true,\n },\n\n /**\n * Specified the maximum length of the description before it is cut off.\n */\n descriptionMaxLength: {\n type: Number,\n default: 200,\n },\n\n /**\n * Image source for the catalog logo/flag.\n */\n src: {\n type: String,\n default: \"\",\n },\n\n /**\n * If true, swaps to catalog display mode\n */\n catalogMode: {\n type: Boolean,\n default: false,\n },\n\n /**\n * If true switches from two column to one column layout\n * and decreases vertical distancing between elements.\n */\n compact: {\n type: Boolean,\n default: false,\n },\n },\n\n computed: {\n datasetOrCatalogTitle(): string {\n const { dataset, catalogMode } = this;\n return catalogMode\n ? dataset.title || dataset.catalog || \"\"\n : dataset.title || \"\";\n },\n },\n});\n</script>\n"],"names":["_hoisted_1","_hoisted_2","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_10","_resolveComponent","_openBlock","_createBlock","_component_router_link","_ctx","_normalizeClass","_withCtx","_createCommentVNode","_renderSlot","_createElementVNode","_cache","_createTextVNode","catalogMode","compact","_hoisted_4","_createElementBlock","_hoisted_8","_component_pv_data_info_box_description","descriptionMaxLength","dataset","_createVNode","_component_PvDataInfoBoxFormats","src","_component_PvDataInfoBoxFooter"],"mappings":";;;MAO2CA,IAAQ;AAAA,EAAA,OAAA;AAAA;GAQtCC,IAAA,EAAA,OAAM,iFAC2BC,IAAM;AAAA,EAAA,KAAA;AAAA;GAUxCC,IAAM,CAAA,KAAA,GACNC,IAAQ;AAAA,EAAA,OAAA;AAAA;oEAqDFC,IAAM;AAAA,EAAA,KAAA;AAAA;;;gHA/EtBC,EAiFc,aAAA;SA/EPC,EAAC,GAA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A,EAAA,QAAA;AAAA,QAAA,GAAA,MAAA,GAAA,CAAA,OAAA,eAAA,eAAA,SAAA,CAAA;AAAA;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import l from "../widgets/AppLink.vue.mjs";
2
2
  import { truncate as p, getTranslationFor as m } from "../utils/helpers.mjs";
3
- import { resolveComponent as u, openBlock as s, createElementBlock as n, createElementVNode as e, createTextVNode as o, toDisplayString as i, createVNode as f, withCtx as _ } from "vue";
4
- import g from "../assets/icon/icon-nextcircled.svg.mjs";
3
+ import { resolveComponent as u, openBlock as s, createElementBlock as n, createElementVNode as e, createTextVNode as o, toDisplayString as i, createVNode as f, withCtx as g } from "vue";
4
+ import _ from "../assets/icon/icon-nextcircled.svg.mjs";
5
5
  import "./CatalogPageDatasetCard.vue2.mjs";
6
6
  import x from "../_virtual/_plugin-vue_export-helper.mjs";
7
7
  const D = {
@@ -68,14 +68,13 @@ function L(r, t, a, M, N, d) {
68
68
  t[3] || (t[3] = o()),
69
69
  e("div", C, [
70
70
  f(c, { to: a.to }, {
71
- default: _(() => t[2] || (t[2] = [
71
+ default: g(() => [...t[2] || (t[2] = [
72
72
  e("img", {
73
- src: g,
73
+ src: _,
74
74
  alt: "Zum Datensatz"
75
75
  }, null, -1)
76
- ])),
77
- _: 1,
78
- __: [2]
76
+ ])]),
77
+ _: 1
79
78
  }, 8, ["to"])
80
79
  ])
81
80
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"CatalogPageDatasetCard.vue.mjs","sources":["../../lib/catalogues/CatalogPageDatasetCard.vue"],"sourcesContent":["<template>\n <div class=\"cp-dataset-card d-flex flex-column\">\n <div class=\"cp-dataset-card-caption\">\n <em>Empfehlung vom Datenbereitsteller</em>\n </div>\n <div class=\"cp-dataset-card-container d-flex flex-column justify-content-between\">\n <div class=\"cp-dataset-card-text\">\n <span class=\"cp-dataset-card-header\">{{ datasetTitle }}</span><br>\n \n <p v-if=\"datasetDescription\" class=\"cp-dataset-card-description\">\n {{ descriptionMaxLength ? truncatedDescription : datasetDescription }}\n </p>\n <span v-else class=\"cp-dataset-card-description text-muted font-italic m-0\" data-cy=\"dataset-description\">\n {{ $t(\"message.catalogsAndDatasets.noDescriptionAvailable\") }}\n </span>\n </div>\n <div class=\"cp-dataset-card-icon\" role=\"button\">\n <app-link :to=\"to\">\n <img src=\"../assets/icon/icon-nextcircled.svg\" alt=\"Zum Datensatz\">\n </app-link>\n </div>\n\n </div>\n </div>\n</template>\n\n<script>\nimport AppLink from \"../widgets/AppLink\";\n import { getTranslationFor, truncate } from '../utils/helpers';\n export default {\n name: \"DatasetCard\",\n components: {\n AppLink,\n },\n props: {\n /**\n * The dataset details to display.\n */\n datasetTitle: String,\n datasetDescription: String,\n datasetCatalog: String,\n\n /**\n * The route to navigate to when clicking on the dataset.\n */\n to: {\n type: String,\n required: true,\n },\n\n /**\n * Specified the maximum length of the description before it is cut off.\n */\n descriptionMaxLength: {\n type: Number,\n default: 200,\n },\n\n cardIcon: String\n },\n computed: {\n truncatedDescription() {\n return this.descriptionMaxLength && truncate(this.datasetDescription, this.descriptionMaxLength);\n },\n },\n methods: {\n getTranslationFor,\n },\n }\n</script>\n\n<style lang=\"scss\">\n .cp-dataset-card {\n padding: 25px;\n margin: 10px;\n height: 500px;\n width: 300px;\n border-radius: 12px;\n background-color: #F0EDED;\n }\n .cp-dataset-card-caption {\n font-size: 13px;\n }\n\n .cp-dataset-card-container {\n height: calc(100% - 20px);\n }\n .cp-dataset-card-text {\n margin-top: 80px;\n overflow: auto;\n margin-bottom: 15px;\n }\n\n .cp-dataset-card-header {\n font-size: 24px;\n line-height: 125%;\n }\n\n .cp-dataset-card-description {\n font-size: 16px;\n margin-top: 10px;\n }\n\n .cp-dataset-card-icon {\n text-align: end;\n }\n .cp-dataset-card-icon img {\n width: 25px;\n // filter: invert(15%) sepia(70%) saturate(2488%) hue-rotate(188deg) brightness(95%) contrast(102%);\n }\n</style>"],"names":["_sfc_main","AppLink","truncate","getTranslationFor","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","$props","_hoisted_5","$options","_hoisted_6","_ctx","_hoisted_7","_createVNode","_component_app_link","_cache","_imports_0"],"mappings":";;;;;;AA6BI,MAAKA,IAAU;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AAAA,IACR,SAAAC;AAAA,EACH;AAAA,EACD,OAAO;AAAA;AAAA;AAAA;AAAA,IAIP,cAAc;AAAA,IACd,oBAAoB;AAAA,IACpB,gBAAgB;AAAA;AAAA;AAAA;AAAA,IAKhB,IAAI;AAAA,MACF,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA;AAAA;AAAA;AAAA,IAKD,sBAAsB;AAAA,MACpB,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IAED,UAAU;AAAA,EACX;AAAA,EACD,UAAU;AAAA,IACR,uBAAuB;AACrB,aAAO,KAAK,wBAAwBC,EAAS,KAAK,oBAAoB,KAAK,oBAAoB;AAAA,IAChG;AAAA,EACF;AAAA,EACD,SAAS;AAAA,IACL,mBAAAC;AAAA,EACH;AACH,GAnEKC,IAAA,EAAA,OAAM,qCAAoC,GAIxCC,IAAA,EAAA,OAAM,uEAAsE,GACxEC,IAAA,EAAA,OAAM,uBAAsB,GACzBC,IAAA,EAAA,OAAM,yBAAwB;;EAEP,OAAM;;;EAGtB,OAAM;AAAA,EAAyD,WAAQ;;EAIjF,OAAM;AAAA,EAAuB,MAAK;;;;AAf7C,SAAAC,EAAA,GAAAC,EAsBM,OAtBNL,GAsBM;AAAA,oBArBJM,EAEM,OAAA,EAFD,OAAM,6BAAyB;AAAA,MAClCA,EAA0C,YAAtC,mCAAiC;AAAA;;IAEvCA,EAiBQ,OAjBRL,GAiBQ;AAAA,MAhBJK,EASM,OATNJ,GASM;AAAA,QARJI,EAA8D,QAA9DH,GAA8DI,EAAtBC,EAAY,YAAA,GAAA,CAAA;AAAA,wBAAUF,EAAI,MAAA,MAAA,MAAA,EAAA;AAAA;QAEzDE,EAAkB,sBAA3BJ,EAAA,GAAAC,EAEI,KAFJI,GAEIF,EADCC,yBAAuBE,EAAA,uBAAuBF,EAAkB,kBAAA,GAAA,CAAA,WAErEH,EAEO,QAFPM,GAEOJ,EADAK,EAAE,GAAA,oDAAA,CAAA,GAAA,CAAA;AAAA;;MAGXN,EAIM,OAJNO,GAIM;AAAA,QAHJC,EAEWC,GAAA,EAFA,IAAIP,EAAE,GAAA,GAAA;AAAA,qBACf,MAAmEQ,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,YAAnEV,EAAmE,OAAA;AAAA,cAA9D,KAAAW;AAAA,cAA0C,KAAI;AAAA;;;;;;;;;;"}
1
+ {"version":3,"file":"CatalogPageDatasetCard.vue.mjs","sources":["../../lib/catalogues/CatalogPageDatasetCard.vue"],"sourcesContent":["<template>\n <div class=\"cp-dataset-card d-flex flex-column\">\n <div class=\"cp-dataset-card-caption\">\n <em>Empfehlung vom Datenbereitsteller</em>\n </div>\n <div class=\"cp-dataset-card-container d-flex flex-column justify-content-between\">\n <div class=\"cp-dataset-card-text\">\n <span class=\"cp-dataset-card-header\">{{ datasetTitle }}</span><br>\n \n <p v-if=\"datasetDescription\" class=\"cp-dataset-card-description\">\n {{ descriptionMaxLength ? truncatedDescription : datasetDescription }}\n </p>\n <span v-else class=\"cp-dataset-card-description text-muted font-italic m-0\" data-cy=\"dataset-description\">\n {{ $t(\"message.catalogsAndDatasets.noDescriptionAvailable\") }}\n </span>\n </div>\n <div class=\"cp-dataset-card-icon\" role=\"button\">\n <app-link :to=\"to\">\n <img src=\"../assets/icon/icon-nextcircled.svg\" alt=\"Zum Datensatz\">\n </app-link>\n </div>\n\n </div>\n </div>\n</template>\n\n<script>\nimport AppLink from \"../widgets/AppLink\";\n import { getTranslationFor, truncate } from '../utils/helpers';\n export default {\n name: \"DatasetCard\",\n components: {\n AppLink,\n },\n props: {\n /**\n * The dataset details to display.\n */\n datasetTitle: String,\n datasetDescription: String,\n datasetCatalog: String,\n\n /**\n * The route to navigate to when clicking on the dataset.\n */\n to: {\n type: String,\n required: true,\n },\n\n /**\n * Specified the maximum length of the description before it is cut off.\n */\n descriptionMaxLength: {\n type: Number,\n default: 200,\n },\n\n cardIcon: String\n },\n computed: {\n truncatedDescription() {\n return this.descriptionMaxLength && truncate(this.datasetDescription, this.descriptionMaxLength);\n },\n },\n methods: {\n getTranslationFor,\n },\n }\n</script>\n\n<style lang=\"scss\">\n .cp-dataset-card {\n padding: 25px;\n margin: 10px;\n height: 500px;\n width: 300px;\n border-radius: 12px;\n background-color: #F0EDED;\n }\n .cp-dataset-card-caption {\n font-size: 13px;\n }\n\n .cp-dataset-card-container {\n height: calc(100% - 20px);\n }\n .cp-dataset-card-text {\n margin-top: 80px;\n overflow: auto;\n margin-bottom: 15px;\n }\n\n .cp-dataset-card-header {\n font-size: 24px;\n line-height: 125%;\n }\n\n .cp-dataset-card-description {\n font-size: 16px;\n margin-top: 10px;\n }\n\n .cp-dataset-card-icon {\n text-align: end;\n }\n .cp-dataset-card-icon img {\n width: 25px;\n // filter: invert(15%) sepia(70%) saturate(2488%) hue-rotate(188deg) brightness(95%) contrast(102%);\n }\n</style>"],"names":["_sfc_main","AppLink","truncate","getTranslationFor","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","$props","_hoisted_5","$options","_hoisted_6","_ctx","_hoisted_7","_createVNode","_component_app_link","_cache","_imports_0"],"mappings":";;;;;;AA6BI,MAAKA,IAAU;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AAAA,IACR,SAAAC;AAAA,EACH;AAAA,EACD,OAAO;AAAA;AAAA;AAAA;AAAA,IAIP,cAAc;AAAA,IACd,oBAAoB;AAAA,IACpB,gBAAgB;AAAA;AAAA;AAAA;AAAA,IAKhB,IAAI;AAAA,MACF,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA;AAAA;AAAA;AAAA,IAKD,sBAAsB;AAAA,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-316,9 +316,9 @@ function bt(t, e, l, p, r, i) {
316
316
  class: "btn btn-sm btn-primary d-flex align-items-center search-button",
317
317
  type: "button",
318
318
  onClick: e[3] || (e[3] = (o) => i.changeQuery(r.query))
319
- }, e[9] || (e[9] = [
319
+ }, [...e[9] || (e[9] = [
320
320
  s("i", { class: "material-icons" }, "search", -1)
321
- ]))
321
+ ])])
322
322
  ]),
323
323
  e[11] || (e[11] = a()),
324
324
  r.autocompleteData.show ? (d(), u("div", x, [
@@ -215,9 +215,9 @@ function w(t, e, a, i, n, r) {
215
215
  innerHTML: r.bibliographyHtml,
216
216
  "data-cy": "bibliography"
217
217
  }, null, 8, C)
218
- ])) : (s(), l("td", _, e[1] || (e[1] = [
218
+ ])) : (s(), l("td", _, [...e[1] || (e[1] = [
219
219
  o("div", null, "...", -1)
220
- ])))
220
+ ])]))
221
221
  ])
222
222
  ])
223
223
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"DatasetCitationTable.vue.mjs","sources":["../../lib/citation/DatasetCitationTable.vue"],"sourcesContent":["/**\n * Shows a table with the dataset citation based on the current state of DatasetDetails store.\n */\n\n<template>\n <div>\n <table class=\"table table-borderless table-responsive\">\n <tbody>\n <tr>\n <th scope=\"row\" class=\"text-muted font-weight-light\">\n {{ availableCitationStyles[citationStyle] }}\n </th>\n <td v-if=\"isReady\">\n <div ref=\"bibliography\" v-html=\"bibliographyHtml\" data-cy=\"bibliography\" />\n </td>\n <td v-else>\n <div>...</div>\n </td>\n </tr>\n </tbody>\n </table>\n <div class=\"mt-3 d-flex justify-content-start align-items-center\">\n <button class=\"btn btn-sm btn-outline-primary\" :disabled=\"!isReady\" @click=\"handleCopyToClipboard\"\n data-cy=\"citation-copy-to-clipboard\">\n {{ $t('message.cite.copyToClipboard') }}\n </button>\n </div>\n </div>\n\n</template>\n\n<script>\nimport { debounce } from 'lodash-es';\nimport { mapGetters } from 'vuex';\nimport { getRepresentativeLocaleOf } from '../utils/helpers';\n\nexport default {\n props: {\n modalId: {\n type: String,\n required: true,\n },\n citationStyle: {\n type: String,\n required: true,\n },\n availableCitationStyles: {\n type: Object,\n required: true,\n },\n },\n emits: ['ready'],\n data: () => ({\n currentCitationId: null,\n citation: null,\n // Currently unused, but might be useful in the future\n // exportFormats: {\n // bibtex: {\n // name: 'BibTeX',\n // format: 'bibtex',\n // args: ['biblatex'],\n // extension: 'bib',\n // },\n // datacite: {\n // name: 'DataCite XML',\n // format: 'datacite',\n // args: ['data'],\n // extension: 'xml',\n // // todo\n // disabled: true,\n // },\n // json: {\n // name: 'JSON',\n // format: 'json',\n // args: ['data', { format: 'object' }],\n // extension: 'json',\n // postprocess: o => JSON.stringify(o[0], null, 2),\n // },\n // jsonld: {\n // name: 'JSON-LD',\n // format: 'json-ld',\n // extension: 'jsonld',\n // // todo\n // disabled: true,\n // },\n // },\n }),\n computed: {\n ...mapGetters('datasetDetails', [\n 'getLoading',\n 'getID',\n ]),\n /**\n * Provide bibliography html based on current citation and citation style\n */\n bibliographyHtml() {\n if (!this.citation) {\n return '';\n }\n let bibliography = this.citation.format('bibliography', {\n format: 'html',\n template: this.citationStyle || 'apa',\n lang: 'en-US',\n });\n\n // Bibliography conditional post-processing\n // Remove Vancouver citation style numbering header from bibliography\n const isVancouver = this.citationStyle === 'vancouver';\n bibliography = bibliography && isVancouver\n ? bibliography.replace(/<div class=\"csl-left-margin\">\\d+\\. <\\/div>/g, '')\n : bibliography;\n\n return bibliography || '';\n },\n /**\n * Provide bibliography text for clipboard content\n */\n bibliographyText() {\n if (!this.citation) {\n return '';\n }\n\n const bibliographyText = this.citationStyle === 'vancouver'\n // If vancouver style, refer to html text content because it has postformatting applied\n ? this.$refs.bibliography.textContent.trim()\n // Otherwise, just format bibliography as text\n : this.citation.format('bibliography', {\n format: 'text',\n template: this.citationStyle || 'apa',\n lang: 'en-US',\n });\n\n return bibliographyText || '';\n },\n isReady() {\n this.$emit('ready');\n return !this.getLoading && this.citation && this.bibliographyHtml;\n },\n },\n watch: {\n // Update citation when dataset details are loaded\n // Uses watcher instead of computed property because computed is unable to\n // handle async code (i.e. citation retrieval per http request)\n getLoading: {\n /**\n * Assign citation object (CSL) based on current dataset in store to vm.citation\n */\n handler(isLoading) {\n if (isLoading) return;\n if (this.currentCitationId === this.getID) return;\n this.currentCitationId = this.getID;\n this.retrieveCitation(this);\n },\n immediate: false,\n },\n },\n async created() {\n const { plugins } = await import('@citation-js/core');\n\n await import('@citation-js/plugin-csl');\n await import('@citation-js/plugin-doi');\n\n const { default: installDcatStateToCsl } = await import('./plugins/dcat-state-to-csl');\n const { default: installCslAddAccessed } = await import('./plugins/csl-add-accessed');\n installDcatStateToCsl(plugins);\n installCslAddAccessed(plugins);\n\n const { default: deu } = await import('./template/deu');\n const styleConfig = plugins.config.get('@csl');\n if (styleConfig) {\n // styleConfig.templates.add(chicago.name, chicago.csl);\n // styleConfig.templates.add(datacite.name, datacite.csl);\n styleConfig.templates.add(deu.name, deu.csl);\n }\n\n this.retrieveCitation(this);\n },\n methods: {\n /**\n * Retrieves Citation Style Language (CSL) based on current dataset in store\n * Side-effect: sets vm.citation to the resulting citation object\n * @param vm Vue instance\n */\n retrieveCitation: async (vm) => {\n // Deep-clone state to avoid any unintended mutations while citation is generated\n const dataset = JSON.parse(JSON.stringify(vm.$store.state.datasetDetails.dataset));\n Object.freeze(dataset);\n\n if (!dataset || !dataset.id) return null;\n\n const citationParams = [{\n // Pass some additional data to the dataset object\n __meta: {\n // Pass the chosen dataset language for the bibliography\n lang: getRepresentativeLocaleOf(dataset.title, vm.$route.query.locale || 'en', dataset.languages),\n // Pass dataset URL for the bibliography\n url: `http://data.europa.eu/88u/dataset/${dataset.id || vm.$route.params.ds_id}`,\n skipDoiNegotiation: false,\n },\n ...dataset,\n }, {\n forceType: '@piveau/dcat-state',\n generateGraph: false,\n }];\n\n let citation = null;\n\n const { Cite } = await import('@citation-js/core')\n try {\n citation = await Cite.async(...citationParams);\n // eslint-disable-next-line no-param-reassign\n vm.citation = citation;\n return citation;\n } catch (e) {\n // eslint-disable-next-line no-console\n console.error(e);\n }\n\n // Retry by using manual citation generation as fallback\n // in case above DOI content negotiation service fails\n try {\n // eslint-disable-next-line no-underscore-dangle\n citationParams[0].__meta = { ...citationParams[0].__meta, skipDoiNegotiation: true };\n citation = await Cite.async(...citationParams);\n // eslint-disable-next-line no-param-reassign\n vm.citation = citation;\n return citation;\n } catch (e) {\n // eslint-disable-next-line no-console\n console.error(e);\n }\n\n return citation;\n },\n /**\n * Handle export of the citation\n *\n * @param {Object} format - The export format object\n * @param {String} format.args - The arguments to be passed into citation.format\n * @param {String} format.postprocess - A function to be called on the result of citation.format\n * @param {String} format.extension - The file extension\n * @param {String} format.filename - The filename\n */\n // handleCitationExport({\n // args,\n // postprocess = o => o,\n // extension,\n // filename = 'dataset',\n // }) {\n // const exportedCitation = this.citation.format(\n // ...args,\n // { graph: false },\n // );\n // const postprocessedCitation = postprocess(exportedCitation);\n\n // this.download(`${filename}.${extension}`, postprocessedCitation);\n // },\n /**\n * Download the given content as a file\n *\n * @see https://stackoverflow.com/a/45831280\n *\n * @param {String} filename - The filename\n * @param {String} content - The content to be downloaded\n */\n // download(filename, text) {\n // const element = document.createElement('a');\n // element.setAttribute('href', `data:text/plain;charset=utf-8,${encodeURIComponent(text)}`);\n // element.setAttribute('download', filename);\n\n // element.style.display = 'none';\n // document.body.appendChild(element);\n\n // element.click();\n\n // document.body.removeChild(element);\n // },\n /**\n * Copy the bibliography to the clipboard\n */\n async handleCopyToClipboard() {\n // Select the bibliography text\n window.getSelection().selectAllChildren(this.$refs.bibliography);\n\n // Copy the text to the clipboard\n try {\n await navigator.clipboard.writeText(this.bibliographyText);\n } catch (err) {\n // eslint-disable-next-line no-console\n console.error('Failed to copy to clipboard: ', err);\n }\n },\n },\n};\n</script>\n"],"names":["_sfc_main","mapGetters","bibliography","isVancouver","isLoading","plugins","installDcatStateToCsl","installCslAddAccessed","deu","styleConfig","vm","dataset","citationParams","getRepresentativeLocaleOf","citation","Cite","e","err","_hoisted_1","_hoisted_6","_createElementBlock","_createElementVNode","_hoisted_2","_toDisplayString","$props","$options","_hoisted_3","_hoisted_5","_cache","args","_ctx","_hoisted_7"],"mappings":";;;;;AAoCA,MAAKA,IAAU;AAAA,EACb,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IACD,eAAe;AAAA,MACb,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IACD,yBAAyB;AAAA,MACvB,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACF;AAAA,EACD,OAAO,CAAC,OAAO;AAAA,EACf,MAAM,OAAO;AAAA,IACX,mBAAmB;AAAA,IACnB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgCZ;AAAA,EACA,UAAU;AAAA,IACR,GAAGC,EAAW,kBAAkB;AAAA,MAC9B;AAAA,MACA;AAAA,IACF,CAAC;AAAA;AAAA;AAAA;AAAA,IAID,mBAAmB;AACjB,UAAI,CAAC,KAAK;AACR,eAAO;AAET,UAAIC,IAAe,KAAK,SAAS,OAAO,gBAAgB;AAAA,QACtD,QAAQ;AAAA,QACR,UAAU,KAAK,iBAAiB;AAAA,QAChC,MAAM;AAAA,MACR,CAAC;AAID,YAAMC,IAAc,KAAK,kBAAkB;AAC3C,aAAAD,IAAeA,KAAgBC,IAC3BD,EAAa,QAAQ,+CAA+C,EAAE,IACtEA,GAEGA,KAAgB;AAAA,IACxB;AAAA;AAAA;AAAA;AAAA,IAID,mBAAmB;AACjB,aAAK,KAAK,aAIe,KAAK,kBAAkB,cAE5C,KAAK,MAAM,aAAa,YAAY,KAAK,IAEzC,KAAK,SAAS,OAAO,gBAAgB;AAAA,QACrC,QA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AAAA,IACD;AAAA,EACF;AACH,GA/RWC,IAAA,EAAA,OAAM,0CAAyC;EAG5C,OAAM;AAAA,EAAM,OAAM;sDAYvBC,IAAA,EAAA,OAAM,uDAAsD;;cAhBnEC,EAsBM,OAAA,MAAA;AAAA,IArBJC,EAcQ,SAdRH,GAcQ;AAAA,MAbNG,EAYQ,SAAA,MAAA;AAAA,QAXNA,EAUK,MAAA,MAAA;AAAA,UATHA,EAEK,MAFLC,GACKC,EAAAC,EAAA,wBAAwBA,EAAa,aAAA,CAAA,GAAA,CAAA;AAAA;UAEhCC,EAAO,gBAAjBL,EAEK,MAAAM,GAAA;AAAA,YADHL,EAA2E,OAAA;AAAA,cAAtE,KAAI;AAAA,cAAe,WAAQI,EAAgB;AAAA,cAAE,WAAQ;AAAA;sBAE5DL,EAEK,MAAAO,GAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,YADHP,EAAc,aAAT,OAAG,EAAA;AAAA;;;;;IAKhBA,EAKM,OALNF,GAKM;AAAA,MAJJE,EAGS,UAAA;AAAA,QAHD,OAAM;AAAA,QAAkC,WAAWI,EAAO;AAAA,QAAG,mCAAOA,EAAqB,yBAAAA,EAAA,sBAAA,GAAAI,CAAA;AAAA,QAC/F,WAAQ;AAAA,WACLC,EAAE,GAAA,8BAAA,CAAA,GAAA,GAAAC,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"DatasetCitationTable.vue.mjs","sources":["../../lib/citation/DatasetCitationTable.vue"],"sourcesContent":["/**\n * Shows a table with the dataset citation based on the current state of DatasetDetails store.\n */\n\n<template>\n <div>\n <table class=\"table table-borderless table-responsive\">\n <tbody>\n <tr>\n <th scope=\"row\" class=\"text-muted font-weight-light\">\n {{ availableCitationStyles[citationStyle] }}\n </th>\n <td v-if=\"isReady\">\n <div ref=\"bibliography\" v-html=\"bibliographyHtml\" data-cy=\"bibliography\" />\n </td>\n <td v-else>\n <div>...</div>\n </td>\n </tr>\n </tbody>\n </table>\n <div class=\"mt-3 d-flex justify-content-start align-items-center\">\n <button class=\"btn btn-sm btn-outline-primary\" :disabled=\"!isReady\" @click=\"handleCopyToClipboard\"\n data-cy=\"citation-copy-to-clipboard\">\n {{ $t('message.cite.copyToClipboard') }}\n </button>\n </div>\n </div>\n\n</template>\n\n<script>\nimport { debounce } from 'lodash-es';\nimport { mapGetters } from 'vuex';\nimport { getRepresentativeLocaleOf } from '../utils/helpers';\n\nexport default {\n props: {\n modalId: {\n type: String,\n required: true,\n },\n citationStyle: {\n type: String,\n required: true,\n },\n availableCitationStyles: {\n type: Object,\n required: true,\n },\n },\n emits: ['ready'],\n data: () => ({\n currentCitationId: null,\n citation: null,\n // Currently unused, but might be useful in the future\n // exportFormats: {\n // bibtex: {\n // name: 'BibTeX',\n // format: 'bibtex',\n // args: ['biblatex'],\n // extension: 'bib',\n // },\n // datacite: {\n // name: 'DataCite XML',\n // format: 'datacite',\n // args: ['data'],\n // extension: 'xml',\n // // todo\n // disabled: true,\n // },\n // json: {\n // name: 'JSON',\n // format: 'json',\n // args: ['data', { format: 'object' }],\n // extension: 'json',\n // postprocess: o => JSON.stringify(o[0], null, 2),\n // },\n // jsonld: {\n // name: 'JSON-LD',\n // format: 'json-ld',\n // extension: 'jsonld',\n // // todo\n // disabled: true,\n // },\n // },\n }),\n computed: {\n ...mapGetters('datasetDetails', [\n 'getLoading',\n 'getID',\n ]),\n /**\n * Provide bibliography html based on current citation and citation style\n */\n bibliographyHtml() {\n if (!this.citation) {\n return '';\n }\n let bibliography = this.citation.format('bibliography', {\n format: 'html',\n template: this.citationStyle || 'apa',\n lang: 'en-US',\n });\n\n // Bibliography conditional post-processing\n // Remove Vancouver citation style numbering header from bibliography\n const isVancouver = this.citationStyle === 'vancouver';\n bibliography = bibliography && isVancouver\n ? bibliography.replace(/<div class=\"csl-left-margin\">\\d+\\. <\\/div>/g, '')\n : bibliography;\n\n return bibliography || '';\n },\n /**\n * Provide bibliography text for clipboard content\n */\n bibliographyText() {\n if (!this.citation) {\n return '';\n }\n\n const bibliographyText = this.citationStyle === 'vancouver'\n // If vancouver style, refer to html text content because it has postformatting applied\n ? this.$refs.bibliography.textContent.trim()\n // Otherwise, just format bibliography as text\n : this.citation.format('bibliography', {\n format: 'text',\n template: this.citationStyle || 'apa',\n lang: 'en-US',\n });\n\n return bibliographyText || '';\n },\n isReady() {\n this.$emit('ready');\n return !this.getLoading && this.citation && this.bibliographyHtml;\n },\n },\n watch: {\n // Update citation when dataset details are loaded\n // Uses watcher instead of computed property because computed is unable to\n // handle async code (i.e. citation retrieval per http request)\n getLoading: {\n /**\n * Assign citation object (CSL) based on current dataset in store to vm.citation\n */\n handler(isLoading) {\n if (isLoading) return;\n if (this.currentCitationId === this.getID) return;\n this.currentCitationId = this.getID;\n this.retrieveCitation(this);\n },\n immediate: false,\n },\n },\n async created() {\n const { plugins } = await import('@citation-js/core');\n\n await import('@citation-js/plugin-csl');\n await import('@citation-js/plugin-doi');\n\n const { default: installDcatStateToCsl } = await import('./plugins/dcat-state-to-csl');\n const { default: installCslAddAccessed } = await import('./plugins/csl-add-accessed');\n installDcatStateToCsl(plugins);\n installCslAddAccessed(plugins);\n\n const { default: deu } = await import('./template/deu');\n const styleConfig = plugins.config.get('@csl');\n if (styleConfig) {\n // styleConfig.templates.add(chicago.name, chicago.csl);\n // styleConfig.templates.add(datacite.name, datacite.csl);\n styleConfig.templates.add(deu.name, deu.csl);\n }\n\n this.retrieveCitation(this);\n },\n methods: {\n /**\n * Retrieves Citation Style Language (CSL) based on current dataset in store\n * Side-effect: sets vm.citation to the resulting citation object\n * @param vm Vue instance\n */\n retrieveCitation: async (vm) => {\n // Deep-clone state to avoid any unintended mutations while citation is generated\n const dataset = JSON.parse(JSON.stringify(vm.$store.state.datasetDetails.dataset));\n Object.freeze(dataset);\n\n if (!dataset || !dataset.id) return null;\n\n const citationParams = [{\n // Pass some additional data to the dataset object\n __meta: {\n // Pass the chosen dataset language for the bibliography\n lang: getRepresentativeLocaleOf(dataset.title, vm.$route.query.locale || 'en', dataset.languages),\n // Pass dataset URL for the bibliography\n url: `http://data.europa.eu/88u/dataset/${dataset.id || vm.$route.params.ds_id}`,\n skipDoiNegotiation: false,\n },\n ...dataset,\n }, {\n forceType: '@piveau/dcat-state',\n generateGraph: false,\n }];\n\n let citation = null;\n\n const { Cite } = await import('@citation-js/core')\n try {\n citation = await Cite.async(...citationParams);\n // eslint-disable-next-line no-param-reassign\n vm.citation = citation;\n return citation;\n } catch (e) {\n // eslint-disable-next-line no-console\n console.error(e);\n }\n\n // Retry by using manual citation generation as fallback\n // in case above DOI content negotiation service fails\n try {\n // eslint-disable-next-line no-underscore-dangle\n citationParams[0].__meta = { ...citationParams[0].__meta, skipDoiNegotiation: true };\n citation = await Cite.async(...citationParams);\n // eslint-disable-next-line no-param-reassign\n vm.citation = citation;\n return citation;\n } catch (e) {\n // eslint-disable-next-line no-console\n console.error(e);\n }\n\n return citation;\n },\n /**\n * Handle export of the citation\n *\n * @param {Object} format - The export format object\n * @param {String} format.args - The arguments to be passed into citation.format\n * @param {String} format.postprocess - A function to be called on the result of citation.format\n * @param {String} format.extension - The file extension\n * @param {String} format.filename - The filename\n */\n // handleCitationExport({\n // args,\n // postprocess = o => o,\n // extension,\n // filename = 'dataset',\n // }) {\n // const exportedCitation = this.citation.format(\n // ...args,\n // { graph: false },\n // );\n // const postprocessedCitation = postprocess(exportedCitation);\n\n // this.download(`${filename}.${extension}`, postprocessedCitation);\n // },\n /**\n * Download the given content as a file\n *\n * @see https://stackoverflow.com/a/45831280\n *\n * @param {String} filename - The filename\n * @param {String} content - The content to be downloaded\n */\n // download(filename, text) {\n // const element = document.createElement('a');\n // element.setAttribute('href', `data:text/plain;charset=utf-8,${encodeURIComponent(text)}`);\n // element.setAttribute('download', filename);\n\n // element.style.display = 'none';\n // document.body.appendChild(element);\n\n // element.click();\n\n // document.body.removeChild(element);\n // },\n /**\n * Copy the bibliography to the clipboard\n */\n async handleCopyToClipboard() {\n // Select the bibliography text\n window.getSelection().selectAllChildren(this.$refs.bibliography);\n\n // Copy the text to the clipboard\n try {\n await navigator.clipboard.writeText(this.bibliographyText);\n } catch (err) {\n // eslint-disable-next-line no-console\n console.error('Failed to copy to clipboard: ', err);\n }\n },\n },\n};\n</script>\n"],"names":["_sfc_main","mapGetters","bibliography","isVancouver","isLoading","plugins","installDcatStateToCsl","installCslAddAccessed","deu","styleConfig","vm","dataset","citationParams","getRepresentativeLocaleOf","citation","Cite","e","err","_hoisted_1","_hoisted_6","_createElementBlock","_createElementVNode","_hoisted_2","_toDisplayString","$props","$options","_hoisted_3","_hoisted_5","_cache","args","_ctx","_hoisted_7"],"mappings":";;;;;AAoCA,MAAKA,IAAU;AAAA,EACb,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IACD,eAAe;AAAA,MACb,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IACD,yBAAyB;AAAA,MACvB,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACF;AAAA,EACD,OAAO,CAAC,OAAO;AAAA,EACf,MAAM,OAAO;AAAA,IACX,mBAAmB;AAAA,IACnB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgCZ;AAAA,EACA,UAAU;AAAA,IACR,GAAGC,EAAW,kBAAkB;AAAA,MAC9B;AAAA,MACA;AAAA,IACF,CAAC;AAAA;AAAA;AAAA;AAAA,IAID,mBAAmB;AACjB,UAAI,CAAC,KAAK;AACR,eAAO;AAET,UAAIC,IAAe,KAAK,SAAS,OAAO,gBAAgB;AAAA,QACtD,QAAQ;AAAA,QACR,UAAU,KAAK,iBAAiB;AAAA,QAChC,MAAM;AAAA,MACR,CAAC;AAID,YAAMC,I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Service: boolean;
23
22
  login: {
24
23
  useLogin: boolean;
25
24
  loginTitle: string;
@@ -29,6 +28,7 @@ export declare function useRuntimeEnv(): {
29
28
  logoutURL: string;
30
29
  logoutRedirectUri: string;
31
30
  };
31
+ useService: boolean;
32
32
  keycloak: {
33
33
  realm: string;
34
34
  clientId: string;
@@ -2116,7 +2116,6 @@ export declare const configSchema: z.ZodObject<{
2116
2116
  corsproxyApiUrl: string;
2117
2117
  };
2118
2118
  authentication: {
2119
- useService: boolean;
2120
2119
  login: {
2121
2120
  useLogin: boolean;
2122
2121
  loginTitle: string;
@@ -2126,6 +2125,7 @@ export declare const configSchema: z.ZodObject<{
2126
2125
  logoutURL: string;
2127
2126
  logoutRedirectUri: string;
2128
2127
  };
2128
+ useService: boolean;
2129
2129
  keycloak: {
2130
2130
  realm: string;
2131
2131
  clientId: string;