@devtron-labs/devtron-fe-common-lib 1.2.2-beta-1 → 1.2.2-beta-2
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/{@code-editor-Dnez6SNz.js → @code-editor-BsdZTvHu.js} +1995 -1989
- package/dist/{@common-rjsf-CxHLK-MT.js → @common-rjsf-NJ6D4ODl.js} +1 -1
- package/dist/Common/CIPipeline.Types.d.ts +1 -26
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +5 -18
- package/dist/index.js +271 -272
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { j as n, J as A } from "./@vendor-RU8AW1bK.js";
|
|
|
2
2
|
import E, { forwardRef as $ } from "react";
|
|
3
3
|
import L, { getDefaultRegistry as k } from "@rjsf/core";
|
|
4
4
|
import D from "@rjsf/validator-ajv8";
|
|
5
|
-
import { T as y, c as H, a as J, d as w } from "./@code-editor-
|
|
5
|
+
import { T as y, c as H, a as J, d as w } from "./@code-editor-BsdZTvHu.js";
|
|
6
6
|
import M, { components as O } from "react-select";
|
|
7
7
|
import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as U, ADDITIONAL_PROPERTY_FLAG as P, errorId as W, englishStringTranslator as V, TranslatableString as q, titleId as K, canExpand as Y, deepEquals as z } from "@rjsf/utils";
|
|
8
8
|
import { ReactComponent as G } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
|
@@ -70,30 +70,11 @@ export declare enum RefVariableStageType {
|
|
|
70
70
|
PRE_CI = "PRE_CI",
|
|
71
71
|
POST_CI = "POST_CI"
|
|
72
72
|
}
|
|
73
|
-
export interface FileProperty {
|
|
74
|
-
allowedExtensions: string[];
|
|
75
|
-
maxUploadSize: number;
|
|
76
|
-
}
|
|
77
|
-
export interface Constraint {
|
|
78
|
-
fileProperty: FileProperty;
|
|
79
|
-
}
|
|
80
|
-
export interface ValueConstraint {
|
|
81
|
-
choices: string[];
|
|
82
|
-
blockCustomValue: boolean;
|
|
83
|
-
constraint: Constraint;
|
|
84
|
-
}
|
|
85
|
-
export declare enum VariableTypeFormat {
|
|
86
|
-
STRING = "STRING",
|
|
87
|
-
NUMBER = "NUMBER",
|
|
88
|
-
BOOL = "BOOL",
|
|
89
|
-
DATE = "DATE",
|
|
90
|
-
FILE = "FILE"
|
|
91
|
-
}
|
|
92
73
|
export interface VariableType {
|
|
93
74
|
id: number;
|
|
94
75
|
name: string;
|
|
95
76
|
value: string;
|
|
96
|
-
format:
|
|
77
|
+
format: string;
|
|
97
78
|
description: string;
|
|
98
79
|
defaultValue: string;
|
|
99
80
|
allowEmptyValue: boolean;
|
|
@@ -102,12 +83,6 @@ export interface VariableType {
|
|
|
102
83
|
refVariableName: string;
|
|
103
84
|
refVariableStage?: RefVariableStageType;
|
|
104
85
|
variableStepIndexInPlugin?: number;
|
|
105
|
-
fileMountDir: string;
|
|
106
|
-
fileReferenceId: number;
|
|
107
|
-
valueConstraintId: number;
|
|
108
|
-
valueConstraint: ValueConstraint;
|
|
109
|
-
isRuntimeArg: boolean;
|
|
110
|
-
refVariableUsed: boolean;
|
|
111
86
|
}
|
|
112
87
|
interface CommandArgsMap {
|
|
113
88
|
command: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DynamicDataTableRowProps } from './types';
|
|
2
|
-
export declare const DynamicDataTableRow: <K extends string>({ rows, headers, maskValue, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, validationSchema, showError, actionButtonConfig, onRowEdit, onRowDelete, leadingCellIcon, trailingCellIcon, }: DynamicDataTableRowProps<K>) => JSX.Element;
|
|
2
|
+
export declare const DynamicDataTableRow: <K extends string>({ rows, headers, maskValue, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, validationSchema, showError, actionButtonConfig, onRowEdit, onRowDelete, leadingCellIcon, trailingCellIcon, buttonCellWrapComponent, }: DynamicDataTableRowProps<K>) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DetailedHTMLProps, ReactNode } from 'react';
|
|
1
|
+
import { DetailedHTMLProps, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { SortingOrder } from '../../../Common/Constants';
|
|
3
3
|
import { ResizableTagTextAreaProps } from '../../../Common/CustomTagSelector';
|
|
4
4
|
import { InfoIconTippyProps } from '../../../Common/Types';
|
|
@@ -39,25 +39,10 @@ export type DynamicDataTableCellPropsMap = {
|
|
|
39
39
|
text: string;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
type DynamicDataTableCellExtendedPropsMap = {
|
|
43
|
-
[DynamicDataTableRowDataType.TEXT]: {};
|
|
44
|
-
[DynamicDataTableRowDataType.DROPDOWN]: {};
|
|
45
|
-
[DynamicDataTableRowDataType.SELECT_TEXT]: {};
|
|
46
|
-
[DynamicDataTableRowDataType.BUTTON]: {
|
|
47
|
-
wrap: true;
|
|
48
|
-
wrapRenderer: (props: {
|
|
49
|
-
children: JSX.Element;
|
|
50
|
-
customState?: Record<string, any>;
|
|
51
|
-
}) => JSX.Element;
|
|
52
|
-
} | {
|
|
53
|
-
wrap?: false;
|
|
54
|
-
wrapRenderer?: never;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
42
|
type DynamicDataTableCellData<T extends keyof DynamicDataTableCellPropsMap = keyof DynamicDataTableCellPropsMap> = T extends keyof DynamicDataTableCellPropsMap ? {
|
|
58
43
|
type: T;
|
|
59
44
|
props: DynamicDataTableCellPropsMap[T];
|
|
60
|
-
}
|
|
45
|
+
} : never;
|
|
61
46
|
/**
|
|
62
47
|
* Type representing a key-value row.
|
|
63
48
|
* @template K - A string representing the key type.
|
|
@@ -107,6 +92,8 @@ export type DynamicDataTableProps<K extends string> = {
|
|
|
107
92
|
leadingCellIcon?: DynamicDataTableCellIcon<K>;
|
|
108
93
|
/** Optional configuration for displaying an icon in the trailing position of a cell. */
|
|
109
94
|
trailingCellIcon?: DynamicDataTableCellIcon<K>;
|
|
95
|
+
/** An optional function to render a custom wrapper component for the type `DynamicDataTableRowDataType.BUTTON`. */
|
|
96
|
+
buttonCellWrapComponent?: (row: DynamicDataTableRowType<K>) => ReactElement;
|
|
110
97
|
/** An optional React node for a custom header component. */
|
|
111
98
|
headerComponent?: ReactNode;
|
|
112
99
|
/** When true, data addition field will not be shown. */
|
|
@@ -173,6 +160,6 @@ export type DynamicDataTableProps<K extends string> = {
|
|
|
173
160
|
};
|
|
174
161
|
export interface DynamicDataTableHeaderProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'headers' | 'rows' | 'headerComponent' | 'sortingConfig' | 'onRowAdd' | 'readOnly' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'actionButtonConfig'>, Pick<InfoIconTippyProps, 'heading' | 'additionalContent'> {
|
|
175
162
|
}
|
|
176
|
-
export interface DynamicDataTableRowProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'rows' | 'headers' | 'maskValue' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'readOnly' | 'onRowEdit' | 'onRowDelete' | 'actionButtonConfig' | 'showError' | 'validationSchema' | 'leadingCellIcon' | 'trailingCellIcon'> {
|
|
163
|
+
export interface DynamicDataTableRowProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'rows' | 'headers' | 'maskValue' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'readOnly' | 'onRowEdit' | 'onRowDelete' | 'actionButtonConfig' | 'showError' | 'validationSchema' | 'leadingCellIcon' | 'trailingCellIcon' | 'buttonCellWrapComponent'> {
|
|
177
164
|
}
|
|
178
165
|
export {};
|