@das-fed/utils 6.4.0-hot.6 → 6.4.0-hot.60

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.
Files changed (111) hide show
  1. package/api-services/i18n/index.d.ts +53 -0
  2. package/api-services/i18n/index.js +27 -0
  3. package/api-services/i18n/index.js.gz +0 -0
  4. package/api-services/index.js +2140 -1632
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/index.js +2314 -1818
  7. package/api-services/modules/app-manage/index.js.gz +0 -0
  8. package/api-services/modules/authentication/index.js +2314 -1818
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/index.js +2317 -1821
  11. package/api-services/modules/bems/index.js.gz +0 -0
  12. package/api-services/modules/contract/index.js +2314 -1818
  13. package/api-services/modules/contract/index.js.gz +0 -0
  14. package/api-services/modules/duty-manage/index.js +2305 -1809
  15. package/api-services/modules/duty-manage/index.js.gz +0 -0
  16. package/api-services/modules/enterpriseright/index.js +2314 -1818
  17. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  18. package/api-services/modules/file/index.d.ts +1 -0
  19. package/api-services/modules/file/index.js +3446 -158
  20. package/api-services/modules/file/index.js.gz +0 -0
  21. package/api-services/modules/gateway-edge/index.js +2314 -1818
  22. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  23. package/api-services/modules/index.js +2164 -1663
  24. package/api-services/modules/index.js.gz +0 -0
  25. package/api-services/modules/iot/index.d.ts +1 -0
  26. package/api-services/modules/iot/index.js +2287 -1790
  27. package/api-services/modules/iot/index.js.gz +0 -0
  28. package/api-services/modules/justauth/index.js +2302 -1806
  29. package/api-services/modules/justauth/index.js.gz +0 -0
  30. package/api-services/modules/knowledge/index.js +2314 -1818
  31. package/api-services/modules/knowledge/index.js.gz +0 -0
  32. package/api-services/modules/link/index.js +2314 -1818
  33. package/api-services/modules/link/index.js.gz +0 -0
  34. package/api-services/modules/permission/index.js +2314 -1818
  35. package/api-services/modules/permission/index.js.gz +0 -0
  36. package/api-services/modules/platformManage/index.js +2321 -1825
  37. package/api-services/modules/platformManage/index.js.gz +0 -0
  38. package/api-services/modules/portal/index.js +2349 -1871
  39. package/api-services/modules/portal/index.js.gz +0 -0
  40. package/api-services/modules/space-manage/index.js +2314 -1818
  41. package/api-services/modules/space-manage/index.js.gz +0 -0
  42. package/api-services/modules/super-admin/index.js +2304 -1808
  43. package/api-services/modules/super-admin/index.js.gz +0 -0
  44. package/api-services/modules/supplier/index.js +2303 -1807
  45. package/api-services/modules/supplier/index.js.gz +0 -0
  46. package/api-services/modules/supplychain-manage/index.js +2349 -1871
  47. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  48. package/api-services/modules/systemConfiguration/index.js +2295 -1817
  49. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  50. package/api-services/modules/tool/index.js +2314 -1818
  51. package/api-services/modules/tool/index.js.gz +0 -0
  52. package/api-services/src/create-service/index.js +2300 -1804
  53. package/api-services/src/create-service/index.js.gz +0 -0
  54. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  55. package/common-info/index.d.ts +11 -3
  56. package/common-info/index.js +112 -56
  57. package/common-info/index.js.gz +0 -0
  58. package/common-info/set-personal-info/index.js +893 -604
  59. package/common-info/set-personal-info/index.js.gz +0 -0
  60. package/common-info/type.d.ts +218 -104
  61. package/common-tools/calc-text-width/index.d.ts +1 -0
  62. package/common-tools/calc-text-width/index.js +10 -0
  63. package/common-tools/extract-file-name/index.d.ts +1 -0
  64. package/common-tools/extract-file-name/index.js +1731 -0
  65. package/common-tools/extract-file-name/index.js.gz +0 -0
  66. package/common-tools/get-file-extension/index.d.ts +6 -0
  67. package/common-tools/get-file-extension/index.js +7 -0
  68. package/common-tools/get-url-params/index.d.ts +1 -1
  69. package/common-tools/get-url-params/index.js.gz +0 -0
  70. package/common-tools/index.d.ts +4 -0
  71. package/common-tools/index.js +4 -0
  72. package/common-tools/nest-tree-format/index.d.ts +1 -1
  73. package/common-tools/nest-tree-format/index.js +15 -15
  74. package/common-tools/setHtmlMinWH/index.js +4 -8
  75. package/common-tools/update-browser-title/index.d.ts +1 -0
  76. package/common-tools/update-browser-title/index.js +12 -0
  77. package/create-api-service/i18n/index.d.ts +33 -0
  78. package/create-api-service/i18n/index.js +15 -0
  79. package/create-api-service/index.d.ts +3 -1
  80. package/create-api-service/index.js +2349 -1871
  81. package/create-api-service/index.js.gz +0 -0
  82. package/create-api-service/sso/index.d.ts +0 -2
  83. package/create-api-service/sso/index.js +1243 -854
  84. package/create-api-service/sso/index.js.gz +0 -0
  85. package/curring-http/index.js +1436 -1153
  86. package/curring-http/index.js.gz +0 -0
  87. package/curring-http/type.d.ts +87 -87
  88. package/directive/auth/index.js.gz +0 -0
  89. package/directive/hoverInside/index.d.ts +1 -1
  90. package/dom-check-in/index.js +2 -2
  91. package/dom-watcher/index.d.ts +1 -1
  92. package/esm-map.json +9 -2
  93. package/hooks/use-get-auth/index.d.ts +1 -1
  94. package/hooks/use-get-auth/index.js +30 -30
  95. package/hooks/use-get-auth/index.js.gz +0 -0
  96. package/nextTiken/index.js.gz +0 -0
  97. package/package.json +4 -3
  98. package/pinyin-first-character/index.js +19804 -20879
  99. package/pinyin-first-character/index.js.gz +0 -0
  100. package/style/index.js +4 -2
  101. package/style/index.js.gz +0 -0
  102. package/style/math.d.ts +4 -4
  103. package/token-tools/index.d.ts +6 -6
  104. package/token-tools/index.js +8 -84
  105. package/use-low-code/index.js +13 -13
  106. package/use-low-code/index.js.gz +0 -0
  107. package/use-low-code/style.css +1 -1
  108. package/vue/hooks/use-model-value/index.d.ts +5 -1
  109. package/webSocket-service/index.js.gz +0 -0
  110. package/webSocket-service/type.d.ts +28 -28
  111. package/token-tools/index.js.gz +0 -0
@@ -1,104 +1,218 @@
1
- export interface UserInfo {
2
- /** 用户id */
3
- id: string
4
- /** 用户名称 */
5
- name: string
6
- /** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
7
- flag: number
8
- /** 租户id */
9
- tenantId: string
10
- }
11
-
12
- export interface PersonalInfo {
13
- /** id */
14
- id: string
15
- /** 名称 */
16
- name: string
17
- /** 手机号 */
18
- phone: string
19
- /** 用户名称 */
20
- userName: string
21
- /** 邮箱 */
22
- email: string
23
- /** 头像 */
24
- headPicture: string
25
- }
26
-
27
- export interface TenantInfo {
28
- /** 用户ID */
29
- userId: string
30
- /** 用户名 */
31
- userName: string
32
- name: string
33
- /** 租户信息 */
34
- tenant: {
35
- id: string
36
- name: string
37
- adminUserId: string
38
- description: string
39
- domain: string
40
- }
41
- /** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
42
- flag: number
43
- areaCode: string
44
- /** 手机号 */
45
- phone: string
46
- }
47
-
48
- export interface HomeInfo {
49
- applicationCode: string
50
- applicationPath: string
51
- enable: boolean
52
- originalCode: string
53
- routeUrl: string
54
- type: number | null
55
- }
56
-
57
- export interface ProjectInfo {
58
- /** 项目id */
59
- id: string | number
60
- /** 父级id */
61
- parentId?: string
62
- /** 项目名称 */
63
- name: string
64
- /** 租户id */
65
- tenantId?: string
66
- }
67
-
68
- export interface SubAppsInfo {
69
- /** 所有应用信息 */
70
- appcategorys?: any[]
71
- /** 当前应用完整信息 */
72
- currentSubApp?: any
73
- /** 所有应用 */
74
- flatSubAppList?: any[]
75
- /** 当前应用code */
76
- currentSubAppCode?: string
77
- /** 当前打开的应用 */
78
- subAppList?: any[]
79
- }
80
-
81
- interface TabItem {
82
- /** 当前应用url */
83
- currentApplication: string
84
- /** 当前加载的应用 */
85
- applicationPath: string
86
- applicationCode: string
87
- menuId: string
88
- name: string
89
- path: string
90
- code: string
91
- query?: any
92
- }
93
- export interface TabInfo {
94
- /** 当前tabs key */
95
- currentCode?: string
96
- /** 当前tabs */
97
- currentTab?: TabItem
98
- /** 用于记录该应用上次开启的tab */
99
- preTab?: Record<string, TabItem>
100
- /** 当前打开的tabs(微前端环境会存入) */
101
- tabMap?: Record<string, TabItem[]>
102
- }
103
-
104
- export type permissionBtnInfo = { code?: string; name?: string }[]
1
+ export interface UserInfo {
2
+ /** 用户id */
3
+ id: string
4
+ /** 用户名称 */
5
+ name: string
6
+ /** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
7
+ flag: number
8
+ /** 租户id */
9
+ tenantId: string
10
+ }
11
+
12
+ export interface PersonalInfo {
13
+ /** id */
14
+ id: string
15
+ /** 名称 */
16
+ name: string
17
+ /** 手机号 */
18
+ phone: string
19
+ /** 用户名称 */
20
+ userName: string
21
+ /** 邮箱 */
22
+ email: string
23
+ /** 头像 */
24
+ headPicture: string
25
+ }
26
+
27
+ export interface TenantInfo {
28
+ /** 用户ID */
29
+ userId: string
30
+ /** 用户名 */
31
+ userName: string
32
+ /** 用户名称 */
33
+ name: string
34
+ /** 昵称 */
35
+ nickName: string
36
+ /** 手机号 */
37
+ phone: string
38
+ /** 邮箱 */
39
+ email: string
40
+ /** 性别 1 男 2 女 */
41
+ gender: number
42
+ /** 用户状态 1 正常 2 锁定 3 禁用*/
43
+ status: number
44
+ /** 状态名称 */
45
+ statusName: string
46
+ /** 用户类型。0:普通 1:管理员 */
47
+ type: number
48
+ /** 租户信息 */
49
+ tenant: {
50
+ /** 租户ID */
51
+ id: string
52
+ /** 租户名 */
53
+ name: string
54
+ /** 域,如:qq,das */
55
+ domain: string
56
+ /** 管理员用户ID */
57
+ adminUserId: string
58
+ /** 租户描述 */
59
+ description: string
60
+ /** 是否开通三员权限管理,0表示未开通,1表示已开通。 */
61
+ thirdManaged: number
62
+ }
63
+ /** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
64
+ flag: number
65
+ /** 当前区号 */
66
+ areaCode: string
67
+ /** 地区 */
68
+ region: string
69
+ /** 地址 */
70
+ address: string
71
+ /** 描述 */
72
+ description: string
73
+
74
+ /** 头像 */
75
+ headPicture: string
76
+ /** 用户标签 */
77
+ tags: {
78
+ id: number
79
+ key: string
80
+ value: string
81
+ desc: string
82
+ }[]
83
+ }
84
+
85
+ export interface HomeInfo {
86
+ /** 应用code */
87
+ applicationCode: string
88
+ /** 应用path */
89
+ applicationPath: string
90
+ /** 是否启用 */
91
+ enable: boolean
92
+ originalCode: string
93
+ routeUrl: string
94
+ /** 首页展示位置 1在应用中心左侧 2在应用中心右侧 */
95
+ displayPosition: 1 | 2
96
+ type: number | null
97
+ }
98
+
99
+ export interface PersonalConfigInfo {
100
+ /** 侧边栏菜单风格(1:弹出式;2:内嵌式 )*/
101
+ style: 1 | 2
102
+ /** 皮肤风格 (default:默认皮肤;kjl:科技蓝;cjb:纯净白;ssl:深邃蓝)*/
103
+ skinStyle: 'default' | 'kjl' | 'cjb' | 'ssl'
104
+ }
105
+
106
+ export interface ProjectInfo {
107
+ /** 项目id */
108
+ id: string
109
+ /** 项目编码 */
110
+ code: string
111
+ /** 项目名称 */
112
+ name: string
113
+ /** 项目类型: 1: 集团、 2:公司、3: 区域、4: 分公司、 5: 子公司、6: 管理中心、 7: 项目、8: 部门、 9: 组 */
114
+ type: string
115
+ /** 父级id */
116
+ parentId?: string
117
+ /** 父级名称 */
118
+ parentName?: string
119
+ /** 父级项目类型:1: 集团、 2:公司、3: 区域、4: 分公司、 5: 子公司、6: 管理中心、 7: 项目、8: 部门、 9: 组 */
120
+ parentType?: number
121
+ /** 租户id */
122
+ tenantId?: string
123
+ /** 是否父级节点 */
124
+ isParent?: boolean
125
+ /** 是否叶子节点 */
126
+ leaf?: boolean
127
+ /** 是否可用 */
128
+ optional?: boolean
129
+ }
130
+
131
+ export interface ProjectMessage {
132
+ /** 主键id */
133
+ id: number | string
134
+ /** 项目名称 */
135
+ projectName: string
136
+ /** 省级(省份、直辖市、自治区)编码 */
137
+ provinceCode: string
138
+ /** 地级(城市)编码 */
139
+ cityCode: string
140
+ /** 县级(区县)编码 */
141
+ areaCode: string
142
+ /** 详细位置 */
143
+ address: string
144
+ /** 项目简介 */
145
+ projectDesc: string
146
+ /** 项目图片路径 */
147
+ logoPath: string
148
+ /** 项目类型 */
149
+ projectType: string
150
+ /** 项目类型code */
151
+ projectTypeCode: string
152
+ /** 经度 */
153
+ longitude: string
154
+ /** 纬度 */
155
+ latitude: string
156
+ /** 项目开始时间 */
157
+ projectStartDate: string
158
+ /** 项目有效期 */
159
+ projectExpiryDate: string
160
+ /** 项目编码 */
161
+ projectCode: string
162
+ /** 地图配置是否开启 */
163
+ mapConfiguration: boolean
164
+ /** 地级(城市)名称 */
165
+ cityName: string
166
+ /** 地级(城市)名称拼音 */
167
+ cityNamePinyin: string
168
+ /** 时区ID */
169
+ timezone: string
170
+ /** 是否自动设定时区 */
171
+ autoTimezone: boolean
172
+ /** 货币信息(currencyCode:ISO 4217货币编码(例:CNY);currencyUnit:货币单位,例:元(中文),CNY(英文);currencySymbol:货币符号,例:¥) */
173
+ currency: Record<'currencyCode' | 'currencyUnit' | 'currencySymbol', string>
174
+ }
175
+
176
+ export interface SubAppsInfo {
177
+ /** 所有应用信息 */
178
+ appcategorys: any[]
179
+ /** 当前应用完整信息 */
180
+ currentSubApp: {
181
+ /** 当前菜单code */
182
+ currentMenuCode: string
183
+ /** 当前应用下的菜单数据 */
184
+ menus: any[]
185
+ [key: string]: any
186
+ }
187
+ /** 当前应用code */
188
+ currentSubAppCode: string
189
+ /** 当前打开的应用 */
190
+ subAppList: any[]
191
+ /** 当前菜单折叠的应用key集合 */
192
+ menuCollapses: any[]
193
+ }
194
+
195
+ interface TabItem {
196
+ /** 当前应用url */
197
+ currentApplication: string
198
+ /** 当前加载的应用 */
199
+ applicationPath: string
200
+ applicationCode: string
201
+ menuId: string
202
+ name: string
203
+ path: string
204
+ code: string
205
+ query?: any
206
+ }
207
+ export interface TabInfo {
208
+ /** 当前tabs key */
209
+ currentCode?: string
210
+ /** 当前tabs */
211
+ currentTab?: TabItem
212
+ /** 用于记录该应用上次开启的tab */
213
+ preTab?: Record<string, TabItem>
214
+ /** 当前打开的tabs(微前端环境会存入) */
215
+ tabMap?: Record<string, TabItem[]>
216
+ }
217
+
218
+ export type permissionBtnInfo = { code?: string; name?: string }[]
@@ -0,0 +1 @@
1
+ export declare const calcTextWidth: (text: string, fontSize: number) => any;
@@ -0,0 +1,10 @@
1
+ const n = (t, i) => {
2
+ if (!t) return 0;
3
+ const e = document.createElement("div");
4
+ e.style.visibility = "hidden", e.style.whiteSpace = "pre", e.style.display = "inline-block", e.style.fontSize = i + "px", e.textContent = t, document.body.appendChild(e);
5
+ const d = e.offsetWidth;
6
+ return document.body.removeChild(e), d;
7
+ };
8
+ export {
9
+ n as calcTextWidth
10
+ };
@@ -0,0 +1 @@
1
+ export declare const extractFilename: (fileUrl: string) => unknown;