@cngx/ui 0.1.0-rc.7 → 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 (96) 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 +224 -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 +102 -35
  12. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  13. package/fesm2022/cngx-ui-action-button.mjs +112 -50
  14. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  15. package/fesm2022/cngx-ui-breadcrumb.mjs +176 -96
  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 +194 -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 +149 -34
  24. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
  25. package/fesm2022/cngx-ui-data-grid-accordion.mjs +415 -98
  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 +1022 -439
  30. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  31. package/fesm2022/cngx-ui-mat-accordion.mjs +75 -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 +314 -141
  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 +487 -178
  42. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  43. package/fesm2022/cngx-ui-sidenav.mjs +327 -106
  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 +191 -68
  52. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  53. package/fesm2022/cngx-ui-tabs.mjs +10 -6
  54. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  55. package/fesm2022/cngx-ui-timeline.mjs +74 -21
  56. package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
  57. package/fesm2022/cngx-ui-toc.mjs +70 -26
  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/styles/mat-tabs.css +9 -10
  63. package/overlay/README.md +9 -4
  64. package/package.json +4 -4
  65. package/paginator/README.md +8 -4
  66. package/sidenav/README.md +33 -11
  67. package/speak/README.md +3 -2
  68. package/stepper/README.md +13 -1
  69. package/timeline/README.md +1 -1
  70. package/toc/README.md +4 -1
  71. package/types/cngx-ui-a11y.d.ts +121 -30
  72. package/types/cngx-ui-accordion.d.ts +91 -26
  73. package/types/cngx-ui-action-button.d.ts +44 -3
  74. package/types/cngx-ui-breadcrumb.d.ts +154 -58
  75. package/types/cngx-ui-chart-panel.d.ts +122 -18
  76. package/types/cngx-ui-collection.d.ts +147 -55
  77. package/types/cngx-ui-command-palette.d.ts +297 -183
  78. package/types/cngx-ui-context-menu.d.ts +98 -6
  79. package/types/cngx-ui-data-grid-accordion.d.ts +274 -38
  80. package/types/cngx-ui-empty-state.d.ts +9 -2
  81. package/types/cngx-ui-feedback.d.ts +594 -56
  82. package/types/cngx-ui-mat-accordion.d.ts +29 -1
  83. package/types/cngx-ui-mat-paginator.d.ts +37 -8
  84. package/types/cngx-ui-mat-stepper.d.ts +23 -11
  85. package/types/cngx-ui-mat-tabs.d.ts +207 -14
  86. package/types/cngx-ui-overlay.d.ts +56 -10
  87. package/types/cngx-ui-paginator.d.ts +403 -129
  88. package/types/cngx-ui-sidenav.d.ts +248 -74
  89. package/types/cngx-ui-skeleton.d.ts +6 -7
  90. package/types/cngx-ui-speak.d.ts +118 -5
  91. package/types/cngx-ui-stat-card.d.ts +117 -33
  92. package/types/cngx-ui-stepper.d.ts +66 -27
  93. package/types/cngx-ui-tabs.d.ts +2 -2
  94. package/types/cngx-ui-timeline.d.ts +23 -7
  95. package/types/cngx-ui-toc.d.ts +80 -13
  96. 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, isDevMode, 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 } 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
  }
@@ -240,6 +273,9 @@ const CNGX_TIMELINE_VIEW_FACTORY = new InjectionToken('CNGX_TIMELINE_VIEW_FACTOR
240
273
  */
241
274
  class CngxTimeline {
242
275
  config = injectTimelineConfig();
276
+ // Same cached source `createTimelineFallbackCopy` resolves (coerceSignal is
277
+ // identity-keyed), read here for the raw `timelineRegion`.
278
+ configLabels = coerceSignal(this.config.labels ?? TIMELINE_NO_LABELS);
243
279
  groupingFactory = inject(CNGX_TIMELINE_GROUPING_FACTORY);
244
280
  uid = nextUid('cngx-timeline');
245
281
  /**
@@ -326,6 +362,7 @@ class CngxTimeline {
326
362
  dateAccessor: (item) => this.dateAccessor()(item),
327
363
  groupBy: this.groupBy,
328
364
  direction: this.direction,
365
+ locale: () => this.locale(),
329
366
  });
330
367
  /** The derived bands, in sort order. */
331
368
  groups = this.grouping.groups;
@@ -357,8 +394,24 @@ class CngxTimeline {
357
394
  asyncState = createForwardedAsyncState(this.state);
358
395
  /** @internal Fallback copy for every surface with no slot bound. */
359
396
  labels = createTimelineFallbackCopy(this.config);
397
+ locale = injectLocale();
398
+ // Narrowed so an unrelated label change (retry, loading) leaves the header
399
+ // formatter, which only depends on `groupLabel` and the locale, untouched.
400
+ groupFormatter = computed(() => this.labels().groupLabel, ...(ngDevMode ? [{ debugName: "groupFormatter" }] : /* istanbul ignore next */ []));
401
+ /**
402
+ * @internal Group header formatter: `labels.groupLabel` bound to the live
403
+ * app locale, so a `CNGX_LOCALE` flip re-formats the headers.
404
+ */
405
+ groupHeaderLabel = computed(() => {
406
+ const format = this.groupFormatter();
407
+ const locale = this.locale();
408
+ return (group) => format(group, locale);
409
+ }, ...(ngDevMode ? [{ debugName: "groupHeaderLabel" }] : /* istanbul ignore next */ []));
360
410
  /** @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);
411
+ // Empty from the items, not the bands: every item lands in a band (invalid
412
+ // dates included), and the bands re-split on a locale switch, which must not
413
+ // reach the live region.
414
+ view = inject(CNGX_TIMELINE_VIEW_FACTORY)(this.state, () => this.resolvedItems().length === 0, this.labels);
362
415
  activeView = this.view.activeView;
363
416
  showsContent = this.view.showsContent;
364
417
  refreshing = this.view.refreshing;
@@ -379,7 +432,7 @@ class CngxTimeline {
379
432
  /** @internal The rows are the list, so it owns only `listitem` children. */
380
433
  rowsRole = computed(() => (this.ungrouped() ? 'presentation' : 'list'), ...(ngDevMode ? [{ debugName: "rowsRole" }] : /* istanbul ignore next */ []));
381
434
  /** @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 */ []));
435
+ listLabel = computed(() => this.ariaLabelledBy() ? null : (this.ariaLabel() ?? this.configLabels().timelineRegion ?? null), ...(ngDevMode ? [{ debugName: "listLabel" }] : /* istanbul ignore next */ []));
383
436
  /** @internal A group is named by its own header element, keyed on position. */
384
437
  groupLabelId(index) {
385
438
  return `${this.uid}-group-${index}`;
@@ -449,7 +502,7 @@ class CngxTimeline {
449
502
  state: inject(CngxTimeline).asyncState,
450
503
  }),
451
504
  },
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 });
505
+ ], 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 {{ 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
506
  }
454
507
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTimeline, decorators: [{
455
508
  type: Component,
@@ -480,7 +533,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
480
533
  // Aliased inputs leave the raw attribute behind, naming the role-less host.
481
534
  '[attr.aria-label]': 'null',
482
535
  '[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"] }]
536
+ }, 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 {{ 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
537
  }], 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
538
 
486
539
  /**