@ibiz-template/runtime 0.7.1 → 0.7.2

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.
Files changed (93) hide show
  1. package/dist/index.esm.js +599 -254
  2. package/dist/index.system.min.js +1 -1
  3. package/out/config/global-config.d.ts +2 -1
  4. package/out/config/global-config.d.ts.map +1 -1
  5. package/out/config/global-config.js +4 -0
  6. package/out/controller/common/base.controller.d.ts +9 -1
  7. package/out/controller/common/base.controller.d.ts.map +1 -1
  8. package/out/controller/common/base.controller.js +12 -1
  9. package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
  10. package/out/controller/common/control/md-control.controller.js +7 -19
  11. package/out/controller/common/index.d.ts +1 -0
  12. package/out/controller/common/index.d.ts.map +1 -1
  13. package/out/controller/common/index.js +1 -0
  14. package/out/controller/common/view/app-data-upload-view.controller.d.ts +22 -0
  15. package/out/controller/common/view/app-data-upload-view.controller.d.ts.map +1 -0
  16. package/out/controller/common/view/app-data-upload-view.controller.js +46 -0
  17. package/out/controller/common/view/view.controller.d.ts.map +1 -1
  18. package/out/controller/common/view/view.controller.js +4 -0
  19. package/out/controller/control/form/edit-form/edit-form.controller.js +12 -12
  20. package/out/controller/control/form/form/form.controller.js +1 -1
  21. package/out/controller/control/form/form-detail/form-detail/form-detail.controller.d.ts.map +1 -1
  22. package/out/controller/control/form/form-detail/form-detail/form-detail.controller.js +1 -4
  23. package/out/controller/control/form/form-detail/form-detail/form-detail.state.d.ts +8 -0
  24. package/out/controller/control/form/form-detail/form-detail/form-detail.state.d.ts.map +1 -1
  25. package/out/controller/control/form/form-detail/form-detail/form-detail.state.js +12 -2
  26. package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
  27. package/out/controller/control/form/form-detail/form-item/form-item.controller.js +4 -3
  28. package/out/controller/control/grid/grid/grid-row.state.d.ts.map +1 -1
  29. package/out/controller/control/grid/grid/grid-row.state.js +22 -1
  30. package/out/controller/control/grid/grid/grid.controller.js +1 -1
  31. package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.d.ts.map +1 -1
  32. package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.js +3 -1
  33. package/out/controller/control/panel/panel/panel-item.controller.d.ts.map +1 -1
  34. package/out/controller/control/panel/panel/panel-item.controller.js +1 -4
  35. package/out/controller/control/panel/panel/panel-item.state.d.ts +10 -2
  36. package/out/controller/control/panel/panel/panel-item.state.d.ts.map +1 -1
  37. package/out/controller/control/panel/panel/panel-item.state.js +14 -4
  38. package/out/controller/control/panel/panel/panel.controller.d.ts.map +1 -1
  39. package/out/controller/control/panel/panel/panel.controller.js +1 -1
  40. package/out/controller/utils/data-file-util/data-file-util.d.ts +95 -2
  41. package/out/controller/utils/data-file-util/data-file-util.d.ts.map +1 -1
  42. package/out/controller/utils/data-file-util/data-file-util.js +194 -8
  43. package/out/controller/utils/value-rule/value-rule.js +1 -1
  44. package/out/hub/config/app-view-config-service.d.ts.map +1 -1
  45. package/out/hub/config/app-view-config-service.js +7 -2
  46. package/out/interface/common/i-global-config/i-global-config.d.ts +9 -0
  47. package/out/interface/common/i-global-config/i-global-config.d.ts.map +1 -1
  48. package/out/interface/common/i-global-config/i-global-picker-editor-config.d.ts +13 -0
  49. package/out/interface/common/i-global-config/i-global-picker-editor-config.d.ts.map +1 -0
  50. package/out/interface/common/i-global-config/i-global-picker-editor-config.js +1 -0
  51. package/out/interface/common/i-global-config/index.d.ts +1 -0
  52. package/out/interface/common/i-global-config/index.d.ts.map +1 -1
  53. package/out/interface/common/i-global-config/index.js +1 -0
  54. package/out/interface/common/index.d.ts +1 -1
  55. package/out/interface/common/index.d.ts.map +1 -1
  56. package/out/interface/controller/event/control/i-edit-form.event.d.ts +16 -9
  57. package/out/interface/controller/event/control/i-edit-form.event.d.ts.map +1 -1
  58. package/out/interface/controller/state/common/i-controller.state.d.ts +8 -0
  59. package/out/interface/controller/state/common/i-controller.state.d.ts.map +1 -1
  60. package/out/interface/controller/state/control/panel-item/i-panel-item.state.d.ts +8 -0
  61. package/out/interface/controller/state/control/panel-item/i-panel-item.state.d.ts.map +1 -1
  62. package/out/interface/controller/state/view/i-app-data-upload-view.state.d.ts +26 -0
  63. package/out/interface/controller/state/view/i-app-data-upload-view.state.d.ts.map +1 -0
  64. package/out/interface/controller/state/view/i-app-data-upload-view.state.js +1 -0
  65. package/out/interface/controller/state/view/index.d.ts +1 -0
  66. package/out/interface/controller/state/view/index.d.ts.map +1 -1
  67. package/out/interface/controller/state/view/index.js +1 -0
  68. package/out/interface/register/i-register-params.d.ts +31 -0
  69. package/out/interface/register/i-register-params.d.ts.map +1 -0
  70. package/out/interface/register/i-register-params.js +1 -0
  71. package/out/interface/register/index.d.ts +1 -0
  72. package/out/interface/register/index.d.ts.map +1 -1
  73. package/out/interface/register/index.js +1 -0
  74. package/out/register/custom-register.d.ts +34 -0
  75. package/out/register/custom-register.d.ts.map +1 -0
  76. package/out/register/custom-register.js +80 -0
  77. package/out/register/helper/control-register.d.ts.map +1 -1
  78. package/out/register/helper/control-register.js +12 -0
  79. package/out/register/helper/form-detail-register.d.ts +2 -2
  80. package/out/register/helper/form-detail-register.d.ts.map +1 -1
  81. package/out/register/helper/form-detail-register.js +14 -1
  82. package/out/register/helper/grid-column-register.d.ts +2 -2
  83. package/out/register/helper/grid-column-register.d.ts.map +1 -1
  84. package/out/register/helper/grid-column-register.js +14 -1
  85. package/out/register/helper/panel-item-register.d.ts +2 -2
  86. package/out/register/helper/panel-item-register.d.ts.map +1 -1
  87. package/out/register/helper/panel-item-register.js +15 -1
  88. package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts +8 -0
  89. package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts.map +1 -1
  90. package/out/service/utils/dynamic-code-list/dynamic-code-list.js +14 -3
  91. package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
  92. package/out/ui-action/provider/front-ui-action-provider.js +17 -26
  93. package/package.json +2 -2
