@devtron-labs/devtron-fe-common-lib 0.3.22 → 4.0.1-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/RJSF/widgets/Select.d.ts +1 -1
- package/dist/Common/RJSF/widgets/index.d.ts +1 -1
- package/dist/Common/Types.d.ts +0 -5
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +14 -0
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -0
- package/dist/Shared/Components/DatePicker/types.d.ts +11 -6
- package/dist/Shared/Components/DatePicker/utils.d.ts +7 -18
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +1 -0
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +2 -0
- package/dist/Shared/Components/Security/SecuritySummaryCard/SecuritySummaryCard.d.ts +1 -1
- package/dist/Shared/Components/Security/SecuritySummaryCard/types.d.ts +1 -0
- package/dist/Shared/Components/Security/Vulnerabilities/Vulnerabilities.d.ts +1 -1
- package/dist/Shared/Components/Security/Vulnerabilities/index.d.ts +0 -1
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +2 -2
- package/dist/Shared/Components/Security/Vulnerabilities/utils.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +8 -9
- package/dist/{cssMode-C8YKI5h2.js → cssMode-BKAw6Gjy.js} +1 -1
- package/dist/{freemarker2-CJeBH1fW.js → freemarker2-CaToeyV1.js} +1 -1
- package/dist/{handlebars-BD3hRLs3.js → handlebars-BcuRt7Wx.js} +1 -1
- package/dist/{html-Bgbe35Zb.js → html-BHs6br3H.js} +1 -1
- package/dist/{htmlMode-YmhqT8Uk.js → htmlMode-BHPPU3R8.js} +1 -1
- package/dist/{index-Z-KiDXlA.js → index-ByQvKL1i.js} +128849 -128937
- package/dist/index.js +427 -429
- package/dist/{javascript-C8oae5i3.js → javascript-CgB6Ukwh.js} +1 -1
- package/dist/{jsonMode-8Q12XwpK.js → jsonMode-BQ72p6WC.js} +1 -1
- package/dist/{liquid-CUv6v46U.js → liquid-BSnWNlwJ.js} +1 -1
- package/dist/{mdx-B02CTY6U.js → mdx-CmG3JYo6.js} +1 -1
- package/dist/{python-BtIu7svM.js → python-DsZUSBx9.js} +1 -1
- package/dist/{razor-Xq01XHFi.js → razor-DMf-FT32.js} +1 -1
- package/dist/{tsMode-BZ5qfQQR.js → tsMode-DpDNESk7.js} +1 -1
- package/dist/{typescript-vxKt4hu_.js → typescript-fK9cd2PO.js} +1 -1
- package/dist/{xml-CZ8k31dR.js → xml-DbdPKzSs.js} +1 -1
- package/dist/{yaml-Caww5KCg.js → yaml-Dn628uiu.js} +1 -1
- package/package.json +3 -3
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/utils.d.ts +0 -11
- package/dist/Shared/Components/Security/Vulnerabilities/service.d.ts +0 -2
@@ -1,2 +1,2 @@
|
|
1
1
|
import { WidgetProps } from '@rjsf/utils';
|
2
|
-
export declare const
|
2
|
+
export declare const SelectWidget: (props: WidgetProps) => JSX.Element;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export { Checkbox as CheckboxWidget } from './Checkbox';
|
2
|
-
export {
|
2
|
+
export { SelectWidget } from './Select';
|
package/dist/Common/Types.d.ts
CHANGED
@@ -546,11 +546,6 @@ export interface VulnerabilityType {
|
|
546
546
|
policy: string;
|
547
547
|
url?: string;
|
548
548
|
}
|
549
|
-
export interface ScanVulnerabilitiesTableProps {
|
550
|
-
vulnerabilities: VulnerabilityType[];
|
551
|
-
hidePolicy?: boolean;
|
552
|
-
shouldStick?: boolean;
|
553
|
-
}
|
554
549
|
export interface MaterialInfo {
|
555
550
|
revision: string;
|
556
551
|
modifiedTime: string | Date;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { LogStageAccordionProps } from './types';
|
2
|
-
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, }: LogStageAccordionProps) => JSX.Element;
|
2
|
+
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, searchIndex, }: LogStageAccordionProps) => JSX.Element;
|
3
3
|
export default LogStageAccordion;
|
@@ -635,11 +635,25 @@ export interface LogStageAccordionProps extends StageDetailType, Pick<LogsRender
|
|
635
635
|
* A stage is loading if it is last in current stage list and event is not closed
|
636
636
|
*/
|
637
637
|
isLoading: boolean;
|
638
|
+
searchIndex: string;
|
638
639
|
}
|
639
640
|
export interface CreateMarkupReturnType {
|
640
641
|
__html: string;
|
641
642
|
isSearchKeyPresent: boolean;
|
642
643
|
}
|
644
|
+
export type CreateMarkupPropsType = {
|
645
|
+
log: string;
|
646
|
+
currentIndex?: never;
|
647
|
+
targetSearchKey?: never;
|
648
|
+
searchMatchResults?: never;
|
649
|
+
searchIndex?: never;
|
650
|
+
} | {
|
651
|
+
log: string;
|
652
|
+
currentIndex: number;
|
653
|
+
targetSearchKey: string;
|
654
|
+
searchMatchResults: string[];
|
655
|
+
searchIndex: string;
|
656
|
+
};
|
643
657
|
export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
|
644
658
|
export declare const terminalStatus: Set<string>;
|
645
659
|
export declare const statusSet: Set<string>;
|
@@ -5,3 +5,4 @@ export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any,
|
|
5
5
|
export declare const renderIcon: (iconState: string) => JSX.Element;
|
6
6
|
export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
|
7
7
|
export declare const getTriggerStatusIcon: (triggerDetailStatus: string) => JSX.Element;
|
8
|
+
export declare const getLogSearchIndex: ({ stageIndex, lineNumberInsideStage, }: Record<"stageIndex" | "lineNumberInsideStage", number>) => string;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Moment } from 'moment';
|
2
2
|
import { SelectInstance } from 'react-select';
|
3
3
|
import { SingleDatePickerShape } from 'react-dates';
|
4
|
-
import {
|
4
|
+
import { SelectPickerOptionType } from '../SelectPicker';
|
5
5
|
export interface SingleDatePickerProps {
|
6
6
|
/**
|
7
7
|
* Date value to be displayed
|
@@ -32,13 +32,14 @@ export interface SingleDatePickerProps {
|
|
32
32
|
*/
|
33
33
|
dataTestId?: string;
|
34
34
|
}
|
35
|
+
export type DateSelectPickerType = SelectPickerOptionType<string>;
|
35
36
|
export interface MonthlySelectProps extends Pick<SingleDatePickerProps, 'dataTestId'> {
|
36
37
|
/**
|
37
38
|
* Current selected date object
|
38
39
|
*
|
39
40
|
* @default 'new Date()'
|
40
41
|
*/
|
41
|
-
selectedMonthlyDate:
|
42
|
+
selectedMonthlyDate: DateSelectPickerType;
|
42
43
|
/**
|
43
44
|
* Onchange handle picker type
|
44
45
|
*/
|
@@ -54,7 +55,7 @@ export interface TimeSelectProps {
|
|
54
55
|
/**
|
55
56
|
* Handler for updating the date from the parent component
|
56
57
|
*/
|
57
|
-
onChange: (date:
|
58
|
+
onChange: (date: DateSelectPickerType) => void;
|
58
59
|
/**
|
59
60
|
* Props for the time picker
|
60
61
|
*/
|
@@ -70,7 +71,7 @@ export interface TimeSelectProps {
|
|
70
71
|
/**
|
71
72
|
* Id for the component
|
72
73
|
*/
|
73
|
-
default12HourTime:
|
74
|
+
default12HourTime: DateSelectPickerType;
|
74
75
|
/**
|
75
76
|
* Data test id for time picker
|
76
77
|
*/
|
@@ -78,9 +79,9 @@ export interface TimeSelectProps {
|
|
78
79
|
/**
|
79
80
|
* To hide time selector
|
80
81
|
*/
|
81
|
-
selectedTimeOption:
|
82
|
+
selectedTimeOption: DateSelectPickerType;
|
82
83
|
}
|
83
|
-
export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | '
|
84
|
+
export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'timePickerProps' | 'error' | 'disabled' | 'dataTestIdForTime'>, Pick<SingleDatePickerShape, 'openDirection'> {
|
84
85
|
/**
|
85
86
|
* Props for the date picker
|
86
87
|
*/
|
@@ -113,4 +114,8 @@ export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'onC
|
|
113
114
|
* Data test id for date picker
|
114
115
|
*/
|
115
116
|
dataTestidForDate?: string;
|
117
|
+
/**
|
118
|
+
* Function to handle date change
|
119
|
+
*/
|
120
|
+
onChange: (date: Date) => void;
|
116
121
|
}
|
@@ -1,14 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
export declare const getTimePickerStyles: () => {
|
3
|
-
container: (base: any) => any;
|
4
|
-
control: (base: any, state: any) => any;
|
5
|
-
menu: (base: any) => any;
|
6
|
-
singleValue: (base: any) => any;
|
7
|
-
placeholder: (base: any) => any;
|
8
|
-
option: (base: any, state: any) => any;
|
9
|
-
valueContainer: (base: any) => any;
|
10
|
-
dropdownIndicator: (base: any) => any;
|
11
|
-
};
|
1
|
+
import { SelectPickerOptionType } from '../SelectPicker';
|
12
2
|
/**
|
13
3
|
* Return the options for the dates in label and value format
|
14
4
|
*/
|
@@ -18,9 +8,9 @@ export declare const MONTHLY_DATE_OPTIONS: {
|
|
18
8
|
}[];
|
19
9
|
/**
|
20
10
|
* Return the options for the time in label and value format
|
21
|
-
* @type {
|
11
|
+
* @type {SelectPickerOptionType[]}
|
22
12
|
*/
|
23
|
-
export declare const DEFAULT_TIME_OPTIONS:
|
13
|
+
export declare const DEFAULT_TIME_OPTIONS: SelectPickerOptionType[];
|
24
14
|
/**
|
25
15
|
* Get the time value from the date object in the format: `hh:mm:ss`
|
26
16
|
*/
|
@@ -28,7 +18,10 @@ export declare const getTimeValue: (currentDateObj: Date) => string;
|
|
28
18
|
/**
|
29
19
|
* Updates the time in the given date object and returns the updated object
|
30
20
|
*/
|
31
|
-
export declare const updateTime: (currentDateObj: Date, timeString: string) =>
|
21
|
+
export declare const updateTime: (currentDateObj: Date, timeString: string) => {
|
22
|
+
label: Date;
|
23
|
+
value: Date;
|
24
|
+
};
|
32
25
|
/**
|
33
26
|
* Updates the date in the given date object and returns the updated object
|
34
27
|
*/
|
@@ -39,7 +32,3 @@ export declare const updateDate: (currentDateObj: Date, newDate: Date) => Date;
|
|
39
32
|
* @returns
|
40
33
|
*/
|
41
34
|
export declare const getDefaultDateFromTimeToLive: (timeToLive: string, isTomorrow?: boolean) => Date;
|
42
|
-
/**
|
43
|
-
* Clock icon for the time picker
|
44
|
-
*/
|
45
|
-
export declare const DropdownIndicatorTimePicker: (props: any) => JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ImageCardAccordionProps } from './types';
|
2
|
-
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, changesCard, isScanned, isScanEnabled, SecurityModalSidebar, getSecurityScan, }: ImageCardAccordionProps) => JSX.Element;
|
2
|
+
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, SecurityModalSidebar, getSecurityScan, }: ImageCardAccordionProps) => JSX.Element;
|
3
3
|
export default ImageCardAccordion;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ApiResponseResultType, CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, SecurityModalStateType, StatusType, TablePropsType } from '../types';
|
2
|
-
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"]) => {
|
2
|
+
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"], hidePolicy: boolean) => {
|
3
3
|
headers: ({
|
4
4
|
headerText: string;
|
5
5
|
isSortable: boolean;
|
@@ -95,6 +95,6 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
95
95
|
})[];
|
96
96
|
}[];
|
97
97
|
};
|
98
|
-
export declare const getCodeScanTableData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
98
|
+
export declare const getCodeScanTableData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
99
99
|
export declare const getCodeScanInfoCardData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
100
100
|
export declare const getCodeScanEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, InfoCardPropsType, EmptyStateType, ApiResponseResultType, OpenDetailViewButtonProps } from '../types';
|
2
|
-
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
2
|
+
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
3
3
|
export declare const getImageScanInfoCardData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
4
4
|
export declare const getImageScanEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ApiResponseResultType, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
|
2
|
-
export declare const getTableData: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
2
|
+
export declare const getTableData: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
@@ -120,6 +120,7 @@ export interface CodeScanVulnerabilityType {
|
|
120
120
|
package: string;
|
121
121
|
currentVersion: string;
|
122
122
|
fixedInVersion: string;
|
123
|
+
permission?: string;
|
123
124
|
}
|
124
125
|
export interface ImageScanVulnerabilityType extends CodeScanVulnerabilityType {
|
125
126
|
target?: string;
|
@@ -213,6 +214,7 @@ interface SecurityModalBaseProps extends Partial<Pick<SidebarPropsType, 'isExter
|
|
213
214
|
isHelmApp?: boolean;
|
214
215
|
isResourceScan?: boolean;
|
215
216
|
isSecurityScanV2Enabled: boolean;
|
217
|
+
hidePolicy?: boolean;
|
216
218
|
}
|
217
219
|
export type SecurityModalPropsType = SecurityModalBaseProps;
|
218
220
|
export interface IndexedTextDisplayPropsType {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SecuritySummaryCardProps } from './types';
|
2
|
-
declare const SecuritySummaryCard: ({ severityCount, scanToolId, rootClassName, isHelmApp, SecurityModalSidebar, responseData, isSecurityScanV2Enabled, }: SecuritySummaryCardProps) => JSX.Element;
|
2
|
+
declare const SecuritySummaryCard: ({ severityCount, scanToolId, rootClassName, isHelmApp, SecurityModalSidebar, responseData, isSecurityScanV2Enabled, hidePolicy, }: SecuritySummaryCardProps) => JSX.Element;
|
3
3
|
export default SecuritySummaryCard;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { VulnerabilitiesProps } from './types';
|
2
|
-
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, setVulnerabilityCount, SecurityModalSidebar, getSecurityScan, }: VulnerabilitiesProps) => JSX.Element;
|
2
|
+
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, SecurityModalSidebar, getSecurityScan, }: VulnerabilitiesProps) => JSX.Element;
|
3
3
|
export default Vulnerabilities;
|
@@ -2,15 +2,16 @@ import { ResponseType } from '../../../../Common/Types';
|
|
2
2
|
import { ImageCardAccordionProps } from '@Shared/Components/ImageCardAccordion/types';
|
3
3
|
import { MaterialSecurityInfoType } from '../../../types';
|
4
4
|
import { ApiResponseResultType } from '../SecurityModal';
|
5
|
-
import { getLastExecutionByArtifactApp } from './service';
|
6
5
|
export interface VulnerabilitiesProps extends MaterialSecurityInfoType, Pick<ImageCardAccordionProps, 'SecurityModalSidebar' | 'getSecurityScan'> {
|
7
6
|
artifactId: number;
|
8
7
|
applicationId: number;
|
8
|
+
environmentId: number;
|
9
9
|
setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
|
10
10
|
}
|
11
11
|
export interface UseGetSecurityVulnerabilitiesProps extends Pick<ImageCardAccordionProps, 'getSecurityScan'> {
|
12
12
|
artifactId: string;
|
13
13
|
appId: string;
|
14
|
+
envId: number;
|
14
15
|
isScanned: boolean;
|
15
16
|
isScanEnabled: boolean;
|
16
17
|
isScanV2Enabled: boolean;
|
@@ -18,7 +19,6 @@ export interface UseGetSecurityVulnerabilitiesProps extends Pick<ImageCardAccord
|
|
18
19
|
export interface UseGetSecurityVulnerabilitiesReturnType {
|
19
20
|
scanDetailsLoading: boolean;
|
20
21
|
scanResultResponse: ResponseType<ApiResponseResultType>;
|
21
|
-
executionDetailsResponse: Awaited<ReturnType<typeof getLastExecutionByArtifactApp>>;
|
22
22
|
scanDetailsError: any;
|
23
23
|
reloadScanDetails: () => void;
|
24
24
|
}
|
@@ -3,4 +3,4 @@ import { UseGetSecurityVulnerabilitiesProps, UseGetSecurityVulnerabilitiesReturn
|
|
3
3
|
export declare const getSortedVulnerabilities: (vulnerabilities: any) => any;
|
4
4
|
export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
|
5
5
|
export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;
|
6
|
-
export declare const useGetSecurityVulnerabilities: ({ artifactId, appId, isScanned, isScanEnabled, isScanV2Enabled, getSecurityScan, }: UseGetSecurityVulnerabilitiesProps) => UseGetSecurityVulnerabilitiesReturnType;
|
6
|
+
export declare const useGetSecurityVulnerabilities: ({ artifactId, appId, envId, isScanned, isScanEnabled, isScanV2Enabled, getSecurityScan, }: UseGetSecurityVulnerabilitiesProps) => UseGetSecurityVulnerabilitiesReturnType;
|
@@ -134,5 +134,5 @@ import { SelectPickerProps } from './type';
|
|
134
134
|
* />
|
135
135
|
* ```
|
136
136
|
*/
|
137
|
-
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, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
137
|
+
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, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
138
138
|
export default SelectPicker;
|
@@ -45,7 +45,7 @@ export declare enum SelectPickerVariantType {
|
|
45
45
|
DEFAULT = "default",
|
46
46
|
BORDER_LESS = "border-less"
|
47
47
|
}
|
48
|
-
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'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & {
|
48
|
+
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' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'> & {
|
49
49
|
/**
|
50
50
|
* Icon to be rendered in the control
|
51
51
|
*/
|
@@ -134,16 +134,15 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
134
134
|
* Would reload the option list when called in case optionListError is present
|
135
135
|
*/
|
136
136
|
reloadOptionList?: () => void;
|
137
|
+
/**
|
138
|
+
* If true, the select picker creates the new option
|
139
|
+
*
|
140
|
+
* @default false
|
141
|
+
*/
|
142
|
+
isCreatable?: boolean;
|
137
143
|
} & (IsMulti extends true ? {
|
138
144
|
isMulti: IsMulti | boolean;
|
139
|
-
multiSelectProps?:
|
140
|
-
/**
|
141
|
-
* If true, the select picker creates the new option
|
142
|
-
* Only applicable for IsMulti: true
|
143
|
-
*
|
144
|
-
* @default false
|
145
|
-
*/
|
146
|
-
isCreatable?: boolean;
|
145
|
+
multiSelectProps?: {
|
147
146
|
/**
|
148
147
|
* If true, the group heading can be selected
|
149
148
|
*
|
@@ -1,7 +1,7 @@
|
|
1
1
|
var Fe = Object.defineProperty;
|
2
2
|
var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
3
3
|
var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
|
4
|
-
import { m as je } from "./index-
|
4
|
+
import { m as je } from "./index-ByQvKL1i.js";
|
5
5
|
/*!-----------------------------------------------------------------------------
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as f } from "./index-
|
1
|
+
import { m as f } from "./index-ByQvKL1i.js";
|
2
2
|
/*!-----------------------------------------------------------------------------
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as l } from "./index-
|
1
|
+
import { m as l } from "./index-ByQvKL1i.js";
|
2
2
|
/*!-----------------------------------------------------------------------------
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as s } from "./index-
|
1
|
+
import { m as s } from "./index-ByQvKL1i.js";
|
2
2
|
/*!-----------------------------------------------------------------------------
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
var Be = Object.defineProperty;
|
2
2
|
var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
3
3
|
var k = (e, n, i) => $e(e, typeof n != "symbol" ? n + "" : n, i);
|
4
|
-
import { m as qe } from "./index-
|
4
|
+
import { m as qe } from "./index-ByQvKL1i.js";
|
5
5
|
/*!-----------------------------------------------------------------------------
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|