Browse Source

BI-18028

es6
windy 7 years ago
parent
commit
567a965b90
  1. 13
      dist/bundle.js
  2. 13
      dist/widget.js
  3. 7
      src/widget/dynamicdate/dynamicdate.trigger.js
  4. 6
      src/widget/dynamicdatetime/dynamicdatetime.trigger.js

13
dist/bundle.js vendored

@ -91168,7 +91168,8 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger
hgap: 4,
vgap: 2,
yearLength: 4,
yearMonthLength: 7
yearMonthLength: 6,
yearFullMonthLength: 7
},
props: {
@ -91282,6 +91283,7 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger
}
break;
case this._const.yearMonthLength:
case this._const.yearFullMonthLength:
if (this._monthCheck(v)) {
this.editor.setValue(v + "-");
}
@ -91297,7 +91299,8 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger
_monthCheck: function (v) {
var date = BI.parseDateTime(v, "%Y-%X-%d").print("%Y-%X-%d");
return BI.parseDateTime(v, "%Y-%X").print("%Y-%X") === v && date >= this.options.min && date <= this.options.max;
return (BI.parseDateTime(v, "%Y-%X").print("%Y-%X") === v ||
BI.parseDateTime(v, "%Y-%x").print("%Y-%x") === v) && date >= this.options.min && date <= this.options.max;
},
_setInnerValue: function (date, text) {
@ -92058,7 +92061,8 @@ BI.extend(BI.DynamicDateTimeSelect, {
hgap: 4,
vgap: 2,
yearLength: 4,
yearMonthLength: 7
yearMonthLength: 6,
yearFullMonthLength: 7
},
props: {
@ -92190,7 +92194,8 @@ BI.extend(BI.DynamicDateTimeSelect, {
_monthCheck: function (v) {
var date = BI.parseDateTime(v, "%Y-%X-%d").print("%Y-%X-%d");
return BI.parseDateTime(v, "%Y-%X").print("%Y-%X") === v && date >= this.options.min && date <= this.options.max;
return (BI.parseDateTime(v, "%Y-%X").print("%Y-%X") === v ||
BI.parseDateTime(v, "%Y-%x").print("%Y-%x") === v) && date >= this.options.min && date <= this.options.max;
},
_setInnerValue: function (date, text) {

13
dist/widget.js vendored

@ -4031,7 +4031,8 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger
hgap: 4,
vgap: 2,
yearLength: 4,
yearMonthLength: 7
yearMonthLength: 6,
yearFullMonthLength: 7
},
props: {
@ -4145,6 +4146,7 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger
}
break;
case this._const.yearMonthLength:
case this._const.yearFullMonthLength:
if (this._monthCheck(v)) {
this.editor.setValue(v + "-");
}
@ -4160,7 +4162,8 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger
_monthCheck: function (v) {
var date = BI.parseDateTime(v, "%Y-%X-%d").print("%Y-%X-%d");
return BI.parseDateTime(v, "%Y-%X").print("%Y-%X") === v && date >= this.options.min && date <= this.options.max;
return (BI.parseDateTime(v, "%Y-%X").print("%Y-%X") === v ||
BI.parseDateTime(v, "%Y-%x").print("%Y-%x") === v) && date >= this.options.min && date <= this.options.max;
},
_setInnerValue: function (date, text) {
@ -4921,7 +4924,8 @@ BI.extend(BI.DynamicDateTimeSelect, {
hgap: 4,
vgap: 2,
yearLength: 4,
yearMonthLength: 7
yearMonthLength: 6,
yearFullMonthLength: 7
},
props: {
@ -5053,7 +5057,8 @@ BI.extend(BI.DynamicDateTimeSelect, {
_monthCheck: function (v) {
var date = BI.parseDateTime(v, "%Y-%X-%d").print("%Y-%X-%d");
return BI.parseDateTime(v, "%Y-%X").print("%Y-%X") === v && date >= this.options.min && date <= this.options.max;
return (BI.parseDateTime(v, "%Y-%X").print("%Y-%X") === v ||
BI.parseDateTime(v, "%Y-%x").print("%Y-%x") === v) && date >= this.options.min && date <= this.options.max;
},
_setInnerValue: function (date, text) {

7
src/widget/dynamicdate/dynamicdate.trigger.js

@ -3,7 +3,8 @@ BI.DynamicDateTrigger = BI.inherit(BI.Trigger, {
hgap: 4,
vgap: 2,
yearLength: 4,
yearMonthLength: 7
yearMonthLength: 6,
yearFullMonthLength: 7
},
props: {
@ -117,6 +118,7 @@ BI.DynamicDateTrigger = BI.inherit(BI.Trigger, {
}
break;
case this._const.yearMonthLength:
case this._const.yearFullMonthLength:
if (this._monthCheck(v)) {
this.editor.setValue(v + "-");
}
@ -132,7 +134,8 @@ BI.DynamicDateTrigger = BI.inherit(BI.Trigger, {
_monthCheck: function (v) {
var date = BI.parseDateTime(v, "%Y-%X-%d").print("%Y-%X-%d");
return BI.parseDateTime(v, "%Y-%X").print("%Y-%X") === v && date >= this.options.min && date <= this.options.max;
return (BI.parseDateTime(v, "%Y-%X").print("%Y-%X") === v ||
BI.parseDateTime(v, "%Y-%x").print("%Y-%x") === v) && date >= this.options.min && date <= this.options.max;
},
_setInnerValue: function (date, text) {

6
src/widget/dynamicdatetime/dynamicdatetime.trigger.js

@ -3,7 +3,8 @@ BI.DynamicDateTimeTrigger = BI.inherit(BI.Trigger, {
hgap: 4,
vgap: 2,
yearLength: 4,
yearMonthLength: 7
yearMonthLength: 6,
yearFullMonthLength: 7
},
props: {
@ -135,7 +136,8 @@ BI.DynamicDateTimeTrigger = BI.inherit(BI.Trigger, {
_monthCheck: function (v) {
var date = BI.parseDateTime(v, "%Y-%X-%d").print("%Y-%X-%d");
return BI.parseDateTime(v, "%Y-%X").print("%Y-%X") === v && date >= this.options.min && date <= this.options.max;
return (BI.parseDateTime(v, "%Y-%X").print("%Y-%X") === v ||
BI.parseDateTime(v, "%Y-%x").print("%Y-%x") === v) && date >= this.options.min && date <= this.options.max;
},
_setInnerValue: function (date, text) {

Loading…
Cancel
Save