@univerjs/sheets 0.25.0 → 1.0.0-alpha.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 (44) hide show
  1. package/lib/cjs/facade.js +198 -263
  2. package/lib/cjs/index.js +169 -124
  3. package/lib/es/facade.js +199 -258
  4. package/lib/es/index.js +372 -321
  5. package/lib/facade.js +199 -258
  6. package/lib/index.js +372 -321
  7. package/lib/types/commands/commands/add-range-protection.command.d.ts +1 -1
  8. package/lib/types/commands/commands/delete-range-protection.command.d.ts +1 -1
  9. package/lib/types/commands/commands/register-range-theme.command.d.ts +1 -1
  10. package/lib/types/commands/commands/set-protection.command.d.ts +1 -1
  11. package/lib/types/commands/mutations/add-range-protection.mutation.d.ts +1 -1
  12. package/lib/types/commands/mutations/add-range-theme.mutation.d.ts +1 -1
  13. package/lib/types/commands/mutations/register-range-theme.mutation.d.ts +1 -1
  14. package/lib/types/commands/mutations/set-range-protection.mutation.d.ts +1 -1
  15. package/lib/types/commands/mutations/set-range-theme.mutation.d.ts +1 -1
  16. package/lib/types/commands/mutations/set-range-values.mutation.d.ts +4 -3
  17. package/lib/types/controllers/permission/sheet-permission-check.controller.d.ts +1 -1
  18. package/lib/types/controllers/permission/sheet-permission-init.controller.d.ts +1 -1
  19. package/lib/types/controllers/permission/sheet-permission-view-model.controller.d.ts +1 -1
  20. package/lib/types/controllers/zebar-crossing.controller.d.ts +1 -1
  21. package/lib/types/facade/{f-sheet-hooks.d.ts → const.d.ts} +1 -9
  22. package/lib/types/facade/f-range.d.ts +3 -2
  23. package/lib/types/facade/f-univer.d.ts +33 -64
  24. package/lib/types/facade/f-workbook.d.ts +3 -45
  25. package/lib/types/facade/index.d.ts +0 -1
  26. package/lib/types/index.d.ts +186 -106
  27. package/lib/types/locale/types.d.ts +18 -0
  28. package/lib/types/services/permission/range-permission/range-protection.ref-range.d.ts +3 -3
  29. package/lib/types/services/permission/range-permission/range-protection.service.d.ts +2 -2
  30. package/lib/types/services/permission/type.d.ts +1 -1
  31. package/lib/types/services/permission/workbook-permission/workbook-permission.service.d.ts +1 -1
  32. package/lib/types/services/permission/worksheet-permission/worksheet-permission.service.d.ts +1 -1
  33. package/lib/types/services/range-theme.service.d.ts +3 -3
  34. package/lib/umd/facade.js +1 -1
  35. package/lib/umd/index.js +1 -1
  36. package/package.json +9 -9
  37. /package/lib/types/{model → models}/range-protection-render.model.d.ts +0 -0
  38. /package/lib/types/{model → models}/range-protection-rule.model.d.ts +0 -0
  39. /package/lib/types/{model → models}/range-protection.cache.d.ts +0 -0
  40. /package/lib/types/{model → models}/range-theme-model.d.ts +0 -0
  41. /package/lib/types/{model → models}/range-theme-util.d.ts +0 -0
  42. /package/lib/types/{model → models}/range-themes/build-in-theme.factory.d.ts +0 -0
  43. /package/lib/types/{model → models}/range-themes/default.d.ts +0 -0
  44. /package/lib/types/{model → models}/zebra-crossing-cache.d.ts +0 -0
@@ -15,64 +15,98 @@
15
15
  */
16
16
  export type { ICellOverGridPosition, ISheetOverGridPosition } from './basics/cell-position';
17
17
  export { checkCellValueType } from './basics/cell-type';
18
- export { COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE, type CommandListenerSkeletonChange, type CommandListenerValueChange, getSkeletonChangedEffectedRange, getValueChangedEffectedRange, SheetSkeletonChangeType, SheetValueChangeType, } from './basics/const/command-listener-const';
18
+ export { COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE, getSkeletonChangedEffectedRange, getValueChangedEffectedRange, SheetSkeletonChangeType, SheetValueChangeType, } from './basics/const/command-listener-const';
19
+ export type { CommandListenerSkeletonChange, CommandListenerValueChange } from './basics/const/command-listener-const';
19
20
  export { validateDefinedName } from './basics/defined-name-utils';
20
21
  export { expandToContinuousRange } from './basics/expand-range';
21
22
  export { type IAddWorksheetMergeMutationParams, type IDeleteRangeMutationParams, type IDiscreteRange, type IInsertColMutationParams, type IInsertRangeMutationParams, type IInsertRowMutationParams, type IInsertSheetMutationParams, type IRemoveColMutationParams, type IRemoveRowsMutationParams, type IRemoveSheetMutationParams, type IRemoveWorksheetMergeMutationParams, type IWorksheetRangeThemeStyleMutationParams, } from './basics/interfaces';
22
- export { createTopMatrixFromMatrix, createTopMatrixFromRanges, findAllRectangle, rangeMerge, RangeMergeUtil } from './basics/range-merge';
23
- 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';
23
+ export { createTopMatrixFromMatrix, createTopMatrixFromRanges, findAllRectangle, rangeMerge, RangeMergeUtil, } from './basics/range-merge';
24
+ export { convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, } from './basics/selection';
25
+ export type { ISelectionStyle, ISelectionWidgetConfig, ISelectionWithCoord, ISelectionWithStyle, ISheetRangeLocation, } from './basics/selection';
24
26
  export { SplitDelimiterEnum, splitRangeText } from './basics/split-range-text';
25
27
  export { findFirstNonEmptyCell } from './basics/utils';
26
- export { deserializeListOptions, discreteRangeToRange, generateNullCell, generateNullCellValue, getVisibleRanges, rangeToDiscreteRange, serializeListOptions } from './basics/utils';
27
- export { AddRangeProtectionCommand, type IAddRangeProtectionCommandParams } from './commands/commands/add-range-protection.command';
28
- export { addMergeCellsUtil, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeVerticalCommand, getClearContentMutationParamForRange, getClearContentMutationParamsForRanges, type IAddMergeCommandParams, type IMergeCellsUtilOptions, } from './commands/commands/add-worksheet-merge.command';
28
+ export { deserializeListOptions, discreteRangeToRange, generateNullCell, generateNullCellValue, getVisibleRanges, rangeToDiscreteRange, serializeListOptions, } from './basics/utils';
29
+ export { AddRangeProtectionCommand } from './commands/commands/add-range-protection.command';
30
+ export type { IAddRangeProtectionCommandParams } from './commands/commands/add-range-protection.command';
31
+ export { addMergeCellsUtil, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeVerticalCommand, getClearContentMutationParamForRange, getClearContentMutationParamsForRanges, } from './commands/commands/add-worksheet-merge.command';
32
+ export type { IAddMergeCommandParams, IMergeCellsUtilOptions } from './commands/commands/add-worksheet-merge.command';
29
33
  export { AddWorksheetProtectionCommand } from './commands/commands/add-worksheet-protection.command';
30
34
  export { SetWorksheetRangeThemeStyleCommand } from './commands/commands/add-worksheet-range-theme.command';
