@devtron-labs/devtron-fe-common-lib 1.20.3-pre-9 → 1.20.3-pre-11
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/{@code-editor-P2jsjZMo.js → @code-editor-BKRUF3oV.js} +5878 -5726
- package/dist/{@common-rjsf-h2fbxMxq.js → @common-rjsf-BaisSjWO.js} +6 -6
- package/dist/{@framer-motion-CyE9ZrhW.js → @framer-motion-DMkBQPN0.js} +1 -1
- package/dist/{@react-dates-DZKuosYz.js → @react-dates-BjZWpiVv.js} +1 -1
- package/dist/{@react-select-D2LpysD2.js → @react-select-DtwlfcIG.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-ok_G4gcR.js → @react-virtualized-sticky-tree-M81Af3Qs.js} +1 -1
- package/dist/{@vendor-DwGKptu5.js → @vendor-DceGoESd.js} +133 -132
- package/dist/Common/API/types.d.ts +5 -0
- package/dist/Common/Types.d.ts +12 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/constants.d.ts +4 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +20 -0
- package/dist/Shared/Components/Charts/constants.d.ts +3 -11
- package/dist/Shared/Components/Charts/index.d.ts +1 -1
- package/dist/Shared/Components/Charts/plugins.d.ts +2 -3
- package/dist/Shared/Components/Charts/types.d.ts +39 -24
- package/dist/Shared/Components/Charts/utils.d.ts +61 -6
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +1 -1
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +0 -1
- package/dist/index.js +871 -869
- package/package.json +1 -1
@@ -1,15 +1,70 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { ChartDataset, ChartOptions, ChartType as ChartJSChartType, TooltipOptions } from 'chart.js';
|
2
|
+
import { Chart, ChartDataset, ChartOptions, ChartType as ChartJSChartType, Point, TooltipOptions } from 'chart.js';
|
3
|
+
import { AppThemeType } from '../../Providers';
|
3
4
|
import { ChartType, GetDefaultOptionsParams, TransformDataForChartProps } from './types';
|
5
|
+
export declare const getLegendsLabelConfig: (type: ChartType, appTheme: AppThemeType) => {
|
6
|
+
usePointStyle: false;
|
7
|
+
boxHeight: number;
|
8
|
+
generateLabels: (chart: Chart<"line">) => {
|
9
|
+
fillStyle: string;
|
10
|
+
strokeStyle: string;
|
11
|
+
lineDash: number[];
|
12
|
+
lineWidth: number;
|
13
|
+
text: string;
|
14
|
+
borderRadius?: number | import('chart.js').BorderRadius;
|
15
|
+
datasetIndex?: number;
|
16
|
+
index?: number;
|
17
|
+
fontColor?: import('chart.js').Color;
|
18
|
+
hidden?: boolean;
|
19
|
+
lineCap?: CanvasLineCap;
|
20
|
+
lineDashOffset?: number;
|
21
|
+
lineJoin?: CanvasLineJoin;
|
22
|
+
pointStyle?: import('chart.js').PointStyle;
|
23
|
+
rotation?: number;
|
24
|
+
textAlign?: import('chart.js').TextAlign;
|
25
|
+
}[];
|
26
|
+
color: string;
|
27
|
+
font: {
|
28
|
+
family: string;
|
29
|
+
size: number;
|
30
|
+
lineHeight: string;
|
31
|
+
weight: number;
|
32
|
+
};
|
33
|
+
} | {
|
34
|
+
usePointStyle: true;
|
35
|
+
boxHeight: number;
|
36
|
+
boxWidth: number;
|
37
|
+
pointStyle: "rectRounded";
|
38
|
+
color: string;
|
39
|
+
font: {
|
40
|
+
family: string;
|
41
|
+
size: number;
|
42
|
+
lineHeight: string;
|
43
|
+
weight: number;
|
44
|
+
};
|
45
|
+
};
|
4
46
|
export declare const getChartJSType: (type: ChartType) => ChartJSChartType;
|
5
|
-
export declare const getDefaultOptions: ({
|
47
|
+
export declare const getDefaultOptions: ({ chartProps, appTheme, externalTooltipHandler, }: GetDefaultOptionsParams) => ChartOptions;
|
6
48
|
export declare const transformDataForChart: (props: TransformDataForChartProps) => (ChartDataset<"line"> | {
|
49
|
+
backgroundColor?: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color) | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[];
|
50
|
+
borderColor?: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color) | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[];
|
51
|
+
pointBackgroundColor?: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color) | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[];
|
52
|
+
pointBorderColor?: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color) | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[];
|
53
|
+
label: string;
|
54
|
+
data: number[];
|
55
|
+
} | {
|
56
|
+
backgroundColor: string[];
|
57
|
+
hoverBackgroundColor: string[];
|
58
|
+
borderColor: string;
|
59
|
+
label: string;
|
60
|
+
data: number[];
|
61
|
+
} | {
|
62
|
+
backgroundColor: string;
|
63
|
+
hoverBackgroundColor: string;
|
64
|
+
borderColor: string;
|
7
65
|
label: string;
|
8
66
|
data: number[];
|
9
|
-
backgroundColor: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[] | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color);
|
10
|
-
borderColor: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[] | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color);
|
11
|
-
pointBackgroundColor: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[] | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color);
|
12
|
-
pointBorderColor: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[] | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color);
|
13
67
|
})[];
|
14
68
|
export declare function chartColorGenerator(): Generator<"DeepPlum500" | "DeepPlum300" | "DeepPlum100" | "DeepPlum50" | "DeepPlum600" | "DeepPlum400" | "DeepPlum200" | "DeepPlum700" | "DeepPlum800" | "DeepPlum900" | "DeepPlum950" | "Magenta500" | "Magenta300" | "Magenta100" | "Magenta50" | "Magenta600" | "Magenta400" | "Magenta200" | "Magenta700" | "Magenta800" | "Magenta900" | "Magenta950" | "Slate500" | "Slate300" | "Slate100" | "Slate50" | "Slate600" | "Slate400" | "Slate200" | "Slate700" | "Slate800" | "Slate900" | "Slate950" | "Lavender500" | "Lavender300" | "Lavender100" | "Lavender50" | "Lavender600" | "Lavender400" | "Lavender200" | "Lavender700" | "Lavender800" | "Lavender900" | "Lavender950" | "SkyBlue500" | "SkyBlue300" | "SkyBlue100" | "SkyBlue50" | "SkyBlue600" | "SkyBlue400" | "SkyBlue200" | "SkyBlue700" | "SkyBlue800" | "SkyBlue900" | "SkyBlue950" | "AquaTeal500" | "AquaTeal300" | "AquaTeal100" | "AquaTeal50" | "AquaTeal600" | "AquaTeal400" | "AquaTeal200" | "AquaTeal700" | "AquaTeal800" | "AquaTeal900" | "AquaTeal950" | "LimeGreen500" | "LimeGreen300" | "LimeGreen100" | "LimeGreen50" | "LimeGreen600" | "LimeGreen400" | "LimeGreen200" | "LimeGreen700" | "LimeGreen800" | "LimeGreen900" | "LimeGreen950" | "CoralRed500" | "CoralRed300" | "CoralRed100" | "CoralRed50" | "CoralRed600" | "CoralRed400" | "CoralRed200" | "CoralRed700" | "CoralRed800" | "CoralRed900" | "CoralRed950" | "GoldenYellow500" | "GoldenYellow300" | "GoldenYellow100" | "GoldenYellow50" | "GoldenYellow600" | "GoldenYellow400" | "GoldenYellow200" | "GoldenYellow700" | "GoldenYellow800" | "GoldenYellow900" | "GoldenYellow950" | "CharcoalGray500" | "CharcoalGray300" | "CharcoalGray100" | "CharcoalGray50" | "CharcoalGray600" | "CharcoalGray400" | "CharcoalGray200" | "CharcoalGray700" | "CharcoalGray800" | "CharcoalGray900" | "CharcoalGray950" | "Gray500" | "Gray300" | "Gray100" | "Gray50" | "Gray600" | "Gray400" | "Gray200" | "Gray700" | "Gray800" | "Gray900" | "Gray950", void, unknown>;
|
15
69
|
export declare const buildChartTooltipFromContext: ({ title, body, labelColors: labelColorsProp, }: Pick<Parameters<TooltipOptions["external"]>[0]["tooltip"], "title" | "body" | "labelColors">) => ReactNode;
|
70
|
+
export declare const distanceBetweenPoints: (pt1: Point, pt2: Point) => number;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PromoetheusConfigProps } from './types';
|
2
|
-
declare const PromoetheusConfigCard: ({ prometheusConfig,
|
2
|
+
declare const PromoetheusConfigCard: ({ prometheusConfig, handleOnChange, onPrometheusAuthTypeChange, }: PromoetheusConfigProps) => JSX.Element;
|
3
3
|
export default PromoetheusConfigCard;
|