@univerjs/sheets-ui 1.0.0-alpha.2 → 1.0.0-alpha.3

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.
Files changed (113) hide show
  1. package/lib/cjs/facade.js +47 -37
  2. package/lib/cjs/index.js +1161 -272
  3. package/lib/cjs/locale/ar-SA.js +5 -0
  4. package/lib/cjs/locale/ca-ES.js +5 -0
  5. package/lib/cjs/locale/de-DE.js +5 -0
  6. package/lib/cjs/locale/en-US.js +5 -0
  7. package/lib/cjs/locale/es-ES.js +6 -1
  8. package/lib/cjs/locale/fa-IR.js +5 -0
  9. package/lib/cjs/locale/fr-FR.js +5 -0
  10. package/lib/cjs/locale/id-ID.js +5 -0
  11. package/lib/cjs/locale/it-IT.js +5 -0
  12. package/lib/cjs/locale/ja-JP.js +5 -0
  13. package/lib/cjs/locale/ko-KR.js +5 -0
  14. package/lib/cjs/locale/pl-PL.js +5 -0
  15. package/lib/cjs/locale/pt-BR.js +5 -0
  16. package/lib/cjs/locale/ru-RU.js +5 -0
  17. package/lib/cjs/locale/sk-SK.js +5 -0
  18. package/lib/cjs/locale/vi-VN.js +5 -0
  19. package/lib/cjs/locale/zh-CN.js +5 -0
  20. package/lib/cjs/locale/zh-HK.js +5 -0
  21. package/lib/cjs/locale/zh-TW.js +5 -0
  22. package/lib/es/facade.js +47 -37
  23. package/lib/es/index.js +1140 -247
  24. package/lib/es/locale/ar-SA.js +5 -0
  25. package/lib/es/locale/ca-ES.js +5 -0
  26. package/lib/es/locale/de-DE.js +5 -0
  27. package/lib/es/locale/en-US.js +5 -0
  28. package/lib/es/locale/es-ES.js +6 -1
  29. package/lib/es/locale/fa-IR.js +5 -0
  30. package/lib/es/locale/fr-FR.js +5 -0
  31. package/lib/es/locale/id-ID.js +5 -0
  32. package/lib/es/locale/it-IT.js +5 -0
  33. package/lib/es/locale/ja-JP.js +5 -0
  34. package/lib/es/locale/ko-KR.js +5 -0
  35. package/lib/es/locale/pl-PL.js +5 -0
  36. package/lib/es/locale/pt-BR.js +5 -0
  37. package/lib/es/locale/ru-RU.js +5 -0
  38. package/lib/es/locale/sk-SK.js +5 -0
  39. package/lib/es/locale/vi-VN.js +5 -0
  40. package/lib/es/locale/zh-CN.js +5 -0
  41. package/lib/es/locale/zh-HK.js +5 -0
  42. package/lib/es/locale/zh-TW.js +5 -0
  43. package/lib/facade.js +47 -37
  44. package/lib/index.css +4 -0
  45. package/lib/index.js +1140 -247
  46. package/lib/locale/ar-SA.js +5 -0
  47. package/lib/locale/ca-ES.js +5 -0
  48. package/lib/locale/de-DE.js +5 -0
  49. package/lib/locale/en-US.js +5 -0
  50. package/lib/locale/es-ES.js +6 -1
  51. package/lib/locale/fa-IR.js +5 -0
  52. package/lib/locale/fr-FR.js +5 -0
  53. package/lib/locale/id-ID.js +5 -0
  54. package/lib/locale/it-IT.js +5 -0
  55. package/lib/locale/ja-JP.js +5 -0
  56. package/lib/locale/ko-KR.js +5 -0
  57. package/lib/locale/pl-PL.js +5 -0
  58. package/lib/locale/pt-BR.js +5 -0
  59. package/lib/locale/ru-RU.js +5 -0
  60. package/lib/locale/sk-SK.js +5 -0
  61. package/lib/locale/vi-VN.js +5 -0
  62. package/lib/locale/zh-CN.js +5 -0
  63. package/lib/locale/zh-HK.js +5 -0
  64. package/lib/locale/zh-TW.js +5 -0
  65. package/lib/types/commands/commands/set-scroll.command.d.ts +3 -0
  66. package/lib/types/controllers/editor/editing.render-controller.d.ts +1 -0
  67. package/lib/types/controllers/editor/formula-editor.controller.d.ts +1 -0
  68. package/lib/types/controllers/render-controllers/contextmenu.render-controller.d.ts +7 -2
  69. package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +7 -1
  70. package/lib/types/controllers/render-controllers/header-unhide.render-controller.d.ts +0 -1
  71. package/lib/types/embed-tab-anchor.d.ts +23 -0
  72. package/lib/types/facade/f-univer.d.ts +1 -0
  73. package/lib/types/index.d.ts +16 -3
  74. package/lib/types/locale/en-US.d.ts +5 -0
  75. package/lib/types/services/canvas-pop-manager.service.d.ts +9 -0
  76. package/lib/types/services/cell-popup-manager.service.d.ts +1 -0
  77. package/lib/types/services/editor/cell-editor-resize.service.d.ts +4 -1
  78. package/lib/types/services/editor-bridge.service.d.ts +2 -0
  79. package/lib/types/services/print-interceptor.service.d.ts +8 -0
  80. package/lib/types/services/selection/base-selection-render.service.d.ts +1 -0
  81. package/lib/types/services/sheet-embed-integration.service.d.ts +126 -0
  82. package/lib/types/services/sheet-embed-runtime.service.d.ts +26 -0
  83. package/lib/types/services/sheet-host-chrome-override.service.d.ts +25 -0
  84. package/lib/types/services/sheet-skeleton-manager.service.d.ts +2 -0
  85. package/lib/types/views/border-panel/interface.d.ts +63 -2
  86. package/lib/types/views/editor-container/EditorContainer.d.ts +7 -5
  87. package/lib/types/{menu/mobile-menu.d.ts → views/editor-container/EditorContainer.spec.d.ts} +1 -1
  88. package/lib/types/views/editor-container/focus-editor.d.ts +25 -0
  89. package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +2 -1
  90. package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/sheet-tab-drag-sort.d.ts +1 -0
  91. package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +2 -1
  92. package/lib/umd/facade.js +1 -1
  93. package/lib/umd/index.js +12 -12
  94. package/lib/umd/locale/ar-SA.js +1 -1
  95. package/lib/umd/locale/ca-ES.js +1 -1
  96. package/lib/umd/locale/de-DE.js +1 -1
  97. package/lib/umd/locale/en-US.js +1 -1
  98. package/lib/umd/locale/es-ES.js +1 -1
  99. package/lib/umd/locale/fa-IR.js +1 -1
  100. package/lib/umd/locale/fr-FR.js +1 -1
  101. package/lib/umd/locale/id-ID.js +1 -1
  102. package/lib/umd/locale/it-IT.js +1 -1
  103. package/lib/umd/locale/ja-JP.js +1 -1
  104. package/lib/umd/locale/ko-KR.js +1 -1
  105. package/lib/umd/locale/pl-PL.js +1 -1
  106. package/lib/umd/locale/pt-BR.js +1 -1
  107. package/lib/umd/locale/ru-RU.js +1 -1
  108. package/lib/umd/locale/sk-SK.js +1 -1
  109. package/lib/umd/locale/vi-VN.js +1 -1
  110. package/lib/umd/locale/zh-CN.js +1 -1
  111. package/lib/umd/locale/zh-HK.js +1 -1
  112. package/lib/umd/locale/zh-TW.js +1 -1
  113. package/package.json +15 -15
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "الحدود الداخلية",
80
80
  borderHorizontal: "الحدود الأفقية",
