@univerjs/sheets 0.8.2 → 0.8.3-nightly.202507010644

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.
@@ -0,0 +1,17 @@
1
+ const e = {
2
+ sheets: {
3
+ tabs: {
4
+ sheetCopy: "(복사본{0})",
5
+ sheet: "시트"
6
+ },
7
+ info: {
8
+ overlappingSelections: "겹치는 영역에서는 해당 명령을 사용할 수 없습니다.",
9
+ acrossMergedCell: "병합된 셀을 가로지름",
10
+ partOfCell: "병합된 셀의 일부만 선택됨",
11
+ hideSheet: "이 시트를 숨기면 표시되는 시트가 없습니다."
12
+ }
13
+ }
14
+ };
15
+ export {
16
+ e as default
17
+ };
@@ -13,90 +13,20 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export { UniverSheetsPlugin } from './plugin';
16
+ export type { ICellOverGridPosition, ISheetOverGridPosition } from './basics/cell-position';
17
+ export { checkCellValueType } from './basics/cell-type';
17
18
  export { COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE, type CommandListenerSkeletonChange, type CommandListenerValueChange, getSkeletonChangedEffectedRange, getValueChangedEffectedRange, SheetSkeletonChangeType, SheetValueChangeType, } from './basics/const/command-listener-const';
19
+ export { expandToContinuousRange } from './basics/expand-range';
18
20
  export { type IAddWorksheetMergeMutationParams, type IDeleteRangeMutationParams, type IInsertColMutationParams, type IInsertRangeMutationParams, type IInsertRowMutationParams, type IInsertSheetMutationParams, type IRemoveColMutationParams, type IRemoveRowsMutationParams, type IRemoveSheetMutationParams, type IRemoveWorksheetMergeMutationParams, type IWorksheetRangeThemeStyleMutationParams, } from './basics/interfaces/mutation-interface';
19
- export { convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, type ISelectionStyle, type ISelectionWidgetConfig, type ISelectionWithCoord, type ISelectionWithStyle, type ISheetRangeLocation, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, } from './basics/selection';
20
21
  export { createTopMatrixFromMatrix, createTopMatrixFromRanges, findAllRectangle, rangeMerge, RangeMergeUtil } from './basics/range-merge';
21
- export { type IUniverSheetsConfig } from './controllers/config.schema';
22
- export { MAX_CELL_PER_SHEET_KEY } from './controllers/config/config';
23
- export { BorderStyleManagerService, type IBorderInfo } from './services/border-style-manager.service';
24
- export { SheetRangeThemeService } from './services/range-theme-service';
25
- export { SheetRangeThemeModel } from './model/range-theme-model';
26
- export type { IRangeThemeStyleJSON } from './model/range-theme-util';
27
- export { AddRangeThemeMutation } from './commands/mutations/add-range-theme.mutation';
28
- export type { IAddRangeThemeMutationParams } from './commands/mutations/add-range-theme.mutation';
29
- export { SetRangeThemeMutation } from './commands/mutations/set-range-theme.mutation';
30
- export type { ISetRangeThemeMutationParams } from './commands/mutations/set-range-theme.mutation';
31
- export { RemoveRangeThemeMutation } from './commands/mutations/remove-range-theme.mutation';
32
- export type { IRemoveRangeThemeMutationParams } from './commands/mutations/remove-range-theme.mutation';
33
- export * from './services/permission/permission-point';
34
- export { WorksheetPermissionService } from './services/permission/worksheet-permission/worksheet-permission.service';
35
- export { WorkbookPermissionService } from './services/permission/workbook-permission/workbook-permission.service';
36
- export * from './services/selections';
37
- export { getAddMergeMutationRangeByType } from './controllers/merge-cell.controller';
38
- export { NumfmtService } from './services/numfmt/numfmt.service';
39
- export type { INumfmtItem, INumfmtItemWithCache } from './services/numfmt/type';
40
- export { INumfmtService } from './services/numfmt/type';
41
- export { RefRangeService } from './services/ref-range/ref-range.service';
42
- export type { EffectRefRangeParams, IOperator } from './services/ref-range/type';
43
- export { EffectRefRangId, OperatorType } from './services/ref-range/type';
44
- export { DefinedNameDataController } from './controllers/defined-name-data.controller';
45
- export { adjustRangeOnMutation, getSeparateEffectedRangesOnCommand, handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleCommonDefaultRangeChangeWithEffectRefCommands, handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests, handleDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRow, handleIRemoveCol, handleIRemoveRow, handleMoveCols, handleMoveRange, handleMoveRows, rotateRange, runRefRangeMutations, } from './services/ref-range/util';
46
- export type { MutationsAffectRange } from './services/ref-range/util';
47
- export { InterceptCellContentPriority, INTERCEPTOR_POINT } from './services/sheet-interceptor/interceptor-const';
48
- export { AFTER_CELL_EDIT, BEFORE_CELL_EDIT, type IAutoHeightContext, SheetInterceptorService, VALIDATE_CELL } from './services/sheet-interceptor/sheet-interceptor.service';
49
- export type { ISheetLocation, ISheetLocationBase, ISheetRowLocation } from './services/sheet-interceptor/utils/interceptor';
50
- export { MERGE_CELL_INTERCEPTOR_CHECK, MergeCellController } from './controllers/merge-cell.controller';
51
- export { AddMergeRedoSelectionsOperationFactory, AddMergeUndoSelectionsOperationFactory } from './commands/utils/handle-merge-operation';
52
- export type { FormatType } from './services/numfmt/type';
53
- export { expandToContinuousRange } from './basics/expand-range';
54
- export { findFirstNonEmptyCell } from './basics/utils';
22
+ export { convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, type ISelectionStyle, type ISelectionWidgetConfig, type ISelectionWithCoord, type ISelectionWithStyle, type ISheetRangeLocation, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, } from './basics/selection';
55
23
  export { SplitDelimiterEnum, splitRangeText } from './basics/split-range-text';
