@devtron-labs/devtron-fe-common-lib 1.20.5-pre-4 → 1.20.5-pre-6
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-B3Mnkxc0.js → @code-editor-BX0ncFEa.js} +7826 -7389
- package/dist/{@common-rjsf-C_CIIzXe.js → @common-rjsf-DkWOuVME.js} +18 -18
- package/dist/{@framer-motion-D-YaCAW-.js → @framer-motion-DMkBQPN0.js} +1 -1
- package/dist/{@react-dates-Bo3yT8LF.js → @react-dates-BjZWpiVv.js} +1 -1
- package/dist/{@react-select-DTi_5fIc.js → @react-select-DtwlfcIG.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-CuvDiqTo.js → @react-virtualized-sticky-tree-M81Af3Qs.js} +1 -1
- package/dist/{@vendor-DMIFbFhR.js → @vendor-DceGoESd.js} +14522 -14363
- package/dist/Common/API/CoreAPI.d.ts +1 -6
- package/dist/Common/API/index.d.ts +1 -1
- package/dist/Common/API/types.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +1 -0
- package/dist/Common/BreadCrumb/NestedBreadCrumb.d.ts +2 -0
- package/dist/Common/BreadCrumb/Types.d.ts +15 -0
- package/dist/Common/Common.service.d.ts +2 -1
- package/dist/Common/Constants.d.ts +7 -7
- package/dist/Common/Types.d.ts +43 -1
- package/dist/Common/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +13 -7
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +3 -3
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/index.d.ts +1 -1
- 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/Pages-Devtron-2.0/InfrastructureManagement/Shared/index.d.ts +0 -1
- package/dist/Shared/Components/ActionMenu/types.d.ts +1 -0
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
- package/dist/Shared/Components/Charts/constants.d.ts +3 -11
- package/dist/Shared/Components/Charts/index.d.ts +2 -1
- package/dist/Shared/Components/Charts/plugins.d.ts +2 -3
- package/dist/Shared/Components/Charts/types.d.ts +51 -26
- package/dist/Shared/Components/Charts/utils.d.ts +64 -6
- package/dist/Shared/Components/ClusterStatusIcon/ClusterStatusIcon.d.ts +3 -0
- package/dist/Shared/Components/ClusterStatusIcon/index.d.ts +1 -0
- package/dist/Shared/Components/ClusterStatusIcon/types.d.ts +5 -0
- package/dist/Shared/Components/ClusterStatusIcon/utils.d.ts +2 -0
- package/dist/Shared/Components/ConfirmationModal/ForceDeleteConfirmationModal.d.ts +1 -1
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +1 -1
- package/dist/Shared/Components/DocLink/constants.d.ts +1 -0
- package/dist/Shared/Components/ExportToCsv/ExportToCsv.d.ts +3 -0
- package/dist/Shared/Components/ExportToCsv/ExportToCsvDialog.d.ts +3 -0
- package/dist/Shared/Components/ExportToCsv/index.d.ts +2 -0
- package/dist/Shared/Components/ExportToCsv/types.d.ts +64 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +8 -17
- package/dist/Shared/Components/Icon/types.d.ts +1 -1
- package/dist/Shared/Components/Illustration/Illustration.d.ts +1 -0
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +1 -1
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +0 -1
- package/dist/Shared/Components/Table/types.d.ts +6 -4
- package/dist/Shared/Components/index.d.ts +2 -0
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +1 -1
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-arrow-line-down.b6a98848.svg +3 -0
- package/dist/assets/{ic-bg-build.7de825b3.svg → ic-bg-build.8609d0ea.svg} +1 -1
- package/dist/assets/{ic-bg-production-pipelines.5965401c.svg → ic-bg-production-pipelines.2951cdc0.svg} +3 -2
- package/dist/assets/ic-bg-webhook.b455152d.svg +13 -0
- package/dist/assets/ic-edit-lines.57927b07.svg +3 -0
- package/dist/assets/ic-file-download.ca57c068.svg +5 -0
- package/dist/assets/ic-gift-animated.d848dfa3.svg +1 -0
- package/dist/assets/{ic-graph-negative.d49ba2b7.svg → ic-priority-medium-fill.7bab0ff8.svg} +2 -2
- package/dist/assets/ic-ratings.a1d31244.svg +13 -0
- package/dist/assets/ic-success-blue.7b3a2720.svg +4 -0
- package/dist/assets/img-devtron-freemium.d0657c61.webp +0 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1005 -1018
- package/package.json +3 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/PageHeader.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/constants.d.ts +0 -2
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/types.d.ts +0 -12
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/utils.d.ts +0 -2
- package/dist/Shared/Components/SelectPicker/GroupedFilterSelectPicker.example.d.ts +0 -0
- package/dist/assets/ic-arrow-white.c5174353.svg +0 -3
- package/dist/assets/ic-bulb.3906a732.svg +0 -7
- package/dist/assets/ic-circle-progress.0875625d.svg +0 -6
- package/dist/assets/ic-dot-circle.5ce1fccf.svg +0 -3
- package/dist/assets/ic-failure-color.e167df98.svg +0 -4
- package/dist/assets/ic-line.4e8fa046.svg +0 -3
- package/dist/assets/ic-new-chat.f7c90f8e.svg +0 -5
- package/dist/assets/ic-piggybank.3a4839d7.svg +0 -3
- package/dist/assets/ic-priority-high-fill.53755d8f.svg +0 -3
- package/dist/assets/ic-priority-low-fill.79e781ae.svg +0 -4
- package/dist/assets/ic-priority-medium-fill.9abcdc4e.svg +0 -4
- package/dist/assets/ic-priority-urgent-fill.78d42fa0.svg +0 -10
- package/dist/assets/ic-red-bulb.25e01bfc.svg +0 -9
- package/dist/assets/ic-spider.99b77bd8.svg +0 -3
- package/dist/assets/ic-vector.4530b03c.svg +0 -3
- /package/dist/Pages-Devtron-2.0/{InfrastructureManagement → ApplicationManagement}/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +0 -0
- /package/dist/Pages-Devtron-2.0/{InfrastructureManagement → ApplicationManagement}/Shared/ApplicationManagementIcon/index.d.ts +0 -0
- /package/dist/Pages-Devtron-2.0/{InfrastructureManagement → ApplicationManagement}/Shared/ApplicationManagementIcon/utils.d.ts +0 -0
@@ -6,12 +6,6 @@ declare class CoreAPI {
|
|
6
6
|
host: string;
|
7
7
|
timeout: number;
|
8
8
|
constructor({ handleLogout, host, timeout, handleRedirectToLicenseActivation }: CoreAPIConstructorParamsType);
|
9
|
-
/**
|
10
|
-
* Constructs the final URL by detecting service paths and applying appropriate routing
|
11
|
-
* @param url - The endpoint URL
|
12
|
-
* @returns The final URL with correct base path
|
13
|
-
*/
|
14
|
-
private constructUrl;
|
15
9
|
private fetchAPI;
|
16
10
|
/**
|
17
11
|
* Merges multiple AbortSignals into a single AbortSignal that aborts
|
@@ -30,5 +24,6 @@ declare class CoreAPI {
|
|
30
24
|
patch: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
|
31
25
|
get: <T = any>(url: string, options?: APIOptions) => Promise<ResponseType<T>>;
|
32
26
|
trash: <T = any, K = object>(url: string, data?: K, options?: APIOptions) => Promise<ResponseType<T>>;
|
27
|
+
setGlobalAPITimeout: (timeout: number) => void;
|
33
28
|
}
|
34
29
|
export default CoreAPI;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const post: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions, isMultipartRequest?: boolean) => Promise<import('..').ResponseType<T>>, put: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, patch: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, get: <T = any>(url: string, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, trash: <T = any, K = object>(url: string, data?: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T
|
1
|
+
export declare const post: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions, isMultipartRequest?: boolean) => Promise<import('..').ResponseType<T>>, put: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, patch: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, get: <T = any>(url: string, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, trash: <T = any, K = object>(url: string, data?: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, setGlobalAPITimeout: (timeout: number) => void;
|
2
2
|
export { default as CoreAPI } from './CoreAPI';
|
3
3
|
export { QueryClientProvider } from './QueryClientProvider';
|
4
4
|
export * from './reactQueryHooks';
|
@@ -18,6 +18,6 @@ export interface FetchInTimeParamsType<Data = object> {
|
|
18
18
|
options?: APIOptions;
|
19
19
|
isMultipartRequest?: boolean;
|
20
20
|
}
|
21
|
-
export interface FetchAPIParamsType<Data = object> extends Omit<FetchInTimeParamsType<Data>, 'options'>, Pick<APIOptions, 'preventAutoLogout' | 'preventLicenseRedirect' | 'shouldParseServerErrorForUnauthorizedUser'> {
|
21
|
+
export interface FetchAPIParamsType<Data = object> extends Omit<FetchInTimeParamsType<Data>, 'options'>, Pick<APIOptions, 'preventAutoLogout' | 'preventLicenseRedirect' | 'shouldParseServerErrorForUnauthorizedUser' | 'isProxyHost'> {
|
22
22
|
signal: AbortSignal;
|
23
23
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
2
|
import { BreadcrumbTextProps } from './Types';
|
3
3
|
export declare const BreadcrumbText: ({ heading, isActive, shouldTruncate }: BreadcrumbTextProps) => JSX.Element;
|
4
|
+
export declare const getBreadCrumbSeparator: (sep?: string) => JSX.Element;
|
4
5
|
declare const Store: ({ children }: {
|
5
6
|
children: any;
|
6
7
|
}) => JSX.Element;
|
@@ -34,3 +34,18 @@ export interface BreadcrumbTextProps {
|
|
34
34
|
*/
|
35
35
|
shouldTruncate?: boolean;
|
36
36
|
}
|
37
|
+
export interface NestedBreadCrumbProps {
|
38
|
+
/**
|
39
|
+
* It is the url to which the link should redirect
|
40
|
+
*/
|
41
|
+
redirectUrl: string;
|
42
|
+
/**
|
43
|
+
* It is the text of the link
|
44
|
+
*/
|
45
|
+
linkText: string;
|
46
|
+
/**
|
47
|
+
* It is the name of the profile
|
48
|
+
* If not given, would show "Create Profile"
|
49
|
+
*/
|
50
|
+
profileName: string;
|
51
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { MutableRefObject } from 'react';
|
2
2
|
import { RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
|
3
|
-
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps, EnvironmentsGroupedByClustersType, AppsGroupedByProjectsType } from './Types';
|
3
|
+
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps, EnvironmentsGroupedByClustersType, AppsGroupedByProjectsType, ClusterDetailListType } from './Types';
|
4
4
|
import { ApiResourceType } from '../Pages';
|
5
5
|
export declare const getTeamListMin: () => Promise<TeamList>;
|
6
6
|
export declare const SourceTypeMap: {
|
@@ -38,3 +38,4 @@ export declare const getGlobalVariables: ({ appId, isCD, abortControllerRef, }:
|
|
38
38
|
export declare const getAppsInfoForEnv: ({ envId, appIds }: GetAppsInfoForEnvProps) => Promise<EnvAppsMetaDTO>;
|
39
39
|
export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
|
40
40
|
export declare const getEnvironmentOptionsGroupedByClusters: () => Promise<EnvironmentsGroupedByClustersType>;
|
41
|
+
export declare const getDetailedClusterList: (clusterIds?: number[], signal?: AbortSignal) => Promise<ClusterDetailListType[]>;
|
@@ -1,10 +1,6 @@
|
|
1
1
|
import { SelectPickerOptionType } from '../Shared/Components';
|
2
2
|
export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
|
3
3
|
export declare const Host: string;
|
4
|
-
export declare const SERVICE_PATHS: {
|
5
|
-
readonly ATHENA: "athena";
|
6
|
-
readonly ORCHESTRATOR: "orchestrator";
|
7
|
-
};
|
8
4
|
export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
9
5
|
export declare const DEVTRON_HOME_PAGE = "https://devtron.ai/";
|
10
6
|
export declare const DOCUMENTATION_VERSION = "/devtron/v1.7";
|
@@ -66,9 +62,9 @@ export declare const URLS: {
|
|
66
62
|
readonly APPLICATION_MANAGEMENT_PROJECTS: "/application-management/projects";
|
67
63
|
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS: "/application-management/configurations";
|
68
64
|
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_DEPLOYMENT_CHARTS: "/application-management/configurations/deployment-charts";
|
69
|
-
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_CATALOG_FRAMEWORK: "/application-management/configurations/catalog-framework";
|
70
65
|
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_SCOPED_VARIABLES: "/application-management/configurations/scoped-variables";
|
71
66
|
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_BUILD_INFRA: "/application-management/configurations/build-infra";
|
67
|
+
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_BUILD_INFRA_PROFILES: "/application-management/configurations/build-infra/profiles";
|
72
68
|
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_NOTIFICATIONS: "/application-management/configurations/notifications";
|
73
69
|
readonly INFRASTRUCTURE_MANAGEMENT: "/infrastructure-management";
|
74
70
|
readonly INFRASTRUCTURE_MANAGEMENT_OVERVIEW: "/infrastructure-management/overview";
|
@@ -87,8 +83,11 @@ export declare const URLS: {
|
|
87
83
|
readonly SECURITY_CENTER: "/security-center";
|
88
84
|
readonly AUTOMATION_AND_ENABLEMENT: "/automation-and-enablement";
|
89
85
|
readonly AUTOMATION_AND_ENABLEMENT_JOB: "/automation-and-enablement/job";
|
90
|
-
readonly
|
91
|
-
readonly
|
86
|
+
readonly DATA_PROTECTION: "/data-protection-management";
|
87
|
+
readonly DATA_PROTECTION_OVERVIEW: "/data-protection-management/overview";
|
88
|
+
readonly DATA_PROTECTION_BACKUP_AND_SCHEDULE: "/data-protection-management/backup-and-schedule";
|
89
|
+
readonly DATA_PROTECTION_RESTORES: "/data-protection-management/restores";
|
90
|
+
readonly DATA_PROTECTION_BACKUP_LOCATIONS: "/data-protection-management/backup-locations";
|
92
91
|
readonly GLOBAL_CONFIG: "/global-configuration";
|
93
92
|
readonly GLOBAL_CONFIG_DOCKER: "/global-configuration/docker";
|
94
93
|
readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-configuration/cluster-env/edit/:clusterId";
|
@@ -358,6 +357,7 @@ export declare const DATE_TIME_FORMATS: {
|
|
358
357
|
DD_MMM_YYYY_HH_MM: string;
|
359
358
|
DD_MMM_YYYY: string;
|
360
359
|
'DD/MM/YYYY': string;
|
360
|
+
DD_MMM: string;
|
361
361
|
};
|
362
362
|
export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
|
363
363
|
export declare const VULNERABILITIES_SORT_PRIORITY: {
|
package/dist/Common/Types.d.ts
CHANGED
@@ -4,7 +4,8 @@ import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
5
5
|
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ComponentLayoutType, StatusType, DocLinkProps, DeploymentStrategyType, EnvironmentType } from '../Shared';
|
6
6
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
7
|
-
import { IllustrationName } from '../Shared/Components';
|
7
|
+
import { IllustrationName, SelectPickerOptionType } from '../Shared/Components';
|
8
|
+
import { ClusterStatusType } from '../Pages/ResourceBrowser';
|
8
9
|
/**
|
9
10
|
* Generic response type object with support for overriding the result type
|
10
11
|
*
|
@@ -40,6 +41,11 @@ export interface APIOptions {
|
|
40
41
|
* @default false
|
41
42
|
*/
|
42
43
|
shouldParseServerErrorForUnauthorizedUser?: boolean;
|
44
|
+
/**
|
45
|
+
* @default false
|
46
|
+
* @description - If true, will override the default host (orchestrator or whatever defined initially in CoreAPI constructor) with the `proxy` host
|
47
|
+
*/
|
48
|
+
isProxyHost?: boolean;
|
43
49
|
}
|
44
50
|
export interface OptionType<T = string, K = string> {
|
45
51
|
value: T;
|
@@ -943,4 +949,40 @@ export type EnvironmentsGroupedByClustersType = {
|
|
943
949
|
clusterName: EnvironmentType['cluster'];
|
944
950
|
envList: EnvironmentType[];
|
945
951
|
}[];
|
952
|
+
export type ClusterCostModuleConfigPayload = {
|
953
|
+
enabled: true;
|
954
|
+
config?: Record<string, any>;
|
955
|
+
} | {
|
956
|
+
enabled: false;
|
957
|
+
config?: never;
|
958
|
+
};
|
959
|
+
interface ClusterCostModuleDetailsDTO extends Pick<ClusterCostModuleConfigPayload, 'enabled' | 'config'> {
|
960
|
+
installationStatus: 'Success' | 'Installing' | 'Upgrading' | 'NotInstalled' | 'Failed';
|
961
|
+
installationError?: string;
|
962
|
+
}
|
963
|
+
export interface ClusterDetailDTO {
|
964
|
+
category: ClusterEnvironmentCategoryType;
|
965
|
+
cluster_name: string;
|
966
|
+
description: string;
|
967
|
+
id: number;
|
968
|
+
insecureSkipTlsVerify: boolean;
|
969
|
+
installationId: number;
|
970
|
+
isProd: boolean;
|
971
|
+
isVirtualCluster: boolean;
|
972
|
+
server_url: string;
|
973
|
+
sshTunnelConfig: any;
|
974
|
+
prometheus_url: string;
|
975
|
+
proxyUrl: string;
|
976
|
+
toConnectWithSSHTunnel: boolean;
|
977
|
+
clusterStatus: ClusterStatusType;
|
978
|
+
costModuleConfig: ClusterCostModuleDetailsDTO;
|
979
|
+
}
|
980
|
+
export interface ClusterDetailListType extends Omit<ClusterDetailDTO, 'server_url' | 'cluster_name' | 'prometheus_url' | 'id' | 'category' | 'clusterStatus'> {
|
981
|
+
serverUrl: ClusterDetailDTO['server_url'];
|
982
|
+
clusterName: ClusterDetailDTO['cluster_name'];
|
983
|
+
prometheusUrl: ClusterDetailDTO['prometheus_url'];
|
984
|
+
clusterId: ClusterDetailDTO['id'];
|
985
|
+
category: SelectPickerOptionType;
|
986
|
+
status: ClusterStatusType;
|
987
|
+
}
|
946
988
|
export {};
|
package/dist/Common/index.d.ts
CHANGED
@@ -2,6 +2,7 @@ export * from './AddCDButton';
|
|
2
2
|
export * from './API';
|
3
3
|
export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb';
|
4
4
|
export { default as BreadcrumbStore, BreadcrumbText } from './BreadCrumb/BreadcrumbStore';
|
5
|
+
export { NestedBreadCrumb } from './BreadCrumb/NestedBreadCrumb';
|
5
6
|
export { default as ChartVersionAndTypeSelector } from './ChartVersionAndTypeSelector';
|
6
7
|
export * from './Checkbox';
|
7
8
|
export * from './CIPipeline.Types';
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { BuildInfraDescriptorProps } from './types';
|
2
|
-
declare const Descriptor: ({ additionalContainerClasses,
|
2
|
+
declare const Descriptor: ({ additionalContainerClasses, children, tooltipNode, tippyInfoText, tippyAdditionalContent, tooltipHeading, profileName, }: BuildInfraDescriptorProps) => JSX.Element;
|
3
3
|
export default Descriptor;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { UseBreadcrumbProps } from '../../../Common/BreadCrumb/Types';
|
2
1
|
import { CMSecretComponentType } from '../../../Shared/Services';
|
3
2
|
import { BuildInfraAPIVersionType, BuildInfraConfigTypes, BuildInfraFormFieldType, BuildInfraInheritActionsOnSubValues, BuildInfraLocators, BuildInfraMetaConfigTypes, BuildInfraToleranceEffectType, BuildInfraToleranceOperatorType, HandleProfileInputChangeType, InfraConfigWithSubValues, ProfileInputErrorType, RequestLimitConfigType, TargetPlatformErrorFields, ValidateRequestLimitType } from './types';
|
4
3
|
export declare const BUILD_INFRA_INPUT_CONSTRAINTS: {
|
@@ -37,7 +36,6 @@ export declare const BUILD_INFRA_TEXT: {
|
|
37
36
|
};
|
38
37
|
readonly INVALID_FORM_MESSAGE: "Valid input is required for all mandatory fields.";
|
39
38
|
};
|
40
|
-
export declare const BUILD_INFRA_BREADCRUMB: UseBreadcrumbProps;
|
41
39
|
export declare const BUILD_INFRA_LOCATOR_MARKER_MAP: Readonly<Record<BuildInfraLocators, BuildInfraFormFieldType['marker']>>;
|
42
40
|
export declare const BUILD_INFRA_LOCATOR_LABEL_MAP: Readonly<Record<BuildInfraLocators, string>>;
|
43
41
|
export declare const BUILD_INFRA_FORM_FIELDS: Readonly<BuildInfraFormFieldType[]>;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { FormEvent, FunctionComponent, ReactNode, SyntheticEvent } from 'react';
|
2
2
|
import { BUILD_INFRA_INHERIT_ACTIONS, useBuildInfraForm } from '../../index';
|
3
3
|
import { ServerErrors } from '../../../Common';
|
4
|
-
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
5
4
|
import { CMSecretComponentType, CMSecretConfigData, CMSecretPayloadType, ConfigMapSecretUseFormProps, getUniqueId, useForm, ValidationResponseType } from '../../../Shared';
|
6
5
|
/**
|
7
6
|
* Unique actions that will be dispatched and,
|
@@ -43,21 +42,28 @@ export declare enum BuildInfraProfileVariants {
|
|
43
42
|
NORMAL = "NORMAL",
|
44
43
|
CUSTOM = "CUSTOM"
|
45
44
|
}
|
46
|
-
export
|
45
|
+
export type BuildInfraDescriptorProps = {
|
47
46
|
/**
|
48
47
|
* In case we want to restrict the max-width
|
49
48
|
*/
|
50
49
|
additionalContainerClasses?: string;
|
51
|
-
breadCrumbs: Breadcrumb[];
|
52
50
|
/**
|
53
51
|
* Would stick at right of div
|
54
52
|
*/
|
55
53
|
children?: ReactNode;
|
56
|
-
|
57
|
-
|
58
|
-
|
54
|
+
} & ({
|
55
|
+
tooltipNode: ReactNode;
|
56
|
+
tippyInfoText?: never;
|
57
|
+
tooltipHeading?: never;
|
58
|
+
tippyAdditionalContent?: never;
|
59
|
+
profileName?: never;
|
60
|
+
} | {
|
61
|
+
tooltipNode?: never;
|
62
|
+
tippyInfoText: string;
|
59
63
|
tooltipHeading?: string;
|
60
|
-
|
64
|
+
tippyAdditionalContent?: ReactNode;
|
65
|
+
profileName?: string;
|
66
|
+
});
|
61
67
|
export type NumericBuildInfraConfigTypes = Extract<BuildInfraConfigTypes, BuildInfraConfigTypes.BUILD_TIMEOUT | BuildInfraConfigTypes.CPU_LIMIT | BuildInfraConfigTypes.CPU_REQUEST | BuildInfraConfigTypes.MEMORY_LIMIT | BuildInfraConfigTypes.MEMORY_REQUEST>;
|
62
68
|
export interface BuildInfraActionType {
|
63
69
|
/**
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { RefObject } from 'react';
|
2
|
+
import { FiltersTypeEnum, TableViewWrapperProps } from '../../Shared/Components';
|
2
3
|
import { Nodes, NodeType } from '../../Shared/types';
|
3
4
|
export interface GVKType {
|
4
5
|
Group: string;
|
@@ -136,8 +137,7 @@ export interface GVKOptionValueType {
|
|
136
137
|
kind: string;
|
137
138
|
apiVersion: string;
|
138
139
|
}
|
139
|
-
export interface ResourceRecommenderActionMenuProps {
|
140
|
-
children: ReactNode;
|
140
|
+
export interface ResourceRecommenderActionMenuProps extends Pick<TableViewWrapperProps<K8sResourceDetailDataType, FiltersTypeEnum.URL>, 'filteredRows'> {
|
141
141
|
lastScannedOn: string;
|
142
142
|
}
|
143
143
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
export * from './
|
1
|
+
export * from './ApplicationManagementIcon';
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { IconName } from '../../../Shared/Components';
|
2
|
+
import { ClusterProviderType } from './types';
|
3
|
+
export declare const CLUSTER_PROVIDER_TO_ICON_NAME: Record<ClusterProviderType, IconName | null>;
|
4
|
+
export declare const CLUSTER_PROVIDER_TO_LABEL: Record<ClusterProviderType, string>;
|
@@ -1,3 +1,6 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { RJSFFormSchema } from '../../../Common/RJSF';
|
3
|
+
import { ClusterDetailListType } from '../../../Common/Types';
|
1
4
|
export declare enum CostBreakdownViewType {
|
2
5
|
CLUSTERS = "clusters",
|
3
6
|
ENVIRONMENTS = "environments",
|
@@ -9,3 +12,20 @@ export declare enum CostBreakdownItemViewParamsType {
|
|
9
12
|
VIEW = "view",
|
10
13
|
DETAIL = "detail"
|
11
14
|
}
|
15
|
+
type RenderClusterFormParamsType = {
|
16
|
+
clusterDetails: ClusterDetailListType;
|
17
|
+
handleClose: () => void;
|
18
|
+
handleSuccess: () => void;
|
19
|
+
};
|
20
|
+
export interface CostVisibilityRenderContextType {
|
21
|
+
renderClusterForm: (params: RenderClusterFormParamsType) => JSX.Element;
|
22
|
+
}
|
23
|
+
export interface CostVisibilityRenderProviderProps extends CostVisibilityRenderContextType {
|
24
|
+
children: ReactNode;
|
25
|
+
}
|
26
|
+
export type ClusterProviderType = 'AWS' | 'GCP' | 'Azure' | 'Alibaba' | 'Scaleway' | 'Oracle' | 'OTC' | 'DigitalOcean' | 'Unknown';
|
27
|
+
export interface ClusterProviderDetailsType {
|
28
|
+
clusterProvider: ClusterProviderType;
|
29
|
+
costModuleSchema: RJSFFormSchema;
|
30
|
+
}
|
31
|
+
export {};
|
@@ -39,6 +39,7 @@ export type ActionMenuItemType<T extends string | number = string | number> = Om
|
|
39
39
|
trailingItem?: TrailingItemType;
|
40
40
|
/** Prevents the menu from closing when the item is clicked. */
|
41
41
|
doNotCloseMenuOnClick?: boolean;
|
42
|
+
dataAttributesId?: number;
|
42
43
|
} & ConditionalActionMenuComponentType;
|
43
44
|
export type ActionMenuOptionType<T extends string | number> = {
|
44
45
|
/**
|
@@ -64,7 +64,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
64
64
|
itemRef?: string;
|
65
65
|
results?: number;
|
66
66
|
unselectable?: "on" | "off";
|
67
|
-
inputMode?: "search" | "text" | "none" | "url" | "
|
67
|
+
inputMode?: "search" | "text" | "none" | "url" | "decimal" | "tel" | "email" | "numeric";
|
68
68
|
"aria-activedescendant"?: string;
|
69
69
|
"aria-atomic"?: boolean | "true" | "false";
|
70
70
|
"aria-autocomplete"?: "none" | "list" | "inline" | "both";
|
@@ -1,16 +1,8 @@
|
|
1
1
|
import { AppThemeType } from '../../Providers';
|
2
2
|
import { ChartColorKey } from './types';
|
3
|
-
export declare const LEGENDS_LABEL_CONFIG: {
|
4
|
-
readonly usePointStyle: true;
|
5
|
-
readonly pointStyle: "rectRounded";
|
6
|
-
readonly pointStyleWidth: 0;
|
7
|
-
readonly font: {
|
8
|
-
readonly family: "'IBM Plex Sans', 'Open Sans', 'Roboto'";
|
9
|
-
readonly size: 13;
|
10
|
-
readonly lineHeight: "150%";
|
11
|
-
readonly weight: 400;
|
12
|
-
};
|
13
|
-
};
|
14
3
|
export declare const CHART_COLORS: Record<AppThemeType, Record<ChartColorKey, string>>;
|
15
4
|
export declare const CHART_GRID_LINES_COLORS: Record<AppThemeType, string>;
|
5
|
+
export declare const CHART_AXIS_COLORS: Record<AppThemeType, string>;
|
6
|
+
export declare const CHART_AXIS_LABELS_COLOR: Record<AppThemeType, string>;
|
16
7
|
export declare const CHART_CANVAS_BACKGROUND_COLORS: Record<AppThemeType, string>;
|
8
|
+
export declare const LINE_DASH: number[];
|
@@ -1,3 +1,4 @@
|
|
1
1
|
export { default as Chart } from './Chart.component';
|
2
2
|
export { CHART_COLORS } from './constants';
|
3
|
-
export type { ChartColorKey, ChartProps, ChartType, SimpleDataset, SimpleDatasetForPie } from './types';
|
3
|
+
export type { ChartColorKey, ChartProps, ChartType, ReferenceLineConfigType, SimpleDataset, SimpleDatasetForPie, } from './types';
|
4
|
+
export { chartColorGenerator } from './utils';
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Plugin } from 'chart.js';
|
2
2
|
import { AppThemeType } from '../../Providers';
|
3
|
-
import {
|
4
|
-
export declare const
|
5
|
-
export declare const getSeparatorLinePlugin: (separatorIndex: number, chartType: ChartType, appTheme: AppThemeType) => Plugin;
|
3
|
+
import { ReferenceLineConfigType } from './types';
|
4
|
+
export declare const drawReferenceLine: (config: ReferenceLineConfigType, id: string, appTheme: AppThemeType) => Plugin;
|
@@ -1,9 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { TooltipOptions, TooltipPositionerFunction } from 'chart.js';
|
3
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
2
4
|
import { AppThemeType } from '../../Providers';
|
3
5
|
import { Never } from '../../types';
|
4
6
|
export type ChartType = 'area' | 'pie' | 'stackedBar' | 'stackedBarHorizontal' | 'line';
|
5
|
-
type ColorTokensType = 'DeepPlum' | 'Magenta' | 'Slate' | 'Lavender' | 'SkyBlue' | 'AquaTeal' | 'LimeGreen' | 'CoralRed' | 'GoldenYellow' | 'CharcoalGray' | 'Gray';
|
6
|
-
type VariantsType = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
|
7
|
+
export type ColorTokensType = 'DeepPlum' | 'Magenta' | 'Slate' | 'Lavender' | 'SkyBlue' | 'AquaTeal' | 'LimeGreen' | 'CoralRed' | 'GoldenYellow' | 'CharcoalGray' | 'Gray';
|
8
|
+
export type VariantsType = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
|
7
9
|
export type ChartColorKey = `${ColorTokensType}${VariantsType}`;
|
8
10
|
export type ChartTypeWithoutPie = Exclude<ChartType, 'pie'>;
|
9
11
|
interface BaseSimpleDataset {
|
@@ -11,41 +13,49 @@ interface BaseSimpleDataset {
|
|
11
13
|
yAxisValues: number[];
|
12
14
|
}
|
13
15
|
export interface SimpleDataset extends BaseSimpleDataset {
|
14
|
-
|
16
|
+
color: ChartColorKey;
|
17
|
+
isClickable?: boolean;
|
18
|
+
}
|
19
|
+
export interface SimpleDatasetForLineAndArea extends Omit<SimpleDataset, 'isClickable'> {
|
20
|
+
isDashed?: boolean;
|
15
21
|
}
|
16
22
|
export interface SimpleDatasetForPie extends BaseSimpleDataset {
|
17
|
-
|
23
|
+
colors: Array<ChartColorKey>;
|
24
|
+
isClickable?: boolean[];
|
18
25
|
}
|
19
|
-
export interface
|
20
|
-
|
26
|
+
export interface ReferenceLineConfigType {
|
27
|
+
strokeWidth?: number;
|
28
|
+
color?: ChartColorKey;
|
29
|
+
value: number;
|
21
30
|
}
|
22
31
|
type XYAxisMax = {
|
23
32
|
xAxisMax?: number;
|
24
33
|
yAxisMax?: number;
|
34
|
+
/**
|
35
|
+
* Optional reference lines to draw across the chart
|
36
|
+
*/
|
37
|
+
referenceLines?: ReferenceLineConfigType[];
|
25
38
|
};
|
26
|
-
type
|
39
|
+
type OnChartClickHandler = (datasetName: string, value: number) => void;
|
40
|
+
export type TypeAndDatasetsType = ({
|
27
41
|
type: 'pie';
|
28
42
|
/**
|
29
43
|
* Needs to be memoized
|
30
44
|
*/
|
31
45
|
datasets: SimpleDatasetForPie;
|
32
|
-
|
33
|
-
averageLineValue?: never;
|
46
|
+
onChartClick?: OnChartClickHandler;
|
34
47
|
} & Never<XYAxisMax>) | ({
|
35
48
|
type: 'line';
|
36
|
-
datasets:
|
37
|
-
|
38
|
-
averageLineValue?: number;
|
49
|
+
datasets: SimpleDatasetForLineAndArea[];
|
50
|
+
onChartClick?: never;
|
39
51
|
} & XYAxisMax) | ({
|
40
52
|
type: 'area';
|
41
|
-
datasets:
|
42
|
-
|
43
|
-
averageLineValue?: number;
|
53
|
+
datasets: SimpleDatasetForLineAndArea;
|
54
|
+
onChartClick?: never;
|
44
55
|
} & XYAxisMax) | ({
|
45
56
|
type: Exclude<ChartType, 'pie' | 'line' | 'area'>;
|
46
57
|
datasets: SimpleDataset[];
|
47
|
-
|
48
|
-
averageLineValue?: never;
|
58
|
+
onChartClick?: OnChartClickHandler;
|
49
59
|
} & XYAxisMax);
|
50
60
|
export type ChartProps = {
|
51
61
|
id: string;
|
@@ -58,10 +68,18 @@ export type ChartProps = {
|
|
58
68
|
* @default false
|
59
69
|
*/
|
60
70
|
hideAxis?: boolean;
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
71
|
+
hideXAxisLabels?: boolean;
|
72
|
+
tooltipConfig?: {
|
73
|
+
getTooltipContent?: (args: Parameters<TooltipOptions['external']>[0]) => ReactNode;
|
74
|
+
/**
|
75
|
+
* @default 'top'
|
76
|
+
*/
|
77
|
+
placement?: TooltipProps['placement'];
|
78
|
+
};
|
79
|
+
/** A title for x axis */
|
80
|
+
xScaleTitle?: string;
|
81
|
+
/** A title for y axis */
|
82
|
+
yScaleTitle?: string;
|
65
83
|
} & TypeAndDatasetsType;
|
66
84
|
export type TransformDatasetProps = {
|
67
85
|
appTheme: AppThemeType;
|
@@ -69,17 +87,24 @@ export type TransformDatasetProps = {
|
|
69
87
|
type: 'pie';
|
70
88
|
dataset: SimpleDatasetForPie;
|
71
89
|
} | {
|
72
|
-
type: 'line';
|
73
|
-
dataset:
|
90
|
+
type: 'line' | 'area';
|
91
|
+
dataset: SimpleDatasetForLineAndArea;
|
74
92
|
} | {
|
75
|
-
type: Exclude<ChartType, 'pie' | 'line'>;
|
93
|
+
type: Exclude<ChartType, 'pie' | 'line' | 'area'>;
|
76
94
|
dataset: SimpleDataset;
|
77
95
|
});
|
78
96
|
export type GetBackgroundAndBorderColorProps = TransformDatasetProps;
|
79
97
|
export type TransformDataForChartProps = {
|
80
98
|
appTheme: AppThemeType;
|
81
99
|
} & TypeAndDatasetsType;
|
82
|
-
export interface GetDefaultOptionsParams
|
100
|
+
export interface GetDefaultOptionsParams {
|
101
|
+
chartProps: ChartProps;
|
83
102
|
appTheme: AppThemeType;
|
103
|
+
externalTooltipHandler: TooltipOptions['external'];
|
104
|
+
}
|
105
|
+
declare module 'chart.js' {
|
106
|
+
interface TooltipPositionerMap {
|
107
|
+
barElementCenterPositioner: TooltipPositionerFunction<'bar'>;
|
108
|
+
}
|
84
109
|
}
|
85
110
|
export {};
|
@@ -1,12 +1,70 @@
|
|
1
|
-
import {
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { Chart, ChartDataset, ChartOptions, ChartType as ChartJSChartType, Point, TooltipOptions } from 'chart.js';
|
3
|
+
import { AppThemeType } from '../../Providers';
|
2
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
|
+
};
|
3
46
|
export declare const getChartJSType: (type: ChartType) => ChartJSChartType;
|
4
|
-
export declare const getDefaultOptions: ({
|
47
|
+
export declare const getDefaultOptions: ({ chartProps, appTheme, externalTooltipHandler, }: GetDefaultOptionsParams) => ChartOptions;
|
5
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;
|
6
65
|
label: string;
|
7
66
|
data: number[];
|
8
|
-
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);
|
9
|
-
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);
|
10
|
-
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);
|
11
|
-
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);
|
12
67
|
})[];
|
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>;
|
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;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as ClusterStatusIcon } from './ClusterStatusIcon';
|