@perses-dev/heatmap-chart-plugin 0.5.0 → 0.6.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.
Files changed (94) hide show
  1. package/__mf/js/{HeatMapChart.6c4e6e06.js → HeatMapChart.6613b45e.js} +7 -7
  2. package/__mf/js/async/121.e63b0807.js +2 -0
  3. package/__mf/js/async/362.8b36602d.js +1 -0
  4. package/__mf/js/async/392.f80b3f92.js +2 -0
  5. package/__mf/js/async/470.6b4b5f7b.js +2 -0
  6. package/__mf/js/async/569.8e18ce20.js +71 -0
  7. package/__mf/js/async/888.52ddc939.js +1 -0
  8. package/__mf/js/async/941.ea6b3111.js +2 -0
  9. package/__mf/js/async/963.9dc879ab.js +1 -0
  10. package/__mf/js/async/{980.03e0a41f.js → 980.f28cf53e.js} +2 -2
  11. package/__mf/js/async/{__federation_expose_HeatMapChart.b3d43042.js → __federation_expose_HeatMapChart.a270bda0.js} +2 -2
  12. package/__mf/js/{main.bec55b3a.js → main.4b170e45.js} +3 -3
  13. package/lib/HeatMapChart.d.ts +3 -3
  14. package/lib/HeatMapChart.d.ts.map +1 -1
  15. package/lib/HeatMapChart.js +2 -2
  16. package/lib/HeatMapChart.js.map +1 -1
  17. package/lib/bootstrap.js +2 -2
  18. package/lib/components/HeatMapChart.d.ts +4 -4
  19. package/lib/components/HeatMapChart.d.ts.map +1 -1
  20. package/lib/components/HeatMapChart.js +8 -8
  21. package/lib/components/HeatMapChart.js.map +1 -1
  22. package/lib/components/HeatMapChartOptionsEditorSettings.d.ts +2 -2
  23. package/lib/components/HeatMapChartOptionsEditorSettings.d.ts.map +1 -1
  24. package/lib/components/HeatMapChartOptionsEditorSettings.js +6 -6
  25. package/lib/components/HeatMapChartOptionsEditorSettings.js.map +1 -1
  26. package/lib/components/HeatMapChartPanel.d.ts +4 -4
  27. package/lib/components/HeatMapChartPanel.d.ts.map +1 -1
  28. package/lib/components/HeatMapChartPanel.js +6 -6
  29. package/lib/components/HeatMapChartPanel.js.map +1 -1
  30. package/lib/components/HeatMapTooltip.d.ts +3 -3
  31. package/lib/components/HeatMapTooltip.d.ts.map +1 -1
  32. package/lib/components/HeatMapTooltip.js +2 -2
  33. package/lib/components/HeatMapTooltip.js.map +1 -1
  34. package/lib/components/index.js +3 -3
  35. package/lib/components/index.js.map +1 -1
  36. package/lib/getPluginModule.d.ts +1 -1
  37. package/lib/getPluginModule.d.ts.map +1 -1
  38. package/lib/getPluginModule.js +3 -1
  39. package/lib/getPluginModule.js.map +1 -1
  40. package/lib/heat-map-chart-model.d.ts +3 -3
  41. package/lib/heat-map-chart-model.d.ts.map +1 -1
  42. package/lib/heat-map-chart-model.js.map +1 -1
  43. package/lib/index-federation.js +1 -1
  44. package/lib/index.js +4 -4
  45. package/lib/index.js.map +1 -1
  46. package/lib/setup-tests.d.ts +1 -1
  47. package/lib/setup-tests.d.ts.map +1 -1
  48. package/lib/setup-tests.js +2 -2
  49. package/lib/setup-tests.js.map +1 -1
  50. package/lib/utils/data-transform.d.ts +2 -2
  51. package/lib/utils/data-transform.d.ts.map +1 -1
  52. package/lib/utils/data-transform.js +1 -1
  53. package/lib/utils/data-transform.js.map +1 -1
  54. package/lib/utils/get-formatted-axis-label.js +1 -1
  55. package/lib/utils/index.js +3 -3
  56. package/lib/utils/index.js.map +1 -1
  57. package/lib/utils/thresholds.d.ts +1 -1
  58. package/lib/utils/thresholds.d.ts.map +1 -1
  59. package/lib/utils/thresholds.js.map +1 -1
  60. package/mf-manifest.json +18 -18
  61. package/mf-stats.json +18 -18
  62. package/package.json +10 -10
  63. package/__mf/js/async/121.c8aa4904.js +0 -2
  64. package/__mf/js/async/392.97acdaa7.js +0 -2
  65. package/__mf/js/async/470.c23991fd.js +0 -2
  66. package/__mf/js/async/535.e475e67c.js +0 -1
  67. package/__mf/js/async/695.a3b5a24f.js +0 -71
  68. package/__mf/js/async/888.6a71bc7f.js +0 -1
  69. package/__mf/js/async/941.86aff2f9.js +0 -2
  70. package/__mf/js/async/963.ddc66183.js +0 -1
  71. package/lib/cjs/HeatMapChart.js +0 -40
  72. package/lib/cjs/bootstrap.js +0 -26
  73. package/lib/cjs/components/HeatMapChart.js +0 -227
  74. package/lib/cjs/components/HeatMapChartOptionsEditorSettings.js +0 -140
  75. package/lib/cjs/components/HeatMapChartPanel.js +0 -227
  76. package/lib/cjs/components/HeatMapTooltip.js +0 -57
  77. package/lib/cjs/components/index.js +0 -32
  78. package/lib/cjs/env.d.js +0 -14
  79. package/lib/cjs/getPluginModule.js +0 -39
  80. package/lib/cjs/heat-map-chart-model.js +0 -80
  81. package/lib/cjs/index-federation.js +0 -55
  82. package/lib/cjs/index.js +0 -47
  83. package/lib/cjs/setup-tests.js +0 -19
  84. package/lib/cjs/utils/data-transform.js +0 -46
  85. package/lib/cjs/utils/get-formatted-axis-label.js +0 -48
  86. package/lib/cjs/utils/index.js +0 -32
  87. package/lib/cjs/utils/thresholds.js +0 -34
  88. /package/__mf/css/async/{695.85c2cbf6.css → 569.85c2cbf6.css} +0 -0
  89. /package/__mf/js/async/{121.c8aa4904.js.LICENSE.txt → 121.e63b0807.js.LICENSE.txt} +0 -0
  90. /package/__mf/js/async/{392.97acdaa7.js.LICENSE.txt → 392.f80b3f92.js.LICENSE.txt} +0 -0
  91. /package/__mf/js/async/{470.c23991fd.js.LICENSE.txt → 470.6b4b5f7b.js.LICENSE.txt} +0 -0
  92. /package/__mf/js/async/{695.a3b5a24f.js.LICENSE.txt → 569.8e18ce20.js.LICENSE.txt} +0 -0
  93. /package/__mf/js/async/{941.86aff2f9.js.LICENSE.txt → 941.ea6b3111.js.LICENSE.txt} +0 -0
  94. /package/__mf/js/async/{980.03e0a41f.js.LICENSE.txt → 980.f28cf53e.js.LICENSE.txt} +0 -0
