pixel-react-excel-sheet 1.0.15 → 1.0.16
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 +22 -14
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +22 -14
- 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/ExcelToolBar/ExcelToolBar.tsx +19 -11
package/lib/index.esm.js
CHANGED
|
@@ -32001,7 +32001,11 @@ const ExcelToolBar = ({
|
|
|
32001
32001
|
const [underLine, setUnderLine] = useState('underline');
|
|
32002
32002
|
const [selectedFontFamily, setSelectedFontFamily] = useState({
|
|
32003
32003
|
label: 'Times New Roman',
|
|
32004
|
-
value: '
|
|
32004
|
+
value: 'Times New Roman'
|
|
32005
|
+
});
|
|
32006
|
+
const [selectedFontSize, setSelectedFontSize] = useState({
|
|
32007
|
+
label: '11',
|
|
32008
|
+
value: '11'
|
|
32005
32009
|
});
|
|
32006
32010
|
const [colorContainer, setColorPicker] = useState({
|
|
32007
32011
|
color: 'var(--error-light)',
|
|
@@ -32134,11 +32138,12 @@ const ExcelToolBar = ({
|
|
|
32134
32138
|
className: "ff-excel-toolbar-font-family",
|
|
32135
32139
|
children: jsx(Select$1, {
|
|
32136
32140
|
showLabel: false,
|
|
32137
|
-
optionZIndex:
|
|
32141
|
+
optionZIndex: 1000,
|
|
32138
32142
|
onChange: e => {
|
|
32143
|
+
console.log(e);
|
|
32139
32144
|
setSelectedFontFamily({
|
|
32140
32145
|
label: e.label,
|
|
32141
|
-
value: e.
|
|
32146
|
+
value: e.label
|
|
32142
32147
|
});
|
|
32143
32148
|
setFontFamily(data, e.label);
|
|
32144
32149
|
},
|
|
@@ -32154,14 +32159,17 @@ const ExcelToolBar = ({
|
|
|
32154
32159
|
className: "ff-excel-toolbar-font-size",
|
|
32155
32160
|
children: jsx(Select$1, {
|
|
32156
32161
|
showLabel: false,
|
|
32157
|
-
optionZIndex:
|
|
32162
|
+
optionZIndex: 1000,
|
|
32158
32163
|
required: false,
|
|
32159
|
-
onChange: e =>
|
|
32164
|
+
onChange: e => {
|
|
32165
|
+
setSelectedFontSize({
|
|
32166
|
+
label: e.label,
|
|
32167
|
+
value: e.value
|
|
32168
|
+
});
|
|
32169
|
+
setFontSize(data, e.value);
|
|
32170
|
+
},
|
|
32160
32171
|
optionsList: fontSize,
|
|
32161
|
-
selectedOption:
|
|
32162
|
-
label: '11',
|
|
32163
|
-
value: '11'
|
|
32164
|
-
}
|
|
32172
|
+
selectedOption: selectedFontSize
|
|
32165
32173
|
})
|
|
32166
32174
|
})
|
|
32167
32175
|
})]
|
|
@@ -32237,7 +32245,7 @@ const ExcelToolBar = ({
|
|
|
32237
32245
|
name: getUnderlineIcon()
|
|
32238
32246
|
}), jsx(MenuOption, {
|
|
32239
32247
|
iconName: "arrow_down",
|
|
32240
|
-
zIndex:
|
|
32248
|
+
zIndex: 1000,
|
|
32241
32249
|
iconSize: 12,
|
|
32242
32250
|
options: underlineTypeIcon,
|
|
32243
32251
|
tooltipPlacement: "top",
|
|
@@ -32320,7 +32328,7 @@ const ExcelToolBar = ({
|
|
|
32320
32328
|
}), jsx(MenuOption, {
|
|
32321
32329
|
iconName: "arrow_down",
|
|
32322
32330
|
iconSize: 12,
|
|
32323
|
-
zIndex:
|
|
32331
|
+
zIndex: 1000,
|
|
32324
32332
|
options: borderTypeIcon,
|
|
32325
32333
|
tooltipPlacement: "top",
|
|
32326
32334
|
variant: "light",
|
|
@@ -32601,7 +32609,7 @@ const Spreadsheet = props => {
|
|
|
32601
32609
|
var css_248z$j = ".ff-excel-book {\n z-index: 1000;\n}\n.ff-excel-book .ff-excel-sheet {\n position: static;\n top: 0;\n}\n.ff-excel-book .ff-excel-sheet-bar {\n position: static;\n max-width: 100%;\n margin-left: 60px;\n display: flex;\n height: 36px;\n align-items: center;\n color: var(--brand2-color);\n box-shadow: 0px 0px 4px -1px var(--toggle-strip-shadow);\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-add-sheet-icon {\n position: fixed;\n margin-top: 4px;\n padding: 0px 6px;\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container {\n padding-left: 40px;\n height: 36px;\n display: flex;\n overflow-x: auto;\n align-items: center;\n scrollbar-width: none;\n scrollbar-color: var(--hover-color) transparent;\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container::-webkit-scrollbar-track {\n background-color: transparent;\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container::-webkit-scrollbar-thumb {\n border-radius: 5px;\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container::-webkit-scrollbar {\n height: 0px;\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container .ff-excel-tab-list {\n margin-top: 2px;\n padding: 10px 9px;\n min-width: max-content;\n cursor: pointer;\n display: flex;\n background-color: var(--hover-color);\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container .ff-excel-tab-list.active {\n background-color: var(--excel-sheet-button-color);\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container .ff-excel-tab-list:focus {\n outline: none;\n text-decoration: none;\n}";
|
|
32602
32610
|
styleInject(css_248z$j);
|
|
32603
32611
|
|
|
32604
|
-
var css_248z$i = ".ff-excel-menu {\n position: absolute;\n border: 1px solid var(--option-card-border-color);\n background: var(--option-card-bg-color);\n border-radius: 4px;\n margin: 2px;\n min-height: 32px;\n min-width: 111px;\n white-space: nowrap;\n z-index:
|
|
32612
|
+
var css_248z$i = ".ff-excel-menu {\n position: absolute;\n border: 1px solid var(--option-card-border-color);\n background: var(--option-card-bg-color);\n border-radius: 4px;\n margin: 2px;\n min-height: 32px;\n min-width: 111px;\n white-space: nowrap;\n z-index: 2000;\n}\n.ff-excel-menu .ff-excel-menu-options {\n color: var(--text-color);\n cursor: pointer;\n border-radius: 3px;\n display: flex;\n align-items: center;\n padding: 4px;\n gap: 8px;\n}\n.ff-excel-menu .ff-excel-menu-options:hover {\n background-color: var(--hover-color);\n}\n.ff-excel-menu .ff-excel-menu-options label {\n cursor: pointer;\n}";
|
|
32605
32613
|
styleInject(css_248z$i);
|
|
32606
32614
|
|
|
32607
32615
|
const ExcelContextMenu = ({
|
|
@@ -32977,8 +32985,8 @@ const ExcelFile = ({
|
|
|
32977
32985
|
setContextMenu({
|
|
32978
32986
|
open: true,
|
|
32979
32987
|
position: {
|
|
32980
|
-
x: event.pageX -
|
|
32981
|
-
y: event.pageY -
|
|
32988
|
+
x: event.pageX - 0,
|
|
32989
|
+
y: event.pageY - 50
|
|
32982
32990
|
},
|
|
32983
32991
|
options: options
|
|
32984
32992
|
});
|