@ibiz-template/core 0.7.41-alpha.35 → 0.7.41-alpha.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.
@@ -7,7 +7,7 @@ import { IApiParams } from '../global-param';
7
7
  export interface IApiI18n {
8
8
  /**
9
9
  * @description 设置当前语言
10
- * @param {string} lang
10
+ * @param {string} lang 语言
11
11
  * @memberof IApiI18n
12
12
  */
13
13
  setLang(lang: string): void;
@@ -19,31 +19,31 @@ export interface IApiI18n {
19
19
  getLang(): string;
20
20
  /**
21
21
  * @description 消息格式化
22
- * @param {string} tag
23
- * @param {IApiParams} [options]
22
+ * @param {string} tag 消息key
23
+ * @param {IApiParams} [options] 翻译配置
24
24
  * @returns {*} {string}
25
25
  * @memberof IApiI18n
26
26
  */
27
27
  t(tag: string, options?: IApiParams): string;
28
28
  /**
29
29
  * @description 消息格式化
30
- * @param {string} tag
31
- * @param {string} [defaultMsg]
32
- * @param {IApiParams} [options]
30
+ * @param {string} tag 消息key
31
+ * @param {string} [defaultMsg] 未找到翻译时默认呈现的消息
32
+ * @param {IApiParams} [options] 翻译配置
33
33
  * @returns {*} {string}
34
34
  * @memberof IApiI18n
35
35
  */
36
36
  t(tag: string, defaultMsg?: string, options?: IApiParams): string;
37
37
  /**
38
38
  * @description 合并指定语言语言资源
39
- * @param {string} lang
40
- * @param {IApiParams} data
39
+ * @param {string} lang 语言
40
+ * @param {IApiParams} data 语言资源
41
41
  * @memberof IApiI18n
42
42
  */
43
43
  mergeLocaleMessage(lang: string, data: IApiParams): void;
44
44
  /**
45
45
  * @description 合并语言资源
46
- * @param {IApiParams} data
46
+ * @param {IApiParams} data 语言资源
47
47
  * @memberof IApiI18n
48
48
  */
49
49
  mergeLocaleMessage(data: IApiParams): void;
@@ -7,19 +7,19 @@ import { IPortalMessage } from '../common';
7
7
  export interface IMessageBase {
8
8
  /**
9
9
  * @description 推送标准结构消息
10
- * @param {IPortalMessage} msg
10
+ * @param {IPortalMessage} msg 消息
11
11
  * @memberof IMessageBase
12
12
  */
13
13
  next(msg: IPortalMessage): void;
14
14
  /**
15
15
  * @description 订阅消息
16
- * @param {(msg: IPortalMessage) => void} cb
16
+ * @param {(msg: IPortalMessage) => void} cb 回调函数
17
17
  * @memberof IMessageBase
18
18
  */
19
19
  on(cb: (msg: IPortalMessage) => void): void;
20
20
  /**
21
21
  * @description 取消订阅消息
22
- * @param {(msg: IPortalMessage) => void} cb
22
+ * @param {(msg: IPortalMessage) => void} cb 回调函数
23
23
  * @memberof IMessageBase
24
24
  */
25
25
  off(cb: (msg: IPortalMessage) => void): void;
@@ -9,7 +9,7 @@ import { IAddInChanged } from './i-add-in-changed';
9
9
  export interface ICommandAddInChanged extends ICommandBase {
10
10
  /**
11
11
  * @description 发送消息
12
- * @param {IAddInChanged} data
12
+ * @param {IAddInChanged} data 添加的变更数据
13
13
  * @memberof ICommandAddInChanged
14
14
  */
15
15
  send(data: IAddInChanged): void;
@@ -9,7 +9,7 @@ import { ICommandBase } from '../i-command-base';
9
9
  export interface ICommandAsyncAction extends ICommandBase {
10
10
  /**
11
11
  * @description 发送消息
12
- * @param {IPortalAsyncAction} data
12
+ * @param {IPortalAsyncAction} data 异步作业数据
13
13
  * @memberof ICommandAsyncAction
14
14
  */
15
15
  send(data: IPortalAsyncAction): void;
@@ -66,7 +66,7 @@ export interface IMessageCommand extends IMessageBase {
66
66
  readonly addInChanged: ICommandAddInChanged;
67
67
  /**
68
68
  * @description 推送指令消息
69
- * @param {IPortalMessage} msg
69
+ * @param {IPortalMessage} msg 消息
70
70
  * @memberof IMessageCommand
71
71
  */
72
72
  next(msg: IPortalMessage): void;
@@ -9,7 +9,7 @@ import { IInternalMessage } from './i-internal-message';
9
9
  export interface ICommandInternalMessage extends ICommandBase {
10
10
  /**
11
11
  * @description 发送消息
12
- * @param {IInternalMessage} data
12
+ * @param {IInternalMessage} data 站内信数据
13
13
  * @memberof ICommandInternalMessage
14
14
  */
15
15
  send(data: IInternalMessage): void;
@@ -9,7 +9,7 @@ import { IMarkOpenData } from './i-mark-open-data';
9
9
  export interface ICommandMarkOpenData extends ICommandBase {
10
10
  /**
11
11
  * @description 发送消息
12
- * @param {IMarkOpenData} data
12
+ * @param {IMarkOpenData} data 协同数据
13
13
  * @memberof ICommandMarkOpenData
14
14
  */
15
15
  send(data: IMarkOpenData): void;
@@ -5,6 +5,11 @@ import { IPortalMessage } from './i-portal-message';
5
5
  * @interface IMessageCenterEvent
6
6
  */
7
7
  export interface IMessageCenterEvent {
8
+ /**
9
+ * @description 所有消息事件
10
+ * @param {IPortalMessage} msg 消息
11
+ * @memberof IMessageCenterEvent
12
+ */
8
13
  all: (msg: IPortalMessage) => void;
9
14
  }
10
15
  //# sourceMappingURL=i-message-center-event.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i-message-center-event.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/api/utils/message-center/common/i-message-center-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,CAAC;CACpC"}
1
+ {"version":3,"file":"i-message-center-event.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/api/utils/message-center/common/i-message-center-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,GAAG,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,CAAC;CACpC"}
@@ -9,7 +9,7 @@ import { IMessageBase } from '../base';
9
9
  export interface IMessageConsole extends IMessageBase {
10
10
  /**
11
11
  * @description 发送消息
12
- * @param {(IApiData | string)} data
12
+ * @param {(IApiData | string)} data 日志数据
13
13
  * @memberof IMessageConsole
14
14
  */
15
15
  send(data: IApiData | string): void;
@@ -9,7 +9,7 @@ import { IMessageBase } from '../base';
9
9
  export interface IMessageError extends IMessageBase {
10
10
  /**
11
11
  * @description 发送消息
12
- * @param {(IApiData | string)} data
12
+ * @param {(IApiData | string)} data 错误数据
13
13
  * @memberof IMessageError
14
14
  */
15
15
  send(data: IApiData | string): void;
@@ -34,13 +34,13 @@ export interface IMessageCenter {
34
34
  next(msg: IPortalMessage): void;
35
35
  /**
36
36
  * @description 订阅消息
37
- * @param {(msg: IPortalMessage) => void} callback
37
+ * @param {(msg: IPortalMessage) => void} callback 回调函数
38
38
  * @memberof IMessageCenter
39
39
  */
40
40
  on(callback: (msg: IPortalMessage) => void): void;
41
41
  /**
42
42
  * @description 取消订阅
43
- * @param {(msg: IPortalMessage) => void} callback
43
+ * @param {(msg: IPortalMessage) => void} callback 回调函数
44
44
  * @memberof IMessageCenter
45
45
  */
46
46
  off(callback: (msg: IPortalMessage) => void): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/core",
3
- "version": "0.7.41-alpha.35",
3
+ "version": "0.7.41-alpha.51",
4
4
  "description": "运行时核心库",
5
5
  "type": "module",
6
6
  "main": "out/index.js",
@@ -50,5 +50,5 @@
50
50
  "qx-util": "^0.4.8",
51
51
  "ramda": "^0.29.0"
52
52
  },
53
- "gitHead": "f138fed4749848d6fe2eac13f385c40977624666"
53
+ "gitHead": "63325cc0ccb0c9667714c8c6e4e764abde103963"
54
54
  }