@ibiz-template/model-helper 0.1.20 → 0.1.21
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 +18 -0
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/model-util.d.ts.map +1 -1
- package/out/model-util.js +20 -0
- package/package.json +3 -3
- package/src/model-util.ts +19 -0
package/dist/index.esm.js
CHANGED
|
@@ -14943,6 +14943,24 @@ var ModelUtil = class {
|
|
|
14943
14943
|
*/
|
|
14944
14944
|
async init() {
|
|
14945
14945
|
await this.getAppModel();
|
|
14946
|
+
{
|
|
14947
|
+
const { cache } = this.appModel;
|
|
14948
|
+
if (cache) {
|
|
14949
|
+
const views = cache.getPSAppViews;
|
|
14950
|
+
if (views) {
|
|
14951
|
+
views.forEach((item) => {
|
|
14952
|
+
item.path = item.dynaModelFilePath;
|
|
14953
|
+
const appPath = this.calcAppPath(item.path);
|
|
14954
|
+
this.modelCache.set(appPath, item);
|
|
14955
|
+
});
|
|
14956
|
+
if (this.appModel.getAllPSAppViews == null) {
|
|
14957
|
+
this.appModel.getAllPSAppViews = views;
|
|
14958
|
+
} else {
|
|
14959
|
+
this.appModel.getAllPSAppViews.push(...views);
|
|
14960
|
+
}
|
|
14961
|
+
}
|
|
14962
|
+
}
|
|
14963
|
+
}
|
|
14946
14964
|
const allDataEntities = this.appModel.getAllPSAppDataEntities || [];
|
|
14947
14965
|
allDataEntities.forEach((item) => {
|
|
14948
14966
|
item.id = calcUniqueTag(item, false);
|