@esri/solutions-components 0.8.27 → 0.8.29

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.
Files changed (61) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +10 -1
  2. package/dist/cjs/calcite-alert_4.cjs.entry.js +3 -3
  3. package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +1 -1
  4. package/dist/cjs/calcite-flow_6.cjs.entry.js +1 -1
  5. package/dist/cjs/card-manager_3.cjs.entry.js +25 -22
  6. package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
  7. package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
  8. package/dist/cjs/{downloadUtils-5349717a.js → downloadUtils-83bf79ba.js} +2 -2
  9. package/dist/cjs/feature-list.cjs.entry.js +3 -3
  10. package/dist/cjs/{index.es-aa69b58b.js → index.es-4e523f8b.js} +2 -2
  11. package/dist/cjs/map-select-tools_3.cjs.entry.js +5 -5
  12. package/dist/cjs/{mapViewUtils-6e46ba33.js → mapViewUtils-911698e5.js} +31 -17
  13. package/dist/cjs/{popupUtils-3e65296c.js → popupUtils-e3fa775b.js} +1 -1
  14. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  15. package/dist/collection/components/floor-filter/floor-filter.js +10 -1
  16. package/dist/collection/components/layer-table/layer-table.js +24 -21
  17. package/dist/collection/components/map-select-tools/map-select-tools.js +2 -2
  18. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  19. package/dist/collection/utils/queryUtils.js +30 -0
  20. package/dist/collection/utils/queryUtils.ts +41 -0
  21. package/dist/components/floor-filter2.js +10 -1
  22. package/dist/components/layer-table2.js +24 -21
  23. package/dist/components/map-select-tools2.js +2 -2
  24. package/dist/components/queryUtils.js +31 -17
  25. package/dist/components/refine-selection2.js +1 -1
  26. package/dist/esm/basemap-gallery_7.entry.js +10 -1
  27. package/dist/esm/calcite-alert_4.entry.js +3 -3
  28. package/dist/esm/calcite-dropdown-group_2.entry.js +1 -1
  29. package/dist/esm/calcite-flow_6.entry.js +1 -1
  30. package/dist/esm/card-manager_3.entry.js +25 -22
  31. package/dist/esm/crowdsource-manager.entry.js +1 -1
  32. package/dist/esm/crowdsource-reporter.entry.js +1 -1
  33. package/dist/esm/{downloadUtils-5fa0d437.js → downloadUtils-571a502d.js} +2 -2
  34. package/dist/esm/feature-list.entry.js +3 -3
  35. package/dist/esm/{index.es-57c15c9b.js → index.es-2f9f04c5.js} +2 -2
  36. package/dist/esm/map-select-tools_3.entry.js +5 -5
  37. package/dist/esm/{mapViewUtils-4618ddb8.js → mapViewUtils-b8deb4ae.js} +31 -17
  38. package/dist/esm/{popupUtils-650b6bba.js → popupUtils-17193415.js} +1 -1
  39. package/dist/esm/public-notification.entry.js +2 -2
  40. package/dist/solutions-components/{p-81747268.entry.js → p-061da95a.entry.js} +1 -1
  41. package/dist/solutions-components/{p-e1662e32.entry.js → p-16fb8296.entry.js} +1 -1
  42. package/dist/solutions-components/p-1bdf0ba0.entry.js +6 -0
  43. package/dist/solutions-components/{p-a1037b19.js → p-2e23ac2c.js} +1 -1
  44. package/dist/solutions-components/{p-66722851.entry.js → p-2f7bfd8d.entry.js} +1 -1
  45. package/dist/solutions-components/p-327577d1.entry.js +6 -0
  46. package/dist/solutions-components/{p-bfdabb9d.entry.js → p-51d5532f.entry.js} +1 -1
  47. package/dist/solutions-components/{p-6f69de4d.js → p-52dba022.js} +2 -2
  48. package/dist/solutions-components/{p-24bf45b7.js → p-57eeed77.js} +1 -1
  49. package/dist/solutions-components/p-5aaa05ef.js +36 -0
  50. package/dist/solutions-components/{p-05b3a5d9.entry.js → p-61bf98bc.entry.js} +1 -1
  51. package/dist/solutions-components/{p-296375d3.entry.js → p-bb90a138.entry.js} +1 -1
  52. package/dist/solutions-components/p-bda54b12.entry.js +6 -0
  53. package/dist/solutions-components/{p-cd694107.entry.js → p-c21a6940.entry.js} +1 -1
  54. package/dist/solutions-components/solutions-components.esm.js +1 -1
  55. package/dist/solutions-components/utils/queryUtils.ts +41 -0
  56. package/dist/types/utils/queryUtils.d.ts +16 -0
  57. package/package.json +1 -1
  58. package/dist/solutions-components/p-1f4b174f.entry.js +0 -6
  59. package/dist/solutions-components/p-2a6db6e8.entry.js +0 -6
  60. package/dist/solutions-components/p-583e5dd0.js +0 -36
  61. package/dist/solutions-components/p-b656b73e.entry.js +0 -6
