@univerjs-proedit-history-viewerclassesHistorymanagerservice

@univerjs-pro/edit-history-viewer v0.5.0-beta.1 • Docs


Class: HistoryManagerService

Extends

Constructors

new HistoryManagerService()

new HistoryManagerService(
   _messageService, 
   _confirmService, 
   _localeService, 
   _historyFetchService): HistoryManagerService

Parameters

ParameterType
_messageServiceIMessageService
_confirmServiceIConfirmService
_localeServiceLocaleService
_historyFetchServiceHistoryFetchService

Returns

HistoryManagerService

Overrides

Disposable.constructor

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:54

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
currentVersion$readonlyObservable<string>undefined-packages/edit-history-viewer/src/services/history-manager.service.tsx:27
loadingState$readonlyObservable<LoadingState>undefined-packages/edit-history-viewer/src/services/history-manager.service.tsx:41
revertRevision$readonlyObservable<number>undefined-packages/edit-history-viewer/src/services/history-manager.service.tsx:33
status$readonlyObservable<HistoryModeStatus>undefined-packages/edit-history-viewer/src/services/history-manager.service.tsx:30
unitId$readonlyObservable<null | string>undefined-packages/edit-history-viewer/src/services/history-manager.service.tsx:36
versions$readonlyObservable<IHistoryVersion[]>undefined-packages/edit-history-viewer/src/services/history-manager.service.tsx:24

Accessors

canRevert

Get Signature

get canRevert(): boolean
Returns

boolean

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:224


currentVersion

Get Signature

get currentVersion(): string
Returns

string

Set Signature

set currentVersion(value): void
Parameters
ParameterType
valuestring
Returns

void

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:212


loadingState

Get Signature

get loadingState(): LoadingState
Returns

LoadingState

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:228


status

Set Signature

set status(value): void
Parameters
ParameterType
valueHistoryModeStatus
Returns

void

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:202


unitId

Get Signature

get unitId(): null | string
Returns

null | string

Set Signature

set unitId(value): void
Parameters
ParameterType
valuenull | string
Returns

void

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:220

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


getCurrentVersion()

getCurrentVersion(): undefined | IHistoryVersion

Returns

undefined | IHistoryVersion

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:151


getMember()

getMember(id): undefined | IUser

Parameters

ParameterType
idstring

Returns

undefined | IUser

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:159


getVersion()

getVersion(id): undefined | IHistoryVersion

Parameters

ParameterType
idstring

Returns

undefined | IHistoryVersion

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:155


hideMask()

hideMask(): void

Returns

void

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:198


loadMoreVersions()

loadMoreVersions(): Promise<boolean>

Returns

Promise<boolean>

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:93


showMask()

showMask(): void

Returns

void

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:189


triggerLoadSheet()

triggerLoadSheet(versionId): Promise<void>

Parameters

ParameterType
versionIdstring

Returns

Promise<void>

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:113


triggerLoadVersions()

triggerLoadVersions(
   unitId, 
   containerId, 
canRevert): Promise<void>

Parameters

ParameterType
unitIdstring
containerIdstring
canRevertboolean

Returns

Promise<void>

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:63


triggerRevert()

triggerRevert(id?): Promise<void>

Parameters

ParameterType
id?string

Returns

Promise<void>

Defined in

packages/edit-history-viewer/src/services/history-manager.service.tsx:125