@kong-ui-public/analytics-chart 13.2.9 → 13.2.10-pr.4029.2ee798d89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/package.json +5 -5
  2. package/dist/style.css +0 -1
  3. package/dist/types/components/AnalyticsChart.vue.d.ts +0 -43
  4. package/dist/types/components/AnalyticsChart.vue.d.ts.map +0 -1
  5. package/dist/types/components/LoadingOverlay.vue.d.ts +0 -18
  6. package/dist/types/components/LoadingOverlay.vue.d.ts.map +0 -1
  7. package/dist/types/components/SimpleChart.vue.d.ts +0 -74
  8. package/dist/types/components/SimpleChart.vue.d.ts.map +0 -1
  9. package/dist/types/components/SparklineChart.vue.d.ts +0 -95
  10. package/dist/types/components/SparklineChart.vue.d.ts.map +0 -1
  11. package/dist/types/components/TopNTable.vue.d.ts +0 -59
  12. package/dist/types/components/TopNTable.vue.d.ts.map +0 -1
  13. package/dist/types/components/ZoomActions.vue.d.ts +0 -15
  14. package/dist/types/components/ZoomActions.vue.d.ts.map +0 -1
  15. package/dist/types/components/ZoomTimerange.vue.d.ts +0 -10
  16. package/dist/types/components/ZoomTimerange.vue.d.ts.map +0 -1
  17. package/dist/types/components/chart-plugins/ChartLegend.vue.d.ts +0 -36
  18. package/dist/types/components/chart-plugins/ChartLegend.vue.d.ts.map +0 -1
  19. package/dist/types/components/chart-plugins/ChartTooltip.vue.d.ts +0 -34
  20. package/dist/types/components/chart-plugins/ChartTooltip.vue.d.ts.map +0 -1
  21. package/dist/types/components/chart-plugins/CoordinatorPlugin.d.ts +0 -40
  22. package/dist/types/components/chart-plugins/CoordinatorPlugin.d.ts.map +0 -1
  23. package/dist/types/components/chart-plugins/DragSelectPlugin.d.ts +0 -22
  24. package/dist/types/components/chart-plugins/DragSelectPlugin.d.ts.map +0 -1
  25. package/dist/types/components/chart-plugins/HighlightPlugin.d.ts +0 -18
  26. package/dist/types/components/chart-plugins/HighlightPlugin.d.ts.map +0 -1
  27. package/dist/types/components/chart-plugins/OutlierBandPlugin.d.ts +0 -14
  28. package/dist/types/components/chart-plugins/OutlierBandPlugin.d.ts.map +0 -1
  29. package/dist/types/components/chart-plugins/ReferenceLinePlugin.d.ts +0 -12
  30. package/dist/types/components/chart-plugins/ReferenceLinePlugin.d.ts.map +0 -1
  31. package/dist/types/components/chart-plugins/ThresholdPlugin.d.ts +0 -34
  32. package/dist/types/components/chart-plugins/ThresholdPlugin.d.ts.map +0 -1
  33. package/dist/types/components/chart-plugins/VerticalLinePlugin.d.ts +0 -29
  34. package/dist/types/components/chart-plugins/VerticalLinePlugin.d.ts.map +0 -1
  35. package/dist/types/components/chart-types/DonutChart.vue.d.ts +0 -33
  36. package/dist/types/components/chart-types/DonutChart.vue.d.ts.map +0 -1
  37. package/dist/types/components/chart-types/GaugeChart.vue.d.ts +0 -92
  38. package/dist/types/components/chart-types/GaugeChart.vue.d.ts.map +0 -1
  39. package/dist/types/components/chart-types/ScatterChart.vue.d.ts +0 -42
  40. package/dist/types/components/chart-types/ScatterChart.vue.d.ts.map +0 -1
  41. package/dist/types/components/chart-types/SingleValue.vue.d.ts +0 -91
  42. package/dist/types/components/chart-types/SingleValue.vue.d.ts.map +0 -1
  43. package/dist/types/components/chart-types/StackedBarChart.vue.d.ts +0 -36
  44. package/dist/types/components/chart-types/StackedBarChart.vue.d.ts.map +0 -1
  45. package/dist/types/components/chart-types/TimeSeriesChart.vue.d.ts +0 -58
  46. package/dist/types/components/chart-types/TimeSeriesChart.vue.d.ts.map +0 -1
  47. package/dist/types/components/top-n/TopNMetricBar.vue.d.ts +0 -9
  48. package/dist/types/components/top-n/TopNMetricBar.vue.d.ts.map +0 -1
  49. package/dist/types/components/top-n/TopNMetricCell.vue.d.ts +0 -11
  50. package/dist/types/components/top-n/TopNMetricCell.vue.d.ts.map +0 -1
  51. package/dist/types/components/top-talkers/TopTalkersCell.vue.d.ts +0 -8
  52. package/dist/types/components/top-talkers/TopTalkersCell.vue.d.ts.map +0 -1
  53. package/dist/types/components/top-talkers/TopTalkersColumn.vue.d.ts +0 -14
  54. package/dist/types/components/top-talkers/TopTalkersColumn.vue.d.ts.map +0 -1
  55. package/dist/types/components/top-talkers/TopTalkersGrid.vue.d.ts +0 -42
  56. package/dist/types/components/top-talkers/TopTalkersGrid.vue.d.ts.map +0 -1
  57. package/dist/types/composables/index.d.ts +0 -37
  58. package/dist/types/composables/index.d.ts.map +0 -1
  59. package/dist/types/composables/useBarChartOptions.d.ts +0 -118
  60. package/dist/types/composables/useBarChartOptions.d.ts.map +0 -1
  61. package/dist/types/composables/useChartJSCommon.d.ts +0 -5
  62. package/dist/types/composables/useChartJSCommon.d.ts.map +0 -1
  63. package/dist/types/composables/useChartLegendValues.d.ts +0 -6
  64. package/dist/types/composables/useChartLegendValues.d.ts.map +0 -1
  65. package/dist/types/composables/useDonutChartOptions.d.ts +0 -42
  66. package/dist/types/composables/useDonutChartOptions.d.ts.map +0 -1
  67. package/dist/types/composables/useEvaluateFeatureFlag.d.ts +0 -4
  68. package/dist/types/composables/useEvaluateFeatureFlag.d.ts.map +0 -1
  69. package/dist/types/composables/useExploreResultToDatasets.d.ts +0 -5
  70. package/dist/types/composables/useExploreResultToDatasets.d.ts.map +0 -1
  71. package/dist/types/composables/useExploreResultToTimeDatasets.d.ts +0 -6
  72. package/dist/types/composables/useExploreResultToTimeDatasets.d.ts.map +0 -1
  73. package/dist/types/composables/useFieldLabel.d.ts +0 -3
  74. package/dist/types/composables/useFieldLabel.d.ts.map +0 -1
  75. package/dist/types/composables/useI18n.d.ts +0 -9
  76. package/dist/types/composables/useI18n.d.ts.map +0 -1
  77. package/dist/types/composables/useLineChartOptions.d.ts +0 -136
  78. package/dist/types/composables/useLineChartOptions.d.ts.map +0 -1
  79. package/dist/types/composables/useReportChartDataForSynthetics.d.ts +0 -9
  80. package/dist/types/composables/useReportChartDataForSynthetics.d.ts.map +0 -1
  81. package/dist/types/composables/useScatterChartOptions.d.ts +0 -132
  82. package/dist/types/composables/useScatterChartOptions.d.ts.map +0 -1
  83. package/dist/types/composables/useScatterDatasets.d.ts +0 -19
  84. package/dist/types/composables/useScatterDatasets.d.ts.map +0 -1
  85. package/dist/types/composables/useSparklineSync.d.ts +0 -30
  86. package/dist/types/composables/useSparklineSync.d.ts.map +0 -1
  87. package/dist/types/composables/useTooltipAbsolutePosition.d.ts +0 -9
  88. package/dist/types/composables/useTooltipAbsolutePosition.d.ts.map +0 -1
  89. package/dist/types/composables/useTopTalkersData.d.ts +0 -10
  90. package/dist/types/composables/useTopTalkersData.d.ts.map +0 -1
  91. package/dist/types/composables/useTranslatedUnits.d.ts +0 -4
  92. package/dist/types/composables/useTranslatedUnits.d.ts.map +0 -1
  93. package/dist/types/constants/index.d.ts +0 -8
  94. package/dist/types/constants/index.d.ts.map +0 -1
  95. package/dist/types/enums/chart-legend-position.enum.d.ts +0 -5
  96. package/dist/types/enums/chart-legend-position.enum.d.ts.map +0 -1
  97. package/dist/types/enums/index.d.ts +0 -2
  98. package/dist/types/enums/index.d.ts.map +0 -1
  99. package/dist/types/index.d.ts +0 -24
  100. package/dist/types/index.d.ts.map +0 -1
  101. package/dist/types/types/chart-data.d.ts +0 -296
  102. package/dist/types/types/chart-data.d.ts.map +0 -1
  103. package/dist/types/types/chart-meta.d.ts +0 -6
  104. package/dist/types/types/chart-meta.d.ts.map +0 -1
  105. package/dist/types/types/chart-types.d.ts +0 -6
  106. package/dist/types/types/chart-types.d.ts.map +0 -1
  107. package/dist/types/types/chartjs-options.d.ts +0 -90
  108. package/dist/types/types/chartjs-options.d.ts.map +0 -1
  109. package/dist/types/types/explore-to-dataset-deps.d.ts +0 -21
  110. package/dist/types/types/explore-to-dataset-deps.d.ts.map +0 -1
  111. package/dist/types/types/external-link.d.ts +0 -4
  112. package/dist/types/types/external-link.d.ts.map +0 -1
  113. package/dist/types/types/index.d.ts +0 -11
  114. package/dist/types/types/index.d.ts.map +0 -1
  115. package/dist/types/types/query-error.d.ts +0 -7
  116. package/dist/types/types/query-error.d.ts.map +0 -1
  117. package/dist/types/types/scatter-data.d.ts +0 -38
  118. package/dist/types/types/scatter-data.d.ts.map +0 -1
  119. package/dist/types/types/top-talkers.d.ts +0 -35
  120. package/dist/types/types/top-talkers.d.ts.map +0 -1
  121. package/dist/types/types/zoom-action-item.d.ts +0 -9
  122. package/dist/types/types/zoom-action-item.d.ts.map +0 -1
  123. package/dist/types/utils/bucketTimestamps.d.ts +0 -8
  124. package/dist/types/utils/bucketTimestamps.d.ts.map +0 -1
  125. package/dist/types/utils/commonOptions.d.ts +0 -22
  126. package/dist/types/utils/commonOptions.d.ts.map +0 -1
  127. package/dist/types/utils/constants.d.ts +0 -7
  128. package/dist/types/utils/constants.d.ts.map +0 -1
  129. package/dist/types/utils/customColors.d.ts +0 -8
  130. package/dist/types/utils/customColors.d.ts.map +0 -1
  131. package/dist/types/utils/defaultLineOptions.d.ts +0 -9
  132. package/dist/types/utils/defaultLineOptions.d.ts.map +0 -1
  133. package/dist/types/utils/dimension-icons.d.ts +0 -5
  134. package/dist/types/utils/dimension-icons.d.ts.map +0 -1
  135. package/dist/types/utils/field-label.d.ts +0 -13
  136. package/dist/types/utils/field-label.d.ts.map +0 -1
  137. package/dist/types/utils/format-timestamps.d.ts +0 -13
  138. package/dist/types/utils/format-timestamps.d.ts.map +0 -1
  139. package/dist/types/utils/i18n.d.ts +0 -3
  140. package/dist/types/utils/i18n.d.ts.map +0 -1
  141. package/dist/types/utils/index.d.ts +0 -14
  142. package/dist/types/utils/index.d.ts.map +0 -1
  143. package/dist/types/utils/metric-units.d.ts +0 -3
  144. package/dist/types/utils/metric-units.d.ts.map +0 -1
  145. package/dist/types/utils/percentiles.d.ts +0 -3
  146. package/dist/types/utils/percentiles.d.ts.map +0 -1
  147. package/dist/types/utils/queryError.d.ts +0 -4
  148. package/dist/types/utils/queryError.d.ts.map +0 -1
  149. package/dist/types/utils/scatter-adapters.d.ts +0 -25
  150. package/dist/types/utils/scatter-adapters.d.ts.map +0 -1
  151. package/dist/types/utils/stackedBarUtil.d.ts +0 -9
  152. package/dist/types/utils/stackedBarUtil.d.ts.map +0 -1
  153. package/dist/types/utils/theme-colors.d.ts +0 -8
  154. package/dist/types/utils/theme-colors.d.ts.map +0 -1
  155. package/dist/types/utils/topn-columns.d.ts +0 -31
  156. package/dist/types/utils/topn-columns.d.ts.map +0 -1
  157. package/dist/vitals-chart.es.js +0 -22811
  158. package/dist/vitals-chart.umd.js +0 -7
