@tempots/dom 9.0.2 → 10.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/README.md +6 -1
- package/{components → dom}/animatable.d.ts +7 -1
- package/dom/attr.d.ts +73 -0
- package/dom/dom-context.d.ts +108 -0
- package/dom/dom-utils.d.ts +21 -0
- package/dom/handle-anchor-click.d.ts +13 -0
- package/dom/ssr-tracker.d.ts +1 -0
- package/dom/ssr.d.ts +8 -0
- package/index.cjs +1 -0
- package/index.d.ts +52 -34
- package/index.js +1397 -31
- package/mountable/appearance.d.ts +38 -0
- package/mountable/async.d.ts +7 -0
- package/mountable/attribute.d.ts +489 -0
- package/mountable/autofocus.d.ts +3 -0
- package/mountable/autoselect.d.ts +3 -0
- package/mountable/bind.d.ts +16 -0
- package/mountable/conjunction.d.ts +8 -0
- package/mountable/consumers.d.ts +12 -0
- package/mountable/ctx.d.ts +3 -0
- package/mountable/domel.d.ts +3 -0
- package/mountable/element.d.ts +236 -0
- package/mountable/empty.d.ts +3 -0
- package/mountable/ensure.d.ts +4 -0
- package/mountable/foreach.d.ts +5 -0
- package/mountable/fragment.d.ts +3 -0
- package/mountable/handler.d.ts +102 -0
- package/mountable/hidden-when-empty.d.ts +3 -0
- package/mountable/html-title.d.ts +3 -0
- package/mountable/inviewport.d.ts +6 -0
- package/mountable/map-signal.d.ts +4 -0
- package/mountable/not-empty.d.ts +4 -0
- package/mountable/ondispose.d.ts +4 -0
- package/mountable/oneof.d.ts +22 -0
- package/mountable/onmount.d.ts +3 -0
- package/mountable/portal.d.ts +4 -0
- package/mountable/providers.d.ts +16 -0
- package/mountable/render.d.ts +8 -0
- package/mountable/repeat.d.ts +5 -0
- package/mountable/size.d.ts +8 -0
- package/mountable/style.d.ts +504 -0
- package/mountable/task.d.ts +7 -0
- package/mountable/text.d.ts +6 -0
- package/mountable/when.d.ts +4 -0
- package/package.json +15 -8
- package/std/interpolate.d.ts +5 -0
- package/std/position.d.ts +9 -0
- package/std/signal.d.ts +120 -0
- package/types/aria-attributes.d.ts +50 -0
- package/types/css-styles.d.ts +3 -0
- package/types/domain.d.ts +14 -0
- package/types/html-attributes.d.ts +115 -0
- package/types/html-events.d.ts +89 -0
- package/types/html-tags.d.ts +113 -0
- package/types/mathml-attributes.d.ts +50 -0
- package/types/mathml-tags.d.ts +30 -0
- package/types/svg-attributes.d.ts +243 -0
- package/types/svg-tags.d.ts +64 -0
- package/clean.d.ts +0 -2
- package/clean.js +0 -1
- package/components/Attribute.d.ts +0 -15
- package/components/Attribute.js +0 -16
- package/components/Autofocus.d.ts +0 -2
- package/components/Autofocus.js +0 -4
- package/components/BooleanAttribute.d.ts +0 -15
- package/components/BooleanAttribute.js +0 -16
- package/components/ClassName.d.ts +0 -13
- package/components/ClassName.js +0 -14
- package/components/El.d.ts +0 -15
- package/components/El.js +0 -21
- package/components/FadeIn.d.ts +0 -20
- package/components/FadeIn.js +0 -54
- package/components/FadeOut.d.ts +0 -16
- package/components/FadeOut.js +0 -39
- package/components/For.d.ts +0 -18
- package/components/For.js +0 -27
- package/components/Fragment.d.ts +0 -12
- package/components/Fragment.js +0 -16
- package/components/HiddenWhenEmpty.d.ts +0 -7
- package/components/HiddenWhenEmpty.js +0 -13
- package/components/If.d.ts +0 -14
- package/components/If.js +0 -19
- package/components/InnerHTML.d.ts +0 -13
- package/components/InnerHTML.js +0 -23
- package/components/Lifecycle.d.ts +0 -14
- package/components/Lifecycle.js +0 -18
- package/components/NotEmpty.d.ts +0 -9
- package/components/NotEmpty.js +0 -11
- package/components/On.d.ts +0 -15
- package/components/On.js +0 -14
- package/components/OnRemove.d.ts +0 -6
- package/components/OnRemove.js +0 -4
- package/components/OneOf.d.ts +0 -62
- package/components/OneOf.js +0 -68
- package/components/Portal.d.ts +0 -15
- package/components/Portal.js +0 -20
- package/components/Property.d.ts +0 -15
- package/components/Property.js +0 -16
- package/components/Provider.d.ts +0 -28
- package/components/Provider.js +0 -44
- package/components/Repeat.d.ts +0 -28
- package/components/Repeat.js +0 -146
- package/components/Show.d.ts +0 -15
- package/components/Show.js +0 -8
- package/components/Text.d.ts +0 -15
- package/components/Text.js +0 -33
- package/components/TextContent.d.ts +0 -13
- package/components/TextContent.js +0 -23
- package/components/animatable.js +0 -283
- package/dom-context.d.ts +0 -39
- package/dom-context.js +0 -263
- package/helpers/handle-anchor-click.d.ts +0 -4
- package/helpers/handle-anchor-click.js +0 -43
- package/helpers/handle-text-input.d.ts +0 -1
- package/helpers/handle-text-input.js +0 -4
- package/helpers/is-empty-element.d.ts +0 -2
- package/helpers/is-empty-element.js +0 -8
- package/jsx-dev-runtime.d.ts +0 -1
- package/jsx-dev-runtime.js +0 -1
- package/jsx-runtime.d.ts +0 -9
- package/jsx-runtime.js +0 -157
- package/jsx.d.ts +0 -806
- package/jsx.js +0 -1
- package/prop.d.ts +0 -58
- package/prop.js +0 -256
- package/render.d.ts +0 -3
- package/render.js +0 -7
- package/renderable.d.ts +0 -5
- package/renderable.js +0 -1
package/std/signal.d.ts
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
declare const $isSignal: unique symbol;
|
|
2
|
+
declare const $isProp: unique symbol;
|
|
3
|
+
declare const $isComputed: unique symbol;
|
|
4
|
+
export declare class Signal<T> {
|
|
5
|
+
readonly equals: (a: T, b: T) => boolean;
|
|
6
|
+
static ofPromise<T>(promise: Promise<T>, init: T, recover?: (error: unknown) => T, equals?: (a: T, b: T) => boolean): Signal<T>;
|
|
7
|
+
static is<T = unknown>(value: unknown): value is Signal<T>;
|
|
8
|
+
static wrap<T>(value: T | Signal<T>, equals?: (a: T, b: T) => boolean): Signal<T>;
|
|
9
|
+
static maybeWrap<T>(value: T | Signal<T> | null | undefined): Signal<T> | undefined | null;
|
|
10
|
+
static unwrap<T>(value: Signal<T> | T): T;
|
|
11
|
+
static map<T, U>(value: Value<T>, fn: (value: T) => U): Value<U>;
|
|
12
|
+
protected readonly [$isSignal] = true;
|
|
13
|
+
protected _value: T;
|
|
14
|
+
protected readonly _derivatives: Array<Computed<unknown>>;
|
|
15
|
+
protected readonly _onValueListeners: Array<(value: T) => void>;
|
|
16
|
+
protected readonly _onDisposeListeners: Array<() => void>;
|
|
17
|
+
constructor(value: T, equals: (a: T, b: T) => boolean);
|
|
18
|
+
readonly get: () => T;
|
|
19
|
+
get value(): T;
|
|
20
|
+
readonly hasListeners: () => boolean;
|
|
21
|
+
readonly on: (listener: (value: T) => void) => () => void;
|
|
22
|
+
protected readonly _setAndNotify: (newV: T, forceNotifications: boolean) => void;
|
|
23
|
+
protected _disposed: boolean;
|
|
24
|
+
readonly isDisposed: () => boolean;
|
|
25
|
+
readonly onDispose: (listener: () => void) => void;
|
|
26
|
+
readonly dispose: () => void;
|
|
27
|
+
readonly map: <U>(fn: (value: T) => U, equals?: (a: U, b: U) => boolean) => Computed<U>;
|
|
28
|
+
readonly flatMap: <U>(fn: (value: T) => Signal<U>, equals?: (a: U, b: U) => boolean) => Computed<U>;
|
|
29
|
+
readonly tap: (fn: (value: T) => void) => Computed<T>;
|
|
30
|
+
readonly at: <K extends keyof T>(key: K) => Signal<T[K]>;
|
|
31
|
+
readonly filter: (fn: (value: T) => boolean, startValue?: T) => Computed<T>;
|
|
32
|
+
readonly filterMap: <U>(fn: (value: T) => U | undefined | null, startValue: U, equals?: (a: U, b: U) => boolean) => Computed<U>;
|
|
33
|
+
readonly mapAsync: <U>(fn: (value: T) => Promise<U>, alt: U, recover?: (error: unknown) => U, equals?: (a: U, b: U) => boolean) => Prop<U>;
|
|
34
|
+
readonly mapMaybe: <U>(fn: (value: T) => U | undefined | null, alt: U) => Computed<U>;
|
|
35
|
+
readonly feedProp: (prop: Prop<T>, autoDisposeProp?: boolean) => Prop<T>;
|
|
36
|
+
readonly deriveProp: (autoDisposeProp?: boolean) => Prop<T>;
|
|
37
|
+
readonly count: () => Computed<number>;
|
|
38
|
+
readonly setDerivative: <U>(computed: Computed<U>) => void;
|
|
39
|
+
}
|
|
40
|
+
export declare class Computed<T> extends Signal<T> {
|
|
41
|
+
private readonly _fn;
|
|
42
|
+
static is<T = unknown>(value: unknown): value is Computed<T>;
|
|
43
|
+
protected readonly [$isComputed] = true;
|
|
44
|
+
protected _isDirty: boolean;
|
|
45
|
+
constructor(_fn: () => T, equals: (a: T, b: T) => boolean);
|
|
46
|
+
readonly setDirty: () => void;
|
|
47
|
+
protected _scheduleCount: number;
|
|
48
|
+
protected readonly scheduleNotify: () => void;
|
|
49
|
+
readonly get: () => T;
|
|
50
|
+
get value(): T;
|
|
51
|
+
}
|
|
52
|
+
export declare class Prop<T> extends Signal<T> {
|
|
53
|
+
static is<T = unknown>(value: unknown): value is Prop<T>;
|
|
54
|
+
protected readonly [$isProp] = true;
|
|
55
|
+
readonly set: (value: T) => void;
|
|
56
|
+
readonly update: (fn: (value: T) => T) => void;
|
|
57
|
+
readonly reducer: <U>(fn: (acc: T, value: U) => T) => (action: U) => void;
|
|
58
|
+
readonly iso: <U>(to: (value: T) => U, from: (value: U) => T, equals?: (a: U, b: U) => boolean) => Prop<U>;
|
|
59
|
+
readonly atProp: <K extends keyof T>(key: K) => Prop<T[K]>;
|
|
60
|
+
get value(): T;
|
|
61
|
+
set value(value: T);
|
|
62
|
+
}
|
|
63
|
+
export declare function computed<T>(fn: () => T, signals: Array<Signal<any>>, equals?: (a: T, b: T) => boolean): Computed<T>;
|
|
64
|
+
export declare function effect(fn: () => void, signals: Array<Signal<any>>): () => void;
|
|
65
|
+
export declare function prop<T>(value: T, equals?: (a: T, b: T) => boolean): Prop<T>;
|
|
66
|
+
export declare function signal<T>(value: T, equals?: (a: T, b: T) => boolean): Signal<T>;
|
|
67
|
+
export declare class MemoryStore {
|
|
68
|
+
private readonly _store;
|
|
69
|
+
getItem: (key: string) => string | null;
|
|
70
|
+
setItem: (key: string, value: string) => void;
|
|
71
|
+
}
|
|
72
|
+
export declare function propOfStorage<T>({ key, defaultValue, store, serialize, deserialize, equals, onLoad, }: {
|
|
73
|
+
key: string;
|
|
74
|
+
defaultValue: T | (() => T);
|
|
75
|
+
store: {
|
|
76
|
+
getItem: (key: string) => string | null;
|
|
77
|
+
setItem: (key: string, value: string) => void;
|
|
78
|
+
};
|
|
79
|
+
serialize?: (v: T) => string;
|
|
80
|
+
deserialize?: (v: string) => T;
|
|
81
|
+
equals?: (a: T, b: T) => boolean;
|
|
82
|
+
onLoad?: (value: T) => T;
|
|
83
|
+
}): Prop<T>;
|
|
84
|
+
export declare function propOfLocalStorage<T>(options: {
|
|
85
|
+
key: string;
|
|
86
|
+
defaultValue: T | (() => T);
|
|
87
|
+
serialize?: (v: T) => string;
|
|
88
|
+
deserialize?: (v: string) => T;
|
|
89
|
+
equals?: (a: T, b: T) => boolean;
|
|
90
|
+
onLoad?: (value: T) => T;
|
|
91
|
+
}): Prop<T>;
|
|
92
|
+
export declare function propOfSessionStorage<T>(options: {
|
|
93
|
+
key: string;
|
|
94
|
+
defaultValue: T | (() => T);
|
|
95
|
+
serialize?: (v: T) => string;
|
|
96
|
+
deserialize?: (v: string) => T;
|
|
97
|
+
equals?: (a: T, b: T) => boolean;
|
|
98
|
+
onLoad?: (value: T) => T;
|
|
99
|
+
}): Prop<T>;
|
|
100
|
+
export declare function animate<T>(initialValue: T, fn: () => T, signals: Array<Signal<any>>, options?: {
|
|
101
|
+
interpolate?: (start: T, end: T, delta: number) => T;
|
|
102
|
+
duration?: Value<number>;
|
|
103
|
+
easing?: (t: number) => number;
|
|
104
|
+
equals?: (a: T, b: T) => boolean;
|
|
105
|
+
}): Prop<T>;
|
|
106
|
+
export declare function animateOne<T>(signal: Signal<T>, options?: {
|
|
107
|
+
initialValue?: T;
|
|
108
|
+
interpolate?: (start: T, end: T, delta: number) => T;
|
|
109
|
+
duration?: number;
|
|
110
|
+
easing?: (t: number) => number;
|
|
111
|
+
equals?: (a: T, b: T) => boolean;
|
|
112
|
+
}): Prop<T>;
|
|
113
|
+
export type Value<T> = Signal<T> | T;
|
|
114
|
+
export type NValue<T> = Value<T> | Value<T | null> | Value<T | undefined> | Value<T | null | undefined> | null | undefined;
|
|
115
|
+
export type GetValueType<T> = T extends Signal<infer V> ? V : T;
|
|
116
|
+
export type RemoveSignals<T extends Record<string | number | symbol, Value<unknown>>, K extends (string | number | symbol) & keyof T = keyof T> = {
|
|
117
|
+
[k in K]: GetValueType<T[k]>;
|
|
118
|
+
};
|
|
119
|
+
export declare function computedRecord<T extends Record<string, Value<unknown>>, U>(record: T, fn: (value: RemoveSignals<T>) => U): Computed<U>;
|
|
120
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type AriaAttributes = {
|
|
2
|
+
activedescendant: string;
|
|
3
|
+
atomic: boolean;
|
|
4
|
+
autocomplete: 'none' | 'inline' | 'list' | 'both';
|
|
5
|
+
busy: boolean;
|
|
6
|
+
checked: boolean | 'mixed' | 'false' | 'true';
|
|
7
|
+
colcount: number;
|
|
8
|
+
colindex: number;
|
|
9
|
+
colspan: number;
|
|
10
|
+
controls: string;
|
|
11
|
+
current: string;
|
|
12
|
+
describedby: string;
|
|
13
|
+
details: string;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
dropeffect: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup';
|
|
16
|
+
errormessage: string;
|
|
17
|
+
expanded: boolean | 'false' | 'true';
|
|
18
|
+
flowto: string;
|
|
19
|
+
grabbed: boolean | 'false' | 'true';
|
|
20
|
+
haspopup: boolean;
|
|
21
|
+
hidden: boolean;
|
|
22
|
+
invalid: boolean | 'grammar' | 'false' | 'spelling' | 'true';
|
|
23
|
+
keyshortcuts: string;
|
|
24
|
+
label: string;
|
|
25
|
+
labelledby: string;
|
|
26
|
+
level: number;
|
|
27
|
+
live: 'off' | 'assertive' | 'polite';
|
|
28
|
+
modal: boolean;
|
|
29
|
+
multiline: boolean;
|
|
30
|
+
multiselectable: boolean;
|
|
31
|
+
orientation: 'horizontal' | 'vertical';
|
|
32
|
+
owns: string;
|
|
33
|
+
placeholder: string;
|
|
34
|
+
posinset: number;
|
|
35
|
+
pressed: boolean | 'mixed' | 'false' | 'true';
|
|
36
|
+
readonly: boolean;
|
|
37
|
+
relevant: 'additions' | 'removals' | 'text' | 'all';
|
|
38
|
+
required: boolean;
|
|
39
|
+
roledescription: string;
|
|
40
|
+
rowcount: number;
|
|
41
|
+
rowindex: number;
|
|
42
|
+
rowspan: number;
|
|
43
|
+
selected: boolean;
|
|
44
|
+
setsize: number;
|
|
45
|
+
sort: 'none' | 'ascending' | 'descending' | 'other';
|
|
46
|
+
valuemax: number;
|
|
47
|
+
valuemin: number;
|
|
48
|
+
valuenow: number;
|
|
49
|
+
valuetext: string;
|
|
50
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DOMContext } from '../dom/dom-context';
|
|
2
|
+
import { Value } from '../std/signal';
|
|
3
|
+
|
|
4
|
+
export type Mountable = (ctx: DOMContext) => Clear;
|
|
5
|
+
export type Child = Mountable | Value<string> | undefined | null | Mountable[];
|
|
6
|
+
export type Clear = (removeTree: boolean) => void;
|
|
7
|
+
export type ProviderMark<T> = symbol & {
|
|
8
|
+
readonly __type: T;
|
|
9
|
+
};
|
|
10
|
+
export type Providers = Record<ProviderMark<unknown>, unknown>;
|
|
11
|
+
export interface Size {
|
|
12
|
+
readonly width: number;
|
|
13
|
+
readonly height: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export type HTMLAttributes = {
|
|
2
|
+
accept: string;
|
|
3
|
+
'accept-charset': string;
|
|
4
|
+
accesskey: string;
|
|
5
|
+
action: string;
|
|
6
|
+
align: string;
|
|
7
|
+
alt: string;
|
|
8
|
+
async: boolean;
|
|
9
|
+
autocomplete: string;
|
|
10
|
+
autofocus: boolean;
|
|
11
|
+
autoplay: boolean;
|
|
12
|
+
bgcolor: string;
|
|
13
|
+
border: string;
|
|
14
|
+
charset: string;
|
|
15
|
+
checked: boolean;
|
|
16
|
+
cite: string;
|
|
17
|
+
class: string;
|
|
18
|
+
color: string;
|
|
19
|
+
cols: number;
|
|
20
|
+
colspan: number;
|
|
21
|
+
content: string;
|
|
22
|
+
contenteditable: boolean;
|
|
23
|
+
controls: string;
|
|
24
|
+
coords: string;
|
|
25
|
+
data: string;
|
|
26
|
+
datetime: string;
|
|
27
|
+
default: string;
|
|
28
|
+
defer: string;
|
|
29
|
+
dir: string;
|
|
30
|
+
dirname: string;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
download: string;
|
|
33
|
+
draggable: string;
|
|
34
|
+
dropzone: string;
|
|
35
|
+
enctype: string;
|
|
36
|
+
for: string;
|
|
37
|
+
form: string;
|
|
38
|
+
formaction: string;
|
|
39
|
+
headers: string;
|
|
40
|
+
height: string;
|
|
41
|
+
hidden: string;
|
|
42
|
+
high: string;
|
|
43
|
+
href: string;
|
|
44
|
+
hreflang: string;
|
|
45
|
+
'http-equiv': string;
|
|
46
|
+
icon: string;
|
|
47
|
+
id: string;
|
|
48
|
+
ismap: string;
|
|
49
|
+
itemprop: string;
|
|
50
|
+
keytype: string;
|
|
51
|
+
kind: string;
|
|
52
|
+
label: string;
|
|
53
|
+
lang: string;
|
|
54
|
+
language: string;
|
|
55
|
+
list: string;
|
|
56
|
+
loop: string;
|
|
57
|
+
low: string;
|
|
58
|
+
manifest: string;
|
|
59
|
+
max: number;
|
|
60
|
+
maxlength: number;
|
|
61
|
+
media: string;
|
|
62
|
+
method: string;
|
|
63
|
+
min: number;
|
|
64
|
+
minlength: number;
|
|
65
|
+
multiple: boolean;
|
|
66
|
+
name: string;
|
|
67
|
+
novalidate: string;
|
|
68
|
+
open: string;
|
|
69
|
+
optimum: string;
|
|
70
|
+
pattern: string;
|
|
71
|
+
ping: string;
|
|
72
|
+
placeholder: string;
|
|
73
|
+
poster: string;
|
|
74
|
+
preload: string;
|
|
75
|
+
radiogroup: string;
|
|
76
|
+
readonly: boolean;
|
|
77
|
+
rel: string;
|
|
78
|
+
required: string;
|
|
79
|
+
reversed: string;
|
|
80
|
+
rows: number;
|
|
81
|
+
rowspan: number;
|
|
82
|
+
sandbox: string;
|
|
83
|
+
scope: string;
|
|
84
|
+
scoped: string;
|
|
85
|
+
seamless: string;
|
|
86
|
+
selected: boolean;
|
|
87
|
+
shape: string;
|
|
88
|
+
size: number;
|
|
89
|
+
sizes: string;
|
|
90
|
+
span: string;
|
|
91
|
+
spellcheck: string;
|
|
92
|
+
src: string;
|
|
93
|
+
srcdoc: string;
|
|
94
|
+
srclang: string;
|
|
95
|
+
srcset: string;
|
|
96
|
+
start: string;
|
|
97
|
+
step: number;
|
|
98
|
+
style: string;
|
|
99
|
+
tabindex: number;
|
|
100
|
+
target: string;
|
|
101
|
+
title: string;
|
|
102
|
+
translate: string;
|
|
103
|
+
type: InputTypes;
|
|
104
|
+
usemap: string;
|
|
105
|
+
value: string;
|
|
106
|
+
valueAsNumber: number;
|
|
107
|
+
valueAsDate: Date;
|
|
108
|
+
width: string;
|
|
109
|
+
wrap: string;
|
|
110
|
+
textContent: string;
|
|
111
|
+
innerText: string;
|
|
112
|
+
innerHTML: string;
|
|
113
|
+
outerHTML: string;
|
|
114
|
+
};
|
|
115
|
+
export type InputTypes = 'text' | 'number' | 'checkbox' | 'radio' | 'file' | 'password' | 'button' | 'submit' | 'reset' | 'date' | 'range' | 'color' | 'hidden' | 'image' | 'month' | 'time' | 'week' | 'email' | 'tel' | 'url' | 'search' | 'datetime-local';
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export type HTMLEvents = {
|
|
2
|
+
abort: Event;
|
|
3
|
+
animationcancel: AnimationEvent;
|
|
4
|
+
animationend: AnimationEvent;
|
|
5
|
+
animationiteration: AnimationEvent;
|
|
6
|
+
animationstart: AnimationEvent;
|
|
7
|
+
auxclick: MouseEvent;
|
|
8
|
+
blur: FocusEvent;
|
|
9
|
+
cancel: Event;
|
|
10
|
+
canplay: Event;
|
|
11
|
+
canplaythrough: Event;
|
|
12
|
+
change: Event;
|
|
13
|
+
click: MouseEvent;
|
|
14
|
+
close: Event;
|
|
15
|
+
contextmenu: MouseEvent;
|
|
16
|
+
cuechange: Event;
|
|
17
|
+
dblclick: MouseEvent;
|
|
18
|
+
drag: DragEvent;
|
|
19
|
+
dragend: DragEvent;
|
|
20
|
+
dragenter: DragEvent;
|
|
21
|
+
dragexit: Event;
|
|
22
|
+
dragleave: DragEvent;
|
|
23
|
+
dragover: DragEvent;
|
|
24
|
+
dragstart: DragEvent;
|
|
25
|
+
drop: DragEvent;
|
|
26
|
+
durationchange: Event;
|
|
27
|
+
emptied: Event;
|
|
28
|
+
ended: Event;
|
|
29
|
+
error: ErrorEvent;
|
|
30
|
+
focus: FocusEvent;
|
|
31
|
+
focusin: FocusEvent;
|
|
32
|
+
focusout: FocusEvent;
|
|
33
|
+
gotpointercapture: PointerEvent;
|
|
34
|
+
input: Event;
|
|
35
|
+
invalid: Event;
|
|
36
|
+
keydown: KeyboardEvent;
|
|
37
|
+
keypress: KeyboardEvent;
|
|
38
|
+
keyup: KeyboardEvent;
|
|
39
|
+
load: Event;
|
|
40
|
+
loadeddata: Event;
|
|
41
|
+
loadedmetadata: Event;
|
|
42
|
+
loadend: ProgressEvent;
|
|
43
|
+
loadstart: ProgressEvent;
|
|
44
|
+
lostpointercapture: PointerEvent;
|
|
45
|
+
mousedown: MouseEvent;
|
|
46
|
+
mouseenter: MouseEvent;
|
|
47
|
+
mouseleave: MouseEvent;
|
|
48
|
+
mousemove: MouseEvent;
|
|
49
|
+
mouseout: MouseEvent;
|
|
50
|
+
mouseover: MouseEvent;
|
|
51
|
+
mouseup: MouseEvent;
|
|
52
|
+
pause: Event;
|
|
53
|
+
play: Event;
|
|
54
|
+
playing: Event;
|
|
55
|
+
pointercancel: PointerEvent;
|
|
56
|
+
pointerdown: PointerEvent;
|
|
57
|
+
pointerenter: PointerEvent;
|
|
58
|
+
pointerleave: PointerEvent;
|
|
59
|
+
pointermove: PointerEvent;
|
|
60
|
+
pointerout: PointerEvent;
|
|
61
|
+
pointerover: PointerEvent;
|
|
62
|
+
pointerup: PointerEvent;
|
|
63
|
+
progress: ProgressEvent;
|
|
64
|
+
ratechange: Event;
|
|
65
|
+
reset: Event;
|
|
66
|
+
resize: UIEvent;
|
|
67
|
+
scroll: Event;
|
|
68
|
+
securitypolicyviolation: SecurityPolicyViolationEvent;
|
|
69
|
+
seeked: Event;
|
|
70
|
+
seeking: Event;
|
|
71
|
+
select: Event;
|
|
72
|
+
selectionchange: Event;
|
|
73
|
+
selectstart: Event;
|
|
74
|
+
stalled: Event;
|
|
75
|
+
submit: Event;
|
|
76
|
+
suspend: Event;
|
|
77
|
+
timeupdate: Event;
|
|
78
|
+
toggle: Event;
|
|
79
|
+
touchcancel: TouchEvent;
|
|
80
|
+
touchend: TouchEvent;
|
|
81
|
+
touchmove: TouchEvent;
|
|
82
|
+
touchstart: TouchEvent;
|
|
83
|
+
transitioncancel: TransitionEvent;
|
|
84
|
+
transitionend: TransitionEvent;
|
|
85
|
+
transitionrun: TransitionEvent;
|
|
86
|
+
transitionstart: TransitionEvent;
|
|
87
|
+
volumechange: Event;
|
|
88
|
+
waiting: Event;
|
|
89
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export type HTMLTags = {
|
|
2
|
+
a: HTMLAnchorElement;
|
|
3
|
+
abbr: HTMLElement;
|
|
4
|
+
address: HTMLElement;
|
|
5
|
+
area: HTMLAreaElement;
|
|
6
|
+
article: HTMLElement;
|
|
7
|
+
aside: HTMLElement;
|
|
8
|
+
audio: HTMLAudioElement;
|
|
9
|
+
b: HTMLElement;
|
|
10
|
+
base: HTMLBaseElement;
|
|
11
|
+
bdi: HTMLElement;
|
|
12
|
+
bdo: HTMLElement;
|
|
13
|
+
blockquote: HTMLQuoteElement;
|
|
14
|
+
body: HTMLBodyElement;
|
|
15
|
+
br: HTMLBRElement;
|
|
16
|
+
button: HTMLButtonElement;
|
|
17
|
+
canvas: HTMLCanvasElement;
|
|
18
|
+
caption: HTMLElement;
|
|
19
|
+
cite: HTMLElement;
|
|
20
|
+
code: HTMLElement;
|
|
21
|
+
col: HTMLTableColElement;
|
|
22
|
+
colgroup: HTMLTableColElement;
|
|
23
|
+
data: HTMLDataElement;
|
|
24
|
+
datalist: HTMLDataListElement;
|
|
25
|
+
dd: HTMLElement;
|
|
26
|
+
del: HTMLModElement;
|
|
27
|
+
details: HTMLDetailsElement;
|
|
28
|
+
dfn: HTMLElement;
|
|
29
|
+
dialog: HTMLDialogElement;
|
|
30
|
+
div: HTMLDivElement;
|
|
31
|
+
dl: HTMLDListElement;
|
|
32
|
+
dt: HTMLElement;
|
|
33
|
+
em: HTMLElement;
|
|
34
|
+
embed: HTMLEmbedElement;
|
|
35
|
+
fieldset: HTMLFieldSetElement;
|
|
36
|
+
figcaption: HTMLElement;
|
|
37
|
+
figure: HTMLElement;
|
|
38
|
+
footer: HTMLElement;
|
|
39
|
+
form: HTMLFormElement;
|
|
40
|
+
h1: HTMLHeadingElement;
|
|
41
|
+
h2: HTMLHeadingElement;
|
|
42
|
+
h3: HTMLHeadingElement;
|
|
43
|
+
h4: HTMLHeadingElement;
|
|
44
|
+
h5: HTMLHeadingElement;
|
|
45
|
+
h6: HTMLHeadingElement;
|
|
46
|
+
head: HTMLHeadElement;
|
|
47
|
+
header: HTMLElement;
|
|
48
|
+
hgroup: HTMLElement;
|
|
49
|
+
hr: HTMLHRElement;
|
|
50
|
+
html: HTMLHtmlElement;
|
|
51
|
+
i: HTMLElement;
|
|
52
|
+
iframe: HTMLIFrameElement;
|
|
53
|
+
img: HTMLImageElement;
|
|
54
|
+
input: HTMLInputElement;
|
|
55
|
+
ins: HTMLModElement;
|
|
56
|
+
kbd: HTMLElement;
|
|
57
|
+
label: HTMLLabelElement;
|
|
58
|
+
legend: HTMLLegendElement;
|
|
59
|
+
li: HTMLLIElement;
|
|
60
|
+
link: HTMLLinkElement;
|
|
61
|
+
main: HTMLElement;
|
|
62
|
+
map: HTMLMapElement;
|
|
63
|
+
mark: HTMLElement;
|
|
64
|
+
meta: HTMLMetaElement;
|
|
65
|
+
meter: HTMLMeterElement;
|
|
66
|
+
nav: HTMLElement;
|
|
67
|
+
noscript: HTMLElement;
|
|
68
|
+
object: HTMLObjectElement;
|
|
69
|
+
ol: HTMLOListElement;
|
|
70
|
+
optgroup: HTMLOptGroupElement;
|
|
71
|
+
option: HTMLOptionElement;
|
|
72
|
+
output: HTMLOutputElement;
|
|
73
|
+
p: HTMLParagraphElement;
|
|
74
|
+
param: HTMLParamElement;
|
|
75
|
+
picture: HTMLPictureElement;
|
|
76
|
+
pre: HTMLPreElement;
|
|
77
|
+
progress: HTMLProgressElement;
|
|
78
|
+
q: HTMLQuoteElement;
|
|
79
|
+
rp: HTMLElement;
|
|
80
|
+
rt: HTMLElement;
|
|
81
|
+
ruby: HTMLElement;
|
|
82
|
+
s: HTMLElement;
|
|
83
|
+
samp: HTMLElement;
|
|
84
|
+
script: HTMLScriptElement;
|
|
85
|
+
section: HTMLElement;
|
|
86
|
+
select: HTMLSelectElement;
|
|
87
|
+
slot: HTMLSlotElement;
|
|
88
|
+
small: HTMLElement;
|
|
89
|
+
source: HTMLSourceElement;
|
|
90
|
+
span: HTMLSpanElement;
|
|
91
|
+
strong: HTMLElement;
|
|
92
|
+
style: HTMLStyleElement;
|
|
93
|
+
sub: HTMLElement;
|
|
94
|
+
summary: HTMLElement;
|
|
95
|
+
sup: HTMLElement;
|
|
96
|
+
table: HTMLTableElement;
|
|
97
|
+
tbody: HTMLTableSectionElement;
|
|
98
|
+
td: HTMLTableCellElement;
|
|
99
|
+
template: HTMLTemplateElement;
|
|
100
|
+
textarea: HTMLTextAreaElement;
|
|
101
|
+
tfoot: HTMLTableSectionElement;
|
|
102
|
+
th: HTMLTableCellElement;
|
|
103
|
+
thead: HTMLTableSectionElement;
|
|
104
|
+
time: HTMLTimeElement;
|
|
105
|
+
title: HTMLTitleElement;
|
|
106
|
+
tr: HTMLTableRowElement;
|
|
107
|
+
track: HTMLTrackElement;
|
|
108
|
+
u: HTMLElement;
|
|
109
|
+
ul: HTMLUListElement;
|
|
110
|
+
var: HTMLElement;
|
|
111
|
+
video: HTMLVideoElement;
|
|
112
|
+
wbr: HTMLElement;
|
|
113
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type MathMLAttributes = {
|
|
2
|
+
accent: string;
|
|
3
|
+
accentunder: string;
|
|
4
|
+
align: string;
|
|
5
|
+
bevelled: string;
|
|
6
|
+
close: string;
|
|
7
|
+
columnalign: string;
|
|
8
|
+
columnlines: string;
|
|
9
|
+
columnspacing: string;
|
|
10
|
+
columnspan: string;
|
|
11
|
+
columnwidth: string;
|
|
12
|
+
crossout: string;
|
|
13
|
+
depth: string;
|
|
14
|
+
dir: string;
|
|
15
|
+
display: string;
|
|
16
|
+
displaystyle: string;
|
|
17
|
+
edge: string;
|
|
18
|
+
equalcolumns: string;
|
|
19
|
+
equalrows: string;
|
|
20
|
+
fence: string;
|
|
21
|
+
fontstyle: string;
|
|
22
|
+
fontweight: string;
|
|
23
|
+
frame: string;
|
|
24
|
+
height: string;
|
|
25
|
+
linethickness: string;
|
|
26
|
+
lspace: string;
|
|
27
|
+
mathbackground: string;
|
|
28
|
+
mathcolor: string;
|
|
29
|
+
mathsize: string;
|
|
30
|
+
mathvariant: string;
|
|
31
|
+
maxsize: string;
|
|
32
|
+
minsize: string;
|
|
33
|
+
movablelimits: string;
|
|
34
|
+
notation: string;
|
|
35
|
+
numalign: string;
|
|
36
|
+
open: string;
|
|
37
|
+
rowalign: string;
|
|
38
|
+
rowlines: string;
|
|
39
|
+
rowspacing: string;
|
|
40
|
+
rowspan: string;
|
|
41
|
+
rspace: string;
|
|
42
|
+
selection: string;
|
|
43
|
+
separator: string;
|
|
44
|
+
stretchy: string;
|
|
45
|
+
subscriptshift: string;
|
|
46
|
+
superscriptshift: string;
|
|
47
|
+
symmetric: string;
|
|
48
|
+
voffset: string;
|
|
49
|
+
width: string;
|
|
50
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type MathMLTags = {
|
|
2
|
+
maction: MathMLElement;
|
|
3
|
+
math: MathMLElement;
|
|
4
|
+
merror: MathMLElement;
|
|
5
|
+
mfenced: MathMLElement;
|
|
6
|
+
mfrac: MathMLElement;
|
|
7
|
+
mi: MathMLElement;
|
|
8
|
+
mmultiscripts: MathMLElement;
|
|
9
|
+
mn: MathMLElement;
|
|
10
|
+
mo: MathMLElement;
|
|
11
|
+
mover: MathMLElement;
|
|
12
|
+
mpadded: MathMLElement;
|
|
13
|
+
mphantom: MathMLElement;
|
|
14
|
+
mroot: MathMLElement;
|
|
15
|
+
mrow: MathMLElement;
|
|
16
|
+
ms: MathMLElement;
|
|
17
|
+
mspace: MathMLElement;
|
|
18
|
+
msqrt: MathMLElement;
|
|
19
|
+
mstyle: MathMLElement;
|
|
20
|
+
msub: MathMLElement;
|
|
21
|
+
msubsup: MathMLElement;
|
|
22
|
+
msup: MathMLElement;
|
|
23
|
+
mtable: MathMLElement;
|
|
24
|
+
mtd: MathMLElement;
|
|
25
|
+
mtext: MathMLElement;
|
|
26
|
+
mtr: MathMLElement;
|
|
27
|
+
munder: MathMLElement;
|
|
28
|
+
munderover: MathMLElement;
|
|
29
|
+
semantics: MathMLElement;
|
|
30
|
+
};
|