@mantha911/ng-echarts 0.1.0-rc.18 → 0.1.0-rc.21

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.
@@ -1 +1 @@
1
- {"version":3,"file":"mantha911-ng-echarts-core.mjs","names":["record"],"sources":["../../../projects/chart-library/core/src/lib/chart-frame.ts","../../../projects/chart-library/core/src/lib/chart-frame.html","../../../projects/chart-library/core/src/lib/tooltip.ts","../../../projects/chart-library/core/src/lib/cartesian-options.ts","../../../projects/chart-library/core/src/lib/cartesian-browser.ts","../../../projects/chart-library/core/src/lib/cartesian-model.ts","../../../projects/chart-library/core/src/lib/category-ticks.ts","../../../projects/chart-library/core/src/lib/value-formatting.ts","../../../projects/chart-library/core/src/lib/chart-focus.ts","../../../projects/chart-library/core/src/lib/plot-controller.ts","../../../projects/chart-library/core/src/lib/cartesian-chart.ts","../../../projects/chart-library/core/src/lib/curve-options.ts","../../../projects/chart-library/core/src/lib/curve-point.ts","../../../projects/chart-library/core/src/lib/chart-stage.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n/** Shared presentation shell; no renderer or chart lifecycle behavior yet. */\n@Component({\n selector: 'nec-chart-frame',\n templateUrl: './chart-frame.html',\n styleUrl: './chart-frame.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChartFrame {\n readonly title = input.required<string>();\n readonly description = input('');\n}\n","<section class=\"chart-frame\" [attr.aria-label]=\"title()\">\n <header>\n <h2>{{ title() }}</h2>\n @if (description()) {\n <p>{{ description() }}</p>\n }\n </header>\n <ng-content />\n</section>\n","import type { CartesianThemeTokens } from './cartesian-options';\n\nexport function escapeTooltipText(value: string): string {\n return value.replace(\n /[&<>\"']/g,\n (character) =>\n ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;' })[character]!,\n );\n}\n\nexport function tooltipStyle(tokens: CartesianThemeTokens) {\n return {\n backgroundColor: tokens.background,\n borderColor: tokens.border,\n textStyle: { color: tokens.text, fontFamily: tokens.fontFamily, fontSize: 12, lineHeight: 20 },\n padding: [10, 12] as [number, number],\n borderRadius: 8,\n extraCssText:\n 'max-width: min(280px, calc(100% - 16px)); white-space: normal; pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,.12);',\n };\n}\n\nexport interface TooltipRow {\n readonly label: string;\n readonly value: string;\n readonly color?: string;\n}\n\n/** Escape every consumer-supplied string at the final HTML boundary. */\nexport function tooltipMarkup(title: string, rows: readonly TooltipRow[]): string {\n const escape = escapeTooltipText;\n return `<div data-nec-tooltip><strong style=\"display:block;font-weight:600;margin-bottom:6px;overflow-wrap:anywhere\">${escape(title)}</strong>${rows\n .map(\n (row) =>\n `<div style=\"display:flex;align-items:baseline;gap:12px;margin-top:4px\">${row.color ? `<span aria-hidden=\"true\" style=\"flex:none;width:8px;height:8px;border-radius:2px;background:${escape(row.color)}\"></span>` : ''}<span style=\"flex:1;min-width:0;overflow-wrap:anywhere\">${escape(row.label)}</span><span style=\"flex:0 1 auto;min-width:0;max-width:65%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;text-align:right\">${escape(row.value)}</span></div>`,\n )\n .join('')}</div>`;\n}\n","import { tooltipStyle, tooltipMarkup } from './tooltip';\n// First two palette colors adapted from EvilCharts (2026 Gurbinder, MIT); see package third-party notice.\nimport type { ChartTheme } from './chart-types';\nimport type { CartesianModel } from './cartesian-model';\nexport interface CartesianThemeTokens {\n readonly fontFamily: string;\n readonly background: string;\n readonly text: string;\n readonly muted: string;\n readonly border: string;\n readonly series: readonly string[];\n}\n\nexport function defaultCartesianTheme(theme: ChartTheme): CartesianThemeTokens {\n return theme === 'dark'\n ? {\n fontFamily: 'system-ui, sans-serif',\n background: '#18202c',\n text: '#edf2fa',\n muted: '#b2bfd2',\n border: '#3b4a61',\n series: ['#10b981', '#f43f5e', '#60a5fa', '#fbbf24'],\n }\n : {\n fontFamily: 'system-ui, sans-serif',\n background: '#ffffff',\n text: '#18202c',\n muted: '#536176',\n border: '#d6dce5',\n series: ['#047857', '#be123c', '#2563eb', '#a16207'],\n };\n}\n\nexport { escapeTooltipText } from './tooltip';\n\nfunction record(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\nexport function buildCartesianOptions<T>(\n model: Exclude<CartesianModel<T>, { kind: 'error' }>,\n hiddenIds: ReadonlySet<string>,\n tokens: CartesianThemeTokens,\n horizontal: boolean,\n animation: boolean,\n format: (value: number) => string,\n categoryTicks: readonly string[] = model.rows.map((row) => row.category),\n) {\n const hasVisibleSeries = model.series.some((series) => !hiddenIds.has(series.id));\n const categoryAxis = {\n type: 'category' as const,\n data: model.rows.map((row) => row.id),\n inverse: horizontal,\n axisLine: { show: false },\n axisTick: { show: false },\n axisLabel: {\n color: tokens.muted,\n fontSize: 12,\n formatter: (_value: string, index: number) => categoryTicks[index] ?? '',\n },\n };\n const valueAxis = {\n type: 'value' as const,\n splitNumber: horizontal ? 3 : 5,\n axisLine: { show: false },\n axisTick: { show: false },\n axisLabel: {\n show: hasVisibleSeries,\n color: tokens.muted,\n fontSize: 12,\n formatter: format,\n hideOverlap: true,\n },\n splitLine: {\n show: hasVisibleSeries,\n lineStyle: { color: tokens.border, type: 'dashed' as const },\n },\n };\n return {\n animation,\n animationDuration: 300,\n animationDurationUpdate: 200,\n backgroundColor: tokens.background,\n textStyle: { fontFamily: tokens.fontFamily, color: tokens.text },\n grid: {\n left: 12,\n right: 16,\n top: 12,\n bottom: 8,\n outerBoundsMode: 'same' as const,\n outerBoundsContain: 'axisLabel' as const,\n },\n xAxis: horizontal ? valueAxis : categoryAxis,\n yAxis: horizontal ? categoryAxis : valueAxis,\n tooltip: {\n trigger: 'axis' as const,\n confine: true,\n ...tooltipStyle(tokens),\n formatter: (params: unknown) => {\n const items = Array.isArray(params) ? params : [params];\n const first = items.find((item) => record(item) && record(item['data']));\n if (!record(first) || !record(first['data'])) return '';\n const rowId: unknown = first['data']['id'];\n const row = model.rows.find((candidate) => candidate.id === rowId);\n if (!row) return '';\n const values = row.points.flatMap((point, index) => {\n if (hiddenIds.has(point.seriesId)) return [];\n const label = model.series.find((item) => item.id === point.seriesId)?.label ?? '';\n return [\n {\n label,\n value: point.value === null ? 'Missing' : format(point.value),\n color: tokens.series[index % tokens.series.length] ?? '#047857',\n },\n ];\n });\n return tooltipMarkup(row.category, values);\n },\n },\n };\n}\n","import { defaultCartesianTheme, type CartesianThemeTokens } from './cartesian-options';\nimport type { ChartSeries, ChartTheme } from './chart-types';\nimport type { PlotRendererFactory, PlotEnvironment, PlotPoint } from './plot-controller';\n\n/** Delegate transient table interactions; large tables do not need per-cell listeners. */\nexport function observeTablePreviews(\n host: HTMLElement,\n onPreview: (point: PlotPoint | null, trigger: 'pointer' | 'focus') => void,\n): () => void {\n const action = (target: EventTarget | null) =>\n target instanceof Element\n ? target.closest<HTMLButtonElement>('tbody button[data-preview-row]')\n : null;\n const handle = (event: Event) => {\n const pointer = event.type.startsWith('pointer');\n if (pointer && (event as PointerEvent).pointerType === 'touch') return;\n const button = action(event.target);\n if (!button || !host.contains(button)) return;\n const related = action((event as FocusEvent).relatedTarget);\n if (related === button) return;\n const leaving = event.type === 'pointerout' || event.type === 'focusout';\n onPreview(\n leaving\n ? null\n : {\n rowId: button.dataset['previewRow']!,\n seriesId: button.dataset['previewSeries']!,\n },\n pointer ? 'pointer' : 'focus',\n );\n };\n const types = ['pointerover', 'pointerout', 'focusin', 'focusout'] as const;\n for (const type of types) host.addEventListener(type, handle);\n // Keyboard focus can arrive before Angular applies the opt-in input. Retain\n // that real focus when attaching, without moving focus or requiring another Tab.\n const focused = action(host.ownerDocument.activeElement);\n if (focused && host.contains(focused))\n onPreview(\n { rowId: focused.dataset['previewRow']!, seriesId: focused.dataset['previewSeries']! },\n 'focus',\n );\n return () => {\n for (const type of types) host.removeEventListener(type, handle);\n };\n}\nexport function browserPlotEnvironment<Option>(\n load: () => Promise<PlotRendererFactory<Option>>,\n host: HTMLElement,\n): PlotEnvironment<Option> {\n return {\n load: async () => {\n // Canvas text measurements must use the loaded host font from the first render.\n // A failed web font still permits the browser's normal fallback stack.\n const font = getComputedStyle(host).fontFamily || 'system-ui, sans-serif';\n const [factory] = await Promise.all([\n load(),\n host.ownerDocument.fonts?.load(`12px ${font}`).catch(() => undefined),\n ]);\n return factory;\n },\n observe: (host, onResize) => {\n const observer = new ResizeObserver(onResize);\n observer.observe(host);\n return () => observer.disconnect();\n },\n schedule: (callback) => requestAnimationFrame(callback),\n cancel: (id) => cancelAnimationFrame(id),\n };\n}\n\n/** Resolve inherited typography and CSS colors at the browser boundary. */\nexport function readCartesianTheme<T>(\n host: HTMLElement,\n theme: ChartTheme,\n series: readonly ChartSeries<T>[],\n plotSurface: HTMLElement,\n): CartesianThemeTokens {\n const defaults = defaultCartesianTheme(theme);\n const styles = getComputedStyle(host);\n const probe = host.ownerDocument.createElement('span');\n probe.style.cssText = 'position:absolute;visibility:hidden;pointer-events:none';\n plotSurface.append(probe);\n const canvas = host.ownerDocument.createElement('canvas');\n canvas.width = canvas.height = 1;\n const context = canvas.getContext('2d', { willReadFrequently: true });\n const resolve = (raw: string, fallback: string): string => {\n if (!raw || !CSS.supports('color', raw) || !context) return fallback;\n probe.style.color = raw;\n context.clearRect(0, 0, 1, 1);\n context.fillStyle = getComputedStyle(probe).color;\n context.fillRect(0, 0, 1, 1);\n const [r, g, b, a] = context.getImageData(0, 0, 1, 1).data;\n return `rgba(${r},${g},${b},${a! / 255})`;\n };\n const token = (name: string, fallback: string): string =>\n resolve(styles.getPropertyValue(`--nec-${name}`).trim(), fallback);\n try {\n return {\n fontFamily: styles.fontFamily || defaults.fontFamily,\n background: token('background', defaults.background),\n text: token('text', defaults.text),\n muted: token('muted', defaults.muted),\n border: token('border', defaults.border),\n series: series.map((item, index) => {\n const fallback = defaults.series[index % defaults.series.length]!;\n return item.color ? resolve(item.color, fallback) : token(`series-${index + 1}`, fallback);\n }),\n };\n } finally {\n probe.remove();\n }\n}\n","import type { ChartSeries, StringKey } from './chart-types';\n\nexport interface CartesianPoint<T> {\n readonly rowId: string;\n readonly seriesId: string;\n readonly row: T;\n readonly value: number | null;\n}\n\nexport interface CartesianRow<T> {\n readonly id: string;\n readonly category: string;\n readonly points: readonly CartesianPoint<T>[];\n}\n\nexport type CartesianModel<T> =\n | { readonly kind: 'error'; readonly message: string }\n | {\n readonly kind: 'empty' | 'ready';\n readonly rows: readonly CartesianRow<T>[];\n readonly series: readonly ChartSeries<T>[];\n };\n\nexport function normalizeCartesianData<T extends object>(\n data: readonly T[],\n rowIdKey: StringKey<T>,\n categoryKey: StringKey<T>,\n series: readonly ChartSeries<T>[],\n): CartesianModel<T> {\n const invalid = (message: string): CartesianModel<T> => ({ kind: 'error', message });\n if (!Array.isArray(data) || !Array.isArray(series)) {\n return invalid('Chart data and series must be arrays.');\n }\n const seriesIds = new Set<string>();\n for (const item of series) {\n if (!item || typeof item.id !== 'string' || !item.id || seriesIds.has(item.id)) {\n return invalid('Series require unique, nonempty string identifiers.');\n }\n if (typeof item.key !== 'string' || typeof item.label !== 'string') {\n return invalid('Series require a numeric field key and a text label.');\n }\n seriesIds.add(item.id);\n }\n const rowIds = new Set<string>();\n const rows: CartesianRow<T>[] = [];\n let hasValue = false;\n for (const row of data) {\n if (!row || typeof row !== 'object') return invalid('Each chart row must be an object.');\n const id = row[rowIdKey];\n const category = row[categoryKey];\n if (typeof id !== 'string' || !id || rowIds.has(id)) {\n return invalid('Rows require unique, nonempty string identifiers.');\n }\n if (typeof category !== 'string') return invalid('Category labels must be strings.');\n rowIds.add(id);\n const points: CartesianPoint<T>[] = [];\n for (const item of series) {\n const value: unknown = row[item.key];\n if (value != null && (typeof value !== 'number' || !Number.isFinite(value))) {\n return invalid('Measures must be finite numbers or missing values.');\n }\n if (typeof value === 'number') hasValue = true;\n points.push({\n rowId: id,\n seriesId: item.id,\n row,\n value: value == null ? null : (value as number),\n });\n }\n rows.push({ id, category, points });\n }\n return { kind: hasValue ? 'ready' : 'empty', rows, series };\n}\n\nexport type ChartState =\n | { readonly kind: 'ready' }\n | { readonly kind: 'loading' | 'empty' | 'error'; readonly message: string };\n\nexport function resolveCartesianState(\n applicationError: string | null,\n loading: boolean,\n model:\n { readonly kind: 'error'; readonly message: string } | { readonly kind: 'ready' | 'empty' },\n rendererError: boolean,\n configurationError: string | null,\n): ChartState {\n if (applicationError !== null)\n return { kind: 'error', message: applicationError || 'Unable to display chart.' };\n if (loading) return { kind: 'loading', message: 'Loading chart…' };\n if (model.kind === 'error') return model;\n if (configurationError) return { kind: 'error', message: configurationError };\n if (rendererError)\n return { kind: 'error', message: 'Unable to render chart. Try again or update the data.' };\n if (model.kind === 'empty') return { kind: 'empty', message: 'No chart data available.' };\n return { kind: 'ready' };\n}\n","import type { CategoryTickFormatter } from './chart-types';\n\n/** Evaluate consumer code before rendering, never from an ECharts callback. */\nexport function formatCategoryTicks(\n categories: readonly string[],\n formatter: CategoryTickFormatter | undefined,\n): { readonly labels: readonly string[]; readonly error: string | null } {\n try {\n if (formatter !== undefined && typeof formatter !== 'function') throw new TypeError();\n const labels = categories.map((category, index) => {\n const label = formatter ? formatter(category, index) : category;\n if (typeof label !== 'string') throw new TypeError();\n return label;\n });\n return { labels, error: null };\n } catch {\n return {\n labels: [],\n error: 'Category tick formatting failed. Use a function that returns text.',\n };\n }\n}\n","import type { ValueFormatter } from './chart-types';\n\nconst formatterError = 'Value formatting failed. Use a pure function that returns text.';\n\n/** Shared numeric text; missing observations never reach consumer callbacks. */\nexport function createValueFormatting(\n locale: string,\n options: Intl.NumberFormatOptions | undefined,\n formatter: ValueFormatter | undefined,\n values: readonly (number | null)[],\n): { readonly format: ValueFormatter; readonly error: string | null } {\n let numberFormat: Intl.NumberFormat;\n try {\n if (\n typeof locale !== 'string' ||\n !locale ||\n (options !== undefined &&\n (typeof options !== 'object' || options === null || Array.isArray(options)))\n )\n throw new TypeError();\n numberFormat = new Intl.NumberFormat(locale, options);\n } catch {\n return { format: () => '', error: 'The chart locale or number format options are invalid.' };\n }\n if (formatter === undefined) return { format: numberFormat.format, error: null };\n try {\n if (typeof formatter !== 'function') throw new TypeError();\n // Cache known observations so opening a table or tooltip never reruns consumer code.\n const labels = new Map<number | string, string>();\n const format: ValueFormatter = (value) => {\n const key = Object.is(value, -0) ? '-0' : value;\n if (labels.has(key)) return labels.get(key)!;\n try {\n const label = formatter(value);\n if (typeof label !== 'string') throw new TypeError();\n labels.set(key, label);\n return label;\n } catch {\n // Unexpected axis-tick failures are contained by the browser plot controller.\n throw new Error(formatterError);\n }\n };\n for (const value of values) if (value !== null) format(value);\n return { format, error: null };\n } catch {\n return { format: () => '', error: formatterError };\n }\n}\n","/** Keep native control focus when keyed DOM moves; never take it back from another control. */\nexport class ChartFocusKeeper {\n private remembered: HTMLElement | null = null;\n private readonly document: Document;\n private readonly onFocus = (event: FocusEvent): void => {\n const target = event.target;\n this.remembered = target instanceof HTMLElement && this.host.contains(target) ? target : null;\n };\n private readonly onPointer = (event: PointerEvent): void => {\n if (!(event.target instanceof Node) || !this.remembered?.contains(event.target))\n this.remembered = null;\n };\n\n constructor(private readonly host: HTMLElement) {\n this.document = host.ownerDocument;\n this.document.addEventListener('focusin', this.onFocus);\n this.document.addEventListener('pointerdown', this.onPointer);\n }\n\n restore(): void {\n const previous = this.remembered;\n if (\n !previous ||\n !this.document.hasFocus() ||\n this.document.activeElement !== this.document.body\n )\n return;\n if (this.available(previous)) {\n previous.focus({ preventScroll: true });\n return;\n }\n // The focused row/series disappeared, or ready UI changed to a status message.\n const selectors = [\n '.table-toggle',\n '.legend button',\n '[role=\"alert\"], [role=\"status\"]',\n '.chart-frame',\n ];\n let fallback: HTMLElement | undefined;\n for (const selector of selectors) {\n fallback = [...this.host.querySelectorAll<HTMLElement>(selector)].find((element) =>\n this.available(element),\n );\n if (fallback) break;\n }\n this.remembered = null;\n if (fallback) {\n if (fallback.tagName !== 'BUTTON') fallback.tabIndex = -1;\n fallback.focus({ preventScroll: true });\n }\n }\n\n private available(element: HTMLElement): boolean {\n return (\n element.isConnected &&\n this.host.contains(element) &&\n !element.matches(':disabled') &&\n !element.closest('[inert], [hidden], [aria-hidden=\"true\"]')\n );\n }\n\n destroy(): void {\n this.document.removeEventListener('focusin', this.onFocus);\n this.document.removeEventListener('pointerdown', this.onPointer);\n this.remembered = null;\n }\n}\n","export interface PlotPoint {\n readonly rowId: string;\n readonly seriesId: string;\n}\n\nexport interface PlotRenderer<Option> {\n update(options: Option): void;\n /** A following update owns option rebuilding when optionsPending is true. */\n resize(context?: { readonly optionsPending: boolean }): void;\n dispose(): void;\n}\n\nexport type PlotRendererFactory<Option> = (\n host: HTMLElement,\n onPoint: (point: PlotPoint) => void,\n onRange?: (rowIds: readonly string[], snapshot: unknown) => void,\n onPreview?: (point: PlotPoint | null) => void,\n) => PlotRenderer<Option>;\n\nexport interface PlotEnvironment<Option> {\n load(): Promise<PlotRendererFactory<Option>>;\n observe(host: HTMLElement, onResize: () => void): () => void;\n schedule(callback: () => void): number;\n cancel(id: number): void;\n}\n\n/** Coordinates browser work; builders and Angular templates never own chart instances. */\nexport class PlotController<Option> {\n private options: Option | null = null;\n private renderer: PlotRenderer<Option> | null = null;\n private frame: number | null = null;\n private loading = false;\n private dirty = false;\n private generation = 0;\n private destroyed = false;\n private width = 0;\n private height = 0;\n private readonly disconnect: () => void;\n\n constructor(\n private readonly host: HTMLElement,\n private readonly environment: PlotEnvironment<Option>,\n private readonly onPoint: (point: PlotPoint) => void,\n private readonly onError: () => void,\n private readonly onRange: (rowIds: readonly string[], snapshot: unknown) => void = () => {},\n private readonly onPreview: (point: PlotPoint | null) => void = () => {},\n ) {\n this.disconnect = environment.observe(host, () => this.schedule());\n }\n\n update(options: Option | null): void {\n if (this.destroyed) return;\n this.options = options;\n this.dirty = true;\n if (options === null) {\n this.generation++;\n this.loading = false;\n this.cancelFrame();\n this.disposeRenderer();\n return;\n }\n this.schedule();\n }\n\n destroy(): void {\n if (this.destroyed) return;\n this.destroyed = true;\n this.generation++;\n this.cancelFrame();\n this.disconnect();\n this.disposeRenderer();\n }\n\n private schedule(): void {\n if (this.destroyed || !this.options || this.frame !== null) return;\n this.frame = this.environment.schedule(() => {\n this.frame = null;\n void this.render();\n });\n }\n\n private async render(): Promise<void> {\n if (this.destroyed || !this.options || !this.host.clientWidth || !this.host.clientHeight)\n return;\n // A queued observer delivery must not clear another render's pending import.\n if (!this.renderer && this.loading) return;\n const generation = this.generation;\n try {\n if (!this.renderer) {\n this.loading = true;\n const factory = await this.environment.load();\n if (this.destroyed || generation !== this.generation || !this.options) return;\n // Measure again after asynchronous loading; a formerly visible host may now be hidden.\n if (!this.host.clientWidth || !this.host.clientHeight) return;\n this.width = this.host.clientWidth;\n this.height = this.host.clientHeight;\n // Renderer factories initialize at the host's current size.\n this.renderer = factory(this.host, this.onPoint, this.onRange, this.onPreview);\n this.dirty = true;\n }\n const width = this.host.clientWidth;\n const height = this.host.clientHeight;\n if (width !== this.width || height !== this.height) {\n this.renderer.resize({ optionsPending: this.dirty });\n this.width = width;\n this.height = height;\n }\n if (this.dirty && this.options) {\n this.renderer.update(this.options);\n this.dirty = false;\n }\n } catch {\n if (!this.destroyed && generation === this.generation) {\n this.options = null;\n this.generation++;\n this.loading = false;\n this.cancelFrame();\n this.disposeRenderer();\n this.onError();\n }\n } finally {\n if (generation === this.generation) this.loading = false;\n }\n }\n\n private disposeRenderer(): void {\n this.renderer?.dispose();\n this.renderer = null;\n this.width = this.height = 0;\n }\n\n private cancelFrame(): void {\n if (this.frame !== null) this.environment.cancel(this.frame);\n this.frame = null;\n }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n afterNextRender,\n afterRenderEffect,\n ApplicationRef,\n ChangeDetectionStrategy,\n Directive,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n output,\n PLATFORM_ID,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport {\n browserPlotEnvironment,\n readCartesianTheme,\n observeTablePreviews,\n} from './cartesian-browser';\nimport {\n normalizeCartesianData,\n resolveCartesianState,\n type CartesianModel,\n} from './cartesian-model';\nimport { defaultCartesianTheme, type CartesianThemeTokens } from './cartesian-options';\nimport type { PlotRendererFactory } from './plot-controller';\nimport { formatCategoryTicks } from './category-ticks';\nimport { createValueFormatting } from './value-formatting';\nimport { ChartFocusKeeper } from './chart-focus';\nimport type {\n CategoryTickFormatter,\n ChartSeries,\n ChartTheme,\n LegendVisibilityChange,\n PointSelection,\n PointPreview,\n StringKey,\n ValueFormatter,\n} from './chart-types';\nimport { PlotController, type PlotPoint } from './plot-controller';\n\n/** Internal Cartesian behavior shared by the Cartesian entries; not a supported consumer API. */\n@Directive()\nexport abstract class CartesianChart<\n T extends object,\n Option,\n Series extends ChartSeries<T> = ChartSeries<T>,\n> {\n protected abstract renderer(): Promise<PlotRendererFactory<Option>>;\n protected abstract familyConfiguration(): unknown;\n protected abstract familyError(): string | null;\n protected abstract buildOptions(context: CartesianContext<T>): Option;\n /** A family can opt into controlled row feedback without changing point events. */\n protected rowSelectionId(): string | null {\n return null;\n }\n protected rowIsSelected(id: string): boolean {\n return id === this.rowSelectionId();\n }\n protected selectRange(_rowIds: readonly string[], _snapshot: unknown): void {}\n protected canPreview(): boolean {\n return false;\n }\n protected observePreviews(): boolean {\n return this.canPreview();\n }\n protected emitPreview(_point: PointPreview<T> | null): void {}\n private pointerPreview: { point: PlotPoint; source: 'plot' | 'table' } | null = null;\n private focusPreview: PlotPoint | null = null;\n private lastPreview: PointPreview<T> | null = null;\n private readonly plotContext = computed(() => [\n this.model(),\n this.settings(),\n this.hiddenIds(),\n this.formatting(),\n this.categoryTicks(),\n this.tokens(),\n this.tableExpanded(),\n ]);\n private readonly plotPreview = signal<{ point: PlotPoint; context: readonly unknown[] } | null>(\n null,\n {\n equal: (a, b) =>\n a?.context === b?.context &&\n a?.point.rowId === b?.point.rowId &&\n a?.point.seriesId === b?.point.seriesId,\n },\n );\n private previewSnapshot: readonly unknown[] | null = null;\n private readonly previewContext = computed(() => [\n this.model(),\n this.settings(),\n this.hiddenIds(),\n this.tableExpanded(),\n this.state(),\n ]);\n readonly title = input.required<string>();\n readonly description = input('');\n readonly data = input.required<readonly T[]>();\n readonly rowIdKey = input.required<StringKey<T>>();\n readonly categoryKey = input.required<StringKey<T>>();\n readonly series = input.required<readonly Series[]>();\n readonly height = input(320);\n readonly theme = input<ChartTheme>('light');\n readonly themeRevision = input(0);\n readonly locale = input('en-US');\n readonly numberFormatOptions = input<Intl.NumberFormatOptions>();\n readonly valueFormatter = input<ValueFormatter>();\n readonly categoryTickFormatter = input<CategoryTickFormatter>();\n readonly showDataTable = input(true);\n readonly loading = input(false);\n readonly error = input<string | null>(null);\n readonly animation = input(true);\n readonly pointSelect = output<PointSelection<T>>();\n readonly legendChange = output<LegendVisibilityChange>();\n\n private readonly destroyRef = inject(DestroyRef);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly application = inject(ApplicationRef);\n private readonly platform = inject(PLATFORM_ID);\n private readonly plot = viewChild.required<ElementRef<HTMLElement>>('plot');\n private readonly browserReady = signal(false);\n private readonly reducedMotion = signal(false);\n private readonly hiddenIds = signal<ReadonlySet<string>>(new Set());\n private readonly measuredTheme = signal<CartesianThemeTokens | null>(null);\n private controller: PlotController<Option> | null = null;\n private removeMotionListener: (() => void) | null = null;\n private focusKeeper: ChartFocusKeeper | null = null;\n private removePreviewListeners: (() => void) | null = null;\n\n protected readonly rendererError = signal(false);\n protected readonly tableExpanded = signal(false);\n protected readonly model = computed(() =>\n normalizeCartesianData(this.data(), this.rowIdKey(), this.categoryKey(), this.series()),\n );\n private readonly formatting = computed(() => {\n const model = this.model();\n return createValueFormatting(\n this.locale(),\n this.numberFormatOptions(),\n this.valueFormatter(),\n model.kind === 'error'\n ? []\n : model.rows.flatMap((row) => row.points.map((point) => point.value)),\n );\n });\n private readonly categoryTicks = computed(() => {\n const model = this.model();\n return formatCategoryTicks(\n model.kind === 'error' ? [] : model.rows.map((row) => row.category),\n this.categoryTickFormatter(),\n );\n });\n private readonly settings = computed(() => ({\n height: this.height(),\n family: this.familyConfiguration(),\n theme: this.theme(),\n themeRevision: this.themeRevision(),\n animation: this.animation(),\n loading: this.loading(),\n error: this.error(),\n }));\n protected readonly tokens = computed(\n () => this.measuredTheme() ?? defaultCartesianTheme(this.theme()),\n );\n protected readonly plotHeight = computed(() =>\n Number.isFinite(this.height()) && this.height() > 0 ? this.height() : 320,\n );\n protected readonly state = computed(() => {\n const settings = this.settings();\n const configurationError =\n !Number.isFinite(settings.height) || settings.height <= 0\n ? 'Chart height must be a positive, finite number.'\n : !['light', 'dark'].includes(settings.theme) || !Number.isFinite(settings.themeRevision)\n ? 'Chart theme configuration is invalid.'\n : (this.familyError() ?? this.formatting().error ?? this.categoryTicks().error);\n return resolveCartesianState(\n settings.error,\n settings.loading,\n this.model(),\n this.rendererError(),\n configurationError,\n );\n });\n protected readonly legendItems = computed(() => {\n const model = this.model();\n if (model.kind === 'error') return [];\n return model.series.map((item, index) => ({\n id: item.id,\n label: item.label,\n visible: !this.hiddenIds().has(item.id),\n color: this.tokens().series[index % this.tokens().series.length],\n }));\n });\n protected readonly allSeriesHidden = computed(() => {\n const items = this.legendItems();\n return items.length > 0 && items.every((item) => !item.visible);\n });\n private readonly options = computed(() => {\n const model = this.model();\n if (this.state().kind !== 'ready' || model.kind === 'error') return null;\n return this.buildOptions({\n model,\n hiddenIds: this.hiddenIds(),\n tokens: this.tokens(),\n animation: this.animation() && !this.reducedMotion(),\n format: this.formatting().format,\n categoryTicks: this.categoryTicks().labels,\n });\n });\n protected readonly tableRows = computed(() => {\n const model = this.model();\n if (\n !this.showDataTable() ||\n !this.tableExpanded() ||\n this.state().kind !== 'ready' ||\n model.kind === 'error'\n )\n return [];\n return model.rows.map((row) => ({\n id: row.id,\n category: row.category,\n selected: this.rowIsSelected(row.id),\n current: row.id === this.rowSelectionId(),\n cells: row.points.map((point, index) => {\n const text = point.value === null ? 'Missing' : this.formatting().format(point.value);\n return {\n ...point,\n text,\n actionLabel: `Select ${model.series[index]?.label ?? ''} for ${row.category}: ${text}`,\n };\n }),\n }));\n });\n\n constructor() {\n // Input changes permit recovery; changes to rendererError itself never trigger this effect.\n effect(() => {\n this.model();\n this.settings();\n this.formatting();\n this.categoryTicks();\n this.rendererError.set(false);\n });\n effect(() => {\n const context = this.previewContext();\n // An event can already describe the new inputs before this scheduled effect\n // runs. Invalidate only previews captured against an older context.\n untracked(() => {\n if (this.previewSnapshot !== context) this.clearPreview();\n });\n });\n effect(() => {\n const current = this.plotPreview();\n const context = this.plotContext();\n const ready = this.state().kind === 'ready';\n const hidden = this.hiddenIds();\n const enabled = this.canPreview();\n if (\n current &&\n (current.context !== context || !ready || hidden.has(current.point.seriesId))\n ) {\n this.plotPreview.set(null);\n return;\n }\n // Native pointer events can arrive before Angular propagates an enabling\n // input. Reconcile the latest hit after inputs settle, without a new move.\n if (enabled) untracked(() => this.previewPoint(current?.point ?? null, 'plot', 'pointer'));\n });\n effect(() => {\n // Valid series removals still count while row data is loading or invalid.\n const series = this.series();\n if (\n !Array.isArray(series) ||\n !series.every(\n (item) =>\n item &&\n typeof item.id === 'string' &&\n item.id &&\n typeof item.key === 'string' &&\n typeof item.label === 'string',\n )\n )\n return;\n const validIds = new Set(series.map((item) => item.id));\n if (validIds.size !== series.length) return;\n const previous = untracked(this.hiddenIds);\n const retained = new Set([...previous].filter((id) => validIds.has(id)));\n if (retained.size !== previous.size) this.hiddenIds.set(retained);\n });\n afterNextRender(() => {\n if (!isPlatformBrowser(this.platform)) return;\n void this.application.whenStable().then(() => {\n if (this.destroyRef.destroyed) return;\n try {\n const preference = window.matchMedia('(prefers-reduced-motion: reduce)');\n this.reducedMotion.set(preference.matches);\n const onMotion = (event: MediaQueryListEvent): void =>\n this.reducedMotion.set(event.matches);\n preference.addEventListener('change', onMotion);\n this.removeMotionListener = () => preference.removeEventListener('change', onMotion);\n this.controller = new PlotController(\n this.plot().nativeElement,\n browserPlotEnvironment(() => this.renderer(), this.host.nativeElement),\n (point) => this.selectPoint(point, 'plot'),\n () => this.rendererError.set(true),\n (ids, snapshot) => this.selectRange(ids, snapshot),\n (point) => this.plotPreview.set(point ? { point, context: this.plotContext() } : null),\n );\n this.browserReady.set(true);\n this.focusKeeper = new ChartFocusKeeper(this.host.nativeElement);\n } catch {\n this.rendererError.set(true);\n }\n });\n });\n afterRenderEffect(() => {\n if (!this.browserReady()) return;\n const series = this.series();\n const theme = this.theme();\n this.themeRevision();\n if (\n !Array.isArray(series) ||\n !series.every(\n (item) =>\n item &&\n typeof item.id === 'string' &&\n typeof item.key === 'string' &&\n typeof item.label === 'string',\n )\n )\n return;\n try {\n this.measuredTheme.set(\n readCartesianTheme(this.host.nativeElement, theme, series, this.plot().nativeElement),\n );\n } catch {\n this.rendererError.set(true);\n }\n });\n afterRenderEffect(() => {\n this.browserReady();\n this.controller?.update(this.options());\n });\n afterRenderEffect(() => {\n if (this.browserReady() && this.observePreviews()) {\n this.removePreviewListeners ??= observeTablePreviews(\n this.host.nativeElement,\n (point, trigger) => this.previewPoint(point, 'table', trigger),\n );\n } else {\n this.removePreviewListeners?.();\n this.removePreviewListeners = null;\n }\n });\n afterRenderEffect(() => {\n this.state();\n this.tableRows();\n this.legendItems();\n this.focusKeeper?.restore();\n });\n this.destroyRef.onDestroy(() => {\n this.removeMotionListener?.();\n this.removePreviewListeners?.();\n this.controller?.destroy();\n this.focusKeeper?.destroy();\n });\n }\n\n protected toggleTable(): void {\n this.tableExpanded.update((expanded) => !expanded);\n }\n\n protected previewPoint(\n point: PlotPoint | null,\n source: 'plot' | 'table',\n trigger: 'pointer' | 'focus',\n ): void {\n if (this.destroyRef.destroyed || !this.canPreview()) return;\n const context = this.previewContext();\n if (this.previewSnapshot !== context) this.clearPreview();\n if (trigger === 'focus') this.focusPreview = point;\n else this.pointerPreview = point ? { point, source } : null;\n const pointer = this.pointerPreview;\n const candidate = pointer?.point ?? this.focusPreview;\n const origin = pointer?.source ?? 'table';\n const model = this.model();\n const value =\n candidate &&\n model.kind !== 'error' &&\n this.state().kind === 'ready' &&\n !(origin === 'plot' && this.hiddenIds().has(candidate.seriesId))\n ? model.rows\n .find((row) => row.id === candidate.rowId)\n ?.points.find((cell) => cell.seriesId === candidate.seriesId)\n : null;\n const next: PointPreview<T> | null =\n value && value.value !== null\n ? { ...value, value: value.value, source: origin, trigger: pointer ? 'pointer' : 'focus' }\n : null;\n this.previewSnapshot = context;\n if (\n next?.row === this.lastPreview?.row &&\n next?.seriesId === this.lastPreview?.seriesId &&\n next?.value === this.lastPreview?.value &&\n next?.source === this.lastPreview?.source &&\n next?.trigger === this.lastPreview?.trigger\n )\n return;\n this.lastPreview = next;\n this.emitPreview(next);\n }\n\n private clearPreview(): void {\n this.previewSnapshot = null;\n this.pointerPreview = this.focusPreview = null;\n if (this.lastPreview === null) return;\n this.lastPreview = null;\n this.emitPreview(null);\n }\n\n protected resetPointPreview(): void {\n this.plotPreview.set(null);\n this.clearPreview();\n }\n protected retryRenderer(): void {\n this.rendererError.set(false);\n }\n\n protected toggleSeries(id: string): void {\n if (this.state().kind !== 'ready') return;\n const hidden = new Set(this.hiddenIds());\n if (hidden.has(id)) hidden.delete(id);\n else hidden.add(id);\n this.hiddenIds.set(hidden);\n this.legendChange.emit({ seriesId: id, visible: !hidden.has(id) });\n }\n\n protected selectPoint(point: PlotPoint, source: 'plot' | 'table'): void {\n const model = this.model();\n if (this.state().kind !== 'ready' || model.kind === 'error') return;\n if (source === 'plot' && this.hiddenIds().has(point.seriesId)) return;\n const value = model.rows\n .find((row) => row.id === point.rowId)\n ?.points.find((cell) => cell.seriesId === point.seriesId);\n if (!value || value.value === null) return;\n this.resetPointPreview();\n this.pointSelect.emit({ ...value, value: value.value, source });\n }\n}\n\nexport interface CartesianContext<T> {\n readonly model: Exclude<CartesianModel<T>, { kind: 'error' }>;\n readonly hiddenIds: ReadonlySet<string>;\n readonly tokens: CartesianThemeTokens;\n readonly animation: boolean;\n readonly format: ValueFormatter;\n readonly categoryTicks: readonly string[];\n}\n","import type { LineSeriesOption } from 'echarts/charts';\nimport type { GridComponentOption, TooltipComponentOption } from 'echarts/components';\nimport type { ComposeOption } from 'echarts/core';\nimport { buildCartesianOptions } from './cartesian-options';\nimport type { CartesianContext } from './cartesian-chart';\nexport type CurveOption = ComposeOption<\n LineSeriesOption | GridComponentOption | TooltipComponentOption\n>;\nexport function buildCurveOptions<T>(\n context: CartesianContext<T>,\n smooth: boolean,\n showPoints: boolean,\n): CurveOption {\n const { model, hiddenIds, tokens, animation, format, categoryTicks } = context;\n const common = buildCartesianOptions(\n model,\n hiddenIds,\n tokens,\n false,\n animation,\n format,\n categoryTicks,\n );\n const categoryAxis = common.xAxis;\n if (categoryAxis.type !== 'category') throw new Error('Expected category axis');\n return {\n ...common,\n xAxis: { ...categoryAxis, boundaryGap: false },\n series: model.series.flatMap((item, index): LineSeriesOption[] => {\n if (hiddenIds.has(item.id)) return [];\n const color = tokens.series[index % tokens.series.length] ?? '#047857';\n return [\n {\n id: item.id,\n name: item.label,\n type: 'line',\n smooth,\n showSymbol: showPoints,\n connectNulls: false,\n symbol: index % 2 === 0 ? 'circle' : 'diamond',\n clip: false,\n symbolSize: 6,\n triggerEvent: 'line',\n lineStyle: { color, width: 2, type: index % 2 === 0 ? 'solid' : 'dashed' },\n itemStyle: { color: tokens.background, borderColor: color, borderWidth: 2 },\n data: model.rows.map((row) => ({ id: row.id, value: row.points[index]?.value ?? '-' })),\n },\n ];\n }),\n };\n}\n","import type { PlotPoint } from './plot-controller';\nfunction record(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\nexport function curvePoint(\n event: unknown,\n options: unknown,\n convert: (x: number) => unknown,\n): PlotPoint | undefined {\n if (!record(event) || !record(options)) return;\n if (\n record(event['data']) &&\n typeof event['data']['id'] === 'string' &&\n typeof event['seriesId'] === 'string'\n ) {\n return { rowId: event['data']['id'], seriesId: event['seriesId'] };\n }\n // Whole-line clicks (including when markers are hidden) select the nearest category\n // on that painted series. Gaps have no painted path and missing cells never emit.\n if (\n (event['selfType'] !== 'line' && event['selfType'] !== 'area') ||\n typeof event['seriesIndex'] !== 'number' ||\n !record(event['event'])\n )\n return;\n const x = event['event']['offsetX'];\n if (typeof x !== 'number' || !Number.isFinite(x)) return;\n const category = convert(x);\n if (typeof category !== 'number' || !Number.isFinite(category)) return;\n const series =\n record(options) && Array.isArray(options['series'])\n ? options['series'][event['seriesIndex']]\n : undefined;\n if (!record(series)) return;\n const data = series['data'];\n if (!Array.isArray(data) || data.length === 0 || typeof series['id'] !== 'string') return;\n const point: unknown = data[Math.max(0, Math.min(data.length - 1, Math.round(category)))];\n if (\n record(point) &&\n typeof point['id'] === 'string' &&\n typeof point['value'] === 'number' &&\n Number.isFinite(point['value'])\n )\n return { rowId: point['id'], seriesId: series['id'] };\n return undefined;\n}\n","import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\nimport type { ChartState } from './cartesian-model';\n\n/** Internal plot shell: state changes preserve the renderer's allocated geometry. */\n@Component({\n selector: 'nec-chart-stage',\n template: `\n <ng-content />\n @let current = state();\n @if (current.kind !== 'ready') {\n <div class=\"chart-status\" [class.is-loading]=\"current.kind === 'loading'\">\n @if (current.kind === 'loading') {\n <span class=\"loading-mark\" aria-hidden=\"true\"><i></i><i></i><i></i></span>\n }\n <p [attr.role]=\"current.kind === 'error' ? 'alert' : 'status'\">{{ current.message }}</p>\n @if (current.kind === 'error' && retryable()) {\n <button type=\"button\" (click)=\"retry.emit()\">{{ retryLabel() }}</button>\n }\n </div>\n }\n `,\n styles: `\n :host {\n display: block;\n position: relative;\n min-width: 0;\n }\n .chart-status {\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 12px;\n padding: 20px;\n overflow: auto;\n box-sizing: border-box;\n text-align: center;\n }\n p {\n margin: 0;\n max-width: 42ch;\n color: var(--nec-muted, #536176);\n font: inherit;\n font-size: 13px;\n line-height: 1.6;\n overflow-wrap: anywhere;\n }\n button {\n padding: 8px 12px;\n border: 1px solid var(--nec-border, #d6dce5);\n border-radius: 6px;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n }\n button:focus-visible {\n outline: 2px solid var(--nec-focus, #648dff);\n outline-offset: 3px;\n }\n .loading-mark {\n display: flex;\n align-items: end;\n gap: 4px;\n height: 24px;\n opacity: 0.55;\n }\n i {\n width: 5px;\n height: 14px;\n border-radius: 2px;\n background: var(--nec-muted, #536176);\n }\n i:nth-child(2) {\n height: 24px;\n }\n i:nth-child(3) {\n height: 19px;\n }\n `,\n host: { '[style.min-height.px]': 'height()' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChartStage {\n readonly state = input.required<ChartState>();\n readonly height = input<number | null>(320);\n readonly retryable = input(false);\n readonly retryLabel = input('Retry chart');\n readonly retry = output<void>();\n}\n"],"mappings":";;;AASA,IAAa,aAAb,MAAa,WAAU;CACZ,QAAQ,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAChC,cAAc,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAFrB,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAU,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAV,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAU,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,OAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,aAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,UAAA;EAAA,UCTvB;EASA,QAAA,CAAA,ovBAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CA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AAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,YAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA,EAAA,OAAA,QAAA;EAAA,MAAA,EAAA,YAAA,EAAA,uBAAA,WAAA,EAAA;EAAA,UAAA;EAAA,UA/EX;;;;;;;;;;;;;;;EAcT,UAAA;EAAA,QAAA,CAAA,+yBAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAiEU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAU,YAAA,CAAA;EAjFtB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAiB,UACjB;;;;;;;;;;;;;;;GAcT,MA8DK,EAAE,yBAAyB,WAAU;GAAE,iBAC5B,wBAAwB;GAAM,QAAA,CAAA,+yBAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"mantha911-ng-echarts-core.mjs","names":["record"],"sources":["../../../projects/chart-library/core/src/lib/chart-frame.ts","../../../projects/chart-library/core/src/lib/chart-frame.html","../../../projects/chart-library/core/src/lib/tooltip.ts","../../../projects/chart-library/core/src/lib/cartesian-options.ts","../../../projects/chart-library/core/src/lib/cartesian-browser.ts","../../../projects/chart-library/core/src/lib/cartesian-model.ts","../../../projects/chart-library/core/src/lib/category-ticks.ts","../../../projects/chart-library/core/src/lib/value-formatting.ts","../../../projects/chart-library/core/src/lib/chart-focus.ts","../../../projects/chart-library/core/src/lib/table-pagination.ts","../../../projects/chart-library/core/src/lib/plot-controller.ts","../../../projects/chart-library/core/src/lib/cartesian-chart.ts","../../../projects/chart-library/core/src/lib/curve-options.ts","../../../projects/chart-library/core/src/lib/curve-point.ts","../../../projects/chart-library/core/src/lib/chart-stage.ts","../../../projects/chart-library/core/src/lib/table-pager.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n/** Shared presentation shell; no renderer or chart lifecycle behavior yet. */\n@Component({\n selector: 'nec-chart-frame',\n templateUrl: './chart-frame.html',\n styleUrl: './chart-frame.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChartFrame {\n readonly title = input.required<string>();\n readonly description = input('');\n}\n","<section class=\"chart-frame\" [attr.aria-label]=\"title()\">\n <header>\n <h2>{{ title() }}</h2>\n @if (description()) {\n <p>{{ description() }}</p>\n }\n </header>\n <ng-content />\n</section>\n","import type { CartesianThemeTokens } from './cartesian-options';\n\nexport function escapeTooltipText(value: string): string {\n return value.replace(\n /[&<>\"']/g,\n (character) =>\n ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;' })[character]!,\n );\n}\n\nexport function tooltipStyle(tokens: CartesianThemeTokens) {\n return {\n backgroundColor: tokens.background,\n borderColor: tokens.border,\n textStyle: { color: tokens.text, fontFamily: tokens.fontFamily, fontSize: 12, lineHeight: 20 },\n padding: [10, 12] as [number, number],\n borderRadius: 8,\n extraCssText:\n 'max-width: min(280px, calc(100% - 16px)); white-space: normal; pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,.12);',\n };\n}\n\nexport interface TooltipRow {\n readonly label: string;\n readonly value: string;\n readonly color?: string;\n}\n\n/** Escape every consumer-supplied string at the final HTML boundary. */\nexport function tooltipMarkup(title: string, rows: readonly TooltipRow[]): string {\n const escape = escapeTooltipText;\n return `<div data-nec-tooltip><strong style=\"display:block;font-weight:600;margin-bottom:6px;overflow-wrap:anywhere\">${escape(title)}</strong>${rows\n .map(\n (row) =>\n `<div style=\"display:flex;align-items:baseline;gap:12px;margin-top:4px\">${row.color ? `<span aria-hidden=\"true\" style=\"flex:none;width:8px;height:8px;border-radius:2px;background:${escape(row.color)}\"></span>` : ''}<span style=\"flex:1;min-width:0;overflow-wrap:anywhere\">${escape(row.label)}</span><span style=\"flex:0 1 auto;min-width:0;max-width:65%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;text-align:right\">${escape(row.value)}</span></div>`,\n )\n .join('')}</div>`;\n}\n","import { tooltipStyle, tooltipMarkup } from './tooltip';\n// First two palette colors adapted from EvilCharts (2026 Gurbinder, MIT); see package third-party notice.\nimport type { ChartTheme } from './chart-types';\nimport type { CartesianModel } from './cartesian-model';\nexport interface CartesianThemeTokens {\n readonly fontFamily: string;\n readonly background: string;\n readonly text: string;\n readonly muted: string;\n readonly border: string;\n readonly series: readonly string[];\n}\n\nexport function defaultCartesianTheme(theme: ChartTheme): CartesianThemeTokens {\n return theme === 'dark'\n ? {\n fontFamily: 'system-ui, sans-serif',\n background: '#18202c',\n text: '#edf2fa',\n muted: '#b2bfd2',\n border: '#3b4a61',\n series: ['#10b981', '#f43f5e', '#60a5fa', '#fbbf24'],\n }\n : {\n fontFamily: 'system-ui, sans-serif',\n background: '#ffffff',\n text: '#18202c',\n muted: '#536176',\n border: '#d6dce5',\n series: ['#047857', '#be123c', '#2563eb', '#a16207'],\n };\n}\n\nexport { escapeTooltipText } from './tooltip';\n\nfunction record(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\nexport function buildCartesianOptions<T>(\n model: Exclude<CartesianModel<T>, { kind: 'error' }>,\n hiddenIds: ReadonlySet<string>,\n tokens: CartesianThemeTokens,\n horizontal: boolean,\n animation: boolean,\n format: (value: number) => string,\n categoryTicks: readonly string[] = model.rows.map((row) => row.category),\n) {\n const hasVisibleSeries = model.series.some((series) => !hiddenIds.has(series.id));\n const categoryAxis = {\n type: 'category' as const,\n data: model.rows.map((row) => row.id),\n inverse: horizontal,\n axisLine: { show: false },\n axisTick: { show: false },\n axisLabel: {\n color: tokens.muted,\n fontSize: 12,\n formatter: (_value: string, index: number) => categoryTicks[index] ?? '',\n },\n };\n const valueAxis = {\n type: 'value' as const,\n splitNumber: horizontal ? 3 : 5,\n axisLine: { show: false },\n axisTick: { show: false },\n axisLabel: {\n show: hasVisibleSeries,\n color: tokens.muted,\n fontSize: 12,\n formatter: format,\n hideOverlap: true,\n },\n splitLine: {\n show: hasVisibleSeries,\n lineStyle: { color: tokens.border, type: 'dashed' as const },\n },\n };\n return {\n animation,\n animationDuration: 300,\n animationDurationUpdate: 200,\n backgroundColor: tokens.background,\n textStyle: { fontFamily: tokens.fontFamily, color: tokens.text },\n grid: {\n left: 12,\n right: 16,\n top: 12,\n bottom: 8,\n outerBoundsMode: 'same' as const,\n outerBoundsContain: 'axisLabel' as const,\n },\n xAxis: horizontal ? valueAxis : categoryAxis,\n yAxis: horizontal ? categoryAxis : valueAxis,\n tooltip: {\n trigger: 'axis' as const,\n confine: true,\n ...tooltipStyle(tokens),\n formatter: (params: unknown) => {\n const items = Array.isArray(params) ? params : [params];\n const first = items.find((item) => record(item) && record(item['data']));\n if (!record(first) || !record(first['data'])) return '';\n const rowId: unknown = first['data']['id'];\n const row = model.rows.find((candidate) => candidate.id === rowId);\n if (!row) return '';\n const values = row.points.flatMap((point, index) => {\n if (hiddenIds.has(point.seriesId)) return [];\n const label = model.series.find((item) => item.id === point.seriesId)?.label ?? '';\n return [\n {\n label,\n value: point.value === null ? 'Missing' : format(point.value),\n color: tokens.series[index % tokens.series.length] ?? '#047857',\n },\n ];\n });\n return tooltipMarkup(row.category, values);\n },\n },\n };\n}\n","import { defaultCartesianTheme, type CartesianThemeTokens } from './cartesian-options';\nimport type { ChartSeries, ChartTheme } from './chart-types';\nimport type { PlotRendererFactory, PlotEnvironment, PlotPoint } from './plot-controller';\n\n/** Delegate transient table interactions; large tables do not need per-cell listeners. */\nexport function observeTablePreviews(\n host: HTMLElement,\n onPreview: (point: PlotPoint | null, trigger: 'pointer' | 'focus') => void,\n): () => void {\n const action = (target: EventTarget | null) =>\n target instanceof Element\n ? target.closest<HTMLButtonElement>('tbody button[data-preview-row]')\n : null;\n const handle = (event: Event) => {\n const pointer = event.type.startsWith('pointer');\n if (pointer && (event as PointerEvent).pointerType === 'touch') return;\n const button = action(event.target);\n if (!button || !host.contains(button)) return;\n const related = action((event as FocusEvent).relatedTarget);\n if (related === button) return;\n const leaving = event.type === 'pointerout' || event.type === 'focusout';\n onPreview(\n leaving\n ? null\n : {\n rowId: button.dataset['previewRow']!,\n seriesId: button.dataset['previewSeries']!,\n },\n pointer ? 'pointer' : 'focus',\n );\n };\n const types = ['pointerover', 'pointerout', 'focusin', 'focusout'] as const;\n for (const type of types) host.addEventListener(type, handle);\n // Keyboard focus can arrive before Angular applies the opt-in input. Retain\n // that real focus when attaching, without moving focus or requiring another Tab.\n const focused = action(host.ownerDocument.activeElement);\n if (focused && host.contains(focused))\n onPreview(\n { rowId: focused.dataset['previewRow']!, seriesId: focused.dataset['previewSeries']! },\n 'focus',\n );\n return () => {\n for (const type of types) host.removeEventListener(type, handle);\n };\n}\nexport function browserPlotEnvironment<Option>(\n load: () => Promise<PlotRendererFactory<Option>>,\n host: HTMLElement,\n): PlotEnvironment<Option> {\n return {\n load: async () => {\n // Canvas text measurements must use the loaded host font from the first render.\n // A failed web font still permits the browser's normal fallback stack.\n const font = getComputedStyle(host).fontFamily || 'system-ui, sans-serif';\n const [factory] = await Promise.all([\n load(),\n host.ownerDocument.fonts?.load(`12px ${font}`).catch(() => undefined),\n ]);\n return factory;\n },\n observe: (host, onResize) => {\n const observer = new ResizeObserver(onResize);\n observer.observe(host);\n return () => observer.disconnect();\n },\n schedule: (callback) => requestAnimationFrame(callback),\n cancel: (id) => cancelAnimationFrame(id),\n };\n}\n\n/** Resolve inherited typography and CSS colors at the browser boundary. */\nexport function readCartesianTheme<T>(\n host: HTMLElement,\n theme: ChartTheme,\n series: readonly ChartSeries<T>[],\n plotSurface: HTMLElement,\n): CartesianThemeTokens {\n const defaults = defaultCartesianTheme(theme);\n const styles = getComputedStyle(host);\n const probe = host.ownerDocument.createElement('span');\n probe.style.cssText = 'position:absolute;visibility:hidden;pointer-events:none';\n plotSurface.append(probe);\n const canvas = host.ownerDocument.createElement('canvas');\n canvas.width = canvas.height = 1;\n const context = canvas.getContext('2d', { willReadFrequently: true });\n const resolve = (raw: string, fallback: string): string => {\n if (!raw || !CSS.supports('color', raw) || !context) return fallback;\n probe.style.color = raw;\n context.clearRect(0, 0, 1, 1);\n context.fillStyle = getComputedStyle(probe).color;\n context.fillRect(0, 0, 1, 1);\n const [r, g, b, a] = context.getImageData(0, 0, 1, 1).data;\n return `rgba(${r},${g},${b},${a! / 255})`;\n };\n const token = (name: string, fallback: string): string =>\n resolve(styles.getPropertyValue(`--nec-${name}`).trim(), fallback);\n try {\n return {\n fontFamily: styles.fontFamily || defaults.fontFamily,\n background: token('background', defaults.background),\n text: token('text', defaults.text),\n muted: token('muted', defaults.muted),\n border: token('border', defaults.border),\n series: series.map((item, index) => {\n const fallback = defaults.series[index % defaults.series.length]!;\n return item.color ? resolve(item.color, fallback) : token(`series-${index + 1}`, fallback);\n }),\n };\n } finally {\n probe.remove();\n }\n}\n","import type { ChartSeries, StringKey } from './chart-types';\n\nexport interface CartesianPoint<T> {\n readonly rowId: string;\n readonly seriesId: string;\n readonly row: T;\n readonly value: number | null;\n}\n\nexport interface CartesianRow<T> {\n readonly id: string;\n readonly category: string;\n readonly points: readonly CartesianPoint<T>[];\n}\n\nexport type CartesianModel<T> =\n | { readonly kind: 'error'; readonly message: string }\n | {\n readonly kind: 'empty' | 'ready';\n readonly rows: readonly CartesianRow<T>[];\n readonly series: readonly ChartSeries<T>[];\n };\n\nexport function normalizeCartesianData<T extends object>(\n data: readonly T[],\n rowIdKey: StringKey<T>,\n categoryKey: StringKey<T>,\n series: readonly ChartSeries<T>[],\n): CartesianModel<T> {\n const invalid = (message: string): CartesianModel<T> => ({ kind: 'error', message });\n if (!Array.isArray(data) || !Array.isArray(series)) {\n return invalid('Chart data and series must be arrays.');\n }\n const seriesIds = new Set<string>();\n for (const item of series) {\n if (!item || typeof item.id !== 'string' || !item.id || seriesIds.has(item.id)) {\n return invalid('Series require unique, nonempty string identifiers.');\n }\n if (typeof item.key !== 'string' || typeof item.label !== 'string') {\n return invalid('Series require a numeric field key and a text label.');\n }\n seriesIds.add(item.id);\n }\n const rowIds = new Set<string>();\n const rows: CartesianRow<T>[] = [];\n let hasValue = false;\n for (const row of data) {\n if (!row || typeof row !== 'object') return invalid('Each chart row must be an object.');\n const id = row[rowIdKey];\n const category = row[categoryKey];\n if (typeof id !== 'string' || !id || rowIds.has(id)) {\n return invalid('Rows require unique, nonempty string identifiers.');\n }\n if (typeof category !== 'string') return invalid('Category labels must be strings.');\n rowIds.add(id);\n const points: CartesianPoint<T>[] = [];\n for (const item of series) {\n const value: unknown = row[item.key];\n if (value != null && (typeof value !== 'number' || !Number.isFinite(value))) {\n return invalid('Measures must be finite numbers or missing values.');\n }\n if (typeof value === 'number') hasValue = true;\n points.push({\n rowId: id,\n seriesId: item.id,\n row,\n value: value == null ? null : (value as number),\n });\n }\n rows.push({ id, category, points });\n }\n return { kind: hasValue ? 'ready' : 'empty', rows, series };\n}\n\nexport type ChartState =\n | { readonly kind: 'ready' }\n | { readonly kind: 'loading' | 'empty' | 'error'; readonly message: string };\n\nexport function resolveCartesianState(\n applicationError: string | null,\n loading: boolean,\n model:\n { readonly kind: 'error'; readonly message: string } | { readonly kind: 'ready' | 'empty' },\n rendererError: boolean,\n configurationError: string | null,\n): ChartState {\n if (applicationError !== null)\n return { kind: 'error', message: applicationError || 'Unable to display chart.' };\n if (loading) return { kind: 'loading', message: 'Loading chart…' };\n if (model.kind === 'error') return model;\n if (configurationError) return { kind: 'error', message: configurationError };\n if (rendererError)\n return { kind: 'error', message: 'Unable to render chart. Try again or update the data.' };\n if (model.kind === 'empty') return { kind: 'empty', message: 'No chart data available.' };\n return { kind: 'ready' };\n}\n","import type { CategoryTickFormatter } from './chart-types';\n\n/** Evaluate consumer code before rendering, never from an ECharts callback. */\nexport function formatCategoryTicks(\n categories: readonly string[],\n formatter: CategoryTickFormatter | undefined,\n): { readonly labels: readonly string[]; readonly error: string | null } {\n try {\n if (formatter !== undefined && typeof formatter !== 'function') throw new TypeError();\n const labels = categories.map((category, index) => {\n const label = formatter ? formatter(category, index) : category;\n if (typeof label !== 'string') throw new TypeError();\n return label;\n });\n return { labels, error: null };\n } catch {\n return {\n labels: [],\n error: 'Category tick formatting failed. Use a function that returns text.',\n };\n }\n}\n","import type { ValueFormatter } from './chart-types';\n\nconst formatterError = 'Value formatting failed. Use a pure function that returns text.';\n\n/** Shared numeric text; missing observations never reach consumer callbacks. */\nexport function createValueFormatting(\n locale: string,\n options: Intl.NumberFormatOptions | undefined,\n formatter: ValueFormatter | undefined,\n values: readonly (number | null)[],\n): { readonly format: ValueFormatter; readonly error: string | null } {\n let numberFormat: Intl.NumberFormat;\n try {\n if (\n typeof locale !== 'string' ||\n !locale ||\n (options !== undefined &&\n (typeof options !== 'object' || options === null || Array.isArray(options)))\n )\n throw new TypeError();\n numberFormat = new Intl.NumberFormat(locale, options);\n } catch {\n return { format: () => '', error: 'The chart locale or number format options are invalid.' };\n }\n if (formatter === undefined) return { format: numberFormat.format, error: null };\n try {\n if (typeof formatter !== 'function') throw new TypeError();\n // Cache known observations so opening a table or tooltip never reruns consumer code.\n const labels = new Map<number | string, string>();\n const format: ValueFormatter = (value) => {\n const key = Object.is(value, -0) ? '-0' : value;\n if (labels.has(key)) return labels.get(key)!;\n try {\n const label = formatter(value);\n if (typeof label !== 'string') throw new TypeError();\n labels.set(key, label);\n return label;\n } catch {\n // Unexpected axis-tick failures are contained by the browser plot controller.\n throw new Error(formatterError);\n }\n };\n for (const value of values) if (value !== null) format(value);\n return { format, error: null };\n } catch {\n return { format: () => '', error: formatterError };\n }\n}\n","/** Keep native control focus when keyed DOM moves; never take it back from another control. */\nexport class ChartFocusKeeper {\n private remembered: HTMLElement | null = null;\n private readonly document: Document;\n private readonly onFocus = (event: FocusEvent): void => {\n const target = event.target;\n this.remembered = target instanceof HTMLElement && this.host.contains(target) ? target : null;\n };\n private readonly onPointer = (event: PointerEvent): void => {\n if (!(event.target instanceof Node) || !this.remembered?.contains(event.target))\n this.remembered = null;\n };\n\n constructor(private readonly host: HTMLElement) {\n this.document = host.ownerDocument;\n this.document.addEventListener('focusin', this.onFocus);\n this.document.addEventListener('pointerdown', this.onPointer);\n }\n\n restore(): void {\n const previous = this.remembered;\n if (\n !previous ||\n !this.document.hasFocus() ||\n this.document.activeElement !== this.document.body\n )\n return;\n if (this.available(previous)) {\n previous.focus({ preventScroll: true });\n return;\n }\n // The focused row/series disappeared, or ready UI changed to a status message.\n const selectors = [\n '.table-toggle',\n '.legend button',\n '[role=\"alert\"], [role=\"status\"]',\n '.chart-frame',\n ];\n let fallback: HTMLElement | undefined;\n for (const selector of selectors) {\n fallback = [...this.host.querySelectorAll<HTMLElement>(selector)].find((element) =>\n this.available(element),\n );\n if (fallback) break;\n }\n this.remembered = null;\n if (fallback) {\n if (fallback.tagName !== 'BUTTON') fallback.tabIndex = -1;\n fallback.focus({ preventScroll: true });\n }\n }\n\n private available(element: HTMLElement): boolean {\n return (\n element.isConnected &&\n this.host.contains(element) &&\n !element.matches(':disabled') &&\n !element.closest('[inert], [hidden], [aria-hidden=\"true\"]')\n );\n }\n\n destroy(): void {\n this.document.removeEventListener('focusin', this.onFocus);\n this.document.removeEventListener('pointerdown', this.onPointer);\n this.remembered = null;\n }\n}\n","import { computed, linkedSignal } from '@angular/core';\n\n/** Internal table window; paging never changes plot data or selection ownership. */\nexport class TablePagination {\n readonly error = computed(() => {\n const size = this.pageSize();\n return size === null || (Number.isSafeInteger(size) && size > 0)\n ? null\n : 'Table page size must be a positive safe integer or null.';\n });\n readonly total = computed(() => {\n const rows = this.data();\n return Array.isArray(rows) ? rows.length : 0;\n });\n private readonly requestedPage = linkedSignal(() => {\n // New immutable data and page-size changes restart at the first page.\n this.data();\n this.pageSize();\n return 0;\n });\n readonly count = computed(() => {\n const size = this.pageSize();\n return !this.error() && size !== null ? Math.max(1, Math.ceil(this.total() / size)) : 1;\n });\n readonly page = computed(() => Math.min(this.requestedPage(), this.count() - 1));\n readonly start = computed(() => this.page() * (this.pageSize() ?? this.total()));\n readonly end = computed(() =>\n Math.min(this.total(), this.start() + (this.pageSize() ?? this.total())),\n );\n\n constructor(\n private readonly data: () => readonly unknown[],\n private readonly pageSize: () => number | null,\n ) {}\n\n rows<T>(rows: readonly T[]): readonly T[] {\n return this.pageSize() === null ? rows : rows.slice(this.start(), this.end());\n }\n\n move(delta: number): void {\n this.requestedPage.set(Math.max(0, Math.min(this.page() + delta, this.count() - 1)));\n }\n}\n","export interface PlotPoint {\n readonly rowId: string;\n readonly seriesId: string;\n}\n\nexport interface PlotRenderer<Option> {\n update(options: Option): void;\n /** A following update owns option rebuilding when optionsPending is true. */\n resize(context?: { readonly optionsPending: boolean }): void;\n dispose(): void;\n}\n\nexport type PlotRendererFactory<Option> = (\n host: HTMLElement,\n onPoint: (point: PlotPoint) => void,\n onRange?: (rowIds: readonly string[], snapshot: unknown) => void,\n onPreview?: (point: PlotPoint | null) => void,\n) => PlotRenderer<Option>;\n\nexport interface PlotEnvironment<Option> {\n load(): Promise<PlotRendererFactory<Option>>;\n observe(host: HTMLElement, onResize: () => void): () => void;\n schedule(callback: () => void): number;\n cancel(id: number): void;\n}\n\n/** Coordinates browser work; builders and Angular templates never own chart instances. */\nexport class PlotController<Option> {\n private options: Option | null = null;\n private renderer: PlotRenderer<Option> | null = null;\n private frame: number | null = null;\n private loading = false;\n private dirty = false;\n private generation = 0;\n private destroyed = false;\n private width = 0;\n private height = 0;\n private readonly disconnect: () => void;\n\n constructor(\n private readonly host: HTMLElement,\n private readonly environment: PlotEnvironment<Option>,\n private readonly onPoint: (point: PlotPoint) => void,\n private readonly onError: () => void,\n private readonly onRange: (rowIds: readonly string[], snapshot: unknown) => void = () => {},\n private readonly onPreview: (point: PlotPoint | null) => void = () => {},\n ) {\n this.disconnect = environment.observe(host, () => this.schedule());\n }\n\n update(options: Option | null): void {\n if (this.destroyed) return;\n this.options = options;\n this.dirty = true;\n if (options === null) {\n this.generation++;\n this.loading = false;\n this.cancelFrame();\n this.disposeRenderer();\n return;\n }\n this.schedule();\n }\n\n destroy(): void {\n if (this.destroyed) return;\n this.destroyed = true;\n this.generation++;\n this.cancelFrame();\n this.disconnect();\n this.disposeRenderer();\n }\n\n private schedule(): void {\n if (this.destroyed || !this.options || this.frame !== null) return;\n this.frame = this.environment.schedule(() => {\n this.frame = null;\n void this.render();\n });\n }\n\n private async render(): Promise<void> {\n if (this.destroyed || !this.options || !this.host.clientWidth || !this.host.clientHeight)\n return;\n // A queued observer delivery must not clear another render's pending import.\n if (!this.renderer && this.loading) return;\n const generation = this.generation;\n try {\n if (!this.renderer) {\n this.loading = true;\n const factory = await this.environment.load();\n if (this.destroyed || generation !== this.generation || !this.options) return;\n // Measure again after asynchronous loading; a formerly visible host may now be hidden.\n if (!this.host.clientWidth || !this.host.clientHeight) return;\n this.width = this.host.clientWidth;\n this.height = this.host.clientHeight;\n // Renderer factories initialize at the host's current size.\n this.renderer = factory(this.host, this.onPoint, this.onRange, this.onPreview);\n this.dirty = true;\n }\n const width = this.host.clientWidth;\n const height = this.host.clientHeight;\n if (width !== this.width || height !== this.height) {\n this.renderer.resize({ optionsPending: this.dirty });\n this.width = width;\n this.height = height;\n }\n if (this.dirty && this.options) {\n this.renderer.update(this.options);\n this.dirty = false;\n }\n } catch {\n if (!this.destroyed && generation === this.generation) {\n this.options = null;\n this.generation++;\n this.loading = false;\n this.cancelFrame();\n this.disposeRenderer();\n this.onError();\n }\n } finally {\n if (generation === this.generation) this.loading = false;\n }\n }\n\n private disposeRenderer(): void {\n this.renderer?.dispose();\n this.renderer = null;\n this.width = this.height = 0;\n }\n\n private cancelFrame(): void {\n if (this.frame !== null) this.environment.cancel(this.frame);\n this.frame = null;\n }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n afterNextRender,\n afterRenderEffect,\n ApplicationRef,\n ChangeDetectionStrategy,\n Directive,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n linkedSignal,\n output,\n PLATFORM_ID,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport {\n browserPlotEnvironment,\n readCartesianTheme,\n observeTablePreviews,\n} from './cartesian-browser';\nimport {\n normalizeCartesianData,\n resolveCartesianState,\n type CartesianModel,\n} from './cartesian-model';\nimport { defaultCartesianTheme, type CartesianThemeTokens } from './cartesian-options';\nimport type { PlotRendererFactory } from './plot-controller';\nimport { formatCategoryTicks } from './category-ticks';\nimport { createValueFormatting } from './value-formatting';\nimport { ChartFocusKeeper } from './chart-focus';\nimport { TablePagination } from './table-pagination';\nimport type {\n CategoryTickFormatter,\n ChartSeries,\n ChartTheme,\n LegendVisibilityChange,\n PointSelection,\n PointPreview,\n StringKey,\n ValueFormatter,\n} from './chart-types';\nimport { PlotController, type PlotPoint } from './plot-controller';\n\ninterface PlotPreviewSnapshot {\n readonly point: PlotPoint;\n readonly context: readonly unknown[];\n}\n\n/** Internal Cartesian behavior shared by the Cartesian entries; not a supported consumer API. */\n@Directive()\nexport abstract class CartesianChart<\n T extends object,\n Option,\n Series extends ChartSeries<T> = ChartSeries<T>,\n> {\n protected abstract renderer(): Promise<PlotRendererFactory<Option>>;\n protected abstract familyConfiguration(): unknown;\n protected abstract familyError(): string | null;\n protected abstract buildOptions(context: CartesianContext<T>): Option;\n /** A family can opt into controlled row feedback without changing point events. */\n protected rowSelectionId(): string | null {\n return null;\n }\n protected rowIsSelected(id: string): boolean {\n return id === this.rowSelectionId();\n }\n protected selectRange(_rowIds: readonly string[], _snapshot: unknown): void {}\n protected canPreview(): boolean {\n return false;\n }\n protected observePreviews(): boolean {\n return this.canPreview();\n }\n protected emitPreview(_point: PointPreview<T> | null): void {}\n private pointerPreview: { point: PlotPoint; source: 'plot' | 'table' } | null = null;\n private focusPreview: PlotPoint | null = null;\n private lastPreview: PointPreview<T> | null = null;\n private readonly plotContext = computed(() => [\n this.model(),\n this.settings(),\n this.hiddenIds(),\n this.formatting(),\n this.categoryTicks(),\n this.tokens(),\n this.tableExpanded(),\n this.tablePagination.page(),\n ]);\n private readonly plotPreview = linkedSignal<\n { readonly context: readonly unknown[]; readonly ready: boolean },\n PlotPreviewSnapshot | null\n >({\n source: () => ({ context: this.plotContext(), ready: this.state().kind === 'ready' }),\n computation: ({ context, ready }, previous) =>\n ready && previous?.value?.context === context ? previous.value : null,\n equal: (a, b) =>\n a?.context === b?.context &&\n a?.point.rowId === b?.point.rowId &&\n a?.point.seriesId === b?.point.seriesId,\n });\n private previewSnapshot: readonly unknown[] | null = null;\n private readonly previewContext = computed(() => [\n this.model(),\n this.settings(),\n this.hiddenIds(),\n this.tableExpanded(),\n this.tablePagination.page(),\n this.state(),\n ]);\n readonly title = input.required<string>();\n readonly description = input('');\n readonly data = input.required<readonly T[]>();\n readonly rowIdKey = input.required<StringKey<T>>();\n readonly categoryKey = input.required<StringKey<T>>();\n readonly series = input.required<readonly Series[]>();\n readonly height = input(320);\n readonly theme = input<ChartTheme>('light');\n readonly themeRevision = input(0);\n readonly locale = input('en-US');\n readonly numberFormatOptions = input<Intl.NumberFormatOptions>();\n readonly valueFormatter = input<ValueFormatter>();\n readonly categoryTickFormatter = input<CategoryTickFormatter>();\n readonly showDataTable = input(true);\n readonly tablePageSize = input<number | null>(null);\n readonly loading = input(false);\n readonly error = input<string | null>(null);\n readonly animation = input(true);\n readonly pointSelect = output<PointSelection<T>>();\n readonly legendChange = output<LegendVisibilityChange>();\n\n private readonly destroyRef = inject(DestroyRef);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly application = inject(ApplicationRef);\n private readonly platform = inject(PLATFORM_ID);\n private readonly plot = viewChild.required<ElementRef<HTMLElement>>('plot');\n private readonly browserReady = signal(false);\n private readonly reducedMotion = signal(false);\n private readonly hiddenIds = linkedSignal<readonly Series[], ReadonlySet<string>>({\n source: this.series,\n computation: (series, previous) => {\n const hidden = previous?.value ?? new Set<string>();\n // Valid removals still count while row data is loading or invalid.\n if (\n !Array.isArray(series) ||\n !series.every(\n (item) =>\n item &&\n typeof item.id === 'string' &&\n item.id &&\n typeof item.key === 'string' &&\n typeof item.label === 'string',\n )\n )\n return hidden;\n const validIds = new Set(series.map((item) => item.id));\n if (validIds.size !== series.length) return hidden;\n const retained = new Set([...hidden].filter((id) => validIds.has(id)));\n return retained.size === hidden.size ? hidden : retained;\n },\n });\n private readonly measuredTheme = signal<CartesianThemeTokens | null>(null);\n private controller: PlotController<Option> | null = null;\n private removeMotionListener: (() => void) | null = null;\n private focusKeeper: ChartFocusKeeper | null = null;\n private removePreviewListeners: (() => void) | null = null;\n\n // A failed renderer stays failed until retry or a relevant input changes.\n protected readonly rendererError = linkedSignal(() => {\n this.model();\n this.settings();\n this.formatting();\n this.categoryTicks();\n return false;\n });\n protected readonly tableExpanded = signal(false);\n protected readonly tablePagination = new TablePagination(this.data, this.tablePageSize);\n protected readonly model = computed(() =>\n normalizeCartesianData(this.data(), this.rowIdKey(), this.categoryKey(), this.series()),\n );\n private readonly formatting = computed(() => {\n const model = this.model();\n return createValueFormatting(\n this.locale(),\n this.numberFormatOptions(),\n this.valueFormatter(),\n model.kind === 'error'\n ? []\n : model.rows.flatMap((row) => row.points.map((point) => point.value)),\n );\n });\n private readonly categoryTicks = computed(() => {\n const model = this.model();\n return formatCategoryTicks(\n model.kind === 'error' ? [] : model.rows.map((row) => row.category),\n this.categoryTickFormatter(),\n );\n });\n private readonly settings = computed(() => ({\n height: this.height(),\n family: this.familyConfiguration(),\n theme: this.theme(),\n themeRevision: this.themeRevision(),\n animation: this.animation(),\n loading: this.loading(),\n error: this.error(),\n tablePageSize: this.tablePageSize(),\n }));\n protected readonly tokens = computed(\n () => this.measuredTheme() ?? defaultCartesianTheme(this.theme()),\n );\n protected readonly plotHeight = computed(() =>\n Number.isFinite(this.height()) && this.height() > 0 ? this.height() : 320,\n );\n protected readonly state = computed(() => {\n const settings = this.settings();\n const configurationError =\n !Number.isFinite(settings.height) || settings.height <= 0\n ? 'Chart height must be a positive, finite number.'\n : !['light', 'dark'].includes(settings.theme) || !Number.isFinite(settings.themeRevision)\n ? 'Chart theme configuration is invalid.'\n : (this.familyError() ??\n this.tablePagination.error() ??\n this.formatting().error ??\n this.categoryTicks().error);\n return resolveCartesianState(\n settings.error,\n settings.loading,\n this.model(),\n this.rendererError(),\n configurationError,\n );\n });\n protected readonly legendItems = computed(() => {\n // Reconcile removals even when invalid rows leave the legend empty.\n const hiddenIds = this.hiddenIds();\n const model = this.model();\n if (model.kind === 'error') return [];\n return model.series.map((item, index) => ({\n id: item.id,\n label: item.label,\n visible: !hiddenIds.has(item.id),\n color: this.tokens().series[index % this.tokens().series.length],\n }));\n });\n protected readonly allSeriesHidden = computed(() => {\n const items = this.legendItems();\n return items.length > 0 && items.every((item) => !item.visible);\n });\n private readonly options = computed(() => {\n const model = this.model();\n if (this.state().kind !== 'ready' || model.kind === 'error') return null;\n return this.buildOptions({\n model,\n hiddenIds: this.hiddenIds(),\n tokens: this.tokens(),\n animation: this.animation() && !this.reducedMotion(),\n format: this.formatting().format,\n categoryTicks: this.categoryTicks().labels,\n });\n });\n protected readonly tableRows = computed(() => {\n const model = this.model();\n if (\n !this.showDataTable() ||\n !this.tableExpanded() ||\n this.state().kind !== 'ready' ||\n model.kind === 'error'\n )\n return [];\n return this.tablePagination.rows(model.rows).map((row) => ({\n id: row.id,\n category: row.category,\n selected: this.rowIsSelected(row.id),\n current: row.id === this.rowSelectionId(),\n cells: row.points.map((point, index) => {\n const text = point.value === null ? 'Missing' : this.formatting().format(point.value);\n return {\n ...point,\n text,\n actionLabel: `Select ${model.series[index]?.label ?? ''} for ${row.category}: ${text}`,\n };\n }),\n }));\n });\n\n constructor() {\n effect(() => {\n const context = this.previewContext();\n // An event can already describe the new inputs before this scheduled effect\n // runs. Invalidate only previews captured against an older context.\n untracked(() => {\n if (this.previewSnapshot !== context) this.clearPreview();\n });\n });\n effect(() => {\n const current = this.plotPreview();\n const enabled = this.canPreview();\n // Native pointer events can arrive before Angular propagates an enabling\n // input. Reconcile the latest hit after inputs settle, without a new move.\n if (enabled) untracked(() => this.previewPoint(current?.point ?? null, 'plot', 'pointer'));\n });\n afterNextRender(() => {\n if (!isPlatformBrowser(this.platform)) return;\n void this.application.whenStable().then(() => {\n if (this.destroyRef.destroyed) return;\n try {\n const preference = window.matchMedia('(prefers-reduced-motion: reduce)');\n this.reducedMotion.set(preference.matches);\n const onMotion = (event: MediaQueryListEvent): void =>\n this.reducedMotion.set(event.matches);\n preference.addEventListener('change', onMotion);\n this.removeMotionListener = () => preference.removeEventListener('change', onMotion);\n this.controller = new PlotController(\n this.plot().nativeElement,\n browserPlotEnvironment(() => this.renderer(), this.host.nativeElement),\n (point) => this.selectPoint(point, 'plot'),\n () => this.rendererError.set(true),\n (ids, snapshot) => this.selectRange(ids, snapshot),\n (point) => this.plotPreview.set(point ? { point, context: this.plotContext() } : null),\n );\n this.browserReady.set(true);\n this.focusKeeper = new ChartFocusKeeper(this.host.nativeElement);\n } catch {\n this.rendererError.set(true);\n }\n });\n });\n // Resolving CSS colors writes a probe and immediately reads its computed color.\n afterRenderEffect({\n mixedReadWrite: () => {\n if (!this.browserReady()) return;\n const series = this.series();\n const theme = this.theme();\n this.themeRevision();\n if (\n !Array.isArray(series) ||\n !series.every(\n (item) =>\n item &&\n typeof item.id === 'string' &&\n typeof item.key === 'string' &&\n typeof item.label === 'string',\n )\n )\n return;\n try {\n this.measuredTheme.set(\n readCartesianTheme(this.host.nativeElement, theme, series, this.plot().nativeElement),\n );\n } catch {\n this.rendererError.set(true);\n }\n },\n });\n // Option updates only schedule rendering or dispose the previous plot.\n afterRenderEffect({\n write: () => {\n this.browserReady();\n this.controller?.update(this.options());\n },\n });\n // Listener attachment also reconciles the control that currently owns focus.\n afterRenderEffect({\n mixedReadWrite: () => {\n if (this.browserReady() && this.observePreviews()) {\n this.removePreviewListeners ??= observeTablePreviews(\n this.host.nativeElement,\n (point, trigger) => this.previewPoint(point, 'table', trigger),\n );\n } else {\n this.removePreviewListeners?.();\n this.removePreviewListeners = null;\n }\n },\n });\n // Focus restoration checks current DOM ownership before changing focus.\n afterRenderEffect({\n mixedReadWrite: () => {\n this.state();\n this.tableRows();\n this.legendItems();\n this.focusKeeper?.restore();\n },\n });\n this.destroyRef.onDestroy(() => {\n this.removeMotionListener?.();\n this.removePreviewListeners?.();\n this.controller?.destroy();\n this.focusKeeper?.destroy();\n });\n }\n\n protected toggleTable(): void {\n this.tableExpanded.update((expanded) => !expanded);\n }\n\n protected previewPoint(\n point: PlotPoint | null,\n source: 'plot' | 'table',\n trigger: 'pointer' | 'focus',\n ): void {\n if (this.destroyRef.destroyed || !this.canPreview()) return;\n const context = this.previewContext();\n if (this.previewSnapshot !== context) this.clearPreview();\n if (trigger === 'focus') this.focusPreview = point;\n else this.pointerPreview = point ? { point, source } : null;\n const pointer = this.pointerPreview;\n const candidate = pointer?.point ?? this.focusPreview;\n const origin = pointer?.source ?? 'table';\n const model = this.model();\n const value =\n candidate &&\n model.kind !== 'error' &&\n this.state().kind === 'ready' &&\n !(origin === 'plot' && this.hiddenIds().has(candidate.seriesId))\n ? model.rows\n .find((row) => row.id === candidate.rowId)\n ?.points.find((cell) => cell.seriesId === candidate.seriesId)\n : null;\n const next: PointPreview<T> | null =\n value && value.value !== null\n ? { ...value, value: value.value, source: origin, trigger: pointer ? 'pointer' : 'focus' }\n : null;\n this.previewSnapshot = context;\n if (\n next?.row === this.lastPreview?.row &&\n next?.seriesId === this.lastPreview?.seriesId &&\n next?.value === this.lastPreview?.value &&\n next?.source === this.lastPreview?.source &&\n next?.trigger === this.lastPreview?.trigger\n )\n return;\n this.lastPreview = next;\n this.emitPreview(next);\n }\n\n private clearPreview(): void {\n this.previewSnapshot = null;\n this.pointerPreview = this.focusPreview = null;\n if (this.lastPreview === null) return;\n this.lastPreview = null;\n this.emitPreview(null);\n }\n\n protected resetPointPreview(): void {\n this.plotPreview.set(null);\n this.clearPreview();\n }\n protected retryRenderer(): void {\n this.rendererError.set(false);\n }\n\n protected toggleSeries(id: string): void {\n if (this.state().kind !== 'ready') return;\n const hidden = new Set(this.hiddenIds());\n if (hidden.has(id)) hidden.delete(id);\n else hidden.add(id);\n this.hiddenIds.set(hidden);\n this.legendChange.emit({ seriesId: id, visible: !hidden.has(id) });\n }\n\n protected selectPoint(point: PlotPoint, source: 'plot' | 'table'): void {\n const model = this.model();\n if (this.state().kind !== 'ready' || model.kind === 'error') return;\n if (source === 'plot' && this.hiddenIds().has(point.seriesId)) return;\n const value = model.rows\n .find((row) => row.id === point.rowId)\n ?.points.find((cell) => cell.seriesId === point.seriesId);\n if (!value || value.value === null) return;\n this.resetPointPreview();\n this.pointSelect.emit({ ...value, value: value.value, source });\n }\n}\n\nexport interface CartesianContext<T> {\n readonly model: Exclude<CartesianModel<T>, { kind: 'error' }>;\n readonly hiddenIds: ReadonlySet<string>;\n readonly tokens: CartesianThemeTokens;\n readonly animation: boolean;\n readonly format: ValueFormatter;\n readonly categoryTicks: readonly string[];\n}\n","import type { LineSeriesOption } from 'echarts/charts';\nimport type { GridComponentOption, TooltipComponentOption } from 'echarts/components';\nimport type { ComposeOption } from 'echarts/core';\nimport { buildCartesianOptions } from './cartesian-options';\nimport type { CartesianContext } from './cartesian-chart';\nexport type CurveOption = ComposeOption<\n LineSeriesOption | GridComponentOption | TooltipComponentOption\n>;\nexport function buildCurveOptions<T>(\n context: CartesianContext<T>,\n smooth: boolean,\n showPoints: boolean,\n): CurveOption {\n const { model, hiddenIds, tokens, animation, format, categoryTicks } = context;\n const common = buildCartesianOptions(\n model,\n hiddenIds,\n tokens,\n false,\n animation,\n format,\n categoryTicks,\n );\n const categoryAxis = common.xAxis;\n if (categoryAxis.type !== 'category') throw new Error('Expected category axis');\n return {\n ...common,\n xAxis: { ...categoryAxis, boundaryGap: false },\n series: model.series.flatMap((item, index): LineSeriesOption[] => {\n if (hiddenIds.has(item.id)) return [];\n const color = tokens.series[index % tokens.series.length] ?? '#047857';\n return [\n {\n id: item.id,\n name: item.label,\n type: 'line',\n smooth,\n showSymbol: showPoints,\n connectNulls: false,\n symbol: index % 2 === 0 ? 'circle' : 'diamond',\n clip: false,\n symbolSize: 6,\n triggerEvent: 'line',\n lineStyle: { color, width: 2, type: index % 2 === 0 ? 'solid' : 'dashed' },\n itemStyle: { color: tokens.background, borderColor: color, borderWidth: 2 },\n data: model.rows.map((row) => ({ id: row.id, value: row.points[index]?.value ?? '-' })),\n },\n ];\n }),\n };\n}\n","import type { PlotPoint } from './plot-controller';\nfunction record(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\nexport function curvePoint(\n event: unknown,\n options: unknown,\n convert: (x: number) => unknown,\n): PlotPoint | undefined {\n if (!record(event) || !record(options)) return;\n if (\n record(event['data']) &&\n typeof event['data']['id'] === 'string' &&\n typeof event['seriesId'] === 'string'\n ) {\n return { rowId: event['data']['id'], seriesId: event['seriesId'] };\n }\n // Whole-line clicks (including when markers are hidden) select the nearest category\n // on that painted series. Gaps have no painted path and missing cells never emit.\n if (\n (event['selfType'] !== 'line' && event['selfType'] !== 'area') ||\n typeof event['seriesIndex'] !== 'number' ||\n !record(event['event'])\n )\n return;\n const x = event['event']['offsetX'];\n if (typeof x !== 'number' || !Number.isFinite(x)) return;\n const category = convert(x);\n if (typeof category !== 'number' || !Number.isFinite(category)) return;\n const series =\n record(options) && Array.isArray(options['series'])\n ? options['series'][event['seriesIndex']]\n : undefined;\n if (!record(series)) return;\n const data = series['data'];\n if (!Array.isArray(data) || data.length === 0 || typeof series['id'] !== 'string') return;\n const point: unknown = data[Math.max(0, Math.min(data.length - 1, Math.round(category)))];\n if (\n record(point) &&\n typeof point['id'] === 'string' &&\n typeof point['value'] === 'number' &&\n Number.isFinite(point['value'])\n )\n return { rowId: point['id'], seriesId: series['id'] };\n return undefined;\n}\n","import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\nimport type { ChartState } from './cartesian-model';\n\n/** Internal plot shell: state changes preserve the renderer's allocated geometry. */\n@Component({\n selector: 'nec-chart-stage',\n template: `\n <ng-content />\n @let current = state();\n @if (current.kind !== 'ready') {\n <div class=\"chart-status\" [class.is-loading]=\"current.kind === 'loading'\">\n @if (current.kind === 'loading') {\n <span class=\"loading-mark\" aria-hidden=\"true\"><i></i><i></i><i></i></span>\n }\n <p [attr.role]=\"current.kind === 'error' ? 'alert' : 'status'\">{{ current.message }}</p>\n @if (current.kind === 'error' && retryable()) {\n <button type=\"button\" (click)=\"retry.emit()\">{{ retryLabel() }}</button>\n }\n </div>\n }\n `,\n styles: `\n :host {\n display: block;\n position: relative;\n min-width: 0;\n }\n .chart-status {\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 12px;\n padding: 20px;\n overflow: auto;\n box-sizing: border-box;\n text-align: center;\n }\n p {\n margin: 0;\n max-width: 42ch;\n color: var(--nec-muted, #536176);\n font: inherit;\n font-size: 13px;\n line-height: 1.6;\n overflow-wrap: anywhere;\n }\n button {\n padding: 8px 12px;\n border: 1px solid var(--nec-border, #d6dce5);\n border-radius: 6px;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n }\n button:focus-visible {\n outline: 2px solid var(--nec-focus, #648dff);\n outline-offset: 3px;\n }\n .loading-mark {\n display: flex;\n align-items: end;\n gap: 4px;\n height: 24px;\n opacity: 0.55;\n }\n i {\n width: 5px;\n height: 14px;\n border-radius: 2px;\n background: var(--nec-muted, #536176);\n }\n i:nth-child(2) {\n height: 24px;\n }\n i:nth-child(3) {\n height: 19px;\n }\n `,\n host: { '[style.min-height.px]': 'height()' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChartStage {\n readonly state = input.required<ChartState>();\n readonly height = input<number | null>(320);\n readonly retryable = input(false);\n readonly retryLabel = input('Retry chart');\n readonly retry = output<void>();\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport type { TablePagination } from './table-pagination';\n\n@Component({\n selector: 'nec-table-pager',\n template: `\n @let pages = pagination();\n @if (pages.count() > 1) {\n <nav [attr.aria-label]=\"label() + ' data table pages'\">\n <button\n type=\"button\"\n aria-label=\"Previous table page\"\n [attr.aria-disabled]=\"pages.page() === 0 ? 'true' : null\"\n (click)=\"pages.move(-1)\"\n >\n Previous\n </button>\n <span role=\"status\" aria-atomic=\"true\">\n Rows {{ pages.start() + 1 }}–{{ pages.end() }} of {{ pages.total() }}\n </span>\n <button\n type=\"button\"\n aria-label=\"Next table page\"\n [attr.aria-disabled]=\"pages.page() === pages.count() - 1 ? 'true' : null\"\n (click)=\"pages.move(1)\"\n >\n Next\n </button>\n </nav>\n }\n `,\n styles: `\n nav {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.5rem;\n margin-top: 1rem;\n }\n span {\n font-size: 0.875rem;\n font-variant-numeric: tabular-nums;\n }\n button {\n padding: 0.5rem 0.75rem;\n border: 1px solid var(--nec-border, #d6dce5);\n border-radius: 0.375rem;\n color: inherit;\n background: transparent;\n font: inherit;\n cursor: pointer;\n }\n button:focus-visible {\n outline: 3px solid var(--nec-focus, #648dff);\n outline-offset: 3px;\n }\n button[aria-disabled='true'] {\n color: var(--nec-muted, #536176);\n cursor: default;\n border-style: dashed;\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TablePager {\n readonly pagination = input.required<TablePagination>();\n readonly label = input.required<string>();\n}\n"],"mappings":";;;AASA,IAAa,aAAb,MAAa,WAAU;CACZ,QAAQ,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAChC,cAAc,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAFrB,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAU,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAV,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAU,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,OAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;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;;;;;GAyBT,iBAgCgB,wBAAwB;GAAM,QAAA,CAAA,2dAAA;EAAA,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { ChangeDetectionStrategy, Component, InjectionToken, inject, input } from "@angular/core";
3
- import { ChartFrame, ɵCartesianChart, ɵChartStage, ɵbuildCurveOptions as buildLineOptions } from "@mantha911/ng-echarts/core";
3
+ import { ChartFrame, ɵCartesianChart, ɵChartStage, ɵTablePager, ɵbuildCurveOptions as buildLineOptions } from "@mantha911/ng-echarts/core";
4
4
  const LINE_RENDERER_LOADER = new InjectionToken("Line renderer loader", {
5
5
  providedIn: "root",
6
6
  factory: () => () => import("./mantha911-ng-echarts-line-line-renderer-DbAVCM71.mjs").then((module) => module.createLineRenderer)
@@ -56,25 +56,34 @@ var LineChart = class LineChart extends ɵCartesianChart {
56
56
  },
57
57
  usesInheritance: true,
58
58
  ngImport: i0,
59
- template: "<nec-chart-frame\n [title]=\"title()\"\n [description]=\"description()\"\n [style.--_nec-default-background]=\"tokens().background\"\n [style.--_nec-default-text]=\"tokens().text\"\n [style.--_nec-default-muted]=\"tokens().muted\"\n [style.--_nec-default-border]=\"tokens().border\"\n>\n @let currentState = state();\n\n <nec-chart-stage\n [state]=\"currentState\"\n [height]=\"plotHeight()\"\n [retryable]=\"rendererError()\"\n (retry)=\"retryRenderer()\"\n >\n <div\n #plot\n class=\"plot\"\n [hidden]=\"currentState.kind !== 'ready'\"\n [style.height.px]=\"plotHeight()\"\n aria-hidden=\"true\"\n ></div>\n\n @if (currentState.kind === 'ready' && allSeriesHidden()) {\n <div class=\"plot-message\" role=\"status\">\n <span>All series are hidden. Choose a series below.</span>\n </div>\n }\n </nec-chart-stage>\n <div\n class=\"chart-controls\"\n [attr.inert]=\"currentState.kind !== 'ready' ? '' : null\"\n [attr.aria-hidden]=\"currentState.kind !== 'ready' ? 'true' : null\"\n >\n <div class=\"legend\" aria-label=\"Chart series\">\n @for (item of legendItems(); track item.id) {\n <button\n type=\"button\"\n [disabled]=\"currentState.kind !== 'ready'\"\n [attr.aria-pressed]=\"item.visible\"\n (click)=\"toggleSeries(item.id)\"\n >\n <span class=\"swatch\" [style.background]=\"item.color\" aria-hidden=\"true\"></span>\n {{ item.label }}\n <span class=\"visibility\" [class.legend-note]=\"false\">{{\n item.visible ? 'Visible' : 'Hidden'\n }}</span>\n </button>\n }\n </div>\n @if (showDataTable()) {\n <button\n type=\"button\"\n class=\"table-toggle\"\n [disabled]=\"currentState.kind !== 'ready'\"\n [attr.aria-expanded]=\"tableExpanded()\"\n (click)=\"toggleTable()\"\n >\n {{ tableExpanded() ? 'Hide data table' : 'Show data table' }}\n </button>\n @if (tableExpanded() && currentState.kind === 'ready') {\n <div\n class=\"table-scroll\"\n tabindex=\"0\"\n role=\"region\"\n [attr.aria-label]=\"title() + ' data table'\"\n >\n <table>\n <caption>\n {{\n title()\n }}\n values\n </caption>\n <thead>\n <tr>\n <th scope=\"col\">Category</th>\n @for (item of legendItems(); track item.id) {\n <th scope=\"col\">{{ item.label }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of tableRows(); track row.id) {\n <tr\n [class.selected-row]=\"row.selected\"\n [attr.aria-current]=\"row.current ? 'true' : null\"\n >\n <th scope=\"row\">\n {{ row.category }}\n @if (row.selected) {\n <span class=\"selection-label\">Selected</span>\n }\n </th>\n @for (cell of row.cells; track cell.seriesId) {\n <td>\n @if (cell.value !== null) {\n <button\n type=\"button\"\n [attr.aria-label]=\"cell.actionLabel\"\n [attr.data-preview-row]=\"row.id\"\n [attr.data-preview-series]=\"cell.seriesId\"\n (click)=\"selectPoint(cell, 'table')\"\n >\n {{ cell.text }}\n </button>\n } @else {\n <span>{{ cell.text }}</span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n }\n </div>\n</nec-chart-frame>\n",
59
+ template: "<nec-chart-frame\n [title]=\"title()\"\n [description]=\"description()\"\n [style.--_nec-default-background]=\"tokens().background\"\n [style.--_nec-default-text]=\"tokens().text\"\n [style.--_nec-default-muted]=\"tokens().muted\"\n [style.--_nec-default-border]=\"tokens().border\"\n>\n @let currentState = state();\n\n <nec-chart-stage\n [state]=\"currentState\"\n [height]=\"plotHeight()\"\n [retryable]=\"rendererError()\"\n (retry)=\"retryRenderer()\"\n >\n <div\n #plot\n class=\"plot\"\n [hidden]=\"currentState.kind !== 'ready'\"\n [style.height.px]=\"plotHeight()\"\n aria-hidden=\"true\"\n ></div>\n\n @if (currentState.kind === 'ready' && allSeriesHidden()) {\n <div class=\"plot-message\" role=\"status\">\n <span>All series are hidden. Choose a series below.</span>\n </div>\n }\n </nec-chart-stage>\n <div\n class=\"chart-controls\"\n [attr.inert]=\"currentState.kind !== 'ready' ? '' : null\"\n [attr.aria-hidden]=\"currentState.kind !== 'ready' ? 'true' : null\"\n >\n <div class=\"legend\" aria-label=\"Chart series\">\n @for (item of legendItems(); track item.id) {\n <button\n type=\"button\"\n [disabled]=\"currentState.kind !== 'ready'\"\n [attr.aria-pressed]=\"item.visible\"\n (click)=\"toggleSeries(item.id)\"\n >\n <span class=\"swatch\" [style.background]=\"item.color\" aria-hidden=\"true\"></span>\n {{ item.label }}\n <span class=\"visibility\" [class.legend-note]=\"false\">{{\n item.visible ? 'Visible' : 'Hidden'\n }}</span>\n </button>\n }\n </div>\n @if (showDataTable()) {\n <button\n type=\"button\"\n class=\"table-toggle\"\n [disabled]=\"currentState.kind !== 'ready'\"\n [attr.aria-expanded]=\"tableExpanded()\"\n (click)=\"toggleTable()\"\n >\n {{ tableExpanded() ? 'Hide data table' : 'Show data table' }}\n </button>\n @if (tableExpanded() && currentState.kind === 'ready') {\n <nec-table-pager [pagination]=\"tablePagination\" [label]=\"title()\" />\n <div\n class=\"table-scroll\"\n tabindex=\"0\"\n role=\"region\"\n [attr.aria-label]=\"title() + ' data table'\"\n >\n <table>\n <caption>\n {{\n title()\n }}\n values\n </caption>\n <thead>\n <tr>\n <th scope=\"col\">Category</th>\n @for (item of legendItems(); track item.id) {\n <th scope=\"col\">{{ item.label }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of tableRows(); track row.id) {\n <tr\n [class.selected-row]=\"row.selected\"\n [attr.aria-current]=\"row.current ? 'true' : null\"\n >\n <th scope=\"row\">\n {{ row.category }}\n @if (row.selected) {\n <span class=\"selection-label\">Selected</span>\n }\n </th>\n @for (cell of row.cells; track cell.seriesId) {\n <td>\n @if (cell.value !== null) {\n <button\n type=\"button\"\n [attr.aria-label]=\"cell.actionLabel\"\n [attr.data-preview-row]=\"row.id\"\n [attr.data-preview-series]=\"cell.seriesId\"\n (click)=\"selectPoint(cell, 'table')\"\n >\n {{ cell.text }}\n </button>\n } @else {\n <span>{{ cell.text }}</span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n }\n </div>\n</nec-chart-frame>\n",
60
60
  styles: [":host{display:block;min-width:0}.plot{width:100%}.plot[hidden]{display:none}.legend{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}button{padding:.5rem .75rem;border:1px solid var(--nec-border, #d6dce5);border-radius:.375rem;color:inherit;background:transparent;font:inherit;cursor:pointer}button:focus-visible,.table-scroll:focus-visible{outline:3px solid var(--nec-focus, #648dff);outline-offset:3px}.swatch{display:inline-block;width:.75rem;height:.75rem;border-radius:.125rem;margin-right:.375rem}.visibility{margin-left:.5rem;font-size:.75rem}.table-toggle{margin:.25rem 0}.table-scroll{overflow-x:auto;margin-top:1rem}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;text-align:left}caption{padding:.5rem;text-align:left;font-weight:600}th,td{padding:.5rem;border-bottom:1px solid var(--nec-border, #d6dce5)}td{white-space:nowrap}.selected-row{background:color-mix(in srgb,var(--nec-text, #18202c) 5%,transparent)}.selected-row th{box-shadow:inset 2px 0 var(--nec-text, #18202c)}.selection-label{display:block;margin-top:2px;color:var(--nec-muted, #536176);font-size:.6875rem;font-weight:500}.legend button{position:relative;display:inline-flex;align-items:center;gap:6px}.legend button:hover{background:color-mix(in srgb,var(--nec-text, #18202c) 4%,transparent)}.legend button[aria-pressed=false]{border-style:dashed;color:var(--nec-muted, #536176)}.legend button[aria-pressed=false] .swatch{opacity:.35}.pie-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:8px}.pie-legend button{display:grid;grid-template-columns:8px minmax(0,1fr);gap:2px 6px;padding:8px 10px;min-width:0;text-align:left}.legend-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-values{grid-column:2;display:flex;justify-content:space-between;gap:6px;font-size:11px;font-variant-numeric:tabular-nums;color:var(--nec-muted, #536176)}.donut-total{position:absolute;inset:0;margin:auto;width:min(36%,140px);height:fit-content;text-align:center;pointer-events:none}.donut-total strong{display:block;font-size:clamp(18px,3vw,26px);line-height:1.25;font-weight:600;letter-spacing:-.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.donut-total span{display:block;margin-top:4px;font-size:11px;line-height:16px;color:var(--nec-muted, #536176);overflow-wrap:anywhere}@media(max-width:600px){.pie-legend{grid-template-columns:repeat(2,minmax(0,1fr))}}.legend-values{flex-wrap:wrap;min-width:0}.legend-values>span{min-width:0;overflow-wrap:anywhere}.donut-total strong,.donut-total span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n", ".chart-controls{min-height:52px}.chart-controls[inert]{visibility:hidden;pointer-events:none}.plot-message{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;padding:20px;margin:0;box-sizing:border-box;text-align:center;color:var(--nec-muted, #536176);font-size:13px;line-height:1.6;pointer-events:none}.visibility:not(.legend-note){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.scale-context{margin:0 0 8px;color:var(--nec-muted, #536176);font-size:12px;line-height:20px}.plot-message>span{max-width:34ch;padding:10px 12px;border-radius:6px;background:var(--nec-background, #fff)}\n"],
61
- dependencies: [{
62
- kind: "component",
63
- type: ChartFrame,
64
- selector: "nec-chart-frame",
65
- inputs: ["title", "description"]
66
- }, {
67
- kind: "component",
68
- type: ɵChartStage,
69
- selector: "nec-chart-stage",
70
- inputs: [
71
- "state",
72
- "height",
73
- "retryable",
74
- "retryLabel"
75
- ],
76
- outputs: ["retry"]
77
- }],
61
+ dependencies: [
62
+ {
63
+ kind: "component",
64
+ type: ChartFrame,
65
+ selector: "nec-chart-frame",
66
+ inputs: ["title", "description"]
67
+ },
68
+ {
69
+ kind: "component",
70
+ type: ɵChartStage,
71
+ selector: "nec-chart-stage",
72
+ inputs: [
73
+ "state",
74
+ "height",
75
+ "retryable",
76
+ "retryLabel"
77
+ ],
78
+ outputs: ["retry"]
79
+ },
80
+ {
81
+ kind: "component",
82
+ type: ɵTablePager,
83
+ selector: "nec-table-pager",
84
+ inputs: ["pagination", "label"]
85
+ }
86
+ ],
78
87
  changeDetection: i0.ChangeDetectionStrategy.OnPush
79
88
  });
80
89
  };
