@das-fed/utils 6.4.0-hot.5 → 6.4.0-hot.51
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/api-services/i18n/index.d.ts +53 -0
- package/api-services/i18n/index.js +27 -0
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +2158 -1651
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +2270 -1811
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +2287 -1810
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +2290 -1813
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +2287 -1810
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +2262 -1803
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +2287 -1810
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.d.ts +1 -0
- package/api-services/modules/file/index.js +3407 -156
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +2270 -1811
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +2099 -1635
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.d.ts +1 -0
- package/api-services/modules/iot/index.js +2301 -1823
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +2275 -1798
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +2287 -1810
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +2270 -1811
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +2287 -1810
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +2294 -1817
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +2274 -1797
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +2274 -1811
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +2265 -1802
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +2276 -1799
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +2274 -1797
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +2287 -1810
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +2270 -1811
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +2256 -1797
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.d.ts +11 -3
- package/common-info/index.js +112 -56
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +865 -592
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +218 -104
- package/common-tools/calc-text-width/index.d.ts +1 -0
- package/common-tools/calc-text-width/index.js +10 -0
- package/common-tools/extract-file-name/index.d.ts +1 -0
- package/common-tools/extract-file-name/index.js +1715 -0
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-file-extension/index.d.ts +6 -0
- package/common-tools/get-file-extension/index.js +7 -0
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/common-tools/index.d.ts +4 -0
- package/common-tools/index.js +4 -0
- package/common-tools/nest-tree-format/index.d.ts +1 -1
- package/common-tools/nest-tree-format/index.js +15 -15
- package/common-tools/setHtmlMinWH/index.js +4 -8
- package/common-tools/update-browser-title/index.d.ts +1 -0
- package/common-tools/update-browser-title/index.js +12 -0
- package/common-tools/update-fav-icon/index.js +15 -14
- package/create-api-service/i18n/index.d.ts +33 -0
- package/create-api-service/i18n/index.js +15 -0
- package/create-api-service/index.d.ts +3 -1
- package/create-api-service/index.js +2273 -1796
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.d.ts +0 -2
- package/create-api-service/sso/index.js +1200 -837
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +1355 -1088
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +87 -87
- package/directive/auth/index.js.gz +0 -0
- package/directive/hoverInside/index.d.ts +1 -1
- package/dom-check-in/index.js +2 -2
- package/dom-watcher/index.d.ts +1 -1
- package/esm-map.json +9 -2
- package/hooks/popup-manager/use-zindex/index.d.ts +0 -2
- package/hooks/popup-manager/use-zindex/index.js +7 -20
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/index.js +19804 -20879
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js +4 -2
- package/style/index.js.gz +0 -0
- package/style/math.d.ts +4 -4
- package/token-tools/index.d.ts +6 -6
- package/token-tools/index.js +8 -84
- package/use-low-code/index.js +13 -13
- package/use-low-code/index.js.gz +0 -0
- package/use-low-code/style.css +1 -1
- package/webSocket-service/index.js.gz +0 -0
- package/webSocket-service/type.d.ts +28 -28
- package/token-tools/index.js.gz +0 -0
package/curring-http/index.js.gz
CHANGED
|
Binary file
|
package/curring-http/type.d.ts
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig, AxiosError } from 'axios';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/** 请求工具配置项 */
|
|
6
|
-
export type CurringConfig = AxiosRequestConfig & {
|
|
7
|
-
/** 请求实例 */
|
|
8
|
-
axiosInstance?: AxiosInstance
|
|
9
|
-
|
|
10
|
-
/** 请求方法 */
|
|
11
|
-
method?: Method
|
|
12
|
-
|
|
13
|
-
/** 请求的body数据 */
|
|
14
|
-
data?: any
|
|
15
|
-
|
|
16
|
-
/** 请求的query数据 */
|
|
17
|
-
params?: any
|
|
18
|
-
|
|
19
|
-
/** 接口地址前缀 */
|
|
20
|
-
urlPrefix?: string
|
|
21
|
-
|
|
22
|
-
/** 标记为公共接口,不需要鉴权,默认为false */
|
|
23
|
-
public?: boolean
|
|
24
|
-
|
|
25
|
-
/** 请求成功执行的回调 */
|
|
26
|
-
onSuccess?: (res: any, config: CurringConfig) => Promise<any>
|
|
27
|
-
|
|
28
|
-
/** 请求失败执行的回调 */
|
|
29
|
-
onError?: (error: any, config: CurringConfig) => Promise<any>
|
|
30
|
-
|
|
31
|
-
/** 自定义处理请求失败执行的回调 */
|
|
32
|
-
onCustomError?: (error: any, config: CurringConfig) => Promise<any>
|
|
33
|
-
|
|
34
|
-
/** 不管请求成功或失败都会执行的回调 */
|
|
35
|
-
finally?: (config: CurringConfig) => any
|
|
36
|
-
|
|
37
|
-
/** 每次请求之前都会执行的函数 */
|
|
38
|
-
beforeRun?: (config: CurringConfig) => Promise<CurringConfig>
|
|
39
|
-
|
|
40
|
-
/** 自定义错误信息 */
|
|
41
|
-
customErrorMessage?: (
|
|
42
|
-
/** 原始错误信息 */
|
|
43
|
-
message: string,
|
|
44
|
-
|
|
45
|
-
/** 原始错误对象 */
|
|
46
|
-
error: any,
|
|
47
|
-
) => string | null | undefined
|
|
48
|
-
|
|
49
|
-
/** 忽略错误提示 */
|
|
50
|
-
ignoreErrorMessage?: boolean
|
|
51
|
-
|
|
52
|
-
/** 接口401是否重定向到登录页 */
|
|
53
|
-
noRedireLogin?: boolean
|
|
54
|
-
|
|
55
|
-
/** 开启CSRF安全选项 */
|
|
56
|
-
csrf?: boolean
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export type Method = 'get' | 'post' | 'put' | 'delete' | 'patch'
|
|
60
|
-
|
|
61
|
-
export type CurringConfigFun = (config: CurringConfig) => CurringConfig | Promise<CurringConfig>
|
|
62
|
-
|
|
63
|
-
export type CurringRes = {
|
|
64
|
-
/** 请求时返回的接口数据 */
|
|
65
|
-
data: Ref<any>
|
|
66
|
-
|
|
67
|
-
/** 请求时的错误信息 */
|
|
68
|
-
error: Ref<any>
|
|
69
|
-
|
|
70
|
-
/** 请求时的loading */
|
|
71
|
-
loading: Ref<boolean>
|
|
72
|
-
|
|
73
|
-
/** 发起请求 返回格式 [ error, data ] */
|
|
74
|
-
run: (payload?: any, config?: CurringConfig) => CurringRunRes
|
|
75
|
-
|
|
76
|
-
/** 取消请求控制器 */
|
|
77
|
-
abortController: Ref<AbortController | null>
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/** 返回为数组 [error, data], 请求成功error为null,请求失败data为null */
|
|
81
|
-
export type CurringRunRes = Promise<
|
|
82
|
-
[
|
|
83
|
-
/** 请求返回的错误信息,请求成功时为null,请求失败时为错误信息 */
|
|
84
|
-
error: { code: string | number; msg: string; error: AxiosError } | null,
|
|
85
|
-
|
|
86
|
-
/** 请求返回的接口数据,请求成功时为后端数据,请求失败时为null */
|
|
87
|
-
data: any | null,
|
|
88
|
-
]
|
|
89
|
-
>
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/** 请求工具配置项 */
|
|
6
|
+
export type CurringConfig = AxiosRequestConfig & {
|
|
7
|
+
/** 请求实例 */
|
|
8
|
+
axiosInstance?: AxiosInstance
|
|
9
|
+
|
|
10
|
+
/** 请求方法 */
|
|
11
|
+
method?: Method
|
|
12
|
+
|
|
13
|
+
/** 请求的body数据 */
|
|
14
|
+
data?: any
|
|
15
|
+
|
|
16
|
+
/** 请求的query数据 */
|
|
17
|
+
params?: any
|
|
18
|
+
|
|
19
|
+
/** 接口地址前缀 */
|
|
20
|
+
urlPrefix?: string
|
|
21
|
+
|
|
22
|
+
/** 标记为公共接口,不需要鉴权,默认为false */
|
|
23
|
+
public?: boolean
|
|
24
|
+
|
|
25
|
+
/** 请求成功执行的回调 */
|
|
26
|
+
onSuccess?: (res: any, config: CurringConfig) => Promise<any>
|
|
27
|
+
|
|
28
|
+
/** 请求失败执行的回调 */
|
|
29
|
+
onError?: (error: any, config: CurringConfig) => Promise<any>
|
|
30
|
+
|
|
31
|
+
/** 自定义处理请求失败执行的回调 */
|
|
32
|
+
onCustomError?: (error: any, config: CurringConfig) => Promise<any>
|
|
33
|
+
|
|
34
|
+
/** 不管请求成功或失败都会执行的回调 */
|
|
35
|
+
finally?: (config: CurringConfig) => any
|
|
36
|
+
|
|
37
|
+
/** 每次请求之前都会执行的函数 */
|
|
38
|
+
beforeRun?: (config: CurringConfig) => Promise<CurringConfig>
|
|
39
|
+
|
|
40
|
+
/** 自定义错误信息 */
|
|
41
|
+
customErrorMessage?: (
|
|
42
|
+
/** 原始错误信息 */
|
|
43
|
+
message: string,
|
|
44
|
+
|
|
45
|
+
/** 原始错误对象 */
|
|
46
|
+
error: any,
|
|
47
|
+
) => string | null | undefined
|
|
48
|
+
|
|
49
|
+
/** 忽略错误提示 */
|
|
50
|
+
ignoreErrorMessage?: boolean
|
|
51
|
+
|
|
52
|
+
/** 接口401是否重定向到登录页 */
|
|
53
|
+
noRedireLogin?: boolean
|
|
54
|
+
|
|
55
|
+
/** 开启CSRF安全选项 */
|
|
56
|
+
csrf?: boolean
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type Method = 'get' | 'post' | 'put' | 'delete' | 'patch'
|
|
60
|
+
|
|
61
|
+
export type CurringConfigFun = (config: CurringConfig) => CurringConfig | Promise<CurringConfig>
|
|
62
|
+
|
|
63
|
+
export type CurringRes = {
|
|
64
|
+
/** 请求时返回的接口数据 */
|
|
65
|
+
data: Ref<any>
|
|
66
|
+
|
|
67
|
+
/** 请求时的错误信息 */
|
|
68
|
+
error: Ref<any>
|
|
69
|
+
|
|
70
|
+
/** 请求时的loading */
|
|
71
|
+
loading: Ref<boolean>
|
|
72
|
+
|
|
73
|
+
/** 发起请求 返回格式 [ error, data ] */
|
|
74
|
+
run: (payload?: any, config?: CurringConfig) => CurringRunRes
|
|
75
|
+
|
|
76
|
+
/** 取消请求控制器 */
|
|
77
|
+
abortController: Ref<AbortController | null>
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** 返回为数组 [error, data], 请求成功error为null,请求失败data为null */
|
|
81
|
+
export type CurringRunRes = Promise<
|
|
82
|
+
[
|
|
83
|
+
/** 请求返回的错误信息,请求成功时为null,请求失败时为错误信息 */
|
|
84
|
+
error: { code: string | number; msg: string; error: AxiosError } | null,
|
|
85
|
+
|
|
86
|
+
/** 请求返回的接口数据,请求成功时为后端数据,请求失败时为null */
|
|
87
|
+
data: any | null,
|
|
88
|
+
]
|
|
89
|
+
>
|
|
Binary file
|
package/dom-check-in/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const d = (e) => {
|
|
2
2
|
const t = window.event;
|
|
3
|
-
let i = Number(t.clientX), n = Number(t.clientY), l = Number(e.getBoundingClientRect().left),
|
|
4
|
-
return i > l && i <
|
|
3
|
+
let i = Number(t.clientX), n = Number(t.clientY), l = Number(e.getBoundingClientRect().left), r = Number(l + e.clientWidth), c = Number(e.getBoundingClientRect().top), u = Number(c + e.clientHeight);
|
|
4
|
+
return i > l && i < r && n > c && n < u;
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
7
|
d as domCheckIn
|
package/dom-watcher/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface Config {
|
|
|
5
5
|
attributes?: boolean;
|
|
6
6
|
/** 要监视的特定属性名称的数组,如果未包含此属性,则对所有属性的更改都会触发变动通知; */
|
|
7
7
|
attributeFilter?: any[];
|
|
8
|
-
/**
|
|
8
|
+
/** 在attributes属性已经设为true的前提下, 将发生变化的属性节点之前的属性值记录下来(记录在MutationRecord对象的oldValue属性中); */
|
|
9
9
|
attributeOldValue?: boolean;
|
|
10
10
|
/** 在characterData属性已经设为true的前提下,将发生变化characterData节点之前的文本内容记录下来(记录在MutationRecord对象的oldValue属性中); */
|
|
11
11
|
characterDataOldValue?: boolean;
|
package/esm-map.json
CHANGED
|
@@ -112,7 +112,6 @@
|
|
|
112
112
|
"getAccessTokenInfo": "/token-tools/index",
|
|
113
113
|
"setAccessToken": "/token-tools/index",
|
|
114
114
|
"removeAccessToken": "/token-tools/index",
|
|
115
|
-
"clearAllCookies": "/token-tools/index",
|
|
116
115
|
"socketService": "/webSocket-service/index",
|
|
117
116
|
"getTokenFromQuery": "/common-info/getInfoFromUrl/index",
|
|
118
117
|
"getProjectInfoFromQuery": "/common-info/getInfoFromUrl/index",
|
|
@@ -135,5 +134,13 @@
|
|
|
135
134
|
"useAntvX6": "/dimple-canvas/use-dimple-canvas/core/antv-x6/index",
|
|
136
135
|
"addObject": "/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index",
|
|
137
136
|
"useKonva": "/dimple-canvas/use-dimple-canvas/core/konva/index",
|
|
138
|
-
"setShowWatermark": "/common-tools/platform-tools/index"
|
|
137
|
+
"setShowWatermark": "/common-tools/platform-tools/index",
|
|
138
|
+
"extractFilename": "/common-tools/extract-file-name/index",
|
|
139
|
+
"setBrowseTitle": "/common-tools/update-browser-title/index",
|
|
140
|
+
"getPersonalConfig": "/common-info/index",
|
|
141
|
+
"getProjectMessage": "/common-info/index",
|
|
142
|
+
"analyApi": "/api-services/modules/iot/index",
|
|
143
|
+
"calcTextWidth": "/common-tools/calc-text-width/index",
|
|
144
|
+
"getFileExtension": "/common-tools/get-file-extension/index",
|
|
145
|
+
"getLanguages": "/common-info/index"
|
|
139
146
|
}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return {
|
|
8
|
-
initialZIndex: r,
|
|
9
|
-
currentZIndex: x,
|
|
10
|
-
nextZIndex: () => (c.value++, x.value)
|
|
11
|
-
};
|
|
12
|
-
}, o = v(), f = () => {
|
|
13
|
-
const n = e(() => o.initialZIndex.value), t = e(() => o.currentZIndex.value);
|
|
14
|
-
return {
|
|
15
|
-
initialZIndex: n,
|
|
16
|
-
currentZIndex: t,
|
|
17
|
-
nextZIndex: () => o.nextZIndex()
|
|
18
|
-
};
|
|
19
|
-
};
|
|
1
|
+
const n = () => [...document.body.querySelectorAll("*")].reduce(
|
|
2
|
+
(e, t) => Math.max(e, +window.getComputedStyle(t).zIndex || 0),
|
|
3
|
+
0
|
|
4
|
+
), d = () => ({
|
|
5
|
+
nextZIndex: () => n() + 1
|
|
6
|
+
});
|
|
20
7
|
export {
|
|
21
|
-
|
|
8
|
+
d as useZIndex
|
|
22
9
|
};
|
|
Binary file
|
package/nextTiken/index.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/utils",
|
|
3
|
-
"version": "6.4.0-hot.
|
|
3
|
+
"version": "6.4.0-hot.51",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "ISC",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@antv/x6": "^2.18.1",
|
|
12
|
-
"@das-fed/utils": "6.4.0-hot.
|
|
12
|
+
"@das-fed/utils": "6.4.0-hot.51",
|
|
13
13
|
"@vue/shared": "^3.4.21",
|
|
14
14
|
"@vueuse/core": "^9.6.0",
|
|
15
15
|
"axios": "^1.6.7",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"vue": "^3.4.21"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@das-fed/cli": "6.4.0-hot.
|
|
24
|
+
"@das-fed/cli": "6.4.0-hot.51",
|
|
25
|
+
"@das-fed/web": "6.4.0-hot.51",
|
|
25
26
|
"@types/js-cookie": "^3.0.6",
|
|
26
27
|
"@types/lodash-es": "^4.17.12",
|
|
27
28
|
"@types/qs": "^6.9.15",
|
|
@@ -29,7 +30,6 @@
|
|
|
29
30
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
30
31
|
"ant-design-vue": "3.2.20",
|
|
31
32
|
"consola": "^3.2.3",
|
|
32
|
-
"element-plus": "2.4.2",
|
|
33
33
|
"execa": "^9.3.0",
|
|
34
34
|
"fast-glob": "^3.3.2",
|
|
35
35
|
"fs-extra": "^11.2.0",
|