@@ -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;CACtB"}
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;CACnB;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"}
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"}
@@ -0,0 +1,26 @@
1
+ import { IAppDEDataImport, IAppDataEntity } from '@ibiz/model-core';
2
+ import { IViewState } from './i-view.state';
3
+ /**
4
+ * 应用数据导入视图UI状态
5
+ *
6
+ * @export
7
+ * @class IAppDataUploadViewState
8
+ * @extends {IViewState}
9
+ */
10
+ export interface IAppDataUploadViewState extends IViewState {
11
+ /**
12
+ * 实体模型
13
+ * @author lxm
14
+ * @date 2024-04-15 05:18:15
15
+ * @type {IAppDataEntity}
16
+ */
17
+ appDataEntity: IAppDataEntity;
18
+ /**
19
+ * 实体导入模型
20
+ * @author lxm
21
+ * @date 2024-04-15 05:18:56
22
+ * @type {IAppDEDataImport}
23
+ */
24
+ deDataImport: IAppDEDataImport;
25
+ }
26
+ //# sourceMappingURL=i-app-data-upload-view.state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-app-data-upload-view.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/view/i-app-data-upload-view.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,uBAAwB,SAAQ,UAAU;IACzD;;;;;OAKG;IACH,aAAa,EAAE,cAAc,CAAC;IAE9B;;;;;OAKG;IACH,YAAY,EAAE,gBAAgB,CAAC;CAChC"}
@@ -48,4 +48,5 @@ export * from './i-gantt-view.state';
48
48
  export * from './i-de-index-view.state';
49
49
  export * from './i-sub-app-ref-view.state';
50
50
  export * from './i-tab-search-view.state';
