@perses-dev/bar-chart-plugin 0.13.0 → 0.14.0-beta.2
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/js/BarChart.777a5fe9.js +7 -0
- package/__mf/js/async/121.0dfa8a56.js +2 -0
- package/__mf/js/async/138.a47c7fc8.js +2 -0
- package/__mf/js/async/192.e523747d.js +1 -0
- package/__mf/js/async/235.5bb676bf.js +1 -0
- package/__mf/js/async/274.becf0c4e.js +2 -0
- package/__mf/js/async/319.a1a08706.js +1 -0
- package/__mf/js/async/356.4a2d6a5d.js +1 -0
- package/__mf/js/async/377.6b67c9b8.js +1 -0
- package/__mf/js/async/392.ce5748af.js +2 -0
- package/__mf/js/async/407.f9cff9c5.js +4 -0
- package/__mf/js/async/407.f9cff9c5.js.LICENSE.txt +9 -0
- package/__mf/js/async/435.4802f945.js +1 -0
- package/__mf/js/async/458.dd052408.js +1 -0
- package/__mf/js/async/470.6bd33fa1.js +2 -0
- package/__mf/js/async/496.46cf1305.js +1 -0
- package/__mf/js/async/587.e4d2ed78.js +1 -0
- package/__mf/js/async/588.ca7f0375.js +1 -0
- package/__mf/js/async/603.6e4d4c2a.js +1 -0
- package/__mf/js/async/616.6263efeb.js +1 -0
- package/__mf/js/async/71.5f1bab20.js +1 -0
- package/__mf/js/async/720.e068b3e4.js +101 -0
- package/__mf/js/async/77.d762eaa0.js +1 -0
- package/__mf/js/async/788.e72a42a8.js +43 -0
- package/__mf/js/async/{815.60db8972.js.LICENSE.txt → 788.e72a42a8.js.LICENSE.txt} +41 -1
- package/__mf/js/async/823.2a2b516e.js +10 -0
- package/__mf/js/async/854.49d186a1.js +1 -0
- package/__mf/js/async/873.9b3f6f36.js +1 -0
- package/__mf/js/async/934.04010fe7.js +2 -0
- package/__mf/js/async/941.88203ba1.js +2 -0
- package/__mf/js/async/963.36fb71d2.js +1 -0
- package/__mf/js/async/968.66f07975.js +1 -0
- package/__mf/js/async/977.b3f21ee5.js +1 -0
- package/__mf/js/async/978.d27fe59a.js +1 -0
- package/__mf/js/async/__federation_expose_BarChart.07c26459.js +1 -0
- package/__mf/js/async/lib-router.a4768e7d.js +2 -0
- package/__mf/js/main.e614feb4.js +7 -0
- package/lib/BarChart.d.ts +3 -3
- package/lib/BarChart.d.ts.map +1 -1
- package/lib/BarChart.js +4 -4
- package/lib/BarChart.js.map +1 -1
- package/lib/BarChartBase.d.ts +4 -2
- package/lib/BarChartBase.d.ts.map +1 -1
- package/lib/BarChartBase.js +34 -15
- package/lib/BarChartBase.js.map +1 -1
- package/lib/BarChartExportAction.d.ts +1 -1
- package/lib/BarChartExportAction.d.ts.map +1 -1
- package/lib/BarChartExportAction.js +5 -5
- package/lib/BarChartExportAction.js.map +1 -1
- package/lib/BarChartOptionsEditorSettings.d.ts +2 -2
- package/lib/BarChartOptionsEditorSettings.d.ts.map +1 -1
- package/lib/BarChartOptionsEditorSettings.js +87 -16
- package/lib/BarChartOptionsEditorSettings.js.map +1 -1
- package/lib/BarChartPanel.d.ts +4 -4
- package/lib/BarChartPanel.d.ts.map +1 -1
- package/lib/BarChartPanel.js +11 -10
- package/lib/BarChartPanel.js.map +1 -1
- package/lib/bar-chart-model.d.ts +18 -3
- package/lib/bar-chart-model.d.ts.map +1 -1
- package/lib/bar-chart-model.js +4 -2
- package/lib/bar-chart-model.js.map +1 -1
- package/lib/bootstrap.js +2 -2
- package/lib/getPluginModule.d.ts +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +3 -1
- package/lib/getPluginModule.js.map +1 -1
- package/lib/index-federation.js +1 -1
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/setup-tests.d.ts +1 -1
- package/lib/setup-tests.d.ts.map +1 -1
- package/lib/setup-tests.js +2 -2
- package/lib/setup-tests.js.map +1 -1
- package/lib/tresholds.d.ts +1 -1
- package/lib/tresholds.d.ts.map +1 -1
- package/lib/tresholds.js +1 -1
- package/lib/tresholds.js.map +1 -1
- package/lib/utils.d.ts +8 -2
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +22 -3
- package/lib/utils.js.map +1 -1
- package/mf-manifest.json +40 -41
- package/mf-stats.json +40 -41
- package/package.json +10 -10
- package/__mf/js/BarChart.9e1e78c7.js +0 -7
- package/__mf/js/async/121.473596c1.js +0 -2
- package/__mf/js/async/177.3e3ea369.js +0 -1
- package/__mf/js/async/187.0c10a71e.js +0 -7
- package/__mf/js/async/187.0c10a71e.js.LICENSE.txt +0 -39
- package/__mf/js/async/192.d5754c56.js +0 -1
- package/__mf/js/async/235.b9e83b0f.js +0 -1
- package/__mf/js/async/274.3b869914.js +0 -2
- package/__mf/js/async/356.4b7b13a4.js +0 -1
- package/__mf/js/async/377.1e6cd99f.js +0 -1
- package/__mf/js/async/392.43a49d02.js +0 -2
- package/__mf/js/async/435.7b8a2474.js +0 -1
- package/__mf/js/async/458.e0bfe246.js +0 -1
- package/__mf/js/async/46.822ac417.js +0 -101
- package/__mf/js/async/470.bbaeb6f6.js +0 -2
- package/__mf/js/async/496.b1d86a71.js +0 -1
- package/__mf/js/async/546.966246a4.js +0 -24
- package/__mf/js/async/546.966246a4.js.LICENSE.txt +0 -19
- package/__mf/js/async/568.93423f6b.js +0 -1
- package/__mf/js/async/587.19607cd0.js +0 -1
- package/__mf/js/async/588.3e2e88e6.js +0 -1
- package/__mf/js/async/603.73790c72.js +0 -1
- package/__mf/js/async/616.673776b4.js +0 -1
- package/__mf/js/async/71.8dde0897.js +0 -1
- package/__mf/js/async/77.64992029.js +0 -1
- package/__mf/js/async/815.60db8972.js +0 -39
- package/__mf/js/async/823.55761759.js +0 -10
- package/__mf/js/async/854.8910fbf0.js +0 -1
- package/__mf/js/async/873.2961fe42.js +0 -1
- package/__mf/js/async/934.e8708047.js +0 -2
- package/__mf/js/async/941.b9c9bdfe.js +0 -2
- package/__mf/js/async/963.e557410b.js +0 -1
- package/__mf/js/async/968.0da0003e.js +0 -1
- package/__mf/js/async/977.4f77cf46.js +0 -1
- package/__mf/js/async/978.83c86840.js +0 -1
- package/__mf/js/async/__federation_expose_BarChart.cf3b83b6.js +0 -1
- package/__mf/js/async/lib-router.9c050a7f.js +0 -2
- package/__mf/js/main.8c45ef82.js +0 -7
- package/lib/cjs/BarChart.js +0 -45
- package/lib/cjs/BarChartBase.js +0 -232
- package/lib/cjs/BarChartExportAction.js +0 -124
- package/lib/cjs/BarChartOptionsEditorSettings.js +0 -180
- package/lib/cjs/BarChartPanel.js +0 -138
- package/lib/cjs/bar-chart-model.js +0 -66
- package/lib/cjs/bootstrap.js +0 -26
- package/lib/cjs/env.d.js +0 -14
- package/lib/cjs/getPluginModule.js +0 -39
- package/lib/cjs/index-federation.js +0 -55
- package/lib/cjs/index.js +0 -40
- package/lib/cjs/setup-tests.js +0 -19
- package/lib/cjs/tresholds.js +0 -77
- package/lib/cjs/utils.js +0 -72
- /package/__mf/css/async/{187.85c2cbf6.css → 788.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{121.473596c1.js.LICENSE.txt → 121.0dfa8a56.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{274.3b869914.js.LICENSE.txt → 274.becf0c4e.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.43a49d02.js.LICENSE.txt → 392.ce5748af.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{470.bbaeb6f6.js.LICENSE.txt → 470.6bd33fa1.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{823.55761759.js.LICENSE.txt → 823.2a2b516e.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{934.e8708047.js.LICENSE.txt → 934.04010fe7.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.b9c9bdfe.js.LICENSE.txt → 941.88203ba1.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.9c050a7f.js.LICENSE.txt → lib-router.a4768e7d.js.LICENSE.txt} +0 -0
package/lib/tresholds.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 zip from
|
|
13
|
+
import zip from "lodash/zip";
|
|
14
14
|
export const defaultThresholdInput = {
|
|
15
15
|
steps: [
|
|
16
16
|
{
|
package/lib/tresholds.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/tresholds.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, StepOptions, ThresholdColorPalette, ThresholdOptions } from '@perses-dev/components';\nimport zip from 'lodash/zip';\n\nexport type GaugeColorStop = [number, string];\n\nexport type EChartsAxisLineColors = GaugeColorStop[];\n\nexport const defaultThresholdInput: ThresholdOptions = { steps: [{ value: 0 }] };\n\nexport function convertThresholds(\n thresholds: ThresholdOptions,\n unit: FormatOptions,\n max: number,\n palette: ThresholdColorPalette
|
|
1
|
+
{"version":3,"sources":["../../src/tresholds.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 type { FormatOptions, StepOptions, ThresholdColorPalette, ThresholdOptions } from '@perses-dev/components';\nimport zip from 'lodash/zip';\n\nexport type GaugeColorStop = [number, string];\n\nexport type EChartsAxisLineColors = GaugeColorStop[];\n\nexport const defaultThresholdInput: ThresholdOptions = { steps: [{ value: 0 }] };\n\nexport function convertThresholds(\n thresholds: ThresholdOptions,\n unit: FormatOptions,\n max: number,\n palette: ThresholdColorPalette,\n): EChartsAxisLineColors {\n const defaultThresholdColor = thresholds.defaultColor ?? palette.defaultColor;\n const defaultThresholdSteps: EChartsAxisLineColors = [[0, defaultThresholdColor]];\n\n if (thresholds.steps !== undefined) {\n // https://echarts.apache.org/en/option.html#series-gauge.axisLine.lineStyle.color\n // color segments must be decimal between 0 and 1\n const segmentMax = 1;\n const valuesArr: number[] = thresholds.steps.map((step: StepOptions) => {\n if (thresholds.mode === 'percent') {\n return step.value / 100;\n }\n return step.value / max;\n });\n valuesArr.push(segmentMax);\n\n const colorsArr = thresholds.steps.map((step: StepOptions, index) => step.color ?? palette.palette[index]);\n colorsArr.unshift(defaultThresholdColor);\n\n const zippedArr = zip(valuesArr, colorsArr);\n return zippedArr.map((elem) => {\n const convertedValues = elem[0] ?? segmentMax;\n const convertedColors = elem[1] ?? defaultThresholdColor;\n return [convertedValues, convertedColors];\n });\n } else {\n return defaultThresholdSteps;\n }\n}\n"],"names":["zip","defaultThresholdInput","steps","value","convertThresholds","thresholds","unit","max","palette","defaultThresholdColor","defaultColor","defaultThresholdSteps","undefined","segmentMax","valuesArr","map","step","mode","push","colorsArr","index","color","unshift","zippedArr","elem","convertedValues","convertedColors"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,OAAOA,SAAS,aAAa;AAM7B,OAAO,MAAMC,wBAA0C;IAAEC,OAAO;QAAC;YAAEC,OAAO;QAAE;KAAE;AAAC,EAAE;AAEjF,OAAO,SAASC,kBACdC,UAA4B,EAC5BC,IAAmB,EACnBC,GAAW,EACXC,OAA8B;IAE9B,MAAMC,wBAAwBJ,WAAWK,YAAY,IAAIF,QAAQE,YAAY;IAC7E,MAAMC,wBAA+C;QAAC;YAAC;YAAGF;SAAsB;KAAC;IAEjF,IAAIJ,WAAWH,KAAK,KAAKU,WAAW;QAClC,kFAAkF;QAClF,iDAAiD;QACjD,MAAMC,aAAa;QACnB,MAAMC,YAAsBT,WAAWH,KAAK,CAACa,GAAG,CAAC,CAACC;YAChD,IAAIX,WAAWY,IAAI,KAAK,WAAW;gBACjC,OAAOD,KAAKb,KAAK,GAAG;YACtB;YACA,OAAOa,KAAKb,KAAK,GAAGI;QACtB;QACAO,UAAUI,IAAI,CAACL;QAEf,MAAMM,YAAYd,WAAWH,KAAK,CAACa,GAAG,CAAC,CAACC,MAAmBI,QAAUJ,KAAKK,KAAK,IAAIb,QAAQA,OAAO,CAACY,MAAM;QACzGD,UAAUG,OAAO,CAACb;QAElB,MAAMc,YAAYvB,IAAIc,WAAWK;QACjC,OAAOI,UAAUR,GAAG,CAAC,CAACS;YACpB,MAAMC,kBAAkBD,IAAI,CAAC,EAAE,IAAIX;YACnC,MAAMa,kBAAkBF,IAAI,CAAC,EAAE,IAAIf;YACnC,OAAO;gBAACgB;gBAAiBC;aAAgB;QAC3C;IACF,OAAO;QACL,OAAOf;IACT;AACF"}
|
package/lib/utils.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { SortOption } from '@perses-dev/components';
|
|
2
|
-
import {
|
|
1
|
+
import type { SortOption } from '@perses-dev/components';
|
|
2
|
+
import type { ColorOverride } from './bar-chart-model';
|
|
3
|
+
import type { BarChartData } from './BarChartBase';
|
|
3
4
|
export declare function calculatePercentages(data: BarChartData[]): Array<{
|
|
4
5
|
label: string;
|
|
5
6
|
value: number;
|
|
6
7
|
}>;
|
|
7
8
|
export declare function sortSeriesData(data: BarChartData[], sortOrder?: SortOption): BarChartData[];
|
|
9
|
+
/**
|
|
10
|
+
* Returns the color of the first override whose regex matches the given name.
|
|
11
|
+
* Invalid regex patterns are skipped. Returns undefined if no override matches.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getOverrideColor(name: string, overrides?: ColorOverride[]): string | undefined;
|
|
8
14
|
//# sourceMappingURL=utils.d.ts.map
|
package/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CASlG;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,SAAS,GAAE,UAAyB,GAAG,YAAY,EAAE,CA8BzG;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,aAAa,EAAE,GAAG,MAAM,GAAG,SAAS,CAe9F"}
|
package/lib/utils.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 { DEFAULT_SORT } from
|
|
13
|
+
import { DEFAULT_SORT } from "./bar-chart-model.js";
|
|
14
14
|
export function calculatePercentages(data) {
|
|
15
15
|
const sum = data.reduce((accumulator, { value })=>accumulator + (value ?? 0), 0);
|
|
16
16
|
return data.map((seriesData)=>{
|
|
@@ -24,7 +24,7 @@ export function calculatePercentages(data) {
|
|
|
24
24
|
export function sortSeriesData(data, sortOrder = DEFAULT_SORT) {
|
|
25
25
|
if (sortOrder === 'asc') {
|
|
26
26
|
// sort in ascending order by value
|
|
27
|
-
return data.
|
|
27
|
+
return data.toSorted((a, b)=>{
|
|
28
28
|
if (a.value === null) {
|
|
29
29
|
return 1;
|
|
30
30
|
}
|
|
@@ -38,7 +38,7 @@ export function sortSeriesData(data, sortOrder = DEFAULT_SORT) {
|
|
|
38
38
|
});
|
|
39
39
|
} else {
|
|
40
40
|
// sort in descending order by value
|
|
41
|
-
return data.
|
|
41
|
+
return data.toSorted((a, b)=>{
|
|
42
42
|
if (a.value === null) {
|
|
43
43
|
return -1;
|
|
44
44
|
}
|
|
@@ -52,5 +52,24 @@ export function sortSeriesData(data, sortOrder = DEFAULT_SORT) {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns the color of the first override whose regex matches the given name.
|
|
57
|
+
* Invalid regex patterns are skipped. Returns undefined if no override matches.
|
|
58
|
+
*/ export function getOverrideColor(name, overrides) {
|
|
59
|
+
if (!overrides) return undefined;
|
|
60
|
+
for (const override of overrides){
|
|
61
|
+
if (override.regex === '') {
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
try {
|
|
65
|
+
if (new RegExp(override.regex).test(name)) {
|
|
66
|
+
return override.color;
|
|
67
|
+
}
|
|
68
|
+
} catch {
|
|
69
|
+
// ignore invalid regex patterns
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
55
74
|
|
|
56
75
|
//# sourceMappingURL=utils.js.map
|
package/lib/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils.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 { SortOption } from '@perses-dev/components';\nimport { DEFAULT_SORT } from './bar-chart-model';\nimport { BarChartData } from './BarChartBase';\n\nexport function calculatePercentages(data: BarChartData[]): Array<{ label: string; value: number }> {\n const sum = data.reduce((accumulator, { value }) => accumulator + (value ?? 0), 0);\n return data.map((seriesData) => {\n const percentage = ((seriesData.value ?? 0) / sum) * 100;\n return {\n ...seriesData,\n value: percentage,\n };\n });\n}\n\nexport function sortSeriesData(data: BarChartData[], sortOrder: SortOption = DEFAULT_SORT): BarChartData[] {\n if (sortOrder === 'asc') {\n // sort in ascending order by value\n return data.
|
|
1
|
+
{"version":3,"sources":["../../src/utils.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 type { SortOption } from '@perses-dev/components';\n\nimport type { ColorOverride } from './bar-chart-model';\nimport { DEFAULT_SORT } from './bar-chart-model';\nimport type { BarChartData } from './BarChartBase';\n\nexport function calculatePercentages(data: BarChartData[]): Array<{ label: string; value: number }> {\n const sum = data.reduce((accumulator, { value }) => accumulator + (value ?? 0), 0);\n return data.map((seriesData) => {\n const percentage = ((seriesData.value ?? 0) / sum) * 100;\n return {\n ...seriesData,\n value: percentage,\n };\n });\n}\n\nexport function sortSeriesData(data: BarChartData[], sortOrder: SortOption = DEFAULT_SORT): BarChartData[] {\n if (sortOrder === 'asc') {\n // sort in ascending order by value\n return data.toSorted((a, b) => {\n if (a.value === null) {\n return 1;\n }\n if (b.value === null) {\n return -1;\n }\n if (a.value === b.value) {\n return 0;\n }\n return a.value < b.value ? 1 : -1;\n });\n } else {\n // sort in descending order by value\n return data.toSorted((a, b) => {\n if (a.value === null) {\n return -1;\n }\n if (b.value === null) {\n return 1;\n }\n if (a.value === b.value) {\n return 0;\n }\n return a.value < b.value ? -1 : 1;\n });\n }\n}\n\n/**\n * Returns the color of the first override whose regex matches the given name.\n * Invalid regex patterns are skipped. Returns undefined if no override matches.\n */\nexport function getOverrideColor(name: string, overrides?: ColorOverride[]): string | undefined {\n if (!overrides) return undefined;\n for (const override of overrides) {\n if (override.regex === '') {\n continue;\n }\n try {\n if (new RegExp(override.regex).test(name)) {\n return override.color;\n }\n } catch {\n // ignore invalid regex patterns\n }\n }\n return undefined;\n}\n"],"names":["DEFAULT_SORT","calculatePercentages","data","sum","reduce","accumulator","value","map","seriesData","percentage","sortSeriesData","sortOrder","toSorted","a","b","getOverrideColor","name","overrides","undefined","override","regex","RegExp","test","color"],"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;AAKjC,SAASA,YAAY,QAAQ,uBAAoB;AAGjD,OAAO,SAASC,qBAAqBC,IAAoB;IACvD,MAAMC,MAAMD,KAAKE,MAAM,CAAC,CAACC,aAAa,EAAEC,KAAK,EAAE,GAAKD,cAAeC,CAAAA,SAAS,CAAA,GAAI;IAChF,OAAOJ,KAAKK,GAAG,CAAC,CAACC;QACf,MAAMC,aAAa,AAAED,CAAAA,WAAWF,KAAK,IAAI,CAAA,IAAKH,MAAO;QACrD,OAAO;YACL,GAAGK,UAAU;YACbF,OAAOG;QACT;IACF;AACF;AAEA,OAAO,SAASC,eAAeR,IAAoB,EAAES,YAAwBX,YAAY;IACvF,IAAIW,cAAc,OAAO;QACvB,mCAAmC;QACnC,OAAOT,KAAKU,QAAQ,CAAC,CAACC,GAAGC;YACvB,IAAID,EAAEP,KAAK,KAAK,MAAM;gBACpB,OAAO;YACT;YACA,IAAIQ,EAAER,KAAK,KAAK,MAAM;gBACpB,OAAO,CAAC;YACV;YACA,IAAIO,EAAEP,KAAK,KAAKQ,EAAER,KAAK,EAAE;gBACvB,OAAO;YACT;YACA,OAAOO,EAAEP,KAAK,GAAGQ,EAAER,KAAK,GAAG,IAAI,CAAC;QAClC;IACF,OAAO;QACL,oCAAoC;QACpC,OAAOJ,KAAKU,QAAQ,CAAC,CAACC,GAAGC;YACvB,IAAID,EAAEP,KAAK,KAAK,MAAM;gBACpB,OAAO,CAAC;YACV;YACA,IAAIQ,EAAER,KAAK,KAAK,MAAM;gBACpB,OAAO;YACT;YACA,IAAIO,EAAEP,KAAK,KAAKQ,EAAER,KAAK,EAAE;gBACvB,OAAO;YACT;YACA,OAAOO,EAAEP,KAAK,GAAGQ,EAAER,KAAK,GAAG,CAAC,IAAI;QAClC;IACF;AACF;AAEA;;;CAGC,GACD,OAAO,SAASS,iBAAiBC,IAAY,EAAEC,SAA2B;IACxE,IAAI,CAACA,WAAW,OAAOC;IACvB,KAAK,MAAMC,YAAYF,UAAW;QAChC,IAAIE,SAASC,KAAK,KAAK,IAAI;YACzB;QACF;QACA,IAAI;YACF,IAAI,IAAIC,OAAOF,SAASC,KAAK,EAAEE,IAAI,CAACN,OAAO;gBACzC,OAAOG,SAASI,KAAK;YACvB;QACF,EAAE,OAAM;QACN,gCAAgC;QAClC;IACF;IACA,OAAOL;AACT"}
|
package/mf-manifest.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "BarChart",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.
|
|
8
|
+
"buildVersion": "0.14.0-beta.2",
|
|
9
9
|
"buildName": "@perses-dev/bar-chart-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/BarChart.
|
|
12
|
+
"name": "__mf/js/BarChart.777a5fe9.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"zip": "",
|
|
20
20
|
"api": ""
|
|
21
21
|
},
|
|
22
|
-
"globalName": "
|
|
22
|
+
"globalName": "BarChart_0_14_0_beta_2",
|
|
23
23
|
"pluginVersion": "2.6.0",
|
|
24
|
-
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/BarChart/\"; }"
|
|
24
|
+
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/BarChart~0.14.0-beta.2/\"; }"
|
|
25
25
|
},
|
|
26
26
|
"shared": [
|
|
27
27
|
{
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"js": {
|
|
35
35
|
"async": [],
|
|
36
36
|
"sync": [
|
|
37
|
-
"__mf/js/async/274.
|
|
37
|
+
"__mf/js/async/274.becf0c4e.js"
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"css": {
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"js": {
|
|
55
55
|
"async": [],
|
|
56
56
|
"sync": [
|
|
57
|
-
"__mf/js/async/235.
|
|
58
|
-
"__mf/js/async/616.
|
|
59
|
-
"__mf/js/async/854.
|
|
57
|
+
"__mf/js/async/235.5bb676bf.js",
|
|
58
|
+
"__mf/js/async/616.6263efeb.js",
|
|
59
|
+
"__mf/js/async/854.49d186a1.js"
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
62
|
"css": {
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"js": {
|
|
77
77
|
"async": [],
|
|
78
78
|
"sync": [
|
|
79
|
-
"__mf/js/async/587.
|
|
80
|
-
"__mf/js/async/968.
|
|
79
|
+
"__mf/js/async/587.e4d2ed78.js",
|
|
80
|
+
"__mf/js/async/968.66f07975.js"
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
83
|
"css": {
|
|
@@ -90,20 +90,20 @@
|
|
|
90
90
|
{
|
|
91
91
|
"id": "BarChart:@perses-dev/components",
|
|
92
92
|
"name": "@perses-dev/components",
|
|
93
|
-
"version": "0.
|
|
93
|
+
"version": "0.55.0-beta.7",
|
|
94
94
|
"singleton": true,
|
|
95
|
-
"requiredVersion": "^0.
|
|
95
|
+
"requiredVersion": "^0.55.0-beta.7",
|
|
96
96
|
"assets": {
|
|
97
97
|
"js": {
|
|
98
98
|
"async": [],
|
|
99
99
|
"sync": [
|
|
100
|
-
"__mf/js/async/
|
|
100
|
+
"__mf/js/async/788.e72a42a8.js"
|
|
101
101
|
]
|
|
102
102
|
},
|
|
103
103
|
"css": {
|
|
104
104
|
"async": [],
|
|
105
105
|
"sync": [
|
|
106
|
-
"__mf/css/async/
|
|
106
|
+
"__mf/css/async/788.85c2cbf6.css"
|
|
107
107
|
]
|
|
108
108
|
}
|
|
109
109
|
},
|
|
@@ -112,14 +112,14 @@
|
|
|
112
112
|
{
|
|
113
113
|
"id": "BarChart:@perses-dev/plugin-system",
|
|
114
114
|
"name": "@perses-dev/plugin-system",
|
|
115
|
-
"version": "0.
|
|
115
|
+
"version": "0.55.0-beta.7",
|
|
116
116
|
"singleton": true,
|
|
117
|
-
"requiredVersion": "^0.
|
|
117
|
+
"requiredVersion": "^0.55.0-beta.7",
|
|
118
118
|
"assets": {
|
|
119
119
|
"js": {
|
|
120
120
|
"async": [],
|
|
121
121
|
"sync": [
|
|
122
|
-
"__mf/js/async/
|
|
122
|
+
"__mf/js/async/407.f9cff9c5.js"
|
|
123
123
|
]
|
|
124
124
|
},
|
|
125
125
|
"css": {
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"js": {
|
|
140
140
|
"async": [],
|
|
141
141
|
"sync": [
|
|
142
|
-
"__mf/js/async/192.
|
|
142
|
+
"__mf/js/async/192.e523747d.js"
|
|
143
143
|
]
|
|
144
144
|
},
|
|
145
145
|
"css": {
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"js": {
|
|
160
160
|
"async": [],
|
|
161
161
|
"sync": [
|
|
162
|
-
"__mf/js/async/873.
|
|
162
|
+
"__mf/js/async/873.9b3f6f36.js"
|
|
163
163
|
]
|
|
164
164
|
},
|
|
165
165
|
"css": {
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"js": {
|
|
180
180
|
"async": [],
|
|
181
181
|
"sync": [
|
|
182
|
-
"__mf/js/async/963.
|
|
182
|
+
"__mf/js/async/963.36fb71d2.js"
|
|
183
183
|
]
|
|
184
184
|
},
|
|
185
185
|
"css": {
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
"js": {
|
|
200
200
|
"async": [],
|
|
201
201
|
"sync": [
|
|
202
|
-
"__mf/js/async/392.
|
|
202
|
+
"__mf/js/async/392.ce5748af.js"
|
|
203
203
|
]
|
|
204
204
|
},
|
|
205
205
|
"css": {
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
"js": {
|
|
220
220
|
"async": [],
|
|
221
221
|
"sync": [
|
|
222
|
-
"__mf/js/async/496.
|
|
222
|
+
"__mf/js/async/496.46cf1305.js"
|
|
223
223
|
]
|
|
224
224
|
},
|
|
225
225
|
"css": {
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"js": {
|
|
240
240
|
"async": [],
|
|
241
241
|
"sync": [
|
|
242
|
-
"__mf/js/async/470.
|
|
242
|
+
"__mf/js/async/470.6bd33fa1.js"
|
|
243
243
|
]
|
|
244
244
|
},
|
|
245
245
|
"css": {
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
"js": {
|
|
260
260
|
"async": [],
|
|
261
261
|
"sync": [
|
|
262
|
-
"__mf/js/async/121.
|
|
262
|
+
"__mf/js/async/121.0dfa8a56.js"
|
|
263
263
|
]
|
|
264
264
|
},
|
|
265
265
|
"css": {
|
|
@@ -279,8 +279,8 @@
|
|
|
279
279
|
"js": {
|
|
280
280
|
"async": [],
|
|
281
281
|
"sync": [
|
|
282
|
-
"__mf/js/async/458.
|
|
283
|
-
"__mf/js/async/77.
|
|
282
|
+
"__mf/js/async/458.dd052408.js",
|
|
283
|
+
"__mf/js/async/77.d762eaa0.js"
|
|
284
284
|
]
|
|
285
285
|
},
|
|
286
286
|
"css": {
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
"js": {
|
|
301
301
|
"async": [],
|
|
302
302
|
"sync": [
|
|
303
|
-
"__mf/js/async/978.
|
|
303
|
+
"__mf/js/async/978.d27fe59a.js"
|
|
304
304
|
]
|
|
305
305
|
},
|
|
306
306
|
"css": {
|
|
@@ -319,27 +319,26 @@
|
|
|
319
319
|
"assets": {
|
|
320
320
|
"js": {
|
|
321
321
|
"sync": [
|
|
322
|
-
"__mf/js/async/934.
|
|
323
|
-
"__mf/js/async/823.
|
|
324
|
-
"__mf/js/async/
|
|
325
|
-
"__mf/js/async/603.
|
|
326
|
-
"__mf/js/async/977.
|
|
327
|
-
"__mf/js/async/__federation_expose_BarChart.
|
|
322
|
+
"__mf/js/async/934.04010fe7.js",
|
|
323
|
+
"__mf/js/async/823.2a2b516e.js",
|
|
324
|
+
"__mf/js/async/720.e068b3e4.js",
|
|
325
|
+
"__mf/js/async/603.6e4d4c2a.js",
|
|
326
|
+
"__mf/js/async/977.b3f21ee5.js",
|
|
327
|
+
"__mf/js/async/__federation_expose_BarChart.07c26459.js"
|
|
328
328
|
],
|
|
329
329
|
"async": [
|
|
330
|
-
"__mf/js/async/lib-router.
|
|
331
|
-
"__mf/js/async/
|
|
332
|
-
"__mf/js/async/356.
|
|
333
|
-
"__mf/js/async/
|
|
334
|
-
"__mf/js/async/
|
|
335
|
-
"__mf/js/async/
|
|
336
|
-
"__mf/js/async/435.7b8a2474.js"
|
|
330
|
+
"__mf/js/async/lib-router.a4768e7d.js",
|
|
331
|
+
"__mf/js/async/138.a47c7fc8.js",
|
|
332
|
+
"__mf/js/async/356.4a2d6a5d.js",
|
|
333
|
+
"__mf/js/async/588.ca7f0375.js",
|
|
334
|
+
"__mf/js/async/71.5f1bab20.js",
|
|
335
|
+
"__mf/js/async/435.4802f945.js"
|
|
337
336
|
]
|
|
338
337
|
},
|
|
339
338
|
"css": {
|
|
340
339
|
"sync": [],
|
|
341
340
|
"async": [
|
|
342
|
-
"__mf/css/async/
|
|
341
|
+
"__mf/css/async/788.85c2cbf6.css"
|
|
343
342
|
]
|
|
344
343
|
}
|
|
345
344
|
},
|
package/mf-stats.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "BarChart",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.
|
|
8
|
+
"buildVersion": "0.14.0-beta.2",
|
|
9
9
|
"buildName": "@perses-dev/bar-chart-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/BarChart.
|
|
12
|
+
"name": "__mf/js/BarChart.777a5fe9.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"zip": "",
|
|
20
20
|
"api": ""
|
|
21
21
|
},
|
|
22
|
-
"globalName": "
|
|
22
|
+
"globalName": "BarChart_0_14_0_beta_2",
|
|
23
23
|
"pluginVersion": "2.6.0",
|
|
24
|
-
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/BarChart/\"; }"
|
|
24
|
+
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/BarChart~0.14.0-beta.2/\"; }"
|
|
25
25
|
},
|
|
26
26
|
"shared": [
|
|
27
27
|
{
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"js": {
|
|
37
37
|
"async": [],
|
|
38
38
|
"sync": [
|
|
39
|
-
"__mf/js/async/274.
|
|
39
|
+
"__mf/js/async/274.becf0c4e.js"
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"css": {
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"js": {
|
|
61
61
|
"async": [],
|
|
62
62
|
"sync": [
|
|
63
|
-
"__mf/js/async/235.
|
|
64
|
-
"__mf/js/async/616.
|
|
65
|
-
"__mf/js/async/854.
|
|
63
|
+
"__mf/js/async/235.5bb676bf.js",
|
|
64
|
+
"__mf/js/async/616.6263efeb.js",
|
|
65
|
+
"__mf/js/async/854.49d186a1.js"
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"css": {
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"js": {
|
|
87
87
|
"async": [],
|
|
88
88
|
"sync": [
|
|
89
|
-
"__mf/js/async/587.
|
|
90
|
-
"__mf/js/async/968.
|
|
89
|
+
"__mf/js/async/587.e4d2ed78.js",
|
|
90
|
+
"__mf/js/async/968.66f07975.js"
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
93
|
"css": {
|
|
@@ -101,23 +101,23 @@
|
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"singleton": true,
|
|
104
|
-
"requiredVersion": "^0.
|
|
104
|
+
"requiredVersion": "^0.55.0-beta.7",
|
|
105
105
|
"shareScope": "default",
|
|
106
106
|
"name": "@perses-dev/components",
|
|
107
|
-
"version": "0.
|
|
107
|
+
"version": "0.55.0-beta.7",
|
|
108
108
|
"eager": false,
|
|
109
109
|
"id": "BarChart:@perses-dev/components",
|
|
110
110
|
"assets": {
|
|
111
111
|
"js": {
|
|
112
112
|
"async": [],
|
|
113
113
|
"sync": [
|
|
114
|
-
"__mf/js/async/
|
|
114
|
+
"__mf/js/async/788.e72a42a8.js"
|
|
115
115
|
]
|
|
116
116
|
},
|
|
117
117
|
"css": {
|
|
118
118
|
"async": [],
|
|
119
119
|
"sync": [
|
|
120
|
-
"__mf/css/async/
|
|
120
|
+
"__mf/css/async/788.85c2cbf6.css"
|
|
121
121
|
]
|
|
122
122
|
}
|
|
123
123
|
},
|
|
@@ -129,17 +129,17 @@
|
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"singleton": true,
|
|
132
|
-
"requiredVersion": "^0.
|
|
132
|
+
"requiredVersion": "^0.55.0-beta.7",
|
|
133
133
|
"shareScope": "default",
|
|
134
134
|
"name": "@perses-dev/plugin-system",
|
|
135
|
-
"version": "0.
|
|
135
|
+
"version": "0.55.0-beta.7",
|
|
136
136
|
"eager": false,
|
|
137
137
|
"id": "BarChart:@perses-dev/plugin-system",
|
|
138
138
|
"assets": {
|
|
139
139
|
"js": {
|
|
140
140
|
"async": [],
|
|
141
141
|
"sync": [
|
|
142
|
-
"__mf/js/async/
|
|
142
|
+
"__mf/js/async/407.f9cff9c5.js"
|
|
143
143
|
]
|
|
144
144
|
},
|
|
145
145
|
"css": {
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"js": {
|
|
166
166
|
"async": [],
|
|
167
167
|
"sync": [
|
|
168
|
-
"__mf/js/async/192.
|
|
168
|
+
"__mf/js/async/192.e523747d.js"
|
|
169
169
|
]
|
|
170
170
|
},
|
|
171
171
|
"css": {
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"js": {
|
|
190
190
|
"async": [],
|
|
191
191
|
"sync": [
|
|
192
|
-
"__mf/js/async/873.
|
|
192
|
+
"__mf/js/async/873.9b3f6f36.js"
|
|
193
193
|
]
|
|
194
194
|
},
|
|
195
195
|
"css": {
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
"js": {
|
|
214
214
|
"async": [],
|
|
215
215
|
"sync": [
|
|
216
|
-
"__mf/js/async/963.
|
|
216
|
+
"__mf/js/async/963.36fb71d2.js"
|
|
217
217
|
]
|
|
218
218
|
},
|
|
219
219
|
"css": {
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"js": {
|
|
240
240
|
"async": [],
|
|
241
241
|
"sync": [
|
|
242
|
-
"__mf/js/async/392.
|
|
242
|
+
"__mf/js/async/392.ce5748af.js"
|
|
243
243
|
]
|
|
244
244
|
},
|
|
245
245
|
"css": {
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
"js": {
|
|
264
264
|
"async": [],
|
|
265
265
|
"sync": [
|
|
266
|
-
"__mf/js/async/496.
|
|
266
|
+
"__mf/js/async/496.46cf1305.js"
|
|
267
267
|
]
|
|
268
268
|
},
|
|
269
269
|
"css": {
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
"js": {
|
|
288
288
|
"async": [],
|
|
289
289
|
"sync": [
|
|
290
|
-
"__mf/js/async/470.
|
|
290
|
+
"__mf/js/async/470.6bd33fa1.js"
|
|
291
291
|
]
|
|
292
292
|
},
|
|
293
293
|
"css": {
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
"js": {
|
|
312
312
|
"async": [],
|
|
313
313
|
"sync": [
|
|
314
|
-
"__mf/js/async/121.
|
|
314
|
+
"__mf/js/async/121.0dfa8a56.js"
|
|
315
315
|
]
|
|
316
316
|
},
|
|
317
317
|
"css": {
|
|
@@ -337,8 +337,8 @@
|
|
|
337
337
|
"js": {
|
|
338
338
|
"async": [],
|
|
339
339
|
"sync": [
|
|
340
|
-
"__mf/js/async/458.
|
|
341
|
-
"__mf/js/async/77.
|
|
340
|
+
"__mf/js/async/458.dd052408.js",
|
|
341
|
+
"__mf/js/async/77.d762eaa0.js"
|
|
342
342
|
]
|
|
343
343
|
},
|
|
344
344
|
"css": {
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
"js": {
|
|
363
363
|
"async": [],
|
|
364
364
|
"sync": [
|
|
365
|
-
"__mf/js/async/978.
|
|
365
|
+
"__mf/js/async/978.d27fe59a.js"
|
|
366
366
|
]
|
|
367
367
|
},
|
|
368
368
|
"css": {
|
|
@@ -391,27 +391,26 @@
|
|
|
391
391
|
"assets": {
|
|
392
392
|
"js": {
|
|
393
393
|
"sync": [
|
|
394
|
-
"__mf/js/async/934.
|
|
395
|
-
"__mf/js/async/823.
|
|
396
|
-
"__mf/js/async/
|
|
397
|
-
"__mf/js/async/603.
|
|
398
|
-
"__mf/js/async/977.
|
|
399
|
-
"__mf/js/async/__federation_expose_BarChart.
|
|
394
|
+
"__mf/js/async/934.04010fe7.js",
|
|
395
|
+
"__mf/js/async/823.2a2b516e.js",
|
|
396
|
+
"__mf/js/async/720.e068b3e4.js",
|
|
397
|
+
"__mf/js/async/603.6e4d4c2a.js",
|
|
398
|
+
"__mf/js/async/977.b3f21ee5.js",
|
|
399
|
+
"__mf/js/async/__federation_expose_BarChart.07c26459.js"
|
|
400
400
|
],
|
|
401
401
|
"async": [
|
|
402
|
-
"__mf/js/async/lib-router.
|
|
403
|
-
"__mf/js/async/
|
|
404
|
-
"__mf/js/async/356.
|
|
405
|
-
"__mf/js/async/
|
|
406
|
-
"__mf/js/async/
|
|
407
|
-
"__mf/js/async/
|
|
408
|
-
"__mf/js/async/435.7b8a2474.js"
|
|
402
|
+
"__mf/js/async/lib-router.a4768e7d.js",
|
|
403
|
+
"__mf/js/async/138.a47c7fc8.js",
|
|
404
|
+
"__mf/js/async/356.4a2d6a5d.js",
|
|
405
|
+
"__mf/js/async/588.ca7f0375.js",
|
|
406
|
+
"__mf/js/async/71.5f1bab20.js",
|
|
407
|
+
"__mf/js/async/435.4802f945.js"
|
|
409
408
|
]
|
|
410
409
|
},
|
|
411
410
|
"css": {
|
|
412
411
|
"sync": [],
|
|
413
412
|
"async": [
|
|
414
|
-
"__mf/css/async/
|
|
413
|
+
"__mf/css/async/788.85c2cbf6.css"
|
|
415
414
|
]
|
|
416
415
|
}
|
|
417
416
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perses-dev/bar-chart-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0-beta.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://github.com/perses/plugins/blob/main/README.md",
|
|
6
6
|
"repository": {
|
|
@@ -14,29 +14,29 @@
|
|
|
14
14
|
"dev": "rsbuild dev",
|
|
15
15
|
"build": "npm run build-mf && concurrently \"npm:build:*\"",
|
|
16
16
|
"build-mf": "rsbuild build",
|
|
17
|
-
"build:cjs": "swc ./src -d dist/lib/cjs --strip-leading-paths --config-file ../.cjs.swcrc",
|
|
18
17
|
"build:esm": "swc ./src -d dist/lib --strip-leading-paths --config-file ../.swcrc",
|
|
19
18
|
"build:types": "tsc --project tsconfig.build.json",
|
|
20
|
-
"lint": "
|
|
21
|
-
"test": "cross-env LC_ALL=C TZ=UTC
|
|
19
|
+
"lint": "oxlint src",
|
|
20
|
+
"test": "cross-env LC_ALL=C TZ=UTC vitest run",
|
|
22
21
|
"type-check": "tsc --noEmit"
|
|
23
22
|
},
|
|
24
|
-
"
|
|
23
|
+
"type": "module",
|
|
24
|
+
"main": "lib/index.js",
|
|
25
25
|
"module": "lib/index.js",
|
|
26
26
|
"types": "lib/index.d.ts",
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@emotion/react": "^11.7.1",
|
|
29
29
|
"@emotion/styled": "^11.6.0",
|
|
30
30
|
"@hookform/resolvers": "^3.2.0",
|
|
31
|
-
"@perses-dev/components": "^0.
|
|
32
|
-
"@perses-dev/plugin-system": "^0.
|
|
33
|
-
"@perses-dev/spec": "^0.
|
|
31
|
+
"@perses-dev/components": "^0.55.0-beta.7",
|
|
32
|
+
"@perses-dev/plugin-system": "^0.55.0-beta.7",
|
|
33
|
+
"@perses-dev/spec": "^0.3.0-beta.5",
|
|
34
34
|
"date-fns": "^4.1.0",
|
|
35
35
|
"date-fns-tz": "^3.2.0",
|
|
36
36
|
"echarts": "5.5.0",
|
|
37
37
|
"lodash": "^4.17.21",
|
|
38
|
-
"react": "^
|
|
39
|
-
"react-dom": "^
|
|
38
|
+
"react": "^18.3.0",
|
|
39
|
+
"react-dom": "^18.3.0",
|
|
40
40
|
"use-resize-observer": "^9.0.0",
|
|
41
41
|
"immer": "^10.1.1"
|
|
42
42
|
},
|