Skip to content

Commit

Permalink
Add missing slots to Items and Collections, v2.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jan 5, 2025
1 parent 1560a2c commit 9855edc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.18.1] - 2025-01-05

### Added

- `Collections` and `Items`: Add slots `content-start` and `after-search-box`

## [2.18.0] - 2025-01-04

### Added
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A set of [Vue](https://vuejs.org) components for [openEO](http://openeo.org).

This library's version is [**2.18.0**](CHANGELOG.md) and supports **openEO API versions 1.x.x**.
This library's version is [**2.18.1**](CHANGELOG.md) and supports **openEO API versions 1.x.x**.
Legacy versions supporting API version 0.x are available as [releases](https://github.com/Open-EO/openeo-vue-components/releases).

npm: [@openeo/vue-components](https://www.npmjs.com/package/@openeo/vue-components)
Expand Down Expand Up @@ -202,6 +202,8 @@ Shows an (expandable) list of all STAC-based collections available at a back-end

- `heading`: See the corresponding slot in [`SearchableList`](#searchablelist).
- `summary`: See the corresponding slot in [`SearchableList`](#searchablelist).
- `content-start`: See the corresponding slot in [`SearchableList`](#searchablelist).
- `after-search-box`: See the corresponding slot in [`SearchableList`](#searchablelist).
- `collection-before-description`: See the corresponding slot `before-description` in [`Collection`](#collection).
- `collection-end`: See the corresponding slot `end` in [`Collection`](#collection).
- `collection-spatial-extents`: See the corresponding slot `spatial-extents` in [`Collection`](#collection).
Expand Down Expand Up @@ -399,6 +401,8 @@ Shows an (expandable) list of STAC-based Items.

- `heading`: See the corresponding slot in [`SearchableList`](#searchablelist).
- `summary`: See the corresponding slot in [`SearchableList`](#searchablelist).
- `content-start`: See the corresponding slot in [`SearchableList`](#searchablelist).
- `after-search-box`: See the corresponding slot in [`SearchableList`](#searchablelist).
- `item-before-description`: See the corresponding slot `before-description` in [`Item`](#item).
- `item-end`: See the corresponding slot `end` in [`Item`](#item).
- `item-location`: See the corresponding slot `location` in [`Item`](#item).
Expand Down
6 changes: 5 additions & 1 deletion components/Collections.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
@detailsToggled="detailsToggled"
allowCopy>
<template #heading="scope"><slot name="heading" v-bind="scope" /></template>
<template v-if="missing" #content-start><FederationMissingNotice :missing="missing" :federation="federation" /></template>
<template #content-start="scope">
<slot name="content-start" v-bind="scope"></slot>
<FederationMissingNotice v-if="missing" :missing="missing" :federation="federation" />
</template>
<template #after-search-box="scope"><slot name="after-search-box" v-bind="scope"></slot></template>
<template #summary="scope"><slot name="summary" v-bind="scope" /></template>
<template #details="slot">
<Collection :data="slot.item" :mapOptions="mapOptions" :federation="federation">
Expand Down
4 changes: 3 additions & 1 deletion components/Items.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
@detailsToggled="detailsToggled"
ref="list">
<template #heading="scope"><slot name="heading" v-bind="scope" /></template>
<template #after-search-box>
<template #content-start="scope"><slot name="content-start" v-bind="scope"></slot></template>
<template #after-search-box="scope">
<slot v-if="showMap" name="map" :geojson="geojson" :mapOptions="mapOptions">
<div class="map overview" ref="mapContainer"></div>
</slot>
<slot name="after-search-box" v-bind="scope"></slot>
</template>
<template #summary="scope"><slot name="summary" v-bind="scope" /></template>
<template #details="slot">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openeo/vue-components",
"version": "2.18.0",
"version": "2.18.1",
"author": "openEO Consortium",
"contributors": [
{
Expand Down

0 comments on commit 9855edc

Please sign in to comment.