@joanroucoux/cairn-ui 0.6.4 → 0.6.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joanroucoux/cairn-ui",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Cairn UI — a monochrome, accessible Angular design system.",
5
5
  "keywords": [
6
6
  "angular",
@@ -636,10 +636,6 @@ declare class UiTextarea implements UiControl {
636
636
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiTextarea, "textarea[uiTextarea]", never, { "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
637
637
  }
638
638
 
639
- declare const TOOLTIP_SIZES: readonly ["compact", "large"];
640
- type TooltipSize = (typeof TOOLTIP_SIZES)[number];
641
- type AxisTicks = 3 | 5 | 'auto';
642
-
643
639
  type ChartPoint = {
644
640
  t: number;
645
641
  v: number;
@@ -662,10 +658,24 @@ type ChartGeometry = {
662
658
  plotTop: number;
663
659
  };
664
660
 
661
+ type TickLabel = {
662
+ text: string;
663
+ classes: string;
664
+ };
665
+
666
+ declare const TOOLTIP_SIZES: readonly ["compact", "large"];
667
+ type TooltipSize = (typeof TOOLTIP_SIZES)[number];
668
+ type AxisTicks = 3 | 5 | 'auto';
669
+
665
670
  type PlotRef = ElementRef<SVGSVGElement>;
666
671
  /**
667
672
  * Value over time: a monotone curve with a dashed line at the starting value and a tooltip.
668
673
  *
674
+ * Axis labels are never repeated: a tick whose `axisFormat` text equals the previous drawn label is
675
+ * not rendered. The first tick always is, so only the last edge label can drop. With `axisTicks="3"`
676
+ * only the first, middle and last ticks count; with `auto` every tick counts from `sm` up and the
677
+ * three core ticks below it. Tick positions are unchanged.
678
+ *
669
679
  * @example
670
680
  * <ui-line-chart [points]="points" label="Net worth over one month" startLabel="Since" [valueFormat]="formatEur" />
671
681
  */
@@ -686,7 +696,6 @@ declare class UiLineChart {
686
696
  readonly tooltipDelta: _angular_core.InputSignalWithTransform<boolean, unknown>;
687
697
  readonly axisGap: _angular_core.InputSignal<number | "auto">;
688
698
  readonly axisTicks: _angular_core.InputSignalWithTransform<AxisTicks, string | 3 | 5>;
689
- protected readonly isCoreTick: (index: number, count: number) => boolean;
690
699
  protected readonly svgRef: _angular_core.Signal<PlotRef>;
691
700
  protected readonly activeIndex: _angular_core.WritableSignal<number | null>;
692
701
  protected readonly animatedLine: _angular_core.WritableSignal<string | null>;
@@ -706,6 +715,7 @@ declare class UiLineChart {
706
715
  protected readonly geometry: _angular_core.Signal<ChartGeometry | null>;
707
716
  protected readonly displayLine: _angular_core.Signal<string>;
708
717
  protected readonly ticks: _angular_core.Signal<PlottedPoint[]>;
718
+ protected readonly tickTexts: _angular_core.Signal<(TickLabel | null)[]>;
709
719
  protected readonly active: _angular_core.Signal<PlottedPoint | null>;
710
720
  protected readonly startLabelInfo: _angular_core.Signal<{
711
721
  label: string;