56
- export { getNextPrimaryCell } from './services/selections/move-active-cell-util';
57
- export { checkCellValueType } from './basics/cell-type';
58
- export { ExclusiveRangeService, IExclusiveRangeService } from './services/exclusive-range/exclusive-range-service';
59
- export { defaultWorksheetPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel } from './services/permission';
60
- export type { IWorksheetProtectionRule } from './services/permission/type';
61
- export { SheetPermissionCheckController } from './controllers/permission/sheet-permission-check.controller';
62
- export { SheetPermissionInitController } from './controllers/permission/sheet-permission-init.controller';
63
- export { WorksheetProtectionPointModel, WorksheetProtectionRuleModel } from './services/permission/worksheet-permission';
64
- export { defaultWorkbookPermissionPoints, getAllWorkbookPermissionPoint } from './services/permission/workbook-permission';
65
- export { WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission, WorkbookHistoryPermission, WorkbookManageCollaboratorPermission, WorkbookMoveSheetPermission, WorkbookPrintPermission, WorkbookRecoverHistoryPermission, WorkbookRenameSheetPermission, WorkbookSharePermission, WorkbookViewHistoryPermission, WorkbookViewPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditExtraObjectPermission, WorksheetEditPermission, WorksheetFilterPermission, WorksheetInsertColumnPermission, WorksheetInsertHyperlinkPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetPivotTablePermission, WorksheetSelectProtectedCellsPermission, WorksheetSelectUnProtectedCellsPermission, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetSortPermission, WorksheetViewPermission, } from './services/permission/permission-point';
66
- export { PermissionPointsDefinitions } from './services/permission/permission-point/const';
67
- export { UnitAction, UnitObject } from '@univerjs/protocol';
68
- export { checkRangesEditablePermission } from './services/permission/util';
69
- export { type ICellPermission, RangeProtectionRenderModel } from './model/range-protection-render.model';
70
- export { EditStateEnum, type IModel, type IObjectModel, type IRangeProtectionRule, RangeProtectionRuleModel, ViewStateEnum } from './model/range-protection-rule.model';
71
- export { RangeProtectionCache } from './model/range-protection.cache';
72
- export type { IWorksheetProtectionRenderCellData } from './services/permission/worksheet-permission/type';
73
- export { RangeProtectionRefRangeService } from './services/permission/range-permission/range-protection.ref-range';
74
- export { RangeProtectionService } from './services/permission/range-permission/range-protection.service';
75
- export { getAllRangePermissionPoint, getDefaultRangePermission, type IRangePermissionPoint, } from './services/permission/range-permission/util';
76
- export { RangeProtectionPermissionEditPoint } from './services/permission/permission-point/range/edit';
77
- export { RangeProtectionPermissionViewPoint } from './services/permission/permission-point/range/view';
78
- export { RangeProtectionPermissionManageCollaPoint } from './services/permission/permission-point/range/manage-collaborator';
79
- export { RangeProtectionPermissionDeleteProtectionPoint } from './services/permission/permission-point/range/delete-protection';
80
- export { baseProtectionActions } from './services/permission/range-permission/util';
24
+ export { findFirstNonEmptyCell } from './basics/utils';
81
25
  export { generateNullCell, generateNullCellValue, getVisibleRanges, rangeToDiscreteRange } from './basics/utils';
82
- export { getSheetCommandTarget, getSheetCommandTargetWorkbook, getSheetMutationTarget } from './commands/commands/utils/target-util';
83
- export { alignToMergedCellsBorders, getCellAtRowCol, isSingleCellSelection, setEndForRange } from './commands/commands/utils/selection-utils';
84
- export { getSelectionsService } from './commands/utils/selection-command-util';
85
- export { followSelectionOperation, getPrimaryForRange } from './commands/commands/utils/selection-utils';
86
- export { handleDeleteRangeMutation } from './commands/utils/handle-range-mutation';
87
- export { getInsertRangeMutations, getRemoveRangeMutations } from './commands/utils/handle-range-mutation';
88
- export { handleInsertRangeMutation } from './commands/utils/handle-range-mutation';
89
- export { type ISheetCommandSharedParams } from './commands/utils/interface';
90
- export { copyRangeStyles } from './commands/commands/utils/selection-utils';
91
- export { RangeThemeStyle } from './model/range-theme-util';
92
- export type { IRangeThemeStyleItem } from './model/range-theme-util';
93
26
  export { AddRangeProtectionCommand, type IAddRangeProtectionCommandParams } from './commands/commands/add-range-protection.command';
