@kong-ui-public/analytics-chart 10.13.7 → 10.13.8-pr.2800.3190ac720.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 (122) hide show
  1. package/package.json +4 -4
  2. package/dist/style.css +0 -1
  3. package/dist/types/components/AnalyticsChart.vue.d.ts +0 -38
  4. package/dist/types/components/AnalyticsChart.vue.d.ts.map +0 -1
  5. package/dist/types/components/CsvExportModal.vue.d.ts +0 -16
  6. package/dist/types/components/CsvExportModal.vue.d.ts.map +0 -1
  7. package/dist/types/components/DownloadCsv.vue.d.ts +0 -20
  8. package/dist/types/components/DownloadCsv.vue.d.ts.map +0 -1
  9. package/dist/types/components/SimpleChart.vue.d.ts +0 -74
  10. package/dist/types/components/SimpleChart.vue.d.ts.map +0 -1
  11. package/dist/types/components/SparklineChart.vue.d.ts +0 -95
  12. package/dist/types/components/SparklineChart.vue.d.ts.map +0 -1
  13. package/dist/types/components/TopNTable.vue.d.ts +0 -37
  14. package/dist/types/components/TopNTable.vue.d.ts.map +0 -1
  15. package/dist/types/components/ZoomActions.vue.d.ts +0 -15
  16. package/dist/types/components/ZoomActions.vue.d.ts.map +0 -1
  17. package/dist/types/components/ZoomTimerange.vue.d.ts +0 -10
  18. package/dist/types/components/ZoomTimerange.vue.d.ts.map +0 -1
  19. package/dist/types/components/chart-plugins/ChartLegend.vue.d.ts +0 -36
  20. package/dist/types/components/chart-plugins/ChartLegend.vue.d.ts.map +0 -1
  21. package/dist/types/components/chart-plugins/ChartTooltip.vue.d.ts +0 -34
  22. package/dist/types/components/chart-plugins/ChartTooltip.vue.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/ThresholdPlugin.d.ts +0 -33
  28. package/dist/types/components/chart-plugins/ThresholdPlugin.d.ts.map +0 -1
  29. package/dist/types/components/chart-plugins/VerticalLinePlugin.d.ts +0 -29
  30. package/dist/types/components/chart-plugins/VerticalLinePlugin.d.ts.map +0 -1
  31. package/dist/types/components/chart-types/DonutChart.vue.d.ts +0 -28
  32. package/dist/types/components/chart-types/DonutChart.vue.d.ts.map +0 -1
  33. package/dist/types/components/chart-types/GaugeChart.vue.d.ts +0 -92
  34. package/dist/types/components/chart-types/GaugeChart.vue.d.ts.map +0 -1
  35. package/dist/types/components/chart-types/SingleValue.vue.d.ts +0 -68
  36. package/dist/types/components/chart-types/SingleValue.vue.d.ts.map +0 -1
  37. package/dist/types/components/chart-types/StackedBarChart.vue.d.ts +0 -33
  38. package/dist/types/components/chart-types/StackedBarChart.vue.d.ts.map +0 -1
  39. package/dist/types/components/chart-types/TimeSeriesChart.vue.d.ts +0 -52
  40. package/dist/types/components/chart-types/TimeSeriesChart.vue.d.ts.map +0 -1
  41. package/dist/types/components/vue-json-csv/VueJsonCsv.vue.d.ts +0 -166
  42. package/dist/types/components/vue-json-csv/VueJsonCsv.vue.d.ts.map +0 -1
  43. package/dist/types/composables/index.d.ts +0 -31
  44. package/dist/types/composables/index.d.ts.map +0 -1
  45. package/dist/types/composables/useBarChartOptions.d.ts +0 -118
  46. package/dist/types/composables/useBarChartOptions.d.ts.map +0 -1
  47. package/dist/types/composables/useChartJSCommon.d.ts +0 -5
  48. package/dist/types/composables/useChartJSCommon.d.ts.map +0 -1
  49. package/dist/types/composables/useChartLegendValues.d.ts +0 -6
  50. package/dist/types/composables/useChartLegendValues.d.ts.map +0 -1
  51. package/dist/types/composables/useChartSelectedRange.d.ts +0 -4
  52. package/dist/types/composables/useChartSelectedRange.d.ts.map +0 -1
  53. package/dist/types/composables/useDonutChartOptions.d.ts +0 -41
  54. package/dist/types/composables/useDonutChartOptions.d.ts.map +0 -1
  55. package/dist/types/composables/useEvauluateFeatureFlag.d.ts +0 -4
  56. package/dist/types/composables/useEvauluateFeatureFlag.d.ts.map +0 -1
  57. package/dist/types/composables/useExploreResultToDatasets.d.ts +0 -5
  58. package/dist/types/composables/useExploreResultToDatasets.d.ts.map +0 -1
  59. package/dist/types/composables/useExploreResultToTimeDatasets.d.ts +0 -6
  60. package/dist/types/composables/useExploreResultToTimeDatasets.d.ts.map +0 -1
  61. package/dist/types/composables/useI18n.d.ts +0 -9
  62. package/dist/types/composables/useI18n.d.ts.map +0 -1
  63. package/dist/types/composables/useLineChartOptions.d.ts +0 -115
  64. package/dist/types/composables/useLineChartOptions.d.ts.map +0 -1
  65. package/dist/types/composables/useReportChartDataForSynthetics.d.ts +0 -9
  66. package/dist/types/composables/useReportChartDataForSynthetics.d.ts.map +0 -1
  67. package/dist/types/composables/useSparklineSync.d.ts +0 -30
  68. package/dist/types/composables/useSparklineSync.d.ts.map +0 -1
  69. package/dist/types/composables/useTooltipAbsolutePosition.d.ts +0 -9
  70. package/dist/types/composables/useTooltipAbsolutePosition.d.ts.map +0 -1
  71. package/dist/types/composables/useTranslatedUnits.d.ts +0 -4
  72. package/dist/types/composables/useTranslatedUnits.d.ts.map +0 -1
  73. package/dist/types/constants/index.d.ts +0 -3
  74. package/dist/types/constants/index.d.ts.map +0 -1
  75. package/dist/types/enums/chart-legend-position.enum.d.ts +0 -5
  76. package/dist/types/enums/chart-legend-position.enum.d.ts.map +0 -1
  77. package/dist/types/enums/index.d.ts +0 -2
  78. package/dist/types/enums/index.d.ts.map +0 -1
  79. package/dist/types/index.d.ts +0 -13
  80. package/dist/types/index.d.ts.map +0 -1
  81. package/dist/types/types/chart-data.d.ts +0 -178
  82. package/dist/types/types/chart-data.d.ts.map +0 -1
  83. package/dist/types/types/chart-export.d.ts +0 -20
  84. package/dist/types/types/chart-export.d.ts.map +0 -1
  85. package/dist/types/types/chart-types.d.ts +0 -6
  86. package/dist/types/types/chart-types.d.ts.map +0 -1
  87. package/dist/types/types/chartjs-options.d.ts +0 -68
  88. package/dist/types/types/chartjs-options.d.ts.map +0 -1
  89. package/dist/types/types/dataset-generation-types.d.ts +0 -14
  90. package/dist/types/types/dataset-generation-types.d.ts.map +0 -1
  91. package/dist/types/types/explore-to-dataset-deps.d.ts +0 -18
  92. package/dist/types/types/explore-to-dataset-deps.d.ts.map +0 -1
  93. package/dist/types/types/external-link.d.ts +0 -4
  94. package/dist/types/types/external-link.d.ts.map +0 -1
  95. package/dist/types/types/index.d.ts +0 -10
  96. package/dist/types/types/index.d.ts.map +0 -1
  97. package/dist/types/types/query-error.d.ts +0 -7
  98. package/dist/types/types/query-error.d.ts.map +0 -1
  99. package/dist/types/types/zoom-action-item.d.ts +0 -9
  100. package/dist/types/types/zoom-action-item.d.ts.map +0 -1
  101. package/dist/types/utils/bucketTimestamps.d.ts +0 -8
  102. package/dist/types/utils/bucketTimestamps.d.ts.map +0 -1
  103. package/dist/types/utils/colors.d.ts +0 -30
  104. package/dist/types/utils/colors.d.ts.map +0 -1
  105. package/dist/types/utils/commonOptions.d.ts +0 -22
  106. package/dist/types/utils/commonOptions.d.ts.map +0 -1
  107. package/dist/types/utils/constants.d.ts +0 -5
  108. package/dist/types/utils/constants.d.ts.map +0 -1
  109. package/dist/types/utils/customColors.d.ts +0 -10
  110. package/dist/types/utils/customColors.d.ts.map +0 -1
  111. package/dist/types/utils/defaultLineOptions.d.ts +0 -9
  112. package/dist/types/utils/defaultLineOptions.d.ts.map +0 -1
  113. package/dist/types/utils/format-timestamps.d.ts +0 -13
  114. package/dist/types/utils/format-timestamps.d.ts.map +0 -1
  115. package/dist/types/utils/index.d.ts +0 -9
  116. package/dist/types/utils/index.d.ts.map +0 -1
  117. package/dist/types/utils/queryError.d.ts +0 -3
  118. package/dist/types/utils/queryError.d.ts.map +0 -1
  119. package/dist/types/utils/stackedBarUtil.d.ts +0 -9
  120. package/dist/types/utils/stackedBarUtil.d.ts.map +0 -1
  121. package/dist/vitals-chart.es.js +0 -22781
  122. package/dist/vitals-chart.umd.js +0 -43
