Skip to content

Commit 182d95e

Browse files
committed
Pass through heading slot
1 parent 9fbe8df commit 182d95e

File tree

7 files changed

+26
-0
lines changed

7 files changed

+26
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ This release contains a large number of changes. It lists only the major changes
3131
- New properties `heading` and `headingTag`
3232
- Shows a heading by default
3333
- `UdfRuntime`: Added slots `title`, `badges` and `before-description`
34+
- `Collections`, `FileFormats`, `Processes`, `ServiceTypes`, `UdfRuntimes`: Added slot `heading` (passes through to `SearchableList`)
3435

3536
### Changed
3637
- Release components as [Async Web Components](https://cli.vuejs.org/guide/build-targets.html#async-web-component) instead of as Vue Library. [#28](https://github.com/Open-EO/openeo-vue-components/issues/28)

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ Shows an (expandable) list of all STAC-based collections available at a back-end
150150
- `allowExpand` (string): See the corresponding prop in `SearchableList`.
151151
- `heading` (string|null): Specifies the title of the component. If set to `null`, the title is hidden. Defaults to `Collections`.
152152

153+
**Slots:**
154+
155+
- `heading`: See the corresponding slot in `SearchableList`.
156+
153157

154158
### `DeprecationNotice`
155159

@@ -218,6 +222,10 @@ Visualizes all supported file formats of the back-end.
218222

219223
*Note: At least one of `showInput` or `showOutput` must be set to `true`. Otherwise, the list will be empty.*
220224

225+
**Slots:**
226+
227+
- `heading`: See the corresponding slot in `SearchableList`.
228+
221229

222230
### `JsonSchema`
223231

@@ -284,6 +292,10 @@ Shows an (expandable) list of all processes available at a back-end.
284292
- `allowExpand` (string): See the corresponding prop in `SearchableList`.
285293
- `heading` (string|null): Specifies the title of the component. If set to `null`, the title is hidden. Defaults to `Processes`.
286294

295+
**Slots:**
296+
297+
- `heading`: See the corresponding slot in `SearchableList`.
298+
287299

288300
### `SearchableList`
289301

@@ -345,6 +357,10 @@ Visualizes all secondary web services supported by the back-end.
345357
- `allowExpand` (string): See the corresponding prop in `SearchableList`.
346358
- `heading` (string|null): Specifies the title of the component. If set to `null`, the title is hidden. Defaults to `Secondary Web Services`.
347359

360+
**Slots:**
361+
362+
- `heading`: See the corresponding slot in `SearchableList`.
363+
348364

349365
### `SupportedFeatures`
350366

@@ -556,6 +572,10 @@ Visualizes all UDF (user-defined function) runtimes supported by the back-end.
556572
- `allowExpand` (string): See the corresponding prop in `SearchableList`.
557573
- `heading` (string|null): Specifies the title of the component. If set to `null`, the title is hidden. Defaults to `UDF Runtimes`.
558574

575+
**Slots:**
576+
577+
- `heading`: See the corresponding slot in `SearchableList`.
578+
559579

560580
## Other features
561581

components/Collections.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="vue-component collections">
33
<SearchableList :data="collections" identfierKey="id" summaryKey="title" :showSummaryOnExpand="false" :externalSearchTerm="searchTerm" :sort="sort" :allowExpand="allowExpand" :heading="heading">
4+
<template #heading="scope"><slot name="heading" v-bind="scope" /></template>
45
<template #details="slot">
56
<Collection :collection="slot.item" :mapOptions="mapOptions">
67
<template #title><span class="hidden" /></template>

components/FileFormats.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="vue-component file-formats">
33
<SearchableList :data="fileFormats" summaryKey="title" :showSummaryOnExpand="false" :externalSearchTerm="searchTerm" :sort="sort" :allowExpand="allowExpand" :heading="heading">
4+
<template #heading="scope"><slot name="heading" v-bind="scope" /></template>
45
<template #summary="slot">
56
<strong class="inline">{{ slot.item.name }}</strong>
67
<ul class="badges small inline">

components/Processes.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="vue-component processes">
33
<SearchableList :data="processes" :showSummaryOnExpand="false" :externalSearchTerm="searchTerm" :sort="sort" :allowExpand="allowExpand" :heading="heading">
4+
<template #heading="scope"><slot name="heading" v-bind="scope" /></template>
45
<template #details="slot">
56
<Process :process="slot.item" :provideDownload="provideDownload" :processUrl="processUrl">
67
<template #title><span class="hidden" /></template>

components/ServiceTypes.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="vue-component service-types">
33
<SearchableList :data="services" summaryKey="title" :showSummaryOnExpand="false" :externalSearchTerm="searchTerm" :sort="sort" :allowExpand="allowExpand" :heading="heading">
4+
<template #heading="scope"><slot name="heading" v-bind="scope" /></template>
45
<template #summary="slot">
56
<strong>{{ slot.summary.identifier }}</strong>
67
<small>{{ slot.summary.summary }}</small>

components/UdfRuntimes.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="vue-component udf-runtimes">
33
<SearchableList :data="runtimes" summaryKey="title" :showSummaryOnExpand="false" :externalSearchTerm="searchTerm" :sort="sort" :allowExpand="allowExpand" :heading="heading">
4+
<template #heading="scope"><slot name="heading" v-bind="scope" /></template>
45
<template #summary="slot">
56
<strong class="inline">{{ slot.summary.identifier }}</strong>
67
<ul class="badges small inline">

0 commit comments

Comments
 (0)