@univerjs/sheets-thread-comment-ui 1.3.0 → 1.4.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.
Files changed (64) hide show
  1. package/lib/cjs/index.js +38 -65
  2. package/lib/cjs/locale/ar-SA.js +1 -2
  3. package/lib/cjs/locale/ca-ES.js +1 -2
  4. package/lib/cjs/locale/de-DE.js +1 -2
  5. package/lib/cjs/locale/en-US.js +1 -2
  6. package/lib/cjs/locale/es-ES.js +1 -2
  7. package/lib/cjs/locale/fa-IR.js +1 -2
  8. package/lib/cjs/locale/fr-FR.js +1 -2
  9. package/lib/cjs/locale/id-ID.js +1 -2
  10. package/lib/cjs/locale/it-IT.js +1 -2
  11. package/lib/cjs/locale/ja-JP.js +1 -2
  12. package/lib/cjs/locale/ko-KR.js +1 -2
  13. package/lib/cjs/locale/pl-PL.js +1 -2
  14. package/lib/cjs/locale/pt-BR.js +1 -2
  15. package/lib/cjs/locale/ru-RU.js +1 -2
  16. package/lib/cjs/locale/sk-SK.js +1 -2
  17. package/lib/cjs/locale/vi-VN.js +1 -2
  18. package/lib/cjs/locale/zh-CN.js +1 -2
  19. package/lib/cjs/locale/zh-HK.js +1 -2
  20. package/lib/cjs/locale/zh-TW.js +1 -2
  21. package/lib/es/index.js +39 -66
  22. package/lib/es/locale/ar-SA.js +1 -2
  23. package/lib/es/locale/ca-ES.js +1 -2
  24. package/lib/es/locale/de-DE.js +1 -2
  25. package/lib/es/locale/en-US.js +1 -2
  26. package/lib/es/locale/es-ES.js +1 -2
  27. package/lib/es/locale/fa-IR.js +1 -2
  28. package/lib/es/locale/fr-FR.js +1 -2
  29. package/lib/es/locale/id-ID.js +1 -2
  30. package/lib/es/locale/it-IT.js +1 -2
  31. package/lib/es/locale/ja-JP.js +1 -2
  32. package/lib/es/locale/ko-KR.js +1 -2
  33. package/lib/es/locale/pl-PL.js +1 -2
  34. package/lib/es/locale/pt-BR.js +1 -2
  35. package/lib/es/locale/ru-RU.js +1 -2
  36. package/lib/es/locale/sk-SK.js +1 -2
  37. package/lib/es/locale/vi-VN.js +1 -2
  38. package/lib/es/locale/zh-CN.js +1 -2
  39. package/lib/es/locale/zh-HK.js +1 -2
  40. package/lib/es/locale/zh-TW.js +1 -2
  41. package/lib/index.js +39 -66
  42. package/lib/locale/ar-SA.js +1 -2
  43. package/lib/locale/ca-ES.js +1 -2
  44. package/lib/locale/de-DE.js +1 -2
  45. package/lib/locale/en-US.js +1 -2
  46. package/lib/locale/es-ES.js +1 -2
  47. package/lib/locale/fa-IR.js +1 -2
  48. package/lib/locale/fr-FR.js +1 -2
  49. package/lib/locale/id-ID.js +1 -2
  50. package/lib/locale/it-IT.js +1 -2
  51. package/lib/locale/ja-JP.js +1 -2
  52. package/lib/locale/ko-KR.js +1 -2
  53. package/lib/locale/pl-PL.js +1 -2
  54. package/lib/locale/pt-BR.js +1 -2
  55. package/lib/locale/ru-RU.js +1 -2
  56. package/lib/locale/sk-SK.js +1 -2
  57. package/lib/locale/vi-VN.js +1 -2
  58. package/lib/locale/zh-CN.js +1 -2
  59. package/lib/locale/zh-HK.js +1 -2
  60. package/lib/locale/zh-TW.js +1 -2
  61. package/lib/types/menu/menu.d.ts +1 -0
  62. package/lib/types/menu/mobile-menu.d.ts +1 -1
  63. package/lib/umd/index.js +3 -3
  64. package/package.json +18 -18
