@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,28 @@
|
|
|
1
|
+
import 'chartjs-adapter-date-fns';
|
|
2
|
+
import 'chart.js/auto';
|
|
3
|
+
import type { AnalyticsChartColors, KChartData } from '../../types';
|
|
4
|
+
import { ChartLegendPosition } from '../../enums';
|
|
5
|
+
import type { LegendValues } from '../../types/chart-data';
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
chartData: KChartData;
|
|
8
|
+
tooltipTitle: string;
|
|
9
|
+
metricUnit?: string;
|
|
10
|
+
legendPosition?: `${ChartLegendPosition}`;
|
|
11
|
+
legendValues?: LegendValues;
|
|
12
|
+
syntheticsDataKey?: string;
|
|
13
|
+
datasetColors?: AnalyticsChartColors | string[];
|
|
14
|
+
tooltipDimensionDisplay?: string;
|
|
15
|
+
tooltipMetricDisplay?: string;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
syntheticsDataKey: string;
|
|
19
|
+
legendPosition: `${ChartLegendPosition}`;
|
|
20
|
+
legendValues: LegendValues;
|
|
21
|
+
metricUnit: string;
|
|
22
|
+
tooltipMetricDisplay: string;
|
|
23
|
+
datasetColors: AnalyticsChartColors | string[];
|
|
24
|
+
tooltipDimensionDisplay: string;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
//# sourceMappingURL=DonutChart.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DonutChart.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-types/DonutChart.vue"],"names":[],"mappings":"AA8KA,OAAO,0BAA0B,CAAA;AACjC,OAAO,eAAe,CAAA;AAStB,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAgB,MAAM,aAAa,CAAA;AAEjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAE1E,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,UAAU,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,GAAG,mBAAmB,EAAE,CAAA;IACzC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,aAAa,CAAC,EAAE,oBAAoB,GAAG,MAAM,EAAE,CAAA;IAC/C,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAC;AAuOF,QAAA,MAAM,YAAY;uBA3OI,MAAM;oBAFT,GAAG,mBAAmB,EAAE;kBAC1B,YAAY;gBAFd,MAAM;0BAMI,MAAM;mBAFb,oBAAoB,GAAG,MAAM,EAAE;6BACrB,MAAM;6EA4OhC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import 'chartjs-adapter-date-fns';
|
|
3
|
+
import 'chart.js/auto';
|
|
4
|
+
import type { AnalyticsChartColors, KChartData, SimpleChartMetricDisplay } from '../../types';
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
chartData: {
|
|
7
|
+
type: PropType<KChartData>;
|
|
8
|
+
required: false;
|
|
9
|
+
default: null;
|
|
10
|
+
};
|
|
11
|
+
metricDisplay: {
|
|
12
|
+
type: PropType<SimpleChartMetricDisplay>;
|
|
13
|
+
required: false;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
numerator: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
syntheticsDataKey: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: false;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
datasetColors: {
|
|
27
|
+
type: PropType<AnalyticsChartColors | string[]>;
|
|
28
|
+
required: false;
|
|
29
|
+
default: string[];
|
|
30
|
+
};
|
|
31
|
+
height: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
required: false;
|
|
34
|
+
default: string;
|
|
35
|
+
validator: (value: string) => boolean;
|
|
36
|
+
};
|
|
37
|
+
width: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: false;
|
|
40
|
+
default: string;
|
|
41
|
+
validator: (value: string) => boolean;
|
|
42
|
+
};
|
|
43
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
+
chartData: {
|
|
45
|
+
type: PropType<KChartData>;
|
|
46
|
+
required: false;
|
|
47
|
+
default: null;
|
|
48
|
+
};
|
|
49
|
+
metricDisplay: {
|
|
50
|
+
type: PropType<SimpleChartMetricDisplay>;
|
|
51
|
+
required: false;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
numerator: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
required: false;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
syntheticsDataKey: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
required: false;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
datasetColors: {
|
|
65
|
+
type: PropType<AnalyticsChartColors | string[]>;
|
|
66
|
+
required: false;
|
|
67
|
+
default: string[];
|
|
68
|
+
};
|
|
69
|
+
height: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
required: false;
|
|
72
|
+
default: string;
|
|
73
|
+
validator: (value: string) => boolean;
|
|
74
|
+
};
|
|
75
|
+
width: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
required: false;
|
|
78
|
+
default: string;
|
|
79
|
+
validator: (value: string) => boolean;
|
|
80
|
+
};
|
|
81
|
+
}>> & Readonly<{}>, {
|
|
82
|
+
width: string;
|
|
83
|
+
height: string;
|
|
84
|
+
chartData: KChartData;
|
|
85
|
+
syntheticsDataKey: string;
|
|
86
|
+
metricDisplay: "hidden" | "single" | "full";
|
|
87
|
+
datasetColors: string[] | AnalyticsChartColors;
|
|
88
|
+
numerator: number;
|
|
89
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
90
|
+
declare const _default: typeof __VLS_export;
|
|
91
|
+
export default _default;
|
|
92
|
+
//# sourceMappingURL=GaugeChart.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GaugeChart.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-types/GaugeChart.vue"],"names":[],"mappings":"AAyMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,0BAA0B,CAAA;AACjC,OAAO,eAAe,CAAA;AAOtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AA2L7F,QAAA,MAAM,YAAY;;cAGE,QAAQ,CAAC,UAAU,CAAC;;;;;cAKpB,QAAQ,CAAC,wBAAwB,CAAC;;;;;;;;;;;;;;;cAelC,QAAQ,CAAC,oBAAoB,GAAG,MAAM,EAAE,CAAC;;;;;;;;2BAQtC,MAAM,KAAG,OAAO;;;;;;2BAQhB,MAAM,KAAG,OAAO;;;;cApCnB,QAAQ,CAAC,UAAU,CAAC;;;;;cAKpB,QAAQ,CAAC,wBAAwB,CAAC;;;;;;;;;;;;;;;cAelC,QAAQ,CAAC,oBAAoB,GAAG,MAAM,EAAE,CAAC;;;;;;;;2BAQtC,MAAM,KAAG,OAAO;;;;;;2BAQhB,MAAM,KAAG,OAAO;;;;;;;;;;4EAKrC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { ExploreResultV4 } from '@kong-ui-public/analytics-utilities';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
data: {
|
|
5
|
+
type: PropType<ExploreResultV4>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Number of decimal points to display
|
|
10
|
+
*/
|
|
11
|
+
decimalPoints: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
leftAlign: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
showTrend: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
increaseIsBad: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
alignX: {
|
|
28
|
+
type: PropType<"left" | "center" | "right" | "between" | "around" | "evenly">;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
data: {
|
|
33
|
+
type: PropType<ExploreResultV4>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Number of decimal points to display
|
|
38
|
+
*/
|
|
39
|
+
decimalPoints: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
leftAlign: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
showTrend: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
increaseIsBad: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
alignX: {
|
|
56
|
+
type: PropType<"left" | "center" | "right" | "between" | "around" | "evenly">;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
}>> & Readonly<{}>, {
|
|
60
|
+
decimalPoints: number;
|
|
61
|
+
leftAlign: boolean;
|
|
62
|
+
showTrend: boolean;
|
|
63
|
+
increaseIsBad: boolean;
|
|
64
|
+
alignX: "left" | "center" | "right" | "between" | "around" | "evenly";
|
|
65
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
66
|
+
declare const _default: typeof __VLS_export;
|
|
67
|
+
export default _default;
|
|
68
|
+
//# sourceMappingURL=SingleValue.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SingleValue.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-types/SingleValue.vue"],"names":[],"mappings":"AAuZA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAA0B,eAAe,EAAmB,MAAM,qCAAqC,CAAA;AA2UnH,QAAA,MAAM,YAAY;;cAGE,QAAQ,CAAC,eAAe,CAAC;;;IAG3C;;OAEG;;;;;;;;;;;;;;;;;;cAkBe,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;;;;;cAvBvE,QAAQ,CAAC,eAAe,CAAC;;;IAG3C;;OAEG;;;;;;;;;;;;;;;;;;cAkBe,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;;;;;;;;;4EAIzF,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ChartLegendSortFn, ChartTooltipSortFn, KChartData, LegendValues } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
chartData: KChartData;
|
|
4
|
+
tooltipTitle?: string;
|
|
5
|
+
legendValues?: LegendValues;
|
|
6
|
+
metricUnit?: string;
|
|
7
|
+
orientation?: 'horizontal' | 'vertical';
|
|
8
|
+
annotations?: boolean;
|
|
9
|
+
metricAxesTitle?: string;
|
|
10
|
+
dimensionAxesTitle?: string;
|
|
11
|
+
stacked?: boolean;
|
|
12
|
+
syntheticsDataKey?: string;
|
|
13
|
+
chartLegendSortFn?: ChartLegendSortFn;
|
|
14
|
+
chartTooltipSortFn?: ChartTooltipSortFn;
|
|
15
|
+
tooltipMetricDisplay?: string;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
stacked: boolean;
|
|
19
|
+
syntheticsDataKey: string;
|
|
20
|
+
tooltipTitle: string;
|
|
21
|
+
legendValues: LegendValues;
|
|
22
|
+
metricUnit: string;
|
|
23
|
+
orientation: "horizontal" | "vertical";
|
|
24
|
+
annotations: boolean;
|
|
25
|
+
metricAxesTitle: string;
|
|
26
|
+
dimensionAxesTitle: string;
|
|
27
|
+
chartLegendSortFn: ChartLegendSortFn;
|
|
28
|
+
chartTooltipSortFn: ChartTooltipSortFn;
|
|
29
|
+
tooltipMetricDisplay: string;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
33
|
+
//# sourceMappingURL=StackedBarChart.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackedBarChart.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-types/StackedBarChart.vue"],"names":[],"mappings":"AAqlBA,OAAO,KAAK,EAAoB,iBAAiB,EAAE,kBAAkB,EAAsB,UAAU,EAAE,YAAY,EAA8B,MAAM,aAAa,CAAA;AAIpK,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,UAAU,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;IACvC,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAC;AAykBF,QAAA,MAAM,YAAY;aA9kBN,OAAO;uBACG,MAAM;kBARX,MAAM;kBACN,YAAY;gBACd,MAAM;iBACL,YAAY,GAAG,UAAU;iBACzB,OAAO;qBACH,MAAM;wBACH,MAAM;uBAGP,iBAAiB;wBAChB,kBAAkB;0BAChB,MAAM;6EA6kB7B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import 'chartjs-adapter-date-fns';
|
|
2
|
+
import 'chart.js/auto';
|
|
3
|
+
import type { Threshold, ZoomActionItem } from '../../types';
|
|
4
|
+
import { type ChartLegendSortFn, type ChartTooltipSortFn, type KChartData, type LegendValues } from '../../types';
|
|
5
|
+
import type { GranularityValues, AbsoluteTimeRangeV4, ExploreAggregations } from '@kong-ui-public/analytics-utilities';
|
|
6
|
+
interface TimeSeriesChartProps {
|
|
7
|
+
chartData?: KChartData;
|
|
8
|
+
type?: 'timeseries_bar' | 'timeseries_line';
|
|
9
|
+
fill?: boolean;
|
|
10
|
+
tooltipTitle: string;
|
|
11
|
+
metricUnit?: string;
|
|
12
|
+
timeRangeMs?: number;
|
|
13
|
+
granularity: GranularityValues;
|
|
14
|
+
stacked?: boolean;
|
|
15
|
+
legendValues?: LegendValues;
|
|
16
|
+
metricAxesTitle?: string;
|
|
17
|
+
dimensionAxesTitle?: string;
|
|
18
|
+
syntheticsDataKey?: string;
|
|
19
|
+
chartLegendSortFn?: ChartLegendSortFn;
|
|
20
|
+
chartTooltipSortFn?: ChartTooltipSortFn;
|
|
21
|
+
brush?: boolean;
|
|
22
|
+
zoomActionItems?: ZoomActionItem[];
|
|
23
|
+
tooltipMetricDisplay?: string;
|
|
24
|
+
threshold?: Record<ExploreAggregations, Threshold[]>;
|
|
25
|
+
}
|
|
26
|
+
declare const __VLS_export: import("vue").DefineComponent<TimeSeriesChartProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
|
+
"zoom-time-range": (newTimeRange: AbsoluteTimeRangeV4) => any;
|
|
28
|
+
"select-chart-range": (newTimeRange: AbsoluteTimeRangeV4) => any;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<TimeSeriesChartProps> & Readonly<{
|
|
30
|
+
"onZoom-time-range"?: ((newTimeRange: AbsoluteTimeRangeV4) => any) | undefined;
|
|
31
|
+
"onSelect-chart-range"?: ((newTimeRange: AbsoluteTimeRangeV4) => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
type: "timeseries_bar" | "timeseries_line";
|
|
34
|
+
fill: boolean;
|
|
35
|
+
stacked: boolean;
|
|
36
|
+
chartData: KChartData;
|
|
37
|
+
syntheticsDataKey: string;
|
|
38
|
+
zoomActionItems: ZoomActionItem[];
|
|
39
|
+
legendValues: LegendValues;
|
|
40
|
+
metricUnit: string;
|
|
41
|
+
metricAxesTitle: string;
|
|
42
|
+
dimensionAxesTitle: string;
|
|
43
|
+
chartLegendSortFn: ChartLegendSortFn;
|
|
44
|
+
chartTooltipSortFn: ChartTooltipSortFn;
|
|
45
|
+
tooltipMetricDisplay: string;
|
|
46
|
+
timeRangeMs: number;
|
|
47
|
+
brush: boolean;
|
|
48
|
+
threshold: Record<ExploreAggregations, Threshold[]>;
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
51
|
+
export default _default;
|
|
52
|
+
//# sourceMappingURL=TimeSeriesChart.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeSeriesChart.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-types/TimeSeriesChart.vue"],"names":[],"mappings":"AA8VA,OAAO,0BAA0B,CAAA;AACjC,OAAO,eAAe,CAAA;AAStB,OAAO,KAAK,EAAE,SAAS,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAA;AAC1E,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAA2B,KAAK,UAAU,EAAE,KAAK,YAAY,EAAqB,MAAM,aAAa,CAAA;AAC7J,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AAOtH,UAAU,oBAAoB;IAC5B,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,IAAI,CAAC,EAAE,gBAAgB,GAAG,iBAAiB,CAAA;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,iBAAiB,CAAA;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;IACvC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,eAAe,CAAC,EAAE,cAAc,EAAE,CAAA;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC,mBAAmB,EAAE,SAAS,EAAE,CAAC,CAAA;CACrD;AAkbD,QAAA,MAAM,YAAY;;;;;;;UAncT,gBAAgB,GAAG,iBAAiB;UACpC,OAAO;aAKJ,OAAO;eAPL,UAAU;uBAWF,MAAM;qBAIR,cAAc,EAAE;kBAPnB,YAAY;gBAJd,MAAM;qBAKD,MAAM;wBACH,MAAM;uBAEP,iBAAiB;wBAChB,kBAAkB;0BAGhB,MAAM;iBAXf,MAAM;WASZ,OAAO;eAGH,MAAM,CAAC,mBAAmB,EAAE,SAAS,EAAE,CAAC;6EAubpD,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import type { CsvData, CsvKeyValuePair } from '../../types';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
data: {
|
|
9
|
+
type: PropType<CsvData>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Fields from `data` array that should be present in exported CSV
|
|
14
|
+
* If none provided, all fields will be included.
|
|
15
|
+
*/
|
|
16
|
+
fields: {
|
|
17
|
+
type: {
|
|
18
|
+
(arrayLength: number): string[];
|
|
19
|
+
(...items: string[]): string[];
|
|
20
|
+
new (arrayLength: number): string[];
|
|
21
|
+
new (...items: string[]): string[];
|
|
22
|
+
isArray(arg: any): arg is any[];
|
|
23
|
+
readonly prototype: any[];
|
|
24
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
25
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
26
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
27
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
28
|
+
of<T>(...items: T[]): T[];
|
|
29
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
30
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
31
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
32
|
+
};
|
|
33
|
+
required: false;
|
|
34
|
+
default: null;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Column labels
|
|
38
|
+
*/
|
|
39
|
+
labels: {
|
|
40
|
+
type: PropType<CsvKeyValuePair> | null;
|
|
41
|
+
required: false;
|
|
42
|
+
default: null;
|
|
43
|
+
};
|
|
44
|
+
filename: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Delimiter for the CSV file
|
|
50
|
+
*/
|
|
51
|
+
delimiter: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
required: false;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Whether module should add SEP={delimiter}; ideal for Excel compatibility
|
|
58
|
+
*/
|
|
59
|
+
separatorExcel: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
encoding: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Component test specific
|
|
69
|
+
*/
|
|
70
|
+
testing: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
required: false;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
76
|
+
"export-started": (data: CsvData) => any;
|
|
77
|
+
"export-finished": (data: string) => any;
|
|
78
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
|
+
data: {
|
|
80
|
+
type: PropType<CsvData>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Fields from `data` array that should be present in exported CSV
|
|
85
|
+
* If none provided, all fields will be included.
|
|
86
|
+
*/
|
|
87
|
+
fields: {
|
|
88
|
+
type: {
|
|
89
|
+
(arrayLength: number): string[];
|
|
90
|
+
(...items: string[]): string[];
|
|
91
|
+
new (arrayLength: number): string[];
|
|
92
|
+
new (...items: string[]): string[];
|
|
93
|
+
isArray(arg: any): arg is any[];
|
|
94
|
+
readonly prototype: any[];
|
|
95
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
96
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
97
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
98
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
99
|
+
of<T>(...items: T[]): T[];
|
|
100
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
101
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
102
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
103
|
+
};
|
|
104
|
+
required: false;
|
|
105
|
+
default: null;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Column labels
|
|
109
|
+
*/
|
|
110
|
+
labels: {
|
|
111
|
+
type: PropType<CsvKeyValuePair> | null;
|
|
112
|
+
required: false;
|
|
113
|
+
default: null;
|
|
114
|
+
};
|
|
115
|
+
filename: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Delimiter for the CSV file
|
|
121
|
+
*/
|
|
122
|
+
delimiter: {
|
|
123
|
+
type: StringConstructor;
|
|
124
|
+
default: string;
|
|
125
|
+
required: false;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Whether module should add SEP={delimiter}; ideal for Excel compatibility
|
|
129
|
+
*/
|
|
130
|
+
separatorExcel: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
encoding: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Component test specific
|
|
140
|
+
*/
|
|
141
|
+
testing: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
required: false;
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
146
|
+
}>> & Readonly<{
|
|
147
|
+
"onExport-started"?: ((data: CsvData) => any) | undefined;
|
|
148
|
+
"onExport-finished"?: ((data: string) => any) | undefined;
|
|
149
|
+
}>, {
|
|
150
|
+
labels: CsvKeyValuePair;
|
|
151
|
+
fields: string[];
|
|
152
|
+
filename: string;
|
|
153
|
+
delimiter: string;
|
|
154
|
+
separatorExcel: boolean;
|
|
155
|
+
encoding: string;
|
|
156
|
+
testing: boolean;
|
|
157
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
158
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
159
|
+
declare const _default: typeof __VLS_export;
|
|
160
|
+
export default _default;
|
|
161
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
162
|
+
new (): {
|
|
163
|
+
$slots: S;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
//# sourceMappingURL=VueJsonCsv.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VueJsonCsv.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/vue-json-csv/VueJsonCsv.vue"],"names":[],"mappings":"AAwLA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EAAe,QAAQ,EAAE,MAAM,KAAK,CAAA;AAkMhD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;cAIG,QAAQ,CAAC,OAAO,CAAC;;;IAGlC;;;OAGG;;;;;;;;;;;;;;;;;;;;;IAMH;;OAEG;;cAEe,QAAQ,CAAC,eAAe,CAAC,GAAG,IAAI;;;;;;;;IAQlD;;OAEG;;;;;;IAMH;;OAEG;;;;;;;;;IASH;;OAEG;;;;;;;;;;;cA7Cc,QAAQ,CAAC,OAAO,CAAC;;;IAGlC;;;OAGG;;;;;;;;;;;;;;;;;;;;;IAMH;;OAEG;;cAEe,QAAQ,CAAC,eAAe,CAAC,GAAG,IAAI;;;;;;;;IAQlD;;OAEG;;;;;;IAMH;;OAEG;;;;;;;;;IASH;;OAEG;;;;;;;;;;;;;;;;;4EAOH,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import useI18n from './useI18n';
|
|
2
|
+
import useBarChartOptions from './useBarChartOptions';
|
|
3
|
+
import useChartJSCommon from './useChartJSCommon';
|
|
4
|
+
import useChartLegendValues from './useChartLegendValues';
|
|
5
|
+
import useChartSelectedRange from './useChartSelectedRange';
|
|
6
|
+
import useDonutChartOptions from './useDonutChartOptions';
|
|
7
|
+
import useLineChartOptions from './useLineChartOptions';
|
|
8
|
+
import useExploreResultToDatasets from './useExploreResultToDatasets';
|
|
9
|
+
import useExploreResultToTimeDataset from './useExploreResultToTimeDatasets';
|
|
10
|
+
import useTranslatedUnits from './useTranslatedUnits';
|
|
11
|
+
import useEvaluateFeatureFlag from './useEvauluateFeatureFlag';
|
|
12
|
+
import useTooltipAbsolutePosition from './useTooltipAbsolutePosition';
|
|
13
|
+
import useSparklineSync from './useSparklineSync';
|
|
14
|
+
declare const _default: {
|
|
15
|
+
useBarChartOptions: typeof useBarChartOptions;
|
|
16
|
+
useChartJSCommon: typeof useChartJSCommon;
|
|
17
|
+
useChartLegendValues: typeof useChartLegendValues;
|
|
18
|
+
useChartSelectedRange: typeof useChartSelectedRange;
|
|
19
|
+
useExploreResultToDatasets: typeof useExploreResultToDatasets;
|
|
20
|
+
useExploreResultToTimeDataset: typeof useExploreResultToTimeDataset;
|
|
21
|
+
useDonutChartOptions: typeof useDonutChartOptions;
|
|
22
|
+
useLineChartOptions: typeof useLineChartOptions;
|
|
23
|
+
useI18n: typeof useI18n;
|
|
24
|
+
useReportChartDataForSynthetics: (chartData: Readonly<import("vue").Ref<any>>, syntheticsDataKey: Readonly<import("vue").Ref<string>>) => void;
|
|
25
|
+
useTranslatedUnits: typeof useTranslatedUnits;
|
|
26
|
+
useEvaluateFeatureFlag: typeof useEvaluateFeatureFlag;
|
|
27
|
+
useTooltipAbsolutePosition: typeof useTooltipAbsolutePosition;
|
|
28
|
+
useSparklineSync: typeof useSparklineSync;
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,kBAAkB,MAAM,sBAAsB,CAAA;AACrD,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AACjD,OAAO,oBAAoB,MAAM,wBAAwB,CAAA;AACzD,OAAO,qBAAqB,MAAM,yBAAyB,CAAA;AAC3D,OAAO,oBAAoB,MAAM,wBAAwB,CAAA;AACzD,OAAO,mBAAmB,MAAM,uBAAuB,CAAA;AACvD,OAAO,0BAA0B,MAAM,8BAA8B,CAAA;AACrE,OAAO,6BAA6B,MAAM,kCAAkC,CAAA;AAE5E,OAAO,kBAAkB,MAAM,sBAAsB,CAAA;AACrD,OAAO,sBAAsB,MAAM,2BAA2B,CAAA;AAC9D,OAAO,0BAA0B,MAAM,8BAA8B,CAAA;AACrE,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;;;;;;;;;;;;;;;;;AAGjD,wBAeC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { BarChartOptions, ExternalTooltipContext } from '../types';
|
|
2
|
+
import type { TooltipPositionerFunction, ChartType, TooltipItem, InteractionModeFunction, Chart } from 'chart.js';
|
|
3
|
+
export default function useBarChartOptions(chartOptions: BarChartOptions): import("vue").ComputedRef<{
|
|
4
|
+
indexAxis: "x" | "y";
|
|
5
|
+
skipNull: boolean;
|
|
6
|
+
scales: {
|
|
7
|
+
x: {
|
|
8
|
+
stacked: boolean;
|
|
9
|
+
grid: {
|
|
10
|
+
offset: boolean;
|
|
11
|
+
drawOnChartArea: boolean;
|
|
12
|
+
drawBorder: boolean;
|
|
13
|
+
drawTicks: boolean;
|
|
14
|
+
};
|
|
15
|
+
ticks: {
|
|
16
|
+
maxRotation: number;
|
|
17
|
+
autoSkip: boolean;
|
|
18
|
+
font: ({ chart, index }: {
|
|
19
|
+
chart: Chart;
|
|
20
|
+
index: number;
|
|
21
|
+
}) => {
|
|
22
|
+
size: number;
|
|
23
|
+
style: string;
|
|
24
|
+
};
|
|
25
|
+
callback: (value: string, index: number) => string;
|
|
26
|
+
};
|
|
27
|
+
title: {
|
|
28
|
+
display: boolean;
|
|
29
|
+
text: string | undefined;
|
|
30
|
+
padding: {
|
|
31
|
+
top: number;
|
|
32
|
+
bottom: number;
|
|
33
|
+
left: number;
|
|
34
|
+
right: number;
|
|
35
|
+
};
|
|
36
|
+
font: {
|
|
37
|
+
weight: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
y: {
|
|
42
|
+
stacked: boolean;
|
|
43
|
+
beginAtZero: boolean;
|
|
44
|
+
grid: {
|
|
45
|
+
offset: boolean;
|
|
46
|
+
drawOnChartArea: boolean;
|
|
47
|
+
drawBorder: boolean;
|
|
48
|
+
drawTicks: boolean;
|
|
49
|
+
};
|
|
50
|
+
ticks: {
|
|
51
|
+
padding: number;
|
|
52
|
+
font: ({ chart, index }: {
|
|
53
|
+
chart: Chart;
|
|
54
|
+
index: number;
|
|
55
|
+
}) => {
|
|
56
|
+
size: number;
|
|
57
|
+
style: string;
|
|
58
|
+
};
|
|
59
|
+
callback: (value: string, index: number) => string;
|
|
60
|
+
};
|
|
61
|
+
title: {
|
|
62
|
+
display: boolean;
|
|
63
|
+
text: string | undefined;
|
|
64
|
+
padding: {
|
|
65
|
+
bottom: number;
|
|
66
|
+
top: number;
|
|
67
|
+
left: number;
|
|
68
|
+
right: number;
|
|
69
|
+
};
|
|
70
|
+
font: {
|
|
71
|
+
weight: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
plugins: {
|
|
77
|
+
htmlLegend: {
|
|
78
|
+
containerID: string;
|
|
79
|
+
};
|
|
80
|
+
legend: {
|
|
81
|
+
display: boolean;
|
|
82
|
+
};
|
|
83
|
+
tooltip: {
|
|
84
|
+
external: (context: ExternalTooltipContext) => void;
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
position: string;
|
|
87
|
+
callbacks: {
|
|
88
|
+
label: (context: TooltipItem<"bar">) => {
|
|
89
|
+
label: string | undefined;
|
|
90
|
+
value: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
interaction: {
|
|
96
|
+
mode: string;
|
|
97
|
+
intersect: boolean;
|
|
98
|
+
};
|
|
99
|
+
maxBarThickness: number;
|
|
100
|
+
maintainAspectRatio: boolean;
|
|
101
|
+
layout: {
|
|
102
|
+
padding: {
|
|
103
|
+
left: number;
|
|
104
|
+
right: number;
|
|
105
|
+
top: number;
|
|
106
|
+
bottom: number;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
}>;
|
|
110
|
+
declare module 'chart.js' {
|
|
111
|
+
interface TooltipPositionerMap {
|
|
112
|
+
[key: string]: TooltipPositionerFunction<ChartType>;
|
|
113
|
+
}
|
|
114
|
+
interface InteractionModeMap {
|
|
115
|
+
customInteractionMode: InteractionModeFunction;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=useBarChartOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBarChartOptions.d.ts","sourceRoot":"","sources":["../../../src/composables/useBarChartOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAc,MAAM,UAAU,CAAA;AAEnF,OAAO,KAAK,EACV,yBAAyB,EACzB,SAAS,EACT,WAAW,EAEX,uBAAuB,EAGvB,KAAK,EACN,MAAM,UAAU,CAAA;AAKjB,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,YAAY,EAAE,eAAe;;;;;;;;;;;;;;;yCAkE/B;oBAAE,KAAK,EAAE,KAAK,CAAC;oBAAC,KAAK,EAAE,MAAM,CAAA;iBAAE;;;;kCAuClC,MAAM,SAAS,MAAM,KAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAvC3B;oBAAE,KAAK,EAAE,KAAK,CAAC;oBAAC,KAAK,EAAE,MAAM,CAAA;iBAAE;;;;kCAqElC,MAAM,SAAS,MAAM,KAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;gCA4BtC,sBAAsB;;;;iCA1J7B,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;GA0LxC;AAED,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAU,oBAAoB;QAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;KACpD;IACD,UAAU,kBAAkB;QAC1B,qBAAqB,EAAE,uBAAuB,CAAA;KAC/C;CACF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Chart from 'chart.js/auto';
|
|
2
|
+
import type { ChartType, ChartData, Plugin, ChartOptions } from 'chart.js';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
4
|
+
export default function useChartJSCommon<T extends ChartType>(chartType: T, canvas: Ref<HTMLCanvasElement | null>, chartData: Readonly<Ref<ChartData>>, plugins: Plugin[], options: Ref<ChartOptions>): Ref<Chart | null | undefined>;
|
|
5
|
+
//# sourceMappingURL=useChartJSCommon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChartJSCommon.d.ts","sourceRoot":"","sources":["../../../src/composables/useChartJSCommon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC1E,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAsB9B,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,CAAC,SAAS,SAAS,EAC1D,SAAS,EAAE,CAAC,EACZ,MAAM,EAAE,GAAG,CAAC,iBAAiB,GAAG,IAAI,CAAC,EACrC,SAAS,EAAE,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,EACnC,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,GAAG,CAAC,YAAY,CAAC,GACzB,GAAG,CAAC,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,CAuE/B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChartType, KChartData, LegendValues, SimpleChartType } from '../types';
|
|
2
|
+
import type { Ref } from 'vue';
|
|
3
|
+
export default function useChartLegendValues(chartData: Readonly<Ref<KChartData>>, chartType: ChartType | SimpleChartType, metricUnit: Readonly<Ref<string>>): {
|
|
4
|
+
legendValues: import("vue").ComputedRef<LegendValues>;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=useChartLegendValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChartLegendValues.d.ts","sourceRoot":"","sources":["../../../src/composables/useChartLegendValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACxG,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAO9B,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,SAAS,EAAE,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,EACpC,SAAS,EAAE,SAAS,GAAG,eAAe,EACtC,UAAU,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;;EAwClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChartSelectedRange.d.ts","sourceRoot":"","sources":["../../../src/composables/useChartSelectedRange.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAG1E,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,SAAS,EAAE,GAAG,CAAC,eAAe,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAe1F"}
|