axj-ab_ 1.0.0
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 +686 -0
- package/index.js +1214 -0
- package/package.json +12 -0
package/index.d.ts
ADDED
@@ -0,0 +1,686 @@
|
|
1
|
+
// Type definitions for assets/script/libs/abom.js
|
2
|
+
// Project: [LIBRARY_URL_HERE]
|
3
|
+
// Definitions by: [YOUR_NAME_HERE] <[YOUR_URL_HERE]>
|
4
|
+
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
5
|
+
export default ab_
|
6
|
+
|
7
|
+
declare namespace ab_ {
|
8
|
+
// ab_.route.!ret
|
9
|
+
|
10
|
+
/**
|
11
|
+
*
|
12
|
+
*/
|
13
|
+
interface RouteRet {
|
14
|
+
|
15
|
+
/**
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
hash: string;
|
19
|
+
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
search: {
|
24
|
+
}
|
25
|
+
|
26
|
+
/**
|
27
|
+
*
|
28
|
+
*/
|
29
|
+
path: /* ab_.$route.path */ any;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
declare namespace ab_ {
|
33
|
+
// ab_.reqJs.!2
|
34
|
+
type ReqJs2 = (() => void);
|
35
|
+
}
|
36
|
+
declare namespace ab_ {
|
37
|
+
// ab_.reqModule.!ret
|
38
|
+
type ReqModuleRet = ((call: any) => void);
|
39
|
+
}
|
40
|
+
declare namespace ab_ {
|
41
|
+
// ab_.args.!0
|
42
|
+
type Args0 = Array<any>;
|
43
|
+
}
|
44
|
+
declare namespace ab_ {
|
45
|
+
// ab_.swap.!0
|
46
|
+
|
47
|
+
/**
|
48
|
+
*
|
49
|
+
*/
|
50
|
+
interface Swap0 {
|
51
|
+
}
|
52
|
+
}
|
53
|
+
declare namespace ab_ {
|
54
|
+
// ab_.newReady.!ret
|
55
|
+
|
56
|
+
/**
|
57
|
+
*
|
58
|
+
*/
|
59
|
+
interface NewReadyRet {
|
60
|
+
|
61
|
+
/**
|
62
|
+
*
|
63
|
+
*/
|
64
|
+
start(): void;
|
65
|
+
|
66
|
+
/**
|
67
|
+
*
|
68
|
+
* @param back
|
69
|
+
*/
|
70
|
+
(back: any): void;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
declare namespace ab_ {
|
74
|
+
// ab_.newStart.!ret
|
75
|
+
|
76
|
+
/**
|
77
|
+
*
|
78
|
+
*/
|
79
|
+
interface NewStartRet {
|
80
|
+
|
81
|
+
/**
|
82
|
+
*
|
83
|
+
*/
|
84
|
+
waite(): void;
|
85
|
+
|
86
|
+
/**
|
87
|
+
*
|
88
|
+
* @param inited
|
89
|
+
*/
|
90
|
+
(inited: any): void;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
declare namespace ab_ {
|
94
|
+
// ab_.cssSetRest.!1
|
95
|
+
type CssSetRest1 = Array<string>;
|
96
|
+
}
|
97
|
+
declare namespace ab_ {
|
98
|
+
// ab_.cssSetRest.!ret
|
99
|
+
|
100
|
+
/**
|
101
|
+
*
|
102
|
+
*/
|
103
|
+
interface CssSetRestRet {
|
104
|
+
|
105
|
+
/**
|
106
|
+
*
|
107
|
+
* @param vals
|
108
|
+
*/
|
109
|
+
set(vals: ab_.CssSetRestRet.Set0): void;
|
110
|
+
|
111
|
+
/**
|
112
|
+
*
|
113
|
+
*/
|
114
|
+
reset(): void;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
declare namespace ab_.CssSetRestRet {
|
118
|
+
// ab_.cssSetRest.!ret.set.!0
|
119
|
+
type Set0 = Array<string>;
|
120
|
+
}
|
121
|
+
declare namespace ab_ {
|
122
|
+
// ab_.setPaths.!0
|
123
|
+
|
124
|
+
/**
|
125
|
+
*
|
126
|
+
*/
|
127
|
+
interface SetPaths0 {
|
128
|
+
}
|
129
|
+
}
|
130
|
+
declare namespace ab_ {
|
131
|
+
// ab_.fullScreen.!ret
|
132
|
+
type FullScreenRet = (() => void);
|
133
|
+
}
|
134
|
+
declare namespace ab_ {
|
135
|
+
// ab_.funTimer.!ret
|
136
|
+
|
137
|
+
/**
|
138
|
+
*
|
139
|
+
*/
|
140
|
+
interface FunTimerRet {
|
141
|
+
|
142
|
+
/**
|
143
|
+
*
|
144
|
+
* @param interval
|
145
|
+
*/
|
146
|
+
start(interval: any): void;
|
147
|
+
|
148
|
+
/**
|
149
|
+
*
|
150
|
+
*/
|
151
|
+
stop(): void;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
declare namespace ab_ {
|
155
|
+
// ab_.loadState.!2
|
156
|
+
|
157
|
+
/**
|
158
|
+
*
|
159
|
+
*/
|
160
|
+
interface LoadState2 {
|
161
|
+
}
|
162
|
+
}
|
163
|
+
declare namespace ab_ {
|
164
|
+
// ab_.saveState.!0
|
165
|
+
|
166
|
+
/**
|
167
|
+
*
|
168
|
+
*/
|
169
|
+
interface SaveState0 {
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
/**
|
174
|
+
*
|
175
|
+
*/
|
176
|
+
declare namespace ab_ {
|
177
|
+
|
178
|
+
/**
|
179
|
+
*
|
180
|
+
*/
|
181
|
+
export var _ver: boolean;
|
182
|
+
|
183
|
+
/**
|
184
|
+
*
|
185
|
+
*/
|
186
|
+
export var local: boolean;
|
187
|
+
|
188
|
+
/**
|
189
|
+
*
|
190
|
+
* @param fn
|
191
|
+
*/
|
192
|
+
function fn(fn: any): void;
|
193
|
+
|
194
|
+
/**
|
195
|
+
*
|
196
|
+
*/
|
197
|
+
function header(): void;
|
198
|
+
|
199
|
+
/**
|
200
|
+
*
|
201
|
+
*/
|
202
|
+
function back(): void;
|
203
|
+
|
204
|
+
/**
|
205
|
+
*
|
206
|
+
* @param uri
|
207
|
+
* @param title
|
208
|
+
*/
|
209
|
+
function push(uri: any, title: any): void;
|
210
|
+
|
211
|
+
/**
|
212
|
+
*
|
213
|
+
* @param uri
|
214
|
+
* @param title
|
215
|
+
*/
|
216
|
+
function replace(uri: any, title: any): void;
|
217
|
+
|
218
|
+
/**
|
219
|
+
*
|
220
|
+
* @param uri
|
221
|
+
* @param title
|
222
|
+
* @param alone
|
223
|
+
*/
|
224
|
+
function open(uri: any, title: any, alone: any): void;
|
225
|
+
|
226
|
+
/**
|
227
|
+
*
|
228
|
+
* @param name
|
229
|
+
*/
|
230
|
+
function get(name: any): void;
|
231
|
+
|
232
|
+
/**
|
233
|
+
*
|
234
|
+
* @param o
|
235
|
+
* @return
|
236
|
+
*/
|
237
|
+
function empty(o: any): boolean;
|
238
|
+
|
239
|
+
/**
|
240
|
+
*
|
241
|
+
* @param url
|
242
|
+
* @param para
|
243
|
+
* @return
|
244
|
+
*/
|
245
|
+
function urlRm(url: any, para: any): any;
|
246
|
+
|
247
|
+
/**
|
248
|
+
*
|
249
|
+
* @param url
|
250
|
+
* @param paras
|
251
|
+
* @param force
|
252
|
+
* @return
|
253
|
+
*/
|
254
|
+
function urlParas(url: any, paras: string, force: any): string;
|
255
|
+
|
256
|
+
/**
|
257
|
+
*
|
258
|
+
* @return
|
259
|
+
*/
|
260
|
+
function urlPath(): string;
|
261
|
+
|
262
|
+
/**
|
263
|
+
*
|
264
|
+
* @param path
|
265
|
+
* @return
|
266
|
+
*/
|
267
|
+
function pathDir(path: any): string;
|
268
|
+
|
269
|
+
/**
|
270
|
+
*
|
271
|
+
* @param anch
|
272
|
+
* @param url
|
273
|
+
* @param set
|
274
|
+
* @return
|
275
|
+
*/
|
276
|
+
function route(anch: any, url: any, set: any): ab_.RouteRet;
|
277
|
+
|
278
|
+
/**
|
279
|
+
*
|
280
|
+
* @param el
|
281
|
+
* @return
|
282
|
+
*/
|
283
|
+
function el(el: number): number;
|
284
|
+
|
285
|
+
/**
|
286
|
+
*
|
287
|
+
* @param url
|
288
|
+
* @return
|
289
|
+
*/
|
290
|
+
function ver(url: string): string;
|
291
|
+
|
292
|
+
/**
|
293
|
+
*
|
294
|
+
* @param href
|
295
|
+
* @param el
|
296
|
+
* @param media
|
297
|
+
*/
|
298
|
+
function reqCss(href: any, el: any, media: any): void;
|
299
|
+
|
300
|
+
/**
|
301
|
+
*
|
302
|
+
*/
|
303
|
+
function call(): void;
|
304
|
+
|
305
|
+
/**
|
306
|
+
*
|
307
|
+
* @param js
|
308
|
+
* @param el
|
309
|
+
* @param call
|
310
|
+
*/
|
311
|
+
function reqJs(js: string, el: number, call: ab_.ReqJs2): void;
|
312
|
+
|
313
|
+
/**
|
314
|
+
*
|
315
|
+
* @param name
|
316
|
+
* @param jses
|
317
|
+
* @param csses
|
318
|
+
* @return
|
319
|
+
*/
|
320
|
+
function reqModule(name: any, jses: any, csses: any): ab_.ReqModuleRet;
|
321
|
+
|
322
|
+
/**
|
323
|
+
*
|
324
|
+
* @param exp
|
325
|
+
* @param $page
|
326
|
+
* @param $this
|
327
|
+
* @param res
|
328
|
+
*/
|
329
|
+
function eval(exp: any, $page: any, $this: any, res: any): void;
|
330
|
+
|
331
|
+
/**
|
332
|
+
*
|
333
|
+
* @param args
|
334
|
+
* @param off
|
335
|
+
* @param len
|
336
|
+
* @return
|
337
|
+
*/
|
338
|
+
function args(args: ab_.Args0, off: number, len: number): Array</*!0.<i>*/ any>;
|
339
|
+
|
340
|
+
/**
|
341
|
+
*
|
342
|
+
* @param ary
|
343
|
+
* @param from
|
344
|
+
* @param to
|
345
|
+
* @return
|
346
|
+
*/
|
347
|
+
function swap(ary: ab_.Swap0, from: any, to: any): ab_.Swap0;
|
348
|
+
|
349
|
+
/**
|
350
|
+
*
|
351
|
+
* @param ary
|
352
|
+
* @param from
|
353
|
+
* @param to
|
354
|
+
* @return
|
355
|
+
*/
|
356
|
+
function reSort(ary: any, from: any, to: any): any;
|
357
|
+
|
358
|
+
/**
|
359
|
+
*
|
360
|
+
* @param children
|
361
|
+
* @param fromI
|
362
|
+
* @param toI
|
363
|
+
*/
|
364
|
+
function resetEl(children: any, fromI: any, toI: any): void;
|
365
|
+
|
366
|
+
/**
|
367
|
+
*
|
368
|
+
* @param from
|
369
|
+
* @param to
|
370
|
+
*/
|
371
|
+
function swapEl(from: any, to: any): void;
|
372
|
+
|
373
|
+
/**
|
374
|
+
*
|
375
|
+
* @param name
|
376
|
+
*/
|
377
|
+
function post(name: any): void;
|
378
|
+
|
379
|
+
/**
|
380
|
+
*
|
381
|
+
* @param data
|
382
|
+
* @param i
|
383
|
+
*/
|
384
|
+
function posts(data: any, i: number): void;
|
385
|
+
|
386
|
+
/**
|
387
|
+
*
|
388
|
+
*/
|
389
|
+
export var langs: /*no type*/{};
|
390
|
+
|
391
|
+
/**
|
392
|
+
*
|
393
|
+
* @param lang
|
394
|
+
* @param call
|
395
|
+
*/
|
396
|
+
function langChange(lang: any, call: any): void;
|
397
|
+
|
398
|
+
/**
|
399
|
+
*
|
400
|
+
* @param key
|
401
|
+
* @param lang
|
402
|
+
*/
|
403
|
+
function lang(key: any, lang: any): void;
|
404
|
+
|
405
|
+
/**
|
406
|
+
*
|
407
|
+
* @param key
|
408
|
+
* @param par
|
409
|
+
* @return
|
410
|
+
*/
|
411
|
+
function i18n(key: any, par: any): any;
|
412
|
+
|
413
|
+
/**
|
414
|
+
*
|
415
|
+
* @return
|
416
|
+
*/
|
417
|
+
function time(): number;
|
418
|
+
|
419
|
+
/**
|
420
|
+
*
|
421
|
+
* @param time
|
422
|
+
* @param max
|
423
|
+
* @return
|
424
|
+
*/
|
425
|
+
function humTime(time: any, max: any): string;
|
426
|
+
|
427
|
+
/**
|
428
|
+
*
|
429
|
+
* @param size
|
430
|
+
* @return
|
431
|
+
*/
|
432
|
+
function humSize(size: any): string;
|
433
|
+
|
434
|
+
/**
|
435
|
+
*
|
436
|
+
* @param json
|
437
|
+
* @return
|
438
|
+
*/
|
439
|
+
function parseJson(json: any): any;
|
440
|
+
|
441
|
+
/**
|
442
|
+
*
|
443
|
+
* @param obj
|
444
|
+
* @return
|
445
|
+
*/
|
446
|
+
function toJson(obj: any): string;
|
447
|
+
|
448
|
+
/**
|
449
|
+
*
|
450
|
+
* @param tpl
|
451
|
+
* @param render
|
452
|
+
*/
|
453
|
+
function tplRender(tpl: any, render: any): void;
|
454
|
+
|
455
|
+
/**
|
456
|
+
* 支持formData file var form = new FormData();form.append("file", fileObj);
|
457
|
+
* @param loading
|
458
|
+
* @param headers
|
459
|
+
* @param url
|
460
|
+
* @param posts
|
461
|
+
* @param callback
|
462
|
+
* @param init
|
463
|
+
*/
|
464
|
+
function xhrReq(loading: any, headers: any, url: any, posts: any, callback: any, init: any): void;
|
465
|
+
|
466
|
+
/**
|
467
|
+
*
|
468
|
+
* @param loading
|
469
|
+
* @param headers
|
470
|
+
* @param url
|
471
|
+
* @param posts
|
472
|
+
* @param files
|
473
|
+
* @param callback
|
474
|
+
* @param init
|
475
|
+
*/
|
476
|
+
function uniReq(loading: any, headers: any, url: any, posts: any, files: any, callback: any, init: any): void;
|
477
|
+
|
478
|
+
/**
|
479
|
+
*
|
480
|
+
* @param last
|
481
|
+
* @return
|
482
|
+
*/
|
483
|
+
function newReady(last: any): ab_.NewReadyRet;
|
484
|
+
|
485
|
+
/**
|
486
|
+
*
|
487
|
+
* @param run
|
488
|
+
* @return
|
489
|
+
*/
|
490
|
+
function newStart(run: any): ab_.NewStartRet;
|
491
|
+
|
492
|
+
/**
|
493
|
+
*
|
494
|
+
*/
|
495
|
+
function vConsole(): void;
|
496
|
+
|
497
|
+
/**
|
498
|
+
*
|
499
|
+
* @param $el
|
500
|
+
* @param name
|
501
|
+
*/
|
502
|
+
function getStyle($el: any, name: string): void;
|
503
|
+
|
504
|
+
/**
|
505
|
+
*
|
506
|
+
* @param $el
|
507
|
+
* @param names
|
508
|
+
* @return
|
509
|
+
*/
|
510
|
+
function cssSetRest($el: any, names: ab_.CssSetRest1): ab_.CssSetRestRet;
|
511
|
+
|
512
|
+
/**
|
513
|
+
*
|
514
|
+
* @param el
|
515
|
+
* @param tag
|
516
|
+
*/
|
517
|
+
function cloneElement(el: any, tag: any): void;
|
518
|
+
|
519
|
+
/**
|
520
|
+
*
|
521
|
+
* @param to
|
522
|
+
* @param from
|
523
|
+
* @param depth
|
524
|
+
* @return
|
525
|
+
*/
|
526
|
+
function objectMerge(to: any, from: any, depth: number): any;
|
527
|
+
|
528
|
+
/**
|
529
|
+
*
|
530
|
+
* @param inst
|
531
|
+
* @return
|
532
|
+
*/
|
533
|
+
function keepAlive(inst: any): any;
|
534
|
+
|
535
|
+
/**
|
536
|
+
*
|
537
|
+
* @param key
|
538
|
+
*/
|
539
|
+
function keepAliveClose(key: any): void;
|
540
|
+
|
541
|
+
/**
|
542
|
+
*
|
543
|
+
* @param $keepAlive
|
544
|
+
* @param key
|
545
|
+
* @param cKey
|
546
|
+
*/
|
547
|
+
function keepAliveDel($keepAlive: any, key: any, cKey: any): void;
|
548
|
+
|
549
|
+
/**
|
550
|
+
*
|
551
|
+
* @param model
|
552
|
+
* @param paths
|
553
|
+
* @param fromI
|
554
|
+
* @return
|
555
|
+
*/
|
556
|
+
function getPaths(model: any, paths: any, fromI: number): /* error */ any;
|
557
|
+
|
558
|
+
/**
|
559
|
+
*
|
560
|
+
* @param model
|
561
|
+
* @param val
|
562
|
+
* @param paths
|
563
|
+
* @param fromI
|
564
|
+
*/
|
565
|
+
function setPaths(model: ab_.SetPaths0, val: any, paths: any, fromI: number): void;
|
566
|
+
|
567
|
+
/**
|
568
|
+
*
|
569
|
+
* @param time
|
570
|
+
* @return
|
571
|
+
*/
|
572
|
+
function date(time: any): Date;
|
573
|
+
|
574
|
+
/**
|
575
|
+
*
|
576
|
+
* @param time
|
577
|
+
* @param fmt
|
578
|
+
*/
|
579
|
+
function formatTime(time: any, fmt: any): void;
|
580
|
+
|
581
|
+
/**
|
582
|
+
*
|
583
|
+
* @param date
|
584
|
+
* @param fmt
|
585
|
+
* @return
|
586
|
+
*/
|
587
|
+
function formatDate(date: Date, fmt: string): string;
|
588
|
+
|
589
|
+
/**
|
590
|
+
*
|
591
|
+
*/
|
592
|
+
function xhrOntimeout(): void;
|
593
|
+
|
594
|
+
/**
|
595
|
+
*
|
596
|
+
* @param name
|
597
|
+
* @return
|
598
|
+
*/
|
599
|
+
function aName(name: any): string;
|
600
|
+
|
601
|
+
/**
|
602
|
+
*
|
603
|
+
* @param a
|
604
|
+
* @param name
|
605
|
+
* @param underline
|
606
|
+
* @return
|
607
|
+
*/
|
608
|
+
function aNameC(a: any, name: any, underline: any): any;
|
609
|
+
|
610
|
+
/**
|
611
|
+
*
|
612
|
+
* @param $this
|
613
|
+
* @param $el
|
614
|
+
* @param fun
|
615
|
+
* @return
|
616
|
+
*/
|
617
|
+
function fullScreen($this: any, $el: any, fun: any): ab_.FullScreenRet;
|
618
|
+
|
619
|
+
/**
|
620
|
+
*
|
621
|
+
* @param val
|
622
|
+
* @return
|
623
|
+
*/
|
624
|
+
function cvsVal(val: string): string;
|
625
|
+
|
626
|
+
/**
|
627
|
+
*
|
628
|
+
* @param txt
|
629
|
+
* @param name
|
630
|
+
* @param bom
|
631
|
+
*/
|
632
|
+
function downloadTxt(txt: string, name: any, bom: any): void;
|
633
|
+
|
634
|
+
/**
|
635
|
+
*
|
636
|
+
* @param fun
|
637
|
+
* @return
|
638
|
+
*/
|
639
|
+
function funTimer(fun: any): ab_.FunTimerRet;
|
640
|
+
|
641
|
+
/**
|
642
|
+
*
|
643
|
+
* @param bind
|
644
|
+
* @param path
|
645
|
+
* @param target
|
646
|
+
* @param props
|
647
|
+
* @return
|
648
|
+
*/
|
649
|
+
function loadState(bind: any, path: any, target: ab_.LoadState2, props: any): boolean;
|
650
|
+
|
651
|
+
/**
|
652
|
+
*
|
653
|
+
* @param bind
|
654
|
+
* @param path
|
655
|
+
* @param target
|
656
|
+
* @param props
|
657
|
+
*/
|
658
|
+
function saveState(bind: ab_.SaveState0, path: any, target: any, props: any): void;
|
659
|
+
|
660
|
+
/**
|
661
|
+
*
|
662
|
+
*/
|
663
|
+
namespace $route {
|
664
|
+
|
665
|
+
/**
|
666
|
+
*
|
667
|
+
*/
|
668
|
+
export var hash: string;
|
669
|
+
|
670
|
+
/**
|
671
|
+
*
|
672
|
+
*/
|
673
|
+
export var path: Array</* [? */ any> | /* string] */ any;
|
674
|
+
|
675
|
+
/**
|
676
|
+
*
|
677
|
+
*/
|
678
|
+
var search: {
|
679
|
+
}
|
680
|
+
}
|
681
|
+
|
682
|
+
/**
|
683
|
+
*
|
684
|
+
*/
|
685
|
+
export var vconsoled: boolean;
|
686
|
+
}
|