@@ -137,15 +137,19 @@ const FloorFilter = class {
137
137
  //
138
138
  //--------------------------------------------------------------------------
139
139
  async mapViewWatchHandler() {
140
+ console.log("mapViewWatchHandler FF");
140
141
  const webMap = this.mapView.map;
141
142
  await webMap.when(() => {
143
+ console.log("webMap.when FF");
142
144
  if (this.floorFilterWidget) {
143
145
  this.floorFilterWidget.destroy();
144
146
  this.floorFilterWidget = undefined;
147
+ console.log("floorFilterWidget destroyed");
145
148
  }
146
149
  if (this._floorFilterElement) {
147
150
  this._floorFilterElement.remove();
148
151
  this._floorFilterElement = document.createElement("div");
152
+ console.log("this._floorFilterElement created");
149
153
  }
150
154
  this._initFloorFilter(this.mapView, webMap);
151
155
  });
@@ -162,7 +166,7 @@ const FloorFilter = class {
162
166
  return this._initModules();
163
167
  }
164
168
  render() {
165
- return (index.h(index.Host, { key: '98769446b20d8a9432b571b5653abbc6613bdfe5' }, index.h("div", { key: '6606a2593fec1885fc02b07a168bdea43e7f864a', ref: (el) => { this._floorFilterElement = el; } })));
169
+ return (index.h(index.Host, { key: 'df3c419f3eaf30590c44c4919f0eeddfc333b81d' }, index.h("div", { key: '8496099f3bc35f34db6e47f73870ead9144df0a4', ref: (el) => { this._floorFilterElement = el; } })));
166
170
  }
167
171
  //--------------------------------------------------------------------------
168
172
  //
@@ -189,6 +193,11 @@ const FloorFilter = class {
189
193
  */
190
194
  _initFloorFilter(view, webMap) {
191
195
  var _a, _b, _c;
196
+ console.log("_initFloorFilter");
197
+ console.log(`view: ${view}`);
198
+ console.log(`this.enabled: ${this.enabled}`);
199
+ console.log(`this.FloorFilter: ${this.FloorFilter}`);
200
+ console.log(`webMap?.floorInfo: ${webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo}`);
192
201
  if (view && this.enabled && this.FloorFilter && (webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo)) {
193
202
  this.floorFilterWidget = new this.FloorFilter({
194
203
  container: this._floorFilterElement,
@@ -16,15 +16,15 @@ const openCloseComponent = require('./openCloseComponent-6a283ac3.js');
16
16
  const t9n = require('./t9n-9d199056.js');
17
17
  const resources = require('./resources-6146eb17.js');
18
18
  const locale$1 = require('./locale-48d76c59.js');
19
- const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
20
- const popupUtils = require('./popupUtils-3e65296c.js');
19
+ const mapViewUtils = require('./mapViewUtils-911698e5.js');
20
+ const popupUtils = require('./popupUtils-e3fa775b.js');
21
21
  require('./guid-a7528dfa.js');
22
22
  require('./resources-1c0e54c1.js');
23
23
  require('./key-7ed07912.js');
24
24
  require('./observers-4fa351d9.js');
25
25
  require('./esri-loader-fce6a9cb.js');
26
26
  require('./interfaces-7cd0a48a.js');
27
- require('./downloadUtils-5349717a.js');
27
+ require('./downloadUtils-83bf79ba.js');
28
28
  require('./solution-resource-a577e84f.js');
29
29
  require('./index-f64944ad.js');
30
30
  require('./restHelpersGet-dbaa28df.js');
@@ -11,7 +11,7 @@ const index = require('./index-79b35510.js');
11
11
  const observers = require('./observers-4fa351d9.js');
12
12
  const resources = require('./resources-fa37e40f.js');
13
13
  const locale = require('./locale-48d76c59.js');
14
- const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
14
+ const mapViewUtils = require('./mapViewUtils-911698e5.js');
15
15
  const publicNotificationStore = require('./publicNotificationStore-3bfbbed3.js');
16
16
  require('./esri-loader-fce6a9cb.js');
17
17
  require('./interfaces-7cd0a48a.js');
@@ -16,7 +16,7 @@ const locale = require('./locale-5efdf085.js');
16
16
  const t9n = require('./t9n-9d199056.js');
17
17
  const resources = require('./resources-cb14bafc.js');
18
18
  const locale$1 = require('./locale-48d76c59.js');
19
- const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
19
+ const mapViewUtils = require('./mapViewUtils-911698e5.js');
20
20
  require('./guid-a7528dfa.js');
21
21
  require('./resources-1c0e54c1.js');
22
22
  require('./browser-a96d0614.js');
@@ -9,8 +9,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-79b35510.js');
11
11
  const locale = require('./locale-48d76c59.js');
12
- const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
13
- const downloadUtils = require('./downloadUtils-5349717a.js');
12
+ const mapViewUtils = require('./mapViewUtils-911698e5.js');
13
+ const downloadUtils = require('./downloadUtils-83bf79ba.js');
14
14
  require('./esri-loader-fce6a9cb.js');
15
15
  require('./interfaces-7cd0a48a.js');
16
16
  require('./solution-resource-a577e84f.js');
@@ -258,6 +258,7 @@ const LayerTable = class {
258
258
  this._initLayerExpressions();
259
259
  this._initToolInfos();
260
260
  this._updateToolbar();
261
+ console.log("mapInfoWatchHandler");
261
262
  await this._sortTable();
262
263
  }
263
264
  /**
@@ -301,6 +302,10 @@ const LayerTable = class {
301
302
  if (this._selectAllActive && this.selectedIds.length !== this._allIds.length) {
302
303
  this._selectAllActive = false;
303
304
  }
305
+ if (this.selectedIds.length > 0) {
306
+ this._table.rowHighlightIds.removeAll();
307
+ this._table.rowHighlightIds.add(this.selectedIds[0]);
308
+ }
304
309
  }
305
310
  /**
306
311
  * Scroll and zoom to the selected feature from the Features widget.
@@ -400,7 +405,7 @@ const LayerTable = class {
400
405
  const selected = this.selectedIds.length.toString();
401
406
  const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
402
407
  this._validateActiveActions();
403
- return (index.h(index.Host, { key: 'c0451b25b6253fc017f59f471ced6347a618bdcf' }, index.h("calcite-shell", { key: 'b71245a1b347aae2e06ccccd750875d9c0571b1b' }, this._getTableControlRow("header"), index.h("div", { key: 'a4c9e51f2cfa9e90bd1b67e8d542e93896321037', class: `width-full ${tableHeightClass}` }, index.h("calcite-panel", { key: 'e50e3a4165c02c56f99897fa29f079b2ef1e02ff', class: "height-full width-full" }, index.h("calcite-loader", { key: 'ad263eb3ac8558d6cd0777f993f663ddd0f7fbe6', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), index.h("div", { key: '2bcbdf8197b4bcc5102d408538dab17acd803ae9', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (index.h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
408
+ return (index.h(index.Host, { key: '928286a8e4d1159b56b2aa4384f0d6eed38c9e76' }, index.h("calcite-shell", { key: '7c9b98056ee867df54ebfd31fee6f046f5152f64' }, this._getTableControlRow("header"), index.h("div", { key: 'b1a9a9cca100c7bef335afd5b6c7d7384ca7536c', class: `width-full ${tableHeightClass}` }, index.h("calcite-panel", { key: 'ceeead9900f43c94f46c8c94698ae17f3ae558b7', class: "height-full width-full" }, index.h("calcite-loader", { key: '7bf3c9ba21daa27dd387ba5413b6f6e982e1f10d', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), index.h("div", { key: '7d0440047453a45fe1688ad373ab2463fe7479ba', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (index.h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
404
409
  .replace("{{total}}", total)
405
410
  .replace("{{selected}}", selected))) : undefined)), this._filterModal()));
406
411
  }
@@ -1001,43 +1006,38 @@ const LayerTable = class {
1001
1006
  else if (this._shiftIsPressed) {
1002
1007
  this._skipOnChange = true;
1003
1008
  this._previousCurrentId = this._currentId;
1004
- this._currentId = [...this._table.highlightIds.toArray()].reverse()[0];
1005
- if (this._previousCurrentId !== this._currentId) {
1009
+ this._currentId = [...ids].reverse()[0];
1010
+ if (ids.length === 1) {
1011
+ this._skipOnChange = false;
1012
+ }
1013
+ else if (this._previousCurrentId !== this._currentId) {
1006
1014
  // query the layer based on current sort and filters then grab between the current id and previous id
1007
1015
  const orderBy = this._table.activeSortOrders.reduce((prev, cur) => {
1008
1016
  prev.push(`${cur.fieldName} ${cur.direction}`);
1009
1017
  return prev;
1010
1018
  }, []);
1011
- const oids = await mapViewUtils.queryFeatureIds(this._layer, this._layer.definitionExpression, orderBy);
1019
+ const oids = await mapViewUtils.queryAllOidsWithQueryFeatures(0, this._layer, [], orderBy);
1012
1020
  let isBetween = false;
1013
1021
  const _start = this._table.viewModel.getObjectIdIndex(this._previousCurrentId);
1014
1022
  const _end = this._table.viewModel.getObjectIdIndex(this._currentId);
1015
1023
  const startIndex = _start < _end ? _start : _end;
1016
1024
  const endIndex = _end > _start ? _end : _start;
1017
1025
  this._skipOnChange = startIndex + 1 !== endIndex;
1018
- const selectedIds = oids.reduce((prev, cur) => {
1026
+ const idsInRange = oids.reduce((prev, cur) => {
1019
1027
  const id = cur;
1020
- const index = this._table.viewModel.getObjectIdIndex(id);
1021
1028
  if ((id === this._currentId || id === this._previousCurrentId)) {
1022
1029
  isBetween = !isBetween;
1023
1030
  if (prev.indexOf(id) < 0) {
1024
1031
  prev.push(id);
1025
1032
  }
1026
1033
  }
1027
- // The oids are sorted so after we have reached the start or end oid add all ids even if the index is -1.
1028
- // Index of -1 will occur for features between the start and and oid if
1029
- // you select a row then scroll faster than the FeatureTable loads the data to select the next id
1030
- if (isBetween && prev.indexOf(id) < 0) {
1031
- prev.push(id);
1032
- }
1033
- // Also add index based check.
1034
- // In some cases the FeatureTable and Layer query will have differences in how null/undefined field values are sorted
1035
- if ((this.selectedIds.indexOf(id) > -1 || (index >= startIndex && index <= endIndex)) && prev.indexOf(id) < 0 && index > -1) {
1034
+ else if (isBetween && prev.indexOf(id) < 0) {
1036
1035
  prev.push(id);
1037
1036
  }
1038
1037
  return prev;
1039
1038
  }, []);
1040
- this.selectedIds = _start < _end ? selectedIds.reverse() : selectedIds;
1039
+ const selectedIds = _start < _end ? idsInRange.reverse() : idsInRange;
1040
+ this.selectedIds = [...new Set([...selectedIds, ...this.selectedIds])];
1041
1041
  this._table.highlightIds.addMany(this.selectedIds.filter(i => ids.indexOf(i) < 0));
1042
1042
  }
1043
1043
  }
@@ -1100,6 +1100,7 @@ const LayerTable = class {
1100
1100
  this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
1101
1101
  await this.reactiveUtils.once(() => this._table.state === "loaded")
1102
1102
  .then(async () => {
1103
+ console.log("this._table.state === 'loaded'");
1103
1104
  this._table.highlightIds.removeAll();
1104
1105
  this._table.clearSelectionFilter();
1105
1106
  this._resetColumnTemplates();
@@ -1203,18 +1204,18 @@ const LayerTable = class {
1203
1204
  * Sort the table with the configured field and the sort order
1204
1205
  */
1205
1206
  async _sortTable() {
1206
- var _a, _b, _c, _d, _e;
1207
+ var _a, _b, _c, _d, _e, _f;
1207
1208
  //By default sort the table using objectIdField and in descending order
1208
1209
  let sortField = (_a = this._layer) === null || _a === void 0 ? void 0 : _a.objectIdField;
1209
1210
  let sortOrder = 'desc';
1210
1211
  let configuredLayer;
1211
1212
  //get the sortField and sortOrder from the configuration
1212
- if (((_d = (_c = (_b = this.mapInfo) === null || _b === void 0 ? void 0 : _b.layerOptions) === null || _c === void 0 ? void 0 : _c.layers) === null || _d === void 0 ? void 0 : _d.length) > 0) {
1213
+ if (((_d = (_c = (_b = this.mapInfo) === null || _b === void 0 ? void 0 : _b.layerOptions) === null || _c === void 0 ? void 0 : _c.layers) === null || _d === void 0 ? void 0 : _d.length) > 0 && ((_e = this._layer) === null || _e === void 0 ? void 0 : _e.id)) {
1213
1214
  configuredLayer = this.mapInfo.layerOptions.layers.filter((layer) => layer.id === this._layer.id);
1214
1215
  if (configuredLayer && configuredLayer.length > 0) {
1215
1216
  configuredLayer = configuredLayer[0];
1216
1217
  //if sort field is defined and sortField is available in the fields then use it
1217
- if (configuredLayer.sortField && ((_e = configuredLayer.fields) === null || _e === void 0 ? void 0 : _e.includes(configuredLayer.sortField))) {
1218
+ if (configuredLayer.sortField && ((_f = configuredLayer.fields) === null || _f === void 0 ? void 0 : _f.includes(configuredLayer.sortField))) {
1218
1219
  sortField = configuredLayer.sortField;
1219
1220
  }
1220
1221
  //use sort order if configured
@@ -1224,6 +1225,7 @@ const LayerTable = class {
1224
1225
  if (this._table && this._layer) {
1225
1226
  await this._table.when();
1226
1227
  await this._layer.when(() => {
1228
+ console.log("sort on this._layer.when");
1227
1229
  this._table.sortColumn(sortField, sortOrder);
1228
1230
  });
1229
1231
  }
@@ -1377,9 +1379,10 @@ const LayerTable = class {
1377
1379
  * Clears the selected indexes
1378
1380
  */
1379
1381
  _clearSelection() {
1380
- var _a;
1382
+ var _a, _b;
1381
1383
  this.selectedIds = [];
1382
1384
  (_a = this._table) === null || _a === void 0 ? void 0 : _a.highlightIds.removeAll();
1385
+ (_b = this._table) === null || _b === void 0 ? void 0 : _b.rowHighlightIds.removeAll();
1383
1386
  this._finishOnChange();
1384
1387
  }
1385
1388
  /**
@@ -10,7 +10,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
10
10
  const index = require('./index-79b35510.js');
11
11
  const locale = require('./locale-48d76c59.js');
12
12
  const interfaces = require('./interfaces-7cd0a48a.js');
13
- const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
13
+ const mapViewUtils = require('./mapViewUtils-911698e5.js');
14
14
  require('./esri-loader-fce6a9cb.js');
15
15
 
16
16
  const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}";
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-79b35510.js');
11
11
  const locale = require('./locale-48d76c59.js');
12
- const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
12
+ const mapViewUtils = require('./mapViewUtils-911698e5.js');
13
13
  require('./esri-loader-fce6a9cb.js');
14
14
  require('./interfaces-7cd0a48a.js');
15
15
 
@@ -8,7 +8,7 @@
8
8
  const esriLoader = require('./esri-loader-fce6a9cb.js');
9
9
  const index = require('./index-79b35510.js');
10
10
  const locale = require('./locale-48d76c59.js');
11
- const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
11
+ const mapViewUtils = require('./mapViewUtils-911698e5.js');
12
12
  require('./solution-resource-a577e84f.js');
13
13
  require('./index-f64944ad.js');
14
14
  const restHelpersGet = require('./restHelpersGet-dbaa28df.js');
@@ -1512,7 +1512,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
1512
1512
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1513
1513
  * ====================================================================
1514
1514
  */
1515
- function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-aa69b58b.js'); })).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
1515
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-4e523f8b.js'); })).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
1516
1516
  /** ====================================================================
1517
1517
  * @license
1518
1518
  * jsPDF XMP metadata plugin
@@ -9,10 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-79b35510.js');
11
11
  const locale = require('./locale-48d76c59.js');
12
- const popupUtils = require('./popupUtils-3e65296c.js');
13
- const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
12
+ const popupUtils = require('./popupUtils-e3fa775b.js');
13
+ const mapViewUtils = require('./mapViewUtils-911698e5.js');
14
14
  require('./esri-loader-fce6a9cb.js');
15
- require('./downloadUtils-5349717a.js');
15
+ require('./downloadUtils-83bf79ba.js');
16
16
  require('./solution-resource-a577e84f.js');
17
17
  require('./index-f64944ad.js');
18
18
  require('./restHelpersGet-dbaa28df.js');
@@ -6,10 +6,10 @@
6
6
  'use strict';
7
7
 
8
8
  const esriLoader = require('./esri-loader-fce6a9cb.js');
9
- const downloadUtils = require('./downloadUtils-5349717a.js');
9
+ const downloadUtils = require('./downloadUtils-83bf79ba.js');
10
10
  require('./index-79b35510.js');
11
11
  require('./locale-48d76c59.js');
12
- require('./mapViewUtils-6e46ba33.js');
12
+ require('./mapViewUtils-911698e5.js');
13
13
  require('./interfaces-7cd0a48a.js');
14
14
  require('./solution-resource-a577e84f.js');
15
15
  require('./index-f64944ad.js');
@@ -9,10 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-79b35510.js');
11
11
  const locale = require('./locale-48d76c59.js');
12
- const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
12
+ const mapViewUtils = require('./mapViewUtils-911698e5.js');
13
13
  const interfaces = require('./interfaces-7cd0a48a.js');
14
14
  const publicNotificationStore = require('./publicNotificationStore-3bfbbed3.js');
15
- const downloadUtils = require('./downloadUtils-5349717a.js');
15
+ const downloadUtils = require('./downloadUtils-83bf79ba.js');
16
16
  require('./esri-loader-fce6a9cb.js');
17
17
  require('./index-c078ea5f.js');
18
18
  require('./solution-resource-a577e84f.js');
@@ -199,14 +199,14 @@ const MapSelectTools = class {
199
199
  var _a, _b;
200
200
  const showBufferToolsClass = this._searchDistanceEnabled ? "search-distance" : "div-not-visible";
201
201
  const bufferDistance = typeof ((_a = this.selectionSet) === null || _a === void 0 ? void 0 : _a.distance) === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
202
- return (index.h("div", null, index.h("div", { class: "padding-top-1 display-flex" }, index.h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, index.h("div", { class: "tooltip-container" }, this._translations.searchDistance, index.h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "search-distance-icon", scale: "s" }))), index.h("calcite-popover", { closable: true, label: "", referenceElement: "search-distance-icon" }, index.h("span", { class: "tooltip-message" }, this._translations.useSearchDistanceTootip)), index.h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled })), index.h("div", { class: showBufferToolsClass }, index.h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => void this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: ((_b = this.selectionSet) === null || _b === void 0 ? void 0 : _b.unit) || this.defaultBufferUnit }))));
202
+ return (index.h("div", null, index.h("div", { class: "padding-top-1 display-flex" }, index.h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, index.h("div", { class: "tooltip-container" }, this._translations.searchDistance, index.h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: true, icon: "question", id: "search-distance-icon", scale: "s" }))), index.h("calcite-popover", { closable: true, label: "", referenceElement: "search-distance-icon" }, index.h("span", { class: "tooltip-message" }, this._translations.useSearchDistanceTootip)), index.h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled })), index.h("div", { class: showBufferToolsClass }, index.h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => void this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: ((_b = this.selectionSet) === null || _b === void 0 ? void 0 : _b.unit) || this.defaultBufferUnit }))));
203
203
  }
204
204
  /**
205
205
  * Renders the map layer picker component.
206
206
  */
207
207
  _getUseLayerFeaturesOptions() {
208
208
  const useLayerFeaturesClass = this._useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
209
- return (index.h("div", null, index.h("div", { class: "padding-top-1 display-flex" }, index.h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, index.h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, index.h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "use-layer-features-icon", scale: "s" }))), index.h("calcite-popover", { closable: true, label: "", referenceElement: "use-layer-features-icon" }, index.h("span", { class: "tooltip-message" }, this._translations.useLayerFeaturesTooltip)), index.h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } })), index.h("div", { class: useLayerFeaturesClass + " padding-top-1" }, index.h("map-layer-picker", { enabledLayerIds: this.selectionLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedIds: this.layerViews.map(l => l.layer.id), showTables: false }))));
209
+ return (index.h("div", null, index.h("div", { class: "padding-top-1 display-flex" }, index.h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, index.h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, index.h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: true, icon: "question", id: "use-layer-features-icon", scale: "s" }))), index.h("calcite-popover", { closable: true, label: "", referenceElement: "use-layer-features-icon" }, index.h("span", { class: "tooltip-message" }, this._translations.useLayerFeaturesTooltip)), index.h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } })), index.h("div", { class: useLayerFeaturesClass + " padding-top-1" }, index.h("map-layer-picker", { enabledLayerIds: this.selectionLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedIds: this.layerViews.map(l => l.layer.id), showTables: false }))));
210
210
  }
