@nanahoshi/mona-ui 0.27.1 → 0.27.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.
Files changed (168) hide show
  1. package/docs/api/auto-complete.md +67 -0
  2. package/docs/api/avatar.md +31 -0
  3. package/docs/api/breadcrumb.md +74 -0
  4. package/docs/api/button-group.md +71 -0
  5. package/docs/api/button.md +84 -0
  6. package/docs/api/calendar.md +123 -0
  7. package/docs/api/card.md +97 -0
  8. package/docs/api/chart.md +4380 -0
  9. package/docs/api/check-box.md +70 -0
  10. package/docs/api/chip.md +55 -0
  11. package/docs/api/circular-progress-bar.md +71 -0
  12. package/docs/api/collapsible.md +71 -0
  13. package/docs/api/color-gradient.md +54 -0
  14. package/docs/api/color-palette.md +52 -0
  15. package/docs/api/color-picker.md +89 -0
  16. package/docs/api/combo-box.md +69 -0
  17. package/docs/api/command.md +282 -0
  18. package/docs/api/common.md +599 -0
  19. package/docs/api/contextmenu.md +239 -0
  20. package/docs/api/date-input.md +119 -0
  21. package/docs/api/date-picker.md +67 -0
  22. package/docs/api/datetime-picker.md +72 -0
  23. package/docs/api/dialog.md +291 -0
  24. package/docs/api/dropdown-button.md +248 -0
  25. package/docs/api/dropdown-list.md +72 -0
  26. package/docs/api/dropdowns.md +172 -0
  27. package/docs/api/editor.md +117 -0
  28. package/docs/api/expansion-panel.md +85 -0
  29. package/docs/api/fieldset.md +33 -0
  30. package/docs/api/filter.md +116 -0
  31. package/docs/api/grid.md +1445 -0
  32. package/docs/api/i18n.md +1699 -0
  33. package/docs/api/label.md +58 -0
  34. package/docs/api/list-box.md +301 -0
  35. package/docs/api/list-view.md +294 -0
  36. package/docs/api/list.md +119 -0
  37. package/docs/api/locales.md +134 -0
  38. package/docs/api/menubar.md +275 -0
  39. package/docs/api/multi-select.md +92 -0
  40. package/docs/api/notification.md +164 -0
  41. package/docs/api/numeric-text-box.md +130 -0
  42. package/docs/api/otp-input.md +100 -0
  43. package/docs/api/pager.md +371 -0
  44. package/docs/api/placeholder.md +18 -0
  45. package/docs/api/popover.md +170 -0
  46. package/docs/api/popup-menu.md +328 -0
  47. package/docs/api/popup.md +299 -0
  48. package/docs/api/progress-bar.md +79 -0
  49. package/docs/api/query.md +367 -0
  50. package/docs/api/radio-button.md +113 -0
  51. package/docs/api/rating.md +187 -0
  52. package/docs/api/scroll-view.md +93 -0
  53. package/docs/api/segmented.md +114 -0
  54. package/docs/api/sheet.md +65 -0
  55. package/docs/api/sidebar.md +583 -0
  56. package/docs/api/skeleton.md +26 -0
  57. package/docs/api/slider.md +173 -0
  58. package/docs/api/spinner.md +132 -0
  59. package/docs/api/split-button.md +261 -0
  60. package/docs/api/splitter.md +57 -0
  61. package/docs/api/stepper.md +148 -0
  62. package/docs/api/switch.md +78 -0
  63. package/docs/api/tabs.md +139 -0
  64. package/docs/api/text-area.md +20 -0
  65. package/docs/api/text-box.md +106 -0
  66. package/docs/api/theme.md +627 -0
  67. package/docs/api/time-picker.md +69 -0
  68. package/docs/api/time-selector.md +54 -0
  69. package/docs/api/tooltip.md +112 -0
  70. package/docs/api/tree-view.md +631 -0
  71. package/docs/api/window.md +245 -0
  72. package/docs/auto-complete.md +28 -329
  73. package/docs/avatar.md +4 -24
  74. package/docs/breadcrumb.md +10 -65
  75. package/docs/button-group.md +7 -60
  76. package/docs/button.md +8 -67
  77. package/docs/calendar.md +16 -121
  78. package/docs/card.md +16 -79
  79. package/docs/chart-bar.md +16 -234
  80. package/docs/chart-financial.md +10 -121
  81. package/docs/chart-funnel.md +13 -176
  82. package/docs/chart-heatmap.md +15 -131
  83. package/docs/chart-line-area.md +12 -137
  84. package/docs/chart-pie.md +17 -221
  85. package/docs/chart-radar.md +13 -129
  86. package/docs/chart-radial.md +13 -211
  87. package/docs/chart-scatter.md +6 -74
  88. package/docs/chart-treemap.md +14 -196
  89. package/docs/chart.md +154 -1892
  90. package/docs/checkbox.md +5 -61
  91. package/docs/chip.md +7 -42
  92. package/docs/circular-progress-bar.md +9 -61
  93. package/docs/collapsible.md +5 -87
  94. package/docs/color-gradient.md +8 -81
  95. package/docs/color-palette.md +7 -69
  96. package/docs/color-picker.md +9 -105
  97. package/docs/combo-box.md +28 -331
  98. package/docs/command.md +25 -236
  99. package/docs/contextmenu.md +15 -140
  100. package/docs/date-picker.md +7 -110
  101. package/docs/datetime-picker.md +7 -129
  102. package/docs/decimal-textbox.md +6 -69
  103. package/docs/dialog.md +23 -263
  104. package/docs/dropdown-button.md +15 -146
  105. package/docs/dropdown-list.md +29 -332
  106. package/docs/editor.md +8 -164
  107. package/docs/expansion-panel.md +7 -69
  108. package/docs/fieldset.md +5 -24
  109. package/docs/grid-columns.md +12 -92
  110. package/docs/grid-editing.md +29 -291
  111. package/docs/grid-grouping.md +11 -50
  112. package/docs/grid-rows.md +10 -74
  113. package/docs/grid-selection.md +7 -36
  114. package/docs/grid-server.md +8 -293
  115. package/docs/grid-sorting-filtering.md +10 -333
  116. package/docs/grid-state-export.md +17 -228
  117. package/docs/grid.md +23 -216
  118. package/docs/input.md +7 -19
  119. package/docs/label.md +8 -39
  120. package/docs/list-box.md +21 -253
  121. package/docs/list-view.md +25 -232
  122. package/docs/menubar.md +21 -167
  123. package/docs/multi-select.md +31 -350
  124. package/docs/notification.md +17 -116
  125. package/docs/numeric-textbox.md +9 -78
  126. package/docs/otp-input.md +9 -95
  127. package/docs/pager.md +19 -239
  128. package/docs/placeholder.md +5 -18
  129. package/docs/popover.md +13 -123
  130. package/docs/popup-menu.md +22 -243
  131. package/docs/popup.md +24 -248
  132. package/docs/progress-bar.md +10 -75
  133. package/docs/radio-button.md +8 -96
  134. package/docs/range-slider.md +9 -82
  135. package/docs/rating.md +15 -163
  136. package/docs/scroll-view.md +9 -86
  137. package/docs/segmented.md +8 -90
  138. package/docs/sheet.md +10 -74
  139. package/docs/sidebar-menus.md +20 -155
  140. package/docs/sidebar-state.md +16 -134
  141. package/docs/sidebar.md +18 -218
  142. package/docs/skeleton.md +5 -26
  143. package/docs/slider.md +9 -97
  144. package/docs/spinner.md +15 -95
  145. package/docs/split-button.md +21 -166
  146. package/docs/splitter.md +9 -56
  147. package/docs/stepper.md +13 -127
  148. package/docs/switch.md +8 -58
  149. package/docs/tabs.md +13 -111
  150. package/docs/textarea.md +4 -13
  151. package/docs/textbox.md +10 -77
  152. package/docs/time-picker.md +7 -112
  153. package/docs/tooltip-directive.md +12 -96
  154. package/docs/tooltip.md +12 -96
  155. package/docs/tree-view.md +42 -495
  156. package/docs/window.md +19 -230
  157. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +1 -0
  158. package/fesm2022/nanahoshi-mona-ui-common.mjs +3 -0
  159. package/fesm2022/nanahoshi-mona-ui-date-input.mjs +13 -1
  160. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +5 -0
  161. package/fesm2022/nanahoshi-mona-ui-i18n.mjs +9 -0
  162. package/llms.txt +74 -0
  163. package/package.json +1 -1
  164. package/types/nanahoshi-mona-ui-collapsible.d.ts +2 -0
  165. package/types/nanahoshi-mona-ui-common.d.ts +6 -0
  166. package/types/nanahoshi-mona-ui-date-input.d.ts +18 -1
  167. package/types/nanahoshi-mona-ui-dropdowns.d.ts +6 -0
  168. package/types/nanahoshi-mona-ui-i18n.d.ts +12 -0
