@cngx/ui 0.1.0-rc.6 → 0.1.0-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +112 -1
  2. package/a11y/README.md +87 -0
  3. package/accordion/README.md +4 -2
  4. package/breadcrumb/README.md +262 -0
  5. package/collection/README.md +6 -0
  6. package/command-palette/README.md +224 -0
  7. package/context-menu/README.md +98 -0
  8. package/data-grid-accordion/README.md +103 -2
  9. package/feedback/README.md +42 -0
  10. package/fesm2022/cngx-ui-a11y.mjs +452 -0
  11. package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
  12. package/fesm2022/cngx-ui-accordion.mjs +116 -38
  13. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  14. package/fesm2022/cngx-ui-action-button.mjs +115 -50
  15. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  16. package/fesm2022/cngx-ui-breadcrumb.mjs +181 -96
  17. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/cngx-ui-chart-panel.mjs +586 -0
  19. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
  20. package/fesm2022/cngx-ui-collection.mjs +207 -66
  21. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  22. package/fesm2022/cngx-ui-command-palette.mjs +1281 -0
  23. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
  24. package/fesm2022/cngx-ui-context-menu.mjs +857 -0
  25. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
  26. package/fesm2022/cngx-ui-data-grid-accordion.mjs +498 -111
  27. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  28. package/fesm2022/cngx-ui-empty-state.mjs +16 -6
  29. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  30. package/fesm2022/cngx-ui-feedback.mjs +1095 -521
  31. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  32. package/fesm2022/cngx-ui-layout.mjs +18 -9
  33. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  34. package/fesm2022/cngx-ui-mat-accordion.mjs +84 -16
  35. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  36. package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
  37. package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
  38. package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
  39. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  40. package/fesm2022/cngx-ui-mat-tabs.mjs +370 -203
  41. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  42. package/fesm2022/cngx-ui-overlay.mjs +69 -13
  43. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  44. package/fesm2022/cngx-ui-paginator.mjs +501 -182
  45. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  46. package/fesm2022/cngx-ui-sidenav.mjs +327 -106
  47. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  48. package/fesm2022/cngx-ui-skeleton.mjs +22 -21
  49. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  50. package/fesm2022/cngx-ui-speak.mjs +107 -8
  51. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  52. package/fesm2022/cngx-ui-stat-card.mjs +718 -0
  53. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
  54. package/fesm2022/cngx-ui-stepper.mjs +217 -76
  55. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  56. package/fesm2022/cngx-ui-tabs.mjs +40 -19
  57. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  58. package/fesm2022/cngx-ui-timeline.mjs +548 -0
  59. package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
  60. package/fesm2022/cngx-ui-toc.mjs +748 -0
  61. package/fesm2022/cngx-ui-toc.mjs.map +1 -0
  62. package/fesm2022/cngx-ui.mjs +16 -21
  63. package/fesm2022/cngx-ui.mjs.map +1 -1
  64. package/mat-accordion/README.md +1 -1
  65. package/mat-paginator/README.md +9 -2
  66. package/mat-tabs/styles/mat-tabs.css +29 -27
  67. package/overlay/README.md +9 -4
  68. package/package.json +32 -1
  69. package/paginator/README.md +8 -4
  70. package/sidenav/README.md +33 -11
  71. package/skeleton/README.md +2 -0
  72. package/speak/README.md +3 -2
  73. package/stepper/README.md +15 -3
  74. package/timeline/README.md +350 -0
  75. package/toc/README.md +186 -0
  76. package/types/cngx-ui-a11y.d.ts +394 -0
  77. package/types/cngx-ui-accordion.d.ts +100 -30
  78. package/types/cngx-ui-action-button.d.ts +47 -3
  79. package/types/cngx-ui-breadcrumb.d.ts +159 -58
  80. package/types/cngx-ui-chart-panel.d.ts +382 -0
  81. package/types/cngx-ui-collection.d.ts +159 -58
  82. package/types/cngx-ui-command-palette.d.ts +565 -0
  83. package/types/cngx-ui-context-menu.d.ts +559 -0
  84. package/types/cngx-ui-data-grid-accordion.d.ts +344 -51
  85. package/types/cngx-ui-empty-state.d.ts +9 -2
  86. package/types/cngx-ui-feedback.d.ts +664 -73
  87. package/types/cngx-ui-layout.d.ts +8 -3
  88. package/types/cngx-ui-mat-accordion.d.ts +32 -4
  89. package/types/cngx-ui-mat-paginator.d.ts +37 -8
  90. package/types/cngx-ui-mat-stepper.d.ts +23 -11
  91. package/types/cngx-ui-mat-tabs.d.ts +218 -23
  92. package/types/cngx-ui-overlay.d.ts +56 -10
  93. package/types/cngx-ui-paginator.d.ts +416 -132
  94. package/types/cngx-ui-sidenav.d.ts +248 -74
  95. package/types/cngx-ui-skeleton.d.ts +18 -7
  96. package/types/cngx-ui-speak.d.ts +118 -5
  97. package/types/cngx-ui-stat-card.d.ts +411 -0
  98. package/types/cngx-ui-stepper.d.ts +81 -29
  99. package/types/cngx-ui-tabs.d.ts +22 -6
  100. package/types/cngx-ui-timeline.d.ts +495 -0
  101. package/types/cngx-ui-toc.d.ts +581 -0
  102. package/types/cngx-ui.d.ts +8 -5
