@devtron-labs/devtron-fe-common-lib 0.0.37 → 0.0.39-beta-1
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/AppStatus/AppStatus.d.ts +3 -0
- package/dist/Common/AppStatus/constants.d.ts +51 -0
- package/dist/Common/AppStatus/index.d.ts +1 -0
- package/dist/Common/AppStatus/types.d.ts +12 -0
- package/dist/Common/AppStatus/utils.d.ts +1 -0
- package/dist/Common/Helper.d.ts +1 -0
- package/dist/Common/Hooks/UseClickOutside/UseClickOutside.d.ts +1 -0
- package/dist/Common/Hooks/index.d.ts +1 -0
- package/dist/Common/RJSF/Form.d.ts +4 -0
- package/dist/Common/RJSF/common/FieldRow.d.ts +3 -0
- package/dist/Common/RJSF/common/types.d.ts +8 -0
- package/dist/Common/RJSF/config.d.ts +4 -0
- package/dist/Common/RJSF/constants.d.ts +5 -0
- package/dist/Common/RJSF/index.d.ts +2 -0
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +3 -0
- package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +3 -0
- package/dist/Common/RJSF/templates/BaseInput.d.ts +3 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +3 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +3 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +3 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/index.d.ts +3 -0
- package/dist/Common/RJSF/templates/Description.d.ts +3 -0
- package/dist/Common/RJSF/templates/Field.d.ts +3 -0
- package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +3 -0
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +3 -0
- package/dist/Common/RJSF/templates/TitleField.d.ts +3 -0
- package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +3 -0
- package/dist/Common/RJSF/templates/index.d.ts +10 -0
- package/dist/Common/RJSF/types.d.ts +3 -0
- package/dist/Common/RJSF/utils.d.ts +14 -0
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +3 -0
- package/dist/Common/RJSF/widgets/Select.d.ts +3 -0
- package/dist/Common/RJSF/widgets/index.d.ts +2 -0
- package/dist/Common/index.d.ts +2 -0
- package/dist/index.js +487 -147
- package/package.json +4 -1
- package/src/Assets/Icon/ic-chevron-down.svg +5 -0
- package/src/Common/AppStatus/AppStatus.tsx +64 -0
- package/src/Common/AppStatus/constants.ts +53 -0
- package/src/Common/AppStatus/index.ts +1 -0
- package/src/Common/AppStatus/types.ts +12 -0
- package/src/Common/AppStatus/utils.ts +14 -0
- package/src/Common/Helper.tsx +8 -0
- package/src/Common/Hooks/UseClickOutside/UseClickOutside.tsx +15 -0
- package/src/Common/Hooks/index.ts +1 -0
- package/src/Common/RJSF/Form.tsx +28 -0
- package/src/Common/RJSF/common/FieldRow.tsx +31 -0
- package/src/Common/RJSF/common/types.ts +9 -0
- package/src/Common/RJSF/config.ts +37 -0
- package/src/Common/RJSF/constants.ts +5 -0
- package/src/Common/RJSF/index.ts +2 -0
- package/src/Common/RJSF/rjsfForm.scss +17 -0
- package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +33 -0
- package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +77 -0
- package/src/Common/RJSF/templates/BaseInput.tsx +16 -0
- package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +18 -0
- package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +10 -0
- package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +18 -0
- package/src/Common/RJSF/templates/ButtonTemplates/index.ts +3 -0
- package/src/Common/RJSF/templates/Description.tsx +12 -0
- package/src/Common/RJSF/templates/Field.tsx +30 -0
- package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +25 -0
- package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +96 -0
- package/src/Common/RJSF/templates/TitleField.tsx +9 -0
- package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +51 -0
- package/src/Common/RJSF/templates/index.ts +10 -0
- package/src/Common/RJSF/types.ts +4 -0
- package/src/Common/RJSF/utils.ts +59 -0
- package/src/Common/RJSF/widgets/Checkbox.tsx +44 -0
- package/src/Common/RJSF/widgets/Select.tsx +72 -0
- package/src/Common/RJSF/widgets/index.ts +2 -0
- package/src/Common/Security/scanVulnerabilities.css +2 -0
- package/src/Common/index.ts +2 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const StatusConstants: {
|
|
2
|
+
NOT_DEPLOYED: {
|
|
3
|
+
noSpaceLower: string;
|
|
4
|
+
normalCase: string;
|
|
5
|
+
lowerCase: string;
|
|
6
|
+
};
|
|
7
|
+
APP_STATUS: {
|
|
8
|
+
noSpaceLower: string;
|
|
9
|
+
normalText: string;
|
|
10
|
+
};
|
|
11
|
+
PROJECT: {
|
|
12
|
+
pluralLower: string;
|
|
13
|
+
lowerCase: string;
|
|
14
|
+
};
|
|
15
|
+
CLUSTER: {
|
|
16
|
+
pluralLower: string;
|
|
17
|
+
lowerCase: string;
|
|
18
|
+
};
|
|
19
|
+
NAMESPACE: {
|
|
20
|
+
pluralLower: string;
|
|
21
|
+
lowerCase: string;
|
|
22
|
+
};
|
|
23
|
+
ENVIRONMENT: {
|
|
24
|
+
pluralLower: string;
|
|
25
|
+
lowerCase: string;
|
|
26
|
+
};
|
|
27
|
+
NOT_AVILABLE: {
|
|
28
|
+
normalCase: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare enum TIMELINE_STATUS {
|
|
32
|
+
DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
|
|
33
|
+
GIT_COMMIT = "GIT_COMMIT",
|
|
34
|
+
GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED",
|
|
35
|
+
KUBECTL_APPLY = "KUBECTL_APPLY",
|
|
36
|
+
KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED",
|
|
37
|
+
KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED",
|
|
38
|
+
HEALTHY = "HEALTHY",
|
|
39
|
+
APP_HEALTH = "APP_HEALTH",
|
|
40
|
+
DEPLOYMENT_FAILED = "FAILED",
|
|
41
|
+
FETCH_TIMED_OUT = "TIMED_OUT",
|
|
42
|
+
UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS",
|
|
43
|
+
DEGRADED = "DEGRADED",
|
|
44
|
+
DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED",
|
|
45
|
+
ABORTED = "ABORTED",
|
|
46
|
+
INPROGRESS = "INPROGRESS",
|
|
47
|
+
HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED",
|
|
48
|
+
HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO",
|
|
49
|
+
HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED"
|
|
50
|
+
}
|
|
51
|
+
export declare const YET_TO_RUN = "Yet to run";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AppStatus } from './AppStatus';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface AppStatusType {
|
|
2
|
+
appStatus: string;
|
|
3
|
+
isDeploymentStatus?: boolean;
|
|
4
|
+
isJobView?: boolean;
|
|
5
|
+
isVirtualEnv?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Hide the status message if true and show status message in tooltip
|
|
8
|
+
*
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
hideStatusMessage?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const triggerStatus: (triggerDetailStatus: string) => string;
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -51,4 +51,5 @@ export declare const closeOnEscKeyPressed: (e: any, actionClose: () => void) =>
|
|
|
51
51
|
*/
|
|
52
52
|
export declare function copyToClipboard(str: any, callback?: typeof noop): void;
|
|
53
53
|
export declare function useAsync<T>(func: (...rest: any[]) => Promise<T>, dependencyArray?: any[], shouldRun?: boolean, options?: AsyncOptions): [boolean, T, any | null, () => void, React.Dispatch<any>, any[]];
|
|
54
|
+
export declare const processDeployedTime: (lastDeployed: any, isArgoInstalled: any) => string;
|
|
54
55
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useClickOutside: (ref: any, callback: () => void) => void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ArrayFieldTemplateItemType } from '@rjsf/utils';
|
|
3
|
+
export declare const ArrayFieldItemTemplate: ({ children, className, disabled, hasToolbar, hasRemove, index, onDropIndexClick, readonly, registry, uiSchema, }: ArrayFieldTemplateItemType) => JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ArrayFieldTemplateProps } from '@rjsf/utils';
|
|
3
|
+
export declare const ArrayFieldTemplate: ({ canAdd, className, disabled, idSchema, uiSchema, items, onAddClick, readonly, registry, required, title, }: ArrayFieldTemplateProps) => JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WrapIfAdditionalTemplateProps } from '@rjsf/utils';
|
|
3
|
+
export declare const WrapIfAdditionalTemplate: ({ id, disabled, label, onKeyChange, onDropPropertyClick, readonly, schema, children, uiSchema, registry, }: WrapIfAdditionalTemplateProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { ArrayFieldTemplate } from './ArrayFieldTemplate';
|
|
2
|
+
export { ArrayFieldItemTemplate } from './ArrayFieldItemTemplate';
|
|
3
|
+
export { BaseInput as BaseInputTemplate } from './BaseInput';
|
|
4
|
+
export * from './ButtonTemplates';
|
|
5
|
+
export { Description as DescriptionFieldTemplate } from './Description';
|
|
6
|
+
export { Field as FieldTemplate } from './Field';
|
|
7
|
+
export { FieldErrorTemplate } from './FieldErrorTemplate';
|
|
8
|
+
export { ObjectFieldTemplate } from './ObjectFieldTemplate';
|
|
9
|
+
export { TitleField as TitleFieldTemplate } from './TitleField';
|
|
10
|
+
export { WrapIfAdditionalTemplate } from './WrapIfAdditionalTemplate';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TranslatableString } from '@rjsf/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Override for the TranslatableString from RJSF
|
|
4
|
+
*/
|
|
5
|
+
export declare const translateString: (stringToTranslate: TranslatableString, params?: string[]) => string;
|
|
6
|
+
export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
7
|
+
menuList: (base: any) => any;
|
|
8
|
+
control: (base: any, state: any) => any;
|
|
9
|
+
option: (base: any, state: any) => any;
|
|
10
|
+
dropdownIndicator: (base: any, state: any) => any;
|
|
11
|
+
valueContainer: (base: any) => any;
|
|
12
|
+
loadingMessage: (base: any) => any;
|
|
13
|
+
noOptionsMessage: (base: any) => any;
|
|
14
|
+
};
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -39,3 +39,5 @@ export { default as DebouncedSearch } from './DebouncedSearch/DebouncedSearch';
|
|
|
39
39
|
export { default as Grid } from './Grid/Grid';
|
|
40
40
|
export { default as ClipboardButton } from './ClipboardButton/ClipboardButton';
|
|
41
41
|
export * from './Hooks';
|
|
42
|
+
export { AppStatus } from './AppStatus';
|
|
43
|
+
export * from './RJSF';
|