Skip to content

Commit 3a1a14d

Browse files
authored
Merge pull request #35 from Open-EO/improve-docs
Improve docs and correct changelog
2 parents ea9cff5 + c4bb505 commit 3a1a14d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6060
### Added
6161
- `SearchableList`: The item keys `experimental` and `deprecated` lead to a different rendering.
6262
- `Collection`: Slot property `mapOptions` added.
63-
- `Collection`, `FileFormat`, `Process`, `ServiceType` and `UdfRuntime`: Slots pass through the props from the component.
63+
- `Collection`, `FileFormat`, `Process`, `ServiceType` and `UdfRuntime`: Slots pass through all the props from the component (except `spatial-extents` and `temporal-extents` in `Collection`).
6464
- `Collections`, `FileFormats`, `Processes`, `SearchableList`, `ServiceTypes` and `UdfRuntimes`:
6565
- Events `headingToggled` and `detailsToggled` have been introduced
6666
- Slot properties are passed through for slots that are made available in the sub-components (e.g. `Collection`)
@@ -82,7 +82,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8282

8383
### Added
8484
- `SearchBox` component
85-
- `Collections`, `FileFormats`, `Processes`, `SearchableList`, `ServiceTypes` and `UdfRuntimes`: Property `collapse` has been introduced
85+
- `Collections`, `FileFormats`, `Processes`, `SearchableList`, `ServiceTypes` and `UdfRuntimes`: Property `collapsed` has been introduced
8686
- `Collections`: Added slots `collection-before-description`, `collection-end`, `collection-spatial-extents`, `collection-temporal-extents` and `summary`
8787
- `FileFormats`: Added slots `file-format-before-description`, `file-format-end` and `summary`
8888
- `Processes`: Added slots `process-before-description`, `process-end` and `summary`

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The components are async web components, which means only the components you are
7878

7979
### Vue
8080

81-
In a Vue environment, you can just import the Single File Components directly.
81+
In a Vue environment, you can just import the Single File Components (SFC) directly. I.e., they must be imported from the `components` folder as demonstrated below.
8282

8383
First, you need to install the package: `npm install @openeo/vue-components --save`
8484
Now, you can import the Vue components with the `import` or `require`, depending on the module system you are using.
@@ -89,10 +89,10 @@ For example, the [`Capabilities`](#capabilities) component can be imported as fo
8989

9090
Afterwards, you need to declare the component in the `components` section of your SFC, e.g. `components: { Capabilities }`.
9191

92-
In the Template of your SFC you can now include the component as shown in the example below. Please note that `url` and `capabilities` must be defined in the SFC, e.g. in `data` property or as `computed` property.
92+
In the Template of your SFC you can now include the component as shown in the example below. Please note that the values `myUrl` and `myCapabilities` must be defined in the SFC, e.g. in the `data` property or as a `computed` property.
9393

9494
```html
95-
<Capabilities :url="url" :capabilities="capabilities"></Capabilities>
95+
<Capabilities :url="myUrl" :capabilities="myCapabilities"></Capabilities>
9696
```
9797

9898
*Note for Contributors*: This usage mode doesn't require the initial build step `npm run build`. The Vue Components can simply be imported from the `components` folder. You can also serve examples via HTTP with the command `npm run serve`.
@@ -419,7 +419,7 @@ A template to implement searchable, sortable and collapsible lists (all optional
419419
- `data` (array\<object>|object, required): The data to show in the list. Usually an array, but if an object is given the key of the elements is used as the default identifier. Each value of the array or object must be an object.
420420
- `identifierKey` / `identifier-key` (string|null): The key in the object to use as identifiers (first line of the list). If not `null`, overrides the default identifier set from object keys. Defaults to `id`.
421421
- `summaryKey` / `summary-key` (string|null): The key in the object to use as summary (second line of the list). If set to `null`, no summary is shown. Defaults to `summary`.
422-
- `externalSearchTerm` / `external-search-term` (string|null): Pass a string if a search term is injected from an external source and no search box should be shown. Default to `null`, which will show a search box in the component itself so that users can filter the data by identifier and summary.
422+
- `externalSearchTerm` / `external-search-term` (string|null): Pass a string if a search term is injected from an external source and no search box should be shown. Setting to the empty string `""` effectively disables searching. Defaults to `null`, which will show a search box in the component itself so that users can filter the data by identifier and summary.
423423
- `searchPlaceholder` / `search-placeholder` (string): A text to show as a placeholder in the search box. Defaults to `Search`.
424424
- `sort` (boolean): Sort the data by identifier. Defaults to `true`.
425425
- `offerDetails` / `offer-details` (boolean): If set to `false`, the data can't be expanded and no details will be shown. Defaults to `true`, which will show what has been defined in the `details` slot after a user has expanded the element.
@@ -758,4 +758,4 @@ A list of categorized features with their corresponding endpoints as used by the
758758
* `htmlentities_decode(string str) -> string`: Replace the HTML entities for `"`, `'`, `<` and `>` with their respective characters.
759759
* `prettifyAbbreviation(string str) -> string`: Converts a string to uppercase if all letters given are lower-cased.
760760
* `prettifyString(string str) -> string`: Tries to convert strings in snake-case, camel-case or kebab-case into more human-readable texts, mostly by adding spaces.
761-
* and other functions not meant for public use.
761+
* and other functions not meant for public use.

0 commit comments

Comments
 (0)