mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 22:42:24 +00:00
114 lines
4.9 KiB
HTML
114 lines
4.9 KiB
HTML
<!--
|
|
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.
|
|
-->
|
|
<div ng-controller="TimeRangeController">
|
|
<div class="l-time-range-inputs-holder">
|
|
<span class="l-time-range-inputs-elem ui-symbol type-icon">C</span>
|
|
<span class="l-time-range-input" ng-controller="ToggleController as t1">
|
|
<!--<span class="lbl">Start</span>-->
|
|
<span class="s-btn time-range-start">
|
|
<input type="text"
|
|
ng-model="boundsModel.start"
|
|
ng-class="{ error: !boundsModel.startValid }">
|
|
</input>
|
|
<a class="ui-symbol icon icon-calendar"
|
|
ng-if="parameters.format === 'utc' || !parameters.format"
|
|
ng-click="t1.toggle()">
|
|
</a>
|
|
<mct-popup ng-if="t1.isActive()">
|
|
<div mct-click-elsewhere="t1.setState(false)">
|
|
<mct-control key="'datetime-picker'"
|
|
ng-model="ngModel.outer"
|
|
field="'start'"
|
|
options="{ hours: true }">
|
|
</mct-control>
|
|
</div>
|
|
</mct-popup>
|
|
</span>
|
|
</span>
|
|
|
|
<span class="l-time-range-inputs-elem lbl">to</span>
|
|
|
|
<span class="l-time-range-input" ng-controller="ToggleController as t2">
|
|
<!--<span class="lbl">End</span>-->
|
|
<span class="s-btn l-time-range-input">
|
|
<input type="text"
|
|
ng-model="boundsModel.end"
|
|
ng-class="{ error: !boundsModel.endValid }">
|
|
</input>
|
|
<a class="ui-symbol icon icon-calendar"
|
|
ng-if="parameters.format === 'utc' || !parameters.format"
|
|
ng-click="t2.toggle()">
|
|
</a>
|
|
<mct-popup ng-if="t2.isActive()">
|
|
<div mct-click-elsewhere="t2.setState(false)">
|
|
<mct-control key="'datetime-picker'"
|
|
ng-model="ngModel.outer"
|
|
field="'end'"
|
|
options="{ hours: true }">
|
|
</mct-control>
|
|
</div>
|
|
</mct-popup>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="l-time-range-slider-holder">
|
|
<div class="l-time-range-slider">
|
|
<div class="slider"
|
|
mct-resize="spanWidth = bounds.width">
|
|
<div class="knob knob-l"
|
|
mct-drag-down="startLeftDrag()"
|
|
mct-drag="leftDrag(delta[0])"
|
|
ng-style="{ left: startInnerPct }">
|
|
<div class="range-value">{{startInnerText}}</div>
|
|
</div>
|
|
<div class="knob knob-r"
|
|
mct-drag-down="startRightDrag()"
|
|
mct-drag="rightDrag(delta[0])"
|
|
ng-style="{ right: endInnerPct }">
|
|
<div class="range-value">{{endInnerText}}</div>
|
|
</div>
|
|
<div class="slot range-holder">
|
|
<div class="range"
|
|
mct-drag-down="startMiddleDrag()"
|
|
mct-drag="middleDrag(delta[0])"
|
|
ng-style="{ left: startInnerPct, right: endInnerPct}">
|
|
<div class="toi-line"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="l-time-range-ticks-holder">
|
|
<div class="l-time-range-ticks">
|
|
<div
|
|
ng-repeat="tick in ticks track by $index"
|
|
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>
|