Browse Source

auto upgrade version to 2.0.20210129094209

es6
data 4 years ago
parent
commit
1fd5c3e87f
  1. 2
      dist/2.0/fineui.css
  2. 4
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.ie.min.js.map
  4. 100
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.js.map
  6. 2
      dist/2.0/fineui.min.css
  7. 4
      dist/2.0/fineui.min.js
  8. 2
      dist/2.0/fineui.min.js.map
  9. 2
      dist/2.0/fineui_without_normalize.css
  10. 2
      dist/2.0/fineui_without_normalize.min.css
  11. 2
      dist/core.css
  12. 100
      dist/core.js
  13. 2
      dist/core.js.map
  14. 2
      dist/demo.css
  15. 100
      dist/demo.js
  16. 2
      dist/demo.js.map
  17. 2
      dist/fineui.css
  18. 4
      dist/fineui.ie.min.js
  19. 2
      dist/fineui.ie.min.js.map
  20. 100
      dist/fineui.js
  21. 2
      dist/fineui.js.map
  22. 2
      dist/fineui.min.css
  23. 4
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 100
      dist/fineui_without_jquery_polyfill.js
  26. 2
      dist/fineui_without_jquery_polyfill.js.map
  27. 2
      dist/font.css
  28. 2
      dist/resource.css
  29. 2
      dist/utils.js
  30. 2
      dist/utils.min.js
  31. 2
      package.json

2
dist/2.0/fineui.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

