bruce-models 6.7.2 → 6.7.3
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 +6 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +6 -2
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +5 -1
- package/dist/lib/entity/entity.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
|
@@ -4239,6 +4239,7 @@ var Entity;
|
|
|
4239
4239
|
* @returns
|
|
4240
4240
|
*/
|
|
4241
4241
|
function CalculateName(params) {
|
|
4242
|
+
var _a, _b;
|
|
4242
4243
|
const { entity, type, defaultToId = true } = params;
|
|
4243
4244
|
const attrStr = type.DisplayNameAttributePath;
|
|
4244
4245
|
if (attrStr) {
|
|
@@ -4247,7 +4248,7 @@ var Entity;
|
|
|
4247
4248
|
const pathStr = attrPaths[i];
|
|
4248
4249
|
const path = PathUtils.Parse(pathStr);
|
|
4249
4250
|
const name = Entity.GetValue({
|
|
4250
|
-
entity: entity,
|
|
4251
|
+
entity: entity || {},
|
|
4251
4252
|
path
|
|
4252
4253
|
});
|
|
4253
4254
|
if (name && typeof name != "object") {
|
|
@@ -4255,6 +4256,9 @@ var Entity;
|
|
|
4255
4256
|
}
|
|
4256
4257
|
}
|
|
4257
4258
|
}
|
|
4259
|
+
if (((_a = entity === null || entity === void 0 ? void 0 : entity.Bruce) === null || _a === void 0 ? void 0 : _a.Name) && ((_b = entity === null || entity === void 0 ? void 0 : entity.Bruce) === null || _b === void 0 ? void 0 : _b.Name) !== "Unnamed Entity") {
|
|
4260
|
+
return entity.Bruce.Name;
|
|
4261
|
+
}
|
|
4258
4262
|
return defaultToId ? entity.Bruce.ID : null;
|
|
4259
4263
|
}
|
|
4260
4264
|
Entity.CalculateName = CalculateName;
|
|
@@ -16419,7 +16423,7 @@ var Tracking;
|
|
|
16419
16423
|
})(Tracking || (Tracking = {}));
|
|
16420
16424
|
|
|
16421
16425
|
// This is updated with the package.json version on build.
|
|
16422
|
-
const VERSION = "6.7.
|
|
16426
|
+
const VERSION = "6.7.3";
|
|
16423
16427
|
|
|
16424
16428
|
export { VERSION, Assembly, 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, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking };
|
|
16425
16429
|
//# sourceMappingURL=bruce-models.es5.js.map
|