@ibiz/model-core 0.1.65 → 0.1.67

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.66] - 2025-03-25
11
+
12
+ ### Changed
13
+
14
+ - 代码编辑器继承接口调整
15
+
10
16
  ## [0.1.21] - 2024-04-23
11
17
 
12
18
  ### Added
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 千反田丷
3
+ Copyright (c) 2021-present, iBiz
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,3 +1,98 @@
1
- # iBizSys 网页端模型包 API
2
-
3
- ## 更新日志请看 [ChangeLog](./CHANGELOG.md)
1
+ # @ibiz/model-core
2
+
3
+ iBiz网页端模型接口库是一个高度抽象的前端应用层模型对象接口规范,旨在为开发者提供一套标准化、可复用的接口规范,涵盖应用、视图、视图布局、部件、编辑器等核心模型对象。通过定义清晰的接口定义,开发者能够更高效地构建复杂应用,提升代码的可维护性和可扩展性。
4
+
5
+ ## 📦 安装
6
+
7
+ 使用 npm 或 pnpm 安装:
8
+
9
+ ```bash
10
+ npm install @ibiz/model-core
11
+ # 或
12
+ pnpm add @ibiz/model-core
13
+ ```
14
+
15
+ ## 📂 项目结构
16
+
17
+ ```
18
+ ├── src
19
+ │   ├── app
20
+ │   │   ├── appmenu 应用菜单模型
21
+ │   │   ├── bi 智能报表相关模型
22
+ │   │   ├── codelist 代码表模型
23
+ │   │   ├── control 计数器、门户部件模型
24
+ │   │   ├── dataentity 应用实体相关模型
25
+ │   │   ├── func 应用功能模型
26
+ │   │   ├── logic 应用预置逻辑模型
27
+ │   │   ├── mob 应用端特有视图模型
28
+ │   │   ├── msg 应用视图消息模型
29
+ │   │   ├── res 应用引用资源模型、包含插件引用、输入提示数据集等模型
30
+ │   │   ├── theme 应用主题模型
31
+ │   │   ├── util 应用功能配置模型,包含搜索条件存储、搜索条件存储等模型
32
+ │   │   ├── valuerule 应用值规则模型
33
+ │   │   ├── view 应用视图模型
34
+ │   │   ├── wf 工作流相关模型,包含工作流、工作流版本等模型
35
+ │   │   ├── iapp-lan.ts 应用多语言模型
36
+ │   │   ├── iapp-resource.ts 应用资源模型
37
+ │   │   ├── iapplication.ts 前端应用模型
38
+ │   │   └── isub-app-ref.ts 子应用引用模型
39
+ │   ├── codelist 代码表相关模型,包含代码表项等模型
40
+ │   ├── control 部件模型
41
+ │   │   ├── calendar 日历部件
42
+ │   │   ├── captionbar 标题栏部件
43
+ │   │   ├── chart 图表部件
44
+ │   │   ├── counter 计数器相关模型
45
+ │   │   ├── custom 自定义部件
46
+ │   │   ├── dashboard 数据看板部件
47
+ │   │   ├── datainfobar 信息栏部件
48
+ │   │   ├── dataview 卡片部件
49
+ │   │   ├── drctrl dr部件,包含分页导航、数据关系栏等部件
50
+ │   │   ├── editor 编辑器模型
51
+ │   │   ├── expbar 导航部件,包含表格导航、卡片导航、树导航等部件
52
+ │   │   ├── form 表单部件,包含编辑表单、搜索表单等部件
53
+ │   │   ├── grid 表格部件
54
+ │   │   ├── layout 界面布局模型
55
+ │   │   ├── list 列表部件
56
+ │   │   ├── map 地图部件
57
+ │   │   ├── menu 菜单部件
58
+ │   │   ├── panel 面板部件
59
+ │   │   ├── rawitem 直接内容模型
60
+ │   │   ├── reportpanel 报表面板部件
61
+ │   │   ├── searchbar 搜索栏部件
62
+ │   │   ├── titlebar 标题栏模型
63
+ │   │   ├── toolbar 工具栏部件
64
+ │   │   ├── tree 树部件
65
+ │   │   ├── viewpanel 视图布局面板模型
66
+ │   │   ├── wizardpanel 向导面板部件
67
+ │   ├── data 数据项相关模型
68
+ │   ├── dataentity 实体相关模型
69
+ │   │   ├── ac 实体自填模式
70
+ │   │   ├── action 实体行为
71
+ │   │   ├── dataexport 数据导出
72
+ │   │   ├── dataimport 数据导入
73
+ │   │   ├── datamap 数据映射
74
+ │   │   ├── defield 实体属性
75
+ │   │   ├── der 实体关系
76
+ │   │   ├── ds 数据查询
77
+ │   │   ├── logic 实体逻辑
78
+ │   │   ├── mainstate 实体主状态
79
+ │   │   ├── print 实体打印
80
+ │   │   ├── priv 实体操作标识
81
+ │   │   ├── report 实体报表
82
+ │   │   ├── uiaction 界面行为
83
+ │   │   └── wizard 实体向导
84
+ │   ├── msg 消息相关模型,如消息模板
85
+ │   ├── res 系统资源相关模型,如语言资源、系统样式表、系统图片、系统插件等
86
+ │   ├── security 访问控制相关模型,如统一资源等
87
+ │   ├── valuerule 值规则相关模型
88
+ │   ├── view 视图相关模型,如视图引擎、界面行为组等
89
+ ```
90
+
91
+ ## 📌 更改日志
92
+
93
+ 每个版本的详细更改记录在[发行说明](CHANGELOG.md)中。
94
+
95
+ ## 📜 许可证
96
+
97
+ [MIT](LICENSE)
98
+
@@ -9,6 +9,7 @@ import { IAppDEUIAction } from './dataentity/iapp-deuiaction';
9
9
  import { IAppFunc } from './func/iapp-func';
