@leankylin-sheet/react 4.1.2 → 4.1.4
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/README.md +19 -19
- package/dist/index.css +3368 -3368
- package/dist/index.esm.css +3368 -3368
- package/dist/index.esm.js +3 -3
- package/dist/index.js +3 -3
- package/dist/index.umd.css +3368 -3368
- package/dist/index.umd.js +5160 -95
- package/dist/index.umd.min.js +9 -2
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1147,7 +1147,7 @@ function usePrevious(value) {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
1149
|
var InputBox = function InputBox() {
|
|
1150
|
-
var _context$luckysheet_s, _context$rangeDialog, _settings$renderEdito;
|
|
1150
|
+
var _context$luckysheet_s, _context$rangeDialog, _refs$globalCache$fre, _refs$globalCache$fre2, _settings$renderEdito;
|
|
1151
1151
|
var _useContext = useContext(WorkbookContext),
|
|
1152
1152
|
context = _useContext.context,
|
|
1153
1153
|
setContext = _useContext.setContext,
|
|
@@ -1272,12 +1272,12 @@ var InputBox = function InputBox() {
|
|
|
1272
1272
|
var edit = !((colReadOnly[col_index] || rowReadOnly[row_index]) && context.allowEdit === true);
|
|
1273
1273
|
return /*#__PURE__*/React.createElement("div", {
|
|
1274
1274
|
className: "luckysheet-input-box",
|
|
1275
|
-
style: firstSelection && !((_context$rangeDialog = context.rangeDialog) === null || _context$rangeDialog === void 0 ? void 0 : _context$rangeDialog.show) ? {
|
|
1275
|
+
style: firstSelection && !((_context$rangeDialog = context.rangeDialog) === null || _context$rangeDialog === void 0 ? void 0 : _context$rangeDialog.show) ? _objectSpread2(_objectSpread2({
|
|
1276
1276
|
left: firstSelection.left,
|
|
1277
1277
|
top: firstSelection.top,
|
|
1278
1278
|
zIndex: _.isEmpty(context.luckysheetCellUpdate) ? -1 : 19,
|
|
1279
1279
|
display: "block"
|
|
1280
|
-
} : {
|
|
1280
|
+
}, fixRowStyleOverflowInFreeze(context, firstSelection.row[0], firstSelection.row[1], (_refs$globalCache$fre = refs.globalCache.freezen) === null || _refs$globalCache$fre === void 0 ? void 0 : _refs$globalCache$fre[context.currentSheetId])), fixColumnStyleOverflowInFreeze(context, firstSelection.column[0], firstSelection.column[1], (_refs$globalCache$fre2 = refs.globalCache.freezen) === null || _refs$globalCache$fre2 === void 0 ? void 0 : _refs$globalCache$fre2[context.currentSheetId])) : {
|
|
1281
1281
|
left: -10000,
|
|
1282
1282
|
top: -10000,
|
|
1283
1283
|
display: "block"
|
package/dist/index.js
CHANGED
|
@@ -1157,7 +1157,7 @@ function usePrevious(value) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
1159
1159
|
var InputBox = function InputBox() {
|
|
1160
|
-
var _context$luckysheet_s, _context$rangeDialog, _settings$renderEdito;
|
|
1160
|
+
var _context$luckysheet_s, _context$rangeDialog, _refs$globalCache$fre, _refs$globalCache$fre2, _settings$renderEdito;
|
|
1161
1161
|
var _useContext = React.useContext(WorkbookContext),
|
|
1162
1162
|
context = _useContext.context,
|
|
1163
1163
|
setContext = _useContext.setContext,
|
|
@@ -1282,12 +1282,12 @@ var InputBox = function InputBox() {
|
|
|
1282
1282
|
var edit = !((colReadOnly[col_index] || rowReadOnly[row_index]) && context.allowEdit === true);
|
|
1283
1283
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1284
1284
|
className: "luckysheet-input-box",
|
|
1285
|
-
style: firstSelection && !((_context$rangeDialog = context.rangeDialog) === null || _context$rangeDialog === void 0 ? void 0 : _context$rangeDialog.show) ? {
|
|
1285
|
+
style: firstSelection && !((_context$rangeDialog = context.rangeDialog) === null || _context$rangeDialog === void 0 ? void 0 : _context$rangeDialog.show) ? _objectSpread2(_objectSpread2({
|
|
1286
1286
|
left: firstSelection.left,
|
|
1287
1287
|
top: firstSelection.top,
|
|
1288
1288
|
zIndex: ___default['default'].isEmpty(context.luckysheetCellUpdate) ? -1 : 19,
|
|
1289
1289
|
display: "block"
|
|
1290
|
-
} : {
|
|
1290
|
+
}, core.fixRowStyleOverflowInFreeze(context, firstSelection.row[0], firstSelection.row[1], (_refs$globalCache$fre = refs.globalCache.freezen) === null || _refs$globalCache$fre === void 0 ? void 0 : _refs$globalCache$fre[context.currentSheetId])), core.fixColumnStyleOverflowInFreeze(context, firstSelection.column[0], firstSelection.column[1], (_refs$globalCache$fre2 = refs.globalCache.freezen) === null || _refs$globalCache$fre2 === void 0 ? void 0 : _refs$globalCache$fre2[context.currentSheetId])) : {
|
|
1291
1291
|
left: -10000,
|
|
1292
1292
|
top: -10000,
|
|
1293
1293
|
display: "block"
|