@univerjs/sheets 1.3.1 → 1.4.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 +29 -50
- package/lib/cjs/index.js +1143 -21533
- package/lib/cjs/locale/ar-SA.js +1 -2
- package/lib/cjs/locale/ca-ES.js +1 -2
- package/lib/cjs/locale/de-DE.js +1 -2
- package/lib/cjs/locale/en-US.js +1 -2
- package/lib/cjs/locale/es-ES.js +1 -2
- package/lib/cjs/locale/fa-IR.js +1 -2
- package/lib/cjs/locale/fr-FR.js +1 -2
- package/lib/cjs/locale/id-ID.js +1 -2
- package/lib/cjs/locale/it-IT.js +1 -2
- package/lib/cjs/locale/ja-JP.js +1 -2
- package/lib/cjs/locale/ko-KR.js +1 -2
- package/lib/cjs/locale/pl-PL.js +1 -2
- package/lib/cjs/locale/pt-BR.js +1 -2
- package/lib/cjs/locale/ru-RU.js +1 -2
- package/lib/cjs/locale/sk-SK.js +1 -2
- package/lib/cjs/locale/vi-VN.js +1 -2
- package/lib/cjs/locale/zh-CN.js +1 -2
- package/lib/cjs/locale/zh-HK.js +1 -2
- package/lib/cjs/locale/zh-TW.js +1 -2
- package/lib/cjs/plugin-BbO0p0x9.js +22321 -0
- package/lib/cjs/worker.js +9 -0
- package/lib/es/facade.js +29 -50
- package/lib/es/index.js +719 -21110
- package/lib/es/locale/ar-SA.js +1 -2
- package/lib/es/locale/ca-ES.js +1 -2
- package/lib/es/locale/de-DE.js +1 -2
- package/lib/es/locale/en-US.js +1 -2
- package/lib/es/locale/es-ES.js +1 -2
- package/lib/es/locale/fa-IR.js +1 -2
- package/lib/es/locale/fr-FR.js +1 -2
- package/lib/es/locale/id-ID.js +1 -2
- package/lib/es/locale/it-IT.js +1 -2
- package/lib/es/locale/ja-JP.js +1 -2
- package/lib/es/locale/ko-KR.js +1 -2
- package/lib/es/locale/pl-PL.js +1 -2
- package/lib/es/locale/pt-BR.js +1 -2
- package/lib/es/locale/ru-RU.js +1 -2
- package/lib/es/locale/sk-SK.js +1 -2
- package/lib/es/locale/vi-VN.js +1 -2
- package/lib/es/locale/zh-CN.js +1 -2
- package/lib/es/locale/zh-HK.js +1 -2
- package/lib/es/locale/zh-TW.js +1 -2
- package/lib/es/plugin-ipfwehrC.js +20048 -0
- package/lib/es/worker.js +3 -0
- package/lib/facade.js +29 -50
- package/lib/index.js +719 -21110
- package/lib/locale/ar-SA.js +1 -2
- package/lib/locale/ca-ES.js +1 -2
- package/lib/locale/de-DE.js +1 -2
- package/lib/locale/en-US.js +1 -2
- package/lib/locale/es-ES.js +1 -2
- package/lib/locale/fa-IR.js +1 -2
- package/lib/locale/fr-FR.js +1 -2
- package/lib/locale/id-ID.js +1 -2
- package/lib/locale/it-IT.js +1 -2
- package/lib/locale/ja-JP.js +1 -2
- package/lib/locale/ko-KR.js +1 -2
- package/lib/locale/pl-PL.js +1 -2
- package/lib/locale/pt-BR.js +1 -2
- package/lib/locale/ru-RU.js +1 -2
- package/lib/locale/sk-SK.js +1 -2
- package/lib/locale/vi-VN.js +1 -2
- package/lib/locale/zh-CN.js +1 -2
- package/lib/locale/zh-HK.js +1 -2
- package/lib/locale/zh-TW.js +1 -2
- package/lib/plugin-ipfwehrC.js +20048 -0
- package/lib/types/commands/commands/move-rows-cols.command.d.ts +2 -2
- package/lib/types/commands/commands/reorder-range.command.d.ts +1 -1
- package/lib/types/commands/commands/set-border.command.d.ts +1 -1
- package/lib/types/commands/mutations/numfmt.mutation.d.ts +1 -1
- package/lib/types/controllers/permission/sheet-permission-init.controller.d.ts +3 -2
- package/lib/types/facade/f-range.d.ts +8 -6
- package/lib/types/index.d.ts +1 -1
- package/lib/types/models/range-protection.cache.d.ts +9 -9
- package/lib/types/models/range-theme-model.d.ts +1 -1
- package/lib/types/services/auto-fill/auto-fill.service.d.ts +1 -1
- package/lib/types/services/auto-fill/tools.d.ts +6 -6
- package/lib/types/services/exclusive-range/exclusive-range.service.d.ts +1 -1
- package/lib/types/services/numfmt/type.d.ts +1 -1
- package/lib/types/services/permission/range-permission/range-protection.ref-range.d.ts +3 -3
- package/lib/types/services/ref-range/util.d.ts +15 -15
- package/lib/types/services/selections/ref-selections.service.d.ts +1 -1
- package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +2 -1
- package/lib/types/worker.d.ts +16 -0
- package/lib/umd/index.js +2 -2
- package/lib/worker.js +3 -0
- package/package.json +17 -12
|
@@ -21,7 +21,7 @@ export interface IMoveRowsCommandParams {
|
|
|
21
21
|
fromRange: IRange;
|
|
22
22
|
toRange: IRange;
|
|
23
23
|
}
|
|
24
|
-
export declare const MoveRowsCommandId:
|
|
24
|
+
export declare const MoveRowsCommandId: 'sheet.command.move-rows';
|
|
25
25
|
/**
|
|
26
26
|
* Command to move the selected rows (must currently selected) to the specified row.
|
|
27
27
|
*/
|
|
@@ -33,5 +33,5 @@ export interface IMoveColsCommandParams {
|
|
|
33
33
|
fromRange: IRange;
|
|
34
34
|
toRange: IRange;
|
|
35
35
|
}
|
|
36
|
-
export declare const MoveColsCommandId:
|
|
36
|
+
export declare const MoveColsCommandId: 'sheet.command.move-cols';
|
|
37
37
|
export declare const MoveColsCommand: ICommand<IMoveColsCommandParams>;
|
|
@@ -21,5 +21,5 @@ export interface IReorderRangeCommandParams extends ISheetCommandSharedParams {
|
|
|
21
21
|
[key: number]: number;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
export declare const ReorderRangeCommandId:
|
|
24
|
+
export declare const ReorderRangeCommandId: 'sheet.command.reorder-range';
|
|
25
25
|
export declare const ReorderRangeCommand: ICommand<IReorderRangeCommandParams>;
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { BorderStyleTypes, ICommand, IRange } from '@univerjs/core';
|
|
17
|
-
import type { IBorderInfo } from '../../services/border-style-manager.service';
|
|
18
17
|
import { BorderType } from '@univerjs/core';
|
|
18
|
+
import type { IBorderInfo } from '../../services/border-style-manager.service';
|
|
19
19
|
export interface ISetBorderBasicCommandParams {
|
|
20
20
|
unitId?: string;
|
|
21
21
|
subUnitId?: string;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IAccessor, ICommand, IMutationInfo, IRange } from '@univerjs/core';
|
|
17
|
-
export declare const factorySetNumfmtUndoMutation: (accessor: IAccessor, option: ISetNumfmtMutationParams) => IMutationInfo<
|
|
17
|
+
export declare const factorySetNumfmtUndoMutation: (accessor: IAccessor, option: ISetNumfmtMutationParams) => IMutationInfo<IRemoveNumfmtMutationParams | ISetNumfmtMutationParams>[];
|
|
18
18
|
export interface ISetNumfmtMutationParams {
|
|
19
19
|
values: {
|
|
20
20
|
[id: string]: {
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
import { Disposable, IAuthzIoService, ICommandService, IPermissionService, IUndoRedoService, IUniverInstanceService, UserManagerService } from '@univerjs/core';
|
|
17
17
|
import { RangeProtectionRuleModel } from '../../models/range-protection-rule.model';
|
|
18
18
|
import { WorkbookPermissionService } from '../../services/permission/workbook-permission/workbook-permission.service';
|
|
19
|
-
import { WorksheetProtectionPointModel
|
|
19
|
+
import { WorksheetProtectionPointModel } from '../../services/permission/worksheet-permission/worksheet-permission-point.model';
|
|
20
|
+
import { WorksheetProtectionRuleModel } from '../../services/permission/worksheet-permission/worksheet-permission-rule.model';
|
|
20
21
|
export declare class SheetPermissionInitController extends Disposable {
|
|
21
22
|
private readonly _univerInstanceService;
|
|
22
23
|
private _permissionService;
|
|
@@ -40,5 +41,5 @@ export declare class SheetPermissionInitController extends Disposable {
|
|
|
40
41
|
private _initWorksheetPermissionFromSnapshot;
|
|
41
42
|
private _initUserChange;
|
|
42
43
|
refreshPermission(unitId: string, permissionId: string): void;
|
|
43
|
-
private
|
|
44
|
+
private _clearHistoryOnProtectionApplied;
|
|
44
45
|
}
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { AbsoluteRefType, BorderStyleTypes, BorderType, CellValue, CustomData, ICellData, IDocumentData, IObjectMatrixPrimitiveType, IRange, IStyleData, Nullable, Workbook, Worksheet } from '@univerjs/core';
|
|
17
17
|
import type { AUTO_FILL_APPLY_TYPE, IMergeCellsUtilOptions, SplitDelimiterEnum } from '@univerjs/sheets';
|
|
18
|
-
import type { IFacadeClearOptions } from './f-worksheet';
|
|
19
|
-
import type { FHorizontalAlignment, FVerticalAlignment } from './utils';
|
|
20
18
|
import { Dimension, ICommandService, ILogService, Injector, RichTextValue, TextStyleValue, WrapStrategy } from '@univerjs/core';
|
|
21
19
|
import { FBaseInitialable } from '@univerjs/core/facade';
|
|
22
20
|
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
21
|
+
import type { IFacadeClearOptions } from './f-worksheet';
|
|
22
|
+
import type { FHorizontalAlignment, FVerticalAlignment } from './utils';
|
|
23
23
|
import { FRangePermission } from './permission/f-range-permission';
|
|
24
24
|
export type FontLine = 'none' | 'underline' | 'line-through';
|
|
25
25
|
export type FontStyle = 'normal' | 'italic';
|
|
@@ -824,10 +824,12 @@ export declare class FRange extends FBaseInitialable {
|
|
|
824
824
|
* - `ICellData`: updates cell-data fields directly, for explicit control over `v` (value),
|
|
825
825
|
* `f` (formula), `p` (rich text), `t` (value type), and `s` (style). The object bypasses the
|
|
826
826
|
* formula and formatted-number parsing above: `{ v: '=SUM(A1:A2)' }` does not set a formula;
|
|
827
|
-
* use `{ f: '=SUM(A1:A2)', v: null, p: null }` instead.
|
|
828
|
-
*
|
|
829
|
-
*
|
|
830
|
-
*
|
|
827
|
+
* use `{ f: '=SUM(A1:A2)', v: null, p: null }` instead. Writing `v` or `p` without `f` and
|
|
828
|
+
* `si` replaces the target formula, as writing a scalar value does, and writing `f` without
|
|
829
|
+
* `si` disassociates the cell from its previous shared formula. Rich text is still not
|
|
830
|
+
* cleared by a value write, so pass `p: null` when replacing rich text with `v`. Use
|
|
831
|
+
* `v: null` to clear the stored value. Supplied style properties are merged into the existing
|
|
832
|
+
* style; `s: null` clears the style.
|
|
831
833
|
*
|
|
832
834
|
* In both modes, the stored value is converted according to its cell type. Unless an `ICellData`
|
|
833
835
|
* input supplies `t`, the type is inferred from the value, number format, and existing cell type.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -301,7 +301,7 @@ export { adjustRangeOnMutation, getSeparateEffectedRangesOnCommand, handleBaseIn
|
|
|
301
301
|
export type { MutationsAffectRange } from './services/ref-range/util';
|
|
302
302
|
export * from './services/selections';
|
|
303
303
|
export { getNextPrimaryCell } from './services/selections/move-active-cell-util';
|
|
304
|
-
export { InterceptCellContentPriority, INTERCEPTOR_POINT } from './services/sheet-interceptor/interceptor-const';
|
|
304
|
+
export { InterceptCellContentPriority, INTERCEPTOR_POINT, RangeThemeInterceptorId } from './services/sheet-interceptor/interceptor-const';
|
|
305
305
|
export { AFTER_CELL_EDIT, BEFORE_CELL_EDIT, SheetInterceptorService, VALIDATE_CELL, } from './services/sheet-interceptor/sheet-interceptor.service';
|
|
306
306
|
export type { IAutoHeightContext } from './services/sheet-interceptor/sheet-interceptor.service';
|
|
307
307
|
export type { ISheetLocation, ISheetLocationBase, ISheetRowLocation, } from './services/sheet-interceptor/utils/interceptor';
|
|
@@ -40,16 +40,16 @@ export declare class RangeProtectionCache extends Disposable {
|
|
|
40
40
|
getRowPermissionInfo(unitId: string, subUnitId: string, row: number, types: UnitAction[]): boolean;
|
|
41
41
|
getColPermissionInfo(unitId: string, subUnitId: string, col: number, types: UnitAction[]): boolean;
|
|
42
42
|
private _initUpdateRowColInfoCache;
|
|
43
|
-
getCellInfo(unitId: string, subUnitId: string, row: number, col: number):
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
getCellInfo(unitId: string, subUnitId: string, row: number, col: number): {
|
|
44
|
+
[UnitAction.Edit]: boolean;
|
|
45
|
+
[UnitAction.View]: boolean;
|
|
46
|
+
[UnitAction.ManageCollaborator]: boolean;
|
|
47
|
+
[UnitAction.Delete]: boolean;
|
|
47
48
|
ruleId: string;
|
|
48
49
|
ranges: IRange[];
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} | undefined;
|
|
50
|
+
} | (Partial<Record<UnitAction, boolean>> & {
|
|
51
|
+
ruleId?: string;
|
|
52
|
+
ranges?: IRange[];
|
|
53
|
+
}) | undefined;
|
|
54
54
|
deleteUnit(unitId: string): void;
|
|
55
55
|
}
|
|
@@ -48,7 +48,7 @@ export declare class SheetRangeThemeModel extends Disposable {
|
|
|
48
48
|
private _rowVisibleFuncSet;
|
|
49
49
|
private _rangeThemeMapChanged$;
|
|
50
50
|
rangeThemeMapChange$: import("rxjs").Observable<{
|
|
51
|
-
type:
|
|
51
|
+
type: 'add' | 'remove';
|
|
52
52
|
styleName: string;
|
|
53
53
|
}>;
|
|
54
54
|
constructor(_sheetInterceptorService: SheetInterceptorService, _resourceManagerService: IResourceManagerService, _univerInstanceService: IUniverInstanceService, _sheetRowFilteredService?: ISheetRowFilteredService | undefined);
|
|
@@ -86,4 +86,4 @@ export declare class AutoFillService extends Disposable implements IAutoFillServ
|
|
|
86
86
|
fillData(applyType: AUTO_FILL_APPLY_TYPE): boolean;
|
|
87
87
|
private _getAutoHeightUndoRedos;
|
|
88
88
|
}
|
|
89
|
-
export declare const IAutoFillService: import("@
|
|
89
|
+
export declare const IAutoFillService: import("@univerjs/core").IdentifierDecorator<IAutoFillService>;
|
|
@@ -40,17 +40,17 @@ declare function getLenS(indexArr: any[], rsd: number): number;
|
|
|
40
40
|
declare function isEqualDiff(arr: number[]): boolean;
|
|
41
41
|
declare function getDataIndex(csLen: number, asLen: number, indexArr: number[]): IAutoFillCopyDataInTypeIndexInfo;
|
|
42
42
|
declare function fillCopy(data: Array<Nullable<ICellData>>, len: number): {
|
|
43
|
-
p: import("@univerjs/core").IDocumentData | null;
|
|
44
|
-
s: string | import("@univerjs/core").IStyleData | null;
|
|
45
|
-
v: import("@univerjs/core").CellValue | null;
|
|
46
|
-
t: CellValueType | null;
|
|
47
|
-
f: string | null;
|
|
48
43
|
ft?: Nullable<import("@univerjs/core").FormulaType>;
|
|
49
44
|
fd?: Nullable<import("@univerjs/core").BooleanNumber>;
|
|
50
45
|
ref?: Nullable<string>;
|
|
51
46
|
xf?: Nullable<string>;
|
|
52
|
-
si: string | null;
|
|
53
47
|
custom?: import("@univerjs/core").CustomData;
|
|
48
|
+
v: import("@univerjs/core").CellValue | null;
|
|
49
|
+
s: string | import("@univerjs/core").IStyleData | null;
|
|
50
|
+
p: import("@univerjs/core").IDocumentData | null;
|
|
51
|
+
f: string | null;
|
|
52
|
+
si: string | null;
|
|
53
|
+
t: CellValueType | null;
|
|
54
54
|
}[];
|
|
55
55
|
declare function fillCopyStyles(data: Array<Nullable<ICellData>>, len: number): {
|
|
56
56
|
s: Nullable<string | import("@univerjs/core").IStyleData>;
|
|
@@ -64,7 +64,7 @@ export interface IExclusiveRangeService {
|
|
|
64
64
|
*/
|
|
65
65
|
getInterestGroupId(selections: ISelectionWithStyle[]): string[];
|
|
66
66
|
}
|
|
67
|
-
export declare const IExclusiveRangeService: import("@
|
|
67
|
+
export declare const IExclusiveRangeService: import("@univerjs/core").IdentifierDecorator<IExclusiveRangeService>;
|
|
68
68
|
export declare class ExclusiveRangeService extends Disposable implements IExclusiveRangeService {
|
|
69
69
|
/**
|
|
70
70
|
* Exclusive range data structure is as follows: unitId -> sheetId -> feature -> range
|
|
@@ -25,7 +25,7 @@ export interface INumfmtItemWithCache {
|
|
|
25
25
|
};
|
|
26
26
|
pattern: string;
|
|
27
27
|
}
|
|
28
|
-
export declare const INumfmtService: import("@
|
|
28
|
+
export declare const INumfmtService: import("@univerjs/core").IdentifierDecorator<INumfmtService>;
|
|
29
29
|
export interface INumfmtService {
|
|
30
30
|
getValue(unitId: string, subUnitId: string, row: number, col: number, model?: ObjectMatrix<INumfmtItem>): Nullable<INumfmtItemWithCache>;
|
|
31
31
|
setValues(unitId: string, subUnitId: string, values: Array<{
|
|
@@ -37,6 +37,9 @@ export declare class RangeProtectionRefRangeService extends Disposable {
|
|
|
37
37
|
constructor(_selectionProtectionRuleModel: RangeProtectionRuleModel, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _refRangeService: RefRangeService, _selectionProtectionRenderModel: RangeProtectionRenderModel, _rangeProtectionCache: RangeProtectionCache, _sheetInterceptorService: SheetInterceptorService, _rangeProtectionRuleModel: RangeProtectionRuleModel);
|
|
38
38
|
private _onRefRangeChange;
|
|
39
39
|
refRangeHandle(config: EffectRefRangeParams, unitId: string, subUnitId: string): {
|
|
40
|
+
redos: IMutationInfo<IAddRangeProtectionMutationParams | IDeleteRangeProtectionMutationParams | ISetRangeProtectionMutationParams>[];
|
|
41
|
+
undos: IMutationInfo<IAddRangeProtectionMutationParams | IDeleteRangeProtectionMutationParams | ISetRangeProtectionMutationParams>[];
|
|
42
|
+
} | {
|
|
40
43
|
redos: {
|
|
41
44
|
id: string;
|
|
42
45
|
params: ISetRangeProtectionMutationParams;
|
|
@@ -45,9 +48,6 @@ export declare class RangeProtectionRefRangeService extends Disposable {
|
|
|
45
48
|
id: string;
|
|
46
49
|
params: ISetRangeProtectionMutationParams;
|
|
47
50
|
}[];
|
|
48
|
-
} | {
|
|
49
|
-
redos: IMutationInfo<IDeleteRangeProtectionMutationParams | IAddRangeProtectionMutationParams | ISetRangeProtectionMutationParams>[];
|
|
50
|
-
undos: IMutationInfo<IDeleteRangeProtectionMutationParams | IAddRangeProtectionMutationParams | ISetRangeProtectionMutationParams>[];
|
|
51
51
|
};
|
|
52
52
|
private _getRefRangeMutationsByDeleteCols;
|
|
53
53
|
private _getRefRangeMutationsByDeleteRows;
|
|
@@ -24,26 +24,26 @@ import type { SheetsSelectionsService } from '../selections/selection.service';
|
|
|
24
24
|
import type { EffectRefRangeParams, IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand, IReorderRangeCommand } from './type';
|
|
25
25
|
import { RANGE_TYPE } from '@univerjs/core';
|
|
26
26
|
export declare const handleRangeTypeInput: (range: IRange) => {
|
|
27
|
-
rangeType?: RANGE_TYPE;
|
|
28
|
-
startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
29
|
-
endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
30
|
-
startRow: number;
|
|
31
|
-
endRow: number;
|
|
32
27
|
unitId?: string;
|
|
33
28
|
sheetId?: string;
|
|
29
|
+
startRow: number;
|
|
30
|
+
endRow: number;
|
|
34
31
|
startColumn: number;
|
|
35
32
|
endColumn: number;
|
|
36
|
-
};
|
|
37
|
-
export declare const handleRangeTypeOutput: (range: IRange, maxRow: number, maxCol: number) => {
|
|
38
33
|
rangeType?: RANGE_TYPE;
|
|
39
34
|
startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
40
35
|
endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
};
|
|
37
|
+
export declare const handleRangeTypeOutput: (range: IRange, maxRow: number, maxCol: number) => {
|
|
43
38
|
unitId?: string;
|
|
44
39
|
sheetId?: string;
|
|
40
|
+
startRow: number;
|
|
41
|
+
endRow: number;
|
|
45
42
|
startColumn: number;
|
|
46
43
|
endColumn: number;
|
|
44
|
+
rangeType?: RANGE_TYPE;
|
|
45
|
+
startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
46
|
+
endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
47
47
|
};
|
|
48
48
|
export declare const rotateRange: (range: IRange) => IRange;
|
|
49
49
|
interface ILine {
|
|
@@ -95,15 +95,15 @@ export declare const handleDeleteRangeMoveLeftCommon: (param: IDeleteRangeMoveLe
|
|
|
95
95
|
export declare const handleDeleteRangeMoveUp: (param: IDeleteRangeMoveUpCommand, targetRange: IRange) => IOperator[];
|
|
96
96
|
export declare const handleDeleteRangeMoveUpCommon: (param: IDeleteRangeMoveUpCommand, targetRange: IRange) => IRange[];
|
|
97
97
|
export declare const handleRemoveRowCommon: (param: IRemoveRowColCommandInterceptParams, targetRange: IRange) => {
|
|
98
|
-
startRow: number;
|
|
99
|
-
endRow: number;
|
|
100
|
-
rangeType?: RANGE_TYPE;
|
|
101
|
-
startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
102
|
-
endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
103
98
|
unitId?: string;
|
|
104
99
|
sheetId?: string;
|
|
105
100
|
startColumn: number;
|
|
106
101
|
endColumn: number;
|
|
102
|
+
rangeType?: RANGE_TYPE;
|
|
103
|
+
startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
104
|
+
endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
105
|
+
startRow: number;
|
|
106
|
+
endRow: number;
|
|
107
107
|
}[];
|
|
108
108
|
export declare const handleInsertRowCommon: (info: ICommandInfo<IInsertRowCommandParams>, targetRange: IRange) => IRange[];
|
|
109
109
|
export declare const handleInsertColCommon: (info: ICommandInfo<IInsertColCommandParams>, targetRange: IRange) => IRange[];
|
|
@@ -116,7 +116,7 @@ export type MutationsAffectRange = ISheetCommandSharedParams | IRemoveSheetMutat
|
|
|
116
116
|
export declare const handleCommonDefaultRangeChangeWithEffectRefCommands: (range: IRange, commandInfo: ICommandInfo) => IRange[];
|
|
117
117
|
export declare const handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests: (range: IRange, commandInfo: ICommandInfo, deps: {
|
|
118
118
|
selectionManagerService: SheetsSelectionsService;
|
|
119
|
-
}) => IRange | IRange
|
|
119
|
+
}) => IRange[] | IRange;
|
|
120
120
|
/**
|
|
121
121
|
* This function should work as a pure function.
|
|
122
122
|
*
|
|
@@ -21,7 +21,7 @@ import { SheetsSelectionsService } from './selection.service';
|
|
|
21
21
|
*
|
|
22
22
|
* Its data should be cleared by the caller quit editing formula and reconstructed when user starts editing.
|
|
23
23
|
*/
|
|
24
|
-
export declare const IRefSelectionsService: import("@
|
|
24
|
+
export declare const IRefSelectionsService: import("@univerjs/core").IdentifierDecorator<SheetsSelectionsService>;
|
|
25
25
|
/**
|
|
26
26
|
* RefSelectionsService treats `selectionMoveStart$` `selectionMoving$` and `selectionMoveEnd$` differently
|
|
27
27
|
* than `SheetsSelectionsService`. Because ref selections can be in different workbooks.
|
|
@@ -24,7 +24,8 @@ export declare const INTERCEPTOR_POINT: {
|
|
|
24
24
|
export declare enum InterceptCellContentPriority {
|
|
25
25
|
DATA_VALIDATION = 9,
|
|
26
26
|
NUMFMT = 10,
|
|
27
|
-
CELL_IMAGE = 11
|
|
27
|
+
CELL_IMAGE = 11,
|
|
28
|
+
TABLE_STYLE = 12
|
|
28
29
|
}
|
|
29
30
|
export declare const RangeThemeInterceptorId = "sheet.interceptor.range-theme-id";
|
|
30
31
|
export declare const IgnoreRangeThemeInterceptorKey = "sheet.interceptor.ignore-range-theme";
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export { UniverSheetsPlugin } from './plugin';
|