@cngx/common 0.0.1-rc.0 → 0.1.0-rc.1

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 (61) hide show
  1. package/a11y/README.md +13 -16
  2. package/card/README.md +2 -21
  3. package/chart/README.md +5 -8
  4. package/data/README.md +45 -47
  5. package/dialog/README.md +12 -15
  6. package/display/README.md +5 -9
  7. package/fesm2022/cngx-common-a11y.mjs +164 -51
  8. package/fesm2022/cngx-common-a11y.mjs.map +1 -1
  9. package/fesm2022/cngx-common-card.mjs +157 -69
  10. package/fesm2022/cngx-common-card.mjs.map +1 -1
  11. package/fesm2022/cngx-common-chart.mjs +389 -92
  12. package/fesm2022/cngx-common-chart.mjs.map +1 -1
  13. package/fesm2022/cngx-common-data.mjs +311 -151
  14. package/fesm2022/cngx-common-data.mjs.map +1 -1
  15. package/fesm2022/cngx-common-dialog.mjs +167 -29
  16. package/fesm2022/cngx-common-dialog.mjs.map +1 -1
  17. package/fesm2022/cngx-common-display.mjs +445 -110
  18. package/fesm2022/cngx-common-display.mjs.map +1 -1
  19. package/fesm2022/cngx-common-interactive.mjs +2059 -435
  20. package/fesm2022/cngx-common-interactive.mjs.map +1 -1
  21. package/fesm2022/cngx-common-layout.mjs +188 -31
  22. package/fesm2022/cngx-common-layout.mjs.map +1 -1
  23. package/fesm2022/cngx-common-popover.mjs +711 -90
  24. package/fesm2022/cngx-common-popover.mjs.map +1 -1
  25. package/fesm2022/cngx-common-stepper.mjs +1479 -73
  26. package/fesm2022/cngx-common-stepper.mjs.map +1 -1
  27. package/fesm2022/cngx-common-tabs.mjs +1144 -85
  28. package/fesm2022/cngx-common-tabs.mjs.map +1 -1
  29. package/fesm2022/cngx-common.mjs +2 -2
  30. package/fesm2022/cngx-common.mjs.map +1 -1
  31. package/interactive/README.md +5 -5
  32. package/layout/README.md +2 -2
  33. package/package.json +7 -6
  34. package/popover/README.md +8 -34
  35. package/stepper/README.md +69 -8
  36. package/tabs/README.md +6 -6
  37. package/theming/components/cngx-async.css +74 -0
  38. package/theming/components/cngx-backdrop.css +73 -0
  39. package/theming/components/cngx-badge.css +340 -0
  40. package/theming/components/cngx-bottom-sheet.css +201 -0
  41. package/theming/components/cngx-button-toggle.css +99 -0
  42. package/theming/components/cngx-dialog.css +358 -0
  43. package/theming/components/cngx-divider.css +145 -0
  44. package/theming/components/cngx-listbox.css +220 -0
  45. package/theming/components/cngx-menu.css +371 -0
  46. package/theming/components/cngx-ripple.css +116 -0
  47. package/theming/components/cngx-tooltip.css +265 -0
  48. package/theming/system-tokens.css +24 -0
  49. package/types/cngx-common-a11y.d.ts +159 -38
  50. package/types/cngx-common-card.d.ts +137 -22
  51. package/types/cngx-common-chart.d.ts +337 -40
  52. package/types/cngx-common-data.d.ts +277 -45
  53. package/types/cngx-common-dialog.d.ts +162 -22
  54. package/types/cngx-common-display.d.ts +422 -78
  55. package/types/cngx-common-interactive.d.ts +1880 -305
  56. package/types/cngx-common-layout.d.ts +191 -28
  57. package/types/cngx-common-popover.d.ts +632 -87
  58. package/types/cngx-common-stepper.d.ts +1360 -45
  59. package/types/cngx-common-tabs.d.ts +1139 -56
  60. package/types/cngx-common.d.ts +1 -1
  61. package/README.md +0 -18
@@ -10,26 +10,41 @@ import * as i1 from '@cngx/common/a11y';
10
10
  * attribute, preventing focus and interaction behind the backdrop.
