zcf 8 years ago
parent
commit
da08ae12ef
  1. 34
      Gruntfile.js
  2. 4
      README.md
  3. 35
      bi/base.css
  4. 138
      bi/base.js
  5. 284
      bi/case.js
  6. 90
      bi/core.css
  7. 101
      bi/core.js
  8. 26
      bi/widget.css
  9. 30
      bi/widget.js
  10. 22
      demo.html
  11. 8
      demo/js/config/widget.js
  12. 16
      demo/js/north.js
  13. 214
      demo/js/widget/table/demo.page_table.js
  14. 159
      demo/js/widget/table/demo.sequence_table.js
  15. 0
      docs/background/loading.gif
  16. 35
      docs/base.css
  17. 138
      docs/base.js
  18. 261
      docs/case.js
  19. 90
      docs/core.css
  20. 103
      docs/core.js
  21. 0
      docs/cursor/cursor_drag_hand.cur
  22. 0
      docs/cursor/cursor_hand.cur
  23. 0
      docs/cursor/cursor_left_right.cur
  24. 0
      docs/font/iconfont.eot
  25. 0
      docs/font/iconfont.svg
  26. 0
      docs/font/iconfont.ttf
  27. 0
      docs/font/iconfont.woff
  28. 0
      docs/icon/bubble_no_projector.png
  29. 0
      docs/icon/bubble_projector.png
  30. 0
      docs/icon/business_package.png
  31. 0
      docs/icon/business_package_add.png
  32. 0
      docs/icon/business_package_add_disable.png
  33. 0
      docs/icon/chartsetting/address_marker_big.png
  34. 0
      docs/icon/chartsetting/address_marker_small.png
  35. 0
      docs/icon/chartsetting/icon_bubble_3d.png
  36. 0
      docs/icon/chartsetting/icon_bubble_normal.png
  37. 0
      docs/icon/chartsetting/icon_dashboard_1.png
  38. 0
      docs/icon/chartsetting/icon_dashboard_2.png
  39. 0
      docs/icon/chartsetting/icon_dashboard_3.png
  40. 0
      docs/icon/chartsetting/icon_dashboard_4.png
  41. 0
      docs/icon/chartsetting/icon_dashboard_5.png
  42. 0
      docs/icon/chartsetting/icon_dashboard_6.png
  43. 0
      docs/icon/chartsetting/icon_dashboard_7.png
  44. 0
      docs/icon/chartsetting/icon_gradual_highlight.png
  45. 0
      docs/icon/chartsetting/icon_multi_pie_gradient_darker.png
  46. 0
      docs/icon/chartsetting/icon_multi_pie_gradient_lighter.png
  47. 0
      docs/icon/chartsetting/icon_style_3d.png
  48. 0
      docs/icon/chartsetting/icon_style_acc_radar_circle.png
  49. 0
      docs/icon/chartsetting/icon_style_acc_radar_polygon.png
  50. 0
      docs/icon/chartsetting/icon_style_area_broken.png
  51. 0
      docs/icon/chartsetting/icon_style_area_curve.png
  52. 0
      docs/icon/chartsetting/icon_style_area_vertical.png
  53. 0
      docs/icon/chartsetting/icon_style_gradual.png
  54. 0
      docs/icon/chartsetting/icon_style_line_broken.png
  55. 0
      docs/icon/chartsetting/icon_style_line_curve.png
  56. 0
      docs/icon/chartsetting/icon_style_line_vertical.png
  57. 0
      docs/icon/chartsetting/icon_style_normal.png
  58. 0
      docs/icon/chartsetting/icon_style_pie_equal_arc_rose.png
  59. 0
      docs/icon/chartsetting/icon_style_pie_normal.png
  60. 0
      docs/icon/chartsetting/icon_style_pie_not_equal_arc_rose.png
  61. 0
      docs/icon/chartsetting/icon_style_radar_circle.png
  62. 0
      docs/icon/chartsetting/icon_style_radar_polygon.png
  63. 0
      docs/icon/chartsetting/icon_style_transparent.png
  64. 0
      docs/icon/check-box-active.png
  65. 0
      docs/icon/check-box-disable.png
  66. 0
      docs/icon/check-box-disable2.png
  67. 0
      docs/icon/check-box-normal.png
  68. 0
      docs/icon/dots.png
  69. 0
      docs/icon/drag/icon_area.png
  70. 0
      docs/icon/drag/icon_area_a.png
  71. 0
      docs/icon/drag/icon_area_c.png
  72. 0
      docs/icon/drag/icon_area_pa.png
  73. 0
      docs/icon/drag/icon_area_r.png
  74. 0
      docs/icon/drag/icon_axis.png
  75. 0
      docs/icon/drag/icon_axis_a.png
  76. 0
      docs/icon/drag/icon_axis_c.png
  77. 0
      docs/icon/drag/icon_axis_f.png
  78. 0
      docs/icon/drag/icon_axis_pa.png
  79. 0
      docs/icon/drag/icon_bar.png
  80. 0
      docs/icon/drag/icon_bar_a.png
  81. 0
      docs/icon/drag/icon_bar_c.png
  82. 0
      docs/icon/drag/icon_bubble.png
  83. 0
      docs/icon/drag/icon_bubble_f.png
  84. 0
      docs/icon/drag/icon_combine.png
  85. 0
      docs/icon/drag/icon_combine_m.png
  86. 0
      docs/icon/drag/icon_complex.png
  87. 0
      docs/icon/drag/icon_cross.png
  88. 0
      docs/icon/drag/icon_dashboard.png
  89. 0
      docs/icon/drag/icon_donut.png
  90. 0
      docs/icon/drag/icon_funnel.png
  91. 0
      docs/icon/drag/icon_group.png
  92. 0
      docs/icon/drag/icon_line.png
  93. 0
      docs/icon/drag/icon_map_c.png
  94. 0
      docs/icon/drag/icon_map_g.png
  95. 0
      docs/icon/drag/icon_map_gis.png
  96. 0
      docs/icon/drag/icon_map_s.png
  97. 0
      docs/icon/drag/icon_multi_pie.png
  98. 0
      docs/icon/drag/icon_multi_pie_lighter.png
  99. 0
      docs/icon/drag/icon_multi_pie_thicker.png
  100. 0
      docs/icon/drag/icon_pie.png
  101. Some files were not shown because too many files have changed in this diff Show More

34
Gruntfile.js

@ -28,7 +28,7 @@ module.exports = function (grunt) {
'src/data/**/*.js', 'src/data/**/*.js',
'src/config.js' 'src/config.js'
], ],
dest: 'dist/core.js' dest: 'docs/core.js'
}, },
biCoreJs: { biCoreJs: {
src: [ src: [
@ -83,7 +83,7 @@ module.exports = function (grunt) {
'src/base/tree/parttree.js', 'src/base/tree/parttree.js',
'src/base/**/*.js' 'src/base/**/*.js'
], ],
dest: 'dist/base.js' dest: 'docs/base.js'
}, },
//实现好的一些基础实例 //实现好的一些基础实例
caseJs: { caseJs: {
@ -91,7 +91,7 @@ module.exports = function (grunt) {
'src/case/combo/popup.bubble.js', 'src/case/combo/popup.bubble.js',
'src/case/**/*.js' 'src/case/**/*.js'
], ],
dest: 'dist/case.js' dest: 'docs/case.js'
}, },
widgetJs: { widgetJs: {
src: [ src: [
@ -100,32 +100,32 @@ module.exports = function (grunt) {
'src/widget/**/*.js', 'src/widget/**/*.js',
'src/component/**/*.js' 'src/component/**/*.js'
], ],
dest: "dist/widget.js" dest: "docs/widget.js"
}, },
coreCss: { coreCss: {
src: ['src/css/core/**/*.css'], src: ['src/css/core/**/*.css', 'src/css/theme/**/*.css'],
dest: 'dist/core.css' dest: 'docs/core.css'
}, },
baseCss: { baseCss: {
src: ['src/css/base/**/*.css'], src: ['src/css/base/**/*.css'],
dest: 'dist/base.css' dest: 'docs/base.css'
}, },
widgetCss: { widgetCss: {
src: ['src/css/widget/**/*.css'], src: ['src/css/widget/**/*.css'],
dest: 'dist/widget.css' dest: 'docs/widget.css'
}, },
resourceCss: { resourceCss: {
src: ['src/css/resource/**/*.css'], src: ['src/css/resource/**/*.css'],
dest: 'dist/resource.css' dest: 'docs/resource.css'
}, },
demoJs: { demoJs: {
src: ['demo/version.js', 'demo/app.js', 'demo/js/**/*.js', 'demo/config.js'], src: ['demo/version.js', 'demo/app.js', 'demo/js/**/*.js', 'demo/config.js'],
dest: 'demo/dist/demo.js' dest: 'docs/demo.js'
}, },
demoCss: { demoCss: {
src: ['demo/css/**/*.css'], src: ['demo/css/**/*.css'],
dest: 'demo/dist/demo.css' dest: 'docs/demo.css'
}, },
bi_coreJs: { bi_coreJs: {
@ -202,7 +202,7 @@ module.exports = function (grunt) {
dest: "bi/widget.js" dest: "bi/widget.js"
}, },
bi_coreCss: { bi_coreCss: {
src: ['src/css/core/**/*.css'], src: ['src/css/core/**/*.css', 'src/css/theme/**/*.css'],
dest: 'bi/core.css' dest: 'bi/core.css'
}, },
bi_baseCss: { bi_baseCss: {
@ -237,9 +237,9 @@ module.exports = function (grunt) {
}, },
dist: { dist: {
files: { files: {
'dist/core.min.js': ['<%= concat.coreJs.dest %>'], 'docs/core.min.js': ['<%= concat.coreJs.dest %>'],
'dist/base.min.js': ['<%= concat.baseJs.dest %>'], 'docs/base.min.js': ['<%= concat.baseJs.dest %>'],
'dist/case.min.js': ['<%= concat.caseJs.dest %>'] 'docs/case.min.js': ['<%= concat.caseJs.dest %>']
} }
} }
}, },
@ -250,14 +250,14 @@ module.exports = function (grunt) {
src: '<%= concat.coreCss.dest %>', src: '<%= concat.coreCss.dest %>',
dest: 'dist/core.min.css' dest: 'docs/core.min.css'
}, },
baseCss: { baseCss: {
src: '<%= concat.baseCss.dest %>', src: '<%= concat.baseCss.dest %>',
dest: 'dist/base.min.css' dest: 'docs/base.min.css'
} }

4
README.md

