@pulzr/perses-figure-panel 0.0.0-stage → 0.2.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.
Files changed (163) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +52 -2
  3. package/__mf/css/async/b.7481ca0159.css +1 -0
  4. package/__mf/font/inter-cyrillic-300-normal.432f2b2104.woff +0 -0
  5. package/__mf/font/inter-cyrillic-300-normal.9da9100900.woff2 +0 -0
  6. package/__mf/font/inter-cyrillic-400-normal.372704ff40.woff2 +0 -0
  7. package/__mf/font/inter-cyrillic-400-normal.a6b6ef6faf.woff +0 -0
  8. package/__mf/font/inter-cyrillic-500-normal.7c15bba8be.woff2 +0 -0
  9. package/__mf/font/inter-cyrillic-500-normal.b9f8c929ad.woff +0 -0
  10. package/__mf/font/inter-cyrillic-600-normal.2f42892af1.woff2 +0 -0
  11. package/__mf/font/inter-cyrillic-600-normal.c3987adc32.woff +0 -0
  12. package/__mf/font/inter-cyrillic-700-normal.93eba3c390.woff +0 -0
  13. package/__mf/font/inter-cyrillic-700-normal.e9e5b2dce1.woff2 +0 -0
  14. package/__mf/font/inter-cyrillic-900-normal.f285bd7ab1.woff2 +0 -0
  15. package/__mf/font/inter-cyrillic-900-normal.ffbd8a3a24.woff +0 -0
  16. package/__mf/font/inter-cyrillic-ext-300-normal.95bb90387a.woff2 +0 -0
  17. package/__mf/font/inter-cyrillic-ext-300-normal.cfc143a9bf.woff +0 -0
  18. package/__mf/font/inter-cyrillic-ext-400-normal.2a31c04be1.woff +0 -0
  19. package/__mf/font/inter-cyrillic-ext-400-normal.f572b170fb.woff2 +0 -0
  20. package/__mf/font/inter-cyrillic-ext-500-normal.5a6bb1da50.woff +0 -0
  21. package/__mf/font/inter-cyrillic-ext-500-normal.fe0d9b14f7.woff2 +0 -0
  22. package/__mf/font/inter-cyrillic-ext-600-normal.ecbdecadef.woff +0 -0
  23. package/__mf/font/inter-cyrillic-ext-600-normal.f7b3c15b2a.woff2 +0 -0
  24. package/__mf/font/inter-cyrillic-ext-700-normal.4b4022a6b0.woff +0 -0
  25. package/__mf/font/inter-cyrillic-ext-700-normal.74b516d253.woff2 +0 -0
  26. package/__mf/font/inter-cyrillic-ext-900-normal.9970ddb5c6.woff +0 -0
  27. package/__mf/font/inter-cyrillic-ext-900-normal.a0d59adc71.woff2 +0 -0
  28. package/__mf/font/inter-greek-300-normal.0d7be68343.woff2 +0 -0
  29. package/__mf/font/inter-greek-300-normal.8f0b988e58.woff +0 -0
  30. package/__mf/font/inter-greek-400-normal.cc58c11b20.woff +0 -0
  31. package/__mf/font/inter-greek-400-normal.d7020e3c6f.woff2 +0 -0
  32. package/__mf/font/inter-greek-500-normal.d9a33207d7.woff +0 -0
  33. package/__mf/font/inter-greek-500-normal.f41f43dbd9.woff2 +0 -0
  34. package/__mf/font/inter-greek-600-normal.4ec0c1c1a5.woff +0 -0
  35. package/__mf/font/inter-greek-600-normal.cc53293782.woff2 +0 -0
  36. package/__mf/font/inter-greek-700-normal.5ec6c758e5.woff +0 -0
  37. package/__mf/font/inter-greek-700-normal.97f0eeeb81.woff2 +0 -0
  38. package/__mf/font/inter-greek-900-normal.46b66369cb.woff2 +0 -0
  39. package/__mf/font/inter-greek-900-normal.9ae3a3c52a.woff +0 -0
  40. package/__mf/font/inter-greek-ext-300-normal.10247a668b.woff2 +0 -0
  41. package/__mf/font/inter-greek-ext-300-normal.4668e5cbdb.woff +0 -0
  42. package/__mf/font/inter-greek-ext-400-normal.4ce1df5d07.woff2 +0 -0
  43. package/__mf/font/inter-greek-ext-400-normal.88ede1ea0a.woff +0 -0
  44. package/__mf/font/inter-greek-ext-500-normal.7a4aa726ab.woff +0 -0
  45. package/__mf/font/inter-greek-ext-500-normal.cbd51e2da9.woff2 +0 -0
  46. package/__mf/font/inter-greek-ext-600-normal.089a95ee7c.woff +0 -0
  47. package/__mf/font/inter-greek-ext-600-normal.1f33d317c3.woff2 +0 -0
  48. package/__mf/font/inter-greek-ext-700-normal.31f1075d7b.woff +0 -0
  49. package/__mf/font/inter-greek-ext-700-normal.827cd61841.woff2 +0 -0
  50. package/__mf/font/inter-greek-ext-900-normal.531bcee7cb.woff +0 -0
  51. package/__mf/font/inter-greek-ext-900-normal.8a9b36b965.woff2 +0 -0
  52. package/__mf/font/inter-latin-300-normal.15fb600d42.woff2 +0 -0
  53. package/__mf/font/inter-latin-300-normal.6f95f59015.woff +0 -0
  54. package/__mf/font/inter-latin-400-normal.2c7a775c1c.woff +0 -0
  55. package/__mf/font/inter-latin-400-normal.ef6d3f52c5.woff2 +0 -0
  56. package/__mf/font/inter-latin-500-normal.b7b43acee8.woff2 +0 -0
  57. package/__mf/font/inter-latin-500-normal.cb4c8ceb01.woff +0 -0
  58. package/__mf/font/inter-latin-600-normal.8fb1a96451.woff2 +0 -0
  59. package/__mf/font/inter-latin-600-normal.ce0f5f4333.woff +0 -0
  60. package/__mf/font/inter-latin-700-normal.953b7aa585.woff2 +0 -0
  61. package/__mf/font/inter-latin-700-normal.9c21d4dcc3.woff +0 -0
  62. package/__mf/font/inter-latin-900-normal.2a8028ec71.woff2 +0 -0
  63. package/__mf/font/inter-latin-900-normal.fa2521357c.woff +0 -0
  64. package/__mf/font/inter-latin-ext-300-normal.167cc8c93d.woff2 +0 -0
  65. package/__mf/font/inter-latin-ext-300-normal.f695be66ae.woff +0 -0
  66. package/__mf/font/inter-latin-ext-400-normal.32a2544228.woff2 +0 -0
  67. package/__mf/font/inter-latin-ext-400-normal.4edcaacee0.woff +0 -0
  68. package/__mf/font/inter-latin-ext-500-normal.a19a84a6cb.woff +0 -0
  69. package/__mf/font/inter-latin-ext-500-normal.d9b491decc.woff2 +0 -0
  70. package/__mf/font/inter-latin-ext-600-normal.38b075d8fe.woff2 +0 -0
  71. package/__mf/font/inter-latin-ext-600-normal.49faa47a23.woff +0 -0
  72. package/__mf/font/inter-latin-ext-700-normal.93534b5003.woff +0 -0
  73. package/__mf/font/inter-latin-ext-700-normal.b63daa1ade.woff2 +0 -0
  74. package/__mf/font/inter-latin-ext-900-normal.0efdb30743.woff +0 -0
  75. package/__mf/font/inter-latin-ext-900-normal.9c0fc2c78c.woff2 +0 -0
  76. package/__mf/font/inter-vietnamese-300-normal.aad496d810.woff +0 -0
  77. package/__mf/font/inter-vietnamese-300-normal.ad9ef503d8.woff2 +0 -0
  78. package/__mf/font/inter-vietnamese-400-normal.a9dd2faf81.woff +0 -0
  79. package/__mf/font/inter-vietnamese-400-normal.de4fc44f89.woff2 +0 -0
  80. package/__mf/font/inter-vietnamese-500-normal.7c0a695f6f.woff2 +0 -0
  81. package/__mf/font/inter-vietnamese-500-normal.a3a73b952b.woff +0 -0
  82. package/__mf/font/inter-vietnamese-600-normal.9d5185991f.woff2 +0 -0
  83. package/__mf/font/inter-vietnamese-600-normal.c5ce3fcb68.woff +0 -0
  84. package/__mf/font/inter-vietnamese-700-normal.bc68b19944.woff +0 -0
  85. package/__mf/font/inter-vietnamese-700-normal.faf12809fe.woff2 +0 -0
  86. package/__mf/font/inter-vietnamese-900-normal.2b782045d9.woff +0 -0
  87. package/__mf/font/inter-vietnamese-900-normal.e639b65a0d.woff2 +0 -0
  88. package/__mf/js/PulzrFigurePanel.222ed57f17.js +7 -0
  89. package/__mf/js/async/0.73358ef06f.js +2 -0
  90. package/__mf/js/async/0.73358ef06f.js.LICENSE.txt +9 -0
  91. package/__mf/js/async/0p.a434b768a9.js +2 -0
  92. package/__mf/js/async/0p.a434b768a9.js.LICENSE.txt +8 -0
  93. package/__mf/js/async/2.eb2d03fe10.js +2 -0
  94. package/__mf/js/async/2.eb2d03fe10.js.LICENSE.txt +9 -0
  95. package/__mf/js/async/5.b8898f130f.js +83 -0
  96. package/__mf/js/async/5.b8898f130f.js.LICENSE.txt +30 -0
  97. package/__mf/js/async/6.bf1ee74593.js +1 -0
  98. package/__mf/js/async/9.dc16e89090.js +1 -0
  99. package/__mf/js/async/__federation_expose_PulzrFigurePanel.1c3d39adbe.js +1 -0
  100. package/__mf/js/async/b.09e9dadd98.js +92 -0
  101. package/__mf/js/async/b.09e9dadd98.js.LICENSE.txt +100 -0
  102. package/__mf/js/async/f.6ef0146b6f.js +2 -0
  103. package/__mf/js/async/f.6ef0146b6f.js.LICENSE.txt +19 -0
  104. package/__mf/js/async/k.d692a3f373.js +1 -0
  105. package/__mf/js/async/kk.50088d6550.js +1 -0
  106. package/__mf/js/async/o.d3ab28c6c2.js +1 -0
  107. package/__mf/js/async/os.61448719cf.js +2 -0
  108. package/__mf/js/async/os.61448719cf.js.LICENSE.txt +8 -0
  109. package/__mf/js/async/p.f145ba64f8.js +2 -0
  110. package/__mf/js/async/p.f145ba64f8.js.LICENSE.txt +9 -0
  111. package/__mf/js/async/s.c517b47b4d.js +1 -0
  112. package/__mf/js/main.fb996ef195.js +7 -0
  113. package/lib/bootstrap.d.ts +2 -0
  114. package/lib/bootstrap.d.ts.map +1 -0
  115. package/lib/bootstrap.js +7 -0
  116. package/lib/bootstrap.js.map +1 -0
  117. package/lib/env.d.js +3 -0
  118. package/lib/env.d.js.map +1 -0
  119. package/lib/getPluginModule.d.ts +6 -0
  120. package/lib/getPluginModule.d.ts.map +1 -0
  121. package/lib/getPluginModule.js +18 -0
  122. package/lib/getPluginModule.js.map +1 -0
  123. package/lib/index-federation.d.ts +1 -0
  124. package/lib/index-federation.d.ts.map +1 -0
  125. package/lib/index-federation.js +3 -0
  126. package/lib/index-federation.js.map +1 -0
  127. package/lib/index.d.ts +3 -0
  128. package/lib/index.d.ts.map +1 -0
  129. package/lib/index.js +4 -0
  130. package/lib/index.js.map +1 -0
  131. package/lib/panels/index.d.ts +2 -0
  132. package/lib/panels/index.d.ts.map +1 -0
  133. package/lib/panels/index.js +3 -0
  134. package/lib/panels/index.js.map +1 -0
  135. package/lib/panels/pulzr-figure-panel/PulzrFigurePanel.d.ts +4 -0
  136. package/lib/panels/pulzr-figure-panel/PulzrFigurePanel.d.ts.map +1 -0
  137. package/lib/panels/pulzr-figure-panel/PulzrFigurePanel.js +17 -0
  138. package/lib/panels/pulzr-figure-panel/PulzrFigurePanel.js.map +1 -0
  139. package/lib/panels/pulzr-figure-panel/PulzrFigurePanelComponent.d.ts +5 -0
  140. package/lib/panels/pulzr-figure-panel/PulzrFigurePanelComponent.d.ts.map +1 -0
  141. package/lib/panels/pulzr-figure-panel/PulzrFigurePanelComponent.js +210 -0
  142. package/lib/panels/pulzr-figure-panel/PulzrFigurePanelComponent.js.map +1 -0
  143. package/lib/panels/pulzr-figure-panel/PulzrFigurePanelSettingsEditor.d.ts +5 -0
  144. package/lib/panels/pulzr-figure-panel/PulzrFigurePanelSettingsEditor.d.ts.map +1 -0
  145. package/lib/panels/pulzr-figure-panel/PulzrFigurePanelSettingsEditor.js +309 -0
  146. package/lib/panels/pulzr-figure-panel/PulzrFigurePanelSettingsEditor.js.map +1 -0
  147. package/lib/panels/pulzr-figure-panel/figure.d.ts +44 -0
  148. package/lib/panels/pulzr-figure-panel/figure.d.ts.map +1 -0
  149. package/lib/panels/pulzr-figure-panel/figure.js +98 -0
  150. package/lib/panels/pulzr-figure-panel/figure.js.map +1 -0
  151. package/lib/panels/pulzr-figure-panel/index.d.ts +6 -0
  152. package/lib/panels/pulzr-figure-panel/index.d.ts.map +1 -0
  153. package/lib/panels/pulzr-figure-panel/index.js +7 -0
  154. package/lib/panels/pulzr-figure-panel/index.js.map +1 -0
  155. package/lib/panels/pulzr-figure-panel/pulzr-figure-panel-types.d.ts +38 -0
  156. package/lib/panels/pulzr-figure-panel/pulzr-figure-panel-types.d.ts.map +1 -0
  157. package/lib/panels/pulzr-figure-panel/pulzr-figure-panel-types.js +3 -0
  158. package/lib/panels/pulzr-figure-panel/pulzr-figure-panel-types.js.map +1 -0
  159. package/lib/setup-tests.js +25 -0
  160. package/lib/setup-tests.js.map +1 -0
  161. package/mf-manifest.json +217 -0
  162. package/mf-stats.json +251 -0
  163. package/package.json +118 -4
