@ironflock/widget-value 1.1.37 → 1.1.39

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.
@@ -665,7 +665,7 @@ const re = new Intl.DateTimeFormat(void 0, {
665
665
  };
666
666
  let m = class extends O {
667
667
  constructor() {
668
- super(), this.dataSets = /* @__PURE__ */ new Map(), this.textActive = !0, this.version = "1.1.37", this.origWidth = 0, this.origHeight = 0, this.resizeObserver = new ResizeObserver(this.applyData.bind(this));
668
+ super(), this.dataSets = /* @__PURE__ */ new Map(), this.textActive = !0, this.version = "1.1.39", this.origWidth = 0, this.origHeight = 0, this.resizeObserver = new ResizeObserver(this.applyData.bind(this));
669
669
  }
670
670
  connectedCallback() {
671
671
  super.connectedCallback(), this.resizeObserver.observe(this), this.hasUpdated && this.transformData();
@@ -957,7 +957,7 @@ v([
957
957
  _t(".sizing-container")
958
958
  ], m.prototype, "sizingContainer", 2);
959
959
  m = v([
960
- Xt("widget-value-1.1.37")
960
+ Xt("widget-value-1.1.39")
961
961
  ], m);
962
962
  export {
963
963
  m 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.37",
6
+ "version": "1.1.39",
7
7
  "engines": {
8
8
  "node": ">=24.9.0",
9
9
  "npm": ">=10.0.2"
@@ -23,13 +23,7 @@
23
23
  "watch": "vite build --watch",
24
24
  "link": "npm run build && npm link && cd ../RESWARM/frontend && npm link @ironflock/widget-value",
25
25
  "unlink": "npm unlink --global && cd ../RESWARM/frontend && npm unlink @ironflock/widget-value && npm i @ironflock/widget-value",
26
- "types": "cat src/definition-schema.json | json2ts --style.tabWidth=4 > src/definition-schema.d.ts",
27
- "preversion": "sh scripts/release-preflight.sh",
28
- "version": "npm run build",
29
- "postversion": "git push --follow-tags && sh scripts/release-verify.sh",
30
- "release": "npm version patch",
31
- "release:minor": "npm version minor",
32
- "release:major": "npm version major"
26
+ "types": "cat src/definition-schema.json | json2ts --style.tabWidth=4 > src/definition-schema.d.ts"
33
27
  },
34
28
  "dependencies": {
35
29
  "lit": "^3.3.3",
@@ -4,17 +4,16 @@
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. The subtitle can be bound as well, and shown as a local date and time when it holds a timestamp (subTitleType).",
6
6
  "useWhen": [
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
- "The number has a unit and a sensible precision and should be read exactly.",
9
- "One tile per machine or site should be generated from a single column (data[].pivot).",
10
- "Stale data should be visibly flagged rather than shown as current (advanced.maxLatency)."
7
+ "A figure should be the average of its latest N readings rather than the newest one (advanced.averageLatest).",
8
+ "One readout per machine or site should be generated from a single column, for however many there are (multiChart with data[].pivot)."
11
9
  ],
12
10
  "notFor": [
13
11
  "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.",
14
12
  "A number that only means something against a minimum and maximum — use widget-gauge.",
15
13
  "How the number is changing — use widget-linechart.",
16
14
  "Its share of a total — use widget-doughnut when the parts are a fixed set that arrive as columns of one row (or as one value each); when the parts are rows of the result (one row per cause or program), use widget-linechart with dataseries[].type: 'bar'.",
17
- "Several fields per entity that belong side by side — use widget-table.",
15
+ "A figure, or several figures that belong together, shown in their context — a KPI card, the current readings of one machine, one shift's output and scrap — use widget-markdown, laid out in HTML, with valueType 'number' and precision for the decimals, a bound tsp with maxLatency to hide stale readings, and text sized to the tile with container units (cqh, cqw).",
16
+ "Several fields of many entities side by side — use widget-table.",
18
17
  "Text rather than a figure — use widget-label."
19
18
  ]
20
19
  },