211
211
  /**
212
212
  * Renders the number of selected features
@@ -1196,7 +1196,7 @@ const RefineSelection = class {
1196
1196
  render() {
1197
1197
  var _a, _b;
1198
1198
  const layerPickerClass = this._enabledLayerIds.length > 1 ? "display-block" : "display-none";
1199
- return (index.h(index.Host, { key: 'abb0520889c7e739ccd0f7ef1cf5371169b09a4f' }, index.h("div", { key: '3772abb5d1f741644edd934e13ce25588714be0d', class: layerPickerClass + " padding-top-sides-1" }, index.h("div", { key: 'd0205e6127cf2df2eeb6ff9269ee0f64ccb0506b', class: "display-flex" }, index.h("calcite-label", { key: 'c6bdf8e921b6d7460198c5ea773c9f29f86dd7a4', class: "font-bold width-full label-margin-0" }, index.h("div", { key: '49969bbbb52f847764cddd748d9ebb01ee261de1', class: "display-flex" }, this._translations.inputLayer, index.h("calcite-icon", { key: '749c671b5b75d91e84f732daa4acb2264ed95f6c', class: "padding-start-1-2 icon", icon: "question", id: "refine-input-layer", scale: "s" })), index.h("map-layer-picker", { key: 'b0d7a600796e8b438db67b8d0dba74066bf3261f', enabledLayerIds: this._enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, ref: (el) => { this._layerPicker = el; }, selectedIds: [this._refineLayer.layer.id], showTables: false })), index.h("calcite-popover", { key: '6ed81245f48aa8c1163031625e276a3d708fca73', closable: true, label: "", referenceElement: "refine-input-layer" }, index.h("span", { key: '00e817a3d1f08b5f61f262eae88859d291444294', class: "tooltip-message" }, this._translations.inputLayerTip)))), index.h("div", { key: '0298fa4e89b539aba1aa602a84f224da905bf4f2', class: "padding-1" }, index.h("div", { key: '385699e47f1304a89b3abfe63f0d612b8b153c54', class: "padding-bottom-1" }, index.h("calcite-segmented-control", { key: 'a3d8bc30f9df92a98bd1dad2a4b7fd6221b4ea97', class: "w-100", width: "full" }, index.h("calcite-segmented-control-item", { key: 'f45b25ce69039e7de4b416a9498b6ec8cc850c60', checked: this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(interfaces.ESelectionMode.ADD), value: interfaces.ESelectionMode.ADD }, index.h("span", { key: 'fcaa2cfc47ef7d46c1bf6080bbed2ab8c1b2a0a1', class: "font-weight-500" }, this._translations.add)), index.h("calcite-segmented-control-item", { key: '3be785a5d23b559021a609ae39950f7937d9b9e4', checked: !this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(interfaces.ESelectionMode.REMOVE), value: interfaces.ESelectionMode.REMOVE }, index.h("span", { key: 'ee4d85f969762c87e30f07b6d518c4ca088fdbb3', class: "font-weight-500" }, this._translations.remove)))), index.h("div", { key: 'a1717a51a57bd216a04c13e9b04baaa5510bf33b' }, index.h("map-draw-tools", { key: '6063f82aea3984aa792e2f89e688eeaf0327ff1e', active: true, drawMode: interfaces.EDrawMode.REFINE, mapView: this.mapView, onDrawRedo: () => this._redo(), onDrawUndo: () => this._undo(), onSketchGraphicsChange: (evt) => this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, redoEnabled: ((_a = this._refineSelectionSet) === null || _a === void 0 ? void 0 : _a.redoStack.length) > 0, ref: (el) => { this._drawTools = el; }, undoEnabled: ((_b = this._refineSelectionSet) === null || _b === void 0 ? void 0 : _b.undoStack.length) > 0 })), index.h("br", { key: '76d977c28df03e57cde309eaaa300a9f013fae2c' }), (index.h("calcite-list", { key: 'e596cc82c03ffc277dbbad244de7a985fcfcc40a', class: "list-border" }, this._getRefineSelectionSetList())))));
1199
+ return (index.h(index.Host, { key: 'abb0520889c7e739ccd0f7ef1cf5371169b09a4f' }, index.h("div", { key: '3772abb5d1f741644edd934e13ce25588714be0d', class: layerPickerClass + " padding-top-sides-1" }, index.h("div", { key: 'd0205e6127cf2df2eeb6ff9269ee0f64ccb0506b', class: "display-flex" }, index.h("calcite-label", { key: 'c6bdf8e921b6d7460198c5ea773c9f29f86dd7a4', class: "font-bold width-full label-margin-0" }, index.h("div", { key: '49969bbbb52f847764cddd748d9ebb01ee261de1', class: "display-flex" }, this._translations.inputLayer, index.h("calcite-icon", { key: 'e214244ee8305ffc6214df5d456340ffff2e48d5', class: "padding-start-1-2 icon", flipRtl: true, icon: "question", id: "refine-input-layer", scale: "s" })), index.h("map-layer-picker", { key: '5141de15e7492342fa735b941d11713d9b6b940f', enabledLayerIds: this._enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, ref: (el) => { this._layerPicker = el; }, selectedIds: [this._refineLayer.layer.id], showTables: false })), index.h("calcite-popover", { key: 'fcc6af19fb88b1cffd386fc499ef90e94530a033', closable: true, label: "", referenceElement: "refine-input-layer" }, index.h("span", { key: 'b740844b112e2bd8d42dbd0e87c0201a4b64b171', class: "tooltip-message" }, this._translations.inputLayerTip)))), index.h("div", { key: 'fe3fdd55ef90be673e89a31a2faf4cb83de132f5', class: "padding-1" }, index.h("div", { key: 'ee3d2c2d3b4ab82c39bceffd8fda755c172e18b6', class: "padding-bottom-1" }, index.h("calcite-segmented-control", { key: '960d56c2a480e00410dc1f075e99f747c71a1cdb', class: "w-100", width: "full" }, index.h("calcite-segmented-control-item", { key: '048cfef7ac5f23a6ad2c663cb3704f673a0a0fbd', checked: this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(interfaces.ESelectionMode.ADD), value: interfaces.ESelectionMode.ADD }, index.h("span", { key: '4777b29c110bf5055622d5de8a60d0633bb1498f', class: "font-weight-500" }, this._translations.add)), index.h("calcite-segmented-control-item", { key: 'ae9147508332307320f34d8997ca10f42a8df704', checked: !this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(interfaces.ESelectionMode.REMOVE), value: interfaces.ESelectionMode.REMOVE }, index.h("span", { key: 'e9c94444fbb17b86d04fcc8a51c83c9ef1c09cf5', class: "font-weight-500" }, this._translations.remove)))), index.h("div", { key: '6c1e7c69a983f69930f8a084746233603db56727' }, index.h("map-draw-tools", { key: 'dcb2d5ddb6a62b4d45d9416b1c8f49ba3ce0ed08', active: true, drawMode: interfaces.EDrawMode.REFINE, mapView: this.mapView, onDrawRedo: () => this._redo(), onDrawUndo: () => this._undo(), onSketchGraphicsChange: (evt) => this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, redoEnabled: ((_a = this._refineSelectionSet) === null || _a === void 0 ? void 0 : _a.redoStack.length) > 0, ref: (el) => { this._drawTools = el; }, undoEnabled: ((_b = this._refineSelectionSet) === null || _b === void 0 ? void 0 : _b.undoStack.length) > 0 })), index.h("br", { key: '14e8f85ee2f281f757c9f9a66b5ddb818310f8fc' }), (index.h("calcite-list", { key: '0be153af5a6c87289ee49ffe6b46c35a4d943b50', class: "list-border" }, this._getRefineSelectionSetList())))));
1200
1200
  }
1201
1201
  //--------------------------------------------------------------------------
1202
1202
  //
@@ -22,6 +22,36 @@ const interfaces = require('./interfaces-7cd0a48a.js');
22
22
  * See the License for the specific language governing permissions and
23
23
  * limitations under the License.
24
24
  */
