Browse Source

Merge branch 'master' of ssh://cloud.finedevelop.com:7999/~dailer/fineui

master
dailer 6 years ago
parent
commit
a9916891b4
  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. 2
      src/base/single/tip/tip.js
  14. 8
      src/base/single/tip/tip.tooltip.js
  15. 4
      src/case/editor/editor.shelter.js
  16. 4
      src/case/editor/editor.sign.js
  17. 4
      src/case/editor/editor.state.js
  18. 4
      src/case/editor/editor.state.simple.js
  19. 6
      src/widget/editor/editor.search.js
  20. 2
      src/widget/multiselect/trigger/editor.multiselect.js
  21. 2
      src/widget/singleselect/trigger/editor.singleselect.js
  22. 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;
},

2
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

8
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
});
}

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