@perses-dev/stat-chart-plugin 0.14.0 → 0.15.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/StatChart.bb7e0ece.js +7 -0
- package/__mf/js/async/121.f7e8e4a7.js +2 -0
- package/__mf/js/async/192.9808d269.js +1 -0
- package/__mf/js/async/2.a13c5048.js +1 -0
- package/__mf/js/async/235.7bcd2051.js +1 -0
- package/__mf/js/async/274.8d8be5c9.js +2 -0
- package/__mf/js/async/345.f2a95d9c.js +29 -0
- package/__mf/js/async/356.defde8e9.js +1 -0
- package/__mf/js/async/392.cb707a93.js +2 -0
- package/__mf/js/async/407.07aba336.js +4 -0
- package/__mf/js/async/407.07aba336.js.LICENSE.txt +9 -0
- package/__mf/js/async/450.3a0b1ae3.js +1 -0
- package/__mf/js/async/465.0b7086ef.js +2 -0
- package/__mf/js/async/470.26952ddf.js +2 -0
- package/__mf/js/async/496.b9973ffe.js +1 -0
- package/__mf/js/async/570.36d078cd.js +2 -0
- package/__mf/js/async/587.528aba30.js +1 -0
- package/__mf/js/async/588.29eb8c38.js +1 -0
- package/__mf/js/async/616.42a14f39.js +1 -0
- package/__mf/js/async/71.7f97cf3a.js +1 -0
- package/__mf/js/async/721.9ed0b42d.js +1 -0
- package/__mf/js/async/77.048fc50c.js +1 -0
- package/__mf/js/async/788.d3786b94.js +43 -0
- package/__mf/js/async/{580.4076ee7b.js.LICENSE.txt → 788.d3786b94.js.LICENSE.txt} +41 -1
- package/__mf/js/async/{866.cb6cbc7a.js → 866.180c7c1d.js} +6 -6
- package/__mf/js/async/873.d6bb2952.js +1 -0
- package/__mf/js/async/941.bf04fa66.js +2 -0
- package/__mf/js/async/968.0754c6b9.js +1 -0
- package/__mf/js/async/978.6043d74f.js +1 -0
- package/__mf/js/async/__federation_expose_StatChart.ea6bcd68.js +1 -0
- package/__mf/js/async/lib-router.a0b2cd64.js +2 -0
- package/__mf/js/{main.fe3736c5.js → main.ca1383be.js} +2 -2
- package/lib/StatChart.d.ts +3 -3
- package/lib/StatChart.d.ts.map +1 -1
- package/lib/StatChart.js +4 -4
- package/lib/StatChart.js.map +1 -1
- package/lib/StatChartBase.d.ts +4 -4
- package/lib/StatChartBase.d.ts.map +1 -1
- package/lib/StatChartBase.js +12 -12
- package/lib/StatChartBase.js.map +1 -1
- package/lib/StatChartOptionsEditorSettings.d.ts +2 -2
- package/lib/StatChartOptionsEditorSettings.d.ts.map +1 -1
- package/lib/StatChartOptionsEditorSettings.js +8 -8
- package/lib/StatChartOptionsEditorSettings.js.map +1 -1
- package/lib/StatChartPanel.d.ts +4 -4
- package/lib/StatChartPanel.d.ts.map +1 -1
- package/lib/StatChartPanel.js +14 -9
- package/lib/StatChartPanel.js.map +1 -1
- package/lib/StatChartValueMappingEditor.d.ts +3 -3
- package/lib/StatChartValueMappingEditor.d.ts.map +1 -1
- package/lib/StatChartValueMappingEditor.js +1 -1
- package/lib/StatChartValueMappingEditor.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 +7 -7
- 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/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-font-size.d.ts +1 -1
- package/lib/utils/calculate-font-size.d.ts.map +1 -1
- package/lib/utils/calculate-font-size.js +2 -2
- package/lib/utils/calculate-font-size.js.map +1 -1
- package/lib/utils/calculate-value.d.ts +3 -2
- 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/data-transform.d.ts +3 -3
- package/lib/utils/data-transform.d.ts.map +1 -1
- package/lib/utils/data-transform.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 +2 -2
- 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 +36 -35
- package/mf-stats.json +36 -35
- package/package.json +10 -10
- package/__mf/js/StatChart.19a287b0.js +0 -7
- package/__mf/js/async/121.a33651ce.js +0 -2
- package/__mf/js/async/177.4dddf131.js +0 -1
- package/__mf/js/async/187.d7e6b2db.js +0 -7
- package/__mf/js/async/187.d7e6b2db.js.LICENSE.txt +0 -39
- package/__mf/js/async/192.0b251884.js +0 -1
- package/__mf/js/async/2.e8bdc16f.js +0 -1
- package/__mf/js/async/235.f388b6fd.js +0 -1
- package/__mf/js/async/274.b762faf5.js +0 -2
- package/__mf/js/async/356.3f7b970d.js +0 -1
- package/__mf/js/async/392.70b1a3c5.js +0 -2
- package/__mf/js/async/450.bdfbd76f.js +0 -1
- package/__mf/js/async/465.7c60371f.js +0 -2
- package/__mf/js/async/470.cc046da0.js +0 -2
- package/__mf/js/async/546.f27d00a1.js +0 -24
- package/__mf/js/async/546.f27d00a1.js.LICENSE.txt +0 -19
- package/__mf/js/async/558.e8f8691f.js +0 -1
- package/__mf/js/async/570.264704d1.js +0 -2
- package/__mf/js/async/580.4076ee7b.js +0 -66
- package/__mf/js/async/587.7d22fb82.js +0 -1
- package/__mf/js/async/588.c00e3759.js +0 -1
- package/__mf/js/async/616.22b37336.js +0 -1
- package/__mf/js/async/71.1f2caf38.js +0 -1
- package/__mf/js/async/721.5c1c6916.js +0 -1
- package/__mf/js/async/873.13ff7de6.js +0 -1
- package/__mf/js/async/941.230549f5.js +0 -2
- package/__mf/js/async/968.bfd3594f.js +0 -1
- package/__mf/js/async/978.98475f4b.js +0 -1
- package/__mf/js/async/__federation_expose_StatChart.f4a2f598.js +0 -1
- package/__mf/js/async/lib-router.6c58ccc7.js +0 -2
- package/lib/cjs/StatChart.js +0 -43
- package/lib/cjs/StatChartBase.js +0 -263
- package/lib/cjs/StatChartOptionsEditorSettings.js +0 -171
- package/lib/cjs/StatChartPanel.js +0 -130
- package/lib/cjs/StatChartValueMappingEditor.js +0 -36
- 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 -42
- package/lib/cjs/setup-tests.js +0 -19
- package/lib/cjs/stat-chart-model.js +0 -74
- package/lib/cjs/utils/calculate-font-size.js +0 -55
- package/lib/cjs/utils/calculate-value.js +0 -30
- package/lib/cjs/utils/data-transform.js +0 -36
- package/lib/cjs/utils/format-stat-chart-value.js +0 -34
- package/lib/cjs/utils/get-color.js +0 -66
- /package/__mf/css/async/{187.85c2cbf6.css → 788.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{121.a33651ce.js.LICENSE.txt → 121.f7e8e4a7.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{274.b762faf5.js.LICENSE.txt → 274.8d8be5c9.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.70b1a3c5.js.LICENSE.txt → 392.cb707a93.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{465.7c60371f.js.LICENSE.txt → 465.0b7086ef.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{470.cc046da0.js.LICENSE.txt → 470.26952ddf.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{570.264704d1.js.LICENSE.txt → 570.36d078cd.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{866.cb6cbc7a.js.LICENSE.txt → 866.180c7c1d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.230549f5.js.LICENSE.txt → 941.bf04fa66.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.6c58ccc7.js.LICENSE.txt → lib-router.a0b2cd64.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculate-font-size.d.ts","sourceRoot":"","sources":["../../../src/utils/calculate-font-size.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"calculate-font-size.d.ts","sourceRoot":"","sources":["../../../src/utils/calculate-font-size.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,cAAc,CAAC;CACnC;AAcD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,UAAU,EACV,KAAK,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,gBAAgB,GACjB,EAAE,iBAAiB,GAAG,MAAM,CA0B5B"}
|
|
@@ -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 { useChartsTheme } from
|
|
13
|
+
import { useChartsTheme } from "@perses-dev/components";
|
|
14
14
|
let canvasContext;
|
|
15
15
|
function getGlobalCanvasContext() {
|
|
16
16
|
if (!canvasContext) {
|
|
@@ -31,7 +31,7 @@ function getGlobalCanvasContext() {
|
|
|
31
31
|
return Number(fontSizeOverride);
|
|
32
32
|
}
|
|
33
33
|
const textStyle = echartsTheme.textStyle;
|
|
34
|
-
const fontSize = Number(textStyle?.fontSize
|
|
34
|
+
const fontSize = Number(textStyle?.fontSize ?? 12);
|
|
35
35
|
const fontFamily = textStyle?.fontFamily ?? 'Lato';
|
|
36
36
|
// set the font on the canvas context
|
|
37
37
|
const fontStyle = `${fontWeight} ${fontSize}px ${fontFamily}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/calculate-font-size.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
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/calculate-font-size.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 { FontSizeOption } from '@perses-dev/components';\nimport { useChartsTheme } from '@perses-dev/components';\n\ninterface CalculateFontSize {\n text: string;\n fontWeight: number;\n width: number;\n height: number;\n lineHeight: number;\n maxSize?: number;\n fontSizeOverride?: FontSizeOption;\n}\n\nlet canvasContext: CanvasRenderingContext2D | null;\n\nfunction getGlobalCanvasContext(): CanvasRenderingContext2D {\n if (!canvasContext) {\n canvasContext = document.createElement('canvas').getContext('2d');\n if (canvasContext === null) {\n throw new Error('Canvas context is null.');\n }\n }\n return canvasContext;\n}\n\n/**\n * Find the optimal font size given available space\n */\nexport function useOptimalFontSize({\n text,\n fontWeight,\n width,\n height,\n lineHeight,\n maxSize,\n fontSizeOverride,\n}: CalculateFontSize): number {\n const ctx = getGlobalCanvasContext();\n const { echartsTheme } = useChartsTheme();\n\n // if user has selected a font size in the settings, use it instead of calculating the optimal size\n if (fontSizeOverride !== undefined) {\n return Number(fontSizeOverride);\n }\n\n const textStyle = echartsTheme.textStyle;\n const fontSize = Number(textStyle?.fontSize ?? 12);\n const fontFamily = textStyle?.fontFamily ?? 'Lato';\n\n // set the font on the canvas context\n const fontStyle = `${fontWeight} ${fontSize}px ${fontFamily}`;\n ctx.font = fontStyle;\n // measure the width of the text with the given font style\n const textMetrics: TextMetrics = ctx.measureText(text);\n\n // check how much bigger we can make the font while staying within the width and height\n const fontSizeBasedOnWidth = (width / textMetrics.width) * fontSize;\n const fontSizeBasedOnHeight = height / lineHeight;\n\n // return the smaller font size\n const finalFontSize = Math.min(fontSizeBasedOnHeight, fontSizeBasedOnWidth);\n return maxSize ? Math.min(finalFontSize, maxSize) : finalFontSize;\n}\n"],"names":["useChartsTheme","canvasContext","getGlobalCanvasContext","document","createElement","getContext","Error","useOptimalFontSize","text","fontWeight","width","height","lineHeight","maxSize","fontSizeOverride","ctx","echartsTheme","undefined","Number","textStyle","fontSize","fontFamily","fontStyle","font","textMetrics","measureText","fontSizeBasedOnWidth","fontSizeBasedOnHeight","finalFontSize","Math","min"],"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;AAGjC,SAASA,cAAc,QAAQ,yBAAyB;AAYxD,IAAIC;AAEJ,SAASC;IACP,IAAI,CAACD,eAAe;QAClBA,gBAAgBE,SAASC,aAAa,CAAC,UAAUC,UAAU,CAAC;QAC5D,IAAIJ,kBAAkB,MAAM;YAC1B,MAAM,IAAIK,MAAM;QAClB;IACF;IACA,OAAOL;AACT;AAEA;;CAEC,GACD,OAAO,SAASM,mBAAmB,EACjCC,IAAI,EACJC,UAAU,EACVC,KAAK,EACLC,MAAM,EACNC,UAAU,EACVC,OAAO,EACPC,gBAAgB,EACE;IAClB,MAAMC,MAAMb;IACZ,MAAM,EAAEc,YAAY,EAAE,GAAGhB;IAEzB,mGAAmG;IACnG,IAAIc,qBAAqBG,WAAW;QAClC,OAAOC,OAAOJ;IAChB;IAEA,MAAMK,YAAYH,aAAaG,SAAS;IACxC,MAAMC,WAAWF,OAAOC,WAAWC,YAAY;IAC/C,MAAMC,aAAaF,WAAWE,cAAc;IAE5C,qCAAqC;IACrC,MAAMC,YAAY,GAAGb,WAAW,CAAC,EAAEW,SAAS,GAAG,EAAEC,YAAY;IAC7DN,IAAIQ,IAAI,GAAGD;IACX,0DAA0D;IAC1D,MAAME,cAA2BT,IAAIU,WAAW,CAACjB;IAEjD,uFAAuF;IACvF,MAAMkB,uBAAuB,AAAChB,QAAQc,YAAYd,KAAK,GAAIU;IAC3D,MAAMO,wBAAwBhB,SAASC;IAEvC,+BAA+B;IAC/B,MAAMgB,gBAAgBC,KAAKC,GAAG,CAACH,uBAAuBD;IACtD,OAAOb,UAAUgB,KAAKC,GAAG,CAACF,eAAef,WAAWe;AACtD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { CalculationType } from '@perses-dev/plugin-system';
|
|
2
|
+
import { CalculationsMap } from '@perses-dev/plugin-system';
|
|
3
|
+
import type { TimeSeries } from '@perses-dev/spec';
|
|
3
4
|
export declare const calculateValue: (calculation: CalculationType, seriesData: TimeSeries) => ReturnType<(typeof CalculationsMap)[CalculationType]>;
|
|
4
5
|
//# 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,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"calculate-value.d.ts","sourceRoot":"","sources":["../../../src/utils/calculate-value.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAuB,MAAM,2BAA2B,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,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
|
|
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,
|
|
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 type { CalculationType } from '@perses-dev/plugin-system';\nimport { CalculationsMap, DEFAULT_CALCULATION } from '@perses-dev/plugin-system';\nimport type { 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;AAGjC,SAASA,eAAe,EAAEC,mBAAmB,QAAQ,4BAA4B;AAGjF,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,5 +1,5 @@
|
|
|
1
|
-
import { PersesChartsTheme } from '@perses-dev/components';
|
|
2
|
-
import { LineSeriesOption } from 'echarts/charts';
|
|
3
|
-
import { StatChartSparklineOptions } from '../stat-chart-model';
|
|
1
|
+
import type { PersesChartsTheme } from '@perses-dev/components';
|
|
2
|
+
import type { LineSeriesOption } from 'echarts/charts';
|
|
3
|
+
import type { StatChartSparklineOptions } from '../stat-chart-model';
|
|
4
4
|
export declare function convertSparkline(chartsTheme: PersesChartsTheme, color: string, sparkline?: StatChartSparklineOptions): LineSeriesOption | undefined;
|
|
5
5
|
//# sourceMappingURL=data-transform.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-transform.d.ts","sourceRoot":"","sources":["../../../src/utils/data-transform.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"data-transform.d.ts","sourceRoot":"","sources":["../../../src/utils/data-transform.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAErE,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,iBAAiB,EAC9B,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,yBAAyB,GACpC,gBAAgB,GAAG,SAAS,CAc9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/data-transform.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 { PersesChartsTheme } from '@perses-dev/components';\nimport { LineSeriesOption } from 'echarts/charts';\nimport { StatChartSparklineOptions } from '../stat-chart-model';\n\nexport function convertSparkline(\n chartsTheme: PersesChartsTheme,\n color: string,\n sparkline?: StatChartSparklineOptions
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/data-transform.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 { PersesChartsTheme } from '@perses-dev/components';\nimport type { LineSeriesOption } from 'echarts/charts';\n\nimport type { StatChartSparklineOptions } from '../stat-chart-model';\n\nexport function convertSparkline(\n chartsTheme: PersesChartsTheme,\n color: string,\n sparkline?: StatChartSparklineOptions,\n): LineSeriesOption | undefined {\n if (sparkline === undefined) return;\n\n return {\n lineStyle: {\n width: sparkline.width ?? chartsTheme.sparkline.width,\n color,\n opacity: 1,\n },\n areaStyle: {\n color,\n opacity: 0.4,\n },\n };\n}\n"],"names":["convertSparkline","chartsTheme","color","sparkline","undefined","lineStyle","width","opacity","areaStyle"],"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;AAOjC,OAAO,SAASA,iBACdC,WAA8B,EAC9BC,KAAa,EACbC,SAAqC;IAErC,IAAIA,cAAcC,WAAW;IAE7B,OAAO;QACLC,WAAW;YACTC,OAAOH,UAAUG,KAAK,IAAIL,YAAYE,SAAS,CAACG,KAAK;YACrDJ;YACAK,SAAS;QACX;QACAC,WAAW;YACTN;YACAK,SAAS;QACX;IACF;AACF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormatOptions } from '@perses-dev/components';
|
|
1
|
+
import type { 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,
|
|
1
|
+
{"version":3,"file":"format-stat-chart-value.d.ts","sourceRoot":"","sources":["../../../src/utils/format-stat-chart-value.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG5D,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
|
|
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
|
|
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 type { FormatOptions } from '@perses-dev/components';\nimport { 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;AAGjC,SAASA,WAAW,QAAQ,yBAAyB;AAErD,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"}
|
package/lib/utils/get-color.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PersesChartsTheme } from '@perses-dev/components';
|
|
2
|
-
import { StatChartOptions } from '../stat-chart-model';
|
|
1
|
+
import type { PersesChartsTheme } from '@perses-dev/components';
|
|
2
|
+
import type { StatChartOptions } from '../stat-chart-model';
|
|
3
3
|
type StatChartValue = number | string | null;
|
|
4
4
|
export declare function getStatChartColor(chartsTheme: PersesChartsTheme, spec?: StatChartOptions, value?: StatChartValue): string;
|
|
5
5
|
export {};
|
|
@@ -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,KAAK,EAAE,iBAAiB,EAAkC,MAAM,wBAAwB,CAAC;AAGhG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,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
|
|
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 type { PersesChartsTheme, ThresholdOptions, ValueMapping } from '@perses-dev/components';\nimport { applyValueMapping } from '@perses-dev/components';\n\nimport type { 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;AAGjC,SAASA,iBAAiB,QAAQ,yBAAyB;AAM3D,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.15.0-beta.2",
|
|
9
9
|
"buildName": "@perses-dev/stat-chart-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/StatChart.
|
|
12
|
+
"name": "__mf/js/StatChart.bb7e0ece.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": "StatChart_0_15_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/StatChart/\"; }"
|
|
24
|
+
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/StatChart~0.15.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.8d8be5c9.js"
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"css": {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"js": {
|
|
55
55
|
"async": [],
|
|
56
56
|
"sync": [
|
|
57
|
-
"__mf/js/async/235.
|
|
58
|
-
"__mf/js/async/616.
|
|
57
|
+
"__mf/js/async/235.7bcd2051.js",
|
|
58
|
+
"__mf/js/async/616.42a14f39.js"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
61
|
"css": {
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"js": {
|
|
76
76
|
"async": [],
|
|
77
77
|
"sync": [
|
|
78
|
-
"__mf/js/async/587.
|
|
79
|
-
"__mf/js/async/968.
|
|
78
|
+
"__mf/js/async/587.528aba30.js",
|
|
79
|
+
"__mf/js/async/968.0754c6b9.js"
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
82
|
"css": {
|
|
@@ -89,20 +89,20 @@
|
|
|
89
89
|
{
|
|
90
90
|
"id": "StatChart:@perses-dev/components",
|
|
91
91
|
"name": "@perses-dev/components",
|
|
92
|
-
"version": "0.
|
|
92
|
+
"version": "0.55.0-beta.7",
|
|
93
93
|
"singleton": true,
|
|
94
|
-
"requiredVersion": "^0.
|
|
94
|
+
"requiredVersion": "^0.55.0-beta.7",
|
|
95
95
|
"assets": {
|
|
96
96
|
"js": {
|
|
97
97
|
"async": [],
|
|
98
98
|
"sync": [
|
|
99
|
-
"__mf/js/async/
|
|
99
|
+
"__mf/js/async/788.d3786b94.js"
|
|
100
100
|
]
|
|
101
101
|
},
|
|
102
102
|
"css": {
|
|
103
103
|
"async": [],
|
|
104
104
|
"sync": [
|
|
105
|
-
"__mf/css/async/
|
|
105
|
+
"__mf/css/async/788.85c2cbf6.css"
|
|
106
106
|
]
|
|
107
107
|
}
|
|
108
108
|
},
|
|
@@ -111,14 +111,14 @@
|
|
|
111
111
|
{
|
|
112
112
|
"id": "StatChart:@perses-dev/plugin-system",
|
|
113
113
|
"name": "@perses-dev/plugin-system",
|
|
114
|
-
"version": "0.
|
|
114
|
+
"version": "0.55.0-beta.7",
|
|
115
115
|
"singleton": true,
|
|
116
|
-
"requiredVersion": "^0.
|
|
116
|
+
"requiredVersion": "^0.55.0-beta.7",
|
|
117
117
|
"assets": {
|
|
118
118
|
"js": {
|
|
119
119
|
"async": [],
|
|
120
120
|
"sync": [
|
|
121
|
-
"__mf/js/async/
|
|
121
|
+
"__mf/js/async/407.07aba336.js"
|
|
122
122
|
]
|
|
123
123
|
},
|
|
124
124
|
"css": {
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"js": {
|
|
139
139
|
"async": [],
|
|
140
140
|
"sync": [
|
|
141
|
-
"__mf/js/async/192.
|
|
141
|
+
"__mf/js/async/192.9808d269.js"
|
|
142
142
|
]
|
|
143
143
|
},
|
|
144
144
|
"css": {
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"js": {
|
|
159
159
|
"async": [],
|
|
160
160
|
"sync": [
|
|
161
|
-
"__mf/js/async/873.
|
|
161
|
+
"__mf/js/async/873.d6bb2952.js"
|
|
162
162
|
]
|
|
163
163
|
},
|
|
164
164
|
"css": {
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"js": {
|
|
179
179
|
"async": [],
|
|
180
180
|
"sync": [
|
|
181
|
-
"__mf/js/async/392.
|
|
181
|
+
"__mf/js/async/392.cb707a93.js"
|
|
182
182
|
]
|
|
183
183
|
},
|
|
184
184
|
"css": {
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"js": {
|
|
199
199
|
"async": [],
|
|
200
200
|
"sync": [
|
|
201
|
-
"__mf/js/async/470.
|
|
201
|
+
"__mf/js/async/470.26952ddf.js"
|
|
202
202
|
]
|
|
203
203
|
},
|
|
204
204
|
"css": {
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
"js": {
|
|
219
219
|
"async": [],
|
|
220
220
|
"sync": [
|
|
221
|
-
"__mf/js/async/121.
|
|
221
|
+
"__mf/js/async/121.f7e8e4a7.js"
|
|
222
222
|
]
|
|
223
223
|
},
|
|
224
224
|
"css": {
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
"js": {
|
|
239
239
|
"async": [],
|
|
240
240
|
"sync": [
|
|
241
|
-
"__mf/js/async/978.
|
|
241
|
+
"__mf/js/async/978.6043d74f.js"
|
|
242
242
|
]
|
|
243
243
|
},
|
|
244
244
|
"css": {
|
|
@@ -257,26 +257,27 @@
|
|
|
257
257
|
"assets": {
|
|
258
258
|
"js": {
|
|
259
259
|
"sync": [
|
|
260
|
-
"__mf/js/async/465.
|
|
261
|
-
"__mf/js/async/866.
|
|
262
|
-
"__mf/js/async/721.
|
|
263
|
-
"__mf/js/async/570.
|
|
264
|
-
"__mf/js/async/__federation_expose_StatChart.
|
|
260
|
+
"__mf/js/async/465.0b7086ef.js",
|
|
261
|
+
"__mf/js/async/866.180c7c1d.js",
|
|
262
|
+
"__mf/js/async/721.9ed0b42d.js",
|
|
263
|
+
"__mf/js/async/570.36d078cd.js",
|
|
264
|
+
"__mf/js/async/__federation_expose_StatChart.ea6bcd68.js"
|
|
265
265
|
],
|
|
266
266
|
"async": [
|
|
267
|
-
"__mf/js/async/588.
|
|
268
|
-
"__mf/js/async/71.
|
|
269
|
-
"__mf/js/async/
|
|
270
|
-
"__mf/js/async/450.
|
|
271
|
-
"__mf/js/async/lib-router.
|
|
272
|
-
"__mf/js/async/356.
|
|
273
|
-
"__mf/js/async/
|
|
267
|
+
"__mf/js/async/588.29eb8c38.js",
|
|
268
|
+
"__mf/js/async/71.7f97cf3a.js",
|
|
269
|
+
"__mf/js/async/345.f2a95d9c.js",
|
|
270
|
+
"__mf/js/async/450.3a0b1ae3.js",
|
|
271
|
+
"__mf/js/async/lib-router.a0b2cd64.js",
|
|
272
|
+
"__mf/js/async/356.defde8e9.js",
|
|
273
|
+
"__mf/js/async/77.048fc50c.js",
|
|
274
|
+
"__mf/js/async/496.b9973ffe.js"
|
|
274
275
|
]
|
|
275
276
|
},
|
|
276
277
|
"css": {
|
|
277
278
|
"sync": [],
|
|
278
279
|
"async": [
|
|
279
|
-
"__mf/css/async/
|
|
280
|
+
"__mf/css/async/788.85c2cbf6.css"
|
|
280
281
|
]
|
|
281
282
|
}
|
|
282
283
|
},
|
package/mf-stats.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "StatChart",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.
|
|
8
|
+
"buildVersion": "0.15.0-beta.2",
|
|
9
9
|
"buildName": "@perses-dev/stat-chart-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/StatChart.
|
|
12
|
+
"name": "__mf/js/StatChart.bb7e0ece.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": "StatChart_0_15_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/StatChart/\"; }"
|
|
24
|
+
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/StatChart~0.15.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.8d8be5c9.js"
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"css": {
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"js": {
|
|
61
61
|
"async": [],
|
|
62
62
|
"sync": [
|
|
63
|
-
"__mf/js/async/235.
|
|
64
|
-
"__mf/js/async/616.
|
|
63
|
+
"__mf/js/async/235.7bcd2051.js",
|
|
64
|
+
"__mf/js/async/616.42a14f39.js"
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
67
|
"css": {
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"js": {
|
|
86
86
|
"async": [],
|
|
87
87
|
"sync": [
|
|
88
|
-
"__mf/js/async/587.
|
|
89
|
-
"__mf/js/async/968.
|
|
88
|
+
"__mf/js/async/587.528aba30.js",
|
|
89
|
+
"__mf/js/async/968.0754c6b9.js"
|
|
90
90
|
]
|
|
91
91
|
},
|
|
92
92
|
"css": {
|
|
@@ -100,23 +100,23 @@
|
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"singleton": true,
|
|
103
|
-
"requiredVersion": "^0.
|
|
103
|
+
"requiredVersion": "^0.55.0-beta.7",
|
|
104
104
|
"shareScope": "default",
|
|
105
105
|
"name": "@perses-dev/components",
|
|
106
|
-
"version": "0.
|
|
106
|
+
"version": "0.55.0-beta.7",
|
|
107
107
|
"eager": false,
|
|
108
108
|
"id": "StatChart:@perses-dev/components",
|
|
109
109
|
"assets": {
|
|
110
110
|
"js": {
|
|
111
111
|
"async": [],
|
|
112
112
|
"sync": [
|
|
113
|
-
"__mf/js/async/
|
|
113
|
+
"__mf/js/async/788.d3786b94.js"
|
|
114
114
|
]
|
|
115
115
|
},
|
|
116
116
|
"css": {
|
|
117
117
|
"async": [],
|
|
118
118
|
"sync": [
|
|
119
|
-
"__mf/css/async/
|
|
119
|
+
"__mf/css/async/788.85c2cbf6.css"
|
|
120
120
|
]
|
|
121
121
|
}
|
|
122
122
|
},
|
|
@@ -128,17 +128,17 @@
|
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
"singleton": true,
|
|
131
|
-
"requiredVersion": "^0.
|
|
131
|
+
"requiredVersion": "^0.55.0-beta.7",
|
|
132
132
|
"shareScope": "default",
|
|
133
133
|
"name": "@perses-dev/plugin-system",
|
|
134
|
-
"version": "0.
|
|
134
|
+
"version": "0.55.0-beta.7",
|
|
135
135
|
"eager": false,
|
|
136
136
|
"id": "StatChart:@perses-dev/plugin-system",
|
|
137
137
|
"assets": {
|
|
138
138
|
"js": {
|
|
139
139
|
"async": [],
|
|
140
140
|
"sync": [
|
|
141
|
-
"__mf/js/async/
|
|
141
|
+
"__mf/js/async/407.07aba336.js"
|
|
142
142
|
]
|
|
143
143
|
},
|
|
144
144
|
"css": {
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"js": {
|
|
165
165
|
"async": [],
|
|
166
166
|
"sync": [
|
|
167
|
-
"__mf/js/async/192.
|
|
167
|
+
"__mf/js/async/192.9808d269.js"
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
170
|
"css": {
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"js": {
|
|
189
189
|
"async": [],
|
|
190
190
|
"sync": [
|
|
191
|
-
"__mf/js/async/873.
|
|
191
|
+
"__mf/js/async/873.d6bb2952.js"
|
|
192
192
|
]
|
|
193
193
|
},
|
|
194
194
|
"css": {
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"js": {
|
|
213
213
|
"async": [],
|
|
214
214
|
"sync": [
|
|
215
|
-
"__mf/js/async/392.
|
|
215
|
+
"__mf/js/async/392.cb707a93.js"
|
|
216
216
|
]
|
|
217
217
|
},
|
|
218
218
|
"css": {
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"js": {
|
|
237
237
|
"async": [],
|
|
238
238
|
"sync": [
|
|
239
|
-
"__mf/js/async/470.
|
|
239
|
+
"__mf/js/async/470.26952ddf.js"
|
|
240
240
|
]
|
|
241
241
|
},
|
|
242
242
|
"css": {
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
"js": {
|
|
261
261
|
"async": [],
|
|
262
262
|
"sync": [
|
|
263
|
-
"__mf/js/async/121.
|
|
263
|
+
"__mf/js/async/121.f7e8e4a7.js"
|
|
264
264
|
]
|
|
265
265
|
},
|
|
266
266
|
"css": {
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
"js": {
|
|
287
287
|
"async": [],
|
|
288
288
|
"sync": [
|
|
289
|
-
"__mf/js/async/978.
|
|
289
|
+
"__mf/js/async/978.6043d74f.js"
|
|
290
290
|
]
|
|
291
291
|
},
|
|
292
292
|
"css": {
|
|
@@ -314,26 +314,27 @@
|
|
|
314
314
|
"assets": {
|
|
315
315
|
"js": {
|
|
316
316
|
"sync": [
|
|
317
|
-
"__mf/js/async/465.
|
|
318
|
-
"__mf/js/async/866.
|
|
319
|
-
"__mf/js/async/721.
|
|
320
|
-
"__mf/js/async/570.
|
|
321
|
-
"__mf/js/async/__federation_expose_StatChart.
|
|
317
|
+
"__mf/js/async/465.0b7086ef.js",
|
|
318
|
+
"__mf/js/async/866.180c7c1d.js",
|
|
319
|
+
"__mf/js/async/721.9ed0b42d.js",
|
|
320
|
+
"__mf/js/async/570.36d078cd.js",
|
|
321
|
+
"__mf/js/async/__federation_expose_StatChart.ea6bcd68.js"
|
|
322
322
|
],
|
|
323
323
|
"async": [
|
|
324
|
-
"__mf/js/async/588.
|
|
325
|
-
"__mf/js/async/71.
|
|
326
|
-
"__mf/js/async/
|
|
327
|
-
"__mf/js/async/450.
|
|
328
|
-
"__mf/js/async/lib-router.
|
|
329
|
-
"__mf/js/async/356.
|
|
330
|
-
"__mf/js/async/
|
|
324
|
+
"__mf/js/async/588.29eb8c38.js",
|
|
325
|
+
"__mf/js/async/71.7f97cf3a.js",
|
|
326
|
+
"__mf/js/async/345.f2a95d9c.js",
|
|
327
|
+
"__mf/js/async/450.3a0b1ae3.js",
|
|
328
|
+
"__mf/js/async/lib-router.a0b2cd64.js",
|
|
329
|
+
"__mf/js/async/356.defde8e9.js",
|
|
330
|
+
"__mf/js/async/77.048fc50c.js",
|
|
331
|
+
"__mf/js/async/496.b9973ffe.js"
|
|
331
332
|
]
|
|
332
333
|
},
|
|
333
334
|
"css": {
|
|
334
335
|
"sync": [],
|
|
335
336
|
"async": [
|
|
336
|
-
"__mf/css/async/
|
|
337
|
+
"__mf/css/async/788.85c2cbf6.css"
|
|
337
338
|
]
|
|
338
339
|
}
|
|
339
340
|
}
|