100
dist/2.0/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-1-28 15:30:27 */
/*! time: 2021-1-29 09:40:28 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -45073,8 +45073,9 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
shadow: true,
textHeight: c.buttonHeight - 1,
text: BI.i18nText("BI-Multi_Date_Today"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.todayButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -45202,13 +45203,13 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(true);
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%X-%d");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.todayButton.setValue(date);
this.todayButton.setEnable(false);
}
},
@ -45216,6 +45217,12 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -45254,12 +45261,12 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
month: date.getMonth() + 1,
day: date.getDate()
});
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
} else {
this.ymd.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
}
this.textButton.setEnable(true);
this.todayButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -46019,8 +46026,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.todayButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -46156,13 +46164,13 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(true);
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%X-%d");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.todayButton.setValue(date);
this.todayButton.setEnable(false);
}
},
@ -46170,6 +46178,12 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -46207,7 +46221,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
day: date.getDate()
});
this.timeSelect.setValue();
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
} else {
this.ymd.setValue(value);
this.timeSelect.setValue({
@ -46215,9 +46229,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
minute: value.minute,
second: value.second
});
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
}
this.textButton.setEnable(true);
this.todayButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -66594,6 +66608,7 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 85,
stopPropagation: false,
@ -66791,8 +66806,9 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
cls: "bi-split-left bi-split-right bi-high-light bi-split-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Year"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.yearButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -66821,16 +66837,22 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.textButton.setEnable(true);
this.yearButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.yearButton.setEnable(!this._checkYearValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.yearButton.setValue(date);
this.yearButton.setEnable(false);
}
},
_checkYearValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -66919,6 +66941,12 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
};
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -66951,8 +66979,8 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Static:
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.textButton.setEnable(true);
this.yearButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.yearButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -67751,6 +67779,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 100,
stopPropagation: false,
@ -67948,6 +67977,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Basic_Current_Month"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
},
@ -67979,7 +68009,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%x");
@ -67988,6 +68018,12 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
}
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -68110,7 +68146,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -68978,6 +69014,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 85,
stopPropagation: false,
@ -69168,6 +69205,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Basic_Current_Quarter"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
},
@ -69199,7 +69237,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicYearQuarterCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%Q");
@ -69208,6 +69246,12 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
}
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -69330,7 +69374,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
break;
}
},

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui_without_normalize.css vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/core.css vendored

File diff suppressed because one or more lines are too long

100
dist/core.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-1-28 15:30:27 */
/*! time: 2021-1-29 09:40:28 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -45073,8 +45073,9 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
shadow: true,
textHeight: c.buttonHeight - 1,
text: BI.i18nText("BI-Multi_Date_Today"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.todayButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -45202,13 +45203,13 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(true);
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%X-%d");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.todayButton.setValue(date);
this.todayButton.setEnable(false);
}
},
@ -45216,6 +45217,12 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -45254,12 +45261,12 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
month: date.getMonth() + 1,
day: date.getDate()
});
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
} else {
this.ymd.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
}
this.textButton.setEnable(true);
this.todayButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -46019,8 +46026,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.todayButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -46156,13 +46164,13 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(true);
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%X-%d");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.todayButton.setValue(date);
this.todayButton.setEnable(false);
}
},
@ -46170,6 +46178,12 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -46207,7 +46221,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
day: date.getDate()
});
this.timeSelect.setValue();
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
} else {
this.ymd.setValue(value);
this.timeSelect.setValue({
@ -46215,9 +46229,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
minute: value.minute,
second: value.second
});
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
}
this.textButton.setEnable(true);
this.todayButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -66594,6 +66608,7 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 85,
stopPropagation: false,
@ -66791,8 +66806,9 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
cls: "bi-split-left bi-split-right bi-high-light bi-split-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Year"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.yearButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -66821,16 +66837,22 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.textButton.setEnable(true);
this.yearButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.yearButton.setEnable(!this._checkYearValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.yearButton.setValue(date);
this.yearButton.setEnable(false);
}
},
_checkYearValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -66919,6 +66941,12 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
};
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -66951,8 +66979,8 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Static:
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.textButton.setEnable(true);
this.yearButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.yearButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -67751,6 +67779,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 100,
stopPropagation: false,
@ -67948,6 +67977,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Basic_Current_Month"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
},
@ -67979,7 +68009,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%x");
@ -67988,6 +68018,12 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
}
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -68110,7 +68146,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -68978,6 +69014,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 85,
stopPropagation: false,
@ -69168,6 +69205,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Basic_Current_Quarter"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
},
@ -69199,7 +69237,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicYearQuarterCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%Q");
@ -69208,6 +69246,12 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
}
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -69330,7 +69374,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
break;
}
},

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/demo.css vendored

File diff suppressed because one or more lines are too long

100
dist/demo.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-1-28 15:30:27 */
/*! time: 2021-1-29 09:40:28 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -45073,8 +45073,9 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
shadow: true,
textHeight: c.buttonHeight - 1,
text: BI.i18nText("BI-Multi_Date_Today"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.todayButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -45202,13 +45203,13 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(true);
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%X-%d");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.todayButton.setValue(date);
this.todayButton.setEnable(false);
}
},
@ -45216,6 +45217,12 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -45254,12 +45261,12 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
month: date.getMonth() + 1,
day: date.getDate()
});
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
} else {
this.ymd.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
}
this.textButton.setEnable(true);
this.todayButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -46019,8 +46026,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.todayButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -46156,13 +46164,13 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(true);
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%X-%d");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.todayButton.setValue(date);
this.todayButton.setEnable(false);
}
},
@ -46170,6 +46178,12 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -46207,7 +46221,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
day: date.getDate()
});
this.timeSelect.setValue();
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
} else {
this.ymd.setValue(value);
this.timeSelect.setValue({
@ -46215,9 +46229,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
minute: value.minute,
second: value.second
});
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
}
this.textButton.setEnable(true);
this.todayButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -66594,6 +66608,7 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 85,
stopPropagation: false,
@ -66791,8 +66806,9 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
cls: "bi-split-left bi-split-right bi-high-light bi-split-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Year"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.yearButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -66821,16 +66837,22 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.textButton.setEnable(true);
this.yearButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.yearButton.setEnable(!this._checkYearValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.yearButton.setValue(date);
this.yearButton.setEnable(false);
}
},
_checkYearValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -66919,6 +66941,12 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
};
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -66951,8 +66979,8 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Static:
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.textButton.setEnable(true);
this.yearButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.yearButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -67751,6 +67779,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 100,
stopPropagation: false,
@ -67948,6 +67977,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Basic_Current_Month"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
},
@ -67979,7 +68009,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%x");
@ -67988,6 +68018,12 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
}
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -68110,7 +68146,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -68978,6 +69014,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 85,
stopPropagation: false,
@ -69168,6 +69205,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Basic_Current_Quarter"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
},
@ -69199,7 +69237,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicYearQuarterCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%Q");
@ -69208,6 +69246,12 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
}
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -69330,7 +69374,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
break;
}
},

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

100
dist/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-1-28 15:30:27 */
/*! time: 2021-1-29 09:40:28 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -45073,8 +45073,9 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
shadow: true,
textHeight: c.buttonHeight - 1,
text: BI.i18nText("BI-Multi_Date_Today"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.todayButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -45202,13 +45203,13 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(true);
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%X-%d");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.todayButton.setValue(date);
this.todayButton.setEnable(false);
}
},
@ -45216,6 +45217,12 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -45254,12 +45261,12 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
month: date.getMonth() + 1,
day: date.getDate()
});
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
} else {
this.ymd.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
}
this.textButton.setEnable(true);
this.todayButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -46019,8 +46026,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.todayButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -46156,13 +46164,13 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(true);
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%X-%d");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.todayButton.setValue(date);
this.todayButton.setEnable(false);
}
},
@ -46170,6 +46178,12 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -46207,7 +46221,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
day: date.getDate()
});
this.timeSelect.setValue();
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
} else {
this.ymd.setValue(value);
this.timeSelect.setValue({
@ -46215,9 +46229,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
minute: value.minute,
second: value.second
});
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
}
this.textButton.setEnable(true);
this.todayButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -66594,6 +66608,7 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 85,
stopPropagation: false,
@ -66791,8 +66806,9 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
cls: "bi-split-left bi-split-right bi-high-light bi-split-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Year"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.yearButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -66821,16 +66837,22 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.textButton.setEnable(true);
this.yearButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.yearButton.setEnable(!this._checkYearValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.yearButton.setValue(date);
this.yearButton.setEnable(false);
}
},
_checkYearValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -66919,6 +66941,12 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
};
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -66951,8 +66979,8 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Static:
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.textButton.setEnable(true);
this.yearButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.yearButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -67751,6 +67779,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 100,
stopPropagation: false,
@ -67948,6 +67977,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Basic_Current_Month"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
},
@ -67979,7 +68009,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%x");
@ -67988,6 +68018,12 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
}
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -68110,7 +68146,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -68978,6 +69014,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 85,
stopPropagation: false,
@ -69168,6 +69205,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Basic_Current_Quarter"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
},
@ -69199,7 +69237,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicYearQuarterCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%Q");
@ -69208,6 +69246,12 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
}
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -69330,7 +69374,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
break;
}
},

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

100
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-1-28 15:30:27 */
/*! time: 2021-1-29 09:40:28 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -41100,8 +41100,9 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
shadow: true,
textHeight: c.buttonHeight - 1,
text: BI.i18nText("BI-Multi_Date_Today"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.todayButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -41229,13 +41230,13 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(true);
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%X-%d");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.todayButton.setValue(date);
this.todayButton.setEnable(false);
}
},
@ -41243,6 +41244,12 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -41281,12 +41288,12 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
month: date.getMonth() + 1,
day: date.getDate()
});
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
} else {
this.ymd.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
}
this.textButton.setEnable(true);
this.todayButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -42046,8 +42053,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.todayButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -42183,13 +42191,13 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.textButton.setEnable(true);
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%X-%d");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.todayButton.setValue(date);
this.todayButton.setEnable(false);
}
},
@ -42197,6 +42205,12 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -42234,7 +42248,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
day: date.getDate()
});
this.timeSelect.setValue();
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
} else {
this.ymd.setValue(value);
this.timeSelect.setValue({
@ -42242,9 +42256,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
minute: value.minute,
second: value.second
});
this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
this.todayButton.setValue(BI.i18nText("BI-Multi_Date_Today"));
}
this.textButton.setEnable(true);
this.todayButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -62621,6 +62635,7 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 85,
stopPropagation: false,
@ -62818,8 +62833,9 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
cls: "bi-split-left bi-split-right bi-high-light bi-split-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Year"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
self.yearButton = this;
},
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
@ -62848,16 +62864,22 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.textButton.setEnable(true);
this.yearButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.yearButton.setEnable(!this._checkYearValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y");
this.textButton.setValue(date);
this.textButton.setEnable(false);
this.yearButton.setValue(date);
this.yearButton.setEnable(false);
}
},
_checkYearValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -62946,6 +62968,12 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
};
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.options.min = minDate;
@ -62978,8 +63006,8 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Static:
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.textButton.setEnable(true);
this.yearButton.setValue(BI.i18nText("BI-Basic_Current_Year"));
this.yearButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -63778,6 +63806,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 100,
stopPropagation: false,
@ -63975,6 +64004,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Basic_Current_Month"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
},
@ -64006,7 +64036,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%x");
@ -64015,6 +64045,12 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
}
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -64137,7 +64173,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
break;
}
},
@ -65005,6 +65041,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
el: this.trigger,
destroyWhenHide: true,
popup: {
minWidth: 85,
stopPropagation: false,
@ -65195,6 +65232,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
textHeight: c.buttonHeight - 1,
shadow: true,
text: BI.i18nText("BI-Basic_Current_Quarter"),
disabled: this._checkTodayValid(),
ref: function () {
self.textButton = this;
},
@ -65226,7 +65264,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
_setInnerValue: function () {
if (this.dateTab.getSelect() === BI.DynamicYearQuarterCombo.Static) {
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
} else {
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());
date = BI.print(date, "%Y-%Q");
@ -65235,6 +65273,12 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
}
},
_checkTodayValid: function () {
var o = this.options;
var today = BI.getDate();
return !!BI.checkDateVoid(today.getFullYear(), today.getMonth() + 1, today.getDate(), o.min, o.max)[0];
},
_getTabJson: function () {
var self = this, o = this.options;
return {
@ -65357,7 +65401,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
default:
this.year.setValue(value);
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter"));
this.textButton.setEnable(true);
this.textButton.setEnable(!this._checkTodayValid());
break;
}
},

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/font.css vendored

File diff suppressed because one or more lines are too long

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

2
dist/utils.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-1-28 15:30:27 */
/*! time: 2021-1-29 09:40:28 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20210128153230",
"version": "2.0.20210129094209",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

Loading…
Cancel
Save