diff --git a/dist/bundle.js b/dist/bundle.js index 4e196e7d0c..251db6552a 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -88599,6 +88599,7 @@ BI.StaticDatePaneCard = BI.inherit(BI.Widget, { }; self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime)); self.calendar.setValue(self.selectedTime); + day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); }); this.calendar = BI.createWidget({ @@ -89322,7 +89323,7 @@ BI.shortcut("bi.date_time_trigger", BI.DateTimeTrigger);BI.StaticDateTimePaneCar }); self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime)); self.calendar.setValue(self.selectedTime); - self.fireEvent("EVENT_CHANGE"); + day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); }); this.calendar = BI.createWidget({ @@ -109478,7 +109479,7 @@ BI.shortcut("bi.dynamic_year_month_popup", BI.DynamicYearMonthPopup);BI.DynamicY _autoSwitch: function (editor) { var v = editor.getValue(); - if (BI.checkDateLegal(v)) { + if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) { if (v.length === 4 && this._yearCheck(v)) { this._doEditorConfirm(editor); this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM); @@ -110418,7 +110419,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna _autoSwitch: function (editor) { var v = editor.getValue(); - if (BI.checkDateLegal(v)) { + if (BI.isNotNull(v) && BI.checkDateLegal(v)) { if (v.length === 4 && this._yearCheck(v)) { this._doEditorConfirm(editor); this.quarterEditor.focus(); diff --git a/dist/fineui.js b/dist/fineui.js index de6cf4743b..68e6614153 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -88842,6 +88842,7 @@ BI.StaticDatePaneCard = BI.inherit(BI.Widget, { }; self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime)); self.calendar.setValue(self.selectedTime); + day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); }); this.calendar = BI.createWidget({ @@ -89565,7 +89566,7 @@ BI.shortcut("bi.date_time_trigger", BI.DateTimeTrigger);BI.StaticDateTimePaneCar }); self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime)); self.calendar.setValue(self.selectedTime); - self.fireEvent("EVENT_CHANGE"); + day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); }); this.calendar = BI.createWidget({ @@ -109721,7 +109722,7 @@ BI.shortcut("bi.dynamic_year_month_popup", BI.DynamicYearMonthPopup);BI.DynamicY _autoSwitch: function (editor) { var v = editor.getValue(); - if (BI.checkDateLegal(v)) { + if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) { if (v.length === 4 && this._yearCheck(v)) { this._doEditorConfirm(editor); this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM); @@ -110661,7 +110662,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna _autoSwitch: function (editor) { var v = editor.getValue(); - if (BI.checkDateLegal(v)) { + if (BI.isNotNull(v) && BI.checkDateLegal(v)) { if (v.length === 4 && this._yearCheck(v)) { this._doEditorConfirm(editor); this.quarterEditor.focus(); diff --git a/dist/widget.js b/dist/widget.js index 03c7b7c1ad..7d5a30c261 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -1132,6 +1132,7 @@ BI.StaticDatePaneCard = BI.inherit(BI.Widget, { }; self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime)); self.calendar.setValue(self.selectedTime); + day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); }); this.calendar = BI.createWidget({ @@ -1855,7 +1856,7 @@ BI.shortcut("bi.date_time_trigger", BI.DateTimeTrigger);BI.StaticDateTimePaneCar }); self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime)); self.calendar.setValue(self.selectedTime); - self.fireEvent("EVENT_CHANGE"); + day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); }); this.calendar = BI.createWidget({ @@ -22011,7 +22012,7 @@ BI.shortcut("bi.dynamic_year_month_popup", BI.DynamicYearMonthPopup);BI.DynamicY _autoSwitch: function (editor) { var v = editor.getValue(); - if (BI.checkDateLegal(v)) { + if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) { if (v.length === 4 && this._yearCheck(v)) { this._doEditorConfirm(editor); this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM); @@ -22951,7 +22952,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna _autoSwitch: function (editor) { var v = editor.getValue(); - if (BI.checkDateLegal(v)) { + if (BI.isNotNull(v) && BI.checkDateLegal(v)) { if (v.length === 4 && this._yearCheck(v)) { this._doEditorConfirm(editor); this.quarterEditor.focus(); diff --git a/src/widget/datepane/card.static.datepane.js b/src/widget/datepane/card.static.datepane.js index 181e73c357..1d31abce14 100644 --- a/src/widget/datepane/card.static.datepane.js +++ b/src/widget/datepane/card.static.datepane.js @@ -43,6 +43,7 @@ BI.StaticDatePaneCard = BI.inherit(BI.Widget, { }; self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime)); self.calendar.setValue(self.selectedTime); + day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); }); this.calendar = BI.createWidget({ diff --git a/src/widget/datetimepane/card.static.datetimepane.js b/src/widget/datetimepane/card.static.datetimepane.js index 913b9fcc05..6c8bd92eed 100644 --- a/src/widget/datetimepane/card.static.datetimepane.js +++ b/src/widget/datetimepane/card.static.datetimepane.js @@ -40,7 +40,7 @@ BI.StaticDateTimePaneCard = BI.inherit(BI.Widget, { }); self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime)); self.calendar.setValue(self.selectedTime); - self.fireEvent("EVENT_CHANGE"); + day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); }); this.calendar = BI.createWidget({ diff --git a/src/widget/yearmonth/trigger.yearmonth.js b/src/widget/yearmonth/trigger.yearmonth.js index 6173a7faaa..e44cf44f0f 100644 --- a/src/widget/yearmonth/trigger.yearmonth.js +++ b/src/widget/yearmonth/trigger.yearmonth.js @@ -167,7 +167,7 @@ BI.DynamicYearMonthTrigger = BI.inherit(BI.Trigger, { _autoSwitch: function (editor) { var v = editor.getValue(); - if (BI.checkDateLegal(v)) { + if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) { if (v.length === 4 && this._yearCheck(v)) { this._doEditorConfirm(editor); this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM); diff --git a/src/widget/yearquarter/trigger.yearquarter.js b/src/widget/yearquarter/trigger.yearquarter.js index 0ddd19a334..ef1b472516 100644 --- a/src/widget/yearquarter/trigger.yearquarter.js +++ b/src/widget/yearquarter/trigger.yearquarter.js @@ -133,7 +133,7 @@ BI.DynamicYearQuarterTrigger = BI.inherit(BI.Trigger, { _autoSwitch: function (editor) { var v = editor.getValue(); - if (BI.checkDateLegal(v)) { + if (BI.isNotNull(v) && BI.checkDateLegal(v)) { if (v.length === 4 && this._yearCheck(v)) { this._doEditorConfirm(editor); this.quarterEditor.focus();