@@ -87,9 +96,13 @@ i0.ɵɵngDeclareClassMetadata({
87
96
  type: Component,
88
97
  args: [{
89
98
  selector: "nec-line-chart",
90
- imports: [ChartFrame, ɵChartStage],
99
+ imports: [
100
+ ChartFrame,
101
+ ɵChartStage,
102
+ ɵTablePager
103
+ ],
91
104
  changeDetection: ChangeDetectionStrategy.OnPush,
92
- template: "<nec-chart-frame\n [title]=\"title()\"\n [description]=\"description()\"\n [style.--_nec-default-background]=\"tokens().background\"\n [style.--_nec-default-text]=\"tokens().text\"\n [style.--_nec-default-muted]=\"tokens().muted\"\n [style.--_nec-default-border]=\"tokens().border\"\n>\n @let currentState = state();\n\n <nec-chart-stage\n [state]=\"currentState\"\n [height]=\"plotHeight()\"\n [retryable]=\"rendererError()\"\n (retry)=\"retryRenderer()\"\n >\n <div\n #plot\n class=\"plot\"\n [hidden]=\"currentState.kind !== 'ready'\"\n [style.height.px]=\"plotHeight()\"\n aria-hidden=\"true\"\n ></div>\n\n @if (currentState.kind === 'ready' && allSeriesHidden()) {\n <div class=\"plot-message\" role=\"status\">\n <span>All series are hidden. Choose a series below.</span>\n </div>\n }\n </nec-chart-stage>\n <div\n class=\"chart-controls\"\n [attr.inert]=\"currentState.kind !== 'ready' ? '' : null\"\n [attr.aria-hidden]=\"currentState.kind !== 'ready' ? 'true' : null\"\n >\n <div class=\"legend\" aria-label=\"Chart series\">\n @for (item of legendItems(); track item.id) {\n <button\n type=\"button\"\n [disabled]=\"currentState.kind !== 'ready'\"\n [attr.aria-pressed]=\"item.visible\"\n (click)=\"toggleSeries(item.id)\"\n >\n <span class=\"swatch\" [style.background]=\"item.color\" aria-hidden=\"true\"></span>\n {{ item.label }}\n <span class=\"visibility\" [class.legend-note]=\"false\">{{\n item.visible ? 'Visible' : 'Hidden'\n }}</span>\n </button>\n }\n </div>\n @if (showDataTable()) {\n <button\n type=\"button\"\n class=\"table-toggle\"\n [disabled]=\"currentState.kind !== 'ready'\"\n [attr.aria-expanded]=\"tableExpanded()\"\n (click)=\"toggleTable()\"\n >\n {{ tableExpanded() ? 'Hide data table' : 'Show data table' }}\n </button>\n @if (tableExpanded() && currentState.kind === 'ready') {\n <div\n class=\"table-scroll\"\n tabindex=\"0\"\n role=\"region\"\n [attr.aria-label]=\"title() + ' data table'\"\n >\n <table>\n <caption>\n {{\n title()\n }}\n values\n </caption>\n <thead>\n <tr>\n <th scope=\"col\">Category</th>\n @for (item of legendItems(); track item.id) {\n <th scope=\"col\">{{ item.label }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of tableRows(); track row.id) {\n <tr\n [class.selected-row]=\"row.selected\"\n [attr.aria-current]=\"row.current ? 'true' : null\"\n >\n <th scope=\"row\">\n {{ row.category }}\n @if (row.selected) {\n <span class=\"selection-label\">Selected</span>\n }\n </th>\n @for (cell of row.cells; track cell.seriesId) {\n <td>\n @if (cell.value !== null) {\n <button\n type=\"button\"\n [attr.aria-label]=\"cell.actionLabel\"\n [attr.data-preview-row]=\"row.id\"\n [attr.data-preview-series]=\"cell.seriesId\"\n (click)=\"selectPoint(cell, 'table')\"\n >\n {{ cell.text }}\n </button>\n } @else {\n <span>{{ cell.text }}</span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n }\n </div>\n</nec-chart-frame>\n",
105
+ template: "<nec-chart-frame\n [title]=\"title()\"\n [description]=\"description()\"\n [style.--_nec-default-background]=\"tokens().background\"\n [style.--_nec-default-text]=\"tokens().text\"\n [style.--_nec-default-muted]=\"tokens().muted\"\n [style.--_nec-default-border]=\"tokens().border\"\n>\n @let currentState = state();\n\n <nec-chart-stage\n [state]=\"currentState\"\n [height]=\"plotHeight()\"\n [retryable]=\"rendererError()\"\n (retry)=\"retryRenderer()\"\n >\n <div\n #plot\n class=\"plot\"\n [hidden]=\"currentState.kind !== 'ready'\"\n [style.height.px]=\"plotHeight()\"\n aria-hidden=\"true\"\n ></div>\n\n @if (currentState.kind === 'ready' && allSeriesHidden()) {\n <div class=\"plot-message\" role=\"status\">\n <span>All series are hidden. Choose a series below.</span>\n </div>\n }\n </nec-chart-stage>\n <div\n class=\"chart-controls\"\n [attr.inert]=\"currentState.kind !== 'ready' ? '' : null\"\n [attr.aria-hidden]=\"currentState.kind !== 'ready' ? 'true' : null\"\n >\n <div class=\"legend\" aria-label=\"Chart series\">\n @for (item of legendItems(); track item.id) {\n <button\n type=\"button\"\n [disabled]=\"currentState.kind !== 'ready'\"\n [attr.aria-pressed]=\"item.visible\"\n (click)=\"toggleSeries(item.id)\"\n >\n <span class=\"swatch\" [style.background]=\"item.color\" aria-hidden=\"true\"></span>\n {{ item.label }}\n <span class=\"visibility\" [class.legend-note]=\"false\">{{\n item.visible ? 'Visible' : 'Hidden'\n }}</span>\n </button>\n }\n </div>\n @if (showDataTable()) {\n <button\n type=\"button\"\n class=\"table-toggle\"\n [disabled]=\"currentState.kind !== 'ready'\"\n [attr.aria-expanded]=\"tableExpanded()\"\n (click)=\"toggleTable()\"\n >\n {{ tableExpanded() ? 'Hide data table' : 'Show data table' }}\n </button>\n @if (tableExpanded() && currentState.kind === 'ready') {\n <nec-table-pager [pagination]=\"tablePagination\" [label]=\"title()\" />\n <div\n class=\"table-scroll\"\n tabindex=\"0\"\n role=\"region\"\n [attr.aria-label]=\"title() + ' data table'\"\n >\n <table>\n <caption>\n {{\n title()\n }}\n values\n </caption>\n <thead>\n <tr>\n <th scope=\"col\">Category</th>\n @for (item of legendItems(); track item.id) {\n <th scope=\"col\">{{ item.label }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of tableRows(); track row.id) {\n <tr\n [class.selected-row]=\"row.selected\"\n [attr.aria-current]=\"row.current ? 'true' : null\"\n >\n <th scope=\"row\">\n {{ row.category }}\n @if (row.selected) {\n <span class=\"selection-label\">Selected</span>\n }\n </th>\n @for (cell of row.cells; track cell.seriesId) {\n <td>\n @if (cell.value !== null) {\n <button\n type=\"button\"\n [attr.aria-label]=\"cell.actionLabel\"\n [attr.data-preview-row]=\"row.id\"\n [attr.data-preview-series]=\"cell.seriesId\"\n (click)=\"selectPoint(cell, 'table')\"\n >\n {{ cell.text }}\n </button>\n } @else {\n <span>{{ cell.text }}</span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n }\n </div>\n</nec-chart-frame>\n",
93
106
  styles: [":host{display:block;min-width:0}.plot{width:100%}.plot[hidden]{display:none}.legend{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}button{padding:.5rem .75rem;border:1px solid var(--nec-border, #d6dce5);border-radius:.375rem;color:inherit;background:transparent;font:inherit;cursor:pointer}button:focus-visible,.table-scroll:focus-visible{outline:3px solid var(--nec-focus, #648dff);outline-offset:3px}.swatch{display:inline-block;width:.75rem;height:.75rem;border-radius:.125rem;margin-right:.375rem}.visibility{margin-left:.5rem;font-size:.75rem}.table-toggle{margin:.25rem 0}.table-scroll{overflow-x:auto;margin-top:1rem}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;text-align:left}caption{padding:.5rem;text-align:left;font-weight:600}th,td{padding:.5rem;border-bottom:1px solid var(--nec-border, #d6dce5)}td{white-space:nowrap}.selected-row{background:color-mix(in srgb,var(--nec-text, #18202c) 5%,transparent)}.selected-row th{box-shadow:inset 2px 0 var(--nec-text, #18202c)}.selection-label{display:block;margin-top:2px;color:var(--nec-muted, #536176);font-size:.6875rem;font-weight:500}.legend button{position:relative;display:inline-flex;align-items:center;gap:6px}.legend button:hover{background:color-mix(in srgb,var(--nec-text, #18202c) 4%,transparent)}.legend button[aria-pressed=false]{border-style:dashed;color:var(--nec-muted, #536176)}.legend button[aria-pressed=false] .swatch{opacity:.35}.pie-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:8px}.pie-legend button{display:grid;grid-template-columns:8px minmax(0,1fr);gap:2px 6px;padding:8px 10px;min-width:0;text-align:left}.legend-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-values{grid-column:2;display:flex;justify-content:space-between;gap:6px;font-size:11px;font-variant-numeric:tabular-nums;color:var(--nec-muted, #536176)}.donut-total{position:absolute;inset:0;margin:auto;width:min(36%,140px);height:fit-content;text-align:center;pointer-events:none}.donut-total strong{display:block;font-size:clamp(18px,3vw,26px);line-height:1.25;font-weight:600;letter-spacing:-.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.donut-total span{display:block;margin-top:4px;font-size:11px;line-height:16px;color:var(--nec-muted, #536176);overflow-wrap:anywhere}@media(max-width:600px){.pie-legend{grid-template-columns:repeat(2,minmax(0,1fr))}}.legend-values{flex-wrap:wrap;min-width:0}.legend-values>span{min-width:0;overflow-wrap:anywhere}.donut-total strong,.donut-total span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n", ".chart-controls{min-height:52px}.chart-controls[inert]{visibility:hidden;pointer-events:none}.plot-message{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;padding:20px;margin:0;box-sizing:border-box;text-align:center;color:var(--nec-muted, #536176);font-size:13px;line-height:1.6;pointer-events:none}.visibility:not(.legend-note){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.scale-context{margin:0 0 8px;color:var(--nec-muted, #536176);font-size:12px;line-height:20px}.plot-message>span{max-width:34ch;padding:10px 12px;border-radius:6px;background:var(--nec-background, #fff)}\n"]
94
107
  }]
95
108
  }],
