Browse Source

Merge pull request #450 in FUI/fineui from ~WINDY/fui:master to master

* commit '1ec8b2a1d96ce569bd36987ff60618ddc2efd974':
  update
  BI-24459
  update
  BI-24473
  BI-24461
  BI-24464
es6
guy 6 years ago
parent
commit
207201e5cc
  1. 4
      demo/js/widget/singleselct/demo.single_select_combo.js
  2. 26
      dist/_fineui.min.js
  3. 5
      dist/base.css
  4. 24
      dist/bundle.css
  5. 89
      dist/bundle.js
  6. 2
      dist/bundle.min.css
  7. 20
      dist/bundle.min.js
  8. 44
      dist/case.js
  9. 19
      dist/core.css
  10. 19
      dist/core_without_normalize.css
  11. 4
      dist/demo.js
  12. 24
      dist/fineui.css
  13. 89
      dist/fineui.js
  14. 2
      dist/fineui.min.css
  15. 26
      dist/fineui.min.js
  16. BIN
      dist/images/1x/icon/dark_tree_collapse_1.png
  17. BIN
      dist/images/1x/icon/dark_tree_collapse_2.png
  18. BIN
      dist/images/1x/icon/dark_tree_collapse_3.png
  19. BIN
      dist/images/1x/icon/dark_tree_collapse_4.png
  20. BIN
      dist/images/1x/icon/dark_tree_expand_1.png
  21. BIN
      dist/images/1x/icon/dark_tree_expand_2.png
  22. BIN
      dist/images/1x/icon/dark_tree_expand_3.png
  23. BIN
      dist/images/1x/icon/dark_tree_expand_4.png
  24. BIN
      dist/images/1x/icon/dark_tree_vertical_line_1.png
  25. BIN
      dist/images/1x/icon/dark_tree_vertical_line_2.png
  26. BIN
      dist/images/1x/icon/dark_tree_vertical_line_3.png
  27. BIN
      dist/images/1x/icon/dark_tree_vertical_line_4.png
  28. BIN
      dist/images/1x/icon/dark_tree_vertical_line_5.png
  29. BIN
      dist/images/1x/icon/tree_collapse_1.png
  30. BIN
      dist/images/1x/icon/tree_collapse_2.png
  31. BIN
      dist/images/1x/icon/tree_collapse_3.png
  32. BIN
      dist/images/1x/icon/tree_collapse_4.png
  33. BIN
      dist/images/1x/icon/tree_expand_1.png
  34. BIN
      dist/images/1x/icon/tree_expand_2.png
  35. BIN
      dist/images/1x/icon/tree_expand_3.png
  36. BIN
      dist/images/1x/icon/tree_expand_4.png
  37. BIN
      dist/images/1x/icon/tree_vertical_line_1.png
  38. BIN
      dist/images/1x/icon/tree_vertical_line_2.png
  39. BIN
      dist/images/1x/icon/tree_vertical_line_3.png
  40. BIN
      dist/images/1x/icon/tree_vertical_line_4.png
  41. BIN
      dist/images/1x/icon/tree_vertical_line_5.png
  42. BIN
      dist/images/2x/icon/dark_tree_collapse_1.png
  43. BIN
      dist/images/2x/icon/dark_tree_collapse_2.png
  44. BIN
      dist/images/2x/icon/dark_tree_collapse_3.png
  45. BIN
      dist/images/2x/icon/dark_tree_collapse_4.png
  46. BIN
      dist/images/2x/icon/dark_tree_expand_1.png
  47. BIN
      dist/images/2x/icon/dark_tree_expand_2.png
  48. BIN
      dist/images/2x/icon/dark_tree_expand_3.png
  49. BIN
      dist/images/2x/icon/dark_tree_expand_4.png
  50. BIN
      dist/images/2x/icon/dark_tree_vertical_line_1.png
  51. BIN
      dist/images/2x/icon/dark_tree_vertical_line_2.png
  52. BIN
      dist/images/2x/icon/dark_tree_vertical_line_3.png
  53. BIN
      dist/images/2x/icon/dark_tree_vertical_line_4.png
  54. BIN
      dist/images/2x/icon/dark_tree_vertical_line_5.png
  55. BIN
      dist/images/2x/icon/tree_collapse_1.png
  56. BIN
      dist/images/2x/icon/tree_collapse_2.png
  57. BIN
      dist/images/2x/icon/tree_collapse_3.png
  58. BIN
      dist/images/2x/icon/tree_collapse_4.png
  59. BIN
      dist/images/2x/icon/tree_expand_1.png
  60. BIN
      dist/images/2x/icon/tree_expand_2.png
  61. BIN
      dist/images/2x/icon/tree_expand_3.png
  62. BIN
      dist/images/2x/icon/tree_expand_4.png
  63. BIN
      dist/images/2x/icon/tree_vertical_line_1.png
  64. BIN
      dist/images/2x/icon/tree_vertical_line_2.png
  65. BIN
      dist/images/2x/icon/tree_vertical_line_3.png
  66. BIN
      dist/images/2x/icon/tree_vertical_line_4.png
  67. BIN
      dist/images/2x/icon/tree_vertical_line_5.png
  68. 45
      dist/widget.js
  69. 2
      src/case/button/node/node.arrow.js
  70. 4
      src/case/button/node/node.first.plus.js
  71. 4
      src/case/button/node/node.last.plus.js
  72. 4
      src/case/button/node/node.mid.plus.js
  73. 10
      src/case/button/treeitem/item.first.treeleaf.js
  74. 10
      src/case/button/treeitem/item.last.treeleaf.js
  75. 10
      src/case/button/treeitem/item.mid.treeleaf.js
  76. 1
      src/css/base/single/tip/tip.css
  77. 4
      src/css/base/trigger/trigger.css
  78. 19
      src/css/core/utils/common.css
  79. 1
      src/less/base/single/tip/tip.toast.less
  80. 12
      src/less/base/trigger/trigger.less
  81. 22
      src/less/core/utils/common.less
  82. 2
      src/widget/dynamicdate/dynamicdate.popup.js
  83. 2
      src/widget/dynamicdatetime/dynamicdatetime.popup.js
  84. 2
      src/widget/intervalslider/intervalslider.js
  85. 2
      src/widget/multiselect/multiselect.combo.js
  86. 2
      src/widget/multiselect/multiselect.insert.combo.js
  87. 2
      src/widget/multiselect/multiselect.insert.combo.nobar.js
  88. 8
      src/widget/multitree/multi.tree.combo.js
  89. 8
      src/widget/singleselect/singleselect.combo.js
  90. 8
      src/widget/singleselect/singleselect.insert.combo.js
  91. 2
      src/widget/year/popup.year.js
  92. 2
      src/widget/yearmonth/popup.yearmonth.js
  93. 2
      src/widget/yearquarter/popup.yearquarter.js
  94. 3
      src/widget/yearquarter/trigger.yearquarter.js

