@ibiz-template/core 0.6.0 → 0.6.1-alpha.2

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 (106) hide show
  1. package/dist/index.esm.js +27 -21
  2. package/dist/index.system.min.js +1 -1
  3. package/out/interface/i-devtool-config/i-devtool-config.d.ts +7 -0
  4. package/out/interface/i-devtool-config/i-devtool-config.d.ts.map +1 -1
  5. package/out/utils/bit-mask/bit-mask.d.ts +27 -0
  6. package/out/utils/bit-mask/bit-mask.d.ts.map +1 -1
  7. package/out/utils/bit-mask/bit-mask.js +27 -0
  8. package/out/utils/color/color.d.ts.map +1 -1
  9. package/out/utils/color/color.js +8 -4
  10. package/out/utils/download-file/download-file.js +17 -17
  11. package/out/utils/string-util/string-util.d.ts +6 -0
  12. package/out/utils/string-util/string-util.d.ts.map +1 -1
  13. package/out/utils/string-util/string-util.js +6 -0
  14. package/out/utils/sync/await-timeout.d.ts +6 -0
  15. package/out/utils/sync/await-timeout.d.ts.map +1 -1
  16. package/out/utils/sync/await-timeout.js +6 -0
  17. package/out/utils/types/types.d.ts +3 -1
  18. package/out/utils/types/types.d.ts.map +1 -1
  19. package/out/utils/util/util.d.ts +137 -0
  20. package/out/utils/util/util.d.ts.map +1 -1
  21. package/out/utils/util/util.js +137 -0
  22. package/package.json +4 -5
  23. package/src/command/command-register.ts +0 -135
  24. package/src/command/command.ts +0 -79
  25. package/src/command/index.ts +0 -11
  26. package/src/command/interface/command/command-option.ts +0 -22
  27. package/src/command/interface/command/command.ts +0 -86
  28. package/src/command/interface/disposable/disposable.ts +0 -3
  29. package/src/command/interface/index.ts +0 -9
  30. package/src/command/utils/index.ts +0 -2
  31. package/src/command/utils/linked-list.ts +0 -136
  32. package/src/command/utils/util.ts +0 -95
  33. package/src/constant/core/core.ts +0 -63
  34. package/src/constant/http-status-message/http-status-message.ts +0 -20
  35. package/src/constant/index.ts +0 -5
  36. package/src/constant/login-mode/login-mode.ts +0 -23
  37. package/src/constant/menu-permission-mode/menu-permission-mode.ts +0 -23
  38. package/src/constant/util/util.ts +0 -5
  39. package/src/context/index.ts +0 -231
  40. package/src/environment/environment.ts +0 -39
  41. package/src/error/http-error/http-error.ts +0 -45
  42. package/src/error/index.ts +0 -5
  43. package/src/error/model-error/model-error.ts +0 -26
  44. package/src/error/notice-error/notice-error.ts +0 -19
  45. package/src/error/runtime-error/runtime-error.ts +0 -16
  46. package/src/error/runtime-model-error/runtime-model-error.ts +0 -27
  47. package/src/ibizsys.ts +0 -78
  48. package/src/index.ts +0 -14
  49. package/src/install.ts +0 -15
  50. package/src/interface/click-outside/click-outside.ts +0 -71
  51. package/src/interface/i-18n/i-18n.ts +0 -68
  52. package/src/interface/i-chat-message/i-chat-message.ts +0 -83
  53. package/src/interface/i-devtool-config/i-devtool-config.ts +0 -16
  54. package/src/interface/i-environment/i-environment.ts +0 -289
  55. package/src/interface/i-internal-message/i-internal-message.ts +0 -151
  56. package/src/interface/i-mark-open-data/i-mark-open-data.ts +0 -39
  57. package/src/interface/i-portal-async-action/i-portal-async-action.ts +0 -177
  58. package/src/interface/i-portal-message/i-portal-message.ts +0 -84
  59. package/src/interface/index.ts +0 -14
  60. package/src/interface/org-data/org-data.ts +0 -42
  61. package/src/params/params.ts +0 -134
  62. package/src/types.ts +0 -110
  63. package/src/utils/bit-mask/bit-mask.ts +0 -85
  64. package/src/utils/click-outside/click-outside.ts +0 -110
  65. package/src/utils/clone/clone.ts +0 -43
  66. package/src/utils/color/color.ts +0 -84
  67. package/src/utils/data-type/data-types.ts +0 -99
  68. package/src/utils/download-file/download-file.ts +0 -109
  69. package/src/utils/event/event.ts +0 -77
  70. package/src/utils/history-list/history-item.ts +0 -45
  71. package/src/utils/history-list/history-list.ts +0 -151
  72. package/src/utils/index.ts +0 -24
  73. package/src/utils/interceptor/core-interceptor.ts +0 -40
  74. package/src/utils/interceptor/index.ts +0 -2
  75. package/src/utils/interceptor/interceptor.ts +0 -126
  76. package/src/utils/logger/logger.ts +0 -10
  77. package/src/utils/message-center/base/message-all.ts +0 -12
  78. package/src/utils/message-center/base/message-base.ts +0 -86
  79. package/src/utils/message-center/command/async-action/command-async-action.ts +0 -24
  80. package/src/utils/message-center/command/change/command-change.ts +0 -12
  81. package/src/utils/message-center/command/command-base/command-base.ts +0 -30
  82. package/src/utils/message-center/command/create/command-create.ts +0 -24
  83. package/src/utils/message-center/command/internal-message/command-internal-message.ts +0 -24
  84. package/src/utils/message-center/command/mark-open-data/command-mark-open-data.ts +0 -24
  85. package/src/utils/message-center/command/message-command.ts +0 -158
  86. package/src/utils/message-center/command/remove/command-remove.ts +0 -24
  87. package/src/utils/message-center/command/update/command-update.ts +0 -24
  88. package/src/utils/message-center/console/message-console.ts +0 -31
  89. package/src/utils/message-center/index.ts +0 -1
  90. package/src/utils/message-center/interface/i-app-data-entity.ts +0 -19
  91. package/src/utils/message-center/interface/index.ts +0 -1
  92. package/src/utils/message-center/message-center.ts +0 -82
  93. package/src/utils/namespace/namespace.ts +0 -247
  94. package/src/utils/net/http-response.ts +0 -106
  95. package/src/utils/net/net.ts +0 -469
  96. package/src/utils/recursive/find-recursive-child.ts +0 -133
  97. package/src/utils/string-util/string-util.ts +0 -60
  98. package/src/utils/style/remote-style.ts +0 -20
  99. package/src/utils/sync/await-timeout.ts +0 -27
  100. package/src/utils/sync/count-latch.ts +0 -95
  101. package/src/utils/sync/index.ts +0 -2
  102. package/src/utils/types/types.ts +0 -22
  103. package/src/utils/upload/select-file.ts +0 -86
  104. package/src/utils/upload/upload-file.ts +0 -208
  105. package/src/utils/url-helper/url-helper.ts +0 -63
  106. package/src/utils/util/util.ts +0 -376
