|
|
@ -50529,12 +50529,16 @@ BI.FormulaEditor = BI.inherit(BI.Single, { |
|
|
|
return this.editor.getValue(true, function (line) { |
|
|
|
return this.editor.getValue(true, function (line) { |
|
|
|
var rawText = line.text, value = line.text, num = 0; |
|
|
|
var rawText = line.text, value = line.text, num = 0; |
|
|
|
value.text = rawText; |
|
|
|
value.text = rawText; |
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
var markedSpans = _.clone(line.markedSpans) || []; |
|
|
|
var markedSpans = _.clone(line.markedSpans) || []; |
|
|
|
markedSpans.sort(function (a, b) { |
|
|
|
markedSpans.sort(function (a, b) { |
|
|
|
return a.from > b.from; |
|
|
|
return a.from > b.from; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
_.forEach(markedSpans, function (i, ms) { |
|
|
|
_.forEach(markedSpans, function (i, ms) { |
|
|
|
|
|
|
|
======= |
|
|
|
|
|
|
|
_.forEach(line.markedSpans, function (i, ms) { |
|
|
|
|
|
|
|
>>>>>>> master |
|
|
|
|
|
|
|
|
|
|
|
switch (i.marker.className) { |
|
|
|
switch (i.marker.className) { |
|
|
|
case "fieldName": |
|
|
|
case "fieldName": |
|
|
@ -50555,12 +50559,16 @@ BI.FormulaEditor = BI.inherit(BI.Single, { |
|
|
|
var v = this.editor.getValue("\n", function (line) { |
|
|
|
var v = this.editor.getValue("\n", function (line) { |
|
|
|
var rawText = line.text, value = line.text, num = 0; |
|
|
|
var rawText = line.text, value = line.text, num = 0; |
|
|
|
value.text = rawText; |
|
|
|
value.text = rawText; |
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
var markedSpans = _.clone(line.markedSpans) || []; |
|
|
|
var markedSpans = _.clone(line.markedSpans) || []; |
|
|
|
markedSpans.sort(function (a, b) { |
|
|
|
markedSpans.sort(function (a, b) { |
|
|
|
return a.from > b.from; |
|
|
|
return a.from > b.from; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
_.forEach(markedSpans, function (i, ms) { |
|
|
|
_.forEach(markedSpans, function (i, ms) { |
|
|
|
|
|
|
|
======= |
|
|
|
|
|
|
|
_.forEach(line.markedSpans, function (i, ms) { |
|
|
|
|
|
|
|
>>>>>>> master |
|
|
|
switch (i.marker.className) { |
|
|
|
switch (i.marker.className) { |
|
|
|
case "fieldName": |
|
|
|
case "fieldName": |
|
|
|
case "error-field": |
|
|
|
case "error-field": |
|
|
@ -90028,7 +90036,12 @@ BI.DownListCombo = BI.inherit(BI.Widget, { |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
|
el: this.popupview, |
|
|
|
el: this.popupview, |
|
|
|
stopPropagation: true, |
|
|
|
stopPropagation: true, |
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
maxHeight: 1000 |
|
|
|
maxHeight: 1000 |
|
|
|
|
|
|
|
======= |
|
|
|
|
|
|
|
maxHeight: 1000, |
|
|
|
|
|
|
|
minWidth: 140 |
|
|
|
|
|
|
|
>>>>>>> master |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -90110,7 +90123,11 @@ BI.DownListGroup = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.DownListGroup.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.DownListGroup.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
BI.shortcut("bi.down_list_group", BI.DownListGroup);BI.DownListItem = BI.inherit(BI.Single, { |
|
|
|
BI.shortcut("bi.down_list_group", BI.DownListGroup);BI.DownListItem = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
======= |
|
|
|
|
|
|
|
BI.shortcut("bi.down_list_group", BI.DownListGroup);BI.DownListItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
|
|
|
>>>>>>> master |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
var conf = BI.DownListItem.superclass._defaultConfig.apply(this, arguments); |
|
|
|
var conf = BI.DownListItem.superclass._defaultConfig.apply(this, arguments); |
|
|
|
return BI.extend(conf, { |
|
|
|
return BI.extend(conf, { |
|
|
@ -90133,6 +90150,7 @@ BI.shortcut("bi.down_list_group", BI.DownListGroup);BI.DownListItem = BI.inherit |
|
|
|
BI.DownListItem.superclass._init.apply(this, arguments); |
|
|
|
BI.DownListItem.superclass._init.apply(this, arguments); |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this.text = BI.createWidget({ |
|
|
|
this.text = BI.createWidget({ |
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
type: "bi.icon_text_item", |
|
|
|
type: "bi.icon_text_item", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
@ -90186,6 +90204,79 @@ BI.shortcut("bi.down_list_group", BI.DownListGroup);BI.DownListItem = BI.inherit |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
return this.text.getValue(); |
|
|
|
return this.text.getValue(); |
|
|
|
|
|
|
|
======= |
|
|
|
|
|
|
|
type: "bi.label", |
|
|
|
|
|
|
|
cls: "list-item-text", |
|
|
|
|
|
|
|
textAlign: "left", |
|
|
|
|
|
|
|
hgap: o.textHgap, |
|
|
|
|
|
|
|
vgap: o.textVgap, |
|
|
|
|
|
|
|
lgap: o.textLgap, |
|
|
|
|
|
|
|
rgap: o.textRgap, |
|
|
|
|
|
|
|
text: o.text, |
|
|
|
|
|
|
|
value: o.value, |
|
|
|
|
|
|
|
keyword: o.keyword, |
|
|
|
|
|
|
|
height: o.height |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.icon = BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
|
|
|
width: 36, |
|
|
|
|
|
|
|
height: o.height, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.icon", |
|
|
|
|
|
|
|
width: o.iconWidth, |
|
|
|
|
|
|
|
height: o.iconHeight |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.createWidget(BI.extend({ |
|
|
|
|
|
|
|
element: this |
|
|
|
|
|
|
|
}, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left), BI.extend(o.logic, { |
|
|
|
|
|
|
|
items: BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, this.icon, this.text) |
|
|
|
|
|
|
|
})))); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setValue: function () { |
|
|
|
|
|
|
|
if (!this.isReadOnly()) { |
|
|
|
|
|
|
|
this.text.setValue.apply(this.text, arguments); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
|
|
|
return this.text.getValue(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setText: function () { |
|
|
|
|
|
|
|
this.text.setText.apply(this.text, arguments); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getText: function () { |
|
|
|
|
|
|
|
return this.text.getText(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doClick: function () { |
|
|
|
|
|
|
|
BI.DownListItem.superclass.doClick.apply(this, arguments); |
|
|
|
|
|
|
|
if (this.isValid()) { |
|
|
|
|
|
|
|
this.fireEvent(BI.DownListItem.EVENT_CHANGE, this.getValue(), this); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doRedMark: function () { |
|
|
|
|
|
|
|
this.text.doRedMark.apply(this.text, arguments); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unRedMark: function () { |
|
|
|
|
|
|
|
this.text.unRedMark.apply(this.text, arguments); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doHighLight: function () { |
|
|
|
|
|
|
|
this.text.doHighLight.apply(this.text, arguments); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unHighLight: function () { |
|
|
|
|
|
|
|
this.text.unHighLight.apply(this.text, arguments); |
|
|
|
|
|
|
|
>>>>>>> master |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.DownListItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.DownListItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
@ -90218,7 +90309,11 @@ BI.shortcut("bi.down_list_item", BI.DownListItem);BI.DownListGroupItem = BI.inhe |
|
|
|
this.icon1 = BI.createWidget({ |
|
|
|
this.icon1 = BI.createWidget({ |
|
|
|
type: "bi.icon_button", |
|
|
|
type: "bi.icon_button", |
|
|
|
cls: o.iconCls1, |
|
|
|
cls: o.iconCls1, |
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
width: 24, |
|
|
|
width: 24, |
|
|
|
|
|
|
|
======= |
|
|
|
|
|
|
|
width: 36, |
|
|
|
|
|
|
|
>>>>>>> master |
|
|
|
forceNotSelected: true, |
|
|
|
forceNotSelected: true, |
|
|
|
selected: this._digest(o.value) |
|
|
|
selected: this._digest(o.value) |
|
|
|
}); |
|
|
|
}); |
|
|
|