@ibiz-template/runtime 0.0.1-alpha.1 → 0.0.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 (101) hide show
  1. package/LICENSE +21 -0
  2. package/out/command/app/app-func/app-func.d.ts +76 -1
  3. package/out/command/app/app-func/app-func.d.ts.map +1 -1
  4. package/out/command/app/app-func/app-func.js +123 -5
  5. package/out/command/app/open-app-view/open-app-view.d.ts +98 -0
  6. package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -0
  7. package/out/command/app/open-app-view/open-app-view.js +132 -0
  8. package/out/command/index.d.ts +3 -0
  9. package/out/command/index.d.ts.map +1 -1
  10. package/out/command/index.js +3 -0
  11. package/out/constant/index.d.ts +1 -1
  12. package/out/constant/index.d.ts.map +1 -1
  13. package/out/constant/index.js +1 -1
  14. package/out/constant/view-mode.d.ts +31 -0
  15. package/out/constant/view-mode.d.ts.map +1 -0
  16. package/out/constant/view-mode.js +32 -0
  17. package/out/index.d.ts +5 -0
  18. package/out/index.d.ts.map +1 -1
  19. package/out/index.js +5 -0
  20. package/out/install.d.ts.map +1 -1
  21. package/out/install.js +7 -6
  22. package/out/interface/i-modal/i-modal.d.ts +28 -0
  23. package/out/interface/i-modal/i-modal.d.ts.map +1 -0
  24. package/out/interface/i-modal/i-modal.js +1 -0
  25. package/out/interface/i-modal-data/i-modal-data.d.ts +35 -0
  26. package/out/interface/i-modal-data/i-modal-data.d.ts.map +1 -0
  27. package/out/interface/i-modal-data/i-modal-data.js +1 -0
  28. package/out/interface/i-ui-action-result/i-ui-action-result.d.ts +27 -0
  29. package/out/interface/i-ui-action-result/i-ui-action-result.d.ts.map +1 -0
  30. package/out/interface/i-ui-action-result/i-ui-action-result.js +1 -0
  31. package/out/interface/index.d.ts +5 -0
  32. package/out/interface/index.d.ts.map +1 -0
  33. package/out/interface/index.js +1 -0
  34. package/out/interface/util/i-loading-util/i-loading-util.d.ts +26 -0
  35. package/out/interface/util/i-loading-util/i-loading-util.d.ts.map +1 -0
  36. package/out/interface/util/i-loading-util/i-loading-util.js +1 -0
  37. package/out/interface/util/i-message-util/i-message-util.d.ts +51 -0
  38. package/out/interface/util/i-message-util/i-message-util.d.ts.map +1 -0
  39. package/out/interface/util/i-message-util/i-message-util.js +1 -0
  40. package/out/interface/util/i-modal-util/i-modal-util.d.ts +83 -0
  41. package/out/interface/util/i-modal-util/i-modal-util.d.ts.map +1 -0
  42. package/out/interface/util/i-modal-util/i-modal-util.js +1 -0
  43. package/out/interface/util/i-notification-util/i-notification-util.d.ts +79 -0
  44. package/out/interface/util/i-notification-util/i-notification-util.d.ts.map +1 -0
  45. package/out/interface/util/i-notification-util/i-notification-util.js +1 -0
  46. package/out/interface/util/i-open-view-util/i-open-view-util.d.ts +69 -0
  47. package/out/interface/util/i-open-view-util/i-open-view-util.d.ts.map +1 -0
  48. package/out/interface/util/i-open-view-util/i-open-view-util.js +1 -0
  49. package/out/interface/util/index.d.ts +6 -0
  50. package/out/interface/util/index.d.ts.map +1 -0
  51. package/out/interface/util/index.js +1 -0
  52. package/out/types.d.ts +46 -0
  53. package/out/types.d.ts.map +1 -1
  54. package/out/types.js +1 -1
  55. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts +86 -0
  56. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts.map +1 -0
  57. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.js +257 -0
  58. package/out/utils/index.d.ts +3 -0
  59. package/out/utils/index.d.ts.map +1 -0
  60. package/out/utils/index.js +2 -0
  61. package/out/utils/nav-params/nav-params.d.ts +44 -0
  62. package/out/utils/nav-params/nav-params.d.ts.map +1 -0
  63. package/out/utils/nav-params/nav-params.js +95 -0
  64. package/out/view-logic/index.d.ts +2 -0
  65. package/out/view-logic/index.d.ts.map +1 -0
  66. package/out/view-logic/index.js +1 -0
  67. package/out/view-logic/view-logic.d.ts +42 -0
  68. package/out/view-logic/view-logic.d.ts.map +1 -0
  69. package/out/view-logic/view-logic.js +131 -0
  70. package/package.json +15 -9
  71. package/src/command/app/app-func/app-func.ts +156 -5
  72. package/src/command/app/open-app-view/open-app-view.ts +178 -0
  73. package/src/command/index.ts +4 -0
  74. package/src/constant/index.ts +1 -1
  75. package/src/constant/view-mode.ts +31 -0
  76. package/src/index.ts +5 -0
  77. package/src/install.ts +7 -6
  78. package/src/interface/i-modal/i-modal.ts +29 -0
  79. package/src/interface/i-modal-data/i-modal-data.ts +34 -0
  80. package/src/interface/i-ui-action-result/i-ui-action-result.ts +26 -0
  81. package/src/interface/index.ts +4 -0
  82. package/src/interface/util/i-loading-util/i-loading-util.ts +25 -0
  83. package/src/interface/util/i-message-util/i-message-util.ts +50 -0
  84. package/src/interface/util/i-modal-util/i-modal-util.ts +83 -0
  85. package/src/interface/util/i-notification-util/i-notification-util.ts +79 -0
  86. package/src/interface/util/i-open-view-util/i-open-view-util.ts +89 -0
  87. package/src/interface/util/index.ts +8 -0
  88. package/src/types.ts +52 -0
  89. package/src/utils/app-de-ui-action-util/app-de-ui-action-util.ts +349 -0
  90. package/src/utils/index.ts +2 -0
  91. package/src/utils/nav-params/nav-params.ts +105 -0
  92. package/src/view-logic/index.ts +1 -0
  93. package/src/view-logic/view-logic.ts +190 -0
  94. package/out/constant/command/app/app.d.ts +0 -7
  95. package/out/constant/command/app/app.d.ts.map +0 -1
  96. package/out/constant/command/app/app.js +0 -7
  97. package/out/constant/command/command.d.ts +0 -20
  98. package/out/constant/command/command.d.ts.map +0 -1
  99. package/out/constant/command/command.js +0 -18
  100. package/src/constant/command/app/app.ts +0 -7
  101. package/src/constant/command/command.ts +0 -19
