@cngx/ui 0.1.0-rc.7 → 0.1.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/a11y/README.md +11 -5
- package/accordion/README.md +4 -2
- package/breadcrumb/README.md +262 -0
- package/collection/README.md +6 -0
- package/command-palette/README.md +227 -0
- package/data-grid-accordion/README.md +76 -2
- package/feedback/README.md +40 -0
- package/fesm2022/cngx-ui-a11y.mjs +189 -57
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +120 -36
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +121 -56
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +228 -108
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +180 -23
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +204 -62
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +395 -119
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +209 -40
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +498 -101
- 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 +1074 -460
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +76 -7
- 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 +555 -204
- 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 +553 -198
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +344 -109
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +4 -16
- 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 +146 -46
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +234 -99
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +88 -25
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +98 -23
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +101 -33
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +15 -20
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-paginator/README.md +9 -2
- package/mat-tabs/README.md +30 -6
- package/mat-tabs/styles/mat-tabs.css +188 -42
- package/overlay/README.md +9 -4
- package/package.json +31 -7
- package/paginator/README.md +8 -4
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +91 -0
- package/schematics/package.json +3 -0
- package/sidenav/README.md +33 -11
- package/speak/README.md +3 -2
- package/stepper/README.md +14 -2
- package/timeline/README.md +1 -1
- package/toc/README.md +4 -1
- package/types/cngx-ui-a11y.d.ts +121 -30
- package/types/cngx-ui-accordion.d.ts +100 -28
- package/types/cngx-ui-action-button.d.ts +44 -3
- package/types/cngx-ui-breadcrumb.d.ts +167 -60
- package/types/cngx-ui-chart-panel.d.ts +122 -18
- package/types/cngx-ui-collection.d.ts +157 -55
- package/types/cngx-ui-command-palette.d.ts +297 -183
- package/types/cngx-ui-context-menu.d.ts +140 -10
- package/types/cngx-ui-data-grid-accordion.d.ts +278 -39
- package/types/cngx-ui-empty-state.d.ts +9 -2
- package/types/cngx-ui-feedback.d.ts +605 -59
- package/types/cngx-ui-mat-accordion.d.ts +30 -1
- 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 +250 -34
- package/types/cngx-ui-overlay.d.ts +56 -10
- package/types/cngx-ui-paginator.d.ts +425 -136
- package/types/cngx-ui-sidenav.d.ts +248 -74
- package/types/cngx-ui-skeleton.d.ts +6 -7
- package/types/cngx-ui-speak.d.ts +118 -5
- package/types/cngx-ui-stat-card.d.ts +117 -33
- package/types/cngx-ui-stepper.d.ts +88 -49
- package/types/cngx-ui-tabs.d.ts +6 -4
- package/types/cngx-ui-timeline.d.ts +35 -11
- package/types/cngx-ui-toc.d.ts +93 -16
- package/types/cngx-ui.d.ts +7 -4
|
@@ -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
|
-
import { CngxPaginate } from '@cngx/common/data';
|
|
5
|
+
import { CngxPaginate, CngxBucketPaginateHost } 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,7 +13,7 @@ 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
|
* Page bindings are longhand pairs -
|
|
18
19
|
* `[pageIndex]="pageIndex()" (pageIndexChange)="pageIndex.set($event)"` and
|
|
@@ -42,6 +43,13 @@ type CngxPaginatorDensity = 'compact' | 'default' | 'comfortable';
|
|
|
42
43
|
*
|
|
43
44
|
* All ARIA attributes are signal-driven. `aria-busy` has a single owner here.
|
|
44
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
|
+
*
|
|
45
53
|
* @category ui/paginator
|
|
46
54
|
* @docsKind primary
|
|
47
55
|
* @wcag AA
|
|
@@ -51,7 +59,7 @@ type CngxPaginatorDensity = 'compact' | 'default' | 'comfortable';
|
|
|
51
59
|
* @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts
|
|
52
60
|
* @playground Data-table footer (Material) ./examples/data-table/data-table.component.ts
|
|
53
61
|
* @playground Live filter with reset-to-first-page ./examples/filter-reset/filter-reset.component.ts
|
|
54
|
-
* @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
|
|
55
63
|
* @playground Alphabetical bucket paging ./examples/alpha-mode/alpha-mode.component.ts
|
|
56
64
|
* @playground Load-more (append) paging ./examples/load-more-mode/load-more-mode.component.ts
|
|
57
65
|
* @playground Infinite scroll paging ./examples/infinite-mode/infinite-mode.component.ts
|
|
@@ -65,9 +73,9 @@ type CngxPaginatorDensity = 'compact' | 'default' | 'comfortable';
|
|
|
65
73
|
*/
|
|
66
74
|
declare class CngxPaginator {
|
|
67
75
|
/** Accessible name for the navigation landmark. Overrides the config default. */
|
|
68
|
-
readonly ariaLabel:
|
|
76
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
69
77
|
/** Visual skin; reflected onto `[data-skin]`. */
|
|
70
|
-
readonly skin:
|
|
78
|
+
readonly skin: _angular_core.InputSignal<CngxPaginatorSkin>;
|
|
71
79
|
/**
|
|
72
80
|
* Private size preset (hit-target + type); reflected onto
|
|
73
81
|
* `[data-paginator-size]`, NOT the global `[data-density]`. Spacing is a
|
|
@@ -75,14 +83,7 @@ declare class CngxPaginator {
|
|
|
75
83
|
* compacts this paginator's gaps like every other component; this input keeps
|
|
76
84
|
* only the touch-target sizing the global scale does not yet cover.
|
|
77
85
|
*/
|
|
78
|
-
readonly density:
|
|
79
|
-
/**
|
|
80
|
-
* Opt into the responsive collapse; reflected onto `[data-responsive]`. When
|
|
81
|
-
* set, a `@container` rule swaps the projected `cngx-pgn-pages` number row for
|
|
82
|
-
* a `cngx-pgn-status` "Page n of m" readout once the paginator's own container
|
|
83
|
-
* narrows past the collapse breakpoint. Compose both segments for it to apply.
|
|
84
|
-
*/
|
|
85
|
-
readonly responsive: i0.InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
readonly density: _angular_core.InputSignal<CngxPaginatorDensity>;
|
|
86
87
|
/**
|
|
87
88
|
* Reset key. When its value changes (after the initial render) the paginator
|
|
88
89
|
* jumps to the first page - bind the sort / filter / search value a result set
|
|
@@ -91,25 +92,32 @@ declare class CngxPaginator {
|
|
|
91
92
|
* recomputes every change-detection pass and would reset on each. Shares the
|
|
92
93
|
* `connectPaginateResetOn` implementation with `[cngxPaginateResetOn]`.
|
|
93
94
|
*/
|
|
94
|
-
readonly resetOn:
|
|
95
|
-
/**
|
|
96
|
-
|
|
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>;
|
|
97
103
|
/** Emits the effective page size on every change. */
|
|
98
|
-
readonly pageSizeChange:
|
|
104
|
+
readonly pageSizeChange: _angular_core.OutputEmitterRef<number>;
|
|
99
105
|
protected readonly paginate: CngxPaginate;
|
|
100
|
-
|
|
106
|
+
private readonly config;
|
|
107
|
+
private readonly ariaLabels;
|
|
108
|
+
protected readonly announcements: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAnnouncements>;
|
|
101
109
|
/**
|
|
102
110
|
* Live-region message source - mounted onto the `cngxLiveRegion` span in the
|
|
103
111
|
* template. Built through the swap token so a consumer can wrap the
|
|
104
112
|
* busy / settle / page-change derivation without forking the shell.
|
|
105
113
|
*/
|
|
106
114
|
protected readonly announcer: _cngx_ui_paginator.CngxPaginatorAnnouncer;
|
|
107
|
-
protected readonly resolvedAriaLabel:
|
|
108
|
-
protected readonly loadingSlot:
|
|
109
|
-
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>;
|
|
110
118
|
constructor();
|
|
111
|
-
static ɵfac:
|
|
112
|
-
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: {}; }]>;
|
|
113
121
|
}
|
|
114
122
|
|
|
115
123
|
/**
|
|
@@ -138,6 +146,13 @@ interface CngxPaginatorHost {
|
|
|
138
146
|
readonly totalPages: Signal<number>;
|
|
139
147
|
/** `[start, end]` slice indices for the current page - always in-bounds. */
|
|
140
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]>;
|
|
141
156
|
/**
|
|
142
157
|
* `[0, end]` cumulative slice indices for append-don't-replace (load-more)
|
|
143
158
|
* consumers - every page revealed so far, sliced from the top.
|
|
@@ -199,8 +214,8 @@ declare const CNGX_PAGINATOR_HOST: InjectionToken<CngxPaginatorHost>;
|
|
|
199
214
|
*/
|
|
200
215
|
declare class CngxPaginatorLoading {
|
|
201
216
|
readonly templateRef: TemplateRef<any>;
|
|
202
|
-
static ɵfac:
|
|
203
|
-
static ɵdir:
|
|
217
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorLoading, never>;
|
|
218
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxPaginatorLoading, "[cngxPaginatorLoading]", ["cngxPaginatorLoading"], {}, {}, never, never, true, never>;
|
|
204
219
|
}
|
|
205
220
|
|
|
206
221
|
interface NavCore {
|
|
@@ -220,8 +235,8 @@ interface NavCore {
|
|
|
220
235
|
declare class CngxPaginatorFirst {
|
|
221
236
|
protected readonly glyph: "«";
|
|
222
237
|
protected readonly core: NavCore;
|
|
223
|
-
static ɵfac:
|
|
224
|
-
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>;
|
|
225
240
|
}
|
|
226
241
|
/**
|
|
227
242
|
* Previous-page segment. Disabled on the first page; calls `host.previous()`.
|
|
@@ -235,8 +250,8 @@ declare class CngxPaginatorFirst {
|
|
|
235
250
|
declare class CngxPaginatorPrev {
|
|
236
251
|
protected readonly glyph: "‹";
|
|
237
252
|
protected readonly core: NavCore;
|
|
238
|
-
static ɵfac:
|
|
239
|
-
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>;
|
|
240
255
|
}
|
|
241
256
|
/**
|
|
242
257
|
* Next-page segment. Disabled on the last page; calls `host.next()`.
|
|
@@ -250,8 +265,8 @@ declare class CngxPaginatorPrev {
|
|
|
250
265
|
declare class CngxPaginatorNext {
|
|
251
266
|
protected readonly glyph: "›";
|
|
252
267
|
protected readonly core: NavCore;
|
|
253
|
-
static ɵfac:
|
|
254
|
-
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>;
|
|
255
270
|
}
|
|
256
271
|
/**
|
|
257
272
|
* Last-page segment. Disabled on the last page; calls `host.last()`.
|
|
@@ -265,8 +280,8 @@ declare class CngxPaginatorNext {
|
|
|
265
280
|
declare class CngxPaginatorLast {
|
|
266
281
|
protected readonly glyph: "»";
|
|
267
282
|
protected readonly core: NavCore;
|
|
268
|
-
static ɵfac:
|
|
269
|
-
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>;
|
|
270
285
|
}
|
|
271
286
|
|
|
272
287
|
/**
|
|
@@ -310,7 +325,10 @@ interface PageWindow {
|
|
|
310
325
|
*/
|
|
311
326
|
declare class CngxPaginatorPages {
|
|
312
327
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
313
|
-
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>;
|
|
314
332
|
protected readonly glyphs: {
|
|
315
333
|
readonly first: "«";
|
|
316
334
|
readonly previous: "‹";
|
|
@@ -319,10 +337,23 @@ declare class CngxPaginatorPages {
|
|
|
319
337
|
readonly more: "…";
|
|
320
338
|
readonly caret: "▾";
|
|
321
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;
|
|
322
353
|
/** Pages flanking the current page on each side. Defaults to the v1 window. */
|
|
323
|
-
readonly siblingCount:
|
|
354
|
+
readonly siblingCount: _angular_core.InputSignal<number>;
|
|
324
355
|
/** Pages pinned at each end. Defaults to the v1 window. */
|
|
325
|
-
readonly boundaryCount:
|
|
356
|
+
readonly boundaryCount: _angular_core.InputSignal<number>;
|
|
326
357
|
/** The page-window computation, swappable enterprise-wide via the DI token. */
|
|
327
358
|
private readonly pageWindowFn;
|
|
328
359
|
/**
|
|
@@ -330,7 +361,7 @@ declare class CngxPaginatorPages {
|
|
|
330
361
|
* across recomputes that yield an identical window, so the `@for` does not
|
|
331
362
|
* churn (signal-equality rule).
|
|
332
363
|
*/
|
|
333
|
-
protected readonly model:
|
|
364
|
+
protected readonly model: _angular_core.Signal<PageWindow>;
|
|
334
365
|
/** Position of the active page within the rendered window (gaps counted). */
|
|
335
366
|
private readonly activeWindowIndex;
|
|
336
367
|
/**
|
|
@@ -341,7 +372,7 @@ declare class CngxPaginatorPages {
|
|
|
341
372
|
* page changes by any path (click / prev / next / Enter). Focus is not
|
|
342
373
|
* selection - the user arrows to a page and Enter commits it.
|
|
343
374
|
*/
|
|
344
|
-
protected readonly rovingIndex:
|
|
375
|
+
protected readonly rovingIndex: _angular_core.WritableSignal<number>;
|
|
345
376
|
protected isCurrent(index: number): boolean;
|
|
346
377
|
protected goto(index: number): void;
|
|
347
378
|
/**
|
|
@@ -355,15 +386,25 @@ declare class CngxPaginatorPages {
|
|
|
355
386
|
isVisible(): boolean;
|
|
356
387
|
}, panel: HTMLElement): void;
|
|
357
388
|
/**
|
|
358
|
-
* Restore focus to the ellipsis trigger when the panel closes
|
|
359
|
-
* outside click), so a keyboard user is not dropped to
|
|
360
|
-
*
|
|
361
|
-
*
|
|
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.
|
|
362
395
|
*/
|
|
363
396
|
protected onOverflowToggle(event: Event, trigger: HTMLElement): void;
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
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>;
|
|
367
408
|
}
|
|
368
409
|
|
|
369
410
|
/**
|
|
@@ -422,26 +463,30 @@ declare const CNGX_PAGINATOR_PAGE_WINDOW_FACTORY: InjectionToken<CngxPaginatorPa
|
|
|
422
463
|
*/
|
|
423
464
|
declare class CngxPaginatorRange {
|
|
424
465
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
425
|
-
private readonly
|
|
466
|
+
private readonly formats;
|
|
426
467
|
/** 1-based index of the first item on the current page (0 when empty). */
|
|
427
|
-
protected readonly start:
|
|
468
|
+
protected readonly start: _angular_core.Signal<number>;
|
|
428
469
|
/**
|
|
429
|
-
* 1-based index of the last item on the current page. The brain's
|
|
430
|
-
*
|
|
431
|
-
*
|
|
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.
|
|
432
473
|
*/
|
|
433
|
-
protected readonly end:
|
|
474
|
+
protected readonly end: _angular_core.Signal<number>;
|
|
434
475
|
/** Formatted readout from the config range formatter (EN default `start-end of total`). */
|
|
435
|
-
protected readonly text:
|
|
436
|
-
static ɵfac:
|
|
437
|
-
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>;
|
|
438
479
|
}
|
|
439
480
|
|
|
440
481
|
/**
|
|
441
482
|
* Go-to-page segment: a native `<input type="number">`. \
|
|
442
|
-
*
|
|
443
|
-
*
|
|
444
|
-
*
|
|
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).
|
|
445
490
|
*
|
|
446
491
|
* @category ui/paginator
|
|
447
492
|
* @wcag AA
|
|
@@ -451,13 +496,15 @@ declare class CngxPaginatorRange {
|
|
|
451
496
|
*/
|
|
452
497
|
declare class CngxPaginatorGoto {
|
|
453
498
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
454
|
-
protected readonly
|
|
455
|
-
/**
|
|
456
|
-
*
|
|
457
|
-
|
|
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
|
+
*/
|
|
458
505
|
protected commit(event: Event): void;
|
|
459
|
-
static ɵfac:
|
|
460
|
-
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>;
|
|
461
508
|
}
|
|
462
509
|
|
|
463
510
|
/**
|
|
@@ -476,7 +523,11 @@ declare class CngxPaginatorGoto {
|
|
|
476
523
|
*/
|
|
477
524
|
declare class CngxPaginatorPageSize {
|
|
478
525
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
479
|
-
|
|
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>;
|
|
480
531
|
protected readonly glyphs: {
|
|
481
532
|
readonly first: "«";
|
|
482
533
|
readonly previous: "‹";
|
|
@@ -491,16 +542,26 @@ declare class CngxPaginatorPageSize {
|
|
|
491
542
|
* (`CNGX_PAGINATOR_CONFIG.pageSizeOptions`, set app-wide via
|
|
492
543
|
* `withPaginatorPageSizeOptions`); a non-empty binding wins over it.
|
|
493
544
|
*/
|
|
494
|
-
readonly options:
|
|
545
|
+
readonly options: _angular_core.InputSignal<readonly number[]>;
|
|
495
546
|
/**
|
|
496
547
|
* The sizes actually rendered: the per-instance `[options]` when non-empty,
|
|
497
548
|
* otherwise the config cascade default. A pure derivation - no synced state
|
|
498
549
|
* (Pillar 1).
|
|
499
550
|
*/
|
|
500
|
-
protected readonly resolvedOptions:
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
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>;
|
|
504
565
|
}
|
|
505
566
|
|
|
506
567
|
/**
|
|
@@ -519,7 +580,11 @@ declare class CngxPaginatorPageSize {
|
|
|
519
580
|
*/
|
|
520
581
|
declare class CngxPaginatorPageOfPages {
|
|
521
582
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
522
|
-
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;
|
|
523
588
|
protected readonly glyphs: {
|
|
524
589
|
readonly first: "«";
|
|
525
590
|
readonly previous: "‹";
|
|
@@ -528,15 +593,31 @@ declare class CngxPaginatorPageOfPages {
|
|
|
528
593
|
readonly more: "…";
|
|
529
594
|
readonly caret: "▾";
|
|
530
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>;
|
|
531
601
|
/**
|
|
532
602
|
* The 1-based page numbers `1..totalPages`. Length-keyed `equal` keeps the
|
|
533
603
|
* reference stable while the count is unchanged - the contents are fully
|
|
534
604
|
* determined by the length, so the `@for` never churns (signal-equality rule).
|
|
535
605
|
*/
|
|
536
|
-
protected readonly pages:
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
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>;
|
|
540
621
|
}
|
|
541
622
|
|
|
542
623
|
/** Resting size tier of a rendered dot. Edge dots shrink (iOS page-control). */
|
|
@@ -560,6 +641,14 @@ interface DotModel {
|
|
|
560
641
|
* transition) to keep the active dot centred, iOS page-control style, instead of
|
|
561
642
|
* reshuffling the DOM. Dot DOM + windowing live here, not in a shared atom.
|
|
562
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
|
+
*
|
|
563
652
|
* @category ui/paginator
|
|
564
653
|
* @wcag AA
|
|
565
654
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-dots.component.ts
|
|
@@ -569,17 +658,30 @@ interface DotModel {
|
|
|
569
658
|
*/
|
|
570
659
|
declare class CngxPaginatorDots {
|
|
571
660
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
572
|
-
protected readonly
|
|
661
|
+
protected readonly ariaLabels: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAriaLabels>;
|
|
573
662
|
/**
|
|
574
663
|
* The rendered dots + viewport anchor. Structural `equal` keeps the reference
|
|
575
664
|
* stable across recomputes that yield an identical model, so the `@for` does
|
|
576
665
|
* not churn (signal-equality rule).
|
|
577
666
|
*/
|
|
578
|
-
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;
|
|
579
681
|
protected isCurrent(index: number): boolean;
|
|
580
682
|
protected goto(index: number): void;
|
|
581
|
-
static ɵfac:
|
|
582
|
-
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>;
|
|
583
685
|
}
|
|
584
686
|
|
|
585
687
|
/**
|
|
@@ -600,11 +702,11 @@ declare class CngxPaginatorDots {
|
|
|
600
702
|
*/
|
|
601
703
|
declare class CngxPaginatorStatus {
|
|
602
704
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
603
|
-
private readonly
|
|
705
|
+
private readonly formats;
|
|
604
706
|
/** Formatted "Page n of m" readout from the config formatter (1-based page). */
|
|
605
|
-
protected readonly text:
|
|
606
|
-
static ɵfac:
|
|
607
|
-
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>;
|
|
608
710
|
}
|
|
609
711
|
|
|
610
712
|
/**
|
|
@@ -625,15 +727,15 @@ declare class CngxPaginatorStatus {
|
|
|
625
727
|
*/
|
|
626
728
|
declare class CngxPaginatorRail {
|
|
627
729
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
628
|
-
protected readonly
|
|
730
|
+
protected readonly ariaLabels: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAriaLabels>;
|
|
629
731
|
/**
|
|
630
732
|
* Fill percentage (0-100) of the current page across the page span. A single
|
|
631
733
|
* page (or none) reads 0; the last page reads 100. Drives both the composed
|
|
632
734
|
* `cngx-progress` `[progress]` and the knob's inline position.
|
|
633
735
|
*/
|
|
634
|
-
protected readonly fillPercent:
|
|
635
|
-
static ɵfac:
|
|
636
|
-
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>;
|
|
637
739
|
}
|
|
638
740
|
|
|
639
741
|
/**
|
|
@@ -657,25 +759,29 @@ declare class CngxPaginatorRail {
|
|
|
657
759
|
*/
|
|
658
760
|
declare class CngxPaginatorLoadMore {
|
|
659
761
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
660
|
-
private readonly
|
|
762
|
+
private readonly ariaLabels;
|
|
763
|
+
private readonly formats;
|
|
661
764
|
/**
|
|
662
765
|
* Accessible name from the config cascade. On the last page the actionable
|
|
663
766
|
* `Load more` name is replaced with the exhausted-state `allLoaded` label so
|
|
664
767
|
* AT does not announce an action on the disabled button.
|
|
665
768
|
*/
|
|
666
|
-
protected readonly ariaLabel:
|
|
769
|
+
protected readonly ariaLabel: _angular_core.Signal<string>;
|
|
667
770
|
/** Disabled on the last page or while busy - the trigger becomes a no-op. */
|
|
668
|
-
protected readonly disabled:
|
|
771
|
+
protected readonly disabled: _angular_core.Signal<boolean>;
|
|
669
772
|
/**
|
|
670
|
-
* Items revealed so far. The brain's `
|
|
671
|
-
*
|
|
672
|
-
*
|
|
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.
|
|
673
777
|
*/
|
|
674
|
-
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>;
|
|
675
781
|
/** Reveal the next page. Guarded so a disabled click is a no-op. */
|
|
676
782
|
protected handleClick(): void;
|
|
677
|
-
static ɵfac:
|
|
678
|
-
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>;
|
|
679
785
|
}
|
|
680
786
|
|
|
681
787
|
/**
|
|
@@ -719,34 +825,35 @@ declare class CngxPaginatorLoadMore {
|
|
|
719
825
|
*/
|
|
720
826
|
declare class CngxPaginatorInfinite {
|
|
721
827
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
722
|
-
private readonly
|
|
828
|
+
private readonly ariaLabels;
|
|
829
|
+
private readonly announcements;
|
|
723
830
|
/**
|
|
724
831
|
* CSS selector for the scroll container the sentinel is watched within.
|
|
725
832
|
* `null` (default) observes the viewport. Forwarded to `CngxInfiniteScroll`.
|
|
726
833
|
*/
|
|
727
|
-
readonly root:
|
|
834
|
+
readonly root: _angular_core.InputSignal<string | null>;
|
|
728
835
|
/**
|
|
729
836
|
* Pre-fetch margin around the scroll container, forwarded to
|
|
730
837
|
* `CngxInfiniteScroll`. The directive default loads ~200px before the
|
|
731
838
|
* sentinel is visible.
|
|
732
839
|
*/
|
|
733
|
-
readonly rootMargin:
|
|
840
|
+
readonly rootMargin: _angular_core.InputSignal<string>;
|
|
734
841
|
/**
|
|
735
842
|
* Exhausted: the last page is reached AND its load has settled. Gating on
|
|
736
843
|
* `!isBusy()` keeps the spinner up while the final batch is still loading, so
|
|
737
844
|
* the segment never claims "all loaded" before the last rows arrive.
|
|
738
845
|
*/
|
|
739
|
-
protected readonly isExhausted:
|
|
846
|
+
protected readonly isExhausted: _angular_core.Signal<boolean>;
|
|
740
847
|
/**
|
|
741
848
|
* Exhausted-state label from the config cascade, reused from the load-more
|
|
742
849
|
* segment so both append modes speak the same "all N loaded" end state rather
|
|
743
850
|
* than leaving the tail implicit.
|
|
744
851
|
*/
|
|
745
|
-
protected readonly endLabel:
|
|
852
|
+
protected readonly endLabel: _angular_core.Signal<string>;
|
|
746
853
|
/** Status text shown beside the spinner while more pages remain. */
|
|
747
|
-
protected readonly busyLabel:
|
|
748
|
-
static ɵfac:
|
|
749
|
-
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>;
|
|
750
857
|
}
|
|
751
858
|
|
|
752
859
|
/**
|
|
@@ -776,15 +883,15 @@ declare class CngxPaginatorInfinite {
|
|
|
776
883
|
* <example-url>http://localhost:4200/#/ui/paginator/paginator-modes/alphabetical</example-url>
|
|
777
884
|
*/
|
|
778
885
|
declare class CngxPaginatorAlpha {
|
|
779
|
-
protected readonly host:
|
|
780
|
-
protected readonly
|
|
886
|
+
protected readonly host: CngxBucketPaginateHost;
|
|
887
|
+
protected readonly ariaLabels: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAriaLabels>;
|
|
781
888
|
/**
|
|
782
889
|
* Roving focus cursor. A `linkedSignal` so the strip's single tab stop tracks
|
|
783
890
|
* the active bucket (Tab lands on the pressed chip) yet still moves freely
|
|
784
891
|
* under the arrow keys; when nothing is selected it falls back to the first
|
|
785
892
|
* non-empty chip so Tab never lands on a disabled control.
|
|
786
893
|
*/
|
|
787
|
-
protected readonly rovingIndex:
|
|
894
|
+
protected readonly rovingIndex: _angular_core.WritableSignal<number>;
|
|
788
895
|
protected isActive(label: string): boolean;
|
|
789
896
|
/**
|
|
790
897
|
* Accessible name: the available chip uses `ariaLabels.bucket`; an empty chip
|
|
@@ -792,14 +899,14 @@ declare class CngxPaginatorAlpha {
|
|
|
792
899
|
*/
|
|
793
900
|
protected chipLabel(label: string): string;
|
|
794
901
|
protected select(label: string): void;
|
|
795
|
-
static ɵfac:
|
|
796
|
-
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>;
|
|
797
904
|
}
|
|
798
905
|
|
|
799
906
|
/**
|
|
800
907
|
* Accessible-name strings for the paginator landmark and its segment parts.
|
|
801
|
-
*
|
|
802
|
-
* {@link withPaginatorAriaLabels}.
|
|
908
|
+
* The defaults come from the `paginator` section of the language pack
|
|
909
|
+
* (English without one); {@link withPaginatorAriaLabels} overrides single keys.
|
|
803
910
|
*
|
|
804
911
|
* @category ui/paginator
|
|
805
912
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
@@ -852,8 +959,9 @@ interface CngxPaginatorAriaLabels {
|
|
|
852
959
|
readonly railPosition: string;
|
|
853
960
|
}
|
|
854
961
|
/**
|
|
855
|
-
* Display-text formatters for the data-readout segments.
|
|
856
|
-
*
|
|
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.
|
|
857
965
|
*
|
|
858
966
|
* @category ui/paginator
|
|
859
967
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
@@ -874,12 +982,27 @@ interface CngxPaginatorFormats {
|
|
|
874
982
|
* `announcements.pageChange` live-region phrasing, which stays plain text.
|
|
875
983
|
*/
|
|
876
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;
|
|
877
999
|
}
|
|
878
1000
|
/**
|
|
879
1001
|
* Live-region announcement phrasing. The paginator announces the effective page
|
|
880
1002
|
* on every change (navigation or a `total`-shrink clamp, so the clamp is never
|
|
881
|
-
* silent) and the async busy / settle transitions.
|
|
882
|
-
*
|
|
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.
|
|
883
1006
|
*
|
|
884
1007
|
* @category ui/paginator
|
|
885
1008
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
@@ -908,20 +1031,27 @@ interface CngxPaginatorTemplates {
|
|
|
908
1031
|
readonly loading?: TemplateRef<unknown>;
|
|
909
1032
|
}
|
|
910
1033
|
/**
|
|
911
|
-
* Resolved paginator configuration. Three
|
|
1034
|
+
* Resolved paginator configuration. Three copy sub-trees - accessible-name
|
|
912
1035
|
* strings, live-region announcement phrasing, and data-readout formatters -
|
|
913
1036
|
* plus a flat `pageSizeOptions` list and an optional `templates` slot tree,
|
|
914
1037
|
* each merged independently by the reducer in
|
|
915
1038
|
* {@link provideCngxPaginatorConfig}.
|
|
916
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
|
+
*
|
|
917
1047
|
* @category ui/paginator
|
|
918
1048
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
919
1049
|
* @since 0.1.0
|
|
920
1050
|
*/
|
|
921
1051
|
interface CngxPaginatorConfig {
|
|
922
|
-
readonly ariaLabels
|
|
923
|
-
readonly announcements
|
|
924
|
-
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>>;
|
|
925
1055
|
/**
|
|
926
1056
|
* Default items-per-page choices the `cngx-pgn-page-size` dropdown renders
|
|
927
1057
|
* when no per-instance `[options]` is bound. The instance input still wins
|
|
@@ -932,12 +1062,18 @@ interface CngxPaginatorConfig {
|
|
|
932
1062
|
readonly pageSizeOptions: readonly number[];
|
|
933
1063
|
readonly templates?: CngxPaginatorTemplates;
|
|
934
1064
|
}
|
|
935
|
-
/**
|
|
1065
|
+
/**
|
|
1066
|
+
* Library defaults. Carries no copy: the copy defaults are the `paginator`
|
|
1067
|
+
* section of the language pack. Override via {@link provideCngxPaginatorConfig}.
|
|
1068
|
+
*/
|
|
936
1069
|
declare const CNGX_PAGINATOR_DEFAULTS: CngxPaginatorConfig;
|
|
937
1070
|
/**
|
|
938
|
-
* Configuration cascade token. Resolution priority (high
|
|
939
|
-
*
|
|
940
|
-
*
|
|
1071
|
+
* Configuration cascade token. Resolution priority (high -> low):
|
|
1072
|
+
* 1. Per-instance Input binding.
|
|
1073
|
+
* 2. `provideCngxPaginatorConfigAt(...)` in a parent component's
|
|
1074
|
+
* `viewProviders` (component-scoped override).
|
|
1075
|
+
* 3. `provideCngxPaginatorConfig(...)` at the application root.
|
|
1076
|
+
* 4. Library defaults.
|
|
941
1077
|
*
|
|
942
1078
|
* @category ui/paginator
|
|
943
1079
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
@@ -956,13 +1092,13 @@ declare const CNGX_PAGINATOR_CONFIG: InjectionToken<CngxPaginatorConfig>;
|
|
|
956
1092
|
*/
|
|
957
1093
|
type CngxPaginatorConfigFeature = {
|
|
958
1094
|
readonly kind: 'ariaLabels';
|
|
959
|
-
readonly payload: Partial<CngxPaginatorAriaLabels
|
|
1095
|
+
readonly payload: Partial<CngxPaginatorAriaLabels> | Signal<Partial<CngxPaginatorAriaLabels>>;
|
|
960
1096
|
} | {
|
|
961
1097
|
readonly kind: 'announcements';
|
|
962
|
-
readonly payload: Partial<CngxPaginatorAnnouncements
|
|
1098
|
+
readonly payload: Partial<CngxPaginatorAnnouncements> | Signal<Partial<CngxPaginatorAnnouncements>>;
|
|
963
1099
|
} | {
|
|
964
1100
|
readonly kind: 'formats';
|
|
965
|
-
readonly payload: Partial<CngxPaginatorFormats
|
|
1101
|
+
readonly payload: Partial<CngxPaginatorFormats> | Signal<Partial<CngxPaginatorFormats>>;
|
|
966
1102
|
} | {
|
|
967
1103
|
readonly kind: 'pageSizeOptions';
|
|
968
1104
|
readonly payload: readonly number[];
|
|
@@ -972,7 +1108,8 @@ type CngxPaginatorConfigFeature = {
|
|
|
972
1108
|
};
|
|
973
1109
|
/**
|
|
974
1110
|
* Override any subset of the paginator accessible-name strings. Per-instance
|
|
975
|
-
* `aria-label` bindings still win over the cascade for the landmark name.
|
|
1111
|
+
* `aria-label` bindings still win over the cascade for the landmark name. Pass
|
|
1112
|
+
* a `Signal` to switch the language at runtime.
|
|
976
1113
|
*
|
|
977
1114
|
* ```ts
|
|
978
1115
|
* provideCngxPaginatorConfig(
|
|
@@ -984,9 +1121,11 @@ type CngxPaginatorConfigFeature = {
|
|
|
984
1121
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
985
1122
|
* @since 0.1.0
|
|
986
1123
|
*/
|
|
987
|
-
declare function withPaginatorAriaLabels(payload: Partial<CngxPaginatorAriaLabels>): CngxPaginatorConfigFeature;
|
|
1124
|
+
declare function withPaginatorAriaLabels(payload: Partial<CngxPaginatorAriaLabels> | Signal<Partial<CngxPaginatorAriaLabels>>): CngxPaginatorConfigFeature;
|
|
988
1125
|
/**
|
|
989
|
-
* Override any subset of the paginator live-region announcement phrasing.
|
|
1126
|
+
* Override any subset of the paginator live-region announcement phrasing. Pass
|
|
1127
|
+
* a `Signal` to switch the language at runtime; the live region speaks the new
|
|
1128
|
+
* phrasing with its next change.
|
|
990
1129
|
*
|
|
991
1130
|
* ```ts
|
|
992
1131
|
* provideCngxPaginatorConfig(
|
|
@@ -1002,7 +1141,7 @@ declare function withPaginatorAriaLabels(payload: Partial<CngxPaginatorAriaLabel
|
|
|
1002
1141
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1003
1142
|
* @since 0.1.0
|
|
1004
1143
|
*/
|
|
1005
|
-
declare function withPaginatorAnnouncements(payload: Partial<CngxPaginatorAnnouncements>): CngxPaginatorConfigFeature;
|
|
1144
|
+
declare function withPaginatorAnnouncements(payload: Partial<CngxPaginatorAnnouncements> | Signal<Partial<CngxPaginatorAnnouncements>>): CngxPaginatorConfigFeature;
|
|
1006
1145
|
/**
|
|
1007
1146
|
* Override the range-readout format. The `cngx-pgn-range` segment renders the
|
|
1008
1147
|
* returned string verbatim, so this also localises the `of` connector.
|
|
@@ -1017,7 +1156,7 @@ declare function withPaginatorAnnouncements(payload: Partial<CngxPaginatorAnnoun
|
|
|
1017
1156
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1018
1157
|
* @since 0.1.0
|
|
1019
1158
|
*/
|
|
1020
|
-
declare function withPaginatorRangeFormat(range: CngxPaginatorFormats['range']): CngxPaginatorConfigFeature;
|
|
1159
|
+
declare function withPaginatorRangeFormat(range: CngxPaginatorFormats['range'] | Signal<CngxPaginatorFormats['range']>): CngxPaginatorConfigFeature;
|
|
1021
1160
|
/**
|
|
1022
1161
|
* Override the page-status format. The `cngx-pgn-status` segment renders the
|
|
1023
1162
|
* returned string verbatim, so this localises the "Page n of m" readout that
|
|
@@ -1033,7 +1172,38 @@ declare function withPaginatorRangeFormat(range: CngxPaginatorFormats['range']):
|
|
|
1033
1172
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1034
1173
|
* @since 0.1.0
|
|
1035
1174
|
*/
|
|
1036
|
-
declare function withPaginatorPageStatusFormat(pageStatus: CngxPaginatorFormats['pageStatus']): CngxPaginatorConfigFeature;
|
|
1175
|
+
declare function withPaginatorPageStatusFormat(pageStatus: CngxPaginatorFormats['pageStatus'] | Signal<CngxPaginatorFormats['pageStatus']>): CngxPaginatorConfigFeature;
|
|
1176
|
+
/**
|
|
1177
|
+
* Override the page-of-pages trigger readout. The `cngx-pgn-page-of-pages`
|
|
1178
|
+
* segment renders the returned string as sanitised HTML, so this localises the
|
|
1179
|
+
* `a / b` separator and its order.
|
|
1180
|
+
*
|
|
1181
|
+
* ```ts
|
|
1182
|
+
* provideCngxPaginatorConfig(
|
|
1183
|
+
* withPaginatorPageOfPagesFormat((page, totalPages) => `<b>${page}</b> von ${totalPages}`),
|
|
1184
|
+
* );
|
|
1185
|
+
* ```
|
|
1186
|
+
*
|
|
1187
|
+
* @category ui/paginator
|
|
1188
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1189
|
+
* @since 0.1.0
|
|
1190
|
+
*/
|
|
1191
|
+
declare function withPaginatorPageOfPagesFormat(pageOfPagesReadout: NonNullable<CngxPaginatorFormats['pageOfPagesReadout']> | Signal<NonNullable<CngxPaginatorFormats['pageOfPagesReadout']>>): CngxPaginatorConfigFeature;
|
|
1192
|
+
/**
|
|
1193
|
+
* Override the load-more progress readout. The `cngx-pgn-load-more` segment
|
|
1194
|
+
* renders the returned string as plain text beside its label.
|
|
1195
|
+
*
|
|
1196
|
+
* ```ts
|
|
1197
|
+
* provideCngxPaginatorConfig(
|
|
1198
|
+
* withPaginatorLoadMoreFormat((shown, total) => `${shown} von ${total}`),
|
|
1199
|
+
* );
|
|
1200
|
+
* ```
|
|
1201
|
+
*
|
|
1202
|
+
* @category ui/paginator
|
|
1203
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1204
|
+
* @since 0.1.0
|
|
1205
|
+
*/
|
|
1206
|
+
declare function withPaginatorLoadMoreFormat(loadMoreReadout: NonNullable<CngxPaginatorFormats['loadMoreReadout']> | Signal<NonNullable<CngxPaginatorFormats['loadMoreReadout']>>): CngxPaginatorConfigFeature;
|
|
1037
1207
|
/**
|
|
1038
1208
|
* Supply the default items-per-page choices for the `cngx-pgn-page-size`
|
|
1039
1209
|
* dropdown app-wide. The segment renders these when no per-instance `[options]`
|
|
@@ -1056,10 +1226,22 @@ declare function withPaginatorPageSizeOptions(payload: readonly number[]): CngxP
|
|
|
1056
1226
|
* per-instance `*cngxPaginatorLoading` slot still wins over this tier; it only
|
|
1057
1227
|
* applies where no instance slot is projected.
|
|
1058
1228
|
*
|
|
1229
|
+
* A `TemplateRef` exists only once a view renders, so it cannot go into the
|
|
1230
|
+
* root providers or `viewProviders`. Build the scope from the rendered
|
|
1231
|
+
* template and hand it to `ngTemplateOutlet`:
|
|
1232
|
+
*
|
|
1059
1233
|
* ```ts
|
|
1060
|
-
*
|
|
1061
|
-
*
|
|
1234
|
+
* private readonly injector = inject(Injector);
|
|
1235
|
+
* private readonly spinnerTpl = viewChild.required<TemplateRef<void>>('spinner');
|
|
1236
|
+
* protected readonly pagerScope = computed(() =>
|
|
1237
|
+
* Injector.create({
|
|
1238
|
+
* parent: this.injector,
|
|
1239
|
+
* providers: [
|
|
1240
|
+
* provideCngxPaginatorConfigAt(withPaginatorTemplates({ loading: this.spinnerTpl() })),
|
|
1241
|
+
* ],
|
|
1242
|
+
* }),
|
|
1062
1243
|
* );
|
|
1244
|
+
* // <ng-container *ngTemplateOutlet="pagerTpl; injector: pagerScope()" />
|
|
1063
1245
|
* ```
|
|
1064
1246
|
*
|
|
1065
1247
|
* @category ui/paginator
|
|
@@ -1099,6 +1281,35 @@ declare function provideCngxPaginatorConfigAt(...features: CngxPaginatorConfigFe
|
|
|
1099
1281
|
* @since 0.1.0
|
|
1100
1282
|
*/
|
|
1101
1283
|
declare function injectPaginatorConfig(): CngxPaginatorConfig;
|
|
1284
|
+
/**
|
|
1285
|
+
* The resolved accessible-name strings of the paginator config in scope, as a
|
|
1286
|
+
* Signal that follows a runtime language switch. Runs in injection context.
|
|
1287
|
+
*
|
|
1288
|
+
* @category ui/paginator
|
|
1289
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1290
|
+
* @since 0.1.0
|
|
1291
|
+
*/
|
|
1292
|
+
declare function injectPaginatorAriaLabels(): Signal<CngxPaginatorAriaLabels>;
|
|
1293
|
+
/**
|
|
1294
|
+
* The resolved live-region phrasing of the paginator config in scope, as a
|
|
1295
|
+
* Signal. Read it untracked where it builds live-region text, so a language
|
|
1296
|
+
* switch does not re-speak the current message. Runs in injection context.
|
|
1297
|
+
*
|
|
1298
|
+
* @category ui/paginator
|
|
1299
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1300
|
+
* @since 0.1.0
|
|
1301
|
+
*/
|
|
1302
|
+
declare function injectPaginatorAnnouncements(): Signal<CngxPaginatorAnnouncements>;
|
|
1303
|
+
/**
|
|
1304
|
+
* The resolved readout formatters of the paginator config in scope, as a
|
|
1305
|
+
* Signal with every key filled from the `paginator` section of the language
|
|
1306
|
+
* pack. Runs in injection context.
|
|
1307
|
+
*
|
|
1308
|
+
* @category ui/paginator
|
|
1309
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1310
|
+
* @since 0.1.0
|
|
1311
|
+
*/
|
|
1312
|
+
declare function injectPaginatorFormats(): Signal<Required<CngxPaginatorFormats>>;
|
|
1102
1313
|
|
|
1103
1314
|
/**
|
|
1104
1315
|
* Reactive announcement source for the paginator live region.
|
|
@@ -1153,5 +1364,83 @@ type CngxPaginatorAnnouncerFactory = () => CngxPaginatorAnnouncer;
|
|
|
1153
1364
|
*/
|
|
1154
1365
|
declare const CNGX_PAGINATOR_ANNOUNCER_FACTORY: InjectionToken<CngxPaginatorAnnouncerFactory>;
|
|
1155
1366
|
|
|
1156
|
-
|
|
1157
|
-
|
|
1367
|
+
/**
|
|
1368
|
+
* The paginator section of a {@link CngxLanguagePack}: the copy of every
|
|
1369
|
+
* `@cngx/ui/paginator` segment. It feeds the `ariaLabels`, `announcements` and
|
|
1370
|
+
* `formats` of `CNGX_PAGINATOR_CONFIG`; a key set through
|
|
1371
|
+
* `withPaginatorAriaLabels`, `withPaginatorAnnouncements` or a
|
|
1372
|
+
* `withPaginator*Format` feature still wins. Messages use `{name}`
|
|
1373
|
+
* placeholders, numbers are formatted for the locale.
|
|
1374
|
+
*
|
|
1375
|
+
* The readout messages (`range`, `pageStatus`, `pageOfPagesReadout`) render as
|
|
1376
|
+
* sanitised HTML, so they may emphasise the current value with `<b>`.
|
|
1377
|
+
*
|
|
1378
|
+
* @category ui/paginator/i18n
|
|
1379
|
+
* @since 0.1.0
|
|
1380
|
+
* @relatedTo CNGX_PAGINATOR_CONFIG, withPaginatorAriaLabels, withPaginatorAnnouncements
|
|
1381
|
+
*/
|
|
1382
|
+
interface CngxPaginatorLanguageSection {
|
|
1383
|
+
/** Accessible name of the paginator landmark. */
|
|
1384
|
+
readonly label: string;
|
|
1385
|
+
/** Accessible name of the first-page button. */
|
|
1386
|
+
readonly first: string;
|
|
1387
|
+
/** Accessible name of the previous-page button. */
|
|
1388
|
+
readonly previous: string;
|
|
1389
|
+
/** Accessible name of the next-page button. */
|
|
1390
|
+
readonly next: string;
|
|
1391
|
+
/** Accessible name of the last-page button. */
|
|
1392
|
+
readonly last: string;
|
|
1393
|
+
/** `{page}`: accessible name of a numbered page button. */
|
|
1394
|
+
readonly page: CngxMessage;
|
|
1395
|
+
/** Accessible name of the hidden-pages overflow trigger. */
|
|
1396
|
+
readonly morePages: string;
|
|
1397
|
+
/** Accessible name of the page-size select. */
|
|
1398
|
+
readonly itemsPerPage: string;
|
|
1399
|
+
/** Accessible name of the go-to-page input. */
|
|
1400
|
+
readonly goToPage: string;
|
|
1401
|
+
/** Accessible name of the page-of-pages select. */
|
|
1402
|
+
readonly pageOfPages: string;
|
|
1403
|
+
/** Accessible name of the load-more button. */
|
|
1404
|
+
readonly loadMore: string;
|
|
1405
|
+
/** `{total}`: text once every item is loaded. */
|
|
1406
|
+
readonly allLoaded: CngxMessage;
|
|
1407
|
+
/** `{label}`: accessible name of an alphabet bucket. */
|
|
1408
|
+
readonly bucket: CngxMessage;
|
|
1409
|
+
/** `{label}`: accessible name of an alphabet bucket without items. */
|
|
1410
|
+
readonly emptyBucket: CngxMessage;
|
|
1411
|
+
/** Accessible name of the alphabet bucket group. */
|
|
1412
|
+
readonly bucketGroup: string;
|
|
1413
|
+
/** Accessible name of the position rail. */
|
|
1414
|
+
readonly railPosition: string;
|
|
1415
|
+
/** `{page}`, `{totalPages}`: announced on every page change. */
|
|
1416
|
+
readonly pageChange: CngxMessage;
|
|
1417
|
+
/** Announced when the bound async state becomes busy. */
|
|
1418
|
+
readonly loading: string;
|
|
1419
|
+
/** Announced when the bound async state settles after being busy. */
|
|
1420
|
+
readonly updated: string;
|
|
1421
|
+
/** `{start}`, `{end}`, `{total}`: the `cngx-pgn-range` readout (HTML). */
|
|
1422
|
+
readonly range: CngxMessage;
|
|
1423
|
+
/** `{page}`, `{totalPages}`: the `cngx-pgn-status` readout (HTML). */
|
|
1424
|
+
readonly pageStatus: CngxMessage;
|
|
1425
|
+
/** `{page}`, `{totalPages}`: the `cngx-pgn-page-of-pages` trigger readout (HTML). */
|
|
1426
|
+
readonly pageOfPagesReadout: CngxMessage;
|
|
1427
|
+
/** `{shown}`, `{total}`: the `cngx-pgn-load-more` progress readout. */
|
|
1428
|
+
readonly loadMoreReadout: CngxMessage;
|
|
1429
|
+
}
|
|
1430
|
+
/**
|
|
1431
|
+
* The English paginator section: the single source of the paginator's English
|
|
1432
|
+
* copy. The `CNGX_PAGINATOR_CONFIG` copy sub-trees default to it.
|
|
1433
|
+
*
|
|
1434
|
+
* @category ui/paginator/i18n
|
|
1435
|
+
* @since 0.1.0
|
|
1436
|
+
* @relatedTo CNGX_PAGINATOR_CONFIG
|
|
1437
|
+
*/
|
|
1438
|
+
declare const CNGX_PAGINATOR_LANGUAGE_EN: CngxPaginatorLanguageSection;
|
|
1439
|
+
declare module '@cngx/core/i18n' {
|
|
1440
|
+
interface CngxLanguagePack {
|
|
1441
|
+
readonly paginator: CngxPaginatorLanguageSection;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
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 };
|
|
1446
|
+
export type { CngxPaginatorAnnouncements, CngxPaginatorAnnouncer, CngxPaginatorAnnouncerFactory, CngxPaginatorAriaLabels, CngxPaginatorConfig, CngxPaginatorConfigFeature, CngxPaginatorDensity, CngxPaginatorFormats, CngxPaginatorHost, CngxPaginatorLanguageSection, CngxPaginatorPageWindowFactory, CngxPaginatorPageWindowFn, CngxPaginatorSkin, CngxPaginatorTemplates, PageItem, PageWindow };
|