mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 22:42:24 +00:00
d1e1ba1c66
Squashes #1103, fixes #1047. Squashed commit of the following: commit0e060f174d
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Fri Jul 29 14:55:34 2016 -0700 [Frontend] Added button to .s-button Fixes #1047 commit9f74395a79
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Fri Jul 29 14:43:36 2016 -0700 [Frontend] Fixing problems from circleci Fixes #1047 commit7278c9534c
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Fri Jul 29 14:37:21 2016 -0700 [Frontend] CSS fixes for s-status classes Fixes #1047 Fixed .s-status-editing and s-status-pending; commit4606d617d1
Merge:d5bff55
59436f7
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Fri Jul 29 13:58:51 2016 -0700 Merge remote-tracking branch 'origin/master' into frontend-1047 commitd5bff555e0
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 19:09:33 2016 -0700 [Frontend] Updated glyphs used by plot view switcher Fixes #1047 commitb72d82baef
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 19:09:00 2016 -0700 [Frontend] Tree styles in left pane and selector-list Fixes #1047 commitaf36b9996d
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 18:32:34 2016 -0700 [Frontend] Form validation styling Fixes #1047 <mct-form> must now include class 'validates' to display validation glyph icons; removed 'no-validate' from markup; cleaned up validation scss; commit69dc893b4b
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 17:11:52 2016 -0700 [Frontend] Glyphs to classes, mobile Fixes #1047 Fixes and enhancements for mobile, particularly in tree; Removed `display: inline-block` from containerSubtle mixin; commit7bca18b186
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 11:36:19 2016 -0700 [Frontend] Rename .s-menu-btn, remove unused Fixes #1047 .s-menu-btn > .s-menu-button; .create-btn > .create-button; removed unused l-btn, t-btn, t-btns-zoom from markup commit5d229198b7
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 11:25:36 2016 -0700 [Frontend] Rename .s-clickable-icon to .s-icon-button Fixes #1047 commit36479e2e8b
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 11:20:30 2016 -0700 [Frontend] Rename .s-btn to .s-button Fixes #1047 commit89e4f06de9
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 11:12:07 2016 -0700 [Frontend] Apply clickable-icon class Fixes #1047 commite65ca1cb8b
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 10:52:35 2016 -0700 [Frontend] Updated icons Fixes #1047 - Clock, timer, plots updated commit3e7eb98ac2
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Wed Jul 27 18:05:06 2016 -0700 [Frontend] Standardizing styles Fixes #1047 - Finessing mini-tab and making able to control per theme; s-clickable and s-toggle-icon classes cleaned up commit18e08074a8
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Wed Jul 27 16:33:25 2016 -0700 [Frontend] Tweaks to sass code Fixes #1047 - Splitter and mini-tab-icon elements commit44fda8d68f
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Wed Jul 27 09:24:53 2016 -0700 [Frontend] Multiple UI fixes and tweaks Fixes #1047 mini-tabs, splitters and bg-splash updated; moved position of Inspector collapse mini-tab to allow position transition; splitter-sm class added for Timelines; commit2aee8bc0d8
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jul 26 15:53:32 2016 -0700 [Frontend] Updated splash image Fixes #1047 commit624f09777f
Merge:ce7591f
4d2f159
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jul 26 15:02:55 2016 -0700 Merge remote-tracking branch 'origin/master' into frontend-1047 commitce7591f642
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jul 26 11:22:23 2016 -0700 [Frontend] Fixed clock indicator Fixes #1047 Restored no-collapse and float-right properties; commit5324c8edba
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 25 18:14:38 2016 -0700 [Frontend] New font and project file Fixes #1047 New font files that were missed in last commit; updated icomoon proj file; fixed missing char codes in glyphs.scss; commita3b2628883
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 25 17:54:00 2016 -0700 [Frontend] Revised and new icon art Fixes #1047 New icons for overlay and stacked plots; revised art and new description for Fixed Position object; commit8a41c6dbc7
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 25 17:52:41 2016 -0700 [Frontend] Removing glyph definitions Fixes #1047 Updated comment commiteb293b21eb
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 25 11:56:18 2016 -0700 [Frontend] Removing glyph definitions Fixes #1047 Removed commented code commitd8b1fb7781
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 25 11:17:45 2016 -0700 [Frontend] Removing glyph definitions; updating tests Fixes #1047 Search and removal of "glyph" definitions in bundle and other JS files; updating tests accordingly; commit650fbcc921
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 25 10:20:33 2016 -0700 [Frontend] Removing glyph definitions; updating tests Fixes #1047 Search and removal of "glyph" definitions in bundle and other JS files; updating tests accordingly; commit574b8bd5c1
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Fri Jul 22 19:11:56 2016 -0700 [Frontend] Updated tests for glyph refactoring Fixes #1047 Fixing test cases commitdd84177441
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Fri Jul 22 18:47:45 2016 -0700 [Frontend] Updated tests and examples for glyph refactoring Fixes #1047 WIP: Fixing test cases: fixed test in Timers that was expecting glyph return; commit2231f8e124
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 17:45:20 2016 -0700 [Frontend] Updated tests for glyph refactoring Fixes #1047 Fixing test cases: fixed test in Timers that was expecting glyph return; commitae59ecfa97
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 17:38:45 2016 -0700 [Frontend] Fixed style Fixes #1047 WIP: fixed line-height issue for t-item-icon class commitd43bff1445
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 17:07:49 2016 -0700 [Frontend] Fixed colors Fixes #1047 WIP: fixed colors and style defs related to clickable icons commitc2db6f8805
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 16:32:17 2016 -0700 [Frontend] Fixed colors Fixes #1047 WIP: fixed colors related to changes to btnSubtle mixin; new constants for clickable icons commita4753c44d1
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 15:23:58 2016 -0700 [Frontend] Added new icon-brackets to symbols font Fixes #1047 WIP commit2704640b94
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 15:11:28 2016 -0700 [Frontend] Normalize color constants Fixes #1047 Normalize color constant values for themes; consolidated and cleaned up btn-related mixins; fixed hover color issues commit421286c7e4
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 14:10:13 2016 -0700 [Frontend] Convert new Fixed Position Display from glyphs Fixes #1047 WIP commita4111f3855
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 14:07:38 2016 -0700 [Frontend] Refactoring Timeline glyphs, s-btn fixes Fixes #1047 WIP: Timeline-related glyph refactoring; s-btn styles and hover color fixes commit883f999215
Merge:9d9cabb
14f1a1f
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 08:53:23 2016 -0700 Merge remote-tracking branch 'origin/master' into frontend-1047 commit9d9cabb760
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jul 19 16:20:20 2016 -0700 [Frontend] Glyph refactoring Fixes #1047 WIP: search, toolbar buttons; mods to flex archetypes commit28b663ce41
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 18 14:58:40 2016 -0700 [Frontend] Glyph-related style changes to toolbars and buttons Fixes #1047 Glyph refactoring WIP for toolbar buttons; Timeline glyph refactoring continued commita9326f572f
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 18 13:36:45 2016 -0700 [Frontend] Glyph-related style changes to Timelines Fixes #1047 Timeline glyph refactoring; Resource Graph icons in swimlanes now display grayed-out version when not added to the Resource Graph; minor color tweaks commitd6e1737803
Merge:88054e5
6176ca2
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 18 10:29:32 2016 -0700 [Frontend] Merge master into frontend-1047 Fixes #1047 Resolved conflict in icomoon.json file commit88054e5e8e
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 30 16:55:40 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In progress: significant mods to pane collapse/expand buttons and symbols, minor tweaks to splitter look, limits glyph definitions commit7c47343f5c
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 30 16:52:21 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In progress: updated font files glyphs, mostly for pane collapse icons commitfd00bdce54
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 30 12:20:55 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In progress: search menu commit272b4b649e
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 30 12:11:25 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In progress: moved limits classes out of _contants and into _glyphs; timers, entanglement context menu items, form validation, date picker. commit95d26e6fe7
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Wed Jun 29 14:18:12 2016 -0700 [Frontend] Refactoring glyphs to classes Fixes #1047 In-progress; limits commit26b30d96db
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 28 17:16:18 2016 -0700 [Frontend] Refactoring glyphs to classes Fixes #1047 In-progress; overlay close, search inputs, messages and message banners, ui-symbol removal in-progress. commit4e2a01ad85
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 28 16:21:05 2016 -0700 [Frontend] Refactoring glyphs to classes Fixes #1047 In-progress; .labeled added to .s-btn, removed .s-icon-btn commit521db3c3fe
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 28 16:10:54 2016 -0700 [Frontend] Refactoring glyphs to classes Fixes #1047 In-progress; plot options, imagery buttons, cleanups in buttons.scss, edit-action buttons, .s-btn .no-label class added. commit8bb8db69e6
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 28 14:47:52 2016 -0700 [Frontend] Refactoring glyphs to classes Fixes #1047 In-progress; indicators, notifications, actions, tests commit53ed0bfb22
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 17:01:45 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In progress, really: view icons, timer/clock commit47dc7f2f6b
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 16:13:31 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In progress: grid items commit2bd34f71be
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 15:00:46 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 Context menus and associated actions, custom checkboxes, tree item being edited commitb561d4f60e
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 14:27:56 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In-progess: glyphs.scss now uses $vars to allow other scss to use a var instead of string literals; commit0cf4089620
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 14:13:59 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In-progess: tree-labels, unknown objects, object header commit46cae10905
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 11:41:06 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In-progess, menus and Create menu fixes commitfe3097707f
Merge:7d69ae4
652a50c
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 11:20:55 2016 -0700 Merge remote-tracking branch 'origin/master' into frontend-1047 commit7d69ae401b
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 23 15:59:56 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In-progress, converting types, mods to Create Menu template commit18d9f3d6b2
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 23 15:14:22 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 Very much In-progess: convert some controls; commite93a90a782
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 23 11:28:07 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 Very much In-progess, classes for all symbols added to glyphs.scss; .menu cleaned up; commitdc670b22a6
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 23 08:55:27 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 Very much In-progess, "icon-" selector, browse bar buttons commit8b29ccf3af
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Wed Jun 22 23:15:24 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 Very much In-progess, s-btn and s-btn-menu refactoring commitf574ffed16
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Wed Jun 22 14:37:34 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In-progess, e900 > e904 commitbc62ee4565
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Wed Jun 22 13:28:15 2016 -0700 [Frontend] Complete revamp of unicodes fixes #1047 New font files; no re-mapping yet in the app. commit614f0c6e9f
Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Wed Jun 22 13:23:18 2016 -0700 [Frontend] Complete revamp of unicodes fixes #1047 Moved all glyphs into PUA area of font, and re-organized by category. commit47bd4031d5
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 21 18:39:48 2016 -0700 [Frontend] Renaming symbols font files Fixes #1047 - Modified sass to point to renamed font files; - Added new 12px symbols font files to sass; commit22a51d6bbb
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 21 18:22:33 2016 -0700 [Frontend] Updating Icomoon project files Fixes #1047 - Renamed main project file; - Added new 12px symbols project file; commit13ded2fd84
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 21 18:19:27 2016 -0700 [Frontend] Added new 12px symbols font files Fixes #1047 commitaef5660dfd
Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 21 18:16:56 2016 -0700 [Frontend] Renaming symbols font files Fixes #1047
580 lines
22 KiB
JavaScript
580 lines
22 KiB
JavaScript
/*****************************************************************************
|
|
* Open MCT, Copyright (c) 2014-2016, United States Government
|
|
* as represented by the Administrator of the National Aeronautics and Space
|
|
* Administration. All rights reserved.
|
|
*
|
|
* Open MCT 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 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/actions/ExportTimelineAsCSVAction",
|
|
"./src/controllers/TimelineController",
|
|
"./src/controllers/TimelineGraphController",
|
|
"./src/controllers/TimelineDateTimeController",
|
|
"./src/controllers/TimelineZoomController",
|
|
"./src/controllers/TimelineTickController",
|
|
"./src/controllers/TimelineTableController",
|
|
"./src/controllers/TimelineGanttController",
|
|
"./src/controllers/ActivityModeValuesController",
|
|
"./src/capabilities/ActivityTimespanCapability",
|
|
"./src/capabilities/TimelineTimespanCapability",
|
|
"./src/capabilities/UtilizationCapability",
|
|
"./src/capabilities/GraphCapability",
|
|
"./src/capabilities/CostCapability",
|
|
"./src/directives/MCTSwimlaneDrop",
|
|
"./src/directives/MCTSwimlaneDrag",
|
|
"./src/services/ObjectLoader",
|
|
"text!./res/templates/values.html",
|
|
"text!./res/templates/timeline.html",
|
|
"text!./res/templates/activity-gantt.html",
|
|
"text!./res/templates/tabular-swimlane-cols-tree.html",
|
|
"text!./res/templates/tabular-swimlane-cols-data.html",
|
|
"text!./res/templates/resource-graphs.html",
|
|
"text!./res/templates/resource-graph-labels.html",
|
|
"text!./res/templates/legend-item.html",
|
|
"text!./res/templates/ticks.html",
|
|
"text!./res/templates/controls/datetime.html",
|
|
'legacyRegistry'
|
|
], function (
|
|
ExportTimelineAsCSVAction,
|
|
TimelineController,
|
|
TimelineGraphController,
|
|
TimelineDateTimeController,
|
|
TimelineZoomController,
|
|
TimelineTickController,
|
|
TimelineTableController,
|
|
TimelineGanttController,
|
|
ActivityModeValuesController,
|
|
ActivityTimespanCapability,
|
|
TimelineTimespanCapability,
|
|
UtilizationCapability,
|
|
GraphCapability,
|
|
CostCapability,
|
|
MCTSwimlaneDrop,
|
|
MCTSwimlaneDrag,
|
|
ObjectLoader,
|
|
valuesTemplate,
|
|
timelineTemplate,
|
|
activityGanttTemplate,
|
|
tabularSwimlaneColsTreeTemplate,
|
|
tabularSwimlaneColsDataTemplate,
|
|
resourceGraphsTemplate,
|
|
resourceGraphLabelsTemplate,
|
|
legendItemTemplate,
|
|
ticksTemplate,
|
|
datetimeTemplate,
|
|
legacyRegistry
|
|
) {
|
|
|
|
legacyRegistry.register("platform/features/timeline", {
|
|
"name": "Timelines",
|
|
"description": "Resources, templates, CSS, and code for Timelines.",
|
|
"resources": "res",
|
|
"extensions": {
|
|
"actions": [
|
|
{
|
|
"key": "timeline.export",
|
|
"name": "Export Timeline as CSV",
|
|
"category": "contextual",
|
|
"implementation": ExportTimelineAsCSVAction,
|
|
"depends": [
|
|
"$log",
|
|
"exportService",
|
|
"notificationService",
|
|
"resources[]"
|
|
]
|
|
}
|
|
],
|
|
"constants": [
|
|
{
|
|
"key": "TIMELINE_MINIMUM_DURATION",
|
|
"description": "The minimum duration to display in a timeline view (one hour.)",
|
|
"value": 3600000
|
|
},
|
|
{
|
|
"key": "TIMELINE_MAXIMUM_OFFSCREEN",
|
|
"description": "Maximum amount, in pixels, of a Gantt bar which may go off screen.",
|
|
"value": 1000
|
|
},
|
|
{
|
|
"key": "TIMELINE_ZOOM_CONFIGURATION",
|
|
"description": "Describes major tick sizes in milliseconds, and width in pixels.",
|
|
"value": {
|
|
"levels": [
|
|
1000,
|
|
2000,
|
|
5000,
|
|
10000,
|
|
20000,
|
|
30000,
|
|
60000,
|
|
120000,
|
|
300000,
|
|
600000,
|
|
1200000,
|
|
1800000,
|
|
3600000,
|
|
7200000,
|
|
14400000,
|
|
28800000,
|
|
43200000,
|
|
86400000,
|
|
86400000 * 2,
|
|
86400000 * 5,
|
|
86400000 * 10,
|
|
86400000 * 20,
|
|
86400000 * 30,
|
|
86400000 * 60,
|
|
86400000 * 120,
|
|
86400000 * 240,
|
|
86400000 * 365
|
|
],
|
|
"width": 200
|
|
}
|
|
}
|
|
],
|
|
"types": [
|
|
{
|
|
"key": "timeline",
|
|
"name": "Timeline",
|
|
"cssclass": "icon-timeline",
|
|
"description": "A time-oriented container that lets you enclose and organize other Timelines and Activities. The Timeline view provides both tabular and Gantt views as well as resource utilization graphing of Activities.",
|
|
"priority": 502,
|
|
"features": [
|
|
"creation"
|
|
],
|
|
"contains": [
|
|
"timeline",
|
|
"activity"
|
|
],
|
|
"properties": [
|
|
{
|
|
"name": "Start date/time",
|
|
"control": "timeline-datetime",
|
|
"required": true,
|
|
"property": [
|
|
"start"
|
|
],
|
|
"options": [
|
|
"SET"
|
|
]
|
|
},
|
|
{
|
|
"name": "Battery capacity (Watt-hours)",
|
|
"control": "textfield",
|
|
"required": false,
|
|
"conversion": "number",
|
|
"property": [
|
|
"capacity"
|
|
],
|
|
"pattern": "^-?\\d+(\\.\\d*)?$"
|
|
}
|
|
],
|
|
"model": {
|
|
"composition": [],
|
|
"start": {
|
|
"timestamp": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"key": "activity",
|
|
"name": "Activity",
|
|
"cssclass": "icon-activity",
|
|
"features": [
|
|
"creation"
|
|
],
|
|
"contains": [
|
|
"activity"
|
|
],
|
|
"description": "An event or process that starts and ends at a discrete datetime. Activities can be nested in other Activities, and can be added to Timelines. Activity Modes can be added to an Activity to define its resource utilization over time.",
|
|
"priority": 501,
|
|
"properties": [
|
|
{
|
|
"name": "Start date/time",
|
|
"control": "timeline-datetime",
|
|
"required": true,
|
|
"property": [
|
|
"start"
|
|
],
|
|
"options": [
|
|
"SET"
|
|
]
|
|
},
|
|
{
|
|
"name": "Duration",
|
|
"control": "duration",
|
|
"required": true,
|
|
"property": [
|
|
"duration"
|
|
]
|
|
}
|
|
],
|
|
"model": {
|
|
"composition": [],
|
|
"relationships": {
|
|
"modes": []
|
|
},
|
|
"start": {
|
|
"timestamp": 0
|
|
},
|
|
"duration": {
|
|
"timestamp": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"key": "mode",
|
|
"name": "Activity Mode",
|
|
"cssclass": "icon-activity-mode",
|
|
"features": [
|
|
"creation"
|
|
],
|
|
"description": "When a sub-system utilizes Power or Communications resources over time, you can define those values in an Activity Mode. Activity Modes can then be linked to Activities to allow resource utilization graphing and estimating in a Timeline.",
|
|
"priority": 500,
|
|
"model": {
|
|
"resources": {
|
|
"comms": 0,
|
|
"power": 0
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"name": "Comms (Kbps)",
|
|
"control": "textfield",
|
|
"conversion": "number",
|
|
"pattern": "^-?\\d+(\\.\\d*)?$",
|
|
"property": [
|
|
"resources",
|
|
"comms"
|
|
]
|
|
},
|
|
{
|
|
"name": "Power (watts)",
|
|
"control": "textfield",
|
|
"conversion": "number",
|
|
"pattern": "^-?\\d+(\\.\\d*)?$",
|
|
"property": [
|
|
"resources",
|
|
"power"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"views": [
|
|
{
|
|
"key": "values",
|
|
"name": "Values",
|
|
"cssclass": "icon-activity-mode",
|
|
"template": valuesTemplate,
|
|
"type": "mode",
|
|
"uses": [
|
|
"cost"
|
|
],
|
|
"editable": false
|
|
},
|
|
{
|
|
"key": "timeline",
|
|
"name": "Timeline",
|
|
"cssclass": "icon-timeline",
|
|
"type": "timeline",
|
|
"description": "A time-oriented container that lets you enclose and organize other Timelines and Activities. The Timeline view provides both tabular and Gantt views as well as resource utilization graphing of Activities.",
|
|
"template": timelineTemplate,
|
|
"editable": true,
|
|
"toolbar": {
|
|
"sections": [
|
|
{
|
|
"items": [
|
|
{
|
|
"method": "add",
|
|
"control": "menu-button",
|
|
"text": "Add",
|
|
"options": [
|
|
{
|
|
"name": "Timeline",
|
|
"cssclass": "icon-timeline",
|
|
"key": "timeline"
|
|
},
|
|
{
|
|
"name": "Activity",
|
|
"cssclass": "icon-activity",
|
|
"key": "activity"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"items": [
|
|
{
|
|
"cssclass": "icon-plot-resource",
|
|
"description": "Graph Resource Utilization",
|
|
"control": "button",
|
|
"method": "toggleGraph"
|
|
},
|
|
{
|
|
"cssclass": "icon-activity-mode",
|
|
"control": "dialog-button",
|
|
"description": "Apply Activity Modes...",
|
|
"title": "Apply Activity Modes",
|
|
"dialog": {
|
|
"control": "selector",
|
|
"name": "Modes",
|
|
"type": "mode",
|
|
"layout": "controls-under"
|
|
},
|
|
"property": "modes"
|
|
},
|
|
{
|
|
"cssclass": "icon-chain-links",
|
|
"description": "Edit Activity Link",
|
|
"title": "Activity Link",
|
|
"control": "dialog-button",
|
|
"dialog": {
|
|
"control": "textfield",
|
|
"name": "Link",
|
|
"pattern": "^(ftp|https?)\\:\\/\\/\\w+(\\.\\w+)*(\\:\\d+)?(\\/\\S*)*$",
|
|
"cssclass": "l-input-lg"
|
|
},
|
|
"property": "link"
|
|
},
|
|
{
|
|
"cssclass": "icon-gear",
|
|
"description": "Edit Properties...",
|
|
"control": "button",
|
|
"method": "properties"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"items": [
|
|
{
|
|
"method": "remove",
|
|
"description": "Remove Item",
|
|
"control": "button",
|
|
"cssclass": "icon-trash"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"stylesheets": [
|
|
{
|
|
"stylesheetUrl": "css/timeline.css"
|
|
},
|
|
{
|
|
"stylesheetUrl": "css/timeline-espresso.css",
|
|
"theme": "espresso"
|
|
},
|
|
{
|
|
"stylesheetUrl": "css/timeline-snow.css",
|
|
"theme": "snow"
|
|
}
|
|
],
|
|
"representations": [
|
|
{
|
|
"key": "gantt",
|
|
"template": activityGanttTemplate,
|
|
"uses": [
|
|
"timespan",
|
|
"type"
|
|
]
|
|
}
|
|
],
|
|
"templates": [
|
|
{
|
|
"key": "timeline-tabular-swimlane-cols-tree",
|
|
"priority": "mandatory",
|
|
"template": tabularSwimlaneColsTreeTemplate
|
|
},
|
|
{
|
|
"key": "timeline-tabular-swimlane-cols-data",
|
|
"priority": "mandatory",
|
|
"template": tabularSwimlaneColsDataTemplate
|
|
},
|
|
{
|
|
"key": "timeline-resource-graphs",
|
|
"priority": "mandatory",
|
|
"template": resourceGraphsTemplate
|
|
},
|
|
{
|
|
"key": "timeline-resource-graph-labels",
|
|
"priority": "mandatory",
|
|
"template": resourceGraphLabelsTemplate
|
|
},
|
|
{
|
|
"key": "timeline-legend-item",
|
|
"priority": "mandatory",
|
|
"template": legendItemTemplate
|
|
},
|
|
{
|
|
"key": "timeline-ticks",
|
|
"priority": "mandatory",
|
|
"template": ticksTemplate
|
|
}
|
|
],
|
|
"controls": [
|
|
{
|
|
"key": "timeline-datetime",
|
|
"template": datetimeTemplate
|
|
},
|
|
{
|
|
"key": "duration",
|
|
"template": datetimeTemplate
|
|
}
|
|
],
|
|
"controllers": [
|
|
{
|
|
"key": "TimelineController",
|
|
"implementation": TimelineController,
|
|
"depends": [
|
|
"$scope",
|
|
"$q",
|
|
"objectLoader",
|
|
"TIMELINE_MINIMUM_DURATION"
|
|
]
|
|
},
|
|
{
|
|
"key": "TimelineGraphController",
|
|
"implementation": TimelineGraphController,
|
|
"depends": [
|
|
"$scope",
|
|
"resources[]"
|
|
]
|
|
},
|
|
{
|
|
"key": "TimelineDateTimeController",
|
|
"implementation": TimelineDateTimeController,
|
|
"depends": [
|
|
"$scope"
|
|
]
|
|
},
|
|
{
|
|
"key": "TimelineZoomController",
|
|
"implementation": TimelineZoomController,
|
|
"depends": [
|
|
"$scope",
|
|
"$window",
|
|
"TIMELINE_ZOOM_CONFIGURATION"
|
|
]
|
|
},
|
|
{
|
|
"key": "TimelineTickController",
|
|
"implementation": TimelineTickController
|
|
},
|
|
{
|
|
"key": "TimelineTableController",
|
|
"implementation": TimelineTableController
|
|
},
|
|
{
|
|
"key": "TimelineGanttController",
|
|
"implementation": TimelineGanttController,
|
|
"depends": [
|
|
"TIMELINE_MAXIMUM_OFFSCREEN"
|
|
]
|
|
},
|
|
{
|
|
"key": "ActivityModeValuesController",
|
|
"implementation": ActivityModeValuesController,
|
|
"depends": [
|
|
"resources[]"
|
|
]
|
|
}
|
|
],
|
|
"capabilities": [
|
|
{
|
|
"key": "timespan",
|
|
"implementation": ActivityTimespanCapability,
|
|
"depends": [
|
|
"$q"
|
|
]
|
|
},
|
|
{
|
|
"key": "timespan",
|
|
"implementation": TimelineTimespanCapability,
|
|
"depends": [
|
|
"$q"
|
|
]
|
|
},
|
|
{
|
|
"key": "utilization",
|
|
"implementation": UtilizationCapability,
|
|
"depends": [
|
|
"$q"
|
|
]
|
|
},
|
|
{
|
|
"key": "graph",
|
|
"implementation": GraphCapability,
|
|
"depends": [
|
|
"$q"
|
|
]
|
|
},
|
|
{
|
|
"key": "cost",
|
|
"implementation": CostCapability
|
|
}
|
|
],
|
|
"directives": [
|
|
{
|
|
"key": "mctSwimlaneDrop",
|
|
"implementation": MCTSwimlaneDrop,
|
|
"depends": [
|
|
"dndService"
|
|
]
|
|
},
|
|
{
|
|
"key": "mctSwimlaneDrag",
|
|
"implementation": MCTSwimlaneDrag,
|
|
"depends": [
|
|
"dndService"
|
|
]
|
|
}
|
|
],
|
|
"services": [
|
|
{
|
|
"key": "objectLoader",
|
|
"implementation": ObjectLoader,
|
|
"depends": [
|
|
"$q"
|
|
]
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"key": "power",
|
|
"name": "Power",
|
|
"units": "watts"
|
|
},
|
|
{
|
|
"key": "comms",
|
|
"name": "Comms",
|
|
"units": "Kbps"
|
|
},
|
|
{
|
|
"key": "battery",
|
|
"name": "Battery State-of-Charge",
|
|
"units": "%"
|
|
}
|
|
]
|
|
}
|
|
});
|
|
});
|