lucos_search_component 3.0.3 → 3.0.4
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/README.md +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/web-components/lucos-search.js +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ Selected options use the item's URI as their value.
|
|
|
31
31
|
The following attributes can be added to the lucos-search span:
|
|
32
32
|
* **data-api-key** \[required\] — a valid API key for the production instance of [lucos_arachne](https://github.com/lucas42/lucos_arachne), as generated by [lucos_creds](https://github.com/lucas42/lucos_creds).
|
|
33
33
|
* **data-types** — A comma separated list of item types to search for (defaults to all types).
|
|
34
|
-
* **data-
|
|
34
|
+
* **data-exclude_types** — A comma separated list of item types to exclude from the search (ignored if `data-types` is set).
|
|
35
35
|
* **data-is-contact** — Filter results to contacts only (`"true"`) or non-contacts only (`"false"`). Omitting the attribute applies no filter. Composes with `data-types` when both are set.
|
|
36
36
|
* **data-label-override-zxx** — Override the displayed label for the `https://eolas.l42.eu/metadata/language/zxx/` entry in both the dropdown and selected lozenge. Has no effect on whether `zxx` appears in the list — that depends on whether `zxx` is present in the search index. Only meaningful when `data-types="Language"`.
|
|
37
37
|
* **data-common** — A comma separated list of item URIs to pin in a "Common" group at the top of the list, above the normal results. Only meaningful when `data-types="Language"`.
|
package/dist/index.js
CHANGED
|
@@ -5718,7 +5718,7 @@ function buildFilterBy(types, excludeTypes, isContact) {
|
|
|
5718
5718
|
|
|
5719
5719
|
class LucosSearchComponent extends HTMLSpanElement {
|
|
5720
5720
|
static get observedAttributes() {
|
|
5721
|
-
return ['data-api-key','data-types','data-
|
|
5721
|
+
return ['data-api-key','data-types','data-exclude_types','data-is-contact','data-label-override-zxx','data-common','data-preload'];
|
|
5722
5722
|
}
|
|
5723
5723
|
constructor() {
|
|
5724
5724
|
super();
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { buildFilterBy } from './filter.js';
|
|
|
5
5
|
|
|
6
6
|
class LucosSearchComponent extends HTMLSpanElement {
|
|
7
7
|
static get observedAttributes() {
|
|
8
|
-
return ['data-api-key','data-types','data-
|
|
8
|
+
return ['data-api-key','data-types','data-exclude_types','data-is-contact','data-label-override-zxx','data-common','data-preload'];
|
|
9
9
|
}
|
|
10
10
|
constructor() {
|
|
11
11
|
super();
|