@univerjs/sheets-thread-comment-ui 1.3.1 → 1.5.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 +5 -5
- package/lib/cjs/index.js +43 -70
- package/lib/cjs/locale/ar-SA.js +1 -2
- package/lib/cjs/locale/ca-ES.js +1 -2
- package/lib/cjs/locale/de-DE.js +1 -2
- package/lib/cjs/locale/en-US.js +1 -2
- package/lib/cjs/locale/es-ES.js +1 -2
- package/lib/cjs/locale/fa-IR.js +1 -2
- package/lib/cjs/locale/fr-FR.js +1 -2
- package/lib/cjs/locale/id-ID.js +1 -2
- package/lib/cjs/locale/it-IT.js +1 -2
- package/lib/cjs/locale/ja-JP.js +1 -2
- package/lib/cjs/locale/ko-KR.js +1 -2
- package/lib/cjs/locale/pl-PL.js +1 -2
- package/lib/cjs/locale/pt-BR.js +1 -2
- package/lib/cjs/locale/ru-RU.js +1 -2
- package/lib/cjs/locale/sk-SK.js +1 -2
- package/lib/cjs/locale/vi-VN.js +1 -2
- package/lib/cjs/locale/zh-CN.js +1 -2
- package/lib/cjs/locale/zh-HK.js +1 -2
- package/lib/cjs/locale/zh-TW.js +1 -2
- package/lib/es/index.js +44 -71
- package/lib/es/locale/ar-SA.js +1 -2
- package/lib/es/locale/ca-ES.js +1 -2
- package/lib/es/locale/de-DE.js +1 -2
- package/lib/es/locale/en-US.js +1 -2
- package/lib/es/locale/es-ES.js +1 -2
- package/lib/es/locale/fa-IR.js +1 -2
- package/lib/es/locale/fr-FR.js +1 -2
- package/lib/es/locale/id-ID.js +1 -2
- package/lib/es/locale/it-IT.js +1 -2
- package/lib/es/locale/ja-JP.js +1 -2
- package/lib/es/locale/ko-KR.js +1 -2
- package/lib/es/locale/pl-PL.js +1 -2
- package/lib/es/locale/pt-BR.js +1 -2
- package/lib/es/locale/ru-RU.js +1 -2
- package/lib/es/locale/sk-SK.js +1 -2
- package/lib/es/locale/vi-VN.js +1 -2
- package/lib/es/locale/zh-CN.js +1 -2
- package/lib/es/locale/zh-HK.js +1 -2
- package/lib/es/locale/zh-TW.js +1 -2
- package/lib/index.js +44 -71
- package/lib/locale/ar-SA.js +1 -2
- package/lib/locale/ca-ES.js +1 -2
- package/lib/locale/de-DE.js +1 -2
- package/lib/locale/en-US.js +1 -2
- package/lib/locale/es-ES.js +1 -2
- package/lib/locale/fa-IR.js +1 -2
- package/lib/locale/fr-FR.js +1 -2
- package/lib/locale/id-ID.js +1 -2
- package/lib/locale/it-IT.js +1 -2
- package/lib/locale/ja-JP.js +1 -2
- package/lib/locale/ko-KR.js +1 -2
- package/lib/locale/pl-PL.js +1 -2
- package/lib/locale/pt-BR.js +1 -2
- package/lib/locale/ru-RU.js +1 -2
- package/lib/locale/sk-SK.js +1 -2
- package/lib/locale/vi-VN.js +1 -2
- package/lib/locale/zh-CN.js +1 -2
- package/lib/locale/zh-HK.js +1 -2
- package/lib/locale/zh-TW.js +1 -2
- package/lib/types/menu/menu.d.ts +1 -0
- package/lib/types/menu/mobile-menu.d.ts +1 -1
- package/lib/umd/index.js +3 -3
- package/package.json +18 -18
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
## Package Overview
|
|
10
10
|
|
|
11
|
-
| Package | UMD global | CSS | Locales | Facade entry |
|
|
12
|
-
| --- | --- | :---: | :---: | :---: |
|
|
13
|
-
| `@univerjs/sheets-thread-comment-ui` | `UniverSheetsThreadCommentUi` | Yes | Yes | No |
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs/sheets-thread-comment-ui` | `UniverSheetsThreadCommentUi` | Yes | Yes | No | No |
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
@@ -20,10 +20,10 @@ pnpm add @univerjs/sheets-thread-comment-ui @univerjs/thread-comment-ui
|
|
|
20
20
|
npm install @univerjs/sheets-thread-comment-ui @univerjs/thread-comment-ui
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Keep all `@univerjs/*` packages on the same version.
|
|
24
|
-
|
|
25
23
|
## Usage
|
|
26
24
|
|
|
25
|
+
Start with the [integration setup](https://docs.univer.ai/) for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
|
|
26
|
+
|
|
27
27
|
```ts
|
|
28
28
|
import { LocaleType, mergeLocales, Univer } from '@univerjs/core';
|
|
29
29
|
import { UniverSheetsThreadCommentUIPlugin } from '@univerjs/sheets-thread-comment-ui';
|
package/lib/cjs/index.js
CHANGED
|
@@ -14,7 +14,7 @@ let _univerjs_engine_formula = require("@univerjs/engine-formula");
|
|
|
14
14
|
let react = require("react");
|
|
15
15
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
// src/types/const.ts
|
|
18
18
|
/**
|
|
19
19
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
20
20
|
*
|
|
@@ -35,8 +35,7 @@ const SHEETS_THREAD_COMMENT_PANEL = "univer.sheet.thread-comment-panel";
|
|
|
35
35
|
const SHOW_ADD_SHEET_COMMENT_OPERATION_ID = "sheet.operation.show-comment-modal";
|
|
36
36
|
const PLUGIN_NAME = "SHEET_THREAD_COMMENT_UI_PLUGIN";
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
38
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
|
|
40
39
|
function _typeof(o) {
|
|
41
40
|
"@babel/helpers - typeof";
|
|
42
41
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -46,28 +45,25 @@ function _typeof(o) {
|
|
|
46
45
|
}, _typeof(o);
|
|
47
46
|
}
|
|
48
47
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
function toPrimitive(t, r) {
|
|
48
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
|
|
49
|
+
function toPrimitive(t, e) {
|
|
52
50
|
if ("object" != _typeof(t) || !t) return t;
|
|
53
|
-
var
|
|
54
|
-
if (void 0 !==
|
|
55
|
-
var i =
|
|
51
|
+
var r;
|
|
52
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
53
|
+
var i = r.call(t, e || "default");
|
|
56
54
|
if ("object" != _typeof(i)) return i;
|
|
57
55
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
58
56
|
}
|
|
59
|
-
return ("string" ===
|
|
57
|
+
return ("string" === e ? String : Number)(t);
|
|
60
58
|
}
|
|
61
59
|
|
|
62
|
-
|
|
63
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
60
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
|
|
64
61
|
function toPropertyKey(t) {
|
|
65
62
|
var i = toPrimitive(t, "string");
|
|
66
63
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
67
64
|
}
|
|
68
65
|
|
|
69
|
-
|
|
70
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
66
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
|
|
71
67
|
function _defineProperty(e, r, t) {
|
|
72
68
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
73
69
|
value: t,
|
|
@@ -77,16 +73,14 @@ function _defineProperty(e, r, t) {
|
|
|
77
73
|
}) : e[r] = t, e;
|
|
78
74
|
}
|
|
79
75
|
|
|
80
|
-
|
|
81
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
76
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
|
|
82
77
|
function __decorateParam(paramIndex, decorator) {
|
|
83
78
|
return function(target, key) {
|
|
84
79
|
decorator(target, key, paramIndex);
|
|
85
80
|
};
|
|
86
81
|
}
|
|
87
82
|
|
|
88
|
-
|
|
89
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
83
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
|
|
90
84
|
function __decorate(decorators, target, key, desc) {
|
|
91
85
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
92
86
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -94,8 +88,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
94
88
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
95
89
|
}
|
|
96
90
|
|
|
97
|
-
|
|
98
|
-
//#region src/services/sheets-thread-comment-popup.service.ts
|
|
91
|
+
// src/services/sheets-thread-comment-popup.service.ts
|
|
99
92
|
let SheetsThreadCommentPopupService = class SheetsThreadCommentPopupService extends _univerjs_core.Disposable {
|
|
100
93
|
get activePopup() {
|
|
101
94
|
return this._activePopup;
|
|
@@ -167,8 +160,7 @@ let SheetsThreadCommentPopupService = class SheetsThreadCommentPopupService exte
|
|
|
167
160
|
};
|
|
168
161
|
SheetsThreadCommentPopupService = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.SheetCanvasPopManagerService)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.CellPopupManagerService))], SheetsThreadCommentPopupService);
|
|
169
162
|
|
|
170
|
-
|
|
171
|
-
//#region src/commands/operations/comment.operation.ts
|
|
163
|
+
// src/commands/operations/comment.operation.ts
|
|
172
164
|
const ShowAddSheetCommentModalOperation = {
|
|
173
165
|
type: _univerjs_core.CommandType.OPERATION,
|
|
174
166
|
id: SHOW_ADD_SHEET_COMMENT_OPERATION_ID,
|
|
@@ -263,8 +255,7 @@ const AddSheetDrawingCommentOperation = {
|
|
|
263
255
|
}
|
|
264
256
|
};
|
|
265
257
|
|
|
266
|
-
|
|
267
|
-
//#region src/menu/menu.ts
|
|
258
|
+
// src/menu/menu.ts
|
|
268
259
|
function getDrawingCommentDisable$(accessor) {
|
|
269
260
|
const univerInstanceService = accessor.get(_univerjs_core.IUniverInstanceService);
|
|
270
261
|
const permissionService = accessor.get(_univerjs_core.IPermissionService);
|
|
@@ -299,7 +290,12 @@ const threadCommentMenuFactory = (accessor) => {
|
|
|
299
290
|
};
|
|
300
291
|
};
|
|
301
292
|
const threadPanelMenuFactory = (accessor) => {
|
|
293
|
+
const sidebarService = accessor.get(_univerjs_ui.ISidebarService);
|
|
302
294
|
return {
|
|
295
|
+
activated$: (0, rxjs.defer)(() => sidebarService.sidebarOptions$.pipe((0, rxjs.startWith)(sidebarService.options), (0, rxjs.map)((options) => {
|
|
296
|
+
var _options$children;
|
|
297
|
+
return options.visible === true && ((_options$children = options.children) === null || _options$children === void 0 ? void 0 : _options$children.label) === "univer.sheet.thread-comment-panel";
|
|
298
|
+
}), (0, rxjs.distinctUntilChanged)())),
|
|
303
299
|
id: ToggleSheetCommentPanelOperation.id,
|
|
304
300
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
305
301
|
icon: "CommentIcon",
|
|
@@ -319,8 +315,7 @@ const AddCommentShortcut = {
|
|
|
319
315
|
preconditions: _univerjs_sheets_ui.whenSheetEditorFocused
|
|
320
316
|
};
|
|
321
317
|
|
|
322
|
-
|
|
323
|
-
//#region src/menu/schema.ts
|
|
318
|
+
// src/menu/schema.ts
|
|
324
319
|
const menuSchema = {
|
|
325
320
|
[_univerjs_ui.RibbonInsertGroup.MEDIA]: {
|
|
326
321
|
[ToggleSheetCommentPanelOperation.id]: {
|
|
@@ -356,13 +351,11 @@ const menuSchema = {
|
|
|
356
351
|
} } }
|
|
357
352
|
};
|
|
358
353
|
|
|
359
|
-
|
|
360
|
-
//#region package.json
|
|
354
|
+
// package.json
|
|
361
355
|
var name = "@univerjs/sheets-thread-comment-ui";
|
|
362
|
-
var version = "1.
|
|
356
|
+
var version = "1.5.0";
|
|
363
357
|
|
|
364
|
-
|
|
365
|
-
//#region src/services/mobile/mobile-sheet-comment-draft.service.ts
|
|
358
|
+
// src/services/mobile/mobile-sheet-comment-draft.service.ts
|
|
366
359
|
var MobileSheetCommentDraftService = class extends _univerjs_core.Disposable {
|
|
367
360
|
constructor() {
|
|
368
361
|
super();
|
|
@@ -381,8 +374,7 @@ var MobileSheetCommentDraftService = class extends _univerjs_core.Disposable {
|
|
|
381
374
|
}
|
|
382
375
|
};
|
|
383
376
|
|
|
384
|
-
|
|
385
|
-
//#region src/commands/operations/mobile/show-add-sheet-comment.operation.ts
|
|
377
|
+
// src/commands/operations/mobile/show-add-sheet-comment.operation.ts
|
|
386
378
|
const ShowAddSheetCommentMobileOperation = {
|
|
387
379
|
type: _univerjs_core.CommandType.OPERATION,
|
|
388
380
|
id: SHOW_ADD_SHEET_COMMENT_OPERATION_ID,
|
|
@@ -420,14 +412,12 @@ const ShowAddSheetCommentMobileOperation = {
|
|
|
420
412
|
}
|
|
421
413
|
};
|
|
422
414
|
|
|
423
|
-
|
|
424
|
-
//#region src/config/config.ts
|
|
415
|
+
// src/config/config.ts
|
|
425
416
|
const SHEETS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY = "sheets-thread-comment.config";
|
|
426
417
|
const configSymbol = Symbol(SHEETS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY);
|
|
427
418
|
const defaultPluginConfig = {};
|
|
428
419
|
|
|
429
|
-
|
|
430
|
-
//#region src/views/SheetsThreadCommentPanel.tsx
|
|
420
|
+
// src/views/SheetsThreadCommentPanel.tsx
|
|
431
421
|
const SheetsThreadCommentPanel = ({ ThreadCommentPanelComponent = _univerjs_thread_comment_ui.ThreadCommentPanel } = {}) => {
|
|
432
422
|
var _workbook$getActiveSh;
|
|
433
423
|
const markSelectionService = (0, _univerjs_ui.useDependency)(_univerjs_sheets_ui.IMarkSelectionService);
|
|
@@ -573,8 +563,7 @@ const SheetsThreadCommentPanel = ({ ThreadCommentPanelComponent = _univerjs_thre
|
|
|
573
563
|
});
|
|
574
564
|
};
|
|
575
565
|
|
|
576
|
-
|
|
577
|
-
//#region src/views/mobile/MobileSheetsThreadCommentPanel.tsx
|
|
566
|
+
// src/views/mobile/MobileSheetsThreadCommentPanel.tsx
|
|
578
567
|
function MobileSheetsThreadCommentPanelContent(props) {
|
|
579
568
|
const draftService = (0, _univerjs_ui.useDependency)(MobileSheetCommentDraftService);
|
|
580
569
|
const userManagerService = (0, _univerjs_ui.useDependency)(_univerjs_core.UserManagerService);
|
|
@@ -605,8 +594,7 @@ function MobileSheetsThreadCommentPanel() {
|
|
|
605
594
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SheetsThreadCommentPanel, { ThreadCommentPanelComponent: MobileSheetsThreadCommentPanelContent });
|
|
606
595
|
}
|
|
607
596
|
|
|
608
|
-
|
|
609
|
-
//#region src/controllers/mobile/components.controller.ts
|
|
597
|
+
// src/controllers/mobile/components.controller.ts
|
|
610
598
|
/**
|
|
611
599
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
612
600
|
*
|
|
@@ -636,8 +624,7 @@ let MobileComponentsController = class MobileComponentsController extends _unive
|
|
|
636
624
|
};
|
|
637
625
|
MobileComponentsController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_ui.ComponentManager)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_ui.IconManager))], MobileComponentsController);
|
|
638
626
|
|
|
639
|
-
|
|
640
|
-
//#region src/menu/mobile-menu.ts
|
|
627
|
+
// src/menu/mobile-menu.ts
|
|
641
628
|
function getMobileThreadCommentMenuTitle(accessor) {
|
|
642
629
|
var _selectionService$get;
|
|
643
630
|
const selectionService = accessor.get(_univerjs_sheets.SheetsSelectionsService);
|
|
@@ -663,8 +650,7 @@ const mobileContextThreadCommentMenuFactory = (accessor) => ({
|
|
|
663
650
|
title: getMobileThreadCommentMenuTitle(accessor)
|
|
664
651
|
});
|
|
665
652
|
|
|
666
|
-
|
|
667
|
-
//#region src/menu/mobile-schema.ts
|
|
653
|
+
// src/menu/mobile-schema.ts
|
|
668
654
|
const mobileMenuSchema = {
|
|
669
655
|
[_univerjs_ui.RibbonInsertGroup.MEDIA]: {
|
|
670
656
|
[ToggleSheetCommentPanelOperation.id]: {
|
|
@@ -700,8 +686,7 @@ const mobileMenuSchema = {
|
|
|
700
686
|
} } }
|
|
701
687
|
};
|
|
702
688
|
|
|
703
|
-
|
|
704
|
-
//#region src/controllers/mobile/sheets-thread-comment.controller.ts
|
|
689
|
+
// src/controllers/mobile/sheets-thread-comment.controller.ts
|
|
705
690
|
/**
|
|
706
691
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
707
692
|
*
|
|
@@ -725,8 +710,7 @@ let SheetsThreadCommentMobileController = class SheetsThreadCommentMobileControl
|
|
|
725
710
|
};
|
|
726
711
|
SheetsThreadCommentMobileController = __decorate([__decorateParam(0, _univerjs_ui.IMenuManagerService)], SheetsThreadCommentMobileController);
|
|
727
712
|
|
|
728
|
-
|
|
729
|
-
//#region src/controllers/render-controllers/render.controller.ts
|
|
713
|
+
// src/controllers/render-controllers/render.controller.ts
|
|
730
714
|
let SheetsThreadCommentRenderController = class SheetsThreadCommentRenderController extends _univerjs_core.Disposable {
|
|
731
715
|
constructor(_sheetInterceptorService, _sheetsThreadCommentModel, _univerInstanceService, _renderManagerService) {
|
|
732
716
|
super();
|
|
@@ -779,8 +763,7 @@ SheetsThreadCommentRenderController = __decorate([
|
|
|
779
763
|
__decorateParam(3, _univerjs_engine_render.IRenderManagerService)
|
|
780
764
|
], SheetsThreadCommentRenderController);
|
|
781
765
|
|
|
782
|
-
|
|
783
|
-
//#region src/controllers/sheets-thread-comment-copy-paste.controller.ts
|
|
766
|
+
// src/controllers/sheets-thread-comment-copy-paste.controller.ts
|
|
784
767
|
const transformRef = (ref, source, target) => {
|
|
785
768
|
const refObj = (0, _univerjs_engine_formula.singleReferenceToGrid)(ref);
|
|
786
769
|
const offsetRow = target.row - source.row;
|
|
@@ -903,8 +886,7 @@ SheetsThreadCommentCopyPasteController = __decorate([
|
|
|
903
886
|
__decorateParam(2, _univerjs_thread_comment.IThreadCommentDataSourceService)
|
|
904
887
|
], SheetsThreadCommentCopyPasteController);
|
|
905
888
|
|
|
906
|
-
|
|
907
|
-
//#region src/controllers/sheets-thread-comment-permission.controller.ts
|
|
889
|
+
// src/controllers/sheets-thread-comment-permission.controller.ts
|
|
908
890
|
let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissionController extends _univerjs_core.Disposable {
|
|
909
891
|
constructor(_localeService, _commandService, _sheetPermissionCheckController, _sheetsThreadCommentModel) {
|
|
910
892
|
super();
|
|
@@ -964,8 +946,7 @@ SheetsThreadCommentPermissionController = __decorate([
|
|
|
964
946
|
__decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_sheets_thread_comment.SheetsThreadCommentModel))
|
|
965
947
|
], SheetsThreadCommentPermissionController);
|
|
966
948
|
|
|
967
|
-
|
|
968
|
-
//#region src/mobile-plugin.ts
|
|
949
|
+
// src/mobile-plugin.ts
|
|
969
950
|
let UniverSheetsThreadCommentMobileUIPlugin = class UniverSheetsThreadCommentMobileUIPlugin extends _univerjs_core.Plugin {
|
|
970
951
|
constructor(_config = defaultPluginConfig, _injector, _commandService, _configService) {
|
|
971
952
|
super();
|
|
@@ -1015,8 +996,7 @@ UniverSheetsThreadCommentMobileUIPlugin = __decorate([
|
|
|
1015
996
|
__decorateParam(3, _univerjs_core.IConfigService)
|
|
1016
997
|
], UniverSheetsThreadCommentMobileUIPlugin);
|
|
1017
998
|
|
|
1018
|
-
|
|
1019
|
-
//#region src/views/SheetsThreadCommentCell.tsx
|
|
999
|
+
// src/views/SheetsThreadCommentCell.tsx
|
|
1020
1000
|
const SheetsThreadCommentCell = () => {
|
|
1021
1001
|
const univerInstanceService = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService);
|
|
1022
1002
|
const sheetsThreadCommentPopupService = (0, _univerjs_ui.useDependency)(SheetsThreadCommentPopupService);
|
|
@@ -1055,8 +1035,7 @@ const SheetsThreadCommentCell = () => {
|
|
|
1055
1035
|
});
|
|
1056
1036
|
};
|
|
1057
1037
|
|
|
1058
|
-
|
|
1059
|
-
//#region src/controllers/components.controller.ts
|
|
1038
|
+
// src/controllers/components.controller.ts
|
|
1060
1039
|
/**
|
|
1061
1040
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1062
1041
|
*
|
|
@@ -1094,8 +1073,7 @@ let ComponentsController = class ComponentsController extends _univerjs_core.Dis
|
|
|
1094
1073
|
};
|
|
1095
1074
|
ComponentsController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_ui.ComponentManager)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_ui.IconManager))], ComponentsController);
|
|
1096
1075
|
|
|
1097
|
-
|
|
1098
|
-
//#region src/controllers/render-controllers/drawing.render-controller.ts
|
|
1076
|
+
// src/controllers/render-controllers/drawing.render-controller.ts
|
|
1099
1077
|
const SHEET_COMMENT_DRAWING_OVERLAY_KEY = "sheet-thread-comment-drawing-overlay";
|
|
1100
1078
|
const SHEET_COMMENT_DRAWING_OVERLAY_LAYER_INDEX = 10100;
|
|
1101
1079
|
let SheetsThreadCommentDrawingRenderController = class SheetsThreadCommentDrawingRenderController extends _univerjs_core.RxDisposable {
|
|
@@ -1228,8 +1206,7 @@ SheetsThreadCommentDrawingRenderController = __decorate([
|
|
|
1228
1206
|
__decorateParam(5, (0, _univerjs_core.Inject)(_univerjs_core.ThemeService))
|
|
1229
1207
|
], SheetsThreadCommentDrawingRenderController);
|
|
1230
1208
|
|
|
1231
|
-
|
|
1232
|
-
//#region src/controllers/sheets-thread-comment-hover.controller.ts
|
|
1209
|
+
// src/controllers/sheets-thread-comment-hover.controller.ts
|
|
1233
1210
|
/**
|
|
1234
1211
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1235
1212
|
*
|
|
@@ -1293,8 +1270,7 @@ SheetsThreadCommentHoverController = __decorate([
|
|
|
1293
1270
|
__decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_sheets.SheetPermissionCheckController))
|
|
1294
1271
|
], SheetsThreadCommentHoverController);
|
|
1295
1272
|
|
|
1296
|
-
|
|
1297
|
-
//#region src/controllers/sheets-thread-comment-popup.controller.ts
|
|
1273
|
+
// src/controllers/sheets-thread-comment-popup.controller.ts
|
|
1298
1274
|
function resolveFocusedSheetComment(activeComment, hoveredComment, unitId, subUnitId) {
|
|
1299
1275
|
for (const comment of [hoveredComment, activeComment]) if (comment && comment.unitId === unitId && comment.subUnitId === subUnitId) return comment;
|
|
1300
1276
|
}
|
|
@@ -1476,8 +1452,7 @@ SheetsThreadCommentPopupController = __decorate([
|
|
|
1476
1452
|
__decorateParam(9, _univerjs_engine_render.IRenderManagerService)
|
|
1477
1453
|
], SheetsThreadCommentPopupController);
|
|
1478
1454
|
|
|
1479
|
-
|
|
1480
|
-
//#region src/controllers/sheets-thread-comment.controller.ts
|
|
1455
|
+
// src/controllers/sheets-thread-comment.controller.ts
|
|
1481
1456
|
/**
|
|
1482
1457
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1483
1458
|
*
|
|
@@ -1510,8 +1485,7 @@ let SheetsThreadCommentController = class SheetsThreadCommentController extends
|
|
|
1510
1485
|
};
|
|
1511
1486
|
SheetsThreadCommentController = __decorate([__decorateParam(0, _univerjs_ui.IMenuManagerService), __decorateParam(1, _univerjs_ui.IShortcutService)], SheetsThreadCommentController);
|
|
1512
1487
|
|
|
1513
|
-
|
|
1514
|
-
//#region src/plugin.ts
|
|
1488
|
+
// src/plugin.ts
|
|
1515
1489
|
let UniverSheetsThreadCommentUIPlugin = class UniverSheetsThreadCommentUIPlugin extends _univerjs_core.Plugin {
|
|
1516
1490
|
constructor(_config = defaultPluginConfig, _injector, _commandService, _renderManagerService, _configService) {
|
|
1517
1491
|
super();
|
|
@@ -1571,7 +1545,6 @@ UniverSheetsThreadCommentUIPlugin = __decorate([
|
|
|
1571
1545
|
__decorateParam(4, _univerjs_core.IConfigService)
|
|
1572
1546
|
], UniverSheetsThreadCommentUIPlugin);
|
|
1573
1547
|
|
|
1574
|
-
//#endregion
|
|
1575
1548
|
Object.defineProperty(exports, "SheetsThreadCommentPopupService", {
|
|
1576
1549
|
enumerable: true,
|
|
1577
1550
|
get: function () {
|
package/lib/cjs/locale/ar-SA.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ar-SA.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "إدارة التعليقات" },
|
|
4
4
|
permission: { commentErr: "ليس لديك إذن لاستخدام التعليقات." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ca-ES.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "Gestió de comentaris" },
|
|
4
4
|
permission: { commentErr: "No teniu permís per utilitzar comentaris." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/de-DE.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/de-DE.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "Kommentarverwaltung" },
|
|
4
4
|
permission: { commentErr: "Sie haben keine Berechtigung, Kommentare zu verwenden." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/es-ES.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "Gestión de comentarios" },
|
|
4
4
|
permission: { commentErr: "No tiene permiso para usar comentarios." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fa-IR.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "مدیریت نظر" },
|
|
4
4
|
permission: { commentErr: "شما مجوز استفاده از نظرات را ندارید." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fr-FR.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "Gestion des commentaires" },
|
|
4
4
|
permission: { commentErr: "Vous n’avez pas l’autorisation d’utiliser les commentaires." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/id-ID.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/id-ID.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "Manajemen Komentar" },
|
|
4
4
|
permission: { commentErr: "Anda tidak memiliki izin untuk menggunakan komentar." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/it-IT.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/it-IT.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "Gestione commenti" },
|
|
4
4
|
permission: { commentErr: "Non hai l’autorizzazione per usare i commenti." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ja-JP.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "コメント管理" },
|
|
4
4
|
permission: { commentErr: "コメントを使用する権限がありません。" },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ko-KR.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "댓글 관리" },
|
|
4
4
|
permission: { commentErr: "댓글을 사용할 권한이 없습니다." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/pl-PL.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/pl-PL.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "Zarządzanie komentarzami" },
|
|
4
4
|
permission: { commentErr: "Nie masz uprawnień do używania komentarzy." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/pt-BR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/pt-BR.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "Gerenciamento de Comentários" },
|
|
4
4
|
permission: { commentErr: "Você não tem permissão para usar comentários." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ru-RU.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "Управление комментариями" },
|
|
4
4
|
permission: { commentErr: "У вас нет разрешения на использование комментариев." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/sk-SK.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "Správa komentárov" },
|
|
4
4
|
permission: { commentErr: "Nemáte povolenie používať komentáre." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/vi-VN.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "Quản lý bình luận" },
|
|
4
4
|
permission: { commentErr: "Bạn không có quyền sử dụng bình luận." },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-CN.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "评论管理" },
|
|
4
4
|
permission: { commentErr: "你没有权限使用评论。" },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/zh-HK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-HK.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "評論管理" },
|
|
4
4
|
permission: { commentErr: "你沒有權限使用評論。" },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-TW.ts
|
|
2
2
|
const locale = { "sheets-thread-comment-ui": {
|
|
3
3
|
panel: { title: "評論管理" },
|
|
4
4
|
permission: { commentErr: "你沒有權限使用評論。" },
|
|
@@ -9,5 +9,4 @@ const locale = { "sheets-thread-comment-ui": {
|
|
|
9
9
|
}
|
|
10
10
|
} };
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
module.exports = locale;
|