@cngx/common 0.1.0-rc.6 → 0.1.0-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/card/README.md +2 -1
  2. package/chart/README.md +85 -0
  3. package/command/README.md +157 -0
  4. package/data/README.md +33 -1
  5. package/dialog/README.md +23 -1
  6. package/fesm2022/cngx-common-a11y.mjs +356 -180
  7. package/fesm2022/cngx-common-a11y.mjs.map +1 -1
  8. package/fesm2022/cngx-common-audio.mjs +84 -42
  9. package/fesm2022/cngx-common-audio.mjs.map +1 -1
  10. package/fesm2022/cngx-common-card.mjs +311 -53
  11. package/fesm2022/cngx-common-card.mjs.map +1 -1
  12. package/fesm2022/cngx-common-chart.mjs +4360 -1625
  13. package/fesm2022/cngx-common-chart.mjs.map +1 -1
  14. package/fesm2022/cngx-common-command.mjs +171 -0
  15. package/fesm2022/cngx-common-command.mjs.map +1 -0
  16. package/fesm2022/cngx-common-data.mjs +1556 -616
  17. package/fesm2022/cngx-common-data.mjs.map +1 -1
  18. package/fesm2022/cngx-common-dialog.mjs +518 -112
  19. package/fesm2022/cngx-common-dialog.mjs.map +1 -1
  20. package/fesm2022/cngx-common-display.mjs +468 -87
  21. package/fesm2022/cngx-common-display.mjs.map +1 -1
  22. package/fesm2022/cngx-common-interactive.mjs +2725 -1303
  23. package/fesm2022/cngx-common-interactive.mjs.map +1 -1
  24. package/fesm2022/cngx-common-layout.mjs +943 -164
  25. package/fesm2022/cngx-common-layout.mjs.map +1 -1
  26. package/fesm2022/cngx-common-popover.mjs +769 -103
  27. package/fesm2022/cngx-common-popover.mjs.map +1 -1
  28. package/fesm2022/cngx-common-stepper.mjs +816 -348
  29. package/fesm2022/cngx-common-stepper.mjs.map +1 -1
  30. package/fesm2022/cngx-common-tabs.mjs +2330 -1554
  31. package/fesm2022/cngx-common-tabs.mjs.map +1 -1
  32. package/fesm2022/cngx-common-timeline.mjs +1170 -0
  33. package/fesm2022/cngx-common-timeline.mjs.map +1 -0
  34. package/fesm2022/cngx-common.mjs +2 -2
  35. package/fesm2022/cngx-common.mjs.map +1 -1
  36. package/interactive/README.md +15 -4
  37. package/layout/README.md +21 -1
  38. package/package.json +11 -1
  39. package/popover/README.md +18 -2
  40. package/stepper/README.md +7 -5
  41. package/theming/components/cngx-accordion.css +4 -1
  42. package/theming/components/cngx-backdrop.css +12 -0
  43. package/theming/components/cngx-badge.css +22 -0
  44. package/theming/components/cngx-bottom-sheet.css +14 -2
  45. package/theming/components/cngx-breadcrumb.css +8 -0
  46. package/theming/components/cngx-button-toggle.css +73 -5
  47. package/theming/components/cngx-data-grid.css +234 -1
  48. package/theming/components/cngx-dialog.css +25 -0
  49. package/theming/components/cngx-divider.css +12 -0
  50. package/theming/components/cngx-listbox.css +48 -12
  51. package/theming/components/cngx-menu.css +91 -15
  52. package/theming/components/cngx-popover.css +24 -0
  53. package/theming/components/cngx-recycler-placeholder.css +196 -0
  54. package/theming/components/cngx-ripple.css +2 -2
  55. package/theming/components/cngx-slider.css +32 -1
  56. package/theming/components/cngx-tooltip.css +23 -0
  57. package/timeline/README.md +155 -0
  58. package/types/cngx-common-a11y.d.ts +101 -31
  59. package/types/cngx-common-audio.d.ts +32 -32
  60. package/types/cngx-common-card.d.ts +211 -20
  61. package/types/cngx-common-chart.d.ts +1605 -169
  62. package/types/cngx-common-command.d.ts +190 -0
  63. package/types/cngx-common-data.d.ts +842 -163
  64. package/types/cngx-common-dialog.d.ts +372 -28
  65. package/types/cngx-common-display.d.ts +432 -148
  66. package/types/cngx-common-interactive.d.ts +1553 -370
  67. package/types/cngx-common-layout.d.ts +613 -27
  68. package/types/cngx-common-popover.d.ts +376 -36
  69. package/types/cngx-common-stepper.d.ts +414 -114
  70. package/types/cngx-common-tabs.d.ts +597 -72
  71. package/types/cngx-common-timeline.d.ts +1125 -0
  72. package/types/cngx-common.d.ts +1 -1
@@ -1,6 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { Signal, TemplateRef, InjectionToken, EnvironmentProviders, Provider } from '@angular/core';
2
+ import { Signal, InjectionToken, Provider, TemplateRef, EnvironmentProviders } from '@angular/core';
3
3
  import * as _cngx_common_display from '@cngx/common/display';
4
+ import { CngxMessage } from '@cngx/core/i18n';
4
5
 
5
6
  /**
6
7
  * Display atom for icons. Projects its content (font glyph, SVG, image, custom
@@ -75,6 +76,7 @@ type SegmentState = 'done' | 'active' | 'todo' | 'error';
75
76
  * <example-url>http://localhost:4200/#/common/display/segmented-progress/error-segment</example-url>
76
77
  */
