|
|
@ -18198,6 +18198,21 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) { |
|
|
|
return baseRandom(lower, upper); |
|
|
|
return baseRandom(lower, upper); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Converts lists into objects. Pass either a single array of `[key, value]`
|
|
|
|
|
|
|
|
// pairs, or two parallel arrays of the same length -- one of keys, and one of
|
|
|
|
|
|
|
|
// the corresponding values.
|
|
|
|
|
|
|
|
function object (list, values) { |
|
|
|
|
|
|
|
var result = {}; |
|
|
|
|
|
|
|
for (var i = 0, length = list && list.length; i < length; i++) { |
|
|
|
|
|
|
|
if (values) { |
|
|
|
|
|
|
|
result[list[i]] = values[i]; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
result[list[i][0]] = list[i][1]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*------------------------------------------------------------------------*/ |
|
|
|
/*------------------------------------------------------------------------*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -18745,6 +18760,7 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) { |
|
|
|
lodash.size = size; |
|
|
|
lodash.size = size; |
|
|
|
lodash.some = some; |
|
|
|
lodash.some = some; |
|
|
|
lodash.uniqueId = uniqueId; |
|
|
|
lodash.uniqueId = uniqueId; |
|
|
|
|
|
|
|
lodash.object = object; |
|
|
|
|
|
|
|
|
|
|
|
// Add aliases.
|
|
|
|
// Add aliases.
|
|
|
|
lodash.each = forEach; |
|
|
|
lodash.each = forEach; |
|
|
@ -25732,9 +25748,9 @@ BI.PopoverSection.EVENT_CLOSE = "EVENT_CLOSE";(function () { |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "d": // 日
|
|
|
|
case "d": // 日
|
|
|
|
if (len > 1) { |
|
|
|
if (len > 1) { |
|
|
|
str = BI.leftPad(BI.getDate() + "", 2, "0"); |
|
|
|
str = BI.leftPad(date.getDate() + "", 2, "0"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
str = BI.getDate(); |
|
|
|
str = date.getDate(); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "h": // 时(12)
|
|
|
|
case "h": // 时(12)
|
|
|
@ -28967,7 +28983,7 @@ Date.prototype.getWeekEndDate = function () { |
|
|
|
Date.prototype.equalsTo = function (date) { |
|
|
|
Date.prototype.equalsTo = function (date) { |
|
|
|
return ((this.getFullYear() == date.getFullYear()) && |
|
|
|
return ((this.getFullYear() == date.getFullYear()) && |
|
|
|
(this.getMonth() == date.getMonth()) && |
|
|
|
(this.getMonth() == date.getMonth()) && |
|
|
|
(this.getDate() == BI.getDate()) && |
|
|
|
(this.getDate() == date.getDate()) && |
|
|
|
(this.getHours() == date.getHours()) && |
|
|
|
(this.getHours() == date.getHours()) && |
|
|
|
(this.getMinutes() == date.getMinutes()) && |
|
|
|
(this.getMinutes() == date.getMinutes()) && |
|
|
|
(this.getSeconds() == date.getSeconds())); |
|
|
|
(this.getSeconds() == date.getSeconds())); |
|
|
@ -85688,12 +85704,12 @@ BI.shortcut("bi.date_combo", BI.DateCombo);BI.DateTrigger = BI.inherit(BI.Trigge |
|
|
|
switch (type) { |
|
|
|
switch (type) { |
|
|
|
case BI.DateTrigger.MULTI_DATE_YEAR_PREV: |
|
|
|
case BI.DateTrigger.MULTI_DATE_YEAR_PREV: |
|
|
|
var text = value + BI.DateTrigger.MULTI_DATE_SEGMENT_NUM[BI.DateTrigger.MULTI_DATE_YEAR_PREV]; |
|
|
|
var text = value + BI.DateTrigger.MULTI_DATE_SEGMENT_NUM[BI.DateTrigger.MULTI_DATE_YEAR_PREV]; |
|
|
|
date = BI.getDate((date.getFullYear() - 1 * value), date.getMonth(), BI.getDate()); |
|
|
|
date = BI.getDate((date.getFullYear() - 1 * value), date.getMonth(), date.getDate()); |
|
|
|
_setInnerValue(date, text); |
|
|
|
_setInnerValue(date, text); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case BI.DateTrigger.MULTI_DATE_YEAR_AFTER: |
|
|
|
case BI.DateTrigger.MULTI_DATE_YEAR_AFTER: |
|
|
|
var text = value + BI.DateTrigger.MULTI_DATE_SEGMENT_NUM[BI.DateTrigger.MULTI_DATE_YEAR_AFTER]; |
|
|
|
var text = value + BI.DateTrigger.MULTI_DATE_SEGMENT_NUM[BI.DateTrigger.MULTI_DATE_YEAR_AFTER]; |
|
|
|
date = BI.getDate((date.getFullYear() + 1 * value), date.getMonth(), BI.getDate()); |
|
|
|
date = BI.getDate((date.getFullYear() + 1 * value), date.getMonth(), date.getDate()); |
|
|
|
_setInnerValue(date, text); |
|
|
|
_setInnerValue(date, text); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case BI.DateTrigger.MULTI_DATE_YEAR_BEGIN: |
|
|
|
case BI.DateTrigger.MULTI_DATE_YEAR_BEGIN: |
|
|
@ -86000,7 +86016,7 @@ BI.DateTimeCombo = BI.inherit(BI.Single, { |
|
|
|
this.storeValue = BI.isNotNull(opts.value) ? opts.value : { |
|
|
|
this.storeValue = BI.isNotNull(opts.value) ? opts.value : { |
|
|
|
year: date.getFullYear(), |
|
|
|
year: date.getFullYear(), |
|
|
|
month: date.getMonth(), |
|
|
|
month: date.getMonth(), |
|
|
|
day: BI.getDate(), |
|
|
|
day: date.getDate(), |
|
|
|
hour: date.getHours(), |
|
|
|
hour: date.getHours(), |
|
|
|
minute: date.getMinutes(), |
|
|
|
minute: date.getMinutes(), |
|
|
|
second: date.getSeconds() |
|
|
|
second: date.getSeconds() |
|
|
@ -86243,7 +86259,7 @@ BI.DateTimePopup = BI.inherit(BI.Widget, { |
|
|
|
this.dateCombo.setValue({ |
|
|
|
this.dateCombo.setValue({ |
|
|
|
year: date.getFullYear(), |
|
|
|
year: date.getFullYear(), |
|
|
|
month: date.getMonth(), |
|
|
|
month: date.getMonth(), |
|
|
|
day: BI.getDate() |
|
|
|
day: date.getDate() |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.hour.setValue(date.getHours()); |
|
|
|
this.hour.setValue(date.getHours()); |
|
|
|
this.minute.setValue(date.getMinutes()); |
|
|
|
this.minute.setValue(date.getMinutes()); |
|
|
@ -89387,7 +89403,7 @@ BI.MultiDateCombo = BI.inherit(BI.Single, { |
|
|
|
self.setValue({ |
|
|
|
self.setValue({ |
|
|
|
year: date.getFullYear(), |
|
|
|
year: date.getFullYear(), |
|
|
|
month: date.getMonth(), |
|
|
|
month: date.getMonth(), |
|
|
|
day: BI.getDate() |
|
|
|
day: date.getDate() |
|
|
|
}); |
|
|
|
}); |
|
|
|
self.combo.hideView(); |
|
|
|
self.combo.hideView(); |
|
|
|
self.fireEvent(BI.MultiDateCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.MultiDateCombo.EVENT_CONFIRM); |
|
|
@ -89827,7 +89843,7 @@ BI.MultiDatePopup = BI.inherit(BI.Widget, { |
|
|
|
self.ymd.setValue({ |
|
|
|
self.ymd.setValue({ |
|
|
|
year: date.getFullYear(), |
|
|
|
year: date.getFullYear(), |
|
|
|
month: date.getMonth(), |
|
|
|
month: date.getMonth(), |
|
|
|
day: BI.getDate() |
|
|
|
day: date.getDate() |
|
|
|
}); |
|
|
|
}); |
|
|
|
self._setInnerValue(self.ymd); |
|
|
|
self._setInnerValue(self.ymd); |
|
|
|
break; |
|
|
|
break; |
|
|
@ -89947,7 +89963,7 @@ BI.MultiDatePopup = BI.inherit(BI.Widget, { |
|
|
|
this.ymd.setValue({ |
|
|
|
this.ymd.setValue({ |
|
|
|
year: date.getFullYear(), |
|
|
|
year: date.getFullYear(), |
|
|
|
month: date.getMonth(), |
|
|
|
month: date.getMonth(), |
|
|
|
day: BI.getDate() |
|
|
|
day: date.getDate() |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today")); |
|
|
|
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today")); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|