ctrl-fx 0.1.0 → 0.1.2
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 +13 -0
- package/dist/chunk-BDTTV33M.js +4050 -0
- package/dist/chunk-EKBLRHWK.js +916 -0
- package/dist/chunk-OSIRHKDB.js +1812 -0
- package/dist/chunk-PKBMQBKP.js +7 -0
- package/dist/chunk-XICUXW4T.js +252 -0
- package/dist/db/index.d.ts +218 -16
- package/dist/db/index.js +53 -19
- package/dist/dom/index.d.ts +2 -248
- package/dist/dom/index.js +30 -266
- package/dist/effects.d.ts +2 -580
- package/dist/effects.js +111 -1556
- package/dist/index-DeEjNrg-.d.ts +1399 -0
- package/dist/index.d.ts +2 -41
- package/dist/index.js +18 -78
- package/dist/router.d.ts +11 -12
- package/dist/router.js +57 -68
- package/dist/testing.d.ts +67 -60
- package/dist/testing.js +46 -158
- package/dist/webcomponent.d.ts +7 -4
- package/dist/webcomponent.js +48 -40
- package/package.json +4 -3
- package/dist/clipboard.d.ts +0 -7
- package/dist/clipboard.d.ts.map +0 -1
- package/dist/clipboard.js +0 -3
- package/dist/db/effects.d.ts +0 -78
- package/dist/db/effects.d.ts.map +0 -1
- package/dist/db/effects.js +0 -98
- package/dist/db/errors.d.ts +0 -21
- package/dist/db/errors.d.ts.map +0 -1
- package/dist/db/errors.js +0 -13
- package/dist/db/index.d.ts.map +0 -1
- package/dist/db/keypath.d.ts +0 -40
- package/dist/db/keypath.d.ts.map +0 -1
- package/dist/db/keypath.js +0 -20
- package/dist/db/setup.d.ts +0 -83
- package/dist/db/setup.d.ts.map +0 -1
- package/dist/db/setup.js +0 -100
- package/dist/db/testdb.d.ts +0 -19
- package/dist/db/testdb.d.ts.map +0 -1
- package/dist/db/testdb.js +0 -34
- package/dist/dom/attrs.d.ts +0 -67
- package/dist/dom/attrs.d.ts.map +0 -1
- package/dist/dom/attrs.js +0 -154
- package/dist/dom/components.d.ts +0 -43
- package/dist/dom/components.d.ts.map +0 -1
- package/dist/dom/components.js +0 -86
- package/dist/dom/elems.d.ts +0 -121
- package/dist/dom/elems.d.ts.map +0 -1
- package/dist/dom/elems.js +0 -52
- package/dist/dom/events.d.ts +0 -232
- package/dist/dom/events.d.ts.map +0 -1
- package/dist/dom/events.js +0 -289
- package/dist/dom/index.d.ts.map +0 -1
- package/dist/dom/nodeid.d.ts +0 -9
- package/dist/dom/nodeid.d.ts.map +0 -1
- package/dist/dom/nodeid.js +0 -27
- package/dist/dom/svg.d.ts +0 -23
- package/dist/dom/svg.d.ts.map +0 -1
- package/dist/dom/svg.js +0 -1
- package/dist/dom/views.d.ts +0 -60
- package/dist/dom/views.d.ts.map +0 -1
- package/dist/dom/views.js +0 -154
- package/dist/effects.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/internal/clipboard.d.ts +0 -5
- package/dist/internal/clipboard.d.ts.map +0 -1
- package/dist/internal/clipboard.js +0 -33
- package/dist/internal/cmpmgr.d.ts +0 -46
- package/dist/internal/cmpmgr.d.ts.map +0 -1
- package/dist/internal/cmpmgr.js +0 -561
- package/dist/internal/dbmgr.d.ts +0 -11
- package/dist/internal/dbmgr.d.ts.map +0 -1
- package/dist/internal/dbmgr.js +0 -200
- package/dist/internal/dominterpreter.d.ts +0 -5
- package/dist/internal/dominterpreter.d.ts.map +0 -1
- package/dist/internal/dominterpreter.js +0 -337
- package/dist/internal/eventmgr.d.ts +0 -41
- package/dist/internal/eventmgr.d.ts.map +0 -1
- package/dist/internal/eventmgr.js +0 -696
- package/dist/internal/index.d.ts +0 -19
- package/dist/internal/index.d.ts.map +0 -1
- package/dist/internal/index.js +0 -38
- package/dist/internal/interpreter.d.ts +0 -10
- package/dist/internal/interpreter.d.ts.map +0 -1
- package/dist/internal/interpreter.js +0 -1
- package/dist/internal/locutils.d.ts +0 -4
- package/dist/internal/locutils.d.ts.map +0 -1
- package/dist/internal/locutils.js +0 -22
- package/dist/internal/net.d.ts +0 -4
- package/dist/internal/net.d.ts.map +0 -1
- package/dist/internal/net.js +0 -64
- package/dist/internal/realdom.d.ts +0 -249
- package/dist/internal/realdom.d.ts.map +0 -1
- package/dist/internal/realdom.js +0 -1
- package/dist/internal/styleregistry.d.ts +0 -6
- package/dist/internal/styleregistry.d.ts.map +0 -1
- package/dist/internal/styleregistry.js +0 -18
- package/dist/internal/taskreg.d.ts +0 -9
- package/dist/internal/taskreg.d.ts.map +0 -1
- package/dist/internal/taskreg.js +0 -28
- package/dist/internal/testing.d.ts +0 -12
- package/dist/internal/testing.d.ts.map +0 -1
- package/dist/internal/testing.js +0 -974
- package/dist/internal/testinginterpreter.d.ts +0 -10
- package/dist/internal/testinginterpreter.d.ts.map +0 -1
- package/dist/internal/testinginterpreter.js +0 -646
- package/dist/internal/vdom.d.ts +0 -93
- package/dist/internal/vdom.d.ts.map +0 -1
- package/dist/internal/vdom.js +0 -470
- package/dist/json/index.d.ts +0 -5
- package/dist/json/index.d.ts.map +0 -1
- package/dist/json/index.js +0 -2
- package/dist/json/validation.d.ts +0 -28
- package/dist/json/validation.d.ts.map +0 -1
- package/dist/json/validation.js +0 -8
- package/dist/net/fragment.d.ts +0 -10
- package/dist/net/fragment.d.ts.map +0 -1
- package/dist/net/fragment.js +0 -27
- package/dist/net/index.d.ts +0 -42
- package/dist/net/index.d.ts.map +0 -1
- package/dist/net/index.js +0 -60
- package/dist/net/location.d.ts +0 -21
- package/dist/net/location.d.ts.map +0 -1
- package/dist/net/location.js +0 -41
- package/dist/net/path.d.ts +0 -12
- package/dist/net/path.d.ts.map +0 -1
- package/dist/net/path.js +0 -29
- package/dist/net/queryparam.d.ts +0 -10
- package/dist/net/queryparam.d.ts.map +0 -1
- package/dist/net/queryparam.js +0 -34
- package/dist/router.d.ts.map +0 -1
- package/dist/scroll.d.ts +0 -7
- package/dist/scroll.d.ts.map +0 -1
- package/dist/scroll.js +0 -3
- package/dist/testing.d.ts.map +0 -1
- package/dist/utils/apply.d.ts +0 -9
- package/dist/utils/apply.d.ts.map +0 -1
- package/dist/utils/apply.js +0 -10
- package/dist/utils/index.d.ts +0 -22
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -138
- package/dist/utils/lens.d.ts +0 -18
- package/dist/utils/lens.d.ts.map +0 -1
- package/dist/utils/lens.js +0 -27
- package/dist/utils/match.d.ts +0 -17
- package/dist/utils/match.d.ts.map +0 -1
- package/dist/utils/match.js +0 -28
- package/dist/utils/result.d.ts +0 -47
- package/dist/utils/result.d.ts.map +0 -1
- package/dist/utils/result.js +0 -97
- package/dist/webcomponent.d.ts.map +0 -1
package/dist/dom/index.d.ts
CHANGED
|
@@ -1,248 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type { A, Abbr, Address, Article, Aside, B, BlockElement, Blockquote, Br, Button, ButtonContent, Cite, Code, Dd, Details, Div, Dl, Dt, Element, Em, Fieldset, Figcaption, Figure, Footer, Form, H1, H2, H3, H4, H5, H6, Header, Hr, I, Img, InlineElement, Input, Kbd, Label, Li, Main, Mark, Nav, NonVoidElement, Ol, Option, P, Pre, Q, ReplacedElement, S, Section, Select, Small, Span, Strong, Sub, Summary, Sup, Table, Tbody, Td, Textarea, Tfoot, Th, Thead, Time, Tr, U, Ul, VoidElement, } from './elems';
|
|
4
|
-
export type { Circle, Ellipse, Image, Line, Path, Polygon, Polyline, Rect, Svg, SvgGraphicElement, Use, } from './svg';
|
|
5
|
-
export { preventDefault, stopPropagation, stopPropagationAndPreventDefault, type TextState, type KeyData, type ChangeData, type MouseMoveData, type ScrollData, type WheelData, type TouchData, type EventOptions, type EventActions, type EventListenerResult, } from './events';
|
|
6
|
-
export { nodeId, type NodeId } from './nodeid';
|
|
7
|
-
import { component, type Component, type ComponentElement } from './components';
|
|
8
|
-
export { component, type Component, type ComponentElement };
|
|
9
|
-
import { type A, type Abbr, type Address, type Article, type Aside, type B, type BlockElement, type Blockquote, type Br, type Button, type ButtonContent, type Cite, type Code, type Dd, type Details, type Dl, type Dt, type Div, type Element, type Em, type Fieldset, type Figcaption, type Figure, type Footer, type Form, type H1, type H2, type H3, type H4, type H5, type H6, type Header, type Hr, type I, type Img, type InlineElement, type Input, type Kbd, type Label, type Li, type Main, type Mark, type Nav, type NonVoidElement, type Ol, type Option, type P, type Pre, type Q, type ReplacedElement, type S, type Section, type Select, type Small, type Span, type Strong, type Sub, type Summary, type Sup, type Table, type Tbody, type Td, type Textarea, type Tfoot, type Th, type Thead, type Time, type Tr, type U, type Ul, type VoidElement } from './elems';
|
|
10
|
-
import type { NodeId } from './nodeid';
|
|
11
|
-
import type { Circle, Ellipse, Image, Line, Path, Polygon, Polyline, Rect, Svg, SvgGraphicElement, Use } from './svg';
|
|
12
|
-
import { type NodeGroup, type View } from './views';
|
|
13
|
-
export type { NodeGroup, View };
|
|
14
|
-
/** A non-void element with an arbitrary tag name, for custom or non-standard HTML elements. */
|
|
15
|
-
export type CustomElement<State, Event> = NonVoidElement<State, Event, string, any>;
|
|
16
|
-
/** Union of all node types valid in block-level (flow) positions. */
|
|
17
|
-
export type FlowContent<State, Event> = PhrasingContent<State, Event> | BlockElement<State, Event> | ReplacedElement<State, Event> | SvgGraphicElement<State, Event> | string | View<State, unknown, Event> | ComponentElement<any, any, any, any, any> | CustomElement<State, Event>;
|
|
18
|
-
/** Union of inline elements and plain text nodes. */
|
|
19
|
-
export type PhrasingContent<State, Event> = InlineElement<State, Event> | string;
|
|
20
|
-
/** Union of all virtual DOM node types: elements, text, views, and component instances. */
|
|
21
|
-
export type Node<State, Event> = Element<State, Event> | string | View<State, unknown, Event> | ComponentElement<any, any, any, any, any> | CustomElement<State, Event>;
|
|
22
|
-
export type NonTextNode<State, Event> = Exclude<Node<State, Event>, string>;
|
|
23
|
-
/**
|
|
24
|
-
* Factory that returns all HTML and SVG element builders with `State` and `Event` pre-applied.
|
|
25
|
-
*
|
|
26
|
-
* Each element comes in three forms:
|
|
27
|
-
* - `div(...attrs)(...children)` — full curried form, accepts attributes then children
|
|
28
|
-
* - `div_(...children)` — no-attribute shorthand, equivalent to `div()(...)`
|
|
29
|
-
* - `div__(...attrs)` — no-children shorthand, equivalent to `div(...)()`
|
|
30
|
-
*
|
|
31
|
-
* Call `makeDom<State, Event>()` once at the top of your module and destructure the elements you need:
|
|
32
|
-
* ```ts
|
|
33
|
-
* const { div_, span_, button } = makeDom<State, Event>()
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export declare function makeDom<State, Event>(): {
|
|
37
|
-
a_: (...children: readonly FlowContent<State, Event>[]) => A<State, Event>;
|
|
38
|
-
a__: (...attrs: AttrArg[]) => A<State, Event>;
|
|
39
|
-
abbr_: (...children: readonly PhrasingContent<State, Event>[]) => Abbr<State, Event>;
|
|
40
|
-
abbr__: (...attrs: AttrArg[]) => Abbr<State, Event>;
|
|
41
|
-
address_: (...children: readonly FlowContent<State, Event>[]) => Address<State, Event>;
|
|
42
|
-
address__: (...attrs: AttrArg[]) => Address<State, Event>;
|
|
43
|
-
article_: (...children: readonly FlowContent<State, Event>[]) => Article<State, Event>;
|
|
44
|
-
article__: (...attrs: AttrArg[]) => Article<State, Event>;
|
|
45
|
-
aside_: (...children: readonly FlowContent<State, Event>[]) => Aside<State, Event>;
|
|
46
|
-
aside__: (...attrs: AttrArg[]) => Aside<State, Event>;
|
|
47
|
-
b_: (...children: readonly PhrasingContent<State, Event>[]) => B<State, Event>;
|
|
48
|
-
b__: (...attrs: AttrArg[]) => B<State, Event>;
|
|
49
|
-
blockquote_: (...children: readonly FlowContent<State, Event>[]) => Blockquote<State, Event>;
|
|
50
|
-
blockquote__: (...attrs: AttrArg[]) => Blockquote<State, Event>;
|
|
51
|
-
button_: (...children: readonly ButtonContent<State, Event>[]) => Button<State, Event>;
|
|
52
|
-
button__: (...attrs: AttrArg[]) => Button<State, Event>;
|
|
53
|
-
cite_: (...children: readonly PhrasingContent<State, Event>[]) => Cite<State, Event>;
|
|
54
|
-
cite__: (...attrs: AttrArg[]) => Cite<State, Event>;
|
|
55
|
-
code_: (...children: readonly PhrasingContent<State, Event>[]) => Code<State, Event>;
|
|
56
|
-
code__: (...attrs: AttrArg[]) => Code<State, Event>;
|
|
57
|
-
dd_: (...children: readonly FlowContent<State, Event>[]) => Dd<State, Event>;
|
|
58
|
-
dd__: (...attrs: AttrArg[]) => Dd<State, Event>;
|
|
59
|
-
details_: (...children: readonly FlowContent<State, Event>[]) => Details<State, Event>;
|
|
60
|
-
details__: (...attrs: AttrArg[]) => Details<State, Event>;
|
|
61
|
-
div_: (...children: readonly FlowContent<State, Event>[]) => Div<State, Event>;
|
|
62
|
-
div__: (...attrs: AttrArg[]) => Div<State, Event>;
|
|
63
|
-
dl_: (...children: readonly (Dd<State, Event> | Dt<State, Event>)[]) => Dl<State, Event>;
|
|
64
|
-
dl__: (...attrs: AttrArg[]) => Dl<State, Event>;
|
|
65
|
-
dt_: (...children: readonly PhrasingContent<State, Event>[]) => Dt<State, Event>;
|
|
66
|
-
dt__: (...attrs: AttrArg[]) => Dt<State, Event>;
|
|
67
|
-
em_: (...children: readonly PhrasingContent<State, Event>[]) => Em<State, Event>;
|
|
68
|
-
em__: (...attrs: AttrArg[]) => Em<State, Event>;
|
|
69
|
-
fieldset_: (...children: readonly FlowContent<State, Event>[]) => Fieldset<State, Event>;
|
|
70
|
-
fieldset__: (...attrs: AttrArg[]) => Fieldset<State, Event>;
|
|
71
|
-
figcaption_: (...children: readonly FlowContent<State, Event>[]) => Figcaption<State, Event>;
|
|
72
|
-
figcaption__: (...attrs: AttrArg[]) => Figcaption<State, Event>;
|
|
73
|
-
figure_: (...children: readonly FlowContent<State, Event>[]) => Figure<State, Event>;
|
|
74
|
-
figure__: (...attrs: AttrArg[]) => Figure<State, Event>;
|
|
75
|
-
footer_: (...children: readonly FlowContent<State, Event>[]) => Footer<State, Event>;
|
|
76
|
-
footer__: (...attrs: AttrArg[]) => Footer<State, Event>;
|
|
77
|
-
form_: (...children: readonly FlowContent<State, Event>[]) => Form<State, Event>;
|
|
78
|
-
form__: (...attrs: AttrArg[]) => Form<State, Event>;
|
|
79
|
-
h1_: (...children: readonly FlowContent<State, Event>[]) => H1<State, Event>;
|
|
80
|
-
h1__: (...attrs: AttrArg[]) => H1<State, Event>;
|
|
81
|
-
h2_: (...children: readonly FlowContent<State, Event>[]) => H2<State, Event>;
|
|
82
|
-
h2__: (...attrs: AttrArg[]) => H2<State, Event>;
|
|
83
|
-
h3_: (...children: readonly FlowContent<State, Event>[]) => H3<State, Event>;
|
|
84
|
-
h3__: (...attrs: AttrArg[]) => H3<State, Event>;
|
|
85
|
-
h4_: (...children: readonly FlowContent<State, Event>[]) => H4<State, Event>;
|
|
86
|
-
h4__: (...attrs: AttrArg[]) => H4<State, Event>;
|
|
87
|
-
h5_: (...children: readonly FlowContent<State, Event>[]) => H5<State, Event>;
|
|
88
|
-
h5__: (...attrs: AttrArg[]) => H5<State, Event>;
|
|
89
|
-
h6_: (...children: readonly FlowContent<State, Event>[]) => H6<State, Event>;
|
|
90
|
-
h6__: (...attrs: AttrArg[]) => H6<State, Event>;
|
|
91
|
-
header_: (...children: readonly FlowContent<State, Event>[]) => Header<State, Event>;
|
|
92
|
-
header__: (...attrs: AttrArg[]) => Header<State, Event>;
|
|
93
|
-
i_: (...children: readonly PhrasingContent<State, Event>[]) => I<State, Event>;
|
|
94
|
-
i__: (...attrs: AttrArg[]) => I<State, Event>;
|
|
95
|
-
kbd_: (...children: readonly PhrasingContent<State, Event>[]) => Kbd<State, Event>;
|
|
96
|
-
kbd__: (...attrs: AttrArg[]) => Kbd<State, Event>;
|
|
97
|
-
label_: (...children: readonly PhrasingContent<State, Event>[]) => Label<State, Event>;
|
|
98
|
-
label__: (...attrs: AttrArg[]) => Label<State, Event>;
|
|
99
|
-
li_: (...children: readonly FlowContent<State, Event>[]) => Li<State, Event>;
|
|
100
|
-
li__: (...attrs: AttrArg[]) => Li<State, Event>;
|
|
101
|
-
main_: (...children: readonly FlowContent<State, Event>[]) => Main<State, Event>;
|
|
102
|
-
main__: (...attrs: AttrArg[]) => Main<State, Event>;
|
|
103
|
-
mark_: (...children: readonly PhrasingContent<State, Event>[]) => Mark<State, Event>;
|
|
104
|
-
mark__: (...attrs: AttrArg[]) => Mark<State, Event>;
|
|
105
|
-
nav_: (...children: readonly FlowContent<State, Event>[]) => Nav<State, Event>;
|
|
106
|
-
nav__: (...attrs: AttrArg[]) => Nav<State, Event>;
|
|
107
|
-
ol_: (...children: readonly Li<State, Event>[]) => Ol<State, Event>;
|
|
108
|
-
ol__: (...attrs: AttrArg[]) => Ol<State, Event>;
|
|
109
|
-
option_: (...children: readonly string[]) => Option<State, Event>;
|
|
110
|
-
option__: (...attrs: AttrArg[]) => Option<State, Event>;
|
|
111
|
-
p_: (...children: readonly FlowContent<State, Event>[]) => P<State, Event>;
|
|
112
|
-
p__: (...attrs: AttrArg[]) => P<State, Event>;
|
|
113
|
-
pre_: (...children: readonly PhrasingContent<State, Event>[]) => Pre<State, Event>;
|
|
114
|
-
pre__: (...attrs: AttrArg[]) => Pre<State, Event>;
|
|
115
|
-
q_: (...children: readonly PhrasingContent<State, Event>[]) => Q<State, Event>;
|
|
116
|
-
q__: (...attrs: AttrArg[]) => Q<State, Event>;
|
|
117
|
-
s_: (...children: readonly PhrasingContent<State, Event>[]) => S<State, Event>;
|
|
118
|
-
s__: (...attrs: AttrArg[]) => S<State, Event>;
|
|
119
|
-
section_: (...children: readonly FlowContent<State, Event>[]) => Section<State, Event>;
|
|
120
|
-
section__: (...attrs: AttrArg[]) => Section<State, Event>;
|
|
121
|
-
select_: (...children: readonly Option<State, Event>[]) => Select<State, Event>;
|
|
122
|
-
select__: (...attrs: AttrArg[]) => Select<State, Event>;
|
|
123
|
-
small_: (...children: readonly PhrasingContent<State, Event>[]) => Small<State, Event>;
|
|
124
|
-
small__: (...attrs: AttrArg[]) => Small<State, Event>;
|
|
125
|
-
span_: (...children: readonly PhrasingContent<State, Event>[]) => Span<State, Event>;
|
|
126
|
-
span__: (...attrs: AttrArg[]) => Span<State, Event>;
|
|
127
|
-
strong_: (...children: readonly PhrasingContent<State, Event>[]) => Strong<State, Event>;
|
|
128
|
-
strong__: (...attrs: AttrArg[]) => Strong<State, Event>;
|
|
129
|
-
sub_: (...children: readonly PhrasingContent<State, Event>[]) => Sub<State, Event>;
|
|
130
|
-
sub__: (...attrs: AttrArg[]) => Sub<State, Event>;
|
|
131
|
-
summary_: (...children: readonly PhrasingContent<State, Event>[]) => Summary<State, Event>;
|
|
132
|
-
summary__: (...attrs: AttrArg[]) => Summary<State, Event>;
|
|
133
|
-
sup_: (...children: readonly PhrasingContent<State, Event>[]) => Sup<State, Event>;
|
|
134
|
-
sup__: (...attrs: AttrArg[]) => Sup<State, Event>;
|
|
135
|
-
svg_: (...children: readonly SvgGraphicElement<State, Event>[]) => Svg<State, Event>;
|
|
136
|
-
svg__: (...attrs: AttrArg[]) => Svg<State, Event>;
|
|
137
|
-
table_: (...children: readonly (Tbody<State, Event> | Tfoot<State, Event> | Thead<State, Event> | Tr<State, Event>)[]) => Table<State, Event>;
|
|
138
|
-
table__: (...attrs: AttrArg[]) => Table<State, Event>;
|
|
139
|
-
tbody_: (...children: readonly Tr<State, Event>[]) => Tbody<State, Event>;
|
|
140
|
-
tbody__: (...attrs: AttrArg[]) => Tbody<State, Event>;
|
|
141
|
-
td_: (...children: readonly FlowContent<State, Event>[]) => Td<State, Event>;
|
|
142
|
-
td__: (...attrs: AttrArg[]) => Td<State, Event>;
|
|
143
|
-
textarea_: (...children: readonly PhrasingContent<State, Event>[]) => Textarea<State, Event>;
|
|
144
|
-
textarea__: (...attrs: AttrArg[]) => Textarea<State, Event>;
|
|
145
|
-
tfoot_: (...children: readonly Tr<State, Event>[]) => Tfoot<State, Event>;
|
|
146
|
-
tfoot__: (...attrs: AttrArg[]) => Tfoot<State, Event>;
|
|
147
|
-
th_: (...children: readonly FlowContent<State, Event>[]) => Th<State, Event>;
|
|
148
|
-
th__: (...attrs: AttrArg[]) => Th<State, Event>;
|
|
149
|
-
thead_: (...children: readonly Tr<State, Event>[]) => Thead<State, Event>;
|
|
150
|
-
thead__: (...attrs: AttrArg[]) => Thead<State, Event>;
|
|
151
|
-
time_: (...children: readonly PhrasingContent<State, Event>[]) => Time<State, Event>;
|
|
152
|
-
time__: (...attrs: AttrArg[]) => Time<State, Event>;
|
|
153
|
-
tr_: (...children: readonly (Td<State, Event> | Th<State, Event>)[]) => Tr<State, Event>;
|
|
154
|
-
tr__: (...attrs: AttrArg[]) => Tr<State, Event>;
|
|
155
|
-
u_: (...children: readonly PhrasingContent<State, Event>[]) => U<State, Event>;
|
|
156
|
-
u__: (...attrs: AttrArg[]) => U<State, Event>;
|
|
157
|
-
ul_: (...children: readonly Li<State, Event>[]) => Ul<State, Event>;
|
|
158
|
-
ul__: (...attrs: AttrArg[]) => Ul<State, Event>;
|
|
159
|
-
view<Params>(nodeId: NodeId | string, nodes: (params: Params) => NodeGroup<State, Event> | Node<State, Event>): (params: Params) => View<State, Params, Event>;
|
|
160
|
-
componentElem<ComponentState, Params, ComponentEvent>(comp: Component<ComponentState, Params, ComponentEvent>, nodeId: NodeId, params?: Params): ComponentElement<State, Event, ComponentState, Params, ComponentEvent>;
|
|
161
|
-
br: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Br<State, Event>;
|
|
162
|
-
hr: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Hr<State, Event>;
|
|
163
|
-
img: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Img<State, Event>;
|
|
164
|
-
input: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Input<State, Event>;
|
|
165
|
-
a: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => A<State, Event>;
|
|
166
|
-
abbr: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Abbr<State, Event>;
|
|
167
|
-
address: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Address<State, Event>;
|
|
168
|
-
article: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Article<State, Event>;
|
|
169
|
-
aside: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Aside<State, Event>;
|
|
170
|
-
b: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => B<State, Event>;
|
|
171
|
-
blockquote: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Blockquote<State, Event>;
|
|
172
|
-
button: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly ButtonContent<State, Event>[]) => Button<State, Event>;
|
|
173
|
-
cite: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Cite<State, Event>;
|
|
174
|
-
code: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Code<State, Event>;
|
|
175
|
-
dd: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Dd<State, Event>;
|
|
176
|
-
details: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Details<State, Event>;
|
|
177
|
-
div: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Div<State, Event>;
|
|
178
|
-
dl: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly (Dd<State, Event> | Dt<State, Event>)[]) => Dl<State, Event>;
|
|
179
|
-
dt: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Dt<State, Event>;
|
|
180
|
-
em: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Em<State, Event>;
|
|
181
|
-
fieldset: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Fieldset<State, Event>;
|
|
182
|
-
figcaption: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Figcaption<State, Event>;
|
|
183
|
-
figure: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Figure<State, Event>;
|
|
184
|
-
footer: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Footer<State, Event>;
|
|
185
|
-
form: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Form<State, Event>;
|
|
186
|
-
h1: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => H1<State, Event>;
|
|
187
|
-
h2: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => H2<State, Event>;
|
|
188
|
-
h3: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => H3<State, Event>;
|
|
189
|
-
h4: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => H4<State, Event>;
|
|
190
|
-
h5: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => H5<State, Event>;
|
|
191
|
-
h6: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => H6<State, Event>;
|
|
192
|
-
header: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Header<State, Event>;
|
|
193
|
-
i: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => I<State, Event>;
|
|
194
|
-
kbd: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Kbd<State, Event>;
|
|
195
|
-
label: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Label<State, Event>;
|
|
196
|
-
li: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Li<State, Event>;
|
|
197
|
-
main: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Main<State, Event>;
|
|
198
|
-
mark: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Mark<State, Event>;
|
|
199
|
-
nav: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Nav<State, Event>;
|
|
200
|
-
ol: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly Li<State, Event>[]) => Ol<State, Event>;
|
|
201
|
-
option: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly string[]) => Option<State, Event>;
|
|
202
|
-
p: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => P<State, Event>;
|
|
203
|
-
pre: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Pre<State, Event>;
|
|
204
|
-
q: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Q<State, Event>;
|
|
205
|
-
s: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => S<State, Event>;
|
|
206
|
-
section: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Section<State, Event>;
|
|
207
|
-
select: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly Option<State, Event>[]) => Select<State, Event>;
|
|
208
|
-
small: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Small<State, Event>;
|
|
209
|
-
span: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Span<State, Event>;
|
|
210
|
-
strong: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Strong<State, Event>;
|
|
211
|
-
sub: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Sub<State, Event>;
|
|
212
|
-
summary: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Summary<State, Event>;
|
|
213
|
-
sup: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Sup<State, Event>;
|
|
214
|
-
table: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly (Tbody<State, Event> | Tfoot<State, Event> | Thead<State, Event> | Tr<State, Event>)[]) => Table<State, Event>;
|
|
215
|
-
tbody: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly Tr<State, Event>[]) => Tbody<State, Event>;
|
|
216
|
-
td: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Td<State, Event>;
|
|
217
|
-
textarea: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Textarea<State, Event>;
|
|
218
|
-
tfoot: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly Tr<State, Event>[]) => Tfoot<State, Event>;
|
|
219
|
-
th: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly FlowContent<State, Event>[]) => Th<State, Event>;
|
|
220
|
-
thead: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly Tr<State, Event>[]) => Thead<State, Event>;
|
|
221
|
-
time: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => Time<State, Event>;
|
|
222
|
-
tr: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly (Td<State, Event> | Th<State, Event>)[]) => Tr<State, Event>;
|
|
223
|
-
u: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly PhrasingContent<State, Event>[]) => U<State, Event>;
|
|
224
|
-
ul: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly Li<State, Event>[]) => Ul<State, Event>;
|
|
225
|
-
svg: (...attrs: import("./attrs").AttrOrNodeIdArgs) => (...children: readonly SvgGraphicElement<State, Event>[]) => Svg<State, Event>;
|
|
226
|
-
circle: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Circle<State, Event>;
|
|
227
|
-
ellipse: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Ellipse<State, Event>;
|
|
228
|
-
image: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Image<State, Event>;
|
|
229
|
-
line: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Line<State, Event>;
|
|
230
|
-
polyline: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Polyline<State, Event>;
|
|
231
|
-
polygon: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Polygon<State, Event>;
|
|
232
|
-
path: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Path<State, Event>;
|
|
233
|
-
rect: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Rect<State, Event>;
|
|
234
|
-
use: (...attrs: import("./attrs").AttrOrNodeIdArgs) => Use<State, Event>;
|
|
235
|
-
element: (tag: string) => (...attrs: readonly (readonly [string, string] | NodeId)[]) => (...children: readonly FlowContent<State, Event>[]) => CustomElement<State, Event>;
|
|
236
|
-
nodeGroup: (...nodes: Node<State, Event>[]) => NodeGroup<State, Event>;
|
|
237
|
-
_: (...nodes: Node<State, Event>[]) => NodeGroup<State, Event>;
|
|
238
|
-
fixedView: (id: NodeId | string) => (nodes: NodeGroup<State, Event> | Node<State, Event>) => View<State, void, Event>;
|
|
239
|
-
};
|
|
240
|
-
/** Pattern-matches over a `Node` value, calling the appropriate case handler and returning its result. */
|
|
241
|
-
export declare function foldNode<State, Event, A>(node: Node<State, Event>, cases: {
|
|
242
|
-
onText: (text: string) => A;
|
|
243
|
-
onVoidElement: (element: VoidElement<State, Event, string>) => A;
|
|
244
|
-
onNonVoidElement: (element: NonVoidElement<State, Event, string, Node<State, Event>>) => A;
|
|
245
|
-
onComponent: (component: ComponentElement<any, any, any, any, any>) => A;
|
|
246
|
-
onView: (view: View<State, unknown, Event>) => A;
|
|
247
|
-
}): A;
|
|
248
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { aD as A, aE as Abbr, aF as Address, aG as Article, aH as Aside, A as Attr, aI as AttrArg, aJ as AttrOrNodeIdArgs, aK as B, aL as BlockElement, aM as Blockquote, aN as Br, aO as Button, aP as ButtonContent, aQ as ChangeData, aR as Circle, aS as Cite, aT as Code, C as Component, aU as ComponentElement, aV as CustomElement, aW as Dd, aX as Details, aY as Div, aZ as Dl, a_ as Dt, a$ as Element, b0 as Ellipse, b1 as Em, a as EventActions, b2 as EventListenerResult, b3 as EventOptions, b4 as Fieldset, b5 as Figcaption, b6 as Figure, b7 as FlowContent, b8 as Footer, b9 as Form, ba as H1, bb as H2, bc as H3, bd as H4, be as H5, bf as H6, bg as Header, bh as Hr, bi as I, bj as Image, bk as Img, bl as InlineElement, bm as Input, bn as Kbd, bo as KeyData, bp as Label, bq as Li, br as Line, bs as Main, bt as Mark, bu as MouseMoveData, bv as Nav, e as Node, N as NodeGroup, bw as NodeId, bx as NonTextNode, by as NonVoidElement, bz as Ol, bA as Option, bB as P, bC as Path, bD as PhrasingContent, bE as Polygon, bF as Polyline, bG as Pre, bH as Prop, bI as Q, bJ as Rect, bK as ReplacedElement, bL as S, bM as ScrollData, bN as Section, bO as Select, bP as Small, bQ as Span, bR as Strong, bS as Sub, bT as Summary, bU as Sup, bV as Svg, bW as SvgGraphicElement, bX as Table, bY as Tbody, bZ as Td, b_ as TextState, b$ as Textarea, c0 as Tfoot, c1 as Th, c2 as Thead, c3 as Time, c4 as TouchData, c5 as Tr, c6 as U, c7 as Ul, c8 as Use, c9 as View, ca as VoidElement, cb as WheelData, cc as attr, cd as component, ce as cssVars, cf as foldNode, cg as id, ch as makeDom, ci as nodeId, cj as preventDefault, ck as prop, cl as stopPropagation, cm as stopPropagationAndPreventDefault, cn as typeAttr } from '../index-DeEjNrg-.js';
|
|
2
|
+
import '../db/index.js';
|
package/dist/dom/index.js
CHANGED
|
@@ -1,266 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
aside: makeNonVoidElement('aside'),
|
|
32
|
-
b: makeNonVoidElement('b'),
|
|
33
|
-
blockquote: makeNonVoidElement('blockquote'),
|
|
34
|
-
button: makeNonVoidElement('button'),
|
|
35
|
-
cite: makeNonVoidElement('cite'),
|
|
36
|
-
code: makeNonVoidElement('code'),
|
|
37
|
-
dd: makeNonVoidElement('dd'),
|
|
38
|
-
details: makeNonVoidElement('details'),
|
|
39
|
-
div: makeNonVoidElement('div'),
|
|
40
|
-
dl: makeNonVoidElement('dl'),
|
|
41
|
-
dt: makeNonVoidElement('dt'),
|
|
42
|
-
em: makeNonVoidElement('em'),
|
|
43
|
-
fieldset: makeNonVoidElement('fieldset'),
|
|
44
|
-
figcaption: makeNonVoidElement('figcaption'),
|
|
45
|
-
figure: makeNonVoidElement('figure'),
|
|
46
|
-
footer: makeNonVoidElement('footer'),
|
|
47
|
-
form: makeNonVoidElement('form'),
|
|
48
|
-
h1: makeNonVoidElement('h1'),
|
|
49
|
-
h2: makeNonVoidElement('h2'),
|
|
50
|
-
h3: makeNonVoidElement('h3'),
|
|
51
|
-
h4: makeNonVoidElement('h4'),
|
|
52
|
-
h5: makeNonVoidElement('h5'),
|
|
53
|
-
h6: makeNonVoidElement('h6'),
|
|
54
|
-
header: makeNonVoidElement('header'),
|
|
55
|
-
i: makeNonVoidElement('i'),
|
|
56
|
-
kbd: makeNonVoidElement('kbd'),
|
|
57
|
-
label: makeNonVoidElement('label'),
|
|
58
|
-
li: makeNonVoidElement('li'),
|
|
59
|
-
main: makeNonVoidElement('main'),
|
|
60
|
-
mark: makeNonVoidElement('mark'),
|
|
61
|
-
nav: makeNonVoidElement('nav'),
|
|
62
|
-
ol: makeNonVoidElement('ol'),
|
|
63
|
-
option: makeNonVoidElement('option'),
|
|
64
|
-
p: makeNonVoidElement('p'),
|
|
65
|
-
pre: makeNonVoidElement('pre'),
|
|
66
|
-
q: makeNonVoidElement('q'),
|
|
67
|
-
s: makeNonVoidElement('s'),
|
|
68
|
-
section: makeNonVoidElement('section'),
|
|
69
|
-
select: makeNonVoidElement('select'),
|
|
70
|
-
small: makeNonVoidElement('small'),
|
|
71
|
-
span: makeNonVoidElement('span'),
|
|
72
|
-
strong: makeNonVoidElement('strong'),
|
|
73
|
-
sub: makeNonVoidElement('sub'),
|
|
74
|
-
summary: makeNonVoidElement('summary'),
|
|
75
|
-
sup: makeNonVoidElement('sup'),
|
|
76
|
-
table: makeNonVoidElement('table'),
|
|
77
|
-
tbody: makeNonVoidElement('tbody'),
|
|
78
|
-
td: makeNonVoidElement('td'),
|
|
79
|
-
textarea: makeNonVoidElement('textarea'),
|
|
80
|
-
tfoot: makeNonVoidElement('tfoot'),
|
|
81
|
-
th: makeNonVoidElement('th'),
|
|
82
|
-
thead: makeNonVoidElement('thead'),
|
|
83
|
-
time: makeNonVoidElement('time'),
|
|
84
|
-
tr: makeNonVoidElement('tr'),
|
|
85
|
-
u: makeNonVoidElement('u'),
|
|
86
|
-
ul: makeNonVoidElement('ul'),
|
|
87
|
-
svg: makeNonVoidElement('svg/svg'),
|
|
88
|
-
circle: makeVoidElement('svg/circle'),
|
|
89
|
-
ellipse: makeVoidElement('svg/ellipse'),
|
|
90
|
-
image: makeVoidElement('svg/image'),
|
|
91
|
-
line: makeVoidElement('svg/line'),
|
|
92
|
-
polyline: makeVoidElement('svg/polyline'),
|
|
93
|
-
polygon: makeVoidElement('svg/polygon'),
|
|
94
|
-
path: makeVoidElement('svg/path'),
|
|
95
|
-
rect: makeVoidElement('svg/rect'),
|
|
96
|
-
use: makeVoidElement('svg/use'),
|
|
97
|
-
element: (tag) => makeNonVoidElement(tag),
|
|
98
|
-
nodeGroup: (nodeGroup),
|
|
99
|
-
_: (_),
|
|
100
|
-
fixedView: (fixedView),
|
|
101
|
-
};
|
|
102
|
-
return {
|
|
103
|
-
...functions,
|
|
104
|
-
a_: functions.a(),
|
|
105
|
-
a__: (...attrs) => functions.a(...attrs)(),
|
|
106
|
-
abbr_: functions.abbr(),
|
|
107
|
-
abbr__: (...attrs) => functions.abbr(...attrs)(),
|
|
108
|
-
address_: functions.address(),
|
|
109
|
-
address__: (...attrs) => functions.address(...attrs)(),
|
|
110
|
-
article_: functions.article(),
|
|
111
|
-
article__: (...attrs) => functions.article(...attrs)(),
|
|
112
|
-
aside_: functions.aside(),
|
|
113
|
-
aside__: (...attrs) => functions.aside(...attrs)(),
|
|
114
|
-
b_: functions.b(),
|
|
115
|
-
b__: (...attrs) => functions.b(...attrs)(),
|
|
116
|
-
blockquote_: functions.blockquote(),
|
|
117
|
-
blockquote__: (...attrs) => functions.blockquote(...attrs)(),
|
|
118
|
-
button_: functions.button(),
|
|
119
|
-
button__: (...attrs) => functions.button(...attrs)(),
|
|
120
|
-
cite_: functions.cite(),
|
|
121
|
-
cite__: (...attrs) => functions.cite(...attrs)(),
|
|
122
|
-
code_: functions.code(),
|
|
123
|
-
code__: (...attrs) => functions.code(...attrs)(),
|
|
124
|
-
dd_: functions.dd(),
|
|
125
|
-
dd__: (...attrs) => functions.dd(...attrs)(),
|
|
126
|
-
details_: functions.details(),
|
|
127
|
-
details__: (...attrs) => functions.details(...attrs)(),
|
|
128
|
-
div_: functions.div(),
|
|
129
|
-
div__: (...attrs) => functions.div(...attrs)(),
|
|
130
|
-
dl_: functions.dl(),
|
|
131
|
-
dl__: (...attrs) => functions.dl(...attrs)(),
|
|
132
|
-
dt_: functions.dt(),
|
|
133
|
-
dt__: (...attrs) => functions.dt(...attrs)(),
|
|
134
|
-
em_: functions.em(),
|
|
135
|
-
em__: (...attrs) => functions.em(...attrs)(),
|
|
136
|
-
fieldset_: functions.fieldset(),
|
|
137
|
-
fieldset__: (...attrs) => functions.fieldset(...attrs)(),
|
|
138
|
-
figcaption_: functions.figcaption(),
|
|
139
|
-
figcaption__: (...attrs) => functions.figcaption(...attrs)(),
|
|
140
|
-
figure_: functions.figure(),
|
|
141
|
-
figure__: (...attrs) => functions.figure(...attrs)(),
|
|
142
|
-
footer_: functions.footer(),
|
|
143
|
-
footer__: (...attrs) => functions.footer(...attrs)(),
|
|
144
|
-
form_: functions.form(),
|
|
145
|
-
form__: (...attrs) => functions.form(...attrs)(),
|
|
146
|
-
h1_: functions.h1(),
|
|
147
|
-
h1__: (...attrs) => functions.h1(...attrs)(),
|
|
148
|
-
h2_: functions.h2(),
|
|
149
|
-
h2__: (...attrs) => functions.h2(...attrs)(),
|
|
150
|
-
h3_: functions.h3(),
|
|
151
|
-
h3__: (...attrs) => functions.h3(...attrs)(),
|
|
152
|
-
h4_: functions.h4(),
|
|
153
|
-
h4__: (...attrs) => functions.h4(...attrs)(),
|
|
154
|
-
h5_: functions.h5(),
|
|
155
|
-
h5__: (...attrs) => functions.h5(...attrs)(),
|
|
156
|
-
h6_: functions.h6(),
|
|
157
|
-
h6__: (...attrs) => functions.h6(...attrs)(),
|
|
158
|
-
header_: functions.header(),
|
|
159
|
-
header__: (...attrs) => functions.header(...attrs)(),
|
|
160
|
-
i_: functions.i(),
|
|
161
|
-
i__: (...attrs) => functions.i(...attrs)(),
|
|
162
|
-
kbd_: functions.kbd(),
|
|
163
|
-
kbd__: (...attrs) => functions.kbd(...attrs)(),
|
|
164
|
-
label_: functions.label(),
|
|
165
|
-
label__: (...attrs) => functions.label(...attrs)(),
|
|
166
|
-
li_: functions.li(),
|
|
167
|
-
li__: (...attrs) => functions.li(...attrs)(),
|
|
168
|
-
main_: functions.main(),
|
|
169
|
-
main__: (...attrs) => functions.main(...attrs)(),
|
|
170
|
-
mark_: functions.mark(),
|
|
171
|
-
mark__: (...attrs) => functions.mark(...attrs)(),
|
|
172
|
-
nav_: functions.nav(),
|
|
173
|
-
nav__: (...attrs) => functions.nav(...attrs)(),
|
|
174
|
-
ol_: functions.ol(),
|
|
175
|
-
ol__: (...attrs) => functions.ol(...attrs)(),
|
|
176
|
-
option_: functions.option(),
|
|
177
|
-
option__: (...attrs) => functions.option(...attrs)(),
|
|
178
|
-
p_: functions.p(),
|
|
179
|
-
p__: (...attrs) => functions.p(...attrs)(),
|
|
180
|
-
pre_: functions.pre(),
|
|
181
|
-
pre__: (...attrs) => functions.pre(...attrs)(),
|
|
182
|
-
q_: functions.q(),
|
|
183
|
-
q__: (...attrs) => functions.q(...attrs)(),
|
|
184
|
-
s_: functions.s(),
|
|
185
|
-
s__: (...attrs) => functions.s(...attrs)(),
|
|
186
|
-
section_: functions.section(),
|
|
187
|
-
section__: (...attrs) => functions.section(...attrs)(),
|
|
188
|
-
select_: functions.select(),
|
|
189
|
-
select__: (...attrs) => functions.select(...attrs)(),
|
|
190
|
-
small_: functions.small(),
|
|
191
|
-
small__: (...attrs) => functions.small(...attrs)(),
|
|
192
|
-
span_: functions.span(),
|
|
193
|
-
span__: (...attrs) => functions.span(...attrs)(),
|
|
194
|
-
strong_: functions.strong(),
|
|
195
|
-
strong__: (...attrs) => functions.strong(...attrs)(),
|
|
196
|
-
sub_: functions.sub(),
|
|
197
|
-
sub__: (...attrs) => functions.sub(...attrs)(),
|
|
198
|
-
summary_: functions.summary(),
|
|
199
|
-
summary__: (...attrs) => functions.summary(...attrs)(),
|
|
200
|
-
sup_: functions.sup(),
|
|
201
|
-
sup__: (...attrs) => functions.sup(...attrs)(),
|
|
202
|
-
svg_: functions.svg(),
|
|
203
|
-
svg__: (...attrs) => functions.svg(...attrs)(),
|
|
204
|
-
table_: functions.table(),
|
|
205
|
-
table__: (...attrs) => functions.table(...attrs)(),
|
|
206
|
-
tbody_: functions.tbody(),
|
|
207
|
-
tbody__: (...attrs) => functions.tbody(...attrs)(),
|
|
208
|
-
td_: functions.td(),
|
|
209
|
-
td__: (...attrs) => functions.td(...attrs)(),
|
|
210
|
-
textarea_: functions.textarea(),
|
|
211
|
-
textarea__: (...attrs) => functions.textarea(...attrs)(),
|
|
212
|
-
tfoot_: functions.tfoot(),
|
|
213
|
-
tfoot__: (...attrs) => functions.tfoot(...attrs)(),
|
|
214
|
-
th_: functions.th(),
|
|
215
|
-
th__: (...attrs) => functions.th(...attrs)(),
|
|
216
|
-
thead_: functions.thead(),
|
|
217
|
-
thead__: (...attrs) => functions.thead(...attrs)(),
|
|
218
|
-
time_: functions.time(),
|
|
219
|
-
time__: (...attrs) => functions.time(...attrs)(),
|
|
220
|
-
tr_: functions.tr(),
|
|
221
|
-
tr__: (...attrs) => functions.tr(...attrs)(),
|
|
222
|
-
u_: functions.u(),
|
|
223
|
-
u__: (...attrs) => functions.u(...attrs)(),
|
|
224
|
-
ul_: functions.ul(),
|
|
225
|
-
ul__: (...attrs) => functions.ul(...attrs)(),
|
|
226
|
-
view(nodeId, nodes) {
|
|
227
|
-
return view(nodeId, nodes);
|
|
228
|
-
},
|
|
229
|
-
componentElem(comp, nodeId, params) {
|
|
230
|
-
return componentElem(comp, nodeId, params);
|
|
231
|
-
},
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
/** Pattern-matches over a `Node` value, calling the appropriate case handler and returning its result. */
|
|
235
|
-
export function foldNode(node, cases) {
|
|
236
|
-
if (typeof node === 'string') {
|
|
237
|
-
return cases.onText(node);
|
|
238
|
-
}
|
|
239
|
-
switch (node._type) {
|
|
240
|
-
case 'Component':
|
|
241
|
-
return cases.onComponent(node);
|
|
242
|
-
case 'View':
|
|
243
|
-
return cases.onView(node);
|
|
244
|
-
case 'Element':
|
|
245
|
-
switch (node.tag) {
|
|
246
|
-
case 'br':
|
|
247
|
-
case 'hr':
|
|
248
|
-
case 'img':
|
|
249
|
-
case 'input':
|
|
250
|
-
case 'svg/circle':
|
|
251
|
-
case 'svg/ellipse':
|
|
252
|
-
case 'svg/image':
|
|
253
|
-
case 'svg/line':
|
|
254
|
-
case 'svg/polyline':
|
|
255
|
-
case 'svg/polygon':
|
|
256
|
-
case 'svg/path':
|
|
257
|
-
case 'svg/rect':
|
|
258
|
-
case 'svg/use':
|
|
259
|
-
return cases.onVoidElement(node);
|
|
260
|
-
default:
|
|
261
|
-
// CustomElement (tag: string) prevents discriminated narrowing here;
|
|
262
|
-
// all non-void cases reaching this branch have children: Node[]
|
|
263
|
-
return cases.onNonVoidElement(node);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
attr,
|
|
3
|
+
component,
|
|
4
|
+
cssVars,
|
|
5
|
+
foldNode,
|
|
6
|
+
id,
|
|
7
|
+
makeDom,
|
|
8
|
+
nodeId,
|
|
9
|
+
preventDefault,
|
|
10
|
+
prop,
|
|
11
|
+
stopPropagation,
|
|
12
|
+
stopPropagationAndPreventDefault,
|
|
13
|
+
typeAttr
|
|
14
|
+
} from "../chunk-EKBLRHWK.js";
|
|
15
|
+
import "../chunk-OSIRHKDB.js";
|
|
16
|
+
import "../chunk-PKBMQBKP.js";
|
|
17
|
+
export {
|
|
18
|
+
attr,
|
|
19
|
+
component,
|
|
20
|
+
cssVars,
|
|
21
|
+
foldNode,
|
|
22
|
+
id,
|
|
23
|
+
makeDom,
|
|
24
|
+
nodeId,
|
|
25
|
+
preventDefault,
|
|
26
|
+
prop,
|
|
27
|
+
stopPropagation,
|
|
28
|
+
stopPropagationAndPreventDefault,
|
|
29
|
+
typeAttr
|
|
30
|
+
};
|