@univerjs-pro/edit-history-viewer v0.5.4
Class: HistoryManagerService
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:22
Extends
Constructors
new HistoryManagerService()
new HistoryManagerService(
_messageService,
_confirmService,
_localeService,
_historyFetchService): HistoryManagerService
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:54
Parameters
Parameter | Type |
---|---|
_messageService | IMessageService |
_confirmService | IConfirmService |
_localeService | LocaleService |
_historyFetchService | HistoryFetchService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
currentVersion$ | readonly | Observable <string > | undefined | - | packages/edit-history-viewer/src/services/history-manager.service.tsx:27 |
loadingState$ | readonly | Observable <LoadingState > | undefined | - | packages/edit-history-viewer/src/services/history-manager.service.tsx:41 |
revertRevision$ | readonly | Observable <number > | undefined | - | packages/edit-history-viewer/src/services/history-manager.service.tsx:33 |
status$ | readonly | Observable <HistoryModeStatus > | undefined | - | packages/edit-history-viewer/src/services/history-manager.service.tsx:30 |
unitId$ | readonly | Observable <null | string > | undefined | - | packages/edit-history-viewer/src/services/history-manager.service.tsx:36 |
versions$ | readonly | Observable <IHistoryVersion []> | undefined | - | packages/edit-history-viewer/src/services/history-manager.service.tsx:24 |
Accessors
canRevert
Get Signature
get canRevert(): boolean
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:224
Returns
boolean
currentVersion
Get Signature
get currentVersion(): string
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:212
Returns
string
Set Signature
set currentVersion(value): void
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:206
Parameters
Parameter | Type |
---|---|
value | string |
Returns
void
loadingState
Get Signature
get loadingState(): LoadingState
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:228
Returns
LoadingState
status
Set Signature
set status(value): void
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:202
Parameters
Parameter | Type |
---|---|
value | HistoryModeStatus |
Returns
void
unitId
Get Signature
get unitId(): null | string
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:220
Returns
null
| string
Set Signature
set unitId(value): void
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:216
Parameters
Parameter | Type |
---|---|
value | null | string |
Returns
void
Methods
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getCurrentVersion()
getCurrentVersion(): undefined | IHistoryVersion
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:151
Returns
undefined
| IHistoryVersion
getMember()
getMember(id): undefined | IUser
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:159
Parameters
Parameter | Type |
---|---|
id | string |
Returns
undefined
| IUser
getVersion()
getVersion(id): undefined | IHistoryVersion
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:155
Parameters
Parameter | Type |
---|---|
id | string |
Returns
undefined
| IHistoryVersion
hideMask()
hideMask(): void
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:198
Returns
void
loadMoreVersions()
loadMoreVersions(): Promise<boolean>
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:93
Returns
Promise
<boolean
>
showMask()
showMask(): void
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:189
Returns
void
triggerLoadSheet()
triggerLoadSheet(versionId): Promise<void>
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:113
Parameters
Parameter | Type |
---|---|
versionId | string |
Returns
Promise
<void
>
triggerLoadVersions()
triggerLoadVersions(
unitId,
containerId,
canRevert): Promise<void>
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:63
Parameters
Parameter | Type |
---|---|
unitId | string |
containerId | string |
canRevert | boolean |
Returns
Promise
<void
>
triggerRevert()
triggerRevert(id?): Promise<void>
Defined in: packages/edit-history-viewer/src/services/history-manager.service.tsx:125
Parameters
Parameter | Type |
---|---|
id ? | string |
Returns
Promise
<void
>