@camstack/ui-library 1.2.305 → 1.2.306

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 (37) hide show
  1. package/dist/{MotionZonesSettings-C3Tj12yc.js → MotionZonesSettings-DR1g9ja3.js} +1 -1
  2. package/dist/{PrivacyMaskSettings-C9wfHkiB.js → PrivacyMaskSettings-CtetT6Jl.js} +1 -1
  3. package/dist/{SceneMonitorEditor-30H29vN4.js → SceneMonitorEditor-BQhVO2F2.js} +1 -1
  4. package/dist/composites/cap-settings/EventHeatmap.d.ts +8 -2
  5. package/dist/composites/charts/BarSeries.d.ts +49 -0
  6. package/dist/composites/charts/Sparkline.d.ts +26 -0
  7. package/dist/composites/charts/StateTimeline.d.ts +47 -0
  8. package/dist/composites/charts/TimeSeriesChart.d.ts +48 -0
  9. package/dist/composites/charts/bar-series-model.d.ts +25 -0
  10. package/dist/composites/charts/chart-data.d.ts +87 -0
  11. package/dist/composites/charts/chart-frame.d.ts +53 -0
  12. package/dist/composites/charts/chart-palette.d.ts +46 -0
  13. package/dist/composites/charts/chart-scale.d.ts +29 -0
  14. package/dist/composites/charts/chart-uplot.d.ts +44 -0
  15. package/dist/composites/charts/chart-window.d.ts +19 -0
  16. package/dist/composites/charts/index.d.ts +16 -0
  17. package/dist/composites/charts/time-series-model.d.ts +47 -0
  18. package/dist/composites/charts/uplot-host.d.ts +34 -0
  19. package/dist/composites/device-history/DeviceHistoryView.d.ts +26 -0
  20. package/dist/composites/device-history/HistoryChart.d.ts +31 -0
  21. package/dist/composites/device-history/HistoryWindowBar.d.ts +16 -0
  22. package/dist/composites/device-history/history-model.d.ts +121 -0
  23. package/dist/composites/device-history/history-reads.d.ts +43 -0
  24. package/dist/composites/device-history/history-selection.d.ts +55 -0
  25. package/dist/composites/device-history/history-window.d.ts +31 -0
  26. package/dist/composites/device-history/index.d.ts +14 -0
  27. package/dist/composites/device-history/use-device-history.d.ts +37 -0
  28. package/dist/composites/device-history/use-history-panels.d.ts +10 -0
  29. package/dist/composites/index.d.ts +2 -0
  30. package/dist/{icons-B1AFXUaZ.cjs → icons-BTux33dH.cjs} +2 -35
  31. package/dist/{icons-BT8c2hxp.js → icons-D178phML.js} +1 -34
  32. package/dist/index.cjs +3172 -45
  33. package/dist/index.js +3094 -52
  34. package/dist/uPlot.esm-BbxBUnav.cjs +3767 -0
  35. package/dist/uPlot.esm-C_8LiAPm.js +3767 -0
  36. package/package.json +2 -1
  37. package/src/tailwind/camstack-theme.css +104 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/ui-library",
3
- "version": "1.2.305",
3
+ "version": "1.2.306",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -83,6 +83,7 @@
83
83
  }
84
84
  },
85
85
  "dependencies": {
86
+ "uplot": "1.6.32",
86
87
  "zod": "^4.3.6"
87
88
  },
