@ibiz-template/runtime 0.7.41-alpha.52 → 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 +22 -5
- package/dist/index.system.min.js +1 -1
- 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/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/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/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-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 +2 -2
- package/out/interface/api/controller/control/i-api-search-form.controller.d.ts +2 -1
- 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 +11 -11
- package/out/interface/api/util/i-api-json-util.d.ts +8 -8
- 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/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/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
|
@@ -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,W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AyB,CAAC;KACzC,GACA,OAAO,CAAC,QAAQ,EAAE,GAAG,SAAS,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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-global-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-global-util.ts"],"names":[],"mappings":"
|
|
1
|
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
|
|
9
9
|
* @description 异步绘制模板,返回渲染后的字符串
|
|
10
|
-
* @param {string} template
|
|
11
|
-
* @param {IApiData} data
|
|
10
|
+
* @param {string} template 模板字符串
|
|
11
|
+
* @param {IApiData} data 业务数据
|
|
12
12
|
* @returns {*} {Promise<string>}
|
|
13
13
|
* @memberof IApiHandlebarsUtil
|
|
14
14
|
*/
|
|
15
15
|
render(template: string, data: IApiData): Promise<string>;
|
|
16
16
|
/**
|
|
17
17
|
* @description 同步绘制模板,返回渲染后的字符串
|
|
18
|
-
* @param {string} template
|
|
19
|
-
* @param {IApiData} data
|
|
18
|
+
* @param {string} template 模板字符串
|
|
19
|
+
* @param {IApiData} data 业务数据
|
|
20
20
|
* @returns {*} {string}
|
|
21
21
|
* @memberof IApiHandlebarsUtil
|
|
22
22
|
*/
|
|
@@ -138,16 +138,16 @@ export interface IApiHtml2canvasOption {
|
|
|
138
138
|
export interface IApiHtml2canvasUtil {
|
|
139
139
|
/**
|
|
140
140
|
* @description 导出canvas
|
|
141
|
-
* @param {HTMLElement} dom
|
|
142
|
-
* @param {IApiHtml2canvasOption} [option]
|
|
141
|
+
* @param {HTMLElement} dom 元素
|
|
142
|
+
* @param {IApiHtml2canvasOption} [option] html2canvas配置
|
|
143
143
|
* @returns {*} {Promise<void>}
|
|
144
144
|
* @memberof IApiHtml2canvasUtil
|
|
145
145
|
*/
|
|
146
146
|
exportCanvas(dom: HTMLElement, option?: IApiHtml2canvasOption): Promise<void>;
|
|
147
147
|
/**
|
|
148
148
|
* @description 获取节点转化的canvas
|
|
149
|
-
* @param {HTMLElement} dom
|
|
150
|
-
* @param {IApiHtml2canvasOption} [option]
|
|
149
|
+
* @param {HTMLElement} dom 元素
|
|
150
|
+
* @param {IApiHtml2canvasOption} [option] html2canvas配置
|
|
151
151
|
* @returns {*} {Promise<HTMLCanvasElement>}
|
|
152
152
|
* @memberof IApiHtml2canvasUtil
|
|
153
153
|
*/
|
|
@@ -43,7 +43,7 @@ export interface IApiInLineAiChatOptions {
|
|
|
43
43
|
export interface IApiInLineAIUtil {
|
|
44
44
|
/**
|
|
45
45
|
* @description 计算上下文菜单
|
|
46
|
-
* @param {IAppDEACMode | undefined} deACMode
|
|
46
|
+
* @param {IAppDEACMode | undefined} deACMode 自填模式
|
|
47
47
|
* @param {(tag: string) => void} clickCallBack 项点击回调
|
|
48
48
|
* @returns {IApiData[]}
|
|
49
49
|
* @memberof IApiInLineAIUtil
|
|
@@ -51,21 +51,21 @@ export interface IApiInLineAIUtil {
|
|
|
51
51
|
calcContextMenus(deACMode: IAppDEACMode | undefined, clickCallBack: (tag: string) => void): IApiData[];
|
|
52
52
|
/**
|
|
53
53
|
* @description 显示上下文菜单
|
|
54
|
-
* @param {number} x
|
|
55
|
-
* @param {number} y
|
|
56
|
-
* @param {IApiData[]} menus
|
|
57
|
-
* @param {IData} [options]
|
|
54
|
+
* @param {number} x 距离左侧距离
|
|
55
|
+
* @param {number} y 距离上方距离
|
|
56
|
+
* @param {IApiData[]} menus 菜单集合
|
|
57
|
+
* @param {IData} [options] 菜单配置
|
|
58
58
|
* @memberof IApiInLineAIUtil
|
|
59
59
|
*/
|
|
60
60
|
showContextMenus(x: number, y: number, menus: IApiData[], options?: IApiData): void;
|
|
61
61
|
/**
|
|
62
62
|
* @description 显示AI聊天
|
|
63
|
-
* @param {IApiContext} context
|
|
64
|
-
* @param {IApiParams} params
|
|
65
|
-
* @param {IApiData} data
|
|
66
|
-
* @param {string} selectText
|
|
67
|
-
* @param {IAppDEACMode} deACMode
|
|
68
|
-
* @param {IApiInLineAiChatOptions} options
|
|
63
|
+
* @param {IApiContext} context 上下文参数
|
|
64
|
+
* @param {IApiParams} params 视图参数
|
|
65
|
+
* @param {IApiData} data 业务数据
|
|
66
|
+
* @param {string} selectText 选中文本
|
|
67
|
+
* @param {IAppDEACMode} deACMode 自填模式
|
|
68
|
+
* @param {IApiInLineAiChatOptions} options 聊天配置
|
|
69
69
|
* @memberof IApiInLineAIUtil
|
|
70
70
|
*/
|
|
71
71
|
showAIChat(context: IApiContext, params: IApiParams, data: IApiData, selectText: string, deACMode: IAppDEACMode, options: IApiInLineAiChatOptions): void;
|
|
@@ -57,38 +57,38 @@ export interface IApiJsonRepairResult {
|
|
|
57
57
|
export interface IApiJsonUtil {
|
|
58
58
|
/**
|
|
59
59
|
* @description json修复,用于提取大语言模型中的json数据
|
|
60
|
-
* @param {string} value
|
|
61
|
-
* @param {IApiJsonRepairOption} [options]
|
|
60
|
+
* @param {string} value json字符串
|
|
61
|
+
* @param {IApiJsonRepairOption} [options] 修复配置
|
|
62
62
|
* @returns {*} {(IApiData | IApiData[] | string)}
|
|
63
63
|
* @memberof IApiJsonUtil
|
|
64
64
|
*/
|
|
65
65
|
repairJson(value: string, options?: IApiJsonRepairOption): IApiData | IApiData[] | string;
|
|
66
66
|
/**
|
|
67
67
|
* @description 加载字符串中的JSON数据,直接返回json数据对象
|
|
68
|
-
* @param {string} value
|
|
69
|
-
* @param {IApiJsonRepairOption} [options]
|
|
68
|
+
* @param {string} value json字符串
|
|
69
|
+
* @param {IApiJsonRepairOption} [options] 修复配置
|
|
70
70
|
* @returns {*} {IApiData | IApiData[]}
|
|
71
71
|
* @memberof IApiJsonUtil
|
|
72
72
|
*/
|
|
73
73
|
loads(value: string, options?: IApiJsonRepairOption): IApiData | IApiData[];
|
|
74
74
|
/**
|
|
75
75
|
* @description 判断是否为json对象
|
|
76
|
-
* @param {*} value
|
|
76
|
+
* @param {*} value 待判断值
|
|
77
77
|
* @returns {boolean}
|
|
78
78
|
* @memberof IApiJsonUtil
|
|
79
79
|
*/
|
|
80
80
|
isJsonObject(value: unknown): boolean;
|
|
81
81
|
/**
|
|
82
82
|
* @description 检测是否为json数组
|
|
83
|
-
* @param {*} value
|
|
83
|
+
* @param {*} value 待检测值
|
|
84
84
|
* @returns {boolean}
|
|
85
85
|
* @memberof IApiJsonUtil
|
|
86
86
|
*/
|
|
87
87
|
isJsonArray(value: unknown): boolean;
|
|
88
88
|
/**
|
|
89
89
|
* @description 解析字符串中的json数据,用于获取大语言模型中的json数据
|
|
90
|
-
* @param {string} value
|
|
91
|
-
* @param {IApiJsonRepairOption} [options]
|
|
90
|
+
* @param {string} value json字符串
|
|
91
|
+
* @param {IApiJsonRepairOption} [options] 修复配置
|
|
92
92
|
* @returns {*} {IApiJsonRepairResult}
|
|
93
93
|
* @memberof IApiJsonUtil
|
|
94
94
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IApiData } from '@ibiz-template/core';
|
|
2
1
|
/**
|
|
3
2
|
* @description 消息提示参数接口
|
|
4
3
|
* @export
|
|
@@ -76,9 +75,9 @@ export interface IApiMessageUtil {
|
|
|
76
75
|
error(msg: string, duration?: number, closable?: boolean): void;
|
|
77
76
|
/**
|
|
78
77
|
* @description 通用消息方法
|
|
79
|
-
* @param {
|
|
78
|
+
* @param {IApiMessageParams} params 配置详细的参数,详情参见:https://element-plus.org/zh-CN/component/message.html#message-%E9%85%8D%E7%BD%AE%E9%A1%B9
|
|
80
79
|
* @memberof IApiMessageUtil
|
|
81
80
|
*/
|
|
82
|
-
notice(params:
|
|
81
|
+
notice(params: IApiMessageParams): void;
|
|
83
82
|
}
|
|
84
83
|
//# sourceMappingURL=i-api-message-util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-message-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-message-util.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"i-api-message-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-message-util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAChD;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE/D;;;;;;OAMG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAElE;;;;;;OAMG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAClE;;;;;;OAMG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAChE;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACzC"}
|
|
@@ -62,42 +62,42 @@ export interface IApiModalParams {
|
|
|
62
62
|
export interface IApiModalUtil {
|
|
63
63
|
/**
|
|
64
64
|
* @description 弹出普通信息
|
|
65
|
-
* @param {IApiModalParams} params
|
|
65
|
+
* @param {IApiModalParams} params 确认框参数
|
|
66
66
|
* @returns {*} {Promise<void>}
|
|
67
67
|
* @memberof IApiModalUtil
|
|
68
68
|
*/
|
|
69
69
|
info(params: IApiModalParams): Promise<void>;
|
|
70
70
|
/**
|
|
71
71
|
* @description 弹出成功信息
|
|
72
|
-
* @param {IApiModalParams} params
|
|
72
|
+
* @param {IApiModalParams} params 确认框参数
|
|
73
73
|
* @returns {*} {Promise<void>}
|
|
74
74
|
* @memberof IApiModalUtil
|
|
75
75
|
*/
|
|
76
76
|
success(params: IApiModalParams): Promise<void>;
|
|
77
77
|
/**
|
|
78
78
|
* @description 弹出警告信息
|
|
79
|
-
* @param {IApiModalParams} params
|
|
79
|
+
* @param {IApiModalParams} params 确认框参数
|
|
80
80
|
* @returns {*} {Promise<void>}
|
|
81
81
|
* @memberof IApiModalUtil
|
|
82
82
|
*/
|
|
83
83
|
warning(params: IApiModalParams): Promise<void>;
|
|
84
84
|
/**
|
|
85
85
|
* @description 弹出错误信息
|
|
86
|
-
* @param {IApiModalParams} params
|
|
86
|
+
* @param {IApiModalParams} params 确认框参数
|
|
87
87
|
* @returns {*} {Promise<void>}
|
|
88
88
|
* @memberof IApiModalUtil
|
|
89
89
|
*/
|
|
90
90
|
error(params: IApiModalParams): Promise<void>;
|
|
91
91
|
/**
|
|
92
92
|
* @description 弹出确认操作
|
|
93
|
-
* @param {IApiModalParams} params
|
|
93
|
+
* @param {IApiModalParams} params 确认框参数
|
|
94
94
|
* @returns {*} {Promise<boolean>}
|
|
95
95
|
* @memberof IApiModalUtil
|
|
96
96
|
*/
|
|
97
97
|
confirm(params: IApiModalParams): Promise<boolean>;
|
|
98
98
|
/**
|
|
99
99
|
* @description 弹出确认操作,返回确认结果(yes | no | cancel)
|
|
100
|
-
* @param {IApiModalParams} params
|
|
100
|
+
* @param {IApiModalParams} params 确认框参数
|
|
101
101
|
* @returns {*} {(Promise<'yes' | 'no' | 'cancel'>)}
|
|
102
102
|
* @memberof IApiModalUtil
|
|
103
103
|
*/
|
|
@@ -54,31 +54,31 @@ export interface IApiNotificationParams {
|
|
|
54
54
|
export interface IApiNotificationUtil {
|
|
55
55
|
/**
|
|
56
56
|
* @description 弹出默认通知
|
|
57
|
-
* @param {IApiNotificationParams} params
|
|
57
|
+
* @param {IApiNotificationParams} params 通知参数
|
|
58
58
|
* @memberof IApiNotificationUtil
|
|
59
59
|
*/
|
|
60
60
|
default(params: IApiNotificationParams): void;
|
|
61
61
|
/**
|
|
62
62
|
* @description 弹出普通通知
|
|
63
|
-
* @param {IApiNotificationParams} params
|
|
63
|
+
* @param {IApiNotificationParams} params 通知参数
|
|
64
64
|
* @memberof IApiNotificationUtil
|
|
65
65
|
*/
|
|
66
66
|
info(params: IApiNotificationParams): void;
|
|
67
67
|
/**
|
|
68
68
|
* @description 弹出成功通知
|
|
69
|
-
* @param {IApiNotificationParams} params
|
|
69
|
+
* @param {IApiNotificationParams} params 通知参数
|
|
70
70
|
* @memberof IApiNotificationUtil
|
|
71
71
|
*/
|
|
72
72
|
success(params: IApiNotificationParams): void;
|
|
73
73
|
/**
|
|
74
74
|
* @description 弹出警告通知
|
|
75
|
-
* @param {IApiNotificationParams} params
|
|
75
|
+
* @param {IApiNotificationParams} params 通知参数
|
|
76
76
|
* @memberof IApiNotificationUtil
|
|
77
77
|
*/
|
|
78
78
|
warning(params: IApiNotificationParams): void;
|
|
79
79
|
/**
|
|
80
80
|
* @description 弹出失败通知
|
|
81
|
-
* @param {IApiNotificationParams} params
|
|
81
|
+
* @param {IApiNotificationParams} params 通知参数
|
|
82
82
|
* @memberof IApiNotificationUtil
|
|
83
83
|
*/
|
|
84
84
|
error(params: IApiNotificationParams): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiContext,
|
|
1
|
+
import { IApiContext, IApiParams } from '@ibiz-template/core';
|
|
2
2
|
import { IApiModalData, IApiOverlayContainerOptions, IApiPopoverOptions } from '../common';
|
|
3
3
|
/**
|
|
4
4
|
* @description 打开视图工具类
|
|
@@ -8,75 +8,79 @@ import { IApiModalData, IApiOverlayContainerOptions, IApiPopoverOptions } from '
|
|
|
8
8
|
export interface IApiOpenViewUtil {
|
|
9
9
|
/**
|
|
10
10
|
* @description 直接路径打开视图
|
|
11
|
-
* @param {string} path
|
|
11
|
+
* @param {string} path 视图路径
|
|
12
12
|
* @returns {*} {Promise<IApiModalData>}
|
|
13
13
|
* @memberof IApiOpenViewUtil
|
|
14
14
|
*/
|
|
15
15
|
push(path: string): Promise<IApiModalData>;
|
|
16
16
|
/**
|
|
17
17
|
* @description 打开顶级视图(一般为路由打开)
|
|
18
|
-
* @param {string} appViewId
|
|
19
|
-
* @param {IApiContext} context
|
|
20
|
-
* @param {IApiParams} [params]
|
|
21
|
-
* @param {
|
|
18
|
+
* @param {string} appViewId 应用视图id
|
|
19
|
+
* @param {IApiContext} context 上下文参数
|
|
20
|
+
* @param {IApiParams} [params] 视图参数
|
|
21
|
+
* @param {{
|
|
22
|
+
* replace?: boolean; // 是否替换当前路由
|
|
23
|
+
* }} [modalOptions] 配置
|
|
22
24
|
* @returns {*} {Promise<IApiModalData>}
|
|
23
25
|
* @memberof IApiOpenViewUtil
|
|
24
26
|
*/
|
|
25
|
-
root(appViewId: string, context: IApiContext, params?: IApiParams, modalOptions?:
|
|
27
|
+
root(appViewId: string, context: IApiContext, params?: IApiParams, modalOptions?: {
|
|
28
|
+
replace?: boolean;
|
|
29
|
+
}): Promise<IApiModalData>;
|
|
26
30
|
/**
|
|
27
31
|
* @description 打开顶级视图(模态方式打开)
|
|
28
|
-
* @param {string} appViewId
|
|
29
|
-
* @param {IApiContext} context
|
|
30
|
-
* @param {IApiParams} [params]
|
|
32
|
+
* @param {string} appViewId 应用视图id
|
|
33
|
+
* @param {IApiContext} context 上下文参数
|
|
34
|
+
* @param {IApiParams} [params] 视图参数
|
|
31
35
|
* @returns {*} {Promise<IApiModalData>}
|
|
32
36
|
* @memberof IApiOpenViewUtil
|
|
33
37
|
*/
|
|
34
38
|
rootByModal(appViewId: string, context: IApiContext, params?: IApiParams): Promise<IApiModalData>;
|
|
35
39
|
/**
|
|
36
40
|
* @description 打开模态视图
|
|
37
|
-
* @param {string} appViewId
|
|
38
|
-
* @param {IApiContext} context
|
|
39
|
-
* @param {IApiParams} [params]
|
|
40
|
-
* @param {IApiOverlayContainerOptions} [options]
|
|
41
|
+
* @param {string} appViewId 应用视图id
|
|
42
|
+
* @param {IApiContext} context 上下文参数
|
|
43
|
+
* @param {IApiParams} [params] 视图参数
|
|
44
|
+
* @param {IApiOverlayContainerOptions} [options] 模态配置
|
|
41
45
|
* @returns {*} {Promise<IApiModalData>}
|
|
42
46
|
* @memberof IApiOpenViewUtil
|
|
43
47
|
*/
|
|
44
48
|
modal(appViewId: string, context: IApiContext, params?: IApiParams, options?: IApiOverlayContainerOptions): Promise<IApiModalData>;
|
|
45
49
|
/**
|
|
46
50
|
* @description 气泡模式打开
|
|
47
|
-
* @param {string} appViewId
|
|
48
|
-
* @param {MouseEvent} event
|
|
49
|
-
* @param {IApiContext} context
|
|
50
|
-
* @param {IApiParams} [params]
|
|
51
|
-
* @param {(IApiPopoverOptions & IApiOverlayContainerOptions)} [options]
|
|
51
|
+
* @param {string} appViewId 应用视图id
|
|
52
|
+
* @param {MouseEvent} event 鼠标事件
|
|
53
|
+
* @param {IApiContext} context 上下文参数
|
|
54
|
+
* @param {IApiParams} [params] 视图参数
|
|
55
|
+
* @param {(IApiPopoverOptions & IApiOverlayContainerOptions)} [options] 气泡飘窗配置
|
|
52
56
|
* @returns {*} {Promise<IApiModalData>}
|
|
53
57
|
* @memberof IApiOpenViewUtil
|
|
54
58
|
*/
|
|
55
59
|
popover(appViewId: string, event: MouseEvent, context: IApiContext, params?: IApiParams, options?: IApiPopoverOptions & IApiOverlayContainerOptions): Promise<IApiModalData>;
|
|
56
60
|
/**
|
|
57
61
|
* @description 抽屉模式打开
|
|
58
|
-
* @param {string} appViewId
|
|
59
|
-
* @param {IApiContext} context
|
|
60
|
-
* @param {IApiParams} [params]
|
|
61
|
-
* @param {IApiOverlayContainerOptions} [options]
|
|
62
|
+
* @param {string} appViewId 应用视图id
|
|
63
|
+
* @param {IApiContext} context 上下文参数
|
|
64
|
+
* @param {IApiParams} [params] 视图参数
|
|
65
|
+
* @param {IApiOverlayContainerOptions} [options] 抽屉配置
|
|
62
66
|
* @returns {*} {Promise<IApiModalData>}
|
|
63
67
|
* @memberof IApiOpenViewUtil
|
|
64
68
|
*/
|
|
65
69
|
drawer(appViewId: string, context: IApiContext, params?: IApiParams, options?: IApiOverlayContainerOptions): Promise<IApiModalData>;
|
|
66
70
|
/**
|
|
67
71
|
* @description 自定义打开方式
|
|
68
|
-
* @param {string} appViewId
|
|
69
|
-
* @param {IApiContext} context
|
|
70
|
-
* @param {IApiParams} [params]
|
|
72
|
+
* @param {string} appViewId 应用视图id
|
|
73
|
+
* @param {IApiContext} context 上下文参数
|
|
74
|
+
* @param {IApiParams} [params] 视图参数
|
|
71
75
|
* @returns {*} {Promise<IApiModalData>}
|
|
72
76
|
* @memberof IApiOpenViewUtil
|
|
73
77
|
*/
|
|
74
78
|
custom(appViewId: string, context: IApiContext, params?: IApiParams): Promise<IApiModalData>;
|
|
75
79
|
/**
|
|
76
80
|
* @description 独立程序打开
|
|
77
|
-
* @param {string} appViewId
|
|
78
|
-
* @param {IApiContext} context
|
|
79
|
-
* @param {IApiParams} [params]
|
|
81
|
+
* @param {string} appViewId 应用视图id
|
|
82
|
+
* @param {IApiContext} context 上下文参数
|
|
83
|
+
* @param {IApiParams} [params] 视图参数
|
|
80
84
|
* @returns {*} {Promise<void>}
|
|
81
85
|
* @memberof IApiOpenViewUtil
|
|
82
86
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-open-view-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-open-view-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"i-api-open-view-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-open-view-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACL,aAAa,EACb,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAEnB;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa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C;CAClB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IApiData, IApiParams } from '@ibiz-template/core';
|
|
2
|
+
import { IApiModalOptions } from '../common';
|
|
2
3
|
/**
|
|
3
4
|
* @description 二维码工具
|
|
4
5
|
* @export
|
|
@@ -7,18 +8,18 @@ import { IApiData, IApiParams } from '@ibiz-template/core';
|
|
|
7
8
|
export interface IApiQrcodeUtil {
|
|
8
9
|
/**
|
|
9
10
|
* @description 扫描二维码
|
|
10
|
-
* @param {
|
|
11
|
+
* @param {IApiModalOptions} [options] 模态配置
|
|
11
12
|
* @returns {*} {Promise<IApiData>}
|
|
12
13
|
* @memberof IApiQrcodeUtil
|
|
13
14
|
*/
|
|
14
|
-
scanQrcode(options?:
|
|
15
|
+
scanQrcode(options?: IApiModalOptions): Promise<IApiData>;
|
|
15
16
|
/**
|
|
16
17
|
* @description 创建二维码
|
|
17
18
|
* @param {string} value 创建二维码需要的文本值
|
|
18
|
-
* @param {
|
|
19
|
+
* @param {IApiParams} [options] 创建二维码参数配置
|
|
19
20
|
* @returns {*} {IApiParams}
|
|
20
21
|
* @memberof IApiQrcodeUtil
|
|
21
22
|
*/
|
|
22
|
-
createQrcode(value: string, options?: IApiParams
|
|
23
|
+
createQrcode(value: string, options?: IApiParams): IApiParams;
|
|
23
24
|
}
|
|
24
25
|
//# sourceMappingURL=i-api-qrcode-util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-qrcode-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-qrcode-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"i-api-qrcode-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-qrcode-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE1D;;;;;;OAMG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;CAC/D"}
|