14 changed files with 2609 additions and 3139 deletions
File diff suppressed because it is too large
@ -1,421 +0,0 @@ |
|||||
.daterangepicker { |
|
||||
display: none; |
|
||||
position: absolute; |
|
||||
color: inherit; |
|
||||
background: #fff; |
|
||||
border-radius: 4px; |
|
||||
width: 278px; |
|
||||
padding: 4px; |
|
||||
margin-top: 1px; |
|
||||
top: 100px; |
|
||||
left: 20px; |
|
||||
padding-bottom: 50px; |
|
||||
font-size: 14px; |
|
||||
border: 1px solid rgba(0,0,0,.15); |
|
||||
} |
|
||||
.daterangepicker table{ |
|
||||
border-collapse: collapse; |
|
||||
border-spacing: 0; |
|
||||
} |
|
||||
.daterangepicker table td,.daterangepicker table th{ |
|
||||
padding: 5px; |
|
||||
box-sizing: border-box; |
|
||||
-webkit-box-sizing: border-box; |
|
||||
} |
|
||||
.daterangepicker:before, .daterangepicker:after { |
|
||||
position: absolute; |
|
||||
display: inline-block; |
|
||||
border-bottom-color: rgba(0, 0, 0, 0.2); |
|
||||
content: ''; |
|
||||
} |
|
||||
.daterangepicker:before { |
|
||||
top: -7px; |
|
||||
border-right: 7px solid transparent; |
|
||||
border-left: 7px solid transparent; |
|
||||
border-bottom: 7px solid #ccc; |
|
||||
} |
|
||||
.daterangepicker:after { |
|
||||
top: -6px; |
|
||||
border-right: 6px solid transparent; |
|
||||
border-bottom: 6px solid #fff; |
|
||||
border-left: 6px solid transparent; |
|
||||
} |
|
||||
.daterangepicker.opensleft:before { |
|
||||
right: 9px; |
|
||||
} |
|
||||
.daterangepicker.opensleft:after { |
|
||||
right: 10px; |
|
||||
} |
|
||||
.daterangepicker.openscenter:before { |
|
||||
left: 0; |
|
||||
right: 0; |
|
||||
width: 0; |
|
||||
margin-left: auto; |
|
||||
margin-right: auto; |
|
||||
} |
|
||||
.daterangepicker.openscenter:after { |
|
||||
left: 0; |
|
||||
right: 0; |
|
||||
width: 0; |
|
||||
margin-left: auto; |
|
||||
margin-right: auto; |
|
||||
} |
|
||||
.daterangepicker.opensright:before { |
|
||||
left: 9px; |
|
||||
} |
|
||||
.daterangepicker.opensright:after { |
|
||||
left: 10px; |
|
||||
} |
|
||||
.daterangepicker.dropup { |
|
||||
margin-top: -5px; |
|
||||
} |
|
||||
.daterangepicker.dropup:before { |
|
||||
top: initial; |
|
||||
bottom: -7px; |
|
||||
border-bottom: initial; |
|
||||
border-top: 7px solid #ccc; |
|
||||
} |
|
||||
.daterangepicker.dropup:after { |
|
||||
top: initial; |
|
||||
bottom: -6px; |
|
||||
border-bottom: initial; |
|
||||
border-top: 6px solid #fff; |
|
||||
} |
|
||||
.daterangepicker.dropdown-menu { |
|
||||
max-width: none; |
|
||||
z-index: 1000000; |
|
||||
} |
|
||||
.daterangepicker.single .ranges, .daterangepicker.single .calendar { |
|
||||
float: none; |
|
||||
} |
|
||||
.daterangepicker.show-calendar .calendar { |
|
||||
display: block; |
|
||||
} |
|
||||
.daterangepicker .calendar { |
|
||||
display: block; |
|
||||
max-width: 270px; |
|
||||
margin: 4px; |
|
||||
margin-top: -30px; |
|
||||
} |
|
||||
.daterangepicker .calendar.single .calendar-table { |
|
||||
border: none; |
|
||||
} |
|
||||
.daterangepicker .calendar th, .daterangepicker .calendar td { |
|
||||
white-space: nowrap; |
|
||||
text-align: center; |
|
||||
min-width: 32px; |
|
||||
} |
|
||||
.daterangepicker .calendar-table { |
|
||||
border: 1px solid #fff; |
|
||||
padding: 4px; |
|
||||
border-radius: 4px; |
|
||||
background: #fff; |
|
||||
} |
|
||||
.daterangepicker table { |
|
||||
width: 100%; |
|
||||
margin: 0; |
|
||||
} |
|
||||
.daterangepicker td, .daterangepicker th { |
|
||||
text-align: center; |
|
||||
width: 20px; |
|
||||
height: 20px; |
|
||||
line-height: 20px; |
|
||||
border-radius: 4px; |
|
||||
border: 1px solid transparent; |
|
||||
white-space: nowrap; |
|
||||
cursor: pointer; |
|
||||
} |
|
||||
.daterangepicker td.available:hover, .daterangepicker th.available:hover { |
|
||||
background: #eee; |
|
||||
} |
|
||||
.daterangepicker td.week, .daterangepicker th.week { |
|
||||
font-size: 80%; |
|
||||
color: #ccc; |
|
||||
} |
|
||||
.daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date { |
|
||||
background-color: #fff; |
|
||||
border-color: transparent; |
|
||||
color: #999; |
|
||||
} |
|
||||
.daterangepicker td.in-range { |
|
||||
background-color: #d9e3ff; |
|
||||
border-color: transparent; |
|
||||
color: #000; |
|
||||
border-radius: 0; |
|
||||
} |
|
||||
.daterangepicker td.start-date { |
|
||||
border-radius: 4px 0 0 4px; |
|
||||
} |
|
||||
.daterangepicker td.end-date { |
|
||||
border-radius: 0 4px 4px 0; |
|
||||
} |
|
||||
.daterangepicker td.start-date.end-date { |
|
||||
border-radius: 4px; |
|
||||
} |
|
||||
.daterangepicker td.active, .daterangepicker td.active:hover { |
|
||||
background-color: #477cff; |
|
||||
border-color: transparent; |
|
||||
color: #fff; |
|
||||
} |
|
||||
.daterangepicker th.month { |
|
||||
width: auto; |
|
||||
} |
|
||||
.daterangepicker td.disabled, .daterangepicker option.disabled { |
|
||||
color: #999; |
|
||||
cursor: not-allowed; |
|
||||
text-decoration: line-through; |
|
||||
} |
|
||||
.daterangepicker select.monthselect, .daterangepicker select.yearselect { |
|
||||
font-size: 12px; |
|
||||
padding: 1px; |
|
||||
height: auto; |
|
||||
margin: 0; |
|
||||
cursor: default; |
|
||||
vertical-align: top; |
|
||||
} |
|
||||
.daterangepicker select.monthselect { |
|
||||
margin-right: 2%; |
|
||||
width: 56%; |
|
||||
} |
|
||||
.daterangepicker select.yearselect { |
|
||||
width: 40%; |
|
||||
} |
|
||||
.daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.secondselect, .daterangepicker select.ampmselect { |
|
||||
width: 50px; |
|
||||
margin-bottom: 0; |
|
||||
} |
|
||||
.daterangepicker .input-mini { |
|
||||
border: 1px solid #ccc; |
|
||||
border-radius: 4px; |
|
||||
color: #555; |
|
||||
height: 30px; |
|
||||
line-height: 30px; |
|
||||
display: block; |
|
||||
vertical-align: middle; |
|
||||
margin: 0 0 5px 0; |
|
||||
padding: 0 6px 0 0px; |
|
||||
width: 100%; |
|
||||
} |
|
||||
.daterangepicker .input-mini.active { |
|
||||
/*border: 1px solid #08c; |
|
||||
border-radius: 4px; */ |
|
||||
} |
|
||||
.daterangepicker .daterangepicker_input { |
|
||||
position: relative; |
|
||||
} |
|
||||
.daterangepicker .daterangepicker_input input{ |
|
||||
border:0; |
|
||||
color: #477cff; |
|
||||
} |
|
||||
.daterangepicker .daterangepicker_input i { |
|
||||
position: absolute; |
|
||||
left: 8px; |
|
||||
top: 8px; |
|
||||
} |
|
||||
.daterangepicker .calendar-time { |
|
||||
text-align: center; |
|
||||
margin: 5px auto; |
|
||||
line-height: 30px; |
|
||||
position: relative; |
|
||||
padding-left: 28px; |
|
||||
} |
|
||||
.daterangepicker .calendar-time select.disabled { |
|
||||
color: #ccc; |
|
||||
cursor: not-allowed; |
|
||||
} |
|
||||
.ranges { |
|
||||
font-size: 11px; |
|
||||
float: none; |
|
||||
margin: 4px; |
|
||||
text-align: left; |
|
||||
border-right: 1px solid #efeff0; |
|
||||
margin-right: 15px; |
|
||||
} |
|
||||
.ranges ul { |
|
||||
list-style: none; |
|
||||
margin: 0 auto; |
|
||||
padding: 0; |
|
||||
width: 100%; |
|
||||
} |
|
||||
.ranges li { |
|
||||
font-size: 12px; |
|
||||
/*background: #f5f5f5;*/ |
|
||||
/*border: 1px solid #f5f5f5;*/ |
|
||||
/*border-radius: 4px;*/ |
|
||||
color: #72777a; |
|
||||
padding: 3px 12px; |
|
||||
height: 20px; |
|
||||
line-height: 14px; |
|
||||
margin-bottom: 8px; |
|
||||
cursor: pointer; |
|
||||
box-sizing: border-box; |
|
||||
-webkit-box-sizing: border-box; |
|
||||
} |
|
||||
.ranges li:hover { |
|
||||
/*background: #08c; |
|
||||
border: 1px solid #08c;*/ |
|
||||
color: #6072FF; |
|
||||
} |
|
||||
.ranges li.active { |
|
||||
/*background: #08c;*/ |
|
||||
border: 1px solid #efeff0; |
|
||||
color: #477cff; |
|
||||
} |
|
||||
@media (min-width: 564px) { |
|
||||
.daterangepicker { |
|
||||
width: auto; |
|
||||
} |
|
||||
.daterangepicker .ranges ul { |
|
||||
width: 120px; |
|
||||
} |
|
||||
.daterangepicker.single .ranges ul { |
|
||||
width: 100%; |
|
||||
} |
|
||||
.daterangepicker.single .calendar.left { |
|
||||
clear: none; |
|
||||
} |
|
||||
.daterangepicker.single .ranges, .daterangepicker.single .calendar { |
|
||||
float: left; |
|
||||
} |
|
||||
.daterangepicker .calendar.left { |
|
||||
clear: left; |
|
||||
margin-right: 0; |
|
||||
} |
|
||||
.daterangepicker .calendar.left .calendar-table { |
|
||||
border-right: none; |
|
||||
border-top-right-radius: 0; |
|
||||
border-bottom-right-radius: 0; |
|
||||
} |
|
||||
.daterangepicker .calendar.right { |
|
||||
margin-left: 0; |
|
||||
} |
|
||||
.daterangepicker .calendar.right .calendar-table { |
|
||||
border-left: none; |
|
||||
border-top-left-radius: 0; |
|
||||
border-bottom-left-radius: 0; |
|
||||
} |
|
||||
.daterangepicker .left .daterangepicker_input { |
|
||||
padding-right: 12px; |
|
||||
} |
|
||||
.daterangepicker .calendar.left .calendar-table { |
|
||||
padding-right: 12px; |
|
||||
} |
|
||||
.daterangepicker .ranges, .daterangepicker .calendar { |
|
||||
float: left; |
|
||||
} |
|
||||
} |
|
||||
@media (min-width: 730px){ |
|
||||
.daterangepicker .ranges { |
|
||||
width: auto; |
|
||||
float: left; |
|
||||
} |
|
||||
.daterangepicker .calendar.left { |
|
||||
clear: none; |
|
||||
} |
|
||||
} |
|
||||
.applyBtn,.cancelBtn{ |
|
||||
padding: 0; |
|
||||
width: 60px; |
|
||||
height: 28px !important; |
|
||||
font-size: 12px; |
|
||||
} |
|
||||
.applyBtn{ |
|
||||
border-color: #2196f3; |
|
||||
background-color: #2196f3; |
|
||||
color: #fff; |
|
||||
} |
|
||||
.cancelBtn{ |
|
||||
background: #ffffff; |
|
||||
color: #666 !important; |
|
||||
border: 1px solid #d9dbdc; |
|
||||
} |
|
||||
.applyBtn:hover{ |
|
||||
border-color: #2196f3 !important; |
|
||||
background-color: #2196f3 !important; |
|
||||
color: #fff !important; |
|
||||
} |
|
||||
.cancelBtn:hover{ |
|
||||
background: #ffffff !important; |
|
||||
color: #666 !important; |
|
||||
border: 1px solid #d9dbdc !important; |
|
||||
} |
|
||||
.ranges_1 ul { |
|
||||
display: none; |
|
||||
} |
|
||||
.ranges_1 .range_inputs { |
|
||||
position: absolute; |
|
||||
bottom: 0; |
|
||||
margin-bottom: 15px; |
|
||||
right: 60px; |
|
||||
} |
|
||||
.calendar_1 { |
|
||||
position: absolute; |
|
||||
right: 340px; |
|
||||
bottom: 4px; |
|
||||
width: 125px; |
|
||||
} |
|
||||
.calendar_2 { |
|
||||
position: absolute; |
|
||||
right: 238px; |
|
||||
bottom: 4px; |
|
||||
width: 125px; |
|
||||
} |
|
||||
.line_date { |
|
||||
width: 100%; |
|
||||
height: 1px; |
|
||||
border-bottom: 1px solid #efeff0; |
|
||||
position: absolute; |
|
||||
bottom: 53px; |
|
||||
right: 0; |
|
||||
} |
|
||||
.line_date_2 { |
|
||||
width: 7px; |
|
||||
height: 1px; |
|
||||
border-bottom: 1px solid #477cff; |
|
||||
position: absolute; |
|
||||
bottom: 28px; |
|
||||
right: 380px; |
|
||||
} |
|
||||
.daterangepicker .all{ |
|
||||
position: absolute; |
|
||||
bottom: 14px; |
|
||||
right: 282px; |
|
||||
width: 188px; |
|
||||
height: 30px; |
|
||||
line-height: 30px; |
|
||||
background-color: #ffffff; |
|
||||
color: #477cff; |
|
||||
display: none; |
|
||||
} |
|
||||
.daterangepicker .prev { |
|
||||
position: relative; |
|
||||
left: 33px; |
|
||||
} |
|
||||
.daterangepicker .next { |
|
||||
position: relative; |
|
||||
right: 33px; |
|
||||
} |
|
||||
.prev_year,.prev_month{ |
|
||||
width: 30px; |
|
||||
height:30px; |
|
||||
position: relative; |
|
||||
display: inline-block; |
|
||||
line-height: 30px; |
|
||||
text-align: center; |
|
||||
} |
|
||||
.prev_year:hover,.prev_month:hover{ |
|
||||
background: #eeeeee; |
|
||||
cursor: pointer; |
|
||||
} |
|
||||
.prev_year i,.prev_month i{ |
|
||||
font-size: 16px; |
|
||||
color: #000; |
|
||||
} |
|
||||
.prev_year{ |
|
||||
left: 15px; |
|
||||
top: 36px; |
|
||||
} |
|
||||
.prev_month{ |
|
||||
left: 191px; |
|
||||
top: 36px; |
|
||||
} |
|
||||
@ -1,97 +0,0 @@ |
|||||
'use strict'; |
|
||||
|
|
||||
(function(root, factory) { |
|
||||
/*global define*/ |
|
||||
if (typeof define === 'function' && define.amd) { |
|
||||
define(['moment', 'moment-timezone'], factory); // AMD
|
|
||||
} else if (typeof module === 'object' && module.exports) { |
|
||||
module.exports = factory(require('moment'), require('moment-timezone')); // Node
|
|
||||
} else { |
|
||||
factory(root.moment, root.moment.tz); // Browser
|
|
||||
} |
|
||||
}(this, function(moment, momentTimezone) { |
|
||||
var MINUTE_MILLISECONDS = 60 * 1000; |
|
||||
var DAY_MILLISECONDS = 86400000; |
|
||||
var MS_DAY_OFFSET = 25569; |
|
||||
|
|
||||
var momentVersion = moment.version.split('.'); |
|
||||
var major = +momentVersion[0]; |
|
||||
var minor = +momentVersion[1]; |
|
||||
|
|
||||
if (major < 2 || (major === 2 && minor < 6)) { |
|
||||
throw new Error('moment-msdate requires Moment.js >= 2.6.0. You are using Moment.js ${moment.version}. See momentjs.com'); |
|
||||
} |
|
||||
|
|
||||
if (!momentTimezone || !moment.tz) { |
|
||||
throw new Error('moment-msdate requires moment-timezone.js. see momentjs.com/timezone'); |
|
||||
} |
|
||||
|
|
||||
var oaDateToTicks = function(oaDate) { |
|
||||
return ((oaDate - MS_DAY_OFFSET) * DAY_MILLISECONDS) + (oaDate >= 0.0 ? 0.5 : -0.5); |
|
||||
}; |
|
||||
|
|
||||
var ticksToOADate = function(ticks) { |
|
||||
return (ticks / DAY_MILLISECONDS) + MS_DAY_OFFSET; |
|
||||
}; |
|
||||
|
|
||||
/** |
|
||||
* @description takes an oaDate that is not in utc and converts it to a utc moment offset by a number of minutes |
|
||||
* |
|
||||
* @param {double} oaDate |
|
||||
* @param {string} offsetToUtcInMinutes |
|
||||
* @returns moment |
|
||||
*/ |
|
||||
var fromOADateOffsetToUtcByMinutes = function(oaDate, offsetToUtcInMinutes) { |
|
||||
var offsetInTicks = offsetToUtcInMinutes * MINUTE_MILLISECONDS; |
|
||||
var ticks = oaDateToTicks(oaDate); |
|
||||
return moment(ticks + offsetInTicks).utc(); |
|
||||
}; |
|
||||
|
|
||||
/** |
|
||||
* @description takes an oaDate that is not in utc and converts it to a utc moment offset by the specified timezone |
|
||||
* |
|
||||
* @param {double} oaDate |
|
||||
* @param {string} timezone |
|
||||
* @returns moment |
|
||||
*/ |
|
||||
var fromOADateOffsetToUtcByTimezone = function(oaDate, timezone) { |
|
||||
if (!moment.tz.zone(timezone)) { throw new Error('timezone provided is not available in moment-timezone.js', 'moment-msdate.js', 59); } |
|
||||
var ticks = oaDateToTicks(oaDate); |
|
||||
var offset = moment(ticks).tz(timezone).utcOffset() * MINUTE_MILLISECONDS; |
|
||||
return moment.tz(ticks - offset, timezone).utc(); |
|
||||
}; |
|
||||
|
|
||||
/** |
|
||||
* @description takes an oaDate that is in utc and converts it to a utc moment or takes an oaDate and an offset to utc and converts it to a utc moment. The offset can be an int representing the offset to utc in minutes or a string indicating the timezone of the oaDate. |
|
||||
* |
|
||||
* @param {double} oaDate |
|
||||
* @param {string=} {int=} offset |
|
||||
* @returns moment |
|
||||
*/ |
|
||||
moment.fromOADate = function(oaDate, offset) { |
|
||||
if (isNaN(parseInt(oaDate, 10))) { throw new TypeError('fromOADate requires an oaDate that is not null or undefined', 'moment-msdate.js', 72); } |
|
||||
|
|
||||
/* no offset */ |
|
||||
if (!offset) { return fromOADateOffsetToUtcByMinutes(oaDate, 0); } |
|
||||
|
|
||||
/* timezone */ |
|
||||
var parsedOffset = parseInt(offset, 10); |
|
||||
if (isNaN(parsedOffset)) { return fromOADateOffsetToUtcByTimezone(oaDate, offset); } |
|
||||
|
|
||||
/* minutes */ |
|
||||
return fromOADateOffsetToUtcByMinutes(oaDate, parsedOffset); |
|
||||
}; |
|
||||
|
|
||||
/** |
|
||||
* @description converts a moment to a UTC OLE automation date represented as a double |
|
||||
* |
|
||||
* @returns {double} |
|
||||
*/ |
|
||||
moment.fn.toOADate = function() { |
|
||||
var milliseconds = this.valueOf(); |
|
||||
return ticksToOADate(milliseconds); |
|
||||
}; |
|
||||
|
|
||||
|
|
||||
return moment; |
|
||||
})); |
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue