@devtron-labs/devtron-fe-common-lib 0.0.45-beta-27 → 0.0.46
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/CustomInput/CustomInput.d.ts +3 -0
- package/dist/Common/CustomInput/Types.d.ts +29 -0
- package/dist/Common/CustomInput/index.d.ts +2 -0
- package/dist/Common/Dialogs/Types.d.ts +0 -1
- package/dist/Common/Helper.d.ts +0 -16
- package/dist/Common/Types.d.ts +0 -47
- package/dist/Common/index.d.ts +1 -1
- package/dist/index.js +158 -188
- package/package.json +14 -14
- package/src/Common/CustomInput/CustomInput.tsx +131 -0
- package/src/Common/CustomInput/Types.ts +30 -0
- package/src/Common/CustomInput/index.ts +2 -0
- package/src/Common/Dialogs/DeleteDialog.tsx +1 -1
- package/src/Common/Dialogs/Types.ts +0 -1
- package/src/Common/Helper.tsx +0 -59
- package/src/Common/Types.ts +1 -57
- package/src/Common/index.ts +1 -1
- package/dist/Common/AddCDButton/AddCDButton.d.ts +0 -3
- package/dist/Common/AddCDButton/index.d.ts +0 -2
- package/dist/Common/AddCDButton/types.d.ts +0 -26
- package/dist/Common/AddCDButton/utils.d.ts +0 -2
- package/src/Common/AddCDButton/AddCDButton.tsx +0 -68
- package/src/Common/AddCDButton/index.ts +0 -2
- package/src/Common/AddCDButton/types.ts +0 -38
- package/src/Common/AddCDButton/utils.tsx +0 -35
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CustomInputProps } from './Types';
|
|
3
|
+
export declare function CustomInput({ name, value, error, onChange, onFocus, label, type, disabled, labelClassName, placeholder, tabIndex, dataTestid, isRequiredField, autoFocus, rootClassName, autoComplete, helperText, handleOnBlur, readOnly, noTrim, ref, onKeyPress, defaultValue, onKeyDown, required, additionalErrorInfo }: CustomInputProps): JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { HTMLInputTypeAttribute } from 'react';
|
|
2
|
+
export interface CustomInputProps {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
onChange: (e: any) => void;
|
|
6
|
+
onFocus?: (e: any) => void;
|
|
7
|
+
autoComplete?: string;
|
|
8
|
+
label?: string | (() => React.ReactNode);
|
|
9
|
+
labelClassName?: string;
|
|
10
|
+
type?: HTMLInputTypeAttribute;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
tabIndex?: number;
|
|
14
|
+
dataTestid?: string;
|
|
15
|
+
isRequiredField?: boolean;
|
|
16
|
+
autoFocus?: boolean;
|
|
17
|
+
rootClassName?: string;
|
|
18
|
+
error?: string[] | string;
|
|
19
|
+
helperText?: string;
|
|
20
|
+
handleOnBlur?: (e: any) => void;
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
noTrim?: boolean;
|
|
23
|
+
ref?: React.LegacyRef<HTMLInputElement>;
|
|
24
|
+
onKeyPress?: (e: any) => void;
|
|
25
|
+
defaultValue?: string | number | ReadonlyArray<string> | undefined;
|
|
26
|
+
onKeyDown?: (e: any) => void;
|
|
27
|
+
required?: boolean;
|
|
28
|
+
additionalErrorInfo?: React.ReactNode;
|
|
29
|
+
}
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -25,22 +25,6 @@ export declare function useForm(stateSchema: any, validationSchema: {}, callback
|
|
|
25
25
|
handleOnChange: (event: any) => void;
|
|
26
26
|
handleOnSubmit: (event: any) => void;
|
|
27
27
|
};
|
|
28
|
-
export declare function CustomInput({ name, value, error, onChange, onBlur, onFocus, label, type, disabled, autoComplete, labelClassName, placeholder, tabIndex, dataTestid, }: {
|
|
29
|
-
name: any;
|
|
30
|
-
value: any;
|
|
31
|
-
error: any;
|
|
32
|
-
onChange: any;
|
|
33
|
-
onBlur?: (e: any) => void;
|
|
34
|
-
onFocus?: (e: any) => void;
|
|
35
|
-
label: any;
|
|
36
|
-
type?: string;
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
autoComplete?: string;
|
|
39
|
-
labelClassName?: string;
|
|
40
|
-
placeholder?: string;
|
|
41
|
-
tabIndex?: number;
|
|
42
|
-
dataTestid?: string;
|
|
43
|
-
}): JSX.Element;
|
|
44
28
|
export declare function handleUTCTime(ts: string, isRelativeTime?: boolean): string;
|
|
45
29
|
export declare function useSearchString(): UseSearchString;
|
|
46
30
|
export declare const closeOnEscKeyPressed: (e: any, actionClose: () => void) => void;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -261,10 +261,6 @@ export interface CDMaterialServiceQueryParams {
|
|
|
261
261
|
resource?: CDMaterialResourceQuery;
|
|
262
262
|
filter?: CDMaterialFilterQuery;
|
|
263
263
|
}
|
|
264
|
-
export interface DownstreamNodesEnvironmentsType {
|
|
265
|
-
environmentId: number;
|
|
266
|
-
environmentName: string;
|
|
267
|
-
}
|
|
268
264
|
export interface CommonNodeAttr {
|
|
269
265
|
connectingCiPipelineId?: number;
|
|
270
266
|
parents: string | number[] | string[];
|
|
@@ -326,9 +322,6 @@ export interface CommonNodeAttr {
|
|
|
326
322
|
};
|
|
327
323
|
appReleaseTagNames?: string[];
|
|
328
324
|
tagsEditable?: boolean;
|
|
329
|
-
deploymentAppCreated?: boolean;
|
|
330
|
-
isLast?: boolean;
|
|
331
|
-
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
|
332
325
|
}
|
|
333
326
|
export declare enum DeploymentAppTypes {
|
|
334
327
|
HELM = "helm",
|
|
@@ -570,44 +563,4 @@ export interface CiPipeline {
|
|
|
570
563
|
isOffendingMandatoryPlugin?: boolean;
|
|
571
564
|
pipelineType?: string;
|
|
572
565
|
}
|
|
573
|
-
export declare enum PipelineType {
|
|
574
|
-
CI_PIPELINE = "CI_PIPELINE",
|
|
575
|
-
CD_PIPELINE = "CD_PIPELINE",
|
|
576
|
-
WEBHOOK = "WEBHOOK",
|
|
577
|
-
LINKED_CD = "LINKED_CD"
|
|
578
|
-
}
|
|
579
|
-
export declare enum WorkflowNodeType {
|
|
580
|
-
GIT = "GIT",
|
|
581
|
-
CI = "CI",
|
|
582
|
-
WEBHOOK = "WEBHOOK",
|
|
583
|
-
PRE_CD = "PRECD",
|
|
584
|
-
CD = "CD",
|
|
585
|
-
POST_CD = "POSTCD"
|
|
586
|
-
}
|
|
587
|
-
export declare enum AddCDPositions {
|
|
588
|
-
LEFT = "left",
|
|
589
|
-
RIGHT = "right"
|
|
590
|
-
}
|
|
591
|
-
export interface SelectedNode {
|
|
592
|
-
nodeType: WorkflowNodeType;
|
|
593
|
-
id: string;
|
|
594
|
-
}
|
|
595
|
-
export declare enum AddPipelineType {
|
|
596
|
-
SEQUENTIAL = "SEQUENTIAL",
|
|
597
|
-
PARALLEL = "PARALLEL"
|
|
598
|
-
}
|
|
599
|
-
export interface Point {
|
|
600
|
-
x: number;
|
|
601
|
-
y: number;
|
|
602
|
-
}
|
|
603
|
-
export interface EdgeNodeType {
|
|
604
|
-
height: number;
|
|
605
|
-
width: number;
|
|
606
|
-
userApprovalConfig?: UserApprovalConfigType;
|
|
607
|
-
type?: any;
|
|
608
|
-
id?: number | string;
|
|
609
|
-
}
|
|
610
|
-
export interface EdgeEndNodeType extends EdgeNodeType {
|
|
611
|
-
userApprovalConfig?: UserApprovalConfigType;
|
|
612
|
-
}
|
|
613
566
|
export {};
|
package/dist/Common/index.d.ts
CHANGED