bruce-models 5.1.0 → 5.1.2
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 +17 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +17 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/calculator/calculator.js +16 -0
- package/dist/lib/calculator/calculator.js.map +1 -1
- package/dist/lib/plugin/plugin.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/plugin/plugin.d.ts +2 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -4478,6 +4478,22 @@ var Calculator;
|
|
|
4478
4478
|
if (mapValue == eValue) {
|
|
4479
4479
|
return option.appliedValue;
|
|
4480
4480
|
}
|
|
4481
|
+
// Case where Entity value is a boolean but the mapping value is a string.
|
|
4482
|
+
// Common as mapping value is typically a user-entered string.
|
|
4483
|
+
else if (typeof eValue === "boolean" && typeof mapValue === "string") {
|
|
4484
|
+
const eValueStr = eValue ? "true" : "false";
|
|
4485
|
+
if (mapValue == eValueStr) {
|
|
4486
|
+
return option.appliedValue;
|
|
4487
|
+
}
|
|
4488
|
+
}
|
|
4489
|
+
// Handling possible case where the opposite is true.
|
|
4490
|
+
// Have not seen this happen yet, but preparing for any future cases.
|
|
4491
|
+
else if (typeof mapValue === "boolean" && typeof eValue === "string") {
|
|
4492
|
+
const mapValueStr = mapValue ? "true" : "false";
|
|
4493
|
+
if (mapValueStr == eValue) {
|
|
4494
|
+
return option.appliedValue;
|
|
4495
|
+
}
|
|
4496
|
+
}
|
|
4481
4497
|
}
|
|
4482
4498
|
}
|
|
4483
4499
|
}
|
|
@@ -14477,7 +14493,7 @@ var DataSource;
|
|
|
14477
14493
|
})(DataSource || (DataSource = {}));
|
|
14478
14494
|
|
|
14479
14495
|
// This is updated with the package.json version on build.
|
|
14480
|
-
const VERSION = "5.1.
|
|
14496
|
+
const VERSION = "5.1.2";
|
|
14481
14497
|
|
|
14482
14498
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, 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, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
14483
14499
|
//# sourceMappingURL=bruce-models.es5.js.map
|