Browse Source

Merge remote-tracking branch 'origin/master'

es6
guy 4 years ago
parent
commit
fae2245173
  1. 2
      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. 1342
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.js.map
  6. 2
      dist/2.0/fineui.min.css
  7. 4
      dist/2.0/fineui.min.js
  8. 2
      dist/2.0/fineui.min.js.map
  9. 2
      dist/2.0/fineui_without_normalize.css
  10. 2
      dist/2.0/fineui_without_normalize.min.css
  11. 2
      dist/core.css
  12. 1298
      dist/core.js
  13. 2
      dist/core.js.map
  14. 2
      dist/demo.css
  15. 1690
      dist/demo.js
  16. 2
      dist/demo.js.map
  17. 2
      dist/fineui.css
  18. 4
      dist/fineui.ie.min.js
  19. 2
      dist/fineui.ie.min.js.map
  20. 1364
      dist/fineui.js
  21. 2
      dist/fineui.js.map
  22. 2
      dist/fineui.min.css
  23. 4
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 352
      dist/fineui_without_jquery_polyfill.js
  26. 2
      dist/fineui_without_jquery_polyfill.js.map
  27. 2
      dist/font.css
  28. 6
      dist/lib/base/list/listview.d.ts
  29. 6
      dist/lib/base/single/img/img.d.ts
  30. 9
      dist/lib/case/combo/editoriconcheckcombo/combo.editiconcheck.d.ts
  31. 6
      dist/lib/case/combo/icontextvaluecombo/combo.icontextvalue.d.ts
  32. 5
      dist/lib/case/linersegment/linear.segment.d.ts
  33. 13
      dist/lib/core/base.d.ts
  34. 12
      dist/lib/core/func/array.d.ts
  35. 135
      dist/lib/core/func/date.d.ts
  36. 65
      dist/lib/core/func/function.d.ts
  37. 12
      dist/lib/core/func/index.d.ts
  38. 63
      dist/lib/core/func/number.d.ts
  39. 114
      dist/lib/core/func/string.d.ts
  40. 132
      dist/lib/core/var.d.ts
  41. 4
      dist/lib/core/wrapper/layout/middle/middle.float.center.d.ts
  42. 29
      dist/lib/index.d.ts
  43. 16
      dist/lib/widget/intervalslider/intervalslider.d.ts
  44. 9
      dist/lib/widget/multiselectlist/multiselectlist.insert.d.ts
  45. 17
      dist/lib/widget/numberinterval/numberinterval.d.ts
  46. 6
      dist/lib/widget/year/combo.year.d.ts
  47. 12
      dist/lib/widget/yearmonthinterval/yearmonthinterval.d.ts
  48. 6
      dist/lib/widget/yearquarter/combo.yearquarter.d.ts
  49. 2
      dist/resource.css
  50. 72
      dist/utils.js
  51. 2
      dist/utils.js.map
  52. 4
      dist/utils.min.js
  53. 2
      dist/utils.min.js.map
  54. 2
      package.json
  55. 9
      typescript/base/list/listview.ts
  56. 8
      typescript/base/single/img/img.ts
  57. 10
      typescript/case/combo/editoriconcheckcombo/combo.editiconcheck.ts
  58. 8
      typescript/case/combo/icontextvaluecombo/combo.icontextvalue.ts
  59. 7
      typescript/case/linersegment/linear.segment.ts
  60. 20
      typescript/core/base.ts
  61. 15
      typescript/core/func/array.ts
  62. 138
      typescript/core/func/date.ts
  63. 59
      typescript/core/func/function.ts
  64. 12
      typescript/core/func/index.ts
  65. 64
      typescript/core/func/number.ts
  66. 111
      typescript/core/func/string.ts
  67. 132
      typescript/core/var.ts
  68. 5
      typescript/core/wrapper/layout/middle/middle.float.center.ts
  69. 41
      typescript/index.ts
  70. 22
      typescript/widget/intervalslider/intervalslider.ts
  71. 12
      typescript/widget/multiselectlist/multiselectlist.insert.ts
  72. 27
      typescript/widget/numberinterval/numberinterval.ts
  73. 7
      typescript/widget/year/combo.year.ts
  74. 14
      typescript/widget/yearmonthinterval/yearmonthinterval.ts
  75. 7
      typescript/widget/yearquarter/combo.yearquarter.ts

2
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

1342
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

2
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

2
dist/2.0/fineui_without_normalize.css vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/core.css vendored

File diff suppressed because one or more lines are too long

1298
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

2
dist/demo.css vendored

File diff suppressed because one or more lines are too long

1690
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

2
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

1364
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

2
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

