@indfnd/utils 0.1.6 → 0.1.7
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/CHANGELOG.md +7 -0
- package/dist/ind-utils.es.js +1 -1
- package/dist/ind-utils.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/config/base.config.ts +4 -1
- package/types/api/com.d.ts +2 -2
- package/types/api/index-desc.d.ts +2 -2
- package/types/api/index.d.ts +6 -6
- package/types/api/item.d.ts +4 -4
- package/types/api/platform/dict.d.ts +4 -4
- package/types/api/platform/index.d.ts +5 -5
- package/types/api/platform/menu.d.ts +17 -11
- package/types/api/platform/oss.d.ts +12 -6
- package/types/api/platform/user.d.ts +17 -12
- package/types/api/user.d.ts +2 -2
- package/types/config/base.config.d.ts +30 -30
- package/types/config/base.config.d.ts.map +1 -1
- package/types/config/dev.config.d.ts +3 -3
- package/types/config/index.d.ts +57 -57
- package/types/config/prod.config.d.ts +3 -3
- package/types/index.d.ts +4 -4
- package/types/utils/base64.d.ts +22 -22
- package/types/utils/blob.d.ts +3 -3
- package/types/utils/cache/dict-cache.d.ts +3 -3
- package/types/utils/cache/index-desc.d.ts +4 -4
- package/types/utils/cache/index.d.ts +4 -4
- package/types/utils/cache/permission-cache.d.ts +4 -4
- package/types/utils/cache/user-cache.d.ts +4 -4
- package/types/utils/date.d.ts +4 -4
- package/types/utils/enum.d.ts +43 -39
- package/types/utils/event.d.ts +13 -5
- package/types/utils/excel.d.ts +4 -4
- package/types/utils/half-year.d.ts +6 -6
- package/types/utils/index.d.ts +20 -20
- package/types/utils/is-type.d.ts +33 -33
- package/types/utils/mime-type.d.ts +67 -67
- package/types/utils/number.d.ts +8 -8
- package/types/utils/quarter.d.ts +7 -7
- package/types/utils/request/axios.extends.d.ts +7 -3
- package/types/utils/request/cache-rules.d.ts +3 -3
- package/types/utils/request/content-type.d.ts +9 -9
- package/types/utils/request/index.d.ts +8 -8
- package/types/utils/request/interceptors.d.ts +4 -4
- package/types/utils/request/url-params.d.ts +6 -6
- package/types/utils/sm3/index.d.ts +6 -6
- package/types/utils/sm3/sm3.d.ts +3 -3
- package/types/utils/storage.d.ts +8 -8
- package/types/utils/table.d.ts +40 -31
- package/types/utils/token.d.ts +3 -3
- package/types/utils/uuid.d.ts +4 -4
- package/types/utils/validate.d.ts +5 -5
package/types/config/index.d.ts
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
export declare function useConfig(isDev?: boolean): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
2
|
+
title: string
|
|
3
|
+
icomId: string
|
|
4
|
+
showMenus: boolean
|
|
5
|
+
routerBase: string
|
|
6
|
+
loginRouteName: string
|
|
7
|
+
rootRouteName: string
|
|
8
|
+
homeRouteName: string
|
|
9
|
+
authServerContext: string
|
|
10
|
+
ossServerContext: string
|
|
11
|
+
ismAmServerContext: string
|
|
12
|
+
ismAcServerContext: string
|
|
13
|
+
ismSqServerContext: string
|
|
14
|
+
ilmServerContext: string
|
|
15
|
+
ucExtServerContext: string
|
|
16
|
+
kkfilepreviewContext: string
|
|
17
|
+
errorMessage: string
|
|
18
|
+
leftLockDays: number
|
|
19
|
+
labelStyle: {
|
|
20
|
+
labelWidthButton: number
|
|
21
|
+
labelWidthSmall: number
|
|
22
|
+
labelWidthMiddle: number
|
|
23
|
+
labelWidthMiddleLarge: number
|
|
24
|
+
labelWidthLarge: number
|
|
25
|
+
labelWidthSuperLarge: number
|
|
26
|
+
}
|
|
27
|
+
linkColor: string
|
|
28
28
|
} & {
|
|
29
|
-
|
|
30
|
-
}
|
|
29
|
+
showMenus: boolean
|
|
30
|
+
}
|
|
31
31
|
export declare const config: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
32
|
+
title: string
|
|
33
|
+
icomId: string
|
|
34
|
+
showMenus: boolean
|
|
35
|
+
routerBase: string
|
|
36
|
+
loginRouteName: string
|
|
37
|
+
rootRouteName: string
|
|
38
|
+
homeRouteName: string
|
|
39
|
+
authServerContext: string
|
|
40
|
+
ossServerContext: string
|
|
41
|
+
ismAmServerContext: string
|
|
42
|
+
ismAcServerContext: string
|
|
43
|
+
ismSqServerContext: string
|
|
44
|
+
ilmServerContext: string
|
|
45
|
+
ucExtServerContext: string
|
|
46
|
+
kkfilepreviewContext: string
|
|
47
|
+
errorMessage: string
|
|
48
|
+
leftLockDays: number
|
|
49
|
+
labelStyle: {
|
|
50
|
+
labelWidthButton: number
|
|
51
|
+
labelWidthSmall: number
|
|
52
|
+
labelWidthMiddle: number
|
|
53
|
+
labelWidthMiddleLarge: number
|
|
54
|
+
labelWidthLarge: number
|
|
55
|
+
labelWidthSuperLarge: number
|
|
56
|
+
}
|
|
57
|
+
linkColor: string
|
|
58
58
|
} & {
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=index.d.ts.map
|
|
59
|
+
showMenus: boolean
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function getProdConfig(): {
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
//# sourceMappingURL=prod.config.d.ts.map
|
|
2
|
+
showMenus: boolean
|
|
3
|
+
}
|
|
4
|
+
//# sourceMappingURL=prod.config.d.ts.map
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './api'
|
|
2
|
-
export * from './config'
|
|
3
|
-
export * from './utils'
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from './api'
|
|
2
|
+
export * from './config'
|
|
3
|
+
export * from './utils'
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
package/types/utils/base64.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
declare let Base64ForLogin: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
export { Base64ForLogin }
|
|
23
|
-
//# sourceMappingURL=base64.d.ts.map
|
|
2
|
+
Base64Chars: string
|
|
3
|
+
/**
|
|
4
|
+
* Encode a string to a Base64 string follow Bse64 regular.
|
|
5
|
+
* @param s, a normal string
|
|
6
|
+
* @return a Base64 string
|
|
7
|
+
*/
|
|
8
|
+
encode: (s: any) => any
|
|
9
|
+
/**
|
|
10
|
+
* Encodes a ucs2 string to a utf8 integer array.
|
|
11
|
+
* @param s, a string
|
|
12
|
+
* @return an integer array
|
|
13
|
+
*/
|
|
14
|
+
ucs2_utf8: (s: any) => any[]
|
|
15
|
+
/**
|
|
16
|
+
* Encodes a utf8 integer array to a ucs2 string.
|
|
17
|
+
* @param s, an integer array
|
|
18
|
+
* @return a string
|
|
19
|
+
*/
|
|
20
|
+
utf8_ucs2: (s: any) => string
|
|
21
|
+
}
|
|
22
|
+
export { Base64ForLogin }
|
|
23
|
+
//# sourceMappingURL=base64.d.ts.map
|
package/types/utils/blob.d.ts
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* @param contentType 数据的MIME Type,如 png 为 image/png
|
|
6
6
|
* @returns Blob数据
|
|
7
7
|
*/
|
|
8
|
-
export declare function base64ToBlob(base64Data: string, contentType: string): Blob
|
|
9
|
-
export declare function blobToBase64(blob: Blob, hasPrefix?: boolean): Promise<unknown
|
|
10
|
-
//# sourceMappingURL=blob.d.ts.map
|
|
8
|
+
export declare function base64ToBlob(base64Data: string, contentType: string): Blob
|
|
9
|
+
export declare function blobToBase64(blob: Blob, hasPrefix?: boolean): Promise<unknown>
|
|
10
|
+
//# sourceMappingURL=blob.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function getDictCache(dictId: string): any
|
|
2
|
-
export declare function setDictCache(dictId: string, data: any): void
|
|
3
|
-
//# sourceMappingURL=dict-cache.d.ts.map
|
|
1
|
+
export declare function getDictCache(dictId: string): any
|
|
2
|
+
export declare function setDictCache(dictId: string, data: any): void
|
|
3
|
+
//# sourceMappingURL=dict-cache.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function getIndexDescCache(): any
|
|
2
|
-
export declare function setIndexDescCache(data: any): void
|
|
3
|
-
export declare function clearIndexDescCache(): void
|
|
4
|
-
//# sourceMappingURL=index-desc.d.ts.map
|
|
1
|
+
export declare function getIndexDescCache(): any
|
|
2
|
+
export declare function setIndexDescCache(data: any): void
|
|
3
|
+
export declare function clearIndexDescCache(): void
|
|
4
|
+
//# sourceMappingURL=index-desc.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './index-desc'
|
|
2
|
-
export * from './permission-cache'
|
|
3
|
-
export * from './user-cache'
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from './index-desc'
|
|
2
|
+
export * from './permission-cache'
|
|
3
|
+
export * from './user-cache'
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function getPermissionCache(): any
|
|
2
|
-
export declare function setPermissionCache(data: any): void
|
|
3
|
-
export declare function clearPermissionCache(): void
|
|
4
|
-
//# sourceMappingURL=permission-cache.d.ts.map
|
|
1
|
+
export declare function getPermissionCache(): any
|
|
2
|
+
export declare function setPermissionCache(data: any): void
|
|
3
|
+
export declare function clearPermissionCache(): void
|
|
4
|
+
//# sourceMappingURL=permission-cache.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function getUserInfoCache(): any
|
|
2
|
-
export declare function setUserInfoCache(data: any): void
|
|
3
|
-
export declare function clearUserInfoCache(): void
|
|
4
|
-
//# sourceMappingURL=user-cache.d.ts.map
|
|
1
|
+
export declare function getUserInfoCache(): any
|
|
2
|
+
export declare function setUserInfoCache(data: any): void
|
|
3
|
+
export declare function clearUserInfoCache(): void
|
|
4
|
+
//# sourceMappingURL=user-cache.d.ts.map
|
package/types/utils/date.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function str2Date(value: string): Date
|
|
2
|
-
export declare function formatDate(value: string): string
|
|
3
|
-
export declare function formatDateChinese(value: string): string
|
|
4
|
-
//# sourceMappingURL=date.d.ts.map
|
|
1
|
+
export declare function str2Date(value: string): Date
|
|
2
|
+
export declare function formatDate(value: string): string
|
|
3
|
+
export declare function formatDateChinese(value: string): string
|
|
4
|
+
//# sourceMappingURL=date.d.ts.map
|
package/types/utils/enum.d.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
/** 是否枚举的key */
|
|
2
|
-
export declare const IS_OR_NOT_ENUM_KEY =
|
|
2
|
+
export declare const IS_OR_NOT_ENUM_KEY = 'IS_ENUM'
|
|
3
3
|
/** 是否枚举的map形式 */
|
|
4
4
|
export declare const IS_OR_NOT_ENUM: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
5
|
+
'1': string
|
|
6
|
+
'0': string
|
|
7
|
+
}
|
|
8
8
|
/** 是否枚举的list形式 */
|
|
9
9
|
export declare const IS_OR_NOT_ENUM_LIST: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}[]
|
|
10
|
+
K: string
|
|
11
|
+
V: string
|
|
12
|
+
}[]
|
|
13
13
|
export declare const UC_ENUM: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
14
|
+
MANAGE_UNIT_ID: string
|
|
15
|
+
ORG_CODE_ADMIN: string
|
|
16
|
+
ORG_CODE_MKT: string
|
|
17
|
+
ORG_CODE_LOG: string
|
|
18
|
+
ORG_CODE_ACTIVITY: string
|
|
19
|
+
ADMIN_LEVEL_IND: string
|
|
20
|
+
ADMIN_LEVEL_CENTER: string
|
|
21
|
+
ADMIN_LEVEL_FAC: string
|
|
22
|
+
ADMIN_LEVEL_DIST: string
|
|
23
|
+
ADMIN_LEVEL_COMMON_DEPT: string
|
|
24
|
+
ADMIN_LEVEL_COMMON_POST: string
|
|
25
|
+
LEVEL_IND: string
|
|
26
|
+
LEVEL_CENTER: string
|
|
27
|
+
LEVEL_FAC: string
|
|
28
|
+
LEVEL_DIST: string
|
|
29
|
+
LEVEL_CIGAR_DIST: string
|
|
30
|
+
LEVEL_COMMON_DEPT: string
|
|
31
|
+
LEVEL_COMMON_POST: string
|
|
32
|
+
LEVEL_DIST_MANAGE_POST: string
|
|
33
|
+
LEVEL_CUST_MANAGE_POST: string
|
|
34
|
+
LEVEL_CIGAR_DIST_MANAGE_POST: string
|
|
35
|
+
LEVEL_CIGAR_CUST_MANAGE_POST: string
|
|
36
|
+
LEVEL_INTERNAL_POST: string
|
|
37
|
+
}
|
|
38
38
|
/**
|
|
39
39
|
* 将自定义的列表转换为枚举列表格式,如
|
|
40
40
|
* ```
|
|
@@ -47,10 +47,14 @@ export declare const UC_ENUM: {
|
|
|
47
47
|
* @param vProp value对应属性名
|
|
48
48
|
* @returns 公共组件可直接使用的枚举列表
|
|
49
49
|
*/
|
|
50
|
-
export declare function renderEnumList(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
export declare function renderEnumList(
|
|
51
|
+
list?: any[],
|
|
52
|
+
kProp?: string,
|
|
53
|
+
vProp?: string,
|
|
54
|
+
): {
|
|
55
|
+
K: any
|
|
56
|
+
V: any
|
|
57
|
+
}[]
|
|
54
58
|
/**
|
|
55
59
|
* 将自定义的列表转换为枚举对象格式,如
|
|
56
60
|
* ```
|
|
@@ -62,7 +66,7 @@ export declare function renderEnumList(list?: any[], kProp?: string, vProp?: str
|
|
|
62
66
|
* @param vProp value对应属性名
|
|
63
67
|
* @returns 公共组件可直接使用的枚举对象
|
|
64
68
|
*/
|
|
65
|
-
export declare function renderEnumData(list?: any[], kProp?: string, vProp?: string): any
|
|
69
|
+
export declare function renderEnumData(list?: any[], kProp?: string, vProp?: string): any
|
|
66
70
|
/**
|
|
67
71
|
* 统一处理表格列定义的枚举列
|
|
68
72
|
* - 由于表格组件不方便获取枚举数据,需要各业务先获取枚举数据后,重新组织列定义
|
|
@@ -72,7 +76,7 @@ export declare function renderEnumData(list?: any[], kProp?: string, vProp?: str
|
|
|
72
76
|
* @param enumRelation 枚举数据,支持多个枚举,格式为 `{ '枚举Id1': [{ K: '', V: ''}] }` 或 `{ '枚举Id1': { 'K': 'V' } }`
|
|
73
77
|
* @returns 新的列定义
|
|
74
78
|
*/
|
|
75
|
-
export declare function renderColumnEnums(columns?: any[], enumRelation?: {}): any[]
|
|
79
|
+
export declare function renderColumnEnums(columns?: any[], enumRelation?: {}): any[]
|
|
76
80
|
/**
|
|
77
81
|
* 统一处理表单的类枚举列
|
|
78
82
|
* - 用于处理需特定接口获取数据的列表
|
|
@@ -82,5 +86,5 @@ export declare function renderColumnEnums(columns?: any[], enumRelation?: {}): a
|
|
|
82
86
|
* @param enumRelation 枚举数据,支持多个枚举,格式为 `{ '枚举Id1': [{ K: '', V: ''}] }` 或 `{ '枚举Id1': { 'K': 'V' } }`
|
|
83
87
|
* @returns 新的表单定义
|
|
84
88
|
*/
|
|
85
|
-
export declare function renderFieldEnums(fieldList?: any[], enumRelation?: {}): any[]
|
|
86
|
-
//# sourceMappingURL=enum.d.ts.map
|
|
89
|
+
export declare function renderFieldEnums(fieldList?: any[], enumRelation?: {}): any[]
|
|
90
|
+
//# sourceMappingURL=enum.d.ts.map
|
package/types/utils/event.d.ts
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 绑定事件 on(element, event, handler)
|
|
3
3
|
*/
|
|
4
|
-
export declare function on(
|
|
4
|
+
export declare function on(
|
|
5
|
+
element: any,
|
|
6
|
+
event: any,
|
|
7
|
+
handler: any,
|
|
8
|
+
): (element: any, event: any, handler: any) => void
|
|
5
9
|
/**
|
|
6
10
|
* 解绑事件 off(element, event, handler)
|
|
7
11
|
*/
|
|
8
|
-
export declare function off(
|
|
9
|
-
|
|
12
|
+
export declare function off(
|
|
13
|
+
element: any,
|
|
14
|
+
event: any,
|
|
15
|
+
handler: any,
|
|
16
|
+
): (element: HTMLElement, event: string, handler: EventListenerOrEventListenerObject) => void
|
|
17
|
+
export declare const stopPropagation: (event: Event) => void
|
|
10
18
|
/**
|
|
11
19
|
* 事件 preventDefault
|
|
12
20
|
*
|
|
13
21
|
* @param event 事件
|
|
14
22
|
* @param isStopPropagation 是否阻止冒泡
|
|
15
23
|
*/
|
|
16
|
-
export declare function preventDefault(event: Event, isStopPropagation?: Boolean): void
|
|
17
|
-
//# sourceMappingURL=event.d.ts.map
|
|
24
|
+
export declare function preventDefault(event: Event, isStopPropagation?: Boolean): void
|
|
25
|
+
//# sourceMappingURL=event.d.ts.map
|
package/types/utils/excel.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* rowSpanIndexCol:'', // 根据哪一列进行跨行计算,如根据卷烟ITEM_NAME
|
|
18
18
|
* } excelData
|
|
19
19
|
*/
|
|
20
|
-
export function exportJsonToExcel(excelData: any): void
|
|
20
|
+
export function exportJsonToExcel(excelData: any): void
|
|
21
21
|
/**
|
|
22
22
|
* 根据参数导出excel,目前系统仅支持agGrid和iviewTable,这两个表格的columns定义都是树形的,所以这里仅支持树形的列定义即可
|
|
23
23
|
* 根据每个column的树形信息,可以计算出每个column定义的单元格跨行跨列信息,直接得出excel待导出的表头
|
|
@@ -37,12 +37,12 @@ export function exportJsonToExcel(excelData: any): void;
|
|
|
37
37
|
* rowSpanIndexCol:'', // 根据哪一列进行跨行计算,如根据卷烟ITEM_NAME
|
|
38
38
|
* } excelData
|
|
39
39
|
*/
|
|
40
|
-
export function importJsonFromExcel(excelData: any): Promise<any
|
|
40
|
+
export function importJsonFromExcel(excelData: any): Promise<any>
|
|
41
41
|
/**
|
|
42
42
|
* 根据列的数组下标返回excel对应的列号 (目前是按照.xlsx的定义计算的)
|
|
43
43
|
*
|
|
44
44
|
* @param {number} number 列的下标,从0开始计数
|
|
45
45
|
* @returns excel里的列号
|
|
46
46
|
*/
|
|
47
|
-
export function getExcelColumnIdx(number: number): string
|
|
48
|
-
//# sourceMappingURL=excel.d.ts.map
|
|
47
|
+
export function getExcelColumnIdx(number: number): string
|
|
48
|
+
//# sourceMappingURL=excel.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare function getHalfYear(date: string): string
|
|
2
|
-
export declare function getHalfYearNum(month: number | string): 0 | 1 | 2
|
|
3
|
-
export declare function formatHalfYear(halfYear: string): string
|
|
4
|
-
export declare function getHalfYearBeginMonth(halfYear: string): string
|
|
5
|
-
export declare function getHalfYearEndMonth(halfYear: string): string
|
|
6
|
-
//# sourceMappingURL=half-year.d.ts.map
|
|
1
|
+
export declare function getHalfYear(date: string): string
|
|
2
|
+
export declare function getHalfYearNum(month: number | string): 0 | 1 | 2
|
|
3
|
+
export declare function formatHalfYear(halfYear: string): string
|
|
4
|
+
export declare function getHalfYearBeginMonth(halfYear: string): string
|
|
5
|
+
export declare function getHalfYearEndMonth(halfYear: string): string
|
|
6
|
+
//# sourceMappingURL=half-year.d.ts.map
|
package/types/utils/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export * from './cache'
|
|
2
|
-
export * from './request'
|
|
3
|
-
export * from './sm3'
|
|
4
|
-
export * from './base64'
|
|
5
|
-
export * from './blob'
|
|
6
|
-
export * from './date'
|
|
7
|
-
export * from './enum'
|
|
8
|
-
export * from './excel'
|
|
9
|
-
export * from './event'
|
|
10
|
-
export * from './half-year'
|
|
11
|
-
export * from './is-type'
|
|
12
|
-
export * from './mime-type'
|
|
13
|
-
export * from './number'
|
|
14
|
-
export * from './quarter'
|
|
15
|
-
export * from './storage'
|
|
16
|
-
export * from './table'
|
|
17
|
-
export * from './token'
|
|
18
|
-
export * from './uuid'
|
|
19
|
-
export * from './validate'
|
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from './cache'
|
|
2
|
+
export * from './request'
|
|
3
|
+
export * from './sm3'
|
|
4
|
+
export * from './base64'
|
|
5
|
+
export * from './blob'
|
|
6
|
+
export * from './date'
|
|
7
|
+
export * from './enum'
|
|
8
|
+
export * from './excel'
|
|
9
|
+
export * from './event'
|
|
10
|
+
export * from './half-year'
|
|
11
|
+
export * from './is-type'
|
|
12
|
+
export * from './mime-type'
|
|
13
|
+
export * from './number'
|
|
14
|
+
export * from './quarter'
|
|
15
|
+
export * from './storage'
|
|
16
|
+
export * from './table'
|
|
17
|
+
export * from './token'
|
|
18
|
+
export * from './uuid'
|
|
19
|
+
export * from './validate'
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
package/types/utils/is-type.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export declare const isNull: (value: any) => value is null
|
|
2
|
-
export declare const isUndefined: (value: any) => value is undefined
|
|
3
|
-
export declare const isNil: (value: any) => value is null
|
|
4
|
-
export declare const getType: (value: any) => string
|
|
5
|
-
export declare const isType: (value: any, type: string) => boolean
|
|
6
|
-
export declare const isPrototype: (value: any) => boolean
|
|
7
|
-
export declare const isBoolean: (value: any) => value is boolean
|
|
8
|
-
export declare const isNumber: (value: any) => value is number
|
|
9
|
-
export declare const isString: (str: any) => str is string
|
|
10
|
-
export declare const isArray: (value: any) => value is any[]
|
|
11
|
-
export declare const isArrayLike: (value: any) => boolean
|
|
12
|
-
export declare const isObject: <T = object>(value: any) => value is T
|
|
13
|
-
export declare const isObjectLike: (value: any) => value is object
|
|
14
|
-
export declare const isPlainObject: (value: any) => value is object
|
|
15
|
-
export declare const isFunction: (value: any) => value is Function
|
|
16
|
-
export declare const isPromise: (value: any) => boolean
|
|
17
|
-
export declare const isDate: (value: any) => value is Date
|
|
18
|
-
export declare const isArguments: (value: any) => boolean
|
|
19
|
-
export declare const isRegExp: (str: any) => str is RegExp
|
|
20
|
-
export declare const isError: (value: any) => value is Error
|
|
21
|
-
export declare const isElement: (o: any) => boolean
|
|
22
|
-
export declare const isEmpty: (value: any) => boolean
|
|
23
|
-
export declare const isEqual: (value: any, other: any) => boolean
|
|
1
|
+
export declare const isNull: (value: any) => value is null
|
|
2
|
+
export declare const isUndefined: (value: any) => value is undefined
|
|
3
|
+
export declare const isNil: (value: any) => value is null
|
|
4
|
+
export declare const getType: (value: any) => string
|
|
5
|
+
export declare const isType: (value: any, type: string) => boolean
|
|
6
|
+
export declare const isPrototype: (value: any) => boolean
|
|
7
|
+
export declare const isBoolean: (value: any) => value is boolean
|
|
8
|
+
export declare const isNumber: (value: any) => value is number
|
|
9
|
+
export declare const isString: (str: any) => str is string
|
|
10
|
+
export declare const isArray: (value: any) => value is any[]
|
|
11
|
+
export declare const isArrayLike: (value: any) => boolean
|
|
12
|
+
export declare const isObject: <T = object>(value: any) => value is T
|
|
13
|
+
export declare const isObjectLike: (value: any) => value is object
|
|
14
|
+
export declare const isPlainObject: (value: any) => value is object
|
|
15
|
+
export declare const isFunction: (value: any) => value is Function
|
|
16
|
+
export declare const isPromise: (value: any) => boolean
|
|
17
|
+
export declare const isDate: (value: any) => value is Date
|
|
18
|
+
export declare const isArguments: (value: any) => boolean
|
|
19
|
+
export declare const isRegExp: (str: any) => str is RegExp
|
|
20
|
+
export declare const isError: (value: any) => value is Error
|
|
21
|
+
export declare const isElement: (o: any) => boolean
|
|
22
|
+
export declare const isEmpty: (value: any) => boolean
|
|
23
|
+
export declare const isEqual: (value: any, other: any) => boolean
|
|
24
24
|
/** number */
|
|
25
|
-
export declare const isEven: (num: any) => boolean
|
|
26
|
-
export declare const isOdd: (num: any) => boolean
|
|
27
|
-
export declare const isFinite: (value: any) => value is number
|
|
28
|
-
export declare const isInteger: (number: unknown) => boolean
|
|
29
|
-
export declare const isDecimal: (num: any) => boolean
|
|
30
|
-
export declare const isNegative: (num: any) => boolean
|
|
31
|
-
export declare const isPositive: (num: any) => boolean
|
|
32
|
-
export declare const isNumberEqual: (a: number, b: number, precision?: number) => boolean
|
|
33
|
-
export declare const isEqualWith: <T>(value: T, other: T, fn: (v1: T, v2: T) => boolean) => boolean
|
|
34
|
-
//# sourceMappingURL=is-type.d.ts.map
|
|
25
|
+
export declare const isEven: (num: any) => boolean
|
|
26
|
+
export declare const isOdd: (num: any) => boolean
|
|
27
|
+
export declare const isFinite: (value: any) => value is number
|
|
28
|
+
export declare const isInteger: (number: unknown) => boolean
|
|
29
|
+
export declare const isDecimal: (num: any) => boolean
|
|
30
|
+
export declare const isNegative: (num: any) => boolean
|
|
31
|
+
export declare const isPositive: (num: any) => boolean
|
|
32
|
+
export declare const isNumberEqual: (a: number, b: number, precision?: number) => boolean
|
|
33
|
+
export declare const isEqualWith: <T>(value: T, other: T, fn: (v1: T, v2: T) => boolean) => boolean
|
|
34
|
+
//# sourceMappingURL=is-type.d.ts.map
|