@univerjs/sheets-thread-comment-ui 1.0.0-insiders.20260809-70eefdd → 1.0.0-rc.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/LICENSE +176 -0
- package/README.md +16 -8
- package/lib/cjs/index.js +675 -156
- package/lib/cjs/locale/ar-SA.js +1 -0
- package/lib/cjs/locale/ca-ES.js +1 -0
- package/lib/cjs/locale/de-DE.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/es-ES.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/fr-FR.js +1 -0
- package/lib/cjs/locale/id-ID.js +1 -0
- package/lib/cjs/locale/it-IT.js +1 -0
- package/lib/cjs/locale/ja-JP.js +1 -0
- package/lib/cjs/locale/ko-KR.js +1 -0
- package/lib/cjs/locale/pl-PL.js +1 -0
- package/lib/cjs/locale/pt-BR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/sk-SK.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-HK.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/index.js +676 -163
- package/lib/es/locale/ar-SA.js +1 -0
- package/lib/es/locale/ca-ES.js +1 -0
- package/lib/es/locale/de-DE.js +1 -0
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/es-ES.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/fr-FR.js +1 -0
- package/lib/es/locale/id-ID.js +1 -0
- package/lib/es/locale/it-IT.js +1 -0
- package/lib/es/locale/ja-JP.js +1 -0
- package/lib/es/locale/ko-KR.js +1 -0
- package/lib/es/locale/pl-PL.js +1 -0
- package/lib/es/locale/pt-BR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/sk-SK.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-HK.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/index.js +676 -163
- package/lib/locale/ar-SA.js +1 -0
- package/lib/locale/ca-ES.js +1 -0
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/es-ES.js +1 -0
- package/lib/locale/fa-IR.js +1 -0
- package/lib/locale/fr-FR.js +1 -0
- package/lib/locale/id-ID.js +1 -0
- package/lib/locale/it-IT.js +1 -0
- package/lib/locale/ja-JP.js +1 -0
- package/lib/locale/ko-KR.js +1 -0
- package/lib/locale/pl-PL.js +1 -0
- package/lib/locale/pt-BR.js +1 -0
- package/lib/locale/ru-RU.js +1 -0
- package/lib/locale/sk-SK.js +1 -0
- package/lib/locale/vi-VN.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-HK.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- package/lib/types/commands/operations/comment.operation.d.ts +5 -0
- package/lib/types/commands/operations/mobile/show-add-sheet-comment.operation.d.ts +17 -0
- package/lib/types/controllers/mobile/components.controller.d.ts +22 -0
- package/lib/types/controllers/mobile/sheets-thread-comment.controller.d.ts +20 -0
- package/lib/types/controllers/render-controllers/drawing.render-controller.d.ts +35 -0
- package/lib/types/controllers/sheets-thread-comment-permission.controller.d.ts +1 -0
- package/lib/types/controllers/sheets-thread-comment-popup.controller.d.ts +2 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +1 -0
- package/lib/types/menu/menu.d.ts +11 -0
- package/lib/types/menu/mobile-menu.d.ts +35 -0
- package/lib/types/menu/mobile-schema.d.ts +17 -0
- package/lib/types/mobile-plugin.d.ts +31 -0
- package/lib/types/plugin.d.ts +3 -1
- package/lib/types/services/mobile/mobile-sheet-comment-draft.service.d.ts +31 -0
- package/lib/types/types/const.d.ts +1 -0
- package/lib/types/views/SheetsThreadCommentPanel.d.ts +5 -1
- package/lib/types/views/mobile/MobileSheetsThreadCommentPanel.d.ts +16 -0
- package/lib/umd/index.js +3 -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 +15 -14
package/lib/locale/ar-SA.js
CHANGED
package/lib/locale/ca-ES.js
CHANGED
package/lib/locale/de-DE.js
CHANGED
|
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
4
4
|
permission: { commentErr: "Sie haben keine Berechtigung, Kommentare zu verwenden." },
|
|
5
5
|
menu: {
|
|
6
6
|
addComment: "Kommentar hinzufügen",
|
|
7
|
+
openComments: "Kommentare öffnen",
|
|
7
8
|
commentManagement: "Kommentarverwaltung"
|
|
8
9
|
}
|
|
9
10
|
} };
|
package/lib/locale/en-US.js
CHANGED
package/lib/locale/es-ES.js
CHANGED
package/lib/locale/fa-IR.js
CHANGED
package/lib/locale/fr-FR.js
CHANGED
|
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
4
4
|
permission: { commentErr: "Vous n’avez pas l’autorisation d’utiliser les commentaires." },
|
|
5
5
|
menu: {
|
|
6
6
|
addComment: "Ajouter un commentaire",
|
|
7
|
+
openComments: "Ouvrir les commentaires",
|
|
7
8
|
commentManagement: "Gestion des commentaires"
|
|
8
9
|
}
|
|
9
10
|
} };
|
package/lib/locale/id-ID.js
CHANGED
package/lib/locale/it-IT.js
CHANGED
package/lib/locale/ja-JP.js
CHANGED
package/lib/locale/ko-KR.js
CHANGED
package/lib/locale/pl-PL.js
CHANGED
package/lib/locale/pt-BR.js
CHANGED
|
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
4
4
|
permission: { commentErr: "Você não tem permissão para usar comentários." },
|
|
5
5
|
menu: {
|
|
6
6
|
addComment: "Adicionar Comentário",
|
|
7
|
+
openComments: "Abrir comentários",
|
|
7
8
|
commentManagement: "Gerenciamento de Comentários"
|
|
8
9
|
}
|
|
9
10
|
} };
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
4
4
|
permission: { commentErr: "У вас нет разрешения на использование комментариев." },
|
|
5
5
|
menu: {
|
|
6
6
|
addComment: "Добавить комментарий",
|
|
7
|
+
openComments: "Открыть комментарии",
|
|
7
8
|
commentManagement: "Управление комментариями"
|
|
8
9
|
}
|
|
9
10
|
} };
|
package/lib/locale/sk-SK.js
CHANGED
package/lib/locale/vi-VN.js
CHANGED
package/lib/locale/zh-CN.js
CHANGED
package/lib/locale/zh-HK.js
CHANGED
package/lib/locale/zh-TW.js
CHANGED
|
@@ -14,5 +14,10 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IOperation } from '@univerjs/core';
|
|
17
|
+
import { ThreadCommentPanelService } from '@univerjs/thread-comment-ui';
|
|
18
|
+
import { ISidebarService } from '@univerjs/ui';
|
|
17
19
|
export declare const ShowAddSheetCommentModalOperation: IOperation;
|
|
18
20
|
export declare const ToggleSheetCommentPanelOperation: IOperation;
|
|
21
|
+
export declare const OpenSheetCommentPanelOperation: IOperation;
|
|
22
|
+
export declare function openSheetCommentPanel(sidebarService: ISidebarService, panelService: ThreadCommentPanelService): void;
|
|
23
|
+
export declare const AddSheetDrawingCommentOperation: IOperation;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
import type { IOperation } from '@univerjs/core';
|
|
17
|
+
export declare const ShowAddSheetCommentMobileOperation: IOperation;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
import { Disposable } from '@univerjs/core';
|
|
17
|
+
import { ComponentManager, IconManager } from '@univerjs/ui';
|
|
18
|
+
export declare class MobileComponentsController extends Disposable {
|
|
19
|
+
private readonly _componentManager;
|
|
20
|
+
private readonly _iconManager;
|
|
21
|
+
constructor(_componentManager: ComponentManager, _iconManager: IconManager);
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
import { Disposable } from '@univerjs/core';
|
|
17
|
+
import { IMenuManagerService } from '@univerjs/ui';
|
|
18
|
+
export declare class SheetsThreadCommentMobileController extends Disposable {
|
|
19
|
+
constructor(menuManagerService: IMenuManagerService);
|
|
20
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
import type { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { ICommandService, RxDisposable, ThemeService } from '@univerjs/core';
|
|
19
|
+
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
20
|
+
import { ThreadCommentModel } from '@univerjs/thread-comment';
|
|
21
|
+
import { ThreadCommentPanelService } from '@univerjs/thread-comment-ui';
|
|
22
|
+
export declare class SheetsThreadCommentDrawingRenderController extends RxDisposable implements IRenderModule {
|
|
23
|
+
private readonly _context;
|
|
24
|
+
private readonly _commandService;
|
|
25
|
+
private readonly _drawingManagerService;
|
|
26
|
+
private readonly _commentModel;
|
|
27
|
+
private readonly _panelService;
|
|
28
|
+
private readonly _themeService;
|
|
29
|
+
private readonly _overlay;
|
|
30
|
+
constructor(_context: IRenderContext<Workbook>, _commandService: ICommandService, _drawingManagerService: IDrawingManagerService, _commentModel: ThreadCommentModel, _panelService: ThreadCommentPanelService, _themeService: ThemeService);
|
|
31
|
+
private _onOverlayPointerDown;
|
|
32
|
+
private _syncOverlay;
|
|
33
|
+
private _getDrawingOutline;
|
|
34
|
+
private _getColors;
|
|
35
|
+
}
|
|
@@ -23,4 +23,5 @@ export declare class SheetsThreadCommentPermissionController extends Disposable
|
|
|
23
23
|
private readonly _sheetsThreadCommentModel;
|
|
24
24
|
constructor(_localeService: LocaleService, _commandService: ICommandService, _sheetPermissionCheckController: SheetPermissionCheckController, _sheetsThreadCommentModel: SheetsThreadCommentModel);
|
|
25
25
|
private _commandExecutedListener;
|
|
26
|
+
private _hasCommentPermission;
|
|
26
27
|
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import type { ActiveCommentInfo } from '@univerjs/thread-comment-ui';
|
|
16
17
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
17
18
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
18
19
|
import { SheetPermissionCheckController, SheetsSelectionsService } from '@univerjs/sheets';
|
|
@@ -20,6 +21,7 @@ import { SheetsThreadCommentModel } from '@univerjs/sheets-thread-comment';
|
|
|
20
21
|
import { IEditorBridgeService, IMarkSelectionService } from '@univerjs/sheets-ui';
|
|
21
22
|
import { ThreadCommentPanelService } from '@univerjs/thread-comment-ui';
|
|
22
23
|
import { SheetsThreadCommentPopupService } from '../services/sheets-thread-comment-popup.service';
|
|
24
|
+
export declare function resolveFocusedSheetComment(activeComment: ActiveCommentInfo, hoveredComment: ActiveCommentInfo, unitId: string | undefined, subUnitId: string | undefined): Exclude<ActiveCommentInfo, null | undefined> | undefined;
|
|
23
25
|
export declare class SheetsThreadCommentPopupController extends Disposable {
|
|
24
26
|
private readonly _commandService;
|
|
25
27
|
private readonly _sheetsThreadCommentPopupService;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -17,5 +17,6 @@ import './global.css';
|
|
|
17
17
|
export { ShowAddSheetCommentModalOperation, ToggleSheetCommentPanelOperation, } from './commands/operations/comment.operation';
|
|
18
18
|
export type { IUniverSheetsThreadCommentUIConfig } from './config/config';
|
|
19
19
|
export { menuSchema as SheetsThreadCommentUIMenuSchema } from './menu/schema';
|
|
20
|
+
export { UniverSheetsThreadCommentMobileUIPlugin } from './mobile-plugin';
|
|
20
21
|
export { UniverSheetsThreadCommentUIPlugin } from './plugin';
|
|
21
22
|
export { SheetsThreadCommentPopupService } from './services/sheets-thread-comment-popup.service';
|
package/lib/types/menu/menu.d.ts
CHANGED
|
@@ -16,11 +16,21 @@
|
|
|
16
16
|
import type { IAccessor } from '@univerjs/core';
|
|
17
17
|
import type { IShortcutItem } from '@univerjs/ui';
|
|
18
18
|
import { MenuItemType } from '@univerjs/ui';
|
|
19
|
+
export declare const drawingCommentMenuFactory: (accessor: IAccessor) => {
|
|
20
|
+
id: string;
|
|
21
|
+
type: MenuItemType;
|
|
22
|
+
icon: string;
|
|
23
|
+
title: string;
|
|
24
|
+
tooltip: string;
|
|
25
|
+
hidden$: import("rxjs").Observable<boolean>;
|
|
26
|
+
disabled$: import("rxjs").Observable<boolean>;
|
|
27
|
+
};
|
|
19
28
|
export declare const threadCommentMenuFactory: (accessor: IAccessor) => {
|
|
20
29
|
id: string;
|
|
21
30
|
type: MenuItemType;
|
|
22
31
|
icon: string;
|
|
23
32
|
title: string;
|
|
33
|
+
tooltip: string;
|
|
24
34
|
hidden$: import("rxjs").Observable<boolean>;
|
|
25
35
|
disabled$: import("rxjs").Observable<boolean>;
|
|
26
36
|
};
|
|
@@ -28,6 +38,7 @@ export declare const threadPanelMenuFactory: (accessor: IAccessor) => {
|
|
|
28
38
|
id: string;
|
|
29
39
|
type: MenuItemType;
|
|
30
40
|
icon: string;
|
|
41
|
+
title: string;
|
|
31
42
|
tooltip: string;
|
|
32
43
|
disabled$: import("rxjs").Observable<boolean>;
|
|
33
44
|
hidden$: import("rxjs").Observable<boolean>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
import type { IAccessor } from '@univerjs/core';
|
|
17
|
+
import type { LocaleKey } from '../locale/types';
|
|
18
|
+
import { MenuItemType } from '@univerjs/ui';
|
|
19
|
+
export declare function getMobileThreadCommentMenuTitle(accessor: IAccessor): LocaleKey;
|
|
20
|
+
export declare const mobileThreadCommentMenuFactory: (accessor: IAccessor) => {
|
|
21
|
+
id: string;
|
|
22
|
+
type: MenuItemType;
|
|
23
|
+
icon: string;
|
|
24
|
+
title: string;
|
|
25
|
+
hidden$: import("rxjs").Observable<boolean>;
|
|
26
|
+
disabled$: import("rxjs").Observable<boolean>;
|
|
27
|
+
};
|
|
28
|
+
export declare const mobileContextThreadCommentMenuFactory: (accessor: IAccessor) => {
|
|
29
|
+
title: "sheets-thread-comment-ui.panel.title" | "sheets-thread-comment-ui.menu.addComment" | "sheets-thread-comment-ui.menu.openComments" | "sheets-thread-comment-ui.menu.commentManagement" | "sheets-thread-comment-ui.permission.commentErr";
|
|
30
|
+
id: string;
|
|
31
|
+
type: MenuItemType;
|
|
32
|
+
icon: string;
|
|
33
|
+
hidden$: import("rxjs").Observable<boolean>;
|
|
34
|
+
disabled$: import("rxjs").Observable<boolean>;
|
|
35
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
import type { MenuSchemaType } from '@univerjs/ui';
|
|
17
|
+
export declare const mobileMenuSchema: MenuSchemaType;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
import type { IUniverSheetsThreadCommentUIConfig } from './config/config';
|
|
17
|
+
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
18
|
+
export declare class UniverSheetsThreadCommentMobileUIPlugin extends Plugin {
|
|
19
|
+
private readonly _config;
|
|
20
|
+
protected _injector: Injector;
|
|
21
|
+
private readonly _commandService;
|
|
22
|
+
private readonly _configService;
|
|
23
|
+
static pluginName: string;
|
|
24
|
+
static packageName: string;
|
|
25
|
+
static version: string;
|
|
26
|
+
static type: UniverInstanceType;
|
|
27
|
+
constructor(_config: Partial<IUniverSheetsThreadCommentUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
|
|
28
|
+
onStarting(): void;
|
|
29
|
+
onReady(): void;
|
|
30
|
+
onRendered(): void;
|
|
31
|
+
}
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -15,16 +15,18 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IUniverSheetsThreadCommentUIConfig } from './config/config';
|
|
17
17
|
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
18
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
18
19
|
export declare class UniverSheetsThreadCommentUIPlugin extends Plugin {
|
|
19
20
|
private readonly _config;
|
|
20
21
|
protected _injector: Injector;
|
|
21
22
|
protected _commandService: ICommandService;
|
|
23
|
+
private readonly _renderManagerService;
|
|
22
24
|
private readonly _configService;
|
|
23
25
|
static pluginName: string;
|
|
24
26
|
static packageName: string;
|
|
25
27
|
static version: string;
|
|
26
28
|
static type: UniverInstanceType;
|
|
27
|
-
constructor(_config: Partial<IUniverSheetsThreadCommentUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
|
|
29
|
+
constructor(_config: Partial<IUniverSheetsThreadCommentUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _configService: IConfigService);
|
|
28
30
|
onStarting(): void;
|
|
29
31
|
onReady(): void;
|
|
30
32
|
onRendered(): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
import type { Nullable } from '@univerjs/core';
|
|
17
|
+
import { Disposable } from '@univerjs/core';
|
|
18
|
+
export interface IMobileSheetCommentDraft {
|
|
19
|
+
unitId: string;
|
|
20
|
+
subUnitId: string;
|
|
21
|
+
row: number;
|
|
22
|
+
column: number;
|
|
23
|
+
}
|
|
24
|
+
export declare class MobileSheetCommentDraftService extends Disposable {
|
|
25
|
+
private readonly _draft$;
|
|
26
|
+
readonly draft$: import("rxjs").Observable<Nullable<IMobileSheetCommentDraft>>;
|
|
27
|
+
constructor();
|
|
28
|
+
get draft(): Nullable<IMobileSheetCommentDraft>;
|
|
29
|
+
place(draft: IMobileSheetCommentDraft): void;
|
|
30
|
+
cancel(): void;
|
|
31
|
+
}
|
|
@@ -15,4 +15,5 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const SHEETS_THREAD_COMMENT_MODAL = "univer.sheet.thread-comment-modal";
|
|
17
17
|
export declare const SHEETS_THREAD_COMMENT_PANEL = "univer.sheet.thread-comment-panel";
|
|
18
|
+
export declare const SHOW_ADD_SHEET_COMMENT_OPERATION_ID = "sheet.operation.show-comment-modal";
|
|
18
19
|
export declare const PLUGIN_NAME = "SHEET_THREAD_COMMENT_UI_PLUGIN";
|
|
@@ -13,4 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
import { ThreadCommentPanel } from '@univerjs/thread-comment-ui';
|
|
17
|
+
export interface ISheetsThreadCommentPanelProps {
|
|
18
|
+
ThreadCommentPanelComponent?: typeof ThreadCommentPanel;
|
|
19
|
+
}
|
|
20
|
+
export declare const SheetsThreadCommentPanel: ({ ThreadCommentPanelComponent, }?: ISheetsThreadCommentPanelProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
export declare function MobileSheetsThreadCommentPanel(): import("react").JSX.Element;
|