Browse Source

Merge branch 'master' of ssh://code.fineres.com:7999/~kobi/fineui

es6
Zhenfei.Li 4 years ago
parent
commit
34379aabde
  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. 1101
      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. 1067
      dist/core.js
  13. 2
      dist/core.js.map
  14. 2
      dist/demo.css
  15. 1437
      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. 1105
      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. 157
      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/case/combo/icontextvaluecombo/combo.icontextvalue.d.ts
  30. 13
      dist/lib/core/base.d.ts
  31. 12
      dist/lib/core/func/array.d.ts
  32. 77
      dist/lib/core/func/date.d.ts
  33. 25
      dist/lib/core/func/function.d.ts
  34. 12
      dist/lib/core/func/index.d.ts
  35. 23
      dist/lib/core/func/number.d.ts
  36. 40
      dist/lib/core/func/string.d.ts
  37. 132
      dist/lib/core/var.d.ts
  38. 3
      dist/lib/core/wrapper/layout/layout.flow.d.ts
  39. 4
      dist/lib/core/wrapper/layout/middle/middle.float.center.d.ts
  40. 14
      dist/lib/index.d.ts
  41. 4
      dist/lib/widget/multiselect/multiselect.insert.combo.d.ts
  42. 2
      dist/resource.css
  43. 14
      dist/utils.js
  44. 2
      dist/utils.js.map
  45. 4
      dist/utils.min.js
  46. 2
      dist/utils.min.js.map
  47. 2
      package.json
  48. 16
      src/core/platform/web/jquery/_jquery.js
  49. 9
      typescript/base/list/listview.ts
  50. 8
      typescript/case/combo/icontextvaluecombo/combo.icontextvalue.ts
  51. 20
      typescript/core/base.ts
  52. 15
      typescript/core/func/array.ts
  53. 80
      typescript/core/func/date.ts
  54. 25
      typescript/core/func/function.ts
  55. 12
      typescript/core/func/index.ts
  56. 24
      typescript/core/func/number.ts
  57. 39
      typescript/core/func/string.ts
  58. 132
      typescript/core/var.ts
  59. 4
      typescript/core/wrapper/layout/layout.flow.ts
  60. 5
      typescript/core/wrapper/layout/middle/middle.float.center.ts
  61. 16
      typescript/index.ts
  62. 4
      typescript/widget/multiselect/multiselect.insert.combo.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

1101
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

1067
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

1437
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

1105
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

