@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 +0,0 @@
1
- {"version":3,"file":"useTooltipAbsolutePosition.d.ts","sourceRoot":"","sources":["../../../src/composables/useTooltipAbsolutePosition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGxC,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,cAAc,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;;;EAkB/I"}
@@ -1,10 +0,0 @@
1
- import type { Ref } from 'vue';
2
- import type { AllAggregations, ExploreResultV4 } from '@kong-ui-public/analytics-utilities';
3
- import type { TopNColumnOptionsMap } from '../utils/topn-columns';
4
- import type { TopTalkersCellData, TopTalkersColumnData } from '../types/top-talkers';
5
- export default function useTopTalkersData(data: Ref<ExploreResultV4 | undefined>, dimension: Ref<string>, sizeMetric: Ref<string | undefined>, columnOptions: Ref<TopNColumnOptionsMap | undefined>): {
6
- column: import("vue").ComputedRef<TopTalkersColumnData>;
7
- cells: import("vue").ComputedRef<TopTalkersCellData[]>;
8
- sizeKey: import("vue").ComputedRef<AllAggregations | undefined>;
9
- };
10
- //# sourceMappingURL=useTopTalkersData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTopTalkersData.d.ts","sourceRoot":"","sources":["../../../src/composables/useTopTalkersData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC9B,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAqB,MAAM,uBAAuB,CAAA;AACpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAwB,MAAM,sBAAsB,CAAA;AAiB1G,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,IAAI,EAAE,GAAG,CAAC,eAAe,GAAG,SAAS,CAAC,EACtC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,EACtB,UAAU,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,EACnC,aAAa,EAAE,GAAG,CAAC,oBAAoB,GAAG,SAAS,CAAC;;;;EAgIrD"}
@@ -1,4 +0,0 @@
1
- export default function useTranslatedUnits(): {
2
- translateUnit: (unit: string, rawValue: number) => string;
3
- };
4
- //# sourceMappingURL=useTranslatedUnits.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTranslatedUnits.d.ts","sourceRoot":"","sources":["../../../src/composables/useTranslatedUnits.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,kBAAkB;0BAGX,MAAM,YAAY,MAAM;EAkBtD"}
@@ -1,8 +0,0 @@
1
- export declare const INJECT_QUERY_PROVIDER = "analytics-query-provider";
2
- export declare const INJECT_DASHBOARD_COORDINATOR = "analytics-dashboard-coordinator";
3
- export declare const SINGLE_VALUE_DEFAULT_DECIMAL_POINTS = 2;
4
- /** The remainder bucket on a limited group-by */
5
- export declare const OTHER_DIMENSION_ID = "____OTHER____";
6
- /** A record that has no value for the grouped dimension. */
7
- export declare const EMPTY_DIMENSION_ID = "empty";
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,6BAA6B,CAAA;AAC/D,eAAO,MAAM,4BAA4B,oCAAoC,CAAA;AAC7E,eAAO,MAAM,mCAAmC,IAAI,CAAA;AAEpD,iDAAiD;AACjD,eAAO,MAAM,kBAAkB,kBAAkB,CAAA;AAEjD,4DAA4D;AAC5D,eAAO,MAAM,kBAAkB,UAAU,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare enum ChartLegendPosition {
2
- Hidden = "hidden",
3
- Bottom = "bottom"
4
- }
5
- //# sourceMappingURL=chart-legend-position.enum.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chart-legend-position.enum.d.ts","sourceRoot":"","sources":["../../../src/enums/chart-legend-position.enum.ts"],"names":[],"mappings":"AACA,oBAAY,mBAAmB;IAC7B,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
@@ -1,2 +0,0 @@
1
- export * from './chart-legend-position.enum';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
@@ -1,24 +0,0 @@
1
- import AnalyticsChart from './components/AnalyticsChart.vue';
2
- import SimpleChart from './components/SimpleChart.vue';
3
- import SparklineChart from './components/SparklineChart.vue';
4
- import TopTalkersGrid from './components/top-talkers/TopTalkersGrid.vue';
5
- import TopTalkersColumn from './components/top-talkers/TopTalkersColumn.vue';
6
- import LoadingOverlay from './components/LoadingOverlay.vue';
7
- export { AnalyticsChart, SimpleChart, SparklineChart, TopTalkersGrid, TopTalkersColumn, LoadingOverlay };
8
- export type { TopTalkersGridColumn } from './components/top-talkers/TopTalkersGrid.vue';
9
- /**
10
- * @deprecated Use dashboard-renderer for dashboard TopN tiles, or TableDataGrid
11
- * from '@kong-ui-public/table-data-grid' for new standalone tables.
12
- * Retained for existing consumers; removal will be handled separately.
13
- */
14
- export { default as TopNTable } from './components/TopNTable.vue';
15
- export * from './types';
16
- export * from './enums';
17
- export { lookupStatusCodeColor } from './utils/customColors';
18
- export * from './utils/constants';
19
- export { formatChartTicksByGranularity } from './utils/format-timestamps';
20
- export * from './utils/queryError';
21
- export * from './utils/scatter-adapters';
22
- export * from './utils/topn-columns';
23
- export { OTHER_DIMENSION_ID } from './constants';
24
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iCAAiC,CAAA;AAC5D,OAAO,WAAW,MAAM,8BAA8B,CAAA;AACtD,OAAO,cAAc,MAAM,iCAAiC,CAAA;AAC5D,OAAO,cAAc,MAAM,6CAA6C,CAAA;AACxE,OAAO,gBAAgB,MAAM,+CAA+C,CAAA;AAC5E,OAAO,cAAc,MAAM,iCAAiC,CAAA;AAE5D,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAA;AACxG,YAAY,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAEvF;;;;GAIG;AACH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAEjE,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,cAAc,mBAAmB,CAAA;AACjC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAA;AACzE,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA"}
@@ -1,296 +0,0 @@
1
- import type { ChartData, ChartDataset, LegendItem } from 'chart.js';
2
- import type { ChartTooltipSortFn, YAxisConfig } from './chartjs-options';
3
- import type { ChartType, SimpleChartType } from './chart-types';
4
- import type { ExploreAggregations, YAxisPosition } from '@kong-ui-public/analytics-utilities';
5
- import type { ScatterPointExtra } from './scatter-data';
6
- export type Dataset = ChartDataset & {
7
- rawDimension: string;
8
- rawMetric?: string;
9
- total?: number;
10
- lineTension?: number;
11
- fill?: boolean;
12
- isThreshold?: boolean;
13
- isSegmentEmpty?: boolean;
14
- unit?: string;
15
- };
16
- export interface KChartData extends ChartData {
17
- datasets: Dataset[];
18
- labels?: string[];
19
- isLabelEmpty?: boolean[];
20
- isMultiDimension?: boolean;
21
- outlier?: ScatterOutlier;
22
- referenceLines?: ResolvedReferenceLine[];
23
- }
24
- export interface AnalyticsDataPoint {
25
- x: number;
26
- y: number;
27
- }
28
- /**
29
- * A label for the chart tooltip instead of using the dataset's label.
30
- * Scatter plots need this for outliers as they would show the "Outlier..." label
31
- */
32
- export interface LabeledDataPoint extends AnalyticsDataPoint {
33
- tooltipLabel?: string;
34
- extras?: ScatterPointExtra[];
35
- }
36
- /**
37
- * Dimension value to color hex code mapping
38
- * for custom color palettes
39
- *
40
- * Use for deterministic dimension values for example
41
- * graphing requests by status code over time, dimensions
42
- * are known ahead of time they will be 2xx, 3xx, 4xx, 5xx
43
- */
44
- export interface AnalyticsChartColors {
45
- [dimensionValue: string]: string;
46
- }
47
- export interface LegendValueEntry {
48
- raw: number;
49
- formatted: string;
50
- isThreshold?: boolean;
51
- }
52
- /**
53
- * Legend item with enhanced value
54
- */
55
- export interface EnhancedLegendItem extends LegendItem {
56
- value: LegendValueEntry;
57
- text: string;
58
- isSegmentEmpty?: boolean;
59
- /**
60
- * A key is not tied to a specific dataset, only used for extra things in a chart like
61
- * outliers, thresholds, etc. They also don't toggle anything and always show their value.
62
- */
63
- isKey?: boolean;
64
- }
65
- /**
66
- * Chart dataset sort function
67
- */
68
- export type ChartLegendSortFn = (a: EnhancedLegendItem, b: EnhancedLegendItem) => number;
69
- export type ThresholdType = 'warning' | 'error' | 'neutral';
70
- export interface Threshold {
71
- type: ThresholdType;
72
- value: number;
73
- label?: string;
74
- highlightIntersections?: boolean;
75
- }
76
- /**
77
- * A horizontal reference line drawn at a percentile of the plotted y-values.
78
- */
79
- export interface ScatterPercentileLine {
80
- /**
81
- * Percentile to draw, 0 to 100.
82
- */
83
- percentile: number;
84
- /**
85
- * Overrides the default label.
86
- */
87
- label?: string;
88
- /**
89
- * Dash pattern for the line, defaults to a dashed [6, 4] for the median and a
90
- * dotted [2, 3] for anything else.
91
- */
92
- borderDash?: number[];
93
- /**
94
- * Line color, defaults to neutral text for the median, danger for anything above it.
95
- */
96
- color?: string;
97
- }
98
- export interface ResolvedReferenceLine {
99
- percentile: number;
100
- label: string;
101
- value: number;
102
- color: string;
103
- borderDash: number[];
104
- }
105
- export interface ScatterOutlier {
106
- value: number;
107
- /**
108
- * Legend key text, e.g. "Outlier (> p95)".
109
- */
110
- label: string;
111
- color: string;
112
- }
113
- export interface ScatterOptions {
114
- /**
115
- * Reference lines derived from the plotted y-values, defaults to none.
116
- */
117
- percentileLines?: ScatterPercentileLine[];
118
- /**
119
- * Percentile above which points are colored as outliers, defaults to undefined
120
- */
121
- outlierPercentile?: number;
122
- /**
123
- * Shade the chart region above `outlierPercentile`, defaults to false.
124
- */
125
- shadeOutlierRegion?: boolean;
126
- /**
127
- * Maximum horizontal jitter, applied to points so that records sharing a timestamp
128
- * don't stack into a single column, defaults to 0 (no jitter).
129
- */
130
- jitterMs?: number;
131
- /**
132
- * Radius of each plotted point, defaults to 2.
133
- */
134
- pointRadius?: number;
135
- /**
136
- * Opacity of the plotted points between 0 and 1, defaults to 0.6
137
- * Doesn't apply to outlier points
138
- */
139
- pointOpacity?: number;
140
- }
141
- /**
142
- * Analytics Chart options
143
- */
144
- export interface AnalyticsChartOptions {
145
- /**
146
- * Chart type
147
- */
148
- type: ChartType;
149
- /**
150
- * Are the datasets stacked or not.
151
- * If stacked, the datasets are stacked on top of each other.
152
- * Applies to timeseries charts as well as bar charts.
153
- */
154
- stacked?: boolean;
155
- /**
156
- * Title to display for the metric axis
157
- * If not provided, show nothing
158
- */
159
- metricAxesTitle?: string;
160
- /**
161
- * Title to display for the dimension axis
162
- * If not provided, show nothing
163
- */
164
- dimensionAxesTitle?: string;
165
- /**
166
- * Chart dataset color palette
167
- */
168
- chartDatasetColors?: AnalyticsChartColors | string[];
169
- /**
170
- * Sort the datasets as they are displayed in the legend and tooltip
171
- */
172
- chartLegendSortFn?: ChartLegendSortFn;
173
- /**
174
- * Sort tooltip entries
175
- */
176
- chartTooltipSortFn?: ChartTooltipSortFn;
177
- /**
178
- * A static or dynamic metric threshold to be displayed on a timeseries chart
179
- */
180
- threshold?: Record<ExploreAggregations, Threshold[]>;
181
- /**
182
- * Maps a metric to the specified y axis, by default the metric will use the left y axis. This
183
- * only applies to timeseries_line chart
184
- */
185
- metricAxisMap?: Partial<Record<string, YAxisPosition>>;
186
- /**
187
- * Axes title and grid line overrides for timeseries charts
188
- */
189
- yAxes?: {
190
- left?: YAxisConfig;
191
- right?: YAxisConfig;
192
- };
193
- /**
194
- * Hide the truncation warning. Used if manually setting a limit
195
- */
196
- hideTruncationWarning?: boolean;
197
- /**
198
- * Show a total metric value in the center of the donut chart.
199
- * Only applies when type is 'donut'.
200
- */
201
- showCenterMetric?: boolean;
202
- /**
203
- * Scatter plot options, only applies when type is 'scatter'.
204
- */
205
- scatter?: ScatterOptions;
206
- }
207
- /**
208
- * Metric display for simple charts
209
- */
210
- export declare const simpleChartMetricDisplay: readonly ["hidden", "single", "full"];
211
- export type SimpleChartMetricDisplay = typeof simpleChartMetricDisplay[number];
212
- export type AlignX = 'left' | 'center' | 'right' | 'between' | 'around' | 'evenly';
213
- /**
214
- * Simple Chart options
215
- */
216
- export interface SimpleChartOptions {
217
- /**
218
- * Chart type
219
- */
220
- type: SimpleChartType;
221
- /**
222
- * Chart dataset color palette
223
- */
224
- chartDatasetColors?: AnalyticsChartColors | string[];
225
- /**
226
- * Determines how much detail about the metric (eg: value, info text, etc) is to be shown in the center
227
- */
228
- metricDisplay?: SimpleChartMetricDisplay;
229
- /**
230
- * Determines whether the dataset order will be reversed
231
- */
232
- reverseDataset?: boolean;
233
- /**
234
- * Determines which dataset value will be display as large text
235
- */
236
- numerator?: number;
237
- /**
238
- * Determines number of decimal points to display in SingleValue chart
239
- */
240
- decimalPoints?: number;
241
- /**
242
- * Determines whether to show trend line in chart
243
- */
244
- showTrend?: boolean;
245
- /**
246
- * Determines whether increase is bad for trend line
247
- */
248
- increaseIsBad?: boolean;
249
- /**
250
- * Determines alignment of the chart
251
- */
252
- alignX?: AlignX;
253
- /** SingleValue only: hides the metric name and uses font with an inline trend */
254
- compact?: boolean;
255
- /** SingleValue only: hides the metric name below the value without changing the layout */
256
- hideMetricName?: boolean;
257
- }
258
- export interface LegendValues {
259
- [label: string]: LegendValueEntry;
260
- }
261
- export interface DonutChartData {
262
- labels: string[];
263
- backgroundColor: string[];
264
- borderColor: string;
265
- borderWidth: number;
266
- hoverBorderColor: string[];
267
- hoverBorderWidth: number;
268
- data: number[];
269
- hoverOffset: number;
270
- }
271
- export interface DatasetLabel {
272
- name: string;
273
- id: string;
274
- }
275
- export interface TopNTableRecord {
276
- id: string;
277
- name: string;
278
- deleted: boolean;
279
- dimension: string;
280
- dimensions?: Array<{
281
- dimension: string;
282
- id: string;
283
- name: string;
284
- deleted: boolean;
285
- }>;
286
- isEmpty?: boolean;
287
- }
288
- export interface SparklineDataset {
289
- color?: string;
290
- /**
291
- * Must be unique for each dataset
292
- */
293
- label: string;
294
- timestamps: number[];
295
- }
296
- //# sourceMappingURL=chart-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chart-data.d.ts","sourceRoot":"","sources":["../../../src/types/chart-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,eA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AAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC;QACjB,SAAS,EAAE,MAAM,CAAA;QACjB,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,OAAO,CAAA;KACjB,CAAC,CAAA;IACF,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB"}
@@ -1,6 +0,0 @@
1
- import type { ResultMetaBase } from '@kong-ui-public/analytics-utilities';
2
- export type SharedMeta = Partial<ResultMetaBase> & {
3
- metricNames?: string[];
4
- metricUnits?: Record<string, string | undefined>;
5
- };
6
- //# sourceMappingURL=chart-meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chart-meta.d.ts","sourceRoot":"","sources":["../../../src/types/chart-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAEzE,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC,GAAG;IACjD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;CACjD,CAAA"}
@@ -1,6 +0,0 @@
1
- export declare const chartTypes: readonly ["donut", "horizontal_bar", "vertical_bar", "timeseries_line", "timeseries_bar", "scatter"];
2
- export type ChartType = typeof chartTypes[number];
3
- export declare const simpleChartTypes: readonly ["gauge", "top_n", "single_value"];
4
- export type SimpleChartType = typeof simpleChartTypes[number];
5
- export type SparklineType = 'sparkline_bar' | 'sparkline_line' | 'sparkline_step';
6
- //# sourceMappingURL=chart-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chart-types.d.ts","sourceRoot":"","sources":["../../../src/types/chart-types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,sGAOb,CAAA;AAEV,MAAM,MAAM,SAAS,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;AAEjD,eAAO,MAAM,gBAAgB,6CAInB,CAAA;AAEV,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;AAE7D,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAA"}
@@ -1,90 +0,0 @@
1
- import type { Ref, ComputedRef } from 'vue';
2
- import type { Chart, ChartType as ChartJsChartType, TooltipModel, Color } from 'chart.js';
3
- import type { ChartType } from './chart-types';
4
- import type { ExploreAggregations, GranularityValues } from '@kong-ui-public/analytics-utilities';
5
- import type { ResolvedReferenceLine, Threshold } from './chart-data';
6
- import type { ScatterChartColors } from '../utils/theme-colors';
7
- export interface TooltipEntry {
8
- backgroundColor: Color;
9
- borderColor: Color;
10
- label: string;
11
- value: string | number;
12
- rawValue: number;
13
- isSegmentEmpty?: boolean;
14
- isExtra?: boolean;
15
- }
16
- export type ChartTooltipSortFn = (a: TooltipEntry, b: TooltipEntry) => number;
17
- export type TooltipInteractionMode = 'idle' | 'interactive' | 'zoom-interactive' | 'selecting-chart-area';
18
- export interface TooltipState {
19
- showTooltip: boolean;
20
- tooltipContext: string | number;
21
- tooltipSeries: TooltipEntry[];
22
- left: string;
23
- top: string;
24
- units: string;
25
- translateUnit: (unit: string, value: number) => string;
26
- offsetX: number;
27
- offsetY: number;
28
- width: number;
29
- height: number;
30
- chartType: ChartType;
31
- chartID: string;
32
- chartTooltipSortFn?: ChartTooltipSortFn;
33
- interactionMode: TooltipInteractionMode;
34
- metricDisplay: string;
35
- dimensionDisplay?: string;
36
- }
37
- interface BaseChartOptions {
38
- tooltipState: TooltipState;
39
- legendID: string;
40
- stacked: Ref<boolean>;
41
- metricAxesTitle?: Ref<string | undefined>;
42
- dimensionAxesTitle?: Ref<string | undefined>;
43
- }
44
- export interface BarChartOptions extends BaseChartOptions {
45
- indexAxis: 'x' | 'y';
46
- numLabels: Ref<number>;
47
- }
48
- export interface LineChartOptions extends BaseChartOptions {
49
- timeRangeMs: Ref<number | undefined>;
50
- granularity: Ref<GranularityValues>;
51
- pointsWithoutHover?: ComputedRef<boolean | undefined>;
52
- threshold?: Readonly<Ref<Record<ExploreAggregations, Threshold[]> | undefined>>;
53
- leftYAxisGrid?: Readonly<Ref<boolean | undefined>>;
54
- rightYAxis?: Readonly<Ref<YAxisConfig | undefined>>;
55
- }
56
- export interface YAxisConfig {
57
- title?: string;
58
- showGrid?: boolean;
59
- }
60
- export interface ScatterChartOptions {
61
- tooltipState: TooltipState;
62
- legendID: string;
63
- granularity: Ref<GranularityValues>;
64
- timeRangeMs: Ref<number | undefined>;
65
- metricAxesTitle?: Ref<string | undefined>;
66
- dimensionAxesTitle?: Ref<string | undefined>;
67
- metricUnit?: Ref<string | undefined>;
68
- xMetric?: Ref<string | undefined>;
69
- xMetricUnit?: Ref<string | undefined>;
70
- outlierValue?: Ref<number | undefined>;
71
- referenceLines?: Ref<ResolvedReferenceLine[]>;
72
- themeColors: Ref<ScatterChartColors>;
73
- }
74
- export interface DonutChartOptions {
75
- tooltipState: TooltipState;
76
- legendID: string;
77
- }
78
- export interface AxesTooltipState {
79
- show: boolean;
80
- left: string;
81
- top: string;
82
- text: string;
83
- offset: number;
84
- }
85
- export interface ExternalTooltipContext {
86
- chart: Chart;
87
- tooltip: TooltipModel<ChartJsChartType>;
88
- }
89
- export {};
90
- //# sourceMappingURL=chartjs-options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chartjs-options.d.ts","sourceRoot":"","sources":["../../../src/types/chartjs-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,E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AAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,YAAY,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAW,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACpC,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACzC,kBAAkB,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC5C,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACpC,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACjC,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACrC,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACtC,cAAc,CAAC,EAAE,GAAG,CAAC,qBAAqB,EAAE,CAAC,CAAA;IAC7C,WAAW,EAAE,GAAG,CAAC,kBAAkB,CAAC,CAAA;CACrC;AAED,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,YAAY,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,KAAK,CAAA;IACZ,OAAO,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAA;CACxC"}
@@ -1,21 +0,0 @@
1
- import type { AnalyticsChartColors, Threshold } from './chart-data';
2
- import type { ExploreAggregations, YAxisPosition } 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
- * metricAxisMap
13
- * - maps a metric to the desired y axis, metrics by default will just use the left y axis
14
- */
15
- export interface ExploreToDatasetDeps {
16
- colorPalette?: AnalyticsChartColors | string[];
17
- fill?: boolean;
18
- threshold?: Record<ExploreAggregations, Threshold[]>;
19
- metricAxisMap?: Partial<Record<string, YAxisPosition>>;
20
- }
21
- //# 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,aAAa,EAAE,MAAM,qCAAqC,CAAA;AAE7F;;;;;;;;;;;GAWG;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;IACpD,aAAa,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAA;CACvD"}
@@ -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,11 +0,0 @@
1
- export * from './chart-data';
2
- export * from './chart-meta';
3
- export * from './chart-types';
4
- export * from './chartjs-options';
5
- export * from './explore-to-dataset-deps';
6
- export * from './zoom-action-item';
7
- export * from './external-link';
8
- export * from './query-error';
9
- export * from './scatter-data';
10
- export * from './top-talkers';
11
- //# 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,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA"}
@@ -1,7 +0,0 @@
1
- export interface QueryError {
2
- status?: number;
3
- type: 'forbidden' | 'timeout' | 'range_exceeded' | 'canceled' | '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,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,WAAW,GAAG,SAAS,GAAG,gBAAgB,GAAG,UAAU,GAAG,OAAO,CAAA;IACvE,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB"}
@@ -1,38 +0,0 @@
1
- import type { Display, ResultMetaBase } from '@kong-ui-public/analytics-utilities';
2
- export interface ScatterPointExtra {
3
- label: string;
4
- value: number | string;
5
- unit?: string;
6
- }
7
- export interface ScatterDataPoint {
8
- /**
9
- * Epoch milliseconds.
10
- */
11
- timestamp: number;
12
- /**
13
- * The value on the y axis.
14
- */
15
- value: number;
16
- /**
17
- * The value on the x axis when it plots a metric. Undefined plots `timestamp` instead.
18
- */
19
- x?: number;
20
- /**
21
- * Raw id of the series the point belongs to. Undefined puts every point in one series
22
- * named after the metric.
23
- */
24
- group?: string;
25
- /** Extra values to be placed in the tooltip */
26
- extras?: ScatterPointExtra[];
27
- }
28
- export interface ScatterChartData extends ResultMetaBase {
29
- points: ScatterDataPoint[];
30
- metric: string;
31
- metricUnit?: string;
32
- xMetric?: string;
33
- xMetricUnit?: string;
34
- dimension?: string;
35
- display?: Display;
36
- }
37
- export declare const isScatterChartData: (data: unknown) => data is ScatterChartData;
38
- //# sourceMappingURL=scatter-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scatter-data.d.ts","sourceRoot":"","sources":["../../../src/types/scatter-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAElF,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,+CAA+C;IAC/C,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAA;CAC7B;AAED,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,kBAAkB,GAAI,MAAM,OAAO,KAAG,IAAI,IAAI,gBAU1D,CAAA"}