@univerjs/sheets-ui 1.0.0-beta.0 → 1.0.0-beta.1
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/cjs/facade.js +5 -5
- package/lib/cjs/index.js +1441 -1525
- package/lib/cjs/locale/ar-SA.js +14 -133
- package/lib/cjs/locale/ca-ES.js +14 -133
- package/lib/cjs/locale/de-DE.js +14 -133
- package/lib/cjs/locale/en-US.js +14 -133
- package/lib/cjs/locale/es-ES.js +14 -133
- package/lib/cjs/locale/fa-IR.js +14 -133
- package/lib/cjs/locale/fr-FR.js +14 -133
- package/lib/cjs/locale/id-ID.js +14 -133
- package/lib/cjs/locale/it-IT.js +14 -133
- package/lib/cjs/locale/ja-JP.js +14 -133
- package/lib/cjs/locale/ko-KR.js +14 -133
- package/lib/cjs/locale/pl-PL.js +14 -133
- package/lib/cjs/locale/pt-BR.js +14 -133
- package/lib/cjs/locale/ru-RU.js +14 -133
- package/lib/cjs/locale/sk-SK.js +14 -133
- package/lib/cjs/locale/vi-VN.js +14 -133
- package/lib/cjs/locale/zh-CN.js +14 -133
- package/lib/cjs/locale/zh-HK.js +14 -133
- package/lib/cjs/locale/zh-TW.js +14 -133
- package/lib/es/facade.js +6 -6
- package/lib/es/index.js +1446 -1531
- package/lib/es/locale/ar-SA.js +14 -133
- package/lib/es/locale/ca-ES.js +14 -133
- package/lib/es/locale/de-DE.js +14 -133
- package/lib/es/locale/en-US.js +14 -133
- package/lib/es/locale/es-ES.js +14 -133
- package/lib/es/locale/fa-IR.js +14 -133
- package/lib/es/locale/fr-FR.js +14 -133
- package/lib/es/locale/id-ID.js +14 -133
- package/lib/es/locale/it-IT.js +14 -133
- package/lib/es/locale/ja-JP.js +14 -133
- package/lib/es/locale/ko-KR.js +14 -133
- package/lib/es/locale/pl-PL.js +14 -133
- package/lib/es/locale/pt-BR.js +14 -133
- package/lib/es/locale/ru-RU.js +14 -133
- package/lib/es/locale/sk-SK.js +14 -133
- package/lib/es/locale/vi-VN.js +14 -133
- package/lib/es/locale/zh-CN.js +14 -133
- package/lib/es/locale/zh-HK.js +14 -133
- package/lib/es/locale/zh-TW.js +14 -133
- package/lib/facade.js +6 -6
- package/lib/index.css +54 -87
- package/lib/index.js +1446 -1531
- package/lib/locale/ar-SA.js +14 -133
- package/lib/locale/ca-ES.js +14 -133
- package/lib/locale/de-DE.js +14 -133
- package/lib/locale/en-US.js +14 -133
- package/lib/locale/es-ES.js +14 -133
- package/lib/locale/fa-IR.js +14 -133
- package/lib/locale/fr-FR.js +14 -133
- package/lib/locale/id-ID.js +14 -133
- package/lib/locale/it-IT.js +14 -133
- package/lib/locale/ja-JP.js +14 -133
- package/lib/locale/ko-KR.js +14 -133
- package/lib/locale/pl-PL.js +14 -133
- package/lib/locale/pt-BR.js +14 -133
- package/lib/locale/ru-RU.js +14 -133
- package/lib/locale/sk-SK.js +14 -133
- package/lib/locale/vi-VN.js +14 -133
- package/lib/locale/zh-CN.js +14 -133
- package/lib/locale/zh-HK.js +14 -133
- package/lib/locale/zh-TW.js +14 -133
- package/lib/types/controllers/editor/data-sync.controller.d.ts +4 -2
- package/lib/types/controllers/force-string-alert-render.controller.d.ts +9 -4
- package/lib/types/controllers/render-controllers/scroll.render-controller.d.ts +6 -0
- package/lib/types/controllers/utils/range-tools.d.ts +2 -0
- package/lib/types/embed-tab-anchor.d.ts +2 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/locale/en-US.d.ts +1 -106
- package/lib/types/menu/header-menu-shape.d.ts +3 -3
- package/lib/types/services/cell-alert-manager.service.d.ts +6 -0
- package/lib/types/services/cell-popup-manager.service.d.ts +6 -7
- package/lib/types/services/sheet-embed-runtime.service.d.ts +2 -1
- package/lib/types/views/CellPopup.d.ts +2 -1
- package/lib/types/views/hook.d.ts +0 -4
- package/lib/types/views/status-bar/CopyableStatisticItem.d.ts +0 -2
- package/lib/types/views/status-bar/StatusBar.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +14 -11
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +13 -13
- package/lib/types/services/sheet-loading-render.service.d.ts +0 -65
package/lib/cjs/facade.js
CHANGED
|
@@ -150,13 +150,11 @@ var FUniverSheetsUIMixin = class extends _univerjs_core_facade.FUniver {
|
|
|
150
150
|
_initObserverListener(injector) {
|
|
151
151
|
const renderManagerService = injector.get(_univerjs_engine_render.IRenderManagerService);
|
|
152
152
|
const lifeCycleService = injector.get(_univerjs_core.LifecycleService);
|
|
153
|
+
const univerInstanceService = injector.get(_univerjs_core.IUniverInstanceService);
|
|
153
154
|
const lifecycle$Disposable = new _univerjs_core.DisposableCollection();
|
|
154
|
-
|
|
155
|
-
if (lifecycle !== _univerjs_core.LifecycleStages.Rendered) return;
|
|
155
|
+
const registerPointerEventListeners = () => {
|
|
156
156
|
const hoverManagerService = injector.get(_univerjs_sheets_ui.HoverManagerService);
|
|
157
157
|
const dragManagerService = injector.get(_univerjs_sheets_ui.DragManagerService);
|
|
158
|
-
if (!hoverManagerService) return;
|
|
159
|
-
lifecycle$Disposable.dispose();
|
|
160
158
|
lifecycle$Disposable.add(this.registerEventHandler(this.Event.CellClicked, () => {
|
|
161
159
|
var _hoverManagerService$;
|
|
162
160
|
return (_hoverManagerService$ = hoverManagerService.currentClickedCell$) === null || _hoverManagerService$ === void 0 ? void 0 : _hoverManagerService$.pipe((0, rxjs.filter)((cell) => !!cell)).subscribe((cell) => {
|
|
@@ -437,7 +435,9 @@ var FUniverSheetsUIMixin = class extends _univerjs_core_facade.FUniver {
|
|
|
437
435
|
});
|
|
438
436
|
}));
|
|
439
437
|
this.disposeWithMe(lifecycle$Disposable);
|
|
440
|
-
}
|
|
438
|
+
};
|
|
439
|
+
const sheetAvailable$ = univerInstanceService.getAllUnitsForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).length > 0 ? (0, rxjs.of)(true) : univerInstanceService.getTypeOfUnitAdded$(_univerjs_core.UniverInstanceType.UNIVER_SHEET).pipe((0, rxjs.take)(1));
|
|
440
|
+
this.disposeWithMe((0, rxjs.combineLatest)([sheetAvailable$, lifeCycleService.lifecycle$]).pipe((0, rxjs.filter)(([, lifecycle]) => lifecycle >= _univerjs_core.LifecycleStages.Rendered), (0, rxjs.take)(1)).subscribe(() => registerPointerEventListeners()));
|
|
441
441
|
let sheetRenderUnit;
|
|
442
442
|
const combined$ = (0, rxjs.combineLatest)([renderManagerService.created$, lifeCycleService.lifecycle$]);
|
|
443
443
|
const combined$Disposable = new _univerjs_core.DisposableCollection();
|