@cngx/ui 0.1.0-rc.8 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +118 -59
  2. package/action-button/README.md +170 -53
  3. package/breadcrumb/README.md +5 -6
  4. package/collection/README.md +1 -1
  5. package/command-palette/README.md +9 -5
  6. package/data-grid-accordion/README.md +1 -1
  7. package/empty-state/README.md +2 -3
  8. package/feedback/README.md +1 -1
  9. package/fesm2022/cngx-ui-a11y.mjs +13 -23
  10. package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
  11. package/fesm2022/cngx-ui-accordion.mjs +55 -60
  12. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  13. package/fesm2022/cngx-ui-action-button.mjs +220 -339
  14. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  15. package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
  16. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  17. package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
  18. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
  19. package/fesm2022/cngx-ui-collection.mjs +28 -34
  20. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  21. package/fesm2022/cngx-ui-command-palette.mjs +29 -51
  22. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
  23. package/fesm2022/cngx-ui-context-menu.mjs +138 -89
  24. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
  25. package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
  26. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  27. package/fesm2022/cngx-ui-empty-state.mjs +17 -44
  28. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  29. package/fesm2022/cngx-ui-feedback.mjs +648 -495
  30. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  31. package/fesm2022/cngx-ui-layout.mjs +17 -13
  32. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  33. package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
  34. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  35. package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
  36. package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
  37. package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
  38. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  39. package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
  40. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  41. package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
  42. package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
  43. package/fesm2022/cngx-ui-overlay.mjs +9 -10
  44. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  45. package/fesm2022/cngx-ui-paginator.mjs +212 -188
  46. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  47. package/fesm2022/cngx-ui-sidenav.mjs +872 -721
  48. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  49. package/fesm2022/cngx-ui-skeleton.mjs +17 -19
  50. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  51. package/fesm2022/cngx-ui-speak.mjs +21 -74
  52. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  53. package/fesm2022/cngx-ui-stat-card.mjs +39 -62
  54. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
  55. package/fesm2022/cngx-ui-stepper.mjs +259 -130
  56. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  57. package/fesm2022/cngx-ui-tabs.mjs +148 -50
  58. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  59. package/fesm2022/cngx-ui-timeline.mjs +48 -32
  60. package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
  61. package/fesm2022/cngx-ui-toc.mjs +59 -48
  62. package/fesm2022/cngx-ui-toc.mjs.map +1 -1
  63. package/fesm2022/cngx-ui.mjs +5 -5
  64. package/fesm2022/cngx-ui.mjs.map +1 -1
  65. package/mat-tabs/README.md +57 -19
  66. package/mat-tabs/styles/mat-tabs.css +285 -163
  67. package/nav-rail/README.md +325 -0
  68. package/package.json +37 -8
  69. package/paginator/README.md +10 -0
  70. package/schematics/collection.json +9 -0
  71. package/schematics/ng-add/index.js +9 -0
  72. package/schematics/ng-add/schema.json +96 -0
  73. package/schematics/package.json +3 -0
  74. package/sidenav/README.md +150 -55
  75. package/skeleton/README.md +1 -1
  76. package/speak/README.md +1 -2
  77. package/stepper/README.md +20 -5
  78. package/tabs/README.md +13 -0
  79. package/timeline/README.md +1 -1
  80. package/toc/README.md +1 -1
  81. package/types/cngx-ui-a11y.d.ts +20 -38
  82. package/types/cngx-ui-accordion.d.ts +46 -71
  83. package/types/cngx-ui-action-button.d.ts +113 -151
  84. package/types/cngx-ui-breadcrumb.d.ts +60 -85
  85. package/types/cngx-ui-chart-panel.d.ts +22 -40
  86. package/types/cngx-ui-collection.d.ts +30 -43
  87. package/types/cngx-ui-command-palette.d.ts +40 -64
  88. package/types/cngx-ui-context-menu.d.ts +109 -48
  89. package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
  90. package/types/cngx-ui-empty-state.d.ts +18 -8
  91. package/types/cngx-ui-feedback.d.ts +275 -292
  92. package/types/cngx-ui-layout.d.ts +4 -12
  93. package/types/cngx-ui-mat-accordion.d.ts +5 -5
  94. package/types/cngx-ui-mat-paginator.d.ts +4 -10
  95. package/types/cngx-ui-mat-stepper.d.ts +5 -10
  96. package/types/cngx-ui-mat-tabs.d.ts +86 -89
  97. package/types/cngx-ui-nav-rail.d.ts +416 -0
  98. package/types/cngx-ui-overlay.d.ts +4 -13
  99. package/types/cngx-ui-paginator.d.ts +186 -161
  100. package/types/cngx-ui-sidenav.d.ts +557 -437
  101. package/types/cngx-ui-skeleton.d.ts +7 -13
  102. package/types/cngx-ui-speak.d.ts +40 -24
  103. package/types/cngx-ui-stat-card.d.ts +45 -36
  104. package/types/cngx-ui-stepper.d.ts +205 -84
  105. package/types/cngx-ui-tabs.d.ts +104 -28
  106. package/types/cngx-ui-timeline.d.ts +31 -51
  107. package/types/cngx-ui-toc.d.ts +43 -54
  108. package/types/cngx-ui.d.ts +1 -1
