Browse Source

Merge branch 'master' of ssh://www.finedevelop.com:7999/~imp/fineui_guy

# Conflicts:
#	bi/case.js
es6
imp 7 years ago
parent
commit
89bf9a8f23
  1. 8
      bi/base.css
  2. 8
      bi/core.js
  3. 4
      bi/slider.js
  4. 2
      bi/widget.css
  5. 208
      bi/widget.js
  6. 8
      dist/base.css
  7. 668
      dist/biconst.js
  8. 10
      dist/bundle.css
  9. 291
      dist/bundle.js
  10. 2
      dist/bundle.min.css
  11. 36
      dist/bundle.min.js
  12. 75
      dist/case.js
  13. 8
      dist/core.js
  14. 6
      dist/index.html
  15. 86
      dist/resource.css
  16. 4
      dist/slider.js
  17. 167
      dist/vancharts-all.js
  18. 2
      dist/widget.css
  19. 208
      dist/widget.js
  20. 4
      src/addons/slider/slider/singleslider/singleslider.js
  21. 76
      src/case/trigger/trigger.icon.text.js
  22. 8
      src/core/proto/date.js
  23. 7
      src/css/base/single/label.css
  24. 1
      src/css/base/single/text.css
  25. 6
      src/css/resource/third/farbtastic/farbtastic.css
  26. 6
      src/css/resource/third/ztree/display.tree.css
  27. 74
      src/css/resource/third/ztree/zTreeStyle.css
  28. 2
      src/css/widget/singleslider/slider/widget.slider.css
  29. 6
      src/less/base/single/label.less
  30. 1
      src/less/base/single/text.less
  31. 6
      src/less/var.less
  32. 7
      src/widget/finetuningnumbereditor/finetuning.number.editor.js
  33. 34
      src/widget/multidate/abstract.multidate.datepane.js
  34. 67
      src/widget/multidate/multidate.combo.js
  35. 8
      src/widget/multidate/multidate.day.js
  36. 10
      src/widget/multidate/multidate.month.js
  37. 56
      src/widget/multidate/multidate.popup.js
  38. 10
      src/widget/multidate/multidate.quarter.js
  39. 6
      src/widget/multidate/multidate.week.js
  40. 10
      src/widget/multidate/multidate.year.js

8
bi/base.css

