Browse Source

Merge branch 'master' of ssh://cloud.finedevelop.com:7999/~kira/fineui

es6
Kira 4 years ago
parent
commit
4f628ddfcf
  1. 4
      dist/2.0/fineui.css
  2. 4
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.ie.min.js.map
  4. 929
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.js.map
  6. 4
      dist/2.0/fineui.min.css
  7. 4
      dist/2.0/fineui.min.js
  8. 2
      dist/2.0/fineui.min.js.map
  9. 4
      dist/2.0/fineui_without_normalize.css
  10. 4
      dist/2.0/fineui_without_normalize.min.css
  11. 4
      dist/core.css
  12. 899
      dist/core.js
  13. 2
      dist/core.js.map
  14. 4
      dist/demo.css
  15. 1263
      dist/demo.js
  16. 2
      dist/demo.js.map
  17. 4
      dist/fineui.css
  18. 4
      dist/fineui.ie.min.js
  19. 2
      dist/fineui.ie.min.js.map
  20. 923
      dist/fineui.js
  21. 2
      dist/fineui.js.map
  22. 4
      dist/fineui.min.css
  23. 4
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 4
      dist/fineui.proxy.css
  26. 209
      dist/fineui.proxy.js
  27. 2
      dist/fineui.proxy.js.map
  28. 4
      dist/fineui.proxy.min.css
  29. 4
      dist/fineui.proxy.min.js
  30. 2
      dist/fineui.proxy.min.js.map
  31. 59
      dist/fineui_without_jquery_polyfill.js
  32. 2
      dist/fineui_without_jquery_polyfill.js.map
  33. 2
      dist/font.css
  34. 12
      dist/lib/base/pager/pager.d.ts
  35. 4
      dist/lib/index.d.ts
  36. 2
      dist/resource.css
  37. 14
      dist/utils.js
  38. 2
      dist/utils.js.map
  39. 4
      dist/utils.min.js
  40. 2
      dist/utils.min.js.map
  41. 2
      package.json
  42. 6
      src/base/single/editor/editor.textarea.js
  43. 80
      src/core/platform/web/config.js
  44. 5
      src/less/core/utils/cursor.less
  45. 21
      typescript/base/pager/pager.ts
  46. 3
      typescript/index.ts

4
dist/2.0/fineui.css vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

929
dist/2.0/fineui.js vendored

File diff suppressed because it is too large Load Diff

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui_without_normalize.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/core.css vendored

File diff suppressed because one or more lines are too long

899
dist/core.js vendored

File diff suppressed because it is too large Load Diff

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/demo.css vendored

File diff suppressed because one or more lines are too long

1263
dist/demo.js vendored

File diff suppressed because it is too large Load Diff

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

923
dist/fineui.js vendored

File diff suppressed because it is too large Load Diff

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.proxy.css vendored

File diff suppressed because one or more lines are too long

