bruce-models 2.9.7 → 2.9.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.
@@ -2271,6 +2271,7 @@
2271
2271
  }
2272
2272
  Entity.CalculateName = CalculateName;
2273
2273
  function GetList(params) {
2274
+ var _a;
2274
2275
  return __awaiter(this, void 0, void 0, function* () {
2275
2276
  let { api, filter, req: reqParams, viaCdn, viaCdnCacheToken } = params;
2276
2277
  if (!api) {
@@ -2281,8 +2282,9 @@
2281
2282
  requestFilter = Object.assign({}, filter.entityTypeConditions);
2282
2283
  }
2283
2284
  if (filter.layerIds != null && filter.layerIds.length > 0) {
2285
+ const operator = (_a = filter.layerIdsOperator) !== null && _a !== void 0 ? _a : "equals";
2284
2286
  requestFilter["Bruce.Layer.ID"] = {
2285
- equals: filter.layerIds
2287
+ [operator]: filter.layerIds
2286
2288
  };
2287
2289
  }
2288
2290
  if (filter.bounds) {
@@ -5011,6 +5013,8 @@
5011
5013
  pageIndex: curCell.FetchPageIndex,
5012
5014
  entityTypeId: this.typeId,
5013
5015
  layerIds: this.tagIds,
5016
+ // Any tag specified will be allowed.
5017
+ layerIdsOperator: "in",
5014
5018
  bounds: curCell.GetBounds(),
5015
5019
  sortOrder: exports.Api.ESortOrder.Asc,
5016
5020
  entityTypeConditions: this.attrFilter
@@ -8699,40 +8703,40 @@
8699
8703
  window[paramsId] = pluginParams ? pluginParams : {};
8700
8704
  const disposeId = exports.ObjectUtils.UId();
8701
8705
  const elementId = exports.ObjectUtils.UId();
8702
- let script = `
8703
- function run() {
8704
- ${fileContent}
8705
-
8706
- const paramsId = "${paramsId}";
8707
- const containerId = "${containerId}";
8708
- let container;
8709
- if (containerId) {
8710
- container = document.getElementById("${containerId}");
8711
- }
8712
-
8713
- let pluginHTML = null;
8714
- if (container) {
8715
- pluginHTML = document.createElement("div");
8716
- pluginHTML.id = "${elementId}";
8717
- container.appendChild(pluginHTML);
8718
- }
8719
-
8720
- {TEMPLATE_CODE}
8721
- const params = window["${paramsId}"];
8722
-
8723
- window["${disposeId}"] = Run({
8724
- element: pluginHTML,
8725
- container: container,
8726
- pluginParams: params
8727
- });
8728
- }
8729
- run();
8706
+ let script = `
8707
+ function run() {
8708
+ ${fileContent}
8709
+
8710
+ const paramsId = "${paramsId}";
8711
+ const containerId = "${containerId}";
8712
+ let container;
8713
+ if (containerId) {
8714
+ container = document.getElementById("${containerId}");
8715
+ }
8716
+
8717
+ let pluginHTML = null;
8718
+ if (container) {
8719
+ pluginHTML = document.createElement("div");
8720
+ pluginHTML.id = "${elementId}";
8721
+ container.appendChild(pluginHTML);
8722
+ }
8723
+
8724
+ {TEMPLATE_CODE}
8725
+ const params = window["${paramsId}"];
8726
+
8727
+ window["${disposeId}"] = Run({
8728
+ element: pluginHTML,
8729
+ container: container,
8730
+ pluginParams: params
8731
+ });
8732
+ }
8733
+ run();
8730
8734
  `;
8731
8735
  if (script.includes("var template")) {
8732
- script = script.replace("{TEMPLATE_CODE}", `
8733
- if (pluginHTML && template) {
8734
- pluginHTML.innerHTML = template;
8735
- }
8736
+ script = script.replace("{TEMPLATE_CODE}", `
8737
+ if (pluginHTML && template) {
8738
+ pluginHTML.innerHTML = template;
8739
+ }
8736
8740
  `);
8737
8741
  }
8738
8742
  else {
@@ -8870,7 +8874,7 @@
8870
8874
  DataSource.GetList = GetList;
8871
8875
  })(exports.DataSource || (exports.DataSource = {}));
8872
8876
 
8873
- const VERSION = "2.9.7";
8877
+ const VERSION = "2.9.9";
8874
8878
 
8875
8879
  exports.VERSION = VERSION;
8876
8880
  exports.AbstractApi = AbstractApi;