@magmonium/one 0.4.60 → 0.4.63

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 (126) hide show
  1. package/assets/i18n/af.json +0 -2
  2. package/assets/i18n/am.json +0 -2
  3. package/assets/i18n/ar.json +0 -2
  4. package/assets/i18n/as.json +0 -2
  5. package/assets/i18n/az.json +0 -2
  6. package/assets/i18n/ba.json +0 -2
  7. package/assets/i18n/be.json +0 -2
  8. package/assets/i18n/bg.json +0 -2
  9. package/assets/i18n/bn.json +0 -2
  10. package/assets/i18n/br.json +0 -2
  11. package/assets/i18n/brx.json +0 -2
  12. package/assets/i18n/bs.json +0 -2
  13. package/assets/i18n/ca.json +0 -2
  14. package/assets/i18n/ceb.json +0 -2
  15. package/assets/i18n/cnr.json +0 -2
  16. package/assets/i18n/co.json +0 -2
  17. package/assets/i18n/cs.json +0 -2
  18. package/assets/i18n/cy.json +0 -2
  19. package/assets/i18n/da.json +0 -2
  20. package/assets/i18n/de.json +0 -2
  21. package/assets/i18n/doi.json +0 -2
  22. package/assets/i18n/el.json +0 -2
  23. package/assets/i18n/en.json +0 -2
  24. package/assets/i18n/eo.json +0 -2
  25. package/assets/i18n/es.json +0 -2
  26. package/assets/i18n/et.json +0 -2
  27. package/assets/i18n/eu.json +0 -2
  28. package/assets/i18n/fa.json +0 -2
  29. package/assets/i18n/fi.json +0 -2
  30. package/assets/i18n/fr.json +0 -2
  31. package/assets/i18n/fy.json +0 -2
  32. package/assets/i18n/ga.json +0 -2
  33. package/assets/i18n/gd.json +0 -2
  34. package/assets/i18n/gl.json +0 -2
  35. package/assets/i18n/gu.json +0 -2
  36. package/assets/i18n/ha.json +0 -2
  37. package/assets/i18n/haw.json +0 -2
  38. package/assets/i18n/he.json +0 -2
  39. package/assets/i18n/hi.json +0 -2
  40. package/assets/i18n/hmn.json +0 -2
  41. package/assets/i18n/hr.json +0 -2
  42. package/assets/i18n/hu.json +0 -2
  43. package/assets/i18n/hy.json +0 -2
  44. package/assets/i18n/id.json +0 -2
  45. package/assets/i18n/ie.json +0 -2
  46. package/assets/i18n/ig.json +0 -2
  47. package/assets/i18n/ilo.json +0 -2
  48. package/assets/i18n/is.json +0 -2
  49. package/assets/i18n/it.json +0 -2
  50. package/assets/i18n/iw.json +0 -2
  51. package/assets/i18n/ja.json +0 -2
  52. package/assets/i18n/jw.json +0 -2
  53. package/assets/i18n/ka.json +0 -2
  54. package/assets/i18n/kk.json +0 -2
  55. package/assets/i18n/km.json +0 -2
  56. package/assets/i18n/kn.json +0 -2
  57. package/assets/i18n/ko.json +0 -2
  58. package/assets/i18n/kok.json +0 -2
  59. package/assets/i18n/ks.json +0 -2
  60. package/assets/i18n/ku.json +0 -2
  61. package/assets/i18n/ky.json +0 -2
  62. package/assets/i18n/la.json +0 -2
  63. package/assets/i18n/lb.json +0 -2
  64. package/assets/i18n/lo.json +0 -2
  65. package/assets/i18n/lt.json +0 -2
  66. package/assets/i18n/lv.json +0 -2
  67. package/assets/i18n/ma.json +0 -2
  68. package/assets/i18n/mai.json +0 -2
  69. package/assets/i18n/me.json +0 -2
  70. package/assets/i18n/mg.json +0 -2
  71. package/assets/i18n/mi.json +0 -2
  72. package/assets/i18n/mk.json +0 -2
  73. package/assets/i18n/ml.json +0 -2
  74. package/assets/i18n/mn.json +0 -2
  75. package/assets/i18n/mni.json +0 -2
  76. package/assets/i18n/mr.json +0 -2
  77. package/assets/i18n/ms.json +0 -2
  78. package/assets/i18n/mt.json +0 -2
  79. package/assets/i18n/my.json +0 -2
  80. package/assets/i18n/ne.json +0 -2
  81. package/assets/i18n/nl.json +0 -2
  82. package/assets/i18n/no.json +0 -2
  83. package/assets/i18n/ny.json +0 -2
  84. package/assets/i18n/or.json +0 -2
  85. package/assets/i18n/pa.json +0 -2
  86. package/assets/i18n/pl.json +0 -2
  87. package/assets/i18n/ps.json +0 -2
  88. package/assets/i18n/pt.json +0 -2
  89. package/assets/i18n/rm.json +0 -2
  90. package/assets/i18n/ro.json +0 -2
  91. package/assets/i18n/ru.json +0 -2
  92. package/assets/i18n/sa.json +0 -2
  93. package/assets/i18n/sat.json +0 -2
  94. package/assets/i18n/sc.json +0 -2
  95. package/assets/i18n/sd.json +0 -2
  96. package/assets/i18n/si.json +0 -2
  97. package/assets/i18n/sk.json +0 -2
  98. package/assets/i18n/sl.json +0 -2
  99. package/assets/i18n/sm.json +0 -2
  100. package/assets/i18n/sn.json +0 -2
  101. package/assets/i18n/so.json +0 -2
  102. package/assets/i18n/sq.json +0 -2
  103. package/assets/i18n/sr.json +0 -2
  104. package/assets/i18n/st.json +0 -2
  105. package/assets/i18n/su.json +0 -2
  106. package/assets/i18n/sv.json +0 -2
  107. package/assets/i18n/sw.json +0 -2
  108. package/assets/i18n/ta.json +0 -2
  109. package/assets/i18n/te.json +0 -2
  110. package/assets/i18n/tg.json +0 -2
  111. package/assets/i18n/th.json +0 -2
  112. package/assets/i18n/tl.json +0 -2
  113. package/assets/i18n/tr.json +0 -2
  114. package/assets/i18n/uk.json +0 -2
  115. package/assets/i18n/ur.json +0 -2
  116. package/assets/i18n/uz.json +0 -2
  117. package/assets/i18n/vi.json +0 -2
  118. package/assets/i18n/xh.json +0 -2
  119. package/assets/i18n/yi.json +0 -2
  120. package/assets/i18n/yo.json +0 -2
  121. package/assets/i18n/zh.json +0 -2
  122. package/assets/i18n/zu.json +0 -2
  123. package/fesm2022/magmonium-one.mjs +185 -298
  124. package/fesm2022/magmonium-one.mjs.map +1 -1
  125. package/package.json +1 -1
  126. package/types/magmonium-one.d.ts +44 -27
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magmonium/one",
3
- "version": "0.4.60",
3
+ "version": "0.4.63",
4
4
  "description": "Magmonium One — Angular design-system primitives for mm Apps",
