bruce-models 3.0.7 → 3.0.9

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.
@@ -1238,20 +1238,16 @@ var CamApi;
1238
1238
  this.setBaseUrl();
1239
1239
  }
1240
1240
  setBaseUrl() {
1241
- let codeWord = "cam";
1242
- let url = "https://<CODEWORD>.nextspace";
1241
+ let url = "https://guardian.nextspace";
1243
1242
  const env = this.env.toUpperCase();
1244
1243
  switch (env) {
1245
1244
  case Api.EEnv.DEV:
1246
- codeWord = "guardian";
1247
1245
  url += "-dev.net/";
1248
1246
  break;
1249
1247
  case Api.EEnv.STG:
1250
- codeWord = "guardian";
1251
1248
  url += "-stg.net/";
1252
1249
  break;
1253
1250
  case Api.EEnv.UAT:
1254
- codeWord = "guardian";
1255
1251
  url += "-uat.net/";
1256
1252
  break;
1257
1253
  case Api.EEnv.PROD:
@@ -1260,7 +1256,6 @@ var CamApi;
1260
1256
  default:
1261
1257
  throw ("Specified Environment is not valid. SuppliedEnv=" + env);
1262
1258
  }
1263
- url = url.replace("<CODEWORD>", codeWord);
1264
1259
  this.baseUrl = url;
1265
1260
  }
1266
1261
  GetBaseUrl() {
@@ -1384,20 +1379,16 @@ var IdmApi;
1384
1379
  this.setBaseUrl();
1385
1380
  }
1386
1381
  setBaseUrl() {
1387
- let codeWord = "idm";
1388
- let url = "https://<CODEWORD>.nextspace";
1382
+ let url = "https://guardian.nextspace";
1389
1383
  const env = this.env.toUpperCase();
1390
1384
  switch (env) {
1391
1385
  case Api.EEnv.DEV:
1392
- codeWord = "guardian";
1393
1386
  url += "-dev.net/";
1394
1387
  break;
1395
1388
  case Api.EEnv.STG:
1396
- codeWord = "guardian";
1397
1389
  url += "-stg.net/";
1398
1390
  break;
1399
1391
  case Api.EEnv.UAT:
1400
- codeWord = "guardian";
1401
1392
  url += "-uat.net/";
1402
1393
  break;
1403
1394
  case Api.EEnv.PROD:
@@ -1406,7 +1397,6 @@ var IdmApi;
1406
1397
  default:
1407
1398
  throw ("Specified Environment is not valid. SuppliedEnv=" + env);
1408
1399
  }
1409
- url = url.replace("<CODEWORD>", codeWord);
1410
1400
  this.baseUrl = url;
1411
1401
  }
1412
1402
  GetBaseUrl() {
@@ -8996,40 +8986,40 @@ var Plugin;
8996
8986
  window[paramsId] = pluginParams ? pluginParams : {};
8997
8987
  const disposeId = ObjectUtils.UId();
8998
8988
  const elementId = ObjectUtils.UId();
8999
- let script = `
9000
- function run() {
9001
- ${fileContent}
9002
-
9003
- const paramsId = "${paramsId}";
9004
- const containerId = "${containerId}";
9005
- let container;
9006
- if (containerId) {
9007
- container = document.getElementById("${containerId}");
9008
- }
9009
-
9010
- let pluginHTML = null;
9011
- if (container) {
9012
- pluginHTML = document.createElement("div");
9013
- pluginHTML.id = "${elementId}";
9014
- container.appendChild(pluginHTML);
9015
- }
9016
-
9017
- {TEMPLATE_CODE}
9018
- const params = window["${paramsId}"];
9019
-
9020
- window["${disposeId}"] = Run({
9021
- element: pluginHTML,
9022
- container: container,
9023
- pluginParams: params
9024
- });
9025
- }
9026
- run();
8989
+ let script = `
8990
+ function run() {
8991
+ ${fileContent}
8992
+
8993
+ const paramsId = "${paramsId}";
8994
+ const containerId = "${containerId}";
8995
+ let container;
8996
+ if (containerId) {
8997
+ container = document.getElementById("${containerId}");
8998
+ }
8999
+
9000
+ let pluginHTML = null;
9001
+ if (container) {
9002
+ pluginHTML = document.createElement("div");
9003
+ pluginHTML.id = "${elementId}";
9004
+ container.appendChild(pluginHTML);
9005
+ }
9006
+
9007
+ {TEMPLATE_CODE}
9008
+ const params = window["${paramsId}"];
9009
+
9010
+ window["${disposeId}"] = Run({
9011
+ element: pluginHTML,
9012
+ container: container,
9013
+ pluginParams: params
9014
+ });
9015
+ }
9016
+ run();
9027
9017
  `;
9028
9018
  if (script.includes("var template")) {
9029
- script = script.replace("{TEMPLATE_CODE}", `
9030
- if (pluginHTML && template) {
9031
- pluginHTML.innerHTML = template;
9032
- }
9019
+ script = script.replace("{TEMPLATE_CODE}", `
9020
+ if (pluginHTML && template) {
9021
+ pluginHTML.innerHTML = template;
9022
+ }
9033
9023
  `);
9034
9024
  }
9035
9025
  else {
@@ -9168,7 +9158,7 @@ var DataSource;
9168
9158
  DataSource.GetList = GetList;
9169
9159
  })(DataSource || (DataSource = {}));
9170
9160
 
9171
- const VERSION = "3.0.7";
9161
+ const VERSION = "3.0.9";
9172
9162
 
9173
9163
  export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, CamApi, IdmApi, 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, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
9174
9164
  //# sourceMappingURL=bruce-models.es5.js.map