10
10
  import { IAppUILogic } from './logic/iapp-uilogic';
11
11
  import { IAppMsgTempl } from './msg/iapp-msg-templ';
12
+ import { IAppDEFInputTipSet } from './res/iapp-definput-tip-set';
12
13
  import { IAppPFPluginRef } from './res/iapp-pfplugin-ref';
13
14
  import { IAppSubViewTypeRef } from './res/iapp-sub-view-type-ref';
14
15
  import { IAppUITheme } from './theme/iapp-uitheme';
@@ -38,6 +39,13 @@ export interface IApplication extends IModelObject {
38
39
  * 来源 getAllPSAppBISchemes
39
40
  */
40
41
  appBISchemeIds?: string[];
42
+ /**
43
+ * 应用实体属性输入提示集合集合
44
+ *
45
+ * @type {IAppDEFInputTipSet[]}
46
+ * 来源 getAllPSAppDEFInputTipSets
47
+ */
48
+ appDEFInputTipSets?: IAppDEFInputTipSet[];
41
49
  /**
42
50
  * 应用界面行为集合
43
51
  *
@@ -1,11 +1,11 @@
1
- import { ITextEditor } from './itext-editor';
1
+ import { ITextArea } from './itext-area';
2
2
  /**
3
3
  *
4
4
  * 继承父接口类型值[CODE,MOBCODE]
5
5
  * @export
6
6
  * @interface ICode
7
7
  */
8
- export interface ICode extends ITextEditor {
8
+ export interface ICode extends ITextArea {
9
9
  /**
10
10
  * 代码类型[CODETYPE]
11
11
  * @type {string}
@@ -17,7 +17,7 @@ export interface IUIActionGroupDetail extends IModelObject {
17
17
  * 按钮样式
18
18
  * @description 值模式 [按钮样式] {DEFAULT:默认、 INVERSE:反向、 PRIMARY:主要、 INFO:信息、 SUCCESS:成功、 WARNING:警告、 DANGER:危险、 STYLE2:样式2、 STYLE3:样式3、 STYLE4:样式4 }
19
19
  * @type {( string | 'DEFAULT' | 'INVERSE' | 'PRIMARY' | 'INFO' | 'SUCCESS' | 'WARNING' | 'DANGER' | 'STYLE2' | 'STYLE3' | 'STYLE4')}
20
- * @default 100
20
+ * @default DEFAULT
21
21
  * 来源 getButtonStyle
22
22
  */
23
23
  buttonStyle?: string | 'DEFAULT' | 'INVERSE' | 'PRIMARY' | 'INFO' | 'SUCCESS' | 'WARNING' | 'DANGER' | 'STYLE2' | 'STYLE3' | 'STYLE4';
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@ibiz/model-core",
3
- "version": "0.1.65",
3
+ "version": "0.1.67",
4
4
  "license": "MIT",
5
- "description": "动态模型接口",
5
+ "description": "iBiz网页端模型接口",
6
6
  "type": "module",
7
7
  "main": "out/index.js",
8
8
  "types": "out/index.d.ts",
9
- "repository": "https://gitee.com/iBizModeling/model-core.git",
10
9
  "files": [
11
10
  "dist",
12
11
  "out",
@@ -9,6 +9,7 @@ import { IAppDEUIAction } from './dataentity/iapp-deuiaction';
9
9
  import { IAppFunc } from './func/iapp-func';
10
10
  import { IAppUILogic } from './logic/iapp-uilogic';
11
11
  import { IAppMsgTempl } from './msg/iapp-msg-templ';
12
+ import { IAppDEFInputTipSet } from './res/iapp-definput-tip-set';
12
13
  import { IAppPFPluginRef } from './res/iapp-pfplugin-ref';
13
14
  import { IAppSubViewTypeRef } from './res/iapp-sub-view-type-ref';
14
15
  import { IAppUITheme } from './theme/iapp-uitheme';
@@ -41,6 +42,14 @@ export interface IApplication extends IModelObject {
41
42
  */
42
43
  appBISchemeIds?: string[];
43
44
 
45
+ /**
46
+ * 应用实体属性输入提示集合集合
47
+ *
48
+ * @type {IAppDEFInputTipSet[]}
49
+ * 来源 getAllPSAppDEFInputTipSets
50
+ */
51
+ appDEFInputTipSets?: IAppDEFInputTipSet[];
52
+
44
53
  /**
45
54
  * 应用界面行为集合
46
55
  *
@@ -1,4 +1,4 @@
1
- import { ITextEditor } from './itext-editor';
1
+ import { ITextArea } from './itext-area';
2
2
 
3
3
  /**
4
4
  *
@@ -6,7 +6,7 @@ import { ITextEditor } from './itext-editor';
6
6
  * @export
7
7
  * @interface ICode
8
8
  */
9
- export interface ICode extends ITextEditor {
9
+ export interface ICode extends ITextArea {
10
10
  /**
11
11
  * 代码类型[CODETYPE]
12
12
  * @type {string}
@@ -19,7 +19,7 @@ export interface IUIActionGroupDetail extends IModelObject {
19
19
  * 按钮样式
20
20
  * @description 值模式 [按钮样式] {DEFAULT:默认、 INVERSE:反向、 PRIMARY:主要、 INFO:信息、 SUCCESS:成功、 WARNING:警告、 DANGER:危险、 STYLE2:样式2、 STYLE3:样式3、 STYLE4:样式4 }
21
21
  * @type {( string | 'DEFAULT' | 'INVERSE' | 'PRIMARY' | 'INFO' | 'SUCCESS' | 'WARNING' | 'DANGER' | 'STYLE2' | 'STYLE3' | 'STYLE4')}
22
- * @default 100
22
+ * @default DEFAULT
23
23
  * 来源 getButtonStyle
24
24
  */
25
25
  buttonStyle?: