2016-02-26 19:09:51 +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/directives/MCTTable" ,
2016-04-22 16:44:34 +00:00
"./src/controllers/RealtimeTableController" ,
"./src/controllers/HistoricalTableController" ,
2016-02-26 19:09:51 +00:00
"./src/controllers/TableOptionsController" ,
'../../commonUI/regions/src/Region' ,
'../../commonUI/browse/src/InspectorRegion' ,
"legacyRegistry"
] , function (
MCTTable ,
2016-04-22 16:44:34 +00:00
RealtimeTableController ,
HistoricalTableController ,
2016-02-26 19:09:51 +00:00
TableOptionsController ,
Region ,
InspectorRegion ,
legacyRegistry
) {
/ * *
* Two region parts are defined here . One that appears only in browse
* mode , and one that appears only in edit mode . For not they both point
* to the same representation , but a different key could be used here to
* include a customized representation for edit mode .
* /
var tableInspector = new InspectorRegion ( ) ,
tableOptionsEditRegion = new Region ( {
name : "table-options" ,
title : "Table Options" ,
modes : [ 'edit' ] ,
content : {
key : "table-options-edit"
}
} ) ;
tableInspector . addRegion ( tableOptionsEditRegion ) ;
legacyRegistry . register ( "platform/features/table" , {
"extensions" : {
"types" : [
{
"key" : "table" ,
2016-03-08 21:29:16 +00:00
"name" : "Historical Telemetry Table" ,
2016-03-24 00:42:58 +00:00
"glyph" : "\ue604" ,
2016-03-24 02:04:32 +00:00
"description" : "A static table of all values over time for all included telemetry elements. Rows are timestamped data values for each telemetry element; columns are data fields. The number of rows is based on the range of your query. New incoming data must be manually re-queried for." ,
2016-03-24 19:05:10 +00:00
"priority" : 861 ,
2016-02-26 19:09:51 +00:00
"features" : "creation" ,
"delegates" : [
"telemetry"
] ,
"inspector" : tableInspector ,
"contains" : [
{
"has" : "telemetry"
}
] ,
"model" : {
"composition" : [ ]
} ,
"views" : [
"table"
]
2016-03-08 21:29:16 +00:00
} ,
{
"key" : "rttable" ,
"name" : "Real-time Telemetry Table" ,
2016-03-24 00:42:58 +00:00
"glyph" : "\ue620" ,
2016-03-24 02:04:32 +00:00
"description" : "A scrolling table of latest values for all included telemetry elements. Rows are timestamped data values for each telemetry element; columns are data fields. New incoming data is automatically added to the view." ,
2016-03-24 19:05:10 +00:00
"priority" : 860 ,
2016-03-08 21:29:16 +00:00
"features" : "creation" ,
"delegates" : [
"telemetry"
] ,
"inspector" : tableInspector ,
"contains" : [
{
"has" : "telemetry"
}
] ,
"model" : {
"composition" : [ ]
} ,
"views" : [
2016-03-09 05:36:33 +00:00
"rt-table" ,
"scrolling-table"
2016-03-08 21:29:16 +00:00
]
2016-02-26 19:09:51 +00:00
}
] ,
"controllers" : [
{
2016-04-22 16:44:34 +00:00
"key" : "HistoricalTableController" ,
"implementation" : HistoricalTableController ,
2016-02-26 19:09:51 +00:00
"depends" : [ "$scope" , "telemetryHandler" , "telemetryFormatter" ]
} ,
2016-03-02 17:16:46 +00:00
{
2016-04-22 16:44:34 +00:00
"key" : "RealtimeTableController" ,
"implementation" : RealtimeTableController ,
2016-03-02 17:16:46 +00:00
"depends" : [ "$scope" , "telemetryHandler" , "telemetryFormatter" ]
} ,
2016-02-26 19:09:51 +00:00
{
"key" : "TableOptionsController" ,
"implementation" : TableOptionsController ,
"depends" : [ "$scope" ]
}
] ,
"views" : [
{
2016-03-08 21:29:16 +00:00
"name" : "Historical Table" ,
2016-02-26 19:09:51 +00:00
"key" : "table" ,
2016-03-24 00:42:58 +00:00
"glyph" : "\ue604" ,
2016-04-22 16:44:34 +00:00
"templateUrl" : "templates/historical-table.html" ,
2016-02-26 19:09:51 +00:00
"needs" : [
"telemetry"
] ,
"delegation" : true ,
2016-05-23 23:48:31 +00:00
"editable" : false
2016-03-02 17:16:46 +00:00
} ,
{
2016-03-08 21:29:16 +00:00
"name" : "Real-time Table" ,
2016-03-09 05:36:33 +00:00
"key" : "rt-table" ,
2016-03-24 00:42:58 +00:00
"glyph" : "\ue620" ,
2016-03-02 17:16:46 +00:00
"templateUrl" : "templates/rt-table.html" ,
"needs" : [
"telemetry"
] ,
"delegation" : true ,
2016-05-23 23:48:31 +00:00
"editable" : false
2016-02-26 19:09:51 +00:00
}
] ,
"directives" : [
{
"key" : "mctTable" ,
"implementation" : MCTTable ,
"depends" : [ "$timeout" ]
}
] ,
"representations" : [
{
"key" : "table-options-edit" ,
"templateUrl" : "templates/table-options-edit.html"
}
2016-04-22 16:44:34 +00:00
] ,
"stylesheets" : [
{
"stylesheetUrl" : "css/table.css" ,
"priority" : "mandatory"
}
2016-02-26 19:09:51 +00:00
]
}
} ) ;
} ) ;