@@ -397,139 +397,23 @@ The first arrow key, `Home` or `End` focuses the first or last cell. The rest of
397
397
 
398
398
  ## API
399
399
 
400
- Everything below is imported from `@nanahoshi/mona-ui/chart`.
400
+ Everything below is imported from `@nanahoshi/mona-ui/chart`. Each name links to its reference page, with every input, output, property and method.
401
401
 
402
- ### `HeatmapSeriesComponent`
403
-
404
- Renders a matrix of cells colored by value, with a color scale in the legend.
405
-
406
- **Selector:** `mona-heatmap-series`
407
-
408
- #### Inputs
409
-
410
- | Name | Type | Default | Description |
411
- | --- | --- | --- | --- |
412
- | `borderRadius` | `number \| undefined` | `undefined` | Corner radius in pixels for each individual heat cell. |
413
- | `cellGap` | `number` | `1` | Spacing gap in pixels between adjacent cells. |
414
- | `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
415
- | `color` | `string` | `""` | Explicit primary base color used to derive the heat palette. |
416
- | `colorMode` | `ChartHeatmapColorMode` | `"sequential"` | Color scale mapping mode: 'sequential' for continuous single-hue intensity or 'diverging' for dual-pole deviations. |
417
- | `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of color stops defining the gradient palette. |
418
- | `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
419
- | `field` (required) | `ChartField` | — | Property key or accessor extracting the numeric heat value for each cell. |
420
- | `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to the heat cells (0 to 1). |
421
- | `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
422
- | `max` | `number \| undefined` | `undefined` | Explicit upper bound for the numeric value color domain. |
423
- | `midpoint` | `number \| undefined` | `undefined` | Explicit central midpoint for diverging color scales. |
424
- | `min` | `number \| undefined` | `undefined` | Explicit lower bound for the numeric value color domain. |
425
- | `name` | `string` | `"Heatmap"` | Name of the series displayed in legends, tooltips, and live region announcements. |
426
- | `showValues` | `boolean` | `false` | Whether to render numeric value labels inside individual heat cells on Canvas. |
427
- | `strokeColor` | `string` | `""` | Explicit border stroke color for individual heat cells. |
428
- | `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for cell borders. |
429
- | `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw cell values in labels, tooltips, and live regions. |
430
- | `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
431
- | `xCategories` | `readonly unknown[] \| undefined` | `undefined` | Explicit category ordering for the X axis columns. |
432
- | `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X column category for each cell. |
433
- | `yCategories` | `readonly unknown[] \| undefined` | `undefined` | Explicit category ordering for the Y axis rows. |
434
- | `yField` (required) | `ChartField` | — | Property key or accessor extracting the Y row category for each cell. |
435
-
436
- #### Outputs
437
-
438
- | Name | Type | Description |
402
+ | Name | Kind | Description |
439
403
  | --- | --- | --- |
440
- | `visibleChange` | `boolean` | Emitted when `visible` changes. |
404
+ | [`HeatmapSeriesComponent`](api/chart.md#heatmapseriescomponent) | Component | Renders a matrix of cells colored by value, with a color scale in the legend. |
441
405
 
442
406
  ### Types
443
407
 
444
- #### `ChartColorLegendScale`
445
-
446
- | Name | Type |
447
- | --- | --- |
448
- | `formattedMax` (read-only) | `string` |
449
- | `formattedMidpoint?` (read-only) | `string` |
450
- | `formattedMin` (read-only) | `string` |
451
- | `kind` (read-only) | `"color"` |
452
- | `midpoint?` (read-only) | `number` |
453
- | `mode` (read-only) | `ChartHeatmapColorMode` |
454
- | `stops` (read-only) | `readonly ChartColorLegendStop[]` |
455
- | `ticks` (read-only) | `readonly ChartColorLegendTick[]` |
456
- | `title` (read-only) | `string` |
457
-
458
- #### `ChartColorLegendStop`
459
-
460
- | Name | Type |
461
- | --- | --- |
462
- | `color` (read-only) | `string` |
463
- | `offset` (read-only) | `number` |
464
- | `value` (read-only) | `number` |
465
-
466
- #### `ChartColorLegendTick`
467
-
468
- | Name | Type |
469
- | --- | --- |
470
- | `formattedValue` (read-only) | `string` |
471
- | `offset` (read-only) | `number` |
472
- | `value` (read-only) | `number` |
473
-
474
- #### `ChartHeatmapCategory`
475
-
476
- | Name | Type |
477
- | --- | --- |
478
- | `formattedValue` (read-only) | `string` |
479
- | `index` (read-only) | `number` |
480
- | `key` (read-only) | `string` |
481
- | `value` (read-only) | `unknown` |
482
-
483
- #### `ChartHeatmapCellData`
484
-
485
- **Type parameters:** `TDatum = unknown`
486
-
487
- | Name | Type |
488
- | --- | --- |
489
- | `categoryX` (read-only) | `string` |
490
- | `categoryY` (read-only) | `string` |
491
- | `datum` (read-only) | `TDatum` |
492
- | `formattedValue` (read-only) | `string` |
493
- | `formattedX` (read-only) | `string` |
494
- | `formattedY` (read-only) | `string` |
495
- | `numericValue` (read-only) | `number \| null` |
496
- | `rawValue` (read-only) | `unknown` |
497
- | `xIndex` (read-only) | `number` |
498
- | `yIndex` (read-only) | `number` |
499
-
500
- #### `HeatmapCellClickEvent`
501
-
502
- **Deprecated.** Nothing emits this. Use `pointClick` on the chart.
503
-
504
- **Type parameters:** `T = unknown`
505
-
506
- | Name | Type |
507
- | --- | --- |
508
- | `categoryX` (read-only) | `string` |
509
- | `categoryY` (read-only) | `string` |
510
- | `datum` (read-only) | `T` |
511
- | `formattedValue` (read-only) | `string` |
512
- | `rawValue` (read-only) | `unknown` |
513
- | `seriesId` (read-only) | `string` |
514
- | `seriesName` (read-only) | `string` |
515
- | `seriesType` (read-only) | `"heatmap"` |
516
- | `value` (read-only) | `number \| null` |
517
- | `xIndex` (read-only) | `number` |
518
- | `yIndex` (read-only) | `number` |
519
-
520
- #### `HeatmapColorStop`
521
-
522
- **Deprecated.** No chart input takes this.
523
-
524
- | Name | Type |
525
- | --- | --- |
526
- | `color` (read-only) | `string` |
527
- | `offset` (read-only) | `number` |
528
-
529
- #### `ChartHeatmapColorMode`
530
-
531
- ```typescript
532
- type ChartHeatmapColorMode = "diverging" | "sequential";
533
- ```
534
-
535
- **Documented elsewhere:** [`ChartField`](chart.md), [`ChartValueFormatter`](chart.md)
408
+ | Type | Kind | Description |
409
+ | --- | --- | --- |
410
+ | [`ChartColorLegendScale`](api/chart.md#chartcolorlegendscale) | Interface | |
411
+ | [`ChartColorLegendStop`](api/chart.md#chartcolorlegendstop) | Interface | |
412
+ | [`ChartColorLegendTick`](api/chart.md#chartcolorlegendtick) | Interface | |
413
+ | [`ChartHeatmapCategory`](api/chart.md#chartheatmapcategory) | Interface | |
414
+ | [`ChartHeatmapCellData`](api/chart.md#chartheatmapcelldata) | Interface | |
415
+ | [`HeatmapCellClickEvent`](api/chart.md#heatmapcellclickevent) | Interface | **Deprecated.** Nothing emits this. |
416
+ | [`HeatmapColorStop`](api/chart.md#heatmapcolorstop) | Interface | **Deprecated.** No chart input takes this. |
417
+ | [`ChartHeatmapColorMode`](api/chart.md#chartheatmapcolormode) | Type alias | |
418
+
419
+ **Related types:** [`ChartField`](api/chart.md#chartfield), [`ChartValueFormatter`](api/chart.md#chartvalueformatter)
@@ -318,145 +318,20 @@ The rest of the keys, including selection, brushing and navigation, are listed o
318
318
 
319
319
  ## API
320
320
 
321
- Everything below is imported from `@nanahoshi/mona-ui/chart`.
322
-
323
- ### `AreaSeriesComponent`
324
-
325
- Renders a continuous Cartesian area series supporting gradient fades, solid fills, cumulative stacking, and 100%
326
- normalized bands.
327
-
328
- **Selector:** `mona-area-series`
329
-
330
- #### Inputs
331
-
332
- | Name | Type | Default | Description |
333
- | --- | --- | --- | --- |
334
- | `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
335
- | `color` | `string` | `""` | Explicit stroke and fill color override for the area series. |
336
- | `connectNulls` | `boolean` | `false` | Whether to connect points across null or invalid values without gaps. |
337
- | `curve` | `ChartCurve` | `"linear"` | Curve interpolation style (`"linear"`, `"monotone-x"`, `"natural"`, `"step"`, or `"step-after"`). |
338
- | `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
339
- | `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
340
- | `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
341
- | `field` | `ChartField` | `""` | Property key or accessor extracting the Y value for each data item. |
342
- | `fillMode` | `ChartAreaFillMode` | `"gradient"` | Area fill style (`"gradient"` fading to zero baseline, or uniform `"solid"`). |
343
- | `fillOpacity` | `number \| undefined` | `undefined` | Maximum opacity applied to the area fill. |
344
- | `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
345
- | `lineStyle` | `ChartLineStyle` | `"solid"` | Stroke pattern used for the area's boundary line (`"solid"`, `"dashed"`, or `"dotted"`). |
346
- | `name` | `string` | `""` | Name of the series displayed in legends and tooltips. |
347
- | `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers. |
348
- | `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
349
- | `showPoints` | `boolean` | `false` | Whether to draw point markers at each data coordinate along the top boundary line. |
350
- | `stack` | `string \| undefined` | `undefined` | Named stack group to participate in. Series with matching trimmed stack names stack together. |
351
- | `stackMode` | `ChartStackMode` | `"normal"` | Stacking mode used when stack is specified: 'normal' for raw cumulative values, or 'percent' for 100% normalized segments. |
352
- | `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the area boundary line. |
353
- | `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw Y/data values in tooltips and live region announcements. |
354
- | `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
355
- | `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
356
- | `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X value, overriding the root chart X field. |
357
- | `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
358
-
359
- #### Outputs
360
-
361
- | Name | Type | Description |
362
- | --- | --- | --- |
363
- | `visibleChange` | `boolean` | Emitted when `visible` changes. |
364
-
365
- ### `RangeAreaSeriesComponent`
366
-
367
- Renders continuous Cartesian vertical range bands/areas bounded between lower and upper values (e.g. confidence
368
- intervals, forecast envelopes, or high/low bands).
369
-
370
- **Selector:** `mona-range-area-series`
371
-
372
- #### Inputs
373
-
374
- | Name | Type | Default | Description |
375
- | --- | --- | --- | --- |
376
- | `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
377
- | `color` | `string` | `""` | Explicit stroke and fill color override for the range area series. |
378
- | `connectNulls` | `boolean` | `false` | Whether to connect points across null or invalid values without gaps. |
379
- | `curve` | `ChartCurve` | `"linear"` | Curve interpolation style (`"linear"`, `"monotone-x"`, `"natural"`, `"step"`, or `"step-after"`). |
380
- | `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
381
- | `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
382
- | `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
383
- | `fillOpacity` | `number \| undefined` | `undefined` | Maximum opacity applied to the range area fill. |
384
- | `fromField` (required) | `ChartField` | — | Property key or accessor extracting the starting range value for each data item. |
385
- | `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
386
- | `name` | `string` | `"Range Area"` | Name of the series displayed in legends, tooltips, and live region announcements. |
387
- | `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers drawn along the boundary curves. |
388
- | `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
389
- | `showPoints` | `boolean` | `false` | Whether to draw point markers at each data coordinate along both boundary curves. |
390
- | `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the boundary lines. |
391
- | `toField` (required) | `ChartField` | — | Property key or accessor extracting the ending range value for each data item. |
392
- | `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw range values in tooltips and live region announcements. |
393
- | `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
394
- | `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
395
- | `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X coordinate, overriding the root chart X field. |
396
- | `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
397
-
398
- #### Outputs
399
-
400
- | Name | Type | Description |
401
- | --- | --- | --- |
402
- | `visibleChange` | `boolean` | Emitted when `visible` changes. |
403
-
404
- ### `LineSeriesComponent`
405
-
406
- Renders a continuous Cartesian line series with configurable interpolation, optional null-gap joining, point markers,
407
- data labels, and multi-axis binding.
408
-
409
- **Selector:** `mona-line-series`
410
-
411
- #### Inputs
412
-
413
- | Name | Type | Default | Description |
414
- | --- | --- | --- | --- |
415
- | `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
416
- | `color` | `string` | `""` | Explicit stroke color override for the series line. |
417
- | `connectNulls` | `boolean` | `false` | Whether to connect points across null or invalid values without gaps. |
418
- | `curve` | `ChartCurve` | `"linear"` | Curve interpolation style (`"linear"`, `"monotone-x"`, `"natural"`, `"step"`, or `"step-after"`). |
419
- | `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
420
- | `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
421
- | `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
422
- | `field` | `ChartField` | `""` | Property key or accessor extracting the Y value for each data item. |
423
- | `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
424
- | `lineStyle` | `ChartLineStyle` | `"solid"` | Stroke pattern used to render the series line (`"solid"`, `"dashed"`, or `"dotted"`). |
425
- | `name` | `string` | `""` | Name of the series displayed in legends and tooltips. |
426
- | `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers. |
427
- | `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
428
- | `showPoints` | `boolean` | `false` | Whether to draw point markers at each data coordinate along the line. |
429
- | `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the series line. |
430
- | `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formats this series' values in tooltips, data labels and announcements, without changing the axis ticks. Takes precedence over the axis formatter. |
431
- | `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
432
- | `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
433
- | `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X value, overriding the root chart X field. |
434
- | `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
435
-
436
- #### Outputs
437
-
438
- | Name | Type | Description |
321
+ Everything below is imported from `@nanahoshi/mona-ui/chart`. Each name links to its reference page, with every input, output, property and method.
322
+
323
+ | Name | Kind | Description |
439
324
  | --- | --- | --- |
