@perses-dev/gauge-chart-plugin 0.9.1 → 0.11.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 (40) hide show
  1. package/__mf/css/async/263.d3010b86.css +1 -0
  2. package/__mf/css/async/341.d3010b86.css +1 -0
  3. package/__mf/css/async/759.d3010b86.css +1 -0
  4. package/__mf/js/{GaugeChart.0b56a463.js → GaugeChart.83b324ad.js} +3 -3
  5. package/__mf/js/async/177.651d64b7.js +111 -0
  6. package/__mf/js/async/{238.16f121d4.js → 238.d2cb634f.js} +1 -1
  7. package/__mf/js/async/{116.577ccfb6.js → 292.0f2f97fb.js} +3 -3
  8. package/__mf/js/async/301.7224e983.js +1 -0
  9. package/__mf/js/async/656.e85be6c5.js +1 -0
  10. package/__mf/js/async/711.9605ad11.js +22 -0
  11. package/__mf/js/async/{308.b768a783.js → 740.8d6cccb6.js} +1 -1
  12. package/__mf/js/async/{75.b72fd8c7.js → 75.9648e446.js} +1 -1
  13. package/__mf/js/async/85.9f00bd55.js +7 -0
  14. package/__mf/js/async/{292.149a1005.js → 999.2b4fe1ef.js} +1 -1
  15. package/__mf/js/async/__federation_expose_GaugeChart.0894679a.js +1 -0
  16. package/__mf/js/{main.6a2260a5.js → main.674f4b65.js} +3 -3
  17. package/lib/GaugeChartBase.d.ts +3 -5
  18. package/lib/GaugeChartBase.d.ts.map +1 -1
  19. package/lib/GaugeChartBase.js +50 -74
  20. package/lib/GaugeChartBase.js.map +1 -1
  21. package/lib/GaugeChartPanel.d.ts.map +1 -1
  22. package/lib/GaugeChartPanel.js +58 -10
  23. package/lib/GaugeChartPanel.js.map +1 -1
  24. package/lib/cjs/GaugeChartBase.js +52 -81
  25. package/lib/cjs/GaugeChartPanel.js +57 -9
  26. package/mf-manifest.json +19 -19
  27. package/mf-stats.json +19 -19
  28. package/package.json +5 -5
  29. package/__mf/css/async/263.683bd428.css +0 -1
  30. package/__mf/css/async/341.683bd428.css +0 -1
  31. package/__mf/css/async/759.683bd428.css +0 -1
  32. package/__mf/js/async/109.38fe9d18.js +0 -73
  33. package/__mf/js/async/119.be08efba.js +0 -111
  34. package/__mf/js/async/288.6d46d8e7.js +0 -7
  35. package/__mf/js/async/298.bad26699.js +0 -1
  36. package/__mf/js/async/740.87850b80.js +0 -1
  37. package/__mf/js/async/__federation_expose_GaugeChart.4c068ee6.js +0 -1
  38. /package/__mf/js/async/{119.be08efba.js.LICENSE.txt → 177.651d64b7.js.LICENSE.txt} +0 -0
  39. /package/__mf/js/async/{109.38fe9d18.js.LICENSE.txt → 711.9605ad11.js.LICENSE.txt} +0 -0
  40. /package/__mf/js/async/{288.6d46d8e7.js.LICENSE.txt → 85.9f00bd55.js.LICENSE.txt} +0 -0
@@ -14,18 +14,10 @@
14
14
  Object.defineProperty(exports, "__esModule", {
15
15
  value: true
16
16
  });
