@ktjs/core 0.25.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +513 -464
- package/dist/index.iife.js +34 -6
- package/dist/index.legacy.js +39 -8
- package/dist/index.mjs +34 -6
- package/dist/jsx/index.d.ts +539 -463
- package/dist/jsx/index.mjs +34 -6
- package/dist/jsx/jsx-runtime.d.ts +1 -1
- package/dist/jsx/jsx-runtime.mjs +34 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,10 @@ declare function effect(effectFn: () => void, reactives: Array<KTReactive<any>>,
|
|
|
56
56
|
|
|
57
57
|
type KTReactive<T> = KTRef<T> | KTComputed<T>;
|
|
58
58
|
declare const toReactive: <T>(value: T | KTReactive<T>, onChange?: ReactiveChangeHandler<T>) => KTReactive<T>;
|
|
59
|
+
type KTReactify<T> = T extends any ? KTReactive<T> | T : never;
|
|
60
|
+
type KTReactifyObject<T extends object> = {
|
|
61
|
+
[K in keyof T]: KTReactify<T[K]>;
|
|
62
|
+
};
|
|
59
63
|
|
|
60
64
|
declare const enum KTReactiveType {
|
|
61
65
|
REF = 1,
|
|
@@ -242,7 +246,7 @@ type KTComponent = (
|
|
|
242
246
|
* ## About
|
|
243
247
|
* @package @ktjs/core
|
|
244
248
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
245
|
-
* @version 0.
|
|
249
|
+
* @version 0.26.1 (Last Update: 2026.02.05 17:35:29.547)
|
|
246
250
|
* @license MIT
|
|
247
251
|
* @link https://github.com/baendlorel/kt.js
|
|
248
252
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
@@ -293,593 +297,638 @@ declare function createRedrawable<T>(creator: () => T): KTRef<T> & {
|
|
|
293
297
|
};
|
|
294
298
|
|
|
295
299
|
// Base events available to all HTML elements
|
|
296
|
-
type BaseAttr = KTPrefixedEventAttribute &
|
|
297
|
-
|
|
300
|
+
type BaseAttr = KTPrefixedEventAttribute &
|
|
301
|
+
KTReactifyObject<{
|
|
302
|
+
[k: string]: any;
|
|
298
303
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
+
// # base attributes
|
|
305
|
+
class?: string;
|
|
306
|
+
className?: string;
|
|
307
|
+
style?: string | Partial<CSSStyleDeclaration>;
|
|
308
|
+
}>;
|
|
304
309
|
|
|
305
310
|
interface AttributesMap {
|
|
306
311
|
// Anchor element
|
|
307
|
-
a: BaseAttr &
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
312
|
+
a: BaseAttr &
|
|
313
|
+
KTReactifyObject<{
|
|
314
|
+
download?: string;
|
|
315
|
+
href?: string;
|
|
316
|
+
hreflang?: string;
|
|
317
|
+
ping?: string;
|
|
318
|
+
referrerpolicy?:
|
|
319
|
+
| 'no-referrer'
|
|
320
|
+
| 'no-referrer-when-downgrade'
|
|
321
|
+
| 'origin'
|
|
322
|
+
| 'origin-when-cross-origin'
|
|
323
|
+
| 'same-origin'
|
|
324
|
+
| 'strict-origin'
|
|
325
|
+
| 'strict-origin-when-cross-origin'
|
|
326
|
+
| 'unsafe-url';
|
|
327
|
+
rel?: string;
|
|
328
|
+
target?: '_self' | '_blank' | '_parent' | '_top' | string;
|
|
329
|
+
type?: string;
|
|
330
|
+
}>;
|
|
325
331
|
|
|
326
332
|
// Area element
|
|
327
|
-
area: BaseAttr &
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
333
|
+
area: BaseAttr &
|
|
334
|
+
KTReactifyObject<{
|
|
335
|
+
alt?: string;
|
|
336
|
+
coords?: string;
|
|
337
|
+
download?: string;
|
|
338
|
+
href?: string;
|
|
339
|
+
ping?: string;
|
|
340
|
+
referrerpolicy?:
|
|
341
|
+
| 'no-referrer'
|
|
342
|
+
| 'no-referrer-when-downgrade'
|
|
343
|
+
| 'origin'
|
|
344
|
+
| 'origin-when-cross-origin'
|
|
345
|
+
| 'same-origin'
|
|
346
|
+
| 'strict-origin'
|
|
347
|
+
| 'strict-origin-when-cross-origin'
|
|
348
|
+
| 'unsafe-url';
|
|
349
|
+
rel?: string;
|
|
350
|
+
shape?: 'rect' | 'circle' | 'poly' | 'default';
|
|
351
|
+
target?: '_self' | '_blank' | '_parent' | '_top' | string;
|
|
352
|
+
}>;
|
|
346
353
|
|
|
347
354
|
// Audio element
|
|
348
|
-
audio: BaseAttr &
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
audio: BaseAttr &
|
|
356
|
+
KTReactifyObject<{
|
|
357
|
+
autoplay?: boolean;
|
|
358
|
+
controls?: boolean;
|
|
359
|
+
crossorigin?: 'anonymous' | 'use-credentials' | '';
|
|
360
|
+
loop?: boolean;
|
|
361
|
+
muted?: boolean;
|
|
362
|
+
preload?: 'none' | 'metadata' | 'auto' | '';
|
|
363
|
+
src?: string;
|
|
364
|
+
}>;
|
|
357
365
|
|
|
358
366
|
// Base element
|
|
359
|
-
base: BaseAttr &
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
367
|
+
base: BaseAttr &
|
|
368
|
+
KTReactifyObject<{
|
|
369
|
+
href?: string;
|
|
370
|
+
target?: '_self' | '_blank' | '_parent' | '_top' | string;
|
|
371
|
+
}>;
|
|
363
372
|
|
|
364
373
|
// Body element
|
|
365
|
-
body: BaseAttr & {}
|
|
374
|
+
body: BaseAttr & KTReactifyObject<{}>;
|
|
366
375
|
|
|
367
376
|
// BR element
|
|
368
|
-
br: BaseAttr & {}
|
|
377
|
+
br: BaseAttr & KTReactifyObject<{}>;
|
|
369
378
|
|
|
370
379
|
// Button element
|
|
371
|
-
button: BaseAttr &
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
380
|
+
button: BaseAttr &
|
|
381
|
+
KTReactifyObject<{
|
|
382
|
+
disabled?: boolean;
|
|
383
|
+
form?: string;
|
|
384
|
+
formaction?: string;
|
|
385
|
+
formenctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
|
|
386
|
+
formmethod?: 'get' | 'post' | 'dialog';
|
|
387
|
+
formnovalidate?: boolean;
|
|
388
|
+
formtarget?: '_self' | '_blank' | '_parent' | '_top' | string;
|
|
389
|
+
name?: string;
|
|
390
|
+
type?: 'submit' | 'reset' | 'button';
|
|
391
|
+
value?: string;
|
|
392
|
+
}>;
|
|
383
393
|
|
|
384
394
|
// Canvas element
|
|
385
|
-
canvas: BaseAttr &
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
395
|
+
canvas: BaseAttr &
|
|
396
|
+
KTReactifyObject<{
|
|
397
|
+
height?: number | string;
|
|
398
|
+
width?: number | string;
|
|
399
|
+
}>;
|
|
389
400
|
|
|
390
401
|
// Table caption element
|
|
391
|
-
caption: BaseAttr & {}
|
|
402
|
+
caption: BaseAttr & KTReactifyObject<{}>;
|
|
392
403
|
|
|
393
404
|
// Col element
|
|
394
|
-
col: BaseAttr &
|
|
395
|
-
|
|
396
|
-
|
|
405
|
+
col: BaseAttr &
|
|
406
|
+
KTReactifyObject<{
|
|
407
|
+
span?: number | string;
|
|
408
|
+
}>;
|
|
397
409
|
|
|
398
410
|
// Colgroup element
|
|
399
|
-
colgroup: BaseAttr &
|
|
400
|
-
|
|
401
|
-
|
|
411
|
+
colgroup: BaseAttr &
|
|
412
|
+
KTReactifyObject<{
|
|
413
|
+
span?: number | string;
|
|
414
|
+
}>;
|
|
402
415
|
|
|
403
416
|
// Data element
|
|
404
|
-
data: BaseAttr &
|
|
405
|
-
|
|
406
|
-
|
|
417
|
+
data: BaseAttr &
|
|
418
|
+
KTReactifyObject<{
|
|
419
|
+
value?: string;
|
|
420
|
+
}>;
|
|
407
421
|
|
|
408
422
|
// Datalist element
|
|
409
|
-
datalist: BaseAttr & {}
|
|
423
|
+
datalist: BaseAttr & KTReactifyObject<{}>;
|
|
410
424
|
|
|
411
425
|
// Del element
|
|
412
|
-
del: BaseAttr &
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
426
|
+
del: BaseAttr &
|
|
427
|
+
KTReactifyObject<{
|
|
428
|
+
cite?: string;
|
|
429
|
+
datetime?: string;
|
|
430
|
+
}>;
|
|
416
431
|
|
|
417
432
|
// Details element
|
|
418
|
-
details: BaseAttr &
|
|
419
|
-
|
|
420
|
-
|
|
433
|
+
details: BaseAttr &
|
|
434
|
+
KTReactifyObject<{
|
|
435
|
+
open?: boolean;
|
|
436
|
+
}>;
|
|
421
437
|
|
|
422
438
|
// Dialog element
|
|
423
|
-
dialog: BaseAttr &
|
|
424
|
-
|
|
425
|
-
|
|
439
|
+
dialog: BaseAttr &
|
|
440
|
+
KTReactifyObject<{
|
|
441
|
+
open?: boolean;
|
|
442
|
+
}>;
|
|
426
443
|
|
|
427
444
|
// Embed element
|
|
428
|
-
embed: BaseAttr &
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
445
|
+
embed: BaseAttr &
|
|
446
|
+
KTReactifyObject<{
|
|
447
|
+
height?: number | string;
|
|
448
|
+
src?: string;
|
|
449
|
+
type?: string;
|
|
450
|
+
width?: number | string;
|
|
451
|
+
}>;
|
|
434
452
|
|
|
435
453
|
// Fieldset element
|
|
436
|
-
fieldset: BaseAttr &
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
454
|
+
fieldset: BaseAttr &
|
|
455
|
+
KTReactifyObject<{
|
|
456
|
+
disabled?: boolean;
|
|
457
|
+
form?: string;
|
|
458
|
+
name?: string;
|
|
459
|
+
}>;
|
|
441
460
|
|
|
442
461
|
// Form element
|
|
443
|
-
form: BaseAttr &
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
462
|
+
form: BaseAttr &
|
|
463
|
+
KTReactifyObject<{
|
|
464
|
+
'accept-charset'?: string;
|
|
465
|
+
action?: string;
|
|
466
|
+
autocomplete?: 'on' | 'off';
|
|
467
|
+
enctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
|
|
468
|
+
method?: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE' | otherstring;
|
|
469
|
+
|
|
470
|
+
name?: string;
|
|
471
|
+
novalidate?: boolean;
|
|
472
|
+
target?: '_self' | '_blank' | '_parent' | '_top' | string;
|
|
473
|
+
}>;
|
|
454
474
|
|
|
455
475
|
// Head element
|
|
456
|
-
head: BaseAttr & {}
|
|
476
|
+
head: BaseAttr & KTReactifyObject<{}>;
|
|
457
477
|
|
|
458
478
|
// HR element
|
|
459
|
-
hr: BaseAttr & {}
|
|
479
|
+
hr: BaseAttr & KTReactifyObject<{}>;
|
|
460
480
|
|
|
461
481
|
// HTML element
|
|
462
|
-
html: BaseAttr & {}
|
|
482
|
+
html: BaseAttr & KTReactifyObject<{}>;
|
|
463
483
|
|
|
464
484
|
// IFrame element
|
|
465
|
-
iframe: BaseAttr &
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
485
|
+
iframe: BaseAttr &
|
|
486
|
+
KTReactifyObject<{
|
|
487
|
+
allow?: string;
|
|
488
|
+
allowfullscreen?: boolean;
|
|
489
|
+
allowpaymentrequest?: boolean;
|
|
490
|
+
height?: number | string;
|
|
491
|
+
loading?: 'eager' | 'lazy';
|
|
492
|
+
name?: string;
|
|
493
|
+
referrerpolicy?:
|
|
494
|
+
| 'no-referrer'
|
|
495
|
+
| 'no-referrer-when-downgrade'
|
|
496
|
+
| 'origin'
|
|
497
|
+
| 'origin-when-cross-origin'
|
|
498
|
+
| 'same-origin'
|
|
499
|
+
| 'strict-origin'
|
|
500
|
+
| 'strict-origin-when-cross-origin'
|
|
501
|
+
| 'unsafe-url';
|
|
502
|
+
sandbox?: string;
|
|
503
|
+
src?: string;
|
|
504
|
+
srcdoc?: string;
|
|
505
|
+
width?: number | string;
|
|
506
|
+
}>;
|
|
486
507
|
|
|
487
508
|
// Image element
|
|
488
|
-
img: BaseAttr &
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
509
|
+
img: BaseAttr &
|
|
510
|
+
KTReactifyObject<{
|
|
511
|
+
alt?: string;
|
|
512
|
+
crossorigin?: 'anonymous' | 'use-credentials' | '';
|
|
513
|
+
decoding?: 'sync' | 'async' | 'auto';
|
|
514
|
+
height?: number | string;
|
|
515
|
+
ismap?: boolean;
|
|
516
|
+
loading?: 'eager' | 'lazy';
|
|
517
|
+
referrerpolicy?:
|
|
518
|
+
| 'no-referrer'
|
|
519
|
+
| 'no-referrer-when-downgrade'
|
|
520
|
+
| 'origin'
|
|
521
|
+
| 'origin-when-cross-origin'
|
|
522
|
+
| 'same-origin'
|
|
523
|
+
| 'strict-origin'
|
|
524
|
+
| 'strict-origin-when-cross-origin'
|
|
525
|
+
| 'unsafe-url';
|
|
526
|
+
sizes?: string;
|
|
527
|
+
src?: string;
|
|
528
|
+
srcset?: string;
|
|
529
|
+
usemap?: string;
|
|
530
|
+
width?: number | string;
|
|
531
|
+
}>;
|
|
510
532
|
|
|
511
533
|
// Input element
|
|
512
|
-
input: BaseAttr &
|
|
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
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
534
|
+
input: BaseAttr &
|
|
535
|
+
KTReactifyObject<{
|
|
536
|
+
accept?: string;
|
|
537
|
+
alt?: string;
|
|
538
|
+
autocomplete?: string;
|
|
539
|
+
checked?: boolean;
|
|
540
|
+
dirname?: string;
|
|
541
|
+
disabled?: boolean;
|
|
542
|
+
form?: string;
|
|
543
|
+
formaction?: string;
|
|
544
|
+
formenctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
|
|
545
|
+
formmethod?: 'get' | 'post';
|
|
546
|
+
formnovalidate?: boolean;
|
|
547
|
+
formtarget?: '_self' | '_blank' | '_parent' | '_top' | string;
|
|
548
|
+
height?: number | string;
|
|
549
|
+
list?: string;
|
|
550
|
+
max?: number | string;
|
|
551
|
+
maxlength?: number | string;
|
|
552
|
+
min?: number | string;
|
|
553
|
+
minlength?: number | string;
|
|
554
|
+
multiple?: boolean;
|
|
555
|
+
name?: string;
|
|
556
|
+
pattern?: string;
|
|
557
|
+
placeholder?: string;
|
|
558
|
+
readonly?: boolean;
|
|
559
|
+
required?: boolean;
|
|
560
|
+
size?: number | string;
|
|
561
|
+
src?: string;
|
|
562
|
+
step?: number | string;
|
|
563
|
+
type?:
|
|
564
|
+
| 'button'
|
|
565
|
+
| 'checkbox'
|
|
566
|
+
| 'color'
|
|
567
|
+
| 'date'
|
|
568
|
+
| 'datetime-local'
|
|
569
|
+
| 'email'
|
|
570
|
+
| 'file'
|
|
571
|
+
| 'hidden'
|
|
572
|
+
| 'image'
|
|
573
|
+
| 'month'
|
|
574
|
+
| 'number'
|
|
575
|
+
| 'password'
|
|
576
|
+
| 'radio'
|
|
577
|
+
| 'range'
|
|
578
|
+
| 'reset'
|
|
579
|
+
| 'search'
|
|
580
|
+
| 'submit'
|
|
581
|
+
| 'tel'
|
|
582
|
+
| 'text'
|
|
583
|
+
| 'time'
|
|
584
|
+
| 'url'
|
|
585
|
+
| 'week';
|
|
586
|
+
value?: string;
|
|
587
|
+
width?: number | string;
|
|
588
|
+
}>;
|
|
566
589
|
|
|
567
590
|
// Ins element
|
|
568
|
-
ins: BaseAttr &
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
591
|
+
ins: BaseAttr &
|
|
592
|
+
KTReactifyObject<{
|
|
593
|
+
cite?: string;
|
|
594
|
+
datetime?: string;
|
|
595
|
+
}>;
|
|
572
596
|
|
|
573
597
|
// Label element
|
|
574
|
-
label: BaseAttr &
|
|
575
|
-
|
|
576
|
-
|
|
598
|
+
label: BaseAttr &
|
|
599
|
+
KTReactifyObject<{
|
|
600
|
+
for?: string;
|
|
601
|
+
}>;
|
|
577
602
|
|
|
578
603
|
// Legend element
|
|
579
|
-
legend: BaseAttr & {}
|
|
604
|
+
legend: BaseAttr & KTReactifyObject<{}>;
|
|
580
605
|
|
|
581
606
|
// LI element
|
|
582
|
-
li: BaseAttr &
|
|
583
|
-
|
|
584
|
-
|
|
607
|
+
li: BaseAttr &
|
|
608
|
+
KTReactifyObject<{
|
|
609
|
+
value?: number | string;
|
|
610
|
+
}>;
|
|
585
611
|
|
|
586
612
|
// Link element
|
|
587
|
-
link: BaseAttr &
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
613
|
+
link: BaseAttr &
|
|
614
|
+
KTReactifyObject<{
|
|
615
|
+
as?: string;
|
|
616
|
+
crossorigin?: 'anonymous' | 'use-credentials' | '';
|
|
617
|
+
disabled?: boolean;
|
|
618
|
+
href?: string;
|
|
619
|
+
hreflang?: string;
|
|
620
|
+
imagesizes?: string;
|
|
621
|
+
imagesrcset?: string;
|
|
622
|
+
integrity?: string;
|
|
623
|
+
media?: string;
|
|
624
|
+
referrerpolicy?:
|
|
625
|
+
| 'no-referrer'
|
|
626
|
+
| 'no-referrer-when-downgrade'
|
|
627
|
+
| 'origin'
|
|
628
|
+
| 'origin-when-cross-origin'
|
|
629
|
+
| 'same-origin'
|
|
630
|
+
| 'strict-origin'
|
|
631
|
+
| 'strict-origin-when-cross-origin'
|
|
632
|
+
| 'unsafe-url';
|
|
633
|
+
rel?: string;
|
|
634
|
+
sizes?: string;
|
|
635
|
+
type?: string;
|
|
636
|
+
}>;
|
|
610
637
|
|
|
611
638
|
// Map element
|
|
612
|
-
map: BaseAttr &
|
|
613
|
-
|
|
614
|
-
|
|
639
|
+
map: BaseAttr &
|
|
640
|
+
KTReactifyObject<{
|
|
641
|
+
name?: string;
|
|
642
|
+
}>;
|
|
615
643
|
|
|
616
644
|
// Menu element
|
|
617
|
-
menu: BaseAttr & {}
|
|
645
|
+
menu: BaseAttr & KTReactifyObject<{}>;
|
|
618
646
|
|
|
619
647
|
// Meta element
|
|
620
|
-
meta: BaseAttr &
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
648
|
+
meta: BaseAttr &
|
|
649
|
+
KTReactifyObject<{
|
|
650
|
+
charset?: string;
|
|
651
|
+
content?: string;
|
|
652
|
+
'http-equiv'?: 'content-security-policy' | 'content-type' | 'default-style' | 'refresh' | string;
|
|
653
|
+
name?: string;
|
|
654
|
+
}>;
|
|
626
655
|
|
|
627
656
|
// Meter element
|
|
628
|
-
meter: BaseAttr &
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
657
|
+
meter: BaseAttr &
|
|
658
|
+
KTReactifyObject<{
|
|
659
|
+
form?: string;
|
|
660
|
+
high?: number | string;
|
|
661
|
+
low?: number | string;
|
|
662
|
+
max?: number | string;
|
|
663
|
+
min?: number | string;
|
|
664
|
+
optimum?: number | string;
|
|
665
|
+
value?: number | string;
|
|
666
|
+
}>;
|
|
637
667
|
|
|
638
668
|
// Object element
|
|
639
|
-
object: BaseAttr &
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
669
|
+
object: BaseAttr &
|
|
670
|
+
KTReactifyObject<{
|
|
671
|
+
data?: string;
|
|
672
|
+
form?: string;
|
|
673
|
+
height?: number | string;
|
|
674
|
+
name?: string;
|
|
675
|
+
type?: string;
|
|
676
|
+
usemap?: string;
|
|
677
|
+
width?: number | string;
|
|
678
|
+
}>;
|
|
648
679
|
|
|
649
680
|
// OL element
|
|
650
|
-
ol: BaseAttr &
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
681
|
+
ol: BaseAttr &
|
|
682
|
+
KTReactifyObject<{
|
|
683
|
+
reversed?: boolean;
|
|
684
|
+
start?: number | string;
|
|
685
|
+
type?: '1' | 'a' | 'A' | 'i' | 'I';
|
|
686
|
+
}>;
|
|
655
687
|
|
|
656
688
|
// Optgroup element
|
|
657
|
-
optgroup: BaseAttr &
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
689
|
+
optgroup: BaseAttr &
|
|
690
|
+
KTReactifyObject<{
|
|
691
|
+
disabled?: boolean;
|
|
692
|
+
label?: string;
|
|
693
|
+
}>;
|
|
661
694
|
|
|
662
695
|
// Option element
|
|
663
|
-
option: BaseAttr &
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
696
|
+
option: BaseAttr &
|
|
697
|
+
KTReactifyObject<{
|
|
698
|
+
disabled?: boolean;
|
|
699
|
+
label?: string;
|
|
700
|
+
selected?: boolean;
|
|
701
|
+
value?: string;
|
|
702
|
+
}>;
|
|
669
703
|
|
|
670
704
|
// Output element
|
|
671
|
-
output: BaseAttr &
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
705
|
+
output: BaseAttr &
|
|
706
|
+
KTReactifyObject<{
|
|
707
|
+
for?: string;
|
|
708
|
+
form?: string;
|
|
709
|
+
name?: string;
|
|
710
|
+
}>;
|
|
676
711
|
|
|
677
712
|
// Picture element
|
|
678
|
-
picture: BaseAttr & {}
|
|
713
|
+
picture: BaseAttr & KTReactifyObject<{}>;
|
|
679
714
|
|
|
680
715
|
// Pre element
|
|
681
|
-
pre: BaseAttr & {}
|
|
716
|
+
pre: BaseAttr & KTReactifyObject<{}>;
|
|
682
717
|
|
|
683
718
|
// Progress element
|
|
684
|
-
progress: BaseAttr &
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
719
|
+
progress: BaseAttr &
|
|
720
|
+
KTReactifyObject<{
|
|
721
|
+
max?: number | string;
|
|
722
|
+
value?: number | string;
|
|
723
|
+
}>;
|
|
688
724
|
|
|
689
725
|
// Quote element (q and blockquote)
|
|
690
|
-
q: BaseAttr &
|
|
691
|
-
|
|
692
|
-
|
|
726
|
+
q: BaseAttr &
|
|
727
|
+
KTReactifyObject<{
|
|
728
|
+
cite?: string;
|
|
729
|
+
}>;
|
|
693
730
|
|
|
694
|
-
blockquote: BaseAttr &
|
|
695
|
-
|
|
696
|
-
|
|
731
|
+
blockquote: BaseAttr &
|
|
732
|
+
KTReactifyObject<{
|
|
733
|
+
cite?: string;
|
|
734
|
+
}>;
|
|
697
735
|
|
|
698
736
|
// Script element
|
|
699
|
-
script: BaseAttr &
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
737
|
+
script: BaseAttr &
|
|
738
|
+
KTReactifyObject<{
|
|
739
|
+
async?: boolean;
|
|
740
|
+
crossorigin?: 'anonymous' | 'use-credentials' | '';
|
|
741
|
+
defer?: boolean;
|
|
742
|
+
integrity?: string;
|
|
743
|
+
nomodule?: boolean;
|
|
744
|
+
referrerpolicy?:
|
|
745
|
+
| 'no-referrer'
|
|
746
|
+
| 'no-referrer-when-downgrade'
|
|
747
|
+
| 'origin'
|
|
748
|
+
| 'origin-when-cross-origin'
|
|
749
|
+
| 'same-origin'
|
|
750
|
+
| 'strict-origin'
|
|
751
|
+
| 'strict-origin-when-cross-origin'
|
|
752
|
+
| 'unsafe-url';
|
|
753
|
+
src?: string;
|
|
754
|
+
type?: string;
|
|
755
|
+
}>;
|
|
717
756
|
|
|
718
757
|
// Select element
|
|
719
|
-
select: BaseAttr &
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
758
|
+
select: BaseAttr &
|
|
759
|
+
KTReactifyObject<{
|
|
760
|
+
autocomplete?: string;
|
|
761
|
+
disabled?: boolean;
|
|
762
|
+
form?: string;
|
|
763
|
+
multiple?: boolean;
|
|
764
|
+
name?: string;
|
|
765
|
+
required?: boolean;
|
|
766
|
+
size?: number | string;
|
|
767
|
+
}>;
|
|
728
768
|
|
|
729
769
|
// Slot element
|
|
730
|
-
slot: BaseAttr &
|
|
731
|
-
|
|
732
|
-
|
|
770
|
+
slot: BaseAttr &
|
|
771
|
+
KTReactifyObject<{
|
|
772
|
+
name?: string;
|
|
773
|
+
}>;
|
|
733
774
|
|
|
734
775
|
// Source element
|
|
735
|
-
source: BaseAttr &
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
776
|
+
source: BaseAttr &
|
|
777
|
+
KTReactifyObject<{
|
|
778
|
+
height?: number | string;
|
|
779
|
+
media?: string;
|
|
780
|
+
sizes?: string;
|
|
781
|
+
src?: string;
|
|
782
|
+
srcset?: string;
|
|
783
|
+
type?: string;
|
|
784
|
+
width?: number | string;
|
|
785
|
+
}>;
|
|
744
786
|
|
|
745
787
|
// Style element
|
|
746
|
-
style: BaseAttr &
|
|
747
|
-
|
|
748
|
-
|
|
788
|
+
style: BaseAttr &
|
|
789
|
+
KTReactifyObject<{
|
|
790
|
+
media?: string;
|
|
791
|
+
}>;
|
|
749
792
|
|
|
750
793
|
// Table element
|
|
751
|
-
table: BaseAttr & {}
|
|
794
|
+
table: BaseAttr & KTReactifyObject<{}>;
|
|
752
795
|
|
|
753
796
|
// Table body/footer/header elements
|
|
754
|
-
tbody: BaseAttr & {}
|
|
797
|
+
tbody: BaseAttr & KTReactifyObject<{}>;
|
|
755
798
|
|
|
756
|
-
tfoot: BaseAttr & {}
|
|
799
|
+
tfoot: BaseAttr & KTReactifyObject<{}>;
|
|
757
800
|
|
|
758
|
-
thead: BaseAttr & {}
|
|
801
|
+
thead: BaseAttr & KTReactifyObject<{}>;
|
|
759
802
|
|
|
760
803
|
// Table cell elements
|
|
761
|
-
td: BaseAttr &
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
804
|
+
td: BaseAttr &
|
|
805
|
+
KTReactifyObject<{
|
|
806
|
+
colspan?: number | string;
|
|
807
|
+
headers?: string;
|
|
808
|
+
rowspan?: number | string;
|
|
809
|
+
}>;
|
|
810
|
+
|
|
811
|
+
th: BaseAttr &
|
|
812
|
+
KTReactifyObject<{
|
|
813
|
+
abbr?: string;
|
|
814
|
+
colspan?: number | string;
|
|
815
|
+
headers?: string;
|
|
816
|
+
rowspan?: number | string;
|
|
817
|
+
scope?: 'row' | 'col' | 'rowgroup' | 'colgroup';
|
|
818
|
+
}>;
|
|
774
819
|
|
|
775
820
|
// Template element
|
|
776
|
-
template: BaseAttr & {}
|
|
821
|
+
template: BaseAttr & KTReactifyObject<{}>;
|
|
777
822
|
|
|
778
823
|
// Textarea element
|
|
779
|
-
textarea: BaseAttr &
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
824
|
+
textarea: BaseAttr &
|
|
825
|
+
KTReactifyObject<{
|
|
826
|
+
autocomplete?: string;
|
|
827
|
+
cols?: number | string;
|
|
828
|
+
dirname?: string;
|
|
829
|
+
disabled?: boolean;
|
|
830
|
+
form?: string;
|
|
831
|
+
maxlength?: number | string;
|
|
832
|
+
minlength?: number | string;
|
|
833
|
+
name?: string;
|
|
834
|
+
placeholder?: string;
|
|
835
|
+
readonly?: boolean;
|
|
836
|
+
required?: boolean;
|
|
837
|
+
rows?: number | string;
|
|
838
|
+
wrap?: 'hard' | 'soft' | 'off';
|
|
839
|
+
}>;
|
|
794
840
|
|
|
795
841
|
// Time element
|
|
796
|
-
time: BaseAttr &
|
|
797
|
-
|
|
798
|
-
|
|
842
|
+
time: BaseAttr &
|
|
843
|
+
KTReactifyObject<{
|
|
844
|
+
datetime?: string;
|
|
845
|
+
}>;
|
|
799
846
|
|
|
800
847
|
// Title element
|
|
801
|
-
title: BaseAttr & {}
|
|
848
|
+
title: BaseAttr & KTReactifyObject<{}>;
|
|
802
849
|
|
|
803
850
|
// TR element
|
|
804
|
-
tr: BaseAttr & {}
|
|
851
|
+
tr: BaseAttr & KTReactifyObject<{}>;
|
|
805
852
|
|
|
806
853
|
// Track element
|
|
807
|
-
track: BaseAttr &
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
854
|
+
track: BaseAttr &
|
|
855
|
+
KTReactifyObject<{
|
|
856
|
+
default?: boolean;
|
|
857
|
+
kind?: 'subtitles' | 'captions' | 'descriptions' | 'chapters' | 'metadata';
|
|
858
|
+
label?: string;
|
|
859
|
+
src?: string;
|
|
860
|
+
srclang?: string;
|
|
861
|
+
}>;
|
|
814
862
|
|
|
815
863
|
// UL element
|
|
816
|
-
ul: BaseAttr & {}
|
|
864
|
+
ul: BaseAttr & KTReactifyObject<{}>;
|
|
817
865
|
|
|
818
866
|
// Video element
|
|
819
|
-
video: BaseAttr &
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
867
|
+
video: BaseAttr &
|
|
868
|
+
KTReactifyObject<{
|
|
869
|
+
autoplay?: boolean;
|
|
870
|
+
controls?: boolean;
|
|
871
|
+
crossorigin?: 'anonymous' | 'use-credentials' | '';
|
|
872
|
+
height?: number | string;
|
|
873
|
+
loop?: boolean;
|
|
874
|
+
muted?: boolean;
|
|
875
|
+
playsinline?: boolean;
|
|
876
|
+
poster?: string;
|
|
877
|
+
preload?: 'none' | 'metadata' | 'auto' | '';
|
|
878
|
+
src?: string;
|
|
879
|
+
width?: number | string;
|
|
880
|
+
}>;
|
|
832
881
|
|
|
833
882
|
// Generic HTMLElement (no specific attributes beyond BaseEvent)
|
|
834
|
-
abbr: BaseAttr & {}
|
|
835
|
-
address: BaseAttr & {}
|
|
836
|
-
article: BaseAttr & {}
|
|
837
|
-
aside: BaseAttr & {}
|
|
838
|
-
b: BaseAttr & {}
|
|
839
|
-
bdi: BaseAttr & {}
|
|
840
|
-
bdo: BaseAttr & {}
|
|
841
|
-
cite: BaseAttr & {}
|
|
842
|
-
code: BaseAttr & {}
|
|
843
|
-
dd: BaseAttr & {}
|
|
844
|
-
dfn: BaseAttr & {}
|
|
845
|
-
div: BaseAttr & {}
|
|
846
|
-
dl: BaseAttr & {}
|
|
847
|
-
dt: BaseAttr & {}
|
|
848
|
-
em: BaseAttr & {}
|
|
849
|
-
figcaption: BaseAttr & {}
|
|
850
|
-
figure: BaseAttr & {}
|
|
851
|
-
footer: BaseAttr & {}
|
|
852
|
-
h1: BaseAttr & {}
|
|
853
|
-
h2: BaseAttr & {}
|
|
854
|
-
h3: BaseAttr & {}
|
|
855
|
-
h4: BaseAttr & {}
|
|
856
|
-
h5: BaseAttr & {}
|
|
857
|
-
h6: BaseAttr & {}
|
|
858
|
-
header: BaseAttr & {}
|
|
859
|
-
hgroup: BaseAttr & {}
|
|
860
|
-
i: BaseAttr & {}
|
|
861
|
-
kbd: BaseAttr & {}
|
|
862
|
-
main: BaseAttr & {}
|
|
863
|
-
mark: BaseAttr & {}
|
|
864
|
-
nav: BaseAttr & {}
|
|
865
|
-
noscript: BaseAttr & {}
|
|
866
|
-
p: BaseAttr & {}
|
|
867
|
-
rp: BaseAttr & {}
|
|
868
|
-
rt: BaseAttr & {}
|
|
869
|
-
ruby: BaseAttr & {}
|
|
870
|
-
s: BaseAttr & {}
|
|
871
|
-
samp: BaseAttr & {}
|
|
872
|
-
search: BaseAttr & {}
|
|
873
|
-
section: BaseAttr & {}
|
|
874
|
-
small: BaseAttr & {}
|
|
875
|
-
span: BaseAttr & {}
|
|
876
|
-
strong: BaseAttr & {}
|
|
877
|
-
sub: BaseAttr & {}
|
|
878
|
-
summary: BaseAttr & {}
|
|
879
|
-
sup: BaseAttr & {}
|
|
880
|
-
u: BaseAttr & {}
|
|
881
|
-
var: BaseAttr & {}
|
|
882
|
-
wbr: BaseAttr & {}
|
|
883
|
+
abbr: BaseAttr & KTReactifyObject<{}>;
|
|
884
|
+
address: BaseAttr & KTReactifyObject<{}>;
|
|
885
|
+
article: BaseAttr & KTReactifyObject<{}>;
|
|
886
|
+
aside: BaseAttr & KTReactifyObject<{}>;
|
|
887
|
+
b: BaseAttr & KTReactifyObject<{}>;
|
|
888
|
+
bdi: BaseAttr & KTReactifyObject<{}>;
|
|
889
|
+
bdo: BaseAttr & KTReactifyObject<{}>;
|
|
890
|
+
cite: BaseAttr & KTReactifyObject<{}>;
|
|
891
|
+
code: BaseAttr & KTReactifyObject<{}>;
|
|
892
|
+
dd: BaseAttr & KTReactifyObject<{}>;
|
|
893
|
+
dfn: BaseAttr & KTReactifyObject<{}>;
|
|
894
|
+
div: BaseAttr & KTReactifyObject<{}>;
|
|
895
|
+
dl: BaseAttr & KTReactifyObject<{}>;
|
|
896
|
+
dt: BaseAttr & KTReactifyObject<{}>;
|
|
897
|
+
em: BaseAttr & KTReactifyObject<{}>;
|
|
898
|
+
figcaption: BaseAttr & KTReactifyObject<{}>;
|
|
899
|
+
figure: BaseAttr & KTReactifyObject<{}>;
|
|
900
|
+
footer: BaseAttr & KTReactifyObject<{}>;
|
|
901
|
+
h1: BaseAttr & KTReactifyObject<{}>;
|
|
902
|
+
h2: BaseAttr & KTReactifyObject<{}>;
|
|
903
|
+
h3: BaseAttr & KTReactifyObject<{}>;
|
|
904
|
+
h4: BaseAttr & KTReactifyObject<{}>;
|
|
905
|
+
h5: BaseAttr & KTReactifyObject<{}>;
|
|
906
|
+
h6: BaseAttr & KTReactifyObject<{}>;
|
|
907
|
+
header: BaseAttr & KTReactifyObject<{}>;
|
|
908
|
+
hgroup: BaseAttr & KTReactifyObject<{}>;
|
|
909
|
+
i: BaseAttr & KTReactifyObject<{}>;
|
|
910
|
+
kbd: BaseAttr & KTReactifyObject<{}>;
|
|
911
|
+
main: BaseAttr & KTReactifyObject<{}>;
|
|
912
|
+
mark: BaseAttr & KTReactifyObject<{}>;
|
|
913
|
+
nav: BaseAttr & KTReactifyObject<{}>;
|
|
914
|
+
noscript: BaseAttr & KTReactifyObject<{}>;
|
|
915
|
+
p: BaseAttr & KTReactifyObject<{}>;
|
|
916
|
+
rp: BaseAttr & KTReactifyObject<{}>;
|
|
917
|
+
rt: BaseAttr & KTReactifyObject<{}>;
|
|
918
|
+
ruby: BaseAttr & KTReactifyObject<{}>;
|
|
919
|
+
s: BaseAttr & KTReactifyObject<{}>;
|
|
920
|
+
samp: BaseAttr & KTReactifyObject<{}>;
|
|
921
|
+
search: BaseAttr & KTReactifyObject<{}>;
|
|
922
|
+
section: BaseAttr & KTReactifyObject<{}>;
|
|
923
|
+
small: BaseAttr & KTReactifyObject<{}>;
|
|
924
|
+
span: BaseAttr & KTReactifyObject<{}>;
|
|
925
|
+
strong: BaseAttr & KTReactifyObject<{}>;
|
|
926
|
+
sub: BaseAttr & KTReactifyObject<{}>;
|
|
927
|
+
summary: BaseAttr & KTReactifyObject<{}>;
|
|
928
|
+
sup: BaseAttr & KTReactifyObject<{}>;
|
|
929
|
+
u: BaseAttr & KTReactifyObject<{}>;
|
|
930
|
+
var: BaseAttr & KTReactifyObject<{}>;
|
|
931
|
+
wbr: BaseAttr & KTReactifyObject<{}>;
|
|
883
932
|
|
|
884
933
|
svg: BaseAttr & {
|
|
885
934
|
class?: string;
|
|
@@ -1361,4 +1410,4 @@ interface KTForProps<T> {
|
|
|
1361
1410
|
declare function KTFor<T>(props: KTForProps<T>): KTForElement;
|
|
1362
1411
|
|
|
1363
1412
|
export { $modelOrRef, Fragment, KTAsync, KTComputed, KTFor, KTReactiveType, KTRef, computed, h as createElement, createRedrawable, deref, effect, h, isComputed, isKT, isRef, jsx, jsxDEV, jsxs, ref, surfaceRef, toReactive, toRef };
|
|
1364
|
-
export type { EventHandler, HTMLTag, InputElementTag, KTAttribute, KTForElement, KTForProps, KTPrefixedEventAttribute, KTRawAttr, KTRawContent, KTRawContents, KTReactive, KTSurfaceRef, MathMLTag, ReactiveChangeHandler, SVGTag };
|
|
1413
|
+
export type { EventHandler, HTMLTag, InputElementTag, KTAttribute, KTForElement, KTForProps, KTPrefixedEventAttribute, KTRawAttr, KTRawContent, KTRawContents, KTReactify, KTReactifyObject, KTReactive, KTSurfaceRef, MathMLTag, ReactiveChangeHandler, SVGTag };
|