@univerjs/sheets-ui 0.10.12-nightly.202510221114 → 0.10.12-nightly.202510251119

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/facade.js CHANGED
@@ -1,23 +1,23 @@
1
- import { ICommandService as _, CanceledError as p, IUniverInstanceService as W, RichTextValue as O, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as T, LifecycleService as oe, DisposableCollection as A, LifecycleStages as z, UniverInstanceType as se, ILogService as U, toDisposable as m, awaitTime as ae, InterceptorEffectEnum as ce, generateRandomId as de } from "@univerjs/core";
1
+ import { ICommandService as P, CanceledError as E, IUniverInstanceService as W, RichTextValue as O, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as D, LifecycleService as oe, DisposableCollection as A, LifecycleStages as z, UniverInstanceType as se, ILogService as U, toDisposable as m, awaitTime as ae, InterceptorEffectEnum as ce, generateRandomId as de } from "@univerjs/core";
2
2
  import { FUniver as q, FEventName as he } from "@univerjs/core/facade";
3
3
  import { RichTextEditingMutation as ge } from "@univerjs/docs";
4
4
  import { IRenderManagerService as v, DeviceInputEventType as L, SHEET_VIEWPORT_KEY as le, sheetContentViewportKeys as ue } from "@univerjs/engine-render";
5
- import { SheetsSelectionsService as ve, COMMAND_LISTENER_SKELETON_CHANGE as Se, getSkeletonChangedEffectedRange as me, SetWorksheetRowIsAutoHeightCommand as Ce, InterceptCellContentPriority as we, SheetInterceptorService as Ee, INTERCEPTOR_POINT as pe } from "@univerjs/sheets";
6
- import { SetCellEditVisibleOperation as f, IEditorBridgeService as R, SetZoomRatioCommand as j, HoverManagerService as b, DragManagerService as M, SheetScrollManagerService as x, SheetPasteShortKeyCommand as B, ISheetClipboardService as Q, SheetSkeletonManagerService as I, SHEET_VIEW_KEY as w, ISheetSelectionRenderService as y, IMarkSelectionService as ee, SheetsScrollRenderController as be, SetWorksheetColAutoWidthCommand as fe, SetColumnHeaderHeightCommand as ke, SetRowHeaderWidthCommand as Ie, SheetCanvasPopManagerService as N, CellAlertManagerService as _e, ISheetCellDropdownManagerService as Pe } from "@univerjs/sheets-ui";
5
+ import { SheetsSelectionsService as ve, COMMAND_LISTENER_SKELETON_CHANGE as Se, getSkeletonChangedEffectedRange as me, SetWorksheetRowIsAutoHeightCommand as Ce, InterceptCellContentPriority as be, SheetInterceptorService as we, INTERCEPTOR_POINT as Ee } from "@univerjs/sheets";
6
+ import { SetCellEditVisibleOperation as k, IEditorBridgeService as p, SetZoomRatioCommand as j, HoverManagerService as f, DragManagerService as M, SheetScrollManagerService as x, SheetPasteShortKeyCommand as T, ISheetClipboardService as Q, SheetSkeletonManagerService as _, SHEET_VIEW_KEY as b, ISheetSelectionRenderService as y, IMarkSelectionService as ee, SheetsScrollRenderController as pe, SetWorksheetColAutoWidthCommand as fe, SetColumnHeaderHeightCommand as ke, SetRowHeaderWidthCommand as Ie, SheetCanvasPopManagerService as N, CellAlertManagerService as _e, ISheetCellDropdownManagerService as Pe } from "@univerjs/sheets-ui";
7
7
  import { FSheetHooks as $, FWorkbook as te, FWorksheet as re, FPermission as ne, FRange as ie } from "@univerjs/sheets/facade";