77
78
  declare class CngxSegmentedProgress {
79
+ private readonly i18n;
78
80
  /** Number of completed positions (0-based count). Drives derivation. */
79
81
  readonly value: _angular_core.InputSignal<number>;
80
82
  /** Total number of segments when deriving from `[value]`. */
@@ -87,9 +89,10 @@ declare class CngxSegmentedProgress {
87
89
  /**
88
90
  * Override the `aria-valuetext` string. Receives `(now, max)` - the
89
91
  * completed-segment count and the total segment count. Mirrors
90
- * `CngxStepperCount.format`; the default is `(now, max) => \`${now} of
91
- * ${max}\``. Supply a localised closure for non-English position text
92
- * (e.g. `(n, m) => \`Schritt ${n} von ${m}\``).
92
+ * `CngxStepperCount.format`; wins over the app-wide
93
+ * `CNGX_DISPLAY_I18N.segmentedProgressValueText` (English default
94
+ * `(now, max) => \`${now} of ${max}\``). Supply a closure for per-instance
95
+ * position text (e.g. `(n, m) => \`Schritt ${n} von ${m}\``).
93
96
  */
94
97
  readonly valueTextFormat: _angular_core.InputSignal<((now: number, max: number) => string) | undefined>;
95
98
  /** Segments actually rendered: explicit when supplied, else derived. */
@@ -131,6 +134,110 @@ declare class CngxDivider {
131
134
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxDivider, "cngx-divider, [cngxDivider]", ["cngxDivider"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "inset": { "alias": "inset"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
132
135
  }
133
136
 
137
+ /**
138
+ * Presence states `CngxAvatar` renders a status dot for.
139
+ *
140
+ * @category common/display/i18n
141
+ * @since 0.1.0
142
+ */
143
+ type CngxAvatarStatus = 'online' | 'offline' | 'busy' | 'away';
144
+ /**
145
+ * Display-atom i18n surface. Library defaults are English; consumers override
146
+ * via {@link provideDisplayI18n}. Reactive from birth: the token carries a
147
+ * `Signal`, and {@link withDisplayI18nLabels} accepts a `Signal` of a partial
148
+ * bundle, so a runtime language switch re-derives every read.
149
+ *
150
+ * Per-instance inputs (`statusLabel`, `labelFormat`, `valueTextFormat`, a bound
151
+ * `label` / `removeAriaLabel`) still win over the bundle. Every key is read
152
+ * reactively while its input is unbound, `avatarGroupNoun` and `chipRemove`
153
+ * included, so a language switch reaches each atom without re-creating it.
154
+ *
155
+ * @category common/display/i18n
156
+ * @since 0.1.0
157
+ */
158
+ interface CngxDisplayI18n {
159
+ /** `CngxAvatar` status dot accessible name. English keeps the raw status word. */
160
+ readonly avatarStatus: (status: CngxAvatarStatus) => string;
161
+ /** Default of the `CngxAvatarGroup` `label` input: the entity noun. */
162
+ readonly avatarGroupNoun: string;
163
+ /** `CngxAvatarGroup` accessible summary; `hidden` is `0` when nothing is collapsed. */
164
+ readonly avatarGroupLabel: (total: number, hidden: number) => string;
165
+ /**
166
+ * The avatar-group summary for a given noun - the language's message with a
167
+ * consumer-bound `label` noun or an overridden `avatarGroupNoun`.
168
+ */
169
+ readonly avatarGroupLabelFor: (total: number, hidden: number, noun: string) => string;
170
+ /** Visible `+N` pill of `CngxAvatarGroup`. */
171
+ readonly avatarGroupOverflow: (count: number) => string;
172
+ /** `CngxSegmentedProgress` `aria-valuetext`: completed and total segment count. */
173
+ readonly segmentedProgressValueText: (now: number, max: number) => string;
174
+ /** Default of the `CngxChip` `removeAriaLabel` input. */
175
+ readonly chipRemove: string;
176
+ /** `CngxBadge` text for a count above its `max`, e.g. `99+`. */
177
+ readonly badgeOverflow: (max: number) => string;
178
+ }
179
+ /**
180
+ * DI token for the display i18n bundle. `providedIn: 'root'`: the display
181
+ * section of the active language pack over the English defaults, formatted
182
+ * for the app locale; the value is a `Signal`, shared by every reader under
183
+ * one injector.
184
+ *
185
+ * @category common/display/i18n
186
+ * @wcag AA
187
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/display/i18n/display-i18n.ts
188
+ * @since 0.1.0
189
+ * @relatedTo CngxAvatar, CngxAvatarGroup, CngxSegmentedProgress, CngxChip
190
+ */
191
+ declare const CNGX_DISPLAY_I18N: InjectionToken<Signal<CngxDisplayI18n>>;
192
+ /**
193
+ * Branded feature-fn for {@link provideDisplayI18n}.
194
+ *
195
+ * @category common/display/i18n
196
+ * @since 0.1.0
197
+ */
198
+ type CngxDisplayI18nFeature = ((bundle: Signal<CngxDisplayI18n>) => Signal<CngxDisplayI18n>) & {
199
+ readonly _target: 'i18n';
200
+ };
201
+ /**
202
+ * Override display labels via a partial bundle - unset keys keep the
203
+ * language pack's copy, or the English default. Pass a `Signal` of a partial
204
+ * bundle to switch languages at runtime.
205
+ *
206
+ * @category common/display/i18n
207
+ * @since 0.1.0
208
+ */
209
+ declare function withDisplayI18nLabels(overrides: Partial<CngxDisplayI18n> | Signal<Partial<CngxDisplayI18n>>): CngxDisplayI18nFeature;
210
+ /**
211
+ * Provider for the display i18n bundle. Returns a plain `Provider`, so it also
212
+ * scopes a subtree through `viewProviders`. The features apply on top of the
213
+ * active language pack.
214
+ *
215
+ * ```ts
216
+ * bootstrapApplication(AppComponent, {
217
+ * providers: [
218
+ * provideDisplayI18n(
219
+ * withDisplayI18nLabels({
220
+ * avatarStatus: (status) => ({ online: 'online', offline: 'offline', busy: 'beschaeftigt', away: 'abwesend' })[status],
221
+ * chipRemove: 'Entfernen',
222
+ * }),
223
+ * ),
224
+ * ],
225
+ * });
226
+ * ```
227
+ *
228
+ * @category common/display/i18n
229
+ * @since 0.1.0
230
+ */
231
+ declare function provideDisplayI18n(...features: readonly CngxDisplayI18nFeature[]): Provider;
232
+ /**
233
+ * Inject the resolved display i18n bundle signal. Read it inside a
234
+ * `computed()` or template so a runtime override flip re-derives.
235
+ *
236
+ * @category common/display/i18n
237
+ * @since 0.1.0
238
+ */
239
+ declare function injectDisplayI18n(): Signal<CngxDisplayI18n>;
240
+
134
241
  /**
135
242
  * Display atom for user/person/entity avatars.
136
243
  *
@@ -153,6 +260,7 @@ declare class CngxDivider {
153
260
  * <example-url>http://localhost:4200/#/common/display/avatar/sizes</example-url>
154
261
  */
155
262
  declare class CngxAvatar {
263
+ private readonly i18n;
156
264
  /** Image URL. When set and loads successfully, the image is shown. */
157
265
  readonly src: _angular_core.InputSignal<string | undefined>;
158
266
  /** Alternate text for the image. Required when `src` is used. */
@@ -164,7 +272,15 @@ declare class CngxAvatar {
164
272
  /** Visual shape. */
165
273
  readonly shape: _angular_core.InputSignal<"circle" | "square">;
166
274
  /** Optional user-presence status indicator. */
167
- readonly status: _angular_core.InputSignal<"online" | "offline" | "busy" | "away" | undefined>;
275
+ readonly status: _angular_core.InputSignal<CngxAvatarStatus | undefined>;
276
+ /**
277
+ * Format closure for the status dot's accessible label. When set, it wins
278
+ * over the app-wide `CNGX_DISPLAY_I18N.avatarStatus` (English default: the
279
+ * status word). Mirrors the `labelFormat` closure on `CngxAvatarGroup`.
280
+ */
281
+ readonly statusLabel: _angular_core.InputSignal<((status: CngxAvatarStatus) => string) | undefined>;
282
+ /** Accessible label of the status dot - the closure's output when set, else `CNGX_DISPLAY_I18N.avatarStatus`. */
283
+ protected readonly statusAriaLabel: _angular_core.Signal<string | null>;
168
284
  private readonly imageLoadedState;
169
285
  private readonly imageErroredState;
170
286
  /** Whether the image loaded successfully. */
@@ -176,7 +292,7 @@ declare class CngxAvatar {
176
292
  protected handleLoad(): void;
177
293
  protected handleError(): void;
178
294
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxAvatar, never>;
179
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxAvatar, "cngx-avatar", ["cngxAvatar"], { "src": { "alias": "src"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "initials": { "alias": "initials"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
295
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxAvatar, "cngx-avatar", ["cngxAvatar"], { "src": { "alias": "src"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "initials": { "alias": "initials"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "statusLabel": { "alias": "statusLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
180
296
  }
181
297
 
182
298
  /**
@@ -205,27 +321,40 @@ declare class CngxAvatar {
205
321
  * @relatedTo CngxAvatar
206
322
  */
207
323
  declare class CngxAvatarGroup {
324
+ private readonly i18n;
208
325
  /** Maximum avatars to show before collapsing the rest into the pill. Unset = show all. */
209
326
  readonly max: _angular_core.InputSignal<number | undefined>;
210
327
  /** Size preset for the overflow pill and stacking overlap (mirrors `CngxAvatar`). */
211
328
  readonly size: _angular_core.InputSignal<"xs" | "sm" | "md" | "lg" | "xl">;
212
329
  /** Pill shape (mirrors `CngxAvatar`). */
213
330
  readonly shape: _angular_core.InputSignal<"circle" | "square">;
214
- /** Entity noun used in the `aria-label` summary. EN default. */
215
- readonly label: _angular_core.InputSignal<string>;
331
+ /**
332
+ * Entity noun used in the `aria-label` summary. Unbound, it follows
333
+ * `CNGX_DISPLAY_I18N.avatarGroupNoun` (or its `avatarGroupLabel`
334
+ * formatter); a bound noun goes into the language's summary message.
335
+ */
336
+ readonly label: _angular_core.InputSignal<string | undefined>;
337
+ /**
338
+ * Format closure for the accessible summary. When set, it wins over
339
+ * `CNGX_DISPLAY_I18N.avatarGroupLabel` and the bound `label` noun.
340
+ * `hidden` is `0` when nothing is collapsed.
341
+ */
342
+ readonly labelFormat: _angular_core.InputSignal<((total: number, hidden: number) => string) | undefined>;
216
343
  private readonly el;
217
344
  private readonly avatars;
218
345
  /** Total number of projected avatars. */
219
346
  protected readonly total: _angular_core.Signal<number>;
220
- /** How many avatars are actually shown (capped by `max`). */
347
+ /** How many avatars are actually shown (capped by `max`). `max=0` collapses all; negatives clamp to `0`. */
221
348
  protected readonly visibleCount: _angular_core.Signal<number>;
222
349
  /** How many avatars are collapsed into the `+N` pill. */
223
350
  protected readonly hiddenCount: _angular_core.Signal<number>;
351
+ /** Visible `+N` pill text, with the count in the app locale. */
352
+ protected readonly overflowText: _angular_core.Signal<string>;
224
353
  /** Accessible summary of total and hidden counts. */
225
354
  protected readonly ariaLabel: _angular_core.Signal<string>;
226
355
  constructor();
227
356
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxAvatarGroup, never>;
228
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxAvatarGroup, "cngx-avatar-group", ["cngxAvatarGroup"], { "max": { "alias": "max"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, ["avatars"], ["cngx-avatar"], true, never>;
357
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxAvatarGroup, "cngx-avatar-group", ["cngxAvatarGroup"], { "max": { "alias": "max"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelFormat": { "alias": "labelFormat"; "required": false; "isSignal": true; }; }, {}, ["avatars"], ["cngx-avatar"], true, never>;
229
358
  }
230
359
 
231
360
  /**
@@ -261,7 +390,11 @@ type CngxBadgePosition = 'inline' | 'above-start' | 'above-end' | 'below-start'
261
390
  * <example-url>http://localhost:4200/#/common/display/badge/inline-and-hidden</example-url>
262
391
  */
263
392
  declare class CngxBadge {
264
- /** Raw value. Numbers show as text (respecting `max`); booleans flip dot mode; strings render verbatim. */
393
+ /**
394
+ * Raw value. Numbers show as text (respecting `max`); booleans flip dot
395
+ * mode; strings render verbatim. Numbers at or below `0` count as empty -
396
+ * a negative count never renders, mirroring the `0` behaviour.
397
+ */
265
398
  readonly cngxBadge: _angular_core.InputSignal<string | number | boolean>;
266
399
  /** Color variant. */
267
400
  readonly color: _angular_core.InputSignal<CngxBadgeColor>;
@@ -269,8 +402,13 @@ declare class CngxBadge {
269
402
  readonly position: _angular_core.InputSignal<CngxBadgePosition>;
270
403
  /** Whether the indicator is hidden regardless of value. */
271
404
  readonly hidden: _angular_core.InputSignal<boolean>;
272
- /** Cap for numeric values - anything over renders as `"{max}+"`. */
405
+ /**
406
+ * Cap for numeric values - anything over renders through
407
+ * `CNGX_DISPLAY_I18N.badgeOverflow` (English `"99+"`).
408
+ */
273
409
  readonly max: _angular_core.InputSignal<number>;
410
+ private readonly i18n;
411
+ private readonly locale;
274
412
  private readonly hostEl;
275
413
  private readonly renderer;
276
414
  private badgeEl;
@@ -331,6 +469,7 @@ declare class CngxBadge {
331
469
  * <example-url>http://localhost:4200/#/common/interactive/chip/multi-group/multi-select-chips-with-selection-count</example-url>
332
470
  */
333
471
  declare class CngxChip {
472
+ private readonly i18n;
334
473
  /**
335
474
  * Whether the close button is rendered. Typed as `boolean` - bind a
336
475
  * signal getter (`[removable]="!select.disabled()"`) if the flag
@@ -344,12 +483,14 @@ declare class CngxChip {
344
483
  */
345
484
  readonly id: _angular_core.InputSignal<string | null>;
346
485
  /**
347
- * A11y label for the close button. Defaults to a generic "Remove";
348
- * consumers with option labels on hand should supply something more
486
+ * A11y label for the close button. Unbound, it follows
487
+ * `CNGX_DISPLAY_I18N.chipRemove` (English "Remove"); consumers with option
488
+ * labels on hand should supply something more
349
489
  * specific (e.g. `"Remove Red"`) so screen readers know which chip
350
490
  * the button removes.
351
491
  */
352
- readonly removeAriaLabel: _angular_core.InputSignal<string>;
492
+ readonly removeAriaLabel: _angular_core.InputSignal<string | undefined>;
493
+ protected readonly resolvedRemoveAriaLabel: _angular_core.Signal<string>;
353
494
  /** Fires when the user clicks the close button. */
354
495
  readonly remove: _angular_core.OutputEmitterRef<MouseEvent>;
355
496
  private readonly autoId;
@@ -361,6 +502,71 @@ declare class CngxChip {
361
502
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxChip, "cngx-chip", ["cngxChip"], { "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "removeAriaLabel": { "alias": "removeAriaLabel"; "required": false; "isSignal": true; }; }, { "remove": "remove"; }, never, ["*", "[cngxChipClose]"], true, never>;
362
503
  }
363
504
 
505
+ /** Semantic health of a {@link CngxStatus}. */
506
+ type StatusTone = 'success' | 'warning' | 'danger' | 'info' | 'neutral';
507
+ /**
508
+ * Semantic health indicator - a decorative tone dot paired with a visible
509
+ * label. Distinct from `CngxBadge` (count overlay), `CngxChip` (interactive)
510
+ * and `CngxTag` (labeled token): its single job is to communicate a status
511
+ * (operational / degraded / down / info).
512
+ *
513
+ * Colour is never the only signal (Pillar 2): the tone drives the dot colour
514
+ * *and* a tone glyph, so a colour-blind reader still distinguishes the states,
515
+ * and the visible `label` carries the meaning for assistive tech (the dot is
516
+ * `aria-hidden`). Set `live` for a status that changes in place.
517
+ *
518
+ * ### Basic
519
+ * ```html
520
+ * <cngx-status tone="success" label="Operational" />
521
+ * ```
522
+ *
523
+ * ### Live-updating
524
+ * ```html
525
+ * <cngx-status tone="danger" label="Outage" live="assertive" />
526
+ * ```
527
+ *
528
+ * ### Dot-only (bare coloured dot + label)
529
+ * ```html
530
+ * <cngx-status tone="success" label="Operational" [glyph]="false" />
531
+ * ```
532
+ * `[glyph]="false"` drops the glyph for a GitHub-style coloured dot. Keep a
533
+ * visible `label`: without the glyph, colour is the dot's only signal, which a
534
+ * sighted colour-blind reader cannot resolve (a dev-mode warning enforces this).
535
+ *
536
+ * @category common/display
537
+ * @docsKind primary
538
+ * @wcag AA
539
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/display/status/status.component.ts
540
+ * @since 0.1.0
541
+ * @relatedTo CngxBadge, CngxTag, CngxChip
542
+ *
543
+ * <example-url>http://localhost:4200/#/common/display/status/tone-matrix</example-url>
544
+ * <example-url>http://localhost:4200/#/common/display/status/dot-only</example-url>
545
+ */
546
+ declare class CngxStatus {
547
+ private readonly elRef;
548
+ /** Semantic health. Drives both the dot colour and the tone glyph. */
549
+ readonly tone: _angular_core.InputSignal<StatusTone>;
550
+ /** Visible status text. Carries the meaning for assistive tech. */
551
+ readonly label: _angular_core.InputSignal<string | undefined>;
552
+ /**
553
+ * Politeness of the live region. `off` (default) for a static status;
554
+ * `polite` / `assertive` for a status that changes in place.
555
+ */
556
+ readonly live: _angular_core.InputSignal<"off" | "polite" | "assertive">;
557
+ /**
558
+ * Show the tone glyph inside the dot. `false` renders a bare coloured dot
559
+ * (GitHub-style) - sound only when a visible `label` carries the meaning,
560
+ * since colour alone fails a sighted colour-blind reader (Pillar 2).
561
+ */
562
+ readonly glyph: _angular_core.InputSignalWithTransform<boolean, unknown>;
563
+ /** @internal Tone glyph char bound into the decorative dot. */
564
+ protected readonly glyphChar: _angular_core.Signal<string>;
565
+ constructor();
566
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStatus, never>;
567
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxStatus, "cngx-status", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "live": { "alias": "live"; "required": false; "isSignal": true; }; "glyph": { "alias": "glyph"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
568
+ }
569
+
364
570
  /**
365
571
  * An inline, wrapping metadata line - a flex row of projected {@link CngxMeta}
366
572
  * pairs separated by a consistent gap. It carries the shared muted colour + gap
@@ -569,8 +775,9 @@ declare class CngxRadioIndicator {
569
775
  * `datetime` attribute (ISO 8601) plus a human string in one of two modes:
570
776
  * `absolute` (via `Intl.DateTimeFormat`) or `relative` (via
571
777
  * `Intl.RelativeTimeFormat`, e.g. "3 days ago"). Formatting resolves against
572
- * the injected `LOCALE_ID` - English out of the box, locale-driven when the app
573
- * provides one; no hardcoded strings.
778
+ * the app locale (`CNGX_LOCALE`, falling back to the nearest `LOCALE_ID`) -
779
+ * English out of the box, locale-driven when the app provides one, re-formatted
780
+ * on a locale flip; no hardcoded strings.
574
781
  *
575
782
  * Relative mode is render-time, not live-ticking: it recomputes when `[date]`
576
783
  * changes, not on a timer, so "2 minutes ago" does not self-update. A consumer
@@ -604,17 +811,26 @@ declare class CngxTime {
604
811
  * Coerced instant. A `Date`; downstream reads its time value. The `equal` fn
605
812
  * dedupes by time value so re-binding `[date]` to a fresh `Date` of the same
606
813
  * instant (or the equivalent ISO string) does not cascade `iso`/`formatted` -
607
- * the object-computed equality rule.
814
+ * the object-computed equality rule. NaN pairs compare equal - without the
815
+ * arm, two Invalid Dates would defeat the dedupe (NaN !== NaN) and cascade
816
+ * on every rebind.
608
817
  */
609
818
  protected readonly instant: _angular_core.Signal<Date>;
610
- /** Machine-readable ISO 8601 for the `datetime` attribute. */
611
- protected readonly iso: _angular_core.Signal<string>;
819
+ /**
820
+ * Invalid Date guard. `toISOString()` throws and `Intl.format` renders
821
+ * garbage on an invalid instant - a bad ISO string must degrade to an
822
+ * empty render, not crash change detection.
823
+ */
824
+ protected readonly isValidDate: _angular_core.Signal<boolean>;
825
+ /** Machine-readable ISO 8601 for the `datetime` attribute. `null` (attribute removed) when the instant is invalid. */
826
+ protected readonly iso: _angular_core.Signal<string | null>;
612
827
  /**
613
828
  * Human string. Reads `Date.now()` in `relative` mode as a render-time
614
829
  * snapshot - untracked by design, so the value recomputes only when `[date]`
615
830
  * (or `mode`/`format`) changes, never on a timer.
616
831
  */
617
832
  protected readonly formatted: _angular_core.Signal<string>;
833
+ constructor();
618
834
  private formatRelative;
619
835
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTime, never>;
620
836
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxTime, "cngx-time", ["cngxTime"], { "date": { "alias": "date"; "required": true; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -658,55 +874,6 @@ declare class CngxPasswordStrengthMeter {
658
874
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxPasswordStrengthMeter, "cngx-password-strength-meter", never, { "score": { "alias": "score"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
659
875
  }
660
876
 
661
- /**
662
- * Context exposed by the `*cngxTagLabel` slot — the full reactive
663
- * Tag state bundled so consumer templates can switch on variant /
664
- * colour / size / truncate without injecting the directive.
665
- *
666
- * `$implicit` is `void` because the slot has no positional payload —
667
- * consumers reach for the named fields below. Pattern mirrors
668
- * `CngxSelectInputSlotContext` in `@cngx/forms/select/shared`.
669
- *
670
- * @category common/display
671
- */
672
- interface CngxTagLabelContext {
673
- readonly $implicit: void;
674
- readonly variant: CngxTagVariant;
675
- readonly color: CngxTagColor;
676
- readonly size: CngxTagSize;
677
- readonly truncate: boolean;
678
- }
679
- /**
680
- * Context exposed by the `*cngxTagPrefix` slot. Structurally
681
- * identical to {@link CngxTagLabelContext}; kept as a separate
682
- * interface so future per-slot fields (e.g. spacing tokens) can
683
- * land without breaking label-slot consumers.
684
- *
685
- * @category common/display
686
- */
687
- interface CngxTagPrefixContext {
688
- readonly $implicit: void;
689
- readonly variant: CngxTagVariant;
690
- readonly color: CngxTagColor;
691
- readonly size: CngxTagSize;
692
- readonly truncate: boolean;
693
- }
694
- /**
695
- * Context exposed by the `*cngxTagSuffix` slot. Structurally
696
- * identical to {@link CngxTagLabelContext}; kept as a separate
697
- * interface so future per-slot fields can land without breaking
698
- * label-slot consumers.
699
- *
700
- * @category common/display
701
- */
702
- interface CngxTagSuffixContext {
703
- readonly $implicit: void;
704
- readonly variant: CngxTagVariant;
705
- readonly color: CngxTagColor;
706
- readonly size: CngxTagSize;
707
- readonly truncate: boolean;
708
- }
709
-
710
877
  /**
711
878
  * Override template for the label region of `<span cngxTag>`.
712
879
  *
@@ -747,7 +914,7 @@ interface CngxTagSuffixContext {
747
914
  * <example-url>http://localhost:4200/#/common/display/tag/variant-matrix</example-url>
748
915
  */
749
916
  declare class CngxTagLabel {
750
- readonly templateRef: TemplateRef<CngxTagLabelContext>;
917
+ readonly templateRef: TemplateRef<_cngx_common_display.CngxTagSlotContext>;
751
918
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTagLabel, never>;
752
919
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxTagLabel, "ng-template[cngxTagLabel]", ["cngxTagLabel"], {}, {}, never, never, true, never>;
753
920
  }
@@ -788,7 +955,7 @@ declare class CngxTagLabel {
788
955
  * <example-url>http://localhost:4200/#/common/display/tag/variant-matrix</example-url>
789
956
  */
790
957
  declare class CngxTagPrefix {
791
- readonly templateRef: TemplateRef<CngxTagPrefixContext>;
958
+ readonly templateRef: TemplateRef<_cngx_common_display.CngxTagSlotContext>;
792
959
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTagPrefix, never>;
793
960
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxTagPrefix, "ng-template[cngxTagPrefix]", ["cngxTagPrefix"], {}, {}, never, never, true, never>;
794
961
  }
@@ -831,11 +998,53 @@ declare class CngxTagPrefix {
831
998
  * <example-url>http://localhost:4200/#/common/display/tag/variant-matrix</example-url>
832
999
  */
833
1000
  declare class CngxTagSuffix {
834
- readonly templateRef: TemplateRef<CngxTagSuffixContext>;
1001
+ readonly templateRef: TemplateRef<_cngx_common_display.CngxTagSlotContext>;
835
1002
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTagSuffix, never>;
836
1003
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxTagSuffix, "ng-template[cngxTagSuffix]", ["cngxTagSuffix"], {}, {}, never, never, true, never>;
837
1004
  }
838
1005
 
1006
+ /**
1007
+ * Shared context exposed by the three `CngxTag` slots (`*cngxTagLabel`,
1008
+ * `*cngxTagPrefix`, `*cngxTagSuffix`) - the full reactive Tag state
1009
+ * bundled so consumer templates can switch on variant / colour / size /
1010
+ * truncate without injecting the directive.
1011
+ *
1012
+ * `$implicit` is `void` because the slots have no positional payload -
1013
+ * consumers reach for the named fields below. Pattern mirrors
1014
+ * `CngxSelectInputSlotContext` in `@cngx/forms/select/shared`.
1015
+ *
1016
+ * The per-slot names below alias this interface. A slot that grows its
1017
+ * own field forks its alias back into an interface extending this one -
1018
+ * sibling consumers stay source-compatible either way.
1019
+ *
1020
+ * @category common/display
1021
+ */
1022
+ interface CngxTagSlotContext {
1023
+ readonly $implicit: void;
1024
+ readonly variant: CngxTagVariant;
1025
+ readonly color: CngxTagColor;
1026
+ readonly size: CngxTagSize;
1027
+ readonly truncate: boolean;
1028
+ }
1029
+ /**
1030
+ * Context of the `*cngxTagLabel` slot. Alias of {@link CngxTagSlotContext}.
1031
+ *
1032
+ * @category common/display
1033
+ */
1034
+ type CngxTagLabelContext = CngxTagSlotContext;
1035
+ /**
1036
+ * Context of the `*cngxTagPrefix` slot. Alias of {@link CngxTagSlotContext}.
1037
+ *
1038
+ * @category common/display
1039
+ */
1040
+ type CngxTagPrefixContext = CngxTagSlotContext;
1041
+ /**
1042
+ * Context of the `*cngxTagSuffix` slot. Alias of {@link CngxTagSlotContext}.
1043
+ *
1044
+ * @category common/display
1045
+ */
1046
+ type CngxTagSuffixContext = CngxTagSlotContext;
1047
+
839
1048
  /**
840
1049
  * Visual variant. `filled` is the default solid pill; `outline` swaps fill for border; `subtle` softens both.
841
1050
  *
@@ -850,9 +1059,9 @@ type CngxTagVariant = 'filled' | 'outline' | 'subtle';
850
1059
  * Open-ended `(string & {})` accepts any consumer-defined palette
851
1060
  * key (e.g. `'my-brand'`); the directive emits it as a `data-color`
852
1061
  * attribute so consumers can author `[data-color="my-brand"]`
853
- * styles against their own design tokens. Re-evaluation trigger
854
- * toward a `withTagColors()` cascade is tracked in
855
- * `display-accepted-debt.md §1`.
1062
+ * styles against their own design tokens, or register the key via
1063
+ * `withTagColors()` and let the directive emit the entry's
1064
+ * `--cngx-tag-bg/-color/-border` values directly.
856
1065
  *
857
1066
  * @category common/display
858
1067
  */
@@ -905,6 +1114,9 @@ type CngxTagSize = 'sm' | 'md' | 'lg' | 'xl';
905
1114
  * @selector cngx-tag
906
1115
  * @since 0.1.0
907
1116
  * @relatedTo CngxTagGroup, CngxChip, CngxBadge, CngxTagLabel
1117
+ * @slot cngxTagLabel Replaces the tag's text body.
1118
+ * @slot cngxTagPrefix Content before the label, typically an icon or swatch.
1119
+ * @slot cngxTagSuffix Content after the label, typically a remove affordance.
908
1120
  * <example-url>http://localhost:4200/#/common/display/tag/app-wide-defaults-via-providetagconfig</example-url>
909
1121
  * <example-url>http://localhost:4200/#/common/display/tag/color-palette</example-url>
910
1122
  * <example-url>http://localhost:4200/#/common/display/tag/composition-with-cngxicon</example-url>
@@ -946,6 +1158,23 @@ declare class CngxTag {
946
1158
  readonly color: _angular_core.InputSignal<CngxTagColor>;
947
1159
  /** Density. `md` (default) | `sm` | `lg` | `xl`. */
948
1160
  readonly size: _angular_core.InputSignal<CngxTagSize>;
1161
+ /**
1162
+ * Registered `withTagColors` entry for the current colour key.
1163
+ * Consumer keys only - the five predefined keys resolve in
1164
+ * `tag.css`, so a config entry under a predefined key stays a
1165
+ * no-op per the `withTagColors` contract. The entry is emitted as
1166
+ * element-level `--cngx-tag-bg/-color/-border` values ONLY when
1167
+ * the config carries the key; an unregistered key emits nothing,
1168
+ * so the plain consumer CSS authoring path (`[data-color="..."]`
1169
+ * rules) is never shadowed by an element style.
1170
+ */
1171
+ protected readonly configColor: _angular_core.Signal<Readonly<{
1172
+ readonly bg: string;
1173
+ readonly color: string;
1174
+ readonly border: string;
1175
+ }> | undefined>;
1176
+ /** Border shorthand for the registered entry (mirrors the `1px solid <color>` shape of the predefined cascade). */
1177
+ protected readonly configBorder: _angular_core.Signal<string | null>;
949
1178
  /**
950
1179
  * When `true`, applies `text-overflow: ellipsis` + `white-space: nowrap`
951
1180
  * to the inner `.cngx-tag__label` span. Pair with `[maxWidth]` for a
@@ -991,17 +1220,16 @@ declare class CngxTag {
991
1220
  * Phase 4 commit 5 inserts `CNGX_TAG_CONFIG.templates.label` as a
992
1221
  * middle tier without touching this call site.
993
1222
  */
994
- protected readonly labelTpl: _angular_core.Signal<_angular_core.TemplateRef<CngxTagLabelContext> | null>;
1223
+ protected readonly labelTpl: _angular_core.Signal<_angular_core.TemplateRef<CngxTagSlotContext> | null>;
995
1224
  /** Resolved prefix template. Same 2-stage cascade as {@link labelTpl}. */
996
- protected readonly prefixTpl: _angular_core.Signal<_angular_core.TemplateRef<_cngx_common_display.CngxTagPrefixContext> | null>;
1225
+ protected readonly prefixTpl: _angular_core.Signal<_angular_core.TemplateRef<CngxTagSlotContext> | null>;
997
1226
  /** Resolved suffix template. Same 2-stage cascade as {@link labelTpl}. */
998
- protected readonly suffixTpl: _angular_core.Signal<_angular_core.TemplateRef<_cngx_common_display.CngxTagSuffixContext> | null>;
1227
+ protected readonly suffixTpl: _angular_core.Signal<_angular_core.TemplateRef<CngxTagSlotContext> | null>;
999
1228
  /**
1000
1229
  * Reactive bundle exposed to every slot's `*ngTemplateOutletContext`.
1001
- * The three slot context interfaces are structurally identical in
1002
- * Phase 1; the same computed source serves all three. Consumer
1003
- * templates `let-variant="variant"` etc. read the live state without
1004
- * injecting the directive.
1230
+ * All three slots share `CngxTagSlotContext`, so the same computed
1231
+ * source serves them. Consumer templates `let-variant="variant"` etc.
1232
+ * read the live state without injecting the directive.
1005
1233
  *
1006
1234
  * Explicit structural `equal` fn - without it, a fresh literal each
1007
1235
  * CD cycle would force `ngTemplateOutlet` to rebind embedded views
@@ -1009,7 +1237,7 @@ declare class CngxTag {
1009
1237
  * Equality Rule: every `computed` returning an object MUST pass an
1010
1238
  * `equal` fn.
1011
1239
  */
1012
- protected readonly slotContext: _angular_core.Signal<CngxTagLabelContext>;
1240
+ protected readonly slotContext: _angular_core.Signal<CngxTagSlotContext>;
1013
1241
  /**
1014
1242
  * Reactive `role` attribute. Returns `'listitem'` when projected
1015
1243
  * inside a `<cngx-tag-group [semanticList]="true">`; `null`
@@ -1025,42 +1253,6 @@ declare class CngxTag {
1025
1253
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxTag, "[cngxTag], cngx-tag", ["cngxTag"], { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "truncate": { "alias": "truncate"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; }, {}, ["labelSlot", "prefixSlot", "suffixSlot"], ["*"], true, never>;
1026
1254
  }
1027
1255
 
1028
- /**
1029
- * Context exposed by the `*cngxTagGroupHeader` slot — the full
1030
- * reactive group state plus the live `count` of projected
1031
- * `CngxTag` children. Lets consumer headers render
1032
- * `"Filters ({{ count }})"` without injecting the group.
1033
- *
1034
- * `$implicit` is `void` because the slot has no positional payload —
1035
- * consumers reach for the named fields below.
1036
- *
1037
- * @category common/display
1038
- */
1039
- interface CngxTagGroupHeaderContext {
1040
- readonly $implicit: void;
1041
- readonly gap: CngxTagGroupGap;
1042
- readonly align: CngxTagGroupAlign;
1043
- readonly semanticList: boolean;
1044
- readonly label: string | undefined;
1045
- readonly count: number;
1046
- }
1047
- /**
1048
- * Context exposed by the `*cngxTagGroupAccessory` slot. Structurally
1049
- * identical to {@link CngxTagGroupHeaderContext}; kept separate so
1050
- * future per-slot fields can land without breaking header-slot
1051
- * consumers.
1052
- *
1053
- * @category common/display
1054
- */
1055
- interface CngxTagGroupAccessoryContext {
1056
- readonly $implicit: void;
1057
- readonly gap: CngxTagGroupGap;
1058
- readonly align: CngxTagGroupAlign;
1059
- readonly semanticList: boolean;
1060
- readonly label: string | undefined;
1061
- readonly count: number;
1062
- }
1063
-
1064
1256
  /**
1065
1257
  * Override template for the accessory zone of `<cngx-tag-group>` -
1066
1258
  * projected BELOW the row of tags. Use for clear-all buttons,
@@ -1102,7 +1294,7 @@ interface CngxTagGroupAccessoryContext {
1102
1294
  * <example-url>http://localhost:4200/#/common/display/tag/variant-matrix</example-url>
1103
1295
  */
1104
1296
  declare class CngxTagGroupAccessory {
1105
- readonly templateRef: TemplateRef<CngxTagGroupAccessoryContext>;
1297
+ readonly templateRef: TemplateRef<_cngx_common_display.CngxTagGroupSlotContext>;
1106
1298
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTagGroupAccessory, never>;
1107
1299
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxTagGroupAccessory, "ng-template[cngxTagGroupAccessory]", ["cngxTagGroupAccessory"], {}, {}, never, never, true, never>;
1108
1300
  }
@@ -1148,11 +1340,51 @@ declare class CngxTagGroupAccessory {
1148
1340
  * <example-url>http://localhost:4200/#/common/display/tag/variant-matrix</example-url>
1149
1341
  */
1150
1342
  declare class CngxTagGroupHeader {
1151
- readonly templateRef: TemplateRef<CngxTagGroupHeaderContext>;
1343
+ readonly templateRef: TemplateRef<_cngx_common_display.CngxTagGroupSlotContext>;
1152
1344
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTagGroupHeader, never>;
1153
1345
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxTagGroupHeader, "ng-template[cngxTagGroupHeader]", ["cngxTagGroupHeader"], {}, {}, never, never, true, never>;
1154
1346
  }
1155
1347
 
1348
+ /**
1349
+ * Shared context exposed by the two `CngxTagGroup` slots
1350
+ * (`*cngxTagGroupHeader`, `*cngxTagGroupAccessory`) - the full reactive
1351
+ * group state plus the live `count` of projected `CngxTag` children.
1352
+ * Lets consumer headers render `"Filters ({{ count }})"` without
1353
+ * injecting the group.
1354
+ *
1355
+ * `$implicit` is `void` because the slots have no positional payload -
1356
+ * consumers reach for the named fields below.
1357
+ *
1358
+ * The per-slot names below alias this interface. A slot that grows its
1359
+ * own field (e.g. `position` on accessory) forks its alias back into an
1360
+ * interface extending this one - sibling consumers stay
1361
+ * source-compatible either way.
1362
+ *
1363
+ * @category common/display
1364
+ */
1365
+ interface CngxTagGroupSlotContext {
1366
+ readonly $implicit: void;
1367
+ readonly gap: CngxTagGroupGap;
1368
+ readonly align: CngxTagGroupAlign;
1369
+ readonly semanticList: boolean;
1370
+ readonly label: string | undefined;
1371
+ readonly count: number;
1372
+ }
1373
+ /**
1374
+ * Context of the `*cngxTagGroupHeader` slot. Alias of
1375
+ * {@link CngxTagGroupSlotContext}.
1376
+ *
1377
+ * @category common/display
1378
+ */
1379
+ type CngxTagGroupHeaderContext = CngxTagGroupSlotContext;
1380
+ /**
1381
+ * Context of the `*cngxTagGroupAccessory` slot. Alias of
1382
+ * {@link CngxTagGroupSlotContext}.
1383
+ *
1384
+ * @category common/display
1385
+ */
1386
+ type CngxTagGroupAccessoryContext = CngxTagGroupSlotContext;
1387
+
1156
1388
  /**
1157
1389
  * Public host contract that `CngxTagGroup` and any future
1158
1390
  * non-component implementer must satisfy. Surfaced through
@@ -1268,6 +1500,8 @@ type CngxTagGroupAlign = 'start' | 'center' | 'end' | 'between';
1268
1500
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/display/tag-group/tag-group.component.ts
1269
1501
  * @since 0.1.0
1270
1502
  * @relatedTo CngxTag, CngxTagGroupHeader, CngxTagGroupAccessory, CNGX_TAG_GROUP
1503
+ * @slot cngxTagGroupHeader Replaces the group's heading row.
1504
+ * @slot cngxTagGroupAccessory Trailing control beside the header, e.g. a clear-all button.
1271
1505
  * <example-url>http://localhost:4200/#/common/display/tag/app-wide-defaults-via-providetagconfig</example-url>
1272
1506
  * <example-url>http://localhost:4200/#/common/display/tag/color-palette</example-url>
1273
1507
  * <example-url>http://localhost:4200/#/common/display/tag/composition-with-cngxicon</example-url>
@@ -1349,9 +1583,9 @@ declare class CngxTagGroup implements CngxTagGroupHost {
1349
1583
  * commit 5 inserts `CNGX_TAG_CONFIG.templates.header` as a middle
1350
1584
  * tier without touching this call site.
1351
1585
  */
1352
- protected readonly headerTpl: Signal<_angular_core.TemplateRef<CngxTagGroupHeaderContext> | null>;
1586
+ protected readonly headerTpl: Signal<_angular_core.TemplateRef<CngxTagGroupSlotContext> | null>;
1353
1587
  /** Resolved accessory template. Same 2-stage cascade as {@link headerTpl}. */
1354
- protected readonly accessoryTpl: Signal<_angular_core.TemplateRef<_cngx_common_display.CngxTagGroupAccessoryContext> | null>;
1588
+ protected readonly accessoryTpl: Signal<_angular_core.TemplateRef<CngxTagGroupSlotContext> | null>;
1355
1589
  /**
1356
1590
  * Projected `<span cngxTag>` siblings. Default-scoped
1357
1591
  * (`descendants: false`) so tags inside consumer-projected header /
@@ -1362,10 +1596,10 @@ declare class CngxTagGroup implements CngxTagGroupHost {
1362
1596
  private readonly projectedTags;
1363
1597
  /**
1364
1598
  * Reactive bundle exposed to header / accessory slots'
1365
- * `*ngTemplateOutletContext`. The two slot context interfaces are
1366
- * structurally identical in Phase 2; the same computed source
1367
- * serves both. Consumer templates `let-count="count"` etc. read
1368
- * the live state without injecting the directive.
1599
+ * `*ngTemplateOutletContext`. Both slots share
1600
+ * `CngxTagGroupSlotContext`, so the same computed source serves
1601
+ * them. Consumer templates `let-count="count"` etc. read the live
1602
+ * state without injecting the directive.
1369
1603
  *
1370
1604
  * Explicit structural `equal` fn - without it, a fresh literal
1371
1605
  * each CD cycle would force `ngTemplateOutlet` to rebind embedded
@@ -1373,7 +1607,7 @@ declare class CngxTagGroup implements CngxTagGroupHost {
1373
1607
  * `reference_signal_architecture` §1 Equality Rule: every
1374
1608
  * `computed` returning an object MUST pass an `equal` fn.
1375
1609
  */
1376
- protected readonly slotContext: Signal<CngxTagGroupHeaderContext>;
1610
+ protected readonly slotContext: Signal<CngxTagGroupSlotContext>;
1377
1611
  constructor();
1378
1612
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTagGroup, never>;
1379
1613
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxTagGroup, "cngx-tag-group", ["cngxTagGroup"], { "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "semanticListInput": { "alias": "semanticList"; "required": false; "isSignal": true; }; }, {}, ["headerSlot", "accessorySlot", "projectedTags"], ["*"], true, never>;
@@ -1390,7 +1624,7 @@ declare class CngxTagGroup implements CngxTagGroupHost {
1390
1624
  * 3. `provideTagConfig(...)` at the application root.
1391
1625
  * 4. Library defaults (English; merged in via `CNGX_TAG_DEFAULTS`).
1392
1626
  *
1393
- * Every key is optional — partial overrides are deep-merged with
1627
+ * Every key is optional - partial overrides are deep-merged with
1394
1628
  * the library defaults so consumers only declare the keys they want
1395
1629
  * to override.
1396
1630
  *
@@ -1412,11 +1646,11 @@ interface CngxTagConfig {
1412
1646
  readonly semanticList?: boolean;
1413
1647
  };
1414
1648
  /**
1415
- * Consumer-defined colour map. Each entry adds a `[data-color="<key>"]`
1416
- * cascade entry that resolves through `--cngx-tag-bg/-color/-border`
1417
- * custom properties. Predefined keys (`neutral`/`success`/`warning`/
1418
- * `error`/`info`) ship in `tag.css` and are not part of this map —
1419
- * extending the predefined palette overrides the consumer key only.
1649
+ * Consumer-defined colour map. A registered key is emitted by the
1650
+ * directive as element-level `--cngx-tag-bg/-color/-border` values
1651
+ * whenever `color` resolves to it. Predefined keys (`neutral`/
1652
+ * `success`/`warning`/`error`/`info`) ship in `tag.css` and are not
1653
+ * part of this map - entries under a predefined key are a no-op.
1420
1654
  */
1421
1655
  readonly colors?: Readonly<Record<string, Readonly<{
1422
1656
  readonly bg: string;
@@ -1528,7 +1762,7 @@ declare function provideTagConfig(...features: CngxTagConfigFeature[]): Environm
1528
1762
  *
1529
1763
  * Unlike `provideTagConfig` (root-only), `provideTagConfigAt` injects
1530
1764
  * the parent injector's `CNGX_TAG_CONFIG` value (resolves through
1531
- * the priority chain — root provider, library defaults, or another
1765
+ * the priority chain - root provider, library defaults, or another
1532
1766
  * `provideTagConfigAt` further up) and deep-merges the supplied
1533
1767
  * features on top. This produces cumulative cascade behaviour:
1534
1768
  * descendant tag instances see the merged config, sibling sub-trees
@@ -1557,7 +1791,7 @@ declare function provideTagConfigAt(...features: CngxTagConfigFeature[]): Provid
1557
1791
  * (per-instance Input → `provideTagConfigAt` → `provideTagConfig`
1558
1792
  * → library defaults).
1559
1793
  *
1560
- * Equivalent to `inject(CNGX_TAG_CONFIG)` — the helper exists so
1794
+ * Equivalent to `inject(CNGX_TAG_CONFIG)` - the helper exists so
1561
1795
  * consumers don't need to import the token directly. Mirrors
1562
1796
  * `injectSelectConfig` in `@cngx/forms/select`.
1563
1797
  *
@@ -1577,7 +1811,7 @@ declare function injectTagConfig(): CngxTagConfig;
1577
1811
  /**
1578
1812
  * Override the default `CngxTag` input values (`variant`, `color`,
1579
1813
  * `size`, `truncate`, `maxWidth`). Per-instance bindings still win
1580
- * over the cascade — this only sets the *fallback* per directive.
1814
+ * over the cascade - this only sets the *fallback* per directive.
1581
1815
  *
1582
1816
  * ```ts
1583
1817
  * provideTagConfig(
@@ -1602,16 +1836,19 @@ declare function withTagDefaults(payload: NonNullable<CngxTagConfig['defaults']>
1602
1836
  */
1603
1837
  declare function withTagGroupDefaults(payload: NonNullable<CngxTagConfig['groupDefaults']>): CngxTagConfigFeature;
1604
1838
  /**
1605
- * Register consumer-defined colour entries. Each key adds a
1606
- * `[data-color="<key>"]` cascade entry resolved through
1607
- * `--cngx-tag-bg/-color/-border` custom properties at the consumer's
1608
- * own CSS layer.
1839
+ * Register consumer-defined colour entries. When a tag's `color`
1840
+ * resolves to a registered key, the directive emits the entry as
1841
+ * element-level `--cngx-tag-bg` / `--cngx-tag-color` /
1842
+ * `--cngx-tag-border` values (border wrapped as `1px solid <color>`
1843
+ * to mirror the predefined cascade). The entry applies uniformly
1844
+ * across variants - config colours carry no per-variant surfaces.
1609
1845
  *
1610
1846
  * The five predefined keys (`neutral`/`success`/`warning`/`error`/
1611
1847
  * `info`) ship in `tag.css` and are NOT part of this map; passing
1612
- * them here is a no-op against the predefined cascade. Consumer
1613
- * keys composed via `data-color="my-brand"` resolve through the
1614
- * registered entry.
1848
+ * them here is a no-op against the predefined cascade. Unregistered
1849
+ * consumer keys emit nothing, so authoring plain
1850
+ * `[data-color="my-brand"]` CSS remains a first-class alternative -
1851
+ * the emitter never shadows it with an element style.
1615
1852
  *
1616
1853
  * ```ts
1617
1854
  * provideTagConfig(
@@ -1630,12 +1867,12 @@ declare function withTagGroupDefaults(payload: NonNullable<CngxTagConfig['groupD
1630
1867
  declare function withTagColors(payload: NonNullable<CngxTagConfig['colors']>): CngxTagConfigFeature;
1631
1868
  /**
1632
1869
  * Register app-wide template overrides for the five Tag-family
1633
- * slots. Resolved in tier 2 of the slot cascade — instance
1870
+ * slots. Resolved in tier 2 of the slot cascade - instance
1634
1871
  * directives still win, the host's `<ng-template>` default body is
1635
1872
  * the floor.
1636
1873
  *
1637
1874
  * **Staging note.** This factory ships ahead of a documented second
1638
- * consumer — the headless `CngxTag` + `CngxTagGroup` are the only
1875
+ * consumer - the headless `CngxTag` + `CngxTagGroup` are the only
1639
1876
  * current consumers. The staging is intentional and tracked in
1640
1877
  * `display-accepted-debt.md §2` (Material organism deferral): a
1641
1878
  * future `cngx-mat-tag` / `cngx-mat-tag-group` wrapper inherits the
@@ -1664,5 +1901,52 @@ declare function withTagColors(payload: NonNullable<CngxTagConfig['colors']>): C
1664
1901
  */
1665
1902
  declare function withTagSlots(payload: NonNullable<CngxTagConfig['templates']>): CngxTagConfigFeature;
1666
1903
 
1667
- export { CNGX_TAG_CONFIG, CNGX_TAG_GROUP, CngxAvatar, CngxAvatarGroup, CngxBadge, CngxCheckboxIndicator, CngxChip, CngxDivider, CngxIcon, CngxMeta, CngxMetaList, CngxPasswordStrengthMeter, CngxRadioIndicator, CngxSegmentedProgress, CngxTag, CngxTagGroup, CngxTagGroupAccessory, CngxTagGroupHeader, CngxTagLabel, CngxTagPrefix, CngxTagSuffix, CngxTime, injectTagConfig, provideTagConfig, provideTagConfigAt, withTagColors, withTagDefaults, withTagGroupDefaults, withTagSlots };
1668
- export type { CngxBadgeColor, CngxBadgePosition, CngxTagColor, CngxTagConfig, CngxTagConfigFeature, CngxTagGroupAccessoryContext, CngxTagGroupAlign, CngxTagGroupGap, CngxTagGroupHeaderContext, CngxTagGroupHost, CngxTagLabelContext, CngxTagPrefixContext, CngxTagSize, CngxTagSuffixContext, CngxTagVariant, SegmentState };
1904
+ /**
1905
+ * The display section of a {@link CngxLanguagePack}: the copy of the
1906
+ * `@cngx/common/display` atoms (avatar, avatar group, segmented progress,
1907
+ * chip, badge). It feeds `CNGX_DISPLAY_I18N`.
1908
+ *
1909
+ * @category common/display/i18n
1910
+ * @since 0.1.0
1911
+ * @relatedTo CNGX_DISPLAY_I18N
1912
+ */
1913
+ interface CngxDisplayLanguageSection {
1914
+ /** Accessible name of the avatar status dot, per status. */
1915
+ readonly avatarStatus: {
1916
+ readonly online: string;
1917
+ readonly offline: string;
1918
+ readonly busy: string;
1919
+ readonly away: string;
1920
+ };
1921
+ /** The entity noun of an avatar group summary. */
1922
+ readonly avatarGroupNoun: string;
1923
+ /** `{noun}`, plural on `{count}`: an avatar group summary with nothing collapsed. */
1924
+ readonly avatarGroupLabel: CngxMessage;
1925
+ /** `{noun}`, `{hidden}`, plural on `{count}`: an avatar group summary with collapsed avatars. */
1926
+ readonly avatarGroupLabelHidden: CngxMessage;
1927
+ /** `{count}`: the visible overflow pill of an avatar group. */
1928
+ readonly avatarGroupOverflow: CngxMessage;
1929
+ /** `{now}`, `{max}`: the value text of a segmented progress. */
1930
+ readonly segmentedProgressValueText: CngxMessage;
1931
+ /** Accessible name of a chip's remove button. */
1932
+ readonly chipRemove: string;
1933
+ /** `{max}`: a badge count above its maximum. */
1934
+ readonly badgeOverflow: CngxMessage;
1935
+ }
1936
+ /**
1937
+ * The English display section: the single source of the display atoms'
1938
+ * English copy. `CNGX_DISPLAY_I18N` defaults to it.
1939
+ *
1940
+ * @category common/display/i18n
1941
+ * @since 0.1.0
1942
+ * @relatedTo CNGX_DISPLAY_I18N
1943
+ */
1944
+ declare const CNGX_DISPLAY_LANGUAGE_EN: CngxDisplayLanguageSection;
1945
+ declare module '@cngx/core/i18n' {
1946
+ interface CngxLanguagePack {
1947
+ readonly display: CngxDisplayLanguageSection;
1948
+ }
1949
+ }
1950
+
1951
+ export { CNGX_DISPLAY_I18N, CNGX_DISPLAY_LANGUAGE_EN, CNGX_TAG_CONFIG, CNGX_TAG_GROUP, CngxAvatar, CngxAvatarGroup, CngxBadge, CngxCheckboxIndicator, CngxChip, CngxDivider, CngxIcon, CngxMeta, CngxMetaList, CngxPasswordStrengthMeter, CngxRadioIndicator, CngxSegmentedProgress, CngxStatus, CngxTag, CngxTagGroup, CngxTagGroupAccessory, CngxTagGroupHeader, CngxTagLabel, CngxTagPrefix, CngxTagSuffix, CngxTime, injectDisplayI18n, injectTagConfig, provideDisplayI18n, provideTagConfig, provideTagConfigAt, withDisplayI18nLabels, withTagColors, withTagDefaults, withTagGroupDefaults, withTagSlots };
1952
+ export type { CngxAvatarStatus, CngxBadgeColor, CngxBadgePosition, CngxDisplayI18n, CngxDisplayI18nFeature, CngxDisplayLanguageSection, CngxTagColor, CngxTagConfig, CngxTagConfigFeature, CngxTagGroupAccessoryContext, CngxTagGroupAlign, CngxTagGroupGap, CngxTagGroupHeaderContext, CngxTagGroupHost, CngxTagGroupSlotContext, CngxTagLabelContext, CngxTagPrefixContext, CngxTagSize, CngxTagSlotContext, CngxTagSuffixContext, CngxTagVariant, SegmentState, StatusTone };