@ibiz-template/vue3-components 0.4.3 → 0.4.5
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/chart-ImL2qyp9.js +0 -1
- package/dist/ibiz-markdown-editor-BQsiQfa2.js +0 -1
- package/dist/index-UNZ1dtt_.js +0 -1
- package/dist/index-Ul84JXar.js +0 -1
- package/dist/index-zzHHP33g.js +13 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -2
- package/dist/map-chart-7nfIdU3w.js +0 -1
- package/dist/wang-editor-f4440Xvw.js +0 -1
- package/dist/{xlsx-util-Mxa6HuaG.js → xlsx-util-FO177Hj_.js} +1 -2
- package/es/common/col/col.mjs +0 -3
- package/es/common/data-import2/data-import2.css +1 -1
- package/es/common/data-import2/data-import2.d.ts +48 -11
- package/es/common/data-import2/data-import2.mjs +133 -166
- package/es/common/data-import2-select/data-import2-select.css +1 -0
- package/es/common/data-import2-select/data-import2-select.d.ts +59 -0
- package/es/common/data-import2-select/data-import2-select.mjs +170 -0
- package/es/common/data-import2-table/data-import2-table.css +1 -0
- package/es/common/data-import2-table/data-import2-table.d.ts +56 -0
- package/es/common/data-import2-table/data-import2-table.mjs +104 -0
- package/es/common/index.mjs +4 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +2 -2
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.provider.mjs +1 -1
- package/es/control/grid/row-edit-popover/row-edit-popover.css +1 -1
- package/es/control/tree/index.d.ts +1 -0
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +1 -0
- package/es/control/tree/tree.mjs +104 -54
- package/es/editor/index.mjs +9 -2
- package/es/index.mjs +0 -1
- package/es/panel-component/index.d.ts +0 -1
- package/es/panel-component/index.mjs +2 -4
- package/es/panel-component/panel-button/panel-button.controller.mjs +4 -1
- package/es/view-engine/index-view.engine.d.ts +0 -7
- package/es/view-engine/index-view.engine.mjs +0 -37
- package/lib/common/col/col.cjs +0 -3
- package/lib/common/data-import2/data-import2.cjs +132 -164
- package/lib/common/data-import2/data-import2.css +1 -1
- package/lib/common/data-import2-select/data-import2-select.cjs +172 -0
- package/lib/common/data-import2-select/data-import2-select.css +1 -0
- package/lib/common/data-import2-table/data-import2-table.cjs +106 -0
- package/lib/common/data-import2-table/data-import2-table.css +1 -0
- package/lib/common/index.cjs +4 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.provider.cjs +1 -1
- package/lib/control/grid/row-edit-popover/row-edit-popover.css +1 -1
- package/lib/control/tree/tree.cjs +102 -52
- package/lib/control/tree/tree.css +1 -1
- package/lib/editor/index.cjs +9 -2
- package/lib/index.cjs +15 -17
- package/lib/panel-component/index.cjs +29 -32
- package/lib/panel-component/panel-button/panel-button.controller.cjs +4 -1
- package/lib/view-engine/index-view.engine.cjs +0 -37
- package/package.json +10 -9
- package/dist/chart-ImL2qyp9.js.map +0 -1
- package/dist/ibiz-markdown-editor-BQsiQfa2.js.map +0 -1
- package/dist/index-1dtzc9-X.js +0 -14
- package/dist/index-1dtzc9-X.js.map +0 -1
- package/dist/index-UNZ1dtt_.js.map +0 -1
- package/dist/index-Ul84JXar.js.map +0 -1
- package/dist/index.system.min.js.map +0 -1
- package/dist/map-chart-7nfIdU3w.js.map +0 -1
- package/dist/wang-editor-f4440Xvw.js.map +0 -1
- package/dist/xlsx-util-Mxa6HuaG.js.map +0 -1
- package/es/_virtual/_commonjs-dynamic-modules.mjs +0 -5
- package/es/_virtual/pluralize.mjs +0 -3
- package/es/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/format-path/format-path.mjs +0 -11
- package/es/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/index.mjs +0 -4
- package/es/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/merge-model/merge-model.mjs +0 -22
- package/es/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/plural/plural.mjs +0 -30
- package/es/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/service-path-util/service-path-util.mjs +0 -187
- package/es/node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.mjs +0 -515
- package/es/panel-component/panel-container-group/index.d.ts +0 -28
- package/es/panel-component/panel-container-group/index.mjs +0 -20
- package/es/panel-component/panel-container-group/panel-container-group.controller.d.ts +0 -31
- package/es/panel-component/panel-container-group/panel-container-group.controller.mjs +0 -35
- package/es/panel-component/panel-container-group/panel-container-group.css +0 -1
- package/es/panel-component/panel-container-group/panel-container-group.d.ts +0 -28
- package/es/panel-component/panel-container-group/panel-container-group.mjs +0 -107
- package/es/panel-component/panel-container-group/panel-container-group.provider.d.ts +0 -15
- package/es/panel-component/panel-container-group/panel-container-group.provider.mjs +0 -21
- package/es/panel-component/panel-container-group/panel-container-group.state.d.ts +0 -12
- package/es/panel-component/panel-container-group/panel-container-group.state.mjs +0 -7
- package/es/panel-component/panel-tab-page/index.d.ts +0 -23
- package/es/panel-component/panel-tab-page/index.mjs +0 -12
- package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +0 -25
- package/es/panel-component/panel-tab-page/panel-tab-page.mjs +0 -62
- package/es/panel-component/panel-tab-page/panel-tab-page.provider.d.ts +0 -13
- package/es/panel-component/panel-tab-page/panel-tab-page.provider.mjs +0 -21
- package/lib/_virtual/_commonjs-dynamic-modules.cjs +0 -7
- package/lib/_virtual/pluralize.cjs +0 -5
- package/lib/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/format-path/format-path.cjs +0 -13
- package/lib/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/index.cjs +0 -14
- package/lib/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/merge-model/merge-model.cjs +0 -24
- package/lib/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/plural/plural.cjs +0 -33
- package/lib/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/service-path-util/service-path-util.cjs +0 -189
- package/lib/node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.cjs +0 -519
- package/lib/panel-component/panel-container-group/index.cjs +0 -27
- package/lib/panel-component/panel-container-group/panel-container-group.cjs +0 -109
- package/lib/panel-component/panel-container-group/panel-container-group.controller.cjs +0 -37
- package/lib/panel-component/panel-container-group/panel-container-group.css +0 -1
- package/lib/panel-component/panel-container-group/panel-container-group.provider.cjs +0 -23
- package/lib/panel-component/panel-container-group/panel-container-group.state.cjs +0 -9
- package/lib/panel-component/panel-tab-page/index.cjs +0 -17
- package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +0 -64
- package/lib/panel-component/panel-tab-page/panel-tab-page.provider.cjs +0 -23
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
function commonjsRequire(path) {
|
|
2
|
-
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export { commonjsRequire };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
function formatPath(path) {
|
|
2
|
-
// 合成路径,需要判断模型路径是否从 PSSYSAPPS 开始
|
|
3
|
-
if ((path === null || path === void 0 ? void 0 : path.indexOf('PSSYSAPPS/')) === 0) {
|
|
4
|
-
// 合成路径
|
|
5
|
-
const pos = path.indexOf('/');
|
|
6
|
-
return path.substring(path.indexOf('/', pos + 1));
|
|
7
|
-
}
|
|
8
|
-
return path;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { formatPath };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { mergeDeepLeft } from 'ramda';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 将预置的模型合并到当前模型中
|
|
5
|
-
*
|
|
6
|
-
* @author chitanda
|
|
7
|
-
* @date 2023-09-22 10:09:10
|
|
8
|
-
* @export
|
|
9
|
-
* @param {IModel[]} models
|
|
10
|
-
* @param {IModel} m
|
|
11
|
-
* @param {string} tag
|
|
12
|
-
*/
|
|
13
|
-
function mergeModel(models, m, tag) {
|
|
14
|
-
models.forEach(model => {
|
|
15
|
-
const item = m[model[tag]];
|
|
16
|
-
if (item) {
|
|
17
|
-
Object.assign(model, mergeDeepLeft(model, item));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { mergeModel };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import pluralize from '../../../../../../../pluralize@8.0.0/node_modules/pluralize/pluralize.mjs';
|
|
2
|
-
|
|
3
|
-
// 补充特殊转换规则
|
|
4
|
-
pluralize.addPluralRule(/(matr|vert|ind)ix|ex$/, '$1ices');
|
|
5
|
-
/**
|
|
6
|
-
* 英文转复数写法
|
|
7
|
-
*
|
|
8
|
-
* @author chitanda
|
|
9
|
-
* @date 2022-08-25 18:08:41
|
|
10
|
-
* @export
|
|
11
|
-
* @param {string} key
|
|
12
|
-
* @return {*} {string}
|
|
13
|
-
*/
|
|
14
|
-
function plural(key) {
|
|
15
|
-
return pluralize(key);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* 英文转复数写法并转全小写
|
|
19
|
-
*
|
|
20
|
-
* @author chitanda
|
|
21
|
-
* @date 2022-08-25 18:08:23
|
|
22
|
-
* @export
|
|
23
|
-
* @param {string} key
|
|
24
|
-
* @return {*} {string}
|
|
25
|
-
*/
|
|
26
|
-
function pluralLower(key) {
|
|
27
|
-
return plural(key).toLowerCase();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { plural, pluralLower };
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { pluralLower } from '../plural/plural.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 服务路径拼接工具
|
|
5
|
-
*
|
|
6
|
-
* @author chitanda
|
|
7
|
-
* @date 2022-08-22 21:08:52
|
|
8
|
-
* @export
|
|
9
|
-
* @class ServicePathUtil
|
|
10
|
-
*/
|
|
11
|
-
class ServicePathUtil {
|
|
12
|
-
constructor(appDataEntities, allDERss) {
|
|
13
|
-
this.appDataEntities = appDataEntities;
|
|
14
|
-
this.allDERss = allDERss;
|
|
15
|
-
/**
|
|
16
|
-
* 应用实体关系
|
|
17
|
-
*
|
|
18
|
-
* @author chitanda
|
|
19
|
-
* @date 2022-08-22 22:08:18
|
|
20
|
-
* @protected
|
|
21
|
-
* @type {Map<string, IAppDERS[]>} <应用实体 id, 应用实体父关系>
|
|
22
|
-
*/
|
|
23
|
-
this.entityRsMap = new Map();
|
|
24
|
-
/**
|
|
25
|
-
* 实体资源路径
|
|
26
|
-
*
|
|
27
|
-
* @author chitanda
|
|
28
|
-
* @date 2022-08-22 22:08:58
|
|
29
|
-
* @protected
|
|
30
|
-
* @type {Map<string, ServicePathItem[][]>}
|
|
31
|
-
*/
|
|
32
|
-
this.entityRsPathMap = new Map();
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* 根据应用主实体过滤从关系集合
|
|
36
|
-
*
|
|
37
|
-
* @author chitanda
|
|
38
|
-
* @date 2023-04-20 17:04:34
|
|
39
|
-
* @protected
|
|
40
|
-
* @param {string} id
|
|
41
|
-
* @return {*} {IAppDERS[]}
|
|
42
|
-
*/
|
|
43
|
-
filterDERSs(id) {
|
|
44
|
-
if (this.entityRsMap.has(id)) {
|
|
45
|
-
return this.entityRsMap.get(id);
|
|
46
|
-
}
|
|
47
|
-
const items = this.allDERss.filter(item => {
|
|
48
|
-
if (item.minorAppDataEntityId === id) {
|
|
49
|
-
return item;
|
|
50
|
-
}
|
|
51
|
-
return null;
|
|
52
|
-
});
|
|
53
|
-
if (items.length > 0) {
|
|
54
|
-
this.entityRsMap.set(id, items);
|
|
55
|
-
}
|
|
56
|
-
return items;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* 计算指定应用实体所有资源路径
|
|
60
|
-
*
|
|
61
|
-
* @author chitanda
|
|
62
|
-
* @date 2023-04-22 13:04:27
|
|
63
|
-
* @param {string} id
|
|
64
|
-
* @return {*} {string[]}
|
|
65
|
-
*/
|
|
66
|
-
calcRequestPaths(id) {
|
|
67
|
-
const paths = this.calcPaths(id);
|
|
68
|
-
return paths.map(path => {
|
|
69
|
-
return path.map(item => `${item.plural}/\${${item.lower}}`).join('/');
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* 计算指定实体所有资源路径
|
|
74
|
-
*
|
|
75
|
-
* @author chitanda
|
|
76
|
-
* @date 2023-04-22 13:04:36
|
|
77
|
-
* @protected
|
|
78
|
-
* @param {string} id
|
|
79
|
-
* @return {*} {ServicePathItem[][]} 返回顺序为 [祖父实体,爷爷实体,父实体,当前实体]
|
|
80
|
-
*/
|
|
81
|
-
calcPaths(id) {
|
|
82
|
-
const entityRef = this.appDataEntities.find(item => item.id === id);
|
|
83
|
-
if (!entityRef) {
|
|
84
|
-
throw new Error(`未找到实体 ${id}`);
|
|
85
|
-
}
|
|
86
|
-
const { codeName } = entityRef;
|
|
87
|
-
if (this.entityRsPathMap.has(codeName)) {
|
|
88
|
-
return this.entityRsPathMap.get(codeName);
|
|
89
|
-
}
|
|
90
|
-
const deRss = this.filterDERSs(id);
|
|
91
|
-
if (deRss) {
|
|
92
|
-
// 已经计算过的应用实体标识
|
|
93
|
-
const ids = [id];
|
|
94
|
-
const arr = this.calcDeepPath(ids, deRss);
|
|
95
|
-
this.deepFillPath(codeName, [codeName], arr);
|
|
96
|
-
let paths = this.entityRsPathMap.get(codeName);
|
|
97
|
-
if (paths) {
|
|
98
|
-
paths = this.sortPath(paths);
|
|
99
|
-
this.entityRsPathMap.set(codeName, paths);
|
|
100
|
-
return paths;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return [];
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* 计算递归资源路径
|
|
107
|
-
*
|
|
108
|
-
* @author chitanda
|
|
109
|
-
* @date 2023-08-23 14:08:39
|
|
110
|
-
* @protected
|
|
111
|
-
* @param {string[]} ids
|
|
112
|
-
* @param {IAppDERS[]} deRss
|
|
113
|
-
* @param {number} [num=0]
|
|
114
|
-
* @return {*} {ServicePathDeep[]}
|
|
115
|
-
*/
|
|
116
|
-
calcDeepPath(ids, deRss, num = 0) {
|
|
117
|
-
if (num > 10) {
|
|
118
|
-
throw new Error('服务路径计算超过最大层级 10');
|
|
119
|
-
}
|
|
120
|
-
num += 1;
|
|
121
|
-
const arr = [];
|
|
122
|
-
deRss.forEach(rs => {
|
|
123
|
-
if (ids.includes(rs.majorAppDataEntityId)) {
|
|
124
|
-
ibiz.log.warn('计算资源关系路径出现循环递归引用,触发实体:', rs.majorAppDataEntityId, '当前已计算过实体清单: ', ids);
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
const items = this.filterDERSs(rs.majorAppDataEntityId);
|
|
128
|
-
arr.push([
|
|
129
|
-
rs,
|
|
130
|
-
this.calcDeepPath([...ids, rs.majorAppDataEntityId], items, num),
|
|
131
|
-
]);
|
|
132
|
-
});
|
|
133
|
-
return arr;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* 递归填充计算所有资源路径
|
|
137
|
-
*
|
|
138
|
-
* @author chitanda
|
|
139
|
-
* @date 2022-08-22 22:08:04
|
|
140
|
-
* @protected
|
|
141
|
-
* @param {string} deCodeName
|
|
142
|
-
* @param {string[]} pathNames
|
|
143
|
-
* @param {ServicePathDeep[]} items
|
|
144
|
-
*/
|
|
145
|
-
deepFillPath(deCodeName, pathNames, items) {
|
|
146
|
-
items.forEach(item => {
|
|
147
|
-
const [rs, children] = item;
|
|
148
|
-
if (children.length > 0) {
|
|
149
|
-
this.deepFillPath(deCodeName, [...pathNames, rs.majorDECodeName], children);
|
|
150
|
-
}
|
|
151
|
-
if (!this.entityRsPathMap.has(deCodeName)) {
|
|
152
|
-
this.entityRsPathMap.set(deCodeName, []);
|
|
153
|
-
}
|
|
154
|
-
const arr = this.entityRsPathMap.get(deCodeName);
|
|
155
|
-
arr.push([
|
|
156
|
-
...pathNames.map(pathName => {
|
|
157
|
-
return {
|
|
158
|
-
codeName: pathName,
|
|
159
|
-
lower: pathName.toLowerCase(),
|
|
160
|
-
plural: pluralLower(pathName),
|
|
161
|
-
};
|
|
162
|
-
}),
|
|
163
|
-
{
|
|
164
|
-
codeName: rs.majorDECodeName,
|
|
165
|
-
lower: rs.majorDECodeName.toLowerCase(),
|
|
166
|
-
plural: pluralLower(rs.majorDECodeName),
|
|
167
|
-
},
|
|
168
|
-
].reverse());
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* 排序资源路径顺序
|
|
173
|
-
*
|
|
174
|
-
* @author chitanda
|
|
175
|
-
* @date 2022-08-22 22:08:44
|
|
176
|
-
* @protected
|
|
177
|
-
* @param {ServicePathItem[][]} paths
|
|
178
|
-
* @return {*} {ServicePathItem[][]}
|
|
179
|
-
*/
|
|
180
|
-
sortPath(paths) {
|
|
181
|
-
return paths.sort((a, b) => {
|
|
182
|
-
return b.length - a.length;
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export { ServicePathUtil };
|