@aceshooting/lyra-ui 14.1.1 → 14.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/custom-elements.json +1 -1
  3. package/design-tokens.json +1 -1
  4. package/dist/cli/migration-contract.json +1 -1
  5. package/dist/components/charts/chart/chart-legend-visibility.d.ts +8 -0
  6. package/dist/components/charts/chart/chart.class.d.ts +64 -15
  7. package/dist/components/charts/chart/chart.class.js +10 -10
  8. package/dist/components/data/heatmap/heatmap.class.d.ts +44 -6
  9. package/dist/components/data/heatmap/heatmap.class.js +8 -2
  10. package/dist/components/data/heatmap/heatmap.styles.js +1 -1
  11. package/dist/components/data/table/table.class.d.ts +9 -1
  12. package/dist/components/data/table/table.class.js +4 -3
  13. package/dist/components/data/table/table.styles.js +1 -1
  14. package/dist/components/forms/button/button.class.d.ts +8 -2
  15. package/dist/components/forms/button/button.class.js +6 -2
  16. package/dist/components/forms/checkbox/checkbox.styles.js +1 -1
  17. package/dist/components/forms/date-picker/date-input.class.d.ts +7 -8
  18. package/dist/components/forms/date-picker/date-input.styles.js +1 -1
  19. package/dist/components/forms/locale-picker/locale-picker.class.d.ts +12 -2
  20. package/dist/components/forms/locale-picker/locale-picker.class.js +7 -6
  21. package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -1
  22. package/dist/components/forms/slider/slider.class.d.ts +21 -5
  23. package/dist/components/forms/slider/slider.class.js +6 -5
  24. package/dist/components/forms/slider/slider.styles.js +1 -1
  25. package/dist/components/media/map/map-loader.d.ts +3 -1
  26. package/dist/components/media/map/map.class.d.ts +86 -6
  27. package/dist/components/media/map/map.class.js +1 -1
  28. package/dist/components/media/map/map.styles.js +1 -1
  29. package/dist/custom-elements-jsx.d.ts +1 -1
  30. package/dist/events.d.ts +21 -5
  31. package/dist/internal/default-strings.generated.d.ts +1 -1
  32. package/dist/internal/default-strings.generated.js +1 -1
  33. package/dist/internal/icons.d.ts +2 -0
  34. package/dist/internal/icons.js +2 -2
  35. package/dist/internal/localization-types.d.ts +1 -1
  36. package/dist/internal/localization.js +1 -1
  37. package/dist/internal/package-metadata.d.ts +1 -1
  38. package/dist/internal/package-metadata.js +1 -1
  39. package/dist/lyra.d.ts +1 -1
  40. package/dist/svelte.d.ts +1 -1
  41. package/dist/translations/ar.js +1 -1
  42. package/dist/translations/de.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/fa.js +1 -1
  45. package/dist/translations/fr.js +1 -1
  46. package/dist/translations/he.js +1 -1
  47. package/dist/translations/ja.js +1 -1
  48. package/dist/translations/pt-BR.js +1 -1
  49. package/dist/translations/ru.js +1 -1
  50. package/dist/translations/zh-CN.js +1 -1
  51. package/dist/vue.d.ts +1 -1
  52. package/llms/components/lr-accordion-item.md +36 -0
  53. package/llms/components/lr-accordion.md +36 -0
  54. package/llms/components/lr-bar-chart.md +5 -2
  55. package/llms/components/lr-bubble-chart.md +5 -2
  56. package/llms/components/lr-button.md +5 -0
  57. package/llms/components/lr-chart.md +67 -3
  58. package/llms/components/lr-checkbox.md +3 -1
  59. package/llms/components/lr-date-input.md +19 -33
  60. package/llms/components/lr-date-picker.md +19 -33
  61. package/llms/components/lr-details.md +36 -0
  62. package/llms/components/lr-doughnut-chart.md +5 -2
  63. package/llms/components/lr-heatmap.md +63 -4
  64. package/llms/components/lr-histogram.md +7 -3
  65. package/llms/components/lr-line-chart.md +5 -2
  66. package/llms/components/lr-locale-picker.md +16 -2
  67. package/llms/components/lr-map.md +131 -4
  68. package/llms/components/lr-pie-chart.md +5 -2
  69. package/llms/components/lr-polar-area-chart.md +5 -2
  70. package/llms/components/lr-radar-chart.md +5 -2
  71. package/llms/components/lr-scatter-chart.md +5 -2
  72. package/llms/components/lr-slider.md +20 -4
  73. package/llms/components/lr-table.md +10 -4
  74. package/llms-full.txt +439 -56
  75. package/package.json +3 -3
  76. package/vscode-css-data.json +1 -1
  77. package/vscode-html-data.json +1 -1
  78. package/web-types.json +1 -1
