Browse Source

update

master
iapyang 6 years ago
parent
commit
df44599a4a
  1. 16
      dist/_fineui.min.js
  2. 9
      dist/base.js
  3. 85
      dist/bundle.js
  4. 68
      dist/bundle.min.js
  5. 85
      dist/fineui.js
  6. 18
      dist/fineui.min.js
  7. 68
      dist/widget.js
  8. 2
      src/base/formula/formulaeditor.js
  9. 2
      src/base/single/editor/editor.code.js
  10. 4
      src/base/sql/editor.sql.js

16
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

9
dist/base.js vendored

@ -14659,7 +14659,7 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
if (BI.isNotNull(fieldFormattedName.match("^<!.*!>$")) && !force) { if (BI.isNotNull(fieldFormattedName.match("^<!.*!>$")) && !force) {
className = "error-field"; className = "error-field";
} }
this.editor.markText(from, to, {className: className, atomic: true, startStyle: "start", endStyle: "end", value: value}); this.editor.markText(from, to, {className: className, atomic: true, startStyle: "start", endStyle: "end", value: value, replacedWith: $("<span class='" + className + " start end' />").text(showName)[0]});
this.editor.focus(); this.editor.focus();
}, },
@ -18243,7 +18243,7 @@ BI.CodeEditor = BI.inherit(BI.Single, {
// 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下 // 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下
this.editor.replaceSelection("\u200b" + param + "\u200b"); this.editor.replaceSelection("\u200b" + param + "\u200b");
var to = this.editor.getCursor(); var to = this.editor.getCursor();
var options = {className: "param", atomic: true}; var options = {className: "param", atomic: true, replacedWith: $("<span class='param start end' />").text(param)[0]};
if (BI.isNotNull(param.match(/^<!.*!>$/))) { if (BI.isNotNull(param.match(/^<!.*!>$/))) {
options.className = "error-param"; options.className = "error-param";
} }
@ -21515,7 +21515,7 @@ BI.SQLEditor = BI.inherit(BI.Widget, {
var from = this.editor.getCursor(); var from = this.editor.getCursor();
this.editor.replaceSelection(param); this.editor.replaceSelection(param);
var to = this.editor.getCursor(); var to = this.editor.getCursor();
var options = {className: "param", atomic: true}; var options = {className: "param", atomic: true, replacedWith: $("<span class='param start end' />").text(param)[0]};
options.value = value; options.value = value;
this.editor.markText(from, to, options); this.editor.markText(from, to, options);
this.editor.replaceSelection(" "); this.editor.replaceSelection(" ");
@ -21582,7 +21582,8 @@ BI.SQLEditor = BI.inherit(BI.Widget, {
}); });
} }
}); });
BI.shortcut("bi.sql_editor", BI.SQLEditor);// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. BI.shortcut("bi.sql_editor", BI.SQLEditor);
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.

85
dist/bundle.js vendored

