Browse Source

Merge pull request #923 in VISUAL/fineui from ~WINDY/fineui:master to master

* commit 'c1084a1b74864502b1b3ef63f5ec77f217947698':
  BI-45128 refactor: getLastChangedValue和getLastValidValue
es6
windy 6 years ago
parent
commit
74dfe82251
  1. 38
      dist/2.0/fineui.ie.js
  2. 38
      dist/2.0/fineui.js
  3. 8
      dist/base.js
  4. 38
      dist/bundle.ie.js
  5. 38
      dist/bundle.js
  6. 16
      dist/case.js
  7. 38
      dist/fineui.ie.js
  8. 38
      dist/fineui.js
  9. 38
      dist/fineui_without_jquery_polyfill.js
  10. 14
      dist/widget.js
  11. 4
      src/base/single/editor/editor.js
  12. 4
      src/base/single/input/input.js
  13. 4
      src/case/editor/editor.shelter.js
  14. 4
      src/case/editor/editor.sign.js
  15. 4
      src/case/editor/editor.state.js
  16. 4
      src/case/editor/editor.state.simple.js
  17. 6
      src/widget/editor/editor.search.js
  18. 2
      src/widget/multiselect/trigger/editor.multiselect.js
  19. 2
      src/widget/singleselect/trigger/editor.singleselect.js
  20. 4
      src/widget/singleslider/button/editor.sign.text.js

38
dist/2.0/fineui.ie.js vendored

