utils-lib-js 2.0.23 → 2.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/animate.d.ts +25 -0
- package/dist/bundle/array.d.ts +12 -0
- package/dist/bundle/base.d.ts +17 -0
- package/dist/bundle/element.d.ts +6 -0
- package/dist/bundle/event.d.ts +14 -0
- package/dist/bundle/function.d.ts +13 -0
- package/dist/bundle/index.d.ts +77 -0
- package/dist/bundle/index.js +97 -0
- package/dist/bundle/log.d.ts +8 -0
- package/dist/bundle/object.d.ts +36 -0
- package/dist/bundle/static.d.ts +16 -0
- package/dist/bundle/storage.d.ts +9 -0
- package/dist/bundle/types.d.ts +73 -0
- package/dist/cjs/animate.d.ts +25 -0
- package/dist/cjs/array.d.ts +12 -0
- package/dist/cjs/base.d.ts +17 -0
- package/dist/cjs/element.d.ts +6 -0
- package/dist/cjs/event.d.ts +14 -0
- package/dist/cjs/function.d.ts +13 -0
- package/dist/cjs/index.d.ts +77 -0
- package/dist/cjs/index.js +97 -0
- package/dist/cjs/log.d.ts +8 -0
- package/dist/cjs/object.d.ts +36 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/static.d.ts +16 -0
- package/dist/cjs/storage.d.ts +9 -0
- package/dist/cjs/types.d.ts +73 -0
- package/dist/esm/animate.d.ts +25 -0
- package/dist/esm/array.d.ts +12 -0
- package/dist/esm/base.d.ts +17 -0
- package/dist/esm/element.d.ts +6 -0
- package/dist/esm/event.d.ts +14 -0
- package/dist/esm/function.d.ts +13 -0
- package/dist/esm/index.d.ts +77 -0
- package/dist/esm/index.js +97 -0
- package/dist/esm/log.d.ts +8 -0
- package/dist/esm/object.d.ts +36 -0
- package/dist/esm/static.d.ts +16 -0
- package/dist/esm/storage.d.ts +9 -0
- package/dist/esm/types.d.ts +73 -0
- package/dist/umd/animate.d.ts +25 -0
- package/dist/umd/array.d.ts +12 -0
- package/dist/umd/base.d.ts +17 -0
- package/dist/umd/element.d.ts +6 -0
- package/dist/umd/event.d.ts +14 -0
- package/dist/umd/function.d.ts +13 -0
- package/dist/umd/index.d.ts +77 -0
- package/dist/umd/index.js +97 -0
- package/dist/umd/log.d.ts +8 -0
- package/dist/umd/object.d.ts +36 -0
- package/dist/umd/static.d.ts +16 -0
- package/dist/umd/storage.d.ts +9 -0
- package/dist/umd/types.d.ts +73 -0
- package/package.json +2 -2
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IAnimateFrame } from "./types";
|
|
2
|
+
export declare class AnimateFrame implements IAnimateFrame {
|
|
3
|
+
fn: any;
|
|
4
|
+
id: any;
|
|
5
|
+
duration: number;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
constructor(fn: any);
|
|
8
|
+
start(duration: any): any;
|
|
9
|
+
stop(id?: any): void;
|
|
10
|
+
animate(timer?: number): any;
|
|
11
|
+
}
|
|
12
|
+
export declare function quadraticBezier(_x: number, _y: number, t: number): number[];
|
|
13
|
+
export declare function cubicBezier(_x1: number, _y1: number, _x2: number, _y2: number, t: number): number[];
|
|
14
|
+
export declare function factorial(n: number): any;
|
|
15
|
+
export declare function combination(n: number, k: number): number;
|
|
16
|
+
export declare function NBezier(points: number[][], t: number): number[];
|
|
17
|
+
declare const _default: {
|
|
18
|
+
AnimateFrame: typeof AnimateFrame;
|
|
19
|
+
quadraticBezier: typeof quadraticBezier;
|
|
20
|
+
cubicBezier: typeof cubicBezier;
|
|
21
|
+
factorial: typeof factorial;
|
|
22
|
+
combination: typeof combination;
|
|
23
|
+
NBezier: typeof NBezier;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IArrayRandom, IArrayUniq, IArrayDemote, IDemoteArray, IArrayLoop } from "./types";
|
|
2
|
+
export declare const arrayRandom: IArrayRandom<any[]>;
|
|
3
|
+
export declare const arrayUniq: IArrayUniq<any[]>;
|
|
4
|
+
export declare const arrayDemote: IArrayDemote<IDemoteArray<any>>;
|
|
5
|
+
export declare const arrayLoop: IArrayLoop;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
arrayRandom: IArrayRandom<any[]>;
|
|
8
|
+
arrayUniq: IArrayUniq<any[]>;
|
|
9
|
+
arrayDemote: IArrayDemote<IDemoteArray<any>>;
|
|
10
|
+
arrayLoop: IArrayLoop;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IRandomNum, IUrlSplit, IUrlJoin, IGetType, IGetTypeByList } from "./types";
|
|
2
|
+
import { types } from "./static";
|
|
3
|
+
export declare const randomNum: IRandomNum;
|
|
4
|
+
export declare const urlSplit: IUrlSplit;
|
|
5
|
+
export declare const urlJoin: IUrlJoin;
|
|
6
|
+
export declare const getType: IGetType<types>;
|
|
7
|
+
export declare const getTypeByList: IGetTypeByList;
|
|
8
|
+
export declare const toKebabCase: (camelCase: string, separator?: string) => string;
|
|
9
|
+
declare const _default: {
|
|
10
|
+
randomNum: IRandomNum;
|
|
11
|
+
urlSplit: IUrlSplit;
|
|
12
|
+
urlJoin: IUrlJoin;
|
|
13
|
+
getType: IGetType<types>;
|
|
14
|
+
getTypeByList: IGetTypeByList;
|
|
15
|
+
toKebabCase: (camelCase: string, separator?: string) => string;
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IAddHandler, IStopBubble, IStopDefault, IRemoveHandler, IDispatchEvent } from "./types";
|
|
2
|
+
export declare const addHandler: IAddHandler;
|
|
3
|
+
export declare const stopBubble: IStopBubble;
|
|
4
|
+
export declare const stopDefault: IStopDefault;
|
|
5
|
+
export declare const removeHandler: IRemoveHandler;
|
|
6
|
+
export declare const dispatchEvent: IDispatchEvent;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
addHandler: IAddHandler;
|
|
9
|
+
stopBubble: IStopBubble;
|
|
10
|
+
stopDefault: IStopDefault;
|
|
11
|
+
removeHandler: IRemoveHandler;
|
|
12
|
+
dispatchEvent: IDispatchEvent;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ICatchAwait, IThrottle, IDebounce, IDefer, IRequestFrame } from "./types";
|
|
2
|
+
export declare const throttle: IThrottle;
|
|
3
|
+
export declare const debounce: IDebounce;
|
|
4
|
+
export declare const defer: IDefer;
|
|
5
|
+
export declare const catchAwait: ICatchAwait<Promise<any>>;
|
|
6
|
+
export declare const requestFrame: IRequestFrame;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
throttle: IThrottle;
|
|
9
|
+
debounce: IDebounce;
|
|
10
|
+
defer: IDefer;
|
|
11
|
+
catchAwait: ICatchAwait<Promise<any>>;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export * from "./object";
|
|
2
|
+
export * from "./base";
|
|
3
|
+
export * from "./array";
|
|
4
|
+
export * from "./function";
|
|
5
|
+
export * from "./element";
|
|
6
|
+
export * from "./static";
|
|
7
|
+
export * from "./types";
|
|
8
|
+
export * from "./event";
|
|
9
|
+
export * from "./storage";
|
|
10
|
+
export * from "./log";
|
|
11
|
+
export * from "./animate";
|
|
12
|
+
export * from "event-message-center";
|
|
13
|
+
export * from "task-queue-lib";
|
|
14
|
+
export * from "js-request-lib";
|
|
15
|
+
export * from "timer-manager-lib";
|
|
16
|
+
export * from "js-log-lib";
|
|
17
|
+
import eventMessageCenter from "event-message-center";
|
|
18
|
+
import taskQueueLib from "task-queue-lib";
|
|
19
|
+
import JSRequest from "js-request-lib";
|
|
20
|
+
import TimerManager from "timer-manager-lib";
|
|
21
|
+
import JSLogLib from "js-log-lib";
|
|
22
|
+
declare const _default: {
|
|
23
|
+
eventMessageCenter: typeof eventMessageCenter;
|
|
24
|
+
taskQueueLib: typeof taskQueueLib;
|
|
25
|
+
JSRequest: typeof JSRequest;
|
|
26
|
+
TimerManager: typeof TimerManager;
|
|
27
|
+
JSLogLib: typeof JSLogLib;
|
|
28
|
+
AnimateFrame: typeof import("./animate").AnimateFrame;
|
|
29
|
+
quadraticBezier: typeof import("./animate").quadraticBezier;
|
|
30
|
+
cubicBezier: typeof import("./animate").cubicBezier;
|
|
31
|
+
factorial: typeof import("./animate").factorial;
|
|
32
|
+
combination: typeof import("./animate").combination;
|
|
33
|
+
NBezier: typeof import("./animate").NBezier;
|
|
34
|
+
logOneLine: import("./types").ILogOneLine;
|
|
35
|
+
logLoop: import("./types").ILogLoop;
|
|
36
|
+
setStorage: (key: string, val: any) => void;
|
|
37
|
+
getStorage: (key: string) => any;
|
|
38
|
+
clearStorage: (key: string) => void;
|
|
39
|
+
addHandler: import("./types").IAddHandler;
|
|
40
|
+
stopBubble: import("./types").IStopBubble;
|
|
41
|
+
stopDefault: import("./types").IStopDefault;
|
|
42
|
+
removeHandler: import("./types").IRemoveHandler;
|
|
43
|
+
dispatchEvent: import("./types").IDispatchEvent;
|
|
44
|
+
types: typeof import("./static").types;
|
|
45
|
+
createElement: import("./types").ICreateElement<HTMLElement>;
|
|
46
|
+
throttle: import("./types").IThrottle;
|
|
47
|
+
debounce: import("./types").IDebounce;
|
|
48
|
+
defer: import("./types").IDefer;
|
|
49
|
+
catchAwait: import("./types").ICatchAwait<Promise<any>>;
|
|
50
|
+
arrayRandom: import("./types").IArrayRandom<any[]>;
|
|
51
|
+
arrayUniq: import("./types").IArrayUniq<any[]>;
|
|
52
|
+
arrayDemote: import("./types").IArrayDemote<import("./types").IDemoteArray<any>>;
|
|
53
|
+
arrayLoop: import("./types").IArrayLoop;
|
|
54
|
+
randomNum: import("./types").IRandomNum;
|
|
55
|
+
urlSplit: import("./types").IUrlSplit;
|
|
56
|
+
urlJoin: import("./types").IUrlJoin;
|
|
57
|
+
getType: import("./types").IGetType<import("./static").types>;
|
|
58
|
+
getTypeByList: import("./types").IGetTypeByList;
|
|
59
|
+
toKebabCase: (camelCase: string, separator?: string) => string;
|
|
60
|
+
getValue: import("./types").IGetValue;
|
|
61
|
+
setValue: import("./types").ISetValue;
|
|
62
|
+
mixIn: import("./types").IMixIn;
|
|
63
|
+
enumInversion: import("./types").IEnumInversion;
|
|
64
|
+
isNotObject: (source: any, type: any) => boolean;
|
|
65
|
+
cloneDeep: import("./types").ICloneDeep;
|
|
66
|
+
createObjectVariable: import("./types").ICreateObjectVariable;
|
|
67
|
+
createObject: import("./types").ICreateObject;
|
|
68
|
+
inherit: import("./types").IInherit;
|
|
69
|
+
getInstance: import("./types").IGetInstance;
|
|
70
|
+
classDecorator: import("./types").IClassDecorator;
|
|
71
|
+
stringToJson: import("./types").IStringToJson;
|
|
72
|
+
jsonToString: import("./types").IJsonToString;
|
|
73
|
+
isWindow: (win: any) => boolean;
|
|
74
|
+
emptyObject: (init?: import("./types").IObject<unknown>) => any;
|
|
75
|
+
isEmptyObject: (object?: import("./types").IObject<unknown>) => boolean;
|
|
76
|
+
};
|
|
77
|
+
export default _default;
|