8
- import { KeyCode as D, CutCommand as F, CopyCommand as V, PasteCommand as Z, IClipboardInterfaceService as Re, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as K, HTML_CLIPBOARD_MIME_TYPE as Y, supportClipboardAPI as X, ISidebarService as He, IDialogService as Me, ComponentManager as J } from "@univerjs/ui";
8
+ import { KeyCode as B, CutCommand as F, CopyCommand as V, PasteCommand as Z, IClipboardInterfaceService as Re, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as K, HTML_CLIPBOARD_MIME_TYPE as Y, supportClipboardAPI as X, ISidebarService as He, IDialogService as Me, ComponentManager as J } from "@univerjs/ui";
9
9
  import { filter as u, combineLatest as ye } from "rxjs";
10
10
  class Ue extends q {
11
11
  // eslint-disable-next-line max-lines-per-function
12
12
  _initSheetUIEvent(e) {
13
- const r = e.get(_);
13
+ const r = e.get(P);
14
14
  this.registerEventHandler(
15
15
  this.Event.BeforeSheetEditStart,
16
16
  () => r.beforeCommandExecuted((t) => {
17
- if (t.id !== f.id) return;
17
+ if (t.id !== k.id) return;
18
18
  const i = this.getActiveSheet();
19
19
  if (!i) return;
20
- const { workbook: o, worksheet: s } = i, d = e.get(R), h = t.params, { visible: g, keycode: l, eventType: a } = h, n = d.getEditLocation();
20
+ const { workbook: o, worksheet: s } = i, d = e.get(p), h = t.params, { visible: g, keycode: l, eventType: a } = h, n = d.getEditLocation();
21
21
  if (g) {
22
22
  const c = {
23
23
  row: n.row,
@@ -29,18 +29,18 @@ class Ue extends q {
29
29
  isZenEditor: !1
30
30
  };
31
31
  if (this.fireEvent(this.Event.BeforeSheetEditStart, c), c.cancel)
32
- throw new p();
32
+ throw new E();
33
33
  }
34
34
  })
35
35
  ), this.registerEventHandler(
36
36
  this.Event.BeforeSheetEditEnd,
37
37
  () => r.beforeCommandExecuted((t) => {
38
- if (t.id !== f.id) return;
38
+ if (t.id !== k.id) return;
39
39
  const i = this.getActiveSheet();
40
40
  if (!i) return;
41
- const { workbook: o, worksheet: s } = i, d = e.get(R), h = e.get(W), g = t.params, { visible: l, keycode: a, eventType: n } = g, c = d.getEditLocation();
41
+ const { workbook: o, worksheet: s } = i, d = e.get(p), h = e.get(W), g = t.params, { visible: l, keycode: a, eventType: n } = g, c = d.getEditLocation();
42
42
  if (!l) {
43
- const P = {
43
+ const R = {
44
44
  row: c.row,
45
45
  column: c.column,
46
46
  eventType: n,
@@ -48,20 +48,20 @@ class Ue extends q {
48
48
  workbook: o,
49
49
  worksheet: s,
50
50
  isZenEditor: !1,
51
- value: O.create(h.getUnit(T).getSnapshot()),
52
- isConfirm: a !== D.ESC
51
+ value: O.create(h.getUnit(D).getSnapshot()),
52
+ isConfirm: a !== B.ESC
53
53
  };
54
- if (this.fireEvent(this.Event.BeforeSheetEditEnd, P), P.cancel)
55
- throw new p();
54
+ if (this.fireEvent(this.Event.BeforeSheetEditEnd, R), R.cancel)
55
+ throw new E();
56
56
  }
57
57
  })
58
58
  ), this.registerEventHandler(
59
59
  this.Event.SheetEditStarted,
60
60
  () => r.onCommandExecuted((t) => {
61
- if (t.id !== f.id) return;
61
+ if (t.id !== k.id) return;
62
62
  const i = this.getCommandSheetTarget(t);
63
63
  if (!i) return;
64
- const { workbook: o, worksheet: s } = i, d = e.get(R), h = t.params, { visible: g, keycode: l, eventType: a } = h, n = d.getEditLocation();
64
+ const { workbook: o, worksheet: s } = i, d = e.get(p), h = t.params, { visible: g, keycode: l, eventType: a } = h, n = d.getEditLocation();
65
65
  if (g) {
66
66
  const c = {
67
67
  row: n.row,
@@ -78,10 +78,10 @@ class Ue extends q {
78
78
  ), this.registerEventHandler(
79
79
  this.Event.SheetEditEnded,
80
80
  () => r.onCommandExecuted((t) => {
81
- if (t.id !== f.id) return;
81
+ if (t.id !== k.id) return;
82
82
  const i = this.getCommandSheetTarget(t);
83
83
  if (!i) return;
84
- const { workbook: o, worksheet: s } = i, d = e.get(R), h = t.params, { visible: g, keycode: l, eventType: a } = h, n = d.getEditLocation();
84
+ const { workbook: o, worksheet: s } = i, d = e.get(p), h = t.params, { visible: g, keycode: l, eventType: a } = h, n = d.getEditLocation();
85
85
  if (!g) {
86
86
  const c = {
87
87
  row: n.row,
@@ -91,7 +91,7 @@ class Ue extends q {
91
91
  workbook: o,
92
92
  worksheet: s,
93
93
  isZenEditor: !1,
94
- isConfirm: l !== D.ESC
94
+ isConfirm: l !== B.ESC
95
95
  };
96
96
  this.fireEvent(this.Event.SheetEditEnded, c);
97
97
  }
@@ -102,16 +102,16 @@ class Ue extends q {
102
102
  if (t.id !== ge.id) return;
103
103
  const i = this.getActiveSheet();
104
104
  if (!i) return;
105
- const { workbook: o, worksheet: s } = i, d = e.get(R), h = e.get(W), g = t.params;
105
+ const { workbook: o, worksheet: s } = i, d = e.get(p), h = e.get(W), g = t.params;
106
106
  if (!d.isVisible().visible) return;
107
107
  const { unitId: l } = g;
108
- if (l === T) {
108
+ if (l === D) {
109
109
  const { row: a, column: n } = d.getEditLocation(), c = {
110
110
  workbook: o,
111
111
  worksheet: s,
112
112
  row: a,
113
113
  column: n,
114
- value: O.create(h.getUnit(T).getSnapshot()),
114
+ value: O.create(h.getUnit(D).getSnapshot()),
115
115
  isZenEditor: !1
116
116
  };
117
117
  this.fireEvent(this.Event.SheetEditChanging, c);
@@ -129,7 +129,7 @@ class Ue extends q {
129
129
  worksheet: s
130
130
  };
131
131
  if (this.fireEvent(this.Event.BeforeSheetZoomChange, d), d.cancel)
132
- throw new p();
132
+ throw new E();
133
133
  })
134
134
  ), this.registerEventHandler(
135
135
  this.Event.SheetZoomChanged,
@@ -152,7 +152,7 @@ class Ue extends q {
152
152
  this.disposeWithMe(t.lifecycle$.subscribe((h) => {
153
153
  if (h !== z.Rendered) return;
154
154
  i.dispose();
155
- const g = e.get(b), l = e.get(M);
155
+ const g = e.get(f), l = e.get(M);
156
156
  g && (this.registerEventHandler(
157
157
  this.Event.CellClicked,
158
158
  () => {
@@ -356,11 +356,11 @@ class Ue extends q {
356
356
  t.lifecycle$
357
357
  ]);
358
358
  this.disposeWithMe(d.subscribe(([h, g]) => {
359
- var P;
359
+ var R;
360
360
  if (h.type === se.UNIVER_SHEET && (s = h), g <= z.Rendered || !s) return;
361
361
  const l = new A(), a = this.getWorkbook(s.unitId);
362
362
  if (!a) return;
363
- o.get(s.unitId) && ((P = o.get(s.unitId)) == null || P.dispose()), o.set(s.unitId, l);
363
+ o.get(s.unitId) && ((R = o.get(s.unitId)) == null || R.dispose()), o.set(s.unitId, l);
364
364
  const n = s.with(x), c = s.with(ve);
365
365
  l.add(this.registerEventHandler(
366
366
  this.Event.Scroll,
@@ -378,7 +378,7 @@ class Ue extends q {
378
378
  this.fireEvent(this.Event.SelectionMoveStart, {
379
379
  workbook: a,
380
380
  worksheet: a.getActiveSheet(),
381
- selections: (C = S == null ? void 0 : S.map((k) => k.range)) != null ? C : []
381
+ selections: (C = S == null ? void 0 : S.map((I) => I.range)) != null ? C : []
382
382
  });
383
383
  })
384
384
  )), l.add(this.registerEventHandler(
@@ -388,7 +388,7 @@ class Ue extends q {
388
388
  this.fireEvent(this.Event.SelectionMoving, {
389
389
  workbook: a,
390
390
  worksheet: a.getActiveSheet(),
391
- selections: (C = S == null ? void 0 : S.map((k) => k.range)) != null ? C : []
391
+ selections: (C = S == null ? void 0 : S.map((I) => I.range)) != null ? C : []
392
392
  });
393
393
  })
394
394
  )), l.add(this.registerEventHandler(
@@ -398,7 +398,7 @@ class Ue extends q {
398
398
  this.fireEvent(this.Event.SelectionMoveEnd, {
399
399
  workbook: a,
400
400
  worksheet: a.getActiveSheet(),
401
- selections: (C = S == null ? void 0 : S.map((k) => k.range)) != null ? C : []
401
+ selections: (C = S == null ? void 0 : S.map((I) => I.range)) != null ? C : []
402
402
  });
403
403
  })
404
404
  )), l.add(this.registerEventHandler(
@@ -408,7 +408,7 @@ class Ue extends q {
408
408
  this.fireEvent(this.Event.SelectionChanged, {
409
409
  workbook: a,
410
410
  worksheet: a.getActiveSheet(),
411
- selections: (C = S == null ? void 0 : S.map((k) => k.range)) != null ? C : []
411
+ selections: (C = S == null ? void 0 : S.map((I) => I.range)) != null ? C : []
412
412
  });
413
413
  })
414
414
  )), s = null, this.disposeWithMe(l);
@@ -426,7 +426,7 @@ class Ue extends q {
426
426
  */
427
427
  _initialize(e) {
428
428
  this._initSheetUIEvent(e), this._initObserverListener(e);
429
- const r = e.get(_);
429
+ const r = e.get(P);
430
430
  this.registerEventHandler(
431
431
  this.Event.BeforeClipboardChange,
432
432
  () => r.beforeCommandExecuted((t) => {
@@ -451,7 +451,7 @@ class Ue extends q {
451
451
  this.Event.BeforeClipboardPaste,
452
452
  () => r.beforeCommandExecuted((t) => {
453
453
  switch (t.id) {
454
- case B.id:
454
+ case T.id:
455
455
  this._beforeClipboardPaste(t.params);
456
456
  break;
457
457
  case Z.id:
@@ -463,7 +463,7 @@ class Ue extends q {
463
463
  this.Event.ClipboardPasted,
464
464
  () => r.onCommandExecuted((t) => {
465
465
  switch (t.id) {
466
- case B.id:
466
+ case T.id:
467
467
  this._clipboardPaste(t.params);
468
468
  break;
469
469
  case Z.id:
@@ -513,7 +513,7 @@ class Ue extends q {
513
513
  _beforeClipboardChange() {
514
514
  const e = this._generateClipboardCopyParam();
515
515
  if (e && (this.fireEvent(this.Event.BeforeClipboardChange, e), e.cancel))
516
- throw new p();
516
+ throw new E();
517
517
  }
518
518
  _clipboardChanged() {
519
519
  const e = this._generateClipboardCopyParam();
@@ -550,12 +550,12 @@ class Ue extends q {
550
550
  _beforeClipboardPaste(e) {
551
551
  const r = this._generateClipboardPasteParam(e);
552
552
  if (r && (this.fireEvent(this.Event.BeforeClipboardPaste, r), r.cancel))
553
- throw new p();
553
+ throw new E();
554
554
  }
555
555
  _clipboardPaste(e) {
556
556
  const r = this._generateClipboardPasteParam(e);
557
557
  if (r && (this.fireEvent(this.Event.ClipboardPasted, r), r.cancel))
558
- throw new p();
558
+ throw new E();
559
559
  }
560
560
  async _beforeClipboardPasteAsync() {
561
561
  if (!X()) {
@@ -564,7 +564,7 @@ class Ue extends q {
564
564
  }
565
565
  const e = await this._generateClipboardPasteParamAsync();
566
566
  if (e && (this.fireEvent(this.Event.BeforeClipboardPaste, e), e.cancel))
567
- throw new p();
567
+ throw new E();
568
568
  }
569
569
  async _clipboardPasteAsync() {
570
570
  if (!X()) {
@@ -573,7 +573,7 @@ class Ue extends q {
573
573
  }
574
574
  const e = await this._generateClipboardPasteParamAsync();
575
575
  if (e && (this.fireEvent(this.Event.ClipboardPasted, e), e.cancel))
576
- throw new p();
576
+ throw new E();
577
577
  }
578
578
  customizeColumnHeader(e) {
579
579
  var g, l;
@@ -583,7 +583,7 @@ class Ue extends q {
583
583
  return;
584
584
  }
585
585
  const t = r == null ? void 0 : r.getId(), i = this._injector.get(v), o = r.getActiveSheet(), s = o.getSheetId(), d = i.getRenderById(t);
586
- d && ((g = e.headerStyle) != null && g.size) && (d.with(I).setColumnHeaderSize(d, s, (l = e.headerStyle) == null ? void 0 : l.size), o == null || o.refreshCanvas()), this._getSheetRenderComponent(t, w.COLUMN).setCustomHeader(e), o == null || o.refreshCanvas();
586
+ d && ((g = e.headerStyle) != null && g.size) && (d.with(_).setColumnHeaderSize(d, s, (l = e.headerStyle) == null ? void 0 : l.size), o == null || o.refreshCanvas()), this._getSheetRenderComponent(t, b.COLUMN).setCustomHeader(e), o == null || o.refreshCanvas();
587
587
  }
588
588
  customizeRowHeader(e) {
589
589
  const r = this.getActiveWorkbook();
@@ -592,22 +592,22 @@ class Ue extends q {
592
592
  return;
593
593
  }
594
594
  const t = r == null ? void 0 : r.getId();
595
- this._getSheetRenderComponent(t, w.ROW).setCustomHeader(e);
595
+ this._getSheetRenderComponent(t, b.ROW).setCustomHeader(e);
596
596
  }
597
597
  registerSheetRowHeaderExtension(e, ...r) {
598
- const t = this._getSheetRenderComponent(e, w.ROW), i = t.register(...r);
598
+ const t = this._getSheetRenderComponent(e, b.ROW), i = t.register(...r);
599
599
  return m(() => {
600
600
  i.dispose(), t.makeDirty(!0);
601
601
  });
602
602
  }
603
603
  registerSheetColumnHeaderExtension(e, ...r) {
604
- const t = this._getSheetRenderComponent(e, w.COLUMN), i = t.register(...r);
604
+ const t = this._getSheetRenderComponent(e, b.COLUMN), i = t.register(...r);
605
605
  return m(() => {
606
606
  i.dispose(), t.makeDirty(!0);
607
607
  });
608
608
  }
609
609
  registerSheetMainExtension(e, ...r) {
610
- const t = this._getSheetRenderComponent(e, w.MAIN), i = t.register(...r);
610
+ const t = this._getSheetRenderComponent(e, b.MAIN), i = t.register(...r);
611
611
  return m(() => {
612
612
  i.dispose(), t.makeDirty(!0);
613
613
  });
@@ -636,7 +636,7 @@ class Ue extends q {
636
636
  return this._injector.createInstance($);
637
637
  }
638
638
  pasteIntoSheet(e, r, t) {
639
- return this._commandService.executeCommand(B.id, { htmlContent: e, textContent: r, files: t });
639
+ return this._commandService.executeCommand(T.id, { htmlContent: e, textContent: r, files: t });
640
640
  }
641
641
  }
642
642
  q.extend(Ue);
@@ -656,11 +656,11 @@ class xe extends te {
656
656
  }
657
657
  customizeColumnHeader(e) {
658
658
  const r = this._workbook.getUnitId();
659
- this._getSheetRenderComponent(r, w.COLUMN).setCustomHeader(e);
659
+ this._getSheetRenderComponent(r, b.COLUMN).setCustomHeader(e);
660
660
  }
661
661
  customizeRowHeader(e) {
662
662
  const r = this._workbook.getUnitId();
663
- this._getSheetRenderComponent(r, w.ROW).setCustomHeader(e);
663
+ this._getSheetRenderComponent(r, b.ROW).setCustomHeader(e);
664
664
  }
665
665
  /**
666
666
  * Get sheet render component from render by unitId and view key.
@@ -691,7 +691,7 @@ class xe extends te {
691
691
  };
692
692
  }
693
693
  onCellClick(e) {
694
- const r = this._injector.get(b);
694
+ const r = this._injector.get(f);
695
695
  return m(
696
696
  r.currentClickedCell$.pipe(u((t) => !!t)).subscribe((t) => {
697
697
  e(t);
@@ -699,25 +699,25 @@ class xe extends te {
699
699
  );
700
700
  }
701
701
  onCellHover(e) {
702
- const r = this._injector.get(b);
702
+ const r = this._injector.get(f);
703
703
  return m(
704
704
  r.currentRichText$.pipe(u((t) => !!t)).subscribe(e)
705
705
  );
706
706
  }
707
707
  onCellPointerDown(e) {
708
- const r = this._injector.get(b);
708
+ const r = this._injector.get(f);
709
709
  return m(
710
710
  r.currentPointerDownCell$.subscribe(e)
711
711
  );
712
712
  }
713
713
  onCellPointerUp(e) {
714
- const r = this._injector.get(b);
714
+ const r = this._injector.get(f);
715
715
  return m(
716
716
  r.currentPointerUpCell$.subscribe(e)
717
717
  );
718
718
  }
719
719
  onCellPointerMove(e) {
720
- const r = this._injector.get(b);
720
+ const r = this._injector.get(f);
721
721
  return m(
722
722
  r.currentCellPosWithEvent$.pipe(u((t) => !!t)).subscribe((t) => {
723
723
  e(t, t.event);
@@ -741,16 +741,18 @@ class xe extends te {
741
741
  );
742
742
  }
743
743
  startEditing() {
744
- return this._injector.get(_).syncExecuteCommand(f.id, {
744
+ const e = this._injector.get(P);
745
+ return this._injector.get(p).isVisible().visible ? !0 : e.syncExecuteCommand(k.id, {
745
746
  eventType: L.Dblclick,
746
747
  unitId: this._workbook.getUnitId(),
747
748
  visible: !0
748
749
  });
749
750
  }
750
751
  async endEditing(e) {
751
- return this._injector.get(_).syncExecuteCommand(f.id, {
752
+ const r = this._injector.get(P);
753
+ return this._injector.get(p).isVisible().visible && r.syncExecuteCommand(k.id, {
752
754
  eventType: L.Keyboard,
753
- keycode: e ? D.ENTER : D.ESC,
755
+ keycode: e ? B.ENTER : B.ESC,
754
756
  visible: !1,
755
757
  unitId: this._workbook.getUnitId()
756
758
  }), await ae(0), !0;
@@ -761,6 +763,9 @@ class xe extends te {
761
763
  abortEditingAsync() {
762
764
  return this.endEditingAsync(!1);
763
765
  }
766
+ isCellEditing() {
767
+ return this._injector.get(p).isVisible().visible;
768
+ }
764
769
  /**
765
770
  * Get scroll state of specified sheet.
766
771
  * @param {string} sheetId - sheet id
@@ -792,12 +797,12 @@ class xe extends te {
792
797
  }
793
798
  }
794
799
  te.extend(xe);
795
- class De extends re {
800
+ class Be extends re {
796
801
  refreshCanvas() {
797
802
  const e = this._injector.get(v), r = this._fWorkbook.id, t = e.getRenderById(r);
798
803
  if (!t)
799
804
  throw new Error(`Render Unit with unitId ${r} not found`);
800
- t.with(I).reCalculate();
805
+ t.with(_).reCalculate();
801
806
  const i = t.mainComponent;
802
807
  if (!i)
803
808
  throw new Error("Main component not found");
@@ -818,7 +823,7 @@ class De extends re {
818
823
  });
819
824
  }
820
825
  zoom(e) {
821
- const r = this._injector.get(_), t = Math.min(Math.max(e, 0.1), 4);
826
+ const r = this._injector.get(P), t = Math.min(Math.max(e, 0.1), 4);
822
827
  return r.executeCommand(j.id, {
823
828
  unitId: this._workbook.getUnitId(),
824
829
  subUnitId: this._worksheet.getSheetId(),
@@ -837,7 +842,7 @@ class De extends re {
837
842
  endRow: 0
838
843
  };
839
844
  if (!t) return i;
840
- const s = t.with(I).getCurrentSkeleton();
845
+ const s = t.with(_).getCurrentSkeleton();
841
846
  if (!s) return i;
842
847
  const d = s == null ? void 0 : s.getVisibleRanges();
843
848
  if (!d) return i;
@@ -848,7 +853,7 @@ class De extends re {
848
853
  }
849
854
  scrollToCell(e, r, t) {
850
855
  const i = this._workbook.getUnitId(), s = this._injector.get(v).getRenderById(i);
851
- return s && (s == null ? void 0 : s.with(be)).scrollToCell(e, r, t), this;
856
+ return s && (s == null ? void 0 : s.with(pe)).scrollToCell(e, r, t), this;
852
857
  }
853
858
  getScrollState() {
854
859
  const e = {
@@ -873,7 +878,7 @@ class De extends re {
873
878
  }
874
879
  getSkeleton() {
875
880
  var r, t;
876
- const e = (r = this._injector.get(v).getRenderById(this._workbook.getUnitId())) == null ? void 0 : r.with(I);
881
+ const e = (r = this._injector.get(v).getRenderById(this._workbook.getUnitId())) == null ? void 0 : r.with(_);
877
882
  return (t = e == null ? void 0 : e.getWorksheetSkeleton(this._worksheet.getSheetId())) == null ? void 0 : t.skeleton;
878
883
  }
879
884
  autoResizeColumn(e) {
@@ -915,12 +920,12 @@ class De extends re {
915
920
  customizeColumnHeader(e) {
916
921
  var d, h;
917
922
  const r = this._workbook.getUnitId(), t = this._worksheet.getSheetId(), o = this._injector.get(v).getRenderById(r);
918
- o && ((d = e.headerStyle) != null && d.size) && o.with(I).setColumnHeaderSize(o, t, (h = e.headerStyle) == null ? void 0 : h.size), this._getSheetRenderComponent(r, w.COLUMN).setCustomHeader(e, t);
923
+ o && ((d = e.headerStyle) != null && d.size) && o.with(_).setColumnHeaderSize(o, t, (h = e.headerStyle) == null ? void 0 : h.size), this._getSheetRenderComponent(r, b.COLUMN).setCustomHeader(e, t);
919
924
  }
920
925
  customizeRowHeader(e) {
921
926
  var d, h;
922
927
  const r = this._workbook.getUnitId(), t = this._worksheet.getSheetId(), o = this._injector.get(v).getRenderById(r);
923
- o && ((d = e.headerStyle) != null && d.size) && o.with(I).setRowHeaderSize(o, t, (h = e.headerStyle) == null ? void 0 : h.size), this._getSheetRenderComponent(r, w.ROW).setCustomHeader(e, t);
928
+ o && ((d = e.headerStyle) != null && d.size) && o.with(_).setRowHeaderSize(o, t, (h = e.headerStyle) == null ? void 0 : h.size), this._getSheetRenderComponent(r, b.ROW).setCustomHeader(e, t);
924
929
  }
925
930
  setColumnHeaderHeight(e) {
926
931
  const r = this._workbook.getUnitId(), t = this._worksheet.getSheetId();
@@ -955,19 +960,19 @@ class De extends re {
955
960
  return s;
956
961
  }
957
962
  }
958
- re.extend(De);
959
- class Te extends ne {
963
+ re.extend(Be);
964
+ class De extends ne {
960
965
  setPermissionDialogVisible(e) {
961
966
  this._permissionService.setShowComponents(e);
962
967
  }
963
968
  }
964
- ne.extend(Te);
965
- class Be extends $ {
969
+ ne.extend(De);
970
+ class Te extends $ {
966
971
  onCellPointerMove(e) {
967
- return m(this._injector.get(b).currentPosition$.subscribe(e));
972
+ return m(this._injector.get(f).currentPosition$.subscribe(e));
968
973
  }
969
974
  onCellPointerOver(e) {
970
- return m(this._injector.get(b).currentCell$.subscribe(e));
975
+ return m(this._injector.get(f).currentCell$.subscribe(e));
971
976
  }
972
977
  onCellDragOver(e) {
973
978
  return m(this._injector.get(M).currentCell$.subscribe(e));
@@ -975,27 +980,27 @@ class Be extends $ {
975
980
  onCellDrop(e) {
976
981
  return m(this._injector.get(M).endCell$.subscribe(e));
977
982
  }
978
- onCellRender(e, r = ce.Style, t = we.DATA_VALIDATION) {
979
- return this._injector.get(Ee).intercept(pe.CELL_CONTENT, {
983
+ onCellRender(e, r = ce.Style, t = be.DATA_VALIDATION) {
984
+ return this._injector.get(we).intercept(Ee.CELL_CONTENT, {
980
985
  effect: r,
981
986
  handler: (i, o, s) => (i && !i.customRender && e && (i.customRender = [...e]), s(i)),
982
987
  priority: t
983
988
  });
984
989
  }
985
990
  onBeforeCellEdit(e) {
986
- return this._injector.get(_).beforeCommandExecuted((r) => {
991
+ return this._injector.get(P).beforeCommandExecuted((r) => {
987
992
  const t = r.params;
988
- r.id === f.id && t.visible && e(t);
993
+ r.id === k.id && t.visible && e(t);
989
994
  });
990
995
  }
991
996
  onAfterCellEdit(e) {
992
- return this._injector.get(_).onCommandExecuted((r) => {
997
+ return this._injector.get(P).onCommandExecuted((r) => {
993
998
  const t = r.params;
994
- r.id === f.id && !t.visible && e(t);
999
+ r.id === k.id && !t.visible && e(t);
995
1000
  });
996
1001
  }
997
1002
  }
998
- $.extend(Be);
1003
+ $.extend(Te);
999
1004
  const H = {
1000
1005
  CellClicked: "CellClicked",
1001
1006
  CellPointerDown: "CellPointerDown",
@@ -1105,7 +1110,7 @@ he.extend(Ae);
1105
1110
  class je extends ie {
1106
1111
  getCell() {
1107
1112
  var d;
1108
- const e = this._injector.get(v), r = this._injector.get(U), t = this._workbook.getUnitId(), i = this._worksheet.getSheetId(), o = e.getRenderById(t), s = (d = o == null ? void 0 : o.with(I).getSkeletonParam(i)) == null ? void 0 : d.skeleton;
1113
+ const e = this._injector.get(v), r = this._injector.get(U), t = this._workbook.getUnitId(), i = this._worksheet.getSheetId(), o = e.getRenderById(t), s = (d = o == null ? void 0 : o.with(_).getSkeletonParam(i)) == null ? void 0 : d.skeleton;
1109
1114
  if (!s)
1110
1115
  throw r.error("[Facade]: `FRange.getCell` can only be called in current worksheet"), new Error("`FRange.getCell` can only be called in current worksheet");
1111
1116
  return s.getCellWithCoordByIndex(this._range.startRow, this._range.startColumn);
@@ -1189,8 +1194,8 @@ class je extends ie {
1189
1194
  }
1190
1195
  }
1191
1196
  ie.extend(je);
1192
- function G(E, e) {
1193
- const { componentKey: r, isVue3: t } = E;
1197
+ function G(w, e) {
1198
+ const { componentKey: r, isVue3: t } = w;
1194
1199
  let i;
1195
1200
  const o = new A();
1196
1201
  return typeof r == "string" ? i = r : (i = `External_${de(6)}`, o.add(e.register(i, r, { framework: t ? "vue3" : "react" }))), {