@liquid-js/lyr-extras 0.0.0-stage → 22.0.0-alpha.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.
Files changed (29) hide show
  1. package/LICENSE.txt +23 -0
  2. package/README.md +61 -2
  3. package/fesm2022/liquid-js-lyr-extras-chart.mjs +871 -0
  4. package/fesm2022/liquid-js-lyr-extras-chart.mjs.map +1 -0
  5. package/fesm2022/liquid-js-lyr-extras-color-picker.mjs +821 -0
  6. package/fesm2022/liquid-js-lyr-extras-color-picker.mjs.map +1 -0
  7. package/fesm2022/liquid-js-lyr-extras-markdown-editor.mjs +923 -0
  8. package/fesm2022/liquid-js-lyr-extras-markdown-editor.mjs.map +1 -0
  9. package/fesm2022/liquid-js-lyr-extras-markdown-viewer.mjs +369 -0
  10. package/fesm2022/liquid-js-lyr-extras-markdown-viewer.mjs.map +1 -0
  11. package/fesm2022/liquid-js-lyr-extras-mask.mjs +240 -0
  12. package/fesm2022/liquid-js-lyr-extras-mask.mjs.map +1 -0
  13. package/fesm2022/liquid-js-lyr-extras-media.mjs +1142 -0
  14. package/fesm2022/liquid-js-lyr-extras-media.mjs.map +1 -0
  15. package/fesm2022/liquid-js-lyr-extras-phone-input.mjs +864 -0
  16. package/fesm2022/liquid-js-lyr-extras-phone-input.mjs.map +1 -0
  17. package/fesm2022/liquid-js-lyr-extras-qr-code.mjs +236 -0
  18. package/fesm2022/liquid-js-lyr-extras-qr-code.mjs.map +1 -0
  19. package/fesm2022/liquid-js-lyr-extras.mjs +0 -0
  20. package/package.json +159 -3
  21. package/types/liquid-js-lyr-extras-chart.d.ts +294 -0
  22. package/types/liquid-js-lyr-extras-color-picker.d.ts +311 -0
  23. package/types/liquid-js-lyr-extras-markdown-editor.d.ts +367 -0
  24. package/types/liquid-js-lyr-extras-markdown-viewer.d.ts +174 -0
  25. package/types/liquid-js-lyr-extras-mask.d.ts +130 -0
  26. package/types/liquid-js-lyr-extras-media.d.ts +517 -0
  27. package/types/liquid-js-lyr-extras-phone-input.d.ts +428 -0
  28. package/types/liquid-js-lyr-extras-qr-code.d.ts +113 -0
  29. package/types/liquid-js-lyr-extras.d.ts +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"liquid-js-lyr-extras-chart.mjs","names":[],"sources":["../../../packages/extras/chart/src/chart-theme.ts","../../../packages/extras/chart/src/chart.component.ts","../../../packages/extras/chart/src/chart-shortcuts.component.ts"],"sourcesContent":["import { NbComponentOrCustomStatus, NbComponentStatus, NbJSThemeOptions } from '@liquid-js/lyr-core'\n\n/**\n * A colour a chart draws a series or slice in: a status's, a custom status included, or a CSS colour of its own, e.g.\n * `#8f9bb3`, `rgb(143 155 179)` or a theme variable, `var(--color-info-300)`.\n */\nexport type NbChartColor =\n | NbComponentOrCustomStatus\n | `#${string}`\n | `rgb${string}`\n | `hsl${string}`\n | `oklch${string}`\n | `var(--${string})`\n\n/** The theme's colours and font, as a chart draws with them. */\nexport interface NbChartTheme {\n /** Each status's colour, and a light tint of it for areas. */\n status: Record<NbComponentStatus, { color: string, tint: string }>\n /** A colour of the series' or slices' own, as the chart draws it, with a light tint of it for areas. */\n colorOf(color: NbChartColor): { color: string, tint: string }\n text: string\n hint: string\n grid: string\n /** What slices are separated by: the background the chart is on, e.g. a card's. */\n surface: string\n tooltipBackground: string\n tooltipText: string\n fontFamily: string\n /** The theme's caption size in pixels, which follows the content size. */\n fontSize: number\n}\n\nconst STATUSES: NbComponentStatus[] = ['basic', 'primary', 'success', 'info', 'warning', 'danger', 'control']\n\n/** A colour with some transparency, from a hex or rgb colour; other colours as they are. */\nfunction tint(color: string, alpha: number) {\n const hex = /^#([\\da-f]{2})([\\da-f]{2})([\\da-f]{2})$/i.exec(color)\n if (hex) {\n const [r, g, b] = hex.slice(1).map((channel) => parseInt(channel, 16))\n return `rgba(${r}, ${g}, ${b}, ${alpha})`\n }\n const rgb = /^rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)/.exec(color)\n return rgb ? `rgba(${rgb[1]}, ${rgb[2]}, ${rgb[3]}, ${alpha})` : color\n}\n\n/** The background an element shows on: its own, or its nearest ancestor's that has one. */\nfunction surfaceOf(element: HTMLElement) {\n for (let current: Element | null = element; current; current = current.parentElement) {\n const background = getComputedStyle(current).backgroundColor\n if (background && background !== 'transparent' && !/^rgba\\(.*,\\s*0\\)$/.test(background)) {\n return background\n }\n }\n return ''\n}\n\n/** A length such as `0.75rem` or `12px` in pixels. */\nfunction pixels(length: string, rootFontSize: number) {\n const value = parseFloat(length)\n return length.trim().endsWith('rem') ? value * rootFontSize : value\n}\n\n/**\n * Reads the theme an element shows: its CSS custom properties, or with a theme built without them, the theme's JS\n * variables.\n *\n * @internal\n */\nexport function nbReadChartTheme(element: HTMLElement, jsTheme?: NbJSThemeOptions): NbChartTheme {\n const style = getComputedStyle(element)\n const rootFontSize = parseFloat(getComputedStyle(element.ownerDocument.documentElement).fontSize) || 16\n const variable = (name: string) => style.getPropertyValue(`--${name}`).trim()\n const js = (jsTheme?.variables ?? {}) as Record<string, string>\n\n const status = Object.fromEntries(\n STATUSES.map((name) => {\n // Basic in the hint colour, as its fill colour is too faint for a line or a slice.\n const color =\n (name === 'basic' ? variable('text-hint-color') || js['fg'] : variable(`color-${name}-default`) || js[name]) ||\n js['fgText'] ||\n '#808080'\n return [name, { color, tint: variable(`color-${name}-transparent-200`) || tint(color, 0.16) }]\n })\n ) as NbChartTheme['status']\n\n // A colour the canvas can draw: a status's, or a CSS variable's value where the chart is, which it can't read itself.\n const colorOf = (value: NbChartColor) => {\n if (value in status) {\n return status[value as NbComponentStatus]\n }\n let color: string = value\n // A custom status: its colour, as the theme defines it; otherwise a CSS colour name.\n if (/^[a-z][\\w-]*$/i.test(value)) {\n const custom = variable(`color-${value}-default`)\n if (custom) {\n return { color: custom, tint: variable(`color-${value}-transparent-200`) || tint(custom, 0.16) }\n }\n }\n if (value.startsWith('var(')) {\n element.style.setProperty('--nb-chart-color', value)\n color = getComputedStyle(element).getPropertyValue('--nb-chart-color').trim() || value\n element.style.removeProperty('--nb-chart-color')\n }\n return { color, tint: tint(color, 0.16) }\n }\n\n const caption = variable('text-caption-font-size')\n return {\n status,\n colorOf,\n text: variable('text-basic-color') || js['fgText'] || style.color,\n hint: variable('text-hint-color') || js['fg'] || style.color,\n grid: variable('divider-color') || js['separator'] || 'rgba(128, 128, 128, 0.24)',\n surface: surfaceOf(element) || variable('background-basic-color-1') || js['bg'] || '#ffffff',\n // As the theme's tooltips are.\n tooltipBackground:\n variable('tooltip-background-color') || variable('background-alternative-color-3') || js['fgText'] || '#222b45',\n tooltipText: variable('tooltip-text-color') || variable('text-alternate-color') || js['bg'] || '#ffffff',\n fontFamily: variable('font-family-primary') || js['fontMain'] || style.fontFamily,\n fontSize: caption ? pixels(caption, rootFontSize) : 0.75 * rootFontSize\n }\n}\n","import {\n afterNextRender,\n afterRenderEffect,\n Component,\n DestroyRef,\n ElementRef,\n EnvironmentProviders,\n inject,\n input,\n InputSignal,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n signal,\n untracked,\n viewChild,\n Signal,\n WritableSignal\n} from '@angular/core'\nimport {\n ArcElement,\n BarController,\n BarElement,\n CategoryScale,\n Chart,\n ChartComponentLike,\n ChartConfiguration,\n ChartData,\n ChartOptions,\n ChartType,\n DoughnutController,\n Filler,\n Legend,\n LinearScale,\n LineController,\n LineElement,\n PieController,\n Plugin,\n PointElement,\n Tooltip\n} from 'chart.js'\nimport { merge } from 'chart.js/helpers'\nimport { NbJSThemesRegistry, NbThemeService, NbThemeStyleChanges } from '@liquid-js/lyr-core'\n\nimport { NbChartColor, NbChartTheme, nbReadChartTheme } from './chart-theme'\n\n/** What line charts need from chart.js, for `provideNbCharts`. */\nexport const NB_LINE_CHART_PARTS: ChartComponentLike[] = [\n LineController,\n LineElement,\n PointElement,\n CategoryScale,\n LinearScale,\n Filler,\n Legend,\n Tooltip\n]\n\n/** What bar charts need from chart.js, for `provideNbCharts`. */\nexport const NB_BAR_CHART_PARTS: ChartComponentLike[] = [\n BarController,\n BarElement,\n CategoryScale,\n LinearScale,\n Legend,\n Tooltip\n]\n\n/** What pie and doughnut charts need from chart.js, for `provideNbCharts`. */\nexport const NB_PIE_CHART_PARTS: ChartComponentLike[] = [\n PieController,\n DoughnutController,\n ArcElement,\n Legend,\n Tooltip\n]\n\n/**\n * Registers the chart.js controllers, elements, scales and plugins an app's charts use, so the rest stays out of its\n * bundle; `provideNbCharts(...registerables)` registers all of them.\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideNbCharts(...NB_LINE_CHART_PARTS, ...NB_BAR_CHART_PARTS)],\n * });\n * ```\n */\nexport function provideNbCharts(...parts: ChartComponentLike[]): EnvironmentProviders {\n return makeEnvironmentProviders([provideEnvironmentInitializer(() => Chart.register(...parts))])\n}\n\n/** The statuses whose colours datasets without their own take, in order. */\nexport const NB_CHART_PALETTE: NbChartColor[] = ['primary', 'success', 'info', 'warning', 'danger']\n\nconst SLICED = new Set<string>(['pie', 'doughnut', 'polarArea'])\nconst LINED = new Set<string>(['line', 'radar'])\nconst CARTESIAN = new Set<string>(['line', 'bar', 'scatter', 'bubble'])\n\ntype Writable = Record<string, unknown>\n\n/** The data, with the theme's colours on datasets that have none of their own. */\nfunction themedData(type: string, data: ChartData, theme: NbChartTheme, palette: ReadonlyArray<NbChartColor>): ChartData {\n const color = (index: number) => theme.colorOf(palette[index % palette.length] ?? 'primary')\n const datasets = data.datasets.map((dataset, index) => {\n const own = dataset as unknown as Writable\n if (own['backgroundColor'] !== undefined || own['borderColor'] !== undefined) {\n return dataset\n }\n if (SLICED.has(type)) {\n return {\n ...dataset,\n backgroundColor: dataset.data.map((_, slice) => color(slice).color),\n borderColor: theme.surface\n }\n }\n const { color: main, tint } = color(index)\n return LINED.has(type)\n ? { ...dataset, borderColor: main, backgroundColor: tint, pointBackgroundColor: main }\n : { ...dataset, borderColor: main, backgroundColor: main }\n })\n return { ...data, datasets } as ChartData\n}\n\n/** The theme's text, grid, tooltip and font, under the chart's own options. */\nfunction themedOptions(type: string, options: ChartOptions | undefined, theme: NbChartTheme): ChartOptions {\n const axis = { ticks: { color: theme.hint }, grid: { color: theme.grid }, border: { color: theme.grid } }\n const defaults: Writable = {\n color: theme.text,\n borderColor: theme.grid,\n font: { family: theme.fontFamily, size: theme.fontSize },\n plugins: {\n legend: { labels: { color: theme.text } },\n tooltip: {\n backgroundColor: theme.tooltipBackground,\n titleColor: theme.tooltipText,\n bodyColor: theme.tooltipText,\n footerColor: theme.tooltipText\n }\n }\n }\n if (CARTESIAN.has(type)) {\n defaults['scales'] = { x: axis, y: axis }\n } else if (type === 'radar' || type === 'polarArea') {\n defaults['scales'] = { r: { ...axis, angleLines: { color: theme.grid }, pointLabels: { color: theme.text } } }\n }\n return merge({}, [defaults, options ?? {}]) as ChartOptions\n}\n\n/**\n * A chart.js chart, in the theme's colours and font, which follows the theme and the content size as they change:\n *\n * ```html\n * <nb-chart type=\"bar\" [data]=\"{ labels: months, datasets: [{ label: 'Orders', data: orders() }] }\"\n * aria-label=\"Orders per month\" />\n * ```\n *\n * @stacked-example(Showcase, chart/chart-showcase.component)\n *\n * `type`, `data`, `options` and `plugins` are chart.js's, with its types, and the chart updates when they change.\n * Datasets without colours of their own get the colours of the statuses in `palette` (primary, success, info,\n * warning, danger); slices of a pie or doughnut each get one. Text, grid lines, tooltips and the font come from the\n * theme, under the chart's own options. `chart()` is the chart.js chart.\n *\n * Register the chart.js parts the app's charts use with `provideNbCharts`, e.g. `NB_LINE_CHART_PARTS`. A chart is\n * drawn on a canvas, which assistive technologies see as an image: name it, or describe what it shows, with\n * `aria-label`.\n *\n * For common charts, `nb-line-chart`, `nb-bar-chart` and `nb-pie-chart` take labels and series instead.\n *\n * ### Installation\n *\n * Install [`chart.js`](https://www.npmjs.com/package/chart.js), which draws the charts, and import `NbChartComponent`\n * from `@liquid-js/lyr-extras/chart`:\n *\n * ```bash\n * npm install chart.js\n * ```\n */\n@Component({\n selector: 'nb-chart',\n template: '<canvas #canvas role=\"img\" [attr.aria-label]=\"ariaLabel() ?? null\"></canvas>',\n styles: `\n :host {\n display: block;\n position: relative;\n }\n\n canvas {\n display: block;\n max-width: 100%;\n }\n `\n})\nexport class NbChartComponent<TType extends ChartType = ChartType> {\n /** The chart's type, e.g. `line`, `bar` or `pie`. */\n readonly type: InputSignal<TType> = input.required<TType>()\n\n /** The chart's labels and datasets. */\n readonly data: InputSignal<ChartData<TType>> = input.required<ChartData<TType>>()\n\n /** chart.js options, over the theme's. */\n readonly options: InputSignal<ChartOptions<TType> | undefined> = input<ChartOptions<TType>>()\n\n /** chart.js plugins of this chart only. */\n readonly plugins: InputSignal<Array<Plugin<TType>>> = input(new Array<Plugin<TType>>())\n\n /** The colours datasets without their own take, in order: statuses, or CSS colours (`NbChartColor`). */\n readonly palette = input<ReadonlyArray<NbChartColor>>(NB_CHART_PALETTE)\n\n /** Names the chart, or tells what it shows, for assistive technologies. */\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' })\n\n protected readonly drawn: WritableSignal<Chart<TType> | undefined> = signal<Chart<TType> | undefined>(undefined)\n /** The chart.js chart, once it's drawn. */\n readonly chart: Signal<Chart<TType> | undefined> = this.drawn.asReadonly()\n\n protected readonly canvas = viewChild.required<ElementRef<HTMLCanvasElement>>('canvas')\n\n constructor() {\n const host: HTMLElement = inject(ElementRef).nativeElement\n const themeService = inject(NbThemeService, { optional: true })\n const jsThemes = inject(NbJSThemesRegistry, { optional: true })\n // The theme's variables, which may change without another theme, e.g. as an app sets one.\n const themeStyle = inject(NbThemeStyleChanges).changes\n\n // Drawn in the browser only, once rendered with the theme in place, and again as the theme changes.\n afterRenderEffect(() => {\n const themeName = themeService?.theme()\n themeService?.contentSize()\n themeStyle()\n const type: string = this.type()\n const data = this.data() as ChartData\n const options = this.options() as ChartOptions | undefined\n const plugins = this.plugins() as Plugin[]\n const palette = this.palette()\n\n const theme = nbReadChartTheme(host, themeName && jsThemes?.has(themeName) ? jsThemes.get(themeName) : undefined)\n const config = {\n type,\n data: themedData(type, data, theme, palette),\n options: themedOptions(type, options, theme),\n plugins\n } as ChartConfiguration\n\n untracked(() => {\n let chart = this.chart() as Chart | undefined\n // chart.js can't change a chart's type in place.\n if (chart && (chart.config as ChartConfiguration).type !== type) {\n chart.destroy()\n chart = undefined\n }\n if (chart) {\n chart.data = config.data\n chart.options = config.options ?? {}\n chart.update()\n } else {\n this.drawn.set(new Chart(this.canvas().nativeElement, config) as unknown as Chart<TType>)\n }\n })\n })\n\n // chart.js fits a chart into its container's height, which is the chart's own, so a chart whose container widens,\n // as when a sidebar collapses, would keep its size; it's sized to the container's width as that changes.\n const destroyRef = inject(DestroyRef)\n afterNextRender(() => {\n if (typeof ResizeObserver === 'undefined') {\n return\n }\n let width = host.clientWidth\n const observer = new ResizeObserver(() => {\n if (host.clientWidth !== width) {\n width = host.clientWidth\n this.chart()?.resize()\n }\n })\n observer.observe(host)\n destroyRef.onDestroy(() => observer.disconnect())\n })\n\n destroyRef.onDestroy(() => this.chart()?.destroy())\n }\n}\n","import { booleanAttribute, Component, computed, input, Signal } from '@angular/core'\nimport { ChartData, ChartOptions } from 'chart.js'\nimport { NbComponentOrCustomStatus } from '@liquid-js/lyr-core'\n\nimport { NB_CHART_PALETTE, NbChartComponent } from './chart.component'\nimport { NbChartColor } from './chart-theme'\n\n/**\n * A series of a line or bar chart: its name, a value per label, and optionally the status whose colour it takes, or a\n * colour of its own.\n */\nexport interface NbChartSeries {\n name: string\n /** A value per label; `null` leaves a gap, as Chart.js draws it. */\n data: ReadonlyArray<number | null>\n status?: NbComponentOrCustomStatus\n /** A colour of its own, over its status's, e.g. for more series than there are statuses. */\n color?: NbChartColor\n /** In a line chart, whether the area under this line is filled, over the chart's `area`, e.g. not for a target. */\n area?: boolean\n /** In a line chart, draws this line dashed and without points, e.g. for a target or a budget. */\n dashed?: boolean\n}\n\n/**\n * A slice of a pie chart: its label, value, and optionally the status whose colour it takes, or a colour of its own.\n */\nexport interface NbChartSlice {\n label: string\n value: number\n status?: NbComponentOrCustomStatus\n /** A colour of its own, over its status's, e.g. for more slices than there are statuses. */\n color?: NbChartColor\n}\n\n/** The items' colours: their own, their status's, or the next of the palette that no other item has. */\nfunction colorsOf(items: ReadonlyArray<{ status?: NbComponentOrCustomStatus, color?: NbChartColor }>): NbChartColor[] {\n const taken = new Set(items.map((item) => item.color ?? item.status).filter((color) => color !== undefined))\n const free = NB_CHART_PALETTE.filter((color) => !taken.has(color))\n const palette = free.length ? free : NB_CHART_PALETTE\n let next = 0\n return items.map((item) => item.color ?? item.status ?? palette[next++ % palette.length])\n}\n\n/**\n * A line chart of series over labels, in the theme's colours; register `NB_LINE_CHART_PARTS`.\n *\n * ```html\n * <nb-line-chart [labels]=\"months\" [series]=\"[{ name: 'Visits', data: visits() }]\" aria-label=\"Visits per month\" />\n * ```\n */\n@Component({\n selector: 'nb-line-chart',\n template: '<nb-chart type=\"line\" [data]=\"data()\" [options]=\"options()\" [palette]=\"palette()\" [aria-label]=\"ariaLabel()\" />',\n styles: ':host { display: block; }',\n imports: [NbChartComponent]\n})\nexport class NbLineChartComponent {\n readonly labels = input<ReadonlyArray<string | number>>([])\n readonly series = input<ReadonlyArray<NbChartSeries>>([])\n\n /** Fills the area under each line. */\n readonly area = input(false, { transform: booleanAttribute })\n\n /** Curves the lines between points. */\n readonly smooth = input(false, { transform: booleanAttribute })\n\n /** Names the chart, or tells what it shows, for assistive technologies. */\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' })\n\n protected readonly palette = computed(() => colorsOf(this.series()))\n\n protected readonly data: Signal<ChartData<'line'>> = computed(() => ({\n labels: [...this.labels()],\n datasets: this.series().map((series) => ({\n label: series.name,\n data: [...series.data],\n fill: (series.area ?? this.area()) ? 'origin' : false,\n tension: this.smooth() ? 0.4 : 0,\n ...(series.dashed ? { borderDash: [6, 4], borderWidth: 2, pointRadius: 0, pointHoverRadius: 0 } : {})\n }))\n }))\n\n protected readonly options: Signal<ChartOptions<'line'>> = computed(() => ({\n plugins: { legend: { display: this.series().length > 1 } }\n }))\n}\n\n/**\n * A bar chart of series over labels, in the theme's colours; register `NB_BAR_CHART_PARTS`.\n *\n * ```html\n * <nb-bar-chart [labels]=\"months\" [series]=\"[{ name: 'Orders', data: orders() }]\" aria-label=\"Orders per month\" />\n * ```\n */\n@Component({\n selector: 'nb-bar-chart',\n template: '<nb-chart type=\"bar\" [data]=\"data()\" [options]=\"options()\" [palette]=\"palette()\" [aria-label]=\"ariaLabel()\" />',\n styles: ':host { display: block; }',\n imports: [NbChartComponent]\n})\nexport class NbBarChartComponent {\n readonly labels = input<ReadonlyArray<string | number>>([])\n readonly series = input<ReadonlyArray<NbChartSeries>>([])\n\n /** Bars across, with the labels down the side. */\n readonly horizontal = input(false, { transform: booleanAttribute })\n\n /** The series' bars on top of each other. */\n readonly stacked = input(false, { transform: booleanAttribute })\n\n /** Names the chart, or tells what it shows, for assistive technologies. */\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' })\n\n protected readonly palette = computed(() => colorsOf(this.series()))\n\n protected readonly data: Signal<ChartData<'bar'>> = computed(() => ({\n labels: [...this.labels()],\n datasets: this.series().map((series) => ({ label: series.name, data: [...series.data] }))\n }))\n\n protected readonly options: Signal<ChartOptions<'bar'>> = computed(() => ({\n indexAxis: this.horizontal() ? 'y' : 'x',\n scales: { x: { stacked: this.stacked() }, y: { stacked: this.stacked() } },\n plugins: { legend: { display: this.series().length > 1 } }\n }))\n}\n\n/**\n * A pie, or with `doughnut` a doughnut, of slices in the theme's colours; register `NB_PIE_CHART_PARTS`.\n *\n * ```html\n * <nb-pie-chart doughnut [slices]=\"[{ label: 'Paid', value: 42 }, { label: 'Due', value: 8 }]\" aria-label=\"Invoices\" />\n * ```\n */\n@Component({\n selector: 'nb-pie-chart',\n template: `\n <nb-chart\n [type]=\"doughnut() ? 'doughnut' : 'pie'\"\n [data]=\"data()\"\n [options]=\"options\"\n [palette]=\"palette()\"\n [aria-label]=\"ariaLabel()\"\n />\n `,\n styles: ':host { display: block; }',\n imports: [NbChartComponent]\n})\nexport class NbPieChartComponent {\n readonly slices = input<ReadonlyArray<NbChartSlice>>([])\n\n /** A ring rather than a pie. */\n readonly doughnut = input(false, { transform: booleanAttribute })\n\n /** Names the chart, or tells what it shows, for assistive technologies. */\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' })\n\n protected readonly palette = computed(() => colorsOf(this.slices()))\n\n // Wider than tall, with the legend beside it, so it sits in a card as the other charts do.\n protected readonly options: ChartOptions<'pie' | 'doughnut'> = {\n aspectRatio: 2,\n plugins: { legend: { position: 'right' } }\n }\n\n protected readonly data: Signal<ChartData<'pie' | 'doughnut'>> = computed(() => ({\n labels: this.slices().map((slice) => slice.label),\n datasets: [{ data: this.slices().map((slice) => slice.value) }]\n }))\n}\n"],"mappings":";;;;;AAgCA,MAAM,WAAgC;CAAC;CAAS;CAAW;CAAW;CAAQ;CAAW;CAAU;AAAS;AAG5G,SAAS,KAAK,OAAe,OAAa;CACtC,MAAM,MAAM,2CAA2C,KAAK,KAAK;CACjE,IAAI,KAAK;EACL,MAAM,CAAC,GAAG,GAAG,KAAK,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,YAAY,SAAS,SAAS,EAAE,CAAC;EACrE,OAAO,QAAQ,EAAC,IAAK,EAAC,IAAK,EAAC,IAAK,MAAK;CAC1C;CACA,MAAM,MAAM,kCAAkC,KAAK,KAAK;CACxD,OAAO,MAAM,QAAQ,IAAI,GAAE,IAAK,IAAI,GAAE,IAAK,IAAI,GAAE,IAAK,MAAK,KAAM;AACrE;AAGA,SAAS,UAAU,SAAoB;CACnC,KAAK,IAAI,UAA0B,SAAS,SAAS,UAAU,QAAQ,eAAe;EAClF,MAAM,aAAa,iBAAiB,OAAO,CAAC,CAAC;EAC7C,IAAI,cAAc,eAAe,iBAAiB,CAAC,oBAAoB,KAAK,UAAU,GAClF,OAAO;CAEf;CACA,OAAO;AACX;AAGA,SAAS,OAAO,QAA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