5
5
  "author": "magmonium",
6
6
  "license": "MIT",
@@ -1539,7 +1539,7 @@ export declare class DraggableDirective {
1539
1539
  readonly max: import("@angular/core").InputSignal<Position | undefined>;
1540
1540
  readonly dragStart: import("@angular/core").OutputEmitterRef<void>;
1541
1541
  readonly dragEnd: import("@angular/core").OutputEmitterRef<void>;
1542
- protected readonly cursor: import("@angular/core").Signal<"move" | "ew-resize" | "ns-resize">;
1542
+ protected readonly cursor: import("@angular/core").Signal<"ew-resize" | "ns-resize" | "move">;
1543
1543
  protected state: DraggableState;
1544
1544
  set pos(position: Position);
1545
1545
  /**
@@ -5160,28 +5160,6 @@ export declare class SectionToggleComponent<T extends SectionToggleItem = Sectio
5160
5160
  "action": "action";
5161
5161
  }, ["template"], never, true, never>;
5162
5162
  }
5163
- export declare class SectionFooterComponent {
5164
- readonly sticky: import("@angular/core").InputSignal<boolean>;
5165
- readonly align: import("@angular/core").InputSignal<"center" | "left" | "right">;
5166
- private readonly scrollSticky;
5167
- protected readonly isSticky: import("@angular/core").Signal<boolean>;
5168
- private readonly sectionContext;
5169
- protected readonly sidepanel: import("@angular/core").Signal<boolean>;
5170
- protected readonly noBorder: import("@angular/core").Signal<boolean>;
5171
- static ɵfac: i0.ɵɵFactoryDeclaration<SectionFooterComponent, never>;
5172
- static ɵcmp: i0.ɵɵComponentDeclaration<SectionFooterComponent, "m-section-footer", never, {
5173
- "sticky": {
5174
- "alias": "sticky";
5175
- "required": false;
5176
- "isSignal": true;
5177
- };
5178
- "align": {
5179
- "alias": "align";
5180
- "required": false;
5181
- "isSignal": true;
5182
- };
5183
- }, {}, never, ["*"], true, never>;
5184
- }
5185
5163
  /**
5186
5164
  * The data window a SectionPagination emits — an offset into the collection and
5187
5165
  * the size of the slice taken from it. Two fields and no `page`: a 1-based page
@@ -5543,7 +5521,6 @@ export declare class SectionComponent extends ConfigComponent<SectionConfig> {
5543
5521
  protected readonly hero: import("@angular/core").Signal<SectionHeroComponent | undefined>;
5544
5522
  protected readonly jumbotron: import("@angular/core").Signal<JumbotronComponent | undefined>;
5545
5523
  protected readonly carousel: import("@angular/core").Signal<CarouselComponent | undefined>;
5546
- protected readonly footer: import("@angular/core").Signal<SectionFooterComponent | undefined>;
5547
5524
  protected readonly pagination: import("@angular/core").Signal<SectionPaginationComponent | undefined>;
5548
5525
  readonly variant: import("@angular/core").InputSignal<string | undefined>;
5549
5526
  readonly maxWidth: import("@angular/core").InputSignal<string | undefined>;
@@ -5620,7 +5597,7 @@ export declare class SectionComponent extends ConfigComponent<SectionConfig> {
5620
5597
  };
5621
5598
  }, {
5622
5599
  "inView": "inView";
5623
- }, ["badges", "toggle", "action", "back", "search", "filter", "filterGroup", "stepper", "hero", "jumbotron", "carousel", "footer", "pagination"], ["m-section-header", "m-section-hero", "m-jumbotron", "m-section-search", "m-section-stepper", "m-section-badges", "m-section-toggle", "m-action, m-one-action", "m-section-back", "m-section-filter", "m-section-filter-group", "m-carousel, m-one-carousel", "*", "m-section-pagination", "m-section-footer"], true, never>;
5600
+ }, ["badges", "toggle", "action", "back", "search", "filter", "filterGroup", "stepper", "hero", "jumbotron", "carousel", "pagination"], ["m-section-header", "m-section-hero", "m-jumbotron", "m-section-search", "m-section-stepper", "m-section-badges", "m-section-toggle", "m-action, m-one-action", "m-section-back", "m-section-filter", "m-section-filter-group", "m-carousel, m-one-carousel", "*", "m-section-pagination", "m-section-footer"], true, never>;
5624
5601
  }
5625
5602
  interface RowConfig extends Config {
5626
5603
  padding?: boolean;
@@ -5920,6 +5897,28 @@ export declare class SectionButtonGroupComponent extends ConfigComponent<Section
5920
5897
  };
5921
5898
  }, {}, never, ["m-button, m-one-button", "*"], true, never>;
5922
5899
  }
5900
+ export declare class SectionFooterComponent {
5901
+ readonly sticky: import("@angular/core").InputSignal<boolean>;
5902
+ readonly align: import("@angular/core").InputSignal<"center" | "left" | "right">;
5903
+ private readonly scrollSticky;
5904
+ protected readonly isSticky: import("@angular/core").Signal<boolean>;
5905
+ private readonly sectionContext;
5906
+ protected readonly sidepanel: import("@angular/core").Signal<boolean>;
5907
+ protected readonly noBorder: import("@angular/core").Signal<boolean>;
5908
+ static ɵfac: i0.ɵɵFactoryDeclaration<SectionFooterComponent, never>;
5909
+ static ɵcmp: i0.ɵɵComponentDeclaration<SectionFooterComponent, "m-section-footer", never, {
5910
+ "sticky": {
5911
+ "alias": "sticky";
5912
+ "required": false;
5913
+ "isSignal": true;
5914
+ };
5915
+ "align": {
5916
+ "alias": "align";
5917
+ "required": false;
5918
+ "isSignal": true;
5919
+ };
5920
+ }, {}, never, ["*"], true, never>;
5921
+ }
5923
5922
  /**
5924
5923
  * The table composed from projected markup (GLOSSARY.md SectionTable): the
5925
5924
  * `<table>` and its configured heading are this component's, every row is
@@ -6200,6 +6199,8 @@ type Plotted = {
6200
6199
  * The x axis is time, not position: series sampled on different days still
6201
6200
  * line up, and a gap in the data is a gap on the axis. Lines are straight
6202
6201
  * between points — a smoothed curve draws highs and lows that never happened.
6202
+ * The `minimal` variant alone curves them, and only monotonically
6203
+ * (`smoothPath`), which passes through every point without swinging past one.
6203
6204
  *
6204
6205
  * What it draws is a window of the data: a preset (`1m`, `ytd`, `max`, …)
6205
6206
  * measured back from the last point, or a window set by hand. `range` and
@@ -6251,6 +6252,7 @@ export declare class SectionChartComponent extends ConfigComponent<SectionChartC
6251
6252
  /** Every series that registered, in arrival order, each with its slot. */
6252
6253
  private readonly members;
6253
6254
  private readonly locale;
6255
+ private readonly uid;
6254
6256
  protected readonly tableId: string;
6255
6257
  protected readonly width: import("@angular/core").WritableSignal<number>;
6256
6258
  private readonly dateFormat;
@@ -6320,6 +6322,9 @@ export declare class SectionChartComponent extends ConfigComponent<SectionChartC
6320
6322
  color: string;
6321
6323
  endX: number;
6322
6324
  endY: number;
6325
+ area: string | null;
6326
+ fillId: string;
6327
+ fill: string;
6323
6328
  }[]>;
