@devtron-labs/devtron-fe-common-lib 0.0.94-beta-4 → 0.0.95-beta-1
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/Common/Api.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -0
- package/dist/Common/BreadCrumb/Types.d.ts +4 -0
- package/dist/Common/Checkbox.d.ts +1 -1
- package/dist/Common/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +1 -1
- package/dist/Common/Common.service.d.ts +1 -1
- package/dist/Common/Constants.d.ts +2 -3
- package/dist/Common/CustomTagSelector/Types.d.ts +1 -1
- package/dist/Common/Dialogs/DeleteDialog.d.ts +1 -1
- package/dist/Common/Dialogs/DialogForm.d.ts +1 -1
- package/dist/Common/Helper.d.ts +2 -2
- package/dist/Common/Hooks/useStateFilters/types.d.ts +4 -1
- package/dist/Common/Modals/Modal.d.ts +1 -1
- package/dist/Common/MultiSelectCustomization.d.ts +8 -0
- package/dist/Common/Policy.Types.d.ts +1 -1
- package/dist/Common/RJSF/config.d.ts +1 -1
- package/dist/Common/RJSF/types.d.ts +1 -1
- package/dist/Common/RJSF/utils.d.ts +1 -1
- package/dist/Common/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/Common/Reload.d.ts +0 -3
- package/dist/Common/ResizableTextarea.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +4 -0
- package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +1 -1
- package/dist/Common/Select/Select.d.ts +1 -1
- package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -1
- package/dist/Common/SortableTableHeaderCell/types.d.ts +5 -0
- package/dist/Common/Types.d.ts +4 -4
- package/dist/Common/index.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +3 -3
- package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +2 -0
- package/dist/Shared/API/APIQueuing.d.ts +11 -0
- package/dist/Shared/API/index.d.ts +1 -0
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/service.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +3 -3
- package/dist/Shared/Components/DatePicker/DateTimePicker.d.ts +4 -0
- package/dist/Shared/Components/DatePicker/MonthlySelect.d.ts +3 -0
- package/dist/Shared/Components/DatePicker/SingleDatePickerComponent.d.ts +12 -0
- package/dist/Shared/Components/DatePicker/TimeSelect.d.ts +3 -0
- package/dist/Shared/Components/DatePicker/constants.d.ts +143 -0
- package/dist/Shared/Components/DatePicker/index.d.ts +7 -0
- package/dist/Shared/Components/DatePicker/types.d.ts +124 -0
- package/dist/Shared/Components/DatePicker/utils.d.ts +46 -0
- package/dist/Shared/Components/EnvironmentSelector/EnvironmentSelector.component.d.ts +4 -0
- package/dist/Shared/Components/EnvironmentSelector/constants.d.ts +5 -0
- package/dist/Shared/Components/EnvironmentSelector/index.d.ts +1 -0
- package/dist/Shared/Components/EnvironmentSelector/service.d.ts +3 -0
- package/dist/Shared/Components/EnvironmentSelector/types.d.ts +27 -0
- package/dist/Shared/Components/EnvironmentSelector/utils.d.ts +6 -0
- package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
- package/dist/Shared/Components/Header/service.d.ts +1 -1
- package/dist/Shared/Components/ImageCard/types.d.ts +2 -2
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +2 -2
- package/dist/Shared/Components/ReactSelect/constants.d.ts +14 -0
- package/dist/Shared/Components/ReactSelect/index.d.ts +1 -0
- package/dist/Shared/Components/ReactSelect/utils.d.ts +4 -0
- package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +2 -4
- package/dist/Shared/Helpers.d.ts +3 -3
- package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +2 -2
- package/dist/Shared/Services/index.d.ts +0 -2
- package/dist/Shared/Services/types.d.ts +1 -1
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +46 -4
- package/dist/assets/index.css +1 -1
- package/dist/assets/{yaml.worker-632eebb8.js → yaml.worker-9ae72aad.js} +237 -236
- package/dist/{cssMode-b6f0ce28.js → cssMode-dfb0d982.js} +1 -1
- package/dist/{freemarker2-89c73b42.js → freemarker2-d08834c8.js} +1 -1
- package/dist/{handlebars-7036ebc3.js → handlebars-76f68555.js} +1 -1
- package/dist/{html-58c5c2ae.js → html-c8c86592.js} +1 -1
- package/dist/{htmlMode-055f30ba.js → htmlMode-caf65bab.js} +1 -1
- package/dist/{index-fbb83f4c.js → index-0a351b25.js} +75307 -59851
- package/dist/index.js +423 -407
- package/dist/{javascript-af328488.js → javascript-0d05c53f.js} +1 -1
- package/dist/{jsonMode-451249f8.js → jsonMode-c2d78321.js} +1 -1
- package/dist/{liquid-83f9886e.js → liquid-5a4a3c98.js} +1 -1
- package/dist/{mdx-c5de7484.js → mdx-98abe49f.js} +1 -1
- package/dist/{python-c8f245d5.js → python-94dc2257.js} +1 -1
- package/dist/{razor-64a81ed9.js → razor-98cbd621.js} +1 -1
- package/dist/{tsMode-7279b789.js → tsMode-603375d4.js} +1 -1
- package/dist/{typescript-a7692d5c.js → typescript-bf86c918.js} +1 -1
- package/dist/{xml-d9b2bff0.js → xml-10f7c255.js} +1 -1
- package/dist/{yaml-a2b5d521.js → yaml-f13d0768.js} +1 -1
- package/package.json +3 -2
- package/dist/Shared/Components/ArtifactInfoModal/ArtifactInfoModal.component.d.ts +0 -4
- package/dist/Shared/Components/ArtifactInfoModal/index.d.ts +0 -2
- package/dist/Shared/Components/ArtifactInfoModal/types.d.ts +0 -15
- package/dist/Shared/Components/CommitChipCell/CommitChipCell.d.ts +0 -4
- package/dist/Shared/Components/CommitChipCell/index.d.ts +0 -2
- package/dist/Shared/Components/CommitChipCell/types.d.ts +0 -6
- package/dist/Shared/Components/ImageChipCell/ImageChipCell.component.d.ts +0 -4
- package/dist/Shared/Components/ImageChipCell/index.d.ts +0 -2
- package/dist/Shared/Components/ImageChipCell/types.d.ts +0 -9
- package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +0 -4
- package/dist/Shared/Components/MaterialHistory/index.d.ts +0 -2
- package/dist/Shared/Components/MaterialHistory/types.d.ts +0 -8
- package/dist/Shared/Services/app.service.d.ts +0 -7
- package/dist/Shared/Services/app.types.d.ts +0 -95
- package/dist/Shared/Services/utils.d.ts +0 -3
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export declare const customDayStyles: {
|
|
2
|
+
selectedStartStyles: {
|
|
3
|
+
background: string;
|
|
4
|
+
color: string;
|
|
5
|
+
hover: {
|
|
6
|
+
background: string;
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
selectedEndStyles: {
|
|
11
|
+
background: string;
|
|
12
|
+
color: string;
|
|
13
|
+
hover: {
|
|
14
|
+
background: string;
|
|
15
|
+
color: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
hoveredSpanStyles: {
|
|
19
|
+
background: string;
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
22
|
+
selectedSpanStyles: {
|
|
23
|
+
background: string;
|
|
24
|
+
color: string;
|
|
25
|
+
hover: {
|
|
26
|
+
background: string;
|
|
27
|
+
color: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
selectedStyles: {
|
|
31
|
+
background: string;
|
|
32
|
+
color: string;
|
|
33
|
+
hover: {
|
|
34
|
+
background: string;
|
|
35
|
+
color: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
border: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const MONTHLY_DATES_CONFIG: {
|
|
41
|
+
'Day 1': string;
|
|
42
|
+
'Day 2': string;
|
|
43
|
+
'Day 3': string;
|
|
44
|
+
'Day 4': string;
|
|
45
|
+
'Day 5': string;
|
|
46
|
+
'Day 6': string;
|
|
47
|
+
'Day 7': string;
|
|
48
|
+
'Day 8': string;
|
|
49
|
+
'Day 9': string;
|
|
50
|
+
'Day 10': string;
|
|
51
|
+
'Day 11': string;
|
|
52
|
+
'Day 12': string;
|
|
53
|
+
'Day 13': string;
|
|
54
|
+
'Day 14': string;
|
|
55
|
+
'Day 15': string;
|
|
56
|
+
'Day 16': string;
|
|
57
|
+
'Day 17': string;
|
|
58
|
+
'Day 18': string;
|
|
59
|
+
'Day 19': string;
|
|
60
|
+
'Day 20': string;
|
|
61
|
+
'Day 21': string;
|
|
62
|
+
'Day 22': string;
|
|
63
|
+
'Day 23': string;
|
|
64
|
+
'Day 24': string;
|
|
65
|
+
'Day 25': string;
|
|
66
|
+
'Day 26': string;
|
|
67
|
+
'Day 27': string;
|
|
68
|
+
'Day 28': string;
|
|
69
|
+
'Third Last Day': string;
|
|
70
|
+
'Second Last Day': string;
|
|
71
|
+
'Last Day': string;
|
|
72
|
+
};
|
|
73
|
+
export declare const TIME_OPTIONS_CONFIG: {
|
|
74
|
+
'12:00 AM': string;
|
|
75
|
+
'12:30 AM': string;
|
|
76
|
+
'01:00 AM': string;
|
|
77
|
+
'01:30 AM': string;
|
|
78
|
+
'02:00 AM': string;
|
|
79
|
+
'02:30 AM': string;
|
|
80
|
+
'03:00 AM': string;
|
|
81
|
+
'03:30 AM': string;
|
|
82
|
+
'04:00 AM': string;
|
|
83
|
+
'04:30 AM': string;
|
|
84
|
+
'05:00 AM': string;
|
|
85
|
+
'05:30 AM': string;
|
|
86
|
+
'06:00 AM': string;
|
|
87
|
+
'06:30 AM': string;
|
|
88
|
+
'07:00 AM': string;
|
|
89
|
+
'07:30 AM': string;
|
|
90
|
+
'08:00 AM': string;
|
|
91
|
+
'08:30 AM': string;
|
|
92
|
+
'09:00 AM': string;
|
|
93
|
+
'09:30 AM': string;
|
|
94
|
+
'10:00 AM': string;
|
|
95
|
+
'10:30 AM': string;
|
|
96
|
+
'11:00 AM': string;
|
|
97
|
+
'11:30 AM': string;
|
|
98
|
+
'12:00 PM': string;
|
|
99
|
+
'12:30 PM': string;
|
|
100
|
+
'01:00 PM': string;
|
|
101
|
+
'01:30 PM': string;
|
|
102
|
+
'02:00 PM': string;
|
|
103
|
+
'02:30 PM': string;
|
|
104
|
+
'03:00 PM': string;
|
|
105
|
+
'03:30 PM': string;
|
|
106
|
+
'04:00 PM': string;
|
|
107
|
+
'04:30 PM': string;
|
|
108
|
+
'05:00 PM': string;
|
|
109
|
+
'05:30 PM': string;
|
|
110
|
+
'06:00 PM': string;
|
|
111
|
+
'06:30 PM': string;
|
|
112
|
+
'07:00 PM': string;
|
|
113
|
+
'07:30 PM': string;
|
|
114
|
+
'08:00 PM': string;
|
|
115
|
+
'08:30 PM': string;
|
|
116
|
+
'09:00 PM': string;
|
|
117
|
+
'09:30 PM': string;
|
|
118
|
+
'10:00 PM': string;
|
|
119
|
+
'10:30 PM': string;
|
|
120
|
+
'11:00 PM': string;
|
|
121
|
+
'11:30 PM': string;
|
|
122
|
+
};
|
|
123
|
+
export declare const DATE_PICKER_PLACEHOLDER: {
|
|
124
|
+
DATE: string;
|
|
125
|
+
TIME: string;
|
|
126
|
+
MONTH: string;
|
|
127
|
+
DEFAULT_TIME: string;
|
|
128
|
+
DEFAULT_MONTHLY_DATE: string;
|
|
129
|
+
};
|
|
130
|
+
export declare const DATE_PICKER_IDS: {
|
|
131
|
+
DATE: string;
|
|
132
|
+
MONTH: string;
|
|
133
|
+
TIME: string;
|
|
134
|
+
};
|
|
135
|
+
export declare const reactSelectStyles: {
|
|
136
|
+
container: (base: any) => any;
|
|
137
|
+
control: (base: any, state: any) => any;
|
|
138
|
+
valueContainer: (base: any) => any;
|
|
139
|
+
input: (base: any) => any;
|
|
140
|
+
dropdownIndicator: (base: any, state: any) => any;
|
|
141
|
+
option: (base: any) => any;
|
|
142
|
+
menuList: (base: any) => any;
|
|
143
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as SingleDatePickerComponent } from './SingleDatePickerComponent';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export * from './MonthlySelect';
|
|
4
|
+
export * from './TimeSelect';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export * from './constants';
|
|
7
|
+
export { default as DateTimePicker } from './DateTimePicker';
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Moment } from 'moment';
|
|
2
|
+
import { SelectInstance } from 'react-select';
|
|
3
|
+
import { OptionType } from '../../../Common';
|
|
4
|
+
|
|
5
|
+
export interface SingleDatePickerProps {
|
|
6
|
+
/**
|
|
7
|
+
* Date value to be displayed
|
|
8
|
+
*/
|
|
9
|
+
date: Moment;
|
|
10
|
+
/**
|
|
11
|
+
* Function to handle date change
|
|
12
|
+
*/
|
|
13
|
+
handleDatesChange: (e: any) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Value to make date picker read only
|
|
16
|
+
*/
|
|
17
|
+
readOnly?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Value to block today's date
|
|
20
|
+
*/
|
|
21
|
+
isTodayBlocked?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Value to block today's date
|
|
24
|
+
*/
|
|
25
|
+
datePickerProps?: any;
|
|
26
|
+
/**
|
|
27
|
+
* Display format for the date
|
|
28
|
+
*/
|
|
29
|
+
displayFormat?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Data test id for date picker
|
|
32
|
+
*/
|
|
33
|
+
dataTestId?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface MonthlySelectProps extends Pick<SingleDatePickerProps, 'dataTestId'> {
|
|
36
|
+
/**
|
|
37
|
+
* Current selected date object
|
|
38
|
+
*
|
|
39
|
+
* @default 'new Date()'
|
|
40
|
+
*/
|
|
41
|
+
selectedMonthlyDate: OptionType;
|
|
42
|
+
/**
|
|
43
|
+
* Onchange handle picker type
|
|
44
|
+
*/
|
|
45
|
+
onChange?: (event: any) => void;
|
|
46
|
+
}
|
|
47
|
+
export interface TimeSelectProps {
|
|
48
|
+
/**
|
|
49
|
+
* Current selected date object
|
|
50
|
+
*
|
|
51
|
+
* @default 'new Date()'
|
|
52
|
+
*/
|
|
53
|
+
date?: Date;
|
|
54
|
+
/**
|
|
55
|
+
* Handler for updating the date from the parent component
|
|
56
|
+
*/
|
|
57
|
+
onChange: (date: Date) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Props for the time picker
|
|
60
|
+
*/
|
|
61
|
+
timePickerProps?: SelectInstance;
|
|
62
|
+
/**
|
|
63
|
+
* Error message for the DateTime picker component
|
|
64
|
+
*/
|
|
65
|
+
error?: string;
|
|
66
|
+
/**
|
|
67
|
+
* If true, both the date and time picker are disabled
|
|
68
|
+
*/
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Id for the component
|
|
72
|
+
*/
|
|
73
|
+
default12HourTime: OptionType;
|
|
74
|
+
/**
|
|
75
|
+
* Data test id for time picker
|
|
76
|
+
*/
|
|
77
|
+
dataTestIdForTime?: string;
|
|
78
|
+
/**
|
|
79
|
+
* To hide time selector
|
|
80
|
+
*/
|
|
81
|
+
selectedTimeOption: OptionType;
|
|
82
|
+
}
|
|
83
|
+
export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'onChange' | 'timePickerProps' | 'error' | 'disabled' | 'dataTestIdForTime'> {
|
|
84
|
+
/**
|
|
85
|
+
* Props for the date picker
|
|
86
|
+
*/
|
|
87
|
+
datePickerProps?: any;
|
|
88
|
+
/**
|
|
89
|
+
* Id for the component
|
|
90
|
+
*/
|
|
91
|
+
id: string;
|
|
92
|
+
/**
|
|
93
|
+
* Label for the component
|
|
94
|
+
*/
|
|
95
|
+
label?: string;
|
|
96
|
+
/**
|
|
97
|
+
* If true, the field is required and asterisk is shown
|
|
98
|
+
*/
|
|
99
|
+
required?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* To hide time selector
|
|
102
|
+
*/
|
|
103
|
+
hideTimeSelect?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* To make the field read only
|
|
106
|
+
*/
|
|
107
|
+
readOnly?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* To block today's date
|
|
110
|
+
*/
|
|
111
|
+
isTodayBlocked?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* To enable outside range
|
|
114
|
+
*/
|
|
115
|
+
isOutsideRangeEnabled?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Start date for the date picker
|
|
118
|
+
*/
|
|
119
|
+
startDate?: Date;
|
|
120
|
+
/**
|
|
121
|
+
* Data test id for date picker
|
|
122
|
+
*/
|
|
123
|
+
dataTestidForDate?: string;
|
|
124
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { OptionType } from '../../../Common';
|
|
2
|
+
|
|
3
|
+
export declare const getTimePickerStyles: () => {
|
|
4
|
+
container: (base: any) => any;
|
|
5
|
+
control: (base: any, state: any) => any;
|
|
6
|
+
menu: (base: any) => any;
|
|
7
|
+
singleValue: (base: any) => any;
|
|
8
|
+
placeholder: (base: any) => any;
|
|
9
|
+
option: (base: any, state: any) => any;
|
|
10
|
+
valueContainer: (base: any) => any;
|
|
11
|
+
dropdownIndicator: (base: any) => any;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Return the options for the dates in label and value format
|
|
15
|
+
*/
|
|
16
|
+
export declare const MONTHLY_DATE_OPTIONS: {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}[];
|
|
20
|
+
/**
|
|
21
|
+
* Return the options for the time in label and value format
|
|
22
|
+
* @type {OptionType[]}
|
|
23
|
+
*/
|
|
24
|
+
export declare const DEFAULT_TIME_OPTIONS: OptionType[];
|
|
25
|
+
/**
|
|
26
|
+
* Get the time value from the date object in the format: `hh:mm:ss`
|
|
27
|
+
*/
|
|
28
|
+
export declare const getTimeValue: (currentDateObj: Date) => string;
|
|
29
|
+
/**
|
|
30
|
+
* Updates the time in the given date object and returns the updated object
|
|
31
|
+
*/
|
|
32
|
+
export declare const updateTime: (currentDateObj: Date, timeString: string) => Date;
|
|
33
|
+
/**
|
|
34
|
+
* Updates the date in the given date object and returns the updated object
|
|
35
|
+
*/
|
|
36
|
+
export declare const updateDate: (currentDateObj: Date, newDate: Date) => Date;
|
|
37
|
+
/**
|
|
38
|
+
* Get the default date from the time to live
|
|
39
|
+
* @param timeToLive
|
|
40
|
+
* @returns
|
|
41
|
+
*/
|
|
42
|
+
export declare const getDefaultDateFromTimeToLive: (timeToLive: string, isTomorrow?: boolean) => Date;
|
|
43
|
+
/**
|
|
44
|
+
* Clock icon for the time picker
|
|
45
|
+
*/
|
|
46
|
+
export declare const DropdownIndicatorTimePicker: (props: any) => JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EnvironmentSelectorProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const EnvironmentSelector: <T>({ handleEnvironmentChange, selectedEnvironmentsMap, isMulti, placeholder, processOptions, styles, isClearable, autoFocus, }: EnvironmentSelectorProps<T>) => JSX.Element;
|
|
4
|
+
export default EnvironmentSelector;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EnvironmentSelector } from './EnvironmentSelector.component';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OptionType } from '../../../Common';
|
|
2
|
+
import { GroupedOptionsType } from '../../types';
|
|
3
|
+
import { commonSelectStyles } from '../ReactSelect';
|
|
4
|
+
|
|
5
|
+
export type SelectedEnvironmentsMapType<T> = Record<string, T>;
|
|
6
|
+
export type BaseSelectorType = {
|
|
7
|
+
isMulti: true;
|
|
8
|
+
handleEnvironmentChange: (options: OptionType[]) => void;
|
|
9
|
+
} | {
|
|
10
|
+
isMulti: false;
|
|
11
|
+
handleEnvironmentChange: (option: OptionType) => void;
|
|
12
|
+
};
|
|
13
|
+
export type EnvironmentSelectorProps<T> = BaseSelectorType & {
|
|
14
|
+
/**
|
|
15
|
+
* Would expect selected option to be like {[selectedOption1.label] = <any value we want to store>, ...}
|
|
16
|
+
*/
|
|
17
|
+
selectedEnvironmentsMap?: SelectedEnvironmentsMapType<T>;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/**
|
|
20
|
+
* This is a HEAVY operation, so make sure to wrap it in useCallback
|
|
21
|
+
* In case we want to process (filter, rename label, etc) the options before displaying them
|
|
22
|
+
*/
|
|
23
|
+
processOptions?: (options: GroupedOptionsType[]) => GroupedOptionsType[];
|
|
24
|
+
styles?: typeof commonSelectStyles;
|
|
25
|
+
isClearable?: boolean;
|
|
26
|
+
autoFocus?: boolean;
|
|
27
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OptionType } from '../../../Common';
|
|
2
|
+
import { EnvListMinDTO, GroupedOptionsType } from '../../types';
|
|
3
|
+
import { SelectedEnvironmentsMapType } from './types';
|
|
4
|
+
|
|
5
|
+
export declare const parseEnvironmentClusterListToOptions: (environmentClusterList: EnvListMinDTO[]) => GroupedOptionsType[];
|
|
6
|
+
export declare const getSelectedOptions: <T>(selectedEnvironmentsMap: SelectedEnvironmentsMapType<T>, options: GroupedOptionsType[]) => OptionType[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ServerInfoResponse } from './types';
|
|
2
1
|
import { ResponseType } from '../../../Common';
|
|
2
|
+
import { ServerInfoResponse } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const updatePostHogEvent: (payload: any) => Promise<ResponseType>;
|
|
5
5
|
export declare const getServerInfo: (withoutStatus: boolean, isFormHeader: boolean) => Promise<ServerInfoResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RegistryType } from '../..';
|
|
2
|
-
import { ImageTaggingContainerType } from '../../../Common';
|
|
3
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ImageTaggingContainerType } from '../../../Common';
|
|
3
|
+
import { RegistryType } from '../..';
|
|
4
4
|
|
|
5
5
|
export interface ArtifactInfoProps {
|
|
6
6
|
imagePath: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MaterialSecurityInfoType } from '../../types';
|
|
2
|
-
import { CDModalTabType, VulnerabilityType } from '../../../Common';
|
|
3
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { CDModalTabType, VulnerabilityType } from '../../../Common';
|
|
3
|
+
import { MaterialSecurityInfoType } from '../../types';
|
|
4
4
|
|
|
5
5
|
export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
|
6
6
|
isSecurityModuleInstalled: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const CommonGroupedDropdownStyles: {
|
|
2
|
+
container: (base: any, state: any) => any;
|
|
3
|
+
control: (base: any, state: any) => any;
|
|
4
|
+
singleValue: (base: any) => any;
|
|
5
|
+
option: (base: any, state: any) => any;
|
|
6
|
+
valueContainer: (base: any) => any;
|
|
7
|
+
dropdownIndicator: (base: any, state: any) => any;
|
|
8
|
+
group: (base: any) => any;
|
|
9
|
+
groupHeading: (base: any) => any;
|
|
10
|
+
menuList: (base: any) => any;
|
|
11
|
+
multiValue: (base: any) => any;
|
|
12
|
+
multiValueLabel: (base: any) => any;
|
|
13
|
+
placeholder: (base: any) => any;
|
|
14
|
+
};
|
|
@@ -8,6 +8,8 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
|
8
8
|
loadingMessage: (base: any) => any;
|
|
9
9
|
noOptionsMessage: (base: any) => any;
|
|
10
10
|
placeholder: (base: any) => any;
|
|
11
|
+
group: (base: any) => any;
|
|
12
|
+
groupHeading: (base: any) => any;
|
|
11
13
|
};
|
|
12
14
|
export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (base: any, state: any) => any;
|
|
13
15
|
export declare const SelectOption: (props: any) => JSX.Element;
|
|
@@ -23,4 +25,6 @@ export declare const commonSelectStyles: {
|
|
|
23
25
|
loadingMessage: (base: any) => any;
|
|
24
26
|
noOptionsMessage: (base: any) => any;
|
|
25
27
|
placeholder: (base: any) => any;
|
|
28
|
+
group: (base: any) => any;
|
|
29
|
+
groupHeading: (base: any) => any;
|
|
26
30
|
};
|
|
@@ -17,14 +17,12 @@ export * from './Header';
|
|
|
17
17
|
export * from './AnnouncementBanner';
|
|
18
18
|
export * from './ButtonWithLoader';
|
|
19
19
|
export * from './ButtonWithSelector';
|
|
20
|
+
export * from './EnvironmentSelector';
|
|
20
21
|
export * from './ModalSidebarPanel';
|
|
21
22
|
export * from './ImageWithFallback';
|
|
22
23
|
export * from './FeatureDescription';
|
|
23
24
|
export * from './CICDHistory';
|
|
24
25
|
export * from './GitCommitInfoGeneric';
|
|
25
26
|
export * from './Error';
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './ImageChipCell';
|
|
28
|
-
export * from './ArtifactInfoModal';
|
|
29
|
-
export * from './MaterialHistory';
|
|
27
|
+
export * from './DatePicker';
|
|
30
28
|
export * from './IframeContainer';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
2
|
-
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
3
|
-
import { MaterialInfo, SortingOrder } from '../Common';
|
|
4
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { MaterialInfo, SortingOrder } from '../Common';
|
|
3
|
+
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
4
|
+
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
5
5
|
|
|
6
6
|
interface HighlightSearchTextProps {
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UseUserEmailContextType } from './types';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { UseUserEmailContextType } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const useUserEmail: () => UseUserEmailContextType;
|
|
5
5
|
export declare const UserEmailProvider: React.FC<{}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SERVER_MODE } from '../../Common';
|
|
2
|
-
import { ServerInfo } from '../Components/Header/types';
|
|
3
1
|
import { MutableRefObject, ReactNode } from 'react';
|
|
2
|
+
import { ServerInfo } from '../Components/Header/types';
|
|
3
|
+
import { SERVER_MODE } from '../../Common';
|
|
4
4
|
|
|
5
5
|
export interface MainContext {
|
|
6
6
|
serverMode: SERVER_MODE;
|
package/dist/Shared/index.d.ts
CHANGED
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors } from '../Common';
|
|
1
2
|
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
|
2
|
-
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes } from '../Common';
|
|
3
3
|
|
|
4
4
|
export declare enum EnvType {
|
|
5
5
|
CHART = "helm_charts",
|
|
@@ -418,6 +418,35 @@ export declare enum AggregationKeys {
|
|
|
418
418
|
Namespaces = "Namespaces"
|
|
419
419
|
}
|
|
420
420
|
export type AggregationKeysType = keyof typeof AggregationKeys;
|
|
421
|
+
export interface AppInfoListType {
|
|
422
|
+
application: string;
|
|
423
|
+
appStatus: string;
|
|
424
|
+
deploymentStatus: string;
|
|
425
|
+
lastDeployed: string;
|
|
426
|
+
lastDeployedImage?: string;
|
|
427
|
+
lastDeployedBy?: string;
|
|
428
|
+
appId: number;
|
|
429
|
+
envId: number;
|
|
430
|
+
pipelineId?: number;
|
|
431
|
+
commits?: string[];
|
|
432
|
+
ciArtifactId?: number;
|
|
433
|
+
}
|
|
434
|
+
export interface EnvListMinDTO {
|
|
435
|
+
id: number;
|
|
436
|
+
active: boolean;
|
|
437
|
+
allowedDeploymentTypes: DeploymentAppTypes[] | null;
|
|
438
|
+
appCount: number;
|
|
439
|
+
cluster_id: number;
|
|
440
|
+
cluster_name: string;
|
|
441
|
+
default: boolean;
|
|
442
|
+
description: string;
|
|
443
|
+
environmentIdentifier: string;
|
|
444
|
+
environment_name: string;
|
|
445
|
+
isClusterCdActive: boolean;
|
|
446
|
+
isDigestEnforcedForEnv: boolean;
|
|
447
|
+
isVirtualEnvironment: boolean;
|
|
448
|
+
namespace: string;
|
|
449
|
+
}
|
|
421
450
|
export interface EnvironmentType {
|
|
422
451
|
/**
|
|
423
452
|
* Unique identifier for the environment
|
|
@@ -454,11 +483,24 @@ export declare enum DependencyType {
|
|
|
454
483
|
DOWNSTREAM = "downstream",
|
|
455
484
|
LEVEL = "level"
|
|
456
485
|
}
|
|
457
|
-
export interface scrollableInterface {
|
|
458
|
-
autoBottomScroll: boolean;
|
|
459
|
-
}
|
|
460
486
|
export declare enum PromiseAllStatusType {
|
|
461
487
|
FULFILLED = "fulfilled",
|
|
462
488
|
REJECTED = "rejected"
|
|
463
489
|
}
|
|
490
|
+
export type ApiQueuingWithBatchResponseItem<T> = {
|
|
491
|
+
status: PromiseAllStatusType.FULFILLED;
|
|
492
|
+
value: T;
|
|
493
|
+
} | {
|
|
494
|
+
status: PromiseAllStatusType.REJECTED;
|
|
495
|
+
reason: ServerErrors;
|
|
496
|
+
};
|
|
497
|
+
export interface BatchConfigType {
|
|
498
|
+
lastIndex: number;
|
|
499
|
+
results: any[];
|
|
500
|
+
concurrentCount: number;
|
|
501
|
+
completedCalls: number;
|
|
502
|
+
}
|
|
503
|
+
export interface scrollableInterface {
|
|
504
|
+
autoBottomScroll: boolean;
|
|
505
|
+
}
|
|
464
506
|
export {};
|