@ibiz/model-core 0.1.12 → 0.1.13

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,14 @@
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.13] - 2024-02-27
11
+
12
+ ### Added
13
+
14
+ - IAppDETreeGridView 新增参数 gridRowActiveMode、enableRowEdit、rowEditDefault
15
+ - IAppViewLogic 新增参数 appDEUIActionId
16
+ - 面板容器支持定义行为组展开模式,表单、面板支持按钮列表元素
17
+
10
18
  ## [0.1.12] - 2024-02-21
11
19
 
12
20
  ### Added
@@ -205,6 +205,13 @@ export interface IApplication extends IModelObject {
205
205
  * 来源 getCodeName
206
206
  */
207
207
  codeName?: string;
208
+ /**
209
+ * 模型代码标识模式
210
+ * @description 值模式 [代码标识格式] {LOWER_UNDERSCORE:小写(下划线分隔)、 UPPER_UNDERSCORE:大写(下划线分隔)、 LOWER_CAMEL:驼峰(首字母小写)、 UPPER_CAMEL:驼峰(首字母大写)、 LOWER_HYPHEN:小写(中划线分隔) }
211
+ * @type {( string | 'LOWER_UNDERSCORE' | 'UPPER_UNDERSCORE' | 'LOWER_CAMEL' | 'UPPER_CAMEL' | 'LOWER_HYPHEN')}
212
+ * 来源 getCodeNameMode
213
+ */
214
+ codeNameMode?: string | 'LOWER_UNDERSCORE' | 'UPPER_UNDERSCORE' | 'LOWER_CAMEL' | 'UPPER_CAMEL' | 'LOWER_HYPHEN';
208
215
  /**
209
216
  * 默认对象存储分类
210
217
  * @type {string}
@@ -300,44 +307,4 @@ export interface IApplication extends IModelObject {
300
307
  * 来源 isWFAppMode
301
308
  */
302
309
  wfappMode?: boolean;
303
- /**
304
- * 应用下方信息
305
- *
306
- * @author chitanda
307
- * @date 2024-02-04 15:02:20
308
- * @type {string}
309
- */
310
- bottomInfo?: string;
311
- /**
312
- * 应用头部信息
313
- *
314
- * @author chitanda
315
- * @date 2024-02-04 15:02:39
316
- * @type {string}
317
- */
318
- headerInfo?: string;
319
- /**
320
- * 应用抬头
321
- *
322
- * @author chitanda
323
- * @date 2024-02-04 15:02:04
324
- * @type {string}
325
- */
326
- title?: string;
327
- /**
328
- * 应用标题
329
- *
330
- * @author chitanda
331
- * @date 2024-02-04 15:02:20
332
- * @type {string}
333
- */
334
- caption?: string;
335
- /**
336
- * 应用子标题
337
- *
338
- * @author chitanda
339
- * @date 2024-02-04 15:02:35
340
- * @type {string}
341
- */
342
- subCaption?: string;
343
310
  }
@@ -5,4 +5,27 @@ import { IAppDEMultiDataView } from './iapp-demulti-data-view';
5
5
  * @export
6
6
  * @interface IAppDETreeGridView
7
7
  */
