@ibiz-template/runtime 0.7.1 → 0.7.3
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 +736 -261
- package/dist/index.system.min.js +1 -1
- package/out/config/global-config.d.ts +2 -1
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +4 -0
- package/out/controller/common/base.controller.d.ts +9 -1
- package/out/controller/common/base.controller.d.ts.map +1 -1
- package/out/controller/common/base.controller.js +12 -1
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +7 -19
- package/out/controller/common/index.d.ts +1 -0
- package/out/controller/common/index.d.ts.map +1 -1
- package/out/controller/common/index.js +1 -0
- package/out/controller/common/view/app-data-upload-view.controller.d.ts +36 -0
- package/out/controller/common/view/app-data-upload-view.controller.d.ts.map +1 -0
- package/out/controller/common/view/app-data-upload-view.controller.js +59 -0
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +9 -0
- package/out/controller/control/form/edit-form/edit-form.controller.js +12 -12
- package/out/controller/control/form/form/form.controller.js +1 -1
- package/out/controller/control/form/form-detail/form-detail/form-detail.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-detail/form-detail.controller.js +1 -4
- package/out/controller/control/form/form-detail/form-detail/form-detail.state.d.ts +8 -0
- package/out/controller/control/form/form-detail/form-detail/form-detail.state.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-detail/form-detail.state.js +12 -2
- package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-item/form-item.controller.js +4 -3
- package/out/controller/control/grid/grid/grid-row.state.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid-row.state.js +22 -1
- package/out/controller/control/grid/grid/grid.controller.js +1 -1
- package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.js +3 -1
- package/out/controller/control/panel/panel/panel-item.controller.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel-item.controller.js +1 -4
- package/out/controller/control/panel/panel/panel-item.state.d.ts +10 -2
- package/out/controller/control/panel/panel/panel-item.state.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel-item.state.js +14 -4
- package/out/controller/control/panel/panel/panel.controller.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel.controller.js +1 -1
- package/out/controller/utils/data-file-util/data-file-util.d.ts +213 -2
- package/out/controller/utils/data-file-util/data-file-util.d.ts.map +1 -1
- package/out/controller/utils/data-file-util/data-file-util.js +353 -8
- package/out/controller/utils/value-rule/value-rule.js +1 -1
- package/out/hub/config/app-view-config-service.d.ts.map +1 -1
- package/out/hub/config/app-view-config-service.js +7 -2
- package/out/interface/common/i-global-config/i-global-config.d.ts +9 -0
- package/out/interface/common/i-global-config/i-global-config.d.ts.map +1 -1
- package/out/interface/common/i-global-config/i-global-picker-editor-config.d.ts +13 -0
- package/out/interface/common/i-global-config/i-global-picker-editor-config.d.ts.map +1 -0
- package/out/interface/common/i-global-config/i-global-picker-editor-config.js +1 -0
- package/out/interface/common/i-global-config/index.d.ts +1 -0
- package/out/interface/common/i-global-config/index.d.ts.map +1 -1
- package/out/interface/common/i-global-config/index.js +1 -0
- package/out/interface/common/index.d.ts +1 -1
- package/out/interface/common/index.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-edit-form.event.d.ts +16 -9
- package/out/interface/controller/event/control/i-edit-form.event.d.ts.map +1 -1
- package/out/interface/controller/state/common/i-controller.state.d.ts +8 -0
- package/out/interface/controller/state/common/i-controller.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/panel-item/i-panel-item.state.d.ts +8 -0
- package/out/interface/controller/state/control/panel-item/i-panel-item.state.d.ts.map +1 -1
- package/out/interface/controller/state/view/i-app-data-upload-view.state.d.ts +26 -0
- package/out/interface/controller/state/view/i-app-data-upload-view.state.d.ts.map +1 -0
- package/out/interface/controller/state/view/i-app-data-upload-view.state.js +1 -0
- package/out/interface/controller/state/view/index.d.ts +1 -0
- package/out/interface/controller/state/view/index.d.ts.map +1 -1
- package/out/interface/controller/state/view/index.js +1 -0
- package/out/interface/register/i-register-params.d.ts +31 -0
- package/out/interface/register/i-register-params.d.ts.map +1 -0
- package/out/interface/register/i-register-params.js +1 -0
- package/out/interface/register/index.d.ts +1 -0
- package/out/interface/register/index.d.ts.map +1 -1
- package/out/interface/register/index.js +1 -0
- package/out/model/data-entity/data-entity.d.ts +10 -1
- package/out/model/data-entity/data-entity.d.ts.map +1 -1
- package/out/model/data-entity/data-entity.js +14 -0
- package/out/register/custom-register.d.ts +34 -0
- package/out/register/custom-register.d.ts.map +1 -0
- package/out/register/custom-register.js +80 -0
- package/out/register/helper/control-register.d.ts.map +1 -1
- package/out/register/helper/control-register.js +12 -0
- package/out/register/helper/form-detail-register.d.ts +2 -2
- package/out/register/helper/form-detail-register.d.ts.map +1 -1
- package/out/register/helper/form-detail-register.js +14 -1
- package/out/register/helper/grid-column-register.d.ts +2 -2
- package/out/register/helper/grid-column-register.d.ts.map +1 -1
- package/out/register/helper/grid-column-register.js +14 -1
- package/out/register/helper/panel-item-register.d.ts +2 -2
- package/out/register/helper/panel-item-register.d.ts.map +1 -1
- package/out/register/helper/panel-item-register.js +15 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts +8 -0
- package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts.map +1 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.js +16 -5
- package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -1
- package/out/service/vo/tree-node-data/tree-data-set-node-data.js +7 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +17 -26
- package/package.json +2 -2
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { RuntimeError, } from '@ibiz-template/core';
|
|
1
|
+
import { RuntimeError, selectFile, } from '@ibiz-template/core';
|
|
2
|
+
import { mergeRight } from 'ramda';
|
|
2
3
|
import { calcResPath } from '../../../service';
|
|
4
|
+
import { OpenAppViewCommand } from '../../../command';
|
|
3
5
|
// 异步导入URL
|
|
4
6
|
const asyncImportUrl = 'asyncimportdata2';
|
|
5
7
|
// 标准导入url
|
|
@@ -41,6 +43,10 @@ function listenAsyncAction(id) {
|
|
|
41
43
|
* @return {*} {Promise<IData>}
|
|
42
44
|
*/
|
|
43
45
|
export async function asyncImportData(file, appDataEntity, dataImport, context) {
|
|
46
|
+
// 异步导入开始的提示
|
|
47
|
+
ibiz.notification.info({
|
|
48
|
+
desc: ibiz.i18n.t('component.dataImport.startImport'),
|
|
49
|
+
});
|
|
44
50
|
const data = new FormData();
|
|
45
51
|
data.append('file', file);
|
|
46
52
|
let url = `/${appDataEntity.deapicodeName2}/${asyncImportUrl}`;
|
|
@@ -81,13 +87,54 @@ export async function importData(file, appDataEntity, dataImport, context) {
|
|
|
81
87
|
const resPath = calcResPath(context, appDataEntity);
|
|
82
88
|
url = resPath + url;
|
|
83
89
|
}
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
const result = {
|
|
91
|
+
isAsync: false,
|
|
92
|
+
};
|
|
93
|
+
try {
|
|
94
|
+
const res = await ibiz.net.request(url, {
|
|
95
|
+
method: 'post',
|
|
96
|
+
data,
|
|
97
|
+
headers: { 'Content-Type': 'multipart/form-data' },
|
|
98
|
+
});
|
|
99
|
+
// 模拟表单通知 刷新表格
|
|
100
|
+
ibiz.mc.command.send({ srfdecodename: appDataEntity.codeName }, 'OBJECTCREATED', 'DATAIMPORT');
|
|
101
|
+
Object.assign(result, res.data);
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
if (error instanceof Error) {
|
|
105
|
+
result.errorMessage = error.message;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return result;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* 新的导入,异步导入和同步导入内部判断
|
|
112
|
+
* 异步导入不等待,同步等待结果后返回
|
|
113
|
+
* @author lxm
|
|
114
|
+
* @date 2024-04-16 03:34:56
|
|
115
|
+
* @export
|
|
116
|
+
* @param {{
|
|
117
|
+
* selectedFile: File;
|
|
118
|
+
* appDataEntity: IAppDataEntity;
|
|
119
|
+
* dataImport?: IAppDEDataImport;
|
|
120
|
+
* context?: IContext;
|
|
121
|
+
* }} opts
|
|
122
|
+
* @return {*} {Promise<ImportDataResult>}
|
|
123
|
+
*/
|
|
124
|
+
export async function importData2(opts) {
|
|
125
|
+
const result = {
|
|
126
|
+
isAsync: ibiz.env.enableMqtt,
|
|
127
|
+
};
|
|
128
|
+
if (ibiz.env.enableMqtt) {
|
|
129
|
+
// 异步导入不需要等待
|
|
130
|
+
asyncImportData(opts.selectedFile, opts.appDataEntity, opts.dataImport, opts.context);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
// 默认同步导入,返回结果
|
|
134
|
+
const temp = await importData(opts.selectedFile, opts.appDataEntity, opts.dataImport, opts.context);
|
|
135
|
+
Object.assign(result, temp);
|
|
136
|
+
}
|
|
137
|
+
return result;
|
|
91
138
|
}
|
|
92
139
|
/**
|
|
93
140
|
* 标准导出方法
|
|
@@ -121,3 +168,301 @@ export async function exportData(header, data, fileName) {
|
|
|
121
168
|
return { ok: false };
|
|
122
169
|
}
|
|
123
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* 获取导入相关模型
|
|
173
|
+
* @author lxm
|
|
174
|
+
* @date 2024-04-15 04:54:29
|
|
175
|
+
* @export
|
|
176
|
+
* @param {{
|
|
177
|
+
* deDataImportId: string;
|
|
178
|
+
* appDataEntityId: string;
|
|
179
|
+
* appId?: string;
|
|
180
|
+
* }} opts
|
|
181
|
+
* @return {*} {Promise<{ dataImport: IAppDEDataImport; appDataEntity: IAppDataEntity }>}
|
|
182
|
+
*/
|
|
183
|
+
export async function getDataImportModels(opts) {
|
|
184
|
+
var _a;
|
|
185
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(opts.appDataEntityId, opts.appId);
|
|
186
|
+
const deDataImport = (_a = appDataEntity.appDEDataImports) === null || _a === void 0 ? void 0 : _a.find(item => item.id === opts.deDataImportId);
|
|
187
|
+
if (!deDataImport) {
|
|
188
|
+
throw new RuntimeError('没有找到对应的导入数据模型');
|
|
189
|
+
}
|
|
190
|
+
return { deDataImport, appDataEntity };
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* 打开数据导入界面
|
|
194
|
+
* @author lxm
|
|
195
|
+
* @date 2024-04-15 01:51:20
|
|
196
|
+
* @export
|
|
197
|
+
* @param {{
|
|
198
|
+
* deDataImportId: string;
|
|
199
|
+
* appDataEntityId: string;
|
|
200
|
+
* dataImportViewId?: string;
|
|
201
|
+
* context: IContext;
|
|
202
|
+
* params: IParams;
|
|
203
|
+
* }} opts
|
|
204
|
+
* @return {*} {Promise<void>}
|
|
205
|
+
*/
|
|
206
|
+
export async function openDataImport(opts) {
|
|
207
|
+
const { deDataImportId, appDataEntityId, context, params } = opts;
|
|
208
|
+
const viewId = opts.dataImportViewId || 'AppDataUploadView';
|
|
209
|
+
let view = null;
|
|
210
|
+
// 没有指定视图的时候,可能会拿不到默认视图
|
|
211
|
+
try {
|
|
212
|
+
view = await ibiz.hub.config.view.get(viewId);
|
|
213
|
+
}
|
|
214
|
+
catch (error) {
|
|
215
|
+
if (opts.dataImportViewId) {
|
|
216
|
+
// 指定了视图id找不到就报错
|
|
217
|
+
throw error;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
if (view) {
|
|
221
|
+
context.srfappdataentityid = appDataEntityId;
|
|
222
|
+
context.srfdedataimportid = deDataImportId;
|
|
223
|
+
// 走导入视图
|
|
224
|
+
return ibiz.commands.execute(OpenAppViewCommand.TAG, view.id, context, params, { openMode: 'POPUPMODAL' });
|
|
225
|
+
}
|
|
226
|
+
// 走自定义组件的导入
|
|
227
|
+
const { deDataImport, appDataEntity } = await getDataImportModels({
|
|
228
|
+
deDataImportId,
|
|
229
|
+
appDataEntityId,
|
|
230
|
+
appId: context.srfappid,
|
|
231
|
+
});
|
|
232
|
+
const importComponentName = deDataImport.enableCustomized
|
|
233
|
+
? 'DataImport2'
|
|
234
|
+
: 'DataImport';
|
|
235
|
+
const modal = ibiz.overlay.createModal(importComponentName, {
|
|
236
|
+
dismiss: () => modal.dismiss(),
|
|
237
|
+
dataImport: deDataImport,
|
|
238
|
+
appDataEntity,
|
|
239
|
+
context,
|
|
240
|
+
params,
|
|
241
|
+
}, {
|
|
242
|
+
width: 'auto',
|
|
243
|
+
placement: 'center',
|
|
244
|
+
});
|
|
245
|
+
modal.present();
|
|
246
|
+
await modal.onWillDismiss();
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* 下载导入模版文件
|
|
250
|
+
* @author lxm
|
|
251
|
+
* @date 2024-04-15 05:49:53
|
|
252
|
+
* @export
|
|
253
|
+
* @param {IAppDataEntity} appDataEntity
|
|
254
|
+
* @param {IAppDEDataImport} dataImport
|
|
255
|
+
* @return {*} {Promise<void>}
|
|
256
|
+
*/
|
|
257
|
+
export async function downloadImportTemplate(appDataEntity, dataImport) {
|
|
258
|
+
var _a;
|
|
259
|
+
let templateUrl = `${appDataEntity.codeName2.toLowerCase()}/importtemplate`;
|
|
260
|
+
if (dataImport === null || dataImport === void 0 ? void 0 : dataImport.codeName) {
|
|
261
|
+
templateUrl += `?srfimporttag=${dataImport.codeName}`;
|
|
262
|
+
}
|
|
263
|
+
const res = await ibiz.net.request(templateUrl, {
|
|
264
|
+
responseType: 'blob',
|
|
265
|
+
});
|
|
266
|
+
if (res.status === 200) {
|
|
267
|
+
let fileName = ((_a = res.headers['content-disposition'].split(';')
|
|
268
|
+
.find((str) => str.indexOf('filename=') !== -1)) === null || _a === void 0 ? void 0 : _a.slice(9)) || '';
|
|
269
|
+
fileName = decodeURIComponent(fileName);
|
|
270
|
+
const blob = new Blob([res.data], {
|
|
271
|
+
type: 'application/vnd.ms-excel',
|
|
272
|
+
});
|
|
273
|
+
const elink = document.createElement('a');
|
|
274
|
+
elink.download = fileName;
|
|
275
|
+
elink.style.display = 'none';
|
|
276
|
+
elink.href = URL.createObjectURL(blob);
|
|
277
|
+
document.body.appendChild(elink);
|
|
278
|
+
elink.click();
|
|
279
|
+
URL.revokeObjectURL(elink.href); // 释放URL 对象
|
|
280
|
+
document.body.removeChild(elink);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* 选择文件并导入
|
|
285
|
+
* @author lxm
|
|
286
|
+
* @date 2024-04-16 02:31:24
|
|
287
|
+
* @export
|
|
288
|
+
* @param {{}} opts
|
|
289
|
+
* @return {*} {Promise<void>}
|
|
290
|
+
*/
|
|
291
|
+
export async function selectAndImport(opts) {
|
|
292
|
+
return new Promise(resolve => {
|
|
293
|
+
selectFile({
|
|
294
|
+
accept: '.xlsx, .xls',
|
|
295
|
+
multiple: false,
|
|
296
|
+
onSelected: async (files) => {
|
|
297
|
+
const result = await importData2({
|
|
298
|
+
selectedFile: files[0],
|
|
299
|
+
appDataEntity: opts.appDataEntity,
|
|
300
|
+
dataImport: opts.dataImport,
|
|
301
|
+
context: opts.context,
|
|
302
|
+
});
|
|
303
|
+
resolve(result);
|
|
304
|
+
},
|
|
305
|
+
onCancel: () => {
|
|
306
|
+
resolve({ cancel: true });
|
|
307
|
+
},
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
// 自定义导入相关
|
|
312
|
+
/**
|
|
313
|
+
* 自定义导入数据方法
|
|
314
|
+
* @author lxm
|
|
315
|
+
* @date 2024-04-18 03:30:46
|
|
316
|
+
* @export
|
|
317
|
+
* @param {{
|
|
318
|
+
* appDataEntity: IAppDataEntity;
|
|
319
|
+
* context?: IContext;
|
|
320
|
+
* fileId: string; 导入文件id
|
|
321
|
+
* schemaId: string; 导入模版id
|
|
322
|
+
* }} opts
|
|
323
|
+
*/
|
|
324
|
+
export async function asyncImportData2(opts) {
|
|
325
|
+
var _a;
|
|
326
|
+
let path = `/${opts.appDataEntity.codeName2.toLowerCase()}`;
|
|
327
|
+
if (opts.context) {
|
|
328
|
+
const resPath = calcResPath(opts.context, opts.appDataEntity);
|
|
329
|
+
path = resPath + path;
|
|
330
|
+
}
|
|
331
|
+
const url = `${path}/asyncimportdata2`;
|
|
332
|
+
const queryData = {
|
|
333
|
+
srfossfileid: opts.fileId,
|
|
334
|
+
srfimportschemaid: opts.schemaId,
|
|
335
|
+
};
|
|
336
|
+
// 导入模型
|
|
337
|
+
const srfimporttag = ((_a = opts.dataImport) === null || _a === void 0 ? void 0 : _a.id) || opts.appDataEntity.defaultAppDEDataImportId;
|
|
338
|
+
if (srfimporttag) {
|
|
339
|
+
Object.assign(queryData, { srfimporttag });
|
|
340
|
+
}
|
|
341
|
+
await ibiz.net.request(url, {
|
|
342
|
+
method: 'get',
|
|
343
|
+
params: queryData,
|
|
344
|
+
});
|
|
345
|
+
ibiz.notification.info({
|
|
346
|
+
desc: ibiz.i18n.t('component.dataImport.startImport'),
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* 计算导入模型的schema数据
|
|
351
|
+
* @author lxm
|
|
352
|
+
* @date 2024-04-18 04:29:36
|
|
353
|
+
* @export
|
|
354
|
+
* @param {{
|
|
355
|
+
* appDataEntity?: IAppDataEntity;
|
|
356
|
+
* dataImport?: IAppDEDataImport;
|
|
357
|
+
* data: Partial<ImportSchemaData>;
|
|
358
|
+
* }} opts
|
|
359
|
+
* @return {*} {ImportSchemaData}
|
|
360
|
+
*/
|
|
361
|
+
export function calcImportSchemaData(opts) {
|
|
362
|
+
var _a, _b, _c, _d;
|
|
363
|
+
let data = {
|
|
364
|
+
system_tag: (_a = ibiz.appData) === null || _a === void 0 ? void 0 : _a.context.srfsystemid, // 系统标记
|
|
365
|
+
data_entity_tag: (_b = opts.appDataEntity) === null || _b === void 0 ? void 0 : _b.codeName, // 数据实体标记
|
|
366
|
+
import_tag: ((_c = opts.dataImport) === null || _c === void 0 ? void 0 : _c.id) || ((_d = opts.appDataEntity) === null || _d === void 0 ? void 0 : _d.defaultAppDEDataImportId), // 导入标记 导入模型的代码名称
|
|
367
|
+
owner_type: 'PERSONAL', // 所有者类型
|
|
368
|
+
};
|
|
369
|
+
data = mergeRight(data, opts.data);
|
|
370
|
+
return data;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* 创建新的schema
|
|
374
|
+
* @author lxm
|
|
375
|
+
* @date 2024-04-18 04:26:03
|
|
376
|
+
* @export
|
|
377
|
+
* @param {{
|
|
378
|
+
* appDataEntity?: IAppDataEntity;
|
|
379
|
+
* dataImport?: IAppDEDataImport;
|
|
380
|
+
* data: Partial<ImportSchemaData>;
|
|
381
|
+
* }} opts
|
|
382
|
+
* @return {*}
|
|
383
|
+
*/
|
|
384
|
+
export async function createImportSchema(opts) {
|
|
385
|
+
const data = calcImportSchemaData(opts);
|
|
386
|
+
const url = `extension/import_schemas`;
|
|
387
|
+
const res = await ibiz.net.request(url, {
|
|
388
|
+
method: 'post',
|
|
389
|
+
data,
|
|
390
|
+
});
|
|
391
|
+
return res;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* 更新已有的schema
|
|
395
|
+
* @author lxm
|
|
396
|
+
* @date 2024-04-18 04:26:03
|
|
397
|
+
* @export
|
|
398
|
+
* @param {{
|
|
399
|
+
* appDataEntity?: IAppDataEntity;
|
|
400
|
+
* dataImport?: IAppDEDataImport;
|
|
401
|
+
* data: Partial<ImportSchemaData>;
|
|
402
|
+
* }} opts
|
|
403
|
+
* @return {*}
|
|
404
|
+
*/
|
|
405
|
+
export async function updateImportSchema(opts) {
|
|
406
|
+
const data = calcImportSchemaData(opts);
|
|
407
|
+
const url = `extension/import_schemas/${data.id}`;
|
|
408
|
+
const res = await ibiz.net.request(url, {
|
|
409
|
+
method: 'put',
|
|
410
|
+
data,
|
|
411
|
+
});
|
|
412
|
+
return res;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* 获取指定id的schema数据
|
|
416
|
+
* @author lxm
|
|
417
|
+
* @date 2024-04-18 04:47:03
|
|
418
|
+
* @export
|
|
419
|
+
* @param {string} id
|
|
420
|
+
* @return {*} {Promise<IHttpResponse<IData>>}
|
|
421
|
+
*/
|
|
422
|
+
export async function getImportSchema(id) {
|
|
423
|
+
const url = `extension/import_schemas/${id}`;
|
|
424
|
+
const res = await ibiz.net.request(url, {
|
|
425
|
+
method: 'get',
|
|
426
|
+
});
|
|
427
|
+
return res;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* 删除指定id的schema数据
|
|
431
|
+
* @author lxm
|
|
432
|
+
* @date 2024-04-18 04:47:03
|
|
433
|
+
* @export
|
|
434
|
+
* @param {string} id
|
|
435
|
+
* @return {*} {Promise<IHttpResponse<IData>>}
|
|
436
|
+
*/
|
|
437
|
+
export async function deleteImportSchema(id) {
|
|
438
|
+
const url = `extension/import_schemas/${id}`;
|
|
439
|
+
const res = await ibiz.net.request(url, {
|
|
440
|
+
method: 'delete',
|
|
441
|
+
});
|
|
442
|
+
return res;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* 获取当前用户的指定实体和实体导入的schema集合数据
|
|
446
|
+
* @author lxm
|
|
447
|
+
* @date 2024-04-18 04:53:25
|
|
448
|
+
* @export
|
|
449
|
+
* @param {{
|
|
450
|
+
* appDataEntity: IAppDataEntity;
|
|
451
|
+
* dataImport?: IAppDEDataImport;
|
|
452
|
+
* }} opts
|
|
453
|
+
* @return {*} {Promise<IHttpResponse<IData[]>>}
|
|
454
|
+
*/
|
|
455
|
+
export async function fetchImportSchemas(opts) {
|
|
456
|
+
var _a;
|
|
457
|
+
const params = {
|
|
458
|
+
n_import_tag_eq: opts.appDataEntity.defaultAppDEDataImportId,
|
|
459
|
+
n_system_tag_eq: (_a = ibiz.appData) === null || _a === void 0 ? void 0 : _a.context.srfsystemid,
|
|
460
|
+
n_data_entity_tag_eq: opts.appDataEntity.codeName,
|
|
461
|
+
};
|
|
462
|
+
const url = `extension/import_schemas/fetch_cur_user`;
|
|
463
|
+
const res = await ibiz.net.request(url, {
|
|
464
|
+
method: 'post',
|
|
465
|
+
data: params,
|
|
466
|
+
});
|
|
467
|
+
return res;
|
|
468
|
+
}
|
|
@@ -23,7 +23,7 @@ export function generateRules(itemVRs, name, valueItemName) {
|
|
|
23
23
|
// 系统值规则
|
|
24
24
|
if (valueRuleType === 'SYSVALUERULE' && sysRule) {
|
|
25
25
|
// 正则值规则
|
|
26
|
-
if (sysRule.ruleType === 'REG') {
|
|
26
|
+
if (sysRule.ruleType === 'REG' || sysRule.ruleType === 'REGEX') {
|
|
27
27
|
rules.push({
|
|
28
28
|
pattern: new RegExp(sysRule.regExCode),
|
|
29
29
|
message: sysRule.ruleInfo,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-view-config-service.d.ts","sourceRoot":"","sources":["../../../src/hub/config/app-view-config-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAErE;;;;;;;;GAQG;AACH,qBAAa,oBAAqB,YAAW,qBAAqB;IAChE;;;;OAIG;IACH,SAAS,CAAC,WAAW,2BAAkC;IAEvD;;;;;;;;OAQG;IACH,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAW5C;;;;;;;;;OASG;IACH,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,QAAQ,GAAG;QAAE,WAAW,EAAE,KAAK,CAAA;KAAE;
|
|
1
|
+
{"version":3,"file":"app-view-config-service.d.ts","sourceRoot":"","sources":["../../../src/hub/config/app-view-config-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAErE;;;;;;;;GAQG;AACH,qBAAa,oBAAqB,YAAW,qBAAqB;IAChE;;;;OAIG;IACH,SAAS,CAAC,WAAW,2BAAkC;IAEvD;;;;;;;;OAQG;IACH,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAW5C;;;;;;;;;OASG;IACH,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,QAAQ,GAAG;QAAE,WAAW,EAAE,KAAK,CAAA;KAAE;IAwBlE,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAKzB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,GAAG,IAAI;IAKzC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAyB5C,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;CAMzC"}
|
|
@@ -49,9 +49,14 @@ export class AppViewConfigService {
|
|
|
49
49
|
*/
|
|
50
50
|
getCustomOption(model) {
|
|
51
51
|
var _a;
|
|
52
|
-
const { appViewParams } = model;
|
|
52
|
+
const { appViewParams, userParam } = model;
|
|
53
53
|
// 解析ModalOption参数
|
|
54
|
-
|
|
54
|
+
let optionProperty = (_a = appViewParams === null || appViewParams === void 0 ? void 0 : appViewParams.find(item => item.id === 'modaloption')) === null || _a === void 0 ? void 0 : _a.value;
|
|
55
|
+
// 应用功能视图没有viewParams,从userParam中获取modalOption
|
|
56
|
+
if (!optionProperty && userParam) {
|
|
57
|
+
// 解析ModalOption参数
|
|
58
|
+
optionProperty = userParam.modalOption;
|
|
59
|
+
}
|
|
55
60
|
let modalOption = {};
|
|
56
61
|
if (optionProperty) {
|
|
57
62
|
try {
|
|
@@ -3,6 +3,7 @@ import { IGlobalGridConfig } from './i-global-grid-config';
|
|
|
3
3
|
import { IGlobalAppMenuConfig } from './i-global-app-menu-config';
|
|
4
4
|
import { IGlobalViewConfig } from './i-global-view-config';
|
|
5
5
|
import { IGlobalFormConfig } from './i-global-form-config';
|
|
6
|
+
import { IGlobalPickerEditorConfig } from './i-global-picker-editor-config';
|
|
6
7
|
/**
|
|
7
8
|
* 全局配置类,控制应用的功能开关。
|
|
8
9
|
*
|
|
@@ -51,5 +52,13 @@ export interface IGlobalConfig {
|
|
|
51
52
|
* @type {IGlobalFormConfig}
|
|
52
53
|
*/
|
|
53
54
|
form: IGlobalFormConfig;
|
|
55
|
+
/**
|
|
56
|
+
* 全局下拉选择类编辑器配置
|
|
57
|
+
*
|
|
58
|
+
* @author zhanghengfeng
|
|
59
|
+
* @date 2024-04-15 18:04:52
|
|
60
|
+
* @type {IGlobalPickerEditorConfig}
|
|
61
|
+
*/
|
|
62
|
+
pickerEditor: IGlobalPickerEditorConfig;
|
|
54
63
|
}
|
|
55
64
|
//# sourceMappingURL=i-global-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-global-config.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-global-config/i-global-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"i-global-config.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-global-config/i-global-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,IAAI,EAAE,iBAAiB,CAAC;IAExB;;;;OAIG;IACH,IAAI,EAAE,iBAAiB,CAAC;IAExB;;;;OAIG;IACH,OAAO,EAAE,oBAAoB,CAAC;IAE9B;;;;OAIG;IACH,QAAQ,EAAE,qBAAqB,CAAC;IAEhC;;;;;OAKG;IACH,IAAI,EAAE,iBAAiB,CAAC;IAExB;;;;;;OAMG;IACH,YAAY,EAAE,yBAAyB,CAAC;CACzC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IGlobalPickerEditorConfig {
|
|
2
|
+
/**
|
|
3
|
+
* 宽度模式
|
|
4
|
+
* - auto 宽度自动延长,默认模式
|
|
5
|
+
* - ellipsis 内容超出时出省略号,鼠标悬浮出现tooltip提示
|
|
6
|
+
*
|
|
7
|
+
* @author zhanghengfeng
|
|
8
|
+
* @date 2024-04-15 18:04:21
|
|
9
|
+
* @type {('auto' | 'ellipsis')}
|
|
10
|
+
*/
|
|
11
|
+
overflowMode: 'auto' | 'ellipsis';
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=i-global-picker-editor-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-global-picker-editor-config.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-global-config/i-global-picker-editor-config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC;;;;;;;;OAQG;IACH,YAAY,EAAE,MAAM,GAAG,UAAU,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-global-config/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-global-config/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC"}
|
|
@@ -11,7 +11,7 @@ export type { IPluginFactory } from './i-plugin-factory/i-plugin-factory';
|
|
|
11
11
|
export type { IPluginItem } from './i-plugin-item/i-plugin-item';
|
|
12
12
|
export type { IUIActionResult } from './i-ui-action-result/i-ui-action-result';
|
|
13
13
|
export type { IUIActionHandler } from './i-ui-action-handler/i-ui-action-handler';
|
|
14
|
-
export type { IGlobalConfig, IGlobalCodeListConfig, IGlobalGridConfig, IGlobalAppMenuConfig, IGlobalViewConfig, } from './i-global-config';
|
|
14
|
+
export type { IGlobalConfig, IGlobalCodeListConfig, IGlobalGridConfig, IGlobalAppMenuConfig, IGlobalViewConfig, IGlobalPickerEditorConfig, } from './i-global-config';
|
|
15
15
|
export type { IUILogicParams } from './i-ui-logic-params/i-ui-logic-params';
|
|
16
16
|
export type { IDataAbilityParams } from './i-data-ability-params/i-data-ability-params';
|
|
17
17
|
export type { IAppConfigService } from './i-app-config-service/i-app-config-service';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/common/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,YAAY,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,YAAY,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,YAAY,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,YAAY,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC1E,YAAY,EACV,eAAe,EACf,SAAS,GACV,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,YAAY,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC1E,YAAY,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,YAAY,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC/E,YAAY,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,YAAY,EACV,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/common/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,YAAY,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,YAAY,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,YAAY,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,YAAY,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC1E,YAAY,EACV,eAAe,EACf,SAAS,GACV,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,YAAY,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC1E,YAAY,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,YAAY,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC/E,YAAY,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,YAAY,EACV,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,YAAY,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACxF,YAAY,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AACrF,YAAY,EACV,qBAAqB,EACrB,WAAW,GACZ,MAAM,uDAAuD,CAAC;AAC/D,YAAY,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,YAAY,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,YAAY,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { PartialWithObject } from '@ibiz-template/core';
|
|
1
2
|
import { EventBase } from '../argument';
|
|
2
3
|
import { IFormEvent } from './i-form.event';
|
|
4
|
+
export interface EditFormEvent extends EventBase {
|
|
5
|
+
/**
|
|
6
|
+
* 事件参数
|
|
7
|
+
*/
|
|
8
|
+
args: IData;
|
|
9
|
+
}
|
|
3
10
|
/**
|
|
4
11
|
* 编辑表单事件
|
|
5
12
|
*
|
|
@@ -16,7 +23,7 @@ export interface IEditFormEvent extends IFormEvent {
|
|
|
16
23
|
*/
|
|
17
24
|
onBeforeLoad: {
|
|
18
25
|
event: EventBase;
|
|
19
|
-
emitArgs:
|
|
26
|
+
emitArgs: PartialWithObject<EditFormEvent, EventBase>;
|
|
20
27
|
};
|
|
21
28
|
/**
|
|
22
29
|
* 加载成功后
|
|
@@ -25,7 +32,7 @@ export interface IEditFormEvent extends IFormEvent {
|
|
|
25
32
|
*/
|
|
26
33
|
onLoadSuccess: {
|
|
27
34
|
event: EventBase;
|
|
28
|
-
emitArgs:
|
|
35
|
+
emitArgs: PartialWithObject<EditFormEvent, EventBase>;
|
|
29
36
|
};
|
|
30
37
|
/**
|
|
31
38
|
* 加载失败
|
|
@@ -34,7 +41,7 @@ export interface IEditFormEvent extends IFormEvent {
|
|
|
34
41
|
*/
|
|
35
42
|
onLoadError: {
|
|
36
43
|
event: EventBase;
|
|
37
|
-
emitArgs:
|
|
44
|
+
emitArgs: PartialWithObject<EditFormEvent, EventBase>;
|
|
38
45
|
};
|
|
39
46
|
/**
|
|
40
47
|
* 保存之前
|
|
@@ -43,7 +50,7 @@ export interface IEditFormEvent extends IFormEvent {
|
|
|
43
50
|
*/
|
|
44
51
|
onBeforeSave: {
|
|
45
52
|
event: EventBase;
|
|
46
|
-
emitArgs:
|
|
53
|
+
emitArgs: PartialWithObject<EditFormEvent, EventBase>;
|
|
47
54
|
};
|
|
48
55
|
/**
|
|
49
56
|
* 保存成功后
|
|
@@ -52,7 +59,7 @@ export interface IEditFormEvent extends IFormEvent {
|
|
|
52
59
|
*/
|
|
53
60
|
onSaveSuccess: {
|
|
54
61
|
event: EventBase;
|
|
55
|
-
emitArgs:
|
|
62
|
+
emitArgs: PartialWithObject<EditFormEvent, EventBase>;
|
|
56
63
|
};
|
|
57
64
|
/**
|
|
58
65
|
* 保存失败
|
|
@@ -61,7 +68,7 @@ export interface IEditFormEvent extends IFormEvent {
|
|
|
61
68
|
*/
|
|
62
69
|
onSaveError: {
|
|
63
70
|
event: EventBase;
|
|
64
|
-
emitArgs:
|
|
71
|
+
emitArgs: PartialWithObject<EditFormEvent, EventBase>;
|
|
65
72
|
};
|
|
66
73
|
/**
|
|
67
74
|
* 删除之前
|
|
@@ -70,7 +77,7 @@ export interface IEditFormEvent extends IFormEvent {
|
|
|
70
77
|
*/
|
|
71
78
|
onBeforeRemove: {
|
|
72
79
|
event: EventBase;
|
|
73
|
-
emitArgs:
|
|
80
|
+
emitArgs: PartialWithObject<EditFormEvent, EventBase>;
|
|
74
81
|
};
|
|
75
82
|
/**
|
|
76
83
|
* 删除成功之后
|
|
@@ -79,7 +86,7 @@ export interface IEditFormEvent extends IFormEvent {
|
|
|
79
86
|
*/
|
|
80
87
|
onRemoveSuccess: {
|
|
81
88
|
event: EventBase;
|
|
82
|
-
emitArgs:
|
|
89
|
+
emitArgs: PartialWithObject<EditFormEvent, EventBase>;
|
|
83
90
|
};
|
|
84
91
|
/**
|
|
85
92
|
* 删除失败
|
|
@@ -88,7 +95,7 @@ export interface IEditFormEvent extends IFormEvent {
|
|
|
88
95
|
*/
|
|
89
96
|
onRemoveError: {
|
|
90
97
|
event: EventBase;
|
|
91
|
-
emitArgs:
|
|
98
|
+
emitArgs: PartialWithObject<EditFormEvent, EventBase>;
|
|
92
99
|
};
|
|
93
100
|
}
|
|
94
101
|
//# sourceMappingURL=i-edit-form.event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-edit-form.event.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/event/control/i-edit-form.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD;;;;OAIG;IACH,YAAY,EAAE;QACZ,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"i-edit-form.event.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/event/control/i-edit-form.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;CACb;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD;;;;OAIG;IACH,YAAY,EAAE;QACZ,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE,iBAAiB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;KACvD,CAAC;IAEF;;;;OAIG;IACH,aAAa,EAAE;QACb,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE,iBAAiB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;KACvD,CAAC;IAEF;;;;OAIG;IACH,WAAW,EAAE;QACX,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE,iBAAiB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;KACvD,CAAC;IAEF;;;;OAIG;IACH,YAAY,EAAE;QACZ,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE,iBAAiB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;KACvD,CAAC;IAEF;;;;OAIG;IACH,aAAa,EAAE;QACb,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE,iBAAiB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;KACvD,CAAC;IAEF;;;;OAIG;IACH,WAAW,EAAE;QACX,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE,iBAAiB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;KACvD,CAAC;IAEF;;;;OAIG;IACH,cAAc,EAAE;QACd,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE,iBAAiB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;KACvD,CAAC;IAEF;;;;OAIG;IACH,eAAe,EAAE;QACf,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE,iBAAiB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;KACvD,CAAC;IAEF;;;;OAIG;IACH,aAAa,EAAE;QACb,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE,iBAAiB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;KACvD,CAAC;CACH"}
|
|
@@ -29,5 +29,13 @@ export interface IControllerState {
|
|
|
29
29
|
* @type {boolean}
|
|
30
30
|
*/
|
|
31
31
|
isDestroyed: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 上下文
|
|
34
|
+
*
|
|
35
|
+
* @author tony001
|
|
36
|
+
* @date 2024-04-16 16:04:24
|
|
37
|
+
* @type {IContext}
|
|
38
|
+
*/
|
|
39
|
+
context: IContext;
|
|
32
40
|
}
|
|
33
41
|
//# sourceMappingURL=i-controller.state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-controller.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/common/i-controller.state.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"i-controller.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/common/i-controller.state.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,OAAO,EAAE,QAAQ,CAAC;CACnB"}
|
|
@@ -32,6 +32,14 @@ export interface IPanelItemState extends IColState {
|
|
|
32
32
|
* @type {boolean}
|
|
33
33
|
*/
|
|
34
34
|
readonly: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 上下文
|
|
37
|
+
*
|
|
38
|
+
* @author tony001
|
|
39
|
+
* @date 2024-04-16 16:04:40
|
|
40
|
+
* @type {IContext}
|
|
41
|
+
*/
|
|
42
|
+
context?: IContext;
|
|
35
43
|
}
|
|
36
44
|
export interface IPanelItemClass {
|
|
37
45
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-panel-item.state.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/controller/state/control/panel-item/i-panel-item.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD;;;;;;;OAOG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,KAAK,EAAE,eAAe,CAAC;IAEvB;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"i-panel-item.state.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/controller/state/control/panel-item/i-panel-item.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD;;;;;;;OAOG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,KAAK,EAAE,eAAe,CAAC;IAEvB;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB;;;;;OAKG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB"}
|