@devtron-labs/devtron-fe-common-lib 1.12.0-pre-0-beta-1 → 1.12.0-pre-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-DieGT18L.js → @code-editor-4EOC6hF3.js} +7687 -7743
- package/dist/{@common-rjsf-CwEIGtgd.js → @common-rjsf-0A0anoSU.js} +1 -1
- package/dist/Common/CIPipeline.Types.d.ts +20 -19
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Shared/Components/CMCS/constants.d.ts +2 -2
- package/dist/Shared/Components/CMCS/utils.d.ts +4 -3
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableHeader.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +5 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +75 -78
- package/dist/Shared/Components/KeyValueTable/index.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/utils.d.ts +13 -0
- package/dist/Shared/Services/app.types.d.ts +2 -6
- package/dist/index.js +735 -734
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, av as y, ax as k, aw as W } from "./@vendor-SjXFleuT.js";
|
2
2
|
import V, { forwardRef as J, useMemo as P } from "react";
|
3
3
|
import K, { getDefaultRegistry as q } from "@rjsf/core";
|
4
|
-
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-
|
4
|
+
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-4EOC6hF3.js";
|
5
5
|
import Q, { components as D } from "react-select";
|
6
6
|
import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
7
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as se, deepEquals as ae } from "@rjsf/utils";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DynamicDataTableCellValidationState } from '../Shared/Components';
|
1
|
+
import { DynamicDataTableCellValidationState, KeyValueTableData } from '../Shared/Components';
|
2
2
|
export interface MaterialType {
|
3
3
|
name: string;
|
4
4
|
type: string;
|
@@ -123,7 +123,7 @@ export interface PortMapType {
|
|
123
123
|
portOnLocal: number;
|
124
124
|
portOnContainer: number;
|
125
125
|
}
|
126
|
-
interface ConditionDetails {
|
126
|
+
export interface ConditionDetails {
|
127
127
|
id: number;
|
128
128
|
conditionOnVariable: string;
|
129
129
|
conditionOperator: string;
|
@@ -220,10 +220,7 @@ export declare enum WORKFLOW_CACHE_CONFIG_ENUM {
|
|
220
220
|
}
|
221
221
|
export interface FormType {
|
222
222
|
name: string;
|
223
|
-
args:
|
224
|
-
key: string;
|
225
|
-
value: string;
|
226
|
-
}[];
|
223
|
+
args: KeyValueTableData[];
|
227
224
|
materials: MaterialType[];
|
228
225
|
gitHost: Githost;
|
229
226
|
webhookEvents: WebhookEvent[];
|
@@ -271,22 +268,26 @@ export declare enum InputOutputVariablesHeaderKeys {
|
|
271
268
|
FORMAT = "format",
|
272
269
|
VALUE = "val"
|
273
270
|
}
|
274
|
-
export
|
271
|
+
export declare enum ConditionDataTableHeaderKeys {
|
272
|
+
VARIABLE = "variable",
|
273
|
+
OPERATOR = "operator",
|
274
|
+
VALUE = "val"
|
275
|
+
}
|
276
|
+
type InputOutputVariablesErrorObj = Record<InputOutputVariablesHeaderKeys, DynamicDataTableCellValidationState>;
|
277
|
+
type ConditionDetailsErrorObj = Record<ConditionDataTableHeaderKeys, DynamicDataTableCellValidationState>;
|
278
|
+
interface StepDetailTaskErrorObj {
|
279
|
+
inputVariables?: Record<number, InputOutputVariablesErrorObj>;
|
280
|
+
outputVariables?: Record<number, InputOutputVariablesErrorObj>;
|
281
|
+
isInputVariablesValid?: boolean;
|
282
|
+
isOutputVariablesValid?: boolean;
|
283
|
+
conditionDetails?: Record<number, ConditionDetailsErrorObj>;
|
284
|
+
isConditionDetailsValid?: boolean;
|
285
|
+
}
|
275
286
|
export interface TaskErrorObj {
|
276
287
|
isValid: boolean;
|
277
288
|
name: ErrorObj;
|
278
|
-
inlineStepDetail?:
|
279
|
-
|
280
|
-
outputVariables?: Record<number, InputOutputVariablesErrorObj>;
|
281
|
-
isInputVariablesValid?: boolean;
|
282
|
-
isOutputVariablesValid?: boolean;
|
283
|
-
};
|
284
|
-
pluginRefStepDetail?: {
|
285
|
-
inputVariables?: Record<number, InputOutputVariablesErrorObj>;
|
286
|
-
outputVariables?: Record<number, InputOutputVariablesErrorObj>;
|
287
|
-
isInputVariablesValid?: boolean;
|
288
|
-
isOutputVariablesValid?: boolean;
|
289
|
-
};
|
289
|
+
inlineStepDetail?: StepDetailTaskErrorObj;
|
290
|
+
pluginRefStepDetail?: StepDetailTaskErrorObj;
|
290
291
|
}
|
291
292
|
export interface FormErrorObjectType {
|
292
293
|
name: ErrorObj;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ShortcutType } from './types';
|
2
2
|
export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
|
3
|
-
keys: ("
|
3
|
+
keys: ("R" | "Alt" | "F" | "E" | "K" | "X" | "A" | "Home" | "End" | "." | "Space" | "Control" | "Shift" | "Meta" | "Escape" | "Enter" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
|
4
4
|
id: string;
|
5
5
|
};
|
6
6
|
export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { default as RJSF } from '@rjsf/core';
|
2
2
|
import { FormProps } from './types';
|
3
|
-
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "
|
3
|
+
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "id" | "children" | "disabled" | "className" | "onChange" | "target" | "onFocus" | "onBlur" | "onSubmit" | "onError" | "autoComplete" | "action" | "method" | "tagName" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { KeyValueTableData } from '../KeyValueTable';
|
2
2
|
import { ConfigMapSecretDataTypeOptionType } from './types';
|
3
3
|
export declare const CONFIG_MAP_SECRET_YAML_PARSE_ERROR = "Please provide valid YAML";
|
4
4
|
export declare const SECRET_TOAST_INFO: {
|
@@ -10,7 +10,7 @@ export declare const SECRET_TOAST_INFO: {
|
|
10
10
|
BOTH_ESO_DATA_AND_DATA_FROM_UNAVAILABLE: string;
|
11
11
|
};
|
12
12
|
export declare const configMapDataTypeOptions: ConfigMapSecretDataTypeOptionType[];
|
13
|
-
export declare const CONFIG_MAP_SECRET_DEFAULT_CURRENT_DATA:
|
13
|
+
export declare const CONFIG_MAP_SECRET_DEFAULT_CURRENT_DATA: KeyValueTableData[];
|
14
14
|
export declare const configMapSecretMountDataMap: {
|
15
15
|
environment: {
|
16
16
|
title: string;
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { GroupBase, OptionsOrGroups } from 'react-select';
|
2
|
-
import { CMSecretPayloadType,
|
2
|
+
import { CMSecretPayloadType, ConfigMapSecretUseFormProps, ESOSecretData, GetConfigMapSecretFormInitialValuesParamsType } from '../../Services';
|
3
|
+
import { KeyValueTableData } from '../KeyValueTable';
|
3
4
|
import { ConfigMapSecretDataTypeOptionType, GetConfigMapSecretReadOnlyValuesParamsType } from './types';
|
4
5
|
export declare const getSecretDataTypeOptions: (isJob: boolean, isHashiOrAWS: boolean) => ConfigMapSecretDataTypeOptionType[] | OptionsOrGroups<ConfigMapSecretDataTypeOptionType, GroupBase<ConfigMapSecretDataTypeOptionType>>;
|
5
|
-
export declare const convertKeyValuePairToYAML: (currentData:
|
6
|
+
export declare const convertKeyValuePairToYAML: (currentData: KeyValueTableData[]) => string;
|
6
7
|
export declare const getConfigMapSecretFormInitialValues: ({ isJob, configMapSecretData, cmSecretStateLabel, componentType, skipValidation, fallbackMergeStrategy, }: GetConfigMapSecretFormInitialValuesParamsType) => ConfigMapSecretUseFormProps;
|
7
8
|
export declare const getConfigMapSecretReadOnlyValues: ({ configMapSecretData, cmSecretStateLabel, componentType, isJob, fallbackMergeStrategy, displayKeys, }: GetConfigMapSecretReadOnlyValuesParamsType) => {
|
8
9
|
configData: {
|
@@ -12,6 +13,6 @@ export declare const getConfigMapSecretReadOnlyValues: ({ configMapSecretData, c
|
|
12
13
|
}[];
|
13
14
|
data: string;
|
14
15
|
};
|
15
|
-
export declare const convertYAMLToKeyValuePair: (yaml: string) =>
|
16
|
+
export declare const convertYAMLToKeyValuePair: (yaml: string) => KeyValueTableData[];
|
16
17
|
export declare const getESOSecretDataFromYAML: (yaml: string) => ESOSecretData;
|
17
18
|
export declare const getConfigMapSecretPayload: ({ isSecret, external, externalType, externalSubpathValues, yaml, yamlMode, currentData, esoSecretYaml, filePermission, name, selectedType, isFilePermissionChecked, roleARN, volumeMountPath, isSubPathChecked, mergeStrategy, }: ConfigMapSecretUseFormProps) => CMSecretPayloadType;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DynamicDataTableHeaderProps } from './types';
|
2
|
-
export declare const DynamicDataTableHeader: <K extends string, CustomStateType = Record<string, unknown>>({ headers, rows, sortingConfig, onRowAdd, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, headerComponent, actionButtonConfig, }: DynamicDataTableHeaderProps<K, CustomStateType>) => JSX.Element;
|
2
|
+
export declare const DynamicDataTableHeader: <K extends string, CustomStateType = Record<string, unknown>>({ headers, rows, sortingConfig, addBtnTooltip, onRowAdd, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, headerComponent, actionButtonConfig, }: DynamicDataTableHeaderProps<K, CustomStateType>) => JSX.Element;
|
@@ -112,6 +112,10 @@ export type DynamicDataTableProps<K extends string, CustomStateType = Record<str
|
|
112
112
|
isDeletionNotAllowed?: boolean;
|
113
113
|
/** When true, data add or update is disabled. */
|
114
114
|
readOnly?: boolean;
|
115
|
+
/** Tooltip for add button.
|
116
|
+
* @default 'Add'
|
117
|
+
*/
|
118
|
+
addBtnTooltip?: string;
|
115
119
|
/** Function to handle the addition of a new row to the table. */
|
116
120
|
onRowAdd: () => void;
|
117
121
|
/**
|
@@ -163,7 +167,7 @@ export type DynamicDataTableProps<K extends string, CustomStateType = Record<str
|
|
163
167
|
*/
|
164
168
|
focusableFieldKey?: K;
|
165
169
|
};
|
166
|
-
export interface DynamicDataTableHeaderProps<K extends string, CustomStateType = Record<string, unknown>> extends Pick<DynamicDataTableProps<K, CustomStateType>, 'headers' | 'rows' | 'headerComponent' | 'sortingConfig' | 'onRowAdd' | 'readOnly' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'actionButtonConfig'> {
|
170
|
+
export interface DynamicDataTableHeaderProps<K extends string, CustomStateType = Record<string, unknown>> extends Pick<DynamicDataTableProps<K, CustomStateType>, 'headers' | 'rows' | 'headerComponent' | 'sortingConfig' | 'addBtnTooltip' | 'onRowAdd' | 'readOnly' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'actionButtonConfig'> {
|
167
171
|
}
|
168
172
|
export interface DynamicDataTableRowProps<K extends string, CustomStateType = Record<string, unknown>> extends Pick<DynamicDataTableProps<K, CustomStateType>, 'rows' | 'headers' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'readOnly' | 'onRowEdit' | 'onRowDelete' | 'actionButtonConfig' | 'cellError' | 'leadingCellIcon' | 'trailingCellIcon' | 'buttonCellWrapComponent' | 'focusableFieldKey'> {
|
169
173
|
}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { KeyValueTableProps } from './KeyValueTable.types';
|
2
|
-
export declare const KeyValueTable:
|
2
|
+
export declare const KeyValueTable: ({ headerLabel, rows: initialRows, placeholder, maskValue, isSortable, headerComponent, onChange, isAdditionNotAllowed, readOnly, showError, validationSchema: parentValidationSchema, onError, validateDuplicateKeys, validateEmptyKeys, }: KeyValueTableProps) => JSX.Element;
|
@@ -1,40 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
* @template K - A string representing the key type.
|
6
|
-
*/
|
7
|
-
export interface KeyValueHeader<K extends string> {
|
8
|
-
/** The label of the header. */
|
9
|
-
label: string;
|
10
|
-
/** The key associated with the header. */
|
11
|
-
key: K;
|
12
|
-
/** An optional class name for the header. */
|
13
|
-
className?: string;
|
14
|
-
}
|
15
|
-
/**
|
16
|
-
* Type representing a key-value row.
|
17
|
-
* @template K - A string representing the key type.
|
18
|
-
*/
|
19
|
-
export type KeyValueRow<K extends string> = {
|
20
|
-
data: {
|
21
|
-
[key in K]: Pick<ResizableTagTextAreaProps, 'value' | 'disabled' | 'tabIndex'> & {
|
22
|
-
/** An optional boolean indicating if an asterisk should be shown. */
|
23
|
-
required?: boolean;
|
24
|
-
};
|
25
|
-
};
|
26
|
-
id: string | number;
|
27
|
-
};
|
28
|
-
/**
|
29
|
-
* Interface representing the configuration for a key-value table.
|
30
|
-
* @template K - A string representing the key type.
|
31
|
-
*/
|
32
|
-
export interface KeyValueConfig<K extends string> {
|
33
|
-
/** An array containing two key-value headers. */
|
34
|
-
headers: [KeyValueHeader<K>, KeyValueHeader<K>];
|
35
|
-
/** An array of key-value rows. */
|
36
|
-
rows: KeyValueRow<K>[];
|
37
|
-
}
|
1
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
2
|
+
import { DynamicDataTableProps } from '../DynamicDataTable';
|
3
|
+
export type KeyValueTableDataType = 'key' | 'value';
|
4
|
+
export type KeyValueTableInternalProps = DynamicDataTableProps<KeyValueTableDataType, never>;
|
38
5
|
type ErrorUIProps = {
|
39
6
|
/**
|
40
7
|
* Indicates whether to show errors.
|
@@ -58,63 +25,93 @@ type ErrorUIProps = {
|
|
58
25
|
validateDuplicateKeys?: never;
|
59
26
|
validateEmptyKeys?: never;
|
60
27
|
};
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
export type KeyValueMask<K extends string> = {
|
28
|
+
export type KeyValueHeaderLabel<K extends KeyValueTableDataType = KeyValueTableDataType> = {
|
29
|
+
[key in K]: string;
|
30
|
+
};
|
31
|
+
export type KeyValueMask<K extends KeyValueTableDataType = KeyValueTableDataType> = {
|
66
32
|
[key in K]?: boolean;
|
67
33
|
};
|
68
|
-
export type KeyValuePlaceholder<K extends
|
34
|
+
export type KeyValuePlaceholder<K extends KeyValueTableDataType = KeyValueTableDataType> = {
|
69
35
|
[key in K]?: string;
|
70
36
|
};
|
37
|
+
export interface KeyValueTableRowType<K extends KeyValueTableDataType = KeyValueTableDataType> {
|
38
|
+
id: string | number;
|
39
|
+
data: {
|
40
|
+
[key in K]: {
|
41
|
+
value: string;
|
42
|
+
/** An optional boolean indicating if the cell should be marked as disabled. */
|
43
|
+
disabled?: boolean;
|
44
|
+
/** An optional boolean indicating if an asterisk should be shown. */
|
45
|
+
required?: boolean;
|
46
|
+
/** An optional tooltip to show when hovering over cell. */
|
47
|
+
tooltip?: Partial<Pick<TooltipProps, 'content' | 'className'>>;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
}
|
51
|
+
export interface KeyValueTableData extends Pick<KeyValueTableRowType, 'id'> {
|
52
|
+
key: string;
|
53
|
+
value: string;
|
54
|
+
}
|
71
55
|
/**
|
72
|
-
*
|
73
|
-
* @template K - A string representing the key type.
|
56
|
+
* Props for the KeyValueTable component.
|
74
57
|
*/
|
75
|
-
export type KeyValueTableProps<
|
76
|
-
/** The configuration for the key-value table. */
|
77
|
-
config: KeyValueConfig<K>;
|
78
|
-
/** An optional mask for the key-value pairs. */
|
79
|
-
maskValue?: KeyValueMask<K>;
|
80
|
-
placeholder?: KeyValuePlaceholder<K>;
|
81
|
-
/** An optional boolean indicating if the table is sortable. */
|
82
|
-
isSortable?: boolean;
|
83
|
-
/** An optional React node for a custom header component. */
|
84
|
-
headerComponent?: ReactNode;
|
85
|
-
/** When true, data addition field will not be shown. */
|
86
|
-
isAdditionNotAllowed?: boolean;
|
87
|
-
/** When true, data add or update is disabled. */
|
88
|
-
readOnly?: boolean;
|
58
|
+
export type KeyValueTableProps = Pick<DynamicDataTableProps<KeyValueTableDataType>, 'isAdditionNotAllowed' | 'readOnly' | 'headerComponent'> & {
|
89
59
|
/**
|
90
|
-
*
|
91
|
-
* @param rowId - The id of the row that changed.
|
92
|
-
* @param headerKey - The key of the header that changed.
|
93
|
-
* @param value - The value of the cell.
|
60
|
+
* The label for the table header.
|
94
61
|
*/
|
95
|
-
|
62
|
+
headerLabel: KeyValueHeaderLabel;
|
96
63
|
/**
|
97
|
-
*
|
98
|
-
* @param deletedRowIndex - The index of the row that was deleted.
|
64
|
+
* The rows of the key-value table.
|
99
65
|
*/
|
100
|
-
|
66
|
+
rows: KeyValueTableRowType[];
|
101
67
|
/**
|
102
|
-
*
|
103
|
-
* @param value - The value to validate.
|
104
|
-
* @param key - The row key of the value.
|
105
|
-
* @param rowId - The id of the row.
|
106
|
-
* @returns Return true if the value is valid, otherwise false
|
107
|
-
* and set `showError` to `true` and provide errorMessages array to show error message.
|
68
|
+
* An optional configuration to mask values in the table.
|
108
69
|
*/
|
109
|
-
|
70
|
+
maskValue?: KeyValueMask;
|
110
71
|
/**
|
111
|
-
* An
|
72
|
+
* An optional placeholder configuration for the table columns.
|
112
73
|
*/
|
113
|
-
|
74
|
+
placeholder?: KeyValuePlaceholder;
|
75
|
+
/**
|
76
|
+
* An optional boolean indicating if the `key` column is sortable.
|
77
|
+
*/
|
78
|
+
isSortable?: boolean;
|
79
|
+
/**
|
80
|
+
* A callback function triggered when the table rows change.
|
81
|
+
*
|
82
|
+
* @param data - The updated table data.
|
83
|
+
*/
|
84
|
+
onChange: (data: KeyValueTableData[]) => void;
|
85
|
+
/**
|
86
|
+
* A function to validate the value of a cell.
|
87
|
+
*
|
88
|
+
* @param value - The value to validate.
|
89
|
+
* @param key - The key of the header associated with the value.
|
90
|
+
* @param row - The row containing the value.
|
91
|
+
* @returns A boolean indicating whether the value is valid. If false,
|
92
|
+
* `showError` should be set to `true` and `errorMessages` should
|
93
|
+
* provide an array of error messages to display.
|
94
|
+
*/
|
95
|
+
validationSchema?: (value: string, key: KeyValueTableDataType, row: KeyValueTableRowType) => {
|
96
|
+
/** Boolean indicating if the cell data is valid or not. */
|
97
|
+
isValid: boolean;
|
98
|
+
/**
|
99
|
+
* An array of error messages to display in the cell error tooltip.
|
100
|
+
*/
|
101
|
+
errorMessages?: string[];
|
102
|
+
};
|
114
103
|
/**
|
115
|
-
* A callback function
|
116
|
-
*
|
104
|
+
* A callback function triggered when an error occurs in the table.
|
105
|
+
*
|
106
|
+
* @param errorState - A boolean indicating the error state. True if any
|
107
|
+
* cell has an error, otherwise false.
|
117
108
|
*/
|
118
109
|
onError?: (errorState: boolean) => void;
|
119
110
|
} & ErrorUIProps;
|
111
|
+
export type KeyValueValidationSchemaProps = {
|
112
|
+
value: Parameters<KeyValueTableProps['validationSchema']>[0];
|
113
|
+
key: Parameters<KeyValueTableProps['validationSchema']>[1];
|
114
|
+
row: Parameters<KeyValueTableProps['validationSchema']>[2];
|
115
|
+
keysFrequency?: Record<string, number>;
|
116
|
+
} & Pick<KeyValueTableProps, 'validateDuplicateKeys' | 'validateEmptyKeys' | 'validationSchema'> & Partial<Pick<KeyValueTableInternalProps, 'rows'>>;
|
120
117
|
export {};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export * from './KeyValueTable.component';
|
2
|
-
export
|
2
|
+
export type { KeyValueTableData, KeyValueTableProps } from './KeyValueTable.types';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { UseStateFiltersReturnType } from '../../../Common/Hooks';
|
2
|
+
import { KeyValueTableData, KeyValueTableDataType, KeyValueTableInternalProps, KeyValueTableProps, KeyValueValidationSchemaProps } from './KeyValueTable.types';
|
3
|
+
export declare const getModifiedDataForOnChange: (rows: KeyValueTableInternalProps["rows"]) => KeyValueTableData[];
|
4
|
+
export declare const getEmptyRow: (placeholder: KeyValueTableProps["placeholder"]) => KeyValueTableInternalProps["rows"][number];
|
5
|
+
export declare const getKeyValueTableRows: ({ rows: initialRows, placeholder, maskValue, }: Required<Pick<KeyValueTableProps, "rows" | "placeholder" | "maskValue">>) => KeyValueTableInternalProps["rows"];
|
6
|
+
export declare const getKeyValueTableSortedRows: ({ rows, sortBy, sortOrder, }: Required<Pick<UseStateFiltersReturnType<KeyValueTableDataType>, "sortBy" | "sortOrder">> & Pick<KeyValueTableInternalProps, "rows">) => import('../DynamicDataTable').DynamicDataTableRowType<KeyValueTableDataType, never>[];
|
7
|
+
export declare const getKeyValueHeaders: ({ headerLabel, isSortable, }: Pick<KeyValueTableProps, "headerLabel" | "isSortable">) => KeyValueTableInternalProps["headers"];
|
8
|
+
export declare const getKeyValueTableCellError: ({ validateDuplicateKeys, validateEmptyKeys, validationSchema: parentValidationSchema, rows, }: Pick<KeyValueValidationSchemaProps, "validateDuplicateKeys" | "validateEmptyKeys" | "validationSchema" | "rows"> & {
|
9
|
+
skipValidationIfValueIsEmpty?: boolean;
|
10
|
+
}) => {
|
11
|
+
isValid: boolean;
|
12
|
+
updatedCellError: {};
|
13
|
+
};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { KeyValueTableData } from '../Components';
|
1
2
|
import { TargetPlatformsDTO } from '../types';
|
2
3
|
import { OverrideMergeStrategyType } from '../../Pages/Applications';
|
3
4
|
import { ReleaseTag, ResponseType, UserApprovalMetadataType } from '../../Common';
|
@@ -185,11 +186,6 @@ export interface ConfigMapSecretDataType {
|
|
185
186
|
configData: ConfigMapSecretDataConfigDatumDTO[];
|
186
187
|
isDeletable: boolean;
|
187
188
|
}
|
188
|
-
export interface CMSecretYamlData {
|
189
|
-
k: string;
|
190
|
-
v: string;
|
191
|
-
id: string | number;
|
192
|
-
}
|
193
189
|
export interface ConfigMapSecretUseFormProps {
|
194
190
|
name: string;
|
195
191
|
isSecret: boolean;
|
@@ -204,7 +200,7 @@ export interface ConfigMapSecretUseFormProps {
|
|
204
200
|
roleARN: string;
|
205
201
|
yamlMode: boolean;
|
206
202
|
yaml: string;
|
207
|
-
currentData:
|
203
|
+
currentData: KeyValueTableData[];
|
208
204
|
secretDataYaml: string;
|
209
205
|
esoSecretYaml: string;
|
210
206
|
hasCurrentDataErr: boolean;
|