Added compiled JavaScript to repository for GitHub pages
This feels like a mistake...
This commit is contained in:
parent
3d5a2fb322
commit
dc226b1f25
468 changed files with 212152 additions and 2 deletions
1746
resources/public/js/compiled/out/goog/date/date.js
Normal file
1746
resources/public/js/compiled/out/goog/date/date.js
Normal file
File diff suppressed because it is too large
Load diff
27
resources/public/js/compiled/out/goog/date/datelike.js
Normal file
27
resources/public/js/compiled/out/goog/date/datelike.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
// Copyright 2010 The Closure Library Authors. All Rights Reserved.
|
||||
//
|
||||
// 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.
|
||||
|
||||
/**
|
||||
* @fileoverview Typedefs for working with dates.
|
||||
*
|
||||
* @author nicksantos@google.com (Nick Santos)
|
||||
*/
|
||||
|
||||
goog.provide('goog.date.DateLike');
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {(Date|goog.date.Date)}
|
||||
*/
|
||||
goog.date.DateLike;
|
||||
150
resources/public/js/compiled/out/goog/date/duration.js
Normal file
150
resources/public/js/compiled/out/goog/date/duration.js
Normal file
|
|
@ -0,0 +1,150 @@
|
|||
// Copyright 2013 The Closure Library Authors. All Rights Reserved.
|
||||
//
|
||||
// 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.
|
||||
|
||||
/**
|
||||
* @fileoverview Functions for formatting duration values. Such as "3 days"
|
||||
* "3 hours", "14 minutes", "2 hours 45 minutes".
|
||||
*
|
||||
*/
|
||||
|
||||
goog.provide('goog.date.duration');
|
||||
|
||||
goog.require('goog.i18n.DateTimeFormat');
|
||||
goog.require('goog.i18n.MessageFormat');
|
||||
|
||||
|
||||
/**
|
||||
* Number of milliseconds in a minute.
|
||||
* @type {number}
|
||||
* @private
|
||||
*/
|
||||
goog.date.duration.MINUTE_MS_ = 60000;
|
||||
|
||||
|
||||
/**
|
||||
* Number of milliseconds in an hour.
|
||||
* @type {number}
|
||||
* @private
|
||||
*/
|
||||
goog.date.duration.HOUR_MS_ = 3600000;
|
||||
|
||||
|
||||
/**
|
||||
* Number of milliseconds in a day.
|
||||
* @type {number}
|
||||
* @private
|
||||
*/
|
||||
goog.date.duration.DAY_MS_ = 86400000;
|
||||
|
||||
|
||||
/**
|
||||
* Accepts a duration in milliseconds and outputs an absolute duration time in
|
||||
* form of "1 day", "2 hours", "20 minutes", "2 days 1 hour 15 minutes" etc.
|
||||
* @param {number} durationMs Duration in milliseconds.
|
||||
* @return {string} The formatted duration.
|
||||
*/
|
||||
goog.date.duration.format = function(durationMs) {
|
||||
var ms = Math.abs(durationMs);
|
||||
|
||||
// Handle durations shorter than 1 minute.
|
||||
if (ms < goog.date.duration.MINUTE_MS_) {
|
||||
/**
|
||||
* @desc Duration time of zero minutes.
|
||||
*/
|
||||
var MSG_ZERO_MINUTES = goog.getMsg('0 minutes');
|
||||
return MSG_ZERO_MINUTES;
|
||||
}
|
||||
|
||||
var days = Math.floor(ms / goog.date.duration.DAY_MS_);
|
||||
ms %= goog.date.duration.DAY_MS_;
|
||||
|
||||
var hours = Math.floor(ms / goog.date.duration.HOUR_MS_);
|
||||
ms %= goog.date.duration.HOUR_MS_;
|
||||
|
||||
var minutes = Math.floor(ms / goog.date.duration.MINUTE_MS_);
|
||||
|
||||
// Localized number representations.
|
||||
var daysText = goog.i18n.DateTimeFormat.localizeNumbers(days);
|
||||
var hoursText = goog.i18n.DateTimeFormat.localizeNumbers(hours);
|
||||
var minutesText = goog.i18n.DateTimeFormat.localizeNumbers(minutes);
|
||||
|
||||
// We need a space after the days if there are hours or minutes to come.
|
||||
var daysSeparator = days * (hours + minutes) ? ' ' : '';
|
||||
// We need a space after the hours if there are minutes to come.
|
||||
var hoursSeparator = hours * minutes ? ' ' : '';
|
||||
|
||||
/**
|
||||
* @desc The days part of the duration message: 1 day, 5 days.
|
||||
*/
|
||||
var MSG_DURATION_DAYS = goog.getMsg(
|
||||
'{COUNT, plural, ' +
|
||||
'=0 {}' +
|
||||
'=1 {{TEXT} day}' +
|
||||
'other {{TEXT} days}}');
|
||||
/**
|
||||
* @desc The hours part of the duration message: 1 hour, 5 hours.
|
||||
*/
|
||||
var MSG_DURATION_HOURS = goog.getMsg(
|
||||
'{COUNT, plural, ' +
|
||||
'=0 {}' +
|
||||
'=1 {{TEXT} hour}' +
|
||||
'other {{TEXT} hours}}');
|
||||
/**
|
||||
* @desc The minutes part of the duration message: 1 minute, 5 minutes.
|
||||
*/
|
||||
var MSG_DURATION_MINUTES = goog.getMsg(
|
||||
'{COUNT, plural, ' +
|
||||
'=0 {}' +
|
||||
'=1 {{TEXT} minute}' +
|
||||
'other {{TEXT} minutes}}');
|
||||
|
||||
var daysPart = goog.date.duration.getDurationMessagePart_(
|
||||
MSG_DURATION_DAYS, days, daysText);
|
||||
var hoursPart = goog.date.duration.getDurationMessagePart_(
|
||||
MSG_DURATION_HOURS, hours, hoursText);
|
||||
var minutesPart = goog.date.duration.getDurationMessagePart_(
|
||||
MSG_DURATION_MINUTES, minutes, minutesText);
|
||||
|
||||
/**
|
||||
* @desc Duration time text concatenated from the individual time unit message
|
||||
* parts. The separator will be a space (e.g. '1 day 2 hours 24 minutes') or
|
||||
* nothing in case one/two of the duration parts is empty (
|
||||
* e.g. '1 hour 30 minutes', '3 days 15 minutes', '2 hours').
|
||||
*/
|
||||
var MSG_CONCATENATED_DURATION_TEXT = goog.getMsg(
|
||||
'{$daysPart}{$daysSeparator}{$hoursPart}{$hoursSeparator}{$minutesPart}',
|
||||
{
|
||||
'daysPart': daysPart,
|
||||
'daysSeparator': daysSeparator,
|
||||
'hoursPart': hoursPart,
|
||||
'hoursSeparator': hoursSeparator,
|
||||
'minutesPart': minutesPart
|
||||
});
|
||||
|
||||
return MSG_CONCATENATED_DURATION_TEXT;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Gets a duration message part for a time unit.
|
||||
* @param {string} pattern The pattern to apply.
|
||||
* @param {number} count The number of units.
|
||||
* @param {string} text The string to use for amount of units in the message.
|
||||
* @return {string} The formatted message part.
|
||||
* @private
|
||||
*/
|
||||
goog.date.duration.getDurationMessagePart_ = function(pattern, count, text) {
|
||||
var formatter = new goog.i18n.MessageFormat(pattern);
|
||||
return formatter.format({'COUNT': count, 'TEXT': text});
|
||||
};
|
||||
190
resources/public/js/compiled/out/goog/date/utcdatetime.js
Normal file
190
resources/public/js/compiled/out/goog/date/utcdatetime.js
Normal file
|
|
@ -0,0 +1,190 @@
|
|||
// Copyright 2009 The Closure Library Authors. All Rights Reserved.
|
||||
//
|
||||
// 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.
|
||||
|
||||
/**
|
||||
* @fileoverview Locale independent date/time class.
|
||||
*
|
||||
*/
|
||||
|
||||
goog.provide('goog.date.UtcDateTime');
|
||||
|
||||
goog.require('goog.date');
|
||||
goog.require('goog.date.Date');
|
||||
goog.require('goog.date.DateTime');
|
||||
goog.require('goog.date.Interval');
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Class representing a date/time in GMT+0 time zone, without daylight saving.
|
||||
* Defaults to current date and time if none is specified. The get... and the
|
||||
* getUTC... methods are equivalent.
|
||||
*
|
||||
* @param {number|goog.date.DateLike=} opt_year Four digit UTC year or a
|
||||
* date-like object. If not set, the created object will contain the
|
||||
* date determined by goog.now().
|
||||
* @param {number=} opt_month UTC month, 0 = Jan, 11 = Dec.
|
||||
* @param {number=} opt_date UTC date of month, 1 - 31.
|
||||
* @param {number=} opt_hours UTC hours, 0 - 23.
|
||||
* @param {number=} opt_minutes UTC minutes, 0 - 59.
|
||||
* @param {number=} opt_seconds UTC seconds, 0 - 59.
|
||||
* @param {number=} opt_milliseconds UTC milliseconds, 0 - 999.
|
||||
* @constructor
|
||||
* @struct
|
||||
* @extends {goog.date.DateTime}
|
||||
*/
|
||||
goog.date.UtcDateTime = function(
|
||||
opt_year, opt_month, opt_date, opt_hours, opt_minutes, opt_seconds,
|
||||
opt_milliseconds) {
|
||||
var timestamp;
|
||||
if (goog.isNumber(opt_year)) {
|
||||
timestamp = Date.UTC(
|
||||
opt_year, opt_month || 0, opt_date || 1, opt_hours || 0,
|
||||
opt_minutes || 0, opt_seconds || 0, opt_milliseconds || 0);
|
||||
} else {
|
||||
timestamp = opt_year ? opt_year.getTime() : goog.now();
|
||||
}
|
||||
this.date = new Date(timestamp);
|
||||
};
|
||||
goog.inherits(goog.date.UtcDateTime, goog.date.DateTime);
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} timestamp Number of milliseconds since Epoch.
|
||||
* @return {!goog.date.UtcDateTime}
|
||||
*/
|
||||
goog.date.UtcDateTime.fromTimestamp = function(timestamp) {
|
||||
var date = new goog.date.UtcDateTime();
|
||||
date.setTime(timestamp);
|
||||
return date;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Creates a DateTime from a UTC datetime string expressed in ISO 8601 format.
|
||||
*
|
||||
* @param {string} formatted A date or datetime expressed in ISO 8601 format.
|
||||
* @return {goog.date.UtcDateTime} Parsed date or null if parse fails.
|
||||
*/
|
||||
goog.date.UtcDateTime.fromIsoString = function(formatted) {
|
||||
var ret = new goog.date.UtcDateTime(2000);
|
||||
return goog.date.setIso8601DateTime(ret, formatted) ? ret : null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clones the UtcDateTime object.
|
||||
*
|
||||
* @return {!goog.date.UtcDateTime} A clone of the datetime object.
|
||||
* @override
|
||||
*/
|
||||
goog.date.UtcDateTime.prototype.clone = function() {
|
||||
var date = new goog.date.UtcDateTime(this.date);
|
||||
date.setFirstDayOfWeek(this.getFirstDayOfWeek());
|
||||
date.setFirstWeekCutOffDay(this.getFirstWeekCutOffDay());
|
||||
return date;
|
||||
};
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.add = function(interval) {
|
||||
if (interval.years || interval.months) {
|
||||
var yearsMonths = new goog.date.Interval(interval.years, interval.months);
|
||||
goog.date.Date.prototype.add.call(this, yearsMonths);
|
||||
}
|
||||
var daysAndTimeMillis = 1000 *
|
||||
(interval.seconds +
|
||||
60 * (interval.minutes + 60 * (interval.hours + 24 * interval.days)));
|
||||
this.date = new Date(this.date.getTime() + daysAndTimeMillis);
|
||||
};
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.getTimezoneOffset = function() {
|
||||
return 0;
|
||||
};
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.getFullYear =
|
||||
goog.date.DateTime.prototype.getUTCFullYear;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.getMonth =
|
||||
goog.date.DateTime.prototype.getUTCMonth;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.getDate =
|
||||
goog.date.DateTime.prototype.getUTCDate;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.getHours =
|
||||
goog.date.DateTime.prototype.getUTCHours;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.getMinutes =
|
||||
goog.date.DateTime.prototype.getUTCMinutes;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.getSeconds =
|
||||
goog.date.DateTime.prototype.getUTCSeconds;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.getMilliseconds =
|
||||
goog.date.DateTime.prototype.getUTCMilliseconds;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.getDay = goog.date.DateTime.prototype.getUTCDay;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.setFullYear =
|
||||
goog.date.DateTime.prototype.setUTCFullYear;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.setMonth =
|
||||
goog.date.DateTime.prototype.setUTCMonth;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.setDate =
|
||||
goog.date.DateTime.prototype.setUTCDate;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.setHours =
|
||||
goog.date.DateTime.prototype.setUTCHours;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.setMinutes =
|
||||
goog.date.DateTime.prototype.setUTCMinutes;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.setSeconds =
|
||||
goog.date.DateTime.prototype.setUTCSeconds;
|
||||
|
||||
|
||||
/** @override */
|
||||
goog.date.UtcDateTime.prototype.setMilliseconds =
|
||||
goog.date.DateTime.prototype.setUTCMilliseconds;
|
||||
Loading…
Add table
Add a link
Reference in a new issue