dothtml-interfaces 0.4.6 → 1.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 +3 -3
- package/package.json +6 -4
- package/src/bindings/{i-binding.d.ts → i-binding.ts} +11 -11
- package/src/bindings/{i-observer.d.ts → i-observer.ts} +2 -2
- package/src/bindings/{i-reactive.d.ts → i-reactive.ts} +4 -4
- package/src/bindings/i-ref.ts +5 -0
- package/src/bindings/{i-watcher.d.ts → i-watcher.ts} +52 -38
- package/src/{i-dot-component.d.ts → i-dot-component.ts} +113 -84
- package/src/{i-dot.d.ts → i-dot.ts} +1041 -1047
- package/src/{i-event-bus.d.ts → i-event-bus.ts} +10 -10
- package/src/{index.d.ts → index.ts} +14 -14
- package/src/styles/at-rules/{i-at-color-profile-builder.d.ts → i-at-color-profile-builder.ts} +4 -4
- package/src/styles/at-rules/{i-at-counter-style-builder.d.ts → i-at-counter-style-builder.ts} +14 -14
- package/src/styles/at-rules/{i-at-font-family-builder.d.ts → i-at-font-family-builder.ts} +18 -18
- package/src/styles/at-rules/{i-at-font-palette-values.d.ts → i-at-font-palette-values.ts} +5 -5
- package/src/styles/at-rules/{i-at-keyframes-builder.d.ts → i-at-keyframes-builder.ts} +7 -7
- package/src/styles/at-rules/{i-at-page-builder.d.ts → i-at-page-builder.ts} +19 -19
- package/src/styles/complex-css-types/{i-filter-prop.d.ts → i-filter-prop.ts} +19 -19
- package/src/styles/complex-css-types/{i-shadow-prop.d.ts → i-shadow-prop.ts} +11 -11
- package/src/styles/complex-css-types/{i-transformation-prop.d.ts → i-transformation-prop.ts} +32 -32
- package/src/styles/{css-types.d.ts → css-types.ts} +141 -141
- package/src/styles/{i-css-prop.d.ts → i-css-prop.ts} +295 -295
- package/src/styles/{i-dot-css.d.ts → i-dot-css.ts} +218 -214
- package/src/styles/mapped-types/{angle-prop.d.ts → angle-prop.ts} +15 -15
- package/src/styles/mapped-types/{color-props.d.ts → color-props.ts} +60 -60
- package/src/styles/mapped-types/{length-prop.d.ts → length-prop.ts} +21 -19
- package/src/bindings/i-ref.d.ts +0 -4
|
@@ -1,1047 +1,1041 @@
|
|
|
1
|
-
|
|
2
|
-
import IDotComponent from "./i-dot-component";
|
|
3
|
-
import IDotCss from "./styles/i-dot-css";
|
|
4
|
-
import IEventBus from "./i-event-bus";
|
|
5
|
-
import {IReactive} from "./bindings/i-reactive";
|
|
6
|
-
import { IBinding } from "./bindings/i-binding";
|
|
7
|
-
import { IWatcher } from "./bindings/i-watcher";
|
|
8
|
-
import IDotcssProp from "./styles/i-css-prop";
|
|
9
|
-
import { IRef } from "./bindings/i-ref";
|
|
10
|
-
|
|
11
|
-
type DotContentPrimitive = string | number | boolean | undefined | null;
|
|
12
|
-
type DotContentBasic = DotContentPrimitive | Node | Element | NodeList | IDotComponent | IDotDocument//typeof DotDocument;
|
|
13
|
-
export type DotContent = DotContentBasic | Array<DotContent> | IReactive;//|(()=>DotContent);
|
|
14
|
-
|
|
15
|
-
type
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
//
|
|
25
|
-
|
|
26
|
-
//
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* dot
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
cite(
|
|
139
|
-
code(
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
//
|
|
348
|
-
//
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
(
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
*/
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
//
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
onUnload?: (e: Event) => void;
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
//
|
|
553
|
-
|
|
554
|
-
//
|
|
555
|
-
//
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
//
|
|
600
|
-
|
|
601
|
-
//
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
interface
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
}
|
|
686
|
-
interface
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
value
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
//
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
interface
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
interface
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
896
|
-
|
|
897
|
-
/** @deprecated Deprecated in HTML5.
|
|
898
|
-
|
|
899
|
-
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
900
|
-
|
|
901
|
-
/** @deprecated Deprecated in HTML5.
|
|
902
|
-
|
|
903
|
-
/** @deprecated Deprecated in HTML5. */
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
//
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
//
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
onSuspend?: (e: Event) => void;
|
|
1043
|
-
onTimeUpdate?: (e: Event) => void;
|
|
1044
|
-
onVolumeChange?: (e: Event) => void;
|
|
1045
|
-
onWaiting?: (e: Event) => void;
|
|
1046
|
-
onCanPlay?: (e: Event) => void;
|
|
1047
|
-
}
|
|
1
|
+
|
|
2
|
+
import IDotComponent from "./i-dot-component";
|
|
3
|
+
import IDotCss from "./styles/i-dot-css";
|
|
4
|
+
import IEventBus from "./i-event-bus";
|
|
5
|
+
import {IReactive} from "./bindings/i-reactive";
|
|
6
|
+
import { IBinding } from "./bindings/i-binding";
|
|
7
|
+
import { IWatcher } from "./bindings/i-watcher";
|
|
8
|
+
import IDotcssProp from "./styles/i-css-prop";
|
|
9
|
+
import { IRef } from "./bindings/i-ref";
|
|
10
|
+
|
|
11
|
+
type DotContentPrimitive = string | number | boolean | undefined | null;
|
|
12
|
+
type DotContentBasic = DotContentPrimitive | Node | Element | NodeList | IDotComponent | IDotDocument//typeof DotDocument;
|
|
13
|
+
export type DotContent = DotContentBasic | Array<DotContent> | IReactive;//|(()=>DotContent);
|
|
14
|
+
|
|
15
|
+
export type ISignal<T = any> = IWatcher<T>;
|
|
16
|
+
|
|
17
|
+
type AttrVal<T = string | number | boolean> = T | IReactive;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Global interface containing elements.
|
|
21
|
+
*/
|
|
22
|
+
export interface IDotDocument {
|
|
23
|
+
// Creating a blank DotDocument.
|
|
24
|
+
// (document?: Element, classPrefix?: number, targetWindow?: Window): void;
|
|
25
|
+
|
|
26
|
+
// Internal use only:
|
|
27
|
+
// Removed in v6.
|
|
28
|
+
// _appendOrCreateDocument(content: DotContent, parentEl?: Element, beforeNode?: Node|number);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* A conditional function, analogous to if. Renders the specified DOT if a condition is met. Dynamic binding is possible when condition and callback are functions.
|
|
32
|
+
*/
|
|
33
|
+
when(condition: IReactive<boolean> | boolean, callback: DotContent): IDotConditionalDocument;
|
|
34
|
+
|
|
35
|
+
// Main functions.
|
|
36
|
+
// TODO: please make this into a test case.
|
|
37
|
+
/**
|
|
38
|
+
* Cast any document to any other element type. This can be used to access attributes when dotHTML doesn't know the type.
|
|
39
|
+
* @example
|
|
40
|
+
* dot("#my-input").as(dot.input).value("Hello, world!")
|
|
41
|
+
* @example
|
|
42
|
+
* dot.h("<a>Click me!</a>").as(dot.a).hRef("https://dothtml.com/")
|
|
43
|
+
*/
|
|
44
|
+
as<T extends IDotDocument>(dotElement: (...props: any[]) => T): T;
|
|
45
|
+
/**
|
|
46
|
+
* Creates a custom element.
|
|
47
|
+
*/
|
|
48
|
+
el(tag: string, content?: DotContent): IDotDocument
|
|
49
|
+
|
|
50
|
+
// Special "tags"
|
|
51
|
+
/**
|
|
52
|
+
* Creates a generic HTML node that can render a string, HTML nodes, or dotHTML content.
|
|
53
|
+
*/
|
|
54
|
+
html(content: string | number | boolean | IReactive): IDotDocument;
|
|
55
|
+
/**
|
|
56
|
+
* Creates a text node that will render as a string, rather than being parsed as markup.
|
|
57
|
+
*/
|
|
58
|
+
text(content: string | number | boolean | IReactive): IDotDocument;
|
|
59
|
+
/**
|
|
60
|
+
* Creates a text node that will render as a string, rather than being parsed as markup.
|
|
61
|
+
*/
|
|
62
|
+
md(content: string | number | boolean | IReactive): IDotDocument;
|
|
63
|
+
/**
|
|
64
|
+
* Mounts a component.
|
|
65
|
+
*/
|
|
66
|
+
mount<T extends IDotComponent>(component: T, ...args: any[]): IDotDocument;
|
|
67
|
+
slot(name?: string | any, fallback?: any): IDotDocument;
|
|
68
|
+
// mount<T extends IComponent>(init: (c: IMountedComponent<T>) => IMountedComponent<T> | void, component: T): IDotDocument;
|
|
69
|
+
// mount(component: IComponent, init: (init=>IMountedComponent): IMountedComponent|void): IDotDocument;
|
|
70
|
+
/**
|
|
71
|
+
* Iterates n times, appending the result of each iteration to the VDBO.
|
|
72
|
+
* @param n The number of iterations.
|
|
73
|
+
* @param callback The markup-generating callback.
|
|
74
|
+
*/
|
|
75
|
+
iterate(n: number, callback: (i: number) => DotContent): IDotDocument;
|
|
76
|
+
each<T>(a: Array<T> | { [key: string | number]: T }, callback: (x: T, i: number, k: string | number) => DotContent): IDotDocument;
|
|
77
|
+
each<T>(a:
|
|
78
|
+
IWatcher<Array<T>>
|
|
79
|
+
|IWatcher<Record<string|number, T>>
|
|
80
|
+
|IBinding<any, Array<T>>
|
|
81
|
+
|IBinding<any, IWatcher<Record<string|number, T>>>
|
|
82
|
+
, callback: (x: T, i: IBinding<number>, k: string | number) => DotContent): IDotDocument;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Removes the targeted document and everything in it.
|
|
86
|
+
*/
|
|
87
|
+
remove(): void;
|
|
88
|
+
|
|
89
|
+
style(c: string | ISignal<any> | IBinding<any, any> | IDotCss | ((s: IDotCss) => void)): this;
|
|
90
|
+
class(name: string, condition?: any): this;
|
|
91
|
+
attr(name: string, value: any): this;
|
|
92
|
+
on(event: string, callback: (e: any) => void): this;
|
|
93
|
+
onEnter(callback: (el: HTMLElement) => void): this;
|
|
94
|
+
onLeave(callback: (el: HTMLElement) => Promise<void> | void): this;
|
|
95
|
+
|
|
96
|
+
fade(duration?: number): this;
|
|
97
|
+
slide(duration?: number): this;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Get the last HTML element added to the targeted document.
|
|
101
|
+
*/
|
|
102
|
+
// getLast(): HTMLElement;
|
|
103
|
+
/**
|
|
104
|
+
* Deletes each element within the targeted document.
|
|
105
|
+
*/
|
|
106
|
+
empty(): IDotDocument;
|
|
107
|
+
|
|
108
|
+
// Redundant in v6.
|
|
109
|
+
// scopeClass(prefix: number|string|null, content: DotContent): IDotDocument;
|
|
110
|
+
|
|
111
|
+
// Tags.
|
|
112
|
+
a(...args: (DotContent | IDotA)[]): IDotDocument;
|
|
113
|
+
|
|
114
|
+
aside(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
115
|
+
abbr(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
116
|
+
address(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
117
|
+
|
|
118
|
+
area(...args: (DotContent | IDotArea)[]): IDotDocument;
|
|
119
|
+
|
|
120
|
+
article(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
121
|
+
|
|
122
|
+
audio(...args: (DotContent | IDotAudio)[]): IDotDocument;
|
|
123
|
+
|
|
124
|
+
b(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
125
|
+
bdi(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
126
|
+
bdo(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
127
|
+
|
|
128
|
+
blockQuote(...args: (DotContent | IDotBlockQuote)[]): IDotDocument;
|
|
129
|
+
|
|
130
|
+
// This shouldn't really be used - if it is, then it should have the custom behavior of rewriting the existing document body, rather than adding a second one.
|
|
131
|
+
body(...args: (DotContent | IDotBody)[]): IDotDocument;
|
|
132
|
+
|
|
133
|
+
br(...args: (DotContent | IDotBr)[]): IDotDocument;
|
|
134
|
+
button(...args: (DotContent | IDotButton)[]): IDotDocument;
|
|
135
|
+
canvas(...args: (DotContent | IDotCanvas)[]): IDotDocument;
|
|
136
|
+
|
|
137
|
+
caption(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
138
|
+
cite(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
139
|
+
code(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
140
|
+
|
|
141
|
+
col(...args: (DotContent | IDotCol)[]): IDotDocument;
|
|
142
|
+
colGroup(...args: (DotContent | IDotColGroup)[]): IDotDocument;
|
|
143
|
+
|
|
144
|
+
content(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
145
|
+
data(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
146
|
+
dataList(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
147
|
+
dd(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
148
|
+
|
|
149
|
+
del(...args: (DotContent | IDotDel)[]): IDotDocument;
|
|
150
|
+
details(...args: (DotContent | IDotDetails)[]): IDotDocument;
|
|
151
|
+
|
|
152
|
+
dfn(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
153
|
+
dialog(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
154
|
+
div(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
155
|
+
dl(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
156
|
+
dt(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
157
|
+
em(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
158
|
+
|
|
159
|
+
embed(...args: (DotContent | IDotEmbed)[]): IDotDocument;
|
|
160
|
+
fieldSet(...args: (DotContent | IDotFieldSet)[]): IDotDocument;
|
|
161
|
+
|
|
162
|
+
figCaption(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
163
|
+
figure(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
164
|
+
footer(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
165
|
+
|
|
166
|
+
form(...args: (DotContent | IDotForm)[]): IDotDocument;
|
|
167
|
+
|
|
168
|
+
h1(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
169
|
+
h2(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
170
|
+
h3(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
171
|
+
h4(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
172
|
+
h5(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
173
|
+
h6(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
174
|
+
header(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
175
|
+
|
|
176
|
+
hr(...args: (DotContent | ((attrs: IDotHr) => IDotHr))[]): IDotDocument;
|
|
177
|
+
|
|
178
|
+
i(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
179
|
+
|
|
180
|
+
iFrame(...args: (DotContent | IDotIFrame)[]): IDotDocument;
|
|
181
|
+
img(...args: (DotContent | IDotImg)[]): IDotDocument;
|
|
182
|
+
input(...args: (DotContent | IDotInput)[]): IDotDocument;
|
|
183
|
+
ins(...args: (DotContent | IDotIns)[]): IDotDocument;
|
|
184
|
+
|
|
185
|
+
kbd(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
186
|
+
|
|
187
|
+
/** @deprecated Deprecated in HTML5. */
|
|
188
|
+
keyGen(...args: (DotContent | IDotKeyGen)[]): IDotDocument;
|
|
189
|
+
label(...args: (DotContent | IDotLabel)[]): IDotDocument;
|
|
190
|
+
|
|
191
|
+
legend(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
192
|
+
|
|
193
|
+
li(...args: (DotContent | IDotLi)[]): IDotDocument;
|
|
194
|
+
|
|
195
|
+
main(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
196
|
+
|
|
197
|
+
map(...args: (DotContent | IDotMap)[]): IDotDocument;
|
|
198
|
+
|
|
199
|
+
mark(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
200
|
+
|
|
201
|
+
menu(...args: (DotContent | IDotMenu)[]): IDotDocument;
|
|
202
|
+
meter(...args: (DotContent | IDotMeter)[]): IDotDocument;
|
|
203
|
+
|
|
204
|
+
nav(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
205
|
+
|
|
206
|
+
object(...args: (DotContent | IDotObject)[]): IDotDocument;
|
|
207
|
+
ol(...args: (DotContent | IDotOl)[]): IDotDocument;
|
|
208
|
+
optGroup(...args: (DotContent | IDotOptGroup)[]): IDotDocument;
|
|
209
|
+
option(...args: (DotContent | IDotOption)[]): IDotDocument;
|
|
210
|
+
output(...args: (DotContent | IDotOutput)[]): IDotDocument;
|
|
211
|
+
|
|
212
|
+
p(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
213
|
+
|
|
214
|
+
param(...args: (DotContent | IDotParam)[]): IDotDocument;
|
|
215
|
+
|
|
216
|
+
pre(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
217
|
+
|
|
218
|
+
progress(...args: (DotContent | IDotProgress)[]): IDotDocument;
|
|
219
|
+
q(...args: (DotContent | IDotQ)[]): IDotDocument;
|
|
220
|
+
|
|
221
|
+
rp(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
222
|
+
rt(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
223
|
+
ruby(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
224
|
+
s(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
225
|
+
samp(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
226
|
+
section(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
227
|
+
|
|
228
|
+
select(...args: (DotContent | IDotSelect)[]): IDotDocument;
|
|
229
|
+
|
|
230
|
+
small(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
231
|
+
|
|
232
|
+
source(...args: (DotContent | IDotSource)[]): IDotDocument;
|
|
233
|
+
|
|
234
|
+
span(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
235
|
+
strong(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
236
|
+
svg(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
237
|
+
sub(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
238
|
+
summary(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
239
|
+
sup(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
240
|
+
|
|
241
|
+
table(...args: (DotContent | IDotTable)[]): IDotDocument;
|
|
242
|
+
tBody(...args: (DotContent | IDotTBody)[]): IDotDocument;
|
|
243
|
+
td(...args: (DotContent | IDotTd)[]): IDotDocument;
|
|
244
|
+
textArea(...args: (DotContent | IDotTextArea)[]): IDotDocument;
|
|
245
|
+
tFoot(...args: (DotContent | IDotTFoot)[]): IDotDocument;
|
|
246
|
+
th(...args: (DotContent | IDotTh)[]): IDotDocument;
|
|
247
|
+
tHead(...args: (DotContent | IDotTHead)[]): IDotDocument;
|
|
248
|
+
time(...args: (DotContent | IDotTime)[]): IDotDocument;
|
|
249
|
+
tr(...args: (DotContent | IDotTr)[]): IDotDocument;
|
|
250
|
+
track(...args: (DotContent | IDotTrack)[]): IDotDocument;
|
|
251
|
+
|
|
252
|
+
u(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
253
|
+
ul(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
254
|
+
var(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
255
|
+
|
|
256
|
+
video(...args: (DotContent | IDotVideo)[]): IDotDocument;
|
|
257
|
+
|
|
258
|
+
wbr(...args: (DotContent | IDotGlobalAttrs)[]): IDotDocument;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
type Styles = string | IDotcssProp;
|
|
262
|
+
// interface IComponentFactory {
|
|
263
|
+
// <TProps extends string[], TEvents extends string[], T extends IComponent<TProps, TEvents>>(
|
|
264
|
+
// Base: new () => T, styles?: Styles | Styles[]
|
|
265
|
+
// ): new (attrs?: ComponentArgs<TProps, TEvents>) => T & { new (attrs?: ComponentArgs<TProps, TEvents>): IComponent<TProps, TEvents> };
|
|
266
|
+
// }
|
|
267
|
+
|
|
268
|
+
// interface IComponentFactory {
|
|
269
|
+
// <TProps extends string[], TEvents extends string[], T extends IComponent<TProps, TEvents>>(
|
|
270
|
+
// Base: new () => T, styles?: Styles | Styles[]
|
|
271
|
+
// ): new (attrs?: ComponentArgs<TProps, TEvents>) => T & IComponent<TProps, TEvents>;
|
|
272
|
+
// }
|
|
273
|
+
|
|
274
|
+
// useStyles<T extends IComponent>(styles: Styles | Styles[]): (Base: new () => T) => new () => T;
|
|
275
|
+
// hasEvents<T extends IComponent>(styles: Styles | Styles[]): (Base: new () => T) => new () => T;
|
|
276
|
+
// prop(target: any, propertyKey: string): void;
|
|
277
|
+
|
|
278
|
+
export type ComponentArgs<TProps extends Array<string> = [], TEvents extends Array<string> = []> = {
|
|
279
|
+
[key in TProps[number]]?: any;
|
|
280
|
+
} & Partial<{
|
|
281
|
+
[key in TEvents[number]]?: (...args: any[]) => void;
|
|
282
|
+
}>;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Interface for the dot object.
|
|
286
|
+
*/
|
|
287
|
+
export interface IDotCore extends IDotDocument {
|
|
288
|
+
(targetSelector: string | Element | Node | NodeList | Array<Node | Element>, targetWindow?: Window): IDotDocument;
|
|
289
|
+
|
|
290
|
+
version: string;
|
|
291
|
+
styleMode: "sync" | "async";
|
|
292
|
+
|
|
293
|
+
navigate(path: string, replace?: boolean): void;
|
|
294
|
+
css: IDotCss;
|
|
295
|
+
bus: IEventBus;
|
|
296
|
+
window: IDotWindowBuilder;
|
|
297
|
+
|
|
298
|
+
state<Ti = IReactive | Array<any> | { [key: string | number]: any } | string | number | boolean>(initValue?: Ti, key?: (Ti extends Array<any> | { [key: string | number]: any } ? string : never)): ISignal<Ti>;
|
|
299
|
+
computed<T>(getter: () => T): ISignal<T>;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Registers a side effect that runs automatically when its dependencies change.
|
|
303
|
+
* If called within a component or store, it is automatically cleaned up when the owner is disposed.
|
|
304
|
+
* @param callback The function to execute. Can return a cleanup function.
|
|
305
|
+
* @returns A manual dispose function.
|
|
306
|
+
*/
|
|
307
|
+
effect(callback: () => void | (() => void)): () => void;
|
|
308
|
+
|
|
309
|
+
alpha(color: string | ISignal<string> | IBinding<any, string>, opacity: number | ISignal<number> | IBinding<any, number>): ISignal<string>;
|
|
310
|
+
flushSync(): void;
|
|
311
|
+
setSync(sync: boolean): void;
|
|
312
|
+
|
|
313
|
+
currentPath: ISignal<string>;
|
|
314
|
+
currentSearch: ISignal<string>;
|
|
315
|
+
currentHash: ISignal<string>;
|
|
316
|
+
|
|
317
|
+
useQueryParams(): ISignal<Record<string, string>>;
|
|
318
|
+
useHash(): ISignal<string>;
|
|
319
|
+
|
|
320
|
+
create<T extends IDotComponent>(Ctor: { new(...args: any[]): T }, ...args: any[]): T;
|
|
321
|
+
|
|
322
|
+
store: <TState extends Record<string, any>, TActions extends Record<string, Function>, TGetters extends Record<string, (state: any) => any>>(options: { id?: string, state?: () => TState, getters?: TGetters, actions?: TActions }) => () => any;
|
|
323
|
+
getStore: (id: string) => any;
|
|
324
|
+
clearStores: () => void;
|
|
325
|
+
stores: Record<string, any>;
|
|
326
|
+
useGlobalStyles: (styles: string | CSSStyleSheet | Array<string | CSSStyleSheet>) => void;
|
|
327
|
+
setTheme: (theme: any) => void;
|
|
328
|
+
|
|
329
|
+
Router: any;
|
|
330
|
+
Link: any;
|
|
331
|
+
|
|
332
|
+
slot(name?: string | any, fallback?: any): IDotDocument;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Creates a reactive reference to a DOM element or component instance.
|
|
336
|
+
* Refs are signals that are automatically populated when the element is mounted.
|
|
337
|
+
* @template T The type of the element or component.
|
|
338
|
+
*/
|
|
339
|
+
ref<T extends HTMLElement | IDotComponent = HTMLElement>(): IRef<T>;
|
|
340
|
+
|
|
341
|
+
// Keep these around for a bit to show how it was done before in case I need to change anything prior to the v6 launch.
|
|
342
|
+
// component<T extends IComponent>(Base: new (...args: Parameters<T['build']>) => T): new (...args: Parameters<T['build']>) => T;
|
|
343
|
+
// useStyles<T extends IComponent>(styles: string|((css: IDotCss)=>IDotcssProp|string)): ((Base: new (...args: Parameters<T['build']>) => T) => new (...args: Parameters<T['build']>) => T);
|
|
344
|
+
|
|
345
|
+
// component: IComponentFactory;
|
|
346
|
+
// Works but doesn't infer types from the component.
|
|
347
|
+
// There's room for improvement here but it's not clear to me how to do it.
|
|
348
|
+
// What I'd like to do is have the types tied to the IComponent interface rather than the component factory function.
|
|
349
|
+
component<T extends { new(...args: any[]): IDotComponent }>(Ctor: T): T;
|
|
350
|
+
component<TProps extends string[] = [], TEvents extends string[] = []>(Base: new (...args: any[]) => IDotComponent, styles?: string|IDotcssProp|Array<string|IDotcssProp>)
|
|
351
|
+
: new (attrs?: ComponentArgs<TProps, TEvents>) => IDotComponent;
|
|
352
|
+
|
|
353
|
+
useStyles(document: Document, styles: Styles): HTMLStyleElement;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* A global error handler that is called when an error occurs during the rendering or update process.
|
|
357
|
+
*/
|
|
358
|
+
onError?: (error: any) => void;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export interface IDotWindowWrapper{
|
|
362
|
+
open(): Promise<void>;
|
|
363
|
+
close(): void;
|
|
364
|
+
window: Window;
|
|
365
|
+
document: Document;
|
|
366
|
+
title: string;
|
|
367
|
+
width: number;
|
|
368
|
+
height: number;
|
|
369
|
+
isOpen: boolean;
|
|
370
|
+
syncStyles: boolean;
|
|
371
|
+
tether: boolean;
|
|
372
|
+
position: "center" | "parent-center" | "beside-parent" | {left: number, top: number} | null;
|
|
373
|
+
on(event: string, callback: (e: any) => void): this;
|
|
374
|
+
focus(): void;
|
|
375
|
+
bringToFront(): void;
|
|
376
|
+
resizeTo(width: number, height: number): void;
|
|
377
|
+
moveTo(left: number, top: number): void;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export interface IDotWindowBuilder {
|
|
381
|
+
(options: {content: IDotComponent, width?: number, height?: number, title?: string, tether?: boolean, syncStyles?: boolean, position?: "center" | "parent-center" | "beside-parent" | {left: number, top: number}}): IDotWindowWrapper;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export interface IDotConditionalDocument extends IDotDocument {
|
|
385
|
+
/**
|
|
386
|
+
* A conditional catch, analogous to else if. Can be used after a when function. Evaluates if the previous when's condition was false.
|
|
387
|
+
* Renders the specified DOT if a condition is met. Dynamic binding is possible when condition and callback are functions.
|
|
388
|
+
*/
|
|
389
|
+
otherwiseWhen(condition: IReactive<boolean> | boolean, callback: DotContent): IDotConditionalDocument;
|
|
390
|
+
/**
|
|
391
|
+
* A conditional final catch, analogous to else. Can be used after a when or otherwiseWhen function. Evaluates if the previous when/otherwiseWhen evaluated to false.
|
|
392
|
+
* Renders the specified DOT if a condition is met. Dynamic binding is possible when callback is a function.
|
|
393
|
+
*/
|
|
394
|
+
otherwise(callback: DotContent): IDotDocument;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// Attribute interface (for all elements):
|
|
398
|
+
export interface IDotGlobalAttrs<T extends HTMLElement = HTMLElement> {
|
|
399
|
+
/**
|
|
400
|
+
* Create a custom attribute.
|
|
401
|
+
*/
|
|
402
|
+
// attr(name: string, value: unknown, arg3?: unknown): T;
|
|
403
|
+
custom?: Record<string, AttrVal<unknown>>
|
|
404
|
+
/**
|
|
405
|
+
* Adds a data-<suffix> attribute to the current element which can contain custom data.
|
|
406
|
+
*/
|
|
407
|
+
customData?: Record<string, AttrVal<unknown>>;
|
|
408
|
+
/**
|
|
409
|
+
* Create a named reference to the current element so that it can be accessed within the current component.
|
|
410
|
+
*/
|
|
411
|
+
// TODO: this needs to be redone now.
|
|
412
|
+
// The better way might be using the new reactive system instead of references.
|
|
413
|
+
// For now I'll leave it like this:
|
|
414
|
+
ref?: IRef<T>;
|
|
415
|
+
|
|
416
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
417
|
+
bgColor?: AttrVal<unknown>;
|
|
418
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
419
|
+
color?: AttrVal<unknown>;
|
|
420
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
421
|
+
aLink?: AttrVal<unknown>;
|
|
422
|
+
/** @deprecated Deprecated in HTML5. */
|
|
423
|
+
archive?: AttrVal<unknown>;
|
|
424
|
+
|
|
425
|
+
// TODO: we're still missing some additional global attributes. See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/
|
|
426
|
+
areaHidden?: AttrVal<boolean>;
|
|
427
|
+
areaLabel?: AttrVal<string>;
|
|
428
|
+
areaDescribedBy?: AttrVal<string>;
|
|
429
|
+
areaControls?: AttrVal<string>;
|
|
430
|
+
areaExpanded?: AttrVal<boolean>;
|
|
431
|
+
areaChecked?: AttrVal<string>;
|
|
432
|
+
areaSelected?: AttrVal<boolean>;
|
|
433
|
+
accessKey?: AttrVal<string>; // This could potentially be enumerated. But care should be taken as these types are already quite complex.
|
|
434
|
+
class?: AttrVal<string> | Array<AttrVal<string>> | AttrVal<Array<string>> | Record<string, AttrVal<boolean>> | (string | Record<string, any>)[]; // Space-separated. TODO: need tests.
|
|
435
|
+
contentEditable?: AttrVal<"true"> | AttrVal<"false"> | AttrVal<"plaintext-only">;
|
|
436
|
+
contextMenu?: AttrVal<string>;
|
|
437
|
+
dir?: AttrVal<string>;
|
|
438
|
+
draggable?: AttrVal<"true"> | AttrVal<"false">;
|
|
439
|
+
dropZone?: AttrVal<"move"> | AttrVal<"copy"> | AttrVal<"link">;
|
|
440
|
+
exportParts?: AttrVal<string>;
|
|
441
|
+
hidden?: AttrVal<boolean>;
|
|
442
|
+
id?: string;
|
|
443
|
+
inert?: AttrVal<boolean>;
|
|
444
|
+
inputMode?: AttrVal<string>;
|
|
445
|
+
is?: AttrVal<string>;
|
|
446
|
+
itemId?: AttrVal<string>;
|
|
447
|
+
itemProp?: AttrVal<string>;
|
|
448
|
+
itemRef?: AttrVal<string>;
|
|
449
|
+
itemScope?: AttrVal<string>;
|
|
450
|
+
itemType?: AttrVal<string>;
|
|
451
|
+
lang?: AttrVal<string>;
|
|
452
|
+
nOnce?: AttrVal<string>;
|
|
453
|
+
part?: AttrVal<string>;
|
|
454
|
+
role?: AttrVal<string>;
|
|
455
|
+
spellCheck?: AttrVal<"true"> | AttrVal<"false">;
|
|
456
|
+
style?: AttrVal<string> | IDotcssProp | ((s: IDotCss) => void);
|
|
457
|
+
tabIndex?: AttrVal<number>;
|
|
458
|
+
title?: AttrVal<string>;
|
|
459
|
+
translate?: AttrVal<string>;
|
|
460
|
+
virtualKeyboardPolicy?: AttrVal<"auto"> | AttrVal<"manual">;
|
|
461
|
+
|
|
462
|
+
// Events
|
|
463
|
+
|
|
464
|
+
onAbort?: (e: Event) => void;
|
|
465
|
+
onCanPlay?: (e: Event) => void;
|
|
466
|
+
onCantPlayThrough?: (e: Event) => void;
|
|
467
|
+
onContextMenu?: (e: MouseEvent) => void; // global
|
|
468
|
+
onCopy?: (e: ClipboardEvent) => void; // global
|
|
469
|
+
onCueChange?: (e: Event) => void;
|
|
470
|
+
onCut?: (e: ClipboardEvent) => void; // global
|
|
471
|
+
onPagePaste?: (e: ClipboardEvent) => void; // global
|
|
472
|
+
|
|
473
|
+
onDrag?: (e: DragEvent) => void; // global
|
|
474
|
+
onDragEnd?: (e: DragEvent) => void; // global
|
|
475
|
+
onDragStart?: (e: DragEvent) => void; // global
|
|
476
|
+
onDragEnter?: (e: DragEvent) => void; // global
|
|
477
|
+
onDragOver?: (e: DragEvent) => void; // global
|
|
478
|
+
onDragLeave?: (e: DragEvent) => void; // global
|
|
479
|
+
onDrop?: (e: DragEvent) => void; // global
|
|
480
|
+
onDurationChange?: (e: Event) => void;
|
|
481
|
+
onEmptied?: (e: Event) => void;
|
|
482
|
+
onEnded?: (e: Event) => void;
|
|
483
|
+
onError?: (e: Event) => void; // loading elements.
|
|
484
|
+
onHashChange?: (e: HashChangeEvent) => void;
|
|
485
|
+
onInvalid?: (e: Event) => void; // global
|
|
486
|
+
onLoadedData?: (e: Event) => void;
|
|
487
|
+
onLoadedMetadata?: (e: Event) => void;
|
|
488
|
+
onLoadStart?: (e: Event) => void;
|
|
489
|
+
onMouseWheel?: (e: WheelEvent) => void; // global
|
|
490
|
+
onWheel?: (e: WheelEvent) => void; // global
|
|
491
|
+
|
|
492
|
+
// Configured.
|
|
493
|
+
onBlur?: (e: FocusEvent) => void;
|
|
494
|
+
onChange?: (e: Event) => void;
|
|
495
|
+
onClick?: (e: MouseEvent) => void;
|
|
496
|
+
onDblClick?: (e: MouseEvent) => void;
|
|
497
|
+
onFocus?: (e: FocusEvent) => void;
|
|
498
|
+
onInput?: (e: InputEvent) => void;
|
|
499
|
+
onKeyDown?: (e: KeyboardEvent) => void;
|
|
500
|
+
onKeyPress?: (e: KeyboardEvent) => void;
|
|
501
|
+
onKeyUp?: (e: KeyboardEvent) => void;
|
|
502
|
+
onLoad?: (e: Event) => void; // On specific resources only.
|
|
503
|
+
onMouseDown?: (e: MouseEvent) => void;
|
|
504
|
+
onMouseEnter?: (e: MouseEvent) => void;
|
|
505
|
+
onMouseLeave?: (e: MouseEvent) => void;
|
|
506
|
+
onMouseMove?: (e: MouseEvent) => void;
|
|
507
|
+
onMouseOut?: (e: MouseEvent) => void;
|
|
508
|
+
onMouseOver?: (e: MouseEvent) => void;
|
|
509
|
+
onMouseUp?: (e: MouseEvent) => void;
|
|
510
|
+
onOffline?: (e: Event) => void;
|
|
511
|
+
onOnline?: (e: Event) => void;
|
|
512
|
+
onPageHide?: (e: PageTransitionEvent) => void;
|
|
513
|
+
onPageShow?: (e: PageTransitionEvent) => void;
|
|
514
|
+
onPause?: (e: Event) => void;
|
|
515
|
+
onPlay?: (e: Event) => void;
|
|
516
|
+
onPlaying?: (e: Event) => void;
|
|
517
|
+
onPointerCancel?: (e: PointerEvent) => void;
|
|
518
|
+
onPointerDown?: (e: PointerEvent) => void;
|
|
519
|
+
onPointerEnter?: (e: PointerEvent) => void;
|
|
520
|
+
onPointerLeave?: (e: PointerEvent) => void;
|
|
521
|
+
onPointerMove?: (e: PointerEvent) => void;
|
|
522
|
+
onPointerOut?: (e: PointerEvent) => void;
|
|
523
|
+
onPointerOver?: (e: PointerEvent) => void;
|
|
524
|
+
onPointerUp?: (e: PointerEvent) => void;
|
|
525
|
+
onPopState?: (e: PopStateEvent) => void;
|
|
526
|
+
onProgress?: (e: Event) => void;
|
|
527
|
+
onRateChange?: (e: Event) => void;
|
|
528
|
+
|
|
529
|
+
onTouchMove?: (e: TouchEvent) => void;
|
|
530
|
+
onTouchCancel?: (e: TouchEvent) => void;
|
|
531
|
+
onTouchEnd?: (e: TouchEvent) => void;
|
|
532
|
+
onTouchStart?: (e: TouchEvent) => void;
|
|
533
|
+
|
|
534
|
+
onReset?: (e: Event) => void;
|
|
535
|
+
onResize?: (e: UIEvent) => void;
|
|
536
|
+
onScroll?: (e: UIEvent) => void;
|
|
537
|
+
onSearch?: (e: Event) => void;
|
|
538
|
+
onSeeked?: (e: Event) => void;
|
|
539
|
+
onSeeking?: (e: Event) => void;
|
|
540
|
+
onSelect?: (e: Event) => void;
|
|
541
|
+
onStalled?: (e: Event) => void;
|
|
542
|
+
onStorage?: (e: StorageEvent) => void;
|
|
543
|
+
onSubmit?: (e: Event) => void;
|
|
544
|
+
onSuspend?: (e: Event) => void;
|
|
545
|
+
onTimeUpdate?: (e: Event) => void;
|
|
546
|
+
onToggle?: (e: Event) => void;
|
|
547
|
+
onUnload?: (e: Event) => void;
|
|
548
|
+
onVolumeChange?: (e: Event) => void;
|
|
549
|
+
onWaiting?: (e: Event) => void;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
// Interface for specific elements:
|
|
553
|
+
|
|
554
|
+
// interface IMountedComponent<T extends IComponent> {
|
|
555
|
+
// on(event: string, callback: (...args: Array<any>) => void): IMountedComponent<T>;
|
|
556
|
+
// prop(name: string, value: any): IMountedComponent<T>;
|
|
557
|
+
// }
|
|
558
|
+
|
|
559
|
+
export interface IDotA extends IDotGlobalAttrs<HTMLAnchorElement> {
|
|
560
|
+
download?: AttrVal<boolean>;
|
|
561
|
+
hRef?: AttrVal<string>;
|
|
562
|
+
href?: AttrVal<string>;
|
|
563
|
+
hRefLang?: AttrVal<string>;
|
|
564
|
+
charset?: AttrVal<string>;
|
|
565
|
+
coords?: AttrVal<string>;
|
|
566
|
+
shape?: AttrVal<string>;
|
|
567
|
+
media?: AttrVal<string>;
|
|
568
|
+
ping?: AttrVal<string> | Array<AttrVal<string>> | AttrVal<Array<string>> | Record<string, AttrVal<string>>; // Space-separated. TODO: need tests.
|
|
569
|
+
rel?: AttrVal<string>;
|
|
570
|
+
/** @deprecated Deprecated in HTML5. */
|
|
571
|
+
rev?: AttrVal<unknown>;
|
|
572
|
+
name?: AttrVal<string>;
|
|
573
|
+
target?: AttrVal<"_blank"> | AttrVal<"_parent"> | AttrVal<"_self"> | AttrVal<"_top">;
|
|
574
|
+
type?: AttrVal<string>;
|
|
575
|
+
}
|
|
576
|
+
export interface IDotArea extends IDotGlobalAttrs<HTMLAreaElement> {
|
|
577
|
+
alt?: AttrVal<string>;
|
|
578
|
+
coords?: AttrVal<string>;
|
|
579
|
+
download?: AttrVal<string>;
|
|
580
|
+
hRef?: AttrVal<string>;
|
|
581
|
+
href?: AttrVal<string>;
|
|
582
|
+
hRefLang?: AttrVal<string>;
|
|
583
|
+
media?: AttrVal<string>;
|
|
584
|
+
noHRef?: AttrVal<string>; // Deprecated in HTML5.
|
|
585
|
+
rel?: AttrVal<string>;
|
|
586
|
+
shape?: AttrVal<string>;
|
|
587
|
+
target?: AttrVal<string>;
|
|
588
|
+
}
|
|
589
|
+
export interface IDotAudio extends IDotGlobalAttrs<HTMLAudioElement> {
|
|
590
|
+
autoPlay?: AttrVal<boolean>;
|
|
591
|
+
// buffered?: unknown; // Not used?
|
|
592
|
+
controls?: AttrVal<boolean>;
|
|
593
|
+
loop?: AttrVal<boolean>;
|
|
594
|
+
muted?: AttrVal<boolean>;
|
|
595
|
+
preload?: AttrVal<"auto"> | AttrVal<"metadata"> | AttrVal<"none">;
|
|
596
|
+
src?: AttrVal<string>;
|
|
597
|
+
crossOrigin?: AttrVal<"anonymous"> | AttrVal<"use-credentials">;
|
|
598
|
+
|
|
599
|
+
// Special functions:
|
|
600
|
+
// TODO: these need to be removed from here.
|
|
601
|
+
// pause(): IDotAudio;
|
|
602
|
+
// play(): IDotAudio;
|
|
603
|
+
// stop(): IDotAudio;
|
|
604
|
+
|
|
605
|
+
// Events:
|
|
606
|
+
onAbort?: (e: Event) => void;
|
|
607
|
+
onCantPlayThrough?: (e: Event) => void;
|
|
608
|
+
onDurationChange?: (e: Event) => void;
|
|
609
|
+
onEmptied?: (e: Event) => void;
|
|
610
|
+
onEnded?: (e: Event) => void;
|
|
611
|
+
onLoadedData?: (e: Event) => void;
|
|
612
|
+
onLoadStart?: (e: Event) => void;
|
|
613
|
+
onLoadedMetadata?: (e: Event) => void;
|
|
614
|
+
onPause?: (e: Event) => void;
|
|
615
|
+
onPlay?: (e: Event) => void;
|
|
616
|
+
onPlaying?: (e: Event) => void;
|
|
617
|
+
onProgress?: (e: Event) => void;
|
|
618
|
+
onRateChange?: (e: Event) => void;
|
|
619
|
+
onSeeked?: (e: Event) => void;
|
|
620
|
+
onSeeking?: (e: Event) => void;
|
|
621
|
+
onStalled?: (e: Event) => void;
|
|
622
|
+
onSuspend?: (e: Event) => void;
|
|
623
|
+
onTimeUpdate?: (e: Event) => void;
|
|
624
|
+
onVolumeChange?: (e: Event) => void;
|
|
625
|
+
onWaiting?: (e: Event) => void;
|
|
626
|
+
onCanPlay?: (e: Event) => void;
|
|
627
|
+
}
|
|
628
|
+
export interface IDotBlockQuote extends IDotGlobalAttrs<HTMLQuoteElement> {
|
|
629
|
+
quoteCite?: AttrVal<string>; // alias for cite
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
export interface IDotBody extends IDotGlobalAttrs<HTMLBodyElement> {
|
|
633
|
+
align?: unknown; // Deprecated in HTML5. Use CSS.
|
|
634
|
+
background?: unknown; // Deprecated in HTML5. Use CSS.
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
export interface IDotBr extends IDotGlobalAttrs<HTMLBRElement> {
|
|
638
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
639
|
+
clear?: unknown;
|
|
640
|
+
}
|
|
641
|
+
export interface IDotButton extends IDotGlobalAttrs<HTMLButtonElement> {
|
|
642
|
+
autoFocus?: AttrVal<boolean>;
|
|
643
|
+
formAction?: AttrVal<string>;
|
|
644
|
+
disabled?: AttrVal<boolean>;
|
|
645
|
+
name?: AttrVal<string>;
|
|
646
|
+
type?: AttrVal<"button"> | AttrVal<"submit"> | AttrVal<"reset">;
|
|
647
|
+
whichForm?: AttrVal<string>; // alias for form
|
|
648
|
+
value?: AttrVal<string>;
|
|
649
|
+
}
|
|
650
|
+
export interface IDotCanvas extends IDotGlobalAttrs<HTMLCanvasElement> {
|
|
651
|
+
height?: AttrVal<number>;
|
|
652
|
+
width?: AttrVal<number>;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export interface IDotCol extends IDotGlobalAttrs<HTMLTableColElement> {
|
|
656
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
657
|
+
charOff?: AttrVal<unknown>;
|
|
658
|
+
colSpan?: AttrVal<number>; // alias for span
|
|
659
|
+
vAlign?: AttrVal<number>;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
export interface IDotColGroup extends IDotGlobalAttrs<HTMLTableColElement> {
|
|
663
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
664
|
+
charOff?: AttrVal<unknown>;
|
|
665
|
+
colSpan?: AttrVal<number>; // alias for span
|
|
666
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
667
|
+
vAlign?: AttrVal<unknown>;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
export interface IDotDel extends IDotGlobalAttrs {
|
|
671
|
+
dateTime?: AttrVal<string>; // Would be cool if this could accept dates and just format them internally...
|
|
672
|
+
quoteCite?: AttrVal<string>; // alias for cite
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export interface IDotDetails extends IDotGlobalAttrs<HTMLDetailsElement> {
|
|
676
|
+
open?: AttrVal<boolean>;
|
|
677
|
+
// Events:
|
|
678
|
+
onToggle?: (e: Event) => void;
|
|
679
|
+
}
|
|
680
|
+
export interface IDotEmbed extends IDotGlobalAttrs<HTMLEmbedElement> {
|
|
681
|
+
height?: AttrVal<number>;
|
|
682
|
+
src?: AttrVal<string>;
|
|
683
|
+
type?: AttrVal<string>;
|
|
684
|
+
width?: AttrVal<number>;
|
|
685
|
+
}
|
|
686
|
+
export interface IDotFieldSet extends IDotGlobalAttrs<HTMLFieldSetElement> {
|
|
687
|
+
disabled?: AttrVal<boolean>;
|
|
688
|
+
name?: AttrVal<string>;
|
|
689
|
+
whichForm?: AttrVal<string>; // alias for form
|
|
690
|
+
}
|
|
691
|
+
export interface IDotForm extends IDotGlobalAttrs<HTMLFormElement> {
|
|
692
|
+
acceptCharset?: AttrVal<string>; // accept-charset, apparently the only hyphenated attribute (aside from data-*)...
|
|
693
|
+
action?: AttrVal<string>;
|
|
694
|
+
autoComplete?: AttrVal<"on"> | AttrVal<"off">;
|
|
695
|
+
encType?: AttrVal<"application/x-www-form-urlencoded"> | AttrVal<"multipart/form-data"> | AttrVal<"text/plain">;
|
|
696
|
+
method?: AttrVal<"get"> | AttrVal<"post">;
|
|
697
|
+
name?: AttrVal<string>;
|
|
698
|
+
noValidate?: AttrVal<boolean>;
|
|
699
|
+
target?: AttrVal<"_self"> | AttrVal<"_blank"> | AttrVal<"_parent"> | AttrVal<"_top">;
|
|
700
|
+
// rel?: PrimativeOrObservable<string> IDotForm; // Not used with forms?
|
|
701
|
+
}
|
|
702
|
+
export interface IDotHr extends IDotGlobalAttrs<HTMLHRElement> {
|
|
703
|
+
noShade?: AttrVal<unknown>;
|
|
704
|
+
}
|
|
705
|
+
export interface IDotIFrame extends IDotGlobalAttrs<HTMLIFrameElement> {
|
|
706
|
+
allow?: AttrVal<string>;
|
|
707
|
+
allowFullScreen?: AttrVal<boolean>;
|
|
708
|
+
/** @deprecated Deprecated in HTML5. */
|
|
709
|
+
frameBorder?: AttrVal<0> | AttrVal<1>;
|
|
710
|
+
height?: AttrVal<number>;
|
|
711
|
+
/** @deprecated Deprecated in HTML5. */
|
|
712
|
+
longDesc?: AttrVal<string>;
|
|
713
|
+
marginHeight?: AttrVal<number>;
|
|
714
|
+
marginWidth?: AttrVal<number>;
|
|
715
|
+
name?: AttrVal<string>;
|
|
716
|
+
referrerPolicy?: AttrVal<string>;
|
|
717
|
+
sandbox?: AttrVal<string>;
|
|
718
|
+
/** @deprecated Deprecated in HTML5. */
|
|
719
|
+
scrolling?: AttrVal<string>;
|
|
720
|
+
seamless?: AttrVal<boolean>;
|
|
721
|
+
src?: AttrVal<string>;
|
|
722
|
+
srcDoc?: AttrVal<string>;
|
|
723
|
+
width?: AttrVal<number>;
|
|
724
|
+
}
|
|
725
|
+
export interface IDotImg extends IDotGlobalAttrs<HTMLImageElement> {
|
|
726
|
+
alt?: AttrVal<string>;
|
|
727
|
+
crossOrigin?: AttrVal<"anonymous"> | AttrVal<"use-credentials">;
|
|
728
|
+
decoding?: AttrVal<"async"> | AttrVal<"auto"> | AttrVal<"sync">;
|
|
729
|
+
height?: AttrVal<number>;
|
|
730
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
731
|
+
hSpace?: AttrVal<unknown>;
|
|
732
|
+
isMap?: AttrVal<boolean>;
|
|
733
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
734
|
+
loading?: AttrVal<"eager"> | AttrVal<"lazy">;
|
|
735
|
+
longDesc?: AttrVal<string>;
|
|
736
|
+
referrerPolicy?: AttrVal<string>;
|
|
737
|
+
sizes?: AttrVal<string>;
|
|
738
|
+
src?: AttrVal<string>;
|
|
739
|
+
srcSet?: AttrVal<string>; // Comma separated. Consider accepting an array.
|
|
740
|
+
useMap?: AttrVal<number>;
|
|
741
|
+
width?: AttrVal<number>;
|
|
742
|
+
}
|
|
743
|
+
export interface IDotInput extends IDotGlobalAttrs<HTMLInputElement> {
|
|
744
|
+
accept?: AttrVal<string>;
|
|
745
|
+
alt?: AttrVal<string>;
|
|
746
|
+
autoCapitalize?: AttrVal<"none"> | AttrVal<"sentences"> | AttrVal<"words"> | AttrVal<"characters">;
|
|
747
|
+
autoComplete?: AttrVal<"on"> | AttrVal<"off">;
|
|
748
|
+
autoFocus?: AttrVal<boolean>;
|
|
749
|
+
checked?: AttrVal<boolean>;
|
|
750
|
+
enterKeyHint?: AttrVal<"enter"> | AttrVal<"done"> | AttrVal<"go"> | AttrVal<"next"> | AttrVal<"preveous"> | AttrVal<"search"> | AttrVal<"send">;
|
|
751
|
+
dirName?: AttrVal<string>;
|
|
752
|
+
disabled?: AttrVal<boolean>;
|
|
753
|
+
formAction?: AttrVal<string>;
|
|
754
|
+
height?: AttrVal<number>;
|
|
755
|
+
list?: AttrVal<string>;
|
|
756
|
+
max?: AttrVal<number>;
|
|
757
|
+
maxLength?: AttrVal<number>;
|
|
758
|
+
min?: AttrVal<number>;
|
|
759
|
+
multiple?: AttrVal<boolean>;
|
|
760
|
+
name?: AttrVal<string>;
|
|
761
|
+
pattern?: AttrVal<string>;
|
|
762
|
+
placeholder?: AttrVal<string>;
|
|
763
|
+
readOnly?: AttrVal<boolean>;
|
|
764
|
+
required?: AttrVal<boolean>;
|
|
765
|
+
size?: AttrVal<number>;
|
|
766
|
+
src?: AttrVal<string>;
|
|
767
|
+
step?: AttrVal<string> | AttrVal<number>;
|
|
768
|
+
type?: "button" | "checkbox" | "color" | "date" | "datetime-local" | "email" | "file" | "hidden" | "image" | "month" | "number" | "password" | "radio" | "range" | "reset" | "search" | "submit" | "tel" | "text" | "time" | "url" | "week";
|
|
769
|
+
value?: AttrVal<string>;
|
|
770
|
+
whichForm?: AttrVal<string>; // form
|
|
771
|
+
width?: AttrVal<number>;
|
|
772
|
+
|
|
773
|
+
// Special functions:
|
|
774
|
+
// getVal(): string
|
|
775
|
+
// setVal(value: unknown): IDotInput;
|
|
776
|
+
|
|
777
|
+
// Input-specific events:
|
|
778
|
+
onSearch?: (e: Event) => void;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
export interface IDotIns extends IDotGlobalAttrs {
|
|
782
|
+
dateTime?: AttrVal<string>;
|
|
783
|
+
quoteCite?: AttrVal<string>; // Alias for cite.
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
export interface IDotKeyGen extends IDotGlobalAttrs {
|
|
787
|
+
challenge?: AttrVal<string>;
|
|
788
|
+
keyType?: AttrVal<string>;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export interface IDotLabel extends IDotGlobalAttrs<HTMLLabelElement> {
|
|
792
|
+
for?: AttrVal<string>;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
export interface IDotLi extends IDotGlobalAttrs<HTMLLIElement> {
|
|
796
|
+
value?: AttrVal<number>;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
export interface IDotMap extends IDotGlobalAttrs<HTMLMapElement> {
|
|
800
|
+
name?: AttrVal<string>;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
export interface IDotMenu extends IDotGlobalAttrs<HTMLMenuElement> {
|
|
804
|
+
type?: AttrVal<string>;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export interface IDotMeter extends IDotGlobalAttrs<HTMLMeterElement> {
|
|
808
|
+
high?: AttrVal<number>;
|
|
809
|
+
low?: AttrVal<number>;
|
|
810
|
+
max?: AttrVal<number>;
|
|
811
|
+
min?: AttrVal<number>;
|
|
812
|
+
optimum?: AttrVal<number>;
|
|
813
|
+
value?: AttrVal<number>;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
export interface IDotObject extends IDotGlobalAttrs<HTMLObjectElement> {
|
|
817
|
+
archive?: AttrVal<string>;
|
|
818
|
+
classId?: AttrVal<string>;
|
|
819
|
+
codeBase?: AttrVal<string>;
|
|
820
|
+
codeType?: AttrVal<string>;
|
|
821
|
+
objectData?: AttrVal<string>; // Alias for data.
|
|
822
|
+
declare?: AttrVal<boolean>;
|
|
823
|
+
height?: AttrVal<number>;
|
|
824
|
+
name?: AttrVal<string>;
|
|
825
|
+
standby?: AttrVal<string>;
|
|
826
|
+
type?: AttrVal<string>;
|
|
827
|
+
useMap?: AttrVal<string>;
|
|
828
|
+
width?: AttrVal<number>;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
export interface IDotOl extends IDotGlobalAttrs<HTMLUListElement> {
|
|
832
|
+
/** @deprecated Deprecated in HTML5. */
|
|
833
|
+
reversed?: AttrVal<boolean>;
|
|
834
|
+
start?: AttrVal<number>;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export interface IDotOptGroup extends IDotGlobalAttrs<HTMLUListElement> {
|
|
838
|
+
disabled?: AttrVal<boolean>;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export interface IDotOption extends IDotGlobalAttrs<HTMLUListElement> {
|
|
842
|
+
disabled?: AttrVal<boolean>;
|
|
843
|
+
optionLabel?: AttrVal<string>; // Alias for label
|
|
844
|
+
selected?: AttrVal<boolean>;
|
|
845
|
+
value?: AttrVal<string>;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
export interface IDotOutput extends IDotGlobalAttrs<HTMLOutputElement> {
|
|
849
|
+
for?: AttrVal<string>;
|
|
850
|
+
name?: AttrVal<string>;
|
|
851
|
+
whichForm?: AttrVal<string>; // Alias for form
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
export interface IDotParam extends IDotGlobalAttrs<HTMLParamElement> {
|
|
855
|
+
name?: AttrVal<string>;
|
|
856
|
+
value?: AttrVal<string>;
|
|
857
|
+
/** @deprecated Deprecated in HTML5. */
|
|
858
|
+
valueType?: AttrVal<unknown>;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
export interface IDotProgress extends IDotGlobalAttrs<HTMLProgressElement> {
|
|
862
|
+
max?: AttrVal<number>;
|
|
863
|
+
value?: AttrVal<number>;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
export interface IDotQ extends IDotGlobalAttrs<HTMLQuoteElement> {
|
|
867
|
+
quoteCite?: AttrVal<string>; // alias for cite
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
export interface IDotSelect extends IDotGlobalAttrs<HTMLSelectElement> {
|
|
871
|
+
autoFocus?: AttrVal<boolean>;
|
|
872
|
+
disabled?: AttrVal<boolean>;
|
|
873
|
+
multiple?: AttrVal<boolean>;
|
|
874
|
+
name?: AttrVal<string>;
|
|
875
|
+
required?: AttrVal<boolean>;
|
|
876
|
+
size?: AttrVal<number>;
|
|
877
|
+
whichForm?: AttrVal<string>; // alias for form
|
|
878
|
+
value?: AttrVal<string>; // Pseudo attribute for convenience.
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
export interface IDotSource extends IDotGlobalAttrs<HTMLSourceElement> {
|
|
882
|
+
media?: AttrVal<string>;
|
|
883
|
+
src?: AttrVal<string>;
|
|
884
|
+
type?: AttrVal<string>;
|
|
885
|
+
sizes?: AttrVal<string>;
|
|
886
|
+
srcSet?: AttrVal<string>;
|
|
887
|
+
}
|
|
888
|
+
export interface IDotTable extends IDotGlobalAttrs<HTMLTableElement> {
|
|
889
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
890
|
+
border?: AttrVal<string> | AttrVal<number>;
|
|
891
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
892
|
+
cellPadding?: AttrVal<string> | AttrVal<number>;
|
|
893
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
894
|
+
cellSpacing?: AttrVal<string> | AttrVal<number>;
|
|
895
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
896
|
+
frame?: AttrVal<string> | AttrVal<number>;
|
|
897
|
+
/** @deprecated Deprecated in HTML5. */
|
|
898
|
+
height?: AttrVal<number>;
|
|
899
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
900
|
+
rules?: AttrVal<string>;
|
|
901
|
+
/** @deprecated Deprecated in HTML5. */
|
|
902
|
+
tableSummary?: AttrVal<string>;
|
|
903
|
+
/** @deprecated Deprecated in HTML5. */
|
|
904
|
+
width?: AttrVal<number>;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
export interface IDotTextArea extends IDotGlobalAttrs<HTMLTextAreaElement> {
|
|
908
|
+
autoCapitalize?: AttrVal<"none"> | AttrVal<"sentences"> | AttrVal<"words"> | AttrVal<"characters">;
|
|
909
|
+
autoFocus?: AttrVal<boolean>;
|
|
910
|
+
cols?: AttrVal<number>;
|
|
911
|
+
dirName?: AttrVal<string>;
|
|
912
|
+
disabled?: AttrVal<boolean>;
|
|
913
|
+
enterKeyHint?: AttrVal<"enter"> | AttrVal<"done"> | AttrVal<"go"> | AttrVal<"next"> | AttrVal<"preveous"> | AttrVal<"search"> | AttrVal<"send">;
|
|
914
|
+
maxLength?: AttrVal<number>;
|
|
915
|
+
name?: AttrVal<string>;
|
|
916
|
+
placeholder?: AttrVal<string>;
|
|
917
|
+
readOnly?: AttrVal<boolean>;
|
|
918
|
+
required?: AttrVal<boolean>;
|
|
919
|
+
rows?: AttrVal<number>;
|
|
920
|
+
whichForm?: AttrVal<string>; // alias for form
|
|
921
|
+
wrap?: AttrVal<string>;
|
|
922
|
+
value?: AttrVal<string>; // Pseudo attribute for convenience.
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export interface IDotTBody extends IDotGlobalAttrs<HTMLTableSectionElement> {
|
|
926
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
927
|
+
charOff?: AttrVal<unknown>;
|
|
928
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
929
|
+
vAlign?: AttrVal<unknown>;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
export interface IDotTd extends IDotGlobalAttrs<HTMLTableCellElement> {
|
|
933
|
+
|
|
934
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
935
|
+
axis?: AttrVal<string>;
|
|
936
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
937
|
+
char?: AttrVal<string>;
|
|
938
|
+
colSpan?: AttrVal<number>;
|
|
939
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
940
|
+
charOff?: AttrVal<string>;
|
|
941
|
+
headers?: AttrVal<string>;
|
|
942
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
943
|
+
noWrap?: AttrVal<boolean>;
|
|
944
|
+
rowSpan?: AttrVal<number>;
|
|
945
|
+
scope?: AttrVal<string>;
|
|
946
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
947
|
+
vAlign?: AttrVal<string>;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
export interface IDotTFoot extends IDotGlobalAttrs<HTMLTableSectionElement> {
|
|
951
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
952
|
+
charOff?: AttrVal<number>;
|
|
953
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
954
|
+
vAlign?: AttrVal<string>;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export interface IDotTime extends IDotGlobalAttrs<HTMLTimeElement> {
|
|
958
|
+
dateTime?: AttrVal<string>;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
export interface IDotTh extends IDotGlobalAttrs<HTMLTableCellElement> {
|
|
962
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
963
|
+
axis?: AttrVal<string>;
|
|
964
|
+
colSpan?: AttrVal<number>;
|
|
965
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
966
|
+
charOff?: AttrVal<string>;
|
|
967
|
+
headers?: AttrVal<string>;
|
|
968
|
+
rowSpan?: AttrVal<number>;
|
|
969
|
+
scope?: AttrVal<string>;
|
|
970
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
971
|
+
vAlign?: AttrVal<string>;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
export interface IDotTHead extends IDotGlobalAttrs<HTMLTableSectionElement> {
|
|
975
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
976
|
+
charOff?: AttrVal<string> | AttrVal<number>;
|
|
977
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
978
|
+
vAlign?: AttrVal<string>;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
export interface IDotTr extends IDotGlobalAttrs<HTMLTableRowElement> {
|
|
982
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
983
|
+
charOff?: AttrVal<string> | AttrVal<number>;
|
|
984
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
985
|
+
vAlign?: AttrVal<string>;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
export interface IDotTrack extends IDotGlobalAttrs<HTMLTrackElement> {
|
|
989
|
+
default?: AttrVal<boolean>;
|
|
990
|
+
kind?: AttrVal<string>;
|
|
991
|
+
src?: AttrVal<string>;
|
|
992
|
+
srcLang?: AttrVal<string>;
|
|
993
|
+
trackLabel?: AttrVal<string>; // alias for label
|
|
994
|
+
|
|
995
|
+
// Events:
|
|
996
|
+
onCueChange?: (e: Event) => void;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
export interface IDotVideo extends IDotGlobalAttrs<HTMLVideoElement> {
|
|
1000
|
+
autoPlay?: AttrVal<boolean>;
|
|
1001
|
+
buffered?: IReactive; // Managed by browser not user. TODO: we can possibly use events to update observable objects.
|
|
1002
|
+
controls?: AttrVal<boolean>;
|
|
1003
|
+
crossOrigin?: AttrVal<"anonymous"> | AttrVal<"use-credentials">;
|
|
1004
|
+
height?: AttrVal<number>;
|
|
1005
|
+
loop?: AttrVal<boolean>;
|
|
1006
|
+
muted?: AttrVal<boolean>;
|
|
1007
|
+
playsInline?: AttrVal<boolean>;
|
|
1008
|
+
poster?: AttrVal<string>;
|
|
1009
|
+
preload?: AttrVal<"none"> | AttrVal<"metadata"> | AttrVal<"auto">;
|
|
1010
|
+
src?: AttrVal<string>;
|
|
1011
|
+
width?: AttrVal<number>;
|
|
1012
|
+
|
|
1013
|
+
// Special functions:
|
|
1014
|
+
// TODO:
|
|
1015
|
+
// pause(): IDotVideo;
|
|
1016
|
+
// play(): IDotVideo;
|
|
1017
|
+
// stop(): IDotVideo;
|
|
1018
|
+
|
|
1019
|
+
// Events:
|
|
1020
|
+
onAbort?: (e: Event) => void;
|
|
1021
|
+
onCantPlayThrough?: (e: Event) => void;
|
|
1022
|
+
onDurationChange?: (e: Event) => void;
|
|
1023
|
+
onEmptied?: (e: Event) => void;
|
|
1024
|
+
onEnded?: (e: Event) => void;
|
|
1025
|
+
onLoadedData?: (e: Event) => void;
|
|
1026
|
+
onLoadStart?: (e: Event) => void;
|
|
1027
|
+
onLoadedMetadata?: (e: Event) => void;
|
|
1028
|
+
onPause?: (e: Event) => void;
|
|
1029
|
+
onPlay?: (e: Event) => void;
|
|
1030
|
+
onPlaying?: (e: Event) => void;
|
|
1031
|
+
onProgress?: (e: Event) => void;
|
|
1032
|
+
onRateChange?: (e: Event) => void;
|
|
1033
|
+
onSeeked?: (e: Event) => void;
|
|
1034
|
+
onSeeking?: (e: Event) => void;
|
|
1035
|
+
onStalled?: (e: Event) => void;
|
|
1036
|
+
onSuspend?: (e: Event) => void;
|
|
1037
|
+
onTimeUpdate?: (e: Event) => void;
|
|
1038
|
+
onVolumeChange?: (e: Event) => void;
|
|
1039
|
+
onWaiting?: (e: Event) => void;
|
|
1040
|
+
onCanPlay?: (e: Event) => void;
|
|
1041
|
+
}
|