4
demo/js/widget/singleselct/demo.single_select_combo.js

@ -29,14 +29,14 @@ Demo.SingleSelectCombo = BI.inherit(BI.Widget, {
_getItemsByTimes: function (items, times) {
var res = [];
for (var i = (times - 1) * 10; items[i] && i < times * 10; i++) {
for (var i = (times - 1) * 100; items[i] && i < times * 100; i++) {
res.push(items[i]);
}
return res;
},
_hasNextByTimes: function (items, times) {
return times * 10 < items.length;
return times * 100 < items.length;
},
_itemsCreator: function (options, callback) {

26
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

5
dist/base.css vendored

@ -1311,7 +1311,6 @@ body .bi-button.button-ignore.disabled.ghost .b-font:before,
}
.bi-toast {
font-size: 14px;
color: #ffffff;
max-width: 400px;
min-width: 150px;
@ -1896,10 +1895,10 @@ ul.ztree.zTreeDragUL {
.bi-trigger .trigger-down {
display: block;
}
.bi-combo-popup .trigger-up {
.bi-combo-popup > .bi-trigger .trigger-up {
display: block;
}
.bi-combo-popup .trigger-down {
.bi-combo-popup > .bi-trigger .trigger-down {
display: none;
}

24
dist/bundle.css vendored

@ -439,6 +439,15 @@ textarea {
.bi-high-light .bi-textarea {
color: #3685f2;
}
.bi-error {
color: #ff4949;
}
.bi-error .bi-input {
color: #ff4949;
}
.bi-error .bi-textarea {
color: #ff4949;
}
.bi-high-light-background {
background-color: #3685f2;
color: #ffffff;
@ -449,6 +458,16 @@ textarea {
.bi-high-light-background .bi-textarea {
color: #ffffff;
}
.bi-error-background {
background-color: #ff4949;
color: #ffffff;
}
.bi-error-background .bi-input {
color: #ffffff;
}
.bi-error-background .bi-textarea {
color: #ffffff;
}
.bi-high-light-border {
border-color: #3685f2;
}
@ -2989,7 +3008,6 @@ body .bi-button.button-ignore.disabled.ghost .b-font:before,
}
.bi-toast {
font-size: 14px;
color: #ffffff;
max-width: 400px;
min-width: 150px;
@ -3574,10 +3592,10 @@ ul.ztree.zTreeDragUL {
.bi-trigger .trigger-down {
display: block;
}
.bi-combo-popup .trigger-up {
.bi-combo-popup > .bi-trigger .trigger-up {
display: block;
}
.bi-combo-popup .trigger-down {
.bi-combo-popup > .bi-trigger .trigger-down {
display: none;
}

89
dist/bundle.js vendored

@ -72918,7 +72918,7 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({
@ -72969,7 +72969,7 @@ BI.FirstPlusGroupNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 25
height: 24
});
},
_init: function () {
@ -73002,7 +73002,7 @@ BI.FirstPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({
@ -73151,7 +73151,7 @@ BI.LastPlusGroupNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 25
height: 24
});
},
_init: function () {
@ -73184,7 +73184,7 @@ BI.LastPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({
@ -73232,7 +73232,7 @@ BI.MidPlusGroupNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 25
height: 24
});
},
_init: function () {
@ -73265,7 +73265,7 @@ BI.MidPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({
@ -73522,7 +73522,7 @@ BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, {
id: "",
pId: "",
layer: 0,
height: 25
height: 24
});
},
_init: function () {
@ -73551,19 +73551,19 @@ BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? "" : {
width: 13,
width: 12,
el: {
type: "bi.layout",
cls: "base-line-conn-background",
width: 13,
width: 12,
height: o.height
}
}), {
width: 25,
width: 24,
el: {
type: "bi.layout",
cls: "mid-line-conn-background",
width: 25,
width: 24,
height: o.height
}
}, {
@ -73713,7 +73713,7 @@ BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, {
id: "",
pId: "",
layer: 0,
height: 25
height: 24
});
},
_init: function () {
@ -73742,19 +73742,19 @@ BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? "" : {
width: 13,
width: 12,
el: {
type: "bi.layout",
cls: "base-line-conn-background",
width: 13,
width: 12,
height: o.height
}
}), {
width: 25,
width: 24,
el: {
type: "bi.layout",
cls: "mid-line-conn-background",
width: 25,
width: 24,
height: o.height
}
}, {
@ -73817,7 +73817,7 @@ BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, {
id: "",
pId: "",
layer: 0,
height: 25
height: 24
});
},
_init: function () {
@ -73846,19 +73846,19 @@ BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? "" : {
width: 13,
width: 12,
el: {
type: "bi.layout",
cls: "base-line-conn-background",
width: 13,
width: 12,
height: o.height
}
}), {
width: 25,
width: 24,
el: {
type: "bi.layout",
cls: "mid-line-conn-background",
width: 25,
width: 24,
height: o.height
}
}, {
@ -91204,7 +91204,7 @@ BI.shortcut("bi.dynamic_date_param_item", BI.DynamicDateParamItem);BI.DynamicDat
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
ref: function () {
@ -91965,7 +91965,7 @@ BI.extend(BI.DynamicDateTimeCombo, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
ref: function () {
@ -94491,7 +94491,7 @@ BI.Filter.FILTER_TYPE.EMPTY_CONDITION = 37;
}());/**
* Created by zcf on 2016/9/26.
*/
BI.IntervalSlider = BI.inherit(BI.Widget, {
BI.IntervalSlider = BI.inherit(BI.Single, {
_constant: {
EDITOR_WIDTH: 58,
EDITOR_R_GAP: 60,
@ -97524,7 +97524,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -97908,7 +97908,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -98275,7 +98275,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -101323,10 +101323,10 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
constants: {
offset: {
top: 1,
left: 1,
right: 2,
bottom: 33
top: 0,
left: 0,
right: 0,
bottom: 31
}
},
@ -106236,14 +106236,6 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {
@ -106514,14 +106506,6 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {
@ -109997,7 +109981,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Year"),
ref: function () {
@ -110748,7 +110732,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Month"),
ref: function () {
@ -111723,7 +111707,7 @@ BI.extend(BI.DynamicYearQuarterCombo, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Quarter"),
ref: function () {
@ -111987,7 +111971,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna
});
editor.on(BI.SignEditor.EVENT_CHANGE, function () {
if(isYear) {
self._autoSwitch(editor.getValue());
self._autoSwitch(editor);
}
});
@ -112020,6 +112004,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna
if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) {
if (v.length === 4 && this._yearCheck(v)) {
this._doEditorConfirm(editor);
this.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM);
this.quarterEditor.focus();
}
}

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

20
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

44
dist/case.js vendored

@ -447,7 +447,7 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({
@ -498,7 +498,7 @@ BI.FirstPlusGroupNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 25
height: 24
});
},
_init: function () {
@ -531,7 +531,7 @@ BI.FirstPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({
@ -680,7 +680,7 @@ BI.LastPlusGroupNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 25
height: 24
});
},
_init: function () {
@ -713,7 +713,7 @@ BI.LastPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({
@ -761,7 +761,7 @@ BI.MidPlusGroupNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 25
height: 24
});
},
_init: function () {
@ -794,7 +794,7 @@ BI.MidPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({
@ -1051,7 +1051,7 @@ BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, {
id: "",
pId: "",
layer: 0,
height: 25
height: 24
});
},
_init: function () {
@ -1080,19 +1080,19 @@ BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? "" : {
width: 13,
width: 12,
el: {
type: "bi.layout",
cls: "base-line-conn-background",
width: 13,
width: 12,
height: o.height
}
}), {
width: 25,
width: 24,
el: {
type: "bi.layout",
cls: "mid-line-conn-background",
width: 25,
width: 24,
height: o.height
}
}, {
@ -1242,7 +1242,7 @@ BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, {
id: "",
pId: "",
layer: 0,
height: 25
height: 24
});
},
_init: function () {
@ -1271,19 +1271,19 @@ BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? "" : {
width: 13,
width: 12,
el: {
type: "bi.layout",
cls: "base-line-conn-background",
width: 13,
width: 12,
height: o.height
}
}), {
width: 25,
width: 24,
el: {
type: "bi.layout",
cls: "mid-line-conn-background",
width: 25,
width: 24,
height: o.height
}
}, {
@ -1346,7 +1346,7 @@ BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, {
id: "",
pId: "",
layer: 0,
height: 25
height: 24
});
},
_init: function () {
@ -1375,19 +1375,19 @@ BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? "" : {
width: 13,
width: 12,
el: {
type: "bi.layout",
cls: "base-line-conn-background",
width: 13,
width: 12,
height: o.height
}
}), {
width: 25,
width: 24,
el: {
type: "bi.layout",
cls: "mid-line-conn-background",
width: 25,
width: 24,
height: o.height
}
}, {

19
dist/core.css vendored

@ -439,6 +439,15 @@ textarea {
.bi-high-light .bi-textarea {
color: #3685f2;
}
.bi-error {
color: #ff4949;
}
.bi-error .bi-input {
color: #ff4949;
}
.bi-error .bi-textarea {
color: #ff4949;
}
.bi-high-light-background {
background-color: #3685f2;
color: #ffffff;
@ -449,6 +458,16 @@ textarea {
.bi-high-light-background .bi-textarea {
color: #ffffff;
}
.bi-error-background {
background-color: #ff4949;
color: #ffffff;
}
.bi-error-background .bi-input {
color: #ffffff;
}
.bi-error-background .bi-textarea {
color: #ffffff;
}
.bi-high-light-border {
border-color: #3685f2;
}

19
dist/core_without_normalize.css vendored

@ -161,6 +161,15 @@ textarea {
.bi-high-light .bi-textarea {
color: #3685f2;
}
.bi-error {
color: #ff4949;
}
.bi-error .bi-input {
color: #ff4949;
}
.bi-error .bi-textarea {
color: #ff4949;
}
.bi-high-light-background {
background-color: #3685f2;
color: #ffffff;
@ -171,6 +180,16 @@ textarea {
.bi-high-light-background .bi-textarea {
color: #ffffff;
}
.bi-error-background {
background-color: #ff4949;
color: #ffffff;
}
.bi-error-background .bi-input {
color: #ffffff;
}
.bi-error-background .bi-textarea {
color: #ffffff;
}
.bi-high-light-border {
border-color: #3685f2;
}

4
dist/demo.js vendored

@ -13286,14 +13286,14 @@ Demo.SingleSelectCombo = BI.inherit(BI.Widget, {
_getItemsByTimes: function (items, times) {
var res = [];
for (var i = (times - 1) * 10; items[i] && i < times * 10; i++) {
for (var i = (times - 1) * 100; items[i] && i < times * 100; i++) {
res.push(items[i]);
}
return res;
},
_hasNextByTimes: function (items, times) {
return times * 10 < items.length;
return times * 100 < items.length;
},
_itemsCreator: function (options, callback) {

24
dist/fineui.css vendored

@ -439,6 +439,15 @@ textarea {
.bi-high-light .bi-textarea {
color: #3685f2;
}
.bi-error {
color: #ff4949;
}
.bi-error .bi-input {
color: #ff4949;
}
.bi-error .bi-textarea {
color: #ff4949;
}
.bi-high-light-background {
background-color: #3685f2;
color: #ffffff;
@ -449,6 +458,16 @@ textarea {
.bi-high-light-background .bi-textarea {
color: #ffffff;
}
.bi-error-background {
background-color: #ff4949;
color: #ffffff;
}
.bi-error-background .bi-input {
color: #ffffff;
}
.bi-error-background .bi-textarea {
color: #ffffff;
}
.bi-high-light-border {
border-color: #3685f2;
}
@ -2989,7 +3008,6 @@ body .bi-button.button-ignore.disabled.ghost .b-font:before,
}
.bi-toast {
font-size: 14px;
color: #ffffff;
max-width: 400px;
min-width: 150px;
@ -3574,10 +3592,10 @@ ul.ztree.zTreeDragUL {
.bi-trigger .trigger-down {
display: block;
}
.bi-combo-popup .trigger-up {
.bi-combo-popup > .bi-trigger .trigger-up {
display: block;
}
.bi-combo-popup .trigger-down {
.bi-combo-popup > .bi-trigger .trigger-down {
display: none;
}

89
dist/fineui.js vendored

@ -73161,7 +73161,7 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({
@ -73212,7 +73212,7 @@ BI.FirstPlusGroupNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 25
height: 24
});
},
_init: function () {
@ -73245,7 +73245,7 @@ BI.FirstPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({
@ -73394,7 +73394,7 @@ BI.LastPlusGroupNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 25
height: 24
});
},
_init: function () {
@ -73427,7 +73427,7 @@ BI.LastPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({
@ -73475,7 +73475,7 @@ BI.MidPlusGroupNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 25
height: 24
});
},
_init: function () {
@ -73508,7 +73508,7 @@ BI.MidPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({
@ -73765,7 +73765,7 @@ BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, {
id: "",
pId: "",
layer: 0,
height: 25
height: 24
});
},
_init: function () {
@ -73794,19 +73794,19 @@ BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? "" : {
width: 13,
width: 12,
el: {
type: "bi.layout",
cls: "base-line-conn-background",
width: 13,
width: 12,
height: o.height
}
}), {
width: 25,
width: 24,
el: {
type: "bi.layout",
cls: "mid-line-conn-background",
width: 25,
width: 24,
height: o.height
}
}, {
@ -73956,7 +73956,7 @@ BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, {
id: "",
pId: "",
layer: 0,
height: 25
height: 24
});
},
_init: function () {
@ -73985,19 +73985,19 @@ BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? "" : {
width: 13,
width: 12,
el: {
type: "bi.layout",
cls: "base-line-conn-background",
width: 13,
width: 12,
height: o.height
}
}), {
width: 25,
width: 24,
el: {
type: "bi.layout",
cls: "mid-line-conn-background",
width: 25,
width: 24,
height: o.height
}
}, {
@ -74060,7 +74060,7 @@ BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, {
id: "",
pId: "",
layer: 0,
height: 25
height: 24
});
},
_init: function () {
@ -74089,19 +74089,19 @@ BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? "" : {
width: 13,
width: 12,
el: {
type: "bi.layout",
cls: "base-line-conn-background",
width: 13,
width: 12,
height: o.height
}
}), {
width: 25,
width: 24,
el: {
type: "bi.layout",
cls: "mid-line-conn-background",
width: 25,
width: 24,
height: o.height
}
}, {
@ -91447,7 +91447,7 @@ BI.shortcut("bi.dynamic_date_param_item", BI.DynamicDateParamItem);BI.DynamicDat
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
ref: function () {
@ -92208,7 +92208,7 @@ BI.extend(BI.DynamicDateTimeCombo, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
ref: function () {
@ -94734,7 +94734,7 @@ BI.Filter.FILTER_TYPE.EMPTY_CONDITION = 37;
}());/**
* Created by zcf on 2016/9/26.
*/
BI.IntervalSlider = BI.inherit(BI.Widget, {
BI.IntervalSlider = BI.inherit(BI.Single, {
_constant: {
EDITOR_WIDTH: 58,
EDITOR_R_GAP: 60,
@ -97767,7 +97767,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -98151,7 +98151,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -98518,7 +98518,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -101566,10 +101566,10 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
constants: {
offset: {
top: 1,
left: 1,
right: 2,
bottom: 33
top: 0,
left: 0,
right: 0,
bottom: 31
}
},
@ -106479,14 +106479,6 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {
@ -106757,14 +106749,6 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {
@ -110240,7 +110224,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Year"),
ref: function () {
@ -110991,7 +110975,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Month"),
ref: function () {
@ -111966,7 +111950,7 @@ BI.extend(BI.DynamicYearQuarterCombo, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Quarter"),
ref: function () {
@ -112230,7 +112214,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna
});
editor.on(BI.SignEditor.EVENT_CHANGE, function () {
if(isYear) {
self._autoSwitch(editor.getValue());
self._autoSwitch(editor);
}
});
@ -112263,6 +112247,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna
if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) {
if (v.length === 4 && this._yearCheck(v)) {
this._doEditorConfirm(editor);
this.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM);
this.quarterEditor.focus();
}
}

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

26
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/images/1x/icon/dark_tree_collapse_1.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

BIN
dist/images/1x/icon/dark_tree_collapse_2.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

BIN
dist/images/1x/icon/dark_tree_collapse_3.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

BIN
dist/images/1x/icon/dark_tree_collapse_4.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

BIN
dist/images/1x/icon/dark_tree_expand_1.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

BIN
dist/images/1x/icon/dark_tree_expand_2.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

BIN
dist/images/1x/icon/dark_tree_expand_3.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

BIN
dist/images/1x/icon/dark_tree_expand_4.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

BIN
dist/images/1x/icon/dark_tree_vertical_line_1.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

BIN
dist/images/1x/icon/dark_tree_vertical_line_2.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

BIN
dist/images/1x/icon/dark_tree_vertical_line_3.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

BIN
dist/images/1x/icon/dark_tree_vertical_line_4.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B

BIN
dist/images/1x/icon/dark_tree_vertical_line_5.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

BIN
dist/images/1x/icon/tree_collapse_1.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

After

Width:  |  Height:  |  Size: 192 B

BIN
dist/images/1x/icon/tree_collapse_2.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 224 B

BIN
dist/images/1x/icon/tree_collapse_3.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 240 B

BIN
dist/images/1x/icon/tree_collapse_4.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

After

Width:  |  Height:  |  Size: 228 B

BIN
dist/images/1x/icon/tree_expand_1.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 B

After

Width:  |  Height:  |  Size: 170 B

BIN
dist/images/1x/icon/tree_expand_2.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 203 B

BIN
dist/images/1x/icon/tree_expand_3.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 B

After

Width:  |  Height:  |  Size: 218 B

BIN
dist/images/1x/icon/tree_expand_4.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 B

After

Width:  |  Height:  |  Size: 204 B

BIN
dist/images/1x/icon/tree_vertical_line_1.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 B

After

Width:  |  Height:  |  Size: 102 B

BIN
dist/images/1x/icon/tree_vertical_line_2.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 144 B

BIN
dist/images/1x/icon/tree_vertical_line_3.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 B

After

Width:  |  Height:  |  Size: 162 B

BIN
dist/images/1x/icon/tree_vertical_line_4.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 B

After

Width:  |  Height:  |  Size: 148 B

BIN
dist/images/1x/icon/tree_vertical_line_5.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 B

After

Width:  |  Height:  |  Size: 138 B

BIN
dist/images/2x/icon/dark_tree_collapse_1.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

BIN
dist/images/2x/icon/dark_tree_collapse_2.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

BIN
dist/images/2x/icon/dark_tree_collapse_3.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

BIN
dist/images/2x/icon/dark_tree_collapse_4.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

BIN
dist/images/2x/icon/dark_tree_expand_1.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

BIN
dist/images/2x/icon/dark_tree_expand_2.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

BIN
dist/images/2x/icon/dark_tree_expand_3.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

BIN
dist/images/2x/icon/dark_tree_expand_4.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

BIN
dist/images/2x/icon/dark_tree_vertical_line_1.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 B

BIN
dist/images/2x/icon/dark_tree_vertical_line_2.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

BIN
dist/images/2x/icon/dark_tree_vertical_line_3.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

BIN
dist/images/2x/icon/dark_tree_vertical_line_4.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

BIN
dist/images/2x/icon/dark_tree_vertical_line_5.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

BIN
dist/images/2x/icon/tree_collapse_1.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 B

After

Width:  |  Height:  |  Size: 274 B

BIN
dist/images/2x/icon/tree_collapse_2.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 B

After

Width:  |  Height:  |  Size: 336 B

BIN
dist/images/2x/icon/tree_collapse_3.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 B

After

Width:  |  Height:  |  Size: 344 B

BIN
dist/images/2x/icon/tree_collapse_4.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 B

After

Width:  |  Height:  |  Size: 328 B

BIN
dist/images/2x/icon/tree_expand_1.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 B

After

Width:  |  Height:  |  Size: 246 B

BIN
dist/images/2x/icon/tree_expand_2.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 B

After

Width:  |  Height:  |  Size: 309 B

BIN
dist/images/2x/icon/tree_expand_3.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

After

Width:  |  Height:  |  Size: 316 B

BIN
dist/images/2x/icon/tree_expand_4.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 B

After

Width:  |  Height:  |  Size: 300 B

BIN
dist/images/2x/icon/tree_vertical_line_1.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 B

After

Width:  |  Height:  |  Size: 117 B

BIN
dist/images/2x/icon/tree_vertical_line_2.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 220 B

BIN
dist/images/2x/icon/tree_vertical_line_3.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 B

After

Width:  |  Height:  |  Size: 242 B

BIN
dist/images/2x/icon/tree_vertical_line_4.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

After

Width:  |  Height:  |  Size: 211 B

BIN
dist/images/2x/icon/tree_vertical_line_5.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 B

After

Width:  |  Height:  |  Size: 215 B

45
dist/widget.js vendored

@ -3580,7 +3580,7 @@ BI.shortcut("bi.dynamic_date_param_item", BI.DynamicDateParamItem);BI.DynamicDat
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
ref: function () {
@ -4341,7 +4341,7 @@ BI.extend(BI.DynamicDateTimeCombo, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
ref: function () {
@ -6867,7 +6867,7 @@ BI.Filter.FILTER_TYPE.EMPTY_CONDITION = 37;
}());/**
* Created by zcf on 2016/9/26.
*/
BI.IntervalSlider = BI.inherit(BI.Widget, {
BI.IntervalSlider = BI.inherit(BI.Single, {
_constant: {
EDITOR_WIDTH: 58,
EDITOR_R_GAP: 60,
@ -9900,7 +9900,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -10284,7 +10284,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -10651,7 +10651,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -13699,10 +13699,10 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
constants: {
offset: {
top: 1,
left: 1,
right: 2,
bottom: 33
top: 0,
left: 0,
right: 0,
bottom: 31
}
},
@ -18612,14 +18612,6 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {
@ -18890,14 +18882,6 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {
@ -22373,7 +22357,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Year"),
ref: function () {
@ -23124,7 +23108,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Month"),
ref: function () {
@ -24099,7 +24083,7 @@ BI.extend(BI.DynamicYearQuarterCombo, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Quarter"),
ref: function () {
@ -24363,7 +24347,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna
});
editor.on(BI.SignEditor.EVENT_CHANGE, function () {
if(isYear) {
self._autoSwitch(editor.getValue());
self._autoSwitch(editor);
}
});
@ -24396,6 +24380,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna
if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) {
if (v.length === 4 && this._yearCheck(v)) {
this._doEditorConfirm(editor);
this.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM);
this.quarterEditor.focus();
}
}

2
src/case/button/node/node.arrow.js

@ -45,7 +45,7 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({

4
src/case/button/node/node.first.plus.js

@ -15,7 +15,7 @@ BI.FirstPlusGroupNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 25
height: 24
});
},
_init: function () {
@ -48,7 +48,7 @@ BI.FirstPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({

4
src/case/button/node/node.last.plus.js

@ -15,7 +15,7 @@ BI.LastPlusGroupNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 25
height: 24
});
},
_init: function () {
@ -48,7 +48,7 @@ BI.LastPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({

4
src/case/button/node/node.mid.plus.js

@ -15,7 +15,7 @@ BI.MidPlusGroupNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 25
height: 24
});
},
_init: function () {
@ -48,7 +48,7 @@ BI.MidPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 25,
width: 24,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({

10
src/case/button/treeitem/item.first.treeleaf.js

@ -13,7 +13,7 @@ BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, {
id: "",
pId: "",
layer: 0,
height: 25
height: 24
});
},
_init: function () {
@ -42,19 +42,19 @@ BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? "" : {
width: 13,
width: 12,
el: {
type: "bi.layout",
cls: "base-line-conn-background",
width: 13,
width: 12,
height: o.height
}
}), {
width: 25,
width: 24,
el: {
type: "bi.layout",
cls: "mid-line-conn-background",
width: 25,
width: 24,
height: o.height
}
}, {

10
src/case/button/treeitem/item.last.treeleaf.js

@ -13,7 +13,7 @@ BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, {
id: "",
pId: "",
layer: 0,
height: 25
height: 24
});
},
_init: function () {
@ -42,19 +42,19 @@ BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? "" : {
width: 13,
width: 12,
el: {
type: "bi.layout",
cls: "base-line-conn-background",
width: 13,
width: 12,
height: o.height
}
}), {
width: 25,
width: 24,
el: {
type: "bi.layout",
cls: "mid-line-conn-background",
width: 25,
width: 24,
height: o.height
}
}, {

10
src/case/button/treeitem/item.mid.treeleaf.js

@ -13,7 +13,7 @@ BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, {
id: "",
pId: "",
layer: 0,
height: 25
height: 24
});
},
_init: function () {
@ -42,19 +42,19 @@ BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? "" : {
width: 13,
width: 12,
el: {
type: "bi.layout",
cls: "base-line-conn-background",
width: 13,
width: 12,
height: o.height
}
}), {
width: 25,
width: 24,
el: {
type: "bi.layout",
cls: "mid-line-conn-background",
width: 25,
width: 24,
height: o.height
}
}, {

1
src/css/base/single/tip/tip.css

@ -25,7 +25,6 @@
}
.bi-toast {
font-size: 14px;
color: #ffffff;
max-width: 400px;
min-width: 150px;

4
src/css/base/trigger/trigger.css

@ -9,10 +9,10 @@
.bi-trigger .trigger-down {
display: block;
}
.bi-combo-popup .trigger-up {
.bi-combo-popup > .bi-trigger .trigger-up {
display: block;
}
.bi-combo-popup .trigger-down {
.bi-combo-popup > .bi-trigger .trigger-down {
display: none;
}

19
src/css/core/utils/common.css

@ -161,6 +161,15 @@ textarea {
.bi-high-light .bi-textarea {
color: #3685f2;
}
.bi-error {
color: #ff4949;
}
.bi-error .bi-input {
color: #ff4949;
}
.bi-error .bi-textarea {
color: #ff4949;
}
.bi-high-light-background {
background-color: #3685f2;
color: #ffffff;
@ -171,6 +180,16 @@ textarea {
.bi-high-light-background .bi-textarea {
color: #ffffff;
}
.bi-error-background {
background-color: #ff4949;
color: #ffffff;
}
.bi-error-background .bi-input {
color: #ffffff;
}
.bi-error-background .bi-textarea {
color: #ffffff;
}
.bi-high-light-border {
border-color: #3685f2;
}

1
src/less/base/single/tip/tip.toast.less

@ -1,7 +1,6 @@
@import "../../../index";
.bi-toast{
font-size: @font-size-14;
color: @color-bi-text;
max-width: 400px;
min-width: 150px;

12
src/less/base/trigger/trigger.less

@ -13,10 +13,12 @@
}
.bi-combo-popup {
& .trigger-up {
display: block;
}
& .trigger-down {
display: none;
& > .bi-trigger {
.trigger-up {
display: block;
}
.trigger-down {
display: none;
}
}
}

22
src/less/core/utils/common.less

@ -205,6 +205,16 @@ textarea {
}
}
.bi-error {
color: @color-bi-text-failure;
& .bi-input {
color: @color-bi-text-failure;
}
& .bi-textarea {
color: @color-bi-text-failure;
}
}
.bi-high-light-background {
background-color: @color-bi-background-highlight;
color: @color-bi-text;
@ -216,6 +226,18 @@ textarea {
}
}
.bi-error-background {
background-color: @color-bi-background-failure;
color: @color-bi-text;
& .bi-input {
color: @color-bi-text;
}
& .bi-textarea {
color: @color-bi-text;
}
}
.bi-high-light-border {
border-color: @color-bi-border-highlight;
}

2
src/widget/dynamicdate/dynamicdate.popup.js

@ -36,7 +36,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
ref: function () {

2
src/widget/dynamicdatetime/dynamicdatetime.popup.js

@ -36,7 +36,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Multi_Date_Today"),
ref: function () {

2
src/widget/intervalslider/intervalslider.js

@ -1,7 +1,7 @@
/**
* Created by zcf on 2016/9/26.
*/
BI.IntervalSlider = BI.inherit(BI.Widget, {
BI.IntervalSlider = BI.inherit(BI.Single, {
_constant: {
EDITOR_WIDTH: 58,
EDITOR_R_GAP: 60,

2
src/widget/multiselect/multiselect.combo.js

@ -39,7 +39,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},

2
src/widget/multiselect/multiselect.insert.combo.js

@ -36,7 +36,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},

2
src/widget/multiselect/multiselect.insert.combo.nobar.js

@ -39,7 +39,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},

8
src/widget/multitree/multi.tree.combo.js

@ -8,10 +8,10 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
constants: {
offset: {
top: 1,
left: 1,
right: 2,
bottom: 33
top: 0,
left: 0,
right: 0,
bottom: 31
}
},

8
src/widget/singleselect/singleselect.combo.js

@ -30,14 +30,6 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {

8
src/widget/singleselect/singleselect.insert.combo.js

@ -30,14 +30,6 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {

2
src/widget/year/popup.year.js

@ -44,7 +44,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Year"),
ref: function () {

2
src/widget/yearmonth/popup.yearmonth.js

@ -44,7 +44,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Month"),
ref: function () {

2
src/widget/yearquarter/popup.yearquarter.js

@ -37,7 +37,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
}, {
type: "bi.text_button",
forceCenter: true,
cls: "bi-border-left bi-border-right bi-border-top",
cls: "bi-border-left bi-border-right bi-high-light bi-border-top",
shadow: true,
text: BI.i18nText("BI-Basic_Current_Quarter"),
ref: function () {

3
src/widget/yearquarter/trigger.yearquarter.js

@ -103,7 +103,7 @@ BI.DynamicYearQuarterTrigger = BI.inherit(BI.Trigger, {
});
editor.on(BI.SignEditor.EVENT_CHANGE, function () {
if(isYear) {
self._autoSwitch(editor.getValue());
self._autoSwitch(editor);
}
});
@ -136,6 +136,7 @@ BI.DynamicYearQuarterTrigger = BI.inherit(BI.Trigger, {
if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) {
if (v.length === 4 && this._yearCheck(v)) {
this._doEditorConfirm(editor);
this.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM);
this.quarterEditor.focus();
}
}

Loading…
Cancel
Save