@magmonium/one 0.4.59 → 0.4.60
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
package/types/magmonium-one.d.ts
CHANGED
|
@@ -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<"
|
|
1542
|
+
protected readonly cursor: import("@angular/core").Signal<"move" | "ew-resize" | "ns-resize">;
|
|
1543
1543
|
protected state: DraggableState;
|
|
1544
1544
|
set pos(position: Position);
|
|
1545
1545
|
/**
|
|
@@ -6069,6 +6069,13 @@ export declare const sortSectionTableRows: <T>(rows: readonly T[] | null | undef
|
|
|
6069
6069
|
*/
|
|
6070
6070
|
type SectionChartScale = 'auto' | 'percent' | 'value';
|
|
6071
6071
|
export declare const SECTION_CHART_SCALES: readonly SectionChartScale[];
|
|
6072
|
+
/**
|
|
6073
|
+
* How much of a SectionChart is drawn. `minimal` is the line alone — no axes,
|
|
6074
|
+
* grid, tooltip, presets or navigator — under a top row of each series' name,
|
|
6075
|
+
* its change, and the period.
|
|
6076
|
+
*/
|
|
6077
|
+
type SectionChartVariant = 'default' | 'minimal';
|
|
6078
|
+
declare const SECTION_CHART_VARIANTS: readonly SectionChartVariant[];
|
|
6072
6079
|
/**
|
|
6073
6080
|
* The span a SectionChart draws, as the two ISO 8601 instants it runs between
|
|
6074
6081
|
* (GLOSSARY.md SectionChartWindow). Text rather than epoch ms: what reads a
|
|
@@ -6102,6 +6109,8 @@ type SectionChartConfig = Config & {
|
|
|
6102
6109
|
ranges?: string[];
|
|
6103
6110
|
range?: string;
|
|
6104
6111
|
scale?: SectionChartScale;
|
|
6112
|
+
variant?: SectionChartVariant;
|
|
6113
|
+
displayPeriod?: string;
|
|
6105
6114
|
height?: number;
|
|
6106
6115
|
navigator?: boolean;
|
|
6107
6116
|
measure?: boolean;
|
|
@@ -6205,6 +6214,16 @@ type Plotted = {
|
|
|
6205
6214
|
export declare class SectionChartComponent extends ConfigComponent<SectionChartConfig> {
|
|
6206
6215
|
subFolder: "section_charts";
|
|
6207
6216
|
readonly scale: import("@angular/core").InputSignal<SectionChartScale | undefined>;
|
|
6217
|
+
/**
|
|
6218
|
+
* `minimal` draws the line alone under each series' name, change and the
|
|
6219
|
+
* period — no axes, grid, tooltip, measure, presets or navigator.
|
|
6220
|
+
*/
|
|
6221
|
+
readonly variant: import("@angular/core").InputSignal<SectionChartVariant | undefined>;
|
|
6222
|
+
/**
|
|
6223
|
+
* The period the top row names, as written — `1Y`, `Past year`. Unset reads
|
|
6224
|
+
* the window's own dates.
|
|
6225
|
+
*/
|
|
6226
|
+
readonly displayPeriod: import("@angular/core").InputSignal<string | undefined>;
|
|
6208
6227
|
/** The whole chart's height in px, the time axis included. */
|
|
6209
6228
|
readonly height: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
6210
6229
|
/**
|
|
@@ -6233,8 +6252,6 @@ export declare class SectionChartComponent extends ConfigComponent<SectionChartC
|
|
|
6233
6252
|
private readonly members;
|
|
6234
6253
|
private readonly locale;
|
|
6235
6254
|
protected readonly tableId: string;
|
|
6236
|
-
protected readonly left: number;
|
|
6237
|
-
protected readonly top: number;
|
|
6238
6255
|
protected readonly width: import("@angular/core").WritableSignal<number>;
|
|
6239
6256
|
private readonly dateFormat;
|
|
6240
6257
|
private readonly dayFormat;
|
|
@@ -6245,6 +6262,8 @@ export declare class SectionChartComponent extends ConfigComponent<SectionChartC
|
|
|
6245
6262
|
protected readonly resolvedHeight: import("@angular/core").Signal<number>;
|
|
6246
6263
|
private readonly resolvedScale;
|
|
6247
6264
|
private readonly resolvedRange;
|
|
6265
|
+
protected readonly minimal: import("@angular/core").Signal<boolean>;
|
|
6266
|
+
private readonly margin;
|
|
6248
6267
|
protected readonly showNavigator: import("@angular/core").Signal<boolean>;
|
|
6249
6268
|
protected readonly canMeasure: import("@angular/core").Signal<boolean>;
|
|
6250
6269
|
/** The asset's presets, ids that name no span dropped; the defaults without one. */
|
|
@@ -6282,6 +6301,8 @@ export declare class SectionChartComponent extends ConfigComponent<SectionChartC
|
|
|
6282
6301
|
protected readonly percent: import("@angular/core").Signal<boolean>;
|
|
6283
6302
|
private readonly plotWidth;
|
|
6284
6303
|
private readonly plotHeight;
|
|
6304
|
+
protected readonly left: import("@angular/core").Signal<number>;
|
|
6305
|
+
protected readonly top: import("@angular/core").Signal<number>;
|
|
6285
6306
|
protected readonly right: import("@angular/core").Signal<number>;
|
|
6286
6307
|
protected readonly bottom: import("@angular/core").Signal<number>;
|
|
6287
6308
|
protected readonly viewBox: import("@angular/core").Signal<string>;
|
|
@@ -6310,6 +6331,8 @@ export declare class SectionChartComponent extends ConfigComponent<SectionChartC
|
|
|
6310
6331
|
label: string;
|
|
6311
6332
|
}[]>;
|
|
6312
6333
|
protected readonly windowLabel: import("@angular/core").Signal<string>;
|
|
6334
|
+
/** What the top row names the period: the authored text, else the window. */
|
|
6335
|
+
protected readonly periodLabel: import("@angular/core").Signal<string>;
|
|
6313
6336
|
/**
|
|
6314
6337
|
* Each series' legend row: its colour, and its change measured across the
|
|
6315
6338
|
* window — `—` for a series with nothing in it. Every registered series has
|
|
@@ -6455,6 +6478,16 @@ export declare class SectionChartComponent extends ConfigComponent<SectionChartC
|
|
|
6455
6478
|
"required": false;
|
|
6456
6479
|
"isSignal": true;
|
|
6457
6480
|
};
|
|
6481
|
+
"variant": {
|
|
6482
|
+
"alias": "variant";
|
|
6483
|
+
"required": false;
|
|
6484
|
+
"isSignal": true;
|
|
6485
|
+
};
|
|
6486
|
+
"displayPeriod": {
|
|
6487
|
+
"alias": "displayPeriod";
|
|
6488
|
+
"required": false;
|
|
6489
|
+
"isSignal": true;
|
|
6490
|
+
};
|
|
6458
6491
|
"height": {
|
|
6459
6492
|
"alias": "height";
|
|
6460
6493
|
"required": false;
|
|
@@ -8179,7 +8212,7 @@ declare class ColorPickerBoxComponent implements AfterViewInit, OnDestroy {
|
|
|
8179
8212
|
protected readonly _eyedropperConfig: import("@magmonium/one").Button;
|
|
8180
8213
|
protected readonly _headerContextMenu: ContextMenu;
|
|
8181
8214
|
protected readonly themeSwatches: import("@angular/core").Signal<{
|
|
8182
|
-
key: "
|
|
8215
|
+
key: "mm" | "mmLite" | "mmDark" | "background" | "border" | "text" | "textSecondary" | "focus" | "error" | "errorLight" | "warning" | "successLite" | "success" | "highlight" | "wealth";
|
|
8183
8216
|
color: string;
|
|
8184
8217
|
}[]>;
|
|
8185
8218
|
hue: import("@angular/core").WritableSignal<number>;
|
|
@@ -11995,7 +12028,7 @@ export type DocAiPhase = 'idle' | 'asking' | 'question' | 'outline' | 'writing'
|
|
|
11995
12028
|
*/
|
|
11996
12029
|
export declare class DocEditorComponent implements ControlValueAccessor {
|
|
11997
12030
|
protected readonly groups: readonly import("@magmonium/one").DocToolbarGroup[];
|
|
11998
|
-
protected readonly icons: Record<"
|
|
12031
|
+
protected readonly icons: Record<"list" | "code" | "link" | "table" | "strike" | "bold" | "heading" | "italic" | "quote", string>;
|
|
11999
12032
|
protected readonly docActionKey: typeof docActionKey;
|
|
12000
12033
|
private readonly translate;
|
|
12001
12034
|
protected readonly value: import("@angular/core").WritableSignal<string>;
|