@ -50464,7 +50464,7 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
if (BI.isNotNull(fieldFormattedName.match("^<!.*!>$")) && !force) { if (BI.isNotNull(fieldFormattedName.match("^<!.*!>$")) && !force) {
className = "error-field"; className = "error-field";
} }
this.editor.markText(from, to, {className: className, atomic: true, startStyle: "start", endStyle: "end", value: value}); this.editor.markText(from, to, {className: className, atomic: true, startStyle: "start", endStyle: "end", value: value, replacedWith: $("<span class='" + className + " start end' />").text(showName)[0]});
this.editor.focus(); this.editor.focus();
}, },
@ -50529,16 +50529,12 @@ 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":
@ -50559,16 +50555,12 @@ 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":
@ -54056,7 +54048,7 @@ BI.CodeEditor = BI.inherit(BI.Single, {
// 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下 // 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下
this.editor.replaceSelection("\u200b" + param + "\u200b"); this.editor.replaceSelection("\u200b" + param + "\u200b");
var to = this.editor.getCursor(); var to = this.editor.getCursor();
var options = {className: "param", atomic: true}; var options = {className: "param", atomic: true, replacedWith: $("<span class='param start end' />").text(param)[0]};
if (BI.isNotNull(param.match(/^<!.*!>$/))) { if (BI.isNotNull(param.match(/^<!.*!>$/))) {
options.className = "error-param"; options.className = "error-param";
} }
@ -57328,7 +57320,7 @@ BI.SQLEditor = BI.inherit(BI.Widget, {
var from = this.editor.getCursor(); var from = this.editor.getCursor();
this.editor.replaceSelection(param); this.editor.replaceSelection(param);
var to = this.editor.getCursor(); var to = this.editor.getCursor();
var options = {className: "param", atomic: true}; var options = {className: "param", atomic: true, replacedWith: $("<span class='param start end' />").text(param)[0]};
options.value = value; options.value = value;
this.editor.markText(from, to, options); this.editor.markText(from, to, options);
this.editor.replaceSelection(" "); this.editor.replaceSelection(" ");
@ -57395,7 +57387,8 @@ BI.SQLEditor = BI.inherit(BI.Widget, {
}); });
} }
}); });
BI.shortcut("bi.sql_editor", BI.SQLEditor);// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. BI.shortcut("bi.sql_editor", BI.SQLEditor);
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
@ -90036,12 +90029,8 @@ 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 minWidth: 140
>>>>>>> master
} }
}); });
@ -90123,11 +90112,7 @@ 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.BasicButton, { 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, {
@ -90150,61 +90135,6 @@ 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",
element: this,
height: o.height,
text: o.text,
value: o.value,
logic: o.logic,
selected: o.selected,
disabled: o.disabled,
iconHeight: o.iconHeight,
iconWidth: o.iconWidth,
textHgap: o.textHgap,
textVgap: o.textVgap,
textLgap: o.textLgap,
textRgap: o.textRgap,
father: o.father,
bubble: o.bubble
});
this.text.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
});
this.text.on(BI.IconTextItem.EVENT_CHANGE, function () {
self.fireEvent(BI.DownListItem.EVENT_CHANGE);
});
// this.setSelected(o.selected);
},
doRedMark: function () {
this.text.doRedMark.apply(this.text, arguments);
},
unRedMark: function () {
this.text.unRedMark.apply(this.text, arguments);
},
isSelected: function () {
return this.text.isSelected();
},
setSelected: function (b) {
this.text.setSelected(b);
// if (b === true) {
// this.element.addClass("dot-e-font");
// } else {
// this.element.removeClass("dot-e-font");
// }
},
setValue: function (v) {
this.text.setValue(v);
},
getValue: function () {
return this.text.getValue();
=======
type: "bi.label", type: "bi.label",
cls: "list-item-text", cls: "list-item-text",
textAlign: "left", textAlign: "left",
@ -90276,7 +90206,6 @@ BI.shortcut("bi.down_list_group", BI.DownListGroup);BI.DownListItem = BI.inherit
unHighLight: function () { unHighLight: function () {
this.text.unHighLight.apply(this.text, arguments); this.text.unHighLight.apply(this.text, arguments);
>>>>>>> master
} }
}); });
BI.DownListItem.EVENT_CHANGE = "EVENT_CHANGE"; BI.DownListItem.EVENT_CHANGE = "EVENT_CHANGE";
@ -90309,11 +90238,7 @@ 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: 36, width: 36,
>>>>>>> master
forceNotSelected: true, forceNotSelected: true,
selected: this._digest(o.value) selected: this._digest(o.value)
}); });

68
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

85
dist/fineui.js vendored