11
11
  * This is critical for a11y in modal/drawer overlays.
12
12
  *
13
- * The directive is purely behavioral -- the consumer provides all
14
- * visual styling (background color, opacity, transitions) via CSS
15
- * custom properties and the `.cngx-backdrop--visible` class.
13
+ * The directive is purely behavioral - it toggles the
14
+ * `.cngx-backdrop--visible` class and `aria-hidden` attribute. Visual
15
+ * styling is opt-in: either consume the shipped default stylesheet or
16
+ * provide your own.
16
17
  *
17
- * ### Drawer backdrop
18
+ * ### Drawer backdrop with shipped defaults (recommended)
18
19
  * ```html
19
20
  * <div cngxDrawer #drawer="cngxDrawer">
20
21
  * <div [cngxBackdrop]="drawer.opened()" (backdropClick)="drawer.close()"
21
- * class="my-backdrop"></div>
22
+ * class="cngx-backdrop"></div>
22
23
  * <nav [cngxDrawerPanel]="drawer">…</nav>
23
24
  * <main [cngxDrawerContent]="drawer">…</main>
24
25
  * </div>
25
26
  * ```
27
+ * ```css
28
+ * @import '@cngx/common/theming/components/cngx-backdrop.css';
29
+ * ```
30
+ *
31
+ * Token surface (Three-Tier-Override):
32
+ * - `--cngx-backdrop-bg` (scrim color, default `oklch(0 0 0 / 0.5)`)
33
+ * - `--cngx-backdrop-transition-duration` (default `200ms`)
34
+ *
35
+ * ### Custom styling (no opt-in class)
36
+ * If the shipped defaults don't fit, omit the `.cngx-backdrop` class and
37
+ * style your own host class - the directive still toggles
38
+ * `.cngx-backdrop--visible` on the host element.
26
39
  *
27
- * ### CSS (consumer responsibility)
40
+ * ```html
41
+ * <div [cngxBackdrop]="visible()" class="my-backdrop"></div>
42
+ * ```
28
43
  * ```css
29
44
  * .my-backdrop {
30
45
  * position: fixed;
31
46
  * inset: 0;
32
- * background: var(--cngx-backdrop-color, rgba(0, 0, 0, 0.5));
47
+ * background: rgba(0, 0, 0, 0.3);
33
48
  * opacity: 0;
34
49
  * pointer-events: none;
35
50
  * transition: opacity 0.25s ease;
@@ -39,6 +54,13 @@ import * as i1 from '@cngx/common/a11y';
39
54
  * pointer-events: auto;
40
55
  * }
41
56
  * ```
57
+ *
58
+ * @category common/layout
59
+ * @wcag AA
60
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/drawer/backdrop.directive.ts
61
+ * @since 0.1.0
62
+ * @relatedTo CngxDrawer, CngxDrawerPanel, CngxScrollLock
63
+ * <example-url>http://localhost:4200/#/common/layout/backdrop/overlay-with-inert</example-url>
42
64
  */
