@devtron-labs/devtron-fe-common-lib 1.20.6-alpha-88 → 1.20.6-alpha-94
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-DVU9sU7X.js → @code-editor-Dv9qqBjc.js} +7459 -7438
- package/dist/{@common-rjsf-BD0ICu35.js → @common-rjsf-Czgct-vj.js} +22 -22
- package/dist/{@framer-motion-BbD0XILR.js → @framer-motion-LZK2bgCK.js} +61 -61
- package/dist/{@react-dates-DLCF81bK.js → @react-dates-CbpfVsC0.js} +1 -1
- package/dist/{@react-select-CK9Bxd-k.js → @react-select-BuPEYnTv.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-J61SX97M.js → @react-virtualized-sticky-tree-DX7VkyTZ.js} +1 -1
- package/dist/{@vendor-DEAetXNs.js → @vendor-BsABdDGm.js} +14677 -13807
- 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 +3 -1
- package/dist/Shared/Components/Table/types.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +9 -0
- package/dist/Shared/Services/common.service.d.ts +1 -1
- package/dist/Shared/validations.d.ts +1 -1
- package/dist/index.js +355 -354
- package/package.json +3 -1
|
@@ -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, 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;
|
|
136
|
+
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, keyboardShortcut, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, isUserIdentifier, 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, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
|
|
10
|
+
export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, isUserIdentifier, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis" | "isUserIdentifier">) => 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;
|
|
@@ -206,6 +206,7 @@ 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;
|
|
209
210
|
multiSelectProps?: Partial<Pick<SelectProps<OptionValue, IsMulti>, 'customDisplayText'>> & {
|
|
210
211
|
/**
|
|
211
212
|
* If true, the group heading can be selected
|
|
@@ -223,11 +224,12 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
223
224
|
} : {
|
|
224
225
|
isMulti?: never;
|
|
225
226
|
multiSelectProps?: never;
|
|
227
|
+
isUserIdentifier?: never;
|
|
226
228
|
});
|
|
227
229
|
export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
|
|
228
230
|
isGroupHeadingSelectable: boolean;
|
|
229
231
|
};
|
|
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'> {
|
|
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' | 'isUserIdentifier'> {
|
|
231
233
|
appliedFilterOptions: SelectPickerOptionType[];
|
|
232
234
|
handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
|
|
233
235
|
}
|
|
@@ -91,6 +91,7 @@ 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;
|
|
94
95
|
} & Pick<BulkActionsComponentProps, 'bulkActionsData'> & Pick<BulkOperationModalProps, 'bulkOperationModalData'>;
|
|
95
96
|
export declare enum PaginationEnum {
|
|
96
97
|
PAGINATED = "paginated",
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -105,4 +105,13 @@ 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;
|
|
108
117
|
export {};
|
|
@@ -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: () => Promise<ClusterType[]>;
|
|
8
|
+
export declare const getClusterOptions: (signal?: AbortSignal) => 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: (expression: string) => ValidationResponseType;
|