mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 06:03:08 +00:00
0dccaab9cb
Declare Search UI components as templates instead of representations so that they are not removed from the DOM when no domain object is supplied. Fixes nasa/openmctweb#234
74 lines
2.2 KiB
JSON
74 lines
2.2 KiB
JSON
{
|
|
"name": "Search",
|
|
"description": "Allows the user to search through the file tree.",
|
|
"extensions": {
|
|
"constants": [
|
|
{
|
|
"key": "GENERIC_SEARCH_ROOTS",
|
|
"value": [ "ROOT" ],
|
|
"priority": "fallback"
|
|
}
|
|
],
|
|
"controllers": [
|
|
{
|
|
"key": "SearchController",
|
|
"implementation": "controllers/SearchController.js",
|
|
"depends": [ "$scope", "searchService" ]
|
|
},
|
|
{
|
|
"key": "SearchMenuController",
|
|
"implementation": "controllers/SearchMenuController.js",
|
|
"depends": [ "$scope", "types[]" ]
|
|
},
|
|
{
|
|
"key": "ClickAwayController",
|
|
"implementation": "controllers/ClickAwayController.js",
|
|
"depends": [ "$scope", "$document" ]
|
|
}
|
|
],
|
|
"representations": [
|
|
{
|
|
"key": "search-item",
|
|
"templateUrl": "templates/search-item.html"
|
|
}
|
|
],
|
|
"templates": [
|
|
{
|
|
"key": "search",
|
|
"templateUrl": "templates/search.html"
|
|
},
|
|
{
|
|
"key": "search-menu",
|
|
"templateUrl": "templates/search-menu.html"
|
|
}
|
|
],
|
|
"components": [
|
|
{
|
|
"provides": "searchService",
|
|
"type": "provider",
|
|
"implementation": "services/GenericSearchProvider.js",
|
|
"depends": [
|
|
"$q",
|
|
"$log",
|
|
"modelService",
|
|
"workerService",
|
|
"topic",
|
|
"GENERIC_SEARCH_ROOTS"
|
|
]
|
|
},
|
|
{
|
|
"provides": "searchService",
|
|
"type": "aggregator",
|
|
"implementation": "services/SearchAggregator.js",
|
|
"depends": [ "$q", "objectService" ]
|
|
}
|
|
],
|
|
"workers": [
|
|
{
|
|
"key": "genericSearchWorker",
|
|
"scriptUrl": "services/GenericSearchWorker.js"
|
|
}
|
|
]
|
|
}
|
|
}
|