@@ -1,26 +1,75 @@
1
1
  import { NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { InjectionToken, makeEnvironmentProviders, SkipSelf, Optional, inject, input, output, ElementRef, computed, afterRenderEffect, ViewEncapsulation, ChangeDetectionStrategy, Component, TemplateRef, Directive, booleanAttribute, contentChild } from '@angular/core';
3
+ import { InjectionToken, inject, makeEnvironmentProviders, SkipSelf, Optional, input, output, ElementRef, computed, afterRenderEffect, ViewEncapsulation, ChangeDetectionStrategy, Component, TemplateRef, Directive, booleanAttribute, contentChild, untracked } from '@angular/core';
4
4
  import { CngxLiveRegion } from '@cngx/common/a11y';
5
5
  import * as i1 from '@cngx/common/data';
6
- import { injectRecycler, CngxVirtualItem, CngxMeasure, CngxRecyclerAnnouncer, CngxPaginate, resolveAsyncView, connectPaginateEmit, CNGX_RECYCLER_I18N } from '@cngx/common/data';
6
+ import { injectRecycler, CngxVirtualItem, CngxMeasure, CngxRecyclerPlaceholder, CngxRecyclerAnnouncer, CngxPaginate, resolveAsyncView, connectPaginateEmit, CNGX_RECYCLER_I18N } from '@cngx/common/data';
7
+ import { createOverrideMerge, createFilledOverrideMerge, injectLocale, displayFormattersFor, formatDisplayValue } from '@cngx/core/utils';
8
+ import { recordEqual } from '@cngx/utils';
7
9
  import { CngxEmptyState } from '@cngx/ui/empty-state';
8
10
  import { CngxProgress } from '@cngx/ui/feedback';
11
+ import { formatMessage, createLanguageSection, createSectionBundle } from '@cngx/core/i18n';
9
12
  import { CNGX_PAGINATOR_HOST } from '@cngx/ui/paginator';
10
13
  export { CNGX_PAGINATOR_HOST, CngxPaginatorInfinite, CngxPaginatorLoadMore } from '@cngx/ui/paginator';
11
14
 
12
- /** Library defaults - English. Override via {@link provideIncrementalListConfig}. */
13
- const CNGX_INCREMENTAL_LIST_DEFAULTS = {
14
- ariaLabels: {
15
- loading: 'Loading',
16
- empty: 'Nothing here yet',
17
- error: 'Failed to load',
18
- pageError: 'Failed to load more',
19
- retry: 'Retry',
20
- endReached: (total) => `All ${total} loaded`,
21
- loadedMore: (count, total) => `${count} more loaded. ${total} total.`,
22
- },
15
+ /**
16
+ * The English collection section: the single source of the incremental
17
+ * list's English copy. The `CNGX_INCREMENTAL_LIST_CONFIG` labels default to it.
18
+ *
19
+ * @category ui/collection/i18n
20
+ * @since 0.1.0
21
+ * @relatedTo CNGX_INCREMENTAL_LIST_CONFIG
22
+ */
23
+ const CNGX_COLLECTION_LANGUAGE_EN = {
24
+ loading: 'Loading',
25
+ empty: 'Nothing here yet',
26
+ error: 'Could not load',
27
+ pageError: 'Could not load more',
28
+ retry: 'Retry',
29
+ endReached: 'All {count} loaded',
30
+ loadedMore: '{count} more loaded. {total} total.',
23
31
  };
32
+
33
+ /** @internal Turns a collection section into the incremental-list labels for a locale. Pure. */
34
+ function collectionLabelsFrom(section, locale) {
35
+ return {
36
+ loading: section.loading,
37
+ empty: section.empty,
38
+ error: section.error,
39
+ pageError: section.pageError,
40
+ retry: section.retry,
41
+ endReached: (total) => formatMessage(section.endReached, { count: total }, locale),
42
+ loadedMore: (count, total) => formatMessage(section.loadedMore, { count, total }, locale),
43
+ };
44
+ }
45
+ /** @internal The collection section of the active pack over the English section. */
46
+ const injectCollectionLanguage = createLanguageSection('collection', CNGX_COLLECTION_LANGUAGE_EN);
47
+ /** @internal Builds and reads the section labels, formatted for the reading locale. */
48
+ const collectionBundle = createSectionBundle({
49
+ section: injectCollectionLanguage,
50
+ toBundle: collectionLabelsFrom,
51
+ });
52
+ /**
53
+ * @internal The collection labels of the active pack, formatted for the app
54
+ * locale. Private: consumers override copy through `withIncrementalListAriaLabels`.
55
+ */
56
+ const COLLECTION_SECTION_LABELS = new InjectionToken('CngxCollectionSectionLabels', { providedIn: 'root', factory: () => collectionBundle.build() });
57
+ /**
58
+ * @internal The collection labels at the reading site: the active pack's
59
+ * section formatted for the locale of the injector that reads it. Injection
60
+ * context required.
61
+ */
62
+ function injectCollectionSiteLabels() {
63
+ return collectionBundle.resolve(inject(COLLECTION_SECTION_LABELS));
64
+ }
65
+
66
+ /**
67
+ * Library defaults. Empty: the label defaults are the `collection` section of
68
+ * the language pack and the template slots are unset, so a config only ever
69
+ * holds overrides.
70
+ */
71
+ const INCREMENTAL_LIST_DEFAULTS = {};
72
+ const NO_ARIA_LABELS = {};
24
73
  /**
25
74
  * Configuration cascade token. Resolution priority (high to low):
26
75
  * per-instance projected slot, then `provideIncrementalListConfigAt(...)` at
@@ -33,7 +82,7 @@ const CNGX_INCREMENTAL_LIST_DEFAULTS = {
33
82
  */
34
83
  const CNGX_INCREMENTAL_LIST_CONFIG = new InjectionToken('CngxIncrementalListConfig', {
35
84
  providedIn: 'root',
36
- factory: () => CNGX_INCREMENTAL_LIST_DEFAULTS,
85
+ factory: () => INCREMENTAL_LIST_DEFAULTS,
37
86
  });
38
87
  /** Reduce a feature list onto a base config, merging each sub-tree in isolation. */
39
88
  function applyFeatures(base, features) {
@@ -41,7 +90,7 @@ function applyFeatures(base, features) {
41
90
  let templates = base.templates;
42
91
  for (const feature of features) {
43
92
  if (feature.kind === 'ariaLabels') {
44
- ariaLabels = { ...ariaLabels, ...feature.payload };
93
+ ariaLabels = createOverrideMerge(ariaLabels ?? NO_ARIA_LABELS, feature.payload);
45
94
  }
46
95
  else {
47
96
  templates = { ...templates, ...feature.payload };
@@ -51,7 +100,9 @@ function applyFeatures(base, features) {
51
100
  }
52
101
  /**
53
102
  * Override any subset of the incremental-list labels. The override applies to
54
- * both the visible built-in views and the live-region announcements.
103
+ * both the visible built-in views and the live-region announcements. Pass a
104
+ * `Signal` to switch the language at runtime; the live region speaks the new
105
+ * phrasing with its next change.
55
106
  *
56
107
  * ```ts
57
108
  * provideIncrementalListConfig(
@@ -105,7 +156,7 @@ function provideIncrementalListConfig(...features) {
105
156
  return makeEnvironmentProviders([
106
157
  {
107
158
  provide: CNGX_INCREMENTAL_LIST_CONFIG,
108
- useValue: applyFeatures(CNGX_INCREMENTAL_LIST_DEFAULTS, features),
159
+ useValue: applyFeatures(INCREMENTAL_LIST_DEFAULTS, features),
109
160
  },
110
161
  ]);
111
162
  }
@@ -123,7 +174,7 @@ function provideIncrementalListConfigAt(...features) {
123
174
  return [
124
175
  {
125
176
  provide: CNGX_INCREMENTAL_LIST_CONFIG,
126
- useFactory: (parent) => applyFeatures(parent ?? CNGX_INCREMENTAL_LIST_DEFAULTS, features),
177
+ useFactory: (parent) => applyFeatures(parent ?? INCREMENTAL_LIST_DEFAULTS, features),
127
178
  deps: [[new SkipSelf(), new Optional(), CNGX_INCREMENTAL_LIST_CONFIG]],
128
179
  },
129
180
  ];
@@ -140,6 +191,22 @@ function provideIncrementalListConfigAt(...features) {
140
191
  function injectIncrementalListConfig() {
141
192
  return inject(CNGX_INCREMENTAL_LIST_CONFIG);
142
193
  }
194
+ /**
195
+ * The resolved labels of the incremental-list config in scope, as a Signal that
196
+ * follows a runtime language switch: the config overrides over the
197
+ * `collection` section of the active pack, formatted for the reading site's
198
+ * locale. A key the config leaves unset, `null` or `undefined` reads the
199
+ * section. Read it untracked where it builds
200
+ * live-region text, so a language switch does not re-speak the current
201
+ * message. Runs in injection context.
202
+ *
203
+ * @category ui/collection
204
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
205
+ * @since 0.1.0
206
+ */
207
+ function injectIncrementalListAriaLabels() {
208
+ return createFilledOverrideMerge(injectCollectionSiteLabels(), injectIncrementalListConfig().ariaLabels);
209
+ }
143
210
 
144
211
  /**
145
212
  * The collection organism reuses the paginator's read-mostly host contract
@@ -197,6 +264,8 @@ class CngxIncrementalVirtualizedBody {
197
264
  */
198
265
  focusEscaped = output();
199
266
  host = inject((ElementRef));
267
+ locale = injectLocale();
268
+ formatters = computed(() => displayFormattersFor(this.locale()), ...(ngDevMode ? [{ debugName: "formatters" }] : /* istanbul ignore next */ []));
200
269
  /**
201
270
  * The recycler. Constructed here, never in the organism, so its scroll
202
271
  * observer + effects install only when virtualized. `estimateSize` is passed
@@ -241,6 +310,10 @@ class CngxIncrementalVirtualizedBody {
241
310
  }
242
311
  return true;
243
312
  } });
313
+ /** Built-in row text without an item slot: numbers and dates in the locale. */
314
+ itemText(item) {
315
+ return formatDisplayValue(item, this.formatters());
316
+ }
244
317
  constructor() {
245
318
  // Focus continuity under recycling: when the row that held focus scrolls out
246
319
  // of the window, move focus to the nearest still-rendered row so keyboard
@@ -279,11 +352,17 @@ class CngxIncrementalVirtualizedBody {
279
352
  target.focus({ preventScroll: true });
280
353
  }
281
354
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxIncrementalVirtualizedBody, deps: [], target: i0.ɵɵFactoryTarget.Component });
282
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxIncrementalVirtualizedBody, isStandalone: true, selector: "cngx-incremental-virtualized-body", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, estimateSize: { classPropertyName: "estimateSize", publicName: "estimateSize", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, trackItem: { classPropertyName: "trackItem", publicName: "trackItem", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { focusEscaped: "focusEscaped" }, host: { classAttribute: "cngx-incremental-list__viewport" }, ngImport: i0, template: "<ul\n class=\"cngx-incremental-list__items\"\n role=\"list\"\n [style.padding-block-start.px]=\"recycler.offsetBefore()\"\n [style.padding-block-end.px]=\"recycler.offsetAfter()\"\n>\n @for (item of windowItems(); track trackItem()(recycler.start() + $index, item)) {\n <li\n class=\"cngx-incremental-list__item\"\n [cngxVirtualItem]=\"recycler\"\n [cngxVirtualItemIndex]=\"recycler.start() + $index\"\n [cngxMeasure]=\"recycler\"\n [cngxMeasureIndex]=\"recycler.start() + $index\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: recycler.start() + $index }\"\n />\n } @else {\n {{ item }}\n }\n </li>\n }\n</ul>\n\n<cngx-recycler-announcer [cngxRecyclerAnnouncer]=\"recycler\" />\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxVirtualItem, selector: "[cngxVirtualItem]", inputs: ["cngxVirtualItem", "cngxVirtualItemIndex"] }, { kind: "directive", type: CngxMeasure, selector: "[cngxMeasure]", inputs: ["cngxMeasure", "cngxMeasureIndex"] }, { kind: "component", type: CngxRecyclerAnnouncer, selector: "cngx-recycler-announcer", inputs: ["cngxRecyclerAnnouncer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
355
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxIncrementalVirtualizedBody, isStandalone: true, selector: "cngx-incremental-virtualized-body", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, estimateSize: { classPropertyName: "estimateSize", publicName: "estimateSize", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, trackItem: { classPropertyName: "trackItem", publicName: "trackItem", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { focusEscaped: "focusEscaped" }, host: { classAttribute: "cngx-incremental-list__viewport" }, ngImport: i0, template: "<ul class=\"cngx-incremental-list__items\" role=\"list\">\n @if (recycler.offsetBefore(); as before) {\n <li\n class=\"cngx-incremental-list__spacer\"\n role=\"presentation\"\n aria-hidden=\"true\"\n [cngxRecyclerPlaceholder]=\"recycler\"\n [style.height.px]=\"before\"\n ></li>\n }\n @for (item of windowItems(); track trackItem()(recycler.start() + $index, item)) {\n <li\n class=\"cngx-incremental-list__item\"\n [cngxVirtualItem]=\"recycler\"\n [cngxVirtualItemIndex]=\"recycler.start() + $index\"\n [cngxMeasure]=\"recycler\"\n [cngxMeasureIndex]=\"recycler.start() + $index\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: recycler.start() + $index }\"\n />\n } @else {\n {{ itemText(item) }}\n }\n </li>\n }\n @if (recycler.offsetAfter(); as after) {\n <li\n class=\"cngx-incremental-list__spacer\"\n role=\"presentation\"\n aria-hidden=\"true\"\n [cngxRecyclerPlaceholder]=\"recycler\"\n [style.height.px]=\"after\"\n ></li>\n }\n</ul>\n\n<cngx-recycler-announcer [cngxRecyclerAnnouncer]=\"recycler\" />\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxVirtualItem, selector: "[cngxVirtualItem]", inputs: ["cngxVirtualItem", "cngxVirtualItemIndex"] }, { kind: "directive", type: CngxMeasure, selector: "[cngxMeasure]", inputs: ["cngxMeasure", "cngxMeasureIndex"] }, { kind: "directive", type: CngxRecyclerPlaceholder, selector: "[cngxRecyclerPlaceholder]", inputs: ["cngxRecyclerPlaceholder", "rowHeight"] }, { kind: "component", type: CngxRecyclerAnnouncer, selector: "cngx-recycler-announcer", inputs: ["cngxRecyclerAnnouncer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
283
356
  }
284
357
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxIncrementalVirtualizedBody, decorators: [{
285
358
  type: Component,
286
- args: [{ selector: 'cngx-incremental-virtualized-body', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NgTemplateOutlet, CngxVirtualItem, CngxMeasure, CngxRecyclerAnnouncer], host: { class: 'cngx-incremental-list__viewport' }, template: "<ul\n class=\"cngx-incremental-list__items\"\n role=\"list\"\n [style.padding-block-start.px]=\"recycler.offsetBefore()\"\n [style.padding-block-end.px]=\"recycler.offsetAfter()\"\n>\n @for (item of windowItems(); track trackItem()(recycler.start() + $index, item)) {\n <li\n class=\"cngx-incremental-list__item\"\n [cngxVirtualItem]=\"recycler\"\n [cngxVirtualItemIndex]=\"recycler.start() + $index\"\n [cngxMeasure]=\"recycler\"\n [cngxMeasureIndex]=\"recycler.start() + $index\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: recycler.start() + $index }\"\n />\n } @else {\n {{ item }}\n }\n </li>\n }\n</ul>\n\n<cngx-recycler-announcer [cngxRecyclerAnnouncer]=\"recycler\" />\n" }]
359
+ args: [{ selector: 'cngx-incremental-virtualized-body', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [
360
+ NgTemplateOutlet,
361
+ CngxVirtualItem,
362
+ CngxMeasure,
363
+ CngxRecyclerPlaceholder,
364
+ CngxRecyclerAnnouncer,
365
+ ], host: { class: 'cngx-incremental-list__viewport' }, template: "<ul class=\"cngx-incremental-list__items\" role=\"list\">\n @if (recycler.offsetBefore(); as before) {\n <li\n class=\"cngx-incremental-list__spacer\"\n role=\"presentation\"\n aria-hidden=\"true\"\n [cngxRecyclerPlaceholder]=\"recycler\"\n [style.height.px]=\"before\"\n ></li>\n }\n @for (item of windowItems(); track trackItem()(recycler.start() + $index, item)) {\n <li\n class=\"cngx-incremental-list__item\"\n [cngxVirtualItem]=\"recycler\"\n [cngxVirtualItemIndex]=\"recycler.start() + $index\"\n [cngxMeasure]=\"recycler\"\n [cngxMeasureIndex]=\"recycler.start() + $index\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: recycler.start() + $index }\"\n />\n } @else {\n {{ itemText(item) }}\n }\n </li>\n }\n @if (recycler.offsetAfter(); as after) {\n <li\n class=\"cngx-incremental-list__spacer\"\n role=\"presentation\"\n aria-hidden=\"true\"\n [cngxRecyclerPlaceholder]=\"recycler\"\n [style.height.px]=\"after\"\n ></li>\n }\n</ul>\n\n<cngx-recycler-announcer [cngxRecyclerAnnouncer]=\"recycler\" />\n" }]
287
366
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], estimateSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "estimateSize", required: false }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], trackItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackItem", required: true }] }], focusEscaped: [{ type: i0.Output, args: ["focusEscaped"] }] } });
288
367
 
289
368
  /**
@@ -397,6 +476,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
397
476
  }]
398
477
  }] });
399
478
 
479
+ /**
480
+ * The recycler's view-state phrases stay silent inside the organism: its own
481
+ * `statusMessage` live region owns those, so only `loaded` carries text.
482
+ */
483
+ const SILENT_RECYCLER_I18N = {
484
+ filtered: () => '',
485
+ empty: () => '',
486
+ error: () => '',
487
+ };
488
+ const RECYCLER_I18N = new WeakMap();
489
+ /**
490
+ * The recycler's i18n over the list labels, memoized per labels Signal so every
491
+ * list under one cascade shares one `computed()`.
492
+ */
493
+ function recyclerI18nFor(ariaLabels) {
494
+ const cached = RECYCLER_I18N.get(ariaLabels);
495
+ if (cached) {
496
+ return cached;
497
+ }
498
+ const i18n = computed(() => ({ ...SILENT_RECYCLER_I18N, loaded: ariaLabels().loadedMore }), { ...(ngDevMode ? { debugName: "i18n" } : /* istanbul ignore next */ {}), equal: recordEqual });
499
+ RECYCLER_I18N.set(ariaLabels, i18n);
500
+ return i18n;
501
+ }
400
502
  /**
401
503
  * Append-style collection organism. \
402
504
  * Accumulates rows across pages (append, don't replace) and switches its view
@@ -412,12 +514,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
412
514
  * same contract when projected - the trigger stays a swappable terminal unit,
413
515
  * the rich async experience lives here.
414
516
  *
415
- * Two-way `[(pageIndex)]` / `[(pageSize)]` mirror the paginator shell: the
416
- * brain's controlled inputs are aliased through `hostDirectives` and this
417
- * component is the single emitter of the matching outputs.
517
+ * Page bindings mirror the paginator shell and are longhand pairs -
518
+ * `[pageIndex]` + `(pageIndexChange)`, `[pageSize]` + `(pageSizeChange)`:
519
+ * the brain's controlled inputs are aliased through `hostDirectives` and this
520
+ * component is the single emitter of the matching outputs. The two-way
521
+ * shorthand (banana-in-a-box) fails NG8007 under `strictTemplates` because
522
+ * the two halves resolve to different directive instances - same limitation,
523
+ * same reason, as `CngxPaginator`.
418
524
  *
419
- * All ARIA is signal-driven: `aria-busy` reflects the brain busy signal and a
420
- * polite live region communicates every settle (empty / error / end-reached).
525
+ * All ARIA is signal-driven: `aria-busy` reflects the brain busy signal on the
526
+ * items container (scoped there so the polite live region never sits inside a
527
+ * busy container) and the live region communicates every settle
528
+ * (empty / error / end-reached).
421
529
  *
422
530
  * @category ui/collection
423
531
  * @docsKind primary
@@ -425,6 +533,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
425
533
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list.component.ts
426
534
  * @since 0.1.0
427
535
  * @relatedTo CngxPaginate, CngxPaginator, CngxAsyncState
536
+ * @slot cngxIncrementalItem Renders one row; gets the item and its index.
537
+ * @slot cngxIncrementalLoading Rendered while a page is being fetched.
538
+ * @slot cngxIncrementalEmpty Rendered when the list resolves to nothing.
539
+ * @slot cngxIncrementalError Rendered when a page fetch fails; gets the error and a retry callback.
540
+ * @slot cngxIncrementalEnd Rendered once after the last page, e.g. an end-of-results marker.
428
541
  */
429
542
  class CngxIncrementalList {
430
543
  /** Visual skin; reflected onto `[data-skin]`. Paint-only. */
@@ -442,7 +555,12 @@ class CngxIncrementalList {
442
555
  * guess before a row is measured. Ignored unless `[virtualize]` is set.
443
556
  */
444
557
  estimateSize = input(48, ...(ngDevMode ? [{ debugName: "estimateSize" }] : /* istanbul ignore next */ []));
445
- /** Emits the effective page index on every change - navigation or `total`-shrink clamp. */
558
+ /**
559
+ * Emits the effective page index on every change - navigation or
560
+ * `total`-shrink clamp. Clamp emits are held back while the brain is busy or
561
+ * `total` is 0, so a transient total drop during a refetch never writes a
562
+ * page-0 clamp into the consumer's two-way state.
563
+ */
446
564
  pageIndexChange = output();
447
565
  /** Emits the effective page size on every change. */
448
566
  pageSizeChange = output();
@@ -462,6 +580,9 @@ class CngxIncrementalList {
462
580
  paginate = inject(CngxPaginate);
463
581
  host = inject((ElementRef));
464
582
  config = injectIncrementalListConfig();
583
+ ariaLabels = injectIncrementalListAriaLabels();
584
+ locale = injectLocale();
585
+ formatters = computed(() => displayFormattersFor(this.locale()), ...(ngDevMode ? [{ debugName: "formatters" }] : /* istanbul ignore next */ []));
465
586
  // View slot resolvers. Direct contentChild field initialisers (AOT NG8110
466
587
  // rejects them from a helper); read as TemplateRef so the cascade computeds
467
588
  // return a renderable reference or null.
@@ -490,8 +611,13 @@ class CngxIncrementalList {
490
611
  }
491
612
  return resolveAsyncView(state.status(), state.isFirstLoad(), state.isEmpty());
492
613
  }, ...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
493
- /** `true` on the last page - every accumulated item has been revealed. */
494
- exhausted = computed(() => this.paginate.isLast(), ...(ngDevMode ? [{ debugName: "exhausted" }] : /* istanbul ignore next */ []));
614
+ /**
615
+ * `true` on the last page of a KNOWN total - every accumulated item has been
616
+ * revealed. With `total` unset or not yet arrived (0), the end state never
617
+ * renders ("All 0 loaded" would be a lie); the load-more trigger stays until
618
+ * the consumer supplies the count.
619
+ */
620
+ exhausted = computed(() => this.paginate.total() > 0 && this.paginate.isLast(), ...(ngDevMode ? [{ debugName: "exhausted" }] : /* istanbul ignore next */ []));
495
621
  /**
496
622
  * The accumulated slice: every page revealed so far, sliced from the top of
497
623
  * the bound data. Pure derivation of the brain `cumulativeRange()` and the
@@ -506,14 +632,24 @@ class CngxIncrementalList {
506
632
  const [start, end] = this.paginate.cumulativeRange();
507
633
  return data.slice(start, end);
508
634
  }, { ...(ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {}), equal: (a, b) => a.length === b.length && a.every((item, i) => Object.is(item, b[i])) });
509
- // Built-in view labels, resolved through the config cascade (EN library
510
- // defaults). Consumers re-phrase or localise via provideIncrementalListConfig.
511
- loadingLabel = computed(() => this.config.ariaLabels.loading, ...(ngDevMode ? [{ debugName: "loadingLabel" }] : /* istanbul ignore next */ []));
512
- emptyLabel = computed(() => this.config.ariaLabels.empty, ...(ngDevMode ? [{ debugName: "emptyLabel" }] : /* istanbul ignore next */ []));
513
- errorLabel = computed(() => this.config.ariaLabels.error, ...(ngDevMode ? [{ debugName: "errorLabel" }] : /* istanbul ignore next */ []));
514
- pageErrorLabel = computed(() => this.config.ariaLabels.pageError, ...(ngDevMode ? [{ debugName: "pageErrorLabel" }] : /* istanbul ignore next */ []));
515
- retryLabel = computed(() => this.config.ariaLabels.retry, ...(ngDevMode ? [{ debugName: "retryLabel" }] : /* istanbul ignore next */ []));
516
- endLabel = computed(() => this.config.ariaLabels.endReached(this.paginate.total()), ...(ngDevMode ? [{ debugName: "endLabel" }] : /* istanbul ignore next */ []));
635
+ // Built-in view labels: config overrides over the `collection` language
636
+ // section. Consumers re-phrase single keys via provideIncrementalListConfig.
637
+ // They follow a language switch at once; the live region below reads them
638
+ // untracked.
639
+ loadingLabel = computed(() => this.ariaLabels().loading, ...(ngDevMode ? [{ debugName: "loadingLabel" }] : /* istanbul ignore next */ []));
640
+ /**
641
+ * The empty view renders `cngx-empty-state`, itself a polite status region, so
642
+ * its title is read untracked and keyed on the view: a language switch does
643
+ * not re-announce it, the next settle speaks the new language.
644
+ */
645
+ emptyLabel = computed(() => {
646
+ this.view();
647
+ return untracked(() => this.ariaLabels().empty);
648
+ }, ...(ngDevMode ? [{ debugName: "emptyLabel" }] : /* istanbul ignore next */ []));
649
+ errorLabel = computed(() => this.ariaLabels().error, ...(ngDevMode ? [{ debugName: "errorLabel" }] : /* istanbul ignore next */ []));
650
+ pageErrorLabel = computed(() => this.ariaLabels().pageError, ...(ngDevMode ? [{ debugName: "pageErrorLabel" }] : /* istanbul ignore next */ []));
651
+ retryLabel = computed(() => this.ariaLabels().retry, ...(ngDevMode ? [{ debugName: "retryLabel" }] : /* istanbul ignore next */ []));
652
+ endLabel = computed(() => this.ariaLabels().endReached(this.paginate.total()), ...(ngDevMode ? [{ debugName: "endLabel" }] : /* istanbul ignore next */ []));
517
653
  /**
518
654
  * Error text for the active error view - the distinct `pageError` phrasing
519
655
  * when a subsequent page failed with the list still visible (`content+error`),
@@ -524,20 +660,38 @@ class CngxIncrementalList {
524
660
  /**
525
661
  * Polite live-region message - communicated on every settle through the same
526
662
  * labels the visible views use, so a config or slot override stays in sync.
663
+ * The view state is tracked, the labels are read untracked: a language switch
664
+ * does not re-speak the current message, the next settle speaks the new
665
+ * language.
527
666
  */
528
667
  statusMessage = computed(() => {
668
+ const status = this.statusKey();
669
+ if (status === null) {
670
+ return '';
671
+ }
672
+ const total = this.paginate.total();
673
+ return untracked(() => {
674
+ const labels = this.ariaLabels();
675
+ return status === 'end' ? labels.endReached(total) : labels[status];
676
+ });
677
+ }, ...(ngDevMode ? [{ debugName: "statusMessage" }] : /* istanbul ignore next */ []));
678
+ /** Which message the live region speaks for the current view, if any. */
679
+ statusKey = computed(() => {
529
680
  if (this.paginate.isBusy()) {
530
- return this.loadingLabel();
681
+ return 'loading';
531
682
  }
532
683
  const view = this.view();
533
684
  if (view === 'empty') {
534
- return this.emptyLabel();
685
+ return 'empty';
535
686
  }
536
- if (view === 'error' || view === 'content+error') {
537
- return this.errorViewLabel();
687
+ if (view === 'error') {
688
+ return 'error';
538
689
  }
539
- return this.exhausted() ? this.endLabel() : '';
540
- }, ...(ngDevMode ? [{ debugName: "statusMessage" }] : /* istanbul ignore next */ []));
690
+ if (view === 'content+error') {
691
+ return 'pageError';
692
+ }
693
+ return this.exhausted() ? 'end' : null;
694
+ }, ...(ngDevMode ? [{ debugName: "statusKey" }] : /* istanbul ignore next */ []));
541
695
  /** Stable retry callback - emits the `retry` output; shared by the built-in button and the error slot context. */
542
696
  retryFn = () => this.retry.emit();
543
697
  /**
@@ -559,8 +713,12 @@ class CngxIncrementalList {
559
713
  errorContext = computed(() => ({ retry: this.retryFn, error: this.paginate.state()?.error() }), { ...(ngDevMode ? { debugName: "errorContext" } : /* istanbul ignore next */ {}), equal: (a, b) => a.retry === b.retry && a.error === b.error });
560
714
  /** `@for` track expression - delegates to the `trackBy` input (index by default). */
561
715
  trackItem = (index, item) => this.trackBy()(index, item);
716
+ /** Built-in row text without an item slot: numbers and dates in the locale. */
717
+ itemText(item) {
718
+ return formatDisplayValue(item, this.formatters());
719
+ }
562
720
  constructor() {
563
- // Two-way [(pageIndex)] / [(pageSize)] emit, shared verbatim with
721
+ // pageIndexChange / pageSizeChange emit, shared verbatim with
564
722
  // CngxPaginator through the connectPaginateEmit bridge.
565
723
  connectPaginateEmit(this.paginate, {
566
724
  onIndex: (index) => this.pageIndexChange.emit(index),
@@ -568,7 +726,7 @@ class CngxIncrementalList {
568
726
  });
569
727
  }
570
728
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxIncrementalList, deps: [], target: i0.ɵɵFactoryTarget.Component });
571
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxIncrementalList, isStandalone: true, selector: "cngx-incremental-list", inputs: { skin: { classPropertyName: "skin", publicName: "skin", isSignal: true, isRequired: false, transformFunction: null }, virtualize: { classPropertyName: "virtualize", publicName: "virtualize", isSignal: true, isRequired: false, transformFunction: null }, estimateSize: { classPropertyName: "estimateSize", publicName: "estimateSize", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageIndexChange: "pageIndexChange", pageSizeChange: "pageSizeChange", retry: "retry" }, host: { properties: { "attr.aria-busy": "paginate.isBusy()", "attr.data-skin": "skin()", "attr.data-virtualize": "virtualize() ? '' : null" }, classAttribute: "cngx-incremental-list" }, providers: [
729
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxIncrementalList, isStandalone: true, selector: "cngx-incremental-list", inputs: { skin: { classPropertyName: "skin", publicName: "skin", isSignal: true, isRequired: false, transformFunction: null }, virtualize: { classPropertyName: "virtualize", publicName: "virtualize", isSignal: true, isRequired: false, transformFunction: null }, estimateSize: { classPropertyName: "estimateSize", publicName: "estimateSize", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageIndexChange: "pageIndexChange", pageSizeChange: "pageSizeChange", retry: "retry" }, host: { properties: { "attr.data-skin": "skin()", "attr.data-virtualize": "virtualize() ? '' : null" }, classAttribute: "cngx-incremental-list" }, providers: [
572
730
  { provide: CNGX_PAGINATOR_HOST, useExisting: CngxPaginate },
573
731
  {
574
732
  // Route the recycler's SR i18n through the same config cascade the
@@ -579,17 +737,9 @@ class CngxIncrementalList {
579
737
  // owner of view-state (no double-announce). The no-state recycler branch
580
738
  // never calls filtered()/error() anyway.
581
739
  provide: CNGX_RECYCLER_I18N,
582
- useFactory: () => {
583
- const config = injectIncrementalListConfig();
584
- return {
585
- loaded: (count, total) => config.ariaLabels.loadedMore(count, total),
586
- filtered: () => '',
587
- empty: () => '',
588
- error: () => '',
589
- };
590
- },
740
+ useFactory: () => recyclerI18nFor(injectIncrementalListAriaLabels()),
591
741
  },
592
- ], queries: [{ propertyName: "itemSlot", first: true, predicate: CngxIncrementalItem, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "emptySlot", first: true, predicate: CngxIncrementalEmpty, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "errorSlot", first: true, predicate: CngxIncrementalError, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "endSlot", first: true, predicate: CngxIncrementalEnd, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "loadingSlot", first: true, predicate: CngxIncrementalLoading, descendants: true, read: TemplateRef, isSignal: true }], exportAs: ["cngxIncrementalList"], hostDirectives: [{ directive: i1.CngxPaginate, inputs: ["cngxPageIndex", "pageIndex", "cngxPageSize", "pageSize", "total", "total", "state", "state"] }], ngImport: i0, template: "@switch (view()) {\n @case ('skeleton') {\n @if (loadingTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-progress\n class=\"cngx-incremental-list__progress\"\n variant=\"linear\"\n [state]=\"paginate.state()\"\n [label]=\"loadingLabel()\"\n />\n }\n }\n @case ('empty') {\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-empty-state class=\"cngx-incremental-list__empty\" [title]=\"emptyLabel()\" />\n }\n }\n @case ('error') {\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n }\n @default {\n @if (virtualize()) {\n <cngx-incremental-virtualized-body\n [items]=\"items()\"\n [estimateSize]=\"estimateSize()\"\n [itemTemplate]=\"itemTemplate()\"\n [trackItem]=\"trackItem\"\n (focusEscaped)=\"handleFocusEscaped()\"\n />\n } @else {\n <ul class=\"cngx-incremental-list__items\" role=\"list\">\n @for (item of items(); track trackItem($index, item)) {\n <li class=\"cngx-incremental-list__item\">\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\"\n />\n } @else {\n {{ item }}\n }\n </li>\n }\n </ul>\n }\n @if (view() === 'content+error') {\n <!-- Subsequent-page failure: keep the accumulated list above visible and\n render a reachable retry, rather than silently swallowing the error. -->\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__inline-error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n } @else if (exhausted()) {\n @if (endTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <p class=\"cngx-incremental-list__message cngx-incremental-list__end\">{{ endLabel() }}</p>\n }\n } @else {\n <ng-content select=\"[cngxIncrementalTrigger]\" />\n }\n }\n}\n\n<ng-template #builtinError>\n <p class=\"cngx-incremental-list__error-text\">{{ errorViewLabel() }}</p>\n <button type=\"button\" class=\"cngx-incremental-list__retry\" (click)=\"retryFn()\">\n {{ retryLabel() }}\n </button>\n</ng-template>\n\n<span cngxLiveRegion class=\"cngx-incremental-list__sr\">{{ statusMessage() }}</span>\n", styles: ["@layer cngx.tokens{.cngx-incremental-list{display:block;--cngx-incremental-list-item-padding: var(--cngx-space-sm, .5rem);--cngx-incremental-list-message-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-error-gap: var(--cngx-space-sm, .5rem);--cngx-incremental-list-card-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-button-padding: var(--cngx-space-xs, .25rem) var(--cngx-space-md, 1rem);color:var(--cngx-incremental-list-text, var(--cngx-color-text, oklch(.2 .01 250)))}}@layer cngx.components{@scope(.cngx-incremental-list){.cngx-incremental-list__viewport{overflow-y:auto;max-block-size:var(--cngx-incremental-list-viewport-height, 60vh)}.cngx-incremental-list__items{margin:0;padding:0;list-style:none}.cngx-incremental-list__item{padding-block:var(--cngx-incremental-list-item-padding)}.cngx-incremental-list__message{margin:0;padding:var(--cngx-incremental-list-message-padding);text-align:center;color:var( --cngx-incremental-list-message-color, var(--cngx-color-text-muted, oklch(.5 .01 250)) )}.cngx-incremental-list__error,.cngx-incremental-list__inline-error{display:flex;flex-direction:column;align-items:center;gap:var(--cngx-incremental-list-error-gap);padding:var(--cngx-incremental-list-message-padding)}.cngx-incremental-list__inline-error{border-top:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}.cngx-incremental-list__error-text{margin:0;text-align:center;color:var(--cngx-incremental-list-error-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-incremental-list__retry{font:inherit;color:var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));background:transparent;padding:var(--cngx-incremental-list-button-padding);border:1px solid var(--cngx-incremental-list-button-border, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-button-radius, var(--cngx-radius-sm, 6px));cursor:pointer}.cngx-incremental-list__retry:hover{background:color-mix(in oklch,var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50))) 8%,transparent)}.cngx-incremental-list__retry:focus-visible{outline:2px solid var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));outline-offset:2px}.cngx-incremental-list__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}}@scope(.cngx-incremental-list[data-skin=divided]){.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card]){:scope{background:var(--cngx-incremental-list-surface, var(--cngx-color-surface, oklch(1 0 0)));border:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-radius, var(--cngx-radius-md, 8px));padding-inline:var(--cngx-incremental-list-card-padding);overflow:hidden}.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=divided][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}}\n"], dependencies: [{ kind: "component", type: CngxProgress, selector: "cngx-progress", inputs: ["state", "progress", "variant", "showLabel", "label"] }, { kind: "component", type: CngxEmptyState, selector: "cngx-empty-state", inputs: ["title", "description", "state"] }, { kind: "directive", type: CngxLiveRegion, selector: "[cngxLiveRegion]", inputs: ["politeness", "atomic", "relevant"], exportAs: ["cngxLiveRegion"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CngxIncrementalVirtualizedBody, selector: "cngx-incremental-virtualized-body", inputs: ["items", "estimateSize", "itemTemplate", "trackItem"], outputs: ["focusEscaped"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
742
+ ], queries: [{ propertyName: "itemSlot", first: true, predicate: CngxIncrementalItem, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "emptySlot", first: true, predicate: CngxIncrementalEmpty, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "errorSlot", first: true, predicate: CngxIncrementalError, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "endSlot", first: true, predicate: CngxIncrementalEnd, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "loadingSlot", first: true, predicate: CngxIncrementalLoading, descendants: true, read: TemplateRef, isSignal: true }], exportAs: ["cngxIncrementalList"], hostDirectives: [{ directive: i1.CngxPaginate, inputs: ["cngxPageIndex", "pageIndex", "cngxPageSize", "pageSize", "total", "total", "state", "state"] }], ngImport: i0, template: "@switch (view()) {\n @case ('skeleton') {\n @if (loadingTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-progress\n class=\"cngx-incremental-list__progress\"\n variant=\"linear\"\n [state]=\"paginate.state()\"\n [label]=\"loadingLabel()\"\n />\n }\n }\n @case ('empty') {\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-empty-state class=\"cngx-incremental-list__empty\" [title]=\"emptyLabel()\" />\n }\n }\n @case ('error') {\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n }\n @default {\n <!-- aria-busy scoped to the items container, not the host: the polite\n live region below must never sit inside a busy container, or every\n settle announcement is suppressed. -->\n @if (virtualize()) {\n <cngx-incremental-virtualized-body\n [attr.aria-busy]=\"paginate.isBusy() ? 'true' : null\"\n [items]=\"items()\"\n [estimateSize]=\"estimateSize()\"\n [itemTemplate]=\"itemTemplate()\"\n [trackItem]=\"trackItem\"\n (focusEscaped)=\"handleFocusEscaped()\"\n />\n } @else {\n <ul class=\"cngx-incremental-list__items\" role=\"list\" [attr.aria-busy]=\"paginate.isBusy() ? 'true' : null\">\n @for (item of items(); track trackItem($index, item)) {\n <li class=\"cngx-incremental-list__item\">\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\"\n />\n } @else {\n {{ itemText(item) }}\n }\n </li>\n }\n </ul>\n }\n @if (view() === 'content+error') {\n <!-- Subsequent-page failure: keep the accumulated list above visible and\n render a reachable retry, rather than silently swallowing the error. -->\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__inline-error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n } @else if (exhausted()) {\n @if (endTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <p class=\"cngx-incremental-list__message cngx-incremental-list__end\">{{ endLabel() }}</p>\n }\n } @else {\n <ng-content select=\"[cngxIncrementalTrigger]\" />\n }\n }\n}\n\n<ng-template #builtinError>\n <p class=\"cngx-incremental-list__error-text\">{{ errorViewLabel() }}</p>\n <button type=\"button\" class=\"cngx-incremental-list__retry\" (click)=\"retryFn()\">\n {{ retryLabel() }}\n </button>\n</ng-template>\n\n<span cngxLiveRegion class=\"cngx-incremental-list__sr\">{{ statusMessage() }}</span>\n", styles: ["@layer cngx.tokens{.cngx-incremental-list{display:block;--cngx-incremental-list-item-padding: var(--cngx-space-sm, .5rem);--cngx-incremental-list-message-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-error-gap: var(--cngx-space-sm, .5rem);--cngx-incremental-list-card-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-button-padding: var(--cngx-space-xs, .25rem) var(--cngx-space-md, 1rem);color:var(--cngx-incremental-list-text, var(--cngx-color-text, oklch(.2 .01 250)))}}@layer cngx.components{@scope(.cngx-incremental-list){.cngx-incremental-list__viewport{display:block;overflow-y:auto;max-block-size:var(--cngx-incremental-list-viewport-height, 60vh);overflow-anchor:none;position:relative}.cngx-incremental-list__items{margin:0;padding:0;list-style:none}.cngx-incremental-list__item{padding-block:var(--cngx-incremental-list-item-padding)}.cngx-incremental-list__message{margin:0;padding:var(--cngx-incremental-list-message-padding);text-align:center;color:var( --cngx-incremental-list-message-color, var(--cngx-color-text-muted, oklch(.5 .01 250)) )}.cngx-incremental-list__error,.cngx-incremental-list__inline-error{display:flex;flex-direction:column;align-items:center;gap:var(--cngx-incremental-list-error-gap);padding:var(--cngx-incremental-list-message-padding)}.cngx-incremental-list__inline-error{border-top:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}.cngx-incremental-list__error-text{margin:0;text-align:center;color:var(--cngx-incremental-list-error-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-incremental-list__retry{font:inherit;color:var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));background:transparent;padding:var(--cngx-incremental-list-button-padding);border:1px solid var(--cngx-incremental-list-button-border, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-button-radius, var(--cngx-radius-sm, 6px));min-block-size:var(--cngx-target-min, 0px);cursor:pointer}.cngx-incremental-list__retry:hover{background:color-mix(in oklch,var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50))) 8%,transparent)}.cngx-incremental-list__retry:focus-visible{outline:2px solid var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));outline-offset:2px}.cngx-incremental-list__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}}@scope(.cngx-incremental-list[data-skin=divided]){.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card]){:scope{background:var(--cngx-incremental-list-surface, var(--cngx-color-surface, oklch(1 0 0)));border:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-radius, var(--cngx-radius-md, 8px));padding-inline:var(--cngx-incremental-list-card-padding);overflow:hidden}.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=divided][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}}\n"], dependencies: [{ kind: "component", type: CngxProgress, selector: "cngx-progress", inputs: ["state", "progress", "variant", "showLabel", "label"] }, { kind: "component", type: CngxEmptyState, selector: "cngx-empty-state", inputs: ["title", "description", "state"] }, { kind: "directive", type: CngxLiveRegion, selector: "[cngxLiveRegion]", inputs: ["politeness", "atomic", "relevant"], exportAs: ["cngxLiveRegion"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CngxIncrementalVirtualizedBody, selector: "cngx-incremental-virtualized-body", inputs: ["items", "estimateSize", "itemTemplate", "trackItem"], outputs: ["focusEscaped"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
593
743
  }
594
744
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxIncrementalList, decorators: [{
595
745
  type: Component,
@@ -615,22 +765,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
615
765
  // owner of view-state (no double-announce). The no-state recycler branch
616
766
  // never calls filtered()/error() anyway.
617
767
  provide: CNGX_RECYCLER_I18N,
618
- useFactory: () => {
619
- const config = injectIncrementalListConfig();
620
- return {
621
- loaded: (count, total) => config.ariaLabels.loadedMore(count, total),
622
- filtered: () => '',
623
- empty: () => '',
624
- error: () => '',
625
- };
626
- },
768
+ useFactory: () => recyclerI18nFor(injectIncrementalListAriaLabels()),
627
769
  },
628
770
  ], host: {
629
771
  class: 'cngx-incremental-list',
630
- '[attr.aria-busy]': 'paginate.isBusy()',
631
772
  '[attr.data-skin]': 'skin()',
632
773
  '[attr.data-virtualize]': "virtualize() ? '' : null",
633
- }, template: "@switch (view()) {\n @case ('skeleton') {\n @if (loadingTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-progress\n class=\"cngx-incremental-list__progress\"\n variant=\"linear\"\n [state]=\"paginate.state()\"\n [label]=\"loadingLabel()\"\n />\n }\n }\n @case ('empty') {\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-empty-state class=\"cngx-incremental-list__empty\" [title]=\"emptyLabel()\" />\n }\n }\n @case ('error') {\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n }\n @default {\n @if (virtualize()) {\n <cngx-incremental-virtualized-body\n [items]=\"items()\"\n [estimateSize]=\"estimateSize()\"\n [itemTemplate]=\"itemTemplate()\"\n [trackItem]=\"trackItem\"\n (focusEscaped)=\"handleFocusEscaped()\"\n />\n } @else {\n <ul class=\"cngx-incremental-list__items\" role=\"list\">\n @for (item of items(); track trackItem($index, item)) {\n <li class=\"cngx-incremental-list__item\">\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\"\n />\n } @else {\n {{ item }}\n }\n </li>\n }\n </ul>\n }\n @if (view() === 'content+error') {\n <!-- Subsequent-page failure: keep the accumulated list above visible and\n render a reachable retry, rather than silently swallowing the error. -->\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__inline-error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n } @else if (exhausted()) {\n @if (endTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <p class=\"cngx-incremental-list__message cngx-incremental-list__end\">{{ endLabel() }}</p>\n }\n } @else {\n <ng-content select=\"[cngxIncrementalTrigger]\" />\n }\n }\n}\n\n<ng-template #builtinError>\n <p class=\"cngx-incremental-list__error-text\">{{ errorViewLabel() }}</p>\n <button type=\"button\" class=\"cngx-incremental-list__retry\" (click)=\"retryFn()\">\n {{ retryLabel() }}\n </button>\n</ng-template>\n\n<span cngxLiveRegion class=\"cngx-incremental-list__sr\">{{ statusMessage() }}</span>\n", styles: ["@layer cngx.tokens{.cngx-incremental-list{display:block;--cngx-incremental-list-item-padding: var(--cngx-space-sm, .5rem);--cngx-incremental-list-message-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-error-gap: var(--cngx-space-sm, .5rem);--cngx-incremental-list-card-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-button-padding: var(--cngx-space-xs, .25rem) var(--cngx-space-md, 1rem);color:var(--cngx-incremental-list-text, var(--cngx-color-text, oklch(.2 .01 250)))}}@layer cngx.components{@scope(.cngx-incremental-list){.cngx-incremental-list__viewport{overflow-y:auto;max-block-size:var(--cngx-incremental-list-viewport-height, 60vh)}.cngx-incremental-list__items{margin:0;padding:0;list-style:none}.cngx-incremental-list__item{padding-block:var(--cngx-incremental-list-item-padding)}.cngx-incremental-list__message{margin:0;padding:var(--cngx-incremental-list-message-padding);text-align:center;color:var( --cngx-incremental-list-message-color, var(--cngx-color-text-muted, oklch(.5 .01 250)) )}.cngx-incremental-list__error,.cngx-incremental-list__inline-error{display:flex;flex-direction:column;align-items:center;gap:var(--cngx-incremental-list-error-gap);padding:var(--cngx-incremental-list-message-padding)}.cngx-incremental-list__inline-error{border-top:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}.cngx-incremental-list__error-text{margin:0;text-align:center;color:var(--cngx-incremental-list-error-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-incremental-list__retry{font:inherit;color:var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));background:transparent;padding:var(--cngx-incremental-list-button-padding);border:1px solid var(--cngx-incremental-list-button-border, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-button-radius, var(--cngx-radius-sm, 6px));cursor:pointer}.cngx-incremental-list__retry:hover{background:color-mix(in oklch,var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50))) 8%,transparent)}.cngx-incremental-list__retry:focus-visible{outline:2px solid var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));outline-offset:2px}.cngx-incremental-list__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}}@scope(.cngx-incremental-list[data-skin=divided]){.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card]){:scope{background:var(--cngx-incremental-list-surface, var(--cngx-color-surface, oklch(1 0 0)));border:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-radius, var(--cngx-radius-md, 8px));padding-inline:var(--cngx-incremental-list-card-padding);overflow:hidden}.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=divided][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}}\n"] }]
774
+ }, template: "@switch (view()) {\n @case ('skeleton') {\n @if (loadingTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-progress\n class=\"cngx-incremental-list__progress\"\n variant=\"linear\"\n [state]=\"paginate.state()\"\n [label]=\"loadingLabel()\"\n />\n }\n }\n @case ('empty') {\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-empty-state class=\"cngx-incremental-list__empty\" [title]=\"emptyLabel()\" />\n }\n }\n @case ('error') {\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n }\n @default {\n <!-- aria-busy scoped to the items container, not the host: the polite\n live region below must never sit inside a busy container, or every\n settle announcement is suppressed. -->\n @if (virtualize()) {\n <cngx-incremental-virtualized-body\n [attr.aria-busy]=\"paginate.isBusy() ? 'true' : null\"\n [items]=\"items()\"\n [estimateSize]=\"estimateSize()\"\n [itemTemplate]=\"itemTemplate()\"\n [trackItem]=\"trackItem\"\n (focusEscaped)=\"handleFocusEscaped()\"\n />\n } @else {\n <ul class=\"cngx-incremental-list__items\" role=\"list\" [attr.aria-busy]=\"paginate.isBusy() ? 'true' : null\">\n @for (item of items(); track trackItem($index, item)) {\n <li class=\"cngx-incremental-list__item\">\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\"\n />\n } @else {\n {{ itemText(item) }}\n }\n </li>\n }\n </ul>\n }\n @if (view() === 'content+error') {\n <!-- Subsequent-page failure: keep the accumulated list above visible and\n render a reachable retry, rather than silently swallowing the error. -->\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__inline-error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n } @else if (exhausted()) {\n @if (endTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <p class=\"cngx-incremental-list__message cngx-incremental-list__end\">{{ endLabel() }}</p>\n }\n } @else {\n <ng-content select=\"[cngxIncrementalTrigger]\" />\n }\n }\n}\n\n<ng-template #builtinError>\n <p class=\"cngx-incremental-list__error-text\">{{ errorViewLabel() }}</p>\n <button type=\"button\" class=\"cngx-incremental-list__retry\" (click)=\"retryFn()\">\n {{ retryLabel() }}\n </button>\n</ng-template>\n\n<span cngxLiveRegion class=\"cngx-incremental-list__sr\">{{ statusMessage() }}</span>\n", styles: ["@layer cngx.tokens{.cngx-incremental-list{display:block;--cngx-incremental-list-item-padding: var(--cngx-space-sm, .5rem);--cngx-incremental-list-message-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-error-gap: var(--cngx-space-sm, .5rem);--cngx-incremental-list-card-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-button-padding: var(--cngx-space-xs, .25rem) var(--cngx-space-md, 1rem);color:var(--cngx-incremental-list-text, var(--cngx-color-text, oklch(.2 .01 250)))}}@layer cngx.components{@scope(.cngx-incremental-list){.cngx-incremental-list__viewport{display:block;overflow-y:auto;max-block-size:var(--cngx-incremental-list-viewport-height, 60vh);overflow-anchor:none;position:relative}.cngx-incremental-list__items{margin:0;padding:0;list-style:none}.cngx-incremental-list__item{padding-block:var(--cngx-incremental-list-item-padding)}.cngx-incremental-list__message{margin:0;padding:var(--cngx-incremental-list-message-padding);text-align:center;color:var( --cngx-incremental-list-message-color, var(--cngx-color-text-muted, oklch(.5 .01 250)) )}.cngx-incremental-list__error,.cngx-incremental-list__inline-error{display:flex;flex-direction:column;align-items:center;gap:var(--cngx-incremental-list-error-gap);padding:var(--cngx-incremental-list-message-padding)}.cngx-incremental-list__inline-error{border-top:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}.cngx-incremental-list__error-text{margin:0;text-align:center;color:var(--cngx-incremental-list-error-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-incremental-list__retry{font:inherit;color:var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));background:transparent;padding:var(--cngx-incremental-list-button-padding);border:1px solid var(--cngx-incremental-list-button-border, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-button-radius, var(--cngx-radius-sm, 6px));min-block-size:var(--cngx-target-min, 0px);cursor:pointer}.cngx-incremental-list__retry:hover{background:color-mix(in oklch,var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50))) 8%,transparent)}.cngx-incremental-list__retry:focus-visible{outline:2px solid var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));outline-offset:2px}.cngx-incremental-list__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}}@scope(.cngx-incremental-list[data-skin=divided]){.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card]){:scope{background:var(--cngx-incremental-list-surface, var(--cngx-color-surface, oklch(1 0 0)));border:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-radius, var(--cngx-radius-md, 8px));padding-inline:var(--cngx-incremental-list-card-padding);overflow:hidden}.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=divided][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}}\n"] }]
634
775
  }], ctorParameters: () => [], propDecorators: { skin: [{ type: i0.Input, args: [{ isSignal: true, alias: "skin", required: false }] }], virtualize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualize", required: false }] }], estimateSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "estimateSize", required: false }] }], pageIndexChange: [{ type: i0.Output, args: ["pageIndexChange"] }], pageSizeChange: [{ type: i0.Output, args: ["pageSizeChange"] }], retry: [{ type: i0.Output, args: ["retry"] }], trackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackBy", required: false }] }], itemSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxIncrementalItem), { ...{ read: TemplateRef }, isSignal: true }] }], emptySlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxIncrementalEmpty), { ...{ read: TemplateRef }, isSignal: true }] }], errorSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxIncrementalError), { ...{ read: TemplateRef }, isSignal: true }] }], endSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxIncrementalEnd), { ...{ read: TemplateRef }, isSignal: true }] }], loadingSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxIncrementalLoading), { ...{ read: TemplateRef }, isSignal: true }] }] } });
635
776
 
636
777
  /**
@@ -641,5 +782,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
641
782
  * Generated bundle index. Do not edit.
642
783
  */
643
784
 
644
- export { CNGX_INCREMENTAL_LIST_CONFIG, CNGX_INCREMENTAL_LIST_DEFAULTS, CngxIncrementalEmpty, CngxIncrementalEnd, CngxIncrementalError, CngxIncrementalItem, CngxIncrementalList, CngxIncrementalLoading, injectIncrementalListConfig, provideIncrementalListConfig, provideIncrementalListConfigAt, withIncrementalListAriaLabels, withIncrementalListTemplates };
785
+ export { CNGX_COLLECTION_LANGUAGE_EN, CNGX_INCREMENTAL_LIST_CONFIG, CngxIncrementalEmpty, CngxIncrementalEnd, CngxIncrementalError, CngxIncrementalItem, CngxIncrementalList, CngxIncrementalLoading, injectIncrementalListAriaLabels, injectIncrementalListConfig, provideIncrementalListConfig, provideIncrementalListConfigAt, withIncrementalListAriaLabels, withIncrementalListTemplates };
645
786
  //# sourceMappingURL=cngx-ui-collection.mjs.map