@@ -6,6 +6,14 @@ readonly datasetIndex:number;
6
6
  readonly visible:boolean;
7
7
  /** Canonical complete list of hidden zero-based dataset indexes. */
8
8
  readonly hiddenDatasets:readonly number[];}
9
+ /** Complete category visibility proposal or committed snapshot for radial charts. */
10
+ export interface LyraChartDatumVisibilityChangeDetail{
11
+ /** Zero-based source category index, shared by every dataset/ring. */
12
+ readonly index:number;
13
+ /** Proposed or committed visibility of this category. */
14
+ readonly visible:boolean;
15
+ /** Complete canonical list of hidden source category indexes. */
16
+ readonly hiddenDatums:readonly number[];}
9
17
  /**
10
18
  * Returns a stable, bounded visibility snapshot. A defined empty array deliberately means every
11
19
  * dataset is visible; `undefined` is left distinct so component configuration can supply its
@@ -1,4 +1,4 @@
1
- import{type TemplateResult,type PropertyValues}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import'../../overlays/skeleton/skeleton.class.js';import type{LyraVariant}from'../../../internal/variants.js';import{type LyraChartLegendVisibilityChangeDetail}from'./chart-legend-visibility.js';export type{LyraChartLegendVisibilityChangeDetail}from'./chart-legend-visibility.js';export{seriesPalette}from'./chart-colors.js';export interface LyraChartPoint{readonly x:number;readonly y:number;
1
+ import{type TemplateResult,type PropertyValues}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import'../../overlays/skeleton/skeleton.class.js';import type{LyraVariant}from'../../../internal/variants.js';import{type LyraChartLegendVisibilityChangeDetail,type LyraChartDatumVisibilityChangeDetail}from'./chart-legend-visibility.js';export type{LyraChartLegendVisibilityChangeDetail,LyraChartDatumVisibilityChangeDetail}from'./chart-legend-visibility.js';export{seriesPalette}from'./chart-colors.js';export interface LyraChartPoint{readonly x:number;readonly y:number;
2
2
  /** Bubble radius. Ignored by chart types that do not consume a radius. */
3
3
  readonly r?:number;
4
4
  /**
@@ -19,7 +19,9 @@ readonly pointRadius?:number|readonly number[];
19
19
  * when shorter than the segment count. Sampled segments retain the original source starting
20
20
  * point's palette index. Only meaningful for line-type series.
21
21
  */
22
- readonly segmentColors?:readonly string[];readonly type?:'line'|'bar';}export type LyraChartType='line'|'bar'|'scatter'|'pie'|'doughnut'|'radar'|'polarArea'|'bubble';export type LyraChartGrid='x'|'y'|'both'|'none';export type LyraChartIndexAxis='x'|'y';
22
+ readonly segmentColors?:readonly string[];readonly type?:'line'|'bar';}export type LyraChartType='line'|'bar'|'scatter'|'pie'|'doughnut'|'radar'|'polarArea'|'bubble';export type LyraChartGrid='x'|'y'|'both'|'none';
23
+ /** Complete cartesian axes, including their ticks, labels, borders and grid lines. */
24
+ export type LyraChartAxes=LyraChartGrid;export type LyraChartIndexAxis='x'|'y';
23
25
  /** Scale type for a chart's value axis. The categorical axis is never affected. */
