@esri/solutions-components 0.8.28 → 0.8.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +65 -31
  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 +19 -19
  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/loader.cjs.js +1 -1
  12. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  13. package/dist/cjs/{mapViewUtils-6e46ba33.js → mapViewUtils-911698e5.js} +31 -17
  14. package/dist/cjs/{popupUtils-3e65296c.js → popupUtils-e3fa775b.js} +1 -1
  15. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  16. package/dist/cjs/solutions-components.cjs.js +1 -1
  17. package/dist/collection/components/floor-filter/floor-filter.js +66 -30
  18. package/dist/collection/components/layer-table/layer-table.js +18 -18
  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 +67 -32
  22. package/dist/components/layer-table2.js +18 -18
  23. package/dist/components/queryUtils.js +31 -17
  24. package/dist/esm/basemap-gallery_7.entry.js +65 -31
  25. package/dist/esm/calcite-alert_4.entry.js +3 -3
  26. package/dist/esm/calcite-dropdown-group_2.entry.js +1 -1
  27. package/dist/esm/calcite-flow_6.entry.js +1 -1
  28. package/dist/esm/card-manager_3.entry.js +19 -19
  29. package/dist/esm/crowdsource-manager.entry.js +1 -1
  30. package/dist/esm/crowdsource-reporter.entry.js +1 -1
  31. package/dist/esm/{downloadUtils-5fa0d437.js → downloadUtils-571a502d.js} +2 -2
  32. package/dist/esm/feature-list.entry.js +3 -3
  33. package/dist/esm/{index.es-57c15c9b.js → index.es-2f9f04c5.js} +2 -2
  34. package/dist/esm/loader.js +1 -1
  35. package/dist/esm/map-select-tools_3.entry.js +2 -2
  36. package/dist/esm/{mapViewUtils-4618ddb8.js → mapViewUtils-b8deb4ae.js} +31 -17
  37. package/dist/esm/{popupUtils-650b6bba.js → popupUtils-17193415.js} +1 -1
  38. package/dist/esm/public-notification.entry.js +2 -2
  39. package/dist/esm/solutions-components.js +1 -1
  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-bfdabb9d.entry.js → p-51d5532f.entry.js} +1 -1
  46. package/dist/solutions-components/{p-6f69de4d.js → p-52dba022.js} +2 -2
  47. package/dist/solutions-components/{p-24bf45b7.js → p-57eeed77.js} +1 -1
  48. package/dist/solutions-components/p-5aaa05ef.js +36 -0
  49. package/dist/solutions-components/{p-05b3a5d9.entry.js → p-61bf98bc.entry.js} +1 -1
  50. package/dist/solutions-components/p-a0616647.entry.js +6 -0
  51. package/dist/solutions-components/{p-296375d3.entry.js → p-bb90a138.entry.js} +1 -1
  52. package/dist/solutions-components/{p-6bd6624f.entry.js → p-bda54b12.entry.js} +1 -1
  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/components/floor-filter/floor-filter.d.ts +23 -1
  57. package/dist/types/utils/queryUtils.d.ts +16 -0
  58. package/package.json +1 -1
  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-c3821586.entry.js +0 -6