@ -1 +1,5 @@
FineUI FineUI
主页地址:[https://fanruan.github.io/fineui](https://fanruan.github.io/fineui)
帆软BI和帆软报表所使用的前端UI框架。

35
bi/base.css

@ -4,17 +4,6 @@
/****添加计算宽度的--运算符直接需要space****/ /****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-combine-chart .bi-linkage-list {
background-color: #ffffff;
border: 1px solid #eaeaea;
z-index: 1000000000;
}
.bi-combine-chart .bi-linkage-list .bi-linkage-list-item:hover {
background-color: #f4f4f4;
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-color-chooser-popup .color-chooser-popup-title { .bi-color-chooser-popup .color-chooser-popup-title {
background: #f4f4f4; background: #f4f4f4;
border-bottom: 1px solid #d4dadd; border-bottom: 1px solid #d4dadd;
@ -949,13 +938,6 @@ li.CodeMirror-hint-active {
/****添加计算宽度的--运算符直接需要space****/ /****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-record-editor .record-editor-text {
font-size: 12px;
background: #f4f4f4;
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-shelter-editor .shelter-editor-text { .bi-shelter-editor .shelter-editor-text {
font-size: 12px; font-size: 12px;
} }
@ -1021,9 +1003,6 @@ li.CodeMirror-hint-active {
border: none; border: none;
color: #e85050 !important; color: #e85050 !important;
} }
.bi-input.disabled {
background-color: white;
}
/****添加计算宽度的--运算符直接需要space****/ /****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
@ -1206,6 +1185,7 @@ li.CodeMirror-hint-active {
transition-timing-function: ease; transition-timing-function: ease;
user-select: none; user-select: none;
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#19000000,endColorstr=#19000000);
border-radius: 5px; border-radius: 5px;
} }
.scrollbar-layout-main-vertical { .scrollbar-layout-main-vertical {
@ -1225,6 +1205,7 @@ li.CodeMirror-hint-active {
left: 0; left: 0;
transition-property: background-color; transition-property: background-color;
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#19000000,endColorstr=#19000000);
} }
/* Touching the scroll-track directly makes the scroll-track bolder */ /* Touching the scroll-track directly makes the scroll-track bolder */
.scrollbar-layout-main-horizontal.public-scrollbar-main-active, .scrollbar-layout-main-horizontal.public-scrollbar-main-active,
@ -1279,11 +1260,19 @@ li.CodeMirror-hint-active {
.public-scrollbar-face:after { .public-scrollbar-face:after {
background-color: #c2c2c2; background-color: #c2c2c2;
} }
.bi-theme-dark .public-scrollbar-face:after {
background-color: #7d7d7d;
}
.public-scrollbar-main:hover .public-scrollbar-face:after, .public-scrollbar-main:hover .public-scrollbar-face:after,
.public-scrollbar-main-active .public-scrollbar-face:after, .public-scrollbar-main-active .public-scrollbar-face:after,
.public-scrollbar-faceActive:after { .public-scrollbar-faceActive:after {
background-color: #7d7d7d; background-color: #7d7d7d;
} }
.bi-theme-dark .public-scrollbar-main:hover .public-scrollbar-face:after,
.bi-theme-dark .public-scrollbar-main-active .public-scrollbar-face:after,
.bi-theme-dark .public-scrollbar-faceActive:after {
background-color: #c2c2c2;
}
.horizontal-scrollbar { .horizontal-scrollbar {
bottom: 0; bottom: 0;
position: absolute; position: absolute;
@ -1437,3 +1426,7 @@ li.CodeMirror-hint-active {
.bi-list-view .list-view-toolbar > .first-element { .bi-list-view .list-view-toolbar > .first-element {
border-left: none; border-left: none;
} }
.bi-theme-dark .bi-list-view .list-view-outer {
color: #b2b2b2;
background: #191a2c;
}

138
bi/base.js

@ -42,9 +42,6 @@
} else { } else {
this.onmousewheel = handler; this.onmousewheel = handler;
} }
// Store the line height and page height for this particular element
$.data(this, 'mousewheel-line-height', special.getLineHeight(this));
$.data(this, 'mousewheel-page-height', special.getPageHeight(this));
}, },
teardown: function() { teardown: function() {
@ -55,22 +52,6 @@
} else { } else {
this.onmousewheel = null; this.onmousewheel = null;
} }
// Clean up the data we added to the element
$.removeData(this, 'mousewheel-line-height');
$.removeData(this, 'mousewheel-page-height');
},
getLineHeight: function(elem) {
var $elem = $(elem),
$parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
if (!$parent.length) {
$parent = $('body');
}
return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
},
getPageHeight: function(elem) {
return $(elem).height();
}, },
settings: { settings: {
@ -136,12 +117,12 @@
// * deltaMode 1 is by lines // * deltaMode 1 is by lines
// * deltaMode 2 is by pages // * deltaMode 2 is by pages
if ( orgEvent.deltaMode === 1 ) { if ( orgEvent.deltaMode === 1 ) {
var lineHeight = $.data(this, 'mousewheel-line-height'); var lineHeight = 40;
delta *= lineHeight; delta *= lineHeight;
deltaY *= lineHeight; deltaY *= lineHeight;
deltaX *= lineHeight; deltaX *= lineHeight;
} else if ( orgEvent.deltaMode === 2 ) { } else if ( orgEvent.deltaMode === 2 ) {
var pageHeight = $.data(this, 'mousewheel-page-height'); var pageHeight = 800;
delta *= pageHeight; delta *= pageHeight;
deltaY *= pageHeight; deltaY *= pageHeight;
deltaX *= pageHeight; deltaX *= pageHeight;
@ -1489,10 +1470,6 @@ BI.TreeView = BI.inherit(BI.Pane, {
}, },
_init: function () { _init: function () {
BI.TreeView.superclass._init.apply(this, arguments); BI.TreeView.superclass._init.apply(this, arguments);
this._stop = false; this._stop = false;
this.container = BI.createWidget(); this.container = BI.createWidget();
@ -1969,10 +1946,10 @@ BI.TreeView = BI.inherit(BI.Pane, {
} }
}); });
BI.extend(BI.TreeView, { BI.extend(BI.TreeView, {
REQ_TYPE_INIT_DATA: 1, REQ_TYPE_INIT_DATA: 0,
REQ_TYPE_ADJUST_DATA: 2, REQ_TYPE_ADJUST_DATA: 1,
REQ_TYPE_CALCULATE_SELECT_DATA: 3, REQ_TYPE_CALCULATE_SELECT_DATA: 2,
REQ_TYPE_SELECTED_DATA: 4 REQ_TYPE_SELECTED_DATA: 3
}); });
BI.TreeView.EVENT_CHANGE = "EVENT_CHANGE"; BI.TreeView.EVENT_CHANGE = "EVENT_CHANGE";
@ -3920,12 +3897,9 @@ BI.Navigation = BI.inherit(BI.Widget, {
logic: { logic: {
dynamic: false dynamic: false
}, },
defaultShowIndex: 0, single: false,
tab: { defaultShowIndex: false,
type: "bi.button_group", tab: false,
items: [],
layouts: []
},
cardCreator: function (v) { cardCreator: function (v) {
return BI.createWidget(); return BI.createWidget();
}, },
@ -3963,7 +3937,7 @@ BI.Navigation = BI.inherit(BI.Widget, {
}, },
afterCardCreated: BI.bind(this.afterCardCreated, this), afterCardCreated: BI.bind(this.afterCardCreated, this),
afterCardShow: BI.bind(this.afterCardShow, this) afterCardShow: BI.bind(this.afterCardShow, this)
}) });
}, },
mounted: function () { mounted: function () {
@ -3973,6 +3947,18 @@ BI.Navigation = BI.inherit(BI.Widget, {
} }
}, },
_deleteOtherCards: function (currCardName) {
var self = this, o = this.options;
if (o.single === true) {
BI.each(this.cardMap, function (name, card) {
if (name !== (currCardName + "")) {
self.layout.deleteCardByName(name);
delete self.cardMap[name];
}
});
}
},
afterCardCreated: function (v) { afterCardCreated: function (v) {
var self = this; var self = this;
this.cardMap[v].on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { this.cardMap[v].on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {
@ -3980,12 +3966,13 @@ BI.Navigation = BI.inherit(BI.Widget, {
if (type === BI.Events.CLICK) { if (type === BI.Events.CLICK) {
self.fireEvent(BI.Navigation.EVENT_CHANGE, obj); self.fireEvent(BI.Navigation.EVENT_CHANGE, obj);
} }
}) });
this.options.afterCardCreated.apply(this, arguments); this.options.afterCardCreated.apply(this, arguments);
}, },
afterCardShow: function (v) { afterCardShow: function (v) {
this.showIndex = v; this.showIndex = v;
this._deleteOtherCards(v);
this.options.afterCardShow.apply(this, arguments); this.options.afterCardShow.apply(this, arguments);
}, },
@ -3996,16 +3983,23 @@ BI.Navigation = BI.inherit(BI.Widget, {
} }
}, },
setSelect: function (v) { _assertCard: function (v) {
this.showIndex = v;
if (!this.layout.isCardExisted(v)) { if (!this.layout.isCardExisted(v)) {
var card = this.options.cardCreator(v); var card = this.options.cardCreator(v);
this.cardMap[v] = card; this.cardMap[v] = card;
this.layout.addCardByName(v, card); this.layout.addCardByName(v, card);
this.afterCardCreated(v); this.afterCardCreated(v);
} }
},
setSelect: function (v) {
this._assertCard();
this.layout.showCardByName(v); this.layout.showCardByName(v);
this._deleteOtherCards(v);
if (this.showIndex !== v) {
this.showIndex = v;
BI.nextTick(BI.bind(this.afterCardShow, this, v)); BI.nextTick(BI.bind(this.afterCardShow, this, v));
}
}, },
getSelect: function () { getSelect: function () {
@ -4636,6 +4630,7 @@ BI.Tab = BI.inherit(BI.Widget, {
return BI.extend(BI.Tab.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.Tab.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-tab", baseCls: "bi-tab",
direction: "top",//top, bottom, left, right, custom direction: "top",//top, bottom, left, right, custom
single: false, //是不是单页面
logic: { logic: {
dynamic: false dynamic: false
}, },
@ -4675,6 +4670,7 @@ BI.Tab = BI.inherit(BI.Widget, {
return card; return card;
}, },
afterCardShow: function (v) { afterCardShow: function (v) {
self._deleteOtherCards(v);
self.curr = v; self.curr = v;
} }
}); });
@ -4683,6 +4679,18 @@ BI.Tab = BI.inherit(BI.Widget, {
}); });
}, },
_deleteOtherCards: function (currCardName) {
var self = this, o = this.options;
if (o.single === true) {
BI.each(this.cardMap, function (name, card) {
if (name !== (currCardName + "")) {
self.layout.deleteCardByName(name);
delete self.cardMap[name];
}
});
}
},
_assertCard: function (v) { _assertCard: function (v) {
if (!this.layout.isCardExisted(v)) { if (!this.layout.isCardExisted(v)) {
var card = this.options.cardCreator(v); var card = this.options.cardCreator(v);
@ -4702,6 +4710,7 @@ BI.Tab = BI.inherit(BI.Widget, {
this.tab && this.tab.setValue(v); this.tab && this.tab.setValue(v);
this._assertCard(v); this._assertCard(v);
this.layout.showCardByName(v); this.layout.showCardByName(v);
this._deleteOtherCards(v);
if (this.curr !== v) { if (this.curr !== v) {
this.curr = v; this.curr = v;
} }
@ -17951,6 +17960,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
setValue: function (value) { setValue: function (value) {
this.content.element.val(value); this.content.element.val(value);
this._checkWaterMark();
}, },
setStyle: function (style) { setStyle: function (style) {
@ -28297,8 +28307,7 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
}); });
}, },
_init: function () { render: function () {
BI.CollectionTable.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this._width = 0; this._width = 0;
this._height = 0; this._height = 0;
@ -28434,6 +28443,10 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
}); });
this._width = o.width - BI.GridTableScrollbar.SIZE; this._width = o.width - BI.GridTableScrollbar.SIZE;
this._height = o.height - BI.GridTableScrollbar.SIZE; this._height = o.height - BI.GridTableScrollbar.SIZE;
},
mounted: function () {
var o = this.options;
if (o.items.length > 0 || o.header.length < 0) { if (o.items.length > 0 || o.header.length < 0) {
this._digest(); this._digest();
this._populate(); this._populate();
@ -28832,8 +28845,8 @@ BI.QuickCollectionTable = BI.inherit(BI.CollectionTable, {
}); });
}, },
_init: function () { render: function () {
BI.QuickCollectionTable.superclass._init.apply(this, arguments); BI.QuickCollectionTable.superclass.render.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this.topLeftCollection.setOverflowX(false); this.topLeftCollection.setOverflowX(false);
this.topLeftCollection.setOverflowY(false); this.topLeftCollection.setOverflowY(false);
@ -28843,6 +28856,11 @@ BI.QuickCollectionTable = BI.inherit(BI.CollectionTable, {
this.bottomLeftCollection.setOverflowY(false); this.bottomLeftCollection.setOverflowY(false);
this.bottomRightCollection.setOverflowX(false); this.bottomRightCollection.setOverflowX(false);
this.bottomRightCollection.setOverflowY(false); this.bottomRightCollection.setOverflowY(false);
},
mounted: function () {
BI.QuickCollectionTable.superclass.mounted.apply(this, arguments);
var self = this;
this._leftWheelHandler = new BI.WheelHandler( this._leftWheelHandler = new BI.WheelHandler(
BI.bind(this._onWheelY, this), BI.bind(this._onWheelY, this),
BI.bind(this._shouldHandleX, this), BI.bind(this._shouldHandleX, this),
@ -29037,8 +29055,7 @@ BI.GridTable = BI.inherit(BI.Widget, {
}); });
}, },
_init: function () { render: function () {
BI.GridTable.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this._width = 0; this._width = 0;
this._height = 0; this._height = 0;
@ -29181,6 +29198,10 @@ BI.GridTable = BI.inherit(BI.Widget, {
this._height = o.height - BI.GridTableScrollbar.SIZE; this._height = o.height - BI.GridTableScrollbar.SIZE;
this.header = this._getHeader(); this.header = this._getHeader();
this.items = this._getItems(); this.items = this._getItems();
},
mounted: function () {
var o = this.options;
if (o.items.length > 0) { if (o.items.length > 0) {
this._populate(); this._populate();
} }
@ -29499,8 +29520,8 @@ BI.QuickGridTable = BI.inherit(BI.GridTable, {
}); });
}, },
_init: function () { render: function () {
BI.QuickGridTable.superclass._init.apply(this, arguments); BI.QuickGridTable.superclass.render.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this.topLeftGrid.setOverflowX(false); this.topLeftGrid.setOverflowX(false);
this.topLeftGrid.setOverflowY(false); this.topLeftGrid.setOverflowY(false);
@ -29510,6 +29531,11 @@ BI.QuickGridTable = BI.inherit(BI.GridTable, {
this.bottomLeftGrid.setOverflowY(false); this.bottomLeftGrid.setOverflowY(false);
this.bottomRightGrid.setOverflowX(false); this.bottomRightGrid.setOverflowX(false);
this.bottomRightGrid.setOverflowY(false); this.bottomRightGrid.setOverflowY(false);
},
mounted: function () {
BI.QuickGridTable.superclass.mounted.apply(this, arguments);
var self = this;
this._leftWheelHandler = new BI.WheelHandler( this._leftWheelHandler = new BI.WheelHandler(
BI.bind(this._onWheelY, this), BI.bind(this._onWheelY, this),
BI.bind(this._shouldHandleX, this), BI.bind(this._shouldHandleX, this),
@ -29679,8 +29705,7 @@ BI.GridTableScrollbar = BI.inherit(BI.Widget, {
}) })
}, },
_init: function () { render: function () {
BI.GridTableScrollbar.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this.focused = false; this.focused = false;
this.isDragging = false; this.isDragging = false;
@ -29698,6 +29723,10 @@ BI.GridTableScrollbar = BI.inherit(BI.Widget, {
top: 0 top: 0
}] }]
}); });
},
mounted: function () {
var self = this, o = this.options;
var onWheel = o.orientation === 'horizontal' ? this._onWheelX : this._onWheelY; var onWheel = o.orientation === 'horizontal' ? this._onWheelX : this._onWheelY;
this._wheelHandler = new BI.WheelHandler( this._wheelHandler = new BI.WheelHandler(
BI.bind(onWheel, this), BI.bind(onWheel, this),
@ -30052,6 +30081,12 @@ BI.GridTableHorizontalScrollbar = BI.inherit(BI.Widget, {
populate: function () { populate: function () {
this.scrollbar.populate(); this.scrollbar.populate();
var o = this.options;
if (o.size < 1 || o.contentSize <= o.size) {
this.setVisible(false);
return;
}
this.setVisible(true);
} }
}); });
BI.GridTableHorizontalScrollbar.EVENT_SCROLL = "EVENT_SCROLL"; BI.GridTableHorizontalScrollbar.EVENT_SCROLL = "EVENT_SCROLL";
@ -30973,11 +31008,9 @@ BI.Table = BI.inherit(BI.Widget, {
}; };
this._initNormalScroll(); this._initNormalScroll();
BI.Resizers.add(this.getName(), function (e) { BI.ResizeDetector.addResizeListener(this, function () {
if (self.element.is(":visible") && BI.isWindow(e.target)) {
self._resize(); self._resize();
self.fireEvent(BI.Table.EVENT_TABLE_RESIZE); self.fireEvent(BI.Table.EVENT_TABLE_RESIZE);
}
}); });
BI.nextTick(function () { BI.nextTick(function () {
if (self.element.is(":visible")) { if (self.element.is(":visible")) {
@ -32003,7 +32036,6 @@ BI.Table = BI.inherit(BI.Widget, {
}, },
empty: function () { empty: function () {
BI.Resizers.remove(this.getName());
BI.Table.superclass.empty.apply(this, arguments); BI.Table.superclass.empty.apply(this, arguments);
}, },

284
bi/case.js

@ -5225,232 +5225,6 @@ BI.ClearEditor.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.ClearEditor.EVENT_REMOVE = "EVENT_REMOVE"; BI.ClearEditor.EVENT_REMOVE = "EVENT_REMOVE";
BI.ClearEditor.EVENT_EMPTY = "EVENT_EMPTY"; BI.ClearEditor.EVENT_EMPTY = "EVENT_EMPTY";
BI.shortcut("bi.clear_editor", BI.ClearEditor);/** BI.shortcut("bi.clear_editor", BI.ClearEditor);/**
* guy
* 记录内容的输入框
* @class BI.RecordEditor
* @extends BI.Single
*/
BI.RecordEditor = BI.inherit(BI.Single, {
_defaultConfig: function () {
var conf = BI.RecordEditor.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-record-editor",
hgap: 4,
vgap: 2,
lgap: 0,
rgap: 0,
tgap: 0,
bgap: 0,
validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn,
allowBlank: true,
watermark: "",
errorText: "",
height: 30
})
},
_init: function () {
BI.RecordEditor.superclass._init.apply(this, arguments);
this.contents = [];
var self = this, o = this.options;
this.editor = BI.createWidget({
type: "bi.editor",
height: o.height,
hgap: o.hgap,
vgap: o.vgap,
lgap: o.lgap,
rgap: o.rgap,
tgap: o.tgap,
bgap: o.bgap,
value: o.value,
validationChecker: o.validationChecker,
quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank,
watermark: o.watermark,
errorText: o.errorText
});
this.textContainer = BI.createWidget({
type: "bi.vertical_adapt",
hgap: 2,
height: o.height
});
this.editor.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
});
this.editor.on(BI.Editor.EVENT_FOCUS, function () {
self._checkInputState();
self.fireEvent(BI.RecordEditor.EVENT_FOCUS, arguments);
});
this.editor.on(BI.Editor.EVENT_BLUR, function () {
self._checkInputState();
self.fireEvent(BI.RecordEditor.EVENT_BLUR, arguments);
});
this.editor.on(BI.Editor.EVENT_CLICK, function () {
self.fireEvent(BI.RecordEditor.EVENT_CLICK, arguments);
});
this.editor.on(BI.Editor.EVENT_CHANGE, function () {
self.fireEvent(BI.RecordEditor.EVENT_CHANGE, arguments);
});
this.editor.on(BI.Editor.EVENT_KEY_DOWN, function (v) {
self.fireEvent(BI.RecordEditor.EVENT_KEY_DOWN, arguments);
});
this.editor.on(BI.Editor.EVENT_VALID, function () {
self.fireEvent(BI.RecordEditor.EVENT_VALID, arguments);
});
this.editor.on(BI.Editor.EVENT_SPACE, function () {
self.fireEvent(BI.RecordEditor.EVENT_SPACE, arguments);
});
this.editor.on(BI.Editor.EVENT_CONFIRM, function () {
self.setState(self.getValue());
self.editor.isValid() && self.editor.setValue("");
self.fireEvent(BI.RecordEditor.EVENT_CONFIRM, arguments);
});
this.editor.on(BI.Editor.EVENT_START, function () {
self.fireEvent(BI.RecordEditor.EVENT_START, arguments);
});
this.editor.on(BI.Editor.EVENT_PAUSE, function () {
self.fireEvent(BI.RecordEditor.EVENT_PAUSE, arguments);
});
this.editor.on(BI.Editor.EVENT_STOP, function () {
self.fireEvent(BI.RecordEditor.EVENT_STOP, arguments);
});
this.editor.on(BI.Editor.EVENT_ENTER, function () {
self.fireEvent(BI.RecordEditor.EVENT_ENTER, arguments);
});
this.editor.on(BI.Editor.EVENT_BACKSPACE, function () {
self._checkInputState();
});
this.editor.on(BI.Editor.EVENT_REMOVE, function () {
if (!BI.isEmpty(self.contents)) {
self.contents.pop().destroy();
self.setValue(self.getValue());
self._adjustInputWidth();
}
});
this.editor.on(BI.Editor.EVENT_ERROR, function () {
self.fireEvent(BI.RecordEditor.EVENT_ERROR, arguments);
});
this.editor.on(BI.Editor.EVENT_RESTRICT, function () {
self.fireEvent(BI.RecordEditor.EVENT_RESTRICT, arguments);
});
this.editor.on(BI.Editor.EVENT_EMPTY, function () {
self.fireEvent(BI.RecordEditor.EVENT_EMPTY, arguments);
});
BI.createWidget({
type: "bi.inline",
element: this,
items: [this.textContainer, this.editor]
});
BI.ResizeDetector.addResizeListener(this, BI.bind(this._adjustInputWidth, this));
this._adjustInputWidth();
},
_adjustInputWidth: function () {
BI.nextTick(BI.bind(function () {
this.editor.element.css("width", this.element.width() - this.textContainer.element.outerWidth() - 10);
}, this));
},
_checkInputState: function () {
if (BI.isEmpty(this.contents)) {
this.editor.enableWarterMark();
} else {
this.editor.disableWarterMark();
}
},
focus: function () {
this.editor.focus();
},
blur: function () {
this.editor.blur();
},
isValid: function () {
return this.editor.isValid();
},
setErrorText: function (text) {
this.editor.setErrorText(text);
},
getErrorText: function () {
return this.editor.getErrorText();
},
isEditing: function () {
return this.editor.isEditing();
},
getLastValidValue: function () {
return this.editor.getLastValidValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
getValue: function () {
return this.editor.getValue();
},
getState: function () {
var values = BI.map(this.contents, function (i, lb) {
return lb.getText();
});
if (BI.isNotEmptyString(this.editor.getValue())) {
return values.concat([this.editor.getValue()]);
}
return values;
},
setState: function (v) {
BI.RecordEditor.superclass.setValue.apply(this, arguments);
v = BI.isArray(v) ? v : (v == "" ? [] : [v]);
var contents = this.contents = [];
BI.each(v, function (i, lb) {
contents.push(BI.createWidget({
type: "bi.label",
height: 25,
cls: "record-editor-text",
text: lb
}))
});
this.textContainer.empty();
this.textContainer.populate(contents);
this.editor.isValid() && this.editor.setValue("");
this._checkInputState();
this._adjustInputWidth();
},
destroy: function () {
BI.Resizers.remove(this.getName());
BI.RecordEditor.superclass.destroy.apply(this, arguments);
}
});
BI.RecordEditor.EVENT_CHANGE = "EVENT_CHANGE";
BI.RecordEditor.EVENT_FOCUS = "EVENT_FOCUS";
BI.RecordEditor.EVENT_BLUR = "EVENT_BLUR";
BI.RecordEditor.EVENT_CLICK = "EVENT_CLICK";
BI.RecordEditor.EVENT_KEY_DOWN = "EVENT_KEY_DOWN";
BI.RecordEditor.EVENT_START = "EVENT_START";
BI.RecordEditor.EVENT_PAUSE = "EVENT_PAUSE";
BI.RecordEditor.EVENT_STOP = "EVENT_STOP";
BI.RecordEditor.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.RecordEditor.EVENT_VALID = "EVENT_VALID";
BI.RecordEditor.EVENT_ERROR = "EVENT_ERROR";
BI.RecordEditor.EVENT_ENTER = "EVENT_ENTER";
BI.RecordEditor.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.RecordEditor.EVENT_SPACE = "EVENT_SPACE";
BI.RecordEditor.EVENT_EMPTY = "EVENT_EMPTY";
BI.shortcut("bi.record_editor", BI.RecordEditor);/**
* Created by roy on 15/9/14. * Created by roy on 15/9/14.
*/ */
BI.SearchEditor = BI.inherit(BI.Widget, { BI.SearchEditor = BI.inherit(BI.Widget, {
@ -8614,6 +8388,8 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
}) })
}, },
alwaysShowPager: true,
setAllPages: function (v) { setAllPages: function (v) {
this.allPages.setText("/" + v); this.allPages.setText("/" + v);
this.allPages.setTitle(v); this.allPages.setTitle(v);
@ -8648,10 +8424,6 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
this.pager.setVisible(b); this.pager.setVisible(b);
}, },
getAliasWidth: function () {
return this.options.width - 100;
},
populate: function () { populate: function () {
this.pager.populate(); this.pager.populate();
} }
@ -8908,6 +8680,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.setVPagerVisible(true); this.setVPagerVisible(true);
vShow = true; vShow = true;
} }
this.setVisible(hShow || vShow);
var num = [74, 111, -9, 28]; var num = [74, 111, -9, 28];
var items = this.layout.attr("items"); var items = this.layout.attr("items");
@ -9362,10 +9135,6 @@ BI.AdaptiveTable = BI.inherit(BI.Widget, {
regionColumnSize: [], regionColumnSize: [],
headerCellStyleGetter: BI.emptyFn,
summaryCellStyleGetter: BI.emptyFn,
sequenceCellStyleGetter: BI.emptyFn,
header: [], header: [],
items: [], //二维数组 items: [], //二维数组
@ -9402,10 +9171,6 @@ BI.AdaptiveTable = BI.inherit(BI.Widget, {
regionColumnSize: data.regionColumnSize, regionColumnSize: data.regionColumnSize,
headerCellStyleGetter: o.headerCellStyleGetter,
summaryCellStyleGetter: o.summaryCellStyleGetter,
sequenceCellStyleGetter: o.sequenceCellStyleGetter,
header: o.header, header: o.header,
items: o.items, items: o.items,
//交叉表头 //交叉表头
@ -9587,6 +9352,8 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
mergeRule: BI.emptyFn, mergeRule: BI.emptyFn,
columnSize: [], columnSize: [],
minColumnSize: [],
maxColumnSize: [],
headerRowSize: 25, headerRowSize: 25,
footerRowSize: 25, footerRowSize: 25,
rowSize: 25, rowSize: 25,
@ -9770,9 +9537,6 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
headerRowSize: o.headerRowSize, headerRowSize: o.headerRowSize,
rowSize: o.rowSize, rowSize: o.rowSize,
regionColumnSize: o.regionColumnSize, regionColumnSize: o.regionColumnSize,
headerCellStyleGetter: o.headerCellStyleGetter,
summaryCellStyleGetter: o.summaryCellStyleGetter,
sequenceCellStyleGetter: o.sequenceCellStyleGetter,
header: data.header, header: data.header,
items: data.items items: data.items
}); });
@ -9919,6 +9683,8 @@ BI.DynamicSummaryTreeTable = BI.inherit(BI.Widget, {
mergeRule: BI.emptyFn, mergeRule: BI.emptyFn,
columnSize: [], columnSize: [],
minColumnSize: [],
maxColumnSize: [],
headerRowSize: 25, headerRowSize: 25,
footerRowSize: 25, footerRowSize: 25,
rowSize: 25, rowSize: 25,
@ -9968,15 +9734,13 @@ BI.DynamicSummaryTreeTable = BI.inherit(BI.Widget, {
mergeRule: o.mergeRule, mergeRule: o.mergeRule,
columnSize: o.columnSize, columnSize: o.columnSize,
minColumnSize: o.minColumnSize,
maxColumnSize: o.maxColumnSize,
headerRowSize: o.headerRowSize, headerRowSize: o.headerRowSize,
rowSize: o.rowSize, rowSize: o.rowSize,
regionColumnSize: o.regionColumnSize, regionColumnSize: o.regionColumnSize,
headerCellStyleGetter: o.headerCellStyleGetter,
summaryCellStyleGetter: o.summaryCellStyleGetter,
sequenceCellStyleGetter: o.sequenceCellStyleGetter,
header: data.header, header: data.header,
items: data.items items: data.items
}); });
@ -9985,12 +9749,18 @@ BI.DynamicSummaryTreeTable = BI.inherit(BI.Widget, {
}); });
this.table.on(BI.Table.EVENT_TABLE_AFTER_REGION_RESIZE, function () { this.table.on(BI.Table.EVENT_TABLE_AFTER_REGION_RESIZE, function () {
o.regionColumnSize = this.getRegionColumnSize(); o.regionColumnSize = this.getRegionColumnSize();
o.columnSize = this.getColumnSize(); var columnSize = this.getColumnSize();
var length = o.columnSize.length - columnSize.length;
o.columnSize = columnSize.slice();
o.columnSize.splice(columnSize.length, length, "");
self.fireEvent(BI.Table.EVENT_TABLE_AFTER_REGION_RESIZE, arguments); self.fireEvent(BI.Table.EVENT_TABLE_AFTER_REGION_RESIZE, arguments);
}); });
this.table.on(BI.Table.EVENT_TABLE_AFTER_COLUMN_RESIZE, function () { this.table.on(BI.Table.EVENT_TABLE_AFTER_COLUMN_RESIZE, function () {
o.regionColumnSize = this.getRegionColumnSize(); o.regionColumnSize = this.getRegionColumnSize();
o.columnSize = this.getColumnSize(); var columnSize = this.getColumnSize();
var length = o.columnSize.length - columnSize.length;
o.columnSize = columnSize.slice();
o.columnSize.splice(columnSize.length, length, "");
self.fireEvent(BI.Table.EVENT_TABLE_AFTER_COLUMN_RESIZE, arguments); self.fireEvent(BI.Table.EVENT_TABLE_AFTER_COLUMN_RESIZE, arguments);
}); });
}, },
@ -10032,7 +9802,7 @@ BI.DynamicSummaryTreeTable = BI.inherit(BI.Widget, {
}, },
getColumnSize: function () { getColumnSize: function () {
return this.table.getColumnSize(); return this.options.columnSize;
}, },
setRegionColumnSize: function (columnSize) { setRegionColumnSize: function (columnSize) {
@ -10227,12 +9997,19 @@ BI.extend(BI.DynamicSummaryTreeTable, {
}); });
if (cols.length > 0) { if (cols.length > 0) {
var nHeader = [], nItems = [];
BI.each(header, function (i, node) { BI.each(header, function (i, node) {
BI.removeAt(node, cols); var nNode = node.slice();
BI.removeAt(nNode, cols);
nHeader.push(nNode);
}); });
BI.each(items, function (i, node) { BI.each(items, function (i, node) {
BI.removeAt(node, cols); var nNode = node.slice();
BI.removeAt(nNode, cols);
nItems.push(nNode);;
}); });
header = nHeader;
items = nItems;
} }
return {items: items, header: header, deletedCols: cols}; return {items: items, header: header, deletedCols: cols};
} }
@ -10428,9 +10205,6 @@ BI.LayerTreeTable = BI.inherit(BI.Widget, {
headerRowSize: o.headerRowSize, headerRowSize: o.headerRowSize,
rowSize: o.rowSize, rowSize: o.rowSize,
regionColumnSize: o.regionColumnSize, regionColumnSize: o.regionColumnSize,
headerCellStyleGetter: o.headerCellStyleGetter,
summaryCellStyleGetter: o.summaryCellStyleGetter,
sequenceCellStyleGetter: o.sequenceCellStyleGetter,
header: data.header, header: data.header,
items: data.items items: data.items
}); });
@ -10682,10 +10456,6 @@ BI.TableTree = BI.inherit(BI.Widget, {
regionColumnSize: o.regionColumnSize, regionColumnSize: o.regionColumnSize,
headerCellStyleGetter: o.headerCellStyleGetter,
summaryCellStyleGetter: o.summaryCellStyleGetter,
sequenceCellStyleGetter: o.sequenceCellStyleGetter,
header: data.header, header: data.header,
items: data.items items: data.items
}); });