8
- export type IAppDETreeGridView = IAppDEMultiDataView;
8
+ export interface IAppDETreeGridView extends IAppDEMultiDataView {
9
+ /**
10
+ * 表格行激活模式
11
+ * @description 值模式 [应用表格数据激活模式] {0:无、 1:单击、 2:双击 }
12
+ * @type {( number | 0 | 1 | 2)}
13
+ * @default 2
14
+ * 来源 getGridRowActiveMode
15
+ */
16
+ gridRowActiveMode?: number | 0 | 1 | 2;
17
+ /**
18
+ * 支持行编辑
19
+ * @type {boolean}
20
+ * @default false
21
+ * 来源 isEnableRowEdit
22
+ */
23
+ enableRowEdit?: boolean;
24
+ /**
25
+ * 视图默认进入行编辑
26
+ * @type {boolean}
27
+ * @default false
28
+ * 来源 isRowEditDefault
29
+ */
30
+ rowEditDefault?: boolean;
31
+ }
@@ -72,6 +72,13 @@ export interface IAppViewLogic extends IModelObject {
72
72
  * 来源 getOwner
73
73
  */
74
74
  owner?: IModel;
75
+ /**
76
+ * 应用实体界面行为对象
77
+ *
78
+ * @type {string}
79
+ * 来源 getPSAppDEUIAction
80
+ */
81
+ appDEUIActionId?: string;
75
82
  /**
76
83
  * 应用实体界面逻辑对象
77
84
  *
@@ -0,0 +1,24 @@
1
+ import { IDEFormDetail } from './ideform-detail';
2
+ import { IUIActionGroup } from '../../view/iuiaction-group';
3
+ /**
4
+ *
5
+ * 继承父接口类型值[BUTTONLIST]
6
+ * @export
7
+ * @interface IDEFormButtonList
8
+ */
9
+ export interface IDEFormButtonList extends IDEFormDetail {
10
+ /**
11
+ * 界面行为组展开模式
12
+ * @description 值模式 [界面行为组展开模式] {ITEM:按项展开(默认)、 ITEMS:按分组展开 }
13
+ * @type {( string | 'ITEM' | 'ITEMS')}
14
+ * 来源 getActionGroupExtractMode
15
+ */
16
+ actionGroupExtractMode?: string | 'ITEM' | 'ITEMS';
17
+ /**
18
+ * 界面行为组对象
19
+ *
20
+ * @type {IUIActionGroup}
21
+ * 来源 getPSUIActionGroup
22
+ */
23
+ uiactionGroup?: IUIActionGroup;
24
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import { IPanelItem } from './ipanel-item';
2
+ import { IUIActionGroup } from '../../view/iuiaction-group';
3
+ /**
4
+ *
5
+ * 继承父接口类型值[BUTTONLIST]
6
+ * @export
7
+ * @interface IPanelButtonList
8
+ */
9
+ export interface IPanelButtonList extends IPanelItem {
10
+ /**
11
+ * 界面行为组展开模式
12
+ * @description 值模式 [界面行为组展开模式] {ITEM:按项展开(默认)、 ITEMS:按分组展开 }
13
+ * @type {( string | 'ITEM' | 'ITEMS')}
14
+ * @default ITEM
15
+ * 来源 getActionGroupExtractMode
16
+ */
17
+ actionGroupExtractMode?: string | 'ITEM' | 'ITEMS';
18
+ /**
19
+ * 界面行为组对象
20
+ *
21
+ * @type {IUIActionGroup}
22
+ * 来源 getPSUIActionGroup
23
+ */
24
+ uiactionGroup?: IUIActionGroup;
25
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
1
  import { IPanelDataRegion } from './ipanel-data-region';
2
2
  import { IPanelItem } from './ipanel-item';
3
+ import { IUIActionGroup } from '../../view/iuiaction-group';
3
4
  /**
4
5
  *
5
6
  * 继承父接口类型值[CONTAINER]
@@ -7,6 +8,14 @@ import { IPanelItem } from './ipanel-item';
7
8
  * @interface IPanelContainer
8
9
  */
9
10
  export interface IPanelContainer extends IPanelItem, IPanelDataRegion {
11
+ /**
12
+ * 界面行为组展开模式
13
+ * @description 值模式 [界面行为组展开模式] {ITEM:按项展开(默认)、 ITEMS:按分组展开 }
14
+ * @type {( string | 'ITEM' | 'ITEMS')}
15
+ * @default ITEM
16
+ * 来源 getActionGroupExtractMode
17
+ */
18
+ actionGroupExtractMode?: string | 'ITEM' | 'ITEMS';
10
19
  /**
11
20
  * 动态标题绑定值项
12
21
  * @type {string}
@@ -20,6 +29,13 @@ export interface IPanelContainer extends IPanelItem, IPanelDataRegion {
20
29
  * 来源 getPSPanelItems
21
30
  */
22
31
  panelItems?: IPanelItem[];
32
+ /**
33
+ * 界面行为组对象
34
+ *
35
+ * @type {IUIActionGroup}
36
+ * 来源 getPSUIActionGroup
37
+ */
38
+ uiactionGroup?: IUIActionGroup;
23
39
  /**
24
40
  * 预置类型
25
41
  * @type {string}
@@ -0,0 +1,10 @@
1
+ import { IPanelButtonList } from './ipanel-button-list';
2
+ import { ISysPanelItem } from './isys-panel-item';
3
+ /**
4
+ *
5
+ * 继承父接口类型值[BUTTONLIST]
6
+ * @export
7
+ * @interface ISysPanelButtonList
8
+ */
9
+ export interface ISysPanelButtonList extends IPanelButtonList, ISysPanelItem {
10
+ }
@@ -0,0 +1 @@
1
+ export {};
package/out/exports.d.ts CHANGED
@@ -394,6 +394,7 @@ export { IDEFDSingleLogic } from './control/form/idefdsingle-logic';
394
394
  export { IDEFIUpdateDetail } from './control/form/idefiupdate-detail';
395
395
  export { IDEForm } from './control/form/ideform';
396
396
  export { IDEFormButton } from './control/form/ideform-button';
397
+ export { IDEFormButtonList } from './control/form/ideform-button-list';
397
398
  export { IDEFormDRUIPart } from './control/form/ideform-druipart';
398
399
  export { IDEFormDataItem } from './control/form/ideform-data-item';
399
400
  export { IDEFormDetail } from './control/form/ideform-detail';
@@ -500,6 +501,7 @@ export { IMenuItem } from './control/menu/imenu-item';
500
501
  export { ILayoutPanel } from './control/panel/ilayout-panel';
501
502
  export { IPanel } from './control/panel/ipanel';
502
503
  export { IPanelButton } from './control/panel/ipanel-button';
504
+ export { IPanelButtonList } from './control/panel/ipanel-button-list';
503
505
  export { IPanelContainer } from './control/panel/ipanel-container';
504
506
  export { IPanelControl } from './control/panel/ipanel-control';
505
507
  export { IPanelCtrlPos } from './control/panel/ipanel-ctrl-pos';
@@ -520,6 +522,7 @@ export { IPanelUserControl } from './control/panel/ipanel-user-control';
520
522
  export { ISysLayoutPanel } from './control/panel/isys-layout-panel';
521
523
  export { ISysPanel } from './control/panel/isys-panel';
522
524
  export { ISysPanelButton } from './control/panel/isys-panel-button';
525
+ export { ISysPanelButtonList } from './control/panel/isys-panel-button-list';
523
526
  export { ISysPanelContainer } from './control/panel/isys-panel-container';
524
527
  export { ISysPanelControl } from './control/panel/isys-panel-control';
525
528
  export { ISysPanelCtrlPos } from './control/panel/isys-panel-ctrl-pos';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz/model-core",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "license": "MIT",
5
5
  "description": "动态模型接口",
6
6
  "type": "module",
@@ -242,6 +242,20 @@ export interface IApplication extends IModelObject {
242
242
  */
243
243
  codeName?: string;
244
244
 
245
+ /**
246
+ * 模型代码标识模式
247
+ * @description 值模式 [代码标识格式] {LOWER_UNDERSCORE:小写(下划线分隔)、 UPPER_UNDERSCORE:大写(下划线分隔)、 LOWER_CAMEL:驼峰(首字母小写)、 UPPER_CAMEL:驼峰(首字母大写)、 LOWER_HYPHEN:小写(中划线分隔) }
248
+ * @type {( string | 'LOWER_UNDERSCORE' | 'UPPER_UNDERSCORE' | 'LOWER_CAMEL' | 'UPPER_CAMEL' | 'LOWER_HYPHEN')}
249
+ * 来源 getCodeNameMode
250
+ */
251
+ codeNameMode?:
252
+ | string
253
+ | 'LOWER_UNDERSCORE'
254
+ | 'UPPER_UNDERSCORE'
255
+ | 'LOWER_CAMEL'
256
+ | 'UPPER_CAMEL'
257
+ | 'LOWER_HYPHEN';
258
+
245
259
  /**
246
260
  * 默认对象存储分类
247
261
  * @type {string}
@@ -351,49 +365,4 @@ export interface IApplication extends IModelObject {
351
365
  * 来源 isWFAppMode
352
366
  */
353
367
  wfappMode?: boolean;
354
-
355
- /**
356
- * 应用下方信息
357
- *
358
- * @author chitanda
359
- * @date 2024-02-04 15:02:20
360
- * @type {string}
361
- */
362
- bottomInfo?: string;
363
-
364
- /**
365
- * 应用头部信息
366
- *
367
- * @author chitanda
368
- * @date 2024-02-04 15:02:39
369
- * @type {string}
370
- */
371
- headerInfo?: string;
372
-
373
- /**
374
- * 应用抬头
375
- *
376
- * @author chitanda
377
- * @date 2024-02-04 15:02:04
378
- * @type {string}
379
- */
380
- title?: string;
381
-
382
- /**
383
- * 应用标题
384
- *
385
- * @author chitanda
386
- * @date 2024-02-04 15:02:20
387
- * @type {string}
388
- */
389
- caption?: string;
390
-
391
- /**
392
- * 应用子标题
393
- *
394
- * @author chitanda
395
- * @date 2024-02-04 15:02:35
396
- * @type {string}
397
- */
398
- subCaption?: string;
399
368
  }
@@ -6,4 +6,29 @@ import { IAppDEMultiDataView } from './iapp-demulti-data-view';
6
6
  * @export
7
7
  * @interface IAppDETreeGridView
8
8
  */
9
- export type IAppDETreeGridView = IAppDEMultiDataView;
9
+ export interface IAppDETreeGridView extends IAppDEMultiDataView {
10
+ /**
11
+ * 表格行激活模式
12
+ * @description 值模式 [应用表格数据激活模式] {0:无、 1:单击、 2:双击 }
13
+ * @type {( number | 0 | 1 | 2)}
14
+ * @default 2
15
+ * 来源 getGridRowActiveMode
16
+ */
17
+ gridRowActiveMode?: number | 0 | 1 | 2;
18
+
19
+ /**
20
+ * 支持行编辑
21
+ * @type {boolean}
22
+ * @default false
23
+ * 来源 isEnableRowEdit
24
+ */
25
+ enableRowEdit?: boolean;
26
+
27
+ /**
28
+ * 视图默认进入行编辑
29
+ * @type {boolean}
30
+ * @default false
31
+ * 来源 isRowEditDefault
32
+ */
33
+ rowEditDefault?: boolean;
34
+ }
@@ -107,6 +107,14 @@ export interface IAppViewLogic extends IModelObject {
107
107
  */
108
108
  owner?: IModel;
109
109
 
110
+ /**
111
+ * 应用实体界面行为对象
112
+ *
113
+ * @type {string}
114
+ * 来源 getPSAppDEUIAction
115
+ */
116
+ appDEUIActionId?: string;
117
+
110
118
  /**
111
119
  * 应用实体界面逻辑对象
112
120
  *
@@ -0,0 +1,26 @@
1
+ import { IDEFormDetail } from './ideform-detail';
2
+ import { IUIActionGroup } from '../../view/iuiaction-group';
3
+
4
+ /**
5
+ *
6
+ * 继承父接口类型值[BUTTONLIST]
7
+ * @export
8
+ * @interface IDEFormButtonList
9
+ */
10
+ export interface IDEFormButtonList extends IDEFormDetail {
11
+ /**
12
+ * 界面行为组展开模式
13
+ * @description 值模式 [界面行为组展开模式] {ITEM:按项展开(默认)、 ITEMS:按分组展开 }
14
+ * @type {( string | 'ITEM' | 'ITEMS')}
15
+ * 来源 getActionGroupExtractMode
16
+ */
17
+ actionGroupExtractMode?: string | 'ITEM' | 'ITEMS';
18
+
19
+ /**
20
+ * 界面行为组对象
21
+ *
22
+ * @type {IUIActionGroup}
23
+ * 来源 getPSUIActionGroup
24
+ */
25
+ uiactionGroup?: IUIActionGroup;
26
+ }
@@ -0,0 +1,27 @@
1
+ import { IPanelItem } from './ipanel-item';
2
+ import { IUIActionGroup } from '../../view/iuiaction-group';
3
+
4
+ /**
5
+ *
6
+ * 继承父接口类型值[BUTTONLIST]
7
+ * @export
8
+ * @interface IPanelButtonList
9
+ */
10
+ export interface IPanelButtonList extends IPanelItem {
11
+ /**
12
+ * 界面行为组展开模式
13
+ * @description 值模式 [界面行为组展开模式] {ITEM:按项展开(默认)、 ITEMS:按分组展开 }
14
+ * @type {( string | 'ITEM' | 'ITEMS')}
15
+ * @default ITEM
16
+ * 来源 getActionGroupExtractMode
17
+ */
18
+ actionGroupExtractMode?: string | 'ITEM' | 'ITEMS';
19
+
20
+ /**
21
+ * 界面行为组对象
22
+ *
23
+ * @type {IUIActionGroup}
24
+ * 来源 getPSUIActionGroup
25
+ */
26
+ uiactionGroup?: IUIActionGroup;
27
+ }
@@ -1,5 +1,6 @@
1
1
  import { IPanelDataRegion } from './ipanel-data-region';
2
2
  import { IPanelItem } from './ipanel-item';
3
+ import { IUIActionGroup } from '../../view/iuiaction-group';
3
4
 
4
5
  /**
5
6
  *
@@ -8,6 +9,15 @@ import { IPanelItem } from './ipanel-item';
8
9
  * @interface IPanelContainer
9
10
  */
10
11
  export interface IPanelContainer extends IPanelItem, IPanelDataRegion {
12
+ /**
13
+ * 界面行为组展开模式
14
+ * @description 值模式 [界面行为组展开模式] {ITEM:按项展开(默认)、 ITEMS:按分组展开 }
15
+ * @type {( string | 'ITEM' | 'ITEMS')}
16
+ * @default ITEM
17
+ * 来源 getActionGroupExtractMode
18
+ */
19
+ actionGroupExtractMode?: string | 'ITEM' | 'ITEMS';
20
+
11
21
  /**
12
22
  * 动态标题绑定值项
13
23
  * @type {string}
@@ -23,6 +33,14 @@ export interface IPanelContainer extends IPanelItem, IPanelDataRegion {
23
33
  */
24
34
  panelItems?: IPanelItem[];
25
35
 
36
+ /**
37
+ * 界面行为组对象
38
+ *
39
+ * @type {IUIActionGroup}
40
+ * 来源 getPSUIActionGroup
41
+ */
42
+ uiactionGroup?: IUIActionGroup;
43
+
26
44
  /**
27
45
  * 预置类型
28
46
  * @type {string}
@@ -0,0 +1,10 @@
1
+ import { IPanelButtonList } from './ipanel-button-list';
2
+ import { ISysPanelItem } from './isys-panel-item';
3
+
4
+ /**
5
+ *
6
+ * 继承父接口类型值[BUTTONLIST]
7
+ * @export
8
+ * @interface ISysPanelButtonList
9
+ */
10
+ export interface ISysPanelButtonList extends IPanelButtonList, ISysPanelItem {}
package/src/exports.ts CHANGED
@@ -394,6 +394,7 @@ export { IDEFDSingleLogic } from './control/form/idefdsingle-logic';
394
394
  export { IDEFIUpdateDetail } from './control/form/idefiupdate-detail';
395
395
  export { IDEForm } from './control/form/ideform';
396
396
  export { IDEFormButton } from './control/form/ideform-button';
397
+ export { IDEFormButtonList } from './control/form/ideform-button-list';
397
398
  export { IDEFormDRUIPart } from './control/form/ideform-druipart';
398
399
  export { IDEFormDataItem } from './control/form/ideform-data-item';
399
400
  export { IDEFormDetail } from './control/form/ideform-detail';
@@ -500,6 +501,7 @@ export { IMenuItem } from './control/menu/imenu-item';
500
501
  export { ILayoutPanel } from './control/panel/ilayout-panel';
501
502
  export { IPanel } from './control/panel/ipanel';
502
503
  export { IPanelButton } from './control/panel/ipanel-button';
504
+ export { IPanelButtonList } from './control/panel/ipanel-button-list';
503
505
  export { IPanelContainer } from './control/panel/ipanel-container';
504
506
  export { IPanelControl } from './control/panel/ipanel-control';
505
507
  export { IPanelCtrlPos } from './control/panel/ipanel-ctrl-pos';
@@ -520,6 +522,7 @@ export { IPanelUserControl } from './control/panel/ipanel-user-control';
520
522
  export { ISysLayoutPanel } from './control/panel/isys-layout-panel';
521
523
  export { ISysPanel } from './control/panel/isys-panel';
522
524
  export { ISysPanelButton } from './control/panel/isys-panel-button';
525
+ export { ISysPanelButtonList } from './control/panel/isys-panel-button-list';
523
526
  export { ISysPanelContainer } from './control/panel/isys-panel-container';
524
527
  export { ISysPanelControl } from './control/panel/isys-panel-control';
525
528
  export { ISysPanelCtrlPos } from './control/panel/isys-panel-ctrl-pos';