@ -866,6 +866,13 @@ li.CodeMirror-hint-active {
border: none;
color: #e85050 !important;
}
.bi-label {
text-overflow: ellipsis;
overflow-x: hidden;
overflow-y: hidden;
white-space: nowrap;
word-break: break-all;
}
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-text {
@ -881,6 +888,7 @@ li.CodeMirror-hint-active {
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
word-wrap: break-word;
word-break: break-word;
}
.bi-bubble {

8
bi/core.js

@ -6161,6 +6161,14 @@ Date.prototype.getMonthDays = function (month) {
}
};
/**
* 获取每月的最后一天
* @returns {Date}
*/
Date.prototype.getLastDateOfMonth = function () {
return new Date(this.getFullYear(), this.getMonth(), this.getMonthDays());
};
/** Returns the number of day in the year. */
Date.prototype.getDayOfYear = function () {
var now = new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0);

4
bi/slider.js

@ -137,7 +137,9 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
}
});
this.label.on(BI.SignEditor.EVENT_CONFIRM, function () {
var percent = self._getPercentByValue(this.getValue());
var v = BI.parseFloat(this.getValue());
self.value = v;
var percent = self._getPercentByValue(v);
var significantPercent = BI.parseFloat(percent.toFixed(1));
self._setAllPosition(significantPercent);
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);

2
bi/widget.css

@ -433,7 +433,7 @@
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-single-slider-slider .slider-button {
cursor: url('${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/cursor/cursor_drag_slider.cur'), auto;
cursor: url('images/1x/cursor/cursor_drag_slider.cur'), auto;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

208
bi/widget.js

@ -5496,7 +5496,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -5523,7 +5524,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
});
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(1);
self._finetuning(o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -5533,7 +5534,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
});
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(-1);
self._finetuning(-o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -6569,39 +6570,39 @@ BI.MultiDateCard = BI.inherit(BI.Widget, {
var valueObject = this.getValue();
var type = valueObject.type, value = valueObject.value;
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
return new Date().getOffsetDate(-1 * value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
return new Date().getOffsetDate(value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
return new Date();
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
return new Date().getBeforeMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
return new Date().getAfterMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
return new Date(new Date().getFullYear(), new Date().getMonth(), 1);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
return new Date(new Date().getFullYear(), new Date().getMonth(), (new Date().getLastDateOfMonth()).getDate());
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
return new Date().getBeforeMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
return new Date().getAfterMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
return new Date().getQuarterStartDate();
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
return new Date().getQuarterEndDate();
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
return new Date().getOffsetDate(-7 * value);
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
return new Date().getOffsetDate(7 * value);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
return new Date((new Date().getFullYear() - 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
return new Date((new Date().getFullYear() + 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
return new Date(new Date().getFullYear(), 0, 1);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
return new Date(new Date().getFullYear(), 11, 31);
}
}
@ -6792,23 +6793,23 @@ BI.MultiDateCombo = BI.inherit(BI.Single, {
type = v.type
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.changeIcon.setVisible(true);
this.comboWrapper.attr("items")[1].width = 30;
this.comboWrapper.resize();
@ -6854,6 +6855,39 @@ BI.extend(BI.MultiDateCombo, {
MULTI_DATE_WEEK_CARD: 5,
MULTI_DATE_DAY_CARD: 6
});
BI.extend(BI.MultiDateCombo, {
DATE_TYPE: {
MULTI_DATE_YEAR_PREV: 1,
MULTI_DATE_YEAR_AFTER: 2,
MULTI_DATE_YEAR_BEGIN: 3,
MULTI_DATE_YEAR_END: 4,
MULTI_DATE_MONTH_PREV: 5,
MULTI_DATE_MONTH_AFTER: 6,
MULTI_DATE_MONTH_BEGIN: 7,
MULTI_DATE_MONTH_END: 8,
MULTI_DATE_QUARTER_PREV: 9,
MULTI_DATE_QUARTER_AFTER: 10,
MULTI_DATE_QUARTER_BEGIN: 11,
MULTI_DATE_QUARTER_END: 12,
MULTI_DATE_WEEK_PREV: 13,
MULTI_DATE_WEEK_AFTER: 14,
MULTI_DATE_DAY_PREV: 15,
MULTI_DATE_DAY_AFTER: 16,
MULTI_DATE_DAY_TODAY: 17,
MULTI_DATE_PARAM: 18,
MULTI_DATE_CALENDAR: 19,
YEAR_QUARTER: 20,
YEAR_MONTH: 21,
YEAR_WEEK: 22,
YEAR_DAY: 23,
MONTH_WEEK: 24,
MONTH_DAY: 25,
YEAR: 26,
SAME_PERIOD: 27,
LAST_SAME_PERIOD: 28
}
});
/**
* 普通控件
*
@ -6877,22 +6911,22 @@ BI.DayCard = BI.inherit(BI.MultiDateCard, {
isEditorExist: true,
selected: true,
text: BI.i18nText("BI-Multi_Date_Day_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Day_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY,
text: BI.i18nText("BI-Multi_Date_Today")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
}
});
BI.DayCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -6918,28 +6952,28 @@ BI.MonthCard = BI.inherit(BI.MultiDateCard, {
return [{
selected: true,
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV,
text: BI.i18nText("BI-Multi_Date_Month_Prev")
},
{
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
text: BI.i18nText("BI-Multi_Date_Month_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_End")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV;
}
});
BI.MonthCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -7165,52 +7199,52 @@ BI.MultiDatePopup = BI.inherit(BI.Widget, {
var self = this, date;
var type, value;
if (BI.isNotNull(v)) {
type = v.type || BICst.DATE_TYPE.MULTI_DATE_CALENDAR;
type = v.type || BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_CALENDAR;
value = v.value;
if (BI.isNull(value)) {
value = v;
}
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BICst.MULTI_DATE_YEAR_CARD);
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_YEAR_CARD);
this.year.setValue({type: type, value: value});
this.cur = BICst.MULTI_DATE_YEAR_CARD;
this.cur = BI.MultiDateCombo.MULTI_DATE_YEAR_CARD;
self._setInnerValue(this.year);
break;
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BICst.MULTI_DATE_QUARTER_CARD);
this.cur = BICst.MULTI_DATE_QUARTER_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD;
this.quarter.setValue({type: type, value: value});
self._setInnerValue(this.quarter);
break;
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BICst.MULTI_DATE_MONTH_CARD);
this.cur = BICst.MULTI_DATE_MONTH_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_MONTH_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_MONTH_CARD;
this.month.setValue({type: type, value: value});
self._setInnerValue(this.month);
break;
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BICst.MULTI_DATE_WEEK_CARD);
this.cur = BICst.MULTI_DATE_WEEK_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_WEEK_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_WEEK_CARD;
this.week.setValue({type: type, value: value});
self._setInnerValue(this.week);
break;
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BICst.MULTI_DATE_DAY_CARD);
this.cur = BICst.MULTI_DATE_DAY_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_DAY_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_DAY_CARD;
this.day.setValue({type: type, value: value});
self._setInnerValue(this.day);
break;
@ -7277,29 +7311,29 @@ BI.QuarterCard = BI.inherit(BI.MultiDateCard, {
dateConfig: function () {
return [{
selected: true,
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Prev")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
}
});
BI.QuarterCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -7452,17 +7486,17 @@ BI.WeekCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV;
}
});
BI.WeekCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -7489,27 +7523,27 @@ BI.YearCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
text: BI.i18nText("BI-Multi_Date_Year_Begin")
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END,
text: BI.i18nText("BI-Multi_Date_Year_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV;
}
});
BI.YearCard.EVENT_CHANGE = "EVENT_CHANGE";

8
dist/base.css vendored

@ -866,6 +866,13 @@ li.CodeMirror-hint-active {
border: none;
color: #e85050 !important;
}
.bi-label {
text-overflow: ellipsis;
overflow-x: hidden;
overflow-y: hidden;
white-space: nowrap;
word-break: break-all;
}
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-text {
@ -881,6 +888,7 @@ li.CodeMirror-hint-active {
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
word-wrap: break-word;
word-break: break-word;
}
.bi-bubble {

668
dist/biconst.js vendored

@ -1,668 +0,0 @@
BICst.DATE_TYPE = {};
BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV = 1;
BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER = 2;
BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN = 3;
BICst.DATE_TYPE.MULTI_DATE_YEAR_END = 4;
BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV = 5;
BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER = 6;
BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN = 7;
BICst.DATE_TYPE.MULTI_DATE_MONTH_END = 8;
BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV = 9;
BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER = 10;
BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN = 11;
BICst.DATE_TYPE.MULTI_DATE_QUARTER_END = 12;
BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV = 13;
BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER = 14;
BICst.DATE_TYPE.MULTI_DATE_DAY_PREV = 15;
BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER = 16;
BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY = 17;
BICst.DATE_TYPE.MULTI_DATE_PARAM = 18;
BICst.DATE_TYPE.MULTI_DATE_CALENDAR = 19;
BICst.DATE_TYPE.YEAR_QUARTER = 20;
BICst.DATE_TYPE.YEAR_MONTH = 21;
BICst.DATE_TYPE.YEAR_WEEK = 22;
BICst.DATE_TYPE.YEAR_DAY = 23;
BICst.DATE_TYPE.MONTH_WEEK = 24;
BICst.DATE_TYPE.MONTH_DAY = 25;
BICst.DATE_TYPE.YEAR = 26;
BICst.DATE_TYPE.SAME_PERIOD = 27;
BICst.DATE_TYPE.LAST_SAME_PERIOD = 28;
BICst.DATE_FORMAT = {};
BICst.DATE_FORMAT.SPLIT = 1;
BICst.DATE_FORMAT.CHINESE = 2;
BICst.RES_STATUS = {};
BICst.RES_STATUS.NORMAL = 1;
BICst.RES_STATUS.ERROR = 2;
BICst.RES_STATUS.DATA_MISS = 3;
BICst.RES_STATUS.NO_AUTHORITY = 4;
BICst.RES_STATUS.NO_DATA = 5;
BICst.REPORT_AUTH = {};
BICst.REPORT_AUTH.NONE = 0;
BICst.REPORT_AUTH.EDIT = 1;
BICst.REPORT_AUTH.VIEW = 2;
BICst.TARGET_STYLE = {};
BICst.TARGET_STYLE.ICON_STYLE = {};
BICst.TARGET_STYLE.ICON_STYLE.NONE = 1;
BICst.TARGET_STYLE.ICON_STYLE.POINT = 2;
BICst.TARGET_STYLE.ICON_STYLE.ARROW = 3;
BICst.TARGET_STYLE.NUM_LEVEL = {};
BICst.TARGET_STYLE.NUM_LEVEL.NORMAL = 1;
BICst.TARGET_STYLE.NUM_LEVEL.TEN_THOUSAND = 2;
BICst.TARGET_STYLE.NUM_LEVEL.MILLION = 3;
BICst.TARGET_STYLE.NUM_LEVEL.YI = 4;
BICst.TARGET_STYLE.NUM_LEVEL.PERCENT = 5;
BICst.TARGET_STYLE.FORMAT = {};
BICst.TARGET_STYLE.FORMAT.NORMAL = -1;
BICst.TARGET_STYLE.FORMAT.ZERO2POINT = 0;
BICst.TARGET_STYLE.FORMAT.ONE2POINT = 1;
BICst.TARGET_STYLE.FORMAT.TWO2POINT = 2;
BICst.MULTI_PATH_STATUS = {};
BICst.MULTI_PATH_STATUS.NEED_GENERATE_CUBE = 0;
BICst.MULTI_PATH_STATUS.NOT_NEED_GENERATE_CUBE = 1;
BICst.CUSTOM_GROUP = {};
BICst.CUSTOM_GROUP.UNGROUP2OTHER = {};
BICst.CUSTOM_GROUP.UNGROUP2OTHER.NOTSELECTED = 0;
BICst.CUSTOM_GROUP.UNGROUP2OTHER.SELECTED = 1;
BICst.REPORT_STATUS = {};
BICst.REPORT_STATUS.APPLYING = 1;
BICst.REPORT_STATUS.HANGOUT = 2;
BICst.REPORT_STATUS.NORMAL = 3;
BICst.FIELD_ID = {};
BICst.FIELD_ID.HEAD = "81c48028-1401-11e6-a148-3e1d05defe78";
BICst.TREE_LABEL = {};
BICst.TREE_LABEL.TREE_LABEL_ITEM_COUNT_NUM = 40;
BICst.TREE = {};
BICst.TREE.TREE_REQ_TYPE = {};
BICst.TREE.TREE_REQ_TYPE.DEFAULT_DATA = 0;
BICst.TREE.TREE_REQ_TYPE.INIT_DATA = 1;
BICst.TREE.TREE_REQ_TYPE.SELECT_DATA = 3;
BICst.TREE.TREE_REQ_TYPE.ADJUST_DATA = 2;
BICst.TREE.TREE_REQ_TYPE.GET_SELECTED_DATA = 4;
BICst.TREE.TREE_REQ_TYPE.UNSELECT_DATA = 5;
BICst.TREE.TREE_ITEM_COUNT_PER_PAGE = 100;
BICst.BUSINESS_TABLE_TYPE = {};
BICst.BUSINESS_TABLE_TYPE.NORMAL = 0;
BICst.EXPANDER_TYPE = {};
BICst.EXPANDER_TYPE.NONE = false;
BICst.EXPANDER_TYPE.ALL = true;
BICst.SORT = {};
BICst.SORT.ASC = 0;
BICst.SORT.DESC = 1;
BICst.SORT.CUSTOM = 2;
BICst.SORT.NONE = 3;
BICst.SORT.NUMBER_ASC = 4;
BICst.SORT.NUMBER_DESC = 5;
BICst.TABLE_PAGE_OPERATOR = {};
BICst.TABLE_PAGE_OPERATOR.ALL_PAGE = -1;
BICst.TABLE_PAGE_OPERATOR.REFRESH = 0;
BICst.TABLE_PAGE_OPERATOR.COLUMN_PRE = 1;
BICst.TABLE_PAGE_OPERATOR.COLUMN_NEXT = 2;
BICst.TABLE_PAGE_OPERATOR.ROW_PRE = 3;
BICst.TABLE_PAGE_OPERATOR.ROW_NEXT = 4;
BICst.TABLE_PAGE_OPERATOR.EXPAND = 5;
BICst.TABLE_PAGE = {};
BICst.TABLE_PAGE.VERTICAL_PRE = 0;
BICst.TABLE_PAGE.VERTICAL_NEXT = 1;
BICst.TABLE_PAGE.HORIZON_PRE = 2;
BICst.TABLE_PAGE.HORIZON_NEXT = 3;
BICst.TABLE_PAGE.TOTAL_PAGE = 4;
BICst.TABLE_WIDGET = {};
BICst.TABLE_WIDGET.GROUP_TYPE = 1;
BICst.TABLE_WIDGET.CROSS_TYPE = 2;
BICst.TABLE_WIDGET.COMPLEX_TYPE = 3;
BICst.REGION = {};
BICst.REGION.DIMENSION1 = "10000";
BICst.REGION.DIMENSION2 = "20000";
BICst.REGION.TARGET1 = "30000";
BICst.REGION.TARGET2 = "40000";
BICst.REGION.TARGET3 = "50000";
BICst.EXPORT = {};
BICst.EXPORT.EXCEL = 1;
BICst.EXPORT.PDF = 2;
BICst.WIDGET = {};
BICst.WIDGET.TABLE = 1;
BICst.WIDGET.CROSS_TABLE = 2;
BICst.WIDGET.COMPLEX_TABLE = 3;
BICst.WIDGET.DETAIL = 4;
BICst.WIDGET.AXIS = 5;
BICst.WIDGET.ACCUMULATE_AXIS = 6;
BICst.WIDGET.PERCENT_ACCUMULATE_AXIS = 7;
BICst.WIDGET.COMPARE_AXIS = 8;
BICst.WIDGET.FALL_AXIS = 9;
BICst.WIDGET.BAR = 10;
BICst.WIDGET.ACCUMULATE_BAR = 11;
BICst.WIDGET.COMPARE_BAR = 12;
BICst.WIDGET.LINE = 13;
BICst.WIDGET.AREA = 14;
BICst.WIDGET.ACCUMULATE_AREA = 15;
BICst.WIDGET.PERCENT_ACCUMULATE_AREA = 16;
BICst.WIDGET.COMPARE_AREA = 17;
BICst.WIDGET.RANGE_AREA = 18;
BICst.WIDGET.COMBINE_CHART = 19;
BICst.WIDGET.MULTI_AXIS_COMBINE_CHART = 20;
BICst.WIDGET.PIE = 21;
BICst.WIDGET.DONUT = 22;
BICst.WIDGET.MAP = 23;
BICst.WIDGET.GIS_MAP = 24;
BICst.WIDGET.DASHBOARD = 25;
BICst.WIDGET.BUBBLE = 26;
BICst.WIDGET.SCATTER = 28;
BICst.WIDGET.FORCE_BUBBLE = 27;
BICst.WIDGET.RADAR = 29;
BICst.WIDGET.ACCUMULATE_RADAR = 30;
BICst.WIDGET.FUNNEL = 31;
BICst.WIDGET.RECT_TREE = 39;
BICst.WIDGET.MULTI_PIE = 40;
BICst.WIDGET.HEAT_MAP = 65;
BICst.WIDGET.PARETO = 66;
BICst.WIDGET.DOT = 67;
BICst.WIDGET.STRING = 32;
BICst.WIDGET.NUMBER = 33;
BICst.WIDGET.TREE = 34;
BICst.WIDGET.SINGLE_SLIDER = 35;
BICst.WIDGET.INTERVAL_SLIDER = 36;
BICst.WIDGET.LIST_LABEL = 37;
BICst.WIDGET.TREE_LABEL = 38;
BICst.WIDGET.STRING_LIST = 59;
BICst.WIDGET.TREE_LIST = 60;
BICst.WIDGET.DATE_PANE = 61;
BICst.WIDGET.DATE = 48;
BICst.WIDGET.YEAR = 49;
BICst.WIDGET.QUARTER = 50;
BICst.WIDGET.MONTH = 51;
BICst.WIDGET.YMD = 52;
BICst.WIDGET.QUERY = 53;
BICst.WIDGET.RESET = 54;
BICst.WIDGET.CONTENT = 55;
BICst.WIDGET.IMAGE = 56;
BICst.WIDGET.WEB = 57;
BICst.WIDGET.GENERAL_QUERY = 58;
BICst.WIDGET.TABLE_SHOW = 64;
BICst.WIDGET.NONE = -1;
BICst.TARGET_TYPE = {};
BICst.TARGET_TYPE.CAL_POSITION = {};
BICst.TARGET_TYPE.CAL_POSITION.ALL = 0;
BICst.TARGET_TYPE.CAL_POSITION.INGROUP = 1;
BICst.TARGET_TYPE.CAL_VALUE = {};
BICst.TARGET_TYPE.CAL_VALUE.PERIOD_TYPE = {};
BICst.TARGET_TYPE.CAL_VALUE.PERIOD_TYPE.VALUE = 0;
BICst.TARGET_TYPE.CAL_VALUE.PERIOD_TYPE.RATE = 1;
BICst.TARGET_TYPE.CAL_VALUE.SUMMARY_TYPE = {};
BICst.TARGET_TYPE.CAL_VALUE.SUMMARY_TYPE.SUM = 0;
BICst.TARGET_TYPE.CAL_VALUE.SUMMARY_TYPE.MAX = 1;
BICst.TARGET_TYPE.CAL_VALUE.SUMMARY_TYPE.MIN = 2;
BICst.TARGET_TYPE.CAL_VALUE.SUMMARY_TYPE.AVG = 3;
BICst.TARGET_TYPE.CAL_VALUE.RANK_TPYE = {};
BICst.TARGET_TYPE.CAL_VALUE.RANK_TPYE.ASC = 0;
BICst.TARGET_TYPE.CAL_VALUE.RANK_TPYE.DESC = 1;
BICst.TARGET_TYPE.CAL_VALUE.SUM_OF_ALL = 0;
BICst.TARGET_TYPE.CAL_VALUE.PERIOD = 1;
BICst.TARGET_TYPE.CAL_VALUE.SUM_OF_ABOVE = 2;
BICst.TARGET_TYPE.CAL_VALUE.RANK = 3;
BICst.TARGET_TYPE.CAL = {};
BICst.TARGET_TYPE.CAL.FORMULA = 0;
BICst.TARGET_TYPE.CAL.CONFIGURATION = 1;
BICst.TARGET_TYPE.STRING = 1;
BICst.TARGET_TYPE.NUMBER = 2;
BICst.TARGET_TYPE.DATE = 3;
BICst.TARGET_TYPE.COUNTER = 4;
BICst.TARGET_TYPE.FORMULA = 5;
BICst.TARGET_TYPE.YEAR_ON_YEAR_RATE = 6;
BICst.TARGET_TYPE.MONTH_ON_MONTH_RATE = 7;
BICst.TARGET_TYPE.YEAR_ON_YEAR_VALUE = 8;
BICst.TARGET_TYPE.MONTH_ON_MONTH_VALUE = 9;
BICst.TARGET_TYPE.SUM_OF_ABOVE = 10;
BICst.TARGET_TYPE.SUM_OF_ABOVE_IN_GROUP = 11;
BICst.TARGET_TYPE.SUM_OF_ALL = 12;
BICst.TARGET_TYPE.SUM_OF_ALL_IN_GROUP = 13;
BICst.TARGET_TYPE.RANK = 14;
BICst.TARGET_TYPE.RANK_IN_GROUP = 15;
BICst.DIMENSION_FILTER_DATE = {};
BICst.DIMENSION_FILTER_DATE.BELONG_VALUE = 98;
BICst.DIMENSION_FILTER_DATE.NOT_BELONG_VALUE = 99;
BICst.DIMENSION_FILTER_DATE.IS_NULL = 100;
BICst.DIMENSION_FILTER_DATE.NOT_NULL = 101;
BICst.DIMENSION_FILTER_DATE.TOP_N = 102;
BICst.DIMENSION_FILTER_DATE.BOTTOM_N = 103;
BICst.DIMENSION_FILTER_DATE.CONTAIN = 104;
BICst.DIMENSION_FILTER_DATE.NOT_CONTAIN = 105;
BICst.DIMENSION_FILTER_DATE.BEGIN_WITH = 106;
BICst.DIMENSION_FILTER_DATE.END_WITH = 107;
BICst.FILTER_TYPE = {};
BICst.FILTER_TYPE.AND = 80;
BICst.FILTER_TYPE.OR = 81;
BICst.FILTER_TYPE.FORMULA = 82;
BICst.FILTER_TYPE.EMPTY_FORMULA = 90;
BICst.FILTER_TYPE.EMPTY_CONDITION = 91;
BICst.FILTER_TYPE.NUMBER_SUM = 83;
BICst.FILTER_TYPE.NUMBER_AVG = 84;
BICst.FILTER_TYPE.NUMBER_MAX = 85;
BICst.FILTER_TYPE.NUMBER_MIN = 86;
BICst.FILTER_TYPE.NUMBER_COUNT = 87;
BICst.FILTER_TYPE.TREE_FILTER = 88;
BICst.FILTER_TYPE.COLUMNFILTER = 89;
BICst.FILTER_TYPE.DIMENSION_TARGET_VALUE_FILTER = 96;
BICst.FILTER_TYPE.DIMENSION_SELF_FILTER = 97;
BICst.FILTER_DATE = {};
BICst.FILTER_DATE.BELONG_DATE_RANGE = 64;
BICst.FILTER_DATE.BELONG_WIDGET_VALUE = 65;
BICst.FILTER_DATE.NOT_BELONG_DATE_RANGE = 66;
BICst.FILTER_DATE.NOT_BELONG_WIDGET_VALUE = 67;
BICst.FILTER_DATE.MORE_THAN = 68;
BICst.FILTER_DATE.LESS_THAN = 69;
BICst.FILTER_DATE.EQUAL_TO = 70;
BICst.FILTER_DATE.NOT_EQUAL_TO = 71;
BICst.FILTER_DATE.IS_NULL = 72;
BICst.FILTER_DATE.NOT_NULL = 73;
BICst.FILTER_DATE.EARLY_THAN = 74;
BICst.FILTER_DATE.LATER_THAN = 75;
BICst.FILTER_DATE.CONTAINS = 76;
BICst.FILTER_DATE.CONTAINS_DAY = 77;
BICst.FILTER_DATE.DAY_EQUAL_TO = 78;
BICst.FILTER_DATE.DAY_NOT_EQUAL_TO = 79;
BICst.TARGET_FILTER_NUMBER = {};
BICst.TARGET_FILTER_NUMBER.EQUAL_TO = 48;
BICst.TARGET_FILTER_NUMBER.NOT_EQUAL_TO = 49;
BICst.TARGET_FILTER_NUMBER.BELONG_VALUE = 50;
BICst.TARGET_FILTER_NUMBER.BELONG_USER = 51;
BICst.TARGET_FILTER_NUMBER.NOT_BELONG_VALUE = 52;
BICst.TARGET_FILTER_NUMBER.NOT_BELONG_USER = 53;
BICst.TARGET_FILTER_NUMBER.IS_NULL = 54;
BICst.TARGET_FILTER_NUMBER.NOT_NULL = 55;
BICst.TARGET_FILTER_NUMBER.CONTAINS = 56;
BICst.TARGET_FILTER_NUMBER.NOT_CONTAINS = 57;
BICst.TARGET_FILTER_NUMBER.LARGE_THAN_CAL_LINE = 58;
BICst.TARGET_FILTER_NUMBER.LARGE_OR_EQUAL_CAL_LINE = 59;
BICst.TARGET_FILTER_NUMBER.SMALL_THAN_CAL_LINE = 60;
BICst.TARGET_FILTER_NUMBER.SMALL_OR_EQUAL_CAL_LINE = 61;
BICst.TARGET_FILTER_NUMBER.TOP_N = 62;
BICst.TARGET_FILTER_NUMBER.BOTTOM_N = 63;
BICst.TARGET_FILTER_STRING = {};
BICst.TARGET_FILTER_STRING.BELONG_VALUE = 32;
BICst.TARGET_FILTER_STRING.BELONG_USER = 33;
BICst.TARGET_FILTER_STRING.NOT_BELONG_VALUE = 34;
BICst.TARGET_FILTER_STRING.NOT_BELONG_USER = 35;
BICst.TARGET_FILTER_STRING.CONTAIN = 36;
BICst.TARGET_FILTER_STRING.NOT_CONTAIN = 37;
BICst.TARGET_FILTER_STRING.IS_NULL = 38;
BICst.TARGET_FILTER_STRING.NOT_NULL = 39;
BICst.TARGET_FILTER_STRING.BEGIN_WITH = 40;
BICst.TARGET_FILTER_STRING.END_WITH = 41;
BICst.TARGET_FILTER_STRING.NOT_BEGIN_WITH = 42;
BICst.TARGET_FILTER_STRING.NOT_END_WITH = 43;
BICst.TARGET_FILTER_STRING.VAGUE_CONTAIN = 46;
BICst.TARGET_FILTER_STRING.NOT_VAGUE_CONTAIN = 47;
BICst.DIMENSION_FILTER_NUMBER = {};
BICst.DIMENSION_FILTER_NUMBER.BELONG_VALUE = 16;
BICst.DIMENSION_FILTER_NUMBER.BELONG_USER = 17;
BICst.DIMENSION_FILTER_NUMBER.NOT_BELONG_VALUE = 18;
BICst.DIMENSION_FILTER_NUMBER.NOT_BELONG_USER = 19;
BICst.DIMENSION_FILTER_NUMBER.MORE_THAN_AVG = 20;
BICst.DIMENSION_FILTER_NUMBER.LESS_THAN_AVG = 21;
BICst.DIMENSION_FILTER_NUMBER.IS_NULL = 22;
BICst.DIMENSION_FILTER_NUMBER.NOT_NULL = 23;
BICst.DIMENSION_FILTER_NUMBER.TOP_N = 24;
BICst.DIMENSION_FILTER_NUMBER.BOTTOM_N = 25;
BICst.DIMENSION_FILTER_STRING = {};
BICst.DIMENSION_FILTER_STRING.BELONG_VALUE = 0;
BICst.DIMENSION_FILTER_STRING.BELONG_USER = 1;
BICst.DIMENSION_FILTER_STRING.NOT_BELONG_VALUE = 2;
BICst.DIMENSION_FILTER_STRING.NOT_BELONG_USER = 3;
BICst.DIMENSION_FILTER_STRING.CONTAIN = 4;
BICst.DIMENSION_FILTER_STRING.NOT_CONTAIN = 5;
BICst.DIMENSION_FILTER_STRING.IS_NULL = 6;
BICst.DIMENSION_FILTER_STRING.NOT_NULL = 7;
BICst.DIMENSION_FILTER_STRING.BEGIN_WITH = 8;
BICst.DIMENSION_FILTER_STRING.END_WITH = 9;
BICst.DIMENSION_FILTER_STRING.TOP_N = 10;
BICst.DIMENSION_FILTER_STRING.BOTTOM_N = 11;
BICst.DIMENSION_FILTER_STRING.NOT_BEGIN_WITH = 12;
BICst.DIMENSION_FILTER_STRING.NOT_END_WITH = 13;
BICst.DIMENSION_FILTER_STRING.VAGUE_CONTAIN = 14;
BICst.DIMENSION_FILTER_STRING.NOT_VAGUE_CONTAIN = 15;
BICst.GROUP = {};
BICst.GROUP.NO_GROUP = 0;
BICst.GROUP.AUTO_GROUP = 3;
BICst.GROUP.CUSTOM_GROUP = 4;
BICst.GROUP.CUSTOM_NUMBER_GROUP = 5;
BICst.GROUP.Y = 6;
BICst.GROUP.S = 7;
BICst.GROUP.M = 8;
BICst.GROUP.W = 9;
BICst.GROUP.YMD = 10;
BICst.GROUP.YD = 11;
BICst.GROUP.MD = 12;
BICst.GROUP.YMDHMS = 13;
BICst.GROUP.ID_GROUP = 14;
BICst.GROUP.HOUR = 15;
BICst.GROUP.MINUTE = 16;
BICst.GROUP.SECOND = 17;
BICst.GROUP.WEEK_COUNT = 18;
BICst.GROUP.D = 19;
BICst.GROUP.YM = 20;
BICst.GROUP.YW = 21;
BICst.GROUP.YMDH = 22;
BICst.GROUP.YMDHM = 23;
BICst.GROUP.YS = 24;
BICst.SUMMARY_TYPE = {};
BICst.SUMMARY_TYPE.SUM = 0;
BICst.SUMMARY_TYPE.MAX = 1;
BICst.SUMMARY_TYPE.MIN = 2;
BICst.SUMMARY_TYPE.AVG = 3;
BICst.SUMMARY_TYPE.COUNT = 4;
BICst.SUMMARY_TYPE.APPEND = 5;
BICst.SUMMARY_TYPE.RECORD_COUNT = 6;
BICst.BI_REPORT = {};
BICst.BI_REPORT.NULL = 0;
BICst.BI_REPORT.SUBMITED = 1;
BICst.BI_REPORT.PUBLISHED = 2;
BICst.VERSION = "4.0.2";
BICst.SYSTEM_TIME = "__system_time-3e1d05defe78__";
BICst.ETL_ADD_COLUMN_TYPE = {};
BICst.ETL_ADD_COLUMN_TYPE.FORMULA = "formula";
BICst.ETL_ADD_COLUMN_TYPE.DATE_DIFF = "date_diff";
BICst.ETL_ADD_COLUMN_TYPE.DATE_YEAR = "date_year";
BICst.ETL_ADD_COLUMN_TYPE.DATE_SEASON = "date_season";
BICst.ETL_ADD_COLUMN_TYPE.DATE_MONTH = "date_month";
BICst.ETL_ADD_COLUMN_TYPE.EXPR_CPP = "expr_same_period";
BICst.ETL_ADD_COLUMN_TYPE.EXPR_LP = "expr_last_period";
BICst.ETL_ADD_COLUMN_TYPE.EXPR_CPP_PERCENT = "expr_same_period_percent";
BICst.ETL_ADD_COLUMN_TYPE.EXPR_LP_PERCENT = "expr_last_period_percent";
BICst.ETL_ADD_COLUMN_TYPE.EXPR_SUM = "expr_sum";
BICst.ETL_ADD_COLUMN_TYPE.EXPR_ACC = "expr_acc";
BICst.ETL_ADD_COLUMN_TYPE.EXPR_RANK = "expr_rank";
BICst.ETL_ADD_COLUMN_TYPE.GROUP = "group_value";
BICst.ETL_ADD_COLUMN_TYPE.SINGLE_VALUE = "single_value";
BICst.ETL_ADD_COLUMN_TYPE.VALUE_CONVERT = "value_convert";
BICst.JSON_KEYS = {};
BICst.JSON_KEYS.STATISTIC_ELEMENT = "_src";
BICst.JSON_KEYS.FILED_MAX_VALUE = "max";
BICst.JSON_KEYS.FIELD_MIN_VALUE = "min";
BICst.JSON_KEYS.FILTER_VALUE = "filterValue";
BICst.JSON_KEYS.FILTER_CONDITION = "condition";
BICst.JSON_KEYS.FILTER_AND_OR = "andor";
BICst.JSON_KEYS.FILTER_TYPE = "filterType";
BICst.JSON_KEYS.FIELD_ID = "fieldId";
BICst.JSON_KEYS.FIELD_TYPE = "fieldType";
BICst.JSON_KEYS.FIELD_VALUE = "field_value";
BICst.JSON_KEYS.FIELD_NAME = "fieldName";
BICst.JSON_KEYS.TYPE = "type";
BICst.JSON_KEYS.VALUE = "value";
BICst.JSON_KEYS.EXPANDER = "expander";
BICst.JSON_KEYS.EXPANDER_X = "x";
BICst.JSON_KEYS.EXPANDER_Y = "y";
BICst.JSON_KEYS.CLICKEDVALUE = "clickedvalue";
BICst.JSON_KEYS.SETTTINGS = "settings";
BICst.JSON_KEYS.ID = "id";
BICst.JSON_KEYS.TABLES = "tables";
BICst.JSON_KEYS.TABLE = "table";
BICst.JSON_KEYS.FIELDS = "fields";
BICst.JSON_KEYS.FIELD = "field";
BICst.JSON_KEYS.ETL_TYPE = "etlType";
BICst.JSON_KEYS.ETL_VALUE = "etlValue";
BICst.JSON_KEYS.TABLE_TYPE = "table_type";
BICst.JSON_KEYS.HAS_NEXT = "hasNext";
BICst.JSON_KEYS.CONNECTION_SET = "connectionSet";
BICst.JSON_KEYS.PRIMARY_KEY_MAP = "primKeyMap";
BICst.JSON_KEYS.FOREIGN_KEY_MAP = "foreignKeyMap";
BICst.CUSTOM_FORMAT = {};
BICst.CUSTOM_FORMAT.VALUEFORMAT = "(window.BH ? BH.contentFormat(this.value, '#.##;-#.##') : this.value)";
BICst.CUSTOM_FORMAT.PERCENTVALUEFORMAT = "(window.BH ? BH.contentFormat(this.value, '#0.00%') : this.value)";
BICst.CUSTOM_FORMAT.THISPERCENTVALUEFORMAT = "(window.BH ? BH.contentFormat(this, '#0.00%') : this)";
BICst.CUSTOM_FORMAT.NUMSEPARATORS = "(window.BH ? BH.contentFormat(this.value, '#,###.##') : this.value)";
BICst.CUSTOM_FORMAT.PERCENTNUMSEPARATORS = "(window.BH ? BH.contentFormat(this.value, '#,##0%') : this.value)";
BICst.CUSTOM_FORMAT.THISPERCENTNUMSEPARATORS = "(window.BH ? BH.contentFormat(this, '#,##0%') : this)";
BICst.DEFAULT_FORMAT_FUNCTIONS = {};
BICst.DEFAULT_FORMAT_FUNCTIONS.CONTENTFORMAT = "function(){return window.BH ? BH.contentFormat(arguments[0], '') : arguments[0]}";
BICst.DEFAULT_FORMAT_FUNCTIONS.CONTENTFORMAT2DECIMAL = "function () {return window.BH ? BH.contentFormat(arguments[0], '#.##') : arguments[0]}";
BICst.DEFAULT_FORMAT_FUNCTIONS.CONTENTFORMATPERCENTAGE = "function(){return window.BH ? BH.contentFormat(arguments[0], '#.##%') : arguments[0]}";
BICst.LENEGD_DEFAULT_COLOR = {};
BICst.LENEGD_DEFAULT_COLOR.COLOR_A = "#65B3EE";
BICst.LENEGD_DEFAULT_COLOR.COLOR_B = "#95E1AA";
BICst.LENEGD_DEFAULT_COLOR.COLOR_C = "#F8D08E";
BICst.LENEGD_DEFAULT_COLOR.COLOR_D = "#e697c8";
BICst.LENEGD_DEFAULT_COLOR.COLOR_E = "#a484b9";
BICst.CHART_COLOR = {};
BICst.CHART_COLOR.COLOR_A = "#5caae4";
BICst.CHART_COLOR.COLOR_B = "#70cc7f";
BICst.CHART_COLOR.COLOR_C = "#ebbb67";
BICst.CHART_COLOR.COLOR_D = "#e97e7b";
BICst.CHART_COLOR.COLOR_E = "#6ed3c9";
BICst.DISPLAY_RULES = {};
BICst.DISPLAY_RULES.DIMENSION = 1;
BICst.DISPLAY_RULES.FIXED = 2;
BICst.DISPLAY_RULES.GRADIENT = 3;
BICst.LINE_WIDTH = {};
BICst.LINE_WIDTH.ZERO = 0;
BICst.LINE_WIDTH.ONE = 1;
BICst.POINTER = {};
BICst.POINTER.ONE = 1;
BICst.POINTER.SOME = 2;
BICst.CHART_TARGET_STYLE = {};
BICst.CHART_TARGET_STYLE.NUM_LEVEL = {};
BICst.CHART_TARGET_STYLE.NUM_LEVEL.NORMAL = 1;
BICst.CHART_TARGET_STYLE.NUM_LEVEL.TEN_THOUSAND = 2;
BICst.CHART_TARGET_STYLE.NUM_LEVEL.MILLION = 3;
BICst.CHART_TARGET_STYLE.NUM_LEVEL.YI = 4;
BICst.CHART_TARGET_STYLE.NUM_LEVEL.PERCENT = 5;
BICst.CHART_TARGET_STYLE.FORMAT = {};
BICst.CHART_TARGET_STYLE.FORMAT.NORMAL = 1;
BICst.CHART_TARGET_STYLE.FORMAT.ZERO2POINT = 2;
BICst.CHART_TARGET_STYLE.FORMAT.ONE2POINT = 3;
BICst.CHART_TARGET_STYLE.FORMAT.TWO2POINT = 4;
BICst.DOT_VALUE_TYPE = {};
BICst.DOT_VALUE_TYPE.SIZE = 1;
BICst.DOT_VALUE_TYPE.COLOR = 2;
BICst.ACCUMULATE_TYPE = {};
BICst.ACCUMULATE_TYPE.COLUMN = 1;
BICst.ACCUMULATE_TYPE.STACKED_COLUMN = 2;
BICst.ACCUMULATE_TYPE.AREA_NORMAL = 3;
BICst.ACCUMULATE_TYPE.AREA_CURVE = 4;
BICst.ACCUMULATE_TYPE.AREA_RIGHT_ANGLE = 5;
BICst.ACCUMULATE_TYPE.STACKED_AREA_NORMAL = 6;
BICst.ACCUMULATE_TYPE.STACKED_AREA_CURVE = 7;
BICst.ACCUMULATE_TYPE.STACKED_AREA_RIGHT_ANGLE = 8;
BICst.ACCUMULATE_TYPE.LINE_NORMAL = 9;
BICst.ACCUMULATE_TYPE.LINE_CURVE = 10;
BICst.ACCUMULATE_TYPE.LINE_RIGHT_ANGLE = 11;
BICst.DATA_LABEL = {};
BICst.DATA_LABEL.POSITION_INNER = 1;
BICst.DATA_LABEL.POSITION_OUTER = 2;
BICst.DATA_LABEL.POSITION_CENTER = 2;
BICst.DOT_STYLE = {};
BICst.DOT_STYLE.SQUARE = 1;
BICst.DOT_STYLE.TRIANGLE = 2;
BICst.CHART_SHAPE = {};
BICst.CHART_SHAPE.NORMAL = 1;
BICst.CHART_SHAPE.RIGHT_ANGLE = 2;
BICst.CHART_SHAPE.CURVE = 3;
BICst.CHART_SHAPE.EQUAL_ARC_ROSE = 4;
BICst.CHART_SHAPE.NOT_EQUAL_ARC_ROSE = 5;
BICst.CHART_SHAPE.CIRCLE = 6;
BICst.CHART_SHAPE.POLYGON = 7;
BICst.CHART_SHAPE.HALF_DASHBOARD = 9;
BICst.CHART_SHAPE.PERCENT_DASHBOARD = 10;
BICst.CHART_SHAPE.PERCENT_SCALE_SLOT = 11;
BICst.CHART_SHAPE.VERTICAL_TUBE = 12;
BICst.CHART_SHAPE.HORIZONTAL_TUBE = 13;
BICst.CHART_SHAPE.NO_PROJECTOR = 16;
BICst.CHART_SHAPE.PROJECTOR = 17;
BICst.DASHBOARD_CHART_STYLE_AUTO = {};
BICst.DASHBOARD_CHART_STYLE_AUTO.THIRD = {};
BICst.DASHBOARD_CHART_STYLE_AUTO.THIRD.FROM = 2;
BICst.DASHBOARD_CHART_STYLE_AUTO.THIRD.TO = 2;
BICst.DASHBOARD_CHART_STYLE_AUTO.THIRD.COLOR = "";
BICst.DASHBOARD_CHART_STYLE_AUTO.SECOND = {};
BICst.DASHBOARD_CHART_STYLE_AUTO.SECOND.FROM = 2;
BICst.DASHBOARD_CHART_STYLE_AUTO.SECOND.TO = 2;
BICst.DASHBOARD_CHART_STYLE_AUTO.SECOND.COLOR = "";
BICst.DASHBOARD_CHART_STYLE_AUTO.FIRST = {};
BICst.DASHBOARD_CHART_STYLE_AUTO.FIRST.FROM = 2;
BICst.DASHBOARD_CHART_STYLE_AUTO.FIRST.TO = 2;
BICst.DASHBOARD_CHART_STYLE_AUTO.FIRST.COLOR = "";
BICst.PERCENTAGE = {};
BICst.PERCENTAGE.SHOW = 1;
BICst.PERCENTAGE.NOT_SHOW = 2;
BICst.CHART_LEGENDS = {};
BICst.CHART_LEGENDS.NOT_SHOW = 1;
BICst.CHART_LEGENDS.TOP = 2;
BICst.CHART_LEGENDS.RIGHT = 3;
BICst.CHART_LEGENDS.BOTTOM = 4;
BICst.CHART_LEGENDS.LEFT = 5;
BICst.FUNNEL_SLANT_STYLE = {};
BICst.FUNNEL_SLANT_STYLE.SAME = 1;
BICst.FUNNEL_SLANT_STYLE.DIFF = 2;
BICst.MULTI_PIE_GRADIENT_STYLE = {};
BICst.MULTI_PIE_GRADIENT_STYLE.LIGHTER = 1;
BICst.MULTI_PIE_GRADIENT_STYLE.DARKER = 2;
BICst.PIE_ANGLES = {};
BICst.PIE_ANGLES.THREE_FOURTHS = 270;
BICst.PIE_ANGLES.HALF = 180;
BICst.PIE_ANGLES.TOTAL = 360;
BICst.GIS_POSITION_TYPE = {};
BICst.GIS_POSITION_TYPE.ADDRESS = 1;
BICst.GIS_POSITION_TYPE.LNG_LAT = 2;
BICst.GIS_POSITION_TYPE.LNG_FIRST = 3;
BICst.GIS_POSITION_TYPE.LAT_FIRST = 4;
BICst.DATACOLUMN = {};
BICst.DATACOLUMN.X = 96;
BICst.DATACOLUMN.Y = 112;
BICst.DATACOLUMN.Z = 128;
BICst.DATACOLUMN.XANDY = 144;
BICst.DATACOLUMN.XANDYANDSIZE = 160;
BICst.DATA_LABEL_STYLE_TYPE = {};
BICst.DATA_LABEL_STYLE_TYPE.TEXT = 143;
BICst.DATA_LABEL_STYLE_TYPE.IMG = 144;
BICst.DATA_LABEL_RANGE = {};
BICst.DATA_LABEL_RANGE.ALL = 140;
BICst.DATA_LABEL_RANGE.Classification = 141;
BICst.DATA_LABEL_RANGE.Series = 142;
BICst.SCALE_SETTING = {};
BICst.SCALE_SETTING.AUTO = 1;
BICst.SCALE_SETTING.CUSTOM = 2;
BICst.CHART_STYLE = {};
BICst.CHART_STYLE.STYLE_NORMAL = 1;
BICst.CHART_STYLE.STYLE_GRADUAL = 2;
BICst.FONT_STYLE = {};
BICst.FONT_STYLE.FONTFAMILY = "inherit";
BICst.FONT_STYLE.COLOR = "#808080";
BICst.FONT_STYLE.FONTSIZE = "12px";
BICst.AUTO = 1;
BICst.X_AXIS = 3;
BICst.NORMAL = 1;
BICst.POLYGON = 7;
BICst.NOT_SHOW = 2;
BICst.ONE2POINT = 3;
BICst.TWO2POINT = 4;
BICst.LEFT_AXIS = 0;
BICst.LNG_FIRST = 3;
BICst.LAT_FIRST = 4;
BICst.FIX_COUNT = 6;
BICst.ROTATION = -90;
BICst.RIGHT_AXIS = 1;
BICst.ZERO2POINT = 2;
BICst.NO_PROJECT = 16;
BICst.MINLIMIT = 1.0E-5;
BICst.ONE_POINTER = 1;
BICst.MULTI_POINTER = 2;
BICst.LEGEND_BOTTOM = 4;
BICst.STYLE_NORMAL = 21;
BICst.LEGEND_HEIGHT = 80;
BICst.LEGEND_WIDTH = "30.0%";
BICst.HALF_DASHBOARD = 9;
BICst.VERTICAL_TUBE = 12;
BICst.DASHBOARD_AXIS = 4;
BICst.HORIZONTAL_TUBE = 13;
BICst.RIGHT_AXIS_SECOND = 2;
BICst.PERCENT_DASHBOARD = 10;
BICst.PERCENT_SCALE_SLOT = 11;
BICst.INTERVAL = 100;
BICst.GIS_MAP_PATH = "http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}";
BICst.KNOWLEDGE_RIGHT = "<a><img src='http://webapi.amap.com/theme/v1.3/mapinfo_05.png'>&copy; 2016 AutoNavi</a>";
BICst.NUM_SEPARATORS = false;
BICst.WMS_SERVER = "wms";
BICst.DATA_CONFIG_DESIGN = {};
BICst.DATA_CONFIG_DESIGN.NO = 0;
BICst.DATA_CONFIG_DESIGN.YES = 1;
BICst.DATA_CONFIG_AUTHORITY = {};
BICst.DATA_CONFIG_AUTHORITY.PACKAGE_MANAGER = {};
BICst.DATA_CONFIG_AUTHORITY.PACKAGE_MANAGER.NODE = "__package_manager_node__";
BICst.DATA_CONFIG_AUTHORITY.PACKAGE_MANAGER.PAGE = "__package_manager_page__";
BICst.DATA_CONFIG_AUTHORITY.PACKAGE_MANAGER.SERVER_CONNECTION = "__package_server_connection__";
BICst.DATA_CONFIG_AUTHORITY.PACKAGE_MANAGER.DATA_CONNECTION = "__package_data_connection__";
BICst.DATA_CONFIG_AUTHORITY.DATA_CONNECTION = {};
BICst.DATA_CONFIG_AUTHORITY.DATA_CONNECTION.NODE = "__data_connection_node__";
BICst.DATA_CONFIG_AUTHORITY.DATA_CONNECTION.PAGE = "__data_connection_page__";
BICst.DATA_CONFIG_AUTHORITY.MULTI_PATH_SETTING = "__multi_path_setting__";
BICst.DATA_CONFIG_AUTHORITY.PACKAGE_AUTHORITY = "__package_authority__";
BICst.DATA_CONFIG_AUTHORITY.FINE_INDEX_UPDATE = "__fine_index_update__";
BICst.GLOBAL_UPDATE_TYPE = {};
BICst.GLOBAL_UPDATE_TYPE.PART_UPDATE = "_part_update_";
BICst.GLOBAL_UPDATE_TYPE.COMPLETE_UPDATE = "_complete_update_";
BICst.GLOBAL_UPDATE_TYPE.META_UPDATE = "_meta_update_";
BICst.CUBE_UPDATE_TYPE = {};
BICst.CUBE_UPDATE_TYPE.GLOBAL_UPDATE = "__global_update__";
BICst.CUBE_UPDATE_TYPE.SINGLETABLE_UPDATE = "__singleTable_update__";
BICst.SINGLE_TABLE_UPDATE = {};
BICst.SINGLE_TABLE_UPDATE.TOGETHER = 0;
BICst.SINGLE_TABLE_UPDATE.NEVER = 1;
BICst.SINGLE_TABLE_UPDATE_TYPE = {};
BICst.SINGLE_TABLE_UPDATE_TYPE.ALL = 0;
BICst.SINGLE_TABLE_UPDATE_TYPE.PART = 1;
BICst.SINGLE_TABLE_UPDATE_TYPE.NEVER = 2;
BICst.UPDATE_FREQUENCY = {};
BICst.UPDATE_FREQUENCY.EVER_DAY = 0;
BICst.UPDATE_FREQUENCY.EVER_SUNDAY = 1;
BICst.UPDATE_FREQUENCY.EVER_MONDAY = 2;
BICst.UPDATE_FREQUENCY.EVER_TUESDAY = 3;
BICst.UPDATE_FREQUENCY.EVER_WEDNESDAY = 4;
BICst.UPDATE_FREQUENCY.EVER_THURSDAY = 5;
BICst.UPDATE_FREQUENCY.EVER_FRIDAY = 6;
BICst.UPDATE_FREQUENCY.EVER_SATURDAY = 7;
BICst.UPDATE_FREQUENCY.EVER_MONTH = 10;
BICst.REQ_DATA_TYPE = {};
BICst.REQ_DATA_TYPE.REQ_GET_ALL_DATA = -1;
BICst.REQ_DATA_TYPE.REQ_GET_DATA_LENGTH = 0;
BICst.TRANS_TYPE = {};
BICst.TRANS_TYPE.READ_FROM_DB = "db";
BICst.TRANS_TYPE.READ_FROM_TABLEDATA = "tabledata";
BICst.TRANS_TYPE.CHOOSE = "choose";
BICst.CONNECTION = {};
BICst.CONNECTION.ETL_CONNECTION = "__FR_BI_ETL__";
BICst.CONNECTION.SERVER_CONNECTION = "__FR_BI_SERVER__";
BICst.CONNECTION.SQL_CONNECTION = "__FR_BI_SQL__";
BICst.CONNECTION.EXCEL_CONNECTION = "__FR_BI_EXCEL__";
BICst.COLUMN = {};
BICst.COLUMN.NUMBER = 32;
BICst.COLUMN.STRING = 16;
BICst.COLUMN.DATE = 48;
BICst.COLUMN.COUNTER = 64;
BICst.COLUMN.ROW = 80;
BICst.CLASS = {};
BICst.CLASS.INTEGER = 0;
BICst.CLASS.LONG = 1;
BICst.CLASS.DOUBLE = 2;
BICst.CLASS.FLOAT = 3;
BICst.CLASS.DATE = 4;
BICst.CLASS.STRING = 5;
BICst.CLASS.BOOLEAN = 6;
BICst.CLASS.TIMESTAMP = 7;
BICst.CLASS.DECIMAL = 8;
BICst.CLASS.TIME = 9;
BICst.CLASS.BYTE = 10;
BICst.CLASS.ROW = 16;
BICst.SYSTEM_USER_NAME = "__system_user_name__";
BICst.LAST_UPDATE_TIME = "__last_update_time__";
BICst.CURRENT_UPDATE_TIME = "__current_update_time__";
BICst.FUNCTION = {};
BICst.FUNCTION.TEXT = 1;
BICst.FUNCTION.MATH = 2;
BICst.FUNCTION.DATE = 3;
BICst.FUNCTION.ARRAY = 4;
BICst.FUNCTION.LOGIC = 5;
BICst.FUNCTION.OTHER = 6;

10
dist/bundle.css vendored

@ -2387,6 +2387,13 @@ li.CodeMirror-hint-active {
border: none;
color: #e85050 !important;
}
.bi-label {
text-overflow: ellipsis;
overflow-x: hidden;
overflow-y: hidden;
white-space: nowrap;
word-break: break-all;
}
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-text {
@ -2402,6 +2409,7 @@ li.CodeMirror-hint-active {
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
word-wrap: break-word;
word-break: break-word;
}
.bi-bubble {
@ -3202,7 +3210,7 @@ li.CodeMirror-hint-active {
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-single-slider-slider .slider-button {
cursor: url('${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/cursor/cursor_drag_slider.cur'), auto;
cursor: url('images/1x/cursor/cursor_drag_slider.cur'), auto;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

291
dist/bundle.js vendored

@ -23744,6 +23744,14 @@ Date.prototype.getMonthDays = function (month) {
}
};
/**
* 获取每月的最后一天
* @returns {Date}
*/
Date.prototype.getLastDateOfMonth = function () {
return new Date(this.getFullYear(), this.getMonth(), this.getMonthDays());
};
/** Returns the number of day in the year. */
Date.prototype.getDayOfYear = function () {
var now = new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0);
@ -76852,6 +76860,81 @@ BI.IconTrigger = BI.inherit(BI.Trigger, {
}
});
BI.shortcut('bi.icon_trigger', BI.IconTrigger);/**
* 文字trigger
*
* Created by GUY on 2015/9/15.
* @class BI.IconTextTrigger
* @extends BI.Trigger
*/
BI.IconTextTrigger = BI.inherit(BI.Trigger, {
_const: {
hgap: 4,
triggerWidth: 30
},
_defaultConfig: function () {
var conf = BI.IconTextTrigger.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-text-trigger",
height: 30
});
},
_init: function () {
BI.IconTextTrigger.superclass._init.apply(this, arguments);
var self = this, o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
textAlign: "left",
height: o.height,
text: o.text,
hgap: c.hgap
});
this.trigerButton = BI.createWidget({
type: "bi.trigger_icon_button",
cls: "bi-border-left",
width: c.triggerWidth
});
BI.createWidget({
element: this,
type: 'bi.htape',
items: [{
el: {
type: "bi.icon_change_button",
cls: "icon-combo-trigger-icon " + o.iconClass,
ref: function (_ref) {
self.icon = _ref;
},
disableSelected: true
},
width: 24
},
{
el: this.text
}, {
el: this.trigerButton,
width: c.triggerWidth
}
]
});
},
setValue: function (value) {
this.text.setValue(value);
this.text.setTitle(value);
},
setIcon: function (iconCls) {
this.icon.setIcon(iconCls);
},
setText: function (text) {
this.text.setText(text);
this.text.setTitle(text);
}
});
BI.shortcut("bi.icon_text_trigger", BI.IconTextTrigger);/**
* 文字trigger
*
* Created by GUY on 2015/9/15.
@ -82572,7 +82655,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -82599,7 +82683,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
});
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(1);
self._finetuning(o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -82609,7 +82693,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
});
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(-1);
self._finetuning(-o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -83645,39 +83729,39 @@ BI.MultiDateCard = BI.inherit(BI.Widget, {
var valueObject = this.getValue();
var type = valueObject.type, value = valueObject.value;
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
return new Date().getOffsetDate(-1 * value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
return new Date().getOffsetDate(value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
return new Date();
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
return new Date().getBeforeMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
return new Date().getAfterMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
return new Date(new Date().getFullYear(), new Date().getMonth(), 1);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
return new Date(new Date().getFullYear(), new Date().getMonth(), (new Date().getLastDateOfMonth()).getDate());
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
return new Date().getBeforeMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
return new Date().getAfterMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
return new Date().getQuarterStartDate();
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
return new Date().getQuarterEndDate();
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
return new Date().getOffsetDate(-7 * value);
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
return new Date().getOffsetDate(7 * value);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
return new Date((new Date().getFullYear() - 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
return new Date((new Date().getFullYear() + 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
return new Date(new Date().getFullYear(), 0, 1);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
return new Date(new Date().getFullYear(), 11, 31);
}
}
@ -83868,23 +83952,23 @@ BI.MultiDateCombo = BI.inherit(BI.Single, {
type = v.type
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.changeIcon.setVisible(true);
this.comboWrapper.attr("items")[1].width = 30;
this.comboWrapper.resize();
@ -83930,6 +84014,39 @@ BI.extend(BI.MultiDateCombo, {
MULTI_DATE_WEEK_CARD: 5,
MULTI_DATE_DAY_CARD: 6
});
BI.extend(BI.MultiDateCombo, {
DATE_TYPE: {
MULTI_DATE_YEAR_PREV: 1,
MULTI_DATE_YEAR_AFTER: 2,
MULTI_DATE_YEAR_BEGIN: 3,
MULTI_DATE_YEAR_END: 4,
MULTI_DATE_MONTH_PREV: 5,
MULTI_DATE_MONTH_AFTER: 6,
MULTI_DATE_MONTH_BEGIN: 7,
MULTI_DATE_MONTH_END: 8,
MULTI_DATE_QUARTER_PREV: 9,
MULTI_DATE_QUARTER_AFTER: 10,
MULTI_DATE_QUARTER_BEGIN: 11,
MULTI_DATE_QUARTER_END: 12,
MULTI_DATE_WEEK_PREV: 13,
MULTI_DATE_WEEK_AFTER: 14,
MULTI_DATE_DAY_PREV: 15,
MULTI_DATE_DAY_AFTER: 16,
MULTI_DATE_DAY_TODAY: 17,
MULTI_DATE_PARAM: 18,
MULTI_DATE_CALENDAR: 19,
YEAR_QUARTER: 20,
YEAR_MONTH: 21,
YEAR_WEEK: 22,
YEAR_DAY: 23,
MONTH_WEEK: 24,
MONTH_DAY: 25,
YEAR: 26,
SAME_PERIOD: 27,
LAST_SAME_PERIOD: 28
}
});
/**
* 普通控件
*
@ -83953,22 +84070,22 @@ BI.DayCard = BI.inherit(BI.MultiDateCard, {
isEditorExist: true,
selected: true,
text: BI.i18nText("BI-Multi_Date_Day_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Day_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY,
text: BI.i18nText("BI-Multi_Date_Today")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
}
});
BI.DayCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -83994,28 +84111,28 @@ BI.MonthCard = BI.inherit(BI.MultiDateCard, {
return [{
selected: true,
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV,
text: BI.i18nText("BI-Multi_Date_Month_Prev")
},
{
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
text: BI.i18nText("BI-Multi_Date_Month_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_End")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV;
}
});
BI.MonthCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -84241,52 +84358,52 @@ BI.MultiDatePopup = BI.inherit(BI.Widget, {
var self = this, date;
var type, value;
if (BI.isNotNull(v)) {
type = v.type || BICst.DATE_TYPE.MULTI_DATE_CALENDAR;
type = v.type || BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_CALENDAR;
value = v.value;
if (BI.isNull(value)) {
value = v;
}
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BICst.MULTI_DATE_YEAR_CARD);
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_YEAR_CARD);
this.year.setValue({type: type, value: value});
this.cur = BICst.MULTI_DATE_YEAR_CARD;
this.cur = BI.MultiDateCombo.MULTI_DATE_YEAR_CARD;
self._setInnerValue(this.year);
break;
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BICst.MULTI_DATE_QUARTER_CARD);
this.cur = BICst.MULTI_DATE_QUARTER_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD;
this.quarter.setValue({type: type, value: value});
self._setInnerValue(this.quarter);
break;
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BICst.MULTI_DATE_MONTH_CARD);
this.cur = BICst.MULTI_DATE_MONTH_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_MONTH_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_MONTH_CARD;
this.month.setValue({type: type, value: value});
self._setInnerValue(this.month);
break;
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BICst.MULTI_DATE_WEEK_CARD);
this.cur = BICst.MULTI_DATE_WEEK_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_WEEK_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_WEEK_CARD;
this.week.setValue({type: type, value: value});
self._setInnerValue(this.week);
break;
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BICst.MULTI_DATE_DAY_CARD);
this.cur = BICst.MULTI_DATE_DAY_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_DAY_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_DAY_CARD;
this.day.setValue({type: type, value: value});
self._setInnerValue(this.day);
break;
@ -84353,29 +84470,29 @@ BI.QuarterCard = BI.inherit(BI.MultiDateCard, {
dateConfig: function () {
return [{
selected: true,
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Prev")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
}
});
BI.QuarterCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -84528,17 +84645,17 @@ BI.WeekCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV;
}
});
BI.WeekCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -84565,27 +84682,27 @@ BI.YearCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
text: BI.i18nText("BI-Multi_Date_Year_Begin")
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END,
text: BI.i18nText("BI-Multi_Date_Year_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV;
}
});
BI.YearCard.EVENT_CHANGE = "EVENT_CHANGE";

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

36
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

75
dist/case.js vendored

@ -12545,6 +12545,81 @@ BI.IconTrigger = BI.inherit(BI.Trigger, {
}
});
BI.shortcut('bi.icon_trigger', BI.IconTrigger);/**
* 文字trigger
*
* Created by GUY on 2015/9/15.
* @class BI.IconTextTrigger
* @extends BI.Trigger
*/
BI.IconTextTrigger = BI.inherit(BI.Trigger, {
_const: {
hgap: 4,
triggerWidth: 30
},
_defaultConfig: function () {
var conf = BI.IconTextTrigger.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-text-trigger",
height: 30
});
},
_init: function () {
BI.IconTextTrigger.superclass._init.apply(this, arguments);
var self = this, o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
textAlign: "left",
height: o.height,
text: o.text,
hgap: c.hgap
});
this.trigerButton = BI.createWidget({
type: "bi.trigger_icon_button",
cls: "bi-border-left",
width: c.triggerWidth
});
BI.createWidget({
element: this,
type: 'bi.htape',
items: [{
el: {
type: "bi.icon_change_button",
cls: "icon-combo-trigger-icon " + o.iconClass,
ref: function (_ref) {
self.icon = _ref;
},
disableSelected: true
},
width: 24
},
{
el: this.text
}, {
el: this.trigerButton,
width: c.triggerWidth
}
]
});
},
setValue: function (value) {
this.text.setValue(value);
this.text.setTitle(value);
},
setIcon: function (iconCls) {
this.icon.setIcon(iconCls);
},
setText: function (text) {
this.text.setText(text);
this.text.setTitle(text);
}
});
BI.shortcut("bi.icon_text_trigger", BI.IconTextTrigger);/**
* 文字trigger
*
* Created by GUY on 2015/9/15.

8
dist/core.js vendored

@ -23693,6 +23693,14 @@ Date.prototype.getMonthDays = function (month) {
}
};
/**
* 获取每月的最后一天
* @returns {Date}
*/
Date.prototype.getLastDateOfMonth = function () {
return new Date(this.getFullYear(), this.getMonth(), this.getMonthDays());
};
/** Returns the number of day in the year. */
Date.prototype.getDayOfYear = function () {
var now = new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0);

