@ibiz-template/runtime 0.7.41-alpha.51 → 0.7.41-alpha.53
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.
- package/dist/index.esm.js +272 -86
- package/dist/index.system.min.js +1 -1
- package/out/controller/common/control/md-control.controller.d.ts +6 -0
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +7 -0
- package/out/controller/control/chart/chart.controller.d.ts.map +1 -1
- package/out/controller/control/chart/chart.controller.js +3 -2
- package/out/controller/control/form/form/form.controller.d.ts +7 -0
- package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form/form.controller.js +11 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts +6 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +19 -1
- package/out/controller/control/report-panel/generator/base-generator.d.ts +3 -2
- package/out/controller/control/report-panel/generator/base-generator.d.ts.map +1 -1
- package/out/controller/control/report-panel/generator/base-generator.js +1 -0
- package/out/controller/control/toolbar/toolbar.controller.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controller.js +16 -8
- package/out/controller/ctx/ctx.d.ts +6 -4
- package/out/controller/ctx/ctx.d.ts.map +1 -1
- package/out/controller/ctx/ctx.js +1 -0
- package/out/controller/hub.controller.d.ts +8 -4
- package/out/controller/hub.controller.d.ts.map +1 -1
- package/out/controller/hub.controller.js +5 -3
- package/out/interface/api/app/i-api-app-hub-controller.d.ts +23 -19
- package/out/interface/api/app/i-api-app-hub-controller.d.ts.map +1 -1
- package/out/interface/api/app/i-api-app-hub-service.d.ts +9 -9
- package/out/interface/api/app/i-micro-app-config-center.d.ts +3 -3
- package/out/interface/api/call/i-api-data-view.call.d.ts +2 -2
- package/out/interface/api/call/i-api-edit-view.call.d.ts +2 -2
- package/out/interface/api/call/i-api-grid-view.call.d.ts +2 -2
- package/out/interface/api/call/i-api-list-view.call.d.ts +2 -2
- package/out/interface/api/call/i-api-login-view.call.d.ts +21 -5
- package/out/interface/api/call/i-api-login-view.call.d.ts.map +1 -1
- package/out/interface/api/call/i-api-md-custom-view.call.d.ts +3 -3
- package/out/interface/api/call/i-api-md-view.call.d.ts +6 -6
- package/out/interface/api/call/i-api-mob-wf-dyna-edit-view.call.d.ts +1 -1
- package/out/interface/api/call/i-api-tree-exp-view.call.d.ts +4 -4
- package/out/interface/api/call/i-api-tree-grid-ex-view.call.d.ts +1 -1
- package/out/interface/api/call/i-api-tree-grid-view.call.d.ts +4 -7
- package/out/interface/api/call/i-api-tree-grid-view.call.d.ts.map +1 -1
- package/out/interface/api/call/i-api-tree-view.call.d.ts +4 -4
- package/out/interface/api/call/i-api-view.call.d.ts +1 -1
- package/out/interface/api/common/global-config/i-api-global-form-config.d.ts +0 -1
- package/out/interface/api/common/global-config/i-api-global-form-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-search-form-config.d.ts +1 -0
- package/out/interface/api/common/global-config/i-api-global-search-form-config.d.ts.map +1 -1
- package/out/interface/api/common/i-api-ctx.d.ts +41 -0
- package/out/interface/api/common/i-api-ctx.d.ts.map +1 -0
- package/out/interface/api/common/i-api-ctx.js +1 -0
- package/out/interface/api/common/i-api-error-handler.d.ts +15 -0
- package/out/interface/api/common/i-api-error-handler.d.ts.map +1 -0
- package/out/interface/api/common/i-api-error-handler.js +1 -0
- package/out/interface/api/common/i-api-modal-option.d.ts +50 -0
- package/out/interface/api/common/i-api-modal-option.d.ts.map +1 -0
- package/out/interface/api/common/i-api-modal-option.js +1 -0
- package/out/interface/api/common/i-api-overlay-container-options.d.ts +3 -3
- package/out/interface/api/common/i-api-overlay-container-options.d.ts.map +1 -1
- package/out/interface/api/common/i-api-ui-action-result.d.ts +51 -0
- package/out/interface/api/common/i-api-ui-action-result.d.ts.map +1 -0
- package/out/interface/api/common/i-api-ui-action-result.js +1 -0
- package/out/interface/api/common/i-api-ui-logic-params.d.ts +52 -0
- package/out/interface/api/common/i-api-ui-logic-params.d.ts.map +1 -0
- package/out/interface/api/common/i-api-ui-logic-params.js +1 -0
- package/out/interface/api/common/index.d.ts +5 -0
- package/out/interface/api/common/index.d.ts.map +1 -1
- package/out/interface/api/controller/common/i-api-enforceable.controller.d.ts +1 -1
- package/out/interface/api/controller/control/form-detail/i-api-form-button-controller.d.ts +3 -3
- package/out/interface/api/controller/control/form-detail/i-api-form-button-list.controller.d.ts +6 -6
- package/out/interface/api/controller/control/form-detail/i-api-form-detail.controller.d.ts +1 -0
- package/out/interface/api/controller/control/form-detail/i-api-form-detail.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/form-detail/i-api-form-group-panel.controller.d.ts +3 -3
- package/out/interface/api/controller/control/form-detail/i-api-form-mdctrl-form.controller.d.ts +1 -7
- package/out/interface/api/controller/control/form-detail/i-api-form-mdctrl-form.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/form-detail/i-api-form-mdctrl-repeater.controller.d.ts +2 -2
- package/out/interface/api/controller/control/form-detail/i-api-form-mdctrl.controller.d.ts +2 -2
- package/out/interface/api/controller/control/grid-column/i-api-grid-column.controller.d.ts +1 -1
- package/out/interface/api/controller/control/grid-column/i-api-grid-field-column.controller.d.ts +6 -6
- package/out/interface/api/controller/control/grid-column/i-api-grid-field-edit-column.controller.d.ts +3 -3
- package/out/interface/api/controller/control/grid-column/i-api-grid-ua-column.controller.d.ts +3 -3
- package/out/interface/api/controller/control/i-api-calendar.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-chart.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-control.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-data-view-control.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-drbar.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-drtab.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-edit-form.controller.d.ts +7 -6
- package/out/interface/api/controller/control/i-api-edit-form.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-exp-bar-control.controller.d.ts +3 -3
- package/out/interface/api/controller/control/i-api-form.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-gantt.controller.d.ts +3 -3
- package/out/interface/api/controller/control/i-api-grid.controller.d.ts +4 -4
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts +2 -3
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-list.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-map.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-md-control.controller.d.ts +7 -7
- package/out/interface/api/controller/control/i-api-medit-view-panel.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-mob-md-ctrl.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-pickup-view-panel.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-report-panel.controller.d.ts +4 -3
- package/out/interface/api/controller/control/i-api-report-panel.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts +4 -3
- package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-search-form.controller.d.ts +3 -2
- package/out/interface/api/controller/control/i-api-search-form.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-tab-exp-panel.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-toolbar.controller.d.ts +4 -4
- package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-tree-grid.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-tree.controller.d.ts +3 -3
- package/out/interface/api/controller/control/index.d.ts +2 -1
- package/out/interface/api/controller/control/index.d.ts.map +1 -1
- package/out/interface/api/controller/control/index.js +1 -0
- package/out/interface/api/controller/control/portlet/i-api-portlet.controller.d.ts +11 -7
- package/out/interface/api/controller/control/portlet/i-api-portlet.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/report-panel/i-api-report-panel-generator.d.ts +33 -0
- package/out/interface/api/controller/control/report-panel/i-api-report-panel-generator.d.ts.map +1 -0
- package/out/interface/api/controller/control/report-panel/i-api-report-panel-generator.js +1 -0
- package/out/interface/api/controller/control/report-panel/index.d.ts +2 -0
- package/out/interface/api/controller/control/report-panel/index.d.ts.map +1 -0
- package/out/interface/api/controller/control/report-panel/index.js +1 -0
- package/out/interface/api/controller/view/i-api-view.controller.d.ts +3 -3
- package/out/interface/api/service/i-api-app-de.service.d.ts +46 -44
- package/out/interface/api/service/i-api-app-de.service.d.ts.map +1 -1
- package/out/interface/api/service/i-api-auth-result.d.ts +4 -4
- package/out/interface/api/service/i-api-auth-result.d.ts.map +1 -1
- package/out/interface/api/service/i-api-code-list.service.d.ts +5 -5
- package/out/interface/api/service/i-api-de-service-util.d.ts +7 -7
- package/out/interface/api/service/index.d.ts +1 -0
- package/out/interface/api/service/index.d.ts.map +1 -1
- package/out/interface/api/service/vo/i-api-control.vo.d.ts +89 -0
- package/out/interface/api/service/vo/i-api-control.vo.d.ts.map +1 -0
- package/out/interface/api/service/vo/i-api-control.vo.js +1 -0
- package/out/interface/api/service/vo/i-api-ui-map-field.d.ts +54 -0
- package/out/interface/api/service/vo/i-api-ui-map-field.d.ts.map +1 -0
- package/out/interface/api/service/vo/i-api-ui-map-field.js +1 -0
- package/out/interface/api/service/vo/index.d.ts +3 -0
- package/out/interface/api/service/vo/index.d.ts.map +1 -0
- package/out/interface/api/service/vo/index.js +1 -0
- package/out/interface/api/state/common/i-api-button-container.state.d.ts +1 -1
- package/out/interface/api/state/common/i-api-button.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-app-menu.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-calendar.state.d.ts +33 -2
- package/out/interface/api/state/control/i-api-calendar.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-chart.state.d.ts +48 -9
- package/out/interface/api/state/control/i-api-chart.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-control.state.d.ts +0 -1
- package/out/interface/api/state/control/i-api-control.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-grid.state.d.ts +4 -3
- package/out/interface/api/state/control/i-api-grid.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-medit-view-panel.state.d.ts +8 -8
- package/out/interface/api/state/control/i-api-medit-view-panel.state.d.ts.map +1 -1
- package/out/interface/api/state/control/portlet/i-api-portlet.state.d.ts +1 -1
- package/out/interface/api/state/view/i-api-view-session.d.ts +1 -1
- package/out/interface/api/util/i-api-ai-chat-util.d.ts +99 -22
- package/out/interface/api/util/i-api-ai-chat-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-app-util.d.ts +31 -27
- package/out/interface/api/util/i-api-app-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-confirm-util.d.ts +4 -4
- package/out/interface/api/util/i-api-encryption-util.d.ts +15 -0
- package/out/interface/api/util/i-api-encryption-util.d.ts.map +1 -0
- package/out/interface/api/util/i-api-encryption-util.js +1 -0
- package/out/interface/api/util/i-api-error-handle-center.d.ts +21 -0
- package/out/interface/api/util/i-api-error-handle-center.d.ts.map +1 -0
- package/out/interface/api/util/i-api-error-handle-center.js +1 -0
- package/out/interface/api/util/i-api-excel-util.d.ts +25 -0
- package/out/interface/api/util/i-api-excel-util.d.ts.map +1 -0
- package/out/interface/api/util/i-api-excel-util.js +1 -0
- package/out/interface/api/util/i-api-file-util.d.ts +17 -17
- package/out/interface/api/util/i-api-file-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-fullscreen-util.d.ts +5 -4
- package/out/interface/api/util/i-api-fullscreen-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-global-util.d.ts +58 -1
- package/out/interface/api/util/i-api-global-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-handlebars-util.d.ts +4 -4
- package/out/interface/api/util/i-api-html2canvas-util.d.ts +4 -4
- package/out/interface/api/util/i-api-inline-ai-util.d.ts +12 -12
- package/out/interface/api/util/i-api-inline-ai-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-json-util.d.ts +15 -14
- package/out/interface/api/util/i-api-json-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-message-util.d.ts +2 -3
- package/out/interface/api/util/i-api-message-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-modal-util.d.ts +6 -6
- package/out/interface/api/util/i-api-notification-util.d.ts +5 -5
- package/out/interface/api/util/i-api-open-view-util.d.ts +33 -29
- package/out/interface/api/util/i-api-open-view-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-qrcode-util.d.ts +5 -4
- package/out/interface/api/util/i-api-qrcode-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-raw-value-util.d.ts +2 -2
- package/out/interface/api/util/i-api-short-cut-util.d.ts +24 -8
- package/out/interface/api/util/i-api-short-cut-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-text-util.d.ts +7 -0
- package/out/interface/api/util/i-api-text-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-ui-action-util.d.ts +36 -0
- package/out/interface/api/util/i-api-ui-action-util.d.ts.map +1 -0
- package/out/interface/api/util/i-api-ui-action-util.js +1 -0
- package/out/interface/api/util/i-api-voice-util.d.ts +3 -4
- package/out/interface/api/util/i-api-voice-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-water-mark-util.d.ts +3 -3
- package/out/interface/api/util/i-api-wechat-util.d.ts +11 -3
- package/out/interface/api/util/i-api-wechat-util.d.ts.map +1 -1
- package/out/interface/api/util/index.d.ts +4 -0
- package/out/interface/api/util/index.d.ts.map +1 -1
- package/out/interface/common/i-error-handler/i-error-handler.d.ts +3 -8
- package/out/interface/common/i-error-handler/i-error-handler.d.ts.map +1 -1
- package/out/interface/common/i-modal-options/i-modal-options.d.ts +2 -55
- package/out/interface/common/i-modal-options/i-modal-options.d.ts.map +1 -1
- package/out/interface/common/i-ui-action-result/i-ui-action-result.d.ts +3 -57
- package/out/interface/common/i-ui-action-result/i-ui-action-result.d.ts.map +1 -1
- package/out/interface/common/i-ui-logic-params/i-ui-logic-params.d.ts +3 -36
- package/out/interface/common/i-ui-logic-params/i-ui-logic-params.d.ts.map +1 -1
- package/out/interface/controller/controller/i.controller.d.ts +6 -0
- package/out/interface/controller/controller/i.controller.d.ts.map +1 -1
- package/out/interface/util/i-encryption-uitl/i-encryption-uitl.d.ts +3 -10
- package/out/interface/util/i-encryption-uitl/i-encryption-uitl.d.ts.map +1 -1
- package/out/interface/util/i-excel-util/i-excel-util.d.ts +3 -12
- package/out/interface/util/i-excel-util/i-excel-util.d.ts.map +1 -1
- package/out/model/utils/util.d.ts +28 -1
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +138 -0
- package/out/ui-action/uiaction-util.d.ts +8 -0
- package/out/ui-action/uiaction-util.d.ts.map +1 -1
- package/out/ui-action/uiaction-util.js +12 -0
- package/out/utils/error-handler/error-handler-center.d.ts +3 -2
- package/out/utils/error-handler/error-handler-center.d.ts.map +1 -1
- package/out/utils/error-handler/error-handler-center.js +1 -0
- package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
- package/out/utils/open-redirect-view/open-redirect-view.js +4 -0
- package/package.json +3 -3
|
@@ -5,26 +5,74 @@ import { IApiControlController, IApiViewController } from '../controller';
|
|
|
5
5
|
* @description AI聊天工具栏项
|
|
6
6
|
*/
|
|
7
7
|
export interface IApiAIToolbarItem {
|
|
8
|
+
/**
|
|
9
|
+
* @description 应用标识
|
|
10
|
+
* @type {string}
|
|
11
|
+
* @memberof IApiAIToolbarItem
|
|
12
|
+
*/
|
|
8
13
|
appId: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description 工具栏项标识
|
|
16
|
+
* @type {(string | undefined)}
|
|
17
|
+
* @memberof IApiAIToolbarItem
|
|
18
|
+
*/
|
|
9
19
|
id: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* @description 工具栏项标签
|
|
22
|
+
* @type {(string | undefined)}
|
|
23
|
+
* @memberof IApiAIToolbarItem
|
|
24
|
+
*/
|
|
10
25
|
label: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* @description 工具栏项提示信息
|
|
28
|
+
* @type {(string | undefined)}
|
|
29
|
+
* @memberof IApiAIToolbarItem
|
|
30
|
+
*/
|
|
11
31
|
title: string | undefined;
|
|
12
|
-
|
|
32
|
+
/**
|
|
33
|
+
* @description 工具栏项图标
|
|
34
|
+
* @type {{
|
|
35
|
+
* showIcon?: boolean; // 是否显示图标
|
|
36
|
+
* cssClass?: string; // 图标CSS类名
|
|
37
|
+
* imagePath?: string; // 图标地址
|
|
38
|
+
* }}
|
|
39
|
+
* @memberof IApiAIToolbarItem
|
|
40
|
+
*/
|
|
41
|
+
icon: {
|
|
42
|
+
showIcon?: boolean;
|
|
43
|
+
cssClass?: string;
|
|
44
|
+
imagePath?: string;
|
|
45
|
+
};
|
|
13
46
|
}
|
|
14
47
|
/**
|
|
15
48
|
* @description AI聊天工具
|
|
16
49
|
*/
|
|
17
50
|
export interface IApiAIChatUtil {
|
|
18
51
|
/**
|
|
19
|
-
* 获取AI聊天对象
|
|
52
|
+
* @description 获取AI聊天对象
|
|
53
|
+
* @returns {*} {Promise<IApiData>}
|
|
54
|
+
* @memberof IApiAIChatUtil
|
|
20
55
|
*/
|
|
21
56
|
getAIChat(): Promise<IApiData>;
|
|
22
57
|
/**
|
|
23
|
-
* 获取编辑器扩展AI聊天参数
|
|
24
|
-
* @param editorParams
|
|
25
|
-
* @param context
|
|
26
|
-
* @param params
|
|
27
|
-
* @param data
|
|
58
|
+
* @description 获取编辑器扩展AI聊天参数
|
|
59
|
+
* @param {IApiData} editorParams 编辑器参数
|
|
60
|
+
* @param {IApiContext} context 上下文参数
|
|
61
|
+
* @param {IApiParams} params 视图参数
|
|
62
|
+
* @param {IApiData} data 数据
|
|
63
|
+
* @param {IAppDEACMode} deACMode 自填模式
|
|
64
|
+
* @param {{
|
|
65
|
+
* chatInstance: IApiData; // AI聊天对象实例
|
|
66
|
+
* view: IApiViewController; // 视图控制器
|
|
67
|
+
* ctrl?: IApiControlController; // 部件控制器
|
|
68
|
+
* [key: string]: any;
|
|
69
|
+
* }} args 额外参数
|
|
70
|
+
* @returns {*} {Promise<{
|
|
71
|
+
* containerOptions: IApiData;
|
|
72
|
+
* topicOptions: IApiData;
|
|
73
|
+
* chatOptions: IApiData;
|
|
74
|
+
* }>}
|
|
75
|
+
* @memberof IApiAIChatUtil
|
|
28
76
|
*/
|
|
29
77
|
getEditorExAIChatParams(editorParams: IApiData, context: IApiContext, params: IApiParams, data: IApiData, deACMode: IAppDEACMode, args: {
|
|
30
78
|
chatInstance: IApiData;
|
|
@@ -37,10 +85,23 @@ export interface IApiAIChatUtil {
|
|
|
37
85
|
chatOptions: IApiData;
|
|
38
86
|
}>;
|
|
39
87
|
/**
|
|
40
|
-
* 获取界面行为扩展AI聊天参数
|
|
41
|
-
* @param context
|
|
42
|
-
* @param params
|
|
43
|
-
* @param data
|
|
88
|
+
* @description 获取界面行为扩展AI聊天参数
|
|
89
|
+
* @param {IApiContext} context 上下文参数
|
|
90
|
+
* @param {IApiParams} params 视图参数
|
|
91
|
+
* @param {IApiData} data 数据
|
|
92
|
+
* @param {IAppDEACMode} deACMode 自填模式
|
|
93
|
+
* @param {{
|
|
94
|
+
* chatInstance: IApiData; // AI聊天对象实例
|
|
95
|
+
* view: IApiViewController; // 视图控制器
|
|
96
|
+
* ctrl?: IApiControlController; // 部件控制器
|
|
97
|
+
* [key: string]: any;
|
|
98
|
+
* }} args 额外参数
|
|
99
|
+
* @returns {*} {Promise<{
|
|
100
|
+
* containerOptions: IApiData;
|
|
101
|
+
* topicOptions: IApiData;
|
|
102
|
+
* chatOptions: IApiData;
|
|
103
|
+
* }>}
|
|
104
|
+
* @memberof IApiAIChatUtil
|
|
44
105
|
*/
|
|
45
106
|
getUIActionExAIChatParams(context: IApiContext, params: IApiParams, data: IApiData, deACMode: IAppDEACMode, args: {
|
|
46
107
|
chatInstance: IApiData;
|
|
@@ -53,8 +114,17 @@ export interface IApiAIChatUtil {
|
|
|
53
114
|
chatOptions: IApiData;
|
|
54
115
|
}>;
|
|
55
116
|
/**
|
|
56
|
-
* 计算界面行为扩展AI聊天工具栏项
|
|
57
|
-
* @param deACMode 自填模式
|
|
117
|
+
* @description 计算界面行为扩展AI聊天工具栏项
|
|
118
|
+
* @param {IAppDEACMode} [deACMode] 自填模式
|
|
119
|
+
* @returns {*} {{
|
|
120
|
+
* contentToolbarItems: IApiAIToolbarItem[];
|
|
121
|
+
* footerToolbarItems: IApiAIToolbarItem[];
|
|
122
|
+
* questionToolbarItems: IApiAIToolbarItem[];
|
|
123
|
+
* otherToolbarItems: IApiAIToolbarItem[];
|
|
124
|
+
* functionToolbarItems: IApiAIToolbarItem[];
|
|
125
|
+
* inlineToolbarItems: IApiAIToolbarItem[];
|
|
126
|
+
* }}
|
|
127
|
+
* @memberof IApiAIChatUtil
|
|
58
128
|
*/
|
|
59
129
|
calcAiToolbarItemsByAc(deACMode?: IAppDEACMode): {
|
|
60
130
|
contentToolbarItems: IApiAIToolbarItem[];
|
|
@@ -65,21 +135,28 @@ export interface IApiAIChatUtil {
|
|
|
65
135
|
inlineToolbarItems: IApiAIToolbarItem[];
|
|
66
136
|
};
|
|
67
137
|
/**
|
|
68
|
-
* 获取AI代理列表
|
|
69
|
-
* @param context
|
|
70
|
-
* @param params
|
|
71
|
-
* @param editorParams
|
|
138
|
+
* @description 获取AI代理列表
|
|
139
|
+
* @param {IApiContext} context 上下文参数
|
|
140
|
+
* @param {IApiParams} params 视图参数
|
|
141
|
+
* @param {IApiData} [editorParams] 编辑器参数
|
|
142
|
+
* @returns {*} {Promise<IApiData[]>}
|
|
143
|
+
* @memberof IApiAIChatUtil
|
|
72
144
|
*/
|
|
73
145
|
getAIAgentList(context: IApiContext, params: IApiParams, editorParams?: IApiData): Promise<IApiData[]>;
|
|
74
146
|
/**
|
|
75
|
-
* 获取会话标识(TOPIC:适用于多话题场景;INLINE:适用于ai行内会话场景;TEMP:适用于传统ai编辑器会话场景)
|
|
76
|
-
* @param
|
|
147
|
+
* @description 获取会话标识(TOPIC:适用于多话题场景;INLINE:适用于ai行内会话场景;TEMP:适用于传统ai编辑器会话场景)
|
|
148
|
+
* @param {('TOPIC' | 'INLINE' | 'TEMP')} type 会话类型
|
|
149
|
+
* @param {string} [sessionID] 会话id
|
|
150
|
+
* @returns {*} {string}
|
|
151
|
+
* @memberof IApiAIChatUtil
|
|
77
152
|
*/
|
|
78
153
|
getChatSessionId(type: 'TOPIC' | 'INLINE' | 'TEMP', sessionID?: string): string;
|
|
79
154
|
/**
|
|
80
|
-
* 获取AI
|
|
81
|
-
* @param context
|
|
82
|
-
* @param params
|
|
155
|
+
* @description 获取AI资源参数
|
|
156
|
+
* @param {IApiContext} context 上下文参数
|
|
157
|
+
* @param {IApiParams} params 视图参数
|
|
158
|
+
* @returns {*} {Promise<IApiData>}
|
|
159
|
+
* @memberof IApiAIChatUtil
|
|
83
160
|
*/
|
|
84
161
|
getAIResourceOptions(context: IApiContext, params: IApiParams): Promise<IApiData>;
|
|
85
162
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-ai-chat-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-ai-chat-util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"i-api-ai-chat-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-ai-chat-util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WA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05-14 15:05:07
|
|
82
|
-
* @param {string} loginName
|
|
83
|
-
* @param {string} password
|
|
84
|
-
* @param {boolean} [remember]
|
|
85
|
-
* @param {IApiData} [headers]
|
|
86
|
-
* @param {IApiData} [opts]
|
|
82
|
+
* @param {string} loginName 登录名
|
|
83
|
+
* @param {string} password 密码
|
|
84
|
+
* @param {boolean} [remember] 是否记住登录状态
|
|
85
|
+
* @param {IApiData} [headers] 请求头
|
|
86
|
+
* @param {IApiData} [opts] 登录配置
|
|
87
87
|
* @return {*} {Promise<boolean>}
|
|
88
88
|
*/
|
|
89
89
|
login(loginName: string, password: string, remember?: boolean, headers?: IApiData, opts?: IApiData): Promise<boolean>;
|
|
@@ -92,7 +92,7 @@ export interface IApiAppUtil {
|
|
|
92
92
|
*
|
|
93
93
|
* @author tony001
|
|
94
94
|
* @date 2024-05-14 15:05:24
|
|
95
|
-
* @param {IApiData} [opts]
|
|
95
|
+
* @param {IApiData} [opts] 登出配置
|
|
96
96
|
* @return {*} {Promise<boolean>}
|
|
97
97
|
*/
|
|
98
98
|
logout(opts?: IApiData): Promise<boolean>;
|
|
@@ -101,20 +101,24 @@ export interface IApiAppUtil {
|
|
|
101
101
|
*
|
|
102
102
|
* @author tony001
|
|
103
103
|
* @date 2024-05-14 15:05:33
|
|
104
|
-
* @param {string} oldPwd
|
|
105
|
-
* @param {string} newPwd
|
|
106
|
-
* @param {
|
|
104
|
+
* @param {string} oldPwd 旧密码
|
|
105
|
+
* @param {string} newPwd 新密码
|
|
106
|
+
* @param {{
|
|
107
|
+
* surePwd: string; // 确认密码
|
|
108
|
+
* }} [opts] 变更密码配置
|
|
107
109
|
* @return {*} {Promise<IApiAuthResult>}
|
|
108
110
|
*/
|
|
109
|
-
changePwd(oldPwd: string, newPwd: string, opts?:
|
|
111
|
+
changePwd(oldPwd: string, newPwd: string, opts?: {
|
|
112
|
+
surePwd: string;
|
|
113
|
+
}): Promise<IApiAuthResult>;
|
|
110
114
|
/**
|
|
111
115
|
* 切换组织
|
|
112
116
|
*
|
|
113
117
|
* @author tony001
|
|
114
118
|
* @date 2024-05-14 15:05:51
|
|
115
|
-
* @param {string} oldOrgId
|
|
116
|
-
* @param {string} newOrgId
|
|
117
|
-
* @param {IApiData} [opts]
|
|
119
|
+
* @param {string} oldOrgId 旧组织id
|
|
120
|
+
* @param {string} newOrgId 新组织id
|
|
121
|
+
* @param {IApiData} [opts] 切换组织配置
|
|
118
122
|
* @return {*} {Promise<boolean>}
|
|
119
123
|
*/
|
|
120
124
|
switchOrg(oldOrgId: string, newOrgId: string, opts?: IApiData): Promise<boolean>;
|
|
@@ -123,9 +127,9 @@ export interface IApiAppUtil {
|
|
|
123
127
|
*
|
|
124
128
|
* @author tony001
|
|
125
129
|
* @date 2024-05-14 16:05:06
|
|
126
|
-
* @param {string} oldTheme
|
|
127
|
-
* @param {string} newTheme
|
|
128
|
-
* @param {IApiData} [opts]
|
|
130
|
+
* @param {string} oldTheme 旧主题
|
|
131
|
+
* @param {string} newTheme 新主题
|
|
132
|
+
* @param {IApiData} [opts] 切换主题配置
|
|
129
133
|
* @return {*} {Promise<boolean>}
|
|
130
134
|
*/
|
|
131
135
|
switchTheme(oldTheme: string, newTheme: string, opts?: IApiData): Promise<boolean>;
|
|
@@ -134,9 +138,9 @@ export interface IApiAppUtil {
|
|
|
134
138
|
*
|
|
135
139
|
* @author tony001
|
|
136
140
|
* @date 2024-05-14 16:05:20
|
|
137
|
-
* @param {string} oldLanguage
|
|
138
|
-
* @param {string} newLanguage
|
|
139
|
-
* @param {IApiData} [opts]
|
|
141
|
+
* @param {string} oldLanguage 旧语言
|
|
142
|
+
* @param {string} newLanguage 新语言
|
|
143
|
+
* @param {IApiData} [opts] 切换语言配置
|
|
140
144
|
* @return {*} {Promise<boolean>}
|
|
141
145
|
*/
|
|
142
146
|
switchLanguage(oldLanguage: string, newLanguage: string, opts?: IApiData): Promise<boolean>;
|
|
@@ -150,7 +154,7 @@ export interface IApiAppUtil {
|
|
|
150
154
|
/**
|
|
151
155
|
* 打开AI聊天
|
|
152
156
|
*
|
|
153
|
-
* @param {IApiAiChatParam} params
|
|
157
|
+
* @param {IApiAiChatParam} params 聊天配置
|
|
154
158
|
* @return {*} {Promise<IApiChatMessage[]>}
|
|
155
159
|
* @memberof IApiAppUtil
|
|
156
160
|
*/
|
|
@@ -163,7 +167,7 @@ export interface IApiAppUtil {
|
|
|
163
167
|
viewCacheCenter: Map<string, IApiViewController>;
|
|
164
168
|
/**
|
|
165
169
|
* @description 当前路由转换成路由路径对象
|
|
166
|
-
* @param {boolean} [isRouteModal]
|
|
170
|
+
* @param {boolean} [isRouteModal] 是否是路由模态
|
|
167
171
|
* @returns {*} {{
|
|
168
172
|
* appContext: IApiParams;
|
|
169
173
|
* pathNodes: {
|
|
@@ -187,14 +191,14 @@ export interface IApiAppUtil {
|
|
|
187
191
|
/**
|
|
188
192
|
* @description 路由路径对象转化为路由路径
|
|
189
193
|
* @param {{
|
|
190
|
-
* appContext?: IApiParams;
|
|
194
|
+
* appContext?: IApiParams; // 应用上下文
|
|
191
195
|
* pathNodes: {
|
|
192
|
-
* viewName: string;
|
|
193
|
-
* context?: IApiParams;
|
|
194
|
-
* params?: IApiParams;
|
|
195
|
-
* srfnav?: string;
|
|
196
|
+
* viewName: string; // 视图名称
|
|
197
|
+
* context?: IApiParams; // 上下文参数
|
|
198
|
+
* params?: IApiParams; // 视图参数
|
|
199
|
+
* srfnav?: string; // 导航参数
|
|
196
200
|
* }[];
|
|
197
|
-
* }} routePath
|
|
201
|
+
* }} routePath 路由路径对象
|
|
198
202
|
* @returns {*} {string}
|
|
199
203
|
* @memberof IApiAppUtil
|
|
200
204
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-app-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-app-util.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,UAAU,EACV,eAAe,EAChB,MAAM,qBAAqB,CAAC;A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EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,QAAQ,GACd,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB;;;;;OAKG;IACH,aAAa,IAAI,UAAU,GAAG,SAAS,CAAC;IAExC;;;;;;OAMG;IACH,UAAU,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IAEhE;;;;OAIG;IACH,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAEjD;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG;QACzC,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,SAAS,EAAE;YACT,QAAQ,EAAE,MAAM,CAAC;YACjB,OAAO,CAAC,EAAE,UAAU,CAAC;YACrB,MAAM,CAAC,EAAE,UAAU,CAAC;YACpB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,EAAE,CAAC;KACL,CAAC;IAEF;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,SAAS,EAAE;QAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,SAAS,EAAE;YACT,QAAQ,EAAE,MAAM,CAAC;YACjB,OAAO,CAAC,EAAE,UAAU,CAAC;YACrB,MAAM,CAAC,EAAE,UAAU,CAAC;YACpB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,EAAE,CAAC;KACL,GAAG,MAAM,CAAC;CACZ"}
|
|
@@ -32,28 +32,28 @@ export interface IApiConfirmParams {
|
|
|
32
32
|
export interface IApiConfirmUtil {
|
|
33
33
|
/**
|
|
34
34
|
* @description 弹出普通信息
|
|
35
|
-
* @param {IApiConfirmParams} params
|
|
35
|
+
* @param {IApiConfirmParams} params 确认框参数
|
|
36
36
|
* @returns {*} {Promise<boolean>}
|
|
37
37
|
* @memberof IApiConfirmUtil
|
|
38
38
|
*/
|
|
39
39
|
info(params: IApiConfirmParams): Promise<boolean>;
|
|
40
40
|
/**
|
|
41
41
|
* @description 弹出成功信息
|
|
42
|
-
* @param {IApiConfirmParams} params
|
|
42
|
+
* @param {IApiConfirmParams} params 确认框参数
|
|
43
43
|
* @returns {*} {Promise<boolean>}
|
|
44
44
|
* @memberof IApiConfirmUtil
|
|
45
45
|
*/
|
|
46
46
|
success(params: IApiConfirmParams): Promise<boolean>;
|
|
47
47
|
/**
|
|
48
48
|
* @description 弹出警告信息
|
|
49
|
-
* @param {IApiConfirmParams} params
|
|
49
|
+
* @param {IApiConfirmParams} params 确认框参数
|
|
50
50
|
* @returns {*} {Promise<boolean>}
|
|
51
51
|
* @memberof IApiConfirmUtil
|
|
52
52
|
*/
|
|
53
53
|
warning(params: IApiConfirmParams): Promise<boolean>;
|
|
54
54
|
/**
|
|
55
55
|
* @description 弹出错误信息
|
|
56
|
-
* @param {IApiConfirmParams} params
|
|
56
|
+
* @param {IApiConfirmParams} params 确认框参数
|
|
57
57
|
* @returns {*} {Promise<boolean>}
|
|
58
58
|
* @memberof IApiConfirmUtil
|
|
59
59
|
*/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description 加密工具类
|
|
3
|
+
* @export
|
|
4
|
+
* @interface IApiEncryptionUtil
|
|
5
|
+
*/
|
|
6
|
+
export interface IApiEncryptionUtil {
|
|
7
|
+
/**
|
|
8
|
+
* @description RSA加密
|
|
9
|
+
* @param {string} plainText 待加密文本
|
|
10
|
+
* @returns {*} {Promise<string>}
|
|
11
|
+
* @memberof IApiEncryptionUtil
|
|
12
|
+
*/
|
|
13
|
+
encryptByRSA(plainText: string): Promise<string>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=i-api-encryption-util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-api-encryption-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-encryption-util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IApiErrorHandler } from '../common';
|
|
2
|
+
/**
|
|
3
|
+
* @description 错误处理工具类
|
|
4
|
+
* @export
|
|
5
|
+
* @interface IApiErrorHandlerCenter
|
|
6
|
+
*/
|
|
7
|
+
export interface IApiErrorHandlerCenter {
|
|
8
|
+
/**
|
|
9
|
+
* @description 注册处理器(后注册的优先级更高)
|
|
10
|
+
* @param {IApiErrorHandler} handler 错误处理器
|
|
11
|
+
* @memberof IApiErrorHandlerCenter
|
|
12
|
+
*/
|
|
13
|
+
register(handler: IApiErrorHandler): void;
|
|
14
|
+
/**
|
|
15
|
+
* @description 按顺序检测处理器,最先满足条件的处理该异常
|
|
16
|
+
* @param {unknown} error
|
|
17
|
+
* @memberof IApiErrorHandlerCenter
|
|
18
|
+
*/
|
|
19
|
+
handle(error: unknown): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=i-api-error-handle-center.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-api-error-handle-center.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-error-handle-center.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE1C;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IApiData } from '@ibiz-template/core';
|
|
2
|
+
/**
|
|
3
|
+
* @description Excel工具类
|
|
4
|
+
* @export
|
|
5
|
+
* @interface IApiExcelUtil
|
|
6
|
+
*/
|
|
7
|
+
export interface IApiExcelUtil {
|
|
8
|
+
/**
|
|
9
|
+
* @description 导出成Excel文件
|
|
10
|
+
* @param {{
|
|
11
|
+
* header: string[]; // 表头内容
|
|
12
|
+
* data: IApiData[]; // 数据内容
|
|
13
|
+
* filename: string; // 文件名称
|
|
14
|
+
* autoWidth: boolean; // 单元格是否自适应
|
|
15
|
+
* }} args 导出配置
|
|
16
|
+
* @memberof IApiExcelUtil
|
|
17
|
+
*/
|
|
18
|
+
exportJsonToExcel(args: {
|
|
19
|
+
header: string[];
|
|
20
|
+
data: IApiData[];
|
|
21
|
+
filename: string;
|
|
22
|
+
autoWidth: boolean;
|
|
23
|
+
}): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=i-api-excel-util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-api-excel-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-excel-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;OASG;IACH,iBAAiB,CAAC,IAAI,EAAE;QACtB,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,IAAI,EAAE,QAAQ,EAAE,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,OAAO,CAAC;KACpB,GAAG,IAAI,CAAC;CACV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiContext, IApiData, IApiParams } from '@ibiz-template/core';
|
|
1
|
+
import { IApiContext, IApiData, IApiParams, IHttpResponse } from '@ibiz-template/core';
|
|
2
2
|
import { IApiDownloadTicket } from '../common';
|
|
3
3
|
/**
|
|
4
4
|
* @description 扩展参数接口,用于计算附件的上传和下载路径
|
|
@@ -39,7 +39,7 @@ export interface IApiFileUpDownExtraParams {
|
|
|
39
39
|
export interface IApiFileUtil {
|
|
40
40
|
/**
|
|
41
41
|
* @description 设置文件上传请求头数据
|
|
42
|
-
* @param {Record<string, string>} args
|
|
42
|
+
* @param {Record<string, string>} args 请求头数据
|
|
43
43
|
* @memberof IApiFileUtil
|
|
44
44
|
*/
|
|
45
45
|
setUploadHeaders(args: Record<string, string>): void;
|
|
@@ -71,11 +71,11 @@ export interface IApiFileUtil {
|
|
|
71
71
|
* @returns {*} {string}
|
|
72
72
|
* @memberof IApiFileUtil
|
|
73
73
|
*/
|
|
74
|
-
getFileName(response:
|
|
74
|
+
getFileName(response: IHttpResponse): string;
|
|
75
75
|
/**
|
|
76
76
|
* @description 文件下载
|
|
77
|
-
* @param {string} url
|
|
78
|
-
* @param {string} [name]
|
|
77
|
+
* @param {string} url 下载地址
|
|
78
|
+
* @param {string} [name] 文件名
|
|
79
79
|
* @param {({
|
|
80
80
|
* context: IApiContext;
|
|
81
81
|
* params: IApiParams;
|
|
@@ -104,10 +104,10 @@ export interface IApiFileUtil {
|
|
|
104
104
|
}, enableDownloadTicket?: boolean, enableNoAccess?: boolean): Promise<void>;
|
|
105
105
|
/**
|
|
106
106
|
* @description 获取下载凭证
|
|
107
|
-
* @param {IApiContext} context
|
|
108
|
-
* @param {IApiParams} params
|
|
109
|
-
* @param {IApiData} data
|
|
110
|
-
* @param {({ fileId: string } & IApiData)}
|
|
107
|
+
* @param {IApiContext} context 上下文参数
|
|
108
|
+
* @param {IApiParams} params 视图参数
|
|
109
|
+
* @param {IApiData} data 业务数据
|
|
110
|
+
* @param {({ fileId: string } & IApiData)} file 文件信息
|
|
111
111
|
* @param {{ appEntityTag?: string; dataFieldTag?: string }} [downloadTicketParams] 存在appEntityTag,则调用appEntityTag映射的实体服务创建下载凭证能力,否则调用当前界面域主实体的实体服务;存在dataFieldTag,则按照业务数据(data)、上下文(context)、视图参数(params)顺序找对应的属性值作为创建下载凭证数据主键,没有则使用上下文中找对应的数据主键
|
|
112
112
|
* @returns {*} {(Promise<IApiDownloadTicket | undefined>)}
|
|
113
113
|
* @memberof IApiFileUtil
|
|
@@ -120,25 +120,25 @@ export interface IApiFileUtil {
|
|
|
120
120
|
}): Promise<IApiDownloadTicket | undefined>;
|
|
121
121
|
/**
|
|
122
122
|
* @description 设置下载票据
|
|
123
|
-
* @param {string} fileId
|
|
124
|
-
* @param {IApiData} downloadTicket
|
|
123
|
+
* @param {string} fileId 文件标识
|
|
124
|
+
* @param {IApiData} downloadTicket 下载凭证数据
|
|
125
125
|
* @memberof IApiFileUtil
|
|
126
126
|
*/
|
|
127
127
|
setDownloadTicket(fileId: string, downloadTicket: IApiData): void;
|
|
128
128
|
/**
|
|
129
129
|
* @description 文件上传
|
|
130
|
-
* @param {string} uploadUrl
|
|
131
|
-
* @param {Blob} file
|
|
132
|
-
* @param {IApiData} headers
|
|
130
|
+
* @param {string} uploadUrl 上传地址
|
|
131
|
+
* @param {Blob} file 文件
|
|
132
|
+
* @param {IApiData} headers 请求头
|
|
133
133
|
* @returns {*} {Promise<IApiData>}
|
|
134
134
|
* @memberof IApiFileUtil
|
|
135
135
|
*/
|
|
136
136
|
fileUpload(uploadUrl: string, file: Blob, headers: IApiData): Promise<IApiData>;
|
|
137
137
|
/**
|
|
138
138
|
* @description 选择并上传文件
|
|
139
|
-
* @param {IApiContext} context
|
|
140
|
-
* @param {IApiParams} params
|
|
141
|
-
* @param {IApiData} data
|
|
139
|
+
* @param {IApiContext} context 上下文参数
|
|
140
|
+
* @param {IApiParams} params 视图参数
|
|
141
|
+
* @param {IApiData} data 业务数据
|
|
142
142
|
* @param {{
|
|
143
143
|
* accept: string;
|
|
144
144
|
* multiple?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-file-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-file-util.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"i-api-file-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-file-util.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,UAAU,EACV,aAAa,EACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAErD;;;;OAIG;IACH,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE3C;;;;;;;;;;;OAWG;IACH,iBAAiB,CACf,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,EAClB,IAAI,CAAC,EAAE,QAAQ,EACf,WAAW,CAAC,EAAE,yBAAyB,GACtC;QACD,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IAEF;;;;;OAKG;IACH,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,CAAC;IAE7C;;;;;;;;;;;;;;;;OAgBG;IACH,YAAY,CACV,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,MAAM,EACb,cAAc,CAAC,EAAE;QACf,OAAO,EAAE,WAAW,CAAC;QACrB,MAAM,EAAE,UAAU,CAAC;QACnB,IAAI,EAAE,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CAAC,CAAC;IAEnC;;;;;;OAMG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;IAE9E;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CACT,GAAG,EAAE,MAAM,EACX,YAAY,CAAC,EAAE,0BAA0B,EACzC,cAAc,CAAC,EAAE;QACf,OAAO,EAAE,WAAW,CAAC;QACrB,MAAM,EAAE,UAAU,CAAC;QACnB,IAAI,EAAE,QAAQ,CAAC;QACf,IAAI,EAAE;YAAE,MAAM,EAAE,MAAM,CAAA;SAAE,GAAG,QAAQ,CAAC;QACpC,WAAW,CAAC,EAAE,yBAAyB,CAAC;QACxC,oBAAoB,CAAC,EAAE;YAAE,YAAY,CAAC,EAAE,MAAM,CAAC;YAAC,YAAY,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACzE,EACD,oBAAoB,CAAC,EAAE,OAAO,EAC9B,cAAc,CAAC,EAAE,OAAO,GACvB,OAAO,CAAC,QAAQ,CAAC,CAAC;IAErB;;;;;;;OAOG;IACH,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtE;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IApiData } from '@ibiz-template/core';
|
|
2
1
|
/**
|
|
3
2
|
* @description 全屏工具类
|
|
4
3
|
* @export
|
|
@@ -7,11 +6,13 @@ import { IApiData } from '@ibiz-template/core';
|
|
|
7
6
|
export interface IApiFullscreenUtil {
|
|
8
7
|
/**
|
|
9
8
|
* @description 指定元素全屏
|
|
10
|
-
* @param {HTMLDivElement} div
|
|
11
|
-
* @param {
|
|
9
|
+
* @param {HTMLDivElement} div 元素
|
|
10
|
+
* @param {{ class?: string }} [data] 全屏配置,class: 全屏CSS类名
|
|
12
11
|
* @memberof IApiFullscreenUtil
|
|
13
12
|
*/
|
|
14
|
-
openElementFullscreen(div: HTMLDivElement, data?:
|
|
13
|
+
openElementFullscreen(div: HTMLDivElement, data?: {
|
|
14
|
+
class?: string;
|
|
15
|
+
}): void;
|
|
15
16
|
/**
|
|
16
17
|
* @description 退出全屏
|
|
17
18
|
* @memberof IApiFullscreenUtil
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-fullscreen-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-fullscreen-util.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"i-api-fullscreen-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-fullscreen-util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,qBAAqB,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAE5E;;;OAGG;IACH,sBAAsB,IAAI,IAAI,CAAC;CAChC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IApiParams } from '@ibiz-template/core';
|
|
1
2
|
import { Base64 } from 'js-base64';
|
|
2
3
|
import { IApiHandlebarsUtil } from './i-api-handlebars-util';
|
|
3
4
|
import { IApiTextUtil } from './i-api-text-util';
|
|
@@ -10,6 +11,10 @@ import { IApiVoiceUtil } from './i-api-voice-util';
|
|
|
10
11
|
import { IApiWaterMarkUtil } from './i-api-water-mark-util';
|
|
11
12
|
import { IApiWeChatUtil } from './i-api-wechat-util';
|
|
12
13
|
import { IApiJsonUtil } from './i-api-json-util';
|
|
14
|
+
import { IApiUIActionUtil } from './i-api-ui-action-util';
|
|
15
|
+
import { IApiErrorHandlerCenter } from './i-api-error-handle-center';
|
|
16
|
+
import { IApiEncryptionUtil } from './i-api-encryption-util';
|
|
17
|
+
import { IApiExcelUtil } from './i-api-excel-util';
|
|
13
18
|
/**
|
|
14
19
|
* @description 全局工具接口
|
|
15
20
|
* @export
|
|
@@ -46,6 +51,18 @@ export interface IApiGlobalUtil {
|
|
|
46
51
|
* @memberof IApiGlobalUtil
|
|
47
52
|
*/
|
|
48
53
|
readonly rawValue: IApiRawValueUtil;
|
|
54
|
+
/**
|
|
55
|
+
* @description 界面行为工具
|
|
56
|
+
* @type {IApiUIActionUtil}
|
|
57
|
+
* @memberof IApiGlobalUtil
|
|
58
|
+
*/
|
|
59
|
+
readonly action: IApiUIActionUtil;
|
|
60
|
+
/**
|
|
61
|
+
* @description 错误处理工具
|
|
62
|
+
* @type {IApiErrorHandlerCenter}
|
|
63
|
+
* @memberof IApiGlobalUtil
|
|
64
|
+
*/
|
|
65
|
+
readonly error: IApiErrorHandlerCenter;
|
|
49
66
|
/**
|
|
50
67
|
* @description 最小化工具类
|
|
51
68
|
* @type {IApiShortCutUtil}
|
|
@@ -70,6 +87,12 @@ export interface IApiGlobalUtil {
|
|
|
70
87
|
* @memberof IApiGlobalUtil
|
|
71
88
|
*/
|
|
72
89
|
readonly voice: IApiVoiceUtil;
|
|
90
|
+
/**
|
|
91
|
+
* @description 加密工具类
|
|
92
|
+
* @type {IApiEncryptionUtil}
|
|
93
|
+
* @memberof IApiGlobalUtil
|
|
94
|
+
*/
|
|
95
|
+
readonly encryption: IApiEncryptionUtil;
|
|
73
96
|
/**
|
|
74
97
|
* @description 水印工具类
|
|
75
98
|
* @type {IApiWaterMarkUtil}
|
|
@@ -88,11 +111,45 @@ export interface IApiGlobalUtil {
|
|
|
88
111
|
* @memberof IApiGlobalUtil
|
|
89
112
|
*/
|
|
90
113
|
readonly jsonUtil: IApiJsonUtil;
|
|
114
|
+
/**
|
|
115
|
+
* @description 获取Excel工具类
|
|
116
|
+
* @memberof IApiGlobalUtil
|
|
117
|
+
*/
|
|
118
|
+
getExcelUtil?: () => Promise<IApiExcelUtil>;
|
|
119
|
+
/**
|
|
120
|
+
* @description 显示应用级别的加载提示
|
|
121
|
+
* @memberof IApiGlobalUtil
|
|
122
|
+
*/
|
|
123
|
+
showAppLoading(): void;
|
|
124
|
+
/**
|
|
125
|
+
* @description 隐藏应用级别的加载提示
|
|
126
|
+
* @memberof IApiGlobalUtil
|
|
127
|
+
*/
|
|
128
|
+
hiddenAppLoading(): void;
|
|
91
129
|
/**
|
|
92
130
|
* @description 设置浏览器标题
|
|
93
|
-
* @param {string} title
|
|
131
|
+
* @param {string} title 浏览器标题
|
|
94
132
|
* @memberof IApiGlobalUtil
|
|
95
133
|
*/
|
|
96
134
|
setBrowserTitle(title: string): void;
|
|
135
|
+
/**
|
|
136
|
+
* @description 获取应用全局变量
|
|
137
|
+
* @returns {*} {IApiParams}
|
|
138
|
+
* @memberof IApiGlobalUtil
|
|
139
|
+
*/
|
|
140
|
+
getGlobalParam(): IApiParams;
|
|
141
|
+
/**
|
|
142
|
+
* @description 获取视图路由参数变量
|
|
143
|
+
* @returns {*} {IApiParams[]}
|
|
144
|
+
* @memberof IApiGlobalUtil
|
|
145
|
+
*/
|
|
146
|
+
getRouterParams(): IApiParams[];
|
|
147
|
+
/**
|
|
148
|
+
* @description 注册全局功能类扩展,用于替换预置能力
|
|
149
|
+
* @param {keyof IApiGlobalUtil} key 全局功能名称
|
|
150
|
+
* @param {*} value 全局功能实现
|
|
151
|
+
* @memberof IApiGlobalUtil
|
|
152
|
+
*/
|
|
153
|
+
registerExtension(key: keyof IApiGlobalUtil, value: any): void;
|
|
97
154
|
}
|
|
98
155
|
//# sourceMappingURL=i-api-global-util.d.ts.map
|