@devtron-labs/devtron-fe-common-lib 1.16.1 → 1.17.0-beta-2
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-Beg2MXXu.js → @code-editor-BxJ15h1P.js} +11558 -11071
- package/dist/{@common-rjsf-wzopDXwy.js → @common-rjsf-D-9UITDU.js} +6 -6
- package/dist/{@framer-motion-DAmKhMSi.js → @framer-motion-j6RIjEIR.js} +20 -20
- package/dist/{@moment-C_WeV3Af.js → @moment-CGWt8tF2.js} +12 -1
- package/dist/{@react-dates-D5kydtW-.js → @react-dates-BVyHiOGU.js} +2065 -2140
- package/dist/{@react-select-Cmser7OI.js → @react-select-BQNFZu0Y.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-DMnFy9PE.js → @react-virtualized-sticky-tree-CuElh0mS.js} +1 -1
- package/dist/{@vendor-STJ9h0oI.js → @vendor-DbxoIktR.js} +29809 -29542
- package/dist/Common/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Common/Constants.d.ts +2 -0
- package/dist/Common/GenericDescription/GenericDescription.d.ts +1 -1
- package/dist/Common/GenericDescription/types.d.ts +4 -1
- package/dist/Common/GenericDescription/utils.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +21 -0
- 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/index.d.ts +1 -0
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +2 -1
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -1
- package/dist/Common/Modals/VisibleModal.d.ts +1 -0
- package/dist/Common/Modals/VisibleModal2.d.ts +1 -0
- package/dist/Common/Pagination/constants.d.ts +4 -0
- package/dist/Common/Pagination/index.d.ts +1 -0
- package/dist/Common/Tooltip/types.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/constants.d.ts +8 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +35 -2
- package/dist/Pages/ResourceBrowser/constants.d.ts +13 -0
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/types.d.ts +17 -0
- package/dist/Shared/Components/AboutDevtron/AboutDevtronBody.d.ts +1 -3
- package/dist/Shared/Components/AboutDevtron/AboutDevtronDialog.d.ts +1 -2
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/AnimatedDeployButton.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/types.d.ts +5 -9
- package/dist/Shared/Components/AppStatusModal/service.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/types.d.ts +2 -1
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/index.d.ts +1 -0
- package/dist/Shared/Components/Backdrop/types.d.ts +28 -2
- package/dist/Shared/Components/Backdrop/utils.d.ts +1 -0
- package/dist/Shared/Components/Badge/Badge.d.ts +3 -0
- package/dist/Shared/Components/Badge/index.d.ts +2 -0
- package/dist/Shared/Components/Badge/types.d.ts +18 -0
- package/dist/Shared/Components/Badge/utils.d.ts +7 -0
- package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +4 -9
- package/dist/Shared/Components/Button/Button.component.d.ts +376 -2
- package/dist/Shared/Components/Button/types.d.ts +6 -3
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +2 -1
- package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +2 -1
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +7 -2
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +1 -1
- package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +9 -0
- package/dist/Shared/Components/GenericModal/GenericModal.context.d.ts +6 -0
- package/dist/Shared/Components/GenericModal/constants.d.ts +2 -0
- package/dist/Shared/Components/GenericModal/index.d.ts +2 -0
- package/dist/Shared/Components/GenericModal/types.d.ts +37 -0
- package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -1
- package/dist/Shared/Components/GettingStartedCard/types.d.ts +0 -3
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -1
- package/dist/Shared/Components/Header/HelpButton.d.ts +1 -1
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +1 -3
- package/dist/Shared/Components/Icon/Icon.d.ts +22 -1
- package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -1
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +1 -1
- package/dist/Shared/Components/Popover/types.d.ts +3 -2
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SeverityChip.d.ts +6 -0
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/GroupedFilterSelectPicker.d.ts +2 -0
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/index.d.ts +1 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +8 -3
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -1
- 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/TableContent.d.ts +3 -0
- package/dist/Shared/Components/Table/constants.d.ts +1 -0
- package/dist/Shared/Components/Table/index.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +48 -21
- package/dist/Shared/Components/Table/useTableWithKeyboardShortcuts.d.ts +6 -1
- package/dist/Shared/Components/Table/utils.d.ts +5 -0
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/SourceTypeCard.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/constants.d.ts +75 -41
- package/dist/Shared/Components/WorkflowOptionsModal/index.d.ts +1 -0
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +10 -12
- package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +13 -2
- package/dist/Shared/Components/index.d.ts +3 -0
- package/dist/Shared/Helpers.d.ts +3 -2
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
- package/dist/Shared/Providers/MainContextProvider/index.d.ts +3 -0
- package/dist/Shared/Providers/{types.d.ts → MainContextProvider/types.d.ts} +4 -4
- package/dist/Shared/Providers/index.d.ts +0 -2
- package/dist/Shared/Services/types.d.ts +1 -0
- package/dist/Shared/constants.d.ts +1 -0
- package/dist/Shared/types.d.ts +15 -2
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/ic-activity.abf111c7.svg +3 -0
- package/dist/assets/ic-bug.8a8dc1fc.svg +3 -0
- package/dist/assets/ic-check-all.fdea6b38.svg +5 -0
- package/dist/assets/ic-check-square.e355731d.svg +4 -0
- package/dist/assets/ic-clean-brush.c21cbe1e.svg +3 -0
- package/dist/assets/ic-container.92a4c33a.svg +3 -0
- package/dist/assets/ic-deploy-color.73a8df48.svg +14 -0
- package/dist/assets/ic-deploy-sync.6b1cf1b1.svg +16 -0
- package/dist/assets/ic-download.468a0cb7.svg +3 -0
- package/dist/assets/ic-file-code.0926d194.svg +3 -0
- package/dist/assets/ic-folder.8038c019.svg +3 -0
- package/dist/assets/ic-gavel.a3b064b5.svg +3 -0
- package/dist/assets/ic-git-branch.d6b3d950.svg +3 -0
- package/dist/assets/ic-helm-app.a20cfeb3.svg +4 -0
- package/dist/assets/ic-info-filled-color.47953fcf.svg +8 -0
- package/dist/assets/ic-linked-build-color.d1df5ce1.svg +7 -0
- package/dist/assets/ic-logs.d310db72.svg +3 -0
- package/dist/assets/{ic-minus.416da21b.svg → ic-minus.aac464f7.svg} +1 -1
- package/dist/assets/ic-namespace.8980221f.svg +3 -0
- package/dist/assets/ic-pause-circle.f9405070.svg +3 -0
- package/dist/assets/ic-speedometer.3ecaae3b.svg +3 -0
- package/dist/assets/ic-two-cubes.056d1333.svg +3 -0
- package/dist/assets/ic-webhook.ffd8ded6.svg +21 -0
- package/dist/assets/workflow-options-modal-header.0444485e.svg +38 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.js +855 -838
- package/package.json +7 -7
- package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +0 -3
- package/dist/assets/change-source.abc9d12f.png +0 -0
- package/dist/assets/ic-check-all.0376437d.svg +0 -21
- package/dist/assets/ic-check-square.2a3d3fb9.svg +0 -20
- package/dist/assets/ic-ci-webhook.a2ab6db6.svg +0 -42
- package/dist/assets/ic-source-build.7d776b10.svg +0 -22
- package/dist/assets/ic-source-job.a40f06cf.svg +0 -26
- package/dist/assets/ic-source-linked-build.f24ecbed.svg +0 -24
- package/dist/assets/ic-source-webhook.ee64a29a.svg +0 -22
- package/dist/assets/select-image-source.fb911f42.png +0 -0
- /package/dist/Shared/Providers/{MainContextProvider.d.ts → MainContextProvider/MainContextProvider.d.ts} +0 -0
- /package/dist/assets/{ic-container.4e1e6455.svg → ic-container-registry.4e1e6455.svg} +0 -0
@@ -10,9 +10,6 @@ export interface PageHeaderType {
|
|
10
10
|
isBreadcrumbs?: boolean;
|
11
11
|
breadCrumbs?: () => JSX.Element;
|
12
12
|
renderActionButtons?: () => JSX.Element;
|
13
|
-
showCloseButton?: boolean;
|
14
|
-
onClose?: () => void;
|
15
|
-
markAsBeta?: boolean;
|
16
13
|
tippyProps?: Pick<TippyCustomizedProps<false>, 'additionalContent'> & {
|
17
14
|
isTippyCustomized?: boolean;
|
18
15
|
tippyRedirectLink?: keyof typeof DOCUMENTATION;
|
@@ -34,6 +31,7 @@ export interface HelpButtonProps {
|
|
34
31
|
serverInfo: ServerInfo;
|
35
32
|
fetchingServerInfo: boolean;
|
36
33
|
onClick: () => void;
|
34
|
+
hideGettingStartedCard: () => void;
|
37
35
|
}
|
38
36
|
export declare enum HelpMenuItems {
|
39
37
|
GETTING_STARTED = "getting-started",
|
@@ -2,6 +2,7 @@ import { IconBaseProps } from './types';
|
|
2
2
|
export declare const iconMap: {
|
3
3
|
'ic-73strings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
4
4
|
'ic-aborted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
5
|
+
'ic-activity': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
5
6
|
'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
6
7
|
'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
7
8
|
'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -22,6 +23,7 @@ export declare const iconMap: {
|
|
22
23
|
'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
24
|
'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
25
|
'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
|
+
'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
27
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
28
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
27
29
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -32,11 +34,13 @@ export declare const iconMap: {
|
|
32
34
|
'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
33
35
|
'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
34
36
|
'ic-chat-circle-online': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
37
|
+
'ic-check-all': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
38
|
+
'ic-check-square': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
35
39
|
'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
36
40
|
'ic-checks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
37
41
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
38
|
-
'ic-ci-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
39
42
|
'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
|
+
'ic-clean-brush': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
40
44
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
41
45
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
42
46
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -44,6 +48,7 @@ export declare const iconMap: {
|
|
44
48
|
'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
45
49
|
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
46
50
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
|
+
'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
47
52
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
53
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
54
|
'ic-copy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -54,6 +59,8 @@ export declare const iconMap: {
|
|
54
59
|
'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
60
|
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
61
|
'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
62
|
+
'ic-deploy-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
63
|
+
'ic-deploy-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
57
64
|
'ic-devtron-ai': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
58
65
|
'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
59
66
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -62,6 +69,7 @@ export declare const iconMap: {
|
|
62
69
|
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
63
70
|
'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
64
71
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
72
|
+
'ic-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
65
73
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
66
74
|
'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
67
75
|
'ic-email': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -75,6 +83,7 @@ export declare const iconMap: {
|
|
75
83
|
'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
76
84
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
77
85
|
'ic-fast-forward': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
86
|
+
'ic-file-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
87
|
'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
79
88
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
80
89
|
'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -84,9 +93,12 @@ export declare const iconMap: {
|
|
84
93
|
'ic-flask': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
85
94
|
'ic-folder-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
86
95
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
96
|
+
'ic-folder': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
97
|
+
'ic-gavel': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
87
98
|
'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
88
99
|
'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
89
100
|
'ic-gift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
101
|
+
'ic-git-branch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
90
102
|
'ic-git': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
91
103
|
'ic-github': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
92
104
|
'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -99,12 +111,14 @@ export declare const iconMap: {
|
|
99
111
|
'ic-heart-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
100
112
|
'ic-heart-red-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
101
113
|
'ic-heart-red': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
114
|
+
'ic-helm-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
102
115
|
'ic-helm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
103
116
|
'ic-help-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
104
117
|
'ic-help-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
105
118
|
'ic-hibernate-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
106
119
|
'ic-hibernate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
107
120
|
'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
121
|
+
'ic-info-filled-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
108
122
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
109
123
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
110
124
|
'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -119,8 +133,10 @@ export declare const iconMap: {
|
|
119
133
|
'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
120
134
|
'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
121
135
|
'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
|
+
'ic-linked-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
122
137
|
'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
123
138
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
139
|
+
'ic-logs': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
124
140
|
'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
125
141
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
126
142
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -134,6 +150,7 @@ export declare const iconMap: {
|
|
134
150
|
'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
135
151
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
152
|
'ic-more-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
153
|
+
'ic-namespace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
137
154
|
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
138
155
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
139
156
|
'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -145,6 +162,7 @@ export declare const iconMap: {
|
|
145
162
|
'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
146
163
|
'ic-paper-plane': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
147
164
|
'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
165
|
+
'ic-pause-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
148
166
|
'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
149
167
|
'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
150
168
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -160,6 +178,7 @@ export declare const iconMap: {
|
|
160
178
|
'ic-sortable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
161
179
|
'ic-sparkle-ai-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
162
180
|
'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
181
|
+
'ic-speedometer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
163
182
|
'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
164
183
|
'ic-spray-can': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
165
184
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -186,6 +205,7 @@ export declare const iconMap: {
|
|
186
205
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
187
206
|
'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
188
207
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
208
|
+
'ic-two-cubes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
189
209
|
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
190
210
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
191
211
|
'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -193,6 +213,7 @@ export declare const iconMap: {
|
|
193
213
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
194
214
|
'ic-view-variable-toggle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
195
215
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
216
|
+
'ic-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
196
217
|
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
197
218
|
'ic-world-globe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
198
219
|
};
|
@@ -4,4 +4,5 @@ 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
|
7
|
+
export declare const CONTAINER_SIZE_TO_TEXT_BUTTON_SIZE: Record<InfoBlockProps['size'], ButtonProps['size']>;
|
8
|
+
export declare const CONTAINER_SIZE_TO_ICON_BUTTON_SIZE: Record<InfoBlockProps['size'], ButtonProps['size']>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { DetailedHTMLProps, KeyboardEvent, LegacyRef, MutableRefObject, ReactElement } from 'react';
|
2
2
|
import { HTMLMotionProps } from 'framer-motion';
|
3
|
+
import { BackdropProps } from '../Backdrop';
|
3
4
|
import { ButtonProps } from '../Button';
|
4
5
|
export interface UsePopoverProps {
|
5
6
|
/**
|
@@ -74,9 +75,9 @@ export interface UsePopoverReturnType {
|
|
74
75
|
};
|
75
76
|
/**
|
76
77
|
* Props to be spread onto the overlay element of the popover.
|
77
|
-
* These props include
|
78
|
+
* These props include backdrop properties.
|
78
79
|
*/
|
79
|
-
overlayProps:
|
80
|
+
overlayProps: Omit<BackdropProps, 'children'>;
|
80
81
|
/**
|
81
82
|
* Props to be spread onto the popover element itself.
|
82
83
|
* Includes motion-related props for animations and a `ref` to the popover's `div` element.
|
@@ -88,5 +88,5 @@ export declare const getPopoverActualPositionAlignment: ({ position, alignment,
|
|
88
88
|
popoverRect: DOMRect;
|
89
89
|
}) => {
|
90
90
|
fallbackPosition: "top" | "bottom" | "right" | "left";
|
91
|
-
fallbackAlignment: "
|
91
|
+
fallbackAlignment: "middle" | "end" | "start";
|
92
92
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, ScanResultDTO, SecurityModalStateType, StatusType, TablePropsType } from '../types';
|
1
|
+
import { CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, ScanResultDTO, SecurityModalStateType, SeveritiesDTO, StatusType, TablePropsType } from '../types';
|
2
2
|
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"], hidePolicy: boolean) => {
|
3
3
|
headers: ({
|
4
4
|
headerText: string;
|
@@ -10,7 +10,7 @@ export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"
|
|
10
10
|
headerText: string;
|
11
11
|
isSortable: boolean;
|
12
12
|
width: number;
|
13
|
-
compareFunc: (a:
|
13
|
+
compareFunc: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
14
14
|
defaultSortOrder: import('../types').SortOrderEnum;
|
15
15
|
})[];
|
16
16
|
rows: {
|
@@ -34,7 +34,7 @@ export declare const getCodeScanLicense: (data: CodeScan["license"]) => {
|
|
34
34
|
headerText: string;
|
35
35
|
isSortable: boolean;
|
36
36
|
width: number;
|
37
|
-
compareFunc: (a:
|
37
|
+
compareFunc: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
38
38
|
defaultSortOrder: import('../types').SortOrderEnum;
|
39
39
|
})[];
|
40
40
|
rows: {
|
@@ -57,7 +57,7 @@ export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigura
|
|
57
57
|
headerText: string;
|
58
58
|
isSortable: boolean;
|
59
59
|
width: number;
|
60
|
-
compareFunc: (a: Record<
|
60
|
+
compareFunc: (a: Record<SeveritiesDTO, number>, b: Record<SeveritiesDTO, number>) => number;
|
61
61
|
})[];
|
62
62
|
rows: {
|
63
63
|
id: number;
|
@@ -67,7 +67,7 @@ export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigura
|
|
67
67
|
cellContent: string;
|
68
68
|
} | {
|
69
69
|
component: JSX.Element;
|
70
|
-
cellContent: Partial<Record<
|
70
|
+
cellContent: Partial<Record<SeveritiesDTO, number>>;
|
71
71
|
})[];
|
72
72
|
}[];
|
73
73
|
};
|
@@ -81,7 +81,7 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
81
81
|
headerText: string;
|
82
82
|
isSortable: boolean;
|
83
83
|
width: number;
|
84
|
-
compareFunc: (a: Record<
|
84
|
+
compareFunc: (a: Record<SeveritiesDTO, number>, b: Record<SeveritiesDTO, number>) => number;
|
85
85
|
})[];
|
86
86
|
rows: {
|
87
87
|
id: number;
|
@@ -91,7 +91,7 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
91
91
|
cellContent: string;
|
92
92
|
} | {
|
93
93
|
component: JSX.Element;
|
94
|
-
cellContent: Partial<Record<
|
94
|
+
cellContent: Partial<Record<SeveritiesDTO, number>>;
|
95
95
|
})[];
|
96
96
|
}[];
|
97
97
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
|
-
import { Entity } from '
|
2
|
+
import { Entity } from '../../../../Common/SegmentedBarChart/types';
|
3
3
|
import { ServerErrors } from '../../../../Common/ServerError';
|
4
4
|
import { GenericEmptyStateType } from '../../../../Common/Types';
|
5
5
|
import { LastExecutionResultType, Nodes, NodeType } from '../../../types';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ImageCardAccordionProps } from '
|
1
|
+
import { ImageCardAccordionProps } from '../../ImageCardAccordion/types';
|
2
2
|
import { MaterialSecurityInfoType } from '../../../types';
|
3
3
|
export interface VulnerabilitiesProps extends MaterialSecurityInfoType, Pick<ImageCardAccordionProps, 'SecurityModalSidebar'> {
|
4
4
|
artifactId: number;
|
@@ -133,5 +133,5 @@ import { SelectPickerProps } from './type';
|
|
133
133
|
* />
|
134
134
|
* ```
|
135
135
|
*/
|
136
|
-
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef: refFromConsumer, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, menuListFooterConfig, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, shouldRenderTextArea, onKeyDown, shouldHideMenu, warningText, layout, ariaLabel, borderConfig, borderRadiusConfig, labelTippyCustomizedConfig, labelTooltipConfig, hideFormFieldInfo, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
136
|
+
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef: refFromConsumer, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, menuListFooterConfig, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, shouldRenderTextArea, onKeyDown, shouldHideMenu, warningText, layout, ariaLabel, borderConfig, borderRadiusConfig, labelTippyCustomizedConfig, labelTooltipConfig, hideFormFieldInfo, autoFocus, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
137
137
|
export default SelectPicker;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ClearIndicatorProps, ControlProps, DropdownIndicatorProps, InputProps, MenuListProps, MultiValueProps, MultiValueRemoveProps, OptionProps, ValueContainerProps } from 'react-select';
|
2
|
-
import { TooltipProps } from '
|
2
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
3
3
|
import { SelectPickerGroupHeadingProps, SelectPickerOptionType, SelectPickerProps } from './type';
|
4
4
|
export declare const getTooltipProps: (tooltipProps?: SelectPickerOptionType["tooltipProps"]) => TooltipProps;
|
5
5
|
export declare const SelectPickerDropdownIndicator: <OptionValue>(props: DropdownIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
export { ValueContainerWithLoadingShimmer } from './common';
|
2
2
|
export { default as FilterSelectPicker } from './FilterSelectPicker';
|
3
|
+
export * from './GroupedFilterSelectPicker';
|
3
4
|
export { default as SelectPicker } from './SelectPicker.component';
|
4
5
|
export * from './SelectPickerTextArea.component';
|
5
6
|
export * from './type';
|
@@ -3,9 +3,10 @@ import { GroupBase, GroupHeadingProps, Props as ReactSelectProps, SelectInstance
|
|
3
3
|
import { CreatableProps } from 'react-select/creatable';
|
4
4
|
import { ResizableTagTextAreaProps } from '../../../Common/CustomTagSelector';
|
5
5
|
import { ServerErrors } from '../../../Common/ServerError';
|
6
|
-
import { TooltipProps } from '
|
6
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
7
7
|
import { OptionType } from '../../../Common/Types';
|
8
8
|
import { ComponentSizeType } from '../../constants';
|
9
|
+
import { ActionMenuProps } from '../ActionMenu';
|
9
10
|
import { ButtonComponentType, ButtonProps, ButtonVariantType } from '../Button';
|
10
11
|
import { FormFieldWrapperProps } from '../FormFieldWrapper/types';
|
11
12
|
export interface SelectPickerOptionType<OptionValue = string | number> extends OptionType<OptionValue, ReactNode> {
|
@@ -100,7 +101,7 @@ export declare enum SelectPickerVariantType {
|
|
100
101
|
BORDER_LESS = "border-less",
|
101
102
|
COMPACT = "compact"
|
102
103
|
}
|
103
|
-
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue' | 'filterOption' | 'noOptionsMessage'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & Omit<FormFieldWrapperProps, 'children'> & {
|
104
|
+
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue' | 'filterOption' | 'noOptionsMessage' | 'defaultMenuIsOpen'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & Omit<FormFieldWrapperProps, 'children'> & {
|
104
105
|
/**
|
105
106
|
* Config for the footer at the bottom of menu list. It is sticky by default
|
106
107
|
*
|
@@ -215,9 +216,13 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
215
216
|
export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
|
216
217
|
isGroupHeadingSelectable: boolean;
|
217
218
|
};
|
218
|
-
export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList' | 'getOptionValue' | 'isOptionDisabled'> {
|
219
|
+
export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList' | 'getOptionValue' | 'isOptionDisabled' | 'onMenuClose' | 'menuIsOpen' | 'onKeyDown'> {
|
219
220
|
appliedFilterOptions: SelectPickerOptionType[];
|
220
221
|
handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
|
221
222
|
}
|
222
223
|
export type SelectPickerTextAreaProps = Omit<SelectPickerProps<string, false>, 'selectRef' | 'inputValue' | 'onInputChange' | 'controlShouldRenderValue' | 'onKeyDown' | 'onCreateOption' | 'shouldRenderTextArea'> & Pick<ResizableTagTextAreaProps, 'maxHeight' | 'minHeight' | 'refVar' | 'dependentRefs'>;
|
224
|
+
export interface GroupedFilterSelectPickerProps<T extends string | number = string | number> extends Omit<ActionMenuProps<T>, 'onClick' | 'disableDescriptionEllipsis' | 'children' | 'buttonProps' | 'isSearchable'> {
|
225
|
+
isFilterApplied?: boolean;
|
226
|
+
filterSelectPickerPropsMap: Record<T, Omit<FilterSelectPickerProps, 'autoFocus' | 'menuIsOpen' | 'onMenuClose' | 'onKeyDown'>>;
|
227
|
+
}
|
223
228
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { LinkProps, NavLinkProps } from 'react-router-dom';
|
2
|
-
import { TooltipProps } from '
|
2
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
3
3
|
import { ComponentSizeType } from '../../constants';
|
4
4
|
import { DataAttributes } from '../../types';
|
5
5
|
import { IconName } from '../Icon';
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { BulkSelectionActionWidgetProps } from './types';
|
2
|
-
declare const BulkSelectionActionWidget: ({ count, handleClearBulkSelection, parentRef, BulkActionsComponent, }: BulkSelectionActionWidgetProps) => JSX.Element;
|
2
|
+
declare const BulkSelectionActionWidget: ({ count, handleClearBulkSelection, parentRef, BulkActionsComponent, bulkActionsData, setBulkActionState, }: 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, }: InternalTableProps) => JSX.Element;
|
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, pageSizeOptions, clearFilters: userGivenUrlClearFilters, }: InternalTableProps) => JSX.Element;
|
3
3
|
export default InternalTable;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { TableContentProps } from './types';
|
2
|
+
declare const TableContent: ({ filterData, rows, resizableConfig, additionalProps, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, filteredRows, areFilteredRowsLoading, }: TableContentProps) => JSX.Element;
|
3
|
+
export default TableContent;
|
@@ -5,3 +5,4 @@ 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 { CellComponentProps as TableCellComponentProps, Column as TableColumnType, TableProps, ViewWrapperProps as TableViewWrapperProps, } from './types';
|
2
|
+
export type { BulkActionsComponentProps as TableBulkActionsComponentProps, BulkOperationModalProps as TableBulkOperationModalProps, CellComponentProps as TableCellComponentProps, Column as TableColumnType, TableProps, ViewWrapperProps as TableViewWrapperProps, } from './types';
|
3
3
|
export { FiltersTypeEnum, PaginationEnum, SignalEnum as TableSignalEnum } from './types';
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { Dispatch, FunctionComponent, PropsWithChildren, SetStateAction } from 'react';
|
2
|
-
import { GenericFilterEmptyStateProps } from '
|
3
|
-
import { UseStateFiltersProps, UseStateFiltersReturnType, UseUrlFiltersProps } from '../../../Common/Hooks';
|
1
|
+
import { Dispatch, FunctionComponent, MouseEvent, PropsWithChildren, SetStateAction } from 'react';
|
2
|
+
import { GenericFilterEmptyStateProps } from '../../../Common/EmptyState/types';
|
3
|
+
import { UseStateFiltersProps, UseStateFiltersReturnType, UseUrlFiltersProps, UseUrlFiltersReturnType } from '../../../Common/Hooks';
|
4
4
|
import { GenericEmptyStateType } from '../../../Common/index';
|
5
|
+
import { PageSizeOption } from '../../../Common/Pagination/types';
|
5
6
|
import { SortableTableHeaderCellProps, useResizableTableConfig } from '../../../Common/SortableTableHeaderCell';
|
6
7
|
import { useBulkSelection, UseBulkSelectionProps } from '../BulkSelection';
|
7
8
|
export interface UseFiltersReturnType extends UseStateFiltersReturnType<string> {
|
@@ -50,11 +51,16 @@ export type RowType = {
|
|
50
51
|
data: Record<string, unknown>;
|
51
52
|
};
|
52
53
|
export type RowsType = RowType[];
|
53
|
-
export
|
54
|
+
export declare enum FiltersTypeEnum {
|
55
|
+
STATE = "state",
|
56
|
+
URL = "url",
|
57
|
+
NONE = "none"
|
58
|
+
}
|
59
|
+
export interface CellComponentProps<T = FiltersTypeEnum.NONE> extends Pick<BaseColumnType, 'field'>, AdditionalProps {
|
54
60
|
signals: SignalsType;
|
55
61
|
value: unknown;
|
56
62
|
row: RowType;
|
57
|
-
filterData: UseFiltersReturnType
|
63
|
+
filterData: T extends FiltersTypeEnum.NONE ? null : T extends FiltersTypeEnum.STATE ? UseFiltersReturnType : UseUrlFiltersReturnType<string>;
|
58
64
|
isRowActive: boolean;
|
59
65
|
}
|
60
66
|
export type Column = Pick<SortableTableHeaderCellProps, 'showTippyOnTruncate'> & BaseColumnType & {
|
@@ -71,21 +77,26 @@ export type Column = Pick<SortableTableHeaderCellProps, 'showTippyOnTruncate'> &
|
|
71
77
|
isSortable?: false;
|
72
78
|
comparator?: never;
|
73
79
|
});
|
80
|
+
export interface BulkActionsComponentProps {
|
81
|
+
onActionClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
82
|
+
bulkActionsData: unknown;
|
83
|
+
}
|
84
|
+
type BulkSelectionReturnValueType = ReturnType<typeof useBulkSelection>;
|
85
|
+
export interface BulkOperationModalProps<T = string> extends Pick<BulkSelectionReturnValueType, 'isBulkSelectionApplied'> {
|
86
|
+
action: T;
|
87
|
+
onClose: () => void;
|
88
|
+
selections: RowsType | null;
|
89
|
+
bulkOperationModalData: unknown;
|
90
|
+
}
|
74
91
|
type BulkSelectionConfigType = Pick<UseBulkSelectionProps<unknown>, 'getSelectAllDialogStatus'> & {
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
};
|
92
|
+
BulkActionsComponent: FunctionComponent<BulkActionsComponentProps>;
|
93
|
+
BulkOperationModal: FunctionComponent<BulkOperationModalProps>;
|
94
|
+
} & Pick<BulkActionsComponentProps, 'bulkActionsData'> & Pick<BulkOperationModalProps, 'bulkOperationModalData'>;
|
79
95
|
export declare enum PaginationEnum {
|
80
96
|
PAGINATED = "paginated",
|
81
97
|
INFINITE = "infinite",
|
82
98
|
NOT_PAGINATED = "not-paginated"
|
83
99
|
}
|
84
|
-
export declare enum FiltersTypeEnum {
|
85
|
-
STATE = "state",
|
86
|
-
URL = "url",
|
87
|
-
NONE = "none"
|
88
|
-
}
|
89
100
|
export interface ConfigurableColumnsType {
|
90
101
|
allColumns: Column[];
|
91
102
|
visibleColumns: Column[];
|
@@ -93,14 +104,14 @@ export interface ConfigurableColumnsType {
|
|
93
104
|
}
|
94
105
|
interface GetRowsProps extends Pick<UseFiltersReturnType, 'offset' | 'pageSize' | 'searchKey' | 'sortBy' | 'sortOrder'> {
|
95
106
|
}
|
96
|
-
type AdditionalFilterPropsType<T extends Exclude<FiltersTypeEnum, FiltersTypeEnum.NONE>> = T extends FiltersTypeEnum.URL ? Pick<UseUrlFiltersProps<string, unknown>, 'parseSearchParams' | 'localStorageKey' | 'redirectionMethod' | 'initialSortKey'> : Pick<UseStateFiltersProps<string>, 'initialSortKey'>;
|
97
|
-
export type ViewWrapperProps = PropsWithChildren<Pick<UseFiltersReturnType, 'offset' | 'handleSearch' | 'searchKey' | 'sortBy' | 'sortOrder' | 'clearFilters'> & AdditionalProps & Partial<ConfigurableColumnsType> & {
|
107
|
+
type AdditionalFilterPropsType<T extends Exclude<FiltersTypeEnum, FiltersTypeEnum.NONE>> = T extends FiltersTypeEnum.URL ? Pick<UseUrlFiltersProps<string, unknown>, 'parseSearchParams' | 'localStorageKey' | 'redirectionMethod' | 'initialSortKey' | 'defaultPageSize'> : Pick<UseStateFiltersProps<string>, 'initialSortKey' | 'defaultPageSize'>;
|
108
|
+
export type ViewWrapperProps<T = FiltersTypeEnum.STATE> = PropsWithChildren<(T extends FiltersTypeEnum.NONE ? {} : Pick<UseFiltersReturnType, 'offset' | 'handleSearch' | 'searchKey' | 'sortBy' | 'sortOrder' | 'clearFilters'>) & AdditionalProps & Partial<ConfigurableColumnsType> & {
|
98
109
|
areRowsLoading: boolean;
|
99
|
-
|
110
|
+
filteredRows: RowsType | null;
|
111
|
+
} & (T extends FiltersTypeEnum.URL ? Pick<UseUrlFiltersReturnType<string>, 'updateSearchParams'> : {})>;
|
100
112
|
export type InternalTableProps = Required<Pick<ConfigurableColumnsType, 'visibleColumns' | 'setVisibleColumns'>> & {
|
101
113
|
id: `table__${string}`;
|
102
114
|
loading?: boolean;
|
103
|
-
paginationVariant: PaginationEnum;
|
104
115
|
/**
|
105
116
|
* Memoize columns before passing as props.
|
106
117
|
*
|
@@ -136,7 +147,7 @@ export type InternalTableProps = Required<Pick<ConfigurableColumnsType, 'visible
|
|
136
147
|
RowActionsOnHoverComponent?: FunctionComponent<{
|
137
148
|
row: RowType;
|
138
149
|
}>;
|
139
|
-
bulkSelectionReturnValue:
|
150
|
+
bulkSelectionReturnValue: BulkSelectionReturnValueType | null;
|
140
151
|
handleClearBulkSelection: () => void;
|
141
152
|
handleToggleBulkSelectionOnRow: (row: RowType) => void;
|
142
153
|
ViewWrapper?: FunctionComponent<ViewWrapperProps>;
|
@@ -166,28 +177,44 @@ export type InternalTableProps = Required<Pick<ConfigurableColumnsType, 'visible
|
|
166
177
|
* If filter is only being used for sorting, then send `noop` in this prop
|
167
178
|
*/
|
168
179
|
filter: (row: RowType, filterData: UseFiltersReturnType) => boolean;
|
180
|
+
clearFilters?: () => void;
|
169
181
|
} | {
|
170
182
|
filtersVariant: FiltersTypeEnum.STATE;
|
171
183
|
additionalFilterProps?: AdditionalFilterPropsType<FiltersTypeEnum.STATE>;
|
172
184
|
filter: (row: RowType, filterData: UseFiltersReturnType) => boolean;
|
185
|
+
clearFilters?: never;
|
173
186
|
} | {
|
174
187
|
filtersVariant: FiltersTypeEnum.NONE;
|
175
188
|
additionalFilterProps?: never;
|
176
189
|
filter?: never;
|
190
|
+
clearFilters?: never;
|
191
|
+
}) & ({
|
192
|
+
paginationVariant: PaginationEnum.PAGINATED;
|
193
|
+
pageSizeOptions?: PageSizeOption[];
|
194
|
+
} | {
|
195
|
+
paginationVariant: Omit<PaginationEnum, 'PAGINATED'>;
|
196
|
+
pageSizeOptions?: never;
|
177
197
|
});
|
178
198
|
export type UseResizableTableConfigWrapperProps = Omit<InternalTableProps, 'resizableConfig'>;
|
179
199
|
export type TableWithBulkSelectionProps = Omit<UseResizableTableConfigWrapperProps, 'bulkSelectionReturnValue' | 'handleClearBulkSelection' | 'handleToggleBulkSelectionOnRow'>;
|
180
200
|
export type VisibleColumnsWrapperProps = Omit<TableWithBulkSelectionProps, 'visibleColumns' | 'setVisibleColumns'>;
|
181
201
|
export type FilterWrapperProps = Omit<VisibleColumnsWrapperProps, 'filterData'>;
|
182
|
-
export type TableProps = Pick<FilterWrapperProps, 'additionalFilterProps' | 'bulkSelectionConfig' | 'areColumnsConfigurable' | 'emptyStateConfig' | 'filtersVariant' | 'filter' | 'additionalProps' | 'columns' | 'getRows' | 'rows' | 'paginationVariant' | 'stylesConfig' | 'id' | 'RowActionsOnHoverComponent' | 'loading' | 'ViewWrapper'>;
|
183
|
-
export
|
202
|
+
export type TableProps = Pick<FilterWrapperProps, 'additionalFilterProps' | 'bulkSelectionConfig' | 'areColumnsConfigurable' | 'emptyStateConfig' | 'filtersVariant' | 'filter' | 'additionalProps' | 'columns' | 'getRows' | 'rows' | 'paginationVariant' | 'stylesConfig' | 'id' | 'RowActionsOnHoverComponent' | 'loading' | 'ViewWrapper' | 'pageSizeOptions' | 'clearFilters'>;
|
203
|
+
export type BulkActionStateType = string | null;
|
204
|
+
export interface BulkSelectionActionWidgetProps extends Pick<BulkSelectionConfigType, 'BulkActionsComponent' | 'bulkActionsData'> {
|
184
205
|
count: number;
|
185
206
|
handleClearBulkSelection: () => void;
|
186
207
|
parentRef: React.RefObject<HTMLDivElement>;
|
208
|
+
/** If it is null, we can say no bulk action has been selected yet */
|
209
|
+
setBulkActionState: Dispatch<SetStateAction<BulkActionStateType>>;
|
187
210
|
}
|
188
211
|
export type ConfigurableColumnsConfigType = Record<string, ConfigurableColumnsType['visibleColumns']>;
|
189
212
|
export interface GetFilteringPromiseProps {
|
190
213
|
searchSortTimeoutRef: React.MutableRefObject<number>;
|
191
214
|
callback: () => Promise<RowsType> | RowsType;
|
192
215
|
}
|
216
|
+
export interface TableContentProps extends Pick<InternalTableProps, 'filterData' | 'rows' | 'resizableConfig' | 'additionalProps' | 'visibleColumns' | 'stylesConfig' | 'loading' | 'bulkSelectionConfig' | 'bulkSelectionReturnValue' | 'handleClearBulkSelection' | 'handleToggleBulkSelectionOnRow' | 'paginationVariant' | 'RowActionsOnHoverComponent' | 'pageSizeOptions'> {
|
217
|
+
filteredRows: RowsType;
|
218
|
+
areFilteredRowsLoading: boolean;
|
219
|
+
}
|
193
220
|
export {};
|
@@ -1,6 +1,11 @@
|
|
1
1
|
import { InternalTableProps, RowsType } from './types';
|
2
|
-
declare const useTableWithKeyboardShortcuts: ({ bulkSelectionConfig, handleToggleBulkSelectionOnRow, bulkSelectionReturnValue, }: Pick<InternalTableProps, "bulkSelectionConfig" | "bulkSelectionReturnValue" | "handleToggleBulkSelectionOnRow">, visibleRows: RowsType) => {
|
2
|
+
declare const useTableWithKeyboardShortcuts: ({ bulkSelectionConfig, handleToggleBulkSelectionOnRow, bulkSelectionReturnValue, }: Pick<InternalTableProps, "bulkSelectionConfig" | "bulkSelectionReturnValue" | "handleToggleBulkSelectionOnRow">, visibleRows: RowsType, showPagination: boolean, bulkSelectionButtonRef: React.RefObject<HTMLLabelElement>) => {
|
3
3
|
activeRowIndex: number;
|
4
4
|
setActiveRowIndex: import('react').Dispatch<import('react').SetStateAction<number>>;
|
5
|
+
shortcutContainerProps: {
|
6
|
+
onKeyDown: (event: import('react').KeyboardEvent<HTMLElement>) => void;
|
7
|
+
onKeyUp: (event: import('react').KeyboardEvent<HTMLElement>) => void;
|
8
|
+
onBlur: (event: import('react').FocusEvent<HTMLElement>) => void;
|
9
|
+
};
|
5
10
|
};
|
6
11
|
export default useTableWithKeyboardShortcuts;
|
@@ -4,3 +4,8 @@ export declare const getVisibleColumnsFromLocalStorage: ({ allColumns, id, }: Pi
|
|
4
4
|
export declare const setVisibleColumnsToLocalStorage: ({ id, visibleColumns, }: Pick<ConfigurableColumnsType, "visibleColumns"> & Pick<TableProps, "id">) => void;
|
5
5
|
export declare const getVisibleColumns: ({ areColumnsConfigurable, columns, id, }: Pick<TableProps, "areColumnsConfigurable" | "columns" | "id">) => Column[];
|
6
6
|
export declare const getFilteringPromise: ({ searchSortTimeoutRef, callback }: GetFilteringPromiseProps) => Promise<RowsType>;
|
7
|
+
export declare const getStickyColumnConfig: (gridTemplateColumns: string, columnIndex: number) => {
|
8
|
+
className: string;
|
9
|
+
left: string;
|
10
|
+
};
|
11
|
+
export declare const scrollToShowActiveElementIfNeeded: (activeElement: HTMLDivElement, parent: HTMLDivElement, topMargin: number) => void;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TooltipProps } from '
|
1
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
2
2
|
import { TargetPlatformsDTO } from '../../types';
|
3
3
|
export interface TargetPlatformBadgeListProps extends Required<Pick<TargetPlatformsDTO, 'targetPlatforms'>> {
|
4
4
|
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SourceTypeCardProps } from './types';
|
2
|
-
declare const SourceTypeCard: ({ title, subtitle,
|
2
|
+
declare const SourceTypeCard: ({ title, subtitle, dataTestId, icons, type, disableInfo, disabled, onCardAction, }: SourceTypeCardProps) => JSX.Element;
|
3
3
|
export default SourceTypeCard;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { WorkflowOptionsModalProps } from './types';
|
2
|
-
declare const WorkflowOptionsModal: ({
|
2
|
+
declare const WorkflowOptionsModal: ({ open, addCIPipeline, addWebhookCD, addLinkedCD, showLinkedCDSource, changeCIPayload, workflows, getWorkflows, resetChangeCIPayload, linkedCDSourceVariant, isAppGroup, isTemplateView, onClose, }: Readonly<WorkflowOptionsModalProps>) => JSX.Element;
|
3
3
|
export default WorkflowOptionsModal;
|