@perses-dev/stat-chart-plugin 0.12.1 → 0.13.0-beta.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.
- package/__mf/css/async/285.85c2cbf6.css +1 -0
- package/__mf/font/inter-cyrillic-300-normal.432f2b21.woff +0 -0
- package/__mf/font/inter-cyrillic-300-normal.9da91009.woff2 +0 -0
- package/__mf/font/inter-cyrillic-400-normal.372704ff.woff2 +0 -0
- package/__mf/font/inter-cyrillic-400-normal.a6b6ef6f.woff +0 -0
- package/__mf/font/inter-cyrillic-500-normal.7c15bba8.woff2 +0 -0
- package/__mf/font/inter-cyrillic-500-normal.b9f8c929.woff +0 -0
- package/__mf/font/inter-cyrillic-600-normal.2f42892a.woff2 +0 -0
- package/__mf/font/inter-cyrillic-600-normal.c3987adc.woff +0 -0
- package/__mf/font/inter-cyrillic-700-normal.93eba3c3.woff +0 -0
- package/__mf/font/inter-cyrillic-700-normal.e9e5b2dc.woff2 +0 -0
- package/__mf/font/inter-cyrillic-900-normal.f285bd7a.woff2 +0 -0
- package/__mf/font/inter-cyrillic-900-normal.ffbd8a3a.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-300-normal.95bb9038.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-300-normal.cfc143a9.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-400-normal.2a31c04b.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-400-normal.f572b170.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-500-normal.5a6bb1da.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-500-normal.fe0d9b14.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-600-normal.ecbdecad.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-600-normal.f7b3c15b.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-700-normal.4b4022a6.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-700-normal.74b516d2.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-900-normal.9970ddb5.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-900-normal.a0d59adc.woff2 +0 -0
- package/__mf/font/inter-greek-300-normal.0d7be683.woff2 +0 -0
- package/__mf/font/inter-greek-300-normal.8f0b988e.woff +0 -0
- package/__mf/font/inter-greek-400-normal.cc58c11b.woff +0 -0
- package/__mf/font/inter-greek-400-normal.d7020e3c.woff2 +0 -0
- package/__mf/font/inter-greek-500-normal.d9a33207.woff +0 -0
- package/__mf/font/inter-greek-500-normal.f41f43db.woff2 +0 -0
- package/__mf/font/inter-greek-600-normal.4ec0c1c1.woff +0 -0
- package/__mf/font/inter-greek-600-normal.cc532937.woff2 +0 -0
- package/__mf/font/inter-greek-700-normal.5ec6c758.woff +0 -0
- package/__mf/font/inter-greek-700-normal.97f0eeeb.woff2 +0 -0
- package/__mf/font/inter-greek-900-normal.46b66369.woff2 +0 -0
- package/__mf/font/inter-greek-900-normal.9ae3a3c5.woff +0 -0
- package/__mf/font/inter-greek-ext-300-normal.10247a66.woff2 +0 -0
- package/__mf/font/inter-greek-ext-300-normal.4668e5cb.woff +0 -0
- package/__mf/font/inter-greek-ext-400-normal.4ce1df5d.woff2 +0 -0
- package/__mf/font/inter-greek-ext-400-normal.88ede1ea.woff +0 -0
- package/__mf/font/inter-greek-ext-500-normal.7a4aa726.woff +0 -0
- package/__mf/font/inter-greek-ext-500-normal.cbd51e2d.woff2 +0 -0
- package/__mf/font/inter-greek-ext-600-normal.089a95ee.woff +0 -0
- package/__mf/font/inter-greek-ext-600-normal.1f33d317.woff2 +0 -0
- package/__mf/font/inter-greek-ext-700-normal.31f1075d.woff +0 -0
- package/__mf/font/inter-greek-ext-700-normal.827cd618.woff2 +0 -0
- package/__mf/font/inter-greek-ext-900-normal.531bcee7.woff +0 -0
- package/__mf/font/inter-greek-ext-900-normal.8a9b36b9.woff2 +0 -0
- package/__mf/font/inter-latin-300-normal.15fb600d.woff2 +0 -0
- package/__mf/font/inter-latin-300-normal.6f95f590.woff +0 -0
- package/__mf/font/inter-latin-400-normal.2c7a775c.woff +0 -0
- package/__mf/font/inter-latin-400-normal.ef6d3f52.woff2 +0 -0
- package/__mf/font/inter-latin-500-normal.b7b43ace.woff2 +0 -0
- package/__mf/font/inter-latin-500-normal.cb4c8ceb.woff +0 -0
- package/__mf/font/inter-latin-600-normal.8fb1a964.woff2 +0 -0
- package/__mf/font/inter-latin-600-normal.ce0f5f43.woff +0 -0
- package/__mf/font/inter-latin-700-normal.953b7aa5.woff2 +0 -0
- package/__mf/font/inter-latin-700-normal.9c21d4dc.woff +0 -0
- package/__mf/font/inter-latin-900-normal.2a8028ec.woff2 +0 -0
- package/__mf/font/inter-latin-900-normal.fa252135.woff +0 -0
- package/__mf/font/inter-latin-ext-300-normal.167cc8c9.woff2 +0 -0
- package/__mf/font/inter-latin-ext-300-normal.f695be66.woff +0 -0
- package/__mf/font/inter-latin-ext-400-normal.32a25442.woff2 +0 -0
- package/__mf/font/inter-latin-ext-400-normal.4edcaace.woff +0 -0
- package/__mf/font/inter-latin-ext-500-normal.a19a84a6.woff +0 -0
- package/__mf/font/inter-latin-ext-500-normal.d9b491de.woff2 +0 -0
- package/__mf/font/inter-latin-ext-600-normal.38b075d8.woff2 +0 -0
- package/__mf/font/inter-latin-ext-600-normal.49faa47a.woff +0 -0
- package/__mf/font/inter-latin-ext-700-normal.93534b50.woff +0 -0
- package/__mf/font/inter-latin-ext-700-normal.b63daa1a.woff2 +0 -0
- package/__mf/font/inter-latin-ext-900-normal.0efdb307.woff +0 -0
- package/__mf/font/inter-latin-ext-900-normal.9c0fc2c7.woff2 +0 -0
- package/__mf/font/inter-vietnamese-300-normal.aad496d8.woff +0 -0
- package/__mf/font/inter-vietnamese-300-normal.ad9ef503.woff2 +0 -0
- package/__mf/font/inter-vietnamese-400-normal.a9dd2faf.woff +0 -0
- package/__mf/font/inter-vietnamese-400-normal.de4fc44f.woff2 +0 -0
- package/__mf/font/inter-vietnamese-500-normal.7c0a695f.woff2 +0 -0
- package/__mf/font/inter-vietnamese-500-normal.a3a73b95.woff +0 -0
- package/__mf/font/inter-vietnamese-600-normal.9d518599.woff2 +0 -0
- package/__mf/font/inter-vietnamese-600-normal.c5ce3fcb.woff +0 -0
- package/__mf/font/inter-vietnamese-700-normal.bc68b199.woff +0 -0
- package/__mf/font/inter-vietnamese-700-normal.faf12809.woff2 +0 -0
- package/__mf/font/inter-vietnamese-900-normal.2b782045.woff +0 -0
- package/__mf/font/inter-vietnamese-900-normal.e639b65a.woff2 +0 -0
- package/__mf/js/StatChart.27dac9af.js +7 -0
- package/__mf/js/async/121.86811fc5.js +2 -0
- package/__mf/js/async/177.47e93ede.js +1 -0
- package/__mf/js/async/192.c8e5200d.js +1 -0
- package/__mf/js/async/2.35776588.js +1 -0
- package/__mf/js/async/235.d89662f4.js +1 -0
- package/__mf/js/async/274.0a3b59a5.js +2 -0
- package/__mf/js/async/285.7864c984.js +7 -0
- package/__mf/js/async/{901.44b39122.js.LICENSE.txt → 285.7864c984.js.LICENSE.txt} +19 -1
- package/__mf/js/async/356.44f67235.js +1 -0
- package/__mf/js/async/392.342419bd.js +2 -0
- package/__mf/js/async/450.0ad74d00.js +1 -0
- package/__mf/js/async/465.178c329d.js +2 -0
- package/__mf/js/async/470.02952871.js +2 -0
- package/__mf/js/async/558.0e64d762.js +1 -0
- package/__mf/js/async/570.f407deb7.js +2 -0
- package/__mf/js/async/587.806e94c8.js +1 -0
- package/__mf/js/async/588.5332d073.js +1 -0
- package/__mf/js/async/616.68b848ee.js +1 -0
- package/__mf/js/async/71.b1847413.js +1 -0
- package/__mf/js/async/721.bc9d8f7f.js +1 -0
- package/__mf/js/async/866.e6542737.js +83 -0
- package/__mf/js/async/866.e6542737.js.LICENSE.txt +27 -0
- package/__mf/js/async/872.0e741a4f.js +66 -0
- package/__mf/js/async/{119.b85eb681.js.LICENSE.txt → 872.0e741a4f.js.LICENSE.txt} +11 -23
- package/__mf/js/async/873.05eb2387.js +1 -0
- package/__mf/js/async/90.408311a5.js +24 -0
- package/__mf/js/async/{634.26891fea.js.LICENSE.txt → 90.408311a5.js.LICENSE.txt} +0 -16
- package/__mf/js/async/941.349eff0d.js +2 -0
- package/__mf/js/async/968.86a4b472.js +1 -0
- package/__mf/js/async/978.6beaa6c4.js +1 -0
- package/__mf/js/async/__federation_expose_StatChart.2840969d.js +1 -0
- package/__mf/js/async/lib-router.cc319a7d.js +2 -0
- package/__mf/js/async/{lib-router.18b45155.js.LICENSE.txt → lib-router.cc319a7d.js.LICENSE.txt} +3 -3
- package/__mf/js/main.b5b44ae0.js +7 -0
- package/lib/StatChartBase.d.ts +1 -2
- package/lib/StatChartBase.d.ts.map +1 -1
- package/lib/StatChartBase.js.map +1 -1
- package/lib/StatChartOptionsEditorSettings.js.map +1 -1
- package/lib/StatChartPanel.d.ts +1 -1
- package/lib/StatChartPanel.d.ts.map +1 -1
- package/lib/StatChartPanel.js +1 -2
- package/lib/StatChartPanel.js.map +1 -1
- package/lib/StatChartValueMappingEditor.d.ts.map +1 -1
- package/lib/StatChartValueMappingEditor.js.map +1 -1
- package/lib/cjs/StatChartPanel.js +2 -3
- package/lib/cjs/utils/calculate-value.js +4 -4
- package/lib/cjs/utils/format-stat-chart-value.js +2 -2
- package/lib/cjs/utils/get-color.js +2 -2
- package/lib/stat-chart-model.d.ts +3 -3
- package/lib/stat-chart-model.d.ts.map +1 -1
- package/lib/stat-chart-model.js.map +1 -1
- package/lib/utils/calculate-value.d.ts +2 -1
- package/lib/utils/calculate-value.d.ts.map +1 -1
- package/lib/utils/calculate-value.js +1 -1
- package/lib/utils/calculate-value.js.map +1 -1
- package/lib/utils/format-stat-chart-value.d.ts +1 -1
- package/lib/utils/format-stat-chart-value.d.ts.map +1 -1
- package/lib/utils/format-stat-chart-value.js +1 -1
- package/lib/utils/format-stat-chart-value.js.map +1 -1
- package/lib/utils/get-color.d.ts.map +1 -1
- package/lib/utils/get-color.js +1 -1
- package/lib/utils/get-color.js.map +1 -1
- package/mf-manifest.json +62 -51
- package/mf-stats.json +73 -51
- package/package.json +5 -4
- package/__mf/css/async/442.d3010b86.css +0 -1
- package/__mf/css/async/61.d3010b86.css +0 -1
- package/__mf/css/async/823.d3010b86.css +0 -1
- package/__mf/font/lato-all-300-normal.322bdf14.woff +0 -0
- package/__mf/font/lato-all-400-normal.63513b00.woff +0 -0
- package/__mf/font/lato-all-700-normal.bb27db94.woff +0 -0
- package/__mf/font/lato-all-900-normal.a27049a3.woff +0 -0
- package/__mf/font/lato-latin-300-normal.c5195215.woff2 +0 -0
- package/__mf/font/lato-latin-400-normal.b7ffde23.woff2 +0 -0
- package/__mf/font/lato-latin-700-normal.d5eb20bc.woff2 +0 -0
- package/__mf/font/lato-latin-900-normal.d884a71c.woff2 +0 -0
- package/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2 +0 -0
- package/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2 +0 -0
- package/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2 +0 -0
- package/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2 +0 -0
- package/__mf/js/StatChart.d861cce0.js +0 -6
- package/__mf/js/async/119.b85eb681.js +0 -83
- package/__mf/js/async/121.3f61f76f.js +0 -2
- package/__mf/js/async/177.eb221fda.js +0 -1
- package/__mf/js/async/192.8a915b5e.js +0 -1
- package/__mf/js/async/2.086684e1.js +0 -1
- package/__mf/js/async/235.046777ba.js +0 -1
- package/__mf/js/async/274.d4e1eee8.js +0 -2
- package/__mf/js/async/293.d523e0ab.js +0 -1
- package/__mf/js/async/302.b54c0505.js +0 -2
- package/__mf/js/async/356.f5a1c439.js +0 -1
- package/__mf/js/async/392.b57d43bb.js +0 -2
- package/__mf/js/async/450.6c3d739b.js +0 -1
- package/__mf/js/async/465.fc9973fc.js +0 -2
- package/__mf/js/async/470.57be52e3.js +0 -2
- package/__mf/js/async/587.6d7b1a7f.js +0 -1
- package/__mf/js/async/588.496be9cb.js +0 -1
- package/__mf/js/async/604.e0d336cb.js +0 -65
- package/__mf/js/async/616.f83c59ff.js +0 -1
- package/__mf/js/async/634.26891fea.js +0 -24
- package/__mf/js/async/71.603fe88a.js +0 -1
- package/__mf/js/async/721.0467c07c.js +0 -1
- package/__mf/js/async/873.c0881a00.js +0 -1
- package/__mf/js/async/901.44b39122.js +0 -7
- package/__mf/js/async/941.c1c0755a.js +0 -2
- package/__mf/js/async/968.eb198ceb.js +0 -1
- package/__mf/js/async/978.c7471d24.js +0 -1
- package/__mf/js/async/__federation_expose_StatChart.61c049f1.js +0 -1
- package/__mf/js/async/lib-router.18b45155.js +0 -2
- package/__mf/js/main.4d2cb031.js +0 -6
- /package/__mf/js/async/{121.3f61f76f.js.LICENSE.txt → 121.86811fc5.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{274.d4e1eee8.js.LICENSE.txt → 274.0a3b59a5.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.b57d43bb.js.LICENSE.txt → 392.342419bd.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{465.fc9973fc.js.LICENSE.txt → 465.178c329d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{470.57be52e3.js.LICENSE.txt → 470.02952871.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{302.b54c0505.js.LICENSE.txt → 570.f407deb7.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.c1c0755a.js.LICENSE.txt → 941.349eff0d.js.LICENSE.txt} +0 -0
|
@@ -24,7 +24,6 @@ const _jsxruntime = require("react/jsx-runtime");
|
|
|
24
24
|
const _components = require("@perses-dev/components");
|
|
25
25
|
const _material = require("@mui/material");
|
|
26
26
|
const _react = require("react");
|
|
27
|
-
const _core = require("@perses-dev/core");
|
|
28
27
|
const _datatransform = require("./utils/data-transform");
|
|
29
28
|
const _calculatevalue = require("./utils/calculate-value");
|
|
30
29
|
const _getcolor = require("./utils/get-color");
|
|
@@ -112,7 +111,7 @@ const getValueOrLabel = (value, mappings, label)=>{
|
|
|
112
111
|
return label;
|
|
113
112
|
}
|
|
114
113
|
if (mappings?.length && value !== undefined && value !== null) {
|
|
115
|
-
return (0,
|
|
114
|
+
return (0, _components.applyValueMapping)(value, mappings).value;
|
|
116
115
|
} else {
|
|
117
116
|
return value;
|
|
118
117
|
}
|
|
@@ -122,7 +121,7 @@ const getLabelValue = (fieldLabel, labels)=>{
|
|
|
122
121
|
return undefined;
|
|
123
122
|
}
|
|
124
123
|
for (const [key, value] of Object.entries(labels)){
|
|
125
|
-
const regex = (0,
|
|
124
|
+
const regex = (0, _components.createRegexFromString)(fieldLabel);
|
|
126
125
|
if (regex.test(key)) {
|
|
127
126
|
return value;
|
|
128
127
|
}
|
|
@@ -20,11 +20,11 @@ Object.defineProperty(exports, "calculateValue", {
|
|
|
20
20
|
return calculateValue;
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
const
|
|
23
|
+
const _pluginsystem = require("@perses-dev/plugin-system");
|
|
24
24
|
const calculateValue = (calculation, seriesData)=>{
|
|
25
|
-
if (
|
|
26
|
-
console.warn(`Invalid StatChart panel calculation ${calculation}, fallback to ${
|
|
25
|
+
if (_pluginsystem.CalculationsMap[calculation] === undefined) {
|
|
26
|
+
console.warn(`Invalid StatChart panel calculation ${calculation}, fallback to ${_pluginsystem.DEFAULT_CALCULATION}`);
|
|
27
27
|
}
|
|
28
|
-
const calculate =
|
|
28
|
+
const calculate = _pluginsystem.CalculationsMap[calculation] ?? _pluginsystem.CalculationsMap[_pluginsystem.DEFAULT_CALCULATION];
|
|
29
29
|
return calculate(seriesData.values);
|
|
30
30
|
};
|
|
@@ -20,12 +20,12 @@ Object.defineProperty(exports, "formatStatChartValue", {
|
|
|
20
20
|
return formatStatChartValue;
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
const
|
|
23
|
+
const _components = require("@perses-dev/components");
|
|
24
24
|
const formatStatChartValue = (value, format)=>{
|
|
25
25
|
if (value === null) {
|
|
26
26
|
return 'null';
|
|
27
27
|
} else if (typeof value === 'number') {
|
|
28
|
-
return (0,
|
|
28
|
+
return (0, _components.formatValue)(value, format);
|
|
29
29
|
} else if (value === undefined) {
|
|
30
30
|
return '';
|
|
31
31
|
} else {
|
|
@@ -20,7 +20,7 @@ Object.defineProperty(exports, "getStatChartColor", {
|
|
|
20
20
|
return getStatChartColor;
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
const
|
|
23
|
+
const _components = require("@perses-dev/components");
|
|
24
24
|
function getStatChartColor(chartsTheme, spec, value) {
|
|
25
25
|
const { mappings, thresholds } = spec ?? {};
|
|
26
26
|
// Determine the default color from thresholds or theme
|
|
@@ -47,7 +47,7 @@ function getStatChartColor(chartsTheme, spec, value) {
|
|
|
47
47
|
}
|
|
48
48
|
function getColorFromMappings(value, mappings) {
|
|
49
49
|
if (mappings?.length && value !== undefined && value !== null) {
|
|
50
|
-
const { color } = (0,
|
|
50
|
+
const { color } = (0, _components.applyValueMapping)(value, mappings);
|
|
51
51
|
return color || null;
|
|
52
52
|
}
|
|
53
53
|
return null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FontSizeOption } from '@perses-dev/components';
|
|
2
|
-
import { CalculationType,
|
|
3
|
-
import {
|
|
1
|
+
import { FontSizeOption, FormatOptions, ThresholdOptions, ValueMapping } from '@perses-dev/components';
|
|
2
|
+
import { CalculationType, OptionsEditorProps } from '@perses-dev/plugin-system';
|
|
3
|
+
import { Definition } from '@perses-dev/spec';
|
|
4
4
|
/**
|
|
5
5
|
* The schema for a StatChart panel.
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stat-chart-model.d.ts","sourceRoot":"","sources":["../../src/stat-chart-model.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"stat-chart-model.d.ts","sourceRoot":"","sources":["../../src/stat-chart-model.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACvG,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,UAAU,CAAC,gBAAgB,CAAC;IACvE,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,kBAAkB,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,SAAS,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,kBAAkB,EAIjD,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,CAAC;AAE/C,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,UAAU,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,mBAAmB,EAInD,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,eAAe,CAAC;IAC7B,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,2BAA2B,GAAG,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;AAE/E,wBAAgB,6BAA6B,IAAI,gBAAgB,CAShE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/stat-chart-model.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 { FontSizeOption } from '@perses-dev/components';\nimport { CalculationType,
|
|
1
|
+
{"version":3,"sources":["../../src/stat-chart-model.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 { FontSizeOption, FormatOptions, ThresholdOptions, ValueMapping } from '@perses-dev/components';\nimport { CalculationType, OptionsEditorProps } from '@perses-dev/plugin-system';\nimport { Definition } from '@perses-dev/spec';\n\n/**\n * The schema for a StatChart panel.\n */\nexport interface StatChartDefinition extends Definition<StatChartOptions> {\n kind: 'StatChart';\n}\n\nexport type ColorMode = 'none' | 'value' | 'background_solid';\n\nexport type ColorModeLabelItem = {\n id: ColorMode;\n label: string;\n};\n\nexport const COLOR_MODE_LABELS: ColorModeLabelItem[] = [\n { id: 'none', label: 'None' },\n { id: 'value', label: 'Text' },\n { id: 'background_solid', label: 'Background' },\n];\n\nexport type legendMode = 'auto' | 'on' | 'off';\n\nexport type ShowLegendLabelItem = {\n id: legendMode;\n label: string;\n description?: string;\n};\n\nexport const SHOW_LEGEND_LABELS: ShowLegendLabelItem[] = [\n { id: 'auto', label: 'Auto', description: 'Show legend for multi-series, hide legend for single series' },\n { id: 'on', label: 'On', description: 'Always show legend' },\n { id: 'off', label: 'Off', description: 'Always hide legend' },\n];\n\nexport interface StatChartOptions {\n calculation: CalculationType;\n format: FormatOptions;\n metricLabel?: string;\n thresholds?: ThresholdOptions;\n sparkline?: StatChartSparklineOptions;\n valueFontSize?: FontSizeOption;\n mappings?: ValueMapping[];\n colorMode?: ColorMode;\n legendMode?: legendMode;\n}\n\nexport interface StatChartSparklineOptions {\n color?: string;\n width?: number;\n}\n\nexport type StatChartOptionsEditorProps = OptionsEditorProps<StatChartOptions>;\n\nexport function createInitialStatChartOptions(): StatChartOptions {\n return {\n calculation: 'last-number',\n format: {\n unit: 'decimal',\n },\n sparkline: {},\n legendMode: 'auto',\n };\n}\n"],"names":["COLOR_MODE_LABELS","id","label","SHOW_LEGEND_LABELS","description","createInitialStatChartOptions","calculation","format","unit","sparkline","legendMode"],"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;AAoBjC,OAAO,MAAMA,oBAA0C;IACrD;QAAEC,IAAI;QAAQC,OAAO;IAAO;IAC5B;QAAED,IAAI;QAASC,OAAO;IAAO;IAC7B;QAAED,IAAI;QAAoBC,OAAO;IAAa;CAC/C,CAAC;AAUF,OAAO,MAAMC,qBAA4C;IACvD;QAAEF,IAAI;QAAQC,OAAO;QAAQE,aAAa;IAA8D;IACxG;QAAEH,IAAI;QAAMC,OAAO;QAAME,aAAa;IAAqB;IAC3D;QAAEH,IAAI;QAAOC,OAAO;QAAOE,aAAa;IAAqB;CAC9D,CAAC;AAqBF,OAAO,SAASC;IACd,OAAO;QACLC,aAAa;QACbC,QAAQ;YACNC,MAAM;QACR;QACAC,WAAW,CAAC;QACZC,YAAY;IACd;AACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { CalculationsMap, CalculationType
|
|
1
|
+
import { CalculationsMap, CalculationType } from '@perses-dev/plugin-system';
|
|
2
|
+
import { TimeSeries } from '@perses-dev/spec';
|
|
2
3
|
export declare const calculateValue: (calculation: CalculationType, seriesData: TimeSeries) => ReturnType<(typeof CalculationsMap)[CalculationType]>;
|
|
3
4
|
//# sourceMappingURL=calculate-value.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculate-value.d.ts","sourceRoot":"","sources":["../../../src/utils/calculate-value.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAuB,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"calculate-value.d.ts","sourceRoot":"","sources":["../../../src/utils/calculate-value.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAuB,MAAM,2BAA2B,CAAC;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,eAAO,MAAM,cAAc,GACzB,aAAa,eAAe,EAC5B,YAAY,UAAU,KACrB,UAAU,CAAC,CAAC,OAAO,eAAe,EAAE,eAAe,CAAC,CAMtD,CAAC"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
|
-
import { CalculationsMap, DEFAULT_CALCULATION } from '@perses-dev/
|
|
13
|
+
import { CalculationsMap, DEFAULT_CALCULATION } from '@perses-dev/plugin-system';
|
|
14
14
|
export const calculateValue = (calculation, seriesData)=>{
|
|
15
15
|
if (CalculationsMap[calculation] === undefined) {
|
|
16
16
|
console.warn(`Invalid StatChart panel calculation ${calculation}, fallback to ${DEFAULT_CALCULATION}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/calculate-value.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 { CalculationsMap, CalculationType, DEFAULT_CALCULATION
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/calculate-value.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 { CalculationsMap, CalculationType, DEFAULT_CALCULATION } from '@perses-dev/plugin-system';\nimport { TimeSeries } from '@perses-dev/spec';\n\nexport const calculateValue = (\n calculation: CalculationType,\n seriesData: TimeSeries\n): ReturnType<(typeof CalculationsMap)[CalculationType]> => {\n if (CalculationsMap[calculation] === undefined) {\n console.warn(`Invalid StatChart panel calculation ${calculation}, fallback to ${DEFAULT_CALCULATION}`);\n }\n const calculate = CalculationsMap[calculation] ?? CalculationsMap[DEFAULT_CALCULATION];\n return calculate(seriesData.values);\n};\n"],"names":["CalculationsMap","DEFAULT_CALCULATION","calculateValue","calculation","seriesData","undefined","console","warn","calculate","values"],"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,SAASA,eAAe,EAAmBC,mBAAmB,QAAQ,4BAA4B;AAGlG,OAAO,MAAMC,iBAAiB,CAC5BC,aACAC;IAEA,IAAIJ,eAAe,CAACG,YAAY,KAAKE,WAAW;QAC9CC,QAAQC,IAAI,CAAC,CAAC,oCAAoC,EAAEJ,YAAY,cAAc,EAAEF,qBAAqB;IACvG;IACA,MAAMO,YAAYR,eAAe,CAACG,YAAY,IAAIH,eAAe,CAACC,oBAAoB;IACtF,OAAOO,UAAUJ,WAAWK,MAAM;AACpC,EAAE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormatOptions } from '@perses-dev/
|
|
1
|
+
import { FormatOptions } from '@perses-dev/components';
|
|
2
2
|
export declare const formatStatChartValue: (value?: string | number | null, format?: FormatOptions) => string;
|
|
3
3
|
//# sourceMappingURL=format-stat-chart-value.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-stat-chart-value.d.ts","sourceRoot":"","sources":["../../../src/utils/format-stat-chart-value.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"format-stat-chart-value.d.ts","sourceRoot":"","sources":["../../../src/utils/format-stat-chart-value.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAe,MAAM,wBAAwB,CAAC;AAEpE,eAAO,MAAM,oBAAoB,GAAI,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI,EAAE,SAAS,aAAa,KAAG,MAU7F,CAAC"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
|
-
import { formatValue } from '@perses-dev/
|
|
13
|
+
import { formatValue } from '@perses-dev/components';
|
|
14
14
|
export const formatStatChartValue = (value, format)=>{
|
|
15
15
|
if (value === null) {
|
|
16
16
|
return 'null';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/format-stat-chart-value.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 { FormatOptions, formatValue } from '@perses-dev/
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/format-stat-chart-value.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 { FormatOptions, formatValue } from '@perses-dev/components';\n\nexport const formatStatChartValue = (value?: string | number | null, format?: FormatOptions): string => {\n if (value === null) {\n return 'null';\n } else if (typeof value === 'number') {\n return formatValue(value, format);\n } else if (value === undefined) {\n return '';\n } else {\n return value;\n }\n};\n"],"names":["formatValue","formatStatChartValue","value","format","undefined"],"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,SAAwBA,WAAW,QAAQ,yBAAyB;AAEpE,OAAO,MAAMC,uBAAuB,CAACC,OAAgCC;IACnE,IAAID,UAAU,MAAM;QAClB,OAAO;IACT,OAAO,IAAI,OAAOA,UAAU,UAAU;QACpC,OAAOF,YAAYE,OAAOC;IAC5B,OAAO,IAAID,UAAUE,WAAW;QAC9B,OAAO;IACT,OAAO;QACL,OAAOF;IACT;AACF,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-color.d.ts","sourceRoot":"","sources":["../../../src/utils/get-color.ts"],"names":[],"mappings":"AAaA,OAAO,
|
|
1
|
+
{"version":3,"file":"get-color.d.ts","sourceRoot":"","sources":["../../../src/utils/get-color.ts"],"names":[],"mappings":"AAaA,OAAO,EAAqB,iBAAiB,EAAkC,MAAM,wBAAwB,CAAC;AAC9G,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,KAAK,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAE7C,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,iBAAiB,EAC9B,IAAI,CAAC,EAAE,gBAAgB,EACvB,KAAK,CAAC,EAAE,cAAc,GACrB,MAAM,CA4BR"}
|
package/lib/utils/get-color.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
|
-
import { applyValueMapping } from '@perses-dev/
|
|
13
|
+
import { applyValueMapping } from '@perses-dev/components';
|
|
14
14
|
export function getStatChartColor(chartsTheme, spec, value) {
|
|
15
15
|
const { mappings, thresholds } = spec ?? {};
|
|
16
16
|
// Determine the default color from thresholds or theme
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/get-color.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 {
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/get-color.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 { applyValueMapping, PersesChartsTheme, ThresholdOptions, ValueMapping } from '@perses-dev/components';\nimport { StatChartOptions } from '../stat-chart-model';\n\ntype StatChartValue = number | string | null;\n\nexport function getStatChartColor(\n chartsTheme: PersesChartsTheme,\n spec?: StatChartOptions,\n value?: StatChartValue\n): string {\n const { mappings, thresholds } = spec ?? {};\n\n // Determine the default color from thresholds or theme\n const defaultColor = thresholds?.defaultColor ?? chartsTheme.thresholds.defaultColor;\n\n if (value === undefined || value === null || value === '' || (!thresholds?.steps && !mappings)) {\n return defaultColor;\n }\n\n // Check mappings first\n if (mappings?.length) {\n const colorFromMappings = getColorFromMappings(value, mappings);\n if (colorFromMappings) {\n return colorFromMappings;\n }\n }\n\n // Check thresholds next\n if (thresholds) {\n const colorFromThresholds = getColorFromThresholds(value, thresholds, chartsTheme, defaultColor);\n if (colorFromThresholds) {\n return colorFromThresholds;\n }\n }\n\n // Fallback to default color\n return defaultColor;\n}\n\nfunction getColorFromMappings(value: StatChartValue, mappings: ValueMapping[]): string | null {\n if (mappings?.length && value !== undefined && value !== null) {\n const { color } = applyValueMapping(value, mappings);\n return color || null;\n }\n return null;\n}\n\nfunction getColorFromThresholds(\n value: StatChartValue,\n thresholds: ThresholdOptions,\n chartsTheme: PersesChartsTheme,\n defaultColor: string\n): string | null {\n if (thresholds?.steps && typeof value === 'number') {\n const matchingColors = thresholds.steps\n .map((step, index) => {\n if (value >= step.value) {\n return step.color ?? chartsTheme.thresholds.palette[index] ?? defaultColor;\n }\n return null;\n })\n .filter((color): color is string => color !== null);\n\n return matchingColors[matchingColors.length - 1] ?? null;\n }\n return null;\n}\n"],"names":["applyValueMapping","getStatChartColor","chartsTheme","spec","value","mappings","thresholds","defaultColor","undefined","steps","length","colorFromMappings","getColorFromMappings","colorFromThresholds","getColorFromThresholds","color","matchingColors","map","step","index","palette","filter"],"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,SAASA,iBAAiB,QAA2D,yBAAyB;AAK9G,OAAO,SAASC,kBACdC,WAA8B,EAC9BC,IAAuB,EACvBC,KAAsB;IAEtB,MAAM,EAAEC,QAAQ,EAAEC,UAAU,EAAE,GAAGH,QAAQ,CAAC;IAE1C,uDAAuD;IACvD,MAAMI,eAAeD,YAAYC,gBAAgBL,YAAYI,UAAU,CAACC,YAAY;IAEpF,IAAIH,UAAUI,aAAaJ,UAAU,QAAQA,UAAU,MAAO,CAACE,YAAYG,SAAS,CAACJ,UAAW;QAC9F,OAAOE;IACT;IAEA,uBAAuB;IACvB,IAAIF,UAAUK,QAAQ;QACpB,MAAMC,oBAAoBC,qBAAqBR,OAAOC;QACtD,IAAIM,mBAAmB;YACrB,OAAOA;QACT;IACF;IAEA,wBAAwB;IACxB,IAAIL,YAAY;QACd,MAAMO,sBAAsBC,uBAAuBV,OAAOE,YAAYJ,aAAaK;QACnF,IAAIM,qBAAqB;YACvB,OAAOA;QACT;IACF;IAEA,4BAA4B;IAC5B,OAAON;AACT;AAEA,SAASK,qBAAqBR,KAAqB,EAAEC,QAAwB;IAC3E,IAAIA,UAAUK,UAAUN,UAAUI,aAAaJ,UAAU,MAAM;QAC7D,MAAM,EAAEW,KAAK,EAAE,GAAGf,kBAAkBI,OAAOC;QAC3C,OAAOU,SAAS;IAClB;IACA,OAAO;AACT;AAEA,SAASD,uBACPV,KAAqB,EACrBE,UAA4B,EAC5BJ,WAA8B,EAC9BK,YAAoB;IAEpB,IAAID,YAAYG,SAAS,OAAOL,UAAU,UAAU;QAClD,MAAMY,iBAAiBV,WAAWG,KAAK,CACpCQ,GAAG,CAAC,CAACC,MAAMC;YACV,IAAIf,SAASc,KAAKd,KAAK,EAAE;gBACvB,OAAOc,KAAKH,KAAK,IAAIb,YAAYI,UAAU,CAACc,OAAO,CAACD,MAAM,IAAIZ;YAChE;YACA,OAAO;QACT,GACCc,MAAM,CAAC,CAACN,QAA2BA,UAAU;QAEhD,OAAOC,cAAc,CAACA,eAAeN,MAAM,GAAG,EAAE,IAAI;IACtD;IACA,OAAO;AACT"}
|
package/mf-manifest.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "StatChart",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.
|
|
8
|
+
"buildVersion": "0.13.0-beta.1",
|
|
9
9
|
"buildName": "@perses-dev/stat-chart-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/StatChart.
|
|
12
|
+
"name": "__mf/js/StatChart.27dac9af.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"api": ""
|
|
21
21
|
},
|
|
22
22
|
"globalName": "StatChart",
|
|
23
|
-
"pluginVersion": "
|
|
24
|
-
"prefetchInterface": false,
|
|
23
|
+
"pluginVersion": "2.5.1",
|
|
25
24
|
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/StatChart/\"; }"
|
|
26
25
|
},
|
|
27
26
|
"shared": [
|
|
@@ -35,34 +34,36 @@
|
|
|
35
34
|
"js": {
|
|
36
35
|
"async": [],
|
|
37
36
|
"sync": [
|
|
38
|
-
"__mf/js/async/274.
|
|
37
|
+
"__mf/js/async/274.0a3b59a5.js"
|
|
39
38
|
]
|
|
40
39
|
},
|
|
41
40
|
"css": {
|
|
42
41
|
"async": [],
|
|
43
42
|
"sync": []
|
|
44
43
|
}
|
|
45
|
-
}
|
|
44
|
+
},
|
|
45
|
+
"fallback": ""
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"id": "StatChart:@emotion/styled",
|
|
49
49
|
"name": "@emotion/styled",
|
|
50
|
-
"version": "11.14.
|
|
50
|
+
"version": "11.14.1",
|
|
51
51
|
"singleton": true,
|
|
52
|
-
"requiredVersion": "^11.14.
|
|
52
|
+
"requiredVersion": "^11.14.1",
|
|
53
53
|
"assets": {
|
|
54
54
|
"js": {
|
|
55
55
|
"async": [],
|
|
56
56
|
"sync": [
|
|
57
|
-
"__mf/js/async/235.
|
|
58
|
-
"__mf/js/async/616.
|
|
57
|
+
"__mf/js/async/235.d89662f4.js",
|
|
58
|
+
"__mf/js/async/616.68b848ee.js"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
61
|
"css": {
|
|
62
62
|
"async": [],
|
|
63
63
|
"sync": []
|
|
64
64
|
}
|
|
65
|
-
}
|
|
65
|
+
},
|
|
66
|
+
"fallback": ""
|
|
66
67
|
},
|
|
67
68
|
{
|
|
68
69
|
"id": "StatChart:@hookform/resolvers",
|
|
@@ -74,53 +75,58 @@
|
|
|
74
75
|
"js": {
|
|
75
76
|
"async": [],
|
|
76
77
|
"sync": [
|
|
77
|
-
"__mf/js/async/587.
|
|
78
|
-
"__mf/js/async/968.
|
|
78
|
+
"__mf/js/async/587.806e94c8.js",
|
|
79
|
+
"__mf/js/async/968.86a4b472.js"
|
|
79
80
|
]
|
|
80
81
|
},
|
|
81
82
|
"css": {
|
|
82
83
|
"async": [],
|
|
83
84
|
"sync": []
|
|
84
85
|
}
|
|
85
|
-
}
|
|
86
|
+
},
|
|
87
|
+
"fallback": ""
|
|
86
88
|
},
|
|
87
89
|
{
|
|
88
90
|
"id": "StatChart:@perses-dev/components",
|
|
89
91
|
"name": "@perses-dev/components",
|
|
90
|
-
"version": "0.
|
|
92
|
+
"version": "0.54.0-beta.8",
|
|
91
93
|
"singleton": true,
|
|
92
|
-
"requiredVersion": "^0.
|
|
94
|
+
"requiredVersion": "^0.54.0-beta.8",
|
|
93
95
|
"assets": {
|
|
94
96
|
"js": {
|
|
95
97
|
"async": [],
|
|
96
98
|
"sync": [
|
|
97
|
-
"__mf/js/async/
|
|
99
|
+
"__mf/js/async/285.7864c984.js"
|
|
98
100
|
]
|
|
99
101
|
},
|
|
100
102
|
"css": {
|
|
101
103
|
"async": [],
|
|
102
|
-
"sync": [
|
|
104
|
+
"sync": [
|
|
105
|
+
"__mf/css/async/285.85c2cbf6.css"
|
|
106
|
+
]
|
|
103
107
|
}
|
|
104
|
-
}
|
|
108
|
+
},
|
|
109
|
+
"fallback": ""
|
|
105
110
|
},
|
|
106
111
|
{
|
|
107
112
|
"id": "StatChart:@perses-dev/plugin-system",
|
|
108
113
|
"name": "@perses-dev/plugin-system",
|
|
109
|
-
"version": "0.
|
|
114
|
+
"version": "0.54.0-beta.8",
|
|
110
115
|
"singleton": true,
|
|
111
|
-
"requiredVersion": "^0.
|
|
116
|
+
"requiredVersion": "^0.54.0-beta.8",
|
|
112
117
|
"assets": {
|
|
113
118
|
"js": {
|
|
114
119
|
"async": [],
|
|
115
120
|
"sync": [
|
|
116
|
-
"__mf/js/async/
|
|
121
|
+
"__mf/js/async/90.408311a5.js"
|
|
117
122
|
]
|
|
118
123
|
},
|
|
119
124
|
"css": {
|
|
120
125
|
"async": [],
|
|
121
126
|
"sync": []
|
|
122
127
|
}
|
|
123
|
-
}
|
|
128
|
+
},
|
|
129
|
+
"fallback": ""
|
|
124
130
|
},
|
|
125
131
|
{
|
|
126
132
|
"id": "StatChart:date-fns",
|
|
@@ -132,14 +138,15 @@
|
|
|
132
138
|
"js": {
|
|
133
139
|
"async": [],
|
|
134
140
|
"sync": [
|
|
135
|
-
"__mf/js/async/192.
|
|
141
|
+
"__mf/js/async/192.c8e5200d.js"
|
|
136
142
|
]
|
|
137
143
|
},
|
|
138
144
|
"css": {
|
|
139
145
|
"async": [],
|
|
140
146
|
"sync": []
|
|
141
147
|
}
|
|
142
|
-
}
|
|
148
|
+
},
|
|
149
|
+
"fallback": ""
|
|
143
150
|
},
|
|
144
151
|
{
|
|
145
152
|
"id": "StatChart:echarts",
|
|
@@ -151,33 +158,35 @@
|
|
|
151
158
|
"js": {
|
|
152
159
|
"async": [],
|
|
153
160
|
"sync": [
|
|
154
|
-
"__mf/js/async/873.
|
|
161
|
+
"__mf/js/async/873.05eb2387.js"
|
|
155
162
|
]
|
|
156
163
|
},
|
|
157
164
|
"css": {
|
|
158
165
|
"async": [],
|
|
159
166
|
"sync": []
|
|
160
167
|
}
|
|
161
|
-
}
|
|
168
|
+
},
|
|
169
|
+
"fallback": ""
|
|
162
170
|
},
|
|
163
171
|
{
|
|
164
172
|
"id": "StatChart:lodash",
|
|
165
173
|
"name": "lodash",
|
|
166
|
-
"version": "4.
|
|
174
|
+
"version": "4.18.1",
|
|
167
175
|
"singleton": true,
|
|
168
|
-
"requiredVersion": "^4.
|
|
176
|
+
"requiredVersion": "^4.18.1",
|
|
169
177
|
"assets": {
|
|
170
178
|
"js": {
|
|
171
179
|
"async": [],
|
|
172
180
|
"sync": [
|
|
173
|
-
"__mf/js/async/392.
|
|
181
|
+
"__mf/js/async/392.342419bd.js"
|
|
174
182
|
]
|
|
175
183
|
},
|
|
176
184
|
"css": {
|
|
177
185
|
"async": [],
|
|
178
186
|
"sync": []
|
|
179
187
|
}
|
|
180
|
-
}
|
|
188
|
+
},
|
|
189
|
+
"fallback": ""
|
|
181
190
|
},
|
|
182
191
|
{
|
|
183
192
|
"id": "StatChart:react-dom",
|
|
@@ -189,14 +198,15 @@
|
|
|
189
198
|
"js": {
|
|
190
199
|
"async": [],
|
|
191
200
|
"sync": [
|
|
192
|
-
"__mf/js/async/470.
|
|
201
|
+
"__mf/js/async/470.02952871.js"
|
|
193
202
|
]
|
|
194
203
|
},
|
|
195
204
|
"css": {
|
|
196
205
|
"async": [],
|
|
197
206
|
"sync": []
|
|
198
207
|
}
|
|
199
|
-
}
|
|
208
|
+
},
|
|
209
|
+
"fallback": ""
|
|
200
210
|
},
|
|
201
211
|
{
|
|
202
212
|
"id": "StatChart:react",
|
|
@@ -208,14 +218,15 @@
|
|
|
208
218
|
"js": {
|
|
209
219
|
"async": [],
|
|
210
220
|
"sync": [
|
|
211
|
-
"__mf/js/async/121.
|
|
221
|
+
"__mf/js/async/121.86811fc5.js"
|
|
212
222
|
]
|
|
213
223
|
},
|
|
214
224
|
"css": {
|
|
215
225
|
"async": [],
|
|
216
226
|
"sync": []
|
|
217
227
|
}
|
|
218
|
-
}
|
|
228
|
+
},
|
|
229
|
+
"fallback": ""
|
|
219
230
|
},
|
|
220
231
|
{
|
|
221
232
|
"id": "StatChart:date-fns-tz",
|
|
@@ -227,14 +238,15 @@
|
|
|
227
238
|
"js": {
|
|
228
239
|
"async": [],
|
|
229
240
|
"sync": [
|
|
230
|
-
"__mf/js/async/978.
|
|
241
|
+
"__mf/js/async/978.6beaa6c4.js"
|
|
231
242
|
]
|
|
232
243
|
},
|
|
233
244
|
"css": {
|
|
234
245
|
"async": [],
|
|
235
246
|
"sync": []
|
|
236
247
|
}
|
|
237
|
-
}
|
|
248
|
+
},
|
|
249
|
+
"fallback": ""
|
|
238
250
|
}
|
|
239
251
|
],
|
|
240
252
|
"remotes": [],
|
|
@@ -245,27 +257,26 @@
|
|
|
245
257
|
"assets": {
|
|
246
258
|
"js": {
|
|
247
259
|
"sync": [
|
|
248
|
-
"__mf/js/async/465.
|
|
249
|
-
"__mf/js/async/
|
|
250
|
-
"__mf/js/async/721.
|
|
251
|
-
"__mf/js/async/
|
|
252
|
-
"__mf/js/async/__federation_expose_StatChart.
|
|
260
|
+
"__mf/js/async/465.178c329d.js",
|
|
261
|
+
"__mf/js/async/866.e6542737.js",
|
|
262
|
+
"__mf/js/async/721.bc9d8f7f.js",
|
|
263
|
+
"__mf/js/async/570.f407deb7.js",
|
|
264
|
+
"__mf/js/async/__federation_expose_StatChart.2840969d.js"
|
|
253
265
|
],
|
|
254
266
|
"async": [
|
|
255
|
-
"__mf/js/async/588.
|
|
256
|
-
"__mf/js/async/
|
|
257
|
-
"__mf/js/async/
|
|
258
|
-
"__mf/js/async/
|
|
259
|
-
"__mf/js/async/450.
|
|
260
|
-
"__mf/js/async/lib-router.
|
|
261
|
-
"__mf/js/async/177.
|
|
267
|
+
"__mf/js/async/588.5332d073.js",
|
|
268
|
+
"__mf/js/async/356.44f67235.js",
|
|
269
|
+
"__mf/js/async/71.b1847413.js",
|
|
270
|
+
"__mf/js/async/872.0e741a4f.js",
|
|
271
|
+
"__mf/js/async/450.0ad74d00.js",
|
|
272
|
+
"__mf/js/async/lib-router.cc319a7d.js",
|
|
273
|
+
"__mf/js/async/177.47e93ede.js"
|
|
262
274
|
]
|
|
263
275
|
},
|
|
264
276
|
"css": {
|
|
265
277
|
"sync": [],
|
|
266
278
|
"async": [
|
|
267
|
-
"__mf/css/async/
|
|
268
|
-
"__mf/css/async/823.d3010b86.css"
|
|
279
|
+
"__mf/css/async/285.85c2cbf6.css"
|
|
269
280
|
]
|
|
270
281
|
}
|
|
271
282
|
},
|