@ibiz/model-core 0.1.20 → 0.1.22

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/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.21] - 2024-04-23
11
+
12
+ ### Added
13
+
14
+ - 增加向导表单上一步启用脚本代码、下一步启用脚本代码、完成启用脚本代码
15
+
10
16
  ## [0.1.19] - 2024-03-28
11
17
 
12
18
  ### Added
@@ -1,3 +1,4 @@
1
+ import { ILayoutPanel } from '../../control/panel/ilayout-panel';
1
2
  import { ILanguageRes } from '../../res/ilanguage-res';
2
3
  import { IModelObject } from '../../imodel-object';
3
4
  /**
@@ -34,6 +35,13 @@ export interface IAppViewMsg extends IModelObject {
34
35
  * 来源 getMessageType
35
36
  */
36
37
  messageType?: string | 'INFO' | 'WARN' | 'ERROR' | 'CUSTOM';
38
+ /**
39
+ * 启用判断实体
40
+ *
41
+ * @type {string}
42
+ * 来源 getPSAppDataEntity
43
+ */
44
+ appDataEntityId?: string;
37
45
  /**
38
46
  * 应用消息模板
39
47
  *
@@ -41,6 +49,13 @@ export interface IAppViewMsg extends IModelObject {
41
49
  * 来源 getPSAppMsgTempl
42
50
  */
43
51
  appMsgTemplId?: string;
52
+ /**
53
+ * 布局面板
54
+ *
55
+ * @type {ILayoutPanel}
56
+ * 来源 getPSLayoutPanel
57
+ */
58
+ layoutPanel?: ILayoutPanel;
44
59
  /**
45
60
  * 显示位置
46
61
  * @description 值模式 [视图消息位置] {TOP:视图上方、 BOTTOM:视图下方、 BODY:视图内容区、 POPUP:弹出、 CUSTOM:自定义 }
@@ -55,6 +70,19 @@ export interface IAppViewMsg extends IModelObject {
55
70
  * 来源 getRemoveMode
56
71
  */
57
72
  removeMode?: number | 0 | 1 | 2;
73
+ /**
74
+ * 启用判断操作标识
75
+ * @type {string}
76
+ * 来源 getTestDataAccessAction
77
+ */
78
+ testDataAccessAction?: string;
79
+ /**
80
+ * 启用判断实体逻辑
81
+ *
82
+ * @type {string}
83
+ * 来源 getTestPSAppDELogic
84
+ */
85
+ testAppDELogicId?: string;
58
86
  /**
59
87
  * 抬头
60
88
  * @type {string}
@@ -1,3 +1,4 @@
1
+ import { IDEFormButton } from './ideform-button';
1
2
  import { IDEFormDetail } from './ideform-detail';
2
3
  import { IUIActionGroup } from '../../view/iuiaction-group';
3
4
  /**
@@ -14,6 +15,21 @@ export interface IDEFormButtonList extends IDEFormDetail {
14
15
  * 来源 getActionGroupExtractMode
15
16
  */
16
17
  actionGroupExtractMode?: string | 'ITEM' | 'ITEMS';
18
+ /**
19
+ * 按钮列表类型
20
+ * @description 值模式 [表单按钮列表类型] {UIACTIONGROUP:界面行为组、 BUTTONS:按钮集合 }
21
+ * @type {( string | 'UIACTIONGROUP' | 'BUTTONS')}
22
+ * @default UIACTIONGROUP
23
+ * 来源 getButtonListType
24
+ */
25
+ buttonListType?: string | 'UIACTIONGROUP' | 'BUTTONS';
26
+ /**
27
+ * 表单按钮集合
28
+ *
29
+ * @type {IDEFormButton[]}
30
+ * 来源 getPSDEFormButtons
31
+ */
32
+ deformButtons?: IDEFormButton[];
17
33
  /**
18
34
  * 界面行为组对象
19
35
  *
@@ -1,3 +1,6 @@
1
+ import { IControlAttribute } from './icontrol-attribute';
2
+ import { IControlLogic } from './icontrol-logic';
3
+ import { IControlRender } from './icontrol-render';
1
4
  import { IEditorItem } from './ieditor-item';
2
5
  import { ISysCss } from '../res/isys-css';
3
6
  import { ISysDictCat } from '../res/isys-dict-cat';
@@ -71,6 +74,27 @@ export interface IEditor extends IModelObject {
71
74
  * 来源 getObjectValueField
72
75
  */