90
bi/core.css

@ -2958,6 +2958,16 @@
.bi-list-item.disabled:active { .bi-list-item.disabled:active {
background-color: #ffffff; background-color: #ffffff;
} }
.bi-theme-dark .bi-list-item:hover,
.bi-theme-dark .bi-list-item.hover {
background-color: #04070d;
color: #ffffff;
}
.bi-theme-dark .bi-list-item.disabled,
.bi-theme-dark .bi-list-item.disabled:hover,
.bi-theme-dark .bi-list-item.disabled:active {
background-color: transparent;
}
.bi-list-item-effect.active, .bi-list-item-effect.active,
.bi-list-item-effect:active { .bi-list-item-effect:active {
color: #009de3; color: #009de3;
@ -2965,7 +2975,16 @@
.bi-list-item-effect.disabled, .bi-list-item-effect.disabled,
.bi-list-item-effect.disabled:hover, .bi-list-item-effect.disabled:hover,
.bi-list-item-effect.disabled:active { .bi-list-item-effect.disabled:active {
color: #1a1a1a; color: #c4c6c6;
}
.bi-theme-dark .bi-list-item-effect.active,
.bi-theme-dark .bi-list-item-effect:active {
color: #009de3;
}
.bi-theme-dark .bi-list-item-effect.disabled,
.bi-theme-dark .bi-list-item-effect.disabled:hover,
.bi-theme-dark .bi-list-item-effect.disabled:active {
color: #c4c6c6;
} }
.bi-list-item-hover:hover, .bi-list-item-hover:hover,
.bi-list-item-hover.hover { .bi-list-item-hover.hover {
@ -2975,9 +2994,20 @@
.bi-list-item-hover.disabled, .bi-list-item-hover.disabled,
.bi-list-item-hover.disabled:hover, .bi-list-item-hover.disabled:hover,
.bi-list-item-hover.disabled:active { .bi-list-item-hover.disabled:active {
color: #1a1a1a; color: #c4c6c6;
background-color: #ffffff; background-color: #ffffff;
} }
.bi-theme-dark .bi-list-item-hover:hover,
.bi-theme-dark .bi-list-item-hover.hover {
color: #009de3;
background-color: #04070d;
}
.bi-theme-dark .bi-list-item-hover.disabled,
.bi-theme-dark .bi-list-item-hover.disabled:hover,
.bi-theme-dark .bi-list-item-hover.disabled:active {
color: #c4c6c6;
background-color: transparent;
}
.bi-list-item-active:hover, .bi-list-item-active:hover,
.bi-list-item-active.hover { .bi-list-item-active.hover {
background-color: #f4f4f4; background-color: #f4f4f4;
@ -2992,6 +3022,21 @@
.bi-list-item-active.disabled:active { .bi-list-item-active.disabled:active {
background-color: #ffffff; background-color: #ffffff;
} }
.bi-theme-dark .bi-list-item-active:hover,
.bi-theme-dark .bi-list-item-active.hover {
background-color: #04070d;
color: #ffffff;
}
.bi-theme-dark .bi-list-item-active.active,
.bi-theme-dark .bi-list-item-active:active {
color: #009de3;
background-color: #04070d;
}
.bi-theme-dark .bi-list-item-active.disabled,
.bi-theme-dark .bi-list-item-active.disabled:hover,
.bi-theme-dark .bi-list-item-active.disabled:active {
background-color: transparent;
}
.bi-list-item-select:hover, .bi-list-item-select:hover,
.bi-list-item-select.hover { .bi-list-item-select.hover {
color: #009de3; color: #009de3;
@ -3017,6 +3062,31 @@
.bi-list-item-select.disabled:active .bi-high-light { .bi-list-item-select.disabled:active .bi-high-light {
color: #c4c6c6 !important; color: #c4c6c6 !important;
} }
.bi-theme-dark .list-item-select:hover,
.bi-theme-dark .list-item-select.hover {
color: #009de3;
background-color: #04070d;
}
.bi-theme-dark .list-item-select:active,
.bi-theme-dark .list-item-select.active {
color: #ffffff;
background-color: #009de3;
}
.bi-theme-dark .list-item-select:active .bi-high-light,
.bi-theme-dark .list-item-select.active .bi-high-light {
color: #ffffff;
}
.bi-theme-dark .list-item-select.disabled,
.bi-theme-dark .list-item-select.disabled:hover,
.bi-theme-dark .list-item-select.disabled:active {
color: #c4c6c6 !important;
background-color: transparent !important;
}
.bi-theme-dark .list-item-select.disabled .bi-high-light,
.bi-theme-dark .list-item-select.disabled:hover .bi-high-light,
.bi-theme-dark .list-item-select.disabled:active .bi-high-light {
color: #c4c6c6 !important;
}
/*****************cursor*****************/ /*****************cursor*****************/
.cursor-pointer { .cursor-pointer {
cursor: pointer; cursor: pointer;
@ -3447,3 +3517,19 @@
vertical-align: middle; vertical-align: middle;
content: ' '; content: ' ';
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-theme-dark {
background-color: #191a2c;
color: #b2b2b2;
}
.bi-theme-dark .bi-input {
color: #ffffff;
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/

101
bi/core.js

@ -1904,9 +1904,6 @@ if (!window.BI) {
} }
; ;
!(function ($, undefined) { !(function ($, undefined) {
_.extend(BI, {
version: "2.0"
});
var traverse = function (func, context) { var traverse = function (func, context) {
return function (value, key, obj) { return function (value, key, obj) {
return func.call(context, key, value, obj); return func.call(context, key, value, obj);
@ -4487,6 +4484,10 @@ BI.Widget = BI.inherit(BI.OB, {
this.destroyed && this.destroyed(); this.destroyed && this.destroyed();
}, },
isMounted: function () {
return this._isMounted;
},
setWidth: function (w) { setWidth: function (w) {
this.options.width = w; this.options.width = w;
this._initElementWidth(); this._initElementWidth();
@ -13289,7 +13290,7 @@ BI.CardLayout = BI.inherit(BI.Layout, {
isCardExisted: function (cardName) { isCardExisted: function (cardName) {
return BI.some(this.options.items, function (i, item) { return BI.some(this.options.items, function (i, item) {
return item.cardName === cardName && item.el; return item.cardName == cardName && item.el;
}); });
}, },
@ -15829,7 +15830,8 @@ BI.LayerController = BI.inherit(BI.Controller, {
return this.get(name); return this.get(name);
} }
var widget = BI.createWidget((op.render || {}), { var widget = BI.createWidget((op.render || {}), {
type: "bi.layout" type: "bi.layout",
cls: op.cls
}); });
var layout = BI.createWidget({ var layout = BI.createWidget({
type: "bi.absolute", type: "bi.absolute",
@ -16934,23 +16936,6 @@ $(function () {
BI.Func = {}; BI.Func = {};
var formulas = {}; var formulas = {};
BI.extend(BI.Func, { BI.extend(BI.Func, {
/**
* 创建唯一的名字
* @param array
* @param name
* @returns {*}
*/
createDistinctName: function (array, name) {
var src = name, idx = 1;
name = name || "";
while (true) {
if (!ArrayUtils.getItemByName(array, name)) {
break;
}
name = src + (idx++);
}
return name;
},
/** /**
* 获取搜索结果 * 获取搜索结果
@ -16998,60 +16983,6 @@ $(function () {
finded: finded finded: finded
} }
}, },
/**
* 公式合法性验证
*/
checkFormulaValidation: function (str) {
if (!BI.isEmptyString(str)) {
if (BI.has(formulas, str)) {
return formulas[str];
}
formulas[str] = false;
var response = BI.requestSync("fr_bi_base", "check_validation_of_expression", {expression: str});
if (response.validation === "invalid") {
formulas[str] = false;
} else if (response.validation === "valid") {
formulas[str] = true;
}
return formulas[str];
} else {
return true;
}
},
getFormulaStringFromFormulaValue: function (formulaValue) {
var formulaString = "";
var regx = /\$[\{][^\}]*[\}]|\w*\w|\$\{[^\$\(\)\+\-\*\/)\$,]*\w\}|\$\{[^\$\(\)\+\-\*\/]*\w\}|\$\{[^\$\(\)\+\-\*\/]*[\u4e00-\u9fa5]\}|\w|(.)/g;
var result = formulaValue.match(regx);
BI.each(result, function (i, item) {
var fieldRegx = /\$[\{][^\}]*[\}]/;
var str = item.match(fieldRegx);
if (BI.isNotEmptyArray(str)) {
formulaString = formulaString + str[0].substring(2, item.length - 1);
} else {
formulaString = formulaString + item;
}
});
return formulaString;
},
formatAddress: function (address) {
var temp = '';
var url1 = /[a-zA-z]+:\/\/[^\s]*/;
var url2 = /\/[^\s]*/;
if (address.match(url1) || address.match(url2)) {
temp = address;
} else if (BI.isNotEmptyString(address)) {
temp = "http://" + address;
}
return temp;
},
getCompleteImageUrl: function (url) {
return BI.servletURL + "?op=fr_bi&cmd=get_uploaded_image&image_id=" + url;
}
}); });
/** /**
@ -17104,24 +17035,26 @@ $(function () {
}); });
}, },
getImageWidthAndHeight: function (src) {
return BI.requestSync("fr_bi_base", "get_image_size", {
src: src
});
},
isDarkColor: function (hex) { isDarkColor: function (hex) {
if (!hex) { if (!hex) {
return false; return false;
} }
var rgb = this.rgb2json(this.hex2rgb(hex)); var rgb = this.rgb2json(this.hex2rgb(hex));
var grayLevel = (rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114); var grayLevel = Math.round(rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114);
if (grayLevel < 192) { if (grayLevel < 140) {
return true; return true;
} }
return false; return false;
}, },
//获取对比颜色
getContrastColor: function (color) {
if (this.isDarkColor(color)) {
return "#ffffff";
}
return "#1a1a1a";
},
rgb2hex: function (rgbColour) { rgb2hex: function (rgbColour) {
if (!rgbColour || rgbColour.substr(0, 3) != "rgb") { if (!rgbColour || rgbColour.substr(0, 3) != "rgb") {
return ""; return "";

26
bi/widget.css

@ -139,35 +139,12 @@
/****添加计算宽度的--运算符直接需要space****/ /****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-down-list-combo .down-list-group.bi-combo-hover .bi-down-list-group-item,
.bi-down-list-combo .down-list-group.bi-combo-hover .bi-down-list-group-item .b-font:before {
background-color: #f4f4f4;
}
.bi-down-list-combo .down-list-group.bi-combo-hover .bi-down-list-group-item:disabled,
.bi-down-list-combo .down-list-group.bi-combo-hover .bi-down-list-group-item.disabled,
.bi-down-list-combo .down-list-group.bi-combo-hover .bi-down-list-group-item:disabled .b-font:before,
.bi-down-list-combo .down-list-group.bi-combo-hover .bi-down-list-group-item.disabled .b-font:before {
background-color: #ffffff;
}
.bi-down-list-combo .bi-down-list-spliter { .bi-down-list-combo .bi-down-list-spliter {
border-top: 1px solid #eaeaea; border-top: 1px solid #eaeaea;
} }
/****添加计算宽度的--运算符直接需要space****/ /****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-down-list-popup .bi-down-list-item:hover,
.bi-down-list-popup .bi-down-list-item.hover {
background-color: #f4f4f4;
}
.bi-down-list-popup .bi-down-list-item.disabled,
.bi-down-list-popup .bi-down-list-item.disabled:hover,
.bi-down-list-popup .bi-down-list-item.disabled:active {
background-color: #ffffff;
}
.bi-down-list-popup .bi-down-list-item:active {
color: #009de3;
background-color: #f4f4f4;
}
.bi-down-list-popup .bi-down-list-item .list-item-text { .bi-down-list-popup .bi-down-list-item .list-item-text {
max-width: 203px; max-width: 203px;
} }
@ -359,6 +336,9 @@
background-color: #ffffff; background-color: #ffffff;
z-index: 1; z-index: 1;
} }
.bi-theme-dark .bi-multi-select-check-selected-button {
background-color: #191a2c;
}
/****添加计算宽度的--运算符直接需要space****/ /****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/

30
bi/widget.js

@ -5222,7 +5222,7 @@ BI.DatePaneWidget = BI.inherit(BI.Widget, {
direction: "top", direction: "top",
element: this, element: this,
logic: { logic: {
dynamic: true dynamic: false
}, },
type: "bi.navigation", type: "bi.navigation",
tab: this.datePicker, tab: this.datePicker,
@ -5250,7 +5250,7 @@ BI.DatePaneWidget = BI.inherit(BI.Widget, {
var calendar = BI.createWidget({ var calendar = BI.createWidget({
type: "bi.calendar", type: "bi.calendar",
logic: { logic: {
dynamic: true dynamic: false
}, },
min: this.options.min, min: this.options.min,
max: this.options.max, max: this.options.max,
@ -5670,7 +5670,7 @@ BI.shortcut("bi.down_list_group", BI.DownListGroup);BI.DownListItem = BI.inherit
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.DownListItem.superclass._defaultConfig.apply(this, arguments); var conf = BI.DownListItem.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
baseCls: "bi-down-list-item", baseCls: "bi-down-list-item bi-list-item-active",
cls: "", cls: "",
height: 25, height: 25,
logic: { logic: {
@ -12846,7 +12846,7 @@ BI.PageTable = BI.inherit(BI.Widget, {
this.table = BI.createWidget(o.el, { this.table = BI.createWidget(o.el, {
type: "bi.sequence_table", type: "bi.sequence_table",
width: o.width, width: o.width,
height: o.height - 30, height: o.height && o.height - 30,
isNeedResize: true, isNeedResize: true,
isResizeAdapt: false, isResizeAdapt: false,
@ -12905,7 +12905,7 @@ BI.PageTable = BI.inherit(BI.Widget, {
vpage: vpage, vpage: vpage,
hpage: hpage hpage: hpage
}, function (items, header, crossItems, crossHeader) { }, function (items, header, crossItems, crossHeader) {
self.table.setVPage ? self.table.setVPage(vpage) : self.table.setCurrentPage(vpage); self.table.setVPage ? self.table.setVPage(vpage) : self.table.setValue(vpage);
self.table.setHPage && self.table.setHPage(hpage); self.table.setHPage && self.table.setHPage(hpage);
self.populate.apply(self, arguments); self.populate.apply(self, arguments);
}); });
@ -12970,7 +12970,23 @@ BI.PageTable = BI.inherit(BI.Widget, {
setHeight: function (height) { setHeight: function (height) {
BI.PageTable.superclass.setHeight.apply(this, arguments); BI.PageTable.superclass.setHeight.apply(this, arguments);
this.table.setHeight(height - 30); var showPager = false;
if (this.pager.alwaysShowPager) {
showPager = true;
} else if (this.pager.hasHNext && this.pager.hasHNext()) {
showPager = true;
} else if (this.pager.hasHPrev && this.pager.hasHPrev()) {
showPager = true;
} else if (this.pager.hasVNext && this.pager.hasVNext()) {
showPager = true;
} else if (this.pager.hasVPrev && this.pager.hasVPrev()) {
showPager = true;
} else if (this.pager.hasNext && this.pager.hasNext()) {
showPager = true;
} else if (this.pager.hasPrev && this.pager.hasPrev()) {
showPager = true;
}
this.table.setHeight(height - (showPager ? 30 : 0));
}, },
setColumnSize: function (columnSize) { setColumnSize: function (columnSize) {
@ -15957,7 +15973,7 @@ BI.SequenceTable = BI.inherit(BI.Widget, {
headerRowSize: o.headerRowSize, headerRowSize: o.headerRowSize,
rowSize: o.rowSize, rowSize: o.rowSize,
width: 60, width: 60,
height: o.height - BI.GridTableScrollbar.SIZE, height: o.height && o.height - BI.GridTableScrollbar.SIZE,
headerCellStyleGetter: o.headerCellStyleGetter, headerCellStyleGetter: o.headerCellStyleGetter,
summaryCellStyleGetter: o.summaryCellStyleGetter, summaryCellStyleGetter: o.summaryCellStyleGetter,

22
demo.html

@ -5,24 +5,24 @@
<title></title> <title></title>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="./dist/core.css"/> href="docs/core.css"/>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="./dist/base.css"/> href="docs/base.css"/>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="./dist/widget.css"/> href="docs/widget.css"/>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="./dist/resource.css"/> href="docs/resource.css"/>
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="demo/dist/demo.css"/> href="docs/demo.css"/>
<script src="./dist/core.js"></script> <script src="docs/core.js"></script>
<script src="./dist/base.js"></script> <script src="docs/base.js"></script>
<script src="./dist/case.js"></script> <script src="docs/case.js"></script>
<script src="./dist/widget.js"></script> <script src="docs/widget.js"></script>
<script src="demo/dist/demo.js"></script> <script src="docs/demo.js"></script>
</head> </head>
<body> <body>
<div id="wrapper"></div> <div id="wrapper" class="bi-theme-dark"></div>
</body> </body>
</html> </html>

8
demo/js/config/widget.js

@ -13,6 +13,14 @@ Demo.WIDGET_CONFIG = [{
pId: 401, pId: 401,
text: "bi.responsive_table", text: "bi.responsive_table",
value: "demo.responsive_table" value: "demo.responsive_table"
}, {
pId: 401,
text: "bi.sequence_table",
value: "demo.sequence_table"
}, {
pId: 401,
text: "bi.page_table",
value: "demo.page_table"
}, { }, {
pId: 4, pId: 4,
text: "bi.multi_select_combo", text: "bi.multi_select_combo",

16
demo/js/north.js

@ -22,7 +22,21 @@ Demo.North = BI.inherit(BI.Widget, {
} }
}, { }, {
el: { el: {
type: "bi.layout" type: "bi.right",
hgap: 10,
items: [{
type: "bi.text_button",
text: "星空蓝",
handler: function () {
$("#wrapper").removeClass("bi-theme-default").addClass("bi-theme-dark");
}
}, {
type: "bi.text_button",
text: "典雅白",
handler: function () {
$("#wrapper").removeClass("bi-theme-dark").addClass("bi-theme-default");
}
}]
} }
}] }]
} }

214
demo/js/widget/table/demo.page_table.js

@ -0,0 +1,214 @@
Demo.Func = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-func"
},
render: function () {
var items = [{
children: [{
type: "bi.page_table_cell",
text: "node1",
children: [{
type: "bi.page_table_cell",
text: "childnode1",
values: [{type: "bi.page_table_cell", text: 101}, {
type: "bi.page_table_cell",
text: 102
}, {type: "bi.page_table_cell", text: 101}, {
type: "bi.page_table_cell",
text: 102
}, {type: "bi.page_table_cell", text: 101}]
}, {
type: "bi.page_table_cell",
text: "childnode2",
values: [{type: "bi.page_table_cell", text: 201}, {
type: "bi.page_table_cell",
text: 202
}, {type: "bi.page_table_cell", text: 201}, {
type: "bi.page_table_cell",
text: 202
}, {type: "bi.page_table_cell", text: 201}]
}],
values: [{type: "bi.page_table_cell", text: 1001}, {
type: "bi.page_table_cell",
text: 1002
}, {type: "bi.page_table_cell", text: 1001}, {
type: "bi.page_table_cell",
text: 1002
}, {type: "bi.page_table_cell", text: 1001}]
}], values: [{type: "bi.page_table_cell", text: 12001}, {
type: "bi.page_table_cell",
text: 12002
}, {type: "bi.page_table_cell", text: 12001}, {
type: "bi.page_table_cell",
text: 12002
}, {type: "bi.page_table_cell", text: 12001}]
}];
var header = [{
type: "bi.page_table_cell",
text: "header1"
}, {
type: "bi.page_table_cell",
text: "header2"
}, {
type: "bi.page_table_cell",
text: "jine",
tag: 1
}, {
type: "bi.page_table_cell",
text: "jine",
tag: 2
}, {
type: "bi.page_table_cell",
text: "jine",
tag: 3
}, {
type: "bi.page_table_cell",
text: "金额汇总",
tag: 4
}, {
type: "bi.page_table_cell",
text: "金额汇总2",
tag: 5
}];
var crossHeader = [{
type: "bi.page_table_cell",
text: "cross1"
}, {
type: "bi.page_table_cell",
text: "cross2"
}];
var crossItems = [{
children: [{
type: "bi.page_table_cell",
text: "node1",
values: [1, 2, 3]
}, {
type: "bi.page_table_cell",
text: "node3",
values: [1, 2]
}],
//values: [1, 2]
}];
var table1 = BI.createWidget({
type: "bi.page_table",
el: {
type: "bi.sequence_table",
showSequence: true,
el: {
type: "bi.dynamic_summary_tree_table",
el: {
type: "bi.adaptive_table",
el: {
type: "bi.resizable_table",
el: {
type: "bi.collection_table"
}
}
},
},
sequence: {
type: "bi.sequence_table_dynamic_number"
}
},
summaryCellStyleGetter: function (isLast) {
return isLast ? {
backgroundColor: "#6495ED",
color: "#ffffff"
} : {
backgroundColor: "#B0C4DE",
color: "#ffffff"
}
},
sequenceCellStyleGetter: function (index) {
return {
backgroundColor: "#87CEEB",
color: "#ffffff"
}
},
headerCellStyleGetter: function () {
return {
backgroundColor: "#6495ED",
color: "#ffffff"
}
},
pager: {
horizontal: {
pages: false, //总页数
curr: 1, //初始化当前页, pages为数字时可用
hasPrev: function (page) {
return page > 1;
},
hasNext: function (page) {
return page < 3;
}
},
vertical: {
pages: false, //总页数
curr: 1, //初始化当前页, pages为数字时可用
hasPrev: function (page) {
return page > 1;
},
hasNext: function (page) {
return page < 3;
}
}
},
itemsCreator: function (op, populate) {
var vpage = op.vpage || "";
var hpage = op.hpage || "";
BI.each(header, function (i, h) {
h.text = h.text + "V" + vpage + "H" + hpage;
});
populate(items, header, crossItems, crossHeader);
},
width: 600,
height: 400,
columnSize: [100, 100, 100, 100, 100, 100, 100],
minColumnSize: [100, 100, 100, 100, 100, 100, 100],
isNeedMerge: true,
isNeedFreeze: true,
mergeCols: [0, 1],
mergeRule: function (col1, col2) {
if (col1 === col2) {
return true;
}
if (col1.tag && col2.tag) {
return col1.tag === col2.tag;
}
return col1 === col2;
},
freezeCols: [0, 1],
header: header,
items: items,
crossHeader: crossHeader,
crossItems: crossItems
});
// table1.populate(items, header, crossItems, crossHeader);
BI.createWidget({
type: "bi.absolute",
element: this,
items: [{
el: {
type: "bi.grid",
columns: 1,
rows: 1,
items: [[{
el: table1
}]]
},
left: 10,
right: 10,
top: 10,
bottom: 10
}]
})
}
});
BI.shortcut("demo.page_table", Demo.Func);

159
demo/js/widget/table/demo.sequence_table.js

@ -0,0 +1,159 @@
Demo.Func = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-func"
},
render: function () {
var items = [{
children: [{
text: "节点1",
children: [{
text: "子节点1",
children: [{
text: "叶节点1",
values: [{text: 11}, {text: 12}, {text: 11}, {text: 12}, {text: 11}, {text: 12}, {text: 112}]
}, {
text: "叶节点2",
values: [{text: 21}, {text: 22}, {text: 21}, {text: 22}, {text: 21}, {text: 22}, {text: 122}]
}],
values: [{text: 101}, {text: 102}, {text: 101}, {text: 102}, {text: 101}, {text: 102}, {text: 1102}]
}, {
text: "子节点2",
children: [{
text: "叶节点3",
values: [{text: 31}, {text: 32}, {text: 31}, {text: 32}, {text: 31}, {text: 32}, {text: 132}]
}, {
text: "叶节点4",
values: [{text: 41}, {text: 42}, {text: 41}, {text: 42}, {text: 41}, {text: 42}, {text: 142}]
}],
values: [{text: 201}, {text: 202}, {text: 201}, {text: 202}, {text: 201}, {text: 202}, {text: 1202}]
}, {
text: "子节点3",
children: [{
text: "叶节点5",
values: [{text: 51}, {text: 52}, {text: 51}, {text: 52}, {text: 51}, {text: 52}, {text: 152}]
}],
values: [{text: 301}, {text: 302}, {text: 301}, {text: 302}, {text: 301}, {text: 302}, {text: 1302}]
}],
values: [{text: 1001}, {text: 1002}, {text: 1001}, {text: 1002}, {text: 1001}, {text: 1002}, {text: 11002}]
}, {
text: "节点2",
values: [{text: 2001}, {text: 2002}, {text: 2001}, {text: 2002}, {text: 2001}, {text: 2002}, {text: 12002}]
}],
values: [{text: 12001}, {text: 12002}, {text: 12001}, {text: 12002}, {text: 12001}, {text: 12002}, {text: 112002}]
}];
var header = [{
text: "header1"
}, {
text: "header2"
}, {
text: "header3"
}, {
text: "金额",
tag: 1
}, {
text: "金额",
tag: 2
}, {
text: "金额",
tag: 3
}, {
text: "金额",
tag: 4
}, {
text: "金额",
tag: 5
}, {
text: "金额",
tag: 6
}, {
text: "金额",
tag: 7
}];
var crossHeader = [{
text: "cross1"
}, {
text: "cross2"
}];
var crossItems = [{
children: [{
text: "节点1",
children: [{
text: "子节点1"
}, {
text: "子节点2"
}],
values: [0]
}, {
text: "节点2",
children: [{
text: "子节点3"
}, {
text: "子节点4"
}],
values: [0]
}],
values: [0]
}];
var table = BI.createWidget({
type: "bi.sequence_table",
el: {
type: "bi.tree_table",
el: {
type: "bi.adaptive_table",
el: {
type: "bi.resizable_table",
el: {
type: "bi.collection_table"
}
}
},
},
sequence: {
type: "bi.sequence_table_tree_number"
},
showSequence: true,
width: 600,
height: 400,
isNeedResize: true,
isNeedMerge: true,
mergeRule: function (row1, row2) {
return row1 === row2;
},
columnSize: [100, 100, 100, 100, 100, 100, 100, 100, 100, 100],
minColumnSize: [100, 100, 100, 100, 100, 100, 100, 100, 100, 100],
isNeedFreeze: true,
freezeCols: [0, 1, 2],
mergeCols: [0, 1, 2],
header: header,
items: items,
crossHeader: crossHeader,
crossItems: crossItems
});
BI.createWidget({
type: "bi.absolute",
element: this,
items: [{
el: {
type: "bi.grid",
columns: 1,
rows: 1,
items: [{
column: 0,
row: 0,
el: table
}]
},
left: 10,
right: 10,
top: 10,
bottom: 50
}]
})
}
});
BI.shortcut("demo.sequence_table", Demo.Func);

0
dist/background/loading.gif → docs/background/loading.gif

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

35
dist/base.css → docs/base.css

@ -4,17 +4,6 @@
/****添加计算宽度的--运算符直接需要space****/ /****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-combine-chart .bi-linkage-list {
background-color: #ffffff;
border: 1px solid #eaeaea;
z-index: 1000000000;
}
.bi-combine-chart .bi-linkage-list .bi-linkage-list-item:hover {
background-color: #f4f4f4;
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-color-chooser-popup .color-chooser-popup-title { .bi-color-chooser-popup .color-chooser-popup-title {
background: #f4f4f4; background: #f4f4f4;
border-bottom: 1px solid #d4dadd; border-bottom: 1px solid #d4dadd;
@ -949,13 +938,6 @@ li.CodeMirror-hint-active {
/****添加计算宽度的--运算符直接需要space****/ /****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-record-editor .record-editor-text {
font-size: 12px;
background: #f4f4f4;
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-shelter-editor .shelter-editor-text { .bi-shelter-editor .shelter-editor-text {
font-size: 12px; font-size: 12px;
} }
@ -1021,9 +1003,6 @@ li.CodeMirror-hint-active {
border: none; border: none;
color: #e85050 !important; color: #e85050 !important;
} }
.bi-input.disabled {
background-color: white;
}
/****添加计算宽度的--运算符直接需要space****/ /****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
@ -1206,6 +1185,7 @@ li.CodeMirror-hint-active {
transition-timing-function: ease; transition-timing-function: ease;
user-select: none; user-select: none;
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#19000000,endColorstr=#19000000);
border-radius: 5px; border-radius: 5px;
} }
.scrollbar-layout-main-vertical { .scrollbar-layout-main-vertical {
@ -1225,6 +1205,7 @@ li.CodeMirror-hint-active {
left: 0; left: 0;
transition-property: background-color; transition-property: background-color;
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#19000000,endColorstr=#19000000);
} }
/* Touching the scroll-track directly makes the scroll-track bolder */ /* Touching the scroll-track directly makes the scroll-track bolder */
.scrollbar-layout-main-horizontal.public-scrollbar-main-active, .scrollbar-layout-main-horizontal.public-scrollbar-main-active,
@ -1279,11 +1260,19 @@ li.CodeMirror-hint-active {
.public-scrollbar-face:after { .public-scrollbar-face:after {
background-color: #c2c2c2; background-color: #c2c2c2;
} }
.bi-theme-dark .public-scrollbar-face:after {
background-color: #7d7d7d;
}
.public-scrollbar-main:hover .public-scrollbar-face:after, .public-scrollbar-main:hover .public-scrollbar-face:after,
.public-scrollbar-main-active .public-scrollbar-face:after, .public-scrollbar-main-active .public-scrollbar-face:after,
.public-scrollbar-faceActive:after { .public-scrollbar-faceActive:after {
background-color: #7d7d7d; background-color: #7d7d7d;
} }
.bi-theme-dark .public-scrollbar-main:hover .public-scrollbar-face:after,
.bi-theme-dark .public-scrollbar-main-active .public-scrollbar-face:after,
.bi-theme-dark .public-scrollbar-faceActive:after {
background-color: #c2c2c2;
}
.horizontal-scrollbar { .horizontal-scrollbar {
bottom: 0; bottom: 0;
position: absolute; position: absolute;
@ -1437,3 +1426,7 @@ li.CodeMirror-hint-active {
.bi-list-view .list-view-toolbar > .first-element { .bi-list-view .list-view-toolbar > .first-element {
border-left: none; border-left: none;
} }
.bi-theme-dark .bi-list-view .list-view-outer {
color: #b2b2b2;
background: #191a2c;
}

138
dist/base.js → docs/base.js

@ -42,9 +42,6 @@
} else { } else {
this.onmousewheel = handler; this.onmousewheel = handler;
} }
// Store the line height and page height for this particular element
$.data(this, 'mousewheel-line-height', special.getLineHeight(this));
$.data(this, 'mousewheel-page-height', special.getPageHeight(this));
}, },
teardown: function() { teardown: function() {
@ -55,22 +52,6 @@
} else { } else {
this.onmousewheel = null; this.onmousewheel = null;
} }
// Clean up the data we added to the element
$.removeData(this, 'mousewheel-line-height');
$.removeData(this, 'mousewheel-page-height');
},
getLineHeight: function(elem) {
var $elem = $(elem),
$parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
if (!$parent.length) {
$parent = $('body');
}
return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
},
getPageHeight: function(elem) {
return $(elem).height();
}, },
settings: { settings: {
@ -136,12 +117,12 @@
// * deltaMode 1 is by lines // * deltaMode 1 is by lines
// * deltaMode 2 is by pages // * deltaMode 2 is by pages
if ( orgEvent.deltaMode === 1 ) { if ( orgEvent.deltaMode === 1 ) {
var lineHeight = $.data(this, 'mousewheel-line-height'); var lineHeight = 40;
delta *= lineHeight; delta *= lineHeight;
deltaY *= lineHeight; deltaY *= lineHeight;
deltaX *= lineHeight; deltaX *= lineHeight;
} else if ( orgEvent.deltaMode === 2 ) { } else if ( orgEvent.deltaMode === 2 ) {
var pageHeight = $.data(this, 'mousewheel-page-height'); var pageHeight = 800;
delta *= pageHeight; delta *= pageHeight;
deltaY *= pageHeight; deltaY *= pageHeight;
deltaX *= pageHeight; deltaX *= pageHeight;
@ -1489,10 +1470,6 @@ BI.TreeView = BI.inherit(BI.Pane, {
}, },
_init: function () { _init: function () {
BI.TreeView.superclass._init.apply(this, arguments); BI.TreeView.superclass._init.apply(this, arguments);
this._stop = false; this._stop = false;
this.container = BI.createWidget(); this.container = BI.createWidget();
@ -1969,10 +1946,10 @@ BI.TreeView = BI.inherit(BI.Pane, {
} }
}); });
BI.extend(BI.TreeView, { BI.extend(BI.TreeView, {
REQ_TYPE_INIT_DATA: 1, REQ_TYPE_INIT_DATA: 0,
REQ_TYPE_ADJUST_DATA: 2, REQ_TYPE_ADJUST_DATA: 1,
REQ_TYPE_CALCULATE_SELECT_DATA: 3, REQ_TYPE_CALCULATE_SELECT_DATA: 2,
REQ_TYPE_SELECTED_DATA: 4 REQ_TYPE_SELECTED_DATA: 3
}); });
BI.TreeView.EVENT_CHANGE = "EVENT_CHANGE"; BI.TreeView.EVENT_CHANGE = "EVENT_CHANGE";
@ -3920,12 +3897,9 @@ BI.Navigation = BI.inherit(BI.Widget, {
logic: { logic: {
dynamic: false dynamic: false
}, },
defaultShowIndex: 0, single: false,
tab: { defaultShowIndex: false,
type: "bi.button_group", tab: false,
items: [],
layouts: []
},
cardCreator: function (v) { cardCreator: function (v) {
return BI.createWidget(); return BI.createWidget();
}, },
@ -3963,7 +3937,7 @@ BI.Navigation = BI.inherit(BI.Widget, {
}, },
afterCardCreated: BI.bind(this.afterCardCreated, this), afterCardCreated: BI.bind(this.afterCardCreated, this),
afterCardShow: BI.bind(this.afterCardShow, this) afterCardShow: BI.bind(this.afterCardShow, this)
}) });
}, },
mounted: function () { mounted: function () {
@ -3973,6 +3947,18 @@ BI.Navigation = BI.inherit(BI.Widget, {
} }
}, },
_deleteOtherCards: function (currCardName) {
var self = this, o = this.options;
if (o.single === true) {
BI.each(this.cardMap, function (name, card) {
if (name !== (currCardName + "")) {
self.layout.deleteCardByName(name);
delete self.cardMap[name];
}
});
}
},
afterCardCreated: function (v) { afterCardCreated: function (v) {
var self = this; var self = this;
this.cardMap[v].on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { this.cardMap[v].on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {
@ -3980,12 +3966,13 @@ BI.Navigation = BI.inherit(BI.Widget, {
if (type === BI.Events.CLICK) { if (type === BI.Events.CLICK) {
self.fireEvent(BI.Navigation.EVENT_CHANGE, obj); self.fireEvent(BI.Navigation.EVENT_CHANGE, obj);
} }
}) });
this.options.afterCardCreated.apply(this, arguments); this.options.afterCardCreated.apply(this, arguments);
}, },
afterCardShow: function (v) { afterCardShow: function (v) {
this.showIndex = v; this.showIndex = v;
this._deleteOtherCards(v);
this.options.afterCardShow.apply(this, arguments); this.options.afterCardShow.apply(this, arguments);
}, },
@ -3996,16 +3983,23 @@ BI.Navigation = BI.inherit(BI.Widget, {
} }
}, },
setSelect: function (v) { _assertCard: function (v) {
this.showIndex = v;
if (!this.layout.isCardExisted(v)) { if (!this.layout.isCardExisted(v)) {
var card = this.options.cardCreator(v); var card = this.options.cardCreator(v);
this.cardMap[v] = card; this.cardMap[v] = card;
this.layout.addCardByName(v, card); this.layout.addCardByName(v, card);
this.afterCardCreated(v); this.afterCardCreated(v);
} }
},
setSelect: function (v) {
this._assertCard();
this.layout.showCardByName(v); this.layout.showCardByName(v);
this._deleteOtherCards(v);
if (this.showIndex !== v) {
this.showIndex = v;
BI.nextTick(BI.bind(this.afterCardShow, this, v)); BI.nextTick(BI.bind(this.afterCardShow, this, v));
}
}, },
getSelect: function () { getSelect: function () {
@ -4636,6 +4630,7 @@ BI.Tab = BI.inherit(BI.Widget, {
return BI.extend(BI.Tab.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.Tab.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-tab", baseCls: "bi-tab",
direction: "top",//top, bottom, left, right, custom direction: "top",//top, bottom, left, right, custom
single: false, //是不是单页面
logic: { logic: {
dynamic: false dynamic: false
}, },
@ -4675,6 +4670,7 @@ BI.Tab = BI.inherit(BI.Widget, {
return card; return card;
}, },
afterCardShow: function (v) { afterCardShow: function (v) {
self._deleteOtherCards(v);
self.curr = v; self.curr = v;
} }
}); });
@ -4683,6 +4679,18 @@ BI.Tab = BI.inherit(BI.Widget, {
}); });
}, },
_deleteOtherCards: function (currCardName) {
var self = this, o = this.options;
if (o.single === true) {
BI.each(this.cardMap, function (name, card) {
if (name !== (currCardName + "")) {
self.layout.deleteCardByName(name);
delete self.cardMap[name];
}
});
}
},
_assertCard: function (v) { _assertCard: function (v) {
if (!this.layout.isCardExisted(v)) { if (!this.layout.isCardExisted(v)) {
var card = this.options.cardCreator(v); var card = this.options.cardCreator(v);
@ -4702,6 +4710,7 @@ BI.Tab = BI.inherit(BI.Widget, {
this.tab && this.tab.setValue(v); this.tab && this.tab.setValue(v);
this._assertCard(v); this._assertCard(v);
this.layout.showCardByName(v); this.layout.showCardByName(v);
this._deleteOtherCards(v);
if (this.curr !== v) { if (this.curr !== v) {
this.curr = v; this.curr = v;
} }
@ -17951,6 +17960,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
setValue: function (value) { setValue: function (value) {
this.content.element.val(value); this.content.element.val(value);
this._checkWaterMark();
}, },
setStyle: function (style) { setStyle: function (style) {
@ -28297,8 +28307,7 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
}); });
}, },
_init: function () { render: function () {
BI.CollectionTable.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this._width = 0; this._width = 0;
this._height = 0; this._height = 0;
@ -28434,6 +28443,10 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
}); });
this._width = o.width - BI.GridTableScrollbar.SIZE; this._width = o.width - BI.GridTableScrollbar.SIZE;
this._height = o.height - BI.GridTableScrollbar.SIZE; this._height = o.height - BI.GridTableScrollbar.SIZE;
},
mounted: function () {
var o = this.options;
if (o.items.length > 0 || o.header.length < 0) { if (o.items.length > 0 || o.header.length < 0) {
this._digest(); this._digest();
this._populate(); this._populate();
@ -28832,8 +28845,8 @@ BI.QuickCollectionTable = BI.inherit(BI.CollectionTable, {
}); });
}, },
_init: function () { render: function () {
BI.QuickCollectionTable.superclass._init.apply(this, arguments); BI.QuickCollectionTable.superclass.render.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this.topLeftCollection.setOverflowX(false); this.topLeftCollection.setOverflowX(false);
this.topLeftCollection.setOverflowY(false); this.topLeftCollection.setOverflowY(false);
@ -28843,6 +28856,11 @@ BI.QuickCollectionTable = BI.inherit(BI.CollectionTable, {
this.bottomLeftCollection.setOverflowY(false); this.bottomLeftCollection.setOverflowY(false);
this.bottomRightCollection.setOverflowX(false); this.bottomRightCollection.setOverflowX(false);
this.bottomRightCollection.setOverflowY(false); this.bottomRightCollection.setOverflowY(false);
},
mounted: function () {
BI.QuickCollectionTable.superclass.mounted.apply(this, arguments);
var self = this;
this._leftWheelHandler = new BI.WheelHandler( this._leftWheelHandler = new BI.WheelHandler(
BI.bind(this._onWheelY, this), BI.bind(this._onWheelY, this),
BI.bind(this._shouldHandleX, this), BI.bind(this._shouldHandleX, this),
@ -29037,8 +29055,7 @@ BI.GridTable = BI.inherit(BI.Widget, {
}); });
}, },
_init: function () { render: function () {
BI.GridTable.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this._width = 0; this._width = 0;
this._height = 0; this._height = 0;
@ -29181,6 +29198,10 @@ BI.GridTable = BI.inherit(BI.Widget, {
this._height = o.height - BI.GridTableScrollbar.SIZE; this._height = o.height - BI.GridTableScrollbar.SIZE;
this.header = this._getHeader(); this.header = this._getHeader();
this.items = this._getItems(); this.items = this._getItems();
},
mounted: function () {
var o = this.options;
if (o.items.length > 0) { if (o.items.length > 0) {
this._populate(); this._populate();
} }
@ -29499,8 +29520,8 @@ BI.QuickGridTable = BI.inherit(BI.GridTable, {
}); });
}, },
_init: function () { render: function () {
BI.QuickGridTable.superclass._init.apply(this, arguments); BI.QuickGridTable.superclass.render.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this.topLeftGrid.setOverflowX(false); this.topLeftGrid.setOverflowX(false);
this.topLeftGrid.setOverflowY(false); this.topLeftGrid.setOverflowY(false);
@ -29510,6 +29531,11 @@ BI.QuickGridTable = BI.inherit(BI.GridTable, {
this.bottomLeftGrid.setOverflowY(false); this.bottomLeftGrid.setOverflowY(false);
this.bottomRightGrid.setOverflowX(false); this.bottomRightGrid.setOverflowX(false);
this.bottomRightGrid.setOverflowY(false); this.bottomRightGrid.setOverflowY(false);
},
mounted: function () {
BI.QuickGridTable.superclass.mounted.apply(this, arguments);
var self = this;
this._leftWheelHandler = new BI.WheelHandler( this._leftWheelHandler = new BI.WheelHandler(
BI.bind(this._onWheelY, this), BI.bind(this._onWheelY, this),
BI.bind(this._shouldHandleX, this), BI.bind(this._shouldHandleX, this),
@ -29679,8 +29705,7 @@ BI.GridTableScrollbar = BI.inherit(BI.Widget, {
}) })
}, },
_init: function () { render: function () {
BI.GridTableScrollbar.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this.focused = false; this.focused = false;
this.isDragging = false; this.isDragging = false;
@ -29698,6 +29723,10 @@ BI.GridTableScrollbar = BI.inherit(BI.Widget, {
top: 0 top: 0
}] }]
}); });
},
mounted: function () {
var self = this, o = this.options;
var onWheel = o.orientation === 'horizontal' ? this._onWheelX : this._onWheelY; var onWheel = o.orientation === 'horizontal' ? this._onWheelX : this._onWheelY;
this._wheelHandler = new BI.WheelHandler( this._wheelHandler = new BI.WheelHandler(
BI.bind(onWheel, this), BI.bind(onWheel, this),
@ -30052,6 +30081,12 @@ BI.GridTableHorizontalScrollbar = BI.inherit(BI.Widget, {
populate: function () { populate: function () {
this.scrollbar.populate(); this.scrollbar.populate();
var o = this.options;
if (o.size < 1 || o.contentSize <= o.size) {
this.setVisible(false);
return;
}
this.setVisible(true);
} }
}); });
BI.GridTableHorizontalScrollbar.EVENT_SCROLL = "EVENT_SCROLL"; BI.GridTableHorizontalScrollbar.EVENT_SCROLL = "EVENT_SCROLL";
@ -30973,11 +31008,9 @@ BI.Table = BI.inherit(BI.Widget, {
}; };
this._initNormalScroll(); this._initNormalScroll();
BI.Resizers.add(this.getName(), function (e) { BI.ResizeDetector.addResizeListener(this, function () {
if (self.element.is(":visible") && BI.isWindow(e.target)) {
self._resize(); self._resize();
self.fireEvent(BI.Table.EVENT_TABLE_RESIZE); self.fireEvent(BI.Table.EVENT_TABLE_RESIZE);
}
}); });
BI.nextTick(function () { BI.nextTick(function () {
if (self.element.is(":visible")) { if (self.element.is(":visible")) {
@ -32003,7 +32036,6 @@ BI.Table = BI.inherit(BI.Widget, {
}, },
empty: function () { empty: function () {
BI.Resizers.remove(this.getName());
BI.Table.superclass.empty.apply(this, arguments); BI.Table.superclass.empty.apply(this, arguments);
}, },

261
dist/case.js → docs/case.js

@ -5225,232 +5225,6 @@ BI.ClearEditor.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.ClearEditor.EVENT_REMOVE = "EVENT_REMOVE"; BI.ClearEditor.EVENT_REMOVE = "EVENT_REMOVE";
BI.ClearEditor.EVENT_EMPTY = "EVENT_EMPTY"; BI.ClearEditor.EVENT_EMPTY = "EVENT_EMPTY";
BI.shortcut("bi.clear_editor", BI.ClearEditor);/** BI.shortcut("bi.clear_editor", BI.ClearEditor);/**
* guy
* 记录内容的输入框
* @class BI.RecordEditor
* @extends BI.Single
*/
BI.RecordEditor = BI.inherit(BI.Single, {
_defaultConfig: function () {
var conf = BI.RecordEditor.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-record-editor",
hgap: 4,
vgap: 2,
lgap: 0,
rgap: 0,
tgap: 0,
bgap: 0,
validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn,
allowBlank: true,
watermark: "",
errorText: "",
height: 30
})
},
_init: function () {
BI.RecordEditor.superclass._init.apply(this, arguments);
this.contents = [];
var self = this, o = this.options;
this.editor = BI.createWidget({
type: "bi.editor",
height: o.height,
hgap: o.hgap,
vgap: o.vgap,
lgap: o.lgap,
rgap: o.rgap,
tgap: o.tgap,
bgap: o.bgap,
value: o.value,
validationChecker: o.validationChecker,
quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank,
watermark: o.watermark,
errorText: o.errorText
});
this.textContainer = BI.createWidget({
type: "bi.vertical_adapt",
hgap: 2,
height: o.height
});
this.editor.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
});
this.editor.on(BI.Editor.EVENT_FOCUS, function () {
self._checkInputState();
self.fireEvent(BI.RecordEditor.EVENT_FOCUS, arguments);
});
this.editor.on(BI.Editor.EVENT_BLUR, function () {
self._checkInputState();
self.fireEvent(BI.RecordEditor.EVENT_BLUR, arguments);
});
this.editor.on(BI.Editor.EVENT_CLICK, function () {
self.fireEvent(BI.RecordEditor.EVENT_CLICK, arguments);
});
this.editor.on(BI.Editor.EVENT_CHANGE, function () {
self.fireEvent(BI.RecordEditor.EVENT_CHANGE, arguments);
});
this.editor.on(BI.Editor.EVENT_KEY_DOWN, function (v) {
self.fireEvent(BI.RecordEditor.EVENT_KEY_DOWN, arguments);
});
this.editor.on(BI.Editor.EVENT_VALID, function () {
self.fireEvent(BI.RecordEditor.EVENT_VALID, arguments);
});
this.editor.on(BI.Editor.EVENT_SPACE, function () {
self.fireEvent(BI.RecordEditor.EVENT_SPACE, arguments);
});
this.editor.on(BI.Editor.EVENT_CONFIRM, function () {
self.setState(self.getValue());
self.editor.isValid() && self.editor.setValue("");
self.fireEvent(BI.RecordEditor.EVENT_CONFIRM, arguments);
});
this.editor.on(BI.Editor.EVENT_START, function () {
self.fireEvent(BI.RecordEditor.EVENT_START, arguments);
});
this.editor.on(BI.Editor.EVENT_PAUSE, function () {
self.fireEvent(BI.RecordEditor.EVENT_PAUSE, arguments);
});
this.editor.on(BI.Editor.EVENT_STOP, function () {
self.fireEvent(BI.RecordEditor.EVENT_STOP, arguments);
});
this.editor.on(BI.Editor.EVENT_ENTER, function () {
self.fireEvent(BI.RecordEditor.EVENT_ENTER, arguments);
});
this.editor.on(BI.Editor.EVENT_BACKSPACE, function () {
self._checkInputState();
});
this.editor.on(BI.Editor.EVENT_REMOVE, function () {
if (!BI.isEmpty(self.contents)) {
self.contents.pop().destroy();
self.setValue(self.getValue());
self._adjustInputWidth();
}
});
this.editor.on(BI.Editor.EVENT_ERROR, function () {
self.fireEvent(BI.RecordEditor.EVENT_ERROR, arguments);
});
this.editor.on(BI.Editor.EVENT_RESTRICT, function () {
self.fireEvent(BI.RecordEditor.EVENT_RESTRICT, arguments);
});
this.editor.on(BI.Editor.EVENT_EMPTY, function () {
self.fireEvent(BI.RecordEditor.EVENT_EMPTY, arguments);
});
BI.createWidget({
type: "bi.inline",
element: this,
items: [this.textContainer, this.editor]
});
BI.ResizeDetector.addResizeListener(this, BI.bind(this._adjustInputWidth, this));
this._adjustInputWidth();
},
_adjustInputWidth: function () {
BI.nextTick(BI.bind(function () {
this.editor.element.css("width", this.element.width() - this.textContainer.element.outerWidth() - 10);
}, this));
},
_checkInputState: function () {
if (BI.isEmpty(this.contents)) {
this.editor.enableWarterMark();
} else {
this.editor.disableWarterMark();
}
},
focus: function () {
this.editor.focus();
},
blur: function () {
this.editor.blur();
},
isValid: function () {
return this.editor.isValid();
},
setErrorText: function (text) {
this.editor.setErrorText(text);
},
getErrorText: function () {
return this.editor.getErrorText();
},
isEditing: function () {
return this.editor.isEditing();
},
getLastValidValue: function () {
return this.editor.getLastValidValue();
},
setValue: function (k) {
this.editor.setValue(k);
},
getValue: function () {
return this.editor.getValue();
},
getState: function () {
var values = BI.map(this.contents, function (i, lb) {
return lb.getText();
});
if (BI.isNotEmptyString(this.editor.getValue())) {
return values.concat([this.editor.getValue()]);
}
return values;
},
setState: function (v) {
BI.RecordEditor.superclass.setValue.apply(this, arguments);
v = BI.isArray(v) ? v : (v == "" ? [] : [v]);
var contents = this.contents = [];
BI.each(v, function (i, lb) {
contents.push(BI.createWidget({
type: "bi.label",
height: 25,
cls: "record-editor-text",
text: lb
}))
});
this.textContainer.empty();
this.textContainer.populate(contents);
this.editor.isValid() && this.editor.setValue("");
this._checkInputState();
this._adjustInputWidth();
},
destroy: function () {
BI.Resizers.remove(this.getName());
BI.RecordEditor.superclass.destroy.apply(this, arguments);
}
});
BI.RecordEditor.EVENT_CHANGE = "EVENT_CHANGE";
BI.RecordEditor.EVENT_FOCUS = "EVENT_FOCUS";
BI.RecordEditor.EVENT_BLUR = "EVENT_BLUR";
BI.RecordEditor.EVENT_CLICK = "EVENT_CLICK";
BI.RecordEditor.EVENT_KEY_DOWN = "EVENT_KEY_DOWN";
BI.RecordEditor.EVENT_START = "EVENT_START";
BI.RecordEditor.EVENT_PAUSE = "EVENT_PAUSE";
BI.RecordEditor.EVENT_STOP = "EVENT_STOP";
BI.RecordEditor.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.RecordEditor.EVENT_VALID = "EVENT_VALID";
BI.RecordEditor.EVENT_ERROR = "EVENT_ERROR";
BI.RecordEditor.EVENT_ENTER = "EVENT_ENTER";
BI.RecordEditor.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.RecordEditor.EVENT_SPACE = "EVENT_SPACE";
BI.RecordEditor.EVENT_EMPTY = "EVENT_EMPTY";
BI.shortcut("bi.record_editor", BI.RecordEditor);/**
* Created by roy on 15/9/14. * Created by roy on 15/9/14.
*/ */
BI.SearchEditor = BI.inherit(BI.Widget, { BI.SearchEditor = BI.inherit(BI.Widget, {
@ -8614,6 +8388,8 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
}) })
}, },
alwaysShowPager: true,
setAllPages: function (v) { setAllPages: function (v) {
this.allPages.setText("/" + v); this.allPages.setText("/" + v);
this.allPages.setTitle(v); this.allPages.setTitle(v);
@ -8648,10 +8424,6 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
this.pager.setVisible(b); this.pager.setVisible(b);
}, },
getAliasWidth: function () {
return this.options.width - 100;
},
populate: function () { populate: function () {
this.pager.populate(); this.pager.populate();
} }
@ -8908,6 +8680,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.setVPagerVisible(true); this.setVPagerVisible(true);
vShow = true; vShow = true;
} }
this.setVisible(hShow || vShow);
var num = [74, 111, -9, 28]; var num = [74, 111, -9, 28];
var items = this.layout.attr("items"); var items = this.layout.attr("items");
@ -9362,10 +9135,6 @@ BI.AdaptiveTable = BI.inherit(BI.Widget, {
regionColumnSize: [], regionColumnSize: [],
headerCellStyleGetter: BI.emptyFn,
summaryCellStyleGetter: BI.emptyFn,
sequenceCellStyleGetter: BI.emptyFn,
header: [], header: [],
items: [], //二维数组 items: [], //二维数组
@ -9402,10 +9171,6 @@ BI.AdaptiveTable = BI.inherit(BI.Widget, {
regionColumnSize: data.regionColumnSize, regionColumnSize: data.regionColumnSize,
headerCellStyleGetter: o.headerCellStyleGetter,
summaryCellStyleGetter: o.summaryCellStyleGetter,
sequenceCellStyleGetter: o.sequenceCellStyleGetter,
header: o.header, header: o.header,
items: o.items, items: o.items,
//交叉表头 //交叉表头
@ -9587,6 +9352,8 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
mergeRule: BI.emptyFn, mergeRule: BI.emptyFn,
columnSize: [], columnSize: [],
minColumnSize: [],
maxColumnSize: [],
headerRowSize: 25, headerRowSize: 25,
footerRowSize: 25, footerRowSize: 25,
rowSize: 25, rowSize: 25,
@ -9770,9 +9537,6 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
headerRowSize: o.headerRowSize, headerRowSize: o.headerRowSize,
rowSize: o.rowSize, rowSize: o.rowSize,
regionColumnSize: o.regionColumnSize, regionColumnSize: o.regionColumnSize,
headerCellStyleGetter: o.headerCellStyleGetter,
summaryCellStyleGetter: o.summaryCellStyleGetter,
sequenceCellStyleGetter: o.sequenceCellStyleGetter,
header: data.header, header: data.header,
items: data.items items: data.items
}); });
@ -9919,6 +9683,8 @@ BI.DynamicSummaryTreeTable = BI.inherit(BI.Widget, {
mergeRule: BI.emptyFn, mergeRule: BI.emptyFn,
columnSize: [], columnSize: [],
minColumnSize: [],
maxColumnSize: [],
headerRowSize: 25, headerRowSize: 25,
footerRowSize: 25, footerRowSize: 25,
rowSize: 25, rowSize: 25,
@ -9968,15 +9734,13 @@ BI.DynamicSummaryTreeTable = BI.inherit(BI.Widget, {
mergeRule: o.mergeRule, mergeRule: o.mergeRule,
columnSize: o.columnSize, columnSize: o.columnSize,
minColumnSize: o.minColumnSize,
maxColumnSize: o.maxColumnSize,
headerRowSize: o.headerRowSize, headerRowSize: o.headerRowSize,
rowSize: o.rowSize, rowSize: o.rowSize,
regionColumnSize: o.regionColumnSize, regionColumnSize: o.regionColumnSize,
headerCellStyleGetter: o.headerCellStyleGetter,
summaryCellStyleGetter: o.summaryCellStyleGetter,
sequenceCellStyleGetter: o.sequenceCellStyleGetter,
header: data.header, header: data.header,
items: data.items items: data.items
}); });
@ -10428,9 +10192,6 @@ BI.LayerTreeTable = BI.inherit(BI.Widget, {
headerRowSize: o.headerRowSize, headerRowSize: o.headerRowSize,
rowSize: o.rowSize, rowSize: o.rowSize,
regionColumnSize: o.regionColumnSize, regionColumnSize: o.regionColumnSize,
headerCellStyleGetter: o.headerCellStyleGetter,
summaryCellStyleGetter: o.summaryCellStyleGetter,
sequenceCellStyleGetter: o.sequenceCellStyleGetter,
header: data.header, header: data.header,
items: data.items items: data.items
}); });
@ -10682,10 +10443,6 @@ BI.TableTree = BI.inherit(BI.Widget, {
regionColumnSize: o.regionColumnSize, regionColumnSize: o.regionColumnSize,
headerCellStyleGetter: o.headerCellStyleGetter,
summaryCellStyleGetter: o.summaryCellStyleGetter,
sequenceCellStyleGetter: o.sequenceCellStyleGetter,
header: data.header, header: data.header,
items: data.items items: data.items
}); });

90
dist/core.css → docs/core.css

@ -2958,6 +2958,16 @@
.bi-list-item.disabled:active { .bi-list-item.disabled:active {
background-color: #ffffff; background-color: #ffffff;
} }
.bi-theme-dark .bi-list-item:hover,
.bi-theme-dark .bi-list-item.hover {
background-color: #04070d;
color: #ffffff;
}
.bi-theme-dark .bi-list-item.disabled,
.bi-theme-dark .bi-list-item.disabled:hover,
.bi-theme-dark .bi-list-item.disabled:active {
background-color: transparent;
}
.bi-list-item-effect.active, .bi-list-item-effect.active,
.bi-list-item-effect:active { .bi-list-item-effect:active {
color: #009de3; color: #009de3;
@ -2965,7 +2975,16 @@
.bi-list-item-effect.disabled, .bi-list-item-effect.disabled,
.bi-list-item-effect.disabled:hover, .bi-list-item-effect.disabled:hover,
.bi-list-item-effect.disabled:active { .bi-list-item-effect.disabled:active {
color: #1a1a1a; color: #c4c6c6;
}
.bi-theme-dark .bi-list-item-effect.active,
.bi-theme-dark .bi-list-item-effect:active {
color: #009de3;
}
.bi-theme-dark .bi-list-item-effect.disabled,
.bi-theme-dark .bi-list-item-effect.disabled:hover,
.bi-theme-dark .bi-list-item-effect.disabled:active {
color: #c4c6c6;
} }
.bi-list-item-hover:hover, .bi-list-item-hover:hover,
.bi-list-item-hover.hover { .bi-list-item-hover.hover {
@ -2975,9 +2994,20 @@
.bi-list-item-hover.disabled, .bi-list-item-hover.disabled,
.bi-list-item-hover.disabled:hover, .bi-list-item-hover.disabled:hover,
.bi-list-item-hover.disabled:active { .bi-list-item-hover.disabled:active {
color: #1a1a1a; color: #c4c6c6;
background-color: #ffffff; background-color: #ffffff;
} }
.bi-theme-dark .bi-list-item-hover:hover,
.bi-theme-dark .bi-list-item-hover.hover {
color: #009de3;
background-color: #04070d;
}
.bi-theme-dark .bi-list-item-hover.disabled,
.bi-theme-dark .bi-list-item-hover.disabled:hover,
.bi-theme-dark .bi-list-item-hover.disabled:active {
color: #c4c6c6;
background-color: transparent;
}
.bi-list-item-active:hover, .bi-list-item-active:hover,
.bi-list-item-active.hover { .bi-list-item-active.hover {
background-color: #f4f4f4; background-color: #f4f4f4;
@ -2992,6 +3022,21 @@
.bi-list-item-active.disabled:active { .bi-list-item-active.disabled:active {
background-color: #ffffff; background-color: #ffffff;
} }
.bi-theme-dark .bi-list-item-active:hover,
.bi-theme-dark .bi-list-item-active.hover {
background-color: #04070d;
color: #ffffff;
}
.bi-theme-dark .bi-list-item-active.active,
.bi-theme-dark .bi-list-item-active:active {
color: #009de3;
background-color: #04070d;
}
.bi-theme-dark .bi-list-item-active.disabled,
.bi-theme-dark .bi-list-item-active.disabled:hover,
.bi-theme-dark .bi-list-item-active.disabled:active {
background-color: transparent;
}
.bi-list-item-select:hover, .bi-list-item-select:hover,
.bi-list-item-select.hover { .bi-list-item-select.hover {
color: #009de3; color: #009de3;
@ -3017,6 +3062,31 @@
.bi-list-item-select.disabled:active .bi-high-light { .bi-list-item-select.disabled:active .bi-high-light {
color: #c4c6c6 !important; color: #c4c6c6 !important;
} }
.bi-theme-dark .list-item-select:hover,
.bi-theme-dark .list-item-select.hover {
color: #009de3;
background-color: #04070d;
}
.bi-theme-dark .list-item-select:active,
.bi-theme-dark .list-item-select.active {
color: #ffffff;
background-color: #009de3;
}
.bi-theme-dark .list-item-select:active .bi-high-light,
.bi-theme-dark .list-item-select.active .bi-high-light {
color: #ffffff;
}
.bi-theme-dark .list-item-select.disabled,
.bi-theme-dark .list-item-select.disabled:hover,
.bi-theme-dark .list-item-select.disabled:active {
color: #c4c6c6 !important;
background-color: transparent !important;
}
.bi-theme-dark .list-item-select.disabled .bi-high-light,
.bi-theme-dark .list-item-select.disabled:hover .bi-high-light,
.bi-theme-dark .list-item-select.disabled:active .bi-high-light {
color: #c4c6c6 !important;
}
/*****************cursor*****************/ /*****************cursor*****************/
.cursor-pointer { .cursor-pointer {
cursor: pointer; cursor: pointer;
@ -3447,3 +3517,19 @@
vertical-align: middle; vertical-align: middle;
content: ' '; content: ' ';
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-theme-dark {
background-color: #191a2c;
color: #b2b2b2;
}
.bi-theme-dark .bi-input {
color: #ffffff;
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/

103
dist/core.js → docs/core.js

@ -13046,9 +13046,6 @@ if (!window.BI) {
} }
; ;
!(function ($, undefined) { !(function ($, undefined) {
_.extend(BI, {
version: "2.0"
});
var traverse = function (func, context) { var traverse = function (func, context) {
return function (value, key, obj) { return function (value, key, obj) {
return func.call(context, key, value, obj); return func.call(context, key, value, obj);
@ -14482,6 +14479,10 @@ BI.Widget = BI.inherit(BI.OB, {
this.destroyed && this.destroyed(); this.destroyed && this.destroyed();
}, },
isMounted: function () {
return this._isMounted;
},
setWidth: function (w) { setWidth: function (w) {
this.options.width = w; this.options.width = w;
this._initElementWidth(); this._initElementWidth();
@ -21028,7 +21029,8 @@ BI.LayerController = BI.inherit(BI.Controller, {
return this.get(name); return this.get(name);
} }
var widget = BI.createWidget((op.render || {}), { var widget = BI.createWidget((op.render || {}), {
type: "bi.layout" type: "bi.layout",
cls: op.cls
}); });
var layout = BI.createWidget({ var layout = BI.createWidget({
type: "bi.absolute", type: "bi.absolute",
@ -22558,23 +22560,6 @@ $(function () {
BI.Func = {}; BI.Func = {};
var formulas = {}; var formulas = {};
BI.extend(BI.Func, { BI.extend(BI.Func, {
/**
* 创建唯一的名字
* @param array
* @param name
* @returns {*}
*/
createDistinctName: function (array, name) {
var src = name, idx = 1;
name = name || "";
while (true) {
if (!ArrayUtils.getItemByName(array, name)) {
break;
}
name = src + (idx++);
}
return name;
},
/** /**
* 获取搜索结果 * 获取搜索结果
@ -22622,60 +22607,6 @@ $(function () {
finded: finded finded: finded
} }
}, },
/**
* 公式合法性验证
*/
checkFormulaValidation: function (str) {
if (!BI.isEmptyString(str)) {
if (BI.has(formulas, str)) {
return formulas[str];
}
formulas[str] = false;
var response = BI.requestSync("fr_bi_base", "check_validation_of_expression", {expression: str});
if (response.validation === "invalid") {
formulas[str] = false;
} else if (response.validation === "valid") {
formulas[str] = true;
}
return formulas[str];
} else {
return true;
}
},
getFormulaStringFromFormulaValue: function (formulaValue) {
var formulaString = "";
var regx = /\$[\{][^\}]*[\}]|\w*\w|\$\{[^\$\(\)\+\-\*\/)\$,]*\w\}|\$\{[^\$\(\)\+\-\*\/]*\w\}|\$\{[^\$\(\)\+\-\*\/]*[\u4e00-\u9fa5]\}|\w|(.)/g;
var result = formulaValue.match(regx);
BI.each(result, function (i, item) {
var fieldRegx = /\$[\{][^\}]*[\}]/;
var str = item.match(fieldRegx);
if (BI.isNotEmptyArray(str)) {
formulaString = formulaString + str[0].substring(2, item.length - 1);
} else {
formulaString = formulaString + item;
}
});
return formulaString;
},
formatAddress: function (address) {
var temp = '';
var url1 = /[a-zA-z]+:\/\/[^\s]*/;
var url2 = /\/[^\s]*/;
if (address.match(url1) || address.match(url2)) {
temp = address;
} else if (BI.isNotEmptyString(address)) {
temp = "http://" + address;
}
return temp;
},
getCompleteImageUrl: function (url) {
return BI.servletURL + "?op=fr_bi&cmd=get_uploaded_image&image_id=" + url;
}
}); });
/** /**
@ -22728,24 +22659,26 @@ $(function () {
}); });
}, },
getImageWidthAndHeight: function (src) {
return BI.requestSync("fr_bi_base", "get_image_size", {
src: src
});
},
isDarkColor: function (hex) { isDarkColor: function (hex) {
if (!hex) { if (!hex) {
return false; return false;
} }
var rgb = this.rgb2json(this.hex2rgb(hex)); var rgb = this.rgb2json(this.hex2rgb(hex));
var grayLevel = (rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114); var grayLevel = Math.round(rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114);
if (grayLevel < 192) { if (grayLevel < 140) {
return true; return true;
} }
return false; return false;
}, },
//获取对比颜色
getContrastColor: function (color) {
if (this.isDarkColor(color)) {
return "#ffffff";
}
return "#1a1a1a";
},
rgb2hex: function (rgbColour) { rgb2hex: function (rgbColour) {
if (!rgbColour || rgbColour.substr(0, 3) != "rgb") { if (!rgbColour || rgbColour.substr(0, 3) != "rgb") {
return ""; return "";
@ -25033,7 +24966,7 @@ _.extend(BI, {
Top: "top", Top: "top",
Bottom: "bottom" Bottom: "bottom"
} }
});/** });BI.version = "2.0";/**
* absolute实现的居中布局 * absolute实现的居中布局
* @class BI.AbsoluteCenterLayout * @class BI.AbsoluteCenterLayout
* @extends BI.Layout * @extends BI.Layout
@ -26842,7 +26775,7 @@ BI.CardLayout = BI.inherit(BI.Layout, {
isCardExisted: function (cardName) { isCardExisted: function (cardName) {
return BI.some(this.options.items, function (i, item) { return BI.some(this.options.items, function (i, item) {
return item.cardName === cardName && item.el; return item.cardName == cardName && item.el;
}); });
}, },

0
dist/cursor/cursor_drag_hand.cur → docs/cursor/cursor_drag_hand.cur

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
dist/cursor/cursor_hand.cur → docs/cursor/cursor_hand.cur

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
dist/cursor/cursor_left_right.cur → docs/cursor/cursor_left_right.cur

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

0
dist/font/iconfont.eot → docs/font/iconfont.eot

0
dist/font/iconfont.svg → docs/font/iconfont.svg

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

0
dist/font/iconfont.ttf → docs/font/iconfont.ttf

0
dist/font/iconfont.woff → docs/font/iconfont.woff

0
dist/icon/bubble_no_projector.png → docs/icon/bubble_no_projector.png

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

0
dist/icon/bubble_projector.png → docs/icon/bubble_projector.png

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

0
dist/icon/business_package.png → docs/icon/business_package.png

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 559 B

0
dist/icon/business_package_add.png → docs/icon/business_package_add.png

Before

Width:  |  Height:  |  Size: 525 B

After

Width:  |  Height:  |  Size: 525 B

0
dist/icon/business_package_add_disable.png → docs/icon/business_package_add_disable.png

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 502 B

0
dist/icon/chartsetting/address_marker_big.png → docs/icon/chartsetting/address_marker_big.png

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

0
dist/icon/chartsetting/address_marker_small.png → docs/icon/chartsetting/address_marker_small.png

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

0
dist/icon/chartsetting/icon_bubble_3d.png → docs/icon/chartsetting/icon_bubble_3d.png

Before

Width:  |  Height:  |  Size: 694 B

After

Width:  |  Height:  |  Size: 694 B

0
dist/icon/chartsetting/icon_bubble_normal.png → docs/icon/chartsetting/icon_bubble_normal.png

Before

Width:  |  Height:  |  Size: 400 B

After

Width:  |  Height:  |  Size: 400 B

0
dist/icon/chartsetting/icon_dashboard_1.png → docs/icon/chartsetting/icon_dashboard_1.png

Before

Width:  |  Height:  |  Size: 868 B

After

Width:  |  Height:  |  Size: 868 B

0
dist/icon/chartsetting/icon_dashboard_2.png → docs/icon/chartsetting/icon_dashboard_2.png

Before

Width:  |  Height:  |  Size: 769 B

After

Width:  |  Height:  |  Size: 769 B

0
dist/icon/chartsetting/icon_dashboard_3.png → docs/icon/chartsetting/icon_dashboard_3.png

Before

Width:  |  Height:  |  Size: 971 B

After

Width:  |  Height:  |  Size: 971 B

0
dist/icon/chartsetting/icon_dashboard_4.png → docs/icon/chartsetting/icon_dashboard_4.png

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

0
dist/icon/chartsetting/icon_dashboard_5.png → docs/icon/chartsetting/icon_dashboard_5.png

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

0
dist/icon/chartsetting/icon_dashboard_6.png → docs/icon/chartsetting/icon_dashboard_6.png

Before

Width:  |  Height:  |  Size: 386 B

After

Width:  |  Height:  |  Size: 386 B

0
dist/icon/chartsetting/icon_dashboard_7.png → docs/icon/chartsetting/icon_dashboard_7.png

Before

Width:  |  Height:  |  Size: 329 B

After

Width:  |  Height:  |  Size: 329 B

0
dist/icon/chartsetting/icon_gradual_highlight.png → docs/icon/chartsetting/icon_gradual_highlight.png

Before

Width:  |  Height:  |  Size: 556 B

After

Width:  |  Height:  |  Size: 556 B

0
dist/icon/chartsetting/icon_multi_pie_gradient_darker.png → docs/icon/chartsetting/icon_multi_pie_gradient_darker.png

Before

Width:  |  Height:  |  Size: 514 B

After

Width:  |  Height:  |  Size: 514 B

0
dist/icon/chartsetting/icon_multi_pie_gradient_lighter.png → docs/icon/chartsetting/icon_multi_pie_gradient_lighter.png

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 523 B

0
dist/icon/chartsetting/icon_style_3d.png → docs/icon/chartsetting/icon_style_3d.png

Before

Width:  |  Height:  |  Size: 256 B

After

Width:  |  Height:  |  Size: 256 B

0
dist/icon/chartsetting/icon_style_acc_radar_circle.png → docs/icon/chartsetting/icon_style_acc_radar_circle.png

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

0
dist/icon/chartsetting/icon_style_acc_radar_polygon.png → docs/icon/chartsetting/icon_style_acc_radar_polygon.png

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
dist/icon/chartsetting/icon_style_area_broken.png → docs/icon/chartsetting/icon_style_area_broken.png

Before

Width:  |  Height:  |  Size: 369 B

After

Width:  |  Height:  |  Size: 369 B

0
dist/icon/chartsetting/icon_style_area_curve.png → docs/icon/chartsetting/icon_style_area_curve.png

Before

Width:  |  Height:  |  Size: 391 B

After

Width:  |  Height:  |  Size: 391 B

0
dist/icon/chartsetting/icon_style_area_vertical.png → docs/icon/chartsetting/icon_style_area_vertical.png

Before

Width:  |  Height:  |  Size: 210 B

After

Width:  |  Height:  |  Size: 210 B

0
dist/icon/chartsetting/icon_style_gradual.png → docs/icon/chartsetting/icon_style_gradual.png

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

0
dist/icon/chartsetting/icon_style_line_broken.png → docs/icon/chartsetting/icon_style_line_broken.png

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 356 B

0
dist/icon/chartsetting/icon_style_line_curve.png → docs/icon/chartsetting/icon_style_line_curve.png

Before

Width:  |  Height:  |  Size: 366 B

After

Width:  |  Height:  |  Size: 366 B

0
dist/icon/chartsetting/icon_style_line_vertical.png → docs/icon/chartsetting/icon_style_line_vertical.png

Before

Width:  |  Height:  |  Size: 208 B

After

Width:  |  Height:  |  Size: 208 B

0
dist/icon/chartsetting/icon_style_normal.png → docs/icon/chartsetting/icon_style_normal.png

Before

Width:  |  Height:  |  Size: 179 B

After

Width:  |  Height:  |  Size: 179 B

0
dist/icon/chartsetting/icon_style_pie_equal_arc_rose.png → docs/icon/chartsetting/icon_style_pie_equal_arc_rose.png

Before

Width:  |  Height:  |  Size: 347 B

After

Width:  |  Height:  |  Size: 347 B

0
dist/icon/chartsetting/icon_style_pie_normal.png → docs/icon/chartsetting/icon_style_pie_normal.png

Before

Width:  |  Height:  |  Size: 432 B

After

Width:  |  Height:  |  Size: 432 B

0
dist/icon/chartsetting/icon_style_pie_not_equal_arc_rose.png → docs/icon/chartsetting/icon_style_pie_not_equal_arc_rose.png

Before

Width:  |  Height:  |  Size: 413 B

After

Width:  |  Height:  |  Size: 413 B

0
dist/icon/chartsetting/icon_style_radar_circle.png → docs/icon/chartsetting/icon_style_radar_circle.png

Before

Width:  |  Height:  |  Size: 793 B

After

Width:  |  Height:  |  Size: 793 B

0
dist/icon/chartsetting/icon_style_radar_polygon.png → docs/icon/chartsetting/icon_style_radar_polygon.png

Before

Width:  |  Height:  |  Size: 826 B

After

Width:  |  Height:  |  Size: 826 B

0
dist/icon/chartsetting/icon_style_transparent.png → docs/icon/chartsetting/icon_style_transparent.png

Before

Width:  |  Height:  |  Size: 195 B

After

Width:  |  Height:  |  Size: 195 B

0
dist/icon/check-box-active.png → docs/icon/check-box-active.png

Before

Width:  |  Height:  |  Size: 302 B

After

Width:  |  Height:  |  Size: 302 B

0
dist/icon/check-box-disable.png → docs/icon/check-box-disable.png

Before

Width:  |  Height:  |  Size: 196 B

After

Width:  |  Height:  |  Size: 196 B

0
dist/icon/check-box-disable2.png → docs/icon/check-box-disable2.png

Before

Width:  |  Height:  |  Size: 303 B

After

Width:  |  Height:  |  Size: 303 B

0
dist/icon/check-box-normal.png → docs/icon/check-box-normal.png

Before

Width:  |  Height:  |  Size: 198 B

After

Width:  |  Height:  |  Size: 198 B

0
dist/icon/dots.png → docs/icon/dots.png

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

0
dist/icon/drag/icon_area.png → docs/icon/drag/icon_area.png

Before

Width:  |  Height:  |  Size: 666 B

After

Width:  |  Height:  |  Size: 666 B

0
dist/icon/drag/icon_area_a.png → docs/icon/drag/icon_area_a.png

Before

Width:  |  Height:  |  Size: 594 B

After

Width:  |  Height:  |  Size: 594 B

0
dist/icon/drag/icon_area_c.png → docs/icon/drag/icon_area_c.png

Before

Width:  |  Height:  |  Size: 459 B

After

Width:  |  Height:  |  Size: 459 B

0
dist/icon/drag/icon_area_pa.png → docs/icon/drag/icon_area_pa.png

Before

Width:  |  Height:  |  Size: 475 B

After

Width:  |  Height:  |  Size: 475 B

0
dist/icon/drag/icon_area_r.png → docs/icon/drag/icon_area_r.png

Before

Width:  |  Height:  |  Size: 569 B

After

Width:  |  Height:  |  Size: 569 B

0
dist/icon/drag/icon_axis.png → docs/icon/drag/icon_axis.png

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

0
dist/icon/drag/icon_axis_a.png → docs/icon/drag/icon_axis_a.png

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 205 B

0
dist/icon/drag/icon_axis_c.png → docs/icon/drag/icon_axis_c.png

Before

Width:  |  Height:  |  Size: 224 B

After

Width:  |  Height:  |  Size: 224 B

0
dist/icon/drag/icon_axis_f.png → docs/icon/drag/icon_axis_f.png

Before

Width:  |  Height:  |  Size: 196 B

After

Width:  |  Height:  |  Size: 196 B

0
dist/icon/drag/icon_axis_pa.png → docs/icon/drag/icon_axis_pa.png

Before

Width:  |  Height:  |  Size: 202 B

After

Width:  |  Height:  |  Size: 202 B

0
dist/icon/drag/icon_bar.png → docs/icon/drag/icon_bar.png

Before

Width:  |  Height:  |  Size: 222 B

After

Width:  |  Height:  |  Size: 222 B

0
dist/icon/drag/icon_bar_a.png → docs/icon/drag/icon_bar_a.png

Before

Width:  |  Height:  |  Size: 199 B

After

Width:  |  Height:  |  Size: 199 B

0
dist/icon/drag/icon_bar_c.png → docs/icon/drag/icon_bar_c.png

Before

Width:  |  Height:  |  Size: 191 B

After

Width:  |  Height:  |  Size: 191 B

0
dist/icon/drag/icon_bubble.png → docs/icon/drag/icon_bubble.png

Before

Width:  |  Height:  |  Size: 372 B

After

Width:  |  Height:  |  Size: 372 B

0
dist/icon/drag/icon_bubble_f.png → docs/icon/drag/icon_bubble_f.png

Before

Width:  |  Height:  |  Size: 352 B

After

Width:  |  Height:  |  Size: 352 B

0
dist/icon/drag/icon_combine.png → docs/icon/drag/icon_combine.png

Before

Width:  |  Height:  |  Size: 424 B

After

Width:  |  Height:  |  Size: 424 B

0
dist/icon/drag/icon_combine_m.png → docs/icon/drag/icon_combine_m.png

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 431 B

0
dist/icon/drag/icon_complex.png → docs/icon/drag/icon_complex.png

Before

Width:  |  Height:  |  Size: 208 B

After

Width:  |  Height:  |  Size: 208 B

0
dist/icon/drag/icon_cross.png → docs/icon/drag/icon_cross.png

Before

Width:  |  Height:  |  Size: 214 B

After

Width:  |  Height:  |  Size: 214 B

0
dist/icon/drag/icon_dashboard.png → docs/icon/drag/icon_dashboard.png

Before

Width:  |  Height:  |  Size: 865 B

After

Width:  |  Height:  |  Size: 865 B

0
dist/icon/drag/icon_donut.png → docs/icon/drag/icon_donut.png

Before

Width:  |  Height:  |  Size: 510 B

After

Width:  |  Height:  |  Size: 510 B

0
dist/icon/drag/icon_funnel.png → docs/icon/drag/icon_funnel.png

Before

Width:  |  Height:  |  Size: 284 B

After

Width:  |  Height:  |  Size: 284 B

0
dist/icon/drag/icon_group.png → docs/icon/drag/icon_group.png

Before

Width:  |  Height:  |  Size: 221 B

After

Width:  |  Height:  |  Size: 221 B

0
dist/icon/drag/icon_line.png → docs/icon/drag/icon_line.png

Before

Width:  |  Height:  |  Size: 504 B

After

Width:  |  Height:  |  Size: 504 B

0
dist/icon/drag/icon_map_c.png → docs/icon/drag/icon_map_c.png

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 403 B

0
dist/icon/drag/icon_map_g.png → docs/icon/drag/icon_map_g.png

Before

Width:  |  Height:  |  Size: 452 B

After

Width:  |  Height:  |  Size: 452 B

0
dist/icon/drag/icon_map_gis.png → docs/icon/drag/icon_map_gis.png

Before

Width:  |  Height:  |  Size: 438 B

After

Width:  |  Height:  |  Size: 438 B

0
dist/icon/drag/icon_map_s.png → docs/icon/drag/icon_map_s.png

Before

Width:  |  Height:  |  Size: 311 B

After

Width:  |  Height:  |  Size: 311 B

0
dist/icon/drag/icon_multi_pie.png → docs/icon/drag/icon_multi_pie.png

Before

Width:  |  Height:  |  Size: 625 B

After

Width:  |  Height:  |  Size: 625 B

0
dist/icon/drag/icon_multi_pie_lighter.png → docs/icon/drag/icon_multi_pie_lighter.png

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 523 B

0
dist/icon/drag/icon_multi_pie_thicker.png → docs/icon/drag/icon_multi_pie_thicker.png

Before

Width:  |  Height:  |  Size: 514 B

After

Width:  |  Height:  |  Size: 514 B

0
dist/icon/drag/icon_pie.png → docs/icon/drag/icon_pie.png

Before

Width:  |  Height:  |  Size: 432 B

After

Width:  |  Height:  |  Size: 432 B

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save