pixel-react-excel-sheet 1.0.31 → 1.0.33
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/lib/components/Accordion/Accordion.d.ts +1 -1
- package/lib/components/Accordion/types.d.ts +4 -0
- package/lib/components/AllProjectsDropdown/types.d.ts +2 -0
- package/lib/components/Button/Button.d.ts +2 -2
- package/lib/components/Button/types.d.ts +17 -0
- package/lib/components/Charts/DashboardDonutChart/types.d.ts +2 -0
- package/lib/components/Charts/MultiRadialChart/types.d.ts +3 -0
- package/lib/components/ChooseFile/ChooseFile.d.ts +3 -0
- package/lib/components/ChooseFile/types.d.ts +68 -0
- package/lib/components/ConditionalDropdown/ConditionalDropdown.d.ts +1 -2
- package/lib/components/ConditionalDropdown/types.d.ts +4 -4
- package/lib/components/ConnectingBranch/ConnectingBranch.d.ts +2 -1
- package/lib/components/ConnectingBranch/data.d.ts +19 -33
- package/lib/components/ConnectingBranch/types.d.ts +10 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.d.ts +7 -1
- package/lib/components/FileDropzone/types.d.ts +12 -4
- package/lib/components/LabelEditTextField/types.d.ts +3 -1
- package/lib/components/MachineInputField/MachineInputField.d.ts +4 -1
- package/lib/components/ScriptSwitchButton/ScriptSwitchButton.d.ts +9 -0
- package/lib/components/ScriptSwitchButton/index.d.ts +1 -0
- package/lib/components/Select/types.d.ts +1 -1
- package/lib/components/StatusCard/types.d.ts +2 -0
- package/lib/components/TableTree/Components/TableCell.d.ts +1 -1
- package/lib/components/TableTree/Components/TableRow.d.ts +1 -1
- package/lib/components/TableTree/data.d.ts +115 -1
- package/lib/components/TableTree/types.d.ts +4 -0
- package/lib/components/TextArea/Textarea.d.ts +1 -1
- package/lib/components/TextArea/Types.d.ts +1 -0
- package/lib/components/ThemeProvider/types.d.ts +1 -1
- package/lib/index.d.ts +250 -75
- package/lib/index.esm.js +863 -489
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +909 -488
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/validateFile/validateFile.d.ts +2 -0
- package/lib/validations/regex.d.ts +46 -0
- package/package.json +2 -2
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +5 -0
- package/src/assets/Themes/BaseTheme.scss +2 -1
- package/src/assets/Themes/BlueTheme.scss +279 -0
- package/src/assets/Themes/DarkTheme.scss +2 -1
- package/src/assets/Themes/Theme.scss +5 -0
- package/src/assets/icons/failed_status_icon.svg +1 -1
- package/src/assets/icons/flaky_status_icon.svg +1 -1
- package/src/assets/icons/settings.svg +3 -0
- package/src/assets/icons/skipped_status_icon.svg +1 -1
- package/src/assets/icons/warning_status_icon.svg +1 -1
- package/src/components/Accordion/Accordion.stories.tsx +13 -0
- package/src/components/Accordion/Accordion.tsx +2 -1
- package/src/components/Accordion/types.ts +4 -0
- package/src/components/AllProjectsDropdown/types.ts +2 -0
- package/src/components/AppHeader/AppHeader.scss +6 -2
- package/src/components/AppHeader/AppHeader.tsx +4 -2
- package/src/components/Button/Button.scss +12 -0
- package/src/components/Button/Button.tsx +29 -11
- package/src/components/Button/types.ts +21 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.scss +83 -30
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.tsx +3 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +39 -16
- package/src/components/Charts/DashboardDonutChart/types.ts +2 -0
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.scss +0 -1
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.stories.tsx +2 -1
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.tsx +18 -4
- package/src/components/Charts/MultiRadialChart/types.ts +4 -1
- package/src/components/ChooseFile/ChooseFile.stories.tsx +190 -0
- package/src/components/ChooseFile/ChooseFile.tsx +46 -0
- package/src/components/ChooseFile/types.ts +78 -0
- package/src/components/ConditionalDropdown/ConditionalDropdown.stories.tsx +8 -5
- package/src/components/ConditionalDropdown/ConditionalDropdown.tsx +133 -135
- package/src/components/ConditionalDropdown/types.ts +8 -8
- package/src/components/ConnectingBranch/BranchComponents/MachineInstances.tsx +94 -79
- package/src/components/ConnectingBranch/ConnectingBranch.scss +183 -195
- package/src/components/ConnectingBranch/ConnectingBranch.stories.tsx +33 -1
- package/src/components/ConnectingBranch/ConnectingBranch.tsx +121 -107
- package/src/components/ConnectingBranch/{data.ts → data.tsx} +106 -17
- package/src/components/ConnectingBranch/types.ts +21 -0
- package/src/components/DatePicker/DatePicker.scss +310 -0
- package/src/components/Excel/ExcelFile/ExcelFile.tsx +4 -4
- package/src/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.tsx +22 -10
- package/src/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.tsx +2 -2
- package/src/components/Excel/ExcelFile/ExcelFileComponents/DataEditor.tsx +4 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/FloatingRect.tsx +6 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.tsx +2 -2
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +30 -11
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.tsx +65 -19
- package/src/components/Excel/ExcelFile/ExcelFileComponents/actions.ts +14 -0
- package/src/components/Excel/ExcelFile/ExcelFileComponents/reducer.ts +16 -0
- package/src/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.ts +77 -10
- package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +6 -5
- package/src/components/FileDropzone/Dropzone.tsx +3 -0
- package/src/components/FileDropzone/FileDropzone.scss +18 -0
- package/src/components/FileDropzone/FileDropzone.stories.tsx +75 -7
- package/src/components/FileDropzone/FileDropzone.tsx +2 -0
- package/src/components/FileDropzone/RadioFilePreview.tsx +7 -3
- package/src/components/FileDropzone/types.ts +13 -4
- package/src/components/Icon/iconList.ts +4 -2
- package/src/components/InputWithDropdown/InputWithDropdown.tsx +1 -1
- package/src/components/LabelEditTextField/LabelEditTextField.scss +4 -0
- package/src/components/LabelEditTextField/LabelEditTextField.stories.tsx +8 -3
- package/src/components/LabelEditTextField/LabelEditTextField.tsx +42 -18
- package/src/components/LabelEditTextField/types.ts +3 -1
- package/src/components/MachineInputField/MachineInputField.tsx +67 -70
- package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.scss +1 -1
- package/src/components/ScriptSwitchButton/ScriptSwitchButton.scss +33 -0
- package/src/components/ScriptSwitchButton/ScriptSwitchButton.stories.tsx +48 -0
- package/src/components/ScriptSwitchButton/ScriptSwitchButton.tsx +65 -0
- package/src/components/ScriptSwitchButton/index.ts +1 -0
- package/src/components/Search/Search.tsx +3 -1
- package/src/components/Select/Select.tsx +4 -4
- package/src/components/Select/types.ts +1 -1
- package/src/components/SequentialConnectingBranch/components/Branches/Branches.scss +1 -0
- package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +2 -8
- package/src/components/StatusCard/StatusCard.scss +2 -1
- package/src/components/StatusCard/StatusCard.stories.tsx +59 -1
- package/src/components/StatusCard/StatusCard.tsx +10 -2
- package/src/components/StatusCard/types.ts +2 -0
- package/src/components/TableTree/Components/TableBody.tsx +20 -16
- package/src/components/TableTree/Components/TableCell.tsx +47 -31
- package/src/components/TableTree/Components/TableRow.tsx +4 -0
- package/src/components/TableTree/TableTree.scss +121 -109
- package/src/components/TableTree/data.ts +48 -2
- package/src/components/TableTree/types.ts +4 -0
- package/src/components/TextArea/Textarea.tsx +2 -0
- package/src/components/TextArea/Types.ts +3 -0
- package/src/components/ThemeProvider/types.ts +1 -1
- package/src/index.ts +97 -0
- package/src/utils/validateFile/validateFile.stories.tsx +49 -0
- package/src/utils/validateFile/validateFile.ts +39 -0
- package/src/validations/regex.stories.tsx +362 -0
- package/src/validations/regex.ts +194 -0
- package/src/components/SequentialConnectingBranch/components/AddBrowserModal/AddBrowserModal.scss +0 -51
- package/src/components/SequentialConnectingBranch/components/AddBrowserModal/AddBrowserModal.tsx +0 -107
- package/src/components/SequentialConnectingBranch/components/AddBrowserModal/types.ts +0 -5
- package/src/components/SequentialConnectingBranch/components/DatasetListModal/DatasetListModal.scss +0 -31
- package/src/components/SequentialConnectingBranch/components/DatasetListModal/DatasetListModal.tsx +0 -85
- package/src/components/SequentialConnectingBranch/components/DatasetListModal/types.ts +0 -4
- /package/src/assets/icons/{impactList.svg → impact_list.svg} +0 -0
|
@@ -4,5 +4,5 @@ import { AccordionProps } from './types';
|
|
|
4
4
|
/**
|
|
5
5
|
* Accordion UI component
|
|
6
6
|
*/
|
|
7
|
-
declare const Accordion: ({ headerTitle, color, minHeight, accordionContent, disable, disableInfoMessage, accordionStateIconName, AccordionStateIconWidth, AccordionStateIconHeight, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const Accordion: ({ headerTitle, color, minHeight, accordionContent, disable, disableInfoMessage, accordionStateIconName, AccordionStateIconWidth, AccordionStateIconHeight, isExpand, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default Accordion;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './Button.scss';
|
|
2
2
|
import '../../assets/styles/_colors.scss';
|
|
3
3
|
import { ButtonProps } from './types';
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
4
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
5
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { DynamicObj } from '../CreateVariable/types';
|
|
2
3
|
export interface ButtonProps {
|
|
3
4
|
/**
|
|
4
5
|
* Variant of the button
|
|
@@ -62,4 +63,20 @@ export interface ButtonProps {
|
|
|
62
63
|
* form to accept form id in string
|
|
63
64
|
*/
|
|
64
65
|
form?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Is the Type ChooseFile for the button
|
|
68
|
+
*/
|
|
69
|
+
isChooseFile?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Custom Width for the button
|
|
72
|
+
*/
|
|
73
|
+
buttonWidth?: string;
|
|
74
|
+
/**
|
|
75
|
+
* selectedfile object will be send.
|
|
76
|
+
*/
|
|
77
|
+
selectedFile?: File | DynamicObj | null;
|
|
78
|
+
/**
|
|
79
|
+
* handleCloseIcon function will set to the initial state .
|
|
80
|
+
*/
|
|
81
|
+
handleCloseIcon?: () => void;
|
|
65
82
|
}
|
|
@@ -34,8 +34,10 @@ export type DashboardDonutChartProps = {
|
|
|
34
34
|
chartGap?: number;
|
|
35
35
|
legendGap?: number;
|
|
36
36
|
tableWidth?: number;
|
|
37
|
+
tableHeight?: number;
|
|
37
38
|
legendValueFontSize?: number;
|
|
38
39
|
legendKeyFontSize?: number;
|
|
39
40
|
labelYoffSet?: number;
|
|
40
41
|
subLabelYoffSet?: number;
|
|
42
|
+
onSelectedStatus?: (_value: string) => void;
|
|
41
43
|
};
|
|
@@ -14,6 +14,9 @@ export interface MultiRadialChartProps {
|
|
|
14
14
|
barValues: BarValue[];
|
|
15
15
|
legendType?: LegendType;
|
|
16
16
|
isLegendDetails?: boolean;
|
|
17
|
+
labelFontSize?: number;
|
|
18
|
+
subLabelFontSize?: number;
|
|
19
|
+
gapAngle?: number;
|
|
17
20
|
}
|
|
18
21
|
export interface ChartItem extends BarValue {
|
|
19
22
|
label: string;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { DynamicObj } from '../CreateVariable/types';
|
|
2
|
+
export interface ChooseFileProps {
|
|
3
|
+
/**
|
|
4
|
+
* Variant of the button
|
|
5
|
+
*/
|
|
6
|
+
variant: 'primary' | 'secondary' | 'tertiary' | 'delete' | 'warning';
|
|
7
|
+
/**
|
|
8
|
+
* What background color to use
|
|
9
|
+
*/
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Width in string format can be sent for needed width
|
|
13
|
+
*/
|
|
14
|
+
buttonWidth?: string;
|
|
15
|
+
/**
|
|
16
|
+
* How large should the button be?
|
|
17
|
+
*/
|
|
18
|
+
size?: 'small' | 'medium' | 'large';
|
|
19
|
+
/**
|
|
20
|
+
* Button contents
|
|
21
|
+
*/
|
|
22
|
+
label?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Type of the button
|
|
25
|
+
*/
|
|
26
|
+
type?: 'button' | 'submit';
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Optional click handler
|
|
30
|
+
*/
|
|
31
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Button id
|
|
34
|
+
*/
|
|
35
|
+
id?: string;
|
|
36
|
+
/**
|
|
37
|
+
* onSubmit function handler
|
|
38
|
+
*/
|
|
39
|
+
onSubmit?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
40
|
+
/**
|
|
41
|
+
* react ref for the button
|
|
42
|
+
*/
|
|
43
|
+
ref?: any;
|
|
44
|
+
/**
|
|
45
|
+
* Classname for the button
|
|
46
|
+
*/
|
|
47
|
+
className?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Additional styles for the button
|
|
50
|
+
*/
|
|
51
|
+
style?: React.CSSProperties;
|
|
52
|
+
/**
|
|
53
|
+
* Give icon name availble in storybook that to be on left side of button
|
|
54
|
+
*/
|
|
55
|
+
iconName?: string;
|
|
56
|
+
/**
|
|
57
|
+
* isChooseFile is a Boolean prop
|
|
58
|
+
*/
|
|
59
|
+
isChooseFile?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* selectedfile object will be send.
|
|
62
|
+
*/
|
|
63
|
+
selectedFile?: File | DynamicObj | null;
|
|
64
|
+
/**
|
|
65
|
+
* handleCloseIcon function will set to the initial state .
|
|
66
|
+
*/
|
|
67
|
+
handleCloseIcon?: () => void;
|
|
68
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ConditionalDropdownProps } from './types';
|
|
2
2
|
import './ConditionalDropdown.scss';
|
|
3
|
-
|
|
4
|
-
declare const ConditionalDropdown: React.FC<ConditionalDropdownProps>;
|
|
3
|
+
declare const ConditionalDropdown: import("react").ForwardRefExoticComponent<ConditionalDropdownProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
4
|
export default ConditionalDropdown;
|
|
@@ -21,7 +21,7 @@ export interface ConditionalDropdownProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* Function storing and updating the inputValue state
|
|
23
23
|
*/
|
|
24
|
-
setHashInputValue?: (value: dynamicObject |
|
|
24
|
+
setHashInputValue?: (value: File | dynamicObject | null) => void;
|
|
25
25
|
/**
|
|
26
26
|
* List of variables
|
|
27
27
|
*/
|
|
@@ -35,7 +35,7 @@ export interface ConditionalDropdownProps {
|
|
|
35
35
|
* @param value
|
|
36
36
|
* @returns
|
|
37
37
|
*/
|
|
38
|
-
onChange?: (
|
|
38
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
39
39
|
/**
|
|
40
40
|
* Function to handle create variable icon click
|
|
41
41
|
*/
|
|
@@ -113,8 +113,8 @@ export interface ConditionalDropdownProps {
|
|
|
113
113
|
*/
|
|
114
114
|
isLabelRequired?: boolean;
|
|
115
115
|
/**
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
* If true, dropdown opens when '#' is entered at the first position.
|
|
117
|
+
*/
|
|
118
118
|
isHash?: boolean;
|
|
119
119
|
/**
|
|
120
120
|
* Options for the dropdown when `isHash` is true.
|
|
@@ -3,7 +3,7 @@ declare const machineData: {
|
|
|
3
3
|
machines: {
|
|
4
4
|
multiple: boolean;
|
|
5
5
|
totalNoScript: number;
|
|
6
|
-
selectedMachines:
|
|
6
|
+
selectedMachines: {
|
|
7
7
|
clientId: string;
|
|
8
8
|
executionDataSet: {
|
|
9
9
|
peVariableSetId: string;
|
|
@@ -22,13 +22,20 @@ declare const machineData: {
|
|
|
22
22
|
osVersion: string;
|
|
23
23
|
hostName: string;
|
|
24
24
|
};
|
|
25
|
-
deviceInfo:
|
|
25
|
+
deviceInfo: {
|
|
26
|
+
version: string;
|
|
27
|
+
name: string;
|
|
28
|
+
type: string;
|
|
29
|
+
subType: string;
|
|
30
|
+
platform: string;
|
|
31
|
+
}[];
|
|
26
32
|
headless: boolean;
|
|
27
33
|
runLevelExecutionDataSets: {
|
|
28
34
|
peVariableSetId: string;
|
|
29
35
|
globalVariableSetId: string;
|
|
30
36
|
testDataSetId: string;
|
|
31
37
|
runScriptCount: number;
|
|
38
|
+
browserRenderer: string;
|
|
32
39
|
}[];
|
|
33
40
|
} | {
|
|
34
41
|
clientId: string;
|
|
@@ -42,44 +49,23 @@ declare const machineData: {
|
|
|
42
49
|
osVersion: string;
|
|
43
50
|
hostName: string;
|
|
44
51
|
};
|
|
45
|
-
deviceInfo:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
deviceInfo: {
|
|
53
|
+
version: string;
|
|
54
|
+
name: string;
|
|
55
|
+
type: string;
|
|
56
|
+
subType: string;
|
|
57
|
+
platform: string;
|
|
51
58
|
}[];
|
|
52
|
-
})[];
|
|
53
|
-
totalScript?: undefined;
|
|
54
|
-
} | {
|
|
55
|
-
clientId: string;
|
|
56
|
-
executionDataSet: {
|
|
57
|
-
peVariableSetId: string;
|
|
58
|
-
globalVariableSetId: string;
|
|
59
|
-
testDataSetId: string;
|
|
60
|
-
};
|
|
61
|
-
totalScript: number;
|
|
62
|
-
machineInstances: {
|
|
63
|
-
clientId: string;
|
|
64
|
-
numberOfRuns: string;
|
|
65
|
-
executionEnv: string;
|
|
66
|
-
browserName: string;
|
|
67
|
-
browserVersion: string;
|
|
68
|
-
systemUrl: string;
|
|
69
|
-
machineInfo: {
|
|
70
|
-
osName: string;
|
|
71
|
-
osVersion: string;
|
|
72
|
-
hostName: string;
|
|
73
|
-
};
|
|
74
|
-
deviceInfo: never[];
|
|
75
59
|
headless: boolean;
|
|
76
60
|
runLevelExecutionDataSets: {
|
|
77
61
|
peVariableSetId: string;
|
|
78
62
|
globalVariableSetId: string;
|
|
79
63
|
testDataSetId: string;
|
|
64
|
+
runScriptCount: number;
|
|
65
|
+
executionDataSetId: string;
|
|
80
66
|
}[];
|
|
81
|
-
}[];
|
|
82
|
-
}
|
|
67
|
+
})[];
|
|
68
|
+
}[];
|
|
83
69
|
executionType: string;
|
|
84
70
|
};
|
|
85
71
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
1
2
|
type MachineInstanceData = any;
|
|
2
3
|
export interface MachineInstance {
|
|
3
4
|
[key: string]: MachineInstanceData;
|
|
@@ -7,13 +8,22 @@ export interface MachineData {
|
|
|
7
8
|
[key: string]: machineDataObj;
|
|
8
9
|
}
|
|
9
10
|
export interface MachineInstancesProps {
|
|
11
|
+
parentNode: number;
|
|
10
12
|
data: MachineData;
|
|
11
13
|
verticalLineHeight: number;
|
|
12
14
|
datasetHeight: number;
|
|
13
15
|
curveHeights: number[];
|
|
14
16
|
itemRefs: React.MutableRefObject<(HTMLDivElement | null)[]>;
|
|
15
17
|
datasetRef: React.RefObject<HTMLDivElement>;
|
|
18
|
+
getChildNodeComponent: (isButton: boolean, ...args: any[]) => ReactElement<any, any>;
|
|
16
19
|
}
|
|
17
20
|
export type indexType = number;
|
|
18
21
|
export type rowType = number;
|
|
22
|
+
export interface ConnectBranchProps {
|
|
23
|
+
data: MachineData;
|
|
24
|
+
childNodeCurveHeight?: number;
|
|
25
|
+
getParentNodeComponent: (isMultiSelect: boolean, ...args: any[]) => ReactElement<any, any>;
|
|
26
|
+
getParentNodeComponentActionItems: (...args: any[]) => ReactElement<any, any>;
|
|
27
|
+
getChildNodeComponent: (isButton: boolean, ...args: any[]) => ReactElement<any, any>;
|
|
28
|
+
}
|
|
19
29
|
export {};
|
|
@@ -162,6 +162,12 @@ export type SetDataAction = BaseAction<typeof SET_DATA> & {
|
|
|
162
162
|
data: Matrix<CellBase>;
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
|
+
export type KeyPressAction = BaseAction<typeof KEY_PRESS> & {
|
|
166
|
+
payload: {
|
|
167
|
+
event: React.KeyboardEvent;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
export declare function keyPress(event: React.KeyboardEvent): KeyPressAction;
|
|
165
171
|
export declare function setData(data: Matrix<CellBase>): SetDataAction;
|
|
166
172
|
export type SetCreateFormulaParserAction = BaseAction<typeof SET_CREATE_FORMULA_PARSER> & {
|
|
167
173
|
payload: {
|
|
@@ -251,4 +257,4 @@ export type ClearAction = BaseAction<typeof CLEAR>;
|
|
|
251
257
|
export declare function clear(): ClearAction;
|
|
252
258
|
export type BlurAction = BaseAction<typeof BLUR>;
|
|
253
259
|
export declare function blur(): BlurAction;
|
|
254
|
-
export type Action = SetDataAction | SetCreateFormulaParserAction | SelectEntireRowAction | SelectEntireColumnAction | SelectEntireWorksheetAction | SetSelectionAction | SelectAction | ActivateAction | SetCellDataAction | SetCellDimensionsAction | PasteAction | KeyDownAction | DragStartAction | DragEndAction | CommitAction | CopyAction | CutAction | EditAction | ViewAction | ClearAction | UnderlineTypeStyle | FontSize | FontFamily | TextAlignType | BorderType | ItalicStyle | BoldStyle | ColorStyle | BackgroundStyle | FormatePainterStyle | AddRowTop | AddColumnLeft | DeleteRow | DeleteColumn | SetRowHeight | SetColumnPosition | SetAutoFill | BlurAction;
|
|
260
|
+
export type Action = SetDataAction | SetCreateFormulaParserAction | SelectEntireRowAction | SelectEntireColumnAction | SelectEntireWorksheetAction | SetSelectionAction | SelectAction | ActivateAction | SetCellDataAction | SetCellDimensionsAction | PasteAction | KeyDownAction | DragStartAction | DragEndAction | CommitAction | CopyAction | CutAction | EditAction | ViewAction | ClearAction | UnderlineTypeStyle | FontSize | FontFamily | KeyPressAction | TextAlignType | BorderType | ItalicStyle | BoldStyle | ColorStyle | BackgroundStyle | FormatePainterStyle | AddRowTop | AddColumnLeft | DeleteRow | DeleteColumn | SetRowHeight | SetColumnPosition | SetAutoFill | BlurAction;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { DynamicObj } from '../CreateVariable/types';
|
|
2
3
|
export interface RadioOption {
|
|
3
4
|
label: string;
|
|
4
5
|
value: string;
|
|
@@ -85,11 +86,11 @@ export interface FileDropzoneProps {
|
|
|
85
86
|
/**
|
|
86
87
|
* Its the File Name of File Selected from Local File.
|
|
87
88
|
**/
|
|
88
|
-
setSelectedFile?: (file: File | null) => void;
|
|
89
|
+
setSelectedFile?: (file: File | DynamicObj | null) => void;
|
|
89
90
|
/**
|
|
90
91
|
* Its the File Name of File Selected from Local File.
|
|
91
92
|
**/
|
|
92
|
-
selectedFile?: File | null;
|
|
93
|
+
selectedFile?: File | DynamicObj | null;
|
|
93
94
|
/**
|
|
94
95
|
* Its the function which updates the Selected file from Local Directory.
|
|
95
96
|
**/
|
|
@@ -106,6 +107,10 @@ export interface FileDropzoneProps {
|
|
|
106
107
|
* If isDisable is true not able to access the FileDropzone
|
|
107
108
|
**/
|
|
108
109
|
isDisable?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Its the boolean value setted when the replace is clicked for TestData radio option .
|
|
112
|
+
**/
|
|
113
|
+
setShowDrawer?: (value: boolean | ((prevState: boolean) => boolean)) => void;
|
|
109
114
|
}
|
|
110
115
|
export interface FileState {
|
|
111
116
|
accepted: File[];
|
|
@@ -154,11 +159,12 @@ export interface DroppableProps {
|
|
|
154
159
|
selectedRadioOption?: Option;
|
|
155
160
|
radioOptions?: RadioOption[];
|
|
156
161
|
handleOptionChange?: (option: RadioOption) => void;
|
|
157
|
-
selectedFile?: File | null;
|
|
158
|
-
setSelectedFile?: (file: File | null) => void;
|
|
162
|
+
selectedFile?: File | DynamicObj | null;
|
|
163
|
+
setSelectedFile?: (file: File | DynamicObj | null) => void;
|
|
159
164
|
handleFileChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
160
165
|
handleRemoveFile?: () => void;
|
|
161
166
|
isDisable?: boolean;
|
|
167
|
+
setShowDrawer?: (value: boolean | ((prevState: boolean) => boolean)) => void;
|
|
162
168
|
}
|
|
163
169
|
export interface FilePreviewProps {
|
|
164
170
|
file: File;
|
|
@@ -172,4 +178,6 @@ export interface RadioFilePreviewProps {
|
|
|
172
178
|
onFileRemoveClick?: () => void;
|
|
173
179
|
onFileReplaceClick?: (file: File | null) => void;
|
|
174
180
|
setSelectedFile?: (file: File | null) => void;
|
|
181
|
+
selectedRadioOption?: Option;
|
|
182
|
+
setShowDrawer?: (value: boolean | ((prevState: boolean) => boolean)) => void;
|
|
175
183
|
}
|
|
@@ -16,7 +16,7 @@ export interface LabelEditTextFieldTypes {
|
|
|
16
16
|
/** Label text displayed above the input field. */
|
|
17
17
|
label?: string;
|
|
18
18
|
/** Initial text displayed in the input field. */
|
|
19
|
-
text
|
|
19
|
+
text?: string;
|
|
20
20
|
/** Text to be highlighted within the displayed text, if provided. */
|
|
21
21
|
highlightText?: string;
|
|
22
22
|
/** Custom error message to be displayed, if applicable. */
|
|
@@ -40,6 +40,8 @@ export interface LabelEditTextFieldTypes {
|
|
|
40
40
|
customErrorCondition?: boolean;
|
|
41
41
|
placeholder?: string;
|
|
42
42
|
onClick?: () => void;
|
|
43
|
+
/** Function called when every input character got changed */
|
|
44
|
+
onInputChange?: (newInputValue: string) => void;
|
|
43
45
|
tooltip?: {
|
|
44
46
|
tooltipTitle?: string;
|
|
45
47
|
tooltipPlacement?: string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import './MachineInputField.scss';
|
|
2
2
|
import { MachineInputFieldProps } from './types';
|
|
3
|
-
declare const MachineInputField:
|
|
3
|
+
declare const MachineInputField: {
|
|
4
|
+
({ width, options, runCount, className, contentReverse, onClick, modalId, }: MachineInputFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
4
7
|
export default MachineInputField;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './ScriptSwitchButton.scss';
|
|
3
|
+
interface ScriptSwitchButtonProps {
|
|
4
|
+
handleClick: (selected: string) => void;
|
|
5
|
+
selected: string;
|
|
6
|
+
tabList: Array<'Automation' | 'Manual'>;
|
|
7
|
+
}
|
|
8
|
+
declare const ScriptSwitchButton: React.FC<ScriptSwitchButtonProps>;
|
|
9
|
+
export default ScriptSwitchButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ScriptSwitchButton';
|
|
@@ -11,6 +11,8 @@ export interface CardProps {
|
|
|
11
11
|
style?: React.CSSProperties;
|
|
12
12
|
/** toggle update */
|
|
13
13
|
handleToggleStatus?: (_status: boolean) => void;
|
|
14
|
+
/** make Card Select false */
|
|
15
|
+
resetToggle?: boolean;
|
|
14
16
|
/** call back */
|
|
15
17
|
onSelectedStatus?: (_status: string) => void;
|
|
16
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TableCellProps } from '../types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const TableCell: React.MemoExoticComponent<({ col, node, level, selected, select, onCheckBoxChange, onToggleExpand, }: TableCellProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
declare const TableCell: React.MemoExoticComponent<({ col, node, level, selected, select, onCheckBoxChange, onToggleExpand, parentSiblings, isLast, }: TableCellProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
4
|
export default TableCell;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableRowProps } from '../types';
|
|
3
|
-
declare const TableRow: React.MemoExoticComponent<({ node, level, columnsData, selected, select, onRowClick, onToggleExpand, onCheckBoxChange, }: TableRowProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
declare const TableRow: React.MemoExoticComponent<({ node, level, columnsData, selected, select, onRowClick, onToggleExpand, onCheckBoxChange, parentSiblings, isLast, }: TableRowProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
4
|
export default TableRow;
|
|
@@ -28,6 +28,9 @@ declare const data: ({
|
|
|
28
28
|
parentName?: undefined;
|
|
29
29
|
};
|
|
30
30
|
level: number;
|
|
31
|
+
isLast: boolean;
|
|
32
|
+
parentSiblings: boolean[];
|
|
33
|
+
lines?: undefined;
|
|
31
34
|
} | {
|
|
32
35
|
node: {
|
|
33
36
|
subModuleCount: number;
|
|
@@ -57,7 +60,10 @@ declare const data: ({
|
|
|
57
60
|
id: string;
|
|
58
61
|
parentName?: undefined;
|
|
59
62
|
};
|
|
60
|
-
|
|
63
|
+
parentSiblings: boolean[];
|
|
64
|
+
lines: number;
|
|
65
|
+
level?: undefined;
|
|
66
|
+
isLast?: undefined;
|
|
61
67
|
} | {
|
|
62
68
|
node: {
|
|
63
69
|
subModuleCount: number;
|
|
@@ -88,6 +94,9 @@ declare const data: ({
|
|
|
88
94
|
parentName?: undefined;
|
|
89
95
|
};
|
|
90
96
|
level: number;
|
|
97
|
+
parentSiblings: boolean[];
|
|
98
|
+
isLast?: undefined;
|
|
99
|
+
lines?: undefined;
|
|
91
100
|
} | {
|
|
92
101
|
node: {
|
|
93
102
|
ver: number;
|
|
@@ -118,6 +127,42 @@ declare const data: ({
|
|
|
118
127
|
id: string;
|
|
119
128
|
};
|
|
120
129
|
level: number;
|
|
130
|
+
parentSiblings: boolean[];
|
|
131
|
+
isLast?: undefined;
|
|
132
|
+
lines?: undefined;
|
|
133
|
+
} | {
|
|
134
|
+
node: {
|
|
135
|
+
ver: number;
|
|
136
|
+
hierarchy: number;
|
|
137
|
+
subModuleCount: number;
|
|
138
|
+
assigneeCount: number;
|
|
139
|
+
searchKey: string;
|
|
140
|
+
modifiedByUname: string;
|
|
141
|
+
title: string;
|
|
142
|
+
scriptCount: number;
|
|
143
|
+
executionOrder: number;
|
|
144
|
+
createdByUname: string;
|
|
145
|
+
parentId: string;
|
|
146
|
+
path: string;
|
|
147
|
+
expanded: boolean;
|
|
148
|
+
modifiedOn: string;
|
|
149
|
+
parentName: string;
|
|
150
|
+
moduleLevelScriptCount: number;
|
|
151
|
+
lastExecutionOrder: number;
|
|
152
|
+
imported: boolean;
|
|
153
|
+
name: string;
|
|
154
|
+
modifiedBy: string;
|
|
155
|
+
moduleCountWithScript: number;
|
|
156
|
+
state: string;
|
|
157
|
+
key: string;
|
|
158
|
+
children: boolean;
|
|
159
|
+
id: string;
|
|
160
|
+
folder?: undefined;
|
|
161
|
+
};
|
|
162
|
+
level: number;
|
|
163
|
+
parentSiblings: boolean[];
|
|
164
|
+
isLast?: undefined;
|
|
165
|
+
lines?: undefined;
|
|
121
166
|
} | {
|
|
122
167
|
node: {
|
|
123
168
|
ver: number;
|
|
@@ -148,5 +193,74 @@ declare const data: ({
|
|
|
148
193
|
folder?: undefined;
|
|
149
194
|
};
|
|
150
195
|
level: number;
|
|
196
|
+
parentSiblings: boolean[];
|
|
197
|
+
isLast: boolean;
|
|
198
|
+
lines?: undefined;
|
|
199
|
+
} | {
|
|
200
|
+
node: {
|
|
201
|
+
ver: number;
|
|
202
|
+
hierarchy: number;
|
|
203
|
+
subModuleCount: number;
|
|
204
|
+
assigneeCount: number;
|
|
205
|
+
searchKey: string;
|
|
206
|
+
modifiedByUname: string;
|
|
207
|
+
title: string;
|
|
208
|
+
scriptCount: number;
|
|
209
|
+
executionOrder: number;
|
|
210
|
+
createdByUname: string;
|
|
211
|
+
parentId: string;
|
|
212
|
+
path: string;
|
|
213
|
+
expanded: boolean;
|
|
214
|
+
modifiedOn: string;
|
|
215
|
+
parentName: string;
|
|
216
|
+
moduleLevelScriptCount: number;
|
|
217
|
+
lastExecutionOrder: number;
|
|
218
|
+
imported: boolean;
|
|
219
|
+
name: string;
|
|
220
|
+
modifiedBy: string;
|
|
221
|
+
moduleCountWithScript: number;
|
|
222
|
+
state: string;
|
|
223
|
+
key: string;
|
|
224
|
+
folder: boolean;
|
|
225
|
+
children: boolean;
|
|
226
|
+
id: string;
|
|
227
|
+
};
|
|
228
|
+
level: number;
|
|
229
|
+
parentSiblings: boolean[];
|
|
230
|
+
isLast: boolean;
|
|
231
|
+
lines?: undefined;
|
|
232
|
+
} | {
|
|
233
|
+
node: {
|
|
234
|
+
subModuleCount: number;
|
|
235
|
+
title: string;
|
|
236
|
+
scriptCount: number;
|
|
237
|
+
path: string;
|
|
238
|
+
expanded: boolean;
|
|
239
|
+
modifiedOn: string;
|
|
240
|
+
children: boolean;
|
|
241
|
+
lastExecutionOrder: number;
|
|
242
|
+
imported: boolean;
|
|
243
|
+
modifiedBy: string;
|
|
244
|
+
moduleCountWithScript: number;
|
|
245
|
+
state: string;
|
|
246
|
+
key: string;
|
|
247
|
+
ver: number;
|
|
248
|
+
hierarchy: number;
|
|
249
|
+
assigneeCount: number;
|
|
250
|
+
searchKey: string;
|
|
251
|
+
modifiedByUname: string;
|
|
252
|
+
executionOrder: number;
|
|
253
|
+
createdByUname: string;
|
|
254
|
+
folder: boolean;
|
|
255
|
+
moduleLevelScriptCount: number;
|
|
256
|
+
name: string;
|
|
257
|
+
parentId: string;
|
|
258
|
+
id: string;
|
|
259
|
+
parentName?: undefined;
|
|
260
|
+
};
|
|
261
|
+
level: number;
|
|
262
|
+
parentSiblings: boolean[];
|
|
263
|
+
isLast: boolean;
|
|
264
|
+
lines?: undefined;
|
|
151
265
|
})[];
|
|
152
266
|
export default data;
|
|
@@ -14,6 +14,8 @@ export interface TableCellProps {
|
|
|
14
14
|
select: string | null;
|
|
15
15
|
onCheckBoxChange: (type: string, node: any) => void;
|
|
16
16
|
onToggleExpand: (node: any) => void;
|
|
17
|
+
parentSiblings: boolean[];
|
|
18
|
+
isLast: boolean | undefined;
|
|
17
19
|
}
|
|
18
20
|
export interface TableHeadProps {
|
|
19
21
|
columnsData: any[];
|
|
@@ -36,6 +38,8 @@ export interface TableRowProps {
|
|
|
36
38
|
onRowClick: (e: any, node: any) => void;
|
|
37
39
|
onToggleExpand: (node: any) => void;
|
|
38
40
|
onCheckBoxChange: (type: string, node: any) => void;
|
|
41
|
+
parentSiblings: boolean[];
|
|
42
|
+
isLast: boolean | undefined;
|
|
39
43
|
}
|
|
40
44
|
export interface Column {
|
|
41
45
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import './Textarea.scss';
|
|
2
2
|
import { TextareaProps } from './Types';
|
|
3
|
-
declare const Textarea: ({ capacity, name, label, value, variant, error, helperText, disabled, required, placeholder, className, onChange, onBlur, onFocus, rows, cols, resize, ...props }: TextareaProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Textarea: ({ capacity, name, label, value, variant, error, helperText, disabled, required, placeholder, className, onChange, onBlur, onFocus, onPaste, rows, cols, resize, ...props }: TextareaProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Textarea;
|
|
@@ -46,6 +46,7 @@ export interface TextareaProps {
|
|
|
46
46
|
onKeyDown?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
47
47
|
onBlur?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
48
48
|
onFocus?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
49
|
+
onPaste?: (event: React.ClipboardEvent<HTMLTextAreaElement>) => void;
|
|
49
50
|
/**
|
|
50
51
|
* id to select the textarea field uniquely
|
|
51
52
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
export type Theme = 'ff-light-theme' | 'ff-dark-theme' | 'ff-grey-theme';
|
|
2
|
+
export type Theme = 'ff-light-theme' | 'ff-dark-theme' | 'ff-grey-theme' | 'ff-blue-theme';
|
|
3
3
|
export interface ThemeContextType {
|
|
4
4
|
currentTheme: Theme;
|
|
5
5
|
setCurrentTheme: React.Dispatch<React.SetStateAction<Theme>>;
|