@devicechain/widgets 0.21.1 → 0.22.0

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 (78) hide show
  1. package/README.md +28 -7
  2. package/dist/aggregate-feed.d.ts +14 -0
  3. package/dist/aggregate-fold.d.ts +11 -0
  4. package/dist/aggregate-reading.d.ts +19 -0
  5. package/dist/aggregate-strings.d.ts +16 -0
  6. package/dist/binding-policy.d.ts +3 -1
  7. package/dist/builtin-descriptors.d.ts +1210 -8
  8. package/dist/builtin-registry.d.ts +1197 -8
  9. package/dist/category-geometry.d.ts +19 -0
  10. package/dist/category-items.d.ts +10 -0
  11. package/dist/chunks/aggregate-feed-6ZYKOQOB.js +130 -0
  12. package/dist/chunks/aggregate-feed-6ZYKOQOB.js.map +7 -0
  13. package/dist/chunks/aggregate-widgets-WVXAW3UL.js +895 -0
  14. package/dist/chunks/aggregate-widgets-WVXAW3UL.js.map +7 -0
  15. package/dist/chunks/chunk-2D7JNKFE.js +65 -0
  16. package/dist/chunks/chunk-2D7JNKFE.js.map +7 -0
  17. package/dist/chunks/chunk-S2OMBJLI.js +200 -0
  18. package/dist/chunks/chunk-S2OMBJLI.js.map +7 -0
  19. package/dist/chunks/chunk-XQQQNTBX.js +76 -0
  20. package/dist/chunks/chunk-XQQQNTBX.js.map +7 -0
  21. package/dist/chunks/chunk-YPFB6DAL.js +157 -0
  22. package/dist/chunks/chunk-YPFB6DAL.js.map +7 -0
  23. package/dist/chunks/chunk-ZR74ORIT.js +35 -0
  24. package/dist/chunks/chunk-ZR74ORIT.js.map +7 -0
  25. package/dist/chunks/control-widgets-UDS4ET3T.js +775 -0
  26. package/dist/chunks/control-widgets-UDS4ET3T.js.map +7 -0
  27. package/dist/chunks/fleet-feed-FK4ZMKIK.js +252 -0
  28. package/dist/chunks/fleet-feed-FK4ZMKIK.js.map +7 -0
  29. package/dist/chunks/level-widgets-MJB7TOLU.js +833 -0
  30. package/dist/chunks/level-widgets-MJB7TOLU.js.map +7 -0
  31. package/dist/command-control-core.d.ts +68 -0
  32. package/dist/command-control-strings.d.ts +32 -0
  33. package/dist/command-control.d.ts +31 -0
  34. package/dist/dashboard-renderer.d.ts +15 -4
  35. package/dist/fleet-feed.d.ts +21 -0
  36. package/dist/fleet-model.d.ts +43 -0
  37. package/dist/fleet-seed.d.ts +7 -0
  38. package/dist/fleet-strings.d.ts +25 -0
  39. package/dist/heading.d.ts +3 -0
  40. package/dist/index.d.ts +3 -2
  41. package/dist/index.js +1774 -676
  42. package/dist/index.js.map +4 -4
  43. package/dist/level-reading.d.ts +29 -0
  44. package/dist/level-readout.d.ts +25 -0
  45. package/dist/level-strings.d.ts +13 -0
  46. package/dist/options.d.ts +1 -1
  47. package/dist/time-range-bar.d.ts +28 -0
  48. package/dist/use-held.d.ts +1 -0
  49. package/dist/value-scale.d.ts +30 -0
  50. package/dist/widgets/aggregate-lazy.d.ts +305 -0
  51. package/dist/widgets/aggregate-widgets.d.ts +4 -0
  52. package/dist/widgets/alarm-count.d.ts +1 -0
  53. package/dist/widgets/alarm-table.d.ts +4 -1
  54. package/dist/widgets/bar-chart.d.ts +5 -0
  55. package/dist/widgets/battery.d.ts +7 -0
  56. package/dist/widgets/command-slider.d.ts +2 -0
  57. package/dist/widgets/command-toggle.d.ts +4 -0
  58. package/dist/widgets/compass.d.ts +2 -0
  59. package/dist/widgets/control-lazy.d.ts +92 -0
  60. package/dist/widgets/control-widgets.d.ts +2 -0
  61. package/dist/widgets/fleet-table.d.ts +13 -0
  62. package/dist/widgets/gauge.d.ts +52 -0
  63. package/dist/widgets/label.d.ts +1 -1
  64. package/dist/widgets/latest-card.d.ts +44 -1
  65. package/dist/widgets/lazy-chunk.d.ts +8 -0
  66. package/dist/widgets/level-gauge.d.ts +2 -0
  67. package/dist/widgets/level-lazy.d.ts +647 -0
  68. package/dist/widgets/level-widgets.d.ts +7 -0
  69. package/dist/widgets/linear-gauge.d.ts +2 -0
  70. package/dist/widgets/pie-chart.d.ts +2 -0
  71. package/dist/widgets/progress-ring.d.ts +3 -0
  72. package/dist/widgets/severity.d.ts +2 -1
  73. package/dist/widgets/signal-bars.d.ts +3 -0
  74. package/dist/widgets/stat-card.d.ts +3 -0
  75. package/dist/widgets/status-light.d.ts +7 -0
  76. package/dist/widgets/table.d.ts +9 -1
  77. package/dist/widgets/time-series-chart.d.ts +62 -4
  78. package/package.json +8 -8