94
- export { AddWorksheetProtectionCommand } from './commands/commands/add-worksheet-protection.command';
95
- export { SetWorksheetProtectionCommand } from './commands/commands/set-worksheet-protection.command';
96
- export { DeleteWorksheetProtectionCommand } from './commands/commands/delete-worksheet-protection.command';
97
27
  export { addMergeCellsUtil, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeVerticalCommand, } from './commands/commands/add-worksheet-merge.command';
28
+ export { AddWorksheetProtectionCommand } from './commands/commands/add-worksheet-protection.command';
98
29
  export { SetWorksheetRangeThemeStyleCommand } from './commands/commands/add-worksheet-range-theme.command';
99
- export { DeleteWorksheetRangeThemeStyleCommand } from './commands/commands/delete-worksheet-range-theme.command';
100
30
  export { AppendRowCommand, type IAppendRowCommandParams } from './commands/commands/append-row.command';
101
31
  export { ClearSelectionAllCommand } from './commands/commands/clear-selection-all.command';
102
32
  export { ClearSelectionContentCommand } from './commands/commands/clear-selection-content.command';
@@ -106,101 +36,174 @@ export type { ICopySheetCommandParams } from './commands/commands/copy-worksheet
106
36
  export { DeleteRangeMoveLeftCommand, type IDeleteRangeMoveLeftCommandParams } from './commands/commands/delete-range-move-left.command';
107
37
  export { DeleteRangeMoveUpCommand, type IDeleteRangeMoveUpCommandParams } from './commands/commands/delete-range-move-up.command';
108
38
  export { DeleteRangeProtectionCommand, type IDeleteRangeProtectionCommandParams } from './commands/commands/delete-range-protection.command';
39
+ export { DeleteWorksheetProtectionCommand } from './commands/commands/delete-worksheet-protection.command';
40
+ export { DeleteWorksheetRangeThemeStyleCommand } from './commands/commands/delete-worksheet-range-theme.command';
109
41
  export { InsertDefinedNameCommand } from './commands/commands/insert-defined-name.command';
110
42
  export { InsertRangeMoveDownCommand, type InsertRangeMoveDownCommandParams } from './commands/commands/insert-range-move-down.command';
111
43
  export { InsertRangeMoveRightCommand, type InsertRangeMoveRightCommandParams } from './commands/commands/insert-range-move-right.command';
112
- export { type ISetWorksheetDefaultStyleMutationParams, SetWorksheetDefaultStyleMutation, SetWorksheetDefaultStyleMutationFactory } from './commands/mutations/set-worksheet-default-style.mutation';
113
- export { SetWorksheetDefaultStyleCommand } from './commands/commands/set-worksheet-default-style.command';
114
- export { type ISetRowDataMutationParams, SetRowDataMutation, SetRowDataMutationFactory } from './commands/mutations/set-row-data.mutation';
115
- export { type ISetRowDataCommandParams, SetRowDataCommand } from './commands/commands/set-row-data.command';
116
- export { type ISetColDataMutationParams, SetColDataMutation, SetColDataMutationFactory } from './commands/mutations/set-col-data.mutation';
117
- export { type ISetColDataCommandParams, SetColDataCommand } from './commands/commands/set-col-data.command';
118
44
  export { type IInsertColCommandParams, type IInsertRowCommandParams, InsertColAfterCommand, InsertColBeforeCommand, InsertColByRangeCommand, InsertColCommand, InsertMultiColsLeftCommand, InsertMultiColsRightCommand, InsertMultiRowsAboveCommand, InsertMultiRowsAfterCommand, InsertRowAfterCommand, InsertRowBeforeCommand, InsertRowByRangeCommand, InsertRowCommand, } from './commands/commands/insert-row-col.command';
119
45
  export { type IInsertSheetCommandParams, InsertSheetCommand } from './commands/commands/insert-sheet.command';
120
46
  export { getMoveRangeUndoRedoMutations, type IMoveRangeCommandParams, MoveRangeCommand } from './commands/commands/move-range.command';
121
47
  export { type IMoveColsCommandParams, type IMoveRowsCommandParams, MoveColsCommand, MoveRowsCommand, } from './commands/commands/move-rows-cols.command';
48
+ export { RegisterWorksheetRangeThemeStyleCommand } from './commands/commands/register-range-theme.command';
49
+ export type { IRegisterWorksheetRangeThemeStyleCommandParams } from './commands/commands/register-range-theme.command';
122
50
  export { RemoveDefinedNameCommand } from './commands/commands/remove-defined-name.command';
123
51
  export { type IRemoveColByRangeCommandParams, type IRemoveRowByRangeCommandParams, type IRemoveRowColCommandInterceptParams, type IRemoveRowColCommandParams, RemoveColByRangeCommand, RemoveColCommand, RemoveRowByRangeCommand, RemoveRowCommand } from './commands/commands/remove-row-col.command';
