2015-06-03 02:29:57 +00:00
|
|
|
<!--
|
2015-09-15 15:59:57 +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.
|
2015-06-03 02:29:57 +00:00
|
|
|
|
2015-09-15 15:59:57 +00:00
|
|
|
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.
|
2015-06-03 02:29:57 +00:00
|
|
|
|
2015-09-15 15:59:57 +00:00
|
|
|
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.
|
2015-06-03 02:29:57 +00:00
|
|
|
|
2015-09-15 15:59:57 +00:00
|
|
|
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.
|
2015-06-03 02:29:57 +00:00
|
|
|
-->
|
2016-05-10 22:12:50 +00:00
|
|
|
<div ng-controller="TimeRangeController as trCtrl" class="l-flex-col">
|
|
|
|
<form class="l-time-range-inputs-holder l-flex-row flex-elem"
|
2016-04-13 20:23:33 +00:00
|
|
|
ng-submit="trCtrl.updateBoundsFromForm()">
|
2016-05-09 17:38:18 +00:00
|
|
|
<span class="l-time-range-inputs-elem ui-symbol type-icon flex-elem">C</span>
|
2016-05-11 02:52:11 +00:00
|
|
|
<span class="l-time-range-inputs-elem t-inputs-w l-flex-row flex-elem">
|
|
|
|
<span class="l-time-range-input-w flex-elem">
|
|
|
|
<mct-control key="'datetime-field'"
|
|
|
|
structure="{
|
|
|
|
format: parameters.format,
|
|
|
|
validate: trCtrl.validateStart
|
|
|
|
}"
|
|
|
|
ng-model="formModel"
|
|
|
|
ng-blur="trCtrl.updateBoundsFromForm()"
|
|
|
|
field="'start'"
|
|
|
|
class="time-range-start">
|
|
|
|
</mct-control>
|
|
|
|
</span>
|
2015-09-16 01:48:00 +00:00
|
|
|
|
2016-05-11 02:52:11 +00:00
|
|
|
<span class="l-time-range-inputs-elem lbl flex-elem">to</span>
|
2015-09-24 17:34:32 +00:00
|
|
|
|
2016-05-11 02:52:11 +00:00
|
|
|
<span class="l-time-range-input-w flex-elem" ng-controller="ToggleController as t2">
|
|
|
|
<mct-control key="'datetime-field'"
|
|
|
|
structure="{
|
|
|
|
format: parameters.format,
|
|
|
|
validate: trCtrl.validateEnd
|
|
|
|
}"
|
|
|
|
ng-model="formModel"
|
|
|
|
ng-blur="trCtrl.updateBoundsFromForm()"
|
|
|
|
field="'end'"
|
|
|
|
class="time-range-end">
|
|
|
|
</mct-control>
|
|
|
|
</span>
|
2015-10-21 21:35:18 +00:00
|
|
|
</span>
|
2015-11-25 19:02:03 +00:00
|
|
|
<input type="submit" class="hidden">
|
|
|
|
</form>
|
2015-09-24 22:38:52 +00:00
|
|
|
|
2016-05-10 22:12:50 +00:00
|
|
|
<div class="l-time-range-slider-holder flex-elem">
|
2015-10-21 21:35:18 +00:00
|
|
|
<div class="l-time-range-slider">
|
|
|
|
<div class="slider"
|
|
|
|
mct-resize="spanWidth = bounds.width">
|
|
|
|
<div class="knob knob-l"
|
2016-04-13 20:23:33 +00:00
|
|
|
mct-drag-down="trCtrl.startLeftDrag()"
|
|
|
|
mct-drag="trCtrl.leftDrag(delta[0])"
|
2015-10-21 21:35:18 +00:00
|
|
|
ng-style="{ left: startInnerPct }">
|
|
|
|
<div class="range-value">{{startInnerText}}</div>
|
|
|
|
</div>
|
|
|
|
<div class="knob knob-r"
|
2016-04-13 20:23:33 +00:00
|
|
|
mct-drag-down="trCtrl.startRightDrag()"
|
|
|
|
mct-drag="trCtrl.rightDrag(delta[0])"
|
2015-10-21 21:35:18 +00:00
|
|
|
ng-style="{ right: endInnerPct }">
|
|
|
|
<div class="range-value">{{endInnerText}}</div>
|
|
|
|
</div>
|
|
|
|
<div class="slot range-holder">
|
|
|
|
<div class="range"
|
2016-04-13 20:23:33 +00:00
|
|
|
mct-drag-down="trCtrl.startMiddleDrag()"
|
|
|
|
mct-drag="trCtrl.middleDrag(delta[0])"
|
|
|
|
ng-style="{
|
|
|
|
left: startInnerPct,
|
|
|
|
right: endInnerPct
|
|
|
|
}">
|
2015-10-21 21:35:18 +00:00
|
|
|
<div class="toi-line"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-09-24 22:38:52 +00:00
|
|
|
|
2016-05-10 22:12:50 +00:00
|
|
|
<div class="l-time-range-ticks-holder flex-elem">
|
2015-10-21 21:35:18 +00:00
|
|
|
<div class="l-time-range-ticks">
|
|
|
|
<div
|
2015-10-22 22:51:12 +00:00
|
|
|
ng-repeat="tick in ticks track by $index"
|
2015-10-21 21:35:18 +00:00
|
|
|
ng-style="{ left: $index * (100 / (ticks.length - 1)) + '%' }"
|
|
|
|
class="tick tick-x"
|
|
|
|
>
|
|
|
|
<span class="l-time-range-tick-label">{{tick}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|