@@ -27,12 +27,64 @@ export declare const gaugeWidget: import("@devicechain/widget-sdk").WidgetDefini
27
27
  readonly labelId: 'widgetLabelUnit';
28
28
  readonly doc: 'Unit suffix shown beside the value.';
29
29
  };
30
+ readonly precision: {
31
+ readonly kind: 'number';
32
+ readonly integer: true;
33
+ readonly min: 0;
34
+ readonly max: 100;
35
+ readonly labelId: 'widgetLabelPrecision';
36
+ readonly helpId: 'widgetHintPrecision';
37
+ readonly doc: 'Decimal places to round displayed values to. Unset rounds to at most 3 decimals (4 significant digits under 1).';
38
+ };
39
+ readonly thresholds: {
40
+ readonly kind: 'list';
41
+ readonly maxItems: 12;
42
+ readonly labelId: 'widgetLabelThresholds';
43
+ readonly helpId: 'widgetHintThresholds';
44
+ readonly doc: 'Severity bands over the value. Each entry starts a band at its value that runs to the next entry; below the first, and in a normal band, the widget keeps its own colour.';
45
+ readonly item: {
46
+ readonly value: {
47
+ readonly kind: 'number';
48
+ readonly required: true;
49
+ readonly labelId: 'widgetLabelThresholdValue';
50
+ readonly doc: 'The value at which this band starts.';
51
+ };
52
+ readonly level: {
53
+ readonly kind: 'enum';
54
+ readonly required: true;
55
+ readonly values: readonly ["normal", "warning", "minor", "major", "critical"];
56
+ readonly labelId: 'widgetLabelThresholdLevel';
57
+ readonly valueLabelIds: {
58
+ readonly normal: 'widgetSeverityNormal';
59
+ readonly warning: 'widgetSeverityWarning';
60
+ readonly minor: 'widgetSeverityMinor';
61
+ readonly major: 'widgetSeverityMajor';
62
+ readonly critical: 'widgetSeverityCritical';
63
+ };
64
+ readonly placeholderId: 'widgetPlaceholderThresholdLevel';
65
+ readonly doc: 'The severity of this band. The theme decides the colour; normal has none.';
66
+ };
67
+ readonly label: {
68
+ readonly kind: 'string';
69
+ readonly labelId: 'widgetLabelThresholdLabel';
70
+ readonly doc: 'Text shown on the chart line for this threshold. Defaults to its value.';
71
+ };
72
+ };
73
+ };
30
74
  readonly flashOnChange: {
31
75
  readonly kind: 'boolean';
32
76
  readonly labelId: 'widgetFlashOnChange';
33
77
  readonly helpId: 'widgetFlashOnChangeHint';
34
78
  readonly doc: 'Briefly tint a value green on a rise and red on a fall when it changes.';
35
79
  };
80
+ readonly staleAfterSeconds: {
81
+ readonly kind: 'number';
82
+ readonly integer: true;
83
+ readonly min: 1;
84
+ readonly labelId: 'widgetLabelStaleAfter';
85
+ readonly helpId: 'widgetHintStaleAfter';
86
+ readonly doc: 'Seconds after which the newest sample is called stale: the value is greyed out and badged. Unset shows the sample age only and never marks the widget stale.';
87
+ };
36
88
  readonly window: {
37
89
  readonly kind: 'number';
38
90
  readonly integer: true;
@@ -29,6 +29,6 @@ export declare const labelWidget: import("@devicechain/widget-sdk").WidgetDefini
29
29
  readonly min: 1;
30
30
  readonly labelId: "widgetLabelFontSize";
31
31
  readonly helpId: "widgetHintFontSize";
32
- readonly doc: "Text size in pixels. Default 16.";
32
+ readonly doc: "Text size in pixels at the comfortable density; it scales with the board density. Default 16.";
33
33
  };
