dailer 6 years ago
parent
commit
33f1d45cae
  1. 2
      demo/js/config/base.js
  2. 2
      dist/2.0/fineui.css
  3. 33
      dist/2.0/fineui.ie.js
  4. 16
      dist/2.0/fineui.ie.min.js
  5. 33
      dist/2.0/fineui.js
  6. 50
      dist/2.0/fineui.min.js
  7. 12
      dist/base.js
  8. 2
      dist/bundle.css
  9. 33
      dist/bundle.ie.js
  10. 16
      dist/bundle.ie.min.js
  11. 33
      dist/bundle.js
  12. 50
      dist/bundle.min.js
  13. 1
      dist/core.css
  14. 4
      dist/demo.js
  15. 2
      dist/fineui.css
  16. 33
      dist/fineui.ie.js
  17. 16
      dist/fineui.ie.min.js
  18. 33
      dist/fineui.js
  19. 50
      dist/fineui.min.js
  20. 33
      dist/fineui_without_jquery_polyfill.js
  21. 1
      dist/resource.css
  22. 2
      dist/utils.min.js
  23. 21
      dist/widget.js

2
demo/js/config/base.js

@ -5,7 +5,7 @@ Demo.BASE_CONFIG = [{
}, { }, {
pId: 2, pId: 2,
text: "bi.label", text: "bi.label",
value: "demo.mixin" value: "demo.label"
},{ },{
pId: 2, pId: 2,
text: "bi.label_scene", text: "bi.label_scene",

2
dist/2.0/fineui.css vendored

@ -276,7 +276,6 @@ li {
} }
i { i {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
input, input,
@ -4633,7 +4632,6 @@ textarea::-webkit-scrollbar-thumb:hover {
font-family: 'fineui'; font-family: 'fineui';
font-style: normal; font-style: normal;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.close-font .b-font { .close-font .b-font {

33
dist/2.0/fineui.ie.js vendored

@ -44549,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, {
@ -44773,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
}] }]
}); });
@ -44824,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
@ -44839,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
}] }]
@ -62560,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 () {
@ -63151,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 () {
@ -63177,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;
}, },
@ -63516,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,
@ -64218,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 () {
@ -64244,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)) {
@ -76683,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: "",
@ -80391,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) {
@ -80537,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 () {
@ -80590,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",

16
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

33
dist/2.0/fineui.js vendored

@ -44953,7 +44953,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, {
@ -45177,9 +45177,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
}] }]
}); });
@ -45228,9 +45228,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
@ -45243,7 +45243,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
}] }]
@ -62964,6 +62964,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 () {
@ -63555,7 +63556,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 () {
@ -63581,11 +63583,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;
}, },
@ -63920,6 +63922,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,
@ -64622,7 +64625,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 () {
@ -64648,7 +64652,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)) {
@ -77087,7 +77091,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: "",
@ -80795,6 +80799,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) {
@ -80941,6 +80946,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 () {
@ -80994,7 +81001,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",

50
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/base.js vendored

@ -9078,7 +9078,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, {
@ -9302,9 +9302,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
}] }]
}); });
@ -9353,9 +9353,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
@ -9368,7 +9368,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
}] }]

2
dist/bundle.css vendored