6
dist/index.html vendored

@ -18,10 +18,10 @@
<script src="widget.js"></script>
<script src="slider.js"></script>
<!--图表-->
<script src="vancharts-all.js"></script>
<script src="biconst.js"></script>
<!--<script src="vancharts-all.js"></script>-->
<!--<script src="biconst.js"></script>-->
<!--图表用到的常量(直接拿的bi的常量)-->
<script src="chart.js"></script>
<!--<script src="chart.js"></script>-->
<script src="demo.js"></script>
</head>

86
dist/resource.css vendored

@ -1732,31 +1732,31 @@ textarea::-webkit-scrollbar-thumb:hover {
height: 101px;
}
.farbtastic .wheel {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/farbtastic/wheel.png") no-repeat;
background: url("images/1x/third/farbtastic/wheel.png") no-repeat;
width: 195px;
height: 195px;
}
.farbtastic .overlay {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/farbtastic/mask.png") no-repeat;
background: url("images/1x/third/farbtastic/mask.png") no-repeat;
}
.farbtastic .marker {
width: 17px;
height: 17px;
margin: -8px 0 0 -8px;
overflow: hidden;
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/farbtastic/marker.png") no-repeat;
background: url("images/1x/third/farbtastic/marker.png") no-repeat;
}
.bi-display-tree .ztree * {
color: #999999;
}
.bi-display-tree .ztree li span.button.switch.center_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x//icon/tree-vertical-line-3.png");
background-image: url("images/1x//icon/tree-vertical-line-3.png");
}
.bi-display-tree .ztree li span.button.switch.roots_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x//icon/tree-vertical-line-2.png");
background-image: url("images/1x//icon/tree-vertical-line-2.png");
}
.bi-display-tree .ztree li span.button.switch.bottom_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x//icon/tree-vertical-line-4.png");
background-image: url("images/1x//icon/tree-vertical-line-4.png");
}
.bi-display-tree .ztree li a,
.bi-display-tree .ztree li span {
@ -1803,10 +1803,10 @@ website: http://code.google.com/p/jquerytree/
padding: 0 0 0 18px;
}
.ztree li ul.line {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-1.png") 0 0 repeat-y;
background: url("images/1x/icon/tree-vertical-line-1.png") 0 0 repeat-y;
}
.bi-theme-dark .ztree li ul.line {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-1.png") 0 0 repeat-y;
background: url("images/1x/icon/dark/tree-vertical-line-1.png") 0 0 repeat-y;
}
.ztree li a {
padding: 1px 3px 0 0;
@ -1861,8 +1861,8 @@ website: http://code.google.com/p/jquerytree/
background-color: transparent;
background-repeat: no-repeat;
background-attachment: scroll;
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.gif");
background-image: url("images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("images/1x/third/ztree/img/zTreeStandard.gif");
}
.ztree li span.button.chk {
width: 16px;
@ -1871,31 +1871,31 @@ website: http://code.google.com/p/jquerytree/
cursor: auto;
}
.ztree li span.button.chk.checkbox_false_full {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-normal.png");
background-image: url("images/1x/icon/check-box-normal.png");
}
.ztree li span.button.chk.checkbox_false_full_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-normal.png");
background-image: url("images/1x/icon/check-box-normal.png");
}
.ztree li span.button.chk.checkbox_false_part {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_false_part_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_false_disable {
background-position: 0 -56px;
}
.ztree li span.button.chk.checkbox_true_full {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-active.png");
background-image: url("images/1x/icon/check-box-active.png");
}
.ztree li span.button.chk.checkbox_true_full_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-active.png");
background-image: url("images/1x/icon/check-box-active.png");
}
.ztree li span.button.chk.checkbox_true_part {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_true_part_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_true_disable {
background-position: -14px -56px;
@ -1935,52 +1935,52 @@ website: http://code.google.com/p/jquerytree/
height: 25px;
}
.ztree li span.button.root_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-1.png");
background-image: url("images/1x/icon/tree-expand-1.png");
}
.bi-theme-dark .ztree li span.button.root_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-1.png");
background-image: url("images/1x/icon/dark/tree-expand-1.png");
}
.ztree li span.button.root_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-1.png");
background-image: url("images/1x/icon/tree-collapse-1.png");
}
.bi-theme-dark .ztree li span.button.root_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-1.png");
background-image: url("images/1x/icon/dark/tree-collapse-1.png");
}
.ztree li span.button.roots_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-2.png");
background-image: url("images/1x/icon/tree-expand-2.png");
}
.bi-theme-dark .ztree li span.button.roots_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-2.png");
background-image: url("images/1x/icon/dark/tree-expand-2.png");
}
.ztree li span.button.roots_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-2.png");
background-image: url("images/1x/icon/tree-collapse-2.png");
}
.bi-theme-dark .ztree li span.button.roots_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-2.png");
background-image: url("images/1x/icon/dark/tree-collapse-2.png");
}
.ztree li span.button.center_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-3.png");
background-image: url("images/1x/icon/tree-expand-3.png");
}
.bi-theme-dark .ztree li span.button.center_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-3.png");
background-image: url("images/1x/icon/dark/tree-expand-3.png");
}
.ztree li span.button.center_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-3.png");
background-image: url("images/1x/icon/tree-collapse-3.png");
}
.bi-theme-dark .ztree li span.button.center_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-3.png");
background-image: url("images/1x/icon/dark/tree-collapse-3.png");
}
.ztree li span.button.bottom_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-4.png");
background-image: url("images/1x/icon/tree-expand-4.png");
}
.bi-theme-dark .ztree li span.button.bottom_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-4.png");
background-image: url("images/1x/icon/dark/tree-expand-4.png");
}
.ztree li span.button.bottom_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-4.png");
background-image: url("images/1x/icon/tree-collapse-4.png");
}
.bi-theme-dark .ztree li span.button.bottom_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-4.png");
background-image: url("images/1x/icon/dark/tree-collapse-4.png");
}
.ztree li span.button.noline_open {
background-position: -92px -72px;
@ -1992,22 +1992,22 @@ website: http://code.google.com/p/jquerytree/
background: none;
}
.ztree li span.button.roots_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-2.png");
background-image: url("images/1x/icon/tree-vertical-line-2.png");
}
.bi-theme-dark .ztree li span.button.roots_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-2.png");
background-image: url("images/1x/icon/dark/tree-vertical-line-2.png");
}
.ztree li span.button.center_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-3.png");
background-image: url("images/1x/icon/tree-vertical-line-3.png");
}
.bi-theme-dark .ztree li span.button.center_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-3.png");
background-image: url("images/1x/icon/dark/tree-vertical-line-3.png");
}
.ztree li span.button.bottom_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-4.png");
background-image: url("images/1x/icon/tree-vertical-line-4.png");
}
.bi-theme-dark .ztree li span.button.bottom_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-4.png");
background-image: url("images/1x/icon/dark/tree-vertical-line-4.png");
}
.ztree li span.button.noline_docu {
background: none;
@ -2045,7 +2045,7 @@ website: http://code.google.com/p/jquerytree/
.ztree li span.button.ico_loading {
width: 0px;
margin-right: 2px;
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/loading.gif") no-repeat scroll 0 0 transparent;
background: url("images/1x/third/ztree/img/loading.gif") no-repeat scroll 0 0 transparent;
vertical-align: top;
*vertical-align: middle;
}
@ -2066,8 +2066,8 @@ span.tmpzTreeMove_arrow {
background-repeat: no-repeat;
background-attachment: scroll;
background-position: -110px -80px;
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.gif");
background-image: url("images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("images/1x/third/ztree/img/zTreeStandard.gif");
}
ul.ztree.zTreeDragUL {
margin: 0;

4
dist/slider.js vendored

@ -137,7 +137,9 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
}
});
this.label.on(BI.SignEditor.EVENT_CONFIRM, function () {
var percent = self._getPercentByValue(this.getValue());
var v = BI.parseFloat(this.getValue());
self.value = v;
var percent = self._getPercentByValue(v);
var significantPercent = BI.parseFloat(percent.toFixed(1));
self._setAllPosition(significantPercent);
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);

167
dist/vancharts-all.js vendored

File diff suppressed because one or more lines are too long

2
dist/widget.css vendored

@ -433,7 +433,7 @@
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-single-slider-slider .slider-button {
cursor: url('${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/cursor/cursor_drag_slider.cur'), auto;
cursor: url('images/1x/cursor/cursor_drag_slider.cur'), auto;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

208
dist/widget.js vendored

@ -5496,7 +5496,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -5523,7 +5524,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
});
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(1);
self._finetuning(o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -5533,7 +5534,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
});
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(-1);
self._finetuning(-o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -6569,39 +6570,39 @@ BI.MultiDateCard = BI.inherit(BI.Widget, {
var valueObject = this.getValue();
var type = valueObject.type, value = valueObject.value;
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
return new Date().getOffsetDate(-1 * value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
return new Date().getOffsetDate(value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
return new Date();
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
return new Date().getBeforeMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
return new Date().getAfterMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
return new Date(new Date().getFullYear(), new Date().getMonth(), 1);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
return new Date(new Date().getFullYear(), new Date().getMonth(), (new Date().getLastDateOfMonth()).getDate());
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
return new Date().getBeforeMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
return new Date().getAfterMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
return new Date().getQuarterStartDate();
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
return new Date().getQuarterEndDate();
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
return new Date().getOffsetDate(-7 * value);
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
return new Date().getOffsetDate(7 * value);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
return new Date((new Date().getFullYear() - 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
return new Date((new Date().getFullYear() + 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
return new Date(new Date().getFullYear(), 0, 1);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
return new Date(new Date().getFullYear(), 11, 31);
}
}
@ -6792,23 +6793,23 @@ BI.MultiDateCombo = BI.inherit(BI.Single, {
type = v.type
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.changeIcon.setVisible(true);
this.comboWrapper.attr("items")[1].width = 30;
this.comboWrapper.resize();
@ -6854,6 +6855,39 @@ BI.extend(BI.MultiDateCombo, {
MULTI_DATE_WEEK_CARD: 5,
MULTI_DATE_DAY_CARD: 6
});
BI.extend(BI.MultiDateCombo, {
DATE_TYPE: {
MULTI_DATE_YEAR_PREV: 1,
MULTI_DATE_YEAR_AFTER: 2,
MULTI_DATE_YEAR_BEGIN: 3,
MULTI_DATE_YEAR_END: 4,
MULTI_DATE_MONTH_PREV: 5,
MULTI_DATE_MONTH_AFTER: 6,
MULTI_DATE_MONTH_BEGIN: 7,
MULTI_DATE_MONTH_END: 8,
MULTI_DATE_QUARTER_PREV: 9,
MULTI_DATE_QUARTER_AFTER: 10,
MULTI_DATE_QUARTER_BEGIN: 11,
MULTI_DATE_QUARTER_END: 12,
MULTI_DATE_WEEK_PREV: 13,
MULTI_DATE_WEEK_AFTER: 14,
MULTI_DATE_DAY_PREV: 15,
MULTI_DATE_DAY_AFTER: 16,
MULTI_DATE_DAY_TODAY: 17,
MULTI_DATE_PARAM: 18,
MULTI_DATE_CALENDAR: 19,
YEAR_QUARTER: 20,
YEAR_MONTH: 21,
YEAR_WEEK: 22,
YEAR_DAY: 23,
MONTH_WEEK: 24,
MONTH_DAY: 25,
YEAR: 26,
SAME_PERIOD: 27,
LAST_SAME_PERIOD: 28
}
});
/**
* 普通控件
*
@ -6877,22 +6911,22 @@ BI.DayCard = BI.inherit(BI.MultiDateCard, {
isEditorExist: true,
selected: true,
text: BI.i18nText("BI-Multi_Date_Day_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Day_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY,
text: BI.i18nText("BI-Multi_Date_Today")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
}
});
BI.DayCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -6918,28 +6952,28 @@ BI.MonthCard = BI.inherit(BI.MultiDateCard, {
return [{
selected: true,
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV,
text: BI.i18nText("BI-Multi_Date_Month_Prev")
},
{
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
text: BI.i18nText("BI-Multi_Date_Month_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_End")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV;
}
});
BI.MonthCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -7165,52 +7199,52 @@ BI.MultiDatePopup = BI.inherit(BI.Widget, {
var self = this, date;
var type, value;
if (BI.isNotNull(v)) {
type = v.type || BICst.DATE_TYPE.MULTI_DATE_CALENDAR;
type = v.type || BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_CALENDAR;
value = v.value;
if (BI.isNull(value)) {
value = v;
}
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BICst.MULTI_DATE_YEAR_CARD);
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_YEAR_CARD);
this.year.setValue({type: type, value: value});
this.cur = BICst.MULTI_DATE_YEAR_CARD;
this.cur = BI.MultiDateCombo.MULTI_DATE_YEAR_CARD;
self._setInnerValue(this.year);
break;
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BICst.MULTI_DATE_QUARTER_CARD);
this.cur = BICst.MULTI_DATE_QUARTER_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD;
this.quarter.setValue({type: type, value: value});
self._setInnerValue(this.quarter);
break;
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BICst.MULTI_DATE_MONTH_CARD);
this.cur = BICst.MULTI_DATE_MONTH_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_MONTH_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_MONTH_CARD;
this.month.setValue({type: type, value: value});
self._setInnerValue(this.month);
break;
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BICst.MULTI_DATE_WEEK_CARD);
this.cur = BICst.MULTI_DATE_WEEK_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_WEEK_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_WEEK_CARD;
this.week.setValue({type: type, value: value});
self._setInnerValue(this.week);
break;
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BICst.MULTI_DATE_DAY_CARD);
this.cur = BICst.MULTI_DATE_DAY_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_DAY_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_DAY_CARD;
this.day.setValue({type: type, value: value});
self._setInnerValue(this.day);
break;
@ -7277,29 +7311,29 @@ BI.QuarterCard = BI.inherit(BI.MultiDateCard, {
dateConfig: function () {
return [{
selected: true,
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Prev")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
}
});
BI.QuarterCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -7452,17 +7486,17 @@ BI.WeekCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV;
}
});
BI.WeekCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -7489,27 +7523,27 @@ BI.YearCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
text: BI.i18nText("BI-Multi_Date_Year_Begin")
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END,
text: BI.i18nText("BI-Multi_Date_Year_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV;
}
});
BI.YearCard.EVENT_CHANGE = "EVENT_CHANGE";

4
src/addons/slider/slider/singleslider/singleslider.js

@ -105,7 +105,9 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
}
});
this.label.on(BI.SignEditor.EVENT_CONFIRM, function () {
var percent = self._getPercentByValue(this.getValue());
var v = BI.parseFloat(this.getValue());
self.value = v;
var percent = self._getPercentByValue(v);
var significantPercent = BI.parseFloat(percent.toFixed(1));
self._setAllPosition(significantPercent);
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);

76
src/case/trigger/trigger.icon.text.js

@ -0,0 +1,76 @@
/**
* 文字trigger
*
* Created by GUY on 2015/9/15.
* @class BI.IconTextTrigger
* @extends BI.Trigger
*/
BI.IconTextTrigger = BI.inherit(BI.Trigger, {
_const: {
hgap: 4,
triggerWidth: 30
},
_defaultConfig: function () {
var conf = BI.IconTextTrigger.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-text-trigger",
height: 30
});
},
_init: function () {
BI.IconTextTrigger.superclass._init.apply(this, arguments);
var self = this, o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
textAlign: "left",
height: o.height,
text: o.text,
hgap: c.hgap
});
this.trigerButton = BI.createWidget({
type: "bi.trigger_icon_button",
cls: "bi-border-left",
width: c.triggerWidth
});
BI.createWidget({
element: this,
type: 'bi.htape',
items: [{
el: {
type: "bi.icon_change_button",
cls: "icon-combo-trigger-icon " + o.iconClass,
ref: function (_ref) {
self.icon = _ref;
},
disableSelected: true
},
width: 24
},
{
el: this.text
}, {
el: this.trigerButton,
width: c.triggerWidth
}
]
});
},
setValue: function (value) {
this.text.setValue(value);
this.text.setTitle(value);
},
setIcon: function (iconCls) {
this.icon.setIcon(iconCls);
},
setText: function (text) {
this.text.setText(text);
this.text.setTitle(text);
}
});
BI.shortcut("bi.icon_text_trigger", BI.IconTextTrigger);

8
src/core/proto/date.js

@ -86,6 +86,14 @@ Date.prototype.getMonthDays = function (month) {
}
};
/**
* 获取每月的最后一天
* @returns {Date}
*/
Date.prototype.getLastDateOfMonth = function () {
return new Date(this.getFullYear(), this.getMonth(), this.getMonthDays());
};
/** Returns the number of day in the year. */
Date.prototype.getDayOfYear = function () {
var now = new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0);

7
src/css/base/single/label.css

@ -0,0 +1,7 @@
.bi-label {
text-overflow: ellipsis;
overflow-x: hidden;
overflow-y: hidden;
white-space: nowrap;
word-break: break-all;
}

1
src/css/base/single/text.css

@ -11,5 +11,6 @@
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
word-wrap: break-word;
word-break: break-word;
}

6
src/css/resource/third/farbtastic/farbtastic.css

@ -36,17 +36,17 @@
height: 101px;
}
.farbtastic .wheel {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/farbtastic/wheel.png") no-repeat;
background: url("images/1x/third/farbtastic/wheel.png") no-repeat;
width: 195px;
height: 195px;
}
.farbtastic .overlay {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/farbtastic/mask.png") no-repeat;
background: url("images/1x/third/farbtastic/mask.png") no-repeat;
}
.farbtastic .marker {
width: 17px;
height: 17px;
margin: -8px 0 0 -8px;
overflow: hidden;
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/farbtastic/marker.png") no-repeat;
background: url("images/1x/third/farbtastic/marker.png") no-repeat;
}

6
src/css/resource/third/ztree/display.tree.css

@ -2,13 +2,13 @@
color: #999999;
}
.bi-display-tree .ztree li span.button.switch.center_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x//icon/tree-vertical-line-3.png");
background-image: url("images/1x//icon/tree-vertical-line-3.png");
}
.bi-display-tree .ztree li span.button.switch.roots_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x//icon/tree-vertical-line-2.png");
background-image: url("images/1x//icon/tree-vertical-line-2.png");
}
.bi-display-tree .ztree li span.button.switch.bottom_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x//icon/tree-vertical-line-4.png");
background-image: url("images/1x//icon/tree-vertical-line-4.png");
}
.bi-display-tree .ztree li a,
.bi-display-tree .ztree li span {

74
src/css/resource/third/ztree/zTreeStyle.css

@ -29,10 +29,10 @@ website: http://code.google.com/p/jquerytree/
padding: 0 0 0 18px;
}
.ztree li ul.line {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-1.png") 0 0 repeat-y;
background: url("images/1x/icon/tree-vertical-line-1.png") 0 0 repeat-y;
}
.bi-theme-dark .ztree li ul.line {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-1.png") 0 0 repeat-y;
background: url("images/1x/icon/dark/tree-vertical-line-1.png") 0 0 repeat-y;
}
.ztree li a {
padding: 1px 3px 0 0;
@ -87,8 +87,8 @@ website: http://code.google.com/p/jquerytree/
background-color: transparent;
background-repeat: no-repeat;
background-attachment: scroll;
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.gif");
background-image: url("images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("images/1x/third/ztree/img/zTreeStandard.gif");
}
.ztree li span.button.chk {
width: 16px;
@ -97,31 +97,31 @@ website: http://code.google.com/p/jquerytree/
cursor: auto;
}
.ztree li span.button.chk.checkbox_false_full {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-normal.png");
background-image: url("images/1x/icon/check-box-normal.png");
}
.ztree li span.button.chk.checkbox_false_full_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-normal.png");
background-image: url("images/1x/icon/check-box-normal.png");
}
.ztree li span.button.chk.checkbox_false_part {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_false_part_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_false_disable {
background-position: 0 -56px;
}
.ztree li span.button.chk.checkbox_true_full {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-active.png");
background-image: url("images/1x/icon/check-box-active.png");
}
.ztree li span.button.chk.checkbox_true_full_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-active.png");
background-image: url("images/1x/icon/check-box-active.png");
}
.ztree li span.button.chk.checkbox_true_part {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_true_part_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_true_disable {
background-position: -14px -56px;
@ -161,52 +161,52 @@ website: http://code.google.com/p/jquerytree/
height: 25px;
}
.ztree li span.button.root_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-1.png");
background-image: url("images/1x/icon/tree-expand-1.png");
}
.bi-theme-dark .ztree li span.button.root_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-1.png");
background-image: url("images/1x/icon/dark/tree-expand-1.png");
}
.ztree li span.button.root_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-1.png");
background-image: url("images/1x/icon/tree-collapse-1.png");
}
.bi-theme-dark .ztree li span.button.root_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-1.png");
background-image: url("images/1x/icon/dark/tree-collapse-1.png");
}
.ztree li span.button.roots_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-2.png");
background-image: url("images/1x/icon/tree-expand-2.png");
}
.bi-theme-dark .ztree li span.button.roots_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-2.png");
background-image: url("images/1x/icon/dark/tree-expand-2.png");
}
.ztree li span.button.roots_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-2.png");
background-image: url("images/1x/icon/tree-collapse-2.png");
}
.bi-theme-dark .ztree li span.button.roots_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-2.png");
background-image: url("images/1x/icon/dark/tree-collapse-2.png");
}
.ztree li span.button.center_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-3.png");
background-image: url("images/1x/icon/tree-expand-3.png");
}
.bi-theme-dark .ztree li span.button.center_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-3.png");
background-image: url("images/1x/icon/dark/tree-expand-3.png");
}
.ztree li span.button.center_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-3.png");
background-image: url("images/1x/icon/tree-collapse-3.png");
}
.bi-theme-dark .ztree li span.button.center_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-3.png");
background-image: url("images/1x/icon/dark/tree-collapse-3.png");
}
.ztree li span.button.bottom_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-4.png");
background-image: url("images/1x/icon/tree-expand-4.png");
}
.bi-theme-dark .ztree li span.button.bottom_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-4.png");
background-image: url("images/1x/icon/dark/tree-expand-4.png");
}
.ztree li span.button.bottom_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-4.png");
background-image: url("images/1x/icon/tree-collapse-4.png");
}
.bi-theme-dark .ztree li span.button.bottom_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-4.png");
background-image: url("images/1x/icon/dark/tree-collapse-4.png");
}
.ztree li span.button.noline_open {
background-position: -92px -72px;
@ -218,22 +218,22 @@ website: http://code.google.com/p/jquerytree/
background: none;
}
.ztree li span.button.roots_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-2.png");
background-image: url("images/1x/icon/tree-vertical-line-2.png");
}
.bi-theme-dark .ztree li span.button.roots_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-2.png");
background-image: url("images/1x/icon/dark/tree-vertical-line-2.png");
}
.ztree li span.button.center_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-3.png");
background-image: url("images/1x/icon/tree-vertical-line-3.png");
}
.bi-theme-dark .ztree li span.button.center_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-3.png");
background-image: url("images/1x/icon/dark/tree-vertical-line-3.png");
}
.ztree li span.button.bottom_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-4.png");
background-image: url("images/1x/icon/tree-vertical-line-4.png");
}
.bi-theme-dark .ztree li span.button.bottom_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-4.png");
background-image: url("images/1x/icon/dark/tree-vertical-line-4.png");
}
.ztree li span.button.noline_docu {
background: none;
@ -271,7 +271,7 @@ website: http://code.google.com/p/jquerytree/
.ztree li span.button.ico_loading {
width: 0px;
margin-right: 2px;
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/loading.gif") no-repeat scroll 0 0 transparent;
background: url("images/1x/third/ztree/img/loading.gif") no-repeat scroll 0 0 transparent;
vertical-align: top;
*vertical-align: middle;
}
@ -292,8 +292,8 @@ span.tmpzTreeMove_arrow {
background-repeat: no-repeat;
background-attachment: scroll;
background-position: -110px -80px;
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.gif");
background-image: url("images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("images/1x/third/ztree/img/zTreeStandard.gif");
}
ul.ztree.zTreeDragUL {
margin: 0;

2
src/css/widget/singleslider/slider/widget.slider.css

@ -1,5 +1,5 @@
.bi-single-slider-slider .slider-button {
cursor: url('${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/cursor/cursor_drag_slider.cur'), auto;
cursor: url('images/1x/cursor/cursor_drag_slider.cur'), auto;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

6
src/less/base/single/label.less

@ -0,0 +1,6 @@
@import "../../bibase";
.bi-label {
.overflow-dot();
word-break: break-all;
}

1
src/less/base/single/text.less

@ -3,5 +3,6 @@
.bi-text {
.overflow-dot();
.box-sizing(border-box);
word-wrap: break-word;
word-break: break-word;
}

6
src/less/var.less

@ -1,6 +1,6 @@
@webUrl: '${remoteServletURL}?op=resource&resource=/com/fr/bi/web/';
@imageUrl: '${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/'; //图片的基本地址
@image2xUrl: '${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/2x/'; //2x图片的基本地址
@webUrl: '';
@imageUrl: 'images/1x/'; //图片的基本地址
@image2xUrl: 'images/2x/'; //2x图片的基本地址
@cursor: '@{webUrl}images/cursor/cursor_hand.cur';
@dragCursor: '@{webUrl}images/cursor/cursor_drag_hand.cur';

7
src/widget/finetuningnumbereditor/finetuning.number.editor.js

@ -9,7 +9,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -36,7 +37,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
});
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(1);
self._finetuning(o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -46,7 +47,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
});
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(-1);
self._finetuning(-o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});