81
81
  borderVertical: "الحدود العمودية",
82
+ borderTlbr: "حد قطري لأسفل",
83
+ borderTlbcTlmr: "حد قطري مزدوج لأسفل",
84
+ borderTlbrTlbcTlmr: "حد قطري ثلاثي لأسفل",
85
+ borderBlTr: "حد قطري لأعلى",
86
+ borderMltrBctr: "حد قطري مزدوج لأعلى",
82
87
  borderColor: "لون الحدود",
83
88
  borderSize: "حجم الحدود",
84
89
  borderType: "نوع الحدود"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "voraInterior",
80
80
  borderHorizontal: "voraHoritzontal",
81
81
  borderVertical: "voraVertical",
82
+ borderTlbr: "Vora diagonal descendent",
83
+ borderTlbcTlmr: "Vora diagonal descendent doble",
84
+ borderTlbrTlbcTlmr: "Vora diagonal descendent triple",
85
+ borderBlTr: "Vora diagonal ascendent",
86
+ borderMltrBctr: "Vora diagonal ascendent doble",
82
87
  borderColor: "colorVora",
83
88
  borderSize: "gruixVora",
84
89
  borderType: "tipusVora"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "Rahmen innen",
80
80
  borderHorizontal: "Horizontale Rahmenlinie",
