bruce-models 1.9.4 → 1.9.6
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/bruce-models.umd.js
CHANGED
|
@@ -2041,11 +2041,11 @@
|
|
|
2041
2041
|
if (path.startsWith("${") && path.endsWith("}")) {
|
|
2042
2042
|
path = path.replace("${", "");
|
|
2043
2043
|
path = path.replace("}", "");
|
|
2044
|
-
// Split by dots.
|
|
2045
|
-
paths.push(exports.PathUtils.ParseLegacy(path));
|
|
2046
|
-
// Take string as is.
|
|
2047
|
-
paths.push([path]);
|
|
2048
2044
|
}
|
|
2045
|
+
// Split by dots.
|
|
2046
|
+
paths.push(exports.PathUtils.ParseLegacy(path));
|
|
2047
|
+
// Take string as is.
|
|
2048
|
+
paths.push([path]);
|
|
2049
2049
|
// Split by backslashes.
|
|
2050
2050
|
paths.push(exports.PathUtils.Parse(path));
|
|
2051
2051
|
return paths;
|
|
@@ -2180,16 +2180,19 @@
|
|
|
2180
2180
|
let value;
|
|
2181
2181
|
switch (field.type) {
|
|
2182
2182
|
case EValueType.Gradient:
|
|
2183
|
-
value =
|
|
2183
|
+
value = GetGradientValue(field.value, entity);
|
|
2184
2184
|
break;
|
|
2185
2185
|
case EValueType.Color:
|
|
2186
2186
|
case EValueType.Input:
|
|
2187
|
-
value =
|
|
2187
|
+
value = GetInputValue(field.value, entity);
|
|
2188
2188
|
break;
|
|
2189
2189
|
case EValueType.Mapping:
|
|
2190
|
-
value =
|
|
2190
|
+
value = GetMappingValue(field.value, entity);
|
|
2191
2191
|
break;
|
|
2192
2192
|
}
|
|
2193
|
+
if (value != "") {
|
|
2194
|
+
value = Number(value);
|
|
2195
|
+
}
|
|
2193
2196
|
if (value || value == 0) {
|
|
2194
2197
|
return value;
|
|
2195
2198
|
}
|