@cngx/ui 0.1.0-rc.6 → 0.1.0-rc.8
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.
- package/README.md +112 -1
- package/a11y/README.md +87 -0
- package/accordion/README.md +4 -2
- package/breadcrumb/README.md +262 -0
- package/collection/README.md +6 -0
- package/command-palette/README.md +224 -0
- package/context-menu/README.md +98 -0
- package/data-grid-accordion/README.md +103 -2
- package/feedback/README.md +42 -0
- package/fesm2022/cngx-ui-a11y.mjs +452 -0
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
- package/fesm2022/cngx-ui-accordion.mjs +116 -38
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +115 -50
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +181 -96
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +586 -0
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
- package/fesm2022/cngx-ui-collection.mjs +207 -66
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +1281 -0
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
- package/fesm2022/cngx-ui-context-menu.mjs +857 -0
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +498 -111
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +16 -6
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +1095 -521
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +18 -9
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +84 -16
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +370 -203
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-overlay.mjs +69 -13
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +501 -182
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +327 -106
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +22 -21
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +107 -8
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +718 -0
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
- package/fesm2022/cngx-ui-stepper.mjs +217 -76
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +40 -19
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +548 -0
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
- package/fesm2022/cngx-ui-toc.mjs +748 -0
- package/fesm2022/cngx-ui-toc.mjs.map +1 -0
- package/fesm2022/cngx-ui.mjs +16 -21
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-accordion/README.md +1 -1
- package/mat-paginator/README.md +9 -2
- package/mat-tabs/styles/mat-tabs.css +29 -27
- package/overlay/README.md +9 -4
- package/package.json +32 -1
- package/paginator/README.md +8 -4
- package/sidenav/README.md +33 -11
- package/skeleton/README.md +2 -0
- package/speak/README.md +3 -2
- package/stepper/README.md +15 -3
- package/timeline/README.md +350 -0
- package/toc/README.md +186 -0
- package/types/cngx-ui-a11y.d.ts +394 -0
- package/types/cngx-ui-accordion.d.ts +100 -30
- package/types/cngx-ui-action-button.d.ts +47 -3
- package/types/cngx-ui-breadcrumb.d.ts +159 -58
- package/types/cngx-ui-chart-panel.d.ts +382 -0
- package/types/cngx-ui-collection.d.ts +159 -58
- package/types/cngx-ui-command-palette.d.ts +565 -0
- package/types/cngx-ui-context-menu.d.ts +559 -0
- package/types/cngx-ui-data-grid-accordion.d.ts +344 -51
- package/types/cngx-ui-empty-state.d.ts +9 -2
- package/types/cngx-ui-feedback.d.ts +664 -73
- package/types/cngx-ui-layout.d.ts +8 -3
- package/types/cngx-ui-mat-accordion.d.ts +32 -4
- package/types/cngx-ui-mat-paginator.d.ts +37 -8
- package/types/cngx-ui-mat-stepper.d.ts +23 -11
- package/types/cngx-ui-mat-tabs.d.ts +218 -23
- package/types/cngx-ui-overlay.d.ts +56 -10
- package/types/cngx-ui-paginator.d.ts +416 -132
- package/types/cngx-ui-sidenav.d.ts +248 -74
- package/types/cngx-ui-skeleton.d.ts +18 -7
- package/types/cngx-ui-speak.d.ts +118 -5
- package/types/cngx-ui-stat-card.d.ts +411 -0
- package/types/cngx-ui-stepper.d.ts +81 -29
- package/types/cngx-ui-tabs.d.ts +22 -6
- package/types/cngx-ui-timeline.d.ts +495 -0
- package/types/cngx-ui-toc.d.ts +581 -0
- package/types/cngx-ui.d.ts +8 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cngx-ui-chart-panel.mjs","sources":["../../../projects/ui/chart-panel/i18n/chart-panel-language-section.ts","../../../projects/ui/chart-panel/i18n/chart-panel-i18n.ts","../../../projects/ui/chart-panel/config/chart-panel.config.defaults.ts","../../../projects/ui/chart-panel/config/inject-chart-panel-config.ts","../../../projects/ui/chart-panel/chart-panel.token.ts","../../../projects/ui/chart-panel/chart-panel.component.ts","../../../projects/ui/chart-panel/config/provide-chart-panel-config.ts","../../../projects/ui/chart-panel/config/features.ts","../../../projects/ui/chart-panel/chart-panel-slots.ts","../../../projects/ui/chart-panel/public-api.ts","../../../projects/ui/chart-panel/cngx-ui-chart-panel.ts"],"sourcesContent":["/**\n * The chart-panel section of a {@link CngxLanguagePack}: the copy of\n * `CngxChartPanel`. It feeds the `ariaLabels` of `CNGX_CHART_PANEL_CONFIG`; a\n * key set through `withChartPanelAriaLabels` still wins.\n *\n * @category ui/chart-panel/i18n\n * @since 0.1.0\n * @relatedTo CNGX_CHART_PANEL_CONFIG, withChartPanelAriaLabels\n */\nexport interface CngxChartPanelLanguageSection {\n /** Accessible name announced while a panel-level operation runs. */\n readonly busy: string;\n}\n\n/**\n * The English chart-panel section: the single source of the chart panel's\n * English copy. The `CNGX_CHART_PANEL_CONFIG` labels default to it.\n *\n * @category ui/chart-panel/i18n\n * @since 0.1.0\n * @relatedTo CNGX_CHART_PANEL_CONFIG\n */\nexport const CNGX_CHART_PANEL_LANGUAGE_EN: CngxChartPanelLanguageSection = {\n busy: 'Updating',\n};\n\ndeclare module '@cngx/core/i18n' {\n interface CngxLanguagePack {\n readonly chartPanel: CngxChartPanelLanguageSection;\n }\n}\n","import { createLanguageSection } from '@cngx/core/i18n';\n\nimport { CNGX_CHART_PANEL_LANGUAGE_EN } from './chart-panel-language-section';\n\n/**\n * @internal The chart-panel section of the active pack over the English section,\n * shared app-wide. Consumers override copy through `withChartPanelAriaLabels`.\n */\nexport const injectChartPanelSiteCopy = createLanguageSection(\n 'chartPanel',\n CNGX_CHART_PANEL_LANGUAGE_EN,\n);\n","import { InjectionToken } from '@angular/core';\n\nimport type { CngxChartPanelConfig } from './chart-panel.config';\n\n/**\n * Library defaults for the chart-panel configuration cascade. Carries no copy:\n * the `ariaLabels` defaults are the `chartPanel` section of the language pack;\n * single keys ride the `withChartPanelAriaLabels` feature.\n *\n * Exported for intra-lib consumers but **NOT** re-exported from\n * `public-api.ts` - downstream consumers reach the defaults via\n * `inject(CNGX_CHART_PANEL_CONFIG)`.\n *\n * @internal\n */\nexport const CNGX_CHART_PANEL_DEFAULTS: CngxChartPanelConfig = {\n legendPosition: 'bottom',\n};\n\n/**\n * App-wide configuration cascade for the chart-panel. `providedIn: 'root'`\n * with a default factory, so `inject(CNGX_CHART_PANEL_CONFIG)` always\n * resolves.\n *\n * @category ui/chart-panel\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/config/chart-panel.config.defaults.ts\n * @since 0.1.0\n * @relatedTo provideChartPanelConfig, provideChartPanelConfigAt, injectChartPanelConfig\n */\nexport const CNGX_CHART_PANEL_CONFIG = new InjectionToken<CngxChartPanelConfig>(\n 'CNGX_CHART_PANEL_CONFIG',\n {\n providedIn: 'root',\n factory: () => CNGX_CHART_PANEL_DEFAULTS,\n },\n);\n","import { inject, type Signal } from '@angular/core';\nimport { createFilledOverrideMerge } from '@cngx/core/utils';\n\nimport { injectChartPanelSiteCopy } from '../i18n/chart-panel-i18n';\nimport type { CngxChartPanelAriaLabels, CngxChartPanelConfig } from './chart-panel.config';\nimport { CNGX_CHART_PANEL_CONFIG } from './chart-panel.config.defaults';\n\n/**\n * Convenience accessor for the chart-panel configuration cascade. Runs in\n * injection context; resolves through the priority chain (per-instance Input\n * -> `provideChartPanelConfigAt` -> `provideChartPanelConfig` -> library\n * defaults). Equivalent to `inject(CNGX_CHART_PANEL_CONFIG)` - the helper\n * exists so consumers don't import the token directly.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport function injectChartPanelConfig(): CngxChartPanelConfig {\n return inject(CNGX_CHART_PANEL_CONFIG);\n}\n\n/**\n * The resolved strings of the chart-panel config in scope, every key the\n * config leaves unset (also a key an override sets to `undefined`) filled from\n * the `chartPanel` section of the active pack, as a Signal that follows a\n * runtime language switch. Runs in injection context; read it inside a `computed()`, a\n * template or a handler, and untracked where it builds live-region text.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport function injectChartPanelAriaLabels(): Signal<Required<CngxChartPanelAriaLabels>> {\n return createFilledOverrideMerge(injectChartPanelSiteCopy(), injectChartPanelConfig().ariaLabels);\n}\n","import { InjectionToken, type Signal } from '@angular/core';\n\n/**\n * Contract the panel exposes to its projected slots. The title slot registers\n * its generated id on init and the panel derives its `aria-labelledby` from\n * it; the actions slot reads the panel-level busy state and the id of the\n * node that says why the actions are unavailable.\n *\n * Fronted by a DI token rather than the concrete `CngxChartPanel` class so the\n * slot stays decompose-safe - an ejected skin talks to the same token the\n * library defines. Mirrors `CNGX_STAT` behind the `cngxStat*` slots.\n */\nexport interface CngxChartPanelRegistry {\n /** Register the id contributed by the title slot. */\n registerTitle(id: string): void;\n /**\n * Withdraw a previously registered title id. Takes the id rather than no\n * argument so a destroy arriving after a replacement title already\n * registered cannot clear the newer one.\n */\n unregisterTitle(id: string): void;\n /**\n * Panel-level busy (the panel `[state]`, never the chart's data). The\n * actions slot reads it to mark each projected action disabled.\n */\n readonly busy: Signal<boolean>;\n /**\n * Id of the always-rendered node naming why the actions are disabled while\n * busy. Referenced only while `busy()` holds.\n */\n readonly busyDescriptionId: string;\n}\n\n/** DI token carrying the {@link CngxChartPanelRegistry} a `CngxChartPanel` provides. */\nexport const CNGX_CHART_PANEL = new InjectionToken<CngxChartPanelRegistry>('CNGX_CHART_PANEL');\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n type ElementRef,\n input,\n type Signal,\n signal,\n untracked,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { CngxLiveRegion } from '@cngx/common/a11y';\nimport { type CngxAsyncState, nextUid } from '@cngx/core/utils';\n\nimport {\n injectChartPanelAriaLabels,\n injectChartPanelConfig,\n} from './config/inject-chart-panel-config';\nimport { CNGX_CHART_PANEL, type CngxChartPanelRegistry } from './chart-panel.token';\n\n/**\n * Where the projected legend sits relative to the chart body.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport type CngxChartPanelLegendPosition = 'top' | 'bottom' | 'none';\n\n/**\n * Dashboard housing for a chart: a titled, footer-capable region that frames\n * whatever `cngx-chart` or preset the consumer projects into it.\n *\n * **What it deliberately does not do.** `cngx-chart` already owns the data-level\n * async envelope - its own `[state]`, its skeleton / empty / error slots, its\n * SR data table. The panel never duplicates that machine. Reproducing it here\n * would put two managers on one state (Pillar 1) and turn the panel into a\n * God-component (Pillar 3). The chart stays the authority on what the body\n * shows; the panel only frames it.\n *\n * What the panel does own is the chrome a bare chart cannot express: a title\n * that names the region for assistive tech, a subtitle, a header action\n * cluster, and a footer. `role=\"group\"` plus `aria-labelledby` pointing at the\n * projected title means a screen reader announces \"Revenue by quarter, group\"\n * instead of dropping the user into an unlabelled SVG (Pillar 2).\n *\n * Panel-level busy marks the **header**, never the group. An `aria-busy` on the\n * region would hold back the projected chart's own live announcements and tell\n * AT that a perfectly stable chart is updating - the same boundary violation in\n * the a11y layer that duplicating its view switch would be in the state layer.\n * A hidden status region (outside the busy header) announces the configured\n * `ariaLabels.busy` string while the panel-level operation runs.\n *\n * ```html\n * <cngx-chart-panel>\n * <h3 cngxChartPanelTitle>Revenue by quarter</h3>\n * <span cngxChartPanelSubtitle>EUR, net</span>\n * <button cngxChartPanelActions type=\"button\">Refresh</button>\n *\n * <cngx-chart [data]=\"series\" [state]=\"revenue\">\n * <svg:g cngxLine [data]=\"series\"></svg:g>\n * </cngx-chart>\n *\n * <small cngxChartPanelFooter>Source: finance warehouse</small>\n * </cngx-chart-panel>\n * ```\n *\n * @category ui/chart-panel\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel.component.ts\n * @since 0.1.0\n * @relatedTo CngxChart, CngxChartLegend, CngxChartPanelTitle, CngxChartPanelActions\n *\n * <example-url>http://localhost:4200/#/ui/chart-panel/basic/titled-panel-with-legend</example-url>\n * <example-url>http://localhost:4200/#/ui/chart-panel/async/panel-chrome-vs-chart-state</example-url>\n * <example-url>http://localhost:4200/#/ui/chart-panel/slots/actions-and-footer</example-url>\n */\n@Component({\n selector: 'cngx-chart-panel',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxLiveRegion],\n providers: [{ provide: CNGX_CHART_PANEL, useExisting: CngxChartPanel }],\n host: {\n class: 'cngx-chart-panel',\n role: 'group',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.data-legend]': 'legendPosition()',\n '[class.cngx-chart-panel--busy]': 'panelBusy()',\n },\n template: `\n <header class=\"cngx-chart-panel__header\" [attr.aria-busy]=\"panelBusy() || null\">\n <div class=\"cngx-chart-panel__heading\">\n <ng-content select=\"[cngxChartPanelTitle]\" />\n <ng-content select=\"[cngxChartPanelSubtitle]\" />\n </div>\n\n <!-- Dimmed and aria-disabled while a panel-level operation runs, so a\n second range change is not invited into an in-flight one. The cluster\n stays in the DOM and in the a11y tree; only the state flips (Pillar\n 2). Deliberately not inert: that would hide the actions from AT\n entirely and the aria-disabled would never be announced. A group,\n since aria-disabled is not allowed on a generic container; it\n covers any projected content, while each [cngxChartPanelActions]\n control also carries the state and the reason itself. -->\n <div\n #actionSlot\n class=\"cngx-chart-panel__action-slot\"\n role=\"group\"\n [attr.aria-disabled]=\"panelBusy() || null\"\n [attr.aria-describedby]=\"panelBusy() ? busyDescriptionId : null\"\n >\n <ng-content select=\"[cngxChartPanelActions]\" />\n </div>\n </header>\n\n <!-- Why the actions are disabled. Always in the DOM; only the\n aria-describedby reference above is gated on the busy state. -->\n <span\n [id]=\"busyDescriptionId\"\n class=\"cngx-chart-panel__sr cngx-chart-panel__busy-description\"\n >{{ busyLabel() }}</span\n >\n\n <!-- One legend outlet, placed by the CSS order property. A duplicated\n ng-content selector would leave the second outlet permanently empty,\n and the legend carries no focusable content, so visual reordering\n cannot desync from tab order. -->\n <div class=\"cngx-chart-panel__legend\">\n <ng-content select=\"cngx-chart-legend\" />\n </div>\n\n <div class=\"cngx-chart-panel__body\">\n <!-- No view switch here, and no panel-owned placeholder either: the\n projected cngx-chart owns the data async envelope end to end. -->\n <ng-content />\n </div>\n\n <ng-content select=\"[cngxChartPanelFooter]\" />\n\n <!-- Hidden status region for the panel-level busy phase. Outside the\n aria-busy header on purpose: a live region inside a busy container\n has its announcements suppressed. -->\n <span cngxLiveRegion class=\"cngx-chart-panel__sr cngx-chart-panel__status\">{{\n busyStatus()\n }}</span>\n `,\n styleUrls: ['./chart-panel.component.css'],\n})\nexport class CngxChartPanel implements CngxChartPanelRegistry {\n private readonly titleId = signal<string | undefined>(undefined);\n private readonly config = injectChartPanelConfig();\n private readonly ariaLabels = injectChartPanelAriaLabels();\n\n /**\n * Panel-level async envelope - the one driving the header chrome, not the\n * chart's data. Bind the chart's own `[state]` to the chart; bind a\n * range-switch or export operation here. Optional per the bridge-input rule.\n */\n readonly state = input<\n CngxAsyncState<unknown> | undefined,\n CngxAsyncState<unknown> | '' | undefined\n >(undefined, { transform: (v) => (typeof v === 'string' ? undefined : v) });\n\n /**\n * Where the projected `cngx-chart-legend` sits. `'none'` hides it. Matches\n * the bare `cngx-chart-legend` tag; a legend wrapped in an element of your\n * own lands in the body slot instead.\n */\n readonly legendPosition = input<CngxChartPanelLegendPosition>(\n this.config.legendPosition ?? 'bottom',\n );\n\n /** @internal Panel-level busy, never the chart's data-loading state. */\n protected readonly panelBusy = computed(() => this.state()?.isBusy() ?? false);\n\n /** {@inheritDoc CngxChartPanelRegistry.busy} */\n readonly busy: Signal<boolean> = this.panelBusy;\n\n /** @internal Names why the action cluster is disabled while busy; follows a language switch. */\n protected readonly busyLabel = computed(() => this.ariaLabels().busy);\n\n /**\n * @internal Text of the hidden status region. The label is read untracked, so\n * a language switch does not re-announce a running busy phase; the next one\n * speaks the new language.\n */\n protected readonly busyStatus = computed(() =>\n this.panelBusy() ? untracked(() => this.ariaLabels().busy) : '',\n );\n\n /** {@inheritDoc CngxChartPanelRegistry.busyDescriptionId} */\n readonly busyDescriptionId = `${nextUid('cngx-chart-panel')}-busy`;\n\n private readonly actionSlot = viewChild.required<ElementRef<HTMLElement>>('actionSlot');\n\n constructor() {\n // Keyboard guard for the aria-disabled action cluster. `pointer-events:\n // none` stops clicks while busy, but a focused action still activates on\n // Enter/Space. Capture phase, so the guard runs before any consumer key\n // handler on the projected actions - a bubble listener would fire after\n // them and hold back only the native activation. preventDefault on\n // keydown stops the synthesized Enter click; keyup covers browsers that\n // activate buttons on Space release.\n effect((onCleanup) => {\n const slot = this.actionSlot().nativeElement;\n const guard = (event: KeyboardEvent): void => {\n if (!this.panelBusy()) {\n return;\n }\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n slot.addEventListener('keydown', guard, true);\n slot.addEventListener('keyup', guard, true);\n onCleanup(() => {\n slot.removeEventListener('keydown', guard, true);\n slot.removeEventListener('keyup', guard, true);\n });\n });\n }\n\n /** {@inheritDoc CngxChartPanelRegistry.registerTitle} */\n registerTitle(id: string): void {\n this.titleId.set(id);\n }\n\n /** {@inheritDoc CngxChartPanelRegistry.unregisterTitle} */\n unregisterTitle(id: string): void {\n this.titleId.update((current) => (current === id ? undefined : current));\n }\n\n /**\n * @internal Accessible name of the region, from the projected title slot.\n * `null` when no title was projected - an unnamed group is better than one\n * pointing at an id that does not exist.\n */\n protected readonly labelledBy = computed(() => this.titleId() ?? null);\n}\n","import {\n inject,\n makeEnvironmentProviders,\n type EnvironmentProviders,\n type Provider,\n type Signal,\n} from '@angular/core';\nimport { createOverrideMerge } from '@cngx/core/utils';\n\nimport type { CngxChartPanelAriaLabels, CngxChartPanelConfig } from './chart-panel.config';\nimport { CNGX_CHART_PANEL_CONFIG, CNGX_CHART_PANEL_DEFAULTS } from './chart-panel.config.defaults';\n\nconst NO_ARIA_LABELS: CngxChartPanelAriaLabels = {};\n\n/**\n * Discriminated-union shape returned by the chart-panel config features. The\n * reducer matches on `kind` and merges `payload` into the corresponding config\n * sub-tree. Mirrors `CngxStatCardConfigFeature` and `CngxBreadcrumbConfigFeature`.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport type CngxChartPanelConfigFeature =\n | {\n readonly kind: 'ariaLabels';\n readonly payload: CngxChartPanelAriaLabels | Signal<CngxChartPanelAriaLabels>;\n }\n | {\n readonly kind: 'legendPosition';\n readonly payload: {\n readonly legendPosition: NonNullable<CngxChartPanelConfig['legendPosition']>;\n };\n };\n\n/**\n * Reduces a list of feature objects into a partial config - last write wins\n * per sub-tree.\n *\n * @internal\n */\nfunction reduceFeatures(\n features: readonly CngxChartPanelConfigFeature[],\n): Partial<CngxChartPanelConfig> {\n const out: {\n ariaLabels?: NonNullable<CngxChartPanelConfig['ariaLabels']>;\n legendPosition?: NonNullable<CngxChartPanelConfig['legendPosition']>;\n } = {};\n for (const f of features) {\n switch (f.kind) {\n case 'ariaLabels':\n out.ariaLabels = createOverrideMerge(out.ariaLabels ?? NO_ARIA_LABELS, f.payload);\n break;\n case 'legendPosition':\n out.legendPosition = f.payload.legendPosition;\n break;\n }\n }\n return out;\n}\n\n/**\n * Two-level deep merge: the nested `ariaLabels` sub-tree spread-merges; the\n * flat top-level scalars take the partial when present, else the base.\n *\n * @internal\n */\nfunction mergeConfig(\n base: CngxChartPanelConfig,\n partial: Partial<CngxChartPanelConfig>,\n): CngxChartPanelConfig {\n return {\n ariaLabels: createOverrideMerge(base.ariaLabels ?? NO_ARIA_LABELS, partial.ariaLabels),\n legendPosition: partial.legendPosition ?? base.legendPosition,\n };\n}\n\n/**\n * Application-root configuration cascade for the chart-panel.\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideChartPanelConfig(withChartPanelLegendPosition('top'))],\n * });\n * ```\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport function provideChartPanelConfig(\n ...features: CngxChartPanelConfigFeature[]\n): EnvironmentProviders {\n // Empty-features: skip the override so the root factory's defaults reference\n // flows through untouched, preserving downstream identity comparisons.\n if (features.length === 0) {\n return makeEnvironmentProviders([]);\n }\n const partial = reduceFeatures(features);\n return makeEnvironmentProviders([\n {\n provide: CNGX_CHART_PANEL_CONFIG,\n useValue: mergeConfig(CNGX_CHART_PANEL_DEFAULTS, partial),\n },\n ]);\n}\n\n/**\n * Component-scoped configuration cascade for the chart-panel. Injects the\n * parent injector's value and deep-merges the supplied features on top.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport function provideChartPanelConfigAt(\n ...features: CngxChartPanelConfigFeature[]\n): Provider[] {\n // Empty-features call: parent value flows through untouched.\n if (features.length === 0) {\n return [];\n }\n const partial = reduceFeatures(features);\n return [\n {\n provide: CNGX_CHART_PANEL_CONFIG,\n useFactory: () => {\n const parent = inject(CNGX_CHART_PANEL_CONFIG, { skipSelf: true });\n return mergeConfig(parent, partial);\n },\n },\n ];\n}\n","import type { Signal } from '@angular/core';\n\nimport type { CngxChartPanelLegendPosition } from '../chart-panel.component';\nimport type { CngxChartPanelAriaLabels } from './chart-panel.config';\nimport type { CngxChartPanelConfigFeature } from './provide-chart-panel-config';\n\n/**\n * Override the chart-panel's string fallbacks. The defaults come from the\n * `chartPanel` section of the language pack (English without one); this\n * overrides single keys on top of it. Pass a `Signal` to switch the\n * language at runtime; the busy status speaks the new language with the next\n * busy phase.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport function withChartPanelAriaLabels(\n labels: CngxChartPanelAriaLabels | Signal<CngxChartPanelAriaLabels>,\n): CngxChartPanelConfigFeature {\n return { kind: 'ariaLabels', payload: labels };\n}\n\n/**\n * Move the cascade default for where a projected `cngx-chart-legend` sits.\n * Per-instance `[legendPosition]` still wins.\n *\n * @category ui/chart-panel\n * @since 0.1.0\n */\nexport function withChartPanelLegendPosition(\n position: CngxChartPanelLegendPosition,\n): CngxChartPanelConfigFeature {\n return { kind: 'legendPosition', payload: { legendPosition: position } };\n}\n","import {\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n} from '@angular/core';\nimport { nextUid } from '@cngx/core/utils';\n\nimport { CNGX_CHART_PANEL } from './chart-panel.token';\n\n// aria-disabled is allowed on controls and on explicit widget / group roles,\n// not on a generic wrapper.\nconst CONTROL_SELECTOR = 'a[href], button, input, select, textarea, [role]';\n\n/**\n * Marks the panel's title. Its generated id becomes the panel's\n * `aria-labelledby`, so the whole region reads as one named group instead of\n * an unlabelled box wrapped around a chart.\n *\n * Registration runs against {@link CNGX_CHART_PANEL}, which the panel provides -\n * the title resolves it from its declaration site in the consumer template.\n *\n * @category ui/chart-panel\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts\n * @since 0.1.0\n * @relatedTo CngxChartPanel, CngxChartPanelSubtitle\n */\n@Directive({\n selector: '[cngxChartPanelTitle]',\n standalone: true,\n host: { class: 'cngx-chart-panel__title', '[id]': 'id' },\n})\nexport class CngxChartPanelTitle {\n /** Auto-generated id bound to the host `[id]`; consumed by the panel. */\n readonly id = nextUid('cngx-chart-panel-title');\n\n constructor() {\n const panel = inject(CNGX_CHART_PANEL, { optional: true });\n panel?.registerTitle(this.id);\n // Without the withdrawal the panel's aria-labelledby would keep pointing at\n // a removed element - a dangling reference reads as an unnamed group to AT.\n inject(DestroyRef).onDestroy(() => panel?.unregisterTitle(this.id));\n }\n}\n\n/**\n * Marks the panel's secondary line under the title - a period, a unit, a\n * comparison basis. Descriptive only; it does not join the accessible name.\n *\n * @category ui/chart-panel\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts\n * @since 0.1.0\n * @relatedTo CngxChartPanel, CngxChartPanelTitle\n */\n@Directive({\n selector: '[cngxChartPanelSubtitle]',\n standalone: true,\n host: { class: 'cngx-chart-panel__subtitle' },\n})\nexport class CngxChartPanelSubtitle {}\n\n/**\n * Marks the panel's header action cluster - a range picker, a refresh button,\n * an overflow menu. The panel dims the cluster and marks it `aria-disabled`\n * while a panel-level operation runs, so a user cannot fire a second range\n * change into an in-flight one.\n *\n * On a control (a native button, link or form field, or any element with an\n * explicit `role`) the marker also puts that state on the control itself:\n * `aria-disabled=\"true\"` plus an `aria-describedby` to the panel's busy reason\n * (\"Updating\" by default, `ariaLabels.busy`), both only while the panel is\n * busy, so focusing the action announces why it is unavailable. A static\n * `aria-disabled` / `aria-describedby` the consumer wrote on the element is\n * kept and merged. On a plain wrapper element the marker adds nothing (the\n * attribute is not allowed on a generic); the slot group carries the state.\n * Activation stays blocked by the slot (pointer and Enter/Space), so the\n * control keeps its focusability instead of turning natively `disabled`.\n *\n * @category ui/chart-panel\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts\n * @since 0.1.0\n * @relatedTo CngxChartPanel\n */\n@Directive({\n selector: '[cngxChartPanelActions]',\n standalone: true,\n host: {\n class: 'cngx-chart-panel__actions',\n '[attr.aria-disabled]': 'ariaDisabled()',\n '[attr.aria-describedby]': 'describedBy()',\n },\n})\nexport class CngxChartPanelActions {\n private readonly panel = inject(CNGX_CHART_PANEL, { optional: true });\n private readonly ownDisabled = inject(new HostAttributeToken('aria-disabled'), {\n optional: true,\n });\n private readonly ownDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly carriesState =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement.matches(CONTROL_SELECTOR);\n private readonly busy = computed(() => this.carriesState && (this.panel?.busy() ?? false));\n\n /** @internal The panel busy state on the control, else the consumer's own value. */\n protected readonly ariaDisabled = computed(() => (this.busy() ? 'true' : this.ownDisabled));\n\n /**\n * @internal The busy reason, referenced only while busy (the node itself is\n * always rendered), appended to the consumer's own description.\n */\n protected readonly describedBy = computed(() => {\n if (!this.busy() || !this.panel) {\n return this.ownDescribedBy;\n }\n return [this.ownDescribedBy, this.panel.busyDescriptionId].filter(Boolean).join(' ');\n });\n}\n\n/**\n * Marks the panel's footer row - a source note, a last-updated timestamp, a\n * drill-down link. Sits below the chart body and the legend.\n *\n * @category ui/chart-panel\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts\n * @since 0.1.0\n * @relatedTo CngxChartPanel\n */\n@Directive({\n selector: '[cngxChartPanelFooter]',\n standalone: true,\n host: { class: 'cngx-chart-panel__footer' },\n})\nexport class CngxChartPanelFooter {}\n","/**\n * @module @cngx/ui/chart-panel\n */\n\nexport { CngxChartPanel, type CngxChartPanelLegendPosition } from './chart-panel.component';\nexport {\n type CngxChartPanelAriaLabels,\n type CngxChartPanelConfig,\n} from './config/chart-panel.config';\nexport { CNGX_CHART_PANEL_CONFIG } from './config/chart-panel.config.defaults';\nexport {\n provideChartPanelConfig,\n provideChartPanelConfigAt,\n type CngxChartPanelConfigFeature,\n} from './config/provide-chart-panel-config';\nexport { withChartPanelAriaLabels, withChartPanelLegendPosition } from './config/features';\nexport {\n injectChartPanelAriaLabels,\n injectChartPanelConfig,\n} from './config/inject-chart-panel-config';\nexport {\n CngxChartPanelTitle,\n CngxChartPanelSubtitle,\n CngxChartPanelActions,\n CngxChartPanelFooter,\n} from './chart-panel-slots';\nexport { CNGX_CHART_PANEL, type CngxChartPanelRegistry } from './chart-panel.token';\nexport {\n CNGX_CHART_PANEL_LANGUAGE_EN,\n type CngxChartPanelLanguageSection,\n} from './i18n/chart-panel-language-section';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAcA;;;;;;;AAOG;AACI,MAAM,4BAA4B,GAAkC;AACzE,IAAA,IAAI,EAAE,UAAU;;;ACnBlB;;;AAGG;AACI,MAAM,wBAAwB,GAAG,qBAAqB,CAC3D,YAAY,EACZ,4BAA4B,CAC7B;;ACPD;;;;;;;;;;AAUG;AACI,MAAM,yBAAyB,GAAyB;AAC7D,IAAA,cAAc,EAAE,QAAQ;CACzB;AAED;;;;;;;;;AASG;MACU,uBAAuB,GAAG,IAAI,cAAc,CACvD,yBAAyB,EACzB;AACE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,yBAAyB;AACzC,CAAA;;AC3BH;;;;;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