@univerjs/sheets-ui 0.8.2-nightly.202506251607 → 0.8.2-nightly.202506261607

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/es/index.js CHANGED
@@ -5795,7 +5795,7 @@ function Em(r, e) {
5795
5795
  { keyCode: Y.TAB }
5796
5796
  ],
5797
5797
  handler: (o) => {
5798
- (o === Y.ENTER || o === Y.ESC || o === Y.TAB) && (t.disableForceKeepVisible(), n.executeCommand(tt.id, {
5798
+ (o === Y.ENTER || o === Y.ESC || o === Y.TAB) && (t.disableForceKeepVisible(), n.syncExecuteCommand(tt.id, {
5799
5799
  visible: !1,
5800
5800
  eventType: ze.Keyboard,
5801
5801
  keycode: o,
@@ -8631,10 +8631,10 @@ let zs = class extends oe {
8631
8631
  }));
8632
8632
  }
8633
8633
  async _handleEditorInvisible(e) {
8634
- var v, p;
8634
+ var f, v;
8635
8635
  const t = this._editorBridgeService.getEditCellState(), n = this._univerInstanceService.getUnit(Le), i = le.deepClone(n == null ? void 0 : n.getSnapshot()), { keycode: o } = e;
8636
8636
  this._cursorChange = 0;
8637
- const s = (v = t == null ? void 0 : t.unitId) != null ? v : "";
8637
+ const s = (f = t == null ? void 0 : t.unitId) != null ? f : "";
8638
8638
  if (this._exitInput(e), t == null)
8639
8639
  return;
8640
8640
  const l = this._univerInstanceService.getUnit(s, x.UNIVER_SHEET);
@@ -8644,16 +8644,12 @@ let zs = class extends oe {
8644
8644
  if (c === u && h !== d && await this._commandService.executeCommand(pd.id, {
8645
8645
  subUnitId: h,
8646
8646
  unitId: u
8647
- }), this._editorBridgeService.getEditorDirty() === !1) {
8648
- this._editorBridgeService.isForceKeepVisible() && this._editorBridgeService.disableForceKeepVisible(), this._moveSelection(o, s, d);
8649
- return;
8650
- }
8651
- if (o === Y.ESC) {
8647
+ }), o === Y.ESC) {
8652
8648
  this._editorBridgeService.isForceKeepVisible() && this._editorBridgeService.disableForceKeepVisible(), this._refreshCurrentSelections(h);
8653
8649
  return;
8654
8650
  }
8655
- const m = ((p = i == null ? void 0 : i.body) == null ? void 0 : p.dataStream.length) === 2, f = t.documentLayoutObject.documentModel ? this._isCellImageData(t.documentLayoutObject.documentModel.getSnapshot()) : !1;
8656
- i && !(m && f) && await this._submitEdit(i, o === (Se.CTRL_COMMAND | Y.ENTER) || o === (Se.MAC_CTRL | Y.ENTER)) === !1 || this._moveSelection(o, s, d);
8651
+ const g = ((v = i == null ? void 0 : i.body) == null ? void 0 : v.dataStream.length) === 2, m = t.documentLayoutObject.documentModel ? this._isCellImageData(t.documentLayoutObject.documentModel.getSnapshot()) : !1;
8652
+ i && !(g && m) && await this._submitEdit(i, o === (Se.CTRL_COMMAND | Y.ENTER) || o === (Se.MAC_CTRL | Y.ENTER)) === !1 || this._moveSelection(o, s, d);
8657
8653
  }
8658
8654
  _getEditorObject() {
8659
8655
  return Od(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
package/lib/index.js CHANGED
@@ -5795,7 +5795,7 @@ function Em(r, e) {
5795
5795
  { keyCode: Y.TAB }
5796
5796
  ],
5797
5797
  handler: (o) => {
5798
- (o === Y.ENTER || o === Y.ESC || o === Y.TAB) && (t.disableForceKeepVisible(), n.executeCommand(tt.id, {
5798
+ (o === Y.ENTER || o === Y.ESC || o === Y.TAB) && (t.disableForceKeepVisible(), n.syncExecuteCommand(tt.id, {
5799
5799
  visible: !1,
5800
5800
  eventType: ze.Keyboard,
5801
5801
  keycode: o,
@@ -8631,10 +8631,10 @@ let zs = class extends oe {
8631
8631
  }));
8632
8632
  }
8633
8633
  async _handleEditorInvisible(e) {
8634
- var v, p;
8634
+ var f, v;
8635
8635
  const t = this._editorBridgeService.getEditCellState(), n = this._univerInstanceService.getUnit(Le), i = le.deepClone(n == null ? void 0 : n.getSnapshot()), { keycode: o } = e;
8636
8636
  this._cursorChange = 0;
8637
- const s = (v = t == null ? void 0 : t.unitId) != null ? v : "";
8637
+ const s = (f = t == null ? void 0 : t.unitId) != null ? f : "";
8638
8638
  if (this._exitInput(e), t == null)
8639
8639
  return;
8640
8640
  const l = this._univerInstanceService.getUnit(s, x.UNIVER_SHEET);
@@ -8644,16 +8644,12 @@ let zs = class extends oe {
8644
8644
  if (c === u && h !== d && await this._commandService.executeCommand(pd.id, {
8645
8645
  subUnitId: h,
8646
8646
  unitId: u
8647
- }), this._editorBridgeService.getEditorDirty() === !1) {
8648
- this._editorBridgeService.isForceKeepVisible() && this._editorBridgeService.disableForceKeepVisible(), this._moveSelection(o, s, d);
8649
- return;
8650
- }
8651
- if (o === Y.ESC) {
8647
+ }), o === Y.ESC) {
8652
8648
  this._editorBridgeService.isForceKeepVisible() && this._editorBridgeService.disableForceKeepVisible(), this._refreshCurrentSelections(h);
8653
8649
  return;
8654
8650
  }
8655
- const m = ((p = i == null ? void 0 : i.body) == null ? void 0 : p.dataStream.length) === 2, f = t.documentLayoutObject.documentModel ? this._isCellImageData(t.documentLayoutObject.documentModel.getSnapshot()) : !1;
8656
- i && !(m && f) && await this._submitEdit(i, o === (Se.CTRL_COMMAND | Y.ENTER) || o === (Se.MAC_CTRL | Y.ENTER)) === !1 || this._moveSelection(o, s, d);
8651
+ const g = ((v = i == null ? void 0 : i.body) == null ? void 0 : v.dataStream.length) === 2, m = t.documentLayoutObject.documentModel ? this._isCellImageData(t.documentLayoutObject.documentModel.getSnapshot()) : !1;
8652
+ i && !(g && m) && await this._submitEdit(i, o === (Se.CTRL_COMMAND | Y.ENTER) || o === (Se.MAC_CTRL | Y.ENTER)) === !1 || this._moveSelection(o, s, d);
8657
8653
  }
8658
8654
  _getEditorObject() {
8659
8655
  return Od(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);