124
52
  export { type IRemoveSheetCommandParams, RemoveSheetCommand } from './commands/commands/remove-sheet.command';
125
53
  export { RemoveWorksheetMergeCommand } from './commands/commands/remove-worksheet-merge.command';
126
54
  export { type IReorderRangeCommandParams, ReorderRangeCommand } from './commands/commands/reorder-range.command';
127
55
  export { type ISetBorderBasicCommandParams, type ISetBorderColorCommandParams, type ISetBorderCommandParams, type ISetBorderPositionCommandParams, type ISetBorderStyleCommandParams, SetBorderBasicCommand, SetBorderColorCommand, SetBorderCommand, SetBorderPositionCommand, SetBorderStyleCommand, } from './commands/commands/set-border-command';
56
+ export { type ISetColDataCommandParams, SetColDataCommand } from './commands/commands/set-col-data.command';
128
57
  export { type ISetSpecificColsVisibleCommandParams, SetColHiddenCommand, SetSelectedColsVisibleCommand, SetSpecificColsVisibleCommand, } from './commands/commands/set-col-visible.command';
129
58
  export { SetDefinedNameCommand } from './commands/commands/set-defined-name.command';
130
59
  export { type ICancelFrozenCommandParams, type ISetFrozenCommandParams } from './commands/commands/set-frozen.command';
131
60
  export { CancelFrozenCommand, SetFrozenCommand } from './commands/commands/set-frozen.command';
132
- export { type IToggleGridlinesCommandParams, ToggleGridlinesCommand } from './commands/commands/toggle-gridlines.command';
133
61
  export { type ISetGridlinesColorCommandParams, SetGridlinesColorCommand } from './commands/commands/set-gridlines-color.command';
62
+ export { SetProtectionCommand } from './commands/commands/set-protection.command';
134
63
  export { type ISetRangeValuesCommandParams, SetRangeValuesCommand } from './commands/commands/set-range-values.command';
64
+ export { type ISetRowDataCommandParams, SetRowDataCommand } from './commands/commands/set-row-data.command';
135
65
  export { type ISetSpecificRowsVisibleCommandParams, SetRowHiddenCommand, SetSelectedRowsVisibleCommand, SetSpecificRowsVisibleCommand, } from './commands/commands/set-row-visible.command';
136
66
  export { type ISetColorCommandParams, type ISetFontFamilyCommandParams, type ISetFontSizeCommandParams, type ISetHorizontalTextAlignCommandParams, type ISetStyleCommandParams, type ISetTextRotationCommandParams, type ISetTextWrapCommandParams, type ISetVerticalTextAlignCommandParams, type IStyleTypeValue, ResetBackgroundColorCommand, ResetTextColorCommand, SetBackgroundColorCommand, SetBoldCommand, SetFontFamilyCommand, SetFontSizeCommand, SetHorizontalTextAlignCommand, SetItalicCommand, SetOverlineCommand, SetStrikeThroughCommand, SetStyleCommand, SetTextColorCommand, SetTextRotationCommand, SetTextWrapCommand, SetUnderlineCommand, SetVerticalTextAlignCommand, } from './commands/commands/set-style.command';
137
67
  export { SetTabColorCommand } from './commands/commands/set-tab-color.command';
138
68
  export { type ISetWorkbookNameCommandParams, SetWorkbookNameCommand } from './commands/commands/set-workbook-name.command';
139
- export { type ISetWorksheetActivateCommandParams, SetWorksheetActivateCommand, } from './commands/commands/set-worksheet-activate.command';
140
- export { DeltaColumnWidthCommand, type IDeltaColumnWidthCommandParams, type ISetColWidthCommandParams, SetColWidthCommand, } from './commands/commands/set-worksheet-col-width.command';
69
+ export { type ISetWorksheetActivateCommandParams, SetWorksheetActivateCommand } from './commands/commands/set-worksheet-activate.command';
70
+ export { DeltaColumnWidthCommand, SetColWidthCommand } from './commands/commands/set-worksheet-col-width.command';
71
+ export type { IDeltaColumnWidthCommandParams, ISetColWidthCommandParams } from './commands/commands/set-worksheet-col-width.command';
72
+ export { SetWorksheetColumnCountCommand } from './commands/commands/set-worksheet-column-count.command';
73
+ export { SetWorksheetDefaultStyleCommand } from './commands/commands/set-worksheet-default-style.command';
141
74
  export { SetWorksheetHideCommand } from './commands/commands/set-worksheet-hide.command';
142
- export { type ISetWorksheetNameCommandParams, SetWorksheetNameCommand, } from './commands/commands/set-worksheet-name.command';
75
+ export { SetWorksheetNameCommand } from './commands/commands/set-worksheet-name.command';
76
+ export { type ISetWorksheetNameCommandParams } from './commands/commands/set-worksheet-name.command';
143
77
  export { SetWorksheetOrderCommand } from './commands/commands/set-worksheet-order.command';
144
78
  export { SetWorksheetPermissionPointsCommand } from './commands/commands/set-worksheet-permission-points.command';
