@univerjs/core 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +7 -7
- package/lib/es/index.js +621 -601
- package/lib/index.js +621 -601
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/confirm/confirm.service.d.ts +19 -0
- package/lib/types/sheets/workbook.d.ts +1 -1
- package/lib/umd/index.js +7 -7
- package/package.json +3 -3
package/lib/types/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export { IAuthzIoService } from './services/authz-io/type';
|
|
|
57
57
|
export { COMMAND_LOG_EXECUTION_CONFIG_KEY, type CommandListener, CommandService, CommandType, type ICommand, type ICommandInfo, ICommandService, type IExecutionOptions, type IMultiCommand, type IMutation, type IMutationCommonParams, type IMutationInfo, type IOperation, type IOperationInfo, NilCommand, sequenceExecute, sequenceExecuteAsync, } from './services/command/command.service';
|
|
58
58
|
export { IConfigService } from './services/config/config.service';
|
|
59
59
|
export { ConfigService } from './services/config/config.service';
|
|
60
|
+
export { IConfirmService, TestConfirmService } from './services/confirm/confirm.service';
|
|
60
61
|
export * from './services/context/context';
|
|
61
62
|
export { ContextService, IContextService } from './services/context/context.service';
|
|
62
63
|
export { ErrorService, type IError } from './services/error/error.service';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IDisposable } from '../../common/di';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
export declare const IConfirmService: import('@wendellhu/redi').IdentifierDecorator<IConfirmService<unknown>>;
|
|
4
|
+
export interface IConfirmService<T = unknown> {
|
|
5
|
+
readonly confirmOptions$: Subject<T[]>;
|
|
6
|
+
open(params: T): IDisposable;
|
|
7
|
+
confirm(params: T): Promise<boolean>;
|
|
8
|
+
close(id: string): void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* This is a mock service for testing purposes.
|
|
12
|
+
*/
|
|
13
|
+
export declare class TestConfirmService<T> implements IConfirmService<T>, IDisposable {
|
|
14
|
+
readonly confirmOptions$: Subject<T[]>;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
open(_params: T): IDisposable;
|
|
17
|
+
confirm(_params: T): Promise<boolean>;
|
|
18
|
+
close(_id: string): IDisposable;
|
|
19
|
+
}
|
|
@@ -107,7 +107,7 @@ export declare class Workbook extends UnitModel<IWorkbookData, UniverInstanceTyp
|
|
|
107
107
|
getUnhiddenWorksheets(): string[];
|
|
108
108
|
load(config: IWorkbookData): void;
|
|
109
109
|
/**
|
|
110
|
-
* Check if sheet name is unique
|
|
110
|
+
* Check if sheet name is unique, ignore case sensitivity
|
|
111
111
|
* @param name sheet name
|
|
112
112
|
* @returns True if sheet name is unique
|
|
113
113
|
*/
|