34
src/widget/multidate/abstract.multidate.datepane.js

@ -111,39 +111,39 @@ BI.MultiDateCard = BI.inherit(BI.Widget, {
var valueObject = this.getValue();
var type = valueObject.type, value = valueObject.value;
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
return new Date().getOffsetDate(-1 * value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
return new Date().getOffsetDate(value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
return new Date();
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
return new Date().getBeforeMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
return new Date().getAfterMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
return new Date(new Date().getFullYear(), new Date().getMonth(), 1);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
return new Date(new Date().getFullYear(), new Date().getMonth(), (new Date().getLastDateOfMonth()).getDate());
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
return new Date().getBeforeMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
return new Date().getAfterMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
return new Date().getQuarterStartDate();
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
return new Date().getQuarterEndDate();
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
return new Date().getOffsetDate(-7 * value);
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
return new Date().getOffsetDate(7 * value);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
return new Date((new Date().getFullYear() - 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
return new Date((new Date().getFullYear() + 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
return new Date(new Date().getFullYear(), 0, 1);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
return new Date(new Date().getFullYear(), 11, 31);
}
}

67
src/widget/multidate/multidate.combo.js

@ -183,23 +183,23 @@ BI.MultiDateCombo = BI.inherit(BI.Single, {
type = v.type
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.changeIcon.setVisible(true);
this.comboWrapper.attr("items")[1].width = 30;
this.comboWrapper.resize();
@ -245,3 +245,36 @@ BI.extend(BI.MultiDateCombo, {
MULTI_DATE_WEEK_CARD: 5,
MULTI_DATE_DAY_CARD: 6
});
BI.extend(BI.MultiDateCombo, {
DATE_TYPE: {
MULTI_DATE_YEAR_PREV: 1,
MULTI_DATE_YEAR_AFTER: 2,
MULTI_DATE_YEAR_BEGIN: 3,
MULTI_DATE_YEAR_END: 4,
MULTI_DATE_MONTH_PREV: 5,
MULTI_DATE_MONTH_AFTER: 6,
MULTI_DATE_MONTH_BEGIN: 7,
MULTI_DATE_MONTH_END: 8,
MULTI_DATE_QUARTER_PREV: 9,
MULTI_DATE_QUARTER_AFTER: 10,
MULTI_DATE_QUARTER_BEGIN: 11,
MULTI_DATE_QUARTER_END: 12,
MULTI_DATE_WEEK_PREV: 13,
MULTI_DATE_WEEK_AFTER: 14,
MULTI_DATE_DAY_PREV: 15,
MULTI_DATE_DAY_AFTER: 16,
MULTI_DATE_DAY_TODAY: 17,
MULTI_DATE_PARAM: 18,
MULTI_DATE_CALENDAR: 19,
YEAR_QUARTER: 20,
YEAR_MONTH: 21,
YEAR_WEEK: 22,
YEAR_DAY: 23,
MONTH_WEEK: 24,
MONTH_DAY: 25,
YEAR: 26,
SAME_PERIOD: 27,
LAST_SAME_PERIOD: 28
}
});

8
src/widget/multidate/multidate.day.js

@ -21,22 +21,22 @@ BI.DayCard = BI.inherit(BI.MultiDateCard, {
isEditorExist: true,
selected: true,
text: BI.i18nText("BI-Multi_Date_Day_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Day_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY,
text: BI.i18nText("BI-Multi_Date_Today")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
}
});
BI.DayCard.EVENT_CHANGE = "EVENT_CHANGE";

10
src/widget/multidate/multidate.month.js

@ -19,28 +19,28 @@ BI.MonthCard = BI.inherit(BI.MultiDateCard, {
return [{
selected: true,
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV,
text: BI.i18nText("BI-Multi_Date_Month_Prev")
},
{
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
text: BI.i18nText("BI-Multi_Date_Month_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_End")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV;
}
});
BI.MonthCard.EVENT_CHANGE = "EVENT_CHANGE";

56
src/widget/multidate/multidate.popup.js

@ -219,52 +219,52 @@ BI.MultiDatePopup = BI.inherit(BI.Widget, {
var self = this, date;
var type, value;
if (BI.isNotNull(v)) {
type = v.type || BICst.DATE_TYPE.MULTI_DATE_CALENDAR;
type = v.type || BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_CALENDAR;
value = v.value;
if (BI.isNull(value)) {
value = v;
}
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BICst.MULTI_DATE_YEAR_CARD);
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_YEAR_CARD);
this.year.setValue({type: type, value: value});
this.cur = BICst.MULTI_DATE_YEAR_CARD;
this.cur = BI.MultiDateCombo.MULTI_DATE_YEAR_CARD;
self._setInnerValue(this.year);
break;
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BICst.MULTI_DATE_QUARTER_CARD);
this.cur = BICst.MULTI_DATE_QUARTER_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD;
this.quarter.setValue({type: type, value: value});
self._setInnerValue(this.quarter);
break;
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BICst.MULTI_DATE_MONTH_CARD);
this.cur = BICst.MULTI_DATE_MONTH_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_MONTH_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_MONTH_CARD;
this.month.setValue({type: type, value: value});
self._setInnerValue(this.month);
break;
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BICst.MULTI_DATE_WEEK_CARD);
this.cur = BICst.MULTI_DATE_WEEK_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_WEEK_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_WEEK_CARD;
this.week.setValue({type: type, value: value});
self._setInnerValue(this.week);
break;
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BICst.MULTI_DATE_DAY_CARD);
this.cur = BICst.MULTI_DATE_DAY_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_DAY_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_DAY_CARD;
this.day.setValue({type: type, value: value});
self._setInnerValue(this.day);
break;

10
src/widget/multidate/multidate.quarter.js

@ -19,29 +19,29 @@ BI.QuarterCard = BI.inherit(BI.MultiDateCard, {
dateConfig: function () {
return [{
selected: true,
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Prev")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
}
});
BI.QuarterCard.EVENT_CHANGE = "EVENT_CHANGE";

6
src/widget/multidate/multidate.week.js

@ -20,17 +20,17 @@ BI.WeekCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV;
}
});
BI.WeekCard.EVENT_CHANGE = "EVENT_CHANGE";

10
src/widget/multidate/multidate.year.js

@ -20,27 +20,27 @@ BI.YearCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
text: BI.i18nText("BI-Multi_Date_Year_Begin")
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END,
text: BI.i18nText("BI-Multi_Date_Year_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV;
}
});
BI.YearCard.EVENT_CHANGE = "EVENT_CHANGE";

Loading…
Cancel
Save