openmct/platform/features/conductor-v2/conductor/bundle.js

123 lines
4.2 KiB
JavaScript
Raw Normal View History

2016-07-07 16:47:46 +00:00
/*****************************************************************************
* Open MCT Web, Copyright (c) 2014-2015, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT Web is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT Web includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
define([
"./src/ui/TimeConductorViewService",
"./src/ui/TimeConductorController",
"./src/TimeConductor",
"./src/ui/MctConductorAxis",
2016-08-04 00:40:37 +00:00
"./src/ui/NumberFormat",
2016-07-07 16:47:46 +00:00
"text!./res/templates/time-conductor.html",
"text!./res/templates/mode-selector/mode-selector.html",
"text!./res/templates/mode-selector/mode-menu.html",
'legacyRegistry'
], function (
TimeConductorViewService,
2016-07-07 16:47:46 +00:00
TimeConductorController,
TimeConductor,
2016-07-07 16:47:46 +00:00
MCTConductorAxis,
2016-08-04 00:40:37 +00:00
NumberFormat,
2016-07-07 16:47:46 +00:00
timeConductorTemplate,
modeSelectorTemplate,
modeMenuTemplate,
legacyRegistry
) {
2016-08-01 22:14:23 +00:00
legacyRegistry.register("platform/features/conductor-v2/conductor", {
2016-07-07 16:47:46 +00:00
"extensions": {
"services": [
2016-08-03 20:05:43 +00:00
{
"key": "timeConductor",
"implementation": TimeConductor
2016-08-03 20:05:43 +00:00
},
2016-07-07 16:47:46 +00:00
{
"key": "timeConductorViewService",
"implementation": TimeConductorViewService,
"depends": [
"timeConductor",
"timeSystems[]"
]
2016-07-07 16:47:46 +00:00
}
],
"controllers": [
{
"key": "TimeConductorController",
"implementation": TimeConductorController,
"depends": [
"$scope",
"$window",
"timeConductor",
"timeConductorViewService",
"timeSystems[]"
2016-07-07 16:47:46 +00:00
]
}
],
"directives": [
{
"key": "mctConductorAxis",
"implementation": MCTConductorAxis,
2016-07-07 23:57:03 +00:00
"depends": [
"timeConductor",
"formatService"
2016-07-07 23:57:03 +00:00
]
2016-07-07 16:47:46 +00:00
}
],
"stylesheets": [
{
"stylesheetUrl": "css/time-conductor-espresso.css",
"theme": "espresso"
},
{
"stylesheetUrl": "css/time-conductor-snow.css",
"theme": "snow"
}
],
"templates": [
{
"key": "time-conductor",
"template": timeConductorTemplate
}
],
2016-07-07 16:47:46 +00:00
"representations": [
{
"key": "time-conductor",
"template": timeConductorTemplate
},
{
"key": "mode-selector",
"template": modeSelectorTemplate
},
{
"key": "mode-menu",
"template": modeMenuTemplate
}
2016-08-04 00:40:37 +00:00
],
"formats": [
{
"key": "number",
"implementation": NumberFormat
}
2016-07-07 16:47:46 +00:00
]
}
});
});