@ibiz-template/model-helper 0.1.12-dev.0 → 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/dist/index.esm.js +11 -2
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/model-util.d.ts +1 -0
- package/out/model-util.d.ts.map +1 -1
- package/out/model-util.js +8 -0
- package/out/utils/plural/plural.d.ts.map +1 -1
- package/out/utils/plural/plural.js +2 -0
- package/out/utils/service-path-util/service-path-util.d.ts.map +1 -1
- package/out/utils/service-path-util/service-path-util.js +4 -2
- package/package.json +3 -3
- package/src/model-util.ts +9 -0
- package/src/utils/plural/plural.ts +3 -0
- package/src/utils/service-path-util/service-path-util.ts +4 -2
package/dist/index.esm.js
CHANGED
|
@@ -14702,6 +14702,7 @@ var DSLHelper = class {
|
|
|
14702
14702
|
|
|
14703
14703
|
// src/utils/plural/plural.ts
|
|
14704
14704
|
var import_pluralize = __toESM(require_pluralize(), 1);
|
|
14705
|
+
import_pluralize.default.addPluralRule(/(matr|vert|ind)ix|ex$/, "$1ices");
|
|
14705
14706
|
function plural(key) {
|
|
14706
14707
|
return (0, import_pluralize.default)(key);
|
|
14707
14708
|
}
|
|
@@ -14830,9 +14831,11 @@ var ServicePathUtil = class {
|
|
|
14830
14831
|
);
|
|
14831
14832
|
return;
|
|
14832
14833
|
}
|
|
14833
|
-
ids.push(rs.majorAppDataEntityId);
|
|
14834
14834
|
const items = this.filterDERSs(rs.majorAppDataEntityId);
|
|
14835
|
-
arr.push([
|
|
14835
|
+
arr.push([
|
|
14836
|
+
rs,
|
|
14837
|
+
this.calcDeepPath([...ids, rs.majorAppDataEntityId], items, num)
|
|
14838
|
+
]);
|
|
14836
14839
|
});
|
|
14837
14840
|
return arr;
|
|
14838
14841
|
}
|
|
@@ -14911,6 +14914,7 @@ var ModelUtil = class {
|
|
|
14911
14914
|
* @author chitanda
|
|
14912
14915
|
* @date 2023-04-13 21:04:21
|
|
14913
14916
|
* @param {string}appId 应用标识
|
|
14917
|
+
* @param {string} modelTag
|
|
14914
14918
|
* @param {(url: string) => Promise<IModel>} get 模型加载方法
|
|
14915
14919
|
* @param {boolean} hub 是否为 hub 应用基座
|
|
14916
14920
|
*/
|
|
@@ -14957,6 +14961,11 @@ var ModelUtil = class {
|
|
|
14957
14961
|
allDataEntities,
|
|
14958
14962
|
allAppDERSs
|
|
14959
14963
|
);
|
|
14964
|
+
if (this.appModel.getAllPSAppLans && this.appModel.getAllPSAppLans.length > 0) {
|
|
14965
|
+
ibiz.env.isEnableMultiLan = true;
|
|
14966
|
+
} else {
|
|
14967
|
+
ibiz.env.isEnableMultiLan = false;
|
|
14968
|
+
}
|
|
14960
14969
|
}
|
|
14961
14970
|
/**
|
|
14962
14971
|
* 获取应用模型
|