@nanahoshi/mona-ui 0.26.0 → 0.26.2
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/chart/README.md +2 -2
- package/docs/chart-bar.md +714 -0
- package/docs/chart-financial.md +567 -0
- package/docs/chart-funnel.md +546 -0
- package/docs/chart-heatmap.md +535 -0
- package/docs/chart-line-area.md +462 -0
- package/docs/chart-pie.md +645 -0
- package/docs/chart-radar.md +518 -0
- package/docs/chart-radial.md +658 -0
- package/docs/chart-scatter.md +479 -0
- package/docs/chart-treemap.md +651 -0
- package/docs/chart.md +263 -1856
- package/fesm2022/nanahoshi-mona-ui-button.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +126 -66
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +5 -8
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +7 -2
- package/llms.txt +11 -1
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-chart.d.ts +50 -20
- package/types/nanahoshi-mona-ui-internal.d.ts +6 -2
|
@@ -3426,8 +3426,8 @@ interface ChartScatterSeriesRegistration extends ChartCartesianMarkerSeriesRegis
|
|
|
3426
3426
|
type: "scatter";
|
|
3427
3427
|
}
|
|
3428
3428
|
interface ChartBubbleSeriesRegistration extends ChartCartesianMarkerSeriesRegistrationBase {
|
|
3429
|
-
maxRadius: Signal<number>;
|
|
3430
|
-
minRadius: Signal<number>;
|
|
3429
|
+
maxRadius: Signal<number | undefined>;
|
|
3430
|
+
minRadius: Signal<number | undefined>;
|
|
3431
3431
|
sizeField: Signal<ChartField>;
|
|
3432
3432
|
sizeFormatter?: Signal<ChartValueFormatter | undefined>;
|
|
3433
3433
|
type: "bubble";
|
|
@@ -3537,7 +3537,7 @@ interface ChartFinancialSeriesRegistrationBase {
|
|
|
3537
3537
|
readonly valueFormatter: Signal<ChartAxisFormatter | undefined>;
|
|
3538
3538
|
readonly visible: Signal<boolean>;
|
|
3539
3539
|
readonly wickColor: Signal<string | undefined>;
|
|
3540
|
-
readonly wickWidth: Signal<number>;
|
|
3540
|
+
readonly wickWidth: Signal<number | undefined>;
|
|
3541
3541
|
readonly xAxisId: Signal<string | undefined>;
|
|
3542
3542
|
readonly xField: Signal<ChartField | undefined>;
|
|
3543
3543
|
readonly yAxisId: Signal<string | undefined>;
|
|
@@ -5349,7 +5349,7 @@ declare class PieSeriesComponent implements OnInit {
|
|
|
5349
5349
|
*/
|
|
5350
5350
|
readonly padAngle: _angular_core.InputSignal<number>;
|
|
5351
5351
|
/**
|
|
5352
|
-
* @description Whether to display inside
|
|
5352
|
+
* @description Whether to display slice labels, inside or outside as `labelPosition` sets.
|
|
5353
5353
|
* @default false
|
|
5354
5354
|
*/
|
|
5355
5355
|
readonly showLabels: _angular_core.InputSignal<boolean>;
|
|
@@ -5496,7 +5496,7 @@ declare class DonutSeriesComponent implements OnInit {
|
|
|
5496
5496
|
*/
|
|
5497
5497
|
readonly padAngle: _angular_core.InputSignal<number>;
|
|
5498
5498
|
/**
|
|
5499
|
-
* @description Whether to display inside
|
|
5499
|
+
* @description Whether to display slice labels, inside or outside as `labelPosition` sets.
|
|
5500
5500
|
* @default false
|
|
5501
5501
|
*/
|
|
5502
5502
|
readonly showLabels: _angular_core.InputSignal<boolean>;
|
|
@@ -5953,15 +5953,17 @@ declare class BubbleSeriesComponent implements OnInit {
|
|
|
5953
5953
|
*/
|
|
5954
5954
|
readonly keyField: _angular_core.InputSignal<ChartField | undefined>;
|
|
5955
5955
|
/**
|
|
5956
|
-
* @description Maximum rendered pixel radius for the largest data size value.
|
|
5957
|
-
*
|
|
5956
|
+
* @description Maximum rendered pixel radius for the largest data size value. When unset, the series reads
|
|
5957
|
+
* `--mona-chart-bubble-max-radius`, or uses `24`.
|
|
5958
|
+
* @default undefined
|
|
5958
5959
|
*/
|
|
5959
|
-
readonly maxRadius: _angular_core.InputSignal<number>;
|
|
5960
|
+
readonly maxRadius: _angular_core.InputSignal<number | undefined>;
|
|
5960
5961
|
/**
|
|
5961
|
-
* @description Minimum rendered pixel radius for the smallest data size value.
|
|
5962
|
-
*
|
|
5962
|
+
* @description Minimum rendered pixel radius for the smallest data size value. When unset, the series reads
|
|
5963
|
+
* `--mona-chart-bubble-min-radius`, or uses `4`.
|
|
5964
|
+
* @default undefined
|
|
5963
5965
|
*/
|
|
5964
|
-
readonly minRadius: _angular_core.InputSignal<number>;
|
|
5966
|
+
readonly minRadius: _angular_core.InputSignal<number | undefined>;
|
|
5965
5967
|
/**
|
|
5966
5968
|
* @description Name of the series displayed in legends and tooltips.
|
|
5967
5969
|
* @default "Bubble"
|
|
@@ -6410,7 +6412,7 @@ declare class CandlestickSeriesComponent implements OnInit {
|
|
|
6410
6412
|
readonly fallingColor: _angular_core.InputSignal<string>;
|
|
6411
6413
|
/**
|
|
6412
6414
|
* @description Visual fill mode for candle bodies: 'filled' (solid fill) or 'hollow' (rising hollow, falling filled).
|
|
6413
|
-
* @default "
|
|
6415
|
+
* @default "hollow"
|
|
6414
6416
|
*/
|
|
6415
6417
|
readonly fillMode: _angular_core.InputSignal<ChartFinancialFillMode>;
|
|
6416
6418
|
/**
|
|
@@ -6487,10 +6489,11 @@ declare class CandlestickSeriesComponent implements OnInit {
|
|
|
6487
6489
|
*/
|
|
6488
6490
|
readonly wickColor: _angular_core.InputSignal<string>;
|
|
6489
6491
|
/**
|
|
6490
|
-
* @description Pixel stroke width for candle wicks.
|
|
6491
|
-
*
|
|
6492
|
+
* @description Pixel stroke width for candle wicks. When unset, the series reads
|
|
6493
|
+
* `--mona-chart-financial-wick-width`, or uses `1`.
|
|
6494
|
+
* @default undefined
|
|
6492
6495
|
*/
|
|
6493
|
-
readonly wickWidth: _angular_core.InputSignal<number>;
|
|
6496
|
+
readonly wickWidth: _angular_core.InputSignal<number | undefined>;
|
|
6494
6497
|
/**
|
|
6495
6498
|
* @description Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used.
|
|
6496
6499
|
* @default undefined
|
|
@@ -6638,10 +6641,11 @@ declare class OhlcSeriesComponent implements OnInit {
|
|
|
6638
6641
|
*/
|
|
6639
6642
|
readonly wickColor: _angular_core.InputSignal<string>;
|
|
6640
6643
|
/**
|
|
6641
|
-
* @description Pixel stroke width for OHLC stems and tick arms.
|
|
6642
|
-
*
|
|
6644
|
+
* @description Pixel stroke width for OHLC stems and tick arms. When unset, the series reads
|
|
6645
|
+
* `--mona-chart-financial-wick-width`, or uses `1`.
|
|
6646
|
+
* @default undefined
|
|
6643
6647
|
*/
|
|
6644
|
-
readonly wickWidth: _angular_core.InputSignal<number>;
|
|
6648
|
+
readonly wickWidth: _angular_core.InputSignal<number | undefined>;
|
|
6645
6649
|
/**
|
|
6646
6650
|
* @description Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used.
|
|
6647
6651
|
* @default undefined
|
|
@@ -6735,6 +6739,7 @@ declare class RadialBarSeriesComponent implements OnInit {
|
|
|
6735
6739
|
readonly fillOpacity: _angular_core.InputSignal<number | undefined>;
|
|
6736
6740
|
/**
|
|
6737
6741
|
* @description The hidden item IDs. Bind `[(hiddenItemIds)]` for two-way binding; legend toggles write to it.
|
|
6742
|
+
* Build an ID with `chartItemKeyId(key)` when `keyField` is set, or else with `chartItemCategoryId(category)`.
|
|
6738
6743
|
* @default []
|
|
6739
6744
|
*/
|
|
6740
6745
|
readonly hiddenItemIds: _angular_core.ModelSignal<readonly string[]>;
|
|
@@ -6882,6 +6887,7 @@ declare class RoseSeriesComponent implements OnInit {
|
|
|
6882
6887
|
readonly fillOpacity: _angular_core.InputSignal<number | undefined>;
|
|
6883
6888
|
/**
|
|
6884
6889
|
* @description The hidden item IDs. Bind `[(hiddenItemIds)]` for two-way binding; legend toggles write to it.
|
|
6890
|
+
* Build an ID with `chartItemKeyId(key)` when `keyField` is set, or else with `chartItemCategoryId(category)`.
|
|
6885
6891
|
* @default []
|
|
6886
6892
|
*/
|
|
6887
6893
|
readonly hiddenItemIds: _angular_core.ModelSignal<readonly string[]>;
|
|
@@ -7146,6 +7152,7 @@ declare class TreemapSeriesComponent implements OnInit {
|
|
|
7146
7152
|
readonly fillOpacity: _angular_core.InputSignal<number | undefined>;
|
|
7147
7153
|
/**
|
|
7148
7154
|
* @description The hidden top-level node IDs. Bind `[(hiddenNodeIds)]` for two-way binding; legend toggles write to it.
|
|
7155
|
+
* With `keyField`, build an ID with `chartItemKeyId(key)`; otherwise read IDs from `nodeVisibilityChange`.
|
|
7149
7156
|
* @default []
|
|
7150
7157
|
*/
|
|
7151
7158
|
readonly hiddenNodeIds: _angular_core.ModelSignal<readonly string[]>;
|
|
@@ -7330,6 +7337,7 @@ declare class FunnelSeriesComponent implements OnInit {
|
|
|
7330
7337
|
readonly gap: _angular_core.InputSignal<number>;
|
|
7331
7338
|
/**
|
|
7332
7339
|
* @description The hidden stage IDs. Bind `[(hiddenStageIds)]` for two-way binding; legend toggles write to it.
|
|
7340
|
+
* Build an ID with `chartItemKeyId(key)` when `keyField` is set, or with `chartItemIndexId(index)`.
|
|
7333
7341
|
* @default []
|
|
7334
7342
|
*/
|
|
7335
7343
|
readonly hiddenStageIds: _angular_core.ModelSignal<readonly string[]>;
|
|
@@ -8026,5 +8034,27 @@ declare class ChartBrushComponent implements OnInit {
|
|
|
8026
8034
|
|
|
8027
8035
|
declare const CHART_DEFAULT_MESSAGES: MonaChartMessages;
|
|
8028
8036
|
|
|
8029
|
-
|
|
8030
|
-
|
|
8037
|
+
/** A value that can identify a chart item: a `keyField` value or a category. */
|
|
8038
|
+
type ChartItemKey = boolean | Date | number | string;
|
|
8039
|
+
/**
|
|
8040
|
+
* The ID of the item whose category is `category`, as a radial bar or rose series gives an item without a `keyField`
|
|
8041
|
+
* value. Use it in `hiddenItemIds`. Returns `undefined` for a number that isn't finite or a date that isn't valid,
|
|
8042
|
+
* which can't identify an item.
|
|
8043
|
+
*/
|
|
8044
|
+
declare function chartItemCategoryId(category: boolean | string): string;
|
|
8045
|
+
declare function chartItemCategoryId(category: ChartItemKey): string | undefined;
|
|
8046
|
+
/**
|
|
8047
|
+
* The ID of the item in row `index`, as a funnel stage, waterfall step, or radial bar or rose item gets it when it has
|
|
8048
|
+
* no `keyField` value (and, for a radial series, no category). It follows the position, not the row.
|
|
8049
|
+
*/
|
|
8050
|
+
declare function chartItemIndexId(index: number): string;
|
|
8051
|
+
/**
|
|
8052
|
+
* The ID of the item whose `keyField` value is `key`, as funnel stages, treemap nodes, waterfall steps and radial bar
|
|
8053
|
+
* and rose items use it. Use it in `hiddenStageIds`, `hiddenNodeIds` or `hiddenItemIds`, or to compare with an ID an
|
|
8054
|
+
* event gives. Returns `undefined` for a number that isn't finite or a date that isn't valid, which can't be a key.
|
|
8055
|
+
*/
|
|
8056
|
+
declare function chartItemKeyId(key: boolean | string): string;
|
|
8057
|
+
declare function chartItemKeyId(key: ChartItemKey): string | undefined;
|
|
8058
|
+
|
|
8059
|
+
export { AreaSeriesComponent, BarSeriesComponent, BubbleSeriesComponent, CHART_DEFAULT_MESSAGES, CandlestickSeriesComponent, ChartAngularAxisComponent, ChartAnnotationComponent, ChartAnnotationLabelTemplateDirective, ChartAxisLabelTemplateDirective, ChartBrushComponent, ChartCenterTemplateDirective, ChartComponent, ChartCrosshairComponent, ChartCrosshairLabelTemplateDirective, ChartDataLabelTemplateDirective, ChartExportError, ChartFunnelLabelTemplateDirective, ChartGaugeCenterTemplateDirective, ChartLegendComponent, ChartLegendItemTemplateDirective, ChartNoDataTemplateDirective, ChartRadialAxisComponent, ChartReferenceBandComponent, ChartReferenceLabelTemplateDirective, ChartReferenceLineComponent, ChartSelectionComponent, ChartSliceLabelTemplateDirective, ChartSubtitleTemplateDirective, ChartTitleTemplateDirective, ChartTooltipComponent, ChartTooltipTemplateDirective, ChartTreemapLabelTemplateDirective, ChartWaterfallLabelTemplateDirective, ChartXAxisComponent, ChartYAxisComponent, DonutSeriesComponent, FunnelSeriesComponent, GaugeSeriesComponent, HeatmapSeriesComponent, LineSeriesComponent, OhlcSeriesComponent, PieSeriesComponent, PolarSeriesComponent, RadarSeriesComponent, RadialBarSeriesComponent, RangeAreaSeriesComponent, RangeBarSeriesComponent, RoseSeriesComponent, ScatterSeriesComponent, TreemapSeriesComponent, WaterfallSeriesComponent, chartItemCategoryId, chartItemIndexId, chartItemKeyId, getChartSeriesFamily, isCartesianCoordinateFamily, isHierarchicalCoordinateFamily, isPolarCoordinateFamily };
|
|
8060
|
+
export type { ChartAnimationEasing, ChartAnimationInput, ChartAnimationOptions, ChartAnnotationAxisValue, ChartAnnotationLabelPlacement, ChartAnnotationLabelTemplateContext, ChartAnnotationMarker, ChartAreaFillMode, ChartAxisFormatter, ChartAxisLabelRotation, ChartAxisLabelTemplateContext, ChartAxisPosition, ChartAxisTick, ChartBarOrientation, ChartBrushActivation, ChartBrushAxisRange, ChartBrushCancelReason, ChartBrushCategoryRange, ChartBrushChangeEvent, ChartBrushContinuousRange, ChartBrushHitPolicy, ChartBrushLineStyle, ChartBrushMode, ChartBrushPhase, ChartBrushSelectionBehavior, ChartCategoryViewportWindow, ChartCenterTemplateContext, ChartColorLegendScale, ChartColorLegendStop, ChartColorLegendTick, ChartContinuousViewportWindow, ChartCoordinateSystem, ChartCrosshairAxisLabelContext, ChartCrosshairLineStyle, ChartCrosshairMode, ChartCrosshairResolvedAxisValue, ChartCrosshairSnapMode, ChartCrosshairSynchronizationOptions, ChartCurve, ChartDataLabelContext, ChartDataLabelFormatter, ChartDataLabelOptions, ChartDataLabelPosition, ChartDataLabelsInput, ChartDownloadOptions, ChartDownsamplingAlgorithm, ChartDownsamplingInput, ChartDownsamplingOptions, ChartExportBackground, ChartExportBaseOptions, ChartExportErrorCode, ChartExportFormat, ChartExportOptions, ChartExportPresentationOptions, ChartExportResult, ChartField, ChartFinancialDirection, ChartFinancialFillMode, ChartFunnelLabelContent, ChartFunnelLabelTemplateContext, ChartFunnelOrientation, ChartFunnelPointMetadata, ChartFunnelStageContext, ChartFunnelStageVisibilityEvent, ChartGaugeCenterTemplateContext, ChartGaugeIndicator, ChartHeaderAlignment, ChartHeatmapCategory, ChartHeatmapCellData, ChartHeatmapColorMode, ChartHierarchicalKind, ChartHierarchyNodeContext, ChartHierarchyPointMetadata, ChartItemKey, ChartLabelMeasurement, ChartLegendItem, ChartLegendItemKind, ChartLegendItemTemplateContext, ChartLegendMode, ChartLegendPosition, ChartLineStyle, ChartNavigationAxisTarget, ChartNavigationInput, ChartNavigationOptions, ChartNumericScaleType, ChartOhlcPointValue, ChartOverlayLayer, ChartPadding, ChartPdfExportOptions, ChartPdfMargins, ChartPdfPageOptions, ChartPdfPageSize, ChartPdfRenderMode, ChartPngExportOptions, ChartPoint, ChartPointEvent, ChartPointFocusEvent, ChartPointValue, ChartPointValueKind, ChartPolarFillMode, ChartPolarLabelContent, ChartPolarLabelPosition, ChartPolarLabelSide, ChartRadialArcFillMode, ChartRadialCurve, ChartRadialDatumVisibilityEvent, ChartRadialFillMode, ChartRadialGridShape, ChartRangePointValue, ChartRect, ChartReferenceBandLabelContext, ChartReferenceLabelPosition, ChartReferenceLabelTemplateContext, ChartReferenceLineLabelContext, ChartReferenceLineStyle, ChartRendererMode, ChartRoseScaleMode, ChartScalarPointValue, ChartSelectedPoint, ChartSelectionChangeEvent, ChartSelectionChangeSource, ChartSelectionMode, ChartSeriesFamily, ChartSeriesStyle, ChartSeriesType, ChartSeriesVisibilityEvent, ChartSize, ChartSliceContext, ChartSliceLabelTemplateContext, ChartSliceVisibilityEvent, ChartStackMode, ChartSubtitleTemplateContext, ChartSvgExportOptions, ChartSynchronizationAxisMapping, ChartSynchronizationInput, ChartSynchronizationMode, ChartSynchronizationOptions, ChartTitleTemplateContext, ChartTooltipPointContext, ChartTooltipTemplateContext, ChartTreemapLabelTemplateContext, ChartTreemapNodeVisibilityEvent, ChartTreemapSort, ChartTreemapTile, ChartValueAccessor, ChartValueFormatter, ChartViewportAxisRef, ChartViewportChangeEvent, ChartViewportChangePhase, ChartViewportChangeSource, ChartViewportConstraint, ChartViewportLinkGroup, ChartViewportLinkMode, ChartViewportState, ChartViewportSynchronizationOptions, ChartViewportWindow, ChartWaterfallDatumKind, ChartWaterfallLabelTemplateContext, ChartWaterfallPointContext, ChartWaterfallPointValue, ChartWaterfallVisualKind, ChartXAxisPosition, ChartXAxisType, ChartYAxisPosition, ChartYAxisSide, ChartYAxisType, HeatmapCellClickEvent, HeatmapColorStop };
|
|
@@ -237,8 +237,12 @@ type VariantInputs<T> = {
|
|
|
237
237
|
* has to be positioned.
|
|
238
238
|
*/
|
|
239
239
|
declare const themeSelectionBarClasses = "\n before:absolute before:inset-y-0 before:start-0 before:w-0.5 before:bg-(--color-selected-border)\n before:forced-color-adjust-none forced-colors:before:bg-[Highlight]\n";
|
|
240
|
-
/**
|
|
241
|
-
|
|
240
|
+
/**
|
|
241
|
+
* A border in the text's color for a selected control, drawn only when the user asks for more contrast or forced colors
|
|
242
|
+
* are on. Elsewhere the fill says it alone. A control with a border of its own adds `after:-inset-px`, so this one
|
|
243
|
+
* replaces it.
|
|
244
|
+
*/
|
|
245
|
+
declare const themeSelectionBorderClasses = "\n relative\n after:pointer-events-none after:absolute after:inset-0\n after:rounded-[inherit] after:border-current\n contrast-more:after:border-2 forced-colors:after:border-2\n";
|
|
242
246
|
declare const themeControlBackdropClasses = "\n [background-image:var(--mona-effect-control-background-image,none)]\n [backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n";
|
|
243
247
|
declare const themeControlSurfaceClasses = "\n [background-color:var(--mona-effect-control-background-color,var(--color-input-background))]\n \n [background-image:var(--mona-effect-control-background-image,none)]\n [backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n\n";
|
|
244
248
|
declare const themeRaisedBackdropClasses = "\n [background-image:var(--mona-effect-raised-background-image,none)]\n [backdrop-filter:var(--mona-effect-raised-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-raised-backdrop-filter,none)]\n";
|