79
+ export { SetWorksheetProtectionCommand } from './commands/commands/set-worksheet-protection.command';
145
80
  export { SetWorksheetRightToLeftCommand } from './commands/commands/set-worksheet-right-to-left.command';
146
- export { DeltaRowHeightCommand, type IDeltaRowHeightCommand, type ISetWorksheetRowIsAutoHeightCommandParams, SetRowHeightCommand, SetWorksheetRowIsAutoHeightCommand, } from './commands/commands/set-worksheet-row-height.command';
81
+ export { SetWorksheetRowCountCommand } from './commands/commands/set-worksheet-row-count.command';
82
+ export { DeltaRowHeightCommand, SetRowHeightCommand, SetWorksheetRowIsAutoHeightCommand } from './commands/commands/set-worksheet-row-height.command';
83
+ export type { IDeltaRowHeightCommand, ISetWorksheetRowIsAutoHeightCommandParams } from './commands/commands/set-worksheet-row-height.command';
147
84
  export { SetWorksheetShowCommand } from './commands/commands/set-worksheet-show.command';
85
+ export type { ISetWorksheetShowCommandParams } from './commands/commands/set-worksheet-show.command';
148
86
  export { SplitTextToColumnsCommand } from './commands/commands/split-text-to-columns.command';
149
87
  export type { ISplitTextToColumnsCommandParams } from './commands/commands/split-text-to-columns.command';
88
+ export { type IToggleCellCheckboxCommandParams, ToggleCellCheckboxCommand } from './commands/commands/toggle-checkbox.command';
89
+ export { type IToggleGridlinesCommandParams, ToggleGridlinesCommand } from './commands/commands/toggle-gridlines.command';
150
90
  export { UnregisterWorksheetRangeThemeStyleCommand } from './commands/commands/unregister-range-theme.command';
151
91
  export type { IUnregisterWorksheetRangeThemeStyleCommandParams } from './commands/commands/unregister-range-theme.command';
152
- export { RegisterWorksheetRangeThemeStyleCommand } from './commands/commands/register-range-theme.command';
153
- export type { IRegisterWorksheetRangeThemeStyleCommandParams } from './commands/commands/register-range-theme.command';
154
- export { type IRegisterWorksheetRangeThemeStyleMutationParams, RegisterWorksheetRangeThemeStyleMutation } from './commands/mutations/register-range-theme.mutation';
155
- export { type IUnregisterWorksheetRangeThemeStyleMutationParams, UnregisterWorksheetRangeThemeStyleMutation } from './commands/mutations/unregister-range-theme-style.mutation';
156
- export type { ISetWorksheetShowCommandParams } from './commands/commands/set-worksheet-show.command';
92
+ export { alignToMergedCellsBorders, getCellAtRowCol, isSingleCellSelection, setEndForRange } from './commands/commands/utils/selection-utils';
93
+ export { followSelectionOperation, getPrimaryForRange } from './commands/commands/utils/selection-utils';
94
+ export { copyRangeStyles } from './commands/commands/utils/selection-utils';
95
+ export { getSheetCommandTarget, getSheetCommandTargetWorkbook, getSheetMutationTarget } from './commands/commands/utils/target-util';
157
96
  export { AddRangeProtectionMutation, FactoryAddRangeProtectionMutation, type IAddRangeProtectionMutationParams } from './commands/mutations/add-range-protection.mutation';
158
- export { SetProtectionCommand } from './commands/commands/set-protection.command';
97
+ export { AddRangeThemeMutation } from './commands/mutations/add-range-theme.mutation';
98
+ export type { IAddRangeThemeMutationParams } from './commands/mutations/add-range-theme.mutation';
159
99
  export { AddMergeUndoMutationFactory, AddWorksheetMergeMutation } from './commands/mutations/add-worksheet-merge.mutation';
160
100
  export { AddWorksheetProtectionMutation, type IAddWorksheetProtectionParams } from './commands/mutations/add-worksheet-protection.mutation';
101
+ export { SetWorksheetRangeThemeStyleMutation, SetWorksheetRangeThemeStyleMutationFactory } from './commands/mutations/add-worksheet-range-theme.mutation';
161
102
  export { DeleteRangeProtectionMutation, FactoryDeleteRangeProtectionMutation, type IDeleteRangeProtectionMutationParams } from './commands/mutations/delete-range-protection.mutation';
162
103
  export { DeleteWorksheetProtectionMutation } from './commands/mutations/delete-worksheet-protection.mutation';
163
104
  export type { IDeleteWorksheetProtectionParams } from './commands/mutations/delete-worksheet-protection.mutation';
105
+ export { DeleteWorksheetRangeThemeStyleMutation, DeleteWorksheetRangeThemeStyleMutationFactory } from './commands/mutations/delete-worksheet-range-theme.mutation';
164
106
  export { EmptyMutation } from './commands/mutations/empty.mutation';
165
107
  export { InsertColMutation, InsertColMutationUndoFactory, InsertRowMutation, InsertRowMutationUndoFactory, } from './commands/mutations/insert-row-col.mutation';
166
108
  export { InsertSheetMutation, InsertSheetUndoMutationFactory } from './commands/mutations/insert-sheet.mutation';
