@devtron-labs/devtron-fe-common-lib 0.0.91-beta-7 → 0.0.91-beta-12

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 (100) hide show
  1. package/dist/Common/Api.d.ts +1 -1
  2. package/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -1
  3. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -0
  4. package/dist/Common/BreadCrumb/Types.d.ts +4 -0
  5. package/dist/Common/Checkbox.d.ts +1 -1
  6. package/dist/Common/CodeEditor/CodeEditor.d.ts +1 -1
  7. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +1 -1
  8. package/dist/Common/Common.service.d.ts +1 -1
  9. package/dist/Common/Constants.d.ts +1 -0
  10. package/dist/Common/CustomTagSelector/Types.d.ts +1 -1
  11. package/dist/Common/Dialogs/DeleteDialog.d.ts +1 -1
  12. package/dist/Common/Dialogs/DialogForm.d.ts +1 -1
  13. package/dist/Common/Helper.d.ts +2 -2
  14. package/dist/Common/Hooks/useStateFilters/types.d.ts +4 -1
  15. package/dist/Common/Modals/Modal.d.ts +1 -1
  16. package/dist/Common/MultiSelectCustomization.d.ts +8 -0
  17. package/dist/Common/Policy.Types.d.ts +1 -1
  18. package/dist/Common/RJSF/common/FieldRow.d.ts +1 -1
  19. package/dist/Common/RJSF/config.d.ts +1 -1
  20. package/dist/Common/RJSF/types.d.ts +1 -1
  21. package/dist/Common/RadioGroup/RadioGroup.d.ts +1 -1
  22. package/dist/Common/ResizableTextarea.d.ts +1 -1
  23. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  24. package/dist/Common/SearchBar/types.d.ts +4 -0
  25. package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +1 -1
  26. package/dist/Common/Select/Select.d.ts +1 -1
  27. package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -1
  28. package/dist/Common/SortableTableHeaderCell/types.d.ts +0 -5
  29. package/dist/Common/Types.d.ts +4 -4
  30. package/dist/Common/index.d.ts +1 -1
  31. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +1 -1
  32. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +1 -1
  33. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +1 -1
  34. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +1 -1
  35. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +1 -1
  36. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +1 -1
  37. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +1 -1
  38. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +1 -1
  39. package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +1 -1
  40. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
  41. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +1 -1
  42. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +3 -3
  43. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +0 -2
  44. package/dist/Shared/Components/APIResponseHandler/types.d.ts +2 -2
  45. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +1 -1
  46. package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +1 -1
  47. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
  48. package/dist/Shared/Components/CICDHistory/service.d.ts +1 -1
  49. package/dist/Shared/Components/CICDHistory/types.d.ts +3 -3
  50. package/dist/Shared/Components/DatePicker/DateTimePicker.d.ts +4 -0
  51. package/dist/Shared/Components/DatePicker/MonthlySelect.d.ts +3 -0
  52. package/dist/Shared/Components/DatePicker/SingleDatePickerComponent.d.ts +12 -0
  53. package/dist/Shared/Components/DatePicker/TimeSelect.d.ts +3 -0
  54. package/dist/Shared/Components/DatePicker/constants.d.ts +122 -0
  55. package/dist/Shared/Components/DatePicker/index.d.ts +7 -0
  56. package/dist/Shared/Components/DatePicker/types.d.ts +118 -0
  57. package/dist/Shared/Components/DatePicker/utils.d.ts +51 -0
  58. package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
  59. package/dist/Shared/Components/Header/service.d.ts +1 -1
  60. package/dist/Shared/Components/ImageCard/types.d.ts +2 -2
  61. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +2 -2
  62. package/dist/Shared/Components/ReactSelect/constants.d.ts +14 -0
  63. package/dist/Shared/Components/ReactSelect/index.d.ts +1 -0
  64. package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -4
  65. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +1 -1
  66. package/dist/Shared/Components/index.d.ts +1 -1
  67. package/dist/Shared/Helpers.d.ts +3 -3
  68. package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +1 -1
  69. package/dist/Shared/Providers/types.d.ts +2 -2
  70. package/dist/Shared/Services/types.d.ts +1 -1
  71. package/dist/Shared/index.d.ts +0 -1
  72. package/dist/Shared/types.d.ts +4 -46
  73. package/dist/assets/index.css +1 -1
  74. package/dist/assets/{yaml.worker-632eebb8.js → yaml.worker-9ae72aad.js} +237 -236
  75. package/dist/{cssMode-10711ca4.js → cssMode-14bf039d.js} +1 -1
  76. package/dist/{freemarker2-3c28550c.js → freemarker2-842eab20.js} +1 -1
  77. package/dist/{handlebars-fc9c420f.js → handlebars-c978a9cd.js} +1 -1
  78. package/dist/{html-60370346.js → html-b85776aa.js} +1 -1
  79. package/dist/{htmlMode-efbf16cc.js → htmlMode-63749eff.js} +1 -1
  80. package/dist/{index-3b564bac.js → index-8d713386.js} +69293 -53632
  81. package/dist/index.js +393 -376
  82. package/dist/{javascript-78808417.js → javascript-e741f6bc.js} +1 -1
  83. package/dist/{jsonMode-900328af.js → jsonMode-36e3a4a7.js} +1 -1
  84. package/dist/{liquid-f1a7cb7a.js → liquid-34e7d9f6.js} +1 -1
  85. package/dist/{mdx-1e65c26b.js → mdx-ab008f06.js} +1 -1
  86. package/dist/{python-5b4a2603.js → python-b43a0488.js} +1 -1
  87. package/dist/{razor-9ad07b04.js → razor-c7900164.js} +1 -1
  88. package/dist/{tsMode-2484b2ad.js → tsMode-4efa66d4.js} +1 -1
  89. package/dist/{typescript-f3fd327c.js → typescript-92dea82c.js} +1 -1
  90. package/dist/{xml-34b27f33.js → xml-f2bfd4b0.js} +1 -1
  91. package/dist/{yaml-ce48b3d4.js → yaml-0873fd6a.js} +1 -1
  92. package/package.json +5 -3
  93. package/dist/Shared/API/APIQueuing.d.ts +0 -11
  94. package/dist/Shared/API/index.d.ts +0 -1
  95. package/dist/Shared/Components/EnvironmentSelector/EnvironmentSelector.component.d.ts +0 -4
  96. package/dist/Shared/Components/EnvironmentSelector/constants.d.ts +0 -5
  97. package/dist/Shared/Components/EnvironmentSelector/index.d.ts +0 -1
  98. package/dist/Shared/Components/EnvironmentSelector/service.d.ts +0 -3
  99. package/dist/Shared/Components/EnvironmentSelector/types.d.ts +0 -27
  100. package/dist/Shared/Components/EnvironmentSelector/utils.d.ts +0 -6
