|
|
@ -28561,311 +28561,7 @@ BI.ButtonTree = BI.inherit(BI.ButtonGroup, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.ButtonTree.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.ButtonTree.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.button_tree", BI.ButtonTree);/** |
|
|
|
BI.shortcut("bi.button_tree", BI.ButtonTree);BI.prepares.push(function () { |
|
|
|
* Created by windy on 2018/01/23. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
describe("ALinkTest", function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("A初始化测试", function () { |
|
|
|
|
|
|
|
var a = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.a", |
|
|
|
|
|
|
|
text: "CCC" |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
expect(a.element.is('a')).to.equal(true); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("A的el测试", function () { |
|
|
|
|
|
|
|
var a = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.a", |
|
|
|
|
|
|
|
text: "DDD", |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.label" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
expect(a.element.is('a') && a.element.hasClass("bi-label")).to.equal(true); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Created by windy on 2018/01/23. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
describe("ButtonTest", function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("Click点击触发事件", function (done) { |
|
|
|
|
|
|
|
var button = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.button", |
|
|
|
|
|
|
|
text: "CCC", |
|
|
|
|
|
|
|
handler: function () { |
|
|
|
|
|
|
|
this.setText("click"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
|
|
|
button.element.click(); |
|
|
|
|
|
|
|
expect(button.element.children(".bi-text").text()).to.equal("click"); |
|
|
|
|
|
|
|
button.destroy(); |
|
|
|
|
|
|
|
done(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("MouseDown触发事件", function (done) { |
|
|
|
|
|
|
|
var button = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.button", |
|
|
|
|
|
|
|
text: "CCC", |
|
|
|
|
|
|
|
trigger: "mousedown", |
|
|
|
|
|
|
|
handler: function () { |
|
|
|
|
|
|
|
this.setText("click"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
|
|
|
button.element.mousedown(); |
|
|
|
|
|
|
|
expect(button.element.children(".bi-text").text()).to.equal("click"); |
|
|
|
|
|
|
|
button.destroy(); |
|
|
|
|
|
|
|
done(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("MouseUp触发事件", function (done) { |
|
|
|
|
|
|
|
var button = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.button", |
|
|
|
|
|
|
|
text: "CCC", |
|
|
|
|
|
|
|
trigger: "mouseup", |
|
|
|
|
|
|
|
handler: function () { |
|
|
|
|
|
|
|
this.setText("click"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
|
|
|
button.element.mousedown(); |
|
|
|
|
|
|
|
button.element.mouseup(); |
|
|
|
|
|
|
|
expect(button.element.children(".bi-text").text()).to.equal("click"); |
|
|
|
|
|
|
|
button.destroy(); |
|
|
|
|
|
|
|
done(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("doubleClick触发事件", function (done) { |
|
|
|
|
|
|
|
var button = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.button", |
|
|
|
|
|
|
|
text: "CCC", |
|
|
|
|
|
|
|
trigger: "dblclick", |
|
|
|
|
|
|
|
handler: function () { |
|
|
|
|
|
|
|
this.setText("click"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
|
|
|
button.element.dblclick(); |
|
|
|
|
|
|
|
expect(button.element.children(".bi-text").text()).to.equal("click"); |
|
|
|
|
|
|
|
button.destroy(); |
|
|
|
|
|
|
|
done(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("LongClick触发事件", function (done) { |
|
|
|
|
|
|
|
var clickNum = 0; |
|
|
|
|
|
|
|
var button = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.button", |
|
|
|
|
|
|
|
text: "CCC", |
|
|
|
|
|
|
|
trigger: "lclick", |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.Button.EVENT_CHANGE, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
clickNum++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
|
|
|
button.element.mousedown(); |
|
|
|
|
|
|
|
BI.delay(function () { |
|
|
|
|
|
|
|
expect(clickNum).to.equal(2); |
|
|
|
|
|
|
|
button.destroy(); |
|
|
|
|
|
|
|
done(); |
|
|
|
|
|
|
|
}, 360); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Created by windy on 2018/01/23. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
describe("TextTest", function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("setText", function () { |
|
|
|
|
|
|
|
var text = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.text" |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
text.setText("AAA"); |
|
|
|
|
|
|
|
expect(text.element.text()).to.equal("AAA"); |
|
|
|
|
|
|
|
text.destroy(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("setStyle", function () { |
|
|
|
|
|
|
|
var text = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.text" |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
text.setStyle({"color": "red"}); |
|
|
|
|
|
|
|
expect(text.element.getStyle("color")).to.equal("rgb(255, 0, 0)"); |
|
|
|
|
|
|
|
text.destroy(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("高亮doHighlight", function () { |
|
|
|
|
|
|
|
var text = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.text", |
|
|
|
|
|
|
|
text: "AAA", |
|
|
|
|
|
|
|
highLight: true |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
expect(text.element.getStyle("color")).to.equal("rgb(54, 133, 242)"); |
|
|
|
|
|
|
|
text.destroy(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("标红doRedMark", function () { |
|
|
|
|
|
|
|
var text = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.text", |
|
|
|
|
|
|
|
text: "我是要标红的A", |
|
|
|
|
|
|
|
keyword: "A" |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
expect(text.element.children(".bi-keyword-red-mark").length).to.not.equal(0); |
|
|
|
|
|
|
|
text.destroy(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("取消高亮undoHighlight", function () { |
|
|
|
|
|
|
|
var text = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.text", |
|
|
|
|
|
|
|
text: "AAA", |
|
|
|
|
|
|
|
highLight: true |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
text.unHighLight(); |
|
|
|
|
|
|
|
expect(text.element.getStyle("color")).to.not.equal("rgb(54, 133, 242)"); |
|
|
|
|
|
|
|
text.destroy(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("取消标红undoRedMark", function () { |
|
|
|
|
|
|
|
var text = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.text", |
|
|
|
|
|
|
|
text: "我是要标红的A", |
|
|
|
|
|
|
|
keyword: "A" |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
text.unRedMark(); |
|
|
|
|
|
|
|
expect(text.element.children(".bi-keyword-red-mark").length).to.equal(0); |
|
|
|
|
|
|
|
text.destroy(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("setValue", function () { |
|
|
|
|
|
|
|
var text = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.text", |
|
|
|
|
|
|
|
value: "AAA", |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
text.setValue("value"); |
|
|
|
|
|
|
|
expect(text.element.text()).to.equal("value"); |
|
|
|
|
|
|
|
text.destroy(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("gap测试", function () { |
|
|
|
|
|
|
|
var text = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.text", |
|
|
|
|
|
|
|
text: "我是要标红的A", |
|
|
|
|
|
|
|
vgap: 10, |
|
|
|
|
|
|
|
hgap: 10 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
expect(text.element.css("padding")).to.equal("10px"); |
|
|
|
|
|
|
|
text.destroy(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("空格测试", function () { |
|
|
|
|
|
|
|
var text = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.text", |
|
|
|
|
|
|
|
text: "我是要标红的 A", |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
expect(text.element.text()).to.equal("我是要标红的 A"); |
|
|
|
|
|
|
|
text.destroy(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("lineHeight和height", function () { |
|
|
|
|
|
|
|
var text = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.text", |
|
|
|
|
|
|
|
text: "我是A", |
|
|
|
|
|
|
|
lineHeight: 12, |
|
|
|
|
|
|
|
height: 24 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
expect(text.element.css("height")).to.equal("24px"); |
|
|
|
|
|
|
|
expect(text.element.css("line-height")).to.equal("12px"); |
|
|
|
|
|
|
|
text.destroy(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* test_author_windy |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
it("handler", function (done) { |
|
|
|
|
|
|
|
var text = BI.Test.createWidget({ |
|
|
|
|
|
|
|
type: "bi.text", |
|
|
|
|
|
|
|
text: "我是A", |
|
|
|
|
|
|
|
handler: function () { |
|
|
|
|
|
|
|
text.setText("handler"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
|
|
|
text.text.element.click(); |
|
|
|
|
|
|
|
expect(text.text.element.text()).to.equal("handler"); |
|
|
|
|
|
|
|
text.destroy(); |
|
|
|
|
|
|
|
done(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
BI.prepares.push(function () { |
|
|
|
|
|
|
|
BI.Resizers = new BI.ResizeController(); |
|
|
|
BI.Resizers = new BI.ResizeController(); |
|
|
|
BI.Layers = new BI.LayerController(); |
|
|
|
BI.Layers = new BI.LayerController(); |
|
|
|
BI.Maskers = new BI.MaskersController(); |
|
|
|
BI.Maskers = new BI.MaskersController(); |
|
|
@ -37506,7 +37202,7 @@ BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, { |
|
|
|
BI.SingleSelectRadioItem.superclass.doClick.apply(this, arguments); |
|
|
|
BI.SingleSelectRadioItem.superclass.doClick.apply(this, arguments); |
|
|
|
this.radio.setSelected(this.isSelected()); |
|
|
|
this.radio.setSelected(this.isSelected()); |
|
|
|
if (this.isValid()) { |
|
|
|
if (this.isValid()) { |
|
|
|
this.fireEvent(BI.SingleSelectItem.EVENT_CHANGE, this.isSelected(), this); |
|
|
|
this.fireEvent(BI.SingleSelectRadioItem.EVENT_CHANGE, this.isSelected(), this); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -37517,7 +37213,7 @@ BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
BI.SingleSelectItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.SingleSelectRadioItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.shortcut("bi.single_select_radio_item", BI.SingleSelectRadioItem);/** |
|
|
|
BI.shortcut("bi.single_select_radio_item", BI.SingleSelectRadioItem);/** |
|
|
|
* Created by roy on 15/10/16. |
|
|
|
* Created by roy on 15/10/16. |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -43790,7 +43486,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, { |
|
|
|
warningTitle: BI.i18nText("BI-Current_Is_First_Page"), |
|
|
|
warningTitle: BI.i18nText("BI-Current_Is_First_Page"), |
|
|
|
height: 22, |
|
|
|
height: 22, |
|
|
|
width: 22, |
|
|
|
width: 22, |
|
|
|
cls: "bi-border direction-pager-prev column-pre-page-h-font" |
|
|
|
cls: "bi-border bi-border-radius direction-pager-prev column-pre-page-h-font" |
|
|
|
}, |
|
|
|
}, |
|
|
|
next: { |
|
|
|
next: { |
|
|
|
type: "bi.icon_button", |
|
|
|
type: "bi.icon_button", |
|
|
@ -43799,7 +43495,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, { |
|
|
|
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"), |
|
|
|
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"), |
|
|
|
height: 22, |
|
|
|
height: 22, |
|
|
|
width: 22, |
|
|
|
width: 22, |
|
|
|
cls: "bi-border direction-pager-next column-next-page-h-font" |
|
|
|
cls: "bi-border bi-border-radius direction-pager-next column-next-page-h-font" |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
hasPrev: v.hasPrev, |
|
|
|
hasPrev: v.hasPrev, |
|
|
@ -65395,7 +65091,7 @@ BI.SliderIconButton = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.text", |
|
|
|
type: "bi.text_button", |
|
|
|
cls: "slider-button bi-high-light-border", |
|
|
|
cls: "slider-button bi-high-light-border", |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.slider = this; |
|
|
|
self.slider = this; |
|
|
@ -71372,11 +71068,38 @@ BI.ListTreeValueChooserInsertCombo = BI.inherit(BI.AbstractListTreeValueChooser, |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
width: o.width, |
|
|
|
width: o.width, |
|
|
|
height: o.height |
|
|
|
height: o.height, |
|
|
|
}); |
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.MultiTreeListCombo.EVENT_FOCUS, |
|
|
|
this.combo.on(BI.MultiTreeListCombo.EVENT_CONFIRM, function () { |
|
|
|
action: function () { |
|
|
|
self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_FOCUS); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeListCombo.EVENT_BLUR, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_BLUR); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeListCombo.EVENT_STOP, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_STOP); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeListCombo.EVENT_CLICK_ITEM, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CLICK_ITEM); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeListCombo.EVENT_SEARCHING, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_SEARCHING); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeListCombo.EVENT_CONFIRM, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CONFIRM); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -71393,6 +71116,12 @@ BI.ListTreeValueChooserInsertCombo = BI.inherit(BI.AbstractListTreeValueChooser, |
|
|
|
this.combo.populate.apply(this.combo, arguments); |
|
|
|
this.combo.populate.apply(this.combo, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.ListTreeValueChooserInsertCombo.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
|
|
|
|
BI.ListTreeValueChooserInsertCombo.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
|
|
|
|
BI.ListTreeValueChooserInsertCombo.EVENT_STOP = "EVENT_STOP"; |
|
|
|
|
|
|
|
BI.ListTreeValueChooserInsertCombo.EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM"; |
|
|
|
|
|
|
|
BI.ListTreeValueChooserInsertCombo.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
BI.ListTreeValueChooserInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.ListTreeValueChooserInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.shortcut("bi.list_tree_value_chooser_insert_combo", BI.ListTreeValueChooserInsertCombo);/** |
|
|
|
BI.shortcut("bi.list_tree_value_chooser_insert_combo", BI.ListTreeValueChooserInsertCombo);/** |
|
|
|
* 简单的复选下拉树控件, 适用于数据量少的情况, 可以自增值 |
|
|
|
* 简单的复选下拉树控件, 适用于数据量少的情况, 可以自增值 |
|
|
@ -71425,11 +71154,38 @@ BI.TreeValueChooserInsertCombo = BI.inherit(BI.AbstractTreeValueChooser, { |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
width: o.width, |
|
|
|
width: o.width, |
|
|
|
height: o.height |
|
|
|
height: o.height, |
|
|
|
}); |
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.MultiTreeInsertCombo.EVENT_FOCUS, |
|
|
|
this.combo.on(BI.MultiTreeInsertCombo.EVENT_CONFIRM, function () { |
|
|
|
action: function () { |
|
|
|
self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.TreeValueChooserCombo.EVENT_FOCUS); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeInsertCombo.EVENT_BLUR, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.TreeValueChooserCombo.EVENT_BLUR); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeInsertCombo.EVENT_STOP, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_STOP); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CLICK_ITEM); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeInsertCombo.EVENT_SEARCHING, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_SEARCHING); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeInsertCombo.EVENT_CONFIRM, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CONFIRM); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -71446,6 +71202,12 @@ BI.TreeValueChooserInsertCombo = BI.inherit(BI.AbstractTreeValueChooser, { |
|
|
|
this.combo.populate.apply(this.combo, arguments); |
|
|
|
this.combo.populate.apply(this.combo, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.TreeValueChooserInsertCombo.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
|
|
|
|
BI.TreeValueChooserInsertCombo.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
|
|
|
|
BI.TreeValueChooserInsertCombo.EVENT_STOP = "EVENT_STOP"; |
|
|
|
|
|
|
|
BI.TreeValueChooserInsertCombo.EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM"; |
|
|
|
|
|
|
|
BI.TreeValueChooserInsertCombo.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
BI.TreeValueChooserInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.TreeValueChooserInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.shortcut("bi.tree_value_chooser_insert_combo", BI.TreeValueChooserInsertCombo);/** |
|
|
|
BI.shortcut("bi.tree_value_chooser_insert_combo", BI.TreeValueChooserInsertCombo);/** |
|
|
|
* 简单的复选下拉树控件, 适用于数据量少的情况 |
|
|
|
* 简单的复选下拉树控件, 适用于数据量少的情况 |
|
|
@ -71478,11 +71240,38 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, { |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
width: o.width, |
|
|
|
width: o.width, |
|
|
|
height: o.height |
|
|
|
height: o.height, |
|
|
|
}); |
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.MultiTreeCombo.EVENT_FOCUS, |
|
|
|
this.combo.on(BI.MultiTreeCombo.EVENT_CONFIRM, function () { |
|
|
|
action: function () { |
|
|
|
self.fireEvent(BI.TreeValueChooserCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.TreeValueChooserCombo.EVENT_FOCUS); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeCombo.EVENT_BLUR, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.TreeValueChooserCombo.EVENT_BLUR); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeCombo.EVENT_STOP, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.TreeValueChooserCombo.EVENT_STOP); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeCombo.EVENT_CLICK_ITEM, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.TreeValueChooserCombo.EVENT_CLICK_ITEM); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeCombo.EVENT_SEARCHING, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.TreeValueChooserCombo.EVENT_SEARCHING); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeCombo.EVENT_CONFIRM, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.TreeValueChooserCombo.EVENT_CONFIRM); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -71499,7 +71288,13 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, { |
|
|
|
this.combo.populate.apply(this.combo, arguments); |
|
|
|
this.combo.populate.apply(this.combo, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
BI.TreeValueChooserCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.TreeValueChooserCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
|
|
|
BI.TreeValueChooserCombo.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
|
|
|
|
BI.TreeValueChooserCombo.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
|
|
|
|
BI.TreeValueChooserCombo.EVENT_STOP = "EVENT_STOP"; |
|
|
|
|
|
|
|
BI.TreeValueChooserCombo.EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM"; |
|
|
|
|
|
|
|
BI.TreeValueChooserCombo.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
BI.shortcut("bi.tree_value_chooser_combo", BI.TreeValueChooserCombo);/** |
|
|
|
BI.shortcut("bi.tree_value_chooser_combo", BI.TreeValueChooserCombo);/** |
|
|
|
* 简单的树面板, 适用于数据量少的情况 |
|
|
|
* 简单的树面板, 适用于数据量少的情况 |
|
|
|
* |
|
|
|
* |
|
|
@ -71677,11 +71472,38 @@ BI.ValueChooserCombo = BI.inherit(BI.AbstractValueChooser, { |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
width: o.width, |
|
|
|
width: o.width, |
|
|
|
height: o.height |
|
|
|
height: o.height, |
|
|
|
}); |
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.MultiSelectCombo.EVENT_FOCUS, |
|
|
|
this.combo.on(BI.MultiSelectCombo.EVENT_CONFIRM, function () { |
|
|
|
action: function () { |
|
|
|
self.fireEvent(BI.ValueChooserCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.ValueChooserCombo.EVENT_FOCUS); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiSelectCombo.EVENT_BLUR, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.ValueChooserCombo.EVENT_BLUR); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiSelectCombo.EVENT_STOP, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.ValueChooserCombo.EVENT_STOP); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiSelectCombo.EVENT_CLICK_ITEM, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.ValueChooserCombo.EVENT_CLICK_ITEM); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiSelectCombo.EVENT_SEARCHING, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.ValueChooserCombo.EVENT_SEARCHING); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiSelectCombo.EVENT_CONFIRM, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.ValueChooserCombo.EVENT_CONFIRM); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -71703,6 +71525,12 @@ BI.ValueChooserCombo = BI.inherit(BI.AbstractValueChooser, { |
|
|
|
this.combo.populate.apply(this, arguments); |
|
|
|
this.combo.populate.apply(this, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.ValueChooserCombo.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
|
|
|
|
BI.ValueChooserCombo.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
|
|
|
|
BI.ValueChooserCombo.EVENT_STOP = "EVENT_STOP"; |
|
|
|
|
|
|
|
BI.ValueChooserCombo.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
|
|
|
|
BI.ValueChooserCombo.EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM"; |
|
|
|
BI.ValueChooserCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.ValueChooserCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.shortcut("bi.value_chooser_combo", BI.ValueChooserCombo);/** |
|
|
|
BI.shortcut("bi.value_chooser_combo", BI.ValueChooserCombo);/** |
|
|
|
* 简单的复选面板, 适用于数据量少的情况 |
|
|
|
* 简单的复选面板, 适用于数据量少的情况 |
|
|
@ -71896,7 +71724,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
BI.Widget.prototype._init = function () { |
|
|
|
BI.Widget.prototype._init = function () { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
var needPop = createStore.call(this); |
|
|
|
var needPop = createStore.call(this); |
|
|
|
_init.apply(this, arguments); |
|
|
|
try { |
|
|
|
|
|
|
|
_init.apply(this, arguments); |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
console.error(e); |
|
|
|
|
|
|
|
} |
|
|
|
needPop && popTarget(); |
|
|
|
needPop && popTarget(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -71908,13 +71740,21 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
pushTarget(this.store); |
|
|
|
pushTarget(this.store); |
|
|
|
initWatch(this, this.watch); |
|
|
|
initWatch(this, this.watch); |
|
|
|
} |
|
|
|
} |
|
|
|
_render.apply(this, arguments); |
|
|
|
try { |
|
|
|
|
|
|
|
_render.apply(this, arguments); |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
console.error(e); |
|
|
|
|
|
|
|
} |
|
|
|
needPop && popTarget(); |
|
|
|
needPop && popTarget(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var unMount = BI.Widget.prototype.__d; |
|
|
|
var unMount = BI.Widget.prototype.__d; |
|
|
|
BI.Widget.prototype.__d = function () { |
|
|
|
BI.Widget.prototype.__d = function () { |
|
|
|
unMount.apply(this, arguments); |
|
|
|
try { |
|
|
|
|
|
|
|
unMount.apply(this, arguments); |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
console.error(e); |
|
|
|
|
|
|
|
} |
|
|
|
this.store && BI.isFunction(this.store.destroy) && this.store.destroy(); |
|
|
|
this.store && BI.isFunction(this.store.destroy) && this.store.destroy(); |
|
|
|
BI.each(this._watchers, function (i, unwatches) { |
|
|
|
BI.each(this._watchers, function (i, unwatches) { |
|
|
|
unwatches = BI.isArray(unwatches) ? unwatches : [unwatches]; |
|
|
|
unwatches = BI.isArray(unwatches) ? unwatches : [unwatches]; |
|
|
|