@devtron-labs/devtron-fe-common-lib 4.0.1 → 4.0.2
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/Shared/Components/DatePicker/types.d.ts +11 -6
- package/dist/Shared/Components/DatePicker/utils.d.ts +7 -18
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +8 -9
- package/dist/{cssMode-CUsbCqAK.js → cssMode-BKAw6Gjy.js} +1 -1
- package/dist/{freemarker2-DdlPBWeH.js → freemarker2-CaToeyV1.js} +1 -1
- package/dist/{handlebars-I8AU3wni.js → handlebars-BcuRt7Wx.js} +1 -1
- package/dist/{html-Bb-6CXGT.js → html-BHs6br3H.js} +1 -1
- package/dist/{htmlMode-BHH3UyN-.js → htmlMode-BHPPU3R8.js} +1 -1
- package/dist/{index-Huj_UPmC.js → index-ByQvKL1i.js} +59038 -59159
- package/dist/index.js +430 -432
- package/dist/{javascript-Cp8f-boh.js → javascript-CgB6Ukwh.js} +1 -1
- package/dist/{jsonMode-CI31wESU.js → jsonMode-BQ72p6WC.js} +1 -1
- package/dist/{liquid-DmgPaY22.js → liquid-BSnWNlwJ.js} +1 -1
- package/dist/{mdx-Bg1Hnor0.js → mdx-CmG3JYo6.js} +1 -1
- package/dist/{python-CBQrPJ5r.js → python-DsZUSBx9.js} +1 -1
- package/dist/{razor-CVAY1Goi.js → razor-DMf-FT32.js} +1 -1
- package/dist/{tsMode-CV4nfjTE.js → tsMode-DpDNESk7.js} +1 -1
- package/dist/{typescript-1vLwGoZB.js → typescript-fK9cd2PO.js} +1 -1
- package/dist/{xml-DbkmHRkP.js → xml-DbdPKzSs.js} +1 -1
- package/dist/{yaml-BFFlGLup.js → yaml-Dn628uiu.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,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;
|
@@ -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'>> & Partial<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)
|