@@ -0,0 +1,118 @@
1
+ import { Moment } from 'moment';
2
+ import { SelectInstance } from 'react-select';
3
+ import { OptionType } from '../../../Common';
4
+
5
+ export interface SingleDatePickerProps {
6
+ /**
7
+ * Date value to be displayed
8
+ */
9
+ date: Moment;
10
+ /**
11
+ * Function to handle date change
12
+ */
13
+ handleDatesChange: (e: any) => void;
14
+ /**
15
+ * Value to make date picker read only
16
+ */
17
+ readOnly?: boolean;
18
+ /**
19
+ * Value to block today's date
20
+ */
21
+ isTodayBlocked?: boolean;
22
+ /**
23
+ * Value to block today's date
24
+ */
25
+ datePickerProps?: any;
26
+ /**
27
+ * Display format for the date
28
+ */
29
+ displayFormat?: string;
30
+ }
31
+ export interface DateSelectProps {
32
+ /**
33
+ * Current selected date object
34
+ *
35
+ * @default 'new Date()'
36
+ */
37
+ selectedDate: OptionType;
38
+ /**
39
+ * Handler for updating the date from the parent component
40
+ */
41
+ handleOnChange: (date: OptionType) => void;
42
+ }
43
+ export interface TimeSelectProps {
44
+ /**
45
+ * Current selected date object
46
+ *
47
+ * @default 'new Date()'
48
+ */
49
+ date?: Date;
50
+ /**
51
+ * Handler for updating the date from the parent component
52
+ */
53
+ onChange: (date: Date) => void;
54
+ /**
55
+ * Props for the time picker
56
+ */
57
+ timePickerProps?: SelectInstance;
58
+ /**
59
+ * Error message for the DateTime picker component
60
+ */
61
+ error?: string;
62
+ /**
63
+ * If true, both the date and time picker are disabled
64
+ */
65
+ disabled?: boolean;
66
+ /**
67
+ * Id for the component
68
+ */
69
+ default12HourTime: OptionType;
70
+ }
71
+ export interface DateTimePickerProps {
72
+ /**
73
+ * Current selected date object
74
+ *
75
+ * @default 'new Date()'
76
+ */
77
+ date?: Date;
78
+ /**
79
+ * Handler for updating the date from the parent component
80
+ */
81
+ onChange: (date: Date) => void;
82
+ /**
83
+ * Props for the date picker
84
+ */
85
+ datePickerProps?: any;
86
+ /**
87
+ * Props for the time picker
88
+ */
89
+ timePickerProps?: SelectInstance;
90
+ /**
91
+ * Error message for the DateTime picker component
92
+ */
93
+ error?: string;
94
+ /**
95
+ * If true, both the date and time picker are disabled
96
+ */
97
+ disabled?: boolean;
98
+ /**
99
+ * Id for the component
100
+ */
101
+ id: string;
102
+ /**
103
+ * Label for the component
104
+ */
105
+ label?: string;
106
+ /**
107
+ * If true, the field is required and asterisk is shown
108
+ */
109
+ required?: boolean;
110
+ /**
111
+ * To hide time selector
112
+ */
113
+ hideTimeSelect?: boolean;
114
+ /**
115
+ * To make the field read only
116
+ */
117
+ readOnly?: boolean;
118
+ }
@@ -0,0 +1,51 @@
1
+ import { default as dayjs } from 'dayjs';
2
+ import { OptionType } from '../../../Common';
3
+
4
+ export declare const getTimePickerStyles: () => {
5
+ container: (base: any) => any;
6
+ control: (base: any, state: any) => any;
7
+ menu: (base: any) => any;
8
+ singleValue: (base: any) => any;
9
+ placeholder: (base: any) => any;
10
+ option: (base: any, state: any) => any;
11
+ valueContainer: (base: any) => any;
12
+ dropdownIndicator: (base: any) => any;
13
+ };
14
+ /**
15
+ * Return the options for the dates in label and value format
16
+ */
17
+ export declare const MONTHLY_DATE_OPTIONS: {
18
+ label: string;
19
+ value: string;
20
+ }[];
21
+ /**
22
+ * Return the options for the time in label and value format
23
+ * @type {OptionType[]}
24
+ */
25
+ export declare const DEFAULT_TIME_OPTIONS: OptionType[];
26
+ /**
27
+ * @returns True if the date is before today's date
28
+ */
29
+ export declare const disablePreviousDates: (current: dayjs.Dayjs) => boolean;
30
+ /**
31
+ * Get the time value from the date object in the format: `hh:mm:ss`
32
+ */
33
+ export declare const getTimeValue: (currentDateObj: Date) => string;
34
+ /**
35
+ * Updates the time in the given date object and returns the updated object
36
+ */
37
+ export declare const updateTime: (currentDateObj: Date, timeString: string) => Date;
38
+ /**
39
+ * Updates the date in the given date object and returns the updated object
40
+ */
41
+ export declare const updateDate: (currentDateObj: Date, newDate: Date) => Date;
42
+ /**
43
+ * Get the default date from the time to live
44
+ * @param timeToLive
45
+ * @returns
46
+ */
47
+ export declare const getDefaultDateFromTimeToLive: (timeToLive: string, isTomorrow?: boolean) => Date;
48
+ /**
49
+ * Clock icon for the time picker
50
+ */
51
+ export declare const DropdownIndicatorTimePicker: (props: any) => JSX.Element;
@@ -1,5 +1,5 @@
1
- import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
2
1
  import { ImageType } from '../../../Common';
