@perses-dev/timeseries-chart-plugin 0.14.0-rc.0 → 0.14.0-rc.1

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 (53) hide show
  1. package/__mf/js/{TimeSeriesChart.89eaf4ff.js → TimeSeriesChart.7f526181.js} +7 -7
  2. package/__mf/js/async/{1409.855b83fb.js → 1409.e9ad4f43.js} +2 -2
  3. package/__mf/js/async/{1616.547457d5.js → 1616.3707628d.js} +1 -1
  4. package/__mf/js/async/{2490.8d139ea3.js → 2490.8191d3c7.js} +2 -2
  5. package/__mf/js/async/{392.c9cdaa1e.js → 392.f873c2c7.js} +2 -2
  6. package/__mf/js/async/{4077.51fc0aad.js → 4077.3d2ff94b.js} +1 -1
  7. package/__mf/js/async/{4121.5ad4a1ae.js → 4121.c9669ae9.js} +2 -2
  8. package/__mf/js/async/{4134.fe1c2e4e.js → 4134.a260c36c.js} +1 -1
  9. package/__mf/js/async/{4496.20ca25bf.js → 4496.d8c4cea3.js} +1 -1
  10. package/__mf/js/async/{4670.c0d3f8f3.js → 4670.a4a8e750.js} +1 -1
  11. package/__mf/js/async/{5002.89978152.js → 5002.c3cb865a.js} +1 -1
  12. package/__mf/js/async/{5071.722913e8.js → 5071.dddd45fe.js} +1 -1
  13. package/__mf/js/async/{5182.b8a5b924.js → 5182.73420039.js} +2 -2
  14. package/__mf/js/async/{5587.b4b20c0d.js → 5587.59996038.js} +1 -1
  15. package/__mf/js/async/{6274.c3436b0e.js → 6274.7219e671.js} +2 -2
  16. package/__mf/js/async/{6384.242bb332.js → 6384.3e31b785.js} +5 -5
  17. package/__mf/js/async/{6609.7dd273f8.js → 6609.cecb80fd.js} +2 -2
  18. package/__mf/js/async/{6625.2e9582af.js → 6625.c9cb0271.js} +1 -1
  19. package/__mf/js/async/{7151.0e3196f4.js → 7151.9be3ff42.js} +1 -1
  20. package/__mf/js/async/{7192.a261b528.js → 7192.e1318648.js} +1 -1
  21. package/__mf/js/async/{7319.93d10923.js → 7319.5a6cb03e.js} +1 -1
  22. package/__mf/js/async/{7384.58d4a98c.js → 7384.09a58270.js} +1 -1
  23. package/__mf/js/async/{7633.cabd9f90.js → 7633.b6b2c919.js} +2 -2
  24. package/__mf/js/async/{7955.9a126c8e.js → 7955.a1c086ae.js} +1 -1
  25. package/__mf/js/async/{7968.c90bbd91.js → 7968.878ff828.js} +1 -1
  26. package/__mf/js/async/{7978.e29a754e.js → 7978.c6634ff0.js} +1 -1
  27. package/__mf/js/async/{8356.c463987c.js → 8356.3bd57272.js} +1 -1
  28. package/__mf/js/async/{836.fbf1cee0.js → 836.e750d252.js} +1 -1
  29. package/__mf/js/async/{8465.cf3d9a6f.js → 8465.a14ad9ad.js} +1 -1
  30. package/__mf/js/async/{8470.343715da.js → 8470.76b0dffe.js} +2 -2
  31. package/__mf/js/async/{873.050d950b.js → 873.f90f2e34.js} +1 -1
  32. package/__mf/js/async/{9235.b6aec078.js → 9235.a5518ab6.js} +1 -1
  33. package/__mf/js/async/{941.1fbc4dad.js → 941.81cd9115.js} +2 -2
  34. package/__mf/js/async/{9588.32fa0c1e.js → 9588.8e34f9b1.js} +1 -1
  35. package/__mf/js/async/{9700.4a715883.js → 9700.dc8bef5f.js} +1 -1
  36. package/__mf/js/async/__federation_expose_TimeSeriesChart.c48ce856.js +1 -0
  37. package/__mf/js/async/{lib-router.ecd66a8d.js → lib-router.1cf33fbf.js} +2 -2
  38. package/__mf/js/{main.3ed11ab8.js → main.88657a76.js} +2 -2
  39. package/mf-manifest.json +42 -42
  40. package/mf-stats.json +42 -42
  41. package/package.json +5 -5
  42. package/__mf/js/async/__federation_expose_TimeSeriesChart.0445a802.js +0 -1
  43. /package/__mf/js/async/{1409.855b83fb.js.LICENSE.txt → 1409.e9ad4f43.js.LICENSE.txt} +0 -0
  44. /package/__mf/js/async/{2490.8d139ea3.js.LICENSE.txt → 2490.8191d3c7.js.LICENSE.txt} +0 -0
  45. /package/__mf/js/async/{392.c9cdaa1e.js.LICENSE.txt → 392.f873c2c7.js.LICENSE.txt} +0 -0
  46. /package/__mf/js/async/{4121.5ad4a1ae.js.LICENSE.txt → 4121.c9669ae9.js.LICENSE.txt} +0 -0
  47. /package/__mf/js/async/{5182.b8a5b924.js.LICENSE.txt → 5182.73420039.js.LICENSE.txt} +0 -0
  48. /package/__mf/js/async/{6274.c3436b0e.js.LICENSE.txt → 6274.7219e671.js.LICENSE.txt} +0 -0
  49. /package/__mf/js/async/{6609.7dd273f8.js.LICENSE.txt → 6609.cecb80fd.js.LICENSE.txt} +0 -0
  50. /package/__mf/js/async/{7633.cabd9f90.js.LICENSE.txt → 7633.b6b2c919.js.LICENSE.txt} +0 -0
  51. /package/__mf/js/async/{8470.343715da.js.LICENSE.txt → 8470.76b0dffe.js.LICENSE.txt} +0 -0
  52. /package/__mf/js/async/{941.1fbc4dad.js.LICENSE.txt → 941.81cd9115.js.LICENSE.txt} +0 -0
  53. /package/__mf/js/async/{lib-router.ecd66a8d.js.LICENSE.txt → lib-router.1cf33fbf.js.LICENSE.txt} +0 -0
package/mf-manifest.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "TimeSeriesChart",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.14.0-rc.0",
8
+ "buildVersion": "0.14.0-rc.1",
9
9
  "buildName": "@perses-dev/timeseries-chart-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/TimeSeriesChart.89eaf4ff.js",
12
+ "name": "__mf/js/TimeSeriesChart.7f526181.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -19,9 +19,9 @@
19
19
  "zip": "",
20
20
  "api": ""
21
21
  },
22
- "globalName": "TimeSeriesChart_0_14_0_rc_0",
22
+ "globalName": "TimeSeriesChart_0_14_0_rc_1",
23
23
  "pluginVersion": "2.9.2",
24
- "getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/TimeSeriesChart~0.14.0-rc.0/\"; }"
24
+ "getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/TimeSeriesChart~0.14.0-rc.1/\"; }"
25
25
  },
