dailer 6 years ago
parent
commit
7e6d2cbad6
  1. 118
      dist/2.0/fineui.ie.js
  2. 38
      dist/2.0/fineui.ie.min.js
  3. 118
      dist/2.0/fineui.js
  4. 36
      dist/2.0/fineui.min.js
  5. 16
      dist/base.js
  6. 118
      dist/bundle.ie.js
  7. 38
      dist/bundle.ie.min.js
  8. 118
      dist/bundle.js
  9. 36
      dist/bundle.min.js
  10. 21
      dist/core.js
  11. 118
      dist/fineui.ie.js
  12. 38
      dist/fineui.ie.min.js
  13. 118
      dist/fineui.js
  14. 36
      dist/fineui.min.js
  15. 118
      dist/fineui_without_jquery_polyfill.js
  16. 21
      dist/utils.js
  17. 4
      dist/utils.min.js
  18. 81
      dist/widget.js

118
dist/2.0/fineui.ie.js vendored

@ -15919,21 +15919,16 @@ BI.ShowAction = BI.inherit(BI.Action, {
}; };
// replace the html special tags // replace the html special tags
var specialTags = {
"&": "&",
"\"": """,
"<": "&lt;",
">": "&gt;",
" ": "&nbsp;"
};
BI.htmlEncode = function (text) { BI.htmlEncode = function (text) {
return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) { return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) {
switch (v) { return specialTags[v] ? specialTags[v] : "&nbsp;";
case "&":
return "&amp;";
case "\"":
return "&quot;";
case "<":
return "&lt;";
case ">":
return "&gt;";
case " ":
default:
return "&nbsp;";
}
}); });
}; };
// html decode // html decode
@ -36076,7 +36071,7 @@ BI.Text = BI.inherit(BI.Single, {
this.element.css({ this.element.css({
textAlign: o.textAlign, textAlign: o.textAlign,
whiteSpace: o.whiteSpace, whiteSpace: o.whiteSpace,
textOverflow: o.whiteSpace === 'nowrap' ? "ellipsis" : "", textOverflow: o.whiteSpace === "nowrap" ? "ellipsis" : ""
}); });
if (o.handler) { if (o.handler) {
this.text = BI.createWidget({ this.text = BI.createWidget({
@ -36094,15 +36089,7 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
mounted: function () {
var o = this.options;
var text = this._getShowText(); var text = this._getShowText();
if (BI.isKey(text)) { if (BI.isKey(text)) {
this.setText(text); this.setText(text);
@ -36117,6 +36104,12 @@ BI.Text = BI.inherit(BI.Single, {
} }
}, },
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
doRedMark: function (keyword) { doRedMark: function (keyword) {
var o = this.options; var o = this.options;
// render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword // render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword
@ -61013,15 +61006,15 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 290, popupHeight: 290,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-date-time-combo bi-border bi-border-radius", baseCls: "bi-date-time-combo bi-border bi-border-radius",
width: 200, width: 200,
height: 24 height: 24,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -61038,16 +61031,16 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
}; };
this.trigger = BI.createWidget({ this.trigger = BI.createWidget({
type: "bi.date_time_trigger", type: "bi.date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
this.popup = BI.createWidget({ this.popup = BI.createWidget({
type: "bi.date_time_popup", type: "bi.date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
self.setValue(this.storeValue); self.setValue(this.storeValue);
@ -62694,14 +62687,14 @@ BI.extend(BI.DynamicDateCard, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -62737,8 +62730,8 @@ BI.extend(BI.DynamicDateCard, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_trigger", type: "bi.dynamic_date_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -62819,8 +62812,8 @@ BI.extend(BI.DynamicDateCard, {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -63589,14 +63582,14 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -63632,8 +63625,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_time_trigger", type: "bi.dynamic_date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -63714,8 +63707,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -80501,14 +80494,14 @@ BI.DateInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-date-interval" extraCls: "bi-date-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -80630,7 +80623,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -80680,14 +80674,14 @@ BI.TimeInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-time-interval" extraCls: "bi-time-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -80809,7 +80803,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -82583,13 +82578,13 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
width: 25, width: 25,
lgap: 15, lgap: 15,
offset: -15, offset: -15,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
extraCls: "bi-year-month-interval" extraCls: "bi-year-month-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
_init: function () { _init: function () {
@ -82696,7 +82691,8 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
// 判是否在最大最小之间 // 判是否在最大最小之间
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, 1, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, 1, o.minDate, o.maxDate)[0];
}, },
// 判格式合法 // 判格式合法

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

File diff suppressed because one or more lines are too long

118
dist/2.0/fineui.js vendored

@ -15919,21 +15919,16 @@ BI.ShowAction = BI.inherit(BI.Action, {
}; };
// replace the html special tags // replace the html special tags
var specialTags = {
"&": "&amp;",
"\"": "&quot;",
"<": "&lt;",
">": "&gt;",
" ": "&nbsp;"
};
BI.htmlEncode = function (text) { BI.htmlEncode = function (text) {
return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) { return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) {
switch (v) { return specialTags[v] ? specialTags[v] : "&nbsp;";
case "&":
return "&amp;";
case "\"":
return "&quot;";
case "<":
return "&lt;";
case ">":
return "&gt;";
case " ":
default:
return "&nbsp;";
}
}); });
}; };
// html decode // html decode
@ -36480,7 +36475,7 @@ BI.Text = BI.inherit(BI.Single, {
this.element.css({ this.element.css({
textAlign: o.textAlign, textAlign: o.textAlign,
whiteSpace: o.whiteSpace, whiteSpace: o.whiteSpace,
textOverflow: o.whiteSpace === 'nowrap' ? "ellipsis" : "", textOverflow: o.whiteSpace === "nowrap" ? "ellipsis" : ""
}); });
if (o.handler) { if (o.handler) {
this.text = BI.createWidget({ this.text = BI.createWidget({
@ -36498,15 +36493,7 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
mounted: function () {
var o = this.options;
var text = this._getShowText(); var text = this._getShowText();
if (BI.isKey(text)) { if (BI.isKey(text)) {
this.setText(text); this.setText(text);
@ -36521,6 +36508,12 @@ BI.Text = BI.inherit(BI.Single, {
} }
}, },
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
doRedMark: function (keyword) { doRedMark: function (keyword) {
var o = this.options; var o = this.options;
// render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword // render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword
@ -61417,15 +61410,15 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 290, popupHeight: 290,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-date-time-combo bi-border bi-border-radius", baseCls: "bi-date-time-combo bi-border bi-border-radius",
width: 200, width: 200,
height: 24 height: 24,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -61442,16 +61435,16 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
}; };
this.trigger = BI.createWidget({ this.trigger = BI.createWidget({
type: "bi.date_time_trigger", type: "bi.date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
this.popup = BI.createWidget({ this.popup = BI.createWidget({
type: "bi.date_time_popup", type: "bi.date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
self.setValue(this.storeValue); self.setValue(this.storeValue);
@ -63098,14 +63091,14 @@ BI.extend(BI.DynamicDateCard, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -63141,8 +63134,8 @@ BI.extend(BI.DynamicDateCard, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_trigger", type: "bi.dynamic_date_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -63223,8 +63216,8 @@ BI.extend(BI.DynamicDateCard, {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -63993,14 +63986,14 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -64036,8 +64029,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_time_trigger", type: "bi.dynamic_date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -64118,8 +64111,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -80905,14 +80898,14 @@ BI.DateInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-date-interval" extraCls: "bi-date-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -81034,7 +81027,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -81084,14 +81078,14 @@ BI.TimeInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-time-interval" extraCls: "bi-time-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -81213,7 +81207,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -82987,13 +82982,13 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
width: 25, width: 25,
lgap: 15, lgap: 15,
offset: -15, offset: -15,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
extraCls: "bi-year-month-interval" extraCls: "bi-year-month-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
_init: function () { _init: function () {
@ -83100,7 +83095,8 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
// 判是否在最大最小之间 // 判是否在最大最小之间
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, 1, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, 1, o.minDate, o.maxDate)[0];
}, },
// 判格式合法 // 判格式合法

36
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

16
dist/base.js vendored

@ -582,7 +582,7 @@ BI.Text = BI.inherit(BI.Single, {
this.element.css({ this.element.css({
textAlign: o.textAlign, textAlign: o.textAlign,
whiteSpace: o.whiteSpace, whiteSpace: o.whiteSpace,
textOverflow: o.whiteSpace === 'nowrap' ? "ellipsis" : "", textOverflow: o.whiteSpace === "nowrap" ? "ellipsis" : ""
}); });
if (o.handler) { if (o.handler) {
this.text = BI.createWidget({ this.text = BI.createWidget({
@ -600,15 +600,7 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
mounted: function () {
var o = this.options;
var text = this._getShowText(); var text = this._getShowText();
if (BI.isKey(text)) { if (BI.isKey(text)) {
this.setText(text); this.setText(text);
@ -623,6 +615,12 @@ BI.Text = BI.inherit(BI.Single, {
} }
}, },
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
doRedMark: function (keyword) { doRedMark: function (keyword) {
var o = this.options; var o = this.options;
// render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword // render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword

118
dist/bundle.ie.js vendored

@ -15919,21 +15919,16 @@ BI.ShowAction = BI.inherit(BI.Action, {
}; };
// replace the html special tags // replace the html special tags
var specialTags = {
"&": "&amp;",
"\"": "&quot;",
"<": "&lt;",
">": "&gt;",
" ": "&nbsp;"
};
BI.htmlEncode = function (text) { BI.htmlEncode = function (text) {
return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) { return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) {
switch (v) { return specialTags[v] ? specialTags[v] : "&nbsp;";
case "&":
return "&amp;";
case "\"":
return "&quot;";
case "<":
return "&lt;";
case ">":
return "&gt;";
case " ":
default:
return "&nbsp;";
}
}); });
}; };
// html decode // html decode
@ -36076,7 +36071,7 @@ BI.Text = BI.inherit(BI.Single, {
this.element.css({ this.element.css({
textAlign: o.textAlign, textAlign: o.textAlign,
whiteSpace: o.whiteSpace, whiteSpace: o.whiteSpace,
textOverflow: o.whiteSpace === 'nowrap' ? "ellipsis" : "", textOverflow: o.whiteSpace === "nowrap" ? "ellipsis" : ""
}); });
if (o.handler) { if (o.handler) {
this.text = BI.createWidget({ this.text = BI.createWidget({
@ -36094,15 +36089,7 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
mounted: function () {
var o = this.options;
var text = this._getShowText(); var text = this._getShowText();
if (BI.isKey(text)) { if (BI.isKey(text)) {
this.setText(text); this.setText(text);
@ -36117,6 +36104,12 @@ BI.Text = BI.inherit(BI.Single, {
} }
}, },
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
doRedMark: function (keyword) { doRedMark: function (keyword) {
var o = this.options; var o = this.options;
// render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword // render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword
@ -61013,15 +61006,15 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 290, popupHeight: 290,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-date-time-combo bi-border bi-border-radius", baseCls: "bi-date-time-combo bi-border bi-border-radius",
width: 200, width: 200,
height: 24 height: 24,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -61038,16 +61031,16 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
}; };
this.trigger = BI.createWidget({ this.trigger = BI.createWidget({
type: "bi.date_time_trigger", type: "bi.date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
this.popup = BI.createWidget({ this.popup = BI.createWidget({
type: "bi.date_time_popup", type: "bi.date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
self.setValue(this.storeValue); self.setValue(this.storeValue);
@ -62694,14 +62687,14 @@ BI.extend(BI.DynamicDateCard, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -62737,8 +62730,8 @@ BI.extend(BI.DynamicDateCard, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_trigger", type: "bi.dynamic_date_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -62819,8 +62812,8 @@ BI.extend(BI.DynamicDateCard, {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -63589,14 +63582,14 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -63632,8 +63625,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_time_trigger", type: "bi.dynamic_date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -63714,8 +63707,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -80501,14 +80494,14 @@ BI.DateInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-date-interval" extraCls: "bi-date-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -80630,7 +80623,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -80680,14 +80674,14 @@ BI.TimeInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-time-interval" extraCls: "bi-time-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -80809,7 +80803,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -82583,13 +82578,13 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
width: 25, width: 25,
lgap: 15, lgap: 15,
offset: -15, offset: -15,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
extraCls: "bi-year-month-interval" extraCls: "bi-year-month-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
_init: function () { _init: function () {
@ -82696,7 +82691,8 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
// 判是否在最大最小之间 // 判是否在最大最小之间
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, 1, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, 1, o.minDate, o.maxDate)[0];
}, },
// 判格式合法 // 判格式合法

38
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

118
dist/bundle.js vendored

@ -15919,21 +15919,16 @@ BI.ShowAction = BI.inherit(BI.Action, {
}; };
// replace the html special tags // replace the html special tags
var specialTags = {
"&": "&amp;",
"\"": "&quot;",
"<": "&lt;",
">": "&gt;",
" ": "&nbsp;"
};
BI.htmlEncode = function (text) { BI.htmlEncode = function (text) {
return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) { return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) {
switch (v) { return specialTags[v] ? specialTags[v] : "&nbsp;";
case "&":
return "&amp;";
case "\"":
return "&quot;";
case "<":
return "&lt;";
case ">":
return "&gt;";
case " ":
default:
return "&nbsp;";
}
}); });
}; };
// html decode // html decode
@ -36480,7 +36475,7 @@ BI.Text = BI.inherit(BI.Single, {
this.element.css({ this.element.css({
textAlign: o.textAlign, textAlign: o.textAlign,
whiteSpace: o.whiteSpace, whiteSpace: o.whiteSpace,
textOverflow: o.whiteSpace === 'nowrap' ? "ellipsis" : "", textOverflow: o.whiteSpace === "nowrap" ? "ellipsis" : ""
}); });
if (o.handler) { if (o.handler) {
this.text = BI.createWidget({ this.text = BI.createWidget({
@ -36498,15 +36493,7 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
mounted: function () {
var o = this.options;
var text = this._getShowText(); var text = this._getShowText();
if (BI.isKey(text)) { if (BI.isKey(text)) {
this.setText(text); this.setText(text);
@ -36521,6 +36508,12 @@ BI.Text = BI.inherit(BI.Single, {
} }
}, },
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
doRedMark: function (keyword) { doRedMark: function (keyword) {
var o = this.options; var o = this.options;
// render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword // render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword
@ -61417,15 +61410,15 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 290, popupHeight: 290,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-date-time-combo bi-border bi-border-radius", baseCls: "bi-date-time-combo bi-border bi-border-radius",
width: 200, width: 200,
height: 24 height: 24,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -61442,16 +61435,16 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
}; };
this.trigger = BI.createWidget({ this.trigger = BI.createWidget({
type: "bi.date_time_trigger", type: "bi.date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
this.popup = BI.createWidget({ this.popup = BI.createWidget({
type: "bi.date_time_popup", type: "bi.date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
self.setValue(this.storeValue); self.setValue(this.storeValue);
@ -63098,14 +63091,14 @@ BI.extend(BI.DynamicDateCard, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -63141,8 +63134,8 @@ BI.extend(BI.DynamicDateCard, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_trigger", type: "bi.dynamic_date_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -63223,8 +63216,8 @@ BI.extend(BI.DynamicDateCard, {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -63993,14 +63986,14 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -64036,8 +64029,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_time_trigger", type: "bi.dynamic_date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -64118,8 +64111,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -80905,14 +80898,14 @@ BI.DateInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-date-interval" extraCls: "bi-date-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -81034,7 +81027,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -81084,14 +81078,14 @@ BI.TimeInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-time-interval" extraCls: "bi-time-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -81213,7 +81207,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -82987,13 +82982,13 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
width: 25, width: 25,
lgap: 15, lgap: 15,
offset: -15, offset: -15,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
extraCls: "bi-year-month-interval" extraCls: "bi-year-month-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
_init: function () { _init: function () {
@ -83100,7 +83095,8 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
// 判是否在最大最小之间 // 判是否在最大最小之间
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, 1, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, 1, o.minDate, o.maxDate)[0];
}, },
// 判格式合法 // 判格式合法

36
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/core.js vendored

@ -15919,21 +15919,16 @@ BI.ShowAction = BI.inherit(BI.Action, {
}; };
// replace the html special tags // replace the html special tags
var specialTags = {
"&": "&amp;",
"\"": "&quot;",
"<": "&lt;",
">": "&gt;",
" ": "&nbsp;"
};
BI.htmlEncode = function (text) { BI.htmlEncode = function (text) {
return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) { return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) {
switch (v) { return specialTags[v] ? specialTags[v] : "&nbsp;";
case "&":
return "&amp;";
case "\"":
return "&quot;";
case "<":
return "&lt;";
case ">":
return "&gt;";
case " ":
default:
return "&nbsp;";
}
}); });
}; };
// html decode // html decode

118
dist/fineui.ie.js vendored

@ -16164,21 +16164,16 @@ BI.ShowAction = BI.inherit(BI.Action, {
}; };
// replace the html special tags // replace the html special tags
var specialTags = {
"&": "&amp;",
"\"": "&quot;",
"<": "&lt;",
">": "&gt;",
" ": "&nbsp;"
};
BI.htmlEncode = function (text) { BI.htmlEncode = function (text) {
return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) { return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) {
switch (v) { return specialTags[v] ? specialTags[v] : "&nbsp;";
case "&":
return "&amp;";
case "\"":
return "&quot;";
case "<":
return "&lt;";
case ">":
return "&gt;";
case " ":
default:
return "&nbsp;";
}
}); });
}; };
// html decode // html decode
@ -36321,7 +36316,7 @@ BI.Text = BI.inherit(BI.Single, {
this.element.css({ this.element.css({
textAlign: o.textAlign, textAlign: o.textAlign,
whiteSpace: o.whiteSpace, whiteSpace: o.whiteSpace,
textOverflow: o.whiteSpace === 'nowrap' ? "ellipsis" : "", textOverflow: o.whiteSpace === "nowrap" ? "ellipsis" : ""
}); });
if (o.handler) { if (o.handler) {
this.text = BI.createWidget({ this.text = BI.createWidget({
@ -36339,15 +36334,7 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
mounted: function () {
var o = this.options;
var text = this._getShowText(); var text = this._getShowText();
if (BI.isKey(text)) { if (BI.isKey(text)) {
this.setText(text); this.setText(text);
@ -36362,6 +36349,12 @@ BI.Text = BI.inherit(BI.Single, {
} }
}, },
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
doRedMark: function (keyword) { doRedMark: function (keyword) {
var o = this.options; var o = this.options;
// render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword // render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword
@ -61258,15 +61251,15 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 290, popupHeight: 290,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-date-time-combo bi-border bi-border-radius", baseCls: "bi-date-time-combo bi-border bi-border-radius",
width: 200, width: 200,
height: 24 height: 24,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -61283,16 +61276,16 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
}; };
this.trigger = BI.createWidget({ this.trigger = BI.createWidget({
type: "bi.date_time_trigger", type: "bi.date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
this.popup = BI.createWidget({ this.popup = BI.createWidget({
type: "bi.date_time_popup", type: "bi.date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
self.setValue(this.storeValue); self.setValue(this.storeValue);
@ -62939,14 +62932,14 @@ BI.extend(BI.DynamicDateCard, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -62982,8 +62975,8 @@ BI.extend(BI.DynamicDateCard, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_trigger", type: "bi.dynamic_date_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -63064,8 +63057,8 @@ BI.extend(BI.DynamicDateCard, {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -63834,14 +63827,14 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -63877,8 +63870,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_time_trigger", type: "bi.dynamic_date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -63959,8 +63952,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -80746,14 +80739,14 @@ BI.DateInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-date-interval" extraCls: "bi-date-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -80875,7 +80868,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -80925,14 +80919,14 @@ BI.TimeInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-time-interval" extraCls: "bi-time-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -81054,7 +81048,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -82828,13 +82823,13 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
width: 25, width: 25,
lgap: 15, lgap: 15,
offset: -15, offset: -15,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
extraCls: "bi-year-month-interval" extraCls: "bi-year-month-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
_init: function () { _init: function () {
@ -82941,7 +82936,8 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
// 判是否在最大最小之间 // 判是否在最大最小之间
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, 1, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, 1, o.minDate, o.maxDate)[0];
}, },
// 判格式合法 // 判格式合法

38
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

118
dist/fineui.js vendored

@ -16164,21 +16164,16 @@ BI.ShowAction = BI.inherit(BI.Action, {
}; };
// replace the html special tags // replace the html special tags
var specialTags = {
"&": "&amp;",
"\"": "&quot;",
"<": "&lt;",
">": "&gt;",
" ": "&nbsp;"
};
BI.htmlEncode = function (text) { BI.htmlEncode = function (text) {
return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) { return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) {
switch (v) { return specialTags[v] ? specialTags[v] : "&nbsp;";
case "&":
return "&amp;";
case "\"":
return "&quot;";
case "<":
return "&lt;";
case ">":
return "&gt;";
case " ":
default:
return "&nbsp;";
}
}); });
}; };
// html decode // html decode
@ -36725,7 +36720,7 @@ BI.Text = BI.inherit(BI.Single, {
this.element.css({ this.element.css({
textAlign: o.textAlign, textAlign: o.textAlign,
whiteSpace: o.whiteSpace, whiteSpace: o.whiteSpace,
textOverflow: o.whiteSpace === 'nowrap' ? "ellipsis" : "", textOverflow: o.whiteSpace === "nowrap" ? "ellipsis" : ""
}); });
if (o.handler) { if (o.handler) {
this.text = BI.createWidget({ this.text = BI.createWidget({
@ -36743,15 +36738,7 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
mounted: function () {
var o = this.options;
var text = this._getShowText(); var text = this._getShowText();
if (BI.isKey(text)) { if (BI.isKey(text)) {
this.setText(text); this.setText(text);
@ -36766,6 +36753,12 @@ BI.Text = BI.inherit(BI.Single, {
} }
}, },
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
doRedMark: function (keyword) { doRedMark: function (keyword) {
var o = this.options; var o = this.options;
// render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword // render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword
@ -61662,15 +61655,15 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 290, popupHeight: 290,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-date-time-combo bi-border bi-border-radius", baseCls: "bi-date-time-combo bi-border bi-border-radius",
width: 200, width: 200,
height: 24 height: 24,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -61687,16 +61680,16 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
}; };
this.trigger = BI.createWidget({ this.trigger = BI.createWidget({
type: "bi.date_time_trigger", type: "bi.date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
this.popup = BI.createWidget({ this.popup = BI.createWidget({
type: "bi.date_time_popup", type: "bi.date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
self.setValue(this.storeValue); self.setValue(this.storeValue);
@ -63343,14 +63336,14 @@ BI.extend(BI.DynamicDateCard, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -63386,8 +63379,8 @@ BI.extend(BI.DynamicDateCard, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_trigger", type: "bi.dynamic_date_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -63468,8 +63461,8 @@ BI.extend(BI.DynamicDateCard, {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -64238,14 +64231,14 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -64281,8 +64274,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_time_trigger", type: "bi.dynamic_date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -64363,8 +64356,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -81150,14 +81143,14 @@ BI.DateInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-date-interval" extraCls: "bi-date-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -81279,7 +81272,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -81329,14 +81323,14 @@ BI.TimeInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-time-interval" extraCls: "bi-time-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -81458,7 +81452,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -83232,13 +83227,13 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
width: 25, width: 25,
lgap: 15, lgap: 15,
offset: -15, offset: -15,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
extraCls: "bi-year-month-interval" extraCls: "bi-year-month-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
_init: function () { _init: function () {
@ -83345,7 +83340,8 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
// 判是否在最大最小之间 // 判是否在最大最小之间
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, 1, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, 1, o.minDate, o.maxDate)[0];
}, },
// 判格式合法 // 判格式合法

36
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

118
dist/fineui_without_jquery_polyfill.js vendored

@ -15665,21 +15665,16 @@ BI.ShowAction = BI.inherit(BI.Action, {
}; };
// replace the html special tags // replace the html special tags
var specialTags = {
"&": "&amp;",
"\"": "&quot;",
"<": "&lt;",
">": "&gt;",
" ": "&nbsp;"
};
BI.htmlEncode = function (text) { BI.htmlEncode = function (text) {
return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) { return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) {
switch (v) { return specialTags[v] ? specialTags[v] : "&nbsp;";
case "&":
return "&amp;";
case "\"":
return "&quot;";
case "<":
return "&lt;";
case ">":
return "&gt;";
case " ":
default:
return "&nbsp;";
}
}); });
}; };
// html decode // html decode
@ -25156,7 +25151,7 @@ BI.Text = BI.inherit(BI.Single, {
this.element.css({ this.element.css({
textAlign: o.textAlign, textAlign: o.textAlign,
whiteSpace: o.whiteSpace, whiteSpace: o.whiteSpace,
textOverflow: o.whiteSpace === 'nowrap' ? "ellipsis" : "", textOverflow: o.whiteSpace === "nowrap" ? "ellipsis" : ""
}); });
if (o.handler) { if (o.handler) {
this.text = BI.createWidget({ this.text = BI.createWidget({
@ -25174,15 +25169,7 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
mounted: function () {
var o = this.options;
var text = this._getShowText(); var text = this._getShowText();
if (BI.isKey(text)) { if (BI.isKey(text)) {
this.setText(text); this.setText(text);
@ -25197,6 +25184,12 @@ BI.Text = BI.inherit(BI.Single, {
} }
}, },
_getShowText: function () {
var o = this.options;
return BI.isFunction(o.text) ? o.text() : o.text;
},
doRedMark: function (keyword) { doRedMark: function (keyword) {
var o = this.options; var o = this.options;
// render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword // render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword
@ -44054,15 +44047,15 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 290, popupHeight: 290,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-date-time-combo bi-border bi-border-radius", baseCls: "bi-date-time-combo bi-border bi-border-radius",
width: 200, width: 200,
height: 24 height: 24,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -44079,16 +44072,16 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
}; };
this.trigger = BI.createWidget({ this.trigger = BI.createWidget({
type: "bi.date_time_trigger", type: "bi.date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
this.popup = BI.createWidget({ this.popup = BI.createWidget({
type: "bi.date_time_popup", type: "bi.date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
self.setValue(this.storeValue); self.setValue(this.storeValue);
@ -45735,14 +45728,14 @@ BI.extend(BI.DynamicDateCard, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -45778,8 +45771,8 @@ BI.extend(BI.DynamicDateCard, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_trigger", type: "bi.dynamic_date_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -45860,8 +45853,8 @@ BI.extend(BI.DynamicDateCard, {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -46630,14 +46623,14 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -46673,8 +46666,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_time_trigger", type: "bi.dynamic_date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -46755,8 +46748,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -63542,14 +63535,14 @@ BI.DateInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-date-interval" extraCls: "bi-date-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -63671,7 +63664,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -63721,14 +63715,14 @@ BI.TimeInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-time-interval" extraCls: "bi-time-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -63850,7 +63844,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -65624,13 +65619,13 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
width: 25, width: 25,
lgap: 15, lgap: 15,
offset: -15, offset: -15,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
extraCls: "bi-year-month-interval" extraCls: "bi-year-month-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
_init: function () { _init: function () {
@ -65737,7 +65732,8 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
// 判是否在最大最小之间 // 判是否在最大最小之间
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, 1, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, 1, o.minDate, o.maxDate)[0];
}, },
// 判格式合法 // 判格式合法

21
dist/utils.js vendored

@ -12884,21 +12884,16 @@ if (!_global.BI) {
}; };
// replace the html special tags // replace the html special tags
var specialTags = {
"&": "&amp;",
"\"": "&quot;",
"<": "&lt;",
">": "&gt;",
" ": "&nbsp;"
};
BI.htmlEncode = function (text) { BI.htmlEncode = function (text) {
return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) { return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) {
switch (v) { return specialTags[v] ? specialTags[v] : "&nbsp;";
case "&":
return "&amp;";
case "\"":
return "&quot;";
case "<":
return "&lt;";
case ">":
return "&gt;";
case " ":
default:
return "&nbsp;";
}
}); });
}; };
// html decode // html decode

4
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

81
dist/widget.js vendored

@ -1022,15 +1022,15 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 290, popupHeight: 290,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-date-time-combo bi-border bi-border-radius", baseCls: "bi-date-time-combo bi-border bi-border-radius",
width: 200, width: 200,
height: 24 height: 24,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -1047,16 +1047,16 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
}; };
this.trigger = BI.createWidget({ this.trigger = BI.createWidget({
type: "bi.date_time_trigger", type: "bi.date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
this.popup = BI.createWidget({ this.popup = BI.createWidget({
type: "bi.date_time_popup", type: "bi.date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value value: opts.value
}); });
self.setValue(this.storeValue); self.setValue(this.storeValue);
@ -2703,14 +2703,14 @@ BI.extend(BI.DynamicDateCard, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -2746,8 +2746,8 @@ BI.extend(BI.DynamicDateCard, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_trigger", type: "bi.dynamic_date_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -2828,8 +2828,8 @@ BI.extend(BI.DynamicDateCard, {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -3598,14 +3598,14 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popupHeight: 259, popupHeight: 259,
popupWidth: 270, popupWidth: 270,
comboAdjustHeight: 1, comboAdjustHeight: 1,
border: 1, border: 1
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow",
height: 22 height: 22,
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
@ -3641,8 +3641,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
el: { el: {
type: "bi.dynamic_date_time_trigger", type: "bi.dynamic_date_time_trigger",
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
@ -3723,8 +3723,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: this.constants.DATE_MIN_VALUE, min: opts.minDate,
max: this.constants.DATE_MAX_VALUE, max: opts.maxDate,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
@ -20510,14 +20510,14 @@ BI.DateInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-date-interval" extraCls: "bi-date-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -20639,7 +20639,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -20689,14 +20690,14 @@ BI.TimeInterval = BI.inherit(BI.Single, {
width: 24, width: 24,
lgap: 15, lgap: 15,
offset: 0, offset: 0,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments); var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
extraCls: "bi-time-interval" extraCls: "bi-time-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}); });
}, },
_init: function () { _init: function () {
@ -20818,7 +20819,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date; BI.print(BI.parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date;
}, },
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];
}, },
_check: function (smallDate, bigDate) { _check: function (smallDate, bigDate) {
var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g); var smallObj = smallDate.match(/\d+/g), bigObj = bigDate.match(/\d+/g);
@ -22592,13 +22594,13 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
width: 25, width: 25,
lgap: 15, lgap: 15,
offset: -15, offset: -15,
timeErrorCls: "time-error", timeErrorCls: "time-error"
DATE_MIN_VALUE: "1900-01-01",
DATE_MAX_VALUE: "2099-12-31"
}, },
props: { props: {
extraCls: "bi-year-month-interval" extraCls: "bi-year-month-interval",
minDate: "1900-01-01",
maxDate: "2099-12-31"
}, },
_init: function () { _init: function () {
@ -22705,7 +22707,8 @@ BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger);BI.Year
// 判是否在最大最小之间 // 判是否在最大最小之间
_checkVoid: function (obj) { _checkVoid: function (obj) {
return !BI.checkDateVoid(obj.year, obj.month, 1, this.constants.DATE_MIN_VALUE, this.constants.DATE_MAX_VALUE)[0]; var o = this.options;
return !BI.checkDateVoid(obj.year, obj.month, 1, o.minDate, o.maxDate)[0];
}, },
// 判格式合法 // 判格式合法

Loading…
Cancel
Save