2
+ import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
3
3
 
4
4
  export interface FeatureDescriptionModalProps {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { ServerInfoResponse } from './types';
2
1
  import { ResponseType } from '../../../Common';
2
+ import { ServerInfoResponse } from './types';
3
3
 
4
4
  export declare const updatePostHogEvent: (payload: any) => Promise<ResponseType>;
5
5
  export declare const getServerInfo: (withoutStatus: boolean, isFormHeader: boolean) => Promise<ServerInfoResponse>;
@@ -1,6 +1,6 @@
1
- import { RegistryType } from '../..';
2
- import { ImageTaggingContainerType } from '../../../Common';
3
1
  import { ReactNode } from 'react';
2
+ import { ImageTaggingContainerType } from '../../../Common';
3
+ import { RegistryType } from '../..';
4
4
 
5
5
  export interface ArtifactInfoProps {
6
6
  imagePath: string;
@@ -1,6 +1,6 @@
1
- import { MaterialSecurityInfoType } from '../../types';
2
- import { CDModalTabType, VulnerabilityType } from '../../../Common';
3
1
  import { default as React, ReactNode } from 'react';
2
+ import { CDModalTabType, VulnerabilityType } from '../../../Common';
3
+ import { MaterialSecurityInfoType } from '../../types';
4
4
 
5
5
  export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
6
6
  isSecurityModuleInstalled: boolean;
@@ -0,0 +1,14 @@
1
+ export declare const CommonGroupedDropdownStyles: {
2
+ container: (base: any, state: any) => any;
3
+ control: (base: any, state: any) => any;
4
+ singleValue: (base: any) => any;
5
+ option: (base: any, state: any) => any;
6
+ valueContainer: (base: any) => any;
7
+ dropdownIndicator: (base: any, state: any) => any;
8
+ group: (base: any) => any;
9
+ groupHeading: (base: any) => any;
10
+ menuList: (base: any) => any;
11
+ multiValue: (base: any) => any;
12
+ multiValueLabel: (base: any) => any;
13
+ placeholder: (base: any) => any;
14
+ };
@@ -1 +1,2 @@
1
1
  export * from './utils';
2
+ export * from './constants';
@@ -8,8 +8,6 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
8
8
  loadingMessage: (base: any) => any;
9
9
  noOptionsMessage: (base: any) => any;
10
10
  placeholder: (base: any) => any;
11
- group: (base: any) => any;
12
- groupHeading: (base: any) => any;
13
11
  };
14
12
  export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (base: any, state: any) => any;
15
13
  export declare const SelectOption: (props: any) => JSX.Element;
@@ -25,6 +23,4 @@ export declare const commonSelectStyles: {
25
23
  loadingMessage: (base: any) => any;
26
24
  noOptionsMessage: (base: any) => any;
27
25
  placeholder: (base: any) => any;
28
- group: (base: any) => any;
29
- groupHeading: (base: any) => any;
30
26
  };
@@ -1,5 +1,5 @@
1
- import { ScannedByToolModalProps } from './types';
2
1
  import { default as React } from 'react';
2
+ import { ScannedByToolModalProps } from './types';
3
3
 
4
4
  declare const ScannedByToolModal: React.FC<ScannedByToolModalProps>;
5
5
  export default ScannedByToolModal;
@@ -17,10 +17,10 @@ export * from './Header';
17
17
  export * from './AnnouncementBanner';
18
18
  export * from './ButtonWithLoader';
19
19
  export * from './ButtonWithSelector';
20
- export * from './EnvironmentSelector';
21
20
  export * from './ModalSidebarPanel';
22
21
  export * from './ImageWithFallback';
23
22
  export * from './FeatureDescription';
24
23
  export * from './CICDHistory';
25
24
  export * from './GitCommitInfoGeneric';
26
25
  export * from './Error';
26
+ export * from './DatePicker';
@@ -1,7 +1,7 @@
1
- import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
2
- import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
3
- import { MaterialInfo, SortingOrder } from '../Common';
4
1
  import { ReactElement } from 'react';
2
+ import { MaterialInfo, SortingOrder } from '../Common';
3
+ import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
4
+ import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
5
5
 
6
6
  interface HighlightSearchTextProps {
7
7
  /**
@@ -1,5 +1,5 @@
1
- import { UseUserEmailContextType } from './types';
2
1
  import { default as React } from 'react';
2
+ import { UseUserEmailContextType } from './types';
3
3
 
4
4
  export declare const useUserEmail: () => UseUserEmailContextType;
5
5
  export declare const UserEmailProvider: React.FC<{}>;
@@ -1,6 +1,6 @@
1
- import { SERVER_MODE } from '../../Common';
2
- import { ServerInfo } from '../Components/Header/types';
3
1
  import { MutableRefObject, ReactNode } from 'react';
2
+ import { ServerInfo } from '../Components/Header/types';
3
+ import { SERVER_MODE } from '../../Common';
4
4
 
5
5
  export interface MainContext {
6
6
  serverMode: SERVER_MODE;
@@ -1,5 +1,5 @@
1
- import { ResourceKindType, ResourceVersionType } from '../types';
2
1
  import { getUrlWithSearchParams } from '../../Common';
2
+ import { ResourceKindType, ResourceVersionType } from '../types';
3
3
 
4
4
  export interface ClusterType {
5
5
  id: number;
@@ -7,4 +7,3 @@ export * from './constants';
7
7
  export * from './Services';
8
8
  export * from './Store';
9
9
  export * from './Hooks';
10
- export * from './API';
@@ -1,5 +1,5 @@
1
+ import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes } from '../Common';
1
2
  import { EnvironmentTypeEnum, PatchOperationType } from './constants';
2
- import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors } from '../Common';
3
3
 
4
4
  export declare enum EnvType {
5
5
  CHART = "helm_charts",
@@ -418,35 +418,6 @@ export declare enum AggregationKeys {
418
418
  Namespaces = "Namespaces"
419
419
  }
420
420
  export type AggregationKeysType = keyof typeof AggregationKeys;
421
- export interface AppInfoListType {
422
- application: string;
423
- appStatus: string;
424
- deploymentStatus: string;
425
- lastDeployed: string;
426
- lastDeployedImage?: string;
427
- lastDeployedBy?: string;
428
- appId: number;
429
- envId: number;
430
- pipelineId?: number;
431
- commits?: string[];
432
- ciArtifactId?: number;
433
- }
434
- export interface EnvListMinDTO {
435
- id: number;
436
- active: boolean;
437
- allowedDeploymentTypes: DeploymentAppTypes[] | null;
438
- appCount: number;
439
- cluster_id: number;
440
- cluster_name: string;
441
- default: boolean;
442
- description: string;
443
- environmentIdentifier: string;
444
- environment_name: string;
445
- isClusterCdActive: boolean;
446
- isDigestEnforcedForEnv: boolean;
447
- isVirtualEnvironment: boolean;
448
- namespace: string;
449
- }
450
421
  export interface EnvironmentType {
451
422
  /**
452
423
  * Unique identifier for the environment
@@ -483,24 +454,11 @@ export declare enum DependencyType {
483
454
  DOWNSTREAM = "downstream",
484
455
  LEVEL = "level"
485
456
  }
457
+ export interface scrollableInterface {
458
+ autoBottomScroll: boolean;
459
+ }
486
460
  export declare enum PromiseAllStatusType {
487
461
  FULFILLED = "fulfilled",
488
462
  REJECTED = "rejected"
489
463
  }
490
- export type ApiQueuingWithBatchResponseItem<T> = {
491
- status: PromiseAllStatusType.FULFILLED;
492
- value: T;
493
- } | {
494
- status: PromiseAllStatusType.REJECTED;
495
- reason: ServerErrors;
496
- };
497
- export interface BatchConfigType {
498
- lastIndex: number;
499
- results: any[];
500
- concurrentCount: number;
501
- completedCalls: number;
502
- }
503
- export interface scrollableInterface {
504
- autoBottomScroll: boolean;
505
- }
506
464
  export {};