@typed/ui 0.1.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/LICENSE +21 -0
- package/README.md +5 -0
- package/dist/cjs/Anchor.js +108 -0
- package/dist/cjs/Anchor.js.map +1 -0
- package/dist/cjs/Link.js +60 -0
- package/dist/cjs/Link.js.map +1 -0
- package/dist/cjs/index.js +28 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/internal/dom-properties.js +6 -0
- package/dist/cjs/internal/dom-properties.js.map +1 -0
- package/dist/dts/Anchor.d.ts +65 -0
- package/dist/dts/Anchor.d.ts.map +1 -0
- package/dist/dts/Link.d.ts +24 -0
- package/dist/dts/Link.d.ts.map +1 -0
- package/dist/dts/index.d.ts +12 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/dts/internal/dom-properties.d.ts +580 -0
- package/dist/dts/internal/dom-properties.d.ts.map +1 -0
- package/dist/esm/Anchor.js +97 -0
- package/dist/esm/Anchor.js.map +1 -0
- package/dist/esm/Link.js +41 -0
- package/dist/esm/Link.js.map +1 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/internal/dom-properties.js +2 -0
- package/dist/esm/internal/dom-properties.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +57 -0
- package/src/Anchor.ts +210 -0
- package/src/Link.ts +104 -0
- package/src/index.ts +12 -0
- package/src/internal/dom-properties.ts +782 -0
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
export type ElementProperties = {
|
|
2
|
+
className?: string;
|
|
3
|
+
id?: string;
|
|
4
|
+
scrollLeft?: number;
|
|
5
|
+
scrollTop?: number;
|
|
6
|
+
slot?: string;
|
|
7
|
+
};
|
|
8
|
+
export type HTMLElementProperties = ElementProperties & {
|
|
9
|
+
accessKey?: string;
|
|
10
|
+
contentEditable?: string;
|
|
11
|
+
dir?: string;
|
|
12
|
+
draggable?: boolean;
|
|
13
|
+
hidden?: boolean;
|
|
14
|
+
hideFocus?: boolean;
|
|
15
|
+
lang?: string;
|
|
16
|
+
spellcheck?: boolean;
|
|
17
|
+
tabIndex?: boolean;
|
|
18
|
+
title?: string;
|
|
19
|
+
};
|
|
20
|
+
export type HTMLAnchorElementProperties = HTMLElementProperties & {
|
|
21
|
+
Methods?: string;
|
|
22
|
+
charset?: string;
|
|
23
|
+
coords?: string;
|
|
24
|
+
download?: string;
|
|
25
|
+
hash?: string;
|
|
26
|
+
host?: string;
|
|
27
|
+
hostname?: string;
|
|
28
|
+
href?: string;
|
|
29
|
+
hreflang?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
pathname?: string;
|
|
32
|
+
port?: string;
|
|
33
|
+
protocol?: string;
|
|
34
|
+
rel?: string;
|
|
35
|
+
rev?: string;
|
|
36
|
+
search?: string;
|
|
37
|
+
shape?: string;
|
|
38
|
+
target?: string;
|
|
39
|
+
text?: string;
|
|
40
|
+
type?: string;
|
|
41
|
+
urn?: string;
|
|
42
|
+
};
|
|
43
|
+
export type HTMLAppletElementProperties = HTMLElementProperties & {
|
|
44
|
+
align?: string;
|
|
45
|
+
alt?: string;
|
|
46
|
+
altHtml?: string;
|
|
47
|
+
archive?: string;
|
|
48
|
+
border?: string;
|
|
49
|
+
code?: string;
|
|
50
|
+
codeBase?: string;
|
|
51
|
+
codeType?: string;
|
|
52
|
+
data?: string;
|
|
53
|
+
declare?: boolean;
|
|
54
|
+
height?: string;
|
|
55
|
+
hspace?: number;
|
|
56
|
+
name?: string;
|
|
57
|
+
object?: string | null;
|
|
58
|
+
standby?: string;
|
|
59
|
+
type?: string;
|
|
60
|
+
vspace?: number;
|
|
61
|
+
width?: number;
|
|
62
|
+
};
|
|
63
|
+
export type HTMLAreaElementProperties = HTMLElementProperties & {
|
|
64
|
+
alt?: string;
|
|
65
|
+
coords?: string;
|
|
66
|
+
download?: string;
|
|
67
|
+
hash?: string;
|
|
68
|
+
host?: string;
|
|
69
|
+
hostname?: string;
|
|
70
|
+
href?: string;
|
|
71
|
+
noHref?: string;
|
|
72
|
+
pathname?: string;
|
|
73
|
+
port?: string;
|
|
74
|
+
protocol?: string;
|
|
75
|
+
rel?: string;
|
|
76
|
+
search?: string;
|
|
77
|
+
shape?: string;
|
|
78
|
+
target?: string;
|
|
79
|
+
};
|
|
80
|
+
export type HTMLAudioElementProperties = HTMLElementProperties;
|
|
81
|
+
export type HTMLBRElementProperties = HTMLElementProperties & {
|
|
82
|
+
clear?: string;
|
|
83
|
+
};
|
|
84
|
+
export type HTMLBaseElementProperties = HTMLElementProperties & {
|
|
85
|
+
href?: string;
|
|
86
|
+
target?: string;
|
|
87
|
+
};
|
|
88
|
+
export type HTMLBaseFontElementProperties = HTMLElementProperties & {
|
|
89
|
+
face?: string;
|
|
90
|
+
size?: number;
|
|
91
|
+
};
|
|
92
|
+
export type HTMLBodyElementProperties = HTMLElementProperties & {
|
|
93
|
+
aLink?: any;
|
|
94
|
+
background?: string;
|
|
95
|
+
bgColor?: any;
|
|
96
|
+
bgProperties?: string;
|
|
97
|
+
link?: any;
|
|
98
|
+
noWrap?: boolean;
|
|
99
|
+
text?: any;
|
|
100
|
+
vLink?: any;
|
|
101
|
+
};
|
|
102
|
+
export type HTMLButtonElementProperties = HTMLElementProperties & {
|
|
103
|
+
autofocus?: boolean;
|
|
104
|
+
disabled?: boolean;
|
|
105
|
+
formAction?: string;
|
|
106
|
+
formEnctype?: string;
|
|
107
|
+
formMethod?: string;
|
|
108
|
+
formNoValidate?: string;
|
|
109
|
+
formTarget?: string;
|
|
110
|
+
name?: string;
|
|
111
|
+
status?: any;
|
|
112
|
+
type?: string;
|
|
113
|
+
value?: string;
|
|
114
|
+
};
|
|
115
|
+
export type HTMLCanvasElementProperties = HTMLElementProperties & {
|
|
116
|
+
height?: number;
|
|
117
|
+
width?: number;
|
|
118
|
+
};
|
|
119
|
+
export type HTMLDListElementProperties = HTMLElementProperties & {
|
|
120
|
+
compact?: boolean;
|
|
121
|
+
};
|
|
122
|
+
export type HTMLDataElementProperties = HTMLElementProperties & {
|
|
123
|
+
value?: string;
|
|
124
|
+
};
|
|
125
|
+
export type HTMLDataListElementProperties = HTMLElementProperties & {
|
|
126
|
+
options?: HTMLCollectionOf<HTMLOptionElement>;
|
|
127
|
+
};
|
|
128
|
+
export type HTMLDirectoryElementProperties = HTMLElementProperties & {
|
|
129
|
+
compact?: boolean;
|
|
130
|
+
};
|
|
131
|
+
export type HTMLDivElementProperties = HTMLElementProperties & {
|
|
132
|
+
align?: string;
|
|
133
|
+
noWrap?: boolean;
|
|
134
|
+
};
|
|
135
|
+
export type HTMLEmbedElementProperties = HTMLElementProperties & {
|
|
136
|
+
height?: string;
|
|
137
|
+
hidden?: any;
|
|
138
|
+
msPlayToDisabled?: boolean;
|
|
139
|
+
msPlayToPreferredSourceUri?: string;
|
|
140
|
+
msPlayToPrimary?: boolean;
|
|
141
|
+
name?: string;
|
|
142
|
+
src?: string;
|
|
143
|
+
units?: string;
|
|
144
|
+
width?: string;
|
|
145
|
+
};
|
|
146
|
+
export type HTMLFieldSetElementProperties = HTMLElementProperties & {
|
|
147
|
+
align?: string;
|
|
148
|
+
disabled?: boolean;
|
|
149
|
+
name?: string;
|
|
150
|
+
};
|
|
151
|
+
export type HTMLFontElementProperties = HTMLElementProperties & {
|
|
152
|
+
face?: string;
|
|
153
|
+
};
|
|
154
|
+
export type HTMLFormElementProperties = HTMLElementProperties & {
|
|
155
|
+
acceptCharset?: string;
|
|
156
|
+
action?: string;
|
|
157
|
+
autocomplete?: string;
|
|
158
|
+
encoding?: string;
|
|
159
|
+
enctype?: string;
|
|
160
|
+
method?: string;
|
|
161
|
+
name?: string;
|
|
162
|
+
noValidate?: boolean;
|
|
163
|
+
target?: string;
|
|
164
|
+
};
|
|
165
|
+
export type HTMLFrameElementProperties = HTMLElementProperties & {
|
|
166
|
+
border?: string;
|
|
167
|
+
borderColor?: any;
|
|
168
|
+
frameBorder?: string;
|
|
169
|
+
frameSpacing?: any;
|
|
170
|
+
height?: string | number;
|
|
171
|
+
longDesc?: string;
|
|
172
|
+
marginHeight?: string;
|
|
173
|
+
marginWidth?: string;
|
|
174
|
+
name?: string;
|
|
175
|
+
noResize?: boolean;
|
|
176
|
+
scrolling?: string;
|
|
177
|
+
src?: string;
|
|
178
|
+
width?: string | number;
|
|
179
|
+
};
|
|
180
|
+
export type HTMLFrameSetElementProperties = HTMLElementProperties & {
|
|
181
|
+
border?: string;
|
|
182
|
+
borderColor?: string;
|
|
183
|
+
cols?: string;
|
|
184
|
+
frameBorder?: string;
|
|
185
|
+
frameSpacing?: any;
|
|
186
|
+
name?: string;
|
|
187
|
+
rows?: string;
|
|
188
|
+
};
|
|
189
|
+
export type HTMLHRElementProperties = HTMLElementProperties & {
|
|
190
|
+
align?: string;
|
|
191
|
+
noShade?: boolean;
|
|
192
|
+
width?: number;
|
|
193
|
+
};
|
|
194
|
+
export type HTMLHeadElementProperties = HTMLElementProperties & {
|
|
195
|
+
profile?: string;
|
|
196
|
+
};
|
|
197
|
+
export type HTMLHeadingElementProperties = HTMLElementProperties & {
|
|
198
|
+
align?: string;
|
|
199
|
+
};
|
|
200
|
+
export type HTMLHtmlElementProperies = HTMLElementProperties & {
|
|
201
|
+
version?: string;
|
|
202
|
+
};
|
|
203
|
+
export type HTMLIFrameElementProperties = HTMLElementProperties & {
|
|
204
|
+
align?: string;
|
|
205
|
+
allowFullscreen?: boolean;
|
|
206
|
+
allowPaymentRequest?: boolean;
|
|
207
|
+
border?: string;
|
|
208
|
+
frameBorder?: string;
|
|
209
|
+
frameSpacing?: any;
|
|
210
|
+
height?: string;
|
|
211
|
+
hspace?: number;
|
|
212
|
+
longDesc?: string;
|
|
213
|
+
marginHeight?: string;
|
|
214
|
+
marginWidth?: string;
|
|
215
|
+
name?: string;
|
|
216
|
+
noResize?: boolean;
|
|
217
|
+
scrolling?: string;
|
|
218
|
+
src?: string;
|
|
219
|
+
vspace?: number;
|
|
220
|
+
width?: string;
|
|
221
|
+
};
|
|
222
|
+
export type HTMLImageElementProperties = HTMLElementProperties & {
|
|
223
|
+
align?: string;
|
|
224
|
+
alt?: string;
|
|
225
|
+
border?: string;
|
|
226
|
+
crossOrigin?: string | null;
|
|
227
|
+
height?: number;
|
|
228
|
+
hspace?: number;
|
|
229
|
+
isMap?: boolean;
|
|
230
|
+
longDesc?: string;
|
|
231
|
+
lowsrc?: string;
|
|
232
|
+
msPlayToDisabled?: boolean;
|
|
233
|
+
msPlayToPreferredSourceUri?: string;
|
|
234
|
+
msPlayToPrimary?: boolean;
|
|
235
|
+
name?: string;
|
|
236
|
+
sizes?: string;
|
|
237
|
+
src?: string;
|
|
238
|
+
srcset?: string;
|
|
239
|
+
useMap?: string;
|
|
240
|
+
vspace?: number;
|
|
241
|
+
width?: number;
|
|
242
|
+
};
|
|
243
|
+
export type HTMLInputElementProperties = HTMLElementProperties & {
|
|
244
|
+
accept?: string;
|
|
245
|
+
align?: string;
|
|
246
|
+
alt?: string;
|
|
247
|
+
autocomplete?: string;
|
|
248
|
+
autofocus?: boolean;
|
|
249
|
+
border?: string;
|
|
250
|
+
checked?: boolean;
|
|
251
|
+
defaultChecked?: boolean;
|
|
252
|
+
defaultValue?: string;
|
|
253
|
+
disabled?: boolean;
|
|
254
|
+
formAction?: string;
|
|
255
|
+
formEnctype?: string;
|
|
256
|
+
formMethod?: string;
|
|
257
|
+
formNoValidate?: string;
|
|
258
|
+
formTarget?: string;
|
|
259
|
+
height?: string;
|
|
260
|
+
hspace?: number;
|
|
261
|
+
indeterminate?: boolean;
|
|
262
|
+
max?: string;
|
|
263
|
+
maxLength?: number;
|
|
264
|
+
min?: string;
|
|
265
|
+
minLength?: number;
|
|
266
|
+
multiple?: boolean;
|
|
267
|
+
name?: string;
|
|
268
|
+
pattern?: string;
|
|
269
|
+
placeholder?: string;
|
|
270
|
+
readOnly?: string;
|
|
271
|
+
required?: boolean;
|
|
272
|
+
selectionDirection?: string;
|
|
273
|
+
selectionEnd?: number;
|
|
274
|
+
selectionStart?: number;
|
|
275
|
+
size?: number;
|
|
276
|
+
src?: string;
|
|
277
|
+
status?: boolean;
|
|
278
|
+
step?: string;
|
|
279
|
+
type?: string;
|
|
280
|
+
useMap?: string;
|
|
281
|
+
value?: string;
|
|
282
|
+
valueAsDate?: Date;
|
|
283
|
+
valueAsNumber?: number;
|
|
284
|
+
vspace?: number;
|
|
285
|
+
webkitdirectory?: boolean;
|
|
286
|
+
width?: string;
|
|
287
|
+
};
|
|
288
|
+
export type HTMLLIElementProperties = HTMLElementProperties & {
|
|
289
|
+
type?: string;
|
|
290
|
+
value?: number;
|
|
291
|
+
};
|
|
292
|
+
export type HTMLLabelElementProperties = HTMLElementProperties & {
|
|
293
|
+
htmlFor?: string;
|
|
294
|
+
};
|
|
295
|
+
export type HTMLLegendElementProperties = HTMLElementProperties & {
|
|
296
|
+
align?: string;
|
|
297
|
+
};
|
|
298
|
+
export type HTMLLinkElementProperties = HTMLElementProperties & {
|
|
299
|
+
charset?: string;
|
|
300
|
+
disabled?: boolean;
|
|
301
|
+
href?: string;
|
|
302
|
+
hreflang?: string;
|
|
303
|
+
media?: string;
|
|
304
|
+
rel?: string;
|
|
305
|
+
rev?: string;
|
|
306
|
+
target?: string;
|
|
307
|
+
type?: string;
|
|
308
|
+
import?: Document;
|
|
309
|
+
integrity?: string;
|
|
310
|
+
};
|
|
311
|
+
export type HTMLMapElementProperties = HTMLElementProperties & {
|
|
312
|
+
name?: string;
|
|
313
|
+
};
|
|
314
|
+
export type HTMLMarqueeElementProperties = HTMLElementProperties & {
|
|
315
|
+
behavior?: string;
|
|
316
|
+
bgColor?: any;
|
|
317
|
+
direction?: string;
|
|
318
|
+
height?: string;
|
|
319
|
+
hspace?: number;
|
|
320
|
+
loop?: number;
|
|
321
|
+
scrollAmount?: number;
|
|
322
|
+
scrollDelay?: number;
|
|
323
|
+
trueSpeed?: boolean;
|
|
324
|
+
vspace?: number;
|
|
325
|
+
width?: string;
|
|
326
|
+
};
|
|
327
|
+
export type HTMLMediaElementProperties = HTMLElementProperties & {
|
|
328
|
+
autoplay?: boolean;
|
|
329
|
+
controls?: boolean;
|
|
330
|
+
crossOrigin?: string | null;
|
|
331
|
+
currentTime?: number;
|
|
332
|
+
defaultMuted?: boolean;
|
|
333
|
+
defaultPlaybackRate?: number;
|
|
334
|
+
loop?: boolean;
|
|
335
|
+
msAudioCategory?: string;
|
|
336
|
+
msAudioDeviceType?: string;
|
|
337
|
+
msPlayToDisabled?: boolean;
|
|
338
|
+
msPlayToPreferredSourceUri?: string;
|
|
339
|
+
msPlayToPrimary?: string;
|
|
340
|
+
msRealTime?: boolean;
|
|
341
|
+
muted?: boolean;
|
|
342
|
+
playbackRate?: number;
|
|
343
|
+
preload?: string;
|
|
344
|
+
readyState?: number;
|
|
345
|
+
src?: string;
|
|
346
|
+
srcObject?: MediaStream | null;
|
|
347
|
+
volume?: number;
|
|
348
|
+
};
|
|
349
|
+
export type HTMLMenuElementProperties = HTMLElementProperties & {
|
|
350
|
+
compact?: boolean;
|
|
351
|
+
type?: string;
|
|
352
|
+
};
|
|
353
|
+
export type HTMLMetaElementProperties = HTMLElementProperties & {
|
|
354
|
+
charset?: string;
|
|
355
|
+
content?: string;
|
|
356
|
+
httpEquiv?: string;
|
|
357
|
+
name?: string;
|
|
358
|
+
scheme?: string;
|
|
359
|
+
url?: string;
|
|
360
|
+
};
|
|
361
|
+
export type HTMLMeterElementProperties = HTMLElementProperties & {
|
|
362
|
+
high?: number;
|
|
363
|
+
low?: number;
|
|
364
|
+
max?: number;
|
|
365
|
+
min?: number;
|
|
366
|
+
optimum?: number;
|
|
367
|
+
value?: number;
|
|
368
|
+
};
|
|
369
|
+
export type HTMLModElementProperties = HTMLElementProperties & {
|
|
370
|
+
cite?: string;
|
|
371
|
+
dateTime?: string;
|
|
372
|
+
};
|
|
373
|
+
export type HTMLOListElementProperteis = HTMLElementProperties & {
|
|
374
|
+
compact?: boolean;
|
|
375
|
+
start?: number;
|
|
376
|
+
type?: string;
|
|
377
|
+
};
|
|
378
|
+
export type HTMLObjectElementProperties = HTMLElementProperties & {
|
|
379
|
+
align?: string;
|
|
380
|
+
alt?: string;
|
|
381
|
+
altHtml?: string;
|
|
382
|
+
archive?: string;
|
|
383
|
+
border?: string;
|
|
384
|
+
code?: string;
|
|
385
|
+
codeBase?: string;
|
|
386
|
+
codeType?: string;
|
|
387
|
+
data?: string;
|
|
388
|
+
declare?: boolean;
|
|
389
|
+
height?: string;
|
|
390
|
+
hspace?: number;
|
|
391
|
+
msPlayToDisabled?: boolean;
|
|
392
|
+
msPlayToPreferredSourceUri?: string;
|
|
393
|
+
msPlayToPrimary?: boolean;
|
|
394
|
+
name?: string;
|
|
395
|
+
standby?: string;
|
|
396
|
+
type?: string;
|
|
397
|
+
useMap?: string;
|
|
398
|
+
vspace?: number;
|
|
399
|
+
width?: string;
|
|
400
|
+
};
|
|
401
|
+
export type HTMLOptGroupElementProperties = HTMLElementProperties & {
|
|
402
|
+
defaultSelected?: boolean;
|
|
403
|
+
disabled?: boolean;
|
|
404
|
+
label?: string;
|
|
405
|
+
selected?: boolean;
|
|
406
|
+
value?: string;
|
|
407
|
+
};
|
|
408
|
+
export type HTMLOptionElementProperties = HTMLElementProperties & {
|
|
409
|
+
defaultSelected?: boolean;
|
|
410
|
+
disabled?: boolean;
|
|
411
|
+
label?: string;
|
|
412
|
+
selected?: boolean;
|
|
413
|
+
text?: string;
|
|
414
|
+
value?: string;
|
|
415
|
+
};
|
|
416
|
+
export type HTMLOutputElementProperties = HTMLElementProperties & {
|
|
417
|
+
defaultValue?: string;
|
|
418
|
+
name?: string;
|
|
419
|
+
value?: string;
|
|
420
|
+
};
|
|
421
|
+
export type HTMLParagraphElementProperties = HTMLElementProperties & {
|
|
422
|
+
align?: string;
|
|
423
|
+
clear?: string;
|
|
424
|
+
};
|
|
425
|
+
export type HTMLParamElementProperties = HTMLElementProperties & {
|
|
426
|
+
name?: string;
|
|
427
|
+
type?: string;
|
|
428
|
+
value?: string;
|
|
429
|
+
valueType?: string;
|
|
430
|
+
};
|
|
431
|
+
export type HTMLPreElementProperties = HTMLElementProperties & {
|
|
432
|
+
width?: number;
|
|
433
|
+
};
|
|
434
|
+
export type HTMLProgressElementProperties = HTMLElementProperties & {
|
|
435
|
+
max?: number;
|
|
436
|
+
value?: number;
|
|
437
|
+
};
|
|
438
|
+
export type HTMLQuoteElementProperties = HTMLElementProperties & {
|
|
439
|
+
cite?: string;
|
|
440
|
+
};
|
|
441
|
+
export type HTMLScriptElementProperties = HTMLElementProperties & {
|
|
442
|
+
async?: boolean;
|
|
443
|
+
charset?: string;
|
|
444
|
+
crossOrigin?: string | null;
|
|
445
|
+
defer?: boolean;
|
|
446
|
+
event?: string;
|
|
447
|
+
htmlFor?: string;
|
|
448
|
+
src?: string;
|
|
449
|
+
text?: string;
|
|
450
|
+
type?: string;
|
|
451
|
+
integrity?: string;
|
|
452
|
+
};
|
|
453
|
+
export type HTMLSelectElementProperties = HTMLElementProperties & {
|
|
454
|
+
autofocus?: boolean;
|
|
455
|
+
disabled?: boolean;
|
|
456
|
+
length?: number;
|
|
457
|
+
multiple?: boolean;
|
|
458
|
+
name?: string;
|
|
459
|
+
required?: boolean;
|
|
460
|
+
selectedIndex?: number;
|
|
461
|
+
selectedOptions?: HTMLCollectionOf<HTMLOptionElement>;
|
|
462
|
+
size?: number;
|
|
463
|
+
value?: string;
|
|
464
|
+
};
|
|
465
|
+
export type HTMLSourceElementProperties = HTMLElementProperties & {
|
|
466
|
+
media?: string;
|
|
467
|
+
msKeySystem?: string;
|
|
468
|
+
sizes?: string;
|
|
469
|
+
src?: string;
|
|
470
|
+
srcset?: string;
|
|
471
|
+
type?: string;
|
|
472
|
+
};
|
|
473
|
+
export type HTMLSpanElementProperties = HTMLElementProperties;
|
|
474
|
+
export type HTMLStyleElementProperties = HTMLElementProperties & {
|
|
475
|
+
disabled?: boolean;
|
|
476
|
+
media?: string;
|
|
477
|
+
type?: string;
|
|
478
|
+
};
|
|
479
|
+
export type HTMLTableCaptionElementProperties = HTMLElementProperties & {
|
|
480
|
+
align?: string;
|
|
481
|
+
vAlign?: string;
|
|
482
|
+
};
|
|
483
|
+
export type HTMLTableCellElementProperties = HTMLElementProperties & {
|
|
484
|
+
abbr?: string;
|
|
485
|
+
align?: string;
|
|
486
|
+
axis?: string;
|
|
487
|
+
bgColor?: any;
|
|
488
|
+
colSpan?: number;
|
|
489
|
+
headers?: string;
|
|
490
|
+
height?: any;
|
|
491
|
+
noWrap?: boolean;
|
|
492
|
+
rowSpan?: number;
|
|
493
|
+
scope?: string;
|
|
494
|
+
width?: string;
|
|
495
|
+
};
|
|
496
|
+
export type HTMLTableColElementProperties = HTMLElementProperties & {
|
|
497
|
+
align?: string;
|
|
498
|
+
span?: number;
|
|
499
|
+
width?: any;
|
|
500
|
+
};
|
|
501
|
+
export type HTMLTableDataCellElementProperties = HTMLElementProperties;
|
|
502
|
+
export type HTMLTableElementProperties = HTMLElementProperties & {
|
|
503
|
+
align?: string;
|
|
504
|
+
bgColor?: any;
|
|
505
|
+
border?: string;
|
|
506
|
+
borderColor?: any;
|
|
507
|
+
caption?: HTMLTableCaptionElement;
|
|
508
|
+
cellPadding?: string;
|
|
509
|
+
cellSpacing?: string;
|
|
510
|
+
cols?: number;
|
|
511
|
+
frame?: string;
|
|
512
|
+
height?: any;
|
|
513
|
+
rows?: HTMLCollectionOf<HTMLTableRowElement>;
|
|
514
|
+
rules?: string;
|
|
515
|
+
summary?: string;
|
|
516
|
+
tBodies?: HTMLCollectionOf<HTMLTableSectionElement>;
|
|
517
|
+
tFoot?: HTMLTableSectionElement;
|
|
518
|
+
tHead?: HTMLTableSectionElement;
|
|
519
|
+
width?: string;
|
|
520
|
+
};
|
|
521
|
+
export type HTMLTableHeaderCellElementProperties = HTMLElementProperties & {
|
|
522
|
+
scope?: string;
|
|
523
|
+
};
|
|
524
|
+
export type HTMLTableRowElementProperties = HTMLElementProperties & {
|
|
525
|
+
align?: string;
|
|
526
|
+
bgColor?: any;
|
|
527
|
+
cells?: HTMLCollectionOf<HTMLTableDataCellElement | HTMLTableHeaderCellElement>;
|
|
528
|
+
height?: any;
|
|
529
|
+
};
|
|
530
|
+
export type HTMLTableSectionElementProperties = HTMLElementProperties & {
|
|
531
|
+
align?: string;
|
|
532
|
+
rows?: HTMLCollectionOf<HTMLTableRowElement>;
|
|
533
|
+
};
|
|
534
|
+
export type HTMLTemplateElementProperties = HTMLElementProperties;
|
|
535
|
+
export type HTMLTextAreaElementProperties = HTMLElementProperties & {
|
|
536
|
+
autofocus?: boolean;
|
|
537
|
+
cols?: number;
|
|
538
|
+
defaultValue?: string;
|
|
539
|
+
disabled?: boolean;
|
|
540
|
+
maxLength?: number;
|
|
541
|
+
minLength?: number;
|
|
542
|
+
name?: string;
|
|
543
|
+
placeholder?: string;
|
|
544
|
+
readOnly?: boolean;
|
|
545
|
+
required?: boolean;
|
|
546
|
+
rows?: number;
|
|
547
|
+
selectionEnd?: number;
|
|
548
|
+
selectedStart?: number;
|
|
549
|
+
status?: any;
|
|
550
|
+
value?: string;
|
|
551
|
+
wrap?: string;
|
|
552
|
+
};
|
|
553
|
+
export type HTMLTimeElementProperties = HTMLElementProperties & {
|
|
554
|
+
dateTime?: string;
|
|
555
|
+
};
|
|
556
|
+
export type HTMLTitleElementProperties = HTMLElementProperties & {
|
|
557
|
+
text?: string;
|
|
558
|
+
};
|
|
559
|
+
export type HTMLTrackElementProperties = HTMLElementProperties & {
|
|
560
|
+
default?: boolean;
|
|
561
|
+
kind?: string;
|
|
562
|
+
label?: string;
|
|
563
|
+
src?: string;
|
|
564
|
+
srclang?: string;
|
|
565
|
+
};
|
|
566
|
+
export type HTMLUListElementProperties = HTMLElementProperties & {
|
|
567
|
+
compact?: boolean;
|
|
568
|
+
type?: string;
|
|
569
|
+
};
|
|
570
|
+
export type HTMLUnknownElementProperties = HTMLElementProperties;
|
|
571
|
+
export type HTMLVideoElementProperties = HTMLElementProperties & {
|
|
572
|
+
height?: number;
|
|
573
|
+
msHorizontalMirror?: boolean;
|
|
574
|
+
msStereo3DPackingMode?: string;
|
|
575
|
+
msStereo3DRenderMode?: string;
|
|
576
|
+
msZoom?: boolean;
|
|
577
|
+
poster?: string;
|
|
578
|
+
width?: number;
|
|
579
|
+
};
|
|
580
|
+
//# sourceMappingURL=dom-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-properties.d.ts","sourceRoot":"","sources":["../../../src/internal/dom-properties.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,qBAAqB,GAC7B,iBAAiB,GACjB;IACA,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAEH,MAAM,MAAM,2BAA2B,GACnC,qBAAqB,GACrB;IACA,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CA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ACrB;IACA,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAEH,MAAM,MAAM,0BAA0B,GAClC,qBAAqB,GACrB;IACA,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,4BAA4B,GAAG,qBAAqB,CAAA;AAEhE,MAAM,MAAM,0BAA0B,GAClC,qBAAqB,GACrB;IACA,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import * as Fx from "@typed/fx/Fx";
|
|
5
|
+
import * as Directive from "@typed/template/Directive";
|
|
6
|
+
import * as EventHandler from "@typed/template/EventHandler";
|
|
7
|
+
import { html } from "@typed/template/RenderTemplate";
|
|
8
|
+
import { Effect } from "effect";
|
|
9
|
+
import { uncapitalize } from "effect/String";
|
|
10
|
+
/**
|
|
11
|
+
* @since 1.0.0
|
|
12
|
+
*/
|
|
13
|
+
export function Anchor(props, ...children) {
|
|
14
|
+
const ref = Directive.ref(({ value: ref }) => Effect.gen(function* (_) {
|
|
15
|
+
yield* _(addEventListeners(props, ref));
|
|
16
|
+
if (props.ref) {
|
|
17
|
+
yield* _(props.ref(ref));
|
|
18
|
+
}
|
|
19
|
+
}));
|
|
20
|
+
return html `<a
|
|
21
|
+
ref="${ref}"
|
|
22
|
+
.data="${props.data}"
|
|
23
|
+
?hidden="${props.hidden}"
|
|
24
|
+
?hidefocus="${props.hideFocus}"
|
|
25
|
+
?spellcheck="${props.spellcheck}"
|
|
26
|
+
.scrollLeft="${props.scrollLeft}"
|
|
27
|
+
.scrollTop="${props.scrollTop}"
|
|
28
|
+
accesskey="${props.accessKey}"
|
|
29
|
+
charset="${props.charset}"
|
|
30
|
+
class="${props.className}"
|
|
31
|
+
contenteditable="${props.contentEditable}"
|
|
32
|
+
coords="${props.coords}"
|
|
33
|
+
dir="${props.dir}"
|
|
34
|
+
download="${props.download}"
|
|
35
|
+
draggable="${props.draggable}"
|
|
36
|
+
.hash="${props.hash}"
|
|
37
|
+
.host="${props.host}"
|
|
38
|
+
.hostname="${props.hostname}"
|
|
39
|
+
.href="${props.href}"
|
|
40
|
+
hreflang="${props.hreflang}"
|
|
41
|
+
id="${props.id}"
|
|
42
|
+
id="${props.id}"
|
|
43
|
+
lang="${props.lang}"
|
|
44
|
+
Methods="${props.Methods}"
|
|
45
|
+
name="${props.name}"
|
|
46
|
+
.pathname="${props.pathname}"
|
|
47
|
+
.port="${props.port}"
|
|
48
|
+
.protocol="${props.protocol}"
|
|
49
|
+
rel="${props.rel}"
|
|
50
|
+
rev="${props.rev}"
|
|
51
|
+
.search="${props.search}"
|
|
52
|
+
shape="${props.shape}"
|
|
53
|
+
slot="${props.slot}"
|
|
54
|
+
tabindex="${props.tabIndex}"
|
|
55
|
+
target="${props.target}"
|
|
56
|
+
text="${props.text}"
|
|
57
|
+
title="${props.title}"
|
|
58
|
+
type="${props.type}"
|
|
59
|
+
urn="${props.urn}"
|
|
60
|
+
>${children}</a>`;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @since 1.0.0
|
|
64
|
+
*/
|
|
65
|
+
export function addEventListeners(props, ref) {
|
|
66
|
+
return Fx.forkScoped(Fx.merge(getEventHandlers(props).map(([type, handler]) => addEventListener(ref, type, handler))));
|
|
67
|
+
}
|
|
68
|
+
function addEventListener(ref, event, handler) {
|
|
69
|
+
return Fx.mapEffect(ref.events(event, handler.options), (ev) => handler.handler(ev));
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @since 1.0.0
|
|
73
|
+
*/
|
|
74
|
+
export function getEventHandlers(props) {
|
|
75
|
+
const eventHandlers = Object.keys(props).filter((x) => x[0] === "o" && x[1] === "n").flatMap((key) => {
|
|
76
|
+
const handler = getEventHandler(props[key]);
|
|
77
|
+
if (!handler)
|
|
78
|
+
return [];
|
|
79
|
+
const eventType = uncapitalize(key.slice(2));
|
|
80
|
+
return [[eventType, handler]];
|
|
81
|
+
});
|
|
82
|
+
return eventHandlers;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @since 1.0.0
|
|
86
|
+
*/
|
|
87
|
+
export function getEventHandler(handler) {
|
|
88
|
+
if (!handler)
|
|
89
|
+
return null;
|
|
90
|
+
if (Effect.isEffect(handler)) {
|
|
91
|
+
return EventHandler.make(() => handler);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
return handler;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=Anchor.js.map
|