@devtron-labs/devtron-fe-common-lib 1.20.6-alpha-93 → 1.20.6-alpha-88
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-5o-s7JEA.js → @code-editor-DVU9sU7X.js} +8361 -8166
- package/dist/{@common-rjsf-DLuKFLV4.js → @common-rjsf-BD0ICu35.js} +22 -22
- package/dist/{@framer-motion-LZK2bgCK.js → @framer-motion-BbD0XILR.js} +61 -61
- package/dist/{@react-dates-CbpfVsC0.js → @react-dates-DLCF81bK.js} +1 -1
- package/dist/{@react-select-BuPEYnTv.js → @react-select-CK9Bxd-k.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-DX7VkyTZ.js → @react-virtualized-sticky-tree-J61SX97M.js} +1 -1
- package/dist/{@vendor-BsABdDGm.js → @vendor-DEAetXNs.js} +13807 -14677
- package/dist/Common/CIPipeline.Types.d.ts +1 -0
- package/dist/Common/Constants.d.ts +7 -1
- package/dist/Common/SegmentedBarChart/types.d.ts +8 -2
- package/dist/Common/SegmentedControl/types.d.ts +1 -1
- package/dist/Common/Types.d.ts +1 -0
- package/dist/Pages/ResourceBrowser/types.d.ts +2 -1
- package/dist/Shared/Components/DatePicker/DayPickerRangeController.d.ts +2 -0
- package/dist/Shared/Components/DatePicker/constants.d.ts +73 -0
- package/dist/Shared/Components/DatePicker/index.d.ts +1 -0
- package/dist/Shared/Components/DatePicker/types.d.ts +12 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +3 -0
- package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +3 -3
- package/dist/Shared/Components/Security/index.d.ts +2 -0
- package/dist/Shared/Components/Security/types.d.ts +10 -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 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -3
- package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -0
- package/dist/Shared/Components/Table/types.d.ts +0 -1
- package/dist/Shared/Helpers.d.ts +0 -9
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +1 -1
- package/dist/Shared/Services/common.service.d.ts +1 -1
- package/dist/Shared/validations.d.ts +1 -1
- package/dist/assets/ic-binoculars.c6ad42f4.svg +3 -0
- package/dist/assets/ic-enter-fullscreen.ccb625cf.svg +3 -0
- package/dist/assets/ic-exit-fullscreen.75ef3789.svg +3 -0
- package/dist/index.js +813 -801
- package/package.json +1 -3
|
@@ -289,6 +289,7 @@ export interface TaskErrorObj {
|
|
|
289
289
|
name: ErrorObj;
|
|
290
290
|
inlineStepDetail?: StepDetailTaskErrorObj;
|
|
291
291
|
pluginRefStepDetail?: StepDetailTaskErrorObj;
|
|
292
|
+
outputDirectoryPath?: ErrorObj[];
|
|
292
293
|
}
|
|
293
294
|
export interface FormErrorObjectType {
|
|
294
295
|
name: ErrorObj;
|
|
@@ -86,7 +86,10 @@ export declare const URLS: {
|
|
|
86
86
|
readonly COST_CONFIGURATIONS: "/cost-visibility/configurations";
|
|
87
87
|
readonly SECURITY_CENTER: "/security-center";
|
|
88
88
|
readonly SECURITY_CENTER_OVERVIEW: "/security-center/overview";
|
|
89
|
-
readonly
|
|
89
|
+
readonly SECURITY_CENTER_VULNERABILITIES: "/security-center/vulnerabilities";
|
|
90
|
+
readonly SECURITY_CENTER_VULNERABILITY_DEPLOYMENTS: "/security-center/vulnerabilities/deployments";
|
|
91
|
+
readonly SECURITY_CENTER_VULNERABILITY_CVES: "/security-center/vulnerabilities/cves";
|
|
92
|
+
readonly SECURITY_CENTER_SECURITY_ENABLEMENT: "/security-center/security-enablement";
|
|
90
93
|
readonly SECURITY_CENTER_POLICIES: "/security-center/policies";
|
|
91
94
|
readonly AUTOMATION_AND_ENABLEMENT: "/automation-and-enablement";
|
|
92
95
|
readonly AUTOMATION_AND_ENABLEMENT_JOB: "/automation-and-enablement/job";
|
|
@@ -105,6 +108,9 @@ export declare const URLS: {
|
|
|
105
108
|
readonly AI_RECOMMENDATIONS: "/ai-recommendations";
|
|
106
109
|
readonly AI_RECOMMENDATIONS_OVERVIEW: "/ai-recommendations/overview";
|
|
107
110
|
readonly EXTERNAL_APPS: "ea";
|
|
111
|
+
readonly OBSERVABILITY: "/observability";
|
|
112
|
+
readonly OBSERVABILITY_OVERVIEW: "/observability/overview";
|
|
113
|
+
readonly OBSERVABILITY_CUSTOMER_LIST: "/observability/tenants";
|
|
108
114
|
};
|
|
109
115
|
export declare const ROUTES: {
|
|
110
116
|
readonly APP: "app";
|
|
@@ -13,14 +13,20 @@ type EntityPropType = {
|
|
|
13
13
|
label?: never;
|
|
14
14
|
}>[];
|
|
15
15
|
};
|
|
16
|
+
type ProportionalType = {
|
|
17
|
+
isProportional?: true;
|
|
18
|
+
hideTotal?: boolean;
|
|
19
|
+
} | {
|
|
20
|
+
isProportional?: false | never;
|
|
21
|
+
hideTotal?: never;
|
|
22
|
+
};
|
|
16
23
|
export type SegmentedBarChartProps = {
|
|
17
24
|
rootClassName?: string;
|
|
18
25
|
countClassName?: string;
|
|
19
26
|
labelClassName?: string;
|
|
20
|
-
isProportional?: boolean;
|
|
21
27
|
swapLegendAndBar?: boolean;
|
|
22
28
|
showAnimationOnBar?: boolean;
|
|
23
29
|
isLoading?: boolean;
|
|
24
30
|
size?: ComponentSizeType;
|
|
25
|
-
} & EntityPropType;
|
|
31
|
+
} & EntityPropType & ProportionalType;
|
|
26
32
|
export {};
|
|
@@ -53,7 +53,7 @@ export type SegmentedControlProps<T = string | number> = {
|
|
|
53
53
|
* Please make sure this is unique
|
|
54
54
|
*/
|
|
55
55
|
name: string;
|
|
56
|
-
size?: Extract<ComponentSizeType, ComponentSizeType.xs | ComponentSizeType.small | ComponentSizeType.medium>;
|
|
56
|
+
size?: Extract<ComponentSizeType, ComponentSizeType.xs | ComponentSizeType.small | ComponentSizeType.medium | ComponentSizeType.large>;
|
|
57
57
|
fullWidth?: boolean;
|
|
58
58
|
disabled?: boolean;
|
|
59
59
|
} & ({
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DatePickerRangeControllerProps } from './types';
|
|
2
|
+
export declare const DatePickerRangeController: ({ handlePredefinedRange, handleApply, calendar, calendarInputs, handleDateInput, handleDatesChange, calendarValue, focusedInput, handleFocusChange, }: DatePickerRangeControllerProps) => JSX.Element;
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
import { default as moment } from 'moment';
|
|
2
|
+
export declare const selectedStyles: {
|
|
3
|
+
background: string;
|
|
4
|
+
color: string;
|
|
5
|
+
hover: {
|
|
6
|
+
background: string;
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const selectedSpanStyles: {
|
|
11
|
+
background: string;
|
|
12
|
+
color: string;
|
|
13
|
+
hover: {
|
|
14
|
+
background: string;
|
|
15
|
+
color: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const hoveredSpanStyles: {
|
|
19
|
+
background: string;
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
1
22
|
export declare const customDayStyles: {
|
|
2
23
|
selectedStartStyles: {
|
|
3
24
|
background: string;
|
|
@@ -132,3 +153,55 @@ export declare const DATE_PICKER_IDS: {
|
|
|
132
153
|
MONTH: string;
|
|
133
154
|
TIME: string;
|
|
134
155
|
};
|
|
156
|
+
export declare const styles: {
|
|
157
|
+
PresetDateRangePicker_panel: {
|
|
158
|
+
padding: string;
|
|
159
|
+
width: string;
|
|
160
|
+
height: string;
|
|
161
|
+
};
|
|
162
|
+
PresetDateRangePicker_button: {
|
|
163
|
+
width: string;
|
|
164
|
+
background: string;
|
|
165
|
+
border: string;
|
|
166
|
+
color: string;
|
|
167
|
+
padding: string;
|
|
168
|
+
font: string;
|
|
169
|
+
fontWeight: number;
|
|
170
|
+
lineHeight: string;
|
|
171
|
+
overflow: string;
|
|
172
|
+
cursor: string;
|
|
173
|
+
':active': {
|
|
174
|
+
outline: number;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
DayPicker__horizontal: {
|
|
178
|
+
borderRadius: string;
|
|
179
|
+
};
|
|
180
|
+
PresetDateRangePicker_button__selected: {
|
|
181
|
+
color: string;
|
|
182
|
+
fontWeight: number;
|
|
183
|
+
background: string;
|
|
184
|
+
outline: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
export declare const DayPickerCalendarInfoHorizontal: {
|
|
188
|
+
width: string;
|
|
189
|
+
boxShadow: string;
|
|
190
|
+
};
|
|
191
|
+
export declare const DayPickerRangeControllerPresets: {
|
|
192
|
+
text: string;
|
|
193
|
+
endDate: moment.Moment;
|
|
194
|
+
startDate: moment.Moment;
|
|
195
|
+
endStr: string;
|
|
196
|
+
}[];
|
|
197
|
+
/**
|
|
198
|
+
* Returns a string representing the range of dates
|
|
199
|
+
* given by the start and end dates. If the end date
|
|
200
|
+
* is 'now' and the start date includes 'now',
|
|
201
|
+
* it will return the corresponding range from the
|
|
202
|
+
* DayPickerRangeControllerPresets array.
|
|
203
|
+
* @param startDateStr - the start date string
|
|
204
|
+
* @param endDateStr - the end date string
|
|
205
|
+
* @returns - a string representing the range of dates
|
|
206
|
+
*/
|
|
207
|
+
export declare function getCalendarValue(startDateStr: string, endDateStr: string): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './constants';
|
|
2
2
|
export { default as DateTimePicker } from './DateTimePicker';
|
|
3
|
+
export { DatePickerRangeController } from './DayPickerRangeController';
|
|
3
4
|
export * from './MonthlySelect';
|
|
4
5
|
export { default as SingleDatePickerComponent } from './SingleDatePickerComponent';
|
|
5
6
|
export * from './TimeSelect';
|
|
@@ -119,3 +119,15 @@ export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'tim
|
|
|
119
119
|
*/
|
|
120
120
|
onChange: (date: Date) => void;
|
|
121
121
|
}
|
|
122
|
+
export interface DatePickerRangeControllerProps {
|
|
123
|
+
calendar: any;
|
|
124
|
+
calendarInputs: any;
|
|
125
|
+
focusedInput: any;
|
|
126
|
+
handleFocusChange: any;
|
|
127
|
+
handleDatesChange: any;
|
|
128
|
+
handleCalendarInputs?: any;
|
|
129
|
+
calendarValue: string;
|
|
130
|
+
handlePredefinedRange: (start: Moment, end: Moment, endStr: string) => void;
|
|
131
|
+
handleDateInput: (key: 'startDate' | 'endDate', value: string) => void;
|
|
132
|
+
handleApply: (...args: any[]) => void;
|
|
133
|
+
}
|
|
@@ -47,6 +47,7 @@ export declare const iconMap: {
|
|
|
47
47
|
'ic-bg-storage-locations': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
48
48
|
'ic-bg-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
49
49
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
50
|
+
'ic-binoculars': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
50
51
|
'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
51
52
|
'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
52
53
|
'ic-bot': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -118,12 +119,14 @@ export declare const iconMap: {
|
|
|
118
119
|
'ic-edit-lines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
119
120
|
'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
120
121
|
'ic-email': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
122
|
+
'ic-enter-fullscreen': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
121
123
|
'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
122
124
|
'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
123
125
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
124
126
|
'ic-environment-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
125
127
|
'ic-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
126
128
|
'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
129
|
+
'ic-exit-fullscreen': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
127
130
|
'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
128
131
|
'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
129
132
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -17,7 +17,7 @@ export declare const SUB_CATEGORY_LABELS: {
|
|
|
17
17
|
readonly MISCONFIGURATIONS: "Misconfigurations";
|
|
18
18
|
readonly EXPOSED_SECRETS: "Exposed Secrets";
|
|
19
19
|
};
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const SEVERITIES_LABEL_COLOR_MAP: {
|
|
21
21
|
readonly critical: {
|
|
22
22
|
readonly label: "Critical";
|
|
23
23
|
readonly color: "var(--R700)";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { getProgressingStateForStatus, getSecurityModalSidebarChildFromId, getSecurityModalSidebarId, getSidebarData, } from './config';
|
|
2
|
-
export { CATEGORY_LABELS } from './constants';
|
|
2
|
+
export { CATEGORY_LABELS, SEVERITIES_LABEL_COLOR_MAP } from './constants';
|
|
3
3
|
export { default as SecurityModal } from './SecurityModal';
|
|
4
4
|
export { getSecurityScan } from './service';
|
|
5
5
|
export type { GetResourceScanDetailsPayloadType, GetResourceScanDetailsResponseType, ScanResultDTO, SidebarDataChildType, SidebarPropsType, } from './types';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SEVERITIES_LABEL_COLOR_MAP } from './constants';
|
|
2
2
|
import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
|
|
3
|
-
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof
|
|
3
|
+
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES_LABEL_COLOR_MAP, number>>) => {
|
|
4
4
|
color: "var(--Y500)" | "var(--R700)" | "var(--R500)" | "var(--G500)" | "var(--N300)" | "var(--O500)";
|
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
|
6
6
|
value: number;
|
|
7
7
|
}[];
|
|
8
|
-
export declare const stringifySeverities: (severities: Partial<Record<keyof typeof
|
|
8
|
+
export declare const stringifySeverities: (severities: Partial<Record<keyof typeof SEVERITIES_LABEL_COLOR_MAP, number>>) => string;
|
|
9
9
|
export declare const getSeverityWeight: (severity: SeveritiesDTO) => number;
|
|
10
10
|
export declare const compareSeverity: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
|
11
11
|
export declare const getSecurityScanSeveritiesCount: (data: ScanResultDTO) => {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { SEVERITY_LABEL_MAP } from './constants';
|
|
2
2
|
export * from './SecurityDetailsCards';
|
|
3
3
|
export * from './SecurityModal';
|
|
4
|
+
export { default as SeverityChip } from './SeverityChip';
|
|
5
|
+
export { FixAvailabilityOptions, VulnerabilityDiscoveryAgeOptions } from './types';
|
|
4
6
|
export * from './utils';
|
|
5
7
|
export * from './Vulnerabilities';
|
|
@@ -20,4 +20,14 @@ export interface GetSidebarDataParamsType extends Record<ScanCategoriesWithLicen
|
|
|
20
20
|
selectedId: string;
|
|
21
21
|
scanResult: ScanResultDTO;
|
|
22
22
|
}
|
|
23
|
+
export declare enum VulnerabilityDiscoveryAgeOptions {
|
|
24
|
+
LESS_THAN_30_DAYS = "lt_30d",
|
|
25
|
+
BETWEEN_30_AND_60_DAYS = "30_60d",
|
|
26
|
+
BETWEEN_60_AND_90_DAYS = "60_90d",
|
|
27
|
+
GREATER_THAN_90_DAYS = "gt_90d"
|
|
28
|
+
}
|
|
29
|
+
export declare enum FixAvailabilityOptions {
|
|
30
|
+
FIX_AVAILABLE = "fixAvailable",
|
|
31
|
+
FIX_NOT_AVAILABLE = "fixNotAvailable"
|
|
32
|
+
}
|
|
23
33
|
export {};
|
|
@@ -133,5 +133,5 @@ import { SelectPickerProps } from './type';
|
|
|
133
133
|
* />
|
|
134
134
|
* ```
|
|
135
135
|
*/
|
|
136
|
-
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, keyboardShortcut, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis,
|
|
136
|
+
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, keyboardShortcut, 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: _closeMenuOnSelect, shouldShowNoOptionsMessage, shouldRenderTextArea, onKeyDown, shouldHideMenu, warningText, layout, ariaLabel, borderConfig, borderRadiusConfig, labelTippyCustomizedConfig, labelTooltipConfig, hideFormFieldInfo, autoFocus, showCheckboxForMultiSelect, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
|
137
137
|
export default SelectPicker;
|
|
@@ -7,7 +7,7 @@ export declare const SelectPickerClearIndicator: <OptionValue>(props: ClearIndic
|
|
|
7
7
|
export declare const SelectPickerControl: <OptionValue>(props: ControlProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
8
8
|
export declare const SelectPickerInput: <OptionValue>(props: InputProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
9
9
|
export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "showSelectedOptionsCount" | "customSelectedOptionsCount">) => JSX.Element;
|
|
10
|
-
export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis,
|
|
10
|
+
export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
|
|
11
11
|
export declare const SelectPickerMenuListFooter: ({ menuListFooterConfig, }: Required<Pick<SelectPickerProps, "menuListFooterConfig">>) => JSX.Element;
|
|
12
12
|
export declare const SelectPickerMenuList: <OptionValue>(props: MenuListProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
13
13
|
export declare const SelectPickerMultiValue: <OptionValue, IsMulti extends boolean>({ getIsOptionValid, ...props }: MultiValueProps<SelectPickerOptionType<OptionValue>, true> & Pick<SelectPickerProps<OptionValue, IsMulti>["multiSelectProps"], "getIsOptionValid">) => JSX.Element;
|
|
@@ -4,4 +4,4 @@ export * from './GroupedFilterSelectPicker';
|
|
|
4
4
|
export { default as SelectPicker } from './SelectPicker.component';
|
|
5
5
|
export * from './SelectPickerTextArea.component';
|
|
6
6
|
export * from './type';
|
|
7
|
-
export { getSelectPickerOptionByValue } from './utils';
|
|
7
|
+
export { getSelectPickerOptionByValue, getSelectPickerOptionsByValue } from './utils';
|
|
@@ -206,7 +206,6 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
206
206
|
shouldHideMenu?: boolean;
|
|
207
207
|
} & (IsMulti extends true ? {
|
|
208
208
|
isMulti: IsMulti | boolean;
|
|
209
|
-
isUserIdentifier?: boolean;
|
|
210
209
|
multiSelectProps?: Partial<Pick<SelectProps<OptionValue, IsMulti>, 'customDisplayText'>> & {
|
|
211
210
|
/**
|
|
212
211
|
* If true, the group heading can be selected
|
|
@@ -224,12 +223,11 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
224
223
|
} : {
|
|
225
224
|
isMulti?: never;
|
|
226
225
|
multiSelectProps?: never;
|
|
227
|
-
isUserIdentifier?: never;
|
|
228
226
|
});
|
|
229
227
|
export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
|
|
230
228
|
isGroupHeadingSelectable: boolean;
|
|
231
229
|
};
|
|
232
|
-
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'
|
|
230
|
+
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'> {
|
|
233
231
|
appliedFilterOptions: SelectPickerOptionType[];
|
|
234
232
|
handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
|
|
235
233
|
}
|
|
@@ -13,3 +13,4 @@ export declare const getGroupCheckboxValue: <OptionValue>(groupHeadingOptions: r
|
|
|
13
13
|
* @returns The matched option or the default option if no match is found.
|
|
14
14
|
*/
|
|
15
15
|
export declare const getSelectPickerOptionByValue: <OptionValue>(optionsList: OptionsOrGroups<SelectPickerOptionType<OptionValue>, GroupBase<SelectPickerOptionType<OptionValue>>>, value: OptionValue, defaultOption?: SelectPickerOptionType<OptionValue>, getOptionValue?: SelectPickerProps<OptionValue>["getOptionValue"]) => SelectPickerOptionType<OptionValue>;
|
|
16
|
+
export declare const getSelectPickerOptionsByValue: <OptionValue>(optionsList: OptionsOrGroups<SelectPickerOptionType<OptionValue>, GroupBase<SelectPickerOptionType<OptionValue>>>, values: OptionValue[]) => SelectPickerOptionType<OptionValue>[];
|
|
@@ -91,7 +91,6 @@ export interface BulkOperationModalProps<T extends string = string, RowData exte
|
|
|
91
91
|
type BulkSelectionConfigType = Pick<UseBulkSelectionProps<unknown>, 'getSelectAllDialogStatus'> & {
|
|
92
92
|
BulkActionsComponent: FunctionComponent<BulkActionsComponentProps>;
|
|
93
93
|
BulkOperationModal: FunctionComponent<BulkOperationModalProps>;
|
|
94
|
-
disableSelectAllAcrossEvenIfPaginated?: boolean;
|
|
95
94
|
} & Pick<BulkActionsComponentProps, 'bulkActionsData'> & Pick<BulkOperationModalProps, 'bulkOperationModalData'>;
|
|
96
95
|
export declare enum PaginationEnum {
|
|
97
96
|
PAGINATED = "paginated",
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -105,13 +105,4 @@ export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPos
|
|
|
105
105
|
export declare const getGroupVersionFromApiVersion: (apiVersion: string) => Pick<Node, "group" | "version">;
|
|
106
106
|
export declare const YAMLtoJSON: (yamlString: string) => string;
|
|
107
107
|
export declare const formatNumberToCurrency: (value: number, currency: string, minimumFractionDigits?: number) => string;
|
|
108
|
-
/**
|
|
109
|
-
* Returns the human readable explanation of the expression
|
|
110
|
-
* NOTE: expectation is that the expression is valid
|
|
111
|
-
*
|
|
112
|
-
* @throws Error - if given expression is incorrect
|
|
113
|
-
* @param expression
|
|
114
|
-
* @returns string - helper text explaining the expression in a human readable format
|
|
115
|
-
*/
|
|
116
|
-
export declare const explainCronExpression: (expression: string) => string;
|
|
117
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-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | '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-
|
|
4
|
+
export type NavigationItemID = 'application-management-overview' | 'application-management-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | '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-vulnerabilities' | 'security-center-security-enablement' | '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;
|
|
@@ -5,5 +5,5 @@ export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, qu
|
|
|
5
5
|
export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
|
|
6
6
|
export declare const saveCDPipeline: (request: any, { isTemplateView }: Required<Pick<AppConfigProps, "isTemplateView">>) => Promise<import('../../Common').ResponseType<any>>;
|
|
7
7
|
export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
|
|
8
|
-
export declare const getClusterOptions: (
|
|
8
|
+
export declare const getClusterOptions: () => Promise<ClusterType[]>;
|
|
9
9
|
export declare const getAllClusterListMin: (signal: AbortSignal) => Promise<import('../../Common').ResponseType<AllClusterListMinItemDTO[]>>;
|
|
@@ -61,4 +61,4 @@ export declare const validateCMVolumeMountPath: (value: string) => {
|
|
|
61
61
|
export declare const validateYAML: (yamlString: string, isRequired?: boolean) => ValidationResponseType;
|
|
62
62
|
export declare const validateEmail: (email: string) => ValidationResponseType;
|
|
63
63
|
export declare const getIsRegexValid: (regexString: string) => ValidationResponseType;
|
|
64
|
-
export declare const validateCronExpression: (
|
|
64
|
+
export declare const validateCronExpression: (cron: string) => ValidationResponseType;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2
|
+
<path d="M9.75 8.24978H14.25M21.5241 14.4673L17.4319 5.15603C17.0099 4.7341 16.4376 4.49707 15.8409 4.49707C15.2442 4.49707 14.672 4.7341 14.25 5.15603V15.7498M14.25 15.7498C14.25 17.8208 15.9289 19.4998 18 19.4998C20.0711 19.4998 21.75 17.8208 21.75 15.7498C21.75 13.6787 20.0711 11.9998 18 11.9998C15.9289 11.9998 14.25 13.6787 14.25 15.7498ZM9.75 15.7498V5.15603C9.32805 4.7341 8.75577 4.49707 8.15906 4.49707C7.56235 4.49707 6.99008 4.7341 6.56812 5.15603L2.47594 14.4673M9.75 15.7498C9.75 17.8208 8.07107 19.4998 6 19.4998C3.92893 19.4998 2.25 17.8208 2.25 15.7498C2.25 13.6787 3.92893 11.9998 6 11.9998C8.07107 11.9998 9.75 13.6787 9.75 15.7498Z" stroke="#3B444C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2
|
+
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 4.5h4.5m0 0V9m0-4.5-5.25 5.25M9 19.5H4.5m0 0V15m0 4.5 5.25-5.25" vector-effect="non-scaling-stroke"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2
|
+
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M14.25 5.25v4.5m0 0h4.5m-4.5 0L19.5 4.5M5.25 14.25h4.5m0 0v4.5m0-4.5L4.5 19.5" vector-effect="non-scaling-stroke"/>
|
|
3
|
+
</svg>
|