24
26
  export type LyraChartScaleType='linear'|'logarithmic';
25
27
  /**
@@ -30,7 +32,11 @@ export type LyraChartScaleType='linear'|'logarithmic';
30
32
  * numbers, is dropped rather than handed to Chart.js, where it would silently render nothing or
31
33
  * throw. `axis` defaults to `'y'`, the value axis for the common threshold case.
32
34
  */
33
- export interface LyraChartAnnotation{readonly axis?:LyraChartIndexAxis;readonly value?:number;readonly from?:number;readonly to?:number;readonly label?:string;readonly tone?:LyraVariant;}export type LyraChartLayoutPosition='left'|'top'|'right'|'bottom'|'center'|'chartArea'|{[scaleId:string]:number;};export type LyraChartLegendPosition=LyraChartLayoutPosition|'start'|'end'|'auto';export type LyraChartValueFormatterContext='tick'|'tooltip'|'legend'|'table';export type LyraChartValueFormatter=(value:number,context:LyraChartValueFormatterContext)=>string;export type LyraChartFormatSurface=LyraChartValueFormatterContext|'visual'|'spoken'|'export';
35
+ export interface LyraChartAnnotation{readonly axis?:LyraChartIndexAxis;readonly value?:number;readonly from?:number;readonly to?:number;readonly label?:string;readonly tone?:LyraVariant;}export type LyraChartLayoutPosition='left'|'top'|'right'|'bottom'|'center'|'chartArea'|{[scaleId:string]:number;};export type LyraChartLegendPosition=LyraChartLayoutPosition|'start'|'end'|'auto';
36
+ /** Dataset toggles, or shared category toggles for pie/doughnut/polar-area charts. */
37
+ export type LyraChartLegendMode='dataset'|'datum';
38
+ /** Text shown in the DOM legend, independently of tooltip and axis formatting. */
39
+ export type LyraChartLegendDisplay='auto'|'label'|'value'|'percentage';export type LyraChartValueFormatterContext='tick'|'tooltip'|'legend'|'table';export type LyraChartValueFormatter=(value:number,context:LyraChartValueFormatterContext)=>string;export type LyraChartFormatSurface=LyraChartValueFormatterContext|'visual'|'spoken'|'export';
34
40
  /** Identifies which numeric component of a structured datum the formatter receives. */
35
41
  export type LyraChartStatistic='x'|'y'|'r'|'min'|'q1'|'median'|'q3'|'max'|'total';export interface LyraChartFormatterContext{readonly value:number;readonly surface:LyraChartFormatSurface;readonly datasetIndex?:number;readonly index?:number;readonly label?:string;readonly seriesLabel?:string;readonly statistic?:LyraChartStatistic;}export type LyraChartFormatter=(context:LyraChartFormatterContext)=>string;export type LyraChartExportFormat='csv'|'png';export interface LyraChartArea{readonly top:number;readonly left:number;readonly right:number;readonly bottom:number;readonly width:number;readonly height:number;}
36
42
  /** A Chart.js-compatible plugin shape without making `chart.js` a type dependency for consumers. */
