@devtron-labs/devtron-fe-common-lib 0.3.22-beta-6 → 0.3.22-beta-8
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/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +0 -6
- package/dist/Shared/Components/CICDHistory/utils.d.ts +0 -1
- package/dist/Shared/Components/DatePicker/types.d.ts +13 -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-DC74mpyy.js → cssMode-C747TIGs.js} +1 -1
- package/dist/{freemarker2-DICr6qIU.js → freemarker2-1ediScMp.js} +1 -1
- package/dist/{handlebars-CBWQeKyY.js → handlebars-D-fdDj_H.js} +1 -1
- package/dist/{html-Bfdjf1aI.js → html-CsZtPcvV.js} +1 -1
- package/dist/{htmlMode-Bce4Q6aS.js → htmlMode-CxVsycv7.js} +1 -1
- package/dist/{index-CwSt2WJr.js → index-CeAW8WKd.js} +127662 -127894
- package/dist/index.js +423 -426
- package/dist/{javascript-C2wEoQ7-.js → javascript-Dq8nojjk.js} +1 -1
- package/dist/{jsonMode-DTj3JaMy.js → jsonMode-jjrpIoeW.js} +1 -1
- package/dist/{liquid-Be7ecPmd.js → liquid-DW4b22vU.js} +1 -1
- package/dist/{mdx-BP_OPA1_.js → mdx-D8KFfKiO.js} +1 -1
- package/dist/{python-ng5HTVt2.js → python-DWhGhT1a.js} +1 -1
- package/dist/{razor-CmoSmdIj.js → razor-D7QrL6CI.js} +1 -1
- package/dist/{tsMode-BVrLdcMc.js → tsMode-DjGyw9gz.js} +1 -1
- package/dist/{typescript-CJY8BxL4.js → typescript-C7nhuHPy.js} +1 -1
- package/dist/{xml-Dzi_mEbt.js → xml-U1LoAyG1.js} +1 -1
- package/dist/{yaml-7wkBuvOs.js → yaml-BycIhoEv.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
1
|
import { LogStageAccordionProps } from './types';
|
|
2
|
-
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView,
|
|
2
|
+
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, }: LogStageAccordionProps) => JSX.Element;
|
|
3
3
|
export default LogStageAccordion;
|
|
@@ -635,17 +635,11 @@ 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;
|
|
639
638
|
}
|
|
640
639
|
export interface CreateMarkupReturnType {
|
|
641
640
|
__html: string;
|
|
642
641
|
isSearchKeyPresent: boolean;
|
|
643
642
|
}
|
|
644
|
-
export interface CreateMarkupPropsType {
|
|
645
|
-
log: string;
|
|
646
|
-
useCurrentSelectionColor?: boolean;
|
|
647
|
-
targetSearchKey?: string;
|
|
648
|
-
}
|
|
649
643
|
export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
|
|
650
644
|
export declare const terminalStatus: Set<string>;
|
|
651
645
|
export declare const statusSet: Set<string>;
|
|
@@ -5,4 +5,3 @@ 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: number, 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,16 @@ export interface SingleDatePickerProps {
|
|
|
32
32
|
*/
|
|
33
33
|
dataTestId?: string;
|
|
34
34
|
}
|
|
35
|
+
export interface DateSelectPickerType extends SelectPickerOptionType {
|
|
36
|
+
value: string;
|
|
37
|
+
}
|
|
35
38
|
export interface MonthlySelectProps extends Pick<SingleDatePickerProps, 'dataTestId'> {
|
|
36
39
|
/**
|
|
37
40
|
* Current selected date object
|
|
38
41
|
*
|
|
39
42
|
* @default 'new Date()'
|
|
40
43
|
*/
|
|
41
|
-
selectedMonthlyDate:
|
|
44
|
+
selectedMonthlyDate: DateSelectPickerType;
|
|
42
45
|
/**
|
|
43
46
|
* Onchange handle picker type
|
|
44
47
|
*/
|
|
@@ -54,7 +57,7 @@ export interface TimeSelectProps {
|
|
|
54
57
|
/**
|
|
55
58
|
* Handler for updating the date from the parent component
|
|
56
59
|
*/
|
|
57
|
-
onChange: (date:
|
|
60
|
+
onChange: (date: DateSelectPickerType) => void;
|
|
58
61
|
/**
|
|
59
62
|
* Props for the time picker
|
|
60
63
|
*/
|
|
@@ -70,7 +73,7 @@ export interface TimeSelectProps {
|
|
|
70
73
|
/**
|
|
71
74
|
* Id for the component
|
|
72
75
|
*/
|
|
73
|
-
default12HourTime:
|
|
76
|
+
default12HourTime: DateSelectPickerType;
|
|
74
77
|
/**
|
|
75
78
|
* Data test id for time picker
|
|
76
79
|
*/
|
|
@@ -78,9 +81,9 @@ export interface TimeSelectProps {
|
|
|
78
81
|
/**
|
|
79
82
|
* To hide time selector
|
|
80
83
|
*/
|
|
81
|
-
selectedTimeOption:
|
|
84
|
+
selectedTimeOption: DateSelectPickerType;
|
|
82
85
|
}
|
|
83
|
-
export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | '
|
|
86
|
+
export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'timePickerProps' | 'error' | 'disabled' | 'dataTestIdForTime'>, Pick<SingleDatePickerShape, 'openDirection'> {
|
|
84
87
|
/**
|
|
85
88
|
* Props for the date picker
|
|
86
89
|
*/
|
|
@@ -113,4 +116,8 @@ export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'onC
|
|
|
113
116
|
* Data test id for date picker
|
|
114
117
|
*/
|
|
115
118
|
dataTestidForDate?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Function to handle date change
|
|
121
|
+
*/
|
|
122
|
+
onChange: (date: Date) => void;
|
|
116
123
|
}
|
|
@@ -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'>> & 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-CeAW8WKd.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-CeAW8WKd.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-CeAW8WKd.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-CeAW8WKd.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-CeAW8WKd.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|