@tectra-ng/charts 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/fesm2022/tectra-ng-charts-bar-list.mjs.map +1 -1
  2. package/fesm2022/tectra-ng-charts-boxplot.mjs.map +1 -1
  3. package/fesm2022/tectra-ng-charts-bullet.mjs.map +1 -1
  4. package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -1
  5. package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -1
  7. package/fesm2022/tectra-ng-charts-core.mjs +3 -16
  8. package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
  9. package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
  11. package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-charts-pie.mjs +1 -1
  15. package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-charts-radar.mjs.map +1 -1
  17. package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -1
  19. package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-charts-scatter.mjs.map +1 -1
  21. package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -1
  23. package/fesm2022/tectra-ng-charts-treemap.mjs +5 -5
  24. package/fesm2022/tectra-ng-charts-treemap.mjs.map +1 -1
  25. package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-charts.mjs +1 -1
  27. package/fesm2022/tectra-ng-charts.mjs.map +1 -1
  28. package/package.json +5 -5
  29. package/pie/README.md +1 -1
  30. package/treemap/README.md +1 -1
  31. package/types/tectra-ng-charts-bar-list.d.ts +32 -634
  32. package/types/tectra-ng-charts-bar-list.d.ts.map +1 -1
  33. package/types/tectra-ng-charts-boxplot.d.ts +77 -634
  34. package/types/tectra-ng-charts-boxplot.d.ts.map +1 -1
  35. package/types/tectra-ng-charts-bullet.d.ts +66 -634
  36. package/types/tectra-ng-charts-bullet.d.ts.map +1 -1
  37. package/types/tectra-ng-charts-candlestick.d.ts +62 -634
  38. package/types/tectra-ng-charts-candlestick.d.ts.map +1 -1
  39. package/types/tectra-ng-charts-column.d.ts +81 -634
  40. package/types/tectra-ng-charts-column.d.ts.map +1 -1
  41. package/types/tectra-ng-charts-combo.d.ts +98 -634
  42. package/types/tectra-ng-charts-combo.d.ts.map +1 -1
  43. package/types/tectra-ng-charts-core.d.ts +451 -6
  44. package/types/tectra-ng-charts-core.d.ts.map +1 -1
  45. package/types/tectra-ng-charts-funnel.d.ts +73 -634
  46. package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
  47. package/types/tectra-ng-charts-gantt.d.ts +97 -634
  48. package/types/tectra-ng-charts-gantt.d.ts.map +1 -1
  49. package/types/tectra-ng-charts-gauge.d.ts +56 -634
  50. package/types/tectra-ng-charts-gauge.d.ts.map +1 -1
  51. package/types/tectra-ng-charts-heatmap.d.ts +102 -634
  52. package/types/tectra-ng-charts-heatmap.d.ts.map +1 -1
  53. package/types/tectra-ng-charts-line.d.ts +74 -634
  54. package/types/tectra-ng-charts-line.d.ts.map +1 -1
  55. package/types/tectra-ng-charts-org-chart.d.ts +161 -634
  56. package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
  57. package/types/tectra-ng-charts-pie.d.ts +91 -634
  58. package/types/tectra-ng-charts-pie.d.ts.map +1 -1
  59. package/types/tectra-ng-charts-radar.d.ts +82 -634
  60. package/types/tectra-ng-charts-radar.d.ts.map +1 -1
  61. package/types/tectra-ng-charts-radial-bar.d.ts +69 -634
  62. package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -1
  63. package/types/tectra-ng-charts-range-area.d.ts +61 -634
  64. package/types/tectra-ng-charts-range-area.d.ts.map +1 -1
  65. package/types/tectra-ng-charts-rank-line.d.ts +55 -634
  66. package/types/tectra-ng-charts-rank-line.d.ts.map +1 -1
  67. package/types/tectra-ng-charts-sankey.d.ts +85 -634
  68. package/types/tectra-ng-charts-sankey.d.ts.map +1 -1
  69. package/types/tectra-ng-charts-scatter.d.ts +98 -634
  70. package/types/tectra-ng-charts-scatter.d.ts.map +1 -1
  71. package/types/tectra-ng-charts-segmented-bar.d.ts +39 -634
  72. package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -1
  73. package/types/tectra-ng-charts-sunburst.d.ts +57 -634
  74. package/types/tectra-ng-charts-sunburst.d.ts.map +1 -1
  75. package/types/tectra-ng-charts-treemap.d.ts +77 -634
  76. package/types/tectra-ng-charts-treemap.d.ts.map +1 -1
  77. package/types/tectra-ng-charts-waterfall.d.ts +69 -634
  78. package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
  79. package/types/tectra-ng-charts.d.ts +2 -1
  80. package/types/tectra-ng-charts.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-heatmap.mjs","names":[],"sources":["../../../../packages/charts/heatmap/src/heatmap-layout.ts","../../../../packages/charts/heatmap/src/heatmap-calendar.ts","../../../../packages/charts/heatmap/src/heatmap-templates.directive.ts","../../../../packages/charts/heatmap/src/heatmap.icons.ts","../../../../packages/charts/heatmap/src/heatmap.theme.ts","../../../../packages/charts/heatmap/src/heatmap-cell.component.ts","../../../../packages/charts/heatmap/src/heatmap-cell.component.html","../../../../packages/charts/heatmap/src/heatmap-legend.component.ts","../../../../packages/charts/heatmap/src/heatmap.component.ts","../../../../packages/charts/heatmap/src/heatmap.component.html"],"sourcesContent":["import { TxHeatmapCell, TxHeatmapColumnGroup, TxHeatmapRow, TxHeatmapRowGroup, TxHeatmapScale } from './heatmap.types';\n\nexport function heatmapRowGroups(cells: readonly (TxHeatmapCell | null)[], groups: readonly TxHeatmapColumnGroup[]): TxHeatmapRowGroup[] {\n let offset = 0;\n return groups.map((group) => {\n const slots = group.columns.map((column, index) => ({ columnKey: column.key, cell: cells[offset + index] ?? null }));\n offset += group.columns.length;\n return { key: group.key, slots };\n });\n}\n\nexport function heatmapScale(rows: readonly TxHeatmapRow[], steps: number, min?: number, max?: number): TxHeatmapScale {\n let low = Infinity;\n let high = -Infinity;\n for (const row of rows) {\n for (const cell of row.cells) {\n const value = cell?.value;\n if (typeof value === 'number' && Number.isFinite(value)) {\n low = Math.min(low, value);\n high = Math.max(high, value);\n }\n }\n }\n return {\n min: min ?? (Number.isFinite(low) ? Math.min(low, 0) : 0),\n max: max ?? (Number.isFinite(high) ? high : 0),\n steps: Math.max(1, Math.round(steps)),\n };\n}\n\nexport function heatmapLevel(value: number | null | undefined, scale: TxHeatmapScale): number {\n if (typeof value !== 'number' || !Number.isFinite(value) || value <= scale.min) {\n return 0;\n }\n const span = scale.max - scale.min;\n const ratio = span > 0 ? Math.min(1, (value - scale.min) / span) : 1;\n return Math.max(1, Math.ceil(ratio * scale.steps)) / scale.steps;\n}\n\nexport function heatmapCellLabel(cell: TxHeatmapCell): string | null {\n return cell.ariaLabel || cell.tooltip || null;\n}\n","import { TxHeatmapCalendar, TxHeatmapCalendarOptions, TxHeatmapCalendarValue, TxHeatmapCell, TxHeatmapColumnGroup, TxHeatmapRow } from './heatmap.types';\n\nconst DAY = 86_400_000;\n\nfunction toDay(value: string | Date): number {\n const date = typeof value === 'string' ? new Date(`${value.slice(0, 10)}T00:00:00Z`) : new Date(Date.UTC(value.getFullYear(), value.getMonth(), value.getDate()));\n return Math.floor(date.getTime() / DAY);\n}\n\nfunction dayKey(day: number): string {\n return new Date(day * DAY).toISOString().slice(0, 10);\n}\n\nexport function heatmapCalendar(values: readonly TxHeatmapCalendarValue[], options: TxHeatmapCalendarOptions): TxHeatmapCalendar {\n const intl = options.intl ?? 'en-US';\n const firstDay = ((options.firstDayOfWeek ?? 1) % 7 + 7) % 7;\n const from = toDay(options.from);\n const to = toDay(options.to);\n const byDay = new Map<number, TxHeatmapCalendarValue>();\n for (const item of values) {\n byDay.set(toDay(item.date), item);\n }\n const weekday = (day: number) => (new Date(day * DAY).getUTCDay() - firstDay + 7) % 7;\n const start = from - weekday(from);\n const weeks = to < from ? 0 : Math.floor((to - start) / 7) + 1;\n const monthFormat = new Intl.DateTimeFormat(intl, { month: 'short', timeZone: 'UTC' });\n const dayFormat = new Intl.DateTimeFormat(intl, { weekday: 'short', timeZone: 'UTC' });\n const dateFormat = new Intl.DateTimeFormat(intl, { dateStyle: 'medium', timeZone: 'UTC' });\n const numberFormat = options.format ?? new Intl.NumberFormat(intl).format;\n\n const groups: TxHeatmapColumnGroup[] = [];\n for (let week = 0; week < weeks; week++) {\n const first = Math.max(start + week * 7, from);\n const date = new Date(first * DAY);\n const key = `${date.getUTCFullYear()}-${date.getUTCMonth()}`;\n let group = groups[groups.length - 1];\n if (!group || group.key !== key) {\n group = { key, label: monthFormat.format(date), columns: [] };\n groups.push(group);\n }\n group.columns.push({ key: dayKey(start + week * 7), label: '' });\n }\n\n const rows: TxHeatmapRow[] = Array.from({ length: 7 }, (_, index) => {\n const cells: (TxHeatmapCell | null)[] = [];\n for (let week = 0; week < weeks; week++) {\n const day = start + week * 7 + index;\n if (day < from || day > to) {\n cells.push({ hidden: true });\n continue;\n }\n const item = byDay.get(day);\n const value = item?.value ?? 0;\n const label = `${dateFormat.format(new Date(day * DAY))}: ${numberFormat(value)}`;\n cells.push({ value, tooltip: item?.tooltip ?? label, ariaLabel: label, interactive: options.interactive, data: item?.data ?? dayKey(day) });\n }\n return { key: `day-${index}`, label: dayFormat.format(new Date((start + index) * DAY)), cells };\n });\n\n return { groups, rows };\n}\n","import { Directive } from '@angular/core';\nimport { TxHeatmapRowContext } from './heatmap.types';\n\n@Directive({ selector: 'ng-template[txHeatmapRowHeader]' })\nexport class TxHeatmapRowHeader {\n static ngTemplateContextGuard(_directive: TxHeatmapRowHeader, context: unknown): context is TxHeatmapRowContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txHeatmapRowValue]' })\nexport class TxHeatmapRowValue {\n static ngTemplateContextGuard(_directive: TxHeatmapRowValue, context: unknown): context is TxHeatmapRowContext {\n return !!context;\n }\n}\n","import { TxIconSet, txIconInfo } from '@tectra-ng/icons';\n\nexport const HEATMAP_ICON_DEFAULTS: TxIconSet = {\n info: txIconInfo,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const HEATMAP_THEME = {\n chart: chartTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\nimport { injectTokens, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { heatmapCellLabel } from './heatmap-layout';\nimport { TxHeatmapCell } from './heatmap.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { HEATMAP_ICON_DEFAULTS } from './heatmap.icons';\nimport { HEATMAP_THEME } from './heatmap.theme';\n\n@Component({\n selector: 'tx-heatmap-cell',\n imports: [TxTooltip],\n templateUrl: './heatmap-cell.component.html',\n styleUrl: './heatmap-cell.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-heatmap-cell',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(HEATMAP_ICON_DEFAULTS)],\n})\nexport class TxHeatmapCellView {\n private readonly heatmapTheme = injectTokens(HEATMAP_THEME);\n\n readonly cell = input<TxHeatmapCell | null>(null);\n readonly level = input<number | null>(null);\n readonly legend = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly boxClass = input<string | undefined>(undefined);\n readonly boxStyle = input<Record<string, string> | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly activate = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly label = computed(() => {\n const cell = this.cell();\n return cell ? heatmapCellLabel(cell) : null;\n });\n readonly kind = computed(() => {\n const cell = this.cell();\n if (!cell) {\n return 'empty';\n }\n if (cell.hidden) {\n return 'hidden';\n }\n if (typeof cell.value === 'number' && !cell.tone) {\n return (this.level() ?? 0) > 0 ? 'scale' : 'empty';\n }\n return cell.tone ?? 'empty';\n });\n readonly levelStyle = computed(() => {\n const level = this.level();\n return this.kind() === 'scale' && level ? `${Math.round(level * 100)}%` : null;\n });\n}\n","@let item = cell();\n@if (legend() || !item || item.hidden) {\n <span\n class=\"tx-heatmap-cell__box\"\n [class]=\"['tx-heatmap-cell__box--' + kind(), boxClass() ?? '']\"\n [class.tx-heatmap-cell__box--legend]=\"legend()\"\n [style]=\"boxStyle()\"\n [style.--tx-heatmap-level]=\"levelStyle()\"\n aria-hidden=\"true\"\n ></span>\n} @else if (item.interactive) {\n <button\n type=\"button\"\n class=\"tx-heatmap-cell__box tx-heatmap-cell__box--interactive\"\n [class]=\"['tx-heatmap-cell__box--' + kind(), boxClass() ?? '']\"\n [style]=\"boxStyle()\"\n [style.--tx-heatmap-level]=\"levelStyle()\"\n [txTooltip]=\"item.tooltip\"\n tooltipPlacement=\"top\"\n [tooltipDisabled]=\"!item.tooltip\"\n [attr.aria-label]=\"label()\"\n (click)=\"activate.emit()\"\n ></button>\n} @else {\n <span\n class=\"tx-heatmap-cell__box\"\n [class]=\"['tx-heatmap-cell__box--' + kind(), boxClass() ?? '']\"\n [style]=\"boxStyle()\"\n [style.--tx-heatmap-level]=\"levelStyle()\"\n [attr.role]=\"label() ? 'img' : null\"\n [attr.aria-label]=\"label()\"\n [attr.aria-hidden]=\"label() ? null : 'true'\"\n [txTooltip]=\"item.tooltip\"\n tooltipPlacement=\"top\"\n [tooltipDisabled]=\"!item.tooltip\"\n ></span>\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { injectTokens, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxHeatmapCellView } from './heatmap-cell.component';\nimport { TxHeatmapLegendItem, TxHeatmapScale } from './heatmap.types';\nimport { heatmapLevel } from './heatmap-layout';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { HEATMAP_ICON_DEFAULTS } from './heatmap.icons';\nimport { HEATMAP_THEME } from './heatmap.theme';\n\n@Component({\n selector: 'tx-heatmap-legend',\n imports: [TxHeatmapCellView],\n template: `\n <ul class=\"tx-heatmap-legend__list\">\n @for (item of items(); track $index) {\n <li class=\"tx-heatmap-legend__item\">\n <tx-heatmap-cell [cell]=\"{ tone: item.tone, value: item.value }\" [level]=\"levelOf(item.value)\" legend [unstyled]=\"isUnstyled()\" />\n {{ item.label }}\n </li>\n }\n @if (emptyLabel()) {\n <li class=\"tx-heatmap-legend__item\">\n <tx-heatmap-cell legend [unstyled]=\"isUnstyled()\" />\n {{ emptyLabel() }}\n </li>\n }\n </ul>\n `,\n styleUrl: './heatmap-legend.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-heatmap-legend',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(HEATMAP_ICON_DEFAULTS)],\n})\nexport class TxHeatmapLegend {\n private readonly heatmapTheme = injectTokens(HEATMAP_THEME);\n\n readonly items = input<readonly TxHeatmapLegendItem[]>([]);\n readonly emptyLabel = input('');\n readonly scale = input<TxHeatmapScale | null>(null);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n\n levelOf(value: number | undefined): number | null {\n const scale = this.scale();\n return scale && typeof value === 'number' ? heatmapLevel(value, scale) : null;\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, input, output, TemplateRef } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxHeatmapCellView } from './heatmap-cell.component';\nimport { heatmapLevel, heatmapRowGroups, heatmapScale } from './heatmap-layout';\nimport { TxHeatmapLegend } from './heatmap-legend.component';\nimport { TxHeatmapRowHeader, TxHeatmapRowValue } from './heatmap-templates.directive';\nimport {\n TxHeatmapCell,\n TxHeatmapCellClick,\n TxHeatmapCellSlot,\n TxHeatmapColumnGroup,\n TxHeatmapLabels,\n TxHeatmapLegendItem,\n TxHeatmapPart,\n TxHeatmapRow,\n TxHeatmapRowContext,\n} from './heatmap.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { HEATMAP_ICON_DEFAULTS } from './heatmap.icons';\nimport { HEATMAP_THEME } from './heatmap.theme';\n\n@Component({\n selector: 'tx-heatmap',\n imports: [NgTemplateOutlet, TxHeatmapCellView, TxHeatmapLegend],\n templateUrl: './heatmap.component.html',\n styleUrl: './heatmap.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-heatmap',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(HEATMAP_ICON_DEFAULTS)],\n})\nexport class TxHeatmap {\n private readonly heatmapTheme = injectTokens(HEATMAP_THEME);\n\n readonly translations = injectTranslations();\n\n readonly groups = input<readonly TxHeatmapColumnGroup[]>([]);\n readonly rows = input<readonly TxHeatmapRow[]>([]);\n readonly legend = input<readonly TxHeatmapLegendItem[]>([]);\n readonly labels = input<Partial<TxHeatmapLabels>>({});\n readonly maxHeight = input<string | undefined>(undefined);\n readonly scaleSteps = input(5);\n readonly scaleMin = input<number | undefined>(undefined);\n readonly scaleMax = input<number | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraChartTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxHeatmapPart, TxHeatmap> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly cellClick = output<TxHeatmapCellClick>();\n\n readonly rowHeaderTemplate = contentChild(TxHeatmapRowHeader, { read: TemplateRef<TxHeatmapRowContext> });\n readonly rowValueTemplate = contentChild(TxHeatmapRowValue, { read: TemplateRef<TxHeatmapRowContext> });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('heatmap', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-chart'), ...this.passThrough().root?.style }));\n\n readonly text = computed<TxHeatmapLabels>(() => {\n const t = this.translations();\n return { rowHeader: '', valueHeader: '', empty: t.chartNoData, region: t.chartHeatmap, ...this.labels() };\n });\n readonly scale = computed(() => heatmapScale(this.rows(), this.scaleSteps(), this.scaleMin(), this.scaleMax()));\n readonly layout = computed(() => {\n const groups = this.groups();\n const scale = this.scale();\n return this.rows().map((row) => ({\n row,\n context: { $implicit: row, row } satisfies TxHeatmapRowContext,\n groups: heatmapRowGroups(row.cells, groups).map((group) => ({\n ...group,\n slots: group.slots.map((slot) => ({ ...slot, level: heatmapLevel(slot.cell?.value, scale) })),\n })),\n }));\n });\n\n onCellActivate(row: TxHeatmapRow, slot: TxHeatmapCellSlot): void {\n const cell: TxHeatmapCell | null = slot.cell;\n if (cell?.interactive) {\n this.cellClick.emit({ row, cell, columnKey: slot.columnKey });\n }\n }\n}\n","@let label = text();\n@let parts = passThrough();\n@let valueTemplate = rowValueTemplate();\n@let headerTemplate = rowHeaderTemplate();\n<div\n class=\"tx-heatmap__scroll\"\n [class]=\"parts.scroll?.class\"\n [style]=\"parts.scroll?.style\"\n [style.max-height]=\"maxHeight()\"\n tabindex=\"0\"\n role=\"region\"\n [attr.aria-label]=\"label.region\"\n>\n <div class=\"tx-heatmap__grid\" [class]=\"parts.grid?.class\" [style]=\"parts.grid?.style\">\n <div class=\"tx-heatmap__row tx-heatmap__row--head\" [class]=\"parts.head?.class\" [style]=\"parts.head?.style\">\n <div class=\"tx-heatmap__lead tx-heatmap__lead--head\" [class]=\"parts.lead?.class\" [style]=\"parts.lead?.style\">{{ label.rowHeader }}</div>\n <div class=\"tx-heatmap__groups\" [class]=\"parts.groups?.class\" [style]=\"parts.groups?.style\">\n @for (group of groups(); track group.key) {\n <div class=\"tx-heatmap__group\" [class]=\"parts.group?.class\" [style]=\"parts.group?.style\">\n <span class=\"tx-heatmap__group-label\" [class]=\"parts.groupLabel?.class\" [style]=\"parts.groupLabel?.style\" [attr.title]=\"group.label\">{{ group.label }}</span>\n <div class=\"tx-heatmap__columns\" [class]=\"parts.columns?.class\" [style]=\"parts.columns?.style\">\n @for (column of group.columns; track column.key) {\n <span class=\"tx-heatmap__column\" [class]=\"parts.column?.class\" [style]=\"parts.column?.style\">{{ column.label }}</span>\n }\n </div>\n </div>\n }\n </div>\n @if (valueTemplate) {\n <div class=\"tx-heatmap__value tx-heatmap__value--head\" [class]=\"parts.value?.class\" [style]=\"parts.value?.style\">{{ label.valueHeader }}</div>\n }\n </div>\n\n @for (line of layout(); track line.row.key) {\n <div class=\"tx-heatmap__row\" [class]=\"parts.row?.class\" [style]=\"parts.row?.style\">\n <div class=\"tx-heatmap__lead\" [class]=\"parts.lead?.class\" [style]=\"parts.lead?.style\">\n @if (headerTemplate) {\n <ng-container [ngTemplateOutlet]=\"headerTemplate\" [ngTemplateOutletContext]=\"line.context\" />\n } @else {\n {{ line.row.label ?? line.row.key }}\n }\n </div>\n <div class=\"tx-heatmap__groups\" [class]=\"parts.groups?.class\" [style]=\"parts.groups?.style\">\n @for (group of line.groups; track group.key) {\n <div class=\"tx-heatmap__columns\" [class]=\"parts.columns?.class\" [style]=\"parts.columns?.style\">\n @for (slot of group.slots; track slot.columnKey) {\n <tx-heatmap-cell\n [cell]=\"slot.cell\"\n [level]=\"slot.level\"\n [boxClass]=\"parts.cell?.class\"\n [boxStyle]=\"parts.cell?.style\"\n [unstyled]=\"isUnstyled()\"\n (activate)=\"onCellActivate(line.row, slot)\"\n />\n }\n </div>\n }\n </div>\n @if (valueTemplate) {\n <div class=\"tx-heatmap__value\" [class]=\"parts.value?.class\" [style]=\"parts.value?.style\">\n <ng-container [ngTemplateOutlet]=\"valueTemplate\" [ngTemplateOutletContext]=\"line.context\" />\n </div>\n }\n </div>\n }\n </div>\n</div>\n\n@if (legend().length) {\n <tx-heatmap-legend\n [class]=\"parts.legend?.class\"\n [style]=\"parts.legend?.style\"\n [items]=\"legend()\"\n [emptyLabel]=\"label.empty\"\n [scale]=\"scale()\"\n [unstyled]=\"isUnstyled()\"\n />\n}\n"],"mappings":";;;;;;;;;AAEA,SAAgB,iBAAiB,OAA0C,QAAuC;CAChH,IAAI,SAAS;CACb,OAAO,OAAO,KAAK,UAAS;EAC1B,MAAM,QAAQ,MAAM,QAAQ,KAAK,QAAQ,WAAW;GAAE,WAAW,OAAO;GAAK,MAAM,MAAM,SAAS,UAAU;EAAI,EAAG;EACnH,UAAU,MAAM,QAAQ;EACxB,OAAO;GAAE,KAAK,MAAM;GAAK;EAAK;CAChC,CAAC;AACH;AAEA,SAAgB,aAAa,MAA+B,OAAe,KAAc,KAAY;CACnG,IAAI,MAAM;CACV,IAAI,OAAO;CACX,KAAK,MAAM,OAAO,MAChB,KAAK,MAAM,QAAQ,IAAI,OAAO;EAC5B,MAAM,QAAQ,MAAM;EACpB,IAAI,OAAO,UAAU,YAAY,OAAO,SAAS,KAAK,GAAG;GACvD,MAAM,KAAK,IAAI,KAAK,KAAK;GACzB,OAAO,KAAK,IAAI,MAAM,KAAK;EAC7B;CACF;CAEF,OAAO;EACL,KAAK,Q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;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,WAAA;EAAA,CAAA;EAAA,mBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,kBAAkB,GAAA;IAAI,MAAM;IAAkC,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,kBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAC/D,iBAAiB,GAAA;IAAI,MAAM;IAAkC,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-charts-heatmap.mjs","names":[],"sources":["../../../../packages/charts/heatmap/src/heatmap-layout.ts","../../../../packages/charts/heatmap/src/heatmap-calendar.ts","../../../../packages/charts/heatmap/src/heatmap-templates.directive.ts","../../../../packages/charts/heatmap/src/heatmap.icons.ts","../../../../packages/charts/heatmap/src/heatmap.theme.ts","../../../../packages/charts/heatmap/src/heatmap-cell.component.ts","../../../../packages/charts/heatmap/src/heatmap-cell.component.html","../../../../packages/charts/heatmap/src/heatmap-legend.component.ts","../../../../packages/charts/heatmap/src/heatmap.component.ts","../../../../packages/charts/heatmap/src/heatmap.component.html"],"sourcesContent":["import { TxHeatmapCell, TxHeatmapColumnGroup, TxHeatmapRow, TxHeatmapRowGroup, TxHeatmapScale } from './heatmap.types';\n\n/** Splits the cells of a row into the column bands, one slot per column. */\nexport function heatmapRowGroups(cells: readonly (TxHeatmapCell | null)[], groups: readonly TxHeatmapColumnGroup[]): TxHeatmapRowGroup[] {\n let offset = 0;\n return groups.map((group) => {\n const slots = group.columns.map((column, index) => ({ columnKey: column.key, cell: cells[offset + index] ?? null }));\n offset += group.columns.length;\n return { key: group.key, slots };\n });\n}\n\n/**\n * Builds the color scale from the values of all cells; `min` and `max` override the found range and `steps` is at least 1.\n */\nexport function heatmapScale(rows: readonly TxHeatmapRow[], steps: number, min?: number, max?: number): TxHeatmapScale {\n let low = Infinity;\n let high = -Infinity;\n for (const row of rows) {\n for (const cell of row.cells) {\n const value = cell?.value;\n if (typeof value === 'number' && Number.isFinite(value)) {\n low = Math.min(low, value);\n high = Math.max(high, value);\n }\n }\n }\n return {\n min: min ?? (Number.isFinite(low) ? Math.min(low, 0) : 0),\n max: max ?? (Number.isFinite(high) ? high : 0),\n steps: Math.max(1, Math.round(steps)),\n };\n}\n\n/** Color level of a value from 0 (empty) to 1 (full), in `steps` equal parts of the scale. */\nexport function heatmapLevel(value: number | null | undefined, scale: TxHeatmapScale): number {\n if (typeof value !== 'number' || !Number.isFinite(value) || value <= scale.min) {\n return 0;\n }\n const span = scale.max - scale.min;\n const ratio = span > 0 ? Math.min(1, (value - scale.min) / span) : 1;\n return Math.max(1, Math.ceil(ratio * scale.steps)) / scale.steps;\n}\n\n/** Accessible name of a cell: its `ariaLabel`, else its tooltip, else `null`. */\nexport function heatmapCellLabel(cell: TxHeatmapCell): string | null {\n return cell.ariaLabel || cell.tooltip || null;\n}\n","import { TxHeatmapCalendar, TxHeatmapCalendarOptions, TxHeatmapCalendarValue, TxHeatmapCell, TxHeatmapColumnGroup, TxHeatmapRow } from './heatmap.types';\n\nconst DAY = 86_400_000;\n\nfunction toDay(value: string | Date): number {\n const date = typeof value === 'string' ? new Date(`${value.slice(0, 10)}T00:00:00Z`) : new Date(Date.UTC(value.getFullYear(), value.getMonth(), value.getDate()));\n return Math.floor(date.getTime() / DAY);\n}\n\nfunction dayKey(day: number): string {\n return new Date(day * DAY).toISOString().slice(0, 10);\n}\n\n/** Turns day values into a calendar heatmap: a band per month, a column per week and a row per weekday. */\nexport function heatmapCalendar(values: readonly TxHeatmapCalendarValue[], options: TxHeatmapCalendarOptions): TxHeatmapCalendar {\n const intl = options.intl ?? 'en-US';\n const firstDay = ((options.firstDayOfWeek ?? 1) % 7 + 7) % 7;\n const from = toDay(options.from);\n const to = toDay(options.to);\n const byDay = new Map<number, TxHeatmapCalendarValue>();\n for (const item of values) {\n byDay.set(toDay(item.date), item);\n }\n const weekday = (day: number) => (new Date(day * DAY).getUTCDay() - firstDay + 7) % 7;\n const start = from - weekday(from);\n const weeks = to < from ? 0 : Math.floor((to - start) / 7) + 1;\n const monthFormat = new Intl.DateTimeFormat(intl, { month: 'short', timeZone: 'UTC' });\n const dayFormat = new Intl.DateTimeFormat(intl, { weekday: 'short', timeZone: 'UTC' });\n const dateFormat = new Intl.DateTimeFormat(intl, { dateStyle: 'medium', timeZone: 'UTC' });\n const numberFormat = options.format ?? new Intl.NumberFormat(intl).format;\n\n const groups: TxHeatmapColumnGroup[] = [];\n for (let week = 0; week < weeks; week++) {\n const first = Math.max(start + week * 7, from);\n const date = new Date(first * DAY);\n const key = `${date.getUTCFullYear()}-${date.getUTCMonth()}`;\n let group = groups[groups.length - 1];\n if (!group || group.key !== key) {\n group = { key, label: monthFormat.format(date), columns: [] };\n groups.push(group);\n }\n group.columns.push({ key: dayKey(start + week * 7), label: '' });\n }\n\n const rows: TxHeatmapRow[] = Array.from({ length: 7 }, (_, index) => {\n const cells: (TxHeatmapCell | null)[] = [];\n for (let week = 0; week < weeks; week++) {\n const day = start + week * 7 + index;\n if (day < from || day > to) {\n cells.push({ hidden: true });\n continue;\n }\n const item = byDay.get(day);\n const value = item?.value ?? 0;\n const label = `${dateFormat.format(new Date(day * DAY))}: ${numberFormat(value)}`;\n cells.push({ value, tooltip: item?.tooltip ?? label, ariaLabel: label, interactive: options.interactive, data: item?.data ?? dayKey(day) });\n }\n return { key: `day-${index}`, label: dayFormat.format(new Date((start + index) * DAY)), cells };\n });\n\n return { groups, rows };\n}\n","import { Directive } from '@angular/core';\nimport { TxHeatmapRowContext } from './heatmap.types';\n\n@Directive({ selector: 'ng-template[txHeatmapRowHeader]' })\nexport class TxHeatmapRowHeader {\n static ngTemplateContextGuard(_directive: TxHeatmapRowHeader, context: unknown): context is TxHeatmapRowContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txHeatmapRowValue]' })\nexport class TxHeatmapRowValue {\n static ngTemplateContextGuard(_directive: TxHeatmapRowValue, context: unknown): context is TxHeatmapRowContext {\n return !!context;\n }\n}\n","import { TxIconSet, txIconInfo } from '@tectra-ng/icons';\n\nexport const HEATMAP_ICON_DEFAULTS: TxIconSet = {\n info: txIconInfo,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const HEATMAP_THEME = {\n chart: chartTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\nimport { injectTokens, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { heatmapCellLabel } from './heatmap-layout';\nimport { TxHeatmapCell } from './heatmap.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { HEATMAP_ICON_DEFAULTS } from './heatmap.icons';\nimport { HEATMAP_THEME } from './heatmap.theme';\n\n/** One cell of `tx-heatmap` and of its legend: draws the tone or the scale level, and the tooltip. */\n@Component({\n selector: 'tx-heatmap-cell',\n imports: [TxTooltip],\n templateUrl: './heatmap-cell.component.html',\n styleUrl: './heatmap-cell.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-heatmap-cell',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(HEATMAP_ICON_DEFAULTS)],\n})\nexport class TxHeatmapCellView {\n private readonly heatmapTheme = injectTokens(HEATMAP_THEME);\n\n readonly cell = input<TxHeatmapCell | null>(null);\n readonly level = input<number | null>(null);\n readonly legend = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly boxClass = input<string | undefined>(undefined);\n readonly boxStyle = input<Record<string, string> | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly activate = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly label = computed(() => {\n const cell = this.cell();\n return cell ? heatmapCellLabel(cell) : null;\n });\n readonly kind = computed(() => {\n const cell = this.cell();\n if (!cell) {\n return 'empty';\n }\n if (cell.hidden) {\n return 'hidden';\n }\n if (typeof cell.value === 'number' && !cell.tone) {\n return (this.level() ?? 0) > 0 ? 'scale' : 'empty';\n }\n return cell.tone ?? 'empty';\n });\n readonly levelStyle = computed(() => {\n const level = this.level();\n return this.kind() === 'scale' && level ? `${Math.round(level * 100)}%` : null;\n });\n}\n","@let item = cell();\n@if (legend() || !item || item.hidden) {\n <span\n class=\"tx-heatmap-cell__box\"\n [class]=\"['tx-heatmap-cell__box--' + kind(), boxClass() ?? '']\"\n [class.tx-heatmap-cell__box--legend]=\"legend()\"\n [style]=\"boxStyle()\"\n [style.--tx-heatmap-level]=\"levelStyle()\"\n aria-hidden=\"true\"\n ></span>\n} @else if (item.interactive) {\n <button\n type=\"button\"\n class=\"tx-heatmap-cell__box tx-heatmap-cell__box--interactive\"\n [class]=\"['tx-heatmap-cell__box--' + kind(), boxClass() ?? '']\"\n [style]=\"boxStyle()\"\n [style.--tx-heatmap-level]=\"levelStyle()\"\n [txTooltip]=\"item.tooltip\"\n tooltipPlacement=\"top\"\n [tooltipDisabled]=\"!item.tooltip\"\n [attr.aria-label]=\"label()\"\n (click)=\"activate.emit()\"\n ></button>\n} @else {\n <span\n class=\"tx-heatmap-cell__box\"\n [class]=\"['tx-heatmap-cell__box--' + kind(), boxClass() ?? '']\"\n [style]=\"boxStyle()\"\n [style.--tx-heatmap-level]=\"levelStyle()\"\n [attr.role]=\"label() ? 'img' : null\"\n [attr.aria-label]=\"label()\"\n [attr.aria-hidden]=\"label() ? null : 'true'\"\n [txTooltip]=\"item.tooltip\"\n tooltipPlacement=\"top\"\n [tooltipDisabled]=\"!item.tooltip\"\n ></span>\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { injectTokens, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxHeatmapCellView } from './heatmap-cell.component';\nimport { TxHeatmapLegendItem, TxHeatmapScale } from './heatmap.types';\nimport { heatmapLevel } from './heatmap-layout';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { HEATMAP_ICON_DEFAULTS } from './heatmap.icons';\nimport { HEATMAP_THEME } from './heatmap.theme';\n\n/** The legend under `tx-heatmap`: a sample cell with a label for each entry, and an entry for empty cells. */\n@Component({\n selector: 'tx-heatmap-legend',\n imports: [TxHeatmapCellView],\n template: `\n <ul class=\"tx-heatmap-legend__list\">\n @for (item of items(); track $index) {\n <li class=\"tx-heatmap-legend__item\">\n <tx-heatmap-cell [cell]=\"{ tone: item.tone, value: item.value }\" [level]=\"levelOf(item.value)\" legend [unstyled]=\"isUnstyled()\" />\n {{ item.label }}\n </li>\n }\n @if (emptyLabel()) {\n <li class=\"tx-heatmap-legend__item\">\n <tx-heatmap-cell legend [unstyled]=\"isUnstyled()\" />\n {{ emptyLabel() }}\n </li>\n }\n </ul>\n `,\n styleUrl: './heatmap-legend.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-heatmap-legend',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(HEATMAP_ICON_DEFAULTS)],\n})\nexport class TxHeatmapLegend {\n private readonly heatmapTheme = injectTokens(HEATMAP_THEME);\n\n readonly items = input<readonly TxHeatmapLegendItem[]>([]);\n readonly emptyLabel = input('');\n readonly scale = input<TxHeatmapScale | null>(null);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n\n levelOf(value: number | undefined): number | null {\n const scale = this.scale();\n return scale && typeof value === 'number' ? heatmapLevel(value, scale) : null;\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, input, output, TemplateRef } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxHeatmapCellView } from './heatmap-cell.component';\nimport { heatmapLevel, heatmapRowGroups, heatmapScale } from './heatmap-layout';\nimport { TxHeatmapLegend } from './heatmap-legend.component';\nimport { TxHeatmapRowHeader, TxHeatmapRowValue } from './heatmap-templates.directive';\nimport {\n TxHeatmapCell,\n TxHeatmapCellClick,\n TxHeatmapCellSlot,\n TxHeatmapColumnGroup,\n TxHeatmapLabels,\n TxHeatmapLegendItem,\n TxHeatmapPart,\n TxHeatmapRow,\n TxHeatmapRowContext,\n} from './heatmap.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { HEATMAP_ICON_DEFAULTS } from './heatmap.icons';\nimport { HEATMAP_THEME } from './heatmap.theme';\n\n@Component({\n selector: 'tx-heatmap',\n imports: [NgTemplateOutlet, TxHeatmapCellView, TxHeatmapLegend],\n templateUrl: './heatmap.component.html',\n styleUrl: './heatmap.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-heatmap',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(HEATMAP_ICON_DEFAULTS)],\n})\nexport class TxHeatmap {\n private readonly heatmapTheme = injectTokens(HEATMAP_THEME);\n\n readonly translations = injectTranslations();\n\n readonly groups = input<readonly TxHeatmapColumnGroup[]>([]);\n readonly rows = input<readonly TxHeatmapRow[]>([]);\n readonly legend = input<readonly TxHeatmapLegendItem[]>([]);\n readonly labels = input<Partial<TxHeatmapLabels>>({});\n readonly maxHeight = input<string | undefined>(undefined);\n readonly scaleSteps = input(5);\n readonly scaleMin = input<number | undefined>(undefined);\n readonly scaleMax = input<number | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraChartTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxHeatmapPart, TxHeatmap> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly cellClick = output<TxHeatmapCellClick>();\n\n readonly rowHeaderTemplate = contentChild(TxHeatmapRowHeader, { read: TemplateRef<TxHeatmapRowContext> });\n readonly rowValueTemplate = contentChild(TxHeatmapRowValue, { read: TemplateRef<TxHeatmapRowContext> });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('heatmap', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-chart'), ...this.passThrough().root?.style }));\n\n readonly text = computed<TxHeatmapLabels>(() => {\n const t = this.translations();\n return { rowHeader: '', valueHeader: '', empty: t.chartNoData, region: t.chartHeatmap, ...this.labels() };\n });\n readonly scale = computed(() => heatmapScale(this.rows(), this.scaleSteps(), this.scaleMin(), this.scaleMax()));\n readonly layout = computed(() => {\n const groups = this.groups();\n const scale = this.scale();\n return this.rows().map((row) => ({\n row,\n context: { $implicit: row, row } satisfies TxHeatmapRowContext,\n groups: heatmapRowGroups(row.cells, groups).map((group) => ({\n ...group,\n slots: group.slots.map((slot) => ({ ...slot, level: heatmapLevel(slot.cell?.value, scale) })),\n })),\n }));\n });\n\n onCellActivate(row: TxHeatmapRow, slot: TxHeatmapCellSlot): void {\n const cell: TxHeatmapCell | null = slot.cell;\n if (cell?.interactive) {\n this.cellClick.emit({ row, cell, columnKey: slot.columnKey });\n }\n }\n}\n","@let label = text();\n@let parts = passThrough();\n@let valueTemplate = rowValueTemplate();\n@let headerTemplate = rowHeaderTemplate();\n<div\n class=\"tx-heatmap__scroll\"\n [class]=\"parts.scroll?.class\"\n [style]=\"parts.scroll?.style\"\n [style.max-height]=\"maxHeight()\"\n tabindex=\"0\"\n role=\"region\"\n [attr.aria-label]=\"label.region\"\n>\n <div class=\"tx-heatmap__grid\" [class]=\"parts.grid?.class\" [style]=\"parts.grid?.style\">\n <div class=\"tx-heatmap__row tx-heatmap__row--head\" [class]=\"parts.head?.class\" [style]=\"parts.head?.style\">\n <div class=\"tx-heatmap__lead tx-heatmap__lead--head\" [class]=\"parts.lead?.class\" [style]=\"parts.lead?.style\">{{ label.rowHeader }}</div>\n <div class=\"tx-heatmap__groups\" [class]=\"parts.groups?.class\" [style]=\"parts.groups?.style\">\n @for (group of groups(); track group.key) {\n <div class=\"tx-heatmap__group\" [class]=\"parts.group?.class\" [style]=\"parts.group?.style\">\n <span class=\"tx-heatmap__group-label\" [class]=\"parts.groupLabel?.class\" [style]=\"parts.groupLabel?.style\" [attr.title]=\"group.label\">{{ group.label }}</span>\n <div class=\"tx-heatmap__columns\" [class]=\"parts.columns?.class\" [style]=\"parts.columns?.style\">\n @for (column of group.columns; track column.key) {\n <span class=\"tx-heatmap__column\" [class]=\"parts.column?.class\" [style]=\"parts.column?.style\">{{ column.label }}</span>\n }\n </div>\n </div>\n }\n </div>\n @if (valueTemplate) {\n <div class=\"tx-heatmap__value tx-heatmap__value--head\" [class]=\"parts.value?.class\" [style]=\"parts.value?.style\">{{ label.valueHeader }}</div>\n }\n </div>\n\n @for (line of layout(); track line.row.key) {\n <div class=\"tx-heatmap__row\" [class]=\"parts.row?.class\" [style]=\"parts.row?.style\">\n <div class=\"tx-heatmap__lead\" [class]=\"parts.lead?.class\" [style]=\"parts.lead?.style\">\n @if (headerTemplate) {\n <ng-container [ngTemplateOutlet]=\"headerTemplate\" [ngTemplateOutletContext]=\"line.context\" />\n } @else {\n {{ line.row.label ?? line.row.key }}\n }\n </div>\n <div class=\"tx-heatmap__groups\" [class]=\"parts.groups?.class\" [style]=\"parts.groups?.style\">\n @for (group of line.groups; track group.key) {\n <div class=\"tx-heatmap__columns\" [class]=\"parts.columns?.class\" [style]=\"parts.columns?.style\">\n @for (slot of group.slots; track slot.columnKey) {\n <tx-heatmap-cell\n [cell]=\"slot.cell\"\n [level]=\"slot.level\"\n [boxClass]=\"parts.cell?.class\"\n [boxStyle]=\"parts.cell?.style\"\n [unstyled]=\"isUnstyled()\"\n (activate)=\"onCellActivate(line.row, slot)\"\n />\n }\n </div>\n }\n </div>\n @if (valueTemplate) {\n <div class=\"tx-heatmap__value\" [class]=\"parts.value?.class\" [style]=\"parts.value?.style\">\n <ng-container [ngTemplateOutlet]=\"valueTemplate\" [ngTemplateOutletContext]=\"line.context\" />\n </div>\n }\n </div>\n }\n </div>\n</div>\n\n@if (legend().length) {\n <tx-heatmap-legend\n [class]=\"parts.legend?.class\"\n [style]=\"parts.legend?.style\"\n [items]=\"legend()\"\n [emptyLabel]=\"label.empty\"\n [scale]=\"scale()\"\n [unstyled]=\"isUnstyled()\"\n />\n}\n"],"mappings":";;;;;;;;;AAGA,SAAgB,iBAAiB,OAA0C,QAAuC;CAChH,IAAI,SAAS;CACb,OAAO,OAAO,KAAK,UAAS;EAC1B,MAAM,QAAQ,MAAM,QAAQ,KAAK,QAAQ,WAAW;GAAE,WAAW,OAAO;GAAK,MAAM,MAAM,SAAS,UAAU;EAAI,EAAG;EACnH,UAAU,MAAM,QAAQ;EACxB,OAAO;GAAE,KAA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