@ibiz-template/runtime 0.2.16 → 0.2.18-dev.0
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 +68 -17971
- package/dist/index.system.min.js +4 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.controller.js +1 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-content-type.controller.d.ts +6 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-content-type.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-content-type.controller.js +8 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.controller.d.ts +1 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.controller.js +4 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.controller.d.ts +1 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.controller.js +3 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.d.ts +1 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.js +4 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.controller.d.ts +1 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.controller.js +4 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.d.ts +6 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.js +11 -0
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +4 -1
- package/out/interface/common/index.d.ts +15 -15
- package/out/interface/common/index.d.ts.map +1 -1
- package/out/interface/controller/event/argument/index.d.ts +10 -10
- package/out/interface/controller/event/argument/index.d.ts.map +1 -1
- package/out/interface/provider/index.d.ts +11 -11
- package/out/interface/provider/index.d.ts.map +1 -1
- package/out/interface/provider/index.js +1 -9
- package/out/interface/service/index.d.ts +3 -3
- package/out/interface/service/index.d.ts.map +1 -1
- package/out/interface/service/index.js +1 -1
- package/out/interface/util/index.d.ts +11 -11
- package/out/interface/util/index.d.ts.map +1 -1
- package/out/plugin/index.d.ts +2 -1
- package/out/plugin/index.d.ts.map +1 -1
- package/out/plugin/index.js +1 -1
- package/out/register/helper/panel-item-register.d.ts.map +1 -1
- package/out/register/helper/panel-item-register.js +12 -2
- package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.js +12 -5
- package/package.json +3 -3
- package/src/controller/control/form/edit-form/edit-form.controller.ts +1 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-content-type.controller.ts +9 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.controller.ts +4 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.controller.ts +4 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.ts +4 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.controller.ts +4 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.ts +13 -0
- package/src/engine/md-view.engine.ts +4 -1
- package/src/interface/common/index.ts +15 -15
- package/src/interface/controller/event/argument/index.ts +10 -10
- package/src/interface/provider/index.ts +11 -11
- package/src/interface/service/index.ts +3 -3
- package/src/interface/util/index.ts +14 -12
- package/src/plugin/index.ts +2 -4
- package/src/register/helper/panel-item-register.ts +21 -3
- package/src/ui-action/provider/ui-action-provider-base.ts +12 -6
|
@@ -153,7 +153,10 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
153
153
|
* @return {*} {Promise<void>}
|
|
154
154
|
*/
|
|
155
155
|
protected async onXDataActive(event: EventBase): Promise<void> {
|
|
156
|
-
await this.openData(event);
|
|
156
|
+
const res = await this.openData(event);
|
|
157
|
+
if (!res.cancel) {
|
|
158
|
+
this.refresh();
|
|
159
|
+
}
|
|
157
160
|
}
|
|
158
161
|
|
|
159
162
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { IAppDEUIService } from './i-app-de-ui-service/i-app-de-ui-service';
|
|
2
|
-
export { IAppHubService } from './i-app-hub-service/i-app-hub-service';
|
|
3
|
-
export { IAppService } from './i-app-service/i-app-service';
|
|
4
|
-
export { IAppUIService } from './i-app-ui-service/i-app-ui-service';
|
|
5
|
-
export { IDrawerOptions } from './i-drawer-options/i-drawer-options';
|
|
6
|
-
export {
|
|
1
|
+
export type { IAppDEUIService } from './i-app-de-ui-service/i-app-de-ui-service';
|
|
2
|
+
export type { IAppHubService } from './i-app-hub-service/i-app-hub-service';
|
|
3
|
+
export type { IAppService } from './i-app-service/i-app-service';
|
|
4
|
+
export type { IAppUIService } from './i-app-ui-service/i-app-ui-service';
|
|
5
|
+
export type { IDrawerOptions } from './i-drawer-options/i-drawer-options';
|
|
6
|
+
export type {
|
|
7
7
|
IPopoverOptions,
|
|
8
8
|
Placement,
|
|
9
9
|
} from './i-popover-options/i-popover-options';
|
|
10
|
-
export { IModal } from './i-modal/i-modal';
|
|
11
|
-
export { IModalData } from './i-modal-data/i-modal-data';
|
|
12
|
-
export { IModalOptions } from './i-modal-options/i-modal-options';
|
|
13
|
-
export { IPluginFactory } from './i-plugin-factory/i-plugin-factory';
|
|
14
|
-
export { IPluginItem } from './i-plugin-item/i-plugin-item';
|
|
15
|
-
export { IUIActionResult } from './i-ui-action-result/i-ui-action-result';
|
|
16
|
-
export { IUIActionHandler } from './i-ui-action-handler/i-ui-action-handler';
|
|
10
|
+
export type { IModal } from './i-modal/i-modal';
|
|
11
|
+
export type { IModalData } from './i-modal-data/i-modal-data';
|
|
12
|
+
export type { IModalOptions } from './i-modal-options/i-modal-options';
|
|
13
|
+
export type { IPluginFactory } from './i-plugin-factory/i-plugin-factory';
|
|
14
|
+
export type { IPluginItem } from './i-plugin-item/i-plugin-item';
|
|
15
|
+
export type { IUIActionResult } from './i-ui-action-result/i-ui-action-result';
|
|
16
|
+
export type { IUIActionHandler } from './i-ui-action-handler/i-ui-action-handler';
|
|
17
17
|
export type {
|
|
18
18
|
IGlobalConfig,
|
|
19
19
|
IGlobalCodeListConfig,
|
|
@@ -21,8 +21,8 @@ export type {
|
|
|
21
21
|
IGlobalAppMenuConfig,
|
|
22
22
|
IGlobalViewConfig,
|
|
23
23
|
} from './i-global-config';
|
|
24
|
-
export { IUILogicParams } from './i-ui-logic-params/i-ui-logic-params';
|
|
25
|
-
export { IDataAbilityParams } from './i-data-ability-params/i-data-ability-params';
|
|
24
|
+
export type { IUILogicParams } from './i-ui-logic-params/i-ui-logic-params';
|
|
25
|
+
export type { IDataAbilityParams } from './i-data-ability-params/i-data-ability-params';
|
|
26
26
|
export type { IAppConfigService } from './i-app-config-service/i-app-config-service';
|
|
27
27
|
export type {
|
|
28
28
|
IAppViewConfigService,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { EventBase } from './base.event';
|
|
2
|
-
export { LoadEvent } from './load.event';
|
|
3
|
-
export { DataChangeEvent } from './data-change.event';
|
|
4
|
-
export { ViewInfoEvent } from './view-info.event';
|
|
5
|
-
export { CloseViewEvent } from './close-view.event';
|
|
6
|
-
export { UIActionEvent } from './uiaction.event';
|
|
7
|
-
export { ControlTriggerEvent } from './control-trigger.event';
|
|
8
|
-
export { NavViewChangeEvent } from './nav-view-change.event';
|
|
9
|
-
export { RowEditChangeEvent } from './row-edit-change.event';
|
|
10
|
-
export { PanelItemEvent } from './panel-item.event';
|
|
1
|
+
export type { EventBase } from './base.event';
|
|
2
|
+
export type { LoadEvent } from './load.event';
|
|
3
|
+
export type { DataChangeEvent } from './data-change.event';
|
|
4
|
+
export type { ViewInfoEvent } from './view-info.event';
|
|
5
|
+
export type { CloseViewEvent } from './close-view.event';
|
|
6
|
+
export type { UIActionEvent } from './uiaction.event';
|
|
7
|
+
export type { ControlTriggerEvent } from './control-trigger.event';
|
|
8
|
+
export type { NavViewChangeEvent } from './nav-view-change.event';
|
|
9
|
+
export type { RowEditChangeEvent } from './row-edit-change.event';
|
|
10
|
+
export type { PanelItemEvent } from './panel-item.event';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './i.provider';
|
|
2
|
-
export * from './i-ui-action.provider';
|
|
3
|
-
export { ModelLoaderProvider } from './model-loader.provider';
|
|
4
|
-
export * from './i-view.provider';
|
|
5
|
-
export * from './i-control.provider';
|
|
6
|
-
export * from './i-grid-column.provider';
|
|
7
|
-
export * from './i-panel-item.provider';
|
|
8
|
-
export * from './i-form-detail.provider';
|
|
9
|
-
export * from './i-editor.provider';
|
|
10
|
-
export * from './i-portlet.provider';
|
|
11
|
-
export { IAppCounterProvider } from './i-app-counter.provider';
|
|
1
|
+
export type * from './i.provider';
|
|
2
|
+
export type * from './i-ui-action.provider';
|
|
3
|
+
export type { ModelLoaderProvider } from './model-loader.provider';
|
|
4
|
+
export type * from './i-view.provider';
|
|
5
|
+
export type * from './i-control.provider';
|
|
6
|
+
export type * from './i-grid-column.provider';
|
|
7
|
+
export type * from './i-panel-item.provider';
|
|
8
|
+
export type * from './i-form-detail.provider';
|
|
9
|
+
export type * from './i-editor.provider';
|
|
10
|
+
export type * from './i-portlet.provider';
|
|
11
|
+
export type { IAppCounterProvider } from './i-app-counter.provider';
|
|
12
12
|
export type { IUILogicNodeProvider } from './i-ui-login-node.provider';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CodeListItem } from './code-list-item/code-list-item';
|
|
2
|
-
export { IDataEntity } from './i-data-entity/i-data-entity';
|
|
3
|
-
export * from './service';
|
|
1
|
+
export type { CodeListItem } from './code-list-item/code-list-item';
|
|
2
|
+
export type { IDataEntity } from './i-data-entity/i-data-entity';
|
|
3
|
+
export type * from './service';
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
export { ILoadingUtil } from './i-loading-util/i-loading-util';
|
|
2
|
-
export { IMessageUtil } from './i-message-util/i-message-util';
|
|
3
|
-
export { IModalUtil, ModalParams } from './i-modal-util/i-modal-util';
|
|
4
|
-
export {
|
|
5
|
-
|
|
1
|
+
export type { ILoadingUtil } from './i-loading-util/i-loading-util';
|
|
2
|
+
export type { IMessageUtil } from './i-message-util/i-message-util';
|
|
3
|
+
export type { IModalUtil, ModalParams } from './i-modal-util/i-modal-util';
|
|
4
|
+
export type {
|
|
5
|
+
IConfirmUtil,
|
|
6
|
+
ConfirmParams,
|
|
7
|
+
} from './i-confirm-util/i-confirm-util';
|
|
8
|
+
export type {
|
|
6
9
|
INotificationUtil,
|
|
7
10
|
NotificationParams,
|
|
8
11
|
} from './i-notification-util/i-notification-util';
|
|
9
|
-
export { IOpenViewUtil } from './i-open-view-util/i-open-view-util';
|
|
10
|
-
export { IOverlayContainer } from './i-overlay-container/i-overlay-container';
|
|
11
|
-
export { IOverlayController } from './i-overlay-controller/i-overlay-controller';
|
|
12
|
-
export { IOverlayPopoverContainer } from './i-overlay-popover-container/i-overlay-popover-container';
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
export { IExcelUtil } from './i-excel-util/i-excel-util';
|
|
12
|
+
export type { IOpenViewUtil } from './i-open-view-util/i-open-view-util';
|
|
13
|
+
export type { IOverlayContainer } from './i-overlay-container/i-overlay-container';
|
|
14
|
+
export type { IOverlayController } from './i-overlay-controller/i-overlay-controller';
|
|
15
|
+
export type { IOverlayPopoverContainer } from './i-overlay-popover-container/i-overlay-popover-container';
|
|
16
|
+
export type { IScriptFunctionOpts } from './script/i-script-function';
|
|
17
|
+
export type { IExcelUtil } from './i-excel-util/i-excel-util';
|
package/src/plugin/index.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
export { PluginStaticResource } from './plugin-static-resource/plugin-static-resource';
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
RemotePluginItem,
|
|
5
|
-
} from './remote-plugin-item/remote-plugin-item';
|
|
2
|
+
export type { RemotePluginConfig } from './remote-plugin-item/remote-plugin-item';
|
|
3
|
+
export { RemotePluginItem } from './remote-plugin-item/remote-plugin-item';
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IPanelContainer,
|
|
3
|
+
IPanelField,
|
|
4
|
+
IPanelItem,
|
|
5
|
+
IPanelRawItem,
|
|
6
|
+
} from '@ibiz/model-core';
|
|
2
7
|
import { IPanelItemProvider } from '../../interface';
|
|
3
8
|
import { getPluginRegisterKey } from './common-register';
|
|
4
9
|
|
|
@@ -63,7 +68,9 @@ export async function getPanelItemProvider(
|
|
|
63
68
|
const key = `CONTAINER_${predefinedType}`;
|
|
64
69
|
provider = getProvider(key);
|
|
65
70
|
if (!provider) {
|
|
66
|
-
ibiz.log.error(
|
|
71
|
+
ibiz.log.error(
|
|
72
|
+
`找不到面板容器预置类型为${predefinedType}的适配器,注册key为${key}`,
|
|
73
|
+
);
|
|
67
74
|
} else {
|
|
68
75
|
return provider;
|
|
69
76
|
}
|
|
@@ -77,13 +84,24 @@ export async function getPanelItemProvider(
|
|
|
77
84
|
provider = getProvider(key);
|
|
78
85
|
if (!provider) {
|
|
79
86
|
ibiz.log.error(
|
|
80
|
-
`找不到面板成员直接内容预置类型为${predefinedType}
|
|
87
|
+
`找不到面板成员直接内容预置类型为${predefinedType}的适配器,注册key为${key}`,
|
|
81
88
|
);
|
|
82
89
|
} else {
|
|
83
90
|
return provider;
|
|
84
91
|
}
|
|
85
92
|
}
|
|
86
93
|
|
|
94
|
+
if (itemType === 'FIELD') {
|
|
95
|
+
const { editor } = model as IPanelField;
|
|
96
|
+
if (editor && editor.predefinedType) {
|
|
97
|
+
const key = `FIELD_${editor.predefinedType.toUpperCase()}`;
|
|
98
|
+
provider = getProvider(key);
|
|
99
|
+
if (provider) {
|
|
100
|
+
return provider;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
87
105
|
// 找面板成员类型
|
|
88
106
|
provider = getProvider(itemType);
|
|
89
107
|
if (!provider) {
|
|
@@ -62,16 +62,22 @@ export abstract class UIActionProviderBase implements IUIActionProvider {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
// ** 后续界面行为
|
|
65
|
-
const
|
|
65
|
+
const nextActionParams = {
|
|
66
66
|
...args,
|
|
67
67
|
context: result.nextContext || context,
|
|
68
68
|
data: result.data || data,
|
|
69
69
|
params: result.nextParams || params,
|
|
70
|
-
}
|
|
71
|
-
if (
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
};
|
|
71
|
+
if (action.closeEditView) {
|
|
72
|
+
// 关闭视图的情况下,不等待后续界面行为
|
|
73
|
+
this.doNextAction(action, nextActionParams);
|
|
74
|
+
} else {
|
|
75
|
+
const nextResult = await this.doNextAction(action, nextActionParams);
|
|
76
|
+
if (nextResult) {
|
|
77
|
+
Object.assign(result, nextResult);
|
|
78
|
+
if (nextResult.cancel === true) {
|
|
79
|
+
return this.returnError(result);
|
|
80
|
+
}
|
|
75
81
|
}
|
|
76
82
|
}
|
|
77
83
|
|