|
|
|
@ -9402,6 +9402,9 @@ jQuery.fn.offset = function( options ) {
|
|
|
|
|
offsetLeft += el.offsetLeft; |
|
|
|
|
offsetTop += el.offsetTop; |
|
|
|
|
|
|
|
|
|
offsetLeft -= el.scrollLeft; |
|
|
|
|
offsetTop -= el.scrollTop; |
|
|
|
|
|
|
|
|
|
el = el.offsetParent; |
|
|
|
|
} while( el ); |
|
|
|
|
win = getWindow( doc ); |
|
|
|
@ -28833,11 +28836,12 @@ BI.extend(BI.DOM, {
|
|
|
|
|
ctx.fillText(param, 6 * ratio, 12 * ratio); |
|
|
|
|
$(canvas).destroy(); |
|
|
|
|
var backColor = backgroundColor || "#EAF2FD"; |
|
|
|
|
// IE可以放大缩小所以要固定最大最小宽高
|
|
|
|
|
return { |
|
|
|
|
width: w, |
|
|
|
|
height: 24, |
|
|
|
|
src: canvas.toDataURL("image/png"), |
|
|
|
|
style: "background-color: " + backColor + ";vertical-align: middle; margin: 0 3px; width:" + w + "px;height: 24px", |
|
|
|
|
style: "background-color: " + backColor + ";vertical-align: middle; margin: 0 3px; width:" + w + "px;height: 24px; max-width:" + w + "px;max-height: 24px; min-width:" + w + "px;min-height: 24px", |
|
|
|
|
param: param |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
@ -35106,7 +35110,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
|
|
}, |
|
|
|
|
set: function reactiveSetter(newVal) { |
|
|
|
|
var value = childOb ? childOb.model : val; |
|
|
|
|
if (newVal === value || (newVal !== newVal && value !== value)) { |
|
|
|
|
if (newVal === value || newVal !== newVal && value !== value) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
val = newVal; |
|
|
|
@ -35300,7 +35304,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
|
|
} catch (e) { |
|
|
|
|
// if (this.user) {
|
|
|
|
|
// } else {
|
|
|
|
|
console.error(e); |
|
|
|
|
// console.error(e)
|
|
|
|
|
// }
|
|
|
|
|
} finally { |
|
|
|
|
// "touch" every property so they are all tracked as
|
|
|
|
@ -35369,13 +35373,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
|
|
try { |
|
|
|
|
this.cb.call(this.vm, value, oldValue, options); |
|
|
|
|
} catch (e) { |
|
|
|
|
console.log(e); |
|
|
|
|
console.error(e); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
try { |
|
|
|
|
this.cb.call(this.vm, value, oldValue, options); |
|
|
|
|
} catch (e) { |
|
|
|
|
console.log(e); |
|
|
|
|
console.error(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -53271,14 +53275,14 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
var icon1 = BI.createWidget({ |
|
|
|
|
type: "bi.icon_label", |
|
|
|
|
cls: o.iconCls1, |
|
|
|
|
width: o.height, |
|
|
|
|
width: o.leftIconWrapperWidth, |
|
|
|
|
height: o.height, |
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
iconHeight: o.iconHeight |
|
|
|
|
}); |
|
|
|
|
var blank = BI.createWidget({ |
|
|
|
|
type: "bi.layout", |
|
|
|
|
width: o.height, |
|
|
|
|
width: o.height |
|
|
|
|
}); |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
@ -53287,7 +53291,7 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
el: { |
|
|
|
|
type: "bi.icon_label", |
|
|
|
|
cls: o.iconCls2, |
|
|
|
|
width: o.height, |
|
|
|
|
width: o.rightIconWrapperWidth, |
|
|
|
|
height: o.height, |
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
iconHeight: o.iconHeight |
|
|
|
@ -53364,6 +53368,7 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
logic: { |
|
|
|
|
dynamic: false |
|
|
|
|
}, |
|
|
|
|
iconWrapperWidth: null, |
|
|
|
|
iconHeight: null, |
|
|
|
|
iconWidth: null, |
|
|
|
|
textHgap: 0, |
|
|
|
@ -53390,7 +53395,7 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
}); |
|
|
|
|
this.icon = BI.createWidget({ |
|
|
|
|
type: "bi.icon_label", |
|
|
|
|
width: o.height, |
|
|
|
|
width: o.iconWrapperWidth || o.height, |
|
|
|
|
height: o.height, |
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
iconHeight: o.iconHeight |
|
|
|
@ -72843,7 +72848,8 @@ BI.MultiSelectItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
height: 24, |
|
|
|
|
logic: { |
|
|
|
|
dynamic: false |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
iconWrapperWidth: 26 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
@ -72878,7 +72884,7 @@ BI.MultiSelectItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
items: BI.LogicFactory.createLogicItemsByDirection("left", { |
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
items: [this.checkbox], |
|
|
|
|
width: 26 |
|
|
|
|
width: o.iconWrapperWidth |
|
|
|
|
}, this.text) |
|
|
|
|
})))); |
|
|
|
|
}, |
|
|
|
@ -72927,6 +72933,7 @@ BI.SingleSelectIconTextItem = BI.inherit(BI.Single, {
|
|
|
|
|
element: this, |
|
|
|
|
cls: o.iconCls, |
|
|
|
|
once: o.once, |
|
|
|
|
iconWrapperWidth: o.iconWrapperWidth, |
|
|
|
|
selected: o.selected, |
|
|
|
|
height: o.height, |
|
|
|
|
iconHeight: o.iconHeight, |
|
|
|
@ -74276,6 +74283,58 @@ BI.TreeTextLeafItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.tree_text_leaf_item", BI.TreeTextLeafItem);/** |
|
|
|
|
* 专门为calendar的视觉加的button,作为私有button,不能配置任何属性,也不要用这个玩意 |
|
|
|
|
*/ |
|
|
|
|
BI.CalendarDateItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
return { |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.text_item", |
|
|
|
|
cls: "bi-list-item-select", |
|
|
|
|
textAlign: "center", |
|
|
|
|
whiteSpace: "normal", |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
ref: function () { |
|
|
|
|
self.text = this; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
left: o.lgap, |
|
|
|
|
right: o.rgap, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doHighLight: function () { |
|
|
|
|
this.text.doHighLight.apply(this.text, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
unHighLight: function () { |
|
|
|
|
this.text.unHighLight.apply(this.text, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function () { |
|
|
|
|
if (!this.isReadOnly()) { |
|
|
|
|
this.text.setValue.apply(this.text, arguments); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setSelected: function (b) { |
|
|
|
|
BI.CalendarDateItem.superclass.setSelected.apply(this, arguments); |
|
|
|
|
this.text.setSelected(b); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.text.getValue(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.shortcut("bi.calendar_date_item", BI.CalendarDateItem);/** |
|
|
|
|
* Created by GUY on 2015/8/28. |
|
|
|
|
* @class BI.Calendar |
|
|
|
|
* @extends BI.Widget |
|
|
|
@ -74364,7 +74423,7 @@ BI.Calendar = BI.inherit(BI.Widget, {
|
|
|
|
|
items: items, |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.center", |
|
|
|
|
hgap: 10, |
|
|
|
|
lgap: 10, |
|
|
|
|
vgap: 10 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
@ -74381,15 +74440,16 @@ BI.Calendar = BI.inherit(BI.Widget, {
|
|
|
|
|
return BI.map(item, function (j, td) { |
|
|
|
|
var month = td.lastMonth ? o.month - 1 : (td.nextMonth ? o.month + 1 : o.month); |
|
|
|
|
return BI.extend(td, { |
|
|
|
|
type: "bi.text_item", |
|
|
|
|
cls: "bi-list-item-select", |
|
|
|
|
type: "bi.calendar_date_item", |
|
|
|
|
textAlign: "center", |
|
|
|
|
whiteSpace: "normal", |
|
|
|
|
once: false, |
|
|
|
|
forceSelected: true, |
|
|
|
|
height: 24, |
|
|
|
|
value: o.year + "-" + month + "-" + td.text, |
|
|
|
|
disabled: td.lastMonth || td.nextMonth || td.disabled |
|
|
|
|
disabled: td.lastMonth || td.nextMonth || td.disabled, |
|
|
|
|
lgap: 10, |
|
|
|
|
rgap: 0 |
|
|
|
|
// selected: td.currentDay
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
@ -74403,7 +74463,6 @@ BI.Calendar = BI.inherit(BI.Widget, {
|
|
|
|
|
rows: 6, |
|
|
|
|
columnSize: [1 / 7, 1 / 7, 1 / 7, 1 / 7, 1 / 7, 1 / 7, 1 / 7], |
|
|
|
|
rowSize: 24, |
|
|
|
|
hgap: 10, |
|
|
|
|
vgap: 10 |
|
|
|
|
}))] |
|
|
|
|
}); |
|
|
|
@ -78608,7 +78667,10 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
height: 24, |
|
|
|
|
iconHeight: null, |
|
|
|
|
iconWidth: null, |
|
|
|
|
value: "" |
|
|
|
|
value: "", |
|
|
|
|
attributes: { |
|
|
|
|
tabIndex: 0 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -78623,14 +78685,16 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
iconCls: o.iconCls, |
|
|
|
|
value: o.value, |
|
|
|
|
iconHeight: o.iconHeight, |
|
|
|
|
iconWidth: o.iconWidth |
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
iconWrapperWidth: o.iconWrapperWidth |
|
|
|
|
}); |
|
|
|
|
this.popup = BI.createWidget({ |
|
|
|
|
type: "bi.icon_text_value_combo_popup", |
|
|
|
|
items: o.items, |
|
|
|
|
value: o.value, |
|
|
|
|
iconHeight: o.iconHeight, |
|
|
|
|
iconWidth: o.iconWidth |
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
iconWrapperWidth: o.iconWrapperWidth |
|
|
|
|
}); |
|
|
|
|
this.popup.on(BI.IconTextValueComboPopup.EVENT_CHANGE, function () { |
|
|
|
|
self.setValue(self.popup.getValue()); |
|
|
|
@ -78706,7 +78770,8 @@ BI.IconTextValueComboPopup = BI.inherit(BI.Pane, {
|
|
|
|
|
type: "bi.single_select_icon_text_item", |
|
|
|
|
height: 24, |
|
|
|
|
iconHeight: o.iconHeight, |
|
|
|
|
iconWidth: o.iconWidth |
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
iconWrapperWidth: o.iconWrapperWidth |
|
|
|
|
}), |
|
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE, |
|
|
|
|
layouts: [{ |
|
|
|
@ -78736,6 +78801,7 @@ BI.IconTextValueComboPopup = BI.inherit(BI.Pane, {
|
|
|
|
|
items = BI.createItems(items, { |
|
|
|
|
type: "bi.single_select_icon_text_item", |
|
|
|
|
height: 24, |
|
|
|
|
iconWrapperWidth: o.iconWrapperWidth, |
|
|
|
|
iconHeight: o.iconHeight, |
|
|
|
|
iconWidth: o.iconWidth |
|
|
|
|
}); |
|
|
|
@ -78779,6 +78845,9 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
ref: function () { |
|
|
|
|
self.combo = this; |
|
|
|
|
}, |
|
|
|
|
attributes: { |
|
|
|
|
tabIndex: 0 |
|
|
|
|
}, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.search_text_value_trigger", |
|
|
|
|
ref: function () { |
|
|
|
@ -78790,6 +78859,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
value: o.value, |
|
|
|
|
tipType: o.tipType, |
|
|
|
|
warningTitle: o.warningTitle, |
|
|
|
|
title: o.title, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.SearchTextValueTrigger.EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
@ -78800,14 +78870,14 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
popup: { |
|
|
|
|
el:{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.text_value_combo_popup", |
|
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE, |
|
|
|
|
value: o.value, |
|
|
|
|
items: o.items, |
|
|
|
|
ref: function () { |
|
|
|
|
self.popup = this; |
|
|
|
|
self.trigger.getSearcher().setAdapter(self.popup); |
|
|
|
|
// self.trigger.getSearcher().setAdapter(self.popup);
|
|
|
|
|
}, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.TextValueComboPopup.EVENT_CHANGE, |
|
|
|
@ -78823,7 +78893,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW, |
|
|
|
|
action: function () { |
|
|
|
|
self.trigger.stopEditing(); |
|
|
|
|
// self.trigger.stopEditing();
|
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
@ -78977,7 +79047,7 @@ BI.shortcut("bi.search_text_value_combo_popup", BI.SearchTextValueComboPopup);/*
|
|
|
|
|
BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, { |
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
|
baseCls: "bi-search-text-value-trigger bi-border", |
|
|
|
|
baseCls: "bi-search-text-value-trigger bi-border bi-focus-shadow", |
|
|
|
|
height: 24 |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -79000,7 +79070,8 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
}, |
|
|
|
|
text: this._digest(o.value, o.items), |
|
|
|
|
value: o.value, |
|
|
|
|
height: o.height |
|
|
|
|
height: o.height, |
|
|
|
|
tipText: "" |
|
|
|
|
}, |
|
|
|
|
popup: { |
|
|
|
|
type: "bi.search_text_value_combo_popup", |
|
|
|
@ -79367,7 +79438,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
height: 24, |
|
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE, |
|
|
|
|
text: "", |
|
|
|
|
value: "" |
|
|
|
|
value: "", |
|
|
|
|
attributes: { |
|
|
|
|
tabIndex: 0 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -80724,6 +80798,16 @@ BI.StateEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
self._showInput(); |
|
|
|
|
self.editor.focus(); |
|
|
|
|
self.editor.setValue(""); |
|
|
|
|
}, |
|
|
|
|
title: BI.isNotNull(o.tipText) ? o.tipText : function () { |
|
|
|
|
var title = ""; |
|
|
|
|
if (BI.isString(self.stateValue)) { |
|
|
|
|
title = self.stateValue; |
|
|
|
|
} |
|
|
|
|
if (BI.isArray(self.stateValue) && self.stateValue.length === 1) { |
|
|
|
|
title = self.stateValue[0]; |
|
|
|
|
} |
|
|
|
|
return title; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.text.on(BI.TextButton.EVENT_CHANGE, function () { |
|
|
|
@ -80883,32 +80967,23 @@ BI.StateEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
setState: function (v) { |
|
|
|
|
var o = this.options; |
|
|
|
|
BI.StateEditor.superclass.setValue.apply(this, arguments); |
|
|
|
|
this.stateValue = v; |
|
|
|
|
if (BI.isNumber(v)) { |
|
|
|
|
if (v === BI.Selection.All) { |
|
|
|
|
this.text.setText(BI.i18nText("BI-Select_All")); |
|
|
|
|
this.text.setTitle(""); |
|
|
|
|
this.text.element.removeClass("state-editor-infinite-text"); |
|
|
|
|
} else if (v === BI.Selection.Multi) { |
|
|
|
|
this.text.setText(BI.i18nText("BI-Select_Part")); |
|
|
|
|
this.text.setTitle(""); |
|
|
|
|
this.text.element.removeClass("state-editor-infinite-text"); |
|
|
|
|
} else { |
|
|
|
|
this.text.setText(o.text); |
|
|
|
|
this.text.setTitle(""); |
|
|
|
|
this.text.element.addClass("state-editor-infinite-text"); |
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (BI.isString(v)) { |
|
|
|
|
// if (BI.isEmpty(v)) {
|
|
|
|
|
// this.text.setText(o.text);
|
|
|
|
|
// this.text.setTitle("");
|
|
|
|
|
// this.text.element.addClass("state-editor-infinite-text");
|
|
|
|
|
// } else {
|
|
|
|
|
this.text.setText(v); |
|
|
|
|
this.text.setTitle(v); |
|
|
|
|
this.text.element.removeClass("state-editor-infinite-text"); |
|
|
|
|
// }
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (BI.isArray(v)) { |
|
|
|
@ -80917,11 +80992,9 @@ BI.StateEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
this.text.element.addClass("state-editor-infinite-text"); |
|
|
|
|
} else if (v.length === 1) { |
|
|
|
|
this.text.setText(v[0]); |
|
|
|
|
this.text.setTitle(v[0]); |
|
|
|
|
this.text.element.removeClass("state-editor-infinite-text"); |
|
|
|
|
} else { |
|
|
|
|
this.text.setText(BI.i18nText("BI-Select_Part")); |
|
|
|
|
this.text.setTitle(""); |
|
|
|
|
this.text.element.removeClass("state-editor-infinite-text"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -81696,7 +81769,8 @@ BI.SelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
hasNext: BI.emptyFn, |
|
|
|
|
onLoaded: BI.emptyFn, |
|
|
|
|
toolbar: { |
|
|
|
|
type: "bi.multi_select_bar" |
|
|
|
|
type: "bi.multi_select_bar", |
|
|
|
|
iconWrapperWidth: 36 |
|
|
|
|
}, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.list_pane" |
|
|
|
@ -86538,7 +86612,8 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
|
|
|
|
|
isHalfCheckedBySelectedValue: function (selectedValues) { |
|
|
|
|
return selectedValues.length > 0; |
|
|
|
|
}, |
|
|
|
|
halfSelected: false |
|
|
|
|
halfSelected: false, |
|
|
|
|
iconWrapperWidth: 26 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
@ -86591,7 +86666,7 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
|
|
|
|
|
type: "bi.htape", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
width: 26, |
|
|
|
|
width: o.iconWrapperWidth, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
items: [this.checkbox, this.half] |
|
|
|
@ -87816,8 +87891,7 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
cls: "select-text-label", |
|
|
|
|
textAlign: "left", |
|
|
|
|
height: o.height, |
|
|
|
|
text: o.text, |
|
|
|
|
hgap: c.hgap |
|
|
|
|
text: o.text |
|
|
|
|
}); |
|
|
|
|
this.trigerButton = BI.createWidget({ |
|
|
|
|
type: "bi.trigger_icon_button", |
|
|
|
@ -87842,7 +87916,7 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
disableSelected: true |
|
|
|
|
}, |
|
|
|
|
width: BI.isEmptyString(o.iconCls) ? 0 : (o.triggerWidth || o.height) |
|
|
|
|
width: BI.isEmptyString(o.iconCls) ? 0 : (o.iconWrapperWidth || o.height) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
el: this.text |
|
|
|
@ -87868,8 +87942,8 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
this.wrapper.resize(); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
if(iconItem.width !== (o.triggerWidth || o.height)) { |
|
|
|
|
iconItem.width = (o.triggerWidth || o.height); |
|
|
|
|
if(iconItem.width !== (o.iconWrapperWidth || o.height)) { |
|
|
|
|
iconItem.width = (o.iconWrapperWidth || o.height); |
|
|
|
|
this.wrapper.resize(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -87906,7 +87980,8 @@ BI.SelectIconTextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
iconCls: obj.iconCls, |
|
|
|
|
height: o.height, |
|
|
|
|
iconHeight: o.iconHeight, |
|
|
|
|
iconWidth: o.iconWidth |
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
iconWrapperWidth: o.iconWrapperWidth |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -88017,7 +88092,7 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.SelectTextTrigger.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-select-text-trigger bi-border", |
|
|
|
|
baseCls: "bi-select-text-trigger bi-border bi-focus-shadow", |
|
|
|
|
height: 24 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -89099,7 +89174,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: this.calendar, |
|
|
|
|
left: 10, |
|
|
|
|
left: 0, |
|
|
|
|
right: 10 |
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
@ -91211,8 +91286,7 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
bgap: 5 |
|
|
|
|
} |
|
|
|
|
}], |
|
|
|
|
ref: function () { |
|
|
|
|
self.workDay = this; |
|
|
|
@ -91238,16 +91312,19 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this; |
|
|
|
|
var items = BI.map(values, function (idx, value) { |
|
|
|
|
return { |
|
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
|
dateType: value.dateType, |
|
|
|
|
value: value.value, |
|
|
|
|
offset: value.offset, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
el: { |
|
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
|
dateType: value.dateType, |
|
|
|
|
value: value.value, |
|
|
|
|
offset: value.offset, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
tgap: idx === 0 ? 5 : 0 |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -93327,7 +93404,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
var conf = BI.SearchEditor.superclass._defaultConfig.apply(this, arguments); |
|
|
|
|
return BI.extend(conf, { |
|
|
|
|
baseCls: "bi-search-editor bi-border", |
|
|
|
|
baseCls: "bi-search-editor bi-border bi-focus-shadow", |
|
|
|
|
height: 24, |
|
|
|
|
errorText: "", |
|
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
@ -98822,7 +98899,8 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
logic: this.options.logic, |
|
|
|
|
cls: "bi-list-item-active", |
|
|
|
|
height: 24, |
|
|
|
|
selected: this.isAllSelected() |
|
|
|
|
selected: this.isAllSelected(), |
|
|
|
|
iconWrapperWidth: 36 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -98996,8 +99074,10 @@ BI.MultiSelectNoBarLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
_createItems: function (items) { |
|
|
|
|
return BI.createItems(items, { |
|
|
|
|
type: "bi.multi_select_item", |
|
|
|
|
cls: "bi-list-item-active", |
|
|
|
|
logic: this.options.logic, |
|
|
|
|
height: 24 |
|
|
|
|
height: 24, |
|
|
|
|
iconWrapperWidth: 36 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -99592,7 +99672,9 @@ BI.MultiSelectSearchLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
dynamic: false |
|
|
|
|
}, |
|
|
|
|
height: 24, |
|
|
|
|
selected: this.isAllSelected() |
|
|
|
|
selected: this.isAllSelected(), |
|
|
|
|
cls: "bi-list-item-active", |
|
|
|
|
iconWrapperWidth: 36 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -102409,7 +102491,7 @@ BI.shortcut("bi.multi_tree_searcher", BI.MultiTreeSearcher);/**
|
|
|
|
|
BI.NumberEditor = BI.inherit(BI.Widget, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.NumberEditor.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-number-editor bi-border", |
|
|
|
|
baseCls: "bi-number-editor bi-border bi-focus-shadow", |
|
|
|
|
validationChecker: function () { |
|
|
|
|
return true; |
|
|
|
|
}, |
|
|
|
@ -105046,8 +105128,10 @@ BI.SearchMultiSelectLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
return BI.createItems(items, { |
|
|
|
|
type: "bi.multi_select_item", |
|
|
|
|
logic: this.options.logic, |
|
|
|
|
cls: "bi-list-item-active", |
|
|
|
|
height: 24, |
|
|
|
|
selected: this.isAllSelected() |
|
|
|
|
selected: this.isAllSelected(), |
|
|
|
|
iconWrapperWidth: 36 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -105628,7 +105712,10 @@ BI.SelectTreeCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
height: 30, |
|
|
|
|
text: "", |
|
|
|
|
items: [], |
|
|
|
|
value: "" |
|
|
|
|
value: "", |
|
|
|
|
attributes: { |
|
|
|
|
tabIndex: 0 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -109355,7 +109442,10 @@ BI.SingleTreeCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
height: 24, |
|
|
|
|
text: "", |
|
|
|
|
items: [], |
|
|
|
|
value: "" |
|
|
|
|
value: "", |
|
|
|
|
attributes: { |
|
|
|
|
tabIndex: 0 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|