352
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-12-18 17:30:23 */
/*! time: 2020-12-21 15:50:25 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -82,7 +82,7 @@
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1388);
/******/ return __webpack_require__(__webpack_require__.s = 1400);
/******/ })
/************************************************************************/
/******/ ([
@ -105,11 +105,7 @@ var _ob = __webpack_require__(44);
var _widget = __webpack_require__(1);
/***/ }),
/* 3 */,
/* 4 */,
/* 5 */,
/* 6 */,
/* 7 */
/* 3 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@ -118,6 +114,10 @@ var _widget = __webpack_require__(1);
var _widget = __webpack_require__(1);
/***/ }),
/* 4 */,
/* 5 */,
/* 6 */,
/* 7 */,
/* 8 */
/***/ (function(module, exports, __webpack_require__) {
@ -67743,6 +67743,42 @@ Object.defineProperty(exports, "ArrowTreeGroupNodeCheckbox", {
return _check.ArrowTreeGroupNodeCheckbox;
}
});
Object.defineProperty(exports, "NumberInterval", {
enumerable: true,
get: function get() {
return _numberinterval.NumberInterval;
}
});
Object.defineProperty(exports, "DynamicYearQuarterCombo", {
enumerable: true,
get: function get() {
return _combo12.DynamicYearQuarterCombo;
}
});
Object.defineProperty(exports, "DynamicYearCombo", {
enumerable: true,
get: function get() {
return _combo13.DynamicYearCombo;
}
});
Object.defineProperty(exports, "IntervalSlider", {
enumerable: true,
get: function get() {
return _intervalslider.IntervalSlider;
}
});
Object.defineProperty(exports, "MultiSelectInsertList", {
enumerable: true,
get: function get() {
return _multiselectlist.MultiSelectInsertList;
}
});
Object.defineProperty(exports, "YearMonthInterval", {
enumerable: true,
get: function get() {
return _yearmonthinterval.YearMonthInterval;
}
});
Object.defineProperty(exports, "NumberEditor", {
enumerable: true,
get: function get() {
@ -67752,7 +67788,43 @@ Object.defineProperty(exports, "NumberEditor", {
Object.defineProperty(exports, "TextValueCheckCombo", {
enumerable: true,
get: function get() {
return _combo12.TextValueCheckCombo;
return _combo14.TextValueCheckCombo;
}
});
Object.defineProperty(exports, "LinearSegment", {
enumerable: true,
get: function get() {
return _linear.LinearSegment;
}
});
Object.defineProperty(exports, "Img", {
enumerable: true,
get: function get() {
return _img.Img;
}
});
Object.defineProperty(exports, "EditorIconCheckCombo", {
enumerable: true,
get: function get() {
return _combo15.EditorIconCheckCombo;
}
});
Object.defineProperty(exports, "IconTextValueCombo", {
enumerable: true,
get: function get() {
return _combo16.IconTextValueCombo;
}
});
Object.defineProperty(exports, "ListView", {
enumerable: true,
get: function get() {
return _listview.ListView;
}
});
Object.defineProperty(exports, "FloatCenterLayout", {
enumerable: true,
get: function get() {
return _middleFloat.FloatCenterLayout;
}
});
exports["default"] = void 0;
@ -67829,7 +67901,7 @@ var _ob = __webpack_require__(44);
var _widget = __webpack_require__(1);
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
var _layout2 = __webpack_require__(734);
@ -68003,10 +68075,34 @@ var _popup = __webpack_require__(812);
var _check = __webpack_require__(813);
var _numbereditor = __webpack_require__(814);
var _numberinterval = __webpack_require__(814);
var _combo12 = __webpack_require__(815);
var _combo13 = __webpack_require__(816);
var _intervalslider = __webpack_require__(817);
var _multiselectlist = __webpack_require__(818);
var _yearmonthinterval = __webpack_require__(819);
var _numbereditor = __webpack_require__(820);
var _combo14 = __webpack_require__(821);
var _linear = __webpack_require__(822);
var _img = __webpack_require__(823);
var _combo15 = __webpack_require__(824);
var _combo16 = __webpack_require__(825);
var _listview = __webpack_require__(826);
var _middleFloat = __webpack_require__(827);
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; }
@ -68423,7 +68519,7 @@ exports.Model = Model;
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 735 */
@ -68432,7 +68528,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 736 */
@ -68441,7 +68537,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 737 */
@ -68450,7 +68546,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 738 */
@ -68477,7 +68573,7 @@ var _single = __webpack_require__(2);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 741 */
@ -68486,7 +68582,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 742 */
@ -68504,7 +68600,7 @@ var _button = __webpack_require__(8);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 744 */
@ -68513,7 +68609,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 745 */
@ -68522,7 +68618,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 746 */
@ -68639,7 +68735,7 @@ var _widget = __webpack_require__(1);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 759 */
@ -68648,7 +68744,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 760 */
@ -68657,7 +68753,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 761 */
@ -68666,7 +68762,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 762 */
@ -68675,7 +68771,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 763 */
@ -68837,7 +68933,7 @@ var _single = __webpack_require__(2);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 781 */
@ -68855,7 +68951,7 @@ var _widget = __webpack_require__(1);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 783 */
@ -68972,7 +69068,7 @@ var _single = __webpack_require__(2);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 796 */
@ -69071,7 +69167,7 @@ var _button = __webpack_require__(8);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 807 */
@ -69145,7 +69241,7 @@ var _button = __webpack_require__(58);
"use strict";
var _widget = __webpack_require__(1);
var _single = __webpack_require__(2);
/***/ }),
/* 815 */
@ -69157,18 +69253,114 @@ var _widget = __webpack_require__(1);
var _widget = __webpack_require__(1);
/***/ }),
/* 816 */,
/* 817 */,
/* 818 */,
/* 819 */,
/* 820 */,
/* 821 */,
/* 822 */,
/* 823 */,
/* 824 */,
/* 825 */,
/* 826 */,
/* 827 */,
/* 816 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _widget = __webpack_require__(1);
/***/ }),
/* 817 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _single = __webpack_require__(2);
/***/ }),
/* 818 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _single = __webpack_require__(2);
/***/ }),
/* 819 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _single = __webpack_require__(2);
/***/ }),
/* 820 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _widget = __webpack_require__(1);
/***/ }),
/* 821 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _widget = __webpack_require__(1);
/***/ }),
/* 822 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _widget = __webpack_require__(1);
/***/ }),
/* 823 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _single = __webpack_require__(2);
/***/ }),
/* 824 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _widget = __webpack_require__(1);
/***/ }),
/* 825 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _widget = __webpack_require__(1);
/***/ }),
/* 826 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _widget = __webpack_require__(1);
/***/ }),
/* 827 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _layout = __webpack_require__(3);
/***/ }),
/* 828 */,
/* 829 */,
/* 830 */,
@ -69207,7 +69399,19 @@ var _widget = __webpack_require__(1);
/* 863 */,
/* 864 */,
/* 865 */,
/* 866 */
/* 866 */,
/* 867 */,
/* 868 */,
/* 869 */,
/* 870 */,
/* 871 */,
/* 872 */,
/* 873 */,
/* 874 */,
/* 875 */,
/* 876 */,
/* 877 */,
/* 878 */
/***/ (function(module, exports) {
;(function () {
@ -69370,17 +69574,17 @@ var _widget = __webpack_require__(1);
/***/ }),
/* 867 */,
/* 868 */,
/* 869 */,
/* 870 */
/* 879 */,
/* 880 */,
/* 881 */,
/* 882 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Fix"] = __webpack_require__(871);
/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Fix"] = __webpack_require__(883);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(17)))
/***/ }),
/* 871 */
/* 883 */
/***/ (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"); } }
@ -70857,8 +71061,8 @@ var _widget = __webpack_require__(1);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(62).setImmediate))
/***/ }),
/* 872 */,
/* 873 */
/* 884 */,
/* 885 */
/***/ (function(module, exports) {
;(function () {
@ -71154,18 +71358,6 @@ var _widget = __webpack_require__(1);
/***/ }),
/* 874 */,
/* 875 */,
/* 876 */,
/* 877 */,
/* 878 */,
/* 879 */,
/* 880 */,
/* 881 */,
/* 882 */,
/* 883 */,
/* 884 */,
/* 885 */,
/* 886 */,
/* 887 */,
/* 888 */,
@ -71371,12 +71563,7 @@ var _widget = __webpack_require__(1);
/* 1088 */,
/* 1089 */,
/* 1090 */,
/* 1091 */
/***/ (function(module, exports) {
/***/ }),
/* 1091 */,
/* 1092 */,
/* 1093 */,
/* 1094 */,
@ -71388,7 +71575,12 @@ var _widget = __webpack_require__(1);
/* 1100 */,
/* 1101 */,
/* 1102 */,
/* 1103 */,
/* 1103 */
/***/ (function(module, exports) {
/***/ }),
/* 1104 */,
/* 1105 */,
/* 1106 */,
@ -71673,7 +71865,19 @@ var _widget = __webpack_require__(1);
/* 1385 */,
/* 1386 */,
/* 1387 */,
/* 1388 */
/* 1388 */,
/* 1389 */,
/* 1390 */,
/* 1391 */,
/* 1392 */,
/* 1393 */,
/* 1394 */,
/* 1395 */,
/* 1396 */,
/* 1397 */,
/* 1398 */,
/* 1399 */,
/* 1400 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(122);
@ -71777,7 +71981,7 @@ __webpack_require__(392);
__webpack_require__(152);
__webpack_require__(153);
__webpack_require__(154);
__webpack_require__(870);
__webpack_require__(882);
__webpack_require__(393);
__webpack_require__(394);
__webpack_require__(395);
@ -72153,9 +72357,9 @@ __webpack_require__(706);
__webpack_require__(707);
__webpack_require__(708);
__webpack_require__(709);
__webpack_require__(873);
__webpack_require__(866);
__webpack_require__(1091);
__webpack_require__(885);
__webpack_require__(878);
__webpack_require__(1103);
module.exports = __webpack_require__(710);

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

6
dist/lib/base/list/listview.d.ts vendored

@ -0,0 +1,6 @@
import { Widget } from '../../core/widget';
export declare class ListView extends Widget {
static xtype: string;
restore(): void;
populate<T>(items: T[]): void;
}

6
dist/lib/base/single/img/img.d.ts vendored

@ -0,0 +1,6 @@
import { Single } from "../single";
export declare class Img extends Single {
static xtype: string;
setSrc(src: string): void;
getSrc(): string;
}

9
dist/lib/case/combo/editoriconcheckcombo/combo.editiconcheck.d.ts vendored

@ -0,0 +1,9 @@
import { Widget } from "../../../core/widget";
export declare class EditorIconCheckCombo extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_FOCUS: string;
static EVENT_EMPTY: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
}

6
dist/lib/case/combo/icontextvaluecombo/combo.icontextvalue.d.ts vendored

@ -0,0 +1,6 @@
import { Widget } from '../../../core/widget';
export declare class IconTextValueCombo extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
populate<T>(items: T[]): void;
}

5
dist/lib/case/linersegment/linear.segment.d.ts vendored

@ -0,0 +1,5 @@
import { Widget } from "../../core/widget";
export declare class LinearSegment extends Widget {
static xtype: string;
setEnabledValue(v: any): void;
}

13
dist/lib/core/base.d.ts vendored

@ -113,7 +113,7 @@ export interface _base {
isNaN: (value: any) => value is number;
isUndefined: (value: any) => value is undefined;
zipObject: (props: any[], values?: any[]) => object;
cloneDeep: (value: any, customizer?: Function, thisArg?: any) => any;
cloneDeep: <T>(value: T) => T;
findKey: (object: object, predicate?: Function | object | string, thisArg?: any) => any;
pick: (object: object, predicate?: Function | string | string[], thisArg?: any) => object;
omit: (object: object, predicate?: Function | string | string[], thisArg?: any) => object;
@ -134,6 +134,8 @@ export interface _base {
isEmptyObject: (obj: any) => boolean;
isNotEmptyObject: (obj: any) => obj is object;
isWindow: (obj: any) => obj is Window;
deepClone: <T>(obj: T) => T;
deepExtend: merge['deepExtend'];
isDeepMatch: (object: any, attrs: any) => boolean;
contains: (obj: any[], target: any, fromIndex?: number) => boolean;
deepContains: (obj: any[], copy: any) => number;
@ -191,3 +193,12 @@ export interface _base {
getDate: (...args: (number | string)[]) => Date;
getTime: (...args: any[]) => number;
}
declare type merge = {
deepExtend<TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
deepExtend<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TObject & TSource1 & TSource2;
deepExtend<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TObject & TSource1 & TSource2;
deepExtend<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3): TObject & TSource1 & TSource2 & TSource3;
deepExtend<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): TObject & TSource1 & TSource2 & TSource3 & TSource4;
deepExtend(object: any, ...otherArgs: any[]): any;
};
export {};

12
dist/lib/core/func/array.d.ts vendored

@ -1,9 +1,5 @@
export declare type _pushArray = (sArray: any[], array: any[]) => void;
export declare type _pushDistinct = (sArray: any[], obj: any) => void;
export declare type _pushDistinctArray = (sArray: any[], array: any[]) => void;
declare type _array = {
pushArray: _pushArray;
pushDistinct: _pushDistinct;
pushDistinctArray: _pushDistinctArray;
export declare type _array = {
pushArray: (sArray: any[], array: any[]) => void;
pushDistinct: (sArray: any[], obj: any) => void;
pushDistinctArray: (sArray: any[], array: any[]) => void;
};
export default _array;

135
dist/lib/core/func/date.d.ts vendored

@ -13,80 +13,65 @@ export declare type _Date = {
_MD: number[];
_OFFSET: number[];
};
/**
*
*/
export declare type _getTimezone = (date: Date) => string;
/**
*
*/
export declare type _getMonthDays = (date: Date, month: number) => string;
/**
*
*/
export declare type _getLastDateOfMonth = (data: Date) => Date;
/**
*
*/
export declare type _getDayOfYear = (data: Date) => number;
/**
*
*/
export declare type _getWeekNumber = (data: Date) => number;
/**
*
*/
export declare type _getQuarter = (date: Date) => number;
/**
*
*/
export declare type _getOffsetDate = (date: Date, offset: number) => Date;
/**
*
*/
export declare type _getOffsetQuarter = (date: Date, n: number) => Date;
/**
*
*/
export declare type _getQuarterStartMonth = (date: Date) => number;
/**
*
*/
export declare type _getQuarterStartDate = (date: Date) => number;
/**
*
*/
export declare type _getQuarterEndDate = (date: Date) => number;
/**
* n个月之前或之后的日期
*/
export declare type _getOffsetMonth = (date: Date, n: number) => Date;
/**
*
*/
export declare type _getWeekStartDate = (date: Date) => Date;
/**
*
*/
export declare type _getWeekEndDate = (date: Date) => Date;
/**
*
*/
export declare type _print = (date: Date, str: string) => string;
export declare type _date = {
getTimezone: _getTimezone;
getMonthDays: _getMonthDays;
getLastDateOfMonth: _getLastDateOfMonth;
getDayOfYear: _getDayOfYear;
getWeekNumber: _getWeekNumber;
getQuarter: _getQuarter;
getOffsetDate: _getOffsetDate;
getOffsetQuarter: _getOffsetQuarter;
getQuarterStartMonth: _getQuarterStartMonth;
getQuarterStartDate: _getQuarterStartDate;
getQuarterEndDate: _getQuarterEndDate;
getOffsetMonth: _getOffsetMonth;
getWeekStartDate: _getWeekStartDate;
getWeekEndDate: _getWeekEndDate;
print: _print;
/**
*
*/
getTimezone: (date: Date) => string;
/**
*
*/
getMonthDays: (date: Date, month: number) => number;
/**
*
*/
getLastDateOfMonth: (data: Date) => Date;
/**
*
*/
getDayOfYear: (data: Date) => number;
/**
*
*/
getWeekNumber: (data: Date) => number;
/**
*
*/
getQuarter: (date: Date) => number;
/**
*
*/
getOffsetDate: (date: Date, offset: number) => Date;
/**
*
*/
getOffsetQuarter: (date: Date, n: number) => Date;
/**
*
*/
getQuarterStartMonth: (date: Date) => number;
/**
*
*/
getQuarterStartDate: (date: Date) => number;
/**
*
*/
getQuarterEndDate: (date: Date) => number;
/**
* n个月之前或之后的日期
*/
getOffsetMonth: (date: Date, n: number) => Date;
/**
*
*/
getWeekStartDate: (date: Date) => Date;
/**
*
*/
getWeekEndDate: (date: Date) => Date;
/**
*
*/
print: (date: Date, str: string) => string;
};

65
dist/lib/core/func/function.d.ts vendored

@ -1,36 +1,31 @@
/**
*
* @param array
* @param name
* @return
*/
export declare type _createDistinctName = (array: any[], name: string) => string;
/**
*
* @param items
* @param keyword
* @param param
*/
export declare type _getSearchResult = (items: any, keyword: any, param?: string) => {
find: any[];
match: any[];
export declare type _function = {
/**
*
* @param array
* @param name
* @return
*/
createDistinctName: (array: any[], name: string) => string;
/**
*
* @param items
* @param keyword
* @param param
*/
getSearchResult: (items: any, keyword: any, param?: string) => {
find: any[];
match: any[];
};
/**
* A执行之前执行方法B
* @param sFunc A
* @param func B
*/
beforeFunc: (sFunc: Function, func: Function) => Function;
/**
* A执行之后执行方法B
* @param sFunc A
* @param func B
*/
afterFunc: (sFunc: Function, func: Function) => Function;
};
/**
* A执行之前执行方法B
* @param sFunc A
* @param func B
*/
export declare type _beforeFunc = (sFunc: Function, func: Function) => Function;
/**
* A执行之后执行方法B
* @param sFunc A
* @param func B
*/
export declare type _afterFunc = (sFunc: Function, func: Function) => Function;
declare type _function = {
createDistinctName: _createDistinctName;
getSearchResult: _getSearchResult;
beforeFunc: _beforeFunc;
afterFunc: _afterFunc;
};
export default _function;

12
dist/lib/core/func/index.d.ts vendored

@ -1,8 +1,8 @@
import _array from "./array";
import _string from "./string";
import _number from "./number";
import _function from "./function";
import { _Date } from "./date";
export interface _func extends _array, _string, _number, _function {
import { _array } from "./array";
import { _string } from "./string";
import { _number } from "./number";
import { _function } from "./function";
import { _Date, _date } from "./date";
export interface _func extends _array, _string, _number, _function, _date {
Date: _Date;
}

63
dist/lib/core/func/number.d.ts vendored

@ -1,35 +1,30 @@
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export declare type _add = (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export declare type _sub = (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export declare type _mul = (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export declare type _div = (num: number, arg: number) => number;
declare type _number = {
add: _add;
sub: _sub;
mul: _mul;
div: _div;
export declare type _number = {
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
add: (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
sub: (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
mul: (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
div: (num: number, arg: number) => number;
};
export default _number;

114
dist/lib/core/func/string.d.ts vendored

@ -1,62 +1,54 @@
/**
*
* @param str source字符串
* @param {String} startTag
* @return {Boolean} truefalse
*/
export declare type _startWith = (str: string, startTag: string) => boolean;
/**
*
* @param str source字符串
* @param {String} endTag
* @return {Boolean} truefalse
*/
export declare type _endWith = (str: string, endTag: string) => boolean;
/**
* url中指定名字的参数
* @param str source字符串
* @param {String} name
* @return {String}
*/
export declare type _getQuery = (str: string, name: string) => string | null;
/**
* url加上给定的参数
* @param str source字符串
* @param {Object} paras
* @return {String} url
*/
export declare type _appendQuery = (str: string, paras: {
[key: string]: string | number;
}) => string;
/**
*
* @param str source字符串
* @param {String} s1
* @param {String} s2
* @returns {String}
*/
export declare type _replaceAll = (str: string, s1: string, s2: string) => string;
/**
*
* @param str source字符串
* @param {String} start
* @returns {String}
*/
export declare type _perfectStart = (str: string, start: string) => string;
/**
*
* @param str source字符串
* @param {String} sub
* @return {Number[]}
*/
export declare type _allIndexOf = (str: string, sub: string) => number[];
declare type _string = {
startWith: _startWith;
endWith: _endWith;
getQuery: _getQuery;
appendQuery: _appendQuery;
replaceAll: _replaceAll;
perfectStart: _perfectStart;
allIndexOf: _allIndexOf;
export declare type _string = {
/**
*
* @param str source字符串
* @param {String} startTag
* @return {Boolean} truefalse
*/
startWith: (str: string, startTag: string) => boolean;
/**
*
* @param str source字符串
* @param {String} endTag
* @return {Boolean} truefalse
*/
endWith: (str: string, endTag: string) => boolean;
/**
* url中指定名字的参数
* @param str source字符串
* @param {String} name
* @return {String}
*/
getQuery: (str: string, name: string) => string | null;
/**
* url加上给定的参数
* @param str source字符串
* @param {Object} paras
* @return {String} url
*/
appendQuery: (str: string, paras: {
[key: string]: string | number;
}) => string;
/**
*
* @param str source字符串
* @param {String} s1
* @param {String} s2
* @returns {String}
*/
replaceAll: (str: string, s1: string, s2: string) => string;
/**
*
* @param str source字符串
* @param {String} start
* @returns {String}
*/
perfectStart: (str: string, start: string) => string;
/**
*
* @param str source字符串
* @param {String} sub
* @return {Number[]}
*/
allIndexOf: (str: string, sub: string) => number[];
};
export default _string;

132
dist/lib/core/var.d.ts vendored

@ -0,0 +1,132 @@
export interface _var {
MAX: number;
MIN: number;
EVENT_RESPONSE_TIME: number;
zIndex_layer: number;
zIndex_popover: number;
zIndex_popup: number;
zIndex_masker: number;
zIndex_tip: number;
emptyStr: string;
emptyFn: Function;
empty: null;
Key: {
48: string;
49: string;
50: string;
51: string;
52: string;
53: string;
54: string;
55: string;
56: string;
57: string;
65: string;
66: string;
67: string;
68: string;
69: string;
70: string;
71: string;
72: string;
73: string;
74: string;
75: string;
76: string;
77: string;
78: string;
79: string;
80: string;
81: string;
82: string;
83: string;
84: string;
85: string;
86: string;
87: string;
88: string;
89: string;
90: string;
96: string;
97: string;
98: string;
99: string;
100: string;
101: string;
102: string;
103: string;
104: string;
105: string;
106: string;
107: string;
109: string;
110: string;
111: string;
};
KeyCode: {
BACKSPACE: number;
COMMA: number;
DELETE: number;
DOWN: number;
END: number;
ENTER: number;
ESCAPE: number;
HOME: number;
LEFT: number;
NUMPAD_ADD: number;
NUMPAD_DECIMAL: number;
NUMPAD_DIVIDE: number;
NUMPAD_ENTER: number;
NUMPAD_MULTIPLY: number;
NUMPAD_SUBTRACT: number;
PAGE_DOWN: number;
PAGE_UP: number;
PERIOD: number;
RIGHT: number;
SPACE: number;
TAB: number;
UP: number;
};
Status: {
SUCCESS: number;
WRONG: number;
START: number;
END: number;
WAITING: number;
READY: number;
RUNNING: number;
OUTOFBOUNDS: number;
NULL: number;
};
Direction: {
Top: string;
Bottom: string;
Left: string;
Right: string;
Custom: string;
};
Axis: {
Vertical: string;
Horizontal: string;
};
Selection: {
Default: number;
None: number;
Single: number;
Multi: number;
All: number;
};
HorizontalAlign: {
Left: string;
Right: string;
Center: string;
Stretch: string;
};
VerticalAlign: {
Middle: string;
Top: string;
Bottom: string;
Stretch: string;
};
StartOfWeek: number;
}

4
dist/lib/core/wrapper/layout/middle/middle.float.center.d.ts vendored

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

29
dist/lib/index.d.ts vendored

@ -36,6 +36,7 @@ import * as decorator from "./core/decorator/decorator";
import { _func } from "./core/func";
import { _i18n } from "./core/i18n";
import { _Plugin } from "./core/plugin";
import { _var } from "./core/var";
import { OB, _OB } from "./core/ob";
import { _Widget, _WidgetStatic, Widget } from "./core/widget";
import { _inject } from "./core/inject";
@ -126,15 +127,27 @@ import { AllCountPager } from "./case/pager/pager.all.count";
import { PopupView } from "./base/layer/layer.popup";
import { BubblePopupView, BubblePopupBarView, TextBubblePopupBarView } from "./case/combo/bubblecombo/popup.bubble";
import { ArrowTreeGroupNodeCheckbox } from "./case/checkbox/check.arrownode";
import { NumberInterval } from "./widget/numberinterval/numberinterval";
import { DynamicYearQuarterCombo } from "./widget/yearquarter/combo.yearquarter";
import { DynamicYearCombo } from "./widget/year/combo.year";
import { IntervalSlider } from "./widget/intervalslider/intervalslider";
import { MultiSelectInsertList } from "./widget/multiselectlist/multiselectlist.insert";
import { YearMonthInterval } from "./widget/yearmonthinterval/yearmonthinterval";
import { NumberEditor } from "./widget/numbereditor/numbereditor";
import { TextValueCheckCombo } from "./case/combo/textvaluecheckcombo/combo.textvaluecheck";
import { LinearSegment } from "./case/linersegment/linear.segment";
import { Img } from "./base/single/img/img";
import { EditorIconCheckCombo } from "./case/combo/editoriconcheckcombo/combo.editiconcheck";
import { IconTextValueCombo } from './case/combo/icontextvaluecombo/combo.icontextvalue';
import { ListView } from './base/list/listview';
import { FloatCenterLayout } from './core/wrapper/layout/middle/middle.float.center';
declare type ClassConstructor<T extends {}> = T & {
new (config: any): T;
(config: any): T;
readonly prototype: T;
readonly xtype: string;
};
export interface BI extends _func, _i18n, _base, _inject {
export interface BI extends _func, _i18n, _base, _inject, _var {
OB: ClassConstructor<_OB>;
Plugin: _Plugin;
Widget: ClassConstructor<_Widget> & _WidgetStatic;
@ -266,11 +279,23 @@ export interface BI extends _func, _i18n, _base, _inject {
BubblePopupBarView: typeof BubblePopupBarView;
TextBubblePopupBarView: typeof TextBubblePopupBarView;
ArrowTreeGroupNodeCheckbox: typeof ArrowTreeGroupNodeCheckbox;
NumberInterval: typeof NumberInterval;
DynamicYearQuarterCombo: typeof DynamicYearQuarterCombo;
DynamicYearCombo: typeof DynamicYearCombo;
IntervalSlider: typeof IntervalSlider;
MultiSelectInsertList: typeof MultiSelectInsertList;
YearMonthInterval: typeof YearMonthInterval;
TextValueCheckCombo: typeof TextValueCheckCombo;
NumberEditor: typeof NumberEditor;
LinearSegment: typeof LinearSegment;
Img: typeof Img;
EditorIconCheckCombo: typeof EditorIconCheckCombo;
IconTextValueCombo: typeof IconTextValueCombo;
ListView: typeof ListView;
FloatCenterLayout: typeof FloatCenterLayout;
}
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, VerticalLayout, AbsoluteLayout, DefaultLayout, HTapeLayout, CenterAdaptLayout, VTapeLayout, VerticalAdaptLayout, IconButton, Trigger, TriggerIconButton, Action, ActionFactory, ShowAction, 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, TextValueCheckCombo, NumberEditor, };
export { OB, Widget, Single, BasicButton, Checkbox, Icon, LeftVerticalAdaptLayout, LeftRightVerticalAdaptLayout, SearchTextValueCombo, Input, IconTextItem, AllValueMultiTextValueCombo, IconTextIconItem, Layout, HorizontalAutoLayout, InlineVerticalAdaptLayout, RightVerticalAdaptLayout, TableAdaptLayout, AbsoluteCenterLayout, HorizontalAdaptLayout, FloatLeftLayout, VerticalLayout, AbsoluteLayout, DefaultLayout, HTapeLayout, CenterAdaptLayout, VTapeLayout, VerticalAdaptLayout, IconButton, Trigger, TriggerIconButton, Action, ActionFactory, ShowAction, 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, };

16
dist/lib/widget/intervalslider/intervalslider.d.ts vendored

@ -0,0 +1,16 @@
import { Single } from '../../base/single/single';
export declare class IntervalSlider extends Single {
static xtype: string;
static EVENT_CHANGE: string;
max: number;
min: number;
getValue(): {
min: number;
max: number;
};
setMinAndMax(v: {
min: number;
max: number;
}): void;
reset(): void;
}

9
dist/lib/widget/multiselectlist/multiselectlist.insert.d.ts vendored

@ -0,0 +1,9 @@
import { Single } from '../../base/single/single';
export declare class MultiSelectInsertList extends Single {
static xtype: string;
static REQ_GET_DATA_LENGTH: 1;
static REQ_GET_ALL_DATA: -1;
static EVENT_CHANGE: string;
isAllSelected(): boolean;
resize(): void;
}

17
dist/lib/widget/numberinterval/numberinterval.d.ts vendored

@ -0,0 +1,17 @@
import { Single } from '../../base/single/single';
export declare class NumberInterval extends Single {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_CONFIRM: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
isStateValid(): boolean;
setMinEnable(v: boolean): void;
setCloseMinEnable(v: boolean): void;
setMaxEnable(v: boolean): void;
setCloseMaxEnable(v: boolean): void;
showNumTip(): void;
hideNumTip(): void;
setNumTip(v: string): void;
getNumTip(): void;
}

6
dist/lib/widget/year/combo.year.d.ts vendored

@ -0,0 +1,6 @@
import { Widget } from "../../core/widget";
export declare class DynamicYearCombo extends Widget {
static xtype: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
}

12
dist/lib/widget/yearmonthinterval/yearmonthinterval.d.ts vendored

@ -0,0 +1,12 @@
import { Single } from '../../base/single/single';
export declare class YearMonthInterval extends Single {
static xtype: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
getValue(): {
start: number;
end: number;
};
}

6
dist/lib/widget/yearquarter/combo.yearquarter.d.ts vendored

@ -0,0 +1,6 @@
import { Widget } from "../../core/widget";
export declare class DynamicYearQuarterCombo extends Widget {
static xtype: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
}

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

72
dist/utils.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-12-18 17:30:23 */
/*! time: 2020-12-21 15:50:25 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -82,12 +82,12 @@
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1213);
/******/ return __webpack_require__(__webpack_require__.s = 1225);
/******/ })
/************************************************************************/
/******/ ({
/***/ 1074:
/***/ 1086:
/***/ (function(module, exports) {
BI.i18n = {
@ -286,7 +286,36 @@ BI.i18n = {
/***/ }),
/***/ 1213:
/***/ 122:
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {/**
* Created by richie on 15/7/8.
*/
/**
* 初始化BI对象
*/
_global = undefined;
if (typeof window !== "undefined") {
_global = window;
} else if (typeof global !== "undefined") {
_global = global;
} else if (typeof self !== "undefined") {
_global = self;
} else {
_global = this;
}
if (_global.BI == null) {
_global.BI = {prepares: []};
}
if(_global.BI.prepares == null) {
_global.BI.prepares = [];
}
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(17)))
/***/ }),
/***/ 1225:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(122);
@ -316,8 +345,8 @@ __webpack_require__(139);
__webpack_require__(140);
__webpack_require__(141);
__webpack_require__(142);
__webpack_require__(1074);
__webpack_require__(1214);
__webpack_require__(1086);
__webpack_require__(1226);
__webpack_require__(152);
__webpack_require__(153);
module.exports = __webpack_require__(154);
@ -325,7 +354,7 @@ module.exports = __webpack_require__(154);
/***/ }),
/***/ 1214:
/***/ 1226:
/***/ (function(module, exports) {
/**
@ -397,35 +426,6 @@ BI.Date._MD = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
BI.Date._OFFSET = [0, -1, -2, -3, -4, -5, -6];
/***/ }),
/***/ 122:
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {/**
* Created by richie on 15/7/8.
*/
/**
* 初始化BI对象
*/
_global = undefined;
if (typeof window !== "undefined") {
_global = window;
} else if (typeof global !== "undefined") {
_global = global;
} else if (typeof self !== "undefined") {
_global = self;
} else {
_global = this;
}
if (_global.BI == null) {
_global.BI = {prepares: []};
}
if(_global.BI.prepares == null) {
_global.BI.prepares = [];
}
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(17)))
/***/ }),
/***/ 123:

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.20201218173238",
"version": "2.0.20201221155146",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

9
typescript/base/list/listview.ts

@ -0,0 +1,9 @@
import { Widget } from '../../core/widget';
export declare class ListView extends Widget {
static xtype: string;
restore(): void;
populate<T>(items: T[]): void;
}

8
typescript/base/single/img/img.ts

@ -0,0 +1,8 @@
import { Single } from "../single";
export declare class Img extends Single {
static xtype: string;
setSrc(src: string): void;
getSrc(): string;
}

10
typescript/case/combo/editoriconcheckcombo/combo.editiconcheck.ts

@ -0,0 +1,10 @@
import { Widget } from "../../../core/widget";
export declare class EditorIconCheckCombo extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_FOCUS: string;
static EVENT_EMPTY: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
}

8
typescript/case/combo/icontextvaluecombo/combo.icontextvalue.ts

@ -0,0 +1,8 @@
import { Widget } from '../../../core/widget';
export declare class IconTextValueCombo extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
populate<T>(items: T[]): void;
}

7
typescript/case/linersegment/linear.segment.ts

@ -0,0 +1,7 @@
import { Widget } from "../../core/widget";
export declare class LinearSegment extends Widget {
static xtype: string;
setEnabledValue(v: any): void;
}

20
typescript/core/base.ts

@ -223,7 +223,7 @@ export interface _base {
zipObject: (props: any[], values?: any[]) => object;
cloneDeep: (value: any, customizer?: Function, thisArg?: any) => any;
cloneDeep: <T>(value: T) => T;
findKey: (object: object, predicate?: Function|object|string, thisArg?: any) => any;
@ -261,6 +261,10 @@ export interface _base {
isWindow: (obj: any) => obj is Window;
deepClone: <T>(obj: T) => T;
deepExtend: merge['deepExtend'];
isDeepMatch: (object: any, attrs: any) => boolean;
contains: (obj: any[], target: any, fromIndex?: number) => boolean;
@ -373,3 +377,17 @@ export interface _base {
getTime: (...args: any[]) => number;
}
type merge = {
deepExtend<TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
deepExtend<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TObject & TSource1 & TSource2;
deepExtend<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TObject & TSource1 & TSource2;
deepExtend<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3): TObject & TSource1 & TSource2 & TSource3;
deepExtend<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): TObject & TSource1 & TSource2 & TSource3 & TSource4;
deepExtend(object: any, ...otherArgs: any[]): any;
}

15
typescript/core/func/array.ts

@ -1,12 +1,5 @@
export type _pushArray = (sArray: any[], array: any[]) => void;
export type _pushDistinct = (sArray: any[], obj: any) => void;
export type _pushDistinctArray = (sArray: any[], array: any[]) => void;
type _array = {
pushArray: _pushArray;
pushDistinct: _pushDistinct;
pushDistinctArray: _pushDistinctArray;
export type _array = {
pushArray: (sArray: any[], array: any[]) => void;
pushDistinct: (sArray: any[], obj: any) => void;
pushDistinctArray: (sArray: any[], array: any[]) => void;
}
export default _array;

138
typescript/core/func/date.ts

@ -13,95 +13,81 @@ export type _Date = {
_MD: number[];
_OFFSET: number[];
}
/**
*
*/
export type _getTimezone = (date: Date) => string;
/**
*
*/
export type _getMonthDays = (date: Date, month: number) => string;
export type _date = {
/**
*
*/
export type _getLastDateOfMonth = (data: Date) => Date;
/**
*
*/
getTimezone: (date: Date) => string;
/**
*
*/
export type _getDayOfYear = (data: Date) => number;
/**
*
*/
getMonthDays: (date: Date, month: number) => number;
/**
*
*/
export type _getWeekNumber = (data: Date) => number;
/**
*
*/
getLastDateOfMonth: (data: Date) => Date;
/**
*
*/
export type _getQuarter = (date: Date) => number;
/**
*
*/
getDayOfYear: (data: Date) => number;
/**
*
*/
export type _getOffsetDate = (date: Date, offset: number) => Date;
/**
*
*/
getWeekNumber: (data: Date) => number;
/**
*
*/
export type _getOffsetQuarter = (date: Date, n: number) => Date;
/**
*
*/
getQuarter: (date: Date) => number;
/**
*
*/
export type _getQuarterStartMonth = (date: Date) => number;
/**
*
*/
getOffsetDate: (date: Date, offset: number) => Date;
/**
*
*/
export type _getQuarterStartDate = (date: Date) => number;
/**
*
*/
getOffsetQuarter: (date: Date, n: number) => Date;
/**
*
*/
export type _getQuarterEndDate = (date: Date) => number;
/**
*
*/
getQuarterStartMonth: (date: Date) => number;
/**
* n个月之前或之后的日
*/
export type _getOffsetMonth = (date: Date, n: number) => Date;
/**
*
*/
getQuarterStartDate: (date: Date) => number;
/**
*
*/
export type _getWeekStartDate = (date: Date) => Date;
/**
*
*/
getQuarterEndDate: (date: Date) => number;
/**
*
*/
export type _getWeekEndDate = (date: Date) => Date;
/**
* n个月之前或之后的日
*/
getOffsetMonth: (date: Date, n: number) => Date;
/**
*
*/
export type _print = (date: Date, str: string) => string;
/**
*
*/
getWeekStartDate: (date: Date) => Date;
export type _date = {
getTimezone: _getTimezone;
getMonthDays: _getMonthDays;
getLastDateOfMonth: _getLastDateOfMonth;
getDayOfYear: _getDayOfYear;
getWeekNumber: _getWeekNumber;
getQuarter: _getQuarter;
getOffsetDate: _getOffsetDate;
getOffsetQuarter: _getOffsetQuarter;
getQuarterStartMonth: _getQuarterStartMonth;
getQuarterStartDate: _getQuarterStartDate;
getQuarterEndDate: _getQuarterEndDate;
getOffsetMonth: _getOffsetMonth;
getWeekStartDate: _getWeekStartDate;
getWeekEndDate: _getWeekEndDate;
print: _print;
/**
*
*/
getWeekEndDate: (date: Date) => Date;
/**
*
*/
print: (date: Date, str: string) => string;
}

59
typescript/core/func/function.ts

@ -1,37 +1,32 @@
/**
*
* @param array
* @param name
* @return
*/
export type _createDistinctName = (array: any[], name: string) => string;
export type _function = {
/**
*
* @param items
* @param keyword
* @param param
*/
export type _getSearchResult = (items: any, keyword: any, param?: string) => { find: any[], match: any[] }
/**
*
* @param array
* @param name
* @return
*/
createDistinctName: (array: any[], name: string) => string;
/**
* A执行之前执行方法B
* @param sFunc A
* @param func B
*/
export type _beforeFunc = (sFunc: Function, func: Function) => Function;
/**
*
* @param items
* @param keyword
* @param param
*/
getSearchResult: (items: any, keyword: any, param?: string) => { find: any[], match: any[] };
/**
* A执行之执行方法B
* @param sFunc A
* @param func B
*/
export type _afterFunc = (sFunc: Function, func: Function) => Function;
/**
* A执行之执行方法B
* @param sFunc A
* @param func B
*/
beforeFunc: (sFunc: Function, func: Function) => Function;
type _function = {
createDistinctName: _createDistinctName;
getSearchResult: _getSearchResult;
beforeFunc: _beforeFunc;
afterFunc: _afterFunc;
/**
* A执行之后执行方法B
* @param sFunc A
* @param func B
*/
afterFunc: (sFunc: Function, func: Function) => Function;
}
export default _function;

12
typescript/core/func/index.ts

@ -1,9 +1,9 @@
import _array from "./array";
import _string from "./string";
import _number from "./number";
import _function from "./function";
import { _Date } from "./date";
import { _array } from "./array";
import { _string } from "./string";
import { _number } from "./number";
import { _function } from "./function";
import { _Date, _date } from "./date";
export interface _func extends _array, _string, _number, _function {
export interface _func extends _array, _string, _number, _function, _date {
Date: _Date;
}

64
typescript/core/func/number.ts

@ -1,40 +1,34 @@
export type _number = {
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export type _add = (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
add: (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export type _sub = (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
sub: (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export type _mul = (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
mul: (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export type _div = (num: number, arg: number) => number;
type _number = {
add: _add;
sub: _sub;
mul: _mul;
div: _div;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
div: (num: number, arg: number) => number;
}
export default _number

111
typescript/core/func/string.ts

@ -1,66 +1,59 @@
/**
*
* @param str source字符串
* @param {String} startTag
* @return {Boolean} truefalse
*/
export type _startWith = (str: string, startTag: string) => boolean;
export type _string = {
/**
*
* @param str source字符串
* @param {String} startTag
* @return {Boolean} truefalse
*/
startWith: (str: string, startTag: string) => boolean;
/**
*
* @param str source字符串
* @param {String} endTag
* @return {Boolean} truefalse
*/
export type _endWith = (str: string, endTag: string) => boolean;
/**
*
* @param str source字符串
* @param {String} endTag
* @return {Boolean} truefalse
*/
endWith: (str: string, endTag: string) => boolean;
/**
* url中指定名字的参数
* @param str source字符串
* @param {String} name
* @return {String}
*/
export type _getQuery = (str: string, name: string) => string|null;
/**
* url中指定名字的参数
* @param str source字符串
* @param {String} name
* @return {String}
*/
getQuery: (str: string, name: string) => string|null;
/**
* url加上给定的参数
* @param str source字符串
* @param {Object} paras
* @return {String} url
*/
export type _appendQuery = (str: string, paras: {[key: string]: string|number}) => string;
/**
* url加上给定的参数
* @param str source字符串
* @param {Object} paras
* @return {String} url
*/
appendQuery: (str: string, paras: {[key: string]: string|number}) => string;
/**
*
* @param str source字符串
* @param {String} s1
* @param {String} s2
* @returns {String}
*/
export type _replaceAll = (str: string, s1: string, s2: string) => string;
/**
*
* @param str source字符串
* @param {String} s1
* @param {String} s2
* @returns {String}
*/
replaceAll: (str: string, s1: string, s2: string) => string;
/**
*
* @param str source字符串
* @param {String} start
* @returns {String}
*/
export type _perfectStart = (str: string, start: string) => string;
/**
*
* @param str source字符串
* @param {String} start
* @returns {String}
*/
perfectStart: (str: string, start: string) => string;
/**
*
* @param str source字符串
* @param {String} sub
* @return {Number[]}
*/
export type _allIndexOf = (str: string, sub: string) => number[];
type _string = {
startWith: _startWith;
endWith: _endWith;
getQuery: _getQuery;
appendQuery: _appendQuery;
replaceAll: _replaceAll;
perfectStart: _perfectStart;
allIndexOf: _allIndexOf;
/**
*
* @param str source字符串
* @param {String} sub
* @return {Number[]}
*/
allIndexOf: (str: string, sub: string) => number[];
}
export default _string

132
typescript/core/var.ts

@ -0,0 +1,132 @@
export interface _var {
MAX: number;
MIN: number;
EVENT_RESPONSE_TIME: number;
zIndex_layer: number;
zIndex_popover: number;
zIndex_popup: number;
zIndex_masker: number;
zIndex_tip: number;
emptyStr: string;
emptyFn: Function;
empty: null,
Key: {
48: string;
49: string;
50: string;
51: string;
52: string;
53: string;
54: string;
55: string;
56: string;
57: string;
65: string;
66: string;
67: string;
68: string;
69: string;
70: string;
71: string;
72: string;
73: string;
74: string;
75: string;
76: string;
77: string;
78: string;
79: string;
80: string;
81: string;
82: string;
83: string;
84: string;
85: string;
86: string;
87: string;
88: string;
89: string;
90: string;
96: string;
97: string;
98: string;
99: string;
100: string;
101: string;
102: string;
103: string;
104: string;
105: string;
106: string;
107: string;
109: string;
110: string;
111: string;
},
KeyCode: {
BACKSPACE: number;
COMMA: number;
DELETE: number;
DOWN: number;
END: number;
ENTER: number;
ESCAPE: number;
HOME: number;
LEFT: number;
NUMPAD_ADD: number;
NUMPAD_DECIMAL: number;
NUMPAD_DIVIDE: number;
NUMPAD_ENTER: number;
NUMPAD_MULTIPLY: number;
NUMPAD_SUBTRACT: number;
PAGE_DOWN: number;
PAGE_UP: number;
PERIOD: number;
RIGHT: number;
SPACE: number;
TAB: number;
UP: number;
},
Status: {
SUCCESS: number;
WRONG: number;
START: number;
END: number;
WAITING: number;
READY: number;
RUNNING: number;
OUTOFBOUNDS: number;
NULL: number;
},
Direction: {
Top: string;
Bottom: string;
Left: string;
Right: string;
Custom: string;
},
Axis: {
Vertical: string;
Horizontal: string;
},
Selection: {
Default: number;
None: number;
Single: number;
Multi: number;
All: number;
},
HorizontalAlign: {
Left: string;
Right: string;
Center: string;
Stretch: string;
},
VerticalAlign: {
Middle: string;
Top: string;
Bottom: string;
Stretch: string;
},
StartOfWeek: number;
}

5
typescript/core/wrapper/layout/middle/middle.float.center.ts

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

41
typescript/index.ts

@ -36,6 +36,7 @@ import * as decorator from "./core/decorator/decorator";
import { _func } from "./core/func";
import { _i18n } from "./core/i18n";
import { _Plugin } from "./core/plugin";
import { _var } from "./core/var";
import { OB, _OB } from "./core/ob";
import { _Widget, _WidgetStatic, Widget } from "./core/widget";
import { _inject } from "./core/inject";
@ -126,8 +127,20 @@ import { AllCountPager } from "./case/pager/pager.all.count";
import { PopupView } from "./base/layer/layer.popup";
import { BubblePopupView, BubblePopupBarView, TextBubblePopupBarView } from "./case/combo/bubblecombo/popup.bubble";
import { ArrowTreeGroupNodeCheckbox } from "./case/checkbox/check.arrownode";
import { NumberInterval } from "./widget/numberinterval/numberinterval";
import { DynamicYearQuarterCombo } from "./widget/yearquarter/combo.yearquarter";
import { DynamicYearCombo } from "./widget/year/combo.year";
import { IntervalSlider } from "./widget/intervalslider/intervalslider";
import { MultiSelectInsertList } from "./widget/multiselectlist/multiselectlist.insert";
import { YearMonthInterval } from "./widget/yearmonthinterval/yearmonthinterval";
import { NumberEditor } from "./widget/numbereditor/numbereditor";
import { TextValueCheckCombo } from "./case/combo/textvaluecheckcombo/combo.textvaluecheck";
import { LinearSegment } from "./case/linersegment/linear.segment";
import { Img } from "./base/single/img/img";
import { EditorIconCheckCombo } from "./case/combo/editoriconcheckcombo/combo.editiconcheck";
import { IconTextValueCombo } from './case/combo/icontextvaluecombo/combo.icontextvalue';
import { ListView } from './base/list/listview';
import { FloatCenterLayout } from './core/wrapper/layout/middle/middle.float.center';
type ClassConstructor<T extends {}> = T & {
@ -137,7 +150,7 @@ type ClassConstructor<T extends {}> = T & {
readonly xtype: string;
}
export interface BI extends _func, _i18n, _base, _inject {
export interface BI extends _func, _i18n, _base, _inject, _var {
OB: ClassConstructor<_OB>;
Plugin: _Plugin;
Widget: ClassConstructor<_Widget> & _WidgetStatic;
@ -269,8 +282,20 @@ export interface BI extends _func, _i18n, _base, _inject {
BubblePopupBarView: typeof BubblePopupBarView;
TextBubblePopupBarView: typeof TextBubblePopupBarView;
ArrowTreeGroupNodeCheckbox: typeof ArrowTreeGroupNodeCheckbox;
NumberInterval: typeof NumberInterval;
DynamicYearQuarterCombo: typeof DynamicYearQuarterCombo;
DynamicYearCombo: typeof DynamicYearCombo;
IntervalSlider: typeof IntervalSlider;
MultiSelectInsertList: typeof MultiSelectInsertList;
YearMonthInterval: typeof YearMonthInterval;
TextValueCheckCombo: typeof TextValueCheckCombo;
NumberEditor: typeof NumberEditor,
NumberEditor: typeof NumberEditor;
LinearSegment: typeof LinearSegment;
Img: typeof Img;
EditorIconCheckCombo: typeof EditorIconCheckCombo;
IconTextValueCombo: typeof IconTextValueCombo;
ListView: typeof ListView;
FloatCenterLayout: typeof FloatCenterLayout;
}
export default {
@ -406,6 +431,18 @@ export {
BubblePopupBarView,
TextBubblePopupBarView,
ArrowTreeGroupNodeCheckbox,
NumberInterval,
DynamicYearQuarterCombo,
DynamicYearCombo,
IntervalSlider,
MultiSelectInsertList,
YearMonthInterval,
TextValueCheckCombo,
NumberEditor,
LinearSegment,
Img,
EditorIconCheckCombo,
IconTextValueCombo,
ListView,
FloatCenterLayout,
};

22
typescript/widget/intervalslider/intervalslider.ts

@ -0,0 +1,22 @@
import { Single } from '../../base/single/single';
export declare class IntervalSlider extends Single {
static xtype: string;
static EVENT_CHANGE: string;
max: number;
min: number;
getValue(): {
min: number;
max: number;
}
setMinAndMax(v: {
min: number;
max: number;
}): void;
reset(): void
}

12
typescript/widget/multiselectlist/multiselectlist.insert.ts

@ -0,0 +1,12 @@
import { Single } from '../../base/single/single';
export declare class MultiSelectInsertList extends Single {
static xtype: string;
static REQ_GET_DATA_LENGTH: 1;
static REQ_GET_ALL_DATA: -1;
static EVENT_CHANGE: string;
isAllSelected(): boolean;
resize(): void;
}

27
typescript/widget/numberinterval/numberinterval.ts

@ -0,0 +1,27 @@
import { Single } from '../../base/single/single';
export declare class NumberInterval extends Single {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_CONFIRM: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
isStateValid(): boolean;
setMinEnable(v: boolean): void;
setCloseMinEnable(v: boolean): void;
setMaxEnable(v: boolean): void;
setCloseMaxEnable(v: boolean): void;
showNumTip(): void;
hideNumTip(): void;
setNumTip(v: string): void;
getNumTip(): void;
}

7
typescript/widget/year/combo.year.ts

@ -0,0 +1,7 @@
import { Widget } from "../../core/widget";
export declare class DynamicYearCombo extends Widget {
static xtype: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
}

14
typescript/widget/yearmonthinterval/yearmonthinterval.ts

@ -0,0 +1,14 @@
import { Single } from '../../base/single/single';
export declare class YearMonthInterval extends Single {
static xtype: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
getValue(): {
start: number;
end: number;
};
}

7
typescript/widget/yearquarter/combo.yearquarter.ts

@ -0,0 +1,7 @@
import { Widget } from "../../core/widget";
export declare class DynamicYearQuarterCombo extends Widget {
static xtype: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
}
Loading…
Cancel
Save