pixel-react-excel-sheet 1.0.15 → 1.0.17
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 +79 -48
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +79 -48
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Excel/ExcelContextMenu/ExcelContextMenu.scss +1 -1
- package/src/components/Excel/ExcelFile/ExcelFile.tsx +2 -2
- package/src/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.tsx +25 -0
- package/src/components/Excel/ExcelFile/ExcelFileComponents/CornerIndicator.tsx +1 -2
- package/src/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.tsx +5 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +5 -1
- package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +19 -11
package/package.json
CHANGED
|
@@ -103,6 +103,31 @@ const ColumnIndicator: Types.ColumnIndicatorComponent = ({
|
|
|
103
103
|
);
|
|
104
104
|
|
|
105
105
|
return (
|
|
106
|
+
// <th
|
|
107
|
+
// style={{ minWidth: `${columnWidth}px`, position: 'relative' }} //Dynamic value, Inline Styling required
|
|
108
|
+
// className={classNames('ff-spreadsheet-header', {
|
|
109
|
+
// 'ff-spreadsheet-header--selected': selected,
|
|
110
|
+
// })}
|
|
111
|
+
// onClick={handleClick}
|
|
112
|
+
// onContextMenu={contextClick}
|
|
113
|
+
// tabIndex={0}
|
|
114
|
+
// >
|
|
115
|
+
// {label !== undefined ? label : columnIndexToLabel(column)}
|
|
116
|
+
// <div
|
|
117
|
+
// onMouseDown={onMouseDown}
|
|
118
|
+
// onClick={() => activate({ row: -1, column })}
|
|
119
|
+
// style={{
|
|
120
|
+
// zIndex: 'inherit',
|
|
121
|
+
// width: '2px',
|
|
122
|
+
// position: 'absolute',
|
|
123
|
+
// right: 0,
|
|
124
|
+
// top: 0,
|
|
125
|
+
// height: '100%',
|
|
126
|
+
// cursor: 'ew-resize',
|
|
127
|
+
// }}
|
|
128
|
+
// />
|
|
129
|
+
// </th>
|
|
130
|
+
|
|
106
131
|
<th
|
|
107
132
|
style={{ minWidth: `${columnWidth}px`, position: 'relative' }} //Dynamic value, Inline Styling required
|
|
108
133
|
className={classNames('ff-spreadsheet-header', {
|
|
@@ -16,8 +16,7 @@ const CornerIndicator: Types.CornerIndicatorComponent = ({
|
|
|
16
16
|
}, [onSelect]);
|
|
17
17
|
return (
|
|
18
18
|
<th
|
|
19
|
-
|
|
20
|
-
className={classNames('ff-spreadsheet-header', {
|
|
19
|
+
className={classNames('ff-spreadsheet-header ff-spreadsheet-corner-header', {
|
|
21
20
|
'ff-spreadsheet-header--selected': selected,
|
|
22
21
|
})}
|
|
23
22
|
onClick={handleClick}
|
|
@@ -102,7 +102,11 @@ const RowIndicator: Types.RowIndicatorComponent = ({
|
|
|
102
102
|
|
|
103
103
|
return (
|
|
104
104
|
<th
|
|
105
|
-
style={{
|
|
105
|
+
style={{
|
|
106
|
+
height: `${rowHeight}px`,
|
|
107
|
+
minWidth: '60px',
|
|
108
|
+
// position: 'relative',
|
|
109
|
+
}} //Dynamic value, Inline Styling required
|
|
106
110
|
className={classNames('ff-spreadsheet-header', {
|
|
107
111
|
'ff-spreadsheet-header--selected': selected,
|
|
108
112
|
})}
|
|
@@ -91,11 +91,15 @@
|
|
|
91
91
|
background-color: var(--header-background-color);
|
|
92
92
|
color: var(--readonly-text-color);
|
|
93
93
|
text-align: center;
|
|
94
|
-
z-index:
|
|
94
|
+
z-index: 1000;
|
|
95
95
|
font-weight: 500;
|
|
96
96
|
font-size: 12px;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
.ff-spreadsheet-corner-header{
|
|
100
|
+
z-index: 1100;
|
|
101
|
+
}
|
|
102
|
+
|
|
99
103
|
.corner_indicator {
|
|
100
104
|
padding-left: 20px;
|
|
101
105
|
}
|
|
@@ -91,7 +91,14 @@ const ExcelToolBar: React.FC<ExcelToolBarProps> = ({
|
|
|
91
91
|
value: string;
|
|
92
92
|
}>({
|
|
93
93
|
label: 'Times New Roman',
|
|
94
|
-
value: '
|
|
94
|
+
value: 'Times New Roman',
|
|
95
|
+
});
|
|
96
|
+
const [selectedFontSize, setSelectedFontSize] = useState<{
|
|
97
|
+
label: string;
|
|
98
|
+
value: string;
|
|
99
|
+
}>({
|
|
100
|
+
label: '11',
|
|
101
|
+
value: '11',
|
|
95
102
|
});
|
|
96
103
|
const [colorContainer, setColorPicker] = useState<ColorContainer>({
|
|
97
104
|
color: 'var(--error-light)',
|
|
@@ -219,9 +226,10 @@ const ExcelToolBar: React.FC<ExcelToolBarProps> = ({
|
|
|
219
226
|
<div className="ff-excel-toolbar-font-family">
|
|
220
227
|
<Select
|
|
221
228
|
showLabel={false}
|
|
222
|
-
optionZIndex={
|
|
229
|
+
optionZIndex={1000}
|
|
223
230
|
onChange={(e) => {
|
|
224
|
-
|
|
231
|
+
console.log(e);
|
|
232
|
+
setSelectedFontFamily({ label: e.label, value: e.label });
|
|
225
233
|
setFontFamily(data, e.label);
|
|
226
234
|
}}
|
|
227
235
|
required={false}
|
|
@@ -234,14 +242,14 @@ const ExcelToolBar: React.FC<ExcelToolBarProps> = ({
|
|
|
234
242
|
<div className="ff-excel-toolbar-font-size">
|
|
235
243
|
<Select
|
|
236
244
|
showLabel={false}
|
|
237
|
-
optionZIndex={
|
|
245
|
+
optionZIndex={1000}
|
|
238
246
|
required={false}
|
|
239
|
-
onChange={(e) =>
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
label: '11',
|
|
243
|
-
value: '11',
|
|
247
|
+
onChange={(e) => {
|
|
248
|
+
setSelectedFontSize({ label: e.label, value: e.value });
|
|
249
|
+
setFontSize(data, e.value);
|
|
244
250
|
}}
|
|
251
|
+
optionsList={fontSize}
|
|
252
|
+
selectedOption={selectedFontSize}
|
|
245
253
|
/>
|
|
246
254
|
</div>
|
|
247
255
|
</Tooltip>
|
|
@@ -310,7 +318,7 @@ const ExcelToolBar: React.FC<ExcelToolBarProps> = ({
|
|
|
310
318
|
/>
|
|
311
319
|
<MenuOption
|
|
312
320
|
iconName="arrow_down"
|
|
313
|
-
zIndex={
|
|
321
|
+
zIndex={1000}
|
|
314
322
|
iconSize={12}
|
|
315
323
|
options={underlineTypeIcon}
|
|
316
324
|
tooltipPlacement="top"
|
|
@@ -387,7 +395,7 @@ const ExcelToolBar: React.FC<ExcelToolBarProps> = ({
|
|
|
387
395
|
<MenuOption
|
|
388
396
|
iconName="arrow_down"
|
|
389
397
|
iconSize={12}
|
|
390
|
-
zIndex={
|
|
398
|
+
zIndex={1000}
|
|
391
399
|
options={borderTypeIcon}
|
|
392
400
|
tooltipPlacement="top"
|
|
393
401
|
variant="light"
|