73
76
  objectValueField?: string;
77
+ /**
78
+ * 部件注入属性集合
79
+ *
80
+ * @type {IControlAttribute[]}
81
+ * 来源 getPSControlAttributes
82
+ */
83
+ controlAttributes?: IControlAttribute[];
84
+ /**
85
+ * 部件逻辑集合
86
+ *
87
+ * @type {IControlLogic[]}
88
+ * 来源 getPSControlLogics
89
+ */
90
+ controlLogics?: IControlLogic[];
91
+ /**
92
+ * 部件绘制器集合
93
+ *
94
+ * @type {IControlRender[]}
95
+ * 来源 getPSControlRenders
96
+ */
97
+ controlRenders?: IControlRender[];
74
98
  /**
75
99
  * 复合编辑器项集合
76
100
  *
@@ -1,3 +1,6 @@
1
+ import { IControlAttribute } from './icontrol-attribute';
2
+ import { IControlLogic } from './icontrol-logic';
3
+ import { IControlRender } from './icontrol-render';
1
4
  import { IRawItemParam } from './iraw-item-param';
2
5
  import { ISysCss } from '../res/isys-css';
3
6
  import { IModelObject } from '../imodel-object';
@@ -26,6 +29,27 @@ export interface IRawItemBase extends IModelObject {
26
29
  * 来源 getDynaClass
27
30
  */
28
31
  dynaClass?: string;
32
+ /**
33
+ * 部件注入属性集合
34
+ *
35
+ * @type {IControlAttribute[]}
36
+ * 来源 getPSControlAttributes
37
+ */
38
+ controlAttributes?: IControlAttribute[];
39
+ /**
40
+ * 部件逻辑集合
41
+ *
42
+ * @type {IControlLogic[]}
43
+ * 来源 getPSControlLogics
44
+ */
45
+ controlLogics?: IControlLogic[];
46
+ /**
47
+ * 部件绘制器集合
48
+ *
49
+ * @type {IControlRender[]}
50
+ * 来源 getPSControlRenders
51
+ */
52
+ controlRenders?: IControlRender[];
29
53
  /**
30
54
  * 直接内容项参数集合
31
55
  *
@@ -1,3 +1,4 @@
1
+ import { IPanelButton } from './ipanel-button';
1
2
  import { IPanelItem } from './ipanel-item';
2
3
  import { IUIActionGroup } from '../../view/iuiaction-group';
3
4
  /**
@@ -15,6 +16,21 @@ export interface IPanelButtonList extends IPanelItem {
15
16
  * 来源 getActionGroupExtractMode
16
17
  */
17
18
  actionGroupExtractMode?: string | 'ITEM' | 'ITEMS';
19
+ /**
20
+ * 按钮列表类型
21
+ * @description 值模式 [表单按钮列表类型] {UIACTIONGROUP:界面行为组、 BUTTONS:按钮集合 }
22
+ * @type {( string | 'UIACTIONGROUP' | 'BUTTONS')}
23
+ * @default UIACTIONGROUP
24
+ * 来源 getButtonListType
25
+ */
26
+ buttonListType?: string | 'UIACTIONGROUP' | 'BUTTONS';
27
+ /**
28
+ * 按钮集合
29
+ *
30
+ * @type {IPanelButton[]}
31
+ * 来源 getPSPanelButtons
32
+ */
33
+ panelButtons?: IPanelButton[];
18
34
  /**
19
35
  * 界面行为组对象
20
36
  *
@@ -75,6 +75,13 @@ export interface IDEAction extends IModelObject {
75
75
  * 来源 getBeforePSDEActionLogics
76
76
  */
77
77
  beforeDEActionLogics?: IDEActionLogic[];
