@das-fed/utils 6.4.0-test.3.1 → 6.4.0-test.30

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 (93) 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 +1589 -1395
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/index.js +1390 -1226
  7. package/api-services/modules/app-manage/index.js.gz +0 -0
  8. package/api-services/modules/authentication/index.js +1340 -1190
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/index.js +1347 -1201
  11. package/api-services/modules/bems/index.js.gz +0 -0
  12. package/api-services/modules/contract/index.js +1390 -1226
  13. package/api-services/modules/contract/index.js.gz +0 -0
  14. package/api-services/modules/duty-manage/index.js +1395 -1231
  15. package/api-services/modules/duty-manage/index.js.gz +0 -0
  16. package/api-services/modules/enterpriseright/index.js +1384 -1224
  17. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  18. package/api-services/modules/file/index.js +1526 -1357
  19. package/api-services/modules/file/index.js.gz +0 -0
  20. package/api-services/modules/gateway-edge/index.js +1390 -1226
  21. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  22. package/api-services/modules/index.js +1526 -1357
  23. package/api-services/modules/index.js.gz +0 -0
  24. package/api-services/modules/iot/index.d.ts +1 -0
  25. package/api-services/modules/iot/index.js +1422 -1257
  26. package/api-services/modules/iot/index.js.gz +0 -0
  27. package/api-services/modules/justauth/index.js +1364 -1218
  28. package/api-services/modules/justauth/index.js.gz +0 -0
  29. package/api-services/modules/knowledge/index.js +1401 -1237
  30. package/api-services/modules/knowledge/index.js.gz +0 -0
  31. package/api-services/modules/link/index.js +1343 -1197
  32. package/api-services/modules/link/index.js.gz +0 -0
  33. package/api-services/modules/permission/index.js +1390 -1226
  34. package/api-services/modules/permission/index.js.gz +0 -0
  35. package/api-services/modules/platformManage/index.js +1400 -1236
  36. package/api-services/modules/platformManage/index.js.gz +0 -0
  37. package/api-services/modules/portal/index.js +1390 -1226
  38. package/api-services/modules/portal/index.js.gz +0 -0
  39. package/api-services/modules/space-manage/index.js +1390 -1226
  40. package/api-services/modules/space-manage/index.js.gz +0 -0
  41. package/api-services/modules/super-admin/index.js +1381 -1217
  42. package/api-services/modules/super-admin/index.js.gz +0 -0
  43. package/api-services/modules/supplier/index.js +1346 -1200
  44. package/api-services/modules/supplier/index.js.gz +0 -0
  45. package/api-services/modules/supplychain-manage/index.js +1343 -1197
  46. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  47. package/api-services/modules/systemConfiguration/index.js +1390 -1226
  48. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  49. package/api-services/modules/tool/index.js +1390 -1226
  50. package/api-services/modules/tool/index.js.gz +0 -0
  51. package/api-services/src/create-service/index.js +1390 -1226
  52. package/api-services/src/create-service/index.js.gz +0 -0
  53. package/common-info/index.d.ts +9 -3
  54. package/common-info/index.js +108 -54
  55. package/common-info/index.js.gz +0 -0
  56. package/common-info/set-personal-info/index.js +446 -440
  57. package/common-info/set-personal-info/index.js.gz +0 -0
  58. package/common-info/type.d.ts +114 -6
  59. package/common-tools/calc-text-width/index.d.ts +1 -0
  60. package/common-tools/calc-text-width/index.js +10 -0
  61. package/common-tools/extract-file-name/index.js +737 -738
  62. package/common-tools/extract-file-name/index.js.gz +0 -0
  63. package/common-tools/get-file-extension/index.d.ts +6 -0
  64. package/common-tools/get-file-extension/index.js +7 -0
  65. package/common-tools/index.d.ts +2 -0
  66. package/common-tools/index.js +2 -0
  67. package/common-tools/nest-tree-format/index.d.ts +1 -1
  68. package/common-tools/nest-tree-format/index.js +15 -15
  69. package/create-api-service/i18n/index.d.ts +33 -0
  70. package/create-api-service/i18n/index.js +15 -0
  71. package/create-api-service/index.js +1390 -1226
  72. package/create-api-service/index.js.gz +0 -0
  73. package/create-api-service/sso/index.d.ts +0 -2
  74. package/create-api-service/sso/index.js +482 -479
  75. package/create-api-service/sso/index.js.gz +0 -0
  76. package/curring-http/index.js +575 -575
  77. package/curring-http/index.js.gz +0 -0
  78. package/directive/hoverInside/index.d.ts +1 -1
  79. package/dom-check-in/index.js +2 -2
  80. package/dom-watcher/index.d.ts +1 -1
  81. package/esm-map.json +6 -1
  82. package/package.json +4 -4
  83. package/pinyin-first-character/index.js +22 -22
  84. package/pinyin-first-character/index.js.gz +0 -0
  85. package/style/index.js +1 -1
  86. package/style/index.js.gz +0 -0
  87. package/style/math.d.ts +4 -4
  88. package/token-tools/index.d.ts +6 -1
  89. package/token-tools/index.js +6 -6
  90. package/use-low-code/index.js +2 -2
  91. package/use-low-code/index.js.gz +0 -0
  92. package/i18n-collection/en.js +0 -21
  93. package/i18n-collection/zh-CN.js +0 -21
@@ -29,40 +29,148 @@ export interface TenantInfo {
29
29
  userId: string
30
30
  /** 用户名 */
31
31
  userName: string
32
+ /** 用户名称 */
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
33
48
  /** 租户信息 */
34
49
  tenant: {
50
+ /** 租户ID */
35
51
  id: string
52
+ /** 租户名 */
36
53
  name: string
54
+ /** 域,如:qq,das */
55
+ domain: string
56
+ /** 管理员用户ID */
37
57
  adminUserId: string
58
+ /** 租户描述 */
38
59
  description: string
39
- domain: string
60
+ /** 是否开通三员权限管理,0表示未开通,1表示已开通。 */
61
+ thirdManaged: number
40
62
  }
41
63
  /** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
42
64
  flag: number
65
+ /** 当前区号 */
43
66
  areaCode: string
44
- /** 手机号 */
45
- phone: 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
+ }[]
46
83
  }
47
84
 
48
85
  export interface HomeInfo {
86
+ /** 应用code */
49
87
  applicationCode: string
88
+ /** 应用path */
50
89
  applicationPath: string
90
+ /** 是否启用 */
51
91
  enable: boolean
52
92
  originalCode: string
53
93
  routeUrl: string
94
+ /** 首页展示位置 1在应用中心左侧 2在应用中心右侧 */
95
+ displayPosition: 1 | 2
54
96
  type: number | null
55
97
  }
56
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
+
57
106
  export interface ProjectInfo {
58
107
  /** 项目id */
59
- id: string | number
60
- /** 父级id */
61
- parentId?: string
108
+ id: string
109
+ /** 项目编码 */
110
+ code: string
62
111
  /** 项目名称 */
63
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
64
121
  /** 租户id */
65
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>
66
174
  }
67
175
 
68
176
  export interface SubAppsInfo {
@@ -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
+ };