@devtron-labs/devtron-fe-common-lib 0.0.88-beta-6 → 0.0.88-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/Api.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +1 -1
- package/dist/Common/Checkbox.d.ts +1 -1
- package/dist/Common/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +1 -1
- package/dist/Common/Common.service.d.ts +1 -1
- package/dist/Common/CustomTagSelector/Types.d.ts +1 -1
- package/dist/Common/Dialogs/DeleteDialog.d.ts +1 -1
- package/dist/Common/Dialogs/DialogForm.d.ts +1 -1
- package/dist/Common/Helper.d.ts +2 -2
- package/dist/Common/Modals/Modal.d.ts +1 -1
- package/dist/Common/Policy.Types.d.ts +1 -1
- package/dist/Common/RJSF/common/FieldRow.d.ts +1 -1
- package/dist/Common/RJSF/config.d.ts +1 -1
- package/dist/Common/RJSF/types.d.ts +1 -1
- package/dist/Common/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/Common/ResizableTextarea.d.ts +1 -1
- package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +1 -1
- package/dist/Common/Select/Select.d.ts +1 -1
- package/dist/Common/Types.d.ts +4 -4
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +3 -3
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/service.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +3 -3
- package/dist/Shared/Components/DatePicker/DateSelect.d.ts +3 -0
- package/dist/Shared/Components/DatePicker/SingleDatePickerComponent.d.ts +12 -0
- package/dist/Shared/Components/DatePicker/TimeSelect.d.ts +3 -0
- package/dist/Shared/Components/DatePicker/constants.d.ts +122 -0
- package/dist/Shared/Components/DatePicker/index.d.ts +4 -0
- package/dist/Shared/Components/DatePicker/types.d.ts +58 -0
- package/dist/Shared/Components/DatePicker/utils.d.ts +47 -0
- package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
- package/dist/Shared/Components/Header/service.d.ts +1 -1
- package/dist/Shared/Components/ImageCard/types.d.ts +2 -2
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +2 -2
- package/dist/Shared/Components/ReactSelect/utils.d.ts +4 -0
- package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +2 -2
- package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +2 -2
- package/dist/Shared/types.d.ts +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/{yaml.worker-632eebb8.js → yaml.worker-23754585.js} +28 -28
- package/dist/{cssMode-b3761447.js → cssMode-737c2ae4.js} +1 -1
- package/dist/{freemarker2-bca8bda3.js → freemarker2-8fa6ffb9.js} +1 -1
- package/dist/{handlebars-59bf2a32.js → handlebars-446e0789.js} +1 -1
- package/dist/{html-34509fbf.js → html-fd748031.js} +1 -1
- package/dist/{htmlMode-91e1b625.js → htmlMode-3ded316b.js} +1 -1
- package/dist/{index-611fc62f.js → index-894b7670.js} +65326 -50314
- package/dist/index.js +351 -347
- package/dist/{javascript-9b3ad161.js → javascript-12c768f4.js} +1 -1
- package/dist/{jsonMode-60e59fb2.js → jsonMode-3d012233.js} +1 -1
- package/dist/{liquid-52e8c03e.js → liquid-fd922791.js} +1 -1
- package/dist/{mdx-b9087899.js → mdx-5e8fa3a5.js} +1 -1
- package/dist/{python-77af2f59.js → python-c82dbf5c.js} +1 -1
- package/dist/{razor-47e7cf08.js → razor-e8be9cf0.js} +1 -1
- package/dist/{tsMode-59cfff46.js → tsMode-029b3084.js} +1 -1
- package/dist/{typescript-bd6eb0f9.js → typescript-f5b8955d.js} +1 -1
- package/dist/{xml-de6968a5.js → xml-7b502d63.js} +1 -1
- package/dist/{yaml-a85a1d4d.js → yaml-f7bc54f5.js} +1 -1
- package/package.json +10 -3
package/dist/Common/Api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ResponseType, APIOptions } from './Types';
|
|
2
1
|
import { MutableRefObject } from 'react';
|
|
2
|
+
import { ResponseType, APIOptions } from './Types';
|
|
3
3
|
|
|
4
4
|
export declare const post: (url: string, data: object, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType>;
|
|
5
5
|
export declare const put: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Breadcrumbs, UseBreadcrumbOptionalProps, UseBreadcrumbState } from './Types';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Breadcrumbs, UseBreadcrumbOptionalProps, UseBreadcrumbState } from './Types';
|
|
3
3
|
|
|
4
4
|
export declare const BreadcrumbContext: React.Context<any>;
|
|
5
5
|
export declare function useBreadcrumb(props?: UseBreadcrumbOptionalProps, deps?: any[]): UseBreadcrumbState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BreadcrumbTextProps } from './Types';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { BreadcrumbTextProps } from './Types';
|
|
3
3
|
|
|
4
4
|
export declare const BreadcrumbText: ({ heading, isActive }: BreadcrumbTextProps) => JSX.Element;
|
|
5
5
|
declare const Store: ({ children }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CodeEditorComposition, CodeEditorInterface } from './types';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { CodeEditorComposition, CodeEditorInterface } from './types';
|
|
3
3
|
|
|
4
4
|
declare const CodeEditor: React.FC<CodeEditorInterface> & CodeEditorComposition;
|
|
5
5
|
export default CodeEditor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Action, CodeEditorInitialValueType, CodeEditorState, CodeEditorThemesKeys } from './types';
|
|
2
1
|
import { MODES } from '../Constants';
|
|
2
|
+
import { Action, CodeEditorInitialValueType, CodeEditorState, CodeEditorThemesKeys } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const CodeEditorReducer: (state: CodeEditorState, action: Action) => {
|
|
5
5
|
mode: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiResourceType } from '../Pages';
|
|
2
1
|
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse } from './Types';
|
|
2
|
+
import { ApiResourceType } from '../Pages';
|
|
3
3
|
|
|
4
4
|
export declare const getTeamListMin: () => Promise<TeamList>;
|
|
5
5
|
interface UserRole extends ResponseType {
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { scrollableInterface } from '../Shared';
|
|
2
|
-
import { AsyncOptions, UseSearchString } from './Types';
|
|
3
1
|
import { default as React, SyntheticEvent } from 'react';
|
|
2
|
+
import { AsyncOptions, UseSearchString } from './Types';
|
|
3
|
+
import { scrollableInterface } from '../Shared';
|
|
4
4
|
|
|
5
5
|
export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
|
|
6
6
|
interface ConditionalWrapper<T> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModalType } from '../Types';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ModalType } from '../Types';
|
|
3
3
|
|
|
4
4
|
export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DO_NOT_SHOW_LABEL } from '../constants';
|
|
2
1
|
import { FieldRowProps } from './types';
|
|
2
|
+
import { DO_NOT_SHOW_LABEL } from '../constants';
|
|
3
3
|
|
|
4
4
|
export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id, shouldAlignCenter, }: Omit<FieldRowProps, "label"> & {
|
|
5
5
|
label: FieldRowProps['label'] | typeof DO_NOT_SHOW_LABEL;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RadioGroupComposition, RadioGroupInterface } from '../Types';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { RadioGroupComposition, RadioGroupInterface } from '../Types';
|
|
3
3
|
|
|
4
4
|
declare const RadioGroup: React.FC<RadioGroupInterface> & RadioGroupComposition;
|
|
5
5
|
export default RadioGroup;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RegistryType } from '../Shared';
|
|
2
|
-
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
3
|
-
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
|
-
import { Placement } from 'tippy.js';
|
|
5
1
|
import { default as React, ReactNode, CSSProperties } from 'react';
|
|
2
|
+
import { Placement } from 'tippy.js';
|
|
3
|
+
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
|
+
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
5
|
+
import { RegistryType } from '../Shared';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Generic response type object with support for overriding the result type
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UserRoleGroup } from '../../../types';
|
|
2
1
|
import { UserRoleGroupsTableProps } from './types';
|
|
2
|
+
import { UserRoleGroup } from '../../../types';
|
|
3
3
|
|
|
4
4
|
declare const UserRoleGroupTableRow: ({ id, name, description, status, timeToLive, modifierClassName, disableStatusComponent, handleStatusUpdate, handleDelete, statusComponent: StatusComponent, showStatus, showDelete, }: UserRoleGroup & Pick<UserRoleGroupsTableProps, "disableStatusComponent" | "handleStatusUpdate" | "handleDelete" | "statusComponent" | "showStatus"> & {
|
|
5
5
|
modifierClassName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildInfraConfigFormProps } from './types';
|
|
2
1
|
import { FunctionComponent } from 'react';
|
|
2
|
+
import { BuildInfraConfigFormProps } from './types';
|
|
3
3
|
|
|
4
4
|
declare const BuildInfraConfigForm: FunctionComponent<BuildInfraConfigFormProps>;
|
|
5
5
|
export default BuildInfraConfigForm;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildInfraInputFieldComponentProps } from './types';
|
|
2
1
|
import { FunctionComponent } from 'react';
|
|
2
|
+
import { BuildInfraInputFieldComponentProps } from './types';
|
|
3
3
|
|
|
4
4
|
declare const BuildInfraProfileDescriptionField: FunctionComponent<BuildInfraInputFieldComponentProps>;
|
|
5
5
|
export default BuildInfraProfileDescriptionField;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildInfraInputFieldComponentProps } from './types';
|
|
2
1
|
import { FunctionComponent } from 'react';
|
|
2
|
+
import { BuildInfraInputFieldComponentProps } from './types';
|
|
3
3
|
|
|
4
4
|
declare const BuildInfraProfileNameField: FunctionComponent<BuildInfraInputFieldComponentProps>;
|
|
5
5
|
export default BuildInfraProfileNameField;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildInfraFormFieldType, BuildInfraMetaConfigTypes, ProfileInputErrorType, BuildInfraProfileBase, HandleProfileInputChangeType } from './types';
|
|
2
1
|
import { UseBreadcrumbProps } from '../../../Common/BreadCrumb/Types';
|
|
2
|
+
import { BuildInfraFormFieldType, BuildInfraMetaConfigTypes, ProfileInputErrorType, BuildInfraProfileBase, HandleProfileInputChangeType } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const BUILD_INFRA_INPUT_CONSTRAINTS: {
|
|
5
5
|
readonly STEP: "any";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildInfraProfileResponseType, BuildInfraProfileTransformerType, CreateBuildInfraProfileType, GetBuildInfraProfileType, UpdateBuildInfraProfileType } from './types';
|
|
2
1
|
import { ResponseType } from '../../../Common';
|
|
2
|
+
import { BuildInfraProfileResponseType, BuildInfraProfileTransformerType, CreateBuildInfraProfileType, GetBuildInfraProfileType, UpdateBuildInfraProfileType } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const getTransformedBuildInfraProfileResponse: ({ configurationUnits, defaultConfigurations, profile, fromCreateView, }: BuildInfraProfileTransformerType) => BuildInfraProfileResponseType;
|
|
5
5
|
export declare const getBuildInfraProfileByName: ({ name, fromCreateView, }: GetBuildInfraProfileType) => Promise<BuildInfraProfileResponseType>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ServerErrors } from '../../../Common';
|
|
2
|
-
import { ValidationResponseType } from '../../../Shared';
|
|
3
|
-
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
|
4
1
|
import { FormEvent, FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
|
3
|
+
import { ValidationResponseType } from '../../../Shared';
|
|
4
|
+
import { ServerErrors } from '../../../Common';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Unique actions that will be dispatched and,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GenericSectionErrorStateProps } from '../GenericSectionErrorState/types';
|
|
2
|
-
import { ErrorScreenManagerProps, GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
|
|
3
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ErrorScreenManagerProps, GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
|
|
3
|
+
import { GenericSectionErrorStateProps } from '../GenericSectionErrorState/types';
|
|
4
4
|
|
|
5
5
|
export interface EmptyPageTextType {
|
|
6
6
|
title?: GenericEmptyStateType['title'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeploymentTemplateList, RunSourceType, RenderRunSourceType } from '../types';
|
|
2
1
|
import { OptionType } from '../../../../Common';
|
|
2
|
+
import { DeploymentTemplateList, RunSourceType, RenderRunSourceType } from '../types';
|
|
3
3
|
|
|
4
4
|
export interface DeploymentHistoryParamsType {
|
|
5
5
|
appId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SidebarType } from './types';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { SidebarType } from './types';
|
|
3
3
|
|
|
4
4
|
declare const Sidebar: React.MemoExoticComponent<({ type, filterOptions, triggerHistory, hasMore, setPagination, fetchIdData, handleViewAllHistory, children, renderRunSource, resourceId, }: SidebarType) => JSX.Element>;
|
|
5
5
|
export default Sidebar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, }: TriggerDetailsType) => JSX.Element>;
|
|
5
5
|
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, }: TriggerOutputProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeploymentConfigurationsRes, DeploymentHistoryDetail, DeploymentHistoryDetailRes, DeploymentHistoryResult, DeploymentHistorySingleValue, DeploymentStatusDetailsResponse, HistoryDiffSelectorRes, ModuleConfigResponse, TriggerDetailsResponseType, TriggerHistoryParamsType } from './types';
|
|
2
1
|
import { ResponseType } from '../../../Common';
|
|
2
|
+
import { DeploymentConfigurationsRes, DeploymentHistoryDetail, DeploymentHistoryDetailRes, DeploymentHistoryResult, DeploymentHistorySingleValue, DeploymentStatusDetailsResponse, HistoryDiffSelectorRes, ModuleConfigResponse, TriggerDetailsResponseType, TriggerHistoryParamsType } from './types';
|
|
3
3
|
|
|
4
4
|
export declare function getTriggerDetails({ appId, envId, pipelineId, triggerId, fetchIdData, }: {
|
|
5
5
|
appId: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
|
2
|
-
import { DeploymentStageType } from '../../constants';
|
|
3
|
-
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps } from '../../../Common';
|
|
4
1
|
import { CSSProperties } from 'react';
|
|
2
|
+
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps } from '../../../Common';
|
|
3
|
+
import { DeploymentStageType } from '../../constants';
|
|
4
|
+
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
|
5
5
|
|
|
6
6
|
export declare enum HistoryComponentType {
|
|
7
7
|
CI = "CI",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SingleDatePickerProps } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param date Date value to be displayed
|
|
6
|
+
* @param handleDatesChange Function to handle date change
|
|
7
|
+
* @param readOnly Value to make date picker read only
|
|
8
|
+
* @param isTodayBlocked Value to block today's date
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
declare const SingleDatePickerComponent: ({ date, handleDatesChange, readOnly, isTodayBlocked }: SingleDatePickerProps) => JSX.Element;
|
|
12
|
+
export default SingleDatePickerComponent;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
export declare const customDayStyles: {
|
|
2
|
+
selectedStartStyles: {
|
|
3
|
+
background: string;
|
|
4
|
+
color: string;
|
|
5
|
+
hover: {
|
|
6
|
+
background: string;
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
selectedEndStyles: {
|
|
11
|
+
background: string;
|
|
12
|
+
color: string;
|
|
13
|
+
hover: {
|
|
14
|
+
background: string;
|
|
15
|
+
color: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
hoveredSpanStyles: {
|
|
19
|
+
background: string;
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
22
|
+
selectedSpanStyles: {
|
|
23
|
+
background: string;
|
|
24
|
+
color: string;
|
|
25
|
+
hover: {
|
|
26
|
+
background: string;
|
|
27
|
+
color: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
selectedStyles: {
|
|
31
|
+
background: string;
|
|
32
|
+
color: string;
|
|
33
|
+
hover: {
|
|
34
|
+
background: string;
|
|
35
|
+
color: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
border: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const MONTHLY_DATES_CONFIG: {
|
|
41
|
+
'Day 1': string;
|
|
42
|
+
'Day 2': string;
|
|
43
|
+
'Day 3': string;
|
|
44
|
+
'Day 4': string;
|
|
45
|
+
'Day 5': string;
|
|
46
|
+
'Day 6': string;
|
|
47
|
+
'Day 7': string;
|
|
48
|
+
'Day 8': string;
|
|
49
|
+
'Day 9': string;
|
|
50
|
+
'Day 10': string;
|
|
51
|
+
'Day 11': string;
|
|
52
|
+
'Day 12': string;
|
|
53
|
+
'Day 13': string;
|
|
54
|
+
'Day 14': string;
|
|
55
|
+
'Day 15': string;
|
|
56
|
+
'Day 16': string;
|
|
57
|
+
'Day 17': string;
|
|
58
|
+
'Day 18': string;
|
|
59
|
+
'Day 19': string;
|
|
60
|
+
'Day 20': string;
|
|
61
|
+
'Day 21': string;
|
|
62
|
+
'Day 22': string;
|
|
63
|
+
'Day 23': string;
|
|
64
|
+
'Day 24': string;
|
|
65
|
+
'Day 25': string;
|
|
66
|
+
'Day 26': string;
|
|
67
|
+
'Day 27': string;
|
|
68
|
+
'Day 28': string;
|
|
69
|
+
'Third Last Day': string;
|
|
70
|
+
'Second Last Day': string;
|
|
71
|
+
'Last Day': string;
|
|
72
|
+
};
|
|
73
|
+
export declare const TIME_OPTIONS_CONFIG: {
|
|
74
|
+
'12:00 AM': string;
|
|
75
|
+
'12:30 AM': string;
|
|
76
|
+
'01:00 AM': string;
|
|
77
|
+
'01:30 AM': string;
|
|
78
|
+
'02:00 AM': string;
|
|
79
|
+
'02:30 AM': string;
|
|
80
|
+
'03:00 AM': string;
|
|
81
|
+
'03:30 AM': string;
|
|
82
|
+
'04:00 AM': string;
|
|
83
|
+
'04:30 AM': string;
|
|
84
|
+
'05:00 AM': string;
|
|
85
|
+
'05:30 AM': string;
|
|
86
|
+
'06:00 AM': string;
|
|
87
|
+
'06:30 AM': string;
|
|
88
|
+
'07:00 AM': string;
|
|
89
|
+
'07:30 AM': string;
|
|
90
|
+
'08:00 AM': string;
|
|
91
|
+
'08:30 AM': string;
|
|
92
|
+
'09:00 AM': string;
|
|
93
|
+
'09:30 AM': string;
|
|
94
|
+
'10:00 AM': string;
|
|
95
|
+
'10:30 AM': string;
|
|
96
|
+
'11:00 AM': string;
|
|
97
|
+
'11:30 AM': string;
|
|
98
|
+
'12:00 PM': string;
|
|
99
|
+
'12:30 PM': string;
|
|
100
|
+
'01:00 PM': string;
|
|
101
|
+
'01:30 PM': string;
|
|
102
|
+
'02:00 PM': string;
|
|
103
|
+
'02:30 PM': string;
|
|
104
|
+
'03:00 PM': string;
|
|
105
|
+
'03:30 PM': string;
|
|
106
|
+
'04:00 PM': string;
|
|
107
|
+
'04:30 PM': string;
|
|
108
|
+
'05:00 PM': string;
|
|
109
|
+
'05:30 PM': string;
|
|
110
|
+
'06:00 PM': string;
|
|
111
|
+
'06:30 PM': string;
|
|
112
|
+
'07:00 PM': string;
|
|
113
|
+
'07:30 PM': string;
|
|
114
|
+
'08:00 PM': string;
|
|
115
|
+
'08:30 PM': string;
|
|
116
|
+
'09:00 PM': string;
|
|
117
|
+
'09:30 PM': string;
|
|
118
|
+
'10:00 PM': string;
|
|
119
|
+
'10:30 PM': string;
|
|
120
|
+
'11:00 PM': string;
|
|
121
|
+
'11:30 PM': string;
|
|
122
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
export interface DateSelectProps {
|
|
24
|
+
/**
|
|
25
|
+
* Current selected date object
|
|
26
|
+
*
|
|
27
|
+
* @default 'new Date()'
|
|
28
|
+
*/
|
|
29
|
+
selectedDate: OptionType;
|
|
30
|
+
/**
|
|
31
|
+
* Handler for updating the date from the parent component
|
|
32
|
+
*/
|
|
33
|
+
handleOnChange: (date: OptionType) => void;
|
|
34
|
+
}
|
|
35
|
+
export interface TimeSelectProps {
|
|
36
|
+
/**
|
|
37
|
+
* Current selected date object
|
|
38
|
+
*
|
|
39
|
+
* @default 'new Date()'
|
|
40
|
+
*/
|
|
41
|
+
date?: Date;
|
|
42
|
+
/**
|
|
43
|
+
* Handler for updating the date from the parent component
|
|
44
|
+
*/
|
|
45
|
+
onChange: (date: Date) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Props for the time picker
|
|
48
|
+
*/
|
|
49
|
+
timePickerProps?: SelectInstance;
|
|
50
|
+
/**
|
|
51
|
+
* Error message for the DateTime picker component
|
|
52
|
+
*/
|
|
53
|
+
error?: string;
|
|
54
|
+
/**
|
|
55
|
+
* If true, both the date and time picker are disabled
|
|
56
|
+
*/
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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) => Date;
|
|
@@ -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;
|