@cngx/ui 0.1.0-rc.5 → 0.1.0-rc.7

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 (79) hide show
  1. package/README.md +112 -0
  2. package/a11y/README.md +81 -0
  3. package/context-menu/README.md +98 -0
  4. package/data-grid-accordion/README.md +27 -0
  5. package/feedback/README.md +2 -0
  6. package/fesm2022/cngx-ui-a11y.mjs +320 -0
  7. package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
  8. package/fesm2022/cngx-ui-accordion.mjs +19 -8
  9. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  10. package/fesm2022/cngx-ui-action-button.mjs +5 -2
  11. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  12. package/fesm2022/cngx-ui-breadcrumb.mjs +11 -6
  13. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  14. package/fesm2022/cngx-ui-chart-panel.mjs +429 -0
  15. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
  16. package/fesm2022/cngx-ui-collection.mjs +15 -6
  17. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  18. package/fesm2022/cngx-ui-command-palette.mjs +1005 -0
  19. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
  20. package/fesm2022/cngx-ui-context-menu.mjs +742 -0
  21. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
  22. package/fesm2022/cngx-ui-data-grid-accordion.mjs +90 -20
  23. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  24. package/fesm2022/cngx-ui-feedback.mjs +97 -106
  25. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  26. package/fesm2022/cngx-ui-layout.mjs +18 -9
  27. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  28. package/fesm2022/cngx-ui-mat-accordion.mjs +9 -9
  29. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  30. package/fesm2022/cngx-ui-mat-tabs.mjs +64 -70
  31. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  32. package/fesm2022/cngx-ui-paginator.mjs +18 -8
  33. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  34. package/fesm2022/cngx-ui-sidenav.mjs +2 -2
  35. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  36. package/fesm2022/cngx-ui-skeleton.mjs +20 -7
  37. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  38. package/fesm2022/cngx-ui-speak.mjs +2 -2
  39. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  40. package/fesm2022/cngx-ui-stat-card.mjs +618 -0
  41. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
  42. package/fesm2022/cngx-ui-stepper.mjs +38 -19
  43. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  44. package/fesm2022/cngx-ui-tabs.mjs +36 -19
  45. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  46. package/fesm2022/cngx-ui-timeline.mjs +495 -0
  47. package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
  48. package/fesm2022/cngx-ui-toc.mjs +704 -0
  49. package/fesm2022/cngx-ui-toc.mjs.map +1 -0
  50. package/fesm2022/cngx-ui.mjs +2 -2
  51. package/fesm2022/cngx-ui.mjs.map +1 -1
  52. package/mat-accordion/README.md +1 -1
  53. package/mat-tabs/styles/mat-tabs.css +20 -17
  54. package/package.json +32 -1
  55. package/skeleton/README.md +2 -0
  56. package/stepper/README.md +2 -2
  57. package/timeline/README.md +350 -0
  58. package/toc/README.md +183 -0
  59. package/types/cngx-ui-a11y.d.ts +303 -0
  60. package/types/cngx-ui-accordion.d.ts +9 -4
  61. package/types/cngx-ui-action-button.d.ts +3 -0
  62. package/types/cngx-ui-breadcrumb.d.ts +5 -0
  63. package/types/cngx-ui-chart-panel.d.ts +278 -0
  64. package/types/cngx-ui-collection.d.ts +12 -3
  65. package/types/cngx-ui-command-palette.d.ts +451 -0
  66. package/types/cngx-ui-context-menu.d.ts +467 -0
  67. package/types/cngx-ui-data-grid-accordion.d.ts +72 -15
  68. package/types/cngx-ui-feedback.d.ts +71 -18
  69. package/types/cngx-ui-layout.d.ts +8 -3
  70. package/types/cngx-ui-mat-accordion.d.ts +3 -3
  71. package/types/cngx-ui-mat-tabs.d.ts +11 -9
  72. package/types/cngx-ui-paginator.d.ts +13 -3
  73. package/types/cngx-ui-skeleton.d.ts +13 -1
  74. package/types/cngx-ui-stat-card.d.ts +327 -0
  75. package/types/cngx-ui-stepper.d.ts +18 -4
  76. package/types/cngx-ui-tabs.d.ts +20 -4
  77. package/types/cngx-ui-timeline.d.ts +479 -0
  78. package/types/cngx-ui-toc.d.ts +514 -0
  79. package/types/cngx-ui.d.ts +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cngx-ui-command-palette.mjs","sources":["../../../projects/ui/command-palette/panel/command-palette-defaults.ts","../../../projects/ui/command-palette/config/command-palette-config.ts","../../../projects/ui/command-palette/panel/panel-host.token.ts","../../../projects/ui/command-palette/panel/command-panel.component.ts","../../../projects/ui/command-palette/panel/command-panel-shell.component.ts","../../../projects/ui/command-palette/slots/command-slots.ts","../../../projects/ui/command-palette/palette/palette-keybinding.ts","../../../projects/ui/command-palette/palette/command-palette.component.ts","../../../projects/ui/command-palette/palette/command-palette-trigger.directive.ts","../../../projects/ui/command-palette/public-api.ts","../../../projects/ui/command-palette/cngx-ui-command-palette.ts"],"sourcesContent":["import type { CngxCommandPaletteLegendEntry } from '../config/command-palette-config';\n\n/**\n * @internal\n * Built-in English strings for the default palette. Never exported from\n * `public-api.ts` - mirrors the select family's `CNGX_SELECT_GLYPHS` precedent,\n * so no strings are inlined in templates before the public config cascade\n * resolves. German (or any locale) is consumer-supplied through that cascade,\n * never hard-coded here.\n */\nexport interface CngxCommandPaletteDefaults {\n /** Combo string that opens the palette (parsed via `parseKeyCombo`). */\n readonly openShortcut: string;\n readonly searchPlaceholder: string;\n readonly listboxLabel: string;\n readonly emptyLabel: string;\n readonly loadingLabel: string;\n readonly errorLabel: string;\n readonly retryLabel: string;\n /** Builds the polite `aria-live` result-count message. */\n readonly resultCount: (count: number) => string;\n /** Keyboard-legend rows rendered in the footer. */\n readonly footerLegend: readonly CngxCommandPaletteLegendEntry[];\n}\n\n/** @internal */\nexport const CNGX_COMMAND_PALETTE_DEFAULTS: CngxCommandPaletteDefaults = {\n openShortcut: 'mod+k',\n searchPlaceholder: 'Type a command or search...',\n listboxLabel: 'Commands',\n emptyLabel: 'No matching commands.',\n loadingLabel: 'Loading commands...',\n errorLabel: 'Could not load commands.',\n retryLabel: 'Retry',\n resultCount: (count) => (count === 1 ? '1 result' : `${count} results`),\n footerLegend: [\n { keys: 'up down', label: 'Navigate' },\n { keys: 'enter', label: 'Run' },\n { keys: 'esc', label: 'Close' },\n ],\n};\n","import {\n inject,\n InjectionToken,\n makeEnvironmentProviders,\n Optional,\n SkipSelf,\n type EnvironmentProviders,\n type Provider,\n} from '@angular/core';\n\nimport { CNGX_COMMAND_PALETTE_DEFAULTS } from '../panel/command-palette-defaults';\nimport type {\n CngxCommandGroupHeaderContext,\n CngxCommandPaletteEmptyContext,\n CngxCommandPaletteErrorContext,\n CngxCommandPaletteFooterContext,\n CngxCommandPaletteLoadingContext,\n CngxCommandRowContext,\n} from '../slots/command-slots';\nimport type { TemplateRef } from '@angular/core';\n\n/**\n * Global default template overrides, keyed by slot. Resolution order for any\n * fragment is instance `*cngxCommand*` slot > this map > the built-in default.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport interface CngxCommandPaletteTemplates {\n readonly row?: TemplateRef<CngxCommandRowContext>;\n readonly groupHeader?: TemplateRef<CngxCommandGroupHeaderContext>;\n readonly empty?: TemplateRef<CngxCommandPaletteEmptyContext>;\n readonly loading?: TemplateRef<CngxCommandPaletteLoadingContext>;\n readonly error?: TemplateRef<CngxCommandPaletteErrorContext>;\n readonly footer?: TemplateRef<CngxCommandPaletteFooterContext>;\n}\n\n/**\n * One keyboard-legend row in the palette footer: the key glyphs and what they\n * do.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport interface CngxCommandPaletteLegendEntry {\n readonly keys: string;\n readonly label: string;\n}\n\n/**\n * Resolved, localisable configuration for the command palette. English by\n * default (sourced from the internal defaults); German or any other locale is\n * consumer-supplied through {@link provideCommandPaletteConfig} and the `with*`\n * features - never hard-coded (`feedback_en_default_locale`).\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport interface CngxCommandPaletteConfig {\n /**\n * Combo string that opens the palette (parsed via `parseKeyCombo`, e.g.\n * `'mod+k'`, `'mod+shift+p'`). A per-instance `[openShortcut]` wins over this.\n */\n readonly openShortcut: string;\n /** Placeholder + accessible name for the search input. */\n readonly searchPlaceholder: string;\n /** Accessible label for the results listbox. */\n readonly listboxLabel: string;\n /** Empty-state copy (async source returned no results). */\n readonly emptyLabel: string;\n /** First-load skeleton copy. */\n readonly loadingLabel: string;\n /** Error-state copy. */\n readonly errorLabel: string;\n /** Retry-button copy in the error state. */\n readonly retryLabel: string;\n /** Builds the polite `aria-live` result-count message. */\n readonly resultCount: (count: number) => string;\n /** Keyboard-legend rows rendered in the footer. */\n readonly footerLegend: readonly CngxCommandPaletteLegendEntry[];\n /** Global default slot templates (config = strings, slots = structure). */\n readonly templates?: CngxCommandPaletteTemplates;\n}\n\n/**\n * A partial-config override produced by a `with*` helper.\n *\n * There is one config surface today, so this is a plain mutator - no\n * `_target` discriminator. If a second palette config surface ever lands and a\n * `provideCngxCommandPalette` aggregator is introduced, add the discriminator\n * then (the menu family's `_target` pattern), not preemptively.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport type CngxCommandPaletteConfigFeature = (\n config: CngxCommandPaletteConfig,\n) => CngxCommandPaletteConfig;\n\n/**\n * Library-default palette configuration, built from the internal defaults\n * const. English-only.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport const DEFAULT_COMMAND_PALETTE_CONFIG: CngxCommandPaletteConfig = {\n openShortcut: CNGX_COMMAND_PALETTE_DEFAULTS.openShortcut,\n searchPlaceholder: CNGX_COMMAND_PALETTE_DEFAULTS.searchPlaceholder,\n listboxLabel: CNGX_COMMAND_PALETTE_DEFAULTS.listboxLabel,\n emptyLabel: CNGX_COMMAND_PALETTE_DEFAULTS.emptyLabel,\n loadingLabel: CNGX_COMMAND_PALETTE_DEFAULTS.loadingLabel,\n errorLabel: CNGX_COMMAND_PALETTE_DEFAULTS.errorLabel,\n retryLabel: CNGX_COMMAND_PALETTE_DEFAULTS.retryLabel,\n resultCount: CNGX_COMMAND_PALETTE_DEFAULTS.resultCount,\n footerLegend: CNGX_COMMAND_PALETTE_DEFAULTS.footerLegend,\n};\n\n/**\n * DI token carrying the resolved {@link CngxCommandPaletteConfig}. Defaults to\n * {@link DEFAULT_COMMAND_PALETTE_CONFIG} at root; override app-wide via\n * {@link provideCommandPaletteConfig} or per-scope via\n * {@link provideCommandPaletteConfigAt}.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport const CNGX_COMMAND_PALETTE_CONFIG = new InjectionToken<CngxCommandPaletteConfig>(\n 'CngxCommandPaletteConfig',\n { providedIn: 'root', factory: () => DEFAULT_COMMAND_PALETTE_CONFIG },\n);\n\n/** @internal */\nfunction applyFeatures(\n base: CngxCommandPaletteConfig,\n features: readonly CngxCommandPaletteConfigFeature[],\n): CngxCommandPaletteConfig {\n return features.reduce((config, feature) => feature(config), base);\n}\n\n/**\n * Provide a palette configuration at app root.\n *\n * ```ts\n * provideCommandPaletteConfig(\n * withCommandPaletteLabels({ emptyLabel: 'Keine Treffer.' }),\n * withKeyboardLegend([{ keys: 'enter', label: 'Ausführen' }]),\n * )\n * ```\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport function provideCommandPaletteConfig(\n ...features: CngxCommandPaletteConfigFeature[]\n): EnvironmentProviders {\n return makeEnvironmentProviders([\n {\n provide: CNGX_COMMAND_PALETTE_CONFIG,\n useFactory: () => applyFeatures(DEFAULT_COMMAND_PALETTE_CONFIG, features),\n },\n ]);\n}\n\n/**\n * Component-scoped palette configuration override. Features merge on top of the\n * enclosing scope (root or a parent `viewProviders`).\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport function provideCommandPaletteConfigAt(\n ...features: CngxCommandPaletteConfigFeature[]\n): Provider[] {\n return [\n {\n provide: CNGX_COMMAND_PALETTE_CONFIG,\n useFactory: (parent: CngxCommandPaletteConfig | null) =>\n applyFeatures(parent ?? DEFAULT_COMMAND_PALETTE_CONFIG, features),\n deps: [[new SkipSelf(), new Optional(), CNGX_COMMAND_PALETTE_CONFIG]],\n },\n ];\n}\n\n/**\n * Resolves the {@link CngxCommandPaletteConfig} from the current injection\n * scope. Must run in an injection context.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport function injectCommandPaletteConfig(): CngxCommandPaletteConfig {\n return inject(CNGX_COMMAND_PALETTE_CONFIG);\n}\n\n/**\n * Override any subset of the palette's text labels. Unset labels keep the\n * English defaults.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport function withCommandPaletteLabels(\n labels: Partial<\n Pick<\n CngxCommandPaletteConfig,\n 'searchPlaceholder' | 'listboxLabel' | 'emptyLabel' | 'loadingLabel' | 'errorLabel' | 'retryLabel'\n >\n >,\n): CngxCommandPaletteConfigFeature {\n return (config) => ({ ...config, ...labels });\n}\n\n/**\n * Set the combo that opens the palette (parsed via `parseKeyCombo`, e.g.\n * `'mod+k'`, `'mod+shift+p'`). Applies app-wide via `provideCommandPaletteConfig`\n * or per-scope via `provideCommandPaletteConfigAt`. A per-instance\n * `[openShortcut]` input still wins over this.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport function withPaletteShortcut(combo: string): CngxCommandPaletteConfigFeature {\n return (config) => ({ ...config, openShortcut: combo });\n}\n\n/**\n * Replace the footer keyboard legend.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport function withKeyboardLegend(\n entries: readonly CngxCommandPaletteLegendEntry[],\n): CngxCommandPaletteConfigFeature {\n return (config) => ({ ...config, footerLegend: entries });\n}\n\n/**\n * Replace the `aria-live` result-count formatter (e.g. for pluralisation in\n * another locale).\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport function withResultCountFormatter(\n formatter: (count: number) => string,\n): CngxCommandPaletteConfigFeature {\n return (config) => ({ ...config, resultCount: formatter });\n}\n\n/**\n * Register global default slot templates. Merged over any already set; a\n * per-instance `*cngxCommand*` slot still wins over these.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport function withCommandPaletteTemplates(\n templates: CngxCommandPaletteTemplates,\n): CngxCommandPaletteConfigFeature {\n return (config) => ({\n ...config,\n templates: { ...config.templates, ...templates },\n });\n}\n","import { InjectionToken, type Signal } from '@angular/core';\n\n/**\n * Contract the palette surface exposes to its panel body. One token, single\n * surface today; the container-swap second token is the documented eject seam\n * if a second surface ever lands (tracked debt), not built for one consumer.\n *\n * Focus restore is intentionally NOT on this contract - the palette renders a\n * native modal `<dialog cngxDialog>`, so `showModal()` traps focus and\n * `CngxDialog` stores the trigger at open and returns focus after the close\n * transition settles. The panel only needs to know it is open and to ask the\n * surface to dismiss when a command runs.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport interface CngxCommandPaletteHost {\n /** Whether the palette surface is currently open. */\n readonly isOpen: Signal<boolean>;\n /** Dismiss the surface (e.g. after a command runs). */\n dismiss(): void;\n}\n\n/**\n * DI token the panel injects (optional) to reach its hosting palette surface.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport const CNGX_COMMAND_PALETTE_HOST = new InjectionToken<CngxCommandPaletteHost>(\n 'CNGX_COMMAND_PALETTE_HOST',\n);\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n type Signal,\n type TemplateRef,\n} from '@angular/core';\n\nimport {\n CNGX_COMMAND_MATCH_FACTORY,\n injectCommands,\n type CngxCommand,\n type CommandGroup,\n type RankedCommand,\n} from '@cngx/common/command';\nimport { CngxListbox, CngxOption, CngxSearch } from '@cngx/common/interactive';\nimport { CngxHighlight } from '@cngx/common/layout';\nimport { nextUid, type CngxAsyncState } from '@cngx/core/utils';\n\nimport { injectCommandPaletteConfig } from '../config/command-palette-config';\nimport type {\n CngxCommandGroupHeaderContext,\n CngxCommandRowContext,\n} from '../slots/command-slots';\nimport { CNGX_COMMAND_PALETTE_HOST } from './panel-host.token';\n\n/**\n * One rendered result group: a header label (null for the ungrouped bucket)\n * plus its ranked commands, in render order.\n * @internal\n */\ninterface RenderGroup {\n readonly id: string;\n readonly label: string | null;\n readonly items: readonly RankedCommand[];\n}\n\n/**\n * @internal\n * The command-palette result body: a `role=combobox` search input driving a\n * `role=listbox` of ranked commands with `aria-activedescendant`, grouped\n * results, match highlighting, a bound scope chip, and a polite result-count\n * live region. Composes existing atoms - `CngxSearch` (debounced term),\n * `CngxListbox` + `CngxOption` (navigation over the ranked list in final DOM\n * order via the listbox's own `CngxActiveDescendant`), `CngxHighlight` (match\n * marking) - with no reinvented debounce, navigation, or ranking engine.\n *\n * The ranked list is a `computed()` over the `equal`-guarded registry, the\n * swappable matcher, `term`, `scope`, and the consumer's async result source;\n * the per-option `matchFn` never runs, so there is no double-filter.\n */\n@Component({\n selector: 'cngx-command-panel',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxSearch, CngxListbox, CngxOption, CngxHighlight, NgTemplateOutlet],\n styleUrl: './command-panel.component.css',\n host: { class: 'cngx-command-panel' },\n template: `\n <div class=\"cngx-command-panel-input-row\">\n @if (scope(); as activeScope) {\n <span class=\"cngx-command-scope-chip\">{{ activeScope }}</span>\n }\n <input\n cngxSearch\n class=\"cngx-command-panel-input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-autocomplete=\"list\"\n [attr.aria-expanded]=\"true\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"lb.ad.activeId()\"\n [attr.aria-label]=\"config.searchPlaceholder\"\n [placeholder]=\"config.searchPlaceholder\"\n [debounceMs]=\"debounceMs()\"\n (searchChange)=\"onTerm($event, lb)\"\n (keydown)=\"onKeydown($event, lb)\"\n />\n </div>\n\n <div\n cngxListbox\n #lb=\"cngxListbox\"\n [id]=\"listboxId\"\n class=\"cngx-command-panel-listbox\"\n [label]=\"config.listboxLabel\"\n [autoHighlightFirst]=\"true\"\n [externalActivation]=\"true\"\n >\n @for (group of groups(); track group.id) {\n <div role=\"group\" [attr.aria-labelledby]=\"group.label ? group.id + '-h' : null\">\n @if (group.label; as header) {\n <div class=\"cngx-command-group-header\" [id]=\"group.id + '-h'\">\n @if (groupHeaderTpl(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: toCommandGroup(group) }\"\n />\n } @else {\n {{ header }}\n }\n </div>\n }\n @for (entry of group.items; track entry.command.id) {\n <div\n cngxOption\n class=\"cngx-command-row\"\n [value]=\"entry.command.id\"\n [label]=\"entry.command.label\"\n [disabled]=\"isDisabled(entry.command)\"\n [attr.aria-describedby]=\"describedBy(entry.command)\"\n >\n @if (rowTpl(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: entry,\n term: term(),\n data: entry.command.data,\n active: lb.ad.activeValue() === entry.command.id,\n }\"\n />\n } @else {\n <span class=\"cngx-command-row-label\" [cngxHighlight]=\"term()\">{{\n entry.command.label\n }}</span>\n }\n @if (entry.command.disabledReason; as reason) {\n <!-- Target stays in the DOM whenever a reason exists; only the\n aria-describedby reference (describedBy) is gated on disabled\n state, so no referenced node ever appears/disappears mid-interaction. -->\n <span class=\"cngx-sr-only\" [id]=\"reasonId(entry.command)\">{{ reason }}</span>\n }\n </div>\n }\n </div>\n }\n </div>\n\n <span class=\"cngx-sr-only\" aria-live=\"polite\">{{ countMessage() }}</span>\n `,\n})\nexport class CngxCommandPanel {\n /** Consumer-derived async result source, merged in with the static registry. */\n readonly results = input<CngxAsyncState<CommandGroup[]> | undefined>(undefined);\n\n /** Persistent scope; feeds the matcher's scope filter and renders as a chip. */\n readonly scope = model<string | undefined>(undefined);\n\n /** Debounce for the search input (proxied to `CngxSearch`). */\n readonly debounceMs = input<number>(150);\n\n /** Resolved row slot template (instance > config > null). Built-in default when null. */\n readonly rowTpl = input<TemplateRef<CngxCommandRowContext> | null>(null);\n /** Resolved group-header slot template. Built-in default when null. */\n readonly groupHeaderTpl = input<TemplateRef<CngxCommandGroupHeaderContext> | null>(null);\n\n /** Emits the debounced term so the surface can mirror it (e.g. for the empty slot). */\n readonly termChange = output<string>();\n\n protected readonly config = injectCommandPaletteConfig();\n protected readonly listboxId = nextUid('cngx-command-listbox');\n\n private readonly commands = injectCommands();\n private readonly matcher = inject(CNGX_COMMAND_MATCH_FACTORY)();\n private readonly host = inject(CNGX_COMMAND_PALETTE_HOST, { optional: true });\n private readonly destroyRef = inject(DestroyRef);\n private readonly listbox = viewChild.required(CngxListbox);\n\n private readonly termState = signal('');\n /** Current debounced search term. Exposed for the consumer's result derivation. */\n readonly term: Signal<string> = this.termState.asReadonly();\n\n /** Grouped, ranked results: consumer async groups first, then the ranked registry. */\n protected readonly groups = computed<readonly RenderGroup[]>(\n () => {\n const ranked = this.matcher(this.commands(), this.term(), this.scope());\n const asyncState = this.results();\n const asyncGroups = asyncState ? toRenderGroups(asyncState.data() ?? []) : [];\n return [...asyncGroups, ...groupRanked(ranked)];\n },\n { equal: renderGroupsEqual },\n );\n\n /** Flat ranked list in render order, for count + command lookup. */\n private readonly flatItems = computed<readonly RankedCommand[]>(\n () => this.groups().flatMap((group) => group.items),\n { equal: rankedListEqual },\n );\n\n /** Number of results across every group. Exposed for the consumer. */\n readonly resultCount = computed<number>(() => this.flatItems().length);\n\n protected readonly countMessage = computed<string>(() =>\n this.config.resultCount(this.resultCount()),\n );\n\n constructor() {\n // Click on an option routes through the listbox's active-descendant, which\n // emits `activated`; Enter forwards through the same `activateCurrent` path.\n // One subscription runs the matching command for both. externalActivation\n // stops the listbox writing its own value on activation.\n afterNextRender(() => {\n const subscription = this.listbox().ad.activated.subscribe((value) => this.runById(value));\n this.destroyRef.onDestroy(() => subscription.unsubscribe());\n });\n }\n\n protected onTerm(term: string, lb: CngxListbox): void {\n this.termState.set(term);\n this.termChange.emit(term);\n // Reset the highlight so autoHighlightFirst re-fires the top result after a\n // re-rank shrinks the list below the previously active index.\n lb.ad.resetHighlight();\n }\n\n /** Maps an internal render group to the public `CommandGroup` slot context. */\n protected toCommandGroup(group: RenderGroup): CommandGroup {\n return {\n id: group.id,\n label: group.label ?? '',\n commands: group.items.map((entry) => entry.command),\n };\n }\n\n protected onKeydown(event: KeyboardEvent, lb: CngxListbox): void {\n const ad = lb.ad;\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n ad.highlightNext();\n return;\n case 'ArrowUp':\n event.preventDefault();\n ad.highlightPrev();\n return;\n case 'Home':\n event.preventDefault();\n ad.highlightFirst();\n return;\n case 'End':\n event.preventDefault();\n ad.highlightLast();\n return;\n case 'Enter':\n if (ad.activeItem()) {\n event.preventDefault();\n ad.activateCurrent();\n }\n return;\n }\n // Space, printable characters, and Backspace fall through to the input so\n // the search term picks them up.\n }\n\n protected isDisabled(command: CngxCommand): boolean {\n return command.disabled?.() ?? false;\n }\n\n protected reasonId(command: CngxCommand): string {\n return `${this.listboxId}-reason-${command.id}`;\n }\n\n protected describedBy(command: CngxCommand): string | null {\n return this.isDisabled(command) && command.disabledReason ? this.reasonId(command) : null;\n }\n\n private runById(value: unknown): void {\n const command = this.flatItems().find((entry) => entry.command.id === value)?.command;\n if (!command || this.isDisabled(command)) {\n return;\n }\n void command.run();\n this.host?.dismiss();\n }\n}\n\n/** @internal Groups ranked results by their `group` key, preserving rank order. */\nfunction groupRanked(ranked: readonly RankedCommand[]): RenderGroup[] {\n const groups: RenderGroup[] = [];\n const index = new Map<string, RankedCommand[]>();\n for (const entry of ranked) {\n const key = entry.command.group ?? '';\n let bucket = index.get(key);\n if (!bucket) {\n bucket = [];\n index.set(key, bucket);\n groups.push({ id: `g-${key || 'ungrouped'}`, label: entry.command.group ?? null, items: bucket });\n }\n bucket.push(entry);\n }\n return groups;\n}\n\n/** @internal Maps consumer async command groups into render groups (score 0). */\nfunction toRenderGroups(source: readonly CommandGroup[]): RenderGroup[] {\n return source.map((group) => ({\n id: `a-${group.id}`,\n label: group.label,\n items: group.commands.map((command) => ({ command, score: 0 })),\n }));\n}\n\n/** @internal Length + id + per-command identity across groups. */\nfunction renderGroupsEqual(a: readonly RenderGroup[], b: readonly RenderGroup[]): boolean {\n if (a === b) {\n return true;\n }\n if (a.length !== b.length) {\n return false;\n }\n return a.every((group, i) => {\n const other = b[i];\n return group.id === other.id && group.label === other.label && rankedListEqual(group.items, other.items);\n });\n}\n\n/** @internal Length + per-command identity. */\nfunction rankedListEqual(a: readonly RankedCommand[], b: readonly RankedCommand[]): boolean {\n if (a === b) {\n return true;\n }\n if (a.length !== b.length) {\n return false;\n }\n return a.every((entry, i) => entry.command === b[i].command && entry.score === b[i].score);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n output,\n ViewEncapsulation,\n type TemplateRef,\n} from '@angular/core';\n\nimport type { CommandGroup } from '@cngx/common/command';\nimport { resolveAsyncView, type AsyncView } from '@cngx/common/data';\nimport type { CngxAsyncState } from '@cngx/core/utils';\n\nimport { injectCommandPaletteConfig } from '../config/command-palette-config';\nimport type {\n CngxCommandPaletteEmptyContext,\n CngxCommandPaletteErrorContext,\n CngxCommandPaletteLoadingContext,\n} from '../slots/command-slots';\n\n/**\n * @internal\n * Async-state view switch that wraps {@link CngxCommandPanel}. Maps the\n * consumer's `CngxAsyncState<CommandGroup[]>` through `resolveAsyncView()` to\n * the six-state enum and renders the matching state: `skeleton` on first load,\n * `empty` on an empty success, `error` on a first-load failure, and the\n * projected panel for `content` / `content+error` / `none`. `content+error`\n * keeps the stale results visible while a re-query on the next keystroke errors.\n *\n * Each state resolves its slot template (instance > config > built-in default),\n * passed down from the palette. With no `[results]` bound (static registry\n * only) the view is always `content`, so the panel renders unconditionally.\n */\n@Component({\n selector: 'cngx-command-panel-shell',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [NgTemplateOutlet],\n template: `\n @switch (view()) {\n @case ('skeleton') {\n @if (loadingTpl(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{}\" />\n } @else {\n <div class=\"cngx-command-state\" aria-busy=\"true\">{{ config.loadingLabel }}</div>\n }\n }\n @case ('empty') {\n @if (emptyTpl(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ term: term() }\" />\n } @else {\n <div class=\"cngx-command-state cngx-command-state--empty\">{{ config.emptyLabel }}</div>\n }\n }\n @case ('error') {\n @if (errorTpl(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ error: errorValue(), retry: emitRetry }\"\n />\n } @else {\n <div class=\"cngx-command-state cngx-command-state--error\" role=\"alert\">\n <span>{{ config.errorLabel }}</span>\n <button type=\"button\" class=\"cngx-command-retry\" (click)=\"retry.emit()\">\n {{ config.retryLabel }}\n </button>\n </div>\n }\n }\n @default {\n @if (view() === 'content+error') {\n <div class=\"cngx-command-state--error-banner\" role=\"alert\">{{ config.errorLabel }}</div>\n }\n <ng-content />\n }\n }\n `,\n})\nexport class CngxCommandPanelShell {\n /** Consumer-derived async result state driving the view switch. */\n readonly results = input<CngxAsyncState<CommandGroup[]> | undefined>(undefined);\n\n /** Current term, mirrored from the panel - the empty slot's context. */\n readonly term = input<string>('');\n\n /** Resolved slot templates (instance > config > null). Built-in default when null. */\n readonly emptyTpl = input<TemplateRef<CngxCommandPaletteEmptyContext> | null>(null);\n readonly loadingTpl = input<TemplateRef<CngxCommandPaletteLoadingContext> | null>(null);\n readonly errorTpl = input<TemplateRef<CngxCommandPaletteErrorContext> | null>(null);\n\n /** Fired when the user clicks Retry in the error state. */\n readonly retry = output<void>();\n\n protected readonly config = injectCommandPaletteConfig();\n\n /** The resolved view. `content` when no async source is bound. */\n protected readonly view = computed<AsyncView>(() => {\n const state = this.results();\n if (!state) {\n return 'content';\n }\n return resolveAsyncView(state.status(), state.isFirstLoad(), state.isEmpty());\n });\n\n protected readonly errorValue = computed<unknown>(() => this.results()?.error());\n\n /** Stable bound callback for the error slot's `retry`. */\n protected readonly emitRetry = (): void => this.retry.emit();\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\nimport type { CommandGroup, RankedCommand } from '@cngx/common/command';\n\n/**\n * Context for the {@link CngxCommandRow} slot. Region granularity: the whole\n * row is one slot, so the consumer lays out icon / label / shortcut-hint\n * inside its own template. `data` is the command's opaque payload, narrowed at\n * the use-site; `active` reflects the current `aria-activedescendant`.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport interface CngxCommandRowContext {\n readonly $implicit: RankedCommand;\n readonly term: string;\n readonly data: unknown;\n readonly active: boolean;\n}\n\n/** Context for the {@link CngxCommandGroupHeader} slot. Recents is a group. */\nexport interface CngxCommandGroupHeaderContext {\n readonly $implicit: CommandGroup;\n}\n\n/** Context for the {@link CngxCommandPaletteEmpty} slot. */\nexport interface CngxCommandPaletteEmptyContext {\n readonly term: string;\n}\n\n/** Context for the {@link CngxCommandPaletteLoading} slot. */\nexport type CngxCommandPaletteLoadingContext = Record<string, never>;\n\n/** Context for the {@link CngxCommandPaletteError} slot. */\nexport interface CngxCommandPaletteErrorContext {\n readonly error: unknown;\n readonly retry: () => void;\n}\n\n/** Context for the {@link CngxCommandPaletteFooter} slot. */\nexport type CngxCommandPaletteFooterContext = Record<string, never>;\n\n/**\n * Overrides the default command row. Project as content of\n * `<cngx-command-palette>`:\n *\n * ```html\n * <cngx-command-palette>\n * <ng-template cngxCommandRow let-entry let-active=\"active\">\n * <my-icon [name]=\"entry.command.icon\" />\n * <span>{{ entry.command.label }}</span>\n * </ng-template>\n * </cngx-command-palette>\n * ```\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\n@Directive({ selector: '[cngxCommandRow]', standalone: true })\nexport class CngxCommandRow {\n readonly templateRef = inject<TemplateRef<CngxCommandRowContext>>(TemplateRef);\n static ngTemplateContextGuard(_dir: CngxCommandRow, ctx: unknown): ctx is CngxCommandRowContext {\n return true;\n }\n}\n\n/**\n * Overrides the default group header.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\n@Directive({ selector: '[cngxCommandGroupHeader]', standalone: true })\nexport class CngxCommandGroupHeader {\n readonly templateRef = inject<TemplateRef<CngxCommandGroupHeaderContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _dir: CngxCommandGroupHeader,\n ctx: unknown,\n ): ctx is CngxCommandGroupHeaderContext {\n return true;\n }\n}\n\n/**\n * Overrides the default empty state.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\n@Directive({ selector: '[cngxCommandPaletteEmpty]', standalone: true })\nexport class CngxCommandPaletteEmpty {\n readonly templateRef = inject<TemplateRef<CngxCommandPaletteEmptyContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _dir: CngxCommandPaletteEmpty,\n ctx: unknown,\n ): ctx is CngxCommandPaletteEmptyContext {\n return true;\n }\n}\n\n/**\n * Overrides the default first-load skeleton.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\n@Directive({ selector: '[cngxCommandPaletteLoading]', standalone: true })\nexport class CngxCommandPaletteLoading {\n readonly templateRef = inject<TemplateRef<CngxCommandPaletteLoadingContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _dir: CngxCommandPaletteLoading,\n ctx: unknown,\n ): ctx is CngxCommandPaletteLoadingContext {\n return true;\n }\n}\n\n/**\n * Overrides the default error state. Wire `retry` to your reload path.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\n@Directive({ selector: '[cngxCommandPaletteError]', standalone: true })\nexport class CngxCommandPaletteError {\n readonly templateRef = inject<TemplateRef<CngxCommandPaletteErrorContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _dir: CngxCommandPaletteError,\n ctx: unknown,\n ): ctx is CngxCommandPaletteErrorContext {\n return true;\n }\n}\n\n/**\n * Overrides the default keyboard-legend footer.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\n@Directive({ selector: '[cngxCommandPaletteFooter]', standalone: true })\nexport class CngxCommandPaletteFooter {\n readonly templateRef = inject<TemplateRef<CngxCommandPaletteFooterContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _dir: CngxCommandPaletteFooter,\n ctx: unknown,\n ): ctx is CngxCommandPaletteFooterContext {\n return true;\n }\n}\n","import { InjectionToken } from '@angular/core';\n\nimport { matchesKeyCombo, type KeyCombo } from '@cngx/core/utils';\n\n/**\n * Handle returned by a palette keybinding: a teardown that removes the document\n * listener. The palette recreates the keybinding whenever the resolved combo\n * changes and tears the previous one down, so nothing leaks document-wide.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport interface CngxPaletteKeybinding {\n /** Removes the installed document keydown listener. */\n teardown(): void;\n}\n\n/**\n * Factory producing a {@link CngxPaletteKeybinding} for a combo. It installs a\n * global listener that invokes `onOpen` whenever the combo is pressed. Captured\n * as a type alias so an override matches the exact signature - a consumer can\n * swap in an enterprise key-capture policy without touching the palette.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport type CngxPaletteKeybindingFactory = (\n combo: KeyCombo,\n onOpen: () => void,\n) => CngxPaletteKeybinding;\n\n/**\n * Default palette keybinding: installs a document keydown listener that calls\n * `onOpen` whenever the combo is pressed (matched via `matchesKeyCombo`).\n * Side-effectful by design - it owns the global listener - so its `teardown`\n * must be called on destroy.\n *\n * `isMac` defaults to platform detection; pass it explicitly for deterministic\n * tests.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport function createPaletteKeybinding(\n combo: KeyCombo,\n onOpen: () => void,\n isMac: boolean = detectMac(),\n): CngxPaletteKeybinding {\n const handler = (event: KeyboardEvent): void => {\n if (matchesKeyCombo(event, combo, isMac)) {\n event.preventDefault();\n onOpen();\n }\n };\n document.addEventListener('keydown', handler);\n return { teardown: () => document.removeEventListener('keydown', handler) };\n}\n\n/**\n * Swappable open-trigger seam. Defaults to {@link createPaletteKeybinding}.\n * Override it to install an enterprise key-capture policy without touching the\n * palette. To only change the *combo*, prefer `withPaletteShortcut(...)` or the\n * `[openShortcut]` input - this token is for replacing the whole listener.\n *\n * @category ui/command-palette\n * @since 0.1.0\n */\nexport const CNGX_PALETTE_KEYBINDING_FACTORY = new InjectionToken<CngxPaletteKeybindingFactory>(\n 'CNGX_PALETTE_KEYBINDING_FACTORY',\n { providedIn: 'root', factory: () => createPaletteKeybinding },\n);\n\n/** @internal Best-effort macOS detection; overridable via the `isMac` argument. */\nfunction detectMac(): boolean {\n return typeof navigator !== 'undefined' && /mac/i.test(navigator.platform);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n type Signal,\n} from '@angular/core';\n\nimport type { CommandGroup } from '@cngx/common/command';\nimport { CngxDialog } from '@cngx/common/dialog';\nimport { parseKeyCombo, type CngxAsyncState } from '@cngx/core/utils';\n\nimport { injectCommandPaletteConfig } from '../config/command-palette-config';\nimport { CngxCommandPanel } from '../panel/command-panel.component';\nimport { CngxCommandPanelShell } from '../panel/command-panel-shell.component';\nimport { CNGX_COMMAND_PALETTE_HOST, type CngxCommandPaletteHost } from '../panel/panel-host.token';\nimport {\n CngxCommandGroupHeader,\n CngxCommandPaletteEmpty,\n CngxCommandPaletteError,\n CngxCommandPaletteFooter,\n CngxCommandPaletteLoading,\n CngxCommandRow,\n} from '../slots/command-slots';\nimport { CNGX_PALETTE_KEYBINDING_FACTORY } from './palette-keybinding';\n\n/**\n * The opinionated Cmd/Ctrl+K command palette preset. Renders the panel body +\n * async-state shell inside a native modal `<dialog cngxDialog>`, so focus\n * trapping, trigger storage at open, and focus restore after the close\n * transition are handled by `CngxDialog` and the platform - no hand-rolled\n * focus machinery. The palette provides `CNGX_COMMAND_PALETTE_HOST` so the\n * panel can dismiss it when a command runs.\n *\n * Type-to-filter runs over the merged command registry (`injectCommands`) plus\n * the consumer's async `[results]`; the palette commits no form value - it\n * fires `command.run()`, the locked demarcation from `CngxCombobox`. The global\n * Cmd/Ctrl+K open combo is wired by the keybinding factory, not here.\n *\n * ```html\n * <cngx-command-palette #palette [results]=\"results()\" />\n * <button [cngxCommandPaletteTrigger]=\"palette\">Search commands</button>\n * ```\n *\n * @category ui/command-palette\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/command-palette/palette/command-palette.component.ts\n * @selector cngx-command-palette\n * @since 0.1.0\n * @relatedTo CngxCommandPaletteTrigger, provideCommands, CngxDialog\n */\n@Component({\n selector: 'cngx-command-palette',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxDialog, CngxCommandPanelShell, CngxCommandPanel, NgTemplateOutlet],\n providers: [{ provide: CNGX_COMMAND_PALETTE_HOST, useExisting: CngxCommandPalette }],\n styleUrl: './command-palette.component.css',\n template: `\n <dialog\n cngxDialog\n #dialog=\"cngxDialog\"\n class=\"cngx-command-palette\"\n [attr.aria-label]=\"ariaLabel()\"\n >\n <cngx-command-panel-shell\n [results]=\"results()\"\n [term]=\"term()\"\n [emptyTpl]=\"emptyTpl()\"\n [loadingTpl]=\"loadingTpl()\"\n [errorTpl]=\"errorTpl()\"\n (retry)=\"retry.emit()\"\n >\n <cngx-command-panel\n [results]=\"results()\"\n [(scope)]=\"scope\"\n [debounceMs]=\"debounceMs()\"\n [rowTpl]=\"rowTpl()\"\n [groupHeaderTpl]=\"groupHeaderTpl()\"\n (termChange)=\"term.set($event)\"\n />\n </cngx-command-panel-shell>\n <footer class=\"cngx-command-footer\">\n @if (footerTpl(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{}\" />\n } @else {\n @for (entry of config.footerLegend; track entry.label) {\n <span class=\"cngx-command-legend\"><kbd>{{ entry.keys }}</kbd> {{ entry.label }}</span>\n }\n }\n </footer>\n </dialog>\n `,\n})\nexport class CngxCommandPalette implements CngxCommandPaletteHost {\n /** Consumer-derived async result source. */\n readonly results = input<CngxAsyncState<CommandGroup[]> | undefined>(undefined);\n\n /** Two-way scope; feeds the matcher's scope filter and the panel chip. */\n readonly scope = model<string | undefined>(undefined);\n\n /** Debounce for the search input. */\n readonly debounceMs = input<number>(150);\n\n /** Accessible name for the dialog. */\n readonly ariaLabel = input<string>('Command palette');\n\n /**\n * Per-instance open combo (parsed via `parseKeyCombo`, e.g. `'mod+shift+p'`).\n * Wins over `CNGX_COMMAND_PALETTE_CONFIG.openShortcut` (`withPaletteShortcut`),\n * which wins over the `'mod+k'` default. Changing it live re-installs the\n * listener. For a full listener swap, override `CNGX_PALETTE_KEYBINDING_FACTORY`.\n */\n readonly openShortcut = input<string | undefined>(undefined);\n\n /** Fired when the user asks to retry a failed result load. */\n readonly retry = output<void>();\n\n protected readonly config = injectCommandPaletteConfig();\n\n /** Mirror of the panel's debounced term, so the empty slot can read it. */\n protected readonly term = signal('');\n\n // Instance slot directives (content-projected). contentChild must be a direct\n // field initializer (AOT NG8110). Each resolves instance > config > null.\n private readonly rowSlot = contentChild(CngxCommandRow);\n private readonly groupHeaderSlot = contentChild(CngxCommandGroupHeader);\n private readonly emptySlot = contentChild(CngxCommandPaletteEmpty);\n private readonly loadingSlot = contentChild(CngxCommandPaletteLoading);\n private readonly errorSlot = contentChild(CngxCommandPaletteError);\n private readonly footerSlot = contentChild(CngxCommandPaletteFooter);\n\n protected readonly rowTpl = computed(\n () => this.rowSlot()?.templateRef ?? this.config.templates?.row ?? null,\n );\n protected readonly groupHeaderTpl = computed(\n () => this.groupHeaderSlot()?.templateRef ?? this.config.templates?.groupHeader ?? null,\n );\n protected readonly emptyTpl = computed(\n () => this.emptySlot()?.templateRef ?? this.config.templates?.empty ?? null,\n );\n protected readonly loadingTpl = computed(\n () => this.loadingSlot()?.templateRef ?? this.config.templates?.loading ?? null,\n );\n protected readonly errorTpl = computed(\n () => this.errorSlot()?.templateRef ?? this.config.templates?.error ?? null,\n );\n protected readonly footerTpl = computed(\n () => this.footerSlot()?.templateRef ?? this.config.templates?.footer ?? null,\n );\n\n private readonly dialog = viewChild(CngxDialog);\n\n /** Whether the palette is open. Part of the {@link CngxCommandPaletteHost} contract. */\n readonly isOpen: Signal<boolean> = computed(\n () => (this.dialog()?.lifecycle() ?? 'closed') !== 'closed',\n );\n\n /** Resolved open combo: instance input > config > `'mod+k'` default. */\n private readonly resolvedShortcut = computed(\n () => this.openShortcut() ?? this.config.openShortcut,\n );\n\n constructor() {\n // The swappable factory installs the global open combo and calls back to\n // open the palette. The effect re-installs the listener whenever the\n // resolved combo changes; onCleanup tears down the previous listener (and\n // the last one on destroy), so nothing leaks document-wide.\n const factory = inject(CNGX_PALETTE_KEYBINDING_FACTORY);\n effect((onCleanup) => {\n const keybinding = factory(parseKeyCombo(this.resolvedShortcut()), () => this.open());\n onCleanup(() => keybinding.teardown());\n });\n }\n\n /** Open the palette. */\n open(): void {\n this.dialog()?.open();\n }\n\n /** Dismiss the palette. Focus returns to the trigger via `CngxDialog`. */\n dismiss(): void {\n this.dialog()?.dismiss();\n }\n}\n","import { Directive, input } from '@angular/core';\n\nimport type { CngxCommandPalette } from './command-palette.component';\n\n/**\n * Optional explicit trigger for a {@link CngxCommandPalette}. Opens the palette\n * on click and advertises the popup relationship to assistive tech. Pass the\n * palette by template reference - orthogonal composition, no ancestor\n * injection.\n *\n * ```html\n * <button [cngxCommandPaletteTrigger]=\"palette\">\n * Search <kbd>Cmd K</kbd>\n * </button>\n * <cngx-command-palette #palette />\n * ```\n *\n * @category ui/command-palette\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/command-palette/palette/command-palette-trigger.directive.ts\n * @since 0.1.0\n * @relatedTo CngxCommandPalette\n */\n@Directive({\n selector: '[cngxCommandPaletteTrigger]',\n exportAs: 'cngxCommandPaletteTrigger',\n standalone: true,\n host: {\n '[attr.aria-haspopup]': '\"dialog\"',\n '(click)': 'open()',\n },\n})\nexport class CngxCommandPaletteTrigger {\n /** The palette this trigger opens. */\n readonly palette = input.required<CngxCommandPalette>({ alias: 'cngxCommandPaletteTrigger' });\n\n protected open(): void {\n this.palette().open();\n }\n}\n","/**\n * @module @cngx/ui/command-palette\n */\nexport { CngxCommandPalette } from './palette/command-palette.component';\nexport { CngxCommandPaletteTrigger } from './palette/command-palette-trigger.directive';\nexport {\n CNGX_COMMAND_PALETTE_HOST,\n type CngxCommandPaletteHost,\n} from './panel/panel-host.token';\nexport {\n CNGX_PALETTE_KEYBINDING_FACTORY,\n createPaletteKeybinding,\n type CngxPaletteKeybinding,\n type CngxPaletteKeybindingFactory,\n} from './palette/palette-keybinding';\nexport {\n CNGX_COMMAND_PALETTE_CONFIG,\n provideCommandPaletteConfig,\n provideCommandPaletteConfigAt,\n injectCommandPaletteConfig,\n withCommandPaletteLabels,\n withPaletteShortcut,\n withKeyboardLegend,\n withResultCountFormatter,\n withCommandPaletteTemplates,\n type CngxCommandPaletteConfig,\n type CngxCommandPaletteConfigFeature,\n type CngxCommandPaletteLegendEntry,\n type CngxCommandPaletteTemplates,\n} from './config/command-palette-config';\nexport {\n CngxCommandRow,\n CngxCommandGroupHeader,\n CngxCommandPaletteEmpty,\n CngxCommandPaletteLoading,\n CngxCommandPaletteError,\n CngxCommandPaletteFooter,\n type CngxCommandRowContext,\n type CngxCommandGroupHeaderContext,\n type CngxCommandPaletteEmptyContext,\n type CngxCommandPaletteLoadingContext,\n type CngxCommandPaletteErrorContext,\n type CngxCommandPaletteFooterContext,\n} from './slots/command-slots';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;AAyBA;AACO,MAAM,6BAA6B,GAA+B;AACvE,IAAA,YAAY,EAAE,OAAO;AACrB,IAAA,iBAAiB,EAAE,6BAA6B;AAChD,IAAA,YAAY,EAAE,UAAU;AACxB,IAAA,UAAU,EAAE,uBAAuB;AACnC,IAAA,YAAY,EAAE,qBAAqB;AACnC,IAAA,UAAU,EAAE,0BAA0B;AACtC,IAAA,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,CAAC,KAAK,MAAM,KAAK,KAAK,CAAC,GAAG,UAAU,GAAG,CAAA,EAAG,KAAK,UAAU,CAAC;AACvE,IAAA,YAAY,EAAE;AACZ,QAAA,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;AACtC,QAAA,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE;AAC/B,QAAA,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE;AAChC,KAAA;CACF;;AC2DD;;;;;;AAMG;AACI,MAAM,8BAA8B,GAA6B;IACtE,YAAY,EAAE,6BAA6B,CAAC,YAAY;IACxD,iBAAiB,EAAE,6BAA6B,CAAC,iBAAiB;IAClE,YAAY,EAAE,6BAA6B,CAAC,YAAY;IACxD,UAAU,EAAE,6BAA6B,CAAC,UAAU;IACpD,YAAY,EAAE,6BAA6B,CAAC,YAAY;IACxD,UAAU,EAAE,6BAA6B,CAAC,UAAU;IACpD,UAAU,EAAE,6BAA6B,CAAC,UAAU;IACpD,WAAW,EAAE,6BAA6B,CAAC,WAAW;IACtD,YAAY,EAAE,6BAA6B,CAAC,YAAY;CACzD;AAED;;;;;;;;AAQG;MACU,2BAA2B,GAAG,IAAI,cAAc,CAC3D,0BAA0B,EAC1B,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,8BAA8B,EAAE;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