@@ -136,19 +136,22 @@ const FloorFilter = class {
136
136
  // Watch handlers
137
137
  //
138
138
  //--------------------------------------------------------------------------
139
+ /**
140
+ * Watch for changes to the mapView and re-init the floor filter
141
+ */
139
142
  async mapViewWatchHandler() {
140
- const webMap = this.mapView.map;
141
- await webMap.when(() => {
142
- if (this.floorFilterWidget) {
143
- this.floorFilterWidget.destroy();
144
- this.floorFilterWidget = undefined;
145
- }
146
- if (this._floorFilterElement) {
147
- this._floorFilterElement.remove();
148
- this._floorFilterElement = document.createElement("div");
149
- }
150
- this._initFloorFilter(this.mapView, webMap);
151
- });
143
+ await this._initFloorFilter(this.mapView);
144
+ }
145
+ /**
146
+ * Watch for changes to the enabled property and re-init or destroy the floor filter
147
+ */
148
+ async enabledWatchHandler() {
149
+ if (this.enabled) {
150
+ await this._initFloorFilter(this.mapView);
151
+ }
152
+ else if (!this.enabled) {
153
+ this._destroyWidget();
154
+ }
152
155
  }
153
156
  //--------------------------------------------------------------------------
154
157
  //
@@ -161,8 +164,11 @@ const FloorFilter = class {
161
164
  async componentWillLoad() {
162
165
  return this._initModules();
163
166
  }
167
+ /**
168
+ * Renders the component.
169
+ */
164
170
  render() {
165
- return (index.h(index.Host, { key: '98769446b20d8a9432b571b5653abbc6613bdfe5' }, index.h("div", { key: '6606a2593fec1885fc02b07a168bdea43e7f864a', ref: (el) => { this._floorFilterElement = el; } })));
171
+ return (index.h(index.Host, { key: 'c80a8d46fb48f3789d9fa09c2400faad49e2e236' }, index.h("div", { key: '82919a3ba061a17c8aeaa0d2f6f4f13bc428b519', ref: (el) => { this._floorFilterElement = el; } })));
166
172
  }
167
173
  //--------------------------------------------------------------------------
168
174
  //
@@ -184,33 +190,61 @@ const FloorFilter = class {
184
190
  this.FloorFilter = FloorFilter;
185
191
  this.reactiveUtils = reactiveUtils;
186
192
  }
193
+ /**
194
+ * Destroy the widget and remove the containing element if it exists
195
+ *
196
+ * @protected
197
+ */
198
+ _destroyWidget() {
199
+ if (this.floorFilterWidget) {
200
+ this.floorFilterWidget.destroy();
201
+ this.floorFilterWidget = undefined;
202
+ }
203
+ if (this._floorFilterElement) {
204
+ this._floorFilterElement.remove();
205
+ }
206
+ }
207
+ /**
208
+ * Destroy the widget and remove the containing element then re-create the container element
209
+ *
210
+ * @protected
211
+ */
212
+ _initContainer() {
213
+ this._destroyWidget();
214
+ this._floorFilterElement = document.createElement("div");
215
+ }
187
216
  /**
188
217
  * Initialize the floor filter or reset the current view if it already exists
189
218
  */
190
- _initFloorFilter(view, webMap) {
191
- var _a, _b, _c;
219
+ async _initFloorFilter(view) {
220
+ const webMap = view === null || view === void 0 ? void 0 : view.map;
192
221
  if (view && this.enabled && this.FloorFilter && (webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo)) {
193
- this.floorFilterWidget = new this.FloorFilter({
194
- container: this._floorFilterElement,
195
- view
196
- });
197
- (_a = this._facilityHandle) === null || _a === void 0 ? void 0 : _a.remove();
198
- this._facilityHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.facility, (facility) => {
199
- this.facilityChanged.emit(facility);
200
- });
201
- (_b = this._levelHandle) === null || _b === void 0 ? void 0 : _b.remove();
202
- this._levelHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.level, (level) => {
203
- this.levelChanged.emit(level);
204
- });
205
- (_c = this._siteHandle) === null || _c === void 0 ? void 0 : _c.remove();
206
- this._siteHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.site, (site) => {
207
- this.siteChanged.emit(site);
222
+ this._initContainer();
223
+ await webMap.when(() => {
224
+ var _a, _b, _c;
225
+ this.floorFilterWidget = new this.FloorFilter({
226
+ container: this._floorFilterElement,
227
+ view
228
+ });
229
+ (_a = this._facilityHandle) === null || _a === void 0 ? void 0 : _a.remove();
230
+ this._facilityHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.facility, (facility) => {
231
+ this.facilityChanged.emit(facility);
232
+ });
233
+ (_b = this._levelHandle) === null || _b === void 0 ? void 0 : _b.remove();
234
+ this._levelHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.level, (level) => {
235
+ this.levelChanged.emit(level);
236
+ });
237
+ (_c = this._siteHandle) === null || _c === void 0 ? void 0 : _c.remove();
238
+ this._siteHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.site, (site) => {
239
+ this.siteChanged.emit(site);
240
+ });
208
241
  });
209
242
  }
210
243
  }
211
244
  get el() { return index.getElement(this); }
212
245
  static get watchers() { return {
213
- "mapView": ["mapViewWatchHandler"]
246
+ "mapView": ["mapViewWatchHandler"],
247
+ "enabled": ["enabledWatchHandler"]
214
248
  }; }
215
249
  };
216
250
  FloorFilter.style = FloorFilterStyle0;
@@ -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');
@@ -302,6 +302,10 @@ const LayerTable = class {
302
302
  if (this._selectAllActive && this.selectedIds.length !== this._allIds.length) {
303
303
  this._selectAllActive = false;
304
304
  }
305
+ if (this.selectedIds.length > 0) {
306
+ this._table.rowHighlightIds.removeAll();
307
+ this._table.rowHighlightIds.add(this.selectedIds[0]);
308
+ }
305
309
  }
