hyperscript-rxjs 1.3.9 → 1.3.11
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/hyperscript-rxjs.d.ts +284 -98
- package/dist/hyperscript-rxjs.js +1 -1
- package/package.json +3 -6
@@ -4,11 +4,17 @@ import { Observer } from 'rxjs';
|
|
4
4
|
import { Subject } from 'rxjs';
|
5
5
|
import { Subscription } from 'rxjs';
|
6
6
|
|
7
|
-
export declare function a(props
|
7
|
+
export declare function a(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLAnchorElement>;
|
8
8
|
|
9
|
-
export declare function
|
9
|
+
export declare function a(...childNodes: any[]): HyperscriptExtensions<HTMLAnchorElement>;
|
10
10
|
|
11
|
-
export declare function
|
11
|
+
export declare function abbr(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
12
|
+
|
13
|
+
export declare function abbr(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
14
|
+
|
15
|
+
export declare function address(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
16
|
+
|
17
|
+
export declare function address(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
12
18
|
|
13
19
|
/**
|
14
20
|
* Splits an array into two parts: the first `n` elements (in reverse order) and the remaining elements.
|
@@ -20,7 +26,9 @@ export declare function address(props?: { [_: string]: any }, ...childNodes: any
|
|
20
26
|
*/
|
21
27
|
export declare function advance<T>(array: T[], n: number): [T[], T[]];
|
22
28
|
|
23
|
-
export declare function area(props
|
29
|
+
export declare function area(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLAreaElement>;
|
30
|
+
|
31
|
+
export declare function area(...childNodes: any[]): HyperscriptExtensions<HTMLAreaElement>;
|
24
32
|
|
25
33
|
/**
|
26
34
|
* Inserts an element into an array at the specified position in place.
|
@@ -39,9 +47,13 @@ export declare function arrayInsert<T>(array: T[], item: T, index?: number): voi
|
|
39
47
|
*/
|
40
48
|
export declare function arrayRemove<T>(array: T[], index?: number): void;
|
41
49
|
|
42
|
-
export declare function article(props
|
50
|
+
export declare function article(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
43
51
|
|
44
|
-
export declare function
|
52
|
+
export declare function article(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
53
|
+
|
54
|
+
export declare function aside(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
55
|
+
|
56
|
+
export declare function aside(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
45
57
|
|
46
58
|
/**
|
47
59
|
* 将 RxJS 订阅对象附加到 DOM 节点上,便于管理。
|
@@ -55,13 +67,21 @@ elem: Node & { subscription?: Subscription },
|
|
55
67
|
subscription: Subscription
|
56
68
|
): void;
|
57
69
|
|
58
|
-
export declare function audio(props
|
70
|
+
export declare function audio(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLAudioElement>;
|
71
|
+
|
72
|
+
export declare function audio(...childNodes: any[]): HyperscriptExtensions<HTMLAudioElement>;
|
59
73
|
|
60
|
-
export declare function b(props
|
74
|
+
export declare function b(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
61
75
|
|
62
|
-
export declare function
|
76
|
+
export declare function b(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
63
77
|
|
64
|
-
export declare function
|
78
|
+
export declare function bdi(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
79
|
+
|
80
|
+
export declare function bdi(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
81
|
+
|
82
|
+
export declare function bdo(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
83
|
+
|
84
|
+
export declare function bdo(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
65
85
|
|
66
86
|
/**
|
67
87
|
* 绑定选项卡的激活状态到 tabIndex,实现动态切换选项卡的功能。
|
@@ -80,13 +100,21 @@ tabIndex$: BehaviorSubject<number>
|
|
80
100
|
*/
|
81
101
|
export declare const blockLevelFamily: Set<string>;
|
82
102
|
|
83
|
-
export declare function blockquote(props
|
103
|
+
export declare function blockquote(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLQuoteElement>;
|
104
|
+
|
105
|
+
export declare function blockquote(...childNodes: any[]): HyperscriptExtensions<HTMLQuoteElement>;
|
106
|
+
|
107
|
+
export declare function br(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLBRElement>;
|
108
|
+
|
109
|
+
export declare function br(...childNodes: any[]): HyperscriptExtensions<HTMLBRElement>;
|
84
110
|
|
85
|
-
export declare function
|
111
|
+
export declare function button(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLButtonElement>;
|
86
112
|
|
87
|
-
export declare function button(
|
113
|
+
export declare function button(...childNodes: any[]): HyperscriptExtensions<HTMLButtonElement>;
|
88
114
|
|
89
|
-
export declare function caption(props
|
115
|
+
export declare function caption(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
116
|
+
|
117
|
+
export declare function caption(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
90
118
|
|
91
119
|
/**
|
92
120
|
* 创建一个支持 RxJS 的复选框组件
|
@@ -111,13 +139,21 @@ chosen$: Observable<string>,
|
|
111
139
|
possibilities: Record<string, HTMLElement | HTMLElement[]>
|
112
140
|
): HTMLElement[];
|
113
141
|
|
114
|
-
export declare function cite(props
|
142
|
+
export declare function cite(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
143
|
+
|
144
|
+
export declare function cite(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
145
|
+
|
146
|
+
export declare function code(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
147
|
+
|
148
|
+
export declare function code(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
115
149
|
|
116
|
-
export declare function
|
150
|
+
export declare function col(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableColElement>;
|
117
151
|
|
118
|
-
export declare function col(
|
152
|
+
export declare function col(...childNodes: any[]): HyperscriptExtensions<HTMLTableColElement>;
|
119
153
|
|
120
|
-
export declare function colgroup(props
|
154
|
+
export declare function colgroup(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableColElement>;
|
155
|
+
|
156
|
+
export declare function colgroup(...childNodes: any[]): HyperscriptExtensions<HTMLTableColElement>;
|
121
157
|
|
122
158
|
/**
|
123
159
|
* 显示或隐藏包含的元素,通过绑定 hidden 属性实现动态显示或隐藏。
|
@@ -297,7 +333,7 @@ export declare class Comparer<T> {
|
|
297
333
|
|
298
334
|
/**
|
299
335
|
* 函数优先的管道组合工具(从右向左执行)。
|
300
|
-
*
|
336
|
+
* @public
|
301
337
|
* @param fns - 要组合的函数列表。
|
302
338
|
* @returns 组合后的函数(无参数时返回恒等函数 x => x)。
|
303
339
|
* @throws {TypeError} 当参数包含非函数时抛出错误。
|
@@ -308,7 +344,7 @@ export declare function compose(
|
|
308
344
|
|
309
345
|
/**
|
310
346
|
* 条件分支函数,根据分支依次判断并执行。
|
311
|
-
*
|
347
|
+
* @public
|
312
348
|
* @param branches - 分支数组,每个分支可以是函数或 [predicate, action] 形式的数组。
|
313
349
|
* @returns 一个函数,调用时会依次判断分支并返回第一个匹配的结果。
|
314
350
|
*/
|
@@ -319,11 +355,17 @@ branches: (
|
|
319
355
|
)[]
|
320
356
|
): (...args: T) => R | undefined;
|
321
357
|
|
322
|
-
export declare function data(props
|
358
|
+
export declare function data(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDataElement>;
|
359
|
+
|
360
|
+
export declare function data(...childNodes: any[]): HyperscriptExtensions<HTMLDataElement>;
|
323
361
|
|
324
|
-
export declare function datalist(props
|
362
|
+
export declare function datalist(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDataListElement>;
|
325
363
|
|
326
|
-
export declare function
|
364
|
+
export declare function datalist(...childNodes: any[]): HyperscriptExtensions<HTMLDataListElement>;
|
365
|
+
|
366
|
+
export declare function dd(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
367
|
+
|
368
|
+
export declare function dd(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
327
369
|
|
328
370
|
export declare class Deep<T> {
|
329
371
|
constructor(entries: [(string | number)[], T][]);
|
@@ -395,21 +437,37 @@ export declare function defaultCompare<T>(a: T, b: T): number;
|
|
395
437
|
*/
|
396
438
|
export declare const defaultComparer: Comparer<any>;
|
397
439
|
|
398
|
-
export declare function del(props
|
440
|
+
export declare function del(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLModElement>;
|
441
|
+
|
442
|
+
export declare function del(...childNodes: any[]): HyperscriptExtensions<HTMLModElement>;
|
399
443
|
|
400
|
-
export declare function details(props
|
444
|
+
export declare function details(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDetailsElement>;
|
401
445
|
|
402
|
-
export declare function
|
446
|
+
export declare function details(...childNodes: any[]): HyperscriptExtensions<HTMLDetailsElement>;
|
403
447
|
|
404
|
-
export declare function
|
448
|
+
export declare function dfn(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
405
449
|
|
406
|
-
export declare function
|
450
|
+
export declare function dfn(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
407
451
|
|
408
|
-
export declare function
|
452
|
+
export declare function dialog(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDialogElement>;
|
409
453
|
|
410
|
-
export declare function
|
454
|
+
export declare function dialog(...childNodes: any[]): HyperscriptExtensions<HTMLDialogElement>;
|
411
455
|
|
412
|
-
export declare function
|
456
|
+
export declare function div(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDivElement>;
|
457
|
+
|
458
|
+
export declare function div(...childNodes: any[]): HyperscriptExtensions<HTMLDivElement>;
|
459
|
+
|
460
|
+
export declare function dl(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDListElement>;
|
461
|
+
|
462
|
+
export declare function dl(...childNodes: any[]): HyperscriptExtensions<HTMLDListElement>;
|
463
|
+
|
464
|
+
export declare function dt(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
465
|
+
|
466
|
+
export declare function dt(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
467
|
+
|
468
|
+
export declare function em(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
469
|
+
|
470
|
+
export declare function em(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
413
471
|
|
414
472
|
/**
|
415
473
|
* A comparer instance for comparing entries.
|
@@ -426,11 +484,17 @@ export declare function erectObject(
|
|
426
484
|
entries: [ (string | number)[], any ][]
|
427
485
|
): object | any[];
|
428
486
|
|
429
|
-
export declare function fieldset(props
|
487
|
+
export declare function fieldset(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLFieldSetElement>;
|
430
488
|
|
431
|
-
export declare function
|
489
|
+
export declare function fieldset(...childNodes: any[]): HyperscriptExtensions<HTMLFieldSetElement>;
|
432
490
|
|
433
|
-
export declare function
|
491
|
+
export declare function figcaption(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
492
|
+
|
493
|
+
export declare function figcaption(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
494
|
+
|
495
|
+
export declare function figure(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
496
|
+
|
497
|
+
export declare function figure(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
434
498
|
|
435
499
|
/**
|
436
500
|
* Finds the last index in an array where the callback function returns `true`.
|
@@ -480,7 +544,7 @@ yang: HTMLElement | HTMLElement[]
|
|
480
544
|
|
481
545
|
/**
|
482
546
|
* 通用折叠(归约)函数,支持自定义迭代逻辑。
|
483
|
-
*
|
547
|
+
* @public
|
484
548
|
* @param fn - 迭代函数,接收 (acc, seed),返回 [newAcc, nextSeed] 或 [newAcc] 或 null/undefined 结束。
|
485
549
|
* @param acc - 初始累加值。
|
486
550
|
* @param seed - 初始种子值。
|
@@ -492,9 +556,13 @@ acc: A,
|
|
492
556
|
seed: S
|
493
557
|
): A;
|
494
558
|
|
495
|
-
export declare function footer(props
|
559
|
+
export declare function footer(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
560
|
+
|
561
|
+
export declare function footer(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
496
562
|
|
497
|
-
export declare function form(props
|
563
|
+
export declare function form(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLFormElement>;
|
564
|
+
|
565
|
+
export declare function form(...childNodes: any[]): HyperscriptExtensions<HTMLFormElement>;
|
498
566
|
|
499
567
|
/**
|
500
568
|
* 插入一组元素,返回包含所有子节点的 DocumentFragment。
|
@@ -538,23 +606,41 @@ export declare function groupByFirstLevelKey(
|
|
538
606
|
flatEntries: [ (string | number)[], any ][]
|
539
607
|
): [ string | number, [ (string | number)[], any ][] ][];
|
540
608
|
|
541
|
-
export declare function h1(props
|
609
|
+
export declare function h1(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
610
|
+
|
611
|
+
export declare function h1(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
612
|
+
|
613
|
+
export declare function h2(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
614
|
+
|
615
|
+
export declare function h2(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
616
|
+
|
617
|
+
export declare function h3(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
618
|
+
|
619
|
+
export declare function h3(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
620
|
+
|
621
|
+
export declare function h4(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
542
622
|
|
543
|
-
export declare function
|
623
|
+
export declare function h4(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
544
624
|
|
545
|
-
export declare function
|
625
|
+
export declare function h5(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
546
626
|
|
547
|
-
export declare function
|
627
|
+
export declare function h5(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
548
628
|
|
549
|
-
export declare function
|
629
|
+
export declare function h6(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
550
630
|
|
551
|
-
export declare function h6(
|
631
|
+
export declare function h6(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
552
632
|
|
553
|
-
export declare function header(props
|
633
|
+
export declare function header(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
554
634
|
|
555
|
-
export declare function
|
635
|
+
export declare function header(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
556
636
|
|
557
|
-
export declare function
|
637
|
+
export declare function hgroup(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
638
|
+
|
639
|
+
export declare function hgroup(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
640
|
+
|
641
|
+
export declare function hr(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHRElement>;
|
642
|
+
|
643
|
+
export declare function hr(...childNodes: any[]): HyperscriptExtensions<HTMLHRElement>;
|
558
644
|
|
559
645
|
/**
|
560
646
|
* Creates an HTML element with extended event handling capabilities
|
@@ -588,9 +674,13 @@ T & {
|
|
588
674
|
|
589
675
|
};
|
590
676
|
|
591
|
-
export declare function i(props
|
677
|
+
export declare function i(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
592
678
|
|
593
|
-
export declare function
|
679
|
+
export declare function i(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
680
|
+
|
681
|
+
export declare function img(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLImageElement>;
|
682
|
+
|
683
|
+
export declare function img(...childNodes: any[]): HyperscriptExtensions<HTMLImageElement>;
|
594
684
|
|
595
685
|
/**
|
596
686
|
* 一个包含所有 HTML 内联元素标签名称(大写)的集合。
|
@@ -598,9 +688,13 @@ export declare function img(props?: { [_: string]: any }, ...childNodes: any[]):
|
|
598
688
|
*/
|
599
689
|
export declare const inlineFamily: Set<string>;
|
600
690
|
|
601
|
-
export declare function input(props
|
691
|
+
export declare function input(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLInputElement>;
|
692
|
+
|
693
|
+
export declare function input(...childNodes: any[]): HyperscriptExtensions<HTMLInputElement>;
|
602
694
|
|
603
|
-
export declare function ins(props
|
695
|
+
export declare function ins(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLModElement>;
|
696
|
+
|
697
|
+
export declare function ins(...childNodes: any[]): HyperscriptExtensions<HTMLModElement>;
|
604
698
|
|
605
699
|
/**
|
606
700
|
* 创建一个新对象,仅包含指定 keys 的属性。
|
@@ -661,7 +755,9 @@ export declare function isRange(keys: string[]): boolean;
|
|
661
755
|
*/
|
662
756
|
export declare function isRxType(obj: any): boolean;
|
663
757
|
|
664
|
-
export declare function kbd(props
|
758
|
+
export declare function kbd(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
759
|
+
|
760
|
+
export declare function kbd(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
665
761
|
|
666
762
|
/**
|
667
763
|
* A comparer instance for comparing keys.
|
@@ -673,21 +769,37 @@ export declare const keyComparer: Comparer<number | string>;
|
|
673
769
|
*/
|
674
770
|
export declare const keyPathComparer: Comparer<(number | string)[]>;
|
675
771
|
|
676
|
-
export declare function label(props
|
772
|
+
export declare function label(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLLabelElement>;
|
773
|
+
|
774
|
+
export declare function label(...childNodes: any[]): HyperscriptExtensions<HTMLLabelElement>;
|
775
|
+
|
776
|
+
export declare function legend(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLLegendElement>;
|
777
|
+
|
778
|
+
export declare function legend(...childNodes: any[]): HyperscriptExtensions<HTMLLegendElement>;
|
779
|
+
|
780
|
+
export declare function li(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLLIElement>;
|
781
|
+
|
782
|
+
export declare function li(...childNodes: any[]): HyperscriptExtensions<HTMLLIElement>;
|
677
783
|
|
678
|
-
export declare function
|
784
|
+
export declare function main(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
679
785
|
|
680
|
-
export declare function
|
786
|
+
export declare function main(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
681
787
|
|
682
|
-
export declare function
|
788
|
+
export declare function mark(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
683
789
|
|
684
|
-
export declare function mark(
|
790
|
+
export declare function mark(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
685
791
|
|
686
|
-
export declare function menu(props
|
792
|
+
export declare function menu(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLMenuElement>;
|
687
793
|
|
688
|
-
export declare function
|
794
|
+
export declare function menu(...childNodes: any[]): HyperscriptExtensions<HTMLMenuElement>;
|
689
795
|
|
690
|
-
export declare function
|
796
|
+
export declare function menuitem(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
797
|
+
|
798
|
+
export declare function menuitem(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
799
|
+
|
800
|
+
export declare function meter(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLMeterElement>;
|
801
|
+
|
802
|
+
export declare function meter(...childNodes: any[]): HyperscriptExtensions<HTMLMeterElement>;
|
691
803
|
|
692
804
|
/**
|
693
805
|
* 创建一个支持多选功能的 <select> 元素,并绑定选项的选中状态。
|
@@ -706,7 +818,9 @@ props: {
|
|
706
818
|
...options: HTMLOptionElement[]
|
707
819
|
): HyperscriptExtensions<HTMLSelectElement>;
|
708
820
|
|
709
|
-
export declare function nav(props
|
821
|
+
export declare function nav(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
822
|
+
|
823
|
+
export declare function nav(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
710
824
|
|
711
825
|
/**
|
712
826
|
* 将对象格式的 Observable 转换为扁平对象的 Observable。
|
@@ -804,15 +918,25 @@ export declare class ObservableArray<T = any> extends Array<T> {
|
|
804
918
|
appendChild(): void;
|
805
919
|
}
|
806
920
|
|
807
|
-
export declare function ol(props
|
921
|
+
export declare function ol(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLOListElement>;
|
922
|
+
|
923
|
+
export declare function ol(...childNodes: any[]): HyperscriptExtensions<HTMLOListElement>;
|
924
|
+
|
925
|
+
export declare function optgroup(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLOptGroupElement>;
|
808
926
|
|
809
|
-
export declare function optgroup(
|
927
|
+
export declare function optgroup(...childNodes: any[]): HyperscriptExtensions<HTMLOptGroupElement>;
|
810
928
|
|
811
|
-
export declare function option(props
|
929
|
+
export declare function option(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLOptionElement>;
|
812
930
|
|
813
|
-
export declare function
|
931
|
+
export declare function option(...childNodes: any[]): HyperscriptExtensions<HTMLOptionElement>;
|
814
932
|
|
815
|
-
export declare function
|
933
|
+
export declare function output(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLOutputElement>;
|
934
|
+
|
935
|
+
export declare function output(...childNodes: any[]): HyperscriptExtensions<HTMLOutputElement>;
|
936
|
+
|
937
|
+
export declare function p(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLParagraphElement>;
|
938
|
+
|
939
|
+
export declare function p(...childNodes: any[]): HyperscriptExtensions<HTMLParagraphElement>;
|
816
940
|
|
817
941
|
/**
|
818
942
|
* 解析 hyperscript 风格的参数,返回 props 和 childNodes。
|
@@ -854,7 +978,7 @@ model: Record<string | number, any> & { pickeys?: string[] }
|
|
854
978
|
/**
|
855
979
|
* 数据优先的管道处理工具(从左向右执行)。
|
856
980
|
* 适合一次性数据处理流程。
|
857
|
-
*
|
981
|
+
* @public
|
858
982
|
* @param initialValue - 初始值。
|
859
983
|
* @param fns - 要应用的函数管道(从左向右执行)。
|
860
984
|
* @returns 经过管道处理后的结果。
|
@@ -892,11 +1016,17 @@ obj: Record<string | number, any>,
|
|
892
1016
|
keyPath: (string | number)[]
|
893
1017
|
): any;
|
894
1018
|
|
895
|
-
export declare function pre(props
|
1019
|
+
export declare function pre(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLPreElement>;
|
1020
|
+
|
1021
|
+
export declare function pre(...childNodes: any[]): HyperscriptExtensions<HTMLPreElement>;
|
1022
|
+
|
1023
|
+
export declare function progress(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLProgressElement>;
|
896
1024
|
|
897
|
-
export declare function progress(
|
1025
|
+
export declare function progress(...childNodes: any[]): HyperscriptExtensions<HTMLProgressElement>;
|
898
1026
|
|
899
|
-
export declare function q(props
|
1027
|
+
export declare function q(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLQuoteElement>;
|
1028
|
+
|
1029
|
+
export declare function q(...childNodes: any[]): HyperscriptExtensions<HTMLQuoteElement>;
|
900
1030
|
|
901
1031
|
/**
|
902
1032
|
* 将js对象序列化为 URL 查询字符串(?key=value&...),对象和数组字段会被序列化为字符串。
|
@@ -927,7 +1057,9 @@ export declare function radio(props: {
|
|
927
1057
|
*/
|
928
1058
|
export declare function rangeArray(length: number): number[];
|
929
1059
|
|
930
|
-
export declare function rb(props
|
1060
|
+
export declare function rb(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1061
|
+
|
1062
|
+
export declare function rb(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
931
1063
|
|
932
1064
|
/**
|
933
1065
|
* 更新 ViewModel 为新值 src,递归同步 BehaviorSubject、ObservableArray、数组和对象的内容。
|
@@ -941,19 +1073,33 @@ model: Record<string | number, any>,
|
|
941
1073
|
src: Record<string | number, any>
|
942
1074
|
): Record<string | number, any>;
|
943
1075
|
|
944
|
-
export declare function rp(props
|
1076
|
+
export declare function rp(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1077
|
+
|
1078
|
+
export declare function rp(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1079
|
+
|
1080
|
+
export declare function rt(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1081
|
+
|
1082
|
+
export declare function rt(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1083
|
+
|
1084
|
+
export declare function rtc(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
945
1085
|
|
946
|
-
export declare function
|
1086
|
+
export declare function rtc(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
947
1087
|
|
948
|
-
export declare function
|
1088
|
+
export declare function ruby(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
949
1089
|
|
950
|
-
export declare function ruby(
|
1090
|
+
export declare function ruby(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
951
1091
|
|
952
|
-
export declare function s(props
|
1092
|
+
export declare function s(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
953
1093
|
|
954
|
-
export declare function
|
1094
|
+
export declare function s(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
955
1095
|
|
956
|
-
export declare function
|
1096
|
+
export declare function samp(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1097
|
+
|
1098
|
+
export declare function samp(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1099
|
+
|
1100
|
+
export declare function section(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1101
|
+
|
1102
|
+
export declare function section(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
957
1103
|
|
958
1104
|
/**
|
959
1105
|
* 创建一个支持 RxJS 数据绑定的 <select> 元素(仅单选)。
|
@@ -1002,9 +1148,13 @@ element: HTMLElement,
|
|
1002
1148
|
props: Record<string, any | Observable<any>>
|
1003
1149
|
): HTMLElement;
|
1004
1150
|
|
1005
|
-
export declare function small(props
|
1151
|
+
export declare function small(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1152
|
+
|
1153
|
+
export declare function small(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1006
1154
|
|
1007
|
-
export declare function span(props
|
1155
|
+
export declare function span(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLSpanElement>;
|
1156
|
+
|
1157
|
+
export declare function span(...childNodes: any[]): HyperscriptExtensions<HTMLSpanElement>;
|
1008
1158
|
|
1009
1159
|
/**
|
1010
1160
|
* 将对象属性按类型分为两部分:可观察对象(Observable)与普通值(非 Observable)。
|
@@ -1017,9 +1167,13 @@ export declare function splitObjectByObservable(
|
|
1017
1167
|
obj: Record<string, any>
|
1018
1168
|
): [Record<string, Observable<any>>, Record<string, any>];
|
1019
1169
|
|
1020
|
-
export declare function strong(props
|
1170
|
+
export declare function strong(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1171
|
+
|
1172
|
+
export declare function strong(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1173
|
+
|
1174
|
+
export declare function sub(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1021
1175
|
|
1022
|
-
export declare function sub(
|
1176
|
+
export declare function sub(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1023
1177
|
|
1024
1178
|
/**
|
1025
1179
|
* 为指定的 DOM 元素订阅事件流,并将订阅与元素绑定,便于管理。
|
@@ -1050,9 +1204,13 @@ key: string,
|
|
1050
1204
|
value$: Observable<any>
|
1051
1205
|
): HTMLElement;
|
1052
1206
|
|
1053
|
-
export declare function summary(props
|
1207
|
+
export declare function summary(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1054
1208
|
|
1055
|
-
export declare function
|
1209
|
+
export declare function summary(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1210
|
+
|
1211
|
+
export declare function sup(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1212
|
+
|
1213
|
+
export declare function sup(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1056
1214
|
|
1057
1215
|
/**
|
1058
1216
|
* 创建静态选项卡组件。
|
@@ -1071,7 +1229,9 @@ tabs: Array<string | HTMLElement>,
|
|
1071
1229
|
panels: Array<string | HTMLElement>
|
1072
1230
|
): HTMLElement;
|
1073
1231
|
|
1074
|
-
export declare function table(props
|
1232
|
+
export declare function table(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableElement>;
|
1233
|
+
|
1234
|
+
export declare function table(...childNodes: any[]): HyperscriptExtensions<HTMLTableElement>;
|
1075
1235
|
|
1076
1236
|
/**
|
1077
1237
|
* 选项卡的导航按钮。
|
@@ -1101,9 +1261,13 @@ export declare function tabPanel(
|
|
1101
1261
|
*/
|
1102
1262
|
export declare function tabRoot(props: { [key: string]: any }): HTMLElement;
|
1103
1263
|
|
1104
|
-
export declare function tbody(props
|
1264
|
+
export declare function tbody(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
|
1105
1265
|
|
1106
|
-
export declare function
|
1266
|
+
export declare function tbody(...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
|
1267
|
+
|
1268
|
+
export declare function td(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableCellElement>;
|
1269
|
+
|
1270
|
+
export declare function td(...childNodes: any[]): HyperscriptExtensions<HTMLTableCellElement>;
|
1107
1271
|
|
1108
1272
|
/**
|
1109
1273
|
* 创建一个支持 RxJS 数据绑定的 <textarea> 元素。
|
@@ -1141,13 +1305,21 @@ export declare function textNode(
|
|
1141
1305
|
text: string | Observable<string>
|
1142
1306
|
): Text & { subscription?: Subscription, unsubscribe?: () => void };
|
1143
1307
|
|
1144
|
-
export declare function tfoot(props
|
1308
|
+
export declare function tfoot(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
|
1309
|
+
|
1310
|
+
export declare function tfoot(...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
|
1145
1311
|
|
1146
|
-
export declare function th(props
|
1312
|
+
export declare function th(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableCellElement>;
|
1147
1313
|
|
1148
|
-
export declare function
|
1314
|
+
export declare function th(...childNodes: any[]): HyperscriptExtensions<HTMLTableCellElement>;
|
1149
1315
|
|
1150
|
-
export declare function
|
1316
|
+
export declare function thead(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
|
1317
|
+
|
1318
|
+
export declare function thead(...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
|
1319
|
+
|
1320
|
+
export declare function time(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTimeElement>;
|
1321
|
+
|
1322
|
+
export declare function time(...childNodes: any[]): HyperscriptExtensions<HTMLTimeElement>;
|
1151
1323
|
|
1152
1324
|
/**
|
1153
1325
|
* 将扁平化的键值对数组转换为嵌套的 JavaScript 对象或数组。
|
@@ -1159,11 +1331,17 @@ export declare function tojs(
|
|
1159
1331
|
flatEntries: [ (string | number)[], any ][]
|
1160
1332
|
): Record<string|number, any>;
|
1161
1333
|
|
1162
|
-
export declare function tr(props
|
1334
|
+
export declare function tr(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableRowElement>;
|
1335
|
+
|
1336
|
+
export declare function tr(...childNodes: any[]): HyperscriptExtensions<HTMLTableRowElement>;
|
1337
|
+
|
1338
|
+
export declare function track(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTrackElement>;
|
1339
|
+
|
1340
|
+
export declare function track(...childNodes: any[]): HyperscriptExtensions<HTMLTrackElement>;
|
1163
1341
|
|
1164
|
-
export declare function
|
1342
|
+
export declare function tt(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1165
1343
|
|
1166
|
-
export declare function tt(
|
1344
|
+
export declare function tt(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1167
1345
|
|
1168
1346
|
/**
|
1169
1347
|
* JavaScript 基本数据类型名称数组
|
@@ -1171,13 +1349,17 @@ export declare function tt(props?: { [_: string]: any }, ...childNodes: any[]):
|
|
1171
1349
|
*/
|
1172
1350
|
export declare const types: string[];
|
1173
1351
|
|
1174
|
-
export declare function u(props
|
1352
|
+
export declare function u(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1175
1353
|
|
1176
|
-
export declare function
|
1354
|
+
export declare function u(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1355
|
+
|
1356
|
+
export declare function ul(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLUListElement>;
|
1357
|
+
|
1358
|
+
export declare function ul(...childNodes: any[]): HyperscriptExtensions<HTMLUListElement>;
|
1177
1359
|
|
1178
1360
|
/**
|
1179
1361
|
* 通过不断调用 fn 生成值,直到 fn 返回 falsy。
|
1180
|
-
*
|
1362
|
+
* @public
|
1181
1363
|
* @param fn - 生成函数,接收当前 seed,返回 [value, nextSeed] 或 falsy。
|
1182
1364
|
* @param seed - 初始种子值。
|
1183
1365
|
* @returns 由 fn 生成的所有 value 组成的数组。
|
@@ -1206,9 +1388,13 @@ export declare function unwrapArgs<T>(
|
|
1206
1388
|
args: (T|T[])[]
|
1207
1389
|
): T[];
|
1208
1390
|
|
1209
|
-
export declare function video(props
|
1391
|
+
export declare function video(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLVideoElement>;
|
1392
|
+
|
1393
|
+
export declare function video(...childNodes: any[]): HyperscriptExtensions<HTMLVideoElement>;
|
1394
|
+
|
1395
|
+
export declare function wbr(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1210
1396
|
|
1211
|
-
export declare function wbr(
|
1397
|
+
export declare function wbr(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
1212
1398
|
|
1213
1399
|
/**
|
1214
1400
|
* Combines two arrays into an array of tuples.
|