Browse Source

Merge pull request #964 in VISUAL/fineui from ~KIRA/fineui:master to master

* commit 'cd0abd0c996b0818d32199b9f5442f61b4feb0d8':
  BI-46540 refactor: 翻页按钮样式统一
master
windy 5 years ago
parent
commit
e240b985eb
  1. 32
      dist/2.0/fineui.css
  2. 223
      dist/2.0/fineui.ie.js
  3. 60
      dist/2.0/fineui.ie.min.js
  4. 223
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.min.css
  6. 60
      dist/2.0/fineui.min.js
  7. 21
      dist/base.js
  8. 32
      dist/bundle.css
  9. 223
      dist/bundle.ie.js
  10. 60
      dist/bundle.ie.min.js
  11. 223
      dist/bundle.js
  12. 2
      dist/bundle.min.css
  13. 60
      dist/bundle.min.js
  14. 83
      dist/case.js
  15. 113
      dist/core.js
  16. 32
      dist/fineui.css
  17. 223
      dist/fineui.ie.js
  18. 81
      dist/fineui.ie.min.js
  19. 223
      dist/fineui.js
  20. 2
      dist/fineui.min.css
  21. 81
      dist/fineui.min.js
  22. 223
      dist/fineui_without_jquery_polyfill.js
  23. 32
      dist/resource.css
  24. 113
      dist/utils.js
  25. 8
      dist/utils.min.js
  26. 6
      dist/widget.js
  27. 32
      public/css/font.css
  28. 24
      src/case/pager/pager.all.count.js
  29. 54
      src/case/pager/pager.direction.js
  30. 32
      src/css/resource/font.css
  31. 8
      src/less/resource/font.less
  32. 32
      ui/css/font.css

32
dist/2.0/fineui.css vendored

