Browse Source

update

master
windy 7 years ago
parent
commit
ab6cf1eb63
  1. 7
      dist/bundle.js
  2. 7
      dist/fineui.js
  3. 7
      dist/widget.js
  4. 1
      src/widget/datepane/card.static.datepane.js
  5. 2
      src/widget/datetimepane/card.static.datetimepane.js
  6. 2
      src/widget/yearmonth/trigger.yearmonth.js
  7. 2
      src/widget/yearquarter/trigger.yearquarter.js

7
dist/bundle.js vendored

@ -88599,6 +88599,7 @@ BI.StaticDatePaneCard = BI.inherit(BI.Widget, {
}; };
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime)); self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
self.calendar.setValue(self.selectedTime); self.calendar.setValue(self.selectedTime);
day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
this.calendar = BI.createWidget({ 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.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
self.calendar.setValue(self.selectedTime); self.calendar.setValue(self.selectedTime);
self.fireEvent("EVENT_CHANGE"); day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
this.calendar = BI.createWidget({ this.calendar = BI.createWidget({
@ -109478,7 +109479,7 @@ BI.shortcut("bi.dynamic_year_month_popup", BI.DynamicYearMonthPopup);BI.DynamicY
_autoSwitch: function (editor) { _autoSwitch: function (editor) {
var v = editor.getValue(); var v = editor.getValue();
if (BI.checkDateLegal(v)) { if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) {
if (v.length === 4 && this._yearCheck(v)) { if (v.length === 4 && this._yearCheck(v)) {
this._doEditorConfirm(editor); this._doEditorConfirm(editor);
this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM); this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM);
@ -110418,7 +110419,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna
_autoSwitch: function (editor) { _autoSwitch: function (editor) {
var v = editor.getValue(); var v = editor.getValue();
if (BI.checkDateLegal(v)) { if (BI.isNotNull(v) && BI.checkDateLegal(v)) {
if (v.length === 4 && this._yearCheck(v)) { if (v.length === 4 && this._yearCheck(v)) {
this._doEditorConfirm(editor); this._doEditorConfirm(editor);
this.quarterEditor.focus(); this.quarterEditor.focus();

7
dist/fineui.js vendored

@ -88842,6 +88842,7 @@ BI.StaticDatePaneCard = BI.inherit(BI.Widget, {
}; };
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime)); self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
self.calendar.setValue(self.selectedTime); self.calendar.setValue(self.selectedTime);
day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
this.calendar = BI.createWidget({ 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.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
self.calendar.setValue(self.selectedTime); self.calendar.setValue(self.selectedTime);
self.fireEvent("EVENT_CHANGE"); day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
this.calendar = BI.createWidget({ this.calendar = BI.createWidget({
@ -109721,7 +109722,7 @@ BI.shortcut("bi.dynamic_year_month_popup", BI.DynamicYearMonthPopup);BI.DynamicY
_autoSwitch: function (editor) { _autoSwitch: function (editor) {
var v = editor.getValue(); var v = editor.getValue();
if (BI.checkDateLegal(v)) { if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) {
if (v.length === 4 && this._yearCheck(v)) { if (v.length === 4 && this._yearCheck(v)) {
this._doEditorConfirm(editor); this._doEditorConfirm(editor);
this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM); this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM);
@ -110661,7 +110662,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna
_autoSwitch: function (editor) { _autoSwitch: function (editor) {
var v = editor.getValue(); var v = editor.getValue();
if (BI.checkDateLegal(v)) { if (BI.isNotNull(v) && BI.checkDateLegal(v)) {
if (v.length === 4 && this._yearCheck(v)) { if (v.length === 4 && this._yearCheck(v)) {
this._doEditorConfirm(editor); this._doEditorConfirm(editor);
this.quarterEditor.focus(); this.quarterEditor.focus();

7
dist/widget.js vendored

@ -1132,6 +1132,7 @@ BI.StaticDatePaneCard = BI.inherit(BI.Widget, {
}; };
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime)); self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
self.calendar.setValue(self.selectedTime); self.calendar.setValue(self.selectedTime);
day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
this.calendar = BI.createWidget({ 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.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
self.calendar.setValue(self.selectedTime); self.calendar.setValue(self.selectedTime);
self.fireEvent("EVENT_CHANGE"); day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
this.calendar = BI.createWidget({ this.calendar = BI.createWidget({
@ -22011,7 +22012,7 @@ BI.shortcut("bi.dynamic_year_month_popup", BI.DynamicYearMonthPopup);BI.DynamicY
_autoSwitch: function (editor) { _autoSwitch: function (editor) {
var v = editor.getValue(); var v = editor.getValue();
if (BI.checkDateLegal(v)) { if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) {
if (v.length === 4 && this._yearCheck(v)) { if (v.length === 4 && this._yearCheck(v)) {
this._doEditorConfirm(editor); this._doEditorConfirm(editor);
this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM); this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM);
@ -22951,7 +22952,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna
_autoSwitch: function (editor) { _autoSwitch: function (editor) {
var v = editor.getValue(); var v = editor.getValue();
if (BI.checkDateLegal(v)) { if (BI.isNotNull(v) && BI.checkDateLegal(v)) {
if (v.length === 4 && this._yearCheck(v)) { if (v.length === 4 && this._yearCheck(v)) {
this._doEditorConfirm(editor); this._doEditorConfirm(editor);
this.quarterEditor.focus(); this.quarterEditor.focus();

1
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.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
self.calendar.setValue(self.selectedTime); self.calendar.setValue(self.selectedTime);
day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
this.calendar = BI.createWidget({ this.calendar = BI.createWidget({

2
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.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
self.calendar.setValue(self.selectedTime); self.calendar.setValue(self.selectedTime);
self.fireEvent("EVENT_CHANGE"); day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
this.calendar = BI.createWidget({ this.calendar = BI.createWidget({

2
src/widget/yearmonth/trigger.yearmonth.js

@ -167,7 +167,7 @@ BI.DynamicYearMonthTrigger = BI.inherit(BI.Trigger, {
_autoSwitch: function (editor) { _autoSwitch: function (editor) {
var v = editor.getValue(); var v = editor.getValue();
if (BI.checkDateLegal(v)) { if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) {
if (v.length === 4 && this._yearCheck(v)) { if (v.length === 4 && this._yearCheck(v)) {
this._doEditorConfirm(editor); this._doEditorConfirm(editor);
this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM); this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM);

2
src/widget/yearquarter/trigger.yearquarter.js

@ -133,7 +133,7 @@ BI.DynamicYearQuarterTrigger = BI.inherit(BI.Trigger, {
_autoSwitch: function (editor) { _autoSwitch: function (editor) {
var v = editor.getValue(); var v = editor.getValue();
if (BI.checkDateLegal(v)) { if (BI.isNotNull(v) && BI.checkDateLegal(v)) {
if (v.length === 4 && this._yearCheck(v)) { if (v.length === 4 && this._yearCheck(v)) {
this._doEditorConfirm(editor); this._doEditorConfirm(editor);
this.quarterEditor.focus(); this.quarterEditor.focus();

Loading…
Cancel
Save