@magmonium/one 0.4.88 → 0.4.90

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": "@magmonium/one",
3
- "version": "0.4.88",
3
+ "version": "0.4.90",
4
4
  "description": "Magmonium One — Angular design-system primitives for mm Apps",
5
5
  "author": "magmonium",
6
6
  "license": "MIT",
@@ -5994,7 +5994,7 @@ export declare class SectionButtonGroupComponent extends ConfigComponent<Section
5994
5994
  protected readonly resolvedFullWidth: import("@angular/core").Signal<boolean>;
5995
5995
  protected readonly resolvedVertical: import("@angular/core").Signal<boolean>;
5996
5996
  protected readonly resolvedVariant: import("@angular/core").Signal<"spaced" | "joined">;
5997
- protected readonly resolvedAlign: import("@angular/core").Signal<"left" | "right" | "top" | "bottom" | "center">;
5997
+ protected readonly resolvedAlign: import("@angular/core").Signal<"left" | "right" | "center" | "bottom" | "top">;
5998
5998
  static ɵfac: i0.ɵɵFactoryDeclaration<SectionButtonGroupComponent, never>;
5999
5999
  static ɵcmp: i0.ɵɵComponentDeclaration<SectionButtonGroupComponent, "m-section-button-group", never, {
6000
6000
  "vertical": {
@@ -8584,7 +8584,7 @@ declare class ColorPickerBoxComponent implements AfterViewInit, OnDestroy {
8584
8584
  protected readonly _eyedropperConfig: import("@magmonium/one").Button;
8585
8585
  protected readonly _headerContextMenu: ContextMenu;
8586
8586
  protected readonly themeSwatches: import("@angular/core").Signal<{
8587
- key: "error" | "background" | "border" | "text" | "textSecondary" | "mm" | "mmLite" | "mmDark" | "focus" | "errorLight" | "warning" | "successLite" | "success" | "highlight" | "wealth";
8587
+ key: "text" | "error" | "focus" | "mm" | "mmLite" | "mmDark" | "background" | "border" | "textSecondary" | "errorLight" | "warning" | "successLite" | "success" | "highlight" | "wealth";
8588
8588
  color: string;
8589
8589
  }[]>;
8590
8590
  hue: import("@angular/core").WritableSignal<number>;
@@ -12301,12 +12301,16 @@ interface LaneLabel {
12301
12301
  /** Items sharing this label, left to right; more than one when merged. */
12302
12302
  keys: string[];
12303
12303
  }
12304
+ /** A label's span along the axis, `[start, end]` in px, from its keys and anchor. */
12305
+ type LaneExtent = (keys: readonly string[], x: number) => readonly [number, number];
12304
12306
  /**
12305
12307
  * Lays axis labels into two lanes by pixel collision: a label too close to
12306
12308
  * the last one on the first lane drops to the second; when both are taken it
12307
- * joins the nearer neighbour as one merged label ("SMA 50 · 100").
12309
+ * joins the nearer neighbour as one merged label ("SMA 50 · 100"). With
12310
+ * `extent`, the gap is measured between label edges, not anchors — a merged
12311
+ * label is measured again, so it blocks by its grown width.
12308
12312
  */
12309
- export declare const layoutLanes: (items: readonly LaneItem[], minGapPx: number) => LaneLabel[];
12313
+ export declare const layoutLanes: (items: readonly LaneItem[], minGapPx: number, extent?: LaneExtent) => LaneLabel[];
12310
12314
  /** `line` — one price axis. `list` — rows, highest first. `auto` — list under 360px. */
12311
12315
  type PriceLadderVariant = 'line' | 'list' | 'auto';
12312
12316
  /** `level` — a tick (SMA, EMA). `bound` — a range end-cap (52-week low/high).
@@ -12733,6 +12737,8 @@ type ScaleCompareOp = 'gt' | 'gte' | 'lt' | 'lte' | 'within' | 'beyond';
12733
12737
  type ScaleOperandKind = 'mark' | 'fixed' | 'pct';
12734
12738
  type ScaleCombineMode = 'all' | 'any' | 'not';
12735
12739
  interface Mark {
12740
+ /** Unique within the scale (tag position): `key` may be unset or repeated. */
12741
+ id: string;
12736
12742
  key: string;
12737
12743
  name: string;
12738
12744
  value: number;
@@ -13525,7 +13531,7 @@ export type DocAiPhase = 'idle' | 'asking' | 'question' | 'outline' | 'writing'
13525
13531
  */
13526
13532
  export declare class DocEditorComponent implements ControlValueAccessor {
13527
13533
  protected readonly groups: readonly import("@magmonium/one").DocToolbarGroup[];
13528
- protected readonly icons: Record<"code" | "list" | "link" | "table" | "strike" | "bold" | "heading" | "italic" | "quote", string>;
13534
+ protected readonly icons: Record<"code" | "link" | "table" | "strike" | "list" | "bold" | "heading" | "italic" | "quote", string>;
13529
13535
  protected readonly docActionKey: typeof docActionKey;
13530
13536
  private readonly translate;
13531
13537
  protected readonly value: import("@angular/core").WritableSignal<string>;
@@ -14420,7 +14426,7 @@ export declare class InstrumentScoreComponent {
14420
14426
  readonly variant: import("@angular/core").InputSignal<"compact" | "detailed">;
14421
14427
  readonly showDescription: import("@angular/core").InputSignal<boolean>;
14422
14428
  readonly label: import("@angular/core").InputSignal<string>;
14423
- readonly status: import("@angular/core").Signal<"no-data" | "exceptional" | "strong" | "average" | "weak">;
14429
+ readonly status: import("@angular/core").Signal<"exceptional" | "strong" | "average" | "weak" | "no-data">;
14424
14430
  readonly hex: import("@angular/core").Signal<"#94a3b8" | "#10b981" | "#3b82f6" | "#f59e0b" | "#ef4444">;
14425
14431
  readonly description: import("@angular/core").Signal<"insufficient-data-to-provide-analysis" | "this-company-shows-exceptional-fundamentals-and-momentum" | "solid-performance-with-good-growth-potential" | "fair-valuation-but-requires-careful-monitoring" | "higher-risk-profile-with-weakening-metrics">;
14426
14432
  static ɵfac: i0.ɵɵFactoryDeclaration<InstrumentScoreComponent, never>;
@@ -15551,8 +15557,8 @@ export declare class ConfirmComponent {
15551
15557
  cancelLabel: import("@angular/core").InputSignal<string>;
15552
15558
  protected readonly confirmText: import("@angular/core").Signal<string>;
15553
15559
  protected readonly cancelText: import("@angular/core").Signal<string>;
15554
- protected readonly accent: import("@angular/core").Signal<"warning" | "success" | "error" | "mm">;
15555
- protected readonly iconName: import("@angular/core").Signal<"info" | "exclamation-triangle" | "trash" | "check-circle">;
15560
+ protected readonly accent: import("@angular/core").Signal<"error" | "mm" | "success" | "warning">;
15561
+ protected readonly iconName: import("@angular/core").Signal<"exclamation-triangle" | "info" | "trash" | "check-circle">;
15556
15562
  protected accept(): void;
15557
15563
  protected decline(): void;
15558
15564
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmComponent, never>;