hyperscript-rxjs 1.3.15 → 1.3.17
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 +1438 -0
- package/dist/hyperscript-rxjs.js +4157 -0
- package/package.json +21 -12
- package/src/array/advance.d.ts +0 -9
- package/src/array/advance.js +0 -13
- package/src/array/advance.test.js +0 -12
- package/src/array/arrayInsert.d.ts +0 -8
- package/src/array/arrayInsert.js +0 -13
- package/src/array/arrayInsert.test.js +0 -13
- package/src/array/arrayRemove.d.ts +0 -7
- package/src/array/arrayRemove.js +0 -15
- package/src/array/arrayRemove.test.js +0 -13
- package/src/array/findLastIndex.d.ts +0 -14
- package/src/array/findLastIndex.js +0 -20
- package/src/array/findLastIndex.test.js +0 -41
- package/src/array/index.d.ts +0 -9
- package/src/array/index.js +0 -9
- package/src/array/isRange.d.ts +0 -7
- package/src/array/isRange.js +0 -15
- package/src/array/isRange.test.js +0 -6
- package/src/array/rangeArray.d.ts +0 -7
- package/src/array/rangeArray.js +0 -10
- package/src/array/rangeArray.test.js +0 -11
- package/src/array/unwrapArgs.d.ts +0 -10
- package/src/array/unwrapArgs.js +0 -15
- package/src/array/unwrapArgs.test.js +0 -33
- package/src/array/zipArray.d.ts +0 -11
- package/src/array/zipArray.js +0 -24
- package/src/array/zipArray.test.js +0 -16
- package/src/comparers/Comparer.d.ts +0 -101
- package/src/comparers/Comparer.js +0 -149
- package/src/comparers/comparers.d.ts +0 -21
- package/src/comparers/comparers.js +0 -10
- package/src/comparers/differenceSet.d.ts +0 -20
- package/src/comparers/differenceSet.js +0 -35
- package/src/comparers/differenceSet.test.js +0 -11
- package/src/comparers/distinctArray.d.ts +0 -13
- package/src/comparers/distinctArray.js +0 -30
- package/src/comparers/distinctArray.test.js +0 -10
- package/src/comparers/findIndexInSet.d.ts +0 -20
- package/src/comparers/findIndexInSet.js +0 -27
- package/src/comparers/findIndexInSet.test.js +0 -8
- package/src/comparers/groupArrayBy.d.ts +0 -19
- package/src/comparers/groupArrayBy.js +0 -29
- package/src/comparers/groupArrayBy.test.js +0 -38
- package/src/comparers/groupSortedEntries.d.ts +0 -17
- package/src/comparers/groupSortedEntries.js +0 -38
- package/src/comparers/groupSortedEntries.test.js +0 -46
- package/src/comparers/index.d.ts +0 -14
- package/src/comparers/index.js +0 -14
- package/src/comparers/intersectSet.d.ts +0 -19
- package/src/comparers/intersectSet.js +0 -35
- package/src/comparers/intersectSet.test.js +0 -14
- package/src/comparers/isEqualset.d.ts +0 -22
- package/src/comparers/isEqualset.js +0 -33
- package/src/comparers/isEqualset.test.js +0 -22
- package/src/comparers/isSubset.d.ts +0 -21
- package/src/comparers/isSubset.js +0 -33
- package/src/comparers/isSubset.test.js +0 -21
- package/src/comparers/isSuperset.d.ts +0 -21
- package/src/comparers/isSuperset.js +0 -13
- package/src/comparers/isSuperset.test.js +0 -21
- package/src/comparers/sortedArrayToSet.d.ts +0 -20
- package/src/comparers/sortedArrayToSet.js +0 -35
- package/src/comparers/sortedArrayToSet.test.js +0 -11
- package/src/comparers/unionSet.d.ts +0 -21
- package/src/comparers/unionSet.js +0 -34
- package/src/comparers/unionSet.test.js +0 -11
- package/src/comparison/compareDate.d.ts +0 -8
- package/src/comparison/compareDate.js +0 -11
- package/src/comparison/compareEntries.d.ts +0 -13
- package/src/comparison/compareEntries.js +0 -13
- package/src/comparison/compareKey.d.ts +0 -11
- package/src/comparison/compareKey.js +0 -25
- package/src/comparison/compareKey.test.js +0 -21
- package/src/comparison/compareKeyPath.d.ts +0 -15
- package/src/comparison/compareKeyPath.js +0 -33
- package/src/comparison/compareKeyPath.test.js +0 -28
- package/src/comparison/compareNumber.d.ts +0 -11
- package/src/comparison/compareNumber.js +0 -27
- package/src/comparison/compareNumber.test.js +0 -21
- package/src/comparison/defaultCompare.d.ts +0 -8
- package/src/comparison/defaultCompare.js +0 -12
- package/src/comparison/defaultCompare.test.js +0 -24
- package/src/comparison/index.d.ts +0 -7
- package/src/comparison/index.js +0 -7
- package/src/comparison/infinity.test.js +0 -122
- package/src/comparison/typeof.test.js +0 -64
- package/src/comparison/types.d.ts +0 -5
- package/src/comparison/types.js +0 -11
- package/src/deep/Deep.d.ts +0 -58
- package/src/deep/Deep.js +0 -267
- package/src/deep/Deep.test.js +0 -130
- package/src/deep/deepCombineLatest.test.js +0 -36
- package/src/deep/deepMerge.test.js +0 -34
- package/src/deep/differenceDeep.test.js +0 -31
- package/src/deep/freshValueDeep.test.js +0 -17
- package/src/deep/index.d.ts +0 -1
- package/src/deep/index.js +0 -2
- package/src/deep/intersectDeep.test.js +0 -25
- package/src/deep/intersectEntries.d.ts +0 -13
- package/src/deep/intersectEntries.js +0 -37
- package/src/deep/intersectEntries.test.js +0 -20
- package/src/deep/objectToDeep.test.js +0 -31
- package/src/deep/replaceValueDeep.test.js +0 -21
- package/src/deep/unionDeep.test.js +0 -30
- package/src/deep/zipValueDeep.test.js +0 -21
- package/src/deep-rxjs/ObservableArray.d.ts +0 -55
- package/src/deep-rxjs/ObservableArray.js +0 -94
- package/src/deep-rxjs/ObservableArray.test.js +0 -117
- package/src/deep-rxjs/index.d.ts +0 -2
- package/src/deep-rxjs/index.js +0 -2
- package/src/deep-rxjs/isRxType.d.ts +0 -9
- package/src/deep-rxjs/isRxType.js +0 -15
- package/src/deep-rxjs/isRxType.test.js +0 -43
- package/src/hyperscript-rxjs/HyperscriptExtensions.d.ts +0 -20
- package/src/hyperscript-rxjs/checkbox.d.ts +0 -13
- package/src/hyperscript-rxjs/checkbox.js +0 -47
- package/src/hyperscript-rxjs/checkbox.test.js +0 -68
- package/src/hyperscript-rxjs/choice.d.ts +0 -13
- package/src/hyperscript-rxjs/choice.js +0 -24
- package/src/hyperscript-rxjs/choice.test.js +0 -108
- package/src/hyperscript-rxjs/collapse.d.ts +0 -14
- package/src/hyperscript-rxjs/collapse.js +0 -32
- package/src/hyperscript-rxjs/collapse.test.js +0 -67
- package/src/hyperscript-rxjs/displays/blockLevelFamily.d.ts +0 -5
- package/src/hyperscript-rxjs/displays/blockLevelFamily.js +0 -51
- package/src/hyperscript-rxjs/displays/getDisplay.d.ts +0 -7
- package/src/hyperscript-rxjs/displays/getDisplay.js +0 -51
- package/src/hyperscript-rxjs/displays/getDisplay.test.js +0 -56
- package/src/hyperscript-rxjs/displays/index.d.ts +0 -3
- package/src/hyperscript-rxjs/displays/index.js +0 -3
- package/src/hyperscript-rxjs/displays/inlineFamily.d.ts +0 -5
- package/src/hyperscript-rxjs/displays/inlineFamily.js +0 -73
- package/src/hyperscript-rxjs/flip.d.ts +0 -15
- package/src/hyperscript-rxjs/flip.js +0 -29
- package/src/hyperscript-rxjs/flip.test.js +0 -85
- package/src/hyperscript-rxjs/fragment.d.ts +0 -10
- package/src/hyperscript-rxjs/fragment.js +0 -22
- package/src/hyperscript-rxjs/fragment.test.js +0 -70
- package/src/hyperscript-rxjs/hyperscript.d.ts +0 -15
- package/src/hyperscript-rxjs/hyperscript.js +0 -170
- package/src/hyperscript-rxjs/hyperscript.test.js +0 -75
- package/src/hyperscript-rxjs/index.d.ts +0 -19
- package/src/hyperscript-rxjs/index.js +0 -19
- package/src/hyperscript-rxjs/multiselect.d.ts +0 -18
- package/src/hyperscript-rxjs/multiselect.js +0 -41
- package/src/hyperscript-rxjs/multiselect.test.js +0 -121
- package/src/hyperscript-rxjs/numberbox.d.ts +0 -14
- package/src/hyperscript-rxjs/numberbox.js +0 -73
- package/src/hyperscript-rxjs/numberbox.test.js +0 -84
- package/src/hyperscript-rxjs/radio.d.ts +0 -15
- package/src/hyperscript-rxjs/radio.js +0 -53
- package/src/hyperscript-rxjs/radio.test.js +0 -59
- package/src/hyperscript-rxjs/select.d.ts +0 -28
- package/src/hyperscript-rxjs/select.js +0 -88
- package/src/hyperscript-rxjs/select.test.js +0 -101
- package/src/hyperscript-rxjs/tabControls/bindTabIndex.d.ts +0 -12
- package/src/hyperscript-rxjs/tabControls/bindTabIndex.js +0 -59
- package/src/hyperscript-rxjs/tabControls/index.d.ts +0 -8
- package/src/hyperscript-rxjs/tabControls/index.js +0 -10
- package/src/hyperscript-rxjs/tabControls/tabControl.d.ts +0 -19
- package/src/hyperscript-rxjs/tabControls/tabControl.js +0 -40
- package/src/hyperscript-rxjs/tabControls/tabControl.test.js +0 -98
- package/src/hyperscript-rxjs/tabControls/tabNavItem.d.ts +0 -9
- package/src/hyperscript-rxjs/tabControls/tabNavItem.js +0 -30
- package/src/hyperscript-rxjs/tabControls/tabPanel.d.ts +0 -9
- package/src/hyperscript-rxjs/tabControls/tabPanel.js +0 -21
- package/src/hyperscript-rxjs/tabControls/tabRoot.d.ts +0 -7
- package/src/hyperscript-rxjs/tabControls/tabRoot.js +0 -26
- package/src/hyperscript-rxjs/tags.d.ts +0 -193
- package/src/hyperscript-rxjs/tags.js +0 -751
- package/src/hyperscript-rxjs/tags.test.js +0 -75
- package/src/hyperscript-rxjs/textNode.d.ts +0 -11
- package/src/hyperscript-rxjs/textNode.js +0 -51
- package/src/hyperscript-rxjs/textNode.test.js +0 -56
- package/src/hyperscript-rxjs/textarea.d.ts +0 -17
- package/src/hyperscript-rxjs/textarea.js +0 -45
- package/src/hyperscript-rxjs/textarea.test.js +0 -52
- package/src/hyperscript-rxjs/textbox.d.ts +0 -15
- package/src/hyperscript-rxjs/textbox.js +0 -42
- package/src/hyperscript-rxjs/textbox.test.js +0 -52
- package/src/index.d.ts +0 -19
- package/src/index.js +0 -19
- package/src/nodes/attachSubscriptionToNode.d.ts +0 -13
- package/src/nodes/attachSubscriptionToNode.js +0 -25
- package/src/nodes/attachSubscriptionToNode.test.js +0 -73
- package/src/nodes/index.d.ts +0 -6
- package/src/nodes/index.js +0 -6
- package/src/nodes/normalizeChildNodes.d.ts +0 -9
- package/src/nodes/normalizeChildNodes.js +0 -15
- package/src/nodes/normalizeChildNodes.test.js +0 -55
- package/src/nodes/parseHyperscriptArgs.d.ts +0 -10
- package/src/nodes/parseHyperscriptArgs.js +0 -57
- package/src/nodes/parseHyperscriptArgs.test.js +0 -85
- package/src/nodes/pipeEvent.d.ts +0 -15
- package/src/nodes/pipeEvent.js +0 -49
- package/src/nodes/pipeEvent.test.js +0 -97
- package/src/nodes/subscribeEvent.d.ts +0 -15
- package/src/nodes/subscribeEvent.js +0 -56
- package/src/nodes/subscribeEvent.test.js +0 -88
- package/src/object/index.d.ts +0 -10
- package/src/object/index.js +0 -11
- package/src/object/intersectObject.d.ts +0 -12
- package/src/object/intersectObject.js +0 -23
- package/src/object/intersectObject.test.js +0 -69
- package/src/object/isEmptyObject.d.ts +0 -7
- package/src/object/isEmptyObject.js +0 -13
- package/src/object/isEmptyObject.test.js +0 -33
- package/src/object/isPlainObject.d.ts +0 -11
- package/src/object/isPlainObject.js +0 -18
- package/src/object/nestedCombineLatest.d.ts +0 -11
- package/src/object/nestedCombineLatest.js +0 -18
- package/src/object/nestedCombineLatest.test.js +0 -25
- package/src/object/nestedMerge.d.ts +0 -11
- package/src/object/nestedMerge.js +0 -11
- package/src/object/nestedMerge.test.js +0 -61
- package/src/object/pickBehaviorSubject.d.ts +0 -13
- package/src/object/pickBehaviorSubject.js +0 -81
- package/src/object/pickBehaviorSubject.test.js +0 -88
- package/src/object/pluckProperty.d.ts +0 -13
- package/src/object/pluckProperty.js +0 -24
- package/src/object/pluckProperty.test.js +0 -37
- package/src/object/restore.d.ts +0 -12
- package/src/object/restore.js +0 -69
- package/src/object/restore.test.js +0 -124
- package/src/object/splitObjectByObservable.d.ts +0 -12
- package/src/object/splitObjectByObservable.js +0 -41
- package/src/object/splitObjectByObservable.test.js +0 -78
- package/src/props/getNestedProperty.d.ts +0 -12
- package/src/props/getNestedProperty.js +0 -31
- package/src/props/getNestedProperty.test.js +0 -72
- package/src/props/index.d.ts +0 -7
- package/src/props/index.js +0 -7
- package/src/props/parsePropName.d.ts +0 -13
- package/src/props/parsePropName.js +0 -45
- package/src/props/parsePropName.test.js +0 -67
- package/src/props/setProp.d.ts +0 -16
- package/src/props/setProp.js +0 -42
- package/src/props/setProp.test.js +0 -59
- package/src/props/setProps.d.ts +0 -14
- package/src/props/setProps.js +0 -47
- package/src/props/setProps.test.js +0 -97
- package/src/props/subscribeProp.d.ts +0 -16
- package/src/props/subscribeProp.js +0 -47
- package/src/props/subscribeProp.test.js +0 -81
- package/src/ramda/compose.d.ts +0 -10
- package/src/ramda/compose.js +0 -36
- package/src/ramda/compose.test.js +0 -73
- package/src/ramda/cond.d.ts +0 -12
- package/src/ramda/cond.js +0 -29
- package/src/ramda/cond.test.js +0 -88
- package/src/ramda/fold.d.ts +0 -13
- package/src/ramda/fold.js +0 -20
- package/src/ramda/fold.test.js +0 -51
- package/src/ramda/index.d.ts +0 -6
- package/src/ramda/index.js +0 -6
- package/src/ramda/pipe.d.ts +0 -13
- package/src/ramda/pipe.js +0 -27
- package/src/ramda/pipe.test.js +0 -77
- package/src/ramda/unfold.d.ts +0 -11
- package/src/ramda/unfold.js +0 -20
- package/src/ramda/unfold.test.js +0 -29
- package/src/unquoted-json/ajax.test.js +0 -1074
- package/src/unquoted-json/index.d.ts +0 -13
- package/src/unquoted-json/index.js +0 -12
- package/src/unquoted-json/queryStringify.d.ts +0 -8
- package/src/unquoted-json/queryStringify.js +0 -70
- package/src/unquoted-json/queryStringify.test.js +0 -110
- package/src/unquoted-json/stringifyKey.d.ts +0 -7
- package/src/unquoted-json/stringifyKey.js +0 -16
- package/src/unquoted-json/stringifyKey.test.js +0 -51
- package/src/unquoted-json/stringifyStringValue.d.ts +0 -7
- package/src/unquoted-json/stringifyStringValue.js +0 -17
- package/src/unquoted-json/stringifyStringValue.test.js +0 -52
- package/src/unquoted-json/unquotedJsonStringify.d.ts +0 -7
- package/src/unquoted-json/unquotedJsonStringify.js +0 -39
- package/src/unquoted-json/unquotedJsonStringify.test.js +0 -52
@@ -1,59 +0,0 @@
|
|
1
|
-
import { filter, map } from 'rxjs/operators';
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
3
|
-
|
4
|
-
/**
|
5
|
-
* @typedef {import("../HyperscriptExtensions").HyperscriptExtensions<HTMLElement>} HyperscriptElement
|
6
|
-
*/
|
7
|
-
|
8
|
-
/**
|
9
|
-
* 绑定选项卡的激活状态到 `tabIndex`。
|
10
|
-
*
|
11
|
-
* `bindTabIndex` 函数将选项卡的导航按钮和内容面板与 `tabIndex` 绑定,
|
12
|
-
* 实现动态切换选项卡的功能。
|
13
|
-
*
|
14
|
-
* @param {HTMLElement} tabRoot - 选项卡的根容器,包含导航栏和内容面板。
|
15
|
-
* @param {BehaviorSubject<number>} tabIndex$ - 表示当前激活选项卡索引的 BehaviorSubject。
|
16
|
-
*
|
17
|
-
*/
|
18
|
-
export function bindTabIndex(tabRoot, tabIndex$) {
|
19
|
-
|
20
|
-
const navs = /** @type {HyperscriptElement} */ (tabRoot.firstChild); // 导航栏容器
|
21
|
-
const panels = /** @type {HyperscriptElement} */ (tabRoot.lastChild); // 内容面板容器
|
22
|
-
|
23
|
-
// 订阅 tabIndex,动态更新选项卡的激活状态
|
24
|
-
tabIndex$.subscribe(i => {
|
25
|
-
// 更新导航按钮的激活状态
|
26
|
-
Array.from(navs.childNodes).forEach((li, j) => {
|
27
|
-
const btn = /** @type {HTMLElement} */(li.firstChild);
|
28
|
-
if (i === j) {
|
29
|
-
btn.classList.add('active');
|
30
|
-
} else {
|
31
|
-
btn.classList.remove('active');
|
32
|
-
}
|
33
|
-
});
|
34
|
-
|
35
|
-
// 更新内容面板的激活状态
|
36
|
-
Array.from(panels.childNodes)
|
37
|
-
.forEach(
|
38
|
-
(panel, j) => {
|
39
|
-
const classList = /** @type {HTMLElement} */ (panel).classList
|
40
|
-
if (i === j) {
|
41
|
-
classList.add('active');
|
42
|
-
} else {
|
43
|
-
classList.remove('active');
|
44
|
-
}
|
45
|
-
});
|
46
|
-
});
|
47
|
-
|
48
|
-
// 监听导航按钮的点击事件,更新 tabIndex
|
49
|
-
navs.pipeEvent('click', click$ =>
|
50
|
-
click$.pipe(
|
51
|
-
map(e =>
|
52
|
-
Array.from(navs.childNodes)
|
53
|
-
.map(e => /** @type {HTMLElement} */(e.firstChild))
|
54
|
-
.indexOf(/** @type {HTMLElement} */(e.target))
|
55
|
-
),
|
56
|
-
filter(i => i > -1) // 过滤无效索引
|
57
|
-
).subscribe(tabIndex$)
|
58
|
-
);
|
59
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* 创建静态选项卡组件。
|
5
|
-
*
|
6
|
-
* @param props - 选项卡组件的属性,必须包含 tabIndex(BehaviorSubject<number>),可选 rootProps。
|
7
|
-
* @param tabs - 导航按钮的内容数组,可以是字符串或 HTML 元素。
|
8
|
-
* @param panels - 内容面板的内容数组,可以是字符串或 HTML 元素。
|
9
|
-
* @returns 返回一个包含导航栏和内容面板的选项卡组件。
|
10
|
-
*/
|
11
|
-
export function tabControl(
|
12
|
-
props: {
|
13
|
-
tabIndex: BehaviorSubject<number>,
|
14
|
-
[key: string]: any
|
15
|
-
},
|
16
|
-
tabs: Array<string | HTMLElement>,
|
17
|
-
panels: Array<string | HTMLElement>
|
18
|
-
): HTMLElement;
|
19
|
-
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import { tabRoot } from './tabRoot';
|
2
|
-
import { tabNavItem } from './tabNavItem';
|
3
|
-
import { tabPanel } from './tabPanel';
|
4
|
-
import { bindTabIndex } from './bindTabIndex';
|
5
|
-
import { BehaviorSubject } from 'rxjs';
|
6
|
-
|
7
|
-
/**
|
8
|
-
* 创建静态选项卡组件。
|
9
|
-
*
|
10
|
-
* `tabControl` 函数生成一个静态选项卡组件,其中选项卡的数量和顺序是固定的。
|
11
|
-
* 每个选项卡由一个导航按钮和一个对应的内容面板组成。
|
12
|
-
*
|
13
|
-
* @param {{ tabIndex: BehaviorSubject<number>, [key: string]: any}} props - 选项卡组件的属性。
|
14
|
-
* @param {Array<string|HTMLElement>} tabs - 导航按钮的内容数组,可以是字符串或 HTML 元素。
|
15
|
-
* @param {Array<string|HTMLElement>} panels - 内容面板的内容数组,可以是字符串或 HTML 元素。
|
16
|
-
* @returns {HTMLElement} - 返回一个包含导航栏和内容面板的选项卡组件。
|
17
|
-
*/
|
18
|
-
export function tabControl(props, tabs, panels) {
|
19
|
-
const { tabIndex, ...rootProps } = props;
|
20
|
-
|
21
|
-
// 创建选项卡的根容器
|
22
|
-
const root = tabRoot(rootProps);
|
23
|
-
const tablist = /** @type {HTMLElement} */ (root.firstChild); // 导航栏容器
|
24
|
-
const tabcontent = /** @type {HTMLElement} */ (root.lastChild); // 内容面板容器
|
25
|
-
|
26
|
-
// 创建导航按钮并添加到导航栏
|
27
|
-
tabs
|
28
|
-
.map(tab => tabNavItem(tab))
|
29
|
-
.forEach(item => tablist.appendChild(item));
|
30
|
-
|
31
|
-
// 创建内容面板并添加到内容区域
|
32
|
-
panels
|
33
|
-
.map(panel => tabPanel(panel))
|
34
|
-
.forEach(panel => tabcontent.appendChild(panel));
|
35
|
-
|
36
|
-
// 绑定选项卡的激活状态
|
37
|
-
bindTabIndex(root, tabIndex);
|
38
|
-
|
39
|
-
return root;
|
40
|
-
}
|
@@ -1,98 +0,0 @@
|
|
1
|
-
import { tabControl } from './tabControl';
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
3
|
-
|
4
|
-
describe('tabControl', () => {
|
5
|
-
test('should create a tab control with navigation and content panels', () => {
|
6
|
-
const tabIndex = new BehaviorSubject(0);
|
7
|
-
const tabs = ['Tab 1', 'Tab 2', 'Tab 3'];
|
8
|
-
const panels = ['Content 1', 'Content 2', 'Content 3'];
|
9
|
-
|
10
|
-
const tabComponent = tabControl({ tabIndex }, tabs, panels);
|
11
|
-
|
12
|
-
// 验证根容器
|
13
|
-
expect(tabComponent.tagName).toBe('DIV');
|
14
|
-
expect(tabComponent.children.length).toBe(2);
|
15
|
-
|
16
|
-
// 验证导航栏
|
17
|
-
const nav = tabComponent.firstChild;
|
18
|
-
expect(nav.tagName).toBe('UL');
|
19
|
-
expect(nav.classList.contains('nav-tabs')).toBe(true);
|
20
|
-
expect(nav.children.length).toBe(3);
|
21
|
-
|
22
|
-
// 验证导航按钮
|
23
|
-
Array.from(nav.children).forEach((navItem, index) => {
|
24
|
-
expect(navItem.tagName).toBe('LI');
|
25
|
-
expect(navItem.firstChild.tagName).toBe('BUTTON');
|
26
|
-
expect(navItem.firstChild.textContent).toBe(tabs[index]);
|
27
|
-
});
|
28
|
-
|
29
|
-
// 验证内容面板
|
30
|
-
const content = tabComponent.lastChild;
|
31
|
-
expect(content.tagName).toBe('DIV');
|
32
|
-
expect(content.classList.contains('tab-content')).toBe(true);
|
33
|
-
expect(content.children.length).toBe(3);
|
34
|
-
|
35
|
-
// 验证内容面板内容
|
36
|
-
Array.from(content.children).forEach((panel, index) => {
|
37
|
-
expect(panel.tagName).toBe('DIV');
|
38
|
-
expect(panel.textContent).toBe(panels[index]);
|
39
|
-
});
|
40
|
-
|
41
|
-
// 验证初始激活状态
|
42
|
-
expect(nav.children[0].firstChild.classList.contains('active')).toBe(true);
|
43
|
-
expect(content.children[0].classList.contains('active')).toBe(true);
|
44
|
-
expect(nav.children[1].firstChild.classList.contains('active')).toBe(false);
|
45
|
-
expect(content.children[1].classList.contains('active')).toBe(false);
|
46
|
-
});
|
47
|
-
|
48
|
-
test('should update active tab when tabIndex changes', () => {
|
49
|
-
const tabIndex = new BehaviorSubject(0);
|
50
|
-
const tabs = ['Tab 1', 'Tab 2', 'Tab 3'];
|
51
|
-
const panels = ['Content 1', 'Content 2', 'Content 3'];
|
52
|
-
|
53
|
-
const tabComponent = tabControl({ tabIndex }, tabs, panels);
|
54
|
-
|
55
|
-
const nav = tabComponent.firstChild;
|
56
|
-
const content = tabComponent.lastChild;
|
57
|
-
|
58
|
-
// 切换到第二个选项卡
|
59
|
-
tabIndex.next(1);
|
60
|
-
|
61
|
-
// 验证激活状态
|
62
|
-
expect(nav.children[0].firstChild.classList.contains('active')).toBe(false);
|
63
|
-
expect(content.children[0].classList.contains('active')).toBe(false);
|
64
|
-
expect(nav.children[1].firstChild.classList.contains('active')).toBe(true);
|
65
|
-
expect(content.children[1].classList.contains('active')).toBe(true);
|
66
|
-
|
67
|
-
// 切换到第三个选项卡
|
68
|
-
tabIndex.next(2);
|
69
|
-
|
70
|
-
// 验证激活状态
|
71
|
-
expect(nav.children[1].firstChild.classList.contains('active')).toBe(false);
|
72
|
-
expect(content.children[1].classList.contains('active')).toBe(false);
|
73
|
-
expect(nav.children[2].firstChild.classList.contains('active')).toBe(true);
|
74
|
-
expect(content.children[2].classList.contains('active')).toBe(true);
|
75
|
-
});
|
76
|
-
|
77
|
-
test('should handle empty tabs and panels', () => {
|
78
|
-
const tabIndex = new BehaviorSubject(0);
|
79
|
-
const tabs = [];
|
80
|
-
const panels = [];
|
81
|
-
|
82
|
-
const tabComponent = tabControl({ tabIndex }, tabs, panels);
|
83
|
-
|
84
|
-
// 验证根容器
|
85
|
-
expect(tabComponent.tagName).toBe('DIV');
|
86
|
-
expect(tabComponent.children.length).toBe(2);
|
87
|
-
|
88
|
-
// 验证导航栏为空
|
89
|
-
const nav = tabComponent.firstChild;
|
90
|
-
expect(nav.tagName).toBe('UL');
|
91
|
-
expect(nav.children.length).toBe(0);
|
92
|
-
|
93
|
-
// 验证内容面板为空
|
94
|
-
const content = tabComponent.lastChild;
|
95
|
-
expect(content.tagName).toBe('DIV');
|
96
|
-
expect(content.children.length).toBe(0);
|
97
|
-
});
|
98
|
-
});
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import { button, li } from '../tags';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* 选项卡的导航按钮。
|
5
|
-
*
|
6
|
-
* `tabNavItem` 函数生成一个选项卡的导航按钮,通常用于选项卡的导航栏中。
|
7
|
-
*
|
8
|
-
* @param {...(string|HTMLElement)} source - 按钮的内容,可以是字符串或 HTML 元素。
|
9
|
-
* @returns {HTMLElement} - 返回一个带有 `nav-item` 样式类的 `<li>` 元素,内部包含一个按钮。
|
10
|
-
*
|
11
|
-
*/
|
12
|
-
export function tabNavItem(...source) {
|
13
|
-
// <li class="nav-item">
|
14
|
-
// <button type="button" class="btn btn-link nav-link">
|
15
|
-
// source
|
16
|
-
// </button>
|
17
|
-
// </li>
|
18
|
-
return li(
|
19
|
-
{
|
20
|
-
className: 'nav-item',
|
21
|
-
},
|
22
|
-
button(
|
23
|
-
{
|
24
|
-
type: 'button',
|
25
|
-
className: 'btn btn-link nav-link',
|
26
|
-
},
|
27
|
-
...source
|
28
|
-
)
|
29
|
-
);
|
30
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { div } from '../tags'
|
2
|
-
|
3
|
-
/**
|
4
|
-
* 选项卡的内容面板。
|
5
|
-
*
|
6
|
-
* `tabPanel` 函数生成一个选项卡的内容区域,用于显示与选项卡对应的内容。
|
7
|
-
*
|
8
|
-
* @param {...(string|HTMLElement)} source - 面板的内容,可以是字符串或 HTML 元素。
|
9
|
-
* @returns {HTMLElement} - 返回一个带有 `tab-pane` 样式类的 `<div>` 元素。
|
10
|
-
*
|
11
|
-
*/
|
12
|
-
export function tabPanel(...source) {
|
13
|
-
// <div class="tab-pane">
|
14
|
-
// source
|
15
|
-
// </div>
|
16
|
-
return div({
|
17
|
-
className: 'tab-pane',
|
18
|
-
},
|
19
|
-
...source
|
20
|
-
)
|
21
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { div, ul } from '../tags';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* 选项卡组件的基础框架。
|
5
|
-
*
|
6
|
-
* `tabRoot` 函数生成一个包含导航栏和内容面板的容器结构,
|
7
|
-
* 用于构建选项卡组件的基础部分。
|
8
|
-
*
|
9
|
-
* @param {Object} props - 传递给根容器 `<div>` 的属性(如 `id`、`className` 等)。
|
10
|
-
* @returns {HTMLElement} - 返回一个包含导航栏和内容面板的 `<div>` 元素。
|
11
|
-
*
|
12
|
-
*/
|
13
|
-
export function tabRoot(props) {
|
14
|
-
// <div>
|
15
|
-
// <ul class="nav nav-tabs"></ul>
|
16
|
-
// <div class="tab-content"></div>
|
17
|
-
// </div>
|
18
|
-
return div(props,
|
19
|
-
ul({
|
20
|
-
className: 'nav nav-tabs',
|
21
|
-
}),
|
22
|
-
div({
|
23
|
-
className: 'tab-content',
|
24
|
-
})
|
25
|
-
);
|
26
|
-
}
|
@@ -1,193 +0,0 @@
|
|
1
|
-
import { HyperscriptExtensions } from './HyperscriptExtensions';
|
2
|
-
|
3
|
-
export function a(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLAnchorElement>;
|
4
|
-
export function abbr(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
5
|
-
export function address(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
6
|
-
export function area(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLAreaElement>;
|
7
|
-
export function article(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
8
|
-
export function aside(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
9
|
-
export function audio(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLAudioElement>;
|
10
|
-
export function b(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
11
|
-
export function bdi(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
12
|
-
export function bdo(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
13
|
-
export function blockquote(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLQuoteElement>;
|
14
|
-
export function br(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLBRElement>;
|
15
|
-
export function button(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLButtonElement>;
|
16
|
-
export function caption(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
17
|
-
export function cite(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
18
|
-
export function code(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
19
|
-
export function col(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableColElement>;
|
20
|
-
export function colgroup(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableColElement>;
|
21
|
-
export function data(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDataElement>;
|
22
|
-
export function datalist(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDataListElement>;
|
23
|
-
export function dd(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
24
|
-
export function del(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLModElement>;
|
25
|
-
export function details(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDetailsElement>;
|
26
|
-
export function dfn(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
27
|
-
export function dialog(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDialogElement>;
|
28
|
-
export function div(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDivElement>;
|
29
|
-
export function dl(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDListElement>;
|
30
|
-
export function dt(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
31
|
-
export function em(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
32
|
-
export function fieldset(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLFieldSetElement>;
|
33
|
-
export function figcaption(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
34
|
-
export function figure(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
35
|
-
export function footer(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
36
|
-
export function form(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLFormElement>;
|
37
|
-
export function h1(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
38
|
-
export function h2(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
39
|
-
export function h3(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
40
|
-
export function h4(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
41
|
-
export function h5(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
42
|
-
export function h6(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
43
|
-
export function header(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
44
|
-
export function hgroup(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
45
|
-
export function hr(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHRElement>;
|
46
|
-
export function i(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
47
|
-
export function img(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLImageElement>;
|
48
|
-
export function input(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLInputElement>;
|
49
|
-
export function ins(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLModElement>;
|
50
|
-
export function kbd(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
51
|
-
export function label(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLLabelElement>;
|
52
|
-
export function legend(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLLegendElement>;
|
53
|
-
export function li(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLLIElement>;
|
54
|
-
export function main(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
55
|
-
export function mark(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
56
|
-
export function menu(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLMenuElement>;
|
57
|
-
export function menuitem(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
58
|
-
export function meter(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLMeterElement>;
|
59
|
-
export function nav(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
60
|
-
export function ol(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLOListElement>;
|
61
|
-
export function optgroup(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLOptGroupElement>;
|
62
|
-
export function option(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLOptionElement>;
|
63
|
-
export function output(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLOutputElement>;
|
64
|
-
export function p(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLParagraphElement>;
|
65
|
-
export function pre(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLPreElement>;
|
66
|
-
export function progress(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLProgressElement>;
|
67
|
-
export function q(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLQuoteElement>;
|
68
|
-
export function rb(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
69
|
-
export function rp(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
70
|
-
export function rt(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
71
|
-
export function rtc(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
72
|
-
export function ruby(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
73
|
-
export function s(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
74
|
-
export function samp(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
75
|
-
export function section(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
76
|
-
export function small(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
77
|
-
export function span(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLSpanElement>;
|
78
|
-
export function strong(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
79
|
-
export function sub(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
80
|
-
export function summary(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
81
|
-
export function sup(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
82
|
-
export function table(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableElement>;
|
83
|
-
export function tbody(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
|
84
|
-
export function td(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableCellElement>;
|
85
|
-
export function tfoot(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
|
86
|
-
export function th(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableCellElement>;
|
87
|
-
export function thead(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
|
88
|
-
export function time(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTimeElement>;
|
89
|
-
export function tr(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableRowElement>;
|
90
|
-
export function track(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTrackElement>;
|
91
|
-
export function tt(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
92
|
-
export function u(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
93
|
-
export function ul(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLUListElement>;
|
94
|
-
export function video(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLVideoElement>;
|
95
|
-
export function wbr(props: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
96
|
-
|
97
|
-
export function a(...childNodes: any[]): HyperscriptExtensions<HTMLAnchorElement>;
|
98
|
-
export function abbr(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
99
|
-
export function address(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
100
|
-
export function area(...childNodes: any[]): HyperscriptExtensions<HTMLAreaElement>;
|
101
|
-
export function article(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
102
|
-
export function aside(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
103
|
-
export function audio(...childNodes: any[]): HyperscriptExtensions<HTMLAudioElement>;
|
104
|
-
export function b(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
105
|
-
export function bdi(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
106
|
-
export function bdo(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
107
|
-
export function blockquote(...childNodes: any[]): HyperscriptExtensions<HTMLQuoteElement>;
|
108
|
-
export function br(...childNodes: any[]): HyperscriptExtensions<HTMLBRElement>;
|
109
|
-
export function button(...childNodes: any[]): HyperscriptExtensions<HTMLButtonElement>;
|
110
|
-
export function caption(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
111
|
-
export function cite(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
112
|
-
export function code(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
113
|
-
export function col(...childNodes: any[]): HyperscriptExtensions<HTMLTableColElement>;
|
114
|
-
export function colgroup(...childNodes: any[]): HyperscriptExtensions<HTMLTableColElement>;
|
115
|
-
export function data(...childNodes: any[]): HyperscriptExtensions<HTMLDataElement>;
|
116
|
-
export function datalist(...childNodes: any[]): HyperscriptExtensions<HTMLDataListElement>;
|
117
|
-
export function dd(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
118
|
-
export function del(...childNodes: any[]): HyperscriptExtensions<HTMLModElement>;
|
119
|
-
export function details(...childNodes: any[]): HyperscriptExtensions<HTMLDetailsElement>;
|
120
|
-
export function dfn(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
121
|
-
export function dialog(...childNodes: any[]): HyperscriptExtensions<HTMLDialogElement>;
|
122
|
-
export function div(...childNodes: any[]): HyperscriptExtensions<HTMLDivElement>;
|
123
|
-
export function dl(...childNodes: any[]): HyperscriptExtensions<HTMLDListElement>;
|
124
|
-
export function dt(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
125
|
-
export function em(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
126
|
-
export function fieldset(...childNodes: any[]): HyperscriptExtensions<HTMLFieldSetElement>;
|
127
|
-
export function figcaption(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
128
|
-
export function figure(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
129
|
-
export function footer(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
130
|
-
export function form(...childNodes: any[]): HyperscriptExtensions<HTMLFormElement>;
|
131
|
-
export function h1(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
132
|
-
export function h2(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
133
|
-
export function h3(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
134
|
-
export function h4(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
135
|
-
export function h5(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
136
|
-
export function h6(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
|
137
|
-
export function header(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
138
|
-
export function hgroup(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
139
|
-
export function hr(...childNodes: any[]): HyperscriptExtensions<HTMLHRElement>;
|
140
|
-
export function i(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
141
|
-
export function img(...childNodes: any[]): HyperscriptExtensions<HTMLImageElement>;
|
142
|
-
export function input(...childNodes: any[]): HyperscriptExtensions<HTMLInputElement>;
|
143
|
-
export function ins(...childNodes: any[]): HyperscriptExtensions<HTMLModElement>;
|
144
|
-
export function kbd(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
145
|
-
export function label(...childNodes: any[]): HyperscriptExtensions<HTMLLabelElement>;
|
146
|
-
export function legend(...childNodes: any[]): HyperscriptExtensions<HTMLLegendElement>;
|
147
|
-
export function li(...childNodes: any[]): HyperscriptExtensions<HTMLLIElement>;
|
148
|
-
export function main(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
149
|
-
export function mark(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
150
|
-
export function menu(...childNodes: any[]): HyperscriptExtensions<HTMLMenuElement>;
|
151
|
-
export function menuitem(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
152
|
-
export function meter(...childNodes: any[]): HyperscriptExtensions<HTMLMeterElement>;
|
153
|
-
export function nav(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
154
|
-
export function ol(...childNodes: any[]): HyperscriptExtensions<HTMLOListElement>;
|
155
|
-
export function optgroup(...childNodes: any[]): HyperscriptExtensions<HTMLOptGroupElement>;
|
156
|
-
export function option(...childNodes: any[]): HyperscriptExtensions<HTMLOptionElement>;
|
157
|
-
export function output(...childNodes: any[]): HyperscriptExtensions<HTMLOutputElement>;
|
158
|
-
export function p(...childNodes: any[]): HyperscriptExtensions<HTMLParagraphElement>;
|
159
|
-
export function pre(...childNodes: any[]): HyperscriptExtensions<HTMLPreElement>;
|
160
|
-
export function progress(...childNodes: any[]): HyperscriptExtensions<HTMLProgressElement>;
|
161
|
-
export function q(...childNodes: any[]): HyperscriptExtensions<HTMLQuoteElement>;
|
162
|
-
export function rb(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
163
|
-
export function rp(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
164
|
-
export function rt(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
165
|
-
export function rtc(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
166
|
-
export function ruby(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
167
|
-
export function s(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
168
|
-
export function samp(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
169
|
-
export function section(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
170
|
-
export function small(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
171
|
-
export function span(...childNodes: any[]): HyperscriptExtensions<HTMLSpanElement>;
|
172
|
-
export function strong(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
173
|
-
export function sub(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
174
|
-
export function summary(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
175
|
-
export function sup(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
176
|
-
export function table(...childNodes: any[]): HyperscriptExtensions<HTMLTableElement>;
|
177
|
-
export function tbody(...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
|
178
|
-
export function td(...childNodes: any[]): HyperscriptExtensions<HTMLTableCellElement>;
|
179
|
-
export function tfoot(...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
|
180
|
-
export function th(...childNodes: any[]): HyperscriptExtensions<HTMLTableCellElement>;
|
181
|
-
export function thead(...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
|
182
|
-
export function time(...childNodes: any[]): HyperscriptExtensions<HTMLTimeElement>;
|
183
|
-
export function tr(...childNodes: any[]): HyperscriptExtensions<HTMLTableRowElement>;
|
184
|
-
export function track(...childNodes: any[]): HyperscriptExtensions<HTMLTrackElement>;
|
185
|
-
export function tt(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
186
|
-
export function u(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
187
|
-
export function ul(...childNodes: any[]): HyperscriptExtensions<HTMLUListElement>;
|
188
|
-
export function video(...childNodes: any[]): HyperscriptExtensions<HTMLVideoElement>;
|
189
|
-
export function wbr(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|