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
|
@@ -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
|
}
|
|
@@ -12,23 +12,27 @@ const TableBody = React.memo(
|
|
|
12
12
|
onToggleExpand,
|
|
13
13
|
onCheckBoxChange,
|
|
14
14
|
}: TableBodyProps) => (
|
|
15
|
-
<tbody>
|
|
15
|
+
<tbody className='ff-table-tree-body'>
|
|
16
16
|
<tr id="ff-table-tree-first-node" />
|
|
17
|
-
{flattenedTreeData?.map(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
17
|
+
{flattenedTreeData?.map(
|
|
18
|
+
({ node, level, parentSiblings = [], isLast = false }) => {
|
|
19
|
+
return (
|
|
20
|
+
<TableRow
|
|
21
|
+
key={node.id}
|
|
22
|
+
node={node}
|
|
23
|
+
level={level}
|
|
24
|
+
columnsData={columnsData}
|
|
25
|
+
selected={selected}
|
|
26
|
+
select={select}
|
|
27
|
+
onRowClick={onRowClick}
|
|
28
|
+
onToggleExpand={onToggleExpand}
|
|
29
|
+
onCheckBoxChange={onCheckBoxChange}
|
|
30
|
+
parentSiblings={parentSiblings}
|
|
31
|
+
isLast={isLast}
|
|
32
|
+
/>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
)}
|
|
32
36
|
<tr id="ff-table-tree-last-node" />
|
|
33
37
|
</tbody>
|
|
34
38
|
)
|
|
@@ -5,10 +5,22 @@ import { TableCellProps } from '../types';
|
|
|
5
5
|
import Arrow from '../../../assets/icons/arrows_down_icon.svg?react';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
const renderSpaces = (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const renderSpaces = (
|
|
9
|
+
level: number,
|
|
10
|
+
parentSiblings: boolean[],
|
|
11
|
+
isLast?: boolean | undefined
|
|
12
|
+
) => (
|
|
13
|
+
<div className="tree-table-space-container">
|
|
14
|
+
{parentSiblings.reverse().map((line, i) => (
|
|
15
|
+
<span
|
|
16
|
+
key={i}
|
|
17
|
+
className={`tree-table-space-block ${!line ? 'no-lines' : ''} ${
|
|
18
|
+
isLast && i === level-1 ? 'last-node' : ''
|
|
19
|
+
}`}
|
|
20
|
+
/>
|
|
21
|
+
))}
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
12
24
|
|
|
13
25
|
const TableCell = React.memo(
|
|
14
26
|
({
|
|
@@ -19,36 +31,40 @@ const TableCell = React.memo(
|
|
|
19
31
|
select,
|
|
20
32
|
onCheckBoxChange,
|
|
21
33
|
onToggleExpand,
|
|
34
|
+
parentSiblings,
|
|
35
|
+
isLast,
|
|
22
36
|
}: TableCellProps) => (
|
|
23
37
|
<td>
|
|
24
|
-
{col.isTree && renderSpaces(level + 1)}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<span className="tree-table-td-content">
|
|
36
|
-
{col.isTree && select === 'checkbox' && (
|
|
37
|
-
<Checkbox
|
|
38
|
-
checked={selected.includes(node.id)}
|
|
39
|
-
onChange={() => onCheckBoxChange('checkbox', node)}
|
|
40
|
-
/>
|
|
38
|
+
{col.isTree && renderSpaces(level + 1, parentSiblings, isLast)}
|
|
39
|
+
<div className="tree-title-container">
|
|
40
|
+
{col.isTree && (
|
|
41
|
+
<span
|
|
42
|
+
className={`tree-table-space-block last-block ${
|
|
43
|
+
node.isExpanded ? 'tree-row-expanded' : 'tree-row-collapsed'
|
|
44
|
+
} ${node.folder ? '' : 'no-folder'}`}
|
|
45
|
+
onClick={() => onToggleExpand(node)}
|
|
46
|
+
>
|
|
47
|
+
{node.folder && <Arrow />}
|
|
48
|
+
</span>
|
|
41
49
|
)}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
<span className="tree-table-td-content">
|
|
51
|
+
{col.isTree && select === 'checkbox' && (
|
|
52
|
+
<Checkbox
|
|
53
|
+
checked={selected.includes(node.id)}
|
|
54
|
+
onChange={() => onCheckBoxChange('checkbox', node)}
|
|
55
|
+
/>
|
|
56
|
+
)}
|
|
57
|
+
{col.isTree && select === 'radio' && (
|
|
58
|
+
<RadioButton
|
|
59
|
+
name={node.title}
|
|
60
|
+
checked={selected.includes(node.id)}
|
|
61
|
+
value={node.id}
|
|
62
|
+
onChange={() => onCheckBoxChange('radio', node)}
|
|
63
|
+
/>
|
|
64
|
+
)}
|
|
65
|
+
{prepareData(node, col)}
|
|
66
|
+
</span>
|
|
67
|
+
</div>
|
|
52
68
|
{col.actions && (
|
|
53
69
|
<div className="table-tree-row-action">{col.actions(node)}</div>
|
|
54
70
|
)}
|
|
@@ -12,6 +12,8 @@ const TableRow = React.memo(
|
|
|
12
12
|
onRowClick,
|
|
13
13
|
onToggleExpand,
|
|
14
14
|
onCheckBoxChange,
|
|
15
|
+
parentSiblings,
|
|
16
|
+
isLast,
|
|
15
17
|
}: TableRowProps) => (
|
|
16
18
|
<tr
|
|
17
19
|
data-level={level}
|
|
@@ -28,6 +30,8 @@ const TableRow = React.memo(
|
|
|
28
30
|
select={select}
|
|
29
31
|
onCheckBoxChange={onCheckBoxChange}
|
|
30
32
|
onToggleExpand={onToggleExpand}
|
|
33
|
+
parentSiblings={parentSiblings}
|
|
34
|
+
isLast={isLast}
|
|
31
35
|
/>
|
|
32
36
|
))}
|
|
33
37
|
</tr>
|
|
@@ -1,6 +1,73 @@
|
|
|
1
1
|
.tree-table-space-block {
|
|
2
2
|
display: inline-block;
|
|
3
3
|
width: 20px;
|
|
4
|
+
height: 16px;
|
|
5
|
+
text-align: center;
|
|
6
|
+
line-height: 16px;
|
|
7
|
+
vertical-align: top;
|
|
8
|
+
font-size: 19px;
|
|
9
|
+
position: relative;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
// margin-top: 7px;
|
|
12
|
+
border-radius: 50%;
|
|
13
|
+
|
|
14
|
+
&.btn-toggle {
|
|
15
|
+
position: relative;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
width: 22px;
|
|
18
|
+
height: 18px;
|
|
19
|
+
z-index: 12;
|
|
20
|
+
|
|
21
|
+
&::before {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.last-block::after,
|
|
27
|
+
&.no-folder::after {
|
|
28
|
+
position: absolute;
|
|
29
|
+
content: '';
|
|
30
|
+
height: 1px;
|
|
31
|
+
background: var(--tree-connecting-lines-color);
|
|
32
|
+
top: 50%;
|
|
33
|
+
margin-top: -1px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.last-block::after {
|
|
37
|
+
width: 12px;
|
|
38
|
+
left: -10px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.no-folder {
|
|
42
|
+
width: 8px;
|
|
43
|
+
|
|
44
|
+
&::after {
|
|
45
|
+
width: 18px;
|
|
46
|
+
left: -10px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:not(.last-block, .no-lines, .last-node)::before {
|
|
51
|
+
position: absolute;
|
|
52
|
+
content: '';
|
|
53
|
+
width: 1px;
|
|
54
|
+
height: 40px;
|
|
55
|
+
background: var(--tree-connecting-lines-color);
|
|
56
|
+
left: 50%;
|
|
57
|
+
top: -4px;
|
|
58
|
+
z-index: 99;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.last-node::before {
|
|
62
|
+
position: absolute;
|
|
63
|
+
content: '';
|
|
64
|
+
width: 1px;
|
|
65
|
+
height: 12px;
|
|
66
|
+
background: var(--tree-connecting-lines-color);
|
|
67
|
+
left: 50%;
|
|
68
|
+
top: -4px;
|
|
69
|
+
z-index: -1;
|
|
70
|
+
}
|
|
4
71
|
}
|
|
5
72
|
|
|
6
73
|
.hidden {
|
|
@@ -9,12 +76,11 @@
|
|
|
9
76
|
|
|
10
77
|
.show {
|
|
11
78
|
display: table-row;
|
|
79
|
+
visibility: visible;
|
|
12
80
|
}
|
|
13
81
|
|
|
14
82
|
.btn-toggle {
|
|
15
|
-
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
}
|
|
83
|
+
cursor: pointer;
|
|
18
84
|
|
|
19
85
|
&.is-close {
|
|
20
86
|
background: #f1f1f1;
|
|
@@ -22,10 +88,7 @@
|
|
|
22
88
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
|
23
89
|
}
|
|
24
90
|
|
|
25
|
-
&::before
|
|
26
|
-
display: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
91
|
+
&::before,
|
|
29
92
|
&::after {
|
|
30
93
|
display: none;
|
|
31
94
|
}
|
|
@@ -34,12 +97,8 @@
|
|
|
34
97
|
.tree-table-wrap {
|
|
35
98
|
width: 100%;
|
|
36
99
|
}
|
|
37
|
-
thead{
|
|
38
|
-
position: sticky;
|
|
39
|
-
top: 12px;
|
|
40
|
-
}
|
|
41
100
|
|
|
42
|
-
|
|
101
|
+
.ff-table-tree-body {
|
|
43
102
|
overflow: scroll;
|
|
44
103
|
}
|
|
45
104
|
|
|
@@ -49,29 +108,49 @@ tbody{
|
|
|
49
108
|
width: 100%;
|
|
50
109
|
border-collapse: collapse;
|
|
51
110
|
overflow: scroll;
|
|
111
|
+
|
|
52
112
|
tr {
|
|
53
113
|
.table-tree-row-action {
|
|
54
114
|
display: none;
|
|
55
115
|
}
|
|
116
|
+
|
|
56
117
|
&:hover {
|
|
57
118
|
background-color: var(--hover-color);
|
|
119
|
+
td {
|
|
120
|
+
&:first-child {
|
|
121
|
+
background-color: var(--hover-color);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
58
125
|
.table-tree-row-action {
|
|
59
126
|
display: inline-flex;
|
|
60
127
|
align-items: center;
|
|
61
128
|
}
|
|
62
129
|
}
|
|
130
|
+
|
|
131
|
+
&::after {
|
|
132
|
+
content: '';
|
|
133
|
+
display: block;
|
|
134
|
+
visibility: hidden;
|
|
135
|
+
clear: both;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
th,
|
|
140
|
+
td {
|
|
141
|
+
text-align: left;
|
|
142
|
+
white-space: nowrap;
|
|
143
|
+
text-overflow: ellipsis;
|
|
144
|
+
overflow: hidden;
|
|
63
145
|
}
|
|
64
146
|
|
|
65
147
|
th {
|
|
66
148
|
color: var(--brand-color);
|
|
67
|
-
text-align: center;
|
|
68
|
-
padding: 10px 0;
|
|
69
149
|
background: var(--slider-table-color);
|
|
70
150
|
font-size: 13px;
|
|
71
151
|
width: 400px;
|
|
72
|
-
|
|
152
|
+
|
|
73
153
|
&:first-child {
|
|
74
|
-
width: 400px;
|
|
75
154
|
position: sticky;
|
|
76
155
|
left: 0;
|
|
77
156
|
}
|
|
@@ -80,126 +159,59 @@ tbody{
|
|
|
80
159
|
td {
|
|
81
160
|
font-size: 14px;
|
|
82
161
|
color: var(--brand-color);
|
|
83
|
-
|
|
84
|
-
text-overflow: ellipsis;
|
|
85
|
-
overflow: hidden;
|
|
86
|
-
text-align: left;
|
|
87
|
-
height: 32px;
|
|
162
|
+
height: 18px;
|
|
88
163
|
|
|
89
164
|
&:first-child {
|
|
90
165
|
overflow: initial;
|
|
91
|
-
width: 400px;
|
|
92
166
|
position: sticky;
|
|
93
167
|
left: 0;
|
|
94
168
|
background-color: white;
|
|
169
|
+
|
|
95
170
|
&:hover {
|
|
96
171
|
background-color: var(--hover-color);
|
|
97
172
|
}
|
|
98
173
|
}
|
|
99
|
-
|
|
100
|
-
.tree-table-space-block {
|
|
101
|
-
border: 1px solid transparent;
|
|
102
|
-
display: inline-block;
|
|
103
|
-
width: 20px;
|
|
104
|
-
height: 20px;
|
|
105
|
-
line-height: 16px;
|
|
106
|
-
text-align: center;
|
|
107
|
-
vertical-align: top;
|
|
108
|
-
font-size: 19px;
|
|
109
|
-
position: relative;
|
|
110
|
-
box-sizing: border-box;
|
|
111
|
-
margin-top: 7px;
|
|
112
|
-
border-radius: 50%;
|
|
113
|
-
|
|
114
|
-
&:first-child {
|
|
115
|
-
margin-left: 7px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&.btn-toggle {
|
|
119
|
-
// border: 1px solid var(--brand-color);
|
|
120
|
-
position: relative;
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
width: 22px;
|
|
123
|
-
height: 22px;
|
|
124
|
-
z-index: 12;
|
|
125
|
-
|
|
126
|
-
&::before {
|
|
127
|
-
display: none;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&.last-block {
|
|
132
|
-
&::before {
|
|
133
|
-
display: none;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
&::after {
|
|
137
|
-
position: absolute;
|
|
138
|
-
content: '';
|
|
139
|
-
width: 12px;
|
|
140
|
-
height: 1px;
|
|
141
|
-
background: var(--tree-connecting-lines-color);
|
|
142
|
-
top: 50%;
|
|
143
|
-
margin-top: -1px;
|
|
144
|
-
left: -10px;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
&.no-folder {
|
|
148
|
-
width: 8px;
|
|
149
|
-
&::after {
|
|
150
|
-
position: absolute;
|
|
151
|
-
content: '';
|
|
152
|
-
width: 18px;
|
|
153
|
-
height: 1px;
|
|
154
|
-
background: var(--tree-connecting-lines-color);
|
|
155
|
-
top: 50%;
|
|
156
|
-
margin-top: -1px;
|
|
157
|
-
left: -10px;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
&:not(.last-block)::before {
|
|
162
|
-
position: absolute;
|
|
163
|
-
content: '';
|
|
164
|
-
width: 1px;
|
|
165
|
-
height: 40px;
|
|
166
|
-
background: var(--tree-connecting-lines-color);
|
|
167
|
-
left: 50%;
|
|
168
|
-
top: -12px;
|
|
169
|
-
z-index: -1;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
176
|
|
|
175
177
|
.tree-table-td-content {
|
|
176
178
|
display: inline-flex;
|
|
177
179
|
align-items: center;
|
|
178
|
-
padding:
|
|
180
|
+
padding-left: 8px;
|
|
179
181
|
font-size: 12px;
|
|
180
|
-
font-family: 'Poppins';
|
|
182
|
+
font-family: 'Poppins', sans-serif;
|
|
181
183
|
}
|
|
182
184
|
|
|
183
|
-
.hidden {
|
|
184
|
-
display: none;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.show {
|
|
188
|
-
visibility: visible;
|
|
189
|
-
}
|
|
190
185
|
.tree-row-expanded,
|
|
191
186
|
.tree-row-collapsed {
|
|
192
187
|
svg {
|
|
193
188
|
height: 12px;
|
|
194
189
|
width: 12px;
|
|
190
|
+
|
|
195
191
|
path {
|
|
196
192
|
fill: var(--brand-color);
|
|
197
193
|
}
|
|
198
194
|
}
|
|
199
195
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
196
|
+
|
|
197
|
+
.tree-row-collapsed svg {
|
|
198
|
+
transform: rotate(-90deg);
|
|
199
|
+
transition: transform 0.3s ease;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
tr:after {
|
|
203
|
+
content: ' ';
|
|
204
|
+
display: block;
|
|
205
|
+
visibility: hidden;
|
|
206
|
+
clear: both;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.tree-table-space-container {
|
|
210
|
+
display: inline-flex;
|
|
211
|
+
// flex-direction: row-reverse;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.tree-title-container {
|
|
215
|
+
display: inline-flex;
|
|
216
|
+
align-items: center;
|
|
205
217
|
}
|
|
@@ -28,6 +28,8 @@ const data = [
|
|
|
28
28
|
id: 'MOD1001', // Unique ID
|
|
29
29
|
},
|
|
30
30
|
level: 0,
|
|
31
|
+
isLast: true,
|
|
32
|
+
parentSiblings: [true],
|
|
31
33
|
},
|
|
32
34
|
{
|
|
33
35
|
node: {
|
|
@@ -57,7 +59,8 @@ const data = [
|
|
|
57
59
|
parentId: 'MOD1001', // Root has no parent
|
|
58
60
|
id: 'MOD1002', // Unique ID
|
|
59
61
|
},
|
|
60
|
-
|
|
62
|
+
parentSiblings: [true, false],
|
|
63
|
+
lines: 1,
|
|
61
64
|
},
|
|
62
65
|
{
|
|
63
66
|
node: {
|
|
@@ -73,6 +76,7 @@ const data = [
|
|
|
73
76
|
id: 'MOD1003', // Unique ID
|
|
74
77
|
},
|
|
75
78
|
level: 1,
|
|
79
|
+
parentSiblings: [true, false],
|
|
76
80
|
},
|
|
77
81
|
{
|
|
78
82
|
node: {
|
|
@@ -104,6 +108,7 @@ const data = [
|
|
|
104
108
|
id: 'MOD1004', // Unique ID
|
|
105
109
|
},
|
|
106
110
|
level: 2,
|
|
111
|
+
parentSiblings: [true, true, false],
|
|
107
112
|
},
|
|
108
113
|
{
|
|
109
114
|
node: {
|
|
@@ -134,6 +139,7 @@ const data = [
|
|
|
134
139
|
id: 'MOD1101', // Unique ID
|
|
135
140
|
},
|
|
136
141
|
level: 3,
|
|
142
|
+
parentSiblings: [true, true, true, false],
|
|
137
143
|
},
|
|
138
144
|
{
|
|
139
145
|
node: {
|
|
@@ -164,6 +170,7 @@ const data = [
|
|
|
164
170
|
id: 'MOD1102', // Unique ID
|
|
165
171
|
},
|
|
166
172
|
level: 3,
|
|
173
|
+
parentSiblings: [true, true, true, false],
|
|
167
174
|
},
|
|
168
175
|
{
|
|
169
176
|
node: {
|
|
@@ -194,6 +201,8 @@ const data = [
|
|
|
194
201
|
id: 'MOD1103', // Unique ID
|
|
195
202
|
},
|
|
196
203
|
level: 3,
|
|
204
|
+
parentSiblings: [true, true, true, false],
|
|
205
|
+
isLast: true,
|
|
197
206
|
},
|
|
198
207
|
{
|
|
199
208
|
node: {
|
|
@@ -225,6 +234,8 @@ const data = [
|
|
|
225
234
|
id: 'MOD1005', // Unique ID
|
|
226
235
|
},
|
|
227
236
|
level: 2,
|
|
237
|
+
parentSiblings: [true, true, false],
|
|
238
|
+
isLast: true,
|
|
228
239
|
},
|
|
229
240
|
{
|
|
230
241
|
node: {
|
|
@@ -255,6 +266,7 @@ const data = [
|
|
|
255
266
|
id: 'MOD1201', // Unique ID
|
|
256
267
|
},
|
|
257
268
|
level: 3,
|
|
269
|
+
parentSiblings: [true, false, true, false],
|
|
258
270
|
},
|
|
259
271
|
{
|
|
260
272
|
node: {
|
|
@@ -285,6 +297,7 @@ const data = [
|
|
|
285
297
|
id: 'MOD1202', // Unique ID
|
|
286
298
|
},
|
|
287
299
|
level: 3,
|
|
300
|
+
parentSiblings: [true, false, true, false],
|
|
288
301
|
},
|
|
289
302
|
{
|
|
290
303
|
node: {
|
|
@@ -315,8 +328,41 @@ const data = [
|
|
|
315
328
|
id: 'MOD1203', // Unique ID
|
|
316
329
|
},
|
|
317
330
|
level: 3,
|
|
331
|
+
parentSiblings: [true, false, true, false],
|
|
332
|
+
isLast: true,
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
node: {
|
|
336
|
+
subModuleCount: 15,
|
|
337
|
+
title: 'mod3',
|
|
338
|
+
scriptCount: 0,
|
|
339
|
+
path: '/Root',
|
|
340
|
+
expanded: true,
|
|
341
|
+
modifiedOn: '19-12-2023 15:32',
|
|
342
|
+
children: false,
|
|
343
|
+
lastExecutionOrder: 3,
|
|
344
|
+
imported: false,
|
|
345
|
+
modifiedBy: '--',
|
|
346
|
+
moduleCountWithScript: 1,
|
|
347
|
+
state: 'NEW',
|
|
348
|
+
key: 'MOD1001',
|
|
349
|
+
ver: 1,
|
|
350
|
+
hierarchy: 0,
|
|
351
|
+
assigneeCount: 0,
|
|
352
|
+
searchKey: '/MOD1001111110000000000',
|
|
353
|
+
modifiedByUname: '--',
|
|
354
|
+
executionOrder: 0,
|
|
355
|
+
createdByUname: 'Shivaprasad',
|
|
356
|
+
folder: true,
|
|
357
|
+
moduleLevelScriptCount: 0,
|
|
358
|
+
name: 'Root Module111',
|
|
359
|
+
parentId: 'MOD1001', // Root has no parent
|
|
360
|
+
id: 'MOD100222', // Unique ID
|
|
361
|
+
},
|
|
362
|
+
level: 1,
|
|
363
|
+
parentSiblings: [true, false],
|
|
364
|
+
isLast: true,
|
|
318
365
|
},
|
|
319
366
|
];
|
|
320
367
|
|
|
321
|
-
|
|
322
368
|
export default data;
|
|
@@ -17,6 +17,8 @@ export interface TableCellProps {
|
|
|
17
17
|
select: string | null;
|
|
18
18
|
onCheckBoxChange: (type: string, node: any) => void;
|
|
19
19
|
onToggleExpand: (node: any) => void;
|
|
20
|
+
parentSiblings: boolean[];
|
|
21
|
+
isLast: boolean | undefined;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
export interface TableHeadProps {
|
|
@@ -42,6 +44,8 @@ export interface TableRowProps {
|
|
|
42
44
|
onRowClick: (e: any, node: any) => void;
|
|
43
45
|
onToggleExpand: (node: any) => void;
|
|
44
46
|
onCheckBoxChange: (type: string, node: any) => void;
|
|
47
|
+
parentSiblings: boolean[];
|
|
48
|
+
isLast: boolean | undefined;
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
export interface Column {
|
|
@@ -17,6 +17,7 @@ const Textarea = ({
|
|
|
17
17
|
onChange,
|
|
18
18
|
onBlur,
|
|
19
19
|
onFocus,
|
|
20
|
+
onPaste,
|
|
20
21
|
rows = 4,
|
|
21
22
|
cols = 40,
|
|
22
23
|
resize = false,
|
|
@@ -65,6 +66,7 @@ const Textarea = ({
|
|
|
65
66
|
onChange={onChange}
|
|
66
67
|
onBlur={onBlur}
|
|
67
68
|
onFocus={onFocus}
|
|
69
|
+
onPaste={onPaste}
|
|
68
70
|
required={required}
|
|
69
71
|
rows={rows}
|
|
70
72
|
cols={cols}
|
|
@@ -49,6 +49,9 @@ export interface TextareaProps {
|
|
|
49
49
|
onBlur?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
50
50
|
|
|
51
51
|
onFocus?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
52
|
+
|
|
53
|
+
onPaste?: (event: React.ClipboardEvent<HTMLTextAreaElement>) => void;
|
|
54
|
+
|
|
52
55
|
/**
|
|
53
56
|
* id to select the textarea field uniquely
|
|
54
57
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
|
|
3
|
-
export type Theme = 'ff-light-theme' | 'ff-dark-theme' | 'ff-grey-theme';
|
|
3
|
+
export type Theme = 'ff-light-theme' | 'ff-dark-theme' | 'ff-grey-theme' | 'ff-blue-theme';
|
|
4
4
|
|
|
5
5
|
export interface ThemeContextType {
|
|
6
6
|
currentTheme: Theme;
|