@angular/aria 22.0.0-next.3 → 22.0.0-next.5
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/fesm2022/_accordion-chunk.mjs +5 -5
- package/fesm2022/_accordion-chunk.mjs.map +1 -1
- package/fesm2022/_click-event-manager-chunk.mjs +45 -0
- package/fesm2022/_click-event-manager-chunk.mjs.map +1 -0
- package/fesm2022/_combobox-chunk.mjs +8 -8
- package/fesm2022/_combobox-chunk.mjs.map +1 -1
- package/fesm2022/_combobox-listbox-chunk.mjs +17 -7
- package/fesm2022/_combobox-listbox-chunk.mjs.map +1 -1
- package/fesm2022/_combobox-tree-chunk.mjs +16 -6
- package/fesm2022/_combobox-tree-chunk.mjs.map +1 -1
- package/fesm2022/_deferred-content-chunk.mjs +6 -6
- package/fesm2022/_element-chunk.mjs +6 -0
- package/fesm2022/_element-chunk.mjs.map +1 -0
- package/fesm2022/_list-chunk.mjs.map +1 -1
- package/fesm2022/_list-navigation-chunk.mjs.map +1 -1
- package/fesm2022/_list-typeahead-chunk.mjs.map +1 -1
- package/fesm2022/_menu-chunk.mjs +33 -12
- package/fesm2022/_menu-chunk.mjs.map +1 -1
- package/fesm2022/_pointer-event-manager-chunk.mjs.map +1 -1
- package/fesm2022/_signal-like-chunk.mjs.map +1 -1
- package/fesm2022/_tabs-chunk.mjs +15 -5
- package/fesm2022/_tabs-chunk.mjs.map +1 -1
- package/fesm2022/_toolbar-widget-group-chunk.mjs +13 -1
- package/fesm2022/_toolbar-widget-group-chunk.mjs.map +1 -1
- package/fesm2022/_widget-chunk.mjs +17 -169
- package/fesm2022/_widget-chunk.mjs.map +1 -1
- package/fesm2022/accordion-testing.mjs +61 -0
- package/fesm2022/accordion-testing.mjs.map +1 -0
- package/fesm2022/accordion.mjs +217 -192
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/aria.mjs +1 -1
- package/fesm2022/aria.mjs.map +1 -1
- package/fesm2022/combobox.mjs +15 -15
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/grid.mjs +26 -97
- package/fesm2022/grid.mjs.map +1 -1
- package/fesm2022/listbox-testing.mjs +55 -0
- package/fesm2022/listbox-testing.mjs.map +1 -0
- package/fesm2022/listbox.mjs +13 -20
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu-testing.mjs +75 -0
- package/fesm2022/menu-testing.mjs.map +1 -0
- package/fesm2022/menu.mjs +18 -22
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/private.mjs +2 -0
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/tabs-testing.mjs +57 -0
- package/fesm2022/tabs-testing.mjs.map +1 -0
- package/fesm2022/tabs.mjs +22 -32
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar-testing.mjs +56 -0
- package/fesm2022/toolbar-testing.mjs.map +1 -0
- package/fesm2022/toolbar.mjs +20 -26
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree-testing.mjs +88 -0
- package/fesm2022/tree-testing.mjs.map +1 -0
- package/fesm2022/tree.mjs +16 -26
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +26 -2
- package/resources/code-examples.db +0 -0
- package/types/_accordion-chunk.d.ts +10 -9
- package/types/_click-event-manager-chunk.d.ts +27 -0
- package/types/_combobox-chunk.d.ts +23 -23
- package/types/_element-chunk.d.ts +10 -0
- package/types/_expansion-chunk.d.ts +1 -1
- package/types/_grid-chunk.d.ts +13 -51
- package/types/_keyboard-event-manager-chunk.d.ts +2 -2
- package/types/_list-chunk.d.ts +19 -18
- package/types/_list-navigation-chunk.d.ts +6 -16
- package/types/_listbox-chunk.d.ts +37 -30
- package/types/_menu-chunk.d.ts +60 -56
- package/types/_pointer-event-manager-chunk.d.ts +1 -1
- package/types/_signal-like-chunk.d.ts +14 -0
- package/types/_tabs-chunk.d.ts +13 -6
- package/types/_toolbar-chunk.d.ts +6 -1
- package/types/_tree-chunk.d.ts +24 -17
- package/types/accordion-testing.d.ts +63 -0
- package/types/accordion.d.ts +69 -55
- package/types/combobox.d.ts +6 -5
- package/types/grid.d.ts +8 -14
- package/types/listbox-testing.d.ts +39 -0
- package/types/listbox.d.ts +21 -22
- package/types/menu-testing.d.ts +50 -0
- package/types/menu.d.ts +4 -3
- package/types/private.d.ts +48 -45
- package/types/tabs-testing.d.ts +57 -0
- package/types/tabs.d.ts +4 -9
- package/types/toolbar-testing.d.ts +72 -0
- package/types/toolbar.d.ts +3 -5
- package/types/tree-testing.d.ts +75 -0
- package/types/tree.d.ts +5 -9
package/types/_grid-chunk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SignalLike, WritableSignalLike
|
|
1
|
+
import { SignalLike, WritableSignalLike } from './_signal-like-chunk.js';
|
|
2
2
|
import { KeyboardEventManager } from './_keyboard-event-manager-chunk.js';
|
|
3
3
|
import { PointerEventManager } from './_pointer-event-manager-chunk.js';
|
|
4
4
|
|
|
@@ -335,7 +335,9 @@ declare class Grid<T extends GridCell> {
|
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
/** The inputs for the `GridCellWidgetPattern`. */
|
|
338
|
-
interface GridCellWidgetInputs
|
|
338
|
+
interface GridCellWidgetInputs {
|
|
339
|
+
/** Whether the widget is disabled. */
|
|
340
|
+
disabled: SignalLike<boolean>;
|
|
339
341
|
/** The `GridCellPattern` that this widget belongs to. */
|
|
340
342
|
cell: SignalLike<GridCellPattern>;
|
|
341
343
|
/** The html element that should receive focus. */
|
|
@@ -346,21 +348,17 @@ interface GridCellWidgetInputs extends Omit<ListNavigationItem, 'index'> {
|
|
|
346
348
|
focusTarget: SignalLike<HTMLElement | undefined>;
|
|
347
349
|
}
|
|
348
350
|
/** The UI pattern for a widget inside a grid cell. */
|
|
349
|
-
declare class GridCellWidgetPattern
|
|
351
|
+
declare class GridCellWidgetPattern {
|
|
350
352
|
readonly inputs: GridCellWidgetInputs;
|
|
351
|
-
/** A unique identifier for the widget. */
|
|
352
|
-
readonly id: SignalLike<string>;
|
|
353
353
|
/** The html element that should receive focus. */
|
|
354
354
|
readonly element: SignalLike<HTMLElement>;
|
|
355
355
|
/** The element that should receive focus. */
|
|
356
356
|
readonly widgetHost: SignalLike<HTMLElement>;
|
|
357
|
-
/** The index of the widget within the cell. */
|
|
358
|
-
readonly index: SignalLike<number>;
|
|
359
357
|
/** Whether the widget is disabled. */
|
|
360
358
|
readonly disabled: SignalLike<boolean>;
|
|
361
359
|
/** The tab index for the widget. */
|
|
362
360
|
readonly tabIndex: SignalLike<-1 | 0>;
|
|
363
|
-
/** Whether the widget is the active
|
|
361
|
+
/** Whether the widget is the active widget in the cell. */
|
|
364
362
|
readonly active: SignalLike<boolean>;
|
|
365
363
|
/** Whether the widget is currently activated. */
|
|
366
364
|
readonly isActivated: WritableSignalLike<boolean>;
|
|
@@ -386,13 +384,13 @@ declare class GridCellWidgetPattern implements ListNavigationItem {
|
|
|
386
384
|
}
|
|
387
385
|
|
|
388
386
|
/** The inputs for the `GridCellPattern`. */
|
|
389
|
-
interface GridCellInputs extends GridCell
|
|
387
|
+
interface GridCellInputs extends GridCell {
|
|
390
388
|
/** The `GridPattern` that this cell belongs to. */
|
|
391
389
|
grid: SignalLike<GridPattern>;
|
|
392
390
|
/** The `GridRowPattern` that this cell belongs to. */
|
|
393
391
|
row: SignalLike<GridRowPattern>;
|
|
394
|
-
/** The widget
|
|
395
|
-
|
|
392
|
+
/** The widget pattern contained within this cell, if any. */
|
|
393
|
+
widget: SignalLike<GridCellWidgetPattern | undefined>;
|
|
396
394
|
/** The index of this cell's row within the grid. */
|
|
397
395
|
rowIndex: SignalLike<number | undefined>;
|
|
398
396
|
/** The index of this cell's column within the grid. */
|
|
@@ -433,30 +431,10 @@ declare class GridCellPattern implements GridCell {
|
|
|
433
431
|
private readonly _tabIndex;
|
|
434
432
|
/** The tab index for the cell. If the cell contains a widget, the cell's tab index is -1. */
|
|
435
433
|
readonly tabIndex: SignalLike<-1 | 0>;
|
|
436
|
-
/**
|
|
437
|
-
readonly
|
|
438
|
-
/** Whether the cell contains multiple widgets. */
|
|
439
|
-
readonly multiWidgetMode: SignalLike<boolean>;
|
|
440
|
-
/** Whether navigation between widgets is disabled. */
|
|
441
|
-
readonly navigationDisabled: SignalLike<boolean>;
|
|
442
|
-
/** The focus behavior for the widgets in the cell. */
|
|
443
|
-
readonly focusBehavior: ListFocus<GridCellWidgetPattern>;
|
|
444
|
-
/** The navigation behavior for the widgets in the cell. */
|
|
445
|
-
readonly navigationBehavior: ListNavigation<GridCellWidgetPattern>;
|
|
446
|
-
/** The currently active widget in the cell. */
|
|
447
|
-
readonly activeWidget: WritableSignalLike<GridCellWidgetPattern | undefined>;
|
|
448
|
-
/** Whether navigation between widgets is activated. */
|
|
449
|
-
readonly navigationActivated: WritableSignalLike<boolean>;
|
|
450
|
-
/** Whether any widget within the cell is activated. */
|
|
451
|
-
readonly widgetActivated: SignalLike<boolean>;
|
|
434
|
+
/** The widget in the cell. */
|
|
435
|
+
readonly widget: SignalLike<GridCellWidgetPattern | undefined>;
|
|
452
436
|
/** Whether the cell or widget inside the cell is activated. */
|
|
453
437
|
readonly isActivated: SignalLike<boolean>;
|
|
454
|
-
/** The key used to navigate to the previous widget. */
|
|
455
|
-
readonly prevKey: SignalLike<"ArrowUp" | "ArrowRight" | "ArrowLeft">;
|
|
456
|
-
/** The key used to navigate to the next widget. */
|
|
457
|
-
readonly nextKey: SignalLike<"ArrowRight" | "ArrowLeft" | "ArrowDown">;
|
|
458
|
-
/** The keyboard event manager for the cell. */
|
|
459
|
-
readonly keydown: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
460
438
|
constructor(inputs: GridCellInputs);
|
|
461
439
|
/** Handles keydown events for the cell. */
|
|
462
440
|
onKeydown(event: KeyboardEvent): void;
|
|
@@ -468,12 +446,6 @@ declare class GridCellPattern implements GridCell {
|
|
|
468
446
|
focus(): void;
|
|
469
447
|
/** Gets the tab index for the widget within the cell. */
|
|
470
448
|
widgetTabIndex(): -1 | 0;
|
|
471
|
-
/** Starts navigation between widgets. */
|
|
472
|
-
startNavigation(): void;
|
|
473
|
-
/** Stops navigation between widgets and restores focus to the cell. */
|
|
474
|
-
stopNavigation(): void;
|
|
475
|
-
/** Executes a navigation operation and focuses the new active widget. */
|
|
476
|
-
private _advance;
|
|
477
449
|
}
|
|
478
450
|
|
|
479
451
|
/** The inputs for the `GridRowPattern`. */
|
|
@@ -507,8 +479,6 @@ interface GridInputs extends Omit<GridInputs$1<GridCellPattern>, 'cells'> {
|
|
|
507
479
|
multi: SignalLike<boolean>;
|
|
508
480
|
/** The selection strategy used by the grid. */
|
|
509
481
|
selectionMode: SignalLike<'follow' | 'explicit'>;
|
|
510
|
-
/** Whether enable range selection. */
|
|
511
|
-
enableRangeSelection: SignalLike<boolean>;
|
|
512
482
|
/** A function that returns the grid cell associated with a given element. */
|
|
513
483
|
getCell: (e: Element | null) => GridCellPattern | undefined;
|
|
514
484
|
}
|
|
@@ -535,22 +505,18 @@ declare class GridPattern {
|
|
|
535
505
|
readonly pauseNavigation: SignalLike<boolean>;
|
|
536
506
|
/** Whether the focus is in the grid. */
|
|
537
507
|
readonly isFocused: WritableSignalLike<boolean>;
|
|
538
|
-
/** Whether the grid has
|
|
539
|
-
readonly
|
|
508
|
+
/** Whether the grid has received focus once. */
|
|
509
|
+
readonly hasBeenInteracted: WritableSignalLike<boolean>;
|
|
540
510
|
/** Whether the user is currently dragging to select a range of cells. */
|
|
541
511
|
readonly dragging: WritableSignalLike<boolean>;
|
|
542
512
|
/** The key for navigating to the previous column. */
|
|
543
513
|
readonly prevColKey: SignalLike<"ArrowRight" | "ArrowLeft">;
|
|
544
514
|
/** The key for navigating to the next column. */
|
|
545
515
|
readonly nextColKey: SignalLike<"ArrowRight" | "ArrowLeft">;
|
|
546
|
-
/** Whether the grid pattern is currently accepting `pointermove` events. */
|
|
547
|
-
readonly acceptsPointerMove: SignalLike<boolean>;
|
|
548
516
|
/** The keydown event manager for the grid. */
|
|
549
517
|
readonly keydown: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
550
518
|
/** The pointerdown event manager for the grid. */
|
|
551
519
|
readonly pointerdown: SignalLike<PointerEventManager<PointerEvent>>;
|
|
552
|
-
/** The pointerup event manager for the grid. */
|
|
553
|
-
readonly pointerup: SignalLike<PointerEventManager<PointerEvent>>;
|
|
554
520
|
/** Indicates maybe the losing focus is caused by row/cell deletion. */
|
|
555
521
|
private readonly _maybeDeletion;
|
|
556
522
|
/** Indicates the losing focus is certainly caused by row/cell deletion. */
|
|
@@ -562,10 +528,6 @@ declare class GridPattern {
|
|
|
562
528
|
onKeydown(event: KeyboardEvent): void;
|
|
563
529
|
/** Handles pointerdown events on the grid. */
|
|
564
530
|
onPointerdown(event: PointerEvent): void;
|
|
565
|
-
/** Handles pointermove events on the grid. */
|
|
566
|
-
onPointermove(event: PointerEvent): void;
|
|
567
|
-
/** Handles pointerup events on the grid. */
|
|
568
|
-
onPointerup(event: PointerEvent): void;
|
|
569
531
|
/** Handles focusin events on the grid. */
|
|
570
532
|
onFocusIn(event: FocusEvent): void;
|
|
571
533
|
/** Handles focusout events on the grid. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SignalLike } from './
|
|
1
|
+
import { SignalLike } from './_signal-like-chunk.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Options that are applicable to all event handlers.
|
|
@@ -56,7 +56,7 @@ type KeyCode = string | SignalLike<string> | RegExp;
|
|
|
56
56
|
* propagation and prevents default on all events it handles.
|
|
57
57
|
*/
|
|
58
58
|
declare class KeyboardEventManager<T extends KeyboardEvent> extends EventManager<T> {
|
|
59
|
-
options: EventHandlerOptions;
|
|
59
|
+
readonly options: EventHandlerOptions;
|
|
60
60
|
/** Configures this event manager to handle events with a specific key and no modifiers. */
|
|
61
61
|
on(key: KeyCode, handler: EventHandler<T>, options?: Partial<EventHandlerOptions>): this;
|
|
62
62
|
/** Configures this event manager to handle events with a specific modifer and key combination. */
|
package/types/_list-chunk.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SignalLike, WritableSignalLike } from './_signal-like-chunk.js';
|
|
2
|
+
import { ListFocusItem, ListFocusInputs, ListFocus, ListNavigationItem, ListNavigationInputs, ListNavigation } from './_list-navigation-chunk.js';
|
|
2
3
|
|
|
3
4
|
/** Represents an item in a collection, such as a listbox option, that can be selected. */
|
|
4
5
|
interface ListSelectionItem<V> extends ListFocusItem {
|
|
@@ -22,11 +23,11 @@ declare class ListSelection<T extends ListSelectionItem<V>, V> {
|
|
|
22
23
|
focusManager: ListFocus<T>;
|
|
23
24
|
};
|
|
24
25
|
/** The start index to use for range selection. */
|
|
25
|
-
rangeStartIndex: WritableSignalLike<number>;
|
|
26
|
+
readonly rangeStartIndex: WritableSignalLike<number>;
|
|
26
27
|
/** The end index to use for range selection. */
|
|
27
|
-
rangeEndIndex: WritableSignalLike<number>;
|
|
28
|
+
readonly rangeEndIndex: WritableSignalLike<number>;
|
|
28
29
|
/** The currently selected items. */
|
|
29
|
-
selectedItems: SignalLike<T[]>;
|
|
30
|
+
readonly selectedItems: SignalLike<T[]>;
|
|
30
31
|
constructor(inputs: ListSelectionInputs<T, V> & {
|
|
31
32
|
focusManager: ListFocus<T>;
|
|
32
33
|
});
|
|
@@ -90,13 +91,13 @@ declare class ListTypeahead<T extends ListTypeaheadItem> {
|
|
|
90
91
|
/** A reference to the timeout for resetting the typeahead search. */
|
|
91
92
|
timeout?: ReturnType<typeof setTimeout> | undefined;
|
|
92
93
|
/** The focus controller of the parent list. */
|
|
93
|
-
focusManager: ListFocus<T>;
|
|
94
|
+
readonly focusManager: ListFocus<T>;
|
|
94
95
|
/** Whether the user is actively typing a typeahead search query. */
|
|
95
|
-
isTyping: SignalLike<boolean>;
|
|
96
|
+
readonly isTyping: SignalLike<boolean>;
|
|
96
97
|
/** Keeps track of the characters that typeahead search is being called with. */
|
|
97
|
-
private _query;
|
|
98
|
+
private readonly _query;
|
|
98
99
|
/** The index where that the typeahead search was initiated from. */
|
|
99
|
-
private _startIndex;
|
|
100
|
+
private readonly _startIndex;
|
|
100
101
|
constructor(inputs: ListTypeaheadInputs<T> & {
|
|
101
102
|
focusManager: ListFocus<T>;
|
|
102
103
|
});
|
|
@@ -127,21 +128,21 @@ type ListInputs<T extends ListItem<V>, V> = ListFocusInputs<T> & ListNavigationI
|
|
|
127
128
|
declare class List<T extends ListItem<V>, V> {
|
|
128
129
|
readonly inputs: ListInputs<T, V>;
|
|
129
130
|
/** Controls navigation for the list. */
|
|
130
|
-
navigationBehavior: ListNavigation<T>;
|
|
131
|
+
readonly navigationBehavior: ListNavigation<T>;
|
|
131
132
|
/** Controls selection for the list. */
|
|
132
|
-
selectionBehavior: ListSelection<T, V>;
|
|
133
|
+
readonly selectionBehavior: ListSelection<T, V>;
|
|
133
134
|
/** Controls typeahead for the list. */
|
|
134
|
-
typeaheadBehavior: ListTypeahead<T>;
|
|
135
|
+
readonly typeaheadBehavior: ListTypeahead<T>;
|
|
135
136
|
/** Controls focus for the list. */
|
|
136
|
-
focusBehavior: ListFocus<T>;
|
|
137
|
+
readonly focusBehavior: ListFocus<T>;
|
|
137
138
|
/** Whether the list is disabled. */
|
|
138
|
-
disabled: SignalLike<boolean>;
|
|
139
|
+
readonly disabled: SignalLike<boolean>;
|
|
139
140
|
/** The id of the current active item. */
|
|
140
|
-
activeDescendant: SignalLike<string | undefined>;
|
|
141
|
+
readonly activeDescendant: SignalLike<string | undefined>;
|
|
141
142
|
/** The tab index of the list. */
|
|
142
|
-
tabIndex: SignalLike<0 | -1>;
|
|
143
|
+
readonly tabIndex: SignalLike<0 | -1>;
|
|
143
144
|
/** The index of the currently active item in the list. */
|
|
144
|
-
activeIndex: SignalLike<number>;
|
|
145
|
+
readonly activeIndex: SignalLike<number>;
|
|
145
146
|
/**
|
|
146
147
|
* The uncommitted index for selecting a range of options.
|
|
147
148
|
*
|
|
@@ -154,9 +155,9 @@ declare class List<T extends ListItem<V>, V> {
|
|
|
154
155
|
* In other words, "rangeStartIndex" is only set when a user commits to starting a range selection
|
|
155
156
|
* while "anchorIndex" is set whenever a user indicates they may be starting a range selection.
|
|
156
157
|
*/
|
|
157
|
-
private _anchorIndex;
|
|
158
|
+
private readonly _anchorIndex;
|
|
158
159
|
/** Whether the list should wrap. Used to disable wrapping while range selecting. */
|
|
159
|
-
private _wrap;
|
|
160
|
+
private readonly _wrap;
|
|
160
161
|
constructor(inputs: ListInputs<T, V>);
|
|
161
162
|
/** Returns the tab index for the given item. */
|
|
162
163
|
getItemTabindex(item: T): 0 | -1;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
interface WritableSignalLike<T> extends SignalLike<T> {
|
|
3
|
-
set(value: T): void;
|
|
4
|
-
update(updateFn: (value: T) => T): void;
|
|
5
|
-
asReadonly(): SignalLike<T>;
|
|
6
|
-
}
|
|
7
|
-
/** Converts a getter setter style signal to a WritableSignalLike. */
|
|
8
|
-
declare function convertGetterSetterToWritableSignalLike<T>(getter: () => T, setter: (v: T) => void): WritableSignalLike<T>;
|
|
9
|
-
declare function computed<T>(computation: () => T): SignalLike<T>;
|
|
10
|
-
declare function signal<T>(initialValue: T): WritableSignalLike<T>;
|
|
11
|
-
declare function linkedSignal<T>(sourceFn: () => T): WritableSignalLike<T>;
|
|
1
|
+
import { SignalLike, WritableSignalLike } from './_signal-like-chunk.js';
|
|
12
2
|
|
|
13
3
|
/** Represents an item in a collection, such as a listbox option, than may receive focus. */
|
|
14
4
|
interface ListFocusItem {
|
|
@@ -38,11 +28,11 @@ interface ListFocusInputs<T extends ListFocusItem> {
|
|
|
38
28
|
declare class ListFocus<T extends ListFocusItem> {
|
|
39
29
|
readonly inputs: ListFocusInputs<T>;
|
|
40
30
|
/** The last item that was active. */
|
|
41
|
-
prevActiveItem: WritableSignalLike<T | undefined>;
|
|
31
|
+
readonly prevActiveItem: WritableSignalLike<T | undefined>;
|
|
42
32
|
/** The index of the last item that was active. */
|
|
43
|
-
prevActiveIndex: SignalLike<number>;
|
|
33
|
+
readonly prevActiveIndex: SignalLike<number>;
|
|
44
34
|
/** The current active index in the list. */
|
|
45
|
-
activeIndex: SignalLike<number>;
|
|
35
|
+
readonly activeIndex: SignalLike<number>;
|
|
46
36
|
constructor(inputs: ListFocusInputs<T>);
|
|
47
37
|
/** Whether the list is in a disabled state. */
|
|
48
38
|
isListDisabled(): boolean;
|
|
@@ -117,5 +107,5 @@ declare class ListNavigation<T extends ListNavigationItem> {
|
|
|
117
107
|
private _peek;
|
|
118
108
|
}
|
|
119
109
|
|
|
120
|
-
export { ListFocus, ListNavigation
|
|
121
|
-
export type { ListFocusInputs, ListFocusItem, ListNavigationInputs, ListNavigationItem
|
|
110
|
+
export { ListFocus, ListNavigation };
|
|
111
|
+
export type { ListFocusInputs, ListFocusItem, ListNavigationInputs, ListNavigationItem };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SignalLike, WritableSignalLike } from './
|
|
1
|
+
import { SignalLike, WritableSignalLike } from './_signal-like-chunk.js';
|
|
2
2
|
import { ListInputs, List, ListItem } from './_list-chunk.js';
|
|
3
3
|
import { KeyboardEventManager } from './_keyboard-event-manager-chunk.js';
|
|
4
|
-
import {
|
|
4
|
+
import { ClickEventManager } from './_click-event-manager-chunk.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Represents the properties exposed by a listbox that need to be accessed by an option.
|
|
@@ -18,27 +18,27 @@ interface OptionInputs<V> extends Omit<ListItem<V>, 'index' | 'selectable'> {
|
|
|
18
18
|
/** Represents an option in a listbox. */
|
|
19
19
|
declare class OptionPattern<V> {
|
|
20
20
|
/** A unique identifier for the option. */
|
|
21
|
-
id: SignalLike<string>;
|
|
21
|
+
readonly id: SignalLike<string>;
|
|
22
22
|
/** The value of the option. */
|
|
23
|
-
value: SignalLike<V>;
|
|
23
|
+
readonly value: SignalLike<V>;
|
|
24
24
|
/** The position of the option in the list. */
|
|
25
|
-
index: SignalLike<number>;
|
|
25
|
+
readonly index: SignalLike<number>;
|
|
26
26
|
/** Whether the option is active. */
|
|
27
|
-
active: SignalLike<boolean>;
|
|
27
|
+
readonly active: SignalLike<boolean>;
|
|
28
28
|
/** Whether the option is selected. */
|
|
29
|
-
selected: SignalLike<boolean | undefined>;
|
|
29
|
+
readonly selected: SignalLike<boolean | undefined>;
|
|
30
30
|
/** Whether the option is selectable. */
|
|
31
|
-
selectable: () => boolean;
|
|
31
|
+
readonly selectable: () => boolean;
|
|
32
32
|
/** Whether the option is disabled. */
|
|
33
|
-
disabled: SignalLike<boolean>;
|
|
33
|
+
readonly disabled: SignalLike<boolean>;
|
|
34
34
|
/** The text used by the typeahead search. */
|
|
35
|
-
searchTerm: SignalLike<string>;
|
|
35
|
+
readonly searchTerm: SignalLike<string>;
|
|
36
36
|
/** A reference to the parent listbox. */
|
|
37
|
-
listbox: SignalLike<ListboxPattern$1<V> | undefined>;
|
|
37
|
+
readonly listbox: SignalLike<ListboxPattern$1<V> | undefined>;
|
|
38
38
|
/** The tab index of the option. */
|
|
39
|
-
tabIndex: SignalLike<0 | -1 | undefined>;
|
|
39
|
+
readonly tabIndex: SignalLike<0 | -1 | undefined>;
|
|
40
40
|
/** The html element that should receive focus. */
|
|
41
|
-
element: SignalLike<HTMLElement | undefined>;
|
|
41
|
+
readonly element: SignalLike<HTMLElement | undefined>;
|
|
42
42
|
constructor(args: OptionInputs<V>);
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -52,43 +52,46 @@ type ListboxInputs<V> = ListInputs<OptionPattern<V>, V> & {
|
|
|
52
52
|
/** Controls the state of a listbox. */
|
|
53
53
|
declare class ListboxPattern<V> {
|
|
54
54
|
readonly inputs: ListboxInputs<V>;
|
|
55
|
-
listBehavior: List<OptionPattern<V>, V>;
|
|
55
|
+
readonly listBehavior: List<OptionPattern<V>, V>;
|
|
56
|
+
/** Whether the listbox has been interacted with. */
|
|
57
|
+
readonly hasBeenInteracted: WritableSignalLike<boolean>;
|
|
56
58
|
/** Whether the list is vertically or horizontally oriented. */
|
|
57
|
-
orientation: SignalLike<'vertical' | 'horizontal'>;
|
|
59
|
+
readonly orientation: SignalLike<'vertical' | 'horizontal'>;
|
|
58
60
|
/** Whether the listbox is disabled. */
|
|
59
|
-
disabled: SignalLike<boolean>;
|
|
61
|
+
readonly disabled: SignalLike<boolean>;
|
|
60
62
|
/** Whether the listbox is readonly. */
|
|
61
|
-
readonly: SignalLike<boolean>;
|
|
63
|
+
readonly readonly: SignalLike<boolean>;
|
|
62
64
|
/** The tab index of the listbox. */
|
|
63
|
-
tabIndex: SignalLike<-1 | 0>;
|
|
65
|
+
readonly tabIndex: SignalLike<-1 | 0>;
|
|
64
66
|
/** The id of the current active item. */
|
|
65
|
-
activeDescendant: SignalLike<string | undefined>;
|
|
67
|
+
readonly activeDescendant: SignalLike<string | undefined>;
|
|
66
68
|
/** Whether multiple items in the list can be selected at once. */
|
|
67
69
|
multi: SignalLike<boolean>;
|
|
68
70
|
/** The number of items in the listbox. */
|
|
69
|
-
setsize: SignalLike<number>;
|
|
71
|
+
readonly setsize: SignalLike<number>;
|
|
70
72
|
/** Whether the listbox selection follows focus. */
|
|
71
|
-
followFocus: SignalLike<boolean>;
|
|
73
|
+
readonly followFocus: SignalLike<boolean>;
|
|
72
74
|
/** Whether the listbox should wrap. Used to disable wrapping while range selecting. */
|
|
73
|
-
wrap: WritableSignalLike<boolean>;
|
|
75
|
+
readonly wrap: WritableSignalLike<boolean>;
|
|
74
76
|
/** The key used to navigate to the previous item in the list. */
|
|
75
|
-
prevKey: SignalLike<"ArrowUp" | "ArrowRight" | "ArrowLeft">;
|
|
77
|
+
readonly prevKey: SignalLike<"ArrowUp" | "ArrowRight" | "ArrowLeft">;
|
|
76
78
|
/** The key used to navigate to the next item in the list. */
|
|
77
|
-
nextKey: SignalLike<"ArrowRight" | "ArrowLeft" | "ArrowDown">;
|
|
79
|
+
readonly nextKey: SignalLike<"ArrowRight" | "ArrowLeft" | "ArrowDown">;
|
|
78
80
|
/** Represents the space key. Does nothing when the user is actively using typeahead. */
|
|
79
|
-
dynamicSpaceKey: SignalLike<"" | " ">;
|
|
81
|
+
readonly dynamicSpaceKey: SignalLike<"" | " ">;
|
|
80
82
|
/** The regexp used to decide if a key should trigger typeahead. */
|
|
81
|
-
typeaheadRegexp: RegExp;
|
|
83
|
+
readonly typeaheadRegexp: RegExp;
|
|
82
84
|
/** The keydown event manager for the listbox. */
|
|
83
|
-
keydown: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
84
|
-
/** The
|
|
85
|
-
|
|
85
|
+
readonly keydown: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
86
|
+
/** The click event manager for the listbox. */
|
|
87
|
+
readonly clickManager: SignalLike<ClickEventManager<PointerEvent>>;
|
|
86
88
|
constructor(inputs: ListboxInputs<V>);
|
|
87
89
|
/** Returns a set of violations */
|
|
88
90
|
validate(): string[];
|
|
89
91
|
/** Handles keydown events for the listbox. */
|
|
90
92
|
onKeydown(event: KeyboardEvent): void;
|
|
91
|
-
|
|
93
|
+
onClick(event: PointerEvent): void;
|
|
94
|
+
onFocusIn(): void;
|
|
92
95
|
/**
|
|
93
96
|
* Sets the listbox to it's default initial state.
|
|
94
97
|
*
|
|
@@ -100,6 +103,10 @@ declare class ListboxPattern<V> {
|
|
|
100
103
|
* is called.
|
|
101
104
|
*/
|
|
102
105
|
setDefaultState(): void;
|
|
106
|
+
/**
|
|
107
|
+
* Sets the default active state of the listbox before receiving interaction for the first time.
|
|
108
|
+
*/
|
|
109
|
+
setDefaultStateEffect(): void;
|
|
103
110
|
protected _getItem(e: PointerEvent): OptionPattern<V> | undefined;
|
|
104
111
|
}
|
|
105
112
|
|
package/types/_menu-chunk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SignalLike, WritableSignalLike } from './
|
|
1
|
+
import { SignalLike, WritableSignalLike } from './_signal-like-chunk.js';
|
|
2
2
|
import { KeyboardEventManager } from './_keyboard-event-manager-chunk.js';
|
|
3
3
|
import { ListInputs, ListItem, List } from './_list-chunk.js';
|
|
4
4
|
|
|
@@ -48,44 +48,46 @@ interface MenuItemInputs<V> extends Omit<ListItem<V>, 'index' | 'selectable'> {
|
|
|
48
48
|
declare class MenuPattern<V> {
|
|
49
49
|
readonly inputs: MenuInputs<V>;
|
|
50
50
|
/** The unique ID of the menu. */
|
|
51
|
-
id: SignalLike<string>;
|
|
51
|
+
readonly id: SignalLike<string>;
|
|
52
52
|
/** The role of the menu. */
|
|
53
|
-
role: () => string;
|
|
53
|
+
readonly role: () => string;
|
|
54
54
|
/** Whether the menu is disabled. */
|
|
55
|
-
disabled: () => boolean;
|
|
55
|
+
readonly disabled: () => boolean;
|
|
56
56
|
/** Whether the menu is visible. */
|
|
57
|
-
visible: SignalLike<boolean>;
|
|
57
|
+
readonly visible: SignalLike<boolean>;
|
|
58
58
|
/** Controls list behavior for the menu items. */
|
|
59
|
-
listBehavior: List<MenuItemPattern<V>, V>;
|
|
59
|
+
readonly listBehavior: List<MenuItemPattern<V>, V>;
|
|
60
60
|
/** Whether the menu or any of its child elements are currently focused. */
|
|
61
|
-
isFocused: WritableSignalLike<boolean>;
|
|
62
|
-
/** Whether the menu has received
|
|
63
|
-
|
|
61
|
+
readonly isFocused: WritableSignalLike<boolean>;
|
|
62
|
+
/** Whether the menu has received interaction. */
|
|
63
|
+
readonly hasBeenInteracted: WritableSignalLike<boolean>;
|
|
64
64
|
/** Whether the menu trigger has been hovered. */
|
|
65
|
-
hasBeenHovered: WritableSignalLike<boolean>;
|
|
65
|
+
readonly hasBeenHovered: WritableSignalLike<boolean>;
|
|
66
66
|
/** Timeout used to open sub-menus on hover. */
|
|
67
67
|
_openTimeout: any;
|
|
68
68
|
/** Timeout used to close sub-menus on hover out. */
|
|
69
69
|
_closeTimeout: any;
|
|
70
70
|
/** The tab index of the menu. */
|
|
71
|
-
tabIndex: () => 0 | -1;
|
|
71
|
+
readonly tabIndex: () => 0 | -1;
|
|
72
72
|
/** Whether the menu should be focused on mouse over. */
|
|
73
|
-
shouldFocus: SignalLike<boolean>;
|
|
73
|
+
readonly shouldFocus: SignalLike<boolean>;
|
|
74
74
|
/** The key used to expand sub-menus. */
|
|
75
|
-
private _expandKey;
|
|
75
|
+
private readonly _expandKey;
|
|
76
76
|
/** The key used to collapse sub-menus. */
|
|
77
|
-
private _collapseKey;
|
|
77
|
+
private readonly _collapseKey;
|
|
78
78
|
/** Represents the space key. Does nothing when the user is actively using typeahead. */
|
|
79
|
-
dynamicSpaceKey: SignalLike<"" | " ">;
|
|
79
|
+
readonly dynamicSpaceKey: SignalLike<"" | " ">;
|
|
80
80
|
/** The regexp used to decide if a key should trigger typeahead. */
|
|
81
|
-
typeaheadRegexp: RegExp;
|
|
81
|
+
readonly typeaheadRegexp: RegExp;
|
|
82
82
|
/** The root of the menu. */
|
|
83
|
-
root: SignalLike<MenuTriggerPattern<V> | MenuBarPattern<V> | MenuPattern<V> | undefined>;
|
|
83
|
+
readonly root: SignalLike<MenuTriggerPattern<V> | MenuBarPattern<V> | MenuPattern<V> | undefined>;
|
|
84
84
|
/** Handles keyboard events for the menu. */
|
|
85
|
-
keydownManager: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
85
|
+
readonly keydownManager: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
86
86
|
constructor(inputs: MenuInputs<V>);
|
|
87
87
|
/** Sets the default state for the menu. */
|
|
88
88
|
setDefaultState(): void;
|
|
89
|
+
/** Sets the default active state of the menu before receiving interaction for the first time. */
|
|
90
|
+
setDefaultStateEffect(): void;
|
|
89
91
|
/** Handles keyboard events for the menu. */
|
|
90
92
|
onKeydown(event: KeyboardEvent): void;
|
|
91
93
|
/** Handles mouseover events for the menu. */
|
|
@@ -133,28 +135,30 @@ declare class MenuPattern<V> {
|
|
|
133
135
|
declare class MenuBarPattern<V> {
|
|
134
136
|
readonly inputs: MenuBarInputs<V>;
|
|
135
137
|
/** Controls list behavior for the menu items. */
|
|
136
|
-
listBehavior: List<MenuItemPattern<V>, V>;
|
|
138
|
+
readonly listBehavior: List<MenuItemPattern<V>, V>;
|
|
137
139
|
/** The tab index of the menu. */
|
|
138
|
-
tabIndex: () => 0 | -1;
|
|
140
|
+
readonly tabIndex: () => 0 | -1;
|
|
139
141
|
/** The key used to navigate to the next item. */
|
|
140
|
-
private _nextKey;
|
|
142
|
+
private readonly _nextKey;
|
|
141
143
|
/** The key used to navigate to the previous item. */
|
|
142
|
-
private _previousKey;
|
|
144
|
+
private readonly _previousKey;
|
|
143
145
|
/** Represents the space key. Does nothing when the user is actively using typeahead. */
|
|
144
|
-
dynamicSpaceKey: SignalLike<"" | " ">;
|
|
146
|
+
readonly dynamicSpaceKey: SignalLike<"" | " ">;
|
|
145
147
|
/** The regexp used to decide if a key should trigger typeahead. */
|
|
146
|
-
typeaheadRegexp: RegExp;
|
|
148
|
+
readonly typeaheadRegexp: RegExp;
|
|
147
149
|
/** Whether the menubar or any of its children are currently focused. */
|
|
148
|
-
isFocused: WritableSignalLike<boolean>;
|
|
149
|
-
/** Whether the menubar has been
|
|
150
|
-
|
|
150
|
+
readonly isFocused: WritableSignalLike<boolean>;
|
|
151
|
+
/** Whether the menubar has been interacted with. */
|
|
152
|
+
readonly hasBeenInteracted: WritableSignalLike<boolean>;
|
|
151
153
|
/** Whether the menubar is disabled. */
|
|
152
|
-
disabled: () => boolean;
|
|
154
|
+
readonly disabled: () => boolean;
|
|
153
155
|
/** Handles keyboard events for the menu. */
|
|
154
|
-
keydownManager: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
156
|
+
readonly keydownManager: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
155
157
|
constructor(inputs: MenuBarInputs<V>);
|
|
156
158
|
/** Sets the default state for the menubar. */
|
|
157
159
|
setDefaultState(): void;
|
|
160
|
+
/** Sets the default active state of the menubar before receiving interaction for the first time. */
|
|
161
|
+
setDefaultStateEffect(): void;
|
|
158
162
|
/** Handles keyboard events for the menu. */
|
|
159
163
|
onKeydown(event: KeyboardEvent): void;
|
|
160
164
|
/** Handles click events for the menu bar. */
|
|
@@ -179,22 +183,22 @@ declare class MenuBarPattern<V> {
|
|
|
179
183
|
/** The menu trigger ui pattern class. */
|
|
180
184
|
declare class MenuTriggerPattern<V> {
|
|
181
185
|
readonly inputs: MenuTriggerInputs<V>;
|
|
182
|
-
/** Whether the menu is expanded. */
|
|
183
|
-
expanded: WritableSignalLike<boolean>;
|
|
184
|
-
/** Whether the menu trigger has received
|
|
185
|
-
|
|
186
|
+
/** Whether the menu trigger is expanded. */
|
|
187
|
+
readonly expanded: WritableSignalLike<boolean>;
|
|
188
|
+
/** Whether the menu trigger has received interaction. */
|
|
189
|
+
readonly hasBeenInteracted: WritableSignalLike<boolean>;
|
|
186
190
|
/** The role of the menu trigger. */
|
|
187
|
-
role: () => string;
|
|
191
|
+
readonly role: () => string;
|
|
188
192
|
/** Whether the menu trigger has a popup. */
|
|
189
|
-
hasPopup: () => boolean;
|
|
193
|
+
readonly hasPopup: () => boolean;
|
|
190
194
|
/** The menu associated with the trigger. */
|
|
191
|
-
menu: SignalLike<MenuPattern<V> | undefined>;
|
|
195
|
+
readonly menu: SignalLike<MenuPattern<V> | undefined>;
|
|
192
196
|
/** The tab index of the menu trigger. */
|
|
193
|
-
tabIndex: SignalLike<-1 | 0>;
|
|
197
|
+
readonly tabIndex: SignalLike<-1 | 0>;
|
|
194
198
|
/** Whether the menu trigger is disabled. */
|
|
195
|
-
disabled: () => boolean;
|
|
199
|
+
readonly disabled: () => boolean;
|
|
196
200
|
/** Handles keyboard events for the menu trigger. */
|
|
197
|
-
keydownManager: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
201
|
+
readonly keydownManager: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
198
202
|
constructor(inputs: MenuTriggerInputs<V>);
|
|
199
203
|
/** Handles keyboard events for the menu trigger. */
|
|
200
204
|
onKeydown(event: KeyboardEvent): void;
|
|
@@ -218,37 +222,37 @@ declare class MenuTriggerPattern<V> {
|
|
|
218
222
|
declare class MenuItemPattern<V> implements ListItem<V> {
|
|
219
223
|
readonly inputs: MenuItemInputs<V>;
|
|
220
224
|
/** The value of the menu item. */
|
|
221
|
-
value: SignalLike<V>;
|
|
225
|
+
readonly value: SignalLike<V>;
|
|
222
226
|
/** The unique ID of the menu item. */
|
|
223
|
-
id: SignalLike<string>;
|
|
227
|
+
readonly id: SignalLike<string>;
|
|
224
228
|
/** Whether the menu item is disabled. */
|
|
225
|
-
disabled: () => boolean;
|
|
229
|
+
readonly disabled: () => boolean;
|
|
226
230
|
/** The search term for the menu item. */
|
|
227
|
-
searchTerm: SignalLike<string>;
|
|
231
|
+
readonly searchTerm: SignalLike<string>;
|
|
228
232
|
/** The element of the menu item. */
|
|
229
|
-
element: SignalLike<HTMLElement | undefined>;
|
|
233
|
+
readonly element: SignalLike<HTMLElement | undefined>;
|
|
230
234
|
/** Whether the menu item is active. */
|
|
231
|
-
active: SignalLike<boolean>;
|
|
232
|
-
/** Whether the menu item has received
|
|
233
|
-
|
|
235
|
+
readonly active: SignalLike<boolean>;
|
|
236
|
+
/** Whether the menu item has received interaction. */
|
|
237
|
+
readonly hasBeenInteracted: WritableSignalLike<boolean>;
|
|
234
238
|
/** The tab index of the menu item. */
|
|
235
|
-
tabIndex: SignalLike<0 | -1>;
|
|
239
|
+
readonly tabIndex: SignalLike<0 | -1>;
|
|
236
240
|
/** The position of the menu item in the menu. */
|
|
237
|
-
index: SignalLike<number>;
|
|
241
|
+
readonly index: SignalLike<number>;
|
|
238
242
|
/** Whether the menu item is expanded. */
|
|
239
|
-
expanded: SignalLike<boolean | null>;
|
|
243
|
+
readonly expanded: SignalLike<boolean | null>;
|
|
240
244
|
/** Whether the menu item is expanded. */
|
|
241
|
-
_expanded: WritableSignalLike<boolean>;
|
|
245
|
+
readonly _expanded: WritableSignalLike<boolean>;
|
|
242
246
|
/** The ID of the menu that the menu item controls. */
|
|
243
|
-
controls: WritableSignalLike<string | undefined>;
|
|
247
|
+
readonly controls: WritableSignalLike<string | undefined>;
|
|
244
248
|
/** The role of the menu item. */
|
|
245
|
-
role: () => string;
|
|
249
|
+
readonly role: () => string;
|
|
246
250
|
/** Whether the menu item has a popup. */
|
|
247
|
-
hasPopup: SignalLike<boolean>;
|
|
251
|
+
readonly hasPopup: SignalLike<boolean>;
|
|
248
252
|
/** The submenu associated with the menu item. */
|
|
249
|
-
submenu: SignalLike<MenuPattern<V> | undefined>;
|
|
253
|
+
readonly submenu: SignalLike<MenuPattern<V> | undefined>;
|
|
250
254
|
/** Whether the menu item is selectable. */
|
|
251
|
-
selectable: SignalLike<boolean>;
|
|
255
|
+
readonly selectable: SignalLike<boolean>;
|
|
252
256
|
constructor(inputs: MenuItemInputs<V>);
|
|
253
257
|
/** Opens the submenu. */
|
|
254
258
|
open(opts?: {
|
|
@@ -10,7 +10,7 @@ declare enum MouseButton {
|
|
|
10
10
|
}
|
|
11
11
|
/** An event manager that is specialized for handling pointer events. */
|
|
12
12
|
declare class PointerEventManager<T extends PointerEvent> extends EventManager<T> {
|
|
13
|
-
options: EventHandlerOptions;
|
|
13
|
+
readonly options: EventHandlerOptions;
|
|
14
14
|
/**
|
|
15
15
|
* Configures this event manager to handle events with a specific modifer and mouse button
|
|
16
16
|
* combination.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type SignalLike<T> = () => T;
|
|
2
|
+
interface WritableSignalLike<T> extends SignalLike<T> {
|
|
3
|
+
set(value: T): void;
|
|
4
|
+
update(updateFn: (value: T) => T): void;
|
|
5
|
+
asReadonly(): SignalLike<T>;
|
|
6
|
+
}
|
|
7
|
+
/** Converts a getter setter style signal to a WritableSignalLike. */
|
|
8
|
+
declare function convertGetterSetterToWritableSignalLike<T>(getter: () => T, setter: (v: T) => void): WritableSignalLike<T>;
|
|
9
|
+
declare function computed<T>(computation: () => T): SignalLike<T>;
|
|
10
|
+
declare function signal<T>(initialValue: T): WritableSignalLike<T>;
|
|
11
|
+
declare function linkedSignal<T>(sourceFn: () => T): WritableSignalLike<T>;
|
|
12
|
+
|
|
13
|
+
export { computed, convertGetterSetterToWritableSignalLike, linkedSignal, signal };
|
|
14
|
+
export type { SignalLike, WritableSignalLike };
|