|
|
|
@ -20478,7 +20478,7 @@ _.extend(BI, {
|
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
afterFunc: function (func) { |
|
|
|
|
afterFunc: function (sFunc, func) { |
|
|
|
|
var __self = sFunc; |
|
|
|
|
return function () { |
|
|
|
|
var ret = __self.apply(sFunc, arguments); |
|
|
|
@ -22725,7 +22725,7 @@ var
|
|
|
|
|
// List of deleted data cache ids, so we can reuse them
|
|
|
|
|
core_deletedIds = [], |
|
|
|
|
|
|
|
|
|
core_version = "1.9.1", |
|
|
|
|
core_version = "1.12.4", |
|
|
|
|
|
|
|
|
|
// Save a reference to some core methods
|
|
|
|
|
core_concat = core_deletedIds.concat, |
|
|
|
@ -33732,7 +33732,9 @@ BI.shortcut("bi.inline_vertical_adapt", BI.InlineVerticalAdaptLayout);/**
|
|
|
|
|
BI.FlexCenterLayout = BI.inherit(BI.Layout, { |
|
|
|
|
props: function () { |
|
|
|
|
return BI.extend(BI.FlexCenterLayout.superclass.props.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-flex-center-adapt-layout" |
|
|
|
|
baseCls: "bi-flex-center-adapt-layout", |
|
|
|
|
hgap: 0, |
|
|
|
|
vgap: 0 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
render: function () { |
|
|
|
@ -33743,7 +33745,14 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, {
|
|
|
|
|
_addElement: function (i, item) { |
|
|
|
|
var o = this.options; |
|
|
|
|
var w = BI.FlexCenterLayout.superclass._addElement.apply(this, arguments); |
|
|
|
|
w.element.css({position: "relative", "flex-shrink": "0"}); |
|
|
|
|
w.element.css({ |
|
|
|
|
position: "relative", |
|
|
|
|
"flex-shrink": "0", |
|
|
|
|
"margin-left": (i === 0 ? o.hgap : 0) + "px", |
|
|
|
|
"margin-right": o.hgap + "px", |
|
|
|
|
"margin-top": o.vgap + "px", |
|
|
|
|
"margin-bottom": o.vgap + "px" |
|
|
|
|
}); |
|
|
|
|
return w; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -33792,8 +33801,6 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, {
|
|
|
|
|
scrollable: o.scrollable, |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
vgap: o.vgap, |
|
|
|
|
lgap: o.lgap, |
|
|
|
|
rgap: o.rgap, |
|
|
|
|
tgap: o.tgap, |
|
|
|
|
bgap: o.bgap, |
|
|
|
|
items: o.items |
|
|
|
@ -33923,12 +33930,10 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, {
|
|
|
|
|
scrollx: o.scrollx, |
|
|
|
|
scrolly: o.scrolly, |
|
|
|
|
scrollable: o.scrollable, |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
vgap: o.vgap, |
|
|
|
|
lgap: o.lgap, |
|
|
|
|
rgap: o.rgap, |
|
|
|
|
tgap: o.tgap, |
|
|
|
|
bgap: o.bgap, |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
items: o.items |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -34043,7 +34048,13 @@ BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, {
|
|
|
|
|
_addElement: function (i, item) { |
|
|
|
|
var o = this.options; |
|
|
|
|
var w = BI.FlexWrapperCenterLayout.superclass._addElement.apply(this, arguments); |
|
|
|
|
w.element.css({position: "relative"}); |
|
|
|
|
w.element.css({ |
|
|
|
|
position: "relative", |
|
|
|
|
"margin-left": (i === 0 ? o.hgap : 0) + "px", |
|
|
|
|
"margin-right": o.hgap + "px", |
|
|
|
|
"margin-top": o.vgap + "px", |
|
|
|
|
"margin-bottom": o.vgap + "px" |
|
|
|
|
}); |
|
|
|
|
return w; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -34103,8 +34114,6 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {
|
|
|
|
|
scrollable: o.scrollable, |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
vgap: o.vgap, |
|
|
|
|
lgap: o.lgap, |
|
|
|
|
rgap: o.rgap, |
|
|
|
|
tgap: o.tgap, |
|
|
|
|
bgap: o.bgap, |
|
|
|
|
items: o.items |
|
|
|
@ -34242,8 +34251,6 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {
|
|
|
|
|
vgap: o.vgap, |
|
|
|
|
lgap: o.lgap, |
|
|
|
|
rgap: o.rgap, |
|
|
|
|
tgap: o.tgap, |
|
|
|
|
bgap: o.bgap, |
|
|
|
|
items: o.items |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -38505,7 +38512,7 @@ BI.BasicButton = BI.inherit(BI.Single, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
var conf = BI.BasicButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
|
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: "", |
|
|
|
|
text: "", |
|
|
|
|
stopEvent: false, |
|
|
|
@ -45373,9 +45380,12 @@ BI.Button = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
if (BI.isKey(o.iconCls)) { |
|
|
|
|
this.icon = BI.createWidget({ |
|
|
|
|
type: "bi.icon", |
|
|
|
|
type: "bi.icon_label", |
|
|
|
|
cls: o.iconCls, |
|
|
|
|
width: 18, |
|
|
|
|
height: o.height - 2 |
|
|
|
|
height: o.height - 2, |
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
iconHeight: o.iconHeight |
|
|
|
|
}); |
|
|
|
|
this.text = BI.createWidget({ |
|
|
|
|
type: "bi.label", |
|
|
|
@ -45385,14 +45395,9 @@ BI.Button = BI.inherit(BI.BasicButton, {
|
|
|
|
|
}); |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
cls: o.iconCls, |
|
|
|
|
element: this, |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
vgap: o.vgap, |
|
|
|
|
tgap: o.tgap, |
|
|
|
|
bgap: o.bgap, |
|
|
|
|
lgap: o.lgap, |
|
|
|
|
rgap: o.rgap, |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.horizontal", |
|
|
|
|
items: [this.icon, this.text] |
|
|
|
@ -47667,7 +47672,7 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
|
|
|
|
|
var multipart = function (boundary, name, file) { |
|
|
|
|
return "--".concat( |
|
|
|
|
boundary, CRLF, |
|
|
|
|
"Content-Disposition: form-data; name=\"", name, "\"; filename=\"", BI.cjkEncode(file.fileName), "\"", CRLF, |
|
|
|
|
"Content-Disposition: form-data; name=\"", name, "\"; filename=\"", _global.encodeURIComponent(file.fileName), "\"", CRLF, |
|
|
|
|
"Content-Type: application/octet-stream", CRLF, |
|
|
|
|
CRLF, |
|
|
|
|
file.getAsBinary(), CRLF, |
|
|
|
@ -47693,15 +47698,15 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
for (var |
|
|
|
|
xhr = new XMLHttpRequest, |
|
|
|
|
upload = xhr.upload || { |
|
|
|
|
addEventListener: function (event, callback) { |
|
|
|
|
this["on" + event] = callback; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
i = 0; |
|
|
|
|
i < length; |
|
|
|
|
i++ |
|
|
|
|
xhr = new XMLHttpRequest, |
|
|
|
|
upload = xhr.upload || { |
|
|
|
|
addEventListener: function (event, callback) { |
|
|
|
|
this["on" + event] = callback; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
i = 0; |
|
|
|
|
i < length; |
|
|
|
|
i++ |
|
|
|
|
) { |
|
|
|
|
upload.addEventListener( |
|
|
|
|
split[i].substring(2), |
|
|
|
@ -47756,7 +47761,9 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
|
|
|
|
|
switch (xhr.readyState) { |
|
|
|
|
case 2: |
|
|
|
|
case 3: |
|
|
|
|
if (rpe.total <= rpe.loaded) {rpe.loaded = rpe.total;} |
|
|
|
|
if (rpe.total <= rpe.loaded) { |
|
|
|
|
rpe.loaded = rpe.total; |
|
|
|
|
} |
|
|
|
|
upload.onprogress(rpe); |
|
|
|
|
break; |
|
|
|
|
case 4: |
|
|
|
@ -47822,8 +47829,12 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
|
|
|
|
|
var url = handler.url.concat(-1 === handler.url.indexOf("?") ? "?" : "&", "AjaxUploadFrame=true"), |
|
|
|
|
rpe = { |
|
|
|
|
loaded: 1, total: 100, simulation: true, interval: setInterval(function () { |
|
|
|
|
if (rpe.loaded < rpe.total) {++rpe.loaded;} |
|
|
|
|
if (isFunction(handler.onprogress)) {handler.onprogress(rpe, {});} |
|
|
|
|
if (rpe.loaded < rpe.total) { |
|
|
|
|
++rpe.loaded; |
|
|
|
|
} |
|
|
|
|
if (isFunction(handler.onprogress)) { |
|
|
|
|
handler.onprogress(rpe, {}); |
|
|
|
|
} |
|
|
|
|
}, 100) |
|
|
|
|
}, |
|
|
|
|
onload = function () { |
|
|
|
@ -47840,7 +47851,7 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// attachO.fileSize = responseText.length;
|
|
|
|
|
attachO.filename = BI.cjkDecode(handler.file.fileName); |
|
|
|
|
attachO.filename = _global.decodeURIComponent(handler.file.fileName); |
|
|
|
|
if (handler.maxlength == 1) { |
|
|
|
|
handler.attach_array[0] = attachO; |
|
|
|
|
} else { |
|
|
|
@ -49329,7 +49340,7 @@ BI.Toast = BI.inherit(BI.Tip, {
|
|
|
|
|
}); |
|
|
|
|
BI.Toast.EVENT_DESTORY = "EVENT_DESTORY"; |
|
|
|
|
BI.shortcut("bi.toast", BI.Toast);/** |
|
|
|
|
* toast提示 |
|
|
|
|
* title提示 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/7. |
|
|
|
|
* @class BI.Tooltip |
|
|
|
@ -52221,12 +52232,7 @@ BI.SingleSelectIconTextItem = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.single_select_icon_text_item", BI.SingleSelectIconTextItem);/** |
|
|
|
|
* guy |
|
|
|
|
* 复选框item |
|
|
|
|
* @type {*|void|Object} |
|
|
|
|
*/ |
|
|
|
|
BI.SingleSelectItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
BI.shortcut("bi.single_select_icon_text_item", BI.SingleSelectIconTextItem);BI.SingleSelectItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.SingleSelectItem.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
extraCls: "bi-single-select-item bi-list-item-active", |
|
|
|
@ -52978,12 +52984,7 @@ BI.Switch = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.Switch.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.shortcut("bi.switch", BI.Switch);/** |
|
|
|
|
* guy |
|
|
|
|
* 复选框item |
|
|
|
|
* @type {*|void|Object} |
|
|
|
|
*/ |
|
|
|
|
BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
BI.shortcut("bi.switch", BI.Switch);BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.FirstTreeLeafItem.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
extraCls: "bi-first-tree-leaf-item bi-list-item-active", |
|
|
|
@ -53169,12 +53170,7 @@ BI.shortcut("bi.first_tree_leaf_item", BI.FirstTreeLeafItem);BI.IconTreeLeafItem
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.icon_tree_leaf_item", BI.IconTreeLeafItem);/** |
|
|
|
|
* guy |
|
|
|
|
* 复选框item |
|
|
|
|
* @type {*|void|Object} |
|
|
|
|
*/ |
|
|
|
|
BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
BI.shortcut("bi.icon_tree_leaf_item", BI.IconTreeLeafItem);BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.LastTreeLeafItem.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
extraCls: "bi-last-tree-leaf-item bi-list-item-active", |
|
|
|
@ -53273,12 +53269,7 @@ BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.last_tree_leaf_item", BI.LastTreeLeafItem);/** |
|
|
|
|
* guy |
|
|
|
|
* 复选框item |
|
|
|
|
* @type {*|void|Object} |
|
|
|
|
*/ |
|
|
|
|
BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
BI.shortcut("bi.last_tree_leaf_item", BI.LastTreeLeafItem);BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.MidTreeLeafItem.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
extraCls: "bi-mid-tree-leaf-item bi-list-item-active", |
|
|
|
@ -54221,16 +54212,7 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
var fn = function () { |
|
|
|
|
var color = self.colorPicker.getValue(); |
|
|
|
|
self.trigger.setValue(color); |
|
|
|
|
var colors = BI.string2Array(BI.Cache.getItem("colors") || ""); |
|
|
|
|
var que = new BI.Queue(8); |
|
|
|
|
que.fromArray(colors); |
|
|
|
|
que.remove(color); |
|
|
|
|
que.unshift(color); |
|
|
|
|
BI.Cache.setItem("colors", BI.array2String(que.toArray())); |
|
|
|
|
}; |
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
self.colorPicker.setStoreColors(BI.string2Array(BI.Cache.getItem("colors") || "")); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () { |
|
|
|
|
self.fireEvent(BI.ColorChooser.EVENT_CHANGE, arguments); |
|
|
|
@ -54274,13 +54256,14 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
props: { |
|
|
|
|
baseCls: "bi-color-chooser-popup", |
|
|
|
|
width: 230, |
|
|
|
|
height: 145 |
|
|
|
|
height: 145, |
|
|
|
|
simple: false // 简单模式, popup中没有自动和透明
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
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, |
|
|
|
|
cls: "bi-header-background bi-border-bottom", |
|
|
|
|
height: 30 |
|
|
|
@ -54288,43 +54271,21 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
this.colorEditor.on(BI.ColorPickerEditor.EVENT_CHANGE, function () { |
|
|
|
|
self.setValue(this.getValue()); |
|
|
|
|
self._dealStoreColors(); |
|
|
|
|
self.fireEvent(BI.ColorChooserPopup.EVENT_VALUE_CHANGE, arguments); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.storeColors = BI.createWidget({ |
|
|
|
|
type: "bi.color_picker", |
|
|
|
|
cls: "bi-border-bottom bi-border-right", |
|
|
|
|
items: [[{ |
|
|
|
|
value: "", |
|
|
|
|
disabled: true |
|
|
|
|
}, { |
|
|
|
|
value: "", |
|
|
|
|
disabled: true |
|
|
|
|
}, { |
|
|
|
|
value: "", |
|
|
|
|
disabled: true |
|
|
|
|
}, { |
|
|
|
|
value: "", |
|
|
|
|
disabled: true |
|
|
|
|
}, { |
|
|
|
|
value: "", |
|
|
|
|
disabled: true |
|
|
|
|
}, { |
|
|
|
|
value: "", |
|
|
|
|
disabled: true |
|
|
|
|
}, { |
|
|
|
|
value: "", |
|
|
|
|
disabled: true |
|
|
|
|
}, { |
|
|
|
|
value: "", |
|
|
|
|
disabled: true |
|
|
|
|
}]], |
|
|
|
|
items: [this._digestStoreColors(this._getStoreColors())], |
|
|
|
|
width: 210, |
|
|
|
|
height: 24, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.storeColors.on(BI.ColorPicker.EVENT_CHANGE, function () { |
|
|
|
|
self.setValue(this.getValue()[0]); |
|
|
|
|
self._dealStoreColors(); |
|
|
|
|
self.fireEvent(BI.ColorChooserPopup.EVENT_CHANGE, arguments); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -54337,6 +54298,7 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
this.colorPicker.on(BI.ColorPicker.EVENT_CHANGE, function () { |
|
|
|
|
self.setValue(this.getValue()[0]); |
|
|
|
|
self._dealStoreColors(); |
|
|
|
|
self.fireEvent(BI.ColorChooserPopup.EVENT_CHANGE, arguments); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -54384,6 +54346,7 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
break; |
|
|
|
|
case 1: |
|
|
|
|
self.setValue(self.customColorChooser.getValue()); |
|
|
|
|
self._dealStoreColors(); |
|
|
|
|
self.more.hideView(); |
|
|
|
|
self.fireEvent(BI.ColorChooserPopup.EVENT_CHANGE, arguments); |
|
|
|
|
break; |
|
|
|
@ -54457,20 +54420,48 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
this.mask.setVisible(!enable); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_dealStoreColors: function () { |
|
|
|
|
var color = this.getValue(); |
|
|
|
|
var colors = this._getStoreColors(); |
|
|
|
|
var que = new BI.Queue(8); |
|
|
|
|
que.fromArray(colors); |
|
|
|
|
que.remove(color); |
|
|
|
|
que.unshift(color); |
|
|
|
|
var array = que.toArray(); |
|
|
|
|
BI.Cache.setItem("colors", BI.array2String(array)); |
|
|
|
|
this.setStoreColors(array); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_digestStoreColors: function (colors) { |
|
|
|
|
var items = BI.map(colors, function (i, color) { |
|
|
|
|
return { |
|
|
|
|
value: color |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
BI.count(colors.length, 8, function (i) { |
|
|
|
|
items.push({ |
|
|
|
|
value: "", |
|
|
|
|
disabled: true |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
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) { |
|
|
|
|
if (BI.isArray(colors)) { |
|
|
|
|
var items = BI.map(colors, function (i, color) { |
|
|
|
|
return { |
|
|
|
|
value: color |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
BI.count(colors.length, 8, function (i) { |
|
|
|
|
items.push({ |
|
|
|
|
value: "", |
|
|
|
|
disabled: true |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
this.storeColors.populate([items]); |
|
|
|
|
this.storeColors.populate([this._digestStoreColors(colors)]); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -54508,9 +54499,7 @@ BI.SimpleColorChooserPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.color_chooser_popup", |
|
|
|
|
value: o.value, |
|
|
|
|
element: this, |
|
|
|
|
editor: { |
|
|
|
|
type: "bi.simple_color_picker_editor" |
|
|
|
|
} |
|
|
|
|
simple: true // 是否有自动
|
|
|
|
|
}); |
|
|
|
|
this.popup.on(BI.ColorChooserPopup.EVENT_CHANGE, function () { |
|
|
|
|
self.fireEvent(BI.SimpleColorChooserPopup.EVENT_CHANGE, arguments); |
|
|
|
@ -55881,9 +55870,13 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
|
|
|
|
|
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
extraCls: "bi-bubble-bar-popup-view", |
|
|
|
|
buttons: [{ |
|
|
|
|
value: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
|
value: false, |
|
|
|
|
text: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
|
ghost: true |
|
|
|
|
}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}] |
|
|
|
|
}, { |
|
|
|
|
text: BI.i18nText(BI.i18nText("BI-Basic_Sure")), |
|
|
|
|
value: true |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
@ -55973,7 +55966,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.button", |
|
|
|
|
height: 24, |
|
|
|
|
handler: function (v) { |
|
|
|
|
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, v); |
|
|
|
|
self.fireEvent(BI.TextBubblePopupBarView.EVENT_CHANGE, v); |
|
|
|
|
} |
|
|
|
|
}, buttonOpt); |
|
|
|
|
|
|
|
|
@ -56000,7 +55993,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
|
|
|
|
|
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); |
|
|
|
|
/** |
|
|
|
|
* Created by Young's on 2016/4/28. |
|
|
|
@ -56450,7 +56443,12 @@ BI.shortcut("bi.icon_text_value_combo", BI.IconTextValueCombo);
|
|
|
|
|
BI.IconTextValueComboPopup = BI.inherit(BI.Pane, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.IconTextValueComboPopup.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-icon-text-icon-popup" |
|
|
|
|
baseCls: "bi-icon-text-icon-popup", |
|
|
|
|
behaviors: { |
|
|
|
|
redmark: function () { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -56470,11 +56468,7 @@ BI.IconTextValueComboPopup = BI.inherit(BI.Pane, {
|
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.vertical" |
|
|
|
|
}], |
|
|
|
|
behaviors: { |
|
|
|
|
redmark: function () { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -59352,7 +59346,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
value: this.list.getNotSelectedValue(), |
|
|
|
|
assist: this.list.getValue() |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
empty: function () { |
|
|
|
@ -60072,6 +60066,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
|
|
|
|
|
this.options.pages = v; |
|
|
|
|
this.pager.setAllPages(v); |
|
|
|
|
this.editor.setEnable(v >= 1); |
|
|
|
|
this.setPagerVisible(v > 1); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
@ -63772,7 +63767,7 @@ BI.shortcut("bi.down_list_item", BI.DownListItem);BI.DownListGroupItem = BI.inhe
|
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: o.iconCls1, |
|
|
|
|
width: 36, |
|
|
|
|
forceNotSelected: true, |
|
|
|
|
disableSelected: true, |
|
|
|
|
selected: this._digest(o.value) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -64142,11 +64137,7 @@ BI.DownListPopup = BI.inherit(BI.Pane, {
|
|
|
|
|
|
|
|
|
|
BI.DownListPopup.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.DownListPopup.EVENT_SON_VALUE_CHANGE = "EVENT_SON_VALUE_CHANGE"; |
|
|
|
|
BI.shortcut("bi.down_list_popup", BI.DownListPopup);/** |
|
|
|
|
* 汇总表格帮助类 |
|
|
|
|
* Created by Young's on 2017/1/19. |
|
|
|
|
*/ |
|
|
|
|
!(function () { |
|
|
|
|
BI.shortcut("bi.down_list_popup", BI.DownListPopup);!(function () { |
|
|
|
|
BI.DynamicDateHelper = {}; |
|
|
|
|
BI.extend(BI.DynamicDateHelper, { |
|
|
|
|
getCalculation: function (obj) { |
|
|
|
@ -68568,7 +68559,8 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
value: o.value, |
|
|
|
|
maxHeight: 400 |
|
|
|
|
maxHeight: 400, |
|
|
|
|
minHeight: 240 |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -68664,7 +68656,7 @@ BI.shortcut("bi.multilayer_select_tree_combo", BI.MultiLayerSelectTreeCombo);/**
|
|
|
|
|
* guy |
|
|
|
|
* 二级树 |
|
|
|
|
* @class BI.MultiLayerSelectLevelTree |
|
|
|
|
* @extends BI.Select |
|
|
|
|
* @extends BI.Pane |
|
|
|
|
*/ |
|
|
|
|
BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
@ -68773,9 +68765,9 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, {
|
|
|
|
|
el: { |
|
|
|
|
type: "bi.loader", |
|
|
|
|
isDefaultInit: o.itemsCreator !== BI.emptyFn, |
|
|
|
|
chooseType: o.chooseType, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.button_tree", |
|
|
|
|
chooseType: o.chooseType, |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.vertical" |
|
|
|
@ -68812,8 +68804,12 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|
this.storeValue = v; |
|
|
|
|
this.tree.setValue(v); |
|
|
|
|
// getValue依赖于storeValue, 那么不选的时候就不要更新storeValue了
|
|
|
|
|
if(this.options.chooseType === BI.Selection.None) { |
|
|
|
|
} else { |
|
|
|
|
this.storeValue = v; |
|
|
|
|
this.tree.setValue(v); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
@ -69537,7 +69533,8 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
value: o.value, |
|
|
|
|
maxHeight: 400 |
|
|
|
|
maxHeight: 400, |
|
|
|
|
minHeight: 240 |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -69741,9 +69738,9 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
|
|
|
|
|
el: { |
|
|
|
|
type: "bi.loader", |
|
|
|
|
isDefaultInit: o.itemsCreator !== BI.emptyFn, |
|
|
|
|
chooseType: o.chooseType, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.button_tree", |
|
|
|
|
chooseType: o.chooseType, |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.vertical" |
|
|
|
@ -69780,8 +69777,12 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|
this.storeValue = v; |
|
|
|
|
this.tree.setValue(v); |
|
|
|
|
// getValue依赖于storeValue, 那么不选的时候就不要更新storeValue了
|
|
|
|
|
if(this.options.chooseType === BI.Selection.None) { |
|
|
|
|
} else { |
|
|
|
|
this.storeValue = v; |
|
|
|
|
this.tree.setValue(v); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
@ -71031,7 +71032,9 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
self.fireEvent(BI.MultiSelectCombo.EVENT_CLICK_ITEM); |
|
|
|
|
}); |
|
|
|
|
this.trigger.on(BI.MultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () { |
|
|
|
|
this.getCounter().setValue(self.storeValue); |
|
|
|
|
// counter的值随点击项的改变而改变, 点击counter的时候不需要setValue(counter会请求刷新计数)
|
|
|
|
|
// 只需要更新查看面板的selectedValue用以请求已选数据
|
|
|
|
|
this.getCounter().updateSelectedValue(self.storeValue); |
|
|
|
|
}); |
|
|
|
|
this.trigger.on(BI.MultiSelectTrigger.EVENT_COUNTER_CLICK, function () { |
|
|
|
|
if (!self.combo.isViewVisible()) { |
|
|
|
@ -71409,7 +71412,9 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM); |
|
|
|
|
}); |
|
|
|
|
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () { |
|
|
|
|
this.getCounter().setValue(self.storeValue); |
|
|
|
|
// counter的值随点击项的改变而改变, 点击counter的时候不需要setValue(counter会请求刷新计数)
|
|
|
|
|
// 只需要更新查看面板的selectedValue用以请求已选数据
|
|
|
|
|
this.getCounter().updateSelectedValue(self.storeValue); |
|
|
|
|
}); |
|
|
|
|
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_COUNTER_CLICK, function () { |
|
|
|
|
if (!self.combo.isViewVisible()) { |
|
|
|
@ -71804,7 +71809,9 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () { |
|
|
|
|
this.getCounter().setValue(self.storeValue); |
|
|
|
|
// counter的值随点击项的改变而改变, 点击counter的时候不需要setValue(counter会请求刷新计数)
|
|
|
|
|
// 只需要更新查看面板的selectedValue用以请求已选数据
|
|
|
|
|
this.getCounter().updateSelectedValue(self.storeValue); |
|
|
|
|
}); |
|
|
|
|
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_COUNTER_CLICK, function () { |
|
|
|
|
if (!self.combo.isViewVisible()) { |
|
|
|
@ -73955,6 +73962,9 @@ BI.MultiSelectCheckSelectedSwitcher = BI.inherit(BI.Widget, {
|
|
|
|
|
onClickContinueSelect: function () { |
|
|
|
|
self.switcher.hideView(); |
|
|
|
|
}, |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.checkPane = _ref; |
|
|
|
|
}, |
|
|
|
|
value: o.value |
|
|
|
|
}, o.popup), |
|
|
|
|
adapter: o.adapter, |
|
|
|
@ -73995,6 +74005,11 @@ BI.MultiSelectCheckSelectedSwitcher = BI.inherit(BI.Widget, {
|
|
|
|
|
this.switcher.setValue(v); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 与setValue的区别是只更新查看已选面板的的selectedValue, 不会更新按钮的计数
|
|
|
|
|
updateSelectedValue: function (v) { |
|
|
|
|
this.checkPane.setValue(v); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setButtonChecked: function (v) { |
|
|
|
|
this.button.setValue(v); |
|
|
|
|
}, |
|
|
|
@ -80644,12 +80659,7 @@ BI.SingleSelectInsertCombo.EVENT_SEARCHING = "EVENT_SEARCHING";
|
|
|
|
|
BI.SingleSelectInsertCombo.EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM"; |
|
|
|
|
BI.SingleSelectInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.single_select_insert_combo", BI.SingleSelectInsertCombo);/** |
|
|
|
|
* guy |
|
|
|
|
* 单选框item |
|
|
|
|
* @type {*|void|Object} |
|
|
|
|
*/ |
|
|
|
|
BI.SingleSelectComboItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
BI.shortcut("bi.single_select_insert_combo", BI.SingleSelectInsertCombo);BI.SingleSelectComboItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.SingleSelectComboItem.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
extraCls: "bi-single-select-radio-item", |
|
|
|
@ -81724,9 +81734,6 @@ BI.SingleSelectSearcher.EVENT_STOP = "EVENT_STOP";
|
|
|
|
|
BI.SingleSelectSearcher.EVENT_PAUSE = "EVENT_PAUSE"; |
|
|
|
|
BI.SingleSelectSearcher.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
|
BI.shortcut("bi.single_select_searcher", BI.SingleSelectSearcher); |
|
|
|
|
/** |
|
|
|
|
* Created by User on 2017/11/16. |
|
|
|
|
*/ |
|
|
|
|
BI.SignTextEditor = BI.inherit(BI.Widget, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
var conf = BI.SignTextEditor.superclass._defaultConfig.apply(this, arguments); |
|
|
|
@ -84806,7 +84813,7 @@ BI.DynamicYearTrigger.EVENT_START = "EVENT_START";
|
|
|
|
|
BI.DynamicYearTrigger.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
BI.DynamicYearTrigger.EVENT_STOP = "EVENT_STOP"; |
|
|
|
|
BI.shortcut("bi.dynamic_year_trigger", BI.DynamicYearTrigger);/** |
|
|
|
|
* 年份展示面板 |
|
|
|
|
* 年月展示面板 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/2. |
|
|
|
|
* @class BI.YearCard |
|
|
|
@ -85842,7 +85849,7 @@ BI.YearMonthInterval.EVENT_CHANGE = "EVENT_CHANGE";
|
|
|
|
|
BI.YearMonthInterval.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
|
|
|
|
BI.shortcut("bi.year_month_interval", BI.YearMonthInterval); |
|
|
|
|
/** |
|
|
|
|
* 年份展示面板 |
|
|
|
|
* 年季度展示面板 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/2. |
|
|
|
|
* @class BI.YearCard |
|
|
|
@ -86669,30 +86676,33 @@ BI.AbstractAllValueChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
if (options.keyword) { |
|
|
|
|
keywords.push(options.keyword); |
|
|
|
|
} |
|
|
|
|
var resultItems = []; |
|
|
|
|
BI.each(keywords, function (i, kw) { |
|
|
|
|
var search = BI.Func.getSearchResult(items, kw); |
|
|
|
|
resultItems = resultItems.concat(search.match).concat(search.find); |
|
|
|
|
}); |
|
|
|
|
resultItems = BI.uniq(resultItems); |
|
|
|
|
var resultItems = items; |
|
|
|
|
if(BI.isNotEmptyArray(keywords)) { |
|
|
|
|
resultItems = []; |
|
|
|
|
BI.each(keywords, function (i, kw) { |
|
|
|
|
var search = BI.Func.getSearchResult(items, kw); |
|
|
|
|
resultItems = resultItems.concat(search.match).concat(search.find); |
|
|
|
|
}); |
|
|
|
|
resultItems = BI.uniq(resultItems); |
|
|
|
|
} |
|
|
|
|
if (options.selectedValues) {// 过滤
|
|
|
|
|
var filter = BI.makeObject(options.selectedValues, true); |
|
|
|
|
items = BI.filter(items, function (i, ob) { |
|
|
|
|
resultItems = BI.filter(resultItems, function (i, ob) { |
|
|
|
|
return !filter[ob.value]; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (options.type === BI.MultiSelectCombo.REQ_GET_ALL_DATA) { |
|
|
|
|
callback({ |
|
|
|
|
items: items |
|
|
|
|
items: resultItems |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (options.type === BI.MultiSelectCombo.REQ_GET_DATA_LENGTH) { |
|
|
|
|
callback({count: items.length}); |
|
|
|
|
callback({count: resultItems.length}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
callback({ |
|
|
|
|
items: items, |
|
|
|
|
items: resultItems, |
|
|
|
|
hasNext: false |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
@ -86766,7 +86776,7 @@ BI.AllValueChooserCombo = BI.inherit(BI.AbstractAllValueChooser, {
|
|
|
|
|
}); |
|
|
|
|
BI.AllValueChooserCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
BI.shortcut("bi.all_value_chooser_combo", BI.AllValueChooserCombo);/** |
|
|
|
|
* 简单的复选下拉框控件, 适用于数据量少的情况, 与valuechooser的区别是allvaluechooser setValue和getValue返回的是所有值 |
|
|
|
|
* 简单的复选面板, 适用于数据量少的情况, 与valuechooser的区别是allvaluechooser setValue和getValue返回的是所有值 |
|
|
|
|
* 封装了字段处理逻辑 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/10/29. |
|
|
|
@ -88025,7 +88035,7 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, {
|
|
|
|
|
}); |
|
|
|
|
BI.TreeValueChooserCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
BI.shortcut("bi.tree_value_chooser_combo", BI.TreeValueChooserCombo);/** |
|
|
|
|
* 简单的复选下拉树控件, 适用于数据量少的情况 |
|
|
|
|
* 简单的树面板, 适用于数据量少的情况 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/10/29. |
|
|
|
|
* @class BI.TreeValueChooserPane |
|
|
|
@ -88136,29 +88146,34 @@ BI.AbstractValueChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
function call (items) { |
|
|
|
|
var keywords = (options.keywords || []).slice(); |
|
|
|
|
BI.each(keywords, function (i, kw) { |
|
|
|
|
var search = BI.Func.getSearchResult(items, kw); |
|
|
|
|
items = search.match.concat(search.find); |
|
|
|
|
}); |
|
|
|
|
var resultItems = items; |
|
|
|
|
if(BI.isNotEmptyArray(keywords)) { |
|
|
|
|
resultItems = []; |
|
|
|
|
BI.each(keywords, function (i, kw) { |
|
|
|
|
var search = BI.Func.getSearchResult(items, kw); |
|
|
|
|
resultItems = resultItems.concat(search.match).concat(search.find); |
|
|
|
|
}); |
|
|
|
|
resultItems = BI.uniq(resultItems); |
|
|
|
|
} |
|
|
|
|
if (options.selectedValues) {// 过滤
|
|
|
|
|
var filter = BI.makeObject(options.selectedValues, true); |
|
|
|
|
items = BI.filter(items, function (i, ob) { |
|
|
|
|
resultItems = BI.filter(resultItems, function (i, ob) { |
|
|
|
|
return !filter[ob.value]; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (options.type === BI.MultiSelectCombo.REQ_GET_ALL_DATA) { |
|
|
|
|
callback({ |
|
|
|
|
items: items |
|
|
|
|
items: resultItems |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (options.type === BI.MultiSelectCombo.REQ_GET_DATA_LENGTH) { |
|
|
|
|
callback({count: items.length}); |
|
|
|
|
callback({count: resultItems.length}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
callback({ |
|
|
|
|
items: self._getItemsByTimes(items, options.times), |
|
|
|
|
hasNext: self._hasNextByTimes(items, options.times) |
|
|
|
|
items: self._getItemsByTimes(resultItems, options.times), |
|
|
|
|
hasNext: self._hasNextByTimes(resultItems, options.times) |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -88224,7 +88239,7 @@ BI.ValueChooserCombo = BI.inherit(BI.AbstractValueChooser, {
|
|
|
|
|
}); |
|
|
|
|
BI.ValueChooserCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
BI.shortcut("bi.value_chooser_combo", BI.ValueChooserCombo);/** |
|
|
|
|
* 简单的复选下拉框控件, 适用于数据量少的情况 |
|
|
|
|
* 简单的复选面板, 适用于数据量少的情况 |
|
|
|
|
* 封装了字段处理逻辑 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/10/29. |
|
|
|
@ -88411,18 +88426,12 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
return needPop; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
BI.Widget.prototype._init = function () { |
|
|
|
|
BI.Widget.superclass._init.apply(this, arguments); |
|
|
|
|
this._initRoot(); |
|
|
|
|
this._initElementWidth(); |
|
|
|
|
this._initElementHeight(); |
|
|
|
|
this._initVisual(); |
|
|
|
|
this._initState(); |
|
|
|
|
BI.Widget.prototype._initRender = function () { |
|
|
|
|
if (this.beforeInit) { |
|
|
|
|
this.__asking = true; |
|
|
|
|
this.beforeInit(BI.bind(function () { |
|
|
|
|
if (this.model && this.model.$vm) { |
|
|
|
|
this.model.$vm.$digest() |
|
|
|
|
this.model.$vm.$digest(); |
|
|
|
|
} |
|
|
|
|
this._render(); |
|
|
|
|
}, this)); |
|
|
|
@ -88432,7 +88441,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
} else { |
|
|
|
|
this._render(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
var _init = BI.Widget.prototype._init; |
|
|
|
|
BI.Widget.prototype._init = function () { |
|
|
|
|