@ -44627,6 +44627,10 @@ BI.Editor = BI.inherit(BI.Single, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
getValue: function () {
if (!this.isValid()) {
return BI.trim(this.editor.getLastValidValue());
@ -46125,6 +46129,10 @@ BI.Input = BI.inherit(BI.Single, {
},
getLastValidValue: function () {
return this._lastValidValue;
},
getLastChangedValue: function () {
return this._lastChangedValue;
},
@ -55825,6 +55833,10 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setTextStyle: function (style) {
this.text.setStyle(style);
},
@ -56096,6 +56108,10 @@ BI.SignEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
this._checkText();
@ -56350,6 +56366,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -56625,6 +56645,10 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -64689,7 +64713,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -64701,6 +64725,10 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
if (BI.isKey(v)) {
@ -70825,7 +70853,7 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -78689,7 +78717,7 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -79018,6 +79046,10 @@ BI.SignTextEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
this._checkText();

38
dist/2.0/fineui.js vendored

@ -45031,6 +45031,10 @@ BI.Editor = BI.inherit(BI.Single, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
getValue: function () {
if (!this.isValid()) {
return BI.trim(this.editor.getLastValidValue());
@ -46529,6 +46533,10 @@ BI.Input = BI.inherit(BI.Single, {
},
getLastValidValue: function () {
return this._lastValidValue;
},
getLastChangedValue: function () {
return this._lastChangedValue;
},
@ -56229,6 +56237,10 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setTextStyle: function (style) {
this.text.setStyle(style);
},
@ -56500,6 +56512,10 @@ BI.SignEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
this._checkText();
@ -56754,6 +56770,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -57029,6 +57049,10 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -65093,7 +65117,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -65105,6 +65129,10 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
if (BI.isKey(v)) {
@ -71229,7 +71257,7 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -79093,7 +79121,7 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -79422,6 +79450,10 @@ BI.SignTextEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
this._checkText();

8
dist/base.js vendored

@ -9138,6 +9138,10 @@ BI.Editor = BI.inherit(BI.Single, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
getValue: function () {
if (!this.isValid()) {
return BI.trim(this.editor.getLastValidValue());
@ -10636,6 +10640,10 @@ BI.Input = BI.inherit(BI.Single, {
},
getLastValidValue: function () {
return this._lastValidValue;
},
getLastChangedValue: function () {
return this._lastChangedValue;
},

38
dist/bundle.ie.js vendored

@ -44627,6 +44627,10 @@ BI.Editor = BI.inherit(BI.Single, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
getValue: function () {
if (!this.isValid()) {
return BI.trim(this.editor.getLastValidValue());
@ -46125,6 +46129,10 @@ BI.Input = BI.inherit(BI.Single, {
},
getLastValidValue: function () {
return this._lastValidValue;
},
getLastChangedValue: function () {
return this._lastChangedValue;
},
@ -55825,6 +55833,10 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setTextStyle: function (style) {
this.text.setStyle(style);
},
@ -56096,6 +56108,10 @@ BI.SignEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
this._checkText();
@ -56350,6 +56366,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -56625,6 +56645,10 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -64689,7 +64713,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -64701,6 +64725,10 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
if (BI.isKey(v)) {
@ -70825,7 +70853,7 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -78689,7 +78717,7 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -79018,6 +79046,10 @@ BI.SignTextEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
this._checkText();

38
dist/bundle.js vendored

@ -45031,6 +45031,10 @@ BI.Editor = BI.inherit(BI.Single, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
getValue: function () {
if (!this.isValid()) {
return BI.trim(this.editor.getLastValidValue());
@ -46529,6 +46533,10 @@ BI.Input = BI.inherit(BI.Single, {
},
getLastValidValue: function () {
return this._lastValidValue;
},
getLastChangedValue: function () {
return this._lastChangedValue;
},
@ -56229,6 +56237,10 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setTextStyle: function (style) {
this.text.setStyle(style);
},
@ -56500,6 +56512,10 @@ BI.SignEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
this._checkText();
@ -56754,6 +56770,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -57029,6 +57049,10 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -65093,7 +65117,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -65105,6 +65129,10 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
if (BI.isKey(v)) {
@ -71229,7 +71257,7 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -79093,7 +79121,7 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -79422,6 +79450,10 @@ BI.SignTextEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
this._checkText();

16
dist/case.js vendored

@ -5932,6 +5932,10 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setTextStyle: function (style) {
this.text.setStyle(style);
},
@ -6203,6 +6207,10 @@ BI.SignEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
this._checkText();
@ -6457,6 +6465,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -6732,6 +6744,10 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},

38
dist/fineui.ie.js vendored

@ -44872,6 +44872,10 @@ BI.Editor = BI.inherit(BI.Single, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
getValue: function () {
if (!this.isValid()) {
return BI.trim(this.editor.getLastValidValue());
@ -46370,6 +46374,10 @@ BI.Input = BI.inherit(BI.Single, {
},
getLastValidValue: function () {
return this._lastValidValue;
},
getLastChangedValue: function () {
return this._lastChangedValue;
},
@ -56070,6 +56078,10 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setTextStyle: function (style) {
this.text.setStyle(style);
},
@ -56341,6 +56353,10 @@ BI.SignEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
this._checkText();
@ -56595,6 +56611,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -56870,6 +56890,10 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -64934,7 +64958,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -64946,6 +64970,10 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
if (BI.isKey(v)) {
@ -71070,7 +71098,7 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -78934,7 +78962,7 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -79263,6 +79291,10 @@ BI.SignTextEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
this._checkText();

38
dist/fineui.js vendored

@ -45276,6 +45276,10 @@ BI.Editor = BI.inherit(BI.Single, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
getValue: function () {
if (!this.isValid()) {
return BI.trim(this.editor.getLastValidValue());
@ -46774,6 +46778,10 @@ BI.Input = BI.inherit(BI.Single, {
},
getLastValidValue: function () {
return this._lastValidValue;
},
getLastChangedValue: function () {
return this._lastChangedValue;
},
@ -56474,6 +56482,10 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setTextStyle: function (style) {
this.text.setStyle(style);
},
@ -56745,6 +56757,10 @@ BI.SignEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
this._checkText();
@ -56999,6 +57015,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -57274,6 +57294,10 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -65338,7 +65362,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -65350,6 +65374,10 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
if (BI.isKey(v)) {
@ -71474,7 +71502,7 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -79338,7 +79366,7 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -79667,6 +79695,10 @@ BI.SignTextEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
this._checkText();

38
dist/fineui_without_jquery_polyfill.js vendored

@ -32455,6 +32455,10 @@ BI.Editor = BI.inherit(BI.Single, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
getValue: function () {
if (!this.isValid()) {
return BI.trim(this.editor.getLastValidValue());
@ -33328,6 +33332,10 @@ BI.Input = BI.inherit(BI.Single, {
},
getLastValidValue: function () {
return this._lastValidValue;
},
getLastChangedValue: function () {
return this._lastChangedValue;
},
@ -39142,6 +39150,10 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setTextStyle: function (style) {
this.text.setStyle(style);
},
@ -39413,6 +39425,10 @@ BI.SignEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
this._checkText();
@ -39667,6 +39683,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -39942,6 +39962,10 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
@ -47730,7 +47754,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -47742,6 +47766,10 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
if (BI.isKey(v)) {
@ -53866,7 +53894,7 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -61730,7 +61758,7 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -62059,6 +62087,10 @@ BI.SignTextEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
this._checkText();

14
dist/widget.js vendored

@ -4891,7 +4891,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -4903,6 +4903,10 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
if (BI.isKey(v)) {
@ -11027,7 +11031,7 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -18891,7 +18895,7 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -19220,6 +19224,10 @@ BI.SignTextEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
this._checkText();

4
src/base/single/editor/editor.js

@ -300,6 +300,10 @@ BI.Editor = BI.inherit(BI.Single, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
getValue: function () {
if (!this.isValid()) {
return BI.trim(this.editor.getLastValidValue());

4
src/base/single/input/input.js

@ -267,6 +267,10 @@ BI.Input = BI.inherit(BI.Single, {
},
getLastValidValue: function () {
return this._lastValidValue;
},
getLastChangedValue: function () {
return this._lastChangedValue;
},

4
src/case/editor/editor.shelter.js

@ -222,6 +222,10 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setTextStyle: function (style) {
this.text.setStyle(style);
},

4
src/case/editor/editor.sign.js

@ -226,6 +226,10 @@ BI.SignEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
this._checkText();

4
src/case/editor/editor.state.js

@ -215,6 +215,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},

4
src/case/editor/editor.state.simple.js

@ -201,6 +201,10 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (k) {
this.editor.setValue(k);
},

6
src/widget/editor/editor.search.js

@ -149,7 +149,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
@ -161,6 +161,10 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
if (BI.isKey(v)) {

2
src/widget/multiselect/trigger/editor.multiselect.js

@ -70,7 +70,7 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);

2
src/widget/singleselect/trigger/editor.singleselect.js

@ -64,7 +64,7 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, {
},
getKeywords: function () {
var val = this.editor.getLastValidValue();
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);

4
src/widget/singleslider/button/editor.sign.text.js

@ -167,6 +167,10 @@ BI.SignTextEditor = BI.inherit(BI.Widget, {
return this.editor.getLastValidValue();
},
getLastChangedValue: function () {
return this.editor.getLastChangedValue();
},
setValue: function (v) {
this.editor.setValue(v);
this._checkText();

Loading…
Cancel
Save