|
|
|
@ -32554,7 +32554,10 @@ BI.$.extend(BI.$.Event.prototype, {
|
|
|
|
|
|
|
|
|
|
textLeft = textLeft.substr(tidx + keyword.length); |
|
|
|
|
if (py != null) { |
|
|
|
|
py = py.substr(tidx + keyword.length); |
|
|
|
|
// 每一组拼音都应该前进,而不是只是当前的
|
|
|
|
|
py = BI.map(py.split("\u200b"), function (idx, ps) { |
|
|
|
|
return ps.slice(tidx + keyword.length); |
|
|
|
|
}).join("\u200b"); |
|
|
|
|
} |
|
|
|
|
} else if (pidx != null && pidx >= 0) { |
|
|
|
|
// BI-56386 这边两个pid / text.length是为了防止截取的首字符串不是完整的,但光这样做还不够,即时错位了,也不能说明就不符合条件
|
|
|
|
@ -64903,6 +64906,7 @@ BI.extend(BI.DynamicDateCard, {
|
|
|
|
|
toggle: false, |
|
|
|
|
isNeedAdjustHeight: false, |
|
|
|
|
isNeedAdjustWidth: false, |
|
|
|
|
destroyWhenHide: true, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.dynamic_date_trigger", |
|
|
|
|
min: opts.minDate, |
|
|
|
@ -65047,9 +65051,9 @@ BI.extend(BI.DynamicDateCard, {
|
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW, |
|
|
|
|
action: function () { |
|
|
|
|
self.popup.setValue(self.storeValue); |
|
|
|
|
self.popup.setMinDate(opts.minDate); |
|
|
|
|
self.popup.setMaxDate(opts.maxDate); |
|
|
|
|
self.popup.setValue(self.storeValue); |
|
|
|
|
self.fireEvent(BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
@ -65463,16 +65467,16 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
setMinDate: function (minDate) { |
|
|
|
|
if (this.options.min !== minDate) { |
|
|
|
|
this.options.min = minDate; |
|
|
|
|
this.ymd.setMinDate(minDate); |
|
|
|
|
} |
|
|
|
|
this.options.min = minDate; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setMaxDate: function (maxDate) { |
|
|
|
|
if (this.options.max !== maxDate) { |
|
|
|
|
this.options.max = maxDate; |
|
|
|
|
this.ymd.setMaxDate(maxDate); |
|
|
|
|
} |
|
|
|
|
this.options.max = maxDate; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
@ -65911,6 +65915,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.combo", |
|
|
|
|
destroyWhenHide: true, |
|
|
|
|
container: opts.container, |
|
|
|
|
ref: function () { |
|
|
|
|
self.combo = this; |
|
|
|
@ -66067,6 +66072,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW, |
|
|
|
|
action: function () { |
|
|
|
|
self.popup.setValue(self.storeValue); |
|
|
|
|
self.popup.setMinDate(opts.minDate); |
|
|
|
|
self.popup.setMaxDate(opts.maxDate); |
|
|
|
|
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
|
} |
|
|
|
|
}], |
|
|
|
@ -66373,16 +66380,16 @@ BI.extend(BI.DynamicDateTimeCombo, {
|
|
|
|
|
|
|
|
|
|
setMinDate: function (minDate) { |
|
|
|
|
if (this.options.min !== minDate) { |
|
|
|
|
this.options.min = minDate; |
|
|
|
|
this.ymd.setMinDate(minDate); |
|
|
|
|
} |
|
|
|
|
this.options.min = minDate; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setMaxDate: function (maxDate) { |
|
|
|
|
if (this.options.max !== maxDate) { |
|
|
|
|
this.options.max = maxDate; |
|
|
|
|
this.ymd.setMaxDate(maxDate); |
|
|
|
|
} |
|
|
|
|
this.options.max = maxDate; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
@ -67777,11 +67784,15 @@ BI.IntervalSlider = BI.inherit(BI.Single, {
|
|
|
|
|
valueTwo = BI.parseFloat(valueTwo); |
|
|
|
|
if((oldValueOne <= oldValueTwo && valueOne > valueTwo) || (oldValueOne >= oldValueTwo && valueOne < valueTwo)) { |
|
|
|
|
var isSliderOneLeft = BI.parseFloat(this.sliderOne.element[0].style.left) < BI.parseFloat(this.sliderTwo.element[0].style.left); |
|
|
|
|
this.labelOne.element.css({left: isSliderOneLeft ? "0%" : "100%"}); |
|
|
|
|
this.labelTwo.element.css({left: isSliderOneLeft ? "100%" : "0%"}); |
|
|
|
|
this._resetLabelPosition(!isSliderOneLeft); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_resetLabelPosition: function(needReverse) { |
|
|
|
|
this.labelOne.element.css({left: needReverse ? "100%" : "0%"}); |
|
|
|
|
this.labelTwo.element.css({left: needReverse ? "0%" : "100%"}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_setSliderOnePosition: function (percent) { |
|
|
|
|
this.sliderOne.element.css({left: percent + "%"}); |
|
|
|
|
}, |
|
|
|
@ -67924,8 +67935,8 @@ BI.IntervalSlider = BI.inherit(BI.Single, {
|
|
|
|
|
var o = this.options; |
|
|
|
|
var valueOne = BI.parseFloat(v.min); |
|
|
|
|
var valueTwo = BI.parseFloat(v.max); |
|
|
|
|
valueOne = o.digit === false ? valueOne : valueOne.toFixed(o.digit); |
|
|
|
|
valueTwo = o.digit === false ? valueTwo : valueTwo.toFixed(o.digit); |
|
|
|
|
valueOne = o.digit === false ? valueOne : BI.parseFloat(valueOne.toFixed(o.digit)); |
|
|
|
|
valueTwo = o.digit === false ? valueTwo : BI.parseFloat(valueTwo.toFixed(o.digit)); |
|
|
|
|
if (!isNaN(valueOne) && !isNaN(valueTwo)) { |
|
|
|
|
if (this._checkValidation(valueOne)) { |
|
|
|
|
this.valueOne = (this.valueOne <= this.valueTwo ? valueOne : valueTwo); |
|
|
|
@ -67966,6 +67977,7 @@ BI.IntervalSlider = BI.inherit(BI.Single, {
|
|
|
|
|
this.labelTwo.setValue(this.max); |
|
|
|
|
this._setAllPosition(0, 100); |
|
|
|
|
} |
|
|
|
|
this._resetLabelPosition(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -71607,7 +71619,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.combo", |
|
|
|
|
toggle: false, |
|
|
|
|
toggle: !o.allowEdit, |
|
|
|
|
container: o.container, |
|
|
|
|
el: this.trigger, |
|
|
|
|
adjustLength: 1, |
|
|
|
@ -72042,7 +72054,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.combo", |
|
|
|
|
toggle: false, |
|
|
|
|
toggle: !o.allowEdit, |
|
|
|
|
el: this.trigger, |
|
|
|
|
adjustLength: 1, |
|
|
|
|
container: o.container, |
|
|
|
@ -74442,6 +74454,7 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.multi_select_editor", |
|
|
|
|
height: o.height, |
|
|
|
|
text: o.text, |
|
|
|
|
watermark: o.watermark, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.MultiSelectEditor.EVENT_FOCUS, |
|
|
|
|
action: function () { |
|
|
|
@ -76084,7 +76097,8 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
baseCls: "bi-multi-tree-combo", |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
|
height: 24 |
|
|
|
|
height: 24, |
|
|
|
|
allowEdit: true |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -76100,6 +76114,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.multi_select_trigger", |
|
|
|
|
allowEdit: o.allowEdit, |
|
|
|
|
height: o.height, |
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
text: o.text, |
|
|
|
@ -76117,7 +76132,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.combo", |
|
|
|
|
toggle: false, |
|
|
|
|
toggle: !o.allowEdit, |
|
|
|
|
container: o.container, |
|
|
|
|
el: this.trigger, |
|
|
|
|
adjustLength: 1, |
|
|
|
@ -76468,7 +76483,7 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.combo", |
|
|
|
|
toggle: false, |
|
|
|
|
toggle: !o.allowEdit, |
|
|
|
|
container: o.container, |
|
|
|
|
el: this.trigger, |
|
|
|
|
adjustLength: 1, |
|
|
|
@ -76835,7 +76850,7 @@ BI.MultiTreeListCombo = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.combo", |
|
|
|
|
toggle: false, |
|
|
|
|
toggle: !o.allowEdit, |
|
|
|
|
container: o.container, |
|
|
|
|
el: this.trigger, |
|
|
|
|
adjustLength: 1, |
|
|
|
@ -77508,6 +77523,8 @@ BI.MultiListTreeSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
this.editor = BI.createWidget({ |
|
|
|
|
type: "bi.multi_select_editor", |
|
|
|
|
height: o.height, |
|
|
|
|
text: o.text, |
|
|
|
|
watermark: o.watermark, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.simple_state_editor", |
|
|
|
|
height: o.height |
|
|
|
@ -84431,10 +84448,10 @@ BI.DateInterval = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
combo.on(BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
self.left.hidePopupView(); |
|
|
|
|
self.right.hidePopupView(); |
|
|
|
|
}); |
|
|
|
|
// combo.on(BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW, function () {
|
|
|
|
|
// self.left.hidePopupView();
|
|
|
|
|
// self.right.hidePopupView();
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
combo.on(BI.DynamicDateCombo.EVENT_CONFIRM, function () { |
|
|
|
|
BI.Bubbles.hide("error"); |
|
|
|
@ -84611,10 +84628,11 @@ BI.TimeInterval = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
combo.on(BI.DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
self.left.hidePopupView(); |
|
|
|
|
self.right.hidePopupView(); |
|
|
|
|
}); |
|
|
|
|
// 不知道干啥的,先注释掉
|
|
|
|
|
// combo.on(BI.DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW, function () {
|
|
|
|
|
// self.left.hidePopupView();
|
|
|
|
|
// self.right.hidePopupView();
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
combo.on(BI.DynamicDateTimeCombo.EVENT_CONFIRM, function () { |
|
|
|
|
BI.Bubbles.hide("error"); |
|
|
|
@ -85749,18 +85767,18 @@ BI.shortcut("bi.dynamic_year_month_card", BI.DynamicYearMonthCard);BI.StaticYear
|
|
|
|
|
|
|
|
|
|
setMinDate: function (minDate) { |
|
|
|
|
if (this.options.min !== minDate) { |
|
|
|
|
this.options.min = minDate; |
|
|
|
|
this.yearPicker.setMinDate(minDate); |
|
|
|
|
this._checkMonthStatus(this.selectedYear); |
|
|
|
|
} |
|
|
|
|
this.options.min = minDate; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setMaxDate: function (maxDate) { |
|
|
|
|
if (this.options.max !== maxDate) { |
|
|
|
|
this.options.max = maxDate; |
|
|
|
|
this.yearPicker.setMaxDate(maxDate); |
|
|
|
|
this._checkMonthStatus(this.selectedYear); |
|
|
|
|
} |
|
|
|
|
this.options.max = maxDate; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
@ -86152,16 +86170,16 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
setMinDate: function (minDate) { |
|
|
|
|
if (this.options.min !== minDate) { |
|
|
|
|
this.options.min = minDate; |
|
|
|
|
this.year.setMinDate(minDate); |
|
|
|
|
} |
|
|
|
|
this.options.min = minDate; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setMaxDate: function (maxDate) { |
|
|
|
|
if (this.options.max !== maxDate) { |
|
|
|
|
this.options.max = maxDate; |
|
|
|
|
this.year.setMaxDate(maxDate); |
|
|
|
|
} |
|
|
|
|
this.options.max = maxDate; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
@ -88886,6 +88904,7 @@ BI.TreeValueChooserInsertCombo = BI.inherit(BI.AbstractTreeValueChooser, {
|
|
|
|
|
} |
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.multi_tree_insert_combo", |
|
|
|
|
allowEdit: o.allowEdit, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
watermark: o.watermark, |
|
|
|
@ -88976,6 +88995,7 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, {
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.multi_tree_combo", |
|
|
|
|
text: o.text, |
|
|
|
|
allowEdit: o.allowEdit, |
|
|
|
|
value: o.value, |
|
|
|
|
watermark: o.watermark, |
|
|
|
|
element: this, |
|
|
|
@ -89206,6 +89226,7 @@ BI.ValueChooserInsertCombo = BI.inherit(BI.AbstractValueChooser, {
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.multi_select_insert_combo", |
|
|
|
|
element: this, |
|
|
|
|
allowEdit: o.allowEdit, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
@ -89301,6 +89322,7 @@ BI.ValueChooserCombo = BI.inherit(BI.AbstractValueChooser, {
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.multi_select_combo", |
|
|
|
|
element: this, |
|
|
|
|
allowEdit: o.allowEdit, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
|