51
+ export * from './i-app-data-upload-view.state';
51
52
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/view/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;A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}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/view/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC"}
@@ -48,3 +48,4 @@ export * from './i-gantt-view.state';
48
48
  export * from './i-de-index-view.state';
49
49
  export * from './i-sub-app-ref-view.state';
50
50
  export * from './i-tab-search-view.state';
51
+ export * from './i-app-data-upload-view.state';
@@ -0,0 +1,31 @@
1
+ import { IAppView, IControl, IControlItem } from '@ibiz/model-core';
2
+ /**
3
+ * 自定义适配器注册参数接口
4
+ */
5
+ export interface IRegisterParams {
6
+ /**
7
+ * 部件项模型
8
+ *
9
+ * @author ljx
10
+ * @date 2024-04-15 16:10:54
11
+ * @type {IModel}
12
+ */
13
+ controlItemModel?: IControlItem;
14
+ /**
15
+ * 部件模型
16
+ *
17
+ * @author ljx
18
+ * @date 2024-04-15 16:10:54
19
+ * @type {IPanel}
20
+ */
21
+ controlModel?: IControl;
22
+ /**
23
+ * 视图模型
24
+ *
25
+ * @author ljx
26
+ * @date 2024-04-15 16:10:54
27
+ * @type {IControl}
28
+ */
29
+ viewModel?: IAppView;
30
+ }
31
+ //# sourceMappingURL=i-register-params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-register-params.d.ts","sourceRoot":"","sources":["../../../src/interface/register/i-register-params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAEhC;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC;IAExB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC;CACtB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,3 @@
1
1
  export * from './i-register';
