@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
@@ -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,27 +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.
143
- * <example-url>http://localhost:4200/#/ui/collection/incremental-list/load-more-trigger</example-url>
144
- * <example-url>http://localhost:4200/#/ui/collection/incremental-list/infinite-trigger</example-url>
145
- * <example-url>http://localhost:4200/#/ui/collection/incremental-list/virtualized</example-url>
146
- * <example-url>http://localhost:4200/#/ui/collection/incremental-list/custom-loading-slot</example-url>
147
- * <example-url>http://localhost:4200/#/ui/collection/incremental-list/empty</example-url>
148
- * <example-url>http://localhost:4200/#/ui/collection/incremental-list/end-reached</example-url>
149
- * <example-url>http://localhost:4200/#/ui/collection/incremental-list/error-retry</example-url>
150
- * <example-url>http://localhost:4200/#/ui/collection/incremental-list/skins/plain</example-url>
151
- * <example-url>http://localhost:4200/#/ui/collection/incremental-list/skins/divided</example-url>
152
- * <example-url>http://localhost:4200/#/ui/collection/incremental-list/skins/card</example-url>
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
153
143
  */
154
144
  declare class CngxIncrementalList<T = unknown> {
155
145
  /** Visual skin; reflected onto `[data-skin]`. Paint-only. */
@@ -280,9 +270,8 @@ declare class CngxIncrementalList<T = unknown> {
280
270
  * `collection` section of the language pack (English without one); override
281
271
  * single keys via {@link withIncrementalListAriaLabels}.
282
272
  *
283
- * @category ui/collection
284
273
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
285
- * @since 0.1.0
274
+ * @since 0.3.0
286
275
  */
287
276
  interface CngxIncrementalListAriaLabels {
288
277
  /** Busy indicator label while the first load runs. */
@@ -316,9 +305,8 @@ interface CngxIncrementalListAriaLabels {
316
305
  * wins over this tier; it supplies a shared override when no instance slot is
317
306
  * projected. Library default is unset (the built-in views render).
318
307
  *
319
- * @category ui/collection
320
308
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
321
- * @since 0.1.0
309
+ * @since 0.3.0
322
310
  */
323
311
  interface CngxIncrementalListTemplates {
324
312
  /** Row template for each accumulated item. */
@@ -344,9 +332,8 @@ interface CngxIncrementalListTemplates {
344
332
  * {@link injectIncrementalListAriaLabels}, inside a `computed()`, a template or
345
333
  * a handler.
346
334
  *
347
- * @category ui/collection
348
335
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
349
- * @since 0.1.0
336
+ * @since 0.3.0
350
337
  */
351
338
  interface CngxIncrementalListConfig {
352
339
  readonly ariaLabels?: Partial<CngxIncrementalListAriaLabels> | Signal<Partial<CngxIncrementalListAriaLabels>>;
@@ -358,9 +345,8 @@ interface CngxIncrementalListConfig {
358
345
  * component scope, then `provideIncrementalListConfig(...)` at the application
359
346
  * root, then the library defaults.
360
347
  *
361
- * @category ui/collection
362
348
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
363
- * @since 0.1.0
349
+ * @since 0.3.0
364
350
  */
365
351
  declare const CNGX_INCREMENTAL_LIST_CONFIG: InjectionToken<CngxIncrementalListConfig>;
366
352
  /**
@@ -368,9 +354,8 @@ declare const CNGX_INCREMENTAL_LIST_CONFIG: InjectionToken<CngxIncrementalListCo
368
354
  * reducer in {@link provideIncrementalListConfig} matches on `kind` and
369
355
  * shallow-merges `payload` into the matching sub-tree.
370
356
  *
371
- * @category ui/collection
372
357
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
373
- * @since 0.1.0
358
+ * @since 0.3.0
374
359
  */
375
360
  type CngxIncrementalListConfigFeature = {
376
361
  readonly kind: 'ariaLabels';
@@ -394,9 +379,8 @@ type CngxIncrementalListConfigFeature = {
394
379
  * );
395
380
  * ```
396
381
  *
397
- * @category ui/collection
398
382
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
399
- * @since 0.1.0
383
+ * @since 0.3.0
400
384
  */
401
385
  declare function withIncrementalListAriaLabels(payload: Partial<CngxIncrementalListAriaLabels> | Signal<Partial<CngxIncrementalListAriaLabels>>): CngxIncrementalListConfigFeature;
402
386
  /**
@@ -409,9 +393,8 @@ declare function withIncrementalListAriaLabels(payload: Partial<CngxIncrementalL
409
393
  * );
410
394
  * ```
411
395
  *
412
- * @category ui/collection
413
396
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
414
- * @since 0.1.0
397
+ * @since 0.3.0
415
398
  */
416
399
  declare function withIncrementalListTemplates(payload: Partial<CngxIncrementalListTemplates>): CngxIncrementalListConfigFeature;
417
400
  /**
@@ -420,9 +403,8 @@ declare function withIncrementalListTemplates(payload: Partial<CngxIncrementalLi
420
403
  * Supplied features merge with the library defaults, so consumers only declare
421
404
  * the keys they override.
422
405
  *
423
- * @category ui/collection
424
406
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
425
- * @since 0.1.0
407
+ * @since 0.3.0
426
408
  */
427
409
  declare function provideIncrementalListConfig(...features: CngxIncrementalListConfigFeature[]): EnvironmentProviders;
428
410
  /**
@@ -431,9 +413,8 @@ declare function provideIncrementalListConfig(...features: CngxIncrementalListCo
431
413
  * parent config (an enclosing scope or the application root), so a region can
432
414
  * re-phrase its labels without disturbing the rest of the app.
433
415
  *
434
- * @category ui/collection
435
416
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
436
- * @since 0.1.0
417
+ * @since 0.3.0
437
418
  */
438
419
  declare function provideIncrementalListConfigAt(...features: CngxIncrementalListConfigFeature[]): Provider[];
439
420
  /**
@@ -441,9 +422,8 @@ declare function provideIncrementalListConfigAt(...features: CngxIncrementalList
441
422
  * injection context; resolves through the cascade. Equivalent to
442
423
  * `inject(CNGX_INCREMENTAL_LIST_CONFIG)`.
443
424
  *
444
- * @category ui/collection
445
425
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
446
- * @since 0.1.0
426
+ * @since 0.3.0
447
427
  */
448
428
  declare function injectIncrementalListConfig(): CngxIncrementalListConfig;
449
429
  /**
@@ -455,9 +435,8 @@ declare function injectIncrementalListConfig(): CngxIncrementalListConfig;
455
435
  * live-region text, so a language switch does not re-speak the current
456
436
  * message. Runs in injection context.
457
437
  *
458
- * @category ui/collection
459
438
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
460
- * @since 0.1.0
439
+ * @since 0.3.0
461
440
  */
462
441
  declare function injectIncrementalListAriaLabels(): Signal<CngxIncrementalListAriaLabels>;
463
442
 
@@ -468,8 +447,7 @@ declare function injectIncrementalListAriaLabels(): Signal<CngxIncrementalListAr
468
447
  * `withIncrementalListAriaLabels` still wins. Messages use `{name}`
469
448
  * placeholders, numbers are formatted for the locale.
470
449
  *
471
- * @category ui/collection/i18n
472
- * @since 0.1.0
450
+ * @since 0.3.0
473
451
  * @relatedTo CNGX_INCREMENTAL_LIST_CONFIG, withIncrementalListAriaLabels
474
452
  */
475
453
  interface CngxCollectionLanguageSection {
@@ -492,8 +470,7 @@ interface CngxCollectionLanguageSection {
492
470
  * The English collection section: the single source of the incremental
493
471
  * list's English copy. The `CNGX_INCREMENTAL_LIST_CONFIG` labels default to it.
494
472
  *
495
- * @category ui/collection/i18n
496
- * @since 0.1.0
473
+ * @since 0.3.0
497
474
  * @relatedTo CNGX_INCREMENTAL_LIST_CONFIG
498
475
  */
499
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 };