New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@univerjs/sheets

Package Overview
Dependencies
Maintainers
0
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@univerjs/sheets - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

1

lib/types/basics/cell-style.d.ts
import { ICellData, IStyleData, Nullable, Styles } from '@univerjs/core';
export declare function handleStyle(styles: Styles, oldVal: ICellData, newVal: ICellData): void;

@@ -4,0 +3,0 @@ /**

import { CellValue, ICellData, Nullable, Styles, CellValueType } from '@univerjs/core';
/**

@@ -4,0 +3,0 @@ * Get cell value type by style, new value and old value.

import { ICellData, Nullable, CellValueType } from '@univerjs/core';
/**

@@ -4,0 +3,0 @@ * Get cell value from new value by type

import { IUniverSheetsConfig } from '../interfaces/spreadsheet-config';
export declare const DEFAULT_SPREADSHEET_PLUGIN_DATA: IUniverSheetsConfig;
import { BooleanNumber } from '@univerjs/core';
/**

@@ -4,0 +3,0 @@ * Column ruler data type

import { Dimension, ICellData, IColumnData, IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType, IRange, IRowData, IWorksheetData, Nullable } from '@univerjs/core';
/** Params of `RemoveSheetMutation` */

@@ -4,0 +3,0 @@ export interface IRemoveSheetMutationParams {

import { IRange, IRangeCellData } from '@univerjs/core';
export interface ISelectionConfig {

@@ -4,0 +3,0 @@ selection: IRange;

import { ISelectionsConfig } from './selection-config';
export interface IUniverSheetsConfig {
selections: ISelectionsConfig;
}
import { IRange, ObjectMatrix } from '@univerjs/core';
export declare const createTopMatrixFromRanges: (ranges: IRange[]) => ObjectMatrix<number>;

@@ -4,0 +3,0 @@ export declare const createTopMatrixFromMatrix: (matrix: ObjectMatrix<1>) => ObjectMatrix<number>;

import { IRange, ISelection, ISelectionCellWithMergeInfo, ISelectionWithCoord, Nullable, ThemeService } from '@univerjs/core';
export declare const SELECTION_CONTROL_BORDER_BUFFER_WIDTH = 1.5;

@@ -4,0 +3,0 @@ export declare const SELECTION_CONTROL_BORDER_BUFFER_COLOR = "rgba(255, 255, 255, 0.01)";

import { Worksheet } from '@univerjs/core';
export declare function rowHeightByHeader(worksheet: Worksheet): number;
export declare function columnWidthByHeader(worksheet: Worksheet): number;
import { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, UniverInstanceService, Workbook, Worksheet } from '@univerjs/core';
import { IExpandParams } from '../commands/commands/utils/selection-utils';
export declare const groupByKey: <T = Record<string, unknown>>(arr: T[], key: string, blankKey?: string) => Record<string, T[]>;

@@ -5,0 +4,0 @@ export declare const createUniqueKey: (initValue?: number) => () => number;

import { Dependency, IWorkbookData, Workbook, Injector, Univer } from '@univerjs/core';
export interface ITestBed {

@@ -4,0 +3,0 @@ univer: Univer;

import { ICommand } from '@univerjs/core';
import { IRangeProtectionRule } from '../../model/range-protection-rule.model';
export interface IAddRangeProtectionCommandParams {

@@ -5,0 +4,0 @@ permissionId: string;

import { ICommand, IRange, Dimension } from '@univerjs/core';
export interface IAddMergeCommandParams {

@@ -4,0 +3,0 @@ value?: Dimension.ROWS | Dimension.COLUMNS;

import { ICommand } from '@univerjs/core';
/**

@@ -4,0 +3,0 @@ * The command to clear all in current selected ranges.

import { ICommand } from '@univerjs/core';
/**

@@ -4,0 +3,0 @@ * The command to clear content in current selected ranges.

import { ICommand } from '@univerjs/core';
/**

@@ -4,0 +3,0 @@ * The command to clear content in current selected ranges.

import { ICommand, Workbook, LocaleService } from '@univerjs/core';
export interface ICopySheetCommandParams {

@@ -4,0 +3,0 @@ unitId?: string;

import { ICommand, IRange } from '@univerjs/core';
export interface IDeleteRangeMoveLeftCommandParams {

@@ -4,0 +3,0 @@ range: IRange;

import { ICommand, IRange } from '@univerjs/core';
export interface IDeleteRangeMoveUpCommandParams {

@@ -4,0 +3,0 @@ range: IRange;

import { ICommand } from '@univerjs/core';
import { IRangeProtectionRule } from '../../model/range-protection-rule.model';
export interface IDeleteRangeProtectionCommandParams {

@@ -5,0 +4,0 @@ unitId: string;

import { ICommand } from '@univerjs/core';
/**

@@ -4,0 +3,0 @@ * The command to insert new defined name

import { ICommand, IRange } from '@univerjs/core';
export interface InsertRangeMoveDownCommandParams {

@@ -4,0 +3,0 @@ range: IRange;

import { ICommand, IRange } from '@univerjs/core';
export interface InsertRangeMoveRightCommandParams {

@@ -4,0 +3,0 @@ range: IRange;

import { ICellData, ICommand, IObjectMatrixPrimitiveType, IRange, Direction } from '@univerjs/core';
export interface IInsertRowCommandParams {

@@ -4,0 +3,0 @@ unitId: string;

import { ICommand, IWorksheetData } from '@univerjs/core';
export interface IInsertSheetCommandParams {

@@ -4,0 +3,0 @@ unitId?: string;

import { IAccessor, ICommand, IMutationInfo, IRange } from '@univerjs/core';
export interface IMoveRangeCommandParams {

@@ -4,0 +3,0 @@ toRange: IRange;

import { ICommand, IRange } from '@univerjs/core';
export interface IMoveRowsCommandParams {

@@ -4,0 +3,0 @@ fromRange: IRange;

import { ICommand } from '@univerjs/core';
/**

@@ -4,0 +3,0 @@ * The command to remove new defined name

import { ICommand, IRange } from '@univerjs/core';
export interface IRemoveRowColCommandParams {

@@ -4,0 +3,0 @@ range: IRange;

import { ICommand } from '@univerjs/core';
export interface IRemoveSheetCommandParams {

@@ -4,0 +3,0 @@ unitId?: string;

import { ICommand } from '@univerjs/core';
export declare const RemoveWorksheetMergeCommand: ICommand;
import { ICommand, IRange } from '@univerjs/core';
import { ISheetCommandSharedParams } from '../utils/interface';
export interface IReorderRangeCommandParams extends ISheetCommandSharedParams {

@@ -5,0 +4,0 @@ range: IRange;

import { BorderStyleTypes, ICommand, BorderType } from '@univerjs/core';
import { IBorderInfo } from '../../services/border-style-manager.service';
export interface ISetBorderBasicCommandParams {

@@ -5,0 +4,0 @@ unitId?: string;

import { ICommand, IRange, Worksheet } from '@univerjs/core';
export interface ISetSpecificColsVisibleCommandParams {

@@ -4,0 +3,0 @@ unitId: string;

import { ICommand } from '@univerjs/core';
import { ISetDefinedNameMutationParam } from '@univerjs/engine-formula';
export interface ISetDefinedNameCommandParams {

@@ -5,0 +4,0 @@ unitId: string;

import { ICommand } from '@univerjs/core';
export declare const SetFrozenCancelCommand: ICommand;
import { ICommand } from '@univerjs/core';
export declare const SetFrozenCommand: ICommand;
import { ICommand, BooleanNumber } from '@univerjs/core';
export interface ISetHideGridlinesCommandParams {

@@ -4,0 +3,0 @@ hideGridlines?: BooleanNumber;

import { ICommand } from '@univerjs/core';
import { IRangeProtectionRule } from '../../model/range-protection-rule.model';
export interface ISetRangeProtectionCommandParams {

@@ -5,0 +4,0 @@ permissionId: string;

import { ICellData, ICommand, IObjectMatrixPrimitiveType, IRange } from '@univerjs/core';
import { ISheetCommandSharedParams } from '../utils/interface';
export interface ISetRangeValuesCommandParams extends Partial<ISheetCommandSharedParams> {

@@ -5,0 +4,0 @@ range?: IRange;

import { ICommand, IRange, Worksheet } from '@univerjs/core';
export interface ISetSpecificRowsVisibleCommandParams {

@@ -4,0 +3,0 @@ unitId: string;

import { HorizontalAlign, ICommand, IRange, IStyleData, VerticalAlign, WrapStrategy } from '@univerjs/core';
export interface IStyleTypeValue<T> {

@@ -4,0 +3,0 @@ type: keyof IStyleData;

import { ICommand } from '@univerjs/core';
export interface ISetTabColorCommandParams {

@@ -4,0 +3,0 @@ value: string;

import { ICommand } from '@univerjs/core';
export interface ISetWorkbookNameCommandParams {

@@ -4,0 +3,0 @@ name: string;

import { ICommand } from '@univerjs/core';
export interface ISetWorksheetActivateCommandParams {

@@ -4,0 +3,0 @@ unitId?: string;

import { ICommand } from '@univerjs/core';
export interface IDeltaColumnWidthCommandParams {

@@ -4,0 +3,0 @@ anchorCol: number;

import { ICommand } from '@univerjs/core';
export interface ISetWorksheetHiddenCommandParams {

@@ -4,0 +3,0 @@ subUnitId?: string;

import { ICommand } from '@univerjs/core';
export interface ISetWorksheetNameCommandParams {

@@ -4,0 +3,0 @@ name: string;

import { ICommand } from '@univerjs/core';
export interface ISetWorksheetOrderCommandParams {

@@ -4,0 +3,0 @@ order: number;

import { ICommand } from '@univerjs/core';
import { IWorksheetProtectionPointRule } from '../../services/permission/type';
export interface ISetWorksheetPermissionPointsCommandParams {

@@ -5,0 +4,0 @@ rule: IWorksheetProtectionPointRule;

import { ICommand, BooleanNumber } from '@univerjs/core';
export interface ISetWorksheetRightToLeftCommandParams {

@@ -4,0 +3,0 @@ rightToLeft?: BooleanNumber;

import { ICommand } from '@univerjs/core';
export interface IDeltaRowHeightCommand {

@@ -4,0 +3,0 @@ anchorRow: number;

import { ICommand } from '@univerjs/core';
export interface ISetWorksheetShowCommandParams {

@@ -4,0 +3,0 @@ unitId: string;

import { Worksheet } from '@univerjs/core';
/**

@@ -4,0 +3,0 @@ * @param row after this row

import { IRange, ISelectionCell, Nullable, Workbook, Worksheet } from '@univerjs/core';
import { ISetSelectionsOperationParams } from '../../operations/selection.operation';
import { ISelectionWithStyle } from '../../../basics/selection';
export interface IExpandParams {

@@ -6,0 +5,0 @@ left?: boolean;

import { IUniverInstanceService, Nullable, Workbook, Worksheet } from '@univerjs/core';
export declare function getSheetCommandTargetWorkbook(univerInstanceService: IUniverInstanceService, params: {

@@ -4,0 +3,0 @@ unitId?: string;

import { Dependency, IWorkbookData, Workbook, Injector, Univer } from '@univerjs/core';
export interface ITestBed {

@@ -4,0 +3,0 @@ univer: Univer;

import { IMutation, IMutationInfo } from '@univerjs/core';
import { IRangeProtectionRule } from '../../model/range-protection-rule.model';
import { IDeleteSelectionProtectionMutationParams } from './delete-range-protection.mutation';
export interface IAddRangeProtectionMutationParams {

@@ -6,0 +5,0 @@ rules: IRangeProtectionRule[];

import { IAccessor, IMutation } from '@univerjs/core';
import { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
export declare const AddMergeUndoMutationFactory: (accessor: IAccessor, params: IAddWorksheetMergeMutationParams) => IRemoveWorksheetMergeMutationParams;
export declare const AddWorksheetMergeMutation: IMutation<IAddWorksheetMergeMutationParams>;
import { IMutation } from '@univerjs/core';
import { IWorksheetProtectionRule } from '../../services/permission/type';
export interface IAddWorksheetProtectionParams {

@@ -5,0 +4,0 @@ unitId: string;

import { IAccessor, IMutation, IMutationInfo } from '@univerjs/core';
import { IAddRangeProtectionMutationParams } from './add-range-protection.mutation';
export interface IDeleteSelectionProtectionMutationParams {

@@ -5,0 +4,0 @@ ruleIds: string[];

import { IMutation } from '@univerjs/core';
export interface IDeleteWorksheetProtectionParams {

@@ -4,0 +3,0 @@ unitId: string;

import { IMutation } from '@univerjs/core';
export declare const EmptyMutation: IMutation<{}, boolean>;
import { IAccessor, IMutation } from '@univerjs/core';
import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
export declare const InsertRowMutationUndoFactory: (accessor: IAccessor, params: IInsertRowMutationParams) => IRemoveRowsMutationParams;

@@ -5,0 +4,0 @@ export declare const InsertRowMutation: IMutation<IInsertRowMutationParams>;

import { IAccessor, IMutation } from '@univerjs/core';
import { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
/**

@@ -5,0 +4,0 @@ * Generate undo mutation of a `InsertSheetMutation`

5

lib/types/commands/mutations/move-range.mutation.d.ts

@@ -1,5 +0,6 @@

import { ICellData, IMutation, IObjectMatrixPrimitiveType, Nullable } from '@univerjs/core';
import { ICellData, IMutation, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
export interface IMoveRangeMutationParams {
unitId: string;
fromRange: IRange;
toRange: IRange;
from: {

@@ -6,0 +7,0 @@ subUnitId: string;

import { IAccessor, IMutation, IRange } from '@univerjs/core';
export interface IMoveRowsMutationParams {

@@ -4,0 +3,0 @@ unitId: string;

import { IAccessor, ICommand, IMutationInfo, IRange } from '@univerjs/core';
export declare const factorySetNumfmtUndoMutation: (accessor: IAccessor, option: ISetNumfmtMutationParams) => IMutationInfo<ISetNumfmtMutationParams | IRemoveNumfmtMutationParams>[];

@@ -4,0 +3,0 @@ export interface ISetNumfmtMutationParams {

import { IAccessor, IMutation, Worksheet } from '@univerjs/core';
import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
export declare const RemoveRowsUndoMutationFactory: (params: IRemoveRowsMutationParams, worksheet: Worksheet) => IInsertRowMutationParams;

@@ -5,0 +4,0 @@ export declare const RemoveRowMutation: IMutation<IRemoveRowsMutationParams>;

import { IAccessor, IMutation } from '@univerjs/core';
import { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
/**

@@ -5,0 +4,0 @@ * Generate undo mutation of a `RemoveSheetMutation`

import { IAccessor, IMutation } from '@univerjs/core';
import { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
export declare const RemoveMergeUndoMutationFactory: (accessor: IAccessor, params: IRemoveWorksheetMergeMutationParams) => IAddWorksheetMergeMutationParams;
export declare const RemoveWorksheetMergeMutation: IMutation<IRemoveWorksheetMergeMutationParams>;
import { IMutation, IRange } from '@univerjs/core';
import { ISheetCommandSharedParams } from '@univerjs/sheets';
export interface IReorderRangeMutationParams extends ISheetCommandSharedParams {

@@ -5,0 +4,0 @@ range: IRange;

import { IAccessor, IMutation, IRange } from '@univerjs/core';
export interface ISetColHiddenMutationParams {

@@ -4,0 +3,0 @@ unitId: string;

import { IAccessor, IMutation } from '@univerjs/core';
export interface ISetFrozenMutationParams {

@@ -4,0 +3,0 @@ unitId: string;

import { BooleanNumber, IAccessor, IMutation } from '@univerjs/core';
export interface ISetHideGridlinesMutationParams {

@@ -4,0 +3,0 @@ hideGridlines: BooleanNumber;

import { IAccessor, IMutation, IMutationInfo } from '@univerjs/core';
import { IRangeProtectionRule } from '../../model/range-protection-rule.model';
export interface ISetRangeProtectionMutationParams {

@@ -5,0 +4,0 @@ rule: IRangeProtectionRule;

import { IAccessor, ICellData, ICopyToOptionsData, IMutation, IMutationCommonParams, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
/** Params of `SetRangeValuesMutation` */

@@ -4,0 +3,0 @@ export interface ISetRangeValuesMutationParams extends IMutationCommonParams {

import { IAccessor, IMutation, IRange } from '@univerjs/core';
export interface ISetRowVisibleMutationParams {

@@ -4,0 +3,0 @@ unitId: string;

import { IAccessor, IMutation } from '@univerjs/core';
export interface ISetTabColorMutationParams {

@@ -4,0 +3,0 @@ color: string;

import { IMutation } from '@univerjs/core';
export interface ISetWorkbookNameMutationParams {

@@ -4,0 +3,0 @@ name: string;

import { IAccessor, IMutation, IObjectArrayPrimitiveType, IRange, Nullable } from '@univerjs/core';
export interface ISetWorksheetColWidthMutationParams {

@@ -4,0 +3,0 @@ unitId: string;

import { BooleanNumber, IAccessor, IMutation } from '@univerjs/core';
export interface ISetWorksheetHideMutationParams {

@@ -4,0 +3,0 @@ hidden: BooleanNumber;

import { IAccessor, IMutation } from '@univerjs/core';
export interface ISetWorksheetNameMutationParams {

@@ -4,0 +3,0 @@ name: string;

import { IAccessor, IMutation } from '@univerjs/core';
export interface ISetWorksheetOrderMutationParams {

@@ -4,0 +3,0 @@ fromOrder: number;

import { IMutation } from '@univerjs/core';
import { IWorksheetProtectionPointRule } from '../../services/permission/type';
export interface ISetWorksheetPermissionPointsMutationParams {

@@ -5,0 +4,0 @@ rule: IWorksheetProtectionPointRule;

import { IMutation } from '@univerjs/core';
import { IWorksheetProtectionRule } from '../../services/permission/type';
export interface ISetWorksheetProtectionParams {

@@ -5,0 +4,0 @@ unitId: string;

import { BooleanNumber, IAccessor, IMutation } from '@univerjs/core';
export interface ISetWorksheetRightToLeftMutationParams {

@@ -4,0 +3,0 @@ rightToLeft: BooleanNumber;

import { BooleanNumber, IAccessor, IMutation, IObjectArrayPrimitiveType, IRange, IRowAutoHeightInfo, Nullable } from '@univerjs/core';
export interface ISetWorksheetRowHeightMutationParams {

@@ -4,0 +3,0 @@ unitId: string;

import { IOperation, IRange } from '@univerjs/core';
export declare const ScrollToCellOperation: IOperation<IRange>;
import { IOperation } from '@univerjs/core';
import { ISelectionWithStyle } from '../../basics/selection';
import { SelectionMoveType } from '../../services/selections/selection-manager.service';
export interface ISetSelectionsOperationParams {

@@ -6,0 +5,0 @@ unitId: string;

import { IOperation } from '@univerjs/core';
export interface ISetWorksheetActiveOperationParams {

@@ -4,0 +3,0 @@ unitId: string;

import { IAccessor, IRange } from '@univerjs/core';
import { IAddMergeCommandParams } from '../commands/add-worksheet-merge.command';
import { ISetSelectionsOperationParams } from '../operations/selection.operation';
export declare const AddMergeRedoSelectionsOperationFactory: (accessor: IAccessor, params: IAddMergeCommandParams, ranges: IRange[]) => {

@@ -6,0 +5,0 @@ id: string;

import { IAccessor, IMutationInfo, IObjectMatrixPrimitiveType, IRange, Nullable, Dimension, ObjectMatrix } from '@univerjs/core';
import { IDeleteRangeMutationParams, IInsertRangeMutationParams } from '../../basics/interfaces/mutation-interface';
/**

@@ -5,0 +4,0 @@ * Generate undo mutation of a `InsertRangeMutation`

import { IAccessor } from '@univerjs/core';
import { SheetsSelectionsService } from '../../services/selections/selection-manager.service';
export declare function getSelectionsService(accessor: IAccessor): SheetsSelectionsService;
import { Dependency, IWorkbookData, Univer } from '@univerjs/core';
export declare function createTestBase(workbookData?: IWorkbookData, dependencies?: Dependency[]): {

@@ -4,0 +3,0 @@ univer: Univer;

import { IDisposable, IStyleData, Disposable, ICommandService, IConfigService } from '@univerjs/core';
import { DataSyncPrimaryController } from '@univerjs/rpc';
export interface IStyleTypeValue<T> {

@@ -5,0 +4,0 @@ type: keyof IStyleData;

import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
export declare class CalculateResultApplyController extends Disposable {

@@ -4,0 +3,0 @@ private _univerInstanceService;

import { Disposable, IResourceManagerService } from '@univerjs/core';
import { IDefinedNamesService } from '@univerjs/engine-formula';
export declare class DefinedNameDataController extends Disposable {

@@ -5,0 +4,0 @@ private readonly _definedNamesService;

@@ -7,3 +7,2 @@ import { IRange, Dimension, Disposable, DisposableCollection, ICommandService, Injector, InterceptorManager, IUniverInstanceService } from '@univerjs/core';

import { SheetInterceptorService } from '../services/sheet-interceptor/sheet-interceptor.service';
/**

@@ -10,0 +9,0 @@ * calculates the selection based on the merged cell type

import { Disposable } from '@univerjs/core';
import { SheetInterceptorService } from '../services/sheet-interceptor/sheet-interceptor.service';
export declare class NumberCellDisplayController extends Disposable {

@@ -5,0 +4,0 @@ private _sheetInterceptorService;

import { default as zhCN } from './zh-CN';
declare const locale: typeof zhCN;
export default locale;
import { default as zhCN } from './zh-CN';
declare const locale: typeof zhCN;
export default locale;
import { default as zhCN } from './zh-CN';
declare const locale: typeof zhCN;
export default locale;
import { default as zhCN } from './zh-CN';
declare const locale: typeof zhCN;
export default locale;
import { IPermissionService, IRange } from '@univerjs/core';
import { UnitAction } from '@univerjs/protocol';
import { RangeProtectionRuleModel } from './range-protection-rule.model';
export type ICellPermission = Record<UnitAction, boolean> & {

@@ -6,0 +5,0 @@ ruleId?: string;

import { IRange } from '@univerjs/core';
import { UnitObject } from '@univerjs/protocol';
export interface IRangeProtectionRule {

@@ -45,5 +44,5 @@ ranges: IRange[];

fromObject(obj: IObjectModel): void;
deleteUnitModel(): void;
deleteUnitModel(unitId: string): void;
createRuleId(unitId: string, subUnitId: string): string;
}
export {};
import { Dependency, IWorkbookData, Univer } from '@univerjs/core';
export declare const TEST_WORKBOOK_DATA_DEMO: IWorkbookData;

@@ -4,0 +3,0 @@ export declare function createTestBase(workbookData?: IWorkbookData, dependencies?: Dependency[]): {

import { BorderStyleTypes, BorderType, IDisposable } from '@univerjs/core';
export interface IBorderInfo {

@@ -4,0 +3,0 @@ type: BorderType;

import { IRange, Disposable, ILogService, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
import { INumfmtService } from './type';
export declare class NumfmtService extends Disposable implements INumfmtService {

@@ -5,0 +4,0 @@ private _resourceManagerService;

import { ICellData, IRange, Nullable, ObjectMatrix } from '@univerjs/core';
export type INumfmtItem = {

@@ -4,0 +3,0 @@ i: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class RangeProtectionPermissionEditPoint implements IPermissionPoint {

@@ -5,0 +4,0 @@ type: UnitObject;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class RangeProtectionPermissionViewPoint implements IPermissionPoint {

@@ -5,0 +4,0 @@ type: UnitObject;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookCommentPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookCopySheetPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookCopyPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookCreateSheetPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookDeleteSheetPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookDuplicatePermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookEditablePermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookExportPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookHideSheetPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookHistoryPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookManageCollaboratorPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookMoveSheetPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookPrintPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookRecoverHistoryPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookRenameSheetPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookSharePermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookViewHistoryPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorkbookViewPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetCopyPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetDeleteColumnPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetDeleteRowPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetEditExtraObjectPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetEditPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetFilterPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetInsertColumnPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetInsertHyperlinkPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetInsertRowPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetManageCollaboratorPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetPivotTablePermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetSelectProtectedCellsPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetSelectUnProtectedCellsPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetSetCellStylePermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetSetCellValuePermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetSetColumnStylePermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetSetRowStylePermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetSortPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

import { IPermissionPoint, PermissionStatus } from '@univerjs/core';
import { UnitAction, UnitObject } from '@univerjs/protocol';
export declare class WorksheetViewPermission implements IPermissionPoint {

@@ -5,0 +4,0 @@ unitId: string;

@@ -7,3 +7,2 @@ import { Disposable, DisposableCollection, ICommandService, IUniverInstanceService } from '@univerjs/core';

import { RefRangeService } from '../../../services/ref-range/ref-range.service';
export declare class RangeProtectionRefRangeService extends Disposable {

@@ -10,0 +9,0 @@ private _selectionProtectionRuleModel;

import { Disposable, IPermissionService, IResourceManagerService } from '@univerjs/core';
import { RangeProtectionRuleModel } from '../../../model/range-protection-rule.model';
export declare class RangeProtectionService extends Disposable {

@@ -5,0 +4,0 @@ private _selectionProtectionRuleModel;

import { UnitAction } from '@univerjs/protocol';
import { RangeProtectionPermissionEditPoint } from '../permission-point/range/edit';
import { RangeProtectionPermissionViewPoint } from '../permission-point/range/view';
export type IRangePermissionPoint = RangeProtectionPermissionEditPoint | RangeProtectionPermissionViewPoint;
export declare const getAllRangePermissionPoint: () => (typeof RangeProtectionPermissionEditPoint)[];
export declare const getDefaultRangePermission: (unitId?: string, subUnitId?: string, permissionId?: string) => Record<UnitAction, boolean>;
import { UnitObject } from '@univerjs/protocol';
export interface IWorksheetProtectionRule {

@@ -4,0 +3,0 @@ permissionId: string;

import { IAccessor, IRange } from '@univerjs/core';
export declare const checkRangesEditablePermission: (accessor: IAccessor, unitId: string, subUnitId: string, ranges: IRange[]) => boolean;
import { UnitAction } from '@univerjs/protocol';
import { WorkbookCommentPermission } from '../permission-point';
export declare const getAllWorkbookPermissionPoint: () => (typeof WorkbookCommentPermission)[];
export declare const defaultWorkbookPermissionPoints: UnitAction[];
import { Disposable, IPermissionService, IUniverInstanceService } from '@univerjs/core';
import { RangeProtectionRuleModel } from '../../../model/range-protection-rule.model';
export declare class WorkbookPermissionService extends Disposable {

@@ -5,0 +4,0 @@ private _permissionService;

import { ICellDataForSheetInterceptor } from '@univerjs/core';
import { UnitAction } from '@univerjs/protocol';
export declare const defaultSheetActions: UnitAction[];

@@ -5,0 +4,0 @@ export type IWorksheetProtectionRenderCellData = ICellDataForSheetInterceptor & {

import { UnitAction } from '@univerjs/protocol';
import { WorksheetCopyPermission, WorksheetViewPermission } from '../permission-point';
export declare const getAllWorksheetPermissionPoint: () => (typeof WorksheetViewPermission)[];
export declare const getAllWorksheetPermissionPointByPointPanel: () => (typeof WorksheetCopyPermission)[];
export declare const defaultWorksheetPermissionPoint: UnitAction[];
import { IObjectPointModel, IWorksheetProtectionPointRule } from '../type';
export declare class WorksheetProtectionPointModel {

@@ -16,4 +15,4 @@ private _model;

fromObject(obj: IObjectPointModel): void;
deleteUnitModel(): void;
deleteUnitModel(unitId: string): void;
private _ensureSubUnitMap;
}
import { IObjectModel, IWorksheetProtectionRule } from '../type';
type IRuleChangeType = 'add' | 'set' | 'delete';

@@ -31,3 +30,3 @@ export declare class WorksheetProtectionRuleModel {

fromObject(obj: IObjectModel): void;
deleteUnitModel(): void;
deleteUnitModel(unitId: string): void;
private _ensureSubUnitMap;

@@ -34,0 +33,0 @@ ruleRefresh(permissionId: string): void;

@@ -5,3 +5,2 @@ import { Injector, IPermissionService, IResourceManagerService, IUniverInstanceService, RxDisposable } from '@univerjs/core';

import { WorksheetProtectionPointModel } from './worksheet-permission-point.model';
export declare const RULE_MODEL_PLUGIN_NAME = "SHEET_WORKSHEET_PROTECTION_PLUGIN";

@@ -8,0 +7,0 @@ export declare const POINT_MODEL_PLUGIN_NAME = "SHEET_WORKSHEET_PROTECTION_POINT_PLUGIN";

import { Dependency, IWorkbookData, Univer } from '@univerjs/core';
export declare const TEST_WORKBOOK_DATA_DEMO: IWorkbookData;

@@ -4,0 +3,0 @@ export declare function createTestBase(workbookData?: IWorkbookData, dependencies?: Dependency[]): {

import { Univer } from '@univerjs/core';
export declare function createRefRangeTestBed(): {

@@ -4,0 +3,0 @@ univer: Univer;

@@ -5,3 +5,2 @@ import { IDisposable, IMutationInfo, IRange, Nullable, Disposable, ICommandService, InterceptorManager, IUniverInstanceService } from '@univerjs/core';

import { EffectRefRangeParams } from './type';
type RefRangCallback = (params: EffectRefRangeParams) => {

@@ -8,0 +7,0 @@ redos: IMutationInfo[];

@@ -11,3 +11,2 @@ import { ICommandInfo, IRange } from '@univerjs/core';

import { IReorderRangeCommandParams, ReorderRangeCommandId } from '../../commands/commands/reorder-range.command';
export type IMoveRowsCommand = ICommandInfo<IMoveRowsCommandParams> & {

@@ -14,0 +13,0 @@ id: typeof MoveRowsCommandId;

@@ -8,3 +8,2 @@ import { ICommandInfo, IMutationInfo, IRange, Nullable, RANGE_TYPE } from '@univerjs/core';

import { EffectRefRangeParams, IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand, IReorderRangeCommand } from './type';
export declare const handleRangeTypeInput: (range: IRange) => {

@@ -11,0 +10,0 @@ rangeType?: RANGE_TYPE;

import { IUniverInstanceService } from '@univerjs/core';
import { SheetsSelectionsService } from './selection-manager.service';
/**

@@ -5,0 +4,0 @@ * Ref selections service reuses code of `SelectionManagerService`. And it only contains ref selections

import { ISelectionCell, Nullable, Workbook, Disposable, IUniverInstanceService, RxDisposable } from '@univerjs/core';
import { Observable } from 'rxjs';
import { ISelectionWithStyle } from '../../basics/selection';
export interface ISelectionManagerSearchParam {

@@ -6,0 +5,0 @@ unitId: string;

import { Dependency, IWorkbookData, Univer } from '@univerjs/core';
export declare function createCoreTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {

@@ -4,0 +3,0 @@ univer: Univer;

import { ICellDataForSheetInterceptor } from '@univerjs/core';
import { ISheetLocation, ISheetRowLocation } from './utils/interceptor';
export declare const INTERCEPTOR_POINT: {

@@ -5,0 +4,0 @@ CELL_CONTENT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocation>;

import { ICommandInfo, IDisposable, IInterceptor, IRange, IUndoRedoCommandInfosByInterceptor, Disposable, IUniverInstanceService } from '@univerjs/core';
export interface IBeforeCommandInterceptor {

@@ -4,0 +3,0 @@ priority?: number;

import { Workbook, Worksheet } from '@univerjs/core';
export interface ISheetLocationBase {

@@ -4,0 +3,0 @@ unitId: string;

import { DependencyOverride, ICommandService, IConfigService, Injector, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
export interface IUniverSheetsConfig {

@@ -4,0 +3,0 @@ notExecuteFormula?: boolean;

{
"name": "@univerjs/sheets",
"version": "0.2.7",
"version": "0.2.8",
"private": false,

@@ -51,10 +51,10 @@ "description": "UniverSheet normal base-sheets",

"rxjs": ">=7.0.0",
"@univerjs/core": "0.2.7",
"@univerjs/engine-numfmt": "0.2.7",
"@univerjs/engine-formula": "0.2.7",
"@univerjs/rpc": "0.2.7",
"@univerjs/sheets": "0.2.7"
"@univerjs/core": "0.2.8",
"@univerjs/rpc": "0.2.8",
"@univerjs/engine-formula": "0.2.8",
"@univerjs/sheets": "0.2.8",
"@univerjs/engine-numfmt": "0.2.8"
},
"dependencies": {
"@univerjs/protocol": "0.1.38"
"@univerjs/protocol": "0.1.39-alpha.3"
},

@@ -64,9 +64,9 @@ "devDependencies": {

"typescript": "^5.5.4",
"vite": "^5.3.5",
"vite": "^5.4.0",
"vitest": "^2.0.5",
"@univerjs/core": "0.2.7",
"@univerjs/engine-numfmt": "0.2.7",
"@univerjs/rpc": "0.2.7",
"@univerjs/engine-formula": "0.2.7",
"@univerjs/shared": "0.2.7"
"@univerjs/engine-formula": "0.2.8",
"@univerjs/rpc": "0.2.8",
"@univerjs/shared": "0.2.8",
"@univerjs/engine-numfmt": "0.2.8",
"@univerjs/core": "0.2.8"
},

@@ -73,0 +73,0 @@ "univerSpace": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc