@univerjssheetsindexclassesRangeprotectionrefrangeservice

@univerjs/sheets v0.5.4


Class: RangeProtectionRefRangeService

Defined in: submodules/univer/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:62

Extends

Constructors

new RangeProtectionRefRangeService()

new RangeProtectionRefRangeService(
   _selectionProtectionRuleModel, 
   _univerInstanceService, 
   _commandService, 
   _refRangeService, 
   _selectionProtectionRenderModel, 
   _rangeProtectionCache, 
   _sheetInterceptorService, 
   _rangeProtectionRuleModel): RangeProtectionRefRangeService

Defined in: submodules/univer/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:65

Parameters

ParameterType
_selectionProtectionRuleModelRangeProtectionRuleModel
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService
_refRangeServiceRefRangeService
_selectionProtectionRenderModelRangeProtectionRenderModel
_rangeProtectionCacheRangeProtectionCache
_sheetInterceptorServiceSheetInterceptorService
_rangeProtectionRuleModelRangeProtectionRuleModel

Returns

RangeProtectionRefRangeService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
disposableCollectionpublicDisposableCollectionundefined-submodules/univer/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:63

Methods

dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


refRangeHandle()

refRangeHandle(
   config, 
   unitId, 
   subUnitId): 
  | {
  redos: {
     id: string;
     params: ISetRangeProtectionMutationParams;
    }[];
  undos: {
     id: string;
     params: ISetRangeProtectionMutationParams;
    }[];
 }
  | {
  redos: IMutationInfo<
     | IDeleteRangeProtectionMutationParams
     | IAddRangeProtectionMutationParams
     | ISetRangeProtectionMutationParams>[];
  undos: IMutationInfo<
     | IDeleteRangeProtectionMutationParams
     | IAddRangeProtectionMutationParams
     | ISetRangeProtectionMutationParams>[];
}

Defined in: submodules/univer/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:139

Parameters

ParameterType
configEffectRefRangeParams
unitIdstring
subUnitIdstring

Returns

| { redos: { id: string; params: ISetRangeProtectionMutationParams; }[]; undos: { id: string; params: ISetRangeProtectionMutationParams; }[]; } | { redos: IMutationInfo< | IDeleteRangeProtectionMutationParams | IAddRangeProtectionMutationParams | ISetRangeProtectionMutationParams>[]; undos: IMutationInfo< | IDeleteRangeProtectionMutationParams | IAddRangeProtectionMutationParams | ISetRangeProtectionMutationParams>[]; }