Browse Source

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

es6
Kira 3 years ago
parent
commit
17c4b01194
  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. 998
      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. 958
      dist/core.js
  13. 2
      dist/core.js.map
  14. 4
      dist/demo.css
  15. 1338
      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. 992
      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. 262
      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. 176
      dist/fineui_without_jquery_polyfill.js
  32. 2
      dist/fineui_without_jquery_polyfill.js.map
  33. 2
      dist/font.css
  34. 3
      dist/lib/base/combination/tab.d.ts
  35. 12
      dist/lib/base/single/button/listitem/blankicontextitem.d.ts
  36. 9
      dist/lib/case/colorchooser/colorchooser.popup.hex.d.ts
  37. 4
      dist/lib/core/wrapper/layout/layout.adaptive.d.ts
  38. 8
      dist/lib/index.d.ts
  39. 2
      dist/resource.css
  40. 14
      dist/utils.js
  41. 2
      dist/utils.js.map
  42. 4
      dist/utils.min.js
  43. 2
      dist/utils.min.js.map
  44. 2
      package.json
  45. 4
      src/base/combination/tab.js
  46. 3
      src/core/wrapper/layout/adapt/float.horizontal.js
  47. 8
      src/core/wrapper/layout/flex/flex.horizontal.js
  48. 8
      src/core/wrapper/layout/flex/flex.vertical.js
  49. 8
      src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.js
  50. 8
      src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.js
  51. 3
      src/core/wrapper/layout/layout.horizontal.js
  52. 7
      src/core/wrapper/layout/layout.inline.js
  53. 1
      src/less/base/single/editor/editor.textarea.less
  54. 11
      src/less/core/utils/common.less
  55. 15
      src/widget/dynamicdate/dynamicdate.card.js
  56. 3
      src/widget/dynamicdate/dynamicdate.param.item.js
  57. 2
      src/widget/singleselect/singleselect.insert.combo.js
  58. 3
      typescript/base/combination/tab.ts
  59. 20
      typescript/base/single/button/listitem/blankicontextitem.ts
  60. 13
      typescript/case/colorchooser/colorchooser.popup.hex.ts
  61. 5
      typescript/core/wrapper/layout/layout.adaptive.ts
  62. 9
      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

998
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

958
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

1338
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

992
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

