@devtron-labs/devtron-fe-common-lib 4.0.1 → 4.0.2-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/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +2 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
- package/dist/Shared/Components/DatePicker/types.d.ts +11 -6
- package/dist/Shared/Components/DatePicker/utils.d.ts +7 -18
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/index.d.ts +1 -0
- package/dist/Shared/Components/FeatureDescription/types.d.ts +6 -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/type.d.ts +19 -20
- package/dist/Shared/types.d.ts +3 -1
- package/dist/{cssMode-CUsbCqAK.js → cssMode-DzZAlFXm.js} +1 -1
- package/dist/{freemarker2-DdlPBWeH.js → freemarker2-DQO2yiWh.js} +1 -1
- package/dist/{handlebars-I8AU3wni.js → handlebars-IrTn8N2Z.js} +1 -1
- package/dist/{html-Bb-6CXGT.js → html-DLBso2oN.js} +1 -1
- package/dist/{htmlMode-BHH3UyN-.js → htmlMode-Dx8V65o4.js} +1 -1
- package/dist/{index-Huj_UPmC.js → index-Btf7nBuW.js} +128159 -128280
- package/dist/index.js +430 -432
- package/dist/{javascript-Cp8f-boh.js → javascript-Dvn-Mpn4.js} +1 -1
- package/dist/{jsonMode-CI31wESU.js → jsonMode-DKuzVHCA.js} +1 -1
- package/dist/{liquid-DmgPaY22.js → liquid-BVJW9xij.js} +1 -1
- package/dist/{mdx-Bg1Hnor0.js → mdx-CgFHm_Sz.js} +1 -1
- package/dist/{python-CBQrPJ5r.js → python-BFJ7kh5W.js} +1 -1
- package/dist/{razor-CVAY1Goi.js → razor-CYjsrqGD.js} +1 -1
- package/dist/{tsMode-CV4nfjTE.js → tsMode-CMRuvqqP.js} +1 -1
- package/dist/{typescript-1vLwGoZB.js → typescript-CSXwlDVg.js} +1 -1
- package/dist/{xml-DbkmHRkP.js → xml-CCXFyBZo.js} +1 -1
- package/dist/{yaml-BFFlGLup.js → yaml-D8DXGT6k.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/utils.d.ts +0 -11
@@ -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';
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }:
|
1
|
+
import { BuildInfraDescriptorProps } from './types';
|
2
|
+
declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: BuildInfraDescriptorProps) => JSX.Element;
|
3
3
|
export default Descriptor;
|
@@ -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 { DescriptorProps } from './types';
|
2
|
-
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, }: DescriptorProps) => JSX.Element;
|
2
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, }: DescriptorProps) => JSX.Element;
|
3
3
|
export default FeatureTitleWithInfo;
|
@@ -20,4 +20,10 @@ 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;
|
23
29
|
}
|
@@ -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;
|
@@ -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
|
5
|
+
export declare const SelectPickerControl: <OptionValue>(props: ControlProps<SelectPickerOptionType<OptionValue>>) => 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,17 +39,24 @@ 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;
|
42
53
|
}
|
43
54
|
}
|
44
55
|
export declare enum SelectPickerVariantType {
|
45
56
|
DEFAULT = "default",
|
46
57
|
BORDER_LESS = "border-less"
|
47
58
|
}
|
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'>> & {
|
49
|
-
/**
|
50
|
-
* Icon to be rendered in the control
|
51
|
-
*/
|
52
|
-
icon?: ReactElement;
|
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' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'>> & {
|
53
60
|
/**
|
54
61
|
* Error message for the select
|
55
62
|
*/
|
@@ -62,13 +69,6 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
62
69
|
* Label for the select. if required is added, the corresponding * is also added
|
63
70
|
*/
|
64
71
|
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
|
*/
|
@@ -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
|
*
|
package/dist/Shared/types.d.ts
CHANGED
@@ -395,7 +395,9 @@ export interface SeverityCount {
|
|
395
395
|
unknown: number;
|
396
396
|
}
|
397
397
|
export declare enum PolicyKindType {
|
398
|
-
lockConfiguration = "lock-configuration"
|
398
|
+
lockConfiguration = "lock-configuration-dummy",
|
399
|
+
imagePromotion = "image-promotion",
|
400
|
+
plugins = "lock-configuration"
|
399
401
|
}
|
400
402
|
export interface LastExecutionResultType {
|
401
403
|
lastExecution: string;
|
@@ -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-Btf7nBuW.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-Btf7nBuW.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-Btf7nBuW.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-Btf7nBuW.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-Btf7nBuW.js";
|
5
5
|
/*!-----------------------------------------------------------------------------
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|