@kong-ui-public/analytics-chart 10.13.8-pr.2800.38353414e.0 → 10.13.8-pr.2805.3025ae8e1.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.
- package/dist/style.css +1 -0
- package/dist/types/components/AnalyticsChart.vue.d.ts +38 -0
- package/dist/types/components/AnalyticsChart.vue.d.ts.map +1 -0
- package/dist/types/components/CsvExportModal.vue.d.ts +16 -0
- package/dist/types/components/CsvExportModal.vue.d.ts.map +1 -0
- package/dist/types/components/DownloadCsv.vue.d.ts +20 -0
- package/dist/types/components/DownloadCsv.vue.d.ts.map +1 -0
- package/dist/types/components/SimpleChart.vue.d.ts +74 -0
- package/dist/types/components/SimpleChart.vue.d.ts.map +1 -0
- package/dist/types/components/SparklineChart.vue.d.ts +95 -0
- package/dist/types/components/SparklineChart.vue.d.ts.map +1 -0
- package/dist/types/components/TopNTable.vue.d.ts +37 -0
- package/dist/types/components/TopNTable.vue.d.ts.map +1 -0
- package/dist/types/components/ZoomActions.vue.d.ts +15 -0
- package/dist/types/components/ZoomActions.vue.d.ts.map +1 -0
- package/dist/types/components/ZoomTimerange.vue.d.ts +10 -0
- package/dist/types/components/ZoomTimerange.vue.d.ts.map +1 -0
- package/dist/types/components/chart-plugins/ChartLegend.vue.d.ts +36 -0
- package/dist/types/components/chart-plugins/ChartLegend.vue.d.ts.map +1 -0
- package/dist/types/components/chart-plugins/ChartTooltip.vue.d.ts +34 -0
- package/dist/types/components/chart-plugins/ChartTooltip.vue.d.ts.map +1 -0
- package/dist/types/components/chart-plugins/DragSelectPlugin.d.ts +22 -0
- package/dist/types/components/chart-plugins/DragSelectPlugin.d.ts.map +1 -0
- package/dist/types/components/chart-plugins/HighlightPlugin.d.ts +18 -0
- package/dist/types/components/chart-plugins/HighlightPlugin.d.ts.map +1 -0
- package/dist/types/components/chart-plugins/ThresholdPlugin.d.ts +33 -0
- package/dist/types/components/chart-plugins/ThresholdPlugin.d.ts.map +1 -0
- package/dist/types/components/chart-plugins/VerticalLinePlugin.d.ts +29 -0
- package/dist/types/components/chart-plugins/VerticalLinePlugin.d.ts.map +1 -0
- package/dist/types/components/chart-types/DonutChart.vue.d.ts +28 -0
- package/dist/types/components/chart-types/DonutChart.vue.d.ts.map +1 -0
- package/dist/types/components/chart-types/GaugeChart.vue.d.ts +92 -0
- package/dist/types/components/chart-types/GaugeChart.vue.d.ts.map +1 -0
- package/dist/types/components/chart-types/SingleValue.vue.d.ts +68 -0
- package/dist/types/components/chart-types/SingleValue.vue.d.ts.map +1 -0
- package/dist/types/components/chart-types/StackedBarChart.vue.d.ts +33 -0
- package/dist/types/components/chart-types/StackedBarChart.vue.d.ts.map +1 -0
- package/dist/types/components/chart-types/TimeSeriesChart.vue.d.ts +52 -0
- package/dist/types/components/chart-types/TimeSeriesChart.vue.d.ts.map +1 -0
- package/dist/types/components/vue-json-csv/VueJsonCsv.vue.d.ts +166 -0
- package/dist/types/components/vue-json-csv/VueJsonCsv.vue.d.ts.map +1 -0
- package/dist/types/composables/index.d.ts +31 -0
- package/dist/types/composables/index.d.ts.map +1 -0
- package/dist/types/composables/useBarChartOptions.d.ts +118 -0
- package/dist/types/composables/useBarChartOptions.d.ts.map +1 -0
- package/dist/types/composables/useChartJSCommon.d.ts +5 -0
- package/dist/types/composables/useChartJSCommon.d.ts.map +1 -0
- package/dist/types/composables/useChartLegendValues.d.ts +6 -0
- package/dist/types/composables/useChartLegendValues.d.ts.map +1 -0
- package/dist/types/composables/useChartSelectedRange.d.ts +4 -0
- package/dist/types/composables/useChartSelectedRange.d.ts.map +1 -0
- package/dist/types/composables/useDonutChartOptions.d.ts +41 -0
- package/dist/types/composables/useDonutChartOptions.d.ts.map +1 -0
- package/dist/types/composables/useEvauluateFeatureFlag.d.ts +4 -0
- package/dist/types/composables/useEvauluateFeatureFlag.d.ts.map +1 -0
- package/dist/types/composables/useExploreResultToDatasets.d.ts +5 -0
- package/dist/types/composables/useExploreResultToDatasets.d.ts.map +1 -0
- package/dist/types/composables/useExploreResultToTimeDatasets.d.ts +6 -0
- package/dist/types/composables/useExploreResultToTimeDatasets.d.ts.map +1 -0
- package/dist/types/composables/useI18n.d.ts +9 -0
- package/dist/types/composables/useI18n.d.ts.map +1 -0
- package/dist/types/composables/useLineChartOptions.d.ts +115 -0
- package/dist/types/composables/useLineChartOptions.d.ts.map +1 -0
- package/dist/types/composables/useReportChartDataForSynthetics.d.ts +9 -0
- package/dist/types/composables/useReportChartDataForSynthetics.d.ts.map +1 -0
- package/dist/types/composables/useSparklineSync.d.ts +30 -0
- package/dist/types/composables/useSparklineSync.d.ts.map +1 -0
- package/dist/types/composables/useTooltipAbsolutePosition.d.ts +9 -0
- package/dist/types/composables/useTooltipAbsolutePosition.d.ts.map +1 -0
- package/dist/types/composables/useTranslatedUnits.d.ts +4 -0
- package/dist/types/composables/useTranslatedUnits.d.ts.map +1 -0
- package/dist/types/constants/index.d.ts +3 -0
- package/dist/types/constants/index.d.ts.map +1 -0
- package/dist/types/enums/chart-legend-position.enum.d.ts +5 -0
- package/dist/types/enums/chart-legend-position.enum.d.ts.map +1 -0
- package/dist/types/enums/index.d.ts +2 -0
- package/dist/types/enums/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types/chart-data.d.ts +178 -0
- package/dist/types/types/chart-data.d.ts.map +1 -0
- package/dist/types/types/chart-export.d.ts +20 -0
- package/dist/types/types/chart-export.d.ts.map +1 -0
- package/dist/types/types/chart-types.d.ts +6 -0
- package/dist/types/types/chart-types.d.ts.map +1 -0
- package/dist/types/types/chartjs-options.d.ts +68 -0
- package/dist/types/types/chartjs-options.d.ts.map +1 -0
- package/dist/types/types/dataset-generation-types.d.ts +14 -0
- package/dist/types/types/dataset-generation-types.d.ts.map +1 -0
- package/dist/types/types/explore-to-dataset-deps.d.ts +18 -0
- package/dist/types/types/explore-to-dataset-deps.d.ts.map +1 -0
- package/dist/types/types/external-link.d.ts +4 -0
- package/dist/types/types/external-link.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +10 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/query-error.d.ts +7 -0
- package/dist/types/types/query-error.d.ts.map +1 -0
- package/dist/types/types/zoom-action-item.d.ts +9 -0
- package/dist/types/types/zoom-action-item.d.ts.map +1 -0
- package/dist/types/utils/bucketTimestamps.d.ts +8 -0
- package/dist/types/utils/bucketTimestamps.d.ts.map +1 -0
- package/dist/types/utils/colors.d.ts +30 -0
- package/dist/types/utils/colors.d.ts.map +1 -0
- package/dist/types/utils/commonOptions.d.ts +22 -0
- package/dist/types/utils/commonOptions.d.ts.map +1 -0
- package/dist/types/utils/constants.d.ts +5 -0
- package/dist/types/utils/constants.d.ts.map +1 -0
- package/dist/types/utils/customColors.d.ts +10 -0
- package/dist/types/utils/customColors.d.ts.map +1 -0
- package/dist/types/utils/defaultLineOptions.d.ts +9 -0
- package/dist/types/utils/defaultLineOptions.d.ts.map +1 -0
- package/dist/types/utils/format-timestamps.d.ts +13 -0
- package/dist/types/utils/format-timestamps.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +9 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/queryError.d.ts +3 -0
- package/dist/types/utils/queryError.d.ts.map +1 -0
- package/dist/types/utils/stackedBarUtil.d.ts +9 -0
- package/dist/types/utils/stackedBarUtil.d.ts.map +1 -0
- package/dist/vitals-chart.es.js +22781 -0
- package/dist/vitals-chart.umd.js +43 -0
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|