@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
@@ -8,8 +8,7 @@ import { createLanguageSection } from '@cngx/core/i18n';
8
8
  * The English chart-panel section: the single source of the chart panel's
9
9
  * English copy. The `CNGX_CHART_PANEL_CONFIG` labels default to it.
10
10
  *
11
- * @category ui/chart-panel/i18n
12
- * @since 0.1.0
11
+ * @since 0.3.0
13
12
  * @relatedTo CNGX_CHART_PANEL_CONFIG
14
13
  */
15
14
  const CNGX_CHART_PANEL_LANGUAGE_EN = {
@@ -41,9 +40,8 @@ const CNGX_CHART_PANEL_DEFAULTS = {
41
40
  * with a default factory, so `inject(CNGX_CHART_PANEL_CONFIG)` always
42
41
  * resolves.
43
42
  *
44
- * @category ui/chart-panel
45
43
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/config/chart-panel.config.defaults.ts
46
- * @since 0.1.0
44
+ * @since 0.3.0
47
45
  * @relatedTo provideChartPanelConfig, provideChartPanelConfigAt, injectChartPanelConfig
48
46
  */
49
47
  const CNGX_CHART_PANEL_CONFIG = new InjectionToken('CNGX_CHART_PANEL_CONFIG', {
@@ -58,8 +56,7 @@ const CNGX_CHART_PANEL_CONFIG = new InjectionToken('CNGX_CHART_PANEL_CONFIG', {
58
56
  * defaults). Equivalent to `inject(CNGX_CHART_PANEL_CONFIG)` - the helper
59
57
  * exists so consumers don't import the token directly.
60
58
  *
61
- * @category ui/chart-panel
62
- * @since 0.1.0
59
+ * @since 0.3.0
63
60
  */
64
61
  function injectChartPanelConfig() {
65
62
  return inject(CNGX_CHART_PANEL_CONFIG);
@@ -71,8 +68,7 @@ function injectChartPanelConfig() {
71
68
  * runtime language switch. Runs in injection context; read it inside a `computed()`, a
72
69
  * template or a handler, and untracked where it builds live-region text.
73
70
  *
74
- * @category ui/chart-panel
75
- * @since 0.1.0
71
+ * @since 0.3.0
76
72
  */
77
73
  function injectChartPanelAriaLabels() {
78
74
  return createFilledOverrideMerge(injectChartPanelSiteCopy(), injectChartPanelConfig().ariaLabels);
@@ -119,16 +115,15 @@ const CNGX_CHART_PANEL = new InjectionToken('CNGX_CHART_PANEL');
119
115
  * </cngx-chart-panel>
120
116
  * ```
121
117
  *
122
- * @category ui/chart-panel
123
- * @docsKind primary
124
118
  * @wcag AA
125
119
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel.component.ts
126
- * @since 0.1.0
120
+ * @since 0.3.0
127
121
  * @relatedTo CngxChart, CngxChartLegend, CngxChartPanelTitle, CngxChartPanelActions
128
122
  *
129
- * <example-url>http://localhost:4200/#/ui/chart-panel/basic/titled-panel-with-legend</example-url>
130
- * <example-url>http://localhost:4200/#/ui/chart-panel/async/panel-chrome-vs-chart-state</example-url>
131
- * <example-url>http://localhost:4200/#/ui/chart-panel/slots/actions-and-footer</example-url>
123
+ * <example-url>/#/ui/chart-panel/basic/titled-panel-with-legend</example-url>
124
+ * <example-url>/#/ui/chart-panel/async/panel-chrome-vs-chart-state</example-url>
125
+ * <example-url>/#/ui/chart-panel/slots/actions-and-footer</example-url>
126
+ * @axis level organism
132
127
  */
133
128
  class CngxChartPanel {
134
129
  titleId = signal(undefined, ...(ngDevMode ? [{ debugName: "titleId" }] : /* istanbul ignore next */ []));
@@ -370,8 +365,7 @@ function mergeConfig(base, partial) {
370
365
  * });
371
366
  * ```
372
367
  *
373
- * @category ui/chart-panel
374
- * @since 0.1.0
368
+ * @since 0.3.0
375
369
  */
376
370
  function provideChartPanelConfig(...features) {
377
371
  // Empty-features: skip the override so the root factory's defaults reference
@@ -391,8 +385,7 @@ function provideChartPanelConfig(...features) {
391
385
  * Component-scoped configuration cascade for the chart-panel. Injects the
392
386
  * parent injector's value and deep-merges the supplied features on top.
393
387
  *
394
- * @category ui/chart-panel
395
- * @since 0.1.0
388
+ * @since 0.3.0
396
389
  */
397
390
  function provideChartPanelConfigAt(...features) {
398
391
  // Empty-features call: parent value flows through untouched.
@@ -418,8 +411,7 @@ function provideChartPanelConfigAt(...features) {
418
411
  * language at runtime; the busy status speaks the new language with the next
419
412
  * busy phase.
420
413
  *
421
- * @category ui/chart-panel
422
- * @since 0.1.0
414
+ * @since 0.3.0
423
415
  */
424
416
  function withChartPanelAriaLabels(labels) {
425
417
  return { kind: 'ariaLabels', payload: labels };
@@ -428,8 +420,7 @@ function withChartPanelAriaLabels(labels) {
428
420
  * Move the cascade default for where a projected `cngx-chart-legend` sits.
429
421
  * Per-instance `[legendPosition]` still wins.
430
422
  *
431
- * @category ui/chart-panel
432
- * @since 0.1.0
423
+ * @since 0.3.0
433
424
  */
434
425
  function withChartPanelLegendPosition(position) {
435
426
  return { kind: 'legendPosition', payload: { legendPosition: position } };
@@ -446,9 +437,8 @@ const CONTROL_SELECTOR = 'a[href], button, input, select, textarea, [role]';
446
437
  * Registration runs against {@link CNGX_CHART_PANEL}, which the panel provides -
447
438
  * the title resolves it from its declaration site in the consumer template.
448
439
  *
449
- * @category ui/chart-panel
450
440
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts
451
- * @since 0.1.0
441
+ * @since 0.3.0
452
442
  * @relatedTo CngxChartPanel, CngxChartPanelSubtitle
453
443
  */
454
444
  class CngxChartPanelTitle {
@@ -476,9 +466,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
476
466
  * Marks the panel's secondary line under the title - a period, a unit, a
477
467
  * comparison basis. Descriptive only; it does not join the accessible name.
478
468
  *
479
- * @category ui/chart-panel
480
469
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts
481
- * @since 0.1.0
470
+ * @since 0.3.0
482
471
  * @relatedTo CngxChartPanel, CngxChartPanelTitle
483
472
  */
484
473
  class CngxChartPanelSubtitle {
@@ -510,9 +499,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
510
499
  * Activation stays blocked by the slot (pointer and Enter/Space), so the
511
500
  * control keeps its focusability instead of turning natively `disabled`.
512
501
  *
513
- * @category ui/chart-panel
514
502
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts
515
- * @since 0.1.0
503
+ * @since 0.3.0
516
504
  * @relatedTo CngxChartPanel
517
505
  */
518
506
  class CngxChartPanelActions {
@@ -556,9 +544,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
556
544
  * Marks the panel's footer row - a source note, a last-updated timestamp, a
557
545
  * drill-down link. Sits below the chart body and the legend.
558
546
  *
559
- * @category ui/chart-panel
560
547
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts
561
- * @since 0.1.0
548
+ * @since 0.3.0
562
549
  * @relatedTo CngxChartPanel
563
550
  */
564
551
  class CngxChartPanelFooter {
@@ -575,7 +562,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
575
562
  }] });
576
563
 
577
564
  /**
578
- * @module @cngx/ui/chart-panel
565
+ * @module `@cngx/ui/chart-panel`
579
566
  */
580
567
 
581
568
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"cngx-ui-chart-panel.mjs","sources":["../../../projects/ui/chart-panel/i18n/chart-panel-language-section.ts","../../../projects/ui/chart-panel/i18n/chart-panel-i18n.ts","../../../projects/ui/chart-panel/config/chart-panel.config.defaults.ts","../../../projects/ui/chart-panel/config/inject-chart-panel-config.ts","../../../projects/ui/chart-panel/chart-panel.token.ts","../../../projects/ui/chart-panel/chart-panel.component.ts","../../../projects/ui/chart-panel/config/provide-chart-panel-config.ts","../../../projects/ui/chart-panel/config/features.ts","../../../projects/ui/chart-panel/chart-panel-slots.ts","../../../projects/ui/chart-panel/public-api.ts","../../../projects/ui/chart-panel/cngx-ui-chart-panel.ts"],"sourcesContent":["/**\n * The chart-panel section of a {@link CngxLanguagePack}: the copy of\n * `CngxChartPanel`. It feeds the `ariaLabels` of `CNGX_CHART_PANEL_CONFIG`; a\n * key set through `withChartPanelAriaLabels` still wins.\n *\n * @category ui/chart-panel/i18n\n * @since 0.1.0\n * @relatedTo CNGX_CHART_PANEL_CONFIG, withChartPanelAriaLabels\n */\nexport interface CngxChartPanelLanguageSection {\n /** Accessible name announced while a panel-level operation runs. */\n readonly busy: string;\n}\n\n/**\n * The English chart-panel section: the single source of the chart panel's\n * English copy. The `CNGX_CHART_PANEL_CONFIG` labels default to it.\n *\n * @category ui/chart-panel/i18n\n * @since 0.1.0\n * @relatedTo CNGX_CHART_PANEL_CONFIG\n */\nexport const CNGX_CHART_PANEL_LANGUAGE_EN: CngxChartPanelLanguageSection = {\n busy: 'Updating',\n};\n\ndeclare module '@cngx/core/i18n' {\n interface CngxLanguagePack {\n readonly chartPanel: CngxChartPanelLanguageSection;\n }\n}\n","import { createLanguageSection } from '@cngx/core/i18n';\n\nimport { CNGX_CHART_PANEL_LANGUAGE_EN } from './chart-panel-language-section';\n\n/**\n * @internal The chart-panel section of the active pack over the English section,\n * shared app-wide. Consumers override copy through `withChartPanelAriaLabels`.\n */\nexport const injectChartPanelSiteCopy = createLanguageSection(\n 'chartPanel',\n CNGX_CHART_PANEL_LANGUAGE_EN,\n);\n","import { InjectionToken } from '@angular/core';\n\nimport type { CngxChartPanelConfig } from './chart-panel.config';\n\n/**\n * Library defaults for the chart-panel configuration cascade. Carries no copy:\n * the `ariaLabels` defaults are the `chartPanel` section of the language pack;\n * single keys ride the `withChartPanelAriaLabels` feature.\n *\n * Exported for intra-lib consumers but **NOT** re-exported from\n * `public-api.ts` - downstream consumers reach the defaults via\n * `inject(CNGX_CHART_PANEL_CONFIG)`.\n *\n * @internal\n */\nexport const CNGX_CHART_PANEL_DEFAULTS: CngxChartPanelConfig = {\n legendPosition: 'bottom',\n};\n\n/**\n * App-wide configuration cascade for the chart-panel. `providedIn: 'root'`\n * with a default factory, so `inject(CNGX_CHART_PANEL_CONFIG)` always\n * resolves.\n *\n * @category ui/chart-panel\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/config/chart-panel.config.defaults.ts\n * @since 0.1.0\n * @relatedTo provideChartPanelConfig, provideChartPanelConfigAt, injectChartPanelConfig\n */\nexport const CNGX_CHART_PANEL_CONFIG = new InjectionToken<CngxChartPanelConfig>(\n 'CNGX_CHART_PANEL_CONFIG',\n {\n providedIn: 'root',\n factory: () => CNGX_CHART_PANEL_DEFAULTS,\n },\n);\n","import { inject, type Signal } from '@angular/core';\nimport { createFilledOverrideMerge } from '@cngx/core/utils';\n\nimport { injectChartPanelSiteCopy } from '../i18n/chart-panel-i18n';\nimport type { CngxChartPanelAriaLabels, CngxChartPanelConfig } from './chart-panel.config';\nimport { CNGX_CHART_PANEL_CONFIG } from './chart-panel.config.defaults';\n\n/**\n * Convenience accessor for the chart-panel configuration cascade. Runs in\n * injection context; resolves through the priority chain (per-instance Input\n * -> `provideChartPanelConfigAt` -> `provideChartPanelConfig` -> library\n * defaults). Equivalent to `inject(CNGX_CHART_PANEL_CONFIG)` - the helper\n * exists so consumers don't import the token directly.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport function injectChartPanelConfig(): CngxChartPanelConfig {\n return inject(CNGX_CHART_PANEL_CONFIG);\n}\n\n/**\n * The resolved strings of the chart-panel config in scope, every key the\n * config leaves unset (also a key an override sets to `undefined`) filled from\n * the `chartPanel` section of the active pack, as a Signal that follows a\n * runtime language switch. Runs in injection context; read it inside a `computed()`, a\n * template or a handler, and untracked where it builds live-region text.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport function injectChartPanelAriaLabels(): Signal<Required<CngxChartPanelAriaLabels>> {\n return createFilledOverrideMerge(injectChartPanelSiteCopy(), injectChartPanelConfig().ariaLabels);\n}\n","import { InjectionToken, type Signal } from '@angular/core';\n\n/**\n * Contract the panel exposes to its projected slots. The title slot registers\n * its generated id on init and the panel derives its `aria-labelledby` from\n * it; the actions slot reads the panel-level busy state and the id of the\n * node that says why the actions are unavailable.\n *\n * Fronted by a DI token rather than the concrete `CngxChartPanel` class so the\n * slot stays decompose-safe - an ejected skin talks to the same token the\n * library defines. Mirrors `CNGX_STAT` behind the `cngxStat*` slots.\n */\nexport interface CngxChartPanelRegistry {\n /** Register the id contributed by the title slot. */\n registerTitle(id: string): void;\n /**\n * Withdraw a previously registered title id. Takes the id rather than no\n * argument so a destroy arriving after a replacement title already\n * registered cannot clear the newer one.\n */\n unregisterTitle(id: string): void;\n /**\n * Panel-level busy (the panel `[state]`, never the chart's data). The\n * actions slot reads it to mark each projected action disabled.\n */\n readonly busy: Signal<boolean>;\n /**\n * Id of the always-rendered node naming why the actions are disabled while\n * busy. Referenced only while `busy()` holds.\n */\n readonly busyDescriptionId: string;\n}\n\n/** DI token carrying the {@link CngxChartPanelRegistry} a `CngxChartPanel` provides. */\nexport const CNGX_CHART_PANEL = new InjectionToken<CngxChartPanelRegistry>('CNGX_CHART_PANEL');\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n type ElementRef,\n input,\n type Signal,\n signal,\n untracked,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { CngxLiveRegion } from '@cngx/common/a11y';\nimport { type CngxAsyncState, nextUid } from '@cngx/core/utils';\n\nimport {\n injectChartPanelAriaLabels,\n injectChartPanelConfig,\n} from './config/inject-chart-panel-config';\nimport { CNGX_CHART_PANEL, type CngxChartPanelRegistry } from './chart-panel.token';\n\n/**\n * Where the projected legend sits relative to the chart body.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport type CngxChartPanelLegendPosition = 'top' | 'bottom' | 'none';\n\n/**\n * Dashboard housing for a chart: a titled, footer-capable region that frames\n * whatever `cngx-chart` or preset the consumer projects into it.\n *\n * **What it deliberately does not do.** `cngx-chart` already owns the data-level\n * async envelope - its own `[state]`, its skeleton / empty / error slots, its\n * SR data table. The panel never duplicates that machine. Reproducing it here\n * would put two managers on one state (Pillar 1) and turn the panel into a\n * God-component (Pillar 3). The chart stays the authority on what the body\n * shows; the panel only frames it.\n *\n * What the panel does own is the chrome a bare chart cannot express: a title\n * that names the region for assistive tech, a subtitle, a header action\n * cluster, and a footer. `role=\"group\"` plus `aria-labelledby` pointing at the\n * projected title means a screen reader announces \"Revenue by quarter, group\"\n * instead of dropping the user into an unlabelled SVG (Pillar 2).\n *\n * Panel-level busy marks the **header**, never the group. An `aria-busy` on the\n * region would hold back the projected chart's own live announcements and tell\n * AT that a perfectly stable chart is updating - the same boundary violation in\n * the a11y layer that duplicating its view switch would be in the state layer.\n * A hidden status region (outside the busy header) announces the configured\n * `ariaLabels.busy` string while the panel-level operation runs.\n *\n * ```html\n * <cngx-chart-panel>\n * <h3 cngxChartPanelTitle>Revenue by quarter</h3>\n * <span cngxChartPanelSubtitle>EUR, net</span>\n * <button cngxChartPanelActions type=\"button\">Refresh</button>\n *\n * <cngx-chart [data]=\"series\" [state]=\"revenue\">\n * <svg:g cngxLine [data]=\"series\"></svg:g>\n * </cngx-chart>\n *\n * <small cngxChartPanelFooter>Source: finance warehouse</small>\n * </cngx-chart-panel>\n * ```\n *\n * @category ui/chart-panel\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel.component.ts\n * @since 0.1.0\n * @relatedTo CngxChart, CngxChartLegend, CngxChartPanelTitle, CngxChartPanelActions\n *\n * <example-url>http://localhost:4200/#/ui/chart-panel/basic/titled-panel-with-legend</example-url>\n * <example-url>http://localhost:4200/#/ui/chart-panel/async/panel-chrome-vs-chart-state</example-url>\n * <example-url>http://localhost:4200/#/ui/chart-panel/slots/actions-and-footer</example-url>\n */\n@Component({\n selector: 'cngx-chart-panel',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxLiveRegion],\n providers: [{ provide: CNGX_CHART_PANEL, useExisting: CngxChartPanel }],\n host: {\n class: 'cngx-chart-panel',\n role: 'group',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.data-legend]': 'legendPosition()',\n '[class.cngx-chart-panel--busy]': 'panelBusy()',\n },\n template: `\n <header class=\"cngx-chart-panel__header\" [attr.aria-busy]=\"panelBusy() || null\">\n <div class=\"cngx-chart-panel__heading\">\n <ng-content select=\"[cngxChartPanelTitle]\" />\n <ng-content select=\"[cngxChartPanelSubtitle]\" />\n </div>\n\n <!-- Dimmed and aria-disabled while a panel-level operation runs, so a\n second range change is not invited into an in-flight one. The cluster\n stays in the DOM and in the a11y tree; only the state flips (Pillar\n 2). Deliberately not inert: that would hide the actions from AT\n entirely and the aria-disabled would never be announced. A group,\n since aria-disabled is not allowed on a generic container; it\n covers any projected content, while each [cngxChartPanelActions]\n control also carries the state and the reason itself. -->\n <div\n #actionSlot\n class=\"cngx-chart-panel__action-slot\"\n role=\"group\"\n [attr.aria-disabled]=\"panelBusy() || null\"\n [attr.aria-describedby]=\"panelBusy() ? busyDescriptionId : null\"\n >\n <ng-content select=\"[cngxChartPanelActions]\" />\n </div>\n </header>\n\n <!-- Why the actions are disabled. Always in the DOM; only the\n aria-describedby reference above is gated on the busy state. -->\n <span\n [id]=\"busyDescriptionId\"\n class=\"cngx-chart-panel__sr cngx-chart-panel__busy-description\"\n >{{ busyLabel() }}</span\n >\n\n <!-- One legend outlet, placed by the CSS order property. A duplicated\n ng-content selector would leave the second outlet permanently empty,\n and the legend carries no focusable content, so visual reordering\n cannot desync from tab order. -->\n <div class=\"cngx-chart-panel__legend\">\n <ng-content select=\"cngx-chart-legend\" />\n </div>\n\n <div class=\"cngx-chart-panel__body\">\n <!-- No view switch here, and no panel-owned placeholder either: the\n projected cngx-chart owns the data async envelope end to end. -->\n <ng-content />\n </div>\n\n <ng-content select=\"[cngxChartPanelFooter]\" />\n\n <!-- Hidden status region for the panel-level busy phase. Outside the\n aria-busy header on purpose: a live region inside a busy container\n has its announcements suppressed. -->\n <span cngxLiveRegion class=\"cngx-chart-panel__sr cngx-chart-panel__status\">{{\n busyStatus()\n }}</span>\n `,\n styleUrls: ['./chart-panel.component.css'],\n})\nexport class CngxChartPanel implements CngxChartPanelRegistry {\n private readonly titleId = signal<string | undefined>(undefined);\n private readonly config = injectChartPanelConfig();\n private readonly ariaLabels = injectChartPanelAriaLabels();\n\n /**\n * Panel-level async envelope - the one driving the header chrome, not the\n * chart's data. Bind the chart's own `[state]` to the chart; bind a\n * range-switch or export operation here. Optional per the bridge-input rule.\n */\n readonly state = input<\n CngxAsyncState<unknown> | undefined,\n CngxAsyncState<unknown> | '' | undefined\n >(undefined, { transform: (v) => (typeof v === 'string' ? undefined : v) });\n\n /**\n * Where the projected `cngx-chart-legend` sits. `'none'` hides it. Matches\n * the bare `cngx-chart-legend` tag; a legend wrapped in an element of your\n * own lands in the body slot instead.\n */\n readonly legendPosition = input<CngxChartPanelLegendPosition>(\n this.config.legendPosition ?? 'bottom',\n );\n\n /** @internal Panel-level busy, never the chart's data-loading state. */\n protected readonly panelBusy = computed(() => this.state()?.isBusy() ?? false);\n\n /** {@inheritDoc CngxChartPanelRegistry.busy} */\n readonly busy: Signal<boolean> = this.panelBusy;\n\n /** @internal Names why the action cluster is disabled while busy; follows a language switch. */\n protected readonly busyLabel = computed(() => this.ariaLabels().busy);\n\n /**\n * @internal Text of the hidden status region. The label is read untracked, so\n * a language switch does not re-announce a running busy phase; the next one\n * speaks the new language.\n */\n protected readonly busyStatus = computed(() =>\n this.panelBusy() ? untracked(() => this.ariaLabels().busy) : '',\n );\n\n /** {@inheritDoc CngxChartPanelRegistry.busyDescriptionId} */\n readonly busyDescriptionId = `${nextUid('cngx-chart-panel')}-busy`;\n\n private readonly actionSlot = viewChild.required<ElementRef<HTMLElement>>('actionSlot');\n\n constructor() {\n // Keyboard guard for the aria-disabled action cluster. `pointer-events:\n // none` stops clicks while busy, but a focused action still activates on\n // Enter/Space. Capture phase, so the guard runs before any consumer key\n // handler on the projected actions - a bubble listener would fire after\n // them and hold back only the native activation. preventDefault on\n // keydown stops the synthesized Enter click; keyup covers browsers that\n // activate buttons on Space release.\n effect((onCleanup) => {\n const slot = this.actionSlot().nativeElement;\n const guard = (event: KeyboardEvent): void => {\n if (!this.panelBusy()) {\n return;\n }\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n slot.addEventListener('keydown', guard, true);\n slot.addEventListener('keyup', guard, true);\n onCleanup(() => {\n slot.removeEventListener('keydown', guard, true);\n slot.removeEventListener('keyup', guard, true);\n });\n });\n }\n\n /** {@inheritDoc CngxChartPanelRegistry.registerTitle} */\n registerTitle(id: string): void {\n this.titleId.set(id);\n }\n\n /** {@inheritDoc CngxChartPanelRegistry.unregisterTitle} */\n unregisterTitle(id: string): void {\n this.titleId.update((current) => (current === id ? undefined : current));\n }\n\n /**\n * @internal Accessible name of the region, from the projected title slot.\n * `null` when no title was projected - an unnamed group is better than one\n * pointing at an id that does not exist.\n */\n protected readonly labelledBy = computed(() => this.titleId() ?? null);\n}\n","import {\n inject,\n makeEnvironmentProviders,\n type EnvironmentProviders,\n type Provider,\n type Signal,\n} from '@angular/core';\nimport { createOverrideMerge } from '@cngx/core/utils';\n\nimport type { CngxChartPanelAriaLabels, CngxChartPanelConfig } from './chart-panel.config';\nimport { CNGX_CHART_PANEL_CONFIG, CNGX_CHART_PANEL_DEFAULTS } from './chart-panel.config.defaults';\n\nconst NO_ARIA_LABELS: CngxChartPanelAriaLabels = {};\n\n/**\n * Discriminated-union shape returned by the chart-panel config features. The\n * reducer matches on `kind` and merges `payload` into the corresponding config\n * sub-tree. Mirrors `CngxStatCardConfigFeature` and `CngxBreadcrumbConfigFeature`.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport type CngxChartPanelConfigFeature =\n | {\n readonly kind: 'ariaLabels';\n readonly payload: CngxChartPanelAriaLabels | Signal<CngxChartPanelAriaLabels>;\n }\n | {\n readonly kind: 'legendPosition';\n readonly payload: {\n readonly legendPosition: NonNullable<CngxChartPanelConfig['legendPosition']>;\n };\n };\n\n/**\n * Reduces a list of feature objects into a partial config - last write wins\n * per sub-tree.\n *\n * @internal\n */\nfunction reduceFeatures(\n features: readonly CngxChartPanelConfigFeature[],\n): Partial<CngxChartPanelConfig> {\n const out: {\n ariaLabels?: NonNullable<CngxChartPanelConfig['ariaLabels']>;\n legendPosition?: NonNullable<CngxChartPanelConfig['legendPosition']>;\n } = {};\n for (const f of features) {\n switch (f.kind) {\n case 'ariaLabels':\n out.ariaLabels = createOverrideMerge(out.ariaLabels ?? NO_ARIA_LABELS, f.payload);\n break;\n case 'legendPosition':\n out.legendPosition = f.payload.legendPosition;\n break;\n }\n }\n return out;\n}\n\n/**\n * Two-level deep merge: the nested `ariaLabels` sub-tree spread-merges; the\n * flat top-level scalars take the partial when present, else the base.\n *\n * @internal\n */\nfunction mergeConfig(\n base: CngxChartPanelConfig,\n partial: Partial<CngxChartPanelConfig>,\n): CngxChartPanelConfig {\n return {\n ariaLabels: createOverrideMerge(base.ariaLabels ?? NO_ARIA_LABELS, partial.ariaLabels),\n legendPosition: partial.legendPosition ?? base.legendPosition,\n };\n}\n\n/**\n * Application-root configuration cascade for the chart-panel.\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideChartPanelConfig(withChartPanelLegendPosition('top'))],\n * });\n * ```\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport function provideChartPanelConfig(\n ...features: CngxChartPanelConfigFeature[]\n): EnvironmentProviders {\n // Empty-features: skip the override so the root factory's defaults reference\n // flows through untouched, preserving downstream identity comparisons.\n if (features.length === 0) {\n return makeEnvironmentProviders([]);\n }\n const partial = reduceFeatures(features);\n return makeEnvironmentProviders([\n {\n provide: CNGX_CHART_PANEL_CONFIG,\n useValue: mergeConfig(CNGX_CHART_PANEL_DEFAULTS, partial),\n },\n ]);\n}\n\n/**\n * Component-scoped configuration cascade for the chart-panel. Injects the\n * parent injector's value and deep-merges the supplied features on top.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport function provideChartPanelConfigAt(\n ...features: CngxChartPanelConfigFeature[]\n): Provider[] {\n // Empty-features call: parent value flows through untouched.\n if (features.length === 0) {\n return [];\n }\n const partial = reduceFeatures(features);\n return [\n {\n provide: CNGX_CHART_PANEL_CONFIG,\n useFactory: () => {\n const parent = inject(CNGX_CHART_PANEL_CONFIG, { skipSelf: true });\n return mergeConfig(parent, partial);\n },\n },\n ];\n}\n","import type { Signal } from '@angular/core';\n\nimport type { CngxChartPanelLegendPosition } from '../chart-panel.component';\nimport type { CngxChartPanelAriaLabels } from './chart-panel.config';\nimport type { CngxChartPanelConfigFeature } from './provide-chart-panel-config';\n\n/**\n * Override the chart-panel's string fallbacks. The defaults come from the\n * `chartPanel` section of the language pack (English without one); this\n * overrides single keys on top of it. Pass a `Signal` to switch the\n * language at runtime; the busy status speaks the new language with the next\n * busy phase.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport function withChartPanelAriaLabels(\n labels: CngxChartPanelAriaLabels | Signal<CngxChartPanelAriaLabels>,\n): CngxChartPanelConfigFeature {\n return { kind: 'ariaLabels', payload: labels };\n}\n\n/**\n * Move the cascade default for where a projected `cngx-chart-legend` sits.\n * Per-instance `[legendPosition]` still wins.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport function withChartPanelLegendPosition(\n position: CngxChartPanelLegendPosition,\n): CngxChartPanelConfigFeature {\n return { kind: 'legendPosition', payload: { legendPosition: position } };\n}\n","import {\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n} from '@angular/core';\nimport { nextUid } from '@cngx/core/utils';\n\nimport { CNGX_CHART_PANEL } from './chart-panel.token';\n\n// aria-disabled is allowed on controls and on explicit widget / group roles,\n// not on a generic wrapper.\nconst CONTROL_SELECTOR = 'a[href], button, input, select, textarea, [role]';\n\n/**\n * Marks the panel's title. Its generated id becomes the panel's\n * `aria-labelledby`, so the whole region reads as one named group instead of\n * an unlabelled box wrapped around a chart.\n *\n * Registration runs against {@link CNGX_CHART_PANEL}, which the panel provides -\n * the title resolves it from its declaration site in the consumer template.\n *\n * @category ui/chart-panel\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts\n * @since 0.1.0\n * @relatedTo CngxChartPanel, CngxChartPanelSubtitle\n */\n@Directive({\n selector: '[cngxChartPanelTitle]',\n standalone: true,\n host: { class: 'cngx-chart-panel__title', '[id]': 'id' },\n})\nexport class CngxChartPanelTitle {\n /** Auto-generated id bound to the host `[id]`; consumed by the panel. */\n readonly id = nextUid('cngx-chart-panel-title');\n\n constructor() {\n const panel = inject(CNGX_CHART_PANEL, { optional: true });\n panel?.registerTitle(this.id);\n // Without the withdrawal the panel's aria-labelledby would keep pointing at\n // a removed element - a dangling reference reads as an unnamed group to AT.\n inject(DestroyRef).onDestroy(() => panel?.unregisterTitle(this.id));\n }\n}\n\n/**\n * Marks the panel's secondary line under the title - a period, a unit, a\n * comparison basis. Descriptive only; it does not join the accessible name.\n *\n * @category ui/chart-panel\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts\n * @since 0.1.0\n * @relatedTo CngxChartPanel, CngxChartPanelTitle\n */\n@Directive({\n selector: '[cngxChartPanelSubtitle]',\n standalone: true,\n host: { class: 'cngx-chart-panel__subtitle' },\n})\nexport class CngxChartPanelSubtitle {}\n\n/**\n * Marks the panel's header action cluster - a range picker, a refresh button,\n * an overflow menu. The panel dims the cluster and marks it `aria-disabled`\n * while a panel-level operation runs, so a user cannot fire a second range\n * change into an in-flight one.\n *\n * On a control (a native button, link or form field, or any element with an\n * explicit `role`) the marker also puts that state on the control itself:\n * `aria-disabled=\"true\"` plus an `aria-describedby` to the panel's busy reason\n * (\"Updating\" by default, `ariaLabels.busy`), both only while the panel is\n * busy, so focusing the action announces why it is unavailable. A static\n * `aria-disabled` / `aria-describedby` the consumer wrote on the element is\n * kept and merged. On a plain wrapper element the marker adds nothing (the\n * attribute is not allowed on a generic); the slot group carries the state.\n * Activation stays blocked by the slot (pointer and Enter/Space), so the\n * control keeps its focusability instead of turning natively `disabled`.\n *\n * @category ui/chart-panel\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts\n * @since 0.1.0\n * @relatedTo CngxChartPanel\n */\n@Directive({\n selector: '[cngxChartPanelActions]',\n standalone: true,\n host: {\n class: 'cngx-chart-panel__actions',\n '[attr.aria-disabled]': 'ariaDisabled()',\n '[attr.aria-describedby]': 'describedBy()',\n },\n})\nexport class CngxChartPanelActions {\n private readonly panel = inject(CNGX_CHART_PANEL, { optional: true });\n private readonly ownDisabled = inject(new HostAttributeToken('aria-disabled'), {\n optional: true,\n });\n private readonly ownDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly carriesState =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement.matches(CONTROL_SELECTOR);\n private readonly busy = computed(() => this.carriesState && (this.panel?.busy() ?? false));\n\n /** @internal The panel busy state on the control, else the consumer's own value. */\n protected readonly ariaDisabled = computed(() => (this.busy() ? 'true' : this.ownDisabled));\n\n /**\n * @internal The busy reason, referenced only while busy (the node itself is\n * always rendered), appended to the consumer's own description.\n */\n protected readonly describedBy = computed(() => {\n if (!this.busy() || !this.panel) {\n return this.ownDescribedBy;\n }\n return [this.ownDescribedBy, this.panel.busyDescriptionId].filter(Boolean).join(' ');\n });\n}\n\n/**\n * Marks the panel's footer row - a source note, a last-updated timestamp, a\n * drill-down link. Sits below the chart body and the legend.\n *\n * @category ui/chart-panel\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts\n * @since 0.1.0\n * @relatedTo CngxChartPanel\n */\n@Directive({\n selector: '[cngxChartPanelFooter]',\n standalone: true,\n host: { class: 'cngx-chart-panel__footer' },\n})\nexport class CngxChartPanelFooter {}\n","/**\n * @module @cngx/ui/chart-panel\n */\n\nexport { CngxChartPanel, type CngxChartPanelLegendPosition } from './chart-panel.component';\nexport {\n type CngxChartPanelAriaLabels,\n type CngxChartPanelConfig,\n} from './config/chart-panel.config';\nexport { CNGX_CHART_PANEL_CONFIG } from './config/chart-panel.config.defaults';\nexport {\n provideChartPanelConfig,\n provideChartPanelConfigAt,\n type CngxChartPanelConfigFeature,\n} from './config/provide-chart-panel-config';\nexport { withChartPanelAriaLabels, withChartPanelLegendPosition } from './config/features';\nexport {\n injectChartPanelAriaLabels,\n injectChartPanelConfig,\n} from './config/inject-chart-panel-config';\nexport {\n CngxChartPanelTitle,\n CngxChartPanelSubtitle,\n CngxChartPanelActions,\n CngxChartPanelFooter,\n} from './chart-panel-slots';\nexport { CNGX_CHART_PANEL, type CngxChartPanelRegistry } from './chart-panel.token';\nexport {\n CNGX_CHART_PANEL_LANGUAGE_EN,\n type CngxChartPanelLanguageSection,\n} from './i18n/chart-panel-language-section';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAcA;;;;;;;AAOG;AACI,MAAM,4BAA4B,GAAkC;AACzE,IAAA,IAAI,EAAE,UAAU;;;ACnBlB;;;AAGG;AACI,MAAM,wBAAwB,GAAG,qBAAqB,CAC3D,YAAY,EACZ,4BAA4B,CAC7B;;ACPD;;;;;;;;;;AAUG;AACI,MAAM,yBAAyB,GAAyB;AAC7D,IAAA,cAAc,EAAE,QAAQ;CACzB;AAED;;;;;;;;;AASG;MACU,uBAAuB,GAAG,IAAI,cAAc,CACvD,yBAAyB,EACzB;AACE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,yBAAyB;AACzC,CAAA;;AC3BH;;;;;;;;;AASG;SACa,sBAAsB,GAAA;AACpC,IAAA,OAAO,MAAM,CAAC,uBAAuB,CAAC;AACxC;AAEA;;;;;;;;;AASG;SACa,0BAA0B,GAAA;IACxC,OAAO,yBAAyB,CAAC,wBA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,wBAAA,KAAK,EAAE,2BAA2B;AAClC,wBAAA,sBAAsB,EAAE,gBAAgB;AACxC,wBAAA,yBAAyB,EAAE,eAAe;AAC3C,qBAAA;AACF,iBAAA;;AA4BD;;;;;;;;AAQG;MAMU,oBAAoB,CAAA;uGAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,0BAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBALhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,0BAA0B,EAAE;AAC5C,iBAAA;;;ACtID;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"cngx-ui-chart-panel.mjs","sources":["../../../projects/ui/chart-panel/i18n/chart-panel-language-section.ts","../../../projects/ui/chart-panel/i18n/chart-panel-i18n.ts","../../../projects/ui/chart-panel/config/chart-panel.config.defaults.ts","../../../projects/ui/chart-panel/config/inject-chart-panel-config.ts","../../../projects/ui/chart-panel/chart-panel.token.ts","../../../projects/ui/chart-panel/chart-panel.component.ts","../../../projects/ui/chart-panel/config/provide-chart-panel-config.ts","../../../projects/ui/chart-panel/config/features.ts","../../../projects/ui/chart-panel/chart-panel-slots.ts","../../../projects/ui/chart-panel/public-api.ts","../../../projects/ui/chart-panel/cngx-ui-chart-panel.ts"],"sourcesContent":["/**\n * The chart-panel section of a {@link CngxLanguagePack}: the copy of\n * `CngxChartPanel`. It feeds the `ariaLabels` of `CNGX_CHART_PANEL_CONFIG`; a\n * key set through `withChartPanelAriaLabels` still wins.\n *\n * @since 0.3.0\n * @relatedTo CNGX_CHART_PANEL_CONFIG, withChartPanelAriaLabels\n */\nexport interface CngxChartPanelLanguageSection {\n /** Accessible name announced while a panel-level operation runs. */\n readonly busy: string;\n}\n\n/**\n * The English chart-panel section: the single source of the chart panel's\n * English copy. The `CNGX_CHART_PANEL_CONFIG` labels default to it.\n *\n * @since 0.3.0\n * @relatedTo CNGX_CHART_PANEL_CONFIG\n */\nexport const CNGX_CHART_PANEL_LANGUAGE_EN: CngxChartPanelLanguageSection = {\n busy: 'Updating',\n};\n\ndeclare module '@cngx/core/i18n' {\n interface CngxLanguagePack {\n readonly chartPanel: CngxChartPanelLanguageSection;\n }\n}\n","import { createLanguageSection } from '@cngx/core/i18n';\n\nimport { CNGX_CHART_PANEL_LANGUAGE_EN } from './chart-panel-language-section';\n\n/**\n * @internal The chart-panel section of the active pack over the English section,\n * shared app-wide. Consumers override copy through `withChartPanelAriaLabels`.\n */\nexport const injectChartPanelSiteCopy = createLanguageSection(\n 'chartPanel',\n CNGX_CHART_PANEL_LANGUAGE_EN,\n);\n","import { InjectionToken } from '@angular/core';\n\nimport type { CngxChartPanelConfig } from './chart-panel.config';\n\n/**\n * Library defaults for the chart-panel configuration cascade. Carries no copy:\n * the `ariaLabels` defaults are the `chartPanel` section of the language pack;\n * single keys ride the `withChartPanelAriaLabels` feature.\n *\n * Exported for intra-lib consumers but **NOT** re-exported from\n * `public-api.ts` - downstream consumers reach the defaults via\n * `inject(CNGX_CHART_PANEL_CONFIG)`.\n *\n * @internal\n */\nexport const CNGX_CHART_PANEL_DEFAULTS: CngxChartPanelConfig = {\n legendPosition: 'bottom',\n};\n\n/**\n * App-wide configuration cascade for the chart-panel. `providedIn: 'root'`\n * with a default factory, so `inject(CNGX_CHART_PANEL_CONFIG)` always\n * resolves.\n *\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/config/chart-panel.config.defaults.ts\n * @since 0.3.0\n * @relatedTo provideChartPanelConfig, provideChartPanelConfigAt, injectChartPanelConfig\n */\nexport const CNGX_CHART_PANEL_CONFIG = new InjectionToken<CngxChartPanelConfig>(\n 'CNGX_CHART_PANEL_CONFIG',\n {\n providedIn: 'root',\n factory: () => CNGX_CHART_PANEL_DEFAULTS,\n },\n);\n","import { inject, type Signal } from '@angular/core';\nimport { createFilledOverrideMerge } from '@cngx/core/utils';\n\nimport { injectChartPanelSiteCopy } from '../i18n/chart-panel-i18n';\nimport type { CngxChartPanelAriaLabels, CngxChartPanelConfig } from './chart-panel.config';\nimport { CNGX_CHART_PANEL_CONFIG } from './chart-panel.config.defaults';\n\n/**\n * Convenience accessor for the chart-panel configuration cascade. Runs in\n * injection context; resolves through the priority chain (per-instance Input\n * -> `provideChartPanelConfigAt` -> `provideChartPanelConfig` -> library\n * defaults). Equivalent to `inject(CNGX_CHART_PANEL_CONFIG)` - the helper\n * exists so consumers don't import the token directly.\n *\n * @since 0.3.0\n */\nexport function injectChartPanelConfig(): CngxChartPanelConfig {\n return inject(CNGX_CHART_PANEL_CONFIG);\n}\n\n/**\n * The resolved strings of the chart-panel config in scope, every key the\n * config leaves unset (also a key an override sets to `undefined`) filled from\n * the `chartPanel` section of the active pack, as a Signal that follows a\n * runtime language switch. Runs in injection context; read it inside a `computed()`, a\n * template or a handler, and untracked where it builds live-region text.\n *\n * @since 0.3.0\n */\nexport function injectChartPanelAriaLabels(): Signal<Required<CngxChartPanelAriaLabels>> {\n return createFilledOverrideMerge(injectChartPanelSiteCopy(), injectChartPanelConfig().ariaLabels);\n}\n","import { InjectionToken, type Signal } from '@angular/core';\n\n/**\n * Contract the panel exposes to its projected slots. The title slot registers\n * its generated id on init and the panel derives its `aria-labelledby` from\n * it; the actions slot reads the panel-level busy state and the id of the\n * node that says why the actions are unavailable.\n *\n * Fronted by a DI token rather than the concrete `CngxChartPanel` class so the\n * slot stays decompose-safe - an ejected skin talks to the same token the\n * library defines. Mirrors `CNGX_STAT` behind the `cngxStat*` slots.\n */\nexport interface CngxChartPanelRegistry {\n /** Register the id contributed by the title slot. */\n registerTitle(id: string): void;\n /**\n * Withdraw a previously registered title id. Takes the id rather than no\n * argument so a destroy arriving after a replacement title already\n * registered cannot clear the newer one.\n */\n unregisterTitle(id: string): void;\n /**\n * Panel-level busy (the panel `[state]`, never the chart's data). The\n * actions slot reads it to mark each projected action disabled.\n */\n readonly busy: Signal<boolean>;\n /**\n * Id of the always-rendered node naming why the actions are disabled while\n * busy. Referenced only while `busy()` holds.\n */\n readonly busyDescriptionId: string;\n}\n\n/** DI token carrying the {@link CngxChartPanelRegistry} a `CngxChartPanel` provides. */\nexport const CNGX_CHART_PANEL = new InjectionToken<CngxChartPanelRegistry>('CNGX_CHART_PANEL');\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n type ElementRef,\n input,\n type Signal,\n signal,\n untracked,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { CngxLiveRegion } from '@cngx/common/a11y';\nimport { type CngxAsyncState, nextUid } from '@cngx/core/utils';\n\nimport {\n injectChartPanelAriaLabels,\n injectChartPanelConfig,\n} from './config/inject-chart-panel-config';\nimport { CNGX_CHART_PANEL, type CngxChartPanelRegistry } from './chart-panel.token';\n\n/**\n * Where the projected legend sits relative to the chart body.\n *\n * @since 0.3.0\n */\nexport type CngxChartPanelLegendPosition = 'top' | 'bottom' | 'none';\n\n/**\n * Dashboard housing for a chart: a titled, footer-capable region that frames\n * whatever `cngx-chart` or preset the consumer projects into it.\n *\n * **What it deliberately does not do.** `cngx-chart` already owns the data-level\n * async envelope - its own `[state]`, its skeleton / empty / error slots, its\n * SR data table. The panel never duplicates that machine. Reproducing it here\n * would put two managers on one state (Pillar 1) and turn the panel into a\n * God-component (Pillar 3). The chart stays the authority on what the body\n * shows; the panel only frames it.\n *\n * What the panel does own is the chrome a bare chart cannot express: a title\n * that names the region for assistive tech, a subtitle, a header action\n * cluster, and a footer. `role=\"group\"` plus `aria-labelledby` pointing at the\n * projected title means a screen reader announces \"Revenue by quarter, group\"\n * instead of dropping the user into an unlabelled SVG (Pillar 2).\n *\n * Panel-level busy marks the **header**, never the group. An `aria-busy` on the\n * region would hold back the projected chart's own live announcements and tell\n * AT that a perfectly stable chart is updating - the same boundary violation in\n * the a11y layer that duplicating its view switch would be in the state layer.\n * A hidden status region (outside the busy header) announces the configured\n * `ariaLabels.busy` string while the panel-level operation runs.\n *\n * ```html\n * <cngx-chart-panel>\n * <h3 cngxChartPanelTitle>Revenue by quarter</h3>\n * <span cngxChartPanelSubtitle>EUR, net</span>\n * <button cngxChartPanelActions type=\"button\">Refresh</button>\n *\n * <cngx-chart [data]=\"series\" [state]=\"revenue\">\n * <svg:g cngxLine [data]=\"series\"></svg:g>\n * </cngx-chart>\n *\n * <small cngxChartPanelFooter>Source: finance warehouse</small>\n * </cngx-chart-panel>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel.component.ts\n * @since 0.3.0\n * @relatedTo CngxChart, CngxChartLegend, CngxChartPanelTitle, CngxChartPanelActions\n *\n * <example-url>/#/ui/chart-panel/basic/titled-panel-with-legend</example-url>\n * <example-url>/#/ui/chart-panel/async/panel-chrome-vs-chart-state</example-url>\n * <example-url>/#/ui/chart-panel/slots/actions-and-footer</example-url>\n * @axis level organism\n */\n@Component({\n selector: 'cngx-chart-panel',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxLiveRegion],\n providers: [{ provide: CNGX_CHART_PANEL, useExisting: CngxChartPanel }],\n host: {\n class: 'cngx-chart-panel',\n role: 'group',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.data-legend]': 'legendPosition()',\n '[class.cngx-chart-panel--busy]': 'panelBusy()',\n },\n template: `\n <header class=\"cngx-chart-panel__header\" [attr.aria-busy]=\"panelBusy() || null\">\n <div class=\"cngx-chart-panel__heading\">\n <ng-content select=\"[cngxChartPanelTitle]\" />\n <ng-content select=\"[cngxChartPanelSubtitle]\" />\n </div>\n\n <!-- Dimmed and aria-disabled while a panel-level operation runs, so a\n second range change is not invited into an in-flight one. The cluster\n stays in the DOM and in the a11y tree; only the state flips (Pillar\n 2). Deliberately not inert: that would hide the actions from AT\n entirely and the aria-disabled would never be announced. A group,\n since aria-disabled is not allowed on a generic container; it\n covers any projected content, while each [cngxChartPanelActions]\n control also carries the state and the reason itself. -->\n <div\n #actionSlot\n class=\"cngx-chart-panel__action-slot\"\n role=\"group\"\n [attr.aria-disabled]=\"panelBusy() || null\"\n [attr.aria-describedby]=\"panelBusy() ? busyDescriptionId : null\"\n >\n <ng-content select=\"[cngxChartPanelActions]\" />\n </div>\n </header>\n\n <!-- Why the actions are disabled. Always in the DOM; only the\n aria-describedby reference above is gated on the busy state. -->\n <span\n [id]=\"busyDescriptionId\"\n class=\"cngx-chart-panel__sr cngx-chart-panel__busy-description\"\n >{{ busyLabel() }}</span\n >\n\n <!-- One legend outlet, placed by the CSS order property. A duplicated\n ng-content selector would leave the second outlet permanently empty,\n and the legend carries no focusable content, so visual reordering\n cannot desync from tab order. -->\n <div class=\"cngx-chart-panel__legend\">\n <ng-content select=\"cngx-chart-legend\" />\n </div>\n\n <div class=\"cngx-chart-panel__body\">\n <!-- No view switch here, and no panel-owned placeholder either: the\n projected cngx-chart owns the data async envelope end to end. -->\n <ng-content />\n </div>\n\n <ng-content select=\"[cngxChartPanelFooter]\" />\n\n <!-- Hidden status region for the panel-level busy phase. Outside the\n aria-busy header on purpose: a live region inside a busy container\n has its announcements suppressed. -->\n <span cngxLiveRegion class=\"cngx-chart-panel__sr cngx-chart-panel__status\">{{\n busyStatus()\n }}</span>\n `,\n styleUrls: ['./chart-panel.component.css'],\n})\nexport class CngxChartPanel implements CngxChartPanelRegistry {\n private readonly titleId = signal<string | undefined>(undefined);\n private readonly config = injectChartPanelConfig();\n private readonly ariaLabels = injectChartPanelAriaLabels();\n\n /**\n * Panel-level async envelope - the one driving the header chrome, not the\n * chart's data. Bind the chart's own `[state]` to the chart; bind a\n * range-switch or export operation here. Optional per the bridge-input rule.\n */\n readonly state = input<\n CngxAsyncState<unknown> | undefined,\n CngxAsyncState<unknown> | '' | undefined\n >(undefined, { transform: (v) => (typeof v === 'string' ? undefined : v) });\n\n /**\n * Where the projected `cngx-chart-legend` sits. `'none'` hides it. Matches\n * the bare `cngx-chart-legend` tag; a legend wrapped in an element of your\n * own lands in the body slot instead.\n */\n readonly legendPosition = input<CngxChartPanelLegendPosition>(\n this.config.legendPosition ?? 'bottom',\n );\n\n /** @internal Panel-level busy, never the chart's data-loading state. */\n protected readonly panelBusy = computed(() => this.state()?.isBusy() ?? false);\n\n /** {@inheritDoc CngxChartPanelRegistry.busy} */\n readonly busy: Signal<boolean> = this.panelBusy;\n\n /** @internal Names why the action cluster is disabled while busy; follows a language switch. */\n protected readonly busyLabel = computed(() => this.ariaLabels().busy);\n\n /**\n * @internal Text of the hidden status region. The label is read untracked, so\n * a language switch does not re-announce a running busy phase; the next one\n * speaks the new language.\n */\n protected readonly busyStatus = computed(() =>\n this.panelBusy() ? untracked(() => this.ariaLabels().busy) : '',\n );\n\n /** {@inheritDoc CngxChartPanelRegistry.busyDescriptionId} */\n readonly busyDescriptionId = `${nextUid('cngx-chart-panel')}-busy`;\n\n private readonly actionSlot = viewChild.required<ElementRef<HTMLElement>>('actionSlot');\n\n constructor() {\n // Keyboard guard for the aria-disabled action cluster. `pointer-events:\n // none` stops clicks while busy, but a focused action still activates on\n // Enter/Space. Capture phase, so the guard runs before any consumer key\n // handler on the projected actions - a bubble listener would fire after\n // them and hold back only the native activation. preventDefault on\n // keydown stops the synthesized Enter click; keyup covers browsers that\n // activate buttons on Space release.\n effect((onCleanup) => {\n const slot = this.actionSlot().nativeElement;\n const guard = (event: KeyboardEvent): void => {\n if (!this.panelBusy()) {\n return;\n }\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n slot.addEventListener('keydown', guard, true);\n slot.addEventListener('keyup', guard, true);\n onCleanup(() => {\n slot.removeEventListener('keydown', guard, true);\n slot.removeEventListener('keyup', guard, true);\n });\n });\n }\n\n /** {@inheritDoc CngxChartPanelRegistry.registerTitle} */\n registerTitle(id: string): void {\n this.titleId.set(id);\n }\n\n /** {@inheritDoc CngxChartPanelRegistry.unregisterTitle} */\n unregisterTitle(id: string): void {\n this.titleId.update((current) => (current === id ? undefined : current));\n }\n\n /**\n * @internal Accessible name of the region, from the projected title slot.\n * `null` when no title was projected - an unnamed group is better than one\n * pointing at an id that does not exist.\n */\n protected readonly labelledBy = computed(() => this.titleId() ?? null);\n}\n","import {\n inject,\n makeEnvironmentProviders,\n type EnvironmentProviders,\n type Provider,\n type Signal,\n} from '@angular/core';\nimport { createOverrideMerge } from '@cngx/core/utils';\n\nimport type { CngxChartPanelAriaLabels, CngxChartPanelConfig } from './chart-panel.config';\nimport { CNGX_CHART_PANEL_CONFIG, CNGX_CHART_PANEL_DEFAULTS } from './chart-panel.config.defaults';\n\nconst NO_ARIA_LABELS: CngxChartPanelAriaLabels = {};\n\n/**\n * Discriminated-union shape returned by the chart-panel config features. The\n * reducer matches on `kind` and merges `payload` into the corresponding config\n * sub-tree. Mirrors `CngxStatCardConfigFeature` and `CngxBreadcrumbConfigFeature`.\n *\n * @since 0.3.0\n */\nexport type CngxChartPanelConfigFeature =\n | {\n readonly kind: 'ariaLabels';\n readonly payload: CngxChartPanelAriaLabels | Signal<CngxChartPanelAriaLabels>;\n }\n | {\n readonly kind: 'legendPosition';\n readonly payload: {\n readonly legendPosition: NonNullable<CngxChartPanelConfig['legendPosition']>;\n };\n };\n\n/**\n * Reduces a list of feature objects into a partial config - last write wins\n * per sub-tree.\n *\n * @internal\n */\nfunction reduceFeatures(\n features: readonly CngxChartPanelConfigFeature[],\n): Partial<CngxChartPanelConfig> {\n const out: {\n ariaLabels?: NonNullable<CngxChartPanelConfig['ariaLabels']>;\n legendPosition?: NonNullable<CngxChartPanelConfig['legendPosition']>;\n } = {};\n for (const f of features) {\n switch (f.kind) {\n case 'ariaLabels':\n out.ariaLabels = createOverrideMerge(out.ariaLabels ?? NO_ARIA_LABELS, f.payload);\n break;\n case 'legendPosition':\n out.legendPosition = f.payload.legendPosition;\n break;\n }\n }\n return out;\n}\n\n/**\n * Two-level deep merge: the nested `ariaLabels` sub-tree spread-merges; the\n * flat top-level scalars take the partial when present, else the base.\n *\n * @internal\n */\nfunction mergeConfig(\n base: CngxChartPanelConfig,\n partial: Partial<CngxChartPanelConfig>,\n): CngxChartPanelConfig {\n return {\n ariaLabels: createOverrideMerge(base.ariaLabels ?? NO_ARIA_LABELS, partial.ariaLabels),\n legendPosition: partial.legendPosition ?? base.legendPosition,\n };\n}\n\n/**\n * Application-root configuration cascade for the chart-panel.\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideChartPanelConfig(withChartPanelLegendPosition('top'))],\n * });\n * ```\n *\n * @since 0.3.0\n */\nexport function provideChartPanelConfig(\n ...features: CngxChartPanelConfigFeature[]\n): EnvironmentProviders {\n // Empty-features: skip the override so the root factory's defaults reference\n // flows through untouched, preserving downstream identity comparisons.\n if (features.length === 0) {\n return makeEnvironmentProviders([]);\n }\n const partial = reduceFeatures(features);\n return makeEnvironmentProviders([\n {\n provide: CNGX_CHART_PANEL_CONFIG,\n useValue: mergeConfig(CNGX_CHART_PANEL_DEFAULTS, partial),\n },\n ]);\n}\n\n/**\n * Component-scoped configuration cascade for the chart-panel. Injects the\n * parent injector's value and deep-merges the supplied features on top.\n *\n * @since 0.3.0\n */\nexport function provideChartPanelConfigAt(\n ...features: CngxChartPanelConfigFeature[]\n): Provider[] {\n // Empty-features call: parent value flows through untouched.\n if (features.length === 0) {\n return [];\n }\n const partial = reduceFeatures(features);\n return [\n {\n provide: CNGX_CHART_PANEL_CONFIG,\n useFactory: () => {\n const parent = inject(CNGX_CHART_PANEL_CONFIG, { skipSelf: true });\n return mergeConfig(parent, partial);\n },\n },\n ];\n}\n","import type { Signal } from '@angular/core';\n\nimport type { CngxChartPanelLegendPosition } from '../chart-panel.component';\nimport type { CngxChartPanelAriaLabels } from './chart-panel.config';\nimport type { CngxChartPanelConfigFeature } from './provide-chart-panel-config';\n\n/**\n * Override the chart-panel's string fallbacks. The defaults come from the\n * `chartPanel` section of the language pack (English without one); this\n * overrides single keys on top of it. Pass a `Signal` to switch the\n * language at runtime; the busy status speaks the new language with the next\n * busy phase.\n *\n * @since 0.3.0\n */\nexport function withChartPanelAriaLabels(\n labels: CngxChartPanelAriaLabels | Signal<CngxChartPanelAriaLabels>,\n): CngxChartPanelConfigFeature {\n return { kind: 'ariaLabels', payload: labels };\n}\n\n/**\n * Move the cascade default for where a projected `cngx-chart-legend` sits.\n * Per-instance `[legendPosition]` still wins.\n *\n * @since 0.3.0\n */\nexport function withChartPanelLegendPosition(\n position: CngxChartPanelLegendPosition,\n): CngxChartPanelConfigFeature {\n return { kind: 'legendPosition', payload: { legendPosition: position } };\n}\n","import {\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n} from '@angular/core';\nimport { nextUid } from '@cngx/core/utils';\n\nimport { CNGX_CHART_PANEL } from './chart-panel.token';\n\n// aria-disabled is allowed on controls and on explicit widget / group roles,\n// not on a generic wrapper.\nconst CONTROL_SELECTOR = 'a[href], button, input, select, textarea, [role]';\n\n/**\n * Marks the panel's title. Its generated id becomes the panel's\n * `aria-labelledby`, so the whole region reads as one named group instead of\n * an unlabelled box wrapped around a chart.\n *\n * Registration runs against {@link CNGX_CHART_PANEL}, which the panel provides -\n * the title resolves it from its declaration site in the consumer template.\n *\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts\n * @since 0.3.0\n * @relatedTo CngxChartPanel, CngxChartPanelSubtitle\n */\n@Directive({\n selector: '[cngxChartPanelTitle]',\n standalone: true,\n host: { class: 'cngx-chart-panel__title', '[id]': 'id' },\n})\nexport class CngxChartPanelTitle {\n /** Auto-generated id bound to the host `[id]`; consumed by the panel. */\n readonly id = nextUid('cngx-chart-panel-title');\n\n constructor() {\n const panel = inject(CNGX_CHART_PANEL, { optional: true });\n panel?.registerTitle(this.id);\n // Without the withdrawal the panel's aria-labelledby would keep pointing at\n // a removed element - a dangling reference reads as an unnamed group to AT.\n inject(DestroyRef).onDestroy(() => panel?.unregisterTitle(this.id));\n }\n}\n\n/**\n * Marks the panel's secondary line under the title - a period, a unit, a\n * comparison basis. Descriptive only; it does not join the accessible name.\n *\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts\n * @since 0.3.0\n * @relatedTo CngxChartPanel, CngxChartPanelTitle\n */\n@Directive({\n selector: '[cngxChartPanelSubtitle]',\n standalone: true,\n host: { class: 'cngx-chart-panel__subtitle' },\n})\nexport class CngxChartPanelSubtitle {}\n\n/**\n * Marks the panel's header action cluster - a range picker, a refresh button,\n * an overflow menu. The panel dims the cluster and marks it `aria-disabled`\n * while a panel-level operation runs, so a user cannot fire a second range\n * change into an in-flight one.\n *\n * On a control (a native button, link or form field, or any element with an\n * explicit `role`) the marker also puts that state on the control itself:\n * `aria-disabled=\"true\"` plus an `aria-describedby` to the panel's busy reason\n * (\"Updating\" by default, `ariaLabels.busy`), both only while the panel is\n * busy, so focusing the action announces why it is unavailable. A static\n * `aria-disabled` / `aria-describedby` the consumer wrote on the element is\n * kept and merged. On a plain wrapper element the marker adds nothing (the\n * attribute is not allowed on a generic); the slot group carries the state.\n * Activation stays blocked by the slot (pointer and Enter/Space), so the\n * control keeps its focusability instead of turning natively `disabled`.\n *\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts\n * @since 0.3.0\n * @relatedTo CngxChartPanel\n */\n@Directive({\n selector: '[cngxChartPanelActions]',\n standalone: true,\n host: {\n class: 'cngx-chart-panel__actions',\n '[attr.aria-disabled]': 'ariaDisabled()',\n '[attr.aria-describedby]': 'describedBy()',\n },\n})\nexport class CngxChartPanelActions {\n private readonly panel = inject(CNGX_CHART_PANEL, { optional: true });\n private readonly ownDisabled = inject(new HostAttributeToken('aria-disabled'), {\n optional: true,\n });\n private readonly ownDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly carriesState =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement.matches(CONTROL_SELECTOR);\n private readonly busy = computed(() => this.carriesState && (this.panel?.busy() ?? false));\n\n /** @internal The panel busy state on the control, else the consumer's own value. */\n protected readonly ariaDisabled = computed(() => (this.busy() ? 'true' : this.ownDisabled));\n\n /**\n * @internal The busy reason, referenced only while busy (the node itself is\n * always rendered), appended to the consumer's own description.\n */\n protected readonly describedBy = computed(() => {\n if (!this.busy() || !this.panel) {\n return this.ownDescribedBy;\n }\n return [this.ownDescribedBy, this.panel.busyDescriptionId].filter(Boolean).join(' ');\n });\n}\n\n/**\n * Marks the panel's footer row - a source note, a last-updated timestamp, a\n * drill-down link. Sits below the chart body and the legend.\n *\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts\n * @since 0.3.0\n * @relatedTo CngxChartPanel\n */\n@Directive({\n selector: '[cngxChartPanelFooter]',\n standalone: true,\n host: { class: 'cngx-chart-panel__footer' },\n})\nexport class CngxChartPanelFooter {}\n","/**\n * @module `@cngx/ui/chart-panel`\n */\n\nexport { CngxChartPanel, type CngxChartPanelLegendPosition } from './chart-panel.component';\nexport {\n type CngxChartPanelAriaLabels,\n type CngxChartPanelConfig,\n} from './config/chart-panel.config';\nexport { CNGX_CHART_PANEL_CONFIG } from './config/chart-panel.config.defaults';\nexport {\n provideChartPanelConfig,\n provideChartPanelConfigAt,\n type CngxChartPanelConfigFeature,\n} from './config/provide-chart-panel-config';\nexport { withChartPanelAriaLabels, withChartPanelLegendPosition } from './config/features';\nexport {\n injectChartPanelAriaLabels,\n injectChartPanelConfig,\n} from './config/inject-chart-panel-config';\nexport {\n CngxChartPanelTitle,\n CngxChartPanelSubtitle,\n CngxChartPanelActions,\n CngxChartPanelFooter,\n} from './chart-panel-slots';\nexport { CNGX_CHART_PANEL, type CngxChartPanelRegistry } from './chart-panel.token';\nexport {\n CNGX_CHART_PANEL_LANGUAGE_EN,\n type CngxChartPanelLanguageSection,\n} from './i18n/chart-panel-language-section';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAaA;;;;;;AAMG;AACI,MAAM,4BAA4B,GAAkC;AACzE,IAAA,IAAI,EAAE,UAAU;;;ACjBlB;;;AAGG;AACI,MAAM,wBAAwB,GAAG,qBAAqB,CAC3D,YAAY,EACZ,4BAA4B,CAC7B;;ACPD;;;;;;;;;;AAUG;AACI,MAAM,yBAAyB,GAAyB;AAC7D,IAAA,cAAc,EAAE,QAAQ;CACzB;AAED;;;;;;;;AAQG;MACU,uBAAuB,GAAG,IAAI,cAAc,CACvD,yBAAyB,EACzB;AACE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,yBAAyB;AACzC,CAAA;;AC1BH;;;;;;;;AAQG;SACa,sBAAsB,GAAA;AACpC,IAAA,OAAO,MAAM,CAAC,uBAAuB,CAAC;AACxC;AAEA;;;;;;;;AAQG;SACa,0BAA0B,GAAA;IACxC,OAAO,yBAAyB,CAAC,wBAAwB,EAAE,EAAE,sBAAsB,EAAE,CAAC,UAAU,CAAC;AACnG;;ACEA;MACa,gBAAgB,GAAG,IAAI,cAAc,CAAyB,kBAAkB;;ACL7F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CG;MA0EU,cAAc,CAAA;AACR,IAAA,OAAO,GAAG,MAAM,CAAqB,SAAS,8EAAC;IAC/C,MAAM,GAAG,sBAAsB,EAAE;IACjC,UAAU,GAAG,0BAA0B,EAAE;AAE1D;;;;AAIG;IACM,KAAK,GAAG,KAAK,CAGpB,SAAS,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,OAAA,EAAA,8BAAA,EAAA,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A,CAAA;kBALhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,0BAA0B,EAAE;AAC5C,iBAAA;;;AClID;;AAEG;;ACFH;;AAEG;;;;"}
@@ -16,8 +16,7 @@ export { CNGX_PAGINATOR_HOST, CngxPaginatorInfinite, CngxPaginatorLoadMore } fro
16
16
  * The English collection section: the single source of the incremental
17
17
  * list's English copy. The `CNGX_INCREMENTAL_LIST_CONFIG` labels default to it.
18
18
  *
19
- * @category ui/collection/i18n
20
- * @since 0.1.0
19
+ * @since 0.3.0
21
20
  * @relatedTo CNGX_INCREMENTAL_LIST_CONFIG
22
21
  */
23
22
  const CNGX_COLLECTION_LANGUAGE_EN = {
@@ -76,9 +75,8 @@ const NO_ARIA_LABELS = {};
76
75
  * component scope, then `provideIncrementalListConfig(...)` at the application
77
76
  * root, then the library defaults.
78
77
  *
79
- * @category ui/collection
80
78
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
81
- * @since 0.1.0
79
+ * @since 0.3.0
82
80
  */
83
81
  const CNGX_INCREMENTAL_LIST_CONFIG = new InjectionToken('CngxIncrementalListConfig', {
84
82
  providedIn: 'root',
@@ -113,9 +111,8 @@ function applyFeatures(base, features) {
113
111
  * );
114
112
  * ```
115
113
  *
116
- * @category ui/collection
117
114
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
118
- * @since 0.1.0
115
+ * @since 0.3.0
119
116
  */
120
117
  function withIncrementalListAriaLabels(payload) {
121
118
  return { kind: 'ariaLabels', payload };
@@ -130,9 +127,8 @@ function withIncrementalListAriaLabels(payload) {
130
127
  * );
131
128
  * ```
132
129
  *
133
- * @category ui/collection
134
130
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
135
- * @since 0.1.0
131
+ * @since 0.3.0
136
132
  */
137
133
  function withIncrementalListTemplates(payload) {
138
134
  return { kind: 'templates', payload };
@@ -143,9 +139,8 @@ function withIncrementalListTemplates(payload) {
143
139
  * Supplied features merge with the library defaults, so consumers only declare
144
140
  * the keys they override.
145
141
  *
146
- * @category ui/collection
147
142
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
148
- * @since 0.1.0
143
+ * @since 0.3.0
149
144
  */
150
145
  function provideIncrementalListConfig(...features) {
151
146
  // Empty-features: leave the root default reference untouched so downstream
@@ -166,9 +161,8 @@ function provideIncrementalListConfig(...features) {
166
161
  * parent config (an enclosing scope or the application root), so a region can
167
162
  * re-phrase its labels without disturbing the rest of the app.
168
163
  *
169
- * @category ui/collection
170
164
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
171
- * @since 0.1.0
165
+ * @since 0.3.0
172
166
  */
173
167
  function provideIncrementalListConfigAt(...features) {
174
168
  return [
@@ -184,9 +178,8 @@ function provideIncrementalListConfigAt(...features) {
184
178
  * injection context; resolves through the cascade. Equivalent to
185
179
  * `inject(CNGX_INCREMENTAL_LIST_CONFIG)`.
186
180
  *
187
- * @category ui/collection
188
181
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
189
- * @since 0.1.0
182
+ * @since 0.3.0
190
183
  */
191
184
  function injectIncrementalListConfig() {
192
185
  return inject(CNGX_INCREMENTAL_LIST_CONFIG);
@@ -200,9 +193,8 @@ function injectIncrementalListConfig() {
200
193
  * live-region text, so a language switch does not re-speak the current
201
194
  * message. Runs in injection context.
202
195
  *
203
- * @category ui/collection
204
196
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
205
- * @since 0.1.0
197
+ * @since 0.3.0
206
198
  */
207
199
  function injectIncrementalListAriaLabels() {
208
200
  return createFilledOverrideMerge(injectCollectionSiteLabels(), injectIncrementalListConfig().ariaLabels);
@@ -219,8 +211,6 @@ function injectIncrementalListAriaLabels() {
219
211
  * without redefining the contract: one token, one shape, no new trigger context
220
212
  * type. The re-exported symbol is the same `InjectionToken` instance, so a
221
213
  * trigger imported from either entry resolves to the same provider.
222
- *
223
- * @category ui/collection
224
214
  */
225
215
 
226
216
  /**
@@ -371,8 +361,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
371
361
  * renders it per item in the revealed slice. Resolution cascades instance slot
372
362
  * -> `CngxIncrementalListConfig.templates.item` -> the built-in text row.
373
363
  *
374
- * @category ui/collection
375
- * @since 0.1.0
364
+ * @since 0.3.0
376
365
  */
377
366
  class CngxIncrementalItem {
378
367
  templateRef = inject(TemplateRef);
@@ -394,8 +383,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
394
383
  * Empty slot. Project `<ng-template cngxIncrementalEmpty>` to replace the
395
384
  * built-in empty view shown when the bound state settles with no data.
396
385
  *
397
- * @category ui/collection
398
- * @since 0.1.0
386
+ * @since 0.3.0
399
387
  */
400
388
  class CngxIncrementalEmpty {
401
389
  templateRef = inject(TemplateRef);
@@ -415,8 +403,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
415
403
  * replace the built-in error + retry view. Resolution cascades instance slot ->
416
404
  * `CngxIncrementalListConfig.templates.error` -> the built-in message + button.
417
405
  *
418
- * @category ui/collection
419
- * @since 0.1.0
406
+ * @since 0.3.0
420
407
  */
421
408
  class CngxIncrementalError {
422
409
  templateRef = inject(TemplateRef);
@@ -438,8 +425,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
438
425
  * End-reached slot. Project `<ng-template cngxIncrementalEnd>` to replace the
439
426
  * built-in "all loaded" label shown once every page has been revealed.
440
427
  *
441
- * @category ui/collection
442
- * @since 0.1.0
428
+ * @since 0.3.0
443
429
  */
444
430
  class CngxIncrementalEnd {
445
431
  templateRef = inject(TemplateRef);
@@ -459,8 +445,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
459
445
  * built-in first-load progress indicator. Resolution cascades instance slot ->
460
446
  * `CngxIncrementalListConfig.templates.loading` -> the built-in `CngxProgress`.
461
447
  *
462
- * @category ui/collection
463
- * @since 0.1.0
448
+ * @since 0.3.0
464
449
  */
465
450
  class CngxIncrementalLoading {
466
451
  templateRef = inject(TemplateRef);
@@ -527,17 +512,26 @@ function recyclerI18nFor(ariaLabels) {
527
512
  * busy container) and the live region communicates every settle
528
513
  * (empty / error / end-reached).
529
514
  *
530
- * @category ui/collection
531
- * @docsKind primary
532
515
  * @wcag AA
533
516
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list.component.ts
534
- * @since 0.1.0
517
+ * @since 0.3.0
535
518
  * @relatedTo CngxPaginate, CngxPaginator, CngxAsyncState
536
519
  * @slot cngxIncrementalItem Renders one row; gets the item and its index.
537
520
  * @slot cngxIncrementalLoading Rendered while a page is being fetched.
538
521
  * @slot cngxIncrementalEmpty Rendered when the list resolves to nothing.
539
522
  * @slot cngxIncrementalError Rendered when a page fetch fails; gets the error and a retry callback.
540
523
  * @slot cngxIncrementalEnd Rendered once after the last page, e.g. an end-of-results marker.
524
+ * <example-url>/#/ui/collection/incremental-list/load-more-trigger</example-url>
525
+ * <example-url>/#/ui/collection/incremental-list/infinite-trigger</example-url>
526
+ * <example-url>/#/ui/collection/incremental-list/virtualized</example-url>
527
+ * <example-url>/#/ui/collection/incremental-list/custom-loading-slot</example-url>
528
+ * <example-url>/#/ui/collection/incremental-list/empty</example-url>
529
+ * <example-url>/#/ui/collection/incremental-list/end-reached</example-url>
530
+ * <example-url>/#/ui/collection/incremental-list/error-retry</example-url>
531
+ * <example-url>/#/ui/collection/incremental-list/skins/plain</example-url>
532
+ * <example-url>/#/ui/collection/incremental-list/skins/divided</example-url>
533
+ * <example-url>/#/ui/collection/incremental-list/skins/card</example-url>
534
+ * @axis level organism
541
535
  */
542
536
  class CngxIncrementalList {
543
537
  /** Visual skin; reflected onto `[data-skin]`. Paint-only. */
@@ -739,7 +733,7 @@ class CngxIncrementalList {
739
733
  provide: CNGX_RECYCLER_I18N,
740
734
  useFactory: () => recyclerI18nFor(injectIncrementalListAriaLabels()),
741
735
  },
742
- ], queries: [{ propertyName: "itemSlot", first: true, predicate: CngxIncrementalItem, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "emptySlot", first: true, predicate: CngxIncrementalEmpty, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "errorSlot", first: true, predicate: CngxIncrementalError, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "endSlot", first: true, predicate: CngxIncrementalEnd, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "loadingSlot", first: true, predicate: CngxIncrementalLoading, descendants: true, read: TemplateRef, isSignal: true }], exportAs: ["cngxIncrementalList"], hostDirectives: [{ directive: i1.CngxPaginate, inputs: ["cngxPageIndex", "pageIndex", "cngxPageSize", "pageSize", "total", "total", "state", "state"] }], ngImport: i0, template: "@switch (view()) {\n @case ('skeleton') {\n @if (loadingTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-progress\n class=\"cngx-incremental-list__progress\"\n variant=\"linear\"\n [state]=\"paginate.state()\"\n [label]=\"loadingLabel()\"\n />\n }\n }\n @case ('empty') {\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-empty-state class=\"cngx-incremental-list__empty\" [title]=\"emptyLabel()\" />\n }\n }\n @case ('error') {\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n }\n @default {\n <!-- aria-busy scoped to the items container, not the host: the polite\n live region below must never sit inside a busy container, or every\n settle announcement is suppressed. -->\n @if (virtualize()) {\n <cngx-incremental-virtualized-body\n [attr.aria-busy]=\"paginate.isBusy() ? 'true' : null\"\n [items]=\"items()\"\n [estimateSize]=\"estimateSize()\"\n [itemTemplate]=\"itemTemplate()\"\n [trackItem]=\"trackItem\"\n (focusEscaped)=\"handleFocusEscaped()\"\n />\n } @else {\n <ul class=\"cngx-incremental-list__items\" role=\"list\" [attr.aria-busy]=\"paginate.isBusy() ? 'true' : null\">\n @for (item of items(); track trackItem($index, item)) {\n <li class=\"cngx-incremental-list__item\">\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\"\n />\n } @else {\n {{ itemText(item) }}\n }\n </li>\n }\n </ul>\n }\n @if (view() === 'content+error') {\n <!-- Subsequent-page failure: keep the accumulated list above visible and\n render a reachable retry, rather than silently swallowing the error. -->\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__inline-error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n } @else if (exhausted()) {\n @if (endTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <p class=\"cngx-incremental-list__message cngx-incremental-list__end\">{{ endLabel() }}</p>\n }\n } @else {\n <ng-content select=\"[cngxIncrementalTrigger]\" />\n }\n }\n}\n\n<ng-template #builtinError>\n <p class=\"cngx-incremental-list__error-text\">{{ errorViewLabel() }}</p>\n <button type=\"button\" class=\"cngx-incremental-list__retry\" (click)=\"retryFn()\">\n {{ retryLabel() }}\n </button>\n</ng-template>\n\n<span cngxLiveRegion class=\"cngx-incremental-list__sr\">{{ statusMessage() }}</span>\n", styles: ["@layer cngx.tokens{.cngx-incremental-list{display:block;--cngx-incremental-list-item-padding: var(--cngx-space-sm, .5rem);--cngx-incremental-list-message-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-error-gap: var(--cngx-space-sm, .5rem);--cngx-incremental-list-card-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-button-padding: var(--cngx-space-xs, .25rem) var(--cngx-space-md, 1rem);color:var(--cngx-incremental-list-text, var(--cngx-color-text, oklch(.2 .01 250)))}}@layer cngx.components{@scope(.cngx-incremental-list){.cngx-incremental-list__viewport{display:block;overflow-y:auto;max-block-size:var(--cngx-incremental-list-viewport-height, 60vh);overflow-anchor:none;position:relative}.cngx-incremental-list__items{margin:0;padding:0;list-style:none}.cngx-incremental-list__item{padding-block:var(--cngx-incremental-list-item-padding)}.cngx-incremental-list__message{margin:0;padding:var(--cngx-incremental-list-message-padding);text-align:center;color:var( --cngx-incremental-list-message-color, var(--cngx-color-text-muted, oklch(.5 .01 250)) )}.cngx-incremental-list__error,.cngx-incremental-list__inline-error{display:flex;flex-direction:column;align-items:center;gap:var(--cngx-incremental-list-error-gap);padding:var(--cngx-incremental-list-message-padding)}.cngx-incremental-list__inline-error{border-top:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}.cngx-incremental-list__error-text{margin:0;text-align:center;color:var(--cngx-incremental-list-error-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-incremental-list__retry{font:inherit;color:var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));background:transparent;padding:var(--cngx-incremental-list-button-padding);border:1px solid var(--cngx-incremental-list-button-border, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-button-radius, var(--cngx-radius-sm, 6px));min-block-size:var(--cngx-target-min, 0px);cursor:pointer}.cngx-incremental-list__retry:hover{background:color-mix(in oklch,var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50))) 8%,transparent)}.cngx-incremental-list__retry:focus-visible{outline:2px solid var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));outline-offset:2px}.cngx-incremental-list__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}}@scope(.cngx-incremental-list[data-skin=divided]){.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card]){:scope{background:var(--cngx-incremental-list-surface, var(--cngx-color-surface, oklch(1 0 0)));border:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-radius, var(--cngx-radius-md, 8px));padding-inline:var(--cngx-incremental-list-card-padding);overflow:hidden}.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=divided][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}}\n"], dependencies: [{ kind: "component", type: CngxProgress, selector: "cngx-progress", inputs: ["state", "progress", "variant", "showLabel", "label"] }, { kind: "component", type: CngxEmptyState, selector: "cngx-empty-state", inputs: ["title", "description", "state"] }, { kind: "directive", type: CngxLiveRegion, selector: "[cngxLiveRegion]", inputs: ["politeness", "atomic", "relevant"], exportAs: ["cngxLiveRegion"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CngxIncrementalVirtualizedBody, selector: "cngx-incremental-virtualized-body", inputs: ["items", "estimateSize", "itemTemplate", "trackItem"], outputs: ["focusEscaped"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
736
+ ], queries: [{ propertyName: "itemSlot", first: true, predicate: CngxIncrementalItem, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "emptySlot", first: true, predicate: CngxIncrementalEmpty, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "errorSlot", first: true, predicate: CngxIncrementalError, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "endSlot", first: true, predicate: CngxIncrementalEnd, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "loadingSlot", first: true, predicate: CngxIncrementalLoading, descendants: true, read: TemplateRef, isSignal: true }], exportAs: ["cngxIncrementalList"], hostDirectives: [{ directive: i1.CngxPaginate, inputs: ["cngxPageIndex", "pageIndex", "cngxPageSize", "pageSize", "total", "total", "state", "state"] }], ngImport: i0, template: "@switch (view()) {\n @case ('skeleton') {\n @if (loadingTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-progress\n class=\"cngx-incremental-list__progress\"\n variant=\"linear\"\n [state]=\"paginate.state()\"\n [label]=\"loadingLabel()\"\n />\n }\n }\n @case ('empty') {\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-empty-state class=\"cngx-incremental-list__empty\" [title]=\"emptyLabel()\" />\n }\n }\n @case ('error') {\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n }\n @default {\n <!-- aria-busy scoped to the items container, not the host: the polite\n live region below must never sit inside a busy container, or every\n settle announcement is suppressed. -->\n @if (virtualize()) {\n <cngx-incremental-virtualized-body\n [attr.aria-busy]=\"paginate.isBusy() ? 'true' : null\"\n [items]=\"items()\"\n [estimateSize]=\"estimateSize()\"\n [itemTemplate]=\"itemTemplate()\"\n [trackItem]=\"trackItem\"\n (focusEscaped)=\"handleFocusEscaped()\"\n />\n } @else {\n <ul class=\"cngx-incremental-list__items\" role=\"list\" [attr.aria-busy]=\"paginate.isBusy() ? 'true' : null\">\n @for (item of items(); track trackItem($index, item)) {\n <li class=\"cngx-incremental-list__item\">\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\"\n />\n } @else {\n {{ itemText(item) }}\n }\n </li>\n }\n </ul>\n }\n @if (view() === 'content+error') {\n <!-- Subsequent-page failure: keep the accumulated list above visible and\n render a reachable retry, rather than silently swallowing the error. -->\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__inline-error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n } @else if (exhausted()) {\n @if (endTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <p class=\"cngx-incremental-list__message cngx-incremental-list__end\">{{ endLabel() }}</p>\n }\n } @else {\n <ng-content select=\"[cngxIncrementalTrigger]\" />\n }\n }\n}\n\n<ng-template #builtinError>\n <p class=\"cngx-incremental-list__error-text\">{{ errorViewLabel() }}</p>\n <button type=\"button\" class=\"cngx-incremental-list__retry\" (click)=\"retryFn()\">\n {{ retryLabel() }}\n </button>\n</ng-template>\n\n<span cngxLiveRegion class=\"cngx-incremental-list__sr\">{{ statusMessage() }}</span>\n", styles: ["@layer cngx.tokens{.cngx-incremental-list{display:block;--cngx-incremental-list-item-padding: var(--cngx-space-sm, .5rem);--cngx-incremental-list-message-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-error-gap: var(--cngx-space-sm, .5rem);--cngx-incremental-list-card-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-button-padding: var(--cngx-space-xs, .25rem) var(--cngx-space-md, 1rem);color:var(--cngx-incremental-list-text, var(--cngx-color-text, oklch(.2 .01 250)))}}@layer cngx.components{@scope(.cngx-incremental-list){.cngx-incremental-list__viewport{display:block;overflow-y:auto;max-block-size:var(--cngx-incremental-list-viewport-height, 60vh);overflow-anchor:none;position:relative}.cngx-incremental-list__items{margin:0;padding:0;list-style:none}.cngx-incremental-list__item{padding-block:var(--cngx-incremental-list-item-padding)}.cngx-incremental-list__message{margin:0;padding:var(--cngx-incremental-list-message-padding);text-align:center;color:var( --cngx-incremental-list-message-color, var(--cngx-color-text-muted, oklch(.5 .01 250)) )}.cngx-incremental-list__error,.cngx-incremental-list__inline-error{display:flex;flex-direction:column;align-items:center;gap:var(--cngx-incremental-list-error-gap);padding:var(--cngx-incremental-list-message-padding)}.cngx-incremental-list__inline-error{border-top:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}.cngx-incremental-list__error-text{margin:0;text-align:center;color:var( --cngx-incremental-list-error-color, var( --cngx-color-danger-text, oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .46 c h) ) )}.cngx-incremental-list__retry{font:inherit;color:var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));background:transparent;padding:var(--cngx-incremental-list-button-padding);border:1px solid var(--cngx-incremental-list-button-border, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-button-radius, var(--cngx-radius-sm, 6px));min-block-size:var(--cngx-target-min, 0px);cursor:pointer}.cngx-incremental-list__retry:hover{background:color-mix(in oklch,var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50))) 8%,transparent)}.cngx-incremental-list__retry:focus-visible{outline:2px solid var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));outline-offset:2px}.cngx-incremental-list__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}}@scope(.cngx-incremental-list[data-skin=divided]){.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card]){:scope{background:var(--cngx-incremental-list-surface, var(--cngx-color-surface, oklch(1 0 0)));border:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-radius, var(--cngx-radius-md, 8px));padding-inline:var(--cngx-incremental-list-card-padding);overflow:hidden}.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=divided][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}}\n"], dependencies: [{ kind: "component", type: CngxProgress, selector: "cngx-progress", inputs: ["state", "progress", "variant", "showLabel", "label"] }, { kind: "component", type: CngxEmptyState, selector: "cngx-empty-state", inputs: ["title", "description", "state"] }, { kind: "directive", type: CngxLiveRegion, selector: "[cngxLiveRegion]", inputs: ["politeness", "atomic", "relevant"], exportAs: ["cngxLiveRegion"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CngxIncrementalVirtualizedBody, selector: "cngx-incremental-virtualized-body", inputs: ["items", "estimateSize", "itemTemplate", "trackItem"], outputs: ["focusEscaped"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
743
737
  }
744
738
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxIncrementalList, decorators: [{
745
739
  type: Component,
@@ -771,11 +765,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
771
765
  class: 'cngx-incremental-list',
772
766
  '[attr.data-skin]': 'skin()',
773
767
  '[attr.data-virtualize]': "virtualize() ? '' : null",
774
- }, template: "@switch (view()) {\n @case ('skeleton') {\n @if (loadingTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-progress\n class=\"cngx-incremental-list__progress\"\n variant=\"linear\"\n [state]=\"paginate.state()\"\n [label]=\"loadingLabel()\"\n />\n }\n }\n @case ('empty') {\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-empty-state class=\"cngx-incremental-list__empty\" [title]=\"emptyLabel()\" />\n }\n }\n @case ('error') {\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n }\n @default {\n <!-- aria-busy scoped to the items container, not the host: the polite\n live region below must never sit inside a busy container, or every\n settle announcement is suppressed. -->\n @if (virtualize()) {\n <cngx-incremental-virtualized-body\n [attr.aria-busy]=\"paginate.isBusy() ? 'true' : null\"\n [items]=\"items()\"\n [estimateSize]=\"estimateSize()\"\n [itemTemplate]=\"itemTemplate()\"\n [trackItem]=\"trackItem\"\n (focusEscaped)=\"handleFocusEscaped()\"\n />\n } @else {\n <ul class=\"cngx-incremental-list__items\" role=\"list\" [attr.aria-busy]=\"paginate.isBusy() ? 'true' : null\">\n @for (item of items(); track trackItem($index, item)) {\n <li class=\"cngx-incremental-list__item\">\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\"\n />\n } @else {\n {{ itemText(item) }}\n }\n </li>\n }\n </ul>\n }\n @if (view() === 'content+error') {\n <!-- Subsequent-page failure: keep the accumulated list above visible and\n render a reachable retry, rather than silently swallowing the error. -->\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__inline-error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n } @else if (exhausted()) {\n @if (endTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <p class=\"cngx-incremental-list__message cngx-incremental-list__end\">{{ endLabel() }}</p>\n }\n } @else {\n <ng-content select=\"[cngxIncrementalTrigger]\" />\n }\n }\n}\n\n<ng-template #builtinError>\n <p class=\"cngx-incremental-list__error-text\">{{ errorViewLabel() }}</p>\n <button type=\"button\" class=\"cngx-incremental-list__retry\" (click)=\"retryFn()\">\n {{ retryLabel() }}\n </button>\n</ng-template>\n\n<span cngxLiveRegion class=\"cngx-incremental-list__sr\">{{ statusMessage() }}</span>\n", styles: ["@layer cngx.tokens{.cngx-incremental-list{display:block;--cngx-incremental-list-item-padding: var(--cngx-space-sm, .5rem);--cngx-incremental-list-message-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-error-gap: var(--cngx-space-sm, .5rem);--cngx-incremental-list-card-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-button-padding: var(--cngx-space-xs, .25rem) var(--cngx-space-md, 1rem);color:var(--cngx-incremental-list-text, var(--cngx-color-text, oklch(.2 .01 250)))}}@layer cngx.components{@scope(.cngx-incremental-list){.cngx-incremental-list__viewport{display:block;overflow-y:auto;max-block-size:var(--cngx-incremental-list-viewport-height, 60vh);overflow-anchor:none;position:relative}.cngx-incremental-list__items{margin:0;padding:0;list-style:none}.cngx-incremental-list__item{padding-block:var(--cngx-incremental-list-item-padding)}.cngx-incremental-list__message{margin:0;padding:var(--cngx-incremental-list-message-padding);text-align:center;color:var( --cngx-incremental-list-message-color, var(--cngx-color-text-muted, oklch(.5 .01 250)) )}.cngx-incremental-list__error,.cngx-incremental-list__inline-error{display:flex;flex-direction:column;align-items:center;gap:var(--cngx-incremental-list-error-gap);padding:var(--cngx-incremental-list-message-padding)}.cngx-incremental-list__inline-error{border-top:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}.cngx-incremental-list__error-text{margin:0;text-align:center;color:var(--cngx-incremental-list-error-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-incremental-list__retry{font:inherit;color:var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));background:transparent;padding:var(--cngx-incremental-list-button-padding);border:1px solid var(--cngx-incremental-list-button-border, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-button-radius, var(--cngx-radius-sm, 6px));min-block-size:var(--cngx-target-min, 0px);cursor:pointer}.cngx-incremental-list__retry:hover{background:color-mix(in oklch,var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50))) 8%,transparent)}.cngx-incremental-list__retry:focus-visible{outline:2px solid var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));outline-offset:2px}.cngx-incremental-list__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}}@scope(.cngx-incremental-list[data-skin=divided]){.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card]){:scope{background:var(--cngx-incremental-list-surface, var(--cngx-color-surface, oklch(1 0 0)));border:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-radius, var(--cngx-radius-md, 8px));padding-inline:var(--cngx-incremental-list-card-padding);overflow:hidden}.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=divided][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}}\n"] }]
768
+ }, template: "@switch (view()) {\n @case ('skeleton') {\n @if (loadingTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-progress\n class=\"cngx-incremental-list__progress\"\n variant=\"linear\"\n [state]=\"paginate.state()\"\n [label]=\"loadingLabel()\"\n />\n }\n }\n @case ('empty') {\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <cngx-empty-state class=\"cngx-incremental-list__empty\" [title]=\"emptyLabel()\" />\n }\n }\n @case ('error') {\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n }\n @default {\n <!-- aria-busy scoped to the items container, not the host: the polite\n live region below must never sit inside a busy container, or every\n settle announcement is suppressed. -->\n @if (virtualize()) {\n <cngx-incremental-virtualized-body\n [attr.aria-busy]=\"paginate.isBusy() ? 'true' : null\"\n [items]=\"items()\"\n [estimateSize]=\"estimateSize()\"\n [itemTemplate]=\"itemTemplate()\"\n [trackItem]=\"trackItem\"\n (focusEscaped)=\"handleFocusEscaped()\"\n />\n } @else {\n <ul class=\"cngx-incremental-list__items\" role=\"list\" [attr.aria-busy]=\"paginate.isBusy() ? 'true' : null\">\n @for (item of items(); track trackItem($index, item)) {\n <li class=\"cngx-incremental-list__item\">\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\"\n />\n } @else {\n {{ itemText(item) }}\n }\n </li>\n }\n </ul>\n }\n @if (view() === 'content+error') {\n <!-- Subsequent-page failure: keep the accumulated list above visible and\n render a reachable retry, rather than silently swallowing the error. -->\n @if (errorTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"errorContext()\" />\n } @else {\n <div class=\"cngx-incremental-list__inline-error\">\n <ng-container [ngTemplateOutlet]=\"builtinError\" />\n </div>\n }\n } @else if (exhausted()) {\n @if (endTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <p class=\"cngx-incremental-list__message cngx-incremental-list__end\">{{ endLabel() }}</p>\n }\n } @else {\n <ng-content select=\"[cngxIncrementalTrigger]\" />\n }\n }\n}\n\n<ng-template #builtinError>\n <p class=\"cngx-incremental-list__error-text\">{{ errorViewLabel() }}</p>\n <button type=\"button\" class=\"cngx-incremental-list__retry\" (click)=\"retryFn()\">\n {{ retryLabel() }}\n </button>\n</ng-template>\n\n<span cngxLiveRegion class=\"cngx-incremental-list__sr\">{{ statusMessage() }}</span>\n", styles: ["@layer cngx.tokens{.cngx-incremental-list{display:block;--cngx-incremental-list-item-padding: var(--cngx-space-sm, .5rem);--cngx-incremental-list-message-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-error-gap: var(--cngx-space-sm, .5rem);--cngx-incremental-list-card-padding: var(--cngx-space-md, 1rem);--cngx-incremental-list-button-padding: var(--cngx-space-xs, .25rem) var(--cngx-space-md, 1rem);color:var(--cngx-incremental-list-text, var(--cngx-color-text, oklch(.2 .01 250)))}}@layer cngx.components{@scope(.cngx-incremental-list){.cngx-incremental-list__viewport{display:block;overflow-y:auto;max-block-size:var(--cngx-incremental-list-viewport-height, 60vh);overflow-anchor:none;position:relative}.cngx-incremental-list__items{margin:0;padding:0;list-style:none}.cngx-incremental-list__item{padding-block:var(--cngx-incremental-list-item-padding)}.cngx-incremental-list__message{margin:0;padding:var(--cngx-incremental-list-message-padding);text-align:center;color:var( --cngx-incremental-list-message-color, var(--cngx-color-text-muted, oklch(.5 .01 250)) )}.cngx-incremental-list__error,.cngx-incremental-list__inline-error{display:flex;flex-direction:column;align-items:center;gap:var(--cngx-incremental-list-error-gap);padding:var(--cngx-incremental-list-message-padding)}.cngx-incremental-list__inline-error{border-top:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}.cngx-incremental-list__error-text{margin:0;text-align:center;color:var( --cngx-incremental-list-error-color, var( --cngx-color-danger-text, oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .46 c h) ) )}.cngx-incremental-list__retry{font:inherit;color:var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));background:transparent;padding:var(--cngx-incremental-list-button-padding);border:1px solid var(--cngx-incremental-list-button-border, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-button-radius, var(--cngx-radius-sm, 6px));min-block-size:var(--cngx-target-min, 0px);cursor:pointer}.cngx-incremental-list__retry:hover{background:color-mix(in oklch,var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50))) 8%,transparent)}.cngx-incremental-list__retry:focus-visible{outline:2px solid var(--cngx-incremental-list-button-fg, var(--cngx-color-primary, oklch(.66 .19 50)));outline-offset:2px}.cngx-incremental-list__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}}@scope(.cngx-incremental-list[data-skin=divided]){.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card]){:scope{background:var(--cngx-incremental-list-surface, var(--cngx-color-surface, oklch(1 0 0)));border:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-incremental-list-radius, var(--cngx-radius-md, 8px));padding-inline:var(--cngx-incremental-list-card-padding);overflow:hidden}.cngx-incremental-list__item:not(:last-child){border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=divided][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}@scope(.cngx-incremental-list[data-skin=card][data-virtualize]){.cngx-incremental-list__item{border-bottom:1px solid var(--cngx-incremental-list-divider, var(--cngx-color-border, oklch(.88 .005 250)))}}}\n"] }]
775
769
  }], ctorParameters: () => [], propDecorators: { skin: [{ type: i0.Input, args: [{ isSignal: true, alias: "skin", required: false }] }], virtualize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualize", required: false }] }], estimateSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "estimateSize", required: false }] }], pageIndexChange: [{ type: i0.Output, args: ["pageIndexChange"] }], pageSizeChange: [{ type: i0.Output, args: ["pageSizeChange"] }], retry: [{ type: i0.Output, args: ["retry"] }], trackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackBy", required: false }] }], itemSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxIncrementalItem), { ...{ read: TemplateRef }, isSignal: true }] }], emptySlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxIncrementalEmpty), { ...{ read: TemplateRef }, isSignal: true }] }], errorSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxIncrementalError), { ...{ read: TemplateRef }, isSignal: true }] }], endSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxIncrementalEnd), { ...{ read: TemplateRef }, isSignal: true }] }], loadingSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxIncrementalLoading), { ...{ read: TemplateRef }, isSignal: true }] }] } });
776
770
 
777
771
  /**
778
- * @module @cngx/ui/collection
772
+ * @module `@cngx/ui/collection`
779
773
  */
780
774
 
781
775
  /**