@cngx/ui 0.1.0-rc.7 → 0.1.0-rc.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/README.md +0 -1
  2. package/a11y/README.md +11 -5
  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 +227 -0
  7. package/data-grid-accordion/README.md +76 -2
  8. package/feedback/README.md +40 -0
  9. package/fesm2022/cngx-ui-a11y.mjs +189 -57
  10. package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
  11. package/fesm2022/cngx-ui-accordion.mjs +120 -36
  12. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  13. package/fesm2022/cngx-ui-action-button.mjs +121 -56
  14. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  15. package/fesm2022/cngx-ui-breadcrumb.mjs +228 -108
  16. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  17. package/fesm2022/cngx-ui-chart-panel.mjs +180 -23
  18. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
  19. package/fesm2022/cngx-ui-collection.mjs +204 -62
  20. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  21. package/fesm2022/cngx-ui-command-palette.mjs +395 -119
  22. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
  23. package/fesm2022/cngx-ui-context-menu.mjs +209 -40
  24. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
  25. package/fesm2022/cngx-ui-data-grid-accordion.mjs +498 -101
  26. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  27. package/fesm2022/cngx-ui-empty-state.mjs +16 -6
  28. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  29. package/fesm2022/cngx-ui-feedback.mjs +1074 -460
  30. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  31. package/fesm2022/cngx-ui-mat-accordion.mjs +76 -7
  32. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  33. package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
  34. package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
  35. package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
  36. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  37. package/fesm2022/cngx-ui-mat-tabs.mjs +555 -204
  38. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  39. package/fesm2022/cngx-ui-overlay.mjs +69 -13
  40. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  41. package/fesm2022/cngx-ui-paginator.mjs +553 -198
  42. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  43. package/fesm2022/cngx-ui-sidenav.mjs +344 -109
  44. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  45. package/fesm2022/cngx-ui-skeleton.mjs +4 -16
  46. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  47. package/fesm2022/cngx-ui-speak.mjs +107 -8
  48. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  49. package/fesm2022/cngx-ui-stat-card.mjs +146 -46
  50. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
  51. package/fesm2022/cngx-ui-stepper.mjs +234 -99
  52. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  53. package/fesm2022/cngx-ui-tabs.mjs +88 -25
  54. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  55. package/fesm2022/cngx-ui-timeline.mjs +98 -23
  56. package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
  57. package/fesm2022/cngx-ui-toc.mjs +101 -33
  58. package/fesm2022/cngx-ui-toc.mjs.map +1 -1
  59. package/fesm2022/cngx-ui.mjs +15 -20
  60. package/fesm2022/cngx-ui.mjs.map +1 -1
  61. package/mat-paginator/README.md +9 -2
  62. package/mat-tabs/README.md +30 -6
  63. package/mat-tabs/styles/mat-tabs.css +188 -42
  64. package/overlay/README.md +9 -4
  65. package/package.json +31 -7
  66. package/paginator/README.md +8 -4
  67. package/schematics/collection.json +9 -0
  68. package/schematics/ng-add/index.js +9 -0
  69. package/schematics/ng-add/schema.json +91 -0
  70. package/schematics/package.json +3 -0
  71. package/sidenav/README.md +33 -11
  72. package/speak/README.md +3 -2
  73. package/stepper/README.md +14 -2
  74. package/timeline/README.md +1 -1
  75. package/toc/README.md +4 -1
  76. package/types/cngx-ui-a11y.d.ts +121 -30
  77. package/types/cngx-ui-accordion.d.ts +100 -28
  78. package/types/cngx-ui-action-button.d.ts +44 -3
  79. package/types/cngx-ui-breadcrumb.d.ts +167 -60
  80. package/types/cngx-ui-chart-panel.d.ts +122 -18
  81. package/types/cngx-ui-collection.d.ts +157 -55
  82. package/types/cngx-ui-command-palette.d.ts +297 -183
  83. package/types/cngx-ui-context-menu.d.ts +140 -10
  84. package/types/cngx-ui-data-grid-accordion.d.ts +278 -39
  85. package/types/cngx-ui-empty-state.d.ts +9 -2
  86. package/types/cngx-ui-feedback.d.ts +605 -59
  87. package/types/cngx-ui-mat-accordion.d.ts +30 -1
  88. package/types/cngx-ui-mat-paginator.d.ts +37 -8
  89. package/types/cngx-ui-mat-stepper.d.ts +23 -11
  90. package/types/cngx-ui-mat-tabs.d.ts +250 -34
  91. package/types/cngx-ui-overlay.d.ts +56 -10
  92. package/types/cngx-ui-paginator.d.ts +425 -136
  93. package/types/cngx-ui-sidenav.d.ts +248 -74
  94. package/types/cngx-ui-skeleton.d.ts +6 -7
  95. package/types/cngx-ui-speak.d.ts +118 -5
  96. package/types/cngx-ui-stat-card.d.ts +117 -33
  97. package/types/cngx-ui-stepper.d.ts +88 -49
  98. package/types/cngx-ui-tabs.d.ts +6 -4
  99. package/types/cngx-ui-timeline.d.ts +35 -11
  100. package/types/cngx-ui-toc.d.ts +93 -16
  101. package/types/cngx-ui.d.ts +7 -4