@ -5315,67 +5315,67 @@ textarea::-webkit-scrollbar-thumb:hover {
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-pre-page-h-font .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font:hover .b-font:before,
.row-pre-page-h-font.hover .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font.disabled .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-next-page-h-font .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font:hover .b-font:before,
.row-next-page-h-font.hover .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font.disabled .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.column-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-pre-page-h-font .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font:hover .b-font:before,
.column-pre-page-h-font.hover .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font.disabled .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-next-page-h-font .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font:hover .b-font:before,
.column-next-page-h-font.hover .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font.disabled .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.expander-right-font .b-font {

223
dist/2.0/fineui.ie.js vendored

@ -11085,112 +11085,14 @@ if (!_global.BI) {
},
/**
* 对字符串进行加密 {@link #decrypt}
* @static
* @param str 原始字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 加密后的字符<EFBFBD>?
*/
encrypt: function (str, keyt) {
if (str == "") {
return "";
}
str = escape(str);
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (keyt == null || keyt.length <= 0) {
alert("Please enter a password with which to encrypt the message.");
return null;
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var mult = parseInt(prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4) + prand.charAt(sPos * 5));
var incr = Math.ceil(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
if (mult < 2) {
alert("Algorithm cannot find a suitable hash. Please choose a different password. \nPossible considerations are to choose a more complex or longer password.");
return null;
}
// var salt = Math.round(Math.random() * 1000000000) % 100000000;
var salt = 101;
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10)) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i++) {
enc_chr = parseInt(str.charCodeAt(i) ^ Math.floor((prand / modu) * 255));
if (enc_chr < 16) {
enc_str += "0" + enc_chr.toString(16);
} else {
enc_str += enc_chr.toString(16);
}
prand = (mult * prand + incr) % modu;
}
salt = salt.toString(16);
while (salt.length < 8) {
salt = "0" + salt;
}
enc_str += salt;
return enc_str;
},
/**
* 对加密后的字符串解密 {@link #encrypt}
* @static
* @param str 加密过的字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 解密后的字符<EFBFBD>?
* 通用加密方法
*/
decrypt: function (str, keyt) {
if (str == "") {
return "";
}
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (str == null || str.length < 8) {
return;
}
if (keyt == null || keyt.length <= 0) {
return;
encrypt: function (type, text, key) {
switch (type) {
case BI.CRYPT_TYPE.AES:
default:
return BI.aesEncrypt(text, key);
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var tempmult = prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4);
if (sPos * 5 < prand.length) {
tempmult += prand.charAt(sPos * 5);
}
var mult = parseInt(tempmult);
var incr = Math.round(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
var salt = parseInt(str.substring(str.length - 8, str.length), 16);
str = str.substring(0, str.length - 8);
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10), 10) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i += 2) {
enc_chr = parseInt(parseInt(str.substring(i, i + 2), 16) ^ Math.floor((prand / modu) * 255));
enc_str += String.fromCharCode(enc_chr);
prand = (mult * prand + incr) % modu;
}
return unescape(enc_str);
},
/**
@ -12335,6 +12237,9 @@ if (!_global.BI) {
/**
* CryptoJS core components.
*/
BI.CRYPT_TYPE = BI.CRYPT_TYPE || {};
BI.CRYPT_TYPE.AES = "aes";
var CryptoJS = CryptoJS || (function (Math, undefined) {
/**
* CryptoJS namespace.
@ -41238,7 +41143,7 @@ BI.Combo = BI.inherit(BI.Widget, {
baseCls: (conf.baseCls || "") + " bi-combo",
trigger: "click",
toggle: true,
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft||innerRight||innerLeft
logic: {
dynamic: true
},
@ -41618,6 +41523,12 @@ BI.Combo = BI.inherit(BI.Widget, {
case "right,innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["right", "left", "innerLeft", "innerRight", "bottom", "top"], o.offsetStyle);
break;
case "innerRight":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerRight", "innerLeft", "right", "left", "bottom", "top"], o.offsetStyle);
break;
case "innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerLeft", "innerRight", "left", "right", "bottom", "top"], o.offsetStyle);
break;
case "top,custom":
case "custom,top":
p = BI.DOM.getTopAdaptPosition(combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight);
@ -47207,8 +47118,8 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
value: ""
});
},
_init: function () {
BI.TextAreaEditor.superclass._init.apply(this, arguments);
render: function() {
var o = this.options, self = this;
this.content = BI.createWidget({
type: "bi.layout",
@ -47258,10 +47169,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName());
});
if (BI.isKey(o.value)) {
self.setValue(o.value);
this.setValue(o.value);
}
if (BI.isNotNull(o.style)) {
self.setStyle(o.style);
this.setStyle(o.style);
}
this._checkWaterMark();
},
@ -47351,6 +47262,11 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.TextAreaEditor.superclass._setValid.apply(this, arguments);
// this.content.setValid(b);
// this.watermark && this.watermark.setValid(b);
},
_setEnable: function (b) {
BI.TextAreaEditor.superclass._setEnable.apply(this, [b]);
this.content && (this.content.element[0].disabled = !b);
}
});
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -52378,13 +52294,16 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, {
doClick: function () {
BI.SingleSelectItem.superclass.doClick.apply(this, arguments);
if (this.isValid()) {
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this);
}
},
setSelected: function (v) {
BI.SingleSelectItem.superclass.setSelected.apply(this, arguments);
}
});
BI.SingleSelectItem.EVENT_CHANGE = "SingleSelectItem.EVENT_CHANGE";
BI.shortcut("bi.single_select_item", BI.SingleSelectItem);/**
* guy
* 单选框item
@ -60041,6 +59960,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-all-count-pager",
pagerDirection: "vertical", // 翻页按钮方向,可选值:vertical/horizontal
height: 24,
pages: 1, // 必选项
curr: 1, // 初始化当前页, pages为数字时可用,
@ -60049,7 +59969,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
},
_init: function () {
BI.AllCountPager.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var self = this, o = this.options, pagerIconCls = this._getPagerIconCls();
this.editor = BI.createWidget({
type: "bi.small_text_editor",
cls: "pager-editor",
@ -60086,7 +60006,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-prev pull-up-font"
cls: "bi-border all-pager-prev" + pagerIconCls.preCls
},
next: {
type: "bi.icon_button",
@ -60095,7 +60015,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-next pull-down-font"
cls: "bi-border all-pager-next" + pagerIconCls.nextCls
},
hasPrev: o.hasPrev,
@ -60160,6 +60080,23 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
alwaysShowPager: true,
_getPagerIconCls: function () {
var o = this.options;
switch (o.pagerDirection) {
case "horizontal":
return {
preCls: " row-pre-page-h-font ",
nextCls: " row-next-page-h-font "
};
case "vertical":
default:
return {
preCls: " column-pre-page-h-font ",
nextCls: " column-next-page-h-font "
};
}
},
setAllPages: function (v) {
this.allPages.setText("/" + v);
this.allPages.setTitle(v);
@ -60215,7 +60152,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.DirectionPager.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-direction-pager",
height: 20,
height: 24,
horizontal: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
@ -60249,19 +60186,19 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
items: [{
el: this.vpager,
top: 0,
right: 74
right: 86
}, {
el: this.vlabel,
top: 0,
right: 111
right: 110
}, {
el: this.hpager,
top: 0,
right: -9
right: 0
}, {
el: this.hlabel,
top: 0,
right: 28
right: 24
}]
});
},
@ -60272,19 +60209,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.vlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: v.curr,
title: v.curr,
invisible: true
});
this.vpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -60300,20 +60236,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Up_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev column-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev column-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Down_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next column-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next column-next-page-h-font"
},
hasPrev: v.hasPrev,
@ -60337,19 +60271,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.hlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: h.curr,
title: h.curr,
invisible: true
});
this.hpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -60365,20 +60298,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Left_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev row-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev row-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Right_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next row-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next row-next-page-h-font"
},
hasPrev: h.hasPrev,
@ -60459,7 +60390,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
vShow = true;
}
this.setVisible(hShow || vShow);
var num = [74, 111, -9, 28];
var num = [86, 110, 0, 24];
var items = this.layout.attr("items");
if (vShow === true && hShow === true) {
@ -69669,8 +69600,11 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
},
_init: function () {
var o = this.options;
BI.MultiLayerSingleLevelTree.superclass._init.apply(this, arguments);
this.storeValue = o.value;
this.initTree(this.options.items);
this.check();
@ -69757,7 +69691,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
el: {
type: "bi.loader",
isDefaultInit: false,
isDefaultInit: o.itemsCreator !== BI.emptyFn,
chooseType: o.chooseType,
el: {
type: "bi.button_tree",
@ -80582,6 +80516,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
}, o.logic, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),

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

File diff suppressed because one or more lines are too long

223
dist/2.0/fineui.js vendored

@ -11085,112 +11085,14 @@ if (!_global.BI) {
},
/**
* 对字符串进行加密 {@link #decrypt}
* @static
* @param str 原始字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 加密后的字符<EFBFBD>?
*/
encrypt: function (str, keyt) {
if (str == "") {
return "";
}
str = escape(str);
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (keyt == null || keyt.length <= 0) {
alert("Please enter a password with which to encrypt the message.");
return null;
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var mult = parseInt(prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4) + prand.charAt(sPos * 5));
var incr = Math.ceil(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
if (mult < 2) {
alert("Algorithm cannot find a suitable hash. Please choose a different password. \nPossible considerations are to choose a more complex or longer password.");
return null;
}
// var salt = Math.round(Math.random() * 1000000000) % 100000000;
var salt = 101;
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10)) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i++) {
enc_chr = parseInt(str.charCodeAt(i) ^ Math.floor((prand / modu) * 255));
if (enc_chr < 16) {
enc_str += "0" + enc_chr.toString(16);
} else {
enc_str += enc_chr.toString(16);
}
prand = (mult * prand + incr) % modu;
}
salt = salt.toString(16);
while (salt.length < 8) {
salt = "0" + salt;
}
enc_str += salt;
return enc_str;
},
/**
* 对加密后的字符串解密 {@link #encrypt}
* @static
* @param str 加密过的字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 解密后的字符<EFBFBD>?
* 通用加密方法
*/
decrypt: function (str, keyt) {
if (str == "") {
return "";
}
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (str == null || str.length < 8) {
return;
}
if (keyt == null || keyt.length <= 0) {
return;
encrypt: function (type, text, key) {
switch (type) {
case BI.CRYPT_TYPE.AES:
default:
return BI.aesEncrypt(text, key);
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var tempmult = prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4);
if (sPos * 5 < prand.length) {
tempmult += prand.charAt(sPos * 5);
}
var mult = parseInt(tempmult);
var incr = Math.round(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
var salt = parseInt(str.substring(str.length - 8, str.length), 16);
str = str.substring(0, str.length - 8);
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10), 10) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i += 2) {
enc_chr = parseInt(parseInt(str.substring(i, i + 2), 16) ^ Math.floor((prand / modu) * 255));
enc_str += String.fromCharCode(enc_chr);
prand = (mult * prand + incr) % modu;
}
return unescape(enc_str);
},
/**
@ -12335,6 +12237,9 @@ if (!_global.BI) {
/**
* CryptoJS core components.
*/
BI.CRYPT_TYPE = BI.CRYPT_TYPE || {};
BI.CRYPT_TYPE.AES = "aes";
var CryptoJS = CryptoJS || (function (Math, undefined) {
/**
* CryptoJS namespace.
@ -41642,7 +41547,7 @@ BI.Combo = BI.inherit(BI.Widget, {
baseCls: (conf.baseCls || "") + " bi-combo",
trigger: "click",
toggle: true,
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft||innerRight||innerLeft
logic: {
dynamic: true
},
@ -42022,6 +41927,12 @@ BI.Combo = BI.inherit(BI.Widget, {
case "right,innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["right", "left", "innerLeft", "innerRight", "bottom", "top"], o.offsetStyle);
break;
case "innerRight":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerRight", "innerLeft", "right", "left", "bottom", "top"], o.offsetStyle);
break;
case "innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerLeft", "innerRight", "left", "right", "bottom", "top"], o.offsetStyle);
break;
case "top,custom":
case "custom,top":
p = BI.DOM.getTopAdaptPosition(combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight);
@ -47611,8 +47522,8 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
value: ""
});
},
_init: function () {
BI.TextAreaEditor.superclass._init.apply(this, arguments);
render: function() {
var o = this.options, self = this;
this.content = BI.createWidget({
type: "bi.layout",
@ -47662,10 +47573,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName());
});
if (BI.isKey(o.value)) {
self.setValue(o.value);
this.setValue(o.value);
}
if (BI.isNotNull(o.style)) {
self.setStyle(o.style);
this.setStyle(o.style);
}
this._checkWaterMark();
},
@ -47755,6 +47666,11 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.TextAreaEditor.superclass._setValid.apply(this, arguments);
// this.content.setValid(b);
// this.watermark && this.watermark.setValid(b);
},
_setEnable: function (b) {
BI.TextAreaEditor.superclass._setEnable.apply(this, [b]);
this.content && (this.content.element[0].disabled = !b);
}
});
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -52782,13 +52698,16 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, {
doClick: function () {
BI.SingleSelectItem.superclass.doClick.apply(this, arguments);
if (this.isValid()) {
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this);
}
},
setSelected: function (v) {
BI.SingleSelectItem.superclass.setSelected.apply(this, arguments);
}
});
BI.SingleSelectItem.EVENT_CHANGE = "SingleSelectItem.EVENT_CHANGE";
BI.shortcut("bi.single_select_item", BI.SingleSelectItem);/**
* guy
* 单选框item
@ -60445,6 +60364,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-all-count-pager",
pagerDirection: "vertical", // 翻页按钮方向,可选值:vertical/horizontal
height: 24,
pages: 1, // 必选项
curr: 1, // 初始化当前页, pages为数字时可用,
@ -60453,7 +60373,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
},
_init: function () {
BI.AllCountPager.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var self = this, o = this.options, pagerIconCls = this._getPagerIconCls();
this.editor = BI.createWidget({
type: "bi.small_text_editor",
cls: "pager-editor",
@ -60490,7 +60410,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-prev pull-up-font"
cls: "bi-border all-pager-prev" + pagerIconCls.preCls
},
next: {
type: "bi.icon_button",
@ -60499,7 +60419,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-next pull-down-font"
cls: "bi-border all-pager-next" + pagerIconCls.nextCls
},
hasPrev: o.hasPrev,
@ -60564,6 +60484,23 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
alwaysShowPager: true,
_getPagerIconCls: function () {
var o = this.options;
switch (o.pagerDirection) {
case "horizontal":
return {
preCls: " row-pre-page-h-font ",
nextCls: " row-next-page-h-font "
};
case "vertical":
default:
return {
preCls: " column-pre-page-h-font ",
nextCls: " column-next-page-h-font "
};
}
},
setAllPages: function (v) {
this.allPages.setText("/" + v);
this.allPages.setTitle(v);
@ -60619,7 +60556,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.DirectionPager.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-direction-pager",
height: 20,
height: 24,
horizontal: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
@ -60653,19 +60590,19 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
items: [{
el: this.vpager,
top: 0,
right: 74
right: 86
}, {
el: this.vlabel,
top: 0,
right: 111
right: 110
}, {
el: this.hpager,
top: 0,
right: -9
right: 0
}, {
el: this.hlabel,
top: 0,
right: 28
right: 24
}]
});
},
@ -60676,19 +60613,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.vlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: v.curr,
title: v.curr,
invisible: true
});
this.vpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -60704,20 +60640,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Up_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev column-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev column-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Down_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next column-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next column-next-page-h-font"
},
hasPrev: v.hasPrev,
@ -60741,19 +60675,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.hlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: h.curr,
title: h.curr,
invisible: true
});
this.hpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -60769,20 +60702,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Left_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev row-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev row-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Right_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next row-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next row-next-page-h-font"
},
hasPrev: h.hasPrev,
@ -60863,7 +60794,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
vShow = true;
}
this.setVisible(hShow || vShow);
var num = [74, 111, -9, 28];
var num = [86, 110, 0, 24];
var items = this.layout.attr("items");
if (vShow === true && hShow === true) {
@ -70073,8 +70004,11 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
},
_init: function () {
var o = this.options;
BI.MultiLayerSingleLevelTree.superclass._init.apply(this, arguments);
this.storeValue = o.value;
this.initTree(this.options.items);
this.check();
@ -70161,7 +70095,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
el: {
type: "bi.loader",
isDefaultInit: false,
isDefaultInit: o.itemsCreator !== BI.emptyFn,
chooseType: o.chooseType,
el: {
type: "bi.button_tree",
@ -80986,6 +80920,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
}, o.logic, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

60
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/base.js vendored

@ -3322,7 +3322,7 @@ BI.Combo = BI.inherit(BI.Widget, {
baseCls: (conf.baseCls || "") + " bi-combo",
trigger: "click",
toggle: true,
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft||innerRight||innerLeft
logic: {
dynamic: true
},
@ -3702,6 +3702,12 @@ BI.Combo = BI.inherit(BI.Widget, {
case "right,innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["right", "left", "innerLeft", "innerRight", "bottom", "top"], o.offsetStyle);
break;
case "innerRight":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerRight", "innerLeft", "right", "left", "bottom", "top"], o.offsetStyle);
break;
case "innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerLeft", "innerRight", "left", "right", "bottom", "top"], o.offsetStyle);
break;
case "top,custom":
case "custom,top":
p = BI.DOM.getTopAdaptPosition(combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight);
@ -9291,8 +9297,8 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
value: ""
});
},
_init: function () {
BI.TextAreaEditor.superclass._init.apply(this, arguments);
render: function() {
var o = this.options, self = this;
this.content = BI.createWidget({
type: "bi.layout",
@ -9342,10 +9348,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName());
});
if (BI.isKey(o.value)) {
self.setValue(o.value);
this.setValue(o.value);
}
if (BI.isNotNull(o.style)) {
self.setStyle(o.style);
this.setStyle(o.style);
}
this._checkWaterMark();
},
@ -9435,6 +9441,11 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.TextAreaEditor.superclass._setValid.apply(this, arguments);
// this.content.setValid(b);
// this.watermark && this.watermark.setValid(b);
},
_setEnable: function (b) {
BI.TextAreaEditor.superclass._setEnable.apply(this, [b]);
this.content && (this.content.element[0].disabled = !b);
}
});
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE";

32
dist/bundle.css vendored

@ -5315,67 +5315,67 @@ textarea::-webkit-scrollbar-thumb:hover {
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d9;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70d;');
}
.row-pre-page-h-font .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font:hover .b-font:before,
.row-pre-page-h-font.hover .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font.disabled .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d8;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70c;');
}
.row-next-page-h-font .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font:hover .b-font:before,
.row-next-page-h-font.hover .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font.disabled .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.column-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d6;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70a;');
}
.column-pre-page-h-font .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font:hover .b-font:before,
.column-pre-page-h-font.hover .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font.disabled .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d7;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70b;');
}
.column-next-page-h-font .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font:hover .b-font:before,
.column-next-page-h-font.hover .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font.disabled .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.expander-right-font .b-font {

223
dist/bundle.ie.js vendored

@ -11085,112 +11085,14 @@ if (!_global.BI) {
},
/**
* 对字符串进行加密 {@link #decrypt}
* @static
* @param str 原始字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 加密后的字符<EFBFBD>?
*/
encrypt: function (str, keyt) {
if (str == "") {
return "";
}
str = escape(str);
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (keyt == null || keyt.length <= 0) {
alert("Please enter a password with which to encrypt the message.");
return null;
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var mult = parseInt(prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4) + prand.charAt(sPos * 5));
var incr = Math.ceil(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
if (mult < 2) {
alert("Algorithm cannot find a suitable hash. Please choose a different password. \nPossible considerations are to choose a more complex or longer password.");
return null;
}
// var salt = Math.round(Math.random() * 1000000000) % 100000000;
var salt = 101;
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10)) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i++) {
enc_chr = parseInt(str.charCodeAt(i) ^ Math.floor((prand / modu) * 255));
if (enc_chr < 16) {
enc_str += "0" + enc_chr.toString(16);
} else {
enc_str += enc_chr.toString(16);
}
prand = (mult * prand + incr) % modu;
}
salt = salt.toString(16);
while (salt.length < 8) {
salt = "0" + salt;
}
enc_str += salt;
return enc_str;
},
/**
* 对加密后的字符串解密 {@link #encrypt}
* @static
* @param str 加密过的字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 解密后的字符<EFBFBD>?
* 通用加密方法
*/
decrypt: function (str, keyt) {
if (str == "") {
return "";
}
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (str == null || str.length < 8) {
return;
}
if (keyt == null || keyt.length <= 0) {
return;
encrypt: function (type, text, key) {
switch (type) {
case BI.CRYPT_TYPE.AES:
default:
return BI.aesEncrypt(text, key);
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var tempmult = prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4);
if (sPos * 5 < prand.length) {
tempmult += prand.charAt(sPos * 5);
}
var mult = parseInt(tempmult);
var incr = Math.round(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
var salt = parseInt(str.substring(str.length - 8, str.length), 16);
str = str.substring(0, str.length - 8);
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10), 10) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i += 2) {
enc_chr = parseInt(parseInt(str.substring(i, i + 2), 16) ^ Math.floor((prand / modu) * 255));
enc_str += String.fromCharCode(enc_chr);
prand = (mult * prand + incr) % modu;
}
return unescape(enc_str);
},
/**
@ -12335,6 +12237,9 @@ if (!_global.BI) {
/**
* CryptoJS core components.
*/
BI.CRYPT_TYPE = BI.CRYPT_TYPE || {};
BI.CRYPT_TYPE.AES = "aes";
var CryptoJS = CryptoJS || (function (Math, undefined) {
/**
* CryptoJS namespace.
@ -41238,7 +41143,7 @@ BI.Combo = BI.inherit(BI.Widget, {
baseCls: (conf.baseCls || "") + " bi-combo",
trigger: "click",
toggle: true,
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft||innerRight||innerLeft
logic: {
dynamic: true
},
@ -41618,6 +41523,12 @@ BI.Combo = BI.inherit(BI.Widget, {
case "right,innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["right", "left", "innerLeft", "innerRight", "bottom", "top"], o.offsetStyle);
break;
case "innerRight":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerRight", "innerLeft", "right", "left", "bottom", "top"], o.offsetStyle);
break;
case "innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerLeft", "innerRight", "left", "right", "bottom", "top"], o.offsetStyle);
break;
case "top,custom":
case "custom,top":
p = BI.DOM.getTopAdaptPosition(combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight);
@ -47207,8 +47118,8 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
value: ""
});
},
_init: function () {
BI.TextAreaEditor.superclass._init.apply(this, arguments);
render: function() {
var o = this.options, self = this;
this.content = BI.createWidget({
type: "bi.layout",
@ -47258,10 +47169,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName());
});
if (BI.isKey(o.value)) {
self.setValue(o.value);
this.setValue(o.value);
}
if (BI.isNotNull(o.style)) {
self.setStyle(o.style);
this.setStyle(o.style);
}
this._checkWaterMark();
},
@ -47351,6 +47262,11 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.TextAreaEditor.superclass._setValid.apply(this, arguments);
// this.content.setValid(b);
// this.watermark && this.watermark.setValid(b);
},
_setEnable: function (b) {
BI.TextAreaEditor.superclass._setEnable.apply(this, [b]);
this.content && (this.content.element[0].disabled = !b);
}
});
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -52378,13 +52294,16 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, {
doClick: function () {
BI.SingleSelectItem.superclass.doClick.apply(this, arguments);
if (this.isValid()) {
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this);
}
},
setSelected: function (v) {
BI.SingleSelectItem.superclass.setSelected.apply(this, arguments);
}
});
BI.SingleSelectItem.EVENT_CHANGE = "SingleSelectItem.EVENT_CHANGE";
BI.shortcut("bi.single_select_item", BI.SingleSelectItem);/**
* guy
* 单选框item
@ -60041,6 +59960,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-all-count-pager",
pagerDirection: "vertical", // 翻页按钮方向,可选值:vertical/horizontal
height: 24,
pages: 1, // 必选项
curr: 1, // 初始化当前页, pages为数字时可用,
@ -60049,7 +59969,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
},
_init: function () {
BI.AllCountPager.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var self = this, o = this.options, pagerIconCls = this._getPagerIconCls();
this.editor = BI.createWidget({
type: "bi.small_text_editor",
cls: "pager-editor",
@ -60086,7 +60006,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-prev pull-up-font"
cls: "bi-border all-pager-prev" + pagerIconCls.preCls
},
next: {
type: "bi.icon_button",
@ -60095,7 +60015,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-next pull-down-font"
cls: "bi-border all-pager-next" + pagerIconCls.nextCls
},
hasPrev: o.hasPrev,
@ -60160,6 +60080,23 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
alwaysShowPager: true,
_getPagerIconCls: function () {
var o = this.options;
switch (o.pagerDirection) {
case "horizontal":
return {
preCls: " row-pre-page-h-font ",
nextCls: " row-next-page-h-font "
};
case "vertical":
default:
return {
preCls: " column-pre-page-h-font ",
nextCls: " column-next-page-h-font "
};
}
},
setAllPages: function (v) {
this.allPages.setText("/" + v);
this.allPages.setTitle(v);
@ -60215,7 +60152,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.DirectionPager.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-direction-pager",
height: 20,
height: 24,
horizontal: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
@ -60249,19 +60186,19 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
items: [{
el: this.vpager,
top: 0,
right: 74
right: 86
}, {
el: this.vlabel,
top: 0,
right: 111
right: 110
}, {
el: this.hpager,
top: 0,
right: -9
right: 0
}, {
el: this.hlabel,
top: 0,
right: 28
right: 24
}]
});
},
@ -60272,19 +60209,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.vlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: v.curr,
title: v.curr,
invisible: true
});
this.vpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -60300,20 +60236,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Up_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev column-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev column-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Down_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next column-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next column-next-page-h-font"
},
hasPrev: v.hasPrev,
@ -60337,19 +60271,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.hlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: h.curr,
title: h.curr,
invisible: true
});
this.hpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -60365,20 +60298,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Left_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev row-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev row-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Right_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next row-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next row-next-page-h-font"
},
hasPrev: h.hasPrev,
@ -60459,7 +60390,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
vShow = true;
}
this.setVisible(hShow || vShow);
var num = [74, 111, -9, 28];
var num = [86, 110, 0, 24];
var items = this.layout.attr("items");
if (vShow === true && hShow === true) {
@ -69669,8 +69600,11 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
},
_init: function () {
var o = this.options;
BI.MultiLayerSingleLevelTree.superclass._init.apply(this, arguments);
this.storeValue = o.value;
this.initTree(this.options.items);
this.check();
@ -69757,7 +69691,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
el: {
type: "bi.loader",
isDefaultInit: false,
isDefaultInit: o.itemsCreator !== BI.emptyFn,
chooseType: o.chooseType,
el: {
type: "bi.button_tree",
@ -80582,6 +80516,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
}, o.logic, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),

60
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

223
dist/bundle.js vendored

@ -11085,112 +11085,14 @@ if (!_global.BI) {
},
/**
* 对字符串进行加密 {@link #decrypt}
* @static
* @param str 原始字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 加密后的字符<EFBFBD>?
*/
encrypt: function (str, keyt) {
if (str == "") {
return "";
}
str = escape(str);
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (keyt == null || keyt.length <= 0) {
alert("Please enter a password with which to encrypt the message.");
return null;
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var mult = parseInt(prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4) + prand.charAt(sPos * 5));
var incr = Math.ceil(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
if (mult < 2) {
alert("Algorithm cannot find a suitable hash. Please choose a different password. \nPossible considerations are to choose a more complex or longer password.");
return null;
}
// var salt = Math.round(Math.random() * 1000000000) % 100000000;
var salt = 101;
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10)) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i++) {
enc_chr = parseInt(str.charCodeAt(i) ^ Math.floor((prand / modu) * 255));
if (enc_chr < 16) {
enc_str += "0" + enc_chr.toString(16);
} else {
enc_str += enc_chr.toString(16);
}
prand = (mult * prand + incr) % modu;
}
salt = salt.toString(16);
while (salt.length < 8) {
salt = "0" + salt;
}
enc_str += salt;
return enc_str;
},
/**
* 对加密后的字符串解密 {@link #encrypt}
* @static
* @param str 加密过的字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 解密后的字符<EFBFBD>?
* 通用加密方法
*/
decrypt: function (str, keyt) {
if (str == "") {
return "";
}
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (str == null || str.length < 8) {
return;
}
if (keyt == null || keyt.length <= 0) {
return;
encrypt: function (type, text, key) {
switch (type) {
case BI.CRYPT_TYPE.AES:
default:
return BI.aesEncrypt(text, key);
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var tempmult = prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4);
if (sPos * 5 < prand.length) {
tempmult += prand.charAt(sPos * 5);
}
var mult = parseInt(tempmult);
var incr = Math.round(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
var salt = parseInt(str.substring(str.length - 8, str.length), 16);
str = str.substring(0, str.length - 8);
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10), 10) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i += 2) {
enc_chr = parseInt(parseInt(str.substring(i, i + 2), 16) ^ Math.floor((prand / modu) * 255));
enc_str += String.fromCharCode(enc_chr);
prand = (mult * prand + incr) % modu;
}
return unescape(enc_str);
},
/**
@ -12335,6 +12237,9 @@ if (!_global.BI) {
/**
* CryptoJS core components.
*/
BI.CRYPT_TYPE = BI.CRYPT_TYPE || {};
BI.CRYPT_TYPE.AES = "aes";
var CryptoJS = CryptoJS || (function (Math, undefined) {
/**
* CryptoJS namespace.
@ -41642,7 +41547,7 @@ BI.Combo = BI.inherit(BI.Widget, {
baseCls: (conf.baseCls || "") + " bi-combo",
trigger: "click",
toggle: true,
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft||innerRight||innerLeft
logic: {
dynamic: true
},
@ -42022,6 +41927,12 @@ BI.Combo = BI.inherit(BI.Widget, {
case "right,innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["right", "left", "innerLeft", "innerRight", "bottom", "top"], o.offsetStyle);
break;
case "innerRight":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerRight", "innerLeft", "right", "left", "bottom", "top"], o.offsetStyle);
break;
case "innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerLeft", "innerRight", "left", "right", "bottom", "top"], o.offsetStyle);
break;
case "top,custom":
case "custom,top":
p = BI.DOM.getTopAdaptPosition(combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight);
@ -47611,8 +47522,8 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
value: ""
});
},
_init: function () {
BI.TextAreaEditor.superclass._init.apply(this, arguments);
render: function() {
var o = this.options, self = this;
this.content = BI.createWidget({
type: "bi.layout",
@ -47662,10 +47573,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName());
});
if (BI.isKey(o.value)) {
self.setValue(o.value);
this.setValue(o.value);
}
if (BI.isNotNull(o.style)) {
self.setStyle(o.style);
this.setStyle(o.style);
}
this._checkWaterMark();
},
@ -47755,6 +47666,11 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.TextAreaEditor.superclass._setValid.apply(this, arguments);
// this.content.setValid(b);
// this.watermark && this.watermark.setValid(b);
},
_setEnable: function (b) {
BI.TextAreaEditor.superclass._setEnable.apply(this, [b]);
this.content && (this.content.element[0].disabled = !b);
}
});
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -52782,13 +52698,16 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, {
doClick: function () {
BI.SingleSelectItem.superclass.doClick.apply(this, arguments);
if (this.isValid()) {
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this);
}
},
setSelected: function (v) {
BI.SingleSelectItem.superclass.setSelected.apply(this, arguments);
}
});
BI.SingleSelectItem.EVENT_CHANGE = "SingleSelectItem.EVENT_CHANGE";
BI.shortcut("bi.single_select_item", BI.SingleSelectItem);/**
* guy
* 单选框item
@ -60445,6 +60364,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-all-count-pager",
pagerDirection: "vertical", // 翻页按钮方向,可选值:vertical/horizontal
height: 24,
pages: 1, // 必选项
curr: 1, // 初始化当前页, pages为数字时可用,
@ -60453,7 +60373,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
},
_init: function () {
BI.AllCountPager.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var self = this, o = this.options, pagerIconCls = this._getPagerIconCls();
this.editor = BI.createWidget({
type: "bi.small_text_editor",
cls: "pager-editor",
@ -60490,7 +60410,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-prev pull-up-font"
cls: "bi-border all-pager-prev" + pagerIconCls.preCls
},
next: {
type: "bi.icon_button",
@ -60499,7 +60419,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-next pull-down-font"
cls: "bi-border all-pager-next" + pagerIconCls.nextCls
},
hasPrev: o.hasPrev,
@ -60564,6 +60484,23 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
alwaysShowPager: true,
_getPagerIconCls: function () {
var o = this.options;
switch (o.pagerDirection) {
case "horizontal":
return {
preCls: " row-pre-page-h-font ",
nextCls: " row-next-page-h-font "
};
case "vertical":
default:
return {
preCls: " column-pre-page-h-font ",
nextCls: " column-next-page-h-font "
};
}
},
setAllPages: function (v) {
this.allPages.setText("/" + v);
this.allPages.setTitle(v);
@ -60619,7 +60556,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.DirectionPager.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-direction-pager",
height: 20,
height: 24,
horizontal: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
@ -60653,19 +60590,19 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
items: [{
el: this.vpager,
top: 0,
right: 74
right: 86
}, {
el: this.vlabel,
top: 0,
right: 111
right: 110
}, {
el: this.hpager,
top: 0,
right: -9
right: 0
}, {
el: this.hlabel,
top: 0,
right: 28
right: 24
}]
});
},
@ -60676,19 +60613,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.vlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: v.curr,
title: v.curr,
invisible: true
});
this.vpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -60704,20 +60640,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Up_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev column-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev column-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Down_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next column-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next column-next-page-h-font"
},
hasPrev: v.hasPrev,
@ -60741,19 +60675,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.hlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: h.curr,
title: h.curr,
invisible: true
});
this.hpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -60769,20 +60702,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Left_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev row-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev row-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Right_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next row-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next row-next-page-h-font"
},
hasPrev: h.hasPrev,
@ -60863,7 +60794,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
vShow = true;
}
this.setVisible(hShow || vShow);
var num = [74, 111, -9, 28];
var num = [86, 110, 0, 24];
var items = this.layout.attr("items");
if (vShow === true && hShow === true) {
@ -70073,8 +70004,11 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
},
_init: function () {
var o = this.options;
BI.MultiLayerSingleLevelTree.superclass._init.apply(this, arguments);
this.storeValue = o.value;
this.initTree(this.options.items);
this.check();
@ -70161,7 +70095,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
el: {
type: "bi.loader",
isDefaultInit: false,
isDefaultInit: o.itemsCreator !== BI.emptyFn,
chooseType: o.chooseType,
el: {
type: "bi.button_tree",
@ -80986,6 +80920,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
}, o.logic, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

60
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

83
dist/case.js vendored

@ -356,13 +356,16 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, {
doClick: function () {
BI.SingleSelectItem.superclass.doClick.apply(this, arguments);
if (this.isValid()) {
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this);
}
},
setSelected: function (v) {
BI.SingleSelectItem.superclass.setSelected.apply(this, arguments);
}
});
BI.SingleSelectItem.EVENT_CHANGE = "SingleSelectItem.EVENT_CHANGE";
BI.shortcut("bi.single_select_item", BI.SingleSelectItem);/**
* guy
* 单选框item
@ -8019,6 +8022,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-all-count-pager",
pagerDirection: "vertical", // 翻页按钮方向,可选值:vertical/horizontal
height: 24,
pages: 1, // 必选项
curr: 1, // 初始化当前页, pages为数字时可用,
@ -8027,7 +8031,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
},
_init: function () {
BI.AllCountPager.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var self = this, o = this.options, pagerIconCls = this._getPagerIconCls();
this.editor = BI.createWidget({
type: "bi.small_text_editor",
cls: "pager-editor",
@ -8064,7 +8068,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-prev pull-up-font"
cls: "bi-border all-pager-prev" + pagerIconCls.preCls
},
next: {
type: "bi.icon_button",
@ -8073,7 +8077,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-next pull-down-font"
cls: "bi-border all-pager-next" + pagerIconCls.nextCls
},
hasPrev: o.hasPrev,
@ -8138,6 +8142,23 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
alwaysShowPager: true,
_getPagerIconCls: function () {
var o = this.options;
switch (o.pagerDirection) {
case "horizontal":
return {
preCls: " row-pre-page-h-font ",
nextCls: " row-next-page-h-font "
};
case "vertical":
default:
return {
preCls: " column-pre-page-h-font ",
nextCls: " column-next-page-h-font "
};
}
},
setAllPages: function (v) {
this.allPages.setText("/" + v);
this.allPages.setTitle(v);
@ -8193,7 +8214,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.DirectionPager.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-direction-pager",
height: 20,
height: 24,
horizontal: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
@ -8227,19 +8248,19 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
items: [{
el: this.vpager,
top: 0,
right: 74
right: 86
}, {
el: this.vlabel,
top: 0,
right: 111
right: 110
}, {
el: this.hpager,
top: 0,
right: -9
right: 0
}, {
el: this.hlabel,
top: 0,
right: 28
right: 24
}]
});
},
@ -8250,19 +8271,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.vlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: v.curr,
title: v.curr,
invisible: true
});
this.vpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -8278,20 +8298,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Up_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev column-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev column-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Down_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next column-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next column-next-page-h-font"
},
hasPrev: v.hasPrev,
@ -8315,19 +8333,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.hlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: h.curr,
title: h.curr,
invisible: true
});
this.hpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -8343,20 +8360,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Left_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev row-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev row-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Right_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next row-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next row-next-page-h-font"
},
hasPrev: h.hasPrev,
@ -8437,7 +8452,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
vShow = true;
}
this.setVisible(hShow || vShow);
var num = [74, 111, -9, 28];
var num = [86, 110, 0, 24];
var items = this.layout.attr("items");
if (vShow === true && hShow === true) {

113
dist/core.js vendored

@ -11085,112 +11085,14 @@ if (!_global.BI) {
},
/**
* 对字符串进行加密 {@link #decrypt}
* @static
* @param str 原始字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 加密后的字符<EFBFBD>?
* 通用加密方法
*/
encrypt: function (str, keyt) {
if (str == "") {
return "";
}
str = escape(str);
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (keyt == null || keyt.length <= 0) {
alert("Please enter a password with which to encrypt the message.");
return null;
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var mult = parseInt(prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4) + prand.charAt(sPos * 5));
var incr = Math.ceil(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
if (mult < 2) {
alert("Algorithm cannot find a suitable hash. Please choose a different password. \nPossible considerations are to choose a more complex or longer password.");
return null;
}
// var salt = Math.round(Math.random() * 1000000000) % 100000000;
var salt = 101;
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10)) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i++) {
enc_chr = parseInt(str.charCodeAt(i) ^ Math.floor((prand / modu) * 255));
if (enc_chr < 16) {
enc_str += "0" + enc_chr.toString(16);
} else {
enc_str += enc_chr.toString(16);
}
prand = (mult * prand + incr) % modu;
}
salt = salt.toString(16);
while (salt.length < 8) {
salt = "0" + salt;
}
enc_str += salt;
return enc_str;
},
/**
* 对加密后的字符串解密 {@link #encrypt}
* @static
* @param str 加密过的字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 解密后的字符<EFBFBD>?
*/
decrypt: function (str, keyt) {
if (str == "") {
return "";
}
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (str == null || str.length < 8) {
return;
}
if (keyt == null || keyt.length <= 0) {
return;
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var tempmult = prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4);
if (sPos * 5 < prand.length) {
tempmult += prand.charAt(sPos * 5);
}
var mult = parseInt(tempmult);
var incr = Math.round(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
var salt = parseInt(str.substring(str.length - 8, str.length), 16);
str = str.substring(0, str.length - 8);
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10), 10) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i += 2) {
enc_chr = parseInt(parseInt(str.substring(i, i + 2), 16) ^ Math.floor((prand / modu) * 255));
enc_str += String.fromCharCode(enc_chr);
prand = (mult * prand + incr) % modu;
encrypt: function (type, text, key) {
switch (type) {
case BI.CRYPT_TYPE.AES:
default:
return BI.aesEncrypt(text, key);
}
return unescape(enc_str);
},
/**
@ -12335,6 +12237,9 @@ if (!_global.BI) {
/**
* CryptoJS core components.
*/
BI.CRYPT_TYPE = BI.CRYPT_TYPE || {};
BI.CRYPT_TYPE.AES = "aes";
var CryptoJS = CryptoJS || (function (Math, undefined) {
/**
* CryptoJS namespace.

32
dist/fineui.css vendored

@ -5315,67 +5315,67 @@ textarea::-webkit-scrollbar-thumb:hover {
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d9;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70d;');
}
.row-pre-page-h-font .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font:hover .b-font:before,
.row-pre-page-h-font.hover .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font.disabled .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d8;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70c;');
}
.row-next-page-h-font .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font:hover .b-font:before,
.row-next-page-h-font.hover .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font.disabled .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.column-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d6;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70a;');
}
.column-pre-page-h-font .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font:hover .b-font:before,
.column-pre-page-h-font.hover .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font.disabled .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d7;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70b;');
}
.column-next-page-h-font .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font:hover .b-font:before,
.column-next-page-h-font.hover .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font.disabled .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.expander-right-font .b-font {

223
dist/fineui.ie.js vendored

@ -11330,112 +11330,14 @@ if (!_global.BI) {
},
/**
* 对字符串进行加密 {@link #decrypt}
* @static
* @param str 原始字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 加密后的字符<EFBFBD>?
*/
encrypt: function (str, keyt) {
if (str == "") {
return "";
}
str = escape(str);
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (keyt == null || keyt.length <= 0) {
alert("Please enter a password with which to encrypt the message.");
return null;
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var mult = parseInt(prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4) + prand.charAt(sPos * 5));
var incr = Math.ceil(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
if (mult < 2) {
alert("Algorithm cannot find a suitable hash. Please choose a different password. \nPossible considerations are to choose a more complex or longer password.");
return null;
}
// var salt = Math.round(Math.random() * 1000000000) % 100000000;
var salt = 101;
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10)) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i++) {
enc_chr = parseInt(str.charCodeAt(i) ^ Math.floor((prand / modu) * 255));
if (enc_chr < 16) {
enc_str += "0" + enc_chr.toString(16);
} else {
enc_str += enc_chr.toString(16);
}
prand = (mult * prand + incr) % modu;
}
salt = salt.toString(16);
while (salt.length < 8) {
salt = "0" + salt;
}
enc_str += salt;
return enc_str;
},
/**
* 对加密后的字符串解密 {@link #encrypt}
* @static
* @param str 加密过的字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 解密后的字符<EFBFBD>?
* 通用加密方法
*/
decrypt: function (str, keyt) {
if (str == "") {
return "";
}
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (str == null || str.length < 8) {
return;
}
if (keyt == null || keyt.length <= 0) {
return;
encrypt: function (type, text, key) {
switch (type) {
case BI.CRYPT_TYPE.AES:
default:
return BI.aesEncrypt(text, key);
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var tempmult = prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4);
if (sPos * 5 < prand.length) {
tempmult += prand.charAt(sPos * 5);
}
var mult = parseInt(tempmult);
var incr = Math.round(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
var salt = parseInt(str.substring(str.length - 8, str.length), 16);
str = str.substring(0, str.length - 8);
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10), 10) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i += 2) {
enc_chr = parseInt(parseInt(str.substring(i, i + 2), 16) ^ Math.floor((prand / modu) * 255));
enc_str += String.fromCharCode(enc_chr);
prand = (mult * prand + incr) % modu;
}
return unescape(enc_str);
},
/**
@ -12580,6 +12482,9 @@ if (!_global.BI) {
/**
* CryptoJS core components.
*/
BI.CRYPT_TYPE = BI.CRYPT_TYPE || {};
BI.CRYPT_TYPE.AES = "aes";
var CryptoJS = CryptoJS || (function (Math, undefined) {
/**
* CryptoJS namespace.
@ -41483,7 +41388,7 @@ BI.Combo = BI.inherit(BI.Widget, {
baseCls: (conf.baseCls || "") + " bi-combo",
trigger: "click",
toggle: true,
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft||innerRight||innerLeft
logic: {
dynamic: true
},
@ -41863,6 +41768,12 @@ BI.Combo = BI.inherit(BI.Widget, {
case "right,innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["right", "left", "innerLeft", "innerRight", "bottom", "top"], o.offsetStyle);
break;
case "innerRight":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerRight", "innerLeft", "right", "left", "bottom", "top"], o.offsetStyle);
break;
case "innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerLeft", "innerRight", "left", "right", "bottom", "top"], o.offsetStyle);
break;
case "top,custom":
case "custom,top":
p = BI.DOM.getTopAdaptPosition(combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight);
@ -47452,8 +47363,8 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
value: ""
});
},
_init: function () {
BI.TextAreaEditor.superclass._init.apply(this, arguments);
render: function() {
var o = this.options, self = this;
this.content = BI.createWidget({
type: "bi.layout",
@ -47503,10 +47414,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName());
});
if (BI.isKey(o.value)) {
self.setValue(o.value);
this.setValue(o.value);
}
if (BI.isNotNull(o.style)) {
self.setStyle(o.style);
this.setStyle(o.style);
}
this._checkWaterMark();
},
@ -47596,6 +47507,11 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.TextAreaEditor.superclass._setValid.apply(this, arguments);
// this.content.setValid(b);
// this.watermark && this.watermark.setValid(b);
},
_setEnable: function (b) {
BI.TextAreaEditor.superclass._setEnable.apply(this, [b]);
this.content && (this.content.element[0].disabled = !b);
}
});
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -52623,13 +52539,16 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, {
doClick: function () {
BI.SingleSelectItem.superclass.doClick.apply(this, arguments);
if (this.isValid()) {
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this);
}
},
setSelected: function (v) {
BI.SingleSelectItem.superclass.setSelected.apply(this, arguments);
}
});
BI.SingleSelectItem.EVENT_CHANGE = "SingleSelectItem.EVENT_CHANGE";
BI.shortcut("bi.single_select_item", BI.SingleSelectItem);/**
* guy
* 单选框item
@ -60286,6 +60205,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-all-count-pager",
pagerDirection: "vertical", // 翻页按钮方向,可选值:vertical/horizontal
height: 24,
pages: 1, // 必选项
curr: 1, // 初始化当前页, pages为数字时可用,
@ -60294,7 +60214,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
},
_init: function () {
BI.AllCountPager.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var self = this, o = this.options, pagerIconCls = this._getPagerIconCls();
this.editor = BI.createWidget({
type: "bi.small_text_editor",
cls: "pager-editor",
@ -60331,7 +60251,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-prev pull-up-font"
cls: "bi-border all-pager-prev" + pagerIconCls.preCls
},
next: {
type: "bi.icon_button",
@ -60340,7 +60260,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-next pull-down-font"
cls: "bi-border all-pager-next" + pagerIconCls.nextCls
},
hasPrev: o.hasPrev,
@ -60405,6 +60325,23 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
alwaysShowPager: true,
_getPagerIconCls: function () {
var o = this.options;
switch (o.pagerDirection) {
case "horizontal":
return {
preCls: " row-pre-page-h-font ",
nextCls: " row-next-page-h-font "
};
case "vertical":
default:
return {
preCls: " column-pre-page-h-font ",
nextCls: " column-next-page-h-font "
};
}
},
setAllPages: function (v) {
this.allPages.setText("/" + v);
this.allPages.setTitle(v);
@ -60460,7 +60397,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.DirectionPager.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-direction-pager",
height: 20,
height: 24,
horizontal: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
@ -60494,19 +60431,19 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
items: [{
el: this.vpager,
top: 0,
right: 74
right: 86
}, {
el: this.vlabel,
top: 0,
right: 111
right: 110
}, {
el: this.hpager,
top: 0,
right: -9
right: 0
}, {
el: this.hlabel,
top: 0,
right: 28
right: 24
}]
});
},
@ -60517,19 +60454,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.vlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: v.curr,
title: v.curr,
invisible: true
});
this.vpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -60545,20 +60481,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Up_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev column-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev column-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Down_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next column-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next column-next-page-h-font"
},
hasPrev: v.hasPrev,
@ -60582,19 +60516,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.hlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: h.curr,
title: h.curr,
invisible: true
});
this.hpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -60610,20 +60543,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Left_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev row-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev row-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Right_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next row-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next row-next-page-h-font"
},
hasPrev: h.hasPrev,
@ -60704,7 +60635,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
vShow = true;
}
this.setVisible(hShow || vShow);
var num = [74, 111, -9, 28];
var num = [86, 110, 0, 24];
var items = this.layout.attr("items");
if (vShow === true && hShow === true) {
@ -69914,8 +69845,11 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
},
_init: function () {
var o = this.options;
BI.MultiLayerSingleLevelTree.superclass._init.apply(this, arguments);
this.storeValue = o.value;
this.initTree(this.options.items);
this.check();
@ -70002,7 +69936,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
el: {
type: "bi.loader",
isDefaultInit: false,
isDefaultInit: o.itemsCreator !== BI.emptyFn,
chooseType: o.chooseType,
el: {
type: "bi.button_tree",
@ -80827,6 +80761,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
}, o.logic, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),

81
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

223
dist/fineui.js vendored

@ -11330,112 +11330,14 @@ if (!_global.BI) {
},
/**
* 对字符串进行加密 {@link #decrypt}
* @static
* @param str 原始字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 加密后的字符<EFBFBD>?
*/
encrypt: function (str, keyt) {
if (str == "") {
return "";
}
str = escape(str);
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (keyt == null || keyt.length <= 0) {
alert("Please enter a password with which to encrypt the message.");
return null;
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var mult = parseInt(prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4) + prand.charAt(sPos * 5));
var incr = Math.ceil(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
if (mult < 2) {
alert("Algorithm cannot find a suitable hash. Please choose a different password. \nPossible considerations are to choose a more complex or longer password.");
return null;
}
// var salt = Math.round(Math.random() * 1000000000) % 100000000;
var salt = 101;
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10)) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i++) {
enc_chr = parseInt(str.charCodeAt(i) ^ Math.floor((prand / modu) * 255));
if (enc_chr < 16) {
enc_str += "0" + enc_chr.toString(16);
} else {
enc_str += enc_chr.toString(16);
}
prand = (mult * prand + incr) % modu;
}
salt = salt.toString(16);
while (salt.length < 8) {
salt = "0" + salt;
}
enc_str += salt;
return enc_str;
},
/**
* 对加密后的字符串解密 {@link #encrypt}
* @static
* @param str 加密过的字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 解密后的字符<EFBFBD>?
* 通用加密方法
*/
decrypt: function (str, keyt) {
if (str == "") {
return "";
}
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (str == null || str.length < 8) {
return;
}
if (keyt == null || keyt.length <= 0) {
return;
encrypt: function (type, text, key) {
switch (type) {
case BI.CRYPT_TYPE.AES:
default:
return BI.aesEncrypt(text, key);
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var tempmult = prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4);
if (sPos * 5 < prand.length) {
tempmult += prand.charAt(sPos * 5);
}
var mult = parseInt(tempmult);
var incr = Math.round(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
var salt = parseInt(str.substring(str.length - 8, str.length), 16);
str = str.substring(0, str.length - 8);
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10), 10) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i += 2) {
enc_chr = parseInt(parseInt(str.substring(i, i + 2), 16) ^ Math.floor((prand / modu) * 255));
enc_str += String.fromCharCode(enc_chr);
prand = (mult * prand + incr) % modu;
}
return unescape(enc_str);
},
/**
@ -12580,6 +12482,9 @@ if (!_global.BI) {
/**
* CryptoJS core components.
*/
BI.CRYPT_TYPE = BI.CRYPT_TYPE || {};
BI.CRYPT_TYPE.AES = "aes";
var CryptoJS = CryptoJS || (function (Math, undefined) {
/**
* CryptoJS namespace.
@ -41887,7 +41792,7 @@ BI.Combo = BI.inherit(BI.Widget, {
baseCls: (conf.baseCls || "") + " bi-combo",
trigger: "click",
toggle: true,
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft||innerRight||innerLeft
logic: {
dynamic: true
},
@ -42267,6 +42172,12 @@ BI.Combo = BI.inherit(BI.Widget, {
case "right,innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["right", "left", "innerLeft", "innerRight", "bottom", "top"], o.offsetStyle);
break;
case "innerRight":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerRight", "innerLeft", "right", "left", "bottom", "top"], o.offsetStyle);
break;
case "innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerLeft", "innerRight", "left", "right", "bottom", "top"], o.offsetStyle);
break;
case "top,custom":
case "custom,top":
p = BI.DOM.getTopAdaptPosition(combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight);
@ -47856,8 +47767,8 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
value: ""
});
},
_init: function () {
BI.TextAreaEditor.superclass._init.apply(this, arguments);
render: function() {
var o = this.options, self = this;
this.content = BI.createWidget({
type: "bi.layout",
@ -47907,10 +47818,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName());
});
if (BI.isKey(o.value)) {
self.setValue(o.value);
this.setValue(o.value);
}
if (BI.isNotNull(o.style)) {
self.setStyle(o.style);
this.setStyle(o.style);
}
this._checkWaterMark();
},
@ -48000,6 +47911,11 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.TextAreaEditor.superclass._setValid.apply(this, arguments);
// this.content.setValid(b);
// this.watermark && this.watermark.setValid(b);
},
_setEnable: function (b) {
BI.TextAreaEditor.superclass._setEnable.apply(this, [b]);
this.content && (this.content.element[0].disabled = !b);
}
});
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -53027,13 +52943,16 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, {
doClick: function () {
BI.SingleSelectItem.superclass.doClick.apply(this, arguments);
if (this.isValid()) {
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this);
}
},
setSelected: function (v) {
BI.SingleSelectItem.superclass.setSelected.apply(this, arguments);
}
});
BI.SingleSelectItem.EVENT_CHANGE = "SingleSelectItem.EVENT_CHANGE";
BI.shortcut("bi.single_select_item", BI.SingleSelectItem);/**
* guy
* 单选框item
@ -60690,6 +60609,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-all-count-pager",
pagerDirection: "vertical", // 翻页按钮方向,可选值:vertical/horizontal
height: 24,
pages: 1, // 必选项
curr: 1, // 初始化当前页, pages为数字时可用,
@ -60698,7 +60618,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
},
_init: function () {
BI.AllCountPager.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var self = this, o = this.options, pagerIconCls = this._getPagerIconCls();
this.editor = BI.createWidget({
type: "bi.small_text_editor",
cls: "pager-editor",
@ -60735,7 +60655,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-prev pull-up-font"
cls: "bi-border all-pager-prev" + pagerIconCls.preCls
},
next: {
type: "bi.icon_button",
@ -60744,7 +60664,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-next pull-down-font"
cls: "bi-border all-pager-next" + pagerIconCls.nextCls
},
hasPrev: o.hasPrev,
@ -60809,6 +60729,23 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
alwaysShowPager: true,
_getPagerIconCls: function () {
var o = this.options;
switch (o.pagerDirection) {
case "horizontal":
return {
preCls: " row-pre-page-h-font ",
nextCls: " row-next-page-h-font "
};
case "vertical":
default:
return {
preCls: " column-pre-page-h-font ",
nextCls: " column-next-page-h-font "
};
}
},
setAllPages: function (v) {
this.allPages.setText("/" + v);
this.allPages.setTitle(v);
@ -60864,7 +60801,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.DirectionPager.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-direction-pager",
height: 20,
height: 24,
horizontal: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
@ -60898,19 +60835,19 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
items: [{
el: this.vpager,
top: 0,
right: 74
right: 86
}, {
el: this.vlabel,
top: 0,
right: 111
right: 110
}, {
el: this.hpager,
top: 0,
right: -9
right: 0
}, {
el: this.hlabel,
top: 0,
right: 28
right: 24
}]
});
},
@ -60921,19 +60858,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.vlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: v.curr,
title: v.curr,
invisible: true
});
this.vpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -60949,20 +60885,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Up_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev column-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev column-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Down_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next column-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next column-next-page-h-font"
},
hasPrev: v.hasPrev,
@ -60986,19 +60920,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.hlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: h.curr,
title: h.curr,
invisible: true
});
this.hpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -61014,20 +60947,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Left_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev row-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev row-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Right_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next row-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next row-next-page-h-font"
},
hasPrev: h.hasPrev,
@ -61108,7 +61039,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
vShow = true;
}
this.setVisible(hShow || vShow);
var num = [74, 111, -9, 28];
var num = [86, 110, 0, 24];
var items = this.layout.attr("items");
if (vShow === true && hShow === true) {
@ -70318,8 +70249,11 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
},
_init: function () {
var o = this.options;
BI.MultiLayerSingleLevelTree.superclass._init.apply(this, arguments);
this.storeValue = o.value;
this.initTree(this.options.items);
this.check();
@ -70406,7 +70340,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
el: {
type: "bi.loader",
isDefaultInit: false,
isDefaultInit: o.itemsCreator !== BI.emptyFn,
chooseType: o.chooseType,
el: {
type: "bi.button_tree",
@ -81231,6 +81165,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
}, o.logic, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

81
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

223
dist/fineui_without_jquery_polyfill.js vendored

@ -11085,112 +11085,14 @@ if (!_global.BI) {
},
/**
* 对字符串进行加密 {@link #decrypt}
* @static
* @param str 原始字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 加密后的字符<EFBFBD>?
*/
encrypt: function (str, keyt) {
if (str == "") {
return "";
}
str = escape(str);
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (keyt == null || keyt.length <= 0) {
alert("Please enter a password with which to encrypt the message.");
return null;
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var mult = parseInt(prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4) + prand.charAt(sPos * 5));
var incr = Math.ceil(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
if (mult < 2) {
alert("Algorithm cannot find a suitable hash. Please choose a different password. \nPossible considerations are to choose a more complex or longer password.");
return null;
}
// var salt = Math.round(Math.random() * 1000000000) % 100000000;
var salt = 101;
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10)) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i++) {
enc_chr = parseInt(str.charCodeAt(i) ^ Math.floor((prand / modu) * 255));
if (enc_chr < 16) {
enc_str += "0" + enc_chr.toString(16);
} else {
enc_str += enc_chr.toString(16);
}
prand = (mult * prand + incr) % modu;
}
salt = salt.toString(16);
while (salt.length < 8) {
salt = "0" + salt;
}
enc_str += salt;
return enc_str;
},
/**
* 对加密后的字符串解密 {@link #encrypt}
* @static
* @param str 加密过的字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 解密后的字符<EFBFBD>?
* 通用加密方法
*/
decrypt: function (str, keyt) {
if (str == "") {
return "";
}
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (str == null || str.length < 8) {
return;
}
if (keyt == null || keyt.length <= 0) {
return;
encrypt: function (type, text, key) {
switch (type) {
case BI.CRYPT_TYPE.AES:
default:
return BI.aesEncrypt(text, key);
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var tempmult = prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4);
if (sPos * 5 < prand.length) {
tempmult += prand.charAt(sPos * 5);
}
var mult = parseInt(tempmult);
var incr = Math.round(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
var salt = parseInt(str.substring(str.length - 8, str.length), 16);
str = str.substring(0, str.length - 8);
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10), 10) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i += 2) {
enc_chr = parseInt(parseInt(str.substring(i, i + 2), 16) ^ Math.floor((prand / modu) * 255));
enc_str += String.fromCharCode(enc_chr);
prand = (mult * prand + incr) % modu;
}
return unescape(enc_str);
},
/**
@ -12335,6 +12237,9 @@ if (!_global.BI) {
/**
* CryptoJS core components.
*/
BI.CRYPT_TYPE = BI.CRYPT_TYPE || {};
BI.CRYPT_TYPE.AES = "aes";
var CryptoJS = CryptoJS || (function (Math, undefined) {
/**
* CryptoJS namespace.
@ -29013,7 +28918,7 @@ BI.Combo = BI.inherit(BI.Widget, {
baseCls: (conf.baseCls || "") + " bi-combo",
trigger: "click",
toggle: true,
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft||innerRight||innerLeft
logic: {
dynamic: true
},
@ -29393,6 +29298,12 @@ BI.Combo = BI.inherit(BI.Widget, {
case "right,innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["right", "left", "innerLeft", "innerRight", "bottom", "top"], o.offsetStyle);
break;
case "innerRight":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerRight", "innerLeft", "right", "left", "bottom", "top"], o.offsetStyle);
break;
case "innerLeft":
p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, ["innerLeft", "innerRight", "left", "right", "bottom", "top"], o.offsetStyle);
break;
case "top,custom":
case "custom,top":
p = BI.DOM.getTopAdaptPosition(combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight);
@ -34982,8 +34893,8 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
value: ""
});
},
_init: function () {
BI.TextAreaEditor.superclass._init.apply(this, arguments);
render: function() {
var o = this.options, self = this;
this.content = BI.createWidget({
type: "bi.layout",
@ -35033,10 +34944,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName());
});
if (BI.isKey(o.value)) {
self.setValue(o.value);
this.setValue(o.value);
}
if (BI.isNotNull(o.style)) {
self.setStyle(o.style);
this.setStyle(o.style);
}
this._checkWaterMark();
},
@ -35126,6 +35037,11 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.TextAreaEditor.superclass._setValid.apply(this, arguments);
// this.content.setValid(b);
// this.watermark && this.watermark.setValid(b);
},
_setEnable: function (b) {
BI.TextAreaEditor.superclass._setEnable.apply(this, [b]);
this.content && (this.content.element[0].disabled = !b);
}
});
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -37185,13 +37101,16 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, {
doClick: function () {
BI.SingleSelectItem.superclass.doClick.apply(this, arguments);
if (this.isValid()) {
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this);
}
},
setSelected: function (v) {
BI.SingleSelectItem.superclass.setSelected.apply(this, arguments);
}
});
BI.SingleSelectItem.EVENT_CHANGE = "SingleSelectItem.EVENT_CHANGE";
BI.shortcut("bi.single_select_item", BI.SingleSelectItem);/**
* guy
* 单选框item
@ -43305,6 +43224,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-all-count-pager",
pagerDirection: "vertical", // 翻页按钮方向,可选值:vertical/horizontal
height: 24,
pages: 1, // 必选项
curr: 1, // 初始化当前页, pages为数字时可用,
@ -43313,7 +43233,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
},
_init: function () {
BI.AllCountPager.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var self = this, o = this.options, pagerIconCls = this._getPagerIconCls();
this.editor = BI.createWidget({
type: "bi.small_text_editor",
cls: "pager-editor",
@ -43350,7 +43270,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-prev pull-up-font"
cls: "bi-border all-pager-prev" + pagerIconCls.preCls
},
next: {
type: "bi.icon_button",
@ -43359,7 +43279,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-next pull-down-font"
cls: "bi-border all-pager-next" + pagerIconCls.nextCls
},
hasPrev: o.hasPrev,
@ -43424,6 +43344,23 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
alwaysShowPager: true,
_getPagerIconCls: function () {
var o = this.options;
switch (o.pagerDirection) {
case "horizontal":
return {
preCls: " row-pre-page-h-font ",
nextCls: " row-next-page-h-font "
};
case "vertical":
default:
return {
preCls: " column-pre-page-h-font ",
nextCls: " column-next-page-h-font "
};
}
},
setAllPages: function (v) {
this.allPages.setText("/" + v);
this.allPages.setTitle(v);
@ -43479,7 +43416,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.DirectionPager.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-direction-pager",
height: 20,
height: 24,
horizontal: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
@ -43513,19 +43450,19 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
items: [{
el: this.vpager,
top: 0,
right: 74
right: 86
}, {
el: this.vlabel,
top: 0,
right: 111
right: 110
}, {
el: this.hpager,
top: 0,
right: -9
right: 0
}, {
el: this.hlabel,
top: 0,
right: 28
right: 24
}]
});
},
@ -43536,19 +43473,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.vlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: v.curr,
title: v.curr,
invisible: true
});
this.vpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -43564,20 +43500,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Up_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev column-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev column-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Down_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next column-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next column-next-page-h-font"
},
hasPrev: v.hasPrev,
@ -43601,19 +43535,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.hlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: h.curr,
title: h.curr,
invisible: true
});
this.hpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -43629,20 +43562,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Left_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev row-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev row-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Right_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next row-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next row-next-page-h-font"
},
hasPrev: h.hasPrev,
@ -43723,7 +43654,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
vShow = true;
}
this.setVisible(hShow || vShow);
var num = [74, 111, -9, 28];
var num = [86, 110, 0, 24];
var items = this.layout.attr("items");
if (vShow === true && hShow === true) {
@ -52657,8 +52588,11 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
},
_init: function () {
var o = this.options;
BI.MultiLayerSingleLevelTree.superclass._init.apply(this, arguments);
this.storeValue = o.value;
this.initTree(this.options.items);
this.check();
@ -52745,7 +52679,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
el: {
type: "bi.loader",
isDefaultInit: false,
isDefaultInit: o.itemsCreator !== BI.emptyFn,
chooseType: o.chooseType,
el: {
type: "bi.button_tree",
@ -63570,6 +63504,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
}, o.logic, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),

32
dist/resource.css vendored

@ -739,67 +739,67 @@ textarea::-webkit-scrollbar-thumb:hover {
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d9;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70d;');
}
.row-pre-page-h-font .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font:hover .b-font:before,
.row-pre-page-h-font.hover .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font.disabled .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d8;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70c;');
}
.row-next-page-h-font .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font:hover .b-font:before,
.row-next-page-h-font.hover .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font.disabled .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.column-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d6;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70a;');
}
.column-pre-page-h-font .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font:hover .b-font:before,
.column-pre-page-h-font.hover .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font.disabled .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d7;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70b;');
}
.column-next-page-h-font .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font:hover .b-font:before,
.column-next-page-h-font.hover .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font.disabled .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.expander-right-font .b-font {

113
dist/utils.js vendored

@ -11864,112 +11864,14 @@ if (!_global.BI) {
},
/**
* 对字符串进行加密 {@link #decrypt}
* @static
* @param str 原始字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 加密后的字符<EFBFBD>?
*/
encrypt: function (str, keyt) {
if (str == "") {
return "";
}
str = escape(str);
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (keyt == null || keyt.length <= 0) {
alert("Please enter a password with which to encrypt the message.");
return null;
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var mult = parseInt(prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4) + prand.charAt(sPos * 5));
var incr = Math.ceil(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
if (mult < 2) {
alert("Algorithm cannot find a suitable hash. Please choose a different password. \nPossible considerations are to choose a more complex or longer password.");
return null;
}
// var salt = Math.round(Math.random() * 1000000000) % 100000000;
var salt = 101;
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10)) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i++) {
enc_chr = parseInt(str.charCodeAt(i) ^ Math.floor((prand / modu) * 255));
if (enc_chr < 16) {
enc_str += "0" + enc_chr.toString(16);
} else {
enc_str += enc_chr.toString(16);
}
prand = (mult * prand + incr) % modu;
}
salt = salt.toString(16);
while (salt.length < 8) {
salt = "0" + salt;
}
enc_str += salt;
return enc_str;
},
/**
* 对加密后的字符串解密 {@link #encrypt}
* @static
* @param str 加密过的字符<EFBFBD>?
* @param keyt 密钥
* @returns {String} 解密后的字符<EFBFBD>?
* 通用加密方法
*/
decrypt: function (str, keyt) {
if (str == "") {
return "";
}
if (!keyt || keyt == "") {
keyt = "655";
}
keyt = escape(keyt);
if (str == null || str.length < 8) {
return;
}
if (keyt == null || keyt.length <= 0) {
return;
}
var prand = "";
for (var i = 0; i < keyt.length; i++) {
prand += keyt.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var tempmult = prand.charAt(sPos) + prand.charAt(sPos * 2) + prand.charAt(sPos * 3) + prand.charAt(sPos * 4);
if (sPos * 5 < prand.length) {
tempmult += prand.charAt(sPos * 5);
}
var mult = parseInt(tempmult);
var incr = Math.round(keyt.length / 2);
var modu = Math.pow(2, 31) - 1;
var salt = parseInt(str.substring(str.length - 8, str.length), 16);
str = str.substring(0, str.length - 8);
prand += salt;
while (prand.length > 10) {
prand = (parseInt(prand.substring(0, 10), 10) + parseInt(prand.substring(10, prand.length), 10)).toString();
}
prand = (mult * prand + incr) % modu;
var enc_chr = "";
var enc_str = "";
for (var i = 0; i < str.length; i += 2) {
enc_chr = parseInt(parseInt(str.substring(i, i + 2), 16) ^ Math.floor((prand / modu) * 255));
enc_str += String.fromCharCode(enc_chr);
prand = (mult * prand + incr) % modu;
encrypt: function (type, text, key) {
switch (type) {
case BI.CRYPT_TYPE.AES:
default:
return BI.aesEncrypt(text, key);
}
return unescape(enc_str);
},
/**
@ -13701,6 +13603,9 @@ if (!_global.BI) {
/**
* CryptoJS core components.
*/
BI.CRYPT_TYPE = BI.CRYPT_TYPE || {};
BI.CRYPT_TYPE.AES = "aes";
var CryptoJS = CryptoJS || (function (Math, undefined) {
/**
* CryptoJS namespace.

8
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

6
dist/widget.js vendored

@ -7715,8 +7715,11 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
},
_init: function () {
var o = this.options;
BI.MultiLayerSingleLevelTree.superclass._init.apply(this, arguments);
this.storeValue = o.value;
this.initTree(this.options.items);
this.check();
@ -7803,7 +7806,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
el: {
type: "bi.loader",
isDefaultInit: false,
isDefaultInit: o.itemsCreator !== BI.emptyFn,
chooseType: o.chooseType,
el: {
type: "bi.button_tree",
@ -18628,6 +18631,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
}, o.logic, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),

32
public/css/font.css

@ -456,67 +456,67 @@
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d9;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70d;');
}
.row-pre-page-h-font .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font:hover .b-font:before,
.row-pre-page-h-font.hover .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font.disabled .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d8;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70c;');
}
.row-next-page-h-font .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font:hover .b-font:before,
.row-next-page-h-font.hover .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font.disabled .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.column-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d6;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70a;');
}
.column-pre-page-h-font .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font:hover .b-font:before,
.column-pre-page-h-font.hover .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font.disabled .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d7;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70b;');
}
.column-next-page-h-font .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font:hover .b-font:before,
.column-next-page-h-font.hover .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font.disabled .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.expander-right-font .b-font {

24
src/case/pager/pager.all.count.js

@ -7,6 +7,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-all-count-pager",
pagerDirection: "vertical", // 翻页按钮方向,可选值:vertical/horizontal
height: 24,
pages: 1, // 必选项
curr: 1, // 初始化当前页, pages为数字时可用,
@ -15,7 +16,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
},
_init: function () {
BI.AllCountPager.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var self = this, o = this.options, pagerIconCls = this._getPagerIconCls();
this.editor = BI.createWidget({
type: "bi.small_text_editor",
cls: "pager-editor",
@ -52,7 +53,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-prev pull-up-font"
cls: "bi-border all-pager-prev" + pagerIconCls.preCls
},
next: {
type: "bi.icon_button",
@ -61,7 +62,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 22,
width: 22,
cls: "bi-border all-pager-next pull-down-font"
cls: "bi-border all-pager-next" + pagerIconCls.nextCls
},
hasPrev: o.hasPrev,
@ -126,6 +127,23 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
alwaysShowPager: true,
_getPagerIconCls: function () {
var o = this.options;
switch (o.pagerDirection) {
case "horizontal":
return {
preCls: " row-pre-page-h-font ",
nextCls: " row-next-page-h-font "
};
case "vertical":
default:
return {
preCls: " column-pre-page-h-font ",
nextCls: " column-next-page-h-font "
};
}
},
setAllPages: function (v) {
this.allPages.setText("/" + v);
this.allPages.setTitle(v);

54
src/case/pager/pager.direction.js

@ -10,7 +10,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.DirectionPager.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-direction-pager",
height: 20,
height: 24,
horizontal: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
@ -44,19 +44,19 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
items: [{
el: this.vpager,
top: 0,
right: 74
right: 86
}, {
el: this.vlabel,
top: 0,
right: 111
right: 110
}, {
el: this.hpager,
top: 0,
right: -9
right: 0
}, {
el: this.hlabel,
top: 0,
right: 28
right: 24
}]
});
},
@ -67,19 +67,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.vlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: v.curr,
title: v.curr,
invisible: true
});
this.vpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -95,20 +94,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Up_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev column-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev column-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Down_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next column-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next column-next-page-h-font"
},
hasPrev: v.hasPrev,
@ -132,19 +129,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
this.hlabel = BI.createWidget({
type: "bi.label",
width: 24,
height: 20,
height: 24,
value: h.curr,
title: h.curr,
invisible: true
});
this.hpager = BI.createWidget({
type: "bi.pager",
width: 76,
width: 72,
layouts: [{
type: "bi.horizontal",
scrollx: false,
rgap: 24,
vgap: 1
rgap: 24
}],
invisible: true,
@ -160,20 +156,18 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
value: "prev",
title: BI.i18nText("BI-Left_Page"),
warningTitle: BI.i18nText("BI-Current_Is_First_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-prev row-pre-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-prev row-pre-page-h-font"
},
next: {
type: "bi.icon_button",
value: "next",
title: BI.i18nText("BI-Right_Page"),
warningTitle: BI.i18nText("BI-Current_Is_Last_Page"),
height: 20,
iconWidth: 16,
iconHeight: 16,
cls: "direction-pager-next row-next-page-h-font"
height: 22,
width: 22,
cls: "bi-border direction-pager-next row-next-page-h-font"
},
hasPrev: h.hasPrev,
@ -254,7 +248,7 @@ BI.DirectionPager = BI.inherit(BI.Widget, {
vShow = true;
}
this.setVisible(hShow || vShow);
var num = [74, 111, -9, 28];
var num = [86, 110, 0, 24];
var items = this.layout.attr("items");
if (vShow === true && hShow === true) {

32
src/css/resource/font.css

@ -456,67 +456,67 @@
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d9;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70d;');
}
.row-pre-page-h-font .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font:hover .b-font:before,
.row-pre-page-h-font.hover .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font.disabled .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d8;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70c;');
}
.row-next-page-h-font .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font:hover .b-font:before,
.row-next-page-h-font.hover .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font.disabled .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.column-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d6;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70a;');
}
.column-pre-page-h-font .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font:hover .b-font:before,
.column-pre-page-h-font.hover .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font.disabled .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d7;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70b;');
}
.column-next-page-h-font .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font:hover .b-font:before,
.column-next-page-h-font.hover .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font.disabled .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.expander-right-font .b-font {

8
src/less/resource/font.less

@ -52,10 +52,10 @@
//翻页按钮字体图标
.font-hover(row-pre-page-h-font, @font-solid-left);
.font-hover(row-next-page-h-font, @font-solid-right);
.font-hover(column-pre-page-h-font, @font-solid-top);
.font-hover(column-next-page-h-font, @font-solid-bottom);
.font-hover(row-pre-page-h-font, @font-arrow-left);
.font-hover(row-next-page-h-font, @font-arrow-right);
.font-hover(column-pre-page-h-font, @font-up-triangle);
.font-hover(column-next-page-h-font, @font-down-triangle);
.font(expander-right-font, @font-solid-right);
.font(expander-down-font, @font-solid-bottom);

32
ui/css/font.css

@ -456,67 +456,67 @@
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d9;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70d;');
}
.row-pre-page-h-font .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font:hover .b-font:before,
.row-pre-page-h-font.hover .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-pre-page-h-font.disabled .b-font:before {
content: "\e6d9";
content: "\e70d";
color: inherit;
}
.row-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d8;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70c;');
}
.row-next-page-h-font .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font:hover .b-font:before,
.row-next-page-h-font.hover .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.row-next-page-h-font.disabled .b-font:before {
content: "\e6d8";
content: "\e70c";
color: inherit;
}
.column-pre-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d6;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70a;');
}
.column-pre-page-h-font .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font:hover .b-font:before,
.column-pre-page-h-font.hover .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-pre-page-h-font.disabled .b-font:before {
content: "\e6d6";
content: "\e70a";
color: inherit;
}
.column-next-page-h-font .b-font {
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe6d7;');
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#xe70b;');
}
.column-next-page-h-font .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font:hover .b-font:before,
.column-next-page-h-font.hover .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.column-next-page-h-font.disabled .b-font:before {
content: "\e6d7";
content: "\e70b";
color: inherit;
}
.expander-right-font .b-font {

Loading…
Cancel
Save