@cngx/ui 0.1.0-rc.8 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +118 -59
  2. package/action-button/README.md +170 -53
  3. package/breadcrumb/README.md +5 -6
  4. package/collection/README.md +1 -1
  5. package/command-palette/README.md +9 -5
  6. package/data-grid-accordion/README.md +1 -1
  7. package/empty-state/README.md +2 -3
  8. package/feedback/README.md +1 -1
  9. package/fesm2022/cngx-ui-a11y.mjs +13 -23
  10. package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
  11. package/fesm2022/cngx-ui-accordion.mjs +55 -60
  12. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  13. package/fesm2022/cngx-ui-action-button.mjs +220 -339
  14. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  15. package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
  16. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  17. package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
  18. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
  19. package/fesm2022/cngx-ui-collection.mjs +28 -34
  20. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  21. package/fesm2022/cngx-ui-command-palette.mjs +29 -51
  22. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
  23. package/fesm2022/cngx-ui-context-menu.mjs +138 -89
  24. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
  25. package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
  26. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  27. package/fesm2022/cngx-ui-empty-state.mjs +17 -44
  28. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  29. package/fesm2022/cngx-ui-feedback.mjs +648 -495
  30. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  31. package/fesm2022/cngx-ui-layout.mjs +17 -13
  32. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  33. package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
  34. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  35. package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
  36. package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
  37. package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
  38. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  39. package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
  40. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  41. package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
  42. package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
  43. package/fesm2022/cngx-ui-overlay.mjs +9 -10
  44. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  45. package/fesm2022/cngx-ui-paginator.mjs +212 -188
  46. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  47. package/fesm2022/cngx-ui-sidenav.mjs +872 -721
  48. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  49. package/fesm2022/cngx-ui-skeleton.mjs +17 -19
  50. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  51. package/fesm2022/cngx-ui-speak.mjs +21 -74
  52. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  53. package/fesm2022/cngx-ui-stat-card.mjs +39 -62
  54. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
  55. package/fesm2022/cngx-ui-stepper.mjs +259 -130
  56. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  57. package/fesm2022/cngx-ui-tabs.mjs +148 -50
  58. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  59. package/fesm2022/cngx-ui-timeline.mjs +48 -32
  60. package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
  61. package/fesm2022/cngx-ui-toc.mjs +59 -48
  62. package/fesm2022/cngx-ui-toc.mjs.map +1 -1
  63. package/fesm2022/cngx-ui.mjs +5 -5
  64. package/fesm2022/cngx-ui.mjs.map +1 -1
  65. package/mat-tabs/README.md +57 -19
  66. package/mat-tabs/styles/mat-tabs.css +285 -163
  67. package/nav-rail/README.md +325 -0
  68. package/package.json +37 -8
  69. package/paginator/README.md +10 -0
  70. package/schematics/collection.json +9 -0
  71. package/schematics/ng-add/index.js +9 -0
  72. package/schematics/ng-add/schema.json +96 -0
  73. package/schematics/package.json +3 -0
  74. package/sidenav/README.md +150 -55
  75. package/skeleton/README.md +1 -1
  76. package/speak/README.md +1 -2
  77. package/stepper/README.md +20 -5
  78. package/tabs/README.md +13 -0
  79. package/timeline/README.md +1 -1
  80. package/toc/README.md +1 -1
  81. package/types/cngx-ui-a11y.d.ts +20 -38
  82. package/types/cngx-ui-accordion.d.ts +46 -71
  83. package/types/cngx-ui-action-button.d.ts +113 -151
  84. package/types/cngx-ui-breadcrumb.d.ts +60 -85
  85. package/types/cngx-ui-chart-panel.d.ts +22 -40
  86. package/types/cngx-ui-collection.d.ts +30 -43
  87. package/types/cngx-ui-command-palette.d.ts +40 -64
  88. package/types/cngx-ui-context-menu.d.ts +109 -48
  89. package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
  90. package/types/cngx-ui-empty-state.d.ts +18 -8
  91. package/types/cngx-ui-feedback.d.ts +275 -292
  92. package/types/cngx-ui-layout.d.ts +4 -12
  93. package/types/cngx-ui-mat-accordion.d.ts +5 -5
  94. package/types/cngx-ui-mat-paginator.d.ts +4 -10
  95. package/types/cngx-ui-mat-stepper.d.ts +5 -10
  96. package/types/cngx-ui-mat-tabs.d.ts +86 -89
  97. package/types/cngx-ui-nav-rail.d.ts +416 -0
  98. package/types/cngx-ui-overlay.d.ts +4 -13
  99. package/types/cngx-ui-paginator.d.ts +186 -161
  100. package/types/cngx-ui-sidenav.d.ts +557 -437
  101. package/types/cngx-ui-skeleton.d.ts +7 -13
  102. package/types/cngx-ui-speak.d.ts +40 -24
  103. package/types/cngx-ui-stat-card.d.ts +45 -36
  104. package/types/cngx-ui-stepper.d.ts +205 -84
  105. package/types/cngx-ui-tabs.d.ts +104 -28
  106. package/types/cngx-ui-timeline.d.ts +31 -51
  107. package/types/cngx-ui-toc.d.ts +43 -54
  108. package/types/cngx-ui.d.ts +1 -1
