@univerjs/core 0.9.2 → 0.9.3
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 +8 -8
- package/lib/es/index.js +1727 -1723
- package/lib/index.js +1727 -1723
- package/lib/types/shared/index.d.ts +2 -1
- package/lib/types/shared/numfmt.d.ts +6 -1
- package/lib/types/shared/tools.d.ts +0 -6
- package/lib/types/types/enum/locale-type.d.ts +3 -1
- package/lib/umd/index.js +8 -8
- package/package.json +6 -6
|
@@ -30,7 +30,8 @@ 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
|
|
33
|
+
export type { INumfmtLocaleTag } from './numfmt';
|
|
34
|
+
export { DEFAULT_NUMBER_FORMAT, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, isDefaultFormat, isPatternEqualWithoutDecimal, isTextFormat, numfmt, } from './numfmt';
|
|
34
35
|
export * from './object-matrix';
|
|
35
36
|
export { queryObjectMatrix } from './object-matrix-query';
|
|
36
37
|
export { moveRangeByOffset, splitIntoGrid } from './range';
|
|
@@ -14,7 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export * as numfmt from 'numfmt';
|
|
17
|
-
export
|
|
17
|
+
export declare const DEFAULT_TEXT_FORMAT = "@@@";
|
|
18
|
+
export declare const DEFAULT_TEXT_FORMAT_EXCEL = "@";
|
|
19
|
+
export declare const DEFAULT_NUMBER_FORMAT = "General";
|
|
20
|
+
export declare function isTextFormat(pattern: string | undefined): pattern is "@@@" | "@";
|
|
21
|
+
export declare function isDefaultFormat(pattern?: string | null): pattern is "General" | null | undefined;
|
|
22
|
+
export type INumfmtLocaleTag = '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';
|
|
18
23
|
/**
|
|
19
24
|
* Determines whether two patterns are equal, excluding differences in decimal places.
|
|
20
25
|
* This function ignores the decimal part of the patterns and the positive color will be ignored but negative color will be considered.
|
|
@@ -10,12 +10,6 @@ export declare class Tools {
|
|
|
10
10
|
static deleteBlank(value?: string): string | undefined;
|
|
11
11
|
static getSystemType(): string;
|
|
12
12
|
static getBrowserType(): string;
|
|
13
|
-
/**
|
|
14
|
-
* Use this method without `Tools`.
|
|
15
|
-
*
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
static generateRandomId(n?: number, alphabet?: string): string;
|
|
19
13
|
static getClassName(instance: object): string;
|
|
20
14
|
/** @deprecated This method is deprecated, please use `import { merge } from '@univerjs/core` instead */
|
|
21
15
|
static deepMerge(target: any, ...sources: any[]): any;
|