package/lib/index.js CHANGED
@@ -6,14 +6,14 @@ import { AddCommentCommand, AddCommentMutation, DeleteCommentCommand, DeleteComm
6
6
  import { MobileThreadCommentPanel, SetActiveCommentOperation, ThreadCommentCanvasOverlay, ThreadCommentDraftService, ThreadCommentPanel, ThreadCommentPanelService, ThreadCommentTree, ThreadCommentTreeLocation, UniverThreadCommentMobileUIPlugin, UniverThreadCommentUIPlugin } from "@univerjs/thread-comment-ui";
7
7
  import { ComponentManager, ContextMenuGroup, ContextMenuPosition, FloatingObjectToolbarPosition, IMenuManagerService, IShortcutService, ISidebarService, IconManager, KeyCode, MenuItemType, MetaKeys, RibbonInsertGroup, UniverMobileUIPlugin, getMenuHiddenObservable, useDependency, useObservable } from "@univerjs/ui";
8
8
  import { COPY_TYPE, CellPopupManagerService, HoverManagerService, IEditorBridgeService, IMarkSelectionService, ISheetClipboardService, ScrollToRangeOperation, SheetCanvasPopManagerService, SheetSkeletonManagerService, UniverSheetsMobileUIPlugin, UniverSheetsUIPlugin, deriveStateFromActiveSheet$, getCurrentRangeDisable$, whenSheetEditorFocused } from "@univerjs/sheets-ui";
9
- import { BehaviorSubject, combineLatest, debounceTime, map, startWith } from "rxjs";
9
+ import { BehaviorSubject, combineLatest, debounceTime, defer, distinctUntilChanged, map, startWith } from "rxjs";
10
10
  import { IRenderManagerService, UniverRenderEnginePlugin } from "@univerjs/engine-render";
11
11
  import { CommentIcon, InsertCommentDoubleIcon } from "@univerjs/icons";
12
12
  import { serializeRange, singleReferenceToGrid } from "@univerjs/engine-formula";
13
13
  import { useCallback, useEffect, useMemo, useRef } from "react";
14
14
  import { jsx } from "react/jsx-runtime";
15
15
 
16
- //#region src/types/const.ts
16
+ // src/types/const.ts
17
17
  /**
18
18
  * Copyright 2023-present DreamNum Co., Ltd.
19
19
  *
@@ -34,8 +34,7 @@ const SHEETS_THREAD_COMMENT_PANEL = "univer.sheet.thread-comment-panel";
34
34
  const SHOW_ADD_SHEET_COMMENT_OPERATION_ID = "sheet.operation.show-comment-modal";
35
35
  const PLUGIN_NAME = "SHEET_THREAD_COMMENT_UI_PLUGIN";
36
36
 
37
- //#endregion
38
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
37
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
39
38
  function _typeof(o) {
40
39
  "@babel/helpers - typeof";
41
40
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -45,8 +44,7 @@ function _typeof(o) {
45
44
  }, _typeof(o);
46
45
  }
47
46
 
48
- //#endregion
49
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
47
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
50
48
  function toPrimitive(t, r) {
51
49
  if ("object" != _typeof(t) || !t) return t;
52
50
  var e = t[Symbol.toPrimitive];
@@ -58,15 +56,13 @@ function toPrimitive(t, r) {
58
56
  return ("string" === r ? String : Number)(t);
59
57
  }
60
58
 
61
- //#endregion
62
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
59
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
63
60
  function toPropertyKey(t) {
64
61
  var i = toPrimitive(t, "string");
65
62
  return "symbol" == _typeof(i) ? i : i + "";
66
63
  }
67
64
 
68
- //#endregion
69
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
65
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
70
66
  function _defineProperty(e, r, t) {
71
67
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
72
68
  value: t,
@@ -76,16 +72,14 @@ function _defineProperty(e, r, t) {
76
72
  }) : e[r] = t, e;
77
73
  }
78
74
 
79
- //#endregion
80
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
75
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/decorateParam.js
81
76
  function __decorateParam(paramIndex, decorator) {
82
77
  return function(target, key) {
83
78
  decorator(target, key, paramIndex);
84
79
  };
85
80
  }
86
81
 
87
- //#endregion
88
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
82
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
89
83
  function __decorate(decorators, target, key, desc) {
90
84
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
91
85
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -93,8 +87,7 @@ function __decorate(decorators, target, key, desc) {
93
87
  return c > 3 && r && Object.defineProperty(target, key, r), r;
94
88
  }
95
89
 
96
- //#endregion
97
- //#region src/services/sheets-thread-comment-popup.service.ts
90
+ // src/services/sheets-thread-comment-popup.service.ts
98
91
  let SheetsThreadCommentPopupService = class SheetsThreadCommentPopupService extends Disposable {
99
92
  get activePopup() {
100
93
  return this._activePopup;
@@ -166,8 +159,7 @@ let SheetsThreadCommentPopupService = class SheetsThreadCommentPopupService exte
166
159
  };
167
160
  SheetsThreadCommentPopupService = __decorate([__decorateParam(0, Inject(SheetCanvasPopManagerService)), __decorateParam(1, Inject(CellPopupManagerService))], SheetsThreadCommentPopupService);
168
161
 
169
- //#endregion
170
- //#region src/commands/operations/comment.operation.ts
162
+ // src/commands/operations/comment.operation.ts
171
163
  const ShowAddSheetCommentModalOperation = {
172
164
  type: CommandType.OPERATION,
173
165
  id: SHOW_ADD_SHEET_COMMENT_OPERATION_ID,
@@ -262,8 +254,7 @@ const AddSheetDrawingCommentOperation = {
262
254
  }
263
255
  };
264
256
 
265
- //#endregion
266
- //#region src/menu/menu.ts
257
+ // src/menu/menu.ts
267
258
  function getDrawingCommentDisable$(accessor) {
268
259
  const univerInstanceService = accessor.get(IUniverInstanceService);
269
260
  const permissionService = accessor.get(IPermissionService);
@@ -298,7 +289,12 @@ const threadCommentMenuFactory = (accessor) => {
298
289
  };
299
290
  };
300
291
  const threadPanelMenuFactory = (accessor) => {
292
+ const sidebarService = accessor.get(ISidebarService);
301
293
  return {
294
+ activated$: defer(() => sidebarService.sidebarOptions$.pipe(startWith(sidebarService.options), map((options) => {
295
+ var _options$children;
296
+ return options.visible === true && ((_options$children = options.children) === null || _options$children === void 0 ? void 0 : _options$children.label) === "univer.sheet.thread-comment-panel";
297
+ }), distinctUntilChanged())),
302
298
  id: ToggleSheetCommentPanelOperation.id,
303
299
  type: MenuItemType.BUTTON,
304
300
  icon: "CommentIcon",
@@ -318,8 +314,7 @@ const AddCommentShortcut = {
318
314
  preconditions: whenSheetEditorFocused
319
315
  };
320
316
 
321
- //#endregion
322
- //#region src/menu/schema.ts
317
+ // src/menu/schema.ts
323
318
  const menuSchema = {
324
319
  [RibbonInsertGroup.MEDIA]: {
325
320
  [ToggleSheetCommentPanelOperation.id]: {
@@ -355,13 +350,11 @@ const menuSchema = {
355
350
  } } }
356
351
  };
357
352
 
358
- //#endregion
359
- //#region package.json
353
+ // package.json
360
354
  var name = "@univerjs/sheets-thread-comment-ui";
361
- var version = "1.3.0";
355
+ var version = "1.4.0";
362
356
 
363
- //#endregion
364
- //#region src/services/mobile/mobile-sheet-comment-draft.service.ts
357
+ // src/services/mobile/mobile-sheet-comment-draft.service.ts
365
358
  var MobileSheetCommentDraftService = class extends Disposable {
366
359
  constructor() {
367
360
  super();
@@ -380,8 +373,7 @@ var MobileSheetCommentDraftService = class extends Disposable {
380
373
  }
381
374
  };
382
375
 
383
- //#endregion
384
- //#region src/commands/operations/mobile/show-add-sheet-comment.operation.ts
376
+ // src/commands/operations/mobile/show-add-sheet-comment.operation.ts
385
377
  const ShowAddSheetCommentMobileOperation = {
386
378
  type: CommandType.OPERATION,
387
379
  id: SHOW_ADD_SHEET_COMMENT_OPERATION_ID,
@@ -419,14 +411,12 @@ const ShowAddSheetCommentMobileOperation = {
419
411
  }
420
412
  };
421
413
 
422
- //#endregion
423
- //#region src/config/config.ts
414
+ // src/config/config.ts
424
415
  const SHEETS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY = "sheets-thread-comment.config";
425
416
  const configSymbol = Symbol(SHEETS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY);
426
417
  const defaultPluginConfig = {};
427
418
 
428
- //#endregion
429
- //#region src/views/SheetsThreadCommentPanel.tsx
419
+ // src/views/SheetsThreadCommentPanel.tsx
430
420
  const SheetsThreadCommentPanel = ({ ThreadCommentPanelComponent = ThreadCommentPanel } = {}) => {
431
421
  var _workbook$getActiveSh;
432
422
  const markSelectionService = useDependency(IMarkSelectionService);
@@ -572,8 +562,7 @@ const SheetsThreadCommentPanel = ({ ThreadCommentPanelComponent = ThreadCommentP
572
562
  });
573
563
  };
574
564
 
575
- //#endregion
576
- //#region src/views/mobile/MobileSheetsThreadCommentPanel.tsx
565
+ // src/views/mobile/MobileSheetsThreadCommentPanel.tsx
577
566
  function MobileSheetsThreadCommentPanelContent(props) {
578
567
  const draftService = useDependency(MobileSheetCommentDraftService);
579
568
  const userManagerService = useDependency(UserManagerService);
@@ -604,8 +593,7 @@ function MobileSheetsThreadCommentPanel() {
604
593
  return /* @__PURE__ */ jsx(SheetsThreadCommentPanel, { ThreadCommentPanelComponent: MobileSheetsThreadCommentPanelContent });
605
594
  }