31
- export { AppendRowCommand, type IAppendRowCommandParams } from './commands/commands/append-row.command';
32
- export { AutoClearContentCommand, AutoFillCommand, type IAutoClearContentCommand, type IAutoFillCommandParams, SheetCopyDownCommand, SheetCopyRightCommand } from './commands/commands/auto-fill.command';
33
- export { ClearSelectionAllCommand, type IClearSelectionAllCommandParams } from './commands/commands/clear-selection-all.command';
34
- export { ClearSelectionContentCommand, type IClearSelectionContentCommandParams } from './commands/commands/clear-selection-content.command';
35
- export { ClearSelectionFormatCommand, type IClearSelectionFormatCommandParams } from './commands/commands/clear-selection-format.command';
35
+ export { AppendRowCommand } from './commands/commands/append-row.command';
36
+ export type { IAppendRowCommandParams } from './commands/commands/append-row.command';
37
+ export { AutoClearContentCommand, AutoFillCommand, SheetCopyDownCommand, SheetCopyRightCommand, } from './commands/commands/auto-fill.command';
38
+ export type { IAutoClearContentCommand, IAutoFillCommandParams } from './commands/commands/auto-fill.command';
39
+ export { ClearSelectionAllCommand } from './commands/commands/clear-selection-all.command';
40
+ export type { IClearSelectionAllCommandParams } from './commands/commands/clear-selection-all.command';
41
+ export { ClearSelectionContentCommand } from './commands/commands/clear-selection-content.command';
42
+ export type { IClearSelectionContentCommandParams } from './commands/commands/clear-selection-content.command';
43
+ export { ClearSelectionFormatCommand } from './commands/commands/clear-selection-format.command';
44
+ export type { IClearSelectionFormatCommandParams } from './commands/commands/clear-selection-format.command';
36
45
  export { CopySheetCommand } from './commands/commands/copy-worksheet.command';
37
46
  export type { ICopySheetCommandParams } from './commands/commands/copy-worksheet.command';
38
- export { DeleteRangeMoveLeftCommand, type IDeleteRangeMoveLeftCommandParams } from './commands/commands/delete-range-move-left.command';
39
- export { DeleteRangeMoveUpCommand, type IDeleteRangeMoveUpCommandParams } from './commands/commands/delete-range-move-up.command';
40
- export { DeleteRangeProtectionCommand, type IDeleteRangeProtectionCommandParams } from './commands/commands/delete-range-protection.command';
47
+ export { DeleteRangeMoveLeftCommand } from './commands/commands/delete-range-move-left.command';
48
+ export type { IDeleteRangeMoveLeftCommandParams } from './commands/commands/delete-range-move-left.command';
49
+ export { DeleteRangeMoveUpCommand } from './commands/commands/delete-range-move-up.command';
50
+ export type { IDeleteRangeMoveUpCommandParams } from './commands/commands/delete-range-move-up.command';
51
+ export { DeleteRangeProtectionCommand } from './commands/commands/delete-range-protection.command';
52
+ export type { IDeleteRangeProtectionCommandParams } from './commands/commands/delete-range-protection.command';
41
53
  export { DeleteWorksheetProtectionCommand } from './commands/commands/delete-worksheet-protection.command';
42
54
  export { DeleteWorksheetRangeThemeStyleCommand } from './commands/commands/delete-worksheet-range-theme.command';
43
55
  export { InsertDefinedNameCommand } from './commands/commands/insert-defined-name.command';
44
- export { type IInsertRangeMoveDownCommandParams, InsertRangeMoveDownCommand } from './commands/commands/insert-range-move-down.command';
45
- export { type IInsertRangeMoveRightCommandParams, InsertRangeMoveRightCommand } from './commands/commands/insert-range-move-right.command';
46
- export { type IInsertColCommandParams, type IInsertRowCommandParams, InsertColAfterCommand, InsertColBeforeCommand, InsertColByRangeCommand, InsertColCommand, InsertMultiColsLeftCommand, InsertMultiColsRightCommand, InsertMultiRowsAboveCommand, InsertMultiRowsAfterCommand, InsertRowAfterCommand, InsertRowBeforeCommand, InsertRowByRangeCommand, InsertRowCommand, } from './commands/commands/insert-row-col.command';
47
- export { type IInsertSheetCommandParams, InsertSheetCommand } from './commands/commands/insert-sheet.command';
48
- export { getMoveRangeCommandMutations, getMoveRangeUndoRedoMutations, type IMoveRangeCommandParams, MoveRangeCommand } from './commands/commands/move-range.command';
49
- export { type IMoveColsCommandParams, type IMoveRowsCommandParams, MoveColsCommand, MoveRowsCommand, } from './commands/commands/move-rows-cols.command';
50
- export { type IRefillCommandParams, RefillCommand } from './commands/commands/refill.command';
56
+ export { InsertRangeMoveDownCommand } from './commands/commands/insert-range-move-down.command';
57
+ export type { IInsertRangeMoveDownCommandParams } from './commands/commands/insert-range-move-down.command';
58
+ export { InsertRangeMoveRightCommand } from './commands/commands/insert-range-move-right.command';
59
+ export type { IInsertRangeMoveRightCommandParams } from './commands/commands/insert-range-move-right.command';
60
+ export { InsertColAfterCommand, InsertColBeforeCommand, InsertColByRangeCommand, InsertColCommand, InsertMultiColsLeftCommand, InsertMultiColsRightCommand, InsertMultiRowsAboveCommand, InsertMultiRowsAfterCommand, InsertRowAfterCommand, InsertRowBeforeCommand, InsertRowByRangeCommand, InsertRowCommand, } from './commands/commands/insert-row-col.command';
61
+ export type { IInsertColCommandParams, IInsertRowCommandParams } from './commands/commands/insert-row-col.command';
62
+ export { InsertSheetCommand } from './commands/commands/insert-sheet.command';
63
+ export type { IInsertSheetCommandParams } from './commands/commands/insert-sheet.command';
64
+ export { getMoveRangeCommandMutations, getMoveRangeUndoRedoMutations, MoveRangeCommand, } from './commands/commands/move-range.command';
65
+ export type { IMoveRangeCommandParams } from './commands/commands/move-range.command';
66
+ export { MoveColsCommand, MoveRowsCommand } from './commands/commands/move-rows-cols.command';
67
+ export type { IMoveColsCommandParams, IMoveRowsCommandParams } from './commands/commands/move-rows-cols.command';
68
+ export { RefillCommand } from './commands/commands/refill.command';
69
+ export type { IRefillCommandParams } from './commands/commands/refill.command';
51
70
  export { RegisterWorksheetRangeThemeStyleCommand } from './commands/commands/register-range-theme.command';
52
71
  export type { IRegisterWorksheetRangeThemeStyleCommandParams } from './commands/commands/register-range-theme.command';
53
72
  export { RemoveDefinedNameCommand } from './commands/commands/remove-defined-name.command';
