@radix-ng/primitives 1.0.0-beta.2 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +76 -6
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +30 -24
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-autocomplete.mjs +1786 -0
- package/fesm2022/radix-ng-primitives-autocomplete.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-combobox.mjs +107 -47
- package/fesm2022/radix-ng-primitives-combobox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +43 -45
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-drawer.mjs +153 -63
- package/fesm2022/radix-ng-primitives-drawer.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menu.mjs +40 -20
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs +38 -54
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +35 -50
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popper.mjs +11 -5
- package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-portal.mjs +107 -17
- package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-presence.mjs +262 -79
- package/fesm2022/radix-ng-primitives-presence.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-preview-card.mjs +36 -50
- package/fesm2022/radix-ng-primitives-preview-card.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-select.mjs +106 -92
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip.mjs +37 -40
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/package.json +5 -1
- package/types/radix-ng-primitives-alert-dialog.d.ts +17 -11
- package/types/radix-ng-primitives-autocomplete.d.ts +596 -0
- package/types/radix-ng-primitives-combobox.d.ts +61 -16
- package/types/radix-ng-primitives-dialog.d.ts +32 -25
- package/types/radix-ng-primitives-drawer.d.ts +49 -22
- package/types/radix-ng-primitives-menu.d.ts +19 -10
- package/types/radix-ng-primitives-navigation-menu.d.ts +24 -26
- package/types/radix-ng-primitives-popover.d.ts +23 -23
- package/types/radix-ng-primitives-popper.d.ts +7 -1
- package/types/radix-ng-primitives-portal.d.ts +53 -8
- package/types/radix-ng-primitives-presence.d.ts +98 -17
- package/types/radix-ng-primitives-preview-card.d.ts +24 -23
- package/types/radix-ng-primitives-select.d.ts +52 -55
- package/types/radix-ng-primitives-tooltip.d.ts +26 -19
|
@@ -0,0 +1,596 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@radix-ng/primitives/combobox';
|
|
4
|
+
import { ComboboxItemHighlightedDetails, ComboboxItemRef, ComboboxHighlightReason } from '@radix-ng/primitives/combobox';
|
|
5
|
+
export { ComboboxHighlightReason as AutocompleteHighlightReason, ComboboxItemHighlightedDetails as AutocompleteItemHighlightedDetails } from '@radix-ng/primitives/combobox';
|
|
6
|
+
import * as _radix_ng_primitives_core from '@radix-ng/primitives/core';
|
|
7
|
+
import { AcceptableValue, Direction, BooleanInput, ItemValueComparator } from '@radix-ng/primitives/core';
|
|
8
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
9
|
+
import * as i1$1 from '@radix-ng/primitives/popper';
|
|
10
|
+
import * as _radix_ng_primitives_autocomplete from '@radix-ng/primitives/autocomplete';
|
|
11
|
+
import * as i2 from '@radix-ng/primitives/dismissable-layer';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Optional positioning anchor for the popup. Put it on the element the popup should align to — for
|
|
15
|
+
* example a wrapper that holds the input plus an icon/clear button. When present it takes precedence
|
|
16
|
+
* over the input. Reuses the combobox anchor behavior.
|
|
17
|
+
*
|
|
18
|
+
* @group Components
|
|
19
|
+
*/
|
|
20
|
+
declare class RdxAutocompleteAnchor {
|
|
21
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteAnchor, never>;
|
|
22
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteAnchor, "[rdxAutocompleteAnchor]", ["rdxAutocompleteAnchor"], {}, {}, never, never, true, [{ directive: typeof i1.RdxComboboxAnchor; inputs: {}; outputs: {}; }]>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Autocomplete filtering / inline-completion behavior, mirroring Base UI's `mode`:
|
|
27
|
+
* - `'list'` (default): items are filtered by the query; the input text never changes from the active item.
|
|
28
|
+
* - `'both'`: items are filtered **and** the input is inline-completed from the active item.
|
|
29
|
+
* - `'inline'`: items are static (not filtered) but the input is inline-completed from the active item.
|
|
30
|
+
* - `'none'`: items are static and the input is never changed from the active item.
|
|
31
|
+
*/
|
|
32
|
+
type AutocompleteMode = 'list' | 'both' | 'inline' | 'none';
|
|
33
|
+
/**
|
|
34
|
+
* A custom filter predicate. Receives the item's text, the query, and the item's value (the object
|
|
35
|
+
* for object items) so a filter can match across multiple fields — e.g. fuzzy/multi-key matching.
|
|
36
|
+
*/
|
|
37
|
+
type AutocompleteFilter = (itemText: string, query: string, itemValue: AcceptableValue) => boolean;
|
|
38
|
+
/** Why the input value changed, mirroring Base UI's `onValueChange` details. */
|
|
39
|
+
type AutocompleteChangeReason = 'input-change' | 'item-press' | 'input-clear' | 'none';
|
|
40
|
+
/** Payload of {@link RdxAutocompleteRoot.onValueChange}: the new value and why it changed. */
|
|
41
|
+
interface AutocompleteValueChangeDetails {
|
|
42
|
+
/** The new input value. */
|
|
43
|
+
value: string;
|
|
44
|
+
/** What caused the change (e.g. skip `'item-press'` to avoid overwriting an external value). */
|
|
45
|
+
reason: AutocompleteChangeReason;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Root of an Autocomplete — a text input with a filtered list of suggestions. Built on the combobox
|
|
50
|
+
* engine with `selectionMode: 'none'`, so its value **is** the input string: typing, selecting an
|
|
51
|
+
* item, or clearing all change a single string value. Owns input text, open state, filtering, inline
|
|
52
|
+
* completion, and highlight-model navigation, and provides them to the combobox parts. Implements
|
|
53
|
+
* `ControlValueAccessor` (the form value is the input string).
|
|
54
|
+
*
|
|
55
|
+
* @group Components
|
|
56
|
+
*/
|
|
57
|
+
declare class RdxAutocompleteRoot implements ControlValueAccessor {
|
|
58
|
+
private readonly injector;
|
|
59
|
+
/** The input text. This is the form value (controlled / uncontrolled via {@link defaultValue}). */
|
|
60
|
+
readonly value: _angular_core.ModelSignal<string>;
|
|
61
|
+
/** Initial input text when uncontrolled. */
|
|
62
|
+
readonly defaultValue: _angular_core.InputSignal<string | undefined>;
|
|
63
|
+
/** Whether the popup is open. */
|
|
64
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
65
|
+
/** Initial open state when uncontrolled. */
|
|
66
|
+
readonly defaultOpen: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
67
|
+
/** Filtering / inline-completion behavior. See {@link AutocompleteMode}. */
|
|
68
|
+
readonly mode: _angular_core.InputSignal<AutocompleteMode>;
|
|
69
|
+
/** Text direction. */
|
|
70
|
+
readonly dir: _angular_core.InputSignal<Direction>;
|
|
71
|
+
/** Whether the autocomplete is disabled. */
|
|
72
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
73
|
+
/** Whether the autocomplete is read-only. */
|
|
74
|
+
readonly readOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
75
|
+
/** Whether a value is required (for forms). */
|
|
76
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
77
|
+
/** Whether keyboard navigation wraps at the list boundaries. */
|
|
78
|
+
readonly loopFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
79
|
+
/**
|
|
80
|
+
* Auto-highlight behavior (matches Base UI):
|
|
81
|
+
* - `false` (default): never auto-highlight;
|
|
82
|
+
* - `true` (also the bare `autoHighlight` attribute): highlight the first match as the query changes;
|
|
83
|
+
* - `'always'`: keep the first navigable item highlighted whenever the popup is open.
|
|
84
|
+
*/
|
|
85
|
+
readonly autoHighlight: _angular_core.InputSignalWithTransform<boolean | "always", BooleanInput>;
|
|
86
|
+
/** Resolved auto-highlight mode. */
|
|
87
|
+
readonly autoHighlightMode: _angular_core.Signal<"input-change" | "always" | "off">;
|
|
88
|
+
/**
|
|
89
|
+
* Whether moving the pointer over an item highlights it. `true` (default) paints `data-highlighted`
|
|
90
|
+
* on hover; `false` suppresses hover-driven highlight entirely, letting CSS `:hover` stay distinct
|
|
91
|
+
* from the `data-highlighted` (keyboard) state. Clicking an item still selects it.
|
|
92
|
+
*/
|
|
93
|
+
readonly highlightItemOnHover: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
94
|
+
/**
|
|
95
|
+
* Whether a pointer-driven highlight is kept when the cursor leaves the list. `false` (default)
|
|
96
|
+
* clears the highlight on pointer-leave; `true` retains the last hovered item highlighted. Keyboard
|
|
97
|
+
* navigation and auto-highlight are unaffected.
|
|
98
|
+
*/
|
|
99
|
+
readonly keepHighlight: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
100
|
+
/** Whether clicking the input opens the popup. Defaults to `false` (Base UI default). */
|
|
101
|
+
readonly openOnInputClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
102
|
+
/** Whether the popup is modal: locks page scroll and makes outside content inert while open. */
|
|
103
|
+
readonly modal: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
104
|
+
/** Whether selecting an item requests submit of the closest form. */
|
|
105
|
+
readonly submitOnItemClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
106
|
+
/** Whether the list is laid out as a 2D grid (enables row/column arrow navigation). */
|
|
107
|
+
readonly grid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
108
|
+
/**
|
|
109
|
+
* Filter applied to items against the input query (only when {@link mode} is `'list'` / `'both'`).
|
|
110
|
+
* - `undefined` (default): locale-aware "contains" via {@link useFilter};
|
|
111
|
+
* - a function: custom matching;
|
|
112
|
+
* - `null`: built-in filtering disabled (the consumer controls which items exist).
|
|
113
|
+
*/
|
|
114
|
+
readonly filter: _angular_core.InputSignal<AutocompleteFilter | null | undefined>;
|
|
115
|
+
/** Maximum number of matching items to show. `-1` (default) means no limit. */
|
|
116
|
+
readonly limit: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
117
|
+
/**
|
|
118
|
+
* The full set of item values, used as the source of truth for filtering and navigation in
|
|
119
|
+
* {@link virtualized} mode (where only a window of `RdxAutocompleteItem` is mounted).
|
|
120
|
+
*/
|
|
121
|
+
readonly items: _angular_core.InputSignal<readonly AcceptableValue[] | undefined>;
|
|
122
|
+
/** Whether the list is externally virtualized (navigation runs over {@link items} by index). */
|
|
123
|
+
readonly virtualized: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
124
|
+
/** How item values are compared for equality (function or object key). */
|
|
125
|
+
readonly by: _angular_core.InputSignal<ItemValueComparator<AcceptableValue> | undefined>;
|
|
126
|
+
/** Converts an item value to its string label (filter text + input text on selection). */
|
|
127
|
+
readonly itemToStringValue: _angular_core.InputSignal<((value: AcceptableValue) => string) | undefined>;
|
|
128
|
+
/** Emits when the input value changes (typing, selection, or clear), with the reason. */
|
|
129
|
+
readonly onValueChange: _angular_core.OutputEmitterRef<AutocompleteValueChangeDetails>;
|
|
130
|
+
/** Emits when the popup opens or closes. */
|
|
131
|
+
readonly onOpenChange: _angular_core.OutputEmitterRef<boolean>;
|
|
132
|
+
/** Emits as the highlight moves, with the item's value, its index in {@link filteredItems}, and the reason. */
|
|
133
|
+
readonly onItemHighlighted: _angular_core.OutputEmitterRef<ComboboxItemHighlightedDetails>;
|
|
134
|
+
/** Emits after the open/close transition (including any exit animation) finishes. */
|
|
135
|
+
readonly onOpenChangeComplete: _angular_core.OutputEmitterRef<boolean>;
|
|
136
|
+
private readonly transition;
|
|
137
|
+
/** Open/close transition phase, for `data-starting-style` / `data-ending-style`. */
|
|
138
|
+
readonly transitionStatus: _angular_core.Signal<_radix_ng_primitives_core.RdxTransitionStatus>;
|
|
139
|
+
/** Registers the popup element whose animation determines transition completion. */
|
|
140
|
+
readonly registerTransitionElement: (element: HTMLElement) => () => void;
|
|
141
|
+
readonly listId: string;
|
|
142
|
+
readonly labelId: _angular_core.WritableSignal<string | undefined>;
|
|
143
|
+
readonly inputElement: _angular_core.WritableSignal<HTMLInputElement | null>;
|
|
144
|
+
/** Constant signals exposed to the combobox context (autocomplete is always single-value). */
|
|
145
|
+
readonly alwaysFalse: _angular_core.WritableSignal<boolean>;
|
|
146
|
+
readonly noneMode: _angular_core.WritableSignal<"none">;
|
|
147
|
+
private readonly cvaDisabled;
|
|
148
|
+
readonly disabledState: _angular_core.Signal<boolean>;
|
|
149
|
+
readonly requiredState: _angular_core.Signal<boolean>;
|
|
150
|
+
private readonly defaultFilter;
|
|
151
|
+
/** Whether built-in filtering applies in the current mode. */
|
|
152
|
+
private readonly filteringMode;
|
|
153
|
+
/** Whether inline completion applies in the current mode. */
|
|
154
|
+
readonly inlineMode: _angular_core.Signal<boolean>;
|
|
155
|
+
/**
|
|
156
|
+
* Whether the input text is a fresh user query rather than a committed selection's label. While
|
|
157
|
+
* `false` (just opened, or showing a committed selection), the list is unfiltered so the user can
|
|
158
|
+
* browse; it flips `true` on the first keystroke.
|
|
159
|
+
*/
|
|
160
|
+
private readonly typed;
|
|
161
|
+
/** The text the user actually typed, used as the filter query. */
|
|
162
|
+
readonly query: _angular_core.Signal<string>;
|
|
163
|
+
/** Transient inline-completion preview (the active item's label), or `null`. */
|
|
164
|
+
readonly inlinePreview: _angular_core.WritableSignal<string | null>;
|
|
165
|
+
/** What the input element displays: the inline preview if any, else the committed value. */
|
|
166
|
+
readonly displayValue: _angular_core.Signal<string>;
|
|
167
|
+
/** Suppresses inline completion for the current edit (set while a delete key is pressed). */
|
|
168
|
+
private suppressInline;
|
|
169
|
+
private readonly _items;
|
|
170
|
+
/** Registered items, sorted into DOM order. */
|
|
171
|
+
readonly orderedItems: _angular_core.Signal<ComboboxItemRef[]>;
|
|
172
|
+
/** Matching items in DOM order, capped at `limit`. The set of items the list shows. */
|
|
173
|
+
readonly visibleItems: _angular_core.Signal<ComboboxItemRef[]>;
|
|
174
|
+
private readonly visibleSet;
|
|
175
|
+
/** The filtered item values an external virtualizer should render. */
|
|
176
|
+
readonly filteredItems: _angular_core.Signal<readonly AcceptableValue[]>;
|
|
177
|
+
readonly visibleCount: _angular_core.Signal<number>;
|
|
178
|
+
readonly highlight: _radix_ng_primitives_core.ListHighlight<ComboboxItemRef>;
|
|
179
|
+
readonly highlightedItem: _angular_core.Signal<ComboboxItemRef | null>;
|
|
180
|
+
/** Highlighted index into {@link filteredItems} in virtualized mode (`-1` when cleared). */
|
|
181
|
+
readonly highlightedIndex: _angular_core.WritableSignal<number>;
|
|
182
|
+
/** Why the highlight last moved; read when emitting {@link onItemHighlighted}. */
|
|
183
|
+
private readonly highlightReason;
|
|
184
|
+
readonly activeId: _angular_core.Signal<string | undefined>;
|
|
185
|
+
/**
|
|
186
|
+
* What to highlight once the list has mounted (items register asynchronously after opening):
|
|
187
|
+
* an end edge, or `'first-match'` (the first item whose label starts with the query — used by
|
|
188
|
+
* auto-highlight so inline completion lands on a real prefix match even when the list is static).
|
|
189
|
+
*/
|
|
190
|
+
private readonly pendingHighlightEdge;
|
|
191
|
+
private onChange?;
|
|
192
|
+
private onTouched?;
|
|
193
|
+
constructor();
|
|
194
|
+
private recomputeInlinePreview;
|
|
195
|
+
setSuppressInline(value: boolean): void;
|
|
196
|
+
/** Opens the popup for browsing (resets the query to "pristine" and selects the input text). */
|
|
197
|
+
openForBrowse(): void;
|
|
198
|
+
/** Opens the popup and highlights the given edge once the list mounts. */
|
|
199
|
+
openAndHighlight(edge: 'first' | 'last'): void;
|
|
200
|
+
/** Whether the item matches the active query (ignores the `limit` cap). */
|
|
201
|
+
private matchesFilter;
|
|
202
|
+
/** Whether the item is shown in the list (matches the query and is within `limit`). */
|
|
203
|
+
isVisible(item: ComboboxItemRef): boolean;
|
|
204
|
+
/** The first visible, navigable item whose label starts with the query (for inline completion). */
|
|
205
|
+
private firstMatchItem;
|
|
206
|
+
/** The first visible, navigable item (auto-highlight fallback when no prefix match exists). */
|
|
207
|
+
private firstVisibleNavigable;
|
|
208
|
+
/** Resolves a pending edge to a virtualized index. */
|
|
209
|
+
private resolveVirtualizedEdge;
|
|
210
|
+
private keyboardActive;
|
|
211
|
+
isKeyboardActive(): boolean;
|
|
212
|
+
setKeyboardActive(value: boolean): void;
|
|
213
|
+
/** Whether the item's value/label matches the current input value (combobox context contract). */
|
|
214
|
+
isSelectedValue(value: AcceptableValue): boolean;
|
|
215
|
+
registerItem(item: ComboboxItemRef): void;
|
|
216
|
+
unregisterItem(item: ComboboxItemRef): void;
|
|
217
|
+
setOpen(open: boolean): void;
|
|
218
|
+
closePopup(revert?: boolean): void;
|
|
219
|
+
/** Updates the input text from user typing (marks it a fresh query, emits change). */
|
|
220
|
+
setQuery(value: string): void;
|
|
221
|
+
/** Selects all input text so the next keystroke replaces a committed label. */
|
|
222
|
+
selectInputText(): void;
|
|
223
|
+
labelFor(value: AcceptableValue): string;
|
|
224
|
+
/** Label text for a raw item value (virtualized mode, no DOM element to read from). */
|
|
225
|
+
private textFor;
|
|
226
|
+
/** Deterministic id for the item at `index` in virtualized mode (matches `aria-activedescendant`). */
|
|
227
|
+
itemId(index: number): string;
|
|
228
|
+
handleSelect(item: ComboboxItemRef): void;
|
|
229
|
+
/** Selects the filtered item at `index` (virtualized mode). */
|
|
230
|
+
selectIndex(index: number): void;
|
|
231
|
+
/** Commits a selection: the input value becomes the item's label, the popup closes. */
|
|
232
|
+
private commitSelection;
|
|
233
|
+
private maybeSubmit;
|
|
234
|
+
selectHighlighted(): void;
|
|
235
|
+
moveDown(): void;
|
|
236
|
+
moveUp(): void;
|
|
237
|
+
/** Grid: move to the next cell in DOM order. Non-grid: no-op (caret movement). */
|
|
238
|
+
moveRight(): void;
|
|
239
|
+
moveLeft(): void;
|
|
240
|
+
highlightFirst(reason?: ComboboxHighlightReason): void;
|
|
241
|
+
highlightLast(reason?: ComboboxHighlightReason): void;
|
|
242
|
+
highlightIndex(index: number, reason: ComboboxHighlightReason): void;
|
|
243
|
+
setHighlight(item: ComboboxItemRef, reason: ComboboxHighlightReason): void;
|
|
244
|
+
clearHighlightState(): void;
|
|
245
|
+
private stepIndex;
|
|
246
|
+
/** Grid vertical move: keep the column index, jump to the adjacent row. */
|
|
247
|
+
private gridVertical;
|
|
248
|
+
/** Visible items grouped into rows by their nearest `[rdxAutocompleteRow]` ancestor (DOM order). */
|
|
249
|
+
private gridRows;
|
|
250
|
+
clearValue(): void;
|
|
251
|
+
/** The trigger element, used as a focus fallback when the input lives inside the popup. */
|
|
252
|
+
triggerElement: HTMLElement | null;
|
|
253
|
+
focusInput(): void;
|
|
254
|
+
restoreFocusAfterSelect(): void;
|
|
255
|
+
markAsTouched(): void;
|
|
256
|
+
private commitValue;
|
|
257
|
+
writeValue(value: string | null): void;
|
|
258
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
259
|
+
registerOnTouched(fn: () => void): void;
|
|
260
|
+
setDisabledState(isDisabled: boolean): void;
|
|
261
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteRoot, never>;
|
|
262
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteRoot, "[rdxAutocompleteRoot]", ["rdxAutocompleteRoot"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "loopFocus": { "alias": "loopFocus"; "required": false; "isSignal": true; }; "autoHighlight": { "alias": "autoHighlight"; "required": false; "isSignal": true; }; "highlightItemOnHover": { "alias": "highlightItemOnHover"; "required": false; "isSignal": true; }; "keepHighlight": { "alias": "keepHighlight"; "required": false; "isSignal": true; }; "openOnInputClick": { "alias": "openOnInputClick"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "submitOnItemClick": { "alias": "submitOnItemClick"; "required": false; "isSignal": true; }; "grid": { "alias": "grid"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "limit": { "alias": "limit"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "virtualized": { "alias": "virtualized"; "required": false; "isSignal": true; }; "by": { "alias": "by"; "required": false; "isSignal": true; }; "itemToStringValue": { "alias": "itemToStringValue"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "open": "openChange"; "onValueChange": "onValueChange"; "onOpenChange": "onOpenChange"; "onItemHighlighted": "onItemHighlighted"; "onOpenChangeComplete": "onOpenChangeComplete"; }, never, never, true, [{ directive: typeof i1$1.RdxPopper; inputs: {}; outputs: {}; }]>;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* An accessible label for the autocomplete. Registers its id so the input (and trigger) reference it
|
|
267
|
+
* via `aria-labelledby`. Reuses the combobox label behavior.
|
|
268
|
+
*
|
|
269
|
+
* @group Components
|
|
270
|
+
*/
|
|
271
|
+
declare class RdxAutocompleteLabel {
|
|
272
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteLabel, never>;
|
|
273
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteLabel, "[rdxAutocompleteLabel]", ["rdxAutocompleteLabel"], {}, {}, never, never, true, [{ directive: typeof i1.RdxComboboxLabel; inputs: {}; outputs: {}; }]>;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Optional wrapper around the input and its adornments (icon, clear, trigger). Mirrors the input's
|
|
278
|
+
* state via `data-*` so the whole group can be styled together (focus ring, disabled, etc.).
|
|
279
|
+
*
|
|
280
|
+
* @group Components
|
|
281
|
+
*/
|
|
282
|
+
declare class RdxAutocompleteInputGroup {
|
|
283
|
+
protected readonly root: RdxAutocompleteRoot;
|
|
284
|
+
protected readonly dataAttr: (value: boolean) => "" | undefined;
|
|
285
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteInputGroup, never>;
|
|
286
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteInputGroup, "[rdxAutocompleteInputGroup]", ["rdxAutocompleteInputGroup"], {}, {}, never, never, true, never>;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* The autocomplete text input. Holds DOM focus at all times; the highlighted option is referenced via
|
|
291
|
+
* `aria-activedescendant`. In `both` / `inline` modes it shows the active item's inline completion
|
|
292
|
+
* with the completed suffix selected. Integrates with Field for labeling and validation state.
|
|
293
|
+
*
|
|
294
|
+
* @group Components
|
|
295
|
+
*/
|
|
296
|
+
declare class RdxAutocompleteInput {
|
|
297
|
+
protected readonly root: RdxAutocompleteRoot;
|
|
298
|
+
private readonly element;
|
|
299
|
+
private readonly fieldRootContext;
|
|
300
|
+
/** The input id; Field labels and descriptions reference it for accessible relationships. */
|
|
301
|
+
readonly id: _angular_core.InputSignal<string>;
|
|
302
|
+
/** Marks the input as invalid independently of any Field state. */
|
|
303
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
304
|
+
protected readonly ariaAutocomplete: _angular_core.Signal<_radix_ng_primitives_autocomplete.AutocompleteMode>;
|
|
305
|
+
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
306
|
+
protected readonly disabledState: _angular_core.Signal<boolean>;
|
|
307
|
+
protected readonly requiredState: _angular_core.Signal<boolean>;
|
|
308
|
+
protected readonly filledState: _angular_core.Signal<boolean>;
|
|
309
|
+
protected readonly focusedState: _angular_core.Signal<boolean>;
|
|
310
|
+
protected readonly describedBy: _angular_core.Signal<string | undefined>;
|
|
311
|
+
constructor();
|
|
312
|
+
/** Whether an IME composition is in progress (CJK). While composing, don't filter or select. */
|
|
313
|
+
protected composing: boolean;
|
|
314
|
+
onInput(event: Event): void;
|
|
315
|
+
onCompositionEnd(event: CompositionEvent): void;
|
|
316
|
+
private commitInput;
|
|
317
|
+
onClick(): void;
|
|
318
|
+
onFocus(): void;
|
|
319
|
+
onBlur(): void;
|
|
320
|
+
onKeydown(event: KeyboardEvent): void;
|
|
321
|
+
protected readonly dataAttr: (value: boolean) => "" | undefined;
|
|
322
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteInput, never>;
|
|
323
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteInput, "input[rdxAutocompleteInput]", ["rdxAutocompleteInput"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$1.RdxPopperAnchor; inputs: {}; outputs: {}; }, { directive: typeof i2.RdxDismissableLayerBranch; inputs: {}; outputs: {}; }]>;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Renders the current input value as text. Useful for a read-only display of the committed value.
|
|
328
|
+
* Read `slotText()` in the template. Exposes `data-placeholder` while the value is empty.
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* <span #value="rdxAutocompleteValue" rdxAutocompleteValue placeholder="Empty">{{ value.slotText() }}</span>
|
|
332
|
+
*
|
|
333
|
+
* @group Components
|
|
334
|
+
*/
|
|
335
|
+
declare class RdxAutocompleteValue {
|
|
336
|
+
private readonly root;
|
|
337
|
+
/** Text shown when the value is empty. */
|
|
338
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
339
|
+
readonly isEmpty: _angular_core.Signal<boolean>;
|
|
340
|
+
/** The current input value, or the `placeholder` when empty. */
|
|
341
|
+
readonly slotText: _angular_core.Signal<string>;
|
|
342
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteValue, never>;
|
|
343
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteValue, "[rdxAutocompleteValue]", ["rdxAutocompleteValue"], { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Toggles the autocomplete popup. Carries `tabindex="-1"` so it never steals focus from the input.
|
|
348
|
+
* Reuses the combobox trigger behavior.
|
|
349
|
+
*
|
|
350
|
+
* @group Components
|
|
351
|
+
*/
|
|
352
|
+
declare class RdxAutocompleteTrigger {
|
|
353
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteTrigger, never>;
|
|
354
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteTrigger, "button[rdxAutocompleteTrigger]", ["rdxAutocompleteTrigger"], {}, {}, never, never, true, [{ directive: typeof i1.RdxComboboxTrigger; inputs: {}; outputs: {}; }]>;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Decorative icon inside the trigger. Hidden from assistive technology. Reuses the combobox icon.
|
|
359
|
+
*
|
|
360
|
+
* @group Components
|
|
361
|
+
*/
|
|
362
|
+
declare class RdxAutocompleteIcon {
|
|
363
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteIcon, never>;
|
|
364
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteIcon, "[rdxAutocompleteIcon]", ["rdxAutocompleteIcon"], {}, {}, never, never, true, [{ directive: typeof i1.RdxComboboxIcon; inputs: {}; outputs: {}; }]>;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Clears the input value. Hidden when there is nothing to clear.
|
|
369
|
+
*
|
|
370
|
+
* @group Components
|
|
371
|
+
*/
|
|
372
|
+
declare class RdxAutocompleteClear {
|
|
373
|
+
protected readonly root: RdxAutocompleteRoot;
|
|
374
|
+
protected readonly isEmpty: _angular_core.Signal<boolean>;
|
|
375
|
+
onClick(): void;
|
|
376
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteClear, never>;
|
|
377
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteClear, "button[rdxAutocompleteClear]", ["rdxAutocompleteClear"], {}, {}, never, never, true, [{ directive: typeof i2.RdxDismissableLayerBranch; inputs: {}; outputs: {}; }]>;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Structural directive that teleports the autocomplete popup into a container (default
|
|
382
|
+
* `document.body`) while the autocomplete is open, keeping it mounted until any CSS exit `@keyframes`
|
|
383
|
+
* finishes. Composes the structural {@link RdxComboboxPortal} (which reads the open state from the
|
|
384
|
+
* combobox root context provided by `RdxAutocompleteRoot`).
|
|
385
|
+
*
|
|
386
|
+
* Apply it with the `*` microsyntax on the positioner —
|
|
387
|
+
* `<div *rdxAutocompletePortal rdxAutocompletePositioner>` — or as an explicit
|
|
388
|
+
* `<ng-template rdxAutocompletePortal>`. For a custom container use the explicit form with `[container]`.
|
|
389
|
+
*
|
|
390
|
+
* @group Components
|
|
391
|
+
*/
|
|
392
|
+
declare class RdxAutocompletePortal {
|
|
393
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompletePortal, never>;
|
|
394
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompletePortal, "ng-template[rdxAutocompletePortal]", ["rdxAutocompletePortal"], {}, {}, never, never, true, [{ directive: typeof i1.RdxComboboxPortal; inputs: { "container": "container"; }; outputs: {}; }]>;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Dev-mode guard: `rdxAutocompletePortal` is now structural, so the old `<div rdxAutocompletePortal>`
|
|
398
|
+
* markup would silently stop portaling — fail loudly instead.
|
|
399
|
+
*
|
|
400
|
+
* @group Components
|
|
401
|
+
*/
|
|
402
|
+
declare class RdxAutocompletePortalMisuseGuard {
|
|
403
|
+
constructor();
|
|
404
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompletePortalMisuseGuard, never>;
|
|
405
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompletePortalMisuseGuard, "[rdxAutocompletePortal]:not(ng-template)", never, {}, {}, never, never, true, never>;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* An overlay rendered beneath the popup in `modal` mode. Exposes `data-open` / `data-closed` for
|
|
410
|
+
* animation. Reuses the combobox backdrop.
|
|
411
|
+
*
|
|
412
|
+
* @group Components
|
|
413
|
+
*/
|
|
414
|
+
declare class RdxAutocompleteBackdrop {
|
|
415
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteBackdrop, never>;
|
|
416
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteBackdrop, "[rdxAutocompleteBackdrop]", ["rdxAutocompleteBackdrop"], {}, {}, never, never, true, [{ directive: typeof i1.RdxComboboxBackdrop; inputs: {}; outputs: {}; }]>;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Positions the popup relative to the input anchor using the popper engine. Composes the popper
|
|
421
|
+
* content wrapper directly (the same building block the combobox positioner uses) and re-exposes its
|
|
422
|
+
* positioning inputs.
|
|
423
|
+
*
|
|
424
|
+
* @group Components
|
|
425
|
+
*/
|
|
426
|
+
declare class RdxAutocompletePositioner {
|
|
427
|
+
readonly side: _angular_core.InputSignal<"top" | "right" | "bottom" | "left">;
|
|
428
|
+
readonly sideOffset: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
429
|
+
readonly align: _angular_core.InputSignal<"center" | "end" | "start">;
|
|
430
|
+
readonly alignOffset: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
431
|
+
readonly arrowPadding: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
432
|
+
readonly avoidCollisions: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
433
|
+
readonly collisionBoundary: _angular_core.InputSignal<ElementRef<HTMLElement> | ElementRef<HTMLElement>[] | undefined>;
|
|
434
|
+
readonly collisionPadding: _angular_core.InputSignal<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
435
|
+
readonly sticky: _angular_core.InputSignal<"always" | "partial">;
|
|
436
|
+
readonly hideWhenDetached: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
437
|
+
readonly updatePositionStrategy: _angular_core.InputSignal<"always" | "optimized">;
|
|
438
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompletePositioner, never>;
|
|
439
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompletePositioner, "[rdxAutocompletePositioner]", ["rdxAutocompletePositioner"], { "side": { "alias": "side"; "required": false; "isSignal": true; }; "sideOffset": { "alias": "sideOffset"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "alignOffset": { "alias": "alignOffset"; "required": false; "isSignal": true; }; "arrowPadding": { "alias": "arrowPadding"; "required": false; "isSignal": true; }; "avoidCollisions": { "alias": "avoidCollisions"; "required": false; "isSignal": true; }; "collisionBoundary": { "alias": "collisionBoundary"; "required": false; "isSignal": true; }; "collisionPadding": { "alias": "collisionPadding"; "required": false; "isSignal": true; }; "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; "hideWhenDetached": { "alias": "hideWhenDetached"; "required": false; "isSignal": true; }; "updatePositionStrategy": { "alias": "updatePositionStrategy"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$1.RdxPopperContentWrapper; inputs: { "side": "side"; "sideOffset": "sideOffset"; "align": "align"; "alignOffset": "alignOffset"; "arrowPadding": "arrowPadding"; "avoidCollisions": "avoidCollisions"; "collisionBoundary": "collisionBoundary"; "collisionPadding": "collisionPadding"; "sticky": "sticky"; "hideWhenDetached": "hideWhenDetached"; "updatePositionStrategy": "updatePositionStrategy"; }; outputs: {}; }]>;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* The popup surface. Composes the popper content (for `data-side` / `data-align`) and a dismissable
|
|
444
|
+
* layer for outside-dismiss. It does **not** trap focus — focus stays in the input throughout. When
|
|
445
|
+
* the input lives **inside** the popup (the "input in popup" / emoji-picker pattern), it moves focus
|
|
446
|
+
* to the input once the popup is positioned.
|
|
447
|
+
*
|
|
448
|
+
* @group Components
|
|
449
|
+
*/
|
|
450
|
+
declare class RdxAutocompletePopup {
|
|
451
|
+
protected readonly root: RdxAutocompleteRoot;
|
|
452
|
+
private readonly dismissableLayer;
|
|
453
|
+
private readonly popper;
|
|
454
|
+
private readonly element;
|
|
455
|
+
constructor();
|
|
456
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompletePopup, never>;
|
|
457
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompletePopup, "[rdxAutocompletePopup]", ["rdxAutocompletePopup"], {}, {}, never, never, true, [{ directive: typeof i1$1.RdxPopperContent; inputs: {}; outputs: {}; }, { directive: typeof i2.RdxDismissableLayer; inputs: {}; outputs: {}; }]>;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* An optional arrow that points from the popup to the anchor. Composes the popper arrow directly
|
|
462
|
+
* (the same building block the combobox arrow uses).
|
|
463
|
+
*
|
|
464
|
+
* @group Components
|
|
465
|
+
*/
|
|
466
|
+
declare class RdxAutocompleteArrow {
|
|
467
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteArrow, never>;
|
|
468
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteArrow, "[rdxAutocompleteArrow]", ["rdxAutocompleteArrow"], {}, {}, never, never, true, [{ directive: typeof i1$1.RdxPopperArrow; inputs: { "width": "width"; "height": "height"; }; outputs: {}; }]>;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* The listbox (or grid) container for suggestions. Carries the id referenced by the input's
|
|
473
|
+
* `aria-controls`, and switches its role to `grid` when the root has `grid` enabled.
|
|
474
|
+
*
|
|
475
|
+
* @group Components
|
|
476
|
+
*/
|
|
477
|
+
declare class RdxAutocompleteList {
|
|
478
|
+
protected readonly root: RdxAutocompleteRoot;
|
|
479
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteList, never>;
|
|
480
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteList, "[rdxAutocompleteList]", ["rdxAutocompleteList"], {}, {}, never, never, true, never>;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* A row in a grid-layout autocomplete list. Groups the items in one row so the root can navigate by
|
|
485
|
+
* row (ArrowUp / ArrowDown) and within a row (ArrowLeft / ArrowRight). Only meaningful when the root
|
|
486
|
+
* has `grid` enabled; the root resolves an item's row from its nearest `[rdxAutocompleteRow]` ancestor.
|
|
487
|
+
*
|
|
488
|
+
* @group Components
|
|
489
|
+
*/
|
|
490
|
+
declare class RdxAutocompleteRow {
|
|
491
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteRow, never>;
|
|
492
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteRow, "[rdxAutocompleteRow]", ["rdxAutocompleteRow"], {}, {}, never, never, true, never>;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* A selectable suggestion. Registers itself with the root for filtering and navigation. Highlight is
|
|
497
|
+
* virtual (`data-highlighted` + `aria-activedescendant` on the input) — items never take DOM focus.
|
|
498
|
+
* Selecting an item writes its text into the input. Unlike the combobox item, the `value` is optional;
|
|
499
|
+
* when omitted, selection falls back to the option's text content (autocomplete's value is the input string).
|
|
500
|
+
*
|
|
501
|
+
* @group Components
|
|
502
|
+
*/
|
|
503
|
+
declare class RdxAutocompleteItem implements ComboboxItemRef {
|
|
504
|
+
private readonly rootContext;
|
|
505
|
+
readonly element: HTMLElement;
|
|
506
|
+
readonly id: string;
|
|
507
|
+
/** The option's value. When omitted, selecting the item writes its text content into the input. */
|
|
508
|
+
readonly value: _angular_core.InputSignal<AcceptableValue>;
|
|
509
|
+
/** Explicit text matched against the query and written to the input. Defaults to text content. */
|
|
510
|
+
readonly textValueInput: _angular_core.InputSignal<string>;
|
|
511
|
+
/** Whether the option is disabled. */
|
|
512
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
513
|
+
/** The option's index in the list. Required in virtualized mode. */
|
|
514
|
+
readonly index: _angular_core.InputSignal<number | undefined>;
|
|
515
|
+
protected readonly virtualized: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
516
|
+
private readonly autoTextValue;
|
|
517
|
+
readonly textValue: _angular_core.Signal<string>;
|
|
518
|
+
protected readonly elementId: _angular_core.Signal<string>;
|
|
519
|
+
protected readonly ariaSetSize: _angular_core.Signal<number | undefined>;
|
|
520
|
+
protected readonly ariaPosInSet: _angular_core.Signal<number | undefined>;
|
|
521
|
+
readonly isVisible: _angular_core.Signal<boolean>;
|
|
522
|
+
readonly isSelected: _angular_core.Signal<boolean>;
|
|
523
|
+
readonly isHighlighted: _angular_core.Signal<boolean>;
|
|
524
|
+
private readonly group;
|
|
525
|
+
constructor();
|
|
526
|
+
onPointerDown(event: MouseEvent): void;
|
|
527
|
+
onPointerUp(): void;
|
|
528
|
+
onPointerMove(): void;
|
|
529
|
+
onPointerLeave(event: PointerEvent): void;
|
|
530
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteItem, never>;
|
|
531
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteItem, "[rdxAutocompleteItem]", ["rdxAutocompleteItem"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "textValueInput": { "alias": "textValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Renders only when its item is selected (e.g. a checkmark). Reuses the combobox item indicator,
|
|
536
|
+
* which reads the item context provided by {@link RdxAutocompleteItem}.
|
|
537
|
+
*
|
|
538
|
+
* @group Components
|
|
539
|
+
*/
|
|
540
|
+
declare class RdxAutocompleteItemIndicator {
|
|
541
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteItemIndicator, never>;
|
|
542
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteItemIndicator, "[rdxAutocompleteItemIndicator]", ["rdxAutocompleteItemIndicator"], {}, {}, never, never, true, [{ directive: typeof i1.RdxComboboxItemIndicator; inputs: {}; outputs: {}; }]>;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Groups related options under a shared label. Hides itself when all of its items are filtered out.
|
|
547
|
+
* Reuses the combobox group (and exposes the combobox group context for the label + items).
|
|
548
|
+
*
|
|
549
|
+
* @group Components
|
|
550
|
+
*/
|
|
551
|
+
declare class RdxAutocompleteGroup {
|
|
552
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteGroup, never>;
|
|
553
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteGroup, "[rdxAutocompleteGroup]", ["rdxAutocompleteGroup"], {}, {}, never, never, true, [{ directive: typeof i1.RdxComboboxGroup; inputs: {}; outputs: {}; }]>;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Accessible label for a {@link RdxAutocompleteGroup}. Wires itself up via `aria-labelledby`. Reuses
|
|
558
|
+
* the combobox group label.
|
|
559
|
+
*
|
|
560
|
+
* @group Components
|
|
561
|
+
*/
|
|
562
|
+
declare class RdxAutocompleteGroupLabel {
|
|
563
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteGroupLabel, never>;
|
|
564
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteGroupLabel, "[rdxAutocompleteGroupLabel]", ["rdxAutocompleteGroupLabel"], {}, {}, never, never, true, [{ directive: typeof i1.RdxComboboxGroupLabel; inputs: {}; outputs: {}; }]>;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Shown only when no items match the current query. Reuses the combobox empty part.
|
|
569
|
+
*
|
|
570
|
+
* @group Components
|
|
571
|
+
*/
|
|
572
|
+
declare class RdxAutocompleteEmpty {
|
|
573
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteEmpty, never>;
|
|
574
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteEmpty, "[rdxAutocompleteEmpty]", ["rdxAutocompleteEmpty"], {}, {}, never, never, true, [{ directive: typeof i1.RdxComboboxEmpty; inputs: {}; outputs: {}; }]>;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* A polite live region for async status (loading, result counts) announced without moving focus.
|
|
579
|
+
* Reuses the combobox status region.
|
|
580
|
+
*
|
|
581
|
+
* @group Components
|
|
582
|
+
*/
|
|
583
|
+
declare class RdxAutocompleteStatus {
|
|
584
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteStatus, never>;
|
|
585
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxAutocompleteStatus, "[rdxAutocompleteStatus]", ["rdxAutocompleteStatus"], {}, {}, never, never, true, [{ directive: typeof i1.RdxComboboxStatus; inputs: {}; outputs: {}; }]>;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
declare const _importsAutocomplete: (typeof RdxAutocompleteAnchor)[];
|
|
589
|
+
declare class RdxAutocompleteModule {
|
|
590
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxAutocompleteModule, never>;
|
|
591
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<RdxAutocompleteModule, never, [typeof RdxAutocompleteRoot, typeof RdxAutocompleteAnchor, typeof RdxAutocompleteLabel, typeof RdxAutocompleteInputGroup, typeof RdxAutocompleteInput, typeof RdxAutocompleteValue, typeof RdxAutocompleteTrigger, typeof RdxAutocompleteIcon, typeof RdxAutocompleteClear, typeof RdxAutocompletePortal, typeof RdxAutocompletePortalMisuseGuard, typeof RdxAutocompleteBackdrop, typeof RdxAutocompletePositioner, typeof RdxAutocompletePopup, typeof RdxAutocompleteArrow, typeof RdxAutocompleteList, typeof RdxAutocompleteRow, typeof RdxAutocompleteItem, typeof RdxAutocompleteItemIndicator, typeof RdxAutocompleteGroup, typeof RdxAutocompleteGroupLabel, typeof RdxAutocompleteEmpty, typeof RdxAutocompleteStatus], [typeof RdxAutocompleteRoot, typeof RdxAutocompleteAnchor, typeof RdxAutocompleteLabel, typeof RdxAutocompleteInputGroup, typeof RdxAutocompleteInput, typeof RdxAutocompleteValue, typeof RdxAutocompleteTrigger, typeof RdxAutocompleteIcon, typeof RdxAutocompleteClear, typeof RdxAutocompletePortal, typeof RdxAutocompletePortalMisuseGuard, typeof RdxAutocompleteBackdrop, typeof RdxAutocompletePositioner, typeof RdxAutocompletePopup, typeof RdxAutocompleteArrow, typeof RdxAutocompleteList, typeof RdxAutocompleteRow, typeof RdxAutocompleteItem, typeof RdxAutocompleteItemIndicator, typeof RdxAutocompleteGroup, typeof RdxAutocompleteGroupLabel, typeof RdxAutocompleteEmpty, typeof RdxAutocompleteStatus]>;
|
|
592
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<RdxAutocompleteModule>;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
export { RdxAutocompleteAnchor, RdxAutocompleteArrow, RdxAutocompleteBackdrop, RdxAutocompleteClear, RdxAutocompleteEmpty, RdxAutocompleteGroup, RdxAutocompleteGroupLabel, RdxAutocompleteIcon, RdxAutocompleteInput, RdxAutocompleteInputGroup, RdxAutocompleteItem, RdxAutocompleteItemIndicator, RdxAutocompleteLabel, RdxAutocompleteList, RdxAutocompleteModule, RdxAutocompletePopup, RdxAutocompletePortal, RdxAutocompletePortalMisuseGuard, RdxAutocompletePositioner, RdxAutocompleteRoot, RdxAutocompleteRow, RdxAutocompleteStatus, RdxAutocompleteTrigger, RdxAutocompleteValue, _importsAutocomplete };
|
|
596
|
+
export type { AutocompleteChangeReason, AutocompleteFilter, AutocompleteMode, AutocompleteValueChangeDetails };
|