25
+ /**
26
+ * Query the layer for all OIDs valid for any definition expressions applied to the layer.
27
+ *
28
+ * This query allows OIDs to be returned in the same order as shown in the FeatureTable.
29
+ * FeatureLayer.queryObjectIds can return OIDs in a different order.
30
+ *
31
+ * @param start zero-based index indicating where to begin retrieving features
32
+ * @param layer the layer to retrieve features from
33
+ * @param graphics stores the features
34
+ * @param orderBy One or more field names used to order the query results.
35
+ * Specify ASC (ascending) or DESC (descending) after the field name to control the order.
36
+ * The default order is ASC.
37
+ *
38
+ * @returns Promise with the OIDs sorted based on any orderBy definitions
39
+ */
40
+ async function queryAllOidsWithQueryFeatures(start, layer, graphics, orderBy) {
41
+ const num = layer.capabilities.query.maxRecordCount;
42
+ const query = layer.createQuery();
43
+ query.start = start;
44
+ query.num = num;
45
+ query.returnGeometry = false;
46
+ query.orderByFields = orderBy;
47
+ query.outFields = [layer.objectIdField];
48
+ query.where = layer.definitionExpression || "1=1";
49
+ const result = await layer.queryFeatures(query);
50
+ graphics = graphics.concat(result.features);
51
+ return result.exceededTransferLimit ?
52
+ queryAllOidsWithQueryFeatures(start += num, layer, graphics, orderBy) :
53
+ Promise.resolve(graphics.map(g => g.attributes[layer.objectIdField]));
54
+ }
25
55
  /**
26
56
  * Query the layer for all IDs
27
57
  *
@@ -129,22 +159,6 @@ async function queryFeaturesByGeometry(start, layer, geometry, featuresCollectio
129
159
  queryFeaturesByGeometry(start += num, layer, geometry, featuresCollection) :
130
160
  Promise.resolve(featuresCollection);
131
161
  }
132
- /**
133
- * Query the layer for feature ids that match the provided where clause.
134
- * If no where clause is provided all features will be returned.
135
- *
136
- * @param layer the layer to retrieve features from
137
- * @param where the where clause for the query
138
- * @param orderBy any sort order to apply to the query
139
- *
140
- * @returns Promise with the ids from the layer that match the where and are sorted as defined by orderBy
141
- */
142
- async function queryFeatureIds(layer, where, orderBy) {
143
- const query = layer.createQuery();
144
- query.where = where ? where : "1=1";
145
- query.orderByFields = orderBy;
146
- return await layer.queryObjectIds(query);
147
- }
148
162
  /**
149
163
  * Query the layer for the extent of features with the provided OIDs
150
164
  *
@@ -487,7 +501,7 @@ exports.goToSelection = goToSelection;
487
501
  exports.highlightAllFeatures = highlightAllFeatures;
488
502
  exports.highlightFeatures = highlightFeatures;
489
503
  exports.queryAllIds = queryAllIds;
490
- exports.queryFeatureIds = queryFeatureIds;
504
+ exports.queryAllOidsWithQueryFeatures = queryAllOidsWithQueryFeatures;
491
505
  exports.queryFeaturesByGeometry = queryFeaturesByGeometry;
492
506
  exports.queryFeaturesByGlobalID = queryFeaturesByGlobalID;
493
507
  exports.queryFeaturesByID = queryFeaturesByID;
@@ -5,7 +5,7 @@
5
5
  */
