@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.
- 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/Constants.d.ts +1 -0
- 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/DateTimePicker.d.ts +4 -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 +7 -0
- package/dist/Shared/Components/DatePicker/types.d.ts +118 -0
- package/dist/Shared/Components/DatePicker/utils.d.ts +51 -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/ScannedByToolModal/ScannedByToolModal.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +3 -3
- package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +2 -2
- package/dist/Shared/Services/types.d.ts +1 -1
- package/dist/Shared/types.d.ts +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/{yaml.worker-632eebb8.js → yaml.worker-9ae72aad.js} +237 -236
- package/dist/{cssMode-30528ab8.js → cssMode-175a6d3e.js} +1 -1
- package/dist/{freemarker2-b33829a1.js → freemarker2-bb01d369.js} +1 -1
- package/dist/{handlebars-f6cb2200.js → handlebars-e2ce0e75.js} +1 -1
- package/dist/{html-dd23535a.js → html-6715224c.js} +1 -1
- package/dist/{htmlMode-7c348c34.js → htmlMode-a62adaba.js} +1 -1
- package/dist/{index-440ae6eb.js → index-fd7157dc.js} +65889 -50246
- package/dist/index.js +396 -380
- package/dist/{javascript-9128b5a6.js → javascript-ead2702e.js} +1 -1
- package/dist/{jsonMode-28dbccd1.js → jsonMode-05964ebd.js} +1 -1
- package/dist/{liquid-a70bcd0e.js → liquid-d6a46536.js} +1 -1
- package/dist/{mdx-a4c7252c.js → mdx-c5e80443.js} +1 -1
- package/dist/{python-dca2163f.js → python-4533db71.js} +1 -1
- package/dist/{razor-9775cf93.js → razor-695a16ea.js} +1 -1
- package/dist/{tsMode-25965564.js → tsMode-3e7bc244.js} +1 -1
- package/dist/{typescript-74fdc1f9.js → typescript-da976cc1.js} +1 -1
- package/dist/{xml-ce45edc7.js → xml-fb3255a4.js} +1 -1
- package/dist/{yaml-aeb3e4a4.js → yaml-badbc111.js} +1 -1
- package/package.json +5 -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 {
|
|
@@ -211,6 +211,7 @@ export declare enum FREQUENCY_ENUM {
|
|
|
211
211
|
}
|
|
212
212
|
export declare const TIME_FORMAT: {
|
|
213
213
|
DD_MMM_YYYY_HH_MM: string;
|
|
214
|
+
DD_MMM_YYYY: string;
|
|
214
215
|
};
|
|
215
216
|
export declare function getOrdinal(number: any): string;
|
|
216
217
|
export declare const TIME_HOUR_SUFFIX_FOR_12_HOUR_FORMAT: {
|
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,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, displayFormat, }: 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,7 @@
|
|
|
1
|
+
export { default as SingleDatePickerComponent } from './SingleDatePickerComponent';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export * from './DateSelect';
|
|
4
|
+
export * from './TimeSelect';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export * from './constants';
|
|
7
|
+
export { default as DateTimePicker } from './DateTimePicker';
|
|
@@ -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
|
+
}
|