@cngx/ui 0.1.0-rc.8 → 0.3.0
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 +118 -59
- package/action-button/README.md +170 -53
- package/breadcrumb/README.md +5 -6
- package/collection/README.md +1 -1
- package/command-palette/README.md +9 -5
- package/data-grid-accordion/README.md +1 -1
- package/empty-state/README.md +2 -3
- package/feedback/README.md +1 -1
- package/fesm2022/cngx-ui-a11y.mjs +13 -23
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +55 -60
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +220 -339
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +28 -34
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +29 -51
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +138 -89
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +17 -44
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +648 -495
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +17 -13
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
- package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
- package/fesm2022/cngx-ui-overlay.mjs +9 -10
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +212 -188
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +872 -721
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +17 -19
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +21 -74
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +39 -62
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +259 -130
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +148 -50
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +48 -32
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +59 -48
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +5 -5
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-tabs/README.md +57 -19
- package/mat-tabs/styles/mat-tabs.css +285 -163
- package/nav-rail/README.md +325 -0
- package/package.json +37 -8
- package/paginator/README.md +10 -0
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +96 -0
- package/schematics/package.json +3 -0
- package/sidenav/README.md +150 -55
- package/skeleton/README.md +1 -1
- package/speak/README.md +1 -2
- package/stepper/README.md +20 -5
- package/tabs/README.md +13 -0
- package/timeline/README.md +1 -1
- package/toc/README.md +1 -1
- package/types/cngx-ui-a11y.d.ts +20 -38
- package/types/cngx-ui-accordion.d.ts +46 -71
- package/types/cngx-ui-action-button.d.ts +113 -151
- package/types/cngx-ui-breadcrumb.d.ts +60 -85
- package/types/cngx-ui-chart-panel.d.ts +22 -40
- package/types/cngx-ui-collection.d.ts +30 -43
- package/types/cngx-ui-command-palette.d.ts +40 -64
- package/types/cngx-ui-context-menu.d.ts +109 -48
- package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
- package/types/cngx-ui-empty-state.d.ts +18 -8
- package/types/cngx-ui-feedback.d.ts +275 -292
- package/types/cngx-ui-layout.d.ts +4 -12
- package/types/cngx-ui-mat-accordion.d.ts +5 -5
- package/types/cngx-ui-mat-paginator.d.ts +4 -10
- package/types/cngx-ui-mat-stepper.d.ts +5 -10
- package/types/cngx-ui-mat-tabs.d.ts +86 -89
- package/types/cngx-ui-nav-rail.d.ts +416 -0
- package/types/cngx-ui-overlay.d.ts +4 -13
- package/types/cngx-ui-paginator.d.ts +186 -161
- package/types/cngx-ui-sidenav.d.ts +557 -437
- package/types/cngx-ui-skeleton.d.ts +7 -13
- package/types/cngx-ui-speak.d.ts +40 -24
- package/types/cngx-ui-stat-card.d.ts +45 -36
- package/types/cngx-ui-stepper.d.ts +205 -84
- package/types/cngx-ui-tabs.d.ts +104 -28
- package/types/cngx-ui-timeline.d.ts +31 -51
- package/types/cngx-ui-toc.d.ts +43 -54
- package/types/cngx-ui.d.ts +1 -1
|
@@ -2,7 +2,7 @@ import * as _cngx_ui_paginator from '@cngx/ui/paginator';
|
|
|
2
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
6
|
import { CngxMessage } from '@cngx/core/i18n';
|
|
7
7
|
|
|
8
8
|
/** Visual skin. Paint-only - structure, ARIA, and keyboard behaviour are identical across values. */
|
|
@@ -50,11 +50,9 @@ type CngxPaginatorDensity = 'compact' | 'default' | 'comfortable';
|
|
|
50
50
|
* `paginator.component.css` and nowhere else. Opt out with
|
|
51
51
|
* `--cngx-paginator-collapse: none` on the paginator or any ancestor.
|
|
52
52
|
*
|
|
53
|
-
* @category ui/paginator
|
|
54
|
-
* @docsKind primary
|
|
55
53
|
* @wcag AA
|
|
56
54
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator.component.ts
|
|
57
|
-
* @since 0.
|
|
55
|
+
* @since 0.3.0
|
|
58
56
|
* @relatedTo CngxPaginate, CngxMatPaginator
|
|
59
57
|
* @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts
|
|
60
58
|
* @playground Data-table footer (Material) ./examples/data-table/data-table.component.ts
|
|
@@ -63,13 +61,14 @@ type CngxPaginatorDensity = 'compact' | 'default' | 'comfortable';
|
|
|
63
61
|
* @playground Alphabetical bucket paging ./examples/alpha-mode/alpha-mode.component.ts
|
|
64
62
|
* @playground Load-more (append) paging ./examples/load-more-mode/load-more-mode.component.ts
|
|
65
63
|
* @playground Infinite scroll paging ./examples/infinite-mode/infinite-mode.component.ts
|
|
66
|
-
* <example-url
|
|
67
|
-
* <example-url
|
|
68
|
-
* <example-url
|
|
69
|
-
* <example-url
|
|
70
|
-
* <example-url
|
|
71
|
-
* <example-url
|
|
72
|
-
* <example-url
|
|
64
|
+
* <example-url>/#/ui/paginator/paginator-skins/numbered</example-url>
|
|
65
|
+
* <example-url>/#/ui/paginator/paginator-skins/minimal</example-url>
|
|
66
|
+
* <example-url>/#/ui/paginator/paginator-skins/pill</example-url>
|
|
67
|
+
* <example-url>/#/ui/paginator/paginator-skins/segmented</example-url>
|
|
68
|
+
* <example-url>/#/ui/paginator/paginator-skins/rail</example-url>
|
|
69
|
+
* <example-url>/#/ui/paginator/paginator-skins/dots</example-url>
|
|
70
|
+
* <example-url>/#/ui/paginator/paginator-skins/bar</example-url>
|
|
71
|
+
* @axis level organism
|
|
73
72
|
*/
|
|
74
73
|
declare class CngxPaginator {
|
|
75
74
|
/** Accessible name for the navigation landmark. Overrides the config default. */
|
|
@@ -132,8 +131,6 @@ declare class CngxPaginator {
|
|
|
132
131
|
* state, label, and `aria-current`; the methods are the only write paths,
|
|
133
132
|
* each routing through the brain so the clamp-`computed()` and busy-gate
|
|
134
133
|
* invariants hold.
|
|
135
|
-
*
|
|
136
|
-
* @category ui/paginator
|
|
137
134
|
*/
|
|
138
135
|
interface CngxPaginatorHost {
|
|
139
136
|
/** Current page index (0-based), auto-clamped to `totalPages`. */
|
|
@@ -182,10 +179,9 @@ interface CngxPaginatorHost {
|
|
|
182
179
|
* parts (`cngx-pgn-prev`, `cngx-pgn-pages`, ...) inject this rather than the
|
|
183
180
|
* concrete component class, keeping the organism decompose-ready.
|
|
184
181
|
*
|
|
185
|
-
* @category ui/paginator
|
|
186
182
|
* @wcag AA
|
|
187
183
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-host.token.ts
|
|
188
|
-
* @since 0.
|
|
184
|
+
* @since 0.3.0
|
|
189
185
|
*/
|
|
190
186
|
declare const CNGX_PAGINATOR_HOST: InjectionToken<CngxPaginatorHost>;
|
|
191
187
|
|
|
@@ -205,12 +201,12 @@ declare const CNGX_PAGINATOR_HOST: InjectionToken<CngxPaginatorHost>;
|
|
|
205
201
|
* </cngx-paginator>
|
|
206
202
|
* ```
|
|
207
203
|
*
|
|
208
|
-
* @category ui/paginator
|
|
209
204
|
* @wcag AA
|
|
210
|
-
* <example-url
|
|
205
|
+
* <example-url>/#/ui/paginator/paginator-parts/loading/busy</example-url>
|
|
211
206
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-loading.directive.ts
|
|
212
|
-
* @since 0.
|
|
207
|
+
* @since 0.3.0
|
|
213
208
|
* @relatedTo CngxPaginator, CngxProgress
|
|
209
|
+
* @axis level atom
|
|
214
210
|
*/
|
|
215
211
|
declare class CngxPaginatorLoading {
|
|
216
212
|
readonly templateRef: TemplateRef<any>;
|
|
@@ -226,14 +222,23 @@ interface NavCore {
|
|
|
226
222
|
/**
|
|
227
223
|
* First-page segment. Disabled on the first page; calls `host.first()`.
|
|
228
224
|
*
|
|
229
|
-
* @category ui/paginator
|
|
230
225
|
* @wcag AA
|
|
231
226
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-nav.component.ts
|
|
232
|
-
* @since 0.
|
|
233
|
-
* <example-url
|
|
227
|
+
* @since 0.3.0
|
|
228
|
+
* <example-url>/#/ui/paginator/paginator-parts/first/chevron</example-url>
|
|
229
|
+
* @axis level atom
|
|
234
230
|
*/
|
|
235
231
|
declare class CngxPaginatorFirst {
|
|
236
|
-
protected readonly
|
|
232
|
+
protected readonly icon: {
|
|
233
|
+
readonly viewBox: "0 0 24 24";
|
|
234
|
+
readonly d: "M11 6l-6 6 6 6M19 6l-6 6 6 6";
|
|
235
|
+
readonly paint: "stroke";
|
|
236
|
+
readonly micro: {
|
|
237
|
+
readonly viewBox: "0 0 12 12";
|
|
238
|
+
readonly d: "M9 3L6 6L9 9L10 8L8 6L10 4ZM5 3L2 6L5 9L6 8L4 6L6 4Z";
|
|
239
|
+
};
|
|
240
|
+
readonly small: null;
|
|
241
|
+
};
|
|
237
242
|
protected readonly core: NavCore;
|
|
238
243
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorFirst, never>;
|
|
239
244
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorFirst, "cngx-pgn-first", ["cngxPgnFirst"], {}, {}, never, never, true, never>;
|
|
@@ -241,14 +246,23 @@ declare class CngxPaginatorFirst {
|
|
|
241
246
|
/**
|
|
242
247
|
* Previous-page segment. Disabled on the first page; calls `host.previous()`.
|
|
243
248
|
*
|
|
244
|
-
* @category ui/paginator
|
|
245
249
|
* @wcag AA
|
|
246
250
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-nav.component.ts
|
|
247
|
-
* @since 0.
|
|
248
|
-
* <example-url
|
|
251
|
+
* @since 0.3.0
|
|
252
|
+
* <example-url>/#/ui/paginator/paginator-parts/prev/chevron</example-url>
|
|
253
|
+
* @axis level atom
|
|
249
254
|
*/
|
|
250
255
|
declare class CngxPaginatorPrev {
|
|
251
|
-
protected readonly
|
|
256
|
+
protected readonly icon: {
|
|
257
|
+
readonly viewBox: "0 0 24 24";
|
|
258
|
+
readonly d: "M15 6l-6 6 6 6";
|
|
259
|
+
readonly paint: "stroke";
|
|
260
|
+
readonly micro: {
|
|
261
|
+
readonly viewBox: "0 0 12 12";
|
|
262
|
+
readonly d: "M7 3L4 6L7 9L8 8L6 6L8 4Z";
|
|
263
|
+
};
|
|
264
|
+
readonly small: null;
|
|
265
|
+
};
|
|
252
266
|
protected readonly core: NavCore;
|
|
253
267
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorPrev, never>;
|
|
254
268
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorPrev, "cngx-pgn-prev", ["cngxPgnPrev"], {}, {}, never, never, true, never>;
|
|
@@ -256,14 +270,26 @@ declare class CngxPaginatorPrev {
|
|
|
256
270
|
/**
|
|
257
271
|
* Next-page segment. Disabled on the last page; calls `host.next()`.
|
|
258
272
|
*
|
|
259
|
-
* @category ui/paginator
|
|
260
273
|
* @wcag AA
|
|
261
274
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-nav.component.ts
|
|
262
|
-
* @since 0.
|
|
263
|
-
* <example-url
|
|
275
|
+
* @since 0.3.0
|
|
276
|
+
* <example-url>/#/ui/paginator/paginator-parts/next/chevron</example-url>
|
|
277
|
+
* @axis level atom
|
|
264
278
|
*/
|
|
265
279
|
declare class CngxPaginatorNext {
|
|
266
|
-
protected readonly
|
|
280
|
+
protected readonly icon: {
|
|
281
|
+
readonly viewBox: "0 0 24 24";
|
|
282
|
+
readonly d: "M9 6l6 6-6 6";
|
|
283
|
+
readonly paint: "stroke";
|
|
284
|
+
readonly micro: {
|
|
285
|
+
readonly viewBox: "0 0 12 12";
|
|
286
|
+
readonly d: "M5 3L8 6L5 9L4 8L6 6L4 4Z";
|
|
287
|
+
};
|
|
288
|
+
readonly small: {
|
|
289
|
+
readonly viewBox: "0 0 16 16";
|
|
290
|
+
readonly d: "M7 4L11 8L7 12L5 11L8 8L5 5Z";
|
|
291
|
+
};
|
|
292
|
+
};
|
|
267
293
|
protected readonly core: NavCore;
|
|
268
294
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorNext, never>;
|
|
269
295
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorNext, "cngx-pgn-next", ["cngxPgnNext"], {}, {}, never, never, true, never>;
|
|
@@ -271,14 +297,23 @@ declare class CngxPaginatorNext {
|
|
|
271
297
|
/**
|
|
272
298
|
* Last-page segment. Disabled on the last page; calls `host.last()`.
|
|
273
299
|
*
|
|
274
|
-
* @category ui/paginator
|
|
275
300
|
* @wcag AA
|
|
276
301
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-nav.component.ts
|
|
277
|
-
* @since 0.
|
|
278
|
-
* <example-url
|
|
302
|
+
* @since 0.3.0
|
|
303
|
+
* <example-url>/#/ui/paginator/paginator-parts/last/chevron</example-url>
|
|
304
|
+
* @axis level atom
|
|
279
305
|
*/
|
|
280
306
|
declare class CngxPaginatorLast {
|
|
281
|
-
protected readonly
|
|
307
|
+
protected readonly icon: {
|
|
308
|
+
readonly viewBox: "0 0 24 24";
|
|
309
|
+
readonly d: "M13 6l6 6-6 6M5 6l6 6-6 6";
|
|
310
|
+
readonly paint: "stroke";
|
|
311
|
+
readonly micro: {
|
|
312
|
+
readonly viewBox: "0 0 12 12";
|
|
313
|
+
readonly d: "M3 3L6 6L3 9L2 8L4 6L2 4ZM7 3L10 6L7 9L6 8L8 6L6 4Z";
|
|
314
|
+
};
|
|
315
|
+
readonly small: null;
|
|
316
|
+
};
|
|
282
317
|
protected readonly core: NavCore;
|
|
283
318
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPaginatorLast, never>;
|
|
284
319
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPaginatorLast, "cngx-pgn-last", ["cngxPgnLast"], {}, {}, never, never, true, never>;
|
|
@@ -287,9 +322,8 @@ declare class CngxPaginatorLast {
|
|
|
287
322
|
/**
|
|
288
323
|
* One slot in the rendered page row: a page button or a truncation gap.
|
|
289
324
|
*
|
|
290
|
-
* @category ui/paginator
|
|
291
325
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/page-model.ts
|
|
292
|
-
* @since 0.
|
|
326
|
+
* @since 0.3.0
|
|
293
327
|
*/
|
|
294
328
|
type PageItem = {
|
|
295
329
|
readonly kind: 'page';
|
|
@@ -301,9 +335,8 @@ type PageItem = {
|
|
|
301
335
|
/**
|
|
302
336
|
* The rendered sequence plus the gap count (a cheap structural fingerprint).
|
|
303
337
|
*
|
|
304
|
-
* @category ui/paginator
|
|
305
338
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/page-model.ts
|
|
306
|
-
* @since 0.
|
|
339
|
+
* @since 0.3.0
|
|
307
340
|
*/
|
|
308
341
|
interface PageWindow {
|
|
309
342
|
readonly pages: readonly PageItem[];
|
|
@@ -317,11 +350,11 @@ interface PageWindow {
|
|
|
317
350
|
* grid of the hidden pages (same select-and-jump model as `cngx-pgn-page-of-pages`,
|
|
318
351
|
* so focus moves into the panel on open).
|
|
319
352
|
*
|
|
320
|
-
* @category ui/paginator
|
|
321
353
|
* @wcag AA
|
|
322
354
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-pages.component.ts
|
|
323
|
-
* @since 0.
|
|
324
|
-
* <example-url
|
|
355
|
+
* @since 0.3.0
|
|
356
|
+
* <example-url>/#/ui/paginator/paginator-parts/pages/number-row</example-url>
|
|
357
|
+
* @axis level atom
|
|
325
358
|
*/
|
|
326
359
|
declare class CngxPaginatorPages {
|
|
327
360
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
@@ -329,13 +362,15 @@ declare class CngxPaginatorPages {
|
|
|
329
362
|
private readonly locale;
|
|
330
363
|
/** Visible page numbers and sizes, formatted for the locale (`1.000` in German). */
|
|
331
364
|
protected readonly numbers: _angular_core.Signal<Intl.NumberFormat>;
|
|
332
|
-
protected readonly
|
|
333
|
-
readonly
|
|
334
|
-
readonly
|
|
335
|
-
readonly
|
|
336
|
-
readonly
|
|
337
|
-
|
|
338
|
-
|
|
365
|
+
protected readonly moreIcon: {
|
|
366
|
+
readonly viewBox: "0 0 24 24";
|
|
367
|
+
readonly d: "M3 12a2 2 0 1 0 4 0a2 2 0 1 0-4 0zM10 12a2 2 0 1 0 4 0a2 2 0 1 0-4 0zM17 12a2 2 0 1 0 4 0a2 2 0 1 0-4 0z";
|
|
368
|
+
readonly paint: "fill";
|
|
369
|
+
readonly micro: {
|
|
370
|
+
readonly viewBox: "0 0 12 12";
|
|
371
|
+
readonly d: "M1 5H3V7H1ZM5 5H7V7H5ZM9 5H11V7H9Z";
|
|
372
|
+
};
|
|
373
|
+
readonly small: null;
|
|
339
374
|
};
|
|
340
375
|
private readonly elementRef;
|
|
341
376
|
private readonly injector;
|
|
@@ -415,23 +450,21 @@ declare class CngxPaginatorPages {
|
|
|
415
450
|
* An override implements a different truncation algorithm while still honouring the
|
|
416
451
|
* consumer's sibling / boundary intent.
|
|
417
452
|
*
|
|
418
|
-
* @category ui/paginator
|
|
419
453
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-page-window.token.ts
|
|
420
|
-
* @since 0.
|
|
454
|
+
* @since 0.3.0
|
|
421
455
|
*/
|
|
422
456
|
type CngxPaginatorPageWindowFn = (current: number, total: number, siblingCount: number, boundaryCount: number) => PageWindow;
|
|
423
457
|
/** The shape an override must match to swap the page-window computation. */
|
|
424
458
|
type CngxPaginatorPageWindowFactory = () => CngxPaginatorPageWindowFn;
|
|
425
459
|
/**
|
|
426
|
-
* Default page-window factory. Resolves to the built-in
|
|
460
|
+
* Default page-window factory. Resolves to the built-in `pageWindow` math
|
|
427
461
|
* (one sibling each side, one pinned boundary at each end at the `1 / 1`
|
|
428
462
|
* defaults). The segment builds its window via
|
|
429
463
|
* `inject(CNGX_PAGINATOR_PAGE_WINDOW_FACTORY)()` rather than calling this
|
|
430
464
|
* directly, mirroring {@link createPaginatorAnnouncer}.
|
|
431
465
|
*
|
|
432
|
-
* @category ui/paginator
|
|
433
466
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-page-window.token.ts
|
|
434
|
-
* @since 0.
|
|
467
|
+
* @since 0.3.0
|
|
435
468
|
*/
|
|
436
469
|
declare const createPaginatorPageWindow: CngxPaginatorPageWindowFactory;
|
|
437
470
|
/**
|
|
@@ -442,9 +475,8 @@ declare const createPaginatorPageWindow: CngxPaginatorPageWindowFactory;
|
|
|
442
475
|
* sibling / boundary counts use the `[siblingCount]` / `[boundaryCount]` inputs
|
|
443
476
|
* on `cngx-pgn-pages` instead. Mirrors {@link CNGX_PAGINATOR_ANNOUNCER_FACTORY}.
|
|
444
477
|
*
|
|
445
|
-
* @category ui/paginator
|
|
446
478
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-page-window.token.ts
|
|
447
|
-
* @since 0.
|
|
479
|
+
* @since 0.3.0
|
|
448
480
|
*/
|
|
449
481
|
declare const CNGX_PAGINATOR_PAGE_WINDOW_FACTORY: InjectionToken<CngxPaginatorPageWindowFactory>;
|
|
450
482
|
|
|
@@ -455,11 +487,11 @@ declare const CNGX_PAGINATOR_PAGE_WINDOW_FACTORY: InjectionToken<CngxPaginatorPa
|
|
|
455
487
|
* config range formatter, so it localises with the rest of the cascade. Tabular
|
|
456
488
|
* figures keep the numerals from reflowing as the page changes.
|
|
457
489
|
*
|
|
458
|
-
* @category ui/paginator
|
|
459
490
|
* @wcag AA
|
|
460
491
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-range.component.ts
|
|
461
|
-
* @since 0.
|
|
462
|
-
* <example-url
|
|
492
|
+
* @since 0.3.0
|
|
493
|
+
* <example-url>/#/ui/paginator/paginator-parts/range/readout</example-url>
|
|
494
|
+
* @axis level atom
|
|
463
495
|
*/
|
|
464
496
|
declare class CngxPaginatorRange {
|
|
465
497
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
@@ -488,11 +520,11 @@ declare class CngxPaginatorRange {
|
|
|
488
520
|
* survive until the user can retry). Accessible name from config (EN default,
|
|
489
521
|
* Pillar 2).
|
|
490
522
|
*
|
|
491
|
-
* @category ui/paginator
|
|
492
523
|
* @wcag AA
|
|
493
524
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-goto.component.ts
|
|
494
|
-
* @since 0.
|
|
495
|
-
* <example-url
|
|
525
|
+
* @since 0.3.0
|
|
526
|
+
* <example-url>/#/ui/paginator/paginator-parts/goto/input</example-url>
|
|
527
|
+
* @axis level molecule
|
|
496
528
|
*/
|
|
497
529
|
declare class CngxPaginatorGoto {
|
|
498
530
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
@@ -515,11 +547,11 @@ declare class CngxPaginatorGoto {
|
|
|
515
547
|
* page 0 (brain semantics). The selected size is derived from `host.pageSize()`,
|
|
516
548
|
* so the panel selection and the trigger label never drift (Pillar 1).
|
|
517
549
|
*
|
|
518
|
-
* @category ui/paginator
|
|
519
550
|
* @wcag AA
|
|
520
551
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-page-size.component.ts
|
|
521
|
-
* @since 0.
|
|
522
|
-
* <example-url
|
|
552
|
+
* @since 0.3.0
|
|
553
|
+
* <example-url>/#/ui/paginator/paginator-parts/page-size/dropdown</example-url>
|
|
554
|
+
* @axis level molecule
|
|
523
555
|
*/
|
|
524
556
|
declare class CngxPaginatorPageSize {
|
|
525
557
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
@@ -528,13 +560,15 @@ declare class CngxPaginatorPageSize {
|
|
|
528
560
|
private readonly locale;
|
|
529
561
|
/** Visible page numbers and sizes, formatted for the locale (`1.000` in German). */
|
|
530
562
|
protected readonly numbers: _angular_core.Signal<Intl.NumberFormat>;
|
|
531
|
-
protected readonly
|
|
532
|
-
readonly
|
|
533
|
-
readonly
|
|
534
|
-
readonly
|
|
535
|
-
readonly
|
|
536
|
-
|
|
537
|
-
|
|
563
|
+
protected readonly caretIcon: {
|
|
564
|
+
readonly viewBox: "0 0 24 24";
|
|
565
|
+
readonly d: "M5 8h14l-7 9z";
|
|
566
|
+
readonly paint: "fill";
|
|
567
|
+
readonly micro: {
|
|
568
|
+
readonly viewBox: "0 0 12 12";
|
|
569
|
+
readonly d: "M2 4H10L6 8Z";
|
|
570
|
+
};
|
|
571
|
+
readonly small: null;
|
|
538
572
|
};
|
|
539
573
|
/**
|
|
540
574
|
* Selectable page sizes. Pure data - the segment is content-agnostic. Leave
|
|
@@ -572,11 +606,11 @@ declare class CngxPaginatorPageSize {
|
|
|
572
606
|
* segment it avoids native `<select>` and the forms family, keeping the entry
|
|
573
607
|
* `@cngx/forms`-free.
|
|
574
608
|
*
|
|
575
|
-
* @category ui/paginator
|
|
576
609
|
* @wcag AA
|
|
577
610
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-page-of-pages.component.ts
|
|
578
|
-
* @since 0.
|
|
579
|
-
* <example-url
|
|
611
|
+
* @since 0.3.0
|
|
612
|
+
* <example-url>/#/ui/paginator/paginator-parts/page-of-pages/trigger</example-url>
|
|
613
|
+
* @axis level molecule
|
|
580
614
|
*/
|
|
581
615
|
declare class CngxPaginatorPageOfPages {
|
|
582
616
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
@@ -585,13 +619,15 @@ declare class CngxPaginatorPageOfPages {
|
|
|
585
619
|
/** Visible page numbers and sizes, formatted for the locale (`1.000` in German). */
|
|
586
620
|
protected readonly numbers: _angular_core.Signal<Intl.NumberFormat>;
|
|
587
621
|
private readonly formats;
|
|
588
|
-
protected readonly
|
|
589
|
-
readonly
|
|
590
|
-
readonly
|
|
591
|
-
readonly
|
|
592
|
-
readonly
|
|
593
|
-
|
|
594
|
-
|
|
622
|
+
protected readonly caretIcon: {
|
|
623
|
+
readonly viewBox: "0 0 24 24";
|
|
624
|
+
readonly d: "M5 8h14l-7 9z";
|
|
625
|
+
readonly paint: "fill";
|
|
626
|
+
readonly micro: {
|
|
627
|
+
readonly viewBox: "0 0 12 12";
|
|
628
|
+
readonly d: "M2 4H10L6 8Z";
|
|
629
|
+
};
|
|
630
|
+
readonly small: null;
|
|
595
631
|
};
|
|
596
632
|
/**
|
|
597
633
|
* Trigger readout from the config formatter (EN default `<b>page</b> / total`),
|
|
@@ -649,12 +685,12 @@ interface DotModel {
|
|
|
649
685
|
* `--cngx-target-min` floor by padding (base CSS); the painted circle stays at
|
|
650
686
|
* `--cngx-paginator-dot-size`.
|
|
651
687
|
*
|
|
652
|
-
* @category ui/paginator
|
|
653
688
|
* @wcag AA
|
|
654
689
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-dots.component.ts
|
|
655
|
-
* @since 0.
|
|
656
|
-
* <example-url
|
|
657
|
-
* <example-url
|
|
690
|
+
* @since 0.3.0
|
|
691
|
+
* <example-url>/#/ui/paginator/paginator-parts/dots/dots</example-url>
|
|
692
|
+
* <example-url>/#/ui/paginator/paginator-skins/dots</example-url>
|
|
693
|
+
* @axis level atom
|
|
658
694
|
*/
|
|
659
695
|
declare class CngxPaginatorDots {
|
|
660
696
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
@@ -694,11 +730,11 @@ declare class CngxPaginatorDots {
|
|
|
694
730
|
* the cascade; tabular figures keep the numerals from reflowing as the page
|
|
695
731
|
* changes.
|
|
696
732
|
*
|
|
697
|
-
* @category ui/paginator
|
|
698
733
|
* @wcag AA
|
|
699
734
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-status.component.ts
|
|
700
|
-
* @since 0.
|
|
701
|
-
* <example-url
|
|
735
|
+
* @since 0.3.0
|
|
736
|
+
* <example-url>/#/ui/paginator/paginator-parts/status/readout</example-url>
|
|
737
|
+
* @axis level atom
|
|
702
738
|
*/
|
|
703
739
|
declare class CngxPaginatorStatus {
|
|
704
740
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
@@ -719,11 +755,11 @@ declare class CngxPaginatorStatus {
|
|
|
719
755
|
* percentage derives purely from the host `pageIndex()`/`totalPages()` signals -
|
|
720
756
|
* no local state, no writes.
|
|
721
757
|
*
|
|
722
|
-
* @category ui/paginator
|
|
723
758
|
* @wcag AA
|
|
724
759
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-rail.component.ts
|
|
725
|
-
* @since 0.
|
|
726
|
-
* <example-url
|
|
760
|
+
* @since 0.3.0
|
|
761
|
+
* <example-url>/#/ui/paginator/paginator-parts/rail/rail</example-url>
|
|
762
|
+
* @axis level atom
|
|
727
763
|
*/
|
|
728
764
|
declare class CngxPaginatorRail {
|
|
729
765
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
@@ -750,12 +786,12 @@ declare class CngxPaginatorRail {
|
|
|
750
786
|
* state, matching the nav segments; the busy/position reason is already spoken
|
|
751
787
|
* by the shell live region.
|
|
752
788
|
*
|
|
753
|
-
* @category ui/paginator
|
|
754
789
|
* @wcag AA
|
|
755
790
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-load-more.component.ts
|
|
756
|
-
* @since 0.
|
|
757
|
-
* <example-url
|
|
758
|
-
* <example-url
|
|
791
|
+
* @since 0.3.0
|
|
792
|
+
* <example-url>/#/ui/paginator/paginator-parts/load-more/button</example-url>
|
|
793
|
+
* <example-url>/#/ui/paginator/paginator-modes/load-more</example-url>
|
|
794
|
+
* @axis level atom
|
|
759
795
|
*/
|
|
760
796
|
declare class CngxPaginatorLoadMore {
|
|
761
797
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
@@ -816,12 +852,12 @@ declare class CngxPaginatorLoadMore {
|
|
|
816
852
|
* rather than the viewport, and tune the pre-fetch distance. They are plain
|
|
817
853
|
* passthrough config - the segment still owns no observer code and no state.
|
|
818
854
|
*
|
|
819
|
-
* @category ui/paginator
|
|
820
855
|
* @wcag AA
|
|
821
856
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-infinite.component.ts
|
|
822
|
-
* @since 0.
|
|
823
|
-
* <example-url
|
|
824
|
-
* <example-url
|
|
857
|
+
* @since 0.3.0
|
|
858
|
+
* <example-url>/#/ui/paginator/paginator-parts/infinite/sentinel</example-url>
|
|
859
|
+
* <example-url>/#/ui/paginator/paginator-modes/infinite</example-url>
|
|
860
|
+
* @axis level atom
|
|
825
861
|
*/
|
|
826
862
|
declare class CngxPaginatorInfinite {
|
|
827
863
|
protected readonly host: _cngx_ui_paginator.CngxPaginatorHost;
|
|
@@ -875,15 +911,15 @@ declare class CngxPaginatorInfinite {
|
|
|
875
911
|
* skip disabled chips, the single tab stop tracks the active bucket, and
|
|
876
912
|
* activation commits via `select()`.
|
|
877
913
|
*
|
|
878
|
-
* @category ui/paginator
|
|
879
914
|
* @wcag AA
|
|
880
915
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/segments/paginator-alpha.component.ts
|
|
881
|
-
* @since 0.
|
|
882
|
-
* <example-url
|
|
883
|
-
* <example-url
|
|
916
|
+
* @since 0.3.0
|
|
917
|
+
* <example-url>/#/ui/paginator/paginator-parts/alpha/strip</example-url>
|
|
918
|
+
* <example-url>/#/ui/paginator/paginator-modes/alphabetical</example-url>
|
|
919
|
+
* @axis level molecule
|
|
884
920
|
*/
|
|
885
921
|
declare class CngxPaginatorAlpha {
|
|
886
|
-
protected readonly host:
|
|
922
|
+
protected readonly host: CngxBucketPaginateHost;
|
|
887
923
|
protected readonly ariaLabels: _angular_core.Signal<_cngx_ui_paginator.CngxPaginatorAriaLabels>;
|
|
888
924
|
/**
|
|
889
925
|
* Roving focus cursor. A `linkedSignal` so the strip's single tab stop tracks
|
|
@@ -908,9 +944,8 @@ declare class CngxPaginatorAlpha {
|
|
|
908
944
|
* The defaults come from the `paginator` section of the language pack
|
|
909
945
|
* (English without one); {@link withPaginatorAriaLabels} overrides single keys.
|
|
910
946
|
*
|
|
911
|
-
* @category ui/paginator
|
|
912
947
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
913
|
-
* @since 0.
|
|
948
|
+
* @since 0.3.0
|
|
914
949
|
*/
|
|
915
950
|
interface CngxPaginatorAriaLabels {
|
|
916
951
|
/** Accessible name for the `role="navigation"` landmark. */
|
|
@@ -963,9 +998,8 @@ interface CngxPaginatorAriaLabels {
|
|
|
963
998
|
* from the `paginator` section of the language pack, numbers formatted for the
|
|
964
999
|
* locale; the `withPaginator*Format` features override single keys.
|
|
965
1000
|
*
|
|
966
|
-
* @category ui/paginator
|
|
967
1001
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
968
|
-
* @since 0.
|
|
1002
|
+
* @since 0.3.0
|
|
969
1003
|
*/
|
|
970
1004
|
interface CngxPaginatorFormats {
|
|
971
1005
|
/**
|
|
@@ -1004,9 +1038,8 @@ interface CngxPaginatorFormats {
|
|
|
1004
1038
|
* `paginator` section of the language pack; {@link withPaginatorAnnouncements}
|
|
1005
1039
|
* overrides single keys.
|
|
1006
1040
|
*
|
|
1007
|
-
* @category ui/paginator
|
|
1008
1041
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1009
|
-
* @since 0.
|
|
1042
|
+
* @since 0.3.0
|
|
1010
1043
|
*/
|
|
1011
1044
|
interface CngxPaginatorAnnouncements {
|
|
1012
1045
|
/** Announced on every page change, given the 1-based page and total pages. */
|
|
@@ -1022,9 +1055,8 @@ interface CngxPaginatorAnnouncements {
|
|
|
1022
1055
|
* per-instance slot is projected. Library default is unset (the built-in
|
|
1023
1056
|
* `CngxProgress` bar renders).
|
|
1024
1057
|
*
|
|
1025
|
-
* @category ui/paginator
|
|
1026
1058
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1027
|
-
* @since 0.
|
|
1059
|
+
* @since 0.3.0
|
|
1028
1060
|
*/
|
|
1029
1061
|
interface CngxPaginatorTemplates {
|
|
1030
1062
|
/** Busy indicator shown while the bound async state is busy. */
|
|
@@ -1044,9 +1076,8 @@ interface CngxPaginatorTemplates {
|
|
|
1044
1076
|
* {@link injectPaginatorAriaLabels}, {@link injectPaginatorAnnouncements} and
|
|
1045
1077
|
* {@link injectPaginatorFormats}, inside a `computed()`, a template or a handler.
|
|
1046
1078
|
*
|
|
1047
|
-
* @category ui/paginator
|
|
1048
1079
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1049
|
-
* @since 0.
|
|
1080
|
+
* @since 0.3.0
|
|
1050
1081
|
*/
|
|
1051
1082
|
interface CngxPaginatorConfig {
|
|
1052
1083
|
readonly ariaLabels?: Partial<CngxPaginatorAriaLabels> | Signal<Partial<CngxPaginatorAriaLabels>>;
|
|
@@ -1068,13 +1099,15 @@ interface CngxPaginatorConfig {
|
|
|
1068
1099
|
*/
|
|
1069
1100
|
declare const CNGX_PAGINATOR_DEFAULTS: CngxPaginatorConfig;
|
|
1070
1101
|
/**
|
|
1071
|
-
* Configuration cascade token. Resolution priority (high
|
|
1072
|
-
*
|
|
1073
|
-
*
|
|
1102
|
+
* Configuration cascade token. Resolution priority (high -> low):
|
|
1103
|
+
* 1. Per-instance Input binding.
|
|
1104
|
+
* 2. `provideCngxPaginatorConfigAt(...)` in a parent component's
|
|
1105
|
+
* `viewProviders` (component-scoped override).
|
|
1106
|
+
* 3. `provideCngxPaginatorConfig(...)` at the application root.
|
|
1107
|
+
* 4. Library defaults.
|
|
1074
1108
|
*
|
|
1075
|
-
* @category ui/paginator
|
|
1076
1109
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1077
|
-
* @since 0.
|
|
1110
|
+
* @since 0.3.0
|
|
1078
1111
|
*/
|
|
1079
1112
|
declare const CNGX_PAGINATOR_CONFIG: InjectionToken<CngxPaginatorConfig>;
|
|
1080
1113
|
/**
|
|
@@ -1083,9 +1116,8 @@ declare const CNGX_PAGINATOR_CONFIG: InjectionToken<CngxPaginatorConfig>;
|
|
|
1083
1116
|
* shallow-merges `payload` into the matching sub-tree - except
|
|
1084
1117
|
* `pageSizeOptions`, whose payload replaces the list wholesale.
|
|
1085
1118
|
*
|
|
1086
|
-
* @category ui/paginator
|
|
1087
1119
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1088
|
-
* @since 0.
|
|
1120
|
+
* @since 0.3.0
|
|
1089
1121
|
*/
|
|
1090
1122
|
type CngxPaginatorConfigFeature = {
|
|
1091
1123
|
readonly kind: 'ariaLabels';
|
|
@@ -1114,9 +1146,8 @@ type CngxPaginatorConfigFeature = {
|
|
|
1114
1146
|
* );
|
|
1115
1147
|
* ```
|
|
1116
1148
|
*
|
|
1117
|
-
* @category ui/paginator
|
|
1118
1149
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1119
|
-
* @since 0.
|
|
1150
|
+
* @since 0.3.0
|
|
1120
1151
|
*/
|
|
1121
1152
|
declare function withPaginatorAriaLabels(payload: Partial<CngxPaginatorAriaLabels> | Signal<Partial<CngxPaginatorAriaLabels>>): CngxPaginatorConfigFeature;
|
|
1122
1153
|
/**
|
|
@@ -1134,9 +1165,8 @@ declare function withPaginatorAriaLabels(payload: Partial<CngxPaginatorAriaLabel
|
|
|
1134
1165
|
* );
|
|
1135
1166
|
* ```
|
|
1136
1167
|
*
|
|
1137
|
-
* @category ui/paginator
|
|
1138
1168
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1139
|
-
* @since 0.
|
|
1169
|
+
* @since 0.3.0
|
|
1140
1170
|
*/
|
|
1141
1171
|
declare function withPaginatorAnnouncements(payload: Partial<CngxPaginatorAnnouncements> | Signal<Partial<CngxPaginatorAnnouncements>>): CngxPaginatorConfigFeature;
|
|
1142
1172
|
/**
|
|
@@ -1149,9 +1179,8 @@ declare function withPaginatorAnnouncements(payload: Partial<CngxPaginatorAnnoun
|
|
|
1149
1179
|
* );
|
|
1150
1180
|
* ```
|
|
1151
1181
|
*
|
|
1152
|
-
* @category ui/paginator
|
|
1153
1182
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1154
|
-
* @since 0.
|
|
1183
|
+
* @since 0.3.0
|
|
1155
1184
|
*/
|
|
1156
1185
|
declare function withPaginatorRangeFormat(range: CngxPaginatorFormats['range'] | Signal<CngxPaginatorFormats['range']>): CngxPaginatorConfigFeature;
|
|
1157
1186
|
/**
|
|
@@ -1165,9 +1194,8 @@ declare function withPaginatorRangeFormat(range: CngxPaginatorFormats['range'] |
|
|
|
1165
1194
|
* );
|
|
1166
1195
|
* ```
|
|
1167
1196
|
*
|
|
1168
|
-
* @category ui/paginator
|
|
1169
1197
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1170
|
-
* @since 0.
|
|
1198
|
+
* @since 0.3.0
|
|
1171
1199
|
*/
|
|
1172
1200
|
declare function withPaginatorPageStatusFormat(pageStatus: CngxPaginatorFormats['pageStatus'] | Signal<CngxPaginatorFormats['pageStatus']>): CngxPaginatorConfigFeature;
|
|
1173
1201
|
/**
|
|
@@ -1181,9 +1209,8 @@ declare function withPaginatorPageStatusFormat(pageStatus: CngxPaginatorFormats[
|
|
|
1181
1209
|
* );
|
|
1182
1210
|
* ```
|
|
1183
1211
|
*
|
|
1184
|
-
* @category ui/paginator
|
|
1185
1212
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1186
|
-
* @since 0.
|
|
1213
|
+
* @since 0.3.0
|
|
1187
1214
|
*/
|
|
1188
1215
|
declare function withPaginatorPageOfPagesFormat(pageOfPagesReadout: NonNullable<CngxPaginatorFormats['pageOfPagesReadout']> | Signal<NonNullable<CngxPaginatorFormats['pageOfPagesReadout']>>): CngxPaginatorConfigFeature;
|
|
1189
1216
|
/**
|
|
@@ -1196,9 +1223,8 @@ declare function withPaginatorPageOfPagesFormat(pageOfPagesReadout: NonNullable<
|
|
|
1196
1223
|
* );
|
|
1197
1224
|
* ```
|
|
1198
1225
|
*
|
|
1199
|
-
* @category ui/paginator
|
|
1200
1226
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1201
|
-
* @since 0.
|
|
1227
|
+
* @since 0.3.0
|
|
1202
1228
|
*/
|
|
1203
1229
|
declare function withPaginatorLoadMoreFormat(loadMoreReadout: NonNullable<CngxPaginatorFormats['loadMoreReadout']> | Signal<NonNullable<CngxPaginatorFormats['loadMoreReadout']>>): CngxPaginatorConfigFeature;
|
|
1204
1230
|
/**
|
|
@@ -1213,9 +1239,8 @@ declare function withPaginatorLoadMoreFormat(loadMoreReadout: NonNullable<CngxPa
|
|
|
1213
1239
|
* );
|
|
1214
1240
|
* ```
|
|
1215
1241
|
*
|
|
1216
|
-
* @category ui/paginator
|
|
1217
1242
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1218
|
-
* @since 0.
|
|
1243
|
+
* @since 0.3.0
|
|
1219
1244
|
*/
|
|
1220
1245
|
declare function withPaginatorPageSizeOptions(payload: readonly number[]): CngxPaginatorConfigFeature;
|
|
1221
1246
|
/**
|
|
@@ -1223,15 +1248,26 @@ declare function withPaginatorPageSizeOptions(payload: readonly number[]): CngxP
|
|
|
1223
1248
|
* per-instance `*cngxPaginatorLoading` slot still wins over this tier; it only
|
|
1224
1249
|
* applies where no instance slot is projected.
|
|
1225
1250
|
*
|
|
1251
|
+
* A `TemplateRef` exists only once a view renders, so it cannot go into the
|
|
1252
|
+
* root providers or `viewProviders`. Build the scope from the rendered
|
|
1253
|
+
* template and hand it to `ngTemplateOutlet`:
|
|
1254
|
+
*
|
|
1226
1255
|
* ```ts
|
|
1227
|
-
*
|
|
1228
|
-
*
|
|
1256
|
+
* private readonly injector = inject(Injector);
|
|
1257
|
+
* private readonly spinnerTpl = viewChild.required<TemplateRef<void>>('spinner');
|
|
1258
|
+
* protected readonly pagerScope = computed(() =>
|
|
1259
|
+
* Injector.create({
|
|
1260
|
+
* parent: this.injector,
|
|
1261
|
+
* providers: [
|
|
1262
|
+
* provideCngxPaginatorConfigAt(withPaginatorTemplates({ loading: this.spinnerTpl() })),
|
|
1263
|
+
* ],
|
|
1264
|
+
* }),
|
|
1229
1265
|
* );
|
|
1266
|
+
* // <ng-container *ngTemplateOutlet="pagerTpl; injector: pagerScope()" />
|
|
1230
1267
|
* ```
|
|
1231
1268
|
*
|
|
1232
|
-
* @category ui/paginator
|
|
1233
1269
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1234
|
-
* @since 0.
|
|
1270
|
+
* @since 0.3.0
|
|
1235
1271
|
*/
|
|
1236
1272
|
declare function withPaginatorTemplates(payload: Partial<CngxPaginatorTemplates>): CngxPaginatorConfigFeature;
|
|
1237
1273
|
/**
|
|
@@ -1240,9 +1276,8 @@ declare function withPaginatorTemplates(payload: Partial<CngxPaginatorTemplates>
|
|
|
1240
1276
|
* Supplied features deep-merge with the library defaults, so consumers only
|
|
1241
1277
|
* declare the keys they want to override.
|
|
1242
1278
|
*
|
|
1243
|
-
* @category ui/paginator
|
|
1244
1279
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1245
|
-
* @since 0.
|
|
1280
|
+
* @since 0.3.0
|
|
1246
1281
|
*/
|
|
1247
1282
|
declare function provideCngxPaginatorConfig(...features: CngxPaginatorConfigFeature[]): EnvironmentProviders;
|
|
1248
1283
|
/**
|
|
@@ -1251,9 +1286,8 @@ declare function provideCngxPaginatorConfig(...features: CngxPaginatorConfigFeat
|
|
|
1251
1286
|
* (an enclosing scope or the application root), so a region can re-phrase its
|
|
1252
1287
|
* announcements or labels without disturbing the rest of the app.
|
|
1253
1288
|
*
|
|
1254
|
-
* @category ui/paginator
|
|
1255
1289
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1256
|
-
* @since 0.
|
|
1290
|
+
* @since 0.3.0
|
|
1257
1291
|
*/
|
|
1258
1292
|
declare function provideCngxPaginatorConfigAt(...features: CngxPaginatorConfigFeature[]): Provider[];
|
|
1259
1293
|
/**
|
|
@@ -1261,18 +1295,16 @@ declare function provideCngxPaginatorConfigAt(...features: CngxPaginatorConfigFe
|
|
|
1261
1295
|
* context; resolves through the cascade. Equivalent to
|
|
1262
1296
|
* `inject(CNGX_PAGINATOR_CONFIG)`.
|
|
1263
1297
|
*
|
|
1264
|
-
* @category ui/paginator
|
|
1265
1298
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1266
|
-
* @since 0.
|
|
1299
|
+
* @since 0.3.0
|
|
1267
1300
|
*/
|
|
1268
1301
|
declare function injectPaginatorConfig(): CngxPaginatorConfig;
|
|
1269
1302
|
/**
|
|
1270
1303
|
* The resolved accessible-name strings of the paginator config in scope, as a
|
|
1271
1304
|
* Signal that follows a runtime language switch. Runs in injection context.
|
|
1272
1305
|
*
|
|
1273
|
-
* @category ui/paginator
|
|
1274
1306
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1275
|
-
* @since 0.
|
|
1307
|
+
* @since 0.3.0
|
|
1276
1308
|
*/
|
|
1277
1309
|
declare function injectPaginatorAriaLabels(): Signal<CngxPaginatorAriaLabels>;
|
|
1278
1310
|
/**
|
|
@@ -1280,9 +1312,8 @@ declare function injectPaginatorAriaLabels(): Signal<CngxPaginatorAriaLabels>;
|
|
|
1280
1312
|
* Signal. Read it untracked where it builds live-region text, so a language
|
|
1281
1313
|
* switch does not re-speak the current message. Runs in injection context.
|
|
1282
1314
|
*
|
|
1283
|
-
* @category ui/paginator
|
|
1284
1315
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1285
|
-
* @since 0.
|
|
1316
|
+
* @since 0.3.0
|
|
1286
1317
|
*/
|
|
1287
1318
|
declare function injectPaginatorAnnouncements(): Signal<CngxPaginatorAnnouncements>;
|
|
1288
1319
|
/**
|
|
@@ -1290,18 +1321,16 @@ declare function injectPaginatorAnnouncements(): Signal<CngxPaginatorAnnouncemen
|
|
|
1290
1321
|
* Signal with every key filled from the `paginator` section of the language
|
|
1291
1322
|
* pack. Runs in injection context.
|
|
1292
1323
|
*
|
|
1293
|
-
* @category ui/paginator
|
|
1294
1324
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-config.ts
|
|
1295
|
-
* @since 0.
|
|
1325
|
+
* @since 0.3.0
|
|
1296
1326
|
*/
|
|
1297
1327
|
declare function injectPaginatorFormats(): Signal<Required<CngxPaginatorFormats>>;
|
|
1298
1328
|
|
|
1299
1329
|
/**
|
|
1300
1330
|
* Reactive announcement source for the paginator live region.
|
|
1301
1331
|
*
|
|
1302
|
-
* @category ui/paginator
|
|
1303
1332
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-announcer.ts
|
|
1304
|
-
* @since 0.
|
|
1333
|
+
* @since 0.3.0
|
|
1305
1334
|
*/
|
|
1306
1335
|
interface CngxPaginatorAnnouncer {
|
|
1307
1336
|
/**
|
|
@@ -1326,9 +1355,8 @@ interface CngxPaginatorAnnouncer {
|
|
|
1326
1355
|
*
|
|
1327
1356
|
* Must run in an injection context (call as a field initialiser on the shell).
|
|
1328
1357
|
*
|
|
1329
|
-
* @category ui/paginator
|
|
1330
1358
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-announcer.ts
|
|
1331
|
-
* @since 0.
|
|
1359
|
+
* @since 0.3.0
|
|
1332
1360
|
*/
|
|
1333
1361
|
declare function createPaginatorAnnouncer(): CngxPaginatorAnnouncer;
|
|
1334
1362
|
/** The shape an override must match to swap the announcer derivation. */
|
|
@@ -1343,9 +1371,8 @@ type CngxPaginatorAnnouncerFactory = () => CngxPaginatorAnnouncer;
|
|
|
1343
1371
|
* select family). The override runs in the shell's injection context, so it can
|
|
1344
1372
|
* still `inject(CNGX_PAGINATOR_HOST)` / {@link injectPaginatorConfig}.
|
|
1345
1373
|
*
|
|
1346
|
-
* @category ui/paginator
|
|
1347
1374
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/paginator/paginator-announcer.ts
|
|
1348
|
-
* @since 0.
|
|
1375
|
+
* @since 0.3.0
|
|
1349
1376
|
*/
|
|
1350
1377
|
declare const CNGX_PAGINATOR_ANNOUNCER_FACTORY: InjectionToken<CngxPaginatorAnnouncerFactory>;
|
|
1351
1378
|
|
|
@@ -1360,8 +1387,7 @@ declare const CNGX_PAGINATOR_ANNOUNCER_FACTORY: InjectionToken<CngxPaginatorAnno
|
|
|
1360
1387
|
* The readout messages (`range`, `pageStatus`, `pageOfPagesReadout`) render as
|
|
1361
1388
|
* sanitised HTML, so they may emphasise the current value with `<b>`.
|
|
1362
1389
|
*
|
|
1363
|
-
* @
|
|
1364
|
-
* @since 0.1.0
|
|
1390
|
+
* @since 0.3.0
|
|
1365
1391
|
* @relatedTo CNGX_PAGINATOR_CONFIG, withPaginatorAriaLabels, withPaginatorAnnouncements
|
|
1366
1392
|
*/
|
|
1367
1393
|
interface CngxPaginatorLanguageSection {
|
|
@@ -1416,8 +1442,7 @@ interface CngxPaginatorLanguageSection {
|
|
|
1416
1442
|
* The English paginator section: the single source of the paginator's English
|
|
1417
1443
|
* copy. The `CNGX_PAGINATOR_CONFIG` copy sub-trees default to it.
|
|
1418
1444
|
*
|
|
1419
|
-
* @
|
|
1420
|
-
* @since 0.1.0
|
|
1445
|
+
* @since 0.3.0
|
|
1421
1446
|
* @relatedTo CNGX_PAGINATOR_CONFIG
|
|
1422
1447
|
*/
|
|
1423
1448
|
declare const CNGX_PAGINATOR_LANGUAGE_EN: CngxPaginatorLanguageSection;
|