@univerjs/sheets-thread-comment-ui 0.23.0 → 0.24.0-insiders.20260528-29f582d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +13 -13
- package/lib/cjs/locale/ar-SA.js +9 -0
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +9 -0
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +9 -0
- package/lib/cjs/locale/it-IT.js +9 -0
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +9 -0
- package/lib/cjs/locale/pt-BR.js +9 -0
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +9 -0
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +13 -13
- package/lib/es/locale/ar-SA.js +8 -0
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +8 -0
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +8 -0
- package/lib/es/locale/it-IT.js +8 -0
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +8 -0
- package/lib/es/locale/pt-BR.js +8 -0
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +8 -0
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +13 -13
- package/lib/locale/ar-SA.js +8 -0
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +8 -0
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +8 -0
- package/lib/locale/it-IT.js +8 -0
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +8 -0
- package/lib/locale/pt-BR.js +8 -0
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +8 -0
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/locale/ar-SA.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +1 -1
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- 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 -0
- package/lib/umd/locale/it-IT.js +1 -0
- 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 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- 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 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -12
- package/LICENSE +0 -176
package/lib/cjs/index.js
CHANGED
|
@@ -224,7 +224,7 @@ const ToggleSheetCommentPanelOperation = {
|
|
|
224
224
|
panelService.setPanelVisible(false);
|
|
225
225
|
} else {
|
|
226
226
|
sidebarService.open({
|
|
227
|
-
header: { title: "
|
|
227
|
+
header: { title: "sheets-thread-comment-ui.panel.title" },
|
|
228
228
|
children: { label: SHEETS_THREAD_COMMENT_PANEL },
|
|
229
229
|
width: 360
|
|
230
230
|
});
|
|
@@ -237,7 +237,7 @@ const ToggleSheetCommentPanelOperation = {
|
|
|
237
237
|
//#endregion
|
|
238
238
|
//#region package.json
|
|
239
239
|
var name = "@univerjs/sheets-thread-comment-ui";
|
|
240
|
-
var version = "0.
|
|
240
|
+
var version = "0.24.0-insiders.20260528-29f582d";
|
|
241
241
|
|
|
242
242
|
//#endregion
|
|
243
243
|
//#region src/config/config.ts
|
|
@@ -281,7 +281,7 @@ let SheetsThreadCommentRenderController = class SheetsThreadCommentRenderControl
|
|
|
281
281
|
_initSkeletonChange() {
|
|
282
282
|
const markSkeletonDirty = () => {
|
|
283
283
|
var _currentRender$mainCo;
|
|
284
|
-
const workbook = this._univerInstanceService.
|
|
284
|
+
const workbook = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
|
|
285
285
|
if (!workbook) return;
|
|
286
286
|
const unitId = workbook.getUnitId();
|
|
287
287
|
const currentRender = this._renderManagerService.getRenderById(unitId);
|
|
@@ -505,7 +505,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
|
|
|
505
505
|
if (!this._sheetPermissionCheckController.permissionCheckWithoutRange({
|
|
506
506
|
workbookTypes: [_univerjs_sheets.WorkbookCommentPermission],
|
|
507
507
|
worksheetTypes: [_univerjs_sheets.WorksheetViewPermission]
|
|
508
|
-
})) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.
|
|
508
|
+
})) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
|
|
509
509
|
} else if (id === _univerjs_thread_comment.AddCommentCommand.id) {
|
|
510
510
|
const { unitId, subUnitId, comment } = command.params;
|
|
511
511
|
const { row, column } = (0, _univerjs_engine_formula.singleReferenceToGrid)(comment.ref);
|
|
@@ -518,7 +518,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
|
|
|
518
518
|
startColumn: column,
|
|
519
519
|
endRow: row,
|
|
520
520
|
endColumn: column
|
|
521
|
-
}], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.
|
|
521
|
+
}], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
|
|
522
522
|
} else if (id === _univerjs_thread_comment.UpdateCommentCommand.id) {
|
|
523
523
|
const { unitId, subUnitId, payload } = command.params;
|
|
524
524
|
const { commentId } = payload;
|
|
@@ -534,7 +534,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
|
|
|
534
534
|
startColumn: column,
|
|
535
535
|
endRow: row,
|
|
536
536
|
endColumn: column
|
|
537
|
-
}], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.
|
|
537
|
+
}], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
|
|
538
538
|
}
|
|
539
539
|
} else if (id === _univerjs_thread_comment.ResolveCommentCommand.id || id === _univerjs_thread_comment.DeleteCommentCommand.id || id === _univerjs_thread_comment.DeleteCommentTreeCommand.id) {
|
|
540
540
|
const { unitId, subUnitId, commentId } = command.params;
|
|
@@ -550,7 +550,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
|
|
|
550
550
|
startColumn: column,
|
|
551
551
|
endRow: row,
|
|
552
552
|
endColumn: column
|
|
553
|
-
}], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.
|
|
553
|
+
}], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}));
|
|
@@ -642,7 +642,7 @@ let SheetsThreadCommentPopupController = class SheetsThreadCommentPopupControlle
|
|
|
642
642
|
const { unitId, subUnitId, commentId, trigger } = commentInfo;
|
|
643
643
|
const comment = this._sheetsThreadCommentModel.getComment(unitId, subUnitId, commentId);
|
|
644
644
|
if (!comment || comment.resolved) return;
|
|
645
|
-
const currentUnit = this._univerInstanceService.
|
|
645
|
+
const currentUnit = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
|
|
646
646
|
if (!currentUnit) return;
|
|
647
647
|
if (currentUnit.getUnitId() !== unitId) return;
|
|
648
648
|
this._isSwitchToCommenting = true;
|
|
@@ -701,7 +701,7 @@ let SheetsThreadCommentPopupController = class SheetsThreadCommentPopupControlle
|
|
|
701
701
|
if (!comment) return;
|
|
702
702
|
const { row, column } = (0, _univerjs_engine_formula.singleReferenceToGrid)(comment.ref);
|
|
703
703
|
if (Number.isNaN(row) || Number.isNaN(column)) return null;
|
|
704
|
-
const worksheet = (_this$_univerInstance = this._univerInstanceService.
|
|
704
|
+
const worksheet = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getSheetBySheetId(subUnitId);
|
|
705
705
|
const mergeInfo = (_worksheet$getMergedC = worksheet === null || worksheet === void 0 ? void 0 : worksheet.getMergedCell(row, column)) !== null && _worksheet$getMergedC !== void 0 ? _worksheet$getMergedC : {
|
|
706
706
|
startColumn: column,
|
|
707
707
|
endColumn: column,
|
|
@@ -746,7 +746,7 @@ const threadCommentMenuFactory = (accessor) => {
|
|
|
746
746
|
id: ShowAddSheetCommentModalOperation.id,
|
|
747
747
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
748
748
|
icon: "CommentIcon",
|
|
749
|
-
title: "
|
|
749
|
+
title: "sheets-thread-comment-ui.menu.addComment",
|
|
750
750
|
hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
|
|
751
751
|
disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
|
|
752
752
|
workbookTypes: [_univerjs_sheets.WorkbookCommentPermission],
|
|
@@ -760,7 +760,7 @@ const threadPanelMenuFactory = (accessor) => {
|
|
|
760
760
|
id: ToggleSheetCommentPanelOperation.id,
|
|
761
761
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
762
762
|
icon: "CommentIcon",
|
|
763
|
-
tooltip: "
|
|
763
|
+
tooltip: "sheets-thread-comment-ui.menu.commentManagement",
|
|
764
764
|
disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
|
|
765
765
|
workbookTypes: [_univerjs_sheets.WorkbookCommentPermission],
|
|
766
766
|
worksheetTypes: [_univerjs_sheets.WorksheetViewPermission],
|
|
@@ -805,7 +805,7 @@ const SheetsThreadCommentCell = () => {
|
|
|
805
805
|
};
|
|
806
806
|
const getSubUnitName = (id) => {
|
|
807
807
|
var _univerInstanceServic, _univerInstanceServic2;
|
|
808
|
-
return (_univerInstanceServic = (_univerInstanceServic2 = univerInstanceService.
|
|
808
|
+
return (_univerInstanceServic = (_univerInstanceServic2 = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic2 === void 0 || (_univerInstanceServic2 = _univerInstanceServic2.getSheetBySheetId(id)) === null || _univerInstanceServic2 === void 0 ? void 0 : _univerInstanceServic2.getName()) !== null && _univerInstanceServic !== void 0 ? _univerInstanceServic : "";
|
|
809
809
|
};
|
|
810
810
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_thread_comment_ui.ThreadCommentTree, {
|
|
811
811
|
onClick: () => {
|
|
@@ -830,7 +830,7 @@ const SheetsThreadCommentPanel = () => {
|
|
|
830
830
|
const markSelectionService = (0, _univerjs_ui.useDependency)(_univerjs_sheets_ui.IMarkSelectionService);
|
|
831
831
|
const univerInstanceService = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService);
|
|
832
832
|
const sheetsThreadCommentPopupService = (0, _univerjs_ui.useDependency)(SheetsThreadCommentPopupService);
|
|
833
|
-
const workbook = univerInstanceService.
|
|
833
|
+
const workbook = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
|
|
834
834
|
const unitId = workbook.getUnitId();
|
|
835
835
|
const commandService = (0, _univerjs_ui.useDependency)(_univerjs_core.ICommandService);
|
|
836
836
|
const subUnitId$ = (0, react.useMemo)(() => workbook.activeSheet$.pipe((0, rxjs.map)((i) => i === null || i === void 0 ? void 0 : i.getSheetId())), [workbook.activeSheet$]);
|
package/lib/cjs/locale/ca-ES.js
CHANGED
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
const locale = {
|
|
18
|
+
const locale = { "sheets-thread-comment-ui": { menu: {
|
|
19
19
|
addComment: "Add Comment",
|
|
20
20
|
commentManagement: "Comment Management"
|
|
21
21
|
} } };
|
package/lib/cjs/locale/es-ES.js
CHANGED
package/lib/cjs/locale/fa-IR.js
CHANGED
package/lib/cjs/locale/fr-FR.js
CHANGED
package/lib/cjs/locale/ja-JP.js
CHANGED
package/lib/cjs/locale/ko-KR.js
CHANGED
package/lib/cjs/locale/ru-RU.js
CHANGED
package/lib/cjs/locale/sk-SK.js
CHANGED
package/lib/cjs/locale/vi-VN.js
CHANGED
package/lib/cjs/locale/zh-CN.js
CHANGED
package/lib/cjs/locale/zh-TW.js
CHANGED
package/lib/es/index.js
CHANGED
|
@@ -223,7 +223,7 @@ const ToggleSheetCommentPanelOperation = {
|
|
|
223
223
|
panelService.setPanelVisible(false);
|
|
224
224
|
} else {
|
|
225
225
|
sidebarService.open({
|
|
226
|
-
header: { title: "
|
|
226
|
+
header: { title: "sheets-thread-comment-ui.panel.title" },
|
|
227
227
|
children: { label: SHEETS_THREAD_COMMENT_PANEL },
|
|
228
228
|
width: 360
|
|
229
229
|
});
|
|
@@ -236,7 +236,7 @@ const ToggleSheetCommentPanelOperation = {
|
|
|
236
236
|
//#endregion
|
|
237
237
|
//#region package.json
|
|
238
238
|
var name = "@univerjs/sheets-thread-comment-ui";
|
|
239
|
-
var version = "0.
|
|
239
|
+
var version = "0.24.0-insiders.20260528-29f582d";
|
|
240
240
|
|
|
241
241
|
//#endregion
|
|
242
242
|
//#region src/config/config.ts
|
|
@@ -280,7 +280,7 @@ let SheetsThreadCommentRenderController = class SheetsThreadCommentRenderControl
|
|
|
280
280
|
_initSkeletonChange() {
|
|
281
281
|
const markSkeletonDirty = () => {
|
|
282
282
|
var _currentRender$mainCo;
|
|
283
|
-
const workbook = this._univerInstanceService.
|
|
283
|
+
const workbook = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET);
|
|
284
284
|
if (!workbook) return;
|
|
285
285
|
const unitId = workbook.getUnitId();
|
|
286
286
|
const currentRender = this._renderManagerService.getRenderById(unitId);
|
|
@@ -504,7 +504,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
|
|
|
504
504
|
if (!this._sheetPermissionCheckController.permissionCheckWithoutRange({
|
|
505
505
|
workbookTypes: [WorkbookCommentPermission],
|
|
506
506
|
worksheetTypes: [WorksheetViewPermission]
|
|
507
|
-
})) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.
|
|
507
|
+
})) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
|
|
508
508
|
} else if (id === AddCommentCommand$1.id) {
|
|
509
509
|
const { unitId, subUnitId, comment } = command.params;
|
|
510
510
|
const { row, column } = singleReferenceToGrid(comment.ref);
|
|
@@ -517,7 +517,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
|
|
|
517
517
|
startColumn: column,
|
|
518
518
|
endRow: row,
|
|
519
519
|
endColumn: column
|
|
520
|
-
}], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.
|
|
520
|
+
}], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
|
|
521
521
|
} else if (id === UpdateCommentCommand$1.id) {
|
|
522
522
|
const { unitId, subUnitId, payload } = command.params;
|
|
523
523
|
const { commentId } = payload;
|
|
@@ -533,7 +533,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
|
|
|
533
533
|
startColumn: column,
|
|
534
534
|
endRow: row,
|
|
535
535
|
endColumn: column
|
|
536
|
-
}], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.
|
|
536
|
+
}], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
|
|
537
537
|
}
|
|
538
538
|
} else if (id === ResolveCommentCommand$1.id || id === DeleteCommentCommand$1.id || id === DeleteCommentTreeCommand$1.id) {
|
|
539
539
|
const { unitId, subUnitId, commentId } = command.params;
|
|
@@ -549,7 +549,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
|
|
|
549
549
|
startColumn: column,
|
|
550
550
|
endRow: row,
|
|
551
551
|
endColumn: column
|
|
552
|
-
}], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.
|
|
552
|
+
}], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
}));
|
|
@@ -641,7 +641,7 @@ let SheetsThreadCommentPopupController = class SheetsThreadCommentPopupControlle
|
|
|
641
641
|
const { unitId, subUnitId, commentId, trigger } = commentInfo;
|
|
642
642
|
const comment = this._sheetsThreadCommentModel.getComment(unitId, subUnitId, commentId);
|
|
643
643
|
if (!comment || comment.resolved) return;
|
|
644
|
-
const currentUnit = this._univerInstanceService.
|
|
644
|
+
const currentUnit = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET);
|
|
645
645
|
if (!currentUnit) return;
|
|
646
646
|
if (currentUnit.getUnitId() !== unitId) return;
|
|
647
647
|
this._isSwitchToCommenting = true;
|
|
@@ -700,7 +700,7 @@ let SheetsThreadCommentPopupController = class SheetsThreadCommentPopupControlle
|
|
|
700
700
|
if (!comment) return;
|
|
701
701
|
const { row, column } = singleReferenceToGrid(comment.ref);
|
|
702
702
|
if (Number.isNaN(row) || Number.isNaN(column)) return null;
|
|
703
|
-
const worksheet = (_this$_univerInstance = this._univerInstanceService.
|
|
703
|
+
const worksheet = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getSheetBySheetId(subUnitId);
|
|
704
704
|
const mergeInfo = (_worksheet$getMergedC = worksheet === null || worksheet === void 0 ? void 0 : worksheet.getMergedCell(row, column)) !== null && _worksheet$getMergedC !== void 0 ? _worksheet$getMergedC : {
|
|
705
705
|
startColumn: column,
|
|
706
706
|
endColumn: column,
|
|
@@ -745,7 +745,7 @@ const threadCommentMenuFactory = (accessor) => {
|
|
|
745
745
|
id: ShowAddSheetCommentModalOperation.id,
|
|
746
746
|
type: MenuItemType.BUTTON,
|
|
747
747
|
icon: "CommentIcon",
|
|
748
|
-
title: "
|
|
748
|
+
title: "sheets-thread-comment-ui.menu.addComment",
|
|
749
749
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
|
|
750
750
|
disabled$: getCurrentRangeDisable$(accessor, {
|
|
751
751
|
workbookTypes: [WorkbookCommentPermission],
|
|
@@ -759,7 +759,7 @@ const threadPanelMenuFactory = (accessor) => {
|
|
|
759
759
|
id: ToggleSheetCommentPanelOperation.id,
|
|
760
760
|
type: MenuItemType.BUTTON,
|
|
761
761
|
icon: "CommentIcon",
|
|
762
|
-
tooltip: "
|
|
762
|
+
tooltip: "sheets-thread-comment-ui.menu.commentManagement",
|
|
763
763
|
disabled$: getCurrentRangeDisable$(accessor, {
|
|
764
764
|
workbookTypes: [WorkbookCommentPermission],
|
|
765
765
|
worksheetTypes: [WorksheetViewPermission],
|
|
@@ -804,7 +804,7 @@ const SheetsThreadCommentCell = () => {
|
|
|
804
804
|
};
|
|
805
805
|
const getSubUnitName = (id) => {
|
|
806
806
|
var _univerInstanceServic, _univerInstanceServic2;
|
|
807
|
-
return (_univerInstanceServic = (_univerInstanceServic2 = univerInstanceService.
|
|
807
|
+
return (_univerInstanceServic = (_univerInstanceServic2 = univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic2 === void 0 || (_univerInstanceServic2 = _univerInstanceServic2.getSheetBySheetId(id)) === null || _univerInstanceServic2 === void 0 ? void 0 : _univerInstanceServic2.getName()) !== null && _univerInstanceServic !== void 0 ? _univerInstanceServic : "";
|
|
808
808
|
};
|
|
809
809
|
return /* @__PURE__ */ jsx(ThreadCommentTree, {
|
|
810
810
|
onClick: () => {
|
|
@@ -829,7 +829,7 @@ const SheetsThreadCommentPanel = () => {
|
|
|
829
829
|
const markSelectionService = useDependency(IMarkSelectionService);
|
|
830
830
|
const univerInstanceService = useDependency(IUniverInstanceService);
|
|
831
831
|
const sheetsThreadCommentPopupService = useDependency(SheetsThreadCommentPopupService);
|
|
832
|
-
const workbook = univerInstanceService.
|
|
832
|
+
const workbook = univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET);
|
|
833
833
|
const unitId = workbook.getUnitId();
|
|
834
834
|
const commandService = useDependency(ICommandService);
|
|
835
835
|
const subUnitId$ = useMemo(() => workbook.activeSheet$.pipe(map((i) => i === null || i === void 0 ? void 0 : i.getSheetId())), [workbook.activeSheet$]);
|
package/lib/es/locale/ca-ES.js
CHANGED
package/lib/es/locale/en-US.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
const locale = {
|
|
17
|
+
const locale = { "sheets-thread-comment-ui": { menu: {
|
|
18
18
|
addComment: "Add Comment",
|
|
19
19
|
commentManagement: "Comment Management"
|
|
20
20
|
} } };
|
package/lib/es/locale/es-ES.js
CHANGED
package/lib/es/locale/fa-IR.js
CHANGED
package/lib/es/locale/fr-FR.js
CHANGED
package/lib/es/locale/ja-JP.js
CHANGED
package/lib/es/locale/ko-KR.js
CHANGED
package/lib/es/locale/ru-RU.js
CHANGED
package/lib/es/locale/sk-SK.js
CHANGED
package/lib/es/locale/vi-VN.js
CHANGED
package/lib/es/locale/zh-CN.js
CHANGED
package/lib/es/locale/zh-TW.js
CHANGED