@@ -1,10 +1,11 @@
1
1
  import { NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { computed, InjectionToken, inject, input, output, contentChild, isDevMode, afterNextRender, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { computed, untracked, InjectionToken, inject, input, output, contentChild, afterNextRender, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
4
4
  import { resolveAsyncView, createForwardedAsyncState } from '@cngx/common/data';
5
5
  import { injectTimelineConfig, CNGX_TIMELINE_GROUPING_FACTORY, CngxTimelineItemTpl, CngxTimelineDateHeader, CngxTimelineMarkerTpl, CngxTimelineEmpty, CngxTimelineError, CngxTimelineRetryButton, CngxTimelineLoadingTail, CngxTimelineSkeleton, CNGX_TIMELINE_MARKER_HOST } from '@cngx/common/timeline';
6
- import { nextUid, CNGX_STATEFUL } from '@cngx/core/utils';
6
+ import { coerceSignal, nextUid, injectLocale, CNGX_STATEFUL } from '@cngx/core/utils';
7
7
  import { CngxSkeletonContainer, CngxSkeletonPlaceholder } from '@cngx/ui/skeleton';
8
+ import { recordEqual, cngxDevWarn } from '@cngx/utils';
8
9
 
9
10
  /**
10
11
  * The family-standard three-stage template cascade, as one named concept:
@@ -59,12 +60,21 @@ function createTimelineSlots(queries, templates) {
59
60
  };
60
61
  }
61
62
 
63
+ /**
64
+ * @internal Shared empty bundle for a config without `labels`. One identity,
65
+ * so every `coerceSignal` over it resolves to the same cached source.
66
+ */
67
+ const TIMELINE_NO_LABELS = {};
62
68
  /**
63
69
  * Flattens the config's optional label bag into the exact set the template
64
70
  * reads, so the template names what it wants rather than indexing a keyed
65
71
  * accessor, and the optional-chaining lives in one place instead of at every
66
72
  * use site.
67
73
  *
74
+ * Returns a `Signal`: when the config's `labels` is a `Signal` (as it is once
75
+ * `withTimelineLabels` ran), the copy follows a runtime language switch. The
76
+ * bundle keeps its reference while the resolved strings stay equal.
77
+ *
68
78
  * `groupLabel` keeps the band's key as its own last resort: a consumer who
69
79
  * clears the formatter should still get a legible header rather than an
70
80
  * empty one that leaves the group unnamed.
@@ -73,15 +83,25 @@ function createTimelineSlots(queries, templates) {
73
83
  * @since 0.1.0
74
84
  */
75
85
  function createTimelineFallbackCopy(config) {
76
- const labels = config.labels;
77
- return {
78
- retry: labels?.retry ?? '',
79
- errorFallback: labels?.errorFallback ?? '',
80
- emptyFallback: labels?.emptyFallback ?? '',
81
- loading: labels?.loading ?? '',
82
- refreshing: labels?.refreshing ?? '',
83
- groupLabel: (group) => labels?.groupLabel?.(group) ?? group.key,
84
- };
86
+ const source = coerceSignal(config.labels ?? TIMELINE_NO_LABELS);
87
+ // The wrapper closure is rebuilt only when the consumer formatter itself
88
+ // changes, so an unrelated label flip keeps `groupLabel` reference-stable.
89
+ const formatter = computed(() => source().groupLabel, ...(ngDevMode ? [{ debugName: "formatter" }] : /* istanbul ignore next */ []));
90
+ const groupLabel = computed(() => {
91
+ const format = formatter();
92
+ return (group, locale) => format?.(group, locale) ?? group.key;
93
+ }, ...(ngDevMode ? [{ debugName: "groupLabel" }] : /* istanbul ignore next */ []));
94
+ return computed(() => {
95
+ const labels = source();
96
+ return {
97
+ retry: labels.retry ?? '',
98
+ errorFallback: labels.errorFallback ?? '',
99
+ emptyFallback: labels.emptyFallback ?? '',
100
+ loading: labels.loading ?? '',
101
+ refreshing: labels.refreshing ?? '',
102
+ groupLabel: groupLabel(),
103
+ };
104
+ }, { equal: recordEqual });
85
105
  }
86
106
 
87
107
  /**
@@ -100,6 +120,10 @@ function createTimelineFallbackCopy(config) {
100
120
  * - **Busy with an empty screen.** The lookup table resolves a non-first-load
101
121
  * `loading` or `pending` to `content`; with no rows that renders nothing at
102
122
  * all, so it is treated as a load instead. `refreshing` keeps its tail.
123
+ * - **First-load busy over seed rows.** The lookup table resolves a first
124
+ * load to `skeleton` unconditionally, but `[items]` documents seed rows as
125
+ * a legitimate companion to a bound state - rows that exist are painted,
126
+ * never hidden behind placeholders. `aria-busy` still marks the list.
103
127
  *
104
128
  * Swap the whole mapping through {@link CNGX_TIMELINE_VIEW_FACTORY} rather
105
129
  * than forking the organism - treating `pending` as content, or holding the
@@ -117,6 +141,12 @@ function createTimelineView(state, isEmpty, labels) {
117
141
  return empty ? 'empty' : 'content';
118
142
  }
119
143
  const view = resolveAsyncView(bound.status(), bound.isFirstLoad(), empty);
144
+ // A first load with seed rows on screen paints the rows: `[items]`
145
+ // documents seed-plus-state, and a skeleton over existing content would
146
+ // hide it. The busy window still reaches AT through `aria-busy`.
147
+ if (view === 'skeleton' && !empty) {
148
+ return 'content';
149
+ }
120
150
  // `loading` and `pending` that are not a first load resolve to `content`,
121
151
  // and with nothing to render that is a blank, silent region: no rows, no
122
152
  // tail, nothing announced. Work in flight with an empty screen is a load.
@@ -132,18 +162,21 @@ function createTimelineView(state, isEmpty, labels) {
132
162
  showsContent,
133
163
  refreshing,
134
164
  ariaBusy: computed(() => (state()?.isBusy() ? 'true' : null)),
165
+ // Copy is read untracked: a language switch never re-voices the region;
166
+ // the next view transition speaks the new language.
135
167
  announcement: computed(() => {
136
168
  const view = activeView();
137
169
  if (view === 'skeleton') {
138
- return labels.loading;
170
+ return untracked(() => labels().loading);
139
171
  }
140
- // The built-in error surface carries its own role="alert", but a bound
141
- // *cngxTimelineError replaces that markup wholesale. Announcing here
142
- // means the failure reaches AT whether or not the slot is bound.
172
+ // The single announcer for the failure: the built-in error surface
173
+ // carries no role="alert" (that would double-fire on top of this
174
+ // region), so the fallback reaches AT here whether the built-in markup
175
+ // or a bound *cngxTimelineError renders.
143
176
  if (view === 'error' || view === 'content+error') {
144
- return labels.errorFallback;
177
+ return untracked(() => labels().errorFallback);
145
178
  }
146
- return refreshing() ? labels.refreshing : '';
179
+ return refreshing() ? untracked(() => labels().refreshing) : '';
147
180
  }),
148
181
  };
149
182
  }
@@ -236,10 +269,14 @@ const CNGX_TIMELINE_VIEW_FACTORY = new InjectionToken('CNGX_TIMELINE_VIEW_FACTOR
236
269
  * <example-url>http://localhost:4200/#/ui/timeline/async/error-retry</example-url>
237
270
  * <example-url>http://localhost:4200/#/ui/timeline/async/refreshing-tail</example-url>
238
271
  * <example-url>http://localhost:4200/#/ui/timeline/skins/activity-vs-narrative</example-url>
272
+ * <example-url>http://localhost:4200/#/ui/timeline/skins/dark</example-url>
239
273
  * @since 0.1.0
240
274
  */
241
275
  class CngxTimeline {
242
276
  config = injectTimelineConfig();
277
+ // Same cached source `createTimelineFallbackCopy` resolves (coerceSignal is
278
+ // identity-keyed), read here for the raw `timelineRegion`.
279
+ configLabels = coerceSignal(this.config.labels ?? TIMELINE_NO_LABELS);
243
280
  groupingFactory = inject(CNGX_TIMELINE_GROUPING_FACTORY);
244
281
  uid = nextUid('cngx-timeline');
245
282
  /**
@@ -326,6 +363,7 @@ class CngxTimeline {
326
363
  dateAccessor: (item) => this.dateAccessor()(item),
327
364
  groupBy: this.groupBy,
328
365
  direction: this.direction,
366
+ locale: () => this.locale(),
329
367
  });
330
368
  /** The derived bands, in sort order. */
331
369
  groups = this.grouping.groups;
@@ -357,8 +395,24 @@ class CngxTimeline {
357
395
  asyncState = createForwardedAsyncState(this.state);
358
396
  /** @internal Fallback copy for every surface with no slot bound. */
359
397
  labels = createTimelineFallbackCopy(this.config);
398
+ locale = injectLocale();
399
+ // Narrowed so an unrelated label change (retry, loading) leaves the header
400
+ // formatter, which only depends on `groupLabel` and the locale, untouched.
401
+ groupFormatter = computed(() => this.labels().groupLabel, ...(ngDevMode ? [{ debugName: "groupFormatter" }] : /* istanbul ignore next */ []));
402
+ /**
403
+ * @internal Group header formatter: `labels.groupLabel` bound to the live
404
+ * app locale, so a `CNGX_LOCALE` flip re-formats the headers.
405
+ */
406
+ groupHeaderLabel = computed(() => {
407
+ const format = this.groupFormatter();
408
+ const locale = this.locale();
409
+ return (group) => format(group, locale);
410
+ }, ...(ngDevMode ? [{ debugName: "groupHeaderLabel" }] : /* istanbul ignore next */ []));
360
411
  /** @internal The body switch, the busy flag and the live-region text. */
361
- view = inject(CNGX_TIMELINE_VIEW_FACTORY)(this.state, () => this.groups().length === 0, this.labels);
412
+ // Empty from the items, not the bands: every item lands in a band (invalid
413
+ // dates included), and the bands re-split on a locale switch, which must not
414
+ // reach the live region.
415
+ view = inject(CNGX_TIMELINE_VIEW_FACTORY)(this.state, () => this.resolvedItems().length === 0, this.labels);
362
416
  activeView = this.view.activeView;
363
417
  showsContent = this.view.showsContent;
364
418
  refreshing = this.view.refreshing;
@@ -379,7 +433,7 @@ class CngxTimeline {
379
433
  /** @internal The rows are the list, so it owns only `listitem` children. */
380
434
  rowsRole = computed(() => (this.ungrouped() ? 'presentation' : 'list'), ...(ngDevMode ? [{ debugName: "rowsRole" }] : /* istanbul ignore next */ []));
381
435
  /** @internal Config fallback only applies when nothing was named explicitly. */
382
- listLabel = computed(() => this.ariaLabelledBy() ? null : (this.ariaLabel() ?? this.config.labels?.timelineRegion ?? null), ...(ngDevMode ? [{ debugName: "listLabel" }] : /* istanbul ignore next */ []));
436
+ listLabel = computed(() => this.ariaLabelledBy() ? null : (this.ariaLabel() ?? this.configLabels().timelineRegion ?? null), ...(ngDevMode ? [{ debugName: "listLabel" }] : /* istanbul ignore next */ []));
383
437
  /** @internal A group is named by its own header element, keyed on position. */
384
438
  groupLabelId(index) {
385
439
  return `${this.uid}-group-${index}`;
@@ -416,16 +470,37 @@ class CngxTimeline {
416
470
  }
417
471
  return index % 2 === 0 ? 'start' : 'end';
418
472
  }
473
+ /**
474
+ * One context per skeleton row, rebuilt only when the row count or the
475
+ * side rule changes, so the slot outlet sees a stable object per pass.
476
+ */
477
+ skeletonContexts = computed(() => {
478
+ const count = this.skeletonRowCount();
479
+ return Array.from({ length: count }, (_, index) => ({
480
+ $implicit: index,
481
+ index,
482
+ count,
483
+ side: this.rowSide(index),
484
+ }));
485
+ }, ...(ngDevMode ? [{ debugName: "skeletonContexts" }] : /* istanbul ignore next */ []));
486
+ /** @internal Context of a consumer `*cngxTimelineSkeleton` row. */
487
+ skeletonContext(index, count) {
488
+ const cached = this.skeletonContexts()[index];
489
+ if (cached?.count === count) {
490
+ return cached;
491
+ }
492
+ return { $implicit: index, index, count, side: this.rowSide(index) };
493
+ }
419
494
  /** @internal Track by consumer identity when given, else by reference. */
420
495
  trackItem = (index, item) => this.idAccessor()?.(item) ?? item;
421
496
  constructor() {
422
- if (isDevMode()) {
497
+ if (typeof ngDevMode !== 'undefined' && ngDevMode) {
423
498
  // afterNextRender, not an effect: this is a one-shot authoring check,
424
499
  // and a dead node in the reactive graph is worse than a missed
425
500
  // re-check after a runtime mode swap nobody does.
426
501
  afterNextRender(() => {
427
502
  if (this.mode() === 'activity' && this.placement() === 'alternate') {
428
- console.warn('[cngx-timeline] placement="alternate" is ignored in mode="activity" - ' +
503
+ cngxDevWarn('CNGX3013', '[cngx-timeline] placement="alternate" is ignored in mode="activity" - ' +
429
504
  'alternating a scan-feed defeats the scan, so every row renders at the ' +
430
505
  'start side. Use mode="narrative" to alternate.');
431
506
  }
@@ -449,7 +524,7 @@ class CngxTimeline {
449
524
  state: inject(CngxTimeline).asyncState,
450
525
  }),
451
526
  },
452
- ], queries: [{ propertyName: "itemSlot", first: true, predicate: CngxTimelineItemTpl, descendants: true, isSignal: true }, { propertyName: "dateHeaderSlot", first: true, predicate: CngxTimelineDateHeader, descendants: true, isSignal: true }, { propertyName: "markerSlot", first: true, predicate: CngxTimelineMarkerTpl, descendants: true, isSignal: true }, { propertyName: "emptySlot", first: true, predicate: CngxTimelineEmpty, descendants: true, isSignal: true }, { propertyName: "errorSlot", first: true, predicate: CngxTimelineError, descendants: true, isSignal: true }, { propertyName: "retryButtonSlot", first: true, predicate: CngxTimelineRetryButton, descendants: true, isSignal: true }, { propertyName: "loadingTailSlot", first: true, predicate: CngxTimelineLoadingTail, descendants: true, isSignal: true }, { propertyName: "skeletonSlot", first: true, predicate: CngxTimelineSkeleton, descendants: true, isSignal: true }], ngImport: i0, template: "@switch (activeView()) {\n @case ('skeleton') {\n <!-- The container owns show-delay and min-dwell, so a fast load never\n flashes and the timeline holds no latency logic. The placeholder\n reuses the item raster, so the swap to content cannot reflow. -->\n <!-- The class carries no rule on purpose: `<cngx-skeleton>` hosts itself\n with `display: contents` and has no box to style. It is the hook that\n makes the loading branch addressable from outside - tests and\n consumer overrides have nothing else to select on. -->\n <!-- [loading], not [state]: the container derives first-load from a bound\n state and would refuse to draw on a refetch that has nothing on\n screen, which is exactly the branch this case exists for. Reaching\n this branch at all IS the decision that a placeholder belongs here -\n activeView() already made it - so the flag is true by construction\n and the container is left owning only show-delay and min-dwell. -->\n <cngx-skeleton class=\"cngx-timeline__skeleton\" [loading]=\"true\" [count]=\"skeletonRowCount()\">\n <!-- let-index: the container has passed index/count/first/last into\n this template all along, the timeline just never read it. The\n built-in placeholder needs the per-row index to land on the same\n sides the content will, so the swap does not reflow under\n placement=\"end\" / \"alternate\". A consumer-supplied\n *cngxTimelineSkeleton is still outletted without context, which is\n unchanged and tracked. -->\n <ng-template cngxSkeletonPlaceholder let-index=\"index\">\n <!-- aria-hidden on the wrapper, not on the branches: whatever a\n consumer supplies is decoration too, and the load is announced\n through the live region at the bottom of this template. -->\n <div aria-hidden=\"true\">\n @if (skeletonTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n } @else {\n <!-- Own classes, not the row's. `CngxTimelineItem` is never\n imported here, so on a cold first load its Track-A stylesheet\n is not in the document yet and borrowed classes would render\n unstyled - on the one path the skeleton exists to cover. -->\n <div class=\"cngx-timeline__skeleton-row\" [attr.data-row-side]=\"rowSide(index)\">\n <span class=\"cngx-timeline__skeleton-marker\"></span>\n <span class=\"cngx-timeline__skeleton-rail\"></span>\n <div class=\"cngx-timeline__skeleton-body\">\n <span class=\"cngx-timeline__skeleton-line\"></span>\n <span\n class=\"cngx-timeline__skeleton-line cngx-timeline__skeleton-line--short\"\n ></span>\n </div>\n </div>\n }\n </div>\n </ng-template>\n </cngx-skeleton>\n }\n\n @case ('empty') {\n <div class=\"cngx-timeline__empty\">\n @if (emptyTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: emptyReason() }\" />\n } @else {\n {{ labels.emptyFallback }}\n }\n </div>\n }\n\n @case ('error') {\n <ng-container *ngTemplateOutlet=\"errorSurface\" />\n }\n}\n\n@if (showsContent() && groups().length) {\n <!-- aria-busy belongs on the element that owns the content, not on the\n role-less host, where AT would never read it. -->\n <div\n class=\"cngx-timeline__list\"\n [attr.role]=\"containerRole()\"\n [attr.aria-busy]=\"ariaBusy()\"\n [attr.aria-label]=\"listLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @for (group of groups(); track group.key) {\n <!-- Three elements per band, not two, and the middle one is why: a\n list may own nothing but listitems, so the header cannot sit\n inside it. The header is a consumer slot and the documented\n example is an <h3> - a real role, which axe rejects as a child of\n role=\"list\". So the band wrapper stays generic, the header sits\n beside the rows, and only the rows carry the list role. The rows\n element is what the header names, and what v2 wraps in a\n <details role=\"group\">.\n\n Ungrouped drops both wrappers to presentation rather than to no\n role at all: a generic div between the list and its rows still\n owns them and breaks listitem's required context - display:\n contents fixes the box tree, not this.\n\n The label id is keyed on $index, not on group.key: a custom\n TimelineGroupingFn is free to return \"today / this week / earlier\",\n and whitespace in an id makes this reference resolve to nothing,\n leaving the band unnamed. -->\n <div class=\"cngx-timeline__group\" [attr.role]=\"wrapperRole()\">\n @if (!ungrouped()) {\n <div class=\"cngx-timeline__date-header\" [id]=\"groupLabelId($index)\">\n @if (dateHeaderTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: group }\" />\n } @else {\n {{ labels.groupLabel(group) }}\n }\n </div>\n }\n\n <div\n class=\"cngx-timeline__rows\"\n [attr.role]=\"rowsRole()\"\n [attr.aria-labelledby]=\"ungrouped() ? null : groupLabelId($index)\"\n >\n @for (item of group.items; track trackItem($index, item)) {\n <!-- The side comes from the loop index, not from :nth-child: a\n filtered list has to alternate by its position in the run\n that is actually rendered, and the row stylesheet reads the\n attribute off an ancestor exactly like [data-mode]. -->\n <div class=\"cngx-timeline__item\" role=\"listitem\" [attr.data-row-side]=\"rowSide($index)\">\n @if (itemTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: itemContext(item, $index, group)\" />\n }\n </div>\n }\n </div>\n </div>\n }\n </div>\n}\n\n<!-- A refresh keeps the loaded rows on screen, so this tail is the only visible\n sign anything is happening. Outside the list, so it never reads as an\n event of its own. Decorative: the announcement is the live region below,\n which stays in the DOM whether or not there is anything to say. -->\n@if (refreshing()) {\n <div class=\"cngx-timeline__tail\" aria-hidden=\"true\">\n @if (loadingTailTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n } @else {\n {{ labels.refreshing }}\n }\n </div>\n}\n\n@if (activeView() === 'content+error') {\n <ng-container *ngTemplateOutlet=\"errorSurface\" />\n}\n\n<!-- Always in the DOM, content reactive - a region created together with its\n message is announced inconsistently or not at all. Empty whenever the\n timeline has nothing to report. -->\n<span aria-live=\"polite\" aria-atomic=\"true\" class=\"cngx-timeline__sr-only\">\n {{ announcement() }}\n</span>\n\n<ng-template #errorSurface>\n <div class=\"cngx-timeline__error\">\n @if (errorTpl(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: state()?.error(), retry: emitRetry }\"\n />\n } @else {\n <!-- The alert is the message alone. Wrapping the retry control in it\n too would re-announce the button on every mutation of the region. -->\n <p class=\"cngx-timeline__error-message\" role=\"alert\">{{ labels.errorFallback }}</p>\n @if (retryButtonTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: emitRetry }\" />\n } @else {\n <button class=\"cngx-timeline__retry\" type=\"button\" (click)=\"emitRetry()\">\n {{ labels.retry }}\n </button>\n }\n }\n </div>\n</ng-template>\n", styles: ["@layer cngx.tokens{@property --cngx-timeline-item-gap{syntax: \"<length>\"; inherits: true; initial-value: 16px;}@property --cngx-timeline-group-gap{syntax: \"<length>\"; inherits: true; initial-value: 24px;}@property --cngx-timeline-surface-padding{syntax: \"<length>\"; inherits: true; initial-value: 4px;}@property --cngx-timeline-skeleton-line-size{syntax: \"<length>\"; inherits: true; initial-value: 12px;}}@layer cngx.components{@scope(.cngx-timeline){:scope{--cngx-timeline-item-gap: var(--cngx-space-md, 16px);--cngx-timeline-group-gap: var(--cngx-space-lg, 24px);--cngx-timeline-surface-padding: var(--cngx-space-xs, 4px);--cngx-timeline-gap: var(--cngx-space-sm, 8px);--cngx-timeline-row-gap: var(--cngx-space-xs, 4px);display:block;container-type:inline-size;container-name:cngx-timeline;color:var(--cngx-timeline-text-color, oklch(.2 .01 250))}.cngx-timeline__list{display:flex;flex-direction:column;gap:var(--cngx-timeline-group-gap, 24px)}.cngx-timeline__group,.cngx-timeline__rows{display:flex;flex-direction:column;gap:var(--cngx-timeline-item-gap, 16px)}.cngx-timeline__date-header{color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem);font-weight:600;line-height:1.4}.cngx-timeline__item{display:block}:scope[data-ungrouped] .cngx-timeline__group,:scope[data-ungrouped] .cngx-timeline__rows{display:contents}:scope[data-ungrouped] .cngx-timeline__list{gap:var(--cngx-timeline-item-gap, 16px)}.cngx-timeline__empty,.cngx-timeline__error,.cngx-timeline__tail{padding:var(--cngx-timeline-surface-padding, 4px)}.cngx-timeline__empty,.cngx-timeline__tail{color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem)}.cngx-timeline__sr-only{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.cngx-timeline__error-message{margin:0 0 var(--cngx-timeline-item-gap, 16px);color:var(--cngx-timeline-rejected-color, oklch(.6 .18 25))}.cngx-timeline__skeleton-row{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:\"marker line\" \"rail body\";column-gap:var(--cngx-timeline-gap, 8px);row-gap:var(--cngx-timeline-row-gap, 4px)}.cngx-timeline__skeleton-row+.cngx-timeline__skeleton-row{margin-block-start:var(--cngx-timeline-item-gap, 16px)}.cngx-timeline__skeleton-row[data-row-side=end]{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:\"line marker\" \"body rail\"}:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"opposite marker line\" \"opposite rail body\"}:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row[data-row-side=end]{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"line marker opposite\" \"body rail opposite\"}:scope[data-orientation=horizontal]{overflow-x:auto}:scope[data-orientation=horizontal] .cngx-timeline__list{flex-direction:row;align-items:start}:scope[data-orientation=horizontal] .cngx-timeline__group{flex:none}:scope[data-orientation=horizontal] .cngx-timeline__rows{flex-direction:row;align-items:stretch}:scope[data-orientation=horizontal] .cngx-timeline__skeleton{display:flex;flex-direction:row;gap:var(--cngx-timeline-item-gap, 16px)}:scope[data-orientation=horizontal] .cngx-timeline__skeleton-row{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:\"marker rail\" \"line line\" \"body body\";inline-size:12rem}:scope[data-orientation=horizontal] .cngx-timeline__skeleton-row+.cngx-timeline__skeleton-row{margin-block-start:0}:scope[data-orientation=horizontal] .cngx-timeline__skeleton-rail{inline-size:100%;block-size:var(--cngx-timeline-connector-width, 2px);align-self:center;justify-self:stretch}@container cngx-timeline (max-inline-size: 32rem){:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row,:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row[data-row-side=end]{grid-template-columns:auto minmax(0,1fr);grid-template-areas:\"marker line\" \"rail body\"}}.cngx-timeline__skeleton-marker,.cngx-timeline__skeleton-rail{background:color-mix(in oklch,currentColor 14%,transparent)}.cngx-timeline__skeleton-marker{grid-area:marker;inline-size:var(--cngx-timeline-marker-size, 12px);block-size:var(--cngx-timeline-marker-size, 12px);border-radius:50%}.cngx-timeline__skeleton-rail{grid-area:rail;inline-size:var(--cngx-timeline-connector-width, 2px);block-size:100%;justify-self:center}.cngx-timeline__skeleton-body{grid-area:body;padding:var(--cngx-timeline-surface-padding, 4px);min-inline-size:0}.cngx-timeline__skeleton-line{display:block;block-size:var(--cngx-timeline-skeleton-line-size, 12px);border-radius:var(--cngx-radius-sm, 4px);background:color-mix(in oklch,currentColor 14%,transparent)}.cngx-timeline__skeleton-line+.cngx-timeline__skeleton-line{margin-block-start:var(--cngx-timeline-row-gap, 4px)}.cngx-timeline__skeleton-line--short{inline-size:60%}}.cngx-timeline[data-skin=card] .cngx-timeline-item__body{background:var(--cngx-timeline-surface, oklch(1 0 0));border:var(--cngx-timeline-connector-width, 2px) solid var(--cngx-timeline-connector-color, oklch(.88 .005 250));border-radius:var(--cngx-radius-md, 8px);padding:var(--cngx-timeline-content-padding, 4px)}.cngx-timeline[data-skin=bands] .cngx-timeline__group:nth-of-type(2n){background:color-mix(in oklch,currentColor 4%,transparent);border-radius:var(--cngx-radius-md, 8px);padding:var(--cngx-timeline-surface-padding, 4px)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CngxSkeletonContainer, selector: "cngx-skeleton", inputs: ["loading", "state", "shimmer", "count", "showDelay", "minDwell"], exportAs: ["cngxSkeletonContainer"] }, { kind: "directive", type: CngxSkeletonPlaceholder, selector: "ng-template[cngxSkeletonPlaceholder]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
527
+ ], queries: [{ propertyName: "itemSlot", first: true, predicate: CngxTimelineItemTpl, descendants: true, isSignal: true }, { propertyName: "dateHeaderSlot", first: true, predicate: CngxTimelineDateHeader, descendants: true, isSignal: true }, { propertyName: "markerSlot", first: true, predicate: CngxTimelineMarkerTpl, descendants: true, isSignal: true }, { propertyName: "emptySlot", first: true, predicate: CngxTimelineEmpty, descendants: true, isSignal: true }, { propertyName: "errorSlot", first: true, predicate: CngxTimelineError, descendants: true, isSignal: true }, { propertyName: "retryButtonSlot", first: true, predicate: CngxTimelineRetryButton, descendants: true, isSignal: true }, { propertyName: "loadingTailSlot", first: true, predicate: CngxTimelineLoadingTail, descendants: true, isSignal: true }, { propertyName: "skeletonSlot", first: true, predicate: CngxTimelineSkeleton, descendants: true, isSignal: true }], ngImport: i0, template: "@switch (activeView()) {\n @case ('skeleton') {\n <!-- The container owns show-delay and min-dwell, so a fast load never\n flashes and the timeline holds no latency logic. The placeholder\n reuses the item raster, so the swap to content cannot reflow. -->\n <!-- The class carries no rule on purpose: `<cngx-skeleton>` hosts itself\n with `display: contents` and has no box to style. It is the hook that\n makes the loading branch addressable from outside - tests and\n consumer overrides have nothing else to select on. -->\n <!-- [loading], not [state]: the container derives first-load from a bound\n state and would refuse to draw on a refetch that has nothing on\n screen, which is exactly the branch this case exists for. Reaching\n this branch at all IS the decision that a placeholder belongs here -\n activeView() already made it - so the flag is true by construction\n and the container is left owning only show-delay and min-dwell. -->\n <cngx-skeleton class=\"cngx-timeline__skeleton\" [loading]=\"true\" [count]=\"skeletonRowCount()\">\n <!-- The container passes index/count into this template. Both the\n built-in placeholder and a consumer *cngxTimelineSkeleton need the\n per-row index to land on the same sides the content will, so the\n swap does not reflow under placement=\"end\" / \"alternate\". -->\n <ng-template cngxSkeletonPlaceholder let-index=\"index\" let-count=\"count\">\n <!-- aria-hidden on the wrapper, not on the branches: whatever a\n consumer supplies is decoration too, and the load is announced\n through the live region at the bottom of this template. -->\n <div aria-hidden=\"true\">\n @if (skeletonTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: skeletonContext(index, count)\" />\n } @else {\n <!-- Own classes, not the row's. `CngxTimelineItem` is never\n imported here, so on a cold first load its Track-A stylesheet\n is not in the document yet and borrowed classes would render\n unstyled - on the one path the skeleton exists to cover. -->\n <div class=\"cngx-timeline__skeleton-row\" [attr.data-row-side]=\"rowSide(index)\">\n <span class=\"cngx-timeline__skeleton-marker\"></span>\n <span class=\"cngx-timeline__skeleton-rail\"></span>\n <div class=\"cngx-timeline__skeleton-body\">\n <span class=\"cngx-timeline__skeleton-line\"></span>\n <span\n class=\"cngx-timeline__skeleton-line cngx-timeline__skeleton-line--short\"\n ></span>\n </div>\n </div>\n }\n </div>\n </ng-template>\n </cngx-skeleton>\n }\n\n @case ('empty') {\n <div class=\"cngx-timeline__empty\">\n @if (emptyTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: emptyReason() }\" />\n } @else {\n {{ labels().emptyFallback }}\n }\n </div>\n }\n\n @case ('error') {\n <ng-container *ngTemplateOutlet=\"errorSurface\" />\n }\n}\n\n@if (showsContent() && groups().length) {\n <!-- aria-busy belongs on the element that owns the content, not on the\n role-less host, where AT would never read it. -->\n <div\n class=\"cngx-timeline__list\"\n [attr.role]=\"containerRole()\"\n [attr.aria-busy]=\"ariaBusy()\"\n [attr.aria-label]=\"listLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @for (group of groups(); track group.key) {\n <!-- Three elements per band, not two, and the middle one is why: a\n list may own nothing but listitems, so the header cannot sit\n inside it. The header is a consumer slot and the documented\n example is an <h3> - a real role, which axe rejects as a child of\n role=\"list\". So the band wrapper stays generic, the header sits\n beside the rows, and only the rows carry the list role. The rows\n element is what the header names, and what v2 wraps in a\n <details role=\"group\">.\n\n Ungrouped drops both wrappers to presentation rather than to no\n role at all: a generic div between the list and its rows still\n owns them and breaks listitem's required context - display:\n contents fixes the box tree, not this.\n\n The label id is keyed on $index, not on group.key: a custom\n TimelineGroupingFn is free to return \"today / this week / earlier\",\n and whitespace in an id makes this reference resolve to nothing,\n leaving the band unnamed. -->\n <div class=\"cngx-timeline__group\" [attr.role]=\"wrapperRole()\">\n @if (!ungrouped()) {\n <div class=\"cngx-timeline__date-header\" [id]=\"groupLabelId($index)\">\n @if (dateHeaderTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: group }\" />\n } @else {\n {{ groupHeaderLabel()(group) }}\n }\n </div>\n }\n\n <div\n class=\"cngx-timeline__rows\"\n [attr.role]=\"rowsRole()\"\n [attr.aria-labelledby]=\"ungrouped() ? null : groupLabelId($index)\"\n >\n @for (item of group.items; track trackItem($index, item)) {\n <!-- The side comes from the loop index, not from :nth-child: a\n filtered list has to alternate by its position in the run\n that is actually rendered, and the row stylesheet reads the\n attribute off an ancestor exactly like [data-mode]. -->\n <div class=\"cngx-timeline__item\" role=\"listitem\" [attr.data-row-side]=\"rowSide($index)\">\n @if (itemTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: itemContext(item, $index, group)\" />\n }\n </div>\n }\n </div>\n </div>\n }\n </div>\n}\n\n<!-- A refresh keeps the loaded rows on screen, so this tail is the only visible\n sign anything is happening. Outside the list, so it never reads as an\n event of its own. Decorative: the announcement is the live region below,\n which stays in the DOM whether or not there is anything to say. -->\n@if (refreshing()) {\n <div class=\"cngx-timeline__tail\" aria-hidden=\"true\">\n @if (loadingTailTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n } @else {\n {{ labels().refreshing }}\n }\n </div>\n}\n\n@if (activeView() === 'content+error') {\n <ng-container *ngTemplateOutlet=\"errorSurface\" />\n}\n\n<!-- Always in the DOM, content reactive - a region created together with its\n message is announced inconsistently or not at all. Empty whenever the\n timeline has nothing to report. -->\n<span aria-live=\"polite\" aria-atomic=\"true\" class=\"cngx-timeline__sr-only\">\n {{ announcement() }}\n</span>\n\n<ng-template #errorSurface>\n <div class=\"cngx-timeline__error\">\n @if (errorTpl(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: state()?.error(), retry: emitRetry }\"\n />\n } @else {\n <!-- No role=\"alert\" here: the polite region below is the single\n announcer for every view transition, error included - an alert on\n top of it would double-fire the same fallback. -->\n <p class=\"cngx-timeline__error-message\">{{ labels().errorFallback }}</p>\n @if (retryButtonTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: emitRetry }\" />\n } @else {\n <button class=\"cngx-timeline__retry\" type=\"button\" (click)=\"emitRetry()\">\n {{ labels().retry }}\n </button>\n }\n }\n </div>\n</ng-template>\n", styles: ["@layer cngx.tokens{@property --cngx-timeline-item-gap{syntax: \"<length>\"; inherits: true; initial-value: 16px;}@property --cngx-timeline-group-gap{syntax: \"<length>\"; inherits: true; initial-value: 24px;}@property --cngx-timeline-surface-padding{syntax: \"<length>\"; inherits: true; initial-value: 4px;}@property --cngx-timeline-skeleton-line-size{syntax: \"<length>\"; inherits: true; initial-value: 12px;}}@layer cngx.components{@scope(.cngx-timeline){:scope{--cngx-timeline-item-gap: var(--cngx-space-md, 16px);--cngx-timeline-group-gap: var(--cngx-space-lg, 24px);--cngx-timeline-surface-padding: var(--cngx-space-xs, 4px);--cngx-timeline-gap: var(--cngx-space-sm, 8px);--cngx-timeline-row-gap: var(--cngx-space-xs, 4px);display:block;container-type:inline-size;container-name:cngx-timeline;color:var(--cngx-timeline-text-color, oklch(.2 .01 250))}.cngx-timeline__list{display:flex;flex-direction:column;gap:var(--cngx-timeline-group-gap, 24px)}.cngx-timeline__group,.cngx-timeline__rows{display:flex;flex-direction:column;gap:var(--cngx-timeline-item-gap, 16px)}.cngx-timeline__date-header{color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem);font-weight:600;line-height:1.4}.cngx-timeline__item{display:block}:scope[data-ungrouped] .cngx-timeline__group,:scope[data-ungrouped] .cngx-timeline__rows{display:contents}:scope[data-ungrouped] .cngx-timeline__list{gap:var(--cngx-timeline-item-gap, 16px)}.cngx-timeline__empty,.cngx-timeline__error,.cngx-timeline__tail{padding:var(--cngx-timeline-surface-padding, 4px)}.cngx-timeline__empty,.cngx-timeline__tail{color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem)}.cngx-timeline__sr-only{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.cngx-timeline__error-message{margin:0 0 var(--cngx-timeline-item-gap, 16px);color:var(--cngx-timeline-rejected-color, oklch(.6 .18 25))}.cngx-timeline__skeleton-row{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:\"marker line\" \"rail body\";column-gap:var(--cngx-timeline-gap, 8px);row-gap:var(--cngx-timeline-row-gap, 4px)}.cngx-timeline__skeleton-row+.cngx-timeline__skeleton-row{margin-block-start:var(--cngx-timeline-item-gap, 16px)}.cngx-timeline__skeleton-row[data-row-side=end]{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:\"line marker\" \"body rail\"}:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"opposite marker line\" \"opposite rail body\"}:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row[data-row-side=end]{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"line marker opposite\" \"body rail opposite\"}:scope[data-orientation=horizontal]{overflow-x:auto}:scope[data-orientation=horizontal] .cngx-timeline__list{flex-direction:row;align-items:start}:scope[data-orientation=horizontal] .cngx-timeline__group{flex:none}:scope[data-orientation=horizontal] .cngx-timeline__rows{flex-direction:row;align-items:stretch}:scope[data-orientation=horizontal] .cngx-timeline__skeleton{display:flex;flex-direction:row;gap:var(--cngx-timeline-item-gap, 16px)}:scope[data-orientation=horizontal] .cngx-timeline__skeleton-row{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:\"marker rail\" \"line line\" \"body body\";inline-size:12rem}:scope[data-orientation=horizontal] .cngx-timeline__skeleton-row+.cngx-timeline__skeleton-row{margin-block-start:0}:scope[data-orientation=horizontal] .cngx-timeline__skeleton-rail{inline-size:100%;block-size:var(--cngx-timeline-connector-width, 2px);align-self:center;justify-self:stretch}@container cngx-timeline (max-inline-size: 30rem){:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row,:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row[data-row-side=end]{grid-template-columns:auto minmax(0,1fr);grid-template-areas:\"marker line\" \"rail body\"}}.cngx-timeline__skeleton-marker,.cngx-timeline__skeleton-rail{background:color-mix(in oklch,currentColor 14%,transparent)}.cngx-timeline__skeleton-marker{grid-area:marker;inline-size:var(--cngx-timeline-marker-size, 12px);block-size:var(--cngx-timeline-marker-size, 12px);border-radius:50%}.cngx-timeline__skeleton-rail{grid-area:rail;inline-size:var(--cngx-timeline-connector-width, 2px);block-size:100%;justify-self:center}.cngx-timeline__skeleton-body{grid-area:body;padding:var(--cngx-timeline-surface-padding, 4px);min-inline-size:0}.cngx-timeline__skeleton-line{display:block;block-size:var(--cngx-timeline-skeleton-line-size, 12px);border-radius:var(--cngx-radius-sm, 4px);background:color-mix(in oklch,currentColor 14%,transparent)}.cngx-timeline__skeleton-line+.cngx-timeline__skeleton-line{margin-block-start:var(--cngx-timeline-row-gap, 4px)}.cngx-timeline__skeleton-line--short{inline-size:60%}}.cngx-timeline[data-skin=card] .cngx-timeline-item__body{background:var(--cngx-timeline-surface, oklch(1 0 0));border:var(--cngx-timeline-connector-width, 2px) solid var(--cngx-timeline-connector-color, oklch(.88 .005 250));border-radius:var(--cngx-radius-md, 8px);padding:var(--cngx-timeline-content-padding, 4px)}.cngx-timeline[data-skin=bands] .cngx-timeline__group:nth-of-type(2n){background:color-mix(in oklch,currentColor 4%,transparent);border-radius:var(--cngx-radius-md, 8px);padding:var(--cngx-timeline-surface-padding, 4px)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CngxSkeletonContainer, selector: "cngx-skeleton", inputs: ["loading", "state", "shimmer", "count", "showDelay", "minDwell"], exportAs: ["cngxSkeletonContainer"] }, { kind: "directive", type: CngxSkeletonPlaceholder, selector: "ng-template[cngxSkeletonPlaceholder]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
453
528
  }
454
529
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTimeline, decorators: [{
455
530
  type: Component,
@@ -480,7 +555,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
480
555
  // Aliased inputs leave the raw attribute behind, naming the role-less host.
481
556
  '[attr.aria-label]': 'null',
482
557
  '[attr.aria-labelledby]': 'null',
483
- }, template: "@switch (activeView()) {\n @case ('skeleton') {\n <!-- The container owns show-delay and min-dwell, so a fast load never\n flashes and the timeline holds no latency logic. The placeholder\n reuses the item raster, so the swap to content cannot reflow. -->\n <!-- The class carries no rule on purpose: `<cngx-skeleton>` hosts itself\n with `display: contents` and has no box to style. It is the hook that\n makes the loading branch addressable from outside - tests and\n consumer overrides have nothing else to select on. -->\n <!-- [loading], not [state]: the container derives first-load from a bound\n state and would refuse to draw on a refetch that has nothing on\n screen, which is exactly the branch this case exists for. Reaching\n this branch at all IS the decision that a placeholder belongs here -\n activeView() already made it - so the flag is true by construction\n and the container is left owning only show-delay and min-dwell. -->\n <cngx-skeleton class=\"cngx-timeline__skeleton\" [loading]=\"true\" [count]=\"skeletonRowCount()\">\n <!-- let-index: the container has passed index/count/first/last into\n this template all along, the timeline just never read it. The\n built-in placeholder needs the per-row index to land on the same\n sides the content will, so the swap does not reflow under\n placement=\"end\" / \"alternate\". A consumer-supplied\n *cngxTimelineSkeleton is still outletted without context, which is\n unchanged and tracked. -->\n <ng-template cngxSkeletonPlaceholder let-index=\"index\">\n <!-- aria-hidden on the wrapper, not on the branches: whatever a\n consumer supplies is decoration too, and the load is announced\n through the live region at the bottom of this template. -->\n <div aria-hidden=\"true\">\n @if (skeletonTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n } @else {\n <!-- Own classes, not the row's. `CngxTimelineItem` is never\n imported here, so on a cold first load its Track-A stylesheet\n is not in the document yet and borrowed classes would render\n unstyled - on the one path the skeleton exists to cover. -->\n <div class=\"cngx-timeline__skeleton-row\" [attr.data-row-side]=\"rowSide(index)\">\n <span class=\"cngx-timeline__skeleton-marker\"></span>\n <span class=\"cngx-timeline__skeleton-rail\"></span>\n <div class=\"cngx-timeline__skeleton-body\">\n <span class=\"cngx-timeline__skeleton-line\"></span>\n <span\n class=\"cngx-timeline__skeleton-line cngx-timeline__skeleton-line--short\"\n ></span>\n </div>\n </div>\n }\n </div>\n </ng-template>\n </cngx-skeleton>\n }\n\n @case ('empty') {\n <div class=\"cngx-timeline__empty\">\n @if (emptyTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: emptyReason() }\" />\n } @else {\n {{ labels.emptyFallback }}\n }\n </div>\n }\n\n @case ('error') {\n <ng-container *ngTemplateOutlet=\"errorSurface\" />\n }\n}\n\n@if (showsContent() && groups().length) {\n <!-- aria-busy belongs on the element that owns the content, not on the\n role-less host, where AT would never read it. -->\n <div\n class=\"cngx-timeline__list\"\n [attr.role]=\"containerRole()\"\n [attr.aria-busy]=\"ariaBusy()\"\n [attr.aria-label]=\"listLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @for (group of groups(); track group.key) {\n <!-- Three elements per band, not two, and the middle one is why: a\n list may own nothing but listitems, so the header cannot sit\n inside it. The header is a consumer slot and the documented\n example is an <h3> - a real role, which axe rejects as a child of\n role=\"list\". So the band wrapper stays generic, the header sits\n beside the rows, and only the rows carry the list role. The rows\n element is what the header names, and what v2 wraps in a\n <details role=\"group\">.\n\n Ungrouped drops both wrappers to presentation rather than to no\n role at all: a generic div between the list and its rows still\n owns them and breaks listitem's required context - display:\n contents fixes the box tree, not this.\n\n The label id is keyed on $index, not on group.key: a custom\n TimelineGroupingFn is free to return \"today / this week / earlier\",\n and whitespace in an id makes this reference resolve to nothing,\n leaving the band unnamed. -->\n <div class=\"cngx-timeline__group\" [attr.role]=\"wrapperRole()\">\n @if (!ungrouped()) {\n <div class=\"cngx-timeline__date-header\" [id]=\"groupLabelId($index)\">\n @if (dateHeaderTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: group }\" />\n } @else {\n {{ labels.groupLabel(group) }}\n }\n </div>\n }\n\n <div\n class=\"cngx-timeline__rows\"\n [attr.role]=\"rowsRole()\"\n [attr.aria-labelledby]=\"ungrouped() ? null : groupLabelId($index)\"\n >\n @for (item of group.items; track trackItem($index, item)) {\n <!-- The side comes from the loop index, not from :nth-child: a\n filtered list has to alternate by its position in the run\n that is actually rendered, and the row stylesheet reads the\n attribute off an ancestor exactly like [data-mode]. -->\n <div class=\"cngx-timeline__item\" role=\"listitem\" [attr.data-row-side]=\"rowSide($index)\">\n @if (itemTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: itemContext(item, $index, group)\" />\n }\n </div>\n }\n </div>\n </div>\n }\n </div>\n}\n\n<!-- A refresh keeps the loaded rows on screen, so this tail is the only visible\n sign anything is happening. Outside the list, so it never reads as an\n event of its own. Decorative: the announcement is the live region below,\n which stays in the DOM whether or not there is anything to say. -->\n@if (refreshing()) {\n <div class=\"cngx-timeline__tail\" aria-hidden=\"true\">\n @if (loadingTailTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n } @else {\n {{ labels.refreshing }}\n }\n </div>\n}\n\n@if (activeView() === 'content+error') {\n <ng-container *ngTemplateOutlet=\"errorSurface\" />\n}\n\n<!-- Always in the DOM, content reactive - a region created together with its\n message is announced inconsistently or not at all. Empty whenever the\n timeline has nothing to report. -->\n<span aria-live=\"polite\" aria-atomic=\"true\" class=\"cngx-timeline__sr-only\">\n {{ announcement() }}\n</span>\n\n<ng-template #errorSurface>\n <div class=\"cngx-timeline__error\">\n @if (errorTpl(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: state()?.error(), retry: emitRetry }\"\n />\n } @else {\n <!-- The alert is the message alone. Wrapping the retry control in it\n too would re-announce the button on every mutation of the region. -->\n <p class=\"cngx-timeline__error-message\" role=\"alert\">{{ labels.errorFallback }}</p>\n @if (retryButtonTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: emitRetry }\" />\n } @else {\n <button class=\"cngx-timeline__retry\" type=\"button\" (click)=\"emitRetry()\">\n {{ labels.retry }}\n </button>\n }\n }\n </div>\n</ng-template>\n", styles: ["@layer cngx.tokens{@property --cngx-timeline-item-gap{syntax: \"<length>\"; inherits: true; initial-value: 16px;}@property --cngx-timeline-group-gap{syntax: \"<length>\"; inherits: true; initial-value: 24px;}@property --cngx-timeline-surface-padding{syntax: \"<length>\"; inherits: true; initial-value: 4px;}@property --cngx-timeline-skeleton-line-size{syntax: \"<length>\"; inherits: true; initial-value: 12px;}}@layer cngx.components{@scope(.cngx-timeline){:scope{--cngx-timeline-item-gap: var(--cngx-space-md, 16px);--cngx-timeline-group-gap: var(--cngx-space-lg, 24px);--cngx-timeline-surface-padding: var(--cngx-space-xs, 4px);--cngx-timeline-gap: var(--cngx-space-sm, 8px);--cngx-timeline-row-gap: var(--cngx-space-xs, 4px);display:block;container-type:inline-size;container-name:cngx-timeline;color:var(--cngx-timeline-text-color, oklch(.2 .01 250))}.cngx-timeline__list{display:flex;flex-direction:column;gap:var(--cngx-timeline-group-gap, 24px)}.cngx-timeline__group,.cngx-timeline__rows{display:flex;flex-direction:column;gap:var(--cngx-timeline-item-gap, 16px)}.cngx-timeline__date-header{color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem);font-weight:600;line-height:1.4}.cngx-timeline__item{display:block}:scope[data-ungrouped] .cngx-timeline__group,:scope[data-ungrouped] .cngx-timeline__rows{display:contents}:scope[data-ungrouped] .cngx-timeline__list{gap:var(--cngx-timeline-item-gap, 16px)}.cngx-timeline__empty,.cngx-timeline__error,.cngx-timeline__tail{padding:var(--cngx-timeline-surface-padding, 4px)}.cngx-timeline__empty,.cngx-timeline__tail{color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem)}.cngx-timeline__sr-only{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.cngx-timeline__error-message{margin:0 0 var(--cngx-timeline-item-gap, 16px);color:var(--cngx-timeline-rejected-color, oklch(.6 .18 25))}.cngx-timeline__skeleton-row{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:\"marker line\" \"rail body\";column-gap:var(--cngx-timeline-gap, 8px);row-gap:var(--cngx-timeline-row-gap, 4px)}.cngx-timeline__skeleton-row+.cngx-timeline__skeleton-row{margin-block-start:var(--cngx-timeline-item-gap, 16px)}.cngx-timeline__skeleton-row[data-row-side=end]{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:\"line marker\" \"body rail\"}:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"opposite marker line\" \"opposite rail body\"}:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row[data-row-side=end]{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"line marker opposite\" \"body rail opposite\"}:scope[data-orientation=horizontal]{overflow-x:auto}:scope[data-orientation=horizontal] .cngx-timeline__list{flex-direction:row;align-items:start}:scope[data-orientation=horizontal] .cngx-timeline__group{flex:none}:scope[data-orientation=horizontal] .cngx-timeline__rows{flex-direction:row;align-items:stretch}:scope[data-orientation=horizontal] .cngx-timeline__skeleton{display:flex;flex-direction:row;gap:var(--cngx-timeline-item-gap, 16px)}:scope[data-orientation=horizontal] .cngx-timeline__skeleton-row{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:\"marker rail\" \"line line\" \"body body\";inline-size:12rem}:scope[data-orientation=horizontal] .cngx-timeline__skeleton-row+.cngx-timeline__skeleton-row{margin-block-start:0}:scope[data-orientation=horizontal] .cngx-timeline__skeleton-rail{inline-size:100%;block-size:var(--cngx-timeline-connector-width, 2px);align-self:center;justify-self:stretch}@container cngx-timeline (max-inline-size: 32rem){:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row,:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row[data-row-side=end]{grid-template-columns:auto minmax(0,1fr);grid-template-areas:\"marker line\" \"rail body\"}}.cngx-timeline__skeleton-marker,.cngx-timeline__skeleton-rail{background:color-mix(in oklch,currentColor 14%,transparent)}.cngx-timeline__skeleton-marker{grid-area:marker;inline-size:var(--cngx-timeline-marker-size, 12px);block-size:var(--cngx-timeline-marker-size, 12px);border-radius:50%}.cngx-timeline__skeleton-rail{grid-area:rail;inline-size:var(--cngx-timeline-connector-width, 2px);block-size:100%;justify-self:center}.cngx-timeline__skeleton-body{grid-area:body;padding:var(--cngx-timeline-surface-padding, 4px);min-inline-size:0}.cngx-timeline__skeleton-line{display:block;block-size:var(--cngx-timeline-skeleton-line-size, 12px);border-radius:var(--cngx-radius-sm, 4px);background:color-mix(in oklch,currentColor 14%,transparent)}.cngx-timeline__skeleton-line+.cngx-timeline__skeleton-line{margin-block-start:var(--cngx-timeline-row-gap, 4px)}.cngx-timeline__skeleton-line--short{inline-size:60%}}.cngx-timeline[data-skin=card] .cngx-timeline-item__body{background:var(--cngx-timeline-surface, oklch(1 0 0));border:var(--cngx-timeline-connector-width, 2px) solid var(--cngx-timeline-connector-color, oklch(.88 .005 250));border-radius:var(--cngx-radius-md, 8px);padding:var(--cngx-timeline-content-padding, 4px)}.cngx-timeline[data-skin=bands] .cngx-timeline__group:nth-of-type(2n){background:color-mix(in oklch,currentColor 4%,transparent);border-radius:var(--cngx-radius-md, 8px);padding:var(--cngx-timeline-surface-padding, 4px)}}\n"] }]
558
+ }, template: "@switch (activeView()) {\n @case ('skeleton') {\n <!-- The container owns show-delay and min-dwell, so a fast load never\n flashes and the timeline holds no latency logic. The placeholder\n reuses the item raster, so the swap to content cannot reflow. -->\n <!-- The class carries no rule on purpose: `<cngx-skeleton>` hosts itself\n with `display: contents` and has no box to style. It is the hook that\n makes the loading branch addressable from outside - tests and\n consumer overrides have nothing else to select on. -->\n <!-- [loading], not [state]: the container derives first-load from a bound\n state and would refuse to draw on a refetch that has nothing on\n screen, which is exactly the branch this case exists for. Reaching\n this branch at all IS the decision that a placeholder belongs here -\n activeView() already made it - so the flag is true by construction\n and the container is left owning only show-delay and min-dwell. -->\n <cngx-skeleton class=\"cngx-timeline__skeleton\" [loading]=\"true\" [count]=\"skeletonRowCount()\">\n <!-- The container passes index/count into this template. Both the\n built-in placeholder and a consumer *cngxTimelineSkeleton need the\n per-row index to land on the same sides the content will, so the\n swap does not reflow under placement=\"end\" / \"alternate\". -->\n <ng-template cngxSkeletonPlaceholder let-index=\"index\" let-count=\"count\">\n <!-- aria-hidden on the wrapper, not on the branches: whatever a\n consumer supplies is decoration too, and the load is announced\n through the live region at the bottom of this template. -->\n <div aria-hidden=\"true\">\n @if (skeletonTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: skeletonContext(index, count)\" />\n } @else {\n <!-- Own classes, not the row's. `CngxTimelineItem` is never\n imported here, so on a cold first load its Track-A stylesheet\n is not in the document yet and borrowed classes would render\n unstyled - on the one path the skeleton exists to cover. -->\n <div class=\"cngx-timeline__skeleton-row\" [attr.data-row-side]=\"rowSide(index)\">\n <span class=\"cngx-timeline__skeleton-marker\"></span>\n <span class=\"cngx-timeline__skeleton-rail\"></span>\n <div class=\"cngx-timeline__skeleton-body\">\n <span class=\"cngx-timeline__skeleton-line\"></span>\n <span\n class=\"cngx-timeline__skeleton-line cngx-timeline__skeleton-line--short\"\n ></span>\n </div>\n </div>\n }\n </div>\n </ng-template>\n </cngx-skeleton>\n }\n\n @case ('empty') {\n <div class=\"cngx-timeline__empty\">\n @if (emptyTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: emptyReason() }\" />\n } @else {\n {{ labels().emptyFallback }}\n }\n </div>\n }\n\n @case ('error') {\n <ng-container *ngTemplateOutlet=\"errorSurface\" />\n }\n}\n\n@if (showsContent() && groups().length) {\n <!-- aria-busy belongs on the element that owns the content, not on the\n role-less host, where AT would never read it. -->\n <div\n class=\"cngx-timeline__list\"\n [attr.role]=\"containerRole()\"\n [attr.aria-busy]=\"ariaBusy()\"\n [attr.aria-label]=\"listLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @for (group of groups(); track group.key) {\n <!-- Three elements per band, not two, and the middle one is why: a\n list may own nothing but listitems, so the header cannot sit\n inside it. The header is a consumer slot and the documented\n example is an <h3> - a real role, which axe rejects as a child of\n role=\"list\". So the band wrapper stays generic, the header sits\n beside the rows, and only the rows carry the list role. The rows\n element is what the header names, and what v2 wraps in a\n <details role=\"group\">.\n\n Ungrouped drops both wrappers to presentation rather than to no\n role at all: a generic div between the list and its rows still\n owns them and breaks listitem's required context - display:\n contents fixes the box tree, not this.\n\n The label id is keyed on $index, not on group.key: a custom\n TimelineGroupingFn is free to return \"today / this week / earlier\",\n and whitespace in an id makes this reference resolve to nothing,\n leaving the band unnamed. -->\n <div class=\"cngx-timeline__group\" [attr.role]=\"wrapperRole()\">\n @if (!ungrouped()) {\n <div class=\"cngx-timeline__date-header\" [id]=\"groupLabelId($index)\">\n @if (dateHeaderTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: group }\" />\n } @else {\n {{ groupHeaderLabel()(group) }}\n }\n </div>\n }\n\n <div\n class=\"cngx-timeline__rows\"\n [attr.role]=\"rowsRole()\"\n [attr.aria-labelledby]=\"ungrouped() ? null : groupLabelId($index)\"\n >\n @for (item of group.items; track trackItem($index, item)) {\n <!-- The side comes from the loop index, not from :nth-child: a\n filtered list has to alternate by its position in the run\n that is actually rendered, and the row stylesheet reads the\n attribute off an ancestor exactly like [data-mode]. -->\n <div class=\"cngx-timeline__item\" role=\"listitem\" [attr.data-row-side]=\"rowSide($index)\">\n @if (itemTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: itemContext(item, $index, group)\" />\n }\n </div>\n }\n </div>\n </div>\n }\n </div>\n}\n\n<!-- A refresh keeps the loaded rows on screen, so this tail is the only visible\n sign anything is happening. Outside the list, so it never reads as an\n event of its own. Decorative: the announcement is the live region below,\n which stays in the DOM whether or not there is anything to say. -->\n@if (refreshing()) {\n <div class=\"cngx-timeline__tail\" aria-hidden=\"true\">\n @if (loadingTailTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n } @else {\n {{ labels().refreshing }}\n }\n </div>\n}\n\n@if (activeView() === 'content+error') {\n <ng-container *ngTemplateOutlet=\"errorSurface\" />\n}\n\n<!-- Always in the DOM, content reactive - a region created together with its\n message is announced inconsistently or not at all. Empty whenever the\n timeline has nothing to report. -->\n<span aria-live=\"polite\" aria-atomic=\"true\" class=\"cngx-timeline__sr-only\">\n {{ announcement() }}\n</span>\n\n<ng-template #errorSurface>\n <div class=\"cngx-timeline__error\">\n @if (errorTpl(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: state()?.error(), retry: emitRetry }\"\n />\n } @else {\n <!-- No role=\"alert\" here: the polite region below is the single\n announcer for every view transition, error included - an alert on\n top of it would double-fire the same fallback. -->\n <p class=\"cngx-timeline__error-message\">{{ labels().errorFallback }}</p>\n @if (retryButtonTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: emitRetry }\" />\n } @else {\n <button class=\"cngx-timeline__retry\" type=\"button\" (click)=\"emitRetry()\">\n {{ labels().retry }}\n </button>\n }\n }\n </div>\n</ng-template>\n", styles: ["@layer cngx.tokens{@property --cngx-timeline-item-gap{syntax: \"<length>\"; inherits: true; initial-value: 16px;}@property --cngx-timeline-group-gap{syntax: \"<length>\"; inherits: true; initial-value: 24px;}@property --cngx-timeline-surface-padding{syntax: \"<length>\"; inherits: true; initial-value: 4px;}@property --cngx-timeline-skeleton-line-size{syntax: \"<length>\"; inherits: true; initial-value: 12px;}}@layer cngx.components{@scope(.cngx-timeline){:scope{--cngx-timeline-item-gap: var(--cngx-space-md, 16px);--cngx-timeline-group-gap: var(--cngx-space-lg, 24px);--cngx-timeline-surface-padding: var(--cngx-space-xs, 4px);--cngx-timeline-gap: var(--cngx-space-sm, 8px);--cngx-timeline-row-gap: var(--cngx-space-xs, 4px);display:block;container-type:inline-size;container-name:cngx-timeline;color:var(--cngx-timeline-text-color, oklch(.2 .01 250))}.cngx-timeline__list{display:flex;flex-direction:column;gap:var(--cngx-timeline-group-gap, 24px)}.cngx-timeline__group,.cngx-timeline__rows{display:flex;flex-direction:column;gap:var(--cngx-timeline-item-gap, 16px)}.cngx-timeline__date-header{color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem);font-weight:600;line-height:1.4}.cngx-timeline__item{display:block}:scope[data-ungrouped] .cngx-timeline__group,:scope[data-ungrouped] .cngx-timeline__rows{display:contents}:scope[data-ungrouped] .cngx-timeline__list{gap:var(--cngx-timeline-item-gap, 16px)}.cngx-timeline__empty,.cngx-timeline__error,.cngx-timeline__tail{padding:var(--cngx-timeline-surface-padding, 4px)}.cngx-timeline__empty,.cngx-timeline__tail{color:var(--cngx-timeline-muted-color, oklch(.5 .01 250));font-size:var(--cngx-timeline-meta-size, .8125rem)}.cngx-timeline__sr-only{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.cngx-timeline__error-message{margin:0 0 var(--cngx-timeline-item-gap, 16px);color:var(--cngx-timeline-rejected-color, oklch(.6 .18 25))}.cngx-timeline__skeleton-row{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:\"marker line\" \"rail body\";column-gap:var(--cngx-timeline-gap, 8px);row-gap:var(--cngx-timeline-row-gap, 4px)}.cngx-timeline__skeleton-row+.cngx-timeline__skeleton-row{margin-block-start:var(--cngx-timeline-item-gap, 16px)}.cngx-timeline__skeleton-row[data-row-side=end]{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:\"line marker\" \"body rail\"}:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"opposite marker line\" \"opposite rail body\"}:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row[data-row-side=end]{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:\"line marker opposite\" \"body rail opposite\"}:scope[data-orientation=horizontal]{overflow-x:auto}:scope[data-orientation=horizontal] .cngx-timeline__list{flex-direction:row;align-items:start}:scope[data-orientation=horizontal] .cngx-timeline__group{flex:none}:scope[data-orientation=horizontal] .cngx-timeline__rows{flex-direction:row;align-items:stretch}:scope[data-orientation=horizontal] .cngx-timeline__skeleton{display:flex;flex-direction:row;gap:var(--cngx-timeline-item-gap, 16px)}:scope[data-orientation=horizontal] .cngx-timeline__skeleton-row{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:\"marker rail\" \"line line\" \"body body\";inline-size:12rem}:scope[data-orientation=horizontal] .cngx-timeline__skeleton-row+.cngx-timeline__skeleton-row{margin-block-start:0}:scope[data-orientation=horizontal] .cngx-timeline__skeleton-rail{inline-size:100%;block-size:var(--cngx-timeline-connector-width, 2px);align-self:center;justify-self:stretch}@container cngx-timeline (max-inline-size: 30rem){:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row,:scope[data-placement=alternate]:not([data-mode=activity]) .cngx-timeline__skeleton-row[data-row-side=end]{grid-template-columns:auto minmax(0,1fr);grid-template-areas:\"marker line\" \"rail body\"}}.cngx-timeline__skeleton-marker,.cngx-timeline__skeleton-rail{background:color-mix(in oklch,currentColor 14%,transparent)}.cngx-timeline__skeleton-marker{grid-area:marker;inline-size:var(--cngx-timeline-marker-size, 12px);block-size:var(--cngx-timeline-marker-size, 12px);border-radius:50%}.cngx-timeline__skeleton-rail{grid-area:rail;inline-size:var(--cngx-timeline-connector-width, 2px);block-size:100%;justify-self:center}.cngx-timeline__skeleton-body{grid-area:body;padding:var(--cngx-timeline-surface-padding, 4px);min-inline-size:0}.cngx-timeline__skeleton-line{display:block;block-size:var(--cngx-timeline-skeleton-line-size, 12px);border-radius:var(--cngx-radius-sm, 4px);background:color-mix(in oklch,currentColor 14%,transparent)}.cngx-timeline__skeleton-line+.cngx-timeline__skeleton-line{margin-block-start:var(--cngx-timeline-row-gap, 4px)}.cngx-timeline__skeleton-line--short{inline-size:60%}}.cngx-timeline[data-skin=card] .cngx-timeline-item__body{background:var(--cngx-timeline-surface, oklch(1 0 0));border:var(--cngx-timeline-connector-width, 2px) solid var(--cngx-timeline-connector-color, oklch(.88 .005 250));border-radius:var(--cngx-radius-md, 8px);padding:var(--cngx-timeline-content-padding, 4px)}.cngx-timeline[data-skin=bands] .cngx-timeline__group:nth-of-type(2n){background:color-mix(in oklch,currentColor 4%,transparent);border-radius:var(--cngx-radius-md, 8px);padding:var(--cngx-timeline-surface-padding, 4px)}}\n"] }]
484
559
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], emptyReason: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyReason", required: false }] }], skeletonRowCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "skeletonRowCount", required: false }] }], retry: [{ type: i0.Output, args: ["retry"] }], dateAccessor: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateAccessor", required: true }] }], idAccessor: [{ type: i0.Input, args: [{ isSignal: true, alias: "idAccessor", required: false }] }], groupBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupBy", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], skin: [{ type: i0.Input, args: [{ isSignal: true, alias: "skin", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], rail: [{ type: i0.Input, args: [{ isSignal: true, alias: "rail", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], itemSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTimelineItemTpl), { isSignal: true }] }], dateHeaderSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTimelineDateHeader), { isSignal: true }] }], markerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTimelineMarkerTpl), { isSignal: true }] }], emptySlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTimelineEmpty), { isSignal: true }] }], errorSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTimelineError), { isSignal: true }] }], retryButtonSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTimelineRetryButton), { isSignal: true }] }], loadingTailSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTimelineLoadingTail), { isSignal: true }] }], skeletonSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTimelineSkeleton), { isSignal: true }] }] } });
485
560
 
486
561
  /**