@@ -45,13 +51,13 @@ export interface LyraChartDataConfiguration{labels?:unknown[];datasets?:LyraChar
45
51
  * controller-specific checking is useful; that type remains structurally
46
52
  * assignable to this passthrough surface.
47
53
  */
48
- export interface LyraChartConfiguration{type?:string;data?:LyraChartDataConfiguration;options?:object;plugins?:LyraChartPlugin[];}interface ChartHit{datasetIndex:number;index:number;}interface RuntimeChart{data:{labels?:unknown[];datasets:LyraChartDatasetConfiguration[];};options:Record<string,unknown>;config:{type?:unknown;};legend?:unknown;chartArea?:LyraChartArea;destroy():void;update(mode?:string):void;toBase64Image?():string;getElementsAtEventForMode(event:Event,mode:string,options:Record<string,unknown>,useFinalPosition:boolean):ChartHit[];getDatasetMeta?(index:number):{hidden:boolean|null;};isDatasetVisible(index:number):boolean;setDatasetVisibility(index:number,visible:boolean):void;}
54
+ export interface LyraChartConfiguration{type?:string;data?:LyraChartDataConfiguration;options?:object;plugins?:LyraChartPlugin[];}interface ChartHit{datasetIndex:number;index:number;}interface RuntimeChart{data:{labels?:unknown[];datasets:LyraChartDatasetConfiguration[];};options:Record<string,unknown>;config:{type?:unknown;};legend?:unknown;chartArea?:LyraChartArea;destroy():void;update(mode?:string):void;toBase64Image?():string;getElementsAtEventForMode(event:Event,mode:string,options:Record<string,unknown>,useFinalPosition:boolean):ChartHit[];getDatasetMeta?(index:number):{hidden:boolean|null;};isDatasetVisible(index:number):boolean;setDatasetVisibility(index:number,visible:boolean):void;getDataVisibility?(index:number):boolean;toggleDataVisibility?(index:number):void;}
49
55
  /** Public structural view of the current Chart.js instance, without imposing `chart.js` as a
50
56
  * type dependency on consumers. The value is `undefined` before the peer loads and after the
51
57
  * component disconnects. */
52
58
  export interface LyraChartInstance extends RuntimeChart{}export type LyraChartDatumKind='bar'|'point'|'segment'|'slice'|'box';type LyraCoreChartDatumKind=Exclude<LyraChartDatumKind,'box'>;
53
59
  /** Input-neutral detail shared by every chart-family `lr-datum-activate` event. */
54
- export interface LyraChartDatumActivateDetail<TKind extends LyraChartDatumKind=LyraChartDatumKind,TValue=unknown>{readonly kind:TKind;readonly datasetIndex:number;readonly index:number;readonly label:string|undefined;readonly value:TValue;}export interface LyraChartEventMap{'lr-point-click':CustomEvent<{datasetIndex:number;index:number;label:string|undefined;value:unknown;}>;'lr-zoom':CustomEvent<{zoomed:boolean;}>;'lr-before-legend-visibility-change':CustomEvent<LyraChartLegendVisibilityChangeDetail>;'lr-legend-visibility-change':CustomEvent<LyraChartLegendVisibilityChangeDetail>;'lr-datum-activate':CustomEvent<LyraChartDatumActivateDetail<LyraCoreChartDatumKind>>;}
60
+ export interface LyraChartDatumActivateDetail<TKind extends LyraChartDatumKind=LyraChartDatumKind,TValue=unknown>{readonly kind:TKind;readonly datasetIndex:number;readonly index:number;readonly label:string|undefined;readonly value:TValue;}export interface LyraChartEventMap{'lr-point-click':CustomEvent<{datasetIndex:number;index:number;label:string|undefined;value:unknown;}>;'lr-zoom':CustomEvent<{zoomed:boolean;}>;'lr-before-legend-visibility-change':CustomEvent<LyraChartLegendVisibilityChangeDetail>;'lr-legend-visibility-change':CustomEvent<LyraChartLegendVisibilityChangeDetail>;'lr-before-datum-visibility-change':CustomEvent<LyraChartDatumVisibilityChangeDetail>;'lr-datum-visibility-change':CustomEvent<LyraChartDatumVisibilityChangeDetail>;'lr-datum-activate':CustomEvent<LyraChartDatumActivateDetail<LyraCoreChartDatumKind>>;}
55
61
  /**
56
62
  * `<lr-chart>` — the core Chart.js wrapper used directly and by the typed
57
63
  * Chart.js tags plus `<lr-histogram>`. `<lr-lite-chart>` and `<lr-box-plot>`
@@ -60,6 +66,9 @@ export interface LyraChartDatumActivateDetail<TKind extends LyraChartDatumKind=L
60
66
  * are further optional peers loaded only on demand.
61
67
  * With IntersectionObserver available, canvas construction waits for the first delivered
62
68
  * visibility decision; without it, drawing starts as soon as the peer and canvas are ready.
69
+ * Simplified pie/doughnut datasets with magnitudes above Number.MAX_SAFE_INTEGER are uniformly
70
+ * scaled for finite peer arc geometry. Legends, tooltips, data labels and semantic exports retain
71
+ * original values; direct peer callbacks see scaled values. Explicit config.data is passed through.
63
72
  *
64
73
  * **API mirror note:** the real `wa-chart` docs page
65
74
  * (https://webawesome.com/docs/components/chart/) documents a `config:
@@ -90,13 +99,18 @@ export interface LyraChartDatumActivateDetail<TKind extends LyraChartDatumKind=L
90
99
  * value, and the complete canonical proposed `hiddenDatasets` snapshot.
91
100
  * @event lr-legend-visibility-change - Emitted after an accepted DOM legend toggle commits the
92
101
  * same detail. Programmatic `hiddenDatasets` changes reconcile without either event.
102
+ * @event lr-before-datum-visibility-change - Cancelable category visibility proposal in datum
103
+ * legend mode. `detail: { index: number, visible: boolean, hiddenDatums: readonly number[] }`.
104
+ * Source category indexes apply to every dataset/ring. The complete detail is frozen.
105
+ * @event lr-datum-visibility-change - Emitted after an accepted category toggle commits the same
106
+ * frozen detail. Programmatic `hiddenDatums` assignments are silent.
93
107
  * @csspart base - The chart wrapper.
94
108
  * @csspart plot - The fixed-height canvas/overlay region.
95
109
  * @csspart canvas - The Chart.js canvas.
96
110
  * @csspart legend - The wrapping DOM legend, rendered unless `withoutLegend` is set.
97
- * @csspart legend-item - A keyboard-operable series visibility toggle.
98
- * @csspart legend-item-hidden - Added to a `legend-item` while its dataset is hidden.
99
- * @csspart legend-swatch - The resolved series-color swatch in a legend item.
111
+ * @csspart legend-item - A keyboard-operable dataset or category visibility toggle.
112
+ * @csspart legend-item-hidden - Added while the legend item's dataset or category is hidden.
113
+ * @csspart legend-swatch - The resolved dataset/category color swatch in a legend item.
100
114
  * @csspart reset-zoom-button - The reset-zoom control when zoom is active.
101
115
  * @csspart description - The accessible chart summary.
102
116
  * @csspart data-table - The optional generated or slotted data table.
@@ -190,7 +204,27 @@ get datasets():readonly LyraChartSeries[];set datasets(value:readonly LyraChartS
190
204
  * an empty array deliberately makes every dataset visible. Invalid, duplicate, and out-of-range
191
205
  * indexes are ignored when state is applied or emitted.
192
206
  */
193
- hiddenDatasets?:readonly number[];
207
+ hiddenDatasets?:readonly number[];private _hiddenDatums;
208
+ /**
209
+ * Controlled hidden source category indexes for pie/doughnut/polar-area charts, shared by all
210
+ * datasets/rings. Clone-owned; invalid, duplicate and out-of-range indexes are ignored when
211
+ * applied or emitted. Empty restores all categories. Does not alter dataset visibility or exports.
212
+ * @default []
213
+ */
214
+ get hiddenDatums():readonly number[];set hiddenDatums(value:readonly number[]);
215
+ /**
216
+ * `datum` renders category toggles for pie/doughnut/polar-area charts. Categories use the first
217
+ * dataset's colors and values; a toggle affects that category in every ring. Other chart types
218
+ * retain dataset legends. Both modes use the generated accessible-data sampling budget.
219
+ */
220
+ legendMode:LyraChartLegendMode;
221
+ /**
222
+ * `auto` retains optional legend formatting; `label` omits values even with a formatter; `value`
223
+ * appends a formatted value. `percentage` uses locale percentages of the absolute represented
224
+ * legend values, including hidden items (zero totals yield 0%). Dataset values are sampled sums;
225
+ * category values come from the first dataset. Tooltip and axis formatting are unchanged.
226
+ */
227
+ legendDisplay:LyraChartLegendDisplay;
194
228
  /**
195
229
  * Accessible chart description, which REPLACES the generated summary rather than adding to it.
196
230
  *
@@ -207,6 +241,13 @@ hiddenDatasets?:readonly number[];
207
241
  description:string|null;
208
242
  /** Controls which cartesian grid axes are drawn. */
209
243
  grid:LyraChartGrid;
244
+ /** Complete cartesian axis visibility, independent of grid. `y` also controls the y2 axis.
245
+ * Radial charts ignore this setting. Explicit config scale options retain precedence. */
246
+ axes:LyraChartAxes;
247
+ /** Compact cartesian plot: hide axes and remove automatic layout padding. Set height and
248
+ * withoutLegend for a small histogram/sparkline. Preserves data tables, tooltips and keyboard
249
+ * actions; radial charts ignore this setting. Explicit config options retain precedence. */
250
+ compact:boolean;
210
251
  /** Chart.js index axis. `'y'` is Chart.js's own mechanism for horizontal bars (it also flips
211
252
  * line/area types onto a horizontal category axis). */
212
253
  indexAxis:LyraChartIndexAxis;
@@ -315,7 +356,8 @@ stackTotals:boolean;
315
356
  * config in `buildConfig()` (any key at any nesting depth — e.g.
316
357
  * `config.options.scales.y.min` — wins over the generated equivalent
317
358
  * without discarding sibling keys the generated config set), for consumers
318
- * who need full Chart.js control beyond the simplified `LyraChartSeries` shape.
359
+ * who need full Chart.js control beyond the simplified `LyraChartSeries` shape. Generated bar
360
+ * borderWidth/borderRadius defer to authored bar option scopes; explicit series.width still wins.
319
361
  *
320
362
  * Caveat: the merge only recurses into plain objects — an *array* value
321
363
  * (e.g. `config.plugins` as an inline-plugin array, or `config.data.datasets`)
@@ -344,7 +386,9 @@ private callbackIndexes;
344
386
  /** The public controlled snapshot when supplied, otherwise the effective configuration default. */
345
387
  private effectiveHiddenDatasetIndexes;
346
388
  /** Applies the public controlled state to the live Chart.js metadata after any data replacement. */
347
- private applyDatasetVisibility;private hasExplicitConfigData;private datasetLabel;private datasetValues;private isPointDataset;
389
+ private applyDatasetVisibility;private isSliceChart;
390
+ /** Reconcile through Chart.js's public category visibility API after data/index remapping. */
391
+ private applyDatumVisibility;private hasExplicitConfigData;private datasetLabel;private datasetValues;private isPointDataset;
348
392
  /**
349
393
  * Appends one streamed category to numeric `data` series and optionally keeps only the newest
350
394
  * `maxPoints` categories. An explicitly supplied `config.data` member is updated at that same
@@ -366,7 +410,7 @@ private loading;
366
410
  */
367
411
  private loadFailed;private loadLibrary;private loadZoomFeature;private loadDataLabelsFeature;private loadAnnotationFeature;private loadGeneration;private zoomLoadGeneration;private dataLabelsLoadGeneration;private annotationLoadGeneration;private zoomFeatureState;private dataLabelsFeatureState;private annotationFeatureState;private dataLabelsPlugin?;private annotationPlugin?;private stopAnnotationRegistrationWatch?;private zoomed;private visible;private intersectionObserver?;private intersectionGeneration;private reducedMotionQuery?;private reducedMotionWindow?;private canvasEl?;
368
412
  /** The current Chart.js instance. Read it only while the element is connected and loaded. */
369
- chart?:LyraChartInstance;private chartJsModule?;private resizeObserver?;private resizeDrawFrame?;private resizeDrawFrameOwner?;private lastObservedInlineSize?;private autoLegendPosition;private resolvedChartArea?;private chartAreaUpdateQueued;private builtType?;private builtPlugins;private visualDatasetSourceIndexes?;private visualRowSourceIndexes?;private suppressZoomComplete;private descriptionId;private keyboardDatumIndex;private keyboardDatumAnnouncement;
413
+ chart?:LyraChartInstance;private scaledSliceDatasets;private chartJsModule?;private resizeObserver?;private resizeDrawFrame?;private resizeDrawFrameOwner?;private lastObservedInlineSize?;private autoLegendPosition;private resolvedChartArea?;private chartAreaUpdateQueued;private builtType?;private builtPlugins;private visualDatasetSourceIndexes?;private visualRowSourceIndexes?;private suppressZoomComplete;private descriptionId;private keyboardDatumIndex;private keyboardDatumAnnouncement;
370
414
  /** Shared document-level regions that carry announcements. The visually hidden datum copy is an
371
415
  * inspection mirror only because shadow-root live regions are not consistently spoken. */
372
416
  private politeAnnouncementSink?;private assertiveAnnouncementSink?;private lastDataTruncationAnnouncement;
@@ -420,6 +464,9 @@ protected willUpdate(changed:PropertyValues):void;protected updated(changed:Prop
420
464
  * unconditional post-update redraw.
421
465
  */
422
466
  protected chartContentChanged(changed:PropertyValues):boolean;private seriesToDataset;
467
+ /** Let Chart.js resolve authored bar defaults, including scriptable/indexable values, at their
468
+ * native scope. A generated per-dataset fallback would shadow every chart-level scope. */
469
+ private hasConfiguredBarOption;
423
470
  /**
424
471
  * Resolves the `--lr-chart-*` theme tokens (declared in
425
472
  * `chart.styles.ts`, each layered over an existing semantic token) via
@@ -501,7 +548,7 @@ seriesPalette():string[];private tickOptions;private effectiveIndexAxis;
501
548
  /** The resolved Chart.js scale type for a value axis, honoring `scaleType`. */
502
549
  private valueScaleType;
503
550
  /** `beginAtZero` for a value axis, suppressed on a logarithmic scale which cannot place zero. */
504
- private valueBeginAtZero;private scaleBounds;private gridAxisVisible;
551
+ private valueBeginAtZero;private scaleBounds;private gridAxisVisible;private axisVisible;
505
552
  /**
506
553
  * Builds `options.scales` for the effective chart type: no scale at all for
507
554
  * pie/doughnut (a proportional-area chart has no axis), the single radial
@@ -553,7 +600,9 @@ private localizedChartType;private formatValue;private legendValue;private legen
553
600
  */
554
601
  private legendGridPlacement;private updateChartArea;
555
602
  /** The current Chart.js chart-area geometry in canvas-local coordinates. */
556
- get chartArea():LyraChartArea|undefined;private buildConfig;private draw;private drawIfVisible;
603
+ get chartArea():LyraChartArea|undefined;private buildConfig;
604
+ /** Keep proportional slice geometry finite while every Lyra readout retains source values. */
605
+ private scaleExtremeSlices;private draw;private drawIfVisible;
557
606
  /** Destroys the peer instance and reconciles the Lyra-owned zoom state in one place. */
558
607
  private discardChart;
559
608
  /**
@@ -589,4 +638,4 @@ private summarizeSeries;private formatSummaryValue;private formatTableValue;
589
638
  private formatExportValue;
590
639
  /** The `'spoken'` surface, for the live announcement a keyboard user hears. Falls back to the
591
640
  * locale number format, which is what it always used. */
592
- private formatSpokenValue;private tableStackAxes;private tableStackTotalLabel;private accessibleName;private chartDescription;private dataTableSample;private generatedDataIsSampled;private dataTruncationMessage;private renderDataTable;private hasCustomDataTable;private legendTextFor;private legendColor;private toggleDataset;private renderLegend;render():TemplateResult;private get showsLegend();}declare global{interface HTMLElementTagNameMap{'lr-chart':LyraChart;}}
641
+ private formatSpokenValue;private tableStackAxes;private tableStackTotalLabel;private accessibleName;private chartDescription;private dataTableSample;private generatedDataIsSampled;private dataTruncationMessage;private renderDataTable;private hasCustomDataTable;private legendTextFor;private legendColor;private toggleDataset;private toggleDatum;private renderLegend;render():TemplateResult;private get showsLegend();}declare global{interface HTMLElementTagNameMap{'lr-chart':LyraChart;}}