@univerjs/core 0.5.4 → 0.5.5-experimental.20250122-3362a4a
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 +11 -10
- package/lib/es/index.js +12112 -11252
- package/lib/types/common/const.d.ts +1 -0
- package/lib/types/docs/data-model/__tests__/rich-text-builder.test.d.ts +16 -0
- package/lib/types/docs/data-model/document-data-model.d.ts +4 -3
- package/lib/types/docs/data-model/rich-text-builder.d.ts +68 -13
- package/lib/types/docs/data-model/text-x/build-utils/index.d.ts +1 -0
- package/lib/types/docs/data-model/text-x/build-utils/text-x-utils.d.ts +1 -0
- package/lib/types/docs/data-model/text-x/utils.d.ts +48 -1
- package/lib/types/facade/f-base.d.ts +17 -0
- package/lib/types/facade/f-blob.d.ts +3 -0
- package/lib/types/facade/f-doc.d.ts +4 -0
- package/lib/types/facade/f-enum.d.ts +90 -1
- package/lib/types/facade/f-event.d.ts +6 -0
- package/lib/types/facade/f-hooks.d.ts +11 -24
- package/lib/types/facade/f-univer.d.ts +3 -0
- package/lib/types/facade/f-usermanager.d.ts +3 -0
- package/lib/types/facade/f-util.d.ts +6 -0
- package/lib/types/index.d.ts +2 -3
- package/lib/types/services/config/config.service.d.ts +1 -1
- package/lib/types/services/context/context.d.ts +1 -0
- package/lib/types/shared/index.d.ts +1 -1
- package/lib/types/shared/numfmt.d.ts +2 -2
- package/lib/types/shared/types/numfmt.type.d.ts +1 -1
- package/lib/umd/index.js +11 -10
- package/package.json +3 -3
- package/LICENSE +0 -176
|
@@ -19,7 +19,7 @@ interface IConfigOptions {
|
|
|
19
19
|
merge?: boolean;
|
|
20
20
|
}
|
|
21
21
|
export interface IConfigService {
|
|
22
|
-
getConfig<T>(id: string): Nullable<T>;
|
|
22
|
+
getConfig<T>(id: string | symbol): Nullable<T>;
|
|
23
23
|
setConfig(id: string | symbol, value: unknown, options?: IConfigOptions): void;
|
|
24
24
|
deleteConfig(id: string): boolean;
|
|
25
25
|
subscribeConfigValue$<T = unknown>(key: string): Observable<T>;
|
|
@@ -23,6 +23,7 @@ export declare const EDITOR_ACTIVATED = "EDITOR_ACTIVATED";
|
|
|
23
23
|
export declare const FOCUSING_EDITOR_INPUT_FORMULA = "FOCUSING_EDITOR_INPUT_FORMULA";
|
|
24
24
|
/** The focusing state of the formula editor (Fx bar). */
|
|
25
25
|
export declare const FOCUSING_FX_BAR_EDITOR = "FOCUSING_FX_BAR_EDITOR";
|
|
26
|
+
/** The focusing state of the cell editor. */
|
|
26
27
|
export declare const FOCUSING_UNIVER_EDITOR = "FOCUSING_UNIVER_EDITOR";
|
|
27
28
|
export declare const FOCUSING_EDITOR_STANDALONE = "FOCUSING_EDITOR_INPUT_FORMULA";
|
|
28
29
|
/** The focusing state of the editor in side panel, such as Chart Editor Panel. */
|
|
@@ -30,7 +30,7 @@ export * from './hash-algorithm';
|
|
|
30
30
|
export * from './lifecycle';
|
|
31
31
|
export * from './locale';
|
|
32
32
|
export { LRUHelper, LRUMap } from './lru/lru-map';
|
|
33
|
-
export { numfmt } from './numfmt';
|
|
33
|
+
export { type INumfmtLocalTag, numfmt } from './numfmt';
|
|
34
34
|
export * from './object-matrix';
|
|
35
35
|
export { queryObjectMatrix } from './object-matrix-query';
|
|
36
36
|
export { moveRangeByOffset, splitIntoGrid } from './range';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { INumfmt } from './types/numfmt.type';
|
|
1
|
+
import { INumfmt, LocaleTag } from './types/numfmt.type';
|
|
2
2
|
declare const numfmt: INumfmt;
|
|
3
|
-
export { numfmt };
|
|
3
|
+
export { LocaleTag as INumfmtLocalTag, numfmt };
|
|
@@ -181,7 +181,7 @@ interface Formatter {
|
|
|
181
181
|
dateInfo: DateInfo;
|
|
182
182
|
(value: number): string;
|
|
183
183
|
}
|
|
184
|
-
type LocaleTag = 'zh-CN' | 'zh
|
|
184
|
+
export type LocaleTag = 'zh-CN' | 'zh-TW' | 'cs' | 'da' | 'nl' | 'en' | 'fi' | 'fr' | 'de' | 'el' | 'hu' | 'is' | 'id' | 'it' | 'ja' | 'ko' | 'nb' | 'pl' | 'pt' | 'ru' | 'sk' | 'es' | 'sv' | 'th' | 'tr' | 'vi';
|
|
185
185
|
export interface ParsedReturnType {
|
|
186
186
|
/**
|
|
187
187
|
* The parsed value. For dates, this will be an Excel style serial date unless the nativeDate option is used.
|