tabby-group-server-stats 1.7.1 → 1.7.2

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": "tabby-group-server-stats",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Server statistics for Tabby with validated custom metrics, hover details and grouped overview, carousel and static layouts",
5
5
  "keywords": [
6
6
  "tabby-plugin",
@@ -61,7 +61,13 @@ export declare class MetricStripComponent implements OnInit, OnChanges, OnDestro
61
61
  status(metric: CustomMetric): string;
62
62
  color(metric: CustomMetric): string;
63
63
  progress(metric: CustomMetric): number;
64
+ private isNetworkRate;
65
+ displayValue(metric: CustomMetric): string;
64
66
  suffix(metric: CustomMetric): string;
67
+ detailRatio(metric: CustomMetric): import("../metric-display").NumericRatio;
68
+ ratioColumnWidth(group: CustomMetricGroup, column: 'numerator' | 'denominator'): string;
69
+ ratioUnitWidth(group: CustomMetricGroup): string;
70
+ networkAmountWidth(group: CustomMetricGroup): string;
65
71
  detailError(metric: CustomMetric): boolean;
66
72
  networkDetail(metric: CustomMetric): {
67
73
  label: string;
@@ -4,6 +4,17 @@ export interface DisplayResult {
4
4
  value: string;
5
5
  status?: 'ok' | 'unavailable' | 'error' | 'pending';
6
6
  }
7
+ /** True only for a complete, finite numeric display value (including grouped values). */
8
+ export declare function isNumericDisplayValue(value: string): boolean;
9
+ /** Convert a KiB/s reading to decimal MB/s with exactly three fractional digits. */
10
+ export declare function formatNetworkRate(value: string): string;
11
+ export interface NumericRatio {
12
+ numerator: string;
13
+ denominator: string;
14
+ suffix: string;
15
+ }
16
+ /** Split capacity-style pairs into independent columns without changing precision. */
17
+ export declare function parseNumericRatio(value: string): NumericRatio | null;
7
18
  /** Parse the built-in network protocol without translating numbers or interface names. */
8
19
  export declare function parseNetworkDetail(value: string): {
9
20
  label: string;