@univerjs/sheets-thread-comment 0.4.2 → 0.5.0-alpha.0
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/README.md +4 -73
- package/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +218 -0
- package/lib/es/index.js +331 -784
- package/lib/types/controllers/config.schema.d.ts +17 -6
- package/lib/types/controllers/sheets-thread-comment-ref-range.controller.d.ts +22 -0
- package/lib/types/facade/f-range.d.ts +26 -0
- package/lib/types/facade/f-thread-comment.d.ts +56 -0
- package/lib/types/facade/f-workbook.d.ts +35 -0
- package/lib/types/facade/f-worksheet.d.ts +13 -0
- package/lib/types/{locale/en-US.d.ts → facade/index.d.ts} +4 -9
- package/lib/types/index.d.ts +3 -9
- package/lib/types/models/sheets-thread-comment.model.d.ts +30 -0
- package/lib/types/plugin.d.ts +2 -7
- package/lib/types/types/const.d.ts +1 -3
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +27 -28
- package/lib/locale/en-US.json +0 -8
- package/lib/locale/fa-IR.json +0 -8
- package/lib/locale/ru-RU.json +0 -8
- package/lib/locale/vi-VN.json +0 -8
- package/lib/locale/zh-CN.json +0 -8
- package/lib/locale/zh-TW.json +0 -8
- package/lib/types/commands/operations/comment.operation.d.ts +0 -2
- package/lib/types/controllers/menu.d.ts +0 -12
- package/lib/types/controllers/menu.schema.d.ts +0 -2
- package/lib/types/controllers/render-controllers/render.controller.d.ts +0 -13
- package/lib/types/controllers/sheets-thread-comment-copy-paste.controller.d.ts +0 -12
- package/lib/types/controllers/sheets-thread-comment-hover.controller.d.ts +0 -12
- package/lib/types/controllers/sheets-thread-comment-popup.controller.d.ts +0 -28
- package/lib/types/controllers/sheets-thread-comment-remove.controller.d.ts +0 -11
- package/lib/types/controllers/sheets-thread-comment.controller.d.ts +0 -11
- package/lib/types/locale/fa-IR.d.ts +0 -24
- package/lib/types/locale/ru-RU.d.ts +0 -24
- package/lib/types/locale/vi-VN.d.ts +0 -24
- package/lib/types/locale/zh-CN.d.ts +0 -24
- package/lib/types/locale/zh-TW.d.ts +0 -24
- package/lib/types/services/sheets-thread-comment-popup.service.d.ts +0 -23
- package/lib/types/views/sheets-thread-comment-cell/index.d.ts +0 -2
- package/lib/types/views/sheets-thread-comment-panel/index.d.ts +0 -2
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Disposable } from '@univerjs/core';
|
|
2
|
-
import { SheetsThreadCommentModel } from '@univerjs/sheets-thread-comment-base';
|
|
3
|
-
import { HoverManagerService, SheetPermissionInterceptorBaseController } from '@univerjs/sheets-ui';
|
|
4
|
-
import { SheetsThreadCommentPopupService } from '../services/sheets-thread-comment-popup.service';
|
|
5
|
-
export declare class SheetsThreadCommentHoverController extends Disposable {
|
|
6
|
-
private readonly _hoverManagerService;
|
|
7
|
-
private readonly _sheetsThreadCommentPopupService;
|
|
8
|
-
private readonly _sheetsThreadCommentModel;
|
|
9
|
-
private readonly _sheetPermissionInterceptorBaseController;
|
|
10
|
-
constructor(_hoverManagerService: HoverManagerService, _sheetsThreadCommentPopupService: SheetsThreadCommentPopupService, _sheetsThreadCommentModel: SheetsThreadCommentModel, _sheetPermissionInterceptorBaseController: SheetPermissionInterceptorBaseController);
|
|
11
|
-
private _initHoverEvent;
|
|
12
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
|
-
import { SheetsThreadCommentModel } from '@univerjs/sheets-thread-comment-base';
|
|
5
|
-
import { IEditorBridgeService, IMarkSelectionService, SheetPermissionInterceptorBaseController } from '@univerjs/sheets-ui';
|
|
6
|
-
import { ThreadCommentPanelService } from '@univerjs/thread-comment-ui';
|
|
7
|
-
import { SheetsThreadCommentPopupService } from '../services/sheets-thread-comment-popup.service';
|
|
8
|
-
export declare class SheetsThreadCommentPopupController extends Disposable {
|
|
9
|
-
private readonly _commandService;
|
|
10
|
-
private readonly _sheetsThreadCommentPopupService;
|
|
11
|
-
private readonly _sheetsThreadCommentModel;
|
|
12
|
-
private readonly _threadCommentPanelService;
|
|
13
|
-
private readonly _univerInstanceService;
|
|
14
|
-
private readonly _sheetPermissionInterceptorBaseController;
|
|
15
|
-
private readonly _markSelectionService;
|
|
16
|
-
private readonly _sheetSelectionService;
|
|
17
|
-
private readonly _editorBridgeService;
|
|
18
|
-
private readonly _renderManagerService;
|
|
19
|
-
private _isSwitchToCommenting;
|
|
20
|
-
private _selectionShapeInfo;
|
|
21
|
-
constructor(_commandService: ICommandService, _sheetsThreadCommentPopupService: SheetsThreadCommentPopupService, _sheetsThreadCommentModel: SheetsThreadCommentModel, _threadCommentPanelService: ThreadCommentPanelService, _univerInstanceService: IUniverInstanceService, _sheetPermissionInterceptorBaseController: SheetPermissionInterceptorBaseController, _markSelectionService: IMarkSelectionService, _sheetSelectionService: SheetsSelectionsService, _editorBridgeService: IEditorBridgeService, _renderManagerService: IRenderManagerService);
|
|
22
|
-
private _handleSelectionChange;
|
|
23
|
-
private _initSelectionUpdateListener;
|
|
24
|
-
private _initEditorBridge;
|
|
25
|
-
private _initCommandListener;
|
|
26
|
-
private _initPanelListener;
|
|
27
|
-
private _initMarkSelection;
|
|
28
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
-
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
3
|
-
import { IThreadCommentDataSourceService, ThreadCommentModel } from '@univerjs/thread-comment';
|
|
4
|
-
export declare class ThreadCommentRemoveSheetsController extends Disposable {
|
|
5
|
-
private _sheetInterceptorService;
|
|
6
|
-
private _univerInstanceService;
|
|
7
|
-
private _threadCommentModel;
|
|
8
|
-
private _threadCommentDataSourceService;
|
|
9
|
-
constructor(_sheetInterceptorService: SheetInterceptorService, _univerInstanceService: IUniverInstanceService, _threadCommentModel: ThreadCommentModel, _threadCommentDataSourceService: IThreadCommentDataSourceService);
|
|
10
|
-
private _initSheetChange;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Disposable } from '@univerjs/core';
|
|
2
|
-
import { ComponentManager, IMenuManagerService, IShortcutService } from '@univerjs/ui';
|
|
3
|
-
export declare class SheetsThreadCommentController extends Disposable {
|
|
4
|
-
private readonly _menuManagerService;
|
|
5
|
-
private readonly _componentManager;
|
|
6
|
-
private readonly _shortcutService;
|
|
7
|
-
constructor(_menuManagerService: IMenuManagerService, _componentManager: ComponentManager, _shortcutService: IShortcutService);
|
|
8
|
-
private _initShortcut;
|
|
9
|
-
private _initMenu;
|
|
10
|
-
private _initComponent;
|
|
11
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
declare const _default: {
|
|
17
|
-
sheetThreadComment: {
|
|
18
|
-
menu: {
|
|
19
|
-
addComment: string;
|
|
20
|
-
commentManagement: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
declare const _default: {
|
|
17
|
-
sheetThreadComment: {
|
|
18
|
-
menu: {
|
|
19
|
-
addComment: string;
|
|
20
|
-
commentManagement: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
declare const _default: {
|
|
17
|
-
sheetThreadComment: {
|
|
18
|
-
menu: {
|
|
19
|
-
addComment: string;
|
|
20
|
-
commentManagement: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
declare const _default: {
|
|
17
|
-
sheetThreadComment: {
|
|
18
|
-
menu: {
|
|
19
|
-
addComment: string;
|
|
20
|
-
commentManagement: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
declare const _default: {
|
|
17
|
-
sheetThreadComment: {
|
|
18
|
-
menu: {
|
|
19
|
-
addComment: string;
|
|
20
|
-
commentManagement: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Nullable, Disposable } from '@univerjs/core';
|
|
2
|
-
import { ISheetLocationBase } from '@univerjs/sheets';
|
|
3
|
-
import { SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
|
|
4
|
-
import { IZenZoneService } from '@univerjs/ui';
|
|
5
|
-
export interface IThreadCommentPopup extends ISheetLocationBase {
|
|
6
|
-
commentId?: string;
|
|
7
|
-
temp?: boolean;
|
|
8
|
-
trigger?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class SheetsThreadCommentPopupService extends Disposable {
|
|
11
|
-
private readonly _canvasPopupManagerService;
|
|
12
|
-
private readonly _zenZoneService;
|
|
13
|
-
private _lastPopup;
|
|
14
|
-
private _activePopup;
|
|
15
|
-
private _activePopup$;
|
|
16
|
-
activePopup$: import('rxjs').Observable<Nullable<IThreadCommentPopup>>;
|
|
17
|
-
get activePopup(): Nullable<IThreadCommentPopup>;
|
|
18
|
-
constructor(_canvasPopupManagerService: SheetCanvasPopManagerService, _zenZoneService: IZenZoneService);
|
|
19
|
-
private _initZenVisible;
|
|
20
|
-
showPopup(location: IThreadCommentPopup, onHide?: () => void): void;
|
|
21
|
-
hidePopup(): void;
|
|
22
|
-
persistPopup(): void;
|
|
23
|
-
}
|