pixel-react-excel-sheet 1.0.29 → 1.0.30
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/index.esm.js +17 -36
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +17 -36
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.tsx +10 -27
- package/src/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.tsx +1 -5
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +4 -3
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import * as Point from './point';
|
|
|
5
5
|
import * as Actions from './actions';
|
|
6
6
|
import useDispatch from './use-dispatch';
|
|
7
7
|
import useSelector from './use-selector';
|
|
8
|
+
import Typography from '../../../Typography';
|
|
8
9
|
|
|
9
10
|
const ColumnIndicator: Types.ColumnIndicatorComponent = ({
|
|
10
11
|
column,
|
|
@@ -104,15 +105,22 @@ const ColumnIndicator: Types.ColumnIndicatorComponent = ({
|
|
|
104
105
|
|
|
105
106
|
return (
|
|
106
107
|
<th
|
|
107
|
-
style={{ minWidth: `${columnWidth}px`}} //Dynamic value, Inline Styling required
|
|
108
108
|
className={classNames('ff-spreadsheet-header', {
|
|
109
109
|
'ff-spreadsheet-header--selected': selected,
|
|
110
110
|
})}
|
|
111
|
+
style={{ minWidth: `${columnWidth}px` }} //Dynamic value, Inline Styling required
|
|
111
112
|
onClick={handleClick}
|
|
112
113
|
onContextMenu={contextClick}
|
|
113
114
|
tabIndex={0}
|
|
114
115
|
>
|
|
115
|
-
|
|
116
|
+
<div
|
|
117
|
+
onClick={handleClick}
|
|
118
|
+
onContextMenu={contextClick}
|
|
119
|
+
tabIndex={0}
|
|
120
|
+
></div>
|
|
121
|
+
<Typography fontWeight="medium">
|
|
122
|
+
{label !== undefined ? label : columnIndexToLabel(column)}
|
|
123
|
+
</Typography>
|
|
116
124
|
<div
|
|
117
125
|
onMouseDown={onMouseDown}
|
|
118
126
|
onClick={() => activate({ row: -1, column })}
|
|
@@ -127,31 +135,6 @@ const ColumnIndicator: Types.ColumnIndicatorComponent = ({
|
|
|
127
135
|
}}
|
|
128
136
|
/>
|
|
129
137
|
</th>
|
|
130
|
-
|
|
131
|
-
// <th
|
|
132
|
-
// style={{ minWidth: `${columnWidth}px`}} //Dynamic value, Inline Styling required
|
|
133
|
-
// className={classNames('ff-spreadsheet-header', {
|
|
134
|
-
// 'ff-spreadsheet-header--selected': selected,
|
|
135
|
-
// })}
|
|
136
|
-
// onClick={handleClick}
|
|
137
|
-
// onContextMenu={contextClick}
|
|
138
|
-
// tabIndex={0}
|
|
139
|
-
// >
|
|
140
|
-
// {label !== undefined ? label : columnIndexToLabel(column)}
|
|
141
|
-
// <div
|
|
142
|
-
// onMouseDown={onMouseDown}
|
|
143
|
-
// onClick={() => activate({ row: -1, column })}
|
|
144
|
-
// style={{
|
|
145
|
-
// zIndex: 'inherit',
|
|
146
|
-
// width: '2px',
|
|
147
|
-
// position: 'absolute',
|
|
148
|
-
// right: 0,
|
|
149
|
-
// top: 0,
|
|
150
|
-
// height: '100%',
|
|
151
|
-
// cursor: 'ew-resize',
|
|
152
|
-
// }}
|
|
153
|
-
// />
|
|
154
|
-
// </th>
|
|
155
138
|
);
|
|
156
139
|
};
|
|
157
140
|
|
|
@@ -103,14 +103,10 @@ const RowIndicator: Types.RowIndicatorComponent = ({
|
|
|
103
103
|
|
|
104
104
|
return (
|
|
105
105
|
<th
|
|
106
|
-
style={{
|
|
107
|
-
height: `${rowHeight}px`,
|
|
108
|
-
minWidth: '60px',
|
|
109
|
-
position: 'relative',
|
|
110
|
-
}} //Dynamic value, Inline Styling required
|
|
111
106
|
className={classNames('ff-spreadsheet-header', {
|
|
112
107
|
'ff-spreadsheet-header--selected': selected,
|
|
113
108
|
})}
|
|
109
|
+
style={{ height: `${rowHeight}px`, minWidth: '60px' }} //Dynamic value, Inline Styling required
|
|
114
110
|
onClick={handleClick}
|
|
115
111
|
onContextMenu={contextClick}
|
|
116
112
|
tabIndex={0}
|
|
@@ -93,20 +93,21 @@
|
|
|
93
93
|
text-align: center;
|
|
94
94
|
z-index: 1000;
|
|
95
95
|
position: sticky;
|
|
96
|
+
top: 0;
|
|
97
|
+
left: 0;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
.ff-spreadsheet-corner-header {
|
|
99
101
|
position: fixed;
|
|
100
|
-
z-index:
|
|
102
|
+
z-index: 3000;
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
.ff-spreadsheet-row-header {
|
|
104
|
-
// position: relative;
|
|
105
106
|
height: 34px;
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
.corner-header {
|
|
109
|
-
border:
|
|
110
|
+
border: 1px solid var(--border-color);
|
|
110
111
|
background-color: var(--header-background-color);
|
|
111
112
|
position: absolute;
|
|
112
113
|
display: flex;
|