209
dist/fineui.proxy.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-5-13 11:30:29 AM */
/*! time: 2021-5-17 9:50:48 AM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -82,7 +82,7 @@
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1180);
/******/ return __webpack_require__(__webpack_require__.s = 1181);
/******/ })
/************************************************************************/
/******/ ([
@ -26989,7 +26989,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
if (!this.watermark) {
this.watermark = BI.createWidget({
type: "bi.label",
cls: "bi-water-mark cursor-default textarea-watermark",
cls: "bi-water-mark textarea-watermark",
textAlign: "left",
whiteSpace: "normal",
text: o.watermark,
@ -27001,9 +27001,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
this.watermark.element.bind({
mousedown: function (e) {
if (self.isEnabled()) {
self.editor.focus();
self.focus();
} else {
self.editor.blur();
self.blur();
}
e.stopEvent();
}
@ -72508,6 +72508,12 @@ Object.defineProperty(exports, "BroadcastController", {
return _controller3.BroadcastController;
}
});
Object.defineProperty(exports, "Pager", {
enumerable: true,
get: function get() {
return _pager.Pager;
}
});
exports["default"] = void 0;
var _combo = __webpack_require__(705);
@ -72820,6 +72826,8 @@ var _blankicontextitem = __webpack_require__(836);
var _controller3 = __webpack_require__(837);
var _pager = __webpack_require__(838);
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@ -74227,13 +74235,16 @@ var _button = __webpack_require__(4);
var _controller = __webpack_require__(52);
/***/ }),
/* 838 */,
/* 839 */
/* 838 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
"use strict";
var _widget = __webpack_require__(1);
/***/ }),
/* 839 */,
/* 840 */
/***/ (function(module, exports, __webpack_require__) {
@ -74241,6 +74252,12 @@ var _controller = __webpack_require__(52);
/***/ }),
/* 841 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 842 */
/***/ (function(module, exports) {
// 工程配置
@ -74259,58 +74276,58 @@ BI.prepares.push(function () {
return _isSupportFlex;
};
BI.Plugin.configWidget("bi.horizontal", function (ob) {
var isIE = BI.isIE(), supportFlex = isSupportFlex(), isLessIE8 = isIE && BI.getIEVersion() < 8;
if (isLessIE8) {
return ob;
}
// 在横向自适应场景下我们需要使用table的自适应撑出滚动条的特性(flex处理不了这种情况)
// 主要出现在center_adapt或者horizontal_adapt的场景,或者主动设置horizontalAlign的场景
if (ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch) {
return BI.extend({}, ob, {type: "bi.table_adapt"});
}
var supportFlex = isSupportFlex();
// // 在横向自适应场景下我们需要使用table的自适应撑出滚动条的特性(flex处理不了这种情况)
// // 主要出现在center_adapt或者horizontal_adapt的场景,或者主动设置horizontalAlign的场景
// if (ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch) {
// return BI.extend({}, ob, {type: "bi.table_adapt"});
// }
if (supportFlex) {
return BI.extend({}, ob, {type: "bi.flex_horizontal"});
}
// // 解决使用inline_vertical_adapt的顺序问题
// // 从右往左放置时,为了兼容,我们统一采用从右到左的放置方式
// if (ob.horizontalAlign === BI.HorizontalAlign.Right) {
// return BI.extend({verticalAlign: BI.VerticalAlign.Top}, ob, {
// type: "bi.inline_vertical_adapt",
// items: ob.items && ob.items.reverse()
// });
// }
return BI.extend({}, ob, {type: "bi.table_adapt"});
return BI.extend({
scrollx: true
}, ob, {type: "bi.inline"});
});
BI.Plugin.configWidget("bi.center_adapt", function (ob) {
var supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1);
var isAdapt = !ob.horizontalAlign || ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
if (!isAdapt || justOneItem) {
if (supportFlex) {
return BI.extend({}, ob, {type: "bi.flex_center_adapt"});
}
return BI.extend({}, ob, {type: "bi.inline_center_adapt"});
// var isAdapt = !ob.horizontalAlign || ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
// if (!isAdapt || justOneItem) {
if (supportFlex) {
return BI.extend({}, ob, {type: "bi.flex_center_adapt"});
}
return ob;
return BI.extend({}, ob, {type: "bi.inline_center_adapt"});
// }
// return ob;
});
BI.Plugin.configWidget("bi.vertical_adapt", function (ob) {
var supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1);
var isAdapt = ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
if (!isAdapt || justOneItem) {
if (supportFlex) {
return BI.extend({}, ob, {type: "bi.flex_vertical_center_adapt"});
}
return BI.extend({}, ob, {type: "bi.inline_vertical_adapt"});
// var isAdapt = ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
// if (!isAdapt || justOneItem) {
if (supportFlex) {
return BI.extend({}, ob, {type: "bi.flex_vertical_center_adapt"});
}
return ob;
return BI.extend({}, ob, {type: "bi.inline_vertical_adapt"});
// }
// return ob;
});
BI.Plugin.configWidget("bi.horizontal_adapt", function (ob) {
var justOneItem = (ob.items && ob.items.length <= 1);
if (!ob.verticalAlign || ob.verticalAlign === BI.VerticalAlign.TOP) {
if (justOneItem) {
return BI.extend({}, ob, {type: "bi.horizontal_auto"});
}
var isAdapt = !ob.horizontalAlign || ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
var verticalAlignTop = !ob.verticalAlign || ob.verticalAlign === BI.VerticalAlign.TOP;
if (verticalAlignTop && justOneItem) {
return BI.extend({}, ob, {type: "bi.horizontal_auto"});
}
return ob;
var supportFlex = isSupportFlex();
// 在横向自适应场景下我们需要使用table的自适应撑出滚动条的特性(flex处理不了这种情况)
// 主要出现在center_adapt或者horizontal_adapt的场景,或者主动设置horizontalAlign的场景
if (isAdapt) {
return BI.extend({}, ob, {type: "bi.table_adapt"});
}
if (supportFlex) {
return BI.extend({}, ob, {type: "bi.flex_horizontal"});
}
return BI.extend({}, ob, {type: "bi.table_adapt"});
});
BI.Plugin.configWidget("bi.horizontal_float", function (ob) {
if (isSupportFlex()) {
@ -74367,7 +74384,7 @@ BI.prepares.push(function () {
/***/ }),
/* 842 */
/* 843 */
/***/ (function(module, exports) {
/**
@ -74534,7 +74551,7 @@ BI.prepares.push(function () {
/***/ }),
/* 843 */
/* 844 */
/***/ (function(module, exports) {
/**
@ -75374,7 +75391,7 @@ BI.prepares.push(function () {
/***/ }),
/* 844 */
/* 845 */
/***/ (function(module, exports) {
// 浏览器相关方法
@ -75508,7 +75525,7 @@ _.extend(BI, {
});
/***/ }),
/* 845 */
/* 846 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@ -86537,7 +86554,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
/***/ }),
/* 846 */
/* 847 */
/***/ (function(module, exports) {
/*
@ -86552,7 +86569,7 @@ BI.$.extend(BI.$.Event.prototype, {
});
/***/ }),
/* 847 */
/* 848 */
/***/ (function(module, exports) {
if (BI.jQuery) {
@ -86802,7 +86819,7 @@ if (BI.jQuery) {
/***/ }),
/* 848 */
/* 849 */
/***/ (function(module, exports) {
/* !
@ -87011,7 +87028,7 @@ if (BI.jQuery) {
}));
/***/ }),
/* 849 */
/* 850 */
/***/ (function(module, exports) {
_.extend(BI, {
@ -87071,7 +87088,7 @@ _.extend(BI, {
});
/***/ }),
/* 850 */
/* 851 */
/***/ (function(module, exports) {
(function () {
@ -87703,7 +87720,7 @@ _.extend(BI, {
}());
/***/ }),
/* 851 */
/* 852 */
/***/ (function(module, exports) {
!(function () {
@ -87715,7 +87732,7 @@ _.extend(BI, {
})();
/***/ }),
/* 852 */
/* 853 */
/***/ (function(module, exports) {
/**
@ -88420,7 +88437,7 @@ _.extend(BI, {
/***/ }),
/* 853 */
/* 854 */
/***/ (function(module, exports) {
/**
@ -88968,7 +88985,7 @@ BI.shortcut("bi.tree_view", BI.TreeView);
/***/ }),
/* 854 */
/* 855 */
/***/ (function(module, exports) {
/**
@ -89221,7 +89238,7 @@ BI.AsyncTree = BI.inherit(BI.TreeView, {
BI.shortcut("bi.async_tree", BI.AsyncTree);
/***/ }),
/* 855 */
/* 856 */
/***/ (function(module, exports) {
/*
@ -90941,7 +90958,7 @@ BI.shortcut("bi.async_tree", BI.AsyncTree);
})(BI.jQuery);
/***/ }),
/* 856 */
/* 857 */
/***/ (function(module, exports) {
/*
@ -91576,7 +91593,7 @@ BI.shortcut("bi.async_tree", BI.AsyncTree);
})(BI.jQuery);
/***/ }),
/* 857 */
/* 858 */
/***/ (function(module, exports) {
/**
@ -91699,7 +91716,7 @@ BI.ListTreeView = BI.inherit(BI.TreeView, {
BI.shortcut("bi.list_tree_view", BI.ListTreeView);
/***/ }),
/* 858 */
/* 859 */
/***/ (function(module, exports) {
/**
@ -91827,7 +91844,7 @@ BI.ListAsyncTree = BI.inherit(BI.ListTreeView, {
BI.shortcut("bi.list_async_tree", BI.ListAsyncTree);
/***/ }),
/* 859 */
/* 860 */
/***/ (function(module, exports) {
/**
@ -91924,7 +91941,7 @@ BI.ListPartTree = BI.inherit(BI.ListAsyncTree, {
BI.shortcut("bi.list_part_tree", BI.ListPartTree);
/***/ }),
/* 860 */
/* 861 */
/***/ (function(module, exports) {
/**
@ -92130,7 +92147,7 @@ BI.shortcut("bi.part_tree", BI.PartTree);
/***/ }),
/* 861 */
/* 862 */
/***/ (function(module, exports) {
/**
@ -92202,7 +92219,7 @@ BI.shortcut("bi.display_tree", BI.DisplayTree);
/***/ }),
/* 862 */
/* 863 */
/***/ (function(module, exports) {
/**
@ -92285,7 +92302,7 @@ BI.ListDisplayTree.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.list_display_tree", BI.ListDisplayTree);
/***/ }),
/* 863 */
/* 864 */
/***/ (function(module, exports) {
/**
@ -92418,7 +92435,7 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
/***/ }),
/* 864 */
/* 865 */
/***/ (function(module, exports) {
/**
@ -92547,7 +92564,7 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
})();
/***/ }),
/* 865 */
/* 866 */
/***/ (function(module, exports) {
/**
@ -92628,7 +92645,7 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
})();
/***/ }),
/* 866 */
/* 867 */
/***/ (function(module, exports) {
;(function () {
@ -92791,7 +92808,6 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
/***/ }),
/* 867 */,
/* 868 */,
/* 869 */,
/* 870 */,
@ -92825,7 +92841,8 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
/* 898 */,
/* 899 */,
/* 900 */,
/* 901 */
/* 901 */,
/* 902 */
/***/ (function(module, exports) {
;(function () {
@ -93172,7 +93189,6 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
/***/ }),
/* 902 */,
/* 903 */,
/* 904 */,
/* 905 */,
@ -93383,50 +93399,50 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
/* 1110 */,
/* 1111 */,
/* 1112 */,
/* 1113 */
/* 1113 */,
/* 1114 */
/***/ (function(module, exports) {
/***/ }),
/* 1114 */,
/* 1115 */,
/* 1116 */,
/* 1117 */,
/* 1118 */,
/* 1119 */,
/* 1120 */,
/* 1121 */
/* 1121 */,
/* 1122 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 1122 */
/* 1123 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 1123 */
/* 1124 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 1124 */
/* 1125 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 1125 */
/* 1126 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 1126 */,
/* 1127 */,
/* 1128 */,
/* 1129 */,
@ -93480,11 +93496,12 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
/* 1177 */,
/* 1178 */,
/* 1179 */,
/* 1180 */
/* 1180 */,
/* 1181 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(839);
__webpack_require__(840);
__webpack_require__(841);
__webpack_require__(202);
__webpack_require__(203);
__webpack_require__(204);
@ -93540,7 +93557,6 @@ __webpack_require__(300);
__webpack_require__(301);
__webpack_require__(302);
__webpack_require__(303);
__webpack_require__(841);
__webpack_require__(842);
__webpack_require__(843);
__webpack_require__(844);
@ -93549,6 +93565,7 @@ __webpack_require__(846);
__webpack_require__(847);
__webpack_require__(848);
__webpack_require__(849);
__webpack_require__(850);
__webpack_require__(304);
__webpack_require__(305);
__webpack_require__(306);
@ -93618,7 +93635,7 @@ __webpack_require__(367);
__webpack_require__(110);
__webpack_require__(111);
__webpack_require__(112);
__webpack_require__(1181);
__webpack_require__(1182);
__webpack_require__(222);
__webpack_require__(223);
__webpack_require__(224);
@ -93677,7 +93694,7 @@ __webpack_require__(276);
__webpack_require__(277);
__webpack_require__(278);
__webpack_require__(279);
__webpack_require__(851);
__webpack_require__(852);
__webpack_require__(368);
__webpack_require__(369);
__webpack_require__(370);
@ -93731,7 +93748,7 @@ __webpack_require__(417);
__webpack_require__(418);
__webpack_require__(419);
__webpack_require__(420);
__webpack_require__(852);
__webpack_require__(853);
__webpack_require__(421);
__webpack_require__(422);
__webpack_require__(423);
@ -93844,7 +93861,6 @@ __webpack_require__(529);
__webpack_require__(530);
__webpack_require__(531);
__webpack_require__(532);
__webpack_require__(853);
__webpack_require__(854);
__webpack_require__(855);
__webpack_require__(856);
@ -93857,6 +93873,7 @@ __webpack_require__(862);
__webpack_require__(863);
__webpack_require__(864);
__webpack_require__(865);
__webpack_require__(866);
__webpack_require__(113);
__webpack_require__(114);
__webpack_require__(115);
@ -94087,27 +94104,27 @@ __webpack_require__(699);
__webpack_require__(700);
__webpack_require__(701);
__webpack_require__(702);
__webpack_require__(850);
__webpack_require__(901);
__webpack_require__(866);
__webpack_require__(1121);
__webpack_require__(851);
__webpack_require__(902);
__webpack_require__(867);
__webpack_require__(1122);
__webpack_require__(1123);
__webpack_require__(1124);
__webpack_require__(1125);
__webpack_require__(1113);
__webpack_require__(1126);
__webpack_require__(1114);
module.exports = __webpack_require__(703);
/***/ }),
/* 1181 */
/* 1182 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Fix"] = __webpack_require__(1182);
/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Fix"] = __webpack_require__(1183);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(14)))
/***/ }),
/* 1182 */
/* 1183 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(setImmediate) {(function (global, factory) {

2
dist/fineui.proxy.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.proxy.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.proxy.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.proxy.min.js.map vendored

File diff suppressed because one or more lines are too long

59
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-5-13 11:30:29 AM */
/*! time: 2021-5-17 9:50:48 AM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -82,7 +82,7 @@
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1431);
/******/ return __webpack_require__(__webpack_require__.s = 1432);
/******/ })
/************************************************************************/
/******/ ([
@ -26599,7 +26599,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
if (!this.watermark) {
this.watermark = BI.createWidget({
type: "bi.label",
cls: "bi-water-mark cursor-default textarea-watermark",
cls: "bi-water-mark textarea-watermark",
textAlign: "left",
whiteSpace: "normal",
text: o.watermark,
@ -26611,9 +26611,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
this.watermark.element.bind({
mousedown: function (e) {
if (self.isEnabled()) {
self.editor.focus();
self.focus();
} else {
self.editor.blur();
self.blur();
}
e.stopEvent();
}
@ -72118,6 +72118,12 @@ Object.defineProperty(exports, "BroadcastController", {
return _controller3.BroadcastController;
}
});
Object.defineProperty(exports, "Pager", {
enumerable: true,
get: function get() {
return _pager.Pager;
}
});
exports["default"] = void 0;
var _combo = __webpack_require__(705);
@ -72430,6 +72436,8 @@ var _blankicontextitem = __webpack_require__(836);
var _controller3 = __webpack_require__(837);
var _pager = __webpack_require__(838);
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@ -73837,7 +73845,15 @@ var _button = __webpack_require__(4);
var _controller = __webpack_require__(52);
/***/ }),
/* 838 */,
/* 838 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _widget = __webpack_require__(1);
/***/ }),
/* 839 */,
/* 840 */,
/* 841 */,
@ -73865,7 +73881,8 @@ var _controller = __webpack_require__(52);
/* 863 */,
/* 864 */,
/* 865 */,
/* 866 */
/* 866 */,
/* 867 */
/***/ (function(module, exports) {
;(function () {
@ -74028,7 +74045,6 @@ var _controller = __webpack_require__(52);
/***/ }),
/* 867 */,
/* 868 */,
/* 869 */,
/* 870 */,
@ -74062,7 +74078,8 @@ var _controller = __webpack_require__(52);
/* 898 */,
/* 899 */,
/* 900 */,
/* 901 */
/* 901 */,
/* 902 */
/***/ (function(module, exports) {
;(function () {
@ -74409,7 +74426,6 @@ var _controller = __webpack_require__(52);
/***/ }),
/* 902 */,
/* 903 */,
/* 904 */,
/* 905 */,
@ -74418,14 +74434,15 @@ var _controller = __webpack_require__(52);
/* 908 */,
/* 909 */,
/* 910 */,
/* 911 */
/* 911 */,
/* 912 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Fix"] = __webpack_require__(912);
/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Fix"] = __webpack_require__(913);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(14)))
/***/ }),
/* 912 */
/* 913 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(setImmediate) {function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@ -75958,7 +75975,6 @@ var _controller = __webpack_require__(52);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(60).setImmediate))
/***/ }),
/* 913 */,
/* 914 */,
/* 915 */,
/* 916 */,
@ -76158,13 +76174,13 @@ var _controller = __webpack_require__(52);
/* 1110 */,
/* 1111 */,
/* 1112 */,
/* 1113 */
/* 1113 */,
/* 1114 */
/***/ (function(module, exports) {
/***/ }),
/* 1114 */,
/* 1115 */,
/* 1116 */,
/* 1117 */,
@ -76481,7 +76497,8 @@ var _controller = __webpack_require__(52);
/* 1428 */,
/* 1429 */,
/* 1430 */,
/* 1431 */
/* 1431 */,
/* 1432 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(92);
@ -76588,7 +76605,7 @@ __webpack_require__(367);
__webpack_require__(110);
__webpack_require__(111);
__webpack_require__(112);
__webpack_require__(911);
__webpack_require__(912);
__webpack_require__(368);
__webpack_require__(369);
__webpack_require__(370);
@ -76984,9 +77001,9 @@ __webpack_require__(699);
__webpack_require__(700);
__webpack_require__(701);
__webpack_require__(702);
__webpack_require__(901);
__webpack_require__(866);
__webpack_require__(1113);
__webpack_require__(902);
__webpack_require__(867);
__webpack_require__(1114);
module.exports = __webpack_require__(703);

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/font.css vendored

File diff suppressed because one or more lines are too long

12
dist/lib/base/pager/pager.d.ts vendored

@ -0,0 +1,12 @@
import { Widget } from "../../core/widget";
export declare class Pager extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_AFTER_POPULATE: string;
getCurrentPage(): number;
setValue(v: number): void;
hasPrev(): boolean;
hasNext(): boolean;
setAllPages(v: number): void;
populate(): void;
}

4
dist/lib/index.d.ts vendored

@ -163,6 +163,7 @@ import { HexColorChooserPopup } from './case/colorchooser/colorchooser.popup.hex
import { BlankIconTextItem } from './base/single/button/listitem/blankicontextitem';
import { Broadcasts, Layers } from "./base/base";
import { BroadcastController } from "./core/controller/controller.broadcast";
import { Pager } from "./base/pager/pager";
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
OB: typeof OB;
Plugin: _Plugin;
@ -299,6 +300,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
DateInterval: typeof DateInterval;
DynamicDatePane: typeof DynamicDatePane;
AllCountPager: typeof AllCountPager;
Pager: typeof Pager;
PopupView: typeof PopupView;
BubblePopupView: typeof BubblePopupView;
BubblePopupBarView: typeof BubblePopupBarView;
@ -336,4 +338,4 @@ declare const _default: {
Decorators: typeof decorator;
};
export default _default;
export { OB, Widget, Single, BasicButton, Checkbox, Icon, LeftVerticalAdaptLayout, LeftRightVerticalAdaptLayout, SearchTextValueCombo, Input, IconTextItem, AllValueMultiTextValueCombo, IconTextIconItem, Layout, HorizontalAutoLayout, InlineVerticalAdaptLayout, RightVerticalAdaptLayout, TableAdaptLayout, AbsoluteCenterLayout, HorizontalAdaptLayout, FloatLeftLayout, FloatRightLayout, VerticalLayout, AbsoluteLayout, DefaultLayout, HTapeLayout, CenterAdaptLayout, VTapeLayout, VerticalAdaptLayout, IconButton, Trigger, TriggerIconButton, Action, ActionFactory, ShowAction, Controller, LayerController, BroadcastController, Behavior, BehaviorFactory, RedMarkBehavior, HighlightBehavior, LoadingPane, Searcher, AbstractLabel, Label, TextButton, DownListCombo, IconChangeButton, Button, TextEditor, A, Html, Switcher, BubbleCombo, Loader, ListPane, MultiPopupView, MultiSelectBar, SelectList, TextValueCombo, SmallTextValueCombo, Editor, IconLabel, Popover, BarPopover, Tab, AbstractTreeValueChooser, AbstractListTreeValueChooser, ListTreeValueChooserInsertCombo, TreeValueChooserCombo, TreeValueChooserInsertCombo, MultiLayerSelectTreePopup, MultiLayerSingleTreePopup, TreeView, ListTreeView, ListAsyncTree, AsyncTree, MultiLayerSingleTreeCombo, MultiLayerSelectTreeCombo, MultiTreeListCombo, MultiTreeInsertCombo, Combo, IconCombo, DynamicDateCombo, Radio, MultiSelectItem, CustomTree, ButtonGroup, ButtonTree, NodeButton, IconArrowNode, MidTreeLeafItem, FirstTreeLeafItem, LastTreeLeafItem, SmallTextEditor, MultifileEditor, SignEditor, MultiSelectInsertCombo, MultiSelectCombo, SearchEditor, Text, Pane, MultiLayerSingleLevelTree, SimpleColorChooser, AbstractAllValueChooser, AllValueChooserCombo, TextAreaEditor, SingleSelectItem, DynamicDateTimeCombo, MultiTreeCombo, CenterLayout, VirtualGroup, GridLayout, MultiTreePopup, SingleSelectRadioItem, SingleSelectInsertCombo, SingleSelectCombo, CardLayout, DynamicYearMonthCombo, TimeCombo, Iframe, TextValueDownListCombo, Switch, HorizontalLayout, ShelterEditor, TextTrigger, SelectTextTrigger, DateInterval, DynamicDatePane, AllCountPager, PopupView, BubblePopupView, BubblePopupBarView, TextBubblePopupBarView, ArrowTreeGroupNodeCheckbox, NumberInterval, DynamicYearQuarterCombo, DynamicYearCombo, IntervalSlider, MultiSelectInsertList, YearMonthInterval, TextValueCheckCombo, NumberEditor, LinearSegment, Img, EditorIconCheckCombo, IconTextValueCombo, ListView, FloatCenterLayout, DynamicYearMonthPopup, DateCalendarPopup, Tree, Node, TextNode, TextValueCheckComboPopup, ImageButton, Router, History, DateTimeCombo, FloatHorizontalLayout, AdaptiveLayout, HexColorChooserPopup, BlankIconTextItem, };
export { OB, Widget, Single, BasicButton, Checkbox, Icon, LeftVerticalAdaptLayout, LeftRightVerticalAdaptLayout, SearchTextValueCombo, Input, IconTextItem, AllValueMultiTextValueCombo, IconTextIconItem, Layout, HorizontalAutoLayout, InlineVerticalAdaptLayout, RightVerticalAdaptLayout, TableAdaptLayout, AbsoluteCenterLayout, HorizontalAdaptLayout, FloatLeftLayout, FloatRightLayout, VerticalLayout, AbsoluteLayout, DefaultLayout, HTapeLayout, CenterAdaptLayout, VTapeLayout, VerticalAdaptLayout, IconButton, Trigger, TriggerIconButton, Action, ActionFactory, ShowAction, Controller, LayerController, BroadcastController, Behavior, BehaviorFactory, RedMarkBehavior, HighlightBehavior, LoadingPane, Searcher, AbstractLabel, Label, TextButton, DownListCombo, IconChangeButton, Button, TextEditor, A, Html, Switcher, BubbleCombo, Loader, ListPane, MultiPopupView, MultiSelectBar, SelectList, TextValueCombo, SmallTextValueCombo, Editor, IconLabel, Popover, BarPopover, Tab, AbstractTreeValueChooser, AbstractListTreeValueChooser, ListTreeValueChooserInsertCombo, TreeValueChooserCombo, TreeValueChooserInsertCombo, MultiLayerSelectTreePopup, MultiLayerSingleTreePopup, TreeView, ListTreeView, ListAsyncTree, AsyncTree, MultiLayerSingleTreeCombo, MultiLayerSelectTreeCombo, MultiTreeListCombo, MultiTreeInsertCombo, Combo, IconCombo, DynamicDateCombo, Radio, MultiSelectItem, CustomTree, ButtonGroup, ButtonTree, NodeButton, IconArrowNode, MidTreeLeafItem, FirstTreeLeafItem, LastTreeLeafItem, SmallTextEditor, MultifileEditor, SignEditor, MultiSelectInsertCombo, MultiSelectCombo, SearchEditor, Text, Pane, MultiLayerSingleLevelTree, SimpleColorChooser, AbstractAllValueChooser, AllValueChooserCombo, TextAreaEditor, SingleSelectItem, DynamicDateTimeCombo, MultiTreeCombo, CenterLayout, VirtualGroup, GridLayout, MultiTreePopup, SingleSelectRadioItem, SingleSelectInsertCombo, SingleSelectCombo, CardLayout, DynamicYearMonthCombo, TimeCombo, Iframe, TextValueDownListCombo, Switch, HorizontalLayout, ShelterEditor, TextTrigger, SelectTextTrigger, DateInterval, DynamicDatePane, AllCountPager, Pager, PopupView, BubblePopupView, BubblePopupBarView, TextBubblePopupBarView, ArrowTreeGroupNodeCheckbox, NumberInterval, DynamicYearQuarterCombo, DynamicYearCombo, IntervalSlider, MultiSelectInsertList, YearMonthInterval, TextValueCheckCombo, NumberEditor, LinearSegment, Img, EditorIconCheckCombo, IconTextValueCombo, ListView, FloatCenterLayout, DynamicYearMonthPopup, DateCalendarPopup, Tree, Node, TextNode, TextValueCheckComboPopup, ImageButton, Router, History, DateTimeCombo, FloatHorizontalLayout, AdaptiveLayout, HexColorChooserPopup, BlankIconTextItem, };

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

14
dist/utils.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-5-13 11:30:29 AM */
/*! time: 2021-5-17 9:50:48 AM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -82,7 +82,7 @@
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1254);
/******/ return __webpack_require__(__webpack_require__.s = 1255);
/******/ })
/************************************************************************/
/******/ ({
@ -2916,7 +2916,7 @@ _.extend(BI, {
/***/ }),
/***/ 1112:
/***/ 1113:
/***/ (function(module, exports) {
BI.i18n = {
@ -3130,7 +3130,7 @@ BI.Req = {
/***/ }),
/***/ 1254:
/***/ 1255:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(91);
@ -3149,8 +3149,8 @@ __webpack_require__(97);
__webpack_require__(98);
__webpack_require__(108);
__webpack_require__(109);
__webpack_require__(1112);
__webpack_require__(1255);
__webpack_require__(1113);
__webpack_require__(1256);
__webpack_require__(110);
__webpack_require__(111);
module.exports = __webpack_require__(112);
@ -3158,7 +3158,7 @@ module.exports = __webpack_require__(112);
/***/ }),
/***/ 1255:
/***/ 1256:
/***/ (function(module, exports) {
/**

2
dist/utils.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/utils.min.js.map vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20210513113251",
"version": "2.0.20210517095208",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

6
src/base/single/editor/editor.textarea.js

@ -87,7 +87,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
if (!this.watermark) {
this.watermark = BI.createWidget({
type: "bi.label",
cls: "bi-water-mark cursor-default textarea-watermark",
cls: "bi-water-mark textarea-watermark",
textAlign: "left",
whiteSpace: "normal",
text: o.watermark,
@ -99,9 +99,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
this.watermark.element.bind({
mousedown: function (e) {
if (self.isEnabled()) {
self.editor.focus();
self.focus();
} else {
self.editor.blur();
self.blur();
}
e.stopEvent();
}

80
src/core/platform/web/config.js

@ -14,58 +14,64 @@ BI.prepares.push(function () {
return _isSupportFlex;
};
BI.Plugin.configWidget("bi.horizontal", function (ob) {
var isIE = BI.isIE(), supportFlex = isSupportFlex(), isLessIE8 = isIE && BI.getIEVersion() < 8;
if (isLessIE8) {
return ob;
}
// 在横向自适应场景下我们需要使用table的自适应撑出滚动条的特性(flex处理不了这种情况)
// 主要出现在center_adapt或者horizontal_adapt的场景,或者主动设置horizontalAlign的场景
if (ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch) {
return BI.extend({}, ob, {type: "bi.table_adapt"});
}
var supportFlex = isSupportFlex();
// // 在横向自适应场景下我们需要使用table的自适应撑出滚动条的特性(flex处理不了这种情况)
// // 主要出现在center_adapt或者horizontal_adapt的场景,或者主动设置horizontalAlign的场景
// if (ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch) {
// return BI.extend({}, ob, {type: "bi.table_adapt"});
// }
if (supportFlex) {
return BI.extend({}, ob, {type: "bi.flex_horizontal"});
}
// // 解决使用inline_vertical_adapt的顺序问题
// // 从右往左放置时,为了兼容,我们统一采用从右到左的放置方式
// if (ob.horizontalAlign === BI.HorizontalAlign.Right) {
// return BI.extend({verticalAlign: BI.VerticalAlign.Top}, ob, {
// type: "bi.inline_vertical_adapt",
// items: ob.items && ob.items.reverse()
// });
// }
return BI.extend({}, ob, {type: "bi.table_adapt"});
return BI.extend({
scrollx: true
}, ob, {type: "bi.inline"});
});
BI.Plugin.configWidget("bi.center_adapt", function (ob) {
var supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1);
var isAdapt = !ob.horizontalAlign || ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
if (!isAdapt || justOneItem) {
if (supportFlex) {
return BI.extend({}, ob, {type: "bi.flex_center_adapt"});
}
return BI.extend({}, ob, {type: "bi.inline_center_adapt"});
// var isAdapt = !ob.horizontalAlign || ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
// if (!isAdapt || justOneItem) {
if (supportFlex) {
return BI.extend({}, ob, {type: "bi.flex_center_adapt"});
}
return ob;
return BI.extend({}, ob, {type: "bi.inline_center_adapt"});
// }
// return ob;
});
BI.Plugin.configWidget("bi.vertical_adapt", function (ob) {
var supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1);
var isAdapt = ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
if (!isAdapt || justOneItem) {
if (supportFlex) {
return BI.extend({}, ob, {type: "bi.flex_vertical_center_adapt"});
}
return BI.extend({}, ob, {type: "bi.inline_vertical_adapt"});
// var isAdapt = ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
// if (!isAdapt || justOneItem) {
if (supportFlex) {
return BI.extend({}, ob, {type: "bi.flex_vertical_center_adapt"});
}
return ob;
return BI.extend({}, ob, {type: "bi.inline_vertical_adapt"});
// }
// return ob;
});
BI.Plugin.configWidget("bi.horizontal_adapt", function (ob) {
var justOneItem = (ob.items && ob.items.length <= 1);
if (!ob.verticalAlign || ob.verticalAlign === BI.VerticalAlign.TOP) {
if (justOneItem) {
return BI.extend({}, ob, {type: "bi.horizontal_auto"});
}
var isAdapt = !ob.horizontalAlign || ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
var verticalAlignTop = !ob.verticalAlign || ob.verticalAlign === BI.VerticalAlign.TOP;
if (verticalAlignTop && justOneItem) {
return BI.extend({}, ob, {type: "bi.horizontal_auto"});
}
return ob;
var supportFlex = isSupportFlex();
// 在横向自适应场景下我们需要使用table的自适应撑出滚动条的特性(flex处理不了这种情况)
// 主要出现在center_adapt或者horizontal_adapt的场景,或者主动设置horizontalAlign的场景
if (isAdapt) {
return BI.extend({
horizontalAlign: BI.HorizontalAlign.Center
}, ob, {type: "bi.table_adapt"});
}
if (supportFlex) {
return BI.extend({
horizontalAlign: BI.HorizontalAlign.Center
}, ob, {type: "bi.flex_horizontal"});
}
return BI.extend({
horizontalAlign: BI.HorizontalAlign.Center
}, ob, {type: "bi.table_adapt"});
});
BI.Plugin.configWidget("bi.horizontal_float", function (ob) {
if (isSupportFlex()) {

5
src/less/core/utils/cursor.less

@ -8,4 +8,9 @@
.cursor-move{
cursor: move;
}
.cursor-text{
cursor: text;
}
/*****************cursor*****************/

21
typescript/base/pager/pager.ts

@ -0,0 +1,21 @@
import { Widget } from "../../core/widget";
export declare class Pager extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_AFTER_POPULATE: string;
getCurrentPage(): number;
setValue(v: number): void;
hasPrev(): boolean;
hasNext(): boolean;
setAllPages(v: number): void;
populate(): void;
}

3
typescript/index.ts

@ -163,6 +163,7 @@ import { HexColorChooserPopup } from './case/colorchooser/colorchooser.popup.hex
import { BlankIconTextItem } from './base/single/button/listitem/blankicontextitem';
import { Broadcasts, Layers } from "./base/base";
import { BroadcastController } from "./core/controller/controller.broadcast";
import { Pager } from "./base/pager/pager";
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
@ -301,6 +302,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
DateInterval: typeof DateInterval;
DynamicDatePane: typeof DynamicDatePane;
AllCountPager: typeof AllCountPager;
Pager: typeof Pager;
PopupView: typeof PopupView;
BubblePopupView: typeof BubblePopupView;
BubblePopupBarView: typeof BubblePopupBarView;
@ -470,6 +472,7 @@ export {
DateInterval,
DynamicDatePane,
AllCountPager,
Pager,
PopupView,
BubblePopupView,
BubblePopupBarView,

Loading…
Cancel
Save