@univerjs/sheets-ui 0.6.7-nightly.202503261607 → 0.6.7-nightly.202503291606

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
@@ -263,6 +263,7 @@ class lC {
263
263
  _(this, "_relativeSelectionColumnLength", 0);
264
264
  _(this, "_scenePointerMoveSub");
265
265
  _(this, "_scenePointerUpSub");
266
+ _(this, "_disabled", !1);
266
267
  /**
267
268
  * The shadow selection under cursor when move whole selection control(for moving normal selection)
268
269
  */
@@ -297,6 +298,9 @@ class lC {
297
298
  var e, t;
298
299
  (e = this._scrollTimer) == null || e.dispose(), this._fillControlColors = [], this._clearObserverEvent(), (t = this._helperSelection) == null || t.dispose();
299
300
  }
301
+ setDisabled(e) {
302
+ this._disabled = e;
303
+ }
300
304
  _getFreeze() {
301
305
  var t, n;
302
306
  return (n = (t = hd(
@@ -402,6 +406,8 @@ class lC {
402
406
  const I = i.getViewport(U.VIEW_MAIN), y = ri.create(i);
403
407
  this._scrollTimer = y, y.startScroll(s, l, I), i.disableObjectsEvent(), this._scenePointerMoveSub = i.onPointerMove$.subscribeEvent((M) => {
404
408
  var O;
409
+ if (this._disabled)
410
+ return;
405
411
  const { offsetX: P, offsetY: E } = M;
406
412
  if (((O = this._injector.get(lt, uc.OPTIONAL)) == null ? void 0 : O.interceptor.fetchThroughInterceptors(Ec)(!1, null)) === !1)
407
413
  return;
@@ -1013,6 +1019,9 @@ class Ld extends ae {
1013
1019
  setControlExtension(t) {
1014
1020
  this._controlExtension = new lC(this, t);
1015
1021
  }
1022
+ setControlExtensionDisable(t) {
1023
+ this._controlExtension && this._controlExtension.setDisabled(t);
1024
+ }
1016
1025
  setEvent(t) {
1017
1026
  this.leftControl.evented = t, this.rightControl.evented = t, this.topControl.evented = t, this.bottomControl.evented = t;
1018
1027
  }
@@ -13611,7 +13620,7 @@ function of(r, e, t, n) {
13611
13620
  };
13612
13621
  }
13613
13622
  function h0(r, e) {
13614
- const { startRow: t, startColumn: n, endColumn: i, endRow: o } = e, s = r.getMatrixWithMergedCells(t, n, o, i, Xh.Intercepted), l = new Je();
13623
+ const { startRow: t, startColumn: n, endColumn: i, endRow: o } = e, s = r.getMatrixWithMergedCells(t, n, o, i, Xh.Raw), l = new Je();
13615
13624
  let a = null;
13616
13625
  return s.forValue((c, d, u) => {
13617
13626
  var h, g, m, f;
package/lib/index.js CHANGED
@@ -263,6 +263,7 @@ class lC {
263
263
  _(this, "_relativeSelectionColumnLength", 0);
264
264
  _(this, "_scenePointerMoveSub");
265
265
  _(this, "_scenePointerUpSub");
266
+ _(this, "_disabled", !1);
266
267
  /**
267
268
  * The shadow selection under cursor when move whole selection control(for moving normal selection)
268
269
  */
@@ -297,6 +298,9 @@ class lC {
297
298
  var e, t;
298
299
  (e = this._scrollTimer) == null || e.dispose(), this._fillControlColors = [], this._clearObserverEvent(), (t = this._helperSelection) == null || t.dispose();
299
300
  }
301
+ setDisabled(e) {
302
+ this._disabled = e;
303
+ }
300
304
  _getFreeze() {
301
305
  var t, n;
302
306
  return (n = (t = hd(
@@ -402,6 +406,8 @@ class lC {
402
406
  const I = i.getViewport(U.VIEW_MAIN), y = ri.create(i);
403
407
  this._scrollTimer = y, y.startScroll(s, l, I), i.disableObjectsEvent(), this._scenePointerMoveSub = i.onPointerMove$.subscribeEvent((M) => {
404
408
  var O;
409
+ if (this._disabled)
410
+ return;
405
411
  const { offsetX: P, offsetY: E } = M;
406
412
  if (((O = this._injector.get(lt, uc.OPTIONAL)) == null ? void 0 : O.interceptor.fetchThroughInterceptors(Ec)(!1, null)) === !1)
407
413
  return;
@@ -1013,6 +1019,9 @@ class Ld extends ae {
1013
1019
  setControlExtension(t) {
1014
1020
  this._controlExtension = new lC(this, t);
1015
1021
  }
1022
+ setControlExtensionDisable(t) {
1023
+ this._controlExtension && this._controlExtension.setDisabled(t);
1024
+ }
1016
1025
  setEvent(t) {
1017
1026
  this.leftControl.evented = t, this.rightControl.evented = t, this.topControl.evented = t, this.bottomControl.evented = t;
1018
1027
  }
@@ -13611,7 +13620,7 @@ function of(r, e, t, n) {
13611
13620
  };
13612
13621
  }
13613
13622
  function h0(r, e) {
13614
- const { startRow: t, startColumn: n, endColumn: i, endRow: o } = e, s = r.getMatrixWithMergedCells(t, n, o, i, Xh.Intercepted), l = new Je();
13623
+ const { startRow: t, startColumn: n, endColumn: i, endRow: o } = e, s = r.getMatrixWithMergedCells(t, n, o, i, Xh.Raw), l = new Je();
13615
13624
  let a = null;
13616
13625
  return s.forValue((c, d, u) => {
13617
13626
  var h, g, m, f;
@@ -149,6 +149,7 @@ export declare class SelectionControl extends Disposable {
149
149
  get columnHeaderHeight(): number;
150
150
  set columnHeaderHeight(height: number);
151
151
  setControlExtension(options: ISelectionShapeExtensionOption): void;
152
+ setControlExtensionDisable(disable: boolean): void;
152
153
  setEvent(state: boolean): void;
153
154
  refreshSelectionFilled(val: IRangeWithCoord): void;
154
155
  /**
@@ -26,6 +26,7 @@ export declare class SelectionShapeExtension {
26
26
  private _relativeSelectionColumnLength;
27
27
  private _scenePointerMoveSub;
28
28
  private _scenePointerUpSub;
29
+ private _disabled;
29
30
  /**
30
31
  * The shadow selection under cursor when move whole selection control(for moving normal selection)
31
32
  */
@@ -43,6 +44,7 @@ export declare class SelectionShapeExtension {
43
44
  constructor(_control: SelectionControl, options: ISelectionShapeExtensionOption);
44
45
  get isHelperSelection(): boolean;
45
46
  dispose(): void;
47
+ setDisabled(disabled: boolean): void;
46
48
  private _getFreeze;
47
49
  private _isSelectionInViewport;
48
50
  private _clearObserverEvent;