Browse Source

chore: build

es6
iapyang 5 years ago
parent
commit
4b8d182b81
  1. 2
      dist/2.0/fineui.css.map
  2. 428
      dist/2.0/fineui.ie.js
  3. 2
      dist/2.0/fineui.ie.js.map
  4. 66
      dist/2.0/fineui.ie.min.js
  5. 2
      dist/2.0/fineui.ie.min.js.map
  6. 426
      dist/2.0/fineui.js
  7. 2
      dist/2.0/fineui.js.map
  8. 66
      dist/2.0/fineui.min.js
  9. 2
      dist/2.0/fineui.min.js.map
  10. 2
      dist/base.css.map
  11. 2
      dist/base.js.map
  12. 2
      dist/bundle.css.map
  13. 428
      dist/bundle.ie.js
  14. 2
      dist/bundle.ie.js.map
  15. 66
      dist/bundle.ie.min.js
  16. 2
      dist/bundle.ie.min.js.map
  17. 426
      dist/bundle.js
  18. 2
      dist/bundle.js.map
  19. 66
      dist/bundle.min.js
  20. 2
      dist/bundle.min.js.map
  21. 171
      dist/case.js
  22. 2
      dist/case.js.map
  23. 2
      dist/config.js.map
  24. 2
      dist/core.css.map
  25. 37
      dist/core.js
  26. 2
      dist/core.js.map
  27. 2
      dist/core_without_normalize.css.map
  28. 2
      dist/demo.js.map
  29. 2
      dist/es5.fineui.js.map
  30. 2
      dist/es5.polyfill.js
  31. 2
      dist/es5.polyfill.js.map
  32. 2
      dist/fineui.css.map
  33. 430
      dist/fineui.ie.js
  34. 2
      dist/fineui.ie.js.map
  35. 70
      dist/fineui.ie.min.js
  36. 2
      dist/fineui.ie.min.js.map
  37. 428
      dist/fineui.js
  38. 2
      dist/fineui.js.map
  39. 80
      dist/fineui.min.js
  40. 2
      dist/fineui.min.js.map
  41. 412
      dist/fineui_without_jquery_polyfill.js
  42. 2
      dist/fineui_without_jquery_polyfill.js.map
  43. 2
      dist/ie.fineui.js
  44. 2
      dist/ie.fineui.js.map
  45. 2
      dist/ie.polyfill.js
  46. 2
      dist/ie.polyfill.js.map
  47. 2
      dist/polyfill.js.map
  48. 2
      dist/router.js.map
  49. 23
      dist/utils.js
  50. 2
      dist/utils.js.map
  51. 10
      dist/utils.min.js
  52. 2
      dist/utils.min.js.map
  53. 2
      dist/widget.css.map
  54. 218
      dist/widget.js
  55. 2
      dist/widget.js.map

2
dist/2.0/fineui.css.map vendored

File diff suppressed because one or more lines are too long

428
dist/2.0/fineui.ie.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

66
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

426
dist/2.0/fineui.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

66
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/base.css.map vendored

File diff suppressed because one or more lines are too long

2
dist/base.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.css.map vendored

File diff suppressed because one or more lines are too long

428
dist/bundle.ie.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.ie.js.map vendored

File diff suppressed because one or more lines are too long

66
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

426
dist/bundle.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.js.map vendored

File diff suppressed because one or more lines are too long

66
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.min.js.map vendored

File diff suppressed because one or more lines are too long

171
dist/case.js vendored