109
+ export { CancelMarkDirtyRowAutoHeightMutation, type ICancelMarkDirtyRowAutoHeightMutationParams, type IMarkDirtyRowAutoHeightMutationParams, MarkDirtyRowAutoHeightMutation, } from './commands/mutations/mark-dirty-auto-height.mutation';
167
110
  export { type IMoveRangeMutationParams, MoveRangeMutation } from './commands/mutations/move-range.mutation';
168
111
  export { type IMoveColumnsMutationParams, type IMoveRowsMutationParams, MoveColsMutation, MoveColsMutationUndoFactory, MoveRowsMutation, MoveRowsMutationUndoFactory, } from './commands/mutations/move-rows-cols.mutation';
169
112
  export { factoryRemoveNumfmtUndoMutation, factorySetNumfmtUndoMutation, type IRemoveNumfmtMutationParams, type ISetCellsNumfmt, type ISetNumfmtMutationParams, RemoveNumfmtMutation, SetNumfmtMutation, transformCellsToRange, } from './commands/mutations/numfmt-mutation';
113
+ export { type IRegisterWorksheetRangeThemeStyleMutationParams, RegisterWorksheetRangeThemeStyleMutation } from './commands/mutations/register-range-theme.mutation';
114
+ export { RemoveRangeThemeMutation } from './commands/mutations/remove-range-theme.mutation';
115
+ export type { IRemoveRangeThemeMutationParams } from './commands/mutations/remove-range-theme.mutation';
170
116
  export { RemoveColMutation, RemoveRowMutation } from './commands/mutations/remove-row-col.mutation';
171
117
  export { RemoveSheetMutation, RemoveSheetUndoMutationFactory } from './commands/mutations/remove-sheet.mutation';
172
118
  export { RemoveMergeUndoMutationFactory, RemoveWorksheetMergeMutation } from './commands/mutations/remove-worksheet-merge.mutation';
173
119
  export { type IReorderRangeMutationParams, ReorderRangeMutation, ReorderRangeUndoMutationFactory } from './commands/mutations/reorder-range.mutation';
120
+ export { type ISetColDataMutationParams, SetColDataMutation, SetColDataMutationFactory } from './commands/mutations/set-col-data.mutation';
174
121
  export { type ISetColHiddenMutationParams, type ISetColVisibleMutationParams, SetColHiddenMutation, SetColVisibleMutation, } from './commands/mutations/set-col-visible.mutation';
175
122
  export { type ISetFrozenMutationParams, SetFrozenMutation, SetFrozenMutationFactory, } from './commands/mutations/set-frozen.mutation';
176
- export { type IToggleGridlinesMutationParams, ToggleGridlinesMutation } from './commands/mutations/toggle-gridlines.mutation';
177
123
  export { type ISetGridlinesColorMutationParams, SetGridlinesColorMutation } from './commands/mutations/set-gridlines-color.mutation';
178
124
  export { FactorySetRangeProtectionMutation, type ISetRangeProtectionMutationParams, SetRangeProtectionMutation } from './commands/mutations/set-range-protection.mutation';
125
+ export { SetRangeThemeMutation } from './commands/mutations/set-range-theme.mutation';
126
+ export type { ISetRangeThemeMutationParams } from './commands/mutations/set-range-theme.mutation';
179
127
  export { type ISetRangeValuesMutationParams, type ISetRangeValuesRangeMutationParams, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, } from './commands/mutations/set-range-values.mutation';
128
+ export { type ISetRowDataMutationParams, SetRowDataMutation, SetRowDataMutationFactory } from './commands/mutations/set-row-data.mutation';
180
129
  export { type ISetRowHiddenMutationParams, type ISetRowVisibleMutationParams, SetRowHiddenMutation, SetRowVisibleMutation, } from './commands/mutations/set-row-visible.mutation';
181
130
  export { type ISetTabColorMutationParams, SetTabColorMutation } from './commands/mutations/set-tab-color.mutation';
182
131
  export { type ISetWorkbookNameMutationParams, SetWorkbookNameMutation } from './commands/mutations/set-workbook-name.mutation';
183
132
  export { type ISetWorksheetColWidthMutationParams, SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, } from './commands/mutations/set-worksheet-col-width.mutation';
133
+ export { type ISetWorksheetColumnCountMutationParams, SetWorksheetColumnCountMutation, SetWorksheetColumnCountUndoMutationFactory } from './commands/mutations/set-worksheet-column-count.mutation';
134
+ export { type ISetWorksheetDefaultStyleMutationParams, SetWorksheetDefaultStyleMutation, SetWorksheetDefaultStyleMutationFactory } from './commands/mutations/set-worksheet-default-style.mutation';
184
135
  export { type ISetWorksheetHideMutationParams, SetWorksheetHideMutation } from './commands/mutations/set-worksheet-hide.mutation';
185
136
  export { type ISetWorksheetNameMutationParams, SetWorksheetNameMutation } from './commands/mutations/set-worksheet-name.mutation';
186
137
  export { type ISetWorksheetOrderMutationParams, SetWorksheetOrderMutation } from './commands/mutations/set-worksheet-order.mutation';