6324
6329
  protected readonly yTicks: import("@angular/core").Signal<{
6325
6330
  y: number;
@@ -6679,6 +6684,13 @@ declare const centreSpan: (span: readonly [number, number], t: number, bounds: r
6679
6684
  declare const resizeSpan: (span: readonly [number, number], edge: "start" | "end", t: number, bounds: readonly [number, number], minWidth: number) => [number, number];
6680
6685
  /** An SVG path through the points, straight segments — a curve invents highs. */
6681
6686
  declare const linePath: (t: readonly number[], y: readonly number[], sx: (t: number) => number, sy: (v: number) => number) => string;
6687
+ /**
6688
+ * An SVG path through the points as a monotone cubic (d3's `monotoneX`): each
6689
+ * tangent is held to the shallower of its two neighbouring slopes and flattens
6690
+ * at a turn, so the curve never swings past a point — smooth, without the
6691
+ * highs and lows an ordinary spline invents. Two points or fewer stay straight.
6692
+ */
6693
+ declare const smoothPath: (t: readonly number[], y: readonly number[], sx: (t: number) => number, sy: (v: number) => number) => string;
6682
6694
  /**
6683
6695
  * The points a SectionChart draws on the Canvas when its series hold no data:
6684
6696
  * a year of weekly closes per series, deterministic so a screenshot never
@@ -8212,7 +8224,7 @@ declare class ColorPickerBoxComponent implements AfterViewInit, OnDestroy {
8212
8224
  protected readonly _eyedropperConfig: import("@magmonium/one").Button;
8213
8225
  protected readonly _headerContextMenu: ContextMenu;
8214
8226
  protected readonly themeSwatches: import("@angular/core").Signal<{
8215
- key: "mm" | "mmLite" | "mmDark" | "background" | "border" | "text" | "textSecondary" | "focus" | "error" | "errorLight" | "warning" | "successLite" | "success" | "highlight" | "wealth";
8227
+ key: "text" | "error" | "focus" | "mm" | "mmLite" | "mmDark" | "background" | "border" | "textSecondary" | "errorLight" | "warning" | "successLite" | "success" | "highlight" | "wealth";
8216
8228
  color: string;
8217
8229
  }[]>;
8218
8230
  hue: import("@angular/core").WritableSignal<number>;
@@ -12028,7 +12040,7 @@ export type DocAiPhase = 'idle' | 'asking' | 'question' | 'outline' | 'writing'
12028
12040
  */
12029
12041
  export declare class DocEditorComponent implements ControlValueAccessor {
12030
12042
  protected readonly groups: readonly import("@magmonium/one").DocToolbarGroup[];
12031
- protected readonly icons: Record<"list" | "code" | "link" | "table" | "strike" | "bold" | "heading" | "italic" | "quote", string>;
12043
+ protected readonly icons: Record<"code" | "link" | "table" | "strike" | "list" | "bold" | "heading" | "italic" | "quote", string>;
12032
12044
  protected readonly docActionKey: typeof docActionKey;
12033
12045
  private readonly translate;
12034
12046
  protected readonly value: import("@angular/core").WritableSignal<string>;
@@ -12130,6 +12142,11 @@ type TableConfig = Config & {
12130
12142
  defaultPageSize?: number;
12131
12143
  maxHeight?: number;
12132
12144
  searchMaxWidth?: number;
12145
+ /**
12146
+ * Leaves the column header row out, for a one-column tree whose rows say
12147
+ * what they are. TreeGrid only.
12148
+ */
12149
+ hideHeader?: boolean;
12133
12150
  /**
12134
12151
  * Draws a search field in the toolbar. Independent of `title` and of
12135
12152
  * `minimal`: `minimal` means no chrome that was not asked for, and this is