81
81
  borderVertical: "Vertikale Rahmenlinie",
82
+ borderTlbr: "Diagonale Linie abwärts",
83
+ borderTlbcTlmr: "Doppelte diagonale Linie abwärts",
84
+ borderTlbrTlbcTlmr: "Dreifache diagonale Linie abwärts",
85
+ borderBlTr: "Diagonale Linie aufwärts",
86
+ borderMltrBctr: "Doppelte diagonale Linie aufwärts",
82
87
  borderColor: "Rahmenfarbe",
83
88
  borderSize: "Rahmenstärke",
84
89
  borderType: "Rahmentyp"
@@ -94,6 +94,11 @@ const locale = { "sheets-ui": {
94
94
  borderInside: "borderInside",
95
95
  borderHorizontal: "borderHorizontal",
96
96
  borderVertical: "borderVertical",
97
+ borderTlbr: "Diagonal down border",
98
+ borderTlbcTlmr: "Double diagonal down border",
99
+ borderTlbrTlbcTlmr: "Triple diagonal down border",
100
+ borderBlTr: "Diagonal up border",
101
+ borderMltrBctr: "Double diagonal up border",
97
102
  borderColor: "borderColor",
98
103
  borderSize: "borderSize",
99
104
  borderType: "borderType"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "bordeInterior",
80
80
  borderHorizontal: "bordeHorizontal",
81
81
  borderVertical: "bordeVertical",
82
+ borderTlbr: "Borde diagonal descendente",
83
+ borderTlbcTlmr: "Borde diagonal descendente doble",
84
+ borderTlbrTlbcTlmr: "Borde diagonal descendente triple",
85
+ borderBlTr: "Borde diagonal ascendente",
86
+ borderMltrBctr: "Borde diagonal ascendente doble",
82
87
  borderColor: "colorBorde",
83
88
  borderSize: "grosorBorde",
84
89
  borderType: "tipoBorde"
@@ -376,7 +381,7 @@ const locale = { "sheets-ui": {
376
381
  iCanNotEdit: "No puedo editar",
377
382
  iCanView: "Puedo ver",
378
383
  iCanNotView: "No puedo ver",
379
- emptyRangeError: "El rango не puede estar vacío",
384
+ emptyRangeError: "El rango no puede estar vacío",
380
385
  rangeOverlapError: "El rango no puede superponerse",
381
386
  rangeOverlapOverPermissionError: "El rango no puede superponerse con el rango que tiene el mismo permiso",
382
387
  InsertHyperlink: "Insertar hipervínculo",
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "حاشیه داخلی",
80
80
  borderHorizontal: "حاشیه افقی",
81
81
  borderVertical: "حاشیه عمودی",
82
+ borderTlbr: "حاشیه قطری رو به پایین",
83
+ borderTlbcTlmr: "حاشیه قطری دوتایی رو به پایین",
84
+ borderTlbrTlbcTlmr: "حاشیه قطری سه‌تایی رو به پایین",
85
+ borderBlTr: "حاشیه قطری رو به بالا",
86
+ borderMltrBctr: "حاشیه قطری دوتایی رو به بالا",
82
87
  borderColor: "رنگ حاشیه",
83
88
  borderSize: "اندازه حاشیه",
84
89
  borderType: "نوع حاشیه"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "bordureIntérieure",
80
80
  borderHorizontal: "bordureHorizontale",
81
81
  borderVertical: "bordureVerticale",
82
+ borderTlbr: "Bordure diagonale descendante",
83
+ borderTlbcTlmr: "Double bordure diagonale descendante",
84
+ borderTlbrTlbcTlmr: "Triple bordure diagonale descendante",
85
+ borderBlTr: "Bordure diagonale montante",
86
+ borderMltrBctr: "Double bordure diagonale montante",
82
87
  borderColor: "couleurDeBordure",
83
88
  borderSize: "tailleDeBordure",
84
89
  borderType: "typeDeBordure"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "Batas dalam",
80
80
  borderHorizontal: "Batas horizontal",
81
81
  borderVertical: "Batas vertikal",
82
+ borderTlbr: "Batas diagonal turun",
83
+ borderTlbcTlmr: "Batas diagonal turun ganda",
84
+ borderTlbrTlbcTlmr: "Batas diagonal turun rangkap tiga",
85
+ borderBlTr: "Batas diagonal naik",
86
+ borderMltrBctr: "Batas diagonal naik ganda",
82
87
  borderColor: "Warna batas",
83
88
  borderSize: "Ukuran batas",
84
89
  borderType: "Jenis batas"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "bordoInterno",
80
80
  borderHorizontal: "bordoOrizzontale",
81
81
  borderVertical: "bordoVerticale",
82
+ borderTlbr: "Bordo diagonale discendente",
83
+ borderTlbcTlmr: "Bordo diagonale discendente doppio",
84
+ borderTlbrTlbcTlmr: "Bordo diagonale discendente triplo",
85
+ borderBlTr: "Bordo diagonale ascendente",
86
+ borderMltrBctr: "Bordo diagonale ascendente doppio",
82
87
  borderColor: "coloreBordo",
83
88
  borderSize: "spessoreBordo",
84
89
  borderType: "tipoBordo"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "内側",
80
80
  borderHorizontal: "横罫線",
81
81
  borderVertical: "縦罫線",
82
+ borderTlbr: "右下がり罫線",
83
+ borderTlbcTlmr: "右下がり二重斜線",
84
+ borderTlbrTlbcTlmr: "右下がり三重斜線",
85
+ borderBlTr: "右上がり罫線",
86
+ borderMltrBctr: "右上がり二重斜線",
82
87
  borderColor: "罫線の色",
83
88
  borderSize: "罫線の太さ",
84
89
  borderType: "罫線の種類"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "내부",
80
80
  borderHorizontal: "가로",
81
81
  borderVertical: "세로",
82
+ borderTlbr: "오른쪽 아래 대각선 테두리",
83
+ borderTlbcTlmr: "오른쪽 아래 이중 대각선 테두리",
84
+ borderTlbrTlbcTlmr: "오른쪽 아래 삼중 대각선 테두리",
85
+ borderBlTr: "오른쪽 위 대각선 테두리",
86
+ borderMltrBctr: "오른쪽 위 이중 대각선 테두리",
82
87
  borderColor: "테두리 색상",
83
88
  borderSize: "테두리 크기",
84
89
  borderType: "테두리 유형"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "Wewnątrz",
80
80
  borderHorizontal: "Poziome",
81
81
  borderVertical: "Pionowe",
82
+ borderTlbr: "Ukośne obramowanie w dół",
83
+ borderTlbcTlmr: "Podwójne ukośne obramowanie w dół",
84
+ borderTlbrTlbcTlmr: "Potrójne ukośne obramowanie w dół",
85
+ borderBlTr: "Ukośne obramowanie w górę",
86
+ borderMltrBctr: "Podwójne ukośne obramowanie w górę",
82
87
  borderColor: "Kolor obramowania",
83
88
  borderSize: "Rozmiar obramowania",
84
89
  borderType: "Typ obramowania"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "borda interna",
80
80
  borderHorizontal: "borda horizontal",
81
81
  borderVertical: "borda vertical",
82
+ borderTlbr: "Borda diagonal descendente",
83
+ borderTlbcTlmr: "Borda diagonal descendente dupla",
84
+ borderTlbrTlbcTlmr: "Borda diagonal descendente tripla",
85
+ borderBlTr: "Borda diagonal ascendente",
86
+ borderMltrBctr: "Borda diagonal ascendente dupla",
82
87
  borderColor: "cor da borda",
83
88
  borderSize: "tamanho da borda",
84
89
  borderType: "tipo de borda"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "внутренняя граница",
80
80
  borderHorizontal: "горизонтальная граница",
81
81
  borderVertical: "вертикальная граница",
82
+ borderTlbr: "Диагональная граница вниз",
83
+ borderTlbcTlmr: "Двойная диагональная граница вниз",
84
+ borderTlbrTlbcTlmr: "Тройная диагональная граница вниз",
85
+ borderBlTr: "Диагональная граница вверх",
86
+ borderMltrBctr: "Двойная диагональная граница вверх",
82
87
  borderColor: "цвет границы",
83
88
  borderSize: "размер границы",
84
89
  borderType: "тип границы"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "vnútornéOhraničenie",
80
80
  borderHorizontal: "vodorovnéOhraničenie",
81
81
  borderVertical: "zvisléOhraničenie",
82
+ borderTlbr: "Diagonálne orámovanie nadol",
83
+ borderTlbcTlmr: "Dvojité diagonálne orámovanie nadol",
84
+ borderTlbrTlbcTlmr: "Trojité diagonálne orámovanie nadol",
85
+ borderBlTr: "Diagonálne orámovanie nahor",
86
+ borderMltrBctr: "Dvojité diagonálne orámovanie nahor",
82
87
  borderColor: "farbaOhraničenia",
83
88
  borderSize: "hrúbkaOhraničenia",
84
89
  borderType: "typOhraničenia"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "Bên trong",
80
80
  borderHorizontal: "Đường ngang bên trong",
81
81
  borderVertical: "Đường dọc bên trong",
82
+ borderTlbr: "Đường viền chéo xuống",
83
+ borderTlbcTlmr: "Đường viền chéo xuống kép",
84
+ borderTlbrTlbcTlmr: "Đường viền chéo xuống ba",
85
+ borderBlTr: "Đường viền chéo lên",
86
+ borderMltrBctr: "Đường viền chéo lên kép",
82
87
  borderColor: "Màu viền",
83
88
  borderSize: "Độ dày viền",
84
89
  borderType: "Loại đường viền"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "内侧",
80
80
  borderHorizontal: "内侧横线",
81
81
  borderVertical: "内侧竖线",
82
+ borderTlbr: "右下斜线",
83
+ borderTlbcTlmr: "右下双斜线",
84
+ borderTlbrTlbcTlmr: "右下三斜线",
85
+ borderBlTr: "右上斜线",
86
+ borderMltrBctr: "右上双斜线",
82
87
  borderColor: "边框颜色",
83
88
  borderSize: "边框粗细",
84
89
  borderType: "边框线类型"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "內側",
80
80
  borderHorizontal: "內側水平框線",
81
81
  borderVertical: "內側垂直框線",
82
+ borderTlbr: "右下斜線",
83
+ borderTlbcTlmr: "右下雙斜線",
84
+ borderTlbrTlbcTlmr: "右下三斜線",
85
+ borderBlTr: "右上斜線",
86
+ borderMltrBctr: "右上雙斜線",
82
87
  borderColor: "邊框顏色",
83
88
  borderSize: "邊框粗細",
84
89
  borderType: "邊框線類型"
@@ -79,6 +79,11 @@ const locale = { "sheets-ui": {
79
79
  borderInside: "內側",
80
80
  borderHorizontal: "內側水平框線",
81
81
  borderVertical: "內側垂直框線",
82
+ borderTlbr: "右下斜線",
83
+ borderTlbcTlmr: "右下雙斜線",
84
+ borderTlbrTlbcTlmr: "右下三斜線",
85
+ borderBlTr: "右上斜線",
86
+ borderMltrBctr: "右上雙斜線",
82
87
  borderColor: "邊框顏色",
83
88
  borderSize: "邊框粗細",
84
89
  borderType: "邊框線類型"
package/lib/facade.js CHANGED
@@ -448,7 +448,7 @@ var FUniverSheetsUIMixin = class extends FUniver {
448
448
  if (!workbook) return;
449
449
  combined$Disposable.dispose();
450
450
  const scrollManagerService = sheetRenderUnit.with(SheetScrollManagerService);
451
- const selectionService = sheetRenderUnit.with(SheetsSelectionsService);
451
+ const selectionService = this._tryGetRenderDependency(sheetRenderUnit, SheetsSelectionsService);
452
452
  combined$Disposable.add(this.registerEventHandler(this.Event.Scroll, () => scrollManagerService.validViewportScrollInfo$.subscribe((params) => {
453
453
  if (!params) return;
454
454
  const eventParams = {
@@ -458,46 +458,56 @@ var FUniverSheetsUIMixin = class extends FUniver {
458
458
  };
459
459
  this.fireEvent(this.Event.Scroll, eventParams);
460
460
  })));
461
- combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoveStart, () => selectionService.selectionMoveStart$.subscribe((selections) => {
462
- var _selections$map;
463
- const eventParams = {
464
- workbook,
465
- worksheet: workbook.getActiveSheet(),
466
- selections: (_selections$map = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map !== void 0 ? _selections$map : []
467
- };
468
- this.fireEvent(this.Event.SelectionMoveStart, eventParams);
469
- })));
470
- combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoving, () => selectionService.selectionMoving$.subscribe((selections) => {
471
- var _selections$map2;
472
- const eventParams = {
473
- workbook,
474
- worksheet: workbook.getActiveSheet(),
475
- selections: (_selections$map2 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map2 !== void 0 ? _selections$map2 : []
476
- };
477
- this.fireEvent(this.Event.SelectionMoving, eventParams);
478
- })));
479
- combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoveEnd, () => selectionService.selectionMoveEnd$.subscribe((selections) => {
480
- var _selections$map3;
481
- const eventParams = {
482
- workbook,
483
- worksheet: workbook.getActiveSheet(),
484
- selections: (_selections$map3 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map3 !== void 0 ? _selections$map3 : []
485
- };
486
- this.fireEvent(this.Event.SelectionMoveEnd, eventParams);
487
- })));
488
- combined$Disposable.add(this.registerEventHandler(this.Event.SelectionChanged, () => selectionService.selectionChanged$.subscribe((selections) => {
489
- var _selections$map4;
490
- const eventParams = {
491
- workbook,
492
- worksheet: workbook.getActiveSheet(),
493
- selections: (_selections$map4 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map4 !== void 0 ? _selections$map4 : []
494
- };
495
- this.fireEvent(this.Event.SelectionChanged, eventParams);
496
- })));
461
+ if (selectionService) {
462
+ combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoveStart, () => selectionService.selectionMoveStart$.subscribe((selections) => {
463
+ var _selections$map;
464
+ const eventParams = {
465
+ workbook,
466
+ worksheet: workbook.getActiveSheet(),
467
+ selections: (_selections$map = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map !== void 0 ? _selections$map : []
468
+ };
469
+ this.fireEvent(this.Event.SelectionMoveStart, eventParams);
470
+ })));
471
+ combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoving, () => selectionService.selectionMoving$.subscribe((selections) => {
472
+ var _selections$map2;
473
+ const eventParams = {
474
+ workbook,
475
+ worksheet: workbook.getActiveSheet(),
476
+ selections: (_selections$map2 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map2 !== void 0 ? _selections$map2 : []
477
+ };
478
+ this.fireEvent(this.Event.SelectionMoving, eventParams);
479
+ })));
480
+ combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoveEnd, () => selectionService.selectionMoveEnd$.subscribe((selections) => {
481
+ var _selections$map3;
482
+ const eventParams = {
483
+ workbook,
484
+ worksheet: workbook.getActiveSheet(),
485
+ selections: (_selections$map3 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map3 !== void 0 ? _selections$map3 : []
486
+ };
487
+ this.fireEvent(this.Event.SelectionMoveEnd, eventParams);
488
+ })));
489
+ combined$Disposable.add(this.registerEventHandler(this.Event.SelectionChanged, () => selectionService.selectionChanged$.subscribe((selections) => {
490
+ var _selections$map4;
491
+ const eventParams = {
492
+ workbook,
493
+ worksheet: workbook.getActiveSheet(),
494
+ selections: (_selections$map4 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map4 !== void 0 ? _selections$map4 : []
495
+ };
496
+ this.fireEvent(this.Event.SelectionChanged, eventParams);
497
+ })));
498
+ }
497
499
  sheetRenderUnit = null;
498
500
  this.disposeWithMe(combined$Disposable);
499
501
  }));
500
502
  }
503
+ _tryGetRenderDependency(render, dependency) {
504
+ try {
505
+ return render.with(dependency);
506
+ } catch (error) {
507
+ if (error instanceof Error && (error.message.includes("DependencyNotFoundError") || error.message.includes("Cannot find"))) return null;
508
+ throw error;
509
+ }
510
+ }
501
511
  /**
502
512
  * @ignore
503
513
  */
package/lib/index.css CHANGED
@@ -69,6 +69,10 @@
69
69
  z-index: 10;
70
70
  }
71
71
 
72
+ .univer-z-40 {
73
+ z-index: 40;
74
+ }
75
+
72
76
  .univer-z-\[1001\] {
73
77
  z-index: 1001;
74
78
  }