187
- export { SetWorksheetRangeThemeStyleMutation, SetWorksheetRangeThemeStyleMutationFactory } from './commands/mutations/add-worksheet-range-theme.mutation';
188
- export { DeleteWorksheetRangeThemeStyleMutation, DeleteWorksheetRangeThemeStyleMutationFactory } from './commands/mutations/delete-worksheet-range-theme.mutation';
189
138
  export { SetWorksheetPermissionPointsMutation } from './commands/mutations/set-worksheet-permission-points.mutation';
190
139
  export type { ISetWorksheetPermissionPointsMutationParams } from './commands/mutations/set-worksheet-permission-points.mutation';
191
140
  export { SetWorksheetProtectionMutation } from './commands/mutations/set-worksheet-protection.mutation';
192
141
  export type { ISetWorksheetProtectionParams } from './commands/mutations/set-worksheet-protection.mutation';
193
142
  export { SetWorksheetRightToLeftMutation } from './commands/mutations/set-worksheet-right-to-left.mutation';
143
+ export { type ISetWorksheetRowCountMutationParams, SetWorksheetRowCountMutation, SetWorksheetRowCountUndoMutationFactory } from './commands/mutations/set-worksheet-row-count.mutation';
194
144
  export { type ISetWorksheetRowAutoHeightMutationParams, type ISetWorksheetRowHeightMutationParams, type ISetWorksheetRowIsAutoHeightMutationParams, SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowIsAutoHeightMutation, } from './commands/mutations/set-worksheet-row-height.mutation';
195
- export { CancelMarkDirtyRowAutoHeightMutation, type ICancelMarkDirtyRowAutoHeightMutationParams, type IMarkDirtyRowAutoHeightMutationParams, MarkDirtyRowAutoHeightMutation, } from './commands/mutations/mark-dirty-auto-height.mutation';
145
+ export { type IToggleGridlinesMutationParams, ToggleGridlinesMutation } from './commands/mutations/toggle-gridlines.mutation';
146
+ export { type IUnregisterWorksheetRangeThemeStyleMutationParams, UnregisterWorksheetRangeThemeStyleMutation } from './commands/mutations/unregister-range-theme-style.mutation';
196
147
  export { type IScrollToCellOperationParams, ScrollToCellOperation } from './commands/operations/scroll-to-cell.operation';
197
148
  export { type ISelectRangeCommandParams, type ISetSelectionsOperationParams, SelectRangeCommand, SetSelectionsOperation } from './commands/operations/selection.operation';
198
149
  export { type ISetWorksheetActiveOperationParams, SetWorksheetActiveOperation } from './commands/operations/set-worksheet-active.operation';
199
- export { type IToggleCellCheckboxCommandParams, ToggleCellCheckboxCommand } from './commands/commands/toggle-checkbox.command';
150
+ export { AddMergeRedoSelectionsOperationFactory, AddMergeUndoSelectionsOperationFactory } from './commands/utils/handle-merge-operation';
151
+ export { handleDeleteRangeMutation } from './commands/utils/handle-range-mutation';
152
+ export { getInsertRangeMutations, getRemoveRangeMutations } from './commands/utils/handle-range-mutation';
153
+ export { handleInsertRangeMutation } from './commands/utils/handle-range-mutation';
154
+ export { type ISheetCommandSharedParams } from './commands/utils/interface';
155
+ export { getSelectionsService } from './commands/utils/selection-command-util';
156
+ export { type IUniverSheetsConfig } from './controllers/config.schema';
157
+ export { MAX_CELL_PER_SHEET_KEY } from './controllers/config/config';
158
+ export { DefinedNameDataController } from './controllers/defined-name-data.controller';
200
159
  export { SCOPE_WORKBOOK_VALUE_DEFINED_NAME } from './controllers/defined-name-data.controller';