@@ -1 +1 @@
1
- {"version":3,"file":"mantha911-ng-echarts-line.mjs","names":[],"sources":["../../../projects/chart-library/line/src/lib/line-browser.ts","../../../projects/chart-library/line/src/lib/line-chart.ts","../../../projects/chart-library/core/src/lib/cartesian-chart.html"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport type { ɵPlotRendererFactory } from '@mantha911/ng-echarts/core';\nimport type { LineOption } from './line-options';\nexport const LINE_RENDERER_LOADER = new InjectionToken<\n () => Promise<ɵPlotRendererFactory<LineOption>>\n>('Line renderer loader', {\n providedIn: 'root',\n factory: () => () => import('./line-renderer').then((module) => module.createLineRenderer),\n});\n","import { ChangeDetectionStrategy, Component, inject, input } from '@angular/core';\nimport {\n ChartFrame,\n ɵChartStage,\n ɵCartesianChart,\n type ɵCartesianContext,\n} from '@mantha911/ng-echarts/core';\nimport { LINE_RENDERER_LOADER } from './line-browser';\nimport { buildLineOptions, type LineOption } from './line-options';\n@Component({\n selector: 'nec-line-chart',\n imports: [ChartFrame, ɵChartStage],\n templateUrl: '../../../core/src/lib/cartesian-chart.html',\n styleUrls: [\n '../../../core/src/lib/cartesian-chart.css',\n '../../../core/src/lib/chart-controls.css',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LineChart<T extends object> extends ɵCartesianChart<T, LineOption> {\n readonly smooth = input(false);\n readonly showPoints = input(true);\n private readonly loader = inject(LINE_RENDERER_LOADER);\n protected override renderer() {\n return this.loader();\n }\n protected override familyConfiguration() {\n return { smooth: this.smooth(), showPoints: this.showPoints() };\n }\n protected override familyError() {\n return typeof this.smooth() === 'boolean' && typeof this.showPoints() === 'boolean'\n ? null\n : 'Line settings must be booleans.';\n }\n protected override buildOptions(context: ɵCartesianContext<T>): LineOption {\n return buildLineOptions(context, this.smooth(), this.showPoints());\n }\n}\n","<nec-chart-frame\n [title]=\"title()\"\n [description]=\"description()\"\n [style.--_nec-default-background]=\"tokens().background\"\n [style.--_nec-default-text]=\"tokens().text\"\n [style.--_nec-default-muted]=\"tokens().muted\"\n [style.--_nec-default-border]=\"tokens().border\"\n>\n @let currentState = state();\n\n <nec-chart-stage\n [state]=\"currentState\"\n [height]=\"plotHeight()\"\n [retryable]=\"rendererError()\"\n (retry)=\"retryRenderer()\"\n >\n <div\n #plot\n class=\"plot\"\n [hidden]=\"currentState.kind !== 'ready'\"\n [style.height.px]=\"plotHeight()\"\n aria-hidden=\"true\"\n ></div>\n\n @if (currentState.kind === 'ready' && allSeriesHidden()) {\n <div class=\"plot-message\" role=\"status\">\n <span>All series are hidden. Choose a series below.</span>\n </div>\n }\n </nec-chart-stage>\n <div\n class=\"chart-controls\"\n [attr.inert]=\"currentState.kind !== 'ready' ? '' : null\"\n [attr.aria-hidden]=\"currentState.kind !== 'ready' ? 'true' : null\"\n >\n <div class=\"legend\" aria-label=\"Chart series\">\n @for (item of legendItems(); track item.id) {\n <button\n type=\"button\"\n [disabled]=\"currentState.kind !== 'ready'\"\n [attr.aria-pressed]=\"item.visible\"\n (click)=\"toggleSeries(item.id)\"\n >\n <span class=\"swatch\" [style.background]=\"item.color\" aria-hidden=\"true\"></span>\n {{ item.label }}\n <span class=\"visibility\" [class.legend-note]=\"false\">{{\n item.visible ? 'Visible' : 'Hidden'\n }}</span>\n </button>\n }\n </div>\n @if (showDataTable()) {\n <button\n type=\"button\"\n class=\"table-toggle\"\n [disabled]=\"currentState.kind !== 'ready'\"\n [attr.aria-expanded]=\"tableExpanded()\"\n (click)=\"toggleTable()\"\n >\n {{ tableExpanded() ? 'Hide data table' : 'Show data table' }}\n </button>\n @if (tableExpanded() && currentState.kind === 'ready') {\n <div\n class=\"table-scroll\"\n tabindex=\"0\"\n role=\"region\"\n [attr.aria-label]=\"title() + ' data table'\"\n >\n <table>\n <caption>\n {{\n title()\n }}\n values\n </caption>\n <thead>\n <tr>\n <th scope=\"col\">Category</th>\n @for (item of legendItems(); track item.id) {\n <th scope=\"col\">{{ item.label }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of tableRows(); track row.id) {\n <tr\n [class.selected-row]=\"row.selected\"\n [attr.aria-current]=\"row.current ? 'true' : null\"\n >\n <th scope=\"row\">\n {{ row.category }}\n @if (row.selected) {\n <span class=\"selection-label\">Selected</span>\n }\n </th>\n @for (cell of row.cells; track cell.seriesId) {\n <td>\n @if (cell.value !== null) {\n <button\n type=\"button\"\n [attr.aria-label]=\"cell.actionLabel\"\n [attr.data-preview-row]=\"row.id\"\n [attr.data-preview-series]=\"cell.seriesId\"\n (click)=\"selectPoint(cell, 'table')\"\n >\n {{ cell.text }}\n </button>\n } @else {\n <span>{{ cell.text }}</span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n }\n </div>\n</nec-chart-frame>\n"],"mappings":";;;AAGA,MAAa,uBAAuB,IAAI,eAEtC,wBAAwB;CACxB,YAAY;CACZ,qBAAqB,OAAO,yDAAkB,CAAC,MAAM,WAAW,OAAO,kBAAkB;AAC1F,CAAA;ACWD,IAAa,YAAb,MAAa,kBAAoC,gBAA8B;CACpE,SAAS,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACrB,aAAa,MAAM,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAChB,SAAS,OAAO,oBAAoB;CAClC,WAAQ;EACzB,OAAO,KAAK,OAAM;CACpB;CACmB,sBAAmB;EACpC,OAAO;GAAE,QAAQ,KAAK,OAAM;GAAI,YAAY,KAAK,WAAU;EAAE;CAC/D;CACmB,cAAW;EAC5B,OAAO,OAAO,KAAK,OAAM,MAAO,aAAa,OAAO,KAAK,WAAU,MAAO,YACtE,OACA;CACN;CACmB,aAAa,SAA6B;EAC3D,OAAO,iBAAiB,SAAS,KAAK,OAAM,GAAI,KAAK,WAAU,CAAE;CACnE;CAjBW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAS,MAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAT,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAS,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,QAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,YAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,iBAAA;EAAA,UAAA;EAAA,UCnBtB;EAyHA,QAAA,CAAA,wjFAAA,wrBAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MD9GY;GAAU,UAAA;GAAA,QAAA,CAAA,SAAA,aAAA;EAAA,GAAA;GAAA,MAAA;GAAA,MAAE;GAAW,UAAA;GAAA,QAAA;IAAA;IAAA;IAAA;IAAA;GAAA;GAAA,SAAA,CAAA,OAAA;EAAA,CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAQtB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAS,YAAA,CAAA;EAVrB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAgB,SACjB,CAAC,YAAY,WAAW;GAAC,iBAMjB,wBAAwB;GAAM,UAAA;GAAA,QAAA,CAAA,wjFAAA,wrBAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"mantha911-ng-echarts-line.mjs","names":[],"sources":["../../../projects/chart-library/line/src/lib/line-browser.ts","../../../projects/chart-library/line/src/lib/line-chart.ts","../../../projects/chart-library/core/src/lib/cartesian-chart.html"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport type { ɵPlotRendererFactory } from '@mantha911/ng-echarts/core';\nimport type { LineOption } from './line-options';\nexport const LINE_RENDERER_LOADER = new InjectionToken<\n () => Promise<ɵPlotRendererFactory<LineOption>>\n>('Line renderer loader', {\n providedIn: 'root',\n factory: () => () => import('./line-renderer').then((module) => module.createLineRenderer),\n});\n","import { ChangeDetectionStrategy, Component, inject, input } from '@angular/core';\nimport {\n ChartFrame,\n ɵChartStage,\n ɵTablePager,\n ɵCartesianChart,\n type ɵCartesianContext,\n} from '@mantha911/ng-echarts/core';\nimport { LINE_RENDERER_LOADER } from './line-browser';\nimport { buildLineOptions, type LineOption } from './line-options';\n@Component({\n selector: 'nec-line-chart',\n imports: [ChartFrame, ɵChartStage, ɵTablePager],\n templateUrl: '../../../core/src/lib/cartesian-chart.html',\n styleUrls: [\n '../../../core/src/lib/cartesian-chart.css',\n '../../../core/src/lib/chart-controls.css',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LineChart<T extends object> extends ɵCartesianChart<T, LineOption> {\n readonly smooth = input(false);\n readonly showPoints = input(true);\n private readonly loader = inject(LINE_RENDERER_LOADER);\n protected override renderer() {\n return this.loader();\n }\n protected override familyConfiguration() {\n return { smooth: this.smooth(), showPoints: this.showPoints() };\n }\n protected override familyError() {\n return typeof this.smooth() === 'boolean' && typeof this.showPoints() === 'boolean'\n ? null\n : 'Line settings must be booleans.';\n }\n protected override buildOptions(context: ɵCartesianContext<T>): LineOption {\n return buildLineOptions(context, this.smooth(), this.showPoints());\n }\n}\n","<nec-chart-frame\n [title]=\"title()\"\n [description]=\"description()\"\n [style.--_nec-default-background]=\"tokens().background\"\n [style.--_nec-default-text]=\"tokens().text\"\n [style.--_nec-default-muted]=\"tokens().muted\"\n [style.--_nec-default-border]=\"tokens().border\"\n>\n @let currentState = state();\n\n <nec-chart-stage\n [state]=\"currentState\"\n [height]=\"plotHeight()\"\n [retryable]=\"rendererError()\"\n (retry)=\"retryRenderer()\"\n >\n <div\n #plot\n class=\"plot\"\n [hidden]=\"currentState.kind !== 'ready'\"\n [style.height.px]=\"plotHeight()\"\n aria-hidden=\"true\"\n ></div>\n\n @if (currentState.kind === 'ready' && allSeriesHidden()) {\n <div class=\"plot-message\" role=\"status\">\n <span>All series are hidden. Choose a series below.</span>\n </div>\n }\n </nec-chart-stage>\n <div\n class=\"chart-controls\"\n [attr.inert]=\"currentState.kind !== 'ready' ? '' : null\"\n [attr.aria-hidden]=\"currentState.kind !== 'ready' ? 'true' : null\"\n >\n <div class=\"legend\" aria-label=\"Chart series\">\n @for (item of legendItems(); track item.id) {\n <button\n type=\"button\"\n [disabled]=\"currentState.kind !== 'ready'\"\n [attr.aria-pressed]=\"item.visible\"\n (click)=\"toggleSeries(item.id)\"\n >\n <span class=\"swatch\" [style.background]=\"item.color\" aria-hidden=\"true\"></span>\n {{ item.label }}\n <span class=\"visibility\" [class.legend-note]=\"false\">{{\n item.visible ? 'Visible' : 'Hidden'\n }}</span>\n </button>\n }\n </div>\n @if (showDataTable()) {\n <button\n type=\"button\"\n class=\"table-toggle\"\n [disabled]=\"currentState.kind !== 'ready'\"\n [attr.aria-expanded]=\"tableExpanded()\"\n (click)=\"toggleTable()\"\n >\n {{ tableExpanded() ? 'Hide data table' : 'Show data table' }}\n </button>\n @if (tableExpanded() && currentState.kind === 'ready') {\n <nec-table-pager [pagination]=\"tablePagination\" [label]=\"title()\" />\n <div\n class=\"table-scroll\"\n tabindex=\"0\"\n role=\"region\"\n [attr.aria-label]=\"title() + ' data table'\"\n >\n <table>\n <caption>\n {{\n title()\n }}\n values\n </caption>\n <thead>\n <tr>\n <th scope=\"col\">Category</th>\n @for (item of legendItems(); track item.id) {\n <th scope=\"col\">{{ item.label }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of tableRows(); track row.id) {\n <tr\n [class.selected-row]=\"row.selected\"\n [attr.aria-current]=\"row.current ? 'true' : null\"\n >\n <th scope=\"row\">\n {{ row.category }}\n @if (row.selected) {\n <span class=\"selection-label\">Selected</span>\n }\n </th>\n @for (cell of row.cells; track cell.seriesId) {\n <td>\n @if (cell.value !== null) {\n <button\n type=\"button\"\n [attr.aria-label]=\"cell.actionLabel\"\n [attr.data-preview-row]=\"row.id\"\n [attr.data-preview-series]=\"cell.seriesId\"\n (click)=\"selectPoint(cell, 'table')\"\n >\n {{ cell.text }}\n </button>\n } @else {\n <span>{{ cell.text }}</span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n }\n </div>\n</nec-chart-frame>\n"],"mappings":";;;AAGA,MAAa,uBAAuB,IAAI,eAEtC,wBAAwB;CACxB,YAAY;CACZ,qBAAqB,OAAO,yDAAkB,CAAC,MAAM,WAAW,OAAO,kBAAkB;AAC1F,CAAA;ACYD,IAAa,YAAb,MAAa,kBAAoC,gBAA8B;CACpE,SAAS,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACrB,aAAa,MAAM,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAChB,SAAS,OAAO,oBAAoB;CAClC,WAAQ;EACzB,OAAO,KAAK,OAAM;CACpB;CACmB,sBAAmB;EACpC,OAAO;GAAE,QAAQ,KAAK,OAAM;GAAI,YAAY,KAAK,WAAU;EAAE;CAC/D;CACmB,cAAW;EAC5B,OAAO,OAAO,KAAK,OAAM,MAAO,aAAa,OAAO,KAAK,WAAU,MAAO,YACtE,OACA;CACN;CACmB,aAAa,SAA6B;EAC3D,OAAO,iBAAiB,SAAS,KAAK,OAAM,GAAI,KAAK,WAAU,CAAE;CACnE;CAjBW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAS,MAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAT,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAS,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