@univerjs/core 0.10.8 → 0.10.9
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/README.md +5 -5
- package/lib/cjs/index.js +7 -7
- package/lib/es/index.js +1622 -1615
- package/lib/index.js +1622 -1615
- package/lib/types/shared/index.d.ts +1 -1
- package/lib/types/shared/name.d.ts +5 -1
- package/lib/types/shared/numfmt.d.ts +5 -0
- package/lib/umd/index.js +7 -7
- package/package.json +3 -3
|
@@ -31,7 +31,7 @@ export * from './lifecycle';
|
|
|
31
31
|
export * from './locale';
|
|
32
32
|
export { LRUHelper, LRUMap } from './lru/lru-map';
|
|
33
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
|
+
export { DEFAULT_NUMBER_FORMAT, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, getNumfmtParseValueFilter, isDefaultFormat, isPatternEqualWithoutDecimal, isTextFormat, numfmt, } from './numfmt';
|
|
35
35
|
export * from './object-matrix';
|
|
36
36
|
export { queryObjectMatrix } from './object-matrix-query';
|
|
37
37
|
export { moveRangeByOffset, splitIntoGrid } from './range';
|
|
@@ -28,7 +28,11 @@ export declare function nameCharacterCheck(name: string): boolean;
|
|
|
28
28
|
* Checks if the custom table name or custom name is valid based on the following criteria:
|
|
29
29
|
* - The name cannot conflict with existing sheet names.
|
|
30
30
|
* - The name cannot be empty.
|
|
31
|
-
* - The name must start with a letter or underscore.
|
|
31
|
+
* - The name must start with a letter or underscore or a unicode letter (e.g., Chinese).
|
|
32
|
+
* - The name cannot be a simple A1-style reference (e.g., A1, $A$1, AB123).
|
|
33
|
+
* - The name cannot be an R1C1-style reference (e.g., R1C1).
|
|
34
|
+
* - The name cannot be purely numeric.
|
|
35
|
+
* - The name cannot exceed 255 characters in length.
|
|
32
36
|
* The name cannot contain spaces or invalid characters (e.g., :, \, /, ?, *, [, ]).
|
|
33
37
|
* @param name The name need to check
|
|
34
38
|
* @param sheetNameSet The set of existing sheet names to check against
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import * as numfmt from 'numfmt';
|
|
16
17
|
export * as numfmt from 'numfmt';
|
|
17
18
|
export declare const DEFAULT_TEXT_FORMAT = "@@@";
|
|
18
19
|
export declare const DEFAULT_TEXT_FORMAT_EXCEL = "@";
|
|
@@ -26,3 +27,7 @@ export type INumfmtLocaleTag = 'zh-CN' | 'zh-TW' | 'cs' | 'da' | 'nl' | 'en' | '
|
|
|
26
27
|
* more info can check the test case.
|
|
27
28
|
*/
|
|
28
29
|
export declare const isPatternEqualWithoutDecimal: (patternA: string, patternB: string) => boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Get the numfmt parse value, and filter out the parse error.
|
|
32
|
+
*/
|
|
33
|
+
export declare const getNumfmtParseValueFilter: (value: string) => numfmt.ParseData | null;
|