@@ -1,83 +0,0 @@
1
- import { IPortalAsyncAction } from '../i-portal-async-action/i-portal-async-action';
2
-
3
- /**
4
- * AI聊天消息
5
- *
6
- * @author chitanda
7
- * @date 2023-10-10 16:10:29
8
- * @export
9
- * @interface IChatMessage
10
- */
11
- export interface IChatMessage {
12
- /**
13
- * 消息标识
14
- *
15
- * @author chitanda
16
- * @date 2023-09-05 15:09:43
17
- * @type {string}
18
- */
19
- messageid?: string;
20
-
21
- /**
22
- * 消息名称
23
- *
24
- * @author chitanda
25
- * @date 2023-09-05 15:09:49
26
- * @type {string}
27
- */
28
- messagename?: string;
29
-
30
- /**
31
- * 消息类型
32
- *
33
- * @author chitanda
34
- * @date 2023-10-10 16:10:21
35
- * @type {string}
36
- */
37
- type?: string;
38
-
39
- /**
40
- * 消息子类型
41
- *
42
- * @author chitanda
43
- * @date 2023-10-10 16:10:00
44
- * @type {string}
45
- */
46
- subtype?: string;
47
-
48
- /**
49
- * 消息角色
50
- *
51
- * @author chitanda
52
- * @date 2023-10-10 16:10:32
53
- * @type {('ASSISTANT' | 'USER' | 'SYSTEM')} 助手 | 用户 | 系统
54
- */
55
- role: 'ASSISTANT' | 'USER' | 'SYSTEM';
56
-
57
- /**
58
- * 内容摘要
59
- *
60
- * @author chitanda
61
- * @date 2023-09-05 15:09:23
62
- * @type {string}
63
- */
64
- content: string;
65
-
66
- /**
67
- * 消息数据
68
- *
69
- * @author chitanda
70
- * @date 2023-09-05 15:09:55
71
- * @type {(IPortalAsyncAction | IData | string | unknown)}
72
- */
73
- data?: IPortalAsyncAction | IData | string | unknown;
74
-
75
- /**
76
- * 消息路径
77
- *
78
- * @author chitanda
79
- * @date 2023-09-05 15:09:25
80
- * @type {string}
81
- */
82
- url?: string;
83
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * devtool的配置对象
3
- * @author lxm
4
- * @date 2024-01-29 11:29:59
5
- * @export
6
- * @interface IDevToolConfig
7
- */
8
- export interface IDevToolConfig {
9
- /**
10
- * 配置平台基础路径
11
- * @author lxm
12
- * @date 2024-01-19 05:26:35
13
- * @type {string}
14
- */
15
- studioBaseUrl?: string;
16
- }
@@ -1,289 +0,0 @@
1
- import { LogLevelDesc } from 'loglevel';
2
- import { LoginMode, MenuPermissionMode } from '../../constant';
3
- import { IDevToolConfig } from '../i-devtool-config/i-devtool-config';
4
-
5
- /**
6
- * 配置参数
7
- *
8
- * @author chitanda
9
- * @date 2022-07-19 18:07:29
10
- * @export
11
- * @interface IEnvironment
12
- */
13
- export interface IEnvironment {
14
- /**
15
- * 命名空间
16
- *
17
- * @author chitanda
18
- * @date 2022-09-06 11:09:32
19
- * @type {string}
20
- */
21
- namespace?: string;
22
-
23
- /**
24
- * 是否为开发模式
25
- *
26
- * @default false
27
- * @author chitanda
28
- * @date 2022-10-21 11:10:29
29
- * @type {boolean}
30
- */
31
- dev: boolean;
32
-
33
- /**
34
- * 是否为多应用 hub 基座模式
35
- *
36
- * @author chitanda
37
- * @date 2022-12-20 10:12:45
38
- * @type {boolean}
39
- */
40
- hub: boolean;
41
-
42
- /**
43
- * 是否启用 mqtt 异步消息(ws模式消息)
44
- *
45
- * @author chitanda
46
- * @date 2023-10-23 15:10:01
47
- * @type {boolean}
48
- */
49
- enableMqtt: boolean;
50
-
51
- /**
52
- * mqtt 默认连接地址
53
- *
54
- * @description emq 服务地址 /portal/mqtt/mqtt, rebbitmq 服务地址 /portal/mqtt/ws
55
- * @author chitanda
56
- * @date 2023-10-23 15:10:54
57
- * @type {string}
58
- */
59
- mqttUrl: string;
60
-
61
- /**
62
- * 默认应用的应用标识
63
- *
64
- * @author chitanda
65
- * @date 2022-12-22 15:12:35
66
- * @type {string}
67
- */
68
- appId: string;
69
-
70
- /**
71
- * 日志级别
72
- *
73
- * @author chitanda
74
- * @date 2022-10-25 20:10:55
75
- * @type {LogLevelDesc}
76
- */
77
- logLevel: LogLevelDesc;
78
-
79
- /**
80
- * 请求根路径
81
- *
82
- * @author chitanda
83
- * @date 2022-07-19 18:07:58
84
- * @type {string}
85
- */
86
- baseUrl: string;
87
-
88
- /**
89
- * 插件默认所在目录
90
- *
91
- * @author chitanda
92
- * @date 2022-10-31 14:10:49
93
- * @type {string}
94
- */
95
- pluginBaseUrl: string;
96
-
97
- /**
98
- * 登录模式
99
- *
100
- * @author lxm
101
- * @date 2022-10-12 14:10:51
102
- * @type {LoginMode}
103
- */
104
- loginMode: LoginMode;
105
-
106
- /**
107
- * 中央认证登录地址
108
- *
109
- * @author lxm
110
- * @date 2022-10-11 12:10:21
111
- * @type {string}
112
- */
113
- casLoginUrl: string;
114
-
115
- /**
116
- * 模型是否为本地模型(走静态资源模式)
117
- *
118
- * @author chitanda
119
- * @date 2023-07-06 15:07:19
120
- * @type {boolean}
121
- */
122
- isLocalModel: boolean;
123
-
124
- /**
125
- * 远程模型路径
126
- *
127
- * @author chitanda
128
- * @date 2022-09-22 18:09:25
129
- * @type {string}
130
- */
131
- remoteModelUrl: string;
132
-
133
- /**
134
- * 资源文件根路径
135
- *
136
- * @author lxm
137
- * @date 2022-08-25 14:08:08
138
- * @type {string}
139
- */
140
- assetsUrl: string;
141
-
142
- /**
143
- * 中心系统标识
144
- *
145
- * @author chitanda
146
- * @date 2022-08-22 23:08:46
147
- * @type {string}
148
- */
149
- dcSystem: string;
150
-
151
- /**
152
- * 文件下载url
153
- *
154
- * @author chitanda
155
- * @date 2022-08-22 23:08:46
156
- * @type {string}
157
- */
158
- downloadFileUrl: string;
159
-
160
- /**
161
- * 文件上传url
162
- *
163
- * @author chitanda
164
- * @date 2022-08-22 23:08:46
165
- * @type {string}
166
- */
167
- uploadFileUrl: string;
168
-
169
- /**
170
- * 是否启用权限校验(默认true)
171
- *
172
- * @author lxm
173
- * @date 2022-10-12 18:10:25
174
- * @type {boolean}
175
- */
176
- enablePermission: boolean;
177
-
178
- /**
179
- * 菜单权限校验模式(默认MIXIN)
180
- *
181
- * @author lxm
182
- * @date 2022-10-12 18:10:27
183
- * @type {MenuPermissionMode}
184
- */
185
- menuPermissionMode: MenuPermissionMode;
186
-
187
- /**
188
- * 路由占位符
189
- *
190
- * @type {string}
191
- * @memberof IEnvironment
192
- */
193
- routePlaceholder: string;
194
-
195
- /**
196
- * 是否让所有工作流history接口走all
197
- *
198
- * @type {boolean}
199
- * @memberof IEnvironment
200
- */
201
- enableWfAllHistory: boolean;
202
-
203
- /**
204
- * 应用标题
205
- *
206
- * @type {string}
207
- * @memberof IEnvironment
208
- */
209
- AppTitle?: string;
210
-
211
- /**
212
- * 是否为 SaaS 模式
213
- *
214
- * @author chitanda
215
- * @date 2023-07-11 16:07:23
216
- * @type {boolean}
217
- */
218
- isSaaSMode?: boolean;
219
-
220
- /**
221
- * 是否为移动端应用
222
- *
223
- * @author chitanda
224
- * @date 2023-06-20 12:06:15
225
- * @type {boolean}
226
- */
227
- isMob?: boolean;
228
-
229
- /**
230
- * 应用图标地址
231
- *
232
- * @author chitanda
233
- * @date 2023-07-17 17:07:23
234
- * @type {string}
235
- */
236
- favicon?: string;
237
-
238
- /**
239
- * 是否启用多语言
240
- *
241
- * @description 此值是默认加载后,根据应用模型中的配置来决定是否启用多语言。请勿手动修改此值
242
- * @author chitanda
243
- * @date 2023-08-25 15:08:28
244
- * @type {boolean}
245
- */
246
- isEnableMultiLan?: boolean;
247
-
248
- /**
249
- * 匿名用户名
250
- *
251
- * @author chitanda
252
- * @date 2023-12-27 14:12:01
253
- * @type {string}
254
- */
255
- anonymousUser?: string;
256
-
257
- /**
258
- * 匿名用户密码
259
- *
260
- * @author chitanda
261
- * @date 2023-12-27 14:12:06
262
- * @type {string}
263
- */
264
- anonymousPwd?: string;
265
-
266
- /**
267
- * 启用匿名模式
268
- * @author lxm
269
- * @date 2024-01-03 05:12:45
270
- * @type {boolean}
271
- */
272
- enableAnonymous?: boolean;
273
-
274
- /**
275
- * 市场地址
276
- * @author: zhujiamin
277
- * @date 2024-01-04 16:11:17
278
- * @type {string}
279
- */
280
- marketAddress?: string;
281
-
282
- /**
283
- * devtool的配置对象
284
- * @author lxm
285
- * @date 2024-01-29 11:30:15
286
- * @type {IDevToolConfig}
287
- */
288
- devtoolConfig?: IDevToolConfig;
289
- }
@@ -1,151 +0,0 @@
1
- export type InternalMessageStatus =
2
- | 'SENT'
3
- | 'RECEIVED'
4
- | 'READ'
5
- | 'NOT_SENT'
6
- | 'SEND_FAILED'
7
- | 'REPLIED'
8
- | 'DELETED';
9
-
10
- export type InternalMessageContentType = 'TEXT' | 'HTML' | 'MARKDOWN' | 'JSON';
11
-
12
- /**
13
- * 站内信
14
- * @author lxm
15
- * @date 2024-01-23 01:50:09
16
- * @export
17
- * @interface IInternalMessage
18
- */
19
- export interface IInternalMessage {
20
- /**
21
- * 更新人
22
- * @author lxm
23
- * @date 2024-01-23 01:53:09
24
- * @type {string}
25
- */
26
- update_man: string;
27
- /**
28
- * 更新时间
29
- * @author lxm
30
- * @date 2024-01-23 01:53:08
31
- * @type {string}
32
- */
33
- update_time: string;
34
- /**
35
- * 创建人
36
- * @author lxm
37
- * @date 2024-01-23 01:53:06
38
- * @type {string}
39
- */
40
- create_man: string;
41
- /**
42
- * 创建时间
43
- * @author lxm
44
- * @date 2024-01-23 01:53:04
45
- * @type {string}
46
- */
47
- create_time: string;
48
- /**
49
- * 唯一标识
50
- * @author lxm
51
- * @date 2024-01-23 01:52:58
52
- * @type {string}
53
- */
54
- id: string;
55
-
56
- /**
57
- * 状态
58
- * @author lxm
59
- * @date 2024-01-23 01:57:58
60
- * @type {InternalMessageStatus}
61
- */
62
- status: InternalMessageStatus;
63
-
64
- /**
65
- * 内容类型
66
- * @author lxm
67
- * @date 2024-01-23 01:57:52
68
- * @type {InternalMessageContentType}
69
- */
70
- content_type: InternalMessageContentType;
71
-
72
- /**
73
- * 内容
74
- * @author lxm
75
- * @date 2024-01-23 03:32:23
76
- * @type {string}
77
- */
78
- content: string;
79
-
80
- /**
81
- * 系统标记
82
- * @author lxm
83
- * @date 2024-01-23 01:58:27
84
- * @type {string}
85
- */
86
- system_tag: string;
87
-
88
- /**
89
- * 所有者标记
90
- * @author lxm
91
- * @date 2024-01-23 01:58:45
92
- * @type {string}
93
- */
94
- owner_id: string;
95
-
96
- /**
97
- * 消息所有者类型
98
- * @author lxm
99
- * @date 2024-01-23 01:52:39
100
- * @type {('PERSONAL' | 'SYSTEM')}
101
- */
102
- owner_type: 'PERSONAL' | 'SYSTEM';
103
-
104
- /**
105
- * 消息类型
106
- * @author lxm
107
- * @date 2024-01-23 01:59:34
108
- * @type {string}
109
- */
110
- message_type: string;
111
-
112
- /**
113
- * 标题
114
- * @author lxm
115
- * @date 2024-01-23 01:59:52
116
- * @type {string}
117
- */
118
- title: string;
119
-
120
- /**
121
- * 接受者
122
- * @author lxm
123
- * @date 2024-01-23 02:00:04
124
- * @type {string}
125
- */
126
- receiver: string;
127
-
128
- /**
129
- * 短内容
130
- * @author lxm
131
- * @date 2024-01-23 02:00:22
132
- * @type {string}
133
- */
134
- short_content?: string;
135
-
136
- /**
137
- * 链接
138
- * @author lxm
139
- * @date 2024-02-02 10:55:35
140
- * @type {string}
141
- */
142
- url?: string;
143
-
144
- /**
145
- * 移动端链接
146
- * @author lxm
147
- * @date 2024-02-02 10:55:35
148
- * @type {string}
149
- */
150
- mobile_url?: string;
151
- }
@@ -1,39 +0,0 @@
1
- export type MarkOpenDataAction = 'VIEW' | 'EDIT' | 'UPDATE' | 'CLOSE';
2
-
3
- export interface IMarkOpenData {
4
- /**
5
- * 行为类型
6
- * @author lxm
7
- * @date 2024-01-23 01:53:09
8
- * @type {string}
9
- */
10
- action: MarkOpenDataAction;
11
- /**
12
- * 实体名称
13
- * @author lxm
14
- * @date 2024-01-23 01:53:08
15
- * @type {string}
16
- */
17
- entity: string;
18
- /**
19
- * 实体主键
20
- * @author lxm
21
- * @date 2024-01-23 01:53:06
22
- * @type {string}
23
- */
24
- key: string;
25
- /**
26
- * 时间戳
27
- * @author lxm
28
- * @date 2024-02-01 03:40:31
29
- * @type {number}
30
- */
31
- time: number;
32
- /**
33
- * 用户名
34
- * @author lxm
35
- * @date 2024-02-01 03:40:47
36
- * @type {string}
37
- */
38
- username: string;
39
- }