@nivaro/react 0.1.234 → 0.1.235

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/dist/index.d.ts CHANGED
@@ -2338,6 +2338,8 @@ declare interface MatrixEditorConfig {
2338
2338
  option_filter?: Record<string, unknown>;
2339
2339
  key_field: string;
2340
2340
  value_field: string;
2341
+ /** Colour role for the saved-value column (default 'info'). */
2342
+ value_color?: string;
2341
2343
  value_label?: string;
2342
2344
  value_format?: 'currency' | 'number';
2343
2345
  /** Scope pickers. `filter` narrows a picker's options; '$scope.<field>'
@@ -2402,10 +2404,13 @@ declare interface MatrixEditorConfig {
2402
2404
  params?: Record<string, unknown>;
2403
2405
  match_option_field: string;
2404
2406
  match_group_field?: string;
2407
+ /** `color` = a QueryTable colour role (accent | ink | muted | positive |
2408
+ * negative | warning | info) or hex for the column's figures. */
2405
2409
  columns: Array<{
2406
2410
  field: string;
2407
2411
  label?: string;
2408
2412
  format?: 'currency' | 'number';
2413
+ color?: string;
2409
2414
  }>;
2410
2415
  /** Computed columns over the row: `{{__current__}}` (saved value),
2411
2416
  * `{{__new__}}` (live value incl. the edit) and any metric field —
@@ -2415,6 +2420,10 @@ declare interface MatrixEditorConfig {
2415
2420
  label: string;
2416
2421
  formula: string;
2417
2422
  format?: 'currency' | 'number';
2423
+ /** Colour role; `color_negative` takes over below zero (default
2424
+ * positive / negative — a Remaining figure). */
2425
+ color?: string;
2426
+ color_negative?: string;
2418
2427
  }>;
2419
2428
  /** Metric rows that match no rendered cell still count: shown read-only as
2420
2429
  * an "Other …" row per group (options outside the project's list) and an
@@ -3110,6 +3119,11 @@ declare interface QueryTableConfig {
3110
3119
  /** Render a Months/Quarters toggle above the table (EFP quarterly view).
3111
3120
  * Quarter columns sum their three months — same drill/total math. */
3112
3121
  quarter_toggle?: boolean;
3122
+ /** Colour role/hex for the generated period + year columns, an optional
3123
+ * below-zero flip, and a separate colour for the Total column. */
3124
+ color?: string;
3125
+ color_negative?: string;
3126
+ total_color?: string;
3113
3127
  };
3114
3128
  }
3115
3129