@devtron-labs/devtron-fe-common-lib 1.20.2-pre-0 → 1.20.2-pre-1
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-D4gUoqHX.js → @code-editor-Bouc81xr.js} +10715 -9557
- package/dist/{@common-rjsf-Cy_tMIQf.js → @common-rjsf-Dz2q-K7t.js} +46 -46
- package/dist/{@framer-motion-DZveCoIL.js → @framer-motion-D-YaCAW-.js} +92 -90
- package/dist/{@react-dates-CZ1bNWJM.js → @react-dates-Bo3yT8LF.js} +1 -1
- package/dist/{@react-select-DS68hCUM.js → @react-select-DTi_5fIc.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-V-8klKy9.js → @react-virtualized-sticky-tree-CuvDiqTo.js} +1 -1
- package/dist/{@vendor-3ORIJA0h.js → @vendor-DMIFbFhR.js} +26068 -17978
- package/dist/Common/API/reactQueryHooks.d.ts +1 -1
- package/dist/Common/Common.service.d.ts +3 -1
- package/dist/Common/Constants.d.ts +41 -14
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +8 -0
- package/dist/Common/SegmentedBarChart/types.d.ts +2 -0
- package/dist/Common/SegmentedBarChart/utils.d.ts +2 -0
- package/dist/Common/Types.d.ts +12 -4
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/PageHeader.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/constants.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/types.d.ts +12 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/utils.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +1 -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 +11 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/ApplicationManagementIcon/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/ApplicationManagementIcon/utils.d.ts +11 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/InfrastructureManagementIcon.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/utils.d.ts +6 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/utils.d.ts +11 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/index.d.ts +3 -0
- package/dist/Shared/Components/ActionMenu/types.d.ts +2 -0
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/types.d.ts +1 -1
- package/dist/Shared/Components/Badge/utils.d.ts +2 -1
- package/dist/Shared/Components/Charts/Chart.component.d.ts +102 -0
- package/dist/Shared/Components/Charts/constants.d.ts +16 -0
- package/dist/Shared/Components/Charts/index.d.ts +4 -0
- package/dist/Shared/Components/Charts/plugins.d.ts +5 -0
- package/dist/Shared/Components/Charts/types.d.ts +95 -0
- package/dist/Shared/Components/Charts/utils.d.ts +15 -0
- package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +2 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -5
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -3
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +2 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +28 -0
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +6 -0
- package/dist/Shared/Components/Illustration/Illustration.d.ts +1 -0
- package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +3 -0
- package/dist/Shared/Components/KeyboardShortcut/constants.d.ts +3 -0
- package/dist/Shared/Components/KeyboardShortcut/index.d.ts +1 -0
- package/dist/Shared/Components/KeyboardShortcut/types.d.ts +4 -0
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +3 -0
- package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +2 -0
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +21 -0
- package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +2 -0
- package/dist/Shared/Components/SideNavigation/index.d.ts +2 -0
- package/dist/Shared/Components/SideNavigation/types.d.ts +19 -0
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/TrailingItem/types.d.ts +4 -0
- package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
- package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
- package/dist/Shared/Components/TreeView/constants.d.ts +3 -0
- package/dist/Shared/Components/TreeView/types.d.ts +17 -3
- package/dist/Shared/Components/index.d.ts +4 -0
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -5
- package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +5 -20
- package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +32 -2
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +9 -0
- package/dist/Shared/Services/common.service.d.ts +2 -0
- package/dist/Shared/Services/types.d.ts +6 -0
- package/dist/Shared/constants.d.ts +2 -1
- package/dist/Shared/types.d.ts +20 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-alibaba.518d61a4.svg +3 -0
- package/dist/assets/ic-argocd-app.9c5eba79.svg +61 -0
- package/dist/assets/ic-aws.b094356f.svg +11 -0
- package/dist/assets/ic-bg-build.7de825b3.svg +13 -0
- package/dist/assets/ic-bg-deploy.266711fe.svg +22 -0
- package/dist/assets/ic-bg-production-pipelines.5965401c.svg +21 -0
- package/dist/assets/ic-bg-project.84658405.svg +12 -0
- package/dist/assets/ic-bg-scan.2249360c.svg +28 -0
- package/dist/assets/ic-bot.65f403dd.svg +3 -0
- package/dist/assets/ic-building.2405d07b.svg +3 -0
- package/dist/assets/ic-clipboard.2869fa7d.svg +3 -0
- package/dist/assets/ic-clock-counterclockwise.3d7c2ef1.svg +3 -0
- package/dist/assets/ic-cloud.aa7acc8a.svg +3 -0
- package/dist/assets/ic-coins.2c15f406.svg +3 -0
- package/dist/assets/ic-database-backup.b9e7c558.svg +3 -0
- package/dist/assets/ic-devtron-text.67a413b6.svg +3 -0
- package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
- package/dist/assets/ic-floppy-disk.6d392bcd.svg +3 -0
- package/dist/assets/ic-fluxcd-app.7bf7dce5.svg +22 -0
- package/dist/assets/ic-google-cloud.a0198038.svg +6 -0
- package/dist/assets/ic-graph-negative.d49ba2b7.svg +4 -0
- package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
- package/dist/assets/ic-magic-wand.2c29cd4e.svg +10 -0
- package/dist/assets/ic-oracle-cloud.5a8ee45d.svg +3 -0
- package/dist/assets/ic-otc-cloud.43b31bd8.svg +5 -0
- package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +3 -0
- package/dist/assets/ic-symbol-greater-than.8f71342d.svg +3 -0
- package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
- package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1020 -956
- package/package.json +2 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
@@ -1,6 +1,6 @@
|
|
1
1
|
import { QueryKey, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
2
2
|
import { ServerErrors } from '../ServerError';
|
3
3
|
import { ResponseType } from '../Types';
|
4
|
-
export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<ResponseType<TQueryFnData
|
4
|
+
export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, WrapWithResponseType extends boolean = true>(options: UseQueryOptions<WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
|
5
5
|
export declare const useMutation: <TData = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<ResponseType<TData>, ServerErrors, TVariables, TContext>) => UseMutationResult<ResponseType<TData>, ServerErrors, TVariables, TContext>;
|
6
6
|
export { useQueryClient };
|
@@ -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 } from './Types';
|
3
|
+
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps, EnvironmentsGroupedByClustersType, AppsGroupedByProjectsType } from './Types';
|
4
4
|
import { ApiResourceType } from '../Pages';
|
5
5
|
export declare const getTeamListMin: () => Promise<TeamList>;
|
6
6
|
export declare const SourceTypeMap: {
|
@@ -36,3 +36,5 @@ export declare const getGlobalVariables: ({ appId, isCD, abortControllerRef, }:
|
|
36
36
|
abortControllerRef?: MutableRefObject<AbortController>;
|
37
37
|
}) => Promise<GlobalVariableOptionType[]>;
|
38
38
|
export declare const getAppsInfoForEnv: ({ envId, appIds }: GetAppsInfoForEnvProps) => Promise<EnvAppsMetaDTO>;
|
39
|
+
export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
|
40
|
+
export declare const getEnvironmentOptionsGroupedByClusters: () => Promise<EnvironmentsGroupedByClustersType>;
|
@@ -30,11 +30,7 @@ export declare const PATTERNS: {
|
|
30
30
|
export declare const URLS: {
|
31
31
|
readonly LOGIN: "/login";
|
32
32
|
readonly LOGIN_SSO: "/login/sso";
|
33
|
-
readonly PERMISSION_GROUPS: "/global-config/auth/groups";
|
34
|
-
readonly APP: "/app";
|
35
33
|
readonly APP_LIST: "list";
|
36
|
-
readonly CHARTS_DISCOVER: "/chart-store/discover";
|
37
|
-
readonly JOB: "/job";
|
38
34
|
readonly CREATE_JOB: "create-job";
|
39
35
|
readonly GETTING_STARTED: "getting-started";
|
40
36
|
readonly STACK_MANAGER_ABOUT: "/stack-manager/about";
|
@@ -49,21 +45,52 @@ export declare const URLS: {
|
|
49
45
|
readonly DETAILS: "/details";
|
50
46
|
readonly CD_DETAILS: "cd-details";
|
51
47
|
readonly APP_TRIGGER: "trigger";
|
52
|
-
readonly GLOBAL_CONFIG_DOCKER: "/global-config/docker";
|
53
48
|
readonly DEPLOYMENT_HISTORY_CONFIGURATIONS: "/configuration";
|
54
|
-
readonly GLOBAL_CONFIG_SCOPED_VARIABLES: "/global-config/scoped-variables";
|
55
|
-
readonly GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: "/global-config/deployment-charts";
|
56
|
-
readonly GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART: "/global-config/deployment-charts/upload-chart";
|
57
49
|
readonly NETWORK_STATUS_INTERFACE: "/network-status-interface";
|
58
|
-
readonly RESOURCE_BROWSER: "/resource-browser";
|
59
50
|
readonly COMPARE_CLUSTERS: "/compare-clusters";
|
60
51
|
readonly APP_CONFIG: "edit";
|
61
|
-
readonly GLOBAL_CONFIG: "/global-config";
|
62
|
-
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
|
63
|
-
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
|
64
|
-
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
|
65
52
|
readonly LICENSE_AUTH: "/license-auth";
|
66
|
-
readonly
|
53
|
+
readonly APPLICATION_MANAGEMENT: "/application-management";
|
54
|
+
readonly APPLICATION_MANAGEMENT_OVERVIEW: "/application-management/overview";
|
55
|
+
readonly APPLICATION_MANAGEMENT_APP: "/application-management/app";
|
56
|
+
readonly APPLICATION_MANAGEMENT_APPLICATION_GROUP: "/application-management/application-group";
|
57
|
+
readonly APPLICATION_MANAGEMENT_CHART_STORE: "/application-management/chart-store";
|
58
|
+
readonly APPLICATION_MANAGEMENT_CHART_STORE_DISCOVER: "/application-management/chart-store/discover";
|
59
|
+
readonly APPLICATION_MANAGEMENT_TEMPLATES_DEVTRON_APP: "/application-management/templates/devtron-app";
|
60
|
+
readonly APPLICATION_MANAGEMENT_TEMPLATES_DEVTRON_APP_CREATE: "/application-management/templates/devtron-app/create";
|
61
|
+
readonly APPLICATION_MANAGEMENT_TEMPLATES_DEVTRON_APP_DETAIL: "/application-management/templates/devtron-app/detail/:appId";
|
62
|
+
readonly APPLICATION_MANAGEMENT_PROJECTS: "/application-management/projects";
|
63
|
+
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS: "/application-management/configurations";
|
64
|
+
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_DEPLOYMENT_CHARTS: "/application-management/configurations/deployment-charts";
|
65
|
+
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_CATALOG_FRAMEWORK: "/application-management/configurations/catalog-framework";
|
66
|
+
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_SCOPED_VARIABLES: "/application-management/configurations/scoped-variables";
|
67
|
+
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_BUILD_INFRA: "/application-management/configurations/build-infra";
|
68
|
+
readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_NOTIFICATIONS: "/application-management/configurations/notifications";
|
69
|
+
readonly INFRASTRUCTURE_MANAGEMENT: "/infrastructure-management";
|
70
|
+
readonly INFRASTRUCTURE_MANAGEMENT_OVERVIEW: "/infrastructure-management/overview";
|
71
|
+
readonly INFRASTRUCTURE_MANAGEMENT_RESOURCE_BROWSER: "/infrastructure-management/resource-browser";
|
72
|
+
readonly INFRASTRUCTURE_MANAGEMENT_RESOURCE_WATCHER: "/infrastructure-management/resource-watcher";
|
73
|
+
readonly SOFTWARE_RELEASE_MANAGEMENT: "/software-release-management";
|
74
|
+
readonly COST_VISIBILITY: "/cost-visibility";
|
75
|
+
readonly COST_VISIBILITY_OVERVIEW: "/cost-visibility/overview";
|
76
|
+
readonly COST_BREAKDOWN_ROUTE: "/cost-visibility/breakdown/:breakdownViewType";
|
77
|
+
readonly COST_BREAKDOWN_CLUSTERS: "/cost-visibility/breakdown/clusters";
|
78
|
+
readonly COST_BREAKDOWN_ENVIRONMENTS: "/cost-visibility/breakdown/environments";
|
79
|
+
readonly COST_BREAKDOWN_PROJECTS: "/cost-visibility/breakdown/projects";
|
80
|
+
readonly COST_BREAKDOWN_APPLICATIONS: "/cost-visibility/breakdown/applications";
|
81
|
+
readonly COST_BREAKDOWN_DETAIL: ":itemName/:view/:detail?";
|
82
|
+
readonly COST_CONFIGURATIONS: "/cost-visibility/configurations";
|
83
|
+
readonly SECURITY_CENTER: "/security-center";
|
84
|
+
readonly AUTOMATION_AND_ENABLEMENT: "/automation-and-enablement";
|
85
|
+
readonly AUTOMATION_AND_ENABLEMENT_JOB: "/automation-and-enablement/job";
|
86
|
+
readonly BACKUP_AND_RESTORE: "/backup-and-restore";
|
87
|
+
readonly BACKUP_AND_RESTORE_OVERVIEW: "/backup-and-restore/overview";
|
88
|
+
readonly GLOBAL_CONFIG: "/global-configuration";
|
89
|
+
readonly GLOBAL_CONFIG_DOCKER: "/global-configuration/docker";
|
90
|
+
readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-configuration/cluster-env/edit/:clusterId";
|
91
|
+
readonly PERMISSION_GROUPS: "/global-configuration/auth/groups";
|
92
|
+
readonly AI_RECOMMENDATIONS: "/ai-recommendations";
|
93
|
+
readonly AI_RECOMMENDATIONS_OVERVIEW: "/ai-recommendations/overview";
|
67
94
|
};
|
68
95
|
export declare const ROUTES: {
|
69
96
|
readonly APP: "app";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ShortcutType } from './types';
|
2
2
|
export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
|
3
|
-
keys: ("N" | "R" | "Enter" | "/" | "Alt" | "F" | "E" | "K" | "X" | "A" | "S" | "Home" | "End" | "." | "Space" | "Control" | "Shift" | "Meta" | "Escape" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
|
3
|
+
keys: ("N" | "R" | "Enter" | "/" | "Alt" | "F" | "E" | "K" | "X" | "A" | "S" | "Home" | "End" | "." | "Space" | ">" | "Control" | "Shift" | "Meta" | "Escape" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
|
4
4
|
id: string;
|
5
5
|
};
|
6
6
|
export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
|
@@ -33,5 +33,5 @@ import { SearchBarProps } from './types';
|
|
33
33
|
* <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
|
34
34
|
* ```
|
35
35
|
*/
|
36
|
-
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, keyboardShortcut, }: SearchBarProps) => JSX.Element;
|
36
|
+
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, keyboardShortcut, variant, isLoading, }: SearchBarProps) => JSX.Element;
|
37
37
|
export default SearchBar;
|
@@ -53,4 +53,12 @@ export interface SearchBarProps {
|
|
53
53
|
* @note This is displayed in place of the dropdown indicator
|
54
54
|
*/
|
55
55
|
keyboardShortcut?: SupportedKeyboardKeysType;
|
56
|
+
/**
|
57
|
+
* @default 'default'
|
58
|
+
*/
|
59
|
+
variant?: 'default' | 'sidenav';
|
60
|
+
/**
|
61
|
+
* If true, would convert the magnifying glass icon to a loading spinner
|
62
|
+
*/
|
63
|
+
isLoading?: boolean;
|
56
64
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ComponentSizeType } from '../../Shared/constants';
|
1
2
|
export type Entity = {
|
2
3
|
color: string;
|
3
4
|
label: string;
|
@@ -20,5 +21,6 @@ export type SegmentedBarChartProps = {
|
|
20
21
|
swapLegendAndBar?: boolean;
|
21
22
|
showAnimationOnBar?: boolean;
|
22
23
|
isLoading?: boolean;
|
24
|
+
size?: ComponentSizeType;
|
23
25
|
} & EntityPropType;
|
24
26
|
export {};
|
package/dist/Common/Types.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObj
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
3
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
5
|
-
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ComponentLayoutType, StatusType, DocLinkProps, DeploymentStrategyType } from '../Shared';
|
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
7
|
import { IllustrationName } from '../Shared/Components';
|
8
8
|
/**
|
@@ -26,9 +26,6 @@ export interface ResponseType<T = any> {
|
|
26
26
|
}
|
27
27
|
export interface APIOptions {
|
28
28
|
timeout?: number;
|
29
|
-
/**
|
30
|
-
* @deprecated Use abortController instead
|
31
|
-
*/
|
32
29
|
signal?: AbortSignal;
|
33
30
|
abortControllerRef?: MutableRefObject<AbortController>;
|
34
31
|
/**
|
@@ -935,4 +932,15 @@ export interface ClusterEnvironmentCategoryDTO {
|
|
935
932
|
}
|
936
933
|
export interface ClusterEnvironmentCategoryType extends ClusterEnvironmentCategoryDTO {
|
937
934
|
}
|
935
|
+
export type AppsGroupedByProjectsType = {
|
936
|
+
projectId: number;
|
937
|
+
projectName: string;
|
938
|
+
appList: {
|
939
|
+
name: string;
|
940
|
+
}[];
|
941
|
+
}[];
|
942
|
+
export type EnvironmentsGroupedByClustersType = {
|
943
|
+
clusterName: EnvironmentType['cluster'];
|
944
|
+
envList: EnvironmentType[];
|
945
|
+
}[];
|
938
946
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export { default as VirtualClusterSidebar } from './VirtualClusterSidebar';
|
@@ -53,13 +53,13 @@ export declare const NODE_DRAIN_OPTIONS_CHECKBOX_CONFIG: {
|
|
53
53
|
export declare const GVK_FILTER_KIND_QUERY_PARAM_KEY = "gvkFilterKind";
|
54
54
|
export declare const GVK_FILTER_API_VERSION_QUERY_PARAM_KEY = "gvkFilterApiVersion";
|
55
55
|
export declare const RESOURCE_BROWSER_ROUTES: {
|
56
|
-
readonly OVERVIEW: "/resource-browser/:clusterId/overview";
|
57
|
-
readonly MONITORING_DASHBOARD: "/resource-browser/:clusterId/monitoring-dashboard";
|
58
|
-
readonly TERMINAL: "/resource-browser/:clusterId/terminal";
|
59
|
-
readonly CLUSTER_UPGRADE: "/resource-browser/:clusterId/cluster-upgrade";
|
60
|
-
readonly NODE_DETAIL: "/resource-browser/:clusterId/node/detail/:name";
|
61
|
-
readonly K8S_RESOURCE_DETAIL: "/resource-browser/:clusterId/:namespace/:kind/:group/:name";
|
62
|
-
readonly K8S_RESOURCE_LIST: "/resource-browser/:clusterId/:kind/:group";
|
63
|
-
readonly RESOURCE_RECOMMENDER: "/resource-browser/:clusterId/resource-recommender";
|
56
|
+
readonly OVERVIEW: "/infrastructure-management/resource-browser/:clusterId/overview";
|
57
|
+
readonly MONITORING_DASHBOARD: "/infrastructure-management/resource-browser/:clusterId/monitoring-dashboard";
|
58
|
+
readonly TERMINAL: "/infrastructure-management/resource-browser/:clusterId/terminal";
|
59
|
+
readonly CLUSTER_UPGRADE: "/infrastructure-management/resource-browser/:clusterId/cluster-upgrade";
|
60
|
+
readonly NODE_DETAIL: "/infrastructure-management/resource-browser/:clusterId/node/detail/:name";
|
61
|
+
readonly K8S_RESOURCE_DETAIL: "/infrastructure-management/resource-browser/:clusterId/:namespace/:kind/:group/:name";
|
62
|
+
readonly K8S_RESOURCE_LIST: "/infrastructure-management/resource-browser/:clusterId/:kind/:group";
|
63
|
+
readonly RESOURCE_RECOMMENDER: "/infrastructure-management/resource-browser/:clusterId/resource-recommender";
|
64
64
|
};
|
65
65
|
export declare const K8S_EMPTY_GROUP = "k8sEmptyGroup";
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const ApplicationManagementPageHeader: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './PageHeader';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export type BreadcrumbKey = 'overview';
|
2
|
+
export interface BreadcrumbConfig {
|
3
|
+
key: BreadcrumbKey;
|
4
|
+
route: string;
|
5
|
+
heading: string;
|
6
|
+
}
|
7
|
+
export interface BreadcrumbAlias {
|
8
|
+
[key: string]: {
|
9
|
+
component: React.ReactNode;
|
10
|
+
linked: boolean;
|
11
|
+
} | null;
|
12
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './PageHeader';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Shared';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const Overview: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Overview';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Overview';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const Overview: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Overview';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './types';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare enum CostBreakdownViewType {
|
2
|
+
CLUSTERS = "clusters",
|
3
|
+
ENVIRONMENTS = "environments",
|
4
|
+
PROJECTS = "projects",
|
5
|
+
APPLICATIONS = "applications"
|
6
|
+
}
|
7
|
+
export declare enum CostBreakdownItemViewParamsType {
|
8
|
+
ITEM_NAME = "itemName",
|
9
|
+
VIEW = "view",
|
10
|
+
DETAIL = "detail"
|
11
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Shared';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const Overview: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Overview';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Overview';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const GlobalOverview: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './GlobalOverview';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const Overview: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Overview';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const ApplicationManagementIcon: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const InfrastructureManagementIcon: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const Overview: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Overview';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Overview';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const Overview: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Overview';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Overview';
|
@@ -37,6 +37,8 @@ export type ActionMenuItemType<T extends string | number = string | number> = Om
|
|
37
37
|
startIcon?: ActionMenuItemIconType;
|
38
38
|
/** Defines the item to be displayed at the end of the menu item. */
|
39
39
|
trailingItem?: TrailingItemType;
|
40
|
+
/** Prevents the menu from closing when the item is clicked. */
|
41
|
+
doNotCloseMenuOnClick?: boolean;
|
40
42
|
} & ConditionalActionMenuComponentType;
|
41
43
|
export type ActionMenuOptionType<T extends string | number> = {
|
42
44
|
/**
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { BackdropProps } from './types';
|
2
|
-
declare const Backdrop: ({ children, onEscape, onClick, hasClearBackground, onBackdropMount, deactivateFocusOnEscape, initialFocus, }: BackdropProps) => import('react').ReactPortal;
|
2
|
+
declare const Backdrop: ({ children, onEscape, onClick, hasClearBackground, onBackdropMount, deactivateFocusOnEscape, initialFocus, returnFocusOnDeactivate, }: BackdropProps) => import('react').ReactPortal;
|
3
3
|
export default Backdrop;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { MouseEvent, ReactNode } from 'react';
|
2
2
|
import { DTFocusTrapType } from '../DTFocusTrap';
|
3
|
-
export interface BackdropProps extends Pick<DTFocusTrapType, 'deactivateFocusOnEscape' | 'initialFocus' | 'onEscape'> {
|
3
|
+
export interface BackdropProps extends Pick<DTFocusTrapType, 'deactivateFocusOnEscape' | 'initialFocus' | 'onEscape' | 'returnFocusOnDeactivate'> {
|
4
4
|
/**
|
5
5
|
* The content to be rendered within the backdrop component.
|
6
6
|
*/
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { IconBaseColorType } from '../../types';
|
1
|
+
import { IconBaseColorType, IconBaseSizeType } from '../../types';
|
2
2
|
import { BadgeProps } from './types';
|
3
3
|
export declare const getClassNameAccToVariant: (variant: BadgeProps["variant"]) => {
|
4
4
|
styles: string;
|
5
5
|
iconColor: IconBaseColorType;
|
6
6
|
};
|
7
7
|
export declare const getClassNameAccToSize: (size: BadgeProps["size"]) => "fs-11 lh-16 px-4 py-1" | "fs-12 lh-16 px-6 py-2" | "fs-13 lh-20 px-6 py-2";
|
8
|
+
export declare const COMPONENT_SIZE_TO_ICON_SIZE_MAP: Record<BadgeProps['size'], IconBaseSizeType>;
|
@@ -0,0 +1,102 @@
|
|
1
|
+
import { ChartProps } from './types';
|
2
|
+
/**
|
3
|
+
* A versatile Chart component that renders different types of charts using Chart.js.
|
4
|
+
* Supports area charts, pie charts, stacked bar charts (vertical/horizontal), and line charts.
|
5
|
+
*
|
6
|
+
* The component automatically adapts to theme changes and provides consistent styling
|
7
|
+
* across all chart types. Colors are provided by the user through the CHART_COLORS constant
|
8
|
+
* or custom color tokens.
|
9
|
+
*
|
10
|
+
* @example
|
11
|
+
* ```tsx
|
12
|
+
* [Area Chart Example]
|
13
|
+
* <Chart
|
14
|
+
* id="quarterly-growth"
|
15
|
+
* type="area"
|
16
|
+
* xAxisLabels={['Q1 2023', 'Q2 2023', 'Q3 2023', 'Q4 2023']}
|
17
|
+
* datasets={[{
|
18
|
+
* datasetName: 'Revenue Growth (%)',
|
19
|
+
* yAxisValues: [15.2, 18.7, 22.3, 19.8],
|
20
|
+
* backgroundColor: 'LavenderPurple300'
|
21
|
+
* }]}
|
22
|
+
* />
|
23
|
+
*
|
24
|
+
* [Pie Chart Example]
|
25
|
+
* <Chart
|
26
|
+
* id="technology-adoption"
|
27
|
+
* type="pie"
|
28
|
+
* xAxisLabels={['React', 'Vue.js', 'Angular']}
|
29
|
+
* datasets={{
|
30
|
+
* datasetName: 'Adoption Rate (%)',
|
31
|
+
* yAxisValues: [45.2, 28.7, 35.4],
|
32
|
+
* backgroundColor: ['SkyBlue300', 'AquaTeal400', 'LavenderPurple300']
|
33
|
+
* }}
|
34
|
+
* />
|
35
|
+
*
|
36
|
+
* [Line Chart Example (non-stacked, non-filled)]
|
37
|
+
* <Chart
|
38
|
+
* id="traffic-trends"
|
39
|
+
* type="line"
|
40
|
+
* xAxisLabels={['Jan', 'Feb', 'Mar', 'Apr']}
|
41
|
+
* datasets={[{
|
42
|
+
* datasetName: 'Website Traffic',
|
43
|
+
* yAxisValues: [120, 190, 300, 500],
|
44
|
+
* borderColor: 'SkyBlue500'
|
45
|
+
* }]}
|
46
|
+
* />
|
47
|
+
*
|
48
|
+
* [Stacked Bar Chart Example]
|
49
|
+
* <Chart
|
50
|
+
* id="team-allocation"
|
51
|
+
* type="stackedBar"
|
52
|
+
* xAxisLabels={['Q1', 'Q2', 'Q3', 'Q4']}
|
53
|
+
* datasets={[
|
54
|
+
* {
|
55
|
+
* datasetName: 'Frontend',
|
56
|
+
* yAxisValues: [120, 150, 180, 200],
|
57
|
+
* backgroundColor: 'SkyBlue600'
|
58
|
+
* },
|
59
|
+
* {
|
60
|
+
* datasetName: 'Backend',
|
61
|
+
* yAxisValues: [80, 100, 120, 140],
|
62
|
+
* backgroundColor: 'AquaTeal600'
|
63
|
+
* }
|
64
|
+
* ]}
|
65
|
+
* />
|
66
|
+
* ```
|
67
|
+
*
|
68
|
+
* @param id - Unique identifier for the chart canvas element
|
69
|
+
* @param type - Chart type: 'area', 'pie', 'stackedBar', 'stackedBarHorizontal', or 'line'
|
70
|
+
* @param xAxisLabels - Array of labels for the x-axis (or categories for pie charts)
|
71
|
+
* @param datasets - Chart data: array of datasets for most charts, single dataset object for pie charts
|
72
|
+
*
|
73
|
+
* @performance
|
74
|
+
* **Memoization Recommendations:**
|
75
|
+
* - `xAxisLabels`: Should be memoized with useMemo() if derived from complex calculations
|
76
|
+
* - `datasets`: Should be memoized with useMemo() as it contains arrays and objects that cause re-renders
|
77
|
+
* - Avoid passing inline objects or arrays directly to these props
|
78
|
+
*
|
79
|
+
* @example
|
80
|
+
* ```tsx
|
81
|
+
* [Good: Memoized props prevent unnecessary re-renders]
|
82
|
+
* const labels = useMemo(() => quarters.map(q => `Q${q}`), [quarters])
|
83
|
+
* const chartDatasets = useMemo(() => [
|
84
|
+
* {
|
85
|
+
* datasetName: 'Revenue',
|
86
|
+
* yAxisValues: revenueData,
|
87
|
+
* backgroundColor: 'LavenderPurple300'
|
88
|
+
* }
|
89
|
+
* ], [revenueData])
|
90
|
+
*
|
91
|
+
* return <Chart id="revenue-chart" type="area" xAxisLabels={labels} datasets={chartDatasets} />
|
92
|
+
* ```
|
93
|
+
*
|
94
|
+
* @notes
|
95
|
+
* - Chart automatically re-renders when theme changes (light/dark mode)
|
96
|
+
* - Line charts are rendered as non-stacked and non-filled by default
|
97
|
+
* - Pie charts expect a single dataset object instead of an array
|
98
|
+
* - Colors should reference CHART_COLORS tokens for consistency
|
99
|
+
* - Component destroys and recreates Chart.js instance on prop changes for optimal performance
|
100
|
+
*/
|
101
|
+
declare const Chart: (props: ChartProps) => JSX.Element;
|
102
|
+
export default Chart;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { AppThemeType } from '../../Providers';
|
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
|
+
export declare const CHART_COLORS: Record<AppThemeType, Record<ChartColorKey, string>>;
|
15
|
+
export declare const CHART_GRID_LINES_COLORS: Record<AppThemeType, string>;
|
16
|
+
export declare const CHART_CANVAS_BACKGROUND_COLORS: Record<AppThemeType, string>;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { Plugin } from 'chart.js';
|
2
|
+
import { AppThemeType } from '../../Providers';
|
3
|
+
import { ChartType } from './types';
|
4
|
+
export declare const getAverageLinePlugin: (averageValue: number, appTheme: AppThemeType) => Plugin;
|
5
|
+
export declare const getSeparatorLinePlugin: (separatorIndex: number, chartType: ChartType, appTheme: AppThemeType) => Plugin;
|