@cngx/common 0.1.0-rc.7 → 0.1.0-rc.8
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/data/README.md +10 -1
- package/dialog/README.md +23 -1
- package/fesm2022/cngx-common-a11y.mjs +125 -111
- package/fesm2022/cngx-common-a11y.mjs.map +1 -1
- package/fesm2022/cngx-common-audio.mjs +47 -5
- package/fesm2022/cngx-common-audio.mjs.map +1 -1
- package/fesm2022/cngx-common-card.mjs +300 -46
- package/fesm2022/cngx-common-card.mjs.map +1 -1
- package/fesm2022/cngx-common-chart.mjs +1176 -453
- package/fesm2022/cngx-common-chart.mjs.map +1 -1
- package/fesm2022/cngx-common-command.mjs +37 -10
- package/fesm2022/cngx-common-command.mjs.map +1 -1
- package/fesm2022/cngx-common-data.mjs +1318 -469
- package/fesm2022/cngx-common-data.mjs.map +1 -1
- package/fesm2022/cngx-common-dialog.mjs +151 -14
- package/fesm2022/cngx-common-dialog.mjs.map +1 -1
- package/fesm2022/cngx-common-display.mjs +340 -73
- package/fesm2022/cngx-common-display.mjs.map +1 -1
- package/fesm2022/cngx-common-interactive.mjs +1744 -952
- package/fesm2022/cngx-common-interactive.mjs.map +1 -1
- package/fesm2022/cngx-common-layout.mjs +841 -114
- package/fesm2022/cngx-common-layout.mjs.map +1 -1
- package/fesm2022/cngx-common-popover.mjs +350 -60
- package/fesm2022/cngx-common-popover.mjs.map +1 -1
- package/fesm2022/cngx-common-stepper.mjs +727 -317
- package/fesm2022/cngx-common-stepper.mjs.map +1 -1
- package/fesm2022/cngx-common-tabs.mjs +1601 -1243
- package/fesm2022/cngx-common-tabs.mjs.map +1 -1
- package/fesm2022/cngx-common-timeline.mjs +137 -53
- 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 +21 -1
- package/package.json +3 -3
- package/popover/README.md +18 -2
- package/stepper/README.md +6 -4
- 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.css +24 -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 +42 -18
- package/types/cngx-common-card.d.ts +201 -17
- package/types/cngx-common-chart.d.ts +343 -47
- package/types/cngx-common-command.d.ts +31 -8
- package/types/cngx-common-data.d.ts +581 -68
- package/types/cngx-common-dialog.d.ts +158 -3
- package/types/cngx-common-display.d.ts +356 -142
- package/types/cngx-common-interactive.d.ts +859 -210
- package/types/cngx-common-layout.d.ts +567 -28
- package/types/cngx-common-popover.d.ts +262 -39
- package/types/cngx-common-stepper.d.ts +366 -116
- package/types/cngx-common-tabs.d.ts +214 -50
- package/types/cngx-common-timeline.d.ts +82 -16
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { Signal, TemplateRef, OnInit, InjectionToken, Resource, EnvironmentProviders, ElementRef, Injector, DestroyRef } from '@angular/core';
|
|
2
|
+
import { Signal, TemplateRef, OnInit, InjectionToken, Resource, EnvironmentProviders, Provider, ElementRef, Injector, DestroyRef } from '@angular/core';
|
|
3
3
|
import { CngxAsyncState, AsyncStatus, CngxStateful, CngxLatencyProbe } from '@cngx/core/utils';
|
|
4
4
|
export { CngxLatencyProbe } from '@cngx/core/utils';
|
|
5
5
|
import { DataSource } from '@angular/cdk/collections';
|
|
6
6
|
import { Observable, MonoTypeOperatorFunction, OperatorFunction } from 'rxjs';
|
|
7
7
|
import { CngxSearch } from '@cngx/common/interactive';
|
|
8
8
|
import { HttpContextToken, HttpContext, HttpInterceptorFn } from '@angular/common/http';
|
|
9
|
+
import * as _cngx_common_data from '@cngx/common/data';
|
|
9
10
|
import { CngxRovingTabindex, CngxActiveDescendant } from '@cngx/common/a11y';
|
|
11
|
+
import { CngxMessage } from '@cngx/core/i18n';
|
|
10
12
|
|
|
11
13
|
/**
|
|
12
14
|
* A single sort entry: the active field key and its direction.
|
|
@@ -34,6 +36,8 @@ interface SortEntry {
|
|
|
34
36
|
* adds it as a secondary (tertiary, …) sort key instead of replacing the
|
|
35
37
|
* primary one. Shift-clicking an active column cycles it asc → desc → removed.
|
|
36
38
|
* Multi-sort state is always uncontrolled; use `sortsChange` to read it.
|
|
39
|
+
* While a controlled pin is bound, additive clicks degrade to the
|
|
40
|
+
* single-sort cycle.
|
|
37
41
|
*
|
|
38
42
|
* Consumer connects this to a table or list via a `computed()` - nothing is
|
|
39
43
|
* injected automatically.
|
|
@@ -82,6 +86,9 @@ declare class CngxSort {
|
|
|
82
86
|
/**
|
|
83
87
|
* All active sort entries in priority order.
|
|
84
88
|
* Contains at most one entry when additive mode has not been used.
|
|
89
|
+
* In controlled mode the entry is derived from `cngxSortActive` /
|
|
90
|
+
* `cngxSortDirection` (a falsy active key means no sort); headers and
|
|
91
|
+
* data sources read this signal, so the controlled pin drives them too.
|
|
85
92
|
*/
|
|
86
93
|
readonly sorts: _angular_core.Signal<SortEntry[]>;
|
|
87
94
|
/** `true` when at least one sort is active. */
|
|
@@ -104,6 +111,12 @@ declare class CngxSort {
|
|
|
104
111
|
* - Field not in stack → append as asc
|
|
105
112
|
* - Field in stack as asc → change to desc
|
|
106
113
|
* - Field in stack as desc → remove from stack
|
|
114
|
+
*
|
|
115
|
+
* With a controlled `cngxSortActive` pin bound, the sort is event-only: the
|
|
116
|
+
* cycle is computed off the effective entry and emitted, the internal state
|
|
117
|
+
* stays untouched (nothing stale surfaces if the pin unbinds later). Since
|
|
118
|
+
* multi-sort is always uncontrolled, an additive call degrades to the
|
|
119
|
+
* non-additive controlled cycle while a pin is bound.
|
|
107
120
|
*/
|
|
108
121
|
setSort(field: string, additive?: boolean): void;
|
|
109
122
|
/** Clears all active sorts. Emits both `sortChange(undefined)` and `sortsChange([])`. */
|
|
@@ -364,17 +377,19 @@ declare class CngxFilterChip<TItem = unknown, TValue = unknown> {
|
|
|
364
377
|
* is intentionally out of scope. Consumers needing a single-select
|
|
365
378
|
* filter wire `<cngx-chip-group>` to a custom predicate themselves.
|
|
366
379
|
*
|
|
367
|
-
* **Sync contract - derivation, not effect.**
|
|
368
|
-
* `filterRef.addPredicate(filterKey, predicateFn)` EXACTLY ONCE
|
|
369
|
-
* during mount (in `afterNextRender`, because `input.required()`
|
|
370
|
-
* cannot be read from the constructor body). `predicateFn` is a
|
|
380
|
+
* **Sync contract - derivation, not effect.** `predicateFn` is a
|
|
371
381
|
* closure that reads `this.selectedValues()` and
|
|
372
|
-
* `this.
|
|
382
|
+
* `this.optionValue()` on every invocation. Because
|
|
373
383
|
* `CngxFilter.predicate` is itself a `computed()` consumed by
|
|
374
384
|
* downstream filtered lists, each item-evaluation flows through
|
|
375
385
|
* `selectedValues()` in the consumer's reactive context - chip
|
|
376
386
|
* toggles propagate without any `effect()` writing back into the
|
|
377
|
-
* filter.
|
|
387
|
+
* filter. Registration itself is reactive: a binding effect tracks
|
|
388
|
+
* `filterRef`/`filterKey` (a rebind moves the registration), and an
|
|
389
|
+
* eviction watcher re-registers the key after `filter.clear()` wiped
|
|
390
|
+
* the stack, so visible chip selection and predicate stack cannot
|
|
391
|
+
* diverge. Selections whose option vanished from `[options]` are
|
|
392
|
+
* pruned - a removed option never keeps filtering invisibly.
|
|
378
393
|
*
|
|
379
394
|
* **Empty-selection semantics.** When `selectedValues()` is `[]`,
|
|
380
395
|
* the closure returns `true` for every item - equivalent to "no
|
|
@@ -384,13 +399,10 @@ declare class CngxFilterChip<TItem = unknown, TValue = unknown> {
|
|
|
384
399
|
* re-registering on every empty/non-empty boundary, and keeps the
|
|
385
400
|
* predicate-stack stable (no `predicatesChange` emission churn).
|
|
386
401
|
*
|
|
387
|
-
* **Teardown.**
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
* and `filterKey` lazily so a consumer that re-binds these between
|
|
392
|
-
* mount and unmount cleans the latest binding (per
|
|
393
|
-
* `reference_signal_architecture` memory-hygiene rule).
|
|
402
|
+
* **Teardown.** The binding effect's cleanup removes the key only
|
|
403
|
+
* while it still maps to this strip's own `predicateFn` (identity
|
|
404
|
+
* guard) - destroying one of two strips that share a key never
|
|
405
|
+
* detaches the live sibling's registration.
|
|
394
406
|
*
|
|
395
407
|
* **Visible caption.** The required `label` renders as a
|
|
396
408
|
* `.cngx-filter-chips__label` caption above the strip so a sighted user
|
|
@@ -491,7 +503,6 @@ declare class CngxFilterChips<TItem = unknown, TValue = unknown> {
|
|
|
491
503
|
* `CngxFilter.predicate`.
|
|
492
504
|
*/
|
|
493
505
|
readonly selectedValues: _angular_core.ModelSignal<TValue[]>;
|
|
494
|
-
private registered;
|
|
495
506
|
constructor();
|
|
496
507
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxFilterChips<any, any>, never>;
|
|
497
508
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxFilterChips<any, any>, "cngx-filter-chips", ["cngxFilterChips"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; "options": { "alias": "options"; "required": true; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": true; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": true; "isSignal": true; }; "filterRef": { "alias": "filterRef"; "required": true; "isSignal": true; }; "filterKey": { "alias": "filterKey"; "required": true; "isSignal": true; }; "state": { "alias": "state"; "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; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; "selectedValues": "selectedValuesChange"; }, ["chipTemplate"], never, true, never>;
|
|
@@ -576,6 +587,18 @@ declare class CngxPaginate {
|
|
|
576
587
|
* stops a fresh-array identity from cascading downstream.
|
|
577
588
|
*/
|
|
578
589
|
readonly cumulativeRange: _angular_core.Signal<[number, number]>;
|
|
590
|
+
/**
|
|
591
|
+
* `range()` with both bounds capped at `total` - the honest in-bounds window
|
|
592
|
+
* for readouts and announcements. `range()`'s upper bound is
|
|
593
|
+
* `start + pageSize`, so a partial final page overshoots `total`; this caps
|
|
594
|
+
* it (and yields `[0, 0]` while the list is empty). The capped end doubles as
|
|
595
|
+
* the cumulative reveal count for load-more consumers: `range()[1]` and
|
|
596
|
+
* `cumulativeRange()[1]` are the same number (`(pageIndex + 1) * pageSize`),
|
|
597
|
+
* so `clampedRange()[1]` is "items shown so far" in both replace and append
|
|
598
|
+
* modes. The explicit tuple `equal` stops a fresh-array identity from
|
|
599
|
+
* cascading downstream.
|
|
600
|
+
*/
|
|
601
|
+
readonly clampedRange: _angular_core.Signal<[number, number]>;
|
|
579
602
|
/** Emitted when the page index changes. */
|
|
580
603
|
readonly pageChange: _angular_core.OutputEmitterRef<number>;
|
|
581
604
|
/** Emitted when the page size changes. */
|
|
@@ -671,7 +694,10 @@ interface CngxPaginateEmitHandlers {
|
|
|
671
694
|
* brain's `pageIndex()` stays pinned to the input until the consumer feeds it
|
|
672
695
|
* back;
|
|
673
696
|
* - an `effect()` reads the effective `pageIndex()` / `pageSize()` and covers a
|
|
674
|
-
* `total`-shrink clamp the nav-only output misses.
|
|
697
|
+
* `total`-shrink clamp the nav-only output misses. The index half of the
|
|
698
|
+
* clamp path is suppressed while the brain is busy or `total` is 0, so a
|
|
699
|
+
* transient total drop during a refetch never persists a page-0 clamp into a
|
|
700
|
+
* controlled consumer; a clamp that survives the settle emits then.
|
|
675
701
|
*
|
|
676
702
|
* The shared guard makes a value one path already emitted a no-op on the other,
|
|
677
703
|
* so each change emits exactly once. Seeded with the current effective values,
|
|
@@ -723,8 +749,10 @@ declare class CngxPaginateRouting implements OnInit {
|
|
|
723
749
|
/** Query-param name for the page size. */
|
|
724
750
|
readonly sizeParam: _angular_core.InputSignal<string>;
|
|
725
751
|
private applyingFromUrl;
|
|
752
|
+
private readonly pendingUrl;
|
|
726
753
|
constructor();
|
|
727
754
|
ngOnInit(): void;
|
|
755
|
+
private applyFromUrl;
|
|
728
756
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginateRouting, never>;
|
|
729
757
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxPaginateRouting, "[cngxPaginateRouting]", ["cngxPaginateRouting"], { "pageParam": { "alias": "cngxPaginatePageParam"; "required": false; "isSignal": true; }; "sizeParam": { "alias": "cngxPaginateSizeParam"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
730
758
|
}
|
|
@@ -924,13 +952,15 @@ declare function injectDataSource<T>(data: Signal<T[]>): CngxDataSource<T>;
|
|
|
924
952
|
interface CngxSmartDataSourceOptions<T> {
|
|
925
953
|
/**
|
|
926
954
|
* Custom full-text search function. Receives an item and the current search
|
|
927
|
-
* term; return `true` to keep the item. Defaults to a
|
|
928
|
-
*
|
|
955
|
+
* term; return `true` to keep the item. Defaults to a substring match across
|
|
956
|
+
* all primitive-valued properties that ignores case and accents in the app
|
|
957
|
+
* locale.
|
|
929
958
|
*/
|
|
930
959
|
searchFn?: (item: T, term: string) => boolean;
|
|
931
960
|
/**
|
|
932
961
|
* Custom sort comparator. Receives two items, the active field key, and
|
|
933
|
-
* direction. Defaults to a
|
|
962
|
+
* direction. Defaults to a string comparison collated in the app locale
|
|
963
|
+
* (`CNGX_LOCALE`), numeric-aware and case- and accent-insensitive.
|
|
934
964
|
*/
|
|
935
965
|
sortFn?: (a: T, b: T, field: string, direction: 'asc' | 'desc') => number;
|
|
936
966
|
/**
|
|
@@ -1004,6 +1034,7 @@ declare class CngxSmartDataSource<T> extends DataSource<T> {
|
|
|
1004
1034
|
private readonly injectedFilter;
|
|
1005
1035
|
private readonly injectedSearch;
|
|
1006
1036
|
private readonly injectedPaginate;
|
|
1037
|
+
private readonly locale;
|
|
1007
1038
|
/**
|
|
1008
1039
|
* Items after filter and search are applied, before sort and pagination.
|
|
1009
1040
|
* Use `filteredCount()` to get the pre-pagination count for paginator `total`.
|
|
@@ -1096,6 +1127,25 @@ interface ManualAsyncState<T> extends CngxAsyncState<T> {
|
|
|
1096
1127
|
*/
|
|
1097
1128
|
declare function createManualState<T>(): ManualAsyncState<T>;
|
|
1098
1129
|
|
|
1130
|
+
/**
|
|
1131
|
+
* Configuration options for `createAsyncState`.
|
|
1132
|
+
*
|
|
1133
|
+
* @category common/data/async-state
|
|
1134
|
+
*/
|
|
1135
|
+
interface CreateAsyncStateOptions {
|
|
1136
|
+
/**
|
|
1137
|
+
* Human-readable label surfaced in `CngxAsyncRegistry.activeOperations`.
|
|
1138
|
+
* Display only - never the registry key. Ignored unless `register` is set.
|
|
1139
|
+
*/
|
|
1140
|
+
label?: string;
|
|
1141
|
+
/**
|
|
1142
|
+
* When `true`, register this state in the ambient `CngxAsyncRegistry` (if
|
|
1143
|
+
* one is provided via `provideAsyncRegistry()`) for the injector's lifetime,
|
|
1144
|
+
* and unregister automatically on destroy. Defaults to `false` - a no-op for
|
|
1145
|
+
* existing callers, and a no-op when no registry is provided.
|
|
1146
|
+
*/
|
|
1147
|
+
register?: boolean;
|
|
1148
|
+
}
|
|
1099
1149
|
/**
|
|
1100
1150
|
* Writable async state for mutations (POST/PUT/DELETE).
|
|
1101
1151
|
*
|
|
@@ -1136,7 +1186,7 @@ interface MutableAsyncState<T> extends CngxAsyncState<T> {
|
|
|
1136
1186
|
*
|
|
1137
1187
|
* @category common/data/async-state
|
|
1138
1188
|
*/
|
|
1139
|
-
declare function createAsyncState<T>(): MutableAsyncState<T>;
|
|
1189
|
+
declare function createAsyncState<T>(options?: CreateAsyncStateOptions): MutableAsyncState<T>;
|
|
1140
1190
|
|
|
1141
1191
|
/**
|
|
1142
1192
|
* Wraps a *changing* source of async state in a stable
|
|
@@ -1181,7 +1231,12 @@ declare function createForwardedAsyncState<T>(source: () => CngxAsyncState<T> |
|
|
|
1181
1231
|
interface InjectAsyncStateOptions {
|
|
1182
1232
|
/**
|
|
1183
1233
|
* Debounce time in ms for signal dependency changes.
|
|
1184
|
-
*
|
|
1234
|
+
* Coalesces rapid changes into one state transition and one consumed
|
|
1235
|
+
* result. Note: a promise-returning `fn` still runs once per change -
|
|
1236
|
+
* the invocation is what tracks its signals - but only the freshest
|
|
1237
|
+
* capture is consumed; superseded captures are observed and discarded.
|
|
1238
|
+
* Cold Observables cost nothing until subscribed, so for them the
|
|
1239
|
+
* debounce fully prevents request storms.
|
|
1185
1240
|
* @default 50
|
|
1186
1241
|
*/
|
|
1187
1242
|
debounce?: number;
|
|
@@ -1390,17 +1445,26 @@ declare function fromHttpResource<T>(ref: HttpResourceLike<T>): CngxAsyncState<T
|
|
|
1390
1445
|
* Any `ManualAsyncState<T>` satisfies this - operators only need the write side.
|
|
1391
1446
|
*/
|
|
1392
1447
|
interface AsyncStateSink<T> {
|
|
1393
|
-
set(status: 'loading' | 'refreshing' | 'pending'): void;
|
|
1448
|
+
set(status: 'idle' | 'loading' | 'refreshing' | 'pending'): void;
|
|
1394
1449
|
setSuccess(data: T): void;
|
|
1395
1450
|
setError(error: unknown): void;
|
|
1396
1451
|
setProgress(value: number | undefined): void;
|
|
1452
|
+
/**
|
|
1453
|
+
* Optional read side: when present, `tapAsyncState` picks `refreshing`
|
|
1454
|
+
* over `loading` for a re-subscribe after data has already landed.
|
|
1455
|
+
* Any `ManualAsyncState<T>` provides it.
|
|
1456
|
+
*/
|
|
1457
|
+
isFirstLoad?: () => boolean;
|
|
1397
1458
|
}
|
|
1398
1459
|
/**
|
|
1399
1460
|
* RxJS operator that wires an Observable's lifecycle to a `ManualAsyncState`.
|
|
1400
1461
|
*
|
|
1401
|
-
* On subscribe: sets `loading` (or `refreshing` if data was already loaded
|
|
1462
|
+
* On subscribe: sets `loading` (or `refreshing` if data was already loaded,
|
|
1463
|
+
* read via the sink's `isFirstLoad`; an explicit `options.status` wins).
|
|
1402
1464
|
* On next: calls `setSuccess(value)`.
|
|
1403
1465
|
* On error: calls `setError(err)` and **re-throws** (does not swallow).
|
|
1466
|
+
* On teardown without a value (unsubscribe mid-flight, empty complete):
|
|
1467
|
+
* resets the sink to `idle` so a cancelled request never leaves it busy.
|
|
1404
1468
|
*
|
|
1405
1469
|
* The Observable passes through unchanged - `tapAsyncState` is a side-effect operator.
|
|
1406
1470
|
*
|
|
@@ -1701,7 +1765,10 @@ interface CngxAsyncContext<T> {
|
|
|
1701
1765
|
* - **success + empty** → empty template (or nothing)
|
|
1702
1766
|
* - **error (first load)** → error template (or nothing)
|
|
1703
1767
|
* - **refreshing / loading (with data)** → content template (old data stays visible)
|
|
1704
|
-
* - **error (with data)** → content template (old data stays visible)
|
|
1768
|
+
* - **error (with data)** → content template (old data stays visible) -
|
|
1769
|
+
* `resolveAsyncView` reports this as `content+error`, but a structural
|
|
1770
|
+
* directive renders exactly one template, so the error half is flattened
|
|
1771
|
+
* away here; surface it separately (toast, alert) when it must be visible
|
|
1705
1772
|
*
|
|
1706
1773
|
* ### Minimal - just content
|
|
1707
1774
|
* ```html
|
|
@@ -1757,7 +1824,7 @@ declare class CngxAsync<T> {
|
|
|
1757
1824
|
$implicit: unknown;
|
|
1758
1825
|
}> | undefined>;
|
|
1759
1826
|
private readonly view;
|
|
1760
|
-
private
|
|
1827
|
+
private currentView;
|
|
1761
1828
|
private contentViewRef;
|
|
1762
1829
|
constructor();
|
|
1763
1830
|
private updateContentContext;
|
|
@@ -1772,8 +1839,9 @@ declare class CngxAsync<T> {
|
|
|
1772
1839
|
/**
|
|
1773
1840
|
* Displays a formatted numeric value with optional unit.
|
|
1774
1841
|
*
|
|
1775
|
-
* Uses `Intl.NumberFormat` with the
|
|
1776
|
-
*
|
|
1842
|
+
* Uses `Intl.NumberFormat` with the app locale (`CNGX_LOCALE`, falling back to
|
|
1843
|
+
* the nearest `LOCALE_ID`) for locale-aware formatting; a locale flip
|
|
1844
|
+
* re-formats. A `null` value renders the placeholder glyph without its unit.
|
|
1777
1845
|
*
|
|
1778
1846
|
* Composable - works inside any card variant, header, body, or standalone.
|
|
1779
1847
|
*
|
|
@@ -1807,7 +1875,11 @@ declare class CngxAsync<T> {
|
|
|
1807
1875
|
*/
|
|
1808
1876
|
declare class CngxMetric {
|
|
1809
1877
|
private readonly locale;
|
|
1810
|
-
|
|
1878
|
+
private readonly i18n;
|
|
1879
|
+
/**
|
|
1880
|
+
* Numeric or string value. `null` renders the `metricPlaceholder` glyph of
|
|
1881
|
+
* the kpi language section and is announced as its `metricNoValue` text.
|
|
1882
|
+
*/
|
|
1811
1883
|
readonly value: _angular_core.InputSignal<string | number | null>;
|
|
1812
1884
|
/** Unit suffix (e.g. "bpm", "h", "%", "kg"). */
|
|
1813
1885
|
readonly unit: _angular_core.InputSignal<string | undefined>;
|
|
@@ -1815,6 +1887,13 @@ declare class CngxMetric {
|
|
|
1815
1887
|
readonly format: _angular_core.InputSignal<Intl.NumberFormatOptions | undefined>;
|
|
1816
1888
|
/** @internal */
|
|
1817
1889
|
readonly formattedValue: _angular_core.Signal<string>;
|
|
1890
|
+
/**
|
|
1891
|
+
* @internal The unit to render, `undefined` while there is no value: a
|
|
1892
|
+
* missing reading has no unit, so "No value km" is never shown or spoken.
|
|
1893
|
+
*/
|
|
1894
|
+
protected readonly shownUnit: _angular_core.Signal<string | undefined>;
|
|
1895
|
+
/** @internal Unit before value, per the `metricValueWithUnit` message. */
|
|
1896
|
+
protected readonly unitFirst: _angular_core.Signal<boolean>;
|
|
1818
1897
|
/** @internal Full accessible description including unit. */
|
|
1819
1898
|
readonly accessibleValue: _angular_core.Signal<string>;
|
|
1820
1899
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMetric, never>;
|
|
@@ -1860,6 +1939,7 @@ declare class CngxMetric {
|
|
|
1860
1939
|
*/
|
|
1861
1940
|
declare class CngxTrend {
|
|
1862
1941
|
private readonly locale;
|
|
1942
|
+
private readonly i18n;
|
|
1863
1943
|
/** Trend percentage. Positive = up, negative = down, zero = flat. */
|
|
1864
1944
|
readonly value: _angular_core.InputSignal<number>;
|
|
1865
1945
|
/** Consumer-provided SR label override. When set, replaces the generated default. */
|
|
@@ -1874,18 +1954,6 @@ declare class CngxTrend {
|
|
|
1874
1954
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxTrend, "cngx-trend", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1875
1955
|
}
|
|
1876
1956
|
|
|
1877
|
-
/**
|
|
1878
|
-
* Pure, framework-agnostic helpers that turn a signed delta value into the
|
|
1879
|
-
* three orthogonal signals a KPI atom renders: **direction** (which way the
|
|
1880
|
-
* arrow points), **sentiment** (whether the change is good or bad, which
|
|
1881
|
-
* drives colour and the SR word), and the formatted magnitude.
|
|
1882
|
-
*
|
|
1883
|
-
* Direction and sentiment are deliberately separate. `CngxTrend` colours by
|
|
1884
|
-
* direction (up = green); `CngxDelta` colours by sentiment, so a value that
|
|
1885
|
-
* dropped can still read as an improvement (churn down, latency down). Both
|
|
1886
|
-
* consume these helpers so the direction / glyph / format logic has a single
|
|
1887
|
-
* source of truth (Pillar 1) with no Angular dependency.
|
|
1888
|
-
*/
|
|
1889
1957
|
/** Which way the delta moved. `flat` is exactly zero. */
|
|
1890
1958
|
type DeltaDirection = 'up' | 'down' | 'flat';
|
|
1891
1959
|
/**
|
|
@@ -1937,6 +2005,7 @@ type DeltaMode = 'percent' | 'absolute';
|
|
|
1937
2005
|
*/
|
|
1938
2006
|
declare class CngxDelta {
|
|
1939
2007
|
private readonly locale;
|
|
2008
|
+
private readonly i18n;
|
|
1940
2009
|
/** Signed delta. Positive = up, negative = down, zero = flat. */
|
|
1941
2010
|
readonly value: _angular_core.InputSignal<number>;
|
|
1942
2011
|
/**
|
|
@@ -1952,19 +2021,115 @@ declare class CngxDelta {
|
|
|
1952
2021
|
/** Consumer-provided SR label override. Replaces the generated default. */
|
|
1953
2022
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
1954
2023
|
/** @internal Raw movement, independent of polarity. Drives the glyph. */
|
|
1955
|
-
protected readonly direction: _angular_core.Signal<DeltaDirection>;
|
|
2024
|
+
protected readonly direction: _angular_core.Signal<_cngx_common_data.DeltaDirection>;
|
|
1956
2025
|
/** @internal Good / bad / indifferent. Drives colour and the SR word. */
|
|
1957
|
-
protected readonly sentiment: _angular_core.Signal<DeltaSentiment>;
|
|
2026
|
+
protected readonly sentiment: _angular_core.Signal<_cngx_common_data.DeltaSentiment>;
|
|
1958
2027
|
/** @internal Arrow glyph bound from direction only. */
|
|
1959
2028
|
protected readonly glyph: _angular_core.Signal<string>;
|
|
1960
2029
|
/** @internal Formatted magnitude. */
|
|
1961
2030
|
protected readonly formattedValue: _angular_core.Signal<string>;
|
|
1962
|
-
/**
|
|
2031
|
+
/**
|
|
2032
|
+
* @internal Full SR label: magnitude plus the sentiment word, composed by
|
|
2033
|
+
* `CNGX_KPI_I18N.deltaLabel` unless `[label]` is bound.
|
|
2034
|
+
*/
|
|
1963
2035
|
protected readonly resolvedLabel: _angular_core.Signal<string>;
|
|
1964
2036
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDelta, never>;
|
|
1965
2037
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxDelta, "cngx-delta", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "polarity": { "alias": "polarity"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1966
2038
|
}
|
|
1967
2039
|
|
|
2040
|
+
/**
|
|
2041
|
+
* KPI atom i18n surface. Library defaults are English; consumers override
|
|
2042
|
+
* via {@link provideKpiI18n}. Reactive from birth: the token carries a
|
|
2043
|
+
* `Signal`, and {@link withKpiI18nLabels} accepts a `Signal` of a partial
|
|
2044
|
+
* bundle, so a runtime language switch re-derives every label.
|
|
2045
|
+
*
|
|
2046
|
+
* Every key is a formatter, so word order and plural rules belong to the
|
|
2047
|
+
* translator. The magnitude arrives already formatted in the app locale
|
|
2048
|
+
* (`CNGX_LOCALE`); the per-instance `label` / `valueTextFormat` inputs still
|
|
2049
|
+
* win over the bundle.
|
|
2050
|
+
*
|
|
2051
|
+
* @category common/data/i18n
|
|
2052
|
+
* @since 0.1.0
|
|
2053
|
+
*/
|
|
2054
|
+
interface CngxKpiI18n {
|
|
2055
|
+
/** `CngxDelta` accessible name: formatted magnitude plus the sentiment word. */
|
|
2056
|
+
readonly deltaLabel: (formatted: string, sentiment: DeltaSentiment) => string;
|
|
2057
|
+
/** `CngxTrend` accessible name: formatted magnitude plus the direction word. */
|
|
2058
|
+
readonly trendLabel: (formatted: string, direction: DeltaDirection) => string;
|
|
2059
|
+
/** `CngxGoal` `aria-valuetext`: clamped value and target. */
|
|
2060
|
+
readonly goalValueText: (now: number, max: number) => string;
|
|
2061
|
+
/**
|
|
2062
|
+
* `CngxMetric` order of value and unit: `{value}` and `{unit}` in reading
|
|
2063
|
+
* order, a plain template the metric renders as two elements. English
|
|
2064
|
+
* `'{value} {unit}'`.
|
|
2065
|
+
*/
|
|
2066
|
+
readonly metricValueWithUnit: string;
|
|
2067
|
+
/** Shown in place of a `CngxMetric` without a value. English: the U+2014 glyph. */
|
|
2068
|
+
readonly metricPlaceholder: string;
|
|
2069
|
+
/** Accessible name of a `CngxMetric` without a value. English `No value`. */
|
|
2070
|
+
readonly metricNoValue: string;
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* DI token for the KPI i18n bundle. `providedIn: 'root'`: the kpi section
|
|
2074
|
+
* of the active language pack over the English defaults, formatted for the
|
|
2075
|
+
* app locale; the value is a `Signal`, shared by every reader under one
|
|
2076
|
+
* injector.
|
|
2077
|
+
*
|
|
2078
|
+
* @category common/data/i18n
|
|
2079
|
+
* @wcag AA
|
|
2080
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/data/display/shared/kpi-i18n.ts
|
|
2081
|
+
* @since 0.1.0
|
|
2082
|
+
* @relatedTo CngxDelta, CngxTrend, CngxGoal
|
|
2083
|
+
*/
|
|
2084
|
+
declare const CNGX_KPI_I18N: InjectionToken<Signal<CngxKpiI18n>>;
|
|
2085
|
+
/**
|
|
2086
|
+
* Branded feature-fn for {@link provideKpiI18n}.
|
|
2087
|
+
*
|
|
2088
|
+
* @category common/data/i18n
|
|
2089
|
+
* @since 0.1.0
|
|
2090
|
+
*/
|
|
2091
|
+
type CngxKpiI18nFeature = ((bundle: Signal<CngxKpiI18n>) => Signal<CngxKpiI18n>) & {
|
|
2092
|
+
readonly _target: 'i18n';
|
|
2093
|
+
};
|
|
2094
|
+
/**
|
|
2095
|
+
* Override KPI labels via a partial bundle - unset keys keep the language
|
|
2096
|
+
* pack's copy, or the English default. Pass a `Signal` of a partial bundle to switch languages at
|
|
2097
|
+
* runtime.
|
|
2098
|
+
*
|
|
2099
|
+
* @category common/data/i18n
|
|
2100
|
+
* @since 0.1.0
|
|
2101
|
+
*/
|
|
2102
|
+
declare function withKpiI18nLabels(overrides: Partial<CngxKpiI18n> | Signal<Partial<CngxKpiI18n>>): CngxKpiI18nFeature;
|
|
2103
|
+
/**
|
|
2104
|
+
* Provider for the KPI i18n bundle. Returns a plain `Provider`, so it also
|
|
2105
|
+
* scopes a subtree through `viewProviders`. The features apply on top of the
|
|
2106
|
+
* active language pack.
|
|
2107
|
+
*
|
|
2108
|
+
* ```ts
|
|
2109
|
+
* bootstrapApplication(AppComponent, {
|
|
2110
|
+
* providers: [
|
|
2111
|
+
* provideKpiI18n(
|
|
2112
|
+
* withKpiI18nLabels({
|
|
2113
|
+
* goalValueText: (now, max) => `${now} von ${max}`,
|
|
2114
|
+
* }),
|
|
2115
|
+
* ),
|
|
2116
|
+
* ],
|
|
2117
|
+
* });
|
|
2118
|
+
* ```
|
|
2119
|
+
*
|
|
2120
|
+
* @category common/data/i18n
|
|
2121
|
+
* @since 0.1.0
|
|
2122
|
+
*/
|
|
2123
|
+
declare function provideKpiI18n(...features: readonly CngxKpiI18nFeature[]): Provider;
|
|
2124
|
+
/**
|
|
2125
|
+
* Inject the resolved KPI i18n bundle signal. Read it inside a `computed()`
|
|
2126
|
+
* or template so a runtime override flip re-derives.
|
|
2127
|
+
*
|
|
2128
|
+
* @category common/data/i18n
|
|
2129
|
+
* @since 0.1.0
|
|
2130
|
+
*/
|
|
2131
|
+
declare function injectKpiI18n(): Signal<CngxKpiI18n>;
|
|
2132
|
+
|
|
1968
2133
|
/** The four coordinated slots of a {@link CngxStat}, in reading order. */
|
|
1969
2134
|
type CngxStatSlotKind = 'label' | 'value' | 'delta' | 'caption';
|
|
1970
2135
|
/**
|
|
@@ -1978,8 +2143,12 @@ type CngxStatSlotKind = 'label' | 'value' | 'delta' | 'caption';
|
|
|
1978
2143
|
interface CngxStatRegistry {
|
|
1979
2144
|
/** Register (or replace) the id contributed by `kind`. */
|
|
1980
2145
|
register(kind: CngxStatSlotKind, id: string): void;
|
|
1981
|
-
/**
|
|
1982
|
-
|
|
2146
|
+
/**
|
|
2147
|
+
* Withdraw the id contributed by `kind`. When `id` is given, the
|
|
2148
|
+
* withdrawal applies only while that id is still the registered one -
|
|
2149
|
+
* a register-before-destroy replacement is left alone.
|
|
2150
|
+
*/
|
|
2151
|
+
unregister(kind: CngxStatSlotKind, id?: string): void;
|
|
1983
2152
|
}
|
|
1984
2153
|
/** DI token carrying the {@link CngxStatRegistry} a `CngxStat` provides. */
|
|
1985
2154
|
declare const CNGX_STAT: InjectionToken<CngxStatRegistry>;
|
|
@@ -2013,7 +2182,7 @@ declare class CngxStatCoordinator implements CngxStatRegistry {
|
|
|
2013
2182
|
/** {@inheritDoc CngxStatRegistry.register} */
|
|
2014
2183
|
register(kind: CngxStatSlotKind, id: string): void;
|
|
2015
2184
|
/** {@inheritDoc CngxStatRegistry.unregister} */
|
|
2016
|
-
unregister(kind: CngxStatSlotKind): void;
|
|
2185
|
+
unregister(kind: CngxStatSlotKind, id?: string): void;
|
|
2017
2186
|
/** Present slot ids in reading order; structurally stable. */
|
|
2018
2187
|
readonly orderedIds: _angular_core.Signal<string[]>;
|
|
2019
2188
|
/** Combined accessible name for the host; `null` when no slot is present. */
|
|
@@ -2143,7 +2312,7 @@ declare class CngxStatCaption {
|
|
|
2143
2312
|
* derived percent bound as a CSS custom property.
|
|
2144
2313
|
*
|
|
2145
2314
|
* ```html
|
|
2146
|
-
* <cngx-goal [value]="73" [max]="100" />
|
|
2315
|
+
* <cngx-goal [value]="73" [max]="100" label="Quota attainment" />
|
|
2147
2316
|
* <cngx-goal [value]="q()" [max]="target()" [valueTextFormat]="quotaText" />
|
|
2148
2317
|
* ```
|
|
2149
2318
|
*
|
|
@@ -2157,14 +2326,23 @@ declare class CngxStatCaption {
|
|
|
2157
2326
|
* <example-url>http://localhost:4200/#/common/data/goal/quota-attainment</example-url>
|
|
2158
2327
|
*/
|
|
2159
2328
|
declare class CngxGoal {
|
|
2329
|
+
private readonly i18n;
|
|
2160
2330
|
/** Current attainment. Clamped to `[0, max]`. */
|
|
2161
2331
|
readonly value: _angular_core.InputSignal<number>;
|
|
2162
2332
|
/** Target the value works toward. Defaults to `100`. */
|
|
2163
2333
|
readonly max: _angular_core.InputSignal<number>;
|
|
2334
|
+
/**
|
|
2335
|
+
* Accessible name for the progressbar (what the attainment measures, e.g.
|
|
2336
|
+
* "Quarterly quota"). Mirrors the `label` input of the sibling KPI atoms;
|
|
2337
|
+
* omit it only when an external `aria-labelledby` (e.g. a `cngxStatLabel`)
|
|
2338
|
+
* names the bar instead.
|
|
2339
|
+
*/
|
|
2340
|
+
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
2164
2341
|
/**
|
|
2165
2342
|
* Override the `aria-valuetext` string. Receives `(now, max)` - the clamped
|
|
2166
|
-
* value and the target.
|
|
2167
|
-
*
|
|
2343
|
+
* value and the target. Wins over the app-wide `CNGX_KPI_I18N.goalValueText`
|
|
2344
|
+
* (English default `(now, max) => \`${now} of ${max}\``). Supply a closure
|
|
2345
|
+
* for richer per-instance text (e.g.
|
|
2168
2346
|
* `(n, m) => \`${n} of ${m}, ${Math.round((n / m) * 100)}% of quota\``).
|
|
2169
2347
|
*/
|
|
2170
2348
|
readonly valueTextFormat: _angular_core.InputSignal<((now: number, max: number) => string) | undefined>;
|
|
@@ -2177,7 +2355,7 @@ declare class CngxGoal {
|
|
|
2177
2355
|
/** `aria-valuetext` - human-readable attainment via the resolved closure. */
|
|
2178
2356
|
protected readonly valueText: Signal<string>;
|
|
2179
2357
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxGoal, never>;
|
|
2180
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxGoal, "cngx-goal", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "valueTextFormat": { "alias": "valueTextFormat"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2358
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxGoal, "cngx-goal", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "valueTextFormat": { "alias": "valueTextFormat"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2181
2359
|
}
|
|
2182
2360
|
|
|
2183
2361
|
/**
|
|
@@ -2197,33 +2375,51 @@ interface RecyclerI18n {
|
|
|
2197
2375
|
error(): string;
|
|
2198
2376
|
}
|
|
2199
2377
|
/**
|
|
2200
|
-
* Injection token for recycler SR announcement texts
|
|
2201
|
-
*
|
|
2378
|
+
* Injection token for recycler SR announcement texts, a `Signal` so the
|
|
2379
|
+
* texts follow a runtime language switch. Defaults to the recycler section
|
|
2380
|
+
* of the active language pack over English, counts formatted for the app
|
|
2381
|
+
* locale. Override with `provideRecyclerI18n()`.
|
|
2202
2382
|
*
|
|
2203
2383
|
* @category common/data/recycler
|
|
2204
2384
|
* @wcag AA
|
|
2205
2385
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/data/recycler/recycler.ts
|
|
2206
2386
|
* @since 0.1.0
|
|
2207
2387
|
*/
|
|
2208
|
-
declare const CNGX_RECYCLER_I18N: InjectionToken<RecyclerI18n
|
|
2388
|
+
declare const CNGX_RECYCLER_I18N: InjectionToken<Signal<RecyclerI18n>>;
|
|
2389
|
+
/**
|
|
2390
|
+
* Branded feature-fn for {@link provideRecyclerI18n}.
|
|
2391
|
+
*
|
|
2392
|
+
* @category common/data/recycler
|
|
2393
|
+
*/
|
|
2394
|
+
type CngxRecyclerI18nFeature = ((bundle: Signal<RecyclerI18n>) => Signal<RecyclerI18n>) & {
|
|
2395
|
+
readonly _target: 'i18n';
|
|
2396
|
+
};
|
|
2209
2397
|
/**
|
|
2210
|
-
*
|
|
2398
|
+
* Override recycler announcements via a partial bundle - keys you leave out
|
|
2399
|
+
* keep the language pack's text, or the English default. Pass a `Signal` to
|
|
2400
|
+
* switch the language at runtime.
|
|
2401
|
+
*
|
|
2402
|
+
* @category common/data/recycler
|
|
2403
|
+
*/
|
|
2404
|
+
declare function withRecyclerI18nLabels(overrides: Partial<RecyclerI18n> | Signal<Partial<RecyclerI18n>>): CngxRecyclerI18nFeature;
|
|
2405
|
+
/**
|
|
2406
|
+
* Provider for the recycler announcement texts. The features apply on top of
|
|
2407
|
+
* the active language pack.
|
|
2211
2408
|
*
|
|
2212
2409
|
* ```typescript
|
|
2213
|
-
* providers: [
|
|
2214
|
-
*
|
|
2215
|
-
*
|
|
2216
|
-
*
|
|
2217
|
-
*
|
|
2218
|
-
*
|
|
2410
|
+
* providers: [
|
|
2411
|
+
* provideRecyclerI18n(
|
|
2412
|
+
* withRecyclerI18nLabels({
|
|
2413
|
+
* empty: () => 'Keine Ergebnisse.',
|
|
2414
|
+
* error: () => 'Fehler beim Laden.',
|
|
2415
|
+
* }),
|
|
2416
|
+
* ),
|
|
2417
|
+
* ]
|
|
2219
2418
|
* ```
|
|
2220
2419
|
*
|
|
2221
2420
|
* @category common/data/recycler
|
|
2222
2421
|
*/
|
|
2223
|
-
declare function provideRecyclerI18n(
|
|
2224
|
-
provide: InjectionToken<RecyclerI18n>;
|
|
2225
|
-
useValue: RecyclerI18n;
|
|
2226
|
-
};
|
|
2422
|
+
declare function provideRecyclerI18n(...features: readonly CngxRecyclerI18nFeature[]): Provider;
|
|
2227
2423
|
/**
|
|
2228
2424
|
* Configuration for {@link injectRecycler}.
|
|
2229
2425
|
*
|
|
@@ -2292,6 +2488,15 @@ interface CngxRecycler {
|
|
|
2292
2488
|
readonly offsetAfter: Signal<number>;
|
|
2293
2489
|
/** Total scrollable height of all items (px). */
|
|
2294
2490
|
readonly totalSize: Signal<number>;
|
|
2491
|
+
/**
|
|
2492
|
+
* Representative row height (px) for a placeholder layer's repeat rhythm.
|
|
2493
|
+
* A numeric or `Signal<number>` `estimateSize` is already uniform, so it is
|
|
2494
|
+
* used verbatim; a per-index variable estimate has no single height, so the
|
|
2495
|
+
* average (`totalSize / totalCount`) stands in. Consumed by
|
|
2496
|
+
* {@link CngxRecyclerPlaceholder} to key its repeating skeleton interval off
|
|
2497
|
+
* the same rhythm the range uses. `0` on an empty list.
|
|
2498
|
+
*/
|
|
2499
|
+
readonly rowSizeHint: Signal<number>;
|
|
2295
2500
|
/** Placeholder count before rendered items. Only non-zero in grid mode. */
|
|
2296
2501
|
readonly placeholdersBefore: Signal<number>;
|
|
2297
2502
|
/** Placeholder count after rendered items. Only non-zero in grid mode. */
|
|
@@ -2446,6 +2651,7 @@ declare class CngxMeasure {
|
|
|
2446
2651
|
/** The absolute index of this item in the full dataset. */
|
|
2447
2652
|
readonly cngxMeasureIndex: _angular_core.InputSignal<number>;
|
|
2448
2653
|
private readonly el;
|
|
2654
|
+
private readonly win;
|
|
2449
2655
|
constructor();
|
|
2450
2656
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMeasure, never>;
|
|
2451
2657
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxMeasure, "[cngxMeasure]", never, { "cngxMeasure": { "alias": "cngxMeasure"; "required": true; "isSignal": true; }; "cngxMeasureIndex": { "alias": "cngxMeasureIndex"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -2497,6 +2703,228 @@ declare class CngxVirtualItem {
|
|
|
2497
2703
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxVirtualItem, "[cngxVirtualItem]", never, { "cngxVirtualItem": { "alias": "cngxVirtualItem"; "required": true; "isSignal": true; }; "cngxVirtualItemIndex": { "alias": "cngxVirtualItemIndex"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2498
2704
|
}
|
|
2499
2705
|
|
|
2706
|
+
/**
|
|
2707
|
+
* Paints a row-aligned skeleton background under a virtualized scroll region so
|
|
2708
|
+
* a fast fling or teleport jump reveals placeholder bars instead of the bare
|
|
2709
|
+
* panel/page surface for the single frame the rendered rows lag `scrollTop`.
|
|
2710
|
+
*
|
|
2711
|
+
* The mechanism is a static CSS layer, not a reactive template: by the time a
|
|
2712
|
+
* `@for` over "uncovered indices" could render, change detection has already
|
|
2713
|
+
* produced the real rows, so the lag frame is never painted reactively. A
|
|
2714
|
+
* `background` on the offset element always paints and also covers teleport
|
|
2715
|
+
* jumps no reactive window can, at zero per-frame cost.
|
|
2716
|
+
*
|
|
2717
|
+
* Host it on the **offset spacer element(s)** - the empty divs (or presentation
|
|
2718
|
+
* `<li>`s) whose height reserves `offsetBefore` / `offsetAfter` - one directive
|
|
2719
|
+
* instance per spacer. Do NOT host it on a `padding-block`ed content element
|
|
2720
|
+
* that also contains the rows: a background paints across the whole padding box,
|
|
2721
|
+
* so it would show through *behind* every rendered row, not just in the gap.
|
|
2722
|
+
* The spacers carry no rows, so the layer is only ever visible where the window
|
|
2723
|
+
* has not caught up.
|
|
2724
|
+
*
|
|
2725
|
+
* The repeat interval keys off a single representative row height: bind the
|
|
2726
|
+
* recycler to read its `rowSizeHint`, or pass an explicit `[rowHeight]`
|
|
2727
|
+
* fallback so the directive is usable standalone. Visuals are driven by
|
|
2728
|
+
* `--cngx-recycler-placeholder-*` CSS custom properties (see
|
|
2729
|
+
* `@cngx/common/theming/components/cngx-recycler-placeholder.css`); the shimmer
|
|
2730
|
+
* drops under `prefers-reduced-motion` via a spec-observable host class.
|
|
2731
|
+
*
|
|
2732
|
+
* ### One instance per offset spacer, keyed off the recycler's rhythm
|
|
2733
|
+
* ```html
|
|
2734
|
+
* <ul>
|
|
2735
|
+
* @if (recycler.offsetBefore(); as before) {
|
|
2736
|
+
* <li role="presentation" aria-hidden="true"
|
|
2737
|
+
* [cngxRecyclerPlaceholder]="recycler" [style.height.px]="before"></li>
|
|
2738
|
+
* }
|
|
2739
|
+
* @for (item of visibleItems(); track item.id) { <li>...</li> }
|
|
2740
|
+
* @if (recycler.offsetAfter(); as after) {
|
|
2741
|
+
* <li role="presentation" aria-hidden="true"
|
|
2742
|
+
* [cngxRecyclerPlaceholder]="recycler" [style.height.px]="after"></li>
|
|
2743
|
+
* }
|
|
2744
|
+
* </ul>
|
|
2745
|
+
* ```
|
|
2746
|
+
*
|
|
2747
|
+
* ### Standalone with an explicit row height
|
|
2748
|
+
* ```html
|
|
2749
|
+
* <div cngxRecyclerPlaceholder [rowHeight]="48"
|
|
2750
|
+
* [style.height.px]="recycler.offsetBefore()"></div>
|
|
2751
|
+
* ```
|
|
2752
|
+
*
|
|
2753
|
+
* @category common/data/recycler
|
|
2754
|
+
* @docsKind primary
|
|
2755
|
+
* @wcag AA
|
|
2756
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/data/recycler/recycler-placeholder.directive.ts
|
|
2757
|
+
* @since 0.1.0
|
|
2758
|
+
* @relatedTo injectRecycler, CngxRecyclerRow, CngxVirtualItem, CngxMeasure
|
|
2759
|
+
* <example-url>http://localhost:4200/#/common/data/recycler/fast-fling-placeholders</example-url>
|
|
2760
|
+
*/
|
|
2761
|
+
declare class CngxRecyclerPlaceholder {
|
|
2762
|
+
/**
|
|
2763
|
+
* The recycler whose `rowSizeHint` sets the placeholder repeat rhythm.
|
|
2764
|
+
* Optional: the directive also works from an explicit `[rowHeight]`, so this
|
|
2765
|
+
* follows the bridge-input shape (optional + empty-string transform) rather
|
|
2766
|
+
* than `input.required` - a bare `cngxRecyclerPlaceholder` attribute paired
|
|
2767
|
+
* with `[rowHeight]` is a valid, unbound usage.
|
|
2768
|
+
*/
|
|
2769
|
+
readonly recycler: _angular_core.InputSignalWithTransform<CngxRecycler | undefined, "" | CngxRecycler | undefined>;
|
|
2770
|
+
/** Explicit row height (px) used when no recycler is bound, or as a fallback. */
|
|
2771
|
+
readonly rowHeight: _angular_core.InputSignal<number | undefined>;
|
|
2772
|
+
private readonly prefersReducedMotion;
|
|
2773
|
+
constructor();
|
|
2774
|
+
/**
|
|
2775
|
+
* Representative row height (px) for the repeat interval. The recycler's
|
|
2776
|
+
* `rowSizeHint` wins when it resolves to a positive value; otherwise the
|
|
2777
|
+
* explicit `[rowHeight]` fallback applies.
|
|
2778
|
+
*/
|
|
2779
|
+
protected readonly resolvedRowHeight: Signal<number>;
|
|
2780
|
+
/**
|
|
2781
|
+
* The `--cngx-recycler-placeholder-row-height` style value. `null` when no
|
|
2782
|
+
* row height resolves, so the registered `@property` default (or an inherited
|
|
2783
|
+
* token from an ancestor mapping) applies instead of a broken `0px` interval.
|
|
2784
|
+
*/
|
|
2785
|
+
protected readonly rowHeightVar: Signal<string | null>;
|
|
2786
|
+
/** Whether the shimmer host class is applied (dropped under reduced-motion). */
|
|
2787
|
+
protected readonly showShimmer: Signal<boolean>;
|
|
2788
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxRecyclerPlaceholder, never>;
|
|
2789
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxRecyclerPlaceholder, "[cngxRecyclerPlaceholder]", never, { "recycler": { "alias": "cngxRecyclerPlaceholder"; "required": false; "isSignal": true; }; "rowHeight": { "alias": "rowHeight"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
/**
|
|
2793
|
+
* Context for the placeholder branch of `*cngxRecyclerRow` - the window slot
|
|
2794
|
+
* whose item has not loaded yet (`undefined`). A custom `placeholder:` template
|
|
2795
|
+
* reads this to keep the list count honest for assistive technology:
|
|
2796
|
+
* `aria-posinset = index + 1`, `aria-setsize = setSize`.
|
|
2797
|
+
*
|
|
2798
|
+
* The real-row branch (item defined) binds `$implicit` to the item value
|
|
2799
|
+
* instead; that context is internal and narrowed by `ngTemplateContextGuard`.
|
|
2800
|
+
*
|
|
2801
|
+
* @category common/data/recycler
|
|
2802
|
+
*/
|
|
2803
|
+
interface CngxRecyclerRowContext {
|
|
2804
|
+
/** The absolute dataset index of this slot. Alias of `index`. */
|
|
2805
|
+
$implicit: number;
|
|
2806
|
+
/** The absolute dataset index of this slot. */
|
|
2807
|
+
index: number;
|
|
2808
|
+
/** Pixel offset of the slot from the top of the scroll content. */
|
|
2809
|
+
top: number;
|
|
2810
|
+
/** Total set size (`recycler.ariaSetSize()`) for `aria-setsize`. */
|
|
2811
|
+
setSize: number;
|
|
2812
|
+
}
|
|
2813
|
+
/** Internal real-row context: the loaded item at this window position. */
|
|
2814
|
+
interface CngxRecyclerRowRealContext<T> {
|
|
2815
|
+
$implicit: T;
|
|
2816
|
+
cngxRecyclerRow: T;
|
|
2817
|
+
}
|
|
2818
|
+
/**
|
|
2819
|
+
* App-wide default placeholder template for `*cngxRecyclerRow`. Middle rung of
|
|
2820
|
+
* the cascade: microsyntax `placeholder:` template wins over this, and this wins
|
|
2821
|
+
* over the built-in imperative `<li>` default. Defaults to `null` (imperative
|
|
2822
|
+
* default applies).
|
|
2823
|
+
*
|
|
2824
|
+
* @category common/data/recycler
|
|
2825
|
+
*/
|
|
2826
|
+
declare const CNGX_RECYCLER_PLACEHOLDER_ROW: InjectionToken<TemplateRef<CngxRecyclerRowContext> | null>;
|
|
2827
|
+
/**
|
|
2828
|
+
* Provides an app-wide default placeholder template for every `*cngxRecyclerRow`
|
|
2829
|
+
* that supplies no `placeholder:` template of its own.
|
|
2830
|
+
*
|
|
2831
|
+
* @category common/data/recycler
|
|
2832
|
+
*/
|
|
2833
|
+
declare function provideRecyclerPlaceholderRow(template: TemplateRef<CngxRecyclerRowContext>): Provider;
|
|
2834
|
+
/**
|
|
2835
|
+
* Per-window-position render switch for a sparse/windowed recycler: renders the
|
|
2836
|
+
* consumer's real-row template when the sliced item is defined, and a
|
|
2837
|
+
* placeholder branch when the item is still `undefined` (loaded window, data
|
|
2838
|
+
* not yet resolved).
|
|
2839
|
+
*
|
|
2840
|
+
* Mirrors the `*cngxAsync` structural-directive shape (own `TemplateRef` +
|
|
2841
|
+
* microsyntax alternate template + `ngTemplateContextGuard`). The switch axis is
|
|
2842
|
+
* data availability, not async status, so the two are siblings, not the same
|
|
2843
|
+
* class. Unlike `*cngxAsync` (which clears on every switch) the real-row view is
|
|
2844
|
+
* cached and re-attached across a placeholder detour, so a
|
|
2845
|
+
* defined -> undefined -> defined flip never remounts the expensive real row.
|
|
2846
|
+
*
|
|
2847
|
+
* The placeholder branch resolves through a 3-stage cascade: the microsyntax
|
|
2848
|
+
* `placeholder:` template, then {@link CNGX_RECYCLER_PLACEHOLDER_ROW}, then a
|
|
2849
|
+
* built-in imperative `<li>` default. The default assumes a `<ul>`/`<li>` list;
|
|
2850
|
+
* a non-`<li>` container (`<div role="list">`) supplies a `placeholder:`
|
|
2851
|
+
* template or the config token instead.
|
|
2852
|
+
*
|
|
2853
|
+
* The two placeholder layers are orthogonal and non-overlapping by
|
|
2854
|
+
* construction: {@link CngxRecyclerPlaceholder} paints a decorative background
|
|
2855
|
+
* on the offset spacers (indices outside the rendered window), while this
|
|
2856
|
+
* directive fills holes inside the window whose item is still `undefined`.
|
|
2857
|
+
*
|
|
2858
|
+
* ### Windowed list with the built-in placeholder row
|
|
2859
|
+
* ```html
|
|
2860
|
+
* <ul>
|
|
2861
|
+
* @for (item of visibleItems(); track item?.id ?? ('ph:' + (recycler.start() + $index)); let i = $index) {
|
|
2862
|
+
* <li *cngxRecyclerRow="item; index: recycler.start() + i; recycler: recycler; let row">
|
|
2863
|
+
* {{ row?.name }}
|
|
2864
|
+
* </li>
|
|
2865
|
+
* }
|
|
2866
|
+
* </ul>
|
|
2867
|
+
* ```
|
|
2868
|
+
*
|
|
2869
|
+
* ### Custom placeholder template
|
|
2870
|
+
* ```html
|
|
2871
|
+
* <ul>
|
|
2872
|
+
* @for (item of visibleItems(); track item?.id ?? ('ph:' + (recycler.start() + $index)); let i = $index) {
|
|
2873
|
+
* <li *cngxRecyclerRow="item; index: recycler.start() + i; recycler: recycler; placeholder: ph; let row">
|
|
2874
|
+
* {{ row?.name }}
|
|
2875
|
+
* </li>
|
|
2876
|
+
* }
|
|
2877
|
+
* <ng-template #ph let-index let-setSize="setSize">
|
|
2878
|
+
* <li role="listitem" aria-busy="true" [attr.aria-posinset]="index + 1" [attr.aria-setsize]="setSize">
|
|
2879
|
+
* Loading row {{ index + 1 }}
|
|
2880
|
+
* </li>
|
|
2881
|
+
* </ng-template>
|
|
2882
|
+
* </ul>
|
|
2883
|
+
* ```
|
|
2884
|
+
*
|
|
2885
|
+
* @category common/data/recycler
|
|
2886
|
+
* @docsKind primary
|
|
2887
|
+
* @wcag AA
|
|
2888
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/data/recycler/recycler-row.directive.ts
|
|
2889
|
+
* @since 0.1.0
|
|
2890
|
+
* @relatedTo injectRecycler, CngxRecyclerPlaceholder, CngxVirtualItem, CngxMeasure
|
|
2891
|
+
* <example-url>http://localhost:4200/#/common/data/recycler/windowed-data-availability</example-url>
|
|
2892
|
+
*/
|
|
2893
|
+
declare class CngxRecyclerRow<T> {
|
|
2894
|
+
private readonly vcr;
|
|
2895
|
+
private readonly rowTpl;
|
|
2896
|
+
private readonly renderer;
|
|
2897
|
+
private readonly configTpl;
|
|
2898
|
+
/** The sliced item at this window position. `undefined` selects the placeholder branch. */
|
|
2899
|
+
readonly cngxRecyclerRow: _angular_core.InputSignal<T | undefined>;
|
|
2900
|
+
/** Absolute dataset index of this slot (`recycler.start() + $index`). */
|
|
2901
|
+
readonly cngxRecyclerRowIndex: _angular_core.InputSignal<number>;
|
|
2902
|
+
/** The recycler driving the window, read for `rowSizeHint` (-> `top`) and `ariaSetSize`. */
|
|
2903
|
+
readonly cngxRecyclerRowRecycler: _angular_core.InputSignal<CngxRecycler>;
|
|
2904
|
+
/** Optional placeholder template for the `undefined` branch. Context: {@link CngxRecyclerRowContext}. */
|
|
2905
|
+
readonly cngxRecyclerRowPlaceholder: _angular_core.InputSignal<TemplateRef<CngxRecyclerRowContext> | undefined>;
|
|
2906
|
+
private currentBranch;
|
|
2907
|
+
private rowViewRef;
|
|
2908
|
+
private placeholderViewRef;
|
|
2909
|
+
private defaultEl;
|
|
2910
|
+
constructor();
|
|
2911
|
+
private showRow;
|
|
2912
|
+
private showPlaceholder;
|
|
2913
|
+
private setRowContext;
|
|
2914
|
+
private detachRow;
|
|
2915
|
+
private teardownPlaceholder;
|
|
2916
|
+
private renderPlaceholder;
|
|
2917
|
+
private refreshPlaceholder;
|
|
2918
|
+
private stampDefault;
|
|
2919
|
+
private applyDefaultAttrs;
|
|
2920
|
+
private removeDefault;
|
|
2921
|
+
private buildPlaceholderContext;
|
|
2922
|
+
/** Narrows the directive's own template context to the loaded item type. */
|
|
2923
|
+
static ngTemplateContextGuard<T>(_dir: CngxRecyclerRow<T>, _ctx: unknown): _ctx is CngxRecyclerRowRealContext<T>;
|
|
2924
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxRecyclerRow<any>, never>;
|
|
2925
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxRecyclerRow<any>, "[cngxRecyclerRow]", never, { "cngxRecyclerRow": { "alias": "cngxRecyclerRow"; "required": false; "isSignal": true; }; "cngxRecyclerRowIndex": { "alias": "cngxRecyclerRowIndex"; "required": true; "isSignal": true; }; "cngxRecyclerRowRecycler": { "alias": "cngxRecyclerRowRecycler"; "required": true; "isSignal": true; }; "cngxRecyclerRowPlaceholder": { "alias": "cngxRecyclerRowPlaceholder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2500
2928
|
/**
|
|
2501
2929
|
* Convenience component that renders the `aria-live="polite"` region
|
|
2502
2930
|
* for recycler SR announcements. Eliminates manual boilerplate.
|
|
@@ -2694,8 +3122,16 @@ interface CngxCommitController<T> {
|
|
|
2694
3122
|
* Abort the currently in-flight commit without firing callbacks.
|
|
2695
3123
|
* Use when the host component is destroyed or the commit-action
|
|
2696
3124
|
* input changes mid-flight.
|
|
2697
|
-
|
|
2698
|
-
|
|
3125
|
+
*
|
|
3126
|
+
* By default the state slot keeps its current status (a destroyed
|
|
3127
|
+
* host never reads it again). Pass `settle: true` when the surface
|
|
3128
|
+
* lives on - an explicit back-navigation or reset that supersedes a
|
|
3129
|
+
* pending commit must return `state` to `'idle'`, or `busy` latches
|
|
3130
|
+
* true forever.
|
|
3131
|
+
*/
|
|
3132
|
+
cancel(options?: {
|
|
3133
|
+
readonly settle?: boolean;
|
|
3134
|
+
}): void;
|
|
2699
3135
|
}
|
|
2700
3136
|
/**
|
|
2701
3137
|
* Factory for the commit controller.
|
|
@@ -2869,5 +3305,82 @@ interface CngxMaterialBidirectionalSyncHandle {
|
|
|
2869
3305
|
*/
|
|
2870
3306
|
declare function createMaterialBidirectionalSync(opts: CngxMaterialBidirectionalSyncOptions): CngxMaterialBidirectionalSyncHandle;
|
|
2871
3307
|
|
|
2872
|
-
|
|
2873
|
-
|
|
3308
|
+
/**
|
|
3309
|
+
* The kpi section of a {@link CngxLanguagePack}: the copy of the KPI atoms
|
|
3310
|
+
* `CngxMetric`, `CngxDelta`, `CngxTrend` and `CngxGoal`. Magnitudes reach the
|
|
3311
|
+
* messages already formatted for the app locale.
|
|
3312
|
+
*
|
|
3313
|
+
* @category common/data/i18n
|
|
3314
|
+
* @since 0.1.0
|
|
3315
|
+
* @relatedTo CNGX_KPI_I18N
|
|
3316
|
+
*/
|
|
3317
|
+
interface CngxKpiLanguageSection {
|
|
3318
|
+
/** `{value}`, `{sentiment}`: the accessible name of a delta. */
|
|
3319
|
+
readonly deltaLabel: CngxMessage;
|
|
3320
|
+
readonly deltaImproved: string;
|
|
3321
|
+
readonly deltaDeclined: string;
|
|
3322
|
+
readonly deltaUnchanged: string;
|
|
3323
|
+
/** `{value}`, `{direction}`: the accessible name of a trend. */
|
|
3324
|
+
readonly trendLabel: CngxMessage;
|
|
3325
|
+
readonly trendUp: string;
|
|
3326
|
+
readonly trendDown: string;
|
|
3327
|
+
readonly trendFlat: string;
|
|
3328
|
+
/** `{now}`, `{max}`: a goal's `aria-valuetext`. */
|
|
3329
|
+
readonly goalValueText: CngxMessage;
|
|
3330
|
+
/** `{value}`, `{unit}`: a metric's value and unit, in reading order. */
|
|
3331
|
+
readonly metricValueWithUnit: string;
|
|
3332
|
+
/** Shown in place of a metric without a value. */
|
|
3333
|
+
readonly metricPlaceholder: string;
|
|
3334
|
+
/** Accessible name of a metric without a value. */
|
|
3335
|
+
readonly metricNoValue: string;
|
|
3336
|
+
}
|
|
3337
|
+
/**
|
|
3338
|
+
* The English kpi section: the single source of the KPI atoms' English copy.
|
|
3339
|
+
* `CNGX_KPI_I18N` defaults to it.
|
|
3340
|
+
*
|
|
3341
|
+
* @category common/data/i18n
|
|
3342
|
+
* @since 0.1.0
|
|
3343
|
+
* @relatedTo CNGX_KPI_I18N
|
|
3344
|
+
*/
|
|
3345
|
+
declare const CNGX_KPI_LANGUAGE_EN: CngxKpiLanguageSection;
|
|
3346
|
+
declare module '@cngx/core/i18n' {
|
|
3347
|
+
interface CngxLanguagePack {
|
|
3348
|
+
readonly kpi: CngxKpiLanguageSection;
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
/**
|
|
3353
|
+
* The recycler section of a {@link CngxLanguagePack}: the screen-reader
|
|
3354
|
+
* announcements of a virtualised list.
|
|
3355
|
+
*
|
|
3356
|
+
* @category common/data/i18n
|
|
3357
|
+
* @since 0.1.0
|
|
3358
|
+
* @relatedTo CNGX_RECYCLER_I18N
|
|
3359
|
+
*/
|
|
3360
|
+
interface CngxRecyclerLanguageSection {
|
|
3361
|
+
/** Plural on `{count}` (new items), with `{total}`: announced after a load. */
|
|
3362
|
+
readonly loaded: CngxMessage;
|
|
3363
|
+
/** Plural on `{count}`: announced when filter or search results change. */
|
|
3364
|
+
readonly filtered: CngxMessage;
|
|
3365
|
+
/** Announced when the list becomes empty. */
|
|
3366
|
+
readonly empty: string;
|
|
3367
|
+
/** Announced when loading fails. */
|
|
3368
|
+
readonly error: string;
|
|
3369
|
+
}
|
|
3370
|
+
/**
|
|
3371
|
+
* The English recycler section: the single source of the recycler's English
|
|
3372
|
+
* copy. `CNGX_RECYCLER_I18N` defaults to it.
|
|
3373
|
+
*
|
|
3374
|
+
* @category common/data/i18n
|
|
3375
|
+
* @since 0.1.0
|
|
3376
|
+
* @relatedTo CNGX_RECYCLER_I18N
|
|
3377
|
+
*/
|
|
3378
|
+
declare const CNGX_RECYCLER_LANGUAGE_EN: CngxRecyclerLanguageSection;
|
|
3379
|
+
declare module '@cngx/core/i18n' {
|
|
3380
|
+
interface CngxLanguagePack {
|
|
3381
|
+
readonly recycler: CngxRecyclerLanguageSection;
|
|
3382
|
+
}
|
|
3383
|
+
}
|
|
3384
|
+
|
|
3385
|
+
export { CNGX_ASYNC_LABEL, CNGX_ASYNC_SKIP, CNGX_BUCKET_PAGINATE_HOST, CNGX_COMMIT_CONTROLLER_FACTORY, CNGX_KPI_I18N, CNGX_KPI_LANGUAGE_EN, CNGX_RECYCLER_I18N, CNGX_RECYCLER_LANGUAGE_EN, CNGX_RECYCLER_PLACEHOLDER_ROW, CNGX_STAT, CngxAsync, CngxAsyncBoundary, CngxAsyncRegistry, CngxBucketPaginate, CngxDataSource, CngxDelta, CngxFilter, CngxFilterChip, CngxFilterChips, CngxGoal, CngxMeasure, CngxMetric, CngxPaginate, CngxPaginateResetOn, CngxPaginateRouting, CngxRecyclerAnnouncer, CngxRecyclerPlaceholder, CngxRecyclerRow, CngxSmartDataSource, CngxSort, CngxSortHeader, CngxStat, CngxStatCaption, CngxStatCoordinator, CngxStatDelta, CngxStatLabel, CngxStatValue, CngxTrend, CngxVirtualItem, cngxAsyncInterceptor, connectPaginateEmit, connectPaginateResetOn, connectRecyclerToActiveDescendant, connectRecyclerToRoving, createAsyncState, createCommitController, createForwardedAsyncState, createManualState, createMaterialBidirectionalSync, createSortHeaderState, fromHttpResource, fromResource, injectAsyncRegistry, injectAsyncState, injectDataSource, injectKpiI18n, injectLatencyProbe, injectRecycler, injectSmartDataSource, provideAsyncHttpObservability, provideAsyncRegistry, provideKpiI18n, provideRecyclerI18n, provideRecyclerPlaceholderRow, resolveAsyncView, tapAsyncProgress, tapAsyncState, tapHttpAsyncState, withAsyncLabel, withAsyncSkip, withKpiI18nLabels, withRecyclerI18nLabels };
|
|
3386
|
+
export type { AggregateFailure, AggregateSource, AsyncView, CngxAsyncContext, CngxAsyncOperation, CngxBucket, CngxBucketPaginateHost, CngxBucketPaginateView, CngxCommitBeginHandlers, CngxCommitController, CngxCommitControllerFactory, CngxCommitHandle, CngxCommitRunner, CngxFilterChipContext, CngxKpiI18n, CngxKpiI18nFeature, CngxKpiLanguageSection, CngxMaterialBidirectionalSyncHandle, CngxMaterialBidirectionalSyncOptions, CngxPaginateEmitHandlers, CngxRecycler, CngxRecyclerI18nFeature, CngxRecyclerLanguageSection, CngxRecyclerRowContext, CngxSmartDataSourceOptions, CngxStatRegistry, CngxStatSlotKind, CreateAsyncStateOptions, DeltaDirection, DeltaMode, DeltaPolarity, DeltaSentiment, InjectAsyncStateOptions, ManualAsyncState, MutableAsyncState, ReactiveAsyncState, RecyclerConfig, RecyclerI18n, SortEntry, SortHeaderState };
|