@@ -0,0 +1,98 @@
1
+ /** A series' last value that is a number. */ export function lastValue(series) {
2
+ const values = series?.values ?? [];
3
+ for(let i = values.length - 1; i >= 0; i--){
4
+ const v = values[i][1];
5
+ if (v !== null && Number.isFinite(v)) return v;
6
+ }
7
+ return undefined;
8
+ }
9
+ /**
10
+ * The figure and the one it is set against. A series labelled `compare` (the
11
+ * period before, as the Pulzr and Parkeze datasources label it) is the one
12
+ * set against; the first other series is the figure.
13
+ */ export function figureOf(results, of) {
14
+ const series = results.flatMap((r)=>r.data?.series ?? []);
15
+ const compared = (s)=>Boolean(s.labels?.compare);
16
+ const named = (s)=>of !== undefined && (s.formattedName ?? s.name) === of;
17
+ return {
18
+ now: lastValue(series.find((s)=>!compared(s) && !named(s))),
19
+ before: lastValue(series.find((s)=>compared(s) && !(of !== undefined && (s.formattedName ?? s.name).startsWith(of)))),
20
+ total: of === undefined ? undefined : lastValue(series.find((s)=>!compared(s) && named(s)))
21
+ };
22
+ }
23
+ const TO_MINUTES = {
24
+ seconds: 1 / 60,
25
+ minutes: 1,
26
+ hours: 60
27
+ };
28
+ /**
29
+ * A time in parts, as people say it: 45m, 6h 46m, 7h, and past two days 2d 3h, the minutes being noise there.
30
+ * Undefined for a unit that is not a time.
31
+ */ export function timeInParts(value, unit) {
32
+ const per = unit ? TO_MINUTES[unit] : undefined;
33
+ if (per === undefined) return undefined;
34
+ const minutes = Math.round(value * per);
35
+ if (minutes < 60) return `${minutes}m`;
36
+ if (minutes < 48 * 60) {
37
+ const h = Math.floor(minutes / 60);
38
+ const m = minutes % 60;
39
+ return m ? `${h}h ${m}m` : `${h}h`;
40
+ }
41
+ const d = Math.floor(minutes / (24 * 60));
42
+ const h = Math.round(minutes % (24 * 60) / 60);
43
+ return h ? `${d}d ${h}h` : `${d}d`;
44
+ }
45
+ /** The change from before to now, in percent, and which way: flat within half a percent. */ export function changeOf(now, before) {
46
+ if (now === undefined || before === undefined || before <= 0) return undefined;
47
+ const percent = (now - before) / before * 100;
48
+ let direction = 'flat';
49
+ if (percent > 0.5) direction = 'up';
50
+ else if (percent < -0.5) direction = 'down';
51
+ return {
52
+ percent,
53
+ direction
54
+ };
55
+ }
56
+ const ARROW = {
57
+ up: '↑',
58
+ down: '↓',
59
+ flat: '→'
60
+ };
61
+ /** `↓ -47.3% vs last week`. */ export function changeText(change, comparedLabel = 'vs the period before') {
62
+ const sign = change.percent > 0 ? '+' : '';
63
+ return `${ARROW[change.direction]} ${sign}${change.percent.toFixed(1)}% ${comparedLabel}`;
64
+ }
65
+ /** The last value of each series not labelled `compare`, by its formatted name. */ export function valuesOf(results) {
66
+ const values = new Map();
67
+ for (const s of results.flatMap((r)=>r.data?.series ?? [])){
68
+ if (s.labels?.compare) continue;
69
+ const v = lastValue(s);
70
+ if (v !== undefined) values.set(s.formattedName ?? s.name, v);
71
+ }
72
+ return values;
73
+ }
74
+ /** A template's `{{name}}` and `{{name|%}}` filled from the series' values; `—` for one with none. */ export function fill(template, values) {
75
+ return template.replace(/\{\{\s*([^}|]+?)\s*(\|\s*%\s*)?\}\}/g, (_, name, percent)=>{
76
+ const v = values.get(name);
77
+ if (v === undefined) return '—';
78
+ return percent ? `${v.toFixed(1)}%` : v.toLocaleString(undefined, {
79
+ maximumFractionDigits: 1
80
+ });
81
+ });
82
+ }
83
+ /** The change as its size, good or bad news: `↑ 35.8%`, whole past 100%, `0%` within a twentieth of one. */ export function sizeChange(now, before, lowerIsBetter = false) {
84
+ if (now === undefined || before === undefined || before === 0) return undefined;
85
+ const percent = (now - before) / Math.abs(before) * 100;
86
+ if (Math.abs(percent) < 0.05) return {
87
+ text: '0%',
88
+ tone: 'flat'
89
+ };
90
+ const size = Math.abs(percent) >= 100 ? String(Math.round(Math.abs(percent))) : Math.abs(percent).toFixed(1);
91
+ const good = lowerIsBetter ? percent < 0 : percent > 0;
92
+ return {
93
+ text: `${percent > 0 ? '↑' : '↓'} ${size}%`,
94
+ tone: good ? 'good' : 'bad'
95
+ };
96
+ }
97
+
98
+ //# sourceMappingURL=figure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/panels/pulzr-figure-panel/figure.ts"],"sourcesContent":["import type { TimeSeries, TimeSeriesData } from '@perses-dev/spec';\n\n/** A series' last value that is a number. */\nexport function lastValue(series: TimeSeries | undefined): number | undefined {\n const values = series?.values ?? [];\n for (let i = values.length - 1; i >= 0; i--) {\n const v = values[i]![1];\n if (v !== null && Number.isFinite(v)) return v;\n }\n return undefined;\n}\n\n/**\n * The figure and the one it is set against. A series labelled `compare` (the\n * period before, as the Pulzr and Parkeze datasources label it) is the one\n * set against; the first other series is the figure.\n */\nexport function figureOf(\n results: Array<{ data?: TimeSeriesData }>,\n of?: string,\n): { now?: number; before?: number; total?: number } {\n const series = results.flatMap((r) => r.data?.series ?? []);\n const compared = (s: TimeSeries): boolean => Boolean(s.labels?.compare);\n const named = (s: TimeSeries): boolean => of !== undefined && (s.formattedName ?? s.name) === of;\n return {\n now: lastValue(series.find((s) => !compared(s) && !named(s))),\n before: lastValue(\n series.find((s) => compared(s) && !(of !== undefined && (s.formattedName ?? s.name).startsWith(of))),\n ),\n total: of === undefined ? undefined : lastValue(series.find((s) => !compared(s) && named(s))),\n };\n}\n\nconst TO_MINUTES: Record<string, number> = { seconds: 1 / 60, minutes: 1, hours: 60 };\n\n/**\n * A time in parts, as people say it: 45m, 6h 46m, 7h, and past two days 2d 3h, the minutes being noise there.\n * Undefined for a unit that is not a time.\n */\nexport function timeInParts(value: number, unit: string | undefined): string | undefined {\n const per = unit ? TO_MINUTES[unit] : undefined;\n if (per === undefined) return undefined;\n const minutes = Math.round(value * per);\n if (minutes < 60) return `${minutes}m`;\n if (minutes < 48 * 60) {\n const h = Math.floor(minutes / 60);\n const m = minutes % 60;\n return m ? `${h}h ${m}m` : `${h}h`;\n }\n const d = Math.floor(minutes / (24 * 60));\n const h = Math.round((minutes % (24 * 60)) / 60);\n return h ? `${d}d ${h}h` : `${d}d`;\n}\n\nexport type Direction = 'up' | 'down' | 'flat';\n\n/** The change from before to now, in percent, and which way: flat within half a percent. */\nexport function changeOf(\n now: number | undefined,\n before: number | undefined,\n): { percent: number; direction: Direction } | undefined {\n if (now === undefined || before === undefined || before <= 0) return undefined;\n const percent = ((now - before) / before) * 100;\n let direction: Direction = 'flat';\n if (percent > 0.5) direction = 'up';\n else if (percent < -0.5) direction = 'down';\n return { percent, direction };\n}\n\nconst ARROW: Record<Direction, string> = { up: '↑', down: '↓', flat: '→' };\n\n/** `↓ -47.3% vs last week`. */\nexport function changeText(\n change: { percent: number; direction: Direction },\n comparedLabel = 'vs the period before',\n): string {\n const sign = change.percent > 0 ? '+' : '';\n return `${ARROW[change.direction]} ${sign}${change.percent.toFixed(1)}% ${comparedLabel}`;\n}\n\n/** The last value of each series not labelled `compare`, by its formatted name. */\nexport function valuesOf(results: Array<{ data?: TimeSeriesData }>): Map<string, number> {\n const values = new Map<string, number>();\n for (const s of results.flatMap((r) => r.data?.series ?? [])) {\n if (s.labels?.compare) continue;\n const v = lastValue(s);\n if (v !== undefined) values.set(s.formattedName ?? s.name, v);\n }\n return values;\n}\n\n/** A template's `{{name}}` and `{{name|%}}` filled from the series' values; `—` for one with none. */\nexport function fill(template: string, values: Map<string, number>): string {\n return template.replace(/\\{\\{\\s*([^}|]+?)\\s*(\\|\\s*%\\s*)?\\}\\}/g, (_, name: string, percent?: string) => {\n const v = values.get(name);\n if (v === undefined) return '—';\n return percent ? `${v.toFixed(1)}%` : v.toLocaleString(undefined, { maximumFractionDigits: 1 });\n });\n}\n\nexport type Tone = 'good' | 'bad' | 'flat';\n\n/** The change as its size, good or bad news: `↑ 35.8%`, whole past 100%, `0%` within a twentieth of one. */\nexport function sizeChange(\n now: number | undefined,\n before: number | undefined,\n lowerIsBetter = false,\n): { text: string; tone: Tone } | undefined {\n if (now === undefined || before === undefined || before === 0) return undefined;\n const percent = ((now - before) / Math.abs(before)) * 100;\n if (Math.abs(percent) < 0.05) return { text: '0%', tone: 'flat' };\n const size = Math.abs(percent) >= 100 ? String(Math.round(Math.abs(percent))) : Math.abs(percent).toFixed(1);\n const good = lowerIsBetter ? percent < 0 : percent > 0;\n return { text: `${percent > 0 ? '↑' : '↓'} ${size}%`, tone: good ? 'good' : 'bad' };\n}\n"],"names":["lastValue","series","values","i","length","v","Number","isFinite","undefined","figureOf","results","of","flatMap","r","data","compared","s","Boolean","labels","compare","named","formattedName","name","now","find","before","startsWith","total","TO_MINUTES","seconds","minutes","hours","timeInParts","value","unit","per","Math","round","h","floor","m","d","changeOf","percent","direction","ARROW","up","down","flat","changeText","change","comparedLabel","sign","toFixed","valuesOf","Map","set","fill","template","replace","_","get","toLocaleString","maximumFractionDigits","sizeChange","lowerIsBetter","abs","text","tone","size","String","good"],"mappings":"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"}
@@ -0,0 +1,6 @@
1
+ export * from './figure';
2
+ export * from './PulzrFigurePanel';
3
+ export * from './PulzrFigurePanelComponent';
4
+ export * from './PulzrFigurePanelSettingsEditor';
5
+ export * from './pulzr-figure-panel-types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/panels/pulzr-figure-panel/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from "./figure.js";
2
+ export * from "./PulzrFigurePanel.js";
3
+ export * from "./PulzrFigurePanelComponent.js";
4
+ export * from "./PulzrFigurePanelSettingsEditor.js";
5
+ export * from "./pulzr-figure-panel-types.js";
6
+
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/panels/pulzr-figure-panel/index.ts"],"sourcesContent":["export * from './figure';\nexport * from './PulzrFigurePanel';\nexport * from './PulzrFigurePanelComponent';\nexport * from './PulzrFigurePanelSettingsEditor';\nexport * from './pulzr-figure-panel-types';\n"],"names":[],"mappings":"AAAA,cAAc,cAAW;AACzB,cAAc,wBAAqB;AACnC,cAAc,iCAA8B;AAC5C,cAAc,sCAAmC;AACjD,cAAc,gCAA6B"}
@@ -0,0 +1,38 @@
1
+ import type { FormatOptions } from '@perses-dev/components';
2
+ import type { PanelProps } from '@perses-dev/plugin-system';
3
+ import type { TimeSeriesData } from '@perses-dev/spec';
4
+ export interface PulzrFigurePanelOptions {
5
+ format?: FormatOptions;
6
+ /** The figure's color, any CSS color. The theme's text color unless set. */
7
+ color?: string;
8
+ /** What the period compared is called, after the change: `vs last week`. */
9
+ comparedLabel?: string;
10
+ /** Shown in place of the change when there is nothing to compare with: `Average for the selected week`. */
11
+ caption?: string;
12
+ /** A fall is good news: a fall is drawn in the success color and a rise in the error color. */
13
+ lowerIsBetter?: boolean;
14
+ /** A time in parts, as people say it: 6h 46m, not 6.8h. For a format in seconds, minutes or hours. */
15
+ timeInParts?: boolean;
16
+ /**
17
+ * The figure, a rate, as a count of a total beside it: `1690/2639 Spaces Occupied`. `series` names the
18
+ * series holding the total (the query asks for both); `label` follows.
19
+ */
20
+ of?: {
21
+ series: string;
22
+ label?: string;
23
+ };
24
+ /**
25
+ * A line under the title, from the query's series: `of {{booked_space_hours}} booked hours, occupied`. `{{name}}` is
26
+ * the series' value, `{{name|%}}` the value as a percent (16.4%).
27
+ */
28
+ subtitle?: string;
29
+ /** A small box under the figure, from the query's series as `subtitle` is: `{{new}} new · {{renewals}} renewals`. */
30
+ detail?: string;
31
+ /**
32
+ * How the change reads. `signed` (the default): `↑ +0.7% vs last week`, flat within half a percent. `size`: `↑ 35.8%
33
+ * vs last week`, whole past 100%, `0%` within a twentieth of one.
34
+ */
35
+ changeStyle?: 'signed' | 'size';
36
+ }
37
+ export type PulzrFigurePanelProps = PanelProps<PulzrFigurePanelOptions, TimeSeriesData>;
38
+ //# sourceMappingURL=pulzr-figure-panel-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pulzr-figure-panel-types.d.ts","sourceRoot":"","sources":["../../../../src/panels/pulzr-figure-panel/pulzr-figure-panel-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2GAA2G;IAC3G,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+FAA+F;IAC/F,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sGAAsG;IACtG,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,EAAE,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qHAAqH;IACrH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CACjC;AAED,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,uBAAuB,EAAE,cAAc,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=pulzr-figure-panel-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/panels/pulzr-figure-panel/pulzr-figure-panel-types.ts"],"sourcesContent":["import type { FormatOptions } from '@perses-dev/components';\nimport type { PanelProps } from '@perses-dev/plugin-system';\nimport type { TimeSeriesData } from '@perses-dev/spec';\n\nexport interface PulzrFigurePanelOptions {\n format?: FormatOptions;\n /** The figure's color, any CSS color. The theme's text color unless set. */\n color?: string;\n /** What the period compared is called, after the change: `vs last week`. */\n comparedLabel?: string;\n /** Shown in place of the change when there is nothing to compare with: `Average for the selected week`. */\n caption?: string;\n /** A fall is good news: a fall is drawn in the success color and a rise in the error color. */\n lowerIsBetter?: boolean;\n /** A time in parts, as people say it: 6h 46m, not 6.8h. For a format in seconds, minutes or hours. */\n timeInParts?: boolean;\n /**\n * The figure, a rate, as a count of a total beside it: `1690/2639 Spaces Occupied`. `series` names the\n * series holding the total (the query asks for both); `label` follows.\n */\n of?: { series: string; label?: string };\n /**\n * A line under the title, from the query's series: `of {{booked_space_hours}} booked hours, occupied`. `{{name}}` is\n * the series' value, `{{name|%}}` the value as a percent (16.4%).\n */\n subtitle?: string;\n /** A small box under the figure, from the query's series as `subtitle` is: `{{new}} new · {{renewals}} renewals`. */\n detail?: string;\n /**\n * How the change reads. `signed` (the default): `↑ +0.7% vs last week`, flat within half a percent. `size`: `↑ 35.8%\n * vs last week`, whole past 100%, `0%` within a twentieth of one.\n */\n changeStyle?: 'signed' | 'size';\n}\n\nexport type PulzrFigurePanelProps = PanelProps<PulzrFigurePanelOptions, TimeSeriesData>;\n"],"names":[],"mappings":"AAmCA,WAAwF"}
@@ -0,0 +1,25 @@
1
+ // Copyright The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import "@testing-library/jest-dom/vitest";
14
+ // Always mock e-charts during tests since we don't have a proper canvas in jsdom
15
+ vi.mock('echarts/core');
16
+ // jsdom has no layout engine nor ResizeObserver; observed elements are never measured during tests.
17
+ if (typeof ResizeObserver === 'undefined') {
18
+ vi.stubGlobal('ResizeObserver', class {
19
+ observe() {}
20
+ unobserve() {}
21
+ disconnect() {}
22
+ });
23
+ }
24
+
25
+ //# sourceMappingURL=setup-tests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/setup-tests.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport '@testing-library/jest-dom/vitest';\n\n// Always mock e-charts during tests since we don't have a proper canvas in jsdom\nvi.mock('echarts/core');\n\n// jsdom has no layout engine nor ResizeObserver; observed elements are never measured during tests.\nif (typeof ResizeObserver === 'undefined') {\n vi.stubGlobal(\n 'ResizeObserver',\n class {\n observe(): void {}\n unobserve(): void {}\n disconnect(): void {}\n },\n );\n}\n"],"names":["vi","mock","ResizeObserver","stubGlobal","observe","unobserve","disconnect"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,mCAAmC;AAE1C,iFAAiF;AACjFA,GAAGC,IAAI,CAAC;AAER,oGAAoG;AACpG,IAAI,OAAOC,mBAAmB,aAAa;IACzCF,GAAGG,UAAU,CACX,kBACA;QACEC,UAAgB,CAAC;QACjBC,YAAkB,CAAC;QACnBC,aAAmB,CAAC;IACtB;AAEJ"}
@@ -0,0 +1,217 @@
1
+ {
2
+ "id": "PulzrFigurePanel",
3
+ "name": "PulzrFigurePanel",
4
+ "metaData": {
5
+ "name": "PulzrFigurePanel",
6
+ "type": "app",
7
+ "buildInfo": {
8
+ "buildVersion": "0.2.0",
9
+ "buildName": "@pulzr/perses-figure-panel"
10
+ },
11
+ "remoteEntry": {
12
+ "name": "__mf/js/PulzrFigurePanel.222ed57f17.js",
13
+ "path": "",
14
+ "type": "global"
15
+ },
16
+ "types": {
17
+ "path": "",
18
+ "name": "",
19
+ "zip": "",
20
+ "api": ""
21
+ },
22
+ "globalName": "PulzrFigurePanel_0_2_0",
23
+ "pluginVersion": "2.9.3",
24
+ "getPublicPath": "function() { return (window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\") + \"/plugins/PulzrFigurePanel~0.2.0/\"; }"
25
+ },
26
+ "shared": [
27
+ {
28
+ "id": "PulzrFigurePanel:@emotion/react",
29
+ "name": "@emotion/react",
30
+ "version": "11.14.0",
31
+ "singleton": true,
32
+ "requiredVersion": "^11.11.3",
33
+ "assets": {
34
+ "js": {
35
+ "async": [],
36
+ "sync": [
37
+ "__mf/js/async/0p.a434b768a9.js"
38
+ ]
39
+ },
40
+ "css": {
41
+ "async": [],
42
+ "sync": []
43
+ }
44
+ },
45
+ "fallback": ""
46
+ },
47
+ {
48
+ "id": "PulzrFigurePanel:@emotion/styled",
49
+ "name": "@emotion/styled",
50
+ "version": "11.14.1",
51
+ "singleton": true,
52
+ "requiredVersion": "^11.14.1",
53
+ "assets": {
54
+ "js": {
55
+ "async": [],
56
+ "sync": [
57
+ "__mf/js/async/6.bf1ee74593.js",
58
+ "__mf/js/async/o.d3ab28c6c2.js"
59
+ ]
60
+ },
61
+ "css": {
62
+ "async": [],
63
+ "sync": []
64
+ }
65
+ },
66
+ "fallback": ""
67
+ },
68
+ {
69
+ "id": "PulzrFigurePanel:@perses-dev/components",
70
+ "name": "@perses-dev/components",
71
+ "version": "0.56.0-beta.1",
72
+ "singleton": true,
73
+ "requiredVersion": "^0.56.0-beta.1",
74
+ "assets": {
75
+ "js": {
76
+ "async": [],
77
+ "sync": [
78
+ "__mf/js/async/b.09e9dadd98.js"
79
+ ]
80
+ },
81
+ "css": {
82
+ "async": [],
83
+ "sync": [
84
+ "__mf/css/async/b.7481ca0159.css"
85
+ ]
86
+ }
87
+ },
88
+ "fallback": ""
89
+ },
90
+ {
91
+ "id": "PulzrFigurePanel:date-fns",
92
+ "name": "date-fns",
93
+ "version": "4.4.0",
94
+ "singleton": true,
95
+ "requiredVersion": "^4.4.0",
96
+ "assets": {
97
+ "js": {
98
+ "async": [],
99
+ "sync": [
100
+ "__mf/js/async/s.c517b47b4d.js"
101
+ ]
102
+ },
103
+ "css": {
104
+ "async": [],
105
+ "sync": []
106
+ }
107
+ },
108
+ "fallback": ""
109
+ },
110
+ {
111
+ "id": "PulzrFigurePanel:lodash",
112
+ "name": "lodash",
113
+ "version": "4.18.1",
114
+ "singleton": true,
115
+ "requiredVersion": "^4.18.1",
116
+ "assets": {
117
+ "js": {
118
+ "async": [],
119
+ "sync": [
120
+ "__mf/js/async/os.61448719cf.js"
121
+ ]
122
+ },
123
+ "css": {
124
+ "async": [],
125
+ "sync": []
126
+ }
127
+ },
128
+ "fallback": ""
129
+ },
130
+ {
131
+ "id": "PulzrFigurePanel:react-dom",
132
+ "name": "react-dom",
133
+ "version": "18.3.1",
134
+ "singleton": true,
135
+ "requiredVersion": "^18.3.0 || ^19.0.0",
136
+ "assets": {
137
+ "js": {
138
+ "async": [],
139
+ "sync": [
140
+ "__mf/js/async/f.6ef0146b6f.js"
141
+ ]
142
+ },
143
+ "css": {
144
+ "async": [],
145
+ "sync": []
146
+ }
147
+ },
148
+ "fallback": ""
149
+ },
150
+ {
151
+ "id": "PulzrFigurePanel:react/jsx-runtime",
152
+ "name": "react/jsx-runtime",
153
+ "version": "18.3.1",
154
+ "singleton": true,
155
+ "requiredVersion": "^18.3.0 || ^19.0.0",
156
+ "assets": {
157
+ "js": {
158
+ "async": [],
159
+ "sync": [
160
+ "__mf/js/async/2.eb2d03fe10.js",
161
+ "__mf/js/async/p.f145ba64f8.js"
162
+ ]
163
+ },
164
+ "css": {
165
+ "async": [],
166
+ "sync": []
167
+ }
168
+ },
169
+ "fallback": ""
170
+ },
171
+ {
172
+ "id": "PulzrFigurePanel:react",
173
+ "name": "react",
174
+ "version": "18.3.1",
175
+ "singleton": true,
176
+ "requiredVersion": "^18.3.0 || ^19.0.0",
177
+ "assets": {
178
+ "js": {
179
+ "async": [],
180
+ "sync": [
181
+ "__mf/js/async/0.73358ef06f.js"
182
+ ]
183
+ },
184
+ "css": {
185
+ "async": [],
186
+ "sync": []
187
+ }
188
+ },
189
+ "fallback": ""
190
+ }
191
+ ],
192
+ "remotes": [],
193
+ "exposes": [
194
+ {
195
+ "id": "PulzrFigurePanel:PulzrFigurePanel",
196
+ "name": "PulzrFigurePanel",
197
+ "assets": {
198
+ "js": {
199
+ "sync": [
200
+ "__mf/js/async/5.b8898f130f.js",
201
+ "__mf/js/async/__federation_expose_PulzrFigurePanel.1c3d39adbe.js"
202
+ ],
203
+ "async": [
204
+ "__mf/js/async/k.d692a3f373.js"
205
+ ]
206
+ },
207
+ "css": {
208
+ "sync": [],
209
+ "async": [
210
+ "__mf/css/async/b.7481ca0159.css"
211
+ ]
212
+ }
213
+ },
214
+ "path": "./PulzrFigurePanel"
215
+ }
216
+ ]
217
+ }