2016-07-07 09:47:46 -07: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 ( [
2016-08-10 18:22:30 -07:00
"./src/ui/TimeConductorViewService" ,
2016-07-18 08:23:27 -07:00
"./src/ui/TimeConductorController" ,
2016-08-10 18:22:30 -07:00
"./src/TimeConductor" ,
2016-09-12 16:53:48 -07:00
"./src/ui/ConductorAxisController" ,
2016-10-05 09:04:13 -07:00
"./src/ui/ConductorTOIController" ,
2016-08-10 18:22:30 -07:00
"./src/ui/MctConductorAxis" ,
2016-08-03 17:40:37 -07:00
"./src/ui/NumberFormat" ,
2016-07-07 09:47:46 -07:00
"text!./res/templates/time-conductor.html" ,
"text!./res/templates/mode-selector/mode-selector.html" ,
"text!./res/templates/mode-selector/mode-menu.html" ,
2016-10-13 11:42:10 -07:00
"text!./res/templates/time-of-interest.html" ,
2016-09-12 16:53:48 -07:00
"legacyRegistry"
2016-07-07 09:47:46 -07:00
] , function (
2016-08-10 18:22:30 -07:00
TimeConductorViewService ,
2016-07-07 09:47:46 -07:00
TimeConductorController ,
2016-08-10 18:22:30 -07:00
TimeConductor ,
2016-09-12 16:53:48 -07:00
ConductorAxisController ,
2016-10-05 09:04:13 -07:00
ConductorTOIController ,
2016-07-07 09:47:46 -07:00
MCTConductorAxis ,
2016-08-03 17:40:37 -07:00
NumberFormat ,
2016-07-07 09:47:46 -07:00
timeConductorTemplate ,
modeSelectorTemplate ,
modeMenuTemplate ,
2016-10-13 11:42:10 -07:00
timeOfInterest ,
2016-07-07 09:47:46 -07:00
legacyRegistry
) {
2016-08-01 15:14:23 -07:00
legacyRegistry . register ( "platform/features/conductor-v2/conductor" , {
2016-07-07 09:47:46 -07:00
"extensions" : {
"services" : [
2016-08-03 13:05:43 -07:00
{
"key" : "timeConductor" ,
2016-08-10 18:22:30 -07:00
"implementation" : TimeConductor
2016-08-03 13:05:43 -07:00
} ,
2016-07-07 09:47:46 -07:00
{
2016-08-10 18:22:30 -07:00
"key" : "timeConductorViewService" ,
"implementation" : TimeConductorViewService ,
"depends" : [
"timeConductor" ,
"timeSystems[]"
]
2016-07-07 09:47:46 -07:00
}
] ,
"controllers" : [
{
"key" : "TimeConductorController" ,
"implementation" : TimeConductorController ,
"depends" : [
"$scope" ,
2016-08-24 15:28:19 +01:00
"$window" ,
2016-08-10 18:22:30 -07:00
"timeConductor" ,
"timeConductorViewService" ,
2016-09-30 12:41:14 -07:00
"timeSystems[]" ,
"formatService"
]
} ,
{
"key" : "ConductorAxisController" ,
"implementation" : ConductorAxisController ,
"depends" : [
"timeConductor" ,
"formatService" ,
"timeConductorViewService"
2016-07-07 09:47:46 -07:00
]
2016-09-12 16:53:48 -07:00
} ,
{
2016-10-05 09:04:13 -07:00
"key" : "ConductorTOIController" ,
"implementation" : ConductorTOIController ,
2016-09-12 16:53:48 -07:00
"depends" : [
2016-10-05 09:04:13 -07:00
"$scope" ,
2016-09-12 16:53:48 -07:00
"timeConductor" ,
2016-10-05 09:04:13 -07:00
"timeConductorViewService" ,
2016-09-12 16:53:48 -07:00
"formatService"
]
2016-07-07 09:47:46 -07:00
}
] ,
"directives" : [
{
"key" : "mctConductorAxis" ,
"implementation" : MCTConductorAxis ,
2016-07-07 16:57:03 -07:00
"depends" : [
2016-08-10 18:22:30 -07:00
"timeConductor" ,
2016-07-21 20:03:40 -07:00
"formatService"
2016-07-07 16:57:03 -07:00
]
2016-07-07 09:47:46 -07:00
}
] ,
2016-07-19 18:33:24 -07:00
"stylesheets" : [
{
2016-08-01 12:00:53 -07:00
"stylesheetUrl" : "css/time-conductor-espresso.css" ,
"theme" : "espresso"
} ,
{
"stylesheetUrl" : "css/time-conductor-snow.css" ,
"theme" : "snow"
2016-07-19 18:33:24 -07:00
}
] ,
2016-09-07 14:29:21 -07:00
"templates" : [
{
2016-09-09 16:39:21 -07:00
"key" : "conductor" ,
2016-09-07 14:29:21 -07:00
"template" : timeConductorTemplate
2016-09-09 16:39:21 -07:00
} ,
2016-07-07 09:47:46 -07:00
{
2016-09-09 16:39:21 -07:00
"key" : "mode-menu" ,
"template" : modeMenuTemplate
2016-07-07 09:47:46 -07:00
} ,
{
"key" : "mode-selector" ,
"template" : modeSelectorTemplate
2016-10-13 11:42:10 -07:00
} ,
{
"key" : "time-of-interest" ,
"template" : timeOfInterest
2016-09-09 16:39:21 -07:00
}
] ,
"representations" : [
2016-07-07 09:47:46 -07:00
{
2016-09-09 16:39:21 -07:00
"key" : "time-conductor" ,
"template" : timeConductorTemplate
2016-07-07 09:47:46 -07:00
}
2016-08-03 17:40:37 -07:00
] ,
2016-10-05 11:17:22 -07:00
"licenses" : [
{
"name" : "D3: Data-Driven Documents" ,
"version" : "4.1.0" ,
"author" : "Mike Bostock" ,
"description" : "D3 (or D3.js) is a JavaScript library for visualizing data using web standards. D3 helps you bring data to life using SVG, Canvas and HTML. D3 combines powerful visualization and interaction techniques with a data-driven approach to DOM manipulation, giving you the full capabilities of modern browsers and the freedom to design the right visual interface for your data." ,
"website" : "https://d3js.org/" ,
"copyright" : "Copyright 2010-2016 Mike Bostock" ,
"license" : "BSD-3-Clause" ,
"link" : "https://github.com/d3/d3/blob/master/LICENSE"
}
] ,
2016-08-03 17:40:37 -07:00
"formats" : [
{
"key" : "number" ,
"implementation" : NumberFormat
}
2016-07-07 09:47:46 -07:00
]
}
} ) ;
} ) ;