78
+ /**
79
+ * 缓存超时
80
+ * @type {number}
81
+ * @default -1
82
+ * 来源 getCacheTimeout
83
+ */
84
+ cacheTimeout?: number;
78
85
  /**
79
86
  * 检查附加逻辑集合
80
87
  *
@@ -182,6 +189,13 @@ export interface IDEAction extends IModelObject {
182
189
  * 来源 isCustomParam
183
190
  */
184
191
  customParam?: boolean;
192
+ /**
193
+ * 启用缓存
194
+ * @type {boolean}
195
+ * @default false
196
+ * 来源 isEnableCache
197
+ */
198
+ enableCache?: boolean;
185
199
  /**
186
200
  * 支持临时数据
187
201
  * @type {boolean}
@@ -1,3 +1,4 @@
1
+ import { IDER1NBase } from './ider1-nbase';
1
2
  import { IDERBase } from './iderbase';
2
3
  import { ILanguageRes } from '../../res/ilanguage-res';
3
4
  /**
@@ -6,7 +7,7 @@ import { ILanguageRes } from '../../res/ilanguage-res';
6
7
  * @export
7
8
  * @interface IDER1N
8
9
  */
9
- export interface IDER1N extends IDERBase {
10
+ export interface IDER1N extends IDERBase, IDER1NBase {
10
11
  /**
11
12
  * 克隆次序
12
13
  * @type {number}
@@ -0,0 +1,45 @@
1
+ import { IDERBase } from './iderbase';
2
+ import { ILanguageRes } from '../../res/ilanguage-res';
3
+ /**
4
+ *
5
+ * @export
6
+ * @interface IDER1NBase
7
+ */
8
+ export interface IDER1NBase extends IDERBase {
9
+ /**
10
+ * @type {number}
11
+ * 来源 getMasterOrder
12
+ */
13
+ masterOrder?: number;
14
+ /**
15
+ * @type {number}
16
+ * 来源 getMasterRS
17
+ */
18
+ masterRS?: number;
19
+ /**
20
+ * @type {string}
21
+ * 来源 getRRMLanResTag
22
+ */
23
+ rrmlanResTag?: string;
24
+ /**
25
+ *
26
+ * @type {ILanguageRes}
27
+ * 来源 getRRMPSLanguageRes
28
+ */
29
+ rrmlanguageRes?: ILanguageRes;
30
+ /**
31
+ * @type {number}
32
+ * 来源 getRemoveActionType
33
+ */
34
+ removeActionType?: number;
35
+ /**
36
+ * @type {number}
37
+ * 来源 getRemoveOrder
38
+ */
39
+ removeOrder?: number;
40
+ /**
41
+ * @type {string}
42
+ * 来源 getRemoveRejectMsg
43
+ */
44
+ removeRejectMsg?: string;
45
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -12,6 +12,18 @@ export interface IDEDQCondition extends IModelObject {
12
12
  * 来源 getCondOp
13
13
  */
14
14
  condOp?: string;
15
+ /**
16
+ * 条件标记
17
+ * @type {string}
18
+ * 来源 getCondTag
19
+ */
20
+ condTag?: string;
21
+ /**
22
+ * 条件标记2
23
+ * @type {string}
24
+ * 来源 getCondTag2
25
+ */
26
+ condTag2?: string;
15
27
  /**
16
28
  * 条件类型
17
29
  * @description 值模式 [条件类型] {GROUP:组合条件、 SINGLE:属性条件、 CUSTOM:自定义条件、 PREDEFINED:预置条件 }
@@ -38,6 +38,24 @@ export interface IDEWizardForm extends IModelObject {
38
38
  * 来源 getFormTag
39
39
  */
40
40
  formTag?: string;
41
+ /**
42
+ * 完成启用脚本代码
43
+ * @type {string}
44
+ * 来源 getGoFinishEnableScriptCode
45
+ */
46
+ goFinishEnableScriptCode?: string;
47
+ /**
48
+ * 下一步启用脚本代码
49
+ * @type {string}
50
+ * 来源 getGoNextEnableScriptCode
51
+ */
52
+ goNextEnableScriptCode?: string;
53
+ /**
54
+ * 上一步启用脚本代码
55
+ * @type {string}
56
+ * 来源 getGoPrevEnableScriptCode
57
+ */
58
+ goPrevEnableScriptCode?: string;
41
59
  /**
42
60
  * 实体表单名称
43
61
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz/model-core",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "license": "MIT",
5
5
  "description": "动态模型接口",
6
6
  "type": "module",
@@ -1,3 +1,4 @@
1
+ import { ILayoutPanel } from '../../control/panel/ilayout-panel';
1
2
  import { ILanguageRes } from '../../res/ilanguage-res';
2
3
  import { IModelObject } from '../../imodel-object';
3
4
 
@@ -39,6 +40,14 @@ export interface IAppViewMsg extends IModelObject {
39
40
  */
40
41
  messageType?: string | 'INFO' | 'WARN' | 'ERROR' | 'CUSTOM';
41
42
 
43
+ /**
44
+ * 启用判断实体
45
+ *
46
+ * @type {string}
47
+ * 来源 getPSAppDataEntity
48
+ */
49
+ appDataEntityId?: string;
50
+
42
51
  /**
43
52
  * 应用消息模板
44
53
  *
@@ -47,6 +56,14 @@ export interface IAppViewMsg extends IModelObject {
47
56
  */
48
57
  appMsgTemplId?: string;
49
58
 
59
+ /**
60
+ * 布局面板
61
+ *
62
+ * @type {ILayoutPanel}
63
+ * 来源 getPSLayoutPanel
64
+ */
65
+ layoutPanel?: ILayoutPanel;
66
+
50
67
  /**
51
68
  * 显示位置
52
69
  * @description 值模式 [视图消息位置] {TOP:视图上方、 BOTTOM:视图下方、 BODY:视图内容区、 POPUP:弹出、 CUSTOM:自定义 }
@@ -63,6 +80,21 @@ export interface IAppViewMsg extends IModelObject {
63
80
  */
64
81
  removeMode?: number | 0 | 1 | 2;
65
82
 
83
+ /**
84
+ * 启用判断操作标识
85
+ * @type {string}
86
+ * 来源 getTestDataAccessAction
87
+ */
88
+ testDataAccessAction?: string;
89
+
90
+ /**
91
+ * 启用判断实体逻辑
92
+ *
93
+ * @type {string}
94
+ * 来源 getTestPSAppDELogic
95
+ */
96
+ testAppDELogicId?: string;
97
+
66
98
  /**
67
99
  * 抬头
68
100
  * @type {string}
@@ -1,3 +1,4 @@
1
+ import { IDEFormButton } from './ideform-button';
1
2
  import { IDEFormDetail } from './ideform-detail';
2
3
  import { IUIActionGroup } from '../../view/iuiaction-group';
3
4
 
@@ -16,6 +17,23 @@ export interface IDEFormButtonList extends IDEFormDetail {
16
17
  */
17
18
  actionGroupExtractMode?: string | 'ITEM' | 'ITEMS';
18
19
 
20
+ /**
21
+ * 按钮列表类型
22
+ * @description 值模式 [表单按钮列表类型] {UIACTIONGROUP:界面行为组、 BUTTONS:按钮集合 }
23
+ * @type {( string | 'UIACTIONGROUP' | 'BUTTONS')}
24
+ * @default UIACTIONGROUP
25
+ * 来源 getButtonListType
26
+ */
27
+ buttonListType?: string | 'UIACTIONGROUP' | 'BUTTONS';
28
+
29
+ /**
30
+ * 表单按钮集合
31
+ *
32
+ * @type {IDEFormButton[]}
33
+ * 来源 getPSDEFormButtons
34
+ */
35
+ deformButtons?: IDEFormButton[];
36
+
19
37
  /**
20
38
  * 界面行为组对象
21
39
  *
@@ -1,3 +1,6 @@
1
+ import { IControlAttribute } from './icontrol-attribute';
2
+ import { IControlLogic } from './icontrol-logic';
3
+ import { IControlRender } from './icontrol-render';
1
4
  import { IEditorItem } from './ieditor-item';
2
5
  import { ISysCss } from '../res/isys-css';
3
6
  import { ISysDictCat } from '../res/isys-dict-cat';
@@ -82,6 +85,30 @@ export interface IEditor extends IModelObject {
82
85
  */
83
86
  objectValueField?: string;
84
87
 
88
+ /**
89
+ * 部件注入属性集合
90
+ *
91
+ * @type {IControlAttribute[]}
92
+ * 来源 getPSControlAttributes
93
+ */
94
+ controlAttributes?: IControlAttribute[];
95
+
96
+ /**
97
+ * 部件逻辑集合
98
+ *
99
+ * @type {IControlLogic[]}
100
+ * 来源 getPSControlLogics
101
+ */
102
+ controlLogics?: IControlLogic[];
103
+
104
+ /**
105
+ * 部件绘制器集合
106
+ *
107
+ * @type {IControlRender[]}
108
+ * 来源 getPSControlRenders
109
+ */
110
+ controlRenders?: IControlRender[];
111
+
85
112
  /**
86
113
  * 复合编辑器项集合
87
114
  *
@@ -1,3 +1,6 @@
1
+ import { IControlAttribute } from './icontrol-attribute';
2
+ import { IControlLogic } from './icontrol-logic';
3
+ import { IControlRender } from './icontrol-render';
1
4
  import { IRawItemParam } from './iraw-item-param';
2
5
  import { ISysCss } from '../res/isys-css';
3
6
  import { IModelObject } from '../imodel-object';
@@ -30,6 +33,30 @@ export interface IRawItemBase extends IModelObject {
30
33
  */
31
34
  dynaClass?: string;
32
35
 
36
+ /**
37
+ * 部件注入属性集合
38
+ *
39
+ * @type {IControlAttribute[]}
40
+ * 来源 getPSControlAttributes
41
+ */
42
+ controlAttributes?: IControlAttribute[];
43
+
44
+ /**
45
+ * 部件逻辑集合
46
+ *
47
+ * @type {IControlLogic[]}
48
+ * 来源 getPSControlLogics
49
+ */
50
+ controlLogics?: IControlLogic[];
51
+
52
+ /**
53
+ * 部件绘制器集合
54
+ *
55
+ * @type {IControlRender[]}
56
+ * 来源 getPSControlRenders
57
+ */
58
+ controlRenders?: IControlRender[];
59
+
33
60
  /**
34
61
  * 直接内容项参数集合
35
62
  *
@@ -1,3 +1,4 @@
1
+ import { IPanelButton } from './ipanel-button';
1
2
  import { IPanelItem } from './ipanel-item';
2
3
  import { IUIActionGroup } from '../../view/iuiaction-group';
3
4
 
@@ -17,6 +18,23 @@ export interface IPanelButtonList extends IPanelItem {
17
18
  */
18
19
  actionGroupExtractMode?: string | 'ITEM' | 'ITEMS';
19
20
 
21
+ /**
22
+ * 按钮列表类型
23
+ * @description 值模式 [表单按钮列表类型] {UIACTIONGROUP:界面行为组、 BUTTONS:按钮集合 }
24
+ * @type {( string | 'UIACTIONGROUP' | 'BUTTONS')}
25
+ * @default UIACTIONGROUP
26
+ * 来源 getButtonListType
27
+ */
28
+ buttonListType?: string | 'UIACTIONGROUP' | 'BUTTONS';
29
+
30
+ /**
31
+ * 按钮集合
32
+ *
33
+ * @type {IPanelButton[]}
34
+ * 来源 getPSPanelButtons
35
+ */
36
+ panelButtons?: IPanelButton[];
37
+
20
38
  /**
21
39
  * 界面行为组对象
22
40
  *
@@ -111,6 +111,14 @@ export interface IDEAction extends IModelObject {
111
111
  */
112
112
  beforeDEActionLogics?: IDEActionLogic[];
113
113
 
114
+ /**
115
+ * 缓存超时
116
+ * @type {number}
117
+ * @default -1
118
+ * 来源 getCacheTimeout
119
+ */
120
+ cacheTimeout?: number;
121
+
114
122
  /**
115
123
  * 检查附加逻辑集合
116
124
  *
@@ -233,6 +241,14 @@ export interface IDEAction extends IModelObject {
233
241
  */
234
242
  customParam?: boolean;
235
243
 
244
+ /**
245
+ * 启用缓存
246
+ * @type {boolean}
247
+ * @default false
248
+ * 来源 isEnableCache
249
+ */
250
+ enableCache?: boolean;
251
+
236
252
  /**
237
253
  * 支持临时数据
238
254
  * @type {boolean}
@@ -1,3 +1,4 @@
1
+ import { IDER1NBase } from './ider1-nbase';
1
2
  import { IDERBase } from './iderbase';
2
3
  import { ILanguageRes } from '../../res/ilanguage-res';
3
4
 
@@ -7,7 +8,7 @@ import { ILanguageRes } from '../../res/ilanguage-res';
7
8
  * @export
8
9
  * @interface IDER1N
9
10
  */
10
- export interface IDER1N extends IDERBase {
11
+ export interface IDER1N extends IDERBase, IDER1NBase {
11
12
  /**
12
13
  * 克隆次序
13
14
  * @type {number}
@@ -0,0 +1,52 @@
1
+ import { IDERBase } from './iderbase';
2
+ import { ILanguageRes } from '../../res/ilanguage-res';
3
+
4
+ /**
5
+ *
6
+ * @export
7
+ * @interface IDER1NBase
8
+ */
9
+ export interface IDER1NBase extends IDERBase {
10
+ /**
11
+ * @type {number}
12
+ * 来源 getMasterOrder
13
+ */
14
+ masterOrder?: number;
15
+
16
+ /**
17
+ * @type {number}
18
+ * 来源 getMasterRS
19
+ */
20
+ masterRS?: number;
21
+
22
+ /**
23
+ * @type {string}
24
+ * 来源 getRRMLanResTag
25
+ */
26
+ rrmlanResTag?: string;
27
+
28
+ /**
29
+ *
30
+ * @type {ILanguageRes}
31
+ * 来源 getRRMPSLanguageRes
32
+ */
33
+ rrmlanguageRes?: ILanguageRes;
34
+
35
+ /**
36
+ * @type {number}
37
+ * 来源 getRemoveActionType
38
+ */
39
+ removeActionType?: number;
40
+
41
+ /**
42
+ * @type {number}
43
+ * 来源 getRemoveOrder
44
+ */
45
+ removeOrder?: number;
46
+
47
+ /**
48
+ * @type {string}
49
+ * 来源 getRemoveRejectMsg
50
+ */
51
+ removeRejectMsg?: string;
52
+ }
@@ -14,6 +14,20 @@ export interface IDEDQCondition extends IModelObject {
14
14
  */
15
15
  condOp?: string;
16
16
 
17
+ /**
18
+ * 条件标记
19
+ * @type {string}
20
+ * 来源 getCondTag
21
+ */
22
+ condTag?: string;
23
+
24
+ /**
25
+ * 条件标记2
26
+ * @type {string}
27
+ * 来源 getCondTag2
28
+ */
29
+ condTag2?: string;
30
+
17
31
  /**
18
32
  * 条件类型
19
33
  * @description 值模式 [条件类型] {GROUP:组合条件、 SINGLE:属性条件、 CUSTOM:自定义条件、 PREDEFINED:预置条件 }
@@ -44,6 +44,27 @@ export interface IDEWizardForm extends IModelObject {
44
44
  */
45
45
  formTag?: string;
46
46
 
47
+ /**
48
+ * 完成启用脚本代码
49
+ * @type {string}
50
+ * 来源 getGoFinishEnableScriptCode
51
+ */
52
+ goFinishEnableScriptCode?: string;
53
+
54
+ /**
55
+ * 下一步启用脚本代码
56
+ * @type {string}
57
+ * 来源 getGoNextEnableScriptCode
58
+ */
59
+ goNextEnableScriptCode?: string;
60
+
61
+ /**
62
+ * 上一步启用脚本代码
63
+ * @type {string}
64
+ * 来源 getGoPrevEnableScriptCode
65
+ */
66
+ goPrevEnableScriptCode?: string;
67
+
47
68
  /**
48
69
  * 实体表单名称
49
70
  * @type {string}