@cngx/ui 0.1.0-rc.9 → 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 (106) 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 +4 -3
  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 +44 -66
  12. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  13. package/fesm2022/cngx-ui-action-button.mjs +213 -335
  14. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  15. package/fesm2022/cngx-ui-breadcrumb.mjs +60 -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 -44
  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 +78 -83
  24. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
  25. package/fesm2022/cngx-ui-data-grid-accordion.mjs +52 -74
  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 +589 -467
  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 +3 -5
  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 +71 -68
  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 +149 -171
  46. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  47. package/fesm2022/cngx-ui-sidenav.mjs +858 -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 +207 -90
  56. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  57. package/fesm2022/cngx-ui-tabs.mjs +71 -32
  58. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  59. package/fesm2022/cngx-ui-timeline.mjs +21 -27
  60. package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
  61. package/fesm2022/cngx-ui-toc.mjs +27 -40
  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 +28 -14
  66. package/mat-tabs/styles/mat-tabs.css +233 -258
  67. package/nav-rail/README.md +325 -0
  68. package/package.json +10 -5
  69. package/paginator/README.md +10 -0
  70. package/schematics/ng-add/index.js +7 -7
  71. package/schematics/ng-add/schema.json +5 -0
  72. package/sidenav/README.md +150 -55
  73. package/skeleton/README.md +1 -1
  74. package/speak/README.md +1 -2
  75. package/stepper/README.md +20 -5
  76. package/tabs/README.md +13 -0
  77. package/timeline/README.md +1 -1
  78. package/toc/README.md +1 -1
  79. package/types/cngx-ui-a11y.d.ts +20 -38
  80. package/types/cngx-ui-accordion.d.ts +45 -77
  81. package/types/cngx-ui-action-button.d.ts +113 -151
  82. package/types/cngx-ui-breadcrumb.d.ts +58 -94
  83. package/types/cngx-ui-chart-panel.d.ts +22 -40
  84. package/types/cngx-ui-collection.d.ts +30 -53
  85. package/types/cngx-ui-command-palette.d.ts +40 -64
  86. package/types/cngx-ui-context-menu.d.ts +67 -44
  87. package/types/cngx-ui-data-grid-accordion.d.ts +49 -77
  88. package/types/cngx-ui-empty-state.d.ts +18 -8
  89. package/types/cngx-ui-feedback.d.ts +264 -289
  90. package/types/cngx-ui-layout.d.ts +4 -12
  91. package/types/cngx-ui-mat-accordion.d.ts +2 -3
  92. package/types/cngx-ui-mat-paginator.d.ts +4 -10
  93. package/types/cngx-ui-mat-stepper.d.ts +5 -10
  94. package/types/cngx-ui-mat-tabs.d.ts +43 -69
  95. package/types/cngx-ui-nav-rail.d.ts +416 -0
  96. package/types/cngx-ui-overlay.d.ts +4 -13
  97. package/types/cngx-ui-paginator.d.ts +164 -154
  98. package/types/cngx-ui-sidenav.d.ts +557 -437
  99. package/types/cngx-ui-skeleton.d.ts +7 -13
  100. package/types/cngx-ui-speak.d.ts +40 -24
  101. package/types/cngx-ui-stat-card.d.ts +45 -36
  102. package/types/cngx-ui-stepper.d.ts +183 -62
  103. package/types/cngx-ui-tabs.d.ts +101 -27
  104. package/types/cngx-ui-timeline.d.ts +20 -48
  105. package/types/cngx-ui-toc.d.ts +30 -51
  106. package/types/cngx-ui.d.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { TemplateRef, InjectionToken, Signal } from '@angular/core';
3
3
  import * as i1$1 from '@cngx/common/interactive';
4
- import { CngxContextMenuTriggerPopoverRef, CngxMenuHost, CngxMenu, CngxMenuSubmenuWiring, CngxMenuItemIcon, CngxMenuSubmenuPopoverRef } from '@cngx/common/interactive';
4
+ import { CngxContextMenuTriggerPopoverRef, CngxMenuHost, CngxMenu, CngxMenuSubmenuWiring, CngxMenuItemIcon, CngxMenuSubmenuPopoverRef, CngxMenuItemCheckbox, CngxMenuItemRadio } from '@cngx/common/interactive';
5
5
  import * as i1 from '@cngx/common/popover';
6
6
  import { CngxPopover } from '@cngx/common/popover';
7
7
 
@@ -9,8 +9,6 @@ import { CngxPopover } from '@cngx/common/popover';
9
9
  * Context handed to a `*cngxContextMenuContent` template. `$implicit` is the
10
10
  * per-open datum the trigger resolved for the target the menu opened over
11
11
  * (`null` while the menu is closed). Read it with `let-row`.
12
- *
13
- * @category ui/context-menu
14
12
  */
