|
|
|
@ -53364,6 +53364,7 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
logic: { |
|
|
|
|
dynamic: false |
|
|
|
|
}, |
|
|
|
|
iconWrapperWidth: null, |
|
|
|
|
iconHeight: null, |
|
|
|
|
iconWidth: null, |
|
|
|
|
textHgap: 0, |
|
|
|
@ -53390,7 +53391,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 +72844,8 @@ BI.MultiSelectItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
height: 24, |
|
|
|
|
logic: { |
|
|
|
|
dynamic: false |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
iconWrapperWidth: 26 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
@ -72878,7 +72880,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 +72929,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, |
|
|
|
@ -78608,7 +78611,10 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
height: 24, |
|
|
|
|
iconHeight: null, |
|
|
|
|
iconWidth: null, |
|
|
|
|
value: "" |
|
|
|
|
value: "", |
|
|
|
|
attributes: { |
|
|
|
|
tabIndex: 0 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -78623,14 +78629,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 +78714,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 +78745,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 +78789,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 +78803,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 +78814,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 +78837,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"); |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
@ -79000,7 +79014,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 +79382,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
height: 24, |
|
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE, |
|
|
|
|
text: "", |
|
|
|
|
value: "" |
|
|
|
|
value: "", |
|
|
|
|
attributes: { |
|
|
|
|
tabIndex: 0 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -80724,6 +80742,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 +80911,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 +80936,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 +81713,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 +86556,8 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
|
|
|
|
|
isHalfCheckedBySelectedValue: function (selectedValues) { |
|
|
|
|
return selectedValues.length > 0; |
|
|
|
|
}, |
|
|
|
|
halfSelected: false |
|
|
|
|
halfSelected: false, |
|
|
|
|
iconWrapperWidth: 26 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
@ -86591,7 +86610,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 +87835,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 +87860,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 +87886,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 +87924,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 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -98822,7 +98841,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 +99016,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 +99614,9 @@ BI.MultiSelectSearchLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
dynamic: false |
|
|
|
|
}, |
|
|
|
|
height: 24, |
|
|
|
|
selected: this.isAllSelected() |
|
|
|
|
selected: this.isAllSelected(), |
|
|
|
|
cls: "bi-list-item-active", |
|
|
|
|
iconWrapperWidth: 36 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -105046,8 +105070,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 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|