Browse Source

auto upgrade version to 2.0.20201221151200

master
data 4 years ago
parent
commit
d9b10c11e7
  1. 2
      dist/2.0/fineui.css
  2. 2
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.ie.min.js.map
  4. 2
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.js.map
  6. 2
      dist/2.0/fineui.min.css
  7. 2
      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. 2
      dist/core.js
  13. 2
      dist/core.js.map
  14. 2
      dist/demo.css
  15. 2
      dist/demo.js
  16. 2
      dist/demo.js.map
  17. 2
      dist/fineui.css
  18. 2
      dist/fineui.ie.min.js
  19. 2
      dist/fineui.ie.min.js.map
  20. 2
      dist/fineui.js
  21. 2
      dist/fineui.js.map
  22. 2
      dist/fineui.min.css
  23. 2
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 2
      dist/fineui_without_jquery_polyfill.js
  26. 2
      dist/fineui_without_jquery_polyfill.js.map
  27. 2
      dist/font.css
  28. 11
      dist/lib/core/base.d.ts
  29. 12
      dist/lib/core/func/array.d.ts
  30. 135
      dist/lib/core/func/date.d.ts
  31. 65
      dist/lib/core/func/function.d.ts
  32. 12
      dist/lib/core/func/index.d.ts
  33. 63
      dist/lib/core/func/number.d.ts
  34. 114
      dist/lib/core/func/string.d.ts
  35. 132
      dist/lib/core/var.d.ts
  36. 3
      dist/lib/index.d.ts
  37. 2
      dist/resource.css
  38. 2
      dist/utils.js
  39. 2
      dist/utils.min.js
  40. 2
      package.json

2
dist/2.0/fineui.css vendored

File diff suppressed because one or more lines are too long

2
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

2
dist/2.0/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-12-21 14:20:25 */
/*! time: 2020-12-21 15:10:22 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};

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

2
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

2
dist/core.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-12-21 14:20:25 */
/*! time: 2020-12-21 15:10:22 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};

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

2
dist/demo.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-12-21 14:20:25 */
/*! time: 2020-12-21 15:10:22 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};

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

2
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

2
dist/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-12-21 14:20:25 */
/*! time: 2020-12-21 15:10:22 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};

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

2
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

2
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-12-21 14:20:25 */
/*! time: 2020-12-21 15:10:22 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};

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

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

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

3
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";
@ -143,7 +144,7 @@ declare type ClassConstructor<T extends {}> = 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;

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

2
dist/utils.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-12-21 14:20:25 */
/*! time: 2020-12-21 15:10:22 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};

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

Loading…
Cancel
Save