54
- export { type IRemoveColByRangeCommandParams, type IRemoveRowByRangeCommandParams, type IRemoveRowColCommandInterceptParams, type IRemoveRowColCommandParams, RemoveColByRangeCommand, RemoveColCommand, RemoveRowByRangeCommand, RemoveRowCommand } from './commands/commands/remove-row-col.command';
55
- export { type IRemoveSheetCommandParams, RemoveSheetCommand } from './commands/commands/remove-sheet.command';
56
- export { type IRemoveWorksheetMergeCommandParams, RemoveWorksheetMergeCommand } from './commands/commands/remove-worksheet-merge.command';
57
- export { type IReorderRangeCommandParams, ReorderRangeCommand } from './commands/commands/reorder-range.command';
58
- export { type ISetBorderBasicCommandParams, type ISetBorderColorCommandParams, type ISetBorderCommandParams, type ISetBorderPositionCommandParams, type ISetBorderStyleCommandParams, SetBorderBasicCommand, SetBorderColorCommand, SetBorderCommand, SetBorderPositionCommand, SetBorderStyleCommand, } from './commands/commands/set-border.command';
59
- export { type ISetColDataCommandParams, SetColDataCommand } from './commands/commands/set-col-data.command';
60
- export { type ISetColHiddenCommandParams, type ISetSpecificColsVisibleCommandParams, SetColHiddenCommand, SetSelectedColsVisibleCommand, SetSpecificColsVisibleCommand, } from './commands/commands/set-col-visible.command';
73
+ export { RemoveColByRangeCommand, RemoveColCommand, RemoveRowByRangeCommand, RemoveRowCommand, } from './commands/commands/remove-row-col.command';
74
+ export type { IRemoveColByRangeCommandParams, IRemoveRowByRangeCommandParams, IRemoveRowColCommandInterceptParams, IRemoveRowColCommandParams, } from './commands/commands/remove-row-col.command';
75
+ export { RemoveSheetCommand } from './commands/commands/remove-sheet.command';
76
+ export type { IRemoveSheetCommandParams } from './commands/commands/remove-sheet.command';
77
+ export { RemoveWorksheetMergeCommand } from './commands/commands/remove-worksheet-merge.command';
78
+ export type { IRemoveWorksheetMergeCommandParams } from './commands/commands/remove-worksheet-merge.command';
79
+ export { ReorderRangeCommand } from './commands/commands/reorder-range.command';
80
+ export type { IReorderRangeCommandParams } from './commands/commands/reorder-range.command';
81
+ export { SetBorderBasicCommand, SetBorderColorCommand, SetBorderCommand, SetBorderPositionCommand, SetBorderStyleCommand, } from './commands/commands/set-border.command';
82
+ export type { ISetBorderBasicCommandParams, ISetBorderColorCommandParams, ISetBorderCommandParams, ISetBorderPositionCommandParams, ISetBorderStyleCommandParams, } from './commands/commands/set-border.command';
83
+ export { SetColDataCommand } from './commands/commands/set-col-data.command';
84
+ export type { ISetColDataCommandParams } from './commands/commands/set-col-data.command';
85
+ export { SetColHiddenCommand, SetSelectedColsVisibleCommand, SetSpecificColsVisibleCommand, } from './commands/commands/set-col-visible.command';
86
+ export type { ISetColHiddenCommandParams, ISetSpecificColsVisibleCommandParams, } from './commands/commands/set-col-visible.command';
61
87
  export { SetDefinedNameCommand } from './commands/commands/set-defined-name.command';
62
88
  export { type ICancelFrozenCommandParams, type ISetFrozenCommandParams } from './commands/commands/set-frozen.command';
63
89
  export { CancelFrozenCommand, SetFrozenCommand } from './commands/commands/set-frozen.command';
64
- export { type ISetGridlinesColorCommandParams, SetGridlinesColorCommand } from './commands/commands/set-gridlines-color.command';
90
+ export { SetGridlinesColorCommand } from './commands/commands/set-gridlines-color.command';
91
+ export type { ISetGridlinesColorCommandParams } from './commands/commands/set-gridlines-color.command';
65
92
  export { SetProtectionCommand } from './commands/commands/set-protection.command';
