|
|
@ -36196,7 +36196,7 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
// opt: {container: '', belowMouse: false}
|
|
|
|
// opt: {container: '', belowMouse: false}
|
|
|
|
setTitle: function (title, opt) { |
|
|
|
setTitle: function (title, opt) { |
|
|
|
this.options.title = title; |
|
|
|
this.options.title = title; |
|
|
|
if (BI.isKey(title)) { |
|
|
|
if (BI.isKey(title) || BI.isFunction(title)) { |
|
|
|
this.enableHover(opt); |
|
|
|
this.enableHover(opt); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.disabledHover(); |
|
|
|
this.disabledHover(); |
|
|
@ -36205,7 +36205,7 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
setWarningTitle: function (title, opt) { |
|
|
|
setWarningTitle: function (title, opt) { |
|
|
|
this.options.warningTitle = title; |
|
|
|
this.options.warningTitle = title; |
|
|
|
if (BI.isKey(title)) { |
|
|
|
if (BI.isKey(title) || BI.isFunction(title)) { |
|
|
|
this.enableHover(opt); |
|
|
|
this.enableHover(opt); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.disabledHover(); |
|
|
|
this.disabledHover(); |
|
|
@ -54368,9 +54368,9 @@ BI.Editor = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
if (!this.isValid()) { |
|
|
|
if (!this.isValid()) { |
|
|
|
return BI.trim(this.editor.getLastValidValue()); |
|
|
|
return this.editor.getLastValidValue(); |
|
|
|
} |
|
|
|
} |
|
|
|
return BI.trim(this.editor.getValue()); |
|
|
|
return this.editor.getValue(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
isEditing: function () { |
|
|
|
isEditing: function () { |
|
|
@ -55493,7 +55493,7 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function blur () { |
|
|
|
function blur () { |
|
|
|
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) { |
|
|
|
if (!self.isValid() && self.options.quitChecker.apply(self, [self.getValue()]) !== false) { |
|
|
|
self.element.val(self._lastValidValue ? self._lastValidValue : ""); |
|
|
|
self.element.val(self._lastValidValue ? self._lastValidValue : ""); |
|
|
|
self._checkValidationOnValueChange(); |
|
|
|
self._checkValidationOnValueChange(); |
|
|
|
self._defaultState(); |
|
|
|
self._defaultState(); |
|
|
@ -55523,11 +55523,11 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
onKeyDown: function (keyCode, ctrlKey) { |
|
|
|
onKeyDown: function (keyCode, ctrlKey) { |
|
|
|
if (!this.isValid() || BI.trim(this._lastValidValue) !== BI.trim(this.getValue())) { |
|
|
|
if (!this.isValid() || this._lastValidValue !== this.getValue()) { |
|
|
|
this._checkValidationOnValueChange(); |
|
|
|
this._checkValidationOnValueChange(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.isValid() && BI.trim(this.getValue()) !== "") { |
|
|
|
if (this.isValid() && this.getValue() !== "") { |
|
|
|
if (BI.trim(this.getValue()) !== this._lastValue && (!this._start || this._lastValue == null || this._lastValue === "") |
|
|
|
if (this.getValue() !== this._lastValue && (!this._start || this._lastValue == null || this._lastValue === "") |
|
|
|
|| (this._pause === true && !/(\s|\u00A0)$/.test(this.getValue()))) { |
|
|
|
|| (this._pause === true && !/(\s|\u00A0)$/.test(this.getValue()))) { |
|
|
|
this._start = true; |
|
|
|
this._start = true; |
|
|
|
this._pause = false; |
|
|
|
this._pause = false; |
|
|
@ -55539,7 +55539,7 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
this._valueChange(); |
|
|
|
this._valueChange(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (keyCode == BI.KeyCode.ENTER) { |
|
|
|
if (keyCode == BI.KeyCode.ENTER) { |
|
|
|
if (this.isValid() || this.options.quitChecker.apply(this, [BI.trim(this.getValue())]) !== false) { |
|
|
|
if (this.isValid() || this.options.quitChecker.apply(this, [this.getValue()]) !== false) { |
|
|
|
this.blur(); |
|
|
|
this.blur(); |
|
|
|
this.fireEvent(BI.Input.EVENT_ENTER); |
|
|
|
this.fireEvent(BI.Input.EVENT_ENTER); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -55564,7 +55564,7 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
this.fireEvent(BI.Input.EVENT_PAUSE); |
|
|
|
this.fireEvent(BI.Input.EVENT_PAUSE); |
|
|
|
this._defaultState(); |
|
|
|
this._defaultState(); |
|
|
|
} else if ((keyCode === BI.KeyCode.BACKSPACE || keyCode === BI.KeyCode.DELETE) && |
|
|
|
} else if ((keyCode === BI.KeyCode.BACKSPACE || keyCode === BI.KeyCode.DELETE) && |
|
|
|
BI.trim(this.getValue()) === "" && (this._lastValue !== null && BI.trim(this._lastValue) !== "")) { |
|
|
|
this.getValue() === "" && (this._lastValue !== null && this._lastValue !== "")) { |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, this.getValue(), this); |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, this.getValue(), this); |
|
|
|
this.fireEvent(BI.Input.EVENT_STOP); |
|
|
|
this.fireEvent(BI.Input.EVENT_STOP); |
|
|
|
this._valueChange(); |
|
|
|
this._valueChange(); |
|
|
@ -55584,10 +55584,10 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_valueChange: function () { |
|
|
|
_valueChange: function () { |
|
|
|
if (this.isValid() && BI.trim(this.getValue()) !== this._lastSubmitValue) { |
|
|
|
if (this.isValid() && this.getValue() !== this._lastSubmitValue) { |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CHANGE, this.getValue(), this); |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CHANGE, this.getValue(), this); |
|
|
|
this.fireEvent(BI.Input.EVENT_CHANGE); |
|
|
|
this.fireEvent(BI.Input.EVENT_CHANGE); |
|
|
|
this._lastSubmitValue = BI.trim(this.getValue()); |
|
|
|
this._lastSubmitValue = this.getValue(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.getValue() == "") { |
|
|
|
if (this.getValue() == "") { |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EMPTY, this.getValue(), this); |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EMPTY, this.getValue(), this); |
|
|
@ -55600,10 +55600,10 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
var v = this.getValue(); |
|
|
|
var v = this.getValue(); |
|
|
|
this.setValid( |
|
|
|
this.setValid( |
|
|
|
(o.allowBlank === true && BI.trim(v) == "") || |
|
|
|
(o.allowBlank === true && v == "") || |
|
|
|
(BI.isNotEmptyString(BI.trim(v)) |
|
|
|
(BI.isNotEmptyString(v) |
|
|
|
&& (v === this._lastValidValue || |
|
|
|
&& (v === this._lastValidValue || |
|
|
|
o.validationChecker.apply(this, [BI.trim(v)]) !== false)) |
|
|
|
o.validationChecker.apply(this, [v]) !== false)) |
|
|
|
); |
|
|
|
); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -55663,13 +55663,13 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
BI.Input.superclass._setValid.apply(this, arguments); |
|
|
|
BI.Input.superclass._setValid.apply(this, arguments); |
|
|
|
if (this.isValid()) { |
|
|
|
if (this.isValid()) { |
|
|
|
this.element.removeClass("bi-input-error"); |
|
|
|
this.element.removeClass("bi-input-error"); |
|
|
|
this.fireEvent(BI.Input.EVENT_VALID, BI.trim(this.getValue()), this); |
|
|
|
this.fireEvent(BI.Input.EVENT_VALID, this.getValue(), this); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (this._lastValidValue === this.getValue()) { |
|
|
|
if (this._lastValidValue === this.getValue()) { |
|
|
|
this._lastValidValue = null; |
|
|
|
this._lastValidValue = null; |
|
|
|
} |
|
|
|
} |
|
|
|
this.element.addClass("bi-input-error"); |
|
|
|
this.element.addClass("bi-input-error"); |
|
|
|
this.fireEvent(BI.Input.EVENT_ERROR, BI.trim(this.getValue()), this); |
|
|
|
this.fireEvent(BI.Input.EVENT_ERROR, this.getValue(), this); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -76904,6 +76904,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
BI.ColorPickerEditor.superclass._init.apply(this, arguments); |
|
|
|
BI.ColorPickerEditor.superclass._init.apply(this, arguments); |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
this.storeValue = {}; |
|
|
|
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", |
|
|
@ -76924,14 +76925,15 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
cls: "color-picker-editor-input", |
|
|
|
cls: "color-picker-editor-input", |
|
|
|
validationChecker: checker, |
|
|
|
validationChecker: checker, |
|
|
|
errorText: BI.i18nText("BI-Color_Picker_Error_Text"), |
|
|
|
errorText: BI.i18nText("BI-Color_Picker_Error_Text"), |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: false, |
|
|
|
value: 255, |
|
|
|
value: 255, |
|
|
|
width: 32, |
|
|
|
width: 32, |
|
|
|
height: 20 |
|
|
|
height: 20 |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.each(Ws, function (i, w) { |
|
|
|
BI.each(Ws, function (i, w) { |
|
|
|
w.on(BI.TextEditor.EVENT_CHANGE, function () { |
|
|
|
w.on(BI.TextEditor.EVENT_CHANGE, function () { |
|
|
|
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) { |
|
|
|
self._checkEditors(); |
|
|
|
|
|
|
|
if (checker(self.storeValue.r) && checker(self.storeValue.g) && checker(self.storeValue.b)) { |
|
|
|
self.colorShow.element.css("background-color", self.getValue()); |
|
|
|
self.colorShow.element.css("background-color", self.getValue()); |
|
|
|
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE); |
|
|
|
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE); |
|
|
|
} |
|
|
|
} |
|
|
@ -77031,6 +77033,23 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_checkEditors: function () { |
|
|
|
|
|
|
|
if(BI.isEmptyString(this.R.getValue())) { |
|
|
|
|
|
|
|
this.R.setValue(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(BI.isEmptyString(this.G.getValue())) { |
|
|
|
|
|
|
|
this.G.setValue(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(BI.isEmptyString(this.B.getValue())) { |
|
|
|
|
|
|
|
this.B.setValue(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.storeValue = { |
|
|
|
|
|
|
|
r: this.R.getValue() || 0, |
|
|
|
|
|
|
|
g: this.G.getValue() || 0, |
|
|
|
|
|
|
|
b: this.B.getValue() || 0 |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_showPreColor: function (color) { |
|
|
|
_showPreColor: function (color) { |
|
|
|
if (color === "") { |
|
|
|
if (color === "") { |
|
|
|
this.colorShow.element.css("background-color", "").removeClass("trans-color-background").addClass("auto-color-background"); |
|
|
|
this.colorShow.element.css("background-color", "").removeClass("trans-color-background").addClass("auto-color-background"); |
|
|
@ -77049,6 +77068,11 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
this.R.setValue(""); |
|
|
|
this.R.setValue(""); |
|
|
|
this.G.setValue(""); |
|
|
|
this.G.setValue(""); |
|
|
|
this.B.setValue(""); |
|
|
|
this.B.setValue(""); |
|
|
|
|
|
|
|
this.storeValue = { |
|
|
|
|
|
|
|
r: "", |
|
|
|
|
|
|
|
g: "", |
|
|
|
|
|
|
|
b: "" |
|
|
|
|
|
|
|
}; |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!color) { |
|
|
|
if (!color) { |
|
|
@ -77060,9 +77084,14 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
this.transparent.setSelected(false); |
|
|
|
this.transparent.setSelected(false); |
|
|
|
this._showPreColor(color); |
|
|
|
this._showPreColor(color); |
|
|
|
var json = BI.DOM.rgb2json(BI.DOM.hex2rgb(color)); |
|
|
|
var json = BI.DOM.rgb2json(BI.DOM.hex2rgb(color)); |
|
|
|
this.R.setValue(BI.isNull(json.r) ? "" : json.r); |
|
|
|
this.storeValue = { |
|
|
|
this.G.setValue(BI.isNull(json.g) ? "" : json.g); |
|
|
|
r: BI.isNull(json.r) ? "" : json.r, |
|
|
|
this.B.setValue(BI.isNull(json.b) ? "" : json.b); |
|
|
|
g: BI.isNull(json.r) ? "" : json.g, |
|
|
|
|
|
|
|
b: BI.isNull(json.r) ? "" : json.b |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
this.R.setValue(this.storeValue.r); |
|
|
|
|
|
|
|
this.G.setValue(this.storeValue.g); |
|
|
|
|
|
|
|
this.B.setValue(this.storeValue.b); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
@ -77070,9 +77099,9 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
return "transparent"; |
|
|
|
return "transparent"; |
|
|
|
} |
|
|
|
} |
|
|
|
return BI.DOM.rgb2hex(BI.DOM.json2rgb({ |
|
|
|
return BI.DOM.rgb2hex(BI.DOM.json2rgb({ |
|
|
|
r: this.R.getValue(), |
|
|
|
r: this.storeValue.r, |
|
|
|
g: this.G.getValue(), |
|
|
|
g: this.storeValue.g, |
|
|
|
b: this.B.getValue() |
|
|
|
b: this.storeValue.b |
|
|
|
})); |
|
|
|
})); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -82871,29 +82900,29 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, { |
|
|
|
BI.RichEditorParamAction.superclass._init.apply(this, arguments); |
|
|
|
BI.RichEditorParamAction.superclass._init.apply(this, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_createBlankNode: function () { |
|
|
|
// _createBlankNode: function () {
|
|
|
|
return $("<span>").html(" "); |
|
|
|
// return $("<span>").html(" ");
|
|
|
|
}, |
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
_addBlank: function ($param) { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
var instance = o.editor.selectedInstance; |
|
|
|
|
|
|
|
var next = $param.next(); |
|
|
|
|
|
|
|
if (next.length === 0) { |
|
|
|
|
|
|
|
var nextNode = this._createBlankNode(); |
|
|
|
|
|
|
|
$param.after(nextNode); |
|
|
|
|
|
|
|
instance.setFocus(nextNode[0]); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
instance.setFocus(next[0]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_get$Sel: function () { |
|
|
|
// _addBlank: function ($param) {
|
|
|
|
var o = this.options; |
|
|
|
// var o = this.options;
|
|
|
|
var instance = o.editor.selectedInstance; |
|
|
|
// var instance = o.editor.selectedInstance;
|
|
|
|
var sel = $(instance.selElm()); |
|
|
|
// var next = $param.next();
|
|
|
|
return sel; |
|
|
|
// if (next.length === 0) {
|
|
|
|
}, |
|
|
|
// var nextNode = this._createBlankNode();
|
|
|
|
|
|
|
|
// $param.after(nextNode);
|
|
|
|
|
|
|
|
// instance.setFocus(nextNode[0]);
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// instance.setFocus(next[0]);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// _get$Sel: function () {
|
|
|
|
|
|
|
|
// var o = this.options;
|
|
|
|
|
|
|
|
// var instance = o.editor.selectedInstance;
|
|
|
|
|
|
|
|
// var sel = $(instance.selElm());
|
|
|
|
|
|
|
|
// return sel;
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
addParam: function (param) { |
|
|
|
addParam: function (param) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
@ -82904,14 +82933,15 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, { |
|
|
|
image.alt = param; |
|
|
|
image.alt = param; |
|
|
|
image.style = attrs.style; |
|
|
|
image.style = attrs.style; |
|
|
|
$(image).addClass("rich-editor-param"); |
|
|
|
$(image).addClass("rich-editor-param"); |
|
|
|
var sel = this._get$Sel(); |
|
|
|
this.options.editor.insertHTML($("<div>").append(image).html()); |
|
|
|
var wrapper = o.editor.instance.getElm().element; |
|
|
|
// var sel = this._get$Sel();
|
|
|
|
if (wrapper.find(sel).length <= 0) { |
|
|
|
// var wrapper = o.editor.instance.getElm().element;
|
|
|
|
wrapper.append(image); |
|
|
|
// if (wrapper.find(sel).length <= 0) {
|
|
|
|
} else { |
|
|
|
// wrapper.append(image);
|
|
|
|
sel.after(image); |
|
|
|
// } else {
|
|
|
|
} |
|
|
|
// sel.after(image);
|
|
|
|
this._addBlank($(image)); |
|
|
|
// }
|
|
|
|
|
|
|
|
// this._addBlank($(image));
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -83124,12 +83154,24 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
console.error("不支持此浏览器"); |
|
|
|
console.error("不支持此浏览器"); |
|
|
|
} |
|
|
|
} |
|
|
|
if(o.readOnly) { |
|
|
|
if (o.readOnly) { |
|
|
|
newInstance.disable(); |
|
|
|
newInstance.disable(); |
|
|
|
} |
|
|
|
} |
|
|
|
return newInstance; |
|
|
|
return newInstance; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
insertElem: function ($elem) { |
|
|
|
|
|
|
|
if (this.selectedInstance) { |
|
|
|
|
|
|
|
this.selectedInstance.insertElem($elem); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
insertHTML: function (html) { |
|
|
|
|
|
|
|
if (this.selectedInstance) { |
|
|
|
|
|
|
|
this.selectedInstance.insertHTML(html); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
nicCommand: function (cmd, args) { |
|
|
|
nicCommand: function (cmd, args) { |
|
|
|
if (this.selectedInstance) { |
|
|
|
if (this.selectedInstance) { |
|
|
|
this.selectedInstance.nicCommand(cmd, args); |
|
|
|
this.selectedInstance.nicCommand(cmd, args); |
|
|
@ -83372,6 +83414,31 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** |
|
|
|
this.elm.element.html(this.content); |
|
|
|
this.elm.element.html(this.content); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
insertElem: function ($elem) { |
|
|
|
|
|
|
|
var range = this.getRng(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (range.insertNode) { |
|
|
|
|
|
|
|
range.deleteContents(); |
|
|
|
|
|
|
|
range.insertNode($elem); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
insertHTML: function (html) { |
|
|
|
|
|
|
|
var range = this.getRng(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (document.queryCommandState("insertHTML")) { |
|
|
|
|
|
|
|
// W3C
|
|
|
|
|
|
|
|
this.nicCommand("insertHTML", html); |
|
|
|
|
|
|
|
} else if (range.insertNode) { |
|
|
|
|
|
|
|
// IE
|
|
|
|
|
|
|
|
range.deleteContents(); |
|
|
|
|
|
|
|
range.insertNode($(html)[0]); |
|
|
|
|
|
|
|
} else if (range.pasteHTML) { |
|
|
|
|
|
|
|
// IE <= 10
|
|
|
|
|
|
|
|
range.pasteHTML(html); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
nicCommand: function (cmd, args) { |
|
|
|
nicCommand: function (cmd, args) { |
|
|
|
document.execCommand(cmd, false, args); |
|
|
|
document.execCommand(cmd, false, args); |
|
|
|
} |
|
|
|
} |
|
|
@ -84486,17 +84553,18 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, { |
|
|
|
var c = [crossHeader[row]]; |
|
|
|
var c = [crossHeader[row]]; |
|
|
|
result.push(c.concat(node || [])); |
|
|
|
result.push(c.concat(node || [])); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
var rowHeaderCreator = BI.isFunction(o.rowHeaderCreator) ? o.rowHeaderCreator() : o.rowHeaderCreator; |
|
|
|
if (header && header.length > 0) { |
|
|
|
if (header && header.length > 0) { |
|
|
|
var newHeader = this._formatColumns(header); |
|
|
|
var newHeader = this._formatColumns(header); |
|
|
|
var deep = this._getHDeep(); |
|
|
|
var deep = this._getHDeep(); |
|
|
|
if (deep <= 0) { |
|
|
|
if (deep <= 0) { |
|
|
|
newHeader.unshift(o.rowHeaderCreator || { |
|
|
|
newHeader.unshift(rowHeaderCreator || { |
|
|
|
type: "bi.table_style_cell", |
|
|
|
type: "bi.table_style_cell", |
|
|
|
text: BI.i18nText("BI-Row_Header"), |
|
|
|
text: BI.i18nText("BI-Row_Header"), |
|
|
|
styleGetter: o.headerCellStyleGetter |
|
|
|
styleGetter: o.headerCellStyleGetter |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
newHeader[0] = o.rowHeaderCreator || { |
|
|
|
newHeader[0] = rowHeaderCreator || { |
|
|
|
type: "bi.table_style_cell", |
|
|
|
type: "bi.table_style_cell", |
|
|
|
text: BI.i18nText("BI-Row_Header"), |
|
|
|
text: BI.i18nText("BI-Row_Header"), |
|
|
|
styleGetter: o.headerCellStyleGetter |
|
|
|
styleGetter: o.headerCellStyleGetter |
|
|
@ -90026,7 +90094,8 @@ BI.DownListPopup = BI.inherit(BI.Pane, { |
|
|
|
type: "bi.vertical" |
|
|
|
type: "bi.vertical" |
|
|
|
}] |
|
|
|
}] |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
maxHeight: 378 |
|
|
|
}; |
|
|
|
}; |
|
|
|
item.el.childValues = []; |
|
|
|
item.el.childValues = []; |
|
|
|
BI.each(item.children, function (i, child) { |
|
|
|
BI.each(item.children, function (i, child) { |
|
|
@ -90248,6 +90317,7 @@ BI.shortcut("bi.down_list_popup", BI.DownListPopup);/** |
|
|
|
if (BI.isNotNull(obj.year)) { |
|
|
|
if (BI.isNotNull(obj.year)) { |
|
|
|
return obj.position === BI.DynamicDateCard.OFFSET.BEGIN ? BI.getDate(date.getFullYear(), 0, 1) : BI.getDate(date.getFullYear(), 11, 31); |
|
|
|
return obj.position === BI.DynamicDateCard.OFFSET.BEGIN ? BI.getDate(date.getFullYear(), 0, 1) : BI.getDate(date.getFullYear(), 11, 31); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return date; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
})();BI.DynamicDateCard = BI.inherit(BI.Widget, { |
|
|
|
})();BI.DynamicDateCard = BI.inherit(BI.Widget, { |
|
|
@ -111676,8 +111746,7 @@ BI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, { |
|
|
|
self.fireEvent(BI.ValueChooserPane.EVENT_CHANGE); |
|
|
|
self.fireEvent(BI.ValueChooserPane.EVENT_CHANGE); |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (BI.isNotNull(o.items)) { |
|
|
|
if (BI.isNotNull(o.items)) { |
|
|
|
this.items = o.items; |
|
|
|
this.populate(o.items); |
|
|
|
this.populate(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|