262
dist/fineui.proxy.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-4-7 09:10:33 */
/*! time: 2021-4-21 2:30:22 PM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -82,7 +82,7 @@
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1172);
/******/ return __webpack_require__(__webpack_require__.s = 1175);
/******/ })
/************************************************************************/
/******/ ([
@ -15071,7 +15071,8 @@ BI.shortcut("bi.horizontal_auto", BI.HorizontalAutoLayout);
/**
* 浮动的水平居中布局
*/
BI.FloatHorizontalLayout = BI.inherit(BI.Layout);
BI.FloatHorizontalLayout = function () {
};
BI.shortcut("bi.horizontal_float", BI.FloatHorizontalLayout);
@ -15419,7 +15420,13 @@ BI.FlexHorizontalLayout = BI.inherit(BI.Layout, {
position: "relative"
});
if (o.columnSize[i] !== "auto") {
if (!(o.horizontalAlign === BI.HorizontalAlign.Stretch && (o.columnSize[i] === "fill" || o.columnSize[i] === ""))) {
if (o.columnSize[i] === "fill" || o.columnSize[i] === "") {
if (o.horizontalAlign !== BI.HorizontalAlign.Stretch) {
if (o.scrollable === true || o.scrollx === true) {
w.element.addClass("f-s-n");
}
}
} else {
w.element.addClass("f-s-n");
}
}
@ -15684,7 +15691,13 @@ BI.FlexVerticalLayout = BI.inherit(BI.Layout, {
position: "relative"
});
if (o.rowSize[i] !== "auto") {
if (!(o.verticalAlign === BI.VerticalAlign.Stretch && (o.rowSize[i] === "fill" || o.rowSize[i] === ""))) {
if (o.rowSize[i] === "fill" || o.rowSize[i] === "") {
if (o.verticalAlign !== BI.VerticalAlign.Stretch) {
if (o.scrollable === true || o.scrolly === true) {
w.element.addClass("f-s-n");
}
}
} else {
w.element.addClass("f-s-n");
}
}
@ -15902,7 +15915,13 @@ BI.FlexWrapperHorizontalLayout = BI.inherit(BI.Layout, {
position: "relative"
});
if (o.columnSize[i] !== "auto") {
if (!(o.horizontalAlign === BI.HorizontalAlign.Stretch && (o.columnSize[i] === "fill" || o.columnSize[i] === ""))) {
if (o.columnSize[i] === "fill" || o.columnSize[i] === "") {
if (o.horizontalAlign !== BI.HorizontalAlign.Stretch) {
if (o.scrollable === true || o.scrollx === true) {
w.element.addClass("f-s-n");
}
}
} else {
w.element.addClass("f-s-n");
}
}
@ -16069,7 +16088,13 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {
position: "relative"
});
if (o.rowSize[i] !== "auto") {
if (!(o.verticalAlign === BI.VerticalAlign.Stretch && (o.rowSize[i] === "fill" && o.rowSize[i] === ""))) {
if (o.rowSize[i] === "fill" || o.rowSize[i] === "") {
if (o.verticalAlign !== BI.VerticalAlign.Stretch) {
if (o.scrollable === true || o.scrolly === true) {
w.element.addClass("f-s-n");
}
}
} else {
w.element.addClass("f-s-n");
}
}
@ -17265,7 +17290,8 @@ BI.shortcut("bi.grid", BI.GridLayout);
* @class BI.HorizontalLayout
* @extends BI.Layout
*/
BI.HorizontalLayout = BI.inherit(BI.Layout);
BI.HorizontalLayout = function () {
};
BI.shortcut("bi.horizontal", BI.HorizontalLayout);
@ -17329,10 +17355,15 @@ BI.InlineLayout = BI.inherit(BI.Layout, {
if (o.columnSize[i] === "fill") {
w.element.css("min-width", "calc(100% - " + ((left + right) / BI.pixRatio + BI.pixUnit) + ")");
}
if (o.horizontalAlign === BI.HorizontalAlign.Stretch) {
if (o.horizontalAlign === BI.HorizontalAlign.Stretch || !(o.scrollable === true || o.scrollx === true)) {
w.element.css("max-width", "calc(100% - " + ((left + right) / BI.pixRatio + BI.pixUnit) + ")");
}
}
if (o.verticalAlign === BI.VerticalAlign.Stretch) {
var top = o.vgap + (item.tgap || 0) + (item.vgap || 0),
bottom = o.vgap + (item.bgap || 0) + (item.vgap || 0);
w.element.css("height", "calc(100% - " + ((top + bottom) / BI.pixRatio + BI.pixUnit) + ")");
}
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {
w.element.css({
"margin-top": (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0)) / BI.pixRatio + BI.pixUnit
@ -21683,10 +21714,10 @@ BI.Tab = BI.inherit(BI.Widget, {
}
},
setSelect: function (v) {
setSelect: function (v, action, callback) {
this.tab && this.tab.setValue(v);
this._assertCard(v);
this.layout.showCardByName(v);
this.layout.showCardByName(v, action, callback);
this._deleteOtherCards(v);
if (this.curr !== v) {
this.curr = v;
@ -43356,7 +43387,8 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
listeners: [{
eventName: "EVENT_CHANGE",
action: function () {
this.setValue(self._checkPositionValue(this.getValue()[0]));
self.position = this.getValue()[0];
this.setValue(self.position);
self.fireEvent("EVENT_CHANGE");
}
}]
@ -43372,7 +43404,8 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
listeners: [{
eventName: "EVENT_CHANGE",
action: function () {
this.setValue(self._checkPositionValue(this.getValue()[0]));
self.position = this.getValue()[0];
this.setValue(self.position);
self.fireEvent("EVENT_CHANGE");
}
}]
@ -43384,15 +43417,6 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
return items;
},
_checkPositionValue: function (v) {
var lastPosition = this.position;
this.position = v;
if (!this._checkDate({})) {
this.position = lastPosition;
}
return this.position;
},
_checkDate: function (obj) {
var o = this.options;
var date = BI.DynamicDateHelper.getCalculation(BI.extend(this._getValue(), this._digestDateTypeValue(obj)));
@ -44029,9 +44053,6 @@ BI.DynamicDateParamItem = BI.inherit(BI.Widget, {
listeners: [{
eventName: BI.TextValueCombo.EVENT_CHANGE,
action: function () {
if (!o.validationChecker(self.getValue())) {
self.editor.setValue(0);
}
self.fireEvent(BI.DynamicDateParamItem.EVENT_CHANGE);
}
}]
@ -61255,7 +61276,7 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.single_select_trigger",
height: o.height,
height: o.height - 2,
allowNoSelect: o.allowNoSelect,
allowEdit: o.allowEdit,
// adapter: this.popup,
@ -72422,6 +72443,24 @@ Object.defineProperty(exports, "FloatHorizontalLayout", {
return _float.FloatHorizontalLayout;
}
});
Object.defineProperty(exports, "AdaptiveLayout", {
enumerable: true,
get: function get() {
return _layout10.AdaptiveLayout;
}
});
Object.defineProperty(exports, "HexColorChooserPopup", {
enumerable: true,
get: function get() {
return _colorchooserPopup.HexColorChooserPopup;
}
});
Object.defineProperty(exports, "BlankIconTextItem", {
enumerable: true,
get: function get() {
return _blankicontextitem.BlankIconTextItem;
}
});
exports["default"] = void 0;
var _combo = __webpack_require__(704);
@ -72720,6 +72759,12 @@ var _datetime = __webpack_require__(828);
var _float = __webpack_require__(829);
var _layout10 = __webpack_require__(830);
var _colorchooserPopup = __webpack_require__(831);
var _blankicontextitem = __webpack_require__(832);
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; }
@ -74064,20 +74109,47 @@ var _single = __webpack_require__(2);
var _layout = __webpack_require__(3);
/***/ }),
/* 830 */,
/* 830 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _layout = __webpack_require__(3);
/***/ }),
/* 831 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
"use strict";
var _widget = __webpack_require__(1);
/***/ }),
/* 832 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _button = __webpack_require__(4);
/***/ }),
/* 833 */,
/* 834 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 835 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 833 */
/* 836 */
/***/ (function(module, exports) {
// 工程配置
@ -74204,7 +74276,7 @@ BI.prepares.push(function () {
/***/ }),
/* 834 */
/* 837 */
/***/ (function(module, exports) {
/**
@ -74371,7 +74443,7 @@ BI.prepares.push(function () {
/***/ }),
/* 835 */
/* 838 */
/***/ (function(module, exports) {
/**
@ -75211,7 +75283,7 @@ BI.prepares.push(function () {
/***/ }),
/* 836 */
/* 839 */
/***/ (function(module, exports) {
// 浏览器相关方法
@ -75345,7 +75417,7 @@ _.extend(BI, {
});
/***/ }),
/* 837 */
/* 840 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@ -86374,7 +86446,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
/***/ }),
/* 838 */
/* 841 */
/***/ (function(module, exports) {
/*
@ -86389,7 +86461,7 @@ BI.$.extend(BI.$.Event.prototype, {
});
/***/ }),
/* 839 */
/* 842 */
/***/ (function(module, exports) {
if (BI.jQuery) {
@ -86639,7 +86711,7 @@ if (BI.jQuery) {
/***/ }),
/* 840 */
/* 843 */
/***/ (function(module, exports) {
/* !
@ -86848,7 +86920,7 @@ if (BI.jQuery) {
}));
/***/ }),
/* 841 */
/* 844 */
/***/ (function(module, exports) {
_.extend(BI, {
@ -86908,7 +86980,7 @@ _.extend(BI, {
});
/***/ }),
/* 842 */
/* 845 */
/***/ (function(module, exports) {
(function () {
@ -87529,7 +87601,7 @@ _.extend(BI, {
}());
/***/ }),
/* 843 */
/* 846 */
/***/ (function(module, exports) {
!(function () {
@ -87541,7 +87613,7 @@ _.extend(BI, {
})();
/***/ }),
/* 844 */
/* 847 */
/***/ (function(module, exports) {
/**
@ -88246,7 +88318,7 @@ _.extend(BI, {
/***/ }),
/* 845 */
/* 848 */
/***/ (function(module, exports) {
/**
@ -88794,7 +88866,7 @@ BI.shortcut("bi.tree_view", BI.TreeView);
/***/ }),
/* 846 */
/* 849 */
/***/ (function(module, exports) {
/**
@ -89047,7 +89119,7 @@ BI.AsyncTree = BI.inherit(BI.TreeView, {
BI.shortcut("bi.async_tree", BI.AsyncTree);
/***/ }),
/* 847 */
/* 850 */
/***/ (function(module, exports) {
/*
@ -90767,7 +90839,7 @@ BI.shortcut("bi.async_tree", BI.AsyncTree);
})(BI.jQuery);
/***/ }),
/* 848 */
/* 851 */
/***/ (function(module, exports) {
/*
@ -91402,7 +91474,7 @@ BI.shortcut("bi.async_tree", BI.AsyncTree);
})(BI.jQuery);
/***/ }),
/* 849 */
/* 852 */
/***/ (function(module, exports) {
/**
@ -91525,7 +91597,7 @@ BI.ListTreeView = BI.inherit(BI.TreeView, {
BI.shortcut("bi.list_tree_view", BI.ListTreeView);
/***/ }),
/* 850 */
/* 853 */
/***/ (function(module, exports) {
/**
@ -91653,7 +91725,7 @@ BI.ListAsyncTree = BI.inherit(BI.ListTreeView, {
BI.shortcut("bi.list_async_tree", BI.ListAsyncTree);
/***/ }),
/* 851 */
/* 854 */
/***/ (function(module, exports) {
/**
@ -91750,7 +91822,7 @@ BI.ListPartTree = BI.inherit(BI.ListAsyncTree, {
BI.shortcut("bi.list_part_tree", BI.ListPartTree);
/***/ }),
/* 852 */
/* 855 */
/***/ (function(module, exports) {
/**
@ -91956,7 +92028,7 @@ BI.shortcut("bi.part_tree", BI.PartTree);
/***/ }),
/* 853 */
/* 856 */
/***/ (function(module, exports) {
/**
@ -92028,7 +92100,7 @@ BI.shortcut("bi.display_tree", BI.DisplayTree);
/***/ }),
/* 854 */
/* 857 */
/***/ (function(module, exports) {
/**
@ -92111,7 +92183,7 @@ BI.ListDisplayTree.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.list_display_tree", BI.ListDisplayTree);
/***/ }),
/* 855 */
/* 858 */
/***/ (function(module, exports) {
/**
@ -92244,7 +92316,7 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
/***/ }),
/* 856 */
/* 859 */
/***/ (function(module, exports) {
/**
@ -92373,7 +92445,7 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
})();
/***/ }),
/* 857 */
/* 860 */
/***/ (function(module, exports) {
/**
@ -92454,7 +92526,7 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
})();
/***/ }),
/* 858 */
/* 861 */
/***/ (function(module, exports) {
;(function () {
@ -92617,9 +92689,6 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
/***/ }),
/* 859 */,
/* 860 */,
/* 861 */,
/* 862 */,
/* 863 */,
/* 864 */,
@ -92651,7 +92720,10 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
/* 890 */,
/* 891 */,
/* 892 */,
/* 893 */
/* 893 */,
/* 894 */,
/* 895 */,
/* 896 */
/***/ (function(module, exports) {
;(function () {
@ -92998,9 +93070,6 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
/***/ }),
/* 894 */,
/* 895 */,
/* 896 */,
/* 897 */,
/* 898 */,
/* 899 */,
@ -93209,52 +93278,52 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
/* 1102 */,
/* 1103 */,
/* 1104 */,
/* 1105 */
/* 1105 */,
/* 1106 */,
/* 1107 */,
/* 1108 */
/***/ (function(module, exports) {
/***/ }),
/* 1106 */,
/* 1107 */,
/* 1108 */,
/* 1109 */,
/* 1110 */,
/* 1111 */,
/* 1112 */,
/* 1113 */
/* 1113 */,
/* 1114 */,
/* 1115 */,
/* 1116 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 1114 */
/* 1117 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 1115 */
/* 1118 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 1116 */
/* 1119 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 1117 */
/* 1120 */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/* 1118 */,
/* 1119 */,
/* 1120 */,
/* 1121 */,
/* 1122 */,
/* 1123 */,
@ -93306,11 +93375,14 @@ BI.shortcut("bi.simple_tree", BI.SimpleTreeView);
/* 1169 */,
/* 1170 */,
/* 1171 */,
/* 1172 */
/* 1172 */,
/* 1173 */,
/* 1174 */,
/* 1175 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(831);
__webpack_require__(832);
__webpack_require__(834);
__webpack_require__(835);
__webpack_require__(202);
__webpack_require__(203);
__webpack_require__(204);
@ -93365,15 +93437,15 @@ __webpack_require__(299);
__webpack_require__(300);
__webpack_require__(301);
__webpack_require__(302);
__webpack_require__(833);
__webpack_require__(834);
__webpack_require__(835);
__webpack_require__(836);
__webpack_require__(837);
__webpack_require__(838);
__webpack_require__(839);
__webpack_require__(840);
__webpack_require__(841);
__webpack_require__(842);
__webpack_require__(843);
__webpack_require__(844);
__webpack_require__(303);
__webpack_require__(304);
__webpack_require__(305);
@ -93443,7 +93515,7 @@ __webpack_require__(366);
__webpack_require__(110);
__webpack_require__(111);
__webpack_require__(112);
__webpack_require__(1173);
__webpack_require__(1176);
__webpack_require__(222);
__webpack_require__(223);
__webpack_require__(224);
@ -93502,7 +93574,7 @@ __webpack_require__(276);
__webpack_require__(277);
__webpack_require__(278);
__webpack_require__(279);
__webpack_require__(843);
__webpack_require__(846);
__webpack_require__(367);
__webpack_require__(368);
__webpack_require__(369);
@ -93556,7 +93628,7 @@ __webpack_require__(416);
__webpack_require__(417);
__webpack_require__(418);
__webpack_require__(419);
__webpack_require__(844);
__webpack_require__(847);
__webpack_require__(420);
__webpack_require__(421);
__webpack_require__(422);
@ -93669,9 +93741,6 @@ __webpack_require__(528);
__webpack_require__(529);
__webpack_require__(530);
__webpack_require__(531);
__webpack_require__(845);
__webpack_require__(846);
__webpack_require__(847);
__webpack_require__(848);
__webpack_require__(849);
__webpack_require__(850);
@ -93682,6 +93751,9 @@ __webpack_require__(854);
__webpack_require__(855);
__webpack_require__(856);
__webpack_require__(857);
__webpack_require__(858);
__webpack_require__(859);
__webpack_require__(860);
__webpack_require__(113);
__webpack_require__(114);
__webpack_require__(115);
@ -93912,27 +93984,27 @@ __webpack_require__(698);
__webpack_require__(699);
__webpack_require__(700);
__webpack_require__(701);
__webpack_require__(842);
__webpack_require__(893);
__webpack_require__(858);
__webpack_require__(1113);
__webpack_require__(1114);
__webpack_require__(1115);
__webpack_require__(845);
__webpack_require__(896);
__webpack_require__(861);
__webpack_require__(1116);
__webpack_require__(1117);
__webpack_require__(1105);
__webpack_require__(1118);
__webpack_require__(1119);
__webpack_require__(1120);
__webpack_require__(1108);
module.exports = __webpack_require__(702);
/***/ }),
/* 1173 */
/* 1176 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Fix"] = __webpack_require__(1174);
/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Fix"] = __webpack_require__(1177);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(14)))
/***/ }),
/* 1174 */
/* 1177 */
/***/ (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

176
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-4-7 09:10:33 */
/*! time: 2021-4-21 2:30:22 PM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -82,7 +82,7 @@
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1423);
/******/ return __webpack_require__(__webpack_require__.s = 1426);
/******/ })
/************************************************************************/
/******/ ([
@ -14681,7 +14681,8 @@ BI.shortcut("bi.horizontal_auto", BI.HorizontalAutoLayout);
/**
* 浮动的水平居中布局
*/
BI.FloatHorizontalLayout = BI.inherit(BI.Layout);
BI.FloatHorizontalLayout = function () {
};
BI.shortcut("bi.horizontal_float", BI.FloatHorizontalLayout);
@ -15029,7 +15030,13 @@ BI.FlexHorizontalLayout = BI.inherit(BI.Layout, {
position: "relative"
});
if (o.columnSize[i] !== "auto") {
if (!(o.horizontalAlign === BI.HorizontalAlign.Stretch && (o.columnSize[i] === "fill" || o.columnSize[i] === ""))) {
if (o.columnSize[i] === "fill" || o.columnSize[i] === "") {
if (o.horizontalAlign !== BI.HorizontalAlign.Stretch) {
if (o.scrollable === true || o.scrollx === true) {
w.element.addClass("f-s-n");
}
}
} else {
w.element.addClass("f-s-n");
}
}
@ -15294,7 +15301,13 @@ BI.FlexVerticalLayout = BI.inherit(BI.Layout, {
position: "relative"
});
if (o.rowSize[i] !== "auto") {
if (!(o.verticalAlign === BI.VerticalAlign.Stretch && (o.rowSize[i] === "fill" || o.rowSize[i] === ""))) {
if (o.rowSize[i] === "fill" || o.rowSize[i] === "") {
if (o.verticalAlign !== BI.VerticalAlign.Stretch) {
if (o.scrollable === true || o.scrolly === true) {
w.element.addClass("f-s-n");
}
}
} else {
w.element.addClass("f-s-n");
}
}
@ -15512,7 +15525,13 @@ BI.FlexWrapperHorizontalLayout = BI.inherit(BI.Layout, {
position: "relative"
});
if (o.columnSize[i] !== "auto") {
if (!(o.horizontalAlign === BI.HorizontalAlign.Stretch && (o.columnSize[i] === "fill" || o.columnSize[i] === ""))) {
if (o.columnSize[i] === "fill" || o.columnSize[i] === "") {
if (o.horizontalAlign !== BI.HorizontalAlign.Stretch) {
if (o.scrollable === true || o.scrollx === true) {
w.element.addClass("f-s-n");
}
}
} else {
w.element.addClass("f-s-n");
}
}
@ -15679,7 +15698,13 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {
position: "relative"
});
if (o.rowSize[i] !== "auto") {
if (!(o.verticalAlign === BI.VerticalAlign.Stretch && (o.rowSize[i] === "fill" && o.rowSize[i] === ""))) {
if (o.rowSize[i] === "fill" || o.rowSize[i] === "") {
if (o.verticalAlign !== BI.VerticalAlign.Stretch) {
if (o.scrollable === true || o.scrolly === true) {
w.element.addClass("f-s-n");
}
}
} else {
w.element.addClass("f-s-n");
}
}
@ -16875,7 +16900,8 @@ BI.shortcut("bi.grid", BI.GridLayout);
* @class BI.HorizontalLayout
* @extends BI.Layout
*/
BI.HorizontalLayout = BI.inherit(BI.Layout);
BI.HorizontalLayout = function () {
};
BI.shortcut("bi.horizontal", BI.HorizontalLayout);
@ -16939,10 +16965,15 @@ BI.InlineLayout = BI.inherit(BI.Layout, {
if (o.columnSize[i] === "fill") {
w.element.css("min-width", "calc(100% - " + ((left + right) / BI.pixRatio + BI.pixUnit) + ")");
}
if (o.horizontalAlign === BI.HorizontalAlign.Stretch) {
if (o.horizontalAlign === BI.HorizontalAlign.Stretch || !(o.scrollable === true || o.scrollx === true)) {
w.element.css("max-width", "calc(100% - " + ((left + right) / BI.pixRatio + BI.pixUnit) + ")");
}
}
if (o.verticalAlign === BI.VerticalAlign.Stretch) {
var top = o.vgap + (item.tgap || 0) + (item.vgap || 0),
bottom = o.vgap + (item.bgap || 0) + (item.vgap || 0);
w.element.css("height", "calc(100% - " + ((top + bottom) / BI.pixRatio + BI.pixUnit) + ")");
}
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {
w.element.css({
"margin-top": (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0)) / BI.pixRatio + BI.pixUnit
@ -21293,10 +21324,10 @@ BI.Tab = BI.inherit(BI.Widget, {
}
},
setSelect: function (v) {
setSelect: function (v, action, callback) {
this.tab && this.tab.setValue(v);
this._assertCard(v);
this.layout.showCardByName(v);
this.layout.showCardByName(v, action, callback);
this._deleteOtherCards(v);
if (this.curr !== v) {
this.curr = v;
@ -42966,7 +42997,8 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
listeners: [{
eventName: "EVENT_CHANGE",
action: function () {
this.setValue(self._checkPositionValue(this.getValue()[0]));
self.position = this.getValue()[0];
this.setValue(self.position);
self.fireEvent("EVENT_CHANGE");
}
}]
@ -42982,7 +43014,8 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
listeners: [{
eventName: "EVENT_CHANGE",
action: function () {
this.setValue(self._checkPositionValue(this.getValue()[0]));
self.position = this.getValue()[0];
this.setValue(self.position);
self.fireEvent("EVENT_CHANGE");
}
}]
@ -42994,15 +43027,6 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
return items;
},
_checkPositionValue: function (v) {
var lastPosition = this.position;
this.position = v;
if (!this._checkDate({})) {
this.position = lastPosition;
}
return this.position;
},
_checkDate: function (obj) {
var o = this.options;
var date = BI.DynamicDateHelper.getCalculation(BI.extend(this._getValue(), this._digestDateTypeValue(obj)));
@ -43639,9 +43663,6 @@ BI.DynamicDateParamItem = BI.inherit(BI.Widget, {
listeners: [{
eventName: BI.TextValueCombo.EVENT_CHANGE,
action: function () {
if (!o.validationChecker(self.getValue())) {
self.editor.setValue(0);
}
self.fireEvent(BI.DynamicDateParamItem.EVENT_CHANGE);
}
}]
@ -60865,7 +60886,7 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.single_select_trigger",
height: o.height,
height: o.height - 2,
allowNoSelect: o.allowNoSelect,
allowEdit: o.allowEdit,
// adapter: this.popup,
@ -72032,6 +72053,24 @@ Object.defineProperty(exports, "FloatHorizontalLayout", {
return _float.FloatHorizontalLayout;
}
});
Object.defineProperty(exports, "AdaptiveLayout", {
enumerable: true,
get: function get() {
return _layout10.AdaptiveLayout;
}
});
Object.defineProperty(exports, "HexColorChooserPopup", {
enumerable: true,
get: function get() {
return _colorchooserPopup.HexColorChooserPopup;
}
});
Object.defineProperty(exports, "BlankIconTextItem", {
enumerable: true,
get: function get() {
return _blankicontextitem.BlankIconTextItem;
}
});
exports["default"] = void 0;
var _combo = __webpack_require__(704);
@ -72330,6 +72369,12 @@ var _datetime = __webpack_require__(828);
var _float = __webpack_require__(829);
var _layout10 = __webpack_require__(830);
var _colorchooserPopup = __webpack_require__(831);
var _blankicontextitem = __webpack_require__(832);
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; }
@ -73674,9 +73719,33 @@ var _single = __webpack_require__(2);
var _layout = __webpack_require__(3);
/***/ }),
/* 830 */,
/* 831 */,
/* 832 */,
/* 830 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _layout = __webpack_require__(3);
/***/ }),
/* 831 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _widget = __webpack_require__(1);
/***/ }),
/* 832 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _button = __webpack_require__(4);
/***/ }),
/* 833 */,
/* 834 */,
/* 835 */,
@ -73702,7 +73771,10 @@ var _layout = __webpack_require__(3);
/* 855 */,
/* 856 */,
/* 857 */,
/* 858 */
/* 858 */,
/* 859 */,
/* 860 */,
/* 861 */
/***/ (function(module, exports) {
;(function () {
@ -73865,9 +73937,6 @@ var _layout = __webpack_require__(3);
/***/ }),
/* 859 */,
/* 860 */,
/* 861 */,
/* 862 */,
/* 863 */,
/* 864 */,
@ -73899,7 +73968,10 @@ var _layout = __webpack_require__(3);
/* 890 */,
/* 891 */,
/* 892 */,
/* 893 */
/* 893 */,
/* 894 */,
/* 895 */,
/* 896 */
/***/ (function(module, exports) {
;(function () {
@ -74246,23 +74318,23 @@ var _layout = __webpack_require__(3);
/***/ }),
/* 894 */,
/* 895 */,
/* 896 */,
/* 897 */,
/* 898 */,
/* 899 */,
/* 900 */,
/* 901 */,
/* 902 */,
/* 903 */
/* 903 */,
/* 904 */,
/* 905 */,
/* 906 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Fix"] = __webpack_require__(904);
/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Fix"] = __webpack_require__(907);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(14)))
/***/ }),
/* 904 */
/* 907 */
/***/ (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"); } }
@ -75795,9 +75867,6 @@ var _layout = __webpack_require__(3);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(57).setImmediate))
/***/ }),
/* 905 */,
/* 906 */,
/* 907 */,
/* 908 */,
/* 909 */,
/* 910 */,
@ -75995,15 +76064,15 @@ var _layout = __webpack_require__(3);
/* 1102 */,
/* 1103 */,
/* 1104 */,
/* 1105 */
/* 1105 */,
/* 1106 */,
/* 1107 */,
/* 1108 */
/***/ (function(module, exports) {
/***/ }),
/* 1106 */,
/* 1107 */,
/* 1108 */,
/* 1109 */,
/* 1110 */,
/* 1111 */,
@ -76318,7 +76387,10 @@ var _layout = __webpack_require__(3);
/* 1420 */,
/* 1421 */,
/* 1422 */,
/* 1423 */
/* 1423 */,
/* 1424 */,
/* 1425 */,
/* 1426 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(92);
@ -76424,7 +76496,7 @@ __webpack_require__(366);
__webpack_require__(110);
__webpack_require__(111);
__webpack_require__(112);
__webpack_require__(903);
__webpack_require__(906);
__webpack_require__(367);
__webpack_require__(368);
__webpack_require__(369);
@ -76820,9 +76892,9 @@ __webpack_require__(698);
__webpack_require__(699);
__webpack_require__(700);
__webpack_require__(701);
__webpack_require__(893);
__webpack_require__(858);
__webpack_require__(1105);
__webpack_require__(896);
__webpack_require__(861);
__webpack_require__(1108);
module.exports = __webpack_require__(702);

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

3
dist/lib/base/combination/tab.d.ts vendored

@ -1,8 +1,9 @@
import { Widget } from "../../core/widget";
import { Action } from "../../core/action/action";
export declare class Tab extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
setSelect(v: string | number): void;
setSelect(v: string | number, action?: Action, callback?: Function): void;
removeTab(v: string | number): void;
getSelect(): string | number;
getSelectedTab<T>(): T;

12
dist/lib/base/single/button/listitem/blankicontextitem.d.ts vendored

@ -0,0 +1,12 @@
import { BasicButton } from "../button.basic";
export declare class BlankIconTextItem extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
doClick(): void;
setValue(): void;
getValue(): string;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
}

9
dist/lib/case/colorchooser/colorchooser.popup.hex.d.ts vendored

@ -0,0 +1,9 @@
import { Widget } from '../../core/widget';
export declare class HexColorChooserPopup extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_VALUE_CHANGE: string;
setStoreColors(v: string): void;
setValue(v: string): void;
getValue(): string;
}

4
dist/lib/core/wrapper/layout/layout.adaptive.d.ts vendored

@ -0,0 +1,4 @@
import { Layout } from "../layout";
export declare class AdaptiveLayout extends Layout {
static xtype: string;
}

8
dist/lib/index.d.ts vendored

@ -155,6 +155,9 @@ import { ImageButton } from './base/single/button/buttons/button.image';
import { History, Router } from "./router/router";
import { DateTimeCombo } from './widget/datetime/datetime.combo';
import { FloatHorizontalLayout } from "./core/wrapper/layout/adapt/float.horizontal";
import { AdaptiveLayout } from "./core/wrapper/layout/layout.adaptive";
import { HexColorChooserPopup } from './case/colorchooser/colorchooser.popup.hex';
import { BlankIconTextItem } from './base/single/button/listitem/blankicontextitem';
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
OB: typeof OB;
Plugin: _Plugin;
@ -314,9 +317,12 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
history: History;
DateTimeCombo: typeof DateTimeCombo;
FloatHorizontalLayout: typeof FloatHorizontalLayout;
AdaptiveLayout: typeof AdaptiveLayout;
HexColorChooserPopup: typeof HexColorChooserPopup;
BlankIconTextItem: typeof BlankIconTextItem;
}
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, Behavior, BehaviorFactory, RedMarkBehavior, HighlightBehavior, LoadingPane, Searcher, AbstractLabel, Label, TextButton, DownListCombo, IconChangeButton, Button, TextEditor, A, Html, Switcher, BubbleCombo, Loader, ListPane, MultiSelectBar, SelectList, TextValueCombo, 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, 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, };
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, Behavior, BehaviorFactory, RedMarkBehavior, HighlightBehavior, LoadingPane, Searcher, AbstractLabel, Label, TextButton, DownListCombo, IconChangeButton, Button, TextEditor, A, Html, Switcher, BubbleCombo, Loader, ListPane, MultiSelectBar, SelectList, TextValueCombo, 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, 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, };

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-4-7 09:10:33 */
/*! time: 2021-4-21 2:30:22 PM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -82,7 +82,7 @@
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1246);
/******/ return __webpack_require__(__webpack_require__.s = 1249);
/******/ })
/************************************************************************/
/******/ ({
@ -2879,7 +2879,7 @@ _.extend(BI, {
/***/ }),
/***/ 1104:
/***/ 1107:
/***/ (function(module, exports) {
BI.i18n = {
@ -3130,7 +3130,7 @@ BI.Req = {
/***/ }),
/***/ 1246:
/***/ 1249:
/***/ (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__(1104);
__webpack_require__(1247);
__webpack_require__(1107);
__webpack_require__(1250);
__webpack_require__(110);
__webpack_require__(111);
module.exports = __webpack_require__(112);
@ -3158,7 +3158,7 @@ module.exports = __webpack_require__(112);
/***/ }),
/***/ 1247:
/***/ 1250:
/***/ (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.20210407091204",
"version": "2.0.20210421143231",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

4
src/base/combination/tab.js

@ -83,10 +83,10 @@ BI.Tab = BI.inherit(BI.Widget, {
}
},
setSelect: function (v) {
setSelect: function (v, action, callback) {
this.tab && this.tab.setValue(v);
this._assertCard(v);
this.layout.showCardByName(v);
this.layout.showCardByName(v, action, callback);
this._deleteOtherCards(v);
if (this.curr !== v) {
this.curr = v;

3
src/core/wrapper/layout/adapt/float.horizontal.js

@ -1,5 +1,6 @@
/**
* 浮动的水平居中布局
*/
BI.FloatHorizontalLayout = BI.inherit(BI.Layout);
BI.FloatHorizontalLayout = function () {
};
BI.shortcut("bi.horizontal_float", BI.FloatHorizontalLayout);

8
src/core/wrapper/layout/flex/flex.horizontal.js

@ -41,7 +41,13 @@ BI.FlexHorizontalLayout = BI.inherit(BI.Layout, {
position: "relative"
});
if (o.columnSize[i] !== "auto") {
if (!(o.horizontalAlign === BI.HorizontalAlign.Stretch && (o.columnSize[i] === "fill" || o.columnSize[i] === ""))) {
if (o.columnSize[i] === "fill" || o.columnSize[i] === "") {
if (o.horizontalAlign !== BI.HorizontalAlign.Stretch) {
if (o.scrollable === true || o.scrollx === true) {
w.element.addClass("f-s-n");
}
}
} else {
w.element.addClass("f-s-n");
}
}

8
src/core/wrapper/layout/flex/flex.vertical.js

@ -40,7 +40,13 @@ BI.FlexVerticalLayout = BI.inherit(BI.Layout, {
position: "relative"
});
if (o.rowSize[i] !== "auto") {
if (!(o.verticalAlign === BI.VerticalAlign.Stretch && (o.rowSize[i] === "fill" || o.rowSize[i] === ""))) {
if (o.rowSize[i] === "fill" || o.rowSize[i] === "") {
if (o.verticalAlign !== BI.VerticalAlign.Stretch) {
if (o.scrollable === true || o.scrolly === true) {
w.element.addClass("f-s-n");
}
}
} else {
w.element.addClass("f-s-n");
}
}

8
src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.js

@ -37,7 +37,13 @@ BI.FlexWrapperHorizontalLayout = BI.inherit(BI.Layout, {
position: "relative"
});
if (o.columnSize[i] !== "auto") {
if (!(o.horizontalAlign === BI.HorizontalAlign.Stretch && (o.columnSize[i] === "fill" || o.columnSize[i] === ""))) {
if (o.columnSize[i] === "fill" || o.columnSize[i] === "") {
if (o.horizontalAlign !== BI.HorizontalAlign.Stretch) {
if (o.scrollable === true || o.scrollx === true) {
w.element.addClass("f-s-n");
}
}
} else {
w.element.addClass("f-s-n");
}
}

8
src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.js

@ -37,7 +37,13 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {
position: "relative"
});
if (o.rowSize[i] !== "auto") {
if (!(o.verticalAlign === BI.VerticalAlign.Stretch && (o.rowSize[i] === "fill" && o.rowSize[i] === ""))) {
if (o.rowSize[i] === "fill" || o.rowSize[i] === "") {
if (o.verticalAlign !== BI.VerticalAlign.Stretch) {
if (o.scrollable === true || o.scrolly === true) {
w.element.addClass("f-s-n");
}
}
} else {
w.element.addClass("f-s-n");
}
}

3
src/core/wrapper/layout/layout.horizontal.js

@ -3,5 +3,6 @@
* @class BI.HorizontalLayout
* @extends BI.Layout
*/
BI.HorizontalLayout = BI.inherit(BI.Layout);
BI.HorizontalLayout = function () {
};
BI.shortcut("bi.horizontal", BI.HorizontalLayout);

7
src/core/wrapper/layout/layout.inline.js

@ -54,10 +54,15 @@ BI.InlineLayout = BI.inherit(BI.Layout, {
if (o.columnSize[i] === "fill") {
w.element.css("min-width", "calc(100% - " + ((left + right) / BI.pixRatio + BI.pixUnit) + ")");
}
if (o.horizontalAlign === BI.HorizontalAlign.Stretch) {
if (o.horizontalAlign === BI.HorizontalAlign.Stretch || !(o.scrollable === true || o.scrollx === true)) {
w.element.css("max-width", "calc(100% - " + ((left + right) / BI.pixRatio + BI.pixUnit) + ")");
}
}
if (o.verticalAlign === BI.VerticalAlign.Stretch) {
var top = o.vgap + (item.tgap || 0) + (item.vgap || 0),
bottom = o.vgap + (item.bgap || 0) + (item.vgap || 0);
w.element.css("height", "calc(100% - " + ((top + bottom) / BI.pixRatio + BI.pixUnit) + ")");
}
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {
w.element.css({
"margin-top": (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0)) / BI.pixRatio + BI.pixUnit

1
src/less/base/single/editor/editor.textarea.less

@ -4,6 +4,7 @@
.overflow-hidden();
& .textarea-editor-content {
white-space: pre-wrap;
word-break: break-all;
font-size: @font-size-12;
line-height: 21px;
& {

11
src/less/core/utils/common.less

@ -493,3 +493,14 @@
.background-color(@color-bi-background-black-theme-dark, 50%);
}
}
// hover-visible的原子化形式
.bi-hover-visible-container {
& .bi-hover-visible-item {
visibility: hidden;
}
&:hover .bi-hover-visible-item {
visibility: visible;
}
}

15
src/widget/dynamicdate/dynamicdate.card.js

@ -173,7 +173,8 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
listeners: [{
eventName: "EVENT_CHANGE",
action: function () {
this.setValue(self._checkPositionValue(this.getValue()[0]));
self.position = this.getValue()[0];
this.setValue(self.position);
self.fireEvent("EVENT_CHANGE");
}
}]
@ -189,7 +190,8 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
listeners: [{
eventName: "EVENT_CHANGE",
action: function () {
this.setValue(self._checkPositionValue(this.getValue()[0]));
self.position = this.getValue()[0];
this.setValue(self.position);
self.fireEvent("EVENT_CHANGE");
}
}]
@ -201,15 +203,6 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
return items;
},
_checkPositionValue: function (v) {
var lastPosition = this.position;
this.position = v;
if (!this._checkDate({})) {
this.position = lastPosition;
}
return this.position;
},
_checkDate: function (obj) {
var o = this.options;
var date = BI.DynamicDateHelper.getCalculation(BI.extend(this._getValue(), this._digestDateTypeValue(obj)));

3
src/widget/dynamicdate/dynamicdate.param.item.js

@ -69,9 +69,6 @@ BI.DynamicDateParamItem = BI.inherit(BI.Widget, {
listeners: [{
eventName: BI.TextValueCombo.EVENT_CHANGE,
action: function () {
if (!o.validationChecker(self.getValue())) {
self.editor.setValue(0);
}
self.fireEvent(BI.DynamicDateParamItem.EVENT_CHANGE);
}
}]

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

@ -29,7 +29,7 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.single_select_trigger",
height: o.height,
height: o.height - 2,
allowNoSelect: o.allowNoSelect,
allowEdit: o.allowEdit,
// adapter: this.popup,

3
typescript/base/combination/tab.ts

@ -1,11 +1,12 @@
import { Widget } from "../../core/widget";
import { Action } from "../../core/action/action";
export declare class Tab extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
setSelect(v: string | number): void;
setSelect(v: string | number, action?: Action, callback?: Function): void;
removeTab(v: string | number): void;

20
typescript/base/single/button/listitem/blankicontextitem.ts

@ -0,0 +1,20 @@
import { BasicButton } from "../button.basic";
export declare class BlankIconTextItem extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
doClick(): void;
setValue(): void;
getValue(): string;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
}

13
typescript/case/colorchooser/colorchooser.popup.hex.ts

@ -0,0 +1,13 @@
import { Widget } from '../../core/widget';
export declare class HexColorChooserPopup extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_VALUE_CHANGE: string;
setStoreColors(v: string): void;
setValue(v: string): void;
getValue(): string;
}

5
typescript/core/wrapper/layout/layout.adaptive.ts

@ -0,0 +1,5 @@
import { Layout } from "../layout";
export declare class AdaptiveLayout extends Layout {
static xtype: string;
}

9
typescript/index.ts

@ -155,6 +155,9 @@ import { ImageButton } from './base/single/button/buttons/button.image';
import { History, Router } from "./router/router";
import { DateTimeCombo } from './widget/datetime/datetime.combo';
import { FloatHorizontalLayout } from "./core/wrapper/layout/adapt/float.horizontal";
import { AdaptiveLayout } from "./core/wrapper/layout/layout.adaptive";
import { HexColorChooserPopup } from './case/colorchooser/colorchooser.popup.hex';
import { BlankIconTextItem } from './base/single/button/listitem/blankicontextitem';
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
@ -316,6 +319,9 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
history: History,
DateTimeCombo: typeof DateTimeCombo;
FloatHorizontalLayout: typeof FloatHorizontalLayout;
AdaptiveLayout: typeof AdaptiveLayout;
HexColorChooserPopup: typeof HexColorChooserPopup;
BlankIconTextItem: typeof BlankIconTextItem;
}
export default {
@ -479,4 +485,7 @@ export {
History,
DateTimeCombo,
FloatHorizontalLayout,
AdaptiveLayout,
HexColorChooserPopup,
BlankIconTextItem,
};

Loading…
Cancel
Save