15
13
  interface CngxContextMenuContentContext<T = unknown> {
16
14
  /** The per-open datum, or `null` while the menu is closed. Usable as `let-row`. */
@@ -30,12 +28,11 @@ interface CngxContextMenuContentContext<T = unknown> {
30
28
  * </cngx-context-menu>
31
29
  * ```
32
30
  *
33
- * <example-url>http://localhost:4200/#/ui/context-menu/grid/delegated-resolver</example-url>
34
- * <example-url>http://localhost:4200/#/ui/context-menu/table/row-context-data</example-url>
35
- * @category ui/context-menu
31
+ * <example-url>/#/ui/context-menu/grid/delegated-resolver</example-url>
32
+ * <example-url>/#/ui/context-menu/table/row-context-data</example-url>
36
33
  * @wcag AA
37
34
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-content.directive.ts
38
- * @since 0.1.0
35
+ * @since 0.3.0
39
36
  * @relatedTo CngxContextMenu, CngxContextMenuFor
40
37
  */
41
38
  declare class CngxContextMenuContent<T = unknown> {
@@ -53,8 +50,6 @@ declare class CngxContextMenuContent<T = unknown> {
53
50
  * `CngxContextMenu` class so an ejected panel skin (decompose) or a future
54
51
  * second panel can satisfy the same seam - the `CngxMenuHost` precedent
55
52
  * (`CNGX_MENU_HOST`) applied to the panel surface.
56
- *
57
- * @category ui/context-menu
58
53
  */
59
54
  interface CngxContextMenuPanel<T = unknown> {
60
55
  /** Popover surface the trigger drives at pointer coordinates. */
@@ -199,17 +194,16 @@ declare const CNGX_CONTEXT_MENU_PANEL: InjectionToken<CngxContextMenuPanel<unkno
199
194
  * </cngx-context-menu>
200
195
  * ```
201
196
  *
202
- * <example-url>http://localhost:4200/#/ui/context-menu/basic/static-items</example-url>
203
- * <example-url>http://localhost:4200/#/ui/context-menu/grid/delegated-resolver</example-url>
204
- * <example-url>http://localhost:4200/#/ui/context-menu/submenu/nested-export-menu</example-url>
205
- * <example-url>http://localhost:4200/#/ui/context-menu/selection/checkbox-radio-items</example-url>
206
- * @category ui/context-menu
207
- * @docsKind primary
197
+ * <example-url>/#/ui/context-menu/basic/static-items</example-url>
198
+ * <example-url>/#/ui/context-menu/grid/delegated-resolver</example-url>
199
+ * <example-url>/#/ui/context-menu/submenu/nested-export-menu</example-url>
200
+ * <example-url>/#/ui/context-menu/selection/checkbox-radio-items</example-url>
208
201
  * @wcag AA
209
202
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu.component.ts
210
- * @since 0.1.0
203
+ * @since 0.3.0
211
204
  * @relatedTo CngxContextMenuFor, CngxContextMenuItem, CngxContextMenuContent, CngxMenu, CngxPopover
212
205
  * @slot cngxContextMenuContent Replaces the projected items with lazy content rendered only while the menu is open; gets the trigger's per-open datum as $implicit (let-row).
206
+ * @axis level organism
213
207
  */
214
208
  declare class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {
215
209
  /** The popover surface this panel drives. Consumed by the trigger core. */
@@ -299,7 +293,7 @@ declare class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {
299
293
  private routeUp;
300
294
  protected handleKeydown(event: KeyboardEvent): void;
301
295
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxContextMenu<any>, never>;
302
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxContextMenu<any>, "cngx-context-menu", ["cngxContextMenu"], {}, {}, ["contentTemplate"], ["*"], true, [{ directive: typeof i1.CngxPopover; inputs: { "offset": "offset"; "closeOnEscape": "closeOnEscape"; }; outputs: {}; }, { directive: typeof i1$1.CngxMenu; inputs: { "label": "ariaLabel"; }; outputs: {}; }]>;
296
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxContextMenu<any>, "cngx-context-menu", ["cngxContextMenu"], {}, {}, ["contentTemplate"], ["*"], true, [{ directive: typeof i1.CngxPopover; inputs: { "offset": "offset"; "closeOnEscape": "closeOnEscape"; }; outputs: { "opened": "opened"; "closed": "closed"; }; }, { directive: typeof i1$1.CngxMenu; inputs: { "label": "ariaLabel"; }; outputs: {}; }]>;
303
297
  }
304
298
 
305
299
  /**
@@ -334,12 +328,11 @@ declare class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {
334
328
  * <cngx-context-menu #menu ariaLabel="Row actions">…</cngx-context-menu>
335
329
  * ```
336
330
  *
337
- * <example-url>http://localhost:4200/#/ui/context-menu/grid/delegated-resolver</example-url>
338
- * <example-url>http://localhost:4200/#/ui/context-menu/basic/static-items</example-url>
339
- * @category ui/context-menu
331
+ * <example-url>/#/ui/context-menu/grid/delegated-resolver</example-url>
332
+ * <example-url>/#/ui/context-menu/basic/static-items</example-url>
340
333
  * @wcag AA
341
334
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-for.directive.ts
342
- * @since 0.1.0
335
+ * @since 0.3.0
343
336
  * @relatedTo CngxContextMenu, CngxContextMenuItem, CngxContextMenuTrigger
344
337
  */
345
338
  declare class CngxContextMenuFor<T = unknown> {
@@ -426,13 +419,12 @@ declare class CngxContextMenuFor<T = unknown> {
426
419
  * </cngx-context-menu>
427
420
  * ```
428
421
  *
429
- * <example-url>http://localhost:4200/#/ui/context-menu/basic/static-items</example-url>
430
- * <example-url>http://localhost:4200/#/ui/context-menu/submenu/nested-export-menu</example-url>
431
- * <example-url>http://localhost:4200/#/ui/context-menu/attribute-form/native-buttons</example-url>
432
- * @category ui/context-menu
422
+ * <example-url>/#/ui/context-menu/basic/static-items</example-url>
423
+ * <example-url>/#/ui/context-menu/submenu/nested-export-menu</example-url>
424
+ * <example-url>/#/ui/context-menu/attribute-form/native-buttons</example-url>
433
425
  * @wcag AA
434
426
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item.component.ts
435
- * @since 0.1.0
427
+ * @since 0.3.0
436
428
  * @relatedTo CngxContextMenu, CngxContextMenuDivider, CngxMenuItem, CngxMenuItemSubmenu
437
429
  */
438
430
  declare class CngxContextMenuItem implements CngxMenuSubmenuWiring {
@@ -459,9 +451,21 @@ declare class CngxContextMenuItem implements CngxMenuSubmenuWiring {
459
451
  /** Fires when this item is activated by click or Enter/Space. */
460
452
  readonly select: _angular_core.OutputEmitterRef<void>;
461
453
  /** @internal Decorative caret rendered while `submenu` is set. RTL flip is
462
- * a CSS concern (`.cngx-menu-item__suffix` under `[dir='rtl']`), not a
454
+ * a CSS concern (`.cngx-menu-item__suffix` under `:dir(rtl)`), not a
463
455
  * swapped glyph. */
464
- protected readonly caret: "▸";
456
+ protected readonly caretIcon: {
457
+ readonly viewBox: "0 0 24 24";
458
+ readonly d: "M9 6l6 6-6 6";
459
+ readonly paint: "stroke";
460
+ readonly micro: {
461
+ readonly viewBox: "0 0 12 12";
462
+ readonly d: "M5 3L8 6L5 9L4 8L6 6L4 4Z";
463
+ };
464
+ readonly small: {
465
+ readonly viewBox: "0 0 16 16";
466
+ readonly d: "M7 4L11 8L7 12L5 11L8 8L5 5Z";
467
+ };
468
+ };
465
469
  private readonly parentPanel;
466
470
  /**
467
471
  * Facade the submenu brain drives instead of a `[cngxMenuItemSubmenu]`
@@ -495,12 +499,11 @@ declare class CngxContextMenuItem implements CngxMenuSubmenuWiring {
495
499
  * <hr cngxContextMenuDivider />
496
500
  * ```
497
501
  *
498
- * <example-url>http://localhost:4200/#/ui/context-menu/basic/static-items</example-url>
499
- * <example-url>http://localhost:4200/#/ui/context-menu/attribute-form/native-buttons</example-url>
500
- * @category ui/context-menu
502
+ * <example-url>/#/ui/context-menu/basic/static-items</example-url>
503
+ * <example-url>/#/ui/context-menu/attribute-form/native-buttons</example-url>
501
504
  * @wcag AA
502
505
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-divider.component.ts
503
- * @since 0.1.0
506
+ * @since 0.3.0
504
507
  * @relatedTo CngxContextMenu, CngxContextMenuItem, CngxMenuSeparator
505
508
  */
506
509
  declare class CngxContextMenuDivider {
@@ -519,11 +522,10 @@ declare class CngxContextMenuDivider {
519
522
  * <cngx-context-menu-item-checkbox [(checked)]="wrap">Word wrap</cngx-context-menu-item-checkbox>
520
523
  * ```
521
524
  *
522
- * <example-url>http://localhost:4200/#/ui/context-menu/selection/checkbox-radio-items</example-url>
523
- * @category ui/context-menu
525
+ * <example-url>/#/ui/context-menu/selection/checkbox-radio-items</example-url>
524
526
  * @wcag AA
525
527
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item-checkbox.component.ts
526
- * @since 0.1.0
528
+ * @since 0.3.0
527
529
  * @relatedTo CngxContextMenu, CngxContextMenuItem, CngxContextMenuItemRadio, CngxMenuItemCheckbox
528
530
  */
529
531
  declare class CngxContextMenuItemCheckbox {
@@ -542,9 +544,20 @@ declare class CngxContextMenuItemCheckbox {
542
544
  * string `[icon]` shorthand off so the projected icon is the only one drawn.
543
545
  */
544
546
  protected readonly projectedIcon: _angular_core.Signal<CngxMenuItemIcon | undefined>;
545
- /** @internal Seeds the CSS `content` of the default checked indicator from
546
- * the shared glyph const (CSS-string quoted for `content:`). */
547
- protected readonly checkGlyph: string;
547
+ /** @internal The brain host directive; its `checked()` gates the indicator. */
548
+ protected readonly brain: CngxMenuItemCheckbox<any>;
549
+ /** @internal Leading checked indicator, drawn in an always-present gutter so
550
+ * the label does not shift when the item is checked or unchecked. */
551
+ protected readonly checkIcon: {
552
+ readonly viewBox: "0 0 24 24";
553
+ readonly d: "M5 12.5l4.5 4.5L19 7";
554
+ readonly paint: "stroke";
555
+ readonly micro: {
556
+ readonly viewBox: "0 0 12 12";
557
+ readonly d: "M1 6L2 5L5 8L10 3L11 4L5 10Z";
558
+ };
559
+ readonly small: null;
560
+ };
548
561
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxContextMenuItemCheckbox, never>;
549
562
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxContextMenuItemCheckbox, "cngx-context-menu-item-checkbox, button[cngxContextMenuItemCheckbox]", ["cngxContextMenuItemCheckbox"], { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "kbd": { "alias": "kbd"; "required": false; "isSignal": true; }; }, {}, ["projectedIcon"], ["[cngxMenuItemIcon]", "*"], true, [{ directive: typeof i1$1.CngxMenuItemCheckbox; inputs: { "disabled": "disabled"; "value": "value"; "checked": "checked"; "label": "label"; }; outputs: { "checkedChange": "checkedChange"; }; }]>;
550
563
  }
@@ -563,11 +576,10 @@ declare class CngxContextMenuItemCheckbox {
563
576
  * </div>
564
577
  * ```
565
578
  *
566
- * <example-url>http://localhost:4200/#/ui/context-menu/selection/checkbox-radio-items</example-url>
567
- * @category ui/context-menu
579
+ * <example-url>/#/ui/context-menu/selection/checkbox-radio-items</example-url>
568
580
  * @wcag AA
569
581
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item-radio.component.ts
570
- * @since 0.1.0
582
+ * @since 0.3.0
571
583
  * @relatedTo CngxContextMenu, CngxContextMenuItem, CngxContextMenuItemCheckbox, CngxMenuItemRadio, CngxMenuGroup
572
584
  */
573
585
  declare class CngxContextMenuItemRadio {
@@ -586,9 +598,20 @@ declare class CngxContextMenuItemRadio {
586
598
  * string `[icon]` shorthand off so the projected icon is the only one drawn.
587
599
  */
588
600
  protected readonly projectedIcon: _angular_core.Signal<CngxMenuItemIcon | undefined>;
589
- /** @internal Seeds the CSS `content` of the default checked indicator from
590
- * the shared glyph const (CSS-string quoted for `content:`). */
591
- protected readonly checkGlyph: string;
601
+ /** @internal The brain host directive; its `checked()` gates the indicator. */
602
+ protected readonly brain: CngxMenuItemRadio<any>;
603
+ /** @internal Leading checked indicator, drawn in an always-present gutter so
604
+ * the label does not shift when the item is checked or unchecked. */
605
+ protected readonly checkIcon: {
606
+ readonly viewBox: "0 0 24 24";
607
+ readonly d: "M8 12a4 4 0 1 0 8 0a4 4 0 1 0-8 0z";
608
+ readonly paint: "fill";
609
+ readonly micro: {
610
+ readonly viewBox: "0 0 12 12";
611
+ readonly d: "M4 6A2 2 0 1 1 8 6A2 2 0 1 1 4 6Z";
612
+ };
613
+ readonly small: null;
614
+ };
592
615
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxContextMenuItemRadio, never>;
593
616
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxContextMenuItemRadio, "cngx-context-menu-item-radio, button[cngxContextMenuItemRadio]", ["cngxContextMenuItemRadio"], { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "kbd": { "alias": "kbd"; "required": false; "isSignal": true; }; }, {}, ["projectedIcon"], ["[cngxMenuItemIcon]", "*"], true, [{ directive: typeof i1$1.CngxMenuItemRadio; inputs: { "disabled": "disabled"; "value": "value"; "label": "label"; }; outputs: {}; }]>;
594
617
  }
@@ -23,9 +23,8 @@ import { CngxMessage } from '@cngx/core/i18n';
23
23
  * still carries state only - the consumer's `computed()` derives the visible + ordered
24
24
  * rows.
25
25
  *
26
- * @category ui/data-grid-accordion
27
26
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-accordion.token.ts
28
- * @since 0.1.0
27
+ * @since 0.3.0
29
28
  * @relatedTo CngxDataGridAccordion, CngxDataGridRow, CngxSort, CngxFilter
30
29
  */
31
30
  interface CngxDataGridAccordionContext {
@@ -54,9 +53,8 @@ interface CngxDataGridAccordionContext {
54
53
  * {@link CngxDataGridAccordion} provides it via `useExisting`; each
55
54
  * {@link CngxDataGridRow} injects it.
56
55
  *
57
- * @category ui/data-grid-accordion
58
56
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-accordion.token.ts
59
- * @since 0.1.0
57
+ * @since 0.3.0
60
58
  * @relatedTo CngxDataGridAccordion, CngxDataGridRow
61
59
  */
62
60
  declare const CNGX_DATA_GRID_ACCORDION: InjectionToken<CngxDataGridAccordionContext>;
@@ -73,8 +71,7 @@ declare const CNGX_DATA_GRID_ACCORDION: InjectionToken<CngxDataGridAccordionCont
73
71
  * primary-tinted open row + sub-table detail; `'report'` frameless double rules;
74
72
  * `'density'` compact/standard/spacious token hooks.
75
73
  *
76
- * @category ui/data-grid-accordion
77
- * @since 0.1.0
74
+ * @since 0.3.0
78
75
  */
79
76
  type CngxDataGridSkin = 'ledger' | 'spreadsheet' | 'log-stream' | 'master-detail' | 'report' | 'density';
80
77
  /**
@@ -89,8 +86,7 @@ type CngxDataGridSkin = 'ledger' | 'spreadsheet' | 'log-stream' | 'master-detail
89
86
  * entry. The duplication is a tracked decision, re-evaluated if a shared severity
90
87
  * union lands in `@cngx/core`.
91
88
  *
92
- * @category ui/data-grid-accordion
93
- * @since 0.1.0
89
+ * @since 0.3.0
94
90
  */
95
91
  type CngxDataGridSeverity = 'error' | 'warning' | 'info';
96
92
  /**
@@ -108,8 +104,7 @@ type CngxDataGridSeverity = 'error' | 'warning' | 'info';
108
104
  * has no app-wide default. Skin is the only surface with a plausible app-wide
109
105
  * default, mirroring {@link withAccordionSkin}.
110
106
  *
111
- * @category ui/data-grid-accordion
112
- * @since 0.1.0
107
+ * @since 0.3.0
113
108
  */
114
109
  interface CngxDataGridAccordionConfig {
115
110
  /**
@@ -133,8 +128,7 @@ interface CngxDataGridAccordionConfig {
133
128
  * count, a row's load error) read it untracked and speak the new language with
134
129
  * their next change.
135
130
  *
136
- * @category ui/data-grid-accordion
137
- * @since 0.1.0
131
+ * @since 0.3.0
138
132
  */
139
133
  interface CngxDataGridAccordionLabels {
140
134
  /** Text of the `CngxDgaCount` live region for a visible-row count. */
@@ -252,24 +246,23 @@ interface CngxDataGridAccordionLabels {
252
246
  * </cngx-data-grid-accordion>
253
247
  * ```
254
248
  *
255
- * @category ui/data-grid-accordion
256
- * @docsKind primary
257
249
  * @wcag AA
258
250
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-accordion.component.ts
259
- * @since 0.1.0
251
+ * @since 0.3.0
260
252
  * @relatedTo CngxDataGridRow, CngxDgCell, CngxDataGridHeader, CngxDataGridFooter, CngxAccordion, CngxSort, CngxFilter, CngxDgaSortHeader, CngxDgaFilter, CngxDgaCount, CngxScrollEdges
261
253
  *
262
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>
263
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sticky-head</example-url>
264
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/scroll-edges-bounded</example-url>
265
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/scroll-edges-narrow</example-url>
266
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/bound-sort-filter</example-url>
267
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/master-detail</example-url>
268
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/spreadsheet</example-url>
269
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/density</example-url>
270
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/ledger</example-url>
271
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/log-stream</example-url>
272
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/report</example-url>
254
+ * <example-url>/#/ui/data-grid-accordion/sortable-ledger</example-url>
255
+ * <example-url>/#/ui/data-grid-accordion/sticky-head</example-url>
256
+ * <example-url>/#/ui/data-grid-accordion/scroll-edges-bounded</example-url>
257
+ * <example-url>/#/ui/data-grid-accordion/scroll-edges-narrow</example-url>
258
+ * <example-url>/#/ui/data-grid-accordion/bound-sort-filter</example-url>
259
+ * <example-url>/#/ui/data-grid-accordion/master-detail</example-url>
260
+ * <example-url>/#/ui/data-grid-accordion/spreadsheet</example-url>
261
+ * <example-url>/#/ui/data-grid-accordion/density</example-url>
262
+ * <example-url>/#/ui/data-grid-accordion/ledger</example-url>
263
+ * <example-url>/#/ui/data-grid-accordion/log-stream</example-url>
264
+ * <example-url>/#/ui/data-grid-accordion/report</example-url>
265
+ * @axis level organism
273
266
  */
274
267
  declare class CngxDataGridAccordion implements CngxDataGridAccordionContext {
275
268
  private readonly config;
@@ -421,10 +414,9 @@ type CngxDgCellTrack = 'grow' | 'fit' | 'sm' | 'md' | 'lg';
421
414
  * per row should carry `primary`, so the row's accessible name is that cell's
422
415
  * text alone rather than every cell concatenated.
423
416
  *
424
- * @category ui/data-grid-accordion
425
417
  * @wcag AA
426
418
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-cell.directive.ts
427
- * @since 0.1.0
419
+ * @since 0.3.0
428
420
  * @relatedTo CngxDataGridRow
429
421
  */
430
422
  declare class CngxDgCell {
@@ -471,8 +463,7 @@ declare class CngxDgCell {
471
463
  * rather than imported from the accordion entry, so this entry pulls in nothing
472
464
  * from a sibling `@cngx/ui` entry (data-grid-accordion accepted-debt §1).
473
465
  *
474
- * @category ui/data-grid-accordion
475
- * @since 0.1.0
466
+ * @since 0.3.0
476
467
  */
477
468
  interface CngxDgaRowStateContext {
478
469
  readonly $implicit: AsyncStatus;
@@ -499,10 +490,9 @@ interface CngxDgaRowStateContext {
499
490
  * </cngx-dga-row>
500
491
  * ```
501
492
  *
502
- * @category ui/data-grid-accordion
503
493
  * @wcag AA
504
494
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-row-busy.directive.ts
505
- * @since 0.1.0
495
+ * @since 0.3.0
506
496
  * @relatedTo CngxDataGridRow, CngxDgaRowError
507
497
  */
508
498
  declare class CngxDgaRowBusy {
@@ -532,10 +522,9 @@ declare class CngxDgaRowBusy {
532
522
  * </cngx-dga-row>
533
523
  * ```
534
524
  *
535
- * @category ui/data-grid-accordion
536
525
  * @wcag AA
537
526
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-row-error.directive.ts
538
- * @since 0.1.0
527
+ * @since 0.3.0
539
528
  * @relatedTo CngxDataGridRow, CngxDgaRowBusy
540
529
  */
541
530
  declare class CngxDgaRowError {
@@ -565,18 +554,16 @@ declare class CngxDgaRowError {
565
554
  * a screen reader hears a list of expandable sections rather than a wall of cell
566
555
  * text.
567
556
  *
568
- * @category ui/data-grid-accordion
569
- * @docsKind primary
570
557
  * @wcag AA
571
558
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-row.component.ts
572
- * @since 0.1.0
559
+ * @since 0.3.0
573
560
  * @relatedTo CngxDataGridAccordion, CngxDgCell, CngxAccordionPanel
574
561
  * @slot cngxDgaRowBusy Rendered over the row while its detail loads.
575
562
  * @slot cngxDgaRowError Rendered when the row's detail failed to load.
576
563
  *
577
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/master-detail</example-url>
578
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/report</example-url>
579
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/lazy-row</example-url>
564
+ * <example-url>/#/ui/data-grid-accordion/master-detail</example-url>
565
+ * <example-url>/#/ui/data-grid-accordion/report</example-url>
566
+ * <example-url>/#/ui/data-grid-accordion/lazy-row</example-url>
580
567
  */
581
568
  declare class CngxDataGridRow {
582
569
  protected readonly labels: _angular_core.Signal<_cngx_ui_data_grid_accordion.CngxDataGridAccordionLabels>;
@@ -691,10 +678,9 @@ declare class CngxDataGridRow {
691
678
  * (`grow` / `fit` / `sm` / `md` / `lg`), so the columns are defined where they are
692
679
  * labelled rather than in a separate template string.
693
680
  *
694
- * @category ui/data-grid-accordion
695
681
  * @wcag AA
696
682
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-header.component.ts
697
- * @since 0.1.0
683
+ * @since 0.3.0
698
684
  * @relatedTo CngxDataGridAccordion, CngxDgCell
699
685
  */
700
686
  declare class CngxDataGridHeader {
@@ -747,14 +733,13 @@ declare class CngxDataGridHeader {
747
733
  * </cngx-data-grid-accordion>
748
734
  * ```
749
735
  *
750
- * @category ui/data-grid-accordion
751
736
  * @wcag AA
752
737
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-sort-header.directive.ts
753
- * @since 0.1.0
738
+ * @since 0.3.0
754
739
  * @relatedTo CngxDataGridAccordion, CngxSort, CngxSortHeader, CngxDgCell
755
740
  *
756
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>
757
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/bound-sort-filter</example-url>
741
+ * <example-url>/#/ui/data-grid-accordion/sortable-ledger</example-url>
742
+ * <example-url>/#/ui/data-grid-accordion/bound-sort-filter</example-url>
758
743
  */
759
744
  declare class CngxDgaSortHeader {
760
745
  /** The field key this header cell sorts by. */
@@ -818,7 +803,7 @@ declare class CngxDgaSortHeader {
818
803
  * status node, decorative icons and badges) are left out.
819
804
  */
820
805
  private headerText;
821
- protected handleActivateKey(event: Event): void;
806
+ protected readonly handleActivateKey: (event: Event) => void;
822
807
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDgaSortHeader, never>;
823
808
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxDgaSortHeader, "[cngxDgaSortHeader]", ["cngxDgaSortHeader"], { "field": { "alias": "cngxDgaSortHeader"; "required": true; "isSignal": true; }; "notSortedLabel": { "alias": "cngxDgaSortStatusNotSorted"; "required": false; "isSignal": true; }; "ascendingLabel": { "alias": "cngxDgaSortStatusAscending"; "required": false; "isSignal": true; }; "descendingLabel": { "alias": "cngxDgaSortStatusDescending"; "required": false; "isSignal": true; }; "label": { "alias": "cngxDgaSortLabel"; "required": false; "isSignal": true; }; "ascendingAnnouncement": { "alias": "cngxDgaSortAnnounceAscending"; "required": false; "isSignal": true; }; "descendingAnnouncement": { "alias": "cngxDgaSortAnnounceDescending"; "required": false; "isSignal": true; }; "clearedAnnouncement": { "alias": "cngxDgaSortAnnounceCleared"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
824
809
  }
@@ -846,14 +831,13 @@ declare class CngxDgaSortHeader {
846
831
  * </cngx-data-grid-accordion>
847
832
  * ```
848
833
  *
849
- * @category ui/data-grid-accordion
850
834
  * @wcag AA
851
835
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-filter.directive.ts
852
- * @since 0.1.0
836
+ * @since 0.3.0
853
837
  * @relatedTo CngxDataGridAccordion, CngxFilter, CngxDgaCount
854
838
  *
855
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/bound-sort-filter</example-url>
856
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>
839
+ * <example-url>/#/ui/data-grid-accordion/bound-sort-filter</example-url>
840
+ * <example-url>/#/ui/data-grid-accordion/sortable-ledger</example-url>
857
841
  */
858
842
  declare class CngxDgaFilter {
859
843
  private readonly labels;
@@ -897,13 +881,12 @@ declare class CngxDgaFilter {
897
881
  * </cngx-data-grid-accordion>
898
882
  * ```
899
883
  *
900
- * @category ui/data-grid-accordion
901
884
  * @wcag AA
902
885
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-filter-field.component.ts
903
- * @since 0.1.0
886
+ * @since 0.3.0
904
887
  * @relatedTo CngxDataGridAccordion, CngxDgaFilter, CngxDgaCount
905
888
  *
906
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>
889
+ * <example-url>/#/ui/data-grid-accordion/sortable-ledger</example-url>
907
890
  */
908
891
  declare class CngxDgaFilterField {
909
892
  private readonly labels;
@@ -952,13 +935,12 @@ declare class CngxDgaFilterField {
952
935
  * Binding `cngxDgaCountSingular` / `cngxDgaCountPlural` per instance always composes
953
936
  * through `countWithNoun`.
954
937
  *
955
- * @category ui/data-grid-accordion
956
938
  * @wcag AA
957
939
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-count.directive.ts
958
- * @since 0.1.0
940
+ * @since 0.3.0
959
941
  * @relatedTo CngxDataGridAccordion, CngxDgaFilter
960
942
  *
961
- * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>
943
+ * <example-url>/#/ui/data-grid-accordion/sortable-ledger</example-url>
962
944
  */
963
945
  declare class CngxDgaCount {
964
946
  /** The visible-row count the consumer derived. */
@@ -995,10 +977,9 @@ declare class CngxDgaCount {
995
977
  * component ships no live producer - the region element and its content are the
996
978
  * consumer's, so any state it announces stays owned outside this structural shell.
997
979
  *
998
- * @category ui/data-grid-accordion
999
980
  * @wcag AA
1000
981
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-footer.component.ts
1001
- * @since 0.1.0
982
+ * @since 0.3.0
1002
983
  * @relatedTo CngxDataGridAccordion, CngxDgCell
1003
984
  */
1004
985
  declare class CngxDataGridFooter {
@@ -1020,8 +1001,7 @@ declare class CngxDataGridFooter {
1020
1001
  * provide the token explicitly - `inject(CNGX_DATA_GRID_ACCORDION_CONFIG)` always
1021
1002
  * resolves.
1022
1003
  *
1023
- * @category ui/data-grid-accordion
1024
- * @since 0.1.0
1004
+ * @since 0.3.0
1025
1005
  */
1026
1006
  declare const CNGX_DATA_GRID_ACCORDION_CONFIG: InjectionToken<CngxDataGridAccordionConfig>;
1027
1007
 
@@ -1033,8 +1013,7 @@ declare const CNGX_DATA_GRID_ACCORDION_CONFIG: InjectionToken<CngxDataGridAccord
1033
1013
  * `CngxAccordionConfigFeature` from `@cngx/ui/accordion` so the consumer's mental
1034
1014
  * model is one across feature areas.
1035
1015
  *
1036
- * @category ui/data-grid-accordion
1037
- * @since 0.1.0
1016
+ * @since 0.3.0
1038
1017
  */
1039
1018
  type CngxDataGridAccordionConfigFeature = {
1040
1019
  readonly kind: 'skin';
@@ -1065,8 +1044,7 @@ type CngxDataGridAccordionConfigFeature = {
1065
1044
  * });
1066
1045
  * ```
1067
1046
  *
1068
- * @category ui/data-grid-accordion
1069
- * @since 0.1.0
1047
+ * @since 0.3.0
1070
1048
  */
1071
1049
  declare function provideDataGridAccordionConfig(...features: CngxDataGridAccordionConfigFeature[]): EnvironmentProviders;
1072
1050
  /**
@@ -1087,8 +1065,7 @@ declare function provideDataGridAccordionConfig(...features: CngxDataGridAccordi
1087
1065
  * class Ledger {}
1088
1066
  * ```
1089
1067
  *
1090
- * @category ui/data-grid-accordion
1091
- * @since 0.1.0
1068
+ * @since 0.3.0
1092
1069
  */
1093
1070
  declare function provideDataGridAccordionConfigAt(...features: CngxDataGridAccordionConfigFeature[]): Provider[];
1094
1071
 
@@ -1103,8 +1080,7 @@ declare function provideDataGridAccordionConfigAt(...features: CngxDataGridAccor
1103
1080
  * provideDataGridAccordionConfig(withDataGridSkin('ledger'));
1104
1081
  * ```
1105
1082
  *
1106
- * @category ui/data-grid-accordion
1107
- * @since 0.1.0
1083
+ * @since 0.3.0
1108
1084
  */
1109
1085
  declare function withDataGridSkin(skin: CngxDataGridSkin): CngxDataGridAccordionConfigFeature;
1110
1086
  /**
@@ -1121,8 +1097,7 @@ declare function withDataGridSkin(skin: CngxDataGridSkin): CngxDataGridAccordion
1121
1097
  * );
1122
1098
  * ```
1123
1099
  *
1124
- * @category ui/data-grid-accordion
1125
- * @since 0.1.0
1100
+ * @since 0.3.0
1126
1101
  */
1127
1102
  declare function withDataGridAccordionLabels(labels: Partial<CngxDataGridAccordionLabels> | Signal<Partial<CngxDataGridAccordionLabels>>): CngxDataGridAccordionConfigFeature;
1128
1103
 
@@ -1141,8 +1116,7 @@ declare function withDataGridAccordionLabels(labels: Partial<CngxDataGridAccordi
1141
1116
  * }
1142
1117
  * ```
1143
1118
  *
1144
- * @category ui/data-grid-accordion
1145
- * @since 0.1.0
1119
+ * @since 0.3.0
1146
1120
  */
1147
1121
  declare function injectDataGridAccordionConfig(): CngxDataGridAccordionConfig;
1148
1122
 
@@ -1153,8 +1127,7 @@ declare function injectDataGridAccordionConfig(): CngxDataGridAccordionConfig;
1153
1127
  * `withDataGridAccordionLabels` still wins. Messages use `{name}`
1154
1128
  * placeholders, numbers are formatted for the locale.
1155
1129
  *
1156
- * @category ui/data-grid-accordion/i18n
1157
- * @since 0.1.0
1130
+ * @since 0.3.0
1158
1131
  * @relatedTo CNGX_DATA_GRID_ACCORDION_CONFIG, withDataGridAccordionLabels
1159
1132
  */
1160
1133
  interface CngxDataGridAccordionLanguageSection {
@@ -1193,8 +1166,7 @@ interface CngxDataGridAccordionLanguageSection {
1193
1166
  * The English data-grid-accordion section: the single source of the entry's
1194
1167
  * English copy. The `CNGX_DATA_GRID_ACCORDION_CONFIG` labels default to it.
1195
1168
  *
1196
- * @category ui/data-grid-accordion/i18n
1197
- * @since 0.1.0
1169
+ * @since 0.3.0
1198
1170
  * @relatedTo CNGX_DATA_GRID_ACCORDION_CONFIG
1199
1171
  */
1200
1172
  declare const CNGX_DATA_GRID_ACCORDION_LANGUAGE_EN: CngxDataGridAccordionLanguageSection;
@@ -20,17 +20,16 @@ import { CngxAsyncState } from '@cngx/core/utils';
20
20
  * </cngx-empty-state>
21
21
  * ```
22
22
  *
23
- * @category ui/empty-state
24
- * @docsKind primary
25
23
  * @wcag AA
26
24
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/empty-state/empty-state.component.ts
27
- * @since 0.1.0
25
+ * @since 0.3.0
28
26
  * @relatedTo CngxAsyncState, CngxSkeletonContainer
29
- * <example-url>http://localhost:4200/#/ui/empty-state/default-no-icon-projected</example-url>
30
- * <example-url>http://localhost:4200/#/ui/empty-state/inside-a-card-grid</example-url>
31
- * <example-url>http://localhost:4200/#/ui/empty-state/inside-a-list</example-url>
32
- * <example-url>http://localhost:4200/#/ui/empty-state/inside-a-table</example-url>
33
- * <example-url>http://localhost:4200/#/ui/empty-state/with-custom-icon-actions</example-url>
27
+ * <example-url>/#/ui/empty-state/default-no-icon-projected</example-url>
28
+ * <example-url>/#/ui/empty-state/inside-a-card-grid</example-url>
29
+ * <example-url>/#/ui/empty-state/inside-a-list</example-url>
30
+ * <example-url>/#/ui/empty-state/inside-a-table</example-url>
31
+ * <example-url>/#/ui/empty-state/with-custom-icon-actions</example-url>
32
+ * @axis level organism
34
33
  */
35
34
  declare class CngxEmptyState {
36
35
  private readonly uid;
@@ -49,6 +48,17 @@ declare class CngxEmptyState {
49
48
  readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
50
49
  /** @internal - hidden when state is bound and the view is not a settled empty result. */
51
50
  protected readonly shouldHide: _angular_core.Signal<boolean>;
51
+ /** @internal - fallback glyph while no icon is projected. */
52
+ protected readonly defaultIcon: {
53
+ readonly viewBox: "0 0 24 24";
54
+ readonly d: "M2 4h20v5H2zM4 9v11h16V9M10 13h4";
55
+ readonly paint: "stroke";
56
+ readonly micro: {
57
+ readonly viewBox: "0 0 12 12";
58
+ readonly d: "M1 1H11V4H1ZM2 2V3H10V2ZM2 4H3V10H9V4H10V11H2ZM5 6H7V7H5Z";
59
+ };
60
+ readonly small: null;
61
+ };
52
62
  /** @internal */
53
63
  protected readonly titleId: string;
54
64
  /** @internal */