@@ -1,35 +0,0 @@
1
- import type { TopNThresholdType } from '../utils/topn-columns';
2
- export interface TopTalkersTooltipRow {
3
- key: string;
4
- label: string;
5
- value: string;
6
- threshold?: TopNThresholdType;
7
- }
8
- export interface TopTalkersCellData {
9
- id: string;
10
- name: string;
11
- deleted: boolean;
12
- /** For `____OTHER____` datapoints. */
13
- isOther: boolean;
14
- /** For `empty` datapoints. */
15
- isEmpty: boolean;
16
- value: number;
17
- /** Share of the column total from 0 to 1 */
18
- ratio: number;
19
- /** Background hue, mixed with the page background by `tint`. */
20
- color: string;
21
- /** Percentage of `color` to mix with the page background, scaled by share, e.g. "35%". */
22
- tint: string;
23
- /** Formatted size metric, e.g. "2,160". */
24
- display: string;
25
- /** Formatted share, e.g. "26%". */
26
- relative: string;
27
- tooltipRows: TopTalkersTooltipRow[];
28
- }
29
- export interface TopTalkersColumnData {
30
- dimension: string;
31
- label: string;
32
- total: string;
33
- cells: TopTalkersCellData[];
34
- }
35
- //# sourceMappingURL=top-talkers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"top-talkers.d.ts","sourceRoot":"","sources":["../../../src/types/top-talkers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAE9D,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,iBAAiB,CAAA;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;IAChB,sCAAsC;IACtC,OAAO,EAAE,OAAO,CAAA;IAChB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAA;IACb,0FAA0F;IAC1F,IAAI,EAAE,MAAM,CAAA;IACZ,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAA;IACf,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,oBAAoB,EAAE,CAAA;CACpC;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,kBAAkB,EAAE,CAAA;CAC5B"}
@@ -1,9 +0,0 @@
1
- import type { AbsoluteTimeRangeV4 } from '@kong-ui-public/analytics-utilities';
2
- export interface ZoomActionItem {
3
- label: string;
4
- key: string;
5
- action?: (newTimeRange: AbsoluteTimeRangeV4) => void;
6
- href?: string;
7
- disabled?: boolean;
8
- }
9
- //# sourceMappingURL=zoom-action-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zoom-action-item.d.ts","sourceRoot":"","sources":["../../../src/types/zoom-action-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AAE9E,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACpD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
@@ -1,8 +0,0 @@
1
- declare const _default: ({ bucketCount, minStamp, maxStamp, timestamps, }: {
2
- bucketCount: number;
3
- minStamp: number;
4
- maxStamp: number;
5
- timestamps: number[];
6
- }) => Array<[number, number]>;
7
- export default _default;
8
- //# sourceMappingURL=bucketTimestamps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bucketTimestamps.d.ts","sourceRoot":"","sources":["../../../src/utils/bucketTimestamps.ts"],"names":[],"mappings":"yBAAgB,kDAKb;IACD,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,KAAG,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAV3B,wBAoCC"}
@@ -1,22 +0,0 @@
1
- import type { ExternalTooltipContext, KChartData, TooltipState, ChartLegendSortFn, LegendValues, EnhancedLegendItem, TooltipInteractionMode } from '../types';
2
- import type { Chart, Point } from 'chart.js';
3
- import type { GranularityValues } from '@kong-ui-public/analytics-utilities';
4
- export declare const isTooltipInteractive: (state: TooltipInteractionMode) => boolean;
5
- export declare const lineChartTooltipBehavior: (tooltipData: TooltipState, context: ExternalTooltipContext, granularity: GranularityValues, options?: {
6
- contextFormatter?: (x: number, granularity: GranularityValues, raw: unknown) => string | number;
7
- }) => void;
8
- export declare const tooltipBehavior: (tooltipData: TooltipState, context: ExternalTooltipContext) => void;
9
- export declare const hasDatasets: (chartData: KChartData) => number;
10
- export declare const hasDataInDatasets: (chartData: KChartData) => boolean | 0;
11
- export declare const hasTimeseriesData: (chartData: KChartData) => boolean;
12
- export declare const hasExactlyOneDatapoint: (chartData: KChartData) => boolean;
13
- export declare const hasMillisecondTimestamps: (chartData: KChartData) => boolean;
14
- /**
15
- * Adjust the tooltip's horizontal position based on its width and cursor location relative to the chart center.
16
- * This logic ensures consistent visual placement of a custom tooltip, as ChartJS offers limited direct control.
17
- */
18
- export declare const horizontalTooltipPositioning: (position: Point, tooltipWidth: number, chartCenterX: number) => number;
19
- export declare const verticalTooltipPositioning: (position: Point, tooltipHeight: number, chartCenterY: number) => number;
20
- export declare function debounce(fn: (...args: any) => any, delay: number): (...args: any) => void;
21
- export declare const generateLegendItems: (chart: Chart, legendValues?: LegendValues, chartLegendSortFn?: ChartLegendSortFn) => EnhancedLegendItem[];
22
- //# sourceMappingURL=commonOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commonOptions.d.ts","sourceRoot":"","sources":["../../../src/utils/commonOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,YAAY,EAAyB,iBAAiB,EAAoB,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAKtM,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAoB,MAAM,UAAU,CAAA;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAE5E,eAAO,MAAM,oBAAoB,GAAI,OAAO,sBAAsB,YAEjE,CAAA;AAED,eAAO,MAAM,wBAAwB,GACnC,aAAa,YAAY,EACzB,SAAS,sBAAsB,EAC/B,aAAa,iBAAiB,EAC9B,UAAU;IACR,gBAAgB,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,GAAG,EAAE,OAAO,KAAK,MAAM,GAAG,MAAM,CAAA;CAChG,KACC,IAwDH,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,aAAa,YAAY,EAAE,SAAS,sBAAsB,KAAI,IAoD7F,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,WAAW,UAAU,WACa,CAAA;AAE9D,eAAO,MAAM,iBAAiB,GAAI,WAAW,UAAU,gBACoB,CAAA;AAE3E,eAAO,MAAM,iBAAiB,GAAI,WAAW,UAAU,YAEtD,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,WAAW,UAAU,YAEN,CAAA;AAEtD,eAAO,MAAM,wBAAwB,GAAI,WAAW,UAAU,YAI3D,CAAA;AAEH;;;IAGI;AACJ,eAAO,MAAM,4BAA4B,GAAI,UAAU,KAAK,EAAE,cAAc,MAAM,EAAE,cAAc,MAAM,WA6BvG,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,UAAU,KAAK,EAAE,eAAe,MAAM,EAAE,cAAc,MAAM,WAUtG,CAAA;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAAE,KAAK,EAAE,MAAM,IAEvD,GAAG,MAAM,GAAG,UAMrB;AAED,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK,EAAE,eAAe,YAAY,EAAE,oBAAoB,iBAAiB,KAAG,kBAAkB,EAYxI,CAAA"}
@@ -1,7 +0,0 @@
1
- export declare const DECIMAL_DISPLAY = 2;
2
- export declare const FONT_SIZE_SMALL = 10;
3
- export declare const FONT_SIZE_REGULAR = 12;
4
- export declare const MAX_LABEL_LENGTH = 10;
5
- export declare const LEFT_Y_AXIS_ID = "y";
6
- export declare const RIGHT_Y_AXIS_ID = "y1";
7
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,IAAI,CAAA;AAChC,eAAO,MAAM,eAAe,KAAK,CAAA;AACjC,eAAO,MAAM,iBAAiB,KAAK,CAAA;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAA;AAClC,eAAO,MAAM,cAAc,MAAM,CAAA;AACjC,eAAO,MAAM,eAAe,OAAO,CAAA"}
@@ -1,8 +0,0 @@
1
- import type { AnalyticsChartColors } from 'src/types';
2
- export declare const lookupStatusCodeColor: (label: string) => string;
3
- export declare const lookupStatusCodeCategoryColor: (label: string) => {
4
- solid: string;
5
- light: string;
6
- };
7
- export declare const defaultStatusCodeColors: AnalyticsChartColors;
8
- //# sourceMappingURL=customColors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"customColors.d.ts","sourceRoot":"","sources":["../../../src/utils/customColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAiKrD,eAAO,MAAM,qBAAqB,GAAI,OAAO,MAAM,WAMlD,CAAA;AAED,eAAO,MAAM,6BAA6B,GAAI,OAAO,MAAM;;;CAI1D,CAAA;AAID,eAAO,MAAM,uBAAuB,EAAE,oBASrC,CAAA"}
@@ -1,9 +0,0 @@
1
- export declare const defaultLineOptions: {
2
- lineTension: number;
3
- pointBorderWidth: number;
4
- borderJoinStyle: string;
5
- fill: boolean;
6
- };
7
- export declare const BORDER_WIDTH = 2;
8
- export declare const NO_BORDER = 0;
9
- //# sourceMappingURL=defaultLineOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultLineOptions.d.ts","sourceRoot":"","sources":["../../../src/utils/defaultLineOptions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAA;AAED,eAAO,MAAM,YAAY,IAAI,CAAA;AAC7B,eAAO,MAAM,SAAS,IAAI,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { Component } from 'vue';
2
- import type { ColumnIconSet } from '@kong-ui-public/analytics-utilities';
3
- export declare const aiProviderIcons: Readonly<Record<string, Component>>;
4
- export declare const getColumnIcon: (iconSet: ColumnIconSet | undefined, id: string) => Component | undefined;
5
- //# sourceMappingURL=dimension-icons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dimension-icons.d.ts","sourceRoot":"","sources":["../../../src/utils/dimension-icons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AAsBxE,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAmB/D,CAAA;AAMD,eAAO,MAAM,aAAa,GAAI,SAAS,aAAa,GAAG,SAAS,EAAE,IAAI,MAAM,KAAG,SAAS,GAAG,SAM1F,CAAA"}
@@ -1,13 +0,0 @@
1
- import type { IntlShapeEx } from '@kong-ui-public/i18n';
2
- import type english from '../locales/en.json';
3
- type I18n = Pick<IntlShapeEx<typeof english>, 't' | 'te'>;
4
- export interface FieldLabelOptions {
5
- prefix?: string;
6
- fallback?: string;
7
- }
8
- /**
9
- * Resolves a field name to a translated label by querying the config store and falling back to i18n.
10
- */
11
- export declare const fieldLabel: (i18n: I18n, fieldTranslationMap: Map<string, string>, key: string, { prefix, fallback }?: FieldLabelOptions) => string;
12
- export {};
13
- //# sourceMappingURL=field-label.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-label.d.ts","sourceRoot":"","sources":["../../../src/utils/field-label.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAE7C,KAAK,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,CAAA;AAEzD,MAAM,WAAW,iBAAiB;IAEhC,MAAM,CAAC,EAAE,MAAM,CAAA;IAGf,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,GACrB,MAAM,IAAI,EACV,qBAAqB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EACxC,KAAK,MAAM,EACX,uBAA4C,iBAAsB,KACjE,MAKF,CAAA"}
@@ -1,13 +0,0 @@
1
- import type { GranularityValues } from '@kong-ui-public/analytics-utilities';
2
- export declare const formatChartTicksByGranularity: ({ tickValue, granularity, dayBoundaryCrossed, timezone, }: {
3
- tickValue: Date;
4
- granularity: GranularityValues;
5
- dayBoundaryCrossed: boolean;
6
- timezone?: string;
7
- }) => string;
8
- export declare const formatTooltipTimestampByGranularity: ({ tickValue, granularity, timezone, }: {
9
- tickValue: Date;
10
- granularity: GranularityValues;
11
- timezone?: string;
12
- }) => string;
13
- //# sourceMappingURL=format-timestamps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format-timestamps.d.ts","sourceRoot":"","sources":["../../../src/utils/format-timestamps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAkF5E,eAAO,MAAM,6BAA6B,GAAI,2DAK3C;IACD,SAAS,EAAE,IAAI,CAAA;IACf,WAAW,EAAE,iBAAiB,CAAA;IAC9B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,KAAG,MAQA,CAAA;AAEJ,eAAO,MAAM,mCAAmC,GAAI,uCAIjD;IACD,SAAS,EAAE,IAAI,CAAA;IACf,WAAW,EAAE,iBAAiB,CAAA;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,KAAG,MAOA,CAAA"}
@@ -1,3 +0,0 @@
1
- import english from '../locales/en.json';
2
- export declare const isChartLabel: (name: string) => name is keyof typeof english.chartLabels;
3
- //# sourceMappingURL=i18n.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/utils/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAGxC,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,IAAI,IAAI,MAAM,OAAO,OAAO,CAAC,WAAuD,CAAA"}
@@ -1,14 +0,0 @@
1
- export * from './commonOptions';
2
- export * from './constants';
3
- export * from './defaultLineOptions';
4
- export * from './stackedBarUtil';
5
- export * from './customColors';
6
- export * from './format-timestamps';
7
- export * from './queryError';
8
- export * from './metric-units';
9
- export * from './percentiles';
10
- export * from './theme-colors';
11
- export * from './scatter-adapters';
12
- export * from './i18n';
13
- export * from './field-label';
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const isNoSuffixMetric: (unit: string) => boolean;
2
- export declare const isSummableMetric: (name: string) => boolean;
3
- //# sourceMappingURL=metric-units.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metric-units.d.ts","sourceRoot":"","sources":["../../../src/utils/metric-units.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,OAE/C,CAAA;AAID,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,OAK/C,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const percentileOfSorted: (sorted: number[], percentile: number) => number;
2
- export declare const computePercentiles: (values: number[], percentiles: number[]) => Map<number, number>;
3
- //# sourceMappingURL=percentiles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"percentiles.d.ts","sourceRoot":"","sources":["../../../src/utils/percentiles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,EAAE,EAAE,YAAY,MAAM,KAAG,MAsBzE,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,EAAE,EAAE,aAAa,MAAM,EAAE,KAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAI9F,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { QueryError } from '../types';
2
- export declare const isCancellationError: (error: any) => boolean;
3
- export declare const handleQueryError: (error: any) => QueryError;
4
- //# sourceMappingURL=queryError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"queryError.d.ts","sourceRoot":"","sources":["../../../src/utils/queryError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAI1C,eAAO,MAAM,mBAAmB,GAAI,OAAO,GAAG,KAAG,OAEhD,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,OAAO,GAAG,KAAG,UAuC7C,CAAA"}
@@ -1,25 +0,0 @@
1
- import type { Display, ExploreResultV4, FetchAllRequestsResult } from '@kong-ui-public/analytics-utilities';
2
- import type { ScatterChartData } from '../types';
3
- /**
4
- * Reduces an explore result to scatter input, plotting one point per record.
5
- *
6
- * With two or more metrics, the first is plotted on the x axis and the second on the y axis.
7
- */
8
- export declare const exploreResultToScatterData: (result: ExploreResultV4 | undefined) => ScatterChartData | undefined;
9
- export interface ScatterExtraField {
10
- field: string;
11
- label?: string;
12
- unit?: string;
13
- }
14
- export interface RequestsToScatterDataOptions {
15
- metric: string;
16
- dimension?: string;
17
- /** A nested object to expand into one point per entry. */
18
- unroll?: string;
19
- timestamp?: string;
20
- display?: Display;
21
- extraFields?: ScatterExtraField[];
22
- metricUnit?: string;
23
- }
24
- export declare const requestsToScatterData: (result: FetchAllRequestsResult | undefined, options: RequestsToScatterDataOptions) => ScatterChartData | undefined;
25
- //# sourceMappingURL=scatter-adapters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scatter-adapters.d.ts","sourceRoot":"","sources":["../../../src/utils/scatter-adapters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,OAAO,EACP,eAAe,EACf,sBAAsB,EAEvB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAuC,MAAM,UAAU,CAAA;AAIrF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,QAAQ,eAAe,GAAG,SAAS,KAAG,gBAAgB,GAAG,SA8DnG,CAAA;AA4ED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,iBAAiB,EAAE,CAAA;IACjC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,qBAAqB,GAChC,QAAQ,sBAAsB,GAAG,SAAS,EAC1C,SAAS,4BAA4B,KACpC,gBAAgB,GAAG,SAgDrB,CAAA"}
@@ -1,9 +0,0 @@
1
- import type { Chart, ChartData, DefaultDataPoint } from 'chart.js';
2
- export type BarChartData = ChartData<'bar', DefaultDataPoint<'bar'>, string>;
3
- export declare const formatNumber: (value: number, unit: string) => string;
4
- export declare const getTextWidth: (text: string) => number;
5
- export declare const getTextHeight: () => number;
6
- export declare const dataTotal: (data: BarChartData) => number;
7
- export declare const conditionalDataTotal: (chart: Chart, data: BarChartData) => number;
8
- export declare const drawPercentage: (value: number, total: number) => string;
9
- //# sourceMappingURL=stackedBarUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stackedBarUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/stackedBarUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAKlE,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAA;AAI5E,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,EAAE,MAAM,MAAM,WAWvD,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,WAYxC,CAAA;AAED,eAAO,MAAM,aAAa,QAAO,MAYhC,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,MAAM,YAAY,WAGzC,CAAA;AAEH,eAAO,MAAM,oBAAoB,GAAI,OAAO,KAAK,EAAE,MAAM,YAAY,WAO9D,CAAA;AAEP,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,EAAE,OAAO,MAAM,WAQ1D,CAAA"}
@@ -1,8 +0,0 @@
1
- export interface ScatterChartColors {
2
- medianLine: string;
3
- outlier: string;
4
- outlierBand: string;
5
- }
6
- export declare const withAlpha: (value: string, alpha: number) => string;
7
- export declare const scatterChartColors: (element?: Element | null) => ScatterChartColors;
8
- //# sourceMappingURL=theme-colors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-colors.d.ts","sourceRoot":"","sources":["../../../src/utils/theme-colors.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,EAAE,OAAO,MAAM,KAAG,MAQxD,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,UAAU,OAAO,GAAG,IAAI,KAAG,kBAyB7D,CAAA"}
@@ -1,31 +0,0 @@
1
- /**
2
- * Legacy TopNTable helpers, retained until the deprecated component is removed.
3
- * Dashboard TopN mapping now lives in dashboard-renderer; generic cell
4
- * presentation lives in table-data-grid. New code should use those components
5
- * rather than importing these internal helpers.
6
- */
7
- import type { TopNColumnOptions } from '@kong-ui-public/analytics-utilities';
8
- /** @deprecated Retained only for the deprecated TopNTable component. */
9
- export type TopNColumnOptionsMap = Record<string, TopNColumnOptions>;
10
- /** @deprecated Retained only for the deprecated TopNTable component. */
11
- export type TopNColumnStats = {
12
- sum: number;
13
- max: number;
14
- };
15
- /** @deprecated Retained only for the deprecated TopNTable component. */
16
- export type TopNThresholdType = 'warning' | 'error';
17
- type TopNThreshold = NonNullable<TopNColumnOptions['thresholds']>[number];
18
- /** @deprecated Retained only for the deprecated TopNTable component. */
19
- export declare const getColumnOptions: (options: TopNColumnOptionsMap | undefined, key: string) => TopNColumnOptions | undefined;
20
- /** @deprecated Retained only for the deprecated TopNTable component. */
21
- export declare const toNumber: (value: unknown) => number | null;
22
- /** @deprecated Retained only for the deprecated TopNTable component. */
23
- export declare const getColumnStats: (values: Array<number | null>) => TopNColumnStats;
24
- /** @deprecated Retained only for the deprecated TopNTable component. */
25
- export declare const getRelativeValue: (value: number, stats: TopNColumnStats) => number | null;
26
- /** @deprecated Retained only for the deprecated TopNTable component. */
27
- export declare const getBarRatio: (value: number, stats: TopNColumnStats, scale: TopNColumnOptions["bar"]) => number;
28
- /** @deprecated Retained only for the deprecated TopNTable component. */
29
- export declare const getThresholdType: (value: number, thresholds: TopNThreshold[] | undefined) => TopNThresholdType | undefined;
30
- export {};
31
- //# sourceMappingURL=topn-columns.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topn-columns.d.ts","sourceRoot":"","sources":["../../../src/utils/topn-columns.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAE5E,wEAAwE;AACxE,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;AAEpE,wEAAwE;AACxE,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,wEAAwE;AACxE,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,CAAA;AAEnD,KAAK,aAAa,GAAG,WAAW,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;AAEzE,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,GAAI,SAAS,oBAAoB,GAAG,SAAS,EAAE,KAAK,MAAM,KAAG,iBAAiB,GAAG,SAQ7G,CAAA;AAED,wEAAwE;AACxE,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,IAQlD,CAAA;AAED,wEAAwE;AACxE,eAAO,MAAM,cAAc,GAAI,QAAQ,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,KAAG,eAW7D,CAAA;AAED,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,EAAE,OAAO,eAAe,KAAG,MAAM,GAAG,IAEjF,CAAA;AAED,wEAAwE;AACxE,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,OAAO,eAAe,EAAE,OAAO,iBAAiB,CAAC,KAAK,CAAC,KAAG,MAQpG,CAAA;AAED,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,EAAE,YAAY,aAAa,EAAE,GAAG,SAAS,KAAG,iBAAiB,GAAG,SAW7G,CAAA"}