88
89
  "devDependencies": {
@@ -39,10 +39,21 @@
39
39
  --color-provider-ha: #22d3ee;
40
40
  --color-provider-rtsp: #78716c;
41
41
 
42
- /* Cluster load-chart categorical series (web only; not status colours).
43
- CVD-validated pair: blue = main threads, magenta = V8 pool. */
42
+ /* Chart categorical series (web only; never status colours), FIXED order:
43
+ a blue, b magenta, c yellow, d aqua, e orange, f violet, g green, h red.
44
+ Validated as an 8-slot adjacent-pair palette against `surface` in both
45
+ themes (dark: all checks pass; light: CVD 7.2 and four slots under 3:1, so
46
+ every chart carries a legend and direct values). Slots a/b keep the load
47
+ chart's meaning (main threads / V8 pool). A ninth series reuses a slot
48
+ with a dash pattern (`composites/charts/chart-palette.ts`), never a new hue. */
44
49
  --color-chart-series-a: #3987e5;
45
50
  --color-chart-series-b: #d55181;
51
+ --color-chart-series-c: #c98500;
52
+ --color-chart-series-d: #199e70;
53
+ --color-chart-series-e: #d95926;
54
+ --color-chart-series-f: #9085e9;
55
+ --color-chart-series-g: #008300;
56
+ --color-chart-series-h: #e66767;
46
57
 
47
58
  /* Cluster node identity — vivid pastels (never stone/gray: that reads disabled) */
48
59
  --color-node-a: #7dd3fc;
@@ -107,6 +118,12 @@
107
118
  --color-neutral-on: #fafaf9;
108
119
  --color-chart-series-a: #3987e5;
109
120
  --color-chart-series-b: #d55181;
121
+ --color-chart-series-c: #c98500;
122
+ --color-chart-series-d: #199e70;
123
+ --color-chart-series-e: #d95926;
124
+ --color-chart-series-f: #9085e9;
125
+ --color-chart-series-g: #008300;
126
+ --color-chart-series-h: #e66767;
110
127
  --color-node-a: #7dd3fc;
111
128
  --color-node-b: #f9a8d4;
112
129
  --color-node-c: #86efac;
@@ -150,6 +167,12 @@
150
167
  --color-neutral-on: #ffffff;
151
168
  --color-chart-series-a: #2a78d6;
152
169
  --color-chart-series-b: #e87ba4;
170
+ --color-chart-series-c: #eda100;
171
+ --color-chart-series-d: #1baf7a;
172
+ --color-chart-series-e: #eb6834;
173
+ --color-chart-series-f: #6250d6;
174
+ --color-chart-series-g: #008300;
175
+ --color-chart-series-h: #e34948;
153
176
  --color-node-a: #0284c7;
154
177
  --color-node-b: #db2777;
155
178
  --color-node-c: #16a34a;
@@ -194,6 +217,12 @@
194
217
  --color-neutral-on: #ffffff;
195
218
  --color-chart-series-a: #2a78d6;
196
219
  --color-chart-series-b: #e87ba4;
220
+ --color-chart-series-c: #eda100;
221
+ --color-chart-series-d: #1baf7a;
222
+ --color-chart-series-e: #eb6834;
223
+ --color-chart-series-f: #6250d6;
224
+ --color-chart-series-g: #008300;
225
+ --color-chart-series-h: #e34948;
197
226
  --color-node-a: #0284c7;
198
227
  --color-node-b: #db2777;
199
228
  --color-node-c: #16a34a;
@@ -204,3 +233,76 @@
204
233
  --color-node-h: #e11d48;
205
234
  }
206
235
  }
236
+
237
+ /* uPlot structure for the chart family (`composites/charts/`). uPlot ships its
238
+ own stylesheet; these are only the rules its layout needs, spelled in theme
239
+ tokens. Its legend is never used — the React legend renders identity. */
240
+ .uplot,
241
+ .uplot *,
242
+ .uplot *::before,
243
+ .uplot *::after {
244
+ box-sizing: border-box;
245
+ }
246
+ .uplot {
247
+ font-family: inherit;
248
+ line-height: 1.5;
249
+ width: 100%;
250
+ }
251
+ .uplot .u-wrap {
252
+ position: relative;
253
+ user-select: none;
254
+ }
255
+ .uplot .u-over,
256
+ .uplot .u-under {
257
+ position: absolute;
258
+ }
259
+ .uplot .u-under {
260
+ overflow: hidden;
261
+ }
262
+ .uplot canvas {
263
+ display: block;
264
+ position: relative;
265
+ width: 100%;
266
+ height: 100%;
267
+ }
268
+ .uplot .u-axis {
269
+ position: absolute;
270
+ }
271
+ .uplot .u-select {
272
+ position: absolute;
273
+ pointer-events: none;
274
+ background: color-mix(in srgb, var(--color-primary) 12%, transparent);
275
+ }
276
+ .uplot .u-cursor-x,
277
+ .uplot .u-cursor-y {
278
+ position: absolute;
279
+ left: 0;
280
+ top: 0;
281
+ pointer-events: none;
282
+ will-change: transform;
283
+ }
284
+ .uplot.u-hz .u-cursor-x {
285
+ height: 100%;
286
+ border-right: 1px solid var(--color-foreground-subtle);
287
+ }
288
+ .uplot.u-hz .u-cursor-y {
289
+ width: 100%;
290
+ border-bottom: 1px dashed var(--color-border);
291
+ }
292
+ .uplot .u-cursor-pt {
293
+ position: absolute;
294
+ top: 0;
295
+ left: 0;
296
+ border-radius: 50%;
297
+ border: 0 solid;
298
+ pointer-events: none;
299
+ will-change: transform;
300
+ background-clip: padding-box !important;
301
+ }
302
+ .uplot .u-axis.u-off,
303
+ .uplot .u-select.u-off,
304
+ .uplot .u-cursor-x.u-off,
305
+ .uplot .u-cursor-y.u-off,
306
+ .uplot .u-cursor-pt.u-off {
307
+ display: none;
308
+ }