440
- | `visibleChange` | `boolean` | Emitted when `visible` changes. |
325
+ | [`AreaSeriesComponent`](api/chart.md#areaseriescomponent) | Component | Renders a continuous Cartesian area series supporting gradient fades, solid fills, cumulative stacking, and 100% normalized bands. |
326
+ | [`RangeAreaSeriesComponent`](api/chart.md#rangeareaseriescomponent) | Component | Renders continuous Cartesian vertical range bands/areas bounded between lower and upper values (e.g. confidence intervals, forecast envelopes, or high/low bands). |
327
+ | [`LineSeriesComponent`](api/chart.md#lineseriescomponent) | Component | Renders a continuous Cartesian line series with configurable interpolation, optional null-gap joining, point markers, data labels, and multi-axis binding. |
441
328
 
442
329
  ### Types
443
330
 
444
- #### `ChartAreaFillMode`
445
-
446
- ```typescript
447
- type ChartAreaFillMode = "gradient" | "solid";
448
- ```
449
-
450
- #### `ChartCurve`
451
-
452
- ```typescript
453
- type ChartCurve = "linear" | "monotone-x" | "natural" | "step" | "step-after";
454
- ```
455
-
456
- #### `ChartLineStyle`
457
-
458
- ```typescript
459
- type ChartLineStyle = "solid" | "dashed" | "dotted";
460
- ```
331
+ | Type | Kind |
332
+ | --- | --- |
333
+ | [`ChartAreaFillMode`](api/chart.md#chartareafillmode) | Type alias |
334
+ | [`ChartCurve`](api/chart.md#chartcurve) | Type alias |
335
+ | [`ChartLineStyle`](api/chart.md#chartlinestyle) | Type alias |
461
336
 
462
- **Documented elsewhere:** [`ChartDataLabelsInput`](chart.md), [`ChartDownsamplingInput`](chart.md), [`ChartField`](chart.md), [`ChartStackMode`](chart.md), [`ChartValueFormatter`](chart.md)
337
+ **Related types:** [`ChartDataLabelsInput`](api/chart.md#chartdatalabelsinput), [`ChartDownsamplingInput`](api/chart.md#chartdownsamplinginput), [`ChartField`](api/chart.md#chartfield), [`ChartStackMode`](api/chart.md#chartstackmode), [`ChartValueFormatter`](api/chart.md#chartvalueformatter)
package/docs/chart-pie.md CHANGED
@@ -416,230 +416,26 @@ The focused slice gets a ring in `--color-focus-indicator`. The legend's entries
416
416
 
417
417
  ## API
418
418
 
419
- Everything below is imported from `@nanahoshi/mona-ui/chart`.
420
-
421
- ### `DonutSeriesComponent`
422
-
423
- Renders a full or partial donut. Use `ng-template[monaChartCenterTemplate]` for the center.
424
-
425
- **Selector:** `mona-donut-series`
426
-
427
- #### Inputs
428
-
429
- | Name | Type | Default | Description |
430
- | --- | --- | --- | --- |
431
- | `categoryField` | `ChartField` | `"category"` | Property key or accessor extracting the category label for each slice. |
432
- | `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for slice category labels. |
433
- | `class` | `string` | `""` | Additional CSS classes applied to the series. |
434
- | `colorField` | `ChartField \| undefined` | `undefined` | Accessor function or property key extracting an explicit color for each slice. |
435
- | `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of colors used to fill successive slices. |
436
- | `cornerRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to slice arc boundaries. |
437
- | `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
438
- | `endAngle` | `number` | `360` | Ending angle in degrees (clockwise from 12 o'clock). |
439
- | `field` | `ChartField` | `"value"` | Property key or accessor extracting the numeric slice value. |
440
- | `fillMode` | `ChartPolarFillMode` | `"solid"` | Fill style applied to slices ("solid" or radial "gradient" from center to arc). |
441
- | `fillOpacity` | `number \| undefined` | `undefined` | Opacity of slice fills (between 0 and 1). |
442
- | `hiddenIndices` (two-way) | `readonly number[]` | `[]` | The hidden data indices. Bind `[(hiddenIndices)]` for two-way binding; legend toggles write to it. |
443
- | `innerRadiusRatio` | `number` | `0.6` | Ratio of the inner hole radius relative to the outer radius (0 to 0.95). |
444
- | `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
445
- | `labelContent` | `ChartPolarLabelContent` | `"percentage"` | Content to display in default slice data labels. |
446
- | `labelPosition` | `ChartPolarLabelPosition` | `"outside"` | Placement position for slice data labels ("outside" with leader lines or "inside" slice bounds). |
447
- | `minLabelAngle` | `number` | `12` | Minimum slice arc angle in degrees required to render an inside data label. |
448
- | `name` | `string` | `"Donut"` | Series name used in tooltips and accessibility announcements. |
449
- | `outerRadiusRatio` | `number` | `0.9` | Outer radius ratio relative to available plot bounds (0.1 to 1). |
450
- | `padAngle` | `number` | `0` | Angular padding in degrees between adjacent slices. |
451
- | `showLabels` | `boolean` | `false` | Whether to display slice labels, inside or outside as `labelPosition` sets. |
452
- | `startAngle` | `number` | `0` | Starting angle in degrees (0 is 12 o'clock, clockwise). |
453
- | `strokeColor` | `string` | `""` | Color of slice separator strokes. |
454
- | `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for slice separators. |
455
- | `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for slice numeric values. |
456
- | `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
457
-
458
- #### Outputs
459
-
460
- | Name | Type | Description |
461
- | --- | --- | --- |
462
- | `hiddenIndicesChange` | `readonly number[]` | Emitted when `hiddenIndices` changes. |
463
- | `sliceVisibilityChange` | `ChartSliceVisibilityEvent` | Emits when an individual slice's visibility is toggled via the legend. |
464
- | `visibleChange` | `boolean` | Emitted when `visible` changes. |
465
-
466
- #### Methods
419
+ Everything below is imported from `@nanahoshi/mona-ui/chart`. Each name links to its reference page, with every input, output, property and method.
467
420
 
468
- | Signature | Description |
469
- | --- | --- |
470
- | `toggleSlice(dataIndex: number): boolean` | Shows or hides the slice at `dataIndex`, and returns whether it's now visible. |
471
-
472
- ### `PieSeriesComponent`
473
-
474
- Renders a full or partial pie.
475
-
476
- **Selector:** `mona-pie-series`
477
-
478
- #### Inputs
479
-
480
- | Name | Type | Default | Description |
481
- | --- | --- | --- | --- |
482
- | `categoryField` | `ChartField` | `"category"` | Property key or accessor extracting the category label for each slice. |
483
- | `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for slice category labels. |
484
- | `class` | `string` | `""` | Additional CSS classes applied to the series. |
485
- | `colorField` | `ChartField \| undefined` | `undefined` | Accessor function or property key extracting an explicit color for each slice. |
486
- | `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of colors used to fill successive slices. |
487
- | `cornerRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to slice arc boundaries. |
488
- | `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
489
- | `endAngle` | `number` | `360` | Ending angle in degrees (clockwise from 12 o'clock). |
490
- | `field` | `ChartField` | `"value"` | Property key or accessor extracting the numeric slice value. |
491
- | `fillMode` | `ChartPolarFillMode` | `"solid"` | Fill style applied to slices ("solid" or radial "gradient" from center to arc). |
492
- | `fillOpacity` | `number \| undefined` | `undefined` | Opacity of slice fills (between 0 and 1). |
493
- | `hiddenIndices` (two-way) | `readonly number[]` | `[]` | The hidden data indices. Bind `[(hiddenIndices)]` for two-way binding; legend toggles write to it. |
494
- | `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
495
- | `labelContent` | `ChartPolarLabelContent` | `"percentage"` | Content to display in default slice data labels. |
496
- | `labelPosition` | `ChartPolarLabelPosition` | `"outside"` | Placement position for slice data labels ("outside" with leader lines or "inside" slice bounds). |
497
- | `minLabelAngle` | `number` | `12` | Minimum slice arc angle in degrees required to render an inside data label. |
498
- | `name` | `string` | `"Pie"` | Series name used in tooltips and accessibility announcements. |
499
- | `outerRadiusRatio` | `number` | `0.9` | Outer radius ratio relative to available plot bounds (0.1 to 1). |
500
- | `padAngle` | `number` | `0` | Angular padding in degrees between adjacent slices. |
501
- | `showLabels` | `boolean` | `false` | Whether to display slice labels, inside or outside as `labelPosition` sets. |
502
- | `startAngle` | `number` | `0` | Starting angle in degrees (0 is 12 o'clock, clockwise). |
503
- | `strokeColor` | `string` | `""` | Color of slice separator strokes. |
504
- | `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for slice separators. |
505
- | `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for slice numeric values. |
506
- | `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
507
-
508
- #### Outputs
509
-
510
- | Name | Type | Description |
421
+ | Name | Kind | Description |
511
422
  | --- | --- | --- |
512
- | `hiddenIndicesChange` | `readonly number[]` | Emitted when `hiddenIndices` changes. |
513
- | `sliceVisibilityChange` | `ChartSliceVisibilityEvent` | Emits when an individual slice's visibility is toggled via the legend. |
514
- | `visibleChange` | `boolean` | Emitted when `visible` changes. |
515
-
516
- #### Methods
517
-
518
- | Signature | Description |
519
- | --- | --- |
520
- | `toggleSlice(dataIndex: number): boolean` | Shows or hides the slice at `dataIndex`, and returns whether it's now visible. |
521
-
522
- ### `ChartCenterTemplateDirective`
523
-
524
- **Selector:** `ng-template[monaChartCenterTemplate]`
525
-
526
- #### Template context
527
-
528
- | Name | Type |
529
- | --- | --- |
530
- | `$implicit` | `number` |
531
- | `formattedTotal` | `string` |
532
- | `seriesId` | `string` |
533
- | `seriesName` | `string` |
534
- | `total` | `number` |
535
- | `visibleSliceCount` | `number` |
536
-
537
- ### `ChartSliceLabelTemplateDirective`
538
-
539
- **Selector:** `ng-template[monaChartSliceLabelTemplate]`
540
-
541
- #### Template context
542
-
543
- | Name | Type |
544
- | --- | --- |
545
- | `$implicit` | `ChartSliceContext` |
546
- | `category` | `unknown` |
547
- | `color` | `string` |
548
- | `dataIndex` | `number` |
549
- | `datum` | `unknown` |
550
- | `formattedCategory` | `string` |
551
- | `formattedPercentage` | `string` |
552
- | `formattedValue` | `string` |
553
- | `percentage` | `number` |
554
- | `seriesId` | `string` |
555
- | `seriesName` | `string` |
556
- | `seriesType` | `"donut" \| "pie"` |
557
- | `slice` | `ChartSliceContext` |
558
- | `value` | `number` |
423
+ | [`DonutSeriesComponent`](api/chart.md#donutseriescomponent) | Component | Renders a full or partial donut. |
424
+ | [`PieSeriesComponent`](api/chart.md#pieseriescomponent) | Component | Renders a full or partial pie. |
425
+ | [`ChartCenterTemplateDirective`](api/chart.md#chartcentertemplatedirective) | Directive | |
426
+ | [`ChartSliceLabelTemplateDirective`](api/chart.md#chartslicelabeltemplatedirective) | Directive | |
559
427
 
560
428
  ### Types
561
429
 
562
- #### `ChartCenterTemplateContext`
563
-
564
- | Name | Type |
565
- | --- | --- |
566
- | `$implicit` | `number` |
567
- | `formattedTotal` | `string` |
568
- | `seriesId` | `string` |
569
- | `seriesName` | `string` |
570
- | `total` | `number` |
571
- | `visibleSliceCount` | `number` |
572
-
573
- #### `ChartSliceContext`
574
-
575
- | Name | Type |
430
+ | Type | Kind |
576
431
  | --- | --- |
577
- | `category` | `unknown` |
578
- | `color` | `string` |
579
- | `dataIndex` | `number` |
580
- | `datum` | `unknown` |
581
- | `formattedCategory` | `string` |
582
- | `formattedPercentage` | `string` |
583
- | `formattedValue` | `string` |
584
- | `percentage` | `number` |
585
- | `seriesId` | `string` |
586
- | `seriesName` | `string` |
587
- | `seriesType` | `"donut" \| "pie"` |
588
- | `value` | `number` |
589
-
590
- #### `ChartSliceLabelTemplateContext`
591
-
592
- | Name | Type |
593
- | --- | --- |
594
- | `$implicit` | `ChartSliceContext` |
595
- | `category` | `unknown` |
596
- | `color` | `string` |
597
- | `dataIndex` | `number` |
598
- | `datum` | `unknown` |
599
- | `formattedCategory` | `string` |
600
- | `formattedPercentage` | `string` |
601
- | `formattedValue` | `string` |
602
- | `percentage` | `number` |
603
- | `seriesId` | `string` |
604
- | `seriesName` | `string` |
605
- | `seriesType` | `"donut" \| "pie"` |
606
- | `slice` | `ChartSliceContext` |
607
- | `value` | `number` |
608
-
609
- #### `ChartSliceVisibilityEvent`
610
-
611
- | Name | Type |
612
- | --- | --- |
613
- | `category` | `unknown` |
614
- | `dataIndex` | `number` |
615
- | `datum` | `unknown` |
616
- | `seriesId` | `string` |
617
- | `seriesName` | `string` |
618
- | `seriesType` | `"donut" \| "pie"` |
619
- | `visible` | `boolean` |
620
-
621
- #### `ChartPolarFillMode`
622
-
623
- ```typescript
624
- type ChartPolarFillMode = "gradient" | "solid";
625
- ```
626
-
627
- #### `ChartPolarLabelContent`
628
-
629
- ```typescript
630
- type ChartPolarLabelContent = "category" | "category-percentage" | "percentage" | "value";
631
- ```
632
-
633
- #### `ChartPolarLabelPosition`
634
-
635
- ```typescript
636
- type ChartPolarLabelPosition = "inside" | "outside";
637
- ```
638
-
639
- #### `ChartPolarLabelSide`
640
-
641
- ```typescript
642
- type ChartPolarLabelSide = "left" | "right";
643
- ```
644
-
645
- **Documented elsewhere:** [`ChartField`](chart.md), [`ChartValueFormatter`](chart.md)
432
+ | [`ChartCenterTemplateContext`](api/chart.md#chartcentertemplatecontext) | Interface |
433
+ | [`ChartSliceContext`](api/chart.md#chartslicecontext) | Interface |
434
+ | [`ChartSliceLabelTemplateContext`](api/chart.md#chartslicelabeltemplatecontext) | Interface |
435
+ | [`ChartSliceVisibilityEvent`](api/chart.md#chartslicevisibilityevent) | Interface |
436
+ | [`ChartPolarFillMode`](api/chart.md#chartpolarfillmode) | Type alias |
437
+ | [`ChartPolarLabelContent`](api/chart.md#chartpolarlabelcontent) | Type alias |
438
+ | [`ChartPolarLabelPosition`](api/chart.md#chartpolarlabelposition) | Type alias |
439
+ | [`ChartPolarLabelSide`](api/chart.md#chartpolarlabelside) | Type alias |
440
+
441
+ **Related types:** [`ChartField`](api/chart.md#chartfield), [`ChartValueFormatter`](api/chart.md#chartvalueformatter)