@ -50713,7 +50713,7 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
if (BI.isNotNull(fieldFormattedName.match("^<!.*!>$")) && !force) { if (BI.isNotNull(fieldFormattedName.match("^<!.*!>$")) && !force) {
className = "error-field"; className = "error-field";
} }
this.editor.markText(from, to, {className: className, atomic: true, startStyle: "start", endStyle: "end", value: value}); this.editor.markText(from, to, {className: className, atomic: true, startStyle: "start", endStyle: "end", value: value, replacedWith: $("<span class='" + className + " start end' />").text(showName)[0]});
this.editor.focus(); this.editor.focus();
}, },
@ -50778,16 +50778,12 @@ 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":
@ -50808,16 +50804,12 @@ 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":
@ -54305,7 +54297,7 @@ BI.CodeEditor = BI.inherit(BI.Single, {
// 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下 // 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下
this.editor.replaceSelection("\u200b" + param + "\u200b"); this.editor.replaceSelection("\u200b" + param + "\u200b");
var to = this.editor.getCursor(); var to = this.editor.getCursor();
var options = {className: "param", atomic: true}; var options = {className: "param", atomic: true, replacedWith: $("<span class='param start end' />").text(param)[0]};
if (BI.isNotNull(param.match(/^<!.*!>$/))) { if (BI.isNotNull(param.match(/^<!.*!>$/))) {
options.className = "error-param"; options.className = "error-param";
} }
@ -57577,7 +57569,7 @@ BI.SQLEditor = BI.inherit(BI.Widget, {
var from = this.editor.getCursor(); var from = this.editor.getCursor();
this.editor.replaceSelection(param); this.editor.replaceSelection(param);
var to = this.editor.getCursor(); var to = this.editor.getCursor();
var options = {className: "param", atomic: true}; var options = {className: "param", atomic: true, replacedWith: $("<span class='param start end' />").text(param)[0]};
options.value = value; options.value = value;
this.editor.markText(from, to, options); this.editor.markText(from, to, options);
this.editor.replaceSelection(" "); this.editor.replaceSelection(" ");
@ -57644,7 +57636,8 @@ BI.SQLEditor = BI.inherit(BI.Widget, {
}); });
} }
}); });
BI.shortcut("bi.sql_editor", BI.SQLEditor);// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. BI.shortcut("bi.sql_editor", BI.SQLEditor);
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
@ -90285,12 +90278,8 @@ 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 minWidth: 140
>>>>>>> master
} }
}); });
@ -90372,11 +90361,7 @@ 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.BasicButton, { 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, {
@ -90399,61 +90384,6 @@ 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",
element: this,
height: o.height,
text: o.text,
value: o.value,
logic: o.logic,
selected: o.selected,
disabled: o.disabled,
iconHeight: o.iconHeight,
iconWidth: o.iconWidth,
textHgap: o.textHgap,
textVgap: o.textVgap,
textLgap: o.textLgap,
textRgap: o.textRgap,
father: o.father,
bubble: o.bubble
});
this.text.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
});
this.text.on(BI.IconTextItem.EVENT_CHANGE, function () {
self.fireEvent(BI.DownListItem.EVENT_CHANGE);
});
// this.setSelected(o.selected);
},
doRedMark: function () {
this.text.doRedMark.apply(this.text, arguments);
},
unRedMark: function () {
this.text.unRedMark.apply(this.text, arguments);
},
isSelected: function () {
return this.text.isSelected();
},
setSelected: function (b) {
this.text.setSelected(b);
// if (b === true) {
// this.element.addClass("dot-e-font");
// } else {
// this.element.removeClass("dot-e-font");
// }
},
setValue: function (v) {
this.text.setValue(v);
},
getValue: function () {
return this.text.getValue();
=======
type: "bi.label", type: "bi.label",
cls: "list-item-text", cls: "list-item-text",
textAlign: "left", textAlign: "left",
@ -90525,7 +90455,6 @@ BI.shortcut("bi.down_list_group", BI.DownListGroup);BI.DownListItem = BI.inherit
unHighLight: function () { unHighLight: function () {
this.text.unHighLight.apply(this.text, arguments); this.text.unHighLight.apply(this.text, arguments);
>>>>>>> master
} }
}); });
BI.DownListItem.EVENT_CHANGE = "EVENT_CHANGE"; BI.DownListItem.EVENT_CHANGE = "EVENT_CHANGE";
@ -90558,11 +90487,7 @@ 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: 36, width: 36,
>>>>>>> master
forceNotSelected: true, forceNotSelected: true,
selected: this._digest(o.value) selected: this._digest(o.value)
}); });

18
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

68
dist/widget.js vendored

