@record-evolution/widget-value 1.1.29 → 1.1.30

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.
@@ -644,7 +644,7 @@ var Yt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, _ = (i, t,
644
644
  };
645
645
  let v = class extends M {
646
646
  constructor() {
647
- super(), this.dataSets = /* @__PURE__ */ new Map(), this.textActive = !0, this.version = "1.1.29", this.origWidth = 0, this.origHeight = 0, this.resizeObserver = new ResizeObserver(this.applyData.bind(this)), this.resizeObserver.observe(this);
647
+ super(), this.dataSets = /* @__PURE__ */ new Map(), this.textActive = !0, this.version = "1.1.30", this.origWidth = 0, this.origHeight = 0, this.resizeObserver = new ResizeObserver(this.applyData.bind(this)), this.resizeObserver.observe(this);
648
648
  }
649
649
  disconnectedCallback() {
650
650
  super.disconnectedCallback(), this.resizeObserver && this.resizeObserver.disconnect();
@@ -923,7 +923,7 @@ _([
923
923
  vt(".sizing-container")
924
924
  ], v.prototype, "sizingContainer", 2);
925
925
  v = _([
926
- Kt("widget-value-1.1.29")
926
+ Kt("widget-value-1.1.30")
927
927
  ], v);
928
928
  export {
929
929
  v as WidgetValue
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "REWidget widget-value",
4
4
  "license": "MIT",
5
5
  "author": "widget-value",
6
- "version": "1.1.29",
6
+ "version": "1.1.30",
7
7
  "engines": {
8
8
  "node": ">=24.9.0",
9
9
  "npm": ">=10.0.2"
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "dataseries": [
3
3
  {
4
- "label": "Temperature",
5
- "unit": "°C",
6
- "precision": 2,
4
+ "label": "Metric A",
5
+ "unit": "",
6
+ "precision": 0,
7
7
  "value": 90
8
8
  },
9
9
  {
10
- "label": "Pressure",
11
- "unit": "Pa",
10
+ "label": "Metric B",
11
+ "unit": "",
12
12
  "value": 80
13
13
  }
14
14
  ]
@@ -78,7 +78,7 @@ export type ValueDisplays = {
78
78
  }[];
79
79
 
80
80
  /**
81
- * A simple numeric value display widget for showing key metrics with labels and units. Use this widget to prominently display important numbers like sensor readings, KPIs, counts, or any scalar values. Supports multiple value displays in one widget, each with its own label, unit, and formatting. Features include decimal precision control, data freshness validation via timestamps, averaging over recent values, and automatic pivot/split functionality for showing one value per distinct category. Ideal for dashboard KPI tiles, sensor readouts, counters, or any scenario requiring clean numeric value presentation.
81
+ * A simple numeric value display widget for showing key metrics with labels and units. Use this widget to prominently display important numbers like sensor readings, KPIs, or any scalar value that already exists in the data — the widget performs NO aggregation (no count/sum/avg; the only reduction is averaging the latest N readings via advanced.averageLatest). Supports multiple value displays in one widget, each with its own label, unit, and formatting. Features include decimal precision control, data freshness validation via timestamps, averaging over recent values, and automatic pivot/split functionality for showing one value per distinct category. Ideal for dashboard KPI tiles, sensor readouts, or any scenario requiring clean numeric value presentation.
82
82
  */
83
83
  export interface ValueDisplayConfiguration {
84
84
  title?: Title;
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "title": "Value Display Configuration",
3
- "description": "A simple numeric value display widget for showing key metrics with labels and units. Use this widget to prominently display important numbers like sensor readings, KPIs, counts, or any scalar values. Supports multiple value displays in one widget, each with its own label, unit, and formatting. Features include decimal precision control, data freshness validation via timestamps, averaging over recent values, and automatic pivot/split functionality for showing one value per distinct category. Ideal for dashboard KPI tiles, sensor readouts, counters, or any scenario requiring clean numeric value presentation.",
3
+ "description": "A simple numeric value display widget for showing key metrics with labels and units. Use this widget to prominently display important numbers like sensor readings, KPIs, or any scalar value that already exists in the data — the widget performs NO aggregation (no count/sum/avg; the only reduction is averaging the latest N readings via advanced.averageLatest). Supports multiple value displays in one widget, each with its own label, unit, and formatting. Features include decimal precision control, data freshness validation via timestamps, averaging over recent values, and automatic pivot/split functionality for showing one value per distinct category. Ideal for dashboard KPI tiles, sensor readouts, or any scenario requiring clean numeric value presentation.",
4
4
  "aiSelection": {
5
5
  "dataShape": "One number per entry: dataseries[].data[].value, with an optional timestamp for freshness checks (advanced.maxLatency) and averaging over the latest N readings. Label, unit and decimal precision are set per entry. A pivot column produces one readout per distinct value.",
6
6
  "useWhen": [
7
- "A single current figure is the whole point — a count, a total, a latest reading, a KPI tile.",
7
+ "A single current figure is the whole point — a KPI tile showing a latest reading or an already-computed count/total that exists as a value in the data.",
8
8
  "The number has a unit and a sensible precision and should be read exactly.",
9
9
  "One tile per machine or site should be generated from a single column (data[].pivot).",
10
10
  "Stale data should be visibly flagged rather than shown as current (advanced.maxLatency)."
11
11
  ],
12
12
  "notFor": [
13
+ "Counting or aggregating rows — the widget performs NO aggregation (no count/sum/avg); it displays a value that already exists in the data or is embedded as a static number.",
13
14
  "A number that only means something against a minimum and maximum — use widget-gauge.",
14
15
  "How the number is changing — use widget-linechart.",
15
16
  "Its share of a total — use widget-doughnut.",