|
|
@ -12233,7 +12233,6 @@ if (!_global.BI) { |
|
|
|
} |
|
|
|
} |
|
|
|
kv[xtype] = cls; |
|
|
|
kv[xtype] = cls; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// 根据配置属性生成widget
|
|
|
|
// 根据配置属性生成widget
|
|
|
|
var createWidget = function (config) { |
|
|
|
var createWidget = function (config) { |
|
|
|
if (config["classType"]) { |
|
|
|
if (config["classType"]) { |
|
|
@ -44550,7 +44549,7 @@ BI.Editor = BI.inherit(BI.Single, { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
var errorText = o.errorText; |
|
|
|
var errorText = o.errorText; |
|
|
|
if (BI.isFunction(errorText)) { |
|
|
|
if (BI.isFunction(errorText)) { |
|
|
|
errorText = errorText(this.editor.getValue()); |
|
|
|
errorText = errorText(BI.trim(this.editor.getValue())); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!this.disabledError && BI.isKey(errorText)) { |
|
|
|
if (!this.disabledError && BI.isKey(errorText)) { |
|
|
|
BI.Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, { |
|
|
|
BI.Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, { |
|
|
@ -44774,9 +44773,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
type: "bi.adaptive", |
|
|
|
type: "bi.adaptive", |
|
|
|
items: [this.content] |
|
|
|
items: [this.content] |
|
|
|
}, |
|
|
|
}, |
|
|
|
left: 10, |
|
|
|
left: 4, |
|
|
|
right: 10, |
|
|
|
right: 10, |
|
|
|
top: 8, |
|
|
|
top: 4, |
|
|
|
bottom: 8 |
|
|
|
bottom: 8 |
|
|
|
}] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
@ -44825,9 +44824,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
if (!this.watermark) { |
|
|
|
if (!this.watermark) { |
|
|
|
this.watermark = BI.createWidget({ |
|
|
|
this.watermark = BI.createWidget({ |
|
|
|
type: "bi.text_button", |
|
|
|
type: "bi.text_button", |
|
|
|
cls: "bi-water-mark", |
|
|
|
cls: "bi-water-mark cursor-default", |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
height: 30, |
|
|
|
height: 20, |
|
|
|
text: o.watermark, |
|
|
|
text: o.watermark, |
|
|
|
invalid: o.invalid, |
|
|
|
invalid: o.invalid, |
|
|
|
disabled: o.disabled |
|
|
|
disabled: o.disabled |
|
|
@ -44840,7 +44839,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: this.watermark, |
|
|
|
el: this.watermark, |
|
|
|
left: 10, |
|
|
|
left: 4, |
|
|
|
top: 4, |
|
|
|
top: 4, |
|
|
|
right: 0 |
|
|
|
right: 0 |
|
|
|
}] |
|
|
|
}] |
|
|
@ -46454,13 +46453,14 @@ BI.HtmlLabel = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
_createNotCenterEl: function () { |
|
|
|
_createNotCenterEl: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt"; |
|
|
|
var json = this._createJson(); |
|
|
|
var json = this._createJson(); |
|
|
|
if (BI.isNumber(o.width) && o.width > 0) { |
|
|
|
if (BI.isNumber(o.width) && o.width > 0) { |
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
json.width = o.textWidth; |
|
|
|
json.width = o.textWidth; |
|
|
|
if (BI.isNumber(o.height) && o.height > 0) { |
|
|
|
if (BI.isNumber(o.height) && o.height > 0) { |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: adaptLayout, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
@ -46473,7 +46473,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: adaptLayout, |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
@ -46509,7 +46509,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; |
|
|
|
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: adaptLayout, |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
@ -46527,7 +46527,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, { |
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
json.width = o.textWidth; |
|
|
|
json.width = o.textWidth; |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: adaptLayout, |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
@ -46574,7 +46574,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, { |
|
|
|
maxWidth: "100%" |
|
|
|
maxWidth: "100%" |
|
|
|
})); |
|
|
|
})); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: adaptLayout, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [this.text] |
|
|
|
items: [this.text] |
|
|
|
}); |
|
|
|
}); |
|
|
@ -46868,13 +46868,14 @@ BI.Label = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
_createNotCenterEl: function () { |
|
|
|
_createNotCenterEl: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt"; |
|
|
|
var json = this._createJson(); |
|
|
|
var json = this._createJson(); |
|
|
|
if (BI.isNumber(o.width) && o.width > 0) { |
|
|
|
if (BI.isNumber(o.width) && o.width > 0) { |
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
json.width = o.textWidth; |
|
|
|
json.width = o.textWidth; |
|
|
|
if (BI.isNumber(o.height) && o.height > 0) { // 2.1
|
|
|
|
if (BI.isNumber(o.height) && o.height > 0) { // 2.1
|
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: adaptLayout, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
@ -46887,7 +46888,7 @@ BI.Label = BI.inherit(BI.Single, { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
BI.createWidget({ // 2.2
|
|
|
|
BI.createWidget({ // 2.2
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: adaptLayout, |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
@ -46923,7 +46924,7 @@ BI.Label = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; |
|
|
|
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; |
|
|
|
BI.createWidget({ // 2.4
|
|
|
|
BI.createWidget({ // 2.4
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: adaptLayout, |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
@ -46941,7 +46942,7 @@ BI.Label = BI.inherit(BI.Single, { |
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
json.width = o.textWidth; |
|
|
|
json.width = o.textWidth; |
|
|
|
BI.createWidget({ // 2.5
|
|
|
|
BI.createWidget({ // 2.5
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: adaptLayout, |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
@ -46988,7 +46989,7 @@ BI.Label = BI.inherit(BI.Single, { |
|
|
|
maxWidth: "100%" |
|
|
|
maxWidth: "100%" |
|
|
|
})); |
|
|
|
})); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: adaptLayout, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [this.text] |
|
|
|
items: [this.text] |
|
|
|
}); |
|
|
|
}); |
|
|
@ -62559,6 +62560,7 @@ BI.extend(BI.DynamicDateCard, { |
|
|
|
max: opts.maxDate, |
|
|
|
max: opts.maxDate, |
|
|
|
format: opts.format, |
|
|
|
format: opts.format, |
|
|
|
allowEdit: opts.allowEdit, |
|
|
|
allowEdit: opts.allowEdit, |
|
|
|
|
|
|
|
watermark: opts.watermark, |
|
|
|
height: opts.height, |
|
|
|
height: opts.height, |
|
|
|
value: opts.value, |
|
|
|
value: opts.value, |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
@ -63150,7 +63152,8 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger |
|
|
|
max: "2099-12-31", // 最大日期
|
|
|
|
max: "2099-12-31", // 最大日期
|
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|
format: "", // 显示的日期格式化方式
|
|
|
|
format: "", // 显示的日期格式化方式
|
|
|
|
allowEdit: true // 是否允许编辑
|
|
|
|
allowEdit: true, // 是否允许编辑
|
|
|
|
|
|
|
|
watermark: "" |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
@ -63176,11 +63179,11 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger |
|
|
|
hgap: c.hgap, |
|
|
|
hgap: c.hgap, |
|
|
|
vgap: c.vgap, |
|
|
|
vgap: c.vgap, |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: true, |
|
|
|
watermark: BI.i18nText("BI-Basic_Unrestricted"), |
|
|
|
watermark: BI.isKey(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"), |
|
|
|
errorText: function () { |
|
|
|
errorText: function () { |
|
|
|
var str = ""; |
|
|
|
var str = ""; |
|
|
|
if (!BI.isKey(o.format)) { |
|
|
|
if (!BI.isKey(o.format)) { |
|
|
|
str = self.editor.isEditing() ? BI.i18nText("BI-Date_Trigger_Error_Text"): BI.i18nText("BI-Year_Trigger_Invalid_Text"); |
|
|
|
str = self.editor.isEditing() ? BI.i18nText("BI-Date_Trigger_Error_Text") : BI.i18nText("BI-Year_Trigger_Invalid_Text"); |
|
|
|
} |
|
|
|
} |
|
|
|
return str; |
|
|
|
return str; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -63515,6 +63518,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, { |
|
|
|
min: opts.minDate, |
|
|
|
min: opts.minDate, |
|
|
|
max: opts.maxDate, |
|
|
|
max: opts.maxDate, |
|
|
|
allowEdit: opts.allowEdit, |
|
|
|
allowEdit: opts.allowEdit, |
|
|
|
|
|
|
|
watermark: opts.watermark, |
|
|
|
format: opts.format, |
|
|
|
format: opts.format, |
|
|
|
height: opts.height, |
|
|
|
height: opts.height, |
|
|
|
value: opts.value, |
|
|
|
value: opts.value, |
|
|
@ -64217,7 +64221,8 @@ BI.extend(BI.DynamicDateTimeSelect, { |
|
|
|
max: "2099-12-31", // 最大日期
|
|
|
|
max: "2099-12-31", // 最大日期
|
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|
format: "", // 显示的日期格式化方式
|
|
|
|
format: "", // 显示的日期格式化方式
|
|
|
|
allowEdit: true // 是否允许编辑
|
|
|
|
allowEdit: true, // 是否允许编辑
|
|
|
|
|
|
|
|
watermark: "" |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
@ -64243,7 +64248,7 @@ BI.extend(BI.DynamicDateTimeSelect, { |
|
|
|
hgap: c.hgap, |
|
|
|
hgap: c.hgap, |
|
|
|
vgap: c.vgap, |
|
|
|
vgap: c.vgap, |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: true, |
|
|
|
watermark: BI.i18nText("BI-Basic_Unrestricted"), |
|
|
|
watermark: BI.isKey(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"), |
|
|
|
errorText: function () { |
|
|
|
errorText: function () { |
|
|
|
var str = ""; |
|
|
|
var str = ""; |
|
|
|
if (!BI.isKey(o.format)) { |
|
|
|
if (!BI.isKey(o.format)) { |
|
|
@ -76682,7 +76687,7 @@ BI.SelectTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SelectTreeCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SelectTreeCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-select-tree-combo", |
|
|
|
baseCls: "bi-select-tree-combo", |
|
|
|
height: 30, |
|
|
|
height: 24, |
|
|
|
text: "", |
|
|
|
text: "", |
|
|
|
items: [], |
|
|
|
items: [], |
|
|
|
value: "", |
|
|
|
value: "", |
|
|
@ -80390,6 +80395,7 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.time_trigger", |
|
|
|
type: "bi.time_trigger", |
|
|
|
allowEdit: opts.allowEdit, |
|
|
|
allowEdit: opts.allowEdit, |
|
|
|
|
|
|
|
watermark: opts.watermark, |
|
|
|
format: opts.format, |
|
|
|
format: opts.format, |
|
|
|
value: opts.value, |
|
|
|
value: opts.value, |
|
|
|
ref: function (_ref) { |
|
|
|
ref: function (_ref) { |
|
|
@ -80536,6 +80542,8 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () { |
|
|
|
|
|
|
|
|
|
|
|
BI.TimeCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.TimeCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.TimeCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TimeCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
BI.TimeCombo.EVENT_VALID = "EVENT_VALID"; |
|
|
|
|
|
|
|
BI.TimeCombo.EVENT_ERROR = "EVENT_ERROR"; |
|
|
|
BI.TimeCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
|
|
|
BI.TimeCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
|
|
|
BI.shortcut("bi.time_combo", BI.TimeCombo); |
|
|
|
BI.shortcut("bi.time_combo", BI.TimeCombo); |
|
|
|
})();!(function () { |
|
|
|
})();!(function () { |
|
|
@ -80589,7 +80597,7 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () { |
|
|
|
value: this._formatValue(o.value), |
|
|
|
value: this._formatValue(o.value), |
|
|
|
hgap: 4, |
|
|
|
hgap: 4, |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: true, |
|
|
|
watermark: BI.i18nText("BI-Basic_Unrestricted"), |
|
|
|
watermark: BI.isKey(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"), |
|
|
|
title: BI.bind(this._getTitle, this), |
|
|
|
title: BI.bind(this._getTitle, this), |
|
|
|
listeners: [{ |
|
|
|
listeners: [{ |
|
|
|
eventName: "EVENT_KEY_DOWN", |
|
|
|
eventName: "EVENT_KEY_DOWN", |
|
|
|