@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.
- package/lib/cjs/facade.js +198 -263
- package/lib/cjs/index.js +169 -124
- package/lib/es/facade.js +199 -258
- package/lib/es/index.js +372 -321
- package/lib/facade.js +199 -258
- package/lib/index.js +372 -321
- package/lib/types/commands/commands/add-range-protection.command.d.ts +1 -1
- package/lib/types/commands/commands/delete-range-protection.command.d.ts +1 -1
- package/lib/types/commands/commands/register-range-theme.command.d.ts +1 -1
- package/lib/types/commands/commands/set-protection.command.d.ts +1 -1
- package/lib/types/commands/mutations/add-range-protection.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/add-range-theme.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/register-range-theme.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-range-protection.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-range-theme.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-range-values.mutation.d.ts +4 -3
- package/lib/types/controllers/permission/sheet-permission-check.controller.d.ts +1 -1
- package/lib/types/controllers/permission/sheet-permission-init.controller.d.ts +1 -1
- package/lib/types/controllers/permission/sheet-permission-view-model.controller.d.ts +1 -1
- package/lib/types/controllers/zebar-crossing.controller.d.ts +1 -1
- package/lib/types/facade/{f-sheet-hooks.d.ts → const.d.ts} +1 -9
- package/lib/types/facade/f-range.d.ts +3 -2
- package/lib/types/facade/f-univer.d.ts +33 -64
- package/lib/types/facade/f-workbook.d.ts +3 -45
- package/lib/types/facade/index.d.ts +0 -1
- package/lib/types/index.d.ts +186 -106
- package/lib/types/locale/types.d.ts +18 -0
- package/lib/types/services/permission/range-permission/range-protection.ref-range.d.ts +3 -3
- package/lib/types/services/permission/range-permission/range-protection.service.d.ts +2 -2
- package/lib/types/services/permission/type.d.ts +1 -1
- package/lib/types/services/permission/workbook-permission/workbook-permission.service.d.ts +1 -1
- package/lib/types/services/permission/worksheet-permission/worksheet-permission.service.d.ts +1 -1
- package/lib/types/services/range-theme.service.d.ts +3 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
- /package/lib/types/{model → models}/range-protection-render.model.d.ts +0 -0
- /package/lib/types/{model → models}/range-protection-rule.model.d.ts +0 -0
- /package/lib/types/{model → models}/range-protection.cache.d.ts +0 -0
- /package/lib/types/{model → models}/range-theme-model.d.ts +0 -0
- /package/lib/types/{model → models}/range-theme-util.d.ts +0 -0
- /package/lib/types/{model → models}/range-themes/build-in-theme.factory.d.ts +0 -0
- /package/lib/types/{model → models}/range-themes/default.d.ts +0 -0
- /package/lib/types/{model → models}/zebra-crossing-cache.d.ts +0 -0
package/lib/types/index.d.ts
CHANGED
|
@@ -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,
|
|
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,
|
|
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
|
|
28
|
-
export
|
|
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
|
|
32
|
-
export
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
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
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
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 {
|
|
45
|
-
export
|
|
46
|
-
export {
|
|
47
|
-
export
|
|
48
|
-
export {
|
|
49
|
-
export
|
|
50
|
-
export {
|
|
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 {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export
|
|
58
|
-
export {
|
|
59
|
-
export
|
|
60
|
-
export {
|
|
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 {
|
|
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 {
|
|
67
|
-
export
|
|
68
|
-
export {
|
|
69
|
-
export
|
|
70
|
-
export {
|
|
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 {
|
|
73
|
-
export
|
|
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,
|
|
87
|
-
export type {
|
|
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 {
|
|
93
|
-
export
|
|
94
|
-
export {
|
|
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,
|
|
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
|
|
107
|
-
export {
|
|
108
|
-
export {
|
|
109
|
-
export {
|
|
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 {
|
|
117
|
-
export
|
|
118
|
-
export {
|
|
119
|
-
export
|
|
120
|
-
export {
|
|
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 {
|
|
127
|
-
export
|
|
128
|
-
export {
|
|
129
|
-
export
|
|
130
|
-
export {
|
|
131
|
-
export {
|
|
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 {
|
|
135
|
-
export {
|
|
136
|
-
export {
|
|
137
|
-
export
|
|
138
|
-
export {
|
|
139
|
-
export
|
|
140
|
-
export {
|
|
141
|
-
export
|
|
142
|
-
export {
|
|
143
|
-
export
|
|
144
|
-
export {
|
|
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 {
|
|
151
|
-
export
|
|
152
|
-
export {
|
|
153
|
-
export {
|
|
154
|
-
export {
|
|
155
|
-
export
|
|
156
|
-
export {
|
|
157
|
-
export {
|
|
158
|
-
export {
|
|
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,
|
|
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 {
|
|
176
|
-
export
|
|
177
|
-
export {
|
|
178
|
-
export {
|
|
179
|
-
export
|
|
180
|
-
export {
|
|
181
|
-
export type {
|
|
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 {
|
|
187
|
-
export {
|
|
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
|
|
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,
|
|
223
|
-
export type {
|
|
224
|
-
export {
|
|
225
|
-
export {
|
|
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 '../../../
|
|
23
|
-
import { RangeProtectionRuleModel } from '../../../
|
|
24
|
-
import { RangeProtectionCache } from '../../../
|
|
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 '../../../
|
|
18
|
-
import { RangeProtectionCache } from '../../../
|
|
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 '../../
|
|
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 '../../../
|
|
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;
|
package/lib/types/services/permission/worksheet-permission/worksheet-permission.service.d.ts
CHANGED
|
@@ -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 '../../../
|
|
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 '../
|
|
17
|
-
import type { RangeThemeStyle } from '../
|
|
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 '../
|
|
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);
|