@devtron-labs/devtron-fe-common-lib 0.5.0-beta-7 → 0.5.0-beta-9
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/Constants.d.ts +1 -0
- package/dist/Common/Policy.Types.d.ts +0 -14
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +2 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/StatusFilterButtonComponent.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +6 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +2 -2
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +35 -14
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +4 -2
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/index.d.ts +0 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +0 -6
- package/dist/Shared/Components/Plugin/service.d.ts +3 -3
- package/dist/Shared/Components/Plugin/types.d.ts +1 -4
- 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/type.d.ts +13 -21
- package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -2
- package/dist/Shared/types.d.ts +2 -4
- package/dist/Shared/validations.d.ts +0 -3
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-nltnRZE_.js → cssMode-BhUcblV3.js} +1 -1
- package/dist/{freemarker2-BvaBkEMq.js → freemarker2-Cz9j4LM-.js} +1 -1
- package/dist/{handlebars-BGzBz9um.js → handlebars-CnEwOfUD.js} +1 -1
- package/dist/{html-ChoHIs78.js → html-C4c0kwtM.js} +1 -1
- package/dist/{htmlMode-JpDAxLyc.js → htmlMode-BE-O4MZ9.js} +1 -1
- package/dist/{index-D7h9qR8q.js → index-C8gCqDz-.js} +19383 -19333
- package/dist/index.js +327 -327
- package/dist/{javascript-BD4OKIpu.js → javascript-Bze6GaRd.js} +1 -1
- package/dist/{jsonMode-DP6mRPqT.js → jsonMode-euZ6gVcq.js} +1 -1
- package/dist/{liquid-BPZMfe_D.js → liquid-CiWYWKGZ.js} +1 -1
- package/dist/{mdx-Cgq4NAOX.js → mdx-Cg0mMyWJ.js} +1 -1
- package/dist/{python-Ca0bWK3z.js → python-CQfygZrL.js} +1 -1
- package/dist/{razor-Bp2bWXg-.js → razor-a8zEbLwR.js} +1 -1
- package/dist/{tsMode-ChTSsJkn.js → tsMode-B_DEfseq.js} +1 -1
- package/dist/{typescript-hLs6qO-V.js → typescript-DaKMt18y.js} +1 -1
- package/dist/{xml-jY9vKyLc.js → xml-LXTt4QtJ.js} +1 -1
- package/dist/{yaml-CrVDsAxK.js → yaml-jev_LNsL.js} +1 -1
- package/package.json +1 -2
|
@@ -5,11 +5,6 @@ import { ResponseType } from './Types';
|
|
|
5
5
|
export declare enum ApplyPolicyToStage {
|
|
6
6
|
PRE_CI = "PRE_CI",
|
|
7
7
|
POST_CI = "POST_CI",
|
|
8
|
-
PRE_CD = "PRE_CD",
|
|
9
|
-
POST_CD = "POST_CD",
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated in mandatory plugin policy v2
|
|
12
|
-
*/
|
|
13
8
|
PRE_OR_POST_CI = "PRE_OR_POST_CI"
|
|
14
9
|
}
|
|
15
10
|
export declare enum PluginRequiredStage {
|
|
@@ -51,17 +46,8 @@ export interface ProcessPluginDataReturnType {
|
|
|
51
46
|
mandatoryPluginsError?: ServerErrors;
|
|
52
47
|
}
|
|
53
48
|
export declare enum ConsequenceAction {
|
|
54
|
-
/**
|
|
55
|
-
* This is used if the policy is enforced immediately.
|
|
56
|
-
*/
|
|
57
49
|
BLOCK = "BLOCK",
|
|
58
|
-
/**
|
|
59
|
-
* This is used if the policy will be enforced after a certain timestamp.
|
|
60
|
-
*/
|
|
61
50
|
ALLOW_UNTIL_TIME = "ALLOW_UNTIL_TIME",
|
|
62
|
-
/**
|
|
63
|
-
* This is used if the policy is not enforced yet (just to show waring).
|
|
64
|
-
*/
|
|
65
51
|
ALLOW_FOREVER = "ALLOW_FOREVER"
|
|
66
52
|
}
|
|
67
53
|
export interface ConsequenceType {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }:
|
|
1
|
+
import { DescriptorProps } from './types';
|
|
2
|
+
declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: DescriptorProps) => JSX.Element;
|
|
3
3
|
export default Descriptor;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AppStatusDetailsChartType } from './types';
|
|
2
|
-
declare const AppStatusDetailsChart: ({ filterRemoveHealth, showFooter }: AppStatusDetailsChartType) => JSX.Element;
|
|
2
|
+
declare const AppStatusDetailsChart: ({ filterRemoveHealth, showFooter, showConfigDriftInfo, onClose, }: AppStatusDetailsChartType) => JSX.Element;
|
|
3
3
|
export default AppStatusDetailsChart;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { StatusFilterButtonType } from './types';
|
|
2
|
-
export declare const StatusFilterButtonComponent: ({ nodes, handleFilterClick }: StatusFilterButtonType) => JSX.Element;
|
|
2
|
+
export declare const StatusFilterButtonComponent: ({ nodes, selectedTab, handleFilterClick }: StatusFilterButtonType) => JSX.Element;
|
|
@@ -417,9 +417,12 @@ export interface DeploymentHistorySidebarType {
|
|
|
417
417
|
export interface AppStatusDetailsChartType {
|
|
418
418
|
filterRemoveHealth?: boolean;
|
|
419
419
|
showFooter: boolean;
|
|
420
|
+
showConfigDriftInfo?: boolean;
|
|
421
|
+
onClose?: () => void;
|
|
420
422
|
}
|
|
421
423
|
export interface StatusFilterButtonType {
|
|
422
424
|
nodes: Array<Node>;
|
|
425
|
+
selectedTab: string;
|
|
423
426
|
handleFilterClick?: (selectedFilter: string) => void;
|
|
424
427
|
}
|
|
425
428
|
export declare enum NodeStatus {
|
|
@@ -430,6 +433,9 @@ export declare enum NodeStatus {
|
|
|
430
433
|
Suspended = "suspended",
|
|
431
434
|
Unknown = "unknown"
|
|
432
435
|
}
|
|
436
|
+
export declare enum NodeFilters {
|
|
437
|
+
drifted = "drifted"
|
|
438
|
+
}
|
|
433
439
|
type NodesMap = {
|
|
434
440
|
[key in NodeType]?: Map<string, any>;
|
|
435
441
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CollapsibleListProps } from './CollapsibleList.types';
|
|
2
|
-
export declare const CollapsibleList: ({ config, onCollapseBtnClick }: CollapsibleListProps) => JSX.Element;
|
|
1
|
+
import { CollapsibleListProps, TabOptions } from './CollapsibleList.types';
|
|
2
|
+
export declare const CollapsibleList: <TabType extends TabOptions>({ config, tabType, onCollapseBtnClick, }: CollapsibleListProps<TabType>) => JSX.Element;
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
|
3
|
-
|
|
3
|
+
interface ButtonTab {
|
|
4
|
+
/**
|
|
5
|
+
* Is tab active ( for button tab )
|
|
6
|
+
*/
|
|
7
|
+
isActive: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The callback function to handle click events on the button.
|
|
10
|
+
*/
|
|
11
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
12
|
+
href?: never;
|
|
13
|
+
}
|
|
14
|
+
interface NavLinkTab {
|
|
15
|
+
/**
|
|
16
|
+
* The URL of the nav link.
|
|
17
|
+
*/
|
|
18
|
+
href: string;
|
|
19
|
+
/**
|
|
20
|
+
* The callback function to handle click events on the nav link.
|
|
21
|
+
*/
|
|
22
|
+
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
23
|
+
isActive?: never;
|
|
24
|
+
}
|
|
25
|
+
export type TabOptions = 'button' | 'navLink';
|
|
26
|
+
type ConditionalTabType<TabType extends TabOptions> = TabType extends 'button' ? ButtonTab : NavLinkTab;
|
|
27
|
+
export type CollapsibleListItem<TabType extends TabOptions> = ConditionalTabType<TabType> & {
|
|
4
28
|
/**
|
|
5
29
|
* The title of the list item.
|
|
6
30
|
*/
|
|
@@ -26,16 +50,8 @@ export interface CollapsibleListItem {
|
|
|
26
50
|
*/
|
|
27
51
|
tooltipProps?: TippyProps;
|
|
28
52
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
href?: string;
|
|
33
|
-
/**
|
|
34
|
-
* The callback function to handle click events on the nav link.
|
|
35
|
-
*/
|
|
36
|
-
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
37
|
-
}
|
|
38
|
-
export interface CollapsibleListConfig {
|
|
53
|
+
};
|
|
54
|
+
export interface CollapsibleListConfig<TabType extends 'button' | 'navLink'> {
|
|
39
55
|
/**
|
|
40
56
|
* The unique identifier for the collapsible list.
|
|
41
57
|
*/
|
|
@@ -73,17 +89,21 @@ export interface CollapsibleListConfig {
|
|
|
73
89
|
/**
|
|
74
90
|
* An array of items to be displayed in the collapsible list.
|
|
75
91
|
*/
|
|
76
|
-
items: CollapsibleListItem[];
|
|
92
|
+
items: CollapsibleListItem<TabType>[];
|
|
77
93
|
/**
|
|
78
94
|
* Boolean indicating whether the list is expanded or not.
|
|
79
95
|
*/
|
|
80
96
|
isExpanded?: boolean;
|
|
81
97
|
}
|
|
82
|
-
export interface CollapsibleListProps {
|
|
98
|
+
export interface CollapsibleListProps<TabType extends TabOptions> {
|
|
83
99
|
/**
|
|
84
100
|
* An array of collapsible list configurations.
|
|
85
101
|
*/
|
|
86
|
-
config: CollapsibleListConfig[];
|
|
102
|
+
config: CollapsibleListConfig<TabType>[];
|
|
103
|
+
/**
|
|
104
|
+
* Type of tab list: button or navLink
|
|
105
|
+
*/
|
|
106
|
+
tabType: TabType;
|
|
87
107
|
/**
|
|
88
108
|
* Function to handle the collapse button click event.
|
|
89
109
|
*
|
|
@@ -93,3 +113,4 @@ export interface CollapsibleListProps {
|
|
|
93
113
|
*/
|
|
94
114
|
onCollapseBtnClick?: (id: string, e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
95
115
|
}
|
|
116
|
+
export {};
|
|
@@ -27,10 +27,12 @@ export type DeploymentConfigDiffSelectPickerProps = {
|
|
|
27
27
|
text?: never;
|
|
28
28
|
selectPickerProps: SelectPickerProps;
|
|
29
29
|
};
|
|
30
|
-
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem
|
|
30
|
+
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem<'navLink'>, 'title'> {
|
|
31
31
|
hasDiff?: boolean;
|
|
32
|
+
href: string;
|
|
33
|
+
onClick: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
32
34
|
}
|
|
33
|
-
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig
|
|
35
|
+
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig<'navLink'>, 'id' | 'header' | 'noItemsText'> {
|
|
34
36
|
items: DeploymentConfigDiffNavigationItem[];
|
|
35
37
|
}
|
|
36
38
|
export interface DeploymentConfigDiffProps {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DescriptorProps } from './types';
|
|
2
|
-
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent,
|
|
2
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, }: DescriptorProps) => JSX.Element;
|
|
3
3
|
export default FeatureTitleWithInfo;
|
|
@@ -20,10 +20,4 @@ export interface DescriptorProps extends FeatureDescriptionModalProps {
|
|
|
20
20
|
docLinkText?: string;
|
|
21
21
|
dataTestId?: string;
|
|
22
22
|
additionalContent?: ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
* If true, the info icon is displayed which when clicked shows the feature description modal
|
|
25
|
-
*
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
showInfoIcon?: boolean;
|
|
29
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResponseType } from '../../../Common';
|
|
2
|
-
import {
|
|
3
|
-
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, signal, shouldShowError,
|
|
2
|
+
import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
|
|
3
|
+
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, signal, shouldShowError, }: PluginDetailServiceParamsType) => Promise<Pick<GetPluginStoreDataReturnType, "pluginStore">>;
|
|
4
4
|
export declare const getPluginStoreData: ({ searchKey, selectedTags, appId, offset, signal, }: GetPluginStoreDataServiceParamsType) => Promise<GetPluginStoreDataReturnType>;
|
|
5
5
|
export declare const getAvailablePluginTags: (appId: number) => Promise<string[]>;
|
|
6
|
-
export declare const getParentPluginList: (
|
|
6
|
+
export declare const getParentPluginList: (appId?: number) => Promise<ResponseType<MinParentPluginDTO[]>>;
|
|
@@ -13,7 +13,6 @@ export interface PluginAPIBaseQueryParamsType {
|
|
|
13
13
|
export interface GetPluginTagsPayloadType extends PluginAPIBaseQueryParamsType {
|
|
14
14
|
}
|
|
15
15
|
export interface GetParentPluginListPayloadType extends PluginAPIBaseQueryParamsType {
|
|
16
|
-
type?: 'ALL';
|
|
17
16
|
}
|
|
18
17
|
export interface PluginTagNamesDTO {
|
|
19
18
|
tagNames: string[];
|
|
@@ -51,7 +50,7 @@ export interface ParentPluginDTO {
|
|
|
51
50
|
pluginVersions: PluginVersionsDTO;
|
|
52
51
|
pluginIdentifier: string;
|
|
53
52
|
}
|
|
54
|
-
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'
|
|
53
|
+
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'> {
|
|
55
54
|
}
|
|
56
55
|
export interface PluginDetailDTO {
|
|
57
56
|
parentPlugins: ParentPluginDTO[];
|
|
@@ -61,7 +60,6 @@ export interface PluginDetailServiceParamsType {
|
|
|
61
60
|
appId: number;
|
|
62
61
|
pluginIds?: number[];
|
|
63
62
|
parentPluginIds?: number[];
|
|
64
|
-
parentPluginIdentifiers?: string[];
|
|
65
63
|
/**
|
|
66
64
|
* @default true
|
|
67
65
|
*/
|
|
@@ -71,7 +69,6 @@ export interface PluginDetailServiceParamsType {
|
|
|
71
69
|
export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsType, 'appId'> {
|
|
72
70
|
pluginId?: PluginDetailServiceParamsType['pluginIds'];
|
|
73
71
|
parentPluginId?: PluginDetailServiceParamsType['parentPluginIds'];
|
|
74
|
-
parentPluginIdentifier?: PluginDetailServiceParamsType['parentPluginIdentifiers'][number];
|
|
75
72
|
}
|
|
76
73
|
export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
|
|
77
74
|
selectedTags: string[];
|
|
@@ -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, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect,
|
|
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;
|
|
@@ -2,7 +2,7 @@ import { DropdownIndicatorProps, ControlProps, OptionProps, ClearIndicatorProps,
|
|
|
2
2
|
import { SelectPickerGroupHeadingProps, SelectPickerOptionType, SelectPickerProps } from './type';
|
|
3
3
|
export declare const SelectPickerDropdownIndicator: <OptionValue>(props: DropdownIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
4
4
|
export declare const SelectPickerClearIndicator: <OptionValue>(props: ClearIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
5
|
-
export declare const SelectPickerControl: <OptionValue>(props: ControlProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
5
|
+
export declare const SelectPickerControl: <OptionValue, IsMulti extends boolean>({ icon, showSelectedOptionIcon, ...props }: ControlProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "icon" | "showSelectedOptionIcon">) => JSX.Element;
|
|
6
6
|
export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "showSelectedOptionsCount" | "customSelectedOptionsCount">) => JSX.Element;
|
|
7
7
|
export declare const SelectPickerLoadingIndicator: () => JSX.Element;
|
|
8
8
|
export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
|
|
@@ -39,24 +39,17 @@ declare module 'react-select/base' {
|
|
|
39
39
|
* Imp Note: The menu open/close needs to handled by the consumer in this case
|
|
40
40
|
*/
|
|
41
41
|
renderCustomOptions?: () => ReactElement;
|
|
42
|
-
/**
|
|
43
|
-
* Icon to be rendered in the control
|
|
44
|
-
*/
|
|
45
|
-
icon?: ReactElement;
|
|
46
|
-
/**
|
|
47
|
-
* If true, the selected option icon is shown in the container.
|
|
48
|
-
* startIcon has higher priority than endIcon.
|
|
49
|
-
*
|
|
50
|
-
* @default 'true'
|
|
51
|
-
*/
|
|
52
|
-
showSelectedOptionIcon?: boolean;
|
|
53
42
|
}
|
|
54
43
|
}
|
|
55
44
|
export declare enum SelectPickerVariantType {
|
|
56
45
|
DEFAULT = "default",
|
|
57
46
|
BORDER_LESS = "border-less"
|
|
58
47
|
}
|
|
59
|
-
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' | '
|
|
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'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'>> & {
|
|
49
|
+
/**
|
|
50
|
+
* Icon to be rendered in the control
|
|
51
|
+
*/
|
|
52
|
+
icon?: ReactElement;
|
|
60
53
|
/**
|
|
61
54
|
* Error message for the select
|
|
62
55
|
*/
|
|
@@ -69,6 +62,13 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
69
62
|
* Label for the select. if required is added, the corresponding * is also added
|
|
70
63
|
*/
|
|
71
64
|
label?: ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* If true, the selected option icon is shown in the container.
|
|
67
|
+
* startIcon has higher priority than endIcon.
|
|
68
|
+
*
|
|
69
|
+
* @default 'true'
|
|
70
|
+
*/
|
|
71
|
+
showSelectedOptionIcon?: boolean;
|
|
72
72
|
/**
|
|
73
73
|
* Custom selected options count for use cases like filters
|
|
74
74
|
*/
|
|
@@ -140,14 +140,6 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
140
140
|
* @default false
|
|
141
141
|
*/
|
|
142
142
|
isCreatable?: boolean;
|
|
143
|
-
/**
|
|
144
|
-
* If false, the no options message is not shown
|
|
145
|
-
*
|
|
146
|
-
* Note: Handling for the menu distortion needs to be handled explicitly in this case
|
|
147
|
-
*
|
|
148
|
-
* @default true
|
|
149
|
-
*/
|
|
150
|
-
shouldShowNoOptionsMessage?: boolean;
|
|
151
143
|
} & (IsMulti extends true ? {
|
|
152
144
|
isMulti: IsMulti | boolean;
|
|
153
145
|
multiSelectProps?: {
|
|
@@ -171,7 +163,7 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
171
163
|
export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
|
|
172
164
|
isGroupHeadingSelectable: boolean;
|
|
173
165
|
};
|
|
174
|
-
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'
|
|
166
|
+
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'> {
|
|
175
167
|
appliedFilterOptions: SelectPickerOptionType[];
|
|
176
168
|
handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
|
|
177
169
|
}
|
|
@@ -9,7 +9,6 @@ export declare const getGroupCheckboxValue: <OptionValue>(groupHeadingOptions: r
|
|
|
9
9
|
* @param optionsList - The list of options or groups of options.
|
|
10
10
|
* @param value - The value to compare against the options' values.
|
|
11
11
|
* @param defaultOption - The default option to return if no match is found.
|
|
12
|
-
* @param getOptionValue - Override the default value for the option
|
|
13
12
|
* @returns The matched option or the default option if no match is found.
|
|
14
13
|
*/
|
|
15
|
-
export declare const getSelectPickerOptionByValue: <OptionValue>(optionsList: OptionsOrGroups<SelectPickerOptionType<OptionValue>, GroupBase<SelectPickerOptionType<OptionValue>>>, value: OptionValue, defaultOption?: SelectPickerOptionType<OptionValue
|
|
14
|
+
export declare const getSelectPickerOptionByValue: <OptionValue>(optionsList: OptionsOrGroups<SelectPickerOptionType<OptionValue>, GroupBase<SelectPickerOptionType<OptionValue>>>, value: OptionValue, defaultOption?: SelectPickerOptionType<OptionValue>) => SelectPickerOptionType<OptionValue>;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -104,6 +104,7 @@ export interface Node {
|
|
|
104
104
|
port: number;
|
|
105
105
|
canBeHibernated: boolean;
|
|
106
106
|
isHibernated: boolean;
|
|
107
|
+
hasDrift?: boolean;
|
|
107
108
|
}
|
|
108
109
|
export interface iNodes extends Array<iNode> {
|
|
109
110
|
}
|
|
@@ -375,7 +376,6 @@ export declare enum ResourceKindType {
|
|
|
375
376
|
tenant = "tenant",
|
|
376
377
|
installation = "installation",
|
|
377
378
|
environment = "environment",
|
|
378
|
-
ciPipeline = "ci-pipeline",
|
|
379
379
|
cdPipeline = "cd-pipeline",
|
|
380
380
|
project = "project"
|
|
381
381
|
}
|
|
@@ -396,9 +396,7 @@ export interface SeverityCount {
|
|
|
396
396
|
unknown: number;
|
|
397
397
|
}
|
|
398
398
|
export declare enum PolicyKindType {
|
|
399
|
-
lockConfiguration = "lock-configuration"
|
|
400
|
-
imagePromotion = "image-promotion",
|
|
401
|
-
plugins = "plugin"
|
|
399
|
+
lockConfiguration = "lock-configuration"
|
|
402
400
|
}
|
|
403
401
|
export interface LastExecutionResultType {
|
|
404
402
|
lastExecution: string;
|
|
@@ -14,8 +14,6 @@ export declare const MESSAGES: {
|
|
|
14
14
|
VALID_POSITIVE_INTEGER: string;
|
|
15
15
|
MAX_SAFE_INTEGER: string;
|
|
16
16
|
INVALID_SEMANTIC_VERSION: string;
|
|
17
|
-
INVALID_DATE: string;
|
|
18
|
-
DATE_BEFORE_CURRENT_TIME: string;
|
|
19
17
|
};
|
|
20
18
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
21
19
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
@@ -44,4 +42,3 @@ export declare const validateSemanticVersioning: (version: string) => Validation
|
|
|
44
42
|
*/
|
|
45
43
|
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|
|
46
44
|
export declare const validateJSON: (json: string) => ValidationResponseType;
|
|
47
|
-
export declare const validateDateAndTime: (date: Date) => ValidationResponseType;
|