@ironflock/widget-value 1.1.38 → 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.
package/dist/widget-value.js
CHANGED
|
@@ -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.
|
|
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.
|
|
960
|
+
Xt("widget-value-1.1.39")
|
|
961
961
|
], m);
|
|
962
962
|
export {
|
|
963
963
|
m as WidgetValue
|
package/package.json
CHANGED
|
@@ -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
|
|
8
|
-
"
|
|
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
|
-
"
|
|
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
|
},
|