157
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-12-21 14:20:25 */
/*! time: 2020-12-21 17:30:21 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -82,7 +82,7 @@
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1397);
/******/ 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__) {
@ -67389,6 +67389,12 @@ Object.defineProperty(exports, "FloatLeftLayout", {
return _layout6.FloatLeftLayout;
}
});
Object.defineProperty(exports, "FloatRightLayout", {
enumerable: true,
get: function get() {
return _layout6.FloatRightLayout;
}
});
Object.defineProperty(exports, "CenterAdaptLayout", {
enumerable: true,
get: function get() {
@ -67809,6 +67815,24 @@ Object.defineProperty(exports, "EditorIconCheckCombo", {
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;
var _combo = __webpack_require__(712);
@ -67883,7 +67907,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);
@ -68079,6 +68103,12 @@ 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; }
@ -68495,7 +68525,7 @@ exports.Model = Model;
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 735 */
@ -68504,7 +68534,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 736 */
@ -68513,7 +68543,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 737 */
@ -68522,7 +68552,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 738 */
@ -68549,7 +68579,7 @@ var _single = __webpack_require__(2);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 741 */
@ -68558,7 +68588,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 742 */
@ -68576,7 +68606,7 @@ var _button = __webpack_require__(8);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 744 */
@ -68585,7 +68615,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 745 */
@ -68594,7 +68624,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 746 */
@ -68711,7 +68741,7 @@ var _widget = __webpack_require__(1);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 759 */
@ -68720,7 +68750,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 760 */
@ -68729,7 +68759,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 761 */
@ -68738,7 +68768,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 762 */
@ -68747,7 +68777,7 @@ var _layout = __webpack_require__(7);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 763 */
@ -68909,7 +68939,7 @@ var _single = __webpack_require__(2);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 781 */
@ -68927,7 +68957,7 @@ var _widget = __webpack_require__(1);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 783 */
@ -69044,7 +69074,7 @@ var _single = __webpack_require__(2);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 796 */
@ -69143,7 +69173,7 @@ var _button = __webpack_require__(8);
"use strict";
var _layout = __webpack_require__(7);
var _layout = __webpack_require__(3);
/***/ }),
/* 807 */
@ -69310,9 +69340,33 @@ var _single = __webpack_require__(2);
var _widget = __webpack_require__(1);
/***/ }),
/* 825 */,
/* 826 */,
/* 827 */,
/* 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 */,
@ -69360,7 +69414,10 @@ var _widget = __webpack_require__(1);
/* 872 */,
/* 873 */,
/* 874 */,
/* 875 */
/* 875 */,
/* 876 */,
/* 877 */,
/* 878 */
/***/ (function(module, exports) {
;(function () {
@ -69523,17 +69580,17 @@ var _widget = __webpack_require__(1);
/***/ }),
/* 876 */,
/* 877 */,
/* 878 */,
/* 879 */
/* 879 */,
/* 880 */,
/* 881 */,
/* 882 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Fix"] = __webpack_require__(880);
/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Fix"] = __webpack_require__(883);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(17)))
/***/ }),
/* 880 */
/* 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"); } }
@ -71010,8 +71067,8 @@ var _widget = __webpack_require__(1);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(62).setImmediate))
/***/ }),
/* 881 */,
/* 882 */
/* 884 */,
/* 885 */
/***/ (function(module, exports) {
;(function () {
@ -71307,9 +71364,6 @@ var _widget = __webpack_require__(1);
/***/ }),
/* 883 */,
/* 884 */,
/* 885 */,
/* 886 */,
/* 887 */,
/* 888 */,
@ -71524,15 +71578,15 @@ var _widget = __webpack_require__(1);
/* 1097 */,
/* 1098 */,
/* 1099 */,
/* 1100 */
/* 1100 */,
/* 1101 */,
/* 1102 */,
/* 1103 */
/***/ (function(module, exports) {
/***/ }),
/* 1101 */,
/* 1102 */,
/* 1103 */,
/* 1104 */,
/* 1105 */,
/* 1106 */,
@ -71826,7 +71880,10 @@ var _widget = __webpack_require__(1);
/* 1394 */,
/* 1395 */,
/* 1396 */,
/* 1397 */
/* 1397 */,
/* 1398 */,
/* 1399 */,
/* 1400 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(122);
@ -71930,7 +71987,7 @@ __webpack_require__(392);
__webpack_require__(152);
__webpack_require__(153);
__webpack_require__(154);
__webpack_require__(879);
__webpack_require__(882);
__webpack_require__(393);
__webpack_require__(394);
__webpack_require__(395);
@ -72306,9 +72363,9 @@ __webpack_require__(706);
__webpack_require__(707);
__webpack_require__(708);
__webpack_require__(709);
__webpack_require__(882);
__webpack_require__(875);
__webpack_require__(1100);
__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/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;
}

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;

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

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

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

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

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

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

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

@ -1,62 +1,54 @@
/**
export declare type _string = {
/**
*
* @param str source字符串
* @param {String} startTag
* @return {Boolean} truefalse
*/
export declare type _startWith = (str: string, startTag: string) => boolean;
/**
startWith: (str: string, startTag: string) => boolean;
/**
*
* @param str source字符串
* @param {String} endTag
* @return {Boolean} truefalse
*/
export declare type _endWith = (str: string, endTag: string) => boolean;
/**
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;
/**
getQuery: (str: string, name: string) => string | null;
/**
* url加上给定的参数
* @param str source字符串
* @param {Object} paras
* @return {String} url
*/
export declare type _appendQuery = (str: string, paras: {
appendQuery: (str: string, paras: {
[key: string]: string | number;
}) => string;
/**
}) => string;
/**
*
* @param str source字符串
* @param {String} s1
* @param {String} s2
* @returns {String}
*/
export declare type _replaceAll = (str: string, s1: string, s2: string) => string;
/**
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;
/**
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;
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;
}

3
dist/lib/core/wrapper/layout/layout.flow.d.ts vendored

@ -2,3 +2,6 @@ import { Layout } from "../layout";
export declare class FloatLeftLayout extends Layout {
static xtype: string;
}
export declare class FloatRightLayout extends Layout {
static xtype: string;
}

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;
}

14
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";
@ -68,7 +69,7 @@ import { SmallTextEditor } from "./widget/editor/editor.text.small";
import { MultifileEditor } from "./widget/editor/editor.multifile";
import { AbsoluteCenterLayout } from "./core/wrapper/layout/adapt/absolute.center";
import { HorizontalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.horizontal";
import { FloatLeftLayout } from "./core/wrapper/layout/layout.flow";
import { FloatLeftLayout, FloatRightLayout } from "./core/wrapper/layout/layout.flow";
import { CenterAdaptLayout } from "./core/wrapper/layout/adapt/adapt.center";
import { VerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.vertical";
import { MultiSelectInsertCombo } from "./widget/multiselect/multiselect.insert.combo";
@ -137,13 +138,16 @@ import { TextValueCheckCombo } from "./case/combo/textvaluecheckcombo/combo.text
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;
@ -214,6 +218,7 @@ export interface BI extends _func, _i18n, _base, _inject {
AbsoluteCenterLayout: typeof AbsoluteCenterLayout;
HorizontalAdaptLayout: typeof HorizontalAdaptLayout;
FloatLeftLayout: typeof FloatLeftLayout;
FloatRightLayout: typeof FloatRightLayout;
CenterAdaptLayout: typeof CenterAdaptLayout;
VerticalAdaptLayout: typeof VerticalAdaptLayout;
IconButton: typeof IconButton;
@ -286,9 +291,12 @@ export interface BI extends _func, _i18n, _base, _inject {
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, NumberInterval, DynamicYearQuarterCombo, DynamicYearCombo, IntervalSlider, MultiSelectInsertList, YearMonthInterval, TextValueCheckCombo, NumberEditor, LinearSegment, Img, EditorIconCheckCombo, };
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, 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, };

4
dist/lib/widget/multiselect/multiselect.insert.combo.d.ts vendored

@ -29,12 +29,12 @@ export declare class MultiSelectInsertCombo extends Single {
showView(): void;
hideView(): void;
setValue(value?: {
type: string;
type: number;
value: string[];
assist: string[];
}): void;
getValue(): {
type: string;
type: number;
value: string[];
assist: string[];
};

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: 2020-12-21 14:20:25 */
/*! time: 2020-12-21 17:30:21 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -82,12 +82,12 @@
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1222);
/******/ return __webpack_require__(__webpack_require__.s = 1225);
/******/ })
/************************************************************************/
/******/ ({
/***/ 1083:
/***/ 1086:
/***/ (function(module, exports) {
BI.i18n = {
@ -315,7 +315,7 @@ if(_global.BI.prepares == null) {
/***/ }),
/***/ 1222:
/***/ 1225:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(122);
@ -345,8 +345,8 @@ __webpack_require__(139);
__webpack_require__(140);
__webpack_require__(141);
__webpack_require__(142);
__webpack_require__(1083);
__webpack_require__(1223);
__webpack_require__(1086);
__webpack_require__(1226);
__webpack_require__(152);
__webpack_require__(153);
module.exports = __webpack_require__(154);
@ -354,7 +354,7 @@ module.exports = __webpack_require__(154);
/***/ }),
/***/ 1223:
/***/ 1226:
/***/ (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.20201221142205",
"version": "2.0.20201221173230",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

16
src/core/platform/web/jquery/_jquery.js vendored

@ -4520,12 +4520,18 @@
// cleanData must set properties to undefined rather than use removeAttribute
div[ jQuery.expando ] = 1;
support.attributes = !div.getAttribute( jQuery.expando );
// Support: IE <=9 only
// IE <=9 replaces <option> tags with their contents when inserted outside of
// the select element.
div.innerHTML = "<option></option>";
support.option = !!div.lastChild;
} )();
// We have to close these tags to support XHTML (#13200)
var wrapMap = {
option: [ 1, "<select multiple='multiple'>", "</select>" ],
// option: [ 1, "<select multiple='multiple'>", "</select>" ],
legend: [ 1, "<fieldset>", "</fieldset>" ],
area: [ 1, "<map>", "</map>" ],
@ -4541,12 +4547,16 @@
_default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>" ]
};
// Support: IE8-IE9
wrapMap.optgroup = wrapMap.option;
// // Support: IE8-IE9
// wrapMap.optgroup = wrapMap.option;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;
// Support: IE <=9 only
if ( !support.option ) {
wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
}
function getAll( context, tag ) {
var elems, elem,

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/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;
}

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;

80
typescript/core/func/date.ts

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

25
typescript/core/func/function.ts

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

24
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;
add: (num: number, arg: number) => number;
/**
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export type _sub = (num: number, arg: number) => number;
sub: (num: number, arg: number) => number;
/**
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export type _mul = (num: number, arg: number) => 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;
div: (num: number, arg: number) => number;
}
export default _number

39
typescript/core/func/string.ts

@ -1,66 +1,59 @@
/**
export type _string = {
/**
*
* @param str source字符串
* @param {String} startTag
* @return {Boolean} truefalse
*/
export type _startWith = (str: string, startTag: string) => boolean;
startWith: (str: string, startTag: string) => boolean;
/**
/**
*
* @param str source字符串
* @param {String} endTag
* @return {Boolean} truefalse
*/
export type _endWith = (str: string, endTag: string) => boolean;
endWith: (str: string, endTag: string) => boolean;
/**
/**
* url中指定名字的参数
* @param str source字符串
* @param {String} name
* @return {String}
*/
export type _getQuery = (str: string, name: string) => string|null;
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;
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;
replaceAll: (str: string, s1: string, s2: string) => string;
/**
/**
*
* @param str source字符串
* @param {String} start
* @returns {String}
*/
export type _perfectStart = (str: string, start: string) => 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;
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;
}

4
typescript/core/wrapper/layout/layout.flow.ts

@ -3,3 +3,7 @@ import { Layout } from "../layout";
export declare class FloatLeftLayout extends Layout {
static xtype: string;
}
export declare class FloatRightLayout extends Layout {
static xtype: string;
}

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;
}

16
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";
@ -68,7 +69,7 @@ import { SmallTextEditor } from "./widget/editor/editor.text.small";
import { MultifileEditor } from "./widget/editor/editor.multifile";
import { AbsoluteCenterLayout } from "./core/wrapper/layout/adapt/absolute.center";
import { HorizontalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.horizontal";
import { FloatLeftLayout } from "./core/wrapper/layout/layout.flow";
import { FloatLeftLayout, FloatRightLayout } from "./core/wrapper/layout/layout.flow";
import { CenterAdaptLayout } from "./core/wrapper/layout/adapt/adapt.center";
import { VerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.vertical";
import { MultiSelectInsertCombo } from "./widget/multiselect/multiselect.insert.combo";
@ -137,6 +138,9 @@ import { TextValueCheckCombo } from "./case/combo/textvaluecheckcombo/combo.text
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 & {
@ -146,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;
@ -217,6 +221,7 @@ export interface BI extends _func, _i18n, _base, _inject {
AbsoluteCenterLayout: typeof AbsoluteCenterLayout;
HorizontalAdaptLayout: typeof HorizontalAdaptLayout;
FloatLeftLayout: typeof FloatLeftLayout;
FloatRightLayout: typeof FloatRightLayout;
CenterAdaptLayout: typeof CenterAdaptLayout;
VerticalAdaptLayout: typeof VerticalAdaptLayout;
IconButton: typeof IconButton;
@ -289,6 +294,9 @@ export interface BI extends _func, _i18n, _base, _inject {
LinearSegment: typeof LinearSegment;
Img: typeof Img;
EditorIconCheckCombo: typeof EditorIconCheckCombo;
IconTextValueCombo: typeof IconTextValueCombo;
ListView: typeof ListView;
FloatCenterLayout: typeof FloatCenterLayout;
}
export default {
@ -316,6 +324,7 @@ export {
AbsoluteCenterLayout,
HorizontalAdaptLayout,
FloatLeftLayout,
FloatRightLayout,
VerticalLayout,
AbsoluteLayout,
DefaultLayout,
@ -435,4 +444,7 @@ export {
LinearSegment,
Img,
EditorIconCheckCombo,
IconTextValueCombo,
ListView,
FloatCenterLayout,
};

4
typescript/widget/multiselect/multiselect.insert.combo.ts

@ -45,13 +45,13 @@ export declare class MultiSelectInsertCombo extends Single {
hideView(): void;
setValue(value?: {
type: string;
type: number;
value: string[];
assist: string[];
}): void;
getValue(): {
type: string;
type: number;
value: string[];
assist: string[];
};

Loading…
Cancel
Save