bruce-models 4.6.4 → 4.6.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/bruce-models.es5.js +11 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +11 -5
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/calculator/calculator.js +10 -4
- package/dist/lib/calculator/calculator.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -4213,12 +4213,12 @@ function parseLegacyPath(path) {
|
|
|
4213
4213
|
path = path.replace("${", "");
|
|
4214
4214
|
path = path.replace("}", "");
|
|
4215
4215
|
}
|
|
4216
|
+
// Split by backslashes.
|
|
4217
|
+
paths.push(PathUtils.Parse(path));
|
|
4216
4218
|
// Split by dots.
|
|
4217
4219
|
paths.push(PathUtils.ParseLegacy(path));
|
|
4218
4220
|
// Take string as is.
|
|
4219
4221
|
paths.push([path]);
|
|
4220
|
-
// Split by backslashes.
|
|
4221
|
-
paths.push(PathUtils.Parse(path));
|
|
4222
4222
|
// Remove duplicates.
|
|
4223
4223
|
const tmpPaths = [];
|
|
4224
4224
|
for (let i = 0; i < paths.length; i++) {
|
|
@@ -4512,11 +4512,17 @@ var Calculator;
|
|
|
4512
4512
|
entity: entity,
|
|
4513
4513
|
path: attrPath
|
|
4514
4514
|
});
|
|
4515
|
-
|
|
4515
|
+
let isValueNum = !isNaN(+eValue);
|
|
4516
|
+
if (eValue == null) {
|
|
4517
|
+
isValueNum = false;
|
|
4518
|
+
}
|
|
4516
4519
|
for (let i = 0; i < value.values.length; i++) {
|
|
4517
4520
|
const option = value.values[i];
|
|
4518
4521
|
const mapValue = option.fieldValue;
|
|
4519
|
-
|
|
4522
|
+
let isMapValueNum = !isNaN(+mapValue);
|
|
4523
|
+
if (isMapValueNum == null) {
|
|
4524
|
+
isMapValueNum = false;
|
|
4525
|
+
}
|
|
4520
4526
|
if (isValueNum && (isMapValueNum || mapValue.includes("-"))) {
|
|
4521
4527
|
if (+mapValue == +eValue) {
|
|
4522
4528
|
return option.appliedValue;
|
|
@@ -13796,7 +13802,7 @@ var DataSource;
|
|
|
13796
13802
|
})(DataSource || (DataSource = {}));
|
|
13797
13803
|
|
|
13798
13804
|
// This is updated with the package.json version on build.
|
|
13799
|
-
const VERSION = "4.6.
|
|
13805
|
+
const VERSION = "4.6.5";
|
|
13800
13806
|
|
|
13801
13807
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
13802
13808
|
//# sourceMappingURL=bruce-models.es5.js.map
|