@devtron-labs/devtron-fe-common-lib 0.3.22-beta-5 → 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.
Files changed (29) hide show
  1. package/dist/Common/RJSF/widgets/Select.d.ts +1 -1
  2. package/dist/Common/RJSF/widgets/index.d.ts +1 -1
  3. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +2 -2
  4. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
  5. package/dist/Shared/Components/DatePicker/types.d.ts +13 -6
  6. package/dist/Shared/Components/DatePicker/utils.d.ts +7 -18
  7. package/dist/Shared/Components/FeatureDescription/index.d.ts +0 -1
  8. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  9. package/dist/Shared/Components/SelectPicker/type.d.ts +8 -9
  10. package/dist/Shared/types.d.ts +1 -3
  11. package/dist/{cssMode-CPgPbDLM.js → cssMode-C747TIGs.js} +1 -1
  12. package/dist/{freemarker2-CeHGPMkn.js → freemarker2-1ediScMp.js} +1 -1
  13. package/dist/{handlebars-DGu78HG_.js → handlebars-D-fdDj_H.js} +1 -1
  14. package/dist/{html-Cq1FpOOK.js → html-CsZtPcvV.js} +1 -1
  15. package/dist/{htmlMode-2L68N9fR.js → htmlMode-CxVsycv7.js} +1 -1
  16. package/dist/{index-DLlBmvl-.js → index-CeAW8WKd.js} +126916 -127080
  17. package/dist/index.js +420 -422
  18. package/dist/{javascript-VRHWHbC3.js → javascript-Dq8nojjk.js} +1 -1
  19. package/dist/{jsonMode-DmKWdtn1.js → jsonMode-jjrpIoeW.js} +1 -1
  20. package/dist/{liquid-BlTUDC4H.js → liquid-DW4b22vU.js} +1 -1
  21. package/dist/{mdx-BptGx33d.js → mdx-D8KFfKiO.js} +1 -1
  22. package/dist/{python-cr4-cCQi.js → python-DWhGhT1a.js} +1 -1
  23. package/dist/{razor-Nc939Xft.js → razor-D7QrL6CI.js} +1 -1
  24. package/dist/{tsMode-onNn4k2g.js → tsMode-DjGyw9gz.js} +1 -1
  25. package/dist/{typescript-bliZ60_Y.js → typescript-C7nhuHPy.js} +1 -1
  26. package/dist/{xml-Dohe4On-.js → xml-U1LoAyG1.js} +1 -1
  27. package/dist/{yaml-Byv4W4dt.js → yaml-BycIhoEv.js} +1 -1
  28. package/package.json +1 -1
  29. 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 Select: (props: WidgetProps) => JSX.Element;
2
+ export declare const SelectWidget: (props: WidgetProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export { Checkbox as CheckboxWidget } from './Checkbox';
2
- export { Select as SelectWidget } from './Select';
2
+ export { SelectWidget } from './Select';
@@ -1,3 +1,3 @@
1
- import { BuildInfraDescriptorProps } from './types';
2
- declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: BuildInfraDescriptorProps) => JSX.Element;
1
+ import { DescriptorProps } from './types';
2
+ declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: DescriptorProps) => JSX.Element;
3
3
  export default Descriptor;
@@ -48,7 +48,7 @@ export declare enum BuildInfraProfileVariants {
48
48
  NORMAL = "NORMAL",
49
49
  CUSTOM = "CUSTOM"
50
50
  }
51
- export interface BuildInfraDescriptorProps {
51
+ export interface DescriptorProps {
52
52
  /**
53
53
  * In case we want to restrict the max-width
54
54
  */
@@ -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 { OptionType } from '../../../Common';
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: OptionType;
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: Date) => void;
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: OptionType;
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: OptionType;
84
+ selectedTimeOption: DateSelectPickerType;
82
85
  }
83
- export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'onChange' | 'timePickerProps' | 'error' | 'disabled' | 'dataTestIdForTime'>, Pick<SingleDatePickerShape, 'openDirection'> {
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 { OptionType } from '../../../Common';
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 {OptionType[]}
11
+ * @type {SelectPickerOptionType[]}
22
12
  */
23
- export declare const DEFAULT_TIME_OPTIONS: OptionType[];
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) => Date;
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,2 @@
1
1
  export * from './FeatureDescriptionModal';
2
2
  export { default as FeatureTitleWithInfo } from './FeatureTitleWithInfo';
3
- export * from './types';
@@ -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?: Pick<CreatableProps<SelectPickerOptionType<OptionValue>, true, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'> & {
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
  *
@@ -395,9 +395,7 @@ export interface SeverityCount {
395
395
  unknown: number;
396
396
  }
397
397
  export declare enum PolicyKindType {
398
- lockConfiguration = "lock-configuration",
399
- imagePromotion = "image-promotion",
400
- plugins = "lock-configuration"
398
+ lockConfiguration = "lock-configuration"
401
399
  }
402
400
  export interface LastExecutionResultType {
403
401
  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-DLlBmvl-.js";
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-DLlBmvl-.js";
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-DLlBmvl-.js";
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-DLlBmvl-.js";
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-DLlBmvl-.js";
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)