@@ -1,32 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- _export_star(require("./data-transform"), exports);
18
- _export_star(require("./get-formatted-axis-label"), exports);
19
- _export_star(require("./thresholds"), exports);
20
- function _export_star(from, to) {
21
- Object.keys(from).forEach(function(k) {
22
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
23
- Object.defineProperty(to, k, {
24
- enumerable: true,
25
- get: function() {
26
- return from[k];
27
- }
28
- });
29
- }
30
- });
31
- return from;
32
- }
@@ -1,34 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the \"License\");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an \"AS IS\" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "getColorFromThresholds", {
18
- enumerable: true,
19
- get: function() {
20
- return getColorFromThresholds;
21
- }
22
- });
23
- function getColorFromThresholds(value, thresholds, chartsTheme, defaultColor) {
24
- if (thresholds?.steps) {
25
- const matchingColors = thresholds.steps.map((step, index)=>{
26
- if (value >= step.value) {
27
- return step.color ?? chartsTheme.thresholds.palette[index] ?? thresholds.defaultColor ?? defaultColor;
28
- }
29
- return null;
30
- }).filter((color)=>color !== null);
31
- return matchingColors[matchingColors.length - 1] ?? thresholds.defaultColor ?? defaultColor;
32
- }
33
- return thresholds?.defaultColor ?? defaultColor;
34
- }