@univerjs/sheets-ui 0.24.0 → 0.25.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 (98) hide show
  1. package/lib/cjs/facade.js +3 -2
  2. package/lib/cjs/index.js +435 -379
  3. package/lib/cjs/locale/ar-SA.js +424 -0
  4. package/lib/cjs/locale/ca-ES.js +51 -91
  5. package/lib/cjs/locale/de-DE.js +424 -0
  6. package/lib/cjs/locale/en-US.js +51 -91
  7. package/lib/cjs/locale/es-ES.js +51 -91
  8. package/lib/cjs/locale/fa-IR.js +51 -91
  9. package/lib/cjs/locale/fr-FR.js +52 -92
  10. package/lib/cjs/locale/id-ID.js +424 -0
  11. package/lib/cjs/locale/it-IT.js +424 -0
  12. package/lib/cjs/locale/ja-JP.js +51 -91
  13. package/lib/cjs/locale/ko-KR.js +51 -91
  14. package/lib/cjs/locale/pl-PL.js +424 -0
  15. package/lib/cjs/locale/pt-BR.js +424 -0
  16. package/lib/cjs/locale/ru-RU.js +52 -92
  17. package/lib/cjs/locale/sk-SK.js +51 -91
  18. package/lib/cjs/locale/vi-VN.js +53 -93
  19. package/lib/cjs/locale/zh-CN.js +53 -93
  20. package/lib/cjs/locale/zh-HK.js +424 -0
  21. package/lib/cjs/locale/zh-TW.js +53 -93
  22. package/lib/es/facade.js +3 -2
  23. package/lib/es/index.js +438 -382
  24. package/lib/es/locale/ar-SA.js +423 -0
  25. package/lib/es/locale/ca-ES.js +51 -91
  26. package/lib/es/locale/de-DE.js +423 -0
  27. package/lib/es/locale/en-US.js +51 -91
  28. package/lib/es/locale/es-ES.js +51 -91
  29. package/lib/es/locale/fa-IR.js +51 -91
  30. package/lib/es/locale/fr-FR.js +52 -92
  31. package/lib/es/locale/id-ID.js +423 -0
  32. package/lib/es/locale/it-IT.js +423 -0
  33. package/lib/es/locale/ja-JP.js +51 -91
  34. package/lib/es/locale/ko-KR.js +51 -91
  35. package/lib/es/locale/pl-PL.js +423 -0
  36. package/lib/es/locale/pt-BR.js +423 -0
  37. package/lib/es/locale/ru-RU.js +52 -92
  38. package/lib/es/locale/sk-SK.js +51 -91
  39. package/lib/es/locale/vi-VN.js +53 -93
  40. package/lib/es/locale/zh-CN.js +53 -93
  41. package/lib/es/locale/zh-HK.js +423 -0
  42. package/lib/es/locale/zh-TW.js +53 -93
  43. package/lib/facade.js +3 -2
  44. package/lib/index.css +0 -5
  45. package/lib/index.js +438 -382
  46. package/lib/locale/ar-SA.js +423 -0
  47. package/lib/locale/ca-ES.js +51 -91
  48. package/lib/locale/de-DE.js +423 -0
  49. package/lib/locale/en-US.js +51 -91
  50. package/lib/locale/es-ES.js +51 -91
  51. package/lib/locale/fa-IR.js +51 -91
  52. package/lib/locale/fr-FR.js +52 -92
  53. package/lib/locale/id-ID.js +423 -0
  54. package/lib/locale/it-IT.js +423 -0
  55. package/lib/locale/ja-JP.js +51 -91
  56. package/lib/locale/ko-KR.js +51 -91
  57. package/lib/locale/pl-PL.js +423 -0
  58. package/lib/locale/pt-BR.js +423 -0
  59. package/lib/locale/ru-RU.js +52 -92
  60. package/lib/locale/sk-SK.js +51 -91
  61. package/lib/locale/vi-VN.js +53 -93
  62. package/lib/locale/zh-CN.js +53 -93
  63. package/lib/locale/zh-HK.js +423 -0
  64. package/lib/locale/zh-TW.js +53 -93
  65. package/lib/types/facade/f-range.d.ts +16 -8
  66. package/lib/types/facade/f-workbook.d.ts +2 -1
  67. package/lib/types/facade/f-worksheet.d.ts +32 -16
  68. package/lib/types/locale/ar-SA.d.ts +18 -0
  69. package/lib/types/locale/de-DE.d.ts +18 -0
  70. package/lib/types/locale/en-US.d.ts +406 -442
  71. package/lib/types/locale/id-ID.d.ts +18 -0
  72. package/lib/types/locale/it-IT.d.ts +18 -0
  73. package/lib/types/locale/pl-PL.d.ts +18 -0
  74. package/lib/types/locale/pt-BR.d.ts +18 -0
  75. package/lib/types/locale/zh-HK.d.ts +18 -0
  76. package/lib/types/views/dropdown/list-dropdown/utils.d.ts +16 -0
  77. package/lib/umd/facade.js +1 -1
  78. package/lib/umd/index.js +10 -7
  79. package/lib/umd/locale/ar-SA.js +1 -0
  80. package/lib/umd/locale/ca-ES.js +1 -1
  81. package/lib/umd/locale/de-DE.js +1 -0
  82. package/lib/umd/locale/en-US.js +1 -1
  83. package/lib/umd/locale/es-ES.js +1 -1
  84. package/lib/umd/locale/fa-IR.js +1 -1
  85. package/lib/umd/locale/fr-FR.js +1 -1
  86. package/lib/umd/locale/id-ID.js +1 -0
  87. package/lib/umd/locale/it-IT.js +1 -0
  88. package/lib/umd/locale/ja-JP.js +1 -1
  89. package/lib/umd/locale/ko-KR.js +1 -1
  90. package/lib/umd/locale/pl-PL.js +1 -0
  91. package/lib/umd/locale/pt-BR.js +1 -0
  92. package/lib/umd/locale/ru-RU.js +1 -1
  93. package/lib/umd/locale/sk-SK.js +1 -1
  94. package/lib/umd/locale/vi-VN.js +1 -1
  95. package/lib/umd/locale/zh-CN.js +1 -1
  96. package/lib/umd/locale/zh-HK.js +1 -0
  97. package/lib/umd/locale/zh-TW.js +1 -1
  98. package/package.json +15 -15
package/lib/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { BreakLineCommand, CoverContentCommand, DOCS_COMPONENT_MAIN_LAYER_INDEX, DOCS_VIEW_KEY, DOC_VERTICAL_PADDING, DeleteLeftCommand, DeleteRightCommand, DocSelectionRenderService, IEditorService, IMEInputCommand, InsertCommand, MoveCursorOperation, MoveSelectionOperation, NodePositionConvertToCursor, ReplaceSnapshotCommand, SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand, VIEWPORT_KEY, convertBodyToHtml, getCanvasOffsetByEngine, getLineBounding } from "@univerjs/docs-ui";
2
- import { AbsoluteRefType, BaselineOffset, BooleanNumber, BorderStyleTypes, CellModeEnum, CellValueType, ColorKit, CommandType, CustomRangeType, DEFAULT_EMPTY_DOCUMENT_VALUE, DEFAULT_STYLES, DEFAULT_WORKSHEET_COLUMN_COUNT, DEFAULT_WORKSHEET_COLUMN_WIDTH, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY, DEFAULT_WORKSHEET_ROW_COUNT, DEFAULT_WORKSHEET_ROW_HEIGHT, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DataStreamTreeTokenType, DependentOn, Direction, Disposable, DisposableCollection, DocumentFlavor, EDITOR_ACTIVATED, ErrorService, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_EDITOR_BUT_HIDDEN, FOCUSING_EDITOR_INPUT_FORMULA, FOCUSING_EDITOR_STANDALONE, FOCUSING_FX_BAR_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, FOCUSING_UNIVER_EDITOR, FontItalic, FontWeight, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, ILogService, IPermissionService, IUndoRedoService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, InterceptorManager, LRUMap, LocaleService, LocaleType, NilCommand, ObjectMatrix, Optional, Plugin, PresetListType, Quantity, RANGE_TYPE, Range, Rectangle, RxDisposable, ThemeService, Tools, UndoCommandId, UniverInstanceType, UserManagerService, VerticalAlign, Workbook, WrapStrategy, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneValue, composeStyles, convertCellToRange, createIdentifier, createInterceptorKey, dateKit, debounce, extractPureTextFromCell, fromEventSubject, generateRandomId, get, getEmptyCell, getNumfmtParseValueFilter, getReverseDirection, handleStyleToString, isFormulaString, isNotNullOrUndefined, isRealNum, isTextFormat, isValidRange, merge, mergeOverrideWithDependencies, nameCharacterCheck, numfmt, registerDependencies, sequenceExecute, set, skipParseTagNames, sortRules, splitIntoGrid, throttle, toDisposable, touchDependencies, willLoseNumericPrecision } from "@univerjs/core";
2
+ import { AbsoluteRefType, BaselineOffset, BooleanNumber, BorderStyleTypes, CellModeEnum, CellValueType, ColorKit, CommandType, CustomRangeType, DEFAULT_EMPTY_DOCUMENT_VALUE, DEFAULT_STYLES, DEFAULT_WORKSHEET_COLUMN_COUNT, DEFAULT_WORKSHEET_COLUMN_WIDTH, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY, DEFAULT_WORKSHEET_ROW_COUNT, DEFAULT_WORKSHEET_ROW_HEIGHT, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DataStreamTreeTokenType, DependentOn, Direction, Disposable, DisposableCollection, DocumentFlavor, EDITOR_ACTIVATED, ErrorService, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_EDITOR_BUT_HIDDEN, FOCUSING_EDITOR_INPUT_FORMULA, FOCUSING_EDITOR_STANDALONE, FOCUSING_FX_BAR_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, FOCUSING_UNIVER_EDITOR, FontItalic, FontWeight, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, ILogService, IPermissionService, IUndoRedoService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, InterceptorManager, LRUMap, LocaleService, LocaleType, NilCommand, ObjectMatrix, Optional, Plugin, PresetListType, Quantity, RANGE_TYPE, Range, Rectangle, RxDisposable, ThemeService, Tools, UndoCommandId, UniverInstanceType, UserManagerService, VerticalAlign, Workbook, WrapStrategy, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneValue, composeStyles, convertCellToRange, createIdentifier, createInterceptorKey, dateKit, debounce, extractPureTextFromCell, fromEventSubject, generateRandomId, get, getEmptyCell, getNumfmtParseValueFilter, getReverseDirection, handleStyleToString, isFormulaString, isNotNullOrUndefined, isRealNum, isSafeUrl, isTextFormat, isValidRange, merge, mergeOverrideWithDependencies, nameCharacterCheck, numfmt, registerDependencies, sequenceExecute, set, skipParseTagNames, sortRules, splitIntoGrid, throttle, toDisposable, touchDependencies, willLoseNumericPrecision } from "@univerjs/core";
3
3
  import { AnchoredContextMenu, BuiltInUIPart, COLOR_PICKER_COMPONENT, ComponentContainer, ComponentManager, ContextMenuGroup, ContextMenuPosition, CopyCommand, CutCommand, DISABLE_AUTO_FOCUS_KEY, FILE_PNG_CLIPBOARD_MIME_TYPE, FILE__BMP_CLIPBOARD_MIME_TYPE, FILE__JPEG_CLIPBOARD_MIME_TYPE, FILE__WEBP_CLIPBOARD_MIME_TYPE, FONT_FAMILY_COMPONENT, FONT_FAMILY_ITEM_COMPONENT, FONT_SIZE_COMPONENT, FONT_SIZE_LIST, HTML_CLIPBOARD_MIME_TYPE, ICanvasPopupService, IClipboardInterfaceService, IContextMenuService, IDialogService, ILayoutService, IMenuManagerService, IMessageService, INotificationService, IPlatformService, IShortcutService, ISidebarService, IUIPartsService, IZenZoneService, KeyCode, MenuItemType, MetaKeys, PLAIN_TEXT_CLIPBOARD_MIME_TYPE, PasteCommand, RibbonDataGroup, RibbonPosition, RibbonStartGroup, SheetPasteShortKeyCommandName, Slider, ToolbarItem, UI_PLUGIN_CONFIG_KEY, UniverMobileUIPlugin, connectInjector, getMenuHiddenObservable, handleStringToStyle, imageMimeTypeSet, sanitizeParsedHtml, textTrim, useComponentsOfPart, useConfigValue, useDependency, useEvent, useObservable, useSidebarClick, useVirtualList } from "@univerjs/ui";
4
- import { CURSOR_TYPE, DEFAULT_PADDING_DATA, DashedRect, DeviceInputEventType, FIX_ONE_PIXEL_BLUR_OFFSET, Group, IRenderManagerService, Layer, RENDER_CLASS_TYPE, RENDER_RAW_FORMULA_KEY, Rect, RegularPolygon, SHEET_EXTENSION_PREFIX, SHEET_VIEWPORT_KEY, ScrollBar, ScrollTimer, ScrollTimerType, Shape, SheetExtension, Spreadsheet, SpreadsheetColumnHeader, SpreadsheetRowHeader, TRANSFORM_CHANGE_OBSERVABLE_TYPE, Vector2, Viewport, cancelRequestFrame, convertTextRotation, convertTransformToOffsetX, convertTransformToOffsetY, fixLineWidthByScale, getCurrentTypeOfRenderer, ptToPixel, requestNewFrame, withCurrentTypeOfRenderer } from "@univerjs/engine-render";
5
- import { AUTO_FILL_APPLY_TYPE, AUTO_FILL_HOOK_TYPE, AddMergeUndoMutationFactory, AddRangeProtectionCommand, AddRangeProtectionMutation, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeMutation, AddWorksheetMergeVerticalCommand, AddWorksheetProtectionCommand, AutoClearContentCommand, AutoFillCommand, AutoFillController, BEFORE_CELL_EDIT, BorderStyleManagerService, COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE, CancelFrozenCommand, CancelMarkDirtyRowAutoHeightOperation, ClearSelectionAllCommand, ClearSelectionContentCommand, ClearSelectionFormatCommand, CopySheetCommand, DeleteRangeMoveLeftCommand, DeleteRangeMoveUpCommand, DeleteRangeProtectionCommand, DeleteRangeProtectionMutation, DeleteWorksheetProtectionCommand, DeltaColumnWidthCommand, DeltaRowHeightCommand, EditStateEnum, IAutoFillService, IExclusiveRangeService, INTERCEPTOR_POINT, INumfmtService, IRefSelectionsService, InsertColBeforeCommand, InsertColCommand, InsertColMutation, InsertDefinedNameCommand, InsertMultiColsLeftCommand, InsertMultiColsRightCommand, InsertMultiRowsAboveCommand, InsertMultiRowsAfterCommand, InsertRangeMoveDownCommand, InsertRangeMoveRightCommand, InsertRowBeforeCommand, InsertRowCommand, InsertRowMutation, InsertSheetCommand, InsertSheetMutation, MAX_CELL_PER_SHEET_KEY, MERGE_CELL_INTERCEPTOR_CHECK, MarkDirtyRowAutoHeightOperation, MergeCellController, MoveColsCommand, MoveColsMutation, MoveRangeCommand, MoveRangeMutation, MoveRowsCommand, MoveRowsMutation, REF_SELECTIONS_ENABLED, RangeProtectionCache, RangeProtectionPermissionEditPoint, RangeProtectionPermissionViewPoint, RangeProtectionRuleModel, RefRangeService, RefSelectionsService, RefillCommand, RemoveColCommand, RemoveColMutation, RemoveDefinedNameCommand, RemoveMergeUndoMutationFactory, RemoveRowCommand, RemoveRowMutation, RemoveSheetCommand, RemoveSheetMutation, RemoveWorksheetMergeCommand, RemoveWorksheetMergeMutation, ResetBackgroundColorCommand, ResetTextColorCommand, SCOPE_WORKBOOK_VALUE_DEFINED_NAME, SELECTIONS_ENABLED, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, SHEETS_PLUGIN_CONFIG_KEY, ScrollToCellOperation, SelectionMoveType, SetBackgroundColorCommand, SetBoldCommand, SetBorderBasicCommand, SetBorderCommand, SetColHiddenCommand, SetColHiddenMutation, SetColVisibleMutation, SetColWidthCommand, SetDefinedNameCommand, SetFontFamilyCommand, SetFontSizeCommand, SetFrozenCommand, SetFrozenMutation, SetFrozenMutationFactory, SetHorizontalTextAlignCommand, SetItalicCommand, SetProtectionCommand, SetRangeValuesCommand, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, SetRowHeightCommand, SetRowHiddenCommand, SetRowHiddenMutation, SetRowVisibleMutation, SetSelectedColsVisibleCommand, SetSelectedRowsVisibleCommand, SetSelectionsOperation, SetSpecificColsVisibleCommand, SetSpecificRowsVisibleCommand, SetStrikeThroughCommand, SetStyleCommand, SetTabColorCommand, SetTabColorMutation, SetTextColorCommand, SetTextRotationCommand, SetTextWrapCommand, SetUnderlineCommand, SetVerticalTextAlignCommand, SetWorksheetActivateCommand, SetWorksheetActiveOperation, SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, SetWorksheetHideCommand, SetWorksheetHideMutation, SetWorksheetNameCommand, SetWorksheetNameMutation, SetWorksheetOrderCommand, SetWorksheetOrderMutation, SetWorksheetPermissionPointsCommand, SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowIsAutoHeightCommand, SetWorksheetRowIsAutoHeightMutation, SetWorksheetShowCommand, SheetCopyDownCommand, SheetCopyDownCommand as SheetCopyDownCommand$1, SheetCopyRightCommand, SheetCopyRightCommand as SheetCopyRightCommand$1, SheetInterceptorService, SheetPermissionCheckController, SheetPermissionInitController, SheetSkeletonService, SheetsSelectionsService, TextToNumberCommand, ToggleCellCheckboxCommand, ToggleGridlinesCommand, ToggleGridlinesMutation, UnitAction, UnitObject, UniverSheetsPlugin, ViewStateEnum, WorkbookCopyPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteColumnPermission, WorkbookDeleteRowPermission, WorkbookDeleteSheetPermission, WorkbookEditablePermission, WorkbookHideSheetPermission, WorkbookInsertColumnPermission, WorkbookInsertRowPermission, WorkbookManageCollaboratorPermission, WorkbookRenameSheetPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditPermission, WorksheetInsertColumnPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetProtectionPointModel, WorksheetProtectionRuleModel, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetViewPermission, adjustRangeOnMutation, alignToMergedCellsBorders, attachPrimaryWithCoord, attachRangeWithCoord, attachSelectionWithCoord, baseProtectionActions, convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, countCells, defaultLargeSheetOperationConfig, discreteRangeToRange, expandToContinuousRange, getAddMergeMutationRangeByType, getAllWorksheetPermissionPoint, getCellAtRowCol, getClearContentMutationParamsForRanges, getMoveRangeCommandMutations, getPrimaryForRange, getSelectionsService, getSheetCommandTarget, rangeToDiscreteRange, setEndForRange, validateDefinedName } from "@univerjs/sheets";
4
+ import { CURSOR_TYPE, DEFAULT_PADDING_DATA, DashedRect, DeviceInputEventType, FIX_ONE_PIXEL_BLUR_OFFSET, Group, IRenderManagerService, Layer, RENDER_CLASS_TYPE, RENDER_RAW_FORMULA_KEY, Rect, RegularPolygon, SHEET_EXTENSION_PREFIX, SHEET_VIEWPORT_KEY, ScrollBar, ScrollTimer, ScrollTimerType, Shape, SheetExtension, Spreadsheet, SpreadsheetColumnHeader, SpreadsheetRowHeader, TRANSFORM_CHANGE_OBSERVABLE_TYPE, Vector2, Viewport, cancelRequestFrame, convertTextRotation, convertTransformToOffsetX, convertTransformToOffsetY, fixLineWidthByScale, getCurrentTypeOfRenderer, getNextWheelZoomRatio, ptToPixel, requestNewFrame, withCurrentTypeOfRenderer } from "@univerjs/engine-render";
5
+ import { AUTO_FILL_APPLY_TYPE, AUTO_FILL_HOOK_TYPE, AddMergeUndoMutationFactory, AddRangeProtectionCommand, AddRangeProtectionMutation, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeMutation, AddWorksheetMergeVerticalCommand, AddWorksheetProtectionCommand, AutoClearContentCommand, AutoFillCommand, AutoFillController, BEFORE_CELL_EDIT, BorderStyleManagerService, COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE, CancelFrozenCommand, CancelMarkDirtyRowAutoHeightOperation, ClearSelectionAllCommand, ClearSelectionContentCommand, ClearSelectionFormatCommand, CopySheetCommand, DeleteRangeMoveLeftCommand, DeleteRangeMoveUpCommand, DeleteRangeProtectionCommand, DeleteRangeProtectionMutation, DeleteWorksheetProtectionCommand, DeltaColumnWidthCommand, DeltaRowHeightCommand, EditStateEnum, IAutoFillService, IExclusiveRangeService, INTERCEPTOR_POINT, INumfmtService, IRefSelectionsService, InsertColBeforeCommand, InsertColCommand, InsertColMutation, InsertDefinedNameCommand, InsertMultiColsLeftCommand, InsertMultiColsRightCommand, InsertMultiRowsAboveCommand, InsertMultiRowsAfterCommand, InsertRangeMoveDownCommand, InsertRangeMoveRightCommand, InsertRowBeforeCommand, InsertRowCommand, InsertRowMutation, InsertSheetCommand, InsertSheetMutation, MAX_CELL_PER_SHEET_KEY, MERGE_CELL_INTERCEPTOR_CHECK, MarkDirtyRowAutoHeightOperation, MergeCellController, MoveColsCommand, MoveColsMutation, MoveRangeCommand, MoveRangeMutation, MoveRowsCommand, MoveRowsMutation, REF_SELECTIONS_ENABLED, RangeProtectionCache, RangeProtectionPermissionEditPoint, RangeProtectionPermissionViewPoint, RangeProtectionRuleModel, RefRangeService, RefSelectionsService, RefillCommand, RemoveColCommand, RemoveColMutation, RemoveDefinedNameCommand, RemoveMergeUndoMutationFactory, RemoveRowCommand, RemoveRowMutation, RemoveSheetCommand, RemoveSheetMutation, RemoveWorksheetMergeCommand, RemoveWorksheetMergeMutation, ResetBackgroundColorCommand, ResetTextColorCommand, SCOPE_WORKBOOK_VALUE_DEFINED_NAME, SELECTIONS_ENABLED, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, SHEETS_PLUGIN_CONFIG_KEY, ScrollToCellOperation, SelectionMoveType, SetBackgroundColorCommand, SetBoldCommand, SetBorderBasicCommand, SetBorderCommand, SetColHiddenCommand, SetColHiddenMutation, SetColVisibleMutation, SetColWidthCommand, SetDefinedNameCommand, SetFontFamilyCommand, SetFontSizeCommand, SetFrozenCommand, SetFrozenMutation, SetFrozenMutationFactory, SetHorizontalTextAlignCommand, SetItalicCommand, SetProtectionCommand, SetRangeValuesCommand, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, SetRowHeightCommand, SetRowHiddenCommand, SetRowHiddenMutation, SetRowVisibleMutation, SetSelectedColsVisibleCommand, SetSelectedRowsVisibleCommand, SetSelectionsOperation, SetSpecificColsVisibleCommand, SetSpecificRowsVisibleCommand, SetStrikeThroughCommand, SetStyleCommand, SetTabColorCommand, SetTabColorMutation, SetTextColorCommand, SetTextRotationCommand, SetTextWrapCommand, SetUnderlineCommand, SetVerticalTextAlignCommand, SetWorksheetActivateCommand, SetWorksheetActiveOperation, SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, SetWorksheetHideCommand, SetWorksheetHideMutation, SetWorksheetNameCommand, SetWorksheetNameMutation, SetWorksheetOrderCommand, SetWorksheetOrderMutation, SetWorksheetPermissionPointsCommand, SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowIsAutoHeightCommand, SetWorksheetRowIsAutoHeightMutation, SetWorksheetShowCommand, SheetCopyDownCommand, SheetCopyDownCommand as SheetCopyDownCommand$1, SheetCopyRightCommand, SheetCopyRightCommand as SheetCopyRightCommand$1, SheetInterceptorService, SheetPermissionCheckController, SheetPermissionInitController, SheetSkeletonService, SheetsSelectionsService, TextToNumberCommand, ToggleCellCheckboxCommand, ToggleGridlinesCommand, ToggleGridlinesMutation, UnitAction, UnitObject, UniverSheetsPlugin, ViewStateEnum, WorkbookCopyPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteColumnPermission, WorkbookDeleteRowPermission, WorkbookDeleteSheetPermission, WorkbookEditablePermission, WorkbookHideSheetPermission, WorkbookInsertColumnPermission, WorkbookInsertRowPermission, WorkbookManageCollaboratorPermission, WorkbookRenameSheetPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditPermission, WorksheetInsertColumnPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetProtectionPointModel, WorksheetProtectionRuleModel, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetViewPermission, adjustRangeOnMutation, alignToMergedCellsBorders, attachPrimaryWithCoord, attachRangeWithCoord, attachSelectionWithCoord, baseProtectionActions, convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, countCells, defaultLargeSheetOperationConfig, deserializeListOptions, discreteRangeToRange, expandToContinuousRange, getAddMergeMutationRangeByType, getAllWorksheetPermissionPoint, getCellAtRowCol, getClearContentMutationParamsForRanges, getMoveRangeCommandMutations, getPrimaryForRange, getSelectionsService, getSheetCommandTarget, rangeToDiscreteRange, serializeListOptions, setEndForRange, validateDefinedName } from "@univerjs/sheets";
6
6
  import { BehaviorSubject, EMPTY, Observable, Subject, Subscription, combineLatest, combineLatestWith, distinctUntilChanged, filter, map, merge as merge$1, of, shareReplay, startWith, switchMap, takeUntil, throttleTime, withLatestFrom } from "rxjs";
