@devtron-labs/devtron-fe-common-lib 1.16.0-pre-4 → 1.16.0-pre-5
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-D-BZS9zn.js → @code-editor-BM7Pz0Tl.js} +7606 -7821
- package/dist/{@common-rjsf-DyacdRIT.js → @common-rjsf-Blnhi_42.js} +1 -1
- package/dist/Common/Constants.d.ts +0 -2
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +0 -3
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/Hooks/useStateFilters/types.d.ts +2 -2
- package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +1 -1
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -2
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -1
- package/dist/Common/Pagination/constants.d.ts +0 -4
- package/dist/Common/Pagination/index.d.ts +0 -1
- package/dist/Common/PopupMenu.d.ts +1 -2
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +2 -46
- package/dist/Pages/ResourceBrowser/constants.d.ts +0 -2
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/service.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/types.d.ts +2 -1
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +3 -0
- package/dist/Shared/Components/BulkSelection/types.d.ts +9 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -0
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +2 -1
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +7 -2
- package/dist/Shared/Components/Icon/Icon.d.ts +0 -13
- package/dist/Shared/Components/InfoBlock/constants.d.ts +1 -2
- package/dist/Shared/Components/Table/BulkSelectionActionWidget.d.ts +1 -1
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/Table/constants.d.ts +0 -1
- package/dist/Shared/Components/Table/index.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +20 -47
- package/dist/Shared/Components/Table/useTableWithKeyboardShortcuts.d.ts +1 -1
- package/dist/Shared/Components/Table/utils.d.ts +0 -5
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Helpers.d.ts +1 -2
- package/dist/Shared/Hooks/useStickyEvent/constants.d.ts +3 -2
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +2 -2
- package/dist/Shared/Services/types.d.ts +0 -1
- package/dist/Shared/types.d.ts +3 -11
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/ic-check-all.0376437d.svg +21 -0
- package/dist/assets/ic-check-square.2a3d3fb9.svg +20 -0
- package/dist/assets/{ic-minus.aac464f7.svg → ic-minus.416da21b.svg} +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +693 -699
- package/package.json +1 -1
- package/dist/Shared/Components/Table/TableContent.d.ts +0 -3
- package/dist/assets/ic-bug.8a8dc1fc.svg +0 -3
- package/dist/assets/ic-check-all.fdea6b38.svg +0 -5
- package/dist/assets/ic-check-square.e355731d.svg +0 -4
- package/dist/assets/ic-clean-brush.c21cbe1e.svg +0 -3
- package/dist/assets/ic-container.92a4c33a.svg +0 -3
- package/dist/assets/ic-download.468a0cb7.svg +0 -3
- package/dist/assets/ic-file-code.0926d194.svg +0 -3
- package/dist/assets/ic-gavel.a3b064b5.svg +0 -3
- package/dist/assets/ic-info-filled-color.47953fcf.svg +0 -8
- package/dist/assets/ic-logs.d310db72.svg +0 -3
- package/dist/assets/ic-pause-circle.f9405070.svg +0 -3
- package/dist/assets/ic-speedometer.3ecaae3b.svg +0 -3
- package/dist/assets/ic-two-cubes.056d1333.svg +0 -3
- /package/dist/assets/{ic-container-registry.4e1e6455.svg → ic-container.4e1e6455.svg} +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, at as b, av as k, au as W } from "./@vendor-DbxoIktR.js";
|
2
2
|
import V, { forwardRef as J, useMemo as P } from "react";
|
3
3
|
import K, { getDefaultRegistry as q } from "@rjsf/core";
|
4
|
-
import { T as F, j as N, c as v, b as S, S as Y, i as z, a as w, d as A, e as G } from "./@code-editor-
|
4
|
+
import { T as F, j as N, c as v, b as S, S as Y, i as z, a as w, d as A, e as G } from "./@code-editor-BM7Pz0Tl.js";
|
5
5
|
import Q, { components as D } from "react-select";
|
6
6
|
import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
7
|
import { getUiOptions as $, getTemplate as B, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as ae, deepEquals as se } from "@rjsf/utils";
|
@@ -63,7 +63,6 @@ export declare const URLS: {
|
|
63
63
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
|
64
64
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
|
65
65
|
readonly LICENSE_AUTH: "/license-auth";
|
66
|
-
readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-config/cluster-env/edit/:clusterId";
|
67
66
|
};
|
68
67
|
export declare const ROUTES: {
|
69
68
|
readonly APP: "app";
|
@@ -294,7 +293,6 @@ export declare const API_STATUS_CODES: {
|
|
294
293
|
NOT_FOUND: number;
|
295
294
|
REQUEST_TIMEOUT: number;
|
296
295
|
CONFLICT: number;
|
297
|
-
PRE_CONDITION_FAILED: number;
|
298
296
|
EXPECTATION_FAILED: number;
|
299
297
|
UNPROCESSABLE_ENTITY: number;
|
300
298
|
LOCKED: number;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { UseRegisterShortcutProviderType } from './types';
|
2
|
-
declare const UseRegisterShortcutProvider: ({
|
2
|
+
declare const UseRegisterShortcutProvider: ({ ignoreTags, preventDefault, shortcutTimeout, children, }: UseRegisterShortcutProviderType) => JSX.Element;
|
3
3
|
export default UseRegisterShortcutProvider;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { RefObject } from 'react';
|
2
1
|
export declare const KEYBOARD_KEYS_MAP: {
|
3
2
|
readonly Control: "Ctrl";
|
4
3
|
readonly Shift: "⇧";
|
@@ -10,7 +9,6 @@ export declare const KEYBOARD_KEYS_MAP: {
|
|
10
9
|
readonly K: "K";
|
11
10
|
readonly X: "X";
|
12
11
|
readonly A: "A";
|
13
|
-
readonly N: "N";
|
14
12
|
readonly Escape: "Esc";
|
15
13
|
readonly Enter: "↩";
|
16
14
|
readonly ArrowLeft: "←";
|
@@ -58,7 +56,6 @@ export interface UseRegisterShortcutContextType {
|
|
58
56
|
triggerShortcut: (keys: ShortcutType['keys']) => void;
|
59
57
|
}
|
60
58
|
export interface UseRegisterShortcutProviderType {
|
61
|
-
containerRef?: RefObject<HTMLElement>;
|
62
59
|
children: React.ReactNode;
|
63
60
|
/**
|
64
61
|
* Defines how long after holding the keys down do we trigger the callback in milliseconds
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ShortcutType } from './types';
|
2
2
|
export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
|
3
|
-
keys: ("
|
3
|
+
keys: ("R" | "Alt" | "F" | "E" | "K" | "X" | "A" | "Home" | "End" | "." | "Space" | "Control" | "Shift" | "Meta" | "Escape" | "Enter" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
|
4
4
|
id: string;
|
5
5
|
};
|
6
6
|
export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
|
2
|
-
export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'
|
2
|
+
export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
|
3
3
|
}
|
4
|
-
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'changePage' | 'changePageSize' | 'offset' | 'pageSize' | 'searchKey' | 'handleSearch' | '
|
4
|
+
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'changePage' | 'changePageSize' | 'offset' | 'pageSize' | 'searchKey' | 'handleSearch' | 'isFilterApplied'> {
|
5
5
|
}
|
6
6
|
export interface PaginationType<T> extends Pick<UseUrlFiltersReturnType<T>, 'pageSize'> {
|
7
7
|
pageNumber: number;
|
@@ -12,5 +12,5 @@ import { UseStateFiltersProps, UseStateFiltersReturnType } from './types';
|
|
12
12
|
*
|
13
13
|
* To be extended to be used with pagination and search as and when required
|
14
14
|
*/
|
15
|
-
declare const useStateFilters: <T = string>({ initialSortKey,
|
15
|
+
declare const useStateFilters: <T = string>({ initialSortKey, }?: UseStateFiltersProps<T>) => UseStateFiltersReturnType<T>;
|
16
16
|
export default useStateFilters;
|
@@ -18,7 +18,6 @@ export interface UseUrlFiltersProps<T, K extends {}> {
|
|
18
18
|
* @default 'replace'
|
19
19
|
*/
|
20
20
|
redirectionMethod?: 'replace' | 'push';
|
21
|
-
defaultPageSize?: number;
|
22
21
|
}
|
23
22
|
export type UpdateSearchParamsOptionsType<T, K = {}> = Partial<Pick<UseUrlFiltersProps<T, K>, 'redirectionMethod'>>;
|
24
23
|
export type UseUrlFiltersReturnType<T, K = {}> = K & {
|
@@ -68,5 +67,5 @@ export type UseUrlFiltersReturnType<T, K = {}> = K & {
|
|
68
67
|
* Update the search params with the passed object
|
69
68
|
*/
|
70
69
|
updateSearchParams: (paramsToSerialize: Partial<K>, options?: UpdateSearchParamsOptionsType<T, K>) => void;
|
71
|
-
|
70
|
+
isFilterApplied: boolean;
|
72
71
|
};
|
@@ -16,5 +16,5 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from './types';
|
|
16
16
|
* ```
|
17
17
|
*
|
18
18
|
*/
|
19
|
-
declare const useUrlFilters: <T = string, K = {}>({ initialSortKey, parseSearchParams, localStorageKey, redirectionMethod,
|
19
|
+
declare const useUrlFilters: <T = string, K = {}>({ initialSortKey, parseSearchParams, localStorageKey, redirectionMethod, }?: UseUrlFiltersProps<T, K>) => UseUrlFiltersReturnType<T, K>;
|
20
20
|
export default useUrlFilters;
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { default as React } from 'react';
|
2
1
|
import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
|
3
2
|
declare const PopupMenu: {
|
4
3
|
({ children, onToggleCallback, autoClose, autoPosition, shouldPreventDefault, }: PopupMenuType): any;
|
5
|
-
Button:
|
4
|
+
Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, dataTestId, }: PopupMenuButtonType) => JSX.Element;
|
6
5
|
Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable, noBackDrop, }: PopupMenuBodyType) => JSX.Element;
|
7
6
|
};
|
8
7
|
export default PopupMenu;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -550,10 +550,10 @@ export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTr
|
|
550
550
|
}
|
551
551
|
export declare enum DeploymentAppTypes {
|
552
552
|
HELM = "helm",
|
553
|
-
|
553
|
+
ARGO = "argo_cd",
|
554
554
|
MANIFEST_DOWNLOAD = "manifest_download",
|
555
555
|
MANIFEST_PUSH = "manifest_push",
|
556
|
-
FLUX = "
|
556
|
+
FLUX = "flux_cd"
|
557
557
|
}
|
558
558
|
export interface VulnerabilityType {
|
559
559
|
name: string;
|
@@ -1,7 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { GroupBase } from 'react-select';
|
3
|
-
import { ServerErrors } from '../../Common/ServerError';
|
4
|
-
import { SelectPickerOptionType } from '../../Shared/Components';
|
1
|
+
import { RefObject } from 'react';
|
5
2
|
import { Nodes, NodeType } from '../../Shared/types';
|
6
3
|
export interface GVKType {
|
7
4
|
Group: string;
|
@@ -37,37 +34,14 @@ export interface K8sResourceListPayloadType {
|
|
37
34
|
filter?: string;
|
38
35
|
k8sRequest: ResourceListPayloadK8sRequestType;
|
39
36
|
}
|
40
|
-
export declare enum ResourceRecommenderHeaderType {
|
41
|
-
NAME = "name",
|
42
|
-
NAMESPACE = "namespace",
|
43
|
-
KIND = "kind",
|
44
|
-
API_VERSION = "apiVersion",
|
45
|
-
CONTAINER_NAME = "containerName",
|
46
|
-
CPU_REQUEST = "cpuRequest",
|
47
|
-
CPU_LIMIT = "cpuLimit",
|
48
|
-
MEMORY_REQUEST = "memoryRequest",
|
49
|
-
MEMORY_LIMIT = "memoryLimit"
|
50
|
-
}
|
51
|
-
export type ResourceRecommenderHeaderWithStringValue = Extract<ResourceRecommenderHeaderType, ResourceRecommenderHeaderType.NAME | ResourceRecommenderHeaderType.NAMESPACE | ResourceRecommenderHeaderType.KIND | ResourceRecommenderHeaderType.API_VERSION | ResourceRecommenderHeaderType.CONTAINER_NAME>;
|
52
|
-
export type ResourceRecommenderHeaderWithRecommendation = Extract<ResourceRecommenderHeaderType, ResourceRecommenderHeaderType.CPU_REQUEST | ResourceRecommenderHeaderType.CPU_LIMIT | ResourceRecommenderHeaderType.MEMORY_REQUEST | ResourceRecommenderHeaderType.MEMORY_LIMIT>;
|
53
37
|
export type K8sResourceDetailDataType = {
|
54
38
|
[key: string]: string | number | object | boolean;
|
55
|
-
additionalMetadata?: Partial<Record<ResourceRecommenderHeaderWithRecommendation, {
|
56
|
-
current: {
|
57
|
-
value: string | 'none';
|
58
|
-
} | null;
|
59
|
-
recommended: {
|
60
|
-
value: string | 'none';
|
61
|
-
} | null;
|
62
|
-
delta: number | null;
|
63
|
-
}>>;
|
64
39
|
};
|
65
40
|
export interface K8sResourceDetailType {
|
66
41
|
headers: string[];
|
67
42
|
data: K8sResourceDetailDataType[];
|
68
43
|
}
|
69
44
|
export interface BulkSelectionActionWidgetProps {
|
70
|
-
isResourceRecommendationView: boolean;
|
71
45
|
count: number;
|
72
46
|
handleOpenBulkDeleteModal: () => void;
|
73
47
|
handleClearBulkSelection: () => void;
|
@@ -75,12 +49,11 @@ export interface BulkSelectionActionWidgetProps {
|
|
75
49
|
handleOpenUncordonNodeModal: () => void;
|
76
50
|
handleOpenDrainNodeModal: () => void;
|
77
51
|
handleOpenRestartWorkloadModal: () => void;
|
78
|
-
handleOpenApplyResourceRecommendationModal: () => void;
|
79
52
|
parentRef: RefObject<HTMLDivElement>;
|
80
53
|
showBulkRestartOption: boolean;
|
81
54
|
showNodeListingOptions: boolean;
|
82
55
|
}
|
83
|
-
export type RBBulkOperationType = 'restart' | 'delete' | 'cordon' | 'uncordon' | 'drain'
|
56
|
+
export type RBBulkOperationType = 'restart' | 'delete' | 'cordon' | 'uncordon' | 'drain';
|
84
57
|
export interface CreateResourceRequestBodyType {
|
85
58
|
appId: string;
|
86
59
|
clusterId: number;
|
@@ -92,7 +65,6 @@ export interface CreateResourceRequestBodyType {
|
|
92
65
|
export interface ResourceManifestDTO {
|
93
66
|
manifestResponse: {
|
94
67
|
manifest: Record<string, unknown>;
|
95
|
-
recommendedManifest?: Record<string, unknown>;
|
96
68
|
};
|
97
69
|
secretViewAccess: boolean;
|
98
70
|
}
|
@@ -136,20 +108,4 @@ export interface NodeActionRequest {
|
|
136
108
|
version: string;
|
137
109
|
kind: string;
|
138
110
|
}
|
139
|
-
export interface GVKOptionValueType {
|
140
|
-
kind: string;
|
141
|
-
apiVersion: string;
|
142
|
-
}
|
143
|
-
export interface GetResourceRecommenderResourceListPropsType {
|
144
|
-
setShowAbsoluteValuesInResourceRecommender: Dispatch<SetStateAction<boolean>>;
|
145
|
-
showAbsoluteValuesInResourceRecommender: boolean;
|
146
|
-
gvkOptions: GroupBase<SelectPickerOptionType<GVKOptionValueType>>[];
|
147
|
-
areGVKOptionsLoading: boolean;
|
148
|
-
reloadGVKOptions: () => void;
|
149
|
-
gvkOptionsError: ServerErrors;
|
150
|
-
}
|
151
|
-
export interface ResourceRecommenderActionMenuProps {
|
152
|
-
children: ReactNode;
|
153
|
-
lastScannedOn: string;
|
154
|
-
}
|
155
111
|
export {};
|
@@ -2,7 +2,7 @@ import { APIOptions, ResponseType } from '../../Common/Types';
|
|
2
2
|
import { CreateResourceDTO, CreateResourcePayload, K8sResourceDetailType, K8sResourceListPayloadType, NodeActionRequest, ResourceListPayloadType, ResourceType } from './ResourceBrowser.Types';
|
3
3
|
import { ClusterDetail, NodeCordonRequest } from './types';
|
4
4
|
export declare const getK8sResourceList: (resourceListPayload: K8sResourceListPayloadType, signal?: AbortSignal) => Promise<ResponseType<K8sResourceDetailType>>;
|
5
|
-
export declare const createNewResource: (resourceListPayload: CreateResourcePayload
|
5
|
+
export declare const createNewResource: (resourceListPayload: CreateResourcePayload) => Promise<ResponseType<CreateResourceDTO[]>>;
|
6
6
|
export declare const deleteResource: (resourceListPayload: ResourceListPayloadType, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType<ResourceType[]>>;
|
7
7
|
export declare const deleteNodeCapacity: (requestPayload: NodeActionRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
|
8
8
|
export declare const cordonNodeCapacity: (requestPayload: NodeCordonRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { AppDetails, DeploymentStatusDetailsBreakdownDataType } from '../../types';
|
2
2
|
import { GetAppDetailsParamsType, GetDeploymentStatusWithTimelineParamsType } from './types';
|
3
3
|
export declare const getAppDetails: ({ appId, envId, abortControllerRef, }: GetAppDetailsParamsType) => Promise<AppDetails>;
|
4
|
-
export declare const getDeploymentStatusWithTimeline: ({ abortControllerRef, appId, envId, showTimeline, virtualEnvironmentConfig, isHelmApp, }: GetDeploymentStatusWithTimelineParamsType) => Promise<DeploymentStatusDetailsBreakdownDataType>;
|
4
|
+
export declare const getDeploymentStatusWithTimeline: ({ abortControllerRef, appId, envId, showTimeline, virtualEnvironmentConfig, isHelmApp, deploymentAppType, }: GetDeploymentStatusWithTimelineParamsType) => Promise<DeploymentStatusDetailsBreakdownDataType>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
2
|
-
import { APIOptions } from '../../../Common/Types';
|
2
|
+
import { APIOptions, DeploymentAppTypes } from '../../../Common/Types';
|
3
3
|
import { AppDetails, ConfigDriftModalProps, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, IntelligenceConfig } from '../../types';
|
4
4
|
export declare enum AppStatusModalTabType {
|
5
5
|
APP_STATUS = "appStatus",
|
@@ -65,6 +65,7 @@ export type GetDeploymentStatusWithTimelineParamsType = Pick<APIOptions, 'abortC
|
|
65
65
|
wfrId: AppDetails['resourceTree']['wfrId'];
|
66
66
|
};
|
67
67
|
isHelmApp?: boolean;
|
68
|
+
deploymentAppType: DeploymentAppTypes;
|
68
69
|
};
|
69
70
|
export interface AppStatusModalTabListProps extends Pick<AppStatusModalProps, 'appDetails' | 'type'> {
|
70
71
|
handleSelectTab: (updatedTab: AppStatusModalTabType) => void;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { BulkSelectionProps } from './types';
|
2
|
-
declare const BulkSelection:
|
2
|
+
declare const BulkSelection: <T>({ showPagination, disabled, showChevronDownIcon }: BulkSelectionProps) => JSX.Element;
|
3
3
|
export default BulkSelection;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { BulkSelectionDropdownItemsProps } from './types';
|
2
|
+
declare const BulkSelectionDropdownItems: <T>({ locator, label, isSelected, handleBulkSelection, icon: Icon, iconClass, }: BulkSelectionDropdownItemsProps<T>) => JSX.Element;
|
3
|
+
export default BulkSelectionDropdownItems;
|
@@ -33,7 +33,15 @@ export interface BulkSelectionProps {
|
|
33
33
|
*/
|
34
34
|
showChevronDownIcon?: boolean;
|
35
35
|
disabled?: boolean;
|
36
|
-
|
36
|
+
}
|
37
|
+
export interface BulkSelectionDropdownItemsType {
|
38
|
+
locator: BulkSelectionEvents;
|
39
|
+
label: string;
|
40
|
+
isSelected: boolean;
|
41
|
+
icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
42
|
+
iconClass?: string;
|
43
|
+
}
|
44
|
+
export interface BulkSelectionDropdownItemsProps<T> extends BulkSelectionDropdownItemsType, Pick<UseBulkSelectionReturnType<T>, 'handleBulkSelection'> {
|
37
45
|
}
|
38
46
|
export declare enum SelectAllDialogStatus {
|
39
47
|
OPEN = "OPEN",
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { DeploymentStatusDetailBreakdownType } from './types';
|
2
|
-
declare const DeploymentStatusDetailBreakdown: ({ deploymentStatusDetailsBreakdownData, isVirtualEnvironment, appDetails, rootClassName, }: DeploymentStatusDetailBreakdownType) => JSX.Element;
|
2
|
+
declare const DeploymentStatusDetailBreakdown: ({ deploymentStatusDetailsBreakdownData, isVirtualEnvironment, appDetails, rootClassName, deploymentAppType, }: DeploymentStatusDetailBreakdownType) => JSX.Element;
|
3
3
|
export default DeploymentStatusDetailBreakdown;
|
@@ -402,6 +402,7 @@ export interface DeploymentStatusDetailBreakdownType {
|
|
402
402
|
*/
|
403
403
|
appDetails: AppDetails | null;
|
404
404
|
rootClassName?: string;
|
405
|
+
deploymentAppType: DeploymentAppTypes;
|
405
406
|
}
|
406
407
|
export interface DeploymentStatusDetailRowType extends Pick<DeploymentStatusDetailBreakdownType, 'appDetails'> {
|
407
408
|
type: DeploymentStatusTimelineType;
|
@@ -6,5 +6,6 @@ export declare const WFR_STATUS_DTO_TO_DEPLOYMENT_STATUS_MAP: Readonly<Record<Wo
|
|
6
6
|
export declare const PROGRESSING_DEPLOYMENT_STATUS: Readonly<(typeof DEPLOYMENT_STATUS)[keyof typeof DEPLOYMENT_STATUS][]>;
|
7
7
|
export declare const SUCCESSFUL_DEPLOYMENT_STATUS: typeof PROGRESSING_DEPLOYMENT_STATUS;
|
8
8
|
export declare const FAILED_DEPLOYMENT_STATUS: typeof PROGRESSING_DEPLOYMENT_STATUS;
|
9
|
-
export declare const
|
9
|
+
export declare const PHYSICAL_ENV_DEPLOYMENT_TIMELINE_ORDER_ARGO: Readonly<DeploymentStatusTimelineType[]>;
|
10
|
+
export declare const PHYSICAL_ENV_DEPLOYMENT_TIMELINE_ORDER_FLUX: Readonly<DeploymentStatusTimelineType[]>;
|
10
11
|
export declare const DEPLOYMENT_PHASES: Readonly<DeploymentPhaseType[]>;
|
@@ -1,20 +1,25 @@
|
|
1
|
+
import { DeploymentAppTypes } from '../../../Common/Types';
|
1
2
|
import { DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType } from '../../types';
|
2
3
|
/**
|
3
4
|
* @description
|
4
5
|
* This function processes the deployment status details data and returns a breakdown of the deployment status.
|
5
6
|
* Cases it handles:
|
6
7
|
* 1. If timelines are not present, say the case of helm deployment, we will parse the wfrStatus and put the status and basic deployment info [triggeredBy, deploymentStartedOn, deploymentFinishedOn] into the breakdown data and return it.
|
7
|
-
* 2. In case of
|
8
|
+
* 2. In case of argo_cd:
|
8
9
|
* - There are five timelines in chronological order:
|
9
10
|
* - Deployment Initiated
|
10
11
|
* - Git commit
|
11
12
|
* - ArgoCD Sync
|
12
13
|
* - Kubectl Apply
|
13
14
|
* - App Health
|
15
|
+
* In case of flux_cd
|
16
|
+
* - Deployment Initiated
|
17
|
+
* - Git commit
|
18
|
+
* - App Health
|
14
19
|
* - Basic flow is we traverse the timelines in order, if find the last status for that specific timeline from response by traversing the timelines in reverse order.
|
15
20
|
* - If element is found, we will parse the status and set the icon, display text, time, etc. for that timeline and set the next timeline to inprogress.
|
16
21
|
* - If element is not found, we will parse on basis of factors like:
|
17
22
|
* - If this timeline is not inprogress and deploymentStatus is progressing, we will set the current timeline to waiting.
|
18
23
|
* - In similar fashion based on the deploymentStatus we will set the icon and display text for the timeline.
|
19
24
|
*/
|
20
|
-
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
25
|
+
export declare const processDeploymentStatusDetailsData: (deploymentAppType: DeploymentAppTypes, data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
@@ -22,7 +22,6 @@ export declare const iconMap: {
|
|
22
22
|
'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
23
|
'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
24
|
'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
|
-
'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
25
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
27
26
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
28
27
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -33,13 +32,10 @@ export declare const iconMap: {
|
|
33
32
|
'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
34
33
|
'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
35
34
|
'ic-chat-circle-online': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
36
|
-
'ic-check-all': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
37
|
-
'ic-check-square': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
38
35
|
'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
39
36
|
'ic-checks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
40
37
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
41
38
|
'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
42
|
-
'ic-clean-brush': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
39
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
44
40
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
45
41
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -47,7 +43,6 @@ export declare const iconMap: {
|
|
47
43
|
'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
44
|
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
45
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
50
|
-
'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
46
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
47
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
48
|
'ic-copy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -68,7 +63,6 @@ export declare const iconMap: {
|
|
68
63
|
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
64
|
'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
65
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
|
-
'ic-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
72
66
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
73
67
|
'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
74
68
|
'ic-email': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -82,7 +76,6 @@ export declare const iconMap: {
|
|
82
76
|
'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
83
77
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
84
78
|
'ic-fast-forward': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
85
|
-
'ic-file-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
86
79
|
'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
87
80
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
88
81
|
'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -92,7 +85,6 @@ export declare const iconMap: {
|
|
92
85
|
'ic-flask': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
93
86
|
'ic-folder-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
94
87
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
95
|
-
'ic-gavel': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
96
88
|
'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
97
89
|
'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
98
90
|
'ic-gift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -115,7 +107,6 @@ export declare const iconMap: {
|
|
115
107
|
'ic-hibernate-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
116
108
|
'ic-hibernate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
117
109
|
'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
118
|
-
'ic-info-filled-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
119
110
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
120
111
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
121
112
|
'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -133,7 +124,6 @@ export declare const iconMap: {
|
|
133
124
|
'ic-linked-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
134
125
|
'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
135
126
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
|
-
'ic-logs': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
137
127
|
'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
138
128
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
139
129
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -158,7 +148,6 @@ export declare const iconMap: {
|
|
158
148
|
'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
159
149
|
'ic-paper-plane': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
160
150
|
'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
161
|
-
'ic-pause-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
162
151
|
'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
163
152
|
'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
164
153
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -174,7 +163,6 @@ export declare const iconMap: {
|
|
174
163
|
'ic-sortable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
175
164
|
'ic-sparkle-ai-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
176
165
|
'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
177
|
-
'ic-speedometer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
178
166
|
'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
179
167
|
'ic-spray-can': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
180
168
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -201,7 +189,6 @@ export declare const iconMap: {
|
|
201
189
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
202
190
|
'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
203
191
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
204
|
-
'ic-two-cubes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
205
192
|
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
206
193
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
207
194
|
'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -4,5 +4,4 @@ import { InfoBlockProps } from './types';
|
|
4
4
|
export declare const VARIANT_TO_ICON_MAP: Record<InfoBlockVariant, InfoBlockProps['customIcon']>;
|
5
5
|
export declare const CONTAINER_SIZE_TO_CLASS_MAP: Record<InfoBlockProps['size'], string>;
|
6
6
|
export declare const SIZE_TO_ICON_CLASS_MAP: Record<InfoBlockProps['size'], string>;
|
7
|
-
export declare const
|
8
|
-
export declare const CONTAINER_SIZE_TO_ICON_BUTTON_SIZE: Record<InfoBlockProps['size'], ButtonProps['size']>;
|
7
|
+
export declare const CONTAINER_SIZE_TO_BUTTON_SIZE: Record<InfoBlockProps['size'], ButtonProps['size']>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { BulkSelectionActionWidgetProps } from './types';
|
2
|
-
declare const BulkSelectionActionWidget: ({ count, handleClearBulkSelection, parentRef, BulkActionsComponent,
|
2
|
+
declare const BulkSelectionActionWidget: ({ count, handleClearBulkSelection, parentRef, BulkActionsComponent, }: BulkSelectionActionWidgetProps) => JSX.Element;
|
3
3
|
export default BulkSelectionActionWidget;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { InternalTableProps } from './types';
|
2
|
-
declare const InternalTable: ({ filtersVariant, filterData, rows, getRows, columns, ViewWrapper, resizableConfig, emptyStateConfig, additionalProps, areColumnsConfigurable, filter, setVisibleColumns, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent,
|
2
|
+
declare const InternalTable: ({ filtersVariant, filterData, rows, getRows, columns, ViewWrapper, resizableConfig, emptyStateConfig, additionalProps, areColumnsConfigurable, filter, setVisibleColumns, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, }: InternalTableProps) => JSX.Element;
|
3
3
|
export default InternalTable;
|
@@ -5,4 +5,3 @@ export declare const BULK_ACTION_GUTTER_LABEL = "bulk-action-gutter";
|
|
5
5
|
export declare const EVENT_TARGET: EventTarget;
|
6
6
|
export declare const DRAG_SELECTOR_IDENTIFIER = "table-drag-selector";
|
7
7
|
export declare const SHIMMER_DUMMY_ARRAY: number[];
|
8
|
-
export declare const NO_ROWS_OR_GET_ROWS_ERROR: Error;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export { default as Table } from './Table.component';
|
2
|
-
export type {
|
2
|
+
export type { CellComponentProps as TableCellComponentProps, Column as TableColumnType, TableProps, ViewWrapperProps as TableViewWrapperProps, } from './types';
|
3
3
|
export { FiltersTypeEnum, PaginationEnum, SignalEnum as TableSignalEnum } from './types';
|