mirror of
https://github.com/modernweb-dev/rocket.git
synced 2026-03-10 08:51:24 +00:00
389 lines
10 KiB
JSON
389 lines
10 KiB
JSON
{
|
|
"schemaVersion": "1.0.0",
|
|
"readme": "",
|
|
"modules": [
|
|
{
|
|
"kind": "javascript-module",
|
|
"path": "src/RocketSearch.js",
|
|
"declarations": [
|
|
{
|
|
"kind": "class",
|
|
"description": "",
|
|
"name": "RocketSearch",
|
|
"cssProperties": [
|
|
{
|
|
"description": "Search results background colour",
|
|
"name": "--rocket-search-background-color",
|
|
"default": "#fff"
|
|
},
|
|
{
|
|
"description": "Search input caret colour",
|
|
"name": "--rocket-search-caret-color",
|
|
"default": "initial"
|
|
},
|
|
{
|
|
"description": "Search input border colour",
|
|
"name": "--rocket-search-input-border-color",
|
|
"default": "#dfe1e5"
|
|
},
|
|
{
|
|
"description": "Search input border radius",
|
|
"name": "--rocket-search-input-border-radius",
|
|
"default": "24px"
|
|
},
|
|
{
|
|
"description": "Search Icon Color",
|
|
"name": "--rocket-search-fill-color",
|
|
"default": "#000"
|
|
},
|
|
{
|
|
"description": "Highlighted search result text colour",
|
|
"name": "--rocket-search-highlight-color",
|
|
"default": "#6c63ff"
|
|
}
|
|
],
|
|
"cssParts": [
|
|
{
|
|
"description": "search result",
|
|
"name": "search-option"
|
|
},
|
|
{
|
|
"description": "empty search results",
|
|
"name": "empty"
|
|
}
|
|
],
|
|
"members": [
|
|
{
|
|
"kind": "field",
|
|
"name": "scopedElements",
|
|
"static": true
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"name": "setupSearch",
|
|
"description": "Fetches the search index at `this.jsonUrl` and sets up the search engine.",
|
|
"return": {
|
|
"type": {
|
|
"text": "Promise<void>"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "combobox",
|
|
"type": {
|
|
"text": "RocketSearchCombobox|null"
|
|
}
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "jsonUrl",
|
|
"type": {
|
|
"text": "string"
|
|
},
|
|
"default": "''",
|
|
"privacy": "public",
|
|
"attribute": "json-url"
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "search",
|
|
"type": {
|
|
"text": "string"
|
|
},
|
|
"default": "''",
|
|
"privacy": "public",
|
|
"attribute": "search"
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "maxResults",
|
|
"type": {
|
|
"text": "number"
|
|
},
|
|
"default": "10",
|
|
"privacy": "public",
|
|
"attribute": "max-results"
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "noResultsText",
|
|
"type": {
|
|
"text": "string"
|
|
},
|
|
"default": "'No results found'",
|
|
"privacy": "public",
|
|
"attribute": "noResultsText"
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "results",
|
|
"type": {
|
|
"text": "RocketSearchResult[]"
|
|
},
|
|
"default": "[]",
|
|
"privacy": "public",
|
|
"attribute": "results"
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "miniSearch",
|
|
"type": {
|
|
"text": "MiniSearch|null"
|
|
},
|
|
"default": "null"
|
|
}
|
|
],
|
|
"attributes": [
|
|
{
|
|
"name": "json-url",
|
|
"fieldName": "jsonUrl"
|
|
},
|
|
{
|
|
"name": "search",
|
|
"fieldName": "search"
|
|
},
|
|
{
|
|
"name": "results",
|
|
"fieldName": "results"
|
|
},
|
|
{
|
|
"name": "max-results",
|
|
"fieldName": "maxResults"
|
|
},
|
|
{
|
|
"name": "noResultsText",
|
|
"fieldName": "noResultsText"
|
|
}
|
|
],
|
|
"mixins": [
|
|
{
|
|
"name": "ScopedElementsMixin",
|
|
"package": "@open-wc/scoped-elements"
|
|
}
|
|
],
|
|
"superclass": {
|
|
"name": "LitElement",
|
|
"package": "@lion/core"
|
|
},
|
|
"tagName": "rocket-search",
|
|
"customElement": true
|
|
}
|
|
],
|
|
"exports": [
|
|
{
|
|
"kind": "js",
|
|
"name": "RocketSearch",
|
|
"declaration": {
|
|
"name": "RocketSearch",
|
|
"module": "src/RocketSearch.js"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "javascript-module",
|
|
"path": "src/RocketSearchCombobox.js",
|
|
"declarations": [
|
|
{
|
|
"kind": "class",
|
|
"description": "",
|
|
"name": "RocketSearchCombobox",
|
|
"cssProperties": [
|
|
{
|
|
"name": "--rocket-search-fill-color",
|
|
"default": "#000"
|
|
},
|
|
{
|
|
"name": "--rocket-search-background-color",
|
|
"default": "#fff"
|
|
},
|
|
{
|
|
"name": "--rocket-search-input-overlay-border-color",
|
|
"default": "#ccc"
|
|
},
|
|
{
|
|
"name": "--rocket-search-input-border-color",
|
|
"default": "#dfe1e5"
|
|
},
|
|
{
|
|
"name": "--rocket-search-input-border-radius",
|
|
"default": "24px"
|
|
}
|
|
],
|
|
"slots": [
|
|
{
|
|
"name": "prefix"
|
|
},
|
|
{
|
|
"name": "label"
|
|
},
|
|
{
|
|
"name": "listbox"
|
|
},
|
|
{
|
|
"name": "input"
|
|
}
|
|
],
|
|
"members": [
|
|
{
|
|
"kind": "method",
|
|
"name": "_connectSlotMixin",
|
|
"privacy": "private"
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"name": "_defineOverlayConfig",
|
|
"privacy": "private"
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "slots",
|
|
"type": {
|
|
"text": "LionCombobox['slots']"
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"name": "focus"
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "autocomplete",
|
|
"type": {
|
|
"text": "'none'"
|
|
},
|
|
"default": "'none'"
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "selectionFollowsFocus",
|
|
"type": {
|
|
"text": "boolean"
|
|
},
|
|
"default": "false"
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "rotateKeyboardNavigation",
|
|
"type": {
|
|
"text": "boolean"
|
|
},
|
|
"default": "false"
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "showInput",
|
|
"type": {
|
|
"text": "boolean"
|
|
},
|
|
"default": "false"
|
|
}
|
|
],
|
|
"superclass": {
|
|
"name": "LionCombobox",
|
|
"package": "@lion/combobox"
|
|
},
|
|
"tagName": "rocket-search-combobox",
|
|
"customElement": true
|
|
}
|
|
],
|
|
"exports": [
|
|
{
|
|
"kind": "js",
|
|
"name": "RocketSearchCombobox",
|
|
"declaration": {
|
|
"name": "RocketSearchCombobox",
|
|
"module": "src/RocketSearchCombobox.js"
|
|
}
|
|
},
|
|
{
|
|
"kind": "custom-element-definition",
|
|
"name": "rocket-search-combobox",
|
|
"declaration": {
|
|
"name": "RocketSearchCombobox",
|
|
"module": "src/RocketSearchCombobox.js"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "javascript-module",
|
|
"path": "src/RocketSearchOption.js",
|
|
"declarations": [
|
|
{
|
|
"kind": "class",
|
|
"description": "",
|
|
"name": "RocketSearchOption",
|
|
"members": [
|
|
{
|
|
"kind": "field",
|
|
"name": "title",
|
|
"type": {
|
|
"text": "string"
|
|
},
|
|
"default": "''",
|
|
"privacy": "public",
|
|
"attribute": "title"
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "text",
|
|
"type": {
|
|
"text": "string"
|
|
},
|
|
"default": "''",
|
|
"privacy": "public",
|
|
"attribute": "text"
|
|
},
|
|
{
|
|
"kind": "field",
|
|
"name": "section",
|
|
"type": {
|
|
"text": "string"
|
|
},
|
|
"default": "''",
|
|
"privacy": "public",
|
|
"attribute": "section"
|
|
}
|
|
],
|
|
"attributes": [
|
|
{
|
|
"name": "title",
|
|
"fieldName": "title"
|
|
},
|
|
{
|
|
"name": "text",
|
|
"fieldName": "text"
|
|
},
|
|
{
|
|
"name": "section",
|
|
"fieldName": "section"
|
|
}
|
|
],
|
|
"mixins": [
|
|
{
|
|
"name": "LinkMixin",
|
|
"module": "/src/LinkMixin.js"
|
|
}
|
|
],
|
|
"superclass": {
|
|
"name": "LionOption",
|
|
"package": "@lion/listbox"
|
|
}
|
|
}
|
|
],
|
|
"exports": [
|
|
{
|
|
"kind": "js",
|
|
"name": "RocketSearchOption",
|
|
"declaration": {
|
|
"name": "RocketSearchOption",
|
|
"module": "src/RocketSearchOption.js"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|