66
- export { type ISetRangeCustomMetadataCommandParams, SetRangeCustomMetadataCommand } from './commands/commands/set-range-custom-metadata.command';
67
- export { type ISetRangeValuesCommandParams, SetRangeValuesCommand } from './commands/commands/set-range-values.command';
68
- export { type ISetRowDataCommandParams, SetRowDataCommand } from './commands/commands/set-row-data.command';
69
- export { type ISetRowHiddenCommandParams, type ISetSpecificRowsVisibleCommandParams, SetRowHiddenCommand, SetSelectedRowsVisibleCommand, SetSpecificRowsVisibleCommand, } from './commands/commands/set-row-visible.command';
70
- export { AFFECT_LAYOUT_STYLES, 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';
93
+ export { SetRangeCustomMetadataCommand } from './commands/commands/set-range-custom-metadata.command';
94
+ export type { ISetRangeCustomMetadataCommandParams } from './commands/commands/set-range-custom-metadata.command';
95
+ export { SetRangeValuesCommand } from './commands/commands/set-range-values.command';
96
+ export type { ISetRangeValuesCommandParams } from './commands/commands/set-range-values.command';
97
+ export { SetRowDataCommand } from './commands/commands/set-row-data.command';
98
+ export type { ISetRowDataCommandParams } from './commands/commands/set-row-data.command';
99
+ export { SetRowHiddenCommand, SetSelectedRowsVisibleCommand, SetSpecificRowsVisibleCommand, } from './commands/commands/set-row-visible.command';
100
+ export type { ISetRowHiddenCommandParams, ISetSpecificRowsVisibleCommandParams, } from './commands/commands/set-row-visible.command';
101
+ export { AFFECT_LAYOUT_STYLES, ResetBackgroundColorCommand, ResetTextColorCommand, SetBackgroundColorCommand, SetBoldCommand, SetFontFamilyCommand, SetFontSizeCommand, SetHorizontalTextAlignCommand, SetItalicCommand, SetOverlineCommand, SetStrikeThroughCommand, SetStyleCommand, SetTextColorCommand, SetTextRotationCommand, SetTextWrapCommand, SetUnderlineCommand, SetVerticalTextAlignCommand, } from './commands/commands/set-style.command';
102
+ export type { ISetColorCommandParams, ISetFontFamilyCommandParams, ISetFontSizeCommandParams, ISetHorizontalTextAlignCommandParams, ISetStyleCommandParams, ISetTextRotationCommandParams, ISetTextWrapCommandParams, ISetVerticalTextAlignCommandParams, IStyleTypeValue, } from './commands/commands/set-style.command';
71
103
  export { SetTabColorCommand } from './commands/commands/set-tab-color.command';
72
- export { type ISetWorkbookNameCommandParams, SetWorkbookNameCommand } from './commands/commands/set-workbook-name.command';
73
- export { type ISetWorksheetActivateCommandParams, SetWorksheetActivateCommand } from './commands/commands/set-worksheet-activate.command';
104
+ export { SetWorkbookNameCommand } from './commands/commands/set-workbook-name.command';
105
+ export type { ISetWorkbookNameCommandParams } from './commands/commands/set-workbook-name.command';
106
+ export { SetWorksheetActivateCommand } from './commands/commands/set-worksheet-activate.command';
107
+ export type { ISetWorksheetActivateCommandParams } from './commands/commands/set-worksheet-activate.command';
74
108
  export { DeltaColumnWidthCommand, SetColWidthCommand } from './commands/commands/set-worksheet-col-width.command';
75
- export type { IDeltaColumnWidthCommandParams, ISetColWidthCommandParams } from './commands/commands/set-worksheet-col-width.command';
109
+ export type { IDeltaColumnWidthCommandParams, ISetColWidthCommandParams, } from './commands/commands/set-worksheet-col-width.command';
76
110
  export { SetWorksheetColumnCountCommand } from './commands/commands/set-worksheet-column-count.command';
77
111
  export { SetWorksheetDefaultStyleCommand } from './commands/commands/set-worksheet-default-style.command';
78
112
  export { SetWorksheetHideCommand } from './commands/commands/set-worksheet-hide.command';
@@ -83,86 +117,126 @@ export { SetWorksheetPermissionPointsCommand } from './commands/commands/set-wor
83
117
  export { SetWorksheetProtectionCommand } from './commands/commands/set-worksheet-protection.command';
84
118
  export { SetWorksheetRightToLeftCommand } from './commands/commands/set-worksheet-right-to-left.command';
85
119
  export { SetWorksheetRowCountCommand } from './commands/commands/set-worksheet-row-count.command';
86
- export { DeltaRowHeightCommand, type ISetRowHeightCommandParams, SetRowHeightCommand, SetWorksheetRowIsAutoHeightCommand } from './commands/commands/set-worksheet-row-height.command';
87
- export type { IDeltaRowHeightCommandParams, ISetWorksheetRowIsAutoHeightCommandParams } from './commands/commands/set-worksheet-row-height.command';
120
+ export { DeltaRowHeightCommand, SetRowHeightCommand, SetWorksheetRowIsAutoHeightCommand, } from './commands/commands/set-worksheet-row-height.command';
121
+ export type { ISetRowHeightCommandParams } from './commands/commands/set-worksheet-row-height.command';
122
+ export type { IDeltaRowHeightCommandParams, ISetWorksheetRowIsAutoHeightCommandParams, } from './commands/commands/set-worksheet-row-height.command';
88
123
  export { SetWorksheetShowCommand } from './commands/commands/set-worksheet-show.command';
89
124
  export type { ISetWorksheetShowCommandParams } from './commands/commands/set-worksheet-show.command';
90
125
  export { SplitTextToColumnsCommand } from './commands/commands/split-text-to-columns.command';
91
126
  export type { ISplitTextToColumnsCommandParams } from './commands/commands/split-text-to-columns.command';
92
- export { type ITextToNumberCommandParams, TextToNumberCommand } from './commands/commands/text-to-number.command';
93
- export { type IToggleCellCheckboxCommandParams, ToggleCellCheckboxCommand } from './commands/commands/toggle-checkbox.command';
94
- export { type IToggleGridlinesCommandParams, ToggleGridlinesCommand } from './commands/commands/toggle-gridlines.command';
127
+ export { TextToNumberCommand } from './commands/commands/text-to-number.command';
128
+ export type { ITextToNumberCommandParams } from './commands/commands/text-to-number.command';
129
+ export { ToggleCellCheckboxCommand } from './commands/commands/toggle-checkbox.command';
130
+ export type { IToggleCellCheckboxCommandParams } from './commands/commands/toggle-checkbox.command';
131
+ export { ToggleGridlinesCommand } from './commands/commands/toggle-gridlines.command';
132
+ export type { IToggleGridlinesCommandParams } from './commands/commands/toggle-gridlines.command';
95
133
  export { UnregisterWorksheetRangeThemeStyleCommand } from './commands/commands/unregister-range-theme.command';
96
- export type { IUnregisterWorksheetRangeThemeStyleCommandParams } from './commands/commands/unregister-range-theme.command';
134
+ export type { IUnregisterWorksheetRangeThemeStyleCommandParams, } from './commands/commands/unregister-range-theme.command';
97
135
  export { countCells } from './commands/commands/util';
98
- export { alignToMergedCellsBorders, getCellAtRowCol, isSingleCellSelection, setEndForRange } from './commands/commands/utils/selection-utils';
136
+ export { alignToMergedCellsBorders, getCellAtRowCol, isSingleCellSelection, setEndForRange, } from './commands/commands/utils/selection-utils';
99
137
  export { followSelectionOperation, getPrimaryForRange } from './commands/commands/utils/selection-utils';
100
138
  export { copyRangeStyles } from './commands/commands/utils/selection-utils';
101
- export { getSheetCommandTarget, getSheetCommandTargetWorkbook, getSheetMutationTarget } from './commands/commands/utils/target-util';
102
- export { AddRangeProtectionMutation, FactoryAddRangeProtectionMutation, type IAddRangeProtectionMutationParams } from './commands/mutations/add-range-protection.mutation';
139
+ export { getSheetCommandTarget, getSheetCommandTargetWorkbook, getSheetMutationTarget, } from './commands/commands/utils/target-util';
140
+ export { AddRangeProtectionMutation, FactoryAddRangeProtectionMutation, } from './commands/mutations/add-range-protection.mutation';
141
+ export type { IAddRangeProtectionMutationParams } from './commands/mutations/add-range-protection.mutation';
103
142
  export { AddRangeThemeMutation } from './commands/mutations/add-range-theme.mutation';
104
143
  export type { IAddRangeThemeMutationParams } from './commands/mutations/add-range-theme.mutation';
105
- export { AddMergeUndoMutationFactory, AddWorksheetMergeMutation } from './commands/mutations/add-worksheet-merge.mutation';
106
- export { AddWorksheetProtectionMutation, type IAddWorksheetProtectionParams } from './commands/mutations/add-worksheet-protection.mutation';
107
- export { SetWorksheetRangeThemeStyleMutation, SetWorksheetRangeThemeStyleMutationFactory } from './commands/mutations/add-worksheet-range-theme.mutation';
108
- export { CopyWorksheetEndMutation, type ICopyWorksheetEndMutationParams } from './commands/mutations/copy-worksheet-end.mutation';
109
- export { DeleteRangeProtectionMutation, FactoryDeleteRangeProtectionMutation, type IDeleteRangeProtectionMutationParams } from './commands/mutations/delete-range-protection.mutation';
144
+ export { AddMergeUndoMutationFactory, AddWorksheetMergeMutation, } from './commands/mutations/add-worksheet-merge.mutation';
145
+ export { AddWorksheetProtectionMutation } from './commands/mutations/add-worksheet-protection.mutation';
146
+ export type { IAddWorksheetProtectionParams } from './commands/mutations/add-worksheet-protection.mutation';
147
+ export { SetWorksheetRangeThemeStyleMutation, SetWorksheetRangeThemeStyleMutationFactory, } from './commands/mutations/add-worksheet-range-theme.mutation';
148
+ export { CopyWorksheetEndMutation } from './commands/mutations/copy-worksheet-end.mutation';
149
+ export type { ICopyWorksheetEndMutationParams } from './commands/mutations/copy-worksheet-end.mutation';
150
+ export { DeleteRangeProtectionMutation, FactoryDeleteRangeProtectionMutation, } from './commands/mutations/delete-range-protection.mutation';
151
+ export type { IDeleteRangeProtectionMutationParams } from './commands/mutations/delete-range-protection.mutation';
110
152
  export { DeleteWorksheetProtectionMutation } from './commands/mutations/delete-worksheet-protection.mutation';
111
153
  export type { IDeleteWorksheetProtectionParams } from './commands/mutations/delete-worksheet-protection.mutation';
112
- export { DeleteWorksheetRangeThemeStyleMutation, DeleteWorksheetRangeThemeStyleMutationFactory } from './commands/mutations/delete-worksheet-range-theme.mutation';
154
+ export { DeleteWorksheetRangeThemeStyleMutation, DeleteWorksheetRangeThemeStyleMutationFactory, } from './commands/mutations/delete-worksheet-range-theme.mutation';
113
155
  export { EmptyMutation } from './commands/mutations/empty.mutation';
114
156
  export { InsertColMutation, InsertColMutationUndoFactory, InsertRowMutation, InsertRowMutationUndoFactory, } from './commands/mutations/insert-row-col.mutation';
115
157
  export { InsertSheetMutation, InsertSheetUndoMutationFactory } from './commands/mutations/insert-sheet.mutation';
116
- export { type IMarkDirtyFilterChangeMutationParams, MarkDirtyFilterChangeMutation } from './commands/mutations/mark-dirty-filter-change.mutation';
117
- export { type IMoveRangeMutationParams, MoveRangeMutation } from './commands/mutations/move-range.mutation';
118
- export { type IMoveColumnsMutationParams, type IMoveRowsMutationParams, MoveColsMutation, MoveColsMutationUndoFactory, MoveRowsMutation, MoveRowsMutationUndoFactory, } from './commands/mutations/move-rows-cols.mutation';
119
- export { factoryRemoveNumfmtUndoMutation, factorySetNumfmtUndoMutation, type IRemoveNumfmtMutationParams, type ISetCellsNumfmt, type ISetNumfmtMutationParams, RemoveNumfmtMutation, SetNumfmtMutation, transformCellsToRange, } from './commands/mutations/numfmt.mutation';
120
- export { type IRegisterWorksheetRangeThemeStyleMutationParams, RegisterWorksheetRangeThemeStyleMutation } from './commands/mutations/register-range-theme.mutation';
158
+ export { MarkDirtyFilterChangeMutation } from './commands/mutations/mark-dirty-filter-change.mutation';
159
+ export type { IMarkDirtyFilterChangeMutationParams } from './commands/mutations/mark-dirty-filter-change.mutation';
160
+ export { MoveRangeMutation } from './commands/mutations/move-range.mutation';
161
+ export type { IMoveRangeMutationParams } from './commands/mutations/move-range.mutation';
162
+ export { MoveColsMutation, MoveColsMutationUndoFactory, MoveRowsMutation, MoveRowsMutationUndoFactory, } from './commands/mutations/move-rows-cols.mutation';
163
+ export type { IMoveColumnsMutationParams, IMoveRowsMutationParams } from './commands/mutations/move-rows-cols.mutation';
164
+ export { factoryRemoveNumfmtUndoMutation, factorySetNumfmtUndoMutation, RemoveNumfmtMutation, SetNumfmtMutation, transformCellsToRange, } from './commands/mutations/numfmt.mutation';
165
+ export type { IRemoveNumfmtMutationParams, ISetCellsNumfmt, ISetNumfmtMutationParams, } from './commands/mutations/numfmt.mutation';
166
+ export { RegisterWorksheetRangeThemeStyleMutation } from './commands/mutations/register-range-theme.mutation';
167
+ export type { IRegisterWorksheetRangeThemeStyleMutationParams, } from './commands/mutations/register-range-theme.mutation';
121
168
  export { RemoveRangeThemeMutation } from './commands/mutations/remove-range-theme.mutation';
122
169
  export type { IRemoveRangeThemeMutationParams } from './commands/mutations/remove-range-theme.mutation';
123
170
  export { RemoveColMutation, RemoveRowMutation } from './commands/mutations/remove-row-col.mutation';
124
171
  export { RemoveSheetMutation, RemoveSheetUndoMutationFactory } from './commands/mutations/remove-sheet.mutation';
125
- export { RemoveMergeUndoMutationFactory, RemoveWorksheetMergeMutation } from './commands/mutations/remove-worksheet-merge.mutation';
126
- export { type IReorderRangeMutationParams, ReorderRangeMutation, ReorderRangeUndoMutationFactory } from './commands/mutations/reorder-range.mutation';
127
- export { type ISetColDataMutationParams, SetColDataMutation, SetColDataMutationFactory } from './commands/mutations/set-col-data.mutation';
128
- export { type ISetColHiddenMutationParams, type ISetColVisibleMutationParams, SetColHiddenMutation, SetColVisibleMutation, } from './commands/mutations/set-col-visible.mutation';
129
- export { type ISetFrozenMutationParams, SetFrozenMutation, SetFrozenMutationFactory, } from './commands/mutations/set-frozen.mutation';
130
- export { type ISetGridlinesColorMutationParams, SetGridlinesColorMutation } from './commands/mutations/set-gridlines-color.mutation';
131
- export { FactorySetRangeProtectionMutation, type ISetRangeProtectionMutationParams, SetRangeProtectionMutation } from './commands/mutations/set-range-protection.mutation';
172
+ export { RemoveMergeUndoMutationFactory, RemoveWorksheetMergeMutation, } from './commands/mutations/remove-worksheet-merge.mutation';
173
+ export { ReorderRangeMutation, ReorderRangeUndoMutationFactory } from './commands/mutations/reorder-range.mutation';
174
+ export type { IReorderRangeMutationParams } from './commands/mutations/reorder-range.mutation';
175
+ export { SetColDataMutation, SetColDataMutationFactory } from './commands/mutations/set-col-data.mutation';
176
+ export type { ISetColDataMutationParams } from './commands/mutations/set-col-data.mutation';
177
+ export { SetColHiddenMutation, SetColVisibleMutation } from './commands/mutations/set-col-visible.mutation';
178
+ export type { ISetColHiddenMutationParams, ISetColVisibleMutationParams, } from './commands/mutations/set-col-visible.mutation';
179
+ export { SetFrozenMutation, SetFrozenMutationFactory } from './commands/mutations/set-frozen.mutation';
180
+ export type { ISetFrozenMutationParams } from './commands/mutations/set-frozen.mutation';
181
+ export { SetGridlinesColorMutation } from './commands/mutations/set-gridlines-color.mutation';
182
+ export type { ISetGridlinesColorMutationParams } from './commands/mutations/set-gridlines-color.mutation';
183
+ export { FactorySetRangeProtectionMutation, SetRangeProtectionMutation, } from './commands/mutations/set-range-protection.mutation';
184
+ export type { ISetRangeProtectionMutationParams } from './commands/mutations/set-range-protection.mutation';
132
185
  export { SetRangeThemeMutation } from './commands/mutations/set-range-theme.mutation';
133
186
  export type { ISetRangeThemeMutationParams } from './commands/mutations/set-range-theme.mutation';
134
- export { type ISetRangeValuesMutationParams, type ISetRangeValuesRangeMutationParams, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, } from './commands/mutations/set-range-values.mutation';
135
- export { type ISetRowDataMutationParams, SetRowDataMutation, SetRowDataMutationFactory } from './commands/mutations/set-row-data.mutation';
136
- export { type ISetRowHiddenMutationParams, type ISetRowVisibleMutationParams, SetRowHiddenMutation, SetRowVisibleMutation, } from './commands/mutations/set-row-visible.mutation';
137
- export { type ISetTabColorMutationParams, SetTabColorMutation } from './commands/mutations/set-tab-color.mutation';
138
- export { type ISetWorkbookNameMutationParams, SetWorkbookNameMutation } from './commands/mutations/set-workbook-name.mutation';
139
- export { type ISetWorksheetColWidthMutationParams, SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, } from './commands/mutations/set-worksheet-col-width.mutation';
140
- export { type ISetWorksheetColumnCountMutationParams, SetWorksheetColumnCountMutation, SetWorksheetColumnCountUndoMutationFactory } from './commands/mutations/set-worksheet-column-count.mutation';
141
- export { type ISetWorksheetDefaultStyleMutationParams, SetWorksheetDefaultStyleMutation, SetWorksheetDefaultStyleMutationFactory } from './commands/mutations/set-worksheet-default-style.mutation';
142
- export { type ISetWorksheetHideMutationParams, SetWorksheetHideMutation } from './commands/mutations/set-worksheet-hide.mutation';
143
- export { type ISetWorksheetNameMutationParams, SetWorksheetNameMutation } from './commands/mutations/set-worksheet-name.mutation';
144
- export { type ISetWorksheetOrderMutationParams, SetWorksheetOrderMutation } from './commands/mutations/set-worksheet-order.mutation';
187
+ export { SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, } from './commands/mutations/set-range-values.mutation';
188
+ export type { ISetRangeValuesMutationParams, ISetRangeValuesRangeMutationParams, } from './commands/mutations/set-range-values.mutation';
189
+ export { SetRowDataMutation, SetRowDataMutationFactory } from './commands/mutations/set-row-data.mutation';
190
+ export type { ISetRowDataMutationParams } from './commands/mutations/set-row-data.mutation';
191
+ export { SetRowHiddenMutation, SetRowVisibleMutation } from './commands/mutations/set-row-visible.mutation';
192
+ export type { ISetRowHiddenMutationParams, ISetRowVisibleMutationParams, } from './commands/mutations/set-row-visible.mutation';
193
+ export { SetTabColorMutation } from './commands/mutations/set-tab-color.mutation';
194
+ export type { ISetTabColorMutationParams } from './commands/mutations/set-tab-color.mutation';
195
+ export { SetWorkbookNameMutation } from './commands/mutations/set-workbook-name.mutation';
196
+ export type { ISetWorkbookNameMutationParams } from './commands/mutations/set-workbook-name.mutation';
197
+ export { SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, } from './commands/mutations/set-worksheet-col-width.mutation';
198
+ export type { ISetWorksheetColWidthMutationParams } from './commands/mutations/set-worksheet-col-width.mutation';
199
+ export { SetWorksheetColumnCountMutation, SetWorksheetColumnCountUndoMutationFactory, } from './commands/mutations/set-worksheet-column-count.mutation';
200
+ export type { ISetWorksheetColumnCountMutationParams } from './commands/mutations/set-worksheet-column-count.mutation';
201
+ export { SetWorksheetDefaultStyleMutation, SetWorksheetDefaultStyleMutationFactory, } from './commands/mutations/set-worksheet-default-style.mutation';
202
+ export type { ISetWorksheetDefaultStyleMutationParams, } from './commands/mutations/set-worksheet-default-style.mutation';
203
+ export { SetWorksheetHideMutation } from './commands/mutations/set-worksheet-hide.mutation';
204
+ export type { ISetWorksheetHideMutationParams } from './commands/mutations/set-worksheet-hide.mutation';
205
+ export { SetWorksheetNameMutation } from './commands/mutations/set-worksheet-name.mutation';
206
+ export type { ISetWorksheetNameMutationParams } from './commands/mutations/set-worksheet-name.mutation';
207
+ export { SetWorksheetOrderMutation } from './commands/mutations/set-worksheet-order.mutation';
208
+ export type { ISetWorksheetOrderMutationParams } from './commands/mutations/set-worksheet-order.mutation';
145
209
  export { SetWorksheetPermissionPointsMutation } from './commands/mutations/set-worksheet-permission-points.mutation';
146
- export type { ISetWorksheetPermissionPointsMutationParams } from './commands/mutations/set-worksheet-permission-points.mutation';
210
+ export type { ISetWorksheetPermissionPointsMutationParams, } from './commands/mutations/set-worksheet-permission-points.mutation';
147
211
  export { SetWorksheetProtectionMutation } from './commands/mutations/set-worksheet-protection.mutation';
148
212
  export type { ISetWorksheetProtectionParams } from './commands/mutations/set-worksheet-protection.mutation';
149
213
  export { SetWorksheetRightToLeftMutation } from './commands/mutations/set-worksheet-right-to-left.mutation';
150
- export { type ISetWorksheetRowCountMutationParams, SetWorksheetRowCountMutation, SetWorksheetRowCountUndoMutationFactory } from './commands/mutations/set-worksheet-row-count.mutation';
151
- export { type ISetWorksheetRowAutoHeightMutationParams, type ISetWorksheetRowHeightMutationParams, type ISetWorksheetRowIsAutoHeightMutationParams, SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowHeightMutationFactory, SetWorksheetRowIsAutoHeightMutation, SetWorksheetRowIsAutoHeightMutationFactory, } from './commands/mutations/set-worksheet-row-height.mutation';
152
- export { type IToggleGridlinesMutationParams, ToggleGridlinesMutation } from './commands/mutations/toggle-gridlines.mutation';
153
- export { type IUnregisterWorksheetRangeThemeStyleMutationParams, UnregisterWorksheetRangeThemeStyleMutation } from './commands/mutations/unregister-range-theme-style.mutation';
154
- export { CancelMarkDirtyRowAutoHeightOperation, type ICancelMarkDirtyRowAutoHeightOperationParams, type IMarkDirtyRowAutoHeightOperationParams, MarkDirtyRowAutoHeightOperation, } from './commands/operations/mark-dirty-auto-height.operation';
155
- export { type IScrollToCellOperationParams, ScrollToCellOperation } from './commands/operations/scroll-to-cell.operation';
156
- export { type ISelectRangeCommandParams, type ISetSelectionsOperationParams, SelectRangeCommand, SetSelectionsOperation } from './commands/operations/selection.operation';
157
- export { type ISetWorksheetActiveOperationParams, SetWorksheetActiveOperation } from './commands/operations/set-worksheet-active.operation';
158
- export { AddMergeRedoSelectionsOperationFactory, AddMergeUndoSelectionsOperationFactory } from './commands/utils/handle-merge-operation';
214
+ export { SetWorksheetRowCountMutation, SetWorksheetRowCountUndoMutationFactory, } from './commands/mutations/set-worksheet-row-count.mutation';
215
+ export type { ISetWorksheetRowCountMutationParams } from './commands/mutations/set-worksheet-row-count.mutation';
216
+ export { SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowHeightMutationFactory, SetWorksheetRowIsAutoHeightMutation, SetWorksheetRowIsAutoHeightMutationFactory, } from './commands/mutations/set-worksheet-row-height.mutation';
217
+ export type { ISetWorksheetRowAutoHeightMutationParams, ISetWorksheetRowHeightMutationParams, ISetWorksheetRowIsAutoHeightMutationParams, } from './commands/mutations/set-worksheet-row-height.mutation';
218
+ export { ToggleGridlinesMutation } from './commands/mutations/toggle-gridlines.mutation';
219
+ export type { IToggleGridlinesMutationParams } from './commands/mutations/toggle-gridlines.mutation';
220
+ export { UnregisterWorksheetRangeThemeStyleMutation } from './commands/mutations/unregister-range-theme-style.mutation';
221
+ export type { IUnregisterWorksheetRangeThemeStyleMutationParams, } from './commands/mutations/unregister-range-theme-style.mutation';
222
+ export { CancelMarkDirtyRowAutoHeightOperation, MarkDirtyRowAutoHeightOperation, } from './commands/operations/mark-dirty-auto-height.operation';
223
+ export type { ICancelMarkDirtyRowAutoHeightOperationParams, IMarkDirtyRowAutoHeightOperationParams, } from './commands/operations/mark-dirty-auto-height.operation';
224
+ export { ScrollToCellOperation } from './commands/operations/scroll-to-cell.operation';
225
+ export type { IScrollToCellOperationParams } from './commands/operations/scroll-to-cell.operation';
226
+ export { SelectRangeCommand, SetSelectionsOperation } from './commands/operations/selection.operation';
227
+ export type { ISelectRangeCommandParams, ISetSelectionsOperationParams, } from './commands/operations/selection.operation';
228
+ export { SetWorksheetActiveOperation } from './commands/operations/set-worksheet-active.operation';
229
+ export type { ISetWorksheetActiveOperationParams } from './commands/operations/set-worksheet-active.operation';
230
+ export { AddMergeRedoSelectionsOperationFactory, AddMergeUndoSelectionsOperationFactory, } from './commands/utils/handle-merge-operation';
159
231
  export { handleDeleteRangeMutation } from './commands/utils/handle-range.mutation';
160
232
  export { getInsertRangeMutations, getRemoveRangeMutations } from './commands/utils/handle-range.mutation';
161
233
  export { handleInsertRangeMutation } from './commands/utils/handle-range.mutation';
162
234
  export { type ISheetCommandSharedParams } from './commands/utils/interface';
163
235
  export { getSelectionsService } from './commands/utils/selection-command-util';
164
- export { defaultLargeSheetOperationConfig, type ILargeSheetOperationConfig, type IUniverSheetsConfig, SHEETS_PLUGIN_CONFIG_KEY } from './config/config';
236
+ export { defaultLargeSheetOperationConfig, SHEETS_PLUGIN_CONFIG_KEY } from './config/config';
237
+ export type { ILargeSheetOperationConfig, IUniverSheetsConfig } from './config/config';
165
238
  export { AutoFillController } from './controllers/auto-fill.controller';
239
+ export { CalculateResultApplyController } from './controllers/calculate-result-apply.controller';
166
240
  export { MAX_CELL_PER_SHEET_KEY } from './controllers/config/config';
167
241
  export { DefinedNameDataController } from './controllers/defined-name-data.controller';
168
242
  export { SCOPE_WORKBOOK_VALUE_DEFINED_NAME } from './controllers/defined-name-data.controller';
@@ -172,42 +246,47 @@ export { MERGE_CELL_INTERCEPTOR_CHECK, MergeCellController } from './controllers
172
246
  export { SheetPermissionCheckController } from './controllers/permission/sheet-permission-check.controller';
173
247
  export { SheetPermissionInitController } from './controllers/permission/sheet-permission-init.controller';
174
248
  export { ZebraCrossingCacheController } from './controllers/zebar-crossing.controller';
175
- export { type ICellPermission, RangeProtectionRenderModel } from './model/range-protection-render.model';
176
- export { EditStateEnum, type IModel, type IObjectModel, type IRangeProtectionRule, RangeProtectionRuleModel, ViewStateEnum } from './model/range-protection-rule.model';
177
- export { RangeProtectionCache } from './model/range-protection.cache';
178
- export { SheetRangeThemeModel } from './model/range-theme-model';
179
- export type { IRangeThemeStyleJSON } from './model/range-theme-util';
180
- export { RangeThemeStyle } from './model/range-theme-util';
181
- export type { IRangeThemeStyleItem } from './model/range-theme-util';
249
+ export { RangeProtectionRenderModel } from './models/range-protection-render.model';
250
+ export type { ICellPermission } from './models/range-protection-render.model';
251
+ export { EditStateEnum, RangeProtectionRuleModel, ViewStateEnum } from './models/range-protection-rule.model';
252
+ export type { IModel, IObjectModel, IRangeProtectionRule } from './models/range-protection-rule.model';
253
+ export { RangeProtectionCache } from './models/range-protection.cache';
254
+ export { SheetRangeThemeModel } from './models/range-theme-model';
255
+ export type { IRangeThemeStyleJSON } from './models/range-theme-util';
256
+ export { RangeThemeStyle } from './models/range-theme-util';
257
+ export type { IRangeThemeStyleItem } from './models/range-theme-util';
182
258
  export { UniverSheetsPlugin } from './plugin';
183
259
  export { AutoFillService, IAutoFillService } from './services/auto-fill/auto-fill.service';
184
260
  export { default as AutoFillRules } from './services/auto-fill/rules';
185
261
  export { default as AutoFillTools } from './services/auto-fill/tools';
186
- export { type AUTO_FILL_APPLY_FUNCTIONS, AUTO_FILL_APPLY_TYPE, AUTO_FILL_DATA_TYPE, AUTO_FILL_HOOK_TYPE, type IAutoFillCopyDataInType, type IAutoFillCopyDataInTypeIndexInfo, type IAutoFillCopyDataPiece, type IAutoFillLocation, type IAutoFillRule, type IAutoFillRuleConfirmedData, type ISheetAutoFillHook, } from './services/auto-fill/type';
187
- export { BorderStyleManagerService, type IBorderInfo } from './services/border-style-manager.service';
262
+ export { AUTO_FILL_APPLY_TYPE, AUTO_FILL_DATA_TYPE, AUTO_FILL_HOOK_TYPE } from './services/auto-fill/type';
263
+ export type { AUTO_FILL_APPLY_FUNCTIONS, IAutoFillCopyDataInType, IAutoFillCopyDataInTypeIndexInfo, IAutoFillCopyDataPiece, IAutoFillLocation, IAutoFillRule, IAutoFillRuleConfirmedData, ISheetAutoFillHook, } from './services/auto-fill/type';
264
+ export { BorderStyleManagerService } from './services/border-style-manager.service';
265
+ export type { IBorderInfo } from './services/border-style-manager.service';
188
266
  export { ExclusiveRangeService, IExclusiveRangeService } from './services/exclusive-range/exclusive-range.service';
189
267
  export { SheetLazyExecuteScheduleService } from './services/lazy-execute-schedule.service';
190
268
  export { NumfmtService } from './services/numfmt/numfmt.service';
191
269
  export type { INumfmtItem, INumfmtItemWithCache } from './services/numfmt/type';
192
270
  export { INumfmtService } from './services/numfmt/type';
193
271
  export type { FormatType } from './services/numfmt/type';
194
- export { defaultWorksheetPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel } from './services/permission';
272
+ export { defaultWorksheetPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel, } from './services/permission';
195
273
  export * from './services/permission/permission-point';
196
274
  export { WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission, 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';
197
275
  export { PermissionPointsDefinitions } from './services/permission/permission-point/const';
198
- export { RangeProtectionPermissionDeleteProtectionPoint } from './services/permission/permission-point/range/delete-protection';
276
+ export { RangeProtectionPermissionDeleteProtectionPoint, } from './services/permission/permission-point/range/delete-protection';
199
277
  export { RangeProtectionPermissionEditPoint } from './services/permission/permission-point/range/edit';
200
- export { RangeProtectionPermissionManageCollaPoint } from './services/permission/permission-point/range/manage-collaborator';
278
+ export { RangeProtectionPermissionManageCollaPoint, } from './services/permission/permission-point/range/manage-collaborator';
201
279
  export { RangeProtectionPermissionViewPoint } from './services/permission/permission-point/range/view';
202
280
  export { RangeProtectionRefRangeService } from './services/permission/range-permission/range-protection.ref-range';
203
281
  export { RangeProtectionService } from './services/permission/range-permission/range-protection.service';
204
- export { getAllRangePermissionPoint, getDefaultRangePermission, type IRangePermissionPoint, } from './services/permission/range-permission/util';
282
+ export { getAllRangePermissionPoint, getDefaultRangePermission } from './services/permission/range-permission/util';
283
+ export type { IRangePermissionPoint } from './services/permission/range-permission/util';
205
284
  export { baseProtectionActions } from './services/permission/range-permission/util';
206
285
  export type { IWorksheetProtectionRule } from './services/permission/type';
207
286
  export { checkRangesEditablePermission } from './services/permission/util';
208
- export { defaultWorkbookPermissionPoints, getAllWorkbookPermissionPoint } from './services/permission/workbook-permission';
287
+ export { defaultWorkbookPermissionPoints, getAllWorkbookPermissionPoint, } from './services/permission/workbook-permission';
209
288
  export { WorkbookPermissionService } from './services/permission/workbook-permission/workbook-permission.service';
210
- export { WorksheetProtectionPointModel, WorksheetProtectionRuleModel } from './services/permission/worksheet-permission';
289
+ export { WorksheetProtectionPointModel, WorksheetProtectionRuleModel, } from './services/permission/worksheet-permission';
211
290
  export type { IWorksheetProtectionRenderCellData } from './services/permission/worksheet-permission/type';
212
291
  export { WorksheetPermissionService } from './services/permission/worksheet-permission/worksheet-permission.service';
213
292
  export { SheetRangeThemeService } from './services/range-theme.service';
@@ -219,9 +298,10 @@ export type { MutationsAffectRange } from './services/ref-range/util';
219
298
  export * from './services/selections';
220
299
  export { getNextPrimaryCell } from './services/selections/move-active-cell-util';
221
300
  export { InterceptCellContentPriority, INTERCEPTOR_POINT } from './services/sheet-interceptor/interceptor-const';
222
- export { AFTER_CELL_EDIT, BEFORE_CELL_EDIT, type IAutoHeightContext, SheetInterceptorService, VALIDATE_CELL } from './services/sheet-interceptor/sheet-interceptor.service';
223
- export type { ISheetLocation, ISheetLocationBase, ISheetRowLocation } from './services/sheet-interceptor/utils/interceptor';
224
- export { convertPositionCellToSheetOverGrid, convertPositionSheetOverGridToAbsolute } from './skeleton/drawing-position-util';
225
- export { type ISheetSkeletonManagerParam, SheetSkeletonService } from './skeleton/skeleton.service';
301
+ export { AFTER_CELL_EDIT, BEFORE_CELL_EDIT, SheetInterceptorService, VALIDATE_CELL, } from './services/sheet-interceptor/sheet-interceptor.service';
302
+ export type { IAutoHeightContext } from './services/sheet-interceptor/sheet-interceptor.service';
303
+ export type { ISheetLocation, ISheetLocationBase, ISheetRowLocation, } from './services/sheet-interceptor/utils/interceptor';
304
+ export { convertPositionCellToSheetOverGrid, convertPositionSheetOverGridToAbsolute, } from './skeleton/drawing-position-util';
305
+ export { SheetSkeletonService } from './skeleton/skeleton.service';
306
+ export type { ISheetSkeletonManagerParam } from './skeleton/skeleton.service';
226
307
  export { attachPrimaryWithCoord, attachRangeWithCoord, attachSelectionWithCoord } from './skeleton/util';
227
- export { UnitAction, UnitObject } from '@univerjs/protocol';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { LocaleLeafKeys } from '@univerjs/core';
17
+ import type enUS from './en-US';
18
+ export type LocaleKey = LocaleLeafKeys<typeof enUS>;
@@ -19,9 +19,9 @@ import type { IDeleteRangeProtectionMutationParams } from '../../../commands/mut
19
19
  import type { ISetRangeProtectionMutationParams } from '../../../commands/mutations/set-range-protection.mutation';
20
20
  import type { EffectRefRangeParams } from '../../ref-range/type';
21
21
  import { Disposable, DisposableCollection, ICommandService, IUniverInstanceService } from '@univerjs/core';
22
- import { RangeProtectionRenderModel } from '../../../model/range-protection-render.model';
23
- import { RangeProtectionRuleModel } from '../../../model/range-protection-rule.model';
24
- import { RangeProtectionCache } from '../../../model/range-protection.cache';
22
+ import { RangeProtectionRenderModel } from '../../../models/range-protection-render.model';
23
+ import { RangeProtectionRuleModel } from '../../../models/range-protection-rule.model';
24
+ import { RangeProtectionCache } from '../../../models/range-protection.cache';
25
25
  import { RefRangeService } from '../../ref-range/ref-range.service';
26
26
  import { SheetInterceptorService } from '../../sheet-interceptor/sheet-interceptor.service';
27
27
  export declare class RangeProtectionRefRangeService extends Disposable {
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Disposable, IPermissionService, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
17
- import { RangeProtectionRuleModel } from '../../../model/range-protection-rule.model';
18
- import { RangeProtectionCache } from '../../../model/range-protection.cache';
17
+ import { RangeProtectionRuleModel } from '../../../models/range-protection-rule.model';
18
+ import { RangeProtectionCache } from '../../../models/range-protection.cache';
19
19
  export declare class RangeProtectionService extends Disposable {
20
20
  private _selectionProtectionRuleModel;
21
21
  private _permissionService;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { UnitObject } from '@univerjs/protocol';
17
- import type { EditStateEnum, ViewStateEnum } from '../../model/range-protection-rule.model';
17
+ import type { EditStateEnum, ViewStateEnum } from '../../models/range-protection-rule.model';
18
18
  export interface IWorksheetProtectionRule {
19
19
  permissionId: string;
20
20
  description?: string;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Disposable, IPermissionService, IUniverInstanceService } from '@univerjs/core';
17
- import { RangeProtectionRuleModel } from '../../../model/range-protection-rule.model';
17
+ import { RangeProtectionRuleModel } from '../../../models/range-protection-rule.model';
18
18
  import { WorksheetProtectionPointModel, WorksheetProtectionRuleModel } from '../worksheet-permission';
19
19
  export declare class WorkbookPermissionService extends Disposable {
20
20
  private _permissionService;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ILogService, Injector, IPermissionService, IResourceManagerService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
17
- import { RangeProtectionRuleModel } from '../../../model/range-protection-rule.model';
17
+ import { RangeProtectionRuleModel } from '../../../models/range-protection-rule.model';
18
18
  import { WorksheetProtectionPointModel } from './worksheet-permission-point.model';
19
19
  import { WorksheetProtectionRuleModel } from './worksheet-permission-rule.model';
20
20
  export declare const RULE_MODEL_PLUGIN_NAME = "SHEET_WORKSHEET_PROTECTION_PLUGIN";
@@ -13,10 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { IRangeThemeRangeInfo } from '../model/range-theme-model';
17
- import type { RangeThemeStyle } from '../model/range-theme-util';
16
+ import type { IRangeThemeRangeInfo } from '../models/range-theme-model';
17
+ import type { RangeThemeStyle } from '../models/range-theme-util';
18
18
  import { Disposable } from '@univerjs/core';
19
- import { SheetRangeThemeModel } from '../model/range-theme-model';
19
+ import { SheetRangeThemeModel } from '../models/range-theme-model';
20
20
  export declare class SheetRangeThemeService extends Disposable {
21
21
  private _sheetRangeThemeModel;
22
22
  constructor(_sheetRangeThemeModel: SheetRangeThemeModel);