@cngx/common 0.1.0-rc.7 → 0.1.0-rc.9
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/card/README.md +2 -1
- package/command/README.md +29 -0
- package/data/README.md +15 -3
- package/dialog/README.md +23 -1
- package/fesm2022/cngx-common-a11y.mjs +517 -184
- package/fesm2022/cngx-common-a11y.mjs.map +1 -1
- package/fesm2022/cngx-common-audio.mjs +62 -17
- package/fesm2022/cngx-common-audio.mjs.map +1 -1
- package/fesm2022/cngx-common-card.mjs +301 -46
- package/fesm2022/cngx-common-card.mjs.map +1 -1
- package/fesm2022/cngx-common-chart.mjs +1221 -479
- package/fesm2022/cngx-common-chart.mjs.map +1 -1
- package/fesm2022/cngx-common-command.mjs +97 -16
- package/fesm2022/cngx-common-command.mjs.map +1 -1
- package/fesm2022/cngx-common-data.mjs +1496 -499
- package/fesm2022/cngx-common-data.mjs.map +1 -1
- package/fesm2022/cngx-common-dialog.mjs +236 -61
- package/fesm2022/cngx-common-dialog.mjs.map +1 -1
- package/fesm2022/cngx-common-display.mjs +364 -93
- package/fesm2022/cngx-common-display.mjs.map +1 -1
- package/fesm2022/cngx-common-interactive.mjs +2040 -1046
- package/fesm2022/cngx-common-interactive.mjs.map +1 -1
- package/fesm2022/cngx-common-layout.mjs +955 -125
- package/fesm2022/cngx-common-layout.mjs.map +1 -1
- package/fesm2022/cngx-common-popover.mjs +1293 -89
- package/fesm2022/cngx-common-popover.mjs.map +1 -1
- package/fesm2022/cngx-common-stepper.mjs +997 -453
- package/fesm2022/cngx-common-stepper.mjs.map +1 -1
- package/fesm2022/cngx-common-tabs.mjs +1794 -1265
- package/fesm2022/cngx-common-tabs.mjs.map +1 -1
- package/fesm2022/cngx-common-timeline.mjs +151 -61
- package/fesm2022/cngx-common-timeline.mjs.map +1 -1
- package/fesm2022/cngx-common.mjs +1 -1
- package/interactive/README.md +15 -4
- package/layout/README.md +37 -1
- package/package.json +20 -7
- package/popover/README.md +58 -2
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +91 -0
- package/schematics/package.json +3 -0
- package/stepper/README.md +11 -8
- package/theming/components/cngx-accordion.css +1 -1
- package/theming/components/cngx-backdrop.css +12 -0
- package/theming/components/cngx-button-toggle.css +29 -3
- package/theming/components/cngx-data-grid.css +168 -1
- package/theming/components/cngx-dialog.css +13 -0
- package/theming/components/cngx-listbox.css +21 -12
- package/theming/components/cngx-menu.css +56 -16
- package/theming/components/cngx-popover-sheet.css +402 -0
- package/theming/components/cngx-popover.css +28 -0
- package/theming/components/cngx-recycler-placeholder.css +196 -0
- package/theming/components/cngx-ripple.css +1 -1
- package/theming/components/cngx-slider.css +32 -1
- package/theming/components/cngx-tooltip.css +12 -0
- package/timeline/README.md +155 -0
- package/types/cngx-common-a11y.d.ts +205 -28
- package/types/cngx-common-card.d.ts +201 -17
- package/types/cngx-common-chart.d.ts +345 -48
- package/types/cngx-common-command.d.ts +50 -10
- package/types/cngx-common-data.d.ts +743 -92
- package/types/cngx-common-dialog.d.ts +161 -10
- package/types/cngx-common-display.d.ts +356 -142
- package/types/cngx-common-interactive.d.ts +910 -226
- package/types/cngx-common-layout.d.ts +603 -32
- package/types/cngx-common-popover.d.ts +612 -49
- package/types/cngx-common-stepper.d.ts +526 -237
- package/types/cngx-common-tabs.d.ts +358 -75
- package/types/cngx-common-timeline.d.ts +108 -22
|
@@ -3,6 +3,7 @@ import { Signal, TemplateRef, InjectionToken, Provider, ModelSignal, WritableSig
|
|
|
3
3
|
import { AsyncStatus, CngxAsyncState, CngxStateful } from '@cngx/core/utils';
|
|
4
4
|
export { AsyncStatus, CngxAsyncState } from '@cngx/core/utils';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
|
+
import { CngxMessage } from '@cngx/core/i18n';
|
|
6
7
|
import * as _cngx_common_interactive from '@cngx/common/interactive';
|
|
7
8
|
import { CngxFormFieldControl } from '@cngx/core/tokens';
|
|
8
9
|
import * as i1 from '@cngx/common/a11y';
|
|
@@ -20,9 +21,17 @@ type AsyncAction = () => Promise<unknown> | Observable<unknown>;
|
|
|
20
21
|
* Async action handler with loading state, auto-disable, and success/error feedback.
|
|
21
22
|
*
|
|
22
23
|
* Place on any clickable element (button, link, div). Executes the provided
|
|
23
|
-
* async action on click, tracks the full lifecycle as a state machine,
|
|
24
|
-
*
|
|
25
|
-
*
|
|
24
|
+
* async action on click, tracks the full lifecycle as a state machine, and
|
|
25
|
+
* guards against double-clicks. While pending it communicates busy via
|
|
26
|
+
* `aria-busy` + `aria-disabled` and swallows clicks WITHOUT the hard
|
|
27
|
+
* `disabled` attribute, so keyboard focus stays on the control instead of
|
|
28
|
+
* dropping to `<body>` mid-action. Note: the guard prevents the ACTION from
|
|
29
|
+
* re-running and calls `preventDefault()`, but a consumer `(click)` handler
|
|
30
|
+
* on the same element still fires while pending - gate it on `pending()`
|
|
31
|
+
* when it must not. Success and failure are announced through
|
|
32
|
+
* an auto-rendered polite live region (sibling of the host - inside a
|
|
33
|
+
* `<button>` the text would pollute the accessible name); opt out with
|
|
34
|
+
* `[autoAnnounce]="false"` and bind `announcement` to your own region.
|
|
26
35
|
*
|
|
27
36
|
* ### Basic usage
|
|
28
37
|
* ```html
|
|
@@ -56,7 +65,7 @@ type AsyncAction = () => Promise<unknown> | Observable<unknown>;
|
|
|
56
65
|
* @since 0.1.0
|
|
57
66
|
* @relatedTo CngxPending, CngxSucceeded, CngxFailed, CngxActionButton
|
|
58
67
|
* <example-url>http://localhost:4200/#/common/interactive/retry/optimistic-instant-like-toggle</example-url>
|
|
59
|
-
* <example-url>http://localhost:4200/#/common/interactive/retry/
|
|
68
|
+
* <example-url>http://localhost:4200/#/common/interactive/retry/createretry-cngxasyncclick</example-url>
|
|
60
69
|
*/
|
|
61
70
|
declare class CngxAsyncClick {
|
|
62
71
|
private readonly el;
|
|
@@ -65,21 +74,46 @@ declare class CngxAsyncClick {
|
|
|
65
74
|
readonly action: _angular_core.InputSignal<AsyncAction>;
|
|
66
75
|
/** Duration in ms to show success/error state before reset. */
|
|
67
76
|
readonly feedbackDuration: _angular_core.InputSignal<number>;
|
|
68
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* When `false`, clicks are ignored and the element is marked `aria-disabled`
|
|
79
|
+
* (never the hard `disabled` attribute, so focus survives). Communicates the
|
|
80
|
+
* "why" to assistive tech instead of silently swallowing the click.
|
|
81
|
+
*/
|
|
69
82
|
readonly enabled: _angular_core.InputSignal<boolean>;
|
|
70
|
-
/**
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
83
|
+
/**
|
|
84
|
+
* External busy override. When `true`, the element is `aria-busy` even though
|
|
85
|
+
* this directive is not running its own action - for a wrapper that tracks an
|
|
86
|
+
* operation outside the click (e.g. an `[externalState]`). Purely an ARIA
|
|
87
|
+
* hint: it does not block clicks (gate those with `[enabled]`).
|
|
88
|
+
*/
|
|
89
|
+
readonly busy: _angular_core.InputSignal<boolean>;
|
|
90
|
+
private readonly i18n;
|
|
91
|
+
/**
|
|
92
|
+
* Label announced to screen readers on success. Unbound, it resolves to
|
|
93
|
+
* `CNGX_INTERACTIVE_I18N.asyncClickSucceeded` at announcement time.
|
|
94
|
+
*/
|
|
95
|
+
readonly succeededAnnouncement: _angular_core.InputSignal<string | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* Label announced to screen readers on failure. Unbound, it resolves to
|
|
98
|
+
* `CNGX_INTERACTIVE_I18N.asyncClickFailed` at announcement time.
|
|
99
|
+
*/
|
|
100
|
+
readonly failedAnnouncement: _angular_core.InputSignal<string | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* Auto-render the polite live region announcing success/failure.
|
|
103
|
+
* Opt out (`false`) to wire {@link announcement} to your own region -
|
|
104
|
+
* also when a toast/alert bridge (`cngxToastOn`, `cngxAlertOn`) on the
|
|
105
|
+
* same element already announces the settle, or the user hears it twice.
|
|
106
|
+
*/
|
|
107
|
+
readonly autoAnnounce: _angular_core.InputSignal<boolean>;
|
|
74
108
|
private readonly pendingState;
|
|
75
109
|
private readonly succeededState;
|
|
76
110
|
private readonly failedState;
|
|
77
111
|
private readonly errorState;
|
|
78
112
|
private readonly lastUpdatedState;
|
|
79
113
|
private feedbackTimer;
|
|
80
|
-
private readonly supportsDisabled;
|
|
81
114
|
private destroyed;
|
|
82
115
|
constructor();
|
|
116
|
+
private installAnnounceRegion;
|
|
83
117
|
/** `true` while the action is executing. */
|
|
84
118
|
readonly pending: Signal<boolean>;
|
|
85
119
|
/** `true` for `feedbackDuration` ms after a successful action. */
|
|
@@ -90,7 +124,11 @@ declare class CngxAsyncClick {
|
|
|
90
124
|
readonly error: Signal<unknown>;
|
|
91
125
|
/** Current lifecycle status - use in `@switch` for template branching. */
|
|
92
126
|
readonly status: Signal<AsyncStatus>;
|
|
93
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* Screen reader announcement for the current state. Rendered automatically
|
|
129
|
+
* into the auto polite region; only needs manual wiring when
|
|
130
|
+
* `autoAnnounce` is `false`.
|
|
131
|
+
*/
|
|
94
132
|
readonly announcement: Signal<string>;
|
|
95
133
|
/**
|
|
96
134
|
* Full `CngxAsyncState` view of this directive's lifecycle.
|
|
@@ -100,13 +138,11 @@ declare class CngxAsyncClick {
|
|
|
100
138
|
*/
|
|
101
139
|
readonly state: CngxAsyncState<unknown>;
|
|
102
140
|
/** @internal */
|
|
103
|
-
protected readonly shouldDisable: Signal<"" | null>;
|
|
104
|
-
/** @internal */
|
|
105
141
|
protected handleClick(event: Event): Promise<void>;
|
|
106
142
|
private scheduleFeedbackReset;
|
|
107
143
|
private clearFeedback;
|
|
108
144
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxAsyncClick, never>;
|
|
109
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxAsyncClick, "[cngxAsyncClick]", ["cngxAsyncClick"], { "action": { "alias": "cngxAsyncClick"; "required": true; "isSignal": true; }; "feedbackDuration": { "alias": "feedbackDuration"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "succeededAnnouncement": { "alias": "succeededAnnouncement"; "required": false; "isSignal": true; }; "failedAnnouncement": { "alias": "failedAnnouncement"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
145
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxAsyncClick, "[cngxAsyncClick]", ["cngxAsyncClick"], { "action": { "alias": "cngxAsyncClick"; "required": true; "isSignal": true; }; "feedbackDuration": { "alias": "feedbackDuration"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "busy": { "alias": "busy"; "required": false; "isSignal": true; }; "succeededAnnouncement": { "alias": "succeededAnnouncement"; "required": false; "isSignal": true; }; "failedAnnouncement": { "alias": "failedAnnouncement"; "required": false; "isSignal": true; }; "autoAnnounce": { "alias": "autoAnnounce"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
110
146
|
}
|
|
111
147
|
|
|
112
148
|
/**
|
|
@@ -177,6 +213,182 @@ declare class CngxFailed {
|
|
|
177
213
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxFailed, "ng-template[cngxFailed]", never, {}, {}, never, never, true, never>;
|
|
178
214
|
}
|
|
179
215
|
|
|
216
|
+
/**
|
|
217
|
+
* Interactive i18n surface. Library defaults are English; consumers override
|
|
218
|
+
* via {@link provideInteractiveI18n}. Reactive from birth: the token carries a
|
|
219
|
+
* `Signal`, and {@link withInteractiveI18nLabels} accepts a `Signal` of a
|
|
220
|
+
* partial bundle, so a runtime language switch re-derives every read.
|
|
221
|
+
*
|
|
222
|
+
* `asyncClickSucceeded` / `asyncClickFailed` are live-region copy:
|
|
223
|
+
* `CngxAsyncClick` (and `CngxActionButton`, which wraps it) announces the
|
|
224
|
+
* settle it just made, spent once per transition. The other keys are the
|
|
225
|
+
* fallback of string inputs (`CngxCopyBlock`, `CngxRangeSlider`,
|
|
226
|
+
* `CngxBreadcrumb`), resolved in a `computed()`: a bound input wins, and an
|
|
227
|
+
* unbound one follows a language switch. They are optional so a bundle
|
|
228
|
+
* built before they existed keeps compiling; the active language pack (or
|
|
229
|
+
* its English section) fills them at the reading site.
|
|
230
|
+
*
|
|
231
|
+
* @category common/interactive/i18n
|
|
232
|
+
*/
|
|
233
|
+
interface CngxInteractiveI18n {
|
|
234
|
+
/** Announced when an async click action resolves. */
|
|
235
|
+
readonly asyncClickSucceeded: string;
|
|
236
|
+
/** Announced when an async click action rejects. */
|
|
237
|
+
readonly asyncClickFailed: string;
|
|
238
|
+
/** Default of the `CngxCopyBlock` `buttonLabel` input. */
|
|
239
|
+
readonly copy?: string;
|
|
240
|
+
/** Default of the `CngxCopyBlock` `copiedLabel` input. */
|
|
241
|
+
readonly copied?: string;
|
|
242
|
+
/** Default of the `CngxCopyBlock` `srAnnouncement` input (live region). */
|
|
243
|
+
readonly copiedAnnouncement?: string;
|
|
244
|
+
/** Default of the `CngxRangeSlider` `startLabel` input. */
|
|
245
|
+
readonly rangeMinimum?: string;
|
|
246
|
+
/** Default of the `CngxRangeSlider` `endLabel` input. */
|
|
247
|
+
readonly rangeMaximum?: string;
|
|
248
|
+
/** Default of the `CngxBreadcrumb` `label` input (landmark name). */
|
|
249
|
+
readonly breadcrumb?: string;
|
|
250
|
+
/** Default confirmation of `canDeactivateWhenClean`. */
|
|
251
|
+
readonly unsavedChanges?: string;
|
|
252
|
+
/**
|
|
253
|
+
* Visible `start - end` value of `CngxRangeSlider`. Receives both values
|
|
254
|
+
* already formatted; one message, so a locale owns the order and the joiner.
|
|
255
|
+
*/
|
|
256
|
+
readonly rangeValue?: (start: string, end: string) => string;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* DI token for the interactive i18n bundle. `providedIn: 'root'`: the
|
|
260
|
+
* interactive section of the active language pack over the English defaults;
|
|
261
|
+
* the value is a `Signal`, shared by every reader under one injector.
|
|
262
|
+
*
|
|
263
|
+
* @category common/interactive/i18n
|
|
264
|
+
* @wcag AA
|
|
265
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/i18n/interactive-i18n.ts
|
|
266
|
+
* @since 0.1.0
|
|
267
|
+
* @relatedTo CngxAsyncClick
|
|
268
|
+
*/
|
|
269
|
+
declare const CNGX_INTERACTIVE_I18N: InjectionToken<Signal<CngxInteractiveI18n>>;
|
|
270
|
+
/**
|
|
271
|
+
* Branded feature-fn for {@link provideInteractiveI18n}.
|
|
272
|
+
*
|
|
273
|
+
* @category common/interactive/i18n
|
|
274
|
+
* @since 0.1.0
|
|
275
|
+
*/
|
|
276
|
+
type CngxInteractiveI18nFeature = ((bundle: Signal<CngxInteractiveI18n>) => Signal<CngxInteractiveI18n>) & {
|
|
277
|
+
readonly _target: 'i18n';
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* Override i18n labels via a partial bundle - unset keys keep the language
|
|
281
|
+
* pack's copy, or the English default. Pass a `Signal` of a partial bundle to switch languages at
|
|
282
|
+
* runtime.
|
|
283
|
+
*
|
|
284
|
+
* @category common/interactive/i18n
|
|
285
|
+
* @since 0.1.0
|
|
286
|
+
*/
|
|
287
|
+
declare function withInteractiveI18nLabels(overrides: Partial<CngxInteractiveI18n> | Signal<Partial<CngxInteractiveI18n>>): CngxInteractiveI18nFeature;
|
|
288
|
+
/**
|
|
289
|
+
* Provider for the interactive i18n bundle. Returns a plain `Provider`, so it
|
|
290
|
+
* also scopes a subtree through `viewProviders`. The features apply on top of
|
|
291
|
+
* the active language pack.
|
|
292
|
+
*
|
|
293
|
+
* ```ts
|
|
294
|
+
* bootstrapApplication(AppComponent, {
|
|
295
|
+
* providers: [
|
|
296
|
+
* provideInteractiveI18n(
|
|
297
|
+
* withInteractiveI18nLabels({ asyncClickSucceeded: 'Erledigt', asyncClickFailed: 'Fehlgeschlagen' }),
|
|
298
|
+
* ),
|
|
299
|
+
* ],
|
|
300
|
+
* });
|
|
301
|
+
* ```
|
|
302
|
+
*
|
|
303
|
+
* @category common/interactive/i18n
|
|
304
|
+
* @since 0.1.0
|
|
305
|
+
*/
|
|
306
|
+
declare function provideInteractiveI18n(...features: readonly CngxInteractiveI18nFeature[]): Provider;
|
|
307
|
+
/**
|
|
308
|
+
* Inject the resolved interactive i18n bundle signal. Read it inside a
|
|
309
|
+
* `computed()` or template so a runtime override flip re-derives.
|
|
310
|
+
*
|
|
311
|
+
* @category common/interactive/i18n
|
|
312
|
+
* @since 0.1.0
|
|
313
|
+
*/
|
|
314
|
+
declare function injectInteractiveI18n(): Signal<CngxInteractiveI18n>;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* The interactive section of a {@link CngxLanguagePack}: the copy of the
|
|
318
|
+
* `@cngx/common/interactive` atoms (async click, copy block, range slider,
|
|
319
|
+
* breadcrumb, the unsaved-changes guard). It feeds `CNGX_INTERACTIVE_I18N`.
|
|
320
|
+
*
|
|
321
|
+
* @category common/interactive/i18n
|
|
322
|
+
* @since 0.1.0
|
|
323
|
+
* @relatedTo CNGX_INTERACTIVE_I18N
|
|
324
|
+
*/
|
|
325
|
+
interface CngxInteractiveLanguageSection {
|
|
326
|
+
/** Announced when an async click action resolves. */
|
|
327
|
+
readonly asyncClickSucceeded: string;
|
|
328
|
+
/** Announced when an async click action rejects. */
|
|
329
|
+
readonly asyncClickFailed: string;
|
|
330
|
+
/** Label of the copy-block button. */
|
|
331
|
+
readonly copy: string;
|
|
332
|
+
/** Label of the copy-block button after a copy. */
|
|
333
|
+
readonly copied: string;
|
|
334
|
+
/** Announced after a copy. */
|
|
335
|
+
readonly copiedAnnouncement: string;
|
|
336
|
+
/** Accessible name of the range slider's start thumb. */
|
|
337
|
+
readonly rangeMinimum: string;
|
|
338
|
+
/** Accessible name of the range slider's end thumb. */
|
|
339
|
+
readonly rangeMaximum: string;
|
|
340
|
+
/** Accessible name of the breadcrumb landmark. */
|
|
341
|
+
readonly breadcrumb: string;
|
|
342
|
+
/** Confirmation of `canDeactivateWhenClean` before leaving unsaved changes. */
|
|
343
|
+
readonly unsavedChanges: string;
|
|
344
|
+
/** `{start}`, `{end}`: the visible value of a range slider. */
|
|
345
|
+
readonly rangeValue: CngxMessage;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* The English interactive section: the single source of the interactive
|
|
349
|
+
* atoms' English copy. `CNGX_INTERACTIVE_I18N` defaults to it.
|
|
350
|
+
*
|
|
351
|
+
* @category common/interactive/i18n
|
|
352
|
+
* @since 0.1.0
|
|
353
|
+
* @relatedTo CNGX_INTERACTIVE_I18N
|
|
354
|
+
*/
|
|
355
|
+
declare const CNGX_INTERACTIVE_LANGUAGE_EN: CngxInteractiveLanguageSection;
|
|
356
|
+
declare module '@cngx/core/i18n' {
|
|
357
|
+
interface CngxLanguagePack {
|
|
358
|
+
readonly interactive: CngxInteractiveLanguageSection;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* The menu section of a {@link CngxLanguagePack}: what the menu family
|
|
364
|
+
* announces. It feeds the `ariaLabels` of `CNGX_MENU_CONFIG`.
|
|
365
|
+
*
|
|
366
|
+
* @category common/interactive/i18n
|
|
367
|
+
* @since 0.1.0
|
|
368
|
+
* @relatedTo CNGX_MENU_CONFIG
|
|
369
|
+
*/
|
|
370
|
+
interface CngxMenuLanguageSection {
|
|
371
|
+
readonly submenuOpened: string;
|
|
372
|
+
readonly submenuClosed: string;
|
|
373
|
+
readonly itemActivated: string;
|
|
374
|
+
readonly itemDisabled: string;
|
|
375
|
+
readonly menuDismissed: string;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* The English menu section: the single source of the menu's English copy.
|
|
379
|
+
* `CNGX_MENU_CONFIG` defaults its `ariaLabels` to it.
|
|
380
|
+
*
|
|
381
|
+
* @category common/interactive/i18n
|
|
382
|
+
* @since 0.1.0
|
|
383
|
+
* @relatedTo CNGX_MENU_CONFIG
|
|
384
|
+
*/
|
|
385
|
+
declare const CNGX_MENU_LANGUAGE_EN: CngxMenuLanguageSection;
|
|
386
|
+
declare module '@cngx/core/i18n' {
|
|
387
|
+
interface CngxLanguagePack {
|
|
388
|
+
readonly menu: CngxMenuLanguageSection;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
180
392
|
/**
|
|
181
393
|
* Display bucket a reflector collapses an {@link CngxAsyncState} into.
|
|
182
394
|
* The `loading` / `refreshing` busy variants fold into `pending` for the
|
|
@@ -312,6 +524,11 @@ declare class CngxCopyText {
|
|
|
312
524
|
/** Emitted when a copy attempt fails. */
|
|
313
525
|
readonly copyFailed: _angular_core.OutputEmitterRef<unknown>;
|
|
314
526
|
constructor();
|
|
527
|
+
/**
|
|
528
|
+
* Host click handler - fire-and-forget wrapper so the event binding
|
|
529
|
+
* does not leak the promise the public {@link copy} API returns.
|
|
530
|
+
*/
|
|
531
|
+
protected handleClick(): void;
|
|
315
532
|
/** Copies the text to the clipboard. */
|
|
316
533
|
copy(): Promise<void>;
|
|
317
534
|
/** execCommand fallback for environments without Clipboard API. */
|
|
@@ -351,14 +568,26 @@ declare class CngxCopyText {
|
|
|
351
568
|
* <example-url>http://localhost:4200/#/common/interactive/copy/block/code-snippet</example-url>
|
|
352
569
|
*/
|
|
353
570
|
declare class CngxCopyBlock {
|
|
571
|
+
private readonly i18n;
|
|
354
572
|
/** The text value to copy to clipboard. */
|
|
355
573
|
readonly value: _angular_core.InputSignal<string>;
|
|
356
|
-
/** Label for the copy button. */
|
|
357
|
-
readonly buttonLabel: _angular_core.InputSignal<string>;
|
|
358
|
-
/** Label shown after successful copy. */
|
|
359
|
-
readonly copiedLabel: _angular_core.InputSignal<string>;
|
|
360
|
-
/**
|
|
361
|
-
|
|
574
|
+
/** Label for the copy button. Unbound, it follows `CNGX_INTERACTIVE_I18N.copy`. */
|
|
575
|
+
readonly buttonLabel: _angular_core.InputSignal<string | undefined>;
|
|
576
|
+
/** Label shown after successful copy. Unbound, it follows `CNGX_INTERACTIVE_I18N.copied`. */
|
|
577
|
+
readonly copiedLabel: _angular_core.InputSignal<string | undefined>;
|
|
578
|
+
/**
|
|
579
|
+
* Screen reader announcement on copy. Unbound, it follows
|
|
580
|
+
* `CNGX_INTERACTIVE_I18N.copiedAnnouncement`.
|
|
581
|
+
*/
|
|
582
|
+
readonly srAnnouncement: _angular_core.InputSignal<string | undefined>;
|
|
583
|
+
private readonly copyText;
|
|
584
|
+
protected readonly resolvedButtonLabel: _angular_core.Signal<string>;
|
|
585
|
+
protected readonly resolvedCopiedLabel: _angular_core.Signal<string>;
|
|
586
|
+
/**
|
|
587
|
+
* Live-region text. Only the copied state is tracked: a language switch
|
|
588
|
+
* never re-voices the region; the next copy speaks the new language.
|
|
589
|
+
*/
|
|
590
|
+
protected readonly liveAnnouncement: _angular_core.Signal<string>;
|
|
362
591
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxCopyBlock, never>;
|
|
363
592
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxCopyBlock, "cngx-copy-block", ["cngxCopyBlock"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; "isSignal": true; }; "copiedLabel": { "alias": "copiedLabel"; "required": false; "isSignal": true; }; "srAnnouncement": { "alias": "srAnnouncement"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
364
593
|
}
|
|
@@ -410,7 +639,14 @@ declare class CngxRipple {
|
|
|
410
639
|
readonly active: _angular_core.Signal<boolean>;
|
|
411
640
|
private readonly el;
|
|
412
641
|
private readonly doc;
|
|
413
|
-
private
|
|
642
|
+
private readonly destroyRef;
|
|
643
|
+
private readonly prefersReducedMotion;
|
|
644
|
+
/**
|
|
645
|
+
* Cleanups of waves whose animation has not finished yet. Flushed on
|
|
646
|
+
* destroy so the 1s fallback timer never outlives the directive and
|
|
647
|
+
* detached hosts do not keep orphaned wave elements alive.
|
|
648
|
+
*/
|
|
649
|
+
private readonly pendingCleanups;
|
|
414
650
|
constructor();
|
|
415
651
|
/** @internal */
|
|
416
652
|
protected handlePointerDown(event: PointerEvent): void;
|
|
@@ -509,8 +745,13 @@ declare class CngxPressRipple {
|
|
|
509
745
|
interface CngxNavConfig {
|
|
510
746
|
/**
|
|
511
747
|
* Indentation in px per depth level.
|
|
512
|
-
*
|
|
513
|
-
*
|
|
748
|
+
*
|
|
749
|
+
* When set, `CngxNavGroup` / `CngxNavLink` hosts in the provider scope
|
|
750
|
+
* emit it as the `--cngx-nav-indent` CSS custom property. When absent,
|
|
751
|
+
* the hosts emit nothing - consumer stylesheets keep full control via
|
|
752
|
+
* the cascade and the documented `var(--cngx-nav-indent, 12px)`
|
|
753
|
+
* fallback.
|
|
754
|
+
* @default 12 (CSS fallback; not written to the DOM)
|
|
514
755
|
*/
|
|
515
756
|
indent?: number;
|
|
516
757
|
/**
|
|
@@ -521,8 +762,15 @@ interface CngxNavConfig {
|
|
|
521
762
|
singleAccordion?: boolean;
|
|
522
763
|
/**
|
|
523
764
|
* Default animation duration in ms for disclosure transitions.
|
|
524
|
-
*
|
|
525
|
-
*
|
|
765
|
+
*
|
|
766
|
+
* When set, `CngxNavGroup` / `CngxNavLink` hosts in the provider scope
|
|
767
|
+
* emit it as the `--cngx-nav-transition` CSS custom property. When
|
|
768
|
+
* absent, the hosts emit nothing - the cascade and the documented
|
|
769
|
+
* `var(--cngx-nav-transition, 150ms)` fallback apply. Content panels
|
|
770
|
+
* are consumer-rendered siblings, so panel transitions read the token
|
|
771
|
+
* from the consumer's own container (set it there or scope the
|
|
772
|
+
* provider around a styled wrapper).
|
|
773
|
+
* @default 150 (CSS fallback; not written to the DOM)
|
|
526
774
|
*/
|
|
527
775
|
animationDuration?: number;
|
|
528
776
|
}
|
|
@@ -567,6 +815,14 @@ declare const CNGX_NAV_CONFIG: InjectionToken<CngxNavConfig>;
|
|
|
567
815
|
* @category common/interactive
|
|
568
816
|
*/
|
|
569
817
|
declare function provideNavConfig(...features: NavConfigFeature[]): Provider[];
|
|
818
|
+
/**
|
|
819
|
+
* Component-scoped variant - use in `viewProviders` so the nav config
|
|
820
|
+
* only applies to descendants of this component. Same feature merge as
|
|
821
|
+
* {@link provideNavConfig}.
|
|
822
|
+
*
|
|
823
|
+
* @category common/interactive
|
|
824
|
+
*/
|
|
825
|
+
declare function provideNavConfigAt(...features: NavConfigFeature[]): Provider[];
|
|
570
826
|
/**
|
|
571
827
|
* Enables single-accordion mode - only one nav group can be open at a time.
|
|
572
828
|
*
|
|
@@ -656,7 +912,7 @@ declare class CngxDisclosure {
|
|
|
656
912
|
readonly opened: _angular_core.Signal<boolean>;
|
|
657
913
|
/** Emitted when the opened state changes. */
|
|
658
914
|
readonly openedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
659
|
-
/** Opens the disclosure. */
|
|
915
|
+
/** Opens the disclosure. No-op when already open (parity with `close()`). */
|
|
660
916
|
open(): void;
|
|
661
917
|
/** Closes the disclosure. */
|
|
662
918
|
close(): void;
|
|
@@ -721,6 +977,8 @@ declare class CngxNavGroup {
|
|
|
721
977
|
readonly depth: _angular_core.InputSignal<number>;
|
|
722
978
|
private readonly registry;
|
|
723
979
|
private readonly config;
|
|
980
|
+
protected readonly navIndent: string | null;
|
|
981
|
+
protected readonly navTransition: string | null;
|
|
724
982
|
constructor();
|
|
725
983
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxNavGroup, never>;
|
|
726
984
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxNavGroup, "[cngxNavGroup]", ["cngxNavGroup"], { "depth": { "alias": "depth"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof CngxDisclosure; inputs: { "cngxDisclosureOpened": "cngxDisclosureOpened"; "controls": "controls"; }; outputs: { "openedChange": "openedChange"; }; }]>;
|
|
@@ -840,6 +1098,9 @@ declare class CngxNavLabel {
|
|
|
840
1098
|
* <example-url>http://localhost:4200/#/common/interactive/nav/nav-links-active-state-depth</example-url>
|
|
841
1099
|
*/
|
|
842
1100
|
declare class CngxNavLink {
|
|
1101
|
+
private readonly config;
|
|
1102
|
+
protected readonly navIndent: string | null;
|
|
1103
|
+
protected readonly navTransition: string | null;
|
|
843
1104
|
/**
|
|
844
1105
|
* `true` when the host `<a>` lacks an `href` attribute and needs `tabindex="0"`
|
|
845
1106
|
* + `role="link"` for keyboard focusability.
|
|
@@ -849,6 +1110,11 @@ declare class CngxNavLink {
|
|
|
849
1110
|
*/
|
|
850
1111
|
readonly needsFocusFix: _angular_core.WritableSignal<boolean>;
|
|
851
1112
|
private readonly initialized;
|
|
1113
|
+
private readonly locale;
|
|
1114
|
+
/** Link text read after the first render; `null` when the consumer set `data-initial`. */
|
|
1115
|
+
private readonly initialSource;
|
|
1116
|
+
/** First character of the link text, uppercased with the app locale. */
|
|
1117
|
+
private readonly initial;
|
|
852
1118
|
constructor();
|
|
853
1119
|
/** Whether this link is the currently active route/item. */
|
|
854
1120
|
readonly active: _angular_core.InputSignal<boolean>;
|
|
@@ -1159,9 +1425,16 @@ interface CngxSliderCoreOptions {
|
|
|
1159
1425
|
readonly boundedMax?: Signal<number>;
|
|
1160
1426
|
/**
|
|
1161
1427
|
* Maps the current value to an `aria-valuetext` string (currency, dates,
|
|
1162
|
-
* t-shirt sizes). When omitted, `aria-valuetext` mirrors the numeric value
|
|
1428
|
+
* t-shirt sizes). When omitted, `aria-valuetext` mirrors the numeric value,
|
|
1429
|
+
* formatted in {@link CngxSliderCoreOptions.locale} when one is given.
|
|
1163
1430
|
*/
|
|
1164
1431
|
readonly valueText?: (value: number) => string;
|
|
1432
|
+
/**
|
|
1433
|
+
* Locale of the default `aria-valuetext` (no grouping, locale decimal
|
|
1434
|
+
* separator). The slider directives pass `injectLocale()`. When omitted,
|
|
1435
|
+
* the default is `String(value)`.
|
|
1436
|
+
*/
|
|
1437
|
+
readonly locale?: Signal<string>;
|
|
1165
1438
|
}
|
|
1166
1439
|
/**
|
|
1167
1440
|
* Derived view and write surface produced by {@link createSliderCore}. All
|
|
@@ -1216,6 +1489,192 @@ interface CngxSliderCore {
|
|
|
1216
1489
|
*/
|
|
1217
1490
|
declare function createSliderCore(options: CngxSliderCoreOptions): CngxSliderCore;
|
|
1218
1491
|
|
|
1492
|
+
/**
|
|
1493
|
+
* Options for {@link injectInteractiveGroupHost}.
|
|
1494
|
+
*
|
|
1495
|
+
* @category common/interactive
|
|
1496
|
+
*/
|
|
1497
|
+
interface CngxInteractiveGroupHostOptions {
|
|
1498
|
+
/**
|
|
1499
|
+
* Prefix handed to `nextUid()` for the stable host id, e.g.
|
|
1500
|
+
* `'cngx-checkbox-group-'`.
|
|
1501
|
+
*/
|
|
1502
|
+
readonly uidPrefix: string;
|
|
1503
|
+
/**
|
|
1504
|
+
* The host's `invalid` model. `ariaInvalid` ORs it with the resolved
|
|
1505
|
+
* `errorState` so bridge-driven validity and the field-host/aggregator
|
|
1506
|
+
* cascade share one derivation.
|
|
1507
|
+
*/
|
|
1508
|
+
readonly invalid: Signal<boolean>;
|
|
1509
|
+
/**
|
|
1510
|
+
* Optional explicit `[state]` input of the host. When it holds a value,
|
|
1511
|
+
* it wins over a discovered ancestor `CNGX_STATEFUL`; when absent or
|
|
1512
|
+
* `undefined`, the discovered fallback applies.
|
|
1513
|
+
*/
|
|
1514
|
+
readonly state?: Signal<CngxAsyncState<unknown> | undefined>;
|
|
1515
|
+
/**
|
|
1516
|
+
* Optional explicit accessible-name input of the host (emitted as
|
|
1517
|
+
* `aria-label`). While it holds a non-empty value,
|
|
1518
|
+
* {@link CngxInteractiveGroupHost.ariaLabelledBy} yields `null` so the
|
|
1519
|
+
* explicit name is not overridden - `aria-labelledby` beats
|
|
1520
|
+
* `aria-label` in accname precedence.
|
|
1521
|
+
*/
|
|
1522
|
+
readonly label?: Signal<string | undefined>;
|
|
1523
|
+
/**
|
|
1524
|
+
* Optional explicit `aria-labelledby` input of the host. When set, it
|
|
1525
|
+
* wins over the automatic field-label reference - the consumer decides
|
|
1526
|
+
* which element names the group.
|
|
1527
|
+
*/
|
|
1528
|
+
readonly labelledBy?: Signal<string | undefined>;
|
|
1529
|
+
}
|
|
1530
|
+
/**
|
|
1531
|
+
* The scaffolding bundle {@link injectInteractiveGroupHost} returns. Hosts
|
|
1532
|
+
* re-export the fields they surface publicly (`id`, `focused`,
|
|
1533
|
+
* `errorState`) and delegate their `focusin`/`focusout` host listeners to
|
|
1534
|
+
* the handler pair.
|
|
1535
|
+
*
|
|
1536
|
+
* @category common/interactive
|
|
1537
|
+
*/
|
|
1538
|
+
interface CngxInteractiveGroupHost {
|
|
1539
|
+
/** Stable unique host id, prefixed per {@link CngxInteractiveGroupHostOptions.uidPrefix}. */
|
|
1540
|
+
readonly id: Signal<string>;
|
|
1541
|
+
/** `true` while focus is inside the host subtree. */
|
|
1542
|
+
readonly focused: Signal<boolean>;
|
|
1543
|
+
/**
|
|
1544
|
+
* Field-host to aggregator cascade. Inside `<cngx-form-field>` the
|
|
1545
|
+
* form-field's `showError()` decides; outside a form-field but inside
|
|
1546
|
+
* an `CngxErrorAggregator` the aggregator's `shouldShow()` decides;
|
|
1547
|
+
* standalone it stays `false`.
|
|
1548
|
+
*/
|
|
1549
|
+
readonly errorState: Signal<boolean>;
|
|
1550
|
+
/** `invalid() || errorState()` - the shared `aria-invalid` gate. */
|
|
1551
|
+
readonly ariaInvalid: Signal<boolean>;
|
|
1552
|
+
/**
|
|
1553
|
+
* Resolved `aria-labelledby` reference. An explicit `labelledBy` option
|
|
1554
|
+
* always wins; otherwise the surrounding field's `labelId` applies -
|
|
1555
|
+
* only inside a `cngx-form-field` whose host exposes it and while the
|
|
1556
|
+
* explicit `label` option is empty. Group roles take no name from
|
|
1557
|
+
* content - this channel names them inside a field.
|
|
1558
|
+
*/
|
|
1559
|
+
readonly ariaLabelledBy: Signal<string | null>;
|
|
1560
|
+
/**
|
|
1561
|
+
* Effective async state: the explicit `state` option wins over a
|
|
1562
|
+
* discovered ancestor `CNGX_STATEFUL`.
|
|
1563
|
+
*/
|
|
1564
|
+
readonly resolvedState: Signal<CngxAsyncState<unknown> | undefined>;
|
|
1565
|
+
/** `true` while the resolved state reports `status() === 'loading'`. */
|
|
1566
|
+
readonly ariaBusy: Signal<boolean>;
|
|
1567
|
+
/** Bind to the host's `(focusin)` listener. */
|
|
1568
|
+
handleFocusIn(): void;
|
|
1569
|
+
/** Bind to the host's `(focusout)` listener; marks the surrounding field as touched. */
|
|
1570
|
+
handleFocusOut(): void;
|
|
1571
|
+
}
|
|
1572
|
+
/**
|
|
1573
|
+
* Shared scaffolding for the interactive form-control hosts (toggle,
|
|
1574
|
+
* checkbox, the standalone interactive chip, and the value groups):
|
|
1575
|
+
* stable uid, focus tracking, the
|
|
1576
|
+
* field-host/aggregator error cascade, the `aria-invalid` gate, and
|
|
1577
|
+
* `[state]`-wins-over-`CNGX_STATEFUL` async-state resolution for
|
|
1578
|
+
* `aria-busy`.
|
|
1579
|
+
*
|
|
1580
|
+
* Call from a field initializer (injection context required - the factory
|
|
1581
|
+
* injects `CNGX_FORM_FIELD_HOST`, `CNGX_ERROR_AGGREGATOR`, and
|
|
1582
|
+
* `CNGX_STATEFUL`, each optional). Declare the `invalid` model and the
|
|
1583
|
+
* `state` input above the call site so the option signals exist when the
|
|
1584
|
+
* initializer runs.
|
|
1585
|
+
*
|
|
1586
|
+
* The factory is wiring, not a swap point: it deliberately has no DI
|
|
1587
|
+
* factory token. Consumers authoring their own form-control atoms get the
|
|
1588
|
+
* same field-host, aggregator, and stateful integration by calling it
|
|
1589
|
+
* directly.
|
|
1590
|
+
*
|
|
1591
|
+
* All host communication stays reactive (Pillar 2): `errorState`,
|
|
1592
|
+
* `ariaInvalid`, and `ariaBusy` are `computed()` members of the returned
|
|
1593
|
+
* bundle. `resolvedState` forwards a stable reference (the bound input
|
|
1594
|
+
* value or the provider's `state` field, never a fresh literal), so
|
|
1595
|
+
* `Object.is` dedupes without an `equal` fn.
|
|
1596
|
+
*
|
|
1597
|
+
* ```ts
|
|
1598
|
+
* private readonly groupHost = injectInteractiveGroupHost({
|
|
1599
|
+
* uidPrefix: 'cngx-checkbox-group-',
|
|
1600
|
+
* invalid: this.invalid,
|
|
1601
|
+
* state: this.state,
|
|
1602
|
+
* });
|
|
1603
|
+
* readonly id = this.groupHost.id;
|
|
1604
|
+
* readonly focused = this.groupHost.focused;
|
|
1605
|
+
* readonly errorState = this.groupHost.errorState;
|
|
1606
|
+
* protected readonly ariaBusy = this.groupHost.ariaBusy;
|
|
1607
|
+
* ```
|
|
1608
|
+
*
|
|
1609
|
+
* @category common/interactive
|
|
1610
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/group-host/group-host.ts
|
|
1611
|
+
* @since 0.1.0
|
|
1612
|
+
* @relatedTo CngxToggle, CngxCheckbox, CngxChipInteraction, CngxCheckboxGroup, CngxRadioGroup, CngxButtonToggleGroup, CngxButtonMultiToggleGroup, CngxChipGroup, CngxMultiChipGroup
|
|
1613
|
+
*/
|
|
1614
|
+
declare function injectInteractiveGroupHost(options: CngxInteractiveGroupHostOptions): CngxInteractiveGroupHost;
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* Options for {@link injectMenuItemCore}.
|
|
1618
|
+
*
|
|
1619
|
+
* @category common/interactive/menu
|
|
1620
|
+
*/
|
|
1621
|
+
interface CngxMenuItemCoreOptions<T = unknown> {
|
|
1622
|
+
/** The item's payload value, forwarded to `highlightByValue`. */
|
|
1623
|
+
readonly value: Signal<T | undefined>;
|
|
1624
|
+
/** Disabled state - gates click activation and pointer highlight. */
|
|
1625
|
+
readonly disabled: Signal<boolean>;
|
|
1626
|
+
/** Explicit label input; `label()` falls back to the host's text content. */
|
|
1627
|
+
readonly labelInput: Signal<string | undefined>;
|
|
1628
|
+
/**
|
|
1629
|
+
* Variant activation step, run between `highlightByValue` and
|
|
1630
|
+
* `activateCurrent` on the active-descendant path only (checkbox:
|
|
1631
|
+
* toggle `checked`; radio: select in the group; plain item: omitted).
|
|
1632
|
+
*/
|
|
1633
|
+
readonly onActivate?: () => void;
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* The shared interaction bundle {@link injectMenuItemCore} returns. Menu
|
|
1637
|
+
* item variants re-export `id`/`isHighlighted`/`label` (their
|
|
1638
|
+
* `CngxAdItemHandle` surface) and delegate their host listeners to the
|
|
1639
|
+
* handler pair.
|
|
1640
|
+
*
|
|
1641
|
+
* @category common/interactive/menu
|
|
1642
|
+
*/
|
|
1643
|
+
interface CngxMenuItemCore {
|
|
1644
|
+
/** Stable unique item id used for `aria-activedescendant` targeting. */
|
|
1645
|
+
readonly id: string;
|
|
1646
|
+
/** `true` while the surrounding active-descendant highlights this item. */
|
|
1647
|
+
readonly isHighlighted: Signal<boolean>;
|
|
1648
|
+
/** Label accessor: explicit input wins over the host's trimmed text content. */
|
|
1649
|
+
label(): string;
|
|
1650
|
+
/** Bind to the host's `(click)` listener. */
|
|
1651
|
+
handleClick(): void;
|
|
1652
|
+
/** Bind to the host's `(pointerenter)` listener. */
|
|
1653
|
+
handlePointerEnter(): void;
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* Shared interaction core of the three menu item variants
|
|
1657
|
+
* (`CngxMenuItem`, `CngxMenuItemCheckbox`, `CngxMenuItemRadio`) -
|
|
1658
|
+
* previously a tripled block. Owns the AD registration surface
|
|
1659
|
+
* (`id`, `isHighlighted`, `label`), the disabled-aware click handler with
|
|
1660
|
+
* the announcer's `itemDisabled` phrase, and the pointer-highlight
|
|
1661
|
+
* handler; only the activation step stays per-variant via `onActivate`.
|
|
1662
|
+
*
|
|
1663
|
+
* Call from a field initializer (injection context required - the core
|
|
1664
|
+
* injects `ElementRef`, the optional surrounding `CngxActiveDescendant`,
|
|
1665
|
+
* the announcer factory, and the menu config). Interaction contract,
|
|
1666
|
+
* preserved verbatim from the variants: a disabled click announces and
|
|
1667
|
+
* stops; without a surrounding active-descendant a click is a complete
|
|
1668
|
+
* no-op (no `onActivate` either); on the AD path the order is
|
|
1669
|
+
* `highlightByValue` -> `onActivate` -> `activateCurrent`.
|
|
1670
|
+
*
|
|
1671
|
+
* @category common/interactive/menu
|
|
1672
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-item-core.ts
|
|
1673
|
+
* @since 0.1.0
|
|
1674
|
+
* @relatedTo CngxMenuItem, CngxMenuItemCheckbox, CngxMenuItemRadio, CngxMenu
|
|
1675
|
+
*/
|
|
1676
|
+
declare function injectMenuItemCore<T = unknown>(options: CngxMenuItemCoreOptions<T>): CngxMenuItemCore;
|
|
1677
|
+
|
|
1219
1678
|
/**
|
|
1220
1679
|
* Tick stops from `min` to `max` stepping by `step`, for rendering tick marks +
|
|
1221
1680
|
* labels. Returns `[]` when the step grid is invalid or denser than `maxCount`
|
|
@@ -1326,6 +1785,7 @@ declare class CngxSliderTrack {
|
|
|
1326
1785
|
/** Optional `aria-valuetext` formatter (currency, dates, named stops). */
|
|
1327
1786
|
readonly valueText: _angular_core.InputSignal<((value: number) => string) | undefined>;
|
|
1328
1787
|
private readonly el;
|
|
1788
|
+
private readonly locale;
|
|
1329
1789
|
/** Disabled-"why" span + gated `aria-describedby` resolution. */
|
|
1330
1790
|
protected readonly reason: CngxSliderDisabledReason;
|
|
1331
1791
|
/** Shared value/step/aria derivation. */
|
|
@@ -1386,7 +1846,11 @@ declare class CngxSlider {
|
|
|
1386
1846
|
protected readonly brain: CngxSliderTrack;
|
|
1387
1847
|
/** Tick marks + labels derivation (shared factory). */
|
|
1388
1848
|
protected readonly ticks: CngxSliderTicksView;
|
|
1389
|
-
|
|
1849
|
+
private readonly locale;
|
|
1850
|
+
/**
|
|
1851
|
+
* Format a value through the bound `valueText` (so tick labels match the
|
|
1852
|
+
* thumb), else with the app locale's number format.
|
|
1853
|
+
*/
|
|
1390
1854
|
protected format(value: number): string;
|
|
1391
1855
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSlider, never>;
|
|
1392
1856
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxSlider, "cngx-slider", ["cngxSlider"], { "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showValueBubble": { "alias": "showValueBubble"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; "showTickLabels": { "alias": "showTickLabels"; "required": false; "isSignal": true; }; "thumbGlyph": { "alias": "thumbGlyph"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof CngxSliderTrack; inputs: { "value": "value"; "min": "min"; "max": "max"; "step": "step"; "largeStep": "largeStep"; "disabled": "disabled"; "disabledReason": "disabledReason"; "cngxDescribedBy": "cngxDescribedBy"; "orientation": "orientation"; "valueText": "valueText"; }; outputs: { "valueChange": "valueChange"; }; }]>;
|
|
@@ -1560,10 +2024,20 @@ declare class CngxRangeSliderTrack implements CngxSliderRangeHost {
|
|
|
1560
2024
|
* @relatedTo CngxRangeSliderTrack, CngxSlider, CngxSliderThumb
|
|
1561
2025
|
*/
|
|
1562
2026
|
declare class CngxRangeSlider {
|
|
1563
|
-
|
|
1564
|
-
readonly
|
|
1565
|
-
/**
|
|
1566
|
-
|
|
2027
|
+
private readonly i18n;
|
|
2028
|
+
private readonly locale;
|
|
2029
|
+
/**
|
|
2030
|
+
* Accessible name of the start (minimum) thumb. Unbound, it follows
|
|
2031
|
+
* `CNGX_INTERACTIVE_I18N.rangeMinimum`.
|
|
2032
|
+
*/
|
|
2033
|
+
readonly startLabel: _angular_core.InputSignal<string | undefined>;
|
|
2034
|
+
/**
|
|
2035
|
+
* Accessible name of the end (maximum) thumb. Unbound, it follows
|
|
2036
|
+
* `CNGX_INTERACTIVE_I18N.rangeMaximum`.
|
|
2037
|
+
*/
|
|
2038
|
+
readonly endLabel: _angular_core.InputSignal<string | undefined>;
|
|
2039
|
+
protected readonly resolvedStartLabel: _angular_core.Signal<string>;
|
|
2040
|
+
protected readonly resolvedEndLabel: _angular_core.Signal<string>;
|
|
1567
2041
|
/** Render the formatted `start - end` values centred between the thumbs (visual only). */
|
|
1568
2042
|
readonly showValue: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1569
2043
|
/** Show the combined `start - end` value as a bubble only while focused / dragged. */
|
|
@@ -1580,6 +2054,12 @@ declare class CngxRangeSlider {
|
|
|
1580
2054
|
protected readonly midFraction: _angular_core.Signal<number>;
|
|
1581
2055
|
/** Tick marks + labels derivation (shared factory). */
|
|
1582
2056
|
protected readonly ticks: CngxSliderTicksView;
|
|
2057
|
+
/** The visible `start - end` value, ordered and joined by the `rangeValue` message. */
|
|
2058
|
+
protected readonly rangeValueText: _angular_core.Signal<string>;
|
|
2059
|
+
/**
|
|
2060
|
+
* Format a value through the bound `valueText` (so tick labels match the
|
|
2061
|
+
* thumbs), else with the app locale's number format.
|
|
2062
|
+
*/
|
|
1583
2063
|
protected format(value: number): string;
|
|
1584
2064
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxRangeSlider, never>;
|
|
1585
2065
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxRangeSlider, "cngx-range-slider", ["cngxRangeSlider"], { "startLabel": { "alias": "startLabel"; "required": false; "isSignal": true; }; "endLabel": { "alias": "endLabel"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showValueBubble": { "alias": "showValueBubble"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; "showTickLabels": { "alias": "showTickLabels"; "required": false; "isSignal": true; }; "thumbGlyph": { "alias": "thumbGlyph"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof CngxRangeSliderTrack; inputs: { "value": "value"; "min": "min"; "max": "max"; "step": "step"; "largeStep": "largeStep"; "disabled": "disabled"; "disabledReason": "disabledReason"; "cngxDescribedBy": "cngxDescribedBy"; "orientation": "orientation"; "valueText": "valueText"; }; outputs: { "valueChange": "valueChange"; }; }]>;
|
|
@@ -1607,6 +2087,7 @@ declare class CngxSliderThumb {
|
|
|
1607
2087
|
readonly position: _angular_core.InputSignal<CngxSliderThumbPosition>;
|
|
1608
2088
|
protected readonly range: CngxSliderRangeHost;
|
|
1609
2089
|
private readonly el;
|
|
2090
|
+
private readonly locale;
|
|
1610
2091
|
/** Sibling-clamped bounds for this thumb, selected reactively by position. */
|
|
1611
2092
|
protected readonly bounds: Signal<_cngx_common_interactive.CngxSliderThumbBounds>;
|
|
1612
2093
|
private readonly value;
|
|
@@ -1861,7 +2342,7 @@ declare class CngxAccordionPanel implements OnInit {
|
|
|
1861
2342
|
protected readonly tabindex: _angular_core.Signal<0 | -1>;
|
|
1862
2343
|
ngOnInit(): void;
|
|
1863
2344
|
protected handleKeydown(event: KeyboardEvent): void;
|
|
1864
|
-
protected
|
|
2345
|
+
protected handleClick(): void;
|
|
1865
2346
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxAccordionPanel, never>;
|
|
1866
2347
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxAccordionPanel, "[cngxAccordionPanel]", ["cngxAccordionPanel"], { "panelId": { "alias": "panelId"; "required": true; "isSignal": true; }; "controls": { "alias": "controls"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1867
2348
|
}
|
|
@@ -1963,8 +2444,13 @@ declare const CNGX_BREADCRUMB: InjectionToken<CngxBreadcrumbHost>;
|
|
|
1963
2444
|
* <example-url>http://localhost:4200/#/common/interactive/breadcrumb/basic-trail</example-url>
|
|
1964
2445
|
*/
|
|
1965
2446
|
declare class CngxBreadcrumb implements CngxBreadcrumbHost {
|
|
1966
|
-
|
|
1967
|
-
|
|
2447
|
+
private readonly i18n;
|
|
2448
|
+
/**
|
|
2449
|
+
* Accessible name of the navigation landmark. Unbound, it follows
|
|
2450
|
+
* `CNGX_INTERACTIVE_I18N.breadcrumb`, including a runtime language switch.
|
|
2451
|
+
*/
|
|
2452
|
+
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
2453
|
+
protected readonly resolvedLabel: _angular_core.Signal<string>;
|
|
1968
2454
|
/** Maximum crumbs to show before the middle collapses. Unset = never collapse. */
|
|
1969
2455
|
readonly maxVisible: _angular_core.InputSignal<number | undefined>;
|
|
1970
2456
|
/** Swappable collapse rule; defaults to keep-first + last (max - 1). */
|
|
@@ -2043,41 +2529,6 @@ declare function createBreadcrumbCollapse(): CngxBreadcrumbCollapseStrategy;
|
|
|
2043
2529
|
*/
|
|
2044
2530
|
declare const CNGX_BREADCRUMB_COLLAPSE_STRATEGY: InjectionToken<CngxBreadcrumbCollapseStrategy>;
|
|
2045
2531
|
|
|
2046
|
-
/**
|
|
2047
|
-
* One width breakpoint for the responsive breadcrumb collapse: at `minWidth`
|
|
2048
|
-
* pixels and above, show at most `maxVisible` crumbs before the middle folds
|
|
2049
|
-
* into the overflow menu. A tier list is resolved by {@link resolveBreadcrumbTier}.
|
|
2050
|
-
*/
|
|
2051
|
-
interface CngxBreadcrumbWidthTier {
|
|
2052
|
-
/** Lower bound (inclusive, px) at which this tier's `maxVisible` applies. */
|
|
2053
|
-
readonly minWidth: number;
|
|
2054
|
-
/** Crumb cap once this tier is the active one. Fed to the count-based collapse. */
|
|
2055
|
-
readonly maxVisible: number;
|
|
2056
|
-
}
|
|
2057
|
-
/**
|
|
2058
|
-
* Default width tiers, matching the headless `responsive-collapse` recipe: 640px
|
|
2059
|
-
* and up shows 6, 440px and up shows 4, anything narrower shows 2. The `0` floor
|
|
2060
|
-
* guarantees a match for every non-negative width.
|
|
2061
|
-
*/
|
|
2062
|
-
declare const DEFAULT_BREADCRUMB_WIDTH_TIERS: readonly CngxBreadcrumbWidthTier[];
|
|
2063
|
-
/**
|
|
2064
|
-
* Pure width->count resolver: returns the `maxVisible` of the tier with the
|
|
2065
|
-
* highest `minWidth` that is still `<= width`. Order-independent - the tier list
|
|
2066
|
-
* is normalised (sorted by descending `minWidth`) before matching, so a consumer
|
|
2067
|
-
* may pass tiers in any order. When `width` sits below every tier's `minWidth`
|
|
2068
|
-
* the narrowest tier's `maxVisible` is the floor; an empty tier list yields
|
|
2069
|
-
* `Number.POSITIVE_INFINITY` (never collapse), leaving the trail intact.
|
|
2070
|
-
*
|
|
2071
|
-
* No DOM, no Angular - the width source (a `CngxResizeObserver`) lives in the
|
|
2072
|
-
* bar; this stays jsdom-testable and shared by the bar and the headless recipe.
|
|
2073
|
-
*
|
|
2074
|
-
* @category common/interactive/breadcrumb
|
|
2075
|
-
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/breadcrumb/breadcrumb-responsive.ts
|
|
2076
|
-
* @since 0.1.0
|
|
2077
|
-
* @relatedTo CngxBreadcrumb, CngxBreadcrumbWidthTier, DEFAULT_BREADCRUMB_WIDTH_TIERS
|
|
2078
|
-
*/
|
|
2079
|
-
declare function resolveBreadcrumbTier(width: number, tiers: readonly CngxBreadcrumbWidthTier[]): number;
|
|
2080
|
-
|
|
2081
2532
|
/**
|
|
2082
2533
|
* Single-value boolean switch with W3C `role="switch"` semantics. Click,
|
|
2083
2534
|
* Space, and Enter all flip `value`; the directive form (`[cngxToggle]`)
|
|
@@ -2179,15 +2630,13 @@ declare class CngxToggle implements CngxControlValue<boolean>, CngxFormFieldCont
|
|
|
2179
2630
|
*/
|
|
2180
2631
|
protected readonly hasProjectedLabel: _angular_core.Signal<boolean>;
|
|
2181
2632
|
constructor();
|
|
2633
|
+
private readonly groupHost;
|
|
2182
2634
|
/** Stable per-instance id used for `<label for>` wiring. */
|
|
2183
2635
|
readonly id: _angular_core.Signal<string>;
|
|
2184
|
-
private readonly focusedState;
|
|
2185
2636
|
/** Whether the host element currently has DOM focus. */
|
|
2186
2637
|
readonly focused: _angular_core.Signal<boolean>;
|
|
2187
2638
|
/** True when the toggle is `false` (off) - boolean atom semantics. */
|
|
2188
2639
|
readonly empty: _angular_core.Signal<boolean>;
|
|
2189
|
-
private readonly fieldHost;
|
|
2190
|
-
private readonly aggregator;
|
|
2191
2640
|
/**
|
|
2192
2641
|
* Field-host→aggregator cascade. Inside `<cngx-form-field>` the
|
|
2193
2642
|
* presenter governs visibility (touched / strategy / scope). Outside
|
|
@@ -2303,8 +2752,8 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
|
|
|
2303
2752
|
*/
|
|
2304
2753
|
protected readonly hostTabindex: _angular_core.Signal<number | null>;
|
|
2305
2754
|
protected readonly ariaChecked: _angular_core.Signal<"true" | "false" | "mixed">;
|
|
2755
|
+
private readonly groupHost;
|
|
2306
2756
|
readonly id: _angular_core.Signal<string>;
|
|
2307
|
-
private readonly focusedState;
|
|
2308
2757
|
readonly focused: _angular_core.Signal<boolean>;
|
|
2309
2758
|
/**
|
|
2310
2759
|
* Empty when value is `false` AND not in tri-state intermediate. An
|
|
@@ -2312,8 +2761,6 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
|
|
|
2312
2761
|
* count as empty for forms purposes.
|
|
2313
2762
|
*/
|
|
2314
2763
|
readonly empty: _angular_core.Signal<boolean>;
|
|
2315
|
-
private readonly fieldHost;
|
|
2316
|
-
private readonly aggregator;
|
|
2317
2764
|
readonly errorState: _angular_core.Signal<boolean>;
|
|
2318
2765
|
protected readonly ariaInvalid: _angular_core.Signal<boolean>;
|
|
2319
2766
|
protected handleClick(): void;
|
|
@@ -2366,7 +2813,9 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
|
|
|
2366
2813
|
* `[state]` is an optional `CngxAsyncState<unknown>` input; when bound,
|
|
2367
2814
|
* `aria-busy` reflects `state.status() === 'loading'` reactively so AT
|
|
2368
2815
|
* announces the busy moment without the consumer wiring the attribute
|
|
2369
|
-
* by hand.
|
|
2816
|
+
* by hand. Without an explicit binding the group discovers an ancestor
|
|
2817
|
+
* `CNGX_STATEFUL` provider as fallback - the input always wins when
|
|
2818
|
+
* both are present.
|
|
2370
2819
|
*
|
|
2371
2820
|
* ```html
|
|
2372
2821
|
* <cngx-checkbox-group
|
|
@@ -2416,8 +2865,20 @@ declare class CngxCheckboxGroup<T = unknown> implements CngxControlValue<T[]>, C
|
|
|
2416
2865
|
readonly errorMessageId: _angular_core.InputSignal<string | null>;
|
|
2417
2866
|
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
2418
2867
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
2868
|
+
/**
|
|
2869
|
+
* Explicit `aria-labelledby` target id. Wins over the automatic
|
|
2870
|
+
* field-label reference applied inside a `cngx-form-field`.
|
|
2871
|
+
*/
|
|
2872
|
+
readonly labelledBy: _angular_core.InputSignal<string | undefined>;
|
|
2419
2873
|
readonly allValues: _angular_core.InputSignal<readonly T[] | undefined>;
|
|
2420
|
-
|
|
2874
|
+
/**
|
|
2875
|
+
* Optional async state driving `aria-busy`. An explicit binding wins;
|
|
2876
|
+
* when it is absent or `undefined`, an ancestor `CNGX_STATEFUL`
|
|
2877
|
+
* provider is discovered as fallback. A bare `state` attribute (empty
|
|
2878
|
+
* string) is treated as unset. `aria-busy` reflects
|
|
2879
|
+
* `status() === 'loading'`.
|
|
2880
|
+
*/
|
|
2881
|
+
readonly state: _angular_core.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
|
|
2421
2882
|
readonly keyFn: _angular_core.InputSignal<(value: T) => unknown>;
|
|
2422
2883
|
private readonly controller;
|
|
2423
2884
|
constructor();
|
|
@@ -2425,23 +2886,22 @@ declare class CngxCheckboxGroup<T = unknown> implements CngxControlValue<T[]>, C
|
|
|
2425
2886
|
readonly noneSelected: _angular_core.Signal<boolean>;
|
|
2426
2887
|
readonly allSelected: _angular_core.Signal<boolean>;
|
|
2427
2888
|
readonly someSelected: _angular_core.Signal<boolean>;
|
|
2889
|
+
private readonly groupHost;
|
|
2890
|
+
protected readonly ariaLabelledBy: _angular_core.Signal<string | null>;
|
|
2428
2891
|
protected readonly ariaBusy: _angular_core.Signal<boolean>;
|
|
2429
2892
|
toggleAll(): void;
|
|
2430
2893
|
select(value: T): void;
|
|
2431
2894
|
deselect(value: T): void;
|
|
2432
2895
|
readonly id: _angular_core.Signal<string>;
|
|
2433
|
-
private readonly focusedState;
|
|
2434
2896
|
readonly focused: _angular_core.Signal<boolean>;
|
|
2435
2897
|
/** Empty when no values selected. */
|
|
2436
2898
|
readonly empty: _angular_core.Signal<boolean>;
|
|
2437
|
-
private readonly fieldHost;
|
|
2438
|
-
private readonly aggregator;
|
|
2439
2899
|
readonly errorState: _angular_core.Signal<boolean>;
|
|
2440
2900
|
protected readonly ariaInvalid: _angular_core.Signal<boolean>;
|
|
2441
2901
|
protected handleFocusIn(): void;
|
|
2442
2902
|
protected handleFocusOut(): void;
|
|
2443
2903
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxCheckboxGroup<any>, never>;
|
|
2444
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxCheckboxGroup<any>, "cngx-checkbox-group, [cngxCheckboxGroup]", ["cngxCheckboxGroup"], { "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "allValues": { "alias": "allValues"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; }, { "selectedValues": "selectedValuesChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
2904
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxCheckboxGroup<any>, "cngx-checkbox-group, [cngxCheckboxGroup]", ["cngxCheckboxGroup"], { "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "labelledBy"; "required": false; "isSignal": true; }; "allValues": { "alias": "allValues"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; }, { "selectedValues": "selectedValuesChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
2445
2905
|
}
|
|
2446
2906
|
|
|
2447
2907
|
/**
|
|
@@ -2561,22 +3021,33 @@ declare class CngxButtonToggleGroup<T = unknown> implements CngxButtonToggleGrou
|
|
|
2561
3021
|
readonly errorMessageId: _angular_core.InputSignal<string | null>;
|
|
2562
3022
|
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
2563
3023
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
2564
|
-
|
|
2565
|
-
|
|
3024
|
+
/**
|
|
3025
|
+
* Explicit `aria-labelledby` target id. Wins over the automatic
|
|
3026
|
+
* field-label reference applied inside a `cngx-form-field`.
|
|
3027
|
+
*/
|
|
3028
|
+
readonly labelledBy: _angular_core.InputSignal<string | undefined>;
|
|
3029
|
+
/**
|
|
3030
|
+
* Optional async state driving `aria-busy`. An explicit binding wins;
|
|
3031
|
+
* when it is absent or `undefined`, an ancestor `CNGX_STATEFUL`
|
|
3032
|
+
* provider is discovered as fallback. A bare `state` attribute (empty
|
|
3033
|
+
* string) is treated as unset. `aria-busy` reflects
|
|
3034
|
+
* `status() === 'loading'`.
|
|
3035
|
+
*/
|
|
3036
|
+
readonly state: _angular_core.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
|
|
2566
3037
|
private readonly roving;
|
|
2567
3038
|
consumePendingArrowSelect(value: T): boolean;
|
|
3039
|
+
private readonly groupHost;
|
|
3040
|
+
protected readonly ariaLabelledBy: _angular_core.Signal<string | null>;
|
|
3041
|
+
protected readonly ariaBusy: _angular_core.Signal<boolean>;
|
|
2568
3042
|
readonly id: _angular_core.Signal<string>;
|
|
2569
|
-
private readonly focusedState;
|
|
2570
3043
|
readonly focused: _angular_core.Signal<boolean>;
|
|
2571
3044
|
/** Empty when no toggle is selected. */
|
|
2572
3045
|
readonly empty: _angular_core.Signal<boolean>;
|
|
2573
|
-
private readonly fieldHost;
|
|
2574
|
-
private readonly aggregator;
|
|
2575
3046
|
readonly errorState: _angular_core.Signal<boolean>;
|
|
2576
3047
|
protected handleFocusIn(): void;
|
|
2577
3048
|
protected handleFocusOut(): void;
|
|
2578
3049
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxButtonToggleGroup<any>, never>;
|
|
2579
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxButtonToggleGroup<any>, "cngx-button-toggle-group, [cngxButtonToggleGroup]", ["cngxButtonToggleGroup"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
3050
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxButtonToggleGroup<any>, "cngx-button-toggle-group, [cngxButtonToggleGroup]", ["cngxButtonToggleGroup"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "labelledBy"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
2580
3051
|
}
|
|
2581
3052
|
|
|
2582
3053
|
/**
|
|
@@ -2698,25 +3169,36 @@ declare class CngxButtonMultiToggleGroup<T = unknown> implements CngxButtonMulti
|
|
|
2698
3169
|
readonly errorMessageId: _angular_core.InputSignal<string | null>;
|
|
2699
3170
|
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
2700
3171
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
2701
|
-
|
|
3172
|
+
/**
|
|
3173
|
+
* Explicit `aria-labelledby` target id. Wins over the automatic
|
|
3174
|
+
* field-label reference applied inside a `cngx-form-field`.
|
|
3175
|
+
*/
|
|
3176
|
+
readonly labelledBy: _angular_core.InputSignal<string | undefined>;
|
|
3177
|
+
/**
|
|
3178
|
+
* Optional async state driving `aria-busy`. An explicit binding wins;
|
|
3179
|
+
* when it is absent or `undefined`, an ancestor `CNGX_STATEFUL`
|
|
3180
|
+
* provider is discovered as fallback. A bare `state` attribute (empty
|
|
3181
|
+
* string) is treated as unset. `aria-busy` reflects
|
|
3182
|
+
* `status() === 'loading'`.
|
|
3183
|
+
*/
|
|
3184
|
+
readonly state: _angular_core.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
|
|
2702
3185
|
readonly keyFn: _angular_core.InputSignal<(value: T) => unknown>;
|
|
2703
|
-
protected readonly ariaBusy: Signal<boolean>;
|
|
2704
3186
|
private readonly controller;
|
|
2705
3187
|
constructor();
|
|
2706
3188
|
isSelected(value: T): Signal<boolean>;
|
|
2707
3189
|
toggle(value: T): void;
|
|
3190
|
+
private readonly groupHost;
|
|
3191
|
+
protected readonly ariaLabelledBy: Signal<string | null>;
|
|
3192
|
+
protected readonly ariaBusy: Signal<boolean>;
|
|
2708
3193
|
readonly id: Signal<string>;
|
|
2709
|
-
private readonly focusedState;
|
|
2710
3194
|
readonly focused: Signal<boolean>;
|
|
2711
3195
|
/** Empty when no toggles are selected. */
|
|
2712
3196
|
readonly empty: Signal<boolean>;
|
|
2713
|
-
private readonly fieldHost;
|
|
2714
|
-
private readonly aggregator;
|
|
2715
3197
|
readonly errorState: Signal<boolean>;
|
|
2716
3198
|
protected handleFocusIn(): void;
|
|
2717
3199
|
protected handleFocusOut(): void;
|
|
2718
3200
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxButtonMultiToggleGroup<any>, never>;
|
|
2719
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxButtonMultiToggleGroup<any>, "cngx-button-multi-toggle-group, [cngxButtonMultiToggleGroup]", ["cngxButtonMultiToggleGroup"], { "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; }, { "selectedValues": "selectedValuesChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
3201
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxButtonMultiToggleGroup<any>, "cngx-button-multi-toggle-group, [cngxButtonMultiToggleGroup]", ["cngxButtonMultiToggleGroup"], { "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "labelledBy"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; }, { "selectedValues": "selectedValuesChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
2720
3202
|
}
|
|
2721
3203
|
|
|
2722
3204
|
/**
|
|
@@ -2730,8 +3212,8 @@ declare class CngxButtonMultiToggleGroup<T = unknown> implements CngxButtonMulti
|
|
|
2730
3212
|
* `CNGX_BUTTON_MULTI_TOGGLE_GROUP` (multi, toolbar) - never the
|
|
2731
3213
|
* concrete group class - both with `{ optional: true }`.
|
|
2732
3214
|
*
|
|
2733
|
-
* Exactly one parent must be present; the constructor throws
|
|
2734
|
-
* neither resolve. The resolved parent is stored as a discriminated
|
|
3215
|
+
* Exactly one parent must be present; the constructor throws a
|
|
3216
|
+
* `CngxRuntimeError` when both (`CNGX1052`) or neither (`CNGX1053`) resolve. The resolved parent is stored as a discriminated
|
|
2735
3217
|
* union (`{ mode: 'single' | 'multi'; group }`) so every downstream
|
|
2736
3218
|
* branch narrows without non-null assertions.
|
|
2737
3219
|
*
|
|
@@ -2954,20 +3436,31 @@ declare class CngxRadioGroup<T = unknown> implements CngxRadioGroupContract<T>,
|
|
|
2954
3436
|
readonly errorMessageId: _angular_core.InputSignal<string | null>;
|
|
2955
3437
|
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
2956
3438
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
2957
|
-
|
|
3439
|
+
/**
|
|
3440
|
+
* Explicit `aria-labelledby` target id. Wins over the automatic
|
|
3441
|
+
* field-label reference applied inside a `cngx-form-field`.
|
|
3442
|
+
*/
|
|
3443
|
+
readonly labelledBy: _angular_core.InputSignal<string | undefined>;
|
|
3444
|
+
/**
|
|
3445
|
+
* Optional async state driving `aria-busy`. An explicit binding wins;
|
|
3446
|
+
* when it is absent or `undefined`, an ancestor `CNGX_STATEFUL`
|
|
3447
|
+
* provider is discovered as fallback. A bare `state` attribute (empty
|
|
3448
|
+
* string) is treated as unset. `aria-busy` reflects
|
|
3449
|
+
* `status() === 'loading'`.
|
|
3450
|
+
*/
|
|
3451
|
+
readonly state: _angular_core.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
|
|
2958
3452
|
readonly nameInput: _angular_core.InputSignal<string | undefined>;
|
|
2959
|
-
protected readonly ariaBusy: _angular_core.Signal<boolean>;
|
|
2960
3453
|
private readonly fallbackName;
|
|
2961
3454
|
readonly name: _angular_core.Signal<string>;
|
|
2962
3455
|
private readonly registry;
|
|
2963
3456
|
private readonly roving;
|
|
3457
|
+
private readonly groupHost;
|
|
3458
|
+
protected readonly ariaLabelledBy: _angular_core.Signal<string | null>;
|
|
3459
|
+
protected readonly ariaBusy: _angular_core.Signal<boolean>;
|
|
2964
3460
|
readonly id: _angular_core.Signal<string>;
|
|
2965
|
-
private readonly focusedState;
|
|
2966
3461
|
readonly focused: _angular_core.Signal<boolean>;
|
|
2967
3462
|
/** Empty when no radio is selected. */
|
|
2968
3463
|
readonly empty: _angular_core.Signal<boolean>;
|
|
2969
|
-
private readonly fieldHost;
|
|
2970
|
-
private readonly aggregator;
|
|
2971
3464
|
readonly errorState: _angular_core.Signal<boolean>;
|
|
2972
3465
|
constructor();
|
|
2973
3466
|
register(radio: CngxRadioRegistration<T>): void;
|
|
@@ -2976,7 +3469,7 @@ declare class CngxRadioGroup<T = unknown> implements CngxRadioGroupContract<T>,
|
|
|
2976
3469
|
protected handleFocusIn(): void;
|
|
2977
3470
|
protected handleFocusOut(): void;
|
|
2978
3471
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxRadioGroup<any>, never>;
|
|
2979
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxRadioGroup<any>, "cngx-radio-group, [cngxRadioGroup]", ["cngxRadioGroup"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "nameInput": { "alias": "name"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: {}; outputs: {}; }]>;
|
|
3472
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxRadioGroup<any>, "cngx-radio-group, [cngxRadioGroup]", ["cngxRadioGroup"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "labelledBy"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "nameInput": { "alias": "name"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: {}; outputs: {}; }]>;
|
|
2980
3473
|
}
|
|
2981
3474
|
|
|
2982
3475
|
/**
|
|
@@ -3060,8 +3553,8 @@ declare class CngxRadio<T = unknown> {
|
|
|
3060
3553
|
/**
|
|
3061
3554
|
* Parent contract every chip-group molecule (`CngxChipGroup` single,
|
|
3062
3555
|
* `CngxMultiChipGroup` multi) provides via `useExisting`.
|
|
3063
|
-
* `CngxChipInGroup` leaves inject this token
|
|
3064
|
-
* the concrete group class - so the leaf stays decompose-ready and
|
|
3556
|
+
* `CngxChipInGroup` leaves inject this token through
|
|
3557
|
+
* `injectChipGroupHost()` - never the concrete group class - so the leaf stays decompose-ready and
|
|
3065
3558
|
* free of cyclic type dependencies, and the Phase 5 split between
|
|
3066
3559
|
* single + multi groups can share the same leaf implementation.
|
|
3067
3560
|
*
|
|
@@ -3092,10 +3585,9 @@ interface CngxChipGroupHost<T = unknown> {
|
|
|
3092
3585
|
* DI token a `CngxChipInGroup` leaf injects to find its parent chip
|
|
3093
3586
|
* group. Always provided via
|
|
3094
3587
|
* `{ provide: CNGX_CHIP_GROUP_HOST, useExisting: <Self> }` - never
|
|
3095
|
-
* via concrete-class injection. Required
|
|
3096
|
-
*
|
|
3097
|
-
*
|
|
3098
|
-
* worse).
|
|
3588
|
+
* via concrete-class injection. Required on the leaf side: a leaf
|
|
3589
|
+
* without a parent throws `CNGX1068` at construction (fail-fast -
|
|
3590
|
+
* silent dual-source-of-truth would be worse).
|
|
3099
3591
|
*
|
|
3100
3592
|
* Standalone chips outside any group use `[cngxChipInteraction]`
|
|
3101
3593
|
* instead, which provides `CNGX_CONTROL_VALUE` directly without ever
|
|
@@ -3242,13 +3734,11 @@ declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boole
|
|
|
3242
3734
|
readonly removeRequest: _angular_core.OutputEmitterRef<void>;
|
|
3243
3735
|
private readonly describedId;
|
|
3244
3736
|
protected readonly resolvedDescribedBy: _angular_core.Signal<string | null>;
|
|
3737
|
+
private readonly groupHost;
|
|
3245
3738
|
readonly id: _angular_core.Signal<string>;
|
|
3246
|
-
private readonly focusedState;
|
|
3247
3739
|
readonly focused: _angular_core.Signal<boolean>;
|
|
3248
3740
|
/** Empty when the chip is unselected - boolean atom semantics. */
|
|
3249
3741
|
readonly empty: _angular_core.Signal<boolean>;
|
|
3250
|
-
private readonly fieldHost;
|
|
3251
|
-
private readonly errorAggregator;
|
|
3252
3742
|
readonly errorState: _angular_core.Signal<boolean>;
|
|
3253
3743
|
constructor();
|
|
3254
3744
|
protected handleClick(event: MouseEvent): void;
|
|
@@ -3265,7 +3755,7 @@ declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boole
|
|
|
3265
3755
|
* `@cngx/common/display` and wires `role="option"` semantics that
|
|
3266
3756
|
* defer all selection mutations to the surrounding chip-group via
|
|
3267
3757
|
* `CNGX_CHIP_GROUP_HOST`. Required parent (NOT optional): a
|
|
3268
|
-
* `[cngxChipInGroup]` outside any group throws `
|
|
3758
|
+
* `[cngxChipInGroup]` outside any group throws `CNGX1068`
|
|
3269
3759
|
* at construction. Standalone interactive chips use
|
|
3270
3760
|
* `[cngxChipInteraction]` instead.
|
|
3271
3761
|
*
|
|
@@ -3337,7 +3827,7 @@ declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boole
|
|
|
3337
3827
|
* <example-url>http://localhost:4200/#/forms/field/form-primitives/signal-forms-drop-the-atom-into-cngx-form-field</example-url>
|
|
3338
3828
|
*/
|
|
3339
3829
|
declare class CngxChipInGroup<T = unknown> {
|
|
3340
|
-
protected readonly parent: CngxChipGroupHost<T>;
|
|
3830
|
+
protected readonly parent: _cngx_common_interactive.CngxChipGroupHost<T>;
|
|
3341
3831
|
readonly value: _angular_core.InputSignal<T>;
|
|
3342
3832
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
3343
3833
|
readonly describedBy: _angular_core.InputSignal<string | null>;
|
|
@@ -3429,25 +3919,36 @@ declare class CngxChipGroup<T = unknown> implements CngxControlValue<T | undefin
|
|
|
3429
3919
|
readonly errorMessageId: _angular_core.InputSignal<string | null>;
|
|
3430
3920
|
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
3431
3921
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
3432
|
-
|
|
3922
|
+
/**
|
|
3923
|
+
* Explicit `aria-labelledby` target id. Wins over the automatic
|
|
3924
|
+
* field-label reference applied inside a `cngx-form-field`.
|
|
3925
|
+
*/
|
|
3926
|
+
readonly labelledBy: _angular_core.InputSignal<string | undefined>;
|
|
3927
|
+
/**
|
|
3928
|
+
* Optional async state driving `aria-busy`. An explicit binding wins;
|
|
3929
|
+
* when it is absent or `undefined`, an ancestor `CNGX_STATEFUL`
|
|
3930
|
+
* provider is discovered as fallback. A bare `state` attribute (empty
|
|
3931
|
+
* string) is treated as unset. `aria-busy` reflects
|
|
3932
|
+
* `status() === 'loading'`.
|
|
3933
|
+
*/
|
|
3934
|
+
readonly state: _angular_core.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
|
|
3433
3935
|
/** CngxChipGroupHost - leaf-side cascade source. */
|
|
3434
3936
|
readonly isDisabled: _angular_core.ModelSignal<boolean>;
|
|
3937
|
+
private readonly groupHost;
|
|
3938
|
+
protected readonly ariaLabelledBy: _angular_core.Signal<string | null>;
|
|
3435
3939
|
protected readonly ariaBusy: _angular_core.Signal<boolean>;
|
|
3436
3940
|
isSelected(value: T): boolean;
|
|
3437
3941
|
toggle(value: T): void;
|
|
3438
3942
|
remove(value: T): void;
|
|
3439
3943
|
readonly id: _angular_core.Signal<string>;
|
|
3440
|
-
private readonly focusedState;
|
|
3441
3944
|
readonly focused: _angular_core.Signal<boolean>;
|
|
3442
3945
|
/** Empty when no chip is selected. */
|
|
3443
3946
|
readonly empty: _angular_core.Signal<boolean>;
|
|
3444
|
-
private readonly fieldHost;
|
|
3445
|
-
private readonly errorAggregator;
|
|
3446
3947
|
readonly errorState: _angular_core.Signal<boolean>;
|
|
3447
3948
|
protected handleFocusIn(): void;
|
|
3448
3949
|
protected handleFocusOut(): void;
|
|
3449
3950
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxChipGroup<any>, never>;
|
|
3450
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxChipGroup<any>, "cngx-chip-group, [cngxChipGroup]", ["cngxChipGroup"], { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
3951
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxChipGroup<any>, "cngx-chip-group, [cngxChipGroup]", ["cngxChipGroup"], { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "labelledBy"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
3451
3952
|
}
|
|
3452
3953
|
|
|
3453
3954
|
/**
|
|
@@ -3551,11 +4052,25 @@ declare class CngxMultiChipGroup<T = unknown> implements CngxControlValue<T[]>,
|
|
|
3551
4052
|
readonly errorMessageId: _angular_core.InputSignal<string | null>;
|
|
3552
4053
|
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
3553
4054
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
3554
|
-
|
|
4055
|
+
/**
|
|
4056
|
+
* Explicit `aria-labelledby` target id. Wins over the automatic
|
|
4057
|
+
* field-label reference applied inside a `cngx-form-field`.
|
|
4058
|
+
*/
|
|
4059
|
+
readonly labelledBy: _angular_core.InputSignal<string | undefined>;
|
|
4060
|
+
/**
|
|
4061
|
+
* Optional async state driving `aria-busy`. An explicit binding wins;
|
|
4062
|
+
* when it is absent or `undefined`, an ancestor `CNGX_STATEFUL`
|
|
4063
|
+
* provider is discovered as fallback. A bare `state` attribute (empty
|
|
4064
|
+
* string) is treated as unset. `aria-busy` reflects
|
|
4065
|
+
* `status() === 'loading'`.
|
|
4066
|
+
*/
|
|
4067
|
+
readonly state: _angular_core.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
|
|
3555
4068
|
readonly keyFn: _angular_core.InputSignal<(value: T) => unknown>;
|
|
3556
4069
|
/** CngxChipGroupHost - leaf-side cascade source. */
|
|
3557
4070
|
readonly isDisabled: _angular_core.ModelSignal<boolean>;
|
|
3558
4071
|
private readonly controller;
|
|
4072
|
+
private readonly groupHost;
|
|
4073
|
+
protected readonly ariaLabelledBy: _angular_core.Signal<string | null>;
|
|
3559
4074
|
protected readonly ariaBusy: _angular_core.Signal<boolean>;
|
|
3560
4075
|
/** Public membership count - useful for label hints + announcements. */
|
|
3561
4076
|
readonly selectedCount: _angular_core.Signal<number>;
|
|
@@ -3564,17 +4079,14 @@ declare class CngxMultiChipGroup<T = unknown> implements CngxControlValue<T[]>,
|
|
|
3564
4079
|
toggle(value: T): void;
|
|
3565
4080
|
remove(value: T): void;
|
|
3566
4081
|
readonly id: _angular_core.Signal<string>;
|
|
3567
|
-
private readonly focusedState;
|
|
3568
4082
|
readonly focused: _angular_core.Signal<boolean>;
|
|
3569
4083
|
/** Empty when no chips are selected. */
|
|
3570
4084
|
readonly empty: _angular_core.Signal<boolean>;
|
|
3571
|
-
private readonly fieldHost;
|
|
3572
|
-
private readonly errorAggregator;
|
|
3573
4085
|
readonly errorState: _angular_core.Signal<boolean>;
|
|
3574
4086
|
protected handleFocusIn(): void;
|
|
3575
4087
|
protected handleFocusOut(): void;
|
|
3576
4088
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMultiChipGroup<any>, never>;
|
|
3577
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxMultiChipGroup<any>, "cngx-multi-chip-group, [cngxMultiChipGroup]", ["cngxMultiChipGroup"], { "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; }, { "selectedValues": "selectedValuesChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
4089
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxMultiChipGroup<any>, "cngx-multi-chip-group, [cngxMultiChipGroup]", ["cngxMultiChipGroup"], { "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "labelledBy"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; }, { "selectedValues": "selectedValuesChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
3578
4090
|
}
|
|
3579
4091
|
|
|
3580
4092
|
/**
|
|
@@ -3699,7 +4211,8 @@ interface CngxTreeControllerOptions<T> {
|
|
|
3699
4211
|
* rather than a positional fallback.
|
|
3700
4212
|
*
|
|
3701
4213
|
* Resolution: per-options > app-wide `provideTreeConfig` default >
|
|
3702
|
-
*
|
|
4214
|
+
* `CngxRuntimeError` `CNGX1051`. At least one source must provide the
|
|
4215
|
+
* function.
|
|
3703
4216
|
*/
|
|
3704
4217
|
readonly nodeIdFn?: (value: T, path: readonly number[]) => string;
|
|
3705
4218
|
/**
|
|
@@ -3757,8 +4270,9 @@ interface CngxTreeControllerOptions<T> {
|
|
|
3757
4270
|
* the call in `untracked(() => ctrl.parentOf(id))`.
|
|
3758
4271
|
*
|
|
3759
4272
|
* ## Mutations
|
|
3760
|
-
* All mutators (`expand`, `collapse`, `toggle`, `
|
|
3761
|
-
* peek at the expansion set via `untracked()` so invoking
|
|
4273
|
+
* All mutators (`expand`, `collapse`, `toggle`, `reveal`, `expandAll`,
|
|
4274
|
+
* `collapseAll`) peek at the expansion set via `untracked()` so invoking
|
|
4275
|
+
* them from
|
|
3762
4276
|
* inside an `effect()` never latches that effect onto the expansion set.
|
|
3763
4277
|
*
|
|
3764
4278
|
* @category common/interactive/tree
|
|
@@ -3795,6 +4309,13 @@ interface CngxTreeController<T> {
|
|
|
3795
4309
|
expand(id: string): void;
|
|
3796
4310
|
collapse(id: string): void;
|
|
3797
4311
|
toggle(id: string): void;
|
|
4312
|
+
/**
|
|
4313
|
+
* Expand every ancestor of `id` so the node becomes visible. The node's
|
|
4314
|
+
* own expansion state stays untouched. No-op for unknown ids, for
|
|
4315
|
+
* root-level nodes, and when every ancestor is already expanded (the
|
|
4316
|
+
* expansion set keeps its reference in that case).
|
|
4317
|
+
*/
|
|
4318
|
+
reveal(id: string): void;
|
|
3798
4319
|
/** Expand every node that has children. No-op when already fully expanded. */
|
|
3799
4320
|
expandAll(): void;
|
|
3800
4321
|
collapseAll(): void;
|
|
@@ -3815,9 +4336,9 @@ interface CngxTreeController<T> {
|
|
|
3815
4336
|
* - Existing signal bindings created before destroy keep working - the
|
|
3816
4337
|
* underlying `expandedIds` signal is still live, so downstream updates
|
|
3817
4338
|
* continue to propagate.
|
|
3818
|
-
* - Mutators (`expand` / `collapse` / `toggle` / `
|
|
3819
|
-
* `collapseAll`) continue to function; post-destroy
|
|
3820
|
-
* repopulate the cache.
|
|
4339
|
+
* - Mutators (`expand` / `collapse` / `toggle` / `reveal` /
|
|
4340
|
+
* `expandAll` / `collapseAll`) continue to function; post-destroy
|
|
4341
|
+
* writes do NOT repopulate the cache.
|
|
3821
4342
|
*
|
|
3822
4343
|
* Idempotent. Prefer this over a hard teardown so long-lived consumer
|
|
3823
4344
|
* bindings that outlive the controller's active phase degrade
|
|
@@ -4233,7 +4754,7 @@ declare function createW3CTreeStrategy(): CngxHierarchicalNavStrategy;
|
|
|
4233
4754
|
declare const CNGX_HIERARCHICAL_NAV_STRATEGY: InjectionToken<CngxHierarchicalNavStrategy>;
|
|
4234
4755
|
|
|
4235
4756
|
/**
|
|
4236
|
-
* Configuration for `
|
|
4757
|
+
* Configuration for `createRetry()`.
|
|
4237
4758
|
*
|
|
4238
4759
|
* @category common/interactive/retry
|
|
4239
4760
|
*/
|
|
@@ -4282,7 +4803,7 @@ interface RetryState {
|
|
|
4282
4803
|
* Composes naturally with `CngxAsyncClick` and `CngxActionButton`:
|
|
4283
4804
|
*
|
|
4284
4805
|
* ```typescript
|
|
4285
|
-
* const [saveWithRetry, retryState] =
|
|
4806
|
+
* const [saveWithRetry, retryState] = createRetry(
|
|
4286
4807
|
* () => this.http.post('/api/save', data),
|
|
4287
4808
|
* { maxAttempts: 3, delay: 1000, backoff: 'exponential' }
|
|
4288
4809
|
* );
|
|
@@ -4295,7 +4816,15 @@ interface RetryState {
|
|
|
4295
4816
|
*
|
|
4296
4817
|
* @category common/interactive/retry
|
|
4297
4818
|
*/
|
|
4298
|
-
declare function
|
|
4819
|
+
declare function createRetry(action: AsyncAction, config?: RetryConfig): [AsyncAction, RetryState];
|
|
4820
|
+
/**
|
|
4821
|
+
* Alias of {@link createRetry} under the pre-convention name.
|
|
4822
|
+
*
|
|
4823
|
+
* @deprecated Use `createRetry` - this name is removed at the v1.0 cut
|
|
4824
|
+
* (`with*` is reserved for provider feature functions).
|
|
4825
|
+
* @category common/interactive/retry
|
|
4826
|
+
*/
|
|
4827
|
+
declare const withRetry: typeof createRetry;
|
|
4299
4828
|
|
|
4300
4829
|
/**
|
|
4301
4830
|
* State exposed by the optimistic action.
|
|
@@ -4327,7 +4856,7 @@ interface OptimisticState {
|
|
|
4327
4856
|
*
|
|
4328
4857
|
* ```typescript
|
|
4329
4858
|
* readonly name = signal('Alice');
|
|
4330
|
-
* readonly [updateName, nameState] =
|
|
4859
|
+
* readonly [updateName, nameState] = createOptimistic(
|
|
4331
4860
|
* this.name,
|
|
4332
4861
|
* (value) => this.http.put('/api/name', { name: value })
|
|
4333
4862
|
* );
|
|
@@ -4349,7 +4878,15 @@ interface OptimisticState {
|
|
|
4349
4878
|
*
|
|
4350
4879
|
* @category common/interactive/optimistic
|
|
4351
4880
|
*/
|
|
4352
|
-
declare function
|
|
4881
|
+
declare function createOptimistic<T>(current: WritableSignal<T>, action: (value: T) => Observable<T>): [(newValue: T) => void, OptimisticState];
|
|
4882
|
+
/**
|
|
4883
|
+
* Alias of {@link createOptimistic} under the pre-convention name.
|
|
4884
|
+
*
|
|
4885
|
+
* @deprecated Use `createOptimistic` - this name is removed at the
|
|
4886
|
+
* v1.0 cut (exported factories carry the `create` prefix).
|
|
4887
|
+
* @category common/interactive/optimistic
|
|
4888
|
+
*/
|
|
4889
|
+
declare const optimistic: typeof createOptimistic;
|
|
4353
4890
|
|
|
4354
4891
|
/**
|
|
4355
4892
|
* Detects long-press gestures via Pointer Events.
|
|
@@ -4542,7 +5079,14 @@ declare class CngxSwipeDismiss {
|
|
|
4542
5079
|
readonly swiping: _angular_core.Signal<boolean>;
|
|
4543
5080
|
/** Progress of the current swipe from 0 to 1 (clamped). */
|
|
4544
5081
|
readonly swipeProgress: _angular_core.Signal<number>;
|
|
5082
|
+
/**
|
|
5083
|
+
* The `touch-action` the host should advertise, derived from the dismiss
|
|
5084
|
+
* direction: a horizontal dismiss hands vertical panning back to native
|
|
5085
|
+
* scrolling and vice versa. No value is written while disabled.
|
|
5086
|
+
*/
|
|
5087
|
+
protected readonly touchAction: _angular_core.Signal<string | null>;
|
|
4545
5088
|
constructor();
|
|
5089
|
+
/** Signed delta along the dismiss direction; movement away from it is negative. */
|
|
4546
5090
|
private getDelta;
|
|
4547
5091
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSwipeDismiss, never>;
|
|
4548
5092
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxSwipeDismiss, "[cngxSwipeDismiss]", ["cngxSwipeDismiss"], { "direction": { "alias": "cngxSwipeDismiss"; "required": true; "isSignal": true; }; "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; }, { "swiped": "swiped"; }, never, never, true, never>;
|
|
@@ -4604,7 +5148,7 @@ interface CngxReorderEvent<T> {
|
|
|
4604
5148
|
* <span class="chip-strip" [cngxReorder]="values" (reordered)="apply($event)">
|
|
4605
5149
|
* @for (v of values(); track v; let i = $index) {
|
|
4606
5150
|
* <span class="chip" [attr.data-reorder-index]="i">
|
|
4607
|
-
* <button cngxReorderHandle aria-label="
|
|
5151
|
+
* <button cngxReorderHandle aria-label="Move item">⋮⋮</button>
|
|
4608
5152
|
* {{ v.label }}
|
|
4609
5153
|
* </span>
|
|
4610
5154
|
* }
|
|
@@ -4692,11 +5236,17 @@ declare class CngxReorder<T = unknown> {
|
|
|
4692
5236
|
private readonly doc;
|
|
4693
5237
|
private readonly direction;
|
|
4694
5238
|
private readonly destroyRef;
|
|
5239
|
+
/**
|
|
5240
|
+
* Cleanups of click suppressors whose window is still open. Routed
|
|
5241
|
+
* through ONE destroy hook (below) instead of a fresh
|
|
5242
|
+
* `DestroyRef.onDestroy` registration per completed drag - those
|
|
5243
|
+
* registrations were never released and accumulated over the
|
|
5244
|
+
* directive's lifetime.
|
|
5245
|
+
*/
|
|
5246
|
+
private readonly pendingSuppressorCleanups;
|
|
4695
5247
|
constructor();
|
|
4696
5248
|
private wirePointer;
|
|
4697
5249
|
private wireKeyboard;
|
|
4698
|
-
private wireDevModeCheck;
|
|
4699
|
-
private parseIndex;
|
|
4700
5250
|
private modifierMatches;
|
|
4701
5251
|
private isReorderKey;
|
|
4702
5252
|
private emitMove;
|
|
@@ -4708,8 +5258,8 @@ declare class CngxReorder<T = unknown> {
|
|
|
4708
5258
|
* itself after the first event, after a short watchdog timeout if
|
|
4709
5259
|
* no click ever fires (browsers skip the click when mouse travel
|
|
4710
5260
|
* exceeds the platform drag threshold), and on directive destroy
|
|
4711
|
-
*
|
|
4712
|
-
* iterations.
|
|
5261
|
+
* (via the routed `pendingSuppressorCleanups` set) so test fixtures
|
|
5262
|
+
* never leak a document-level handler across iterations.
|
|
4713
5263
|
*/
|
|
4714
5264
|
private installClickSuppressor;
|
|
4715
5265
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxReorder<any>, never>;
|
|
@@ -4888,7 +5438,7 @@ declare class CngxKeyboardShortcut {
|
|
|
4888
5438
|
/** Shortcut combo string, e.g. `'mod+s'`, `'ctrl+shift+k'`, `'escape'`. */
|
|
4889
5439
|
readonly shortcut: _angular_core.InputSignal<string>;
|
|
4890
5440
|
/** `'global'` listens on document; `'self'` listens only on the host element. */
|
|
4891
|
-
readonly scope: _angular_core.InputSignal<"
|
|
5441
|
+
readonly scope: _angular_core.InputSignal<"self" | "global">;
|
|
4892
5442
|
/** Whether the shortcut is active. */
|
|
4893
5443
|
readonly enabled: _angular_core.InputSignal<boolean>;
|
|
4894
5444
|
/** Emitted when the shortcut fires. */
|
|
@@ -4941,6 +5491,8 @@ declare class CngxSearch {
|
|
|
4941
5491
|
private readonly el;
|
|
4942
5492
|
private readonly renderer;
|
|
4943
5493
|
private readonly destroyRef;
|
|
5494
|
+
/** `clear()` notifier: switches the pipeline away from a pending debounce. */
|
|
5495
|
+
private readonly cleared;
|
|
4944
5496
|
constructor();
|
|
4945
5497
|
/** Clears the search term and resets the input element value. */
|
|
4946
5498
|
clear(): void;
|
|
@@ -5052,7 +5604,9 @@ declare class CngxBeforeUnload {
|
|
|
5052
5604
|
* ```
|
|
5053
5605
|
*
|
|
5054
5606
|
* @param isDirty - Callback that returns `true` when there are unsaved changes.
|
|
5055
|
-
* @param message - Confirmation message.
|
|
5607
|
+
* @param message - Confirmation message. Unset, it reads `unsavedChanges` of
|
|
5608
|
+
* `CNGX_INTERACTIVE_I18N` (English `'You have unsaved changes. Leave anyway?'`)
|
|
5609
|
+
* when the guard runs, so it follows the active language.
|
|
5056
5610
|
* @returns A functional guard compatible with Angular's `canDeactivate`.
|
|
5057
5611
|
*
|
|
5058
5612
|
* @category common/interactive/guard
|
|
@@ -5123,8 +5677,9 @@ declare class CngxCloseButton {
|
|
|
5123
5677
|
*
|
|
5124
5678
|
* Designed as a `hostDirective` composition primitive - attach it to
|
|
5125
5679
|
* components that need hover state without implementing their own
|
|
5126
|
-
* mouseenter/mouseleave logic.
|
|
5127
|
-
*
|
|
5680
|
+
* mouseenter/mouseleave logic. Host components read the read-only
|
|
5681
|
+
* `hovered` signal via `inject(CngxHoverable, { host: true })`; the
|
|
5682
|
+
* pointer events are the only writers.
|
|
5128
5683
|
*
|
|
5129
5684
|
* Used internally by `CngxTreetableRow` for row highlight-on-hover.
|
|
5130
5685
|
*
|
|
@@ -5152,8 +5707,12 @@ declare class CngxCloseButton {
|
|
|
5152
5707
|
* @relatedTo CngxPressable, CngxRipple
|
|
5153
5708
|
*/
|
|
5154
5709
|
declare class CngxHoverable {
|
|
5710
|
+
/** Backing state for {@link hovered}. */
|
|
5711
|
+
private readonly hoveredState;
|
|
5155
5712
|
/** `true` while the pointer is over the host element. */
|
|
5156
|
-
readonly hovered: _angular_core.
|
|
5713
|
+
readonly hovered: _angular_core.Signal<boolean>;
|
|
5714
|
+
protected handleMouseEnter(): void;
|
|
5715
|
+
protected handleMouseLeave(): void;
|
|
5157
5716
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxHoverable, never>;
|
|
5158
5717
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxHoverable, "[cngxHoverable]", ["cngxHoverable"], {}, {}, never, never, true, never>;
|
|
5159
5718
|
}
|
|
@@ -5219,14 +5778,30 @@ declare class CngxSpeak {
|
|
|
5219
5778
|
readonly pitch: _angular_core.InputSignal<number>;
|
|
5220
5779
|
/** Speech volume (0–1, default 1). */
|
|
5221
5780
|
readonly volume: _angular_core.InputSignal<number>;
|
|
5222
|
-
/**
|
|
5781
|
+
/**
|
|
5782
|
+
* BCP 47 language tag (e.g. `'de-DE'`). Empty string uses the app locale,
|
|
5783
|
+
* in the order cngx formatters read it: a provided `CNGX_LOCALE`
|
|
5784
|
+
* (`provideLocale`, `provideCngxI18n`), else a `LOCALE_ID` other than
|
|
5785
|
+
* `'en-US'`, else `<html lang>`, else the browser's default voice language.
|
|
5786
|
+
*
|
|
5787
|
+
* `'en-US'` is Angular's implicit `LOCALE_ID` when an app sets none, and an
|
|
5788
|
+
* explicit `'en-US'` cannot be told apart from it. A voice is chosen by its
|
|
5789
|
+
* language, so treating that default as a choice would read German page
|
|
5790
|
+
* text with an English voice; it falls through to `<html lang>` instead.
|
|
5791
|
+
* An app that wants American English speech says so with `provideLocale`,
|
|
5792
|
+
* `<html lang>` or this input.
|
|
5793
|
+
*/
|
|
5223
5794
|
readonly lang: _angular_core.InputSignal<string>;
|
|
5795
|
+
private readonly appLocale;
|
|
5796
|
+
private readonly locale;
|
|
5797
|
+
private readonly documentElement;
|
|
5224
5798
|
/** Controls auto-speak on text changes. Does NOT affect `speak()` or `cancel()`. */
|
|
5225
5799
|
readonly enabled: _angular_core.InputSignal<boolean>;
|
|
5226
5800
|
private readonly speakingState;
|
|
5227
5801
|
private readonly supportedState;
|
|
5228
5802
|
private readonly synth;
|
|
5229
5803
|
private readonly initialized;
|
|
5804
|
+
private activeUtterance;
|
|
5230
5805
|
/** Whether the browser supports the SpeechSynthesis API. */
|
|
5231
5806
|
readonly supported: boolean;
|
|
5232
5807
|
/** `true` while an utterance is being spoken. */
|
|
@@ -5234,11 +5809,20 @@ declare class CngxSpeak {
|
|
|
5234
5809
|
constructor();
|
|
5235
5810
|
/** Speak arbitrary text. Always works regardless of `enabled`. */
|
|
5236
5811
|
speak(text: string): void;
|
|
5237
|
-
/**
|
|
5812
|
+
/**
|
|
5813
|
+
* Cancel this directive's ongoing speech. A no-op while no own utterance
|
|
5814
|
+
* is live, so an idle instance never clears the shared synthesis queue.
|
|
5815
|
+
* (Starting a new utterance still interrupts whatever is playing -
|
|
5816
|
+
* `SpeechSynthesis` is a single audio channel.)
|
|
5817
|
+
*/
|
|
5238
5818
|
cancel(): void;
|
|
5239
5819
|
/** Toggle speech: speak text if idle, cancel if speaking. */
|
|
5240
5820
|
toggle(): void;
|
|
5821
|
+
private resolveAppLanguage;
|
|
5241
5822
|
private performSpeak;
|
|
5823
|
+
private cancelOwn;
|
|
5824
|
+
/** Ignores stale callbacks of a replaced utterance so a new one keeps `speaking` intact. */
|
|
5825
|
+
private finishUtterance;
|
|
5242
5826
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSpeak, never>;
|
|
5243
5827
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxSpeak, "[cngxSpeak]", ["cngxSpeak"], { "text": { "alias": "cngxSpeak"; "required": true; "isSignal": true; }; "rate": { "alias": "rate"; "required": false; "isSignal": true; }; "pitch": { "alias": "pitch"; "required": false; "isSignal": true; }; "volume": { "alias": "volume"; "required": false; "isSignal": true; }; "lang": { "alias": "lang"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5244
5828
|
}
|
|
@@ -5300,6 +5884,13 @@ declare const CNGX_OPTION_STATUS_HOST: InjectionToken<CngxOptionStatusHost>;
|
|
|
5300
5884
|
* Click highlights + activates, `pointerenter` highlights only. Provides a stable
|
|
5301
5885
|
* unique id on the host element for `aria-activedescendant` resolution.
|
|
5302
5886
|
*
|
|
5887
|
+
* An option never takes DOM focus. A mouse press keeps focus where it is: on
|
|
5888
|
+
* the external owner (a select trigger, a combobox or search input), or on the
|
|
5889
|
+
* enclosing `role="listbox"` when that listbox is its own tab stop
|
|
5890
|
+
* (`tabindex="0"`), which the press focuses if focus is elsewhere. Focusable
|
|
5891
|
+
* content inside an option, or a `tabindex` placed on the option itself, does
|
|
5892
|
+
* not receive focus from a click.
|
|
5893
|
+
*
|
|
5303
5894
|
* Selection state (`isSelected`) is driven externally by the enclosing listbox.
|
|
5304
5895
|
* In V1 of the stack, `CngxListbox` reads `value()` via the AD item list and
|
|
5305
5896
|
* exposes its own selection through `CngxOption.isSelected()`.
|
|
@@ -5370,7 +5961,8 @@ declare class CngxOption implements CngxAdItemHandle {
|
|
|
5370
5961
|
readonly isSelected: Signal<boolean>;
|
|
5371
5962
|
/**
|
|
5372
5963
|
* Reactive visibility derived from the optional `CNGX_OPTION_FILTER_HOST`
|
|
5373
|
-
* host's `searchTerm` and `matches` policy
|
|
5964
|
+
* host's `searchTerm` and `matches` policy (called with this option as the
|
|
5965
|
+
* fourth argument). `false` when no host is
|
|
5374
5966
|
* provided or the term is empty; `true` only when the host's policy
|
|
5375
5967
|
* explicitly rejects the option for the current term.
|
|
5376
5968
|
*
|
|
@@ -5402,6 +5994,7 @@ declare class CngxOption implements CngxAdItemHandle {
|
|
|
5402
5994
|
/** @internal Used by `CngxListbox` to sync selection state. */
|
|
5403
5995
|
markSelected(selected: boolean): void;
|
|
5404
5996
|
protected handleClick(): void;
|
|
5997
|
+
protected handleMouseDown(event: MouseEvent): void;
|
|
5405
5998
|
protected handlePointerEnter(): void;
|
|
5406
5999
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxOption, never>;
|
|
5407
6000
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxOption, "[cngxOption]", ["cngxOption"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "labelInput": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -5513,9 +6106,13 @@ interface CngxOptionFilterHost {
|
|
|
5513
6106
|
readonly searchTerm: Signal<string>;
|
|
5514
6107
|
/**
|
|
5515
6108
|
* Decides whether the option is a match for the active term. Receives the
|
|
5516
|
-
* option's value, its resolved plain-text label,
|
|
6109
|
+
* option's value, its resolved plain-text label, the current term, and the
|
|
6110
|
+
* calling `CngxOption` instance. The option is a stable identity across
|
|
6111
|
+
* filter runs, so a host can key per-option caches (a folded label, a
|
|
6112
|
+
* stable `{ value, label }` record) on it; a host that only needs value and
|
|
6113
|
+
* label leaves the parameter out.
|
|
5517
6114
|
*/
|
|
5518
|
-
matches<T>(value: T, label: string, term: string): boolean;
|
|
6115
|
+
matches<T>(value: T, label: string, term: string, option?: CngxOption): boolean;
|
|
5519
6116
|
}
|
|
5520
6117
|
/**
|
|
5521
6118
|
* DI token a host provides on itself when it wants to drive per-option
|
|
@@ -5598,6 +6195,34 @@ declare const CNGX_OPTION_INTERACTION_HOST: InjectionToken<CngxOptionInteraction
|
|
|
5598
6195
|
* @category common/interactive/listbox
|
|
5599
6196
|
*/
|
|
5600
6197
|
type ListboxMatchFn = (option: ActiveDescendantItem, term: string) => boolean;
|
|
6198
|
+
/**
|
|
6199
|
+
* The default listbox matcher: an accent- and case-tolerant substring match
|
|
6200
|
+
* of `option.label` against the term in the locale `locale` holds, built on
|
|
6201
|
+
* {@link createLabelMatcher}. It accepts any object with a `label`, so the
|
|
6202
|
+
* same function serves as a `ListboxMatchFn` and as a select-family matcher
|
|
6203
|
+
* over stable option definitions. The option object is the cache key, so each
|
|
6204
|
+
* label is folded once per label text and locale; the cache is a `WeakMap`
|
|
6205
|
+
* owned by the returned function and never outlives the options. An empty
|
|
6206
|
+
* term matches every option.
|
|
6207
|
+
*
|
|
6208
|
+
* Reach for it when a component filters `ActiveDescendantItem`s and wants the
|
|
6209
|
+
* same match a `CngxListboxSearch` applies by default, e.g. as the last arm
|
|
6210
|
+
* of an `input() ?? config ?? default` cascade. Create it once per host in an
|
|
6211
|
+
* injection context (field initializer) so the cache lives as long as the host.
|
|
6212
|
+
*
|
|
6213
|
+
* ```typescript
|
|
6214
|
+
* private readonly labelMatch = createListboxLabelMatch(injectLocale());
|
|
6215
|
+
* protected readonly matchFn = computed(() => this.matchFnInput() ?? this.labelMatch);
|
|
6216
|
+
* ```
|
|
6217
|
+
*
|
|
6218
|
+
* @category common/interactive
|
|
6219
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/listbox-search.directive.ts
|
|
6220
|
+
* @since 0.1.0
|
|
6221
|
+
* @relatedTo createLabelMatcher, CngxListboxSearch
|
|
6222
|
+
*/
|
|
6223
|
+
declare function createListboxLabelMatch(locale: Signal<string>): (option: {
|
|
6224
|
+
readonly label: string;
|
|
6225
|
+
}, term: string) => boolean;
|
|
5601
6226
|
/**
|
|
5602
6227
|
* Search input for a `CngxListbox`.
|
|
5603
6228
|
*
|
|
@@ -5615,13 +6240,16 @@ type ListboxMatchFn = (option: ActiveDescendantItem, term: string) => boolean;
|
|
|
5615
6240
|
* <example-url>http://localhost:4200/#/common/interactive/listbox/search/command-palette</example-url>
|
|
5616
6241
|
*/
|
|
5617
6242
|
declare class CngxListboxSearch {
|
|
5618
|
-
/**
|
|
6243
|
+
/**
|
|
6244
|
+
* Custom matcher. Defaults to a substring match on `label` that ignores
|
|
6245
|
+
* case and accents in the app locale.
|
|
6246
|
+
*/
|
|
5619
6247
|
readonly matchFn: _angular_core.InputSignal<ListboxMatchFn>;
|
|
5620
6248
|
private readonly search;
|
|
5621
6249
|
/** Current debounced search term (proxied from CngxSearch). */
|
|
5622
|
-
readonly term:
|
|
6250
|
+
readonly term: Signal<string>;
|
|
5623
6251
|
/** True when term is non-empty. */
|
|
5624
|
-
readonly hasValue:
|
|
6252
|
+
readonly hasValue: Signal<boolean>;
|
|
5625
6253
|
/** Clears the input. */
|
|
5626
6254
|
clear(): void;
|
|
5627
6255
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxListboxSearch, never>;
|
|
@@ -5661,7 +6289,7 @@ declare class CngxListboxSearch {
|
|
|
5661
6289
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/listbox.directive.ts
|
|
5662
6290
|
* @since 0.1.0
|
|
5663
6291
|
* @relatedTo CngxListboxSearch, CngxListboxTrigger, CngxOption, CngxOptionGroup, CngxActiveDescendant
|
|
5664
|
-
*
|
|
6292
|
+
* <example-url>http://localhost:4200/#/common/interactive/listbox/base/synced-listboxes</example-url>
|
|
5665
6293
|
* <example-url>http://localhost:4200/#/common/interactive/listbox/search/command-palette</example-url>
|
|
5666
6294
|
* <example-url>http://localhost:4200/#/common/interactive/listbox/trigger/select-dropdown</example-url>
|
|
5667
6295
|
* <example-url>http://localhost:4200/#/common/interactive/listbox/base/multi-select</example-url>
|
|
@@ -5765,7 +6393,7 @@ declare class CngxListbox<T = unknown> {
|
|
|
5765
6393
|
private hasOption;
|
|
5766
6394
|
private handleActivation;
|
|
5767
6395
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxListbox<any>, never>;
|
|
5768
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxListbox<any>, "[cngxListbox]", ["cngxListbox"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "cngxSearchRef": { "alias": "cngxSearchRef"; "required": false; "isSignal": true; }; "externalActivation": { "alias": "externalActivation"; "required": false; "isSignal": true; }; "explicitOptions": { "alias": "explicitOptions"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "selectedValues": "selectedValuesChange"; }, ["contentOptions"], never, true, [{ directive: typeof i1.CngxActiveDescendant; inputs: { "items": "items"; "orientation": "orientation"; "loop": "loop"; "typeahead": "typeahead"; "autoHighlightFirst": "autoHighlightFirst"; "virtualCount": "virtualCount"; "windowStart": "windowStart"; }; outputs: {}; }]>;
|
|
6396
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxListbox<any>, "[cngxListbox]", ["cngxListbox"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "cngxSearchRef": { "alias": "cngxSearchRef"; "required": false; "isSignal": true; }; "externalActivation": { "alias": "externalActivation"; "required": false; "isSignal": true; }; "explicitOptions": { "alias": "explicitOptions"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "selectedValues": "selectedValuesChange"; }, ["contentOptions"], never, true, [{ directive: typeof i1.CngxActiveDescendant; inputs: { "items": "items"; "orientation": "orientation"; "loop": "loop"; "typeahead": "typeahead"; "autoHighlightFirst": "autoHighlightFirst"; "virtualCount": "virtualCount"; "windowStart": "windowStart"; "compareWith": "compareWith"; }; outputs: { "activated": "activated"; }; }]>;
|
|
5769
6397
|
}
|
|
5770
6398
|
|
|
5771
6399
|
/**
|
|
@@ -5778,6 +6406,11 @@ interface PopoverController$1 {
|
|
|
5778
6406
|
readonly isVisible: () => boolean;
|
|
5779
6407
|
show(): void;
|
|
5780
6408
|
hide(): void;
|
|
6409
|
+
/**
|
|
6410
|
+
* Escape policy of the popover (`CngxPopover.closeOnEscape`). When it
|
|
6411
|
+
* reports `false` the trigger leaves Escape alone.
|
|
6412
|
+
*/
|
|
6413
|
+
readonly closeOnEscape?: () => boolean;
|
|
5781
6414
|
}
|
|
5782
6415
|
/**
|
|
5783
6416
|
* Trigger atom for listbox dropdowns.
|
|
@@ -5796,6 +6429,22 @@ interface PopoverController$1 {
|
|
|
5796
6429
|
* | open | Enter / Space | activate; close if `closeOnSelect()` |
|
|
5797
6430
|
* | any | Escape | close and restore focus to trigger |
|
|
5798
6431
|
*
|
|
6432
|
+
* On an `<input>` host with a co-located `CngxListboxSearch` (a combobox),
|
|
6433
|
+
* Space, Home and End are text-editing keys: they reach the input, open or
|
|
6434
|
+
* closed. Enter still activates and the arrows still navigate.
|
|
6435
|
+
*
|
|
6436
|
+
* Keys from an interactive descendant of the host (a chip remove button)
|
|
6437
|
+
* are left to that element.
|
|
6438
|
+
*
|
|
6439
|
+
* Pair it with `CngxPopoverTrigger` on the same element: that directive is
|
|
6440
|
+
* the one writer of `aria-haspopup`, `aria-expanded` and `aria-controls`.
|
|
6441
|
+
* This trigger writes none of them.
|
|
6442
|
+
*
|
|
6443
|
+
* The trigger keeps DOM focus, so it carries `aria-activedescendant`: the
|
|
6444
|
+
* listbox's active option id while the popover is open, no attribute while
|
|
6445
|
+
* closed (ARIA 1.2 combobox). It is the only writer of the attribute on
|
|
6446
|
+
* the trigger host; the listbox keeps its own for focus-in-listbox setups.
|
|
6447
|
+
*
|
|
5799
6448
|
* @category common/interactive/listbox
|
|
5800
6449
|
* @docsKind primary
|
|
5801
6450
|
* @wcag AA
|
|
@@ -5811,8 +6460,10 @@ declare class CngxListboxTrigger<T = unknown> {
|
|
|
5811
6460
|
readonly popover: _angular_core.InputSignal<PopoverController$1>;
|
|
5812
6461
|
/** Whether activating an option closes the popover. */
|
|
5813
6462
|
readonly closeOnSelect: _angular_core.InputSignal<boolean>;
|
|
5814
|
-
/** Mirrors `CngxPopover.isVisible()` for
|
|
6463
|
+
/** Mirrors `CngxPopover.isVisible()` for external read. */
|
|
5815
6464
|
readonly isOpen: _angular_core.Signal<boolean>;
|
|
6465
|
+
/** Active option id while open, `null` while closed. */
|
|
6466
|
+
protected readonly activeDescendant: _angular_core.Signal<string | null>;
|
|
5816
6467
|
/**
|
|
5817
6468
|
* Fires when the user presses Backspace on an empty input. Only
|
|
5818
6469
|
* emitted when the host element is an `<input>` with a co-located
|
|
@@ -5903,9 +6554,8 @@ interface CngxMenuSubmenuPopoverRef {
|
|
|
5903
6554
|
readonly isVisible: () => boolean;
|
|
5904
6555
|
show(): void;
|
|
5905
6556
|
hide(): void;
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
};
|
|
6557
|
+
/** Register the submenu parent item as the popover's anchor, or clear it. */
|
|
6558
|
+
setAnchorElement(el: HTMLElement | null): void;
|
|
5909
6559
|
/** Popover unique id signal - composes the `anchor-name` CSS value. */
|
|
5910
6560
|
readonly id: () => string;
|
|
5911
6561
|
/** Popover host element - submenu hover listeners attach here. */
|
|
@@ -6014,7 +6664,7 @@ declare class CngxMenu implements CngxMenuHost {
|
|
|
6014
6664
|
readonly ad: CngxActiveDescendant;
|
|
6015
6665
|
private readonly elementRef;
|
|
6016
6666
|
private readonly announcer;
|
|
6017
|
-
private readonly
|
|
6667
|
+
private readonly ariaLabels;
|
|
6018
6668
|
/** Internal registry backing {@link submenuItems}. */
|
|
6019
6669
|
private readonly _submenuItems;
|
|
6020
6670
|
/**
|
|
@@ -6073,11 +6723,8 @@ declare class CngxMenuItem<T = unknown> implements CngxAdItemHandle {
|
|
|
6073
6723
|
readonly value: _angular_core.InputSignal<T | undefined>;
|
|
6074
6724
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
6075
6725
|
readonly labelInput: _angular_core.InputSignal<string | undefined>;
|
|
6726
|
+
private readonly core;
|
|
6076
6727
|
readonly id: string;
|
|
6077
|
-
private readonly elementRef;
|
|
6078
|
-
private readonly ad;
|
|
6079
|
-
private readonly announcer;
|
|
6080
|
-
private readonly menuConfig;
|
|
6081
6728
|
readonly isHighlighted: _angular_core.Signal<boolean>;
|
|
6082
6729
|
readonly label: () => string;
|
|
6083
6730
|
protected handleClick(): void;
|
|
@@ -6208,7 +6855,7 @@ declare class CngxMenuItemSubmenu implements CngxMenuSubmenuLike {
|
|
|
6208
6855
|
private readonly menuHost;
|
|
6209
6856
|
private readonly wiring;
|
|
6210
6857
|
private readonly announcer;
|
|
6211
|
-
private readonly
|
|
6858
|
+
private readonly ariaLabels;
|
|
6212
6859
|
private readonly destroyRef;
|
|
6213
6860
|
private readonly ownId;
|
|
6214
6861
|
/** Popover resolved from the input, else the DI wiring fallback. */
|
|
@@ -6265,9 +6912,13 @@ declare class CngxMenuItemSubmenu implements CngxMenuSubmenuLike {
|
|
|
6265
6912
|
/**
|
|
6266
6913
|
* Recommended `position-try-fallbacks` chain for menu submenu popovers.
|
|
6267
6914
|
*
|
|
6268
|
-
*
|
|
6915
|
+
* A template cannot read a module constant, so expose it as a component
|
|
6916
|
+
* field and bind that field on the submenu's `cngxPopover` element:
|
|
6917
|
+
* ```ts
|
|
6918
|
+
* protected readonly submenuFallbacks = CNGX_SUBMENU_TRY_FALLBACKS;
|
|
6919
|
+
* ```
|
|
6269
6920
|
* ```html
|
|
6270
|
-
* <div cngxPopover [positionTryFallbacks]="
|
|
6921
|
+
* <div cngxPopover [positionTryFallbacks]="submenuFallbacks">
|
|
6271
6922
|
* <!-- submenu items -->
|
|
6272
6923
|
* </div>
|
|
6273
6924
|
* ```
|
|
@@ -6314,11 +6965,8 @@ declare class CngxMenuItemCheckbox<T = unknown> implements CngxAdItemHandle {
|
|
|
6314
6965
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
6315
6966
|
readonly labelInput: _angular_core.InputSignal<string | undefined>;
|
|
6316
6967
|
readonly checked: _angular_core.ModelSignal<boolean>;
|
|
6968
|
+
private readonly core;
|
|
6317
6969
|
readonly id: string;
|
|
6318
|
-
private readonly elementRef;
|
|
6319
|
-
private readonly ad;
|
|
6320
|
-
private readonly announcer;
|
|
6321
|
-
private readonly menuConfig;
|
|
6322
6970
|
readonly isHighlighted: _angular_core.Signal<boolean>;
|
|
6323
6971
|
readonly label: () => string;
|
|
6324
6972
|
protected handleClick(): void;
|
|
@@ -6344,12 +6992,9 @@ declare class CngxMenuItemRadio<T = unknown> implements CngxAdItemHandle {
|
|
|
6344
6992
|
readonly value: _angular_core.InputSignal<T>;
|
|
6345
6993
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
6346
6994
|
readonly labelInput: _angular_core.InputSignal<string | undefined>;
|
|
6347
|
-
readonly id: string;
|
|
6348
|
-
private readonly elementRef;
|
|
6349
|
-
private readonly ad;
|
|
6350
6995
|
private readonly group;
|
|
6351
|
-
private readonly
|
|
6352
|
-
|
|
6996
|
+
private readonly core;
|
|
6997
|
+
readonly id: string;
|
|
6353
6998
|
readonly isHighlighted: _angular_core.Signal<boolean>;
|
|
6354
6999
|
/** Whether this radio is the currently selected value in its group. */
|
|
6355
7000
|
readonly checked: _angular_core.Signal<boolean>;
|
|
@@ -6583,6 +7228,12 @@ interface CngxMenuFocusStack {
|
|
|
6583
7228
|
captureFocus(): void;
|
|
6584
7229
|
/** Restore focus to the captured element after the close DOM settles. */
|
|
6585
7230
|
restoreFocus(): void;
|
|
7231
|
+
/**
|
|
7232
|
+
* Drop the captured element without focusing it. For ownership handoffs
|
|
7233
|
+
* where another opener now owns focus and a restore would yank it away.
|
|
7234
|
+
* Optional so custom factory implementations stay assignable.
|
|
7235
|
+
*/
|
|
7236
|
+
discardFocus?(): void;
|
|
6586
7237
|
/** Escape: pop the innermost submenu, or hide the popover at the root. */
|
|
6587
7238
|
handleEscape(event: KeyboardEvent): void;
|
|
6588
7239
|
/** ArrowRight: open the active item's submenu when the policy allows. */
|
|
@@ -6731,17 +7382,13 @@ declare const CNGX_MENU_FOCUS_STACK_FACTORY: InjectionToken<CngxMenuFocusStackFa
|
|
|
6731
7382
|
|
|
6732
7383
|
/**
|
|
6733
7384
|
* Localised UI strings the menu announces or otherwise renders. English by
|
|
6734
|
-
* default; consumers override via {@link withAriaLabels}.
|
|
7385
|
+
* default; consumers override via {@link withAriaLabels}. The same shape as
|
|
7386
|
+
* the menu section of a language pack, declared once as
|
|
7387
|
+
* {@link CngxMenuLanguageSection}.
|
|
6735
7388
|
*
|
|
6736
7389
|
* @category common/interactive/menu
|
|
6737
7390
|
*/
|
|
6738
|
-
|
|
6739
|
-
readonly submenuOpened: string;
|
|
6740
|
-
readonly submenuClosed: string;
|
|
6741
|
-
readonly itemActivated: string;
|
|
6742
|
-
readonly itemDisabled: string;
|
|
6743
|
-
readonly menuDismissed: string;
|
|
6744
|
-
}
|
|
7391
|
+
type CngxMenuAriaLabels = CngxMenuLanguageSection;
|
|
6745
7392
|
/**
|
|
6746
7393
|
* Resolved configuration consumed by every menu directive in the family.
|
|
6747
7394
|
* Default values live in {@link DEFAULT_MENU_CONFIG}; override at app
|
|
@@ -6751,7 +7398,7 @@ interface CngxMenuAriaLabels {
|
|
|
6751
7398
|
* @category common/interactive/menu
|
|
6752
7399
|
*/
|
|
6753
7400
|
interface CngxMenuConfig {
|
|
6754
|
-
readonly ariaLabels: CngxMenuAriaLabels
|
|
7401
|
+
readonly ariaLabels: CngxMenuAriaLabels | Signal<CngxMenuAriaLabels>;
|
|
6755
7402
|
readonly typeaheadDebounce: number;
|
|
6756
7403
|
/** Hover dwell (ms) before a hovered submenu parent opens. Default `0`. */
|
|
6757
7404
|
readonly submenuOpenDelay: number;
|
|
@@ -6800,18 +7447,18 @@ type CngxMenuConfigFeature = ((config: CngxMenuConfig) => CngxMenuConfig) & {
|
|
|
6800
7447
|
readonly _target?: 'config';
|
|
6801
7448
|
};
|
|
6802
7449
|
/**
|
|
6803
|
-
* Library-default menu configuration
|
|
6804
|
-
*
|
|
6805
|
-
* `
|
|
7450
|
+
* Library-default menu configuration with the English labels. The token's
|
|
7451
|
+
* default reads `ariaLabels` from the menu section of the active language
|
|
7452
|
+
* pack instead; `withAriaLabels` overrides single labels on top.
|
|
6806
7453
|
*
|
|
6807
7454
|
* @category common/interactive/menu
|
|
6808
7455
|
*/
|
|
6809
7456
|
declare const DEFAULT_MENU_CONFIG: CngxMenuConfig;
|
|
6810
7457
|
/**
|
|
6811
7458
|
* DI token carrying the resolved {@link CngxMenuConfig}. Defaults to
|
|
6812
|
-
* {@link DEFAULT_MENU_CONFIG}
|
|
6813
|
-
*
|
|
6814
|
-
* `viewProviders`).
|
|
7459
|
+
* {@link DEFAULT_MENU_CONFIG} with the language pack's labels at root;
|
|
7460
|
+
* override via {@link provideMenuConfig} (app-wide) or
|
|
7461
|
+
* {@link provideMenuConfigAt} (component scope via `viewProviders`).
|
|
6815
7462
|
*
|
|
6816
7463
|
* @category common/interactive/menu
|
|
6817
7464
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-config.ts
|
|
@@ -6859,7 +7506,7 @@ declare function injectMenuConfig(): CngxMenuConfig;
|
|
|
6859
7506
|
*
|
|
6860
7507
|
* @category common/interactive/menu
|
|
6861
7508
|
*/
|
|
6862
|
-
declare function withAriaLabels(partial: Partial<CngxMenuAriaLabels>): CngxMenuConfigFeature;
|
|
7509
|
+
declare function withAriaLabels(partial: Partial<CngxMenuAriaLabels> | Signal<Partial<CngxMenuAriaLabels>>): CngxMenuConfigFeature;
|
|
6863
7510
|
/**
|
|
6864
7511
|
* Override the typeahead debounce window (milliseconds) for menu
|
|
6865
7512
|
* navigation. Default: `300`.
|
|
@@ -7249,9 +7896,8 @@ declare function injectMenuAnnouncer(): CngxMenuAnnouncerLike;
|
|
|
7249
7896
|
*/
|
|
7250
7897
|
interface CngxContextMenuTriggerPopoverRef extends CngxMenuDismissPopoverRef {
|
|
7251
7898
|
show(): void;
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
};
|
|
7899
|
+
/** Register the virtual pointer-coordinate anchor, or clear it. */
|
|
7900
|
+
setAnchorElement(el: HTMLElement | null): void;
|
|
7255
7901
|
/**
|
|
7256
7902
|
* Popover unique id signal - used to compose the `anchor-name` CSS value
|
|
7257
7903
|
* the browser's CSS Anchor Positioning expects on the anchor element.
|
|
@@ -7313,6 +7959,14 @@ interface CngxContextMenuTriggerCoreDeps {
|
|
|
7313
7959
|
* right-click-always-opens behaviour.
|
|
7314
7960
|
*/
|
|
7315
7961
|
readonly resolveOpen?: (event: MouseEvent) => CngxContextMenuOpenDecision;
|
|
7962
|
+
/**
|
|
7963
|
+
* Veto/datum seam for the keyboard open gesture (`Shift+F10`). Evaluated
|
|
7964
|
+
* before `preventDefault()`, mirroring {@link resolveOpen}; the resolved
|
|
7965
|
+
* context goes through {@link commitContext} exactly like a pointer open,
|
|
7966
|
+
* so a keyboard open never serves a stale datum from an earlier
|
|
7967
|
+
* right-click. Defaults to always-open with `undefined` context.
|
|
7968
|
+
*/
|
|
7969
|
+
readonly resolveKeyboardOpen?: (event: KeyboardEvent) => CngxContextMenuOpenDecision;
|
|
7316
7970
|
/** Receives the resolved context on a successful open. No-op by default. */
|
|
7317
7971
|
readonly commitContext?: (context: unknown) => void;
|
|
7318
7972
|
}
|
|
@@ -7361,6 +8015,14 @@ interface CngxContextMenuTriggerCore {
|
|
|
7361
8015
|
noteActiveSubmenuOpened(): void;
|
|
7362
8016
|
/** Drive from the directive's `isOpen` effect (inside `untracked`). */
|
|
7363
8017
|
syncOpenState(open: boolean): void;
|
|
8018
|
+
/**
|
|
8019
|
+
* Relinquish an open WITHOUT restoring focus: detach the dismiss binding,
|
|
8020
|
+
* clear the submenu stack, and discard the saved pre-open focus. For the
|
|
8021
|
+
* shared-panel handoff - when a sibling trigger claims the still-visible
|
|
8022
|
+
* panel, the losing core must stand down silently; a `syncOpenState(false)`
|
|
8023
|
+
* would yank focus out of the menu the new owner just opened.
|
|
8024
|
+
*/
|
|
8025
|
+
standDown(): void;
|
|
7364
8026
|
/** Teardown - call from the directive's `DestroyRef.onDestroy`. */
|
|
7365
8027
|
destroy(): void;
|
|
7366
8028
|
}
|
|
@@ -7394,7 +8056,7 @@ declare function createContextMenuTriggerCore(deps: CngxContextMenuTriggerCoreDe
|
|
|
7394
8056
|
* the always-open, always-`preventDefault` behaviour.
|
|
7395
8057
|
*
|
|
7396
8058
|
* Anchoring uses a transient zero-size DOM element positioned at the
|
|
7397
|
-
* pointer coords,
|
|
8059
|
+
* pointer coords, installed via the popover's `setAnchorElement` - virtual
|
|
7398
8060
|
* `getBoundingClientRect` objects are not yet supported as anchors, so
|
|
7399
8061
|
* the transient div is the workaround.
|
|
7400
8062
|
*
|
|
@@ -7544,6 +8206,7 @@ declare class CngxMenuTrigger {
|
|
|
7544
8206
|
private readonly direction;
|
|
7545
8207
|
private readonly hostElRef;
|
|
7546
8208
|
private readonly menuConfig;
|
|
8209
|
+
private readonly ariaLabels;
|
|
7547
8210
|
private readonly announcer;
|
|
7548
8211
|
/**
|
|
7549
8212
|
* Submenu focus-stack model - the active submenu chain, the saved-focus
|
|
@@ -7908,16 +8571,18 @@ declare class CngxErrorAggregator implements CngxErrorAggregatorContract {
|
|
|
7908
8571
|
* test harnesses) can inspect or drive form-error state without traversing
|
|
7909
8572
|
* the DOM. Directives with `cngxErrorScopeName` / `cngxErrorAggregatorName`
|
|
7910
8573
|
* inputs auto-register here when the registry is provided in the host
|
|
7911
|
-
* environment
|
|
8574
|
+
* environment via {@link provideErrorRegistry}.
|
|
7912
8575
|
*
|
|
7913
8576
|
* Not `providedIn: 'root'` - consumers opt in by including
|
|
7914
8577
|
* `provideErrorRegistry()` in their `bootstrapApplication` providers. When
|
|
7915
8578
|
* the registry is absent, the directives skip registration and keep their
|
|
7916
8579
|
* pure DOM behaviour.
|
|
7917
8580
|
*
|
|
7918
|
-
* @
|
|
7919
|
-
*
|
|
7920
|
-
*
|
|
8581
|
+
* @category common/interactive/error
|
|
8582
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/error-registry.ts
|
|
8583
|
+
* @since 0.1.0
|
|
8584
|
+
* @relatedTo CngxErrorScope, CngxErrorAggregator, CngxErrorSource
|
|
8585
|
+
* <example-url>http://localhost:4200/#/common/interactive/error/registry/provider-and-reveal-features</example-url>
|
|
7921
8586
|
*/
|
|
7922
8587
|
declare class CngxErrorRegistry {
|
|
7923
8588
|
private readonly scopesState;
|
|
@@ -7951,8 +8616,12 @@ declare class CngxErrorRegistry {
|
|
|
7951
8616
|
* value.
|
|
7952
8617
|
*/
|
|
7953
8618
|
registerScope(name: string, scope: CngxErrorScopeContract): void;
|
|
7954
|
-
/**
|
|
7955
|
-
|
|
8619
|
+
/**
|
|
8620
|
+
* Removes the named scope, but only when `scope` is the stored instance.
|
|
8621
|
+
* No-op if absent or if a different instance holds the name - a late
|
|
8622
|
+
* destroy of a swap-absorbed duplicate must not evict the live winner.
|
|
8623
|
+
*/
|
|
8624
|
+
unregisterScope(name: string, scope: CngxErrorScopeContract): void;
|
|
7956
8625
|
/** Returns the named scope, or `undefined` when not registered. */
|
|
7957
8626
|
getScope(name: string): CngxErrorScopeContract | undefined;
|
|
7958
8627
|
/**
|
|
@@ -7967,8 +8636,12 @@ declare class CngxErrorRegistry {
|
|
|
7967
8636
|
* for a true swap.
|
|
7968
8637
|
*/
|
|
7969
8638
|
registerAggregator(name: string, aggregator: CngxErrorAggregatorContract): void;
|
|
7970
|
-
/**
|
|
7971
|
-
|
|
8639
|
+
/**
|
|
8640
|
+
* Removes the named aggregator, but only when `aggregator` is the stored
|
|
8641
|
+
* instance. No-op if absent or if a different instance holds the name - a
|
|
8642
|
+
* late destroy of a swap-absorbed duplicate must not evict the live winner.
|
|
8643
|
+
*/
|
|
8644
|
+
unregisterAggregator(name: string, aggregator: CngxErrorAggregatorContract): void;
|
|
7972
8645
|
/** Returns the named aggregator, or `undefined` when not registered. */
|
|
7973
8646
|
getAggregator(name: string): CngxErrorAggregatorContract | undefined;
|
|
7974
8647
|
/** Reveals the named scope. Idempotent; no-op if name not registered. */
|
|
@@ -7996,9 +8669,11 @@ declare class CngxErrorRegistry {
|
|
|
7996
8669
|
* Must be called in an injection context (constructor, factory provider,
|
|
7997
8670
|
* `runInInjectionContext`).
|
|
7998
8671
|
*
|
|
7999
|
-
* @
|
|
8000
|
-
*
|
|
8001
|
-
*
|
|
8672
|
+
* @category common/interactive/error
|
|
8673
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/inject-error-scope.ts
|
|
8674
|
+
* @since 0.1.0
|
|
8675
|
+
* @relatedTo CngxErrorScope
|
|
8676
|
+
* <example-url>http://localhost:4200/#/common/interactive/error/registry/inject-error-scope-programmatic</example-url>
|
|
8002
8677
|
*/
|
|
8003
8678
|
declare function injectErrorScope(name?: string): CngxErrorScopeContract;
|
|
8004
8679
|
|
|
@@ -8028,25 +8703,30 @@ declare function injectErrorScope(name?: string): CngxErrorScopeContract;
|
|
|
8028
8703
|
* ({@link `@cngx/common/interactive`#CngxErrorAggregator}) and the
|
|
8029
8704
|
* function form share a single source of truth.
|
|
8030
8705
|
*
|
|
8031
|
-
* @
|
|
8032
|
-
*
|
|
8033
|
-
*
|
|
8706
|
+
* @category common/interactive/error
|
|
8707
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/inject-error-aggregator.ts
|
|
8708
|
+
* @since 0.1.0
|
|
8709
|
+
* @relatedTo CngxErrorAggregator
|
|
8710
|
+
* <example-url>http://localhost:4200/#/common/interactive/error/registry/inject-error-aggregator-programmatic</example-url>
|
|
8034
8711
|
*/
|
|
8035
8712
|
declare function injectErrorAggregator(name?: string, sources?: Record<string, Signal<boolean>>, scope?: CngxErrorScopeContract, labels?: Record<string, string>): CngxErrorAggregatorContract;
|
|
8036
8713
|
|
|
8037
8714
|
/**
|
|
8038
|
-
*
|
|
8039
|
-
*
|
|
8040
|
-
*
|
|
8715
|
+
* Feature-composition accumulator for {@link provideErrorRegistry}.
|
|
8716
|
+
*
|
|
8717
|
+
* @internal
|
|
8041
8718
|
*/
|
|
8042
8719
|
interface _ErrorRegistryConfig {
|
|
8043
8720
|
revealOnSubmit?: boolean;
|
|
8044
8721
|
revealOnNavigate?: boolean;
|
|
8045
8722
|
}
|
|
8046
8723
|
/**
|
|
8047
|
-
*
|
|
8048
|
-
*
|
|
8049
|
-
*
|
|
8724
|
+
* A feature configuration function accepted by {@link provideErrorRegistry},
|
|
8725
|
+
* returned by the `with*` helpers. Mirrors the `NavConfigFeature` shape.
|
|
8726
|
+
*
|
|
8727
|
+
* @category common/interactive/error
|
|
8728
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/provide-error-registry.ts
|
|
8729
|
+
* @since 0.1.0
|
|
8050
8730
|
*/
|
|
8051
8731
|
interface ErrorRegistryFeature {
|
|
8052
8732
|
/** @internal */
|
|
@@ -8071,9 +8751,11 @@ interface ErrorRegistryFeature {
|
|
|
8071
8751
|
* });
|
|
8072
8752
|
* ```
|
|
8073
8753
|
*
|
|
8074
|
-
* @
|
|
8075
|
-
*
|
|
8076
|
-
*
|
|
8754
|
+
* @category common/interactive/error
|
|
8755
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/provide-error-registry.ts
|
|
8756
|
+
* @since 0.1.0
|
|
8757
|
+
* @relatedTo CngxErrorScope, CngxErrorAggregator
|
|
8758
|
+
* <example-url>http://localhost:4200/#/common/interactive/error/registry/provider-and-reveal-features</example-url>
|
|
8077
8759
|
*/
|
|
8078
8760
|
declare function provideErrorRegistry(...features: ErrorRegistryFeature[]): EnvironmentProviders;
|
|
8079
8761
|
/**
|
|
@@ -8091,9 +8773,10 @@ declare function provideErrorRegistry(...features: ErrorRegistryFeature[]): Envi
|
|
|
8091
8773
|
* instead - the scope-name registration path stays available without
|
|
8092
8774
|
* the global listener.
|
|
8093
8775
|
*
|
|
8094
|
-
* @
|
|
8095
|
-
*
|
|
8096
|
-
*
|
|
8776
|
+
* @category common/interactive/error
|
|
8777
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/provide-error-registry.ts
|
|
8778
|
+
* @since 0.1.0
|
|
8779
|
+
* <example-url>http://localhost:4200/#/common/interactive/error/registry/provider-and-reveal-features</example-url>
|
|
8097
8780
|
*/
|
|
8098
8781
|
declare function withGlobalRevealOnSubmit(): ErrorRegistryFeature;
|
|
8099
8782
|
/**
|
|
@@ -8109,11 +8792,12 @@ declare function withGlobalRevealOnSubmit(): ErrorRegistryFeature;
|
|
|
8109
8792
|
* the common pattern (reveal-all on attempted navigation) but surface
|
|
8110
8793
|
* the implication when wiring a guard that cancels based on form errors.
|
|
8111
8794
|
*
|
|
8112
|
-
* @
|
|
8113
|
-
*
|
|
8114
|
-
*
|
|
8795
|
+
* @category common/interactive/error
|
|
8796
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/provide-error-registry.ts
|
|
8797
|
+
* @since 0.1.0
|
|
8798
|
+
* <example-url>http://localhost:4200/#/common/interactive/error/registry/provider-and-reveal-features</example-url>
|
|
8115
8799
|
*/
|
|
8116
8800
|
declare function withRevealOnNavigate(): ErrorRegistryFeature;
|
|
8117
8801
|
|
|
8118
|
-
export { CNGX_ACCORDION, CNGX_BREADCRUMB, CNGX_BREADCRUMB_COLLAPSE_STRATEGY, CNGX_BUTTON_MULTI_TOGGLE_GROUP, CNGX_BUTTON_TOGGLE_GROUP, CNGX_CHIP_GROUP_HOST, CNGX_CHIP_STRIP_ROVING_FACTORY, CNGX_CLOSE_ICON, CNGX_CONTROL_VALUE, CNGX_ERROR_AGGREGATOR, CNGX_ERROR_SCOPE, CNGX_HIERARCHICAL_NAV_STRATEGY, CNGX_HOVER_INTENT_DEFAULTS, CNGX_MENU_ANNOUNCER_FACTORY, CNGX_MENU_CONFIG, CNGX_MENU_DISMISS_HANDLER_FACTORY, CNGX_MENU_FOCUS_STACK_FACTORY, CNGX_MENU_HOST, CNGX_MENU_NAV_STRATEGY, CNGX_MENU_RADIO_GROUP, CNGX_MENU_SUBMENU_ITEM, CNGX_MENU_SUBMENU_WIRING, CNGX_NAV_CONFIG, CNGX_OPTION_CONTAINER, CNGX_OPTION_FILTER_HOST, CNGX_OPTION_INTERACTION_HOST, CNGX_OPTION_STATUS_HOST, CNGX_RADIO_GROUP, CNGX_SLIDER_RANGE, CNGX_SUBMENU_TRY_FALLBACKS, CNGX_TREE_CONFIG, CNGX_TREE_CONTROLLER_FACTORY, CngxAccordion, CngxAccordionPanel, CngxAsyncClick, CngxAsyncStatus, CngxBeforeUnload, CngxBreadcrumb, CngxBreadcrumbItem, CngxBreadcrumbSeparator, CngxButtonMultiToggleGroup, CngxButtonToggle, CngxButtonToggleGroup, CngxCheckbox, CngxCheckboxGroup, CngxChipGroup, CngxChipInGroup, CngxChipInput, CngxChipInteraction, CngxClickOutside, CngxCloseButton, CngxContextMenuTrigger, CngxCopyBlock, CngxCopyText, CngxDisclosure, CngxErrorAggregator, CngxErrorRegistry, CngxErrorScope, CngxErrorSource, CngxErrorState, CngxExpandable, CngxFailed, CngxHierarchicalNav, CngxHoverIntent, CngxHoverable, CngxKeyboardShortcut, CngxListbox, CngxListboxSearch, CngxListboxTrigger, CngxLongPress, CngxMenu, CngxMenuAnnouncer, CngxMenuGroup, CngxMenuItem, CngxMenuItemCheckbox, CngxMenuItemIcon, CngxMenuItemKbd, CngxMenuItemLabel, CngxMenuItemRadio, CngxMenuItemSubmenu, CngxMenuItemSuffix, CngxMenuSeparator, CngxMenuTrigger, CngxMultiChipGroup, CngxNavBadge, CngxNavGroup, CngxNavGroupRegistry, CngxNavLabel, CngxNavLink, CngxOption, CngxOptionGroup, CngxPending, CngxPressRipple, CngxPressable, CngxRadio, CngxRadioGroup, CngxRangeSlider, CngxRangeSliderTrack, CngxReorder, CngxRipple, CngxSearch, CngxSlider, CngxSliderThumb, CngxSliderTrack, CngxSpeak, CngxSucceeded, CngxSwipe, CngxSwipeDismiss, CngxToggle,
|
|
8119
|
-
export type { AsyncAction, CngxAccordionHeaderHandle, CngxAccordionHost, CngxAccordionKeyboardNav, CngxAccordionKeyboardNavHost, CngxAccordionKeyboardNavOptions, CngxAsyncDisplayStatus, CngxBreadcrumbCollapseStrategy, CngxBreadcrumbHost,
|
|
8802
|
+
export { CNGX_ACCORDION, CNGX_BREADCRUMB, CNGX_BREADCRUMB_COLLAPSE_STRATEGY, CNGX_BUTTON_MULTI_TOGGLE_GROUP, CNGX_BUTTON_TOGGLE_GROUP, CNGX_CHIP_GROUP_HOST, CNGX_CHIP_STRIP_ROVING_FACTORY, CNGX_CLOSE_ICON, CNGX_CONTROL_VALUE, CNGX_ERROR_AGGREGATOR, CNGX_ERROR_SCOPE, CNGX_HIERARCHICAL_NAV_STRATEGY, CNGX_HOVER_INTENT_DEFAULTS, CNGX_INTERACTIVE_I18N, CNGX_INTERACTIVE_LANGUAGE_EN, CNGX_MENU_ANNOUNCER_FACTORY, CNGX_MENU_CONFIG, CNGX_MENU_DISMISS_HANDLER_FACTORY, CNGX_MENU_FOCUS_STACK_FACTORY, CNGX_MENU_HOST, CNGX_MENU_LANGUAGE_EN, CNGX_MENU_NAV_STRATEGY, CNGX_MENU_RADIO_GROUP, CNGX_MENU_SUBMENU_ITEM, CNGX_MENU_SUBMENU_WIRING, CNGX_NAV_CONFIG, CNGX_OPTION_CONTAINER, CNGX_OPTION_FILTER_HOST, CNGX_OPTION_INTERACTION_HOST, CNGX_OPTION_STATUS_HOST, CNGX_RADIO_GROUP, CNGX_SLIDER_RANGE, CNGX_SUBMENU_TRY_FALLBACKS, CNGX_TREE_CONFIG, CNGX_TREE_CONTROLLER_FACTORY, CngxAccordion, CngxAccordionPanel, CngxAsyncClick, CngxAsyncStatus, CngxBeforeUnload, CngxBreadcrumb, CngxBreadcrumbItem, CngxBreadcrumbSeparator, CngxButtonMultiToggleGroup, CngxButtonToggle, CngxButtonToggleGroup, CngxCheckbox, CngxCheckboxGroup, CngxChipGroup, CngxChipInGroup, CngxChipInput, CngxChipInteraction, CngxClickOutside, CngxCloseButton, CngxContextMenuTrigger, CngxCopyBlock, CngxCopyText, CngxDisclosure, CngxErrorAggregator, CngxErrorRegistry, CngxErrorScope, CngxErrorSource, CngxErrorState, CngxExpandable, CngxFailed, CngxHierarchicalNav, CngxHoverIntent, CngxHoverable, CngxKeyboardShortcut, CngxListbox, CngxListboxSearch, CngxListboxTrigger, CngxLongPress, CngxMenu, CngxMenuAnnouncer, CngxMenuGroup, CngxMenuItem, CngxMenuItemCheckbox, CngxMenuItemIcon, CngxMenuItemKbd, CngxMenuItemLabel, CngxMenuItemRadio, CngxMenuItemSubmenu, CngxMenuItemSuffix, CngxMenuSeparator, CngxMenuTrigger, CngxMultiChipGroup, CngxNavBadge, CngxNavGroup, CngxNavGroupRegistry, CngxNavLabel, CngxNavLink, CngxOption, CngxOptionGroup, CngxPending, CngxPressRipple, CngxPressable, CngxRadio, CngxRadioGroup, CngxRangeSlider, CngxRangeSliderTrack, CngxReorder, CngxRipple, CngxSearch, CngxSlider, CngxSliderThumb, CngxSliderTrack, CngxSpeak, CngxSucceeded, CngxSwipe, CngxSwipeDismiss, CngxToggle, DEFAULT_MENU_CONFIG, canDeactivateWhenClean, connectSubmenuHoverToFocusStack, createAccordionKeyboardNav, createBreadcrumbCollapse, createChipStripRoving, createContextMenuTriggerCore, createListboxLabelMatch, createMenuAnnouncer, createMenuDismissHandler, createMenuFocusStack, createMenuRadioController, createMenuTriggerDismissBinding, createOptimistic, createRetry, createSliderCore, createTreeAdItems, createTreeController, createW3CMenuStrategy, createW3CTreeStrategy, injectErrorAggregator, injectErrorScope, injectInteractiveGroupHost, injectInteractiveI18n, injectMenuAnnouncer, injectMenuConfig, injectMenuItemCore, injectNavConfig, injectTreeConfig, optimistic, provideCngxMenu, provideErrorRegistry, provideInteractiveI18n, provideMenuConfig, provideMenuConfigAt, provideNavConfig, provideNavConfigAt, provideTreeConfig, provideTreeConfigAt, reflectAsyncDisplayStatus, withAriaLabels, withCloseOnSelect, withDefaultInitiallyExpanded, withDefaultKeyFn, withDefaultLabelFn, withDefaultNodeIdFn, withDismissOnBlur, withDismissOnOutsideClick, withDismissOnScroll, withGlobalRevealOnSubmit, withInteractiveI18nLabels, withNavAnimation, withNavIndent, withRetry, withRevealOnNavigate, withSingleAccordion, withSubmenuCloseDelay, withSubmenuOpenDelay, withTreeCacheLimit, withTypeaheadDebounce };
|
|
8803
|
+
export type { AsyncAction, CngxAccordionHeaderHandle, CngxAccordionHost, CngxAccordionKeyboardNav, CngxAccordionKeyboardNavHost, CngxAccordionKeyboardNavOptions, CngxAsyncDisplayStatus, CngxBreadcrumbCollapseStrategy, CngxBreadcrumbHost, CngxButtonMultiToggleGroupContract, CngxButtonToggleGroupContract, CngxChipGroupHost, CngxChipStripRovingController, CngxChipStripRovingFactory, CngxChipStripRovingOptions, CngxContextMenuOpenDecision, CngxContextMenuTriggerCore, CngxContextMenuTriggerCoreDeps, CngxContextMenuTriggerPopoverRef, CngxControlValue, CngxErrorAggregatorContract, CngxErrorAggregatorSourceEntry, CngxErrorScopeContract, CngxHierarchicalNavAction, CngxHierarchicalNavContext, CngxHierarchicalNavStrategy, CngxHoverIntentDefaults, CngxInteractiveGroupHost, CngxInteractiveGroupHostOptions, CngxInteractiveI18n, CngxInteractiveI18nFeature, CngxInteractiveLanguageSection, CngxMenuAnnouncerFactory, CngxMenuAnnouncerLike, CngxMenuAriaLabels, CngxMenuConfig, CngxMenuConfigFeature, CngxMenuDismissHandler, CngxMenuDismissHandlerFactory, CngxMenuDismissHandlerOptions, CngxMenuDismissPopoverRef, CngxMenuDismissSource, CngxMenuFeature, CngxMenuFocusStack, CngxMenuFocusStackDeps, CngxMenuFocusStackFactory, CngxMenuFocusStackPopoverRef, CngxMenuHost, CngxMenuItemCore, CngxMenuItemCoreOptions, CngxMenuLanguageSection, CngxMenuNavAction, CngxMenuNavContext, CngxMenuNavStrategy, CngxMenuRadioGroup, CngxMenuRadioGroupFactory, CngxMenuSubmenuLike, CngxMenuSubmenuPopoverRef, CngxMenuSubmenuWiring, CngxMenuTriggerDismissBinding, CngxMenuTriggerDismissBindingOptions, CngxNavConfig, CngxOptionContainer, CngxOptionContainerGroup, CngxOptionContainerOption, CngxOptionFilterHost, CngxOptionInteractionHost, CngxOptionStatus, CngxOptionStatusHost, CngxRadioGroupContract, CngxRadioRegistration, CngxReorderEvent, CngxReorderModifier, CngxSliderCore, CngxSliderCoreOptions, CngxSliderRangeHost, CngxSliderThumbBounds, CngxSliderThumbPosition, CngxSubmenuHoverRoutingDeps, CngxTreeConfig, CngxTreeConfigFeature, CngxTreeController, CngxTreeControllerFactory, CngxTreeControllerOptions, ErrorRegistryFeature, ListboxMatchFn, NavBadgeVariant, NavConfigFeature, OptimisticState, RetryConfig, RetryState, SwipeAxis, SwipeDirection };
|