diff --git a/dist/2.0/fineui.ie.js b/dist/2.0/fineui.ie.js index ed4cda12d..2903f3854 100644 --- a/dist/2.0/fineui.ie.js +++ b/dist/2.0/fineui.ie.js @@ -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(); diff --git a/dist/2.0/fineui.js b/dist/2.0/fineui.js index 4b07ce81e..4e84618a4 100644 --- a/dist/2.0/fineui.js +++ b/dist/2.0/fineui.js @@ -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(); diff --git a/dist/base.js b/dist/base.js index ba2c415d3..b283bc30d 100644 --- a/dist/base.js +++ b/dist/base.js @@ -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; }, diff --git a/dist/bundle.ie.js b/dist/bundle.ie.js index ed4cda12d..2903f3854 100644 --- a/dist/bundle.ie.js +++ b/dist/bundle.ie.js @@ -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(); diff --git a/dist/bundle.js b/dist/bundle.js index 4b07ce81e..4e84618a4 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -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(); diff --git a/dist/case.js b/dist/case.js index 182134c4d..f7cdf4c02 100644 --- a/dist/case.js +++ b/dist/case.js @@ -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); }, diff --git a/dist/fineui.ie.js b/dist/fineui.ie.js index d1d776721..d8a08279c 100644 --- a/dist/fineui.ie.js +++ b/dist/fineui.ie.js @@ -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(); diff --git a/dist/fineui.js b/dist/fineui.js index 2a792e440..5aaad068d 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -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(); diff --git a/dist/fineui_without_jquery_polyfill.js b/dist/fineui_without_jquery_polyfill.js index 372b97923..68019c362 100644 --- a/dist/fineui_without_jquery_polyfill.js +++ b/dist/fineui_without_jquery_polyfill.js @@ -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(); diff --git a/dist/widget.js b/dist/widget.js index 8b915e3b8..74902f284 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -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(); diff --git a/src/base/single/editor/editor.js b/src/base/single/editor/editor.js index 40c0fcac1..389e150f2 100644 --- a/src/base/single/editor/editor.js +++ b/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()); diff --git a/src/base/single/input/input.js b/src/base/single/input/input.js index 13cb90bd2..4cf79ae89 100644 --- a/src/base/single/input/input.js +++ b/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; }, diff --git a/src/base/single/tip/tip.js b/src/base/single/tip/tip.js index 75e7f7d06..c792b91b3 100644 --- a/src/base/single/tip/tip.js +++ b/src/base/single/tip/tip.js @@ -8,7 +8,7 @@ */ BI.Tip = BI.inherit(BI.Single, { _defaultConfig: function () { - var conf = BI.Link.superclass._defaultConfig.apply(this, arguments); + var conf = BI.Tip.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { _baseCls: (conf._baseCls || "") + " bi-tip", zIndex: BI.zIndex_tip diff --git a/src/base/single/tip/tip.tooltip.js b/src/base/single/tip/tip.tooltip.js index f319d12d5..22c72ace0 100644 --- a/src/base/single/tip/tip.tooltip.js +++ b/src/base/single/tip/tip.tooltip.js @@ -47,22 +47,22 @@ BI.Tooltip = BI.inherit(BI.Tip, { hgap: this._const.hgap, items: BI.map(texts, function (i, text) { return { - type: "bi.label", + type: "bi.text", textAlign: "left", whiteSpace: "normal", text: text, - textHeight: 18 + height: 18 }; }) }); } else { this.text = BI.createWidget({ - type: "bi.label", + type: "bi.text", element: this, textAlign: "left", whiteSpace: "normal", text: o.text, - textHeight: 16, + height: 16, hgap: this._const.hgap }); } diff --git a/src/case/editor/editor.shelter.js b/src/case/editor/editor.shelter.js index 2208631d2..d063827ed 100644 --- a/src/case/editor/editor.shelter.js +++ b/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); }, diff --git a/src/case/editor/editor.sign.js b/src/case/editor/editor.sign.js index ffb4b76e5..ba3c79833 100644 --- a/src/case/editor/editor.sign.js +++ b/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(); diff --git a/src/case/editor/editor.state.js b/src/case/editor/editor.state.js index 8785583d6..14b49ee0e 100644 --- a/src/case/editor/editor.state.js +++ b/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); }, diff --git a/src/case/editor/editor.state.simple.js b/src/case/editor/editor.state.simple.js index e8efff944..eff5c303f 100644 --- a/src/case/editor/editor.state.simple.js +++ b/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); }, diff --git a/src/widget/editor/editor.search.js b/src/widget/editor/editor.search.js index 167603616..59e160ed3 100644 --- a/src/widget/editor/editor.search.js +++ b/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)) { diff --git a/src/widget/multiselect/trigger/editor.multiselect.js b/src/widget/multiselect/trigger/editor.multiselect.js index 54333b3c3..ba3fc72d1 100644 --- a/src/widget/multiselect/trigger/editor.multiselect.js +++ b/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([" "]); diff --git a/src/widget/singleselect/trigger/editor.singleselect.js b/src/widget/singleselect/trigger/editor.singleselect.js index 95746b18c..b848de500 100644 --- a/src/widget/singleselect/trigger/editor.singleselect.js +++ b/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([" "]); diff --git a/src/widget/singleslider/button/editor.sign.text.js b/src/widget/singleslider/button/editor.sign.text.js index 53546c3e7..dee498687 100644 --- a/src/widget/singleslider/button/editor.sign.text.js +++ b/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();