@@ -0,0 +1,28 @@
1
+ import { ViewMode } from '../../constant';
2
+ /**
3
+ * 模态操作对象,在模态等形式打开视图时,操作类需给视图注入此对象实现类
4
+ *
5
+ * @author chitanda
6
+ * @date 2022-08-17 18:08:20
7
+ * @export
8
+ * @interface IModal
9
+ */
10
+ export interface IModal {
11
+ /**
12
+ * 打开方式(默认路由)
13
+ *
14
+ * @author lxm
15
+ * @date 2022-09-01 10:09:15
16
+ * @type {string}
17
+ */
18
+ mode: ViewMode;
19
+ /**
20
+ * 关闭模态窗
21
+ *
22
+ * @author chitanda
23
+ * @date 2022-08-17 18:08:58
24
+ * @param {(IData | IData[])} data
25
+ */
26
+ dismiss?: (data?: IData | IData[]) => void;
27
+ }
28
+ //# sourceMappingURL=i-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-modal.d.ts","sourceRoot":"","sources":["../../../src/interface/i-modal/i-modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C;;;;;;;GAOG;AACH,MAAM,WAAW,MAAM;IACrB;;;;;;OAMG;IACH,IAAI,EAAE,QAAQ,CAAC;IAEf;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,GAAG,KAAK,EAAE,KAAK,IAAI,CAAC;CAC5C"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ /**
2
+ * 模态打开界面,关闭时返回数据
3
+ *
4
+ * @author chitanda
5
+ * @date 2022-08-17 18:08:15
6
+ * @export
7
+ * @interface IModalData
8
+ */
9
+ export interface IModalData {
10
+ /**
11
+ * 关闭模态窗时是否操作成功
12
+ *
13
+ * @author chitanda
14
+ * @date 2022-08-17 18:08:40
15
+ * @type {boolean}
16
+ */
17
+ ok: boolean;
18
+ /**
19
+ * 返回的数据
20
+ *
21
+ * @author chitanda
22
+ * @date 2022-08-17 18:08:20
23
+ * @type {IData[]}
24
+ */
25
+ data: IData[];
26
+ /**
27
+ * 额外参数
28
+ *
29
+ * @author chitanda
30
+ * @date 2022-08-17 18:08:10
31
+ * @type {IParams}
32
+ */
33
+ params?: IParams;
34
+ }
35
+ //# sourceMappingURL=i-modal-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-modal-data.d.ts","sourceRoot":"","sources":["../../../src/interface/i-modal-data/i-modal-data.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,EAAE,EAAE,OAAO,CAAC;IACZ;;;;;;OAMG;IACH,IAAI,EAAE,KAAK,EAAE,CAAC;IACd;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,27 @@
1
+ /**
2
+ * 界面行为执行返回值
3
+ *
4
+ * @author chitanda
5
+ * @date 2022-08-26 00:08:44
6
+ * @export
7
+ * @interface IUIActionResult
8
+ */
9
+ export interface IUIActionResult {
10
+ /**
11
+ * 是否刷新界面
12
+ *
13
+ * @author chitanda
14
+ * @date 2022-08-26 00:08:54
15
+ * @type {boolean}
16
+ */
17
+ refresh?: boolean;
18
+ /**
19
+ * 是否关闭界面
20
+ *
21
+ * @author chitanda
22
+ * @date 2022-08-26 00:08:33
23
+ * @type {boolean}
24
+ */
25
+ closeView?: boolean;
26
+ }
27
+ //# sourceMappingURL=i-ui-action-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-ui-action-result.d.ts","sourceRoot":"","sources":["../../../src/interface/i-ui-action-result/i-ui-action-result.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
@@ -0,0 +1,5 @@
1
+ export { IModal } from './i-modal/i-modal';
2
+ export { IModalData } from './i-modal-data/i-modal-data';
3
+ export { IUIActionResult } from './i-ui-action-result/i-ui-action-result';
4
+ export * from './util';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,cAAc,QAAQ,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './util';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * 加载动画工具
3
+ *
4
+ * @author chitanda
5
+ * @date 2022-08-17 17:08:25
6
+ * @export
7
+ * @interface ILoadingUtil
8
+ */
9
+ export interface ILoadingUtil {
10
+ /**
11
+ * 显示全局加载动画
12
+ *
13
+ * @author chitanda
14
+ * @date 2022-08-17 17:08:24
15
+ * @param {string} [message]
16
+ */
17
+ show(message?: string): void;
18
+ /**
19
+ * 隐藏全局加载动画
20
+ *
21
+ * @author chitanda
22
+ * @date 2022-08-17 17:08:48
23
+ */
24
+ hide(): void;
25
+ }
26
+ //# sourceMappingURL=i-loading-util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-loading-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-loading-util/i-loading-util.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;;OAKG;IACH,IAAI,IAAI,IAAI,CAAC;CACd"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * 顶部居中显示,并自动消失
3
+ *
4
+ * @author chitanda
5
+ * @date 2022-08-17 15:08:23
6
+ * @export
7
+ * @interface IMessageUtil
8
+ */
9
+ export interface IMessageUtil {
10
+ /**
11
+ * 普通信息
12
+ *
13
+ * @author chitanda
14
+ * @date 2022-08-17 15:08:39
15
+ * @param {string} msg
16
+ * @param {number} [duration] 持续时间,单位:秒,默认:1.5
17
+ * @param {boolean} [closable] 显示关闭按钮,默认:false
18
+ */
19
+ info(msg: string, duration?: number, closable?: boolean): void;
20
+ /**
21
+ * 成功消息
22
+ *
23
+ * @author chitanda
24
+ * @date 2022-08-17 15:08:32
25
+ * @param {string} msg
26
+ * @param {number} [duration] 持续时间,单位:秒,默认:1.5
27
+ * @param {boolean} [closable] 显示关闭按钮,默认:false
28
+ */
29
+ success(msg: string, duration?: number, closable?: boolean): void;
30
+ /**
31
+ * 警告消息
32
+ *
33
+ * @author chitanda
34
+ * @date 2022-08-17 15:08:57
35
+ * @param {string} msg
36
+ * @param {number} [duration] 持续时间,单位:秒,默认:1.5
37
+ * @param {boolean} [closable] 显示关闭按钮,默认:false
38
+ */
39
+ warning(msg: string, duration?: number, closable?: boolean): void;
40
+ /**
41
+ * 错误消息
42
+ *
43
+ * @author chitanda
44
+ * @date 2022-08-17 15:08:02
45
+ * @param {string} msg
46
+ * @param {number} [duration] 持续时间,单位:秒,默认:1.5
47
+ * @param {boolean} [closable] 显示关闭按钮,默认:false
48
+ */
49
+ error(msg: string, duration?: number, closable?: boolean): void;
50
+ }
51
+ //# sourceMappingURL=i-message-util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-message-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-message-util/i-message-util.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;;;OAQG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/D;;;;;;;;OAQG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAClE;;;;;;;;OAQG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAClE;;;;;;;;OAQG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACjE"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * 简洁确认框参数
3
+ *
4
+ * @author chitanda
5
+ * @date 2022-08-17 16:08:42
6
+ * @export
7
+ * @interface ModalParams
8
+ */
9
+ export interface ModalParams {
10
+ /**
11
+ * 标题
12
+ *
13
+ * @author chitanda
14
+ * @date 2022-08-17 16:08:04
15
+ * @type {string}
16
+ */
17
+ title: string;
18
+ /**
19
+ * 描述
20
+ *
21
+ * @author chitanda
22
+ * @date 2022-08-17 16:08:08
23
+ * @type {string}
24
+ */
25
+ desc?: string;
26
+ }
27
+ /**
28
+ * 简洁确认框
29
+ *
30
+ * @description 需要用户确认收到提示消息时使用此工具
31
+ * @author chitanda
32
+ * @date 2022-08-17 16:08:25
33
+ * @export
34
+ * @interface IModalUtil
35
+ */
36
+ export interface IModalUtil {
37
+ /**
38
+ * 普通信息
39
+ *
40
+ * @author chitanda
41
+ * @date 2022-08-17 16:08:36
42
+ * @param {ModalParams} params
43
+ * @return {*} {Promise<void>}
44
+ */
45
+ info(params: ModalParams): Promise<void>;
46
+ /**
47
+ * 成功信息
48
+ *
49
+ * @author chitanda
50
+ * @date 2022-08-17 16:08:47
51
+ * @param {ModalParams} params
52
+ * @return {*} {Promise<void>}
53
+ */
54
+ success(params: ModalParams): Promise<void>;
55
+ /**
56
+ * 警告信息
57
+ *
58
+ * @author chitanda
59
+ * @date 2022-08-17 16:08:53
60
+ * @param {ModalParams} params
61
+ * @return {*} {Promise<void>}
62
+ */
63
+ warning(params: ModalParams): Promise<void>;
64
+ /**
65
+ * 错误信息
66
+ *
67
+ * @author chitanda
68
+ * @date 2022-08-17 16:08:59
69
+ * @param {ModalParams} params
70
+ * @return {*} {Promise<void>}
71
+ */
72
+ error(params: ModalParams): Promise<void>;
73
+ /**
74
+ * 确认操作
75
+ *
76
+ * @author chitanda
77
+ * @date 2022-08-17 16:08:10
78
+ * @param {ModalParams} params
79
+ * @return {*} {Promise<boolean>}
80
+ */
81
+ confirm(params: ModalParams): Promise<boolean>;
82
+ }
83
+ //# sourceMappingURL=i-modal-util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-modal-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-modal-util/i-modal-util.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;OAOG;IACH,IAAI,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAChD"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,79 @@
1
+ /**
2
+ * 通知参数
3
+ *
4
+ * @author chitanda
5
+ * @date 2022-08-17 15:08:04
6
+ * @export
7
+ * @interface NotificationParams
8
+ */
9
+ export interface NotificationParams {
10
+ /**
11
+ * 标题
12
+ *
13
+ * @author chitanda
14
+ * @date 2022-08-17 15:08:11
15
+ * @type {string}
16
+ */
17
+ title: string;
18
+ /**
19
+ * 描述
20
+ *
21
+ * @author chitanda
22
+ * @date 2022-08-17 15:08:15
23
+ * @type {string}
24
+ */
25
+ desc?: string;
26
+ /**
27
+ * 自动关闭的延时,单位秒,不关闭可以写 0
28
+ *
29
+ * @default 4.5
30
+ * @author chitanda
31
+ * @date 2022-08-17 15:08:37
32
+ * @type {number}
33
+ */
34
+ duration?: number;
35
+ }
36
+ /**
37
+ * 在界面右上角显示可关闭的全局通知
38
+ *
39
+ * @description 常用于以下场景:通知内容带有描述信息、系统主动推送
40
+ * @author chitanda
41
+ * @date 2022-08-17 15:08:11
42
+ * @export
43
+ * @interface INotificationUtil
44
+ */
45
+ export interface INotificationUtil {
46
+ /**
47
+ * 普通通知
48
+ *
49
+ * @author chitanda
50
+ * @date 2022-08-17 15:08:22
51
+ * @param {NotificationParams} params
52
+ */
53
+ info(params: NotificationParams): void;
54
+ /**
55
+ * 成功通知
56
+ *
57
+ * @author chitanda
58
+ * @date 2022-08-17 15:08:28
59
+ * @param {NotificationParams} params
60
+ */
61
+ success(params: NotificationParams): void;
62
+ /**
63
+ * 警告通知
64
+ *
65
+ * @author chitanda
66
+ * @date 2022-08-17 15:08:35
67
+ * @param {NotificationParams} params
68
+ */
69
+ warning(params: NotificationParams): void;
70
+ /**
71
+ * 失败通知
72
+ *
73
+ * @author chitanda
74
+ * @date 2022-08-17 15:08:41
75
+ * @param {NotificationParams} params
76
+ */
77
+ error(params: NotificationParams): void;
78
+ }
79
+ //# sourceMappingURL=i-notification-util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-notification-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-notification-util/i-notification-util.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACvC;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC1C;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC1C;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC;CACzC"}
@@ -0,0 +1,69 @@
1
+ import { IBizContext } from '@ibiz-template/core';
2
+ import { IPSAppView } from '@ibiz-template/model';
3
+ import { IModalData } from '../../i-modal-data/i-modal-data';
4
+ /**
5
+ * 打开视图工具类
6
+ *
7
+ * @description 各种类型打开视图方法实现接口定义
8
+ * @author chitanda
9
+ * @date 2022-08-16 20:08:38
10
+ * @export
11
+ * @interface IOpenViewUtil
12
+ */
13
+ export interface IOpenViewUtil {
14
+ /**
15
+ * 打开顶级视图
16
+ *
17
+ * @author chitanda
18
+ * @date 2022-08-16 20:08:57
19
+ * @param {IPSAppView} appView
20
+ * @param {IBizContext} [context]
21
+ * @param {IParams} [params]
22
+ */
23
+ root(appView: IPSAppView, context?: IBizContext, params?: IParams): void;
24
+ /**
25
+ * 打开模态视图
26
+ *
27
+ * @author chitanda
28
+ * @date 2022-08-16 20:08:41
29
+ * @param {IPSAppView} appView
30
+ * @param {IBizContext} [context]
31
+ * @param {IParams} [params]
32
+ * @return {*} {Promise<IModalData>}
33
+ */
34
+ modal(appView: IPSAppView, context?: IBizContext, params?: IParams): Promise<IModalData>;
35
+ /**
36
+ * 气泡模式打开
37
+ *
38
+ * @author chitanda
39
+ * @date 2022-08-16 20:08:22
40
+ * @param {IPSAppView} appView
41
+ * @param {IBizContext} [context]
42
+ * @param {IParams} [params]
43
+ * @return {*} {Promise<IModalData>}
44
+ */
45
+ popover(appView: IPSAppView, context?: IBizContext, params?: IParams): Promise<IModalData>;
46
+ /**
47
+ * 抽屉模式打开
48
+ *
49
+ * @author chitanda
50
+ * @date 2022-08-16 20:08:46
51
+ * @param {IPSAppView} appView
52
+ * @param {IBizContext} [context]
53
+ * @param {IParams} [params]
54
+ * @return {*} {Promise<IModalData>}
55
+ */
56
+ drawer(appView: IPSAppView, context?: IBizContext, params?: IParams): Promise<IModalData>;
57
+ /**
58
+ * 自定义打开方式
59
+ *
60
+ * @author chitanda
61
+ * @date 2022-08-16 20:08:29
62
+ * @param {IPSAppView} appView
63
+ * @param {IBizContext} [context]
64
+ * @param {IParams} [params]
65
+ * @return {*} {Promise<IModalData>}
66
+ */
67
+ custom(appView: IPSAppView, context?: IBizContext, params?: IParams): Promise<IModalData>;
68
+ }
69
+ //# sourceMappingURL=i-open-view-util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-open-view-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-open-view-util/i-open-view-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D;;;;;;;;GAQG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEzE;;;;;;;;;OASG;IACH,KAAK,CACH,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvB;;;;;;;;;OASG;IACH,OAAO,CACL,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvB;;;;;;;;;OASG;IACH,MAAM,CACJ,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvB;;;;;;;;;OASG;IACH,MAAM,CACJ,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC,CAAC;CACxB"}
@@ -0,0 +1,6 @@
1
+ export { ILoadingUtil } from './i-loading-util/i-loading-util';
2
+ export { IMessageUtil } from './i-message-util/i-message-util';
3
+ export { IModalUtil, ModalParams } from './i-modal-util/i-modal-util';
4
+ export { INotificationUtil, NotificationParams, } from './i-notification-util/i-notification-util';
5
+ export { IOpenViewUtil } from './i-open-view-util/i-open-view-util';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/util/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EACL,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
package/out/types.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { CommandController } from '@ibiz-template/command';
2
+ import '@ibiz-template/service';
3
+ import { IMessageUtil, INotificationUtil, IOpenViewUtil, IModalUtil, ILoadingUtil } from './interface';
2
4
  declare module '@ibiz-template/core' {
3
5
  interface IBizSys {
4
6
  /**
@@ -9,6 +11,50 @@ declare module '@ibiz-template/core' {
9
11
  * @type {AuthService}
10
12
  */
11
13
  commands: CommandController;
14
+ /**
15
+ * 全局加载动画工具
16
+ *
17
+ * @author chitanda
18
+ * @date 2022-08-17 17:08:51
19
+ * @type {ILoadingUtil}
20
+ */
21
+ loading: ILoadingUtil;
22
+ /**
23
+ * 简洁确认框
24
+ *
25
+ * @description 需要用户确认收到提示消息时使用此工具
26
+ * @author chitanda
27
+ * @date 2022-08-17 16:08:10
28
+ * @type {IModalUtil}
29
+ */
30
+ modal: IModalUtil;
31
+ /**
32
+ * 消息通知
33
+ *
34
+ * @description 顶部居中显示,并自动消失
35
+ * @author chitanda
36
+ * @date 2022-08-17 15:08:00
37
+ * @type {IMessageUtil}
38
+ */
39
+ message: IMessageUtil;
40
+ /**
41
+ * 通知框
42
+ *
43
+ * @description 在界面右上角显示可关闭的全局通知
44
+ * @author chitanda
45
+ * @date 2022-08-17 15:08:47
46
+ * @type {INotificationUtil}
47
+ */
48
+ notification: INotificationUtil;
49
+ /**
50
+ * 多模式打开视图工具类
51
+ *
52
+ * @description 需要在具体的前端技术框架中实现此工具类并挂载
53
+ * @author chitanda
54
+ * @date 2022-08-16 20:08:46
55
+ * @type {IOpenViewUtil}
56
+ */
57
+ openView: IOpenViewUtil;
12
58
  }
13
59
  }
