|
|
@ -11391,7 +11391,7 @@ if (!_global.BI) { |
|
|
|
if (BI.isNotNull(BI.timeZone) && (arguments.length === 0 || (arguments.length === 1 && BI.isNumber(arguments[0])))) { |
|
|
|
if (BI.isNotNull(BI.timeZone) && (arguments.length === 0 || (arguments.length === 1 && BI.isNumber(arguments[0])))) { |
|
|
|
var localTime = dt.getTime(); |
|
|
|
var localTime = dt.getTime(); |
|
|
|
// BI-33791 1901年以前的东8区标准是GMT+0805, 统一无论是什么时间,都以整的0800这样的为基准
|
|
|
|
// BI-33791 1901年以前的东8区标准是GMT+0805, 统一无论是什么时间,都以整的0800这样的为基准
|
|
|
|
var localOffset = new Date().getTimezoneOffset() * 60000; // 获得当地时间偏移的毫秒数
|
|
|
|
var localOffset = dt.getTimezoneOffset() * 60000; // 获得当地时间偏移的毫秒数
|
|
|
|
var utc = localTime + localOffset; // utc即GMT时间标准时区
|
|
|
|
var utc = localTime + localOffset; // utc即GMT时间标准时区
|
|
|
|
return new Date(utc + BI.timeZone);// + Pool.timeZone.offset);
|
|
|
|
return new Date(utc + BI.timeZone);// + Pool.timeZone.offset);
|
|
|
|
} |
|
|
|
} |
|
|
@ -21696,7 +21696,7 @@ BI.prepares.push(function () { |
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
if (attachEvent) { |
|
|
|
if (attachEvent) { |
|
|
|
element.attachEvent("onresize", fn); |
|
|
|
element.attachEvent("onresize", fn); |
|
|
|
BI.defer(fn); |
|
|
|
BI.nextTick(fn); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (!element.__resizeTriggers__) { |
|
|
|
if (!element.__resizeTriggers__) { |
|
|
|
if (getComputedStyle(element).position === "static") element.style.position = "relative"; |
|
|
|
if (getComputedStyle(element).position === "static") element.style.position = "relative"; |
|
|
@ -34510,53 +34510,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI. |
|
|
|
var left = 0, right = 0, top = 0, bottom = 0; |
|
|
|
var left = 0, right = 0, top = 0, bottom = 0; |
|
|
|
if (BI.isNotNull(item.left)) { |
|
|
|
if (BI.isNotNull(item.left)) { |
|
|
|
w.element.css({ |
|
|
|
w.element.css({ |
|
|
|
"margin-left": item.left |
|
|
|
left: item.left |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isNotNull(item.right)) { |
|
|
|
if (BI.isNotNull(item.right)) { |
|
|
|
w.element.css({ |
|
|
|
w.element.css({ |
|
|
|
"margin-right": item.right |
|
|
|
right: item.right |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isNotNull(item.top)) { |
|
|
|
if (BI.isNotNull(item.top)) { |
|
|
|
w.element.css({ |
|
|
|
w.element.css({ |
|
|
|
"margin-top": item.top |
|
|
|
top: item.top |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isNotNull(item.bottom)) { |
|
|
|
if (BI.isNotNull(item.bottom)) { |
|
|
|
w.element.css({ |
|
|
|
w.element.css({ |
|
|
|
"margin-bottom": item.bottom |
|
|
|
bottom: item.bottom |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (BI.isNotNull(o.hgap)) { |
|
|
|
if (BI.isNotNull(o.hgap)) { |
|
|
|
left += o.hgap; |
|
|
|
left += o.hgap; |
|
|
|
w.element.css({left: left}); |
|
|
|
w.element.css({"margin-left": left}); |
|
|
|
right += o.hgap; |
|
|
|
right += o.hgap; |
|
|
|
w.element.css({right: right}); |
|
|
|
w.element.css({"margin-right": right}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isNotNull(o.vgap)) { |
|
|
|
if (BI.isNotNull(o.vgap)) { |
|
|
|
top += o.vgap; |
|
|
|
top += o.vgap; |
|
|
|
w.element.css({top: top}); |
|
|
|
w.element.css({"margin-top": top}); |
|
|
|
bottom += o.vgap; |
|
|
|
bottom += o.vgap; |
|
|
|
w.element.css({bottom: bottom}); |
|
|
|
w.element.css({"margin-bottom": bottom}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (BI.isNotNull(o.lgap)) { |
|
|
|
if (BI.isNotNull(o.lgap)) { |
|
|
|
left += o.lgap; |
|
|
|
left += o.lgap; |
|
|
|
w.element.css({left: left}); |
|
|
|
w.element.css({"margin-left": left}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isNotNull(o.rgap)) { |
|
|
|
if (BI.isNotNull(o.rgap)) { |
|
|
|
right += o.rgap; |
|
|
|
right += o.rgap; |
|
|
|
w.element.css({right: right}); |
|
|
|
w.element.css({"margin-right": right}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isNotNull(o.tgap)) { |
|
|
|
if (BI.isNotNull(o.tgap)) { |
|
|
|
top += o.tgap; |
|
|
|
top += o.tgap; |
|
|
|
w.element.css({top: top}); |
|
|
|
w.element.css({"margin-top": top}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isNotNull(o.bgap)) { |
|
|
|
if (BI.isNotNull(o.bgap)) { |
|
|
|
bottom += o.bgap; |
|
|
|
bottom += o.bgap; |
|
|
|
w.element.css({bottom: bottom}); |
|
|
|
w.element.css({"margin-bottom": bottom}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (BI.isNotNull(item.width)) { |
|
|
|
if (BI.isNotNull(item.width)) { |
|
|
@ -48463,7 +48463,7 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
if (keyCode == BI.KeyCode.BACKSPACE || keyCode == BI.KeyCode.DELETE) { |
|
|
|
if (keyCode == BI.KeyCode.BACKSPACE || keyCode == BI.KeyCode.DELETE) { |
|
|
|
this.fireEvent(BI.Input.EVENT_BACKSPACE); |
|
|
|
this.fireEvent(BI.Input.EVENT_BACKSPACE); |
|
|
|
} |
|
|
|
} |
|
|
|
this.fireEvent(BI.Input.EVENT_KEY_DOWN); |
|
|
|
this.fireEvent(BI.Input.EVENT_KEY_DOWN, arguments); |
|
|
|
|
|
|
|
|
|
|
|
// _valueChange中会更新_lastValue, 这边缓存用以后续STOP事件服务
|
|
|
|
// _valueChange中会更新_lastValue, 这边缓存用以后续STOP事件服务
|
|
|
|
var lastValue = this._lastValue; |
|
|
|
var lastValue = this._lastValue; |
|
|
@ -56859,6 +56859,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, { |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.editor = this; |
|
|
|
self.editor = this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
defaultText: o.text, |
|
|
|
text: this._digest(o.value, o.items), |
|
|
|
text: this._digest(o.value, o.items), |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
@ -58218,7 +58219,8 @@ BI.StateEditor = BI.inherit(BI.Widget, { |
|
|
|
watermark: "", |
|
|
|
watermark: "", |
|
|
|
errorText: "", |
|
|
|
errorText: "", |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|
text: BI.i18nText("BI-Basic_Unrestricted") |
|
|
|
defaultText: "", // 默认显示值,默认显示值与显示值的区别是默认显示值标记灰色
|
|
|
|
|
|
|
|
text: BI.i18nText("BI-Basic_Unrestricted") // 显示值
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -58445,20 +58447,21 @@ BI.StateEditor = BI.inherit(BI.Widget, { |
|
|
|
this.text.setText(BI.i18nText("BI-Select_Part")); |
|
|
|
this.text.setText(BI.i18nText("BI-Select_Part")); |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.text.setText(o.text); |
|
|
|
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text); |
|
|
|
this.text.element.addClass("bi-water-mark"); |
|
|
|
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark"); |
|
|
|
} |
|
|
|
} |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isString(v)) { |
|
|
|
if (BI.isString(v)) { |
|
|
|
this.text.setText(v); |
|
|
|
this.text.setText(v); |
|
|
|
v === o.text ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark"); |
|
|
|
// 配置了defaultText才判断标灰,其他情况不标灰
|
|
|
|
|
|
|
|
(BI.isKey(o.defaultText) && o.defaultText === v) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark"); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isArray(v)) { |
|
|
|
if (BI.isArray(v)) { |
|
|
|
if (BI.isEmpty(v)) { |
|
|
|
if (BI.isEmpty(v)) { |
|
|
|
this.text.setText(o.text); |
|
|
|
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text); |
|
|
|
this.text.element.addClass("bi-water-mark"); |
|
|
|
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark"); |
|
|
|
} else if (v.length === 1) { |
|
|
|
} else if (v.length === 1) { |
|
|
|
this.text.setText(v[0]); |
|
|
|
this.text.setText(v[0]); |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
@ -59661,8 +59664,8 @@ BI.ListLoader = BI.inherit(BI.Widget, { |
|
|
|
addItems: function (items) { |
|
|
|
addItems: function (items) { |
|
|
|
this.count += items.length; |
|
|
|
this.count += items.length; |
|
|
|
if (BI.isObject(this.next)) { |
|
|
|
if (BI.isObject(this.next)) { |
|
|
|
if (this.hasNext()) { |
|
|
|
|
|
|
|
this.options.items = this.options.items.concat(items); |
|
|
|
this.options.items = this.options.items.concat(items); |
|
|
|
|
|
|
|
if (this.hasNext()) { |
|
|
|
this.next.setLoaded(); |
|
|
|
this.next.setLoaded(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.next.setEnd(); |
|
|
|
this.next.setEnd(); |
|
|
@ -64692,6 +64695,7 @@ BI.extend(BI.DynamicDateCard, { |
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
self.combo.hideView(); |
|
|
|
self.combo.hideView(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
self.fireEvent(BI.DynamicDateCombo.EVENT_KEY_DOWN, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: BI.DynamicDateTrigger.EVENT_STOP, |
|
|
|
eventName: BI.DynamicDateTrigger.EVENT_STOP, |
|
|
@ -64910,6 +64914,7 @@ BI.extend(BI.DynamicDateCard, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.DynamicDateCombo.EVENT_KEY_DOWN = "EVENT_KEY_DOWN"; |
|
|
|
BI.DynamicDateCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.DynamicDateCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.DynamicDateCombo.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
BI.DynamicDateCombo.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
BI.DynamicDateCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.DynamicDateCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
@ -65310,7 +65315,7 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger |
|
|
|
title: BI.bind(this._getTitle, this) |
|
|
|
title: BI.bind(this._getTitle, this) |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.editor.on(BI.SignEditor.EVENT_KEY_DOWN, function () { |
|
|
|
this.editor.on(BI.SignEditor.EVENT_KEY_DOWN, function () { |
|
|
|
self.fireEvent(BI.DynamicDateTrigger.EVENT_KEY_DOWN); |
|
|
|
self.fireEvent(BI.DynamicDateTrigger.EVENT_KEY_DOWN, arguments); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.editor.on(BI.SignEditor.EVENT_FOCUS, function () { |
|
|
|
this.editor.on(BI.SignEditor.EVENT_FOCUS, function () { |
|
|
|
self.storeTriggerValue = self.getKey(); |
|
|
|
self.storeTriggerValue = self.getKey(); |
|
|
@ -65658,6 +65663,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, { |
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
self.combo.hideView(); |
|
|
|
self.combo.hideView(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_KEY_DOWN, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: BI.DynamicDateTimeTrigger.EVENT_STOP, |
|
|
|
eventName: BI.DynamicDateTimeTrigger.EVENT_STOP, |
|
|
@ -65879,6 +65885,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.DynamicDateTimeCombo.EVENT_KEY_DOWN = "EVENT_KEY_DOWN"; |
|
|
|
BI.DynamicDateTimeCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.DynamicDateTimeCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.DynamicDateTimeCombo.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
BI.DynamicDateTimeCombo.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
BI.DynamicDateTimeCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.DynamicDateTimeCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
@ -66386,7 +66393,7 @@ BI.extend(BI.DynamicDateTimeSelect, { |
|
|
|
title: BI.bind(this._getTitle, this) |
|
|
|
title: BI.bind(this._getTitle, this) |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.editor.on(BI.SignEditor.EVENT_KEY_DOWN, function () { |
|
|
|
this.editor.on(BI.SignEditor.EVENT_KEY_DOWN, function () { |
|
|
|
self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_KEY_DOWN); |
|
|
|
self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_KEY_DOWN, arguments); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.editor.on(BI.SignEditor.EVENT_FOCUS, function () { |
|
|
|
this.editor.on(BI.SignEditor.EVENT_FOCUS, function () { |
|
|
|
self.storeTriggerValue = self.getKey(); |
|
|
|
self.storeTriggerValue = self.getKey(); |
|
|
@ -68902,7 +68909,9 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; |
|
|
|
return BI.isArray(this.storeValue) ? |
|
|
|
|
|
|
|
this.storeValue : BI.isNull(this.storeValue) ? |
|
|
|
|
|
|
|
[] : [this.storeValue]; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getAllLeaves: function () { |
|
|
|
getAllLeaves: function () { |
|
|
@ -69018,10 +69027,12 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.editor = this; |
|
|
|
self.editor = this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
defaultText: o.text, |
|
|
|
text: this._digest(o.value), |
|
|
|
text: this._digest(o.value), |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
tipText: "", |
|
|
|
tipText: "", |
|
|
|
|
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
listeners: [{ |
|
|
|
listeners: [{ |
|
|
|
eventName: BI.StateEditor.EVENT_FOCUS, |
|
|
|
eventName: BI.StateEditor.EVENT_FOCUS, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
@ -69098,7 +69109,8 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_digest: function (v) { |
|
|
|
_digest: function (v) { |
|
|
|
return this.options.valueFormatter(v); |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
return o.valueFormatter(v) || o.text; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
stopEditing: function () { |
|
|
|
stopEditing: function () { |
|
|
@ -69875,7 +69887,9 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; |
|
|
|
return BI.isArray(this.storeValue) ? |
|
|
|
|
|
|
|
this.storeValue : BI.isNull(this.storeValue) ? |
|
|
|
|
|
|
|
[] : [this.storeValue]; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getAllLeaves: function () { |
|
|
|
getAllLeaves: function () { |
|
|
@ -69991,10 +70005,12 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.editor = this; |
|
|
|
self.editor = this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
defaultText: o.text, |
|
|
|
text: this._digest(o.value), |
|
|
|
text: this._digest(o.value), |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
tipText: "", |
|
|
|
tipText: "", |
|
|
|
|
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
listeners: [{ |
|
|
|
listeners: [{ |
|
|
|
eventName: BI.StateEditor.EVENT_FOCUS, |
|
|
|
eventName: BI.StateEditor.EVENT_FOCUS, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
@ -70071,7 +70087,8 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_digest: function (v) { |
|
|
|
_digest: function (v) { |
|
|
|
return this.options.valueFormatter(v); |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
return o.valueFormatter(v) || o.text; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
stopEditing: function () { |
|
|
|
stopEditing: function () { |
|
|
@ -73559,6 +73576,7 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, { |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: true, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
|
|
|
|
defaultText: o.text, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
tipType: o.tipType, |
|
|
|
tipType: o.tipType, |
|
|
|
warningTitle: o.warningTitle, |
|
|
|
warningTitle: o.warningTitle, |
|
|
@ -75875,7 +75893,7 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
self.trigger.getSearcher().setState(val); |
|
|
|
self.trigger.getSearcher().setState(val); |
|
|
|
self.trigger.getCounter().setButtonChecked(val); |
|
|
|
self.trigger.getCounter().setButtonChecked(val); |
|
|
|
self.fireEvent(BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM); |
|
|
|
self.fireEvent(BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM, self.combo.getValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: BI.MultiTreePopup.EVENT_CLICK_CONFIRM, |
|
|
|
eventName: BI.MultiTreePopup.EVENT_CLICK_CONFIRM, |
|
|
@ -75976,7 +75994,7 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None); |
|
|
|
this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None); |
|
|
|
this.getCounter().setButtonChecked(val); |
|
|
|
this.getCounter().setButtonChecked(val); |
|
|
|
self.fireEvent(BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM); |
|
|
|
self.fireEvent(BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM, self.combo.getValue()); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
@ -76191,7 +76209,7 @@ BI.MultiTreeListCombo = BI.inherit(BI.Single, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
self.trigger.getSearcher().setState(val); |
|
|
|
self.trigger.getSearcher().setState(val); |
|
|
|
self.trigger.getCounter().setButtonChecked(val); |
|
|
|
self.trigger.getCounter().setButtonChecked(val); |
|
|
|
self.fireEvent(BI.MultiTreeListCombo.EVENT_CLICK_ITEM); |
|
|
|
self.fireEvent(BI.MultiTreeListCombo.EVENT_CLICK_ITEM, self.combo.getValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: BI.MultiTreePopup.EVENT_CLICK_CONFIRM, |
|
|
|
eventName: BI.MultiTreePopup.EVENT_CLICK_CONFIRM, |
|
|
@ -76292,7 +76310,7 @@ BI.MultiTreeListCombo = BI.inherit(BI.Single, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None); |
|
|
|
this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None); |
|
|
|
this.getCounter().setButtonChecked(val); |
|
|
|
this.getCounter().setButtonChecked(val); |
|
|
|
self.fireEvent(BI.MultiTreeListCombo.EVENT_CLICK_ITEM); |
|
|
|
self.fireEvent(BI.MultiTreeListCombo.EVENT_CLICK_ITEM, self.combo.getValue()); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
@ -81589,7 +81607,8 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SingleSelectEditor.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SingleSelectEditor.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-single-select-editor", |
|
|
|
baseCls: "bi-single-select-editor", |
|
|
|
el: {} |
|
|
|
el: {}, |
|
|
|
|
|
|
|
text: BI.i18nText("BI-Basic_Please_Select") |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -81603,7 +81622,8 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, { |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: true, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
text: o.text |
|
|
|
defaultText: o.text, |
|
|
|
|
|
|
|
text: o.text, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.editor.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
this.editor.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
@ -82214,7 +82234,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, { |
|
|
|
v = o.digit === false ? v : v.toFixed(o.digit); |
|
|
|
v = o.digit === false ? v : v.toFixed(o.digit); |
|
|
|
self.label.setValue(v); |
|
|
|
self.label.setValue(v); |
|
|
|
self.value = v; |
|
|
|
self.value = v; |
|
|
|
self.fireEvent(BI.SingleSlider.EVENT_CHANGE); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, function () { |
|
|
|
}, function () { |
|
|
|
if (startDrag === true) { |
|
|
|
if (startDrag === true) { |
|
|
@ -83358,6 +83377,7 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () { |
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
self.combo.hideView(); |
|
|
|
self.combo.hideView(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
self.fireEvent(BI.TimeCombo.EVENT_KEY_DOWN, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: "EVENT_STOP", |
|
|
|
eventName: "EVENT_STOP", |
|
|
@ -83491,6 +83511,7 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.TimeCombo.EVENT_KEY_DOWN = "EVENT_KEY_DOWN"; |
|
|
|
BI.TimeCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.TimeCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.TimeCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TimeCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TimeCombo.EVENT_VALID = "EVENT_VALID"; |
|
|
|
BI.TimeCombo.EVENT_VALID = "EVENT_VALID"; |
|
|
@ -83555,7 +83576,7 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () { |
|
|
|
listeners: [{ |
|
|
|
listeners: [{ |
|
|
|
eventName: "EVENT_KEY_DOWN", |
|
|
|
eventName: "EVENT_KEY_DOWN", |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
self.fireEvent("EVENT_KEY_DOWN"); |
|
|
|
self.fireEvent("EVENT_KEY_DOWN", arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: "EVENT_FOCUS", |
|
|
|
eventName: "EVENT_FOCUS", |
|
|
@ -88601,7 +88622,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
var old = BI.Widget.prototype[name]; |
|
|
|
var old = BI.Widget.prototype[name]; |
|
|
|
old && (BI.Widget.prototype[name] = function () { |
|
|
|
old && (BI.Widget.prototype[name] = function () { |
|
|
|
this.store && pushTarget(this.store); |
|
|
|
this.store && pushTarget(this.store); |
|
|
|
|
|
|
|
try { |
|
|
|
var res = old.apply(this, arguments); |
|
|
|
var res = old.apply(this, arguments); |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
console.error(e); |
|
|
|
|
|
|
|
} |
|
|
|
this.store && popTarget(); |
|
|
|
this.store && popTarget(); |
|
|
|
return res; |
|
|
|
return res; |
|
|
|
}); |
|
|
|
}); |
|
|
@ -88728,7 +88753,8 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
BI.watch = Fix.watch; |
|
|
|
BI.watch = Fix.watch; |
|
|
|
}());(function () { |
|
|
|
}()); |
|
|
|
|
|
|
|
(function () { |
|
|
|
var Events = { |
|
|
|
var Events = { |
|
|
|
|
|
|
|
|
|
|
|
// Bind an event to a `callback` function. Passing `"all"` will bind
|
|
|
|
// Bind an event to a `callback` function. Passing `"all"` will bind
|
|
|
@ -89315,7 +89341,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
}());BI.i18n = { |
|
|
|
}());BI.i18n = { |
|
|
|
"BI-Multi_Date_Quarter_End": "季度末", |
|
|
|
"BI-Multi_Date_Quarter_End": "季度末", |
|
|
|
"BI-Multi_Date_Month_Begin": "月初", |
|
|
|
"BI-Multi_Date_Month_Begin": "月初", |
|
|
|
"BI-Multi_Date_YMD": "年/月/日", |
|
|
|
"BI-Multi_Date_YMD": "年月日", |
|
|
|
"BI-Custom_Color": "自定义颜色", |
|
|
|
"BI-Custom_Color": "自定义颜色", |
|
|
|
"BI-Numerical_Interval_Input_Data": "请输入数值", |
|
|
|
"BI-Numerical_Interval_Input_Data": "请输入数值", |
|
|
|
"BI-Please_Input_Natural_Number": "请输入非负整数", |
|
|
|
"BI-Please_Input_Natural_Number": "请输入非负整数", |
|
|
|