|
|
@ -54052,10 +54052,11 @@ 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, replacedWith: $("<span class='param start end' />").text(param)[0]}; |
|
|
|
var className = "param"; |
|
|
|
if (BI.isNotNull(param.match(/^<!.*!>$/))) { |
|
|
|
if (BI.isNotNull(param.match(/^<!.*!>$/))) { |
|
|
|
options.className = "error-param"; |
|
|
|
className = "error-param"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
var options = {className: className, atomic: true, replacedWith: $("<span class='" + className + " 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(" "); |
|
|
@ -76132,7 +76133,7 @@ BI.CustomColorChooser = BI.inherit(BI.Widget, { |
|
|
|
BI.CustomColorChooser.superclass._init.apply(this, arguments); |
|
|
|
BI.CustomColorChooser.superclass._init.apply(this, arguments); |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this.editor = BI.createWidget(o.editor, { |
|
|
|
this.editor = BI.createWidget(o.editor, { |
|
|
|
type: "bi.color_picker_editor" |
|
|
|
type: "bi.simple_color_picker_editor" |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.editor.on(BI.ColorPickerEditor.EVENT_CHANGE, function () { |
|
|
|
this.editor.on(BI.ColorPickerEditor.EVENT_CHANGE, function () { |
|
|
|
self.setValue(this.getValue()); |
|
|
|
self.setValue(this.getValue()); |
|
|
@ -76162,7 +76163,7 @@ BI.CustomColorChooser = BI.inherit(BI.Widget, { |
|
|
|
el: this.farbtastic, |
|
|
|
el: this.farbtastic, |
|
|
|
left: 15, |
|
|
|
left: 15, |
|
|
|
right: 15, |
|
|
|
right: 15, |
|
|
|
top: 10 |
|
|
|
top: 7 |
|
|
|
}], |
|
|
|
}], |
|
|
|
height: 215 |
|
|
|
height: 215 |
|
|
|
}] |
|
|
|
}] |
|
|
@ -77200,9 +77201,9 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_setEnable: function (enable) { |
|
|
|
_setEnable: function () { |
|
|
|
BI.ColorPickerEditor.superclass._setEnable.apply(this, arguments); |
|
|
|
BI.ColorPickerEditor.superclass._setEnable.apply(this, arguments); |
|
|
|
this.mask.setVisible(!enable); |
|
|
|
this._showPreColor(this.getValue()); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (color) { |
|
|
|
setValue: function (color) { |
|
|
@ -77264,7 +77265,7 @@ BI.SimpleColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
return BI.extend(BI.SimpleColorPickerEditor.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SimpleColorPickerEditor.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-color-picker-editor", |
|
|
|
baseCls: "bi-color-picker-editor", |
|
|
|
// width: 200,
|
|
|
|
// width: 200,
|
|
|
|
height: 20 |
|
|
|
height: 30 |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -77274,8 +77275,8 @@ BI.SimpleColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
this.colorShow = BI.createWidget({ |
|
|
|
this.colorShow = BI.createWidget({ |
|
|
|
type: "bi.layout", |
|
|
|
type: "bi.layout", |
|
|
|
cls: "color-picker-editor-display bi-card", |
|
|
|
cls: "color-picker-editor-display bi-card", |
|
|
|
height: 20, |
|
|
|
height: 16, |
|
|
|
width: 40 |
|
|
|
width: 16 |
|
|
|
}); |
|
|
|
}); |
|
|
|
var RGB = BI.createWidgets(BI.createItems([{text: "R"}, {text: "G"}, {text: "B"}], { |
|
|
|
var RGB = BI.createWidgets(BI.createItems([{text: "R"}, {text: "G"}, {text: "B"}], { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
@ -77314,9 +77315,9 @@ BI.SimpleColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: this.colorShow, |
|
|
|
el: this.colorShow, |
|
|
|
width: 40, |
|
|
|
width: 16, |
|
|
|
lgap: 5, |
|
|
|
lgap: 20, |
|
|
|
rgap: 5 |
|
|
|
rgap: 15 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
el: RGB[0], |
|
|
|
el: RGB[0], |
|
|
|
width: 20 |
|
|
|
width: 20 |
|
|
@ -101388,6 +101389,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, { |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
toggle: false, |
|
|
|
toggle: false, |
|
|
|
|
|
|
|
trigger: o.trigger, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
|
adjustLength: 1, |
|
|
|
adjustLength: 1, |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
@ -107831,7 +107833,7 @@ BI.SignTextEditor = BI.inherit(BI.Widget, { |
|
|
|
self.fireEvent(BI.SignTextEditor.EVENT_CLICK_LABEL); |
|
|
|
self.fireEvent(BI.SignTextEditor.EVENT_CLICK_LABEL); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.createWidget({ |
|
|
|
this.formatTextWrapper = BI.createWidget({ |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
@ -108249,6 +108251,8 @@ BI.SingleSlider = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_setLabelPosition: function (percent) { |
|
|
|
_setLabelPosition: function (percent) { |
|
|
|
this.label.element.css({left: percent + "%"}); |
|
|
|
this.label.element.css({left: percent + "%"}); |
|
|
|
|
|
|
|
// this.label.formatTextWrapper.attr("items")[0].left = percent + "%";
|
|
|
|
|
|
|
|
// this.label.formatTextWrapper.resize();
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_setSliderPosition: function (percent) { |
|
|
|
_setSliderPosition: function (percent) { |
|
|
@ -113051,6 +113055,7 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, { |
|
|
|
} |
|
|
|
} |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.multi_tree_combo", |
|
|
|
type: "bi.multi_tree_combo", |
|
|
|
|
|
|
|
trigger: o.trigger, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
@ -113071,7 +113076,8 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, { |
|
|
|
return this.combo.getValue(); |
|
|
|
return this.combo.getValue(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function () { |
|
|
|
populate: function (items) { |
|
|
|
|
|
|
|
this._initData(items); |
|
|
|
this.combo.populate.apply(this.combo, arguments); |
|
|
|
this.combo.populate.apply(this.combo, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|