@fibery/views 10.5.0 → 10.6.0
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/lib/views.js +11 -4
- package/package.json +3 -3
package/lib/views.js
CHANGED
|
@@ -1024,10 +1024,17 @@ const replaceNamesWithIdsInSmartFolder = (schema, smartFolder) => visitSmartFold
|
|
|
1024
1024
|
return keyPart;
|
|
1025
1025
|
}
|
|
1026
1026
|
const [type, field] = name.split(":");
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1027
|
+
if (!field) {
|
|
1028
|
+
return keyPart;
|
|
1029
|
+
}
|
|
1030
|
+
if (!(type in schema.typeObjectsByName)) {
|
|
1031
|
+
return keyPart;
|
|
1030
1032
|
}
|
|
1033
|
+
const typeObject = schema.typeObjectsByName[type];
|
|
1034
|
+
if (!(field in typeObject.fieldObjectsByName)) {
|
|
1035
|
+
return keyPart;
|
|
1036
|
+
}
|
|
1037
|
+
const fieldObject = typeObject.fieldObjectsByName[field];
|
|
1031
1038
|
return `${unitType}_${fieldObject.id}`;
|
|
1032
1039
|
}).filter(Boolean).join("|");
|
|
1033
1040
|
}
|
|
@@ -1060,7 +1067,7 @@ const replaceIdsWithNamesInSmartFolder = (schema, smartFolder) => visitSmartFold
|
|
|
1060
1067
|
}
|
|
1061
1068
|
const fieldObject = fieldObjectsById[fieldId];
|
|
1062
1069
|
if (!fieldObject) {
|
|
1063
|
-
return
|
|
1070
|
+
return keyPart;
|
|
1064
1071
|
}
|
|
1065
1072
|
return `${unitType}_${fieldObject.holderType}:${fieldObject.name}`;
|
|
1066
1073
|
}).filter(Boolean).join("|");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/views",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.0",
|
|
4
4
|
"description": "Operations on view objects",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Fibery",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"microbundle": "0.15.1",
|
|
21
21
|
"@fibery/babel-preset": "7.4.0",
|
|
22
22
|
"@fibery/eslint-config": "8.6.0",
|
|
23
|
-
"@fibery/
|
|
24
|
-
"@fibery/
|
|
23
|
+
"@fibery/schema": "10.2.1",
|
|
24
|
+
"@fibery/expression-utils": "9.0.5"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@fibery/expression-utils": "^9.0.5",
|