@huyooo/ui 0.1.13 → 0.1.14

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.
@@ -0,0 +1,54 @@
1
+ export declare function prettyFormat(code: any): string;
2
+ export interface TreeNode {
3
+ children?: TreeNode[];
4
+ [key: string]: any;
5
+ }
6
+ export declare function treeFindPath(tree: TreeNode[], value: number | string, key: string): TreeNode[];
7
+ export declare function findLabel(options: any[], key: string | number): any;
8
+ export declare const formatDateByLocale: (locale: Intl.LocalesArgument, d: string | number | Date) => string;
9
+ export declare const searchTextRegExp: (query?: string) => RegExp;
10
+ export declare function excludePath(navigation: any[], exclude: string[]): any[];
11
+ export declare function parsePath(path: string): string[];
12
+ interface MenuNode {
13
+ name: string;
14
+ redirect?: string;
15
+ path: string;
16
+ children?: MenuNode[];
17
+ }
18
+ export declare function findFirstNodeOfDeepestArray(menuArray: MenuNode[]): MenuNode | null;
19
+ export declare function getDateRanges(): {
20
+ today: {
21
+ startTime: string;
22
+ endTime: string;
23
+ };
24
+ week: {
25
+ startTime: string;
26
+ endTime: string;
27
+ };
28
+ month: {
29
+ startTime: string;
30
+ endTime: string;
31
+ };
32
+ year: {
33
+ startTime: string;
34
+ endTime: string;
35
+ };
36
+ };
37
+ export declare function hideKey(key: string, visibleStartLength?: number, visibleEndLength?: number, maxHiddenLength?: number): string;
38
+ export declare const domainRegex: RegExp;
39
+ export declare const domainAndPortRegex: RegExp;
40
+ export declare function hideEmail(email: string, prefixLength?: number): string;
41
+ export declare function validateOrderAmount(amount: string): boolean;
42
+ export declare const phoneRegex: RegExp;
43
+ export declare function extractOrganizationId(url: string, key: string): string | null;
44
+ export declare function beautifyJSON(jsonData: any): string;
45
+ export declare function getValue(value: any): string;
46
+ export declare function getNestedValue<T extends Record<string, any>>(obj: T, key: string): any;
47
+ export declare function formatFileSize(size: number): string;
48
+ export declare function getFileExtension(fileName: string): string | undefined;
49
+ export declare function separatePathAndFileName(filePath: string): {
50
+ path: string;
51
+ fileName: string;
52
+ } | null;
53
+ export declare function createMailtoLink(recipient: string, subject: string, body: string): string;
54
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
3
  "private": false,
4
- "version": "0.1.13",
4
+ "version": "0.1.14",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.js",
@@ -35,5 +35,5 @@
35
35
  "@arco-design/web-vue": "^2.56.3",
36
36
  "@iconify/vue": "^4.1.2"
37
37
  },
38
- "gitHead": "e46232590fb56d85358a6c04ab0f097991696e2c"
38
+ "gitHead": "e6673b47ed2b3489a13d245d7dc0f802ff556a11"
39
39
  }