7
7
  import { DocSelectionManagerService, DocSkeletonManagerService, RichTextEditingMutation, SetTextSelectionsOperation } from "@univerjs/docs";
8
8
  import { ObjectScope, UnitAction as UnitAction$1, UnitObject as UnitObject$1, UnitRole } from "@univerjs/protocol";
@@ -185,7 +185,7 @@ let SHEET_VIEW_KEY = /* @__PURE__ */ function(SHEET_VIEW_KEY) {
185
185
  }({});
186
186
 
187
187
  //#endregion
188
- //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
188
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
189
189
  function _typeof(o) {
190
190
  "@babel/helpers - typeof";
191
191
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -196,7 +196,7 @@ function _typeof(o) {
196
196
  }
197
197
 
198
198
  //#endregion
199
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
199
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
200
200
  function toPrimitive(t, r) {
201
201
  if ("object" != _typeof(t) || !t) return t;
202
202
  var e = t[Symbol.toPrimitive];
@@ -209,14 +209,14 @@ function toPrimitive(t, r) {
209
209
  }
210
210
 
211
211
  //#endregion
212
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
212
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
213
213
  function toPropertyKey(t) {
214
214
  var i = toPrimitive(t, "string");
215
215
  return "symbol" == _typeof(i) ? i : i + "";
216
216
  }
217
217
 
218
218
  //#endregion
219
- //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
219
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
220
220
  function _defineProperty(e, r, t) {
221
221
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
222
222
  value: t,
@@ -966,7 +966,7 @@ function genSelectionByRange(skeleton, range) {
966
966
  }
967
967
 
968
968
  //#endregion
969
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorateParam.js
969
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
970
970
  function __decorateParam(paramIndex, decorator) {
971
971
  return function(target, key) {
972
972
  decorator(target, key, paramIndex);
@@ -974,7 +974,7 @@ function __decorateParam(paramIndex, decorator) {
974
974
  }
975
975
 
976
976
  //#endregion
977
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
977
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
978
978
  function __decorate(decorators, target, key, desc) {
979
979
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
980
980
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -3431,13 +3431,15 @@ var HtmlToUSMService = class HtmlToUSMService {
3431
3431
  const element = node;
3432
3432
  if (element.tagName.toUpperCase() === "A") {
3433
3433
  var _body$customRanges, _element$dataset$rang;
3434
+ const href = element.href;
3435
+ if (!isSafeUrl(href)) return;
3434
3436
  body.customRanges = (_body$customRanges = body.customRanges) !== null && _body$customRanges !== void 0 ? _body$customRanges : [];
3435
3437
  body.customRanges.push({
3436
3438
  startIndex: start,
3437
3439
  endIndex: body.dataStream.length - 1,
3438
3440
  rangeId: (_element$dataset$rang = element.dataset.rangeid) !== null && _element$dataset$rang !== void 0 ? _element$dataset$rang : generateRandomId(),
3439
3441
  rangeType: CustomRangeType.HYPERLINK,
3440
- properties: { url: element.href }
3442
+ properties: { url: href }
3441
3443
  });
3442
3444
  }
3443
3445
  }
@@ -4083,8 +4085,8 @@ let SheetClipboardService = class SheetClipboardService extends Disposable {
4083
4085
  if (html && shouldUseHTMLPaste) {
4084
4086
  if (this._platformService.isWindows && htmlIsFromExcel(html)) this._notificationService.show({
4085
4087
  type: "warning",
4086
- title: this._localeService.t("clipboard.shortCutNotify.title"),
4087
- content: this._localeService.t("clipboard.shortCutNotify.useShortCutInstead")
4088
+ title: this._localeService.t("sheets-ui.clipboard.shortCutNotify.title"),
4089
+ content: this._localeService.t("sheets-ui.clipboard.shortCutNotify.useShortCutInstead")
4088
4090
  });
4089
4091
  return this._pasteHTML(html, pasteType);
4090
4092
  }
@@ -4298,7 +4300,7 @@ let SheetClipboardService = class SheetClipboardService extends Disposable {
4298
4300
  if (mergeData.some((m) => {
4299
4301
  return rangeIntersectWithDiscreteRange(m, pasteTarget.pastedRange) && !discreteRangeContainsRange(pasteTarget.pastedRange, m);
4300
4302
  })) {
4301
- this._errorService.emit(this._localeService.t("clipboard.paste.overlappingMergedCells"));
4303
+ this._errorService.emit(this._localeService.t("sheets-ui.clipboard.paste.overlappingMergedCells"));
4302
4304
  return false;
4303
4305
  }
4304
4306
  }
@@ -4344,7 +4346,7 @@ let SheetClipboardService = class SheetClipboardService extends Disposable {
4344
4346
  if (mergeData.some((m) => {
4345
4347
  return rangeIntersectWithDiscreteRange(m, pasteTarget.pastedRange) && !discreteRangeContainsRange(pasteTarget.pastedRange, m);
4346
4348
  })) {
4347
- this._errorService.emit(this._localeService.t("clipboard.paste.overlappingMergedCells"));
4349
+ this._errorService.emit(this._localeService.t("sheets-ui.clipboard.paste.overlappingMergedCells"));
4348
4350
  return false;
4349
4351
  }
4350
4352
  }
@@ -5008,10 +5010,10 @@ const DeleteRangeMoveLeftConfirmCommand = {
5008
5010
  })) return commandService.executeCommand(DeleteRangeMoveLeftCommand.id);
5009
5011
  if (await confirmService.confirm({
5010
5012
  id: DeleteRangeMoveLeftConfirmCommand.id,
5011
- title: { title: localeService.t("merge.confirm.warning") },
5012
- children: { title: localeService.t("merge.confirm.dismantleMergeCellWarning") },
5013
- cancelText: localeService.t("button.cancel"),
5014
- confirmText: localeService.t("button.confirm")
5013
+ title: { title: localeService.t("sheets-ui.merge.confirm.warning") },
5014
+ children: { title: localeService.t("sheets-ui.merge.confirm.dismantleMergeCellWarning") },
5015
+ cancelText: localeService.t("sheets-ui.button.cancel"),
5016
+ confirmText: localeService.t("sheets-ui.button.confirm")
5015
5017
  })) return commandService.executeCommand(DeleteRangeMoveLeftCommand.id);
5016
5018
  return true;
5017
5019
  }
@@ -5042,9 +5044,9 @@ const DeleteRangeMoveUpConfirmCommand = {
5042
5044
  for (let i = range.startRow; i <= range.endRow; i++) if (worksheet.getRowFiltered(i)) {
5043
5045
  if (await confirmService.confirm({
5044
5046
  id: DeleteRangeMoveUpConfirmCommand.id,
5045
- title: { title: localeService.t("filter.confirm.error") },
5046
- children: { title: localeService.t("filter.confirm.notAllowedToInsertRange") },
5047
- confirmText: localeService.t("button.confirm")
5047
+ title: { title: localeService.t("sheets-ui.filter.confirm.error") },
5048
+ children: { title: localeService.t("sheets-ui.filter.confirm.notAllowedToInsertRange") },
5049
+ confirmText: localeService.t("sheets-ui.button.confirm")
5048
5050
  })) return false;
5049
5051
  }
5050
5052
  const getColLength = (range) => range.endColumn - range.startColumn;
@@ -5054,10 +5056,10 @@ const DeleteRangeMoveUpConfirmCommand = {
5054
5056
  })) return commandService.executeCommand(DeleteRangeMoveUpCommand.id);
5055
5057
  if (await confirmService.confirm({
5056
5058
  id: DeleteRangeMoveUpConfirmCommand.id,
5057
- title: { title: localeService.t("merge.confirm.warning") },
5058
- children: { title: localeService.t("merge.confirm.dismantleMergeCellWarning") },
5059
- cancelText: localeService.t("button.cancel"),
5060
- confirmText: localeService.t("button.confirm")
5059
+ title: { title: localeService.t("sheets-ui.merge.confirm.warning") },
5060
+ children: { title: localeService.t("sheets-ui.merge.confirm.dismantleMergeCellWarning") },
5061
+ cancelText: localeService.t("sheets-ui.button.cancel"),
5062
+ confirmText: localeService.t("sheets-ui.button.confirm")
5061
5063
  })) return commandService.executeCommand(DeleteRangeMoveUpCommand.id);
5062
5064
  return true;
5063
5065
  }
@@ -5489,10 +5491,10 @@ const HideRowConfirmCommand = {
5489
5491
  const localeService = accessor.get(LocaleService);
5490
5492
  await confirmService.confirm({
5491
5493
  id: "sheet.confirm.hide-row",
5492
- title: { title: localeService.t("info.problem") },
5493
- children: { title: localeService.t("rightClick.hideAllRowsAlert") },
5494
- cancelText: localeService.t("button.cancel"),
5495
- confirmText: localeService.t("button.confirm")
5494
+ title: { title: localeService.t("sheets-ui.info.problem") },
5495
+ children: { title: localeService.t("sheets-ui.rightClick.hideAllRowsAlert") },
5496
+ cancelText: localeService.t("sheets-ui.button.cancel"),
5497
+ confirmText: localeService.t("sheets-ui.button.confirm")
5496
5498
  });
5497
5499
  return false;
5498
5500
  }
@@ -5516,10 +5518,10 @@ const HideColConfirmCommand = {
5516
5518
  const localeService = accessor.get(LocaleService);
5517
5519
  await confirmService.confirm({
5518
5520
  id: "sheet.confirm.hide-col",
5519
- title: { title: localeService.t("info.problem") },
5520
- children: { title: localeService.t("rightClick.hideAllColumnsAlert") },
5521
- cancelText: localeService.t("button.cancel"),
5522
- confirmText: localeService.t("button.confirm")
5521
+ title: { title: localeService.t("sheets-ui.info.problem") },
5522
+ children: { title: localeService.t("sheets-ui.rightClick.hideAllColumnsAlert") },
5523
+ cancelText: localeService.t("sheets-ui.button.cancel"),
5524
+ confirmText: localeService.t("sheets-ui.button.confirm")
5523
5525
  });
5524
5526
  return false;
5525
5527
  }
@@ -5732,9 +5734,9 @@ const InsertRangeMoveDownConfirmCommand = {
5732
5734
  for (let i = range.startRow; i <= range.endRow; i++) if (worksheet.getRowFiltered(i)) {
5733
5735
  if (await confirmService.confirm({
5734
5736
  id: InsertRangeMoveDownConfirmCommand.id,
5735
- title: { title: localeService.t("filter.confirm.error") },
5736
- children: { title: localeService.t("filter.confirm.notAllowedToInsertRange") },
5737
- confirmText: localeService.t("button.confirm")
5737
+ title: { title: localeService.t("sheets-ui.filter.confirm.error") },
5738
+ children: { title: localeService.t("sheets-ui.filter.confirm.notAllowedToInsertRange") },
5739
+ confirmText: localeService.t("sheets-ui.button.confirm")
5738
5740
  })) return false;
5739
5741
  }
5740
5742
  const getColLength = (range) => range.endColumn - range.startColumn;
@@ -5744,10 +5746,10 @@ const InsertRangeMoveDownConfirmCommand = {
5744
5746
  })) return commandService.executeCommand(InsertRangeMoveDownCommand.id);
5745
5747
  if (await confirmService.confirm({
5746
5748
  id: InsertRangeMoveDownConfirmCommand.id,
5747
- title: { title: localeService.t("merge.confirm.warning") },
5748
- children: { title: localeService.t("merge.confirm.dismantleMergeCellWarning") },
5749
- cancelText: localeService.t("button.cancel"),
5750
- confirmText: localeService.t("button.confirm")
5749
+ title: { title: localeService.t("sheets-ui.merge.confirm.warning") },
5750
+ children: { title: localeService.t("sheets-ui.merge.confirm.dismantleMergeCellWarning") },
5751
+ cancelText: localeService.t("sheets-ui.button.cancel"),
5752
+ confirmText: localeService.t("sheets-ui.button.confirm")
5751
5753
  })) return commandService.executeCommand(InsertRangeMoveDownCommand.id);
5752
5754
  return true;
5753
5755
  }
@@ -5782,10 +5784,10 @@ const InsertRangeMoveRightConfirmCommand = {
5782
5784
  })) return commandService.executeCommand(InsertRangeMoveRightCommand.id);
5783
5785
  if (await confirmService.confirm({
5784
5786
  id: InsertRangeMoveRightConfirmCommand.id,
5785
- title: { title: localeService.t("merge.confirm.warning") },
5786
- children: { title: localeService.t("merge.confirm.dismantleMergeCellWarning") },
5787
- cancelText: localeService.t("button.cancel"),
5788
- confirmText: localeService.t("button.confirm")
5787
+ title: { title: localeService.t("sheets-ui.merge.confirm.warning") },
5788
+ children: { title: localeService.t("sheets-ui.merge.confirm.dismantleMergeCellWarning") },
5789
+ cancelText: localeService.t("sheets-ui.button.cancel"),
5790
+ confirmText: localeService.t("sheets-ui.button.confirm")
5789
5791
  })) return commandService.executeCommand(InsertRangeMoveRightCommand.id);
5790
5792
  return true;
5791
5793
  }