@@ -1,14 +0,0 @@
1
- import type { AnalyticsChartColors, DatasetLabel } from '../types';
2
- export interface BarChartDatasetGenerationParams {
3
- metricNames: string[];
4
- dimensionFieldNames: string[];
5
- barSegmentLabels: DatasetLabel[];
6
- pivotRecords: {
7
- [k: string]: string | number | null | undefined;
8
- };
9
- rowLabels: DatasetLabel[];
10
- colorPalette: string[] | AnalyticsChartColors;
11
- isMultiMetric?: boolean;
12
- hasDimensions?: boolean;
13
- }
14
- //# sourceMappingURL=dataset-generation-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataset-generation-types.d.ts","sourceRoot":"","sources":["../../../src/types/dataset-generation-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAElE,MAAM,WAAW,+BAA+B;IAC9C,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,mBAAmB,EAAE,MAAM,EAAE,CAAA;IAC7B,gBAAgB,EAAE,YAAY,EAAE,CAAA;IAChC,YAAY,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;KAAE,CAAA;IACjE,SAAS,EAAE,YAAY,EAAE,CAAA;IACzB,YAAY,EAAE,MAAM,EAAE,GAAG,oBAAoB,CAAA;IAC7C,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB"}
@@ -1,18 +0,0 @@
1
- import type { AnalyticsChartColors, Threshold } from './chart-data';
2
- import type { ExploreAggregations } from '@kong-ui-public/analytics-utilities';
3
- /**
4
- * Interace representing the various options
5
- * that can be provided to the useExploreResultToTimeddatasets composable
6
- *
7
- * fill
8
- * - determines if the generated should have the area under the line filled
9
- * useMetricForColor
10
- * - determines if colors should be generated based on the metrics
11
- * - if false, colors will be auto generated using the generic datavis palette
12
- */
13
- export interface ExploreToDatasetDeps {
14
- colorPalette?: AnalyticsChartColors | string[];
15
- fill?: boolean;
16
- threshold?: Record<ExploreAggregations, Threshold[]>;
17
- }
18
- //# sourceMappingURL=explore-to-dataset-deps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"explore-to-dataset-deps.d.ts","sourceRoot":"","sources":["../../../src/types/explore-to-dataset-deps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AAE9E;;;;;;;;;GASG;AACH,MAAM,WAAW,oBAAoB;IACnC,YAAY,CAAC,EAAE,oBAAoB,GAAG,MAAM,EAAE,CAAA;IAC9C,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAC,mBAAmB,EAAE,SAAS,EAAE,CAAC,CAAA;CACrD"}
@@ -1,4 +0,0 @@
1
- export interface ExternalLink {
2
- href: string;
3
- }
4
- //# sourceMappingURL=external-link.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"external-link.d.ts","sourceRoot":"","sources":["../../../src/types/external-link.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;CACb"}
@@ -1,10 +0,0 @@
1
- export * from './chart-data';
2
- export * from './chart-export';
3
- export * from './chart-types';
4
- export * from './chartjs-options';
5
- export * from './explore-to-dataset-deps';
6
- export * from './dataset-generation-types';
7
- export * from './zoom-action-item';
8
- export * from './external-link';
9
- export * from './query-error';
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
@@ -1,7 +0,0 @@
1
- export interface QueryError {
2
- status: number;
3
- type: 'forbidden' | 'timeout' | 'range_exceeded' | 'other';
4
- message: string;
5
- details?: string;
6
- }
7
- //# sourceMappingURL=query-error.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"query-error.d.ts","sourceRoot":"","sources":["../../../src/types/query-error.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,WAAW,GAAG,SAAS,GAAG,gBAAgB,GAAG,OAAO,CAAA;IAC1D,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB"}
@@ -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,30 +0,0 @@
1
- import type { AnalyticsChartColors, ThresholdType } from '../../src/types';
2
- interface StatusCodeColor {
3
- background: string;
4
- text: string;
5
- }
6
- interface StatusCodeColors {
7
- [statusCode: number]: StatusCodeColor;
8
- }
9
- export declare const datavisPalette: string[];
10
- export declare const lookupDatavisColor: (idx: number, customPalette?: string[]) => string;
11
- export declare const darkenColor: (hex: string, amt: number) => string;
12
- export declare const accessibleGrey = "#6f7787";
13
- export declare const apiRequestStatusCodeColors: StatusCodeColors;
14
- export declare const statusCodeBadgeBackgroundColor: (statusCode: string) => string;
15
- export declare const trafficColors: AnalyticsChartColors;
16
- export declare const errorRateColors: AnalyticsChartColors;
17
- export declare const latencyColors: AnalyticsChartColors;
18
- export declare const OTHERS_COLOR = "#dad4c7";
19
- export declare const EMPTY_COLOR = "#afb7c5";
20
- /**
21
- * Maps the first character of a dataset's label to a predefined list of colors
22
- */
23
- export declare const lookupColor: (label: string) => {
24
- solid: string;
25
- light: string;
26
- };
27
- export declare const determineBaseColor: (i: number, dimensionName: string, isEmpty: boolean, colorPalette: string[] | AnalyticsChartColors) => string;
28
- export declare const thresholdColor: (type: ThresholdType) => string;
29
- export {};
30
- //# sourceMappingURL=colors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../src/utils/colors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE1E,UAAU,eAAe;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb;AACD,UAAU,gBAAgB;IACxB,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,CAAA;CACtC;AAoBD,eAAO,MAAM,cAAc,UAM1B,CAAA;AAGD,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,EAAE,gBAAgB,MAAM,EAAE,WAGvE,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,EAAE,KAAK,MAAM,KAAG,MAoCtD,CAAA;AAED,eAAO,MAAM,cAAc,YAAY,CAAA;AAEvC,eAAO,MAAM,0BAA0B,EAAE,gBAMxC,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAI,YAAY,MAAM,WAIhE,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,oBAG3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,oBAG7B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,oBAI3B,CAAA;AAED,eAAO,MAAM,YAAY,YAAY,CAAA;AACrC,eAAO,MAAM,WAAW,YAAY,CAAA;AAEpC;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM;;;CAIxC,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,GAAG,MAAM,EAAE,eAAe,MAAM,EAAE,SAAS,OAAO,EAAE,cAAc,MAAM,EAAE,GAAG,oBAAoB,KAAG,MAYtI,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,aAAa,KAAG,MAWpD,CAAA"}
@@ -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) => 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,EAAE,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAKpL,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,KAAK,MAAM,GAAG,MAAM,CAAA;CAClF,KACC,IA4CH,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,5 +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
- //# 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"}
@@ -1,10 +0,0 @@
1
- import type { AnalyticsChartColors } from 'src/types';
2
- export declare const lightGrey = "#e0e4ea";
3
- export declare const codesInSpec: Map<number, Map<number, string>>;
4
- export declare const lookupStatusCodeColor: (label: string) => string;
5
- export declare const lookupStatusCodeCategoryColor: (label: string) => {
6
- solid: string;
7
- light: string;
8
- };
9
- export declare const defaultStatusCodeColors: AnalyticsChartColors;
10
- //# 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;AAErD,eAAO,MAAM,SAAS,YAAY,CAAA;AAsClC,eAAO,MAAM,WAAW,kCAStB,CAAA;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,MAAM,WAalD,CAAA;AAED,eAAO,MAAM,6BAA6B,GAAI,OAAO,MAAM;;;CAI1D,CAAA;AAID,eAAO,MAAM,uBAAuB,EAAE,oBAarC,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,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,9 +0,0 @@
1
- export * from './commonOptions';
2
- export * from './constants';
3
- export * from './colors';
4
- export * from './defaultLineOptions';
5
- export * from './stackedBarUtil';
6
- export * from './customColors';
7
- export * from './format-timestamps';
8
- export * from './queryError';
9
- //# 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,UAAU,CAAA;AACxB,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { QueryError } from '../types';
2
- export declare const handleQueryError: (error: any) => QueryError;
3
- //# 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,gBAAgB,GAAI,OAAO,GAAG,KAAG,UAgC7C,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"}