@tectra-ng/charts 0.2.6 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/tectra-ng-charts-bar-list.mjs +9 -3
- package/fesm2022/tectra-ng-charts-bar-list.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-boxplot.mjs +11 -2
- package/fesm2022/tectra-ng-charts-boxplot.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-bullet.mjs +8 -2
- package/fesm2022/tectra-ng-charts-bullet.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-candlestick.mjs +8 -2
- package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-column.mjs +11 -2
- package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-combo.mjs +11 -2
- package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-core.mjs +38 -2
- package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-funnel.mjs +8 -2
- package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-gantt.mjs +12 -3
- package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-gauge.mjs +12 -2
- package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-heatmap.mjs +14 -2
- package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-line.mjs +8 -2
- package/fesm2022/tectra-ng-charts-line.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-org-chart.mjs +43 -4
- package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-pie.mjs +11 -2
- package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-radar.mjs +12 -2
- package/fesm2022/tectra-ng-charts-radar.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-radial-bar.mjs +11 -2
- package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-range-area.mjs +8 -2
- package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-rank-line.mjs +8 -2
- package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-sankey.mjs +13 -4
- package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-scatter.mjs +11 -2
- package/fesm2022/tectra-ng-charts-scatter.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs +12 -2
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-sunburst.mjs +8 -2
- package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-treemap.mjs +14 -7
- package/fesm2022/tectra-ng-charts-treemap.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-waterfall.mjs +8 -2
- package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
- package/package.json +5 -5
- package/types/tectra-ng-charts-bar-list.d.ts +1 -0
- package/types/tectra-ng-charts-bar-list.d.ts.map +1 -1
- package/types/tectra-ng-charts-boxplot.d.ts +1 -0
- package/types/tectra-ng-charts-boxplot.d.ts.map +1 -1
- package/types/tectra-ng-charts-bullet.d.ts +1 -0
- package/types/tectra-ng-charts-bullet.d.ts.map +1 -1
- package/types/tectra-ng-charts-candlestick.d.ts +1 -0
- package/types/tectra-ng-charts-candlestick.d.ts.map +1 -1
- package/types/tectra-ng-charts-column.d.ts +1 -0
- package/types/tectra-ng-charts-column.d.ts.map +1 -1
- package/types/tectra-ng-charts-combo.d.ts +1 -0
- package/types/tectra-ng-charts-combo.d.ts.map +1 -1
- package/types/tectra-ng-charts-core.d.ts +6 -0
- package/types/tectra-ng-charts-core.d.ts.map +1 -1
- package/types/tectra-ng-charts-funnel.d.ts +1 -0
- package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
- package/types/tectra-ng-charts-gantt.d.ts +1 -0
- package/types/tectra-ng-charts-gantt.d.ts.map +1 -1
- package/types/tectra-ng-charts-gauge.d.ts +1 -0
- package/types/tectra-ng-charts-gauge.d.ts.map +1 -1
- package/types/tectra-ng-charts-heatmap.d.ts +3 -0
- package/types/tectra-ng-charts-heatmap.d.ts.map +1 -1
- package/types/tectra-ng-charts-line.d.ts +1 -0
- package/types/tectra-ng-charts-line.d.ts.map +1 -1
- package/types/tectra-ng-charts-org-chart.d.ts +3 -0
- package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
- package/types/tectra-ng-charts-pie.d.ts +1 -0
- package/types/tectra-ng-charts-pie.d.ts.map +1 -1
- package/types/tectra-ng-charts-radar.d.ts +1 -0
- package/types/tectra-ng-charts-radar.d.ts.map +1 -1
- package/types/tectra-ng-charts-radial-bar.d.ts +1 -0
- package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -1
- package/types/tectra-ng-charts-range-area.d.ts +1 -0
- package/types/tectra-ng-charts-range-area.d.ts.map +1 -1
- package/types/tectra-ng-charts-rank-line.d.ts +1 -0
- package/types/tectra-ng-charts-rank-line.d.ts.map +1 -1
- package/types/tectra-ng-charts-sankey.d.ts +1 -0
- package/types/tectra-ng-charts-sankey.d.ts.map +1 -1
- package/types/tectra-ng-charts-scatter.d.ts +1 -0
- package/types/tectra-ng-charts-scatter.d.ts.map +1 -1
- package/types/tectra-ng-charts-segmented-bar.d.ts +1 -0
- package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -1
- package/types/tectra-ng-charts-sunburst.d.ts +1 -0
- package/types/tectra-ng-charts-sunburst.d.ts.map +1 -1
- package/types/tectra-ng-charts-treemap.d.ts +1 -0
- package/types/tectra-ng-charts-treemap.d.ts.map +1 -1
- package/types/tectra-ng-charts-waterfall.d.ts +1 -0
- package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-line.mjs","names":[],"sources":["../../../../packages/charts/line/src/line-chart.component.ts","../../../../packages/charts/line/src/line-chart.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n linkedSignal,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n TxChartActive,\n TxChartAxes,\n TxChartFrame,\n TxChartGridMode,\n TxChartHeight,\n TxChartLabelMode,\n TxChartLegendAlign,\n TxChartLegendItem,\n TxChartLegendPosition,\n TxChartLegendTemplate,\n TxChartLegendVariant,\n TxChartPointerEvent,\n TxChartSeries,\n TxChartTooltipData,\n TxChartTooltipFormatter,\n TxChartTooltipMode,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n TxChartXAxisPosition,\n TxChartYAxisPosition,\n TxChartXType,\n TxValueScaleKind,\n areaPath,\n cartesianLayout,\n chartNumberFormatter,\n chartMonthNames,\n chartSummary,\n chartTable,\n cycleIndex,\n decimateSeries,\n extent,\n hasChartData,\n initialChartSize,\n injectChartEntrance,\n linePath,\n normalizeSeries,\n seriesColor,\n stackValues,\n stepIndex,\n timeInterval,\n timeTooltipFormatter,\n toggleKey,\n TxChartAnnotation,\n TxChartAnnotations,\n TxChartX,\n chartAnnotationShapes,\n chartCategoryIndex,\n toTime,\n prefersReducedMotion,\n readTokenNumber,\n} from '@tectra-ng/charts/core';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { TxLocaleService, formatMessage, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport {\n TxLineChartCurve,\n TxLineChartPart,\n TxLineChartPath,\n TxLineChartPointEvent,\n TxLineChartSeriesToggle,\n TxLineChartStackType,\n} from './line-chart.types';\n\nconst DECIMATE_RATIO = 1.5;\nconst OVERVIEW = 44;\nconst OVERVIEW_GAP = 18;\nconst OVERVIEW_PAD = 4;\nconst OVERVIEW_HANDLE = 20;\nconst HANDLE_REACH = 7;\nconst DRAG_THRESHOLD = 3;\nconst CLIP_PAD = 8;\nconst MIN_CATEGORY_SPAN = 2;\nconst MIN_SPAN_SHARE = 0.02;\nconst KEY_ZOOM = 0.7;\nconst KEY_PAN = 0.2;\nconst SLIDE_SECONDS = 0.32;\nconst SLIDE_EASING = 'cubic-bezier(0.22, 1, 0.36, 1)';\n\n@Component({\n selector: 'tx-line-chart',\n imports: [TxChartFrame, TxChartAxes, TxChartAnnotations],\n templateUrl: './line-chart.component.html',\n styleUrl: './line-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-line-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-curve]': 'curve()',\n '[class.tx-line-chart--area]': 'area()',\n '[class.tx-line-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-line-chart--entering]': 'entrance.active()',\n '[class.tx-line-chart--morph]': 'morph()',\n '[class.tx-line-chart--focused]': 'focusedSeries() !== null',\n '[class.tx-line-chart--live]': 'live()',\n },\n})\nexport class TxLineChart {\n private locale = inject(TxLocaleService);\n readonly translations = injectTranslations();\n\n readonly series = input<readonly TxChartSeries[] | null | undefined>([]);\n readonly categories = input<readonly (string | number | Date)[] | null | undefined>([]);\n readonly xType = input<TxChartXType>('category');\n readonly annotations = input<readonly TxChartAnnotation[] | null | undefined>([]);\n readonly zoom = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly brush = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly xRange = model<readonly [number, number] | null>(null);\n readonly maxPoints = input<number | undefined>(undefined);\n readonly live = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly height = input<TxChartHeight>(450);\n readonly curve = input<TxLineChartCurve>('smooth');\n readonly area = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly stacked = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly stackType = input<TxLineChartStackType>('normal');\n readonly markers = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showLegend = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly legendPosition = input<TxChartLegendPosition>('top');\n readonly legendAlign = input<TxChartLegendAlign>('start');\n readonly legendVariant = input<TxChartLegendVariant>('line');\n readonly showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly tooltipMode = input<TxChartTooltipMode>('shared');\n readonly tooltipFormatter = input<TxChartTooltipFormatter | null>(null);\n readonly valueFormat = input<TxChartValueFormat>('number');\n readonly yScale = input<TxValueScaleKind>('linear');\n readonly yMin = input<number | undefined>(undefined);\n readonly yMax = input<number | undefined>(undefined);\n readonly xAxisTitle = input('');\n readonly yAxisTitle = input('');\n readonly grid = input<TxChartGridMode>('value');\n readonly xAxisPosition = input<TxChartXAxisPosition>('bottom');\n readonly yAxisPosition = input<TxChartYAxisPosition>('left');\n readonly labelMode = input<TxChartLabelMode>('auto');\n readonly maxLabels = input(10);\n readonly decimation = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly toolbar = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input('');\n readonly dt = input<TectraDeepPartial<TectraChartTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxLineChartPart, TxLineChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly seriesToggle = output<TxLineChartSeriesToggle>();\n readonly pointClick = output<TxLineChartPointEvent>();\n\n readonly legendTemplate = contentChild(TxChartLegendTemplate);\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n private readonly layer = viewChild<ElementRef<SVGGElement>>('layer');\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('lineChart', this, this.pt, this.ptOptions);\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-chart'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n readonly entrance = injectChartEntrance();\n readonly morph = signal(false);\n\n readonly uid = uniqueId('tx-line-chart');\n readonly hidden = signal<ReadonlySet<string>>(new Set());\n readonly focusedSeries = signal<number | null>(null);\n readonly active = signal<TxChartActive | null>(null);\n readonly size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, undefined, this.toolbar()));\n\n private readonly intl = computed(() => this.locale.locale().intl);\n private readonly list = computed(() => this.series() ?? []);\n\n readonly fullTable = computed(() => {\n const categories = this.categories() ?? [];\n const fallback = this.xType() === 'category' && !categories.length && this.list().every((item) => item.data.every((value) => typeof value !== 'object'));\n const table = normalizeSeries(this.list(), fallback ? chartMonthNames(this.intl(), 'long') : categories, this.xType());\n const limit = this.maxPoints();\n if (!limit || limit < 2 || table.xs.length <= limit) return table;\n const from = table.xs.length - limit;\n return {\n labels: table.labels.slice(from),\n xs: this.xType() === 'category' ? table.xs.slice(from).map((_, index) => index) : table.xs.slice(from),\n values: table.values.map((row) => row.slice(from)),\n };\n });\n\n readonly zoomable = computed(() => this.zoom() || this.brush());\n\n readonly fullDomain = computed<[number, number]>(() => {\n const xs = this.fullTable().xs;\n return xs.length ? [xs[0], xs[xs.length - 1] === xs[0] ? xs[0] + 1 : xs[xs.length - 1]] : [0, 1];\n });\n\n readonly minSpan = computed(() => {\n const [from, to] = this.fullDomain();\n return this.xType() === 'category' ? Math.min(to - from, MIN_CATEGORY_SPAN) : (to - from) * MIN_SPAN_SHARE;\n });\n\n readonly view = computed<[number, number] | null>(() => {\n const range = this.xRange();\n if (!range || !this.zoomable()) return null;\n const [low, high] = this.fullDomain();\n const span = Math.max(this.minSpan(), Math.abs(range[1] - range[0]));\n let from = Math.max(low, Math.min(range[0], range[1]));\n let to = Math.min(high, from + span);\n from = Math.max(low, to - span);\n to = Math.min(high, from + span);\n return from <= low && to >= high ? null : [from, to];\n });\n\n private readonly windowed = computed(() => {\n const full = this.fullTable();\n const view = this.view();\n if (!view) return { table: full, start: 0 };\n const xs = full.xs;\n let start: number;\n let end: number;\n if (this.xType() === 'category') {\n start = Math.max(0, Math.floor(view[0]));\n end = Math.min(xs.length - 1, Math.ceil(view[1]));\n } else {\n const first = xs.findIndex((x) => x >= view[0]);\n const last = xs.length - 1 - [...xs].reverse().findIndex((x) => x <= view[1]);\n start = Math.max(0, (first < 0 ? xs.length - 1 : first) - 1);\n end = Math.min(xs.length - 1, (last >= xs.length ? 0 : last) + 1);\n }\n return {\n start,\n table: {\n labels: full.labels.slice(start, end + 1),\n xs: this.xType() === 'category' ? xs.slice(start, end + 1).map((_, index) => index) : xs.slice(start, end + 1),\n values: full.values.map((row) => row.slice(start, end + 1)),\n },\n };\n });\n\n readonly table = computed(() => this.windowed().table);\n readonly offset = computed(() => this.windowed().start);\n\n readonly keys = computed(() => this.list().map((item, index) => `${index}:${item.name}`));\n readonly visibleIndexes = computed(() => this.keys().flatMap((key, index) => (this.hidden().has(key) ? [] : [index])));\n readonly isEmpty = computed(() => !this.list().length || !hasChartData(this.table().values));\n readonly isStacked = computed(() => this.stacked() || this.stackType() === '100%');\n readonly legendShown = computed(() => this.showLegend() && this.list().length > 1);\n\n readonly stackedValues = computed(() => {\n const values = this.table().values;\n const visible = new Set(this.visibleIndexes());\n const rows = values.map((row, index) => (visible.has(index) ? row : row.map(() => null)));\n return stackValues(rows, this.stackType());\n });\n\n readonly valueExtent = computed<[number, number]>(() => {\n const visible = this.visibleIndexes();\n if (this.isStacked()) {\n const all = this.stackedValues().flatMap((row, index) => (visible.includes(index) ? row.flatMap((value) => (value ? [value[0], value[1]] : [])) : []));\n return extent(all) ?? [0, 1];\n }\n return extent(visible.flatMap((index) => this.table().values[index])) ?? [0, 1];\n });\n\n readonly axisFormat = computed<TxChartValueFormat>(() => (this.stackType() === '100%' && this.isStacked() && this.valueFormat() === 'number' ? 'percent' : this.valueFormat()));\n\n readonly timeLabel = computed(() => {\n const xs = this.table().xs;\n if (this.xType() !== 'time' || xs.length < 1) {\n return null;\n }\n return timeTooltipFormatter(this.intl(), timeInterval(xs[0], xs[xs.length - 1], Math.max(2, Math.min(12, xs.length))));\n });\n\n readonly labels = computed(() => {\n const format = this.timeLabel();\n const { labels, xs } = this.table();\n return format ? xs.map((x) => format(x)) : labels;\n });\n\n readonly layout = computed(() => {\n const { width } = this.size();\n const height = this.size().height - (this.brush() ? OVERVIEW + OVERVIEW_GAP : 0);\n const { xs } = this.table();\n const kind = this.xType() === 'category' ? 'point' : this.xType() === 'time' ? 'time' : 'linear';\n const view = this.view();\n const domain: [number, number] =\n view && this.xType() !== 'category' ? view : xs.length ? [xs[0], xs[xs.length - 1] === xs[0] ? xs[0] + 1 : xs[xs.length - 1]] : [0, 1];\n return cartesianLayout({\n width,\n height,\n intl: this.intl(),\n category: {\n kind,\n labels: this.table().labels,\n count: xs.length,\n domain,\n labelMode: this.labelMode(),\n maxLabels: this.maxLabels(),\n title: this.xAxisTitle() || undefined,\n },\n value: {\n extent: this.valueExtent(),\n scale: this.yScale(),\n format: this.axisFormat(),\n includeZero: this.area() || this.isStacked(),\n min: this.isStacked() && this.stackType() === '100%' ? 0 : this.yMin(),\n max: this.isStacked() && this.stackType() === '100%' ? 100 : this.yMax(),\n title: this.yAxisTitle() || undefined,\n },\n grid: this.grid(),\n xAxisPosition: this.xAxisPosition(),\n yAxisPosition: this.yAxisPosition(),\n });\n });\n\n readonly xPositions = computed(() => {\n const layout = this.layout();\n const { xs } = this.table();\n return xs.map((x, index) => layout.categoryPosition(index, x));\n });\n\n readonly paths = computed<TxLineChartPath[]>(() => {\n const layout = this.layout();\n const xs = this.xPositions();\n const { values } = this.table();\n const stacked = this.isStacked();\n const stackedValues = this.stackedValues();\n const visible = this.visibleIndexes();\n const scale = layout.value;\n const base = scale.map(scale.domain[0] <= 0 && scale.domain[1] >= 0 ? 0 : scale.domain[0]);\n const threshold = Math.max(16, Math.round(layout.plot.width * DECIMATE_RATIO));\n const curve = this.curve();\n return visible.map((seriesIndex) => {\n const item = this.list()[seriesIndex];\n const top = values[seriesIndex].map((value, index) => {\n if (value === null) return null;\n const y = stacked ? (stackedValues[seriesIndex][index]?.[1] ?? null) : value;\n return y === null ? null : { x: xs[index], y: scale.map(y) };\n });\n const bottom = values[seriesIndex].map((value, index) => {\n if (value === null) return null;\n const y0 = stacked ? (stackedValues[seriesIndex][index]?.[0] ?? 0) : null;\n return { x: xs[index], y: y0 === null ? base : scale.map(y0) };\n });\n const thin = this.decimation() && top.length > threshold;\n const sampled = thin ? decimateSeries(top, threshold) : null;\n const drawnTop = sampled ?? top;\n const drawnBottom = sampled ? sampled.map((point) => (point ? (bottom[point.index] ?? null) : null)) : bottom;\n const showMarkers = this.markers() && top.length <= layout.plot.width / 6;\n return {\n index: seriesIndex,\n key: this.keys()[seriesIndex],\n name: item.name,\n color: seriesColor(item.color, seriesIndex),\n line: linePath(drawnTop, curve),\n area: this.area() ? areaPath(drawnTop, drawnBottom, curve) : '',\n markers: showMarkers ? top.flatMap((point, index) => (point ? [{ x: point.x, y: point.y, index }] : [])) : [],\n gradient: `${this.uid}-fill-${seriesIndex}`,\n };\n });\n });\n\n readonly clip = computed(() => {\n const plot = this.layout().plot;\n return { x: plot.left - CLIP_PAD, y: plot.top - CLIP_PAD, width: plot.width + CLIP_PAD * 2, height: plot.height + CLIP_PAD * 2 };\n });\n\n readonly clipped = computed(() => this.zoomable() || this.live());\n\n readonly overview = computed(() => {\n if (!this.brush() || this.isEmpty()) return null;\n const plot = this.layout().plot;\n const top = this.size().height - OVERVIEW;\n const full = this.fullTable();\n const [low, high] = this.fullDomain();\n const span = high - low || 1;\n const at = (u: number) => plot.left + ((u - low) / span) * plot.width;\n const seriesIndex = this.visibleIndexes()[0] ?? 0;\n const values = full.values[seriesIndex] ?? [];\n const range = extent(values) ?? [0, 1];\n const bottom = Math.min(0, range[0]);\n const peak = range[1] === bottom ? bottom + 1 : range[1];\n const points = values.map((value, index) => (value === null ? null : { x: at(full.xs[index]), y: top + OVERVIEW - OVERVIEW_PAD - ((value - bottom) / (peak - bottom)) * (OVERVIEW - OVERVIEW_PAD * 2) }));\n const base = points.map((point) => (point ? { x: point.x, y: top + OVERVIEW } : null));\n const [from, to] = this.view() ?? [low, high];\n return {\n top,\n height: OVERVIEW,\n left: plot.left,\n width: plot.width,\n line: linePath(points, this.curve()),\n area: areaPath(points, base, this.curve()),\n x0: at(from),\n x1: at(to),\n color: seriesColor(this.list()[seriesIndex]?.color, seriesIndex),\n handleY: top + (OVERVIEW - OVERVIEW_HANDLE) / 2,\n handleHeight: OVERVIEW_HANDLE,\n };\n });\n\n readonly annotationShapes = computed(() => {\n const layout = this.layout();\n return chartAnnotationShapes(this.annotations(), { plot: layout.plot, x: (value) => this.xPosition(value), y: (value) => layout.value.map(value) });\n });\n\n readonly legendItems = computed<TxChartLegendItem[]>(() => {\n const stat = this.legendVariant() === 'stat';\n const active = this.active();\n const format = this.formatValue();\n return this.list().map((item, index) => {\n const values = this.table().values[index] ?? [];\n let at = active?.index ?? -1;\n if (stat && at < 0) {\n for (let cursor = values.length - 1; cursor >= 0; cursor--) {\n if (values[cursor] !== null) {\n at = cursor;\n break;\n }\n }\n }\n const raw = at >= 0 ? values[at] : null;\n return {\n key: this.keys()[index],\n label: item.name,\n color: seriesColor(item.color, index),\n hidden: this.hidden().has(this.keys()[index]),\n ...(stat ? { value: raw === null || raw === undefined ? '—' : format(raw, index, at), caption: at >= 0 ? this.labels()[at] : undefined } : {}),\n };\n });\n });\n\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat() === 'number' ? 'integer' : this.valueFormat()));\n\n readonly formatValue = computed(() => {\n const custom = this.tooltipFormatter();\n const format = this.valueFormatter();\n return (value: number, seriesIndex: number, dataPointIndex: number) => (custom ? custom(value, { seriesIndex, dataPointIndex }) : format(value));\n });\n\n readonly crosshair = computed(() => {\n const active = this.active();\n if (!active) return null;\n const x = this.xPositions()[active.index];\n const plot = this.layout().plot;\n return x === undefined ? null : { x, y1: plot.top, y2: plot.top + plot.height };\n });\n\n readonly activePoints = computed(() => {\n const active = this.active();\n if (!active) return [];\n const scale = this.layout().value;\n const x = this.xPositions()[active.index];\n return this.visibleIndexes().flatMap((seriesIndex) => {\n const value = this.pointValue(seriesIndex, active.index);\n if (value === null || (this.tooltipMode() === 'single' && seriesIndex !== active.series)) return [];\n return [{ x, y: scale.map(value), color: seriesColor(this.list()[seriesIndex].color, seriesIndex), series: seriesIndex }];\n });\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const active = this.active();\n if (!active || !this.showTooltip() || this.isEmpty() || this.legendVariant() === 'stat') return null;\n const format = this.formatValue();\n const rows = this.visibleIndexes()\n .filter((seriesIndex) => this.tooltipMode() === 'shared' || seriesIndex === active.series)\n .flatMap((seriesIndex) => {\n const raw = this.table().values[seriesIndex][active.index];\n if (raw === null || raw === undefined) return [];\n return [\n {\n label: this.list()[seriesIndex].name,\n value: format(raw, seriesIndex, active.index),\n color: seriesColor(this.list()[seriesIndex].color, seriesIndex),\n raw,\n seriesIndex,\n active: seriesIndex === active.series,\n },\n ];\n });\n if (!rows.length) return null;\n const points = this.activePoints();\n const x = this.xPositions()[active.index];\n const single = this.tooltipMode() === 'single';\n const y = single ? (points.find((point) => point.series === active.series)?.y ?? this.layout().plot.top) : this.layout().plot.top;\n const total = this.isStacked() && rows.length > 1 ? this.valueFormatter()(rows.reduce((sum, row) => sum + (row.raw ?? 0), 0)) : undefined;\n return { title: this.labels()[active.index] ?? '', rows, index: active.index, x, y, placement: 'top', total };\n });\n\n readonly summary = computed(() => {\n const t = this.translations();\n const type = this.area() ? t.chartArea : t.chartLine;\n const values = this.fullTable().values.flat().filter((value): value is number => value !== null);\n const range = extent(values);\n const format = this.valueFormatter();\n const text = chartSummary(t, this.intl(), type, this.list().length, this.fullTable().xs.length, range ? [format(range[0]), format(range[1])] : null);\n return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;\n });\n\n readonly dataTable = computed(() => {\n const format = this.valueFormatter();\n const full = this.fullTable();\n const time = this.timeLabel();\n return chartTable(\n time ? full.xs.map((x) => time(x)) : full.labels,\n this.list().map((item, index) => ({ name: item.name, values: full.values[index] })),\n format,\n );\n });\n\n private drag: { mode: 'pan' | 'move' | 'start' | 'end'; x: number; range: [number, number]; moved: boolean; overview: boolean } | null = null;\n private suppressClick = false;\n private anchor: { id: string; px: number } | null = null;\n\n constructor() {\n afterNextRender(() => setTimeout(() => this.morph.set(true), 120));\n afterRenderEffect(() => this.slide());\n }\n\n resetZoom(): void {\n this.active.set(null);\n this.xRange.set(null);\n }\n\n zoomAt(px: number, factor: number): void {\n const [low, high] = this.fullDomain();\n const current = this.view() ?? [low, high];\n const plot = this.layout().plot;\n const span = current[1] - current[0];\n const share = Math.max(0, Math.min(1, (px - plot.left) / Math.max(1, plot.width)));\n const at = current[0] + share * span;\n const next = Math.max(this.minSpan(), Math.min(high - low, span * factor));\n this.setRange([at - share * next, at - share * next + next]);\n }\n\n panBy(dx: number): void {\n const current = this.view();\n if (!current) return;\n const span = current[1] - current[0];\n const du = (-dx / Math.max(1, this.layout().plot.width)) * span;\n this.setRange([current[0] + du, current[1] + du]);\n }\n\n private setRange(range: [number, number]): void {\n const [low, high] = this.fullDomain();\n const span = Math.min(high - low, Math.max(this.minSpan(), range[1] - range[0]));\n const from = Math.max(low, Math.min(high - span, range[0]));\n this.active.set(null);\n this.xRange.set(from <= low && from + span >= high ? null : [from, from + span]);\n }\n\n private fromOverview(px: number): number {\n const overview = this.overview();\n const [low, high] = this.fullDomain();\n return overview ? low + ((px - overview.left) / Math.max(1, overview.width)) * (high - low) : low;\n }\n\n private handleDrag(event: TxChartPointerEvent): boolean {\n const overview = this.overview();\n const inOverview = !!overview && event.y >= overview.top - OVERVIEW_GAP / 2;\n if (event.type === 'down') {\n const current = this.view() ?? this.fullDomain();\n if (overview && inOverview) {\n const near = HANDLE_REACH;\n let range: [number, number] = [current[0], current[1]];\n let mode: 'move' | 'start' | 'end' = 'move';\n if (Math.abs(event.x - overview.x0) <= near) mode = 'start';\n else if (Math.abs(event.x - overview.x1) <= near) mode = 'end';\n else if (event.x < overview.x0 || event.x > overview.x1) {\n const centre = this.fromOverview(event.x);\n const span = current[1] - current[0];\n this.setRange([centre - span / 2, centre + span / 2]);\n range = this.view() ?? this.fullDomain();\n }\n this.drag = { mode, x: event.x, range, moved: false, overview: true };\n this.active.set(null);\n return true;\n }\n if (this.view()) this.drag = { mode: 'pan', x: event.x, range: [current[0], current[1]], moved: false, overview: false };\n return false;\n }\n if (event.type === 'move' && this.drag) {\n if (!((event.buttons ?? 0) & 1)) {\n this.drag = null;\n return false;\n }\n const drag = this.drag;\n const dx = event.x - drag.x;\n if (Math.abs(dx) > DRAG_THRESHOLD) drag.moved = true;\n if (!drag.moved) return drag.overview;\n const [from, to] = drag.range;\n if (drag.overview && overview) {\n const [low, high] = this.fullDomain();\n const du = (dx / Math.max(1, overview.width)) * (high - low);\n if (drag.mode === 'start') this.setRange([Math.min(from + du, to - this.minSpan()), to]);\n else if (drag.mode === 'end') this.setRange([from, Math.max(to + du, from + this.minSpan())]);\n else this.setRange([from + du, to + du]);\n } else {\n const du = (-dx / Math.max(1, this.layout().plot.width)) * (to - from);\n this.setRange([from + du, to + du]);\n }\n this.active.set(null);\n return true;\n }\n if (event.type === 'up') {\n const drag = this.drag;\n this.drag = null;\n if (drag?.moved) this.suppressClick = true;\n return !!drag?.overview || !!drag?.moved;\n }\n if (event.type === 'click' && (this.suppressClick || inOverview)) {\n this.suppressClick = false;\n return true;\n }\n return false;\n }\n\n private slide(): void {\n const table = this.table();\n const positions = this.xPositions();\n const live = this.live();\n const layer = this.layer()?.nativeElement;\n const last = table.xs.length - 1;\n if (last < 0) {\n this.anchor = null;\n return;\n }\n const identity = (index: number) => (this.xType() === 'category' ? table.labels[index] : String(table.xs[index]));\n const anchor = this.anchor;\n this.anchor = { id: identity(last), px: positions[last] };\n if (!live || !anchor || !layer || this.view() || prefersReducedMotion(this.host.nativeElement.ownerDocument)) return;\n let at = -1;\n for (let index = last; index >= 0; index--) {\n if (identity(index) === anchor.id) {\n at = index;\n break;\n }\n }\n if (at < 0 || at === last) return;\n const dx = anchor.px - positions[at];\n if (Math.abs(dx) < 0.5) return;\n const duration = readTokenNumber(this.host.nativeElement, '--tx-chart-motion-update-duration', SLIDE_SECONDS) * 1000;\n layer.animate([{ transform: `translateX(${dx}px)` }, { transform: 'translateX(0)' }], { duration, easing: SLIDE_EASING });\n }\n\n private xPosition(value: TxChartX): number | null {\n const layout = this.layout();\n const { xs } = this.table();\n if (this.xType() === 'category') {\n const index = chartCategoryIndex(value, this.fullTable().labels) - this.offset();\n return index < 0 || index >= xs.length ? null : layout.categoryPosition(index, xs[index]);\n }\n const x = this.xType() === 'time' ? toTime(value) : typeof value === 'number' ? value : Number(value);\n return x === null || !Number.isFinite(x) ? null : layout.categoryPosition(0, x);\n }\n\n pointValue(seriesIndex: number, index: number): number | null {\n const raw = this.table().values[seriesIndex]?.[index] ?? null;\n if (raw === null) return null;\n return this.isStacked() ? (this.stackedValues()[seriesIndex][index]?.[1] ?? null) : raw;\n }\n\n onPointer(event: TxChartPointerEvent): void {\n if (event.type === 'leave') {\n this.drag = null;\n this.active.set(null);\n return;\n }\n if (this.zoomable() && this.handleDrag(event)) return;\n const plot = this.layout().plot;\n if (event.x < plot.left - 8 || event.x > plot.left + plot.width + 8 || event.y < plot.top - 8 || event.y > plot.top + plot.height + 8) {\n this.active.set(null);\n return;\n }\n const index = this.layout().categoryIndexAt(event.x, this.table().xs);\n if (index < 0) return;\n const series = this.nearestSeries(index, event.y);\n this.active.set({ index, series, pointerY: event.y, keyboard: false });\n if (event.type === 'click' && series >= 0) {\n this.pointClick.emit({ seriesIndex: series, dataPointIndex: index + this.offset(), value: this.table().values[series][index], category: this.labels()[index] ?? '' });\n }\n }\n\n onNavigate(event: KeyboardEvent): void {\n if (this.zoomable() && this.zoomKey(event)) return;\n const count = this.table().xs.length;\n const current = this.active();\n if (event.key === 'Escape') {\n this.active.set(null);\n return;\n }\n const visible = this.visibleIndexes();\n let index = current?.index ?? -1;\n let series = current?.series ?? visible[0] ?? -1;\n if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {\n series = cycleIndex(series, event.key === 'ArrowDown' ? 1 : -1, visible);\n index = Math.max(0, index);\n } else {\n index = stepIndex(event.key, index, count);\n }\n if (index < 0 || series < 0) return;\n this.active.set({ index, series, pointerY: null, keyboard: true });\n const value = this.table().values[series][index];\n this.frame()?.announce(\n formatMessage(this.translations().chartPoint, {\n series: this.list()[series].name,\n category: this.labels()[index] ?? '',\n value: value === null ? '—' : this.formatValue()(value, series, index),\n }),\n );\n }\n\n private zoomKey(event: KeyboardEvent): boolean {\n const plot = this.layout().plot;\n const active = this.active();\n const focus = active ? (this.xPositions()[active.index] ?? plot.left + plot.width / 2) : plot.left + plot.width / 2;\n if (event.key === '+' || event.key === '=') this.zoomAt(focus, KEY_ZOOM);\n else if (event.key === '-' || event.key === '_') this.zoomAt(focus, 1 / KEY_ZOOM);\n else if (event.key === '0') this.resetZoom();\n else if (event.shiftKey && (event.key === 'ArrowLeft' || event.key === 'ArrowRight') && this.view()) this.panBy((event.key === 'ArrowLeft' ? 1 : -1) * plot.width * KEY_PAN);\n else return false;\n this.active.set(null);\n return true;\n }\n\n onLegendToggle(key: string): void {\n const index = this.keys().indexOf(key);\n this.hidden.update((keys) => toggleKey(keys, key));\n this.seriesToggle.emit({ seriesIndex: index, name: this.list()[index]?.name ?? '', hidden: this.hidden().has(key) });\n }\n\n onLegendHover(key: string | null): void {\n const index = key === null ? -1 : this.keys().indexOf(key);\n this.focusedSeries.set(index >= 0 && !this.hidden().has(key ?? '') ? index : null);\n }\n\n private nearestSeries(index: number, y: number): number {\n const scale = this.layout().value;\n let best = this.visibleIndexes()[0] ?? -1;\n let distance = Infinity;\n for (const seriesIndex of this.visibleIndexes()) {\n const value = this.pointValue(seriesIndex, index);\n if (value === null) continue;\n const next = Math.abs(scale.map(value) - y);\n if (next < distance) {\n distance = next;\n best = seriesIndex;\n }\n }\n return best;\n }\n}\n","<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-line\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n [zoomable]=\"zoomable()\"\n [zoomedIn]=\"!!view()\"\n (zoomed)=\"zoomAt($event.x, $event.factor)\"\n (panned)=\"panBy($event.dx)\"\n (zoomReset)=\"resetZoom()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n @if (clipped()) {\n <svg:clipPath [attr.id]=\"uid + '-clip'\">\n <svg:rect [attr.x]=\"clip().x\" [attr.y]=\"clip().y\" [attr.width]=\"clip().width\" [attr.height]=\"clip().height\" />\n </svg:clipPath>\n }\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"back\" [part]=\"passThrough().annotation\" />\n @if (crosshair(); as line) {\n <svg:line\n class=\"tx-line-chart__crosshair\"\n [class]=\"passThrough().crosshair?.class\"\n [style]=\"passThrough().crosshair?.style\"\n [attr.x1]=\"line.x\"\n [attr.x2]=\"line.x\"\n [attr.y1]=\"line.y1\"\n [attr.y2]=\"line.y2\"\n />\n }\n <svg:g #layer class=\"tx-line-chart__layer\" [attr.clip-path]=\"clipped() ? 'url(#' + uid + '-clip)' : null\">\n @for (path of paths(); track path.key) {\n <svg:g\n class=\"tx-line-chart__series\"\n [class.tx-line-chart__series--focused]=\"focusedSeries() === path.index\"\n [class]=\"passThrough().series?.class\"\n [style]=\"passThrough().series?.style\"\n [style.--tx-line-chart-color]=\"path.color\"\n [attr.data-series]=\"path.index\"\n >\n @if (path.area) {\n <svg:linearGradient [attr.id]=\"path.gradient\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <svg:stop class=\"tx-line-chart__stop-from\" offset=\"0\" [style.stop-color]=\"path.color\" />\n <svg:stop class=\"tx-line-chart__stop-to\" offset=\"0.95\" [style.stop-color]=\"path.color\" />\n </svg:linearGradient>\n <svg:path\n class=\"tx-line-chart__area\"\n [class.tx-line-chart__area--stacked]=\"isStacked()\"\n [class]=\"passThrough().area?.class\"\n [style]=\"passThrough().area?.style\"\n [attr.d]=\"path.area\"\n [attr.fill]=\"'url(#' + path.gradient + ')'\"\n />\n }\n <svg:path\n class=\"tx-line-chart__line\"\n [class]=\"passThrough().line?.class\"\n [style]=\"passThrough().line?.style\"\n [attr.d]=\"path.line\"\n [style.stroke]=\"path.color\"\n />\n @for (marker of path.markers; track marker.index) {\n <svg:circle\n class=\"tx-line-chart__point\"\n [class]=\"passThrough().marker?.class\"\n [style]=\"passThrough().marker?.style\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [style.fill]=\"path.color\"\n />\n }\n </svg:g>\n }\n @for (point of activePoints(); track point.series) {\n <svg:circle class=\"tx-line-chart__halo\" [attr.cx]=\"point.x\" [attr.cy]=\"point.y\" [style.fill]=\"point.color\" />\n <svg:circle\n class=\"tx-line-chart__marker\"\n [class]=\"passThrough().marker?.class\"\n [attr.cx]=\"point.x\"\n [attr.cy]=\"point.y\"\n [style.fill]=\"point.color\"\n />\n }\n </svg:g>\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n @if (overview(); as strip) {\n <svg:g class=\"tx-line-chart__overview\" [class]=\"passThrough().brush?.class\" [style]=\"passThrough().brush?.style\" [style.--tx-line-chart-color]=\"strip.color\">\n <svg:rect class=\"tx-line-chart__overview-track\" [attr.x]=\"strip.left\" [attr.y]=\"strip.top\" [attr.width]=\"strip.width\" [attr.height]=\"strip.height\" />\n <svg:path class=\"tx-line-chart__overview-area\" [attr.d]=\"strip.area\" />\n <svg:path class=\"tx-line-chart__overview-line\" [attr.d]=\"strip.line\" />\n <svg:rect class=\"tx-line-chart__overview-mask\" [attr.x]=\"strip.left\" [attr.y]=\"strip.top\" [attr.width]=\"strip.x0 - strip.left\" [attr.height]=\"strip.height\" />\n <svg:rect class=\"tx-line-chart__overview-mask\" [attr.x]=\"strip.x1\" [attr.y]=\"strip.top\" [attr.width]=\"strip.left + strip.width - strip.x1\" [attr.height]=\"strip.height\" />\n <svg:rect class=\"tx-line-chart__overview-window\" [attr.x]=\"strip.x0\" [attr.y]=\"strip.top\" [attr.width]=\"strip.x1 - strip.x0\" [attr.height]=\"strip.height\" />\n <svg:rect class=\"tx-line-chart__overview-handle\" [attr.x]=\"strip.x0 - 3\" [attr.y]=\"strip.handleY\" width=\"6\" [attr.height]=\"strip.handleHeight\" />\n <svg:rect class=\"tx-line-chart__overview-handle\" [attr.x]=\"strip.x1 - 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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,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,cAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,qBAAqB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACpB,sBAAsB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAC3B,YAAY,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACa,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-line.mjs","names":[],"sources":["../../../../packages/charts/line/src/line.icons.ts","../../../../packages/charts/line/src/line.theme.ts","../../../../packages/charts/line/src/line-chart.component.ts","../../../../packages/charts/line/src/line-chart.component.html"],"sourcesContent":["import { TxIconSet, txIconChartLine } from '@tectra-ng/icons';\n\nexport const LINE_ICON_DEFAULTS: TxIconSet = {\n 'chart-line': txIconChartLine,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const LINE_THEME = {\n chart: chartTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n linkedSignal,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n TxChartActive,\n TxChartAxes,\n TxChartFrame,\n TxChartGridMode,\n TxChartHeight,\n TxChartLabelMode,\n TxChartLegendAlign,\n TxChartLegendItem,\n TxChartLegendPosition,\n TxChartLegendTemplate,\n TxChartLegendVariant,\n TxChartPointerEvent,\n TxChartSeries,\n TxChartTooltipData,\n TxChartTooltipFormatter,\n TxChartTooltipMode,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n TxChartXAxisPosition,\n TxChartYAxisPosition,\n TxChartXType,\n TxValueScaleKind,\n areaPath,\n cartesianLayout,\n chartNumberFormatter,\n chartMonthNames,\n chartSummary,\n chartTable,\n cycleIndex,\n decimateSeries,\n extent,\n hasChartData,\n initialChartSize,\n injectChartEntrance,\n linePath,\n normalizeSeries,\n seriesColor,\n stackValues,\n stepIndex,\n timeInterval,\n timeTooltipFormatter,\n toggleKey,\n TxChartAnnotation,\n TxChartAnnotations,\n TxChartX,\n chartAnnotationShapes,\n chartCategoryIndex,\n toTime,\n prefersReducedMotion,\n readTokenNumber,\n} from '@tectra-ng/charts/core';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, formatMessage, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport {\n TxLineChartCurve,\n TxLineChartPart,\n TxLineChartPath,\n TxLineChartPointEvent,\n TxLineChartSeriesToggle,\n TxLineChartStackType,\n} from './line-chart.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { LINE_ICON_DEFAULTS } from './line.icons';\nimport { LINE_THEME } from './line.theme';\n\nconst DECIMATE_RATIO = 1.5;\nconst OVERVIEW = 44;\nconst OVERVIEW_GAP = 18;\nconst OVERVIEW_PAD = 4;\nconst OVERVIEW_HANDLE = 20;\nconst HANDLE_REACH = 7;\nconst DRAG_THRESHOLD = 3;\nconst CLIP_PAD = 8;\nconst MIN_CATEGORY_SPAN = 2;\nconst MIN_SPAN_SHARE = 0.02;\nconst KEY_ZOOM = 0.7;\nconst KEY_PAN = 0.2;\nconst SLIDE_SECONDS = 0.32;\nconst SLIDE_EASING = 'cubic-bezier(0.22, 1, 0.36, 1)';\n\n@Component({\n selector: 'tx-line-chart',\n imports: [TxChartFrame, TxChartAxes, TxChartAnnotations],\n templateUrl: './line-chart.component.html',\n styleUrl: './line-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-line-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-curve]': 'curve()',\n '[class.tx-line-chart--area]': 'area()',\n '[class.tx-line-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-line-chart--entering]': 'entrance.active()',\n '[class.tx-line-chart--morph]': 'morph()',\n '[class.tx-line-chart--focused]': 'focusedSeries() !== null',\n '[class.tx-line-chart--live]': 'live()',\n },\n viewProviders: [provideTxIconDefaults(LINE_ICON_DEFAULTS)],\n})\nexport class TxLineChart {\n private readonly lineTheme = injectTokens(LINE_THEME);\n\n private locale = inject(TxLocaleService);\n readonly translations = injectTranslations();\n\n readonly series = input<readonly TxChartSeries[] | null | undefined>([]);\n readonly categories = input<readonly (string | number | Date)[] | null | undefined>([]);\n readonly xType = input<TxChartXType>('category');\n readonly annotations = input<readonly TxChartAnnotation[] | null | undefined>([]);\n readonly zoom = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly brush = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly xRange = model<readonly [number, number] | null>(null);\n readonly maxPoints = input<number | undefined>(undefined);\n readonly live = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly height = input<TxChartHeight>(450);\n readonly curve = input<TxLineChartCurve>('smooth');\n readonly area = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly stacked = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly stackType = input<TxLineChartStackType>('normal');\n readonly markers = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showLegend = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly legendPosition = input<TxChartLegendPosition>('top');\n readonly legendAlign = input<TxChartLegendAlign>('start');\n readonly legendVariant = input<TxChartLegendVariant>('line');\n readonly showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly tooltipMode = input<TxChartTooltipMode>('shared');\n readonly tooltipFormatter = input<TxChartTooltipFormatter | null>(null);\n readonly valueFormat = input<TxChartValueFormat>('number');\n readonly yScale = input<TxValueScaleKind>('linear');\n readonly yMin = input<number | undefined>(undefined);\n readonly yMax = input<number | undefined>(undefined);\n readonly xAxisTitle = input('');\n readonly yAxisTitle = input('');\n readonly grid = input<TxChartGridMode>('value');\n readonly xAxisPosition = input<TxChartXAxisPosition>('bottom');\n readonly yAxisPosition = input<TxChartYAxisPosition>('left');\n readonly labelMode = input<TxChartLabelMode>('auto');\n readonly maxLabels = input(10);\n readonly decimation = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly toolbar = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input('');\n readonly dt = input<TectraDeepPartial<TectraChartTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxLineChartPart, TxLineChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly seriesToggle = output<TxLineChartSeriesToggle>();\n readonly pointClick = output<TxLineChartPointEvent>();\n\n readonly legendTemplate = contentChild(TxChartLegendTemplate);\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n private readonly layer = viewChild<ElementRef<SVGGElement>>('layer');\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('lineChart', this, this.pt, this.ptOptions);\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-chart'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n readonly entrance = injectChartEntrance();\n readonly morph = signal(false);\n\n readonly uid = uniqueId('tx-line-chart');\n readonly hidden = signal<ReadonlySet<string>>(new Set());\n readonly focusedSeries = signal<number | null>(null);\n readonly active = signal<TxChartActive | null>(null);\n readonly size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, undefined, this.toolbar()));\n\n private readonly intl = computed(() => this.locale.locale().intl);\n private readonly list = computed(() => this.series() ?? []);\n\n readonly fullTable = computed(() => {\n const categories = this.categories() ?? [];\n const fallback = this.xType() === 'category' && !categories.length && this.list().every((item) => item.data.every((value) => typeof value !== 'object'));\n const table = normalizeSeries(this.list(), fallback ? chartMonthNames(this.intl(), 'long') : categories, this.xType());\n const limit = this.maxPoints();\n if (!limit || limit < 2 || table.xs.length <= limit) return table;\n const from = table.xs.length - limit;\n return {\n labels: table.labels.slice(from),\n xs: this.xType() === 'category' ? table.xs.slice(from).map((_, index) => index) : table.xs.slice(from),\n values: table.values.map((row) => row.slice(from)),\n };\n });\n\n readonly zoomable = computed(() => this.zoom() || this.brush());\n\n readonly fullDomain = computed<[number, number]>(() => {\n const xs = this.fullTable().xs;\n return xs.length ? [xs[0], xs[xs.length - 1] === xs[0] ? xs[0] + 1 : xs[xs.length - 1]] : [0, 1];\n });\n\n readonly minSpan = computed(() => {\n const [from, to] = this.fullDomain();\n return this.xType() === 'category' ? Math.min(to - from, MIN_CATEGORY_SPAN) : (to - from) * MIN_SPAN_SHARE;\n });\n\n readonly view = computed<[number, number] | null>(() => {\n const range = this.xRange();\n if (!range || !this.zoomable()) return null;\n const [low, high] = this.fullDomain();\n const span = Math.max(this.minSpan(), Math.abs(range[1] - range[0]));\n let from = Math.max(low, Math.min(range[0], range[1]));\n let to = Math.min(high, from + span);\n from = Math.max(low, to - span);\n to = Math.min(high, from + span);\n return from <= low && to >= high ? null : [from, to];\n });\n\n private readonly windowed = computed(() => {\n const full = this.fullTable();\n const view = this.view();\n if (!view) return { table: full, start: 0 };\n const xs = full.xs;\n let start: number;\n let end: number;\n if (this.xType() === 'category') {\n start = Math.max(0, Math.floor(view[0]));\n end = Math.min(xs.length - 1, Math.ceil(view[1]));\n } else {\n const first = xs.findIndex((x) => x >= view[0]);\n const last = xs.length - 1 - [...xs].reverse().findIndex((x) => x <= view[1]);\n start = Math.max(0, (first < 0 ? xs.length - 1 : first) - 1);\n end = Math.min(xs.length - 1, (last >= xs.length ? 0 : last) + 1);\n }\n return {\n start,\n table: {\n labels: full.labels.slice(start, end + 1),\n xs: this.xType() === 'category' ? xs.slice(start, end + 1).map((_, index) => index) : xs.slice(start, end + 1),\n values: full.values.map((row) => row.slice(start, end + 1)),\n },\n };\n });\n\n readonly table = computed(() => this.windowed().table);\n readonly offset = computed(() => this.windowed().start);\n\n readonly keys = computed(() => this.list().map((item, index) => `${index}:${item.name}`));\n readonly visibleIndexes = computed(() => this.keys().flatMap((key, index) => (this.hidden().has(key) ? [] : [index])));\n readonly isEmpty = computed(() => !this.list().length || !hasChartData(this.table().values));\n readonly isStacked = computed(() => this.stacked() || this.stackType() === '100%');\n readonly legendShown = computed(() => this.showLegend() && this.list().length > 1);\n\n readonly stackedValues = computed(() => {\n const values = this.table().values;\n const visible = new Set(this.visibleIndexes());\n const rows = values.map((row, index) => (visible.has(index) ? row : row.map(() => null)));\n return stackValues(rows, this.stackType());\n });\n\n readonly valueExtent = computed<[number, number]>(() => {\n const visible = this.visibleIndexes();\n if (this.isStacked()) {\n const all = this.stackedValues().flatMap((row, index) => (visible.includes(index) ? row.flatMap((value) => (value ? [value[0], value[1]] : [])) : []));\n return extent(all) ?? [0, 1];\n }\n return extent(visible.flatMap((index) => this.table().values[index])) ?? [0, 1];\n });\n\n readonly axisFormat = computed<TxChartValueFormat>(() => (this.stackType() === '100%' && this.isStacked() && this.valueFormat() === 'number' ? 'percent' : this.valueFormat()));\n\n readonly timeLabel = computed(() => {\n const xs = this.table().xs;\n if (this.xType() !== 'time' || xs.length < 1) {\n return null;\n }\n return timeTooltipFormatter(this.intl(), timeInterval(xs[0], xs[xs.length - 1], Math.max(2, Math.min(12, xs.length))));\n });\n\n readonly labels = computed(() => {\n const format = this.timeLabel();\n const { labels, xs } = this.table();\n return format ? xs.map((x) => format(x)) : labels;\n });\n\n readonly layout = computed(() => {\n const { width } = this.size();\n const height = this.size().height - (this.brush() ? OVERVIEW + OVERVIEW_GAP : 0);\n const { xs } = this.table();\n const kind = this.xType() === 'category' ? 'point' : this.xType() === 'time' ? 'time' : 'linear';\n const view = this.view();\n const domain: [number, number] =\n view && this.xType() !== 'category' ? view : xs.length ? [xs[0], xs[xs.length - 1] === xs[0] ? xs[0] + 1 : xs[xs.length - 1]] : [0, 1];\n return cartesianLayout({\n width,\n height,\n intl: this.intl(),\n category: {\n kind,\n labels: this.table().labels,\n count: xs.length,\n domain,\n labelMode: this.labelMode(),\n maxLabels: this.maxLabels(),\n title: this.xAxisTitle() || undefined,\n },\n value: {\n extent: this.valueExtent(),\n scale: this.yScale(),\n format: this.axisFormat(),\n includeZero: this.area() || this.isStacked(),\n min: this.isStacked() && this.stackType() === '100%' ? 0 : this.yMin(),\n max: this.isStacked() && this.stackType() === '100%' ? 100 : this.yMax(),\n title: this.yAxisTitle() || undefined,\n },\n grid: this.grid(),\n xAxisPosition: this.xAxisPosition(),\n yAxisPosition: this.yAxisPosition(),\n });\n });\n\n readonly xPositions = computed(() => {\n const layout = this.layout();\n const { xs } = this.table();\n return xs.map((x, index) => layout.categoryPosition(index, x));\n });\n\n readonly paths = computed<TxLineChartPath[]>(() => {\n const layout = this.layout();\n const xs = this.xPositions();\n const { values } = this.table();\n const stacked = this.isStacked();\n const stackedValues = this.stackedValues();\n const visible = this.visibleIndexes();\n const scale = layout.value;\n const base = scale.map(scale.domain[0] <= 0 && scale.domain[1] >= 0 ? 0 : scale.domain[0]);\n const threshold = Math.max(16, Math.round(layout.plot.width * DECIMATE_RATIO));\n const curve = this.curve();\n return visible.map((seriesIndex) => {\n const item = this.list()[seriesIndex];\n const top = values[seriesIndex].map((value, index) => {\n if (value === null) return null;\n const y = stacked ? (stackedValues[seriesIndex][index]?.[1] ?? null) : value;\n return y === null ? null : { x: xs[index], y: scale.map(y) };\n });\n const bottom = values[seriesIndex].map((value, index) => {\n if (value === null) return null;\n const y0 = stacked ? (stackedValues[seriesIndex][index]?.[0] ?? 0) : null;\n return { x: xs[index], y: y0 === null ? base : scale.map(y0) };\n });\n const thin = this.decimation() && top.length > threshold;\n const sampled = thin ? decimateSeries(top, threshold) : null;\n const drawnTop = sampled ?? top;\n const drawnBottom = sampled ? sampled.map((point) => (point ? (bottom[point.index] ?? null) : null)) : bottom;\n const showMarkers = this.markers() && top.length <= layout.plot.width / 6;\n return {\n index: seriesIndex,\n key: this.keys()[seriesIndex],\n name: item.name,\n color: seriesColor(item.color, seriesIndex),\n line: linePath(drawnTop, curve),\n area: this.area() ? areaPath(drawnTop, drawnBottom, curve) : '',\n markers: showMarkers ? top.flatMap((point, index) => (point ? [{ x: point.x, y: point.y, index }] : [])) : [],\n gradient: `${this.uid}-fill-${seriesIndex}`,\n };\n });\n });\n\n readonly clip = computed(() => {\n const plot = this.layout().plot;\n return { x: plot.left - CLIP_PAD, y: plot.top - CLIP_PAD, width: plot.width + CLIP_PAD * 2, height: plot.height + CLIP_PAD * 2 };\n });\n\n readonly clipped = computed(() => this.zoomable() || this.live());\n\n readonly overview = computed(() => {\n if (!this.brush() || this.isEmpty()) return null;\n const plot = this.layout().plot;\n const top = this.size().height - OVERVIEW;\n const full = this.fullTable();\n const [low, high] = this.fullDomain();\n const span = high - low || 1;\n const at = (u: number) => plot.left + ((u - low) / span) * plot.width;\n const seriesIndex = this.visibleIndexes()[0] ?? 0;\n const values = full.values[seriesIndex] ?? [];\n const range = extent(values) ?? [0, 1];\n const bottom = Math.min(0, range[0]);\n const peak = range[1] === bottom ? bottom + 1 : range[1];\n const points = values.map((value, index) => (value === null ? null : { x: at(full.xs[index]), y: top + OVERVIEW - OVERVIEW_PAD - ((value - bottom) / (peak - bottom)) * (OVERVIEW - OVERVIEW_PAD * 2) }));\n const base = points.map((point) => (point ? { x: point.x, y: top + OVERVIEW } : null));\n const [from, to] = this.view() ?? [low, high];\n return {\n top,\n height: OVERVIEW,\n left: plot.left,\n width: plot.width,\n line: linePath(points, this.curve()),\n area: areaPath(points, base, this.curve()),\n x0: at(from),\n x1: at(to),\n color: seriesColor(this.list()[seriesIndex]?.color, seriesIndex),\n handleY: top + (OVERVIEW - OVERVIEW_HANDLE) / 2,\n handleHeight: OVERVIEW_HANDLE,\n };\n });\n\n readonly annotationShapes = computed(() => {\n const layout = this.layout();\n return chartAnnotationShapes(this.annotations(), { plot: layout.plot, x: (value) => this.xPosition(value), y: (value) => layout.value.map(value) });\n });\n\n readonly legendItems = computed<TxChartLegendItem[]>(() => {\n const stat = this.legendVariant() === 'stat';\n const active = this.active();\n const format = this.formatValue();\n return this.list().map((item, index) => {\n const values = this.table().values[index] ?? [];\n let at = active?.index ?? -1;\n if (stat && at < 0) {\n for (let cursor = values.length - 1; cursor >= 0; cursor--) {\n if (values[cursor] !== null) {\n at = cursor;\n break;\n }\n }\n }\n const raw = at >= 0 ? values[at] : null;\n return {\n key: this.keys()[index],\n label: item.name,\n color: seriesColor(item.color, index),\n hidden: this.hidden().has(this.keys()[index]),\n ...(stat ? { value: raw === null || raw === undefined ? '—' : format(raw, index, at), caption: at >= 0 ? this.labels()[at] : undefined } : {}),\n };\n });\n });\n\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat() === 'number' ? 'integer' : this.valueFormat()));\n\n readonly formatValue = computed(() => {\n const custom = this.tooltipFormatter();\n const format = this.valueFormatter();\n return (value: number, seriesIndex: number, dataPointIndex: number) => (custom ? custom(value, { seriesIndex, dataPointIndex }) : format(value));\n });\n\n readonly crosshair = computed(() => {\n const active = this.active();\n if (!active) return null;\n const x = this.xPositions()[active.index];\n const plot = this.layout().plot;\n return x === undefined ? null : { x, y1: plot.top, y2: plot.top + plot.height };\n });\n\n readonly activePoints = computed(() => {\n const active = this.active();\n if (!active) return [];\n const scale = this.layout().value;\n const x = this.xPositions()[active.index];\n return this.visibleIndexes().flatMap((seriesIndex) => {\n const value = this.pointValue(seriesIndex, active.index);\n if (value === null || (this.tooltipMode() === 'single' && seriesIndex !== active.series)) return [];\n return [{ x, y: scale.map(value), color: seriesColor(this.list()[seriesIndex].color, seriesIndex), series: seriesIndex }];\n });\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const active = this.active();\n if (!active || !this.showTooltip() || this.isEmpty() || this.legendVariant() === 'stat') return null;\n const format = this.formatValue();\n const rows = this.visibleIndexes()\n .filter((seriesIndex) => this.tooltipMode() === 'shared' || seriesIndex === active.series)\n .flatMap((seriesIndex) => {\n const raw = this.table().values[seriesIndex][active.index];\n if (raw === null || raw === undefined) return [];\n return [\n {\n label: this.list()[seriesIndex].name,\n value: format(raw, seriesIndex, active.index),\n color: seriesColor(this.list()[seriesIndex].color, seriesIndex),\n raw,\n seriesIndex,\n active: seriesIndex === active.series,\n },\n ];\n });\n if (!rows.length) return null;\n const points = this.activePoints();\n const x = this.xPositions()[active.index];\n const single = this.tooltipMode() === 'single';\n const y = single ? (points.find((point) => point.series === active.series)?.y ?? this.layout().plot.top) : this.layout().plot.top;\n const total = this.isStacked() && rows.length > 1 ? this.valueFormatter()(rows.reduce((sum, row) => sum + (row.raw ?? 0), 0)) : undefined;\n return { title: this.labels()[active.index] ?? '', rows, index: active.index, x, y, placement: 'top', total };\n });\n\n readonly summary = computed(() => {\n const t = this.translations();\n const type = this.area() ? t.chartArea : t.chartLine;\n const values = this.fullTable().values.flat().filter((value): value is number => value !== null);\n const range = extent(values);\n const format = this.valueFormatter();\n const text = chartSummary(t, this.intl(), type, this.list().length, this.fullTable().xs.length, range ? [format(range[0]), format(range[1])] : null);\n return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;\n });\n\n readonly dataTable = computed(() => {\n const format = this.valueFormatter();\n const full = this.fullTable();\n const time = this.timeLabel();\n return chartTable(\n time ? full.xs.map((x) => time(x)) : full.labels,\n this.list().map((item, index) => ({ name: item.name, values: full.values[index] })),\n format,\n );\n });\n\n private drag: { mode: 'pan' | 'move' | 'start' | 'end'; x: number; range: [number, number]; moved: boolean; overview: boolean } | null = null;\n private suppressClick = false;\n private anchor: { id: string; px: number } | null = null;\n\n constructor() {\n afterNextRender(() => setTimeout(() => this.morph.set(true), 120));\n afterRenderEffect(() => this.slide());\n }\n\n resetZoom(): void {\n this.active.set(null);\n this.xRange.set(null);\n }\n\n zoomAt(px: number, factor: number): void {\n const [low, high] = this.fullDomain();\n const current = this.view() ?? [low, high];\n const plot = this.layout().plot;\n const span = current[1] - current[0];\n const share = Math.max(0, Math.min(1, (px - plot.left) / Math.max(1, plot.width)));\n const at = current[0] + share * span;\n const next = Math.max(this.minSpan(), Math.min(high - low, span * factor));\n this.setRange([at - share * next, at - share * next + next]);\n }\n\n panBy(dx: number): void {\n const current = this.view();\n if (!current) return;\n const span = current[1] - current[0];\n const du = (-dx / Math.max(1, this.layout().plot.width)) * span;\n this.setRange([current[0] + du, current[1] + du]);\n }\n\n private setRange(range: [number, number]): void {\n const [low, high] = this.fullDomain();\n const span = Math.min(high - low, Math.max(this.minSpan(), range[1] - range[0]));\n const from = Math.max(low, Math.min(high - span, range[0]));\n this.active.set(null);\n this.xRange.set(from <= low && from + span >= high ? null : [from, from + span]);\n }\n\n private fromOverview(px: number): number {\n const overview = this.overview();\n const [low, high] = this.fullDomain();\n return overview ? low + ((px - overview.left) / Math.max(1, overview.width)) * (high - low) : low;\n }\n\n private handleDrag(event: TxChartPointerEvent): boolean {\n const overview = this.overview();\n const inOverview = !!overview && event.y >= overview.top - OVERVIEW_GAP / 2;\n if (event.type === 'down') {\n const current = this.view() ?? this.fullDomain();\n if (overview && inOverview) {\n const near = HANDLE_REACH;\n let range: [number, number] = [current[0], current[1]];\n let mode: 'move' | 'start' | 'end' = 'move';\n if (Math.abs(event.x - overview.x0) <= near) mode = 'start';\n else if (Math.abs(event.x - overview.x1) <= near) mode = 'end';\n else if (event.x < overview.x0 || event.x > overview.x1) {\n const centre = this.fromOverview(event.x);\n const span = current[1] - current[0];\n this.setRange([centre - span / 2, centre + span / 2]);\n range = this.view() ?? this.fullDomain();\n }\n this.drag = { mode, x: event.x, range, moved: false, overview: true };\n this.active.set(null);\n return true;\n }\n if (this.view()) this.drag = { mode: 'pan', x: event.x, range: [current[0], current[1]], moved: false, overview: false };\n return false;\n }\n if (event.type === 'move' && this.drag) {\n if (!((event.buttons ?? 0) & 1)) {\n this.drag = null;\n return false;\n }\n const drag = this.drag;\n const dx = event.x - drag.x;\n if (Math.abs(dx) > DRAG_THRESHOLD) drag.moved = true;\n if (!drag.moved) return drag.overview;\n const [from, to] = drag.range;\n if (drag.overview && overview) {\n const [low, high] = this.fullDomain();\n const du = (dx / Math.max(1, overview.width)) * (high - low);\n if (drag.mode === 'start') this.setRange([Math.min(from + du, to - this.minSpan()), to]);\n else if (drag.mode === 'end') this.setRange([from, Math.max(to + du, from + this.minSpan())]);\n else this.setRange([from + du, to + du]);\n } else {\n const du = (-dx / Math.max(1, this.layout().plot.width)) * (to - from);\n this.setRange([from + du, to + du]);\n }\n this.active.set(null);\n return true;\n }\n if (event.type === 'up') {\n const drag = this.drag;\n this.drag = null;\n if (drag?.moved) this.suppressClick = true;\n return !!drag?.overview || !!drag?.moved;\n }\n if (event.type === 'click' && (this.suppressClick || inOverview)) {\n this.suppressClick = false;\n return true;\n }\n return false;\n }\n\n private slide(): void {\n const table = this.table();\n const positions = this.xPositions();\n const live = this.live();\n const layer = this.layer()?.nativeElement;\n const last = table.xs.length - 1;\n if (last < 0) {\n this.anchor = null;\n return;\n }\n const identity = (index: number) => (this.xType() === 'category' ? table.labels[index] : String(table.xs[index]));\n const anchor = this.anchor;\n this.anchor = { id: identity(last), px: positions[last] };\n if (!live || !anchor || !layer || this.view() || prefersReducedMotion(this.host.nativeElement.ownerDocument)) return;\n let at = -1;\n for (let index = last; index >= 0; index--) {\n if (identity(index) === anchor.id) {\n at = index;\n break;\n }\n }\n if (at < 0 || at === last) return;\n const dx = anchor.px - positions[at];\n if (Math.abs(dx) < 0.5) return;\n const duration = readTokenNumber(this.host.nativeElement, '--tx-chart-motion-update-duration', SLIDE_SECONDS) * 1000;\n layer.animate([{ transform: `translateX(${dx}px)` }, { transform: 'translateX(0)' }], { duration, easing: SLIDE_EASING });\n }\n\n private xPosition(value: TxChartX): number | null {\n const layout = this.layout();\n const { xs } = this.table();\n if (this.xType() === 'category') {\n const index = chartCategoryIndex(value, this.fullTable().labels) - this.offset();\n return index < 0 || index >= xs.length ? null : layout.categoryPosition(index, xs[index]);\n }\n const x = this.xType() === 'time' ? toTime(value) : typeof value === 'number' ? value : Number(value);\n return x === null || !Number.isFinite(x) ? null : layout.categoryPosition(0, x);\n }\n\n pointValue(seriesIndex: number, index: number): number | null {\n const raw = this.table().values[seriesIndex]?.[index] ?? null;\n if (raw === null) return null;\n return this.isStacked() ? (this.stackedValues()[seriesIndex][index]?.[1] ?? null) : raw;\n }\n\n onPointer(event: TxChartPointerEvent): void {\n if (event.type === 'leave') {\n this.drag = null;\n this.active.set(null);\n return;\n }\n if (this.zoomable() && this.handleDrag(event)) return;\n const plot = this.layout().plot;\n if (event.x < plot.left - 8 || event.x > plot.left + plot.width + 8 || event.y < plot.top - 8 || event.y > plot.top + plot.height + 8) {\n this.active.set(null);\n return;\n }\n const index = this.layout().categoryIndexAt(event.x, this.table().xs);\n if (index < 0) return;\n const series = this.nearestSeries(index, event.y);\n this.active.set({ index, series, pointerY: event.y, keyboard: false });\n if (event.type === 'click' && series >= 0) {\n this.pointClick.emit({ seriesIndex: series, dataPointIndex: index + this.offset(), value: this.table().values[series][index], category: this.labels()[index] ?? '' });\n }\n }\n\n onNavigate(event: KeyboardEvent): void {\n if (this.zoomable() && this.zoomKey(event)) return;\n const count = this.table().xs.length;\n const current = this.active();\n if (event.key === 'Escape') {\n this.active.set(null);\n return;\n }\n const visible = this.visibleIndexes();\n let index = current?.index ?? -1;\n let series = current?.series ?? visible[0] ?? -1;\n if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {\n series = cycleIndex(series, event.key === 'ArrowDown' ? 1 : -1, visible);\n index = Math.max(0, index);\n } else {\n index = stepIndex(event.key, index, count);\n }\n if (index < 0 || series < 0) return;\n this.active.set({ index, series, pointerY: null, keyboard: true });\n const value = this.table().values[series][index];\n this.frame()?.announce(\n formatMessage(this.translations().chartPoint, {\n series: this.list()[series].name,\n category: this.labels()[index] ?? '',\n value: value === null ? '—' : this.formatValue()(value, series, index),\n }),\n );\n }\n\n private zoomKey(event: KeyboardEvent): boolean {\n const plot = this.layout().plot;\n const active = this.active();\n const focus = active ? (this.xPositions()[active.index] ?? plot.left + plot.width / 2) : plot.left + plot.width / 2;\n if (event.key === '+' || event.key === '=') this.zoomAt(focus, KEY_ZOOM);\n else if (event.key === '-' || event.key === '_') this.zoomAt(focus, 1 / KEY_ZOOM);\n else if (event.key === '0') this.resetZoom();\n else if (event.shiftKey && (event.key === 'ArrowLeft' || event.key === 'ArrowRight') && this.view()) this.panBy((event.key === 'ArrowLeft' ? 1 : -1) * plot.width * KEY_PAN);\n else return false;\n this.active.set(null);\n return true;\n }\n\n onLegendToggle(key: string): void {\n const index = this.keys().indexOf(key);\n this.hidden.update((keys) => toggleKey(keys, key));\n this.seriesToggle.emit({ seriesIndex: index, name: this.list()[index]?.name ?? '', hidden: this.hidden().has(key) });\n }\n\n onLegendHover(key: string | null): void {\n const index = key === null ? -1 : this.keys().indexOf(key);\n this.focusedSeries.set(index >= 0 && !this.hidden().has(key ?? '') ? index : null);\n }\n\n private nearestSeries(index: number, y: number): number {\n const scale = this.layout().value;\n let best = this.visibleIndexes()[0] ?? -1;\n let distance = Infinity;\n for (const seriesIndex of this.visibleIndexes()) {\n const value = this.pointValue(seriesIndex, index);\n if (value === null) continue;\n const next = Math.abs(scale.map(value) - y);\n if (next < distance) {\n distance = next;\n best = seriesIndex;\n }\n }\n return best;\n }\n}\n","<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-line\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n [zoomable]=\"zoomable()\"\n [zoomedIn]=\"!!view()\"\n (zoomed)=\"zoomAt($event.x, $event.factor)\"\n (panned)=\"panBy($event.dx)\"\n (zoomReset)=\"resetZoom()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n @if (clipped()) {\n <svg:clipPath [attr.id]=\"uid + '-clip'\">\n <svg:rect [attr.x]=\"clip().x\" [attr.y]=\"clip().y\" [attr.width]=\"clip().width\" [attr.height]=\"clip().height\" />\n </svg:clipPath>\n }\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"back\" [part]=\"passThrough().annotation\" />\n @if (crosshair(); as line) {\n <svg:line\n class=\"tx-line-chart__crosshair\"\n [class]=\"passThrough().crosshair?.class\"\n [style]=\"passThrough().crosshair?.style\"\n [attr.x1]=\"line.x\"\n [attr.x2]=\"line.x\"\n [attr.y1]=\"line.y1\"\n [attr.y2]=\"line.y2\"\n />\n }\n <svg:g #layer class=\"tx-line-chart__layer\" [attr.clip-path]=\"clipped() ? 'url(#' + uid + '-clip)' : null\">\n @for (path of paths(); track path.key) {\n <svg:g\n class=\"tx-line-chart__series\"\n [class.tx-line-chart__series--focused]=\"focusedSeries() === path.index\"\n [class]=\"passThrough().series?.class\"\n [style]=\"passThrough().series?.style\"\n [style.--tx-line-chart-color]=\"path.color\"\n [attr.data-series]=\"path.index\"\n >\n @if (path.area) {\n <svg:linearGradient [attr.id]=\"path.gradient\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <svg:stop class=\"tx-line-chart__stop-from\" offset=\"0\" [style.stop-color]=\"path.color\" />\n <svg:stop class=\"tx-line-chart__stop-to\" offset=\"0.95\" [style.stop-color]=\"path.color\" />\n </svg:linearGradient>\n <svg:path\n class=\"tx-line-chart__area\"\n [class.tx-line-chart__area--stacked]=\"isStacked()\"\n [class]=\"passThrough().area?.class\"\n [style]=\"passThrough().area?.style\"\n [attr.d]=\"path.area\"\n [attr.fill]=\"'url(#' + path.gradient + ')'\"\n />\n }\n <svg:path\n class=\"tx-line-chart__line\"\n [class]=\"passThrough().line?.class\"\n [style]=\"passThrough().line?.style\"\n [attr.d]=\"path.line\"\n [style.stroke]=\"path.color\"\n />\n @for (marker of path.markers; track marker.index) {\n <svg:circle\n class=\"tx-line-chart__point\"\n [class]=\"passThrough().marker?.class\"\n [style]=\"passThrough().marker?.style\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [style.fill]=\"path.color\"\n />\n }\n </svg:g>\n }\n @for (point of activePoints(); track point.series) {\n <svg:circle class=\"tx-line-chart__halo\" [attr.cx]=\"point.x\" [attr.cy]=\"point.y\" [style.fill]=\"point.color\" />\n <svg:circle\n class=\"tx-line-chart__marker\"\n [class]=\"passThrough().marker?.class\"\n [attr.cx]=\"point.x\"\n [attr.cy]=\"point.y\"\n [style.fill]=\"point.color\"\n />\n }\n </svg:g>\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n @if (overview(); as strip) {\n <svg:g class=\"tx-line-chart__overview\" [class]=\"passThrough().brush?.class\" [style]=\"passThrough().brush?.style\" [style.--tx-line-chart-color]=\"strip.color\">\n <svg:rect class=\"tx-line-chart__overview-track\" [attr.x]=\"strip.left\" [attr.y]=\"strip.top\" [attr.width]=\"strip.width\" [attr.height]=\"strip.height\" />\n <svg:path class=\"tx-line-chart__overview-area\" [attr.d]=\"strip.area\" />\n <svg:path class=\"tx-line-chart__overview-line\" [attr.d]=\"strip.line\" />\n <svg:rect class=\"tx-line-chart__overview-mask\" [attr.x]=\"strip.left\" [attr.y]=\"strip.top\" [attr.width]=\"strip.x0 - strip.left\" [attr.height]=\"strip.height\" />\n <svg:rect class=\"tx-line-chart__overview-mask\" [attr.x]=\"strip.x1\" [attr.y]=\"strip.top\" [attr.width]=\"strip.left + strip.width - strip.x1\" [attr.height]=\"strip.height\" />\n <svg:rect class=\"tx-line-chart__overview-window\" [attr.x]=\"strip.x0\" [attr.y]=\"strip.top\" [attr.width]=\"strip.x1 - strip.x0\" [attr.height]=\"strip.height\" />\n <svg:rect class=\"tx-line-chart__overview-handle\" [attr.x]=\"strip.x0 - 3\" [attr.y]=\"strip.handleY\" width=\"6\" [attr.height]=\"strip.handleHeight\" />\n <svg:rect class=\"tx-line-chart__overview-handle\" [attr.x]=\"strip.x1 - 3\" [attr.y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emplateRef, ViewEncapsulation, afterNextRender, booleanAttribute, computed, contentChild, effect, inject, input, output, signal, viewChild } from "@angular/core";
|
|
3
|
-
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
3
|
+
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
4
|
import { TxLocaleService, formatMessage, injectTranslations } from "@tectra-ng/core/i18n";
|
|
5
5
|
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
6
|
-
import { TxIcon } from "@tectra-ng/icons";
|
|
6
|
+
import { TxIcon, provideTxIconDefaults, txIconAngleDoubleDown, txIconAngleDoubleUp, txIconCheck, txIconChevronDown, txIconChevronUp, txIconCircle, txIconExpand, txIconList, txIconSearch, txIconSearchMinus, txIconSearchPlus, txIconSlidersH, txIconWindowMaximize, txIconWindowMinimize } from "@tectra-ng/icons";
|
|
7
7
|
import { TxAvatar } from "@tectra-ng/ui/avatar";
|
|
8
8
|
import { TxButton } from "@tectra-ng/ui/button";
|
|
9
9
|
import { TxPill } from "@tectra-ng/ui/pill";
|
|
10
10
|
import { TxTooltip } from "@tectra-ng/ui/tooltip";
|
|
11
|
+
import { actionsMenuTokens, avatarTokens, chartTokens, toStyleObject } from "@tectra-ng/themes";
|
|
11
12
|
import { TxSkeleton } from "@tectra-ng/ui/skeleton";
|
|
12
|
-
import { toStyleObject } from "@tectra-ng/themes";
|
|
13
13
|
import { NgTemplateOutlet } from "@angular/common";
|
|
14
14
|
import { TxChartMenu } from "@tectra-ng/charts/core";
|
|
15
15
|
import { TxIconField, TxInputIcon } from "@tectra-ng/ui/icon-field";
|
|
@@ -219,7 +219,29 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
219
219
|
args: [{ selector: "ng-template[txOrgChartNode]" }]
|
|
220
220
|
}]
|
|
221
221
|
});
|
|
222
|
+
const ORG_CHART_ICON_DEFAULTS = {
|
|
223
|
+
"angle-double-down": txIconAngleDoubleDown,
|
|
224
|
+
"angle-double-up": txIconAngleDoubleUp,
|
|
225
|
+
check: txIconCheck,
|
|
226
|
+
"chevron-down": txIconChevronDown,
|
|
227
|
+
"chevron-up": txIconChevronUp,
|
|
228
|
+
circle: txIconCircle,
|
|
229
|
+
expand: txIconExpand,
|
|
230
|
+
list: txIconList,
|
|
231
|
+
search: txIconSearch,
|
|
232
|
+
"search-minus": txIconSearchMinus,
|
|
233
|
+
"search-plus": txIconSearchPlus,
|
|
234
|
+
"sliders-h": txIconSlidersH,
|
|
235
|
+
"window-maximize": txIconWindowMaximize,
|
|
236
|
+
"window-minimize": txIconWindowMinimize
|
|
237
|
+
};
|
|
238
|
+
const ORG_CHART_THEME = {
|
|
239
|
+
actionsMenu: actionsMenuTokens,
|
|
240
|
+
avatar: avatarTokens,
|
|
241
|
+
chart: chartTokens
|
|
242
|
+
};
|
|
222
243
|
var TxOrgChartCard = class TxOrgChartCard {
|
|
244
|
+
orgChartTheme = injectTokens(ORG_CHART_THEME);
|
|
223
245
|
translations = injectTranslations();
|
|
224
246
|
node = input.required(...ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []);
|
|
225
247
|
highlighted = input(false, {
|
|
@@ -416,6 +438,7 @@ var TxOrgChartCard = class TxOrgChartCard {
|
|
|
416
438
|
exportAs: ["txTooltip"]
|
|
417
439
|
}
|
|
418
440
|
],
|
|
441
|
+
viewProviders: [provideTxIconDefaults(ORG_CHART_ICON_DEFAULTS)],
|
|
419
442
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
420
443
|
});
|
|
421
444
|
};
|
|
@@ -440,6 +463,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
440
463
|
class: "tx-org-chart-card",
|
|
441
464
|
"[attr.data-styled]": "!isUnstyled() || null"
|
|
442
465
|
},
|
|
466
|
+
viewProviders: [provideTxIconDefaults(ORG_CHART_ICON_DEFAULTS)],
|
|
443
467
|
template: "@let current = node();\n<div\n class=\"tx-org-chart-card__box\"\n [class.tx-org-chart-card__box--match]=\"highlighted()\"\n [class.tx-org-chart-card__box--path]=\"inPath()\"\n [class.tx-org-chart-card__box--open]=\"current.collapsible && current.expanded\"\n [attr.title]=\"current.title\"\n>\n @if (current.avatar; as avatar) {\n <tx-avatar class=\"tx-org-chart-card__avatar\" [image]=\"avatar.src\" [name]=\"avatar.name ?? current.title\" shape=\"circle\" />\n } @else if (current.icon) {\n <span class=\"tx-org-chart-card__icon\" aria-hidden=\"true\"><tx-icon [name]=\"current.icon\" /></span>\n }\n <div class=\"tx-org-chart-card__heading\">\n <span class=\"tx-org-chart-card__title\">{{ current.title }}</span>\n @if (current.subtitle) {\n <span class=\"tx-org-chart-card__subtitle\">{{ current.subtitle }}</span>\n }\n @if (current.pills?.length) {\n <div class=\"tx-org-chart-card__pills\">\n @for (pill of current.pills; track $index) {\n <tx-pill [tone]=\"pill.tone ?? 'neutral'\" size=\"small\" [icon]=\"pill.icon\">{{ pill.label }}</tx-pill>\n }\n </div>\n }\n </div>\n @if (current.collapsible) {\n <button\n txButton\n type=\"button\"\n class=\"tx-org-chart-card__toggle\"\n size=\"small\"\n severity=\"secondary\"\n text\n [icon]=\"current.expanded ? 'chevron-up' : 'chevron-down'\"\n [loading]=\"!!current.loading\"\n [txTooltip]=\"toggleLabel()\"\n [attr.aria-label]=\"toggleLabel()\"\n [attr.aria-expanded]=\"!!current.expanded\"\n (click)=\"onToggle($event)\"\n ></button>\n }\n</div>\n",
|
|
444
468
|
styles: [":host{display:block}.tx-org-chart-card__box{display:flex;align-items:center}.tx-org-chart-card__heading{display:flex;flex:1;flex-direction:column;min-width:0}.tx-org-chart-card__title,.tx-org-chart-card__subtitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-org-chart-card__pills{display:flex;flex-wrap:wrap;align-items:center}.tx-org-chart-card__icon{display:flex;flex-shrink:0;align-items:center;justify-content:center}.tx-org-chart-card__avatar{flex-shrink:0}:host([data-styled]) .tx-org-chart-card__box{gap:var(--tx-chart-org-chart-card-gap);box-sizing:border-box;width:var(--tx-chart-org-chart-card-width);padding:var(--tx-chart-org-chart-card-padding-y) var(--tx-chart-org-chart-card-padding-x);border-radius:var(--tx-chart-org-chart-card-radius);background:var(--tx-chart-org-chart-card-background);box-shadow:0 0 0 1px var(--tx-chart-org-chart-card-border-color);transition:box-shadow var(--tx-chart-motion-hover-duration) ease,background-color var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-org-chart-card__box--open{box-shadow:0 0 0 1px var(--tx-chart-org-chart-card-open-border-color)}:host([data-styled]) .tx-org-chart-card__box--match{background:var(--tx-chart-org-chart-card-match-background);box-shadow:0 0 0 2px var(--tx-chart-org-chart-card-match-border-color)}:host([data-styled]) .tx-org-chart-card__box--path{box-shadow:0 0 0 var(--tx-chart-org-chart-path-width) var(--tx-chart-org-chart-path-color),0 6px 18px -8px color-mix(in srgb,var(--tx-chart-org-chart-path-color) var(--tx-chart-org-chart-card-path-glow),transparent)}:host([data-styled]) .tx-org-chart-card__icon{width:var(--tx-chart-org-chart-icon-size);height:var(--tx-chart-org-chart-icon-size);border-radius:var(--tx-chart-org-chart-icon-radius);color:var(--tx-chart-org-chart-icon-color);font-size:var(--tx-chart-org-chart-icon-font-size);background:var(--tx-chart-org-chart-icon-background)}:host([data-styled]) .tx-org-chart-card__avatar{--tx-avatar-size: var(--tx-chart-org-chart-avatar-size)}:host([data-styled]) .tx-org-chart-card__heading{gap:var(--tx-chart-org-chart-heading-gap)}:host([data-styled]) .tx-org-chart-card__title{color:var(--tx-chart-org-chart-title-color);font-size:var(--tx-chart-org-chart-title-font-size);font-weight:var(--tx-chart-org-chart-title-font-weight)}:host([data-styled]) .tx-org-chart-card__subtitle{color:var(--tx-chart-org-chart-subtitle-color);font-size:var(--tx-chart-org-chart-subtitle-font-size)}:host([data-styled]) .tx-org-chart-card__pills{gap:var(--tx-chart-org-chart-pills-gap);margin-top:var(--tx-chart-org-chart-pills-gap)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-org-chart-card__box{transition:none}}\n"]
|
|
445
469
|
}]
|
|
@@ -500,6 +524,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
500
524
|
}
|
|
501
525
|
});
|
|
502
526
|
var TxOrgChartNodeSkeleton = class TxOrgChartNodeSkeleton {
|
|
527
|
+
orgChartTheme = injectTokens(ORG_CHART_THEME);
|
|
503
528
|
unstyled = input(void 0, {
|
|
504
529
|
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
505
530
|
transform: optionalBoolean
|
|
@@ -560,6 +585,7 @@ var TxOrgChartNodeSkeleton = class TxOrgChartNodeSkeleton {
|
|
|
560
585
|
"unstyled"
|
|
561
586
|
]
|
|
562
587
|
}],
|
|
588
|
+
viewProviders: [provideTxIconDefaults(ORG_CHART_ICON_DEFAULTS)],
|
|
563
589
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
564
590
|
});
|
|
565
591
|
};
|
|
@@ -587,6 +613,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
587
613
|
class: "tx-org-chart-node-skeleton",
|
|
588
614
|
"[attr.data-styled]": "!isUnstyled() || null"
|
|
589
615
|
},
|
|
616
|
+
viewProviders: [provideTxIconDefaults(ORG_CHART_ICON_DEFAULTS)],
|
|
590
617
|
styles: [".tx-org-chart-node-skeleton__box{display:flex;align-items:center}.tx-org-chart-node-skeleton__lines{display:flex;flex:1;flex-direction:column}:host([data-styled]) .tx-org-chart-node-skeleton__box{gap:var(--tx-chart-org-chart-card-gap);box-sizing:border-box;width:var(--tx-chart-org-chart-card-width);padding:var(--tx-chart-org-chart-card-padding-y);border-radius:var(--tx-chart-org-chart-card-radius);background:var(--tx-chart-org-chart-card-background);box-shadow:0 0 0 1px var(--tx-chart-org-chart-card-border-color)}:host([data-styled]) .tx-org-chart-node-skeleton__lines{gap:var(--tx-chart-org-chart-toolbar-gap)}\n"]
|
|
591
618
|
}]
|
|
592
619
|
}],
|
|
@@ -600,6 +627,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
600
627
|
}] }
|
|
601
628
|
});
|
|
602
629
|
var TxOrgChartMinimap = class TxOrgChartMinimap {
|
|
630
|
+
orgChartTheme = injectTokens(ORG_CHART_THEME);
|
|
603
631
|
layout = input.required(...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
|
|
604
632
|
viewport = input.required(...ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []);
|
|
605
633
|
view = input.required(...ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []);
|
|
@@ -733,6 +761,7 @@ var TxOrgChartMinimap = class TxOrgChartMinimap {
|
|
|
733
761
|
}
|
|
734
762
|
`,
|
|
735
763
|
isInline: true,
|
|
764
|
+
viewProviders: [provideTxIconDefaults(ORG_CHART_ICON_DEFAULTS)],
|
|
736
765
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
737
766
|
});
|
|
738
767
|
};
|
|
@@ -784,7 +813,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
784
813
|
class: "tx-org-chart-minimap",
|
|
785
814
|
"data-drag-ignore": "",
|
|
786
815
|
"aria-hidden": "true"
|
|
787
|
-
}
|
|
816
|
+
},
|
|
817
|
+
viewProviders: [provideTxIconDefaults(ORG_CHART_ICON_DEFAULTS)]
|
|
788
818
|
}]
|
|
789
819
|
}],
|
|
790
820
|
propDecorators: {
|
|
@@ -819,6 +849,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
819
849
|
}
|
|
820
850
|
});
|
|
821
851
|
var TxOrgChartNodeView = class TxOrgChartNodeView {
|
|
852
|
+
orgChartTheme = injectTokens(ORG_CHART_THEME);
|
|
822
853
|
node = input.required(...ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []);
|
|
823
854
|
state = input.required(...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
824
855
|
template = input(null, ...ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []);
|
|
@@ -971,6 +1002,7 @@ var TxOrgChartNodeView = class TxOrgChartNodeView {
|
|
|
971
1002
|
inputs: ["unstyled"]
|
|
972
1003
|
}
|
|
973
1004
|
],
|
|
1005
|
+
viewProviders: [provideTxIconDefaults(ORG_CHART_ICON_DEFAULTS)],
|
|
974
1006
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
975
1007
|
});
|
|
976
1008
|
};
|
|
@@ -995,6 +1027,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
995
1027
|
"[class.tx-org-chart-node--root]": "root()",
|
|
996
1028
|
role: "listitem"
|
|
997
1029
|
},
|
|
1030
|
+
viewProviders: [provideTxIconDefaults(ORG_CHART_ICON_DEFAULTS)],
|
|
998
1031
|
template: "@let current = node();\n@let tree = state();\n<div\n class=\"tx-org-chart-node__card\"\n [attr.data-org-id]=\"current.id\"\n [attr.data-org-tone]=\"current.minimapTone ?? 'default'\"\n tabindex=\"0\"\n (mouseenter)=\"onHover(true)\"\n (mouseleave)=\"onHover(false)\"\n (focusin)=\"onHover(true)\"\n (focusout)=\"onHover(false)\"\n (click)=\"nodeClick.emit(current)\"\n (keydown.enter)=\"onKey($event)\"\n (keydown.space)=\"onKey($event)\"\n>\n @if (template(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom\" [ngTemplateOutletContext]=\"context()\" />\n } @else {\n <tx-org-chart-card\n [node]=\"current\"\n [highlighted]=\"tree.highlightIds.has(current.id)\"\n [inPath]=\"tree.pathIds.has(current.id)\"\n [expandLabel]=\"tree.labels.expand\"\n [collapseLabel]=\"tree.labels.collapse\"\n [unstyled]=\"tree.unstyled\"\n (toggleNode)=\"toggleNode.emit(current.id)\"\n />\n }\n</div>\n@switch (children().kind) {\n @case ('nodes') {\n <div class=\"tx-org-chart-node__children\" role=\"list\">\n @for (child of children().nodes; track child.id) {\n <tx-org-chart-node\n [node]=\"child\"\n [state]=\"tree\"\n [template]=\"template()\"\n [path]=\"childPath()\"\n (toggleNode)=\"toggleNode.emit($event)\"\n (hoverPath)=\"hoverPath.emit($event)\"\n (nodeClick)=\"nodeClick.emit($event)\"\n />\n }\n </div>\n }\n @case ('loading') {\n <div class=\"tx-org-chart-node__children\">\n <tx-org-chart-node-skeleton [unstyled]=\"tree.unstyled\" />\n </div>\n }\n @case ('empty') {\n <div class=\"tx-org-chart-node__children\">\n <span class=\"tx-org-chart-node__empty\">{{ children().emptyText }}</span>\n </div>\n }\n}\n",
|
|
999
1032
|
styles: [":host{position:relative;display:flex;flex-direction:column;align-items:center}.tx-org-chart-node__card{position:relative;z-index:1;display:flex;justify-content:center;outline:none}.tx-org-chart-node__children{position:relative;display:flex;justify-content:center}:host([data-styled]){padding:var(--tx-chart-org-chart-connector-height) var(--tx-chart-org-chart-node-padding-x) 0}:host([data-styled]):before,:host([data-styled]):after{content:\"\";position:absolute;top:0;box-sizing:border-box;width:50%;height:var(--tx-chart-org-chart-connector-height);border-top:1px solid var(--tx-chart-org-chart-connector-color)}:host([data-styled]):before{right:50%}:host([data-styled]):after{left:50%;border-left:1px solid var(--tx-chart-org-chart-connector-color)}:host([data-styled]) .tx-org-chart-node__children{padding-top:var(--tx-chart-org-chart-connector-height)}:host([data-styled]) .tx-org-chart-node__children:before{content:\"\";position:absolute;top:0;left:50%;height:var(--tx-chart-org-chart-connector-height);border-left:1px solid var(--tx-chart-org-chart-connector-color)}:host([data-styled]) .tx-org-chart-node__empty{padding:var(--tx-chart-org-chart-empty-padding);border:1px dashed var(--tx-chart-org-chart-connector-color);border-radius:var(--tx-chart-org-chart-connector-radius);color:var(--tx-chart-org-chart-empty-color);font-size:var(--tx-chart-org-chart-empty-font-size);background:var(--tx-chart-org-chart-empty-background)}:host([data-styled]:only-child){padding-top:0}:host([data-styled]:only-child):before,:host([data-styled]:only-child):after{display:none}:host([data-styled]:first-child):before,:host([data-styled]:last-child):after{border:0}:host([data-styled]:last-child):before{border-right:1px solid var(--tx-chart-org-chart-connector-color);border-top-right-radius:var(--tx-chart-org-chart-connector-radius)}:host([data-styled]:first-child):after{border-top-left-radius:var(--tx-chart-org-chart-connector-radius)}:host([data-styled].tx-org-chart-node--root){padding:0}:host([data-styled].tx-org-chart-node--root):before,:host([data-styled].tx-org-chart-node--root):after{display:none}:host([data-styled])>.tx-org-chart-node__card:focus-visible{border-radius:var(--tx-chart-org-chart-card-radius);box-shadow:0 0 0 var(--tx-chart-focus-ring-width) var(--tx-chart-focus-ring-color)}\n"]
|
|
1000
1033
|
}]
|
|
@@ -1057,6 +1090,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1057
1090
|
const SEARCH_DELAY = 400;
|
|
1058
1091
|
const NARROW_REM = 30;
|
|
1059
1092
|
var TxOrgChartToolbar = class TxOrgChartToolbar {
|
|
1093
|
+
orgChartTheme = injectTokens(ORG_CHART_THEME);
|
|
1060
1094
|
state = input.required(...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
1061
1095
|
labels = input.required(...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
|
|
1062
1096
|
intl = input("en-US", ...ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []);
|
|
@@ -1352,6 +1386,7 @@ var TxOrgChartToolbar = class TxOrgChartToolbar {
|
|
|
1352
1386
|
exportAs: ["txTooltip"]
|
|
1353
1387
|
}
|
|
1354
1388
|
],
|
|
1389
|
+
viewProviders: [provideTxIconDefaults(ORG_CHART_ICON_DEFAULTS)],
|
|
1355
1390
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1356
1391
|
});
|
|
1357
1392
|
};
|
|
@@ -1380,6 +1415,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1380
1415
|
class: "tx-org-chart-toolbar",
|
|
1381
1416
|
"data-drag-ignore": ""
|
|
1382
1417
|
},
|
|
1418
|
+
viewProviders: [provideTxIconDefaults(ORG_CHART_ICON_DEFAULTS)],
|
|
1383
1419
|
template: "@let current = state();\n@let text = labels();\n<div class=\"tx-org-chart__actions\">\n <tx-icon-field class=\"tx-org-chart__search\">\n <tx-input-icon icon=\"search\" />\n <input txInput type=\"search\" [value]=\"query()\" [placeholder]=\"text.search\" [attr.aria-label]=\"text.search\" (input)=\"onInput($event)\" />\n </tx-icon-field>\n @if (current.hasQuery) {\n <tx-pill [tone]=\"current.matchCount ? 'primary' : 'warn'\" [icon]=\"current.matchCount ? 'check' : 'search'\" role=\"status\">\n {{ current.matchCount ? matches(current.matchCount) : text.noMatches }}\n </tx-pill>\n }\n <div class=\"tx-org-chart__group tx-org-chart__zoom-group\">\n <button\n txButton\n type=\"button\"\n icon=\"search-minus\"\n severity=\"secondary\"\n outlined\n [txTooltip]=\"text.zoomOut\"\n [attr.aria-label]=\"text.zoomOut\"\n [disabled]=\"!current.canZoomOut\"\n (click)=\"zoomOut.emit()\"\n ></button>\n <button\n txButton\n type=\"button\"\n class=\"tx-org-chart__zoom\"\n [label]=\"current.zoomPercent + '%'\"\n severity=\"secondary\"\n outlined\n [txTooltip]=\"text.resetZoom\"\n [attr.aria-label]=\"text.resetZoom + ', ' + current.zoomPercent + '%'\"\n (click)=\"resetZoom.emit()\"\n ></button>\n <button\n txButton\n type=\"button\"\n icon=\"search-plus\"\n severity=\"secondary\"\n outlined\n [txTooltip]=\"text.zoomIn\"\n [attr.aria-label]=\"text.zoomIn\"\n [disabled]=\"!current.canZoomIn\"\n (click)=\"zoomIn.emit()\"\n ></button>\n <button\n txButton\n type=\"button\"\n icon=\"expand\"\n severity=\"secondary\"\n outlined\n [txTooltip]=\"text.fit\"\n [attr.aria-label]=\"text.fit\"\n [disabled]=\"!current.hasContent\"\n (click)=\"fit.emit()\"\n ></button>\n </div>\n <div class=\"tx-org-chart__group tx-org-chart__expand-group\">\n <button\n txButton\n type=\"button\"\n icon=\"angle-double-down\"\n [label]=\"text.expandAll\"\n [attr.aria-label]=\"text.expandAll\"\n severity=\"secondary\"\n outlined\n [disabled]=\"!current.hasContent || current.allExpanded\"\n (click)=\"expandAll.emit()\"\n ></button>\n <button\n txButton\n type=\"button\"\n icon=\"angle-double-up\"\n [label]=\"text.collapseAll\"\n [attr.aria-label]=\"text.collapseAll\"\n severity=\"secondary\"\n outlined\n [disabled]=\"current.noneExpanded\"\n (click)=\"collapseAll.emit()\"\n ></button>\n </div>\n <button\n txButton\n type=\"button\"\n class=\"tx-org-chart__fullscreen\"\n [icon]=\"current.isFullscreen ? 'window-minimize' : 'window-maximize'\"\n [label]=\"current.isFullscreen ? text.exitFullscreen : text.fullscreen\"\n [attr.aria-label]=\"current.isFullscreen ? text.exitFullscreen : text.fullscreen\"\n [severity]=\"current.isFullscreen ? 'primary' : 'secondary'\"\n [outlined]=\"!current.isFullscreen\"\n (click)=\"fullscreen.emit()\"\n ></button>\n <button\n txButton\n type=\"button\"\n class=\"tx-org-chart__more\"\n icon=\"sliders-h\"\n severity=\"secondary\"\n outlined\n aria-haspopup=\"dialog\"\n [txTooltip]=\"moreLabel()\"\n [attr.aria-label]=\"moreLabel()\"\n [txPopoverTrigger]=\"more\"\n (pointerdown)=\"measure()\"\n (keydown.enter)=\"measure()\"\n (keydown.space)=\"measure()\"\n ></button>\n <tx-popover #more placement=\"bottom-end\" [dt]=\"popoverTokens\" [ariaLabel]=\"moreLabel()\" [unstyled]=\"unstyled()\">\n @if (narrow()) {\n <div class=\"tx-org-chart__menu-zoom\" [attr.data-styled]=\"!unstyled() || null\">\n <button\n txButton\n type=\"button\"\n icon=\"search-minus\"\n severity=\"secondary\"\n outlined\n [attr.aria-label]=\"text.zoomOut\"\n [disabled]=\"!current.canZoomOut\"\n (click)=\"zoomOut.emit()\"\n ></button>\n <button\n txButton\n type=\"button\"\n class=\"tx-org-chart__menu-percent\"\n [label]=\"current.zoomPercent + '%'\"\n severity=\"secondary\"\n outlined\n [attr.aria-label]=\"text.resetZoom + ', ' + current.zoomPercent + '%'\"\n (click)=\"resetZoom.emit()\"\n ></button>\n <button\n txButton\n type=\"button\"\n icon=\"search-plus\"\n severity=\"secondary\"\n outlined\n [attr.aria-label]=\"text.zoomIn\"\n [disabled]=\"!current.canZoomIn\"\n (click)=\"zoomIn.emit()\"\n ></button>\n <button\n txButton\n type=\"button\"\n icon=\"expand\"\n severity=\"secondary\"\n outlined\n [attr.aria-label]=\"text.fit\"\n [disabled]=\"!current.hasContent\"\n (click)=\"fit.emit()\"\n ></button>\n </div>\n }\n <tx-chart-menu [items]=\"menuItems()\" [ariaLabel]=\"moreLabel()\" [unstyled]=\"unstyled()\" (selected)=\"more.hide(); onMenu($event)\" />\n </tx-popover>\n</div>\n"
|
|
1384
1420
|
}]
|
|
1385
1421
|
}],
|
|
@@ -1477,6 +1513,7 @@ const DRAG_THRESHOLD = 4;
|
|
|
1477
1513
|
const KEY_PAN = 48;
|
|
1478
1514
|
const DEFAULT_HEIGHT = "calc(100vh - 15rem)";
|
|
1479
1515
|
var TxOrgChart = class TxOrgChart {
|
|
1516
|
+
orgChartTheme = injectTokens(ORG_CHART_THEME);
|
|
1480
1517
|
document = inject(DOCUMENT);
|
|
1481
1518
|
injector = inject(Injector);
|
|
1482
1519
|
locale = inject(TxLocaleService);
|
|
@@ -2163,6 +2200,7 @@ var TxOrgChart = class TxOrgChart {
|
|
|
2163
2200
|
outputs: ["navigate"]
|
|
2164
2201
|
}
|
|
2165
2202
|
],
|
|
2203
|
+
viewProviders: [provideTxIconDefaults(ORG_CHART_ICON_DEFAULTS)],
|
|
2166
2204
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2167
2205
|
encapsulation: i0.ViewEncapsulation.None
|
|
2168
2206
|
});
|
|
@@ -2192,6 +2230,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2192
2230
|
"(document:webkitfullscreenchange)": "onFullscreenChange()",
|
|
2193
2231
|
"(document:keydown.escape)": "exitOverlayFullscreen()"
|
|
2194
2232
|
},
|
|
2233
|
+
viewProviders: [provideTxIconDefaults(ORG_CHART_ICON_DEFAULTS)],
|
|
2195
2234
|
template: "@let label = text();\n@let parts = passThrough();\n<div class=\"tx-org-chart__bar\" [class]=\"parts.bar?.class\" [style]=\"parts.bar?.style\">\n <div class=\"tx-org-chart__heading\">\n <ng-content select=\"[txOrgChartHeader]\" />\n </div>\n @if (toolbar()) {\n <tx-org-chart-toolbar\n [class]=\"parts.toolbar?.class\"\n [style]=\"parts.toolbar?.style\"\n [state]=\"toolbarState()\"\n [labels]=\"label\"\n [intl]=\"intl()\"\n [query]=\"query()\"\n [moreLabel]=\"label.more\"\n [unstyled]=\"isUnstyled()\"\n (searchChange)=\"onSearch($event)\"\n (zoomIn)=\"zoomIn()\"\n (zoomOut)=\"zoomOut()\"\n (resetZoom)=\"resetZoom()\"\n (fit)=\"fitToScreen()\"\n (expandAll)=\"expandAll.emit()\"\n (collapseAll)=\"collapseAll.emit()\"\n (fullscreen)=\"toggleFullscreen()\"\n />\n }\n</div>\n\n@if (fullscreen() && !native() && !topLayer()) {\n <div class=\"tx-org-chart__backdrop\" aria-hidden=\"true\"></div>\n}\n<div\n #canvas\n class=\"tx-org-chart__canvas\"\n [class]=\"parts.canvas?.class\"\n [style]=\"parts.canvas?.style\"\n [style.height]=\"fullscreen() ? null : height()\"\n [class.tx-org-chart__canvas--busy]=\"busy()\"\n [class.tx-org-chart__canvas--fullscreen]=\"fullscreen()\"\n [class.tx-org-chart__canvas--native]=\"native()\"\n [class.tx-org-chart__canvas--top-layer]=\"topLayer()\"\n [class.tx-org-chart__canvas--dragging]=\"dragging()\"\n [class.tx-org-chart__canvas--settled]=\"settled()\"\n tabindex=\"0\"\n role=\"region\"\n [attr.aria-label]=\"label.title\"\n [attr.aria-busy]=\"busy() || null\"\n (wheel)=\"onWheel($event)\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (keydown)=\"onKeydown($event)\"\n>\n @if (fullscreen()) {\n <div class=\"tx-org-chart__floating\" data-drag-ignore>\n <span class=\"tx-org-chart__floating-title\">\n {{ label.title }}\n <span class=\"tx-org-chart__hint\">{{ label.hint }}</span>\n </span>\n @if (toolbar()) {\n <tx-org-chart-toolbar\n [state]=\"toolbarState()\"\n [labels]=\"label\"\n [intl]=\"intl()\"\n [query]=\"query()\"\n [moreLabel]=\"label.more\"\n [unstyled]=\"isUnstyled()\"\n (searchChange)=\"onSearch($event)\"\n (zoomIn)=\"zoomIn()\"\n (zoomOut)=\"zoomOut()\"\n (resetZoom)=\"resetZoom()\"\n (fit)=\"fitToScreen()\"\n (expandAll)=\"expandAll.emit()\"\n (collapseAll)=\"collapseAll.emit()\"\n (fullscreen)=\"toggleFullscreen()\"\n />\n }\n </div>\n }\n <div #stage class=\"tx-org-chart__stage\" [class]=\"parts.stage?.class\" [style]=\"parts.stage?.style\" [style.transform]=\"stageTransform()\">\n @if (pathLine()) {\n <svg class=\"tx-org-chart__path\" aria-hidden=\"true\" [attr.width]=\"minimapLayout().width\" [attr.height]=\"minimapLayout().height\">\n <path [attr.d]=\"pathLine()\"></path>\n </svg>\n }\n <div class=\"tx-org-chart__forest\" role=\"list\">\n @for (root of list(); track root.id) {\n <tx-org-chart-node\n [node]=\"root\"\n [state]=\"treeState()\"\n [template]=\"nodeTemplate()?.template ?? null\"\n root\n (toggleNode)=\"nodeToggle.emit($event)\"\n (hoverPath)=\"highlightPath($event)\"\n (nodeClick)=\"onNodeClick($event)\"\n />\n }\n </div>\n </div>\n @if (minimap()) {\n <tx-org-chart-minimap\n [class]=\"parts.minimap?.class\"\n [style]=\"parts.minimap?.style\"\n [layout]=\"minimapLayout()\"\n [viewport]=\"viewport()\"\n [view]=\"view()\"\n (navigate)=\"centerOn($event)\"\n />\n }\n</div>\n@if (!fullscreen() && label.hint) {\n <span class=\"tx-org-chart__hint\" [class]=\"parts.hint?.class\" [style]=\"parts.hint?.style\">{{ label.hint }}</span>\n}\n",
|
|
2196
2235
|
styles: [".tx-org-chart{display:flex;flex-direction:column;min-width:0}.tx-org-chart__bar{container:tx-org-chart-bar/inline-size;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between}.tx-org-chart__heading{min-width:0}.tx-org-chart__heading:empty{display:none}.tx-org-chart__canvas{position:relative;overflow:hidden;touch-action:none;outline:none;user-select:none;-webkit-user-select:none}.tx-org-chart__stage{position:absolute;top:0;left:0;display:flex;width:max-content;transform-origin:0 0;will-change:transform}.tx-org-chart__forest{position:relative;display:flex;align-items:flex-start}.tx-org-chart__path{position:absolute;top:0;left:0;z-index:1;overflow:visible;pointer-events:none}.tx-org-chart__path path{fill:none;stroke-linejoin:round;stroke-linecap:butt}.tx-org-chart__floating{container:tx-org-chart-floating/inline-size;position:absolute;inset:0 0 auto;z-index:10;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;cursor:default}.tx-org-chart__floating-title{display:flex;flex-direction:column}.tx-org-chart__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end}.tx-org-chart__search{width:100%}.tx-org-chart__group{display:flex;align-items:center}.tx-org-chart-toolbar{flex:1 1 auto;min-width:0}.tx-org-chart__more{display:none!important}.tx-org-chart__menu-zoom{display:flex;align-items:center}@container tx-org-chart-bar (width < 56rem){.tx-org-chart__expand-group,.tx-org-chart__fullscreen{display:none!important}.tx-org-chart__more{display:inline-flex!important}.tx-org-chart__search{flex:1 1 12rem;width:auto}}@container tx-org-chart-bar (width < 30rem){.tx-org-chart__zoom-group{display:none!important}}@container tx-org-chart-floating (width < 40rem){.tx-org-chart__floating-title .tx-org-chart__hint{display:none}.tx-org-chart__search{flex:1 1 100%;width:auto}.tx-org-chart__actions{justify-content:flex-start}.tx-org-chart__expand-group .tx-button__label,.tx-org-chart__fullscreen .tx-button__label{position:absolute;overflow:hidden;width:1px;height:1px;clip-path:inset(50%);white-space:nowrap}}.tx-org-chart-minimap{position:absolute;z-index:10;display:block;overflow:hidden;cursor:default}.tx-org-chart__map{position:relative;overflow:hidden;cursor:pointer;touch-action:none}.tx-org-chart__map-item,.tx-org-chart__map-viewport{position:absolute;display:block}.tx-org-chart__map-viewport{box-sizing:border-box;pointer-events:none}.tx-org-chart[data-styled],.tx-org-chart[data-styled] .tx-org-chart__bar{gap:var(--tx-chart-org-chart-gap)}.tx-org-chart[data-styled] .tx-org-chart__canvas{min-height:var(--tx-chart-org-chart-canvas-min-height);border-radius:var(--tx-chart-org-chart-canvas-radius);background-color:var(--tx-chart-org-chart-canvas-background);background-image:radial-gradient(var(--tx-chart-org-chart-canvas-dot-color) 1px,transparent 1px);background-size:var(--tx-chart-org-chart-canvas-dot-gap) var(--tx-chart-org-chart-canvas-dot-gap);box-shadow:0 0 0 1px var(--tx-chart-org-chart-canvas-border-color);cursor:grab;transition:opacity var(--tx-chart-org-chart-stage-duration) ease}.tx-org-chart[data-styled] .tx-org-chart__canvas:focus-visible{box-shadow:0 0 0 1px var(--tx-chart-org-chart-canvas-border-color),0 0 0 calc(var(--tx-chart-focus-ring-width) + 1px) var(--tx-chart-focus-ring-color)}.tx-org-chart[data-styled] .tx-org-chart__canvas--dragging{cursor:grabbing}.tx-org-chart[data-styled] .tx-org-chart__canvas--busy{opacity:var(--tx-chart-org-chart-busy-opacity);pointer-events:none}.tx-org-chart[data-styled] .tx-org-chart__canvas--fullscreen{position:fixed;inset:var(--tx-chart-org-chart-fullscreen-inset);z-index:var(--tx-chart-org-chart-fullscreen-layer);height:auto;min-height:0;border-radius:var(--tx-chart-org-chart-fullscreen-radius);box-shadow:var(--tx-chart-org-chart-fullscreen-shadow)}.tx-org-chart[data-styled] .tx-org-chart__canvas--top-layer{margin:0;padding:0;width:auto;max-width:none;max-height:none;border:0;color:inherit;overflow:hidden}.tx-org-chart[data-styled] .tx-org-chart__canvas--top-layer::backdrop{background:var(--tx-chart-org-chart-backdrop);-webkit-backdrop-filter:blur(var(--tx-chart-org-chart-backdrop-blur));backdrop-filter:blur(var(--tx-chart-org-chart-backdrop-blur))}.tx-org-chart[data-styled] .tx-org-chart__canvas--native{inset:0;width:100%;height:100%;border-radius:0;box-shadow:none}.tx-org-chart[data-styled] .tx-org-chart__backdrop{position:fixed;inset:0;z-index:calc(var(--tx-chart-org-chart-fullscreen-layer) - 1);background:var(--tx-chart-org-chart-backdrop);-webkit-backdrop-filter:blur(var(--tx-chart-org-chart-backdrop-blur));backdrop-filter:blur(var(--tx-chart-org-chart-backdrop-blur))}.tx-org-chart[data-styled] .tx-org-chart__floating{gap:var(--tx-chart-org-chart-toolbar-gap);padding:var(--tx-chart-org-chart-floating-padding);border-bottom:1px solid var(--tx-chart-org-chart-canvas-border-color);background:var(--tx-chart-org-chart-floating-background);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.tx-org-chart[data-styled] .tx-org-chart__floating-title{color:var(--tx-chart-org-chart-title-color);font-size:var(--tx-chart-org-chart-floating-title-font-size);font-weight:var(--tx-chart-org-chart-floating-title-font-weight)}.tx-org-chart[data-styled] .tx-org-chart__hint{color:var(--tx-chart-org-chart-hint-color);font-size:var(--tx-chart-org-chart-hint-font-size);font-weight:var(--tx-font-weight-regular)}.tx-org-chart[data-styled] .tx-org-chart__stage{padding:var(--tx-chart-org-chart-stage-padding)}.tx-org-chart[data-styled] .tx-org-chart__canvas--settled:not(.tx-org-chart__canvas--dragging) .tx-org-chart__stage{transition:transform var(--tx-chart-org-chart-stage-duration) ease-out}.tx-org-chart[data-styled] .tx-org-chart__forest{gap:var(--tx-chart-org-chart-forest-gap)}.tx-org-chart[data-styled] .tx-org-chart__path path{stroke:var(--tx-chart-org-chart-path-color);stroke-width:var(--tx-chart-org-chart-path-width)}.tx-org-chart[data-styled] .tx-org-chart__actions{gap:var(--tx-chart-org-chart-toolbar-gap)}.tx-org-chart[data-styled] .tx-org-chart__group{gap:var(--tx-chart-org-chart-toolbar-group-gap)}.tx-org-chart[data-styled] .tx-org-chart-minimap{right:var(--tx-chart-org-chart-minimap-inset);bottom:var(--tx-chart-org-chart-minimap-inset);padding:var(--tx-chart-org-chart-minimap-padding);border-radius:var(--tx-chart-org-chart-minimap-radius);background:var(--tx-chart-org-chart-minimap-background);box-shadow:0 0 0 1px var(--tx-chart-org-chart-canvas-border-color),var(--tx-chart-org-chart-minimap-shadow);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.tx-org-chart[data-styled] .tx-org-chart__map{border-radius:var(--tx-chart-org-chart-minimap-map-radius);background:var(--tx-chart-org-chart-minimap-map-background)}.tx-org-chart[data-styled] .tx-org-chart__map-item{border-radius:var(--tx-chart-org-chart-minimap-item-radius);background:var(--tx-chart-org-chart-minimap-item-color)}.tx-org-chart[data-styled] .tx-org-chart__map-item[data-tone=primary]{background:var(--tx-chart-org-chart-minimap-primary-color)}.tx-org-chart[data-styled] .tx-org-chart__map-item[data-tone=accent]{background:var(--tx-chart-org-chart-minimap-accent-color)}.tx-org-chart[data-styled] .tx-org-chart__map-item[data-tone=muted]{background:var(--tx-chart-org-chart-minimap-muted-color)}.tx-org-chart[data-styled] .tx-org-chart__map-viewport{border:2px solid var(--tx-chart-org-chart-minimap-viewport-color);border-radius:var(--tx-chart-org-chart-minimap-map-radius);background:var(--tx-chart-org-chart-minimap-viewport-background)}@container tx-org-chart-bar (width >= 56rem){.tx-org-chart[data-styled] .tx-org-chart__search{width:var(--tx-chart-org-chart-search-width)}}.tx-org-chart__menu-zoom[data-styled]{gap:var(--tx-chart-org-chart-toolbar-group-gap);padding:var(--tx-actions-menu-list-padding);padding-bottom:var(--tx-chart-org-chart-toolbar-gap);border-bottom:1px solid var(--tx-chart-org-chart-canvas-border-color)}.tx-org-chart__menu-zoom[data-styled] .tx-org-chart__menu-percent{flex:1}@media(prefers-reduced-motion:reduce){.tx-org-chart[data-styled] .tx-org-chart__canvas,.tx-org-chart[data-styled] .tx-org-chart__canvas--settled .tx-org-chart__stage{transition:none}}.tx-org-chart__canvas:fullscreen{width:100%;height:100%}.tx-org-chart__canvas:-webkit-full-screen{width:100%;height:100%}\n"]
|
|
2197
2236
|
}]
|