17
- function _export(target, all) {
18
- for(var name in all)Object.defineProperty(target, name, {
19
- enumerable: true,
20
- get: all[name]
21
- });
22
- }
23
- _export(exports, {
24
- GaugeChartBase: function() {
17
+ Object.defineProperty(exports, "GaugeChartBase", {
18
+ enumerable: true,
19
+ get: function() {
25
20
  return GaugeChartBase;
26
- },
27
- getResponsiveValueSize: function() {
28
- return getResponsiveValueSize;
29
21
  }
30
22
  });
31
23
  const _jsxruntime = require("react/jsx-runtime");
@@ -42,17 +34,40 @@ const _renderers = require("echarts/renderers");
42
34
  _components1.TooltipComponent,
43
35
  _renderers.CanvasRenderer
44
36
  ]);
45
- const PROGRESS_WIDTH = 16;
46
37
  // adjusts when to show pointer icon
47
38
  const GAUGE_SMALL_BREAKPOINT = 170;
48
39
  function GaugeChartBase(props) {
49
- const { width, height, data, format, axisLine, max } = props;
40
+ const { width, height, data, format, axisLine, max, valueFontSize, progressWidth, titleFontSize } = props;
50
41
  const chartsTheme = (0, _components.useChartsTheme)();
51
42
  // useDeepMemo ensures value size util does not rerun everytime you hover on the chart
52
- const option = (0, _core.useDeepMemo)(()=>{
43
+ const option = (0, _components.useDeepMemo)(()=>{
53
44
  if (data.value === undefined) return chartsTheme.noDataOption;
54
- // adjusts fontSize depending on number of characters
55
- const valueSizeClamp = getResponsiveValueSize(data.value, format, width, height);
45
+ // Base configuration shared by both series (= progress & scale)
46
+ const baseGaugeConfig = {
47
+ type: 'gauge',
48
+ center: [
49
+ '50%',
50
+ '65%'
51
+ ],
52
+ startAngle: 200,
53
+ endAngle: -20,
54
+ min: 0,
55
+ max: max,
56
+ axisTick: {
57
+ show: false
58
+ },
59
+ splitLine: {
60
+ show: false
61
+ },
62
+ axisLabel: {
63
+ show: false
64
+ },
65
+ data: [
66
+ {
67
+ value: data.value
68
+ }
69
+ ]
70
+ };
56
71
  return {
57
72
  title: {
58
73
  show: false
@@ -61,28 +76,18 @@ function GaugeChartBase(props) {
61
76
  show: false
62
77
  },
63
78
  series: [
79
+ // Inner gauge (progress)
64
80
  {
65
- type: 'gauge',
66
- center: [
67
- '50%',
68
- '65%'
69
- ],
70
- radius: '86%',
71
- startAngle: 200,
72
- endAngle: -20,
73
- min: 0,
74
- max,
81
+ ...baseGaugeConfig,
82
+ radius: '90%',
75
83
  silent: true,
76
84
  progress: {
77
85
  show: true,
78
- width: PROGRESS_WIDTH,
86
+ width: progressWidth,
79
87
  itemStyle: {
80
88
  color: 'auto'
81
89
  }
82
90
  },
83
- pointer: {
84
- show: false
85
- },
86
91
  axisLine: {
87
92
  lineStyle: {
88
93
  color: [
@@ -91,22 +96,12 @@ function GaugeChartBase(props) {
91
96
  'rgba(127,127,127,0.35)'
92
97
  ]
93
98
  ],
94
- width: PROGRESS_WIDTH
99
+ width: progressWidth
95
100
  }
96
101
  },
97
- axisTick: {
98
- show: false,
99
- distance: 0
100
- },
101
- splitLine: {
102
+ pointer: {
102
103
  show: false
103
104
  },
104
- axisLabel: {
105
- show: false,
106
- distance: -18,
107
- color: '#999',
108
- fontSize: 12
109
- },
110
105
  anchor: {
111
106
  show: false
112
107
  },
@@ -115,24 +110,12 @@ function GaugeChartBase(props) {
115
110
  },
116
111
  detail: {
117
112
  show: false
118
- },
119
- data: [
120
- {
121
- value: data.value
122
- }
123
- ]
113
+ }
124
114
  },
115
+ // Outer gauge (scale & display)
125
116
  {
126
- type: 'gauge',
127
- center: [
128
- '50%',
129
- '65%'
130
- ],
117
+ ...baseGaugeConfig,
131
118
  radius: '100%',
132
- startAngle: 200,
133
- endAngle: -20,
134
- min: 0,
135
- max,
136
119
  pointer: {
137
120
  show: true,
138
121
  // pointer hidden for small panels, path taken from ex: https://echarts.apache.org/examples/en/editor.html?c=gauge-grade
@@ -147,16 +130,8 @@ function GaugeChartBase(props) {
147
130
  color: 'auto'
148
131
  }
149
132
  },
150
- axisLine,
151
- axisTick: {
152
- show: false
153
- },
154
- splitLine: {
155
- show: false
156
- },
157
- axisLabel: {
158
- show: false
159
- },
133
+ axisLine: axisLine,
134
+ // `detail` is the text displayed in the middle
160
135
  detail: {
161
136
  show: true,
162
137
  width: '60%',
@@ -166,7 +141,7 @@ function GaugeChartBase(props) {
166
141
  '-9%'
167
142
  ],
168
143
  color: 'inherit',
169
- fontSize: valueSizeClamp,
144
+ fontSize: valueFontSize,
170
145
  formatter: data.value === null ? // at this level because the `formatter` function argument is `NaN`
171
146
  // when the value is `null`, making it difficult to differentiate
172
147
  // `null` from a true `NaN` case.
@@ -188,7 +163,7 @@ function GaugeChartBase(props) {
188
163
  '55%'
189
164
  ],
190
165
  overflow: 'truncate',
191
- fontSize: 12,
166
+ fontSize: titleFontSize,
192
167
  width: width * 0.8
193
168
  }
194
169
  }
@@ -203,24 +178,20 @@ function GaugeChartBase(props) {
203
178
  chartsTheme,
204
179
  format,
205
180
  axisLine,
206
- max
181
+ max,
182
+ valueFontSize,
183
+ progressWidth,
184
+ titleFontSize
207
185
  ]);
208
186
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.EChart, {
209
- sx: {
187
+ style: {
210
188
  width: width,
211
- height: height,
189
+ height: height
190
+ },
191
+ sx: {
212
192
  padding: `${chartsTheme.container.padding.default}px`
213
193
  },
214
194
  option: option,
215
195
  theme: chartsTheme.echartsTheme
216
196
  });
217
197
  }
218
- function getResponsiveValueSize(value, format, width, height) {
219
- const MIN_SIZE = 3;
220
- const MAX_SIZE = 24;
221
- const SIZE_MULTIPLIER = 0.7;
222
- const formattedValue = typeof value === 'number' ? (0, _core.formatValue)(value, format) : `${value}`;
223
- const valueCharacters = formattedValue.length ?? 2;
224
- const valueSize = Math.min(width, height) / valueCharacters * SIZE_MULTIPLIER;
225
- return `clamp(${MIN_SIZE}px, ${valueSize}px, ${MAX_SIZE}px)`;
226
- }
@@ -48,6 +48,40 @@ const EMPTY_GAUGE_SERIES = {
48
48
  };
49
49
  const GAUGE_MIN_WIDTH = 90;
50
50
  const PANEL_PADDING_OFFSET = 20;
51
+ /**
52
+ * Calculate responsive progress width based on panel dimensions
53
+ */ function getResponsiveProgressWidth(width, height) {
54
+ const MIN_WIDTH = 10;
55
+ const MAX_WIDTH = 48;
56
+ const RATIO = 0.1; // 10% of the smaller dimension
57
+ const minSize = Math.min(width, height);
58
+ // Use RATIO of the smaller dimension as base, with reasonable min/max bounds
59
+ return Math.max(MIN_WIDTH, Math.min(MAX_WIDTH, Math.round(minSize * RATIO)));
60
+ }
61
+ /**
62
+ * Responsive font size depending on number of characters and panel dimensions.
63
+ * Uses clamp to ensure the text never overflows and scales appropriately with panel size.
64
+ * (Value refers to the main number value displayed inside the gauge)
65
+ */ function getResponsiveValueFontSize(value, format, width, height) {
66
+ const MIN_SIZE = 8;
67
+ const MAX_SIZE = 64;
68
+ const formattedValue = typeof value === 'number' ? (0, _core.formatValue)(value, format) : `${value}`;
69
+ const valueTextLength = Math.max(formattedValue.length, 6); // Ensure a minimum length to avoid overly large text for short values
70
+ const availableSpace = Math.min(width, height);
71
+ const fontSize = availableSpace / valueTextLength;
72
+ return `clamp(${MIN_SIZE}px, ${fontSize}px, ${MAX_SIZE}px)`;
73
+ }
74
+ /**
75
+ * Calculate responsive title font size based on panel dimensions
76
+ * (Title refers to the text displayed below the gauge as a legend)
77
+ */ function getResponsiveTitleFontSize(width, height) {
78
+ const MIN_SIZE = 10;
79
+ const MAX_SIZE = 16;
80
+ const RATIO = 0.06; // Use 6% of the smaller dimension as base
81
+ const size = Math.round(Math.min(width, height) * RATIO);
82
+ // Scale based on panel size, with reasonable min/max bounds
83
+ return Math.max(MIN_SIZE, Math.min(MAX_SIZE, size));
84
+ }
51
85
  function GaugeChartPanel(props) {
52
86
  const { spec: pluginSpec, contentDimensions, queryResults } = props;
53
87
  const { calculation, max, legend } = pluginSpec;
@@ -87,30 +121,40 @@ function GaugeChartPanel(props) {
87
121
  thresholdMax = format.unit === 'percent' ? _gaugechartmodel.DEFAULT_MAX_PERCENT : _gaugechartmodel.DEFAULT_MAX_PERCENT_DECIMAL;
88
122
  }
89
123
  const axisLineColors = (0, _thresholds.convertThresholds)(thresholds, format, thresholdMax, thresholdsColors);
124
+ // accounts for showing a separate chart for each time series
125
+ let chartWidth = contentDimensions.width / gaugeData.length - PANEL_PADDING_OFFSET;
126
+ if (chartWidth < GAUGE_MIN_WIDTH && gaugeData.length > 1) {
127
+ // enables horizontal scroll when charts overflow outside of panel
128
+ chartWidth = GAUGE_MIN_WIDTH;
129
+ }
130
+ // Calculate responsive values based on chart dimensions
131
+ const progressWidth = getResponsiveProgressWidth(chartWidth, contentDimensions.height);
132
+ const axisLineWidth = Math.round(progressWidth * 0.2); // Axis line width is 20% of progress width
133
+ const titleFontSize = getResponsiveTitleFontSize(chartWidth, contentDimensions.height);
90
134
  const axisLine = {
91
135
  show: true,
92
136
  lineStyle: {
93
- width: 5,
137
+ width: axisLineWidth,
94
138
  color: axisLineColors
95
139
  }
96
140
  };
97
141
  // no data message handled inside chart component
98
142
  if (!gaugeData.length) {
143
+ const emptyValueFontSize = getResponsiveValueFontSize(null, format, contentDimensions.width, contentDimensions.height);
144
+ const emptyProgressWidth = getResponsiveProgressWidth(contentDimensions.width, contentDimensions.height);
145
+ const emptyTitleFontSize = getResponsiveTitleFontSize(contentDimensions.width, contentDimensions.height);
99
146
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_GaugeChartBase.GaugeChartBase, {
100
147
  width: contentDimensions.width,
101
148
  height: contentDimensions.height,
102
149
  data: EMPTY_GAUGE_SERIES,
103
150
  format: format,
104
151
  axisLine: axisLine,
105
- max: thresholdMax
152
+ max: thresholdMax,
153
+ valueFontSize: emptyValueFontSize,
154
+ progressWidth: emptyProgressWidth,
155
+ titleFontSize: emptyTitleFontSize
106
156
  });
107
157
  }
108
- // accounts for showing a separate chart for each time series
109
- let chartWidth = contentDimensions.width / gaugeData.length - PANEL_PADDING_OFFSET;
110
- if (chartWidth < GAUGE_MIN_WIDTH && gaugeData.length > 1) {
111
- // enables horizontal scroll when charts overflow outside of panel
112
- chartWidth = GAUGE_MIN_WIDTH;
113
- }
114
158
  const hasMultipleCharts = gaugeData.length > 1;
115
159
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Stack, {
116
160
  direction: "row",
@@ -122,6 +166,7 @@ function GaugeChartPanel(props) {
122
166
  overflowX: gaugeData.length > 1 ? 'scroll' : 'auto'
123
167
  },
124
168
  children: gaugeData.map((series, seriesIndex)=>{
169
+ const fontSize = getResponsiveValueFontSize(series.value ?? null, format, chartWidth, contentDimensions.height);
125
170
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
126
171
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_GaugeChartBase.GaugeChartBase, {
127
172
  width: chartWidth,
@@ -129,7 +174,10 @@ function GaugeChartPanel(props) {
129
174
  data: series,
130
175
  format: format,
131
176
  axisLine: axisLine,
132
- max: thresholdMax
177
+ max: thresholdMax,
178
+ valueFontSize: fontSize,
179
+ progressWidth: progressWidth,
180
+ titleFontSize: titleFontSize
133
181
  })
134
182
  }, `gauge-series-${seriesIndex}`);
135
183
  })
package/mf-manifest.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "GaugeChart",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.9.1",
8
+ "buildVersion": "0.11.0",
9
9
  "buildName": "@perses-dev/gauge-chart-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/GaugeChart.0b56a463.js",
12
+ "name": "__mf/js/GaugeChart.83b324ad.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -22,7 +22,7 @@
22
22
  "globalName": "GaugeChart",
23
23
  "pluginVersion": "0.19.1",
24
24
  "prefetchInterface": false,
25
- "publicPath": "/plugins/GaugeChart/"
25
+ "getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/GaugeChart/\"; }"
26
26
  },
27
27
  "shared": [
28
28
  {
@@ -88,14 +88,14 @@
88
88
  {
89
89
  "id": "GaugeChart:@perses-dev/components",
90
90
  "name": "@perses-dev/components",
91
- "version": "0.52.0",
91
+ "version": "0.53.0-beta.1",
92
92
  "singleton": true,
93
- "requiredVersion": "^0.52.0",
93
+ "requiredVersion": "^0.53.0-beta.1",
94
94
  "assets": {
95
95
  "js": {
96
96
  "async": [],
97
97
  "sync": [
98
- "__mf/js/async/288.6d46d8e7.js"
98
+ "__mf/js/async/85.9f00bd55.js"
99
99
  ]
100
100
  },
101
101
  "css": {
@@ -107,14 +107,14 @@
107
107
  {
108
108
  "id": "GaugeChart:@perses-dev/plugin-system",
109
109
  "name": "@perses-dev/plugin-system",
110
- "version": "0.52.0",
110
+ "version": "0.53.0-beta.1",
111
111
  "singleton": true,
112
- "requiredVersion": "^0.52.0",
112
+ "requiredVersion": "^0.53.0-beta.1",
113
113
  "assets": {
114
114
  "js": {
115
115
  "async": [],
116
116
  "sync": [
117
- "__mf/js/async/109.38fe9d18.js"
117
+ "__mf/js/async/711.9605ad11.js"
118
118
  ]
119
119
  },
120
120
  "css": {
@@ -133,7 +133,7 @@
133
133
  "js": {
134
134
  "async": [],
135
135
  "sync": [
136
- "__mf/js/async/75.b72fd8c7.js"
136
+ "__mf/js/async/75.9648e446.js"
137
137
  ]
138
138
  },
139
139
  "css": {
@@ -286,7 +286,7 @@
286
286
  "js": {
287
287
  "async": [],
288
288
  "sync": [
289
- "__mf/js/async/308.b768a783.js"
289
+ "__mf/js/async/740.8d6cccb6.js"
290
290
  ]
291
291
  },
292
292
  "css": {
@@ -306,16 +306,16 @@
306
306
  "sync": [
307
307
  "__mf/js/async/413.1b99956f.js",
308
308
  "__mf/js/async/929.904de1f6.js",
309
- "__mf/js/async/119.be08efba.js",
310
- "__mf/js/async/298.bad26699.js",
311
- "__mf/js/async/__federation_expose_GaugeChart.4c068ee6.js"
309
+ "__mf/js/async/177.651d64b7.js",
310
+ "__mf/js/async/301.7224e983.js",
311
+ "__mf/js/async/__federation_expose_GaugeChart.0894679a.js"
312
312
  ],
313
313
  "async": [
314
- "__mf/js/async/238.16f121d4.js",
314
+ "__mf/js/async/238.d2cb634f.js",
315
315
  "__mf/js/async/224.b7775059.js",
316
- "__mf/js/async/292.149a1005.js",
316
+ "__mf/js/async/999.2b4fe1ef.js",
317
317
  "__mf/js/async/422.088d32ca.js",
318
- "__mf/js/async/116.577ccfb6.js",
318
+ "__mf/js/async/292.0f2f97fb.js",
319
319
  "__mf/js/async/lib-router.34d74652.js",
320
320
  "__mf/js/async/488.d3de7c62.js"
321
321
  ]
@@ -323,8 +323,8 @@
323
323
  "css": {
324
324
  "sync": [],
325
325
  "async": [
326
- "__mf/css/async/341.683bd428.css",
327
- "__mf/css/async/263.683bd428.css"
326
+ "__mf/css/async/341.d3010b86.css",
327
+ "__mf/css/async/263.d3010b86.css"
328
328
  ]
329
329
  }
330
330
  },
package/mf-stats.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "GaugeChart",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.9.1",
8
+ "buildVersion": "0.11.0",
9
9
  "buildName": "@perses-dev/gauge-chart-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/GaugeChart.0b56a463.js",
12
+ "name": "__mf/js/GaugeChart.83b324ad.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -22,7 +22,7 @@
22
22
  "globalName": "GaugeChart",
23
23
  "pluginVersion": "0.19.1",
24
24
  "prefetchInterface": false,
25
- "publicPath": "/plugins/GaugeChart/"
25
+ "getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/GaugeChart/\"; }"
26
26
  },
27
27
  "shared": [
28
28
  {
@@ -96,17 +96,17 @@
96
96
  },
97
97
  {
98
98
  "singleton": true,
99
- "requiredVersion": "^0.52.0",
99
+ "requiredVersion": "^0.53.0-beta.1",
100
100
  "shareScope": "default",
101
101
  "name": "@perses-dev/components",
102
- "version": "0.52.0",
102
+ "version": "0.53.0-beta.1",
103
103
  "eager": false,
104
104
  "id": "GaugeChart:@perses-dev/components",
105
105
  "assets": {
106
106
  "js": {
107
107
  "async": [],
108
108
  "sync": [
109
- "__mf/js/async/288.6d46d8e7.js"
109
+ "__mf/js/async/85.9f00bd55.js"
110
110
  ]
111
111
  },
112
112
  "css": {
@@ -120,17 +120,17 @@
120
120
  },
121
121
  {
122
122
  "singleton": true,
123
- "requiredVersion": "^0.52.0",
123
+ "requiredVersion": "^0.53.0-beta.1",
124
124
  "shareScope": "default",
125
125
  "name": "@perses-dev/plugin-system",
126
- "version": "0.52.0",
126
+ "version": "0.53.0-beta.1",
127
127
  "eager": false,
128
128
  "id": "GaugeChart:@perses-dev/plugin-system",
129
129
  "assets": {
130
130
  "js": {
131
131
  "async": [],
132
132
  "sync": [
133
- "__mf/js/async/109.38fe9d18.js"
133
+ "__mf/js/async/711.9605ad11.js"
134
134
  ]
135
135
  },
136
136
  "css": {
@@ -154,7 +154,7 @@
154
154
  "js": {
155
155
  "async": [],
156
156
  "sync": [
157
- "__mf/js/async/75.b72fd8c7.js"
157
+ "__mf/js/async/75.9648e446.js"
158
158
  ]
159
159
  },
160
160
  "css": {
@@ -335,7 +335,7 @@
335
335
  "js": {
336
336
  "async": [],
337
337
  "sync": [
338
- "__mf/js/async/308.b768a783.js"
338
+ "__mf/js/async/740.8d6cccb6.js"
339
339
  ]
340
340
  },
341
341
  "css": {
@@ -364,16 +364,16 @@
364
364
  "sync": [
365
365
  "__mf/js/async/413.1b99956f.js",
366
366
  "__mf/js/async/929.904de1f6.js",
367
- "__mf/js/async/119.be08efba.js",
368
- "__mf/js/async/298.bad26699.js",
369
- "__mf/js/async/__federation_expose_GaugeChart.4c068ee6.js"
367
+ "__mf/js/async/177.651d64b7.js",
368
+ "__mf/js/async/301.7224e983.js",
369
+ "__mf/js/async/__federation_expose_GaugeChart.0894679a.js"
370
370
  ],
371
371
  "async": [
372
- "__mf/js/async/238.16f121d4.js",
372
+ "__mf/js/async/238.d2cb634f.js",
373
373
  "__mf/js/async/224.b7775059.js",
374
- "__mf/js/async/292.149a1005.js",
374
+ "__mf/js/async/999.2b4fe1ef.js",
375
375
  "__mf/js/async/422.088d32ca.js",
376
- "__mf/js/async/116.577ccfb6.js",
376
+ "__mf/js/async/292.0f2f97fb.js",
377
377
  "__mf/js/async/lib-router.34d74652.js",
378
378
  "__mf/js/async/488.d3de7c62.js"
379
379
  ]
@@ -381,8 +381,8 @@
381
381
  "css": {
382
382
  "sync": [],
383
383
  "async": [
384
- "__mf/css/async/341.683bd428.css",
385
- "__mf/css/async/263.683bd428.css"
384
+ "__mf/css/async/341.d3010b86.css",
385
+ "__mf/css/async/263.d3010b86.css"
386
386
  ]
387
387
  }
388
388
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perses-dev/gauge-chart-plugin",
3
- "version": "0.9.1",
3
+ "version": "0.11.0",
4
4
  "homepage": "https://github.com/perses/plugins/blob/main/README.md",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,9 +27,9 @@
27
27
  "@emotion/react": "^11.7.1",
28
28
  "@emotion/styled": "^11.6.0",
29
29
  "@hookform/resolvers": "^3.2.0",
30
- "@perses-dev/components": "^0.52.0",
31
- "@perses-dev/core": "^0.52.0",
32
- "@perses-dev/plugin-system": "^0.52.0",
30
+ "@perses-dev/components": "^0.53.0-beta.1",
31
+ "@perses-dev/core": "^0.53.0-beta.1",
32
+ "@perses-dev/plugin-system": "^0.53.0-beta.1",
33
33
  "date-fns": "^4.1.0",
34
34
  "date-fns-tz": "^3.2.0",
35
35
  "echarts": "5.5.0",
@@ -58,4 +58,4 @@
58
58
  }
59
59
  ]
60
60
  }
61
- }
61
+ }
@@ -1 +0,0 @@
1
- @font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:300;src:url(/plugins/GaugeChart/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-300-normal.322bdf14.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:300;src:url(/plugins/GaugeChart/__mf/font/lato-latin-300-normal.c5195215.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-300-normal.322bdf14.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:400;src:url(/plugins/GaugeChart/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-400-normal.63513b00.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:400;src:url(/plugins/GaugeChart/__mf/font/lato-latin-400-normal.b7ffde23.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-400-normal.63513b00.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:700;src:url(/plugins/GaugeChart/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-700-normal.bb27db94.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:700;src:url(/plugins/GaugeChart/__mf/font/lato-latin-700-normal.d5eb20bc.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-700-normal.bb27db94.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:900;src:url(/plugins/GaugeChart/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-900-normal.a27049a3.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:900;src:url(/plugins/GaugeChart/__mf/font/lato-latin-900-normal.d884a71c.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-900-normal.a27049a3.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@@ -1 +0,0 @@
1
- @font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:300;src:url(/plugins/GaugeChart/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-300-normal.322bdf14.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:300;src:url(/plugins/GaugeChart/__mf/font/lato-latin-300-normal.c5195215.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-300-normal.322bdf14.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:400;src:url(/plugins/GaugeChart/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-400-normal.63513b00.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:400;src:url(/plugins/GaugeChart/__mf/font/lato-latin-400-normal.b7ffde23.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-400-normal.63513b00.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:700;src:url(/plugins/GaugeChart/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-700-normal.bb27db94.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:700;src:url(/plugins/GaugeChart/__mf/font/lato-latin-700-normal.d5eb20bc.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-700-normal.bb27db94.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:900;src:url(/plugins/GaugeChart/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-900-normal.a27049a3.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:900;src:url(/plugins/GaugeChart/__mf/font/lato-latin-900-normal.d884a71c.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-900-normal.a27049a3.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@@ -1 +0,0 @@
1
- @font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:300;src:url(/plugins/GaugeChart/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-300-normal.322bdf14.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:300;src:url(/plugins/GaugeChart/__mf/font/lato-latin-300-normal.c5195215.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-300-normal.322bdf14.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:400;src:url(/plugins/GaugeChart/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-400-normal.63513b00.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:400;src:url(/plugins/GaugeChart/__mf/font/lato-latin-400-normal.b7ffde23.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-400-normal.63513b00.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:700;src:url(/plugins/GaugeChart/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-700-normal.bb27db94.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:700;src:url(/plugins/GaugeChart/__mf/font/lato-latin-700-normal.d5eb20bc.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-700-normal.bb27db94.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:900;src:url(/plugins/GaugeChart/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-900-normal.a27049a3.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:900;src:url(/plugins/GaugeChart/__mf/font/lato-latin-900-normal.d884a71c.woff2)format("woff2"),url(/plugins/GaugeChart/__mf/font/lato-all-900-normal.a27049a3.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}