6
6
  'use strict';
7
7
 
8
- const downloadUtils = require('./downloadUtils-5349717a.js');
8
+ const downloadUtils = require('./downloadUtils-83bf79ba.js');
9
9
  const locale = require('./locale-48d76c59.js');
10
10
 
11
11
  /** @license
@@ -10,9 +10,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
10
10
  const index = require('./index-79b35510.js');
11
11
  const interfaces = require('./interfaces-7cd0a48a.js');
12
12
  const locale = require('./locale-48d76c59.js');
13
- const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
13
+ const mapViewUtils = require('./mapViewUtils-911698e5.js');
14
14
  const publicNotificationStore = require('./publicNotificationStore-3bfbbed3.js');
15
- const downloadUtils = require('./downloadUtils-5349717a.js');
15
+ const downloadUtils = require('./downloadUtils-83bf79ba.js');
16
16
  require('./esri-loader-fce6a9cb.js');
17
17
  require('./index-c078ea5f.js');
18
18
  require('./solution-resource-a577e84f.js');
@@ -32,15 +32,19 @@ export class FloorFilter {
32
32
  //
33
33
  //--------------------------------------------------------------------------
34
34
  async mapViewWatchHandler() {
35
+ console.log("mapViewWatchHandler FF");
35
36
  const webMap = this.mapView.map;
36
37
  await webMap.when(() => {
38
+ console.log("webMap.when FF");
37
39
  if (this.floorFilterWidget) {
38
40
  this.floorFilterWidget.destroy();
39
41
  this.floorFilterWidget = undefined;
42
+ console.log("floorFilterWidget destroyed");
40
43
  }
41
44
  if (this._floorFilterElement) {
42
45
  this._floorFilterElement.remove();
43
46
  this._floorFilterElement = document.createElement("div");
47
+ console.log("this._floorFilterElement created");
44
48
  }
45
49
  this._initFloorFilter(this.mapView, webMap);
46
50
  });
@@ -57,7 +61,7 @@ export class FloorFilter {
57
61
  return this._initModules();
58
62
  }
59
63
  render() {
60
- return (h(Host, { key: '98769446b20d8a9432b571b5653abbc6613bdfe5' }, h("div", { key: '6606a2593fec1885fc02b07a168bdea43e7f864a', ref: (el) => { this._floorFilterElement = el; } })));
64
+ return (h(Host, { key: 'df3c419f3eaf30590c44c4919f0eeddfc333b81d' }, h("div", { key: '8496099f3bc35f34db6e47f73870ead9144df0a4', ref: (el) => { this._floorFilterElement = el; } })));
61
65
  }
62
66
  //--------------------------------------------------------------------------
63
67
  //
@@ -84,6 +88,11 @@ export class FloorFilter {
84
88
  */
85
89
  _initFloorFilter(view, webMap) {
86
90
  var _a, _b, _c;
91
+ console.log("_initFloorFilter");
92
+ console.log(`view: ${view}`);
93
+ console.log(`this.enabled: ${this.enabled}`);
94
+ console.log(`this.FloorFilter: ${this.FloorFilter}`);
95
+ console.log(`webMap?.floorInfo: ${webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo}`);
87
96
  if (view && this.enabled && this.FloorFilter && (webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo)) {
88
97
  this.floorFilterWidget = new this.FloorFilter({
89
98
  container: this._floorFilterElement,