@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.
- package/README.md +28 -7
- package/dist/aggregate-feed.d.ts +14 -0
- package/dist/aggregate-fold.d.ts +11 -0
- package/dist/aggregate-reading.d.ts +19 -0
- package/dist/aggregate-strings.d.ts +16 -0
- package/dist/binding-policy.d.ts +3 -1
- package/dist/builtin-descriptors.d.ts +1210 -8
- package/dist/builtin-registry.d.ts +1197 -8
- package/dist/category-geometry.d.ts +19 -0
- package/dist/category-items.d.ts +10 -0
- package/dist/chunks/aggregate-feed-6ZYKOQOB.js +130 -0
- package/dist/chunks/aggregate-feed-6ZYKOQOB.js.map +7 -0
- package/dist/chunks/aggregate-widgets-WVXAW3UL.js +895 -0
- package/dist/chunks/aggregate-widgets-WVXAW3UL.js.map +7 -0
- package/dist/chunks/chunk-2D7JNKFE.js +65 -0
- package/dist/chunks/chunk-2D7JNKFE.js.map +7 -0
- package/dist/chunks/chunk-S2OMBJLI.js +200 -0
- package/dist/chunks/chunk-S2OMBJLI.js.map +7 -0
- package/dist/chunks/chunk-XQQQNTBX.js +76 -0
- package/dist/chunks/chunk-XQQQNTBX.js.map +7 -0
- package/dist/chunks/chunk-YPFB6DAL.js +157 -0
- package/dist/chunks/chunk-YPFB6DAL.js.map +7 -0
- package/dist/chunks/chunk-ZR74ORIT.js +35 -0
- package/dist/chunks/chunk-ZR74ORIT.js.map +7 -0
- package/dist/chunks/control-widgets-UDS4ET3T.js +775 -0
- package/dist/chunks/control-widgets-UDS4ET3T.js.map +7 -0
- package/dist/chunks/fleet-feed-FK4ZMKIK.js +252 -0
- package/dist/chunks/fleet-feed-FK4ZMKIK.js.map +7 -0
- package/dist/chunks/level-widgets-MJB7TOLU.js +833 -0
- package/dist/chunks/level-widgets-MJB7TOLU.js.map +7 -0
- package/dist/command-control-core.d.ts +68 -0
- package/dist/command-control-strings.d.ts +32 -0
- package/dist/command-control.d.ts +31 -0
- package/dist/dashboard-renderer.d.ts +15 -4
- package/dist/fleet-feed.d.ts +21 -0
- package/dist/fleet-model.d.ts +43 -0
- package/dist/fleet-seed.d.ts +7 -0
- package/dist/fleet-strings.d.ts +25 -0
- package/dist/heading.d.ts +3 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1774 -676
- package/dist/index.js.map +4 -4
- package/dist/level-reading.d.ts +29 -0
- package/dist/level-readout.d.ts +25 -0
- package/dist/level-strings.d.ts +13 -0
- package/dist/options.d.ts +1 -1
- package/dist/time-range-bar.d.ts +28 -0
- package/dist/use-held.d.ts +1 -0
- package/dist/value-scale.d.ts +30 -0
- package/dist/widgets/aggregate-lazy.d.ts +305 -0
- package/dist/widgets/aggregate-widgets.d.ts +4 -0
- package/dist/widgets/alarm-count.d.ts +1 -0
- package/dist/widgets/alarm-table.d.ts +4 -1
- package/dist/widgets/bar-chart.d.ts +5 -0
- package/dist/widgets/battery.d.ts +7 -0
- package/dist/widgets/command-slider.d.ts +2 -0
- package/dist/widgets/command-toggle.d.ts +4 -0
- package/dist/widgets/compass.d.ts +2 -0
- package/dist/widgets/control-lazy.d.ts +92 -0
- package/dist/widgets/control-widgets.d.ts +2 -0
- package/dist/widgets/fleet-table.d.ts +13 -0
- package/dist/widgets/gauge.d.ts +52 -0
- package/dist/widgets/label.d.ts +1 -1
- package/dist/widgets/latest-card.d.ts +44 -1
- package/dist/widgets/lazy-chunk.d.ts +8 -0
- package/dist/widgets/level-gauge.d.ts +2 -0
- package/dist/widgets/level-lazy.d.ts +647 -0
- package/dist/widgets/level-widgets.d.ts +7 -0
- package/dist/widgets/linear-gauge.d.ts +2 -0
- package/dist/widgets/pie-chart.d.ts +2 -0
- package/dist/widgets/progress-ring.d.ts +3 -0
- package/dist/widgets/severity.d.ts +2 -1
- package/dist/widgets/signal-bars.d.ts +3 -0
- package/dist/widgets/stat-card.d.ts +3 -0
- package/dist/widgets/status-light.d.ts +7 -0
- package/dist/widgets/table.d.ts +9 -1
- package/dist/widgets/time-series-chart.d.ts +62 -4
- package/package.json +8 -8
package/dist/widgets/gauge.d.ts
CHANGED
|
@@ -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;
|
package/dist/widgets/label.d.ts
CHANGED
|
@@ -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
|
|
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
|
+
};
|