201
- export type { ICellOverGridPosition, ISheetOverGridPosition } from './basics/cell-position';
160
+ export { getAddMergeMutationRangeByType } from './controllers/merge-cell.controller';
161
+ export { MERGE_CELL_INTERCEPTOR_CHECK, MergeCellController } from './controllers/merge-cell.controller';
162
+ export { SheetPermissionCheckController } from './controllers/permission/sheet-permission-check.controller';
163
+ export { SheetPermissionInitController } from './controllers/permission/sheet-permission-init.controller';
164
+ export { type ICellPermission, RangeProtectionRenderModel } from './model/range-protection-render.model';
165
+ export { EditStateEnum, type IModel, type IObjectModel, type IRangeProtectionRule, RangeProtectionRuleModel, ViewStateEnum } from './model/range-protection-rule.model';
166
+ export { RangeProtectionCache } from './model/range-protection.cache';
167
+ export { SheetRangeThemeModel } from './model/range-theme-model';
168
+ export type { IRangeThemeStyleJSON } from './model/range-theme-util';
169
+ export { RangeThemeStyle } from './model/range-theme-util';
170
+ export type { IRangeThemeStyleItem } from './model/range-theme-util';
171
+ export { UniverSheetsPlugin } from './plugin';
172
+ export { BorderStyleManagerService, type IBorderInfo } from './services/border-style-manager.service';
173
+ export { ExclusiveRangeService, IExclusiveRangeService } from './services/exclusive-range/exclusive-range-service';
174
+ export { NumfmtService } from './services/numfmt/numfmt.service';
175
+ export type { INumfmtItem, INumfmtItemWithCache } from './services/numfmt/type';
176
+ export { INumfmtService } from './services/numfmt/type';
177
+ export type { FormatType } from './services/numfmt/type';
178
+ export { defaultWorksheetPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel } from './services/permission';
179
+ export * from './services/permission/permission-point';
180
+ export { WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission, WorkbookHistoryPermission, WorkbookManageCollaboratorPermission, WorkbookMoveSheetPermission, WorkbookPrintPermission, WorkbookRecoverHistoryPermission, WorkbookRenameSheetPermission, WorkbookSharePermission, WorkbookViewHistoryPermission, WorkbookViewPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditExtraObjectPermission, WorksheetEditPermission, WorksheetFilterPermission, WorksheetInsertColumnPermission, WorksheetInsertHyperlinkPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetPivotTablePermission, WorksheetSelectProtectedCellsPermission, WorksheetSelectUnProtectedCellsPermission, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetSortPermission, WorksheetViewPermission, } from './services/permission/permission-point';
181
+ export { PermissionPointsDefinitions } from './services/permission/permission-point/const';
182
+ export { RangeProtectionPermissionDeleteProtectionPoint } from './services/permission/permission-point/range/delete-protection';
183
+ export { RangeProtectionPermissionEditPoint } from './services/permission/permission-point/range/edit';
184
+ export { RangeProtectionPermissionManageCollaPoint } from './services/permission/permission-point/range/manage-collaborator';
185
+ export { RangeProtectionPermissionViewPoint } from './services/permission/permission-point/range/view';
186
+ export { RangeProtectionRefRangeService } from './services/permission/range-permission/range-protection.ref-range';
187
+ export { RangeProtectionService } from './services/permission/range-permission/range-protection.service';
188
+ export { getAllRangePermissionPoint, getDefaultRangePermission, type IRangePermissionPoint, } from './services/permission/range-permission/util';
189
+ export { baseProtectionActions } from './services/permission/range-permission/util';
190
+ export type { IWorksheetProtectionRule } from './services/permission/type';
191
+ export { checkRangesEditablePermission } from './services/permission/util';
192
+ export { defaultWorkbookPermissionPoints, getAllWorkbookPermissionPoint } from './services/permission/workbook-permission';
193
+ export { WorkbookPermissionService } from './services/permission/workbook-permission/workbook-permission.service';
194
+ export { WorksheetProtectionPointModel, WorksheetProtectionRuleModel } from './services/permission/worksheet-permission';
195
+ export type { IWorksheetProtectionRenderCellData } from './services/permission/worksheet-permission/type';
196
+ export { WorksheetPermissionService } from './services/permission/worksheet-permission/worksheet-permission.service';
197
+ export { SheetRangeThemeService } from './services/range-theme-service';
198
+ export { RefRangeService } from './services/ref-range/ref-range.service';
199
+ export type { EffectRefRangeParams, IOperator } from './services/ref-range/type';
200
+ export { EffectRefRangId, OperatorType } from './services/ref-range/type';
201
+ export { adjustRangeOnMutation, getSeparateEffectedRangesOnCommand, handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleCommonDefaultRangeChangeWithEffectRefCommands, handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests, handleDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRow, handleIRemoveCol, handleIRemoveRow, handleMoveCols, handleMoveRange, handleMoveRows, rotateRange, runRefRangeMutations, } from './services/ref-range/util';
202
+ export type { MutationsAffectRange } from './services/ref-range/util';
203
+ export * from './services/selections';
204
+ export { getNextPrimaryCell } from './services/selections/move-active-cell-util';
205
+ export { InterceptCellContentPriority, INTERCEPTOR_POINT } from './services/sheet-interceptor/interceptor-const';
206
+ export { AFTER_CELL_EDIT, BEFORE_CELL_EDIT, type IAutoHeightContext, SheetInterceptorService, VALIDATE_CELL } from './services/sheet-interceptor/sheet-interceptor.service';
207
+ export type { ISheetLocation, ISheetLocationBase, ISheetRowLocation } from './services/sheet-interceptor/utils/interceptor';
202
208
  export { SheetSkeletonService } from './skeleton/skeleton.service';
203
- export { SetWorksheetRowCountCommand } from './commands/commands/set-worksheet-row-count.command';
204
- export { SetWorksheetColumnCountCommand } from './commands/commands/set-worksheet-column-count.command';
205
- export { type ISetWorksheetRowCountMutationParams, SetWorksheetRowCountMutation, SetWorksheetRowCountUndoMutationFactory } from './commands/mutations/set-worksheet-row-count.mutation';
206
- export { type ISetWorksheetColumnCountMutationParams, SetWorksheetColumnCountMutation, SetWorksheetColumnCountUndoMutationFactory } from './commands/mutations/set-worksheet-column-count.mutation';
209
+ export { UnitAction, UnitObject } from '@univerjs/protocol';
@@ -0,0 +1,3 @@
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;