@ -2271,12 +2271,8 @@ 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 minWidth: 140
>>>>>>> master
} }
}); });
@ -2358,11 +2354,7 @@ 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.BasicButton, { 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, {
@ -2385,61 +2377,6 @@ 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",
element: this,
height: o.height,
text: o.text,
value: o.value,
logic: o.logic,
selected: o.selected,
disabled: o.disabled,
iconHeight: o.iconHeight,
iconWidth: o.iconWidth,
textHgap: o.textHgap,
textVgap: o.textVgap,
textLgap: o.textLgap,
textRgap: o.textRgap,
father: o.father,
bubble: o.bubble
});
this.text.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
});
this.text.on(BI.IconTextItem.EVENT_CHANGE, function () {
self.fireEvent(BI.DownListItem.EVENT_CHANGE);
});
// this.setSelected(o.selected);
},
doRedMark: function () {
this.text.doRedMark.apply(this.text, arguments);
},
unRedMark: function () {
this.text.unRedMark.apply(this.text, arguments);
},
isSelected: function () {
return this.text.isSelected();
},
setSelected: function (b) {
this.text.setSelected(b);
// if (b === true) {
// this.element.addClass("dot-e-font");
// } else {
// this.element.removeClass("dot-e-font");
// }
},
setValue: function (v) {
this.text.setValue(v);
},
getValue: function () {
return this.text.getValue();
=======
type: "bi.label", type: "bi.label",
cls: "list-item-text", cls: "list-item-text",
textAlign: "left", textAlign: "left",
@ -2511,7 +2448,6 @@ BI.shortcut("bi.down_list_group", BI.DownListGroup);BI.DownListItem = BI.inherit
unHighLight: function () { unHighLight: function () {
this.text.unHighLight.apply(this.text, arguments); this.text.unHighLight.apply(this.text, arguments);
>>>>>>> master
} }
}); });
BI.DownListItem.EVENT_CHANGE = "EVENT_CHANGE"; BI.DownListItem.EVENT_CHANGE = "EVENT_CHANGE";
@ -2544,11 +2480,7 @@ 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: 36, width: 36,
>>>>>>> master
forceNotSelected: true, forceNotSelected: true,
selected: this._digest(o.value) selected: this._digest(o.value)
}); });

2
src/base/formula/formulaeditor.js

@ -137,7 +137,7 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
if (BI.isNotNull(fieldFormattedName.match("^<!.*!>$")) && !force) { if (BI.isNotNull(fieldFormattedName.match("^<!.*!>$")) && !force) {
className = "error-field"; className = "error-field";
} }
this.editor.markText(from, to, {className: className, atomic: true, startStyle: "start", endStyle: "end", value: value}); this.editor.markText(from, to, {className: className, atomic: true, startStyle: "start", endStyle: "end", value: value, replacedWith: $("<span class='" + className + " start end' />").text(showName)[0]});
this.editor.focus(); this.editor.focus();
}, },

2
src/base/single/editor/editor.code.js

@ -124,7 +124,7 @@ BI.CodeEditor = BI.inherit(BI.Single, {
// 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下 // 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下
this.editor.replaceSelection("\u200b" + param + "\u200b"); this.editor.replaceSelection("\u200b" + param + "\u200b");
var to = this.editor.getCursor(); var to = this.editor.getCursor();
var options = {className: "param", atomic: true}; var options = {className: "param", atomic: true, replacedWith: $("<span class='param start end' />").text(param)[0]};
if (BI.isNotNull(param.match(/^<!.*!>$/))) { if (BI.isNotNull(param.match(/^<!.*!>$/))) {
options.className = "error-param"; options.className = "error-param";
} }

4
src/base/sql/editor.sql.js

@ -90,7 +90,7 @@ BI.SQLEditor = BI.inherit(BI.Widget, {
var from = this.editor.getCursor(); var from = this.editor.getCursor();
this.editor.replaceSelection(param); this.editor.replaceSelection(param);
var to = this.editor.getCursor(); var to = this.editor.getCursor();
var options = {className: "param", atomic: true}; var options = {className: "param", atomic: true, replacedWith: $("<span class='param start end' />").text(param)[0]};
options.value = value; options.value = value;
this.editor.markText(from, to, options); this.editor.markText(from, to, options);
this.editor.replaceSelection(" "); this.editor.replaceSelection(" ");
@ -157,4 +157,4 @@ BI.SQLEditor = BI.inherit(BI.Widget, {
}); });
} }
}); });
BI.shortcut("bi.sql_editor", BI.SQLEditor); BI.shortcut("bi.sql_editor", BI.SQLEditor);

Loading…
Cancel
Save