@devtron-labs/devtron-fe-common-lib 1.20.6-alpha-2 → 1.20.6-alpha-20
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-BXUMy12o.js → @code-editor-DmaAaQJK.js} +11211 -9499
- package/dist/{@common-rjsf-DMKxjzgm.js → @common-rjsf-BFGk62PX.js} +30 -30
- package/dist/{@framer-motion-DZveCoIL.js → @framer-motion-DMkBQPN0.js} +92 -90
- package/dist/{@react-dates-CZ1bNWJM.js → @react-dates-BjZWpiVv.js} +1 -1
- package/dist/{@react-select-DS68hCUM.js → @react-select-DtwlfcIG.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-V-8klKy9.js → @react-virtualized-sticky-tree-M81Af3Qs.js} +1 -1
- package/dist/{@vendor-3ORIJA0h.js → @vendor-DceGoESd.js} +26335 -18086
- package/dist/Common/API/reactQueryHooks.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 +20 -0
- package/dist/Common/Common.service.d.ts +4 -1
- package/dist/Common/Constants.d.ts +56 -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 +58 -5
- 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/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +3 -3
- package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
- package/dist/Pages/ResourceBrowser/types.d.ts +3 -3
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/utils.d.ts +11 -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/constants.d.ts +4 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +31 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/DataProtectionManagement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/DataProtectionManagement/types.d.ts +8 -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/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 +1 -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 +4 -0
- package/dist/Shared/Components/ActionMenu/types.d.ts +3 -0
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
- 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/Card/Card.component.d.ts +3 -0
- package/dist/Shared/Components/Card/constants.d.ts +4 -0
- package/dist/Shared/Components/Card/index.d.ts +2 -0
- package/dist/Shared/Components/Card/types.d.ts +25 -0
- package/dist/Shared/Components/Charts/Chart.component.d.ts +102 -0
- package/dist/Shared/Components/Charts/constants.d.ts +9 -0
- package/dist/Shared/Components/Charts/index.d.ts +4 -0
- package/dist/Shared/Components/Charts/plugins.d.ts +4 -0
- package/dist/Shared/Components/Charts/types.d.ts +116 -0
- package/dist/Shared/Components/Charts/utils.d.ts +70 -0
- 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/DTFocusTrap/DTFocusTrap.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +2 -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/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 +39 -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 +6 -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 +20 -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/Table/TableContent.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +11 -6
- 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 +7 -0
- package/dist/Shared/Helpers.d.ts +2 -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 +3 -1
- package/dist/Shared/types.d.ts +20 -0
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/create-backup-schedule.bbac4a86.webp +0 -0
- package/dist/assets/create-backup-snapshot.c794f612.webp +0 -0
- package/dist/assets/ic-alibaba.518d61a4.svg +3 -0
- package/dist/assets/ic-argocd-app.9c5eba79.svg +61 -0
- package/dist/assets/ic-arrow-line-down.b6a98848.svg +3 -0
- package/dist/assets/ic-aws.eb2d0124.svg +12 -0
- package/dist/assets/ic-bg-build.8609d0ea.svg +13 -0
- package/dist/assets/ic-bg-cpu.15ec70f0.svg +11 -0
- package/dist/assets/ic-bg-deploy.266711fe.svg +22 -0
- package/dist/assets/ic-bg-memory.5373a125.svg +11 -0
- package/dist/assets/ic-bg-production-pipelines.2951cdc0.svg +22 -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-bg-webhook.b455152d.svg +13 -0
- package/dist/assets/ic-bot.65f403dd.svg +3 -0
- package/dist/assets/ic-building.2405d07b.svg +3 -0
- package/dist/assets/ic-check-circle.af18cd7e.svg +3 -0
- package/dist/assets/ic-circle-small.a0740b0e.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-cost-visibility.4a4625fc.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-edit-lines.57927b07.svg +3 -0
- package/dist/assets/ic-file-download.ca57c068.svg +5 -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.3077a8dd.svg +6 -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-party.cfc7e7c6.svg +4 -0
- package/dist/assets/ic-priority-medium-fill.7bab0ff8.svg +4 -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/ic-warning-stroke.fc850a4a.svg +3 -0
- package/dist/assets/img-folder-empty.8e898c33.svg +33 -0
- package/dist/assets/img-no-backup-location.0e8699c5.svg +180 -0
- package/dist/assets/img-no-restores.f26cb7db.svg +114 -0
- package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1012 -957
- package/package.json +4 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonComponentType, ButtonProps } from '../Button';
|
|
2
3
|
import { IconsProps } from '../Icon';
|
|
3
|
-
export type GenericSectionErrorStateProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Handler for reloading the section
|
|
6
|
-
*/
|
|
7
|
-
reload?: () => void;
|
|
4
|
+
export type GenericSectionErrorStateProps<ButtonType extends ButtonComponentType = ButtonComponentType.button> = {
|
|
8
5
|
/**
|
|
9
6
|
* If true, border is added to the section
|
|
10
7
|
*
|
|
@@ -37,6 +34,7 @@ export type GenericSectionErrorStateProps = {
|
|
|
37
34
|
*/
|
|
38
35
|
progressingProps: Omit<IconsProps, 'name'>;
|
|
39
36
|
useInfoIcon?: false;
|
|
37
|
+
customIcon?: never;
|
|
40
38
|
} | {
|
|
41
39
|
progressingProps?: never;
|
|
42
40
|
/**
|
|
@@ -45,7 +43,25 @@ export type GenericSectionErrorStateProps = {
|
|
|
45
43
|
* @default false
|
|
46
44
|
*/
|
|
47
45
|
useInfoIcon: true;
|
|
46
|
+
customIcon?: never;
|
|
47
|
+
} | {
|
|
48
|
+
progressingProps?: never;
|
|
49
|
+
useInfoIcon?: never;
|
|
50
|
+
customIcon?: never;
|
|
48
51
|
} | {
|
|
52
|
+
customIcon: JSX.Element;
|
|
49
53
|
progressingProps?: never;
|
|
50
54
|
useInfoIcon?: never;
|
|
55
|
+
}) & ({
|
|
56
|
+
/**
|
|
57
|
+
* Handler for reloading the section
|
|
58
|
+
*/
|
|
59
|
+
reload: () => void;
|
|
60
|
+
buttonProps?: never;
|
|
61
|
+
} | {
|
|
62
|
+
reload?: never;
|
|
63
|
+
buttonProps: ButtonProps<ButtonType>;
|
|
64
|
+
} | {
|
|
65
|
+
reload?: never;
|
|
66
|
+
buttonProps?: never;
|
|
51
67
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HeaderWithCreateButtonProps } from './types';
|
|
2
|
-
export declare const HeaderWithCreateButton: ({
|
|
2
|
+
export declare const HeaderWithCreateButton: ({ isJobView }: HeaderWithCreateButtonProps) => JSX.Element;
|
|
3
3
|
export default HeaderWithCreateButton;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ActionMenuProps } from '../../ActionMenu';
|
|
2
|
-
import { PageHeaderType } from '../types';
|
|
3
2
|
export interface HeaderWithCreateButtonProps {
|
|
4
|
-
|
|
5
|
-
additionalHeaderInfo: PageHeaderType['additionalHeaderInfo'];
|
|
3
|
+
isJobView?: boolean;
|
|
6
4
|
}
|
|
7
5
|
export declare enum CreateActionMenuItems {
|
|
8
6
|
CUSTOM_APP = "create-custom-app",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PageHeaderType } from './types';
|
|
2
|
-
declare const PageHeader: ({ headerName, headerImage, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, onClose, tippyProps, }: PageHeaderType) => JSX.Element;
|
|
2
|
+
declare const PageHeader: ({ headerName, headerImage, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, onClose, tippyProps, closeIcon, }: PageHeaderType) => JSX.Element;
|
|
3
3
|
export default PageHeader;
|
|
@@ -17,8 +17,10 @@ export interface PageHeaderType {
|
|
|
17
17
|
TippyIcon?: React.FunctionComponent<any>;
|
|
18
18
|
tippyMessage?: string;
|
|
19
19
|
onClickTippyButton?: () => void;
|
|
20
|
+
tippyHeader?: string;
|
|
20
21
|
};
|
|
21
22
|
onClose?: () => void;
|
|
23
|
+
closeIcon?: JSX.Element;
|
|
22
24
|
}
|
|
23
25
|
export interface ServerInfo {
|
|
24
26
|
currentVersion: string;
|
|
@@ -4,10 +4,13 @@ export declare const iconMap: {
|
|
|
4
4
|
'ic-aborted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
5
5
|
'ic-activity': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
6
6
|
'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
7
|
+
'ic-alibaba': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
7
8
|
'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
8
9
|
'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
9
10
|
'ic-app-template': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
11
|
+
'ic-argocd-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
10
12
|
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
13
|
+
'ic-arrow-line-down': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
11
14
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
12
15
|
'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
13
16
|
'ic-arrows-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -15,17 +18,28 @@ export declare const iconMap: {
|
|
|
15
18
|
'ic-asterisk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
16
19
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
17
20
|
'ic-aws-codecommit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
21
|
+
'ic-aws': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
18
22
|
'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
19
23
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
24
|
+
'ic-bg-build': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
20
25
|
'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
26
|
+
'ic-bg-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
27
|
+
'ic-bg-deploy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
21
28
|
'ic-bg-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
29
|
+
'ic-bg-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
30
|
+
'ic-bg-production-pipelines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
31
|
+
'ic-bg-project': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
32
|
+
'ic-bg-scan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
33
|
+
'ic-bg-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
22
34
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
23
35
|
'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
24
36
|
'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
37
|
+
'ic-bot': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
25
38
|
'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
26
39
|
'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
27
40
|
'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
28
41
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
42
|
+
'ic-building': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
29
43
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
30
44
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
31
45
|
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -36,26 +50,34 @@ export declare const iconMap: {
|
|
|
36
50
|
'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
37
51
|
'ic-chat-circle-online': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
38
52
|
'ic-check-all': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
53
|
+
'ic-check-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
39
54
|
'ic-check-square': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
40
55
|
'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
41
56
|
'ic-checks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
42
57
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
43
58
|
'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
59
|
+
'ic-circle-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
44
60
|
'ic-clean-brush': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
61
|
+
'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
62
|
+
'ic-clock-counterclockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
45
63
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
46
64
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
47
65
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
48
66
|
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
67
|
+
'ic-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
49
68
|
'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
50
69
|
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
51
70
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
71
|
+
'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
52
72
|
'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
53
73
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
54
74
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
55
75
|
'ic-copy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
76
|
+
'ic-cost-visibility': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
56
77
|
'ic-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
57
78
|
'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
58
79
|
'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
80
|
+
'ic-database-backup': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
59
81
|
'ic-delete-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
60
82
|
'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
61
83
|
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -66,6 +88,7 @@ export declare const iconMap: {
|
|
|
66
88
|
'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
67
89
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
68
90
|
'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
91
|
+
'ic-devtron-text': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
69
92
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
70
93
|
'ic-diff-added': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
71
94
|
'ic-diff-deleted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -75,6 +98,7 @@ export declare const iconMap: {
|
|
|
75
98
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
76
99
|
'ic-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
77
100
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
101
|
+
'ic-edit-lines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
78
102
|
'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
79
103
|
'ic-email': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
80
104
|
'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -88,13 +112,17 @@ export declare const iconMap: {
|
|
|
88
112
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
89
113
|
'ic-fast-forward': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
90
114
|
'ic-file-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
115
|
+
'ic-file-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
91
116
|
'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
92
117
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
93
118
|
'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
119
|
+
'ic-files-changed': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
94
120
|
'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
95
121
|
'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
96
122
|
'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
97
123
|
'ic-flask': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
124
|
+
'ic-floppy-disk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
125
|
+
'ic-fluxcd-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
98
126
|
'ic-folder-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
99
127
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
100
128
|
'ic-folder': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -108,6 +136,7 @@ export declare const iconMap: {
|
|
|
108
136
|
'ic-github': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
109
137
|
'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
110
138
|
'ic-google-artifact-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
139
|
+
'ic-google-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
111
140
|
'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
112
141
|
'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
113
142
|
'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -136,6 +165,7 @@ export declare const iconMap: {
|
|
|
136
165
|
'ic-key-enter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
137
166
|
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
138
167
|
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
168
|
+
'ic-kubernetes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
139
169
|
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
140
170
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
141
171
|
'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -148,6 +178,7 @@ export declare const iconMap: {
|
|
|
148
178
|
'ic-locked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
149
179
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
150
180
|
'ic-logs': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
181
|
+
'ic-magic-wand': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
151
182
|
'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
152
183
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
153
184
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -169,17 +200,22 @@ export declare const iconMap: {
|
|
|
169
200
|
'ic-open-in-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
170
201
|
'ic-openai': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
171
202
|
'ic-openshift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
203
|
+
'ic-oracle-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
204
|
+
'ic-otc-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
172
205
|
'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
173
206
|
'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
174
207
|
'ic-paper-plane': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
208
|
+
'ic-party': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
175
209
|
'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
176
210
|
'ic-pause-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
177
211
|
'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
178
212
|
'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
213
|
+
'ic-priority-medium-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
179
214
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
180
215
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
181
216
|
'ic-ratings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
182
217
|
'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
218
|
+
'ic-right-panel-collapse': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
183
219
|
'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
184
220
|
'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
185
221
|
'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -210,6 +246,7 @@ export declare const iconMap: {
|
|
|
210
246
|
'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
211
247
|
'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
212
248
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
249
|
+
'ic-symbol-greater-than': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
213
250
|
'ic-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
214
251
|
'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
215
252
|
'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -221,6 +258,7 @@ export declare const iconMap: {
|
|
|
221
258
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
222
259
|
'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
223
260
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
261
|
+
'ic-trend-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
224
262
|
'ic-two-cubes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
225
263
|
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
226
264
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -232,6 +270,7 @@ export declare const iconMap: {
|
|
|
232
270
|
'ic-visibility-off': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
233
271
|
'ic-visibility-on': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
234
272
|
'ic-warning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
273
|
+
'ic-warning-stroke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
235
274
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
236
275
|
'ic-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
237
276
|
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IconBaseProps } from './types';
|
|
2
|
-
export declare const IconBase: ({ name, iconMap, size, tooltipProps, color, dataTestId, rotateBy, fillSpace, }: IconBaseProps) => JSX.Element;
|
|
2
|
+
export declare const IconBase: ({ name, iconMap, size, tooltipProps, color, dataTestId, rotateBy, fillSpace, flip, }: IconBaseProps) => JSX.Element;
|
|
@@ -38,6 +38,12 @@ export interface IconBaseProps {
|
|
|
38
38
|
* @example 90, 180, 270
|
|
39
39
|
*/
|
|
40
40
|
rotateBy?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Flips the icon in the specified direction
|
|
43
|
+
*
|
|
44
|
+
* @default undefined
|
|
45
|
+
*/
|
|
46
|
+
flip?: 'horizontal' | 'vertical';
|
|
41
47
|
/**
|
|
42
48
|
* If true, the icon will expand to fill the available space of its container.
|
|
43
49
|
*/
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { IllustrationBaseProps } from './types';
|
|
2
2
|
export declare const illustrationMap: {
|
|
3
|
+
'img-folder-empty': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
3
4
|
'img-mechanical-operation': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
5
|
+
'img-no-backup-location': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
6
|
+
'img-no-restores': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
7
|
+
'create-backup-schedule': string;
|
|
8
|
+
'create-backup-snapshot': string;
|
|
4
9
|
'img-code': string;
|
|
5
10
|
'img-devtron-freemium': string;
|
|
6
11
|
'img-man-on-rocket': string;
|
|
7
12
|
'img-no-result': string;
|
|
13
|
+
'no-cluster-cost-enabled': string;
|
|
8
14
|
};
|
|
9
15
|
export type IllustrationName = keyof typeof illustrationMap;
|
|
10
16
|
export interface IllustrationProps extends Omit<IllustrationBaseProps, 'name' | 'illustrationMap'> {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as KeyboardShortcut } from './KeyboardShortcut.component';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
import { AuthenticationType } from '../../types';
|
|
3
|
+
interface ValueErrorType<T = string> {
|
|
4
|
+
value: T;
|
|
5
|
+
error: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PromoetheusConfig {
|
|
8
|
+
endpoint: ValueErrorType;
|
|
9
|
+
authType: ValueErrorType<AuthenticationType>;
|
|
10
|
+
userName: ValueErrorType;
|
|
11
|
+
password: ValueErrorType;
|
|
12
|
+
prometheusTlsClientKey: ValueErrorType;
|
|
13
|
+
prometheusTlsClientCert: ValueErrorType;
|
|
14
|
+
}
|
|
15
|
+
export interface PromoetheusConfigProps {
|
|
16
|
+
prometheusConfig: PromoetheusConfig;
|
|
17
|
+
handleOnChange: (event: SyntheticEvent) => void;
|
|
18
|
+
onPrometheusAuthTypeChange: (event: SyntheticEvent) => void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
|
2
|
+
export type SideNavigationItemBase = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
dataTestId: string;
|
|
6
|
+
};
|
|
7
|
+
export type SideNavigationItemLink = SideNavigationItemBase & {
|
|
8
|
+
href: string;
|
|
9
|
+
items?: never;
|
|
10
|
+
tooltipProps?: TooltipProps;
|
|
11
|
+
};
|
|
12
|
+
export type SideNavigationItemGroup = SideNavigationItemBase & {
|
|
13
|
+
items: Omit<SideNavigationItemLink, 'items'>[];
|
|
14
|
+
href?: never;
|
|
15
|
+
tooltipProps?: never;
|
|
16
|
+
};
|
|
17
|
+
export interface SideNavigationProps {
|
|
18
|
+
list: (SideNavigationItemLink | SideNavigationItemGroup)[];
|
|
19
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FiltersTypeEnum, InternalTableProps } from './types';
|
|
2
|
-
declare const InternalTable: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filtersVariant, filterData, rows, getRows, columns, ViewWrapper, resizableConfig, emptyStateConfig, additionalProps, areColumnsConfigurable, filter, setVisibleColumns, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant,
|
|
2
|
+
declare const InternalTable: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filtersVariant, filterData, rows, getRows, columns, ViewWrapper, resizableConfig, emptyStateConfig, additionalProps, areColumnsConfigurable, filter, setVisibleColumns, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, id, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, rowActionOnHoverConfig, pageSizeOptions, clearFilters: userGivenUrlClearFilters, }: InternalTableProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
|
|
3
3
|
export default InternalTable;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FiltersTypeEnum, TableContentProps } from './types';
|
|
2
|
-
declare const TableContent: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filterData, rows, resizableConfig, additionalProps, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant,
|
|
2
|
+
declare const TableContent: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filterData, rows, resizableConfig, additionalProps, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, rowActionOnHoverConfig, pageSizeOptions, filteredRows, areFilteredRowsLoading, getRows, totalRows, }: TableContentProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
|
|
3
3
|
export default TableContent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dispatch, FunctionComponent, MouseEvent, PropsWithChildren, SetStateAction } from 'react';
|
|
2
2
|
import { GenericFilterEmptyStateProps } from '../../../Common/EmptyState/types';
|
|
3
3
|
import { UseStateFiltersProps, UseStateFiltersReturnType, UseUrlFiltersProps, UseUrlFiltersReturnType } from '../../../Common/Hooks';
|
|
4
|
-
import {
|
|
4
|
+
import { GenericEmptyStateType } from '../../../Common/index';
|
|
5
5
|
import { PageSizeOption } from '../../../Common/Pagination/types';
|
|
6
6
|
import { SortableTableHeaderCellProps, useResizableTableConfig } from '../../../Common/SortableTableHeaderCell';
|
|
7
7
|
import { useBulkSelection, UseBulkSelectionProps } from '../BulkSelection';
|
|
@@ -160,7 +160,10 @@ export type InternalTableProps<RowData extends unknown, FilterVariant extends Fi
|
|
|
160
160
|
/**
|
|
161
161
|
* Use this component to display additional content at the end of a row when it is hovered over.
|
|
162
162
|
*/
|
|
163
|
-
|
|
163
|
+
rowActionOnHoverConfig?: {
|
|
164
|
+
Component: FunctionComponent<RowActionsOnHoverComponentProps<RowData, AdditionalProps>>;
|
|
165
|
+
width: string | number;
|
|
166
|
+
};
|
|
164
167
|
bulkSelectionReturnValue: BulkSelectionReturnValueType | null;
|
|
165
168
|
handleClearBulkSelection: () => void;
|
|
166
169
|
handleToggleBulkSelectionOnRow: (row: RowType<RowData>) => void;
|
|
@@ -177,7 +180,7 @@ export type InternalTableProps<RowData extends unknown, FilterVariant extends Fi
|
|
|
177
180
|
} | {
|
|
178
181
|
rows?: never;
|
|
179
182
|
/** NOTE: Sorting on frontend is only handled if rows is provided instead of getRows */
|
|
180
|
-
getRows: (props: GetRowsProps,
|
|
183
|
+
getRows: (props: GetRowsProps, signal: AbortSignal) => Promise<{
|
|
181
184
|
rows: RowsType<RowData>;
|
|
182
185
|
totalRows: number;
|
|
183
186
|
}>;
|
|
@@ -192,7 +195,7 @@ export type UseResizableTableConfigWrapperProps<RowData extends unknown, FilterV
|
|
|
192
195
|
export type TableWithBulkSelectionProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> = Omit<UseResizableTableConfigWrapperProps<RowData, FilterVariant, AdditionalProps>, 'bulkSelectionReturnValue' | 'handleClearBulkSelection' | 'handleToggleBulkSelectionOnRow'>;
|
|
193
196
|
export type VisibleColumnsWrapperProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> = Omit<TableWithBulkSelectionProps<RowData, FilterVariant, AdditionalProps>, 'visibleColumns' | 'setVisibleColumns'>;
|
|
194
197
|
export type FilterWrapperProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> = Omit<VisibleColumnsWrapperProps<RowData, FilterVariant, AdditionalProps>, 'filterData'>;
|
|
195
|
-
export type TableProps<RowData extends unknown = unknown, FilterVariant extends FiltersTypeEnum = FiltersTypeEnum.NONE, AdditionalProps extends Record<string, any> = {}> = Pick<FilterWrapperProps<RowData, FilterVariant, AdditionalProps>, 'additionalFilterProps' | 'bulkSelectionConfig' | 'areColumnsConfigurable' | 'emptyStateConfig' | 'filtersVariant' | 'filter' | 'additionalProps' | 'columns' | 'getRows' | 'rows' | 'paginationVariant' | 'stylesConfig' | 'id' | '
|
|
198
|
+
export type TableProps<RowData extends unknown = unknown, FilterVariant extends FiltersTypeEnum = FiltersTypeEnum.NONE, AdditionalProps extends Record<string, any> = {}> = Pick<FilterWrapperProps<RowData, FilterVariant, AdditionalProps>, 'additionalFilterProps' | 'bulkSelectionConfig' | 'areColumnsConfigurable' | 'emptyStateConfig' | 'filtersVariant' | 'filter' | 'additionalProps' | 'columns' | 'getRows' | 'rows' | 'paginationVariant' | 'stylesConfig' | 'id' | 'rowActionOnHoverConfig' | 'loading' | 'ViewWrapper' | 'pageSizeOptions' | 'clearFilters'>;
|
|
196
199
|
export type BulkActionStateType = string | null;
|
|
197
200
|
export interface BulkSelectionActionWidgetProps extends Pick<BulkSelectionConfigType, 'BulkActionsComponent' | 'bulkActionsData'> {
|
|
198
201
|
count: number;
|
|
@@ -206,9 +209,11 @@ export interface GetFilteringPromiseProps<RowData extends unknown> {
|
|
|
206
209
|
searchSortTimeoutRef: React.MutableRefObject<number>;
|
|
207
210
|
callback: () => Promise<RowsType<RowData>> | RowsType<RowData>;
|
|
208
211
|
}
|
|
209
|
-
export interface
|
|
212
|
+
export interface RowsResultType<RowData extends unknown> {
|
|
210
213
|
filteredRows: RowsType<RowData>;
|
|
211
|
-
areFilteredRowsLoading: boolean;
|
|
212
214
|
totalRows: number;
|
|
213
215
|
}
|
|
216
|
+
export interface TableContentProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> extends Pick<InternalTableProps<RowData, FilterVariant, AdditionalProps>, 'filterData' | 'rows' | 'resizableConfig' | 'additionalProps' | 'visibleColumns' | 'stylesConfig' | 'loading' | 'bulkSelectionConfig' | 'bulkSelectionReturnValue' | 'handleClearBulkSelection' | 'handleToggleBulkSelectionOnRow' | 'paginationVariant' | 'rowActionOnHoverConfig' | 'pageSizeOptions' | 'getRows'>, RowsResultType<RowData> {
|
|
217
|
+
areFilteredRowsLoading: boolean;
|
|
218
|
+
}
|
|
214
219
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { OmitNever } from '../../types';
|
|
3
|
+
import { ActionMenuProps } from '../ActionMenu';
|
|
3
4
|
import { ButtonProps } from '../Button';
|
|
4
5
|
import { IconsProps } from '../Icon';
|
|
5
6
|
import { NumbersCountProps } from '../NumbersCount';
|
|
@@ -30,6 +31,9 @@ export type TrailingItemType = {
|
|
|
30
31
|
config: OmitNever<Omit<Extract<ButtonProps, {
|
|
31
32
|
icon: ReactElement;
|
|
32
33
|
}>, 'size' | 'variant'>>;
|
|
34
|
+
} | {
|
|
35
|
+
type: 'action-menu';
|
|
36
|
+
config: ActionMenuProps;
|
|
33
37
|
};
|
|
34
38
|
export type TrailingItemProps = TrailingItemType & {
|
|
35
39
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TreeViewProps } from './types';
|
|
2
|
-
declare const TreeView: <DataAttributeType = null>({ nodes, isControlled, expandedMap: expandedMapProp, selectedId, onToggle: onToggleProp, onSelect, depth, mode, flatNodeList: flatNodeListProp, getUpdateItemsRefMap: getUpdateItemsRefMapProp, variant, defaultExpandedMap, }: TreeViewProps<DataAttributeType>) => JSX.Element;
|
|
2
|
+
declare const TreeView: <DataAttributeType = null>({ nodes, isControlled, expandedMap: expandedMapProp, selectedId, onToggle: onToggleProp, onSelect, depth, mode, flatNodeList: flatNodeListProp, getUpdateItemsRefMap: getUpdateItemsRefMapProp, variant, defaultExpandedMap, highlightSelectedHeadingOnlyWhenCollapsed, useOverflowAuto, }: TreeViewProps<DataAttributeType>) => JSX.Element;
|
|
3
3
|
export default TreeView;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TreeViewNodeContentProps } from './types';
|
|
2
|
-
declare const TreeViewNodeContent: ({ startIconConfig, title, subtitle, type, customTooltipConfig, strikeThrough, isSelected, }: TreeViewNodeContentProps) => JSX.Element;
|
|
2
|
+
declare const TreeViewNodeContent: ({ startIconConfig, title, subtitle, type, customTooltipConfig, strikeThrough, isSelected, variant, }: TreeViewNodeContentProps) => JSX.Element;
|
|
3
3
|
export default TreeViewNodeContent;
|
|
@@ -2,3 +2,6 @@ import { TreeViewProps } from './types';
|
|
|
2
2
|
export declare const DEFAULT_NO_ITEMS_TEXT = "No items found";
|
|
3
3
|
export declare const VARIANT_TO_BG_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
|
4
4
|
export declare const VARIANT_TO_HOVER_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
|
5
|
+
export declare const VARIANT_TO_SELECTED_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
|
6
|
+
export declare const VARIANT_TO_TEXT_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
|
7
|
+
export declare const VARIANT_TO_TREE_ITEM_ACTIVE_BG_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
|
@@ -96,9 +96,11 @@ export type TreeItem<DataAttributeType = null> = BaseNode<DataAttributeType> & {
|
|
|
96
96
|
onClick?: (e: SyntheticEvent) => void;
|
|
97
97
|
href?: never;
|
|
98
98
|
clearQueryParamsOnNavigation?: never;
|
|
99
|
+
activeClassName?: never;
|
|
99
100
|
} | {
|
|
100
101
|
as: 'link';
|
|
101
102
|
href: string;
|
|
103
|
+
activeClassName?: string;
|
|
102
104
|
/**
|
|
103
105
|
* The callback function to handle click events on the nav link.
|
|
104
106
|
*/
|
|
@@ -113,6 +115,7 @@ export type TreeItem<DataAttributeType = null> = BaseNode<DataAttributeType> & {
|
|
|
113
115
|
href?: never;
|
|
114
116
|
onClick?: never;
|
|
115
117
|
clearQueryParamsOnNavigation?: never;
|
|
118
|
+
activeClassName?: never;
|
|
116
119
|
});
|
|
117
120
|
/**
|
|
118
121
|
* Props for the TreeView component.
|
|
@@ -151,14 +154,25 @@ export type TreeViewProps<DataAttributeType = null> = {
|
|
|
151
154
|
*/
|
|
152
155
|
mode?: 'navigation' | 'form';
|
|
153
156
|
/**
|
|
154
|
-
* If primary the background color will be bg__primary and bg__hover--opaque
|
|
157
|
+
* If primary the background color will be bg__primary and bg__hover--opaque \
|
|
158
|
+
* if secondary the background color will be bg__secondary bg__hover-secondary--opaque,
|
|
159
|
+
* if sidenav the background color will be bg__transparent bg__hover-sidebar-item.
|
|
155
160
|
* @default 'primary'
|
|
156
161
|
*/
|
|
157
|
-
variant?: 'primary' | 'secondary';
|
|
162
|
+
variant?: 'primary' | 'secondary' | 'sidenav';
|
|
158
163
|
/**
|
|
159
164
|
* @default {}
|
|
160
165
|
*/
|
|
161
166
|
defaultExpandedMap?: Record<string, boolean>;
|
|
167
|
+
/**
|
|
168
|
+
* When true, the selected heading (`selectedId`) will be highlighted only when it is collapsed.
|
|
169
|
+
* @default false
|
|
170
|
+
*/
|
|
171
|
+
highlightSelectedHeadingOnlyWhenCollapsed?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* @default true
|
|
174
|
+
*/
|
|
175
|
+
useOverflowAuto?: boolean;
|
|
162
176
|
} /**
|
|
163
177
|
* WARNING: For internal use only.
|
|
164
178
|
*/ & ({
|
|
@@ -188,7 +202,7 @@ export type TreeViewProps<DataAttributeType = null> = {
|
|
|
188
202
|
expandedMap?: never;
|
|
189
203
|
isControlled?: false;
|
|
190
204
|
});
|
|
191
|
-
export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'
|
|
205
|
+
export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'>, Required<Pick<TreeViewProps, 'variant'>> {
|
|
192
206
|
type: 'heading' | 'item';
|
|
193
207
|
isSelected: boolean;
|
|
194
208
|
}
|
|
@@ -13,8 +13,11 @@ export * from './BulkSelection';
|
|
|
13
13
|
export * from './Button';
|
|
14
14
|
export * from './ButtonWithLoader';
|
|
15
15
|
export * from './ButtonWithSelector';
|
|
16
|
+
export * from './Card';
|
|
17
|
+
export * from './Charts';
|
|
16
18
|
export * from './Chip';
|
|
17
19
|
export * from './CICDHistory';
|
|
20
|
+
export * from './ClusterStatusIcon';
|
|
18
21
|
export * from './CMCS';
|
|
19
22
|
export * from './CodeEditor';
|
|
20
23
|
export * from './Collapse';
|
|
@@ -36,6 +39,7 @@ export * from './EditImageFormField';
|
|
|
36
39
|
export * from './EnvironmentSelector';
|
|
37
40
|
export * from './Error';
|
|
38
41
|
export * from './ExcludedImageNode';
|
|
42
|
+
export * from './ExportToCsv';
|
|
39
43
|
export * from './FeatureDescription';
|
|
40
44
|
export * from './FileUpload';
|
|
41
45
|
export * from './FilterChips';
|
|
@@ -59,6 +63,7 @@ export * from './ImageWithFallback';
|
|
|
59
63
|
export * from './InfoBlock';
|
|
60
64
|
export * from './InfoIconTippy';
|
|
61
65
|
export * from './InvalidYAMLTippy';
|
|
66
|
+
export * from './KeyboardShortcut';
|
|
62
67
|
export * from './KeyValueTable';
|
|
63
68
|
export * from './License';
|
|
64
69
|
export { default as LoadingCard } from './LoadingCard';
|
|
@@ -71,6 +76,7 @@ export * from './Plugin';
|
|
|
71
76
|
export * from './Popover';
|
|
72
77
|
export * from './PortalContainer';
|
|
73
78
|
export * from './ProgressBar';
|
|
79
|
+
export * from './PrometheusConfigurations';
|
|
74
80
|
export { default as QRCode } from './QRCode';
|
|
75
81
|
export * from './ReactSelect';
|
|
76
82
|
export * from './RegistryIcon';
|
|
@@ -78,6 +84,7 @@ export * from './ScannedByToolModal';
|
|
|
78
84
|
export * from './Security';
|
|
79
85
|
export * from './SelectPicker';
|
|
80
86
|
export * from './ShowMoreText';
|
|
87
|
+
export * from './SideNavigation';
|
|
81
88
|
export * from './SSOProviderIcon';
|
|
82
89
|
export * from './StatusComponent';
|
|
83
90
|
export * from './Switch';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -103,4 +103,6 @@ export declare const clearCookieOnLogout: () => void;
|
|
|
103
103
|
export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
|
|
104
104
|
export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
|
|
105
105
|
export declare const getGroupVersionFromApiVersion: (apiVersion: string) => Pick<Node, "group" | "version">;
|
|
106
|
+
export declare const YAMLtoJSON: (yamlString: string) => string;
|
|
107
|
+
export declare const formatNumberToCurrency: (value: number, currency: string) => string;
|
|
106
108
|
export {};
|