@@ -1,11 +1,11 @@
1
1
  import { NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { computed, untracked, 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
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
+ import { recordEqual, cngxDevWarn } from '@cngx/utils';
9
9
 
10
10
  /**
11
11
  * The family-standard three-stage template cascade, as one named concept:
@@ -25,9 +25,8 @@ import { recordEqual } from '@cngx/utils';
25
25
  * Exported because an ejected skin resolves the same three tiers and would
26
26
  * otherwise have to restate the rule.
27
27
  *
28
- * @category ui/timeline
29
28
  * @relatedTo createTimelineSlots
30
- * @since 0.1.0
29
+ * @since 0.3.0
31
30
  */
32
31
  function createTimelineSlotBinding(instance, configured) {
33
32
  return computed(() => instance()?.templateRef ?? configured() ?? null);
@@ -42,9 +41,8 @@ function createTimelineSlotBinding(instance, configured) {
42
41
  * slots are generic. `TemplateRef` is method-bivariant, so a consumer's
43
42
  * concrete template still assigns in.
44
43
  *
45
- * @category ui/timeline
46
44
  * @relatedTo createTimelineSlotBinding
47
- * @since 0.1.0
45
+ * @since 0.3.0
48
46
  */
49
47
  function createTimelineSlots(queries, templates) {
50
48
  const pick = (key) => templates()?.[key];
@@ -79,8 +77,7 @@ const TIMELINE_NO_LABELS = {};
79
77
  * clears the formatter should still get a legible header rather than an
80
78
  * empty one that leaves the group unnamed.
81
79
  *
82
- * @category ui/timeline
83
- * @since 0.1.0
80
+ * @since 0.3.0
84
81
  */
85
82
  function createTimelineFallbackCopy(config) {
86
83
  const source = coerceSignal(config.labels ?? TIMELINE_NO_LABELS);
@@ -129,9 +126,8 @@ function createTimelineFallbackCopy(config) {
129
126
  * than forking the organism - treating `pending` as content, or holding the
130
127
  * skeleton through a refresh, is a per-app decision.
131
128
  *
132
- * @category ui/timeline
133
129
  * @relatedTo CNGX_TIMELINE_VIEW_FACTORY
134
- * @since 0.1.0
130
+ * @since 0.3.0
135
131
  */
136
132
  function createTimelineView(state, isEmpty, labels) {
137
133
  const activeView = computed(() => {
@@ -203,9 +199,8 @@ function createTimelineView(state, isEmpty, labels) {
203
199
  * ]
204
200
  * ```
205
201
  *
206
- * @category ui/timeline
207
202
  * @relatedTo createTimelineView
208
- * @since 0.1.0
203
+ * @since 0.3.0
209
204
  */
210
205
  const CNGX_TIMELINE_VIEW_FACTORY = new InjectionToken('CNGX_TIMELINE_VIEW_FACTORY', { providedIn: 'root', factory: () => createTimelineView });
211
206
 
@@ -244,8 +239,6 @@ const CNGX_TIMELINE_VIEW_FACTORY = new InjectionToken('CNGX_TIMELINE_VIEW_FACTOR
244
239
  * </cngx-timeline>
245
240
  * ```
246
241
  *
247
- * @category ui/timeline
248
- * @docsKind primary
249
242
  * @wcag AA
250
243
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/timeline/timeline.component.ts
251
244
  * @relatedTo CngxTimelineItem, CngxTimelineItemTpl, CNGX_TIMELINE_GROUPING_FACTORY, CNGX_TIMELINE_CONFIG
@@ -257,19 +250,21 @@ const CNGX_TIMELINE_VIEW_FACTORY = new InjectionToken('CNGX_TIMELINE_VIEW_FACTOR
257
250
  * @slot cngxTimelineError Rendered when the load fails; gets the error and a retry callback.
258
251
  * @slot cngxTimelineRetryButton Replaces the retry control on the error surface.
259
252
  * @slot cngxTimelineLoadingTail Rendered below the rows while more history streams in.
260
- * <example-url>http://localhost:4200/#/ui/timeline/basics/flat-array</example-url>
261
- * <example-url>http://localhost:4200/#/ui/timeline/basics/group-by-week</example-url>
262
- * <example-url>http://localhost:4200/#/ui/timeline/basics/direction</example-url>
263
- * <example-url>http://localhost:4200/#/ui/timeline/basics/ungrouped</example-url>
264
- * <example-url>http://localhost:4200/#/ui/timeline/layout/horizontal</example-url>
265
- * <example-url>http://localhost:4200/#/ui/timeline/layout/alternating-infographic</example-url>
266
- * <example-url>http://localhost:4200/#/ui/timeline/layout/opposite-time</example-url>
267
- * <example-url>http://localhost:4200/#/ui/timeline/integration/data-source</example-url>
268
- * <example-url>http://localhost:4200/#/ui/timeline/integration/scroll-spy-nav</example-url>
269
- * <example-url>http://localhost:4200/#/ui/timeline/async/error-retry</example-url>
270
- * <example-url>http://localhost:4200/#/ui/timeline/async/refreshing-tail</example-url>
271
- * <example-url>http://localhost:4200/#/ui/timeline/skins/activity-vs-narrative</example-url>
272
- * @since 0.1.0
253
+ * <example-url>/#/ui/timeline/basics/flat-array</example-url>
254
+ * <example-url>/#/ui/timeline/basics/group-by-week</example-url>
255
+ * <example-url>/#/ui/timeline/basics/direction</example-url>
256
+ * <example-url>/#/ui/timeline/basics/ungrouped</example-url>
257
+ * <example-url>/#/ui/timeline/layout/horizontal</example-url>
258
+ * <example-url>/#/ui/timeline/layout/alternating-infographic</example-url>
259
+ * <example-url>/#/ui/timeline/layout/opposite-time</example-url>
260
+ * <example-url>/#/ui/timeline/integration/data-source</example-url>
261
+ * <example-url>/#/ui/timeline/integration/scroll-spy-nav</example-url>
262
+ * <example-url>/#/ui/timeline/async/error-retry</example-url>
263
+ * <example-url>/#/ui/timeline/async/refreshing-tail</example-url>
264
+ * <example-url>/#/ui/timeline/skins/activity-vs-narrative</example-url>
265
+ * <example-url>/#/ui/timeline/skins/dark</example-url>
266
+ * @since 0.3.0
267
+ * @axis level organism
273
268
  */
274
269
  class CngxTimeline {
275
270
  config = injectTimelineConfig();
@@ -469,16 +464,37 @@ class CngxTimeline {
469
464
  }
470
465
  return index % 2 === 0 ? 'start' : 'end';
471
466
  }
467
+ /**
468
+ * One context per skeleton row, rebuilt only when the row count or the
469
+ * side rule changes, so the slot outlet sees a stable object per pass.
470
+ */
471
+ skeletonContexts = computed(() => {
472
+ const count = this.skeletonRowCount();
473
+ return Array.from({ length: count }, (_, index) => ({
474
+ $implicit: index,
475
+ index,
476
+ count,
477
+ side: this.rowSide(index),
478
+ }));
479
+ }, ...(ngDevMode ? [{ debugName: "skeletonContexts" }] : /* istanbul ignore next */ []));
480
+ /** @internal Context of a consumer `*cngxTimelineSkeleton` row. */
481
+ skeletonContext(index, count) {
482
+ const cached = this.skeletonContexts()[index];
483
+ if (cached?.count === count) {
484
+ return cached;
485
+ }
486
+ return { $implicit: index, index, count, side: this.rowSide(index) };
487
+ }
472
488
  /** @internal Track by consumer identity when given, else by reference. */
473
489
  trackItem = (index, item) => this.idAccessor()?.(item) ?? item;
474
490
  constructor() {
475
- if (isDevMode()) {
491
+ if (typeof ngDevMode !== 'undefined' && ngDevMode) {
476
492
  // afterNextRender, not an effect: this is a one-shot authoring check,
477
493
  // and a dead node in the reactive graph is worse than a missed
478
494
  // re-check after a runtime mode swap nobody does.
479
495
  afterNextRender(() => {
480
496
  if (this.mode() === 'activity' && this.placement() === 'alternate') {
481
- console.warn('[cngx-timeline] placement="alternate" is ignored in mode="activity" - ' +
497
+ cngxDevWarn('CNGX3013', '[cngx-timeline] placement="alternate" is ignored in mode="activity" - ' +
482
498
  'alternating a scan-feed defeats the scan, so every row renders at the ' +
483
499
  'start side. Use mode="narrative" to alternate.');
484
500
  }
@@ -502,7 +518,7 @@ class CngxTimeline {
502
518
  state: inject(CngxTimeline).asyncState,
503
519
  }),
504
520
  },
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 });
521
+ ], 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 });
506
522
  }
507
523
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTimeline, decorators: [{
508
524
  type: Component,
@@ -533,11 +549,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
533
549
  // Aliased inputs leave the raw attribute behind, naming the role-less host.
534
550
  '[attr.aria-label]': 'null',
535
551
  '[attr.aria-labelledby]': 'null',
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"] }]
552
+ }, 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"] }]
537
553
  }], 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 }] }] } });
538
554
 
539
555
  /**
540
- * @module @cngx/ui/timeline
556
+ * @module `@cngx/ui/timeline`
541
557
  */
542
558
 
543
559
  /**