solid-js 1.9.1 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/dev.cjs +1 -1
- package/dist/dev.js +318 -559
- package/dist/server.js +74 -168
- package/dist/solid.cjs +1 -1
- package/dist/solid.js +276 -486
- package/h/dist/h.js +9 -40
- package/h/jsx-runtime/dist/jsx.js +1 -1
- package/h/jsx-runtime/types/index.d.ts +8 -11
- package/h/jsx-runtime/types/jsx.d.ts +196 -59
- package/h/types/hyperscript.d.ts +11 -11
- package/html/dist/html.cjs +1 -1
- package/html/dist/html.js +94 -219
- package/html/types/lit.d.ts +33 -52
- package/package.json +1 -1
- package/store/dist/dev.js +43 -123
- package/store/dist/server.js +8 -20
- package/store/dist/store.js +40 -114
- package/store/types/index.d.ts +7 -21
- package/store/types/modifiers.d.ts +3 -6
- package/store/types/mutable.d.ts +2 -5
- package/store/types/server.d.ts +5 -25
- package/store/types/store.d.ts +61 -218
- package/types/index.d.ts +10 -75
- package/types/jsx.d.ts +195 -47
- package/types/reactive/array.d.ts +4 -12
- package/types/reactive/observable.d.ts +17 -25
- package/types/reactive/scheduler.d.ts +6 -9
- package/types/reactive/signal.d.ts +142 -233
- package/types/render/Suspense.d.ts +5 -5
- package/types/render/component.d.ts +35 -71
- package/types/render/flow.d.ts +31 -43
- package/types/render/hydration.d.ts +15 -15
- package/types/server/index.d.ts +2 -57
- package/types/server/reactive.d.ts +42 -73
- package/types/server/rendering.d.ts +98 -169
- package/universal/dist/dev.js +12 -28
- package/universal/dist/universal.js +12 -28
- package/universal/types/index.d.ts +1 -3
- package/universal/types/universal.d.ts +1 -0
- package/web/dist/dev.cjs +14 -14
- package/web/dist/dev.js +89 -639
- package/web/dist/server.cjs +14 -14
- package/web/dist/server.js +108 -635
- package/web/dist/web.cjs +14 -14
- package/web/dist/web.js +87 -627
- package/web/storage/dist/storage.js +3 -3
- package/web/types/core.d.ts +1 -10
- package/web/types/index.d.ts +10 -27
- package/web/types/server-mock.d.ts +32 -47
package/types/jsx.d.ts
CHANGED
|
@@ -157,9 +157,7 @@ export namespace JSX {
|
|
|
157
157
|
interface ExplicitAttributes {}
|
|
158
158
|
interface ExplicitBoolAttributes {}
|
|
159
159
|
interface CustomEvents {}
|
|
160
|
-
/**
|
|
161
|
-
* @deprecated Replaced by CustomEvents
|
|
162
|
-
*/
|
|
160
|
+
/** @deprecated Replaced by CustomEvents */
|
|
163
161
|
interface CustomCaptureEvents {}
|
|
164
162
|
type DirectiveAttributes = {
|
|
165
163
|
[Key in keyof Directives as `use:${Key}`]?: Directives[Key];
|
|
@@ -207,7 +205,8 @@ export namespace JSX {
|
|
|
207
205
|
OnAttributes<T>,
|
|
208
206
|
OnCaptureAttributes<T>,
|
|
209
207
|
CustomEventHandlersCamelCase<T>,
|
|
210
|
-
CustomEventHandlersLowerCase<T
|
|
208
|
+
CustomEventHandlersLowerCase<T>,
|
|
209
|
+
CustomEventHandlersNamespaced<T> {
|
|
211
210
|
children?: Element | undefined;
|
|
212
211
|
innerHTML?: string | undefined;
|
|
213
212
|
innerText?: string | number | undefined;
|
|
@@ -234,6 +233,17 @@ export namespace JSX {
|
|
|
234
233
|
onfocusin?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
235
234
|
onencrypted?: EventHandlerUnion<T, Event> | undefined;
|
|
236
235
|
ondragexit?: EventHandlerUnion<T, DragEvent> | undefined;
|
|
236
|
+
// lower case events
|
|
237
|
+
"on:copy"?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
238
|
+
"on:cut"?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
239
|
+
"on:paste"?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
240
|
+
"on:compositionend"?: EventHandlerUnion<T, CompositionEvent> | undefined;
|
|
241
|
+
"on:compositionstart"?: EventHandlerUnion<T, CompositionEvent> | undefined;
|
|
242
|
+
"on:compositionupdate"?: EventHandlerUnion<T, CompositionEvent> | undefined;
|
|
243
|
+
"on:focusout"?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
244
|
+
"on:focusin"?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
245
|
+
"on:encrypted"?: EventHandlerUnion<T, Event> | undefined;
|
|
246
|
+
"on:dragexit"?: EventHandlerUnion<T, DragEvent> | undefined;
|
|
237
247
|
}
|
|
238
248
|
interface CustomEventHandlersCamelCase<T> {
|
|
239
249
|
onAbort?: EventHandlerUnion<T, Event> | undefined;
|
|
@@ -316,9 +326,7 @@ export namespace JSX {
|
|
|
316
326
|
onWaiting?: EventHandlerUnion<T, Event> | undefined;
|
|
317
327
|
onWheel?: EventHandlerUnion<T, WheelEvent> | undefined;
|
|
318
328
|
}
|
|
319
|
-
/**
|
|
320
|
-
* @type {GlobalEventHandlers}
|
|
321
|
-
*/
|
|
329
|
+
/** @type {GlobalEventHandlers} */
|
|
322
330
|
interface CustomEventHandlersLowerCase<T> {
|
|
323
331
|
onabort?: EventHandlerUnion<T, Event> | undefined;
|
|
324
332
|
onanimationend?: EventHandlerUnion<T, AnimationEvent> | undefined;
|
|
@@ -400,6 +408,87 @@ export namespace JSX {
|
|
|
400
408
|
onwaiting?: EventHandlerUnion<T, Event> | undefined;
|
|
401
409
|
onwheel?: EventHandlerUnion<T, WheelEvent> | undefined;
|
|
402
410
|
}
|
|
411
|
+
interface CustomEventHandlersNamespaced<T> {
|
|
412
|
+
"on:abort"?: EventHandlerUnion<T, Event> | undefined;
|
|
413
|
+
"on:animationend"?: EventHandlerUnion<T, AnimationEvent> | undefined;
|
|
414
|
+
"on:animationiteration"?: EventHandlerUnion<T, AnimationEvent> | undefined;
|
|
415
|
+
"on:animationstart"?: EventHandlerUnion<T, AnimationEvent> | undefined;
|
|
416
|
+
"on:auxclick"?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
417
|
+
"on:beforeinput"?: InputEventHandlerUnion<T, InputEvent> | undefined;
|
|
418
|
+
"on:beforetoggle"?: EventHandlerUnion<T, ToggleEvent> | undefined;
|
|
419
|
+
"on:blur"?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
420
|
+
"on:canplay"?: EventHandlerUnion<T, Event> | undefined;
|
|
421
|
+
"on:canplaythrough"?: EventHandlerUnion<T, Event> | undefined;
|
|
422
|
+
"on:change"?: ChangeEventHandlerUnion<T, Event> | undefined;
|
|
423
|
+
"on:click"?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
424
|
+
"on:contextmenu"?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
425
|
+
"on:dblclick"?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
426
|
+
"on:drag"?: EventHandlerUnion<T, DragEvent> | undefined;
|
|
427
|
+
"on:dragend"?: EventHandlerUnion<T, DragEvent> | undefined;
|
|
428
|
+
"on:dragenter"?: EventHandlerUnion<T, DragEvent> | undefined;
|
|
429
|
+
"on:dragleave"?: EventHandlerUnion<T, DragEvent> | undefined;
|
|
430
|
+
"on:dragover"?: EventHandlerUnion<T, DragEvent> | undefined;
|
|
431
|
+
"on:dragstart"?: EventHandlerUnion<T, DragEvent> | undefined;
|
|
432
|
+
"on:drop"?: EventHandlerUnion<T, DragEvent> | undefined;
|
|
433
|
+
"on:durationchange"?: EventHandlerUnion<T, Event> | undefined;
|
|
434
|
+
"on:emptied"?: EventHandlerUnion<T, Event> | undefined;
|
|
435
|
+
"on:ended"?: EventHandlerUnion<T, Event> | undefined;
|
|
436
|
+
"on:error"?: EventHandlerUnion<T, Event> | undefined;
|
|
437
|
+
"on:focus"?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
438
|
+
"on:gotpointercapture"?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
439
|
+
"on:input"?: InputEventHandlerUnion<T, InputEvent> | undefined;
|
|
440
|
+
"on:invalid"?: EventHandlerUnion<T, Event> | undefined;
|
|
441
|
+
"on:keydown"?: EventHandlerUnion<T, KeyboardEvent> | undefined;
|
|
442
|
+
"on:keypress"?: EventHandlerUnion<T, KeyboardEvent> | undefined;
|
|
443
|
+
"on:keyup"?: EventHandlerUnion<T, KeyboardEvent> | undefined;
|
|
444
|
+
"on:load"?: EventHandlerUnion<T, Event> | undefined;
|
|
445
|
+
"on:loadeddata"?: EventHandlerUnion<T, Event> | undefined;
|
|
446
|
+
"on:loadedmetadata"?: EventHandlerUnion<T, Event> | undefined;
|
|
447
|
+
"on:loadstart"?: EventHandlerUnion<T, Event> | undefined;
|
|
448
|
+
"on:lostpointercapture"?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
449
|
+
"on:mousedown"?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
450
|
+
"on:mouseenter"?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
451
|
+
"on:mouseleave"?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
452
|
+
"on:mousemove"?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
453
|
+
"on:mouseout"?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
454
|
+
"on:mouseover"?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
455
|
+
"on:mouseup"?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
456
|
+
"on:pause"?: EventHandlerUnion<T, Event> | undefined;
|
|
457
|
+
"on:play"?: EventHandlerUnion<T, Event> | undefined;
|
|
458
|
+
"on:playing"?: EventHandlerUnion<T, Event> | undefined;
|
|
459
|
+
"on:pointercancel"?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
460
|
+
"on:pointerdown"?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
461
|
+
"on:pointerenter"?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
462
|
+
"on:pointerleave"?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
463
|
+
"on:pointermove"?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
464
|
+
"on:pointerout"?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
465
|
+
"on:pointerover"?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
466
|
+
"on:pointerup"?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
467
|
+
"on:progress"?: EventHandlerUnion<T, ProgressEvent> | undefined;
|
|
468
|
+
"on:ratechange"?: EventHandlerUnion<T, Event> | undefined;
|
|
469
|
+
"on:reset"?: EventHandlerUnion<T, Event> | undefined;
|
|
470
|
+
"on:scroll"?: EventHandlerUnion<T, Event> | undefined;
|
|
471
|
+
"on:scrollend"?: EventHandlerUnion<T, Event> | undefined;
|
|
472
|
+
"on:seeked"?: EventHandlerUnion<T, Event> | undefined;
|
|
473
|
+
"on:seeking"?: EventHandlerUnion<T, Event> | undefined;
|
|
474
|
+
"on:select"?: EventHandlerUnion<T, Event> | undefined;
|
|
475
|
+
"on:stalled"?: EventHandlerUnion<T, Event> | undefined;
|
|
476
|
+
"on:submit"?: EventHandlerUnion<T, SubmitEvent> | undefined;
|
|
477
|
+
"on:suspend"?: EventHandlerUnion<T, Event> | undefined;
|
|
478
|
+
"on:timeupdate"?: EventHandlerUnion<T, Event> | undefined;
|
|
479
|
+
"on:toggle"?: EventHandlerUnion<T, ToggleEvent> | undefined;
|
|
480
|
+
"on:touchcancel"?: EventHandlerUnion<T, TouchEvent> | undefined;
|
|
481
|
+
"on:touchend"?: EventHandlerUnion<T, TouchEvent> | undefined;
|
|
482
|
+
"on:touchmove"?: EventHandlerUnion<T, TouchEvent> | undefined;
|
|
483
|
+
"on:touchstart"?: EventHandlerUnion<T, TouchEvent> | undefined;
|
|
484
|
+
"on:transitionstart"?: EventHandlerUnion<T, TransitionEvent> | undefined;
|
|
485
|
+
"on:transitionend"?: EventHandlerUnion<T, TransitionEvent> | undefined;
|
|
486
|
+
"on:transitionrun"?: EventHandlerUnion<T, TransitionEvent> | undefined;
|
|
487
|
+
"on:transitioncancel"?: EventHandlerUnion<T, TransitionEvent> | undefined;
|
|
488
|
+
"on:volumechange"?: EventHandlerUnion<T, Event> | undefined;
|
|
489
|
+
"on:waiting"?: EventHandlerUnion<T, Event> | undefined;
|
|
490
|
+
"on:wheel"?: EventHandlerUnion<T, WheelEvent> | undefined;
|
|
491
|
+
}
|
|
403
492
|
|
|
404
493
|
interface CSSProperties extends csstype.PropertiesHyphen {
|
|
405
494
|
// Override
|
|
@@ -452,43 +541,64 @@ export namespace JSX {
|
|
|
452
541
|
|
|
453
542
|
// All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
|
|
454
543
|
interface AriaAttributes {
|
|
455
|
-
/**
|
|
544
|
+
/**
|
|
545
|
+
* Identifies the currently active element when DOM focus is on a composite widget, textbox,
|
|
546
|
+
* group, or application.
|
|
547
|
+
*/
|
|
456
548
|
"aria-activedescendant"?: string | undefined;
|
|
457
|
-
/**
|
|
549
|
+
/**
|
|
550
|
+
* Indicates whether assistive technologies will present all, or only parts of, the changed
|
|
551
|
+
* region based on the change notifications defined by the aria-relevant attribute.
|
|
552
|
+
*/
|
|
458
553
|
"aria-atomic"?: boolean | "false" | "true" | undefined;
|
|
459
554
|
/**
|
|
460
|
-
* Indicates whether inputting text could trigger display of one or more predictions of the
|
|
461
|
-
* presented if they
|
|
555
|
+
* Indicates whether inputting text could trigger display of one or more predictions of the
|
|
556
|
+
* user's intended value for an input and specifies how predictions would be presented if they
|
|
557
|
+
* are made.
|
|
462
558
|
*/
|
|
463
559
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
464
|
-
/**
|
|
560
|
+
/**
|
|
561
|
+
* Indicates an element is being modified and that assistive technologies MAY want to wait until
|
|
562
|
+
* the modifications are complete before exposing them to the user.
|
|
563
|
+
*/
|
|
465
564
|
"aria-busy"?: boolean | "false" | "true" | undefined;
|
|
466
565
|
/**
|
|
467
566
|
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
|
567
|
+
*
|
|
468
568
|
* @see aria-pressed @see aria-selected.
|
|
469
569
|
*/
|
|
470
570
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
471
571
|
/**
|
|
472
572
|
* Defines the total number of columns in a table, grid, or treegrid.
|
|
573
|
+
*
|
|
473
574
|
* @see aria-colindex.
|
|
474
575
|
*/
|
|
475
576
|
"aria-colcount"?: number | string | undefined;
|
|
476
577
|
/**
|
|
477
|
-
* Defines an element's column index or position with respect to the total number of columns
|
|
578
|
+
* Defines an element's column index or position with respect to the total number of columns
|
|
579
|
+
* within a table, grid, or treegrid.
|
|
580
|
+
*
|
|
478
581
|
* @see aria-colcount @see aria-colspan.
|
|
479
582
|
*/
|
|
480
583
|
"aria-colindex"?: number | string | undefined;
|
|
481
584
|
/**
|
|
482
|
-
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or
|
|
585
|
+
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or
|
|
586
|
+
* treegrid.
|
|
587
|
+
*
|
|
483
588
|
* @see aria-colindex @see aria-rowspan.
|
|
484
589
|
*/
|
|
485
590
|
"aria-colspan"?: number | string | undefined;
|
|
486
591
|
/**
|
|
487
|
-
* Identifies the element (or elements) whose contents or presence are controlled by the current
|
|
592
|
+
* Identifies the element (or elements) whose contents or presence are controlled by the current
|
|
593
|
+
* element.
|
|
594
|
+
*
|
|
488
595
|
* @see aria-owns.
|
|
489
596
|
*/
|
|
490
597
|
"aria-controls"?: string | undefined;
|
|
491
|
-
/**
|
|
598
|
+
/**
|
|
599
|
+
* Indicates the element that represents the current item within a container or set of related
|
|
600
|
+
* elements.
|
|
601
|
+
*/
|
|
492
602
|
"aria-current"?:
|
|
493
603
|
| boolean
|
|
494
604
|
| "false"
|
|
@@ -501,42 +611,57 @@ export namespace JSX {
|
|
|
501
611
|
| undefined;
|
|
502
612
|
/**
|
|
503
613
|
* Identifies the element (or elements) that describes the object.
|
|
614
|
+
*
|
|
504
615
|
* @see aria-labelledby
|
|
505
616
|
*/
|
|
506
617
|
"aria-describedby"?: string | undefined;
|
|
507
618
|
/**
|
|
508
619
|
* Identifies the element that provides a detailed, extended description for the object.
|
|
620
|
+
*
|
|
509
621
|
* @see aria-describedby.
|
|
510
622
|
*/
|
|
511
623
|
"aria-details"?: string | undefined;
|
|
512
624
|
/**
|
|
513
|
-
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise
|
|
625
|
+
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise
|
|
626
|
+
* operable.
|
|
627
|
+
*
|
|
514
628
|
* @see aria-hidden @see aria-readonly.
|
|
515
629
|
*/
|
|
516
630
|
"aria-disabled"?: boolean | "false" | "true" | undefined;
|
|
517
631
|
/**
|
|
518
|
-
* Indicates what functions can be performed when a dragged object is released on the drop
|
|
519
|
-
*
|
|
632
|
+
* Indicates what functions can be performed when a dragged object is released on the drop
|
|
633
|
+
* target.
|
|
634
|
+
*
|
|
635
|
+
* @deprecated In ARIA 1.1
|
|
520
636
|
*/
|
|
521
637
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
522
638
|
/**
|
|
523
639
|
* Identifies the element that provides an error message for the object.
|
|
640
|
+
*
|
|
524
641
|
* @see aria-invalid @see aria-describedby.
|
|
525
642
|
*/
|
|
526
643
|
"aria-errormessage"?: string | undefined;
|
|
527
|
-
/**
|
|
644
|
+
/**
|
|
645
|
+
* Indicates whether the element, or another grouping element it controls, is currently expanded
|
|
646
|
+
* or collapsed.
|
|
647
|
+
*/
|
|
528
648
|
"aria-expanded"?: boolean | "false" | "true" | undefined;
|
|
529
649
|
/**
|
|
530
|
-
* Identifies the next element (or elements) in an alternate reading order of content which, at
|
|
531
|
-
* allows assistive technology to override the general default of reading
|
|
650
|
+
* Identifies the next element (or elements) in an alternate reading order of content which, at
|
|
651
|
+
* the user's discretion, allows assistive technology to override the general default of reading
|
|
652
|
+
* in document source order.
|
|
532
653
|
*/
|
|
533
654
|
"aria-flowto"?: string | undefined;
|
|
534
655
|
/**
|
|
535
656
|
* Indicates an element's "grabbed" state in a drag-and-drop operation.
|
|
536
|
-
*
|
|
657
|
+
*
|
|
658
|
+
* @deprecated In ARIA 1.1
|
|
537
659
|
*/
|
|
538
660
|
"aria-grabbed"?: boolean | "false" | "true" | undefined;
|
|
539
|
-
/**
|
|
661
|
+
/**
|
|
662
|
+
* Indicates the availability and type of interactive popup element, such as menu or dialog,
|
|
663
|
+
* that can be triggered by an element.
|
|
664
|
+
*/
|
|
540
665
|
"aria-haspopup"?:
|
|
541
666
|
| boolean
|
|
542
667
|
| "false"
|
|
@@ -549,66 +674,88 @@ export namespace JSX {
|
|
|
549
674
|
| undefined;
|
|
550
675
|
/**
|
|
551
676
|
* Indicates whether the element is exposed to an accessibility API.
|
|
677
|
+
*
|
|
552
678
|
* @see aria-disabled.
|
|
553
679
|
*/
|
|
554
680
|
"aria-hidden"?: boolean | "false" | "true" | undefined;
|
|
555
681
|
/**
|
|
556
682
|
* Indicates the entered value does not conform to the format expected by the application.
|
|
683
|
+
*
|
|
557
684
|
* @see aria-errormessage.
|
|
558
685
|
*/
|
|
559
686
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
560
|
-
/**
|
|
687
|
+
/**
|
|
688
|
+
* Indicates keyboard shortcuts that an author has implemented to activate or give focus to an
|
|
689
|
+
* element.
|
|
690
|
+
*/
|
|
561
691
|
"aria-keyshortcuts"?: string | undefined;
|
|
562
692
|
/**
|
|
563
693
|
* Defines a string value that labels the current element.
|
|
694
|
+
*
|
|
564
695
|
* @see aria-labelledby.
|
|
565
696
|
*/
|
|
566
697
|
"aria-label"?: string | undefined;
|
|
567
698
|
/**
|
|
568
699
|
* Identifies the element (or elements) that labels the current element.
|
|
700
|
+
*
|
|
569
701
|
* @see aria-describedby.
|
|
570
702
|
*/
|
|
571
703
|
"aria-labelledby"?: string | undefined;
|
|
572
704
|
/** Defines the hierarchical level of an element within a structure. */
|
|
573
705
|
"aria-level"?: number | string | undefined;
|
|
574
|
-
/**
|
|
706
|
+
/**
|
|
707
|
+
* Indicates that an element will be updated, and describes the types of updates the user
|
|
708
|
+
* agents, assistive technologies, and user can expect from the live region.
|
|
709
|
+
*/
|
|
575
710
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
576
711
|
/** Indicates whether an element is modal when displayed. */
|
|
577
712
|
"aria-modal"?: boolean | "false" | "true" | undefined;
|
|
578
713
|
/** Indicates whether a text box accepts multiple lines of input or only a single line. */
|
|
579
714
|
"aria-multiline"?: boolean | "false" | "true" | undefined;
|
|
580
|
-
/**
|
|
715
|
+
/**
|
|
716
|
+
* Indicates that the user may select more than one item from the current selectable
|
|
717
|
+
* descendants.
|
|
718
|
+
*/
|
|
581
719
|
"aria-multiselectable"?: boolean | "false" | "true" | undefined;
|
|
582
720
|
/** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
|
|
583
721
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
584
722
|
/**
|
|
585
|
-
* Identifies an element (or elements) in order to define a visual, functional, or contextual
|
|
586
|
-
* between DOM elements where the DOM hierarchy cannot be used to
|
|
723
|
+
* Identifies an element (or elements) in order to define a visual, functional, or contextual
|
|
724
|
+
* parent/child relationship between DOM elements where the DOM hierarchy cannot be used to
|
|
725
|
+
* represent the relationship.
|
|
726
|
+
*
|
|
587
727
|
* @see aria-controls.
|
|
588
728
|
*/
|
|
589
729
|
"aria-owns"?: string | undefined;
|
|
590
730
|
/**
|
|
591
|
-
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when
|
|
592
|
-
* A hint could be a sample value or a brief description of the
|
|
731
|
+
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when
|
|
732
|
+
* the control has no value. A hint could be a sample value or a brief description of the
|
|
733
|
+
* expected format.
|
|
593
734
|
*/
|
|
594
735
|
"aria-placeholder"?: string | undefined;
|
|
595
736
|
/**
|
|
596
|
-
* Defines an element's number or position in the current set of listitems or treeitems. Not
|
|
737
|
+
* Defines an element's number or position in the current set of listitems or treeitems. Not
|
|
738
|
+
* required if all elements in the set are present in the DOM.
|
|
739
|
+
*
|
|
597
740
|
* @see aria-setsize.
|
|
598
741
|
*/
|
|
599
742
|
"aria-posinset"?: number | string | undefined;
|
|
600
743
|
/**
|
|
601
744
|
* Indicates the current "pressed" state of toggle buttons.
|
|
745
|
+
*
|
|
602
746
|
* @see aria-checked @see aria-selected.
|
|
603
747
|
*/
|
|
604
748
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
605
749
|
/**
|
|
606
750
|
* Indicates that the element is not editable, but is otherwise operable.
|
|
751
|
+
*
|
|
607
752
|
* @see aria-disabled.
|
|
608
753
|
*/
|
|
609
754
|
"aria-readonly"?: boolean | "false" | "true" | undefined;
|
|
610
755
|
/**
|
|
611
|
-
* Indicates what notifications the user agent will trigger when the accessibility tree within a
|
|
756
|
+
* Indicates what notifications the user agent will trigger when the accessibility tree within a
|
|
757
|
+
* live region is modified.
|
|
758
|
+
*
|
|
612
759
|
* @see aria-atomic.
|
|
613
760
|
*/
|
|
614
761
|
"aria-relevant"?:
|
|
@@ -629,26 +776,33 @@ export namespace JSX {
|
|
|
629
776
|
"aria-roledescription"?: string | undefined;
|
|
630
777
|
/**
|
|
631
778
|
* Defines the total number of rows in a table, grid, or treegrid.
|
|
779
|
+
*
|
|
632
780
|
* @see aria-rowindex.
|
|
633
781
|
*/
|
|
634
782
|
"aria-rowcount"?: number | string | undefined;
|
|
635
783
|
/**
|
|
636
|
-
* Defines an element's row index or position with respect to the total number of rows within a
|
|
784
|
+
* Defines an element's row index or position with respect to the total number of rows within a
|
|
785
|
+
* table, grid, or treegrid.
|
|
786
|
+
*
|
|
637
787
|
* @see aria-rowcount @see aria-rowspan.
|
|
638
788
|
*/
|
|
639
789
|
"aria-rowindex"?: number | string | undefined;
|
|
640
790
|
/**
|
|
641
791
|
* Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
792
|
+
*
|
|
642
793
|
* @see aria-rowindex @see aria-colspan.
|
|
643
794
|
*/
|
|
644
795
|
"aria-rowspan"?: number | string | undefined;
|
|
645
796
|
/**
|
|
646
797
|
* Indicates the current "selected" state of various widgets.
|
|
798
|
+
*
|
|
647
799
|
* @see aria-checked @see aria-pressed.
|
|
648
800
|
*/
|
|
649
801
|
"aria-selected"?: boolean | "false" | "true" | undefined;
|
|
650
802
|
/**
|
|
651
|
-
* Defines the number of items in the current set of listitems or treeitems. Not required if all
|
|
803
|
+
* Defines the number of items in the current set of listitems or treeitems. Not required if all
|
|
804
|
+
* elements in the set are present in the DOM.
|
|
805
|
+
*
|
|
652
806
|
* @see aria-posinset.
|
|
653
807
|
*/
|
|
654
808
|
"aria-setsize"?: number | string | undefined;
|
|
@@ -660,6 +814,7 @@ export namespace JSX {
|
|
|
660
814
|
"aria-valuemin"?: number | string | undefined;
|
|
661
815
|
/**
|
|
662
816
|
* Defines the current value for a range widget.
|
|
817
|
+
*
|
|
663
818
|
* @see aria-valuetext.
|
|
664
819
|
*/
|
|
665
820
|
"aria-valuenow"?: number | string | undefined;
|
|
@@ -757,6 +912,7 @@ export namespace JSX {
|
|
|
757
912
|
draggable?: boolean | "false" | "true" | undefined;
|
|
758
913
|
hidden?: boolean | "hidden" | "until-found" | undefined;
|
|
759
914
|
id?: string | undefined;
|
|
915
|
+
is?: string | undefined;
|
|
760
916
|
inert?: boolean | undefined;
|
|
761
917
|
lang?: string | undefined;
|
|
762
918
|
spellcheck?: boolean | undefined;
|
|
@@ -2040,9 +2196,7 @@ export namespace JSX {
|
|
|
2040
2196
|
textLength?: number | string | undefined;
|
|
2041
2197
|
lengthAdjust?: "spacing" | "spacingAndGlyphs" | undefined;
|
|
2042
2198
|
}
|
|
2043
|
-
/**
|
|
2044
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use
|
|
2045
|
-
*/
|
|
2199
|
+
/** @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use */
|
|
2046
2200
|
interface UseSVGAttributes<T>
|
|
2047
2201
|
extends CoreSVGAttributes<T>,
|
|
2048
2202
|
StylableSVGAttributes,
|
|
@@ -2064,9 +2218,7 @@ export namespace JSX {
|
|
|
2064
2218
|
ZoomAndPanSVGAttributes {
|
|
2065
2219
|
viewTarget?: string | undefined;
|
|
2066
2220
|
}
|
|
2067
|
-
/**
|
|
2068
|
-
* @type {HTMLElementTagNameMap}
|
|
2069
|
-
*/
|
|
2221
|
+
/** @type {HTMLElementTagNameMap} */
|
|
2070
2222
|
interface HTMLElementTags {
|
|
2071
2223
|
a: AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
2072
2224
|
abbr: HTMLAttributes<HTMLElement>;
|
|
@@ -2181,9 +2333,7 @@ export namespace JSX {
|
|
|
2181
2333
|
video: VideoHTMLAttributes<HTMLVideoElement>;
|
|
2182
2334
|
wbr: HTMLAttributes<HTMLElement>;
|
|
2183
2335
|
}
|
|
2184
|
-
/**
|
|
2185
|
-
* @type {HTMLElementDeprecatedTagNameMap}
|
|
2186
|
-
*/
|
|
2336
|
+
/** @type {HTMLElementDeprecatedTagNameMap} */
|
|
2187
2337
|
interface HTMLElementDeprecatedTags {
|
|
2188
2338
|
big: HTMLAttributes<HTMLElement>;
|
|
2189
2339
|
keygen: KeygenHTMLAttributes<HTMLElement>;
|
|
@@ -2191,9 +2341,7 @@ export namespace JSX {
|
|
|
2191
2341
|
noindex: HTMLAttributes<HTMLElement>;
|
|
2192
2342
|
param: ParamHTMLAttributes<HTMLParamElement>;
|
|
2193
2343
|
}
|
|
2194
|
-
/**
|
|
2195
|
-
* @type {SVGElementTagNameMap}
|
|
2196
|
-
*/
|
|
2344
|
+
/** @type {SVGElementTagNameMap} */
|
|
2197
2345
|
interface SVGElementTags {
|
|
2198
2346
|
animate: AnimateSVGAttributes<SVGAnimateElement>;
|
|
2199
2347
|
animateMotion: AnimateMotionSVGAttributes<SVGAnimateMotionElement>;
|
|
@@ -29,13 +29,9 @@ SOFTWARE.
|
|
|
29
29
|
*
|
|
30
30
|
* @description https://docs.solidjs.com/reference/reactive-utilities/map-array
|
|
31
31
|
*/
|
|
32
|
-
export declare function mapArray<T, U>(
|
|
33
|
-
list: Accessor<readonly T[] | undefined | null | false>,
|
|
34
|
-
mapFn: (v: T, i: Accessor<number>) => U,
|
|
35
|
-
options?: {
|
|
32
|
+
export declare function mapArray<T, U>(list: Accessor<readonly T[] | undefined | null | false>, mapFn: (v: T, i: Accessor<number>) => U, options?: {
|
|
36
33
|
fallback?: Accessor<any>;
|
|
37
|
-
|
|
38
|
-
): () => U[];
|
|
34
|
+
}): () => U[];
|
|
39
35
|
/**
|
|
40
36
|
* Reactively maps arrays by index instead of value - underlying helper for the `<Index>` control flow
|
|
41
37
|
*
|
|
@@ -43,10 +39,6 @@ export declare function mapArray<T, U>(
|
|
|
43
39
|
*
|
|
44
40
|
* @description https://docs.solidjs.com/reference/reactive-utilities/index-array
|
|
45
41
|
*/
|
|
46
|
-
export declare function indexArray<T, U>(
|
|
47
|
-
list: Accessor<readonly T[] | undefined | null | false>,
|
|
48
|
-
mapFn: (v: Accessor<T>, i: number) => U,
|
|
49
|
-
options?: {
|
|
42
|
+
export declare function indexArray<T, U>(list: Accessor<readonly T[] | undefined | null | false>, mapFn: (v: Accessor<T>, i: number) => U, options?: {
|
|
50
43
|
fallback?: Accessor<any>;
|
|
51
|
-
|
|
52
|
-
): () => U[];
|
|
44
|
+
}): () => U[];
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import { Accessor, Setter } from "./signal.js";
|
|
2
2
|
declare global {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
interface SymbolConstructor {
|
|
4
|
+
readonly observable: symbol;
|
|
5
|
+
}
|
|
6
6
|
}
|
|
7
7
|
interface Observable<T> {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
[Symbol.observable](): Observable<T>;
|
|
12
|
-
}
|
|
13
|
-
export type ObservableObserver<T> =
|
|
14
|
-
| ((v: T) => void)
|
|
15
|
-
| {
|
|
16
|
-
next?: (v: T) => void;
|
|
17
|
-
error?: (v: any) => void;
|
|
18
|
-
complete?: (v: boolean) => void;
|
|
8
|
+
subscribe(observer: ObservableObserver<T>): {
|
|
9
|
+
unsubscribe(): void;
|
|
19
10
|
};
|
|
11
|
+
[Symbol.observable](): Observable<T>;
|
|
12
|
+
}
|
|
13
|
+
export type ObservableObserver<T> = ((v: T) => void) | {
|
|
14
|
+
next?: (v: T) => void;
|
|
15
|
+
error?: (v: any) => void;
|
|
16
|
+
complete?: (v: boolean) => void;
|
|
17
|
+
};
|
|
20
18
|
/**
|
|
21
19
|
* Creates a simple observable from a signal's accessor to be used with the `from` operator of observable libraries like e.g. rxjs
|
|
22
20
|
* ```typescript
|
|
@@ -28,15 +26,9 @@ export type ObservableObserver<T> =
|
|
|
28
26
|
* description https://docs.solidjs.com/reference/reactive-utilities/observable
|
|
29
27
|
*/
|
|
30
28
|
export declare function observable<T>(input: Accessor<T>): Observable<T>;
|
|
31
|
-
export declare function from<T>(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
| (() => void)
|
|
37
|
-
| {
|
|
38
|
-
unsubscribe: () => void;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
): Accessor<T | undefined>;
|
|
29
|
+
export declare function from<T>(producer: ((setter: Setter<T | undefined>) => () => void) | {
|
|
30
|
+
subscribe: (fn: (v: T) => void) => (() => void) | {
|
|
31
|
+
unsubscribe: () => void;
|
|
32
|
+
};
|
|
33
|
+
}): Accessor<T | undefined>;
|
|
42
34
|
export {};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
export interface Task {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
id: number;
|
|
3
|
+
fn: ((didTimeout: boolean) => void) | null;
|
|
4
|
+
startTime: number;
|
|
5
|
+
expirationTime: number;
|
|
6
6
|
}
|
|
7
|
-
export declare function requestCallback(
|
|
8
|
-
fn: () => void,
|
|
9
|
-
options?: {
|
|
7
|
+
export declare function requestCallback(fn: () => void, options?: {
|
|
10
8
|
timeout: number;
|
|
11
|
-
|
|
12
|
-
): Task;
|
|
9
|
+
}): Task;
|
|
13
10
|
export declare function cancelCallback(task: Task): void;
|