606
595
 
607
- //#endregion
608
- //#region src/controllers/mobile/components.controller.ts
596
+ // src/controllers/mobile/components.controller.ts
609
597
  /**
610
598
  * Copyright 2023-present DreamNum Co., Ltd.
611
599
  *
@@ -635,8 +623,7 @@ let MobileComponentsController = class MobileComponentsController extends Dispos
635
623
  };
636
624
  MobileComponentsController = __decorate([__decorateParam(0, Inject(ComponentManager)), __decorateParam(1, Inject(IconManager))], MobileComponentsController);
637
625
 
638
- //#endregion
639
- //#region src/menu/mobile-menu.ts
626
+ // src/menu/mobile-menu.ts
640
627
  function getMobileThreadCommentMenuTitle(accessor) {
641
628
  var _selectionService$get;
642
629
  const selectionService = accessor.get(SheetsSelectionsService);
@@ -662,8 +649,7 @@ const mobileContextThreadCommentMenuFactory = (accessor) => ({
662
649
  title: getMobileThreadCommentMenuTitle(accessor)
663
650
  });
664
651
 
665
- //#endregion
666
- //#region src/menu/mobile-schema.ts
652
+ // src/menu/mobile-schema.ts
667
653
  const mobileMenuSchema = {
668
654
  [RibbonInsertGroup.MEDIA]: {
669
655
  [ToggleSheetCommentPanelOperation.id]: {
@@ -699,8 +685,7 @@ const mobileMenuSchema = {
699
685
  } } }
700
686
  };
701
687
 
702
- //#endregion
703
- //#region src/controllers/mobile/sheets-thread-comment.controller.ts
688
+ // src/controllers/mobile/sheets-thread-comment.controller.ts
704
689
  /**
705
690
  * Copyright 2023-present DreamNum Co., Ltd.
706
691
  *
@@ -724,8 +709,7 @@ let SheetsThreadCommentMobileController = class SheetsThreadCommentMobileControl
724
709
  };
725
710
  SheetsThreadCommentMobileController = __decorate([__decorateParam(0, IMenuManagerService)], SheetsThreadCommentMobileController);
726
711
 
727
- //#endregion
728
- //#region src/controllers/render-controllers/render.controller.ts
712
+ // src/controllers/render-controllers/render.controller.ts
729
713
  let SheetsThreadCommentRenderController = class SheetsThreadCommentRenderController extends Disposable {
730
714
  constructor(_sheetInterceptorService, _sheetsThreadCommentModel, _univerInstanceService, _renderManagerService) {
731
715
  super();
@@ -778,8 +762,7 @@ SheetsThreadCommentRenderController = __decorate([
778
762
  __decorateParam(3, IRenderManagerService)
779
763
  ], SheetsThreadCommentRenderController);
780
764
 
781
- //#endregion
782
- //#region src/controllers/sheets-thread-comment-copy-paste.controller.ts
765
+ // src/controllers/sheets-thread-comment-copy-paste.controller.ts
783
766
  const transformRef = (ref, source, target) => {
784
767
  const refObj = singleReferenceToGrid(ref);
785
768
  const offsetRow = target.row - source.row;
@@ -902,8 +885,7 @@ SheetsThreadCommentCopyPasteController = __decorate([
902
885
  __decorateParam(2, IThreadCommentDataSourceService)
903
886
  ], SheetsThreadCommentCopyPasteController);
904
887
 
905
- //#endregion
906
- //#region src/controllers/sheets-thread-comment-permission.controller.ts
888
+ // src/controllers/sheets-thread-comment-permission.controller.ts
907
889
  let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissionController extends Disposable {
908
890
  constructor(_localeService, _commandService, _sheetPermissionCheckController, _sheetsThreadCommentModel) {
909
891
  super();
@@ -963,8 +945,7 @@ SheetsThreadCommentPermissionController = __decorate([
963
945
  __decorateParam(3, Inject(SheetsThreadCommentModel))
964
946
  ], SheetsThreadCommentPermissionController);
965
947
 
966
- //#endregion
967
- //#region src/mobile-plugin.ts
948
+ // src/mobile-plugin.ts
968
949
  let UniverSheetsThreadCommentMobileUIPlugin = class UniverSheetsThreadCommentMobileUIPlugin extends Plugin {
969
950
  constructor(_config = defaultPluginConfig, _injector, _commandService, _configService) {
970
951
  super();
@@ -1014,8 +995,7 @@ UniverSheetsThreadCommentMobileUIPlugin = __decorate([
1014
995
  __decorateParam(3, IConfigService)
1015
996
  ], UniverSheetsThreadCommentMobileUIPlugin);
1016
997
 
1017
- //#endregion
1018
- //#region src/views/SheetsThreadCommentCell.tsx
998
+ // src/views/SheetsThreadCommentCell.tsx
1019
999
  const SheetsThreadCommentCell = () => {
1020
1000
  const univerInstanceService = useDependency(IUniverInstanceService);
1021
1001
  const sheetsThreadCommentPopupService = useDependency(SheetsThreadCommentPopupService);
@@ -1054,8 +1034,7 @@ const SheetsThreadCommentCell = () => {
1054
1034
  });
1055
1035
  };
1056
1036
 
1057
- //#endregion
1058
- //#region src/controllers/components.controller.ts
1037
+ // src/controllers/components.controller.ts
1059
1038
  /**
1060
1039
  * Copyright 2023-present DreamNum Co., Ltd.
1061
1040
  *
@@ -1093,8 +1072,7 @@ let ComponentsController = class ComponentsController extends Disposable {
1093
1072
  };
1094
1073
  ComponentsController = __decorate([__decorateParam(0, Inject(ComponentManager)), __decorateParam(1, Inject(IconManager))], ComponentsController);
1095
1074
 
1096
- //#endregion
1097
- //#region src/controllers/render-controllers/drawing.render-controller.ts
1075
+ // src/controllers/render-controllers/drawing.render-controller.ts
1098
1076
  const SHEET_COMMENT_DRAWING_OVERLAY_KEY = "sheet-thread-comment-drawing-overlay";
1099
1077
  const SHEET_COMMENT_DRAWING_OVERLAY_LAYER_INDEX = 10100;
1100
1078
  let SheetsThreadCommentDrawingRenderController = class SheetsThreadCommentDrawingRenderController extends RxDisposable {
@@ -1227,8 +1205,7 @@ SheetsThreadCommentDrawingRenderController = __decorate([
1227
1205
  __decorateParam(5, Inject(ThemeService))
1228
1206
  ], SheetsThreadCommentDrawingRenderController);
1229
1207
 
1230
- //#endregion
1231
- //#region src/controllers/sheets-thread-comment-hover.controller.ts
1208
+ // src/controllers/sheets-thread-comment-hover.controller.ts
1232
1209
  /**
1233
1210
  * Copyright 2023-present DreamNum Co., Ltd.
1234
1211
  *
@@ -1292,8 +1269,7 @@ SheetsThreadCommentHoverController = __decorate([
1292
1269
  __decorateParam(3, Inject(SheetPermissionCheckController))
1293
1270
  ], SheetsThreadCommentHoverController);
1294
1271
 
1295
- //#endregion
1296
- //#region src/controllers/sheets-thread-comment-popup.controller.ts
1272
+ // src/controllers/sheets-thread-comment-popup.controller.ts
1297
1273
  function resolveFocusedSheetComment(activeComment, hoveredComment, unitId, subUnitId) {
1298
1274
  for (const comment of [hoveredComment, activeComment]) if (comment && comment.unitId === unitId && comment.subUnitId === subUnitId) return comment;
1299
1275
  }
@@ -1475,8 +1451,7 @@ SheetsThreadCommentPopupController = __decorate([
1475
1451
  __decorateParam(9, IRenderManagerService)
1476
1452
  ], SheetsThreadCommentPopupController);
1477
1453
 
1478
- //#endregion
1479
- //#region src/controllers/sheets-thread-comment.controller.ts
1454
+ // src/controllers/sheets-thread-comment.controller.ts
1480
1455
  /**
1481
1456
  * Copyright 2023-present DreamNum Co., Ltd.
1482
1457
  *
@@ -1509,8 +1484,7 @@ let SheetsThreadCommentController = class SheetsThreadCommentController extends
1509
1484
  };
1510
1485
  SheetsThreadCommentController = __decorate([__decorateParam(0, IMenuManagerService), __decorateParam(1, IShortcutService)], SheetsThreadCommentController);
1511
1486
 
1512
- //#endregion
1513
- //#region src/plugin.ts
1487
+ // src/plugin.ts
1514
1488
  let UniverSheetsThreadCommentUIPlugin = class UniverSheetsThreadCommentUIPlugin extends Plugin {
1515
1489
  constructor(_config = defaultPluginConfig, _injector, _commandService, _renderManagerService, _configService) {
1516
1490
  super();
@@ -1570,5 +1544,4 @@ UniverSheetsThreadCommentUIPlugin = __decorate([
1570
1544
  __decorateParam(4, IConfigService)
1571
1545
  ], UniverSheetsThreadCommentUIPlugin);
1572
1546
 
1573
- //#endregion
1574
1547
  export { SheetsThreadCommentPopupService, menuSchema as SheetsThreadCommentUIMenuSchema, ShowAddSheetCommentModalOperation, ToggleSheetCommentPanelOperation, UniverSheetsThreadCommentMobileUIPlugin, UniverSheetsThreadCommentUIPlugin };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ar-SA.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ca-ES.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/de-DE.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/en-US.ts
1
+ // src/locale/en-US.ts
2
2
  /**
3
3
  * Copyright 2023-present DreamNum Co., Ltd.
4
4
  *
@@ -24,5 +24,4 @@ const locale = { "sheets-thread-comment-ui": {
24
24
  }
25
25
  } };
26
26
 
27
- //#endregion
28
27
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/es-ES.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/fa-IR.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/fr-FR.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/id-ID.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/it-IT.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ja-JP.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ko-KR.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/pl-PL.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/pt-BR.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ru-RU.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/sk-SK.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/vi-VN.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-CN.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-HK.ts
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
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-TW.ts
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
  export { locale as default };
@@ -35,6 +35,7 @@ export declare const threadCommentMenuFactory: (accessor: IAccessor) => {
35
35
  disabled$: import("rxjs").Observable<boolean>;
36
36
  };
37
37
  export declare const threadPanelMenuFactory: (accessor: IAccessor) => {
38
+ activated$: import("rxjs").Observable<boolean>;
38
39
  id: string;
39
40
  type: MenuItemType;
40
41
  icon: string;
@@ -26,10 +26,10 @@ export declare const mobileThreadCommentMenuFactory: (accessor: IAccessor) => {
26
26
  disabled$: import("rxjs").Observable<boolean>;
27
27
  };
28
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
29
  id: string;
31
30
  type: MenuItemType;
32
31
  icon: string;
33
32
  hidden$: import("rxjs").Observable<boolean>;
34
33
  disabled$: import("rxjs").Observable<boolean>;
34
+ title: "sheets-thread-comment-ui.menu.addComment" | "sheets-thread-comment-ui.menu.commentManagement" | "sheets-thread-comment-ui.menu.openComments" | "sheets-thread-comment-ui.panel.title" | "sheets-thread-comment-ui.permission.commentErr";
35
35
  };