@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
Parameter | Type |
---|---|
_messageService | IMessageService |
_confirmService | IConfirmService |
_localeService | LocaleService |
_historyFetchService | HistoryFetchService |
Returns
Overrides
Defined in
packages/edit-history-viewer/src/services/history-manager.service.tsx:54
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
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
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
Parameter | Type |
---|---|
value | string |
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
Parameter | Type |
---|---|
value | HistoryModeStatus |
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
Parameter | Type |
---|---|
value | null | string |
Returns
void
Defined in
packages/edit-history-viewer/src/services/history-manager.service.tsx:220
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
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
Parameter | Type |
---|---|
id | string |
Returns
undefined
| IUser
Defined in
packages/edit-history-viewer/src/services/history-manager.service.tsx:159
getVersion()
getVersion(id): undefined | IHistoryVersion
Parameters
Parameter | Type |
---|---|
id | string |
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
Parameter | Type |
---|---|
versionId | string |
Returns
Promise
<void
>
Defined in
packages/edit-history-viewer/src/services/history-manager.service.tsx:113
triggerLoadVersions()
triggerLoadVersions(
unitId,
containerId,
canRevert): Promise<void>
Parameters
Parameter | Type |
---|---|
unitId | string |
containerId | string |
canRevert | boolean |
Returns
Promise
<void
>
Defined in
packages/edit-history-viewer/src/services/history-manager.service.tsx:63
triggerRevert()
triggerRevert(id?): Promise<void>
Parameters
Parameter | Type |
---|---|
id ? | string |
Returns
Promise
<void
>
Defined in
packages/edit-history-viewer/src/services/history-manager.service.tsx:125