@ibiz-template/runtime 0.1.20 → 0.1.21
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 +35 -2
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/constant/index.d.ts +1 -0
- package/out/constant/index.d.ts.map +1 -1
- package/out/constant/index.js +1 -0
- package/out/constant/view-call-tag.d.ts +14 -0
- package/out/constant/view-call-tag.d.ts.map +1 -0
- package/out/constant/view-call-tag.js +15 -0
- package/out/engine/md-view.engine.js +2 -2
- package/out/global/global-util/global-util.d.ts +14 -0
- package/out/global/global-util/global-util.d.ts.map +1 -1
- package/out/global/global-util/global-util.js +26 -0
- package/out/service/dto/method.dto.js +1 -1
- package/package.json +2 -2
- package/src/constant/index.ts +1 -0
- package/src/constant/view-call-tag.ts +14 -0
- package/src/engine/md-view.engine.ts +2 -2
- package/src/global/global-util/global-util.ts +28 -0
- package/src/service/dto/method.dto.ts +1 -1
package/out/constant/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export { ControlType } from './control-type';
|
|
|
2
2
|
export { ViewType } from './view-type';
|
|
3
3
|
export { ViewMode } from './view-mode';
|
|
4
4
|
export { SysUIActionTag } from './sys-uiaction-tag';
|
|
5
|
+
export { ViewCallTag } from './view-call-tag';
|
|
5
6
|
export * from './studio-event';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constant/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constant/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,cAAc,gBAAgB,CAAC"}
|
package/out/constant/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-call-tag.d.ts","sourceRoot":"","sources":["../../src/constant/view-call-tag.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,MAAM,SAAS;CAChB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable no-shadow */
|
|
2
|
+
/**
|
|
3
|
+
* 视图调用call的标识
|
|
4
|
+
* @author lxm
|
|
5
|
+
* @date 2023-09-08 11:08:44
|
|
6
|
+
* @export
|
|
7
|
+
* @enum {number}
|
|
8
|
+
*/
|
|
9
|
+
export var ViewCallTag;
|
|
10
|
+
(function (ViewCallTag) {
|
|
11
|
+
/**
|
|
12
|
+
* 视图加载(特指初始化加载)
|
|
13
|
+
*/
|
|
14
|
+
ViewCallTag["LOAD"] = "Load";
|
|
15
|
+
})(ViewCallTag || (ViewCallTag = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RuntimeModelError } from '@ibiz-template/core';
|
|
2
|
-
import { SysUIActionTag } from '../constant';
|
|
2
|
+
import { SysUIActionTag, ViewCallTag } from '../constant';
|
|
3
3
|
import { calcDeCodeNameById } from '../model';
|
|
4
4
|
import { ViewEngineBase } from './view-base.engine';
|
|
5
5
|
/**
|
|
@@ -145,7 +145,7 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
145
145
|
this.copy(args);
|
|
146
146
|
return null;
|
|
147
147
|
}
|
|
148
|
-
if (key ===
|
|
148
|
+
if (key === ViewCallTag.LOAD) {
|
|
149
149
|
this.load(args);
|
|
150
150
|
return null;
|
|
151
151
|
}
|
|
@@ -36,5 +36,19 @@ export declare class GlobalUtil {
|
|
|
36
36
|
* @date 2023-08-24 10:47:06
|
|
37
37
|
*/
|
|
38
38
|
getExportExcel?: () => Promise<IExportExcelUtil>;
|
|
39
|
+
/**
|
|
40
|
+
* 显示应用级别的加载提示
|
|
41
|
+
*
|
|
42
|
+
* @author chitanda
|
|
43
|
+
* @date 2023-09-08 10:09:43
|
|
44
|
+
*/
|
|
45
|
+
showAppLoading(): void;
|
|
46
|
+
/**
|
|
47
|
+
* 隐藏应用级别的加载提示
|
|
48
|
+
*
|
|
49
|
+
* @author chitanda
|
|
50
|
+
* @date 2023-09-08 10:09:15
|
|
51
|
+
*/
|
|
52
|
+
hiddenAppLoading(): void;
|
|
39
53
|
}
|
|
40
54
|
//# sourceMappingURL=global-util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-util.d.ts","sourceRoot":"","sources":["../../../src/global/global-util/global-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAExE;;;;;;;GAOG;AACH,qBAAa,UAAU;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,kBAAyB;IAE7C;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,WAAkB;IAE/B;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,iBAAwB;IAEpC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"global-util.d.ts","sourceRoot":"","sources":["../../../src/global/global-util/global-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAExE;;;;;;;GAOG;AACH,qBAAa,UAAU;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,kBAAyB;IAE7C;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,WAAkB;IAE/B;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,iBAAwB;IAEpC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEjD;;;;;OAKG;IACH,cAAc,IAAI,IAAI;IAOtB;;;;;OAKG;IACH,gBAAgB,IAAI,IAAI;CAQzB"}
|
|
@@ -31,4 +31,30 @@ export class GlobalUtil {
|
|
|
31
31
|
*/
|
|
32
32
|
this.hbs = new HandlebarsUtil();
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* 显示应用级别的加载提示
|
|
36
|
+
*
|
|
37
|
+
* @author chitanda
|
|
38
|
+
* @date 2023-09-08 10:09:43
|
|
39
|
+
*/
|
|
40
|
+
showAppLoading() {
|
|
41
|
+
const el = document.getElementById('app-loading-x');
|
|
42
|
+
if (el) {
|
|
43
|
+
el.style.display = 'none';
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 隐藏应用级别的加载提示
|
|
48
|
+
*
|
|
49
|
+
* @author chitanda
|
|
50
|
+
* @date 2023-09-08 10:09:15
|
|
51
|
+
*/
|
|
52
|
+
hiddenAppLoading() {
|
|
53
|
+
setTimeout(() => {
|
|
54
|
+
const el = document.getElementById('app-loading-x');
|
|
55
|
+
if (el) {
|
|
56
|
+
el.style.display = 'none';
|
|
57
|
+
}
|
|
58
|
+
}, 300);
|
|
59
|
+
}
|
|
34
60
|
}
|
|
@@ -126,7 +126,7 @@ export class MethodDto {
|
|
|
126
126
|
}
|
|
127
127
|
const entity = await ibiz.hub.getAppDataEntity(field.refAppDataEntityId, this.entity.appId);
|
|
128
128
|
const methodDto = findModelChild(entity.appDEMethodDTOs || [], field.refAppDEMethodDTOId);
|
|
129
|
-
const dto = new MethodDto(entity,
|
|
129
|
+
const dto = new MethodDto(entity, true, methodDto);
|
|
130
130
|
this.dtoMap.set(field.codeName, dto);
|
|
131
131
|
return dto;
|
|
132
132
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/runtime",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "控制器包",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"qx-util": "^0.4.8",
|
|
58
58
|
"ramda": "^0.29.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "51da056249d0ed3e037db1e6d8a3b646e1ce06b6"
|
|
61
61
|
}
|
package/src/constant/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RuntimeModelError } from '@ibiz-template/core';
|
|
2
2
|
import { IAppDEMultiDataView } from '@ibiz/model-core';
|
|
3
|
-
import { SysUIActionTag } from '../constant';
|
|
3
|
+
import { SysUIActionTag, ViewCallTag } from '../constant';
|
|
4
4
|
import { ViewController } from '../controller';
|
|
5
5
|
import {
|
|
6
6
|
IMDViewEvent,
|
|
@@ -180,7 +180,7 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
180
180
|
this.copy(args);
|
|
181
181
|
return null;
|
|
182
182
|
}
|
|
183
|
-
if (key ===
|
|
183
|
+
if (key === ViewCallTag.LOAD) {
|
|
184
184
|
this.load(args);
|
|
185
185
|
return null;
|
|
186
186
|
}
|
|
@@ -40,4 +40,32 @@ export class GlobalUtil {
|
|
|
40
40
|
* @date 2023-08-24 10:47:06
|
|
41
41
|
*/
|
|
42
42
|
getExportExcel?: () => Promise<IExportExcelUtil>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 显示应用级别的加载提示
|
|
46
|
+
*
|
|
47
|
+
* @author chitanda
|
|
48
|
+
* @date 2023-09-08 10:09:43
|
|
49
|
+
*/
|
|
50
|
+
showAppLoading(): void {
|
|
51
|
+
const el = document.getElementById('app-loading-x') as HTMLDivElement;
|
|
52
|
+
if (el) {
|
|
53
|
+
el.style.display = 'none';
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 隐藏应用级别的加载提示
|
|
59
|
+
*
|
|
60
|
+
* @author chitanda
|
|
61
|
+
* @date 2023-09-08 10:09:15
|
|
62
|
+
*/
|
|
63
|
+
hiddenAppLoading(): void {
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
const el = document.getElementById('app-loading-x') as HTMLDivElement;
|
|
66
|
+
if (el) {
|
|
67
|
+
el.style.display = 'none';
|
|
68
|
+
}
|
|
69
|
+
}, 300);
|
|
70
|
+
}
|
|
43
71
|
}
|
|
@@ -155,7 +155,7 @@ export class MethodDto {
|
|
|
155
155
|
entity.appDEMethodDTOs || [],
|
|
156
156
|
field.refAppDEMethodDTOId!,
|
|
157
157
|
)!;
|
|
158
|
-
const dto = new MethodDto(entity,
|
|
158
|
+
const dto = new MethodDto(entity, true, methodDto);
|
|
159
159
|
this.dtoMap.set(field.codeName!, dto);
|
|
160
160
|
return dto;
|
|
161
161
|
}
|