@@ -5932,7 +5934,7 @@ const SheetPermissionOpenPanelOperation = {
5932
5934
  const sheetPermissionUserManagerService = accessor.get(SheetPermissionUserManagerService);
5933
5935
  const { showDetail = true, fromSheetBar = false, rule, oldRule } = _params;
5934
5936
  const sidebarProps = {
5935
- header: { title: "permission.panel.title" },
5937
+ header: { title: "sheets-ui.permission.panel.title" },
5936
5938
  children: {
5937
5939
  label: UNIVER_SHEET_PERMISSION_PANEL,
5938
5940
  showDetail,
@@ -6122,10 +6124,10 @@ const RemoveRowConfirmCommand = {
6122
6124
  const localeService = accessor.get(LocaleService);
6123
6125
  await confirmService.confirm({
6124
6126
  id: "sheet.confirm.remove-row",
6125
- title: { title: localeService.t("info.problem") },
6126
- children: { title: localeService.t("rightClick.deleteAllRowsAlert") },
6127
- cancelText: localeService.t("button.cancel"),
6128
- confirmText: localeService.t("button.confirm")
6127
+ title: { title: localeService.t("sheets-ui.info.problem") },
6128
+ children: { title: localeService.t("sheets-ui.rightClick.deleteAllRowsAlert") },
6129
+ cancelText: localeService.t("sheets-ui.button.cancel"),
6130
+ confirmText: localeService.t("sheets-ui.button.confirm")
6129
6131
  });
6130
6132
  return false;
6131
6133
  }
@@ -6153,10 +6155,10 @@ const RemoveColConfirmCommand = {
6153
6155
  const localeService = accessor.get(LocaleService);
6154
6156
  await confirmService.confirm({
6155
6157
  id: "sheet.confirm.remove-col",
6156
- title: { title: localeService.t("info.problem") },
6157
- children: { title: localeService.t("rightClick.deleteAllColumnsAlert") },
6158
- cancelText: localeService.t("button.cancel"),
6159
- confirmText: localeService.t("button.confirm")
6158
+ title: { title: localeService.t("sheets-ui.info.problem") },
6159
+ children: { title: localeService.t("sheets-ui.rightClick.deleteAllColumnsAlert") },
6160
+ cancelText: localeService.t("sheets-ui.button.cancel"),
6161
+ confirmText: localeService.t("sheets-ui.button.confirm")
6160
6162
  });
6161
6163
  return false;
6162
6164
  }
@@ -6187,10 +6189,10 @@ const RemoveSheetConfirmCommand = {
6187
6189
  const isLargeSheet = countCells(worksheet.getCellMatrix()) >= largeSheetConfig.largeSheetCellCountThreshold;
6188
6190
  if (!await confirmService.confirm({
6189
6191
  id: "sheet.confirm.remove-sheet",
6190
- title: { title: localeService.t("sheetConfig.deleteSheet") },
6191
- children: { title: isLargeSheet ? localeService.t("sheetConfig.deleteLargeSheetContent") : localeService.t("sheetConfig.deleteSheetContent") },
6192
- cancelText: localeService.t("button.cancel"),
6193
- confirmText: localeService.t("button.confirm")
6192
+ title: { title: localeService.t("sheets-ui.sheetConfig.deleteSheet") },
6193
+ children: { title: isLargeSheet ? localeService.t("sheets-ui.sheetConfig.deleteLargeSheetContent") : localeService.t("sheets-ui.sheetConfig.deleteSheetContent") },
6194
+ cancelText: localeService.t("sheets-ui.button.cancel"),
6195
+ confirmText: localeService.t("sheets-ui.button.confirm")
6194
6196
  })) return false;
6195
6197
  await commandService.executeCommand(RemoveSheetCommand.id, { subUnitId });
6196
6198
  return true;
@@ -7046,6 +7048,7 @@ function getTransformCoord(evtOffsetX, evtOffsetY, scene, skeleton) {
7046
7048
  //#endregion
7047
7049
  //#region src/controllers/render-controllers/scroll.render-controller.ts
7048
7050
  const MOUSE_WHEEL_SPEED_SMOOTHING_FACTOR = 3;
7051
+ const WHEEL_CROSS_AXIS_LOCK_RATIO = 2;
7049
7052
  let SheetsScrollRenderController = class SheetsScrollRenderController extends Disposable {
7050
7053
  constructor(_context, _injector, _sheetSkeletonManagerService, _contextService, _commandService, _renderManagerService, _scrollManagerService) {
7051
7054
  super();
@@ -7070,15 +7073,26 @@ let SheetsScrollRenderController = class SheetsScrollRenderController extends Di
7070
7073
  if (evt.ctrlKey || !this._contextService.getContextValue(FOCUSING_SHEET)) return;
7071
7074
  let offsetX = 0;
7072
7075
  let offsetY = 0;
7073
- offsetX = evt.deltaX;
7074
- if (evt.shiftKey) offsetX = (evt.deltaY || evt.deltaX) * MOUSE_WHEEL_SPEED_SMOOTHING_FACTOR;
7075
- else offsetY = evt.deltaY;
7076
+ const scaleX = Math.abs(scene.scaleX) || 1;
7077
+ const scaleY = Math.abs(scene.scaleY) || 1;
7078
+ offsetX = evt.deltaX / scaleX;
7079
+ if (evt.shiftKey) offsetX = (evt.deltaY || evt.deltaX) * MOUSE_WHEEL_SPEED_SMOOTHING_FACTOR / scaleX;
7080
+ else {
7081
+ offsetY = evt.deltaY / scaleY;
7082
+ const absOffsetX = Math.abs(offsetX);
7083
+ const absOffsetY = Math.abs(offsetY);
7084
+ if (absOffsetY >= absOffsetX * WHEEL_CROSS_AXIS_LOCK_RATIO) offsetX = 0;
7085
+ else if (absOffsetX >= absOffsetY * WHEEL_CROSS_AXIS_LOCK_RATIO) offsetY = 0;
7086
+ }
7087
+ const targetViewportScrollX = viewMain.viewportScrollX + offsetX;
7088
+ const targetViewportScrollY = viewMain.viewportScrollY + offsetY;
7089
+ const { x: targetScrollX, y: targetScrollY } = viewMain.transViewportScroll2ScrollValue(targetViewportScrollX, targetViewportScrollY);
7076
7090
  this._commandService.executeCommand(SetScrollRelativeCommand.id, {
7077
7091
  offsetX,
7078
7092
  offsetY
7079
7093
  });
7080
7094
  this._context.scene.makeDirty(true);
7081
- const isLimitedStore = viewMain.limitedScroll(viewMain.scrollX + offsetX, viewMain.scrollY + offsetY);
7095
+ const isLimitedStore = viewMain.limitedScroll(targetScrollX, targetScrollY);
7082
7096
  if (isLimitedStore && !isLimitedStore.isLimitedX && !isLimitedStore.isLimitedY) {
7083
7097
  evt.preventDefault();
7084
7098
  if (scene.getParent().classType === RENDER_CLASS_TYPE.SCENE_VIEWER) state.stopPropagation();
@@ -7963,18 +7977,12 @@ let SheetsZoomRenderController = class SheetsZoomRenderController extends Dispos
7963
7977
  const state = this._editorBridgeService.isVisible();
7964
7978
  if ((state.unitId === this._context.unitId || state.unitId === DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY) && state.visible) return;
7965
7979
  }
7966
- const deltaFactor = Math.abs(e.deltaX);
7967
- let ratioDelta = deltaFactor < 40 ? .2 : deltaFactor < 80 ? .4 : .2;
7968
- ratioDelta *= e.deltaY > 0 ? -1 : 1;
7969
- if (scene.scaleX < 1) ratioDelta /= 2;
7970
7980
  const workbook = this._context.unit;
7971
7981
  const sheet = workbook.getActiveSheet();
7972
7982
  if (!sheet) return;
7973
- const currentRatio = sheet.getZoomRatio();
7974
- let nextRatio = +Number.parseFloat(`${currentRatio + ratioDelta}`).toFixed(1);
7975
- nextRatio = nextRatio >= 4 ? 4 : nextRatio <= .1 ? .1 : nextRatio;
7983
+ const nextRatio = getNextWheelZoomRatio(sheet.getZoomRatio(), e);
7976
7984
  this._commandService.executeCommand(SetZoomRatioCommand.id, {
7977
- zoomRatio: Math.round(nextRatio * 10) / 10,
7985
+ zoomRatio: nextRatio,
7978
7986
  unitId: workbook.getUnitId(),
7979
7987
  subUnitId: sheet.getSheetId()
7980
7988
  });
@@ -8295,7 +8303,7 @@ const SheetPermissionOpenDialogOperation = {
8295
8303
  dialogService.close("DESKTOP_FIND_REPLACE_DIALOG");
8296
8304
  dialogService.open({
8297
8305
  id: UNIVER_SHEET_PERMISSION_DIALOG_ID,
8298
- title: { title: "permission.dialog.allowedPermissionType" },
8306
+ title: { title: "sheets-ui.permission.dialog.allowedPermissionType" },
8299
8307
  children: { label: UNIVER_SHEET_PERMISSION_DIALOG },
8300
8308
  width: 393,
8301
8309
  destroyOnClose: true,
@@ -8340,7 +8348,7 @@ const SidebarDefinedNameOperation = {
8340
8348
  case "open":
8341
8349
  sidebarService.open({
8342
8350
  id: DEFINED_NAME_CONTAINER,
8343
- header: { title: localeService.t("definedName.featureTitle") },
8351
+ header: { title: localeService.t("sheets-ui.definedName.featureTitle") },
8344
8352
  children: { label: DEFINED_NAME_CONTAINER },
8345
8353
  onClose: () => {},
8346
8354
  width: 333,
@@ -9052,23 +9060,23 @@ const DEFAULT_PADDING = 2;
9052
9060
  const SheetPasteOptions = [
9053
9061
  {
9054
9062
  value: "DEFAULT_PASTE",
9055
- label: "rightClick.paste"
9063
+ label: "sheets-ui.rightClick.paste"
9056
9064
  },
9057
9065
  {
9058
9066
  value: "SPECIAL_PASTE_VALUE",
9059
- label: "rightClick.pasteValue"
9067
+ label: "sheets-ui.rightClick.pasteValue"
9060
9068
  },
9061
9069
  {
9062
9070
  value: "SPECIAL_PASTE_FORMAT",
9063
- label: "rightClick.pasteFormat"
9071
+ label: "sheets-ui.rightClick.pasteFormat"
9064
9072
  },
9065
9073
  {
9066
9074
  value: "SPECIAL_PASTE_COL_WIDTH",
9067
- label: "rightClick.pasteColWidth"
9075
+ label: "sheets-ui.rightClick.pasteColWidth"
9068
9076
  },
9069
9077
  {
9070
9078
  value: "SPECIAL_PASTE_BESIDES_BORDER",
9071
- label: "rightClick.pasteBesidesBorder"
9079
+ label: "sheets-ui.rightClick.pasteBesidesBorder"
9072
9080
  },
9073
9081
  {
9074
9082
  value: "SPECIAL_PASTE_FORMULA",
@@ -9852,7 +9860,7 @@ const permissionCheckMap = {
9852
9860
  worksheetTypes: [WorksheetEditPermission],
9853
9861
  rangeTypes: [RangeProtectionPermissionEditPoint]
9854
9862
  },
9855
- errorMessageKey: "permission.dialog.editErr"
9863
+ errorMessageKey: "sheets-ui.permission.dialog.editErr"
9856
9864
  },
9857
9865
  ["cellStyle"]: {
9858
9866
  permissionTypes: {
@@ -9860,7 +9868,7 @@ const permissionCheckMap = {
9860
9868
  worksheetTypes: [WorksheetEditPermission, WorksheetSetCellStylePermission],
9861
9869
  rangeTypes: [RangeProtectionPermissionEditPoint]
9862
9870
  },
9863
- errorMessageKey: "permission.dialog.setStyleErr"
9871
+ errorMessageKey: "sheets-ui.permission.dialog.setStyleErr"
9864
9872
  },
9865
9873
  ["cellValue"]: {
9866
9874
  permissionTypes: {
@@ -9868,7 +9876,7 @@ const permissionCheckMap = {
9868
9876
  worksheetTypes: [WorksheetEditPermission, WorksheetSetCellValuePermission],
9869
9877
  rangeTypes: [RangeProtectionPermissionEditPoint]
9870
9878
  },
9871
- errorMessageKey: "permission.dialog.editErr"
9879
+ errorMessageKey: "sheets-ui.permission.dialog.editErr"
9872
9880
  },
9873
9881
  ["rowStyle"]: {
9874
9882
  permissionTypes: {
@@ -9876,7 +9884,7 @@ const permissionCheckMap = {
9876
9884
  worksheetTypes: [WorksheetEditPermission, WorksheetSetRowStylePermission],
9877
9885
  rangeTypes: [RangeProtectionPermissionEditPoint]
9878
9886
  },
9879
- errorMessageKey: "permission.dialog.setRowColStyleErr"
9887
+ errorMessageKey: "sheets-ui.permission.dialog.setRowColStyleErr"
9880
9888
  },
9881
9889
  ["columnStyle"]: {
9882
9890
  permissionTypes: {
@@ -9884,7 +9892,7 @@ const permissionCheckMap = {
9884
9892
  worksheetTypes: [WorksheetEditPermission, WorksheetSetColumnStylePermission],
9885
9893
  rangeTypes: [RangeProtectionPermissionEditPoint]
9886
9894
  },
9887
- errorMessageKey: "permission.dialog.setRowColStyleErr"
9895
+ errorMessageKey: "sheets-ui.permission.dialog.setRowColStyleErr"
9888
9896
  }
9889
9897
  };
9890
9898
  const RepeatLastActionCommand = {
@@ -9961,8 +9969,9 @@ function generateArrowSelectionShortCutItem() {
9961
9969
  const StartEditWithF2Shortcut = {
9962
9970
  id: SetCellEditVisibleWithF2Operation.id,
9963
9971
  binding: KeyCode.F2,
9964
- description: "shortcut.sheet.start-editing",
9972
+ description: "sheets-ui.shortcut.sheet.start-editing",
9965
9973
  group: "4_sheet-edit",
9974
+ groupTitle: "sheets-ui.shortcut.sheet-edit",
9966
9975
  preconditions: whenSheetEditorFocused,
9967
9976
  staticParameters: {
9968
9977
  visible: true,
@@ -9973,15 +9982,17 @@ const StartEditWithF2Shortcut = {
9973
9982
  const RepeatLastActionShortcut = {
9974
9983
  id: RepeatLastActionCommand.id,
9975
9984
  binding: KeyCode.F4,
9976
- description: "shortcut.sheet.repeat-last-action",
9985
+ description: "sheets-ui.shortcut.sheet.repeat-last-action",
9977
9986
  group: "4_sheet-edit",
9987
+ groupTitle: "sheets-ui.shortcut.sheet-edit",
9978
9988
  preconditions: whenSheetEditorFocused
9979
9989
  };
9980
9990
  const EditorCursorEnterShortcut = {
9981
9991
  id: SetCellEditVisibleOperation.id,
9982
9992
  binding: KeyCode.ENTER,
9983
- description: "shortcut.sheet.toggle-editing",
9993
+ description: "sheets-ui.shortcut.sheet.toggle-editing",
9984
9994
  group: "4_sheet-edit",
9995
+ groupTitle: "sheets-ui.shortcut.sheet-edit",
9985
9996
  preconditions: (contextService) => whenEditorDidNotInputFormulaActivated(contextService),
9986
9997
  staticParameters: {
9987
9998
  visible: false,
@@ -10002,8 +10013,9 @@ const EditorCursorTabShortcut = {
10002
10013
  const EditorCursorEscShortcut = {
10003
10014
  id: SetCellEditVisibleOperation.id,
10004
10015
  binding: KeyCode.ESC,
10005
- description: "shortcut.sheet.abort-editing",
10016
+ description: "sheets-ui.shortcut.sheet.abort-editing",
10006
10017
  group: "4_sheet-edit",
10018
+ groupTitle: "sheets-ui.shortcut.sheet-edit",
10007
10019
  preconditions: (contextService) => whenEditorDidNotInputFormulaActivated(contextService),
10008
10020
  staticParameters: {
10009
10021
  visible: false,
@@ -10024,8 +10036,9 @@ const EditorCursorCtrlEnterShortcut = {
10024
10036
  };
10025
10037
  const EditorBreakLineShortcut = {
10026
10038
  id: BreakLineCommand.id,
10027
- description: "shortcut.sheet.break-line",
10039
+ description: "sheets-ui.shortcut.sheet.break-line",
10028
10040
  group: "4_sheet-edit",
10041
+ groupTitle: "sheets-ui.shortcut.sheet-edit",
10029
10042
  preconditions: (contextService) => whenSheetEditorActivated(contextService),
10030
10043
  binding: KeyCode.ENTER | MetaKeys.ALT
10031
10044
  };
@@ -10046,8 +10059,9 @@ const ShiftEditorDeleteLeftShortcut = {
10046
10059
  };
10047
10060
  const EditorDeleteLeftShortcutInActive = {
10048
10061
  id: SetCellEditVisibleOperation.id,
10049
- description: "shortcut.sheet.delete-and-start-editing",
10062
+ description: "sheets-ui.shortcut.sheet.delete-and-start-editing",
10050
10063
  group: "4_sheet-edit",
10064
+ groupTitle: "sheets-ui.shortcut.sheet-edit",
10051
10065
  preconditions: (contextService) => whenSheetEditorFocused(contextService) && !whenFormulaEditorFocused(contextService),
10052
10066
  binding: KeyCode.BACKSPACE,
10053
10067
  staticParameters: {
@@ -11503,7 +11517,7 @@ let SheetClipboardController = class SheetClipboardController extends RxDisposab
11503
11517
  if (maxConfig && endRow * endColumn > maxConfig) {
11504
11518
  self._messageService.show({
11505
11519
  type: MessageType.Error,
11506
- content: self._localService.t("clipboard.paste.exceedMaxCells")
11520
+ content: self._localService.t("sheets-ui.clipboard.paste.exceedMaxCells")
11507
11521
  });
11508
11522
  return false;
11509
11523
  }
@@ -12238,6 +12252,7 @@ const calcDocGlyphPosition = (glyph, skeleton, pageIndex = -1) => {
12238
12252
  pageMarginTop: 0
12239
12253
  }, skeleton).getRangePointData(startPosition, startPosition);
12240
12254
  const rect = getLineBounding(borderBoxPointGroup)[0];
12255
+ if (!rect) return;
12241
12256
  return {
12242
12257
  top: rect.top,
12243
12258
  bottom: rect.bottom,
@@ -12903,7 +12918,7 @@ let SheetPermissionCheckUIController = class SheetPermissionCheckUIController ex
12903
12918
  _haveNotPermissionHandle(errorMsg) {
12904
12919
  const dialogProps = {
12905
12920
  id: UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID,
12906
- title: { title: "permission.dialog.alert" },
12921
+ title: { title: "sheets-ui.permission.dialog.alert" },
12907
12922
  children: {
12908
12923
  label: UNIVER_SHEET_PERMISSION_ALERT_DIALOG,
12909
12924
  errorMsg
@@ -12937,7 +12952,7 @@ let SheetPermissionCheckUIController = class SheetPermissionCheckUIController ex
12937
12952
  worksheetTypes: [WorksheetSetCellValuePermission, WorksheetEditPermission],
12938
12953
  rangeTypes: [RangeProtectionPermissionEditPoint]
12939
12954
  });
12940
- errorMsg = this._localeService.t("permission.dialog.editErr");
12955
+ errorMsg = this._localeService.t("sheets-ui.permission.dialog.editErr");
12941
12956
  break;
12942
12957
  case SetCellEditVisibleOperation.id:
12943
12958
  params = commandInfo.params;
@@ -12947,7 +12962,7 @@ let SheetPermissionCheckUIController = class SheetPermissionCheckUIController ex
12947
12962
  worksheetTypes: [WorksheetSetCellValuePermission, WorksheetEditPermission],
12948
12963
  rangeTypes: [RangeProtectionPermissionEditPoint]
12949
12964
  });
12950
- errorMsg = this._localeService.t("permission.dialog.editErr");
12965
+ errorMsg = this._localeService.t("sheets-ui.permission.dialog.editErr");
12951
12966
  break;
12952
12967
  case SheetPasteColWidthCommand.id:
12953
12968
  permission = this._sheetPermissionCheckController.permissionCheckWithoutRange({
@@ -12955,13 +12970,13 @@ let SheetPermissionCheckUIController = class SheetPermissionCheckUIController ex
12955
12970
  worksheetTypes: [WorksheetEditPermission, WorksheetSetColumnStylePermission],
12956
12971
  rangeTypes: [RangeProtectionPermissionEditPoint]
12957
12972
  });
12958
- errorMsg = this._localeService.t("permission.dialog.pasteErr");
12973
+ errorMsg = this._localeService.t("sheets-ui.permission.dialog.pasteErr");
12959
12974
  break;
12960
12975
  case SheetPasteShortKeyCommand.id:
12961
12976
  case SheetPasteCommand.id:
12962
12977
  params = commandInfo.params;
12963
12978
  permission = this._permissionCheckByPaste(params);
12964
- errorMsg = this._localeService.t("permission.dialog.pasteErr");
12979
+ errorMsg = this._localeService.t("sheets-ui.permission.dialog.pasteErr");
12965
12980
  break;
12966
12981
  case ApplyFormatPainterCommand.id:
12967
12982
  permission = this._sheetPermissionCheckController.permissionCheckWithRanges({
@@ -12973,7 +12988,7 @@ let SheetPermissionCheckUIController = class SheetPermissionCheckUIController ex
12973
12988
  ],
12974
12989
  rangeTypes: [RangeProtectionPermissionEditPoint]
12975
12990
  });
12976
- errorMsg = this._localeService.t("permission.dialog.commonErr");
12991
+ errorMsg = this._localeService.t("sheets-ui.permission.dialog.commonErr");
12977
12992
  break;
12978
12993
  case SheetCopyCommand.id:
12979
12994
  var _this$_permissionServ;
@@ -12982,9 +12997,9 @@ let SheetPermissionCheckUIController = class SheetPermissionCheckUIController ex
12982
12997
  worksheetTypes: [WorksheetCopyPermission],
12983
12998
  rangeTypes: [RangeProtectionPermissionViewPoint]
12984
12999
  });
12985
- errorMsg = this._localeService.t("permission.dialog.copyErr");
13000
+ errorMsg = this._localeService.t("sheets-ui.permission.dialog.copyErr");
12986
13001
  target = getSheetCommandTarget(this._univerInstanceService);
12987
- if (!permission && target && !((_this$_permissionServ = this._permissionService.getPermissionPoint(new WorkbookCopyPermission(target.unitId).id)) === null || _this$_permissionServ === void 0 ? void 0 : _this$_permissionServ.value)) errorMsg = this._localeService.t("permission.dialog.workbookCopyErr");
13002
+ if (!permission && target && !((_this$_permissionServ = this._permissionService.getPermissionPoint(new WorkbookCopyPermission(target.unitId).id)) === null || _this$_permissionServ === void 0 ? void 0 : _this$_permissionServ.value)) errorMsg = this._localeService.t("sheets-ui.permission.dialog.workbookCopyErr");
12988
13003
  break;
12989
13004
  case SheetCutCommand.id:
12990
13005
  var _this$_permissionServ2;
@@ -12993,9 +13008,9 @@ let SheetPermissionCheckUIController = class SheetPermissionCheckUIController ex
12993
13008
  worksheetTypes: [WorksheetCopyPermission, WorksheetEditPermission],
12994
13009
  rangeTypes: [RangeProtectionPermissionViewPoint, RangeProtectionPermissionEditPoint]
12995
13010
  });
12996
- errorMsg = this._localeService.t("permission.dialog.copyErr");
13011
+ errorMsg = this._localeService.t("sheets-ui.permission.dialog.copyErr");
12997
13012
  target = getSheetCommandTarget(this._univerInstanceService);
12998
- if (!permission && target && !((_this$_permissionServ2 = this._permissionService.getPermissionPoint(new WorkbookCopyPermission(target.unitId).id)) === null || _this$_permissionServ2 === void 0 ? void 0 : _this$_permissionServ2.value)) errorMsg = this._localeService.t("permission.dialog.workbookCopyErr");
13013
+ if (!permission && target && !((_this$_permissionServ2 = this._permissionService.getPermissionPoint(new WorkbookCopyPermission(target.unitId).id)) === null || _this$_permissionServ2 === void 0 ? void 0 : _this$_permissionServ2.value)) errorMsg = this._localeService.t("sheets-ui.permission.dialog.workbookCopyErr");
12999
13014
  break;
13000
13015
  default: break;
13001
13016
  }
@@ -16053,77 +16068,77 @@ const COMPONENT_PREFIX = "UI_PLUGIN_SHEETS";
16053
16068
  const BORDER_PANEL_COMPONENT = `${COMPONENT_PREFIX}_BORDER_PANEL_COMPONENT`;
16054
16069
  const BORDER_LINE_CHILDREN = [
16055
16070
  {
16056
- label: "borderLine.borderTop",
16071
+ label: "sheets-ui.borderLine.borderTop",
16057
16072
  icon: "UpBorderDoubleIcon",
16058
16073
  value: "top"
16059
16074
  },
16060
16075
  {
16061
- label: "borderLine.borderBottom",
16076
+ label: "sheets-ui.borderLine.borderBottom",
16062
16077
  icon: "DownBorderDoubleIcon",
16063
16078
  value: "bottom"
16064
16079
  },
16065
16080
  {
16066
- label: "borderLine.borderLeft",
16081
+ label: "sheets-ui.borderLine.borderLeft",
16067
16082
  icon: "LeftBorderDoubleIcon",
16068
16083
  value: "left"
16069
16084
  },
16070
16085
  {
16071
- label: "borderLine.borderRight",
16086
+ label: "sheets-ui.borderLine.borderRight",
16072
16087
  icon: "RightBorderDoubleIcon",
16073
16088
  value: "right"
16074
16089
  },
16075
16090
  {
16076
- label: "borderLine.borderNone",
16091
+ label: "sheets-ui.borderLine.borderNone",
16077
16092
  icon: "NoBorderIcon",
16078
16093
  value: "none"
16079
16094
  },
16080
16095
  {
16081
- label: "borderLine.borderAll",
16096
+ label: "sheets-ui.borderLine.borderAll",
16082
16097
  icon: "AllBorderIcon",
16083
16098
  value: "all"
16084
16099
  },
16085
16100
  {
16086
- label: "borderLine.borderOutside",
16101
+ label: "sheets-ui.borderLine.borderOutside",
16087
16102
  icon: "OuterBorderDoubleIcon",
16088
16103
  value: "outside"
16089
16104
  },
16090
16105
  {
16091
- label: "borderLine.borderInside",
16106
+ label: "sheets-ui.borderLine.borderInside",
16092
16107
  icon: "InnerBorderDoubleIcon",
16093
16108
  value: "inside"
16094
16109
  },
16095
16110
  {
16096
- label: "borderLine.borderHorizontal",
16111
+ label: "sheets-ui.borderLine.borderHorizontal",
16097
16112
  icon: "HorizontalBorderDoubleIcon",
16098
16113
  value: "horizontal"
16099
16114
  },
16100
16115
  {
16101
- label: "borderLine.borderVertical",
16116
+ label: "sheets-ui.borderLine.borderVertical",
16102
16117
  icon: "VerticalBorderDoubleIcon",
16103
16118
  value: "vertical"
16104
16119
  },
16105
16120
  {
16106
- label: "borderLine.borderTlbr",
16121
+ label: "sheets-ui.borderLine.borderTlbr",
16107
16122
  icon: "BackSlashDoubleIcon",
16108
16123
  value: "tlbr"
16109
16124
  },
16110
16125
  {
16111
- label: "borderLine.borderTlbcTlmr",
16126
+ label: "sheets-ui.borderLine.borderTlbcTlmr",
16112
16127
  icon: "LeftDoubleDiagonalDoubleIcon",
16113
16128
  value: "tlbc_tlmr"
16114
16129
  },
16115
16130
  {
16116
- label: "borderLine.borderTlbrTlbcTlmr",
16131
+ label: "sheets-ui.borderLine.borderTlbrTlbcTlmr",
16117
16132
  icon: "LeftTridiagonalDoubleIcon",
16118
16133
  value: "tlbr_tlbc_tlmr"
16119
16134
  },
16120
16135
  {
16121
- label: "borderLine.borderBlTr",
16136
+ label: "sheets-ui.borderLine.borderBlTr",
16122
16137
  icon: "SlashDoubleIcon",
16123
16138
  value: "bltr"
16124
16139
  },
16125
16140
  {
16126
- label: "borderLine.borderMltrBctr",
16141
+ label: "sheets-ui.borderLine.borderMltrBctr",
16127
16142
  icon: "RightDoubleDiagonalDoubleIcon",
16128
16143
  value: "mltr_bctr"
16129
16144
  }
@@ -16308,9 +16323,9 @@ const MenuItemFrozen = (props) => {
16308
16323
  if (contextMenuService.visible) updateValue(selectionManagerService.getCurrentLastSelection());
16309
16324
  }, [contextMenuService.visible]);
16310
16325
  return /* @__PURE__ */ jsxs(Fragment, { children: [
16311
- type === "row" && localeService.t("rightClick.freezeRow", value.row),
16312
- type === "col" && localeService.t("rightClick.freezeCol", value.col),
16313
- type === "all" && localeService.t("rightClick.freezeCell", value.row, value.col)
16326
+ type === "row" && localeService.t("sheets-ui.rightClick.freezeRow", value.row),
16327
+ type === "col" && localeService.t("sheets-ui.rightClick.freezeCol", value.col),
16328
+ type === "all" && localeService.t("sheets-ui.rightClick.freezeCell", value.row, value.col)
16314
16329
  ] });
16315
16330
  };
16316
16331
 
@@ -16432,9 +16447,18 @@ function getCurrentRangeDisable$(accessor, permissionTypes = {}, supportCellEdit
16432
16447
  const userManagerService = accessor.get(UserManagerService);
16433
16448
  const editorBridgeService = accessor.has(IEditorBridgeService) ? accessor.get(IEditorBridgeService) : null;
16434
16449
  const contextService = accessor.get(IContextService);
16435
- const editorVisible$ = ((_editorBridgeService$ = editorBridgeService === null || editorBridgeService === void 0 ? void 0 : editorBridgeService.visible$) !== null && _editorBridgeService$ !== void 0 ? _editorBridgeService$ : of(null)).pipe(startWith$1(null), shareReplay$1(1));
16436
- const formulaEditorFocus$ = contextService.subscribeContextValue$(FOCUSING_FX_BAR_EDITOR).pipe(startWith$1(false), shareReplay$1(1));
16437
- const focusingShapeTextEditor$ = contextService.subscribeContextValue$(FOCUSING_SHAPE_TEXT_EDITOR).pipe(startWith$1(false), shareReplay$1(1));
16450
+ const editorVisible$ = ((_editorBridgeService$ = editorBridgeService === null || editorBridgeService === void 0 ? void 0 : editorBridgeService.visible$) !== null && _editorBridgeService$ !== void 0 ? _editorBridgeService$ : of(null)).pipe(startWith$1(null), shareReplay$1({
16451
+ bufferSize: 1,
16452
+ refCount: true
16453
+ }));
16454
+ const formulaEditorFocus$ = contextService.subscribeContextValue$(FOCUSING_FX_BAR_EDITOR).pipe(startWith$1(false), shareReplay$1({
16455
+ bufferSize: 1,
16456
+ refCount: true
16457
+ }));
16458
+ const focusingShapeTextEditor$ = contextService.subscribeContextValue$(FOCUSING_SHAPE_TEXT_EDITOR).pipe(startWith$1(false), shareReplay$1({
16459
+ bufferSize: 1,
16460
+ refCount: true
16461
+ }));
16438
16462
  return combineLatest([
16439
16463
  userManagerService.currentUser$,
16440
16464
  workbook$,
@@ -16646,7 +16670,7 @@ function CellBorderSelectorMenuItemFactory(accessor) {
16646
16670
  subscriber.next(defaultIcon);
16647
16671
  return disposable.dispose;
16648
16672
  }),
16649
- tooltip: "toolbar.border.main",
16673
+ tooltip: "sheets-ui.toolbar.border.main",
16650
16674
  type: MenuItemType.BUTTON_SELECTOR,
16651
16675
  slot: true,
16652
16676
  selections: [{
@@ -16671,7 +16695,7 @@ function ClearSelectionMenuItemFactory(accessor) {
16671
16695
  id: CLEAR_SELECTION_MENU_ID,
16672
16696
  type: MenuItemType.SUBITEMS,
16673
16697
  icon: "ClearFormatDoubleIcon",
16674
- title: "rightClick.clearSelection",
16698
+ title: "sheets-ui.rightClick.clearSelection",
16675
16699
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
16676
16700
  };
16677
16701
  }
@@ -16679,7 +16703,7 @@ function ClearSelectionContentMenuItemFactory(accessor) {
16679
16703
  return {
16680
16704
  id: ClearSelectionContentCommand.id,
16681
16705
  type: MenuItemType.BUTTON,
16682
- title: "rightClick.clearContent",
16706
+ title: "sheets-ui.rightClick.clearContent",
16683
16707
  disabled$: getObservableWithExclusiveRange$(accessor, getCurrentRangeDisable$(accessor, {
16684
16708
  workbookTypes: [WorkbookEditablePermission],
16685
16709
  worksheetTypes: [WorksheetEditPermission, WorksheetSetCellValuePermission],
@@ -16692,7 +16716,7 @@ function ClearSelectionFormatMenuItemFactory(accessor) {
16692
16716
  return {
16693
16717
  id: ClearSelectionFormatCommand.id,
16694
16718
  type: MenuItemType.BUTTON,
16695
- title: "rightClick.clearFormat",
16719
+ title: "sheets-ui.rightClick.clearFormat",
16696
16720
  disabled$: getCurrentRangeDisable$(accessor, {
16697
16721
  workbookTypes: [WorkbookEditablePermission],
16698
16722
  worksheetTypes: [WorksheetEditPermission, WorksheetSetCellStylePermission],
@@ -16706,7 +16730,7 @@ function ClearSelectionAllToolbarMenuItemFactory(accessor) {
16706
16730
  id: ClearSelectionAllCommand.id,
16707
16731
  type: MenuItemType.BUTTON,
16708
16732
  icon: "ClearFormatDoubleIcon",
16709
- tooltip: "rightClick.clearAll",
16733
+ tooltip: "sheets-ui.rightClick.clearAll",
16710
16734
  disabled$: getObservableWithExclusiveRange$(accessor, getCurrentRangeDisable$(accessor, {
16711
16735
  workbookTypes: [WorkbookEditablePermission],
16712
16736
  worksheetTypes: [
@@ -16723,8 +16747,8 @@ function ClearSelectionAllMenuItemFactory(accessor) {
16723
16747
  return {
16724
16748
  id: ClearSelectionAllCommand.id,
16725
16749
  type: MenuItemType.BUTTON,
16726
- title: "rightClick.clearAll",
16727
- tooltip: "rightClick.clearAll",
16750
+ title: "sheets-ui.rightClick.clearAll",
16751
+ tooltip: "sheets-ui.rightClick.clearAll",
16728
16752
  disabled$: getObservableWithExclusiveRange$(accessor, getCurrentRangeDisable$(accessor, {
16729
16753
  workbookTypes: [WorkbookEditablePermission],
16730
16754
  worksheetTypes: [
@@ -16745,7 +16769,7 @@ function DeleteRangeMenuItemFactory(accessor) {
16745
16769
  return {
16746
16770
  id: DELETE_RANGE_MENU_ID,
16747
16771
  type: MenuItemType.SUBITEMS,
16748
- title: "rightClick.delete",
16772
+ title: "sheets-ui.rightClick.delete",
16749
16773
  icon: "ReduceDoubleIcon",
16750
16774
  hidden$: getObservableWithExclusiveRange$(accessor, getBaseRangeMenuHidden$(accessor)),
16751
16775
  disabled$: getCurrentRangeDisable$(accessor, {
@@ -16759,7 +16783,7 @@ function RemoveColMenuItemFactory(accessor) {
16759
16783
  id: RemoveColConfirmCommand.id,
16760
16784
  type: MenuItemType.BUTTON,
16761
16785
  icon: "DeleteColumnDoubleIcon",
16762
- title: "rightClick.deleteSelectedColumn",
16786
+ title: "sheets-ui.rightClick.deleteSelectedColumn",
16763
16787
  hidden$: getDeleteMenuHidden$(accessor, "col"),
16764
16788
  disabled$: getCurrentRangeDisable$(accessor, {
16765
16789
  workbookTypes: [WorkbookEditablePermission, WorkbookDeleteColumnPermission],
@@ -16772,7 +16796,7 @@ function RemoveRowMenuItemFactory(accessor) {
16772
16796
  id: RemoveRowConfirmCommand.id,
16773
16797
  type: MenuItemType.BUTTON,
16774
16798
  icon: "DeleteRowDoubleIcon",
16775
- title: "rightClick.deleteSelectedRow",
16799
+ title: "sheets-ui.rightClick.deleteSelectedRow",
16776
16800
  disabled$: getCurrentRangeDisable$(accessor, {
16777
16801
  workbookTypes: [WorkbookEditablePermission, WorkbookDeleteRowPermission],
16778
16802
  worksheetTypes: [WorksheetEditPermission, WorksheetDeleteRowPermission]
@@ -16784,7 +16808,7 @@ function DeleteRangeMoveLeftMenuItemFactory(accessor) {
16784
16808
  return {
16785
16809
  id: DeleteRangeMoveLeftConfirmCommand.id,
16786
16810
  type: MenuItemType.BUTTON,
16787
- title: "rightClick.moveLeft",
16811
+ title: "sheets-ui.rightClick.moveLeft",
16788
16812
  icon: "DeleteCellShiftLeftDoubleIcon",
16789
16813
  disabled$: getCurrentRangeDisable$(accessor, {
16790
16814
  workbookTypes: [WorkbookEditablePermission],
@@ -16798,7 +16822,7 @@ function DeleteRangeMoveUpMenuItemFactory(accessor) {
16798
16822
  return {
16799
16823
  id: DeleteRangeMoveUpConfirmCommand.id,
16800
16824
  type: MenuItemType.BUTTON,
16801
- title: "rightClick.moveUp",
16825
+ title: "sheets-ui.rightClick.moveUp",
16802
16826
  icon: "DeleteCellShiftUpDoubleIcon",
16803
16827
  disabled$: getCurrentRangeDisable$(accessor, {
16804
16828
  workbookTypes: [WorkbookEditablePermission],
@@ -16854,7 +16878,7 @@ function FontSizeSelectorMenuItemFactory(accessor) {
16854
16878
  return {
16855
16879
  id: SetRangeFontSizeCommand.id,
16856
16880
  type: MenuItemType.SELECTOR,
16857
- tooltip: "toolbar.fontSize",
16881
+ tooltip: "sheets-ui.toolbar.fontSize",
16858
16882
  label: {
16859
16883
  name: FONT_SIZE_COMPONENT,
16860
16884
  props: {
@@ -16879,7 +16903,7 @@ function FontSizeIncreaseMenuItemFactory(accessor) {
16879
16903
  id: SetRangeFontIncreaseCommand.id,
16880
16904
  type: MenuItemType.BUTTON,
16881
16905
  icon: "FontSizeIncreaseIcon",
16882
- tooltip: "toolbar.fontSizeIncrease",
16906
+ tooltip: "sheets-ui.toolbar.fontSizeIncrease",
16883
16907
  disabled$,
16884
16908
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
16885
16909
  };
@@ -16894,7 +16918,7 @@ function FontSizeDecreaseMenuItemFactory(accessor) {
16894
16918
  id: SetRangeFontDecreaseCommand.id,
16895
16919
  type: MenuItemType.BUTTON,
16896
16920
  icon: "FontSizeReduceIcon",
16897
- tooltip: "toolbar.fontSizeDecrease",
16921
+ tooltip: "sheets-ui.toolbar.fontSizeDecrease",
16898
16922
  disabled$,
16899
16923
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
16900
16924
  };
@@ -16928,7 +16952,7 @@ function SheetFrozenMenuItemFactory(accessor) {
16928
16952
  return {
16929
16953
  id: SHEET_FROZEN_MENU_ID,
16930
16954
  type: MenuItemType.SUBITEMS,
16931
- title: "rightClick.freeze",
16955
+ title: "sheets-ui.rightClick.freeze",
16932
16956
  icon: "FreezeToSelectedIcon",
16933
16957
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
16934
16958
  };
@@ -16938,7 +16962,7 @@ function SheetFrozenColumnHeaderMenuItemFactory(accessor) {
16938
16962
  return {
16939
16963
  id: SHEET_FROZEN_COLUMN_HEADER_MENU_ID,
16940
16964
  type: MenuItemType.SUBITEMS,
16941
- title: "rightClick.freeze",
16965
+ title: "sheets-ui.rightClick.freeze",
16942
16966
  icon: "FreezeToSelectedIcon",
16943
16967
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
16944
16968
  };
@@ -16948,7 +16972,7 @@ function SheetFrozenRowHeaderMenuItemFactory(accessor) {
16948
16972
  return {
16949
16973
  id: SHEET_FROZEN_ROW_HEADER_MENU_ID,
16950
16974
  type: MenuItemType.SUBITEMS,
16951
- title: "rightClick.freeze",
16975
+ title: "sheets-ui.rightClick.freeze",
16952
16976
  icon: "FreezeToSelectedIcon",
16953
16977
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
16954
16978
  };
@@ -16993,7 +17017,7 @@ function FrozenFirstRowMenuItemFactory(accessor) {
16993
17017
  return {
16994
17018
  id: SetFirstRowFrozenCommand.id,
16995
17019
  type: MenuItemType.BUTTON,
16996
- title: "rightClick.freezeFirstRow",
17020
+ title: "sheets-ui.rightClick.freezeFirstRow",
16997
17021
  icon: "FreezeRowIcon",
16998
17022
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
16999
17023
  };
@@ -17002,7 +17026,7 @@ function FrozenFirstColMenuItemFactory(accessor) {
17002
17026
  return {
17003
17027
  id: SetFirstColumnFrozenCommand.id,
17004
17028
  type: MenuItemType.BUTTON,
17005
- title: "rightClick.freezeFirstCol",
17029
+ title: "sheets-ui.rightClick.freezeFirstCol",
17006
17030
  icon: "FreezeColumnIcon",
17007
17031
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
17008
17032
  };
@@ -17011,7 +17035,7 @@ function CancelFrozenMenuItemFactory(accessor) {
17011
17035
  return {
17012
17036
  id: CancelFrozenCommand.id,
17013
17037
  type: MenuItemType.BUTTON,
17014
- title: "rightClick.cancelFreeze",
17038
+ title: "sheets-ui.rightClick.cancelFreeze",
17015
17039
  icon: "CancelFreezeIcon",
17016
17040
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
17017
17041
  };
@@ -17025,7 +17049,7 @@ function ToggleGridlinesMenuFactory(accessor) {
17025
17049
  return {
17026
17050
  id: ToggleGridlinesCommand.id,
17027
17051
  type: MenuItemType.BUTTON,
17028
- tooltip: "toolbar.toggleGridlines",
17052
+ tooltip: "sheets-ui.toolbar.toggleGridlines",
17029
17053
  icon: "HideGridlinesDoubleIcon",
17030
17054
  activated$: new Observable((observer) => {
17031
17055
  const getValue = () => {
@@ -17057,7 +17081,7 @@ function CellInsertMenuItemFactory(accessor) {
17057
17081
  return {
17058
17082
  id: CELL_INSERT_MENU_ID,
17059
17083
  type: MenuItemType.SUBITEMS,
17060
- title: "rightClick.insert",
17084
+ title: "sheets-ui.rightClick.insert",
17061
17085
  icon: "InsertDoubleIcon",
17062
17086
  hidden$: getObservableWithExclusiveRange$(accessor, getBaseRangeMenuHidden$(accessor)),
17063
17087
  disabled$: getCurrentRangeDisable$(accessor, {
@@ -17097,10 +17121,10 @@ function InsertRowBeforeCellMenuItemFactory(accessor) {
17097
17121
  label: {
17098
17122
  name: MENU_ITEM_INPUT_COMPONENT,
17099
17123
  props: {
17100
- prefix: "rightClick.insertRowsAbove",
17124
+ prefix: "sheets-ui.rightClick.insertRowsAbove",
17101
17125
  min: 1,
17102
17126
  max: 1e3,
17103
- suffix: "rightClick.insertRowsAboveSuffix",
17127
+ suffix: "sheets-ui.rightClick.insertRowsAboveSuffix",
17104
17128
  disabled$
17105
17129
  }
17106
17130
  },
@@ -17143,10 +17167,10 @@ function InsertColLeftCellMenuItemFactory(accessor) {
17143
17167
  label: {
17144
17168
  name: MENU_ITEM_INPUT_COMPONENT,
17145
17169
  props: {
17146
- prefix: "rightClick.insertColsLeft",
17170
+ prefix: "sheets-ui.rightClick.insertColsLeft",
17147
17171
  min: 1,
17148
17172
  max: 1e3,
17149
- suffix: "rightClick.insertColsLeftSuffix",
17173
+ suffix: "sheets-ui.rightClick.insertColsLeftSuffix",
17150
17174
  disabled$
17151
17175
  }
17152
17176
  },
@@ -17172,7 +17196,7 @@ function InsertRangeMoveRightMenuItemFactory(accessor) {
17172
17196
  return {
17173
17197
  id: InsertRangeMoveRightConfirmCommand.id,
17174
17198
  type: MenuItemType.BUTTON,
17175
- title: "rightClick.moveRight",
17199
+ title: "sheets-ui.rightClick.moveRight",
17176
17200
  icon: "InsertCellShiftRightDoubleIcon",
17177
17201
  disabled$: getCurrentRangeDisable$(accessor, {
17178
17202
  workbookTypes: [WorkbookEditablePermission],
@@ -17190,7 +17214,7 @@ function InsertRangeMoveDownMenuItemFactory(accessor) {
17190
17214
  return {
17191
17215
  id: InsertRangeMoveDownConfirmCommand.id,
17192
17216
  type: MenuItemType.BUTTON,
17193
- title: "rightClick.moveDown",
17217
+ title: "sheets-ui.rightClick.moveDown",
17194
17218
  icon: "InsertCellDownDoubleIcon",
17195
17219
  disabled$: getCurrentRangeDisable$(accessor, {
17196
17220
  workbookTypes: [WorkbookEditablePermission],
@@ -17221,10 +17245,10 @@ function InsertMultiRowsAfterHeaderMenuItemFactory(accessor) {
17221
17245
  label: {
17222
17246
  name: MENU_ITEM_INPUT_COMPONENT,
17223
17247
  props: {
17224
- prefix: "rightClick.insertRowsAfter",
17248
+ prefix: "sheets-ui.rightClick.insertRowsAfter",
17225
17249
  min: 1,
17226
17250
  max: 1e3,
17227
- suffix: "rightClick.insertRowsAfterSuffix",
17251
+ suffix: "sheets-ui.rightClick.insertRowsAfterSuffix",
17228
17252
  disabled$
17229
17253
  }
17230
17254
  },
@@ -17267,10 +17291,10 @@ function InsertMultiRowsAboveHeaderMenuItemFactory(accessor) {
17267
17291
  label: {
17268
17292
  name: MENU_ITEM_INPUT_COMPONENT,
17269
17293
  props: {
17270
- prefix: "rightClick.insertRowsAbove",
17294
+ prefix: "sheets-ui.rightClick.insertRowsAbove",
17271
17295
  min: 1,
17272
17296
  max: 1e3,
17273
- suffix: "rightClick.insertRowsAboveSuffix",
17297
+ suffix: "sheets-ui.rightClick.insertRowsAboveSuffix",
17274
17298
  disabled$
17275
17299
  }
17276
17300
  },
@@ -17313,10 +17337,10 @@ function InsertMultiColsLeftHeaderMenuItemFactory(accessor) {
17313
17337
  label: {
17314
17338
  name: MENU_ITEM_INPUT_COMPONENT,
17315
17339
  props: {
17316
- prefix: "rightClick.insertColsLeft",
17340
+ prefix: "sheets-ui.rightClick.insertColsLeft",
17317
17341
  min: 1,
17318
17342
  max: 1e3,
17319
- suffix: "rightClick.insertColsLeftSuffix",
17343
+ suffix: "sheets-ui.rightClick.insertColsLeftSuffix",
17320
17344
  disabled$
17321
17345
  }
17322
17346
  },
@@ -17359,10 +17383,10 @@ function InsertMultiColsRightHeaderMenuItemFactory(accessor) {
17359
17383
  label: {
17360
17384
  name: MENU_ITEM_INPUT_COMPONENT,
17361
17385
  props: {
17362
- prefix: "rightClick.insertColsRight",
17386
+ prefix: "sheets-ui.rightClick.insertColsRight",
17363
17387
  min: 1,
17364
17388
  max: 1e3,
17365
- suffix: "rightClick.insertColsRightSuffix",
17389
+ suffix: "sheets-ui.rightClick.insertColsRightSuffix",
17366
17390
  disabled$
17367
17391
  }
17368
17392
  },
@@ -17402,7 +17426,7 @@ function FormatPainterMenuItemFactory(accessor) {
17402
17426
  type: MenuItemType.BUTTON,
17403
17427
  icon: "BrushIcon",
17404
17428
  title: "Format Painter",
17405
- tooltip: "toolbar.formatPainter",
17429
+ tooltip: "sheets-ui.toolbar.formatPainter",
17406
17430
  activated$: new Observable((subscriber) => {
17407
17431
  let active = false;
17408
17432
  const status$ = formatPainterService.status$.subscribe((s) => {
@@ -17432,7 +17456,7 @@ function BoldMenuItemFactory(accessor) {
17432
17456
  type: MenuItemType.BUTTON,
17433
17457
  icon: "BoldIcon",
17434
17458
  title: "Set bold",
17435
- tooltip: "toolbar.bold",
17459
+ tooltip: "sheets-ui.toolbar.bold",
17436
17460
  disabled$: getCurrentRangeDisable$(accessor, {
17437
17461
  workbookTypes: [WorkbookEditablePermission],
17438
17462
  worksheetTypes: [WorksheetEditPermission, WorksheetSetCellStylePermission],
@@ -17486,7 +17510,7 @@ function ItalicMenuItemFactory(accessor) {
17486
17510
  type: MenuItemType.BUTTON,
17487
17511
  icon: "ItalicIcon",
17488
17512
  title: "Set italic",
17489
- tooltip: "toolbar.italic",
17513
+ tooltip: "sheets-ui.toolbar.italic",
17490
17514
  disabled$: getCurrentRangeDisable$(accessor, {
17491
17515
  workbookTypes: [WorkbookEditablePermission],
17492
17516
  worksheetTypes: [WorksheetEditPermission, WorksheetSetCellStylePermission],
@@ -17536,7 +17560,7 @@ function UnderlineMenuItemFactory(accessor) {
17536
17560
  type: MenuItemType.BUTTON,
17537
17561
  icon: "UnderlineIcon",
17538
17562
  title: "Set underline",
17539
- tooltip: "toolbar.underline",
17563
+ tooltip: "sheets-ui.toolbar.underline",
17540
17564
  activated$: deriveStateFromActiveSheet$(univerInstanceService, false, ({ worksheet }) => new Observable((subscriber) => {
17541
17565
  var _selectionManagerServ6;
17542
17566
  const disposable = commandService.onCommandExecuted((c) => {
@@ -17586,7 +17610,7 @@ function StrikeThroughMenuItemFactory(accessor) {
17586
17610
  type: MenuItemType.BUTTON,
17587
17611
  icon: "StrikethroughIcon",
17588
17612
  title: "Set strike through",
17589
- tooltip: "toolbar.strikethrough",
17613
+ tooltip: "sheets-ui.toolbar.strikethrough",
17590
17614
  disabled$: getCurrentRangeDisable$(accessor, {
17591
17615
  workbookTypes: [WorkbookEditablePermission],
17592
17616
  worksheetTypes: [WorksheetEditPermission, WorksheetSetCellStylePermission],
@@ -17638,7 +17662,7 @@ function FontFamilySelectorMenuItemFactory(accessor) {
17638
17662
  }, true);
17639
17663
  return {
17640
17664
  id: SetRangeFontFamilyCommand.id,
17641
- tooltip: "toolbar.font",
17665
+ tooltip: "sheets-ui.toolbar.font",
17642
17666
  type: MenuItemType.SELECTOR,
17643
17667
  label: {
17644
17668
  name: FONT_FAMILY_COMPONENT,
@@ -17688,7 +17712,7 @@ function ResetTextColorMenuItemFactory(accessor) {
17688
17712
  return {
17689
17713
  id: ResetRangeTextColorCommand.id,
17690
17714
  type: MenuItemType.BUTTON,
17691
- title: "toolbar.resetColor",
17715
+ title: "sheets-ui.toolbar.resetColor",
17692
17716
  icon: "NoColorDoubleIcon",
17693
17717
  disabled$: getCurrentRangeDisable$(accessor, {
17694
17718
  workbookTypes: [WorkbookEditablePermission],
@@ -17705,7 +17729,7 @@ function TextColorSelectorMenuItemFactory(accessor) {
17705
17729
  return {
17706
17730
  id: SetRangeTextColorCommand.id,
17707
17731
  icon: "FontColorDoubleIcon",
17708
- tooltip: "toolbar.textColor.main",
17732
+ tooltip: "sheets-ui.toolbar.textColor.main",
17709
17733
  type: MenuItemType.BUTTON_SELECTOR,
17710
17734
  selections: [{
17711
17735
  label: {
@@ -17745,7 +17769,7 @@ function ResetBackgroundColorMenuItemFactory(accessor) {
17745
17769
  return {
17746
17770
  id: ResetBackgroundColorCommand.id,
17747
17771
  type: MenuItemType.BUTTON,
17748
- title: "toolbar.resetColor",
17772
+ title: "sheets-ui.toolbar.resetColor",
17749
17773
  icon: "NoColorDoubleIcon",
17750
17774
  disabled$: getCurrentRangeDisable$(accessor, {
17751
17775
  workbookTypes: [WorkbookEditablePermission],
@@ -17760,7 +17784,7 @@ function BackgroundColorSelectorMenuItemFactory(accessor) {
17760
17784
  const selectionManagerService = accessor.get(SheetsSelectionsService);
17761
17785
  return {
17762
17786
  id: SetBackgroundColorCommand.id,
17763
- tooltip: "toolbar.fillColor.main",
17787
+ tooltip: "sheets-ui.toolbar.fillColor.main",
17764
17788
  type: MenuItemType.BUTTON_SELECTOR,
17765
17789
  icon: "PaintBucketDoubleIcon",
17766
17790
  selections: [{
@@ -17799,17 +17823,17 @@ function BackgroundColorSelectorMenuItemFactory(accessor) {
17799
17823
  }
17800
17824
  const HORIZONTAL_ALIGN_CHILDREN = [
17801
17825
  {
17802
- label: "align.left",
17826
+ label: "sheets-ui.align.left",
17803
17827
  icon: "LeftJustifyingIcon",
17804
17828
  value: HorizontalAlign.LEFT
17805
17829
  },
17806
17830
  {
17807
- label: "align.center",
17831
+ label: "sheets-ui.align.center",
17808
17832
  icon: "HorizontallyIcon",
17809
17833
  value: HorizontalAlign.CENTER
17810
17834
  },
17811
17835
  {
17812
- label: "align.right",
17836
+ label: "sheets-ui.align.right",
17813
17837
  icon: "RightJustifyingIcon",
17814
17838
  value: HorizontalAlign.RIGHT
17815
17839
  }
@@ -17824,7 +17848,7 @@ function HorizontalAlignMenuItemFactory(accessor) {
17824
17848
  return {
17825
17849
  id: SetHorizontalTextAlignCommand.id,
17826
17850
  icon: (_HORIZONTAL_ALIGN_CHI = HORIZONTAL_ALIGN_CHILDREN.find((child) => child.value === defaultValue)) === null || _HORIZONTAL_ALIGN_CHI === void 0 ? void 0 : _HORIZONTAL_ALIGN_CHI.icon,
17827
- tooltip: "toolbar.horizontalAlignMode.main",
17851
+ tooltip: "sheets-ui.toolbar.horizontalAlignMode.main",
17828
17852
  type: MenuItemType.SELECTOR,
17829
17853
  selections: HORIZONTAL_ALIGN_CHILDREN,
17830
17854
  value$: deriveStateFromActiveSheet$(univerInstanceService, defaultValue, ({ worksheet }) => new Observable((subscriber) => {
@@ -17864,17 +17888,17 @@ function HorizontalAlignMenuItemFactory(accessor) {
17864
17888
  }
17865
17889
  const VERTICAL_ALIGN_CHILDREN = [
17866
17890
  {
17867
- label: "align.top",
17891
+ label: "sheets-ui.align.top",
17868
17892
  icon: "AlignTopIcon",
17869
17893
  value: VerticalAlign.TOP
17870
17894
  },
17871
17895
  {
17872
- label: "align.middle",
17896
+ label: "sheets-ui.align.middle",
17873
17897
  icon: "VerticalCenterIcon",
17874
17898
  value: VerticalAlign.MIDDLE
17875
17899
  },
17876
17900
  {
17877
- label: "align.bottom",
17901
+ label: "sheets-ui.align.bottom",
17878
17902
  icon: "AlignBottomIcon",
17879
17903
  value: VerticalAlign.BOTTOM
17880
17904
  }
@@ -17889,7 +17913,7 @@ function VerticalAlignMenuItemFactory(accessor) {
17889
17913
  return {
17890
17914
  id: SetVerticalTextAlignCommand.id,
17891
17915
  icon: (_VERTICAL_ALIGN_CHILD = VERTICAL_ALIGN_CHILDREN.find((child) => child.value === defaultValue)) === null || _VERTICAL_ALIGN_CHILD === void 0 ? void 0 : _VERTICAL_ALIGN_CHILD.icon,
17892
- tooltip: "toolbar.verticalAlignMode.main",
17916
+ tooltip: "sheets-ui.toolbar.verticalAlignMode.main",
17893
17917
  type: MenuItemType.SELECTOR,
17894
17918
  selections: VERTICAL_ALIGN_CHILDREN,
17895
17919
  value$: deriveStateFromActiveSheet$(univerInstanceService, defaultValue, ({ worksheet }) => new Observable((subscriber) => {
@@ -17929,17 +17953,17 @@ function VerticalAlignMenuItemFactory(accessor) {
17929
17953
  }
17930
17954
  const TEXT_WRAP_CHILDREN = [
17931
17955
  {
17932
- label: "textWrap.overflow",
17956
+ label: "sheets-ui.textWrap.overflow",
17933
17957
  icon: "OverflowIcon",
17934
17958
  value: WrapStrategy.OVERFLOW
17935
17959
  },
17936
17960
  {
17937
- label: "textWrap.wrap",
17961
+ label: "sheets-ui.textWrap.wrap",
17938
17962
  icon: "AutowrapIcon",
17939
17963
  value: WrapStrategy.WRAP
17940
17964
  },
17941
17965
  {
17942
- label: "textWrap.clip",
17966
+ label: "sheets-ui.textWrap.clip",
17943
17967
  icon: "TruncationIcon",
17944
17968
  value: WrapStrategy.CLIP
17945
17969
  }
@@ -17953,7 +17977,7 @@ function WrapTextMenuItemFactory(accessor) {
17953
17977
  const defaultValue = (_defaultStyle$tb = defaultStyle === null || defaultStyle === void 0 ? void 0 : defaultStyle.tb) !== null && _defaultStyle$tb !== void 0 ? _defaultStyle$tb : WrapStrategy.OVERFLOW;
17954
17978
  return {
17955
17979
  id: SetTextWrapCommand.id,
17956
- tooltip: "toolbar.textWrapMode.main",
17980
+ tooltip: "sheets-ui.toolbar.textWrapMode.main",
17957
17981
  icon: (_TEXT_WRAP_CHILDREN$f = TEXT_WRAP_CHILDREN.find((child) => child.value === defaultValue)) === null || _TEXT_WRAP_CHILDREN$f === void 0 ? void 0 : _TEXT_WRAP_CHILDREN$f.icon,
17958
17982
  type: MenuItemType.SELECTOR,
17959
17983
  selections: TEXT_WRAP_CHILDREN,
@@ -17994,32 +18018,32 @@ function WrapTextMenuItemFactory(accessor) {
17994
18018
  }
17995
18019
  const TEXT_ROTATE_CHILDREN = [
17996
18020
  {
17997
- label: "textRotate.none",
18021
+ label: "sheets-ui.textRotate.none",
17998
18022
  icon: "NoRotationIcon",
17999
18023
  value: 0
18000
18024
  },
18001
18025
  {
18002
- label: "textRotate.angleUp",
18026
+ label: "sheets-ui.textRotate.angleUp",
18003
18027
  icon: "LeftRotationFortyFiveDegreesIcon",
18004
18028
  value: -45
18005
18029
  },
18006
18030
  {
18007
- label: "textRotate.angleDown",
18031
+ label: "sheets-ui.textRotate.angleDown",
18008
18032
  icon: "RightRotationFortyFiveDegreesIcon",
18009
18033
  value: 45
18010
18034
  },
18011
18035
  {
18012
- label: "textRotate.vertical",
18036
+ label: "sheets-ui.textRotate.vertical",
18013
18037
  icon: "VerticalTextIcon",
18014
18038
  value: "v"
18015
18039
  },
18016
18040
  {
18017
- label: "textRotate.rotationUp",
18041
+ label: "sheets-ui.textRotate.rotationUp",
18018
18042
  icon: "LeftRotationNinetyDegreesIcon",
18019
18043
  value: -90
18020
18044
  },
18021
18045
  {
18022
- label: "textRotate.rotationDown",
18046
+ label: "sheets-ui.textRotate.rotationDown",
18023
18047
  icon: "RightRotationNinetyDegreesIcon",
18024
18048
  value: 90
18025
18049
  }
@@ -18030,7 +18054,7 @@ function TextRotateMenuItemFactory(accessor) {
18030
18054
  const defaultValue = 0;
18031
18055
  return {
18032
18056
  id: SetTextRotationCommand.id,
18033
- tooltip: "toolbar.textRotateMode.main",
18057
+ tooltip: "sheets-ui.toolbar.textRotateMode.main",
18034
18058
  icon: TEXT_ROTATE_CHILDREN[0].icon,
18035
18059
  type: MenuItemType.SELECTOR,
18036
18060
  selections: TEXT_ROTATE_CHILDREN,
@@ -18088,7 +18112,7 @@ function CopyMenuItemFactory(accessor) {
18088
18112
  id: SheetCopyCommand.name,
18089
18113
  commandId: SheetCopyCommand.id,
18090
18114
  type: MenuItemType.BUTTON,
18091
- title: "rightClick.copy",
18115
+ title: "sheets-ui.rightClick.copy",
18092
18116
  icon: "CopyDoubleIcon",
18093
18117
  disabled$: getCurrentRangeDisable$(accessor, {
18094
18118
  workbookTypes: [WorkbookCopyPermission],
@@ -18103,7 +18127,7 @@ function CutMenuItemFactory(accessor) {
18103
18127
  id: SheetCutCommand.name,
18104
18128
  commandId: CutCommand.id,
18105
18129
  type: MenuItemType.BUTTON,
18106
- title: "rightClick.cut",
18130
+ title: "sheets-ui.rightClick.cut",
18107
18131
  icon: "CutIcon",
18108
18132
  disabled$: getCurrentRangeDisable$(accessor, {
18109
18133
  workbookTypes: [WorkbookCopyPermission, WorkbookEditablePermission],
@@ -18118,7 +18142,7 @@ function PasteMenuItemFactory(accessor) {
18118
18142
  id: SheetPasteCommand.name,
18119
18143
  commandId: SheetPasteCommand.id,
18120
18144
  type: MenuItemType.BUTTON,
18121
- title: "rightClick.paste",
18145
+ title: "sheets-ui.rightClick.paste",
18122
18146
  icon: "PasteSpecialDoubleIcon",
18123
18147
  disabled$: menuClipboardDisabledObservable(accessor).pipe(combineLatestWith(getCurrentRangeDisable$(accessor, {
18124
18148
  rangeTypes: [RangeProtectionPermissionEditPoint],
@@ -18138,7 +18162,7 @@ function CopySpacialMenuItemFactory(accessor) {
18138
18162
  id: COPY_SPECIAL_MENU_ID,
18139
18163
  type: MenuItemType.SUBITEMS,
18140
18164
  icon: "CopyDoubleIcon",
18141
- title: "rightClick.copySpecial",
18165
+ title: "sheets-ui.rightClick.copySpecial",
18142
18166
  hidden$: getObservableWithExclusiveRange$(accessor, getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET))
18143
18167
  };
18144
18168
  }
@@ -18148,7 +18172,7 @@ function PasteSpacialMenuItemFactory(accessor) {
18148
18172
  id: PASTE_SPECIAL_MENU_ID,
18149
18173
  type: MenuItemType.SUBITEMS,
18150
18174
  icon: "PasteSpecialDoubleIcon",
18151
- title: "rightClick.pasteSpecial",
18175
+ title: "sheets-ui.rightClick.pasteSpecial",
18152
18176
  hidden$: getObservableWithExclusiveRange$(accessor, getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET))
18153
18177
  };
18154
18178
  }
@@ -18156,7 +18180,7 @@ function PasteValueMenuItemFactory(accessor) {
18156
18180
  return {
18157
18181
  id: SheetPasteValueCommand.id,
18158
18182
  type: MenuItemType.BUTTON,
18159
- title: "rightClick.pasteValue",
18183
+ title: "sheets-ui.rightClick.pasteValue",
18160
18184
  disabled$: menuClipboardDisabledObservable(accessor).pipe(combineLatestWith(getCurrentRangeDisable$(accessor, {
18161
18185
  rangeTypes: [RangeProtectionPermissionEditPoint],
18162
18186
  worksheetTypes: [WorksheetSetCellValuePermission, WorksheetEditPermission],
@@ -18169,7 +18193,7 @@ function PasteFormatMenuItemFactory(accessor) {
18169
18193
  return {
18170
18194
  id: SheetPasteFormatCommand.id,
18171
18195
  type: MenuItemType.BUTTON,
18172
- title: "rightClick.pasteFormat",
18196
+ title: "sheets-ui.rightClick.pasteFormat",
18173
18197
  disabled$: menuClipboardDisabledObservable(accessor).pipe(combineLatestWith(getCurrentRangeDisable$(accessor, {
18174
18198
  rangeTypes: [RangeProtectionPermissionEditPoint],
18175
18199
  worksheetTypes: [WorksheetSetCellStylePermission, WorksheetEditPermission],
@@ -18182,7 +18206,7 @@ function PasteColWidthMenuItemFactory(accessor) {
18182
18206
  return {
18183
18207
  id: SheetPasteColWidthCommand.id,
18184
18208
  type: MenuItemType.BUTTON,
18185
- title: "rightClick.pasteColWidth",
18209
+ title: "sheets-ui.rightClick.pasteColWidth",
18186
18210
  disabled$: menuClipboardDisabledObservable(accessor).pipe(combineLatestWith(getCurrentRangeDisable$(accessor, {
18187
18211
  rangeTypes: [RangeProtectionPermissionEditPoint],
18188
18212
  worksheetTypes: [WorksheetSetColumnStylePermission, WorksheetEditPermission],
@@ -18194,7 +18218,7 @@ function PasteBesidesBorderMenuItemFactory(accessor) {
18194
18218
  return {
18195
18219
  id: SheetPasteBesidesBorderCommand.id,
18196
18220
  type: MenuItemType.BUTTON,
18197
- title: "rightClick.pasteBesidesBorder",
18221
+ title: "sheets-ui.rightClick.pasteBesidesBorder",
18198
18222
  disabled$: menuClipboardDisabledObservable(accessor).pipe(combineLatestWith(getCurrentRangeDisable$(accessor, {
18199
18223
  rangeTypes: [RangeProtectionPermissionEditPoint],
18200
18224
  worksheetTypes: [
@@ -18214,7 +18238,7 @@ function FitContentMenuItemFactory(accessor) {
18214
18238
  id: SetWorksheetRowIsAutoHeightCommand.id,
18215
18239
  type: MenuItemType.BUTTON,
18216
18240
  icon: "AutoHeightDoubleIcon",
18217
- title: "rightClick.fitContent",
18241
+ title: "sheets-ui.rightClick.fitContent",
18218
18242
  disabled$: getCurrentRangeDisable$(accessor, {
18219
18243
  workbookTypes: [WorkbookEditablePermission],
18220
18244
  worksheetTypes: [WorksheetSetRowStylePermission, WorksheetEditPermission],
@@ -18228,7 +18252,7 @@ function ColAutoWidthMenuItemFactory(accessor) {
18228
18252
  id: SetWorksheetColAutoWidthCommand.id,
18229
18253
  type: MenuItemType.BUTTON,
18230
18254
  icon: "AutoWidthDoubleIcon",
18231
- title: "rightClick.fitContent",
18255
+ title: "sheets-ui.rightClick.fitContent",
18232
18256
  disabled$: getCurrentRangeDisable$(accessor, {
18233
18257
  workbookTypes: [WorkbookEditablePermission],
18234
18258
  worksheetTypes: [WorksheetSetRowStylePermission, WorksheetEditPermission],
@@ -18242,7 +18266,7 @@ function HideRowMenuItemFactory(accessor) {
18242
18266
  id: HideRowConfirmCommand.id,
18243
18267
  type: MenuItemType.BUTTON,
18244
18268
  icon: "HideDoubleIcon",
18245
- title: "rightClick.hideSelectedRow",
18269
+ title: "sheets-ui.rightClick.hideSelectedRow",
18246
18270
  disabled$: getCurrentRangeDisable$(accessor, {
18247
18271
  workbookTypes: [WorkbookEditablePermission],
18248
18272
  worksheetTypes: [WorksheetSetRowStylePermission, WorksheetEditPermission],
@@ -18256,7 +18280,7 @@ function HideColMenuItemFactory(accessor) {
18256
18280
  id: HideColConfirmCommand.id,
18257
18281
  type: MenuItemType.BUTTON,
18258
18282
  icon: "HideDoubleIcon",
18259
- title: "rightClick.hideSelectedColumn",
18283
+ title: "sheets-ui.rightClick.hideSelectedColumn",
18260
18284
  disabled$: getCurrentRangeDisable$(accessor, {
18261
18285
  workbookTypes: [WorkbookEditablePermission],
18262
18286
  worksheetTypes: [WorksheetEditPermission, WorksheetSetColumnStylePermission],
@@ -18278,7 +18302,7 @@ function ShowRowMenuItemFactory(accessor) {
18278
18302
  id: SetSelectedRowsVisibleCommand.id,
18279
18303
  type: MenuItemType.BUTTON,
18280
18304
  icon: "EyeOutlineIcon",
18281
- title: "rightClick.showHideRow",
18305
+ title: "sheets-ui.rightClick.showHideRow",
18282
18306
  hidden$: deriveStateFromActiveSheet$(univerInstanceService, true, ({ worksheet }) => new Observable((subscriber) => {
18283
18307
  function hasHiddenRowsInSelections() {
18284
18308
  var _selectionManagerServ18;
@@ -18314,7 +18338,7 @@ function ShowColMenuItemFactory(accessor) {
18314
18338
  id: SetSelectedColsVisibleCommand.id,
18315
18339
  type: MenuItemType.BUTTON,
18316
18340
  icon: "EyeOutlineIcon",
18317
- title: "rightClick.showHideColumn",
18341
+ title: "sheets-ui.rightClick.showHideColumn",
18318
18342
  hidden$: deriveStateFromActiveSheet$(univerInstanceService, true, ({ worksheet }) => new Observable((subscriber) => {
18319
18343
  function hasHiddenColsInSelections() {
18320
18344
  var _selectionManagerServ19;
@@ -18350,7 +18374,7 @@ function SetRowHeightMenuItemFactory(accessor) {
18350
18374
  label: {
18351
18375
  name: MENU_ITEM_INPUT_COMPONENT,
18352
18376
  props: {
18353
- prefix: "rightClick.rowHeight",
18377
+ prefix: "sheets-ui.rightClick.rowHeight",
18354
18378
  suffix: "px",
18355
18379
  min,
18356
18380
  max: 1e3
@@ -18389,7 +18413,7 @@ function SetColWidthMenuItemFactory(accessor) {
18389
18413
  label: {
18390
18414
  name: MENU_ITEM_INPUT_COMPONENT,
18391
18415
  props: {
18392
- prefix: "rightClick.columnWidth",
18416
+ prefix: "sheets-ui.rightClick.columnWidth",
18393
18417
  suffix: "px",
18394
18418
  min,
18395
18419
  max: 1e3
@@ -18433,7 +18457,7 @@ function CellMergeMenuItemFactory(accessor) {
18433
18457
  return {
18434
18458
  id: AddWorksheetMergeCommand.id,
18435
18459
  icon: "MergeAllIcon",
18436
- tooltip: "toolbar.mergeCell.main",
18460
+ tooltip: "sheets-ui.toolbar.mergeCell.main",
18437
18461
  type: MenuItemType.SUBITEMS,
18438
18462
  hidden$: combineLatest([getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET), accessor.get(IContextService).subscribeContextValue$(FOCUSING_COMMON_DRAWINGS).pipe(startWith(false))]).pipe(map(([hidden, focusingDrawing]) => hidden || focusingDrawing)),
18439
18463
  disabled$: editDisabled$.pipe(combineLatestWith(selectionsHasCross$), map(([disable, hasCross]) => disable || hasCross))
@@ -18443,7 +18467,7 @@ function CellMergeAllMenuItemFactory(accessor) {
18443
18467
  return {
18444
18468
  id: AddWorksheetMergeAllCommand.id,
18445
18469
  type: MenuItemType.BUTTON,
18446
- title: "merge.all",
18470
+ title: "sheets-ui.merge.all",
18447
18471
  icon: "MergeAllIcon",
18448
18472
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18449
18473
  };
@@ -18452,7 +18476,7 @@ function CellMergeVerticalMenuItemFactory(accessor) {
18452
18476
  return {
18453
18477
  id: AddWorksheetMergeVerticalCommand.id,
18454
18478
  type: MenuItemType.BUTTON,
18455
- title: "merge.vertical",
18479
+ title: "sheets-ui.merge.vertical",
18456
18480
  icon: "VerticalIntegrationIcon",
18457
18481
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18458
18482
  };
@@ -18461,7 +18485,7 @@ function CellMergeHorizontalMenuItemFactory(accessor) {
18461
18485
  return {
18462
18486
  id: AddWorksheetMergeHorizontalCommand.id,
18463
18487
  type: MenuItemType.BUTTON,
18464
- title: "merge.horizontal",
18488
+ title: "sheets-ui.merge.horizontal",
18465
18489
  icon: "HorizontalMergeIcon",
18466
18490
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18467
18491
  };
@@ -18470,7 +18494,7 @@ function CellMergeCancelMenuItemFactory(accessor) {
18470
18494
  return {
18471
18495
  id: RemoveWorksheetMergeCommand.id,
18472
18496
  type: MenuItemType.BUTTON,
18473
- title: "merge.cancel",
18497
+ title: "sheets-ui.merge.cancel",
18474
18498
  icon: "CancelMergeIcon",
18475
18499
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18476
18500
  };
@@ -18582,8 +18606,14 @@ function getAddPermissionDisableBase$(accessor) {
18582
18606
  const workbook$ = univerInstanceService.getCurrentTypeOfUnit$(UniverInstanceType.UNIVER_SHEET);
18583
18607
  const userManagerService = accessor.get(UserManagerService);
18584
18608
  const editorBridgeService = accessor.has(IEditorBridgeService) ? accessor.get(IEditorBridgeService) : null;
18585
- const formulaEditorFocus$ = accessor.get(IContextService).subscribeContextValue$(FOCUSING_FX_BAR_EDITOR).pipe(startWith(false), shareReplay(1));
18586
- const editorVisible$ = (_editorBridgeService$ = editorBridgeService === null || editorBridgeService === void 0 ? void 0 : editorBridgeService.visible$.pipe(startWith(null), shareReplay(1))) !== null && _editorBridgeService$ !== void 0 ? _editorBridgeService$ : of(null);
18609
+ const formulaEditorFocus$ = accessor.get(IContextService).subscribeContextValue$(FOCUSING_FX_BAR_EDITOR).pipe(startWith(false), shareReplay({
18610
+ bufferSize: 1,
18611
+ refCount: true
18612
+ }));
18613
+ const editorVisible$ = (_editorBridgeService$ = editorBridgeService === null || editorBridgeService === void 0 ? void 0 : editorBridgeService.visible$.pipe(startWith(null), shareReplay({
18614
+ bufferSize: 1,
18615
+ refCount: true
18616
+ }))) !== null && _editorBridgeService$ !== void 0 ? _editorBridgeService$ : of(null);
18587
18617
  return combineLatest([
18588
18618
  workbook$,
18589
18619
  userManagerService.currentUser$,
@@ -18759,7 +18789,7 @@ function sheetPermissionToolbarMenuFactory(accessor) {
18759
18789
  id: AddRangeProtectionFromToolbarCommand.id,
18760
18790
  type: MenuItemType.BUTTON,
18761
18791
  icon: permissionMenuIconKey,
18762
- tooltip: "permission.toolbarMenu",
18792
+ tooltip: "sheets-ui.permission.toolbarMenu",
18763
18793
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
18764
18794
  disabled$: getAddPermissionDisableBase$(accessor)
18765
18795
  };
@@ -18768,7 +18798,7 @@ function sheetPermissionContextMenuFactory(accessor) {
18768
18798
  return {
18769
18799
  id: SHEET_PERMISSION_CONTEXT_MENU_ID,
18770
18800
  type: MenuItemType.SUBITEMS,
18771
- title: "rightClick.protectRange",
18801
+ title: "sheets-ui.rightClick.protectRange",
18772
18802
  icon: permissionLockIconKey,
18773
18803
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18774
18804
  };
@@ -18777,7 +18807,7 @@ function sheetPermissionAddProtectContextMenuFactory(accessor) {
18777
18807
  return {
18778
18808
  id: AddRangeProtectionFromContextMenuCommand.id,
18779
18809
  type: MenuItemType.BUTTON,
18780
- title: "rightClick.turnOnProtectRange",
18810
+ title: "sheets-ui.rightClick.turnOnProtectRange",
18781
18811
  hidden$: getAddPermissionHidden$(accessor),
18782
18812
  disabled$: getAddPermissionDisableBase$(accessor)
18783
18813
  };
@@ -18786,7 +18816,7 @@ function sheetPermissionEditProtectContextMenuFactory(accessor) {
18786
18816
  return {
18787
18817
  id: SetRangeProtectionFromContextMenuCommand.id,
18788
18818
  type: MenuItemType.BUTTON,
18789
- title: "rightClick.editProtectRange",
18819
+ title: "sheets-ui.rightClick.editProtectRange",
18790
18820
  disabled$: getPermissionDisableBase$(accessor),
18791
18821
  hidden$: getEditPermissionHidden$(accessor)
18792
18822
  };
@@ -18795,7 +18825,7 @@ function sheetPermissionRemoveProtectContextMenuFactory(accessor) {
18795
18825
  return {
18796
18826
  id: DeleteRangeProtectionFromContextMenuCommand.id,
18797
18827
  type: MenuItemType.BUTTON,
18798
- title: "rightClick.removeProtectRange",
18828
+ title: "sheets-ui.rightClick.removeProtectRange",
18799
18829
  disabled$: getRemovePermissionDisable$(accessor),
18800
18830
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18801
18831
  };
@@ -18804,7 +18834,7 @@ function sheetPermissionViewAllProtectRuleContextMenuFactory(accessor) {
18804
18834
  return {
18805
18835
  id: ViewSheetPermissionFromContextMenuCommand.id,
18806
18836
  type: MenuItemType.BUTTON,
18807
- title: "rightClick.viewAllProtectArea",
18837
+ title: "sheets-ui.rightClick.viewAllProtectArea",
18808
18838
  disabled$: getViewPermissionDisable$(accessor),
18809
18839
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18810
18840
  };
@@ -18813,7 +18843,7 @@ function sheetPermissionProtectSheetInSheetBarMenuFactory(accessor) {
18813
18843
  return {
18814
18844
  id: AddRangeProtectionFromSheetBarCommand.id,
18815
18845
  type: MenuItemType.BUTTON,
18816
- title: "sheetConfig.addProtectSheet",
18846
+ title: "sheets-ui.sheetConfig.addProtectSheet",
18817
18847
  disabled$: getAddPermissionFromSheetBarDisable$(accessor),
18818
18848
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18819
18849
  };
@@ -18822,7 +18852,7 @@ function sheetPermissionRemoveProtectionSheetBarMenuFactory(accessor) {
18822
18852
  return {
18823
18853
  id: DeleteWorksheetProtectionFormSheetBarCommand.id,
18824
18854
  type: MenuItemType.BUTTON,
18825
- title: "sheetConfig.removeProtectSheet",
18855
+ title: "sheets-ui.sheetConfig.removeProtectSheet",
18826
18856
  disabled$: getRemovePermissionFromSheetBarDisable$(accessor),
18827
18857
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18828
18858
  };
@@ -18831,7 +18861,7 @@ function sheetPermissionChangeSheetPermissionSheetBarMenuFactory(accessor) {
18831
18861
  return {
18832
18862
  id: ChangeSheetProtectionFromSheetBarCommand.id,
18833
18863
  type: MenuItemType.BUTTON,
18834
- title: "sheetConfig.changeSheetPermission",
18864
+ title: "sheets-ui.sheetConfig.changeSheetPermission",
18835
18865
  disabled$: getSetPermissionFromSheetBarDisable$(accessor),
18836
18866
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18837
18867
  };
@@ -18840,7 +18870,7 @@ function sheetPermissionViewAllProtectRuleSheetBarMenuFactory(accessor) {
18840
18870
  return {
18841
18871
  id: ViewSheetPermissionFromSheetBarCommand.id,
18842
18872
  type: MenuItemType.BUTTON,
18843
- title: "sheetConfig.viewAllProtectArea",
18873
+ title: "sheets-ui.sheetConfig.viewAllProtectArea",
18844
18874
  disabled$: getViewPermissionDisable$(accessor),
18845
18875
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18846
18876
  };
@@ -18863,7 +18893,7 @@ function DeleteSheetMenuItemFactory(accessor) {
18863
18893
  return {
18864
18894
  id: RemoveSheetConfirmCommand.id,
18865
18895
  type: MenuItemType.BUTTON,
18866
- title: "sheetConfig.delete",
18896
+ title: "sheets-ui.sheetConfig.delete",
18867
18897
  disabled$: combineLatest([defaultDisable$, permissionDisable$]).pipe(map(([defaultDisabled, permissionDisabled]) => {
18868
18898
  return defaultDisabled || permissionDisabled;
18869
18899
  })),
@@ -18874,7 +18904,7 @@ function CopySheetMenuItemFactory(accessor) {
18874
18904
  return {
18875
18905
  id: CopySheetCommand.id,
18876
18906
  type: MenuItemType.BUTTON,
18877
- title: "sheetConfig.copy",
18907
+ title: "sheets-ui.sheetConfig.copy",
18878
18908
  disabled$: getWorkbookPermissionDisable$(accessor, [WorkbookEditablePermission, WorkbookCreateSheetPermission]),
18879
18909
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18880
18910
  };
@@ -18883,7 +18913,7 @@ function RenameSheetMenuItemFactory(accessor) {
18883
18913
  return {
18884
18914
  id: RenameSheetOperation.id,
18885
18915
  type: MenuItemType.BUTTON,
18886
- title: "sheetConfig.rename",
18916
+ title: "sheets-ui.sheetConfig.rename",
18887
18917
  disabled$: getWorkbookPermissionDisable$(accessor, [WorkbookEditablePermission, WorkbookRenameSheetPermission]),
18888
18918
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
18889
18919
  };
@@ -18891,7 +18921,7 @@ function RenameSheetMenuItemFactory(accessor) {
18891
18921
  function ChangeColorSheetMenuItemFactory(accessor) {
18892
18922
  return {
18893
18923
  id: SetTabColorCommand.id,
18894
- title: "sheetConfig.changeColor",
18924
+ title: "sheets-ui.sheetConfig.changeColor",
18895
18925
  type: MenuItemType.SELECTOR,
18896
18926
  selections: [{ label: {
18897
18927
  name: COLOR_PICKER_COMPONENT,
@@ -18907,7 +18937,7 @@ function HideSheetMenuItemFactory(accessor) {
18907
18937
  return {
18908
18938
  id: SetWorksheetHideCommand.id,
18909
18939
  type: MenuItemType.BUTTON,
18910
- title: "sheetConfig.hide",
18940
+ title: "sheets-ui.sheetConfig.hide",
18911
18941
  disabled$: new Observable((subscriber) => {
18912
18942
  const disposable = commandService.onCommandExecuted((c) => {
18913
18943
  const id = c.id;
@@ -18925,7 +18955,7 @@ function ShowMenuItemFactory(accessor) {
18925
18955
  return {
18926
18956
  id: ShowMenuListCommand.id,
18927
18957
  type: MenuItemType.BUTTON,
18928
- title: "sheetConfig.unhide",
18958
+ title: "sheets-ui.sheetConfig.unhide",
18929
18959
  disabled$: new Observable((subscriber) => {
18930
18960
  function disableFunction() {
18931
18961
  const worksheets = univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET).getWorksheets();
@@ -18982,7 +19012,7 @@ function Text2NumberToolbarMenuItemFactory(accessor) {
18982
19012
  id: TEXT_TO_NUMBER_TOOLBAR_MENU_ID,
18983
19013
  commandId: TextToNumberCommand.id,
18984
19014
  type: MenuItemType.BUTTON,
18985
- title: "toolbar.textToNumber",
19015
+ title: "sheets-ui.toolbar.textToNumber",
18986
19016
  disabled$: getObservableWithExclusiveRange$(accessor, getCurrentRangeDisable$(accessor, {
18987
19017
  workbookTypes: [WorkbookEditablePermission],
18988
19018
  worksheetTypes: [WorksheetEditPermission, WorksheetSetCellValuePermission],
@@ -18997,7 +19027,7 @@ function Text2NumberContextMenuItemFactory(accessor) {
18997
19027
  id: TEXT_TO_NUMBER_CONTEXT_MENU_ID,
18998
19028
  commandId: TextToNumberCommand.id,
18999
19029
  type: MenuItemType.BUTTON,
19000
- title: "rightClick.textToNumber",
19030
+ title: "sheets-ui.rightClick.textToNumber",
19001
19031
  icon: "PipingIcon",
19002
19032
  disabled$: getObservableWithExclusiveRange$(accessor, getCurrentRangeDisable$(accessor, {
19003
19033
  workbookTypes: [WorkbookEditablePermission],
@@ -20335,7 +20365,7 @@ const DefinedNameInput = (props) => {
20335
20365
  const [typeValue, setTypeValue] = useState(type);
20336
20366
  const [validFormulaOrRange, setValidFormulaOrRange] = useState(true);
20337
20367
  const options = [{
20338
- label: localeService.t("definedName.scopeWorkbook"),
20368
+ label: localeService.t("sheets-ui.definedName.scopeWorkbook"),
20339
20369
  value: SCOPE_WORKBOOK_VALUE_DEFINED_NAME
20340
20370
  }];
20341
20371
  const isFormula = (token) => {
@@ -20383,7 +20413,7 @@ const DefinedNameInput = (props) => {
20383
20413
  return;
20384
20414
  }
20385
20415
  if (!validFormulaOrRange) {
20386
- setValidString(localeService.t("definedName.formulaOrRefStringInvalid"));
20416
+ setValidString(localeService.t("sheets-ui.definedName.formulaOrRefStringInvalid"));
20387
20417
  return;
20388
20418
  }
20389
20419
  const currentSheetName = workbook.getActiveSheet().getName();
@@ -20414,7 +20444,7 @@ const DefinedNameInput = (props) => {
20414
20444
  children: [
20415
20445
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Input, {
20416
20446
  className: "univer-w-full",
20417
- placeholder: localeService.t("definedName.inputNamePlaceholder"),
20447
+ placeholder: localeService.t("sheets-ui.definedName.inputNamePlaceholder"),
20418
20448
  value: nameValue,
20419
20449
  allowClear: true,
20420
20450
  onChange: setNameValue
@@ -20424,10 +20454,10 @@ const DefinedNameInput = (props) => {
20424
20454
  onChange: typeValueChange,
20425
20455
  children: [/* @__PURE__ */ jsx(Radio, {
20426
20456
  value: "range",
20427
- children: localeService.t("definedName.ratioRange")
20457
+ children: localeService.t("sheets-ui.definedName.ratioRange")
20428
20458
  }), /* @__PURE__ */ jsx(Radio, {
20429
20459
  value: "formula",
20430
- children: localeService.t("definedName.ratioFormula")
20460
+ children: localeService.t("sheets-ui.definedName.ratioFormula")
20431
20461
  })]
20432
20462
  }) }),
20433
20463
  typeValue === "range" ? RangeSelector && /* @__PURE__ */ jsx(RangeSelector, {
@@ -20466,7 +20496,7 @@ const DefinedNameInput = (props) => {
20466
20496
  }) }),
20467
20497
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Input, {
20468
20498
  className: "univer-w-full",
20469
- placeholder: localeService.t("definedName.inputCommentPlaceholder"),
20499
+ placeholder: localeService.t("sheets-ui.definedName.inputCommentPlaceholder"),
20470
20500
  value: commentValue,
20471
20501
  onChange: setCommentValue,
20472
20502
  allowClear: true
@@ -20484,11 +20514,11 @@ const DefinedNameInput = (props) => {
20484
20514
  onClick: () => {
20485
20515
  cancel === null || cancel === void 0 || cancel();
20486
20516
  },
20487
- children: localeService.t("definedName.cancel")
20517
+ children: localeService.t("sheets-ui.definedName.cancel")
20488
20518
  }), /* @__PURE__ */ jsx(Button, {
20489
20519
  variant: "primary",
20490
20520
  onClick: confirmChange,
20491
- children: localeService.t("definedName.confirm")
20521
+ children: localeService.t("sheets-ui.definedName.confirm")
20492
20522
  })]
20493
20523
  })
20494
20524
  ]
@@ -20607,11 +20637,11 @@ const DefinedNameContainer = () => {
20607
20637
  };
20608
20638
  const getInsertDefinedName = () => {
20609
20639
  const count = definedNames.length + 1;
20610
- const name = localeService.t("definedName.defaultName") + count;
20640
+ const name = localeService.t("sheets-ui.definedName.defaultName") + count;
20611
20641
  if (definedNamesService.getValueByName(unitId, name) == null) return name;
20612
20642
  let i = count + 1;
20613
20643
  while (true) {
20614
- const newName = localeService.t("definedName.defaultName") + i;
20644
+ const newName = localeService.t("sheets-ui.definedName.defaultName") + i;
20615
20645
  if (definedNamesService.getValueByName(unitId, newName) == null) return newName;
20616
20646
  i++;
20617
20647
  }
@@ -20654,7 +20684,7 @@ const DefinedNameContainer = () => {
20654
20684
  onClick: openInsertCloseKeyEditor,
20655
20685
  children: [/* @__PURE__ */ jsx(IncreaseIcon, {}), /* @__PURE__ */ jsx("span", {
20656
20686
  className: "univer-ml-1",
20657
- children: localeService.t("definedName.addButton")
20687
+ children: localeService.t("sheets-ui.definedName.addButton")
20658
20688
  })]
20659
20689
  }), editState && /* @__PURE__ */ jsx(DefinedNameInput, {
20660
20690
  confirm: insertConfirm,
@@ -20695,7 +20725,7 @@ const DefinedNameContainer = () => {
20695
20725
  }), checkDefinedNamePermission(definedName) && /* @__PURE__ */ jsxs("div", {
20696
20726
  className: "univer-absolute univer-right-5 univer-top-1/2 univer-hidden -univer-translate-y-1/2 univer-cursor-pointer univer-items-center univer-justify-end univer-gap-7 univer-text-xs univer-text-primary-600 group-hover:univer-flex dark:hover:!univer-bg-gray-600",
20697
20727
  children: [/* @__PURE__ */ jsx(Tooltip, {
20698
- title: localeService.t("definedName.updateButton"),
20728
+ title: localeService.t("sheets-ui.definedName.updateButton"),
20699
20729
  placement: "top",
20700
20730
  children: /* @__PURE__ */ jsx("a", {
20701
20731
  className: "univer-rounded univer-p-1 hover:univer-bg-gray-100",
@@ -20706,7 +20736,7 @@ const DefinedNameContainer = () => {
20706
20736
  children: /* @__PURE__ */ jsx(PenIcon, {})
20707
20737
  })
20708
20738
  }), /* @__PURE__ */ jsx(Tooltip, {
20709
- title: localeService.t("definedName.deleteButton"),
20739
+ title: localeService.t("sheets-ui.definedName.deleteButton"),
20710
20740
  placement: "top",
20711
20741
  children: /* @__PURE__ */ jsx("a", {
20712
20742
  className: "univer-rounded univer-p-1 univer-text-red-600 hover:univer-bg-gray-100",
@@ -20725,7 +20755,7 @@ const DefinedNameContainer = () => {
20725
20755
  onConfirm: () => {
20726
20756
  handleDeleteConfirm(definedName.id);
20727
20757
  },
20728
- children: localeService.t("definedName.deleteConfirmText")
20758
+ children: localeService.t("sheets-ui.definedName.deleteConfirmText")
20729
20759
  }),
20730
20760
  definedName.id === editorKey && /* @__PURE__ */ jsx(DefinedNameInput, {
20731
20761
  confirm: insertConfirm,
@@ -21061,7 +21091,8 @@ const EditorContainer = () => {
21061
21091
  else editorBridgeService.disableForceKeepVisible();
21062
21092
  },
21063
21093
  disableSelectionOnClick: true,
21064
- disableContextMenu: false
21094
+ disableContextMenu: false,
21095
+ canvasStyle: { backgroundColor: "transparent" }
21065
21096
  })
21066
21097
  });
21067
21098
  };
@@ -21196,10 +21227,10 @@ function DefinedNameOverlay({ search, isInputEvent }) {
21196
21227
  onClick: openSlider,
21197
21228
  children: [/* @__PURE__ */ jsx("div", {
21198
21229
  className: "univer-mb-2 univer-text-sm univer-font-semibold univer-text-gray-600 dark:!univer-text-gray-200",
21199
- children: localeService.t("definedName.managerTitle")
21230
+ children: localeService.t("sheets-ui.definedName.managerTitle")
21200
21231
  }), /* @__PURE__ */ jsx("div", {
21201
21232
  className: "univer-text-xs univer-text-gray-400",
21202
- children: localeService.t("definedName.managerDescription")
21233
+ children: localeService.t("sheets-ui.definedName.managerDescription")
21203
21234
  })]
21204
21235
  })]
21205
21236
  });
@@ -21616,12 +21647,13 @@ function FormulaBar(props) {
21616
21647
  className: "univer-flex univer-w-full univer-flex-1 univer-overflow-hidden univer-pl-3",
21617
21648
  children: [/* @__PURE__ */ jsxs("div", {
21618
21649
  ref,
21619
- className: "univer-relative univer-flex-1",
21650
+ className: "\n univer-relative univer-flex-1 univer-bg-white\n dark:!univer-bg-gray-900\n ",
21620
21651
  onPointerDown: handlePointerDown,
21621
21652
  onPointerUp: handlePointerUp,
21622
21653
  style: { pointerEvents: hideEditor ? "none" : "auto" },
21623
21654
  children: [FormulaEditor && /* @__PURE__ */ jsx(FormulaEditor, {
21624
- className: "univer-relative univer-size-full univer-break-words univer-outline-none [&>div]:univer-ring-transparent",
21655
+ className: "univer-relative univer-size-full univer-break-words univer-outline-none",
21656
+ borderless: true,
21625
21657
  disableSelectionOnClick: true,
21626
21658
  editorId: DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
21627
21659
  initValue: "",
@@ -21640,7 +21672,8 @@ function FormulaBar(props) {
21640
21672
  else editorBridgeService.disableForceKeepVisible();
21641
21673
  },
21642
21674
  autoScrollbar: false,
21643
- disableContextMenu: false
21675
+ disableContextMenu: false,
21676
+ canvasStyle: { backgroundColor: "#fff" }
21644
21677
  }), hideEditor && /* @__PURE__ */ jsx("div", { className: "univer-pointer-events-none univer-relative univer-left-0 univer-top-0 univer-z-[100] univer-size-full univer-cursor-not-allowed univer-bg-white" })]
21645
21678
  }), /* @__PURE__ */ jsx("div", {
21646
21679
  className: clsx("univer-flex univer-h-full univer-w-5 univer-cursor-pointer univer-items-center univer-justify-center univer-text-xs univer-text-gray-700 dark:!univer-text-gray-200", { "univer-cursor-not-allowed univer-text-gray-200 dark:!univer-text-gray-700": editDisable }),
@@ -21696,8 +21729,7 @@ function SheetBarMenu() {
21696
21729
  if (!sheetId || !workbook) return;
21697
21730
  if (item.hidden) commandService.executeCommand(SetWorksheetShowCommand.id, {
21698
21731
  unitId: workbook.getUnitId(),
21699
- subUnitId: sheetId,
21700
- value: sheetId
21732
+ subUnitId: sheetId
21701
21733
  });
21702
21734
  else if (!item.selected) commandService.executeCommand(SetWorksheetActivateCommand.id, {
21703
21735
  unitId: workbook.getUnitId(),
@@ -22748,10 +22780,10 @@ function SheetBarTabs() {
22748
22780
  const openSheetNameErrorDialog = useCallback((id, description) => {
22749
22781
  confirmService.open({
22750
22782
  id,
22751
- title: { title: localeService.t("sheetConfig.sheetNameErrorTitle") },
22783
+ title: { title: localeService.t("sheets-ui.sheetConfig.sheetNameErrorTitle") },
22752
22784
  children: { title: description },
22753
- cancelText: localeService.t("button.cancel"),
22754
- confirmText: localeService.t("button.confirm"),
22785
+ cancelText: localeService.t("sheets-ui.button.cancel"),
22786
+ confirmText: localeService.t("sheets-ui.button.confirm"),
22755
22787
  onClose() {
22756
22788
  focusTabEditor();
22757
22789
  confirmService.close(id);
@@ -22768,12 +22800,12 @@ function SheetBarTabs() {
22768
22800
  ]);
22769
22801
  const nameEmptyCheck = useCallback((name) => {
22770
22802
  if (name.trim() !== "") return false;
22771
- openSheetNameErrorDialog("sheetNameEmptyAlert", localeService.t("sheetConfig.sheetNameCannotIsEmptyError"));
22803
+ openSheetNameErrorDialog("sheetNameEmptyAlert", localeService.t("sheets-ui.sheetConfig.sheetNameCannotIsEmptyError"));
22772
22804
  return true;
22773
22805
  }, [localeService, openSheetNameErrorDialog]);
22774
22806
  const sheetNameSpecCharCheck = useCallback((name) => {
22775
22807
  if (nameCharacterCheck(name)) return false;
22776
- openSheetNameErrorDialog("sheetNameSpecCharAlert", localeService.t("sheetConfig.sheetNameSpecCharError"));
22808
+ openSheetNameErrorDialog("sheetNameSpecCharAlert", localeService.t("sheets-ui.sheetConfig.sheetNameSpecCharError"));
22777
22809
  return true;
22778
22810
  }, [localeService, openSheetNameErrorDialog]);
22779
22811
  const nameRepeatCheck = useCallback((name) => {
@@ -22783,10 +22815,10 @@ function SheetBarTabs() {
22783
22815
  const id = "sheetNameRepeatAlert";
22784
22816
  confirmService.open({
22785
22817
  id,
22786
- title: { title: localeService.t("sheetConfig.sheetNameErrorTitle") },
22787
- children: { title: localeService.t("sheetConfig.sheetNameAlreadyExistsError") },
22788
- cancelText: localeService.t("button.cancel"),
22789
- confirmText: localeService.t("button.confirm"),
22818
+ title: { title: localeService.t("sheets-ui.sheetConfig.sheetNameErrorTitle") },
22819
+ children: { title: localeService.t("sheets-ui.sheetConfig.sheetNameAlreadyExistsError") },
22820
+ cancelText: localeService.t("sheets-ui.button.cancel"),
22821
+ confirmText: localeService.t("sheets-ui.button.confirm"),
22790
22822
  onClose() {
22791
22823
  confirmService.close(id);
22792
22824
  focusTabEditor();
@@ -23141,7 +23173,7 @@ const SheetBar = () => {
23141
23173
  }, 0);
23142
23174
  };
23143
23175
  const handleScrollLeft = () => {
23144
- sheetBarService.setScrollX(-SCROLL_WIDTH);
23176
+ sheetBarService.setScrollX(-100);
23145
23177
  };
23146
23178
  const handleScrollRight = () => {
23147
23179
  sheetBarService.setScrollX(SCROLL_WIDTH);
@@ -23338,12 +23370,12 @@ const allowPatternFunctions = [
23338
23370
  FUNCTION_NAMES_STATISTICAL.MAX
23339
23371
  ];
23340
23372
  const functionDisplayNames = {
23341
- [FUNCTION_NAMES_MATH.SUM]: "statusbar.sum",
23342
- [FUNCTION_NAMES_STATISTICAL.AVERAGE]: "statusbar.average",
23343
- [FUNCTION_NAMES_STATISTICAL.MIN]: "statusbar.min",
23344
- [FUNCTION_NAMES_STATISTICAL.MAX]: "statusbar.max",
23345
- [FUNCTION_NAMES_STATISTICAL.COUNT]: "statusbar.count",
23346
- [FUNCTION_NAMES_STATISTICAL.COUNTA]: "statusbar.countA",
23373
+ [FUNCTION_NAMES_MATH.SUM]: "sheets-ui.statusbar.sum",
23374
+ [FUNCTION_NAMES_STATISTICAL.AVERAGE]: "sheets-ui.statusbar.average",
23375
+ [FUNCTION_NAMES_STATISTICAL.MIN]: "sheets-ui.statusbar.min",
23376
+ [FUNCTION_NAMES_STATISTICAL.MAX]: "sheets-ui.statusbar.max",
23377
+ [FUNCTION_NAMES_STATISTICAL.COUNT]: "sheets-ui.statusbar.count",
23378
+ [FUNCTION_NAMES_STATISTICAL.COUNTA]: "sheets-ui.statusbar.countA",
23347
23379
  [FUNCTION_NAMES_TEXT.CONCATENATE]: "concatenate"
23348
23380
  };
23349
23381
  const CopyableStatisticItem = (item) => {
@@ -23355,11 +23387,11 @@ const CopyableStatisticItem = (item) => {
23355
23387
  await clipboardService.writeText(item.value.toString());
23356
23388
  messageService.show({
23357
23389
  type: MessageType.Success,
23358
- content: localeService.t("statusbar.copied")
23390
+ content: localeService.t("sheets-ui.statusbar.copied")
23359
23391
  });
23360
23392
  };
23361
23393
  return /* @__PURE__ */ jsx(Tooltip, {
23362
- title: localeService.t("statusbar.clickToCopy"),
23394
+ title: localeService.t("sheets-ui.statusbar.clickToCopy"),
23363
23395
  placement: "top",
23364
23396
  children: /* @__PURE__ */ jsx("div", {
23365
23397
  className: "univer-flex univer-cursor-pointer univer-truncate univer-text-center univer-text-xs univer-text-gray-400",
@@ -23563,8 +23595,9 @@ const SetColHiddenShortcutItem = {
23563
23595
  //#region src/controllers/shortcuts/selection.shortcut.ts
23564
23596
  const MoveSelectionDownShortcutItem = {
23565
23597
  id: MoveSelectionCommand.id,
23566
- description: "shortcut.sheet.select-below-cell",
23598
+ description: "sheets-ui.shortcut.sheet.select-below-cell",
23567
23599
  group: "3_sheet-view",
23600
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23568
23601
  binding: KeyCode.ARROW_DOWN,
23569
23602
  priority: 100,
23570
23603
  preconditions: whenSheetEditorFocused,
@@ -23572,8 +23605,9 @@ const MoveSelectionDownShortcutItem = {
23572
23605
  };
23573
23606
  const MoveSelectionUpShortcutItem = {
23574
23607
  id: MoveSelectionCommand.id,
23575
- description: "shortcut.sheet.select-up-cell",
23608
+ description: "sheets-ui.shortcut.sheet.select-up-cell",
23576
23609
  group: "3_sheet-view",
23610
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23577
23611
  binding: KeyCode.ARROW_UP,
23578
23612
  priority: 100,
23579
23613
  preconditions: whenSheetEditorFocused,
@@ -23581,8 +23615,9 @@ const MoveSelectionUpShortcutItem = {
23581
23615
  };
23582
23616
  const MoveSelectionLeftShortcutItem = {
23583
23617
  id: MoveSelectionCommand.id,
23584
- description: "shortcut.sheet.select-left-cell",
23618
+ description: "sheets-ui.shortcut.sheet.select-left-cell",
23585
23619
  group: "3_sheet-view",
23620
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23586
23621
  binding: KeyCode.ARROW_LEFT,
23587
23622
  priority: 100,
23588
23623
  preconditions: whenSheetEditorFocusedAndFxNotFocused,
@@ -23590,8 +23625,9 @@ const MoveSelectionLeftShortcutItem = {
23590
23625
  };
23591
23626
  const MoveSelectionRightShortcutItem = {
23592
23627
  id: MoveSelectionCommand.id,
23593
- description: "shortcut.sheet.select-right-cell",
23628
+ description: "sheets-ui.shortcut.sheet.select-right-cell",
23594
23629
  group: "3_sheet-view",
23630
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23595
23631
  binding: KeyCode.ARROW_RIGHT,
23596
23632
  priority: 100,
23597
23633
  preconditions: whenSheetEditorFocusedAndFxNotFocused,
@@ -23599,8 +23635,9 @@ const MoveSelectionRightShortcutItem = {
23599
23635
  };
23600
23636
  const MoveSelectionTabShortcutItem = {
23601
23637
  id: MoveSelectionEnterAndTabCommand.id,
23602
- description: "shortcut.sheet.select-next-cell",
23638
+ description: "sheets-ui.shortcut.sheet.select-next-cell",
23603
23639
  group: "3_sheet-view",
23640
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23604
23641
  binding: KeyCode.TAB,
23605
23642
  priority: 100,
23606
23643
  preconditions: whenSheetEditorFocused,
@@ -23611,8 +23648,9 @@ const MoveSelectionTabShortcutItem = {
23611
23648
  };
23612
23649
  const MoveSelectionTabLeftShortcutItem = {
23613
23650
  id: MoveSelectionEnterAndTabCommand.id,
23614
- description: "shortcut.sheet.select-previous-cell",
23651
+ description: "sheets-ui.shortcut.sheet.select-previous-cell",
23615
23652
  group: "3_sheet-view",
23653
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23616
23654
  binding: KeyCode.TAB | MetaKeys.SHIFT,
23617
23655
  priority: 100,
23618
23656
  preconditions: whenSheetEditorFocused,
@@ -23623,8 +23661,9 @@ const MoveSelectionTabLeftShortcutItem = {
23623
23661
  };
23624
23662
  const MoveSelectionEnterShortcutItem = {
23625
23663
  id: MoveSelectionEnterAndTabCommand.id,
23626
- description: "shortcut.sheet.select-below-cell",
23664
+ description: "sheets-ui.shortcut.sheet.select-below-cell",
23627
23665
  group: "3_sheet-view",
23666
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23628
23667
  binding: KeyCode.ENTER,
23629
23668
  priority: 100,
23630
23669
  preconditions: whenSheetEditorFocused,
@@ -23635,8 +23674,9 @@ const MoveSelectionEnterShortcutItem = {
23635
23674
  };
23636
23675
  const MoveSelectionEnterUpShortcutItem = {
23637
23676
  id: MoveSelectionEnterAndTabCommand.id,
23638
- description: "shortcut.sheet.select-up-cell",
23677
+ description: "sheets-ui.shortcut.sheet.select-up-cell",
23639
23678
  group: "3_sheet-view",
23679
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23640
23680
  binding: KeyCode.ENTER | MetaKeys.SHIFT,
23641
23681
  priority: 100,
23642
23682
  preconditions: whenSheetEditorFocused,
@@ -23647,8 +23687,9 @@ const MoveSelectionEnterUpShortcutItem = {
23647
23687
  };
23648
23688
  const MoveSelectionEndDownShortcutItem = {
23649
23689
  id: MoveSelectionCommand.id,
23650
- description: "shortcut.sheet.select-below-value-cell",
23690
+ description: "sheets-ui.shortcut.sheet.select-below-value-cell",
23651
23691
  group: "3_sheet-view",
23692
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23652
23693
  binding: KeyCode.ARROW_DOWN | MetaKeys.CTRL_COMMAND,
23653
23694
  preconditions: whenSheetEditorFocused,
23654
23695
  staticParameters: {
@@ -23658,8 +23699,9 @@ const MoveSelectionEndDownShortcutItem = {
23658
23699
  };
23659
23700
  const MoveSelectionEndUpShortcutItem = {
23660
23701
  id: MoveSelectionCommand.id,
23661
- description: "shortcut.sheet.select-up-value-cell",
23702
+ description: "sheets-ui.shortcut.sheet.select-up-value-cell",
23662
23703
  group: "3_sheet-view",
23704
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23663
23705
  binding: KeyCode.ARROW_UP | MetaKeys.CTRL_COMMAND,
23664
23706
  preconditions: whenSheetEditorFocused,
23665
23707
  staticParameters: {
@@ -23669,8 +23711,9 @@ const MoveSelectionEndUpShortcutItem = {
23669
23711
  };
23670
23712
  const MoveSelectionEndLeftShortcutItem = {
23671
23713
  id: MoveSelectionCommand.id,
23672
- description: "shortcut.sheet.select-left-value-cell",
23714
+ description: "sheets-ui.shortcut.sheet.select-left-value-cell",
23673
23715
  group: "3_sheet-view",
23716
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23674
23717
  binding: KeyCode.ARROW_LEFT | MetaKeys.CTRL_COMMAND,
23675
23718
  preconditions: whenSheetEditorFocused,
23676
23719
  staticParameters: {
@@ -23680,8 +23723,9 @@ const MoveSelectionEndLeftShortcutItem = {
23680
23723
  };
23681
23724
  const MoveSelectionEndRightShortcutItem = {
23682
23725
  id: MoveSelectionCommand.id,
23683
- description: "shortcut.sheet.select-right-value-cell",
23726
+ description: "sheets-ui.shortcut.sheet.select-right-value-cell",
23684
23727
  group: "3_sheet-view",
23728
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23685
23729
  binding: KeyCode.ARROW_RIGHT | MetaKeys.CTRL_COMMAND,
23686
23730
  preconditions: whenSheetEditorFocused,
23687
23731
  staticParameters: {
@@ -23691,40 +23735,45 @@ const MoveSelectionEndRightShortcutItem = {
23691
23735
  };
23692
23736
  const ExpandSelectionDownShortcutItem = {
23693
23737
  id: ExpandSelectionCommand.id,
23694
- description: "shortcut.sheet.expand-selection-down",
23738
+ description: "sheets-ui.shortcut.sheet.expand-selection-down",
23695
23739
  group: "3_sheet-view",
23740
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23696
23741
  binding: KeyCode.ARROW_DOWN | MetaKeys.SHIFT,
23697
23742
  preconditions: whenSheetEditorFocused,
23698
23743
  staticParameters: { direction: Direction.DOWN }
23699
23744
  };
23700
23745
  const ExpandSelectionUpShortcutItem = {
23701
23746
  id: ExpandSelectionCommand.id,
23702
- description: "shortcut.sheet.expand-selection-up",
23747
+ description: "sheets-ui.shortcut.sheet.expand-selection-up",
23703
23748
  group: "3_sheet-view",
23749
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23704
23750
  binding: KeyCode.ARROW_UP | MetaKeys.SHIFT,
23705
23751
  preconditions: whenSheetEditorFocused,
23706
23752
  staticParameters: { direction: Direction.UP }
23707
23753
  };
23708
23754
  const ExpandSelectionLeftShortcutItem = {
23709
23755
  id: ExpandSelectionCommand.id,
23710
- description: "shortcut.sheet.expand-selection-left",
23756
+ description: "sheets-ui.shortcut.sheet.expand-selection-left",
23711
23757
  group: "3_sheet-view",
23758
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23712
23759
  binding: KeyCode.ARROW_LEFT | MetaKeys.SHIFT,
23713
23760
  preconditions: whenSheetEditorFocused,
23714
23761
  staticParameters: { direction: Direction.LEFT }
23715
23762
  };
23716
23763
  const ExpandSelectionRightShortcutItem = {
23717
23764
  id: ExpandSelectionCommand.id,
23718
- description: "shortcut.sheet.expand-selection-right",
23765
+ description: "sheets-ui.shortcut.sheet.expand-selection-right",
23719
23766
  group: "3_sheet-view",
23767
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23720
23768
  binding: KeyCode.ARROW_RIGHT | MetaKeys.SHIFT,
23721
23769
  preconditions: whenSheetEditorFocused,
23722
23770
  staticParameters: { direction: Direction.RIGHT }
23723
23771
  };
23724
23772
  const ExpandSelectionEndDownShortcutItem = {
23725
23773
  id: ExpandSelectionCommand.id,
23726
- description: "shortcut.sheet.expand-selection-to-below-gap",
23774
+ description: "sheets-ui.shortcut.sheet.expand-selection-to-below-gap",
23727
23775
  group: "3_sheet-view",
23776
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23728
23777
  binding: KeyCode.ARROW_DOWN | MetaKeys.SHIFT | MetaKeys.CTRL_COMMAND,
23729
23778
  preconditions: whenSheetEditorFocused,
23730
23779
  staticParameters: {
@@ -23734,8 +23783,9 @@ const ExpandSelectionEndDownShortcutItem = {
23734
23783
  };
23735
23784
  const ExpandSelectionEndUpShortcutItem = {
23736
23785
  id: ExpandSelectionCommand.id,
23737
- description: "shortcut.sheet.expand-selection-to-up-gap",
23786
+ description: "sheets-ui.shortcut.sheet.expand-selection-to-up-gap",
23738
23787
  group: "3_sheet-view",
23788
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23739
23789
  binding: KeyCode.ARROW_UP | MetaKeys.SHIFT | MetaKeys.CTRL_COMMAND,
23740
23790
  preconditions: whenSheetEditorFocused,
23741
23791
  staticParameters: {
@@ -23745,8 +23795,9 @@ const ExpandSelectionEndUpShortcutItem = {
23745
23795
  };
23746
23796
  const ExpandSelectionEndLeftShortcutItem = {
23747
23797
  id: ExpandSelectionCommand.id,
23748
- description: "shortcut.sheet.expand-selection-to-left-gap",
23798
+ description: "sheets-ui.shortcut.sheet.expand-selection-to-left-gap",
23749
23799
  group: "3_sheet-view",
23800
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23750
23801
  binding: KeyCode.ARROW_LEFT | MetaKeys.SHIFT | MetaKeys.CTRL_COMMAND,
23751
23802
  preconditions: whenSheetEditorFocused,
23752
23803
  staticParameters: {
@@ -23756,8 +23807,9 @@ const ExpandSelectionEndLeftShortcutItem = {
23756
23807
  };
23757
23808
  const ExpandSelectionEndRightShortcutItem = {
23758
23809
  id: ExpandSelectionCommand.id,
23759
- description: "shortcut.sheet.expand-selection-to-right-gap",
23810
+ description: "sheets-ui.shortcut.sheet.expand-selection-to-right-gap",
23760
23811
  group: "3_sheet-view",
23812
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23761
23813
  binding: KeyCode.ARROW_RIGHT | MetaKeys.SHIFT | MetaKeys.CTRL_COMMAND,
23762
23814
  preconditions: whenSheetEditorFocused,
23763
23815
  staticParameters: {
@@ -23767,8 +23819,9 @@ const ExpandSelectionEndRightShortcutItem = {
23767
23819
  };
23768
23820
  const SelectAllShortcutItem = {
23769
23821
  id: SelectAllCommand.id,
23770
- description: "shortcut.sheet.select-all",
23822
+ description: "sheets-ui.shortcut.sheet.select-all",
23771
23823
  group: "3_sheet-view",
23824
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23772
23825
  binding: KeyCode.A | MetaKeys.CTRL_COMMAND,
23773
23826
  preconditions: whenSheetEditorFocused,
23774
23827
  staticParameters: {
@@ -23781,29 +23834,33 @@ const SelectAllShortcutItem = {
23781
23834
  //#region src/controllers/shortcuts/style.shortcut.ts
23782
23835
  const SetBoldShortcutItem = {
23783
23836
  id: SetRangeBoldCommand.id,
23784
- description: "shortcut.sheet.set-bold",
23837
+ description: "sheets-ui.shortcut.sheet.set-bold",
23785
23838
  group: "4_sheet-edit",
23839
+ groupTitle: "sheets-ui.shortcut.sheet-edit",
23786
23840
  preconditions: (contextService) => whenSheetFocusedInlineFormat(contextService),
23787
23841
  binding: KeyCode.B | MetaKeys.CTRL_COMMAND
23788
23842
  };
23789
23843
  const SetItalicShortcutItem = {
23790
23844
  id: SetRangeItalicCommand.id,
23791
- description: "shortcut.sheet.set-italic",
23845
+ description: "sheets-ui.shortcut.sheet.set-italic",
23792
23846
  group: "4_sheet-edit",
23847
+ groupTitle: "sheets-ui.shortcut.sheet-edit",
23793
23848
  preconditions: (contextService) => whenSheetFocusedInlineFormat(contextService),
23794
23849
  binding: KeyCode.I | MetaKeys.CTRL_COMMAND
23795
23850
  };
23796
23851
  const SetUnderlineShortcutItem = {
23797
23852
  id: SetRangeUnderlineCommand.id,
23798
- description: "shortcut.sheet.set-underline",
23853
+ description: "sheets-ui.shortcut.sheet.set-underline",
23799
23854
  group: "4_sheet-edit",
23855
+ groupTitle: "sheets-ui.shortcut.sheet-edit",
23800
23856
  preconditions: (contextService) => whenSheetFocusedInlineFormat(contextService),
23801
23857
  binding: KeyCode.U | MetaKeys.CTRL_COMMAND
23802
23858
  };
23803
23859
  const SetStrikeThroughShortcutItem = {
23804
23860
  id: SetRangeStrickThroughCommand.id,
23805
- description: "shortcut.sheet.set-strike-through",
23861
+ description: "sheets-ui.shortcut.sheet.set-strike-through",
23806
23862
  group: "4_sheet-edit",
23863
+ groupTitle: "sheets-ui.shortcut.sheet-edit",
23807
23864
  preconditions: (contextService) => whenSheetFocusedInlineFormat(contextService),
23808
23865
  binding: KeyCode.X | MetaKeys.SHIFT | MetaKeys.CTRL_COMMAND
23809
23866
  };
@@ -23836,9 +23893,10 @@ const ShiftDeleteSelectionValueShortcutItem = {
23836
23893
  //#region src/controllers/shortcuts/view.shortcut.ts
23837
23894
  const ZoomInShortcutItem = {
23838
23895
  id: ChangeZoomRatioCommand.id,
23839
- description: "shortcut.sheet.zoom-in",
23896
+ description: "sheets-ui.shortcut.sheet.zoom-in",
23840
23897
  binding: KeyCode.EQUAL | MetaKeys.CTRL_COMMAND,
23841
23898
  group: "3_sheet-view",
23899
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23842
23900
  preconditions: whenSheetEditorFocused,
23843
23901
  priority: 1,
23844
23902
  staticParameters: { delta: .2 }
@@ -23849,9 +23907,10 @@ const PreventDefaultZoomInShortcutItem = {
23849
23907
  };
23850
23908
  const ZoomOutShortcutItem = {
23851
23909
  id: ChangeZoomRatioCommand.id,
23852
- description: "shortcut.sheet.zoom-out",
23910
+ description: "sheets-ui.shortcut.sheet.zoom-out",
23853
23911
  binding: KeyCode.MINUS | MetaKeys.CTRL_COMMAND,
23854
23912
  group: "3_sheet-view",
23913
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23855
23914
  preconditions: whenSheetEditorFocused,
23856
23915
  priority: 1,
23857
23916
  staticParameters: { delta: -.2 }
@@ -23862,10 +23921,11 @@ const PreventDefaultZoomOutShortcutItem = {
23862
23921
  };
23863
23922
  const ResetZoomShortcutItem = {
23864
23923
  id: ChangeZoomRatioCommand.id,
23865
- description: "shortcut.sheet.reset-zoom",
23924
+ description: "sheets-ui.shortcut.sheet.reset-zoom",
23866
23925
  binding: KeyCode.Digit0 | MetaKeys.CTRL_COMMAND,
23867
23926
  preconditions: whenSheetEditorFocused,
23868
23927
  group: "3_sheet-view",
23928
+ groupTitle: "sheets-ui.shortcut.sheet-view",
23869
23929
  priority: 1,
23870
23930
  staticParameters: { reset: true }
23871
23931
  };
@@ -24363,7 +24423,7 @@ const useHighlightRange = (ranges = []) => {
24363
24423
  //#endregion
24364
24424
  //#region package.json
24365
24425
  var name = "@univerjs/sheets-ui";
24366
- var version = "0.24.0";
24426
+ var version = "0.25.0";
24367
24427
 
24368
24428
  //#endregion
24369
24429
  //#region src/services/cell-alert-manager.service.ts
@@ -24910,8 +24970,8 @@ let ForceStringAlertRenderController = class ForceStringAlertRenderController ex
24910
24970
  }
24911
24971
  this._cellAlertManagerService.showAlert({
24912
24972
  type: 2,
24913
- title: this._localeService.t("info.error"),
24914
- message: this._localeService.t("info.forceStringInfo"),
24973
+ title: this._localeService.t("sheets-ui.info.error"),
24974
+ message: this._localeService.t("sheets-ui.info.forceStringInfo"),
24915
24975
  location,
24916
24976
  width: 200,
24917
24977
  height: 74,
@@ -25849,7 +25909,7 @@ let SheetPermissionInterceptorClipboardController = class SheetPermissionInterce
25849
25909
  break;
25850
25910
  }
25851
25911
  }
25852
- if (!hasPermission) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localService.t("permission.dialog.pasteErr"));
25912
+ if (!hasPermission) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localService.t("sheets-ui.permission.dialog.pasteErr"));
25853
25913
  return hasPermission;
25854
25914
  }
25855
25915
  }));
@@ -25924,7 +25984,7 @@ const checkRangeValid = (injector, permissionRanges, permissionId, unitId, subUn
25924
25984
  const worksheetRuleModel = injector.get(WorksheetProtectionRuleModel);
25925
25985
  const rangeProtectionRuleModel = injector.get(RangeProtectionRuleModel);
25926
25986
  let rangeErrorString = "";
25927
- if (permissionRanges.length === 0) rangeErrorString = localeService.t("permission.panel.emptyRangeError");
25987
+ if (permissionRanges.length === 0) rangeErrorString = localeService.t("sheets-ui.permission.panel.emptyRangeError");
25928
25988
  else if (permissionRanges.length > 1) {
25929
25989
  let hasLap = false;
25930
25990
  for (let i = 0; i < permissionRanges.length; i++) {
@@ -25934,11 +25994,11 @@ const checkRangeValid = (injector, permissionRanges, permissionId, unitId, subUn
25934
25994
  }
25935
25995
  if (hasLap) break;
25936
25996
  }
25937
- if (hasLap) rangeErrorString = localeService.t("permission.panel.rangeOverlapError");
25997
+ if (hasLap) rangeErrorString = localeService.t("sheets-ui.permission.panel.rangeOverlapError");
25938
25998
  }
25939
25999
  if (!rangeErrorString) {
25940
26000
  if (worksheetRuleModel.getRule(unitId, subUnitId) && !permissionId) {
25941
- rangeErrorString = localeService.t("permission.panel.rangeOverlapOverPermissionError");
26001
+ rangeErrorString = localeService.t("sheets-ui.permission.panel.rangeOverlapOverPermissionError");
25942
26002
  return rangeErrorString;
25943
26003
  }
25944
26004
  const lapRule = rangeProtectionRuleModel.getSubunitRuleList(unitId, subUnitId).filter((rule) => {
@@ -25950,7 +26010,7 @@ const checkRangeValid = (injector, permissionRanges, permissionId, unitId, subUn
25950
26010
  });
25951
26011
  if (lapRule === null || lapRule === void 0 ? void 0 : lapRule.ranges.find((range) => {
25952
26012
  return permissionRanges.some((r) => Rectangle.intersects(range, r));
25953
- })) rangeErrorString = localeService.t("permission.panel.rangeOverlapOverPermissionError");
26013
+ })) rangeErrorString = localeService.t("sheets-ui.permission.panel.rangeOverlapOverPermissionError");
25954
26014
  }
25955
26015
  return rangeErrorString === "" ? void 0 : rangeErrorString;
25956
26016
  };
@@ -26149,7 +26209,7 @@ const PermissionDetailFooterPart = (props) => {
26149
26209
  });
26150
26210
  }
26151
26211
  const sidebarProps = {
26152
- header: { title: `${localeService.t("permission.panel.title")}` },
26212
+ header: { title: `${localeService.t("sheets-ui.permission.panel.title")}` },
26153
26213
  children: {
26154
26214
  label: UNIVER_SHEET_PERMISSION_PANEL,
26155
26215
  showDetail: false
@@ -26158,14 +26218,14 @@ const PermissionDetailFooterPart = (props) => {
26158
26218
  };
26159
26219
  sidebarService.open(sidebarProps);
26160
26220
  },
26161
- children: localeService.t("permission.button.confirm")
26221
+ children: localeService.t("sheets-ui.permission.button.confirm")
26162
26222
  }), /* @__PURE__ */ jsx(Button, {
26163
26223
  onClick: () => {
26164
26224
  sheetPermissionPanelModel.reset();
26165
26225
  sheetPermissionUserManagerService.reset();
26166
26226
  sidebarService.close();
26167
26227
  },
26168
- children: localeService.t("permission.button.cancel")
26228
+ children: localeService.t("sheets-ui.permission.button.cancel")
26169
26229
  })]
26170
26230
  });
26171
26231
  };
@@ -26200,7 +26260,7 @@ const PermissionDetailMainPart = (props) => {
26200
26260
  };
26201
26261
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FormLayout, {
26202
26262
  className: "univer-font-medium",
26203
- label: localeService.t("permission.panel.protectedRange"),
26263
+ label: localeService.t("sheets-ui.permission.panel.protectedRange"),
26204
26264
  error: rangesErrMsg,
26205
26265
  children: RangeSelector && /* @__PURE__ */ jsx(RangeSelector, {
26206
26266
  unitId,
@@ -26210,11 +26270,11 @@ const PermissionDetailMainPart = (props) => {
26210
26270
  })
26211
26271
  }), /* @__PURE__ */ jsx(FormLayout, {
26212
26272
  className: "univer-font-medium",
26213
- label: localeService.t("permission.panel.permissionDirection"),
26273
+ label: localeService.t("sheets-ui.permission.panel.permissionDirection"),
26214
26274
  children: /* @__PURE__ */ jsx(Input, {
26215
26275
  value: desc,
26216
26276
  onChange: (v) => onDescChange(v),
26217
- placeholder: localeService.t("permission.panel.permissionDirectionPlaceholder")
26277
+ placeholder: localeService.t("sheets-ui.permission.panel.permissionDirectionPlaceholder")
26218
26278
  })
26219
26279
  })] });
26220
26280
  };
@@ -26295,17 +26355,17 @@ const PermissionDetailUserPart = (props) => {
26295
26355
  return /* @__PURE__ */ jsxs(Fragment, { children: [
26296
26356
  /* @__PURE__ */ jsx(FormLayout, {
26297
26357
  className: "univer-font-medium",
26298
- label: localeService.t("permission.panel.editPermission"),
26358
+ label: localeService.t("sheets-ui.permission.panel.editPermission"),
26299
26359
  children: /* @__PURE__ */ jsxs(RadioGroup, {
26300
26360
  value: editState,
26301
26361
  onChange: (v) => onEditStateChange(v),
26302
26362
  className: "univer-flex univer-flex-col",
26303
26363
  children: [/* @__PURE__ */ jsx(Radio, {
26304
26364
  value: EditStateEnum.OnlyMe,
26305
- children: /* @__PURE__ */ jsx("span", { children: localeService.t("permission.panel.onlyICanEdit") })
26365
+ children: /* @__PURE__ */ jsx("span", { children: localeService.t("sheets-ui.permission.panel.onlyICanEdit") })
26306
26366
  }), /* @__PURE__ */ jsx(Radio, {
26307
26367
  value: EditStateEnum.DesignedUserCanEdit,
26308
- children: /* @__PURE__ */ jsx("span", { children: localeService.t("permission.panel.designedUserCanEdit") })
26368
+ children: /* @__PURE__ */ jsx("span", { children: localeService.t("sheets-ui.permission.panel.designedUserCanEdit") })
26309
26369
  })]
26310
26370
  })
26311
26371
  }),
@@ -26314,10 +26374,10 @@ const PermissionDetailUserPart = (props) => {
26314
26374
  children: [
26315
26375
  /* @__PURE__ */ jsxs("div", {
26316
26376
  className: "univer-flex univer-items-center univer-justify-between univer-text-sm",
26317
- children: [/* @__PURE__ */ jsx("span", { children: localeService.t("permission.panel.designedPerson") }), /* @__PURE__ */ jsx("span", {
26377
+ children: [/* @__PURE__ */ jsx("span", { children: localeService.t("sheets-ui.permission.panel.designedPerson") }), /* @__PURE__ */ jsx("span", {
26318
26378
  className: "univer-cursor-pointer univer-text-primary-600",
26319
26379
  onClick: handleAddPerson,
26320
- children: localeService.t("permission.panel.addPerson")
26380
+ children: localeService.t("sheets-ui.permission.panel.addPerson")
26321
26381
  })]
26322
26382
  }),
26323
26383
  /* @__PURE__ */ jsx("div", { className: "univer-my-2 univer-h-px univer-bg-gray-200" }),
@@ -26341,10 +26401,10 @@ const PermissionDetailUserPart = (props) => {
26341
26401
  borderless: true,
26342
26402
  value: "edit",
26343
26403
  options: [{
26344
- label: `${localeService.t("permission.panel.canEdit")}`,
26404
+ label: `${localeService.t("sheets-ui.permission.panel.canEdit")}`,
26345
26405
  value: "edit"
26346
26406
  }, {
26347
- label: `${localeService.t("permission.panel.delete")}`,
26407
+ label: `${localeService.t("sheets-ui.permission.panel.delete")}`,
26348
26408
  value: "delete"
26349
26409
  }],
26350
26410
  onChange: (v) => {
@@ -26365,7 +26425,7 @@ const PermissionDetailUserPart = (props) => {
26365
26425
  alt: ""
26366
26426
  }), /* @__PURE__ */ jsx("p", {
26367
26427
  className: "univer-w-60 univer-break-words univer-text-sm univer-text-gray-400",
26368
- children: localeService.t("permission.dialog.userEmpty")
26428
+ children: localeService.t("sheets-ui.permission.dialog.userEmpty")
26369
26429
  })]
26370
26430
  })
26371
26431
  })
@@ -26373,17 +26433,17 @@ const PermissionDetailUserPart = (props) => {
26373
26433
  }),
26374
26434
  /* @__PURE__ */ jsx(FormLayout, {
26375
26435
  className: "univer-font-medium",
26376
- label: localeService.t("permission.panel.viewPermission"),
26436
+ label: localeService.t("sheets-ui.permission.panel.viewPermission"),
26377
26437
  children: /* @__PURE__ */ jsxs(RadioGroup, {
26378
26438
  value: viewState,
26379
26439
  onChange: (v) => onViewStateChange(v),
26380
26440
  className: "univer-flex univer-flex-col last:univer-mb-0",
26381
26441
  children: [/* @__PURE__ */ jsx(Radio, {
26382
26442
  value: ViewStateEnum.OthersCanView,
26383
- children: /* @__PURE__ */ jsx("span", { children: localeService.t("permission.panel.othersCanView") })
26443
+ children: /* @__PURE__ */ jsx("span", { children: localeService.t("sheets-ui.permission.panel.othersCanView") })
26384
26444
  }), /* @__PURE__ */ jsx(Radio, {
26385
26445
  value: ViewStateEnum.NoOneElseCanView,
26386
- children: /* @__PURE__ */ jsx("span", { children: localeService.t("permission.panel.noOneElseCanView") })
26446
+ children: /* @__PURE__ */ jsx("span", { children: localeService.t("sheets-ui.permission.panel.noOneElseCanView") })
26387
26447
  })]
26388
26448
  })
26389
26449
  })
@@ -26594,7 +26654,7 @@ function SheetPermissionPanelList() {
26594
26654
  subUnitId: rule.subUnitId
26595
26655
  });
26596
26656
  const sidebarProps = {
26597
- header: { title: "permission.panel.title" },
26657
+ header: { title: "sheets-ui.permission.panel.title" },
26598
26658
  children: {
26599
26659
  label: UNIVER_SHEET_PERMISSION_PANEL,
26600
26660
  showDetail: true,
@@ -26619,14 +26679,14 @@ function SheetPermissionPanelList() {
26619
26679
  onClick: () => handleChangeHeaderType(true),
26620
26680
  children: [/* @__PURE__ */ jsxs("div", {
26621
26681
  className: clsx("univer-h-6 univer-text-base univer-font-medium univer-leading-6", { "univer-text-blue-500": isCurrentSheet }),
26622
- children: [" ", localeService.t("permission.panel.currentSheet")]
26682
+ children: [" ", localeService.t("sheets-ui.permission.panel.currentSheet")]
26623
26683
  }), /* @__PURE__ */ jsx("div", { className: clsx("univer-mt-1 univer-h-0.5 univer-w-6", { "univer-bg-blue-500": isCurrentSheet }) })]
26624
26684
  }), /* @__PURE__ */ jsxs("div", {
26625
26685
  className: "univer-mr-5 univer-flex univer-cursor-pointer univer-flex-col univer-items-center",
26626
26686
  onClick: () => handleChangeHeaderType(false),
26627
26687
  children: [/* @__PURE__ */ jsx("div", {
26628
26688
  className: clsx("univer-h-6 univer-text-base univer-font-medium univer-leading-6", { "univer-text-blue-500": !isCurrentSheet }),
26629
- children: localeService.t("permission.panel.allSheet")
26689
+ children: localeService.t("sheets-ui.permission.panel.allSheet")
26630
26690
  }), /* @__PURE__ */ jsx("div", { className: clsx("univer-mt-1 univer-h-0.5 univer-w-6", { "univer-bg-blue-500": !isCurrentSheet }) })]
26631
26691
  })]
26632
26692
  }),
@@ -26685,14 +26745,14 @@ function SheetPermissionPanelList() {
26685
26745
  }), (hasManagerPermission || hasDeletePermission) && /* @__PURE__ */ jsxs("div", {
26686
26746
  className: "univer-flex univer-items-center",
26687
26747
  children: [hasManagerPermission && /* @__PURE__ */ jsx(Tooltip, {
26688
- title: localeService.t("permission.panel.edit"),
26748
+ title: localeService.t("sheets-ui.permission.panel.edit"),
26689
26749
  children: /* @__PURE__ */ jsx("div", {
26690
26750
  className: "univer-box-border univer-h-6 univer-rounded-sm univer-p-1 hover:univer-bg-gray-200",
26691
26751
  onClick: () => handleEdit(rule),
26692
26752
  children: /* @__PURE__ */ jsx(WriteIcon, {})
26693
26753
  })
26694
26754
  }), hasDeletePermission && /* @__PURE__ */ jsx(Tooltip, {
26695
- title: localeService.t("permission.panel.delete"),
26755
+ title: localeService.t("sheets-ui.permission.panel.delete"),
26696
26756
  children: /* @__PURE__ */ jsx("div", {
26697
26757
  className: "univer-box-border univer-h-6 univer-rounded-sm univer-p-1 hover:univer-bg-gray-200",
26698
26758
  onClick: () => handleDelete(rule),
@@ -26716,11 +26776,11 @@ function SheetPermissionPanelList() {
26716
26776
  }),
26717
26777
  /* @__PURE__ */ jsx("span", {
26718
26778
  className: "univer-h-4 univer-flex-grow univer-text-xs univer-text-gray-900 dark:!univer-text-white",
26719
- children: localeService.t("permission.panel.created")
26779
+ children: localeService.t("sheets-ui.permission.panel.created")
26720
26780
  }),
26721
26781
  /* @__PURE__ */ jsx("span", {
26722
26782
  className: "univer-h-4 univer-text-xs univer-text-gray-900 dark:!univer-text-white",
26723
- children: editPermission ? `${localeService.t("permission.panel.iCanEdit")}` : `${localeService.t("permission.panel.iCanNotEdit")}`
26783
+ children: editPermission ? `${localeService.t("sheets-ui.permission.panel.iCanEdit")}` : `${localeService.t("sheets-ui.permission.panel.iCanNotEdit")}`
26724
26784
  })
26725
26785
  ]
26726
26786
  }),
@@ -26728,10 +26788,10 @@ function SheetPermissionPanelList() {
26728
26788
  className: "univer-mt-2 univer-flex univer-items-center",
26729
26789
  children: [/* @__PURE__ */ jsx("span", {
26730
26790
  className: "univer-h-4 univer-flex-grow univer-text-xs univer-text-gray-900 dark:!univer-text-white",
26731
- children: localeService.t("permission.panel.viewPermission")
26791
+ children: localeService.t("sheets-ui.permission.panel.viewPermission")
26732
26792
  }), /* @__PURE__ */ jsx("span", {
26733
26793
  className: "univer-h-4 univer-text-xs univer-text-gray-900 dark:!univer-text-white",
26734
- children: viewPermission ? `${localeService.t("permission.panel.iCanView")}` : `${localeService.t("permission.panel.iCanNotView")}`
26794
+ children: viewPermission ? `${localeService.t("sheets-ui.permission.panel.iCanView")}` : `${localeService.t("sheets-ui.permission.panel.iCanNotView")}`
26735
26795
  })]
26736
26796
  }),
26737
26797
  rule.description && /* @__PURE__ */ jsx(Tooltip, {
@@ -26754,7 +26814,7 @@ function SheetPermissionPanelList() {
26754
26814
  draggable: false
26755
26815
  }), /* @__PURE__ */ jsx("p", {
26756
26816
  className: "univer-w-60 univer-break-words univer-text-sm univer-text-gray-400",
26757
- children: localeService.t("permission.dialog.listEmpty")
26817
+ children: localeService.t("sheets-ui.permission.dialog.listEmpty")
26758
26818
  })]
26759
26819
  }),
26760
26820
  hasSetProtectPermission && /* @__PURE__ */ jsx("div", {
@@ -26764,7 +26824,7 @@ function SheetPermissionPanelList() {
26764
26824
  variant: "primary",
26765
26825
  onClick: () => {
26766
26826
  const sidebarProps = {
26767
- header: { title: `${localeService.t("permission.panel.title")}` },
26827
+ header: { title: `${localeService.t("sheets-ui.permission.panel.title")}` },
26768
26828
  children: {
26769
26829
  label: "UNIVER_SHEET_PERMISSION_PANEL",
26770
26830
  showDetail: true
@@ -26773,7 +26833,7 @@ function SheetPermissionPanelList() {
26773
26833
  };
26774
26834
  sidebarService.open(sidebarProps);
26775
26835
  },
26776
- children: [/* @__PURE__ */ jsx("div", { children: "+ " }), localeService.t("permission.button.addNewPermission")]
26836
+ children: [/* @__PURE__ */ jsx("div", { children: "+ " }), localeService.t("sheets-ui.permission.button.addNewPermission")]
26777
26837
  })
26778
26838
  })
26779
26839
  ]
@@ -26833,7 +26893,7 @@ const SheetPermissionDialog = () => {
26833
26893
  const [permissionMap, setPermissionMap] = useState(() => {
26834
26894
  return Object.keys(subUnitPermissionTypeMap).reduce((acc, action) => {
26835
26895
  acc[action] = {
26836
- text: localeService.t(`permission.panel.${subUnitPermissionTypeMap[Number(action)]}`),
26896
+ text: localeService.t(`sheets-ui.permission.panel.${subUnitPermissionTypeMap[Number(action)]}`),
26837
26897
  allowed: true
26838
26898
  };
26839
26899
  return acc;
@@ -26861,7 +26921,7 @@ const SheetPermissionDialog = () => {
26861
26921
  actions: defaultWorksheetUnitActionList
26862
26922
  }))[0].strategies.reduce((p, c) => {
26863
26923
  if (subUnitPermissionTypeMap[c.action]) p[c.action] = {
26864
- text: localeService.t(`permission.panel.${subUnitPermissionTypeMap[c.action]}`),
26924
+ text: localeService.t(`sheets-ui.permission.panel.${subUnitPermissionTypeMap[c.action]}`),
26865
26925
  allowed: c.role !== UnitRole.Owner
26866
26926
  };
26867
26927
  return p;
@@ -26929,13 +26989,16 @@ const SheetPermissionDialog = () => {
26929
26989
  return /* @__PURE__ */ jsx(Spin, {
26930
26990
  loading,
26931
26991
  children: /* @__PURE__ */ jsxs("div", {
26932
- className: clsx("univer-flex univer-flex-col", borderTopClassName),
26992
+ className: clsx("univer-flex univer-flex-col univer-gap-2 univer-pt-2", borderTopClassName),
26933
26993
  children: [Object.keys(permissionMap).map((action) => {
26934
26994
  const actionItem = permissionMap[action];
26935
26995
  const { text, allowed } = actionItem;
26936
26996
  return /* @__PURE__ */ jsxs("div", {
26937
- className: "univer-my-1.5 univer-flex univer-h-5 univer-items-center univer-justify-between univer-leading-5",
26938
- children: [/* @__PURE__ */ jsx("div", { children: text }), /* @__PURE__ */ jsx(Switch, {
26997
+ className: "univer-flex univer-h-5 univer-items-center univer-justify-between",
26998
+ children: [/* @__PURE__ */ jsx("span", {
26999
+ className: "univer-text-sm",
27000
+ children: text
27001
+ }), /* @__PURE__ */ jsx(Switch, {
26939
27002
  defaultChecked: allowed,
26940
27003
  onChange: () => {
26941
27004
  setPermissionMap({
@@ -26954,14 +27017,14 @@ const SheetPermissionDialog = () => {
26954
27017
  onClick: () => {
26955
27018
  dialogService.close(UNIVER_SHEET_PERMISSION_DIALOG_ID);
26956
27019
  },
26957
- children: localeService.t("permission.button.cancel")
27020
+ children: localeService.t("sheets-ui.permission.button.cancel")
26958
27021
  }), /* @__PURE__ */ jsx(Button, {
26959
27022
  variant: "primary",
26960
27023
  onClick: () => {
26961
27024
  handleChangeActionPermission();
26962
27025
  dialogService.close(UNIVER_SHEET_PERMISSION_DIALOG_ID);
26963
27026
  },
26964
- children: localeService.t("permission.button.confirm")
27027
+ children: localeService.t("sheets-ui.permission.button.confirm")
26965
27028
  })]
26966
27029
  })]
26967
27030
  })
@@ -26999,7 +27062,7 @@ const SheetPermissionUserDialog = () => {
26999
27062
  return /* @__PURE__ */ jsxs("div", { children: [
27000
27063
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Input, {
27001
27064
  className: "univer-w-full",
27002
- placeholder: localeService.t("permission.dialog.search"),
27065
+ placeholder: localeService.t("sheets-ui.permission.dialog.search"),
27003
27066
  value: inputValue,
27004
27067
  onChange: (v) => setInputValue(v)
27005
27068
  }) }),
@@ -27022,7 +27085,7 @@ const SheetPermissionUserDialog = () => {
27022
27085
  }),
27023
27086
  /* @__PURE__ */ jsx("div", {
27024
27087
  className: "univer-text-xs univer-text-rose-600",
27025
- children: localeService.t("permission.dialog.ownerInherit")
27088
+ children: localeService.t("sheets-ui.permission.dialog.ownerInherit")
27026
27089
  })
27027
27090
  ]
27028
27091
  }, (_item$subject4 = item.subject) === null || _item$subject4 === void 0 ? void 0 : _item$subject4.userID);
@@ -27041,7 +27104,7 @@ const SheetPermissionUserDialog = () => {
27041
27104
  }),
27042
27105
  item.role === UnitRole.Owner && /* @__PURE__ */ jsx("div", {
27043
27106
  className: "univer-text-xs univer-text-rose-600",
27044
- children: localeService.t("permission.dialog.ownerWithoutInherit")
27107
+ children: localeService.t("sheets-ui.permission.dialog.ownerWithoutInherit")
27045
27108
  }),
27046
27109
  (selectUserInfo === null || selectUserInfo === void 0 ? void 0 : selectUserInfo.findIndex((v) => {
27047
27110
  var _v$subject3, _item$subject10;
@@ -27058,7 +27121,7 @@ const SheetPermissionUserDialog = () => {
27058
27121
  draggable: false
27059
27122
  }), /* @__PURE__ */ jsx("p", {
27060
27123
  className: "univer-text-sm univer-text-gray-400",
27061
- children: localeService.t("permission.dialog.userEmpty")
27124
+ children: localeService.t("sheets-ui.permission.dialog.userEmpty")
27062
27125
  })]
27063
27126
  })
27064
27127
  }),
@@ -27067,14 +27130,14 @@ const SheetPermissionUserDialog = () => {
27067
27130
  className: "univer-flex univer-items-center univer-justify-end univer-gap-1 univer-py-2",
27068
27131
  children: [/* @__PURE__ */ jsx(Button, {
27069
27132
  onClick: () => dialogService.close(UNIVER_SHEET_PERMISSION_USER_DIALOG_ID),
27070
- children: localeService.t("permission.button.cancel")
27133
+ children: localeService.t("sheets-ui.permission.button.cancel")
27071
27134
  }), /* @__PURE__ */ jsx(Button, {
27072
27135
  variant: "primary",
27073
27136
  onClick: () => {
27074
27137
  sheetPermissionUserManagerService.setSelectUserList(selectUserInfo);
27075
27138
  dialogService.close(UNIVER_SHEET_PERMISSION_USER_DIALOG_ID);
27076
27139
  },
27077
- children: localeService.t("permission.button.confirm")
27140
+ children: localeService.t("sheets-ui.permission.button.confirm")
27078
27141
  })]
27079
27142
  })
27080
27143
  ] });
@@ -27101,7 +27164,7 @@ const AlertDialog = ({ errorMsg }) => {
27101
27164
  const localeService = useDependency(LocaleService);
27102
27165
  return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("p", {
27103
27166
  className: "univer-m-0",
27104
- children: errorMsg || localeService.t("permission.dialog.alertContent")
27167
+ children: errorMsg || localeService.t("sheets-ui.permission.dialog.alertContent")
27105
27168
  }) });
27106
27169
  };
27107
27170
 
@@ -28960,7 +29023,7 @@ let SheetSkeletonRenderController = class SheetSkeletonRenderController extends
28960
29023
  }));
28961
29024
  }
28962
29025
  _updateSceneSize(param) {
28963
- var _this$_renderManagerS, _scene$getViewport, _scene$getViewport2, _scene$getViewport3, _scene$getViewport4, _scene$getViewport5;
29026
+ var _this$_renderManagerS;
28964
29027
  if (param == null) return;
28965
29028
  const { unitId } = this._context;
28966
29029
  const { skeleton } = param;
@@ -28973,30 +29036,6 @@ let SheetSkeletonRenderController = class SheetSkeletonRenderController extends
28973
29036
  height: columnHeaderHeightAndMarginTop + rowTotalHeight
28974
29037
  });
28975
29038
  scene.getMainViewport().setMargin(rowHeaderWidthAndMarginLeft, columnHeaderHeightAndMarginTop);
28976
- scene.getMainViewport().resizeWhenFreezeChange({
28977
- left: rowHeaderWidthAndMarginLeft,
28978
- top: columnHeaderHeightAndMarginTop
28979
- });
28980
- (_scene$getViewport = scene.getViewport(SHEET_VIEWPORT_KEY.VIEW_COLUMN_LEFT)) === null || _scene$getViewport === void 0 || _scene$getViewport.resizeWhenFreezeChange({
28981
- left: rowHeaderWidthAndMarginLeft,
28982
- height: columnHeaderHeightAndMarginTop
28983
- });
28984
- (_scene$getViewport2 = scene.getViewport(SHEET_VIEWPORT_KEY.VIEW_COLUMN_RIGHT)) === null || _scene$getViewport2 === void 0 || _scene$getViewport2.resizeWhenFreezeChange({
28985
- left: rowHeaderWidthAndMarginLeft,
28986
- height: columnHeaderHeightAndMarginTop
28987
- });
28988
- (_scene$getViewport3 = scene.getViewport(SHEET_VIEWPORT_KEY.VIEW_ROW_BOTTOM)) === null || _scene$getViewport3 === void 0 || _scene$getViewport3.resizeWhenFreezeChange({
28989
- width: rowHeaderWidthAndMarginLeft,
28990
- top: columnHeaderHeightAndMarginTop
28991
- });
28992
- (_scene$getViewport4 = scene.getViewport(SHEET_VIEWPORT_KEY.VIEW_ROW_TOP)) === null || _scene$getViewport4 === void 0 || _scene$getViewport4.resizeWhenFreezeChange({
28993
- width: rowHeaderWidthAndMarginLeft,
28994
- top: columnHeaderHeightAndMarginTop
28995
- });
28996
- (_scene$getViewport5 = scene.getViewport(SHEET_VIEWPORT_KEY.VIEW_LEFT_TOP)) === null || _scene$getViewport5 === void 0 || _scene$getViewport5.resizeWhenFreezeChange({
28997
- width: rowHeaderWidthAndMarginLeft,
28998
- height: columnHeaderHeightAndMarginTop
28999
- });
29000
29039
  }
29001
29040
  };
29002
29041
  SheetSkeletonRenderController = __decorate([__decorateParam(1, Inject(SheetSkeletonManagerService)), __decorateParam(2, IRenderManagerService)], SheetSkeletonRenderController);
@@ -29201,7 +29240,7 @@ function DateDropdown(props) {
29201
29240
  variant: "primary",
29202
29241
  onClick: handleSave,
29203
29242
  disabled: !date || !date.isValid(),
29204
- children: localeService.t("dataValidation.alert.ok")
29243
+ children: localeService.t("sheets-ui.data-validation.alert.ok")
29205
29244
  })
29206
29245
  })]
29207
29246
  });
@@ -29209,13 +29248,29 @@ function DateDropdown(props) {
29209
29248
  DateDropdown.componentKey = "sheets.dropdown.date";
29210
29249
 
29211
29250
  //#endregion
29212
- //#region src/views/dropdown/list-dropdown/index.tsx
29213
- function serializeListOptions(options) {
29214
- return options.filter(Boolean).join(",");
29215
- }
29216
- function deserializeListOptions(optionsStr) {
29217
- return optionsStr.split(",").filter(Boolean);
29251
+ //#region src/views/dropdown/list-dropdown/utils.ts
29252
+ /**
29253
+ * Copyright 2023-present DreamNum Co., Ltd.
29254
+ *
29255
+ * Licensed under the Apache License, Version 2.0 (the "License");
29256
+ * you may not use this file except in compliance with the License.
29257
+ * You may obtain a copy of the License at
29258
+ *
29259
+ * http://www.apache.org/licenses/LICENSE-2.0
29260
+ *
29261
+ * Unless required by applicable law or agreed to in writing, software
29262
+ * distributed under the License is distributed on an "AS IS" BASIS,
29263
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29264
+ * See the License for the specific language governing permissions and
29265
+ * limitations under the License.
29266
+ */
29267
+ function getListDropdownValue(value, multiple) {
29268
+ if (!value) return [];
29269
+ return multiple ? deserializeListOptions(value) : [value];
29218
29270
  }
29271
+
29272
+ //#endregion
29273
+ //#region src/views/dropdown/list-dropdown/index.tsx
29219
29274
  function SelectList(props) {
29220
29275
  const { value, onChange, multiple, options, title, onEdit, style, location, showEdit: showEditOnDropdown, showSearch: showSearchOnDropdown } = props;
29221
29276
  const localeService = useDependency(LocaleService);
@@ -29320,7 +29375,7 @@ function SelectList(props) {
29320
29375
  children: /* @__PURE__ */ jsx("a", {
29321
29376
  className: "univer-block univer-cursor-pointer univer-rounded univer-px-1.5 univer-py-1 univer-text-xs hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-800",
29322
29377
  onClick: onEdit,
29323
- children: localeService.t("dataValidation.list.edit")
29378
+ children: localeService.t("sheets-ui.data-validation.list.edit")
29324
29379
  })
29325
29380
  })
29326
29381
  ]
@@ -29340,11 +29395,12 @@ function ListDropDown(props) {
29340
29395
  minWidth: cellWidth,
29341
29396
  maxWidth: Math.max(cellWidth, 200)
29342
29397
  },
29343
- title: multiple ? localeService.t("dataValidation.listMultiple.dropdown") : localeService.t("dataValidation.list.dropdown"),
29344
- value: deserializeListOptions(localValue !== null && localValue !== void 0 ? localValue : ""),
29398
+ title: multiple ? localeService.t("sheets-ui.data-validation.listMultiple.dropdown") : localeService.t("sheets-ui.data-validation.list.dropdown"),
29399
+ value: getListDropdownValue(localValue, multiple),
29345
29400
  multiple,
29346
29401
  onChange: async (newValue) => {
29347
- setLocalValue(serializeListOptions(newValue));
29402
+ var _newValue$;
29403
+ setLocalValue(multiple ? serializeListOptions(newValue) : (_newValue$ = newValue[0]) !== null && _newValue$ !== void 0 ? _newValue$ : "");
29348
29404
  if (!(await (onChange === null || onChange === void 0 ? void 0 : onChange(newValue)) === false)) hideFn();
29349
29405
  },
29350
29406
  options,