14
60
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,OAAO;QACf;;;;;;WAMG;QACH,QAAQ,EAAE,iBAAiB,CAAC;KAC7B;CACF"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,wBAAwB,CAAC;AAChC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,OAAO;QACf;;;;;;WAMG;QACH,QAAQ,EAAE,iBAAiB,CAAC;QAC5B;;;;;;WAMG;QACH,OAAO,EAAE,YAAY,CAAC;QACtB;;;;;;;WAOG;QACH,KAAK,EAAE,UAAU,CAAC;QAClB;;;;;;;WAOG;QACH,OAAO,EAAE,YAAY,CAAC;QACtB;;;;;;;WAOG;QACH,YAAY,EAAE,iBAAiB,CAAC;QAChC;;;;;;;WAOG;QACH,QAAQ,EAAE,aAAa,CAAC;KACzB;CACF"}
package/out/types.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ import '@ibiz-template/service';
@@ -0,0 +1,86 @@
1
+ import { IPSAppDEUIAction } from '@ibiz-template/model';
2
+ import { IUIActionResult } from '../../interface';
3
+ /**
4
+ * 应用实体界面行为
5
+ *
6
+ * @author chitanda
7
+ * @date 2022-08-26 00:08:17
8
+ * @export
9
+ * @class AppDEUIActionUtil
10
+ */
11
+ export declare class AppDEUIActionUtil {
12
+ /**
13
+ * 执行界面行为
14
+ *
15
+ * @author chitanda
16
+ * @date 2022-08-29 15:08:47
17
+ * @static
18
+ * @param {IPSAppDEUIAction} action
19
+ * @param {IContext} context
20
+ * @param {(IData | null)} data
21
+ * @param {IParams} [params]
22
+ * @param {IData} [opts]
23
+ * @return {*} {Promise<IUIActionResult>}
24
+ */
25
+ static exec(action: IPSAppDEUIAction, context: IContext, data: IData[] | null, params: IParams, opts?: IData): Promise<IUIActionResult>;
26
+ /**
27
+ * 参数处理(根据数据目标和数据参数,导航参数)
28
+ *
29
+ * @author lxm
30
+ * @date 2022-08-29 17:08:00
31
+ * @protected
32
+ * @static
33
+ * @param {IPSAppDEUIAction} action 界面行为
34
+ * @param {IContext} context 上下文
35
+ * @param {(IData[] | null)} data 数据集合
36
+ * @param {IParams} params 视图参数
37
+ * @returns {*} {Promise<{
38
+ * resultContext: IContext; 处理后的上下文
39
+ * resultData: IData[]; 处理后的数据集合
40
+ * resultParams: IParams; 处理后的视图参数
41
+ * }>}
42
+ */
43
+ protected static handleParams(action: IPSAppDEUIAction, context: IContext, data: IData[] | null, params: IParams): Promise<{
44
+ resultContext: IContext;
45
+ resultData: IData[];
46
+ resultParams: IParams;
47
+ }>;
48
+ /**
49
+ * 执行系统预置界面行为
50
+ *
51
+ * @author lxm
52
+ * @date 2022-08-29 15:08:29
53
+ * @static
54
+ * @param {IPSAppDEUIAction} action
55
+ * @returns {*} {Promise<IUIActionResult>}
56
+ */
57
+ static executeSysUIAction(action: IPSAppDEUIAction, data: IData[] | null, opts?: IData): Promise<IUIActionResult>;
58
+ /**
59
+ * 执行前台调用
60
+ *
61
+ * @author lxm
62
+ * @date 2022-08-29 15:08:51
63
+ * @static
64
+ * @param {IPSAppDEUIAction} action
65
+ * @param {IContext} context
66
+ * @param {(IData[] | null)} data
67
+ * @param {IParams} params
68
+ * @param {IData} [opts]
69
+ * @returns {*} {Promise<IUIActionResult>}
70
+ */
71
+ static executeFrontUIAction(action: IPSAppDEUIAction, context: IContext, _data: IData[] | null, params: IParams, opts?: IData): Promise<IUIActionResult>;
72
+ /**
73
+ * 执行后台调用
74
+ *
75
+ * @author lxm
76
+ * @date 2022-08-28 20:08:35
77
+ * @export
78
+ * @param {IPSAppDEUIAction} action
79
+ * @param {IContext} context
80
+ * @param {IData[]} data
81
+ * @param {IParams} params
82
+ * @returns {*} {Promise<IUIActionResult>}
83
+ */
84
+ static executeBackEndUIAction(action: IPSAppDEUIAction, context: IContext, _data: IData[], params: IParams): Promise<IUIActionResult>;
85
+ }
86
+ //# sourceMappingURL=app-de-ui-action-util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-de-ui-action-util.d.ts","sourceRoot":"","sources":["../../../src/utils/app-de-ui-action-util/app-de-ui-action-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsB,MAAM,sBAAsB,CAAC;AAG5E,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IAC5B;;;;;;;;;;;;OAYG;WACU,IAAI,CACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EACpB,MAAM,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,KAAK,GACX,OAAO,CAAC,eAAe,CAAC;IAsE3B;;;;;;;;;;;;;;;;OAgBG;qBACoB,YAAY,CACjC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EACpB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC;QACT,aAAa,EAAE,QAAQ,CAAC;QACxB,UAAU,EAAE,KAAK,EAAE,CAAC;QACpB,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;IAwDF;;;;;;;;OAQG;WACU,kBAAkB,CAC7B,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EACpB,IAAI,CAAC,EAAE,KAAK,GACX,OAAO,CAAC,eAAe,CAAC;IAoF3B;;;;;;;;;;;;OAYG;WACU,oBAAoB,CAC/B,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EACrB,MAAM,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,KAAK,GACX,OAAO,CAAC,eAAe,CAAC;IAiB3B;;;;;;;;;;;OAWG;WACU,sBAAsB,CACjC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,KAAK,EAAE,EACd,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,eAAe,CAAC;CAY5B"}