|
|
@ -22725,7 +22725,7 @@ var |
|
|
|
// List of deleted data cache ids, so we can reuse them
|
|
|
|
// List of deleted data cache ids, so we can reuse them
|
|
|
|
core_deletedIds = [], |
|
|
|
core_deletedIds = [], |
|
|
|
|
|
|
|
|
|
|
|
core_version = "1.9.1", |
|
|
|
core_version = "1.12.4", |
|
|
|
|
|
|
|
|
|
|
|
// Save a reference to some core methods
|
|
|
|
// Save a reference to some core methods
|
|
|
|
core_concat = core_deletedIds.concat, |
|
|
|
core_concat = core_deletedIds.concat, |
|
|
@ -38512,7 +38512,7 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
var conf = BI.BasicButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
var conf = BI.BasicButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
return BI.extend(conf, { |
|
|
|
return BI.extend(conf, { |
|
|
|
_baseCls: (conf._baseCls || "") + " bi-basic-button" + (conf.invalid ? "" : " cursor-pointer"), |
|
|
|
_baseCls: (conf._baseCls || "") + " bi-basic-button" + (conf.invalid ? "" : " cursor-pointer") + ((BI.isIE() && BI.getIEVersion() < 10) ? " hack" : ""), |
|
|
|
value: "", |
|
|
|
value: "", |
|
|
|
text: "", |
|
|
|
text: "", |
|
|
|
stopEvent: false, |
|
|
|
stopEvent: false, |
|
|
@ -54256,13 +54256,14 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, { |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
baseCls: "bi-color-chooser-popup", |
|
|
|
baseCls: "bi-color-chooser-popup", |
|
|
|
width: 230, |
|
|
|
width: 230, |
|
|
|
height: 145 |
|
|
|
height: 145, |
|
|
|
|
|
|
|
simple: false // 简单模式, popup中没有自动和透明
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this.colorEditor = BI.createWidget(o.editor, { |
|
|
|
this.colorEditor = BI.createWidget(o.editor, { |
|
|
|
type: "bi.color_picker_editor", |
|
|
|
type: o.simple ? "bi.simple_color_picker_editor" : "bi.color_picker_editor", |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
cls: "bi-header-background bi-border-bottom", |
|
|
|
cls: "bi-header-background bi-border-bottom", |
|
|
|
height: 30 |
|
|
|
height: 30 |
|
|
@ -54277,7 +54278,7 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, { |
|
|
|
this.storeColors = BI.createWidget({ |
|
|
|
this.storeColors = BI.createWidget({ |
|
|
|
type: "bi.color_picker", |
|
|
|
type: "bi.color_picker", |
|
|
|
cls: "bi-border-bottom bi-border-right", |
|
|
|
cls: "bi-border-bottom bi-border-right", |
|
|
|
items: [this._digestStoreColors(BI.string2Array(BI.Cache.getItem("colors") || ""))], |
|
|
|
items: [this._digestStoreColors(this._getStoreColors())], |
|
|
|
width: 210, |
|
|
|
width: 210, |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|
value: o.value |
|
|
|
value: o.value |
|
|
@ -54421,7 +54422,7 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_dealStoreColors: function () { |
|
|
|
_dealStoreColors: function () { |
|
|
|
var color = this.getValue(); |
|
|
|
var color = this.getValue(); |
|
|
|
var colors = BI.string2Array(BI.Cache.getItem("colors") || ""); |
|
|
|
var colors = this._getStoreColors(); |
|
|
|
var que = new BI.Queue(8); |
|
|
|
var que = new BI.Queue(8); |
|
|
|
que.fromArray(colors); |
|
|
|
que.fromArray(colors); |
|
|
|
que.remove(color); |
|
|
|
que.remove(color); |
|
|
@ -54446,6 +54447,18 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, { |
|
|
|
return items; |
|
|
|
return items; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getStoreColors: function() { |
|
|
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
var colorsArray = BI.string2Array(BI.Cache.getItem("colors") || ""); |
|
|
|
|
|
|
|
return BI.filter(colorsArray, function (idx, color) { |
|
|
|
|
|
|
|
return o.simple ? self._isRGBColor(color) : true; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_isRGBColor: function (color) { |
|
|
|
|
|
|
|
return BI.isNotEmptyString(color) && color !== "transparent"; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setStoreColors: function (colors) { |
|
|
|
setStoreColors: function (colors) { |
|
|
|
if (BI.isArray(colors)) { |
|
|
|
if (BI.isArray(colors)) { |
|
|
|
this.storeColors.populate([this._digestStoreColors(colors)]); |
|
|
|
this.storeColors.populate([this._digestStoreColors(colors)]); |
|
|
@ -54486,9 +54499,7 @@ BI.SimpleColorChooserPopup = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.color_chooser_popup", |
|
|
|
type: "bi.color_chooser_popup", |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
editor: { |
|
|
|
simple: true // 是否有自动
|
|
|
|
type: "bi.simple_color_picker_editor" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
this.popup.on(BI.ColorChooserPopup.EVENT_CHANGE, function () { |
|
|
|
this.popup.on(BI.ColorChooserPopup.EVENT_CHANGE, function () { |
|
|
|
self.fireEvent(BI.SimpleColorChooserPopup.EVENT_CHANGE, arguments); |
|
|
|
self.fireEvent(BI.SimpleColorChooserPopup.EVENT_CHANGE, arguments); |
|
|
@ -55859,9 +55870,13 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, { |
|
|
|
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
extraCls: "bi-bubble-bar-popup-view", |
|
|
|
extraCls: "bi-bubble-bar-popup-view", |
|
|
|
buttons: [{ |
|
|
|
buttons: [{ |
|
|
|
value: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
value: false, |
|
|
|
|
|
|
|
text: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
ghost: true |
|
|
|
ghost: true |
|
|
|
}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}] |
|
|
|
}, { |
|
|
|
|
|
|
|
text: BI.i18nText(BI.i18nText("BI-Basic_Sure")), |
|
|
|
|
|
|
|
value: true |
|
|
|
|
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
@ -55951,7 +55966,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.button", |
|
|
|
type: "bi.button", |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|
handler: function (v) { |
|
|
|
handler: function (v) { |
|
|
|
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, v); |
|
|
|
self.fireEvent(BI.TextBubblePopupBarView.EVENT_CHANGE, v); |
|
|
|
} |
|
|
|
} |
|
|
|
}, buttonOpt); |
|
|
|
}, buttonOpt); |
|
|
|
|
|
|
|
|
|
|
@ -55978,7 +55993,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, { |
|
|
|
this.text.setText(v || this.options.text); |
|
|
|
this.text.setText(v || this.options.text); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.TextBubblePopupBarView.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TextBubblePopupBarView.EVENT_CHANGE = "EVENT_CLICK_TOOLBAR_BUTTON"; |
|
|
|
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView); |
|
|
|
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView); |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Created by Young's on 2016/4/28. |
|
|
|
* Created by Young's on 2016/4/28. |
|
|
@ -59331,7 +59346,7 @@ BI.SelectList = BI.inherit(BI.Widget, { |
|
|
|
value: this.list.getNotSelectedValue(), |
|
|
|
value: this.list.getNotSelectedValue(), |
|
|
|
assist: this.list.getValue() |
|
|
|
assist: this.list.getValue() |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
empty: function () { |
|
|
|
empty: function () { |
|
|
|