axj-ab_ 1.0.9 → 1.0.10
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/index.d.ts +83 -83
- package/index.js +3 -3
- package/package.json +12 -14
package/index.d.ts
CHANGED
@@ -1,83 +1,83 @@
|
|
1
|
-
declare namespace ab_{
|
2
|
-
export const _ver: boolean;
|
3
|
-
export const local: boolean;
|
4
|
-
export const https: boolean;
|
5
|
-
export function fn(fn: any): void;
|
6
|
-
export function header(): void;
|
7
|
-
export function back(): void;
|
8
|
-
export function push(uri: any, title: any): void;
|
9
|
-
export function replace(uri: any, title: any): void;
|
10
|
-
export function open(uri: any, title: any, alone: any): void;
|
11
|
-
export function get(name: any): string;
|
12
|
-
export function empty(o: any): boolean;
|
13
|
-
export function urlRm(url: any, para: any): any;
|
14
|
-
export function urlParas(url: any, paras: any, force: any): any;
|
15
|
-
export function urlPath(): string;
|
16
|
-
export function pathDir(path: any): any;
|
17
|
-
export function route(anch: any, url: any, set: any): any;
|
18
|
-
export function el(el: any): any;
|
19
|
-
export function ver(url: any): any;
|
20
|
-
export function reqCss(href: any, el: any, media: any): void;
|
21
|
-
export function call(...args: any[]): void;
|
22
|
-
export function requires(requires: any, fun: any): void;
|
23
|
-
export function nextT(): number;
|
24
|
-
export function reqJs(js: any, el: any, onload: any, onerror: any): void;
|
25
|
-
export function reqModule(name: any, jses: any, csses: any): (call: any) => void;
|
26
|
-
export function eval(exp: any, $page: any, $this: any, res: any): void;
|
27
|
-
export const $center: {};
|
28
|
-
export function args(args: any, off: any, len: any): any;
|
29
|
-
export function swap(ary: any, from: any, to: any): any;
|
30
|
-
export function reSort(ary: any, from: any, to: any): any;
|
31
|
-
export function resetEl(children: any, fromI: any, toI: any): void;
|
32
|
-
export function swapEl(from: any, to: any): void;
|
33
|
-
export function post(name: any, ...args: any[]): void;
|
34
|
-
export function posts(data: any, i: any, from: any): void;
|
35
|
-
export const langs: {};
|
36
|
-
export function langChange(lang: any, call: any): void;
|
37
|
-
export function lang(key: any, lang: any): void;
|
38
|
-
export function i18n(key: any, par: any): any;
|
39
|
-
export function time(): number;
|
40
|
-
export function humTime(time: any, max: any): string;
|
41
|
-
export function humSize(size: any): string;
|
42
|
-
export function parseJson(json: any): any;
|
43
|
-
export function toJson(obj: any): string;
|
44
|
-
export function tplRender(tpl: any, render: any): any;
|
45
|
-
export function xhrReq(loading: any, headers: any, url: any, posts: any, callback: any, init: any): void;
|
46
|
-
export function uniReq(loading: any, headers: any, url: any, posts: any, files: any, callback: any, init: any): void;
|
47
|
-
export function newReady(last: any): {
|
48
|
-
(back: any): void;
|
49
|
-
start(): void;
|
50
|
-
};
|
51
|
-
export function newStart(run: any): {
|
52
|
-
(inited: any): void;
|
53
|
-
waite(): void;
|
54
|
-
};
|
55
|
-
export function vConsole(): void;
|
56
|
-
export function getStyle($el: any, name: any): any;
|
57
|
-
export function cssSetRest($el: any, names: any): {
|
58
|
-
set: (vals: any) => void;
|
59
|
-
reset: () => void;
|
60
|
-
};
|
61
|
-
export function cloneElement(el: any, tag: any): any;
|
62
|
-
export function objectMerge(to: any, from: any, depth: any): any;
|
63
|
-
export function keepAlive(inst: any): any;
|
64
|
-
export function keepAliveClose(key: any): void;
|
65
|
-
export function keepAliveDel($keepAlive: any, key: any, cKey: any): void;
|
66
|
-
export function getPaths(model: any, paths: any, fromI: any): any;
|
67
|
-
export function setPaths(model: any, val: any, paths: any, fromI: any): any;
|
68
|
-
export function date(time: any): Date;
|
69
|
-
export function formatTime(time: any, fmt: any): any;
|
70
|
-
export function formatDate(date: any, fmt: any): any;
|
71
|
-
export function aName(name: any): string;
|
72
|
-
export function aNameC(a: any, name: any, underline: any): any;
|
73
|
-
export function fullScreen($this: any, $el: any, fun: any): () => void;
|
74
|
-
export function cvsVal(val: any, cHead: any, cEnd: any): any;
|
75
|
-
export function downloadTxt(txt: any, name: any, bom: any): void;
|
76
|
-
export function funTimer(fun: any): {
|
77
|
-
start: (interval: any) => void;
|
78
|
-
stop: () => void;
|
79
|
-
};
|
80
|
-
export function loadState(bind: any, path: any, target: any, props: any): boolean;
|
81
|
-
export function saveState(bind: any, path: any, target: any, props: any): void;
|
82
|
-
}
|
83
|
-
export default ab_
|
1
|
+
declare namespace ab_{
|
2
|
+
export const _ver: boolean;
|
3
|
+
export const local: boolean;
|
4
|
+
export const https: boolean;
|
5
|
+
export function fn(fn: any): void;
|
6
|
+
export function header(): void;
|
7
|
+
export function back(): void;
|
8
|
+
export function push(uri: any, title: any): void;
|
9
|
+
export function replace(uri: any, title: any): void;
|
10
|
+
export function open(uri: any, title: any, alone: any): void;
|
11
|
+
export function get(name: any): string;
|
12
|
+
export function empty(o: any): boolean;
|
13
|
+
export function urlRm(url: any, para: any): any;
|
14
|
+
export function urlParas(url: any, paras: any, force: any): any;
|
15
|
+
export function urlPath(): string;
|
16
|
+
export function pathDir(path: any): any;
|
17
|
+
export function route(anch: any, url: any, set: any): any;
|
18
|
+
export function el(el: any): any;
|
19
|
+
export function ver(url: any): any;
|
20
|
+
export function reqCss(href: any, el: any, media: any): void;
|
21
|
+
export function call(...args: any[]): void;
|
22
|
+
export function requires(requires: any, fun: any): void;
|
23
|
+
export function nextT(): number;
|
24
|
+
export function reqJs(js: any, el: any, onload: any, onerror: any): void;
|
25
|
+
export function reqModule(name: any, jses: any, csses: any): (call: any) => void;
|
26
|
+
export function eval(exp: any, $page: any, $this: any, res: any): void;
|
27
|
+
export const $center: {};
|
28
|
+
export function args(args: any, off: any, len: any): any;
|
29
|
+
export function swap(ary: any, from: any, to: any): any;
|
30
|
+
export function reSort(ary: any, from: any, to: any): any;
|
31
|
+
export function resetEl(children: any, fromI: any, toI: any): void;
|
32
|
+
export function swapEl(from: any, to: any): void;
|
33
|
+
export function post(name: any, ...args: any[]): void;
|
34
|
+
export function posts(data: any, i: any, from: any): void;
|
35
|
+
export const langs: {};
|
36
|
+
export function langChange(lang: any, call: any): void;
|
37
|
+
export function lang(key: any, lang: any): void;
|
38
|
+
export function i18n(key: any, par: any): any;
|
39
|
+
export function time(): number;
|
40
|
+
export function humTime(time: any, max: any): string;
|
41
|
+
export function humSize(size: any): string;
|
42
|
+
export function parseJson(json: any): any;
|
43
|
+
export function toJson(obj: any): string;
|
44
|
+
export function tplRender(tpl: any, render: any): any;
|
45
|
+
export function xhrReq(loading: any, headers: any, url: any, posts: any, callback: any, init: any): void;
|
46
|
+
export function uniReq(loading: any, headers: any, url: any, posts: any, files: any, callback: any, init: any): void;
|
47
|
+
export function newReady(last: any): {
|
48
|
+
(back: any): void;
|
49
|
+
start(): void;
|
50
|
+
};
|
51
|
+
export function newStart(run: any): {
|
52
|
+
(inited: any): void;
|
53
|
+
waite(): void;
|
54
|
+
};
|
55
|
+
export function vConsole(): void;
|
56
|
+
export function getStyle($el: any, name: any): any;
|
57
|
+
export function cssSetRest($el: any, names: any): {
|
58
|
+
set: (vals: any) => void;
|
59
|
+
reset: () => void;
|
60
|
+
};
|
61
|
+
export function cloneElement(el: any, tag: any): any;
|
62
|
+
export function objectMerge(to: any, from: any, depth: any): any;
|
63
|
+
export function keepAlive(inst: any): any;
|
64
|
+
export function keepAliveClose(key: any): void;
|
65
|
+
export function keepAliveDel($keepAlive: any, key: any, cKey: any): void;
|
66
|
+
export function getPaths(model: any, paths: any, fromI: any): any;
|
67
|
+
export function setPaths(model: any, val: any, paths: any, fromI: any): any;
|
68
|
+
export function date(time: any): Date;
|
69
|
+
export function formatTime(time: any, fmt: any): any;
|
70
|
+
export function formatDate(date: any, fmt: any): any;
|
71
|
+
export function aName(name: any): string;
|
72
|
+
export function aNameC(a: any, name: any, underline: any): any;
|
73
|
+
export function fullScreen($this: any, $el: any, fun: any): () => void;
|
74
|
+
export function cvsVal(val: any, cHead: any, cEnd: any): any;
|
75
|
+
export function downloadTxt(txt: any, name: any, bom: any): void;
|
76
|
+
export function funTimer(fun: any): {
|
77
|
+
start: (interval: any) => void;
|
78
|
+
stop: () => void;
|
79
|
+
};
|
80
|
+
export function loadState(bind: any, path: any, target: any, props: any): boolean;
|
81
|
+
export function saveState(bind: any, path: any, target: any, props: any): void;
|
82
|
+
}
|
83
|
+
export default ab_
|
package/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
2
|
+
__assign = Object.assign || function (t) {
|
3
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
4
|
s = arguments[i];
|
5
5
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
@@ -234,7 +234,7 @@ var ab_ = {
|
|
234
234
|
reqJs: function (js, el, onload, onerror) {
|
235
235
|
var script = document.createElement('script');
|
236
236
|
script.type = 'text/javascript';
|
237
|
-
if (
|
237
|
+
if (onload) {
|
238
238
|
if (script.readyState !== undefined) {
|
239
239
|
//IE
|
240
240
|
if (onload || onerror) {
|
@@ -255,7 +255,7 @@ var ab_ = {
|
|
255
255
|
}
|
256
256
|
}
|
257
257
|
else { //Other
|
258
|
-
onload && (script.onload =
|
258
|
+
onload && (script.onload = onload);
|
259
259
|
onerror && (script.onerror = onerror);
|
260
260
|
}
|
261
261
|
}
|
package/package.json
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
{
|
2
|
-
"name": "axj-ab_",
|
3
|
-
"type": "commonjs",
|
4
|
-
"version": "1.0.
|
5
|
-
"description": "",
|
6
|
-
"main": "index.js",
|
7
|
-
"scripts": {
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
9
|
-
},
|
10
|
-
"author": "",
|
11
|
-
"license": "ISC",
|
12
|
-
"devDependencies": {
|
13
|
-
"tern": "^0.24.3"
|
14
|
-
}
|
1
|
+
{
|
2
|
+
"name": "axj-ab_",
|
3
|
+
"type": "commonjs",
|
4
|
+
"version": "1.0.10",
|
5
|
+
"description": "",
|
6
|
+
"main": "index.js",
|
7
|
+
"scripts": {
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
9
|
+
},
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC",
|
12
|
+
"devDependencies": {}
|
15
13
|
}
|