@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 +1 @@
1
- {"version":3,"file":"cngx-ui-data-grid-accordion.mjs","sources":["../../../projects/ui/data-grid-accordion/data-grid-accordion.token.ts","../../../projects/ui/data-grid-accordion/config/data-grid-accordion.config.defaults.ts","../../../projects/ui/data-grid-accordion/config/inject-data-grid-accordion-config.ts","../../../projects/ui/data-grid-accordion/data-grid-footer.component.ts","../../../projects/ui/data-grid-accordion/data-grid-cell.directive.ts","../../../projects/ui/data-grid-accordion/data-grid-header.component.ts","../../../projects/ui/data-grid-accordion/i18n/data-grid-accordion-language-section.ts","../../../projects/ui/data-grid-accordion/i18n/data-grid-accordion-i18n.ts","../../../projects/ui/data-grid-accordion/data-grid-row-busy.directive.ts","../../../projects/ui/data-grid-accordion/data-grid-row-error.directive.ts","../../../projects/ui/data-grid-accordion/data-grid-row.component.ts","../../../projects/ui/data-grid-accordion/data-grid-row.component.html","../../../projects/ui/data-grid-accordion/data-grid-accordion.component.ts","../../../projects/ui/data-grid-accordion/data-grid-sort-header.directive.ts","../../../projects/ui/data-grid-accordion/data-grid-filter.directive.ts","../../../projects/ui/data-grid-accordion/data-grid-filter-field.component.ts","../../../projects/ui/data-grid-accordion/data-grid-filter-field.component.html","../../../projects/ui/data-grid-accordion/data-grid-count.directive.ts","../../../projects/ui/data-grid-accordion/config/provide-data-grid-accordion-config.ts","../../../projects/ui/data-grid-accordion/config/features.ts","../../../projects/ui/data-grid-accordion/public-api.ts","../../../projects/ui/data-grid-accordion/cngx-ui-data-grid-accordion.ts"],"sourcesContent":["import { InjectionToken, type Signal, type WritableSignal } from '@angular/core';\n\nimport type { CngxFilter, CngxSort } from '@cngx/common/data';\n\n/**\n * UI-local context a {@link CngxDataGridAccordion} exposes so each\n * {@link CngxDataGridRow} reads the shared heading level without injecting the\n * concrete group class (cyclic type, blocks Atomic Decompose). Kept separate from\n * the headless `CNGX_ACCORDION` brain contract, which stays skin-agnostic -\n * heading semantics are a grid concern. The shared column template reaches rows\n * through the inherited `--cngx-dga-columns` custom property (CSS cascade), so it\n * needs no signal here.\n *\n * The group also hosts the orthogonal {@link CngxSort} and {@link CngxFilter} atoms and\n * exposes them here as `sort` and `filter`, so `cngxDgaSortHeader` cells drive the sort\n * with no `[cngxSortRef]` and the `cngxDgaFilter` slot writes `filterTerm`. The context\n * still carries state only - the consumer's `computed()` derives the visible + ordered\n * rows.\n *\n * @category ui/data-grid-accordion\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-accordion.token.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridAccordion, CngxDataGridRow, CngxSort, CngxFilter\n */\nexport interface CngxDataGridAccordionContext {\n /** Heading level (2-6) every row's `role=\"heading\"` wrapper reflects via `aria-level`. */\n readonly headingLevel: Signal<number>;\n /**\n * The group's hosted {@link CngxSort}. `cngxDgaSortHeader` cells read its `sorts()`\n * and call `setSort(...)`; a consumer derives the ordered rows from it via `computed()`.\n */\n readonly sort: CngxSort;\n /**\n * The group's hosted {@link CngxFilter}. `[filterPredicate]` feeds its controlled\n * predicate; a consumer reads `filter.predicate()` (or drives `addPredicate` for facet\n * filtering) and derives the visible rows via `computed()`.\n */\n readonly filter: CngxFilter;\n /**\n * The simple text filter term, two-way bindable as `[(filterTerm)]`. The `cngxDgaFilter`\n * input writes it (debounced); a consumer matches it against its own row fields in a\n * `computed()`. Writable so the slot directive can set it.\n */\n readonly filterTerm: WritableSignal<string>;\n}\n\n/**\n * DI token for the {@link CngxDataGridAccordionContext}.\n * {@link CngxDataGridAccordion} provides it via `useExisting`; each\n * {@link CngxDataGridRow} injects it.\n *\n * @category ui/data-grid-accordion\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-accordion.token.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridAccordion, CngxDataGridRow\n */\nexport const CNGX_DATA_GRID_ACCORDION = new InjectionToken<CngxDataGridAccordionContext>(\n 'CNGX_DATA_GRID_ACCORDION',\n);\n","import { InjectionToken } from '@angular/core';\n\nimport type { CngxDataGridAccordionConfig } from './data-grid-accordion.config';\n\n/**\n * Library defaults for the data-grid-accordion configuration cascade. The base\n * default leaves `skin` unset (the flat grid look); consumers move the default\n * via {@link withDataGridSkin}.\n *\n * Exported for intra-lib consumers (`provideDataGridAccordionConfig` merges with\n * this base) but **NOT** re-exported from `public-api.ts` - downstream consumers\n * reach the defaults via `inject(CNGX_DATA_GRID_ACCORDION_CONFIG)` so\n * `provideDataGridAccordionConfig` / `provideDataGridAccordionConfigAt` overrides\n * take precedence.\n *\n * @internal\n */\nexport const CNGX_DATA_GRID_ACCORDION_DEFAULTS: CngxDataGridAccordionConfig = {};\n\n/**\n * App-wide configuration cascade for the data-grid-accordion organism. Resolves\n * in priority order:\n *\n * 1. Per-instance `[skin]` Input binding.\n * 2. `provideDataGridAccordionConfigAt(...)` in a parent component's\n * `viewProviders`.\n * 3. `provideDataGridAccordionConfig(...)` at the application root.\n * 4. Library default (this token's `factory`).\n *\n * `providedIn: 'root'` with a default factory means consumers never need to\n * provide the token explicitly - `inject(CNGX_DATA_GRID_ACCORDION_CONFIG)` always\n * resolves.\n *\n * @category ui/data-grid-accordion\n * @since 0.1.0\n */\nexport const CNGX_DATA_GRID_ACCORDION_CONFIG = new InjectionToken<CngxDataGridAccordionConfig>(\n 'CNGX_DATA_GRID_ACCORDION_CONFIG',\n {\n providedIn: 'root',\n factory: () => CNGX_DATA_GRID_ACCORDION_DEFAULTS,\n },\n);\n","import { inject } from '@angular/core';\n\nimport type { CngxDataGridAccordionConfig } from './data-grid-accordion.config';\nimport { CNGX_DATA_GRID_ACCORDION_CONFIG } from './data-grid-accordion.config.defaults';\n\n/**\n * Convenience accessor for the data-grid-accordion configuration cascade. Runs in\n * injection context; resolves through the priority chain (per-instance Input\n * -> `provideDataGridAccordionConfigAt` -> `provideDataGridAccordionConfig` ->\n * library defaults). Equivalent to `inject(CNGX_DATA_GRID_ACCORDION_CONFIG)` -\n * the helper exists so consumers don't import the token directly. Mirrors\n * `injectAccordionConfig` in `@cngx/ui/accordion`.\n *\n * ```ts\n * export class CngxDataGridAccordion {\n * private readonly config = injectDataGridAccordionConfig();\n * readonly skin = input<CngxDataGridSkin | undefined>(undefined);\n * }\n * ```\n *\n * @category ui/data-grid-accordion\n * @since 0.1.0\n */\nexport function injectDataGridAccordionConfig(): CngxDataGridAccordionConfig {\n return inject(CNGX_DATA_GRID_ACCORDION_CONFIG);\n}\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\n/**\n * The footer row of a {@link CngxDataGridAccordion}. Lays its projected\n * `cngxDgaCell`s out on the shared `--cngx-dga-columns` grid, so a sum or count\n * cell lines up with the column it totals. It is the designated host for a\n * consumer-supplied `aria-live` region (row count, running totals, load status). The\n * component ships no live producer - the region element and its content are the\n * consumer's, so any state it announces stays owned outside this structural shell.\n *\n * @category ui/data-grid-accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-footer.component.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridAccordion, CngxDgCell\n */\n@Component({\n selector: 'cngx-dga-footer',\n exportAs: 'cngxDgaFooter',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: '<ng-content />',\n host: {\n class: 'cngx-dga-footer',\n },\n})\nexport class CngxDataGridFooter {}\n","import { Directive, ElementRef, inject, input } from '@angular/core';\n\nimport { coerceBooleanProperty, nextUid } from '@cngx/core/utils';\n\n/** Inline alignment of a data-grid cell within its column track. */\nexport type CngxDgCellAlign = 'start' | 'center' | 'end';\n\n/**\n * Column-sizing intent for a data-grid track, authored on the `cngxDgaCell`s of the\n * {@link CngxDataGridHeader} (the single column source). The group derives the\n * shared `grid-template-columns` from these:\n *\n * - `grow` - the flexible column, `minmax(0, 1fr)`; shares the remaining width.\n * - `fit` - content-sized, `auto`; as wide as its content needs.\n * - `sm` / `md` / `lg` - fixed tracks from the `--cngx-dga-col-sm|-md|-lg` tokens\n * (mirrors the `size` vocabulary of `CngxTag` / `CngxIcon` / `CngxAvatar`).\n *\n * Unset falls back to the derived default: the `primary` column grows, every other\n * column fits.\n */\nexport type CngxDgCellTrack = 'grow' | 'fit' | 'sm' | 'md' | 'lg';\n\n/**\n * A single cell in a {@link CngxDataGridRow}, {@link CngxDataGridHeader}, or\n * {@link CngxDataGridFooter}. Each cell occupies one track of the shared\n * `grid-template-columns` contract; `[align]` sets its inline alignment and\n * `[primary]` marks the one cell that names the row.\n *\n * The cell is visual: the row stays a single `cngxAccordionPanel` button and one\n * `role=\"region\"`, so marking a cell `primary` only points the row's\n * `aria-labelledby` at it - it adds no interactive semantics. Exactly one cell\n * per row should carry `primary`, so the row's accessible name is that cell's\n * text alone rather than every cell concatenated.\n *\n * @category ui/data-grid-accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-cell.directive.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridRow\n */\n@Directive({\n selector: '[cngxDgaCell]',\n exportAs: 'cngxDgaCell',\n standalone: true,\n host: {\n class: 'cngx-dga-cell',\n '[id]': 'cellId',\n '[attr.data-align]': 'align()',\n '[attr.data-primary]': \"primary() ? '' : null\",\n },\n})\nexport class CngxDgCell {\n /** Inline alignment within the column track: `start` (default), `center`, `end`. */\n readonly align = input<CngxDgCellAlign>('start');\n\n /**\n * Column-sizing intent read off the header cells to derive the shared grid\n * template ({@link CngxDgCellTrack}: `grow` / `fit` / `sm` / `md` / `lg`).\n * Authored on the {@link CngxDataGridHeader} cells; row and footer cells inherit\n * the derived track by position and can leave it unset. Unset falls back to the\n * default (primary column grows, the rest fit). Purely a sizing hint - no host\n * binding, the group reads the signal directly.\n */\n readonly col = input<CngxDgCellTrack | undefined>(undefined);\n /**\n * Marks this cell as the row's accessible name. The row's `cngxAccordionPanel`\n * button and its `role=\"region\"` both point `aria-labelledby` at the primary\n * cell, so a screen reader announces one meaningful label per row instead of\n * the concatenated text of every cell.\n */\n readonly primary = input(false, { transform: coerceBooleanProperty });\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n /**\n * Stable id the row's `aria-labelledby` references. Reuses a consumer-supplied\n * `id` when present (so the IDREF stays what the consumer expects), otherwise\n * generates one. Read by {@link CngxDataGridRow} to resolve the primary cell.\n */\n readonly cellId = this.element.id || nextUid('cngx-dga-cell-');\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { CngxDgCell } from './data-grid-cell.directive';\n\n/**\n * The column-header row of a {@link CngxDataGridAccordion}. Lays its projected\n * `cngxDgaCell`s out on the shared `--cngx-dga-columns` grid so the labels align with\n * the data columns below. It is exposed to assistive tech (no `aria-hidden`) so a\n * `cngxDgaSortHeader` cell is reachable: a focusable sort control inside an\n * `aria-hidden` subtree would be pruned from the accessibility tree and fail\n * `aria-hidden-focus`, and `aria-hidden` cannot be undone by a descendant. The plain\n * label cells now read like a table header row - a small, acceptable trade for keeping\n * the sort controls operable. Each data row still announces its own name through its\n * primary cell, so the disclosure list stays legible.\n *\n * It is also the single **column source**: the group reads these header cells and\n * derives the shared `grid-template-columns` from each cell's `col` track intent\n * (`grow` / `fit` / `sm` / `md` / `lg`), so the columns are defined where they are\n * labelled rather than in a separate template string.\n *\n * @category ui/data-grid-accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-header.component.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridAccordion, CngxDgCell\n */\n@Component({\n selector: 'cngx-dga-header',\n exportAs: 'cngxDgaHeader',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: '<ng-content />',\n host: {\n class: 'cngx-dga-header',\n },\n})\nexport class CngxDataGridHeader {\n /**\n * The projected header cells, in column order. Read by\n * {@link CngxDataGridAccordion} to derive the shared grid template from each\n * cell's `col` track intent.\n */\n readonly cells = contentChildren(CngxDgCell);\n}\n","import type { CngxMessage } from '@cngx/core/i18n';\n\n/**\n * The data-grid-accordion section of a {@link CngxLanguagePack}: the copy of\n * every `@cngx/ui/data-grid-accordion` part. It feeds the `labels` of\n * `CNGX_DATA_GRID_ACCORDION_CONFIG`; a key set through\n * `withDataGridAccordionLabels` still wins. Messages use `{name}`\n * placeholders, numbers are formatted for the locale.\n *\n * @category ui/data-grid-accordion/i18n\n * @since 0.1.0\n * @relatedTo CNGX_DATA_GRID_ACCORDION_CONFIG, withDataGridAccordionLabels\n */\nexport interface CngxDataGridAccordionLanguageSection {\n /** `{count}`: the `CngxDgaCount` live-region text for a visible-row count. */\n readonly count: CngxMessage;\n /** Default of `[cngxDgaCountSingular]`. */\n readonly countSingular: string;\n /** Default of `[cngxDgaCountPlural]`. */\n readonly countPlural: string;\n /** `{count}`, `{noun}`: the count with a noun bound on `CngxDgaCount`. */\n readonly countWithNoun: CngxMessage;\n /** Default of `[cngxDgaSortStatusNotSorted]`, the described sort status while unsorted. */\n readonly sortNone: string;\n /** Default of `[cngxDgaSortStatusAscending]`. */\n readonly sortAscending: string;\n /** Default of `[cngxDgaSortStatusDescending]`. */\n readonly sortDescending: string;\n /** `{label}`: default of `[cngxDgaSortAnnounceAscending]`, `{label}` is the column name. */\n readonly sortAnnouncedAscending: string;\n /** `{label}`: default of `[cngxDgaSortAnnounceDescending]`. */\n readonly sortAnnouncedDescending: string;\n /** `{label}`: default of `[cngxDgaSortAnnounceCleared]`. */\n readonly sortAnnouncedCleared: string;\n /** The column name of a sort announcement when the header has no label and no text. */\n readonly unlabeledColumn: string;\n /** Default of the `CngxDgaFilterField` visible `[label]`. */\n readonly filter: string;\n /** Default of `[cngxDgaFilterLabel]`, the filter box accessible name. */\n readonly filterRows: string;\n /** Default of the `CngxDataGridRow` `[errorMessage]`. */\n readonly rowLoadFailed: string;\n /** Decorative tag the skins draw before a row's detail region. */\n readonly note: string;\n}\n\n/**\n * The English data-grid-accordion section: the single source of the entry's\n * English copy. The `CNGX_DATA_GRID_ACCORDION_CONFIG` labels default to it.\n *\n * @category ui/data-grid-accordion/i18n\n * @since 0.1.0\n * @relatedTo CNGX_DATA_GRID_ACCORDION_CONFIG\n */\nexport const CNGX_DATA_GRID_ACCORDION_LANGUAGE_EN: CngxDataGridAccordionLanguageSection = {\n count: { one: '{count} result', other: '{count} results' },\n countSingular: 'result',\n countPlural: 'results',\n countWithNoun: '{count} {noun}',\n sortNone: 'not sorted, activate to sort ascending',\n sortAscending: 'sorted ascending, activate to sort descending',\n sortDescending: 'sorted descending, activate to sort ascending',\n sortAnnouncedAscending: 'Sorted by {label} ascending',\n sortAnnouncedDescending: 'Sorted by {label} descending',\n sortAnnouncedCleared: 'Sorting by {label} cleared',\n unlabeledColumn: 'this column',\n filter: 'Filter',\n filterRows: 'Filter rows',\n rowLoadFailed: 'Could not load',\n note: 'NOTE',\n};\n\ndeclare module '@cngx/core/i18n' {\n interface CngxLanguagePack {\n readonly dataGridAccordion: CngxDataGridAccordionLanguageSection;\n }\n}\n","import { inject, InjectionToken, type Signal } from '@angular/core';\n\nimport { createLanguageSection, createSectionBundle, formatMessage } from '@cngx/core/i18n';\nimport { createFilledOverrideMerge } from '@cngx/core/utils';\n\nimport type { CngxDataGridAccordionLabels } from '../config/data-grid-accordion.config';\nimport { CNGX_DATA_GRID_ACCORDION_CONFIG } from '../config/data-grid-accordion.config.defaults';\nimport {\n CNGX_DATA_GRID_ACCORDION_LANGUAGE_EN,\n type CngxDataGridAccordionLanguageSection,\n} from './data-grid-accordion-language-section';\n\n/** @internal Turns a data-grid-accordion section into the config labels for a locale. Pure. */\nexport function dataGridAccordionLabelsFrom(\n section: CngxDataGridAccordionLanguageSection,\n locale: string,\n): CngxDataGridAccordionLabels {\n return {\n count: (count) => formatMessage(section.count, { count }, locale),\n countSingular: section.countSingular,\n countPlural: section.countPlural,\n countWithNoun: (count, noun) => formatMessage(section.countWithNoun, { count, noun }, locale),\n sortNone: section.sortNone,\n sortAscending: section.sortAscending,\n sortDescending: section.sortDescending,\n sortAnnouncedAscending: section.sortAnnouncedAscending,\n sortAnnouncedDescending: section.sortAnnouncedDescending,\n sortAnnouncedCleared: section.sortAnnouncedCleared,\n unlabeledColumn: section.unlabeledColumn,\n filter: section.filter,\n filterRows: section.filterRows,\n rowLoadFailed: section.rowLoadFailed,\n note: section.note,\n };\n}\n\n/** @internal The data-grid-accordion section of the active pack over the English section. */\nconst injectDataGridAccordionLanguage = createLanguageSection(\n 'dataGridAccordion',\n CNGX_DATA_GRID_ACCORDION_LANGUAGE_EN,\n);\n\n/** @internal Builds and reads the section labels, formatted for the reading locale. */\nconst dataGridAccordionBundle = createSectionBundle<\n CngxDataGridAccordionLanguageSection,\n CngxDataGridAccordionLabels\n>({\n section: injectDataGridAccordionLanguage,\n toBundle: dataGridAccordionLabelsFrom,\n});\n\n/**\n * @internal The section labels of the active pack, formatted for the app\n * locale. Private: consumers override copy through `withDataGridAccordionLabels`.\n */\nconst DATA_GRID_ACCORDION_SECTION_LABELS = new InjectionToken<Signal<CngxDataGridAccordionLabels>>(\n 'CngxDataGridAccordionSectionLabels',\n {\n providedIn: 'root',\n factory: () => dataGridAccordionBundle.build(),\n },\n);\n\n/**\n * @internal The data-grid-accordion labels at the reading site: the active\n * pack's section formatted for the locale of the injector that reads it, with\n * the `CNGX_DATA_GRID_ACCORDION_CONFIG` labels on top. A key the config sets\n * wins; a key it leaves unset, `null` or `undefined` reads the section.\n * Injection context required.\n */\nexport function injectDataGridAccordionLabels(): Signal<CngxDataGridAccordionLabels> {\n const section = dataGridAccordionBundle.resolve(inject(DATA_GRID_ACCORDION_SECTION_LABELS));\n return createFilledOverrideMerge<CngxDataGridAccordionLabels>(\n section,\n inject(CNGX_DATA_GRID_ACCORDION_CONFIG).labels,\n );\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\nimport type { CngxDgaRowStateContext } from './data-grid-row-state-context';\n\n/**\n * Structural slot for a {@link CngxDataGridRow}'s busy state. The row renders it\n * inside the detail region while the row's `[state]` is `loading` (a first-load\n * skeleton that replaces the body) or `refreshing` (a subtle overlay with the body\n * kept mounted). Absent, the row falls back to its CSS skeleton default.\n *\n * The region already carries `aria-busy` as a `computed()`, so the busy visual is\n * decorative (`aria-hidden`); assistive tech learns the busy state from `aria-busy`,\n * not from this template. The template receives a {@link CngxDgaRowStateContext}\n * whose `$implicit` is the current status (`loading` / `refreshing`), so one\n * override can distinguish the two.\n *\n * ```html\n * <cngx-dga-row [state]=\"report.status()\">\n * <span cngxDgaCell primary>Report</span>\n * <ng-template cngxDgaRowBusy let-status><my-skeleton [dim]=\"status === 'refreshing'\" /></ng-template>\n * {{ report.data() }}\n * </cngx-dga-row>\n * ```\n *\n * @category ui/data-grid-accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-row-busy.directive.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridRow, CngxDgaRowError\n */\n@Directive({\n selector: 'ng-template[cngxDgaRowBusy]',\n exportAs: 'cngxDgaRowBusy',\n standalone: true,\n})\nexport class CngxDgaRowBusy {\n readonly templateRef = inject(TemplateRef<CngxDgaRowStateContext>);\n\n static ngTemplateContextGuard(\n _dir: CngxDgaRowBusy,\n ctx: unknown,\n ): ctx is CngxDgaRowStateContext {\n return true;\n }\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\nimport type { CngxDgaRowStateContext } from './data-grid-row-state-context';\n\n/**\n * Structural slot for a {@link CngxDataGridRow}'s error state. The row renders it\n * inside the detail region, in a `role=\"alert\"` container, when the row's `[state]`\n * is `error` - so the error body is announced to assistive tech the moment it\n * appears, even if the row was never expanded. Absent, the row renders a minimal\n * CSS error affordance with the resolved `errorMessage`.\n *\n * The template receives a {@link CngxDgaRowStateContext} whose `message` is the\n * resolved error string, so the override can render the announced text (and a\n * retry) without re-deriving it.\n *\n * ```html\n * <cngx-dga-row [state]=\"report.status()\">\n * <span cngxDgaCell primary>Report</span>\n * <ng-template cngxDgaRowError let-message=\"message\">\n * {{ message }} <button type=\"button\" (click)=\"retry()\">Retry</button>\n * </ng-template>\n * </cngx-dga-row>\n * ```\n *\n * @category ui/data-grid-accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-row-error.directive.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridRow, CngxDgaRowBusy\n */\n@Directive({\n selector: 'ng-template[cngxDgaRowError]',\n exportAs: 'cngxDgaRowError',\n standalone: true,\n})\nexport class CngxDgaRowError {\n readonly templateRef = inject(TemplateRef<CngxDgaRowStateContext>);\n\n static ngTemplateContextGuard(\n _dir: CngxDgaRowError,\n ctx: unknown,\n ): ctx is CngxDgaRowStateContext {\n return true;\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n contentChildren,\n inject,\n input,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { nextUid, type AsyncStatus, type CngxAsyncState } from '@cngx/core/utils';\nimport { CNGX_ACCORDION, CngxAccordionPanel } from '@cngx/common/interactive';\n\nimport type { CngxDataGridSeverity } from './config/data-grid-accordion.config';\nimport { injectDataGridAccordionLabels } from './i18n/data-grid-accordion-i18n';\nimport { CNGX_DATA_GRID_ACCORDION } from './data-grid-accordion.token';\nimport { CngxDgCell } from './data-grid-cell.directive';\nimport { CngxDgaRowBusy } from './data-grid-row-busy.directive';\nimport { CngxDgaRowError } from './data-grid-row-error.directive';\n\n/**\n * A disclosure row in a {@link CngxDataGridAccordion}. Renders the APG-correct\n * trio: a `role=\"heading\"` wrapper carrying the group's `aria-level`, a\n * `cngxAccordionPanel` summary `<button>` that is the full-row disclosure\n * trigger, and a `role=\"region\"` detail zone named back at the primary cell via\n * `aria-labelledby`. Expansion is derived from the coordinator (Pillar 1); the\n * button self-wires keyboard nav through the registration brain, so arrow keys\n * rove across rows even though each summary lives in its own component view.\n *\n * The projected `cngxDgaCell`s are laid OVER the trigger, not inside it: a\n * `<button>` accepts phrasing content only, so a cell holding flow content (a\n * chart, a table, a nested list) could never live in the button. The cells share\n * the button's grid row, painted above it, and are `pointer-events: none`, so a\n * click on a passive cell falls through to the trigger and toggles the row, while\n * interactive cell content (a link, a control) re-enables its own clicks. The\n * cell marked `primary` supplies the row's accessible name through the button's\n * `aria-labelledby` (falling back to the whole cells row when none is marked), so\n * a screen reader hears a list of expandable sections rather than a wall of cell\n * text.\n *\n * @category ui/data-grid-accordion\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-row.component.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridAccordion, CngxDgCell, CngxAccordionPanel\n * @slot cngxDgaRowBusy Rendered over the row while its detail loads.\n * @slot cngxDgaRowError Rendered when the row's detail failed to load.\n *\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/master-detail</example-url>\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/report</example-url>\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/lazy-row</example-url>\n */\n@Component({\n selector: 'cngx-dga-row',\n exportAs: 'cngxDgaRow',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxAccordionPanel, NgTemplateOutlet],\n templateUrl: './data-grid-row.component.html',\n styleUrl: './data-grid-row.component.css',\n host: {\n class: 'cngx-dga-row',\n '[attr.data-expanded]': \"expanded() ? '' : null\",\n '[attr.data-severity]': 'severity() ?? null',\n },\n})\nexport class CngxDataGridRow {\n protected readonly labels = injectDataGridAccordionLabels();\n\n /**\n * Stable id this row registers under in the coordinator's open-set. Defaults to\n * a generated id; bind `[panelId]` to a stable row value to address the row\n * through the group's `[(openIds)]` model - so a sorted row stays open while it\n * moves. Mirrors `CngxAccordionItem.panelId`.\n */\n readonly panelId = input<string>(nextUid('cngx-dga-row-'));\n /**\n * Semantic severity reflected onto the `[data-severity]` host attribute for\n * skins that render it (the `log-stream` skin fills a coloured left edge from\n * the matching `--cngx-color-danger` / `-warning` / `-info` token). Purely\n * visual, no ARIA impact.\n */\n readonly severity = input<CngxDataGridSeverity | undefined>(undefined);\n /**\n * The row's async lifecycle, communicated to assistive tech. Accepts a raw\n * {@link AsyncStatus} or a {@link CngxAsyncState} the consumer already owns - the\n * row reads only the status discriminator, never the payload, so it stays\n * non-generic. A pure data input (the row injects no `CNGX_STATEFUL`), so no\n * empty-string transform: a bare string status must survive untouched. Mirrors\n * `CngxAccordionItem.state`; the consumer wires the fetch, the row only\n * communicates the state it is handed.\n */\n readonly state = input<AsyncStatus | CngxAsyncState<unknown> | undefined>(undefined);\n /**\n * Error message announced in the error state. Unbound, the `rowLoadFailed`\n * label applies.\n */\n readonly errorMessage = input<string | undefined>(undefined);\n\n private readonly accordion = inject(CNGX_ACCORDION);\n protected readonly grid = inject(CNGX_DATA_GRID_ACCORDION);\n\n protected readonly regionId = nextUid('cngx-dga-region-');\n protected readonly headerId = nextUid('cngx-dga-header-');\n protected readonly cellsId = nextUid('cngx-dga-cells-');\n\n /**\n * Projected cells; the `primary` one supplies the row's accessible name. Public\n * so {@link CngxDataGridAccordion} can read the primary-column index (for the\n * grow default) and use the first row as the column source when no header exists.\n */\n readonly cells = contentChildren(CngxDgCell);\n\n /**\n * IDREF of the cell marked `primary`, or `null` when none is. Feeds\n * {@link summaryLabelledBy}, the single name source both the summary button and the\n * detail region reference. A primitive, so `Object.is` dedupes.\n */\n protected readonly primaryId = computed<string | null>(\n () => this.cells().find((cell) => cell.primary())?.cellId ?? null,\n );\n\n /**\n * Accessible name source for the summary button AND the detail region. The cells are\n * laid over the button rather than inside it, so the button has no intrinsic text to\n * name itself from - this points at the `primary` cell when one exists, else at the\n * whole cells row (`cellsId`), reproducing the old name-from-projected-content\n * fallback. Both surfaces read it so they stay symmetric: a no-primary row names both\n * by the cells row rather than naming the button and leaving the region blank. A\n * primitive, so `Object.is` dedupes.\n */\n protected readonly summaryLabelledBy = computed<string>(() => this.primaryId() ?? this.cellsId);\n\n /** Whether this row's region is open, derived from the coordinator's open-set. */\n protected readonly expanded = computed(() => this.accordion.isOpen(this.panelId()));\n\n /** Per-instance busy slot; absent means the CSS skeleton default renders. */\n protected readonly busySlot = contentChild(CngxDgaRowBusy);\n /** Per-instance error slot; absent means the CSS error affordance default renders. */\n protected readonly errorSlot = contentChild(CngxDgaRowError);\n /** Resolved busy template: per-instance slot -> null (CSS skeleton default). */\n protected readonly busyTemplate = computed(() => this.busySlot()?.templateRef ?? null);\n /** Resolved error template: per-instance slot -> null (CSS error default). */\n protected readonly errorTemplate = computed(() => this.errorSlot()?.templateRef ?? null);\n\n /**\n * Row async status, normalised to an {@link AsyncStatus} from either the raw enum\n * or a {@link CngxAsyncState} object form (reads its `status()` signal). A\n * primitive, so `Object.is` dedupes - no `equal`. Mirrors `CngxAccordionItem`.\n */\n protected readonly status = computed<AsyncStatus | undefined>(() => {\n const state = this.state();\n if (state == null) {\n return undefined;\n }\n return typeof state === 'string' ? state : state.status();\n });\n /**\n * @internal - text of the `role=\"alert\"` error region. A bound `errorMessage`\n * applies at once; the label default is read untracked and keyed on the status,\n * so a language switch never re-speaks a shown error and the next error speaks\n * the new language.\n */\n protected readonly resolvedErrorMessage = computed(() => {\n const own = this.errorMessage();\n this.status();\n return own ?? untracked(() => this.labels().rowLoadFailed);\n });\n /**\n * `aria-busy` driver. Mirrors `CngxAsyncState.isBusy` (loading|refreshing|pending)\n * so the string and object input forms agree. Boolean, no `equal`.\n */\n protected readonly busy = computed(() => {\n const status = this.status();\n return status === 'loading' || status === 'refreshing' || status === 'pending';\n });\n /**\n * Region visibility. Hidden while collapsed, EXCEPT in the error state: an errored\n * row un-hides its region so the `role=\"alert\"` mounts into the live a11y tree and\n * is announced even when the row was never opened (Pillar 2 - an error is never\n * silenced by a collapsed row).\n */\n protected readonly regionHidden = computed(() => !this.expanded() && this.status() !== 'error');\n}\n","<div role=\"heading\" [attr.aria-level]=\"grid.headingLevel()\" class=\"cngx-dga-row__heading\">\n <button\n type=\"button\"\n cngxAccordionPanel\n class=\"cngx-dga-row__summary\"\n [panelId]=\"panelId()\"\n [controls]=\"regionId\"\n [id]=\"headerId\"\n [attr.aria-labelledby]=\"summaryLabelledBy()\"\n >\n <span class=\"cngx-dga-row__chevron-slot\" aria-hidden=\"true\">\n <span class=\"cngx-dga-row__chevron\"></span>\n </span>\n </button>\n <!-- Cells are laid OVER the trigger, not inside it: a `<button>` accepts phrasing\n content only, so a cell holding flow content (a table, a chart's inline data\n table, a nested list) could never live inside the summary. The wrapper spans the\n same grid cell as the button and re-exposes the shared column tracks via subgrid;\n it is `pointer-events: none` so a click on a cell falls through to the button and\n toggles the row, while genuinely interactive cell content re-enables its own\n clicks (see the CSS). The wrapper's id backs the summary's `aria-labelledby` when\n no cell is marked `primary`, preserving today's name-from-content fallback. -->\n <div class=\"cngx-dga-row__cells\" [id]=\"cellsId\">\n <ng-content select=\"[cngxDgaCell]\" />\n </div>\n</div>\n\n<div\n role=\"region\"\n class=\"cngx-dga-row__region\"\n [id]=\"regionId\"\n [attr.aria-labelledby]=\"summaryLabelledBy()\"\n [attr.aria-busy]=\"busy() ? 'true' : null\"\n [attr.data-note-label]=\"labels().note\"\n [hidden]=\"regionHidden()\"\n>\n @switch (status()) {\n @case ('error') {\n <div class=\"cngx-dga-row__error\" role=\"alert\">\n @if (errorTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: 'error', message: resolvedErrorMessage() }\"\n />\n } @else {\n <span class=\"cngx-dga-row__error-default\">{{ resolvedErrorMessage() }}</span>\n }\n </div>\n }\n @case ('loading') {\n <div class=\"cngx-dga-row__busy\" aria-hidden=\"true\">\n @if (busyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: 'loading', message: '' }\"\n />\n } @else {\n <span class=\"cngx-dga-row__skeleton\"></span>\n }\n </div>\n }\n @default {\n <ng-content />\n @if (status() === 'refreshing') {\n <div class=\"cngx-dga-row__refreshing\" aria-hidden=\"true\">\n @if (busyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: 'refreshing', message: '' }\"\n />\n } @else {\n <span class=\"cngx-dga-row__refresh-indicator\"></span>\n }\n </div>\n }\n }\n }\n</div>\n","import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n contentChildren,\n effect,\n ElementRef,\n inject,\n input,\n model,\n PLATFORM_ID,\n type Signal,\n signal,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { coerceNumberProperty } from '@cngx/core/utils';\nimport { CngxScrollEdges, observeResize, type ResizeObserverHost } from '@cngx/common/layout';\nimport { CngxAccordion } from '@cngx/common/interactive';\nimport { CngxFilter, CngxSort } from '@cngx/common/data';\n\nimport {\n CNGX_DATA_GRID_ACCORDION,\n type CngxDataGridAccordionContext,\n} from './data-grid-accordion.token';\nimport type { CngxDataGridSkin } from './config/data-grid-accordion.config';\nimport { injectDataGridAccordionConfig } from './config/inject-data-grid-accordion-config';\nimport { CngxDataGridFooter } from './data-grid-footer.component';\nimport { CngxDataGridHeader } from './data-grid-header.component';\nimport { CngxDataGridRow } from './data-grid-row.component';\nimport type { CngxDgCellTrack } from './data-grid-cell.directive';\n\n/**\n * Data-grid accordion group. A disclosure accordion whose header, rows, and\n * footer all share one `grid-template-columns` contract, so N arbitrary cells\n * align down the grid - the ceiling the accordion `data-grid` skin could never\n * reach with its fixed three slots. Hosts the headless {@link CngxAccordion}\n * brain via `hostDirectives` (so `CNGX_ACCORDION` and roving keyboard nav come\n * with it), forwards `[multi]` and the controlled `[(openIds)]` model, publishes\n * the column template onto the inherited `--cngx-dga-columns` property, and\n * reflects `[skin]` onto `[data-skin]`. Projects its {@link CngxDataGridHeader},\n * {@link CngxDataGridRow}s, and {@link CngxDataGridFooter} through a single\n * `<ng-content />`; it owns no rendering beyond providing\n * {@link CNGX_DATA_GRID_ACCORDION} so rows read the shared heading level.\n *\n * It is a disclosure accordion, not a data grid: no `role=\"grid\"`, no cell edit,\n * no selection model, no keyboard grid navigation. It hosts the orthogonal\n * {@link CngxSort} atom as a second `hostDirective` and exposes it on\n * {@link CNGX_DATA_GRID_ACCORDION} as `sort`, so header cells become sortable with\n * one `cngxDgaSortHeader` attribute (no `[cngxSortRef]` plumbing) and a consumer can\n * bind the controlled `[sortActive]` / `[sortDirection]` inputs and read `(sortChange)`.\n * For an uncontrolled grid that just needs a starting order, `[initialSort]=\"{ active,\n * direction }\"` seeds the sort once and then yields to header clicks.\n * It hosts the orthogonal {@link CngxFilter} atom the same way, exposed as `filter`:\n * `[filterPredicate]` forwards to its controlled predicate, `(filterChange)` re-emits,\n * and a projected `cngxDgaFilter` input two-way-binds the simple `[(filterTerm)]`.\n * The group only publishes sort/filter state - the consumer still derives the\n * visible + ordered rows via a `computed()` and owns the `@for`; the open set is keyed\n * by row value so a sorted or filtered row stays open while it moves.\n *\n * `injectSmartDataSource` cannot inject the group's hosted atoms: injection\n * resolves upward, and `sort` / `filter` live on this element below the\n * consumer's injector. Two routes reach them: derive the rows yourself from a\n * `viewChild` + `computed()` (the group's prescribed shape), or hand the atoms\n * to the source through its options thunks -\n * `injectSmartDataSource(rows, { sort: () => grid()?.sort, filter: () => grid()?.filter })`.\n *\n * The column widths are declared on the header cells via `col`\n * (`grow` / `fit` / `sm` / `md` / `lg`); the group derives the shared template from\n * them, so no `grid-template-columns` string is needed for the common case.\n *\n * For a **bounded-height** grid, bind `[maxBlockSize]` (a number is `px`, a string is\n * any CSS length): the grid becomes its own vertical scrollport, the column head pins\n * to the top and the footer to the bottom, and only the rows scroll between them - the\n * sum footer stays visible, not just the head. The input reflects onto\n * `--cngx-dga-max-block-size`, the same token a skin may set directly. This is the only\n * way to pin the head - `[cngxStickyHeader]` from `@cngx/common/layout` is the wrong\n * tool here: the group is its own scrollport, so a header would resolve its sticky\n * against that scrollport, and an unbounded (content-height) grid has nothing to stick\n * to. Leave `[maxBlockSize]` unbound and the grid stays content-height, byte-identical.\n * While rows are scrolled away above or remain below, the pinned head / foot cast a\n * shadow (`--cngx-dga-head-shadow` / `--cngx-dga-foot-shadow`); with no hidden rows in\n * that direction there is none. Keyboard focus lands clear of both bands: the host pads\n * its scrollport by the measured head / foot size plus `--cngx-dga-focus-clearance`.\n *\n * A grid narrower than its columns (`--cngx-dga-min-width`) scrolls sideways; the host\n * then fades the inline edge that still hides columns (`--cngx-dga-edge-fade-size`,\n * never below `--cngx-dga-edge-fade-min` opacity), mirrored under `dir=\"rtl\"`. Both\n * affordances come from the composed {@link CngxScrollEdges} atom, whose\n * `data-scroll-block-start` / `-block-end` / `-inline-start` / `-inline-end` host\n * attributes are present only while content is hidden toward that edge; under forced\n * colors the fade is dropped and the shadows are forced away.\n *\n * ```html\n * <cngx-data-grid-accordion [multi]=\"true\">\n * <cngx-dga-header>\n * <span cngxDgaCell col=\"sm\">ID</span>\n * <span cngxDgaCell col=\"grow\">Name</span>\n * <span cngxDgaCell col=\"md\" align=\"end\">Amount</span>\n * </cngx-dga-header>\n * <cngx-dga-row panelId=\"1\">\n * <span cngxDgaCell>1</span>\n * <span cngxDgaCell primary>Alpha</span>\n * <span cngxDgaCell align=\"end\">120.00</span>\n * Detail for row 1\n * </cngx-dga-row>\n * <cngx-dga-footer>\n * <span cngxDgaCell>Total</span>\n * </cngx-dga-footer>\n * </cngx-data-grid-accordion>\n * ```\n *\n * @category ui/data-grid-accordion\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-accordion.component.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridRow, CngxDgCell, CngxDataGridHeader, CngxDataGridFooter, CngxAccordion, CngxSort, CngxFilter, CngxDgaSortHeader, CngxDgaFilter, CngxDgaCount, CngxScrollEdges\n *\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sticky-head</example-url>\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/scroll-edges-bounded</example-url>\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/scroll-edges-narrow</example-url>\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/bound-sort-filter</example-url>\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/master-detail</example-url>\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/spreadsheet</example-url>\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/density</example-url>\n */\n@Component({\n selector: 'cngx-data-grid-accordion',\n exportAs: 'cngxDataGridAccordion',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n // Skin CSS lives after the base so the unlayered `[data-skin]` @scope rules win\n // the ties by source order (mirrors the accordion / tabs skin split).\n styleUrls: ['./data-grid-accordion.component.css', './data-grid-accordion-skins.css'],\n hostDirectives: [\n { directive: CngxAccordion, inputs: ['multi', 'openIds'], outputs: ['openIdsChange'] },\n // Sort is the orthogonal `@cngx/common/data` atom, hosted here so header cells reach\n // it through the context token with no `[cngxSortRef]`. Its controlled inputs are\n // re-exposed as `[sortActive]` / `[sortDirection]`; the primary change re-emits as\n // `(sortChange)`. The group publishes state only - derivation stays with the consumer.\n {\n directive: CngxSort,\n inputs: [\n 'cngxSortActive: sortActive',\n 'cngxSortDirection: sortDirection',\n 'cngxSortInitial: initialSort',\n 'multiSort',\n ],\n outputs: ['sortChange'],\n },\n // Filter mirrors sort: the `CngxFilter` predicate atom hosted here, its controlled\n // predicate re-exposed as `[filterPredicate]` and its change re-emitted as\n // `(filterChange)`. Consumers reach its combined predicate (and the multi-predicate\n // `addPredicate` API for facet filtering) through the context. The simple text path\n // is the separate `[(filterTerm)]` model below, which the `cngxDgaFilter` slot writes.\n {\n directive: CngxFilter,\n inputs: ['cngxFilter: filterPredicate'],\n outputs: ['filterChange'],\n },\n // The host is the scrollport; the atom reflects `data-scroll-*` on it for the edge CSS.\n { directive: CngxScrollEdges },\n ],\n providers: [{ provide: CNGX_DATA_GRID_ACCORDION, useExisting: CngxDataGridAccordion }],\n // The inner `__grid` is the single grid that owns the tracks; the host stays the\n // horizontal scroll container. Header, rows, and footer are `subgrid` items of it\n // (see the CSS), so content-sized (`fit`) columns resolve once and align across\n // all three instead of each grid sizing them independently.\n template: '<div class=\"cngx-data-grid-accordion__grid\"><ng-content /></div>',\n host: {\n class: 'cngx-data-grid-accordion',\n '[attr.data-skin]': 'resolvedSkin() ?? null',\n '[style.--cngx-dga-columns]': 'resolvedColumns()',\n '[style.--cngx-dga-max-block-size]': 'maxBlockSizeVar()',\n '[style.--cngx-dga-head-block-size]': 'headBlockSizeVar()',\n '[style.--cngx-dga-foot-block-size]': 'footBlockSizeVar()',\n },\n})\nexport class CngxDataGridAccordion implements CngxDataGridAccordionContext {\n // Config cascade source. Declared first so the resolvedSkin computed below can\n // read it (field initialisers run top-to-bottom).\n private readonly config = injectDataGridAccordionConfig();\n\n /**\n * The hosted {@link CngxSort} instance, exposed on {@link CNGX_DATA_GRID_ACCORDION}\n * so `cngxDgaSortHeader` cells read the shared sort with no `[cngxSortRef]`. It is a\n * `hostDirective`, so it lives on this element's injector; `{ self: true }` resolves\n * that instance rather than an ancestor's. The group publishes it as state - the\n * consumer's `computed()` still derives the ordered rows (Ableitung preserved).\n */\n readonly sort = inject(CngxSort, { self: true });\n\n /**\n * The hosted {@link CngxFilter} instance, exposed on {@link CNGX_DATA_GRID_ACCORDION}\n * as `filter`. `[filterPredicate]` forwards to its controlled predicate; consumers\n * read `filter.predicate()` (or drive `addPredicate` for facet filtering) and derive\n * the visible rows themselves. State only - the group never hides projected rows.\n */\n readonly filter = inject(CngxFilter, { self: true });\n\n /**\n * The simple text filter term, two-way bindable as `[(filterTerm)]`. A `model()`\n * because it is a two-way primary value the projected `cngxDgaFilter` input writes\n * (a plain `input()` could not be set from the slot). The group publishes it on the\n * context so the consumer's `computed()` matches it against its own row fields - the\n * group holds no field knowledge and does no matching (Pillar 3).\n */\n readonly filterTerm = model<string>('');\n\n /**\n * Raw `grid-template-columns` escape hatch. Leave it unset for the common case:\n * the group derives the shared template from the header cells' `col` intents\n * (see {@link resolvedColumns}). Set it only when a skin needs track syntax the\n * `col` vocabulary cannot express - `ch` tracks, `subgrid`, `minmax` - such as the\n * `spreadsheet` skin. When set, it wins over the derived value. It holds content\n * columns only: the disclosure chevron rides a leading gutter outside the grid, so\n * it never consumes a track. Per-instance only - no app-wide config default\n * (unlike `[skin]`).\n */\n readonly columns = input<string | undefined>(undefined);\n\n /**\n * Opt-in maximum block size that turns the grid into a bounded vertical scrollport:\n * the column head pins to the top and the footer to the bottom while the rows scroll\n * between them. A number is taken as `px`; a string is any CSS length (`'40rem'`).\n * Unset leaves the grid content-height - no scrollport, no pinning - byte-identical\n * to before. Reflects onto `--cngx-dga-max-block-size`, the same token a skin may set\n * directly: the input is the ergonomic front door, the token the escape hatch.\n */\n readonly maxBlockSize = input<string | number | undefined>(undefined);\n\n /**\n * `[maxBlockSize]` resolved to a CSS length for the host binding. A bare number (or\n * a unit-less numeric string via attribute binding) becomes `px`; any other string\n * passes through untouched. `null` removes the inline property so the registered\n * `none` initial wins and the grid stays unbounded. Primitive, so `Object.is` dedupes.\n */\n protected readonly maxBlockSizeVar = computed<string | null>(() => {\n const value = this.maxBlockSize();\n if (value == null || value === '') {\n return null;\n }\n if (typeof value === 'number') {\n return `${value}px`;\n }\n // A unit-less numeric string (from attribute binding) is px; anything carrying a\n // unit passes through - `coerceNumberProperty` would wrongly strip `40rem` to `40`.\n const trimmed = value.trim();\n return /^\\d+(?:\\.\\d+)?$/.test(trimmed) ? `${trimmed}px` : trimmed;\n });\n\n /**\n * Heading level (2-6) every row's `role=\"heading\"` wrapper reflects via\n * `aria-level`. Clamped into the valid ARIA range so a stray `0`/`9` can never\n * emit an invalid `aria-level`; the default is clamped explicitly because\n * Angular runs `transform` only on bound values, not the initial default.\n * Coerced from string via `coerceNumberProperty` for attribute binding.\n */\n readonly headingLevel = input(clampHeadingLevel(3), {\n transform: (value: number | string) => clampHeadingLevel(value),\n });\n\n /**\n * Visual skin reflected onto the `[data-skin]` host attribute. Resolves\n * `input ?? CNGX_DATA_GRID_ACCORDION_CONFIG.skin`: an unbound `[skin]` falls\n * back to the app-wide config default (`withDataGridSkin`); unset on both\n * leaves the base flat grid look. The skin only redirects CSS - structure,\n * cells, ARIA, and keyboard behaviour are identical across skins.\n */\n readonly skin = input<CngxDataGridSkin | undefined>(undefined);\n\n /** `[skin]` input over the config default. `null` host binding when unset. */\n protected readonly resolvedSkin = computed<CngxDataGridSkin | undefined>(\n () => this.skin() ?? this.config.skin,\n );\n\n // The header is the single column source; the first row provides the primary\n // index (for the grow default) and doubles as the source when no header exists.\n // Every band query is `descendants: false`: a signal `contentChild` defaults to\n // `descendants: true` and returns the first match in document order, so a grid\n // nested in a row detail would hand its own header / footer to this grid. Direct\n // children only (control-flow blocks stay transparent, as for `rows` below), which\n // is also the only shape the subgrid layout supports.\n private readonly header = contentChild(CngxDataGridHeader, { descendants: false });\n // Element reads of the projected head / foot, measured so the host's\n // `scroll-padding-block` keeps focus clear of the pinned bands (WCAG 2.4.11).\n private readonly headerEl = contentChild(CngxDataGridHeader, {\n read: ElementRef,\n descendants: false,\n });\n private readonly footerEl = contentChild(CngxDataGridFooter, {\n read: ElementRef,\n descendants: false,\n });\n private readonly rows = contentChildren(CngxDataGridRow);\n private readonly firstRow = computed(() => this.rows().at(0));\n\n /** Index of the primary column, read from the first row's `primary` cell (-1 = none). */\n private readonly primaryIndex = computed(\n () => this.firstRow()?.cells().findIndex((cell) => cell.primary()) ?? -1,\n );\n\n /** Column source: the header cells, or the first row's cells when no header exists. */\n private readonly sourceCells = computed(\n () => this.header()?.cells() ?? this.firstRow()?.cells() ?? [],\n );\n\n /**\n * `grid-template-columns` derived from the column intents: each source cell's\n * `col` track maps to a CSS track; unset falls back to the default (the primary\n * column grows, every other column fits). `null` until a source cell exists.\n */\n private readonly derivedColumns = computed<string | null>(() => {\n const cells = this.sourceCells();\n if (cells.length === 0) {\n return null;\n }\n const primary = this.primaryIndex();\n return cells.map((cell, index) => trackFor(cell.col(), index === primary)).join(' ');\n });\n\n /**\n * The shared column template published onto `--cngx-dga-columns`. Derivation over\n * management (Pillar 1): a single `computed()` from one source (the header), not a\n * hand-synced string. Precedence: an explicit `[columns]` escape hatch wins, else\n * the header-derived template, else a single `1fr`. Primitive string, so\n * `Object.is` dedupes with no `equal` fn.\n */\n protected readonly resolvedColumns = computed(\n () => this.columns() ?? this.derivedColumns() ?? '1fr',\n );\n\n /** Window surface for the band observers; `null` off the browser (SSR). */\n private readonly resizeHost: ResizeObserverHost | null = isPlatformBrowser(inject(PLATFORM_ID))\n ? inject(DOCUMENT).defaultView\n : null;\n\n /**\n * Measured border-box block size of the projected head / foot band in px, `null`\n * when the band is absent or not observed yet. Written only by the observer callback.\n */\n private readonly headBlockSize = this.measureBlockSize(this.headerEl);\n private readonly footBlockSize = this.measureBlockSize(this.footerEl);\n\n /**\n * The measured head / foot sizes as CSS lengths for `--cngx-dga-head-block-size` /\n * `--cngx-dga-foot-block-size`. `null` removes the inline property, so the CSS falls\n * back to `0px` plus the focus clearance. Primitive, so `Object.is` dedupes.\n */\n protected readonly headBlockSizeVar = computed(() => toPx(this.headBlockSize()));\n protected readonly footBlockSizeVar = computed(() => toPx(this.footBlockSize()));\n\n constructor() {\n // A row projecting more cells than the shared template has tracks pushes\n // the extras into implicit grid tracks - the subgrid misaligns silently.\n // One warning per group; the effect destroys itself after firing.\n if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n const ref = effect(() => {\n const tracks = this.sourceCells().length;\n if (tracks === 0) {\n return;\n }\n const over = this.rows().find((row) => row.cells().length > tracks);\n if (over) {\n console.warn(\n `CngxDataGridAccordion: a row projects ${over.cells().length} cells but the ` +\n `shared column template has ${tracks} tracks - the extra cells land in ` +\n 'implicit tracks and misalign silently. Match every row to the header ' +\n '(or first-row) cell count.',\n );\n ref.destroy();\n }\n });\n }\n }\n\n /**\n * Observe the block size of a late-resolving content child. The effect only\n * subscribes: it tracks the `contentChild` read, wires `observeResize` inside\n * `untracked`, and tears it down via `onCleanup` when the child changes (an `@if`\n * toggling the head). The size write happens in the observer callback, never in\n * the effect body. `createResizeSignal` needs a static element, so the low-level\n * `observeResize` is the documented route for a reactive target.\n */\n private measureBlockSize(\n target: Signal<ElementRef<HTMLElement> | undefined>,\n ): Signal<number | null> {\n const size = signal<number | null>(null);\n effect((onCleanup) => {\n const element = target()?.nativeElement;\n if (!element) {\n return;\n }\n const teardown = untracked(() =>\n observeResize(this.resizeHost, element, 'border-box', (entry) => {\n size.set(entry.borderBoxSize?.[0]?.blockSize ?? entry.contentRect.height);\n }),\n );\n // A removed band reports no size, so the padding falls back to the clearance.\n onCleanup(() => {\n teardown();\n size.set(null);\n });\n });\n return size.asReadonly();\n }\n}\n\n/** A measured px size as a CSS length, `null` when unmeasured. */\nfunction toPx(size: number | null): string | null {\n return size == null ? null : `${size}px`;\n}\n\n/**\n * Map a cell's `col` track intent to one CSS `grid-template-columns` track. Unset\n * (`undefined`) falls back to the derived default: the primary column grows\n * (`minmax(0, 1fr)`), every other column fits its content (`auto`). The named sizes\n * resolve against the registered `--cngx-dga-col-sm|-md|-lg` tokens, each with a rem\n * fallback so the track stays valid even before the token surface loads (an invalid\n * `var()` would collapse the whole `grid-template-columns` to one column).\n */\nfunction trackFor(track: CngxDgCellTrack | undefined, isPrimary: boolean): string {\n switch (track) {\n case 'grow':\n return 'minmax(0, 1fr)';\n case 'fit':\n return 'auto';\n case 'sm':\n return 'var(--cngx-dga-col-sm, 5rem)';\n case 'md':\n return 'var(--cngx-dga-col-md, 7rem)';\n case 'lg':\n return 'var(--cngx-dga-col-lg, 10rem)';\n default:\n return isPrimary ? 'minmax(0, 1fr)' : 'auto';\n }\n}\n\n/**\n * Coerce a bound value to a number (via `coerceNumberProperty`, falling back to\n * `fallback`) and clamp it into the ARIA heading-level range 2-6.\n */\nfunction clampHeadingLevel(value: number | string, fallback = 3): number {\n return Math.min(6, Math.max(2, coerceNumberProperty(value, fallback)));\n}\n","import { computed, Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\n\nimport { CngxLiveAnnouncer } from '@cngx/common/a11y';\nimport { createSortHeaderState } from '@cngx/common/data';\nimport { formatMessage } from '@cngx/core/i18n';\nimport { injectLocale, nextUid } from '@cngx/core/utils';\n\nimport { injectDataGridAccordionLabels } from './i18n/data-grid-accordion-i18n';\nimport { CNGX_DATA_GRID_ACCORDION } from './data-grid-accordion.token';\n\n/**\n * Makes a {@link CngxDataGridHeader} cell sort the grid it lives in with a single\n * attribute - `cngxDgaSortHeader=\"field\"` - and no `[cngxSortRef]` plumbing. It reads\n * the group's hosted {@link CngxSort} off {@link CNGX_DATA_GRID_ACCORDION} (the seam),\n * so the header cell needs no reference to the sort instance; the group provides it.\n *\n * The cell becomes an operable control: `role=\"button\"`, `tabindex=\"0\"`, and\n * click / Enter / Space all toggle the column's sort through `CngxSort.setSort`. When\n * the owning group has `[multiSort]`, Shift-activating adds this column to the sort\n * stack instead of replacing it (mirrors {@link CngxSortHeader}). The field/direction\n * logic is not re-implemented: both headers compose the shared `createSortHeaderState`\n * factory from `@cngx/common/data`, so the derivation lives in one place. `CngxSortHeader`\n * cannot be reused as a sibling here (its `cngxSortRef` is `input.required` and only\n * template-bindable), so this header composes the same factory and feeds it the sort it\n * reads off the context token.\n *\n * The component is a disclosure accordion, not a table, so it carries no\n * `role=\"grid\"` / `role=\"table\"` and thus no valid context for `aria-sort` /\n * `role=\"columnheader\"`. The sort state is instead communicated to assistive tech\n * through a visually-hidden description (always in the DOM, content reactive - Pillar 2)\n * referenced by `aria-describedby`: the accessible name stays the stable column label,\n * the description carries the live sort state. A tinted direction arrow is a CSS\n * `::after` cue (pseudo content, so it never doubles the announcement or shifts a\n * `ch`-based track). On activation the new sort state is also spoken once through the\n * shared {@link CngxLiveAnnouncer} polite region - a change announcement worded\n * distinctly from the on-focus description, for SR/browser pairs that do not re-read a\n * mutated `aria-describedby` on an already-focused control.\n *\n * ```html\n * <cngx-data-grid-accordion [multiSort]=\"true\">\n * <cngx-dga-header>\n * <span cngxDgaCell col=\"sm\" cngxDgaSortHeader=\"id\">ID</span>\n * <span cngxDgaCell col=\"grow\" cngxDgaSortHeader=\"name\">Name</span>\n * <span cngxDgaCell col=\"md\" align=\"end\" cngxDgaSortHeader=\"amount\">Amount</span>\n * </cngx-dga-header>\n * <!-- rows rendered by the consumer's @for over its own sorted array -->\n * </cngx-data-grid-accordion>\n * ```\n *\n * @category ui/data-grid-accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-sort-header.directive.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridAccordion, CngxSort, CngxSortHeader, CngxDgCell\n *\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/bound-sort-filter</example-url>\n */\n@Directive({\n selector: '[cngxDgaSortHeader]',\n exportAs: 'cngxDgaSortHeader',\n standalone: true,\n host: {\n role: 'button',\n tabindex: '0',\n class: 'cngx-dga-sort-header',\n '[attr.aria-describedby]': 'statusId',\n '[class.cngx-dga-sort-header--active]': 'isActive()',\n '[class.cngx-dga-sort-header--asc]': 'isAsc()',\n '[class.cngx-dga-sort-header--desc]': 'isDesc()',\n '(click)': 'handleSort($event)',\n '(keydown.enter)': 'handleSort($event)',\n '(keydown.space)': 'handleActivateKey($event)',\n },\n})\nexport class CngxDgaSortHeader {\n /** The field key this header cell sorts by. */\n readonly field = input.required<string>({ alias: 'cngxDgaSortHeader' });\n\n private readonly labels = injectDataGridAccordionLabels();\n private readonly locale = injectLocale();\n\n /** SR status while unsorted. Unbound, the `sortNone` label applies. */\n readonly notSortedLabel = input<string | undefined>(undefined, {\n alias: 'cngxDgaSortStatusNotSorted',\n });\n /** SR status while sorted ascending. Unbound, the `sortAscending` label applies. */\n readonly ascendingLabel = input<string | undefined>(undefined, {\n alias: 'cngxDgaSortStatusAscending',\n });\n /** SR status while sorted descending. Unbound, the `sortDescending` label applies. */\n readonly descendingLabel = input<string | undefined>(undefined, {\n alias: 'cngxDgaSortStatusDescending',\n });\n\n /**\n * Human column name spoken in the live sort announcement (`{label}` placeholder\n * of the announcement templates). Defaults to the header's own text, then to the\n * `unlabeledColumn` label - never to the field key.\n */\n readonly label = input<string | undefined>(undefined, { alias: 'cngxDgaSortLabel' });\n /**\n * Live announcement fired when this column becomes sorted ascending. `{label}` is\n * replaced. Unbound, the `sortAnnouncedAscending` label applies.\n */\n readonly ascendingAnnouncement = input<string | undefined>(undefined, {\n alias: 'cngxDgaSortAnnounceAscending',\n });\n /**\n * Live announcement fired when this column becomes sorted descending. `{label}` is\n * replaced. Unbound, the `sortAnnouncedDescending` label applies.\n */\n readonly descendingAnnouncement = input<string | undefined>(undefined, {\n alias: 'cngxDgaSortAnnounceDescending',\n });\n /**\n * Live announcement fired when this column's sort is cleared. `{label}` is replaced.\n * Unbound, the `sortAnnouncedCleared` label applies.\n */\n readonly clearedAnnouncement = input<string | undefined>(undefined, {\n alias: 'cngxDgaSortAnnounceCleared',\n });\n\n private readonly grid = inject(CNGX_DATA_GRID_ACCORDION);\n private readonly announcer = inject(CngxLiveAnnouncer);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n\n /** Stable id of the visually-hidden status element the host `aria-describedby` names. */\n protected readonly statusId = nextUid('cngx-dga-sort-status-');\n\n private readonly state = createSortHeaderState(() => this.grid.sort, this.field);\n\n /** `true` when this column is part of the active sort (primary or secondary). */\n readonly isActive = this.state.isActive;\n /** `true` when this column is active and sorted ascending. */\n readonly isAsc = this.state.isAsc;\n /** `true` when this column is active and sorted descending. */\n readonly isDesc = this.state.isDesc;\n\n /**\n * 1-based position of this column in the sort stack, or `0` when it is not active.\n * Only meaningful when the owning group has `[multiSort]` (for sort-order badges).\n */\n readonly priority = this.state.priority;\n\n private readonly statusText = computed(() => {\n const labels = this.labels();\n if (this.isAsc()) {\n return this.ascendingLabel() ?? labels.sortAscending;\n }\n if (this.isDesc()) {\n return this.descendingLabel() ?? labels.sortDescending;\n }\n return this.notSortedLabel() ?? labels.sortNone;\n });\n\n // A visually-hidden, aria-hidden description node the host `aria-describedby` names.\n // aria-hidden keeps it out of the name-from-contents walk (so the accessible name\n // stays the plain column label), while aria-describedby still reads it for the\n // description - the standard \"stable name + live description\" split.\n private readonly statusElement = this.createStatusElement();\n\n constructor() {\n // Imperative DOM sync: keep the description text tracking the sort state. No signal\n // writes, so this is a pure side effect (permitted in an effect).\n effect(() => {\n this.renderer.setProperty(this.statusElement, 'textContent', this.statusText());\n });\n }\n\n private createStatusElement(): HTMLElement {\n const element = this.renderer.createElement('span') as HTMLElement;\n this.renderer.setAttribute(element, 'id', this.statusId);\n this.renderer.setAttribute(element, 'aria-hidden', 'true');\n this.renderer.addClass(element, 'cngx-dga-sort-header__sr');\n this.renderer.appendChild(this.host, element);\n return element;\n }\n\n protected handleSort(event?: Event): void {\n this.state.toggle((event as { shiftKey?: boolean })?.shiftKey ?? false);\n // Announce the transition through the shared polite live region. Fired from the\n // handler (not an effect) so it speaks exactly once per user activation and stays\n // silent on init and on external sort changes. The always-present aria-describedby\n // node keeps the on-focus description; this is the change announcement some SR /\n // browser pairs miss when only a describedby text mutates on a focused control.\n this.announcer.announce(this.announcementText());\n }\n\n private announcementText(): string {\n const labels = this.labels();\n const label = this.label() ?? (this.headerText() || labels.unlabeledColumn);\n return formatMessage(this.announcementTemplate(), { label }, this.locale());\n }\n\n private announcementTemplate(): string {\n const labels = this.labels();\n if (this.isAsc()) {\n return this.ascendingAnnouncement() ?? labels.sortAnnouncedAscending;\n }\n if (this.isDesc()) {\n return this.descendingAnnouncement() ?? labels.sortAnnouncedDescending;\n }\n return this.clearedAnnouncement() ?? labels.sortAnnouncedCleared;\n }\n\n /**\n * The header's text as assistive tech reads it: `aria-hidden` subtrees (the sort\n * status node, decorative icons and badges) are left out.\n */\n private headerText(): string {\n return readableText(this.host).replace(/\\s+/g, ' ').trim();\n }\n\n protected handleActivateKey(event: Event): void {\n // Space would scroll the grid's overflow container; suppress it and activate.\n event.preventDefault();\n this.handleSort(event);\n }\n}\n\n/** @internal Text content of `node`, skipping every `aria-hidden=\"true\"` subtree. */\nfunction readableText(node: Node): string {\n if (node.nodeType === Node.TEXT_NODE) {\n return node.textContent ?? '';\n }\n if (node instanceof Element && node.getAttribute('aria-hidden') === 'true') {\n return '';\n }\n let text = '';\n node.childNodes.forEach((child) => {\n text += readableText(child);\n });\n return text;\n}\n","import { DOCUMENT } from '@angular/common';\nimport { computed, DestroyRef, Directive, effect, ElementRef, inject, input } from '@angular/core';\n\nimport { injectDataGridAccordionLabels } from './i18n/data-grid-accordion-i18n';\nimport { CNGX_DATA_GRID_ACCORDION } from './data-grid-accordion.token';\n\n/**\n * Turns a projected `<input>` into the filter box for the {@link CngxDataGridAccordion}\n * it lives in: it two-way-binds the group's `filterTerm` with no wiring. On each\n * keystroke it writes the value into `grid.filterTerm` after a debounce (owned here -\n * {@link CngxFilter} has none), so the consumer's `computed()` re-derives the visible\n * rows only once typing settles. An external term change (a programmatic clear) reflects\n * back into the box, but never while it is focused - that would fight the caret; the\n * deferred reconciliation lands when the box loses focus.\n *\n * The debounce lives in this slot, not in the group, because it is an input-UX concern;\n * a consumer driving the term programmatically writes `grid.filterTerm` directly with no\n * debounce. The default `aria-label` is the `filterRows` label of the language pack (a\n * consumer overrides via `cngxDgaFilterLabel`).\n *\n * ```html\n * <cngx-data-grid-accordion>\n * <cngx-dga-header>\n * <input cngxDgaFilter cngxDgaFilterLabel=\"Filter invoices\" />\n * </cngx-dga-header>\n * <!-- rows rendered by the consumer's @for over its filtered array -->\n * </cngx-data-grid-accordion>\n * ```\n *\n * @category ui/data-grid-accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-filter.directive.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridAccordion, CngxFilter, CngxDgaCount\n *\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/bound-sort-filter</example-url>\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>\n */\n@Directive({\n selector: 'input[cngxDgaFilter]',\n exportAs: 'cngxDgaFilter',\n standalone: true,\n host: {\n role: 'searchbox',\n class: 'cngx-dga-filter',\n '[attr.aria-label]': 'resolvedAriaLabel()',\n '(input)': 'handleInput($event)',\n '(blur)': 'handleBlur()',\n },\n})\nexport class CngxDgaFilter {\n private readonly labels = injectDataGridAccordionLabels();\n\n /** Accessible name for the filter box. Unbound, the `filterRows` label applies. */\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'cngxDgaFilterLabel' });\n /** Debounce in ms between the last keystroke and writing `grid.filterTerm`. */\n readonly debounce = input(200, { alias: 'cngxDgaFilterDebounce' });\n\n /** @internal */\n protected readonly resolvedAriaLabel = computed(\n () => this.ariaLabel() ?? this.labels().filterRows,\n );\n\n private readonly grid = inject(CNGX_DATA_GRID_ACCORDION);\n private readonly document = inject(DOCUMENT);\n private readonly element = inject<ElementRef<HTMLInputElement>>(ElementRef).nativeElement;\n private timer: ReturnType<typeof setTimeout> | undefined;\n\n constructor() {\n inject(DestroyRef).onDestroy(() => clearTimeout(this.timer));\n // Reflect an external term change (e.g. a programmatic clear) back into the box, but\n // never while the user is typing into it - overwriting `value` there resets the caret.\n // The deferred write catches up in handleBlur (focus is not a signal, so the effect\n // cannot re-run on its own when the box loses focus).\n effect(() => {\n const term = this.grid.filterTerm();\n if (this.document.activeElement !== this.element && this.element.value !== term) {\n this.element.value = term;\n }\n });\n }\n\n protected handleInput(event: Event): void {\n const value = (event.target as HTMLInputElement).value;\n clearTimeout(this.timer);\n this.timer = setTimeout(() => {\n this.timer = undefined;\n this.grid.filterTerm.set(value);\n }, this.debounce());\n }\n\n protected handleBlur(): void {\n // Flush a pending keystroke instead of letting the timer fire after blur:\n // an external write landing in that window would lose to the stale timer\n // and get overwritten. Typing then leaving commits what was typed.\n if (this.timer !== undefined) {\n clearTimeout(this.timer);\n this.timer = undefined;\n this.grid.filterTerm.set(this.element.value);\n return;\n }\n const term = this.grid.filterTerm();\n if (this.element.value !== term) {\n this.element.value = term;\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { nextUid } from '@cngx/core/utils';\n\nimport { injectDataGridAccordionLabels } from './i18n/data-grid-accordion-i18n';\nimport { CngxDgaFilter } from './data-grid-filter.directive';\n\n/**\n * A ready-made filter row for a {@link CngxDataGridAccordion}: a full-width\n * `grid-column: 1 / -1` band with a visible `<label>` and a search input, so a\n * consumer drops `<cngx-dga-filter label=\"Filter invoices\" />` instead of\n * hand-styling a `<div>` around a bare `<input cngxDgaFilter>`.\n *\n * It is a thin structural shell over the {@link CngxDgaFilter} brain, not a new\n * behaviour: the directive still owns the debounce, the two-way `filterTerm`\n * write, and the focused-caret guard. The shell adds only the chrome (span +\n * padding via `--cngx-dga-*` tokens) and a real `<label>` whose `for` binds the\n * input id, so the searchbox has a **visible** accessible name (WCAG 3.3.2)\n * rather than an invisible `aria-label` alone. The label text is mirrored onto\n * the directive's `cngxDgaFilterLabel` so the accessible name is the label, not\n * the directive's `'Filter rows'` default.\n *\n * ```html\n * <cngx-data-grid-accordion>\n * <cngx-dga-filter label=\"Filter invoices\" placeholder=\"Customer or invoice number\" />\n * <cngx-dga-header>…</cngx-dga-header>\n * <!-- rows -->\n * </cngx-data-grid-accordion>\n * ```\n *\n * @category ui/data-grid-accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-filter-field.component.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridAccordion, CngxDgaFilter, CngxDgaCount\n *\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>\n */\n@Component({\n selector: 'cngx-dga-filter',\n exportAs: 'cngxDgaFilterField',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxDgaFilter],\n templateUrl: './data-grid-filter-field.component.html',\n styleUrl: './data-grid-filter-field.component.css',\n host: {\n class: 'cngx-dga-filter-field',\n },\n})\nexport class CngxDgaFilterField {\n private readonly labels = injectDataGridAccordionLabels();\n\n /**\n * Visible label text; also drives the input's accessible name. Unbound, the\n * `filter` label applies.\n */\n readonly label = input<string | undefined>(undefined);\n\n /** @internal */\n protected readonly resolvedLabel = computed(() => this.label() ?? this.labels().filter);\n /** Optional placeholder shown inside the input. */\n readonly placeholder = input<string | undefined>(undefined);\n /** Debounce in ms forwarded to the hosted `cngxDgaFilter`. */\n readonly debounce = input(200);\n\n /** Stable id linking the visible `<label for>` to the input. */\n protected readonly inputId = nextUid('cngx-dga-filter-');\n}\n","<label class=\"cngx-dga-filter-field__label\" [attr.for]=\"inputId\">{{ resolvedLabel() }}</label>\n<input\n class=\"cngx-dga-filter-field__input\"\n [id]=\"inputId\"\n cngxDgaFilter\n [cngxDgaFilterLabel]=\"resolvedLabel()\"\n [cngxDgaFilterDebounce]=\"debounce()\"\n [attr.placeholder]=\"placeholder()\"\n/>\n","import { Directive, effect, ElementRef, inject, input, Renderer2, untracked } from '@angular/core';\n\nimport { coerceSignal } from '@cngx/core/utils';\n\nimport { CNGX_DATA_GRID_ACCORDION_CONFIG } from './config/data-grid-accordion.config.defaults';\nimport { injectDataGridAccordionLabels } from './i18n/data-grid-accordion-i18n';\n\n/**\n * A polite `aria-live` region for the visible-row count of a\n * {@link CngxDataGridAccordion}. The consumer feeds the count it already derived\n * (`[cngxDgaCount]=\"visibleRows().length\"`); the directive makes its host a\n * `role=\"status\"` / `aria-live=\"polite\"` / `aria-atomic=\"true\"` region and writes the\n * count text into it, so a filter that changes the count is announced to assistive tech\n * without the consumer wiring a live region by hand (Pillar 2 - the count change is\n * communicated, always in the DOM, content reactive).\n *\n * The host owns its text, so give it an empty element:\n *\n * ```html\n * <cngx-dga-footer>\n * <span cngxDgaCell [cngxDgaCount]=\"visibleRows().length\"></span>\n * </cngx-dga-footer>\n * ```\n *\n * `cngxDgaCell` puts the count in the first content column alongside every other\n * grid cell. It is not required - the footer already places a bare first child in\n * that column - but it is the consistent form the rest of the grid's cells use.\n *\n * The text comes from the `dataGridAccordion` section of the language pack\n * (`3 results`, a plural message with a locale-formatted count). Override it app-wide\n * through `withDataGridAccordionLabels`: a `count` formatter owns word order and plural\n * rules, the `countSingular` / `countPlural` nouns alone compose through `countWithNoun`.\n * Binding `cngxDgaCountSingular` / `cngxDgaCountPlural` per instance always composes\n * through `countWithNoun`.\n *\n * @category ui/data-grid-accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-count.directive.ts\n * @since 0.1.0\n * @relatedTo CngxDataGridAccordion, CngxDgaFilter\n *\n * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>\n */\n@Directive({\n selector: '[cngxDgaCount]',\n exportAs: 'cngxDgaCount',\n standalone: true,\n host: {\n role: 'status',\n 'aria-live': 'polite',\n 'aria-atomic': 'true',\n class: 'cngx-dga-count',\n },\n})\nexport class CngxDgaCount {\n /** The visible-row count the consumer derived. */\n readonly count = input.required<number>({ alias: 'cngxDgaCount' });\n private readonly labels = injectDataGridAccordionLabels();\n private readonly overrides = coerceSignal(inject(CNGX_DATA_GRID_ACCORDION_CONFIG).labels);\n\n /**\n * Singular noun for a count of 1. Unbound, the `countSingular` label applies;\n * binding either noun switches to `<count> <noun>` composition.\n */\n readonly singular = input<string | undefined>(undefined, { alias: 'cngxDgaCountSingular' });\n /**\n * Plural noun for any other count. Unbound, the `countPlural` label applies;\n * binding either noun switches to `<count> <noun>` composition.\n */\n readonly plural = input<string | undefined>(undefined, { alias: 'cngxDgaCountPlural' });\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n\n constructor() {\n // Imperative DOM sync of the announced text - a side effect, no signal write. The\n // labels read is untracked: the host is a live region, and a copy flip must not\n // re-speak a shown count; the next count change speaks the new language.\n effect(() => {\n const count = this.count();\n const singular = this.singular();\n const plural = this.plural();\n const text = untracked(() => {\n const labels = this.labels();\n if (singular === undefined && plural === undefined && !this.nounsOnlyOverride()) {\n return labels.count(count);\n }\n const noun =\n count === 1 ? (singular ?? labels.countSingular) : (plural ?? labels.countPlural);\n return labels.countWithNoun(count, noun);\n });\n this.renderer.setProperty(this.element, 'textContent', text);\n });\n }\n\n /**\n * `true` when the config overrides a noun but not the `count` formatter: the\n * nouns then compose, so a nouns-only override still reaches assistive tech.\n */\n private nounsOnlyOverride(): boolean {\n const overrides = this.overrides() ?? {};\n const nouns = overrides.countSingular !== undefined || overrides.countPlural !== undefined;\n return nouns && overrides.count === undefined;\n }\n}\n","import {\n inject,\n makeEnvironmentProviders,\n type EnvironmentProviders,\n type Provider,\n type Signal,\n} from '@angular/core';\n\nimport type {\n CngxDataGridAccordionConfig,\n CngxDataGridAccordionLabels,\n CngxDataGridSkin,\n} from './data-grid-accordion.config';\nimport {\n CNGX_DATA_GRID_ACCORDION_CONFIG,\n CNGX_DATA_GRID_ACCORDION_DEFAULTS,\n} from './data-grid-accordion.config.defaults';\n\n/**\n * Discriminated-union shape returned by `withDataGridSkin` and\n * `withDataGridAccordionLabels`. The reducer in\n * `provideDataGridAccordionConfig` / `provideDataGridAccordionConfigAt` matches\n * on `kind` and writes `payload` onto the corresponding config key. Mirrors\n * `CngxAccordionConfigFeature` from `@cngx/ui/accordion` so the consumer's mental\n * model is one across feature areas.\n *\n * @category ui/data-grid-accordion\n * @since 0.1.0\n */\nexport type CngxDataGridAccordionConfigFeature =\n | {\n readonly kind: 'skin';\n readonly payload: { readonly skin: CngxDataGridSkin };\n }\n | {\n readonly kind: 'labels';\n readonly payload: {\n readonly labels:\n | Partial<CngxDataGridAccordionLabels>\n | Signal<Partial<CngxDataGridAccordionLabels>>;\n };\n };\n\n/**\n * Reduces a list of feature objects into a partial config - last write wins per\n * key.\n *\n * @internal\n */\nfunction reduceFeatures(\n features: readonly CngxDataGridAccordionConfigFeature[],\n): Partial<CngxDataGridAccordionConfig> {\n const out: { skin?: CngxDataGridSkin; labels?: CngxDataGridAccordionConfig['labels'] } = {};\n for (const f of features) {\n switch (f.kind) {\n case 'skin':\n out.skin = f.payload.skin;\n break;\n case 'labels':\n out.labels = f.payload.labels;\n break;\n }\n }\n return out;\n}\n\n/**\n * Merges a partial config onto a base. Scalars take the partial when present.\n *\n * @internal\n */\nfunction mergeConfig(\n base: CngxDataGridAccordionConfig,\n partial: Partial<CngxDataGridAccordionConfig>,\n): CngxDataGridAccordionConfig {\n return {\n skin: partial.skin ?? base.skin,\n labels: partial.labels ?? base.labels,\n };\n}\n\n/**\n * Application-root configuration cascade for the data-grid-accordion. Pass a\n * `withDataGridSkin` feature in `bootstrapApplication`'s providers array to move\n * the app-wide default skin.\n *\n * Resolution priority (high -> low):\n * 1. Per-instance `[skin]` Input binding.\n * 2. `provideDataGridAccordionConfigAt(...)` in a parent component's\n * `viewProviders`.\n * 3. `provideDataGridAccordionConfig(...)` at the application root.\n * 4. Library defaults (`CNGX_DATA_GRID_ACCORDION_DEFAULTS`).\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideDataGridAccordionConfig(withDataGridSkin('ledger'))],\n * });\n * ```\n *\n * @category ui/data-grid-accordion\n * @since 0.1.0\n */\nexport function provideDataGridAccordionConfig(\n ...features: CngxDataGridAccordionConfigFeature[]\n): EnvironmentProviders {\n // Empty-features: skip the override so the root factory's\n // CNGX_DATA_GRID_ACCORDION_DEFAULTS reference flows through untouched. A fresh\n // merge would allocate identical content under a new reference and bust\n // downstream identity comparisons.\n if (features.length === 0) {\n return makeEnvironmentProviders([]);\n }\n const partial = reduceFeatures(features);\n return makeEnvironmentProviders([\n {\n provide: CNGX_DATA_GRID_ACCORDION_CONFIG,\n useValue: mergeConfig(CNGX_DATA_GRID_ACCORDION_DEFAULTS, partial),\n },\n ]);\n}\n\n/**\n * Component-scoped configuration cascade for the data-grid-accordion. Pass a\n * `withDataGridSkin` feature in a parent component's `viewProviders` array.\n *\n * Unlike `provideDataGridAccordionConfig` (root-only),\n * `provideDataGridAccordionConfigAt` injects the parent injector's\n * `CNGX_DATA_GRID_ACCORDION_CONFIG` value (resolves through the priority chain)\n * and merges the supplied features on top. Descendant grid instances see the\n * merged config; sibling sub-trees keep the inherited value untouched.\n *\n * ```ts\n * @Component({\n * viewProviders: [provideDataGridAccordionConfigAt(withDataGridSkin('report'))],\n * template: '<cngx-data-grid-accordion>...</cngx-data-grid-accordion>',\n * })\n * class Ledger {}\n * ```\n *\n * @category ui/data-grid-accordion\n * @since 0.1.0\n */\nexport function provideDataGridAccordionConfigAt(\n ...features: CngxDataGridAccordionConfigFeature[]\n): Provider[] {\n // Empty-features call: parent value flows through untouched. Skipping the\n // factory preserves reference identity through the sub-tree.\n if (features.length === 0) {\n return [];\n }\n const partial = reduceFeatures(features);\n return [\n {\n provide: CNGX_DATA_GRID_ACCORDION_CONFIG,\n useFactory: () => {\n const parent = inject(CNGX_DATA_GRID_ACCORDION_CONFIG, { skipSelf: true });\n return mergeConfig(parent, partial);\n },\n },\n ];\n}\n","import type { Signal } from '@angular/core';\n\nimport type { CngxDataGridAccordionLabels, CngxDataGridSkin } from './data-grid-accordion.config';\nimport type { CngxDataGridAccordionConfigFeature } from './provide-data-grid-accordion-config';\n\n// Sort and filter ship NO config feature (no `withDataGridSort` / `withDataGridFilter`).\n// They are per-instance state - each grid sorts and filters its own data - so there is\n// no plausible app-wide default to move onto the cascade, mirroring the deliberate\n// absence of `withDataGridColumns`. `[skin]` earns `withDataGridSkin` because a design\n// system does pick one skin org-wide; sort/filter never would. A `with*` is added only\n// if a genuine app-wide default surfaces later (e.g. an org-wide multi-sort toggle),\n// never speculatively.\n\n/**\n * Set the app-wide default visual skin for `<cngx-data-grid-accordion>`. Unset by\n * default (the base flat grid look). Per-instance `[skin]` Input still wins; this\n * moves the cascade default. Structure, cells, ARIA, and keyboard behaviour are\n * identical across skins - only the `[data-skin]` host attribute changes the CSS.\n * Typed class-sugar, not a mode flag.\n *\n * ```ts\n * provideDataGridAccordionConfig(withDataGridSkin('ledger'));\n * ```\n *\n * @category ui/data-grid-accordion\n * @since 0.1.0\n */\nexport function withDataGridSkin(skin: CngxDataGridSkin): CngxDataGridAccordionConfigFeature {\n return { kind: 'skin', payload: { skin } };\n}\n\n/**\n * Set the app-wide copy of the grid's count, sort, filter and row surfaces.\n * Unset keys read the `dataGridAccordion` section of the language pack. Pass a\n * `Signal` of a partial bundle to switch languages at runtime; every part follows\n * it, live regions with their next change. A later call (or a nested\n * `provideDataGridAccordionConfigAt`) replaces the whole bundle rather than\n * merging with it.\n *\n * ```ts\n * provideDataGridAccordionConfig(\n * withDataGridAccordionLabels({ filterRows: 'Zeilen filtern', count: (n) => `${n} Treffer` }),\n * );\n * ```\n *\n * @category ui/data-grid-accordion\n * @since 0.1.0\n */\nexport function withDataGridAccordionLabels(\n labels: Partial<CngxDataGridAccordionLabels> | Signal<Partial<CngxDataGridAccordionLabels>>,\n): CngxDataGridAccordionConfigFeature {\n return { kind: 'labels', payload: { labels } };\n}\n","/**\n * @module @cngx/ui/data-grid-accordion\n */\nexport { CngxDataGridAccordion } from './data-grid-accordion.component';\nexport { CngxDataGridRow } from './data-grid-row.component';\nexport { CngxDgaRowBusy } from './data-grid-row-busy.directive';\nexport { CngxDgaRowError } from './data-grid-row-error.directive';\nexport type { CngxDgaRowStateContext } from './data-grid-row-state-context';\nexport { CngxDataGridHeader } from './data-grid-header.component';\nexport { CngxDgaSortHeader } from './data-grid-sort-header.directive';\nexport { CngxDgaFilter } from './data-grid-filter.directive';\nexport { CngxDgaFilterField } from './data-grid-filter-field.component';\nexport { CngxDgaCount } from './data-grid-count.directive';\nexport { CngxDataGridFooter } from './data-grid-footer.component';\nexport {\n CngxDgCell,\n type CngxDgCellAlign,\n type CngxDgCellTrack,\n} from './data-grid-cell.directive';\nexport {\n CNGX_DATA_GRID_ACCORDION,\n type CngxDataGridAccordionContext,\n} from './data-grid-accordion.token';\nexport type {\n CngxDataGridAccordionConfig,\n CngxDataGridAccordionLabels,\n CngxDataGridSeverity,\n CngxDataGridSkin,\n} from './config/data-grid-accordion.config';\nexport { CNGX_DATA_GRID_ACCORDION_CONFIG } from './config/data-grid-accordion.config.defaults';\nexport {\n provideDataGridAccordionConfig,\n provideDataGridAccordionConfigAt,\n type CngxDataGridAccordionConfigFeature,\n} from './config/provide-data-grid-accordion-config';\nexport { withDataGridAccordionLabels, withDataGridSkin } from './config/features';\nexport { injectDataGridAccordionConfig } from './config/inject-data-grid-accordion-config';\nexport {\n CNGX_DATA_GRID_ACCORDION_LANGUAGE_EN,\n type CngxDataGridAccordionLanguageSection,\n} from './i18n/data-grid-accordion-language-section';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AA8CA;;;;;;;;;AASG;MACU,wBAAwB,GAAG,IAAI,cAAc,CACxD,0BAA0B;;ACrD5B;;;;;;;;;;;;AAYG;AACI,MAAM,iCAAiC,GAAgC,EAAE;AAEhF;;;;;;;;;;;;;;;;AAgBG;MACU,+BAA+B,GAAG,IAAI,cAAc,CAC/D,iCAAiC,EACjC;AACE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,iCAAiC;AACjD,CAAA;;ACpCH;;;;;;;;;;;;;;;;;AAiBG;SACa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ACxC,OAAO;AACL,QAAA;AACE,YAAA,OAAO,EAAE,+BAA+B;YACxC,UAAU,EAAE,MAAK;AACf,gBAAA,MAAM,MAAM,GAAG,MAAM,CAAC,+BAA+B,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC1E,gBAAA,OAAO,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC;YACrC,CAAC;AACF,SAAA;KACF;AACH;;AC3JA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;;;;;;;;;;;;AAaG;AACG,SAAU,gBAAgB,CAAC,IAAsB,EAAA;IACrD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE;AAC5C;AAEA;;;;;;;;;;;;;;;;AAgBG;AACG,SAAU,2BAA2B,CACzC,MAA2F,EAAA;IAE3F,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE;AAChD;;ACpDA;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"cngx-ui-data-grid-accordion.mjs","sources":["../../../projects/ui/data-grid-accordion/data-grid-accordion.token.ts","../../../projects/ui/data-grid-accordion/config/data-grid-accordion.config.defaults.ts","../../../projects/ui/data-grid-accordion/config/inject-data-grid-accordion-config.ts","../../../projects/ui/data-grid-accordion/data-grid-footer.component.ts","../../../projects/ui/data-grid-accordion/data-grid-cell.directive.ts","../../../projects/ui/data-grid-accordion/data-grid-header.component.ts","../../../projects/ui/data-grid-accordion/i18n/data-grid-accordion-language-section.ts","../../../projects/ui/data-grid-accordion/i18n/data-grid-accordion-i18n.ts","../../../projects/ui/data-grid-accordion/data-grid-row-busy.directive.ts","../../../projects/ui/data-grid-accordion/data-grid-row-error.directive.ts","../../../projects/ui/data-grid-accordion/data-grid-row.component.ts","../../../projects/ui/data-grid-accordion/data-grid-row.component.html","../../../projects/ui/data-grid-accordion/data-grid-accordion.component.ts","../../../projects/ui/data-grid-accordion/data-grid-sort-header.directive.ts","../../../projects/ui/data-grid-accordion/data-grid-filter.directive.ts","../../../projects/ui/data-grid-accordion/data-grid-filter-field.component.ts","../../../projects/ui/data-grid-accordion/data-grid-filter-field.component.html","../../../projects/ui/data-grid-accordion/data-grid-count.directive.ts","../../../projects/ui/data-grid-accordion/config/provide-data-grid-accordion-config.ts","../../../projects/ui/data-grid-accordion/config/features.ts","../../../projects/ui/data-grid-accordion/public-api.ts","../../../projects/ui/data-grid-accordion/cngx-ui-data-grid-accordion.ts"],"sourcesContent":["import { inject, InjectionToken, type Signal, type WritableSignal } from '@angular/core';\n\nimport type { CngxFilter, CngxSort } from '@cngx/common/data';\nimport { CngxRuntimeError } from '@cngx/utils';\n\n/**\n * UI-local context a {@link CngxDataGridAccordion} exposes so each\n * {@link CngxDataGridRow} reads the shared heading level without injecting the\n * concrete group class (cyclic type, blocks Atomic Decompose). Kept separate from\n * the headless `CNGX_ACCORDION` brain contract, which stays skin-agnostic -\n * heading semantics are a grid concern. The shared column template reaches rows\n * through the inherited `--cngx-dga-columns` custom property (CSS cascade), so it\n * needs no signal here.\n *\n * The group also hosts the orthogonal {@link CngxSort} and {@link CngxFilter} atoms and\n * exposes them here as `sort` and `filter`, so `cngxDgaSortHeader` cells drive the sort\n * with no `[cngxSortRef]` and the `cngxDgaFilter` slot writes `filterTerm`. The context\n * still carries state only - the consumer's `computed()` derives the visible + ordered\n * rows.\n *\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-accordion.token.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridAccordion, CngxDataGridRow, CngxSort, CngxFilter\n */\nexport interface CngxDataGridAccordionContext {\n /** Heading level (2-6) every row's `role=\"heading\"` wrapper reflects via `aria-level`. */\n readonly headingLevel: Signal<number>;\n /**\n * The group's hosted {@link CngxSort}. `cngxDgaSortHeader` cells read its `sorts()`\n * and call `setSort(...)`; a consumer derives the ordered rows from it via `computed()`.\n */\n readonly sort: CngxSort;\n /**\n * The group's hosted {@link CngxFilter}. `[filterPredicate]` feeds its controlled\n * predicate; a consumer reads `filter.predicate()` (or drives `addPredicate` for facet\n * filtering) and derives the visible rows via `computed()`.\n */\n readonly filter: CngxFilter;\n /**\n * The simple text filter term, two-way bindable as `[(filterTerm)]`. The `cngxDgaFilter`\n * input writes it (debounced); a consumer matches it against its own row fields in a\n * `computed()`. Writable so the slot directive can set it.\n */\n readonly filterTerm: WritableSignal<string>;\n}\n\n/**\n * DI token for the {@link CngxDataGridAccordionContext}.\n * {@link CngxDataGridAccordion} provides it via `useExisting`; each\n * {@link CngxDataGridRow} injects it.\n *\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-accordion.token.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridAccordion, CngxDataGridRow\n */\nexport const CNGX_DATA_GRID_ACCORDION = new InjectionToken<CngxDataGridAccordionContext>(\n 'CNGX_DATA_GRID_ACCORDION',\n);\n\n/**\n * Inject the {@link CNGX_DATA_GRID_ACCORDION} of the surrounding grid from a\n * row, filter or sort header. Throws a `CngxRuntimeError` with code\n * `CNGX3022` when no `<cngx-data-grid-accordion>` is above it, in development\n * and production alike. `selector` names the part in the development\n * message.\n *\n * @internal\n */\nexport function injectDataGridAccordion(selector: string): CngxDataGridAccordionContext {\n const grid = inject(CNGX_DATA_GRID_ACCORDION, { optional: true });\n if (!grid) {\n throw new CngxRuntimeError(\n 'CNGX3022',\n typeof ngDevMode !== 'undefined' &&\n ngDevMode &&\n `[${selector}] must be placed inside <cngx-data-grid-accordion>.`,\n );\n }\n return grid;\n}\n","import { InjectionToken } from '@angular/core';\n\nimport type { CngxDataGridAccordionConfig } from './data-grid-accordion.config';\n\n/**\n * Library defaults for the data-grid-accordion configuration cascade. The base\n * default leaves `skin` unset (the flat grid look); consumers move the default\n * via {@link withDataGridSkin}.\n *\n * Exported for intra-lib consumers (`provideDataGridAccordionConfig` merges with\n * this base) but **NOT** re-exported from `public-api.ts` - downstream consumers\n * reach the defaults via `inject(CNGX_DATA_GRID_ACCORDION_CONFIG)` so\n * `provideDataGridAccordionConfig` / `provideDataGridAccordionConfigAt` overrides\n * take precedence.\n *\n * @internal\n */\nexport const CNGX_DATA_GRID_ACCORDION_DEFAULTS: CngxDataGridAccordionConfig = {};\n\n/**\n * App-wide configuration cascade for the data-grid-accordion organism. Resolves\n * in priority order:\n *\n * 1. Per-instance `[skin]` Input binding.\n * 2. `provideDataGridAccordionConfigAt(...)` in a parent component's\n * `viewProviders`.\n * 3. `provideDataGridAccordionConfig(...)` at the application root.\n * 4. Library default (this token's `factory`).\n *\n * `providedIn: 'root'` with a default factory means consumers never need to\n * provide the token explicitly - `inject(CNGX_DATA_GRID_ACCORDION_CONFIG)` always\n * resolves.\n *\n * @since 0.3.0\n */\nexport const CNGX_DATA_GRID_ACCORDION_CONFIG = new InjectionToken<CngxDataGridAccordionConfig>(\n 'CNGX_DATA_GRID_ACCORDION_CONFIG',\n {\n providedIn: 'root',\n factory: () => CNGX_DATA_GRID_ACCORDION_DEFAULTS,\n },\n);\n","import { inject } from '@angular/core';\n\nimport type { CngxDataGridAccordionConfig } from './data-grid-accordion.config';\nimport { CNGX_DATA_GRID_ACCORDION_CONFIG } from './data-grid-accordion.config.defaults';\n\n/**\n * Convenience accessor for the data-grid-accordion configuration cascade. Runs in\n * injection context; resolves through the priority chain (per-instance Input\n * -> `provideDataGridAccordionConfigAt` -> `provideDataGridAccordionConfig` ->\n * library defaults). Equivalent to `inject(CNGX_DATA_GRID_ACCORDION_CONFIG)` -\n * the helper exists so consumers don't import the token directly. Mirrors\n * `injectAccordionConfig` in `@cngx/ui/accordion`.\n *\n * ```ts\n * export class CngxDataGridAccordion {\n * private readonly config = injectDataGridAccordionConfig();\n * readonly skin = input<CngxDataGridSkin | undefined>(undefined);\n * }\n * ```\n *\n * @since 0.3.0\n */\nexport function injectDataGridAccordionConfig(): CngxDataGridAccordionConfig {\n return inject(CNGX_DATA_GRID_ACCORDION_CONFIG);\n}\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\n/**\n * The footer row of a {@link CngxDataGridAccordion}. Lays its projected\n * `cngxDgaCell`s out on the shared `--cngx-dga-columns` grid, so a sum or count\n * cell lines up with the column it totals. It is the designated host for a\n * consumer-supplied `aria-live` region (row count, running totals, load status). The\n * component ships no live producer - the region element and its content are the\n * consumer's, so any state it announces stays owned outside this structural shell.\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-footer.component.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridAccordion, CngxDgCell\n */\n@Component({\n selector: 'cngx-dga-footer',\n exportAs: 'cngxDgaFooter',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: '<ng-content />',\n host: {\n class: 'cngx-dga-footer',\n },\n})\nexport class CngxDataGridFooter {}\n","import { Directive, ElementRef, inject, input } from '@angular/core';\n\nimport { coerceBooleanProperty, nextUid } from '@cngx/core/utils';\n\n/** Inline alignment of a data-grid cell within its column track. */\nexport type CngxDgCellAlign = 'start' | 'center' | 'end';\n\n/**\n * Column-sizing intent for a data-grid track, authored on the `cngxDgaCell`s of the\n * {@link CngxDataGridHeader} (the single column source). The group derives the\n * shared `grid-template-columns` from these:\n *\n * - `grow` - the flexible column, `minmax(0, 1fr)`; shares the remaining width.\n * - `fit` - content-sized, `auto`; as wide as its content needs.\n * - `sm` / `md` / `lg` - fixed tracks from the `--cngx-dga-col-sm|-md|-lg` tokens\n * (mirrors the `size` vocabulary of `CngxTag` / `CngxIcon` / `CngxAvatar`).\n *\n * Unset falls back to the derived default: the `primary` column grows, every other\n * column fits.\n */\nexport type CngxDgCellTrack = 'grow' | 'fit' | 'sm' | 'md' | 'lg';\n\n/**\n * A single cell in a {@link CngxDataGridRow}, {@link CngxDataGridHeader}, or\n * {@link CngxDataGridFooter}. Each cell occupies one track of the shared\n * `grid-template-columns` contract; `[align]` sets its inline alignment and\n * `[primary]` marks the one cell that names the row.\n *\n * The cell is visual: the row stays a single `cngxAccordionPanel` button and one\n * `role=\"region\"`, so marking a cell `primary` only points the row's\n * `aria-labelledby` at it - it adds no interactive semantics. Exactly one cell\n * per row should carry `primary`, so the row's accessible name is that cell's\n * text alone rather than every cell concatenated.\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-cell.directive.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridRow\n */\n@Directive({\n selector: '[cngxDgaCell]',\n exportAs: 'cngxDgaCell',\n standalone: true,\n host: {\n class: 'cngx-dga-cell',\n '[id]': 'cellId',\n '[attr.data-align]': 'align()',\n '[attr.data-primary]': \"primary() ? '' : null\",\n },\n})\nexport class CngxDgCell {\n /** Inline alignment within the column track: `start` (default), `center`, `end`. */\n readonly align = input<CngxDgCellAlign>('start');\n\n /**\n * Column-sizing intent read off the header cells to derive the shared grid\n * template ({@link CngxDgCellTrack}: `grow` / `fit` / `sm` / `md` / `lg`).\n * Authored on the {@link CngxDataGridHeader} cells; row and footer cells inherit\n * the derived track by position and can leave it unset. Unset falls back to the\n * default (primary column grows, the rest fit). Purely a sizing hint - no host\n * binding, the group reads the signal directly.\n */\n readonly col = input<CngxDgCellTrack | undefined>(undefined);\n /**\n * Marks this cell as the row's accessible name. The row's `cngxAccordionPanel`\n * button and its `role=\"region\"` both point `aria-labelledby` at the primary\n * cell, so a screen reader announces one meaningful label per row instead of\n * the concatenated text of every cell.\n */\n readonly primary = input(false, { transform: coerceBooleanProperty });\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n /**\n * Stable id the row's `aria-labelledby` references. Reuses a consumer-supplied\n * `id` when present (so the IDREF stays what the consumer expects), otherwise\n * generates one. Read by {@link CngxDataGridRow} to resolve the primary cell.\n */\n readonly cellId = this.element.id || nextUid('cngx-dga-cell-');\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { CngxDgCell } from './data-grid-cell.directive';\n\n/**\n * The column-header row of a {@link CngxDataGridAccordion}. Lays its projected\n * `cngxDgaCell`s out on the shared `--cngx-dga-columns` grid so the labels align with\n * the data columns below. It is exposed to assistive tech (no `aria-hidden`) so a\n * `cngxDgaSortHeader` cell is reachable: a focusable sort control inside an\n * `aria-hidden` subtree would be pruned from the accessibility tree and fail\n * `aria-hidden-focus`, and `aria-hidden` cannot be undone by a descendant. The plain\n * label cells now read like a table header row - a small, acceptable trade for keeping\n * the sort controls operable. Each data row still announces its own name through its\n * primary cell, so the disclosure list stays legible.\n *\n * It is also the single **column source**: the group reads these header cells and\n * derives the shared `grid-template-columns` from each cell's `col` track intent\n * (`grow` / `fit` / `sm` / `md` / `lg`), so the columns are defined where they are\n * labelled rather than in a separate template string.\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-header.component.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridAccordion, CngxDgCell\n */\n@Component({\n selector: 'cngx-dga-header',\n exportAs: 'cngxDgaHeader',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: '<ng-content />',\n host: {\n class: 'cngx-dga-header',\n },\n})\nexport class CngxDataGridHeader {\n /**\n * The projected header cells, in column order. Read by\n * {@link CngxDataGridAccordion} to derive the shared grid template from each\n * cell's `col` track intent.\n */\n readonly cells = contentChildren(CngxDgCell);\n}\n","import type { CngxMessage } from '@cngx/core/i18n';\n\n/**\n * The data-grid-accordion section of a {@link CngxLanguagePack}: the copy of\n * every `@cngx/ui/data-grid-accordion` part. It feeds the `labels` of\n * `CNGX_DATA_GRID_ACCORDION_CONFIG`; a key set through\n * `withDataGridAccordionLabels` still wins. Messages use `{name}`\n * placeholders, numbers are formatted for the locale.\n *\n * @since 0.3.0\n * @relatedTo CNGX_DATA_GRID_ACCORDION_CONFIG, withDataGridAccordionLabels\n */\nexport interface CngxDataGridAccordionLanguageSection {\n /** `{count}`: the `CngxDgaCount` live-region text for a visible-row count. */\n readonly count: CngxMessage;\n /** Default of `[cngxDgaCountSingular]`. */\n readonly countSingular: string;\n /** Default of `[cngxDgaCountPlural]`. */\n readonly countPlural: string;\n /** `{count}`, `{noun}`: the count with a noun bound on `CngxDgaCount`. */\n readonly countWithNoun: CngxMessage;\n /** Default of `[cngxDgaSortStatusNotSorted]`, the described sort status while unsorted. */\n readonly sortNone: string;\n /** Default of `[cngxDgaSortStatusAscending]`. */\n readonly sortAscending: string;\n /** Default of `[cngxDgaSortStatusDescending]`. */\n readonly sortDescending: string;\n /** `{label}`: default of `[cngxDgaSortAnnounceAscending]`, `{label}` is the column name. */\n readonly sortAnnouncedAscending: string;\n /** `{label}`: default of `[cngxDgaSortAnnounceDescending]`. */\n readonly sortAnnouncedDescending: string;\n /** `{label}`: default of `[cngxDgaSortAnnounceCleared]`. */\n readonly sortAnnouncedCleared: string;\n /** The column name of a sort announcement when the header has no label and no text. */\n readonly unlabeledColumn: string;\n /** Default of the `CngxDgaFilterField` visible `[label]`. */\n readonly filter: string;\n /** Default of `[cngxDgaFilterLabel]`, the filter box accessible name. */\n readonly filterRows: string;\n /** Default of the `CngxDataGridRow` `[errorMessage]`. */\n readonly rowLoadFailed: string;\n /** Decorative tag the skins draw before a row's detail region. */\n readonly note: string;\n}\n\n/**\n * The English data-grid-accordion section: the single source of the entry's\n * English copy. The `CNGX_DATA_GRID_ACCORDION_CONFIG` labels default to it.\n *\n * @since 0.3.0\n * @relatedTo CNGX_DATA_GRID_ACCORDION_CONFIG\n */\nexport const CNGX_DATA_GRID_ACCORDION_LANGUAGE_EN: CngxDataGridAccordionLanguageSection = {\n count: { one: '{count} result', other: '{count} results' },\n countSingular: 'result',\n countPlural: 'results',\n countWithNoun: '{count} {noun}',\n sortNone: 'not sorted, activate to sort ascending',\n sortAscending: 'sorted ascending, activate to sort descending',\n sortDescending: 'sorted descending, activate to sort ascending',\n sortAnnouncedAscending: 'Sorted by {label} ascending',\n sortAnnouncedDescending: 'Sorted by {label} descending',\n sortAnnouncedCleared: 'Sorting by {label} cleared',\n unlabeledColumn: 'this column',\n filter: 'Filter',\n filterRows: 'Filter rows',\n rowLoadFailed: 'Could not load',\n note: 'NOTE',\n};\n\ndeclare module '@cngx/core/i18n' {\n interface CngxLanguagePack {\n readonly dataGridAccordion: CngxDataGridAccordionLanguageSection;\n }\n}\n","import { inject, InjectionToken, type Signal } from '@angular/core';\n\nimport { createLanguageSection, createSectionBundle, formatMessage } from '@cngx/core/i18n';\nimport { createFilledOverrideMerge } from '@cngx/core/utils';\n\nimport type { CngxDataGridAccordionLabels } from '../config/data-grid-accordion.config';\nimport { CNGX_DATA_GRID_ACCORDION_CONFIG } from '../config/data-grid-accordion.config.defaults';\nimport {\n CNGX_DATA_GRID_ACCORDION_LANGUAGE_EN,\n type CngxDataGridAccordionLanguageSection,\n} from './data-grid-accordion-language-section';\n\n/** @internal Turns a data-grid-accordion section into the config labels for a locale. Pure. */\nexport function dataGridAccordionLabelsFrom(\n section: CngxDataGridAccordionLanguageSection,\n locale: string,\n): CngxDataGridAccordionLabels {\n return {\n count: (count) => formatMessage(section.count, { count }, locale),\n countSingular: section.countSingular,\n countPlural: section.countPlural,\n countWithNoun: (count, noun) => formatMessage(section.countWithNoun, { count, noun }, locale),\n sortNone: section.sortNone,\n sortAscending: section.sortAscending,\n sortDescending: section.sortDescending,\n sortAnnouncedAscending: section.sortAnnouncedAscending,\n sortAnnouncedDescending: section.sortAnnouncedDescending,\n sortAnnouncedCleared: section.sortAnnouncedCleared,\n unlabeledColumn: section.unlabeledColumn,\n filter: section.filter,\n filterRows: section.filterRows,\n rowLoadFailed: section.rowLoadFailed,\n note: section.note,\n };\n}\n\n/** @internal The data-grid-accordion section of the active pack over the English section. */\nconst injectDataGridAccordionLanguage = createLanguageSection(\n 'dataGridAccordion',\n CNGX_DATA_GRID_ACCORDION_LANGUAGE_EN,\n);\n\n/** @internal Builds and reads the section labels, formatted for the reading locale. */\nconst dataGridAccordionBundle = createSectionBundle<\n CngxDataGridAccordionLanguageSection,\n CngxDataGridAccordionLabels\n>({\n section: injectDataGridAccordionLanguage,\n toBundle: dataGridAccordionLabelsFrom,\n});\n\n/**\n * @internal The section labels of the active pack, formatted for the app\n * locale. Private: consumers override copy through `withDataGridAccordionLabels`.\n */\nconst DATA_GRID_ACCORDION_SECTION_LABELS = new InjectionToken<Signal<CngxDataGridAccordionLabels>>(\n 'CngxDataGridAccordionSectionLabels',\n {\n providedIn: 'root',\n factory: () => dataGridAccordionBundle.build(),\n },\n);\n\n/**\n * @internal The data-grid-accordion labels at the reading site: the active\n * pack's section formatted for the locale of the injector that reads it, with\n * the `CNGX_DATA_GRID_ACCORDION_CONFIG` labels on top. A key the config sets\n * wins; a key it leaves unset, `null` or `undefined` reads the section.\n * Injection context required.\n */\nexport function injectDataGridAccordionLabels(): Signal<CngxDataGridAccordionLabels> {\n const section = dataGridAccordionBundle.resolve(inject(DATA_GRID_ACCORDION_SECTION_LABELS));\n return createFilledOverrideMerge<CngxDataGridAccordionLabels>(\n section,\n inject(CNGX_DATA_GRID_ACCORDION_CONFIG).labels,\n );\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\nimport type { CngxDgaRowStateContext } from './data-grid-row-state-context';\n\n/**\n * Structural slot for a {@link CngxDataGridRow}'s busy state. The row renders it\n * inside the detail region while the row's `[state]` is `loading` (a first-load\n * skeleton that replaces the body) or `refreshing` (a subtle overlay with the body\n * kept mounted). Absent, the row falls back to its CSS skeleton default.\n *\n * The region already carries `aria-busy` as a `computed()`, so the busy visual is\n * decorative (`aria-hidden`); assistive tech learns the busy state from `aria-busy`,\n * not from this template. The template receives a {@link CngxDgaRowStateContext}\n * whose `$implicit` is the current status (`loading` / `refreshing`), so one\n * override can distinguish the two.\n *\n * ```html\n * <cngx-dga-row [state]=\"report.status()\">\n * <span cngxDgaCell primary>Report</span>\n * <ng-template cngxDgaRowBusy let-status><my-skeleton [dim]=\"status === 'refreshing'\" /></ng-template>\n * {{ report.data() }}\n * </cngx-dga-row>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-row-busy.directive.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridRow, CngxDgaRowError\n */\n@Directive({\n selector: 'ng-template[cngxDgaRowBusy]',\n exportAs: 'cngxDgaRowBusy',\n standalone: true,\n})\nexport class CngxDgaRowBusy {\n readonly templateRef = inject(TemplateRef<CngxDgaRowStateContext>);\n\n static ngTemplateContextGuard(\n _dir: CngxDgaRowBusy,\n ctx: unknown,\n ): ctx is CngxDgaRowStateContext {\n return true;\n }\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\nimport type { CngxDgaRowStateContext } from './data-grid-row-state-context';\n\n/**\n * Structural slot for a {@link CngxDataGridRow}'s error state. The row renders it\n * inside the detail region, in a `role=\"alert\"` container, when the row's `[state]`\n * is `error` - so the error body is announced to assistive tech the moment it\n * appears, even if the row was never expanded. Absent, the row renders a minimal\n * CSS error affordance with the resolved `errorMessage`.\n *\n * The template receives a {@link CngxDgaRowStateContext} whose `message` is the\n * resolved error string, so the override can render the announced text (and a\n * retry) without re-deriving it.\n *\n * ```html\n * <cngx-dga-row [state]=\"report.status()\">\n * <span cngxDgaCell primary>Report</span>\n * <ng-template cngxDgaRowError let-message=\"message\">\n * {{ message }} <button type=\"button\" (click)=\"retry()\">Retry</button>\n * </ng-template>\n * </cngx-dga-row>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-row-error.directive.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridRow, CngxDgaRowBusy\n */\n@Directive({\n selector: 'ng-template[cngxDgaRowError]',\n exportAs: 'cngxDgaRowError',\n standalone: true,\n})\nexport class CngxDgaRowError {\n readonly templateRef = inject(TemplateRef<CngxDgaRowStateContext>);\n\n static ngTemplateContextGuard(\n _dir: CngxDgaRowError,\n ctx: unknown,\n ): ctx is CngxDgaRowStateContext {\n return true;\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n contentChildren,\n inject,\n input,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { nextUid, type AsyncStatus, type CngxAsyncState } from '@cngx/core/utils';\nimport { CNGX_ACCORDION, CngxAccordionPanel } from '@cngx/common/interactive';\n\nimport type { CngxDataGridSeverity } from './config/data-grid-accordion.config';\nimport { injectDataGridAccordionLabels } from './i18n/data-grid-accordion-i18n';\nimport { injectDataGridAccordion } from './data-grid-accordion.token';\nimport { CngxDgCell } from './data-grid-cell.directive';\nimport { CngxDgaRowBusy } from './data-grid-row-busy.directive';\nimport { CngxDgaRowError } from './data-grid-row-error.directive';\n\n/**\n * A disclosure row in a {@link CngxDataGridAccordion}. Renders the APG-correct\n * trio: a `role=\"heading\"` wrapper carrying the group's `aria-level`, a\n * `cngxAccordionPanel` summary `<button>` that is the full-row disclosure\n * trigger, and a `role=\"region\"` detail zone named back at the primary cell via\n * `aria-labelledby`. Expansion is derived from the coordinator (Pillar 1); the\n * button self-wires keyboard nav through the registration brain, so arrow keys\n * rove across rows even though each summary lives in its own component view.\n *\n * The projected `cngxDgaCell`s are laid OVER the trigger, not inside it: a\n * `<button>` accepts phrasing content only, so a cell holding flow content (a\n * chart, a table, a nested list) could never live in the button. The cells share\n * the button's grid row, painted above it, and are `pointer-events: none`, so a\n * click on a passive cell falls through to the trigger and toggles the row, while\n * interactive cell content (a link, a control) re-enables its own clicks. The\n * cell marked `primary` supplies the row's accessible name through the button's\n * `aria-labelledby` (falling back to the whole cells row when none is marked), so\n * a screen reader hears a list of expandable sections rather than a wall of cell\n * text.\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-row.component.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridAccordion, CngxDgCell, CngxAccordionPanel\n * @slot cngxDgaRowBusy Rendered over the row while its detail loads.\n * @slot cngxDgaRowError Rendered when the row's detail failed to load.\n *\n * <example-url>/#/ui/data-grid-accordion/master-detail</example-url>\n * <example-url>/#/ui/data-grid-accordion/report</example-url>\n * <example-url>/#/ui/data-grid-accordion/lazy-row</example-url>\n */\n@Component({\n selector: 'cngx-dga-row',\n exportAs: 'cngxDgaRow',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxAccordionPanel, NgTemplateOutlet],\n templateUrl: './data-grid-row.component.html',\n styleUrl: './data-grid-row.component.css',\n host: {\n class: 'cngx-dga-row',\n '[attr.data-expanded]': \"expanded() ? '' : null\",\n '[attr.data-severity]': 'severity() ?? null',\n },\n})\nexport class CngxDataGridRow {\n protected readonly labels = injectDataGridAccordionLabels();\n\n /**\n * Stable id this row registers under in the coordinator's open-set. Defaults to\n * a generated id; bind `[panelId]` to a stable row value to address the row\n * through the group's `[(openIds)]` model - so a sorted row stays open while it\n * moves. Mirrors `CngxAccordionItem.panelId`.\n */\n readonly panelId = input<string>(nextUid('cngx-dga-row-'));\n /**\n * Semantic severity reflected onto the `[data-severity]` host attribute for\n * skins that render it (the `log-stream` skin fills a coloured left edge from\n * the matching `--cngx-color-danger` / `-warning` / `-info` token). Purely\n * visual, no ARIA impact.\n */\n readonly severity = input<CngxDataGridSeverity | undefined>(undefined);\n /**\n * The row's async lifecycle, communicated to assistive tech. Accepts a raw\n * {@link AsyncStatus} or a {@link CngxAsyncState} the consumer already owns - the\n * row reads only the status discriminator, never the payload, so it stays\n * non-generic. A pure data input (the row injects no `CNGX_STATEFUL`), so no\n * empty-string transform: a bare string status must survive untouched. Mirrors\n * `CngxAccordionItem.state`; the consumer wires the fetch, the row only\n * communicates the state it is handed.\n */\n readonly state = input<AsyncStatus | CngxAsyncState<unknown> | undefined>(undefined);\n /**\n * Error message announced in the error state. Unbound, the `rowLoadFailed`\n * label applies.\n */\n readonly errorMessage = input<string | undefined>(undefined);\n\n // The grid check runs first: the grid carries the accordion, so a row\n // outside it reports CNGX3022 instead of a missing CNGX_ACCORDION.\n protected readonly grid = injectDataGridAccordion('cngx-dga-row');\n private readonly accordion = inject(CNGX_ACCORDION);\n\n protected readonly regionId = nextUid('cngx-dga-region-');\n protected readonly headerId = nextUid('cngx-dga-header-');\n protected readonly cellsId = nextUid('cngx-dga-cells-');\n\n /**\n * Projected cells; the `primary` one supplies the row's accessible name. Public\n * so {@link CngxDataGridAccordion} can read the primary-column index (for the\n * grow default) and use the first row as the column source when no header exists.\n */\n readonly cells = contentChildren(CngxDgCell);\n\n /**\n * IDREF of the cell marked `primary`, or `null` when none is. Feeds\n * {@link summaryLabelledBy}, the single name source both the summary button and the\n * detail region reference. A primitive, so `Object.is` dedupes.\n */\n protected readonly primaryId = computed<string | null>(\n () => this.cells().find((cell) => cell.primary())?.cellId ?? null,\n );\n\n /**\n * Accessible name source for the summary button AND the detail region. The cells are\n * laid over the button rather than inside it, so the button has no intrinsic text to\n * name itself from - this points at the `primary` cell when one exists, else at the\n * whole cells row (`cellsId`), reproducing the old name-from-projected-content\n * fallback. Both surfaces read it so they stay symmetric: a no-primary row names both\n * by the cells row rather than naming the button and leaving the region blank. A\n * primitive, so `Object.is` dedupes.\n */\n protected readonly summaryLabelledBy = computed<string>(() => this.primaryId() ?? this.cellsId);\n\n /** Whether this row's region is open, derived from the coordinator's open-set. */\n protected readonly expanded = computed(() => this.accordion.isOpen(this.panelId()));\n\n /** Per-instance busy slot; absent means the CSS skeleton default renders. */\n protected readonly busySlot = contentChild(CngxDgaRowBusy);\n /** Per-instance error slot; absent means the CSS error affordance default renders. */\n protected readonly errorSlot = contentChild(CngxDgaRowError);\n /** Resolved busy template: per-instance slot -> null (CSS skeleton default). */\n protected readonly busyTemplate = computed(() => this.busySlot()?.templateRef ?? null);\n /** Resolved error template: per-instance slot -> null (CSS error default). */\n protected readonly errorTemplate = computed(() => this.errorSlot()?.templateRef ?? null);\n\n /**\n * Row async status, normalised to an {@link AsyncStatus} from either the raw enum\n * or a {@link CngxAsyncState} object form (reads its `status()` signal). A\n * primitive, so `Object.is` dedupes - no `equal`. Mirrors `CngxAccordionItem`.\n */\n protected readonly status = computed<AsyncStatus | undefined>(() => {\n const state = this.state();\n if (state == null) {\n return undefined;\n }\n return typeof state === 'string' ? state : state.status();\n });\n /**\n * @internal - text of the `role=\"alert\"` error region. A bound `errorMessage`\n * applies at once; the label default is read untracked and keyed on the status,\n * so a language switch never re-speaks a shown error and the next error speaks\n * the new language.\n */\n protected readonly resolvedErrorMessage = computed(() => {\n const own = this.errorMessage();\n this.status();\n return own ?? untracked(() => this.labels().rowLoadFailed);\n });\n /**\n * `aria-busy` driver. Mirrors `CngxAsyncState.isBusy` (loading|refreshing|pending)\n * so the string and object input forms agree. Boolean, no `equal`.\n */\n protected readonly busy = computed(() => {\n const status = this.status();\n return status === 'loading' || status === 'refreshing' || status === 'pending';\n });\n /**\n * Region visibility. Hidden while collapsed, EXCEPT in the error state: an errored\n * row un-hides its region so the `role=\"alert\"` mounts into the live a11y tree and\n * is announced even when the row was never opened (Pillar 2 - an error is never\n * silenced by a collapsed row).\n */\n protected readonly regionHidden = computed(() => !this.expanded() && this.status() !== 'error');\n}\n","<div role=\"heading\" [attr.aria-level]=\"grid.headingLevel()\" class=\"cngx-dga-row__heading\">\n <button\n type=\"button\"\n cngxAccordionPanel\n class=\"cngx-dga-row__summary\"\n [panelId]=\"panelId()\"\n [controls]=\"regionId\"\n [id]=\"headerId\"\n [attr.aria-labelledby]=\"summaryLabelledBy()\"\n >\n <span class=\"cngx-dga-row__chevron-slot\" aria-hidden=\"true\">\n <span class=\"cngx-dga-row__chevron\"></span>\n </span>\n </button>\n <!-- Cells are laid OVER the trigger, not inside it: a `<button>` accepts phrasing\n content only, so a cell holding flow content (a table, a chart's inline data\n table, a nested list) could never live inside the summary. The wrapper spans the\n same grid cell as the button and re-exposes the shared column tracks via subgrid;\n it is `pointer-events: none` so a click on a cell falls through to the button and\n toggles the row, while genuinely interactive cell content re-enables its own\n clicks (see the CSS). The wrapper's id backs the summary's `aria-labelledby` when\n no cell is marked `primary`, preserving today's name-from-content fallback. -->\n <div class=\"cngx-dga-row__cells\" [id]=\"cellsId\">\n <ng-content select=\"[cngxDgaCell]\" />\n </div>\n</div>\n\n<div\n role=\"region\"\n class=\"cngx-dga-row__region\"\n [id]=\"regionId\"\n [attr.aria-labelledby]=\"summaryLabelledBy()\"\n [attr.aria-busy]=\"busy() ? 'true' : null\"\n [attr.data-note-label]=\"labels().note\"\n [hidden]=\"regionHidden()\"\n>\n @switch (status()) {\n @case ('error') {\n <div class=\"cngx-dga-row__error\" role=\"alert\">\n @if (errorTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: 'error', message: resolvedErrorMessage() }\"\n />\n } @else {\n <span class=\"cngx-dga-row__error-default\">{{ resolvedErrorMessage() }}</span>\n }\n </div>\n }\n @case ('loading') {\n <div class=\"cngx-dga-row__busy\" aria-hidden=\"true\">\n @if (busyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: 'loading', message: '' }\"\n />\n } @else {\n <span class=\"cngx-dga-row__skeleton\"></span>\n }\n </div>\n }\n @default {\n <ng-content />\n @if (status() === 'refreshing') {\n <div class=\"cngx-dga-row__refreshing\" aria-hidden=\"true\">\n @if (busyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: 'refreshing', message: '' }\"\n />\n } @else {\n <span class=\"cngx-dga-row__refresh-indicator\"></span>\n }\n </div>\n }\n }\n }\n</div>\n","import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n contentChildren,\n effect,\n ElementRef,\n inject,\n input,\n model,\n PLATFORM_ID,\n type Signal,\n signal,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { coerceNumberProperty } from '@cngx/core/utils';\nimport { CngxScrollEdges, observeResize, type ResizeObserverHost } from '@cngx/common/layout';\nimport { CngxAccordion } from '@cngx/common/interactive';\nimport { CngxFilter, CngxSort } from '@cngx/common/data';\nimport { cngxDevWarn } from '@cngx/utils';\n\nimport {\n CNGX_DATA_GRID_ACCORDION,\n type CngxDataGridAccordionContext,\n} from './data-grid-accordion.token';\nimport type { CngxDataGridSkin } from './config/data-grid-accordion.config';\nimport { injectDataGridAccordionConfig } from './config/inject-data-grid-accordion-config';\nimport { CngxDataGridFooter } from './data-grid-footer.component';\nimport { CngxDataGridHeader } from './data-grid-header.component';\nimport { CngxDataGridRow } from './data-grid-row.component';\nimport type { CngxDgCellTrack } from './data-grid-cell.directive';\n\n/**\n * Data-grid accordion group. A disclosure accordion whose header, rows, and\n * footer all share one `grid-template-columns` contract, so N arbitrary cells\n * align down the grid - the ceiling the accordion `data-grid` skin could never\n * reach with its fixed three slots. Hosts the headless {@link CngxAccordion}\n * brain via `hostDirectives` (so `CNGX_ACCORDION` and roving keyboard nav come\n * with it), forwards `[multi]` and the controlled `[(openIds)]` model, publishes\n * the column template onto the inherited `--cngx-dga-columns` property, and\n * reflects `[skin]` onto `[data-skin]`. Projects its {@link CngxDataGridHeader},\n * {@link CngxDataGridRow}s, and {@link CngxDataGridFooter} through a single\n * `<ng-content />`; it owns no rendering beyond providing\n * {@link CNGX_DATA_GRID_ACCORDION} so rows read the shared heading level.\n *\n * It is a disclosure accordion, not a data grid: no `role=\"grid\"`, no cell edit,\n * no selection model, no keyboard grid navigation. It hosts the orthogonal\n * {@link CngxSort} atom as a second `hostDirective` and exposes it on\n * {@link CNGX_DATA_GRID_ACCORDION} as `sort`, so header cells become sortable with\n * one `cngxDgaSortHeader` attribute (no `[cngxSortRef]` plumbing) and a consumer can\n * bind the controlled `[sortActive]` / `[sortDirection]` inputs and read `(sortChange)`.\n * For an uncontrolled grid that just needs a starting order, `[initialSort]=\"{ active,\n * direction }\"` seeds the sort once and then yields to header clicks.\n * It hosts the orthogonal {@link CngxFilter} atom the same way, exposed as `filter`:\n * `[filterPredicate]` forwards to its controlled predicate, `(filterChange)` re-emits,\n * and a projected `cngxDgaFilter` input two-way-binds the simple `[(filterTerm)]`.\n * The group only publishes sort/filter state - the consumer still derives the\n * visible + ordered rows via a `computed()` and owns the `@for`; the open set is keyed\n * by row value so a sorted or filtered row stays open while it moves.\n *\n * `injectSmartDataSource` cannot inject the group's hosted atoms: injection\n * resolves upward, and `sort` / `filter` live on this element below the\n * consumer's injector. Two routes reach them: derive the rows yourself from a\n * `viewChild` + `computed()` (the group's prescribed shape), or hand the atoms\n * to the source through its options thunks -\n * `injectSmartDataSource(rows, { sort: () => grid()?.sort, filter: () => grid()?.filter })`.\n *\n * The column widths are declared on the header cells via `col`\n * (`grow` / `fit` / `sm` / `md` / `lg`); the group derives the shared template from\n * them, so no `grid-template-columns` string is needed for the common case.\n *\n * For a **bounded-height** grid, bind `[maxBlockSize]` (a number is `px`, a string is\n * any CSS length): the grid becomes its own vertical scrollport, the column head pins\n * to the top and the footer to the bottom, and only the rows scroll between them - the\n * sum footer stays visible, not just the head. The input reflects onto\n * `--cngx-dga-max-block-size`, the same token a skin may set directly. This is the only\n * way to pin the head - `[cngxStickyHeader]` from `@cngx/common/layout` is the wrong\n * tool here: the group is its own scrollport, so a header would resolve its sticky\n * against that scrollport, and an unbounded (content-height) grid has nothing to stick\n * to. Leave `[maxBlockSize]` unbound and the grid stays content-height, byte-identical.\n * While rows are scrolled away above or remain below, the pinned head / foot cast a\n * shadow (`--cngx-dga-head-shadow` / `--cngx-dga-foot-shadow`); with no hidden rows in\n * that direction there is none. Keyboard focus lands clear of both bands: the host pads\n * its scrollport by the measured head / foot size plus `--cngx-dga-focus-clearance`.\n *\n * A grid narrower than its columns (`--cngx-dga-min-width`) scrolls sideways; the host\n * then fades the inline edge that still hides columns (`--cngx-dga-edge-fade-size`,\n * never below `--cngx-dga-edge-fade-min` opacity), mirrored under `dir=\"rtl\"`. Both\n * affordances come from the composed {@link CngxScrollEdges} atom, whose\n * `data-scroll-block-start` / `-block-end` / `-inline-start` / `-inline-end` host\n * attributes are present only while content is hidden toward that edge; under forced\n * colors the fade is dropped and the shadows are forced away.\n *\n * ```html\n * <cngx-data-grid-accordion [multi]=\"true\">\n * <cngx-dga-header>\n * <span cngxDgaCell col=\"sm\">ID</span>\n * <span cngxDgaCell col=\"grow\">Name</span>\n * <span cngxDgaCell col=\"md\" align=\"end\">Amount</span>\n * </cngx-dga-header>\n * <cngx-dga-row panelId=\"1\">\n * <span cngxDgaCell>1</span>\n * <span cngxDgaCell primary>Alpha</span>\n * <span cngxDgaCell align=\"end\">120.00</span>\n * Detail for row 1\n * </cngx-dga-row>\n * <cngx-dga-footer>\n * <span cngxDgaCell>Total</span>\n * </cngx-dga-footer>\n * </cngx-data-grid-accordion>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-accordion.component.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridRow, CngxDgCell, CngxDataGridHeader, CngxDataGridFooter, CngxAccordion, CngxSort, CngxFilter, CngxDgaSortHeader, CngxDgaFilter, CngxDgaCount, CngxScrollEdges\n *\n * <example-url>/#/ui/data-grid-accordion/sortable-ledger</example-url>\n * <example-url>/#/ui/data-grid-accordion/sticky-head</example-url>\n * <example-url>/#/ui/data-grid-accordion/scroll-edges-bounded</example-url>\n * <example-url>/#/ui/data-grid-accordion/scroll-edges-narrow</example-url>\n * <example-url>/#/ui/data-grid-accordion/bound-sort-filter</example-url>\n * <example-url>/#/ui/data-grid-accordion/master-detail</example-url>\n * <example-url>/#/ui/data-grid-accordion/spreadsheet</example-url>\n * <example-url>/#/ui/data-grid-accordion/density</example-url>\n * <example-url>/#/ui/data-grid-accordion/ledger</example-url>\n * <example-url>/#/ui/data-grid-accordion/log-stream</example-url>\n * <example-url>/#/ui/data-grid-accordion/report</example-url>\n * @axis level organism\n */\n@Component({\n selector: 'cngx-data-grid-accordion',\n exportAs: 'cngxDataGridAccordion',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n // Skin CSS lives after the base so the unlayered `[data-skin]` @scope rules win\n // the ties by source order (mirrors the accordion / tabs skin split).\n styleUrls: ['./data-grid-accordion.component.css', './data-grid-accordion-skins.css'],\n hostDirectives: [\n { directive: CngxAccordion, inputs: ['multi', 'openIds'], outputs: ['openIdsChange'] },\n // Sort is the orthogonal `@cngx/common/data` atom, hosted here so header cells reach\n // it through the context token with no `[cngxSortRef]`. Its controlled inputs are\n // re-exposed as `[sortActive]` / `[sortDirection]`; the primary change re-emits as\n // `(sortChange)`. The group publishes state only - derivation stays with the consumer.\n {\n directive: CngxSort,\n inputs: [\n 'cngxSortActive: sortActive',\n 'cngxSortDirection: sortDirection',\n 'cngxSortInitial: initialSort',\n 'multiSort',\n ],\n outputs: ['sortChange'],\n },\n // Filter mirrors sort: the `CngxFilter` predicate atom hosted here, its controlled\n // predicate re-exposed as `[filterPredicate]` and its change re-emitted as\n // `(filterChange)`. Consumers reach its combined predicate (and the multi-predicate\n // `addPredicate` API for facet filtering) through the context. The simple text path\n // is the separate `[(filterTerm)]` model below, which the `cngxDgaFilter` slot writes.\n {\n directive: CngxFilter,\n inputs: ['cngxFilter: filterPredicate'],\n outputs: ['filterChange'],\n },\n // The host is the scrollport; the atom reflects `data-scroll-*` on it for the edge CSS.\n { directive: CngxScrollEdges },\n ],\n providers: [{ provide: CNGX_DATA_GRID_ACCORDION, useExisting: CngxDataGridAccordion }],\n // The inner `__grid` is the single grid that owns the tracks; the host stays the\n // horizontal scroll container. Header, rows, and footer are `subgrid` items of it\n // (see the CSS), so content-sized (`fit`) columns resolve once and align across\n // all three instead of each grid sizing them independently.\n template: '<div class=\"cngx-data-grid-accordion__grid\"><ng-content /></div>',\n host: {\n class: 'cngx-data-grid-accordion',\n '[attr.data-skin]': 'resolvedSkin() ?? null',\n '[style.--cngx-dga-columns]': 'resolvedColumns()',\n '[style.--cngx-dga-max-block-size]': 'maxBlockSizeVar()',\n '[style.--cngx-dga-head-block-size]': 'headBlockSizeVar()',\n '[style.--cngx-dga-foot-block-size]': 'footBlockSizeVar()',\n },\n})\nexport class CngxDataGridAccordion implements CngxDataGridAccordionContext {\n // Config cascade source. Declared first so the resolvedSkin computed below can\n // read it (field initialisers run top-to-bottom).\n private readonly config = injectDataGridAccordionConfig();\n\n /**\n * The hosted {@link CngxSort} instance, exposed on {@link CNGX_DATA_GRID_ACCORDION}\n * so `cngxDgaSortHeader` cells read the shared sort with no `[cngxSortRef]`. It is a\n * `hostDirective`, so it lives on this element's injector; `{ self: true }` resolves\n * that instance rather than an ancestor's. The group publishes it as state - the\n * consumer's `computed()` still derives the ordered rows (Ableitung preserved).\n */\n readonly sort = inject(CngxSort, { self: true });\n\n /**\n * The hosted {@link CngxFilter} instance, exposed on {@link CNGX_DATA_GRID_ACCORDION}\n * as `filter`. `[filterPredicate]` forwards to its controlled predicate; consumers\n * read `filter.predicate()` (or drive `addPredicate` for facet filtering) and derive\n * the visible rows themselves. State only - the group never hides projected rows.\n */\n readonly filter = inject(CngxFilter, { self: true });\n\n /**\n * The simple text filter term, two-way bindable as `[(filterTerm)]`. A `model()`\n * because it is a two-way primary value the projected `cngxDgaFilter` input writes\n * (a plain `input()` could not be set from the slot). The group publishes it on the\n * context so the consumer's `computed()` matches it against its own row fields - the\n * group holds no field knowledge and does no matching (Pillar 3).\n */\n readonly filterTerm = model<string>('');\n\n /**\n * Raw `grid-template-columns` escape hatch. Leave it unset for the common case:\n * the group derives the shared template from the header cells' `col` intents\n * (see {@link resolvedColumns}). Set it only when a skin needs track syntax the\n * `col` vocabulary cannot express - `ch` tracks, `subgrid`, `minmax` - such as the\n * `spreadsheet` skin. When set, it wins over the derived value. It holds content\n * columns only: the disclosure chevron rides a leading gutter outside the grid, so\n * it never consumes a track. Per-instance only - no app-wide config default\n * (unlike `[skin]`).\n */\n readonly columns = input<string | undefined>(undefined);\n\n /**\n * Opt-in maximum block size that turns the grid into a bounded vertical scrollport:\n * the column head pins to the top and the footer to the bottom while the rows scroll\n * between them. A number is taken as `px`; a string is any CSS length (`'40rem'`).\n * Unset leaves the grid content-height - no scrollport, no pinning - byte-identical\n * to before. Reflects onto `--cngx-dga-max-block-size`, the same token a skin may set\n * directly: the input is the ergonomic front door, the token the escape hatch.\n */\n readonly maxBlockSize = input<string | number | undefined>(undefined);\n\n /**\n * `[maxBlockSize]` resolved to a CSS length for the host binding. A bare number (or\n * a unit-less numeric string via attribute binding) becomes `px`; any other string\n * passes through untouched. `null` removes the inline property so the registered\n * `none` initial wins and the grid stays unbounded. Primitive, so `Object.is` dedupes.\n */\n protected readonly maxBlockSizeVar = computed<string | null>(() => {\n const value = this.maxBlockSize();\n if (value == null || value === '') {\n return null;\n }\n if (typeof value === 'number') {\n return `${value}px`;\n }\n // A unit-less numeric string (from attribute binding) is px; anything carrying a\n // unit passes through - `coerceNumberProperty` would wrongly strip `40rem` to `40`.\n const trimmed = value.trim();\n return /^\\d+(?:\\.\\d+)?$/.test(trimmed) ? `${trimmed}px` : trimmed;\n });\n\n /**\n * Heading level (2-6) every row's `role=\"heading\"` wrapper reflects via\n * `aria-level`. Clamped into the valid ARIA range so a stray `0`/`9` can never\n * emit an invalid `aria-level`; the default is clamped explicitly because\n * Angular runs `transform` only on bound values, not the initial default.\n * Coerced from string via `coerceNumberProperty` for attribute binding.\n */\n readonly headingLevel = input(clampHeadingLevel(3), {\n transform: (value: number | string) => clampHeadingLevel(value),\n });\n\n /**\n * Visual skin reflected onto the `[data-skin]` host attribute. Resolves\n * `input ?? CNGX_DATA_GRID_ACCORDION_CONFIG.skin`: an unbound `[skin]` falls\n * back to the app-wide config default (`withDataGridSkin`); unset on both\n * leaves the base flat grid look. The skin only redirects CSS - structure,\n * cells, ARIA, and keyboard behaviour are identical across skins.\n */\n readonly skin = input<CngxDataGridSkin | undefined>(undefined);\n\n /** `[skin]` input over the config default. `null` host binding when unset. */\n protected readonly resolvedSkin = computed<CngxDataGridSkin | undefined>(\n () => this.skin() ?? this.config.skin,\n );\n\n // The header is the single column source; the first row provides the primary\n // index (for the grow default) and doubles as the source when no header exists.\n // Every band query is `descendants: false`: a signal `contentChild` defaults to\n // `descendants: true` and returns the first match in document order, so a grid\n // nested in a row detail would hand its own header / footer to this grid. Direct\n // children only (control-flow blocks stay transparent, as for `rows` below), which\n // is also the only shape the subgrid layout supports.\n private readonly header = contentChild(CngxDataGridHeader, { descendants: false });\n // Element reads of the projected head / foot, measured so the host's\n // `scroll-padding-block` keeps focus clear of the pinned bands (WCAG 2.4.11).\n private readonly headerEl = contentChild(CngxDataGridHeader, {\n read: ElementRef,\n descendants: false,\n });\n private readonly footerEl = contentChild(CngxDataGridFooter, {\n read: ElementRef,\n descendants: false,\n });\n private readonly rows = contentChildren(CngxDataGridRow);\n private readonly firstRow = computed(() => this.rows().at(0));\n\n /** Index of the primary column, read from the first row's `primary` cell (-1 = none). */\n private readonly primaryIndex = computed(\n () => this.firstRow()?.cells().findIndex((cell) => cell.primary()) ?? -1,\n );\n\n /** Column source: the header cells, or the first row's cells when no header exists. */\n private readonly sourceCells = computed(\n () => this.header()?.cells() ?? this.firstRow()?.cells() ?? [],\n );\n\n /**\n * `grid-template-columns` derived from the column intents: each source cell's\n * `col` track maps to a CSS track; unset falls back to the default (the primary\n * column grows, every other column fits). `null` until a source cell exists.\n */\n private readonly derivedColumns = computed<string | null>(() => {\n const cells = this.sourceCells();\n if (cells.length === 0) {\n return null;\n }\n const primary = this.primaryIndex();\n return cells.map((cell, index) => trackFor(cell.col(), index === primary)).join(' ');\n });\n\n /**\n * The shared column template published onto `--cngx-dga-columns`. Derivation over\n * management (Pillar 1): a single `computed()` from one source (the header), not a\n * hand-synced string. Precedence: an explicit `[columns]` escape hatch wins, else\n * the header-derived template, else a single `1fr`. Primitive string, so\n * `Object.is` dedupes with no `equal` fn.\n */\n protected readonly resolvedColumns = computed(\n () => this.columns() ?? this.derivedColumns() ?? '1fr',\n );\n\n /** Window surface for the band observers; `null` off the browser (SSR). */\n private readonly resizeHost: ResizeObserverHost | null = isPlatformBrowser(inject(PLATFORM_ID))\n ? inject(DOCUMENT).defaultView\n : null;\n\n /**\n * Measured border-box block size of the projected head / foot band in px, `null`\n * when the band is absent or not observed yet. Written only by the observer callback.\n */\n private readonly headBlockSize = this.measureBlockSize(this.headerEl);\n private readonly footBlockSize = this.measureBlockSize(this.footerEl);\n\n /**\n * The measured head / foot sizes as CSS lengths for `--cngx-dga-head-block-size` /\n * `--cngx-dga-foot-block-size`. `null` removes the inline property, so the CSS falls\n * back to `0px` plus the focus clearance. Primitive, so `Object.is` dedupes.\n */\n protected readonly headBlockSizeVar = computed(() => toPx(this.headBlockSize()));\n protected readonly footBlockSizeVar = computed(() => toPx(this.footBlockSize()));\n\n constructor() {\n // A row projecting more cells than the shared template has tracks pushes\n // the extras into implicit grid tracks - the subgrid misaligns silently.\n // One warning per group; the effect destroys itself after firing.\n if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n const ref = effect(() => {\n // `[columns]` wins over the derived template, so its track count is the one rows must fit.\n const columns = this.columns();\n const tracks =\n columns === undefined ? this.sourceCells().length : countTemplateTracks(columns);\n if (!tracks) {\n return;\n }\n const over = this.rows().find((row) => row.cells().length > tracks);\n if (over) {\n cngxDevWarn(\n 'CNGX3009',\n `[cngx-data-grid-accordion] a row projects ${over.cells().length} cells but the ` +\n `shared column template has ${tracks} tracks - the extra cells land in ` +\n 'implicit tracks and misalign silently. Match every row to the header ' +\n '(or first-row) cell count, or to the [columns] tracks when it is set.',\n );\n ref.destroy();\n }\n });\n }\n }\n\n /**\n * Observe the block size of a late-resolving content child. The effect only\n * subscribes: it tracks the `contentChild` read, wires `observeResize` inside\n * `untracked`, and tears it down via `onCleanup` when the child changes (an `@if`\n * toggling the head). The size write happens in the observer callback, never in\n * the effect body. `createResizeSignal` needs a static element, so the low-level\n * `observeResize` is the documented route for a reactive target.\n */\n private measureBlockSize(\n target: Signal<ElementRef<HTMLElement> | undefined>,\n ): Signal<number | null> {\n const size = signal<number | null>(null);\n effect((onCleanup) => {\n const element = target()?.nativeElement;\n if (!element) {\n return;\n }\n const teardown = untracked(() =>\n observeResize(this.resizeHost, element, 'border-box', (entry) => {\n size.set(entry.borderBoxSize?.[0]?.blockSize ?? entry.contentRect.height);\n }),\n );\n // A removed band reports no size, so the padding falls back to the clearance.\n onCleanup(() => {\n teardown();\n size.set(null);\n });\n });\n return size.asReadonly();\n }\n}\n\n/** A measured px size as a CSS length, `null` when unmeasured. */\nfunction toPx(size: number | null): string | null {\n return size == null ? null : `${size}px`;\n}\n\n/**\n * Map a cell's `col` track intent to one CSS `grid-template-columns` track. Unset\n * (`undefined`) falls back to the derived default: the primary column grows\n * (`minmax(0, 1fr)`), every other column fits its content (`auto`). The named sizes\n * resolve against the registered `--cngx-dga-col-sm|-md|-lg` tokens, each with a rem\n * fallback so the track stays valid even before the token surface loads (an invalid\n * `var()` would collapse the whole `grid-template-columns` to one column).\n */\nfunction trackFor(track: CngxDgCellTrack | undefined, isPrimary: boolean): string {\n switch (track) {\n case 'grow':\n return 'minmax(0, 1fr)';\n case 'fit':\n return 'auto';\n case 'sm':\n return 'var(--cngx-dga-col-sm, 5rem)';\n case 'md':\n return 'var(--cngx-dga-col-md, 7rem)';\n case 'lg':\n return 'var(--cngx-dga-col-lg, 10rem)';\n default:\n return isPrimary ? 'minmax(0, 1fr)' : 'auto';\n }\n}\n\n/**\n * The number of tracks a `grid-template-columns` string defines, for the [`CNGX3009`](/error-codes/cngx3009.md)\n * check: line names are skipped, `repeat(n, ...)` multiplies. `null` when the count\n * is not static (`repeat(auto-fill, ...)`, `subgrid`, `none`), so the check skips it.\n */\nfunction countTemplateTracks(template: string): number | null {\n const tokens: string[] = [];\n let depth = 0;\n let current = '';\n for (const char of template.trim()) {\n if (char === '(' || char === '[') {\n depth += 1;\n } else if (char === ')' || char === ']') {\n depth -= 1;\n }\n if (/\\s/.test(char) && depth === 0) {\n if (current) {\n tokens.push(current);\n }\n current = '';\n } else {\n current += char;\n }\n }\n if (current) {\n tokens.push(current);\n }\n let count = 0;\n for (const token of tokens) {\n if (token.startsWith('[')) {\n continue;\n }\n if (token === 'subgrid' || token === 'none' || token === 'masonry') {\n return null;\n }\n const repeat = /^repeat\\(\\s*(\\d+)\\s*,(.*)\\)$/.exec(token);\n if (repeat) {\n const inner = countTemplateTracks(repeat[2]);\n if (inner === null) {\n return null;\n }\n count += Number(repeat[1]) * inner;\n } else if (token.startsWith('repeat(')) {\n return null;\n } else {\n count += 1;\n }\n }\n return count;\n}\n\n/**\n * Coerce a bound value to a number (via `coerceNumberProperty`, falling back to\n * `fallback`) and clamp it into the ARIA heading-level range 2-6.\n */\nfunction clampHeadingLevel(value: number | string, fallback = 3): number {\n return Math.min(6, Math.max(2, coerceNumberProperty(value, fallback)));\n}\n","import { computed, Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\n\nimport { CngxLiveAnnouncer } from '@cngx/common/a11y';\nimport { createSortHeaderState } from '@cngx/common/data';\nimport { createActivationKeyHandler } from '@cngx/common/interactive';\nimport { formatMessage } from '@cngx/core/i18n';\nimport { injectLocale, nextUid } from '@cngx/core/utils';\n\nimport { injectDataGridAccordionLabels } from './i18n/data-grid-accordion-i18n';\nimport { injectDataGridAccordion } from './data-grid-accordion.token';\n\n/**\n * Makes a {@link CngxDataGridHeader} cell sort the grid it lives in with a single\n * attribute - `cngxDgaSortHeader=\"field\"` - and no `[cngxSortRef]` plumbing. It reads\n * the group's hosted {@link CngxSort} off {@link CNGX_DATA_GRID_ACCORDION} (the seam),\n * so the header cell needs no reference to the sort instance; the group provides it.\n *\n * The cell becomes an operable control: `role=\"button\"`, `tabindex=\"0\"`, and\n * click / Enter / Space all toggle the column's sort through `CngxSort.setSort`. When\n * the owning group has `[multiSort]`, Shift-activating adds this column to the sort\n * stack instead of replacing it (mirrors {@link CngxSortHeader}). The field/direction\n * logic is not re-implemented: both headers compose the shared `createSortHeaderState`\n * factory from `@cngx/common/data`, so the derivation lives in one place. `CngxSortHeader`\n * cannot be reused as a sibling here (its `cngxSortRef` is `input.required` and only\n * template-bindable), so this header composes the same factory and feeds it the sort it\n * reads off the context token.\n *\n * The component is a disclosure accordion, not a table, so it carries no\n * `role=\"grid\"` / `role=\"table\"` and thus no valid context for `aria-sort` /\n * `role=\"columnheader\"`. The sort state is instead communicated to assistive tech\n * through a visually-hidden description (always in the DOM, content reactive - Pillar 2)\n * referenced by `aria-describedby`: the accessible name stays the stable column label,\n * the description carries the live sort state. A tinted direction arrow is a CSS\n * `::after` cue (pseudo content, so it never doubles the announcement or shifts a\n * `ch`-based track). On activation the new sort state is also spoken once through the\n * shared {@link CngxLiveAnnouncer} polite region - a change announcement worded\n * distinctly from the on-focus description, for SR/browser pairs that do not re-read a\n * mutated `aria-describedby` on an already-focused control.\n *\n * ```html\n * <cngx-data-grid-accordion [multiSort]=\"true\">\n * <cngx-dga-header>\n * <span cngxDgaCell col=\"sm\" cngxDgaSortHeader=\"id\">ID</span>\n * <span cngxDgaCell col=\"grow\" cngxDgaSortHeader=\"name\">Name</span>\n * <span cngxDgaCell col=\"md\" align=\"end\" cngxDgaSortHeader=\"amount\">Amount</span>\n * </cngx-dga-header>\n * <!-- rows rendered by the consumer's @for over its own sorted array -->\n * </cngx-data-grid-accordion>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-sort-header.directive.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridAccordion, CngxSort, CngxSortHeader, CngxDgCell\n *\n * <example-url>/#/ui/data-grid-accordion/sortable-ledger</example-url>\n * <example-url>/#/ui/data-grid-accordion/bound-sort-filter</example-url>\n */\n@Directive({\n selector: '[cngxDgaSortHeader]',\n exportAs: 'cngxDgaSortHeader',\n standalone: true,\n host: {\n role: 'button',\n tabindex: '0',\n class: 'cngx-dga-sort-header',\n '[attr.aria-describedby]': 'statusId',\n '[class.cngx-dga-sort-header--active]': 'isActive()',\n '[class.cngx-dga-sort-header--asc]': 'isAsc()',\n '[class.cngx-dga-sort-header--desc]': 'isDesc()',\n '(click)': 'handleSort($event)',\n '(keydown.enter)': 'handleActivateKey($event)',\n '(keydown.space)': 'handleActivateKey($event)',\n },\n})\nexport class CngxDgaSortHeader {\n /** The field key this header cell sorts by. */\n readonly field = input.required<string>({ alias: 'cngxDgaSortHeader' });\n\n private readonly labels = injectDataGridAccordionLabels();\n private readonly locale = injectLocale();\n\n /** SR status while unsorted. Unbound, the `sortNone` label applies. */\n readonly notSortedLabel = input<string | undefined>(undefined, {\n alias: 'cngxDgaSortStatusNotSorted',\n });\n /** SR status while sorted ascending. Unbound, the `sortAscending` label applies. */\n readonly ascendingLabel = input<string | undefined>(undefined, {\n alias: 'cngxDgaSortStatusAscending',\n });\n /** SR status while sorted descending. Unbound, the `sortDescending` label applies. */\n readonly descendingLabel = input<string | undefined>(undefined, {\n alias: 'cngxDgaSortStatusDescending',\n });\n\n /**\n * Human column name spoken in the live sort announcement (`{label}` placeholder\n * of the announcement templates). Defaults to the header's own text, then to the\n * `unlabeledColumn` label - never to the field key.\n */\n readonly label = input<string | undefined>(undefined, { alias: 'cngxDgaSortLabel' });\n /**\n * Live announcement fired when this column becomes sorted ascending. `{label}` is\n * replaced. Unbound, the `sortAnnouncedAscending` label applies.\n */\n readonly ascendingAnnouncement = input<string | undefined>(undefined, {\n alias: 'cngxDgaSortAnnounceAscending',\n });\n /**\n * Live announcement fired when this column becomes sorted descending. `{label}` is\n * replaced. Unbound, the `sortAnnouncedDescending` label applies.\n */\n readonly descendingAnnouncement = input<string | undefined>(undefined, {\n alias: 'cngxDgaSortAnnounceDescending',\n });\n /**\n * Live announcement fired when this column's sort is cleared. `{label}` is replaced.\n * Unbound, the `sortAnnouncedCleared` label applies.\n */\n readonly clearedAnnouncement = input<string | undefined>(undefined, {\n alias: 'cngxDgaSortAnnounceCleared',\n });\n\n private readonly grid = injectDataGridAccordion('cngxDgaSortHeader');\n private readonly announcer = inject(CngxLiveAnnouncer);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n\n /** Stable id of the visually-hidden status element the host `aria-describedby` names. */\n protected readonly statusId = nextUid('cngx-dga-sort-status-');\n\n private readonly state = createSortHeaderState(() => this.grid.sort, this.field);\n\n /** `true` when this column is part of the active sort (primary or secondary). */\n readonly isActive = this.state.isActive;\n /** `true` when this column is active and sorted ascending. */\n readonly isAsc = this.state.isAsc;\n /** `true` when this column is active and sorted descending. */\n readonly isDesc = this.state.isDesc;\n\n /**\n * 1-based position of this column in the sort stack, or `0` when it is not active.\n * Only meaningful when the owning group has `[multiSort]` (for sort-order badges).\n */\n readonly priority = this.state.priority;\n\n private readonly statusText = computed(() => {\n const labels = this.labels();\n if (this.isAsc()) {\n return this.ascendingLabel() ?? labels.sortAscending;\n }\n if (this.isDesc()) {\n return this.descendingLabel() ?? labels.sortDescending;\n }\n return this.notSortedLabel() ?? labels.sortNone;\n });\n\n // A visually-hidden, aria-hidden description node the host `aria-describedby` names.\n // aria-hidden keeps it out of the name-from-contents walk (so the accessible name\n // stays the plain column label), while aria-describedby still reads it for the\n // description - the standard \"stable name + live description\" split.\n private readonly statusElement = this.createStatusElement();\n\n constructor() {\n // Imperative DOM sync: keep the description text tracking the sort state. No signal\n // writes, so this is a pure side effect (permitted in an effect).\n effect(() => {\n this.renderer.setProperty(this.statusElement, 'textContent', this.statusText());\n });\n }\n\n private createStatusElement(): HTMLElement {\n const element = this.renderer.createElement('span') as HTMLElement;\n this.renderer.setAttribute(element, 'id', this.statusId);\n this.renderer.setAttribute(element, 'aria-hidden', 'true');\n this.renderer.addClass(element, 'cngx-dga-sort-header__sr');\n this.renderer.appendChild(this.host, element);\n return element;\n }\n\n protected handleSort(event?: Event): void {\n this.state.toggle((event as { shiftKey?: boolean })?.shiftKey ?? false);\n // Announce the transition through the shared polite live region. Fired from the\n // handler (not an effect) so it speaks exactly once per user activation and stays\n // silent on init and on external sort changes. The always-present aria-describedby\n // node keeps the on-focus description; this is the change announcement some SR /\n // browser pairs miss when only a describedby text mutates on a focused control.\n this.announcer.announce(this.announcementText());\n }\n\n private announcementText(): string {\n const labels = this.labels();\n const label = this.label() ?? (this.headerText() || labels.unlabeledColumn);\n return formatMessage(this.announcementTemplate(), { label }, this.locale());\n }\n\n private announcementTemplate(): string {\n const labels = this.labels();\n if (this.isAsc()) {\n return this.ascendingAnnouncement() ?? labels.sortAnnouncedAscending;\n }\n if (this.isDesc()) {\n return this.descendingAnnouncement() ?? labels.sortAnnouncedDescending;\n }\n return this.clearedAnnouncement() ?? labels.sortAnnouncedCleared;\n }\n\n /**\n * The header's text as assistive tech reads it: `aria-hidden` subtrees (the sort\n * status node, decorative icons and badges) are left out.\n */\n private headerText(): string {\n return readableText(this.host).replace(/\\s+/g, ' ').trim();\n }\n\n // Any host but a native <button> gets no click from Enter / Space: sort here\n // and cancel the default so Space does not scroll the grid's overflow container.\n protected readonly handleActivateKey = createActivationKeyHandler(this.host, (event) =>\n this.handleSort(event),\n );\n}\n\n/** @internal Text content of `node`, skipping every `aria-hidden=\"true\"` subtree. */\nfunction readableText(node: Node): string {\n if (node.nodeType === Node.TEXT_NODE) {\n return node.textContent ?? '';\n }\n if (node instanceof Element && node.getAttribute('aria-hidden') === 'true') {\n return '';\n }\n let text = '';\n node.childNodes.forEach((child) => {\n text += readableText(child);\n });\n return text;\n}\n","import { DOCUMENT } from '@angular/common';\nimport { computed, DestroyRef, Directive, effect, ElementRef, inject, input } from '@angular/core';\n\nimport { injectDataGridAccordionLabels } from './i18n/data-grid-accordion-i18n';\nimport { injectDataGridAccordion } from './data-grid-accordion.token';\n\n/**\n * Turns a projected `<input>` into the filter box for the {@link CngxDataGridAccordion}\n * it lives in: it two-way-binds the group's `filterTerm` with no wiring. On each\n * keystroke it writes the value into `grid.filterTerm` after a debounce (owned here -\n * {@link CngxFilter} has none), so the consumer's `computed()` re-derives the visible\n * rows only once typing settles. An external term change (a programmatic clear) reflects\n * back into the box, but never while it is focused - that would fight the caret; the\n * deferred reconciliation lands when the box loses focus.\n *\n * The debounce lives in this slot, not in the group, because it is an input-UX concern;\n * a consumer driving the term programmatically writes `grid.filterTerm` directly with no\n * debounce. The default `aria-label` is the `filterRows` label of the language pack (a\n * consumer overrides via `cngxDgaFilterLabel`).\n *\n * ```html\n * <cngx-data-grid-accordion>\n * <cngx-dga-header>\n * <input cngxDgaFilter cngxDgaFilterLabel=\"Filter invoices\" />\n * </cngx-dga-header>\n * <!-- rows rendered by the consumer's @for over its filtered array -->\n * </cngx-data-grid-accordion>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-filter.directive.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridAccordion, CngxFilter, CngxDgaCount\n *\n * <example-url>/#/ui/data-grid-accordion/bound-sort-filter</example-url>\n * <example-url>/#/ui/data-grid-accordion/sortable-ledger</example-url>\n */\n@Directive({\n selector: 'input[cngxDgaFilter]',\n exportAs: 'cngxDgaFilter',\n standalone: true,\n host: {\n role: 'searchbox',\n class: 'cngx-dga-filter',\n '[attr.aria-label]': 'resolvedAriaLabel()',\n '(input)': 'handleInput($event)',\n '(blur)': 'handleBlur()',\n },\n})\nexport class CngxDgaFilter {\n private readonly labels = injectDataGridAccordionLabels();\n\n /** Accessible name for the filter box. Unbound, the `filterRows` label applies. */\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'cngxDgaFilterLabel' });\n /** Debounce in ms between the last keystroke and writing `grid.filterTerm`. */\n readonly debounce = input(200, { alias: 'cngxDgaFilterDebounce' });\n\n /** @internal */\n protected readonly resolvedAriaLabel = computed(\n () => this.ariaLabel() ?? this.labels().filterRows,\n );\n\n private readonly grid = injectDataGridAccordion('cngxDgaFilter');\n private readonly document = inject(DOCUMENT);\n private readonly element = inject<ElementRef<HTMLInputElement>>(ElementRef).nativeElement;\n private timer: ReturnType<typeof setTimeout> | undefined;\n\n constructor() {\n inject(DestroyRef).onDestroy(() => clearTimeout(this.timer));\n // Reflect an external term change (e.g. a programmatic clear) back into the box, but\n // never while the user is typing into it - overwriting `value` there resets the caret.\n // The deferred write catches up in handleBlur (focus is not a signal, so the effect\n // cannot re-run on its own when the box loses focus).\n effect(() => {\n const term = this.grid.filterTerm();\n if (this.document.activeElement !== this.element && this.element.value !== term) {\n this.element.value = term;\n }\n });\n }\n\n protected handleInput(event: Event): void {\n const value = (event.target as HTMLInputElement).value;\n clearTimeout(this.timer);\n this.timer = setTimeout(() => {\n this.timer = undefined;\n this.grid.filterTerm.set(value);\n }, this.debounce());\n }\n\n protected handleBlur(): void {\n // Flush a pending keystroke instead of letting the timer fire after blur:\n // an external write landing in that window would lose to the stale timer\n // and get overwritten. Typing then leaving commits what was typed.\n if (this.timer !== undefined) {\n clearTimeout(this.timer);\n this.timer = undefined;\n this.grid.filterTerm.set(this.element.value);\n return;\n }\n const term = this.grid.filterTerm();\n if (this.element.value !== term) {\n this.element.value = term;\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { nextUid } from '@cngx/core/utils';\n\nimport { injectDataGridAccordionLabels } from './i18n/data-grid-accordion-i18n';\nimport { CngxDgaFilter } from './data-grid-filter.directive';\n\n/**\n * A ready-made filter row for a {@link CngxDataGridAccordion}: a full-width\n * `grid-column: 1 / -1` band with a visible `<label>` and a search input, so a\n * consumer drops `<cngx-dga-filter label=\"Filter invoices\" />` instead of\n * hand-styling a `<div>` around a bare `<input cngxDgaFilter>`.\n *\n * It is a thin structural shell over the {@link CngxDgaFilter} brain, not a new\n * behaviour: the directive still owns the debounce, the two-way `filterTerm`\n * write, and the focused-caret guard. The shell adds only the chrome (span +\n * padding via `--cngx-dga-*` tokens) and a real `<label>` whose `for` binds the\n * input id, so the searchbox has a **visible** accessible name (WCAG 3.3.2)\n * rather than an invisible `aria-label` alone. The label text is mirrored onto\n * the directive's `cngxDgaFilterLabel` so the accessible name is the label, not\n * the directive's `'Filter rows'` default.\n *\n * ```html\n * <cngx-data-grid-accordion>\n * <cngx-dga-filter label=\"Filter invoices\" placeholder=\"Customer or invoice number\" />\n * <cngx-dga-header>…</cngx-dga-header>\n * <!-- rows -->\n * </cngx-data-grid-accordion>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-filter-field.component.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridAccordion, CngxDgaFilter, CngxDgaCount\n *\n * <example-url>/#/ui/data-grid-accordion/sortable-ledger</example-url>\n */\n@Component({\n selector: 'cngx-dga-filter',\n exportAs: 'cngxDgaFilterField',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxDgaFilter],\n templateUrl: './data-grid-filter-field.component.html',\n styleUrl: './data-grid-filter-field.component.css',\n host: {\n class: 'cngx-dga-filter-field',\n },\n})\nexport class CngxDgaFilterField {\n private readonly labels = injectDataGridAccordionLabels();\n\n /**\n * Visible label text; also drives the input's accessible name. Unbound, the\n * `filter` label applies.\n */\n readonly label = input<string | undefined>(undefined);\n\n /** @internal */\n protected readonly resolvedLabel = computed(() => this.label() ?? this.labels().filter);\n /** Optional placeholder shown inside the input. */\n readonly placeholder = input<string | undefined>(undefined);\n /** Debounce in ms forwarded to the hosted `cngxDgaFilter`. */\n readonly debounce = input(200);\n\n /** Stable id linking the visible `<label for>` to the input. */\n protected readonly inputId = nextUid('cngx-dga-filter-');\n}\n","<label class=\"cngx-dga-filter-field__label\" [attr.for]=\"inputId\">{{ resolvedLabel() }}</label>\n<input\n class=\"cngx-dga-filter-field__input\"\n [id]=\"inputId\"\n cngxDgaFilter\n [cngxDgaFilterLabel]=\"resolvedLabel()\"\n [cngxDgaFilterDebounce]=\"debounce()\"\n [attr.placeholder]=\"placeholder()\"\n/>\n","import { Directive, effect, ElementRef, inject, input, Renderer2, untracked } from '@angular/core';\n\nimport { coerceSignal } from '@cngx/core/utils';\n\nimport { CNGX_DATA_GRID_ACCORDION_CONFIG } from './config/data-grid-accordion.config.defaults';\nimport { injectDataGridAccordionLabels } from './i18n/data-grid-accordion-i18n';\n\n/**\n * A polite `aria-live` region for the visible-row count of a\n * {@link CngxDataGridAccordion}. The consumer feeds the count it already derived\n * (`[cngxDgaCount]=\"visibleRows().length\"`); the directive makes its host a\n * `role=\"status\"` / `aria-live=\"polite\"` / `aria-atomic=\"true\"` region and writes the\n * count text into it, so a filter that changes the count is announced to assistive tech\n * without the consumer wiring a live region by hand (Pillar 2 - the count change is\n * communicated, always in the DOM, content reactive).\n *\n * The host owns its text, so give it an empty element:\n *\n * ```html\n * <cngx-dga-footer>\n * <span cngxDgaCell [cngxDgaCount]=\"visibleRows().length\"></span>\n * </cngx-dga-footer>\n * ```\n *\n * `cngxDgaCell` puts the count in the first content column alongside every other\n * grid cell. It is not required - the footer already places a bare first child in\n * that column - but it is the consistent form the rest of the grid's cells use.\n *\n * The text comes from the `dataGridAccordion` section of the language pack\n * (`3 results`, a plural message with a locale-formatted count). Override it app-wide\n * through `withDataGridAccordionLabels`: a `count` formatter owns word order and plural\n * rules, the `countSingular` / `countPlural` nouns alone compose through `countWithNoun`.\n * Binding `cngxDgaCountSingular` / `cngxDgaCountPlural` per instance always composes\n * through `countWithNoun`.\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-count.directive.ts\n * @since 0.3.0\n * @relatedTo CngxDataGridAccordion, CngxDgaFilter\n *\n * <example-url>/#/ui/data-grid-accordion/sortable-ledger</example-url>\n */\n@Directive({\n selector: '[cngxDgaCount]',\n exportAs: 'cngxDgaCount',\n standalone: true,\n host: {\n role: 'status',\n 'aria-live': 'polite',\n 'aria-atomic': 'true',\n class: 'cngx-dga-count',\n },\n})\nexport class CngxDgaCount {\n /** The visible-row count the consumer derived. */\n readonly count = input.required<number>({ alias: 'cngxDgaCount' });\n private readonly labels = injectDataGridAccordionLabels();\n private readonly overrides = coerceSignal(inject(CNGX_DATA_GRID_ACCORDION_CONFIG).labels);\n\n /**\n * Singular noun for a count of 1. Unbound, the `countSingular` label applies;\n * binding either noun switches to `<count> <noun>` composition.\n */\n readonly singular = input<string | undefined>(undefined, { alias: 'cngxDgaCountSingular' });\n /**\n * Plural noun for any other count. Unbound, the `countPlural` label applies;\n * binding either noun switches to `<count> <noun>` composition.\n */\n readonly plural = input<string | undefined>(undefined, { alias: 'cngxDgaCountPlural' });\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n\n constructor() {\n // Imperative DOM sync of the announced text - a side effect, no signal write. The\n // labels read is untracked: the host is a live region, and a copy flip must not\n // re-speak a shown count; the next count change speaks the new language.\n effect(() => {\n const count = this.count();\n const singular = this.singular();\n const plural = this.plural();\n const text = untracked(() => {\n const labels = this.labels();\n if (singular === undefined && plural === undefined && !this.nounsOnlyOverride()) {\n return labels.count(count);\n }\n const noun =\n count === 1 ? (singular ?? labels.countSingular) : (plural ?? labels.countPlural);\n return labels.countWithNoun(count, noun);\n });\n this.renderer.setProperty(this.element, 'textContent', text);\n });\n }\n\n /**\n * `true` when the config overrides a noun but not the `count` formatter: the\n * nouns then compose, so a nouns-only override still reaches assistive tech.\n */\n private nounsOnlyOverride(): boolean {\n const overrides = this.overrides() ?? {};\n const nouns = overrides.countSingular !== undefined || overrides.countPlural !== undefined;\n return nouns && overrides.count === undefined;\n }\n}\n","import {\n inject,\n makeEnvironmentProviders,\n type EnvironmentProviders,\n type Provider,\n type Signal,\n} from '@angular/core';\n\nimport type {\n CngxDataGridAccordionConfig,\n CngxDataGridAccordionLabels,\n CngxDataGridSkin,\n} from './data-grid-accordion.config';\nimport {\n CNGX_DATA_GRID_ACCORDION_CONFIG,\n CNGX_DATA_GRID_ACCORDION_DEFAULTS,\n} from './data-grid-accordion.config.defaults';\n\n/**\n * Discriminated-union shape returned by `withDataGridSkin` and\n * `withDataGridAccordionLabels`. The reducer in\n * `provideDataGridAccordionConfig` / `provideDataGridAccordionConfigAt` matches\n * on `kind` and writes `payload` onto the corresponding config key. Mirrors\n * `CngxAccordionConfigFeature` from `@cngx/ui/accordion` so the consumer's mental\n * model is one across feature areas.\n *\n * @since 0.3.0\n */\nexport type CngxDataGridAccordionConfigFeature =\n | {\n readonly kind: 'skin';\n readonly payload: { readonly skin: CngxDataGridSkin };\n }\n | {\n readonly kind: 'labels';\n readonly payload: {\n readonly labels:\n | Partial<CngxDataGridAccordionLabels>\n | Signal<Partial<CngxDataGridAccordionLabels>>;\n };\n };\n\n/**\n * Reduces a list of feature objects into a partial config - last write wins per\n * key.\n *\n * @internal\n */\nfunction reduceFeatures(\n features: readonly CngxDataGridAccordionConfigFeature[],\n): Partial<CngxDataGridAccordionConfig> {\n const out: { skin?: CngxDataGridSkin; labels?: CngxDataGridAccordionConfig['labels'] } = {};\n for (const f of features) {\n switch (f.kind) {\n case 'skin':\n out.skin = f.payload.skin;\n break;\n case 'labels':\n out.labels = f.payload.labels;\n break;\n }\n }\n return out;\n}\n\n/**\n * Merges a partial config onto a base. Scalars take the partial when present.\n *\n * @internal\n */\nfunction mergeConfig(\n base: CngxDataGridAccordionConfig,\n partial: Partial<CngxDataGridAccordionConfig>,\n): CngxDataGridAccordionConfig {\n return {\n skin: partial.skin ?? base.skin,\n labels: partial.labels ?? base.labels,\n };\n}\n\n/**\n * Application-root configuration cascade for the data-grid-accordion. Pass a\n * `withDataGridSkin` feature in `bootstrapApplication`'s providers array to move\n * the app-wide default skin.\n *\n * Resolution priority (high -> low):\n * 1. Per-instance `[skin]` Input binding.\n * 2. `provideDataGridAccordionConfigAt(...)` in a parent component's\n * `viewProviders`.\n * 3. `provideDataGridAccordionConfig(...)` at the application root.\n * 4. Library defaults (`CNGX_DATA_GRID_ACCORDION_DEFAULTS`).\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideDataGridAccordionConfig(withDataGridSkin('ledger'))],\n * });\n * ```\n *\n * @since 0.3.0\n */\nexport function provideDataGridAccordionConfig(\n ...features: CngxDataGridAccordionConfigFeature[]\n): EnvironmentProviders {\n // Empty-features: skip the override so the root factory's\n // CNGX_DATA_GRID_ACCORDION_DEFAULTS reference flows through untouched. A fresh\n // merge would allocate identical content under a new reference and bust\n // downstream identity comparisons.\n if (features.length === 0) {\n return makeEnvironmentProviders([]);\n }\n const partial = reduceFeatures(features);\n return makeEnvironmentProviders([\n {\n provide: CNGX_DATA_GRID_ACCORDION_CONFIG,\n useValue: mergeConfig(CNGX_DATA_GRID_ACCORDION_DEFAULTS, partial),\n },\n ]);\n}\n\n/**\n * Component-scoped configuration cascade for the data-grid-accordion. Pass a\n * `withDataGridSkin` feature in a parent component's `viewProviders` array.\n *\n * Unlike `provideDataGridAccordionConfig` (root-only),\n * `provideDataGridAccordionConfigAt` injects the parent injector's\n * `CNGX_DATA_GRID_ACCORDION_CONFIG` value (resolves through the priority chain)\n * and merges the supplied features on top. Descendant grid instances see the\n * merged config; sibling sub-trees keep the inherited value untouched.\n *\n * ```ts\n * @Component({\n * viewProviders: [provideDataGridAccordionConfigAt(withDataGridSkin('report'))],\n * template: '<cngx-data-grid-accordion>...</cngx-data-grid-accordion>',\n * })\n * class Ledger {}\n * ```\n *\n * @since 0.3.0\n */\nexport function provideDataGridAccordionConfigAt(\n ...features: CngxDataGridAccordionConfigFeature[]\n): Provider[] {\n // Empty-features call: parent value flows through untouched. Skipping the\n // factory preserves reference identity through the sub-tree.\n if (features.length === 0) {\n return [];\n }\n const partial = reduceFeatures(features);\n return [\n {\n provide: CNGX_DATA_GRID_ACCORDION_CONFIG,\n useFactory: () => {\n const parent = inject(CNGX_DATA_GRID_ACCORDION_CONFIG, { skipSelf: true });\n return mergeConfig(parent, partial);\n },\n },\n ];\n}\n","import type { Signal } from '@angular/core';\n\nimport type { CngxDataGridAccordionLabels, CngxDataGridSkin } from './data-grid-accordion.config';\nimport type { CngxDataGridAccordionConfigFeature } from './provide-data-grid-accordion-config';\n\n// Sort and filter ship NO config feature (no `withDataGridSort` / `withDataGridFilter`).\n// They are per-instance state - each grid sorts and filters its own data - so there is\n// no plausible app-wide default to move onto the cascade, mirroring the deliberate\n// absence of `withDataGridColumns`. `[skin]` earns `withDataGridSkin` because a design\n// system does pick one skin org-wide; sort/filter never would. A `with*` is added only\n// if a genuine app-wide default surfaces later (e.g. an org-wide multi-sort toggle),\n// never speculatively.\n\n/**\n * Set the app-wide default visual skin for `<cngx-data-grid-accordion>`. Unset by\n * default (the base flat grid look). Per-instance `[skin]` Input still wins; this\n * moves the cascade default. Structure, cells, ARIA, and keyboard behaviour are\n * identical across skins - only the `[data-skin]` host attribute changes the CSS.\n * Typed class-sugar, not a mode flag.\n *\n * ```ts\n * provideDataGridAccordionConfig(withDataGridSkin('ledger'));\n * ```\n *\n * @since 0.3.0\n */\nexport function withDataGridSkin(skin: CngxDataGridSkin): CngxDataGridAccordionConfigFeature {\n return { kind: 'skin', payload: { skin } };\n}\n\n/**\n * Set the app-wide copy of the grid's count, sort, filter and row surfaces.\n * Unset keys read the `dataGridAccordion` section of the language pack. Pass a\n * `Signal` of a partial bundle to switch languages at runtime; every part follows\n * it, live regions with their next change. A later call (or a nested\n * `provideDataGridAccordionConfigAt`) replaces the whole bundle rather than\n * merging with it.\n *\n * ```ts\n * provideDataGridAccordionConfig(\n * withDataGridAccordionLabels({ filterRows: 'Zeilen filtern', count: (n) => `${n} Treffer` }),\n * );\n * ```\n *\n * @since 0.3.0\n */\nexport function withDataGridAccordionLabels(\n labels: Partial<CngxDataGridAccordionLabels> | Signal<Partial<CngxDataGridAccordionLabels>>,\n): CngxDataGridAccordionConfigFeature {\n return { kind: 'labels', payload: { labels } };\n}\n","/**\n * @module `@cngx/ui/data-grid-accordion`\n */\nexport { CngxDataGridAccordion } from './data-grid-accordion.component';\nexport { CngxDataGridRow } from './data-grid-row.component';\nexport { CngxDgaRowBusy } from './data-grid-row-busy.directive';\nexport { CngxDgaRowError } from './data-grid-row-error.directive';\nexport type { CngxDgaRowStateContext } from './data-grid-row-state-context';\nexport { CngxDataGridHeader } from './data-grid-header.component';\nexport { CngxDgaSortHeader } from './data-grid-sort-header.directive';\nexport { CngxDgaFilter } from './data-grid-filter.directive';\nexport { CngxDgaFilterField } from './data-grid-filter-field.component';\nexport { CngxDgaCount } from './data-grid-count.directive';\nexport { CngxDataGridFooter } from './data-grid-footer.component';\nexport {\n CngxDgCell,\n type CngxDgCellAlign,\n type CngxDgCellTrack,\n} from './data-grid-cell.directive';\nexport {\n CNGX_DATA_GRID_ACCORDION,\n type CngxDataGridAccordionContext,\n} from './data-grid-accordion.token';\nexport type {\n CngxDataGridAccordionConfig,\n CngxDataGridAccordionLabels,\n CngxDataGridSeverity,\n CngxDataGridSkin,\n} from './config/data-grid-accordion.config';\nexport { CNGX_DATA_GRID_ACCORDION_CONFIG } from './config/data-grid-accordion.config.defaults';\nexport {\n provideDataGridAccordionConfig,\n provideDataGridAccordionConfigAt,\n type CngxDataGridAccordionConfigFeature,\n} from './config/provide-data-grid-accordion-config';\nexport { withDataGridAccordionLabels, withDataGridSkin } from './config/features';\nexport { injectDataGridAccordionConfig } from './config/inject-data-grid-accordion-config';\nexport {\n CNGX_DATA_GRID_ACCORDION_LANGUAGE_EN,\n type CngxDataGridAccordionLanguageSection,\n} from './i18n/data-grid-accordion-language-section';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA8CA;;;;;;;;AAQG;MACU,wBAAwB,GAAG,IAAI,cAAc,CACxD,0BAA0B;AAG5B;;;;;;;;AAQG;AACG,SAAU,uBAAuB,CAAC,QAAgB,EAAA;AACtD,IAAA,MAAM,IAAI,GAAG,MAAM,CAAC,wBAAwB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;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