@univerjs-pro/collaboration-client-ui 1.0.0-alpha.3 → 1.0.0-alpha.4
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 +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +87 -0
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/snapshot-loading/snapshot-loading.controller.d.ts +36 -0
- package/lib/types/locale/en-US.d.ts +5 -0
- package/lib/types/views/components/SnapshotLoadingTimeout.d.ts +15 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- 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 +22 -22
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x99c3(_0x18ae46,_0xee0109){_0x18ae46=_0x18ae46-0x112;const _0x2dc78b=_0x2dc7();let _0x99c36d=_0x2dc78b[_0x18ae46];return _0x99c36d;}function _0x2dc7(){const _0x197672=['伺服器未回應協作請求,您的編輯將儲存在本機。','點擊重新連線','同步中...','資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','835610qpGEhm','正在擷取伺服器資料...','8ZjsWYw','770664ZjckgO','本機檔案','已離線,編輯將儲存在本機','7UurSdx','公式計算已開始。','5184423tKYYTP','協作衝突','連線失敗,將在稍後重試連線。','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','7217976ppYFas','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','已同步','390XKVBqp','1913468ckiAuv','協作房間已滿,您的編輯將暫存於本機。','190cNTJIy','公式計算佇列已滿,正在等待可用資源...','604582OfGXtL','目前無法執行公式計算,請稍後重試。','編輯衝突','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','25505oxIsGt'];_0x2dc7=function(){return _0x197672;};return _0x2dc7();}const _0x462113=_0x99c3;(function(_0xad1fe5,_0x588214){const _0x10c4d2=_0x99c3,_0x5016c7=_0xad1fe5();while(!![]){try{const _0x83f80f=-parseInt(_0x10c4d2(0x121))/0x1+parseInt(_0x10c4d2(0x114))/0x2+-parseInt(_0x10c4d2(0x124))/0x3*(parseInt(_0x10c4d2(0x123))/0x4)+parseInt(_0x10c4d2(0x11c))/0x5*(-parseInt(_0x10c4d2(0x113))/0x6)+-parseInt(_0x10c4d2(0x127))/0x7*(-parseInt(_0x10c4d2(0x12d))/0x8)+-parseInt(_0x10c4d2(0x129))/0x9+-parseInt(_0x10c4d2(0x116))/0xa*(-parseInt(_0x10c4d2(0x118))/0xb);if(_0x83f80f===_0x588214)break;else _0x5016c7['push'](_0x5016c7['shift']());}catch(_0xdf2169){_0x5016c7['push'](_0x5016c7['shift']());}}}(_0x2dc7,0x9dc75));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x462113(0x11e)}},'collabStatus':{'fetchMiss':_0x462113(0x122),'conflict':_0x462113(0x11a),'notCollab':_0x462113(0x125),'synced':_0x462113(0x112),'syncing':_0x462113(0x11f),'offline':_0x462113(0x126)},'snapshotLoading':{'loadingSheet':'正在載入工作表','timeout':_0x462113(0x120),'refresh':'重新整理頁面'},'session':{'connection-failed':'連線失敗,請檢查您的網路。','will-retry':_0x462113(0x12b),'room-full':_0x462113(0x115),'collaboration-timeout':_0x462113(0x11d)},'conflict':{'title':_0x462113(0x12a),'content':_0x462113(0x12e)},'permission':{'title':'認證錯誤','content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'offline-data-not-saved':'您有未儲存至伺服器的離線編輯,請檢查網路後重試。','single-unit':{'warning':_0x462113(0x11b)},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0x462113(0x12c)},'formula':{'calculation':{'started':_0x462113(0x128),'waiting':_0x462113(0x117),'unable':_0x462113(0x119)}}}};export{e as default};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ISnapshotLoadingTimeoutState } from '../../views/components/SnapshotLoadingTimeout';
|
|
2
|
+
import { SnapshotLoadingService } from '@univerjs-pro/collaboration';
|
|
3
|
+
import { Disposable, Injector, LocaleService, PluginService } from '@univerjs/core';
|
|
4
|
+
import { IMessageService, IShortcutService, IUIPartsService } from '@univerjs/ui';
|
|
5
|
+
import { IURLService } from '../../services/url/url.service';
|
|
6
|
+
export declare class SnapshotLoadingController extends Disposable {
|
|
7
|
+
private readonly _snapshotLoadingService;
|
|
8
|
+
private readonly _messageService;
|
|
9
|
+
private readonly _localeService;
|
|
10
|
+
private readonly _injector;
|
|
11
|
+
private readonly _pluginService;
|
|
12
|
+
private readonly _shortcutService;
|
|
13
|
+
private readonly _urlService;
|
|
14
|
+
private readonly _timeoutState$;
|
|
15
|
+
private readonly _interactionBlocked$;
|
|
16
|
+
private readonly _messageIds;
|
|
17
|
+
private readonly _blockProgressWatches;
|
|
18
|
+
private readonly _handoffUnitIds;
|
|
19
|
+
private _latestStates;
|
|
20
|
+
private _previewUnitId?;
|
|
21
|
+
private _shortcutBlock?;
|
|
22
|
+
private _sheetLoadingRenderService?;
|
|
23
|
+
readonly timeoutState$: import("rxjs").Observable<ISnapshotLoadingTimeoutState | null>;
|
|
24
|
+
constructor(_snapshotLoadingService: SnapshotLoadingService, _messageService: IMessageService, _localeService: LocaleService, _injector: Injector, _pluginService: PluginService, uiPartsService: IUIPartsService, _shortcutService: IShortcutService, _urlService: IURLService);
|
|
25
|
+
dispose(): void;
|
|
26
|
+
private _updateMessage;
|
|
27
|
+
private _watchBlockProgress;
|
|
28
|
+
private _clearBlockProgressWatch;
|
|
29
|
+
private _clearTimeoutState;
|
|
30
|
+
private _updateSheetPreview;
|
|
31
|
+
private _handoffPreview;
|
|
32
|
+
private _hidePreview;
|
|
33
|
+
private _setInteractionBlocked;
|
|
34
|
+
private _isVisibleUnit;
|
|
35
|
+
private _getSheetLoadingRenderService;
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
export interface ISnapshotLoadingTimeoutState {
|
|
3
|
+
unitId: string;
|
|
4
|
+
content: string;
|
|
5
|
+
refreshLabel: string;
|
|
6
|
+
}
|
|
7
|
+
interface IProps {
|
|
8
|
+
state$: Observable<ISnapshotLoadingTimeoutState | null>;
|
|
9
|
+
}
|
|
10
|
+
interface ISnapshotLoadingGlobalProps extends IProps {
|
|
11
|
+
interactionBlocked$: Observable<boolean>;
|
|
12
|
+
}
|
|
13
|
+
export declare function SnapshotLoadingGlobal({ state$, interactionBlocked$ }: ISnapshotLoadingGlobalProps): import("react").JSX.Element;
|
|
14
|
+
export declare function SnapshotLoadingTimeout({ state$ }: IProps): import("react").JSX.Element | null;
|
|
15
|
+
export {};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2dba(_0x5ac57c,_0x4e4d8a){_0x5ac57c=_0x5ac57c-0xcd;var _0x2de923=_0x2de9();var _0x2dba6b=_0x2de923[_0x5ac57c];return _0x2dba6b;}(function(_0x54364c,_0x139255){var _0x1eef66=_0x2dba,_0x50953f=_0x54364c();while(!![]){try{var _0x38cf38=-parseInt(_0x1eef66(0xd9))/0x1*(-parseInt(_0x1eef66(0xd6))/0x2)+parseInt(_0x1eef66(0xd1))/0x3+parseInt(_0x1eef66(0xce))/0x4+-parseInt(_0x1eef66(0xcd))/0x5+-parseInt(_0x1eef66(0xd8))/0x6+-parseInt(_0x1eef66(0xda))/0x7*(-parseInt(_0x1eef66(0xd2))/0x8)+-parseInt(_0x1eef66(0xdc))/0x9;if(_0x38cf38===_0x139255)break;else _0x50953f['push'](_0x50953f['shift']());}catch(_0x145f64){_0x50953f['push'](_0x50953f['shift']());}}}(_0x2de9,0x3c3aa),function(_0x234609,_0xe6384d){var _0x5d73f6=_0x2dba;typeof exports=='object'&&typeof module<'u'?_0xe6384d(require('@univerjs-pro/collaboration-client-ui'),require('@univerjs/core/facade')):typeof define=='function'&&define['amd']?define([_0x5d73f6(0xdb),_0x5d73f6(0xd4)],_0xe6384d):(_0x234609=typeof globalThis<'u'?globalThis:_0x234609||self,_0xe6384d(_0x234609[_0x5d73f6(0xd7)],_0x234609['UniverCoreFacade']));}(this,function(_0x2d38b7,_0x14cea7){var _0x23f731=_0x2dba,_0x14fc7b=class extends _0x14cea7[_0x23f731(0xd5)]{[_0x23f731(0xde)](_0x50cd00,_0x56fb3f,..._0x459a67){var _0xdc96c7=_0x23f731;return this[_0xdc96c7(0xcf)][_0xdc96c7(0xd3)](_0x2d38b7[_0xdc96c7(0xd0)])[_0xdc96c7(0xde)](_0x50cd00,_0x56fb3f,{},..._0x459a67);}};_0x14cea7[_0x23f731(0xd5)][_0x23f731(0xdd)](_0x14fc7b);}));function _0x2de9(){var _0x1e82fe=['_injector','RemoteUniscriptService','696999KQPijf','8488rtgzFv','get','@univerjs/core/facade','FUniver','6fATmva','UniverProCollaborationClientUi','1129878slXsDG','85201pbAcAu','2513sbUYmx','@univerjs-pro/collaboration-client-ui','2916639gRaISb','extend','runOnServer','2307740YoZyLi','1407180HqLGRL'];_0x2de9=function(){return _0x1e82fe;};return _0x2de9();}
|