@ -276,7 +276,6 @@ li {
} }
i { i {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
input, input,
@ -4633,7 +4632,6 @@ textarea::-webkit-scrollbar-thumb:hover {
font-family: 'fineui'; font-family: 'fineui';
font-style: normal; font-style: normal;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.close-font .b-font { .close-font .b-font {

33
dist/bundle.ie.js vendored

@ -44549,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, {
@ -44773,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
}] }]
}); });
@ -44824,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
@ -44839,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
}] }]
@ -62560,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 () {
@ -63151,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 () {
@ -63177,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;
}, },
@ -63516,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,
@ -64218,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 () {
@ -64244,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)) {
@ -76683,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: "",
@ -80391,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) {
@ -80537,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 () {
@ -80590,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",

16
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

33
dist/bundle.js vendored

@ -44953,7 +44953,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, {
@ -45177,9 +45177,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
}] }]
}); });
@ -45228,9 +45228,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
@ -45243,7 +45243,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
}] }]
@ -62964,6 +62964,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 () {
@ -63555,7 +63556,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 () {
@ -63581,11 +63583,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;
}, },
@ -63920,6 +63922,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,
@ -64622,7 +64625,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 () {
@ -64648,7 +64652,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)) {
@ -77087,7 +77091,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: "",
@ -80795,6 +80799,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) {
@ -80941,6 +80946,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 () {
@ -80994,7 +81001,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",

50
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

1
dist/core.css vendored

@ -276,7 +276,6 @@ li {
} }
i { i {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
input, input,

4
dist/demo.js vendored

@ -1854,7 +1854,7 @@ BI.shortcut("demo.tree_view", Demo.Func);Demo.Func = BI.inherit(BI.Widget, {
element: this, element: this,
items: [{ items: [{
el: combo1, el: combo1,
left: 10, left: 150,
top: 10 top: 10
}, { }, {
el: combo2, el: combo2,
@ -3361,7 +3361,7 @@ BI.shortcut("demo.value_chooser_pane", Demo.ValueChooserPane);Demo.BASE_CONFIG =
}, { }, {
pId: 2, pId: 2,
text: "bi.label", text: "bi.label",
value: "demo.mixin" value: "demo.label"
},{ },{
pId: 2, pId: 2,
text: "bi.label_scene", text: "bi.label_scene",

2
dist/fineui.css vendored

@ -276,7 +276,6 @@ li {
} }
i { i {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
input, input,
@ -4633,7 +4632,6 @@ textarea::-webkit-scrollbar-thumb:hover {
font-family: 'fineui'; font-family: 'fineui';
font-style: normal; font-style: normal;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.close-font .b-font { .close-font .b-font {

33
dist/fineui.ie.js vendored

@ -44794,7 +44794,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, {
@ -45018,9 +45018,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
}] }]
}); });
@ -45069,9 +45069,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
@ -45084,7 +45084,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
}] }]
@ -62805,6 +62805,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 () {
@ -63396,7 +63397,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 () {
@ -63422,11 +63424,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;
}, },
@ -63761,6 +63763,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,
@ -64463,7 +64466,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 () {
@ -64489,7 +64493,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)) {
@ -76928,7 +76932,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: "",
@ -80636,6 +80640,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) {
@ -80782,6 +80787,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 () {
@ -80835,7 +80842,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",

16
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

33
dist/fineui.js vendored

@ -45198,7 +45198,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, {
@ -45422,9 +45422,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
}] }]
}); });
@ -45473,9 +45473,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
@ -45488,7 +45488,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
}] }]
@ -63209,6 +63209,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 () {
@ -63800,7 +63801,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 () {
@ -63826,11 +63828,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;
}, },
@ -64165,6 +64167,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,
@ -64867,7 +64870,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 () {
@ -64893,7 +64897,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)) {
@ -77332,7 +77336,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: "",
@ -81040,6 +81044,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) {
@ -81186,6 +81191,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 () {
@ -81239,7 +81246,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",

50
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

33
dist/fineui_without_jquery_polyfill.js vendored

@ -32394,7 +32394,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, {
@ -32618,9 +32618,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
}] }]
}); });
@ -32669,9 +32669,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
@ -32684,7 +32684,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
}] }]
@ -45618,6 +45618,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 () {
@ -46209,7 +46210,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 () {
@ -46235,11 +46237,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;
}, },
@ -46574,6 +46576,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,
@ -47276,7 +47279,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 () {
@ -47302,7 +47306,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)) {
@ -59741,7 +59745,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: "",
@ -63449,6 +63453,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) {
@ -63595,6 +63600,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 () {
@ -63648,7 +63655,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",

1
dist/resource.css vendored

@ -291,7 +291,6 @@ textarea::-webkit-scrollbar-thumb:hover {
font-family: 'fineui'; font-family: 'fineui';
font-style: normal; font-style: normal;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.close-font .b-font { .close-font .b-font {

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/widget.js vendored

@ -2750,6 +2750,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 () {
@ -3341,7 +3342,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 () {
@ -3367,11 +3369,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;
}, },
@ -3706,6 +3708,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,
@ -4408,7 +4411,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 () {
@ -4434,7 +4438,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)) {
@ -16873,7 +16877,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: "",
@ -20581,6 +20585,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) {
@ -20727,6 +20732,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 () {
@ -20780,7 +20787,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",

Loading…
Cancel
Save