306
310
  /**
307
311
  * Scroll and zoom to the selected feature from the Features widget.
@@ -401,7 +405,7 @@ const LayerTable = class {
401
405
  const selected = this.selectedIds.length.toString();
402
406
  const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
403
407
  this._validateActiveActions();
404
- return (index.h(index.Host, { key: 'd2e67c4d6676ede2d0094bfca008dfca12fb59b3' }, index.h("calcite-shell", { key: '62f1c76bbffcae878e4e3f3342c37bf3bbd865ca' }, this._getTableControlRow("header"), index.h("div", { key: '4efd17a2485f990984f61f2d8c8b45d3d096d428', class: `width-full ${tableHeightClass}` }, index.h("calcite-panel", { key: '443481322720ab22e9e2bddac98802a25ef87982', class: "height-full width-full" }, index.h("calcite-loader", { key: '445bb39ac5c33d470a52f10dd1c481fdaf38443d', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), index.h("div", { key: '4f1ba294ece2f5b05030a1c3cdc48d6ff46ed5d4', 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
405
409
  .replace("{{total}}", total)
406
410
  .replace("{{selected}}", selected))) : undefined)), this._filterModal()));
407
411
  }
@@ -1002,43 +1006,38 @@ const LayerTable = class {
1002
1006
  else if (this._shiftIsPressed) {
1003
1007
  this._skipOnChange = true;
1004
1008
  this._previousCurrentId = this._currentId;
1005
- this._currentId = [...this._table.highlightIds.toArray()].reverse()[0];
1006
- 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) {
1007
1014
  // query the layer based on current sort and filters then grab between the current id and previous id
1008
1015
  const orderBy = this._table.activeSortOrders.reduce((prev, cur) => {
1009
1016
  prev.push(`${cur.fieldName} ${cur.direction}`);
1010
1017
  return prev;
1011
1018
  }, []);
1012
- const oids = await mapViewUtils.queryFeatureIds(this._layer, this._layer.definitionExpression, orderBy);
1019
+ const oids = await mapViewUtils.queryAllOidsWithQueryFeatures(0, this._layer, [], orderBy);
1013
1020
  let isBetween = false;
1014
1021
  const _start = this._table.viewModel.getObjectIdIndex(this._previousCurrentId);
1015
1022
  const _end = this._table.viewModel.getObjectIdIndex(this._currentId);
1016
1023
  const startIndex = _start < _end ? _start : _end;
1017
1024
  const endIndex = _end > _start ? _end : _start;
1018
1025
  this._skipOnChange = startIndex + 1 !== endIndex;
1019
- const selectedIds = oids.reduce((prev, cur) => {
1026
+ const idsInRange = oids.reduce((prev, cur) => {
1020
1027
  const id = cur;
1021
- const index = this._table.viewModel.getObjectIdIndex(id);
1022
1028
  if ((id === this._currentId || id === this._previousCurrentId)) {
1023
1029
  isBetween = !isBetween;
1024
1030
  if (prev.indexOf(id) < 0) {
1025
1031
  prev.push(id);
1026
1032
  }
1027
1033
  }
1028
- // The oids are sorted so after we have reached the start or end oid add all ids even if the index is -1.
1029
- // Index of -1 will occur for features between the start and and oid if
1030
- // you select a row then scroll faster than the FeatureTable loads the data to select the next id
1031
- if (isBetween && prev.indexOf(id) < 0) {
1032
- prev.push(id);
1033
- }
1034
- // Also add index based check.
1035
- // In some cases the FeatureTable and Layer query will have differences in how null/undefined field values are sorted
1036
- if ((this.selectedIds.indexOf(id) > -1 || (index >= startIndex && index <= endIndex)) && prev.indexOf(id) < 0 && index > -1) {
1034
+ else if (isBetween && prev.indexOf(id) < 0) {
1037
1035
  prev.push(id);
1038
1036
  }
1039
1037
  return prev;
1040
1038
  }, []);
1041
- this.selectedIds = _start < _end ? selectedIds.reverse() : selectedIds;
1039
+ const selectedIds = _start < _end ? idsInRange.reverse() : idsInRange;
1040
+ this.selectedIds = [...new Set([...selectedIds, ...this.selectedIds])];
1042
1041
  this._table.highlightIds.addMany(this.selectedIds.filter(i => ids.indexOf(i) < 0));
1043
1042
  }
1044
1043
  }
@@ -1380,9 +1379,10 @@ const LayerTable = class {
1380
1379
  * Clears the selected indexes
1381
1380
  */
1382
1381
  _clearSelection() {
1383
- var _a;
1382
+ var _a, _b;
1384
1383
  this.selectedIds = [];
1385
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();
1386
1386
  this._finishOnChange();
1387
1387
  }
1388
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');