@cngx/ui 0.1.0-rc.6 → 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/README.md +112 -1
- package/a11y/README.md +87 -0
- package/accordion/README.md +4 -2
- package/breadcrumb/README.md +262 -0
- package/collection/README.md +6 -0
- package/command-palette/README.md +224 -0
- package/context-menu/README.md +98 -0
- package/data-grid-accordion/README.md +103 -2
- package/feedback/README.md +42 -0
- package/fesm2022/cngx-ui-a11y.mjs +452 -0
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
- package/fesm2022/cngx-ui-accordion.mjs +116 -38
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +115 -50
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +181 -96
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +586 -0
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
- package/fesm2022/cngx-ui-collection.mjs +207 -66
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +1281 -0
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
- package/fesm2022/cngx-ui-context-menu.mjs +857 -0
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +498 -111
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +16 -6
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +1095 -521
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +18 -9
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +84 -16
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +370 -203
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-overlay.mjs +69 -13
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +501 -182
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +327 -106
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +22 -21
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +107 -8
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +718 -0
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
- package/fesm2022/cngx-ui-stepper.mjs +217 -76
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +40 -19
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +548 -0
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
- package/fesm2022/cngx-ui-toc.mjs +748 -0
- package/fesm2022/cngx-ui-toc.mjs.map +1 -0
- package/fesm2022/cngx-ui.mjs +16 -21
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-accordion/README.md +1 -1
- package/mat-paginator/README.md +9 -2
- package/mat-tabs/styles/mat-tabs.css +29 -27
- package/overlay/README.md +9 -4
- package/package.json +32 -1
- package/paginator/README.md +8 -4
- package/sidenav/README.md +33 -11
- package/skeleton/README.md +2 -0
- package/speak/README.md +3 -2
- package/stepper/README.md +15 -3
- package/timeline/README.md +350 -0
- package/toc/README.md +186 -0
- package/types/cngx-ui-a11y.d.ts +394 -0
- package/types/cngx-ui-accordion.d.ts +100 -30
- package/types/cngx-ui-action-button.d.ts +47 -3
- package/types/cngx-ui-breadcrumb.d.ts +159 -58
- package/types/cngx-ui-chart-panel.d.ts +382 -0
- package/types/cngx-ui-collection.d.ts +159 -58
- package/types/cngx-ui-command-palette.d.ts +565 -0
- package/types/cngx-ui-context-menu.d.ts +559 -0
- package/types/cngx-ui-data-grid-accordion.d.ts +344 -51
- package/types/cngx-ui-empty-state.d.ts +9 -2
- package/types/cngx-ui-feedback.d.ts +664 -73
- package/types/cngx-ui-layout.d.ts +8 -3
- package/types/cngx-ui-mat-accordion.d.ts +32 -4
- package/types/cngx-ui-mat-paginator.d.ts +37 -8
- package/types/cngx-ui-mat-stepper.d.ts +23 -11
- package/types/cngx-ui-mat-tabs.d.ts +218 -23
- package/types/cngx-ui-overlay.d.ts +56 -10
- package/types/cngx-ui-paginator.d.ts +416 -132
- package/types/cngx-ui-sidenav.d.ts +248 -74
- package/types/cngx-ui-skeleton.d.ts +18 -7
- package/types/cngx-ui-speak.d.ts +118 -5
- package/types/cngx-ui-stat-card.d.ts +411 -0
- package/types/cngx-ui-stepper.d.ts +81 -29
- package/types/cngx-ui-tabs.d.ts +22 -6
- package/types/cngx-ui-timeline.d.ts +495 -0
- package/types/cngx-ui-toc.d.ts +581 -0
- package/types/cngx-ui.d.ts +8 -5
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as _cngx_ui_paginator from '@cngx/ui/paginator';
|
|
2
|
-
import * as
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { TemplateRef, InjectionToken, Signal, EnvironmentProviders, Provider } from '@angular/core';
|
|
4
4
|
import * as i1 from '@cngx/common/data';
|
|
5
5
|
import { CngxPaginate } from '@cngx/common/data';
|
|
6
|
+
import { CngxMessage } from '@cngx/core/i18n';
|
|
6
7
|
|
|
7
8
|
/** Visual skin. Paint-only - structure, ARIA, and keyboard behaviour are identical across values. */
|
|
8
9
|
type CngxPaginatorSkin = 'numbered' | 'minimal' | 'pill' | 'segmented' | 'rail' | 'dots' | 'bar';
|
|
@@ -12,11 +13,21 @@ type CngxPaginatorDensity = 'compact' | 'default' | 'comfortable';
|
|
|
12
13
|
* Declarative, skinnable pagination organism. \
|
|
13
14
|
* A thin shell over the `CngxPaginate` brain (applied as a `hostDirective`), assembled by the
|
|
14
15
|
* consumer from projected segment parts in DOM order - no `show*` config inputs.
|
|
15
|
-
* `skin` / `density` are single paint attributes reflected onto `[data-skin]` / `[data-
|
|
16
|
+
* `skin` / `density` are single paint attributes reflected onto `[data-skin]` / `[data-paginator-size]`. \
|
|
16
17
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* Page bindings are longhand pairs -
|
|
19
|
+
* `[pageIndex]="pageIndex()" (pageIndexChange)="pageIndex.set($event)"` and
|
|
20
|
+
* `[pageSize]="pageSize()" (pageSizeChange)="pageSize.set($event)"`. \
|
|
21
|
+
* The two-way shorthand (banana-in-a-box) fails NG8007 under `strictTemplates`,
|
|
22
|
+
* the consumer-app default: the property half resolves to the `CngxPaginate`
|
|
23
|
+
* host directive (`cngxPageIndex` -> `pageIndex`, `cngxPageSize` -> `pageSize`)
|
|
24
|
+
* while the shell owns the matching `pageIndexChange` / `pageSizeChange`
|
|
25
|
+
* outputs, and Angular requires both halves of the shorthand on one directive
|
|
26
|
+
* instance. \
|
|
27
|
+
* Binding `[pageSize]` alone makes the value controlled: a `cngx-pgn-page-size`
|
|
28
|
+
* pick is swallowed on the next pass because the brain stays pinned to the
|
|
29
|
+
* input. Bind both halves for any page size other than the brain's default. \
|
|
30
|
+
* The shell is the single emitter of both outputs,
|
|
20
31
|
* wired through the shared `connectPaginateEmit` bridge (identical to `CngxIncrementalList`). \
|
|
21
32
|
* The bridge feeds each output once from two paths:
|
|
22
33
|
* (1) a subscription forwards the brain's nav-only `pageChange` /
|
|
@@ -32,6 +43,13 @@ type CngxPaginatorDensity = 'compact' | 'default' | 'comfortable';
|
|
|
32
43
|
*
|
|
33
44
|
* All ARIA attributes are signal-driven. `aria-busy` has a single owner here.
|
|
34
45
|
*
|
|
46
|
+
* Responsive out of the box: once the paginator's own container narrows past
|
|
47
|
+
* `30rem` a `@container` rule swaps the projected `cngx-pgn-pages` number row
|
|
48
|
+
* for the `cngx-pgn-status` "Page n of m" readout (compose both segments for
|
|
49
|
+
* the swap to have something to show). The threshold lives in
|
|
50
|
+
* `paginator.component.css` and nowhere else. Opt out with
|
|
51
|
+
* `--cngx-paginator-collapse: none` on the paginator or any ancestor.
|
|
52
|
+
*
|
|
35
53
|
* @category ui/paginator
|
|
36
54
|
* @docsKind primary
|
|
37
55
|
* @wcag AA
|
|
@@ -41,7 +59,7 @@ type CngxPaginatorDensity = 'compact' | 'default' | 'comfortable';
|
|
|
41
59
|
* @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts
|
|
42
60
|
* @playground Data-table footer (Material) ./examples/data-table/data-table.component.ts
|
|
43
61
|
* @playground Live filter with reset-to-first-page ./examples/filter-reset/filter-reset.component.ts
|
|
44
|
-
* @playground Card grid with go-to and
|
|
62
|
+
* @playground Card grid with go-to and a range readout ./examples/card-grid/card-grid.component.ts
|
|
45
63
|
* @playground Alphabetical bucket paging ./examples/alpha-mode/alpha-mode.component.ts
|
|
46
64
|
* @playground Load-more (append) paging ./examples/load-more-mode/load-more-mode.component.ts
|
|
47
65
|
* @playground Infinite scroll paging ./examples/infinite-mode/infinite-mode.component.ts
|
|
@@ -55,9 +73,9 @@ type CngxPaginatorDensity = 'compact' | 'default' | 'comfortable';
|
|
|
55
73
|
*/
|
|
56
74
|
declare class CngxPaginator {
|
|
57
75
|
/** Accessible name for the navigation landmark. Overrides the config default. */
|
|
58
|
-
readonly ariaLabel:
|
|
76
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
59
77
|
/** Visual skin; reflected onto `[data-skin]`. */
|
|
60
|
-
readonly skin:
|
|
78
|
+
readonly skin: _angular_core.InputSignal<CngxPaginatorSkin>;
|
|
61
79
|
/**
|
|
62
80
|
* Private size preset (hit-target + type); reflected onto
|
|
63
81
|
* `[data-paginator-size]`, NOT the global `[data-density]`. Spacing is a
|
|
@@ -65,14 +83,7 @@ declare class CngxPaginator {
|
|
|
65
83
|
* compacts this paginator's gaps like every other component; this input keeps
|
|
66
84
|
* only the touch-target sizing the global scale does not yet cover.
|
|
67
85
|
*/
|
|
68
|
-
readonly density:
|
|
69
|
-
/**
|
|
70
|
-
* Opt into the responsive collapse; reflected onto `[data-responsive]`. When
|
|
71
|
-
* set, a `@container` rule swaps the projected `cngx-pgn-pages` number row for
|
|
72
|
-
* a `cngx-pgn-status` "Page n of m" readout once the paginator's own container
|
|
73
|
-
* narrows past the collapse breakpoint. Compose both segments for it to apply.
|
|
74
|
-
*/
|
|
75
|
-
readonly responsive: i0.InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
readonly density: _angular_core.InputSignal<CngxPaginatorDensity>;
|
|
76
87
|
/**
|
|
77
88
|
* Reset key. When its value changes (after the initial render) the paginator
|
|
78
89
|
* jumps to the first page - bind the sort / filter / search value a result set
|
|
@@ -81,25 +92,32 @@ declare class CngxPaginator {
|
|
|
81
92
|
* recomputes every change-detection pass and would reset on each. Shares the
|
|
82
93
|
* `connectPaginateResetOn` implementation with `[cngxPaginateResetOn]`.
|
|
83
94
|
*/
|
|
84
|
-
readonly resetOn:
|
|
85
|
-
/**
|
|
86
|
-
|
|
95
|
+
readonly resetOn: _angular_core.InputSignal<unknown>;
|
|
96
|
+
/**
|
|
97
|
+
* Emits the effective page index on every change - navigation or
|
|
98
|
+
* `total`-shrink clamp. Clamp emits are held back while the brain is busy or
|
|
99
|
+
* `total` is 0, so a transient total drop during a refetch never writes a
|
|
100
|
+
* page-0 clamp into the consumer's two-way state.
|
|
101
|
+
*/
|
|
102
|
+
readonly pageIndexChange: _angular_core.OutputEmitterRef<number>;
|
|
87
103
|
/** Emits the effective page size on every change. */
|
|
88
|
-
readonly pageSizeChange:
|
|
104
|
+
readonly pageSizeChange: _angular_core.OutputEmitterRef<number>;
|
|
89
105
|
protected readonly paginate: CngxPaginate;
|
|
90
|
-
|
|
106
|
+
private readonly config;
|
|
107
|
+
private readonly ariaLabels;
|
|
108
|
+
protected readonly announcements: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAnnouncements>;
|
|
91
109
|
/**
|
|
92
110
|
* Live-region message source - mounted onto the `cngxLiveRegion` span in the
|
|
93
111
|
* template. Built through the swap token so a consumer can wrap the
|
|
94
112
|
* busy / settle / page-change derivation without forking the shell.
|
|
95
113
|
*/
|
|
96
114
|
protected readonly announcer: _cngx_ui_paginator.CngxPaginatorAnnouncer;
|
|
97
|
-
protected readonly resolvedAriaLabel:
|
|
98
|
-
protected readonly loadingSlot:
|
|
99
|
-
protected readonly loadingTemplate:
|
|
115
|
+
protected readonly resolvedAriaLabel: _angular_core.Signal<string>;
|
|
116
|
+
protected readonly loadingSlot: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
117
|
+
protected readonly loadingTemplate: _angular_core.Signal<TemplateRef<any> | null>;
|
|
100
118
|
constructor();
|
|
101
|
-
static ɵfac:
|
|
102
|
-
static ɵcmp:
|
|
119
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginator, never>;
|
|
120
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginator, "cngx-paginator", ["cngxPaginator"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "skin": { "alias": "skin"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "resetOn": { "alias": "resetOn"; "required": false; "isSignal": true; }; }, { "pageIndexChange": "pageIndexChange"; "pageSizeChange": "pageSizeChange"; }, ["loadingSlot"], ["*"], true, [{ directive: typeof i1.CngxPaginate; inputs: { "cngxPageIndex": "pageIndex"; "cngxPageSize": "pageSize"; "total": "total"; "state": "state"; }; outputs: {}; }]>;
|
|
103
121
|
}
|
|
104
122
|
|
|
105
123
|
/**
|
|
@@ -128,6 +146,13 @@ interface CngxPaginatorHost {
|
|
|
128
146
|
readonly totalPages: Signal<number>;
|
|
129
147
|
/** `[start, end]` slice indices for the current page - always in-bounds. */
|
|
130
148
|
readonly range: Signal<readonly [number, number]>;
|
|
149
|
+
/**
|
|
150
|
+
* `range()` with both bounds capped at `total` - the honest window for
|
|
151
|
+
* readouts. The capped end doubles as the cumulative reveal count for
|
|
152
|
+
* load-more consumers (`range()[1]` and `cumulativeRange()[1]` are the same
|
|
153
|
+
* number).
|
|
154
|
+
*/
|
|
155
|
+
readonly clampedRange: Signal<readonly [number, number]>;
|
|
131
156
|
/**
|
|
132
157
|
* `[0, end]` cumulative slice indices for append-don't-replace (load-more)
|
|
133
158
|
* consumers - every page revealed so far, sliced from the top.
|
|
@@ -189,8 +214,8 @@ declare const CNGX_PAGINATOR_HOST: InjectionToken<CngxPaginatorHost>;
|
|
|
189
214
|
*/
|
|
190
215
|
declare class CngxPaginatorLoading {
|
|
191
216
|
readonly templateRef: TemplateRef<any>;
|
|
192
|
-
static ɵfac:
|
|
193
|
-
static ɵdir:
|
|
217
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorLoading, never>;
|
|
218
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxPaginatorLoading, "[cngxPaginatorLoading]", ["cngxPaginatorLoading"], {}, {}, never, never, true, never>;
|
|
194
219
|
}
|
|
195
220
|
|
|
196
221
|
interface NavCore {
|
|
@@ -210,8 +235,8 @@ interface NavCore {
|
|
|
210
235
|
declare class CngxPaginatorFirst {
|
|
211
236
|
protected readonly glyph: "«";
|
|
212
237
|
protected readonly core: NavCore;
|
|
213
|
-
static ɵfac:
|
|
214
|
-
static ɵcmp:
|
|
238
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorFirst, never>;
|
|
239
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorFirst, "cngx-pgn-first", ["cngxPgnFirst"], {}, {}, never, never, true, never>;
|
|
215
240
|
}
|
|
216
241
|
/**
|
|
217
242
|
* Previous-page segment. Disabled on the first page; calls `host.previous()`.
|
|
@@ -225,8 +250,8 @@ declare class CngxPaginatorFirst {
|
|
|
225
250
|
declare class CngxPaginatorPrev {
|
|
226
251
|
protected readonly glyph: "‹";
|
|
227
252
|
protected readonly core: NavCore;
|
|
228
|
-
static ɵfac:
|
|
229
|
-
static ɵcmp:
|
|
253
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorPrev, never>;
|
|
254
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorPrev, "cngx-pgn-prev", ["cngxPgnPrev"], {}, {}, never, never, true, never>;
|
|
230
255
|
}
|
|
231
256
|
/**
|
|
232
257
|
* Next-page segment. Disabled on the last page; calls `host.next()`.
|
|
@@ -240,8 +265,8 @@ declare class CngxPaginatorPrev {
|
|
|
240
265
|
declare class CngxPaginatorNext {
|
|
241
266
|
protected readonly glyph: "›";
|
|
242
267
|
protected readonly core: NavCore;
|
|
243
|
-
static ɵfac:
|
|
244
|
-
static ɵcmp:
|
|
268
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorNext, never>;
|
|
269
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorNext, "cngx-pgn-next", ["cngxPgnNext"], {}, {}, never, never, true, never>;
|
|
245
270
|
}
|
|
246
271
|
/**
|
|
247
272
|
* Last-page segment. Disabled on the last page; calls `host.last()`.
|
|
@@ -255,8 +280,8 @@ declare class CngxPaginatorNext {
|
|
|
255
280
|
declare class CngxPaginatorLast {
|
|
256
281
|
protected readonly glyph: "»";
|
|
257
282
|
protected readonly core: NavCore;
|
|
258
|
-
static ɵfac:
|
|
259
|
-
static ɵcmp:
|
|
283
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorLast, never>;
|
|
284
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorLast, "cngx-pgn-last", ["cngxPgnLast"], {}, {}, never, never, true, never>;
|
|
260
285
|
}
|
|
261
286
|
|
|
262
287
|
/**
|
|
@@ -300,7 +325,10 @@ interface PageWindow {
|
|
|
300
325
|
*/
|
|
301
326
|
declare class CngxPaginatorPages {
|
|
302
327
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
303
|
-
protected readonly
|
|
328
|
+
protected readonly ariaLabels: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAriaLabels>;
|
|
329
|
+
private readonly locale;
|
|
330
|
+
/** Visible page numbers and sizes, formatted for the locale (`1.000` in German). */
|
|
331
|
+
protected readonly numbers: _angular_core.Signal<Intl.NumberFormat>;
|
|
304
332
|
protected readonly glyphs: {
|
|
305
333
|
readonly first: "«";
|
|
306
334
|
readonly previous: "‹";
|
|
@@ -309,10 +337,23 @@ declare class CngxPaginatorPages {
|
|
|
309
337
|
readonly more: "…";
|
|
310
338
|
readonly caret: "▾";
|
|
311
339
|
};
|
|
340
|
+
private readonly elementRef;
|
|
341
|
+
private readonly injector;
|
|
342
|
+
/**
|
|
343
|
+
* `true` from an overflow selection until the popover's close toggle is
|
|
344
|
+
* delivered. The selection closes the gap popover, whose toggle handler
|
|
345
|
+
* would otherwise bounce focus onto the (possibly reused) trigger and undo
|
|
346
|
+
* the current-page restore. Consumed by the toggle handler itself - the
|
|
347
|
+
* popover close event is a queued task that can outrun OR trail the render,
|
|
348
|
+
* so a render-tied reset would race it. If the close event is lost entirely
|
|
349
|
+
* (the re-render destroyed the popover view before delivery), the next
|
|
350
|
+
* popover OPEN clears the stale flag.
|
|
351
|
+
*/
|
|
352
|
+
private selectionInFlight;
|
|
312
353
|
/** Pages flanking the current page on each side. Defaults to the v1 window. */
|
|
313
|
-
readonly siblingCount:
|
|
354
|
+
readonly siblingCount: _angular_core.InputSignal<number>;
|
|
314
355
|
/** Pages pinned at each end. Defaults to the v1 window. */
|
|
315
|
-
readonly boundaryCount:
|
|
356
|
+
readonly boundaryCount: _angular_core.InputSignal<number>;
|
|
316
357
|
/** The page-window computation, swappable enterprise-wide via the DI token. */
|
|
317
358
|
private readonly pageWindowFn;
|
|
318
359
|
/**
|
|
@@ -320,7 +361,7 @@ declare class CngxPaginatorPages {
|
|
|
320
361
|
* across recomputes that yield an identical window, so the `@for` does not
|
|
321
362
|
* churn (signal-equality rule).
|
|
322
363
|
*/
|
|
323
|
-
protected readonly model:
|
|
364
|
+
protected readonly model: _angular_core.Signal<PageWindow>;
|
|
324
365
|
/** Position of the active page within the rendered window (gaps counted). */
|
|
325
366
|
private readonly activeWindowIndex;
|
|
326
367
|
/**
|
|
@@ -331,7 +372,7 @@ declare class CngxPaginatorPages {
|
|
|
331
372
|
* page changes by any path (click / prev / next / Enter). Focus is not
|
|
332
373
|
* selection - the user arrows to a page and Enter commits it.
|
|
333
374
|
*/
|
|
334
|
-
protected readonly rovingIndex:
|
|
375
|
+
protected readonly rovingIndex: _angular_core.WritableSignal<number>;
|
|
335
376
|
protected isCurrent(index: number): boolean;
|
|
336
377
|
protected goto(index: number): void;
|
|
337
378
|
/**
|
|
@@ -345,15 +386,25 @@ declare class CngxPaginatorPages {
|
|
|
345
386
|
isVisible(): boolean;
|
|
346
387
|
}, panel: HTMLElement): void;
|
|
347
388
|
/**
|
|
348
|
-
* Restore focus to the ellipsis trigger when the panel closes
|
|
349
|
-
* outside click), so a keyboard user is not dropped to
|
|
350
|
-
*
|
|
351
|
-
*
|
|
389
|
+
* Restore focus to the ellipsis trigger when the panel closes without a
|
|
390
|
+
* selection (Escape / outside click), so a keyboard user is not dropped to
|
|
391
|
+
* the page body. A selection-driven close is handled by
|
|
392
|
+
* {@link onSelectOverflow} instead - the re-render replaces the window, so
|
|
393
|
+
* the trigger is (or is about to be) gone and the now-current page button is
|
|
394
|
+
* the correct focus target.
|
|
352
395
|
*/
|
|
353
396
|
protected onOverflowToggle(event: Event, trigger: HTMLElement): void;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
397
|
+
/**
|
|
398
|
+
* Jump to the selected hidden page, close the gap popover, and focus the
|
|
399
|
+
* now-current page button once the window has re-rendered - the popover
|
|
400
|
+
* (where focus lives) does not survive the selection, and without an
|
|
401
|
+
* explicit restore focus drops to the page body.
|
|
402
|
+
*/
|
|
403
|
+
protected onSelectOverflow(value: number | null | undefined, popover: {
|
|
404
|
+
hide(): void;
|
|
405
|
+
}): void;
|
|
406
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorPages, never>;
|
|
407
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorPages, "cngx-pgn-pages", ["cngxPgnPages"], { "siblingCount": { "alias": "siblingCount"; "required": false; "isSignal": true; }; "boundaryCount": { "alias": "boundaryCount"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
357
408
|
}
|
|
358
409
|
|
|
359
410
|
/**
|
|
@@ -412,26 +463,30 @@ declare const CNGX_PAGINATOR_PAGE_WINDOW_FACTORY: InjectionToken<CngxPaginatorPa
|
|
|
412
463
|
*/
|
|
413
464
|
declare class CngxPaginatorRange {
|
|
414
465
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
415
|
-
private readonly
|
|
466
|
+
private readonly formats;
|
|
416
467
|
/** 1-based index of the first item on the current page (0 when empty). */
|
|
417
|
-
protected readonly start:
|
|
468
|
+
protected readonly start: _angular_core.Signal<number>;
|
|
418
469
|
/**
|
|
419
|
-
* 1-based index of the last item on the current page. The brain's
|
|
420
|
-
*
|
|
421
|
-
*
|
|
470
|
+
* 1-based index of the last item on the current page. The brain's
|
|
471
|
+
* `clampedRange()` already caps the partial final page at `total`, so the
|
|
472
|
+
* readout stays honest without a local clamp.
|
|
422
473
|
*/
|
|
423
|
-
protected readonly end:
|
|
474
|
+
protected readonly end: _angular_core.Signal<number>;
|
|
424
475
|
/** Formatted readout from the config range formatter (EN default `start-end of total`). */
|
|
425
|
-
protected readonly text:
|
|
426
|
-
static ɵfac:
|
|
427
|
-
static ɵcmp:
|
|
476
|
+
protected readonly text: _angular_core.Signal<string>;
|
|
477
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorRange, never>;
|
|
478
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorRange, "cngx-pgn-range", ["cngxPgnRange"], {}, {}, never, never, true, never>;
|
|
428
479
|
}
|
|
429
480
|
|
|
430
481
|
/**
|
|
431
482
|
* Go-to-page segment: a native `<input type="number">`. \
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
*
|
|
483
|
+
* Navigation happens on commit only (Enter / blur) - never per keystroke, so a
|
|
484
|
+
* multi-digit entry survives async paging: navigating on the first digit would
|
|
485
|
+
* flip the brain busy and swallow the rest of the entry. The brain clamps
|
|
486
|
+
* out-of-range values; the commit re-syncs the field to the effective page
|
|
487
|
+
* unless the brain is busy (a busy commit is a no-op and the typed value must
|
|
488
|
+
* survive until the user can retry). Accessible name from config (EN default,
|
|
489
|
+
* Pillar 2).
|
|
435
490
|
*
|
|
436
491
|
* @category ui/paginator
|
|
437
492
|
* @wcag AA
|
|
@@ -441,13 +496,15 @@ declare class CngxPaginatorRange {
|
|
|
441
496
|
*/
|
|
442
497
|
declare class CngxPaginatorGoto {
|
|
443
498
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
444
|
-
protected readonly
|
|
445
|
-
/**
|
|
446
|
-
*
|
|
447
|
-
|
|
499
|
+
protected readonly ariaLabels: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAriaLabels>;
|
|
500
|
+
/**
|
|
501
|
+
* Commit the typed page (Enter / blur). Navigation is commit-only: a
|
|
502
|
+
* per-keystroke setPage would flip the brain busy on async data after the
|
|
503
|
+
* first digit and swallow the rest of a multi-digit entry.
|
|
504
|
+
*/
|
|
448
505
|
protected commit(event: Event): void;
|
|
449
|
-
static ɵfac:
|
|
450
|
-
static ɵcmp:
|
|
506
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorGoto, never>;
|
|
507
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorGoto, "cngx-pgn-goto", ["cngxPgnGoto"], {}, {}, never, never, true, never>;
|
|
451
508
|
}
|
|
452
509
|
|
|
453
510
|
/**
|
|
@@ -466,7 +523,11 @@ declare class CngxPaginatorGoto {
|
|
|
466
523
|
*/
|
|
467
524
|
declare class CngxPaginatorPageSize {
|
|
468
525
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
469
|
-
|
|
526
|
+
private readonly config;
|
|
527
|
+
protected readonly ariaLabels: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAriaLabels>;
|
|
528
|
+
private readonly locale;
|
|
529
|
+
/** Visible page numbers and sizes, formatted for the locale (`1.000` in German). */
|
|
530
|
+
protected readonly numbers: _angular_core.Signal<Intl.NumberFormat>;
|
|
470
531
|
protected readonly glyphs: {
|
|
471
532
|
readonly first: "«";
|
|
472
533
|
readonly previous: "‹";
|
|
@@ -481,16 +542,26 @@ declare class CngxPaginatorPageSize {
|
|
|
481
542
|
* (`CNGX_PAGINATOR_CONFIG.pageSizeOptions`, set app-wide via
|
|
482
543
|
* `withPaginatorPageSizeOptions`); a non-empty binding wins over it.
|
|
483
544
|
*/
|
|
484
|
-
readonly options:
|
|
545
|
+
readonly options: _angular_core.InputSignal<readonly number[]>;
|
|
485
546
|
/**
|
|
486
547
|
* The sizes actually rendered: the per-instance `[options]` when non-empty,
|
|
487
548
|
* otherwise the config cascade default. A pure derivation - no synced state
|
|
488
549
|
* (Pillar 1).
|
|
489
550
|
*/
|
|
490
|
-
protected readonly resolvedOptions:
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
551
|
+
protected readonly resolvedOptions: _angular_core.Signal<readonly number[]>;
|
|
552
|
+
/**
|
|
553
|
+
* Apply the picked page size and close the dropdown. Bound to the listbox's
|
|
554
|
+
* `activated` output, not `valueChange`: activation fires on every pick, so
|
|
555
|
+
* re-picking the CURRENT size still closes the panel (with `valueChange`
|
|
556
|
+
* the unchanged model stays silent and the popover hangs open). Focus
|
|
557
|
+
* returns to the trigger *before* `hide()` so the panel is never
|
|
558
|
+
* `aria-hidden` while it still owns focus.
|
|
559
|
+
*/
|
|
560
|
+
protected onSelect(value: unknown, popover: {
|
|
561
|
+
hide(): void;
|
|
562
|
+
}, trigger: HTMLElement): void;
|
|
563
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorPageSize, never>;
|
|
564
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorPageSize, "cngx-pgn-page-size", ["cngxPgnPageSize"], { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
494
565
|
}
|
|
495
566
|
|
|
496
567
|
/**
|
|
@@ -509,7 +580,11 @@ declare class CngxPaginatorPageSize {
|
|
|
509
580
|
*/
|
|
510
581
|
declare class CngxPaginatorPageOfPages {
|
|
511
582
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
512
|
-
protected readonly
|
|
583
|
+
protected readonly ariaLabels: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAriaLabels>;
|
|
584
|
+
private readonly locale;
|
|
585
|
+
/** Visible page numbers and sizes, formatted for the locale (`1.000` in German). */
|
|
586
|
+
protected readonly numbers: _angular_core.Signal<Intl.NumberFormat>;
|
|
587
|
+
private readonly formats;
|
|
513
588
|
protected readonly glyphs: {
|
|
514
589
|
readonly first: "«";
|
|
515
590
|
readonly previous: "‹";
|
|
@@ -518,15 +593,31 @@ declare class CngxPaginatorPageOfPages {
|
|
|
518
593
|
readonly more: "…";
|
|
519
594
|
readonly caret: "▾";
|
|
520
595
|
};
|
|
596
|
+
/**
|
|
597
|
+
* Trigger readout from the config formatter (EN default `<b>page</b> / total`),
|
|
598
|
+
* rendered as sanitised HTML like the range segment.
|
|
599
|
+
*/
|
|
600
|
+
protected readonly readout: _angular_core.Signal<string>;
|
|
521
601
|
/**
|
|
522
602
|
* The 1-based page numbers `1..totalPages`. Length-keyed `equal` keeps the
|
|
523
603
|
* reference stable while the count is unchanged - the contents are fully
|
|
524
604
|
* determined by the length, so the `@for` never churns (signal-equality rule).
|
|
525
605
|
*/
|
|
526
|
-
protected readonly pages:
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
606
|
+
protected readonly pages: _angular_core.Signal<number[]>;
|
|
607
|
+
/**
|
|
608
|
+
* Jump to the picked page and close the dropdown. Bound to the listbox's
|
|
609
|
+
* `activated` output, not `valueChange`: activation fires on every pick,
|
|
610
|
+
* so re-picking the CURRENT page still closes the panel (with `valueChange`
|
|
611
|
+
* the unchanged model stays silent and the popover hangs open). Focus
|
|
612
|
+
* returns to the trigger *before* `hide()` so the panel is never
|
|
613
|
+
* `aria-hidden` while it still owns focus (the trigger survives the
|
|
614
|
+
* selection, unlike the overflow gap in {@link CngxPaginatorPages}).
|
|
615
|
+
*/
|
|
616
|
+
protected onSelect(value: unknown, popover: {
|
|
617
|
+
hide(): void;
|
|
618
|
+
}, trigger: HTMLElement): void;
|
|
619
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorPageOfPages, never>;
|
|
620
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorPageOfPages, "cngx-pgn-page-of-pages", ["cngxPgnPageOfPages"], {}, {}, never, never, true, never>;
|
|
530
621
|
}
|
|
531
622
|
|
|
532
623
|
/** Resting size tier of a rendered dot. Edge dots shrink (iOS page-control). */
|
|
@@ -550,6 +641,14 @@ interface DotModel {
|
|
|
550
641
|
* transition) to keep the active dot centred, iOS page-control style, instead of
|
|
551
642
|
* reshuffling the DOM. Dot DOM + windowing live here, not in a shared atom.
|
|
552
643
|
*
|
|
644
|
+
* Keyboard/target contract matches the page row: the track is ONE tab stop via
|
|
645
|
+
* `CngxRovingTabindex` (arrows / Home / End move between dots, Enter/Space
|
|
646
|
+
* commits), the roving cursor re-syncs to the active page on every change, and
|
|
647
|
+
* dots clipped outside the visible window are skipped so focus never lands on
|
|
648
|
+
* an invisible ring. Each dot's hit area is lifted onto the
|
|
649
|
+
* `--cngx-target-min` floor by padding (base CSS); the painted circle stays at
|
|
650
|
+
* `--cngx-paginator-dot-size`.
|
|
651
|
+
*
|
|
553
652
|
* @category ui/paginator
|
|
554
653
|
* @wcag AA
|
|
555
654
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-dots.component.ts
|
|
@@ -559,17 +658,30 @@ interface DotModel {
|
|
|
559
658
|
*/
|
|
560
659
|
declare class CngxPaginatorDots {
|
|
561
660
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
562
|
-
protected readonly
|
|
661
|
+
protected readonly ariaLabels: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAriaLabels>;
|
|
563
662
|
/**
|
|
564
663
|
* The rendered dots + viewport anchor. Structural `equal` keeps the reference
|
|
565
664
|
* stable across recomputes that yield an identical model, so the `@for` does
|
|
566
665
|
* not churn (signal-equality rule).
|
|
567
666
|
*/
|
|
568
|
-
protected readonly model:
|
|
667
|
+
protected readonly model: _angular_core.Signal<DotModel>;
|
|
668
|
+
/**
|
|
669
|
+
* Roving focus cursor for the dot track, mirroring the page row: a
|
|
670
|
+
* `linkedSignal` so the single tab stop tracks the active page (Tab lands on
|
|
671
|
+
* `aria-current`) while arrow keys still move the cursor freely between
|
|
672
|
+
* commits. Dot index equals page index, so no window translation is needed.
|
|
673
|
+
*/
|
|
674
|
+
protected readonly rovingIndex: _angular_core.WritableSignal<number>;
|
|
675
|
+
/**
|
|
676
|
+
* `true` for dots clipped outside the visible window of a glided track.
|
|
677
|
+
* They stay in the DOM (the glide needs the full strip) but are skipped by
|
|
678
|
+
* the roving cursor - focusing them would put the ring on an invisible dot.
|
|
679
|
+
*/
|
|
680
|
+
protected isOffWindow(index: number): boolean;
|
|
569
681
|
protected isCurrent(index: number): boolean;
|
|
570
682
|
protected goto(index: number): void;
|
|
571
|
-
static ɵfac:
|
|
572
|
-
static ɵcmp:
|
|
683
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorDots, never>;
|
|
684
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorDots, "cngx-pgn-dots", ["cngxPgnDots"], {}, {}, never, never, true, never>;
|
|
573
685
|
}
|
|
574
686
|
|
|
575
687
|
/**
|
|
@@ -590,11 +702,11 @@ declare class CngxPaginatorDots {
|
|
|
590
702
|
*/
|
|
591
703
|
declare class CngxPaginatorStatus {
|
|
592
704
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
593
|
-
private readonly
|
|
705
|
+
private readonly formats;
|
|
594
706
|
/** Formatted "Page n of m" readout from the config formatter (1-based page). */
|
|
595
|
-
protected readonly text:
|
|
596
|
-
static ɵfac:
|
|
597
|
-
static ɵcmp:
|
|
707
|
+
protected readonly text: _angular_core.Signal<string>;
|
|
708
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorStatus, never>;
|
|
709
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorStatus, "cngx-pgn-status", ["cngxPgnStatus"], {}, {}, never, never, true, never>;
|
|
598
710
|
}
|
|
599
711
|
|
|
600
712
|
/**
|
|
@@ -615,15 +727,15 @@ declare class CngxPaginatorStatus {
|
|
|
615
727
|
*/
|
|
616
728
|
declare class CngxPaginatorRail {
|
|
617
729
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
618
|
-
protected readonly
|
|
730
|
+
protected readonly ariaLabels: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAriaLabels>;
|
|
619
731
|
/**
|
|
620
732
|
* Fill percentage (0-100) of the current page across the page span. A single
|
|
621
733
|
* page (or none) reads 0; the last page reads 100. Drives both the composed
|
|
622
734
|
* `cngx-progress` `[progress]` and the knob's inline position.
|
|
623
735
|
*/
|
|
624
|
-
protected readonly fillPercent:
|
|
625
|
-
static ɵfac:
|
|
626
|
-
static ɵcmp:
|
|
736
|
+
protected readonly fillPercent: _angular_core.Signal<number>;
|
|
737
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorRail, never>;
|
|
738
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorRail, "cngx-pgn-rail", ["cngxPgnRail"], {}, {}, never, never, true, never>;
|
|
627
739
|
}
|
|
628
740
|
|
|
629
741
|
/**
|
|
@@ -647,25 +759,29 @@ declare class CngxPaginatorRail {
|
|
|
647
759
|
*/
|
|
648
760
|
declare class CngxPaginatorLoadMore {
|
|
649
761
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
650
|
-
private readonly
|
|
762
|
+
private readonly ariaLabels;
|
|
763
|
+
private readonly formats;
|
|
651
764
|
/**
|
|
652
765
|
* Accessible name from the config cascade. On the last page the actionable
|
|
653
766
|
* `Load more` name is replaced with the exhausted-state `allLoaded` label so
|
|
654
767
|
* AT does not announce an action on the disabled button.
|
|
655
768
|
*/
|
|
656
|
-
protected readonly ariaLabel:
|
|
769
|
+
protected readonly ariaLabel: _angular_core.Signal<string>;
|
|
657
770
|
/** Disabled on the last page or while busy - the trigger becomes a no-op. */
|
|
658
|
-
protected readonly disabled:
|
|
771
|
+
protected readonly disabled: _angular_core.Signal<boolean>;
|
|
659
772
|
/**
|
|
660
|
-
* Items revealed so far. The brain's `
|
|
661
|
-
*
|
|
662
|
-
*
|
|
773
|
+
* Items revealed so far. The brain's `clampedRange()` upper bound is the
|
|
774
|
+
* cumulative reveal count capped at `total` (`range()[1]` and
|
|
775
|
+
* `cumulativeRange()[1]` are the same number), so a partial final page reads
|
|
776
|
+
* honestly without a local clamp.
|
|
663
777
|
*/
|
|
664
|
-
protected readonly shown:
|
|
778
|
+
protected readonly shown: _angular_core.Signal<number>;
|
|
779
|
+
/** Visible progress readout from the config formatter (EN default `shown / total`). */
|
|
780
|
+
protected readonly readout: _angular_core.Signal<string>;
|
|
665
781
|
/** Reveal the next page. Guarded so a disabled click is a no-op. */
|
|
666
782
|
protected handleClick(): void;
|
|
667
|
-
static ɵfac:
|
|
668
|
-
static ɵcmp:
|
|
783
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorLoadMore, never>;
|
|
784
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorLoadMore, "cngx-pgn-load-more", ["cngxPgnLoadMore"], {}, {}, never, never, true, never>;
|
|
669
785
|
}
|
|
670
786
|
|
|
671
787
|
/**
|
|
@@ -709,34 +825,35 @@ declare class CngxPaginatorLoadMore {
|
|
|
709
825
|
*/
|
|
710
826
|
declare class CngxPaginatorInfinite {
|
|
711
827
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
712
|
-
private readonly
|
|
828
|
+
private readonly ariaLabels;
|
|
829
|
+
private readonly announcements;
|
|
713
830
|
/**
|
|
714
831
|
* CSS selector for the scroll container the sentinel is watched within.
|
|
715
832
|
* `null` (default) observes the viewport. Forwarded to `CngxInfiniteScroll`.
|
|
716
833
|
*/
|
|
717
|
-
readonly root:
|
|
834
|
+
readonly root: _angular_core.InputSignal<string | null>;
|
|
718
835
|
/**
|
|
719
836
|
* Pre-fetch margin around the scroll container, forwarded to
|
|
720
837
|
* `CngxInfiniteScroll`. The directive default loads ~200px before the
|
|
721
838
|
* sentinel is visible.
|
|
722
839
|
*/
|
|
723
|
-
readonly rootMargin:
|
|
840
|
+
readonly rootMargin: _angular_core.InputSignal<string>;
|
|
724
841
|
/**
|
|
725
842
|
* Exhausted: the last page is reached AND its load has settled. Gating on
|
|
726
843
|
* `!isBusy()` keeps the spinner up while the final batch is still loading, so
|
|
727
844
|
* the segment never claims "all loaded" before the last rows arrive.
|
|
728
845
|
*/
|
|
729
|
-
protected readonly isExhausted:
|
|
846
|
+
protected readonly isExhausted: _angular_core.Signal<boolean>;
|
|
730
847
|
/**
|
|
731
848
|
* Exhausted-state label from the config cascade, reused from the load-more
|
|
732
849
|
* segment so both append modes speak the same "all N loaded" end state rather
|
|
733
850
|
* than leaving the tail implicit.
|
|
734
851
|
*/
|
|
735
|
-
protected readonly endLabel:
|
|
852
|
+
protected readonly endLabel: _angular_core.Signal<string>;
|
|
736
853
|
/** Status text shown beside the spinner while more pages remain. */
|
|
737
|
-
protected readonly busyLabel:
|
|
738
|
-
static ɵfac:
|
|
739
|
-
static ɵcmp:
|
|
854
|
+
protected readonly busyLabel: _angular_core.Signal<string>;
|
|
855
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorInfinite, never>;
|
|
856
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorInfinite, "cngx-pgn-infinite", ["cngxPgnInfinite"], { "root": { "alias": "root"; "required": false; "isSignal": true; }; "rootMargin": { "alias": "rootMargin"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
740
857
|
}
|
|
741
858
|
|
|
742
859
|
/**
|
|
@@ -767,14 +884,14 @@ declare class CngxPaginatorInfinite {
|
|
|
767
884
|
*/
|
|
768
885
|
declare class CngxPaginatorAlpha {
|
|
769
886
|
protected readonly host: i1.CngxBucketPaginateHost;
|
|
770
|
-
protected readonly
|
|
887
|
+
protected readonly ariaLabels: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAriaLabels>;
|
|
771
888
|
/**
|
|
772
889
|
* Roving focus cursor. A `linkedSignal` so the strip's single tab stop tracks
|
|
773
890
|
* the active bucket (Tab lands on the pressed chip) yet still moves freely
|
|
774
891
|
* under the arrow keys; when nothing is selected it falls back to the first
|
|
775
892
|
* non-empty chip so Tab never lands on a disabled control.
|
|
776
893
|
*/
|
|
777
|
-
protected readonly rovingIndex:
|
|
894
|
+
protected readonly rovingIndex: _angular_core.WritableSignal<number>;
|
|
778
895
|
protected isActive(label: string): boolean;
|
|
779
896
|
/**
|
|
780
897
|
* Accessible name: the available chip uses `ariaLabels.bucket`; an empty chip
|
|
@@ -782,14 +899,14 @@ declare class CngxPaginatorAlpha {
|
|
|
782
899
|
*/
|
|
783
900
|
protected chipLabel(label: string): string;
|
|
784
901
|
protected select(label: string): void;
|
|
785
|
-
static ɵfac:
|
|
786
|
-
static ɵcmp:
|
|
902
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorAlpha, never>;
|
|
903
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorAlpha, "cngx-pgn-alpha", ["cngxPgnAlpha"], {}, {}, never, never, true, never>;
|
|
787
904
|
}
|
|
788
905
|
|
|
789
906
|
/**
|
|
790
907
|
* Accessible-name strings for the paginator landmark and its segment parts.
|
|
791
|
-
*
|
|
792
|
-
* {@link withPaginatorAriaLabels}.
|
|
908
|
+
* The defaults come from the `paginator` section of the language pack
|
|
909
|
+
* (English without one); {@link withPaginatorAriaLabels} overrides single keys.
|
|
793
910
|
*
|
|
794
911
|
* @category ui/paginator
|
|
795
912
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
@@ -842,8 +959,9 @@ interface CngxPaginatorAriaLabels {
|
|
|
842
959
|
readonly railPosition: string;
|
|
843
960
|
}
|
|
844
961
|
/**
|
|
845
|
-
* Display-text formatters for the data-readout segments.
|
|
846
|
-
*
|
|
962
|
+
* Display-text formatters for the data-readout segments. The defaults come
|
|
963
|
+
* from the `paginator` section of the language pack, numbers formatted for the
|
|
964
|
+
* locale; the `withPaginator*Format` features override single keys.
|
|
847
965
|
*
|
|
848
966
|
* @category ui/paginator
|
|
849
967
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
@@ -864,12 +982,27 @@ interface CngxPaginatorFormats {
|
|
|
864
982
|
* `announcements.pageChange` live-region phrasing, which stays plain text.
|
|
865
983
|
*/
|
|
866
984
|
readonly pageStatus: (page: number, totalPages: number) => string;
|
|
985
|
+
/**
|
|
986
|
+
* Trigger readout of the `cngx-pgn-page-of-pages` dropdown, given the 1-based
|
|
987
|
+
* current page and total page count. Rendered as sanitised HTML (the default
|
|
988
|
+
* bolds the page). Optional for compatibility with full configs written before
|
|
989
|
+
* it existed; the language-pack default applies when absent.
|
|
990
|
+
*/
|
|
991
|
+
readonly pageOfPagesReadout?: (page: number, totalPages: number) => string;
|
|
992
|
+
/**
|
|
993
|
+
* Visible progress readout of the `cngx-pgn-load-more` button, given the items
|
|
994
|
+
* revealed so far and the total. Plain text, decorative (`aria-hidden`); the
|
|
995
|
+
* button's accessible name stays `ariaLabels.loadMore`. Optional for the same
|
|
996
|
+
* compatibility reason as {@link CngxPaginatorFormats.pageOfPagesReadout}.
|
|
997
|
+
*/
|
|
998
|
+
readonly loadMoreReadout?: (shown: number, total: number) => string;
|
|
867
999
|
}
|
|
868
1000
|
/**
|
|
869
1001
|
* Live-region announcement phrasing. The paginator announces the effective page
|
|
870
1002
|
* on every change (navigation or a `total`-shrink clamp, so the clamp is never
|
|
871
|
-
* silent) and the async busy / settle transitions.
|
|
872
|
-
*
|
|
1003
|
+
* silent) and the async busy / settle transitions. The defaults come from the
|
|
1004
|
+
* `paginator` section of the language pack; {@link withPaginatorAnnouncements}
|
|
1005
|
+
* overrides single keys.
|
|
873
1006
|
*
|
|
874
1007
|
* @category ui/paginator
|
|
875
1008
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
@@ -898,20 +1031,27 @@ interface CngxPaginatorTemplates {
|
|
|
898
1031
|
readonly loading?: TemplateRef<unknown>;
|
|
899
1032
|
}
|
|
900
1033
|
/**
|
|
901
|
-
* Resolved paginator configuration. Three
|
|
1034
|
+
* Resolved paginator configuration. Three copy sub-trees - accessible-name
|
|
902
1035
|
* strings, live-region announcement phrasing, and data-readout formatters -
|
|
903
1036
|
* plus a flat `pageSizeOptions` list and an optional `templates` slot tree,
|
|
904
1037
|
* each merged independently by the reducer in
|
|
905
1038
|
* {@link provideCngxPaginatorConfig}.
|
|
906
1039
|
*
|
|
1040
|
+
* The copy sub-trees hold overrides only: unset by default, a partial value or
|
|
1041
|
+
* a `Signal` of one once a feature ran. Every key they leave out reads the
|
|
1042
|
+
* `paginator` section of the language pack, so the paginator follows a runtime
|
|
1043
|
+
* language switch. Read the resolved copy through
|
|
1044
|
+
* {@link injectPaginatorAriaLabels}, {@link injectPaginatorAnnouncements} and
|
|
1045
|
+
* {@link injectPaginatorFormats}, inside a `computed()`, a template or a handler.
|
|
1046
|
+
*
|
|
907
1047
|
* @category ui/paginator
|
|
908
1048
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
909
1049
|
* @since 0.1.0
|
|
910
1050
|
*/
|
|
911
1051
|
interface CngxPaginatorConfig {
|
|
912
|
-
readonly ariaLabels
|
|
913
|
-
readonly announcements
|
|
914
|
-
readonly formats
|
|
1052
|
+
readonly ariaLabels?: Partial<CngxPaginatorAriaLabels> | Signal<Partial<CngxPaginatorAriaLabels>>;
|
|
1053
|
+
readonly announcements?: Partial<CngxPaginatorAnnouncements> | Signal<Partial<CngxPaginatorAnnouncements>>;
|
|
1054
|
+
readonly formats?: Partial<CngxPaginatorFormats> | Signal<Partial<CngxPaginatorFormats>>;
|
|
915
1055
|
/**
|
|
916
1056
|
* Default items-per-page choices the `cngx-pgn-page-size` dropdown renders
|
|
917
1057
|
* when no per-instance `[options]` is bound. The instance input still wins
|
|
@@ -922,7 +1062,10 @@ interface CngxPaginatorConfig {
|
|
|
922
1062
|
readonly pageSizeOptions: readonly number[];
|
|
923
1063
|
readonly templates?: CngxPaginatorTemplates;
|
|
924
1064
|
}
|
|
925
|
-
/**
|
|
1065
|
+
/**
|
|
1066
|
+
* Library defaults. Carries no copy: the copy defaults are the `paginator`
|
|
1067
|
+
* section of the language pack. Override via {@link provideCngxPaginatorConfig}.
|
|
1068
|
+
*/
|
|
926
1069
|
declare const CNGX_PAGINATOR_DEFAULTS: CngxPaginatorConfig;
|
|
927
1070
|
/**
|
|
928
1071
|
* Configuration cascade token. Resolution priority (high to low):
|
|
@@ -946,13 +1089,13 @@ declare const CNGX_PAGINATOR_CONFIG: InjectionToken<CngxPaginatorConfig>;
|
|
|
946
1089
|
*/
|
|
947
1090
|
type CngxPaginatorConfigFeature = {
|
|
948
1091
|
readonly kind: 'ariaLabels';
|
|
949
|
-
readonly payload: Partial<CngxPaginatorAriaLabels
|
|
1092
|
+
readonly payload: Partial<CngxPaginatorAriaLabels> | Signal<Partial<CngxPaginatorAriaLabels>>;
|
|
950
1093
|
} | {
|
|
951
1094
|
readonly kind: 'announcements';
|
|
952
|
-
readonly payload: Partial<CngxPaginatorAnnouncements
|
|
1095
|
+
readonly payload: Partial<CngxPaginatorAnnouncements> | Signal<Partial<CngxPaginatorAnnouncements>>;
|
|
953
1096
|
} | {
|
|
954
1097
|
readonly kind: 'formats';
|
|
955
|
-
readonly payload: Partial<CngxPaginatorFormats
|
|
1098
|
+
readonly payload: Partial<CngxPaginatorFormats> | Signal<Partial<CngxPaginatorFormats>>;
|
|
956
1099
|
} | {
|
|
957
1100
|
readonly kind: 'pageSizeOptions';
|
|
958
1101
|
readonly payload: readonly number[];
|
|
@@ -962,7 +1105,8 @@ type CngxPaginatorConfigFeature = {
|
|
|
962
1105
|
};
|
|
963
1106
|
/**
|
|
964
1107
|
* Override any subset of the paginator accessible-name strings. Per-instance
|
|
965
|
-
* `aria-label` bindings still win over the cascade for the landmark name.
|
|
1108
|
+
* `aria-label` bindings still win over the cascade for the landmark name. Pass
|
|
1109
|
+
* a `Signal` to switch the language at runtime.
|
|
966
1110
|
*
|
|
967
1111
|
* ```ts
|
|
968
1112
|
* provideCngxPaginatorConfig(
|
|
@@ -974,9 +1118,11 @@ type CngxPaginatorConfigFeature = {
|
|
|
974
1118
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
975
1119
|
* @since 0.1.0
|
|
976
1120
|
*/
|
|
977
|
-
declare function withPaginatorAriaLabels(payload: Partial<CngxPaginatorAriaLabels>): CngxPaginatorConfigFeature;
|
|
1121
|
+
declare function withPaginatorAriaLabels(payload: Partial<CngxPaginatorAriaLabels> | Signal<Partial<CngxPaginatorAriaLabels>>): CngxPaginatorConfigFeature;
|
|
978
1122
|
/**
|
|
979
|
-
* Override any subset of the paginator live-region announcement phrasing.
|
|
1123
|
+
* Override any subset of the paginator live-region announcement phrasing. Pass
|
|
1124
|
+
* a `Signal` to switch the language at runtime; the live region speaks the new
|
|
1125
|
+
* phrasing with its next change.
|
|
980
1126
|
*
|
|
981
1127
|
* ```ts
|
|
982
1128
|
* provideCngxPaginatorConfig(
|
|
@@ -992,7 +1138,7 @@ declare function withPaginatorAriaLabels(payload: Partial<CngxPaginatorAriaLabel
|
|
|
992
1138
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
993
1139
|
* @since 0.1.0
|
|
994
1140
|
*/
|
|
995
|
-
declare function withPaginatorAnnouncements(payload: Partial<CngxPaginatorAnnouncements>): CngxPaginatorConfigFeature;
|
|
1141
|
+
declare function withPaginatorAnnouncements(payload: Partial<CngxPaginatorAnnouncements> | Signal<Partial<CngxPaginatorAnnouncements>>): CngxPaginatorConfigFeature;
|
|
996
1142
|
/**
|
|
997
1143
|
* Override the range-readout format. The `cngx-pgn-range` segment renders the
|
|
998
1144
|
* returned string verbatim, so this also localises the `of` connector.
|
|
@@ -1007,7 +1153,7 @@ declare function withPaginatorAnnouncements(payload: Partial<CngxPaginatorAnnoun
|
|
|
1007
1153
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1008
1154
|
* @since 0.1.0
|
|
1009
1155
|
*/
|
|
1010
|
-
declare function withPaginatorRangeFormat(range: CngxPaginatorFormats['range']): CngxPaginatorConfigFeature;
|
|
1156
|
+
declare function withPaginatorRangeFormat(range: CngxPaginatorFormats['range'] | Signal<CngxPaginatorFormats['range']>): CngxPaginatorConfigFeature;
|
|
1011
1157
|
/**
|
|
1012
1158
|
* Override the page-status format. The `cngx-pgn-status` segment renders the
|
|
1013
1159
|
* returned string verbatim, so this localises the "Page n of m" readout that
|
|
@@ -1023,7 +1169,38 @@ declare function withPaginatorRangeFormat(range: CngxPaginatorFormats['range']):
|
|
|
1023
1169
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1024
1170
|
* @since 0.1.0
|
|
1025
1171
|
*/
|
|
1026
|
-
declare function withPaginatorPageStatusFormat(pageStatus: CngxPaginatorFormats['pageStatus']): CngxPaginatorConfigFeature;
|
|
1172
|
+
declare function withPaginatorPageStatusFormat(pageStatus: CngxPaginatorFormats['pageStatus'] | Signal<CngxPaginatorFormats['pageStatus']>): CngxPaginatorConfigFeature;
|
|
1173
|
+
/**
|
|
1174
|
+
* Override the page-of-pages trigger readout. The `cngx-pgn-page-of-pages`
|
|
1175
|
+
* segment renders the returned string as sanitised HTML, so this localises the
|
|
1176
|
+
* `a / b` separator and its order.
|
|
1177
|
+
*
|
|
1178
|
+
* ```ts
|
|
1179
|
+
* provideCngxPaginatorConfig(
|
|
1180
|
+
* withPaginatorPageOfPagesFormat((page, totalPages) => `<b>${page}</b> von ${totalPages}`),
|
|
1181
|
+
* );
|
|
1182
|
+
* ```
|
|
1183
|
+
*
|
|
1184
|
+
* @category ui/paginator
|
|
1185
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1186
|
+
* @since 0.1.0
|
|
1187
|
+
*/
|
|
1188
|
+
declare function withPaginatorPageOfPagesFormat(pageOfPagesReadout: NonNullable<CngxPaginatorFormats['pageOfPagesReadout']> | Signal<NonNullable<CngxPaginatorFormats['pageOfPagesReadout']>>): CngxPaginatorConfigFeature;
|
|
1189
|
+
/**
|
|
1190
|
+
* Override the load-more progress readout. The `cngx-pgn-load-more` segment
|
|
1191
|
+
* renders the returned string as plain text beside its label.
|
|
1192
|
+
*
|
|
1193
|
+
* ```ts
|
|
1194
|
+
* provideCngxPaginatorConfig(
|
|
1195
|
+
* withPaginatorLoadMoreFormat((shown, total) => `${shown} von ${total}`),
|
|
1196
|
+
* );
|
|
1197
|
+
* ```
|
|
1198
|
+
*
|
|
1199
|
+
* @category ui/paginator
|
|
1200
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1201
|
+
* @since 0.1.0
|
|
1202
|
+
*/
|
|
1203
|
+
declare function withPaginatorLoadMoreFormat(loadMoreReadout: NonNullable<CngxPaginatorFormats['loadMoreReadout']> | Signal<NonNullable<CngxPaginatorFormats['loadMoreReadout']>>): CngxPaginatorConfigFeature;
|
|
1027
1204
|
/**
|
|
1028
1205
|
* Supply the default items-per-page choices for the `cngx-pgn-page-size`
|
|
1029
1206
|
* dropdown app-wide. The segment renders these when no per-instance `[options]`
|
|
@@ -1089,6 +1266,35 @@ declare function provideCngxPaginatorConfigAt(...features: CngxPaginatorConfigFe
|
|
|
1089
1266
|
* @since 0.1.0
|
|
1090
1267
|
*/
|
|
1091
1268
|
declare function injectPaginatorConfig(): CngxPaginatorConfig;
|
|
1269
|
+
/**
|
|
1270
|
+
* The resolved accessible-name strings of the paginator config in scope, as a
|
|
1271
|
+
* Signal that follows a runtime language switch. Runs in injection context.
|
|
1272
|
+
*
|
|
1273
|
+
* @category ui/paginator
|
|
1274
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1275
|
+
* @since 0.1.0
|
|
1276
|
+
*/
|
|
1277
|
+
declare function injectPaginatorAriaLabels(): Signal<CngxPaginatorAriaLabels>;
|
|
1278
|
+
/**
|
|
1279
|
+
* The resolved live-region phrasing of the paginator config in scope, as a
|
|
1280
|
+
* Signal. Read it untracked where it builds live-region text, so a language
|
|
1281
|
+
* switch does not re-speak the current message. Runs in injection context.
|
|
1282
|
+
*
|
|
1283
|
+
* @category ui/paginator
|
|
1284
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1285
|
+
* @since 0.1.0
|
|
1286
|
+
*/
|
|
1287
|
+
declare function injectPaginatorAnnouncements(): Signal<CngxPaginatorAnnouncements>;
|
|
1288
|
+
/**
|
|
1289
|
+
* The resolved readout formatters of the paginator config in scope, as a
|
|
1290
|
+
* Signal with every key filled from the `paginator` section of the language
|
|
1291
|
+
* pack. Runs in injection context.
|
|
1292
|
+
*
|
|
1293
|
+
* @category ui/paginator
|
|
1294
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1295
|
+
* @since 0.1.0
|
|
1296
|
+
*/
|
|
1297
|
+
declare function injectPaginatorFormats(): Signal<Required<CngxPaginatorFormats>>;
|
|
1092
1298
|
|
|
1093
1299
|
/**
|
|
1094
1300
|
* Reactive announcement source for the paginator live region.
|
|
@@ -1143,5 +1349,83 @@ type CngxPaginatorAnnouncerFactory = () => CngxPaginatorAnnouncer;
|
|
|
1143
1349
|
*/
|
|
1144
1350
|
declare const CNGX_PAGINATOR_ANNOUNCER_FACTORY: InjectionToken<CngxPaginatorAnnouncerFactory>;
|
|
1145
1351
|
|
|
1146
|
-
|
|
1147
|
-
|
|
1352
|
+
/**
|
|
1353
|
+
* The paginator section of a {@link CngxLanguagePack}: the copy of every
|
|
1354
|
+
* `@cngx/ui/paginator` segment. It feeds the `ariaLabels`, `announcements` and
|
|
1355
|
+
* `formats` of `CNGX_PAGINATOR_CONFIG`; a key set through
|
|
1356
|
+
* `withPaginatorAriaLabels`, `withPaginatorAnnouncements` or a
|
|
1357
|
+
* `withPaginator*Format` feature still wins. Messages use `{name}`
|
|
1358
|
+
* placeholders, numbers are formatted for the locale.
|
|
1359
|
+
*
|
|
1360
|
+
* The readout messages (`range`, `pageStatus`, `pageOfPagesReadout`) render as
|
|
1361
|
+
* sanitised HTML, so they may emphasise the current value with `<b>`.
|
|
1362
|
+
*
|
|
1363
|
+
* @category ui/paginator/i18n
|
|
1364
|
+
* @since 0.1.0
|
|
1365
|
+
* @relatedTo CNGX_PAGINATOR_CONFIG, withPaginatorAriaLabels, withPaginatorAnnouncements
|
|
1366
|
+
*/
|
|
1367
|
+
interface CngxPaginatorLanguageSection {
|
|
1368
|
+
/** Accessible name of the paginator landmark. */
|
|
1369
|
+
readonly label: string;
|
|
1370
|
+
/** Accessible name of the first-page button. */
|
|
1371
|
+
readonly first: string;
|
|
1372
|
+
/** Accessible name of the previous-page button. */
|
|
1373
|
+
readonly previous: string;
|
|
1374
|
+
/** Accessible name of the next-page button. */
|
|
1375
|
+
readonly next: string;
|
|
1376
|
+
/** Accessible name of the last-page button. */
|
|
1377
|
+
readonly last: string;
|
|
1378
|
+
/** `{page}`: accessible name of a numbered page button. */
|
|
1379
|
+
readonly page: CngxMessage;
|
|
1380
|
+
/** Accessible name of the hidden-pages overflow trigger. */
|
|
1381
|
+
readonly morePages: string;
|
|
1382
|
+
/** Accessible name of the page-size select. */
|
|
1383
|
+
readonly itemsPerPage: string;
|
|
1384
|
+
/** Accessible name of the go-to-page input. */
|
|
1385
|
+
readonly goToPage: string;
|
|
1386
|
+
/** Accessible name of the page-of-pages select. */
|
|
1387
|
+
readonly pageOfPages: string;
|
|
1388
|
+
/** Accessible name of the load-more button. */
|
|
1389
|
+
readonly loadMore: string;
|
|
1390
|
+
/** `{total}`: text once every item is loaded. */
|
|
1391
|
+
readonly allLoaded: CngxMessage;
|
|
1392
|
+
/** `{label}`: accessible name of an alphabet bucket. */
|
|
1393
|
+
readonly bucket: CngxMessage;
|
|
1394
|
+
/** `{label}`: accessible name of an alphabet bucket without items. */
|
|
1395
|
+
readonly emptyBucket: CngxMessage;
|
|
1396
|
+
/** Accessible name of the alphabet bucket group. */
|
|
1397
|
+
readonly bucketGroup: string;
|
|
1398
|
+
/** Accessible name of the position rail. */
|
|
1399
|
+
readonly railPosition: string;
|
|
1400
|
+
/** `{page}`, `{totalPages}`: announced on every page change. */
|
|
1401
|
+
readonly pageChange: CngxMessage;
|
|
1402
|
+
/** Announced when the bound async state becomes busy. */
|
|
1403
|
+
readonly loading: string;
|
|
1404
|
+
/** Announced when the bound async state settles after being busy. */
|
|
1405
|
+
readonly updated: string;
|
|
1406
|
+
/** `{start}`, `{end}`, `{total}`: the `cngx-pgn-range` readout (HTML). */
|
|
1407
|
+
readonly range: CngxMessage;
|
|
1408
|
+
/** `{page}`, `{totalPages}`: the `cngx-pgn-status` readout (HTML). */
|
|
1409
|
+
readonly pageStatus: CngxMessage;
|
|
1410
|
+
/** `{page}`, `{totalPages}`: the `cngx-pgn-page-of-pages` trigger readout (HTML). */
|
|
1411
|
+
readonly pageOfPagesReadout: CngxMessage;
|
|
1412
|
+
/** `{shown}`, `{total}`: the `cngx-pgn-load-more` progress readout. */
|
|
1413
|
+
readonly loadMoreReadout: CngxMessage;
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* The English paginator section: the single source of the paginator's English
|
|
1417
|
+
* copy. The `CNGX_PAGINATOR_CONFIG` copy sub-trees default to it.
|
|
1418
|
+
*
|
|
1419
|
+
* @category ui/paginator/i18n
|
|
1420
|
+
* @since 0.1.0
|
|
1421
|
+
* @relatedTo CNGX_PAGINATOR_CONFIG
|
|
1422
|
+
*/
|
|
1423
|
+
declare const CNGX_PAGINATOR_LANGUAGE_EN: CngxPaginatorLanguageSection;
|
|
1424
|
+
declare module '@cngx/core/i18n' {
|
|
1425
|
+
interface CngxLanguagePack {
|
|
1426
|
+
readonly paginator: CngxPaginatorLanguageSection;
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
export { CNGX_PAGINATOR_ANNOUNCER_FACTORY, CNGX_PAGINATOR_CONFIG, CNGX_PAGINATOR_DEFAULTS, CNGX_PAGINATOR_HOST, CNGX_PAGINATOR_LANGUAGE_EN, CNGX_PAGINATOR_PAGE_WINDOW_FACTORY, CngxPaginator, CngxPaginatorAlpha, CngxPaginatorDots, CngxPaginatorFirst, CngxPaginatorGoto, CngxPaginatorInfinite, CngxPaginatorLast, CngxPaginatorLoadMore, CngxPaginatorLoading, CngxPaginatorNext, CngxPaginatorPageOfPages, CngxPaginatorPageSize, CngxPaginatorPages, CngxPaginatorPrev, CngxPaginatorRail, CngxPaginatorRange, CngxPaginatorStatus, createPaginatorAnnouncer, createPaginatorPageWindow, injectPaginatorAnnouncements, injectPaginatorAriaLabels, injectPaginatorConfig, injectPaginatorFormats, provideCngxPaginatorConfig, provideCngxPaginatorConfigAt, withPaginatorAnnouncements, withPaginatorAriaLabels, withPaginatorLoadMoreFormat, withPaginatorPageOfPagesFormat, withPaginatorPageSizeOptions, withPaginatorPageStatusFormat, withPaginatorRangeFormat, withPaginatorTemplates };
|
|
1431
|
+
export type { CngxPaginatorAnnouncements, CngxPaginatorAnnouncer, CngxPaginatorAnnouncerFactory, CngxPaginatorAriaLabels, CngxPaginatorConfig, CngxPaginatorConfigFeature, CngxPaginatorDensity, CngxPaginatorFormats, CngxPaginatorHost, CngxPaginatorLanguageSection, CngxPaginatorPageWindowFactory, CngxPaginatorPageWindowFn, CngxPaginatorSkin, CngxPaginatorTemplates, PageItem, PageWindow };
|