@leankylin-sheet/react 3.1.18 → 3.1.20
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/dist/index.esm.js
CHANGED
|
@@ -2199,7 +2199,17 @@ var NotationBoxes = function NotationBoxes() {
|
|
|
2199
2199
|
outline: "none",
|
|
2200
2200
|
cursor: "auto"
|
|
2201
2201
|
},
|
|
2202
|
+
onChange: function onChange(newValue) {
|
|
2203
|
+
var _context$hooks$afterU, _context$hooks2, _flowdata$r, _flowdata$r$c;
|
|
2204
|
+
return (_context$hooks$afterU = (_context$hooks2 = context.hooks).afterUpdateComment) === null || _context$hooks$afterU === void 0 ? void 0 : _context$hooks$afterU.call(_context$hooks2, r, c, _objectSpread2(_objectSpread2({}, (flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r = flowdata[r]) === null || _flowdata$r === void 0 ? void 0 : (_flowdata$r$c = _flowdata$r[c]) === null || _flowdata$r$c === void 0 ? void 0 : _flowdata$r$c.ps) || {}), {}, {
|
|
2205
|
+
value: newValue
|
|
2206
|
+
}), false);
|
|
2207
|
+
},
|
|
2202
2208
|
allowEdit: context.allowEdit,
|
|
2209
|
+
onBlur: function onBlur() {
|
|
2210
|
+
var _context$hooks$afterU2, _context$hooks3, _flowdata$r2, _flowdata$r2$c;
|
|
2211
|
+
return (_context$hooks$afterU2 = (_context$hooks3 = context.hooks).afterUpdateComment) === null || _context$hooks$afterU2 === void 0 ? void 0 : _context$hooks$afterU2.call(_context$hooks3, r, c, flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r2 = flowdata[r]) === null || _flowdata$r2 === void 0 ? void 0 : (_flowdata$r2$c = _flowdata$r2[c]) === null || _flowdata$r2$c === void 0 ? void 0 : _flowdata$r2$c.ps, true);
|
|
2212
|
+
},
|
|
2203
2213
|
spellCheck: false,
|
|
2204
2214
|
"data-r": r,
|
|
2205
2215
|
"data-c": c,
|
|
@@ -9663,6 +9673,17 @@ var MoreItemsContaier = function MoreItemsContaier(_ref) {
|
|
|
9663
9673
|
|
|
9664
9674
|
function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cellInput, scrollbarX, scrollbarY, refs) {
|
|
9665
9675
|
return {
|
|
9676
|
+
scrollToHighlightCell: function scrollToHighlightCell$1(r, c, selected) {
|
|
9677
|
+
setContext(function (ctx) {
|
|
9678
|
+
scrollToHighlightCell(ctx, r, c);
|
|
9679
|
+
if (selected) {
|
|
9680
|
+
api.setSelection(ctx, [{
|
|
9681
|
+
row: [r, r],
|
|
9682
|
+
column: [c, c]
|
|
9683
|
+
}], {});
|
|
9684
|
+
}
|
|
9685
|
+
});
|
|
9686
|
+
},
|
|
9666
9687
|
getRefs: function getRefs() {
|
|
9667
9688
|
return refs;
|
|
9668
9689
|
},
|
package/dist/index.js
CHANGED
|
@@ -2209,7 +2209,17 @@ var NotationBoxes = function NotationBoxes() {
|
|
|
2209
2209
|
outline: "none",
|
|
2210
2210
|
cursor: "auto"
|
|
2211
2211
|
},
|
|
2212
|
+
onChange: function onChange(newValue) {
|
|
2213
|
+
var _context$hooks$afterU, _context$hooks2, _flowdata$r, _flowdata$r$c;
|
|
2214
|
+
return (_context$hooks$afterU = (_context$hooks2 = context.hooks).afterUpdateComment) === null || _context$hooks$afterU === void 0 ? void 0 : _context$hooks$afterU.call(_context$hooks2, r, c, _objectSpread2(_objectSpread2({}, (flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r = flowdata[r]) === null || _flowdata$r === void 0 ? void 0 : (_flowdata$r$c = _flowdata$r[c]) === null || _flowdata$r$c === void 0 ? void 0 : _flowdata$r$c.ps) || {}), {}, {
|
|
2215
|
+
value: newValue
|
|
2216
|
+
}), false);
|
|
2217
|
+
},
|
|
2212
2218
|
allowEdit: context.allowEdit,
|
|
2219
|
+
onBlur: function onBlur() {
|
|
2220
|
+
var _context$hooks$afterU2, _context$hooks3, _flowdata$r2, _flowdata$r2$c;
|
|
2221
|
+
return (_context$hooks$afterU2 = (_context$hooks3 = context.hooks).afterUpdateComment) === null || _context$hooks$afterU2 === void 0 ? void 0 : _context$hooks$afterU2.call(_context$hooks3, r, c, flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r2 = flowdata[r]) === null || _flowdata$r2 === void 0 ? void 0 : (_flowdata$r2$c = _flowdata$r2[c]) === null || _flowdata$r2$c === void 0 ? void 0 : _flowdata$r2$c.ps, true);
|
|
2222
|
+
},
|
|
2213
2223
|
spellCheck: false,
|
|
2214
2224
|
"data-r": r,
|
|
2215
2225
|
"data-c": c,
|
|
@@ -9673,6 +9683,17 @@ var MoreItemsContaier = function MoreItemsContaier(_ref) {
|
|
|
9673
9683
|
|
|
9674
9684
|
function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cellInput, scrollbarX, scrollbarY, refs) {
|
|
9675
9685
|
return {
|
|
9686
|
+
scrollToHighlightCell: function scrollToHighlightCell(r, c, selected) {
|
|
9687
|
+
setContext(function (ctx) {
|
|
9688
|
+
core.scrollToHighlightCell(ctx, r, c);
|
|
9689
|
+
if (selected) {
|
|
9690
|
+
core.api.setSelection(ctx, [{
|
|
9691
|
+
row: [r, r],
|
|
9692
|
+
column: [c, c]
|
|
9693
|
+
}], {});
|
|
9694
|
+
}
|
|
9695
|
+
});
|
|
9696
|
+
},
|
|
9676
9697
|
getRefs: function getRefs() {
|
|
9677
9698
|
return refs;
|
|
9678
9699
|
},
|
package/dist/index.umd.js
CHANGED
|
@@ -105245,7 +105245,17 @@
|
|
|
105245
105245
|
outline: "none",
|
|
105246
105246
|
cursor: "auto"
|
|
105247
105247
|
},
|
|
105248
|
+
onChange: function onChange(newValue) {
|
|
105249
|
+
var _context$hooks$afterU, _context$hooks2, _flowdata$r, _flowdata$r$c;
|
|
105250
|
+
return (_context$hooks$afterU = (_context$hooks2 = context.hooks).afterUpdateComment) === null || _context$hooks$afterU === void 0 ? void 0 : _context$hooks$afterU.call(_context$hooks2, r, c, _objectSpread2(_objectSpread2({}, (flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r = flowdata[r]) === null || _flowdata$r === void 0 ? void 0 : (_flowdata$r$c = _flowdata$r[c]) === null || _flowdata$r$c === void 0 ? void 0 : _flowdata$r$c.ps) || {}), {}, {
|
|
105251
|
+
value: newValue
|
|
105252
|
+
}), false);
|
|
105253
|
+
},
|
|
105248
105254
|
allowEdit: context.allowEdit,
|
|
105255
|
+
onBlur: function onBlur() {
|
|
105256
|
+
var _context$hooks$afterU2, _context$hooks3, _flowdata$r2, _flowdata$r2$c;
|
|
105257
|
+
return (_context$hooks$afterU2 = (_context$hooks3 = context.hooks).afterUpdateComment) === null || _context$hooks$afterU2 === void 0 ? void 0 : _context$hooks$afterU2.call(_context$hooks3, r, c, flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r2 = flowdata[r]) === null || _flowdata$r2 === void 0 ? void 0 : (_flowdata$r2$c = _flowdata$r2[c]) === null || _flowdata$r2$c === void 0 ? void 0 : _flowdata$r2$c.ps, true);
|
|
105258
|
+
},
|
|
105249
105259
|
spellCheck: false,
|
|
105250
105260
|
"data-r": r,
|
|
105251
105261
|
"data-c": c,
|
|
@@ -112709,6 +112719,17 @@
|
|
|
112709
112719
|
|
|
112710
112720
|
function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cellInput, scrollbarX, scrollbarY, refs) {
|
|
112711
112721
|
return {
|
|
112722
|
+
scrollToHighlightCell: function scrollToHighlightCell$1(r, c, selected) {
|
|
112723
|
+
setContext(function (ctx) {
|
|
112724
|
+
scrollToHighlightCell(ctx, r, c);
|
|
112725
|
+
if (selected) {
|
|
112726
|
+
index.setSelection(ctx, [{
|
|
112727
|
+
row: [r, r],
|
|
112728
|
+
column: [c, c]
|
|
112729
|
+
}], {});
|
|
112730
|
+
}
|
|
112731
|
+
});
|
|
112732
|
+
},
|
|
112712
112733
|
getRefs: function getRefs() {
|
|
112713
112734
|
return refs;
|
|
112714
112735
|
},
|