26
26
  "shared": [
27
27
  {
@@ -34,7 +34,7 @@
34
34
  "js": {
35
35
  "async": [],
36
36
  "sync": [
37
- "__mf/js/async/6274.c3436b0e.js"
37
+ "__mf/js/async/6274.7219e671.js"
38
38
  ]
39
39
  },
40
40
  "css": {
@@ -54,8 +54,8 @@
54
54
  "js": {
55
55
  "async": [],
56
56
  "sync": [
57
- "__mf/js/async/1616.547457d5.js",
58
- "__mf/js/async/9235.b6aec078.js"
57
+ "__mf/js/async/1616.3707628d.js",
58
+ "__mf/js/async/9235.a5518ab6.js"
59
59
  ]
60
60
  },
61
61
  "css": {
@@ -75,8 +75,8 @@
75
75
  "js": {
76
76
  "async": [],
77
77
  "sync": [
78
- "__mf/js/async/5587.b4b20c0d.js",
79
- "__mf/js/async/7968.c90bbd91.js"
78
+ "__mf/js/async/5587.59996038.js",
79
+ "__mf/js/async/7968.878ff828.js"
80
80
  ]
81
81
  },
82
82
  "css": {
@@ -89,14 +89,14 @@
89
89
  {
90
90
  "id": "TimeSeriesChart:@perses-dev/components",
91
91
  "name": "@perses-dev/components",
92
- "version": "0.55.0-rc.0",
92
+ "version": "0.55.0-rc.1",
93
93
  "singleton": true,
94
- "requiredVersion": "^0.55.0-rc.0",
94
+ "requiredVersion": "^0.55.0-rc.1",
95
95
  "assets": {
96
96
  "js": {
97
97
  "async": [],
98
98
  "sync": [
99
- "__mf/js/async/1409.855b83fb.js"
99
+ "__mf/js/async/1409.e9ad4f43.js"
100
100
  ]
101
101
  },
102
102
  "css": {
@@ -111,14 +111,14 @@
111
111
  {
112
112
  "id": "TimeSeriesChart:@perses-dev/dashboards",
113
113
  "name": "@perses-dev/dashboards",
114
- "version": "0.55.0-rc.0",
114
+ "version": "0.55.0-rc.1",
115
115
  "singleton": true,
116
- "requiredVersion": "^0.55.0-rc.0",
116
+ "requiredVersion": "^0.55.0-rc.1",
117
117
  "assets": {
118
118
  "js": {
119
119
  "async": [],
120
120
  "sync": [
121
- "__mf/js/async/6609.7dd273f8.js"
121
+ "__mf/js/async/6609.cecb80fd.js"
122
122
  ]
123
123
  },
124
124
  "css": {
@@ -131,14 +131,14 @@
131
131
  {
132
132
  "id": "TimeSeriesChart:@perses-dev/plugin-system",
133
133
  "name": "@perses-dev/plugin-system",
134
- "version": "0.55.0-rc.0",
134
+ "version": "0.55.0-rc.1",
135
135
  "singleton": true,
136
- "requiredVersion": "^0.55.0-rc.0",
136
+ "requiredVersion": "^0.55.0-rc.1",
137
137
  "assets": {
138
138
  "js": {
139
139
  "async": [],
140
140
  "sync": [
141
- "__mf/js/async/6384.242bb332.js"
141
+ "__mf/js/async/6384.3e31b785.js"
142
142
  ]
143
143
  },
144
144
  "css": {
@@ -158,7 +158,7 @@
158
158
  "js": {
159
159
  "async": [],
160
160
  "sync": [
161
- "__mf/js/async/7192.a261b528.js"
161
+ "__mf/js/async/7192.e1318648.js"
162
162
  ]
163
163
  },
164
164
  "css": {
@@ -178,7 +178,7 @@
178
178
  "js": {
179
179
  "async": [],
180
180
  "sync": [
181
- "__mf/js/async/873.050d950b.js"
181
+ "__mf/js/async/873.f90f2e34.js"
182
182
  ]
183
183
  },
184
184
  "css": {
@@ -198,7 +198,7 @@
198
198
  "js": {
199
199
  "async": [],
200
200
  "sync": [
201
- "__mf/js/async/392.c9cdaa1e.js"
201
+ "__mf/js/async/392.f873c2c7.js"
202
202
  ]
203
203
  },
204
204
  "css": {
@@ -218,7 +218,7 @@
218
218
  "js": {
219
219
  "async": [],
220
220
  "sync": [
221
- "__mf/js/async/8470.343715da.js"
221
+ "__mf/js/async/8470.76b0dffe.js"
222
222
  ]
223
223
  },
224
224
  "css": {
@@ -238,7 +238,7 @@
238
238
  "js": {
239
239
  "async": [],
240
240
  "sync": [
241
- "__mf/js/async/4121.5ad4a1ae.js"
241
+ "__mf/js/async/4121.c9669ae9.js"
242
242
  ]
243
243
  },
244
244
  "css": {
@@ -258,7 +258,7 @@
258
258
  "js": {
259
259
  "async": [],
260
260
  "sync": [
261
- "__mf/js/async/7978.e29a754e.js"
261
+ "__mf/js/async/7978.c6634ff0.js"
262
262
  ]
263
263
  },
264
264
  "css": {
@@ -277,26 +277,26 @@
277
277
  "assets": {
278
278
  "js": {
279
279
  "sync": [
280
- "__mf/js/async/7955.9a126c8e.js",
281
- "__mf/js/async/2490.8d139ea3.js",
282
- "__mf/js/async/5182.b8a5b924.js",
283
- "__mf/js/async/7151.0e3196f4.js",
284
- "__mf/js/async/836.fbf1cee0.js",
285
- "__mf/js/async/__federation_expose_TimeSeriesChart.0445a802.js"
280
+ "__mf/js/async/7955.a1c086ae.js",
281
+ "__mf/js/async/2490.8191d3c7.js",
282
+ "__mf/js/async/5182.73420039.js",
283
+ "__mf/js/async/7151.9be3ff42.js",
284
+ "__mf/js/async/836.e750d252.js",
285
+ "__mf/js/async/__federation_expose_TimeSeriesChart.c48ce856.js"
286
286
  ],
287
287
  "async": [
288
- "__mf/js/async/4670.c0d3f8f3.js",
289
- "__mf/js/async/7384.58d4a98c.js",
290
- "__mf/js/async/9588.32fa0c1e.js",
291
- "__mf/js/async/5071.722913e8.js",
292
- "__mf/js/async/4134.fe1c2e4e.js",
293
- "__mf/js/async/6625.2e9582af.js",
294
- "__mf/js/async/lib-router.ecd66a8d.js",
295
- "__mf/js/async/8356.c463987c.js",
296
- "__mf/js/async/7633.cabd9f90.js",
297
- "__mf/js/async/4077.51fc0aad.js",
298
- "__mf/js/async/4496.20ca25bf.js",
299
- "__mf/js/async/9700.4a715883.js"
288
+ "__mf/js/async/4670.a4a8e750.js",
289
+ "__mf/js/async/7384.09a58270.js",
290
+ "__mf/js/async/9588.8e34f9b1.js",
291
+ "__mf/js/async/5071.dddd45fe.js",
292
+ "__mf/js/async/4134.a260c36c.js",
293
+ "__mf/js/async/6625.c9cb0271.js",
294
+ "__mf/js/async/lib-router.1cf33fbf.js",
295
+ "__mf/js/async/8356.3bd57272.js",
296
+ "__mf/js/async/7633.b6b2c919.js",
297
+ "__mf/js/async/4077.3d2ff94b.js",
298
+ "__mf/js/async/4496.d8c4cea3.js",
299
+ "__mf/js/async/9700.dc8bef5f.js"
300
300
  ]
301
301
  },
302
302
  "css": {
package/mf-stats.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "TimeSeriesChart",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.14.0-rc.0",
8
+ "buildVersion": "0.14.0-rc.1",
9
9
  "buildName": "@perses-dev/timeseries-chart-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/TimeSeriesChart.89eaf4ff.js",
12
+ "name": "__mf/js/TimeSeriesChart.7f526181.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -19,9 +19,9 @@
19
19
  "zip": "",
20
20
  "api": ""
21
21
  },
22
- "globalName": "TimeSeriesChart_0_14_0_rc_0",
22
+ "globalName": "TimeSeriesChart_0_14_0_rc_1",
23
23
  "pluginVersion": "2.9.2",
24
- "getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/TimeSeriesChart~0.14.0-rc.0/\"; }"
24
+ "getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/TimeSeriesChart~0.14.0-rc.1/\"; }"
25
25
  },
26
26
  "shared": [
27
27
  {
@@ -36,7 +36,7 @@
36
36
  "js": {
37
37
  "async": [],
38
38
  "sync": [
39
- "__mf/js/async/6274.c3436b0e.js"
39
+ "__mf/js/async/6274.7219e671.js"
40
40
  ]
41
41
  },
42
42
  "css": {
@@ -60,8 +60,8 @@
60
60
  "js": {
61
61
  "async": [],
62
62
  "sync": [
63
- "__mf/js/async/1616.547457d5.js",
64
- "__mf/js/async/9235.b6aec078.js"
63
+ "__mf/js/async/1616.3707628d.js",
64
+ "__mf/js/async/9235.a5518ab6.js"
65
65
  ]
66
66
  },
67
67
  "css": {
@@ -85,8 +85,8 @@
85
85
  "js": {
86
86
  "async": [],
87
87
  "sync": [
88
- "__mf/js/async/5587.b4b20c0d.js",
89
- "__mf/js/async/7968.c90bbd91.js"
88
+ "__mf/js/async/5587.59996038.js",
89
+ "__mf/js/async/7968.878ff828.js"
90
90
  ]
91
91
  },
92
92
  "css": {
@@ -100,17 +100,17 @@
100
100
  },
101
101
  {
102
102
  "singleton": true,
103
- "requiredVersion": "^0.55.0-rc.0",
103
+ "requiredVersion": "^0.55.0-rc.1",
104
104
  "shareScope": "default",
105
105
  "name": "@perses-dev/components",
106
- "version": "0.55.0-rc.0",
106
+ "version": "0.55.0-rc.1",
107
107
  "eager": false,
108
108
  "id": "TimeSeriesChart:@perses-dev/components",
109
109
  "assets": {
110
110
  "js": {
111
111
  "async": [],
112
112
  "sync": [
113
- "__mf/js/async/1409.855b83fb.js"
113
+ "__mf/js/async/1409.e9ad4f43.js"
114
114
  ]
115
115
  },
116
116
  "css": {
@@ -128,17 +128,17 @@
128
128
  },
129
129
  {
130
130
  "singleton": true,
131
- "requiredVersion": "^0.55.0-rc.0",
131
+ "requiredVersion": "^0.55.0-rc.1",
132
132
  "shareScope": "default",
133
133
  "name": "@perses-dev/dashboards",
134
- "version": "0.55.0-rc.0",
134
+ "version": "0.55.0-rc.1",
135
135
  "eager": false,
136
136
  "id": "TimeSeriesChart:@perses-dev/dashboards",
137
137
  "assets": {
138
138
  "js": {
139
139
  "async": [],
140
140
  "sync": [
141
- "__mf/js/async/6609.7dd273f8.js"
141
+ "__mf/js/async/6609.cecb80fd.js"
142
142
  ]
143
143
  },
144
144
  "css": {
@@ -154,17 +154,17 @@
154
154
  },
155
155
  {
156
156
  "singleton": true,
157
- "requiredVersion": "^0.55.0-rc.0",
157
+ "requiredVersion": "^0.55.0-rc.1",
158
158
  "shareScope": "default",
159
159
  "name": "@perses-dev/plugin-system",
160
- "version": "0.55.0-rc.0",
160
+ "version": "0.55.0-rc.1",
161
161
  "eager": false,
162
162
  "id": "TimeSeriesChart:@perses-dev/plugin-system",
163
163
  "assets": {
164
164
  "js": {
165
165
  "async": [],
166
166
  "sync": [
167
- "__mf/js/async/6384.242bb332.js"
167
+ "__mf/js/async/6384.3e31b785.js"
168
168
  ]
169
169
  },
170
170
  "css": {
@@ -190,7 +190,7 @@
190
190
  "js": {
191
191
  "async": [],
192
192
  "sync": [
193
- "__mf/js/async/7192.a261b528.js"
193
+ "__mf/js/async/7192.e1318648.js"
194
194
  ]
195
195
  },
196
196
  "css": {
@@ -214,7 +214,7 @@
214
214
  "js": {
215
215
  "async": [],
216
216
  "sync": [
217
- "__mf/js/async/873.050d950b.js"
217
+ "__mf/js/async/873.f90f2e34.js"
218
218
  ]
219
219
  },
220
220
  "css": {
@@ -238,7 +238,7 @@
238
238
  "js": {
239
239
  "async": [],
240
240
  "sync": [
241
- "__mf/js/async/392.c9cdaa1e.js"
241
+ "__mf/js/async/392.f873c2c7.js"
242
242
  ]
243
243
  },
244
244
  "css": {
@@ -262,7 +262,7 @@
262
262
  "js": {
263
263
  "async": [],
264
264
  "sync": [
265
- "__mf/js/async/8470.343715da.js"
265
+ "__mf/js/async/8470.76b0dffe.js"
266
266
  ]
267
267
  },
268
268
  "css": {
@@ -286,7 +286,7 @@
286
286
  "js": {
287
287
  "async": [],
288
288
  "sync": [
289
- "__mf/js/async/4121.5ad4a1ae.js"
289
+ "__mf/js/async/4121.c9669ae9.js"
290
290
  ]
291
291
  },
292
292
  "css": {
@@ -312,7 +312,7 @@
312
312
  "js": {
313
313
  "async": [],
314
314
  "sync": [
315
- "__mf/js/async/7978.e29a754e.js"
315
+ "__mf/js/async/7978.c6634ff0.js"
316
316
  ]
317
317
  },
318
318
  "css": {
@@ -341,26 +341,26 @@
341
341
  "assets": {
342
342
  "js": {
343
343
  "sync": [
344
- "__mf/js/async/7955.9a126c8e.js",
345
- "__mf/js/async/2490.8d139ea3.js",
346
- "__mf/js/async/5182.b8a5b924.js",
347
- "__mf/js/async/7151.0e3196f4.js",
348
- "__mf/js/async/836.fbf1cee0.js",
349
- "__mf/js/async/__federation_expose_TimeSeriesChart.0445a802.js"
344
+ "__mf/js/async/7955.a1c086ae.js",
345
+ "__mf/js/async/2490.8191d3c7.js",
346
+ "__mf/js/async/5182.73420039.js",
347
+ "__mf/js/async/7151.9be3ff42.js",
348
+ "__mf/js/async/836.e750d252.js",
349
+ "__mf/js/async/__federation_expose_TimeSeriesChart.c48ce856.js"
350
350
  ],
351
351
  "async": [
352
- "__mf/js/async/4670.c0d3f8f3.js",
353
- "__mf/js/async/7384.58d4a98c.js",
354
- "__mf/js/async/9588.32fa0c1e.js",
355
- "__mf/js/async/5071.722913e8.js",
356
- "__mf/js/async/4134.fe1c2e4e.js",
357
- "__mf/js/async/6625.2e9582af.js",
358
- "__mf/js/async/lib-router.ecd66a8d.js",
359
- "__mf/js/async/8356.c463987c.js",
360
- "__mf/js/async/7633.cabd9f90.js",
361
- "__mf/js/async/4077.51fc0aad.js",
362
- "__mf/js/async/4496.20ca25bf.js",
363
- "__mf/js/async/9700.4a715883.js"
352
+ "__mf/js/async/4670.a4a8e750.js",
353
+ "__mf/js/async/7384.09a58270.js",
354
+ "__mf/js/async/9588.8e34f9b1.js",
355
+ "__mf/js/async/5071.dddd45fe.js",
356
+ "__mf/js/async/4134.a260c36c.js",
357
+ "__mf/js/async/6625.c9cb0271.js",
358
+ "__mf/js/async/lib-router.1cf33fbf.js",
359
+ "__mf/js/async/8356.3bd57272.js",
360
+ "__mf/js/async/7633.b6b2c919.js",
361
+ "__mf/js/async/4077.3d2ff94b.js",
362
+ "__mf/js/async/4496.d8c4cea3.js",
363
+ "__mf/js/async/9700.dc8bef5f.js"
364
364
  ]
365
365
  },
366
366
  "css": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perses-dev/timeseries-chart-plugin",
3
- "version": "0.14.0-rc.0",
3
+ "version": "0.14.0-rc.1",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://github.com/perses/plugins/blob/main/README.md",
6
6
  "repository": {
@@ -35,10 +35,10 @@
35
35
  "@emotion/react": "^11.7.1",
36
36
  "@emotion/styled": "^11.6.0",
37
37
  "@hookform/resolvers": "^5.9.1",
38
- "@perses-dev/components": "^0.55.0-rc.0",
39
- "@perses-dev/dashboards": "^0.55.0-rc.0",
40
- "@perses-dev/plugin-system": "^0.55.0-rc.0",
41
- "@perses-dev/spec": "^0.3.0-rc.0",
38
+ "@perses-dev/components": "^0.55.0-rc.1",
39
+ "@perses-dev/dashboards": "^0.55.0-rc.1",
40
+ "@perses-dev/plugin-system": "^0.55.0-rc.1",
41
+ "@perses-dev/spec": "^0.3.0-rc.1",
42
42
  "date-fns": "^4.1.0",
43
43
  "date-fns-tz": "^3.2.0",
44
44
  "echarts": "5.5.0",
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_TimeSeriesChart_0_14_0_rc_0=self.chunk_TimeSeriesChart_0_14_0_rc_0||[]).push([["53"],{1814(e,t,l){l.r(t),l.d(t,{TimeSeriesChart:()=>e0});var n=l(62540),a=l(7013),o=l(51919),i=l(72043),r=l(38662),s=l(28636),d=l(68470),u=l(26566),c=l(48323),p=l(50332),m=l(47295);let h={category10:s.A,tableau10:d.A,set1:u.A,set2:c.A,set3:p.A,dark2:m.A},x=Object.keys(h),g={category10:{label:"D3 Category 10"},tableau10:{label:"Tableau 10"},set1:{label:"ColorBrewer Set 1"},set2:{label:"ColorBrewer Set 2"},set3:{label:"ColorBrewer Set 3"},dark2:{label:"ColorBrewer Dark 2"}},v={unit:"decimal",shortValues:!0},f={show:!0,label:"",format:v,min:void 0,max:void 0,logBase:void 0},y="Label",b="Min",A="Max",C="Log Base",j="line",S="solid",M={display:j,lineWidth:1.25,lineStyle:S,areaOpacity:0,pointRadius:2.75,connectNulls:!1},w="Line Width",T="slider-line-width",k=.25,O=3,I=.25,E="Line Style",L="Area Opacity",D="slider-area-opacity",R=0,P=1,_=.05,N="Stack Series",F="Color Palette",W="Connect Nulls",Y={none:{label:"None"},all:{label:"All"}},$=Object.entries(Y).map(e=>{let[t,l]=e;return{id:t,...l}}),V={solid:{label:"Solid"},dashed:{label:"Dashes"},dotted:{label:"Dots"}},z={none:{label:"None",log:void 0},2:{label:"2",log:2},10:{label:"10",log:10}},B=Object.entries(z).map(e=>{let[t,l]=e;return{id:t,...l}});var q=l(61375),H=l(31729),G=l(40704),U=l(68003),X=l(70451),Q=l(74628);function Z(e){let{colors:t}=e;return(0,n.jsx)(Q.A,{sx:{display:"flex",gap:"3px",flexWrap:"wrap",p:"4px 2px"},children:t.map((e,t)=>(0,n.jsx)(Q.A,{sx:{width:14,height:14,borderRadius:"2px",backgroundColor:e,flexShrink:0}},t))})}function K(e){let{value:t,onChange:l}=e,a=(0,o.useChartsTheme)().echartsTheme.color,i=(0,X.useMemo)(()=>{let e=Array.isArray(a)&&a.length>0?a:[];return[{id:"auto",label:"Auto",paletteMode:"auto"},{id:"theme-colors",label:"Theme colors",description:e.length>0?(0,n.jsx)(Z,{colors:e}):void 0,paletteMode:"categorical"},...x.map(e=>{let t=g[e],l=h[e];return{id:`categorical-${e}`,label:t.label,description:(0,n.jsx)(Z,{colors:l}),paletteMode:"categorical",paletteName:e}})]},[a]),r=(0,X.useMemo)(()=>{if((null==t?void 0:t.mode)!=="categorical")return i.find(e=>"auto"===e.id);let e=t.name;return e?i.find(t=>t.paletteName===e)??i.find(e=>"theme-colors"===e.id):i.find(e=>"theme-colors"===e.id)},[t,i]),s=(0,X.useCallback)((e,t)=>{"auto"===t.paletteMode?l({mode:"auto"}):l({mode:"categorical",name:t.paletteName})},[l]);return(0,n.jsx)(o.OptionsEditorControl,{label:F,description:"Auto derives a unique color from the series name — same name always maps to the same color across panels. Categorical palettes assign colors from a fixed set by series order.",control:(0,n.jsx)(o.SettingsAutocomplete,{value:r,options:i,onChange:s,disableClearable:!0})})}function J(e){let{value:t,onChange:l}=e,a=t.stack??"none",i=Y[a];return(0,n.jsxs)(o.OptionsEditorGroup,{title:"Visual",children:[(0,n.jsx)(o.OptionsEditorControl,{label:N,control:(0,n.jsx)(o.SettingsAutocomplete,{value:{...i,id:a},options:$,onChange:(e,n)=>{let a={...t,stack:"none"===n.id?void 0:n.id};"all"!==n.id||t.areaOpacity||(a.areaOpacity=.3),l(a)},disabled:void 0===t,disableClearable:!0})}),(0,n.jsx)(K,{value:t.palette,onChange:e=>l({...t,palette:e})}),(0,n.jsx)(o.OptionsEditorControl,{label:"Display",control:(0,n.jsxs)(q.A,{color:"primary",exclusive:!0,value:t.display??j,onChange:(e,n)=>{l({...t,display:n})},children:[(0,n.jsx)(H.A,{value:"line",selected:void 0===t.display||"line"===t.display,"aria-label":"display line series",children:"Line"}),(0,n.jsx)(H.A,{value:"bar","aria-label":"display bar series",children:"Bar"})]})}),"line"===t.display&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.OptionsEditorControl,{label:w,control:(0,n.jsx)(G.Ay,{"data-testid":T,value:t.lineWidth??1.25,valueLabelDisplay:"auto",step:I,marks:!0,min:k,max:O,onChange:(e,n)=>{let a=Array.isArray(n)?n[0]:n,o=void 0!==a?a+1.5:2.75;l((0,r.produce)(t,e=>{e.lineWidth=a,e.pointRadius=o}))}})}),(0,n.jsx)(o.OptionsEditorControl,{label:E,control:(0,n.jsx)(q.A,{color:"primary",exclusive:!0,value:t.lineStyle??S,onChange:(e,n)=>{l({...t,lineStyle:n})},children:Object.entries(V).map(e=>{let[t,l]=e;return(0,n.jsx)(H.A,{value:t,"aria-label":`${t} line style`,children:l.label},t)})})}),(0,n.jsx)(o.OptionsEditorControl,{label:L,control:(0,n.jsx)(G.Ay,{"data-testid":D,value:t.areaOpacity??0,valueLabelDisplay:"auto",step:_,marks:!0,min:R,max:P,onChange:(e,n)=>{let a=Array.isArray(n)?n[0]:n;l((0,r.produce)(t,e=>{e.areaOpacity=a}))}})}),(0,n.jsx)(o.OptionsEditorControl,{label:W,control:(0,n.jsx)(U.A,{checked:t.connectNulls??!1,onChange:e=>{l({...t,connectNulls:e.target.checked})}})})]})]})}var ee=l(93648);function et(e){let{value:t,onChange:l}=e,a=t.logBase?z[t.logBase]:void 0;return(0,n.jsxs)(o.OptionsEditorGroup,{title:"Y Axis",children:[(0,n.jsx)(o.OptionsEditorControl,{label:"Show",control:(0,n.jsx)(U.A,{checked:t.show??f.show,onChange:e=>{l({...t,show:e.target.checked})}})}),(0,n.jsx)(o.FormatControls,{value:t.format??v,onChange:e=>l({...t,format:e})}),(0,n.jsx)(o.OptionsEditorControl,{label:C,control:(0,n.jsx)(o.SettingsAutocomplete,{value:{...a,id:(null==a?void 0:a.label)??"None"},options:B,onChange:(e,n)=>{l({...t,logBase:n.log??void 0})},disabled:void 0===t,disableClearable:!0})}),(0,n.jsx)(o.OptionsEditorControl,{label:y,control:(0,n.jsx)(ee.A,{value:t.label??"",inputProps:{"aria-label":"enter y axis label"},onChange:e=>l({...t,label:e.target.value}),placeholder:"Default"})}),(0,n.jsx)(o.OptionsEditorControl,{label:b,control:(0,n.jsx)(ee.A,{type:"number",value:t.min??"",onChange:e=>{let n=e.target.value?Number(e.target.value):void 0;l({...t,min:n})},placeholder:"Default"})}),(0,n.jsx)(o.OptionsEditorControl,{label:A,control:(0,n.jsx)(ee.A,{type:"number",value:t.max??"",onChange:e=>{let n=e.target.value?Number(e.target.value):void 0;l({...t,max:n})},placeholder:"Default"})})]})}var el=l(315),en=l(88091),ea=l(97653),eo=l(47095),ei=l(30145),er=l(56599),es=l(7800),ed=l(86067),eu=l(86742);let ec="#555";function ep(e){let{querySettings:{queryIndex:t,colorMode:l,colorValue:a,lineStyle:i,areaOpacity:r,format:s,negativeY:d,stack:u},availableQueryIndexes:c,queryNames:p,onQueryIndexChange:m,onColorModeChange:h,onColorValueChange:x,onLineStyleChange:g,onAreaOpacityChange:v,onDelete:f,inputRef:y,onAddColor:b,onRemoveColor:A,onAddLineStyle:C,onRemoveLineStyle:j,onAddAreaOpacity:S,onRemoveAreaOpacity:M,onAddFormat:w,onRemoveFormat:T,onFormatChange:k,onAddNegativeY:O,onRemoveNegativeY:I,onAddStack:E,onRemoveStack:L,onStackChange:D}=e,R=c.concat(t).toSorted((e,t)=>e-t),[P,_]=(0,X.useState)(null),N=(0,X.useMemo)(()=>{let e=[];return l||e.push({key:"color",label:"Color",action:b}),i||e.push({key:"lineStyle",label:"Line Style",action:C}),void 0===r&&e.push({key:"opacity",label:"Opacity",action:S}),void 0===s&&e.push({key:"format",label:"Format",action:w}),d||e.push({key:"negativeY",label:"Negative Y",action:O}),void 0===u&&e.push({key:"stack",label:"Stack",action:E}),e},[l,i,r,s,d,u,b,C,S,w,O,E]),F=()=>{_(null)};return(0,n.jsxs)(el.A,{sx:{borderBottom:"1px solid",borderColor:"divider",borderRadius:1,p:2,display:"flex",flexWrap:"nowrap",flexDirection:"row"},children:[(0,n.jsxs)(el.A,{direction:"row",alignItems:"center",sx:{flexWrap:"wrap",gap:2,flexGrow:1},children:[(0,n.jsx)(ee.A,{select:!0,inputRef:y,value:t,label:"Query",onChange:m,sx:{minWidth:"75px"},children:R.map(e=>(0,n.jsx)(ea.A,{value:e,children:p[e]??`#${e+1}`},`query-${e}`))}),l&&(0,n.jsxs)(em,{label:"Color",onRemove:A,children:[(0,n.jsxs)(ee.A,{select:!0,value:l,onChange:h,size:"small",sx:{flexGrow:1},children:[(0,n.jsx)(ea.A,{value:"fixed",children:"Fixed"}),(0,n.jsx)(ea.A,{value:"fixed-single",children:"Fixed (single series)"})]}),(0,n.jsx)(o.OptionsColorPicker,{label:p[t]??`Query n\xb0${t+1}`,color:a||ec,onColorChange:x})]}),i&&(0,n.jsxs)(em,{label:"Line Style",onRemove:j,children:[(0,n.jsx)(q.A,{color:"primary",exclusive:!0,value:i,onChange:(e,t)=>{null!==t&&g(t)},size:"small",children:Object.entries(V).map(e=>{let[t,l]=e;return(0,n.jsx)(H.A,{value:t,"aria-label":`${t} line style`,children:l.label},t)})}),(0,n.jsx)(Q.A,{sx:{flexGrow:1}})]}),void 0!==r&&(0,n.jsxs)(em,{label:"Opacity",onRemove:M,children:[(0,n.jsx)(Q.A,{}),(0,n.jsx)(G.Ay,{value:r,valueLabelDisplay:"auto",step:.05,marks:!0,min:0,max:1,onChange:v,sx:{flexGrow:1}})]}),void 0!==s&&(0,n.jsx)(em,{label:"Format",onRemove:T,children:(0,n.jsx)(Q.A,{sx:{minWidth:"180px",display:"flex",gap:1,flexDirection:"column"},children:(0,n.jsx)(o.FormatControls,{value:s,onChange:k})})}),d&&(0,n.jsx)(em,{label:"Negative Y",onRemove:I,children:(0,n.jsx)(en.A,{variant:"body2",color:"text.secondary",sx:{flexGrow:1,py:.5},children:"Series rendered below the X axis"})}),void 0!==u&&(0,n.jsxs)(em,{label:"Stack",onRemove:L,children:[(0,n.jsx)(U.A,{checked:u,onChange:e=>D(e.target.checked),slotProps:{input:{"aria-label":"stack override"}}}),(0,n.jsx)(Q.A,{sx:{flexGrow:1}})]}),N.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eo.A,{onClick:e=>{1===N.length&&N[0]?N[0].action():_(e.currentTarget)},"aria-label":"Add option",children:(0,n.jsx)(eu.default,{})}),(0,n.jsx)(ei.A,{anchorEl:P,open:!!P,onClose:F,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:N.map(e=>(0,n.jsxs)(ea.A,{onClick:()=>{(0,e.action)(),F()},sx:{minWidth:"120px"},children:[(0,n.jsx)(eu.default,{sx:{mr:1,fontSize:"1rem"}}),e.label]},e.key))})]})]}),(0,n.jsx)(Q.A,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(eo.A,{"aria-label":`delete settings for ${p[t]??`query n\xb0${t+1}`}`,onClick:f,children:(0,n.jsx)(ed.default,{})})})]})}function em(e){let{label:t,children:l,onRemove:a}=e,o=(0,er.A)();return(0,n.jsxs)(Q.A,{sx:{position:"relative",minWidth:"250px"},children:[(0,n.jsx)(en.A,{variant:"caption",sx:{position:"absolute",top:-8,left:12,backgroundColor:o.palette.background.code,px:.5,color:"text.secondary",zIndex:1},children:t}),(0,n.jsxs)(el.A,{direction:"row",alignItems:"center",spacing:1,sx:{border:"1px solid",borderColor:"divider",borderRadius:1,p:1},children:[l,(0,n.jsx)(eo.A,{size:"small",onClick:a,"aria-label":`Remove ${t}`,children:(0,n.jsx)(es.default,{})})]})]})}var eh=l(68109),ex=l(25632),eg=l.n(ex),ev=l(62707),ef=l(31373),ey=l(32741),eb=l(59738),eA=l(90652),eC=l(61305),ej=l(64404),eS=l(28502),eM=l(48683),ew=l(72106),eT=l(40988),ek=l(55875),eO=l(74653),eI=l(37573),eE=l(18264),eL=l.n(eE),eD=l(85180),eR=l(36961),eP=l(6227),e_=l(4491),eN=l(29917);let eF={type:"value",show:!1,min:0,max:1,axisLabel:{show:!1}};function eW(e){let{annotation:t,containerId:l,formatWithUserTimeZone:a,pinnedPos:r,enablePinning:s=!0,onUnpinClick:d}=e,u=(0,o.useMousePosition)(),{height:c,width:p,ref:m}=(0,eD.default)(),h=null!==r;if(!h&&null===u)return null;let x=l?document.querySelector(l):void 0,g=x?x.getBoundingClientRect().height:void 0,v=(0,o.assembleTransform)(u,r,c??0,p??0,x),f=(0,o.getDateAndTime)(t.start,a),y=void 0!==t.end?(0,o.getDateAndTime)(t.end,a):null;return(0,n.jsx)(eR.A,{container:x,children:(0,n.jsx)(Q.A,{ref:m,sx:e=>(0,o.getTooltipStyles)(e,r,g),style:{transform:v},children:(0,n.jsxs)(el.A,{spacing:.5,children:[(0,n.jsxs)(Q.A,{sx:e=>{var t;return{width:"100%",maxWidth:o.TOOLTIP_MAX_WIDTH,padding:e.spacing(1.5,2,.5,2),backgroundColor:(null==(t=e.palette.designSystem)?void 0:t.grey[800])??o.TOOLTIP_BG_COLOR_FALLBACK,position:"sticky",top:0,left:0}},children:[(0,n.jsxs)(Q.A,{sx:{display:"flex",alignItems:"center",paddingBottom:.5,width:"100%"},children:[(0,n.jsx)(Q.A,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:t.color??i.DEFAULT_ANNOTATION_COLOR,marginRight:1,flexShrink:0}}),(0,n.jsxs)(Q.A,{sx:{flexGrow:1,minWidth:0},children:[(0,n.jsxs)(en.A,{variant:"caption",children:[f.formattedDate," - ",(0,n.jsx)("strong",{children:f.formattedTime})]}),y&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en.A,{variant:"caption",children:" → "}),(0,n.jsxs)(en.A,{variant:"caption",children:[y.formattedDate," - ",(0,n.jsx)("strong",{children:y.formattedTime})]})]})]}),s&&(0,n.jsxs)(el.A,{direction:"row",alignItems:"center",sx:{marginLeft:1,flexShrink:0},children:[(0,n.jsx)(en.A,{sx:{marginRight:.5,fontSize:11,verticalAlign:"middle"},children:h?o.UNPIN_TOOLTIP_HELP_TEXT:o.PIN_TOOLTIP_HELP_TEXT}),h?(0,n.jsx)(e_.default,{onClick:()=>{void 0!==d&&d()},sx:{fontSize:16,cursor:"pointer"}}):(0,n.jsx)(eN.default,{sx:{fontSize:16}})]})]}),(0,n.jsx)(eP.A,{sx:e=>({width:"100%",borderColor:e.palette.grey["500"]})})]}),(0,n.jsxs)(Q.A,{sx:e=>({padding:e.spacing(.5,2,1.5,2)}),children:[t.title&&(0,n.jsx)(en.A,{variant:"caption",sx:{display:"block",fontWeight:"bold",marginBottom:.5},children:t.title}),t.legend&&(0,n.jsx)(en.A,{variant:"caption",sx:{display:"block",marginBottom:.5},children:t.legend}),t.tags&&Object.keys(t.tags).length>0&&(0,n.jsx)(Q.A,{sx:{display:"flex",flexWrap:"wrap",gap:.5,marginTop:.5},children:Object.entries(t.tags).map(e=>{let[t,l]=e;return(0,n.jsxs)(Q.A,{sx:e=>({backgroundColor:e.palette.grey["700"],borderRadius:"4px",padding:"2px 6px",fontSize:"0.7rem",fontFamily:"monospace"}),children:[t,": ",l]},t)})})]})]})})})}let eY="exemplar-";function e$(e){return{type:"scatter",id:`${eY}${e.seriesId}`,name:e.seriesName,color:e.color,yAxisIndex:e.yAxisIndex,symbol:"diamond",symbolSize:14,z:10,cursor:"pointer",data:e.exemplars.map(t=>({value:[t.timestamp,e.negativeY?-t.value:t.value],exemplar:t,seriesLabels:e.seriesLabels}))}}function eV(e){let t=Math.floor(Math.log10(Math.abs(e)));return Number((Math.floor(e/Math.pow(10,t))*Math.pow(10,t)).toPrecision(1))}(0,eO.Y)([ev.a,ef.a,ey.a,eb.a,eA.a,eC.a,ej.a,eS.a,eM.a,ew.a,eT.a,ek.a,eI.a]);let ez=14*Math.SQRT2/2,eB={width:"100%",height:"100%"},eq=(0,X.forwardRef)(function(e,t){var l;let{height:a,data:r,seriesMapping:s,exemplars:d,annotations:u,timeScale:c,yAxis:p,format:m,seriesFormatMap:h,grid:x,isStackedBar:g=!1,tooltipConfig:v=o.DEFAULT_TOOLTIP_CONFIG,noDataVariant:f="message",syncGroup:y,onDataZoom:b,onDoubleClick:A,__experimentalEChartsOptionsOverride:C}=e,{chartsTheme:j,enablePinning:S,enableSyncGrouping:M,lastTooltipPinnedCoords:w,setLastTooltipPinnedCoords:T}=(0,o.useChartsContext)(),k=v.enablePinning&&S,O=(0,X.useRef)(),[I,E]=(0,X.useState)(!0),[L,D]=(0,X.useState)(null),[R,P]=(0,X.useState)(null),[_,N]=(0,X.useState)(!1),[F,W]=(0,X.useState)(0),[Y,$]=(0,X.useState)(null),[V,z]=(0,X.useState)(null),[B,q]=(0,X.useState)(null),[H,G]=(0,X.useState)(null),[U,Z]=(0,X.useState)(null),[K,J]=(0,X.useState)(null),{timeZone:ee,formatWithUserTimeZone:et}=(0,o.useTimeZone)(),el=(0,X.useCallback)(e=>function(t){let l=new Date(Number(t));return e>15768e7?(0,o.formatWithTimeZone)(l,"yyyy",ee):e>63072e6?(0,o.formatWithTimeZone)(l,"MMM yyyy",ee):e>864e6&&e<1577664e4?(0,o.formatWithTimeZone)(l,"dd.MM",ee):e>1728e5&&e<=864e6?(0,o.formatWithTimeZone)(l,"dd.MM HH:mm",ee):(0,o.formatWithTimeZone)(l,"HH:mm",ee)},[ee]),en=(0,X.useMemo)(()=>{if(c)return c;let e=(0,o.getCommonTimeScale)(r);if(e)return e;let t=new Date,l=new Date(t);l.setFullYear(t.getFullYear()-5);let n=l.getTime(),a=t.getTime();return{startMs:n,endMs:a,stepMs:1,rangeMs:a-n}},[r,c]),ea=(0,X.useCallback)(e=>{let{width:t,height:l}=e,n=O.current;t&&l&&n&&(n.getWidth()!==t||n.getHeight()!==l)&&n.resize({width:t,height:l})},[]),{ref:eo}=(0,eD.default)({onResize:ea});(0,X.useImperativeHandle)(t,()=>({highlightSeries(e){let{name:t}=e;O.current&&O.current.dispatchAction({type:"highlight",seriesId:t})},clearHighlightedSeries:()=>{O.current&&(0,o.clearHighlightedSeries)(O.current)}}),[]);let ei=(0,X.useMemo)(()=>({datazoom:e=>{if(void 0===b&&setTimeout(()=>{D(null)},10),void 0===b||void 0===e.batch[0])return;let t=e.batch[0].startValue,l=e.batch[0].endValue;void 0!==t&&void 0!==l&&b({start:t,end:l})},finished:()=>{void 0!==O.current&&(0,o.enableDataZoom)(O.current)},mouseover:e=>{var t,l;if("series"===e.componentType&&"scatter"===e.seriesType&&"seriesId"in e&&"string"==typeof e.seriesId&&e.seriesId.startsWith(eY)){let t=e.data;if(null==t?void 0:t.exemplar)return void q({exemplar:t.exemplar,seriesLabels:t.seriesLabels,plottedValue:(null==(l=t.value)?void 0:l[1])??t.exemplar.value})}if(q(null),u&&"markPoint"===e.componentType&&"number"==typeof(null==(t=e.data)?void 0:t.annotationIndex)){let t=u[e.data.annotationIndex]||null;if(t)return void $(t)}$(null)},mouseout:e=>{var t;if("series"===e.componentType&&"scatter"===e.seriesType&&"seriesId"in e&&"string"==typeof e.seriesId&&e.seriesId.startsWith(eY))return void q(null);if(u&&"markPoint"===e.componentType&&"number"==typeof(null==(t=e.data)?void 0:t.annotationIndex)&&u){let t=u[e.data.annotationIndex]||null;$(e=>e===t?null:e)}},globalout:()=>{u&&$(null),q(null)}}),[u,b]),er=Array.isArray(p)?p.length:1,es=(0,X.useMemo)(()=>(function(e,t){if(!(null==e?void 0:e.length))return[];let l=[],n=[],a=[];return e.forEach((e,t)=>{let o=e.color??i.DEFAULT_ANNOTATION_COLOR;if(void 0!==e.end)for(let i of(n.push({xAxis:e.start,lineStyle:{color:o,width:2,type:"dashed"},label:{show:!1},annotationIndex:t}),n.push({xAxis:e.end,lineStyle:{color:o,width:2,type:"dashed"},label:{show:!1},annotationIndex:t}),l.push([{xAxis:e.start,itemStyle:{color:o,opacity:.3}},{xAxis:e.end}]),[!0,!1]))a.push({name:"",coord:[i?e.start:e.end,0],symbol:"triangle",symbolSize:[12,12],symbolRotate:0,symbolOffset:[0,4],itemStyle:{color:o},annotationIndex:t,emphasis:{disabled:!0},isStart:i,isEnd:!i});else n.push({xAxis:e.start,lineStyle:{color:o,width:2,type:"dashed"},label:{show:!1},annotationIndex:t}),a.push({name:"",coord:[e.start,0],symbol:"triangle",symbolSize:[12,10],symbolRotate:0,symbolOffset:[0,"120%"],itemStyle:{color:o},annotationIndex:t,isPoint:!0})}),[{type:"line",data:[],yAxisIndex:t,silent:!1,markArea:l.length>0?{silent:!0,data:l,label:{show:!1}}:void 0,markLine:n.length>0?{silent:!0,symbol:["none","none"],data:n,lineStyle:{type:"dashed"}}:void 0,markPoint:a.length>0?{silent:!1,data:a,label:{show:!1}}:void 0}]})(u,er),[u,er]),ed=(0,X.useMemo)(()=>(null==d?void 0:d.map(e$))??[],[d]),eu=(0,X.useMemo)(()=>{let e=new Set(s.map(e=>`${eY}${e.id}`));return ed.filter(t=>e.has(String(t.id)))},[ed,s]),{noDataOption:ec}=j,ep=(0,X.useMemo)(()=>(null==r?void 0:r.map((e,t)=>({id:t,dimensions:["time","value"],source:e.values})))??[],[r]),em=(0,X.useMemo)(()=>{if(null===r||0===r.length&&"message"===f)return ec;let e={dataset:ep,series:S&&null!==R?[...s,R,...es,...eu]:[...s,...es,...eu],xAxis:{type:"time",min:en.startMs,max:en.endMs,axisLabel:{hideOverlap:!0,formatter:el(en.rangeMs??0)},axisPointer:{snap:!1}},yAxis:[...Array.isArray(p)?p:(0,o.getFormattedAxis)(p,m),...es.length>0?[eF]:[]],animation:!1,tooltip:{show:!0,showContent:g,trigger:g?"item":"axis",appendToBody:g},axisPointer:{type:"line",z:0,triggerEmphasis:!1,triggerTooltip:!1,snap:!1},toolbox:{feature:{dataZoom:{icon:null,yAxisIndex:"none"}}},grid:x};return C?C(e):e},[r,ep,s,es,eu,en,p,m,x,ec,C,f,g,S,R,el]),[eh,ex]=(0,X.useState)({lastTooltipPinnedCoords:w,seriesMapping:s});return(eh.lastTooltipPinnedCoords!==w||eh.seriesMapping!==s)&&(ex({lastTooltipPinnedCoords:w,seriesMapping:s}),null===L||null===w||eL()(w,L)||(D(null),P(null)),null===U||null===w||eL()(w,U)||(G(null),Z(null))),(0,n.jsxs)(Q.A,{ref:eo,style:{height:a},onClick:e=>{let t=e.ctrlKey||e.metaKey;if(t&&e.preventDefault(),null!==B&&e.target instanceof HTMLCanvasElement){let l={page:{x:e.pageX,y:e.pageY},client:{x:e.clientX,y:e.clientY},plotCanvas:{x:e.nativeEvent.offsetX,y:e.nativeEvent.offsetY},target:e.target},n=null!==H&&H.exemplar===B.exemplar;G(n?null:B),Z(n?null:l),n||t||(D(null),P(null),T(l));return}if(null!==H&&!t&&e.target instanceof HTMLCanvasElement&&(G(null),Z(null)),null!==Y&&e.target instanceof HTMLCanvasElement){let t={page:{x:e.pageX,y:e.pageY},client:{x:e.clientX,y:e.clientY},plotCanvas:{x:e.nativeEvent.offsetX,y:e.nativeEvent.offsetY},target:e.target};z(e=>e===Y?(J(null),null):(J(t),Y));return}let l=(0,o.getPointInGrid)(e.nativeEvent.offsetX,e.nativeEvent.offsetY,O.current);if(null!==l&&k&&e.target instanceof HTMLCanvasElement){let n={page:{x:e.pageX,y:e.pageY},client:{x:e.clientX,y:e.clientY},plotCanvas:{x:e.nativeEvent.offsetX,y:e.nativeEvent.offsetY},target:e.target};D(e=>null===e?n:(P(null),null)),P(e=>{if(null!==e)return null;{var t;let e=l[0],n=null==(t=r[0])?void 0:t.values,a=(0,o.getClosestTimestamp)(n,e);return eg()({},o.DEFAULT_PINNED_CROSSHAIR,{markLine:{data:[{xAxis:a}]}})}}),t||T(n)}},onMouseDown:e=>{let{clientX:t}=e;N(!0),W(t)},onMouseMove:e=>{if(!(e.target instanceof HTMLCanvasElement))return;let{clientX:t}=e;q(t=>{let l;if(null===t||void 0===O.current)return t;try{l=O.current.convertToPixel("grid",[t.exemplar.timestamp,t.plottedValue])}catch{return t}let[n,a]=l??[];return void 0===n||void 0===a||Math.hypot(e.nativeEvent.offsetX-n,e.nativeEvent.offsetY-a)<=ez?t:null}),_&&t-F>0&&E(!1)},onMouseUp:()=>{N(!1),W(0),E(!0)},onMouseLeave:()=>{null===L&&E(!1),$(null),q(null),void 0!==O.current&&(0,o.clearHighlightedSeries)(O.current)},onMouseEnter:()=>{E(!0),void 0!==O.current&&(0,o.enableDataZoom)(O.current)},onDoubleClick:e=>{D(null),void 0===A?void 0!==O.current&&(0,o.restoreChart)(O.current):A(e)},children:[!0===I&&(null!==L||null===H&&null===Y&&null===B)&&(null==(l=em.tooltip)?void 0:l.showContent)===!1&&!0!==v.hidden&&(0,n.jsx)(o.TimeChartTooltip,{containerId:j.tooltipPortalContainerId,chartRef:O,data:r,seriesMapping:s,wrapLabels:v.wrapLabels,enablePinning:k,pinnedPos:L,format:m,seriesFormatMap:h,onUnpinClick:()=>{D(null),P(null)}}),(null!==H||null!==B&&null===L)&&(0,n.jsx)(o.ExemplarMetadataTooltip,{exemplar:(H??B).exemplar,seriesLabels:(H??B).seriesLabels,containerId:j.tooltipPortalContainerId,format:m,pinnedPos:null!==H?U:null,enablePinning:k,onUnpinClick:()=>{G(null),Z(null)}}),(V??Y)&&(0,n.jsx)(eW,{annotation:V??Y,containerId:j.tooltipPortalContainerId,formatWithUserTimeZone:et,pinnedPos:null!==V?K:null,enablePinning:k,onUnpinClick:()=>{z(null),J(null)}}),(0,n.jsx)(o.EChart,{sx:eB,option:em,theme:j.echartsTheme,onEvents:ei,_instance:O,syncGroup:M?y:void 0})]})});var eH=l(92959);let eG=new eH.A({hue:{min:20,max:360}}),eU=new eH.A({hue:{min:0,max:20}}),eX={};function eQ(e){let{defaultCategoricalPalette:t,visual:l,muiPrimaryColor:n,seriesName:a,seriesIndex:o,querySettings:i,queryHasMultipleResults:r}=e;if(i){if("fixed"===i.colorMode&&i.colorValue)return i.colorValue;else if("fixed-single"===i.colorMode&&!r&&i.colorValue)return i.colorValue}let s=Array.isArray(t)&&t[0]?t[0]:n;if((null==(d=l.palette)?void 0:d.mode)==="categorical"){let e=l.palette.name,n=e?h[e]:null,a=n&&n.length>0?n:t;if(a&&a.length>0){var d,u,c,p=a,m=o,x=s;if(!p||0===p.length)return x;let e=m%p.length;return p[e]??x}}return u=a,c=s,function(e){var t;let l,n;return t=e.toLowerCase().includes("error"),(n=eX[l=`${e}_____${t}`])||(n=function(e,t){let[l,n,a]=t?eU.hsl(e):eG.hsl(e),o=`${(100*n).toFixed(0)}%`,i=`${(100*a).toFixed(0)}%`;return`hsla(${l.toFixed(2)},${o},${i},0.9)`}(e,t),eX[l]=n),n}(u)??c}function eZ(e){return JSON.stringify(Object.keys(e).toSorted().map(t=>[t,e[t]]))}let eK=(0,X.memo)(function(e){var t,l;let{spec:{thresholds:a,yAxis:r,tooltip:s,querySettings:d},contentDimensions:u,queryResults:c}=e,p=(0,o.useChartsTheme)(),m=(0,er.A)(),h=(0,X.useId)(),x=(0,X.useRef)(null),g=p.echartsTheme.color,y=p.container.padding.default,b=u?{width:u.width-2*y,height:u.height-2*y}:void 0,A=(0,X.useMemo)(()=>e.spec.legend&&(0,i.validateLegendSpec)(e.spec.legend)?eg()({},o.DEFAULT_LEGEND,e.spec.legend):void 0,[e.spec.legend]),C=(null==(t=e.spec.yAxis)?void 0:t.format)??v,j=(0,X.useMemo)(()=>eg()({},M,e.spec.visual),[e.spec.visual]),S=(0,X.useMemo)(()=>(function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=void 0!==t.logBase?void 0:(null==t?void 0:t.min)!==void 0?t.min:e=>e.min>=0&&e.min<=1?0:e.min>0?eV(.8*e.min):eV(1.2*e.min);let l={show:(null==t?void 0:t.show)??f.show,min:e,max:null==t?void 0:t.max};return void 0!==t.logBase?{...l,type:"log",logBase:t.logBase}:l})(r),[r]),{additionalFormats:w,formatToYAxisIndex:T}=(0,X.useMemo)(()=>{let e=(null==C?void 0:C.unit)??"decimal",t=[],l=new Map;for(let a of(l.set(e,0),d??[])){var n;if((null==(n=a.format)?void 0:n.unit)&&a.format.unit!==e){let e=a.format.unit;l.has(e)||(l.set(e,1+t.length),t.push(a.format))}}return{additionalFormats:t,formatToYAxisIndex:l}},[C,d]),[k,O]=(0,X.useState)("ALL"),[I,E]=(0,X.useState)(),{setTimeRange:L}=(0,i.useTimeRange)(),D=(0,eh.usePanelAnnotationsWithData)(null==(l=e.definition)?void 0:l.spec.annotations),R=(0,X.useMemo)(()=>(function(e){let t=[];for(let l of e)for(let e of l.data)l.definition.display.hidden||t.push({...l.definition.display,...e});return t})(D),[D]),P=null==A?void 0:A.values,{timeScale:_,preparedQueries:N}=(0,X.useMemo)(()=>{let e,t=(e=c.map(e=>e.data),(0,o.getCommonTimeScale)(e)),l=new Map(null==d?void 0:d.map(e=>[e.queryIndex,e])),n=0,a=t?c.map((e,a)=>{let r=l.get(a),s=e.data.series.map(e=>{var l;let a=(0,o.getTimeSeriesValues)(e,t),s=(null==r?void 0:r.negativeY)?a.map(e=>{let[t,l]=e;return[t,null===l?null:-l]}):a,d=P?(0,i.getCalculations)(e.values,P):void 0,u=0;if(null==r||null==(l=r.format)?void 0:l.unit)for(let[,t]of e.values)u=Math.max(u,Math.abs(t??0));let c=`${h}${e.name}${n}`;return n+=1,{timeSeries:e,seriesId:c,values:s,calculations:d,maxValue:u}});return{querySettings:r,series:s,exemplars:e.data.exemplars}}):[];return{timeScale:t,preparedQueries:a}},[c,d,P,h]),F=(0,X.useMemo)(()=>{let e=[],t=0;for(let{querySettings:n,series:a,exemplars:o}of N){let i=new Map;for(let{timeSeries:e,seriesId:r}of a){let s=e.formattedName??e.name;if((null==o?void 0:o.length)&&e.labels){var l;i.set(eZ(e.labels),{seriesId:r,seriesName:s,color:eQ({defaultCategoricalPalette:g,visual:j,muiPrimaryColor:m.palette.primary.main,seriesName:s,seriesIndex:t,querySettings:n,queryHasMultipleResults:a.length>1}),seriesLabels:e.labels,yAxisIndex:T.get((null==n||null==(l=n.format)?void 0:l.unit)??"")??0,negativeY:null==n?void 0:n.negativeY,exemplars:[]})}t+=1}for(let t of o??[]){if(0===t.exemplars.length)continue;let l=i.get(eZ(t.seriesLabels));l&&e.push({...l,exemplars:t.exemplars})}}return e},[N,g,j,m.palette.primary.main,T]),{timeChartData:W,timeSeriesMapping:Y,legendItems:$,seriesFormatMap:V,maxValuesByFormat:z}=(0,X.useMemo)(()=>{if(void 0===_)return{timeChartData:[],timeSeriesMapping:[],legendItems:[],seriesFormatMap:new Map,maxValuesByFormat:new Map};let e=[],t=[],l=[],n=new Map,i=new Map,s=0;for(let{series:e}of N)for(let{seriesId:t}of e)("ALL"===k||k[t])&&s++;let d=0;for(let{querySettings:a,series:r}of N)for(let{timeSeries:u,seriesId:c,values:p,calculations:h,maxValue:x}of r){let v=u.formattedName??u.name,f=eQ({defaultCategoricalPalette:g,visual:j,muiPrimaryColor:m.palette.primary.main,seriesName:v,seriesIndex:d,querySettings:a,queryHasMultipleResults:r.length>1}),y="ALL"===k;if(!y&&k[c]||y){let e=t.length,r=null==a?void 0:a.format,d=(null==r?void 0:r.unit)?T.get(r.unit)??0:0;if(l.push(function(e,t,l,n,a,i,r,s){let d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,u=n.lineWidth??1.25,c=n.pointRadius??2.75,p=(null==r?void 0:r.stack)!==void 0?r.stack:"all"===n.stack,m=(null==r?void 0:r.areaOpacity)??n.areaOpacity??0,h=a.rangeMs<=9e5&&d<=70;return("always"===n.showPoints&&(h=!0),"bar"===n.display)?{type:"bar",id:e,datasetIndex:t,name:l,color:i,stack:p?"all":void 0,yAxisIndex:s,label:{show:!1}}:{type:"line",id:e,datasetIndex:t,name:l,connectNulls:n.connectNulls??!1,color:i,stack:p?"all":void 0,yAxisIndex:s,sampling:"lttb",progressiveThreshold:o.OPTIMIZED_MODE_SERIES_LIMIT,showSymbol:h,showAllSymbol:!0,symbolSize:c,lineStyle:{width:u,type:(null==r?void 0:r.lineStyle)??n.lineStyle},...m>0?{areaStyle:{opacity:m}}:{},emphasis:{focus:"series",disabled:m>0,lineStyle:{width:u+1,opacity:1,type:n.lineStyle}},blur:{lineStyle:{width:u,opacity:.5,type:n.lineStyle}}}}(c,e,v,j,_,f,a,d,s)),r){i.set(c,r);let e=r.unit;e&&x>(n.get(e)??0)&&n.set(e,x)}t.push({name:v,values:p})}A&&e&&e.push({id:c,label:v,color:f,data:h}),d+=1}if(a&&a.steps&&t.length>0){let e=p.thresholds,n=a.defaultColor??e.defaultColor;a.steps.forEach((o,i)=>{var s,u,c,p,m;let h,x,g,v=e.palette[i]??n,f={color:o.color??v,value:"percent"===a.mode?(s=o.value,u=null==r?void 0:r.max,c=null==r?void 0:r.min,x=u??(h=0,(p=t).length&&void 0!==p[0]&&(null==(m=p[0])?void 0:m.values)?p.forEach(e=>{e.values.forEach(e=>{let[t,l]=e;"number"==typeof l&&Math.abs(l)>h&&(h=Math.abs(l))})}):p.forEach(e=>{void 0!==e.data&&e.data.forEach(e=>{"number"==typeof e&&Math.abs(e)>h&&(h=Math.abs(e))})}),h),s/100*(x-(g=c??0))+g):o.value},y=o.name??`Threshold ${i+1}`,b=[],A=_.startMs;for(;A<=_.endMs;)b.push([A,f.value]),A+=15e3;t.push({name:y,values:b}),l.push({type:"line",name:y,id:y,datasetId:y,datasetIndex:d,color:f.color,label:{show:!1},lineStyle:{type:"dashed",width:2},emphasis:{focus:"series",lineStyle:{width:2.5}},blur:{lineStyle:{opacity:.5}}}),d+=1})}return{timeScale:_,timeChartData:t,timeSeriesMapping:l,legendItems:e,seriesFormatMap:i,maxValuesByFormat:n}},[N,_,a,k,A,j,null==r?void 0:r.max,null==r?void 0:r.min,g,p.thresholds,m.palette.primary.main,T]),B=(0,X.useMemo)(()=>{if(0===w.length)return;let e=w.map(e=>{let t=e.unit;return t?(null==z?void 0:z.get(t))??1e3:1e3});return(0,o.getFormattedMultipleYAxes)(S,C,w,e)},[S,C,w,z]),q=(0,X.useMemo)(()=>(null==A?void 0:A.values)?i.legendValues.reduce((e,t)=>{var l;let n=i.LEGEND_VALUE_CONFIG[t];return n&&(null==A||null==(l=A.values)?void 0:l.includes(t))&&e.push({accessorKey:`data.${t}`,header:n.label,headerDescription:n.description,width:72,align:"right",cell:e=>{let{getValue:t}=e,l=t();return"number"==typeof l&&C?(0,o.formatValue)(l,C):l},cellDescription:!0,enableSorting:!0}),e},[]):[],[null==A?void 0:A.values,C]),H=(0,X.useMemo)(()=>!1===S.show?{left:0,right:0,bottom:30,containLabel:!1}:{left:r&&r.label?30:20,right:w.length>0?10:20,bottom:0,containLabel:!0},[S.show,r,w.length]),G=(0,X.useCallback)(e=>{L({start:new Date(e.start),end:new Date(e.end)})},[L]);if(void 0===b)return null;let U="bar"===j.display&&Y.some(e=>(null==e?void 0:e.type)==="bar"&&"all"===e.stack),Z=!0;U?Z=!1:(null==s?void 0:s.enablePinning)!==void 0&&(Z=s.enablePinning);let K={...o.DEFAULT_TOOLTIP_CONFIG,enablePinning:Z};return(0,n.jsx)(Q.A,{sx:{padding:`${y}px`},children:(0,n.jsx)(o.ContentWithLegend,{width:b.width,height:b.height,minChildrenHeight:50,legendSize:null==A?void 0:A.size,legendProps:A&&{options:A,data:$||[],selectedItems:k,onSelectedItemsChange:O,tableProps:{columns:q,sorting:I,onSortingChange:E},onItemMouseOver:(e,t)=>{var l;let{id:n}=t;null==(l=x.current)||l.highlightSeries({name:n})},onItemMouseOut:()=>{var e;null==(e=x.current)||e.clearHighlightedSeries()}},children:e=>{let{height:t,width:l}=e;return(0,n.jsxs)(Q.A,{style:{height:t,width:l},children:[r&&r.show&&r.label&&(0,n.jsx)(o.YAxisLabel,{name:r.label,height:t}),(0,n.jsx)(eq,{ref:x,height:t,data:W,seriesMapping:Y,exemplars:F,annotations:R,timeScale:_,yAxis:B??S,format:C,seriesFormatMap:V,grid:H,isStackedBar:U,tooltipConfig:K,syncGroup:"default-panel-group",onDataZoom:G,noDataVariant:!W.length&&$&&$.length>0?"chart":"message"})]})}})})},(e,t)=>{var l,n,a,o;return e.spec===t.spec&&e.definition===t.definition&&(null==(l=e.contentDimensions)?void 0:l.width)===(null==(n=t.contentDimensions)?void 0:n.width)&&(null==(a=e.contentDimensions)?void 0:a.height)===(null==(o=t.contentDimensions)?void 0:o.height)&&e.queryResults.length===t.queryResults.length&&e.queryResults.every((e,l)=>{var n,a;return e.data===(null==(n=t.queryResults[l])?void 0:n.data)&&e.definition===(null==(a=t.queryResults[l])?void 0:a.definition)})});var eJ=l(54042);let e0={PanelComponent:eK,supportedQueryTypes:["TimeSeriesQuery"],supportsAnnotations:!0,panelOptionsEditorComponents:[{label:"General Settings",content:function(e){let{onChange:t,value:l}=e;return(0,n.jsxs)(o.OptionsEditorGrid,{children:[(0,n.jsxs)(o.OptionsEditorColumn,{children:[(0,n.jsx)(i.LegendOptionsEditor,{calculation:"aggregation",value:l.legend,onChange:e=>{t((0,r.produce)(l,t=>{t.legend=e}))}}),(0,n.jsx)(J,{value:l.visual??M,onChange:e=>{t((0,r.produce)(l,t=>{t.visual=e}))}})]}),(0,n.jsx)(o.OptionsEditorColumn,{children:(0,n.jsx)(et,{value:l.yAxis??f,onChange:e=>{t((0,r.produce)(l,t=>{t.yAxis=e}))}})}),(0,n.jsxs)(o.OptionsEditorColumn,{children:[(0,n.jsx)(o.ThresholdsEditor,{hideDefault:!0,thresholds:l.thresholds,onChange:e=>{t((0,r.produce)(l,t=>{t.thresholds=e}))}}),(0,n.jsx)(o.OptionsEditorGroup,{title:"Reset Settings",children:(0,n.jsx)(a.A,{variant:"outlined",color:"secondary",onClick:()=>{t((0,r.produce)(l,e=>{e.yAxis=void 0,e.legend=void 0,e.visual=void 0,e.thresholds=void 0}))},children:"Reset To Defaults"})})]})]})}},{label:"Query Settings",content:function(e){let{onChange:t,value:l}=e,o=l.querySettings,s=e=>{t((0,r.produce)(l,t=>{t.querySettings=e}))},d=(0,X.useRef)(!1),u=(0,X.useCallback)(e=>{e&&d.current&&(e.focus(),d.current=!1)},[]),c=(e,t)=>{void 0!==o&&s((0,r.produce)(o,l=>{let n=l[e];n&&t(n)}))},{queryDefinitions:p}=(0,i.useDataQueriesContext)(),m=p.length,h=(0,X.useMemo)(()=>(0,i.generateQueryNames)(p),[p]),x=(0,X.useMemo)(()=>{let e=(null==o?void 0:o.map(e=>e.queryIndex))??[];return Array.from({length:m},(e,t)=>t).filter((t,l)=>!e.includes(l))},[o,m]),g=(0,X.useMemo)(()=>x[0]??-1,[x]),v={queryIndex:g};return(0,n.jsxs)(el.A,{children:[0===m?(0,n.jsx)(en.A,{mb:2,fontStyle:"italic",children:"No query defined"}):null==o?void 0:o.map((e,t)=>(0,n.jsx)(ep,{inputRef:t===o.length-1?u:void 0,querySettings:e,availableQueryIndexes:x,queryNames:h,onQueryIndexChange:e=>{void 0!==o&&s((0,r.produce)(o,l=>{let n=null==l?void 0:l[t];n&&(n.queryIndex=parseInt(e.target.value))}))},onColorModeChange:e=>{void 0!==o&&s((0,r.produce)(o,l=>{if(void 0!==l){let n=l[t];if(n){let t=e.target.value;t?n.colorMode=t:(n.colorMode=void 0,n.colorValue=void 0)}}}))},onColorValueChange:e=>{void 0!==o&&s((0,r.produce)(o,l=>{if(void 0!==l){let n=l[t];n&&(n.colorValue=e)}}))},onLineStyleChange:e=>{void 0!==o&&s((0,r.produce)(o,l=>{if(void 0!==l){let n=l[t];n&&(n.lineStyle=e)}}))},onAreaOpacityChange:(e,l)=>{let n;return n=Array.isArray(l)?l[0]:l,void(void 0!==o&&s((0,r.produce)(o,e=>{if(void 0!==e){let l=e[t];l&&(l.areaOpacity=n)}})))},onDelete:()=>{void 0!==o&&s((0,r.produce)(o,e=>{e.splice(t,1)}))},onAddColor:()=>{c(t,e=>{e.colorMode="fixed",e.colorValue=ec})},onRemoveColor:()=>{c(t,e=>{e.colorMode=void 0,e.colorValue=void 0})},onAddLineStyle:()=>{c(t,e=>{e.lineStyle="solid"})},onRemoveLineStyle:()=>{c(t,e=>{e.lineStyle=void 0})},onAddAreaOpacity:()=>{c(t,e=>{e.areaOpacity=0})},onRemoveAreaOpacity:()=>{c(t,e=>{e.areaOpacity=void 0})},onAddFormat:()=>{c(t,e=>{e.format={unit:"decimal",shortValues:!0}})},onRemoveFormat:()=>{c(t,e=>{e.format=void 0})},onFormatChange:e=>{c(t,t=>{t.format=e})},onAddNegativeY:()=>{c(t,e=>{e.negativeY=!0})},onRemoveNegativeY:()=>{c(t,e=>{e.negativeY=void 0})},onAddStack:()=>{c(t,e=>{e.stack=!1})},onRemoveStack:()=>{c(t,e=>{e.stack=void 0})},onStackChange:e=>{c(t,t=>{t.stack=e})}},t)),m>0&&-1!==g&&(0,n.jsx)(a.A,{variant:"contained",startIcon:(0,n.jsx)(eu.default,{}),sx:{marginTop:1},onClick:()=>{d.current=!0,void 0===o?s([v]):s((0,r.produce)(o,e=>{e.push(v)}))},children:"Add Query Settings"})]})}}],createInitialOptions:function(){return{}},actions:[{component:e=>{let{queryResults:t,definition:l}=e,a=(0,X.useMemo)(()=>(0,i.extractExportableData)(t),[t]),r=(0,X.useMemo)(()=>(0,i.isExportableData)(a),[a]),s=(0,X.useCallback)(()=>{if(a&&r)try{var e,t;let n=(null==l||null==(t=l.spec)||null==(e=t.display)?void 0:e.name)||"Time Series Data",o=(0,i.exportDataAsCSV)({data:a}),r=(0,i.sanitizeFilename)(n),s=`${r}_data.csv`,d=document.createElement("a");d.href=URL.createObjectURL(o),d.download=s,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(d.href)}catch(e){console.error("Time series export failed:",e)}},[a,r,l]);return r?(0,n.jsx)(o.InfoTooltip,{description:"Export as CSV",children:(0,n.jsx)(eo.A,{size:"small",onClick:s,"aria-label":"Export time series data as CSV",children:(0,n.jsx)(eJ.default,{fontSize:"inherit"})})}):null},location:"header"}]}}}]);