@devtron-labs/devtron-fe-common-lib 0.0.91-beta-6 → 0.0.91-beta-9

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 (79) 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 +1 -1
  4. package/dist/Common/Checkbox.d.ts +1 -1
  5. package/dist/Common/CodeEditor/CodeEditor.d.ts +1 -1
  6. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +1 -1
  7. package/dist/Common/Common.service.d.ts +1 -1
  8. package/dist/Common/Constants.d.ts +1 -0
  9. package/dist/Common/CustomTagSelector/Types.d.ts +1 -1
  10. package/dist/Common/Dialogs/DeleteDialog.d.ts +1 -1
  11. package/dist/Common/Dialogs/DialogForm.d.ts +1 -1
  12. package/dist/Common/Helper.d.ts +2 -2
  13. package/dist/Common/Modals/Modal.d.ts +1 -1
  14. package/dist/Common/Policy.Types.d.ts +1 -1
  15. package/dist/Common/RJSF/common/FieldRow.d.ts +1 -1
  16. package/dist/Common/RJSF/config.d.ts +1 -1
  17. package/dist/Common/RJSF/types.d.ts +1 -1
  18. package/dist/Common/RadioGroup/RadioGroup.d.ts +1 -1
  19. package/dist/Common/ResizableTextarea.d.ts +1 -1
  20. package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +1 -1
  21. package/dist/Common/Select/Select.d.ts +1 -1
  22. package/dist/Common/Types.d.ts +4 -4
  23. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +1 -1
  24. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +1 -1
  25. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +1 -1
  26. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +1 -1
  27. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +1 -1
  28. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +1 -1
  29. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +1 -1
  30. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +1 -1
  31. package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +1 -1
  32. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
  33. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +1 -1
  34. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +3 -3
  35. package/dist/Shared/Components/APIResponseHandler/types.d.ts +2 -2
  36. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +1 -1
  37. package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +1 -1
  38. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
  39. package/dist/Shared/Components/CICDHistory/service.d.ts +1 -1
  40. package/dist/Shared/Components/CICDHistory/types.d.ts +3 -3
  41. package/dist/Shared/Components/DatePicker/DateSelect.d.ts +3 -0
  42. package/dist/Shared/Components/DatePicker/DateTimePicker.d.ts +4 -0
  43. package/dist/Shared/Components/DatePicker/SingleDatePickerComponent.d.ts +12 -0
  44. package/dist/Shared/Components/DatePicker/TimeSelect.d.ts +3 -0
  45. package/dist/Shared/Components/DatePicker/constants.d.ts +122 -0
  46. package/dist/Shared/Components/DatePicker/index.d.ts +7 -0
  47. package/dist/Shared/Components/DatePicker/types.d.ts +118 -0
  48. package/dist/Shared/Components/DatePicker/utils.d.ts +51 -0
  49. package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
  50. package/dist/Shared/Components/Header/service.d.ts +1 -1
  51. package/dist/Shared/Components/ImageCard/types.d.ts +2 -2
  52. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +2 -2
  53. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +1 -1
  54. package/dist/Shared/Components/index.d.ts +1 -0
  55. package/dist/Shared/Helpers.d.ts +3 -3
  56. package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +1 -1
  57. package/dist/Shared/Providers/types.d.ts +2 -2
  58. package/dist/Shared/Services/types.d.ts +1 -1
  59. package/dist/Shared/types.d.ts +1 -1
  60. package/dist/assets/index.css +1 -1
  61. package/dist/assets/{yaml.worker-632eebb8.js → yaml.worker-9ae72aad.js} +237 -236
  62. package/dist/{cssMode-30528ab8.js → cssMode-175a6d3e.js} +1 -1
  63. package/dist/{freemarker2-b33829a1.js → freemarker2-bb01d369.js} +1 -1
  64. package/dist/{handlebars-f6cb2200.js → handlebars-e2ce0e75.js} +1 -1
  65. package/dist/{html-dd23535a.js → html-6715224c.js} +1 -1
  66. package/dist/{htmlMode-7c348c34.js → htmlMode-a62adaba.js} +1 -1
  67. package/dist/{index-440ae6eb.js → index-fd7157dc.js} +65889 -50246
  68. package/dist/index.js +396 -380
  69. package/dist/{javascript-9128b5a6.js → javascript-ead2702e.js} +1 -1
  70. package/dist/{jsonMode-28dbccd1.js → jsonMode-05964ebd.js} +1 -1
  71. package/dist/{liquid-a70bcd0e.js → liquid-d6a46536.js} +1 -1
  72. package/dist/{mdx-a4c7252c.js → mdx-c5e80443.js} +1 -1
  73. package/dist/{python-dca2163f.js → python-4533db71.js} +1 -1
  74. package/dist/{razor-9775cf93.js → razor-695a16ea.js} +1 -1
  75. package/dist/{tsMode-25965564.js → tsMode-3e7bc244.js} +1 -1
  76. package/dist/{typescript-74fdc1f9.js → typescript-da976cc1.js} +1 -1
  77. package/dist/{xml-ce45edc7.js → xml-fb3255a4.js} +1 -1
  78. package/dist/{yaml-aeb3e4a4.js → yaml-badbc111.js} +1 -1
  79. package/package.json +5 -3
@@ -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;
@@ -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;
@@ -23,3 +23,4 @@ export * from './FeatureDescription';
23
23
  export * from './CICDHistory';
24
24
  export * from './GitCommitInfoGeneric';
25
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;
@@ -1,5 +1,5 @@
1
- import { EnvironmentTypeEnum, PatchOperationType } from './constants';
2
1
  import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes } from '../Common';
2
+ import { EnvironmentTypeEnum, PatchOperationType } from './constants';
3
3
 
4
4
  export declare enum EnvType {
5
5
  CHART = "helm_charts",