34
34
  }>;
@@ -24,7 +24,42 @@ export declare const latestCardWidget: import("@devicechain/widget-sdk").WidgetD
24
24
  readonly max: 100;
25
25
  readonly labelId: 'widgetLabelPrecision';
26
26
  readonly helpId: 'widgetHintPrecision';
27
- readonly doc: 'Decimal places to round displayed values to. Unset shows the raw value.';
27
+ readonly doc: 'Decimal places to round displayed values to. Unset rounds to at most 3 decimals (4 significant digits under 1).';
28
+ };
29
+ readonly thresholds: {
30
+ readonly kind: 'list';
31
+ readonly maxItems: 12;
32
+ readonly labelId: 'widgetLabelThresholds';
33
+ readonly helpId: 'widgetHintThresholds';
34
+ readonly doc: 'Severity bands over the value. Each entry starts a band at its value that runs to the next entry; below the first, and in a normal band, the widget keeps its own colour.';
35
+ readonly item: {
36
+ readonly value: {
37
+ readonly kind: 'number';
38
+ readonly required: true;
39
+ readonly labelId: 'widgetLabelThresholdValue';
40
+ readonly doc: 'The value at which this band starts.';
41
+ };
42
+ readonly level: {
43
+ readonly kind: 'enum';
44
+ readonly required: true;
45
+ readonly values: readonly ["normal", "warning", "minor", "major", "critical"];
46
+ readonly labelId: 'widgetLabelThresholdLevel';
47
+ readonly valueLabelIds: {
48
+ readonly normal: 'widgetSeverityNormal';
49
+ readonly warning: 'widgetSeverityWarning';
50
+ readonly minor: 'widgetSeverityMinor';
51
+ readonly major: 'widgetSeverityMajor';
52
+ readonly critical: 'widgetSeverityCritical';
53
+ };
54
+ readonly placeholderId: 'widgetPlaceholderThresholdLevel';
55
+ readonly doc: 'The severity of this band. The theme decides the colour; normal has none.';
56
+ };
57
+ readonly label: {
58
+ readonly kind: 'string';
59
+ readonly labelId: 'widgetLabelThresholdLabel';
60
+ readonly doc: 'Text shown on the chart line for this threshold. Defaults to its value.';
61
+ };
62
+ };
28
63
  };
29
64
  readonly flashOnChange: {
30
65
  readonly kind: 'boolean';
@@ -32,6 +67,14 @@ export declare const latestCardWidget: import("@devicechain/widget-sdk").WidgetD
32
67
  readonly helpId: 'widgetFlashOnChangeHint';
33
68
  readonly doc: 'Briefly tint a value green on a rise and red on a fall when it changes.';
34
69
  };
70
+ readonly staleAfterSeconds: {
71
+ readonly kind: 'number';
72
+ readonly integer: true;
73
+ readonly min: 1;
74
+ readonly labelId: 'widgetLabelStaleAfter';
75
+ readonly helpId: 'widgetHintStaleAfter';
76
+ readonly doc: 'Seconds after which the newest sample is called stale: the value is greyed out and badged. Unset shows the sample age only and never marks the widget stale.';
77
+ };
35
78
  readonly window: {
36
79
  readonly kind: 'number';
37
80
  readonly integer: true;
@@ -0,0 +1,8 @@
1
+ import type { MeasurementStreamState, WidgetProps } from '@devicechain/widget-sdk';
2
+ export declare function lazyChunk<M extends Record<string, unknown>, D = MeasurementStreamState>(importer: () => Promise<M>): {
3
+ load: () => Promise<M>;
4
+ component: <P = D, Props extends object = WidgetProps<P>>(name: keyof M & string) => {
5
+ (props: Props): import("react").JSX.Element | null;
6
+ displayName: string;
7
+ };
8
+ };
@@ -0,0 +1,2 @@
1
+ import { type WidgetProps } from '@devicechain/widget-sdk';
2
+ export declare function LevelGauge({ widget, data }: WidgetProps): import("react").JSX.Element;