@ibiz-template/model-helper 0.7.41-alpha.105 → 0.7.41-alpha.107
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/package.json +5 -4
- package/src/index.ts +7 -0
- package/src/locale/en/index.ts +16 -0
- package/src/locale/index.ts +2 -0
- package/src/locale/zh-CN/index.ts +14 -0
- package/src/model/PSSYSAPP.ts +12 -0
- package/src/model-helper.ts +804 -0
- package/src/model-loader.ts +95 -0
- package/src/model-util.ts +467 -0
- package/src/utils/format-path/format-path.ts +9 -0
- package/src/utils/index.ts +9 -0
- package/src/utils/merge-model/merge-app-codelist.ts +42 -0
- package/src/utils/merge-model/merge-app-menu.ts +136 -0
- package/src/utils/merge-model/merge-app-uiaction-group.ts +85 -0
- package/src/utils/merge-model/merge-de-drcontrol.ts +175 -0
- package/src/utils/merge-model/merge-de-form.ts +326 -0
- package/src/utils/merge-model/merge-model-helper.ts +602 -0
- package/src/utils/merge-model/merge-model.ts +20 -0
- package/src/utils/merge-model/merge-treeview.ts +197 -0
- package/src/utils/plural/plural.ts +30 -0
- package/src/utils/service-path-util/service-path-util.ts +361 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/model-helper",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.107",
|
|
4
4
|
"description": "模型辅助库",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"out",
|
|
12
|
+
"src",
|
|
12
13
|
"README.md"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
@@ -30,14 +31,14 @@
|
|
|
30
31
|
"author": "iBiz",
|
|
31
32
|
"license": "MIT",
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"@ibiz-template/core": "^0.7.41-alpha.
|
|
34
|
+
"@ibiz-template/core": "^0.7.41-alpha.106",
|
|
34
35
|
"@ibiz/model-core": "^0.1.86",
|
|
35
36
|
"@ibiz/rt-model-api": "0.2.84",
|
|
36
37
|
"pluralize": "^8.0.0",
|
|
37
38
|
"ramda": "^0.29.1"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
|
-
"@ibiz-template/runtime": "^0.7.41-alpha.
|
|
41
|
+
"@ibiz-template/runtime": "^0.7.41-alpha.107",
|
|
41
42
|
"@types/pluralize": "^0.0.33",
|
|
42
43
|
"@types/ramda": "^0.29.10"
|
|
43
44
|
},
|
|
@@ -45,5 +46,5 @@
|
|
|
45
46
|
"@ibiz-template/runtime": "^0.6.0",
|
|
46
47
|
"ramda": "^0.29.0"
|
|
47
48
|
},
|
|
48
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "e0d58848c68f359117728bf86a89458d1a9e3e43"
|
|
49
50
|
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const en = {
|
|
2
|
+
modelHelper: {
|
|
3
|
+
utils: {
|
|
4
|
+
noFoundEntity: 'Entity not found {id}',
|
|
5
|
+
maximumTier: 'Service path calculation exceeds maximum tier 10',
|
|
6
|
+
circularRecursive:
|
|
7
|
+
'A circular recursive reference appears in the computational resource relationship path, triggering the entity:',
|
|
8
|
+
calculatedEntities: 'Current list of calculated entities. ',
|
|
9
|
+
},
|
|
10
|
+
noInitialized:
|
|
11
|
+
'[{appId}] is not initialized, please call initModelUtil method to initialize it first',
|
|
12
|
+
noFoundEntity: 'Application [{appId}] data entity not found [{tag}]',
|
|
13
|
+
noFoundView: 'Application [{appId}] view not found [{tag}]',
|
|
14
|
+
noSupported: '[{language}] language not supported',
|
|
15
|
+
},
|
|
16
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const zhCn = {
|
|
2
|
+
modelHelper: {
|
|
3
|
+
utils: {
|
|
4
|
+
noFoundEntity: '未找到实体 {id}',
|
|
5
|
+
maximumTier: '服务路径计算超过最大层级 10',
|
|
6
|
+
circularRecursive: '计算资源关系路径出现循环递归引用,触发实体:',
|
|
7
|
+
calculatedEntities: '当前已计算过实体清单: ',
|
|
8
|
+
},
|
|
9
|
+
noInitialized: '[{appId}]未初始化,请先调用 initModelUtil 方法初始化',
|
|
10
|
+
noFoundEntity: '应用[{appId}]未找到数据实体[{tag}]',
|
|
11
|
+
noFoundView: '应用[{appId}]未找到视图[{tag}]',
|
|
12
|
+
noSupported: '[{language}]语言未支持',
|
|
13
|
+
},
|
|
14
|
+
};
|