@piveau/piveau-hub-ui-modules 4.6.65 → 4.6.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PvBadge/PvBadge.vue.mjs.map +1 -1
- package/dist/PvDataInfoBox/PvDataInfoBox.vue.mjs +2 -1
- package/dist/PvDataInfoBox/PvDataInfoBox.vue.mjs.map +1 -1
- package/dist/PvDataInfoBox/PvDataInfoBoxDescription.vue.mjs.map +1 -1
- package/dist/PvDataInfoBox/PvDataInfoBoxFooter.vue.mjs.map +1 -1
- package/dist/PvDataInfoBox/PvDataInfoBoxFormats.vue.mjs.map +1 -1
- package/dist/catalogues/CatalogPage.vue.mjs.map +1 -1
- package/dist/catalogues/CatalogPageDatasetCard.vue.mjs +6 -5
- package/dist/catalogues/CatalogPageDatasetCard.vue.mjs.map +1 -1
- package/dist/catalogues/Catalogues.vue.mjs.map +1 -1
- package/dist/catalogues/cataloguesFacets/CataloguesFacets.vue.mjs.map +1 -1
- package/dist/citation/DatasetCitationModal.vue.mjs.map +1 -1
- package/dist/citation/DatasetCitationTable.vue.mjs.map +1 -1
- package/dist/composables/useRuntimeEnv.d.ts +2 -2
- package/dist/configurations/config-schema/apiSchema.mjs +1 -1
- package/dist/configurations/config-schema/authenticationSchema.mjs +1 -1
- package/dist/configurations/config-schema/configSchema.d.ts +5 -5
- package/dist/configurations/config-schema/configSchema.mjs +18 -18
- package/dist/configurations/config-schema/contentSchema.mjs +1 -1
- package/dist/configurations/config-schema/languagesSchema.d.ts +2 -2
- package/dist/configurations/config-schema/languagesSchema.mjs +1 -1
- package/dist/configurations/config-schema/metadataSchema.mjs +1 -1
- package/dist/configurations/config-schema/routingSchema.mjs +1 -1
- package/dist/configurations/config-schema/themesSchema.mjs +1 -1
- package/dist/configurations/config-schema/trackerSchema.mjs +1 -1
- package/dist/data-provider-interface/CatalogueMQA.vue.mjs.map +1 -1
- package/dist/data-provider-interface/DPIMenu.vue.d.ts +10 -10
- package/dist/data-provider-interface/DPIMenu.vue.mjs.map +1 -1
- package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +15 -17
- package/dist/data-provider-interface/DataProviderInterface.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/DataFetchingComponent.vue.d.ts +2 -2
- package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +2 -1
- package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/Dropup.vue.d.ts +1 -1
- package/dist/data-provider-interface/components/Dropup.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/FileUpload.vue.d.ts +1 -1
- package/dist/data-provider-interface/components/FileUpload.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/InfoSlot.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/InputPageStep.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/LanguageSelector.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/Navigation.vue.d.ts +8 -8
- package/dist/data-provider-interface/components/Navigation.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SelectControlledGroup.vue.mjs +2 -1
- package/dist/data-provider-interface/components/SelectControlledGroup.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SimpleInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SimpleSelect.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SpatialInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/WidgetInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/DistributionInputPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/DistributionOverview.vue.d.ts +2 -2
- package/dist/data-provider-interface/views/DistributionOverview.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/DraftsPage.vue.d.ts +5 -5
- package/dist/data-provider-interface/views/DraftsPage.vue.mjs +19 -14
- package/dist/data-provider-interface/views/DraftsPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.d.ts +12 -14
- package/dist/data-provider-interface/views/InputPage.vue.mjs +4 -2
- package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/LinkedDataViewer.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/Properties/MultilingualProp.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/Properties/StringProp.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/Properties/URLProp.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage.vue.d.ts +3 -5
- package/dist/data-provider-interface/views/OverviewPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/PropertyChooser.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/UserProfilePage.vue.mjs.map +1 -1
- package/dist/datasetDetails/AppMarkdownContent.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetails.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsActivityStream.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsBanners.vue.d.ts +1 -3
- package/dist/datasetDetails/DatasetDetailsBanners.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsCSVLinter.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsCategories.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs +2 -1
- package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsDescription.vue.d.ts +1 -3
- package/dist/datasetDetails/DatasetDetailsDescription.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsFeedbackButton.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsLinkedMetricsButton.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsQuality.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsShareButton.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsSimilarDatasets.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsSkeleton.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/Distribution.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/DistributionAdded.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/DistributionDownloadAsModal.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/DistributionFormat.vue.d.ts +2 -2
- package/dist/datasetDetails/distributions/DistributionFormat.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/Distributions.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/DistributionsHeader.vue.d.ts +4 -4
- package/dist/datasetDetails/distributions/DistributionsHeader.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.d.ts +8 -8
- package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.mjs +2 -1
- package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/FadingDistributionOverlay.vue.mjs +7 -5
- package/dist/datasetDetails/distributions/FadingDistributionOverlay.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs +6 -5
- package/dist/datasetDetails/distributions/distributionActions/DistributionActions.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.d.ts +2 -2
- package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.mjs +15 -12
- package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionDownloadAs.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionDropdownDownload.vue.d.ts +2 -2
- package/dist/datasetDetails/distributions/distributionActions/DistributionDropdownDownload.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionOptionsDropdown.vue.d.ts +4 -4
- package/dist/datasetDetails/distributions/distributionActions/DistributionOptionsDropdown.vue.mjs +6 -5
- package/dist/datasetDetails/distributions/distributionActions/DistributionOptionsDropdown.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionPreview.vue.d.ts +4 -4
- package/dist/datasetDetails/distributions/distributionActions/DistributionPreview.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.d.ts +4 -4
- package/dist/datasetDetails/distributions/distributionActions/DistributionVisualizeButton.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionActions/LinkedDataButtonsDropdown.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs +22 -21
- package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionDetails/DistributionDescription.vue.d.ts +6 -6
- package/dist/datasetDetails/distributions/distributionDetails/DistributionDescription.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionDetails/DistributionDetails.vue.d.ts +16 -16
- package/dist/datasetDetails/distributions/distributionDetails/DistributionDetails.vue.mjs.map +1 -1
- package/dist/datasetDetails/distributions/distributionDetails/DistributionExpand.vue.d.ts +2 -2
- package/dist/datasetDetails/distributions/distributionDetails/DistributionExpand.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsCategoriesKey.vue.d.ts +1 -1
- package/dist/datasetDetails/features/DatasetDetailsCategoriesKey.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsDataServices.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsFeatureHeader.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.d.ts +2 -2
- package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsHvdThemes.vue.d.ts +1 -1
- package/dist/datasetDetails/features/DatasetDetailsHvdThemes.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsIsUsedBy.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsKeywords.vue.d.ts +1 -1
- package/dist/datasetDetails/features/DatasetDetailsKeywords.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsMap.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsPages.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsRelations.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsSubject.vue.d.ts +1 -1
- package/dist/datasetDetails/features/DatasetDetailsSubject.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsVisualisations.vue.mjs.map +1 -1
- package/dist/datasetDetails/header/DatasetDetailsHeader.vue.mjs.map +1 -1
- package/dist/datasetDetails/header/DatasetDetailsHeaderCatalogue.vue.d.ts +2 -2
- package/dist/datasetDetails/header/DatasetDetailsHeaderCatalogue.vue.mjs.map +1 -1
- package/dist/datasetDetails/header/DatasetDetailsHeaderTitle.vue.d.ts +2 -2
- package/dist/datasetDetails/header/DatasetDetailsHeaderTitle.vue.mjs.map +1 -1
- package/dist/datasetDetails/navigation/DatasetDetailsNavigation.vue.mjs.map +1 -1
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +2 -2
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.mjs.map +1 -1
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationPage.vue.mjs.map +1 -1
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationPages.vue.d.ts +7 -1
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationPages.vue.mjs.map +1 -1
- package/dist/datasetDetails/properties/DatasetDetailsProperties.vue.d.ts +200 -1
- package/dist/datasetDetails/properties/DatasetDetailsProperties.vue.mjs.map +1 -1
- package/dist/datasetDetails/properties/DatasetDetailsProperty.vue.mjs.map +1 -1
- package/dist/datasetDetails/properties/ValuesList.vue.mjs.map +1 -1
- package/dist/datasets/DatasetDate.vue.mjs.map +1 -1
- package/dist/datasets/DatasetList.vue.mjs.map +1 -1
- package/dist/datasets/Datasets.vue.mjs.map +1 -1
- package/dist/datasets/DatasetsFilters.vue.d.ts +1 -1
- package/dist/datasets/DatasetsFilters.vue.mjs.map +1 -1
- package/dist/datasets/DatasetsFiltersTabs.vue.d.ts +2 -2
- package/dist/datasets/DatasetsFiltersTabs.vue.mjs.map +1 -1
- package/dist/datasets/DatasetsTopControls.vue.d.ts +5 -5
- package/dist/datasets/DatasetsTopControls.vue.mjs +8 -6
- package/dist/datasets/DatasetsTopControls.vue.mjs.map +1 -1
- package/dist/datasets/datasetsFacets/DatasetsFacets.vue.mjs.map +1 -1
- package/dist/datasets/datasetsFacets/DatasetsFacetsItem.vue.mjs.map +1 -1
- package/dist/datasets/datasetsFacets/DatasetsMapFacet.vue.mjs.map +1 -1
- package/dist/embed/DatasetEmbedModal.vue.mjs.map +1 -1
- package/dist/embed/EmbedDataset.vue.mjs.map +1 -1
- package/dist/embed/EmbedDatasetSnippet.vue.mjs.map +1 -1
- package/dist/external/zod/dist/esm/v3/ZodError +84 -0
- package/dist/external/zod/dist/esm/v3/ZodError.map +1 -0
- package/dist/external/zod/dist/esm/v3/errors +10 -0
- package/dist/external/zod/dist/esm/v3/errors.map +1 -0
- package/dist/external/zod/dist/esm/v3/helpers/errorUtil +8 -0
- package/dist/external/zod/dist/esm/v3/helpers/errorUtil.map +1 -0
- package/dist/external/zod/dist/esm/v3/helpers/parseUtil +98 -0
- package/dist/external/zod/dist/esm/v3/helpers/parseUtil.map +1 -0
- package/dist/external/zod/dist/esm/v3/helpers/util +95 -0
- package/dist/external/zod/dist/esm/v3/helpers/util.map +1 -0
- package/dist/external/zod/dist/esm/v3/locales/en +62 -0
- package/dist/external/zod/dist/esm/v3/locales/en.map +1 -0
- package/dist/external/zod/dist/esm/v3/types +2440 -0
- package/dist/external/zod/dist/esm/v3/types.map +1 -0
- package/dist/facets/CatalogDetailsFacet.vue.mjs.map +1 -1
- package/dist/facets/ExpandableSelectFacet.vue.mjs.map +1 -1
- package/dist/facets/Facet.vue.mjs.map +1 -1
- package/dist/facets/FacetTitle.vue.mjs.map +1 -1
- package/dist/facets/RadioFacet.vue.mjs.map +1 -1
- package/dist/facets/SelectedFacetsOverview.vue.d.ts +2 -2
- package/dist/facets/SelectedFacetsOverview.vue.mjs.map +1 -1
- package/dist/form/FormKitGroup.vue.mjs.map +1 -1
- package/dist/form/Repeatable.vue2.mjs +2 -1
- package/dist/form/Repeatable.vue2.mjs.map +1 -1
- package/dist/map/MapBasic.vue.mjs.map +1 -1
- package/dist/map/MapBoundsReceiver.vue.mjs.map +1 -1
- package/dist/map/MapBoundsSender.vue.mjs.map +1 -1
- package/dist/modal/AppConfirmationDialog.vue.mjs.map +1 -1
- package/dist/modal/AppSnackbar.vue.mjs.map +1 -1
- package/dist/modal/AppToast.vue.mjs.map +1 -1
- package/dist/navigation/SubNavigation.vue.mjs.map +1 -1
- package/dist/pages/NotFound.vue.mjs.map +1 -1
- package/dist/pages/SparqlSearch.vue.mjs.map +1 -1
- package/dist/pages/user/UserImprint.vue.mjs.map +1 -1
- package/dist/pages/user/UserPrivacyPolicy.vue.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/dist/search/Search.vue.mjs.map +1 -1
- package/dist/services/bulkDownloadCorsProxyService.mjs +37 -20
- package/dist/services/bulkDownloadCorsProxyService.mjs.map +1 -1
- package/dist/services/datasetService.d.ts +1 -1
- package/dist/widgets/AppLink.vue.mjs.map +1 -1
- package/dist/widgets/Dropdown.vue.mjs.map +1 -1
- package/dist/widgets/Pagination.vue.d.ts +1 -1
- package/dist/widgets/Pagination.vue.mjs.map +1 -1
- package/dist/widgets/PropertyValue.vue.mjs.map +1 -1
- package/dist/widgets/PvBanner.vue.mjs.map +1 -1
- package/dist/widgets/PvButton.vue.mjs.map +1 -1
- package/dist/widgets/PvShowMore.vue.mjs.map +1 -1
- package/dist/widgets/ResourceAccessPopup.vue.d.ts +1 -1
- package/dist/widgets/ResourceAccessPopup.vue.mjs.map +1 -1
- package/dist/widgets/ResourceDetailsLinkedDataButton.vue.mjs.map +1 -1
- package/dist/widgets/Tooltip.vue.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/external/zod/lib/index +0 -2849
- package/dist/external/zod/lib/index.map +0 -1
package/dist/datasetDetails/distributions/distributionDetails/DistributionDetails.vue.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributionDetails.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionDetails/DistributionDetails.vue"],"sourcesContent":["<template>\n <div class=\"flex-grow-1 d-flex distribution-details\">\n <div class=\"col-sm-12 col-md-9 col-lg-7\">\n <h3 class=\"m-0\">{{ getDistributionTitle(distribution) }}</h3>\n <distribution-description\n :distribution=\"distribution\"\n :distributions=\"distributions\"\n :distributionDescriptionIsExpanded=\"distributionDescriptionIsExpanded\"\n :getDistributionDescription=\"getDistributionDescription\"\n :toggleDistributionDescription=\"toggleDistributionDescription\"\n :distributionDescriptionIsExpandable=\"distributionDescriptionIsExpandable\"\n />\n <distribution-expanded-content\n :contentList=\"distributionVisibleExpandedContent\"\n :distribution=\"distribution\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n :showLicensingAssistant=\"showLicensingAssistant\"\n :showLicence=\"showLicence\"\n :filterDateFormatEU=\"filterDateFormatEU\"\n :showArray=\"showArray\"\n :showNumber=\"showNumber\"\n :showObject=\"showObject\"\n :showObjectArray=\"showObjectArray\"\n :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n />\n <distribution-visible-content\n :contentList=\"distributionVisibleContent\"\n :distribution=\"distribution\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n :showLicensingAssistant=\"showLicensingAssistant\"\n :showLicence=\"showLicence\"\n :filterDateFormatEU=\"filterDateFormatEU\"\n :showArray=\"showArray\"\n :showNumber=\"showNumber\"\n :showObject=\"showObject\"\n :showObjectArray=\"showObjectArray\"\n :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n />\n <distribution-expand\n :distribution=\"distribution\"\n :distributionCanShowMore=\"distributionCanShowMore\"\n :toggleDistribution=\"toggleDistribution\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport {\n has,\n isNil,\n isArray,\n isObject,\n isString,\n isNumber,\n isEmpty,\n} from 'lodash';\nimport DistributionDescription\n from \"../../../datasetDetails/distributions/distributionDetails/DistributionDescription\";\nimport DistributionExpandedContent\n from \"../../../datasetDetails/distributions/distributionDetails/DistributionExpandedContent\";\nimport DistributionVisibleContent\n from \"../../../datasetDetails/distributions/distributionDetails/DistributionVisibleContent\";\nimport DistributionExpand from \"../../../datasetDetails/distributions/distributionDetails/DistributionExpand\";\nexport default {\n name: \"DistributionDetails\",\n components: {\n DistributionExpand,\n DistributionVisibleContent,\n DistributionExpandedContent,\n DistributionDescription\n },\n props: [\n \"getDistributionTitle\",\n \"distribution\",\n \"distributions\",\n \"distributionDescriptionIsExpanded\",\n \"getDistributionDescription\",\n \"toggleDistributionDescription\",\n \"distributionDescriptionIsExpandable\",\n \"distributionIsExpanded\",\n \"distributionVisibleContent\",\n \"distributionExpandedContent\",\n \"showLicensingAssistant\",\n \"showLicence\",\n \"filterDateFormatEU\",\n \"showArray\",\n \"showNumber\",\n \"showObject\",\n \"showObjectArray\",\n \"appendCurrentLocaleToURL\",\n \"toggleDistribution\"\n ],\n computed: {\n distributionVisibleExpandedContent() {\n return [...new Set(this.distributionVisibleContent\n .concat(this.distributionExpandedContent))];\n },\n distributionExtraContent() {\n return this.distributionExpandedContent\n .filter(item => !this.distributionVisibleContent.includes(item))\n },\n },\n methods: {\n distributionCanShowMore(distribution) {\n return this.distributionExtraContent.reduce((accu, item) => {\n switch (item) {\n case 'license': return accu || (has(distribution, 'licence'))\n case 'licenseAttributionByText': return accu || has(distribution , 'licenseAttributionByText') && (!isNil(distribution.licenseAttributionByText) && !isNil(getTranslationFor(distribution.licenseAttributionByText)))\n case 'modificationDate': return accu || has(distribution, 'modificationDate') && !isNil(distribution.modificationDate)\n case 'releaseDate': return accu || (has(distribution, 'releaseDate') && !isNil(distribution.releaseDate))\n case 'availability': return accu || (has(distribution, 'availability') && this.showObject(distribution.availability) && !isNil(distribution.availability.label))\n case 'status': return accu || (has(distribution, 'status') && this.showObject(distribution.status))\n case 'rights': return accu || (has(distribution, 'rights') && this.showObject(distribution.rights))\n case 'mediaType': return accu || (has(distribution, 'mediaType') && !isNil(distribution.mediaType))\n case 'byteSize': return accu || (has(distribution, 'byteSize') && !isNil(distribution.byteSize))\n case 'checksum': return accu || (has(distribution, 'checksum') && !isNil(distribution.checksum) && has(distribution.checksum, 'algorithm') && !isNil(distribution.checksum.algorithm) && has(distribution.checksum, 'checksum_value') && !isNil(distribution.checksum.checksum_value))\n case 'pages': return accu || (has(distribution, 'pages') && this.showObjectArray(distribution.pages))\n case 'languages': return accu || (has(distribution, 'languages') && this.showArray(distribution.languages))\n case 'compressFormat': return accu || (has(distribution, 'compressFormat') && this.showObject(distribution.compressFormat))\n case 'packageFormat': return accu || (has(distribution, 'packageFormat') && this.showObject(distribution.packageFormat))\n case 'hasPolicy': return accu || (has(distribution, 'hasPolicy') && !isNil(distribution.hasPolicy))\n case 'conformsTo': return accu || (has(distribution, 'conformsTo') && this.showObjectArray(distribution.conformsTo))\n //case 'spatialResolutionInMeters': return accu || (has(distribution, 'spatialResolutionInMeters') && this.showArray(distribution.spatialResolutionInMeters))\n case 'spatialResolutionInMeters': return accu || (has(distribution, 'spatialResolutionInMeters') && !isNil(distribution.spatialResolutionInMeters))\n case 'temporalResolution': return accu || (has(distribution, 'temporalResolution') && this.showArray(distribution.temporalResolution))\n default: return accu\n }\n }, false);\n },\n }\n}\n</script>\n"],"names":["_sfc_main","DistributionExpand","DistributionVisibleContent","DistributionExpandedContent","DistributionDescription","item","distribution","accu","has","isNil","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","$props","_cache","_createTextVNode","_createVNode","_component_distribution_description","_component_distribution_expanded_content","$options","_component_distribution_visible_content","_component_distribution_expand"],"mappings":";;;;;;;AAiEA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,oBAAAC;AAAA,IACA,4BAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,yBAAAC;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAAA,EACD,UAAU;AAAA,IACR,qCAAqC;AACnC,aAAO,CAAC,GAAG,IAAI,IAAI,KAAK,2BACrB,OAAO,KAAK,2BAA2B,CAAC,CAAC;AAAA,IAC7C;AAAA,IACD,2BAA2B;AACzB,aAAO,KAAK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etails.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionDetails/DistributionDetails.vue"],"sourcesContent":["<template>\n <div class=\"flex-grow-1 d-flex distribution-details\">\n <div class=\"col-sm-12 col-md-9 col-lg-7\">\n <h3 class=\"m-0\">{{ getDistributionTitle(distribution) }}</h3>\n <distribution-description\n :distribution=\"distribution\"\n :distributions=\"distributions\"\n :distributionDescriptionIsExpanded=\"distributionDescriptionIsExpanded\"\n :getDistributionDescription=\"getDistributionDescription\"\n :toggleDistributionDescription=\"toggleDistributionDescription\"\n :distributionDescriptionIsExpandable=\"distributionDescriptionIsExpandable\"\n />\n <distribution-expanded-content\n :contentList=\"distributionVisibleExpandedContent\"\n :distribution=\"distribution\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n :showLicensingAssistant=\"showLicensingAssistant\"\n :showLicence=\"showLicence\"\n :filterDateFormatEU=\"filterDateFormatEU\"\n :showArray=\"showArray\"\n :showNumber=\"showNumber\"\n :showObject=\"showObject\"\n :showObjectArray=\"showObjectArray\"\n :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n />\n <distribution-visible-content\n :contentList=\"distributionVisibleContent\"\n :distribution=\"distribution\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n :showLicensingAssistant=\"showLicensingAssistant\"\n :showLicence=\"showLicence\"\n :filterDateFormatEU=\"filterDateFormatEU\"\n :showArray=\"showArray\"\n :showNumber=\"showNumber\"\n :showObject=\"showObject\"\n :showObjectArray=\"showObjectArray\"\n :appendCurrentLocaleToURL=\"appendCurrentLocaleToURL\"\n />\n <distribution-expand\n :distribution=\"distribution\"\n :distributionCanShowMore=\"distributionCanShowMore\"\n :toggleDistribution=\"toggleDistribution\"\n :distributionIsExpanded=\"distributionIsExpanded\"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport {\n has,\n isNil,\n isArray,\n isObject,\n isString,\n isNumber,\n isEmpty,\n} from 'lodash';\nimport DistributionDescription\n from \"../../../datasetDetails/distributions/distributionDetails/DistributionDescription\";\nimport DistributionExpandedContent\n from \"../../../datasetDetails/distributions/distributionDetails/DistributionExpandedContent\";\nimport DistributionVisibleContent\n from \"../../../datasetDetails/distributions/distributionDetails/DistributionVisibleContent\";\nimport DistributionExpand from \"../../../datasetDetails/distributions/distributionDetails/DistributionExpand\";\nexport default {\n name: \"DistributionDetails\",\n components: {\n DistributionExpand,\n DistributionVisibleContent,\n DistributionExpandedContent,\n DistributionDescription\n },\n props: [\n \"getDistributionTitle\",\n \"distribution\",\n \"distributions\",\n \"distributionDescriptionIsExpanded\",\n \"getDistributionDescription\",\n \"toggleDistributionDescription\",\n \"distributionDescriptionIsExpandable\",\n \"distributionIsExpanded\",\n \"distributionVisibleContent\",\n \"distributionExpandedContent\",\n \"showLicensingAssistant\",\n \"showLicence\",\n \"filterDateFormatEU\",\n \"showArray\",\n \"showNumber\",\n \"showObject\",\n \"showObjectArray\",\n \"appendCurrentLocaleToURL\",\n \"toggleDistribution\"\n ],\n computed: {\n distributionVisibleExpandedContent() {\n return [...new Set(this.distributionVisibleContent\n .concat(this.distributionExpandedContent))];\n },\n distributionExtraContent() {\n return this.distributionExpandedContent\n .filter(item => !this.distributionVisibleContent.includes(item))\n },\n },\n methods: {\n distributionCanShowMore(distribution) {\n return this.distributionExtraContent.reduce((accu, item) => {\n switch (item) {\n case 'license': return accu || (has(distribution, 'licence'))\n case 'licenseAttributionByText': return accu || has(distribution , 'licenseAttributionByText') && (!isNil(distribution.licenseAttributionByText) && !isNil(getTranslationFor(distribution.licenseAttributionByText)))\n case 'modificationDate': return accu || has(distribution, 'modificationDate') && !isNil(distribution.modificationDate)\n case 'releaseDate': return accu || (has(distribution, 'releaseDate') && !isNil(distribution.releaseDate))\n case 'availability': return accu || (has(distribution, 'availability') && this.showObject(distribution.availability) && !isNil(distribution.availability.label))\n case 'status': return accu || (has(distribution, 'status') && this.showObject(distribution.status))\n case 'rights': return accu || (has(distribution, 'rights') && this.showObject(distribution.rights))\n case 'mediaType': return accu || (has(distribution, 'mediaType') && !isNil(distribution.mediaType))\n case 'byteSize': return accu || (has(distribution, 'byteSize') && !isNil(distribution.byteSize))\n case 'checksum': return accu || (has(distribution, 'checksum') && !isNil(distribution.checksum) && has(distribution.checksum, 'algorithm') && !isNil(distribution.checksum.algorithm) && has(distribution.checksum, 'checksum_value') && !isNil(distribution.checksum.checksum_value))\n case 'pages': return accu || (has(distribution, 'pages') && this.showObjectArray(distribution.pages))\n case 'languages': return accu || (has(distribution, 'languages') && this.showArray(distribution.languages))\n case 'compressFormat': return accu || (has(distribution, 'compressFormat') && this.showObject(distribution.compressFormat))\n case 'packageFormat': return accu || (has(distribution, 'packageFormat') && this.showObject(distribution.packageFormat))\n case 'hasPolicy': return accu || (has(distribution, 'hasPolicy') && !isNil(distribution.hasPolicy))\n case 'conformsTo': return accu || (has(distribution, 'conformsTo') && this.showObjectArray(distribution.conformsTo))\n //case 'spatialResolutionInMeters': return accu || (has(distribution, 'spatialResolutionInMeters') && this.showArray(distribution.spatialResolutionInMeters))\n case 'spatialResolutionInMeters': return accu || (has(distribution, 'spatialResolutionInMeters') && !isNil(distribution.spatialResolutionInMeters))\n case 'temporalResolution': return accu || (has(distribution, 'temporalResolution') && this.showArray(distribution.temporalResolution))\n default: return accu\n }\n }, false);\n },\n }\n}\n</script>\n"],"names":["_sfc_main","DistributionExpand","DistributionVisibleContent","DistributionExpandedContent","DistributionDescription","item","distribution","accu","has","isNil","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","$props","_createVNode","_component_distribution_description","_component_distribution_expanded_content","$options","_component_distribution_visible_content","_component_distribution_expand"],"mappings":";;;;;;;AAiEA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,oBAAAC;AAAA,IACA,4BAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,yBAAAC;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAA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AAAA,QAChD,oBAAoBJ,EAAkB;AAAA,QACtC,wBAAwBA,EAAsB;AAAA;;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
distribution?: any;
|
|
3
2
|
distributionIsExpanded?: any;
|
|
4
3
|
toggleDistribution?: any;
|
|
4
|
+
distribution?: any;
|
|
5
5
|
distributionCanShowMore?: any;
|
|
6
6
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
7
|
-
distribution?: any;
|
|
8
7
|
distributionIsExpanded?: any;
|
|
9
8
|
toggleDistribution?: any;
|
|
9
|
+
distribution?: any;
|
|
10
10
|
distributionCanShowMore?: any;
|
|
11
11
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
export default _default;
|
package/dist/datasetDetails/distributions/distributionDetails/DistributionExpand.vue.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributionExpand.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionDetails/DistributionExpand.vue"],"sourcesContent":["<template>\n <div class=\"distribution-details-show-more\" v-if=\"distributionCanShowMore(distribution)\" @click=\"toggleDistribution(distribution.id)\">\n <small class=\"arrow\" v-if=\"distributionIsExpanded(distribution.id)\">\n {{ $t('message.metadata.showLess') }}\n <i class=\"material-icons align-middle small-icon\">keyboard_arrow_up</i>\n </small>\n <small class=\"arrow\" v-else>\n {{ $t('message.metadata.showMore') }}\n <i class=\"material-icons align-middle small-icon\">keyboard_arrow_down</i>\n </small>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"DistributionExpand\",\n props: [\n 'distribution',\n 'distributionCanShowMore',\n 'toggleDistribution',\n 'distributionIsExpanded'\n ]\n}\n</script>\n\n<style scoped>\n div, .arrow {\n cursor: pointer;\n }\n</style>\n\n"],"names":["_sfc_main","$props","_createElementBlock","_cache","$event","_openBlock","_hoisted_1","_createTextVNode","_toDisplayString","_ctx","_createElementVNode","_hoisted_2"
|
|
1
|
+
{"version":3,"file":"DistributionExpand.vue.mjs","sources":["../../../../lib/datasetDetails/distributions/distributionDetails/DistributionExpand.vue"],"sourcesContent":["<template>\n <div class=\"distribution-details-show-more\" v-if=\"distributionCanShowMore(distribution)\" @click=\"toggleDistribution(distribution.id)\">\n <small class=\"arrow\" v-if=\"distributionIsExpanded(distribution.id)\">\n {{ $t('message.metadata.showLess') }}\n <i class=\"material-icons align-middle small-icon\">keyboard_arrow_up</i>\n </small>\n <small class=\"arrow\" v-else>\n {{ $t('message.metadata.showMore') }}\n <i class=\"material-icons align-middle small-icon\">keyboard_arrow_down</i>\n </small>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"DistributionExpand\",\n props: [\n 'distribution',\n 'distributionCanShowMore',\n 'toggleDistribution',\n 'distributionIsExpanded'\n ]\n}\n</script>\n\n<style scoped>\n div, .arrow {\n cursor: pointer;\n }\n</style>\n\n"],"names":["_sfc_main","$props","_createElementBlock","_cache","$event","_openBlock","_hoisted_1","_createTextVNode","_toDisplayString","_ctx","_createElementVNode","_hoisted_2"],"mappings":";;;AAcA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;;EApBW,OAAM;;;EAIN,OAAM;;;AALmC,SAAAC,EAAA,wBAAwBA,EAAY,YAAA,UAAtFC,EASM,OAAA;AAAA;IATD,OAAM;AAAA,IAA+E,SAAOC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAAH,EAAA,mBAAmBA,EAAA,aAAa,EAAE;AAAA;IACtGA,EAAsB,uBAACA,EAAY,aAAC,EAAE,KAAjEI,KAAAH,EAGQ,SAHRI,GAGQ;AAAA,MAFHC,EAAAC,EAAAC,EAAA,mCAAkC,KACrC,CAAA;AAAA,MAAAN,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAO,EAAuE,KAApE,EAAA,OAAM,yCAAwC,GAAC,qBAAiB,EAAA;AAAA,WAErEL,KAAAH,EAGQ,SAHRS,GAGQ;AAAA,MAFHJ,EAAAC,EAAAC,EAAA,mCAAkC,KACrC,CAAA;AAAA,MAAAN,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAO,EAAyE,KAAtE,EAAA,OAAM,yCAAwC,GAAC,uBAAmB,EAAA;AAAA;;;;"}
|
|
@@ -27,7 +27,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
27
|
path: string;
|
|
28
28
|
query: {
|
|
29
29
|
categories: any;
|
|
30
|
-
locale:
|
|
30
|
+
locale: any;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
toggleDisplayCount(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetDetailsCategoriesKey.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsCategoriesKey.vue"],"sourcesContent":["<template>\n <div class=\"mt-2 flex-column dsd-feature\">\n <div>\n <dataset-details-feature-header\n :title=\"`${$t('message.datasetDetails.subnav.categories')} (${\n getCategories ? getCategories.length.toLocaleString('fi') : 0\n })`\"\n :arrowDown=\"!isCategoriesAllDisplayed\"\n tag=\"keywords-toggle\"\n :onClick=\"toggleDisplayCount\"\n />\n </div> \n <div v-if=\"isCategoriesAllDisplayed\" class=\"keywords__item row mt-4\">\n <span\n v-for='(category, i) in getCategories'\n :key=\"i\"\n class=\"col-6 col-sm-3 col-md-2 mt-md-0 mt-3 mb-2 px-1\"\n >\n <app-link :to=\"getCategoryLink(category)\" :rel=\"followCategoryLinks\">\n <small class=\"d-inline-block text-nowrap w-100 py-2 rounded-pill text-center text-white tag-color\"\n :data-toggle=\"categoryTruncated(category) ? 'tooltip' : false\"\n :data-placement=\"categoryTruncated(category) ? 'top' : false\"\n :aria-label=\"getTranslationFor(category.title, $route.query.locale)\"\n :title=\"categoryTruncated(category) ? getTranslationFor(category.title, $route.query.locale) : false\">\n {{ truncate(getTranslationFor(category.title, $route.query.locale), maxCategoryLength, false) }}\n </small>\n </app-link>\n </span>\n </div>\n <div>\n </div>\n </div>\n</template>\n\n<script>\nimport DatasetDetailsFeatureHeader from \"../../datasetDetails/features/DatasetDetailsFeatureHeader\";\nimport {truncate} from \"../../utils/helpers\";\nimport {mapGetters} from \"vuex\";\nimport AppLink from \"../../widgets/AppLink\";\nimport { getTranslationFor } from \"../../utils/helpers\";\nimport {sortAlphabetically} from \"../../datasetDetails/features/utils/sortAlphabetically\";\nimport $ from \"jquery\";\n\n\nexport default {\nname: \"DatasetDetailsCategoriesKey\",\ncomponents: {\n AppLink,\n // DatasetDetailsFeatureHeader\n},\nprops: {\n showCategory: Function\n},\ndata() {\n return {\n defaultLocale: this.$env.languages.locale,\n defaultDisplayCount: 0,\n categories: {\n displayAll: this.$env.content.datasetDetails.categoriesKey.collapsed,\n displayCount: 24, // Should never exceed number of keywords\n incrementSteps: [12, 60],\n },\n maxCategoryLength: 15,\n followCategoryLinks: this.$env.content.datasets.followCategoryLinks\n }\n},\ncomputed: {\n ...mapGetters('datasetDetails', [\n \"getCategories\"\n ]),\n isCategoriesAllDisplayed() {\n // return this.categories.displayCount >= this.getCategories.length;\n return this.categories.displayAll;\n }\n},\nmethods: {\n truncate,\n sortAlphabetically,\n // Increases the current number of keywords displayed\n // and clamps the result so that it never exceeds the number of all keywords.\n increaseNumDisplayedKeywords(increment) {\n const clampedSum = this.clamp(this.categories.displayCount + increment, 0, this.getCategories.length);\n this.categories.displayCount = clampedSum;\n },\n getTranslationFor,\n nonOverflowingIncrementsForKeywords(incrementStep) {\n return this.categories.displayCount + incrementStep <= this.getCategories.length;\n },\n categoryTruncated(category) {\n\n return getTranslationFor(category.title, this.defaultLocale).length > this.maxCategoryLength;\n\n },\n clamp(n, min, max) {\n return Math.min(Math.max(n, min), max);\n },\n getCategoryLink(category) {\n const categoryID = category.id.toUpperCase();\n return {\n path: `/datasets`,\n query: Object.assign({}, { categories: categoryID, locale: this.$route.query.locale })\n };\n },\n toggleDisplayCount() {\n $('body').tooltip({selector: '[data-toggle=\"tooltip\"]'});\n if (this.categories.displayCount < this.getCategories.length) {\n this.categories.displayCount = this.getCategories.length;\n } else {\n this.categories.displayCount = this.defaultDisplayCount;\n }\n this.categories.displayAll = !this.categories.displayAll;\n }\n}\n}\n</script>\n\n<style scoped lang=\"scss\">\n.tag-color {\n background-color: var(--primary);\n}\n</style>\n"],"names":["_sfc_main","AppLink","mapGetters","truncate","sortAlphabetically","increment","clampedSum","getTranslationFor","incrementStep","category","n","min","max","categoryID","$","_hoisted_1","
|
|
1
|
+
{"version":3,"file":"DatasetDetailsCategoriesKey.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsCategoriesKey.vue"],"sourcesContent":["<template>\n <div class=\"mt-2 flex-column dsd-feature\">\n <div>\n <dataset-details-feature-header\n :title=\"`${$t('message.datasetDetails.subnav.categories')} (${\n getCategories ? getCategories.length.toLocaleString('fi') : 0\n })`\"\n :arrowDown=\"!isCategoriesAllDisplayed\"\n tag=\"keywords-toggle\"\n :onClick=\"toggleDisplayCount\"\n />\n </div> \n <div v-if=\"isCategoriesAllDisplayed\" class=\"keywords__item row mt-4\">\n <span\n v-for='(category, i) in getCategories'\n :key=\"i\"\n class=\"col-6 col-sm-3 col-md-2 mt-md-0 mt-3 mb-2 px-1\"\n >\n <app-link :to=\"getCategoryLink(category)\" :rel=\"followCategoryLinks\">\n <small class=\"d-inline-block text-nowrap w-100 py-2 rounded-pill text-center text-white tag-color\"\n :data-toggle=\"categoryTruncated(category) ? 'tooltip' : false\"\n :data-placement=\"categoryTruncated(category) ? 'top' : false\"\n :aria-label=\"getTranslationFor(category.title, $route.query.locale)\"\n :title=\"categoryTruncated(category) ? getTranslationFor(category.title, $route.query.locale) : false\">\n {{ truncate(getTranslationFor(category.title, $route.query.locale), maxCategoryLength, false) }}\n </small>\n </app-link>\n </span>\n </div>\n <div>\n </div>\n </div>\n</template>\n\n<script>\nimport DatasetDetailsFeatureHeader from \"../../datasetDetails/features/DatasetDetailsFeatureHeader\";\nimport {truncate} from \"../../utils/helpers\";\nimport {mapGetters} from \"vuex\";\nimport AppLink from \"../../widgets/AppLink\";\nimport { getTranslationFor } from \"../../utils/helpers\";\nimport {sortAlphabetically} from \"../../datasetDetails/features/utils/sortAlphabetically\";\nimport $ from \"jquery\";\n\n\nexport default {\nname: \"DatasetDetailsCategoriesKey\",\ncomponents: {\n AppLink,\n // DatasetDetailsFeatureHeader\n},\nprops: {\n showCategory: Function\n},\ndata() {\n return {\n defaultLocale: this.$env.languages.locale,\n defaultDisplayCount: 0,\n categories: {\n displayAll: this.$env.content.datasetDetails.categoriesKey.collapsed,\n displayCount: 24, // Should never exceed number of keywords\n incrementSteps: [12, 60],\n },\n maxCategoryLength: 15,\n followCategoryLinks: this.$env.content.datasets.followCategoryLinks\n }\n},\ncomputed: {\n ...mapGetters('datasetDetails', [\n \"getCategories\"\n ]),\n isCategoriesAllDisplayed() {\n // return this.categories.displayCount >= this.getCategories.length;\n return this.categories.displayAll;\n }\n},\nmethods: {\n truncate,\n sortAlphabetically,\n // Increases the current number of keywords displayed\n // and clamps the result so that it never exceeds the number of all keywords.\n increaseNumDisplayedKeywords(increment) {\n const clampedSum = this.clamp(this.categories.displayCount + increment, 0, this.getCategories.length);\n this.categories.displayCount = clampedSum;\n },\n getTranslationFor,\n nonOverflowingIncrementsForKeywords(incrementStep) {\n return this.categories.displayCount + incrementStep <= this.getCategories.length;\n },\n categoryTruncated(category) {\n\n return getTranslationFor(category.title, this.defaultLocale).length > this.maxCategoryLength;\n\n },\n clamp(n, min, max) {\n return Math.min(Math.max(n, min), max);\n },\n getCategoryLink(category) {\n const categoryID = category.id.toUpperCase();\n return {\n path: `/datasets`,\n query: Object.assign({}, { categories: categoryID, locale: this.$route.query.locale })\n };\n },\n toggleDisplayCount() {\n $('body').tooltip({selector: '[data-toggle=\"tooltip\"]'});\n if (this.categories.displayCount < this.getCategories.length) {\n this.categories.displayCount = this.getCategories.length;\n } else {\n this.categories.displayCount = this.defaultDisplayCount;\n }\n this.categories.displayAll = !this.categories.displayAll;\n }\n}\n}\n</script>\n\n<style scoped lang=\"scss\">\n.tag-color {\n background-color: var(--primary);\n}\n</style>\n"],"names":["_sfc_main","AppLink","mapGetters","truncate","sortAlphabetically","increment","clampedSum","getTranslationFor","incrementStep","category","n","min","max","categoryID","$","_hoisted_1","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_component_dataset_details_feature_header","_ctx","$options","_hoisted_2","_Fragment","_renderList","i","_component_app_link","$data","_toDisplayString","_hoisted_3"],"mappings":";;;;;;;;;AA4CA,MAAKA,IAAU;AAAA,EACf,MAAM;AAAA,EACN,YAAY;AAAA,IACV,SAAAC;AAAA;AAAA,EAEF;AAAA,EACA,OAAO;AAAA,IACL,cAAc;AAAA,EAChB;AAAA,EACA,OAAO;AACL,WAAO;AAAA,MACL,eAAe,KAAK,KAAK,UAAU;AAAA,MACnC,qBAAqB;AAAA,MACrB,YAAY;AAAA,QACV,YAAY,KAAK,KAAK,QAAQ,eAAe,cAAc;AAAA,QAC3D,cAAc;AAAA;AAAA,QACd,gBAAgB,CAAC,IAAI,EAAE;AAAA,MACxB;AAAA,MACD,mBAAmB;AAAA,MACnB,qBAAqB,KAAK,KAAK,QAAQ,SAAS;AAAA,IAClD;AAAA,EACF;AAAA,EACA,UAAU;AAAA,IACR,GAAGC,EAAW,kBAAkB;AAAA,MAC5B;AAAA,IACJ,CAAC;AAAA,IACD,2BAA2B;AAEzB,aAAO,KAAK,WAAW;AAAA,IACzB;AAAA,EACF;AAAA,EACA,SAAS;AAAA,IACP,UAAAC;AAAA,IACA,oBAAAC;AAAA;AAAA;AAAA,IAGA,6BAA6BC,GAAW;AACtC,YAAMC,IAAa,KAAK,MAAM,KAAK,WAAW,eAAeD,GAAW,GAAG,KAAK,cAAc,MAAM;AACpG,WAAK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AAC,EAcOO,GAbmB,MAAAC,EAAAJ,EAAA,eAAhB,CAAAZ,GAAUiB,YADpBT,EAcO,QAAA;AAAA,QAZJ,KAAKS;AAAA,QACN,OAAM;AAAA;QAERP,EAQaQ,GAAA;AAAA,UARF,IAAIL,EAAe,gBAACb,CAAQ;AAAA,UAAI,KAAKmB,EAAmB;AAAA;qBAC/D,MAMQ;AAAA,YANRV,EAMQ,SAAA;AAAA,cAND,OAAM;AAAA,cACL,eAAaI,EAAiB,kBAACb,CAAQ,IAAA,YAAA;AAAA,cACvC,kBAAgBa,EAAiB,kBAACb,CAAQ,IAAA,QAAA;AAAA,cAC1C,cAAYa,EAAiB,kBAACb,EAAS,OAAOY,EAAM,OAAC,MAAM,MAAM;AAAA,cACjE,OAAOC,EAAA,kBAAkBb,CAAQ,IAAIa,EAAiB,kBAACb,EAAS,OAAOY,EAAA,OAAO,MAAM,MAAM,IAAA;AAAA,YAC7F,GAAAQ,EAAAP,EAAA,SAASA,EAAA,kBAAkBb,EAAS,OAAOY,EAAA,OAAO,MAAM,MAAM,GAAGO,EAAiB,mBAAA,EAAA,CAAA,GAAA,GAAAE,CAAA;AAAA;;;;;;oBAK/FZ,EACM,OAAA,MAAA,MAAA,EAAA;AAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetDetailsDataServices.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsDataServices.vue"],"sourcesContent":["<template>\n <div class=\"dsd-feature\">\n <dataset-details-feature-header\n :title=\"`${$t('message.metadata.dataServices')} (${getDataServices ? getDataServices.length.toLocaleString('fi') : 0})`\"\n :arrowDown=\"!dataServices.isVisible\"\n tag=\"documentation-toggle\"\n :onClick=\"toggleDataServices\"\n />\n <ul v-if=\"dataServices.isVisible\" class=\"list list-unstyled col-12\" data-cy=\"documentation\">\n <hr>\n <div class=\"distributions\" :key=\"`${expandedDataServices.length}--${expandedDataServicesDescriptions.length}`\">\n <div\n v-for=\"(dataService, i) in displayedDataServices\"\n :key=\"i\"\n class=\"distributions__item\"\n >\n <!-- Preview and action overlay -->\n <div\n v-if=\"!dataServices.displayAll && !isDataServicesAllDisplayed && i === dataServices.displayCount - 1\"\n class=\"distributions__item--preview\"\n >\n <!-- Fade out the last item so it has a preview feel -->\n <!-- Render actions on top of it -->\n <div class=\"distributions__actions pb-md-3\">\n <button\n v-for=\"increment in dataServices.incrementSteps.filter(nonOverflowingIncrementsForPages)\"\n :key=\"increment\"\n class=\"btn btn-sm btn-secondary mr-1\"\n @click=\"increaseNumDisplayedPages(increment)\"\n >\n <i class=\"fas fa-chevron-down\"/> {{ $t('message.metadata.showXMore', { increment }) }}\n </button>\n <button\n class=\"btn btn-sm btn-primary\"\n @click=\"dataServices.displayCount = getDataServices.length\"\n >\n <i class=\"fas fa-eye\"/> {{ $t('message.metadata.showAll') }} {{ getDataServices.length.toLocaleString('fi') }}\n </button>\n </div>\n </div>\n <li class=\"row\">\n <!-- DATA SERVICE FORMAT PLACEHOLDER -->\n <span class=\"d-inline-block col-2 col-md-1 pl-1 p-md-3 px-md-4 m-md-0 m-auto\">\n <div class=\"circle float-md-right text-center text-white invisible\"/>\n </span>\n <span class=\"col-10 col-md-11\">\n <span class=\"row\">\n <!-- DATA SERVICE TITLE -->\n <span class=\"d-inline-block col-12\">\n <h3 class=\"m-0 text-break\" :title=\"getDataServiceTitle(dataService)\">{{ getDataServiceTitle(dataService) }}</h3>\n </span>\n <span class=\"d-inline-block col-12 col-md-9 col-lg-7\">\n <!-- DATA SERVICE DESCRIPTION -->\n <span class=\"mt-2 d-block\">\n <small v-if=\"dataServiceDescriptionIsExpanded(`data-service-description-toggle-${i}`)\">\n <p class=\"text-muted\">\n {{ getDataServiceDescription(dataService) }}\n <span class=\"text-primary details-link pl-2\" @click=\"toggleDataServiceDescription(`data-service-description-toggle-${i}`)\">\n {{ $t('message.metadata.readLess') }}\n </span>\n </p>\n </small>\n <small v-else-if=\"!dataServiceDescriptionIsExpandable(getDataServiceDescription(dataService))\">\n <p class=\"text-muted\">{{ getDataServiceDescription(dataService) }}</p>\n </small>\n <small v-else>\n <p class=\"text-muted\">\n {{ truncate(getDataServiceDescription(dataService), dataService.descriptionMaxChars) }}\n <span class=\"text-primary details-link pl-2\" @click=\"toggleDataServiceDescription(`data-service-description-toggle-${i}`)\">\n {{ $t('message.metadata.readMore') }}\n </span>\n </p>\n </small>\n </span>\n <slot name=\"data-service-description\" :data-service=\"dataService\"/>\n <!-- additional field for DCAT-AP.de -->\n <span>\n <small v-if=\"getDataServiceResource(dataService)\">\n <!-- TODO translation -->\n Resource: <a :href=\"getDataServiceResource(dataService) \">{{ getDataServiceResource(dataService) }}</a>\n </small>\n </span>\n </span>\n <!-- DATA SERVICE BUTTONS -->\n <span class=\"col-12 col-md-3 col-lg-5 mt-2 text-md-right text-left\">\n <!-- DATA SERVICE ACCESS -->\n <span class=\"download dropdown d-inline-block\">\n <app-link class=\"btn btn-sm btn-primary p-0 pl-2 pr-2 w-100 rounded-lg btn-color\"\n :to=\"dataService.endpoint_url[0]\"\n target=\"_blank\"\n rel=\"dcat:distribution noopener\"\n matomo-track-download\n @after-click=\"trackGoto\">\n {{ $t('message.datasetDetails.access') }}\n </app-link>\n </span>\n </span>\n </span>\n </span>\n </li>\n <hr class=\"mt-1\">\n </div>\n </div>\n </ul>\n </div>\n</template>\n\n<script>\nimport {getTranslationFor, truncate} from \"../../utils/helpers\";\nimport {has, isNil} from \"lodash\";\nimport AppLink from \"../../widgets/AppLink\";\nimport {mapGetters} from \"vuex\";\n// DatasetDetailsFeatureHeader is imported globally\n// import DatasetDetailsFeatureHeader from \"../../modules/datasetDetails/features/DatasetDetailsFeatureHeader\";\n\nexport default {\n name: \"DatasetDetailsDataServices\",\n components: {\n // DatasetDetailsFeatureHeader,\n AppLink},\n props: {\n getDataServices: Array,\n nonOverflowingIncrementsForPages: Function,\n increaseNumDisplayedPages: Function,\n trackGoto: Function\n },\n data() {\n return {\n dataServices: {\n isVisible: this.$env.content.datasetDetails.dataServices.isVisible,\n displayAll: this.$env.content.datasetDetails.dataServices.displayAll,\n displayCount: this.$env.content.datasetDetails.dataServices.displayCount,\n incrementSteps: this.$env.content.datasetDetails.dataServices.incrementSteps,\n descriptionMaxLines: this.$env.content.datasetDetails.dataServices.descriptionMaxLines,\n descriptionMaxChars: this.$env.content.datasetDetails.dataServices.descriptionMaxChars,\n },\n expandedDataServicesDescriptions: [],\n expandedDataServices: [],\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getLanguages'\n ]),\n displayedDataServices() {\n const sorted = [...this.getDataServices].sort((a, b) => {\n if (getTranslationFor(a.title, this.$route.query.locale, this.getLanguages) < getTranslationFor(b.title, this.$route.query.locale, this.getLanguages)) { return -1; }\n if (getTranslationFor(a.title, this.$route.query.locale, this.getLanguages) > getTranslationFor(b.title, this.$route.query.locale, this.getLanguages)) { return 1; }\n return 0;\n });\n return this.dataServices.displayAll\n ? Object.freeze(sorted)\n : Object.freeze(sorted.slice(0, this.dataServices.displayCount));\n },\n isDataServicesAllDisplayed() {\n return this.dataServices.displayCount === this.getDataServices.length;\n },\n remainingDataServices() {\n return this.getDataServices.length - this.dataServices.displayCount;\n }\n },\n methods: {\n truncate,\n toggleDataServiceDescription(id) {\n const index = this.expandedDataServicesDescriptions.indexOf(id);\n if (index > -1) this.expandedDataServicesDescriptions.splice(index, 1);\n else this.expandedDataServicesDescriptions.push(id);\n },\n toggleDataServices() {\n this.dataServices.isVisible = !this.dataServices.isVisible;\n },\n dataServiceIsExpanded(id) {\n return this.expandedDataServices.includes(id);\n },\n dataServiceDescriptionIsExpanded(id) {\n return this.expandedDataServicesDescriptions.includes(id);\n },\n dataServiceDescriptionIsExpandable(description) {\n return isNil(description) ? false : description.length > this.dataServices.descriptionMaxChars;\n },\n getDataServiceTitle(dataService) {\n return dataService.title ? getTranslationFor(dataService.title, this.$route.query.locale, this.getLanguages) : truncate(dataService.endpoint_url[0], 50);\n },\n getDataServiceDescription(dataService) {\n return (has(dataService, 'description') && !isNil(dataService.description)) ? getTranslationFor(dataService.description, this.$route.query.locale, this.getLanguages) : this.$t('message.catalogsAndDatasets.noDescriptionAvailable');\n },\n getDataServiceResource(dataService) {\n return (has(dataService.availability, 'resource') && !isNil(dataService.availability.resource)) ? dataService.availability.resource : '';\n }\n },\n mounted() {\n const dataServicesConf = this.$env.content.datasetDetails && this.$env.content.datasetDetails.dataServices;\n if (dataServicesConf) {\n this.dataServices.displayAll = dataServicesConf.displayAll || this.dataServices.displayAll;\n this.dataServices.displayCount = parseInt(dataServicesConf.displayCount, 10) || this.dataServices.displayCount;\n\n if (typeof dataServicesConf.incrementSteps === 'string') {\n // Need to parse as json array since env variables are string only\n dataServicesConf.incrementSteps = JSON.parse(dataServicesConf.incrementSteps);\n }\n this.dataServices.incrementSteps = dataServicesConf.incrementSteps || this.dataServices.incrementSteps;\n }\n\n if (this.dataServices.displayAll) this.dataServices.displayCount = this.getDataServices.length;\n }\n}\n</script>\n"],"names":["_sfc_main","AppLink","mapGetters","sorted","a","b","getTranslationFor","truncate","id","index","description","isNil","dataService","has","dataServicesConf","_hoisted_1","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_14","_hoisted_15","_hoisted_17","_hoisted_19","_hoisted_20","_hoisted_22","_hoisted_23","_hoisted_24","_openBlock","_createElementBlock","_createVNode","_component_dataset_details_feature_header","_ctx","$props","$data","$options","_cache","_createTextVNode","_hoisted_2","_createElementVNode","_Fragment","_renderList","i","_hoisted_3","increment","$event","_toDisplayString","_createCommentVNode","_hoisted_13","_hoisted_18","_hoisted_16","_renderSlot","_hoisted_21","_component_app_link","_withCtx"],"mappings":";;;;;;AAmHA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA;AAAA,IAET,SAAAC;AAAA,EAAO;AAAA,EACV,OAAO;AAAA,IACL,iBAAiB;AAAA,IACjB,kCAAkC;AAAA,IAClC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AAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,gBAoFkBE,EAYO,QAZPb,GAYO;AAAA,kBAVLa,EASO,QATPZ,GASO;AAAA,oBARLG,EAOWuB,GAAA;AAAA,sBAPD,OAAM;AAAA,sBACL,IAAI9C,EAAY,aAAY,CAAA;AAAA,sBAC7B,QAAO;AAAA,sBACP,KAAI;AAAA,sBACJ,yBAAA;AAAA,sBACC,cAAa0B,EAAS;AAAA;sBA5FvD,SAAAqB,EA6F4B,MAAyC;AAAA,wBA7FrEjB,EAAAS,EA6F+Bd,EAAE,GAAA,+BAAA,CAAA,GAAA,CAAA;AAAA;sBA7FjC,GAAA;AAAA;;;;;;UAAAI,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAC,EAAA;AAAA,4BAoGUE,EAAiB,MAAA,EAAb,OAAM,OAAM,GAAA,MAAA,EAAA;AAAA;;UApG1BQ,EAAA,IAAA,EAAA;AAAA;;;"}
|
|
1
|
+
{"version":3,"file":"DatasetDetailsDataServices.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsDataServices.vue"],"sourcesContent":["<template>\n <div class=\"dsd-feature\">\n <dataset-details-feature-header\n :title=\"`${$t('message.metadata.dataServices')} (${getDataServices ? getDataServices.length.toLocaleString('fi') : 0})`\"\n :arrowDown=\"!dataServices.isVisible\"\n tag=\"documentation-toggle\"\n :onClick=\"toggleDataServices\"\n />\n <ul v-if=\"dataServices.isVisible\" class=\"list list-unstyled col-12\" data-cy=\"documentation\">\n <hr>\n <div class=\"distributions\" :key=\"`${expandedDataServices.length}--${expandedDataServicesDescriptions.length}`\">\n <div\n v-for=\"(dataService, i) in displayedDataServices\"\n :key=\"i\"\n class=\"distributions__item\"\n >\n <!-- Preview and action overlay -->\n <div\n v-if=\"!dataServices.displayAll && !isDataServicesAllDisplayed && i === dataServices.displayCount - 1\"\n class=\"distributions__item--preview\"\n >\n <!-- Fade out the last item so it has a preview feel -->\n <!-- Render actions on top of it -->\n <div class=\"distributions__actions pb-md-3\">\n <button\n v-for=\"increment in dataServices.incrementSteps.filter(nonOverflowingIncrementsForPages)\"\n :key=\"increment\"\n class=\"btn btn-sm btn-secondary mr-1\"\n @click=\"increaseNumDisplayedPages(increment)\"\n >\n <i class=\"fas fa-chevron-down\"/> {{ $t('message.metadata.showXMore', { increment }) }}\n </button>\n <button\n class=\"btn btn-sm btn-primary\"\n @click=\"dataServices.displayCount = getDataServices.length\"\n >\n <i class=\"fas fa-eye\"/> {{ $t('message.metadata.showAll') }} {{ getDataServices.length.toLocaleString('fi') }}\n </button>\n </div>\n </div>\n <li class=\"row\">\n <!-- DATA SERVICE FORMAT PLACEHOLDER -->\n <span class=\"d-inline-block col-2 col-md-1 pl-1 p-md-3 px-md-4 m-md-0 m-auto\">\n <div class=\"circle float-md-right text-center text-white invisible\"/>\n </span>\n <span class=\"col-10 col-md-11\">\n <span class=\"row\">\n <!-- DATA SERVICE TITLE -->\n <span class=\"d-inline-block col-12\">\n <h3 class=\"m-0 text-break\" :title=\"getDataServiceTitle(dataService)\">{{ getDataServiceTitle(dataService) }}</h3>\n </span>\n <span class=\"d-inline-block col-12 col-md-9 col-lg-7\">\n <!-- DATA SERVICE DESCRIPTION -->\n <span class=\"mt-2 d-block\">\n <small v-if=\"dataServiceDescriptionIsExpanded(`data-service-description-toggle-${i}`)\">\n <p class=\"text-muted\">\n {{ getDataServiceDescription(dataService) }}\n <span class=\"text-primary details-link pl-2\" @click=\"toggleDataServiceDescription(`data-service-description-toggle-${i}`)\">\n {{ $t('message.metadata.readLess') }}\n </span>\n </p>\n </small>\n <small v-else-if=\"!dataServiceDescriptionIsExpandable(getDataServiceDescription(dataService))\">\n <p class=\"text-muted\">{{ getDataServiceDescription(dataService) }}</p>\n </small>\n <small v-else>\n <p class=\"text-muted\">\n {{ truncate(getDataServiceDescription(dataService), dataService.descriptionMaxChars) }}\n <span class=\"text-primary details-link pl-2\" @click=\"toggleDataServiceDescription(`data-service-description-toggle-${i}`)\">\n {{ $t('message.metadata.readMore') }}\n </span>\n </p>\n </small>\n </span>\n <slot name=\"data-service-description\" :data-service=\"dataService\"/>\n <!-- additional field for DCAT-AP.de -->\n <span>\n <small v-if=\"getDataServiceResource(dataService)\">\n <!-- TODO translation -->\n Resource: <a :href=\"getDataServiceResource(dataService) \">{{ getDataServiceResource(dataService) }}</a>\n </small>\n </span>\n </span>\n <!-- DATA SERVICE BUTTONS -->\n <span class=\"col-12 col-md-3 col-lg-5 mt-2 text-md-right text-left\">\n <!-- DATA SERVICE ACCESS -->\n <span class=\"download dropdown d-inline-block\">\n <app-link class=\"btn btn-sm btn-primary p-0 pl-2 pr-2 w-100 rounded-lg btn-color\"\n :to=\"dataService.endpoint_url[0]\"\n target=\"_blank\"\n rel=\"dcat:distribution noopener\"\n matomo-track-download\n @after-click=\"trackGoto\">\n {{ $t('message.datasetDetails.access') }}\n </app-link>\n </span>\n </span>\n </span>\n </span>\n </li>\n <hr class=\"mt-1\">\n </div>\n </div>\n </ul>\n </div>\n</template>\n\n<script>\nimport {getTranslationFor, truncate} from \"../../utils/helpers\";\nimport {has, isNil} from \"lodash\";\nimport AppLink from \"../../widgets/AppLink\";\nimport {mapGetters} from \"vuex\";\n// DatasetDetailsFeatureHeader is imported globally\n// import DatasetDetailsFeatureHeader from \"../../modules/datasetDetails/features/DatasetDetailsFeatureHeader\";\n\nexport default {\n name: \"DatasetDetailsDataServices\",\n components: {\n // DatasetDetailsFeatureHeader,\n AppLink},\n props: {\n getDataServices: Array,\n nonOverflowingIncrementsForPages: Function,\n increaseNumDisplayedPages: Function,\n trackGoto: Function\n },\n data() {\n return {\n dataServices: {\n isVisible: this.$env.content.datasetDetails.dataServices.isVisible,\n displayAll: this.$env.content.datasetDetails.dataServices.displayAll,\n displayCount: this.$env.content.datasetDetails.dataServices.displayCount,\n incrementSteps: this.$env.content.datasetDetails.dataServices.incrementSteps,\n descriptionMaxLines: this.$env.content.datasetDetails.dataServices.descriptionMaxLines,\n descriptionMaxChars: this.$env.content.datasetDetails.dataServices.descriptionMaxChars,\n },\n expandedDataServicesDescriptions: [],\n expandedDataServices: [],\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getLanguages'\n ]),\n displayedDataServices() {\n const sorted = [...this.getDataServices].sort((a, b) => {\n if (getTranslationFor(a.title, this.$route.query.locale, this.getLanguages) < getTranslationFor(b.title, this.$route.query.locale, this.getLanguages)) { return -1; }\n if (getTranslationFor(a.title, this.$route.query.locale, this.getLanguages) > getTranslationFor(b.title, this.$route.query.locale, this.getLanguages)) { return 1; }\n return 0;\n });\n return this.dataServices.displayAll\n ? Object.freeze(sorted)\n : Object.freeze(sorted.slice(0, this.dataServices.displayCount));\n },\n isDataServicesAllDisplayed() {\n return this.dataServices.displayCount === this.getDataServices.length;\n },\n remainingDataServices() {\n return this.getDataServices.length - this.dataServices.displayCount;\n }\n },\n methods: {\n truncate,\n toggleDataServiceDescription(id) {\n const index = this.expandedDataServicesDescriptions.indexOf(id);\n if (index > -1) this.expandedDataServicesDescriptions.splice(index, 1);\n else this.expandedDataServicesDescriptions.push(id);\n },\n toggleDataServices() {\n this.dataServices.isVisible = !this.dataServices.isVisible;\n },\n dataServiceIsExpanded(id) {\n return this.expandedDataServices.includes(id);\n },\n dataServiceDescriptionIsExpanded(id) {\n return this.expandedDataServicesDescriptions.includes(id);\n },\n dataServiceDescriptionIsExpandable(description) {\n return isNil(description) ? false : description.length > this.dataServices.descriptionMaxChars;\n },\n getDataServiceTitle(dataService) {\n return dataService.title ? getTranslationFor(dataService.title, this.$route.query.locale, this.getLanguages) : truncate(dataService.endpoint_url[0], 50);\n },\n getDataServiceDescription(dataService) {\n return (has(dataService, 'description') && !isNil(dataService.description)) ? getTranslationFor(dataService.description, this.$route.query.locale, this.getLanguages) : this.$t('message.catalogsAndDatasets.noDescriptionAvailable');\n },\n getDataServiceResource(dataService) {\n return (has(dataService.availability, 'resource') && !isNil(dataService.availability.resource)) ? dataService.availability.resource : '';\n }\n },\n mounted() {\n const dataServicesConf = this.$env.content.datasetDetails && this.$env.content.datasetDetails.dataServices;\n if (dataServicesConf) {\n this.dataServices.displayAll = dataServicesConf.displayAll || this.dataServices.displayAll;\n this.dataServices.displayCount = parseInt(dataServicesConf.displayCount, 10) || this.dataServices.displayCount;\n\n if (typeof dataServicesConf.incrementSteps === 'string') {\n // Need to parse as json array since env variables are string only\n dataServicesConf.incrementSteps = JSON.parse(dataServicesConf.incrementSteps);\n }\n this.dataServices.incrementSteps = dataServicesConf.incrementSteps || this.dataServices.incrementSteps;\n }\n\n if (this.dataServices.displayAll) this.dataServices.displayCount = this.getDataServices.length;\n }\n}\n</script>\n"],"names":["_sfc_main","AppLink","mapGetters","sorted","a","b","getTranslationFor","truncate","id","index","description","isNil","dataService","has","dataServicesConf","_hoisted_1","_hoisted_4","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_11","_hoisted_12","_hoisted_14","_hoisted_17","_hoisted_19","_hoisted_23","_hoisted_24","_openBlock","_createElementBlock","_createVNode","_component_dataset_details_feature_header","_ctx","$props","$data","$options","_hoisted_2","_createElementVNode","_Fragment","_renderList","i","_hoisted_3","increment","$event","_toDisplayString","_hoisted_10","_hoisted_13","_hoisted_15","_hoisted_18","_hoisted_20","_hoisted_16","_renderSlot","_hoisted_21","_hoisted_22","_component_app_link"],"mappings":";;;;;;AAmHA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA;AAAA,IAET,SAAAC;AAAA,EAAO;AAAA,EACV,OAAO;AAAA,IACL,iBAAiB;AAAA,IACjB,kCAAkC;AAAA,IAClC,2BAA2B;AAAA,IAC3B,WAAW;AAAA,EACZ;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,cAAc;AAAA,QACZ,WAAW,KAAK,KAAK,QAAQ,eAAe,aAAa;AAAA,QACzD,YAAY,KAAK,KAAK,QAAQ,eAAe,aAAa;AAAA,QAC1D,cAAc,KAAK,KAAK,QAAQ,eAAe,aAAa;AAAA,QAC5D,gBAA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ATPV,GASO;AAAA,oBARLG,EAOWwB,GAAA;AAAA,sBAPD,OAAM;AAAA,sBACL,IAAI1C,EAAY,aAAY,CAAA;AAAA,sBAC7B,QAAO;AAAA,sBACP,KAAI;AAAA,sBACJ,yBAAA;AAAA,sBACC,cAAaqB,EAAS;AAAA;iCAC3B,MAAyC;AAAA,4BAAtCD,EAAE,GAAA,+BAAA,CAAA,GAAA,CAAA;AAAA;;;;;;;;;4BAOvBK,EAAiB,MAAA,EAAb,OAAM,OAAM,GAAA,MAAA,EAAA;AAAA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetDetailsFeatureHeader.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsFeatureHeader.vue"],"sourcesContent":["<template>\n <div class=\"d-flex w-100 heading\">\n <div class=\"col-1 my-auto text-right arrow dsd-feature-header-arrow-container\"\n @click=\"onClick()\">\n <i class=\"material-icons dsd-feature-header-arrow\">{{ arrowDown ? \"keyboard_arrow_down\" : \"keyboard_arrow_up\" }}</i>\n </div>\n <div class=\"col-11 py-2\">\n <span class=\"dsd-feature-title\"\n :data-cy=\"tag\"\n @click=\"onClick()\">{{ title }}</span>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"DatasetDetailsFeatureHeader\",\n props: {\n onClick: Function,\n title: String,\n tag: String,\n arrowDown: Boolean\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.heading {\n cursor: pointer;\n}\n.arrow {\n padding-right: 0;\n}\n@media screen and (max-width: 991px) {\n .dsd-feature-header-arrow-container {\n width: 48px !important;\n order: 2;\n padding-right: 15px;\n }\n}\n</style>\n"],"names":["_sfc_main","_hoisted_1","_hoisted_2","_hoisted_3","
|
|
1
|
+
{"version":3,"file":"DatasetDetailsFeatureHeader.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsFeatureHeader.vue"],"sourcesContent":["<template>\n <div class=\"d-flex w-100 heading\">\n <div class=\"col-1 my-auto text-right arrow dsd-feature-header-arrow-container\"\n @click=\"onClick()\">\n <i class=\"material-icons dsd-feature-header-arrow\">{{ arrowDown ? \"keyboard_arrow_down\" : \"keyboard_arrow_up\" }}</i>\n </div>\n <div class=\"col-11 py-2\">\n <span class=\"dsd-feature-title\"\n :data-cy=\"tag\"\n @click=\"onClick()\">{{ title }}</span>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"DatasetDetailsFeatureHeader\",\n props: {\n onClick: Function,\n title: String,\n tag: String,\n arrowDown: Boolean\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.heading {\n cursor: pointer;\n}\n.arrow {\n padding-right: 0;\n}\n@media screen and (max-width: 991px) {\n .dsd-feature-header-arrow-container {\n width: 48px !important;\n order: 2;\n padding-right: 15px;\n }\n}\n</style>\n"],"names":["_sfc_main","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_createElementVNode","$props","_toDisplayString","_hoisted_4"],"mappings":";;;AAeA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO;AAAA,IACL,SAAS;AAAA,IACT,OAAO;AAAA,IACP,KAAK;AAAA,IACL,WAAW;AAAA,EACb;AACF,GAtBOC,IAAA,EAAA,OAAM,uBAAsB,GAGxBC,IAAA,EAAA,OAAM,0CAAyC,GAEjDC,IAAA,EAAA,OAAM,cAAa;;AAL1B,SAAAC,EAAA,GAAAC,EAUM,OAVNJ,GAUM;AAAA,IATJK,EAGM,OAAA;AAAA,MAHD,OAAM;AAAA,MACL,gCAAOC,EAAO,QAAA;AAAA;MAChBD,EAAoH,KAApHJ,GAAoHM,EAA9DD,EAAS,YAAA,wBAAA,mBAAA,GAAA,CAAA;AAAA;;IAEnED,EAIM,OAJNH,GAIM;AAAA,MAHJG,EAEyC,QAAA;AAAA,QAFnC,OAAM;AAAA,QACP,WAASC,EAAG;AAAA,QACZ,gCAAOA,EAAO,QAAA;AAAA,WAAOA,EAAK,KAAA,GAAA,GAAAE,CAAA;AAAA;;;;"}
|
|
@@ -14,11 +14,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
14
14
|
dataset(): any;
|
|
15
15
|
getDataServices(): any[];
|
|
16
16
|
getDistributions: import('vuex').Computed;
|
|
17
|
+
getCategories: import('vuex').Computed;
|
|
17
18
|
getExtendedMetadata: import('vuex').Computed;
|
|
18
19
|
getPages: import('vuex').Computed;
|
|
19
20
|
getSpatial: import('vuex').Computed;
|
|
20
21
|
getHvdCategories: import('vuex').Computed;
|
|
21
|
-
getCategories: import('vuex').Computed;
|
|
22
22
|
getSubject: import('vuex').Computed;
|
|
23
23
|
getVisualisations: import('vuex').Computed;
|
|
24
24
|
getRelations: import('vuex').Computed;
|
|
@@ -64,7 +64,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
64
64
|
path: string;
|
|
65
65
|
query: {
|
|
66
66
|
hvdCategory: any;
|
|
67
|
-
locale:
|
|
67
|
+
locale: any;
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
toggleDisplayCount(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetDetailsFeatures.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsFeatures.vue"],"sourcesContent":["<template>\n <div class=\"row flex-column dsd-features\">\n <slot name=\"before\"></slot>\n\n <slot name=\"keywords\" :dataset=\"dataset\" :getKeywords=\"getKeywords\" :trackGoto=\"trackGoto\">\n <dataset-details-keywords\n class=\"dsd-keywords-feature\"\n v-if=\"showObjectArray(getKeywords) && keywordsisVisible\"\n :showKeyword=\"showKeyword\"\n />\n </slot>\n\n <slot name=\"categories\" :dataset=\"dataset\" :getCategories=\"getCategories\" :trackGoto=\"trackGoto\">\n <dataset-details-categories-key\n class=\"dsd-categories-feature\"\n v-if=\"showObjectArray(getCategories)\"\n :trackGoto=\"trackGoto\"\n />\n </slot>\n\n <slot name=\"hvd\" :dataset=\"dataset\" :getHvdCategories=\"getHvdCategories\" :trackGoto=\"trackGoto\">\n <dataset-details-hvd-themes\n class=\"dsd-categories-feature\"\n v-if=\"showObjectArray(getHvdCategories)\"\n :trackGoto=\"trackGoto\"\n />\n </slot>\n\n <slot name=\"subject\" :dataset=\"dataset\" :getSubject=\"getSubject\">\n <dataset-details-subject\n class=\"dsd-subject-feature\"\n v-if=\"showObjectArray(getSubject)\"\n />\n </slot>\n\n <!-- Documentation -->\n <slot name=\"pages\" :dataset=\"dataset\" :getPages=\"getPages\" :increaseNumDisplayedPages=\"increaseNumDisplayedPages\" :nonOverflowingIncrementsForPages=\"nonOverflowingIncrementsForPages\" :trackGoto=\"trackGoto\">\n <dataset-details-pages\n class=\"dsd-pages-feature\"\n v-if=\"showObjectArray(getPages)\"\n :pages=\"pages\"\n :increaseNumDisplayedPages=\"increaseNumDisplayedPages\"\n :nonOverflowingIncrementsForPages=\"nonOverflowingIncrementsForPages\"\n :trackGoto=\"trackGoto\"\n />\n </slot>\n\n <slot name=\"visualisations\" :dataset=\"dataset\" :getVisualisations=\"getVisualisations\" :trackGoto=\"trackGoto\">\n <dataset-details-visualisations\n class=\"dsd-visualisations-feature\"\n v-if=\"showObjectArray(getVisualisations)\"\n :trackGoto=\"trackGoto\"\n />\n </slot>\n\n <slot\n name=\"data-services\"\n :dataset=\"dataset\"\n :getDataServices=\"getDataServices\"\n :nonOverflowingIncrementsForPages=\"nonOverflowingIncrementsForPages\"\n :increaseNumDisplayedPages=\"increaseNumDisplayedPages\"\n :trackGoto=\"trackGoto\"\n >\n <dataset-details-data-services\n class=\"dsd-data-services-feature\"\n v-if=\"showObjectArray(getDataServices)\"\n :getDataServices=\"getDataServices\"\n :nonOverflowingIncrementsForPages=\"nonOverflowingIncrementsForPages\"\n :increaseNumDisplayedPages=\"increaseNumDisplayedPages\"\n :trackGoto=\"trackGoto\"\n />\n </slot>\n\n <slot name=\"is-used-by\" :dataset=\"dataset\" :getExtendedMetadata=\"getExtendedMetadata\">\n <dataset-details-is-used-by\n class=\"dsd-is-used-by\"\n v-if=\"showObject(getExtendedMetadata)\"\n />\n </slot>\n\n <slot name=\"relations\" :dataset=\"dataset\" :getRelations=\"getRelations\">\n <dataset-details-relations\n class=\"dsd-relations-feature\"\n v-if=\"showArray(getRelations)\"\n />\n </slot>\n\n <slot name=\"map\" :dataset=\"dataset\" :getSpatial=\"getSpatial\">\n <dataset-details-map\n class=\"dsd-map-feature\"\n v-if=\"showObjectArray(getSpatial)\"\n />\n </slot>\n\n <slot name=\"after\" :dataset=\"dataset\"></slot>\n </div>\n</template>\n\n<script>\nimport DatasetDetailsKeywords from \"../../datasetDetails/features/DatasetDetailsKeywords\";\nimport DatasetDetailsSubject from \"../../datasetDetails/features/DatasetDetailsSubject\";\nimport DatasetDetailsPages from \"../../datasetDetails/features/DatasetDetailsPages\";\nimport DatasetDetailsVisualisations from \"../../datasetDetails/features/DatasetDetailsVisualisations\";\nimport DatasetDetailsDataServices from \"../../datasetDetails/features/DatasetDetailsDataServices\";\nimport DatasetDetailsIsUsedBy from \"../../datasetDetails/features/DatasetDetailsIsUsedBy\";\nimport DatasetDetailsRelations from \"../../datasetDetails/features/DatasetDetailsRelations\";\nimport DatasetDetailsMap from \"../../datasetDetails/features/DatasetDetailsMap\";\nimport DatasetDetailsCategoriesKey from \"../../datasetDetails/features/DatasetDetailsCategoriesKey\";\nimport DatasetDetailsHvdThemes from \"../../datasetDetails/features/DatasetDetailsHvdThemes.vue\"\n\nimport {mapGetters} from \"vuex\";\nimport {has, isEmpty} from \"lodash\";\n\nexport default {\n name: \"DatasetDetailsFeatures\",\n components: {\n DatasetDetailsMap,\n DatasetDetailsCategoriesKey,\n DatasetDetailsRelations,\n DatasetDetailsIsUsedBy,\n DatasetDetailsDataServices,\n DatasetDetailsVisualisations,\n DatasetDetailsPages,\n DatasetDetailsSubject,\n DatasetDetailsKeywords,\n DatasetDetailsHvdThemes\n },\n props: {\n getKeywords: Array,\n pages: Object,\n increaseNumDisplayedPages: Function,\n nonOverflowingIncrementsForPages: Function,\n showKeyword: Function,\n trackGoto: Function,\n showObjectArray: Function,\n showArray: Function,\n showObject: Function\n },\n data() {\n return {\n keywordsisVisible: (this.$env.content.datasetDetails.keywords.isVisible === false) ? false : true,\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getSubject',\n 'getPages',\n 'getVisualisations',\n 'getDistributions',\n 'getExtendedMetadata',\n 'getRelations',\n 'getCategories',\n 'getSpatial',\n \"getHvdCategories\"\n ]),\n dataset() {\n return this.$store.state.datasetDetails.dataset;\n },\n getDataServices() {\n if (this.getDistributions) {\n const accessServiceList = this.getDistributions\n .filter(distribution => has(distribution, 'accessService') && !isEmpty(distribution.accessService))\n .map(distribution => ({\n endpoint_url: distribution.accessService[0].endpoint_url,\n title: distribution.accessService[0].title,\n description: distribution.accessService[0].description,\n availability: has(distribution.accessService[0], 'availability') ? distribution.accessService[0].availability : {} // field added for DCAT-AP.de\n }));\n const uniqueAccessServiceList = [...new Map(\n accessServiceList\n .filter(accessService => accessService?.endpoint_url?.length)\n .map(accessService => [\n accessService.endpoint_url[0], accessService,\n ]),\n ).values()];\n return uniqueAccessServiceList;\n }\n return [{}];\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n"],"names":["_sfc_main","DatasetDetailsMap","DatasetDetailsCategoriesKey","DatasetDetailsRelations","DatasetDetailsIsUsedBy","DatasetDetailsDataServices","DatasetDetailsVisualisations","DatasetDetailsPages","DatasetDetailsSubject","DatasetDetailsKeywords","DatasetDetailsHvdThemes","mapGetters","accessServiceList","distribution","has","isEmpty","accessService","_a","_hoisted_1","_openBlock","_createElementBlock","_renderSlot","_ctx","_cache","_createTextVNode","$options","$props","$data","_createBlock","_component_dataset_details_keywords","_createCommentVNode","_component_dataset_details_categories_key","_component_dataset_details_hvd_themes","_component_dataset_details_subject","_component_dataset_details_pages","_component_dataset_details_visualisations","_component_dataset_details_data_services","_component_dataset_details_is_used_by","_component_dataset_details_relations","_component_dataset_details_map"],"mappings":";;;;;;;;;;;;;;AAiH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EU,GAAA;AAAA,QApFR,KAAA;AAAA,QAkFQ,OAAM;AAAA,YAlFdR,EAAA,IAAA,EAAA;AAAA;IAAAP,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,IAuFIH,EAKOC,EAAA,QAAA,OAAA;AAAA,MALW,SAASG,EAAO;AAAA,MAAG,YAAYH,EAAU;AAAA,OAA3D,MAKO;AAAA,MAFGI,EAAA,gBAAgBJ,EAAU,UAAA,UAFlCM,EAGEW,GAAA;AAAA,QA3FR,KAAA;AAAA,QAyFQ,OAAM;AAAA,YAzFdT,EAAA,IAAA,EAAA;AAAA;IAAAP,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAC,EAAA;AAAA,IA8FIH,EAA6CC,EAAA,QAAA,SAAA,EAAzB,SAASG,EAAO,SAAA;AAAA;;;"}
|
|
1
|
+
{"version":3,"file":"DatasetDetailsFeatures.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsFeatures.vue"],"sourcesContent":["<template>\n <div class=\"row flex-column dsd-features\">\n <slot name=\"before\"></slot>\n\n <slot name=\"keywords\" :dataset=\"dataset\" :getKeywords=\"getKeywords\" :trackGoto=\"trackGoto\">\n <dataset-details-keywords\n class=\"dsd-keywords-feature\"\n v-if=\"showObjectArray(getKeywords) && keywordsisVisible\"\n :showKeyword=\"showKeyword\"\n />\n </slot>\n\n <slot name=\"categories\" :dataset=\"dataset\" :getCategories=\"getCategories\" :trackGoto=\"trackGoto\">\n <dataset-details-categories-key\n class=\"dsd-categories-feature\"\n v-if=\"showObjectArray(getCategories)\"\n :trackGoto=\"trackGoto\"\n />\n </slot>\n\n <slot name=\"hvd\" :dataset=\"dataset\" :getHvdCategories=\"getHvdCategories\" :trackGoto=\"trackGoto\">\n <dataset-details-hvd-themes\n class=\"dsd-categories-feature\"\n v-if=\"showObjectArray(getHvdCategories)\"\n :trackGoto=\"trackGoto\"\n />\n </slot>\n\n <slot name=\"subject\" :dataset=\"dataset\" :getSubject=\"getSubject\">\n <dataset-details-subject\n class=\"dsd-subject-feature\"\n v-if=\"showObjectArray(getSubject)\"\n />\n </slot>\n\n <!-- Documentation -->\n <slot name=\"pages\" :dataset=\"dataset\" :getPages=\"getPages\" :increaseNumDisplayedPages=\"increaseNumDisplayedPages\" :nonOverflowingIncrementsForPages=\"nonOverflowingIncrementsForPages\" :trackGoto=\"trackGoto\">\n <dataset-details-pages\n class=\"dsd-pages-feature\"\n v-if=\"showObjectArray(getPages)\"\n :pages=\"pages\"\n :increaseNumDisplayedPages=\"increaseNumDisplayedPages\"\n :nonOverflowingIncrementsForPages=\"nonOverflowingIncrementsForPages\"\n :trackGoto=\"trackGoto\"\n />\n </slot>\n\n <slot name=\"visualisations\" :dataset=\"dataset\" :getVisualisations=\"getVisualisations\" :trackGoto=\"trackGoto\">\n <dataset-details-visualisations\n class=\"dsd-visualisations-feature\"\n v-if=\"showObjectArray(getVisualisations)\"\n :trackGoto=\"trackGoto\"\n />\n </slot>\n\n <slot\n name=\"data-services\"\n :dataset=\"dataset\"\n :getDataServices=\"getDataServices\"\n :nonOverflowingIncrementsForPages=\"nonOverflowingIncrementsForPages\"\n :increaseNumDisplayedPages=\"increaseNumDisplayedPages\"\n :trackGoto=\"trackGoto\"\n >\n <dataset-details-data-services\n class=\"dsd-data-services-feature\"\n v-if=\"showObjectArray(getDataServices)\"\n :getDataServices=\"getDataServices\"\n :nonOverflowingIncrementsForPages=\"nonOverflowingIncrementsForPages\"\n :increaseNumDisplayedPages=\"increaseNumDisplayedPages\"\n :trackGoto=\"trackGoto\"\n />\n </slot>\n\n <slot name=\"is-used-by\" :dataset=\"dataset\" :getExtendedMetadata=\"getExtendedMetadata\">\n <dataset-details-is-used-by\n class=\"dsd-is-used-by\"\n v-if=\"showObject(getExtendedMetadata)\"\n />\n </slot>\n\n <slot name=\"relations\" :dataset=\"dataset\" :getRelations=\"getRelations\">\n <dataset-details-relations\n class=\"dsd-relations-feature\"\n v-if=\"showArray(getRelations)\"\n />\n </slot>\n\n <slot name=\"map\" :dataset=\"dataset\" :getSpatial=\"getSpatial\">\n <dataset-details-map\n class=\"dsd-map-feature\"\n v-if=\"showObjectArray(getSpatial)\"\n />\n </slot>\n\n <slot name=\"after\" :dataset=\"dataset\"></slot>\n </div>\n</template>\n\n<script>\nimport DatasetDetailsKeywords from \"../../datasetDetails/features/DatasetDetailsKeywords\";\nimport DatasetDetailsSubject from \"../../datasetDetails/features/DatasetDetailsSubject\";\nimport DatasetDetailsPages from \"../../datasetDetails/features/DatasetDetailsPages\";\nimport DatasetDetailsVisualisations from \"../../datasetDetails/features/DatasetDetailsVisualisations\";\nimport DatasetDetailsDataServices from \"../../datasetDetails/features/DatasetDetailsDataServices\";\nimport DatasetDetailsIsUsedBy from \"../../datasetDetails/features/DatasetDetailsIsUsedBy\";\nimport DatasetDetailsRelations from \"../../datasetDetails/features/DatasetDetailsRelations\";\nimport DatasetDetailsMap from \"../../datasetDetails/features/DatasetDetailsMap\";\nimport DatasetDetailsCategoriesKey from \"../../datasetDetails/features/DatasetDetailsCategoriesKey\";\nimport DatasetDetailsHvdThemes from \"../../datasetDetails/features/DatasetDetailsHvdThemes.vue\"\n\nimport {mapGetters} from \"vuex\";\nimport {has, isEmpty} from \"lodash\";\n\nexport default {\n name: \"DatasetDetailsFeatures\",\n components: {\n DatasetDetailsMap,\n DatasetDetailsCategoriesKey,\n DatasetDetailsRelations,\n DatasetDetailsIsUsedBy,\n DatasetDetailsDataServices,\n DatasetDetailsVisualisations,\n DatasetDetailsPages,\n DatasetDetailsSubject,\n DatasetDetailsKeywords,\n DatasetDetailsHvdThemes\n },\n props: {\n getKeywords: Array,\n pages: Object,\n increaseNumDisplayedPages: Function,\n nonOverflowingIncrementsForPages: Function,\n showKeyword: Function,\n trackGoto: Function,\n showObjectArray: Function,\n showArray: Function,\n showObject: Function\n },\n data() {\n return {\n keywordsisVisible: (this.$env.content.datasetDetails.keywords.isVisible === false) ? false : true,\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getSubject',\n 'getPages',\n 'getVisualisations',\n 'getDistributions',\n 'getExtendedMetadata',\n 'getRelations',\n 'getCategories',\n 'getSpatial',\n \"getHvdCategories\"\n ]),\n dataset() {\n return this.$store.state.datasetDetails.dataset;\n },\n getDataServices() {\n if (this.getDistributions) {\n const accessServiceList = this.getDistributions\n .filter(distribution => has(distribution, 'accessService') && !isEmpty(distribution.accessService))\n .map(distribution => ({\n endpoint_url: distribution.accessService[0].endpoint_url,\n title: distribution.accessService[0].title,\n description: distribution.accessService[0].description,\n availability: has(distribution.accessService[0], 'availability') ? distribution.accessService[0].availability : {} // field added for DCAT-AP.de\n }));\n const uniqueAccessServiceList = [...new Map(\n accessServiceList\n .filter(accessService => accessService?.endpoint_url?.length)\n .map(accessService => [\n accessService.endpoint_url[0], accessService,\n ]),\n ).values()];\n return uniqueAccessServiceList;\n }\n return [{}];\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n"],"names":["_sfc_main","DatasetDetailsMap","DatasetDetailsCategoriesKey","DatasetDetailsRelations","DatasetDetailsIsUsedBy","DatasetDetailsDataServices","DatasetDetailsVisualisations","DatasetDetailsPages","DatasetDetailsSubject","DatasetDetailsKeywords","DatasetDetailsHvdThemes","mapGetters","accessServiceList","distribution","has","isEmpty","accessService","_a","_hoisted_1","_openBlock","_createElementBlock","_renderSlot","_ctx","$options","$props","$data","_createBlock","_component_dataset_details_keywords","_component_dataset_details_categories_key","_component_dataset_details_hvd_themes","_component_dataset_details_subject","_component_dataset_details_pages","_component_dataset_details_visualisations","_component_dataset_details_data_services","_component_dataset_details_is_used_by","_component_dataset_details_relations","_component_dataset_details_map"],"mappings":";;;;;;;;;;;;;;AAiHA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,mBAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,yBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,4BAAAC;AAAA,IACA,8BAAAC;AAAA,IACA,qBAAAC;AAA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EAAO;AAAA,MAAG,cAAcD,EAAY;AAAA,OAArE,MAKO;AAAA,MAFGE,EAAA,UAAUF,EAAY,YAAA,UAF9BI,EAGES,GAAA;AAAA;QAFA,OAAM;AAAA;;;IAKVd,EAKOC,EAAA,QAAA,OAAA;AAAA,MALW,SAASC,EAAO;AAAA,MAAG,YAAYD,EAAU;AAAA,OAA3D,MAKO;AAAA,MAFGE,EAAA,gBAAgBF,EAAU,UAAA,UAFlCI,EAGEU,GAAA;AAAA;QAFA,OAAM;AAAA;;;IAKVf,EAA6CC,EAAA,QAAA,SAAA,EAAzB,SAASC,EAAO,SAAA;AAAA;;;"}
|
|
@@ -22,7 +22,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {
|
|
|
22
22
|
path: string;
|
|
23
23
|
query: {
|
|
24
24
|
hvdCategory: any;
|
|
25
|
-
locale:
|
|
25
|
+
locale: any;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
toggleDisplayCount(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetDetailsHvdThemes.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsHvdThemes.vue"],"sourcesContent":["<template>\n <div class=\"mt-2 flex-column dsd-feature\">\n <div>\n <dataset-details-feature-header\n :title=\"`HVD Categories/Themes (${\n getHvdCategories ? getHvdCategories.length.toLocaleString('fi') : 0\n })`\"\n :arrowDown=\"!isCategoriesAllDisplayed\"\n tag=\"keywords-toggle\"\n :onClick=\"toggleDisplayCount\"\n />\n </div> \n <div v-if=\"isCategoriesAllDisplayed\" class=\"keywords__item row mt-4\">\n <span\n v-for='(category, i) in getHvdCategories'\n :key=\"i\"\n class=\"col-6 col-sm-3 col-md-2 mt-md-0 mt-3 mb-2 px-1\"\n >\n <app-link :to=\"getHvdCategoryLink(category)\" :rel=\"followCategoryLinks\">\n <small class=\"d-inline-block text-nowrap w-100 py-2 rounded-pill text-center text-white tag-color\"\n :data-toggle=\"categoryTruncated(category) ? 'tooltip' : false\"\n :data-placement=\"categoryTruncated(category) ? 'top' : false\"\n :aria-label=\"getTranslationFor(category.title, $route.query.locale)\"\n :title=\"categoryTruncated(category) ? getTranslationFor(category.title, $route.query.locale) : false\">\n {{ truncate(getTranslationFor(category.title, $route.query.locale), maxCategoryLength, false) }}\n </small>\n </app-link>\n </span>\n </div>\n <div>\n </div>\n </div>\n </template>\n \n <script>\n import DatasetDetailsFeatureHeader from \"../../datasetDetails/features/DatasetDetailsFeatureHeader\";\n import {truncate} from \"../../utils/helpers\";\n import {mapGetters} from \"vuex\";\n import AppLink from \"../../widgets/AppLink\";\n import { getTranslationFor } from \"../../utils/helpers\";\n import {sortAlphabetically} from \"../../datasetDetails/features/utils/sortAlphabetically\";\n import $ from \"jquery\";\n \n \n export default {\n name: \"DatasetDetailsHvdThemes\",\n components: {\n AppLink,\n // DatasetDetailsFeatureHeader\n },\n props: {\n\n },\n data() {\n return {\n defaultLocale: this.$env.languages.locale,\n defaultDisplayCount: 0,\n hvdCategories: {\n displayAll: false,\n displayCount: 24, // Should never exceed number of keywords\n incrementSteps: [12, 60],\n },\n maxCategoryLength: 15,\n followCategoryLinks: this.$env.content.datasets.followCategoryLinks\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n \"getHvdCategories\"\n ]),\n isCategoriesAllDisplayed() {\n // return this.categories.displayCount >= this.getCategories.length;\n return this.hvdCategories.displayAll;\n }\n },\n methods: {\n truncate,\n sortAlphabetically,\n getTranslationFor,\n categoryTruncated(category) {\n return getTranslationFor(category.title, this.defaultLocale).length > this.maxCategoryLength;\n },\n getHvdCategoryLink(category) {\n const categoryID = category.id;\n return {\n path: `/datasets`,\n query: Object.assign({}, { hvdCategory: categoryID, locale: this.$route.query.locale })\n };\n },\n toggleDisplayCount() {\n $('body').tooltip({selector: '[data-toggle=\"tooltip\"]'});\n if (this.hvdCategories.displayCount < this.getHvdCategories.length) {\n this.hvdCategories.displayCount = this.getHvdCategories.length;\n } else {\n this.hvdCategories.displayCount = this.defaultDisplayCount;\n }\n this.hvdCategories.displayAll = !this.hvdCategories.displayAll;\n }\n }\n }\n </script>\n \n <style scoped lang=\"scss\">\n .tag-color {\n background-color: var(--primary);\n }\n </style>\n "],"names":["_sfc_main","AppLink","mapGetters","truncate","sortAlphabetically","getTranslationFor","category","categoryID","$","_hoisted_1","
|
|
1
|
+
{"version":3,"file":"DatasetDetailsHvdThemes.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsHvdThemes.vue"],"sourcesContent":["<template>\n <div class=\"mt-2 flex-column dsd-feature\">\n <div>\n <dataset-details-feature-header\n :title=\"`HVD Categories/Themes (${\n getHvdCategories ? getHvdCategories.length.toLocaleString('fi') : 0\n })`\"\n :arrowDown=\"!isCategoriesAllDisplayed\"\n tag=\"keywords-toggle\"\n :onClick=\"toggleDisplayCount\"\n />\n </div> \n <div v-if=\"isCategoriesAllDisplayed\" class=\"keywords__item row mt-4\">\n <span\n v-for='(category, i) in getHvdCategories'\n :key=\"i\"\n class=\"col-6 col-sm-3 col-md-2 mt-md-0 mt-3 mb-2 px-1\"\n >\n <app-link :to=\"getHvdCategoryLink(category)\" :rel=\"followCategoryLinks\">\n <small class=\"d-inline-block text-nowrap w-100 py-2 rounded-pill text-center text-white tag-color\"\n :data-toggle=\"categoryTruncated(category) ? 'tooltip' : false\"\n :data-placement=\"categoryTruncated(category) ? 'top' : false\"\n :aria-label=\"getTranslationFor(category.title, $route.query.locale)\"\n :title=\"categoryTruncated(category) ? getTranslationFor(category.title, $route.query.locale) : false\">\n {{ truncate(getTranslationFor(category.title, $route.query.locale), maxCategoryLength, false) }}\n </small>\n </app-link>\n </span>\n </div>\n <div>\n </div>\n </div>\n </template>\n \n <script>\n import DatasetDetailsFeatureHeader from \"../../datasetDetails/features/DatasetDetailsFeatureHeader\";\n import {truncate} from \"../../utils/helpers\";\n import {mapGetters} from \"vuex\";\n import AppLink from \"../../widgets/AppLink\";\n import { getTranslationFor } from \"../../utils/helpers\";\n import {sortAlphabetically} from \"../../datasetDetails/features/utils/sortAlphabetically\";\n import $ from \"jquery\";\n \n \n export default {\n name: \"DatasetDetailsHvdThemes\",\n components: {\n AppLink,\n // DatasetDetailsFeatureHeader\n },\n props: {\n\n },\n data() {\n return {\n defaultLocale: this.$env.languages.locale,\n defaultDisplayCount: 0,\n hvdCategories: {\n displayAll: false,\n displayCount: 24, // Should never exceed number of keywords\n incrementSteps: [12, 60],\n },\n maxCategoryLength: 15,\n followCategoryLinks: this.$env.content.datasets.followCategoryLinks\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n \"getHvdCategories\"\n ]),\n isCategoriesAllDisplayed() {\n // return this.categories.displayCount >= this.getCategories.length;\n return this.hvdCategories.displayAll;\n }\n },\n methods: {\n truncate,\n sortAlphabetically,\n getTranslationFor,\n categoryTruncated(category) {\n return getTranslationFor(category.title, this.defaultLocale).length > this.maxCategoryLength;\n },\n getHvdCategoryLink(category) {\n const categoryID = category.id;\n return {\n path: `/datasets`,\n query: Object.assign({}, { hvdCategory: categoryID, locale: this.$route.query.locale })\n };\n },\n toggleDisplayCount() {\n $('body').tooltip({selector: '[data-toggle=\"tooltip\"]'});\n if (this.hvdCategories.displayCount < this.getHvdCategories.length) {\n this.hvdCategories.displayCount = this.getHvdCategories.length;\n } else {\n this.hvdCategories.displayCount = this.defaultDisplayCount;\n }\n this.hvdCategories.displayAll = !this.hvdCategories.displayAll;\n }\n }\n }\n </script>\n \n <style scoped lang=\"scss\">\n .tag-color {\n background-color: var(--primary);\n }\n </style>\n "],"names":["_sfc_main","AppLink","mapGetters","truncate","sortAlphabetically","getTranslationFor","category","categoryID","$","_hoisted_1","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_component_dataset_details_feature_header","_ctx","$options","_hoisted_2","_Fragment","_renderList","i","_component_app_link","$data","_toDisplayString","_hoisted_3"],"mappings":";;;;;;;;;AA4CE,MAAKA,IAAU;AAAA,EACf,MAAM;AAAA,EACN,YAAY;AAAA,IACV,SAAAC;AAAA;AAA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NC,EAOAC,GAAA;AAAA,QANC,OAAK,0BAAyCC,EAAA,mBAAmBA,EAAA,iBAAiB,OAAO,eAAc,IAAA,IAAA;QAGvG,YAAYC,EAAwB;AAAA,QACrC,KAAI;AAAA,QACH,SAASA,EAAkB;AAAA;;;IAGjBA,EAAwB,4BAAnCN,KAAAC,EAgBM,OAhBNM,GAgBM;AAAA,OAfFP,EAAA,EAAA,GAAAC,EAcOO,GAbmB,MAAAC,EAAAJ,EAAA,kBAAhB,CAAAT,GAAUc,YADpBT,EAcO,QAAA;AAAA,QAZJ,KAAKS;AAAA,QACN,OAAM;AAAA;QAERP,EAQaQ,GAAA;AAAA,UARF,IAAIL,EAAkB,mBAACV,CAAQ;AAAA,UAAI,KAAKgB,EAAmB;AAAA;qBAClE,MAMQ;AAAA,YANRV,EAMQ,SAAA;AAAA,cAND,OAAM;AAAA,cACL,eAAaI,EAAiB,kBAACV,CAAQ,IAAA,YAAA;AAAA,cACvC,kBAAgBU,EAAiB,kBAACV,CAAQ,IAAA,QAAA;AAAA,cAC1C,cAAYU,EAAiB,kBAACV,EAAS,OAAOS,EAAM,OAAC,MAAM,MAAM;AAAA,cACjE,OAAOC,EAAA,kBAAkBV,CAAQ,IAAIU,EAAiB,kBAACV,EAAS,OAAOS,EAAA,OAAO,MAAM,MAAM,IAAA;AAAA,YAC7F,GAAAQ,EAAAP,EAAA,SAASA,EAAA,kBAAkBV,EAAS,OAAOS,EAAA,OAAO,MAAM,MAAM,GAAGO,EAAiB,mBAAA,EAAA,CAAA,GAAA,GAAAE,CAAA;AAAA;;;;;;oBAK/FZ,EACM,OAAA,MAAA,MAAA,EAAA;AAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetDetailsIsUsedBy.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsIsUsedBy.vue"],"sourcesContent":["<template>\n <div class=\"dsd-feature\">\n <dataset-details-feature-header\n :title=\"`${$t('message.datasetDetails.isUsedBy')} (${getExtendedMetadata ? getExtendedMetadata.is_used_by.toLocaleString('fi') : 0})`\"\n :arrowDown=\"!isUsedBy.isVisible\"\n tag=\"documentation-toggle\"\n :onClick=\"toggleIsUsedBy\"\n />\n <span v-if=\"isUsedBy.isVisible\" class=\"list list-unstyled col-12\">\n <hr>\n <ul class=\"sectionList\" v-if=\"getExtendedMetadata.is_used_by.length != null || getExtendedMetadata.is_used_by != undefined \">\n <li v-for=\"(link, i) in getExtendedMetadata.is_used_by\" :key=\"i\">\n <a :href=\"link\" target=\"_blank\">{{link}}</a>\n </li>\n </ul>\n <hr>\n </span>\n </div>\n</template>\n\n<script>\nimport {mapGetters} from \"vuex\";\n// DatasetDetailsFeatureHeader is imported globally\n// import DatasetDetailsFeatureHeader from \"../../datasetDetails/features/DatasetDetailsFeatureHeader\";\n\nexport default {\n name: \"DatasetDetailsIsUsedBy\",\n // components: {DatasetDetailsFeatureHeader},\n data() {\n return {\n isUsedBy: {\n isVisible: this.$env.content.datasetDetails.isUsedBy.isVisible,\n }\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getExtendedMetadata'\n ])\n },\n methods: {\n toggleIsUsedBy() {\n this.isUsedBy.isVisible = !this.isUsedBy.isVisible;\n }\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n.heading {\n cursor: pointer;\n}\n</style>\n"],"names":["_sfc_main","mapGetters","_hoisted_1","
|
|
1
|
+
{"version":3,"file":"DatasetDetailsIsUsedBy.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsIsUsedBy.vue"],"sourcesContent":["<template>\n <div class=\"dsd-feature\">\n <dataset-details-feature-header\n :title=\"`${$t('message.datasetDetails.isUsedBy')} (${getExtendedMetadata ? getExtendedMetadata.is_used_by.toLocaleString('fi') : 0})`\"\n :arrowDown=\"!isUsedBy.isVisible\"\n tag=\"documentation-toggle\"\n :onClick=\"toggleIsUsedBy\"\n />\n <span v-if=\"isUsedBy.isVisible\" class=\"list list-unstyled col-12\">\n <hr>\n <ul class=\"sectionList\" v-if=\"getExtendedMetadata.is_used_by.length != null || getExtendedMetadata.is_used_by != undefined \">\n <li v-for=\"(link, i) in getExtendedMetadata.is_used_by\" :key=\"i\">\n <a :href=\"link\" target=\"_blank\">{{link}}</a>\n </li>\n </ul>\n <hr>\n </span>\n </div>\n</template>\n\n<script>\nimport {mapGetters} from \"vuex\";\n// DatasetDetailsFeatureHeader is imported globally\n// import DatasetDetailsFeatureHeader from \"../../datasetDetails/features/DatasetDetailsFeatureHeader\";\n\nexport default {\n name: \"DatasetDetailsIsUsedBy\",\n // components: {DatasetDetailsFeatureHeader},\n data() {\n return {\n isUsedBy: {\n isVisible: this.$env.content.datasetDetails.isUsedBy.isVisible,\n }\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getExtendedMetadata'\n ])\n },\n methods: {\n toggleIsUsedBy() {\n this.isUsedBy.isVisible = !this.isUsedBy.isVisible;\n }\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n.heading {\n cursor: pointer;\n}\n</style>\n"],"names":["_sfc_main","mapGetters","_hoisted_1","_openBlock","_createElementBlock","_createVNode","_component_dataset_details_feature_header","_ctx","$data","$options","_hoisted_2","_createElementVNode","_hoisted_3","_Fragment","link","i","_hoisted_4"],"mappings":";;;;AAyBA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA;AAAA,EAEN,OAAO;AACL,WAAO;AAAA,MACL,UAAU;AAAA,QACR,WAAW,KAAK,KAAK,QAAQ,eAAe,SAAS;AAAA,MACvD;AAAA;EAEH;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,kBAAkB;AAAA,MAC9B;AAAA,KACD;AAAA,EACF;AAAA,EACD,SAAS;AAAA,IACP,iBAAiB;AACf,WAAK,SAAS,YAAY,CAAC,KAAK,SAAS;AAAA,IAC3C;AAAA,EACF;AACF,GA5COC,IAAA,EAAA,OAAM,cAAa;;EAOU,OAAM;;;EAE9B,OAAM;;;;AAThB,SAAAC,EAAA,GAAAC,EAgBM,OAhBNF,GAgBM;AAAA,IAfJG,EAKEC,GAAA;AAAA,MAJC,OAAK,GAAKC,KAA0C,iCAAA,CAAA,KAAAA,EAAA,sBAAsBA,EAAmB,oBAAC,WAAW,eAAc,IAAA,IAAA,CAAA;AAAA,MACvH,WAAS,CAAGC,EAAQ,SAAC;AAAA,MACtB,KAAI;AAAA,MACH,SAASC,EAAc;AAAA;;IAEdD,EAAA,SAAS,aAArBL,KAAAC,EAQO,QARPM,GAQO;AAAA,sBAPLC,EAAI,MAAA,MAAA,MAAA,EAAA;AAAA;MAC4BJ,EAAmB,oBAAC,WAAW,kBAAkBA,EAAmB,oBAAC,cAAc,QAAjHJ,KAAAC,EAIK,MAJLQ,GAIK;AAAA,SAHDT,EAAA,EAAA,GAAAC,EAEKS,WAFmBN,EAAmB,oBAAC,YAAhC,CAAAO,GAAMC,YAAlBX,EAEK,MAAA,EAFoD,KAAKW,KAAC;AAAA,UAC7DJ,EAA4C,KAAA;AAAA,YAAxC,MAAMG;AAAA,YAAM,QAAO;AAAA,eAAWA,CAAI,GAAA,GAAAE,CAAA;AAAA;;;sBAG9CL,EAAI,MAAA,MAAA,MAAA,EAAA;AAAA;;;;"}
|
|
@@ -30,7 +30,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
30
30
|
path: string;
|
|
31
31
|
query: {
|
|
32
32
|
keywords: any;
|
|
33
|
-
locale:
|
|
33
|
+
locale: any;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
toggleDisplayCount(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetDetailsKeywords.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsKeywords.vue"],"sourcesContent":["<template>\n <div class=\"mt-2 flex-column dsd-feature\">\n <div >\n <dataset-details-feature-header\n :title=\"'Keywords '+'(' + getKeywords.length + ')'\"\n :arrowDown=\"!isKeywordsAllDisplayed\"\n tag=\"keywords-toggle\"\n :onClick=\"toggleDisplayCount\"\n />\n </div>\n <div v-if=\"isKeywordsAllDisplayed\" class=\"keywords__item row mt-4\">\n <span\n v-for='(keyword, i) in displayedKeywords'\n :key=\"i\"\n class=\"col-6 col-sm-3 col-md-2 mt-md-0 mt-3 mb-2 px-1\"\n >\n <app-link v-if=\"showKeyword(keyword) && isKeywordsAllDisplayed\" :to=\"getKeywordLink(keyword)\" :rel=\"followKeywordLinks\">\n <small class=\"d-inline-block text-nowrap w-100 py-2 rounded-pill text-center tag-color\"\n :data-toggle=\"keywordTruncated(keyword) ? 'tooltip' : false\"\n :data-placement=\"keywordTruncated(keyword) ? 'top' : false\"\n :aria-label=\"keyword.title\"\n :title=\"keywordTruncated(keyword) ? keyword.title : false\">\n {{ truncate(keyword.title, maxKeywordLength, false) }}\n </small>\n </app-link>\n </span>\n </div>\n <div>\n </div>\n<!-- <div>-->\n<!-- <div-->\n<!-- v-if=\"!keywords.displayAll && !isKeywordsAllDisplayed\"-->\n<!-- class=\"keywords__item\"-->\n<!-- >-->\n<!-- <div-->\n<!-- class=\"keywords__actions pb-md-3\"-->\n<!-- >-->\n<!-- <button-->\n<!-- v-for=\"increment in keywords.incrementSteps.filter(nonOverflowingIncrementsForKeywords)\"-->\n<!-- :key=\"increment\"-->\n<!-- class=\"btn btn-sm btn-secondary mr-1\"-->\n<!-- @click=\"increaseNumDisplayedKeywords(increment)\"-->\n<!-- >-->\n<!-- <i class=\"fas fa-chevron-down\"/> {{ $t('message.metadata.showXMore', { increment }) }}-->\n<!-- </button>-->\n<!-- <button-->\n<!-- class=\"btn btn-sm btn-primary\"-->\n<!-- @click=\"keywords.displayCount = getKeywords.length\"-->\n<!-- >-->\n<!-- <i class=\"fas fa-eye\"/> {{ $t('message.metadata.showAll') }} {{ getKeywords.length.toLocaleString('fi') }}-->\n<!-- </button>-->\n<!-- </div>-->\n<!-- </div>-->\n<!-- </div> -->\n </div>\n</template>\n\n<script>\n// DatasetDetailsFeatureHeader is imported globally\n// import DatasetDetailsFeatureHeader from \"@/modules/datasetDetails/features/DatasetDetailsFeatureHeader\";\nimport {truncate} from \"../../utils/helpers\";\nimport {mapGetters} from \"vuex\";\nimport {has, isString} from \"lodash\";\nimport AppLink from \"../../widgets/AppLink\";\nimport {sortAlphabetically} from \"../../datasetDetails/features/utils/sortAlphabetically\";\nimport $ from \"jquery\";\n\n\nexport default {\n name: \"DatasetDetailsKeywords\",\n components: {AppLink,\n // DatasetDetailsFeatureHeader\n },\n props: {\n showKeyword: Function,\n },\n data() {\n return {\n defaultLocale: this.$env.languages.locale,\n showTitle: this.$env.content.datasetDetails.keywords.showTitle,\n defaultDisplayCount: 0,\n keywords: {\n displayAll: this.$env.content.datasetDetails.keywords.collapsed ? this.$env.content.datasetDetails.keywords.collapsed : false,\n displayCount: 24, // Should never exceed number of keywords\n incrementSteps: [12, 60],\n },\n maxKeywordLength: this.$env.content.datasets.maxKeywordLength,\n followKeywordLinks: this.$env.content.datasets.followKeywordLinks\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getKeywords'\n ]),\n displayedKeywords() {\n return this.keywords.displayAll\n ? Object.freeze(this.sortedKeywords)\n : Object.freeze(this.sortedKeywords.slice(0, this.keywords.displayCount));\n },\n isKeywordsAllDisplayed() {\n return this.keywords.displayAll;\n },\n remainingKeywords() {\n return this.getKeywords.length - this.keywords.displayCount;\n },\n sortedKeywords() {\n let selected = [], fallback = [], other = {}, without = []; // eslint-disable-line\n const selectedLanguage = this.$route.query.locale;\n const fallbackLanguage = this.defaultLocale;\n // Sort by language\n this.getKeywords.forEach(k => has(k, 'language') && isString(k.language)\n ? (k.language === selectedLanguage\n ? selected.push(k)\n : k.language === fallbackLanguage\n ? fallback.push(k)\n : has(other, k.language)\n ? other[k.language].push(k)\n : other[k.language] = [k])\n : without.push(k));\n // Sort alphabetically\n this.sortAlphabetically(selected, 'title', selectedLanguage);\n this.sortAlphabetically(fallback, 'title', fallbackLanguage);\n Object.keys(other).forEach(key => this.sortAlphabetically(other[key], 'title', selectedLanguage || fallbackLanguage));\n other = Object.keys(other).sort().reduce((arr, el) => arr.concat(other[el]), []);\n this.sortAlphabetically(without, 'title', selectedLanguage || fallbackLanguage);\n // Return sorted keywords by language order\n return selected\n .concat(fallback)\n .concat(other)\n .concat(without);\n }\n },\n methods: {\n truncate,\n sortAlphabetically,\n // Increases the current number of keywords displayed\n // and clamps the result so that it never exceeds the number of all keywords.\n increaseNumDisplayedKeywords(increment) {\n const clampedSum = this.clamp(this.keywords.displayCount + increment, 0, this.getKeywords.length);\n this.keywords.displayCount = clampedSum;\n },\n nonOverflowingIncrementsForKeywords(incrementStep) {\n return this.keywords.displayCount + incrementStep <= this.getKeywords.length;\n },\n keywordTruncated(keyword) {\n return keyword.title.length > this.maxKeywordLength;\n },\n clamp(n, min, max) {\n return Math.min(Math.max(n, min), max);\n },\n getKeywordLink(keyword) {\n return { path: `/datasets`, query: Object.assign({}, { keywords: keyword.id, locale: this.$route.query.locale}) };\n },\n toggleDisplayCount() {\n this.keywords.displayAll = !this.keywords.displayAll;\n $('body').tooltip({selector: '[data-toggle=\"tooltip\"]'});\n }\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n.tag-color {\n background-color: var(--tag-color);\n}\n.keywords__item > div {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n</style>\n"],"names":["_sfc_main","AppLink","mapGetters","selected","fallback","other","without","selectedLanguage","fallbackLanguage","k","has","isString","key","arr","el","truncate","sortAlphabetically","increment","clampedSum","incrementStep","keyword","n","min","max","$","_hoisted_1","_hoisted_3","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_component_dataset_details_feature_header","_ctx","$options","_cache","_createTextVNode","_hoisted_2","_Fragment","_renderList","i","$props","_createBlock","_component_app_link","$data","_withCtx","_toDisplayString","_createCommentVNode"],"mappings":";;;;;;;;;AAoEA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IAAC,SAAAC;AAAA;AAAA,EAEZ;AAAA,EACD,OAAO;AAA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AAA;AAAA;UAAA,GAAA;AAAA,mCAAAoB,EAAA,IAAA,EAAA;AAAA;UAAAA,EAAA,IAAA,EAAA;AAAA,IAAAZ,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA;AAAA,oBA2BMN,EACM,OAAA,MAAA,MAAA,EAAA;AAAA;;;"}
|
|
1
|
+
{"version":3,"file":"DatasetDetailsKeywords.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsKeywords.vue"],"sourcesContent":["<template>\n <div class=\"mt-2 flex-column dsd-feature\">\n <div >\n <dataset-details-feature-header\n :title=\"'Keywords '+'(' + getKeywords.length + ')'\"\n :arrowDown=\"!isKeywordsAllDisplayed\"\n tag=\"keywords-toggle\"\n :onClick=\"toggleDisplayCount\"\n />\n </div>\n <div v-if=\"isKeywordsAllDisplayed\" class=\"keywords__item row mt-4\">\n <span\n v-for='(keyword, i) in displayedKeywords'\n :key=\"i\"\n class=\"col-6 col-sm-3 col-md-2 mt-md-0 mt-3 mb-2 px-1\"\n >\n <app-link v-if=\"showKeyword(keyword) && isKeywordsAllDisplayed\" :to=\"getKeywordLink(keyword)\" :rel=\"followKeywordLinks\">\n <small class=\"d-inline-block text-nowrap w-100 py-2 rounded-pill text-center tag-color\"\n :data-toggle=\"keywordTruncated(keyword) ? 'tooltip' : false\"\n :data-placement=\"keywordTruncated(keyword) ? 'top' : false\"\n :aria-label=\"keyword.title\"\n :title=\"keywordTruncated(keyword) ? keyword.title : false\">\n {{ truncate(keyword.title, maxKeywordLength, false) }}\n </small>\n </app-link>\n </span>\n </div>\n <div>\n </div>\n<!-- <div>-->\n<!-- <div-->\n<!-- v-if=\"!keywords.displayAll && !isKeywordsAllDisplayed\"-->\n<!-- class=\"keywords__item\"-->\n<!-- >-->\n<!-- <div-->\n<!-- class=\"keywords__actions pb-md-3\"-->\n<!-- >-->\n<!-- <button-->\n<!-- v-for=\"increment in keywords.incrementSteps.filter(nonOverflowingIncrementsForKeywords)\"-->\n<!-- :key=\"increment\"-->\n<!-- class=\"btn btn-sm btn-secondary mr-1\"-->\n<!-- @click=\"increaseNumDisplayedKeywords(increment)\"-->\n<!-- >-->\n<!-- <i class=\"fas fa-chevron-down\"/> {{ $t('message.metadata.showXMore', { increment }) }}-->\n<!-- </button>-->\n<!-- <button-->\n<!-- class=\"btn btn-sm btn-primary\"-->\n<!-- @click=\"keywords.displayCount = getKeywords.length\"-->\n<!-- >-->\n<!-- <i class=\"fas fa-eye\"/> {{ $t('message.metadata.showAll') }} {{ getKeywords.length.toLocaleString('fi') }}-->\n<!-- </button>-->\n<!-- </div>-->\n<!-- </div>-->\n<!-- </div> -->\n </div>\n</template>\n\n<script>\n// DatasetDetailsFeatureHeader is imported globally\n// import DatasetDetailsFeatureHeader from \"@/modules/datasetDetails/features/DatasetDetailsFeatureHeader\";\nimport {truncate} from \"../../utils/helpers\";\nimport {mapGetters} from \"vuex\";\nimport {has, isString} from \"lodash\";\nimport AppLink from \"../../widgets/AppLink\";\nimport {sortAlphabetically} from \"../../datasetDetails/features/utils/sortAlphabetically\";\nimport $ from \"jquery\";\n\n\nexport default {\n name: \"DatasetDetailsKeywords\",\n components: {AppLink,\n // DatasetDetailsFeatureHeader\n },\n props: {\n showKeyword: Function,\n },\n data() {\n return {\n defaultLocale: this.$env.languages.locale,\n showTitle: this.$env.content.datasetDetails.keywords.showTitle,\n defaultDisplayCount: 0,\n keywords: {\n displayAll: this.$env.content.datasetDetails.keywords.collapsed ? this.$env.content.datasetDetails.keywords.collapsed : false,\n displayCount: 24, // Should never exceed number of keywords\n incrementSteps: [12, 60],\n },\n maxKeywordLength: this.$env.content.datasets.maxKeywordLength,\n followKeywordLinks: this.$env.content.datasets.followKeywordLinks\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getKeywords'\n ]),\n displayedKeywords() {\n return this.keywords.displayAll\n ? Object.freeze(this.sortedKeywords)\n : Object.freeze(this.sortedKeywords.slice(0, this.keywords.displayCount));\n },\n isKeywordsAllDisplayed() {\n return this.keywords.displayAll;\n },\n remainingKeywords() {\n return this.getKeywords.length - this.keywords.displayCount;\n },\n sortedKeywords() {\n let selected = [], fallback = [], other = {}, without = []; // eslint-disable-line\n const selectedLanguage = this.$route.query.locale;\n const fallbackLanguage = this.defaultLocale;\n // Sort by language\n this.getKeywords.forEach(k => has(k, 'language') && isString(k.language)\n ? (k.language === selectedLanguage\n ? selected.push(k)\n : k.language === fallbackLanguage\n ? fallback.push(k)\n : has(other, k.language)\n ? other[k.language].push(k)\n : other[k.language] = [k])\n : without.push(k));\n // Sort alphabetically\n this.sortAlphabetically(selected, 'title', selectedLanguage);\n this.sortAlphabetically(fallback, 'title', fallbackLanguage);\n Object.keys(other).forEach(key => this.sortAlphabetically(other[key], 'title', selectedLanguage || fallbackLanguage));\n other = Object.keys(other).sort().reduce((arr, el) => arr.concat(other[el]), []);\n this.sortAlphabetically(without, 'title', selectedLanguage || fallbackLanguage);\n // Return sorted keywords by language order\n return selected\n .concat(fallback)\n .concat(other)\n .concat(without);\n }\n },\n methods: {\n truncate,\n sortAlphabetically,\n // Increases the current number of keywords displayed\n // and clamps the result so that it never exceeds the number of all keywords.\n increaseNumDisplayedKeywords(increment) {\n const clampedSum = this.clamp(this.keywords.displayCount + increment, 0, this.getKeywords.length);\n this.keywords.displayCount = clampedSum;\n },\n nonOverflowingIncrementsForKeywords(incrementStep) {\n return this.keywords.displayCount + incrementStep <= this.getKeywords.length;\n },\n keywordTruncated(keyword) {\n return keyword.title.length > this.maxKeywordLength;\n },\n clamp(n, min, max) {\n return Math.min(Math.max(n, min), max);\n },\n getKeywordLink(keyword) {\n return { path: `/datasets`, query: Object.assign({}, { keywords: keyword.id, locale: this.$route.query.locale}) };\n },\n toggleDisplayCount() {\n this.keywords.displayAll = !this.keywords.displayAll;\n $('body').tooltip({selector: '[data-toggle=\"tooltip\"]'});\n }\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n.tag-color {\n background-color: var(--tag-color);\n}\n.keywords__item > div {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n</style>\n"],"names":["_sfc_main","AppLink","mapGetters","selected","fallback","other","without","selectedLanguage","fallbackLanguage","k","has","isString","key","arr","el","truncate","sortAlphabetically","increment","clampedSum","incrementStep","keyword","n","min","max","$","_hoisted_1","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_component_dataset_details_feature_header","_ctx","$options","_hoisted_2","_Fragment","_renderList","i","$props","_createBlock","_component_app_link","$data","_toDisplayString","_hoisted_3"],"mappings":";;;;;;;;;AAoEA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IAAC,SAAAC;AAAA;AAAA,EAEZ;AAAA,EACD,OAAO;AAAA,IACL,aAAa;AAAA,EACd;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,eAAe,KAAK,KAAK,UAAU;AAAA,MACnC,WAAW,KAAK,KAAK,QAAQ,eAAe,SAAS;AAAA,MACrD,qBAAqB;AAAA,MACrB,UAAU;AAAA,QACR,YAAY,KAAK,KAAK,QAAQ,eAAe,SAAS,YAAY,KAAK,KAAK,QAAQ,eAAe,SAAS,YAAY;AAAA,QACxH,cAAc;AAAA;AAAA,QACd,gBAAgB,CAAC,IAAI,EAAE;AAAA,MACxB;AAAA,MACD,kBAAkB,KAAK,KAAK,QAAQ,SAAS;AAAA,MAC7C,oBAAoB,KAAK,KAAK,QAAQ,SAAS;AAAA,IACjD;AAAA,EACD;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,kBAAkB;AAAA,MAC9B;AAAA,IACF,CAAC;AAAA,IACD,oBAAoB;AAClB,aAAO,KAAK,SAAS,aACjB,OAAO,OAAO,KAAK,cAAc,IACjC,OAAO,OAAO,KAAK,eAAe,MAAM,GAAG,KAAK,SAAS,YAAY,CAAC;AAAA,IAC3E;AAAA,IACD,yBAAyB;AACvB,aAAO,KAAK,SAAS;AAAA,IACtB;AAAA,IACD,oBAAoB;AAClB,aAAO,KAAK,YAAY,SAAS,KAAK,SAA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L,eAAaI,EAAgB,iBAACZ,CAAO,IAAA,YAAA;AAAA,cACrC,kBAAgBY,EAAgB,iBAACZ,CAAO,IAAA,QAAA;AAAA,cACxC,cAAYA,EAAQ;AAAA,cACpB,OAAOY,EAAgB,iBAACZ,CAAO,IAAIA,EAAQ,QAAK;AAAA,YACnD,GAAAqB,EAAAT,EAAA,SAASZ,EAAQ,OAAOoB,EAAgB,kBAAA,EAAA,CAAA,GAAA,GAAAE,CAAA;AAAA;;;;;;oBAKrDd,EACM,OAAA,MAAA,MAAA,EAAA;AAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetDetailsMap.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsMap.vue"],"sourcesContent":["<template>\n <div class=\"dsd-feature dsd-map\">\n <dataset-details-feature-header\n :title=\"$t('message.datasetDetails.geoInfo')\"\n :arrowDown=\"!mapVisible\"\n tag=\"geo-info-toggle\"\n :onClick=\"toggleMap\"\n />\n <div class=\"mt-3 w-100 h-100\">\n <div id=\"collapse-geo-info\"\n ref=\"geocollapse\"\n class=\"collapse\"\n :class=\"{ 'show': mapVisible }\"\n data-cy=\"geo-info\">\n <div class=\"map\">\n <map-basic\n :location=\"getCoordinates()\"\n :spatial-type=\"getSpatialType()\"\n :height=\"maps.height\"\n :width=\"maps.width\"\n :map-container-id=\"maps.mapContainerId\"\n />\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { defineAsyncComponent } from \"vue\";\nimport {isArray, isNil, isString} from \"lodash\";\nimport {mapGetters} from \"vuex\";\nimport { Skeletor } from 'vue-skeletor';\n\nconst MapBasic = defineAsyncComponent({\n // Lazy-load mapbasic component\n loader: () => import(\"../../map/MapBasic\"),\n loadingComponent: {\n // Load skeleton while the mapbasic component is loading\n components: { Skeletor },\n render: (h) => {\n return h('vue-skeletor',\n {\n props: {\n width: process.env.content.maps.width,\n height: process.env.content.maps.height,\n animation: 'fade',\n }\n })\n }\n },\n});\n\nexport default {\n name: \"DatasetDetailsMap\",\n components: {\n // DatasetDetailsFeatureHeader,\n MapBasic},\n data() {\n return {\n mapVisible: this.$env.content.maps.mapVisible,\n maps: {\n location: this.$env.content.maps.location,\n spatialType: this.$env.content.maps.spatialType,\n height: this.$env.content.maps.height,\n width: this.$env.content.maps.width,\n mapContainerId: this.$env.content.maps.mapContainerId,\n }\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getSpatial'\n ])\n },\n methods: {\n toggleMap() {\n this.$refs.geocollapse.classList.toggle('show');\n this.mapVisible = !this.mapVisible;\n },\n getCoordinates() {\n const coordinates = this.getSpatial[0].coordinates;\n return (!isNil(coordinates) && isArray(coordinates) && isArray(coordinates[0])) ? [coordinates[0], this.maps.location[1]] : this.maps.location;\n },\n getSpatialType() {\n const type = this.getSpatial[0].type;\n return (!isNil(type) && isString(type)) ? type : this.maps.spatialType;\n }\n },\n mounted(){\n this.mapVisible = !this.mapVisible;\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n.heading {\n cursor: pointer;\n}\n</style>\n"],"names":["MapBasic","defineAsyncComponent","Skeletor","h","_sfc_main","mapGetters","coordinates","isNil","isArray","type","isString","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_createVNode","_component_dataset_details_feature_header","_ctx","$data","$options","
|
|
1
|
+
{"version":3,"file":"DatasetDetailsMap.vue.mjs","sources":["../../../lib/datasetDetails/features/DatasetDetailsMap.vue"],"sourcesContent":["<template>\n <div class=\"dsd-feature dsd-map\">\n <dataset-details-feature-header\n :title=\"$t('message.datasetDetails.geoInfo')\"\n :arrowDown=\"!mapVisible\"\n tag=\"geo-info-toggle\"\n :onClick=\"toggleMap\"\n />\n <div class=\"mt-3 w-100 h-100\">\n <div id=\"collapse-geo-info\"\n ref=\"geocollapse\"\n class=\"collapse\"\n :class=\"{ 'show': mapVisible }\"\n data-cy=\"geo-info\">\n <div class=\"map\">\n <map-basic\n :location=\"getCoordinates()\"\n :spatial-type=\"getSpatialType()\"\n :height=\"maps.height\"\n :width=\"maps.width\"\n :map-container-id=\"maps.mapContainerId\"\n />\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { defineAsyncComponent } from \"vue\";\nimport {isArray, isNil, isString} from \"lodash\";\nimport {mapGetters} from \"vuex\";\nimport { Skeletor } from 'vue-skeletor';\n\nconst MapBasic = defineAsyncComponent({\n // Lazy-load mapbasic component\n loader: () => import(\"../../map/MapBasic\"),\n loadingComponent: {\n // Load skeleton while the mapbasic component is loading\n components: { Skeletor },\n render: (h) => {\n return h('vue-skeletor',\n {\n props: {\n width: process.env.content.maps.width,\n height: process.env.content.maps.height,\n animation: 'fade',\n }\n })\n }\n },\n});\n\nexport default {\n name: \"DatasetDetailsMap\",\n components: {\n // DatasetDetailsFeatureHeader,\n MapBasic},\n data() {\n return {\n mapVisible: this.$env.content.maps.mapVisible,\n maps: {\n location: this.$env.content.maps.location,\n spatialType: this.$env.content.maps.spatialType,\n height: this.$env.content.maps.height,\n width: this.$env.content.maps.width,\n mapContainerId: this.$env.content.maps.mapContainerId,\n }\n }\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getSpatial'\n ])\n },\n methods: {\n toggleMap() {\n this.$refs.geocollapse.classList.toggle('show');\n this.mapVisible = !this.mapVisible;\n },\n getCoordinates() {\n const coordinates = this.getSpatial[0].coordinates;\n return (!isNil(coordinates) && isArray(coordinates) && isArray(coordinates[0])) ? [coordinates[0], this.maps.location[1]] : this.maps.location;\n },\n getSpatialType() {\n const type = this.getSpatial[0].type;\n return (!isNil(type) && isString(type)) ? type : this.maps.spatialType;\n }\n },\n mounted(){\n this.mapVisible = !this.mapVisible;\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n.heading {\n cursor: pointer;\n}\n</style>\n"],"names":["MapBasic","defineAsyncComponent","Skeletor","h","_sfc_main","mapGetters","coordinates","isNil","isArray","type","isString","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_createVNode","_component_d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