@@ -8,8 +8,6 @@ import { CngxMessage } from '@cngx/core/i18n';
8
8
  /**
9
9
  * Context exposed to a projected item template - the accumulated item and its
10
10
  * index in the revealed slice.
11
- *
12
- * @category ui/collection
13
11
  */
14
12
  interface CngxIncrementalItemContext<T> {
15
13
  readonly $implicit: T;
@@ -21,8 +19,7 @@ interface CngxIncrementalItemContext<T> {
21
19
  * renders it per item in the revealed slice. Resolution cascades instance slot
22
20
  * -> `CngxIncrementalListConfig.templates.item` -> the built-in text row.
23
21
  *
24
- * @category ui/collection
25
- * @since 0.1.0
22
+ * @since 0.3.0
26
23
  */
27
24
  declare class CngxIncrementalItem<T = unknown> {
28
25
  readonly templateRef: TemplateRef<CngxIncrementalItemContext<T>>;
@@ -34,8 +31,7 @@ declare class CngxIncrementalItem<T = unknown> {
34
31
  * Empty slot. Project `<ng-template cngxIncrementalEmpty>` to replace the
35
32
  * built-in empty view shown when the bound state settles with no data.
36
33
  *
37
- * @category ui/collection
38
- * @since 0.1.0
34
+ * @since 0.3.0
39
35
  */
40
36
  declare class CngxIncrementalEmpty {
41
37
  readonly templateRef: TemplateRef<any>;
@@ -46,8 +42,6 @@ declare class CngxIncrementalEmpty {
46
42
  * Context exposed to a projected error template - a `retry` callback that
47
43
  * re-drives the consumer's data source (emits the organism's `retry` output)
48
44
  * and the raw `error` the bound state carries.
49
- *
50
- * @category ui/collection
51
45
  */
52
46
  interface CngxIncrementalErrorContext {
53
47
  readonly retry: () => void;
@@ -58,8 +52,7 @@ interface CngxIncrementalErrorContext {
58
52
  * replace the built-in error + retry view. Resolution cascades instance slot ->
59
53
  * `CngxIncrementalListConfig.templates.error` -> the built-in message + button.
60
54
  *
61
- * @category ui/collection
62
- * @since 0.1.0
55
+ * @since 0.3.0
63
56
  */
64
57
  declare class CngxIncrementalError {
65
58
  readonly templateRef: TemplateRef<CngxIncrementalErrorContext>;
@@ -71,8 +64,7 @@ declare class CngxIncrementalError {
71
64
  * End-reached slot. Project `<ng-template cngxIncrementalEnd>` to replace the
72
65
  * built-in "all loaded" label shown once every page has been revealed.
73
66
  *
74
- * @category ui/collection
75
- * @since 0.1.0
67
+ * @since 0.3.0
76
68
  */
77
69
  declare class CngxIncrementalEnd {
78
70
  readonly templateRef: TemplateRef<any>;
@@ -84,8 +76,7 @@ declare class CngxIncrementalEnd {
84
76
  * built-in first-load progress indicator. Resolution cascades instance slot ->
85
77
  * `CngxIncrementalListConfig.templates.loading` -> the built-in `CngxProgress`.
86
78
  *
87
- * @category ui/collection
88
- * @since 0.1.0
79
+ * @since 0.3.0
89
80
  */
90
81
  declare class CngxIncrementalLoading {
91
82
  readonly templateRef: TemplateRef<any>;
@@ -129,17 +120,26 @@ type CngxIncrementalListSkin = 'plain' | 'divided' | 'card';
129
120
  * busy container) and the live region communicates every settle
130
121
  * (empty / error / end-reached).
131
122
  *
132
- * @category ui/collection
133
- * @docsKind primary
134
123
  * @wcag AA
135
124
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list.component.ts
136
- * @since 0.1.0
125
+ * @since 0.3.0
137
126
  * @relatedTo CngxPaginate, CngxPaginator, CngxAsyncState
138
127
  * @slot cngxIncrementalItem Renders one row; gets the item and its index.
139
128
  * @slot cngxIncrementalLoading Rendered while a page is being fetched.
140
129
  * @slot cngxIncrementalEmpty Rendered when the list resolves to nothing.
141
130
  * @slot cngxIncrementalError Rendered when a page fetch fails; gets the error and a retry callback.
142
131
  * @slot cngxIncrementalEnd Rendered once after the last page, e.g. an end-of-results marker.
132
+ * <example-url>/#/ui/collection/incremental-list/load-more-trigger</example-url>
133
+ * <example-url>/#/ui/collection/incremental-list/infinite-trigger</example-url>
134
+ * <example-url>/#/ui/collection/incremental-list/virtualized</example-url>
135
+ * <example-url>/#/ui/collection/incremental-list/custom-loading-slot</example-url>
136
+ * <example-url>/#/ui/collection/incremental-list/empty</example-url>
137
+ * <example-url>/#/ui/collection/incremental-list/end-reached</example-url>
138
+ * <example-url>/#/ui/collection/incremental-list/error-retry</example-url>
139
+ * <example-url>/#/ui/collection/incremental-list/skins/plain</example-url>
140
+ * <example-url>/#/ui/collection/incremental-list/skins/divided</example-url>
141
+ * <example-url>/#/ui/collection/incremental-list/skins/card</example-url>
142
+ * @axis level organism
143
143
  */
144
144
  declare class CngxIncrementalList<T = unknown> {
145
145
  /** Visual skin; reflected onto `[data-skin]`. Paint-only. */
@@ -270,9 +270,8 @@ declare class CngxIncrementalList<T = unknown> {
270
270
  * `collection` section of the language pack (English without one); override
271
271
  * single keys via {@link withIncrementalListAriaLabels}.
272
272
  *
273
- * @category ui/collection
274
273
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
275
- * @since 0.1.0
274
+ * @since 0.3.0
276
275
  */
277
276
  interface CngxIncrementalListAriaLabels {
278
277
  /** Busy indicator label while the first load runs. */
@@ -306,9 +305,8 @@ interface CngxIncrementalListAriaLabels {
306
305
  * wins over this tier; it supplies a shared override when no instance slot is
307
306
  * projected. Library default is unset (the built-in views render).
308
307
  *
309
- * @category ui/collection
310
308
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
311
- * @since 0.1.0
309
+ * @since 0.3.0
312
310
  */
313
311
  interface CngxIncrementalListTemplates {
314
312
  /** Row template for each accumulated item. */
@@ -334,9 +332,8 @@ interface CngxIncrementalListTemplates {
334
332
  * {@link injectIncrementalListAriaLabels}, inside a `computed()`, a template or
335
333
  * a handler.
336
334
  *
337
- * @category ui/collection
338
335
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
339
- * @since 0.1.0
336
+ * @since 0.3.0
340
337
  */
341
338
  interface CngxIncrementalListConfig {
342
339
  readonly ariaLabels?: Partial<CngxIncrementalListAriaLabels> | Signal<Partial<CngxIncrementalListAriaLabels>>;
@@ -348,9 +345,8 @@ interface CngxIncrementalListConfig {
348
345
  * component scope, then `provideIncrementalListConfig(...)` at the application
349
346
  * root, then the library defaults.
350
347
  *
351
- * @category ui/collection
352
348
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
353
- * @since 0.1.0
349
+ * @since 0.3.0
354
350
  */
355
351
  declare const CNGX_INCREMENTAL_LIST_CONFIG: InjectionToken<CngxIncrementalListConfig>;
356
352
  /**
@@ -358,9 +354,8 @@ declare const CNGX_INCREMENTAL_LIST_CONFIG: InjectionToken<CngxIncrementalListCo
358
354
  * reducer in {@link provideIncrementalListConfig} matches on `kind` and
359
355
  * shallow-merges `payload` into the matching sub-tree.
360
356
  *
361
- * @category ui/collection
362
357
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
363
- * @since 0.1.0
358
+ * @since 0.3.0
364
359
  */
365
360
  type CngxIncrementalListConfigFeature = {
366
361
  readonly kind: 'ariaLabels';
@@ -384,9 +379,8 @@ type CngxIncrementalListConfigFeature = {
384
379
  * );
385
380
  * ```
386
381
  *
387
- * @category ui/collection
388
382
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
389
- * @since 0.1.0
383
+ * @since 0.3.0
390
384
  */
391
385
  declare function withIncrementalListAriaLabels(payload: Partial<CngxIncrementalListAriaLabels> | Signal<Partial<CngxIncrementalListAriaLabels>>): CngxIncrementalListConfigFeature;
392
386
  /**
@@ -399,9 +393,8 @@ declare function withIncrementalListAriaLabels(payload: Partial<CngxIncrementalL
399
393
  * );
400
394
  * ```
401
395
  *
402
- * @category ui/collection
403
396
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
404
- * @since 0.1.0
397
+ * @since 0.3.0
405
398
  */
406
399
  declare function withIncrementalListTemplates(payload: Partial<CngxIncrementalListTemplates>): CngxIncrementalListConfigFeature;
407
400
  /**
@@ -410,9 +403,8 @@ declare function withIncrementalListTemplates(payload: Partial<CngxIncrementalLi
410
403
  * Supplied features merge with the library defaults, so consumers only declare
411
404
  * the keys they override.
412
405
  *
413
- * @category ui/collection
414
406
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
415
- * @since 0.1.0
407
+ * @since 0.3.0
416
408
  */
417
409
  declare function provideIncrementalListConfig(...features: CngxIncrementalListConfigFeature[]): EnvironmentProviders;
418
410
  /**
@@ -421,9 +413,8 @@ declare function provideIncrementalListConfig(...features: CngxIncrementalListCo
421
413
  * parent config (an enclosing scope or the application root), so a region can
422
414
  * re-phrase its labels without disturbing the rest of the app.
423
415
  *
424
- * @category ui/collection
425
416
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
426
- * @since 0.1.0
417
+ * @since 0.3.0
427
418
  */
428
419
  declare function provideIncrementalListConfigAt(...features: CngxIncrementalListConfigFeature[]): Provider[];
429
420
  /**
@@ -431,9 +422,8 @@ declare function provideIncrementalListConfigAt(...features: CngxIncrementalList
431
422
  * injection context; resolves through the cascade. Equivalent to
432
423
  * `inject(CNGX_INCREMENTAL_LIST_CONFIG)`.
433
424
  *
434
- * @category ui/collection
435
425
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
436
- * @since 0.1.0
426
+ * @since 0.3.0
437
427
  */
438
428
  declare function injectIncrementalListConfig(): CngxIncrementalListConfig;
439
429
  /**
@@ -445,9 +435,8 @@ declare function injectIncrementalListConfig(): CngxIncrementalListConfig;
445
435
  * live-region text, so a language switch does not re-speak the current
446
436
  * message. Runs in injection context.
447
437
  *
448
- * @category ui/collection
449
438
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
450
- * @since 0.1.0
439
+ * @since 0.3.0
451
440
  */
452
441
  declare function injectIncrementalListAriaLabels(): Signal<CngxIncrementalListAriaLabels>;
453
442
 
@@ -458,8 +447,7 @@ declare function injectIncrementalListAriaLabels(): Signal<CngxIncrementalListAr
458
447
  * `withIncrementalListAriaLabels` still wins. Messages use `{name}`
459
448
  * placeholders, numbers are formatted for the locale.
460
449
  *
461
- * @category ui/collection/i18n
462
- * @since 0.1.0
450
+ * @since 0.3.0
463
451
  * @relatedTo CNGX_INCREMENTAL_LIST_CONFIG, withIncrementalListAriaLabels
464
452
  */
465
453
  interface CngxCollectionLanguageSection {
@@ -482,8 +470,7 @@ interface CngxCollectionLanguageSection {
482
470
  * The English collection section: the single source of the incremental
483
471
  * list's English copy. The `CNGX_INCREMENTAL_LIST_CONFIG` labels default to it.
484
472
  *
485
- * @category ui/collection/i18n
486
- * @since 0.1.0
473
+ * @since 0.3.0
487
474
  * @relatedTo CNGX_INCREMENTAL_LIST_CONFIG
488
475
  */
489
476
  declare const CNGX_COLLECTION_LANGUAGE_EN: CngxCollectionLanguageSection;
@@ -12,8 +12,7 @@ import { CngxAsyncState, KeyCombo } from '@cngx/core/utils';
12
12
  * `withResultCountFormatter` or `withKeyboardLegend` still wins. Messages use
13
13
  * `{name}` placeholders, numbers are formatted for the locale.
14
14
  *
15
- * @category ui/command-palette/i18n
16
- * @since 0.1.0
15
+ * @since 0.3.0
17
16
  * @relatedTo CNGX_COMMAND_PALETTE_CONFIG, withCommandPaletteLabels
18
17
  */
19
18
  interface CngxCommandPaletteLanguageSection {
@@ -54,8 +53,7 @@ interface CngxCommandPaletteLanguageSection {
54
53
  * The English command-palette section: the single source of the palette's
55
54
  * English copy. The `CNGX_COMMAND_PALETTE_CONFIG` copy keys default to it.
56
55
  *
57
- * @category ui/command-palette/i18n
58
- * @since 0.1.0
56
+ * @since 0.3.0
59
57
  * @relatedTo CNGX_COMMAND_PALETTE_CONFIG
60
58
  */
61
59
  declare const CNGX_COMMAND_PALETTE_LANGUAGE_EN: CngxCommandPaletteLanguageSection;
@@ -90,8 +88,7 @@ interface CngxCommandPaletteSiteCopy {
90
88
  * inside its own template. `data` is the command's opaque payload, narrowed at
91
89
  * the use-site; `active` reflects the current `aria-activedescendant`.
92
90
  *
93
- * @category ui/command-palette
94
- * @since 0.1.0
91
+ * @since 0.3.0
95
92
  */
96
93
  interface CngxCommandRowContext {
97
94
  readonly $implicit: CngxRankedCommand;
@@ -129,8 +126,7 @@ type CngxCommandPaletteFooterContext = Record<string, never>;
129
126
  * </cngx-command-palette>
130
127
  * ```
131
128
  *
132
- * @category ui/command-palette
133
- * @since 0.1.0
129
+ * @since 0.3.0
134
130
  */
135
131
  declare class CngxCommandRow {
136
132
  readonly templateRef: TemplateRef<CngxCommandRowContext>;
@@ -141,8 +137,7 @@ declare class CngxCommandRow {
141
137
  /**
142
138
  * Overrides the default group header.
143
139
  *
144
- * @category ui/command-palette
145
- * @since 0.1.0
140
+ * @since 0.3.0
146
141
  */
147
142
  declare class CngxCommandGroupHeader {
148
143
  readonly templateRef: TemplateRef<CngxCommandGroupHeaderContext>;
@@ -153,8 +148,7 @@ declare class CngxCommandGroupHeader {
153
148
  /**
154
149
  * Overrides the default empty state.
155
150
  *
156
- * @category ui/command-palette
157
- * @since 0.1.0
151
+ * @since 0.3.0
158
152
  */
159
153
  declare class CngxCommandPaletteEmpty {
160
154
  readonly templateRef: TemplateRef<CngxCommandPaletteEmptyContext>;
@@ -165,8 +159,7 @@ declare class CngxCommandPaletteEmpty {
165
159
  /**
166
160
  * Overrides the default first-load skeleton.
167
161
  *
168
- * @category ui/command-palette
169
- * @since 0.1.0
162
+ * @since 0.3.0
170
163
  */
171
164
  declare class CngxCommandPaletteLoading {
172
165
  readonly templateRef: TemplateRef<CngxCommandPaletteLoadingContext>;
@@ -177,8 +170,7 @@ declare class CngxCommandPaletteLoading {
177
170
  /**
178
171
  * Overrides the default error state. Wire `retry` to your reload path.
179
172
  *
180
- * @category ui/command-palette
181
- * @since 0.1.0
173
+ * @since 0.3.0
182
174
  */
183
175
  declare class CngxCommandPaletteError {
184
176
  readonly templateRef: TemplateRef<CngxCommandPaletteErrorContext>;
@@ -189,8 +181,7 @@ declare class CngxCommandPaletteError {
189
181
  /**
190
182
  * Overrides the default keyboard-legend footer.
191
183
  *
192
- * @category ui/command-palette
193
- * @since 0.1.0
184
+ * @since 0.3.0
194
185
  */
195
186
  declare class CngxCommandPaletteFooter {
196
187
  readonly templateRef: TemplateRef<CngxCommandPaletteFooterContext>;
@@ -203,8 +194,7 @@ declare class CngxCommandPaletteFooter {
203
194
  * Global default template overrides, keyed by slot. Resolution order for any
204
195
  * fragment is instance `*cngxCommand*` slot > this map > the built-in default.
205
196
  *
206
- * @category ui/command-palette
207
- * @since 0.1.0
197
+ * @since 0.3.0
208
198
  */
209
199
  interface CngxCommandPaletteTemplates {
210
200
  readonly row?: TemplateRef<CngxCommandRowContext>;
@@ -219,8 +209,7 @@ interface CngxCommandPaletteTemplates {
219
209
  * do. `keys` is shown, never spoken; screen readers hear `spokenKeys` (the key
220
210
  * names in words, e.g. `'Up and Down arrows'` for `'↑ ↓'`), else `keys`.
221
211
  *
222
- * @category ui/command-palette
223
- * @since 0.1.0
212
+ * @since 0.3.0
224
213
  */
225
214
  interface CngxCommandPaletteLegendEntry {
226
215
  readonly keys: string;
@@ -234,8 +223,7 @@ interface CngxCommandPaletteLegendEntry {
234
223
  * pack (English without one), so the palette follows a runtime language
235
224
  * switch.
236
225
  *
237
- * @category ui/command-palette
238
- * @since 0.1.0
226
+ * @since 0.3.0
239
227
  */
240
228
  interface CngxCommandPaletteConfig {
241
229
  /**
@@ -272,18 +260,23 @@ interface CngxCommandPaletteConfig {
272
260
  * `provideCngxCommandPalette` aggregator is introduced, add the discriminator
273
261
  * then (the menu family's `_target` pattern), not preemptively.
274
262
  *
275
- * @category ui/command-palette
276
- * @since 0.1.0
263
+ * @since 0.3.0
277
264
  */
278
265
  type CngxCommandPaletteConfigFeature = (config: CngxCommandPaletteConfig) => CngxCommandPaletteConfig;
266
+ /**
267
+ * Library-default palette configuration. Carries no copy: the copy defaults
268
+ * are the `commandPalette` section of the language pack.
269
+ *
270
+ * @since 0.3.0
271
+ */
272
+ declare const DEFAULT_COMMAND_PALETTE_CONFIG: CngxCommandPaletteConfig;
279
273
  /**
280
274
  * DI token carrying the resolved {@link CngxCommandPaletteConfig}. Defaults to
281
275
  * {@link DEFAULT_COMMAND_PALETTE_CONFIG} at root; override app-wide via
282
276
  * {@link provideCommandPaletteConfig} or per-scope via
283
277
  * {@link provideCommandPaletteConfigAt}.
284
278
  *
285
- * @category ui/command-palette
286
- * @since 0.1.0
279
+ * @since 0.3.0
287
280
  */
288
281
  declare const CNGX_COMMAND_PALETTE_CONFIG: InjectionToken<CngxCommandPaletteConfig>;
289
282
  /**
@@ -296,24 +289,21 @@ declare const CNGX_COMMAND_PALETTE_CONFIG: InjectionToken<CngxCommandPaletteConf
296
289
  * )
297
290
  * ```
298
291
  *
299
- * @category ui/command-palette
300
- * @since 0.1.0
292
+ * @since 0.3.0
301
293
  */
302
294
  declare function provideCommandPaletteConfig(...features: CngxCommandPaletteConfigFeature[]): EnvironmentProviders;
303
295
  /**
304
296
  * Component-scoped palette configuration override. Features merge on top of the
305
297
  * enclosing scope (root or a parent `viewProviders`).
306
298
  *
307
- * @category ui/command-palette
308
- * @since 0.1.0
299
+ * @since 0.3.0
309
300
  */
310
301
  declare function provideCommandPaletteConfigAt(...features: CngxCommandPaletteConfigFeature[]): Provider[];
311
302
  /**
312
303
  * Resolves the {@link CngxCommandPaletteConfig} from the current injection
313
304
  * scope. Must run in an injection context.
314
305
  *
315
- * @category ui/command-palette
316
- * @since 0.1.0
306
+ * @since 0.3.0
317
307
  */
318
308
  declare function injectCommandPaletteConfig(): CngxCommandPaletteConfig;
319
309
  /**
@@ -324,8 +314,7 @@ type CngxCommandPaletteResolvedConfig = CngxCommandPaletteConfig & CngxCommandPa
324
314
  /**
325
315
  * The text-label keys {@link withCommandPaletteLabels} overrides.
326
316
  *
327
- * @category ui/command-palette
328
- * @since 0.1.0
317
+ * @since 0.3.0
329
318
  */
330
319
  type CngxCommandPaletteLabelKey = 'searchPlaceholder' | 'listboxLabel' | 'emptyLabel' | 'loadingLabel' | 'errorLabel' | 'retryLabel' | 'paletteLabel';
331
320
  /**
@@ -334,8 +323,7 @@ type CngxCommandPaletteLabelKey = 'searchPlaceholder' | 'listboxLabel' | 'emptyL
334
323
  * runtime; a key the Signal sets wins over the inherited value, an unset key
335
324
  * follows it.
336
325
  *
337
- * @category ui/command-palette
338
- * @since 0.1.0
326
+ * @since 0.3.0
339
327
  */
340
328
  declare function withCommandPaletteLabels(labels: Partial<Pick<CngxCommandPaletteConfig, CngxCommandPaletteLabelKey>> | Signal<Partial<Record<CngxCommandPaletteLabelKey, string>>>): CngxCommandPaletteConfigFeature;
341
329
  /**
@@ -344,16 +332,14 @@ declare function withCommandPaletteLabels(labels: Partial<Pick<CngxCommandPalett
344
332
  * or per-scope via `provideCommandPaletteConfigAt`. A per-instance
345
333
  * `[openShortcut]` input still wins over this.
346
334
  *
347
- * @category ui/command-palette
348
- * @since 0.1.0
335
+ * @since 0.3.0
349
336
  */
350
337
  declare function withPaletteShortcut(combo: string): CngxCommandPaletteConfigFeature;
351
338
  /**
352
339
  * Replace the footer keyboard legend. Pass a `Signal` to switch the language at
353
340
  * runtime.
354
341
  *
355
- * @category ui/command-palette
356
- * @since 0.1.0
342
+ * @since 0.3.0
357
343
  */
358
344
  declare function withKeyboardLegend(entries: readonly CngxCommandPaletteLegendEntry[] | Signal<readonly CngxCommandPaletteLegendEntry[]>): CngxCommandPaletteConfigFeature;
359
345
  /**
@@ -361,16 +347,14 @@ declare function withKeyboardLegend(entries: readonly CngxCommandPaletteLegendEn
361
347
  * another locale). Pass a `Signal` of the formatter to switch the language at
362
348
  * runtime; the live count speaks the new formatter on its next change.
363
349
  *
364
- * @category ui/command-palette
365
- * @since 0.1.0
350
+ * @since 0.3.0
366
351
  */
367
352
  declare function withResultCountFormatter(formatter: ((count: number) => string) | Signal<(count: number) => string>): CngxCommandPaletteConfigFeature;
368
353
  /**
369
354
  * Register global default slot templates. Merged over any already set; a
370
355
  * per-instance `*cngxCommand*` slot still wins over these.
371
356
  *
372
- * @category ui/command-palette
373
- * @since 0.1.0
357
+ * @since 0.3.0
374
358
  */
375
359
  declare function withCommandPaletteTemplates(templates: CngxCommandPaletteTemplates): CngxCommandPaletteConfigFeature;
376
360
 
@@ -385,8 +369,7 @@ declare function withCommandPaletteTemplates(templates: CngxCommandPaletteTempla
385
369
  * transition settles. The panel only needs to know it is open and to ask the
386
370
  * surface to dismiss when a command runs.
387
371
  *
388
- * @category ui/command-palette
389
- * @since 0.1.0
372
+ * @since 0.3.0
390
373
  */
391
374
  interface CngxCommandPaletteHost {
392
375
  /**
@@ -404,8 +387,7 @@ interface CngxCommandPaletteHost {
404
387
  /**
405
388
  * DI token the panel injects (optional) to reach its hosting palette surface.
406
389
  *
407
- * @category ui/command-palette
408
- * @since 0.1.0
390
+ * @since 0.3.0
409
391
  */
410
392
  declare const CNGX_COMMAND_PALETTE_HOST: InjectionToken<CngxCommandPaletteHost>;
411
393
 
@@ -427,13 +409,12 @@ declare const CNGX_COMMAND_PALETTE_HOST: InjectionToken<CngxCommandPaletteHost>;
427
409
  * <button [cngxCommandPaletteTrigger]="palette">Search commands</button>
428
410
  * ```
429
411
  *
430
- * @category ui/command-palette
431
- * @docsKind primary
432
412
  * @wcag AA
433
413
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/command-palette/palette/command-palette.component.ts
434
414
  * @selector cngx-command-palette
435
- * @since 0.1.0
415
+ * @since 0.3.0
436
416
  * @relatedTo CngxCommandPaletteTrigger, provideCommands, CngxDialog
417
+ * @axis level organism
437
418
  */
438
419
  declare class CngxCommandPalette implements CngxCommandPaletteHost {
439
420
  /** Consumer-derived async result source. */
@@ -501,10 +482,9 @@ declare class CngxCommandPalette implements CngxCommandPaletteHost {
501
482
  * <cngx-command-palette #palette />
502
483
  * ```
503
484
  *
504
- * @category ui/command-palette
505
485
  * @wcag AA
506
486
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/command-palette/palette/command-palette-trigger.directive.ts
507
- * @since 0.1.0
487
+ * @since 0.3.0
508
488
  * @relatedTo CngxCommandPalette
509
489
  */
510
490
  declare class CngxCommandPaletteTrigger {
@@ -520,8 +500,7 @@ declare class CngxCommandPaletteTrigger {
520
500
  * listener. The palette recreates the keybinding whenever the resolved combo
521
501
  * changes and tears the previous one down, so nothing leaks document-wide.
522
502
  *
523
- * @category ui/command-palette
524
- * @since 0.1.0
503
+ * @since 0.3.0
525
504
  */
526
505
  interface CngxPaletteKeybinding {
527
506
  /** Removes the installed document keydown listener. */
@@ -533,8 +512,7 @@ interface CngxPaletteKeybinding {
533
512
  * as a type alias so an override matches the exact signature - a consumer can
534
513
  * swap in an enterprise key-capture policy without touching the palette.
535
514
  *
536
- * @category ui/command-palette
537
- * @since 0.1.0
515
+ * @since 0.3.0
538
516
  */
539
517
  type CngxPaletteKeybindingFactory = (combo: KeyCombo, onOpen: () => void) => CngxPaletteKeybinding;
540
518
  /**
@@ -546,8 +524,7 @@ type CngxPaletteKeybindingFactory = (combo: KeyCombo, onOpen: () => void) => Cng
546
524
  * `isMac` defaults to platform detection; pass it explicitly for deterministic
547
525
  * tests.
548
526
  *
549
- * @category ui/command-palette
550
- * @since 0.1.0
527
+ * @since 0.3.0
551
528
  */
552
529
  declare function createPaletteKeybinding(combo: KeyCombo, onOpen: () => void, isMac?: boolean): CngxPaletteKeybinding;
553
530
  /**
@@ -556,10 +533,9 @@ declare function createPaletteKeybinding(combo: KeyCombo, onOpen: () => void, is
556
533
  * palette. To only change the *combo*, prefer `withPaletteShortcut(...)` or the
557
534
  * `[openShortcut]` input - this token is for replacing the whole listener.
558
535
  *
559
- * @category ui/command-palette
560
- * @since 0.1.0
536
+ * @since 0.3.0
561
537
  */
562
538
  declare const CNGX_PALETTE_KEYBINDING_FACTORY: InjectionToken<CngxPaletteKeybindingFactory>;
563
539
 
564
- export { CNGX_COMMAND_PALETTE_CONFIG, CNGX_COMMAND_PALETTE_HOST, CNGX_COMMAND_PALETTE_LANGUAGE_EN, CNGX_PALETTE_KEYBINDING_FACTORY, CngxCommandGroupHeader, CngxCommandPalette, CngxCommandPaletteEmpty, CngxCommandPaletteError, CngxCommandPaletteFooter, CngxCommandPaletteLoading, CngxCommandPaletteTrigger, CngxCommandRow, createPaletteKeybinding, injectCommandPaletteConfig, provideCommandPaletteConfig, provideCommandPaletteConfigAt, withCommandPaletteLabels, withCommandPaletteTemplates, withKeyboardLegend, withPaletteShortcut, withResultCountFormatter };
540
+ export { CNGX_COMMAND_PALETTE_CONFIG, CNGX_COMMAND_PALETTE_HOST, CNGX_COMMAND_PALETTE_LANGUAGE_EN, CNGX_PALETTE_KEYBINDING_FACTORY, CngxCommandGroupHeader, CngxCommandPalette, CngxCommandPaletteEmpty, CngxCommandPaletteError, CngxCommandPaletteFooter, CngxCommandPaletteLoading, CngxCommandPaletteTrigger, CngxCommandRow, DEFAULT_COMMAND_PALETTE_CONFIG, createPaletteKeybinding, injectCommandPaletteConfig, provideCommandPaletteConfig, provideCommandPaletteConfigAt, withCommandPaletteLabels, withCommandPaletteTemplates, withKeyboardLegend, withPaletteShortcut, withResultCountFormatter };
565
541
  export type { CngxCommandGroupHeaderContext, CngxCommandPaletteConfig, CngxCommandPaletteConfigFeature, CngxCommandPaletteEmptyContext, CngxCommandPaletteErrorContext, CngxCommandPaletteFooterContext, CngxCommandPaletteHost, CngxCommandPaletteLabelKey, CngxCommandPaletteLanguageSection, CngxCommandPaletteLegendEntry, CngxCommandPaletteLoadingContext, CngxCommandPaletteTemplates, CngxCommandRowContext, CngxPaletteKeybinding, CngxPaletteKeybindingFactory };