@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.
@@ -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"}
@@ -2,4 +2,5 @@ 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';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 视图调用call的标识
3
+ * @author lxm
4
+ * @date 2023-09-08 11:08:44
5
+ * @export
6
+ * @enum {number}
7
+ */
8
+ export declare enum ViewCallTag {
9
+ /**
10
+ * 视图加载(特指初始化加载)
11
+ */
12
+ 'LOAD' = "Load"
13
+ }
14
+ //# sourceMappingURL=view-call-tag.d.ts.map
@@ -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 === 'load') {
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;CAClD"}
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, this.isLocalMode, methodDto);
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.20",
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": "bd9c4f935e57362567b12c7b4b91a64f4c099616"
60
+ "gitHead": "51da056249d0ed3e037db1e6d8a3b646e1ce06b6"
61
61
  }
@@ -2,4 +2,5 @@ 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';
@@ -0,0 +1,14 @@
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 enum ViewCallTag {
10
+ /**
11
+ * 视图加载(特指初始化加载)
12
+ */
13
+ 'LOAD' = 'Load',
14
+ }
@@ -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 === 'load') {
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, this.isLocalMode, methodDto);
158
+ const dto = new MethodDto(entity, true, methodDto);
159
159
  this.dtoMap.set(field.codeName!, dto);
160
160
  return dto;
161
161
  }