43
65
  declare class CngxBackdrop {
44
66
  /** Whether the backdrop is visible and siblings are inert. */
@@ -56,7 +78,11 @@ declare class CngxBackdrop {
56
78
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxBackdrop, "[cngxBackdrop]", ["cngxBackdrop"], { "visible": { "alias": "cngxBackdrop"; "required": false; "isSignal": true; }; "closeOnClick": { "alias": "closeOnClick"; "required": false; "isSignal": true; }; }, { "backdropClick": "backdropClick"; }, never, never, true, never>;
57
79
  }
58
80
 
59
- /** Position from which the drawer panel slides in. */
81
+ /**
82
+ * Position from which the drawer panel slides in.
83
+ *
84
+ * @category common/layout
85
+ */
60
86
  type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
61
87
  /**
62
88
  * State owner for a drawer / sidebar system.
@@ -66,7 +92,7 @@ type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
66
92
  * (internal state via `open()` / `close()` / `toggle()`) modes.
67
93
  *
68
94
  * Child directives (`CngxDrawerPanel`, `CngxDrawerContent`) receive a
69
- * reference to this directive via an explicit input — no ancestor injection.
95
+ * reference to this directive via an explicit input - no ancestor injection.
70
96
  *
71
97
  * ### Uncontrolled
72
98
  * ```html
@@ -84,14 +110,27 @@ type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
84
110
  * …
85
111
  * </div>
86
112
  * ```
113
+ *
114
+ * @category common/layout
115
+ * @docsKind primary
116
+ * @wcag AA
117
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/drawer/drawer.directive.ts
118
+ * @since 0.1.0
119
+ * @relatedTo CngxDrawerPanel, CngxDrawerContent, CngxBackdrop, CngxScrollLock
120
+ * <example-url>http://localhost:4200/#/common/layout/drawer/basic-scroll-lock-backdrop</example-url>
121
+ * <example-url>http://localhost:4200/#/common/layout/drawer/controlled-mode</example-url>
122
+ * <example-url>http://localhost:4200/#/common/layout/drawer/direction-all-four-sides</example-url>
123
+ * <example-url>http://localhost:4200/#/common/layout/drawer/events-openedchange-closed</example-url>
124
+ * <example-url>http://localhost:4200/#/common/layout/drawer/mode-over-push-side</example-url>
125
+ * <example-url>http://localhost:4200/#/common/layout/drawer/pattern-consumer-wiring</example-url>
87
126
  */
88
127
  declare class CngxDrawer {
89
- /** @internal Host element ref — used by `CngxDrawerPanel` for click-outside containment. */
128
+ /** @internal Host element ref - used by `CngxDrawerPanel` for click-outside containment. */
90
129
  readonly elementRef: ElementRef<any>;
91
130
  /** Controlled opened state. When bound, takes precedence over internal state. */
92
131
  readonly openedInput: _angular_core.InputSignal<boolean | undefined>;
93
132
  private readonly openedState;
94
- /** Resolved opened state — controlled input wins over internal state. */
133
+ /** Resolved opened state - controlled input wins over internal state. */
95
134
  readonly opened: _angular_core.Signal<boolean>;
96
135
  /** Emitted when the opened state changes. Wire to a signal for two-way binding. */
97
136
  readonly openedChange: _angular_core.OutputEmitterRef<boolean>;
@@ -107,13 +146,17 @@ declare class CngxDrawer {
107
146
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxDrawer, "[cngxDrawer]", ["cngxDrawer"], { "openedInput": { "alias": "cngxDrawerOpened"; "required": false; "isSignal": true; }; }, { "openedChange": "openedChange"; "closed": "closed"; }, never, never, true, never>;
108
147
  }
109
148
 
110
- /** How the drawer panel interacts with the content area. */
149
+ /**
150
+ * How the drawer panel interacts with the content area.
151
+ *
152
+ * @category common/layout
153
+ */
111
154
  type DrawerMode = 'over' | 'push' | 'side';
112
155
  /**
113
156
  * The sliding panel of a drawer. Reads its open state from an explicit
114
- * `[cngxDrawerPanel]` reference — no ancestor injection.
157
+ * `[cngxDrawerPanel]` reference - no ancestor injection.
115
158
  *
116
- * Composes `CngxFocusTrap` as a `hostDirective` — the consumer controls
159
+ * Composes `CngxFocusTrap` as a `hostDirective` - the consumer controls
117
160
  * the `[enabled]` and `[autoFocus]` inputs from the template.
118
161
  *
119
162
  * Optionally closes the drawer when the user clicks outside the panel
@@ -125,6 +168,18 @@ type DrawerMode = 'over' | 'push' | 'side';
125
168
  * <a href="/home">Home</a>
126
169
  * </nav>
127
170
  * ```
171
+ *
172
+ * @category common/layout
173
+ * @wcag AA
174
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/drawer/drawer-panel.directive.ts
175
+ * @since 0.1.0
176
+ * @relatedTo CngxDrawer, CngxDrawerContent, CngxFocusTrap
177
+ * <example-url>http://localhost:4200/#/common/layout/drawer/basic-scroll-lock-backdrop</example-url>
178
+ * <example-url>http://localhost:4200/#/common/layout/drawer/controlled-mode</example-url>
179
+ * <example-url>http://localhost:4200/#/common/layout/drawer/direction-all-four-sides</example-url>
180
+ * <example-url>http://localhost:4200/#/common/layout/drawer/events-openedchange-closed</example-url>
181
+ * <example-url>http://localhost:4200/#/common/layout/drawer/mode-over-push-side</example-url>
182
+ * <example-url>http://localhost:4200/#/common/layout/drawer/pattern-consumer-wiring</example-url>
128
183
  */
129
184
  declare class CngxDrawerPanel {
130
185
  /** Reference to the parent `CngxDrawer` state owner. */
@@ -133,9 +188,9 @@ declare class CngxDrawerPanel {
133
188
  readonly position: _angular_core.InputSignal<DrawerPosition>;
134
189
  /**
135
190
  * How the panel interacts with the content area:
136
- * - `'over'` (default) — overlays content (absolute positioned)
137
- * - `'push'` — pushes content aside (content gets margin)
138
- * - `'side'` — always visible, no toggle behavior
191
+ * - `'over'` (default) - overlays content (absolute positioned)
192
+ * - `'push'` - pushes content aside (content gets margin)
193
+ * - `'side'` - always visible, no toggle behavior
139
194
  */
140
195
  readonly mode: _angular_core.InputSignal<DrawerMode>;
141
196
  /** Whether clicking outside the panel closes the drawer. */
@@ -158,6 +213,17 @@ declare class CngxDrawerPanel {
158
213
  * Page content
159
214
  * </main>
160
215
  * ```
216
+ *
217
+ * @category common/layout
218
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/drawer/drawer-content.directive.ts
219
+ * @since 0.1.0
220
+ * @relatedTo CngxDrawer, CngxDrawerPanel
221
+ * <example-url>http://localhost:4200/#/common/layout/drawer/basic-scroll-lock-backdrop</example-url>
222
+ * <example-url>http://localhost:4200/#/common/layout/drawer/controlled-mode</example-url>
223
+ * <example-url>http://localhost:4200/#/common/layout/drawer/direction-all-four-sides</example-url>
224
+ * <example-url>http://localhost:4200/#/common/layout/drawer/events-openedchange-closed</example-url>
225
+ * <example-url>http://localhost:4200/#/common/layout/drawer/mode-over-push-side</example-url>
226
+ * <example-url>http://localhost:4200/#/common/layout/drawer/pattern-consumer-wiring</example-url>
161
227
  */
162
228
  declare class CngxDrawerContent {
163
229
  /** Reference to the parent `CngxDrawer` state owner. */
@@ -201,6 +267,13 @@ declare class CngxDrawerContent {
201
267
  * Observed within a scrollable parent
202
268
  * </div>
203
269
  * ```
270
+ *
271
+ * @category common/layout
272
+ * @docsKind primary
273
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/observers/intersection-observer.directive.ts
274
+ * @since 0.1.0
275
+ * @relatedTo CngxResizeObserver, CngxMediaQuery, CngxInfiniteScroll, CngxScrollSpy
276
+ * <example-url>http://localhost:4200/#/common/layout/intersection-observer/scroll-sentinel</example-url>
204
277
  */
205
278
  declare class CngxIntersectionObserver {
206
279
  /** CSS selector for the scroll container root. `null` (default) uses the viewport. */
@@ -250,6 +323,13 @@ declare class CngxIntersectionObserver {
250
323
  * @if (dark.matches()) { <span>Dark mode active</span> }
251
324
  * </div>
252
325
  * ```
326
+ *
327
+ * @category common/layout
328
+ * @docsKind primary
329
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/observers/media-query.directive.ts
330
+ * @since 0.1.0
331
+ * @relatedTo CngxResizeObserver, CngxIntersectionObserver
332
+ * <example-url>http://localhost:4200/#/common/layout/media-query/viewport-breakpoints</example-url>
253
333
  */
254
334
  declare class CngxMediaQuery {
255
335
  /** The CSS media query string to evaluate. */
@@ -286,6 +366,13 @@ declare class CngxMediaQuery {
286
366
  * readonly ro = viewChild(CngxResizeObserver);
287
367
  * readonly columns = computed(() => (this.ro()?.width() ?? 0) > 600 ? 3 : 1);
288
368
  * ```
369
+ *
370
+ * @category common/layout
371
+ * @docsKind primary
372
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/observers/resize-observer.directive.ts
373
+ * @since 0.1.0
374
+ * @relatedTo CngxIntersectionObserver, CngxMediaQuery
375
+ * <example-url>http://localhost:4200/#/common/layout/resize-observer/live-size</example-url>
289
376
  */
290
377
  declare class CngxResizeObserver {
291
378
  /** Which box model to observe. `'content-box'` (default), `'border-box'`, or `'device-pixel-content-box'`. */
@@ -314,7 +401,7 @@ declare class CngxResizeObserver {
314
401
  * prevent layout shift when the scrollbar disappears. Restores original
315
402
  * values when all lock instances are released.
316
403
  *
317
- * Multiple instances are ref-counted — the original styles are only
404
+ * Multiple instances are ref-counted - the original styles are only
318
405
  * restored when the last lock is released.
319
406
  *
320
407
  * ### With a drawer
@@ -328,6 +415,13 @@ declare class CngxResizeObserver {
328
415
  * ```html
329
416
  * <div [cngxScrollLock]="isModalOpen()">…</div>
330
417
  * ```
418
+ *
419
+ * @category common/layout
420
+ * @docsKind primary
421
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/scroll/scroll-lock.directive.ts
422
+ * @since 0.1.0
423
+ * @relatedTo CngxDrawer, CngxBackdrop
424
+ * <example-url>http://localhost:4200/#/common/layout/scroll-lock/toggle</example-url>
331
425
  */
332
426
  declare class CngxScrollLock {
333
427
  /** Whether scroll lock is active. */
@@ -376,13 +470,22 @@ declare class CngxScrollLock {
376
470
  * }
377
471
  * </div>
378
472
  * ```
473
+ *
474
+ * @category common/layout
475
+ * @docsKind primary
476
+ * @wcag AA
477
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/text/skeleton.directive.ts
478
+ * @since 0.1.0
479
+ * @relatedTo CngxTruncate, CngxExpandableText, CngxHighlight
480
+ * <example-url>http://localhost:4200/#/common/layout/skeleton/basic-skeleton</example-url>
481
+ * <example-url>http://localhost:4200/#/common/layout/skeleton/skeleton-container</example-url>
379
482
  */
380
483
  declare class CngxSkeleton {
381
484
  /** Controls the loading state. */
382
485
  readonly skeleton: _angular_core.InputSignal<boolean>;
383
486
  /** Enables the `.cngx-skeleton--shimmer` class (respects `prefers-reduced-motion`). */
384
487
  readonly shimmer: _angular_core.InputSignal<boolean>;
385
- /** Repeat count — exposed via the `indices()` signal for `@for` rendering. */
488
+ /** Repeat count - exposed via the `indices()` signal for `@for` rendering. */
386
489
  readonly count: _angular_core.InputSignal<number>;
387
490
  private readonly prefersReducedMotion;
388
491
  constructor();
@@ -390,7 +493,7 @@ declare class CngxSkeleton {
390
493
  readonly loading: Signal<boolean>;
391
494
  /** Array of indices for `@for` rendering of repeated skeleton elements. */
392
495
  readonly indices: Signal<number[]>;
393
- /** @internal — shimmer class condition. */
496
+ /** @internal - shimmer class condition. */
394
497
  protected readonly showShimmer: Signal<boolean>;
395
498
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSkeleton, never>;
396
499
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxSkeleton, "[cngxSkeleton]", ["cngxSkeleton"], { "skeleton": { "alias": "cngxSkeleton"; "required": false; "isSignal": true; }; "shimmer": { "alias": "shimmer"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -438,6 +541,14 @@ declare class CngxSkeleton {
438
541
  * (loadMore)="loadMore()">
439
542
  * </div>
440
543
  * ```
544
+ *
545
+ * @category common/layout
546
+ * @docsKind primary
547
+ * @wcag AA
548
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/scroll/infinite-scroll.directive.ts
549
+ * @since 0.1.0
550
+ * @relatedTo CngxIntersectionObserver, CngxScrollSpy, CngxStickyHeader
551
+ * <example-url>http://localhost:4200/#/common/layout/infinite-scroll/scrollable-list</example-url>
441
552
  */
442
553
  declare class CngxInfiniteScroll {
443
554
  /** IntersectionObserver threshold (0–1). */
@@ -484,9 +595,17 @@ declare class CngxInfiniteScroll {
484
595
  * ```css
485
596
  * .cngx-sticky--active { box-shadow: 0 2px 4px rgba(0,0,0,.1); }
486
597
  * ```
598
+ *
599
+ * @category common/layout
600
+ * @docsKind primary
601
+ * @wcag AA
602
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/scroll/sticky-header.directive.ts
603
+ * @since 0.1.0
604
+ * @relatedTo CngxScrollSpy, CngxIntersectionObserver
605
+ * <example-url>http://localhost:4200/#/common/layout/sticky-header/sticky-header-with-shadow</example-url>
487
606
  */
488
607
  declare class CngxStickyHeader {
489
- /** Intersection threshold — `0` triggers as soon as the sentinel leaves. */
608
+ /** Intersection threshold - `0` triggers as soon as the sentinel leaves. */
490
609
  readonly threshold: _angular_core.InputSignal<number>;
491
610
  /** Emitted when the sticky state changes. */
492
611
  readonly stickyChange: _angular_core.OutputEmitterRef<boolean>;
@@ -520,6 +639,14 @@ declare class CngxStickyHeader {
520
639
  * <section id="features">…</section>
521
640
  * <section id="pricing">…</section>
522
641
  * ```
642
+ *
643
+ * @category common/layout
644
+ * @docsKind primary
645
+ * @wcag AA
646
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/scroll/scroll-spy.directive.ts
647
+ * @since 0.1.0
648
+ * @relatedTo CngxIntersectionObserver, CngxStickyHeader, CngxInfiniteScroll
649
+ * <example-url>http://localhost:4200/#/common/layout/scroll-spy/scroll-based-navigation</example-url>
523
650
  */
524
651
  declare class CngxScrollSpy {
525
652
  /** IDs of the sections to observe. */
@@ -565,9 +692,17 @@ declare class CngxScrollSpy {
565
692
  * <button (click)="expanded.set(!expanded())"
566
693
  * [attr.aria-expanded]="expanded()">
567
694
  * {{ expanded() ? 'Show less' : 'Show more' }}
568
- * </button>
569
- * }
695
+ * </button> * }
570
696
  * ```
697
+ *
698
+ * @category common/layout
699
+ * @docsKind primary
700
+ * @wcag AA
701
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/text/truncate.directive.ts
702
+ * @since 0.1.0
703
+ * @relatedTo CngxExpandableText, CngxExpandableToggle, CngxHighlight
704
+ * <example-url>http://localhost:4200/#/common/layout/truncate/short-text-no-toggle</example-url>
705
+ * <example-url>http://localhost:4200/#/common/layout/truncate/truncated-text-with-toggle</example-url>
571
706
  */
572
707
  declare class CngxTruncate {
573
708
  /** Maximum number of visible lines when collapsed. */
@@ -592,7 +727,7 @@ declare class CngxTruncate {
592
727
  private cancelRaf;
593
728
  /**
594
729
  * Compares `scrollHeight` vs `clientHeight` to detect overflow.
595
- * Only meaningful when collapsed — when expanded, the last known
730
+ * Only meaningful when collapsed - when expanded, the last known
596
731
  * clamped state is preserved (can't measure hypothetical clamp height
597
732
  * while showing full content).
598
733
  */
@@ -605,7 +740,7 @@ declare class CngxTruncate {
605
740
  * Search-text highlighting via `<mark>` elements.
606
741
  *
607
742
  * Walks `TEXT_NODE` children of the host element, splits at match boundaries,
608
- * and wraps matched portions in `<mark>` elements. No `innerHTML` — safe by
743
+ * and wraps matched portions in `<mark>` elements. No `innerHTML` - safe by
609
744
  * construction. The `<mark>` element has correct native SR semantics (announced
610
745
  * as "highlighted" in most screen readers).
611
746
  *
@@ -624,6 +759,15 @@ declare class CngxTruncate {
624
759
  * CamelCase matters here.
625
760
  * </p>
626
761
  * ```
762
+ *
763
+ * @category common/layout
764
+ * @docsKind primary
765
+ * @wcag AA
766
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/text/highlight.directive.ts
767
+ * @since 0.1.0
768
+ * @relatedTo CngxTruncate, CngxExpandableText
769
+ * <example-url>http://localhost:4200/#/common/layout/highlight/live-search-highlighting</example-url>
770
+ * <example-url>http://localhost:4200/#/common/layout/highlight/multiple-paragraphs</example-url>
627
771
  */
628
772
  declare class CngxHighlight {
629
773
  /** The search term to highlight. Empty string clears all highlights. */
@@ -635,7 +779,7 @@ declare class CngxHighlight {
635
779
  readonly matchCount: _angular_core.Signal<number>;
636
780
  private readonly el;
637
781
  private readonly doc;
638
- /** Snapshot of original child nodes — restored before each re-highlight. */
782
+ /** Snapshot of original child nodes - restored before each re-highlight. */
639
783
  private originalNodes;
640
784
  private readonly initialized;
641
785
  constructor();
@@ -653,7 +797,11 @@ declare class CngxHighlight {
653
797
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxHighlight, "[cngxHighlight]", ["cngxHighlight"], { "term": { "alias": "cngxHighlight"; "required": false; "isSignal": true; }; "caseSensitive": { "alias": "highlightCaseSensitive"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
654
798
  }
655
799
 
656
- /** Template context for the custom toggle template. */
800
+ /**
801
+ * Template context for the custom toggle template.
802
+ *
803
+ * @category common/layout
804
+ */
657
805
  interface CngxExpandableToggleContext {
658
806
  /** Whether the text is currently expanded. */
659
807
  $implicit: boolean;
@@ -675,6 +823,11 @@ interface CngxExpandableToggleContext {
675
823
  * </ng-template>
676
824
  * </cngx-expandable-text>
677
825
  * ```
826
+ *
827
+ * @category common/layout
828
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/text/expandable-text.ts
829
+ * @since 0.1.0
830
+ * @relatedTo CngxExpandableText, CngxTruncate
678
831
  */
679
832
  declare class CngxExpandableToggle {
680
833
  readonly templateRef: TemplateRef<CngxExpandableToggleContext>;
@@ -689,7 +842,7 @@ declare class CngxExpandableToggle {
689
842
  * a "Show more" / "Show less" button when the content is actually clamped.
690
843
  * Handles `aria-expanded` automatically.
691
844
  *
692
- * Supports custom toggle templates via `ng-template[cngxExpandableToggle]` —
845
+ * Supports custom toggle templates via `ng-template[cngxExpandableToggle]` -
693
846
  * use for icon buttons or any custom UI instead of plain text labels.
694
847
  *
695
848
  * ### Basic usage
@@ -715,6 +868,16 @@ declare class CngxExpandableToggle {
715
868
  * </ng-template>
716
869
  * </cngx-expandable-text>
717
870
  * ```
871
+ *
872
+ * @category common/layout
873
+ * @docsKind primary
874
+ * @wcag AA
875
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/layout/text/expandable-text.ts
876
+ * @since 0.1.0
877
+ * @relatedTo CngxTruncate, CngxExpandableToggle, CngxHighlight
878
+ * <example-url>http://localhost:4200/#/common/layout/expandable-text/auto-toggle</example-url>
879
+ * <example-url>http://localhost:4200/#/common/layout/expandable-text/custom-labels</example-url>
880
+ * <example-url>http://localhost:4200/#/common/layout/expandable-text/custom-toggle-template</example-url>
718
881
  */
719
882
  declare class CngxExpandableText {
720
883
  /** Maximum visible lines when collapsed. */