2
+ export * from './i-register-params';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/register/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/register/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from './i-register';
2
+ export * from './i-register-params';
@@ -0,0 +1,34 @@
1
+ import { IRegisterParams } from '../interface';
2
+ /**
3
+ * 自定义注册
4
+ */
5
+ export declare class CustomRegister {
6
+ /**
7
+ * 获取适配器注册key
8
+ *
9
+ * @author ljx
10
+ * @date 2024-04-16 23:08:08
11
+ * @param {string} registerType
12
+ * @param {IRegisterParams} opts
13
+ * @return {string}
14
+ */
15
+ static getRegisterKey(registerType: string, opts: IRegisterParams): string;
16
+ /**
17
+ * 通过视图计算key
18
+ * 目前适用于计算面板项的key
19
+ * @author ljx
20
+ * @date 2024-04-16 23:08:08
21
+ * @param {IRegisterParams} opts
22
+ * @return {string}
23
+ */
24
+ static calcKeyByView(opts: IRegisterParams): string;
25
+ /**
26
+ * 通过部件计算key
27
+ * 没有实体的部件默认为APP
28
+ * @date 2024-04-16 23:08:08
29
+ * @param {IRegisterParams} opts
30
+ * @return {string}
31
+ */
32
+ static calcKeyByCtrl(opts: IRegisterParams): string;
33
+ }
34
+ //# sourceMappingURL=custom-register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-register.d.ts","sourceRoot":"","sources":["../../src/register/custom-register.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAQ/C;;GAEG;AACH,qBAAa,cAAc;IACzB;;;;;;;;OAQG;IACH,MAAM,CAAC,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,MAAM;IAa1E;;;;;;;OAOG;IACH,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM;IAkBnD;;;;;;OAMG;IACH,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM;CAuBpD"}
@@ -0,0 +1,80 @@
1
+ import { calcDeCodeNameById } from '../model';
2
+ import { CONTROL_PROVIDER_PREFIX, FORMDETAIL_PROVIDER_PREFIX, GRIDCOLUMN_PROVIDER_PREFIX, PANELITEM_PROVIDER_PREFIX, } from './helper';
3
+ /**
4
+ * 自定义注册
5
+ */
6
+ export class CustomRegister {
7
+ /**
8
+ * 获取适配器注册key
9
+ *
10
+ * @author ljx
11
+ * @date 2024-04-16 23:08:08
12
+ * @param {string} registerType
13
+ * @param {IRegisterParams} opts
14
+ * @return {string}
15
+ */
16
+ static getRegisterKey(registerType, opts) {
17
+ switch (registerType) {
18
+ case PANELITEM_PROVIDER_PREFIX:
19
+ return this.calcKeyByView(opts);
20
+ case FORMDETAIL_PROVIDER_PREFIX:
21
+ case GRIDCOLUMN_PROVIDER_PREFIX:
22
+ case CONTROL_PROVIDER_PREFIX:
23
+ return this.calcKeyByCtrl(opts);
24
+ default:
25
+ return '';
26
+ }
27
+ }
28
+ /**
29
+ * 通过视图计算key
30
+ * 目前适用于计算面板项的key
31
+ * @author ljx
32
+ * @date 2024-04-16 23:08:08
33
+ * @param {IRegisterParams} opts
34
+ * @return {string}
35
+ */
36
+ static calcKeyByView(opts) {
37
+ const { controlItemModel, controlModel, viewModel } = opts;
38
+ let key = '';
39
+ if (viewModel === null || viewModel === void 0 ? void 0 : viewModel.codeName) {
40
+ key += `${viewModel.codeName.toUpperCase()}`;
41
+ }
42
+ if (controlModel === null || controlModel === void 0 ? void 0 : controlModel.codeName) {
43
+ key += `@${controlModel.codeName.toUpperCase()}`;
44
+ }
45
+ // TODO 面板项模型中没有codeName暂用id
46
+ if (controlItemModel === null || controlItemModel === void 0 ? void 0 : controlItemModel.id) {
47
+ key += `@${controlItemModel.id.toUpperCase()}`;
48
+ }
49
+ return key;
50
+ }
51
+ /**
52
+ * 通过部件计算key
53
+ * 没有实体的部件默认为APP
54
+ * @date 2024-04-16 23:08:08
55
+ * @param {IRegisterParams} opts
56
+ * @return {string}
57
+ */
58
+ static calcKeyByCtrl(opts) {
59
+ const { controlModel, controlItemModel } = opts;
60
+ let key = '';
61
+ let prefix = 'APP';
62
+ if (controlModel) {
63
+ const { appDataEntityId, controlType, codeName } = controlModel;
64
+ if (appDataEntityId) {
65
+ prefix = calcDeCodeNameById(appDataEntityId).toUpperCase();
66
+ }
67
+ if (controlType) {
68
+ key += `@${controlType.toUpperCase()}`;
69
+ }
70
+ if (codeName) {
71
+ key += `@${codeName.toUpperCase()}`;
72
+ }
73
+ }
74
+ if (controlItemModel === null || controlItemModel === void 0 ? void 0 : controlItemModel.codeName) {
75
+ key += `@${controlItemModel.codeName.toUpperCase()}`;
76
+ }
77
+ key = prefix + key;
78
+ return key;
79
+ }
80
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"control-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/control-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,cAAc;AACd,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAEjD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,gBAAgB,GAC/B,IAAI,CAEN;AAQD;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,QAAQ,GACd,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CA6CvC"}
1
+ {"version":3,"file":"control-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/control-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAInD,cAAc;AACd,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAEjD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,gBAAgB,GAC/B,IAAI,CAEN;AAQD;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,QAAQ,GACd,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAyDvC"}
@@ -1,4 +1,5 @@
1
1
  import { getPluginRegisterKey } from './common-register';
2
+ import { CustomRegister } from '../custom-register';
2
3
  /** 部件适配器前缀 */
3
4
  export const CONTROL_PROVIDER_PREFIX = 'CONTROL';
4
5
  /**
@@ -26,6 +27,17 @@ function getProvider(key) {
26
27
  export async function getControlProvider(model) {
27
28
  let provider;
28
29
  const { controlType, controlStyle, sysPFPluginId, appId } = model;
30
+ // 找自定义注册的适配器
31
+ const registerKey = CustomRegister.getRegisterKey(CONTROL_PROVIDER_PREFIX, {
32
+ controlModel: model,
33
+ });
34
+ provider = getProvider(registerKey);
35
+ if (!provider) {
36
+ ibiz.log.debug(`找不到自定义注册标识为[${registerKey}]对应的适配器`);
37
+ }
38
+ else {
39
+ return provider;
40
+ }
29
41
  // 找插件适配器
30
42
  if (sysPFPluginId) {
31
43
  const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
@@ -1,4 +1,4 @@
1
- import { IDEFormDetail } from '@ibiz/model-core';
1
+ import { IDEForm, IDEFormDetail } from '@ibiz/model-core';
2
2
  import { IFormDetailProvider } from '../../interface';
3
3
  /** 表单成员适配器前缀 */
