Browse Source

Merge pull request #1128 in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '7b93b34d74ad9b2896f1b354129fe9928d3fe4e0':
  build
  BI-51377  input _checkValidationOnValueChange 方法修改
es6
guy 5 years ago
parent
commit
6c8f1bc864
  1. 11
      dist/2.0/fineui.ie.js
  2. 36
      dist/2.0/fineui.ie.min.js
  3. 11
      dist/2.0/fineui.js
  4. 48
      dist/2.0/fineui.min.js
  5. 11
      dist/base.js
  6. 11
      dist/bundle.ie.js
  7. 36
      dist/bundle.ie.min.js
  8. 11
      dist/bundle.js
  9. 48
      dist/bundle.min.js
  10. 11
      dist/fineui.ie.js
  11. 52
      dist/fineui.ie.min.js
  12. 11
      dist/fineui.js
  13. 40
      dist/fineui.min.js
  14. 11
      dist/fineui_without_jquery_polyfill.js
  15. BIN
      dist/font/iconfont.eot
  16. BIN
      dist/font/iconfont.ttf
  17. BIN
      dist/font/iconfont.woff
  18. BIN
      dist/font/iconfont.woff2
  19. 2
      dist/utils.min.js
  20. 7
      src/base/single/input/input.js

11
dist/2.0/fineui.ie.js vendored

