@devtron-labs/devtron-fe-common-lib 1.20.5-pre-4 → 1.20.5-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-B3Mnkxc0.js → @code-editor-BaT82Nxc.js} +7824 -7388
- package/dist/{@common-rjsf-C_CIIzXe.js → @common-rjsf-DXBLPfwt.js} +18 -18
- package/dist/{@framer-motion-D-YaCAW-.js → @framer-motion-DMkBQPN0.js} +1 -1
- package/dist/{@react-dates-Bo3yT8LF.js → @react-dates-BjZWpiVv.js} +1 -1
- package/dist/{@react-select-DTi_5fIc.js → @react-select-DtwlfcIG.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-CuvDiqTo.js → @react-virtualized-sticky-tree-M81Af3Qs.js} +1 -1
- package/dist/{@vendor-DMIFbFhR.js → @vendor-DceGoESd.js} +14522 -14363
- package/dist/Common/API/CoreAPI.d.ts +1 -6
- package/dist/Common/API/index.d.ts +1 -1
- package/dist/Common/API/types.d.ts +5 -0
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +1 -0
- package/dist/Common/BreadCrumb/NestedBreadCrumb.d.ts +2 -0
- package/dist/Common/BreadCrumb/Types.d.ts +15 -0
- package/dist/Common/Common.service.d.ts +2 -1
- package/dist/Common/Constants.d.ts +7 -7
- package/dist/Common/Types.d.ts +38 -1
- package/dist/Common/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +13 -7
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +3 -3
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/index.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/constants.d.ts +4 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +20 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/index.d.ts +0 -1
- package/dist/Shared/Components/ActionMenu/types.d.ts +1 -0
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
- package/dist/Shared/Components/Charts/constants.d.ts +3 -11
- package/dist/Shared/Components/Charts/index.d.ts +2 -1
- package/dist/Shared/Components/Charts/plugins.d.ts +2 -3
- package/dist/Shared/Components/Charts/types.d.ts +51 -26
- package/dist/Shared/Components/Charts/utils.d.ts +64 -6
- package/dist/Shared/Components/ClusterStatusIcon/ClusterStatusIcon.d.ts +3 -0
- package/dist/Shared/Components/ClusterStatusIcon/index.d.ts +1 -0
- package/dist/Shared/Components/ClusterStatusIcon/types.d.ts +5 -0
- package/dist/Shared/Components/ClusterStatusIcon/utils.d.ts +2 -0
- package/dist/Shared/Components/ConfirmationModal/ForceDeleteConfirmationModal.d.ts +1 -1
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +1 -1
- package/dist/Shared/Components/DocLink/constants.d.ts +1 -0
- package/dist/Shared/Components/ExportToCsv/ExportToCsv.d.ts +3 -0
- package/dist/Shared/Components/ExportToCsv/ExportToCsvDialog.d.ts +3 -0
- package/dist/Shared/Components/ExportToCsv/index.d.ts +2 -0
- package/dist/Shared/Components/ExportToCsv/types.d.ts +64 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +8 -17
- package/dist/Shared/Components/Icon/types.d.ts +1 -1
- package/dist/Shared/Components/Illustration/Illustration.d.ts +1 -0
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +1 -1
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +0 -1
- package/dist/Shared/Components/Table/types.d.ts +6 -4
- package/dist/Shared/Components/index.d.ts +2 -0
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +1 -1
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-arrow-line-down.b6a98848.svg +3 -0
- package/dist/assets/{ic-bg-build.7de825b3.svg → ic-bg-build.8609d0ea.svg} +1 -1
- package/dist/assets/{ic-bg-production-pipelines.5965401c.svg → ic-bg-production-pipelines.2951cdc0.svg} +3 -2
- package/dist/assets/ic-bg-webhook.b455152d.svg +13 -0
- package/dist/assets/ic-edit-lines.57927b07.svg +3 -0
- package/dist/assets/ic-file-download.ca57c068.svg +5 -0
- package/dist/assets/ic-gift-animated.d848dfa3.svg +1 -0
- package/dist/assets/{ic-graph-negative.d49ba2b7.svg → ic-priority-medium-fill.7bab0ff8.svg} +2 -2
- package/dist/assets/ic-ratings.a1d31244.svg +13 -0
- package/dist/assets/ic-success-blue.7b3a2720.svg +4 -0
- package/dist/assets/img-devtron-freemium.d0657c61.webp +0 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1005 -1018
- package/package.json +3 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/PageHeader.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/constants.d.ts +0 -2
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/types.d.ts +0 -12
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/utils.d.ts +0 -2
- package/dist/Shared/Components/SelectPicker/GroupedFilterSelectPicker.example.d.ts +0 -0
- package/dist/assets/ic-arrow-white.c5174353.svg +0 -3
- package/dist/assets/ic-bulb.3906a732.svg +0 -7
- package/dist/assets/ic-circle-progress.0875625d.svg +0 -6
- package/dist/assets/ic-dot-circle.5ce1fccf.svg +0 -3
- package/dist/assets/ic-failure-color.e167df98.svg +0 -4
- package/dist/assets/ic-line.4e8fa046.svg +0 -3
- package/dist/assets/ic-new-chat.f7c90f8e.svg +0 -5
- package/dist/assets/ic-piggybank.3a4839d7.svg +0 -3
- package/dist/assets/ic-priority-high-fill.53755d8f.svg +0 -3
- package/dist/assets/ic-priority-low-fill.79e781ae.svg +0 -4
- package/dist/assets/ic-priority-medium-fill.9abcdc4e.svg +0 -4
- package/dist/assets/ic-priority-urgent-fill.78d42fa0.svg +0 -10
- package/dist/assets/ic-red-bulb.25e01bfc.svg +0 -9
- package/dist/assets/ic-spider.99b77bd8.svg +0 -3
- package/dist/assets/ic-vector.4530b03c.svg +0 -3
- /package/dist/Pages-Devtron-2.0/{InfrastructureManagement → ApplicationManagement}/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +0 -0
- /package/dist/Pages-Devtron-2.0/{InfrastructureManagement → ApplicationManagement}/Shared/ApplicationManagementIcon/index.d.ts +0 -0
- /package/dist/Pages-Devtron-2.0/{InfrastructureManagement → ApplicationManagement}/Shared/ApplicationManagementIcon/utils.d.ts +0 -0
@@ -135,7 +135,7 @@ export interface CannotDeleteModalProps extends Partial<Pick<DeleteConfirmationM
|
|
135
135
|
* This interface extends selected properties from `DeleteConfirmationModalProps`
|
136
136
|
* and `ConfirmationModalProps` to configure the force delete confirmation modal.
|
137
137
|
*/
|
138
|
-
export interface ForceDeleteConfirmationProps extends Partial<Pick<DeleteConfirmationModalProps, 'onDelete' | 'closeConfirmationModal'>>, Partial<Pick<ConfirmationModalProps, 'title' | 'subtitle'>> {
|
138
|
+
export interface ForceDeleteConfirmationProps extends Partial<Pick<DeleteConfirmationModalProps, 'onDelete' | 'closeConfirmationModal' | 'isDeleting'>>, Partial<Pick<ConfirmationModalProps, 'title' | 'subtitle'>> {
|
139
139
|
}
|
140
140
|
export interface ConfirmationModalContextType {
|
141
141
|
settersRef: MutableRefObject<{
|
@@ -86,6 +86,7 @@ export declare const DOCUMENTATION: {
|
|
86
86
|
readonly GLOBAL_CONFIG_PLUGINS_POLICY: "global-configurations/plugins-policy";
|
87
87
|
readonly GLOBAL_CONFIG_APPROVAL_POLICY: "global-configurations/approval-policy";
|
88
88
|
readonly GLOBAL_CONFIG_SSO_LOGIN_LDAP: "global-configurations/authorization/sso-login/ldap";
|
89
|
+
readonly GLOBAL_CONFIG_SSO_LOGIN_OIDC: "global-configurations/authorization/sso-login/oidc";
|
89
90
|
readonly GLOBAL_CONFIG_SSO_LOGIN_MICROSOFT: "global-configurations/authorization/sso-login/microsoft";
|
90
91
|
readonly GLOBAL_CONFIG_PULL_IMAGE_DIGEST: "global-configurations/pull-image-digest";
|
91
92
|
readonly GLOBAL_CONFIG_TAGS: "getting-started/global-configurations/tags-policy";
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { ExportToCsvProps } from './types';
|
2
|
+
declare const ExportToCsv: <HeaderItemType extends string>({ apiPromise, fileName, triggerElementConfig, disabled, modalConfig, headers, downloadRequestId, }: ExportToCsvProps<HeaderItemType>) => JSX.Element;
|
3
|
+
export default ExportToCsv;
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { ServerErrors } from '../../../Common/ServerError';
|
2
|
+
import { APIOptions } from '../../../Common/Types';
|
3
|
+
import { ButtonProps } from '../Button';
|
4
|
+
type TriggerElementConfigType = {
|
5
|
+
buttonProps: ButtonProps;
|
6
|
+
showOnlyIcon?: boolean;
|
7
|
+
customButton?: never;
|
8
|
+
isExternalTrigger?: false;
|
9
|
+
} | {
|
10
|
+
customButton: {
|
11
|
+
content: JSX.Element;
|
12
|
+
className: string;
|
13
|
+
};
|
14
|
+
buttonProps?: never;
|
15
|
+
showOnlyIcon?: false;
|
16
|
+
isExternalTrigger?: false;
|
17
|
+
} | {
|
18
|
+
isExternalTrigger: true;
|
19
|
+
showOnlyIcon?: false;
|
20
|
+
buttonProps?: never;
|
21
|
+
customButton?: never;
|
22
|
+
} | {
|
23
|
+
showOnlyIcon: true;
|
24
|
+
buttonProps?: never;
|
25
|
+
customButton?: never;
|
26
|
+
isExternalTrigger?: false;
|
27
|
+
};
|
28
|
+
export interface ExportToCsvProps<HeaderItemKeyType extends string> {
|
29
|
+
headers: {
|
30
|
+
label: string;
|
31
|
+
key: HeaderItemKeyType;
|
32
|
+
}[];
|
33
|
+
apiPromise: ({ signal, }: Pick<APIOptions, 'signal'>) => Promise<Record<HeaderItemKeyType, string | number | boolean>[]>;
|
34
|
+
fileName: string;
|
35
|
+
/**
|
36
|
+
* If nothing given will render a Button with "Export CSV" text
|
37
|
+
*/
|
38
|
+
triggerElementConfig?: TriggerElementConfigType;
|
39
|
+
/**
|
40
|
+
* @default false
|
41
|
+
*/
|
42
|
+
disabled?: boolean;
|
43
|
+
/**
|
44
|
+
* If not given would show default dialog
|
45
|
+
*/
|
46
|
+
modalConfig?: {
|
47
|
+
hideDialog: false;
|
48
|
+
renderCustomModal?: (proceedWithDownload: (shouldProceed: boolean) => void) => JSX.Element;
|
49
|
+
} | {
|
50
|
+
hideDialog: true;
|
51
|
+
renderCustomModal?: never;
|
52
|
+
};
|
53
|
+
/**
|
54
|
+
* If given, would trigger export on when this changes and has some value
|
55
|
+
*/
|
56
|
+
downloadRequestId?: string | number;
|
57
|
+
}
|
58
|
+
export interface ExportToCsvDialogProps {
|
59
|
+
isLoading: boolean;
|
60
|
+
exportDataError: ServerErrors;
|
61
|
+
initiateDownload: () => void;
|
62
|
+
handleCancelRequest: () => void;
|
63
|
+
}
|
64
|
+
export {};
|
@@ -10,9 +10,9 @@ export declare const iconMap: {
|
|
10
10
|
'ic-app-template': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
11
|
'ic-argocd-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
12
|
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
|
+
'ic-arrow-line-down': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
14
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
15
|
'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
15
|
-
'ic-arrow-white': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
16
16
|
'ic-arrows-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
17
17
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
18
18
|
'ic-asterisk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -28,6 +28,7 @@ export declare const iconMap: {
|
|
28
28
|
'ic-bg-production-pipelines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
29
29
|
'ic-bg-project': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
30
30
|
'ic-bg-scan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
31
|
+
'ic-bg-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
31
32
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
32
33
|
'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
33
34
|
'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -92,6 +93,7 @@ export declare const iconMap: {
|
|
92
93
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
93
94
|
'ic-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
94
95
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
96
|
+
'ic-edit-lines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
95
97
|
'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
96
98
|
'ic-email': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
97
99
|
'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -105,6 +107,7 @@ export declare const iconMap: {
|
|
105
107
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
106
108
|
'ic-fast-forward': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
107
109
|
'ic-file-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
110
|
+
'ic-file-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
108
111
|
'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
109
112
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
110
113
|
'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -120,6 +123,7 @@ export declare const iconMap: {
|
|
120
123
|
'ic-folder': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
121
124
|
'ic-gavel': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
122
125
|
'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
126
|
+
'ic-gift-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
123
127
|
'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
124
128
|
'ic-gift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
125
129
|
'ic-git-branch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -131,7 +135,6 @@ export declare const iconMap: {
|
|
131
135
|
'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
132
136
|
'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
133
137
|
'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
134
|
-
'ic-graph-negative': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
135
138
|
'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
139
|
'ic-group-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
137
140
|
'ic-group-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -163,7 +166,6 @@ export declare const iconMap: {
|
|
163
166
|
'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
164
167
|
'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
165
168
|
'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
166
|
-
'ic-line': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
167
169
|
'ic-link': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
168
170
|
'ic-linked-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
169
171
|
'ic-list-bullets': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -186,7 +188,6 @@ export declare const iconMap: {
|
|
186
188
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
187
189
|
'ic-more-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
188
190
|
'ic-namespace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
189
|
-
'ic-new-chat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
190
191
|
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
191
192
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
192
193
|
'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -203,8 +204,10 @@ export declare const iconMap: {
|
|
203
204
|
'ic-pause-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
204
205
|
'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
205
206
|
'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
207
|
+
'ic-priority-medium-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
206
208
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
207
209
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
210
|
+
'ic-ratings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
208
211
|
'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
209
212
|
'ic-right-panel-collapse': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
210
213
|
'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -233,6 +236,7 @@ export declare const iconMap: {
|
|
233
236
|
'ic-strategy-recreate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
234
237
|
'ic-strategy-rolling-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
235
238
|
'ic-strategy-rolling': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
239
|
+
'ic-success-blue': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
236
240
|
'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
237
241
|
'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
238
242
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -264,19 +268,6 @@ export declare const iconMap: {
|
|
264
268
|
'ic-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
265
269
|
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
266
270
|
'ic-world-globe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
267
|
-
'ic-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
268
|
-
'ic-red-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
269
|
-
'ic-failure-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
270
|
-
'ic-dot-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
271
|
-
'ic-circle-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
272
|
-
'ic-piggybank': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
273
|
-
'ic-priority-high-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
274
|
-
'ic-priority-low-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
275
|
-
'ic-priority-medium-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
276
|
-
'ic-priority-urgent-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
277
|
-
'ic-spider': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
278
|
-
'ic-vector': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
279
|
-
'ic-close': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
280
271
|
};
|
281
272
|
export type IconName = keyof typeof iconMap;
|
282
273
|
export interface IconsProps extends Omit<IconBaseProps, 'name' | 'iconMap'> {
|
@@ -2,6 +2,7 @@ import { IllustrationBaseProps } from './types';
|
|
2
2
|
export declare const illustrationMap: {
|
3
3
|
'img-mechanical-operation': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
4
4
|
'img-code': string;
|
5
|
+
'img-devtron-freemium': string;
|
5
6
|
'img-man-on-rocket': string;
|
6
7
|
'img-no-result': string;
|
7
8
|
'no-cluster-cost-enabled': string;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PromoetheusConfigProps } from './types';
|
2
|
-
declare const PromoetheusConfigCard: ({ prometheusConfig,
|
2
|
+
declare const PromoetheusConfigCard: ({ prometheusConfig, handleOnChange, onPrometheusAuthTypeChange, }: PromoetheusConfigProps) => JSX.Element;
|
3
3
|
export default PromoetheusConfigCard;
|
@@ -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';
|
@@ -177,7 +177,7 @@ export type InternalTableProps<RowData extends unknown, FilterVariant extends Fi
|
|
177
177
|
} | {
|
178
178
|
rows?: never;
|
179
179
|
/** NOTE: Sorting on frontend is only handled if rows is provided instead of getRows */
|
180
|
-
getRows: (props: GetRowsProps,
|
180
|
+
getRows: (props: GetRowsProps, signal: AbortSignal) => Promise<{
|
181
181
|
rows: RowsType<RowData>;
|
182
182
|
totalRows: number;
|
183
183
|
}>;
|
@@ -206,9 +206,11 @@ export interface GetFilteringPromiseProps<RowData extends unknown> {
|
|
206
206
|
searchSortTimeoutRef: React.MutableRefObject<number>;
|
207
207
|
callback: () => Promise<RowsType<RowData>> | RowsType<RowData>;
|
208
208
|
}
|
209
|
-
export interface
|
209
|
+
export interface RowsResultType<RowData extends unknown> {
|
210
210
|
filteredRows: RowsType<RowData>;
|
211
|
-
areFilteredRowsLoading: boolean;
|
212
211
|
totalRows: number;
|
213
212
|
}
|
213
|
+
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' | 'RowActionsOnHoverComponent' | 'pageSizeOptions' | 'getRows'>, RowsResultType<RowData> {
|
214
|
+
areFilteredRowsLoading: boolean;
|
215
|
+
}
|
214
216
|
export {};
|
@@ -16,6 +16,7 @@ export * from './ButtonWithSelector';
|
|
16
16
|
export * from './Charts';
|
17
17
|
export * from './Chip';
|
18
18
|
export * from './CICDHistory';
|
19
|
+
export * from './ClusterStatusIcon';
|
19
20
|
export * from './CMCS';
|
20
21
|
export * from './CodeEditor';
|
21
22
|
export * from './Collapse';
|
@@ -37,6 +38,7 @@ export * from './EditImageFormField';
|
|
37
38
|
export * from './EnvironmentSelector';
|
38
39
|
export * from './Error';
|
39
40
|
export * from './ExcludedImageNode';
|
41
|
+
export * from './ExportToCsv';
|
40
42
|
export * from './FeatureDescription';
|
41
43
|
export * from './FileUpload';
|
42
44
|
export * from './FilterChips';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -104,4 +104,5 @@ export declare const getAppDetailsURL: (appId: number | string, envId?: number |
|
|
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
106
|
export declare const YAMLtoJSON: (yamlString: string) => string;
|
107
|
+
export declare const formatNumberToCurrency: (value: number, currency: string) => string;
|
107
108
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
|
2
2
|
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '../../Providers/ThemeProvider/types';
|
3
3
|
import { ResourceKindType } from '../../types';
|
4
|
-
export type NavigationItemID = 'application-management-overview' | 'application-management-applications' | 'application-management-application-groups' | 'application-management-chart-store' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-scans' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'automation-and-enablement-runbook-automation' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | '
|
4
|
+
export type NavigationItemID = 'application-management-overview' | 'application-management-applications' | 'application-management-application-groups' | 'application-management-chart-store' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-scans' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'automation-and-enablement-runbook-automation' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'data-protection-overview' | 'data-protection-backup-and-schedule' | 'data-protection-restores' | 'data-protection-backup-repositories' | 'data-protection-backup-locations' | 'data-protection-history-and-logs' | 'ai-recommendations-overview';
|
5
5
|
export type NavigationSubMenuItemID = 'application-management-configurations-gitops' | 'application-management-configurations-git-accounts' | 'application-management-configurations-external-links' | 'application-management-configurations-chart-repository' | 'application-management-configurations-deployment-charts' | 'application-management-configurations-notifications' | 'application-management-configurations-catalog-frameworks' | 'application-management-configurations-scoped-variables' | 'application-management-configurations-build-infra' | 'application-management-policies-deployment-window' | 'application-management-policies-approval-policy' | 'application-management-policies-plugin-policy' | 'application-management-policies-pull-image-digest' | 'application-management-policies-tag-policy' | 'application-management-policies-filter-conditions' | 'application-management-policies-image-promotion' | 'application-management-policies-lock-deployment-configuration' | 'cost-visibility-cost-breakdown-clusters' | 'cost-visibility-cost-breakdown-environments' | 'cost-visibility-cost-breakdown-projects' | 'cost-visibility-cost-breakdown-applications' | 'global-configuration-authorization-user-permissions' | 'global-configuration-authorization-permission-groups' | 'global-configuration-authorization-api-tokens';
|
6
6
|
export interface GetUserPreferencesQueryParamsType {
|
7
7
|
key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
|