4
4
  export declare const FORMDETAIL_PROVIDER_PREFIX = "FORMDETAIL";
@@ -19,5 +19,5 @@ export declare function registerFormDetailProvider(key: string, callback: () =>
19
19
  * @param {IAppView} model
20
20
  * @return {*} {Promise<IFormDetailProvider>}
21
21
  */
22
- export declare function getFormDetailProvider(model: IDEFormDetail): Promise<IFormDetailProvider | undefined>;
22
+ export declare function getFormDetailProvider(model: IDEFormDetail, formModel: IDEForm): Promise<IFormDetailProvider | undefined>;
23
23
  //# sourceMappingURL=form-detail-register.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-detail-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/form-detail-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,eAAe,CAAC;AAEvD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,mBAAmB,GAClC,IAAI,CAEN;AAQD;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,aAAa,GACnB,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAwB1C"}
1
+ {"version":3,"file":"form-detail-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/form-detail-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAItD,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,eAAe,CAAC;AAEvD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,mBAAmB,GAClC,IAAI,CAEN;AAQD;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,aAAa,EACpB,SAAS,EAAE,OAAO,GACjB,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAuC1C"}
@@ -1,4 +1,5 @@
1
1
  import { getPluginRegisterKey } from './common-register';
2
+ import { CustomRegister } from '../custom-register';
2
3
  /** 表单成员适配器前缀 */
3
4
  export const FORMDETAIL_PROVIDER_PREFIX = 'FORMDETAIL';
4
5
  /**
@@ -23,9 +24,21 @@ function getProvider(key) {
23
24
  * @param {IAppView} model
24
25
  * @return {*} {Promise<IFormDetailProvider>}
25
26
  */
26
- export async function getFormDetailProvider(model) {
27
+ export async function getFormDetailProvider(model, formModel) {
27
28
  let provider;
28
29
  const { detailType, sysPFPluginId, appId } = model;
30
+ // 找自定义注册的适配器
31
+ const registerKey = CustomRegister.getRegisterKey(FORMDETAIL_PROVIDER_PREFIX, {
32
+ controlItemModel: model,
33
+ controlModel: formModel,
34
+ });
35
+ provider = getProvider(registerKey);
36
+ if (!provider) {
37
+ ibiz.log.debug(`找不到自定义注册标识为[${registerKey}]对应的适配器`);
38
+ }
39
+ else {
40
+ return provider;
41
+ }
29
42
  // 找插件适配器
30
43
  if (sysPFPluginId) {
31
44
  const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
@@ -1,4 +1,4 @@
1
- import { IDEGridColumn } from '@ibiz/model-core';
1
+ import { IDEGrid, IDEGridColumn } from '@ibiz/model-core';
2
2
  import { IGridColumnProvider } from '../../interface';
3
3
  /** 表格列适配器前缀 */
4
4
  export declare const GRIDCOLUMN_PROVIDER_PREFIX = "GRIDCOLUMN";
@@ -19,5 +19,5 @@ export declare function registerGridColumnProvider(key: string, callback: () =>
19
19
  * @param {IAppView} model
20
20
  * @return {*} {Promise<IGridColumnProvider>}
21
21
  */
22
- export declare function getGridColumnProvider(model: IDEGridColumn): Promise<IGridColumnProvider | undefined>;
22
+ export declare function getGridColumnProvider(model: IDEGridColumn, gridModel: IDEGrid): Promise<IGridColumnProvider | undefined>;
23
23
  //# sourceMappingURL=grid-column-register.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid-column-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/grid-column-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD,eAAe;AACf,eAAO,MAAM,0BAA0B,eAAe,CAAC;AAEvD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,mBAAmB,GAClC,IAAI,CAEN;AAQD;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,aAAa,GACnB,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CA0B1C"}
1
+ {"version":3,"file":"grid-column-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/grid-column-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAItD,eAAe;AACf,eAAO,MAAM,0BAA0B,eAAe,CAAC;AAEvD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,mBAAmB,GAClC,IAAI,CAEN;AAQD;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,aAAa,EACpB,SAAS,EAAE,OAAO,GACjB,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAyC1C"}
@@ -1,4 +1,5 @@
1
1
  import { getPluginRegisterKey } from './common-register';
2
+ import { CustomRegister } from '../custom-register';
2
3
  /** 表格列适配器前缀 */
3
4
  export const GRIDCOLUMN_PROVIDER_PREFIX = 'GRIDCOLUMN';
4
5
  /**
@@ -23,9 +24,21 @@ function getProvider(key) {
23
24
  * @param {IAppView} model
24
25
  * @return {*} {Promise<IGridColumnProvider>}
25
26
  */
26
- export async function getGridColumnProvider(model) {
27
+ export async function getGridColumnProvider(model, gridModel) {
27
28
  let provider;
28
29
  const { columnType, enableRowEdit, sysPFPluginId, appId } = model;
30
+ // 找自定义注册的适配器
31
+ const registerKey = CustomRegister.getRegisterKey(GRIDCOLUMN_PROVIDER_PREFIX, {
32
+ controlItemModel: model,
33
+ controlModel: gridModel,
34
+ });
35
+ provider = getProvider(registerKey);
36
+ if (!provider) {
37
+ ibiz.log.debug(`找不到自定义注册标识为[${registerKey}]对应的适配器`);
38
+ }
39
+ else {
40
+ return provider;
41
+ }
29
42
  // 找插件适配器
30
43
  if (sysPFPluginId) {
31
44
  const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
@@ -1,4 +1,4 @@
1
- import { IPanelItem } from '@ibiz/model-core';
1
+ import { IAppView, IPanel, IPanelItem } from '@ibiz/model-core';
2
2
  import { IPanelItemProvider } from '../../interface';
3
3
  /** 面板成员适配器前缀 */
4
4
  export declare const PANELITEM_PROVIDER_PREFIX = "PANELITEM";
@@ -19,5 +19,5 @@ export declare function registerPanelItemProvider(key: string, callback: () => I
19
19
  * @param {IAppView} model
20
20
  * @return {*} {Promise<IPanelItemProvider>}
21
21
  */
22
- export declare function getPanelItemProvider(model: IPanelItem): Promise<IPanelItemProvider | undefined>;
22
+ export declare function getPanelItemProvider(model: IPanelItem, panelModel: IPanel, viewModel: IAppView): Promise<IPanelItemProvider | undefined>;
23
23
  //# sourceMappingURL=panel-item-register.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"panel-item-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/panel-item-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGrD,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,cAAc,CAAC;AAErD;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,kBAAkB,GACjC,IAAI,CAKN;AAQD;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAuEzC"}
1
+ {"version":3,"file":"panel-item-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/panel-item-register.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,MAAM,EAGN,UAAU,EAEX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAIrD,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,cAAc,CAAC;AAErD;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,kBAAkB,GACjC,IAAI,CAKN;AAQD;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,UAAU,EACjB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,QAAQ,GAClB,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAoFzC"}
@@ -1,4 +1,5 @@
1
1
  import { getPluginRegisterKey } from './common-register';
2
+ import { CustomRegister } from '../custom-register';
2
3
  /** 面板成员适配器前缀 */
3
4
  export const PANELITEM_PROVIDER_PREFIX = 'PANELITEM';
4
5
  /**
@@ -23,10 +24,23 @@ function getProvider(key) {
23
24
  * @param {IAppView} model
24
25
  * @return {*} {Promise<IPanelItemProvider>}
25
26
  */
26
- export async function getPanelItemProvider(model) {
27
+ export async function getPanelItemProvider(model, panelModel, viewModel) {
27
28
  var _a;
28
29
  let provider;
29
30
  const { itemType, sysPFPluginId, appId, controlRenders } = model;
31
+ // 找自定义注册的适配器
32
+ const registerKey = CustomRegister.getRegisterKey(PANELITEM_PROVIDER_PREFIX, {
33
+ controlItemModel: model,
34
+ controlModel: panelModel,
35
+ viewModel,
36
+ });
37
+ provider = getProvider(registerKey);
38
+ if (!provider) {
39
+ ibiz.log.debug(`找不到自定义注册标识为[${registerKey}]对应的适配器`);
40
+ }
41
+ else {
42
+ return provider;
43
+ }
30
44
  // 找插件适配器
31
45
  if (sysPFPluginId) {
32
46
  const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
@@ -108,6 +108,14 @@ export declare class DynamicCodeListCache {
108
108
  * @type {Promise<void>}
109
109
  */
110
110
  protected initPromise?: Promise<void>;
111
+ /**
112
+ * 常见关键字
113
+ *
114
+ * @author zzq
115
+ * @date 2024-04-15 17:08:06
116
+ * @type {Promise<void>}
117
+ */
118
+ protected commonKeys: string[];
111
119
  constructor(codeList: IAppCodeList);
112
120
  /**
113
121
  * 设置上下文以及查询参数
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-code-list.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/dynamic-code-list/dynamic-code-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAEL,cAAc,EAGf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAe,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC;AAK/D;;;;;;GAMG;AACH,KAAK,SAAS,GAAG;IACf;;;;;;OAMG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;CACnC,CAAC;AAEF;;;;;;;GAOG;AACH,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,GAAG,EAAG,WAAW,CAAC;IAE5B;;;;;;;OAOG;IACH,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,KAAK,yBAA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AG,EAAE,cAAc,GAAG,IAAI;IAenD;;;;;;OAMG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAS9B;;;;;;;OAOG;IACH,QAAQ,CACN,EAAE,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,IAAI,EAClC,SAAS,GAAE,OAAc,GACxB,IAAI;IASP;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,IAAI,GAAG,IAAI;IAInD;;;;;OAKG;IACH,OAAO,IAAI,IAAI;CAMhB"}
1
+ {"version":3,"file":"dynamic-code-list.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/dynamic-code-list/dynamic-code-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAEL,cAAc,EAGf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAe,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC;AAK/D;;;;;;GAMG;AACH,KAAK,SAAS,GAAG;IACf;;;;;;OAMG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;CACnC,CAAC;AAEF;;;;;;;GAOG;AACH,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,GAAG,EAAG,WAAW,CAAC;IAE5B;;;;;;;OAOG;IACH,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,KAAK,yBAAgC;IAE/C;;;;;;;OAOG;IACH,SAAS,CAAC,YAAY,EAAE,OAAO,CAAS;IAExC;;;;;;;OAOG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GAAG,IAAI;IAenD;;;;;;OAMG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAS9B;;;;;;;OAOG;IACH,QAAQ,CACN,EAAE,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,IAAI,EAClC,SAAS,GAAE,OAAc,GACxB,IAAI;IASP;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,IAAI,GAAG,IAAI;IAInD;;;;;OAKG;IACH,OAAO,IAAI,IAAI;CAMhB"}
@@ -57,6 +57,14 @@ export class DynamicCodeListCache {
57
57
  * @protected
58
58
  */
59
59
  this.evt = new QXEvent();
60
+ /**
61
+ * 常见关键字
62
+ *
63
+ * @author zzq
64
+ * @date 2024-04-15 17:08:06
65
+ * @type {Promise<void>}
66
+ */
67
+ this.commonKeys = ['query', 'queryconds'];
60
68
  this.codeList = codeList;
61
69
  // 动态代码表监听数据变化
62
70
  this.codelistChange = this.codelistChange.bind(this);
@@ -199,11 +207,14 @@ export class DynamicCodeListCache {
199
207
  * @returns {*} {Promise<CodeListItem[]>}
200
208
  */
201
209
  async load(context, params = {}) {
202
- this.setParams(context, params);
210
+ // 删除常见查询关键字属性,防止查询失败
211
+ const tempParams = Object.assign({}, params);
212
+ this.commonKeys.forEach((key) => {
213
+ delete tempParams[key];
214
+ });
215
+ this.setParams(context, tempParams);
203
216
  const app = ibiz.hub.getApp(context.srfappid);
204
217
  const { appDataEntityId, appDEDataSetId, minorSortAppDEFieldId, minorSortDir, pvalueAppDEFieldId, customCond, } = this.codeList;
205
- // *处理查询参数
206
- const tempParams = Object.assign({}, params);
207
218
  // 排序
208
219
  if (minorSortAppDEFieldId && minorSortDir) {
209
220
  Object.assign(tempParams, {
@@ -1 +1 @@
1
- {"version":3,"file":"front-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/front-ui-action-provider.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAa,MAAM,kBAAkB,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,eAAe,EAAc,MAAM,iBAAiB,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,SAAQ,oBAAoB;IACvD,UAAU,CACd,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IAoE3B;;;;;;;;OAQG;IACH,SAAS,CAAC,OAAO,CACf,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,eAAe;IAalB;;;;;;OAMG;cACa,YAAY,CAC1B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,IAAI,CAAC;IAiEhB;;;;;;OAMG;cACa,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IA4C3B;;;;;;OAMG;cACa,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,IAAI,CAAC;IAoDhB;;;;;;;;OAQG;cACa,YAAY,CAC1B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;CAmD5B"}
1
+ {"version":3,"file":"front-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/front-ui-action-provider.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAa,MAAM,kBAAkB,CAAC;AAG7D,OAAO,EACL,cAAc,EACd,eAAe,EAIhB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,SAAQ,oBAAoB;IACvD,UAAU,CACd,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IAoE3B;;;;;;;;OAQG;IACH,SAAS,CAAC,OAAO,CACf,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,eAAe;IAalB;;;;;;OAMG;cACa,YAAY,CAC1B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,IAAI,CAAC;IAiEhB;;;;;;OAMG;cACa,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IA4B3B;;;;;;OAMG;cACa,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,IAAI,CAAC;IAoDhB;;;;;;;;OAQG;cACa,YAAY,CAC1B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;CAsD5B"}
@@ -3,6 +3,7 @@ import { mergeRight } from 'ramda';
3
3
  import { OpenAppViewCommand } from '../../command';
4
4
  import { ScriptFactory } from '../../utils';
5
5
  import { UIActionProviderBase } from './ui-action-provider-base';
6
+ import { openDataImport } from '../../controller/utils';
6
7
  /**
7
8
  * 前台调用界面行为适配器
8
9
  *
@@ -150,34 +151,23 @@ export class FrontUIActionProvider extends UIActionProviderBase {
150
151
  * @return {*}
151
152
  */
152
153
  async executeDataImport(action, args) {
153
- var _a;
154
154
  // 处理参数
155
155
  const { resultContext, resultParams } = await this.handleParams(action, args.context, args.data, args.params);
156
- const appDataEntity = await ibiz.hub.getAppDataEntity(action.appDataEntityId, action.appId);
157
- const appDEDataImport = (_a = appDataEntity.appDEDataImports) === null || _a === void 0 ? void 0 : _a.find(dataImport => dataImport.id === action.appDEDataImportId);
158
- let importName = 'DataImport';
159
- if (appDEDataImport && appDEDataImport.enableCustomized) {
160
- importName = 'DataImport2';
161
- }
162
- if (appDEDataImport) {
163
- const modal = ibiz.overlay.createModal(importName, {
164
- dismiss: () => modal.dismiss(),
165
- appDataEntity,
166
- dataImport: appDEDataImport,
167
- context: resultContext,
168
- params: resultParams,
169
- }, {
170
- width: 'auto',
171
- placement: 'center',
172
- });
173
- modal.present();
174
- await modal.onWillDismiss();
175
- return {
176
- refresh: true,
177
- refreshMode: 1,
178
- };
156
+ const { appDataEntityId, appDEDataImportId, frontAppViewId } = action;
157
+ if (!appDataEntityId || !appDEDataImportId) {
158
+ throw new RuntimeModelError(action, '没有配置导入模型!');
179
159
  }
180
- throw new RuntimeError('没有找到实体导入项');
160
+ await openDataImport({
161
+ appDataEntityId,
162
+ deDataImportId: appDEDataImportId,
163
+ dataImportViewId: frontAppViewId,
164
+ context: resultContext,
165
+ params: resultParams,
166
+ });
167
+ return {
168
+ refresh: true,
169
+ refreshMode: 1,
170
+ };
181
171
  }
182
172
  /**
183
173
  * 执行导出行为
@@ -253,7 +243,8 @@ export class FrontUIActionProvider extends UIActionProviderBase {
253
243
  context: resultContext,
254
244
  params: resultParams,
255
245
  modelData: action.deeditForm,
256
- onSaveSuccess: () => {
246
+ onSaveSuccess: (eventArgs) => {
247
+ actionResult.data = [eventArgs.args];
257
248
  if (overlay) {
258
249
  overlay.dismiss();
259
250
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/runtime",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "控制器包",
5
5
  "type": "module",
6
6
  "main": "out/index.js",
@@ -35,7 +35,7 @@
35
35
  "animejs": "^3.2.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@ibiz-template/core": "^0.7.1",
38
+ "@ibiz-template/core": "^0.7.2",
39
39
  "@ibiz/model-core": "^0.1.20",
40
40
  "@types/animejs": "^3.1.12",
41
41
  "@types/path-browserify": "^1.0.2",