@ -1741,37 +1741,10 @@ BI.Calendar = BI.inherit(BI.Widget, {
vgap: 10
}]
});
var days = this._dateCreator(o.year, o.month - 1, o.day);
items = [];
items.push(days.slice(0, 7));
items.push(days.slice(7, 14));
items.push(days.slice(14, 21));
items.push(days.slice(21, 28));
items.push(days.slice(28, 35));
items.push(days.slice(35, 42));
items = BI.map(items, function (i, item) {
return BI.map(item, function (j, td) {
var month = td.lastMonth ? o.month - 1 : (td.nextMonth ? o.month + 1 : o.month);
return BI.extend(td, {
type: "bi.calendar_date_item",
textAlign: "center",
whiteSpace: "normal",
once: false,
forceSelected: true,
height: 24,
value: o.year + "-" + month + "-" + td.text,
disabled: td.lastMonth || td.nextMonth || td.disabled,
lgap: 5,
rgap: 5
// selected: td.currentDay
});
});
});
this.days = BI.createWidget({
type: "bi.button_group",
items: BI.createItems(items, {}),
items: BI.createItems(this._getItems(), {}),
layouts: [BI.LogicFactory.createLogic("table", BI.extend({}, o.logic, {
columns: 7,
rows: 6,
@ -1815,6 +1788,57 @@ BI.Calendar = BI.inherit(BI.Widget, {
return !!BI.checkDateVoid(newDate.getFullYear(), newDate.getMonth(), newDate.getDate(), o.min, o.max)[0];
},
_getItems: function () {
var o = this.options;
var days = this._dateCreator(o.year, o.month - 1, o.day);
var items = [];
items.push(days.slice(0, 7));
items.push(days.slice(7, 14));
items.push(days.slice(14, 21));
items.push(days.slice(21, 28));
items.push(days.slice(28, 35));
items.push(days.slice(35, 42));
return BI.map(items, function (i, item) {
return BI.map(item, function (j, td) {
var month = td.lastMonth ? o.month - 1 : (td.nextMonth ? o.month + 1 : o.month);
return BI.extend(td, {
type: "bi.calendar_date_item",
textAlign: "center",
whiteSpace: "normal",
once: false,
forceSelected: true,
height: 24,
value: o.year + "-" + month + "-" + td.text,
disabled: td.lastMonth || td.nextMonth || td.disabled,
lgap: 5,
rgap: 5
// selected: td.currentDay
});
});
});
},
_populate: function() {
this.days.populate(this._getItems());
},
setMinDate: function (minDate) {
var o = this.options;
if (BI.isNotEmptyString(o.min)) {
o.min = minDate;
this._populate();
}
},
setMaxDate: function (maxDate) {
var o = this.options;
if (BI.isNotEmptyString(o.max)) {
o.max = maxDate;
this._populate();
}
},
setValue: function (ob) {
this.days.setValue([ob.year + "-" + ob.month + "-" + ob.day]);
},
@ -1900,43 +1924,11 @@ BI.YearCalendar = BI.inherit(BI.Widget, {
BI.YearCalendar.superclass._init.apply(this, arguments);
var self = this, o = this.options;
this.currentYear = BI.getDate().getFullYear();
var years = this._yearCreator(o.year || this.currentYear);
// 纵向排列年
var len = years.length, tyears = BI.makeArray(len, "");
var map = [0, 6, 1, 7, 2, 8, 3, 9, 4, 10, 5, 11];
BI.each(years, function (i, y) {
tyears[i] = years[map[i]];
});
var items = [];
items.push(tyears.slice(0, 2));
items.push(tyears.slice(2, 4));
items.push(tyears.slice(4, 6));
items.push(tyears.slice(6, 8));
items.push(tyears.slice(8, 10));
items.push(tyears.slice(10, 12));
items = BI.map(items, function (i, item) {
return BI.map(item, function (j, td) {
return BI.extend(td, {
type: "bi.text_item",
cls: "bi-list-item-select",
textAlign: "center",
whiteSpace: "normal",
once: false,
forceSelected: true,
height: 24,
width: 45,
value: td.text,
disabled: td.disabled
});
});
});
this.years = BI.createWidget({
type: "bi.button_group",
behaviors: o.behaviors,
items: BI.createItems(items, {}),
items: BI.createItems(this._getItems(), {}),
layouts: [BI.LogicFactory.createLogic("table", BI.extend({}, o.logic, {
columns: 2,
rows: 6,
@ -1972,6 +1964,63 @@ BI.YearCalendar = BI.inherit(BI.Widget, {
return !!BI.checkDateVoid(BI.YearCalendar.getEndYear(Y) + 1, 1, 1, o.min, o.max)[0];
},
_getItems: function () {
var o = this.options;
var years = this._yearCreator(o.year || this.currentYear);
// 纵向排列年
var len = years.length, tyears = BI.makeArray(len, "");
var map = [0, 6, 1, 7, 2, 8, 3, 9, 4, 10, 5, 11];
BI.each(years, function (i, y) {
tyears[i] = years[map[i]];
});
var items = [];
items.push(tyears.slice(0, 2));
items.push(tyears.slice(2, 4));
items.push(tyears.slice(4, 6));
items.push(tyears.slice(6, 8));
items.push(tyears.slice(8, 10));
items.push(tyears.slice(10, 12));
return BI.map(items, function (i, item) {
return BI.map(item, function (j, td) {
return BI.extend(td, {
type: "bi.text_item",
cls: "bi-list-item-select",
textAlign: "center",
whiteSpace: "normal",
once: false,
forceSelected: true,
height: 24,
width: 45,
value: td.text,
disabled: td.disabled
});
});
});
},
_populate: function () {
this.years.populate(this._getItems());
},
setMinDate: function (minDate) {
var o = this.options;
if (BI.isNotEmptyString(o.min)) {
o.min = minDate;
this._populate();
}
},
setMaxDate: function (maxDate) {
var o = this.options;
if (BI.isNotEmptyString(this.options.max)) {
o.max = maxDate;
this._populate();
}
},
setValue: function (val) {
this.years.setValue([val]);
},

2
dist/case.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/config.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/core.css.map vendored

File diff suppressed because one or more lines are too long

37
dist/core.js vendored

File diff suppressed because one or more lines are too long

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/core_without_normalize.css.map vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/es5.fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/es5.polyfill.js vendored

File diff suppressed because one or more lines are too long

2
dist/es5.polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.css.map vendored

File diff suppressed because one or more lines are too long

430
dist/fineui.ie.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.js.map vendored

File diff suppressed because one or more lines are too long

70
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

428
dist/fineui.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

80
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

412
dist/fineui_without_jquery_polyfill.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/ie.fineui.js vendored

@ -1 +1 @@
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{"default":e};var t=c();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function c(e){if(e&&e.__esModule)return e;var t=i();if(t&&t.has(e))return t.get(e);var r={};if(null!=e){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});

2
dist/ie.fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/ie.polyfill.js vendored

File diff suppressed because one or more lines are too long

2
dist/ie.polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/router.js.map vendored

File diff suppressed because one or more lines are too long

23
dist/utils.js vendored

File diff suppressed because one or more lines are too long

2
dist/utils.js.map vendored

File diff suppressed because one or more lines are too long

10
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/utils.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/widget.css.map vendored

File diff suppressed because one or more lines are too long

218
dist/widget.js vendored

@ -128,6 +128,14 @@ BI.YearDateCombo = BI.inherit(BI.Trigger, {
});
},
setMinDate: function (minDate) {
this.popup.setMinDate(minDate);
},
setMaxDate: function (maxDate) {
this.popup.setMaxDate(maxDate);
},
setValue: function (v) {
this.trigger.setValue(v);
this.popup.setValue(v);
@ -282,7 +290,13 @@ BI.DatePicker = BI.inherit(BI.Widget, {
return valid;
},
setMinDate: function (minDate) {
this.year.setMinDate(minDate);
},
setMaxDate: function (maxDate) {
this.year.setMaxDate(maxDate);
},
setValue: function (ob) {
this._year = BI.parseInt(ob.year);
@ -407,6 +421,19 @@ BI.YearPicker = BI.inherit(BI.Widget, {
return valid;
},
setMinDate: function (minDate) {
this.options.min = minDate;
this.year.setMinDate(minDate);
this._checkLeftValid();
this._checkRightValid();
},
setMaxDate: function (maxDate) {
this.options.max = maxDate;
this.year.setMaxDate(maxDate);
this._checkLeftValid();
this._checkRightValid();
},
setValue: function (v) {
@ -526,6 +553,36 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
});
},
_checkMin: function () {
var calendar = this.calendar.getSelectedCard();
if (BI.isNotNull(calendar)) {
calendar.setMinDate(this.options.min);
}
},
_checkMax: function () {
var calendar = this.calendar.getSelectedCard();
if (BI.isNotNull(calendar)) {
calendar.setMaxDate(this.options.max);
}
},
setMinDate: function (minDate) {
if (BI.isNotEmptyString(this.options.min)) {
this.options.min = minDate;
this.datePicker.setMinDate(minDate);
this._checkMin();
}
},
setMaxDate: function (maxDate) {
if (BI.isNotEmptyString(this.options.max)) {
this.options.max = maxDate;
this.datePicker.setMaxDate(maxDate);
this._checkMax();
}
},
setValue: function (timeOb) {
this.datePicker.setValue(timeOb);
this.calendar.setSelect(BI.Calendar.getPageByDateJSON(timeOb));
@ -663,7 +720,7 @@ BI.YearPopup = BI.inherit(BI.Widget, {
this.selectedYear = this._year = BI.getDate().getFullYear();
var backBtn = BI.createWidget({
this.backBtn = BI.createWidget({
type: "bi.icon_button",
cls: "pre-page-h-font",
width: 24,
@ -671,7 +728,7 @@ BI.YearPopup = BI.inherit(BI.Widget, {
value: -1
});
var preBtn = BI.createWidget({
this.preBtn = BI.createWidget({
type: "bi.icon_button",
cls: "next-page-h-font",
width: 24,
@ -689,15 +746,15 @@ BI.YearPopup = BI.inherit(BI.Widget, {
tab: {
cls: "year-popup-navigation bi-high-light bi-split-top",
height: 24,
items: [backBtn, preBtn]
items: [this.backBtn, this.preBtn]
},
cardCreator: BI.bind(this._createYearCalendar, this),
afterCardShow: function () {
this.setValue(self.selectedYear);
var calendar = this.getSelectedCard();
backBtn.setEnable(!calendar.isFrontYear());
preBtn.setEnable(!calendar.isFinalYear());
calendar && self.backBtn.setEnable(!calendar.isFrontYear());
calendar && self.preBtn.setEnable(!calendar.isFinalYear());
}
});
@ -712,6 +769,38 @@ BI.YearPopup = BI.inherit(BI.Widget, {
}
},
_checkMin: function () {
var calendar = this.navigation.getSelectedCard();
if (BI.isNotNull(calendar)) {
calendar.setMinDate(this.options.min);
this.backBtn.setEnable(!calendar.isFrontYear());
this.preBtn.setEnable(!calendar.isFinalYear());
}
},
_checkMax: function () {
var calendar = this.navigation.getSelectedCard();
if (BI.isNotNull(calendar)) {
calendar.setMaxDate(this.options.max);
this.backBtn.setEnable(!calendar.isFrontYear());
this.preBtn.setEnable(!calendar.isFinalYear());
}
},
setMinDate: function (minDate) {
if (BI.isNotEmptyString(this.options.min)) {
this.options.min = minDate;
this._checkMin();
}
},
setMaxDate: function (maxDate) {
if (BI.isNotEmptyString(this.options.max)) {
this.options.max = maxDate;
this._checkMax();
}
},
getValue: function () {
return this.selectedYear;
},
@ -2973,6 +3062,8 @@ BI.extend(BI.DynamicDateCard, {
listeners: [{
eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW,
action: function () {
self.popup.setMinDate(opts.minDate);
self.popup.setMaxDate(opts.maxDate);
self.popup.setValue(self.storeValue);
self.fireEvent(BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW);
}
@ -3050,6 +3141,18 @@ BI.extend(BI.DynamicDateCard, {
},
setMinDate: function (minDate) {
var o = this.options;
o.minDate = minDate;
this.trigger.setMinDate(minDate);
},
setMaxDate: function (maxDate) {
var o = this.options;
o.maxDate = maxDate;
this.trigger.setMaxDate(maxDate);
},
setValue: function (v) {
this.storeValue = v;
this.trigger.setValue(v);
@ -3371,6 +3474,20 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.ymd.setMinDate(minDate);
}
this.options.min = minDate;
},
setMaxDate: function (maxDate) {
if (this.options.max !== maxDate) {
this.ymd.setMaxDate(maxDate);
}
this.options.max = maxDate;
},
setValue: function (v) {
this.storeValue = v;
var self = this;
@ -3734,6 +3851,18 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger
}
},
setMinDate: function (minDate) {
if (BI.isNotEmptyString(this.options.min)) {
this.options.min = minDate;
}
},
setMaxDate: function (maxDate) {
if (BI.isNotEmptyString(this.options.max)) {
this.options.max = maxDate;
}
},
getKey: function () {
return this.editor.getValue();
},
@ -4027,6 +4156,18 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
}
},
setMinDate: function (minDate) {
var o = this.options;
o.minDate = minDate;
this.trigger.setMinDate(minDate);
},
setMaxDate: function (maxDate) {
var o = this.options;
o.maxDate = maxDate;
this.trigger.setMaxDate(maxDate);
},
setValue: function (v) {
this.storeValue = v;
this.trigger.setValue(v);
@ -4241,6 +4382,20 @@ BI.extend(BI.DynamicDateTimeCombo, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.ymd.setMinDate(minDate);
}
this.options.min = minDate;
},
setMaxDate: function (maxDate) {
if (this.options.max !== maxDate) {
this.ymd.setMaxDate(maxDate);
}
this.options.max = maxDate;
},
setValue: function (v) {
this.storeValue = v;
var self = this;
@ -4814,6 +4969,18 @@ BI.extend(BI.DynamicDateTimeSelect, {
}
},
setMinDate: function (minDate) {
if (BI.isNotEmptyString(this.options.min)) {
this.options.min = minDate;
}
},
setMaxDate: function (maxDate) {
if (BI.isNotEmptyString(this.options.max)) {
this.options.max = maxDate;
}
},
setValue: function (v) {
var type, value, self = this;
var date = BI.getDate();
@ -23596,6 +23763,22 @@ BI.shortcut("bi.dynamic_year_month_card", BI.DynamicYearMonthCard);BI.StaticYear
});
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.yearPicker.setMinDate(minDate);
this._checkMonthStatus(this.selectedYear);
}
this.options.min = minDate;
},
setMaxDate: function (maxDate) {
if (this.options.max !== maxDate) {
this.yearPicker.setMaxDate(maxDate);
this._checkMonthStatus(this.selectedYear);
}
this.options.max = maxDate;
},
getValue: function () {
return {
year: this.selectedYear,
@ -23983,6 +24166,20 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
};
},
setMinDate: function (minDate) {
if (this.options.min !== minDate) {
this.year.setMinDate(minDate);
}
this.options.min = minDate;
},
setMaxDate: function (maxDate) {
if (this.options.max !== maxDate) {
this.year.setMaxDate(maxDate);
}
this.options.max = maxDate;
},
setValue: function (v) {
this.storeValue = v;
var self = this;
@ -26075,7 +26272,16 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
});
BI.each(allNodes, function (idx, node) {
var valueMap = dealWithSelectedValue(node.parentValues, selectedValues);
var state = getCheckState(node.value, node.parentValues, valueMap, checkState);
// REPORT-24409 fix: 设置节点全部展开,添加的节点没有给状态
var parentCheckState = {};
var find = BI.find(result, function (idx, pNode) {
return pNode.id === node.pId;
});
if (find) {
parentCheckState.checked = find.halfCheck ? false : find.checked;
parentCheckState.half = find.halfCheck;
}
var state = getCheckState(node.value, node.parentValues, valueMap, parentCheckState);
result.push({
id: node.id,
pId: node.pId,

2
dist/widget.js.map vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save