@ -48406,7 +48406,7 @@ BI.Input = BI.inherit(BI.Single, {
blur();
}
function blur () {
function blur() {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {
self.element.val(self._lastValidValue ? self._lastValidValue : "");
self._checkValidationOnValueChange();
@ -48473,7 +48473,7 @@ BI.Input = BI.inherit(BI.Single, {
// _valueChange中会更新_lastValue, 这边缓存用以后续STOP事件服务
var lastValue = this._lastValue;
if(BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")){
if (BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")) {
this._valueChange();
}
if (BI.isEndWithBlank(this.getValue())) {
@ -48515,10 +48515,9 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastChangedValue ||
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
(o.allowBlank === true && BI.trim(v) == "") || (
BI.isNotEmptyString(BI.trim(v)) && o.validationChecker.apply(this, [BI.trim(v)]) !== false
)
);
},

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

File diff suppressed because one or more lines are too long

11
dist/2.0/fineui.js vendored

@ -48810,7 +48810,7 @@ BI.Input = BI.inherit(BI.Single, {
blur();
}
function blur () {
function blur() {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {
self.element.val(self._lastValidValue ? self._lastValidValue : "");
self._checkValidationOnValueChange();
@ -48877,7 +48877,7 @@ BI.Input = BI.inherit(BI.Single, {
// _valueChange中会更新_lastValue, 这边缓存用以后续STOP事件服务
var lastValue = this._lastValue;
if(BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")){
if (BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")) {
this._valueChange();
}
if (BI.isEndWithBlank(this.getValue())) {
@ -48919,10 +48919,9 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastChangedValue ||
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
(o.allowBlank === true && BI.trim(v) == "") || (
BI.isNotEmptyString(BI.trim(v)) && o.validationChecker.apply(this, [BI.trim(v)]) !== false
)
);
},

48
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/base.js vendored

@ -10537,7 +10537,7 @@ BI.Input = BI.inherit(BI.Single, {
blur();
}
function blur () {
function blur() {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {
self.element.val(self._lastValidValue ? self._lastValidValue : "");
self._checkValidationOnValueChange();
@ -10604,7 +10604,7 @@ BI.Input = BI.inherit(BI.Single, {
// _valueChange中会更新_lastValue, 这边缓存用以后续STOP事件服务
var lastValue = this._lastValue;
if(BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")){
if (BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")) {
this._valueChange();
}
if (BI.isEndWithBlank(this.getValue())) {
@ -10646,10 +10646,9 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastChangedValue ||
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
(o.allowBlank === true && BI.trim(v) == "") || (
BI.isNotEmptyString(BI.trim(v)) && o.validationChecker.apply(this, [BI.trim(v)]) !== false
)
);
},

11
dist/bundle.ie.js vendored

@ -48406,7 +48406,7 @@ BI.Input = BI.inherit(BI.Single, {
blur();
}
function blur () {
function blur() {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {
self.element.val(self._lastValidValue ? self._lastValidValue : "");
self._checkValidationOnValueChange();
@ -48473,7 +48473,7 @@ BI.Input = BI.inherit(BI.Single, {
// _valueChange中会更新_lastValue, 这边缓存用以后续STOP事件服务
var lastValue = this._lastValue;
if(BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")){
if (BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")) {
this._valueChange();
}
if (BI.isEndWithBlank(this.getValue())) {
@ -48515,10 +48515,9 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastChangedValue ||
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
(o.allowBlank === true && BI.trim(v) == "") || (
BI.isNotEmptyString(BI.trim(v)) && o.validationChecker.apply(this, [BI.trim(v)]) !== false
)
);
},

36
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/bundle.js vendored

@ -48810,7 +48810,7 @@ BI.Input = BI.inherit(BI.Single, {
blur();
}
function blur () {
function blur() {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {
self.element.val(self._lastValidValue ? self._lastValidValue : "");
self._checkValidationOnValueChange();
@ -48877,7 +48877,7 @@ BI.Input = BI.inherit(BI.Single, {
// _valueChange中会更新_lastValue, 这边缓存用以后续STOP事件服务
var lastValue = this._lastValue;
if(BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")){
if (BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")) {
this._valueChange();
}
if (BI.isEndWithBlank(this.getValue())) {
@ -48919,10 +48919,9 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastChangedValue ||
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
(o.allowBlank === true && BI.trim(v) == "") || (
BI.isNotEmptyString(BI.trim(v)) && o.validationChecker.apply(this, [BI.trim(v)]) !== false
)
);
},

48
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/fineui.ie.js vendored

@ -48651,7 +48651,7 @@ BI.Input = BI.inherit(BI.Single, {
blur();
}
function blur () {
function blur() {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {
self.element.val(self._lastValidValue ? self._lastValidValue : "");
self._checkValidationOnValueChange();
@ -48718,7 +48718,7 @@ BI.Input = BI.inherit(BI.Single, {
// _valueChange中会更新_lastValue, 这边缓存用以后续STOP事件服务
var lastValue = this._lastValue;
if(BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")){
if (BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")) {
this._valueChange();
}
if (BI.isEndWithBlank(this.getValue())) {
@ -48760,10 +48760,9 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastChangedValue ||
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
(o.allowBlank === true && BI.trim(v) == "") || (
BI.isNotEmptyString(BI.trim(v)) && o.validationChecker.apply(this, [BI.trim(v)]) !== false
)
);
},

52
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/fineui.js vendored

@ -49055,7 +49055,7 @@ BI.Input = BI.inherit(BI.Single, {
blur();
}
function blur () {
function blur() {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {
self.element.val(self._lastValidValue ? self._lastValidValue : "");
self._checkValidationOnValueChange();
@ -49122,7 +49122,7 @@ BI.Input = BI.inherit(BI.Single, {
// _valueChange中会更新_lastValue, 这边缓存用以后续STOP事件服务
var lastValue = this._lastValue;
if(BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")){
if (BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")) {
this._valueChange();
}
if (BI.isEndWithBlank(this.getValue())) {
@ -49164,10 +49164,9 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastChangedValue ||
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
(o.allowBlank === true && BI.trim(v) == "") || (
BI.isNotEmptyString(BI.trim(v)) && o.validationChecker.apply(this, [BI.trim(v)]) !== false
)
);
},

40
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/fineui_without_jquery_polyfill.js vendored

@ -35527,7 +35527,7 @@ BI.Input = BI.inherit(BI.Single, {
blur();
}
function blur () {
function blur() {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {
self.element.val(self._lastValidValue ? self._lastValidValue : "");
self._checkValidationOnValueChange();
@ -35594,7 +35594,7 @@ BI.Input = BI.inherit(BI.Single, {
// _valueChange中会更新_lastValue, 这边缓存用以后续STOP事件服务
var lastValue = this._lastValue;
if(BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")){
if (BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")) {
this._valueChange();
}
if (BI.isEndWithBlank(this.getValue())) {
@ -35636,10 +35636,9 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastChangedValue ||
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
(o.allowBlank === true && BI.trim(v) == "") || (
BI.isNotEmptyString(BI.trim(v)) && o.validationChecker.apply(this, [BI.trim(v)]) !== false
)
);
},

BIN
dist/font/iconfont.eot vendored

Binary file not shown.

BIN
dist/font/iconfont.ttf vendored

Binary file not shown.

BIN
dist/font/iconfont.woff vendored

Binary file not shown.

BIN
dist/font/iconfont.woff2 vendored

Binary file not shown.

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

7
src/base/single/input/input.js

@ -210,10 +210,9 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastChangedValue ||
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
(o.allowBlank === true && BI.trim(v) == "") || (
BI.isNotEmptyString(BI.trim(v)) && o.validationChecker.apply(this, [BI.trim(v)]) !== false
)
);
},

Loading…
Cancel
Save