@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.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +65 -31
- package/dist/cjs/calcite-alert_4.cjs.entry.js +3 -3
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow_6.cjs.entry.js +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +19 -19
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
- package/dist/cjs/{downloadUtils-5349717a.js → downloadUtils-83bf79ba.js} +2 -2
- package/dist/cjs/feature-list.cjs.entry.js +3 -3
- package/dist/cjs/{index.es-aa69b58b.js → index.es-4e523f8b.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
- package/dist/cjs/{mapViewUtils-6e46ba33.js → mapViewUtils-911698e5.js} +31 -17
- package/dist/cjs/{popupUtils-3e65296c.js → popupUtils-e3fa775b.js} +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/floor-filter/floor-filter.js +66 -30
- package/dist/collection/components/layer-table/layer-table.js +18 -18
- package/dist/collection/utils/queryUtils.js +30 -0
- package/dist/collection/utils/queryUtils.ts +41 -0
- package/dist/components/floor-filter2.js +67 -32
- package/dist/components/layer-table2.js +18 -18
- package/dist/components/queryUtils.js +31 -17
- package/dist/esm/basemap-gallery_7.entry.js +65 -31
- package/dist/esm/calcite-alert_4.entry.js +3 -3
- package/dist/esm/calcite-dropdown-group_2.entry.js +1 -1
- package/dist/esm/calcite-flow_6.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +19 -19
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +1 -1
- package/dist/esm/{downloadUtils-5fa0d437.js → downloadUtils-571a502d.js} +2 -2
- package/dist/esm/feature-list.entry.js +3 -3
- package/dist/esm/{index.es-57c15c9b.js → index.es-2f9f04c5.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +2 -2
- package/dist/esm/{mapViewUtils-4618ddb8.js → mapViewUtils-b8deb4ae.js} +31 -17
- package/dist/esm/{popupUtils-650b6bba.js → popupUtils-17193415.js} +1 -1
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-81747268.entry.js → p-061da95a.entry.js} +1 -1
- package/dist/solutions-components/{p-e1662e32.entry.js → p-16fb8296.entry.js} +1 -1
- package/dist/solutions-components/p-1bdf0ba0.entry.js +6 -0
- package/dist/solutions-components/{p-a1037b19.js → p-2e23ac2c.js} +1 -1
- package/dist/solutions-components/{p-66722851.entry.js → p-2f7bfd8d.entry.js} +1 -1
- package/dist/solutions-components/{p-bfdabb9d.entry.js → p-51d5532f.entry.js} +1 -1
- package/dist/solutions-components/{p-6f69de4d.js → p-52dba022.js} +2 -2
- package/dist/solutions-components/{p-24bf45b7.js → p-57eeed77.js} +1 -1
- package/dist/solutions-components/p-5aaa05ef.js +36 -0
- package/dist/solutions-components/{p-05b3a5d9.entry.js → p-61bf98bc.entry.js} +1 -1
- package/dist/solutions-components/p-a0616647.entry.js +6 -0
- package/dist/solutions-components/{p-296375d3.entry.js → p-bb90a138.entry.js} +1 -1
- package/dist/solutions-components/{p-6bd6624f.entry.js → p-bda54b12.entry.js} +1 -1
- package/dist/solutions-components/{p-cd694107.entry.js → p-c21a6940.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/queryUtils.ts +41 -0
- package/dist/types/components/floor-filter/floor-filter.d.ts +23 -1
- package/dist/types/utils/queryUtils.d.ts +16 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-2a6db6e8.entry.js +0 -6
- package/dist/solutions-components/p-583e5dd0.js +0 -36
- package/dist/solutions-components/p-c3821586.entry.js +0 -6
@@ -132,19 +132,22 @@ const FloorFilter = class {
|
|
132
132
|
// Watch handlers
|
133
133
|
//
|
134
134
|
//--------------------------------------------------------------------------
|
135
|
+
/**
|
136
|
+
* Watch for changes to the mapView and re-init the floor filter
|
137
|
+
*/
|
135
138
|
async mapViewWatchHandler() {
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
this.
|
147
|
-
}
|
139
|
+
await this._initFloorFilter(this.mapView);
|
140
|
+
}
|
141
|
+
/**
|
142
|
+
* Watch for changes to the enabled property and re-init or destroy the floor filter
|
143
|
+
*/
|
144
|
+
async enabledWatchHandler() {
|
145
|
+
if (this.enabled) {
|
146
|
+
await this._initFloorFilter(this.mapView);
|
147
|
+
}
|
148
|
+
else if (!this.enabled) {
|
149
|
+
this._destroyWidget();
|
150
|
+
}
|
148
151
|
}
|
149
152
|
//--------------------------------------------------------------------------
|
150
153
|
//
|
@@ -157,8 +160,11 @@ const FloorFilter = class {
|
|
157
160
|
async componentWillLoad() {
|
158
161
|
return this._initModules();
|
159
162
|
}
|
163
|
+
/**
|
164
|
+
* Renders the component.
|
165
|
+
*/
|
160
166
|
render() {
|
161
|
-
return (h(Host, { key: '
|
167
|
+
return (h(Host, { key: 'c80a8d46fb48f3789d9fa09c2400faad49e2e236' }, h("div", { key: '82919a3ba061a17c8aeaa0d2f6f4f13bc428b519', ref: (el) => { this._floorFilterElement = el; } })));
|
162
168
|
}
|
163
169
|
//--------------------------------------------------------------------------
|
164
170
|
//
|
@@ -180,33 +186,61 @@ const FloorFilter = class {
|
|
180
186
|
this.FloorFilter = FloorFilter;
|
181
187
|
this.reactiveUtils = reactiveUtils;
|
182
188
|
}
|
189
|
+
/**
|
190
|
+
* Destroy the widget and remove the containing element if it exists
|
191
|
+
*
|
192
|
+
* @protected
|
193
|
+
*/
|
194
|
+
_destroyWidget() {
|
195
|
+
if (this.floorFilterWidget) {
|
196
|
+
this.floorFilterWidget.destroy();
|
197
|
+
this.floorFilterWidget = undefined;
|
198
|
+
}
|
199
|
+
if (this._floorFilterElement) {
|
200
|
+
this._floorFilterElement.remove();
|
201
|
+
}
|
202
|
+
}
|
203
|
+
/**
|
204
|
+
* Destroy the widget and remove the containing element then re-create the container element
|
205
|
+
*
|
206
|
+
* @protected
|
207
|
+
*/
|
208
|
+
_initContainer() {
|
209
|
+
this._destroyWidget();
|
210
|
+
this._floorFilterElement = document.createElement("div");
|
211
|
+
}
|
183
212
|
/**
|
184
213
|
* Initialize the floor filter or reset the current view if it already exists
|
185
214
|
*/
|
186
|
-
_initFloorFilter(view
|
187
|
-
|
215
|
+
async _initFloorFilter(view) {
|
216
|
+
const webMap = view === null || view === void 0 ? void 0 : view.map;
|
188
217
|
if (view && this.enabled && this.FloorFilter && (webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo)) {
|
189
|
-
this.
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
218
|
+
this._initContainer();
|
219
|
+
await webMap.when(() => {
|
220
|
+
var _a, _b, _c;
|
221
|
+
this.floorFilterWidget = new this.FloorFilter({
|
222
|
+
container: this._floorFilterElement,
|
223
|
+
view
|
224
|
+
});
|
225
|
+
(_a = this._facilityHandle) === null || _a === void 0 ? void 0 : _a.remove();
|
226
|
+
this._facilityHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.facility, (facility) => {
|
227
|
+
this.facilityChanged.emit(facility);
|
228
|
+
});
|
229
|
+
(_b = this._levelHandle) === null || _b === void 0 ? void 0 : _b.remove();
|
230
|
+
this._levelHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.level, (level) => {
|
231
|
+
this.levelChanged.emit(level);
|
232
|
+
});
|
233
|
+
(_c = this._siteHandle) === null || _c === void 0 ? void 0 : _c.remove();
|
234
|
+
this._siteHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.site, (site) => {
|
235
|
+
this.siteChanged.emit(site);
|
236
|
+
});
|
204
237
|
});
|
205
238
|
}
|
206
239
|
}
|
207
240
|
get el() { return getElement(this); }
|
208
241
|
static get watchers() { return {
|
209
|
-
"mapView": ["mapViewWatchHandler"]
|
242
|
+
"mapView": ["mapViewWatchHandler"],
|
243
|
+
"enabled": ["enabledWatchHandler"]
|
210
244
|
}; }
|
211
245
|
};
|
212
246
|
FloorFilter.style = FloorFilterStyle0;
|
@@ -12,15 +12,15 @@ import { o as onToggleOpenCloseComponent } from './openCloseComponent-04234cea.j
|
|
12
12
|
import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-165900a5.js';
|
13
13
|
import { K as KindIcons } from './resources-ae36eaff.js';
|
14
14
|
import { g as getLocaleComponentStrings, l as loadModules } from './locale-a490c4f6.js';
|
15
|
-
import { a as getAllLayers } from './mapViewUtils-
|
16
|
-
import { P as PopupUtils } from './popupUtils-
|
15
|
+
import { a as getAllLayers } from './mapViewUtils-b8deb4ae.js';
|
16
|
+
import { P as PopupUtils } from './popupUtils-17193415.js';
|
17
17
|
import './guid-f05d01d5.js';
|
18
18
|
import './resources-1febf4c6.js';
|
19
19
|
import './key-092b6260.js';
|
20
20
|
import './observers-19e5cb73.js';
|
21
21
|
import './esri-loader-2bf735ed.js';
|
22
22
|
import './interfaces-586e863c.js';
|
23
|
-
import './downloadUtils-
|
23
|
+
import './downloadUtils-571a502d.js';
|
24
24
|
import './solution-resource-0d0eb597.js';
|
25
25
|
import './index-a1e91462.js';
|
26
26
|
import './restHelpersGet-1bd54274.js';
|
@@ -7,7 +7,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
|
|
7
7
|
import { c as createObserver } from './observers-19e5cb73.js';
|
8
8
|
import { C as CSS } from './resources-16800cce.js';
|
9
9
|
import { g as getLocaleComponentStrings } from './locale-a490c4f6.js';
|
10
|
-
import { d as getMapLayerHash, p as getMapTableHash } from './mapViewUtils-
|
10
|
+
import { d as getMapLayerHash, p as getMapTableHash } from './mapViewUtils-b8deb4ae.js';
|
11
11
|
import { s as state } from './publicNotificationStore-74c7e9f4.js';
|
12
12
|
import './esri-loader-2bf735ed.js';
|
13
13
|
import './interfaces-586e863c.js';
|
@@ -12,7 +12,7 @@ import { c as connectLocalized, d as disconnectLocalized } from './locale-353c1c
|
|
12
12
|
import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-165900a5.js';
|
13
13
|
import { S as SLOTS$1 } from './resources-810e7513.js';
|
14
14
|
import { l as loadModules, f as formatNumber, g as getLocaleComponentStrings } from './locale-a490c4f6.js';
|
15
|
-
import { a as getAllLayers, g as getLayerOrTable, b as getAllTables, d as getMapLayerHash } from './mapViewUtils-
|
15
|
+
import { a as getAllLayers, g as getLayerOrTable, b as getAllTables, d as getMapLayerHash } from './mapViewUtils-b8deb4ae.js';
|
16
16
|
import './guid-f05d01d5.js';
|
17
17
|
import './resources-1febf4c6.js';
|
18
18
|
import './browser-9897260d.js';
|
@@ -5,8 +5,8 @@
|
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-ba5da2b0.js';
|
7
7
|
import { g as getLocaleComponentStrings, l as loadModules } from './locale-a490c4f6.js';
|
8
|
-
import { q as queryFeaturesByID, g as getLayerOrTable, e as goToSelection, f as queryAllIds, i as
|
9
|
-
import { d as downloadCSV } from './downloadUtils-
|
8
|
+
import { q as queryFeaturesByID, g as getLayerOrTable, e as goToSelection, f as queryAllIds, i as queryAllOidsWithQueryFeatures, j as queryFeaturesByGlobalID, c as getFeatureLayerView } from './mapViewUtils-b8deb4ae.js';
|
9
|
+
import { d as downloadCSV } from './downloadUtils-571a502d.js';
|
10
10
|
import './esri-loader-2bf735ed.js';
|
11
11
|
import './interfaces-586e863c.js';
|
12
12
|
import './solution-resource-0d0eb597.js';
|
@@ -298,6 +298,10 @@ const LayerTable = class {
|
|
298
298
|
if (this._selectAllActive && this.selectedIds.length !== this._allIds.length) {
|
299
299
|
this._selectAllActive = false;
|
300
300
|
}
|
301
|
+
if (this.selectedIds.length > 0) {
|
302
|
+
this._table.rowHighlightIds.removeAll();
|
303
|
+
this._table.rowHighlightIds.add(this.selectedIds[0]);
|
304
|
+
}
|
301
305
|
}
|
302
306
|
/**
|
303
307
|
* Scroll and zoom to the selected feature from the Features widget.
|
@@ -397,7 +401,7 @@ const LayerTable = class {
|
|
397
401
|
const selected = this.selectedIds.length.toString();
|
398
402
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
399
403
|
this._validateActiveActions();
|
400
|
-
return (h(Host, { key: '
|
404
|
+
return (h(Host, { key: '928286a8e4d1159b56b2aa4384f0d6eed38c9e76' }, h("calcite-shell", { key: '7c9b98056ee867df54ebfd31fee6f046f5152f64' }, this._getTableControlRow("header"), h("div", { key: 'b1a9a9cca100c7bef335afd5b6c7d7384ca7536c', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'ceeead9900f43c94f46c8c94698ae17f3ae558b7', class: "height-full width-full" }, h("calcite-loader", { key: '7bf3c9ba21daa27dd387ba5413b6f6e982e1f10d', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '7d0440047453a45fe1688ad373ab2463fe7479ba', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
401
405
|
.replace("{{total}}", total)
|
402
406
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
403
407
|
}
|
@@ -998,43 +1002,38 @@ const LayerTable = class {
|
|
998
1002
|
else if (this._shiftIsPressed) {
|
999
1003
|
this._skipOnChange = true;
|
1000
1004
|
this._previousCurrentId = this._currentId;
|
1001
|
-
this._currentId = [...
|
1002
|
-
if (
|
1005
|
+
this._currentId = [...ids].reverse()[0];
|
1006
|
+
if (ids.length === 1) {
|
1007
|
+
this._skipOnChange = false;
|
1008
|
+
}
|
1009
|
+
else if (this._previousCurrentId !== this._currentId) {
|
1003
1010
|
// query the layer based on current sort and filters then grab between the current id and previous id
|
1004
1011
|
const orderBy = this._table.activeSortOrders.reduce((prev, cur) => {
|
1005
1012
|
prev.push(`${cur.fieldName} ${cur.direction}`);
|
1006
1013
|
return prev;
|
1007
1014
|
}, []);
|
1008
|
-
const oids = await
|
1015
|
+
const oids = await queryAllOidsWithQueryFeatures(0, this._layer, [], orderBy);
|
1009
1016
|
let isBetween = false;
|
1010
1017
|
const _start = this._table.viewModel.getObjectIdIndex(this._previousCurrentId);
|
1011
1018
|
const _end = this._table.viewModel.getObjectIdIndex(this._currentId);
|
1012
1019
|
const startIndex = _start < _end ? _start : _end;
|
1013
1020
|
const endIndex = _end > _start ? _end : _start;
|
1014
1021
|
this._skipOnChange = startIndex + 1 !== endIndex;
|
1015
|
-
const
|
1022
|
+
const idsInRange = oids.reduce((prev, cur) => {
|
1016
1023
|
const id = cur;
|
1017
|
-
const index = this._table.viewModel.getObjectIdIndex(id);
|
1018
1024
|
if ((id === this._currentId || id === this._previousCurrentId)) {
|
1019
1025
|
isBetween = !isBetween;
|
1020
1026
|
if (prev.indexOf(id) < 0) {
|
1021
1027
|
prev.push(id);
|
1022
1028
|
}
|
1023
1029
|
}
|
1024
|
-
|
1025
|
-
// Index of -1 will occur for features between the start and and oid if
|
1026
|
-
// you select a row then scroll faster than the FeatureTable loads the data to select the next id
|
1027
|
-
if (isBetween && prev.indexOf(id) < 0) {
|
1028
|
-
prev.push(id);
|
1029
|
-
}
|
1030
|
-
// Also add index based check.
|
1031
|
-
// In some cases the FeatureTable and Layer query will have differences in how null/undefined field values are sorted
|
1032
|
-
if ((this.selectedIds.indexOf(id) > -1 || (index >= startIndex && index <= endIndex)) && prev.indexOf(id) < 0 && index > -1) {
|
1030
|
+
else if (isBetween && prev.indexOf(id) < 0) {
|
1033
1031
|
prev.push(id);
|
1034
1032
|
}
|
1035
1033
|
return prev;
|
1036
1034
|
}, []);
|
1037
|
-
|
1035
|
+
const selectedIds = _start < _end ? idsInRange.reverse() : idsInRange;
|
1036
|
+
this.selectedIds = [...new Set([...selectedIds, ...this.selectedIds])];
|
1038
1037
|
this._table.highlightIds.addMany(this.selectedIds.filter(i => ids.indexOf(i) < 0));
|
1039
1038
|
}
|
1040
1039
|
}
|
@@ -1376,9 +1375,10 @@ const LayerTable = class {
|
|
1376
1375
|
* Clears the selected indexes
|
1377
1376
|
*/
|
1378
1377
|
_clearSelection() {
|
1379
|
-
var _a;
|
1378
|
+
var _a, _b;
|
1380
1379
|
this.selectedIds = [];
|
1381
1380
|
(_a = this._table) === null || _a === void 0 ? void 0 : _a.highlightIds.removeAll();
|
1381
|
+
(_b = this._table) === null || _b === void 0 ? void 0 : _b.rowHighlightIds.removeAll();
|
1382
1382
|
this._finishOnChange();
|
1383
1383
|
}
|
1384
1384
|
/**
|
@@ -6,7 +6,7 @@
|
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ba5da2b0.js';
|
7
7
|
import { g as getLocaleComponentStrings } from './locale-a490c4f6.js';
|
8
8
|
import { E as ELayoutMode } from './interfaces-586e863c.js';
|
9
|
-
import { g as getLayerOrTable } from './mapViewUtils-
|
9
|
+
import { g as getLayerOrTable } from './mapViewUtils-b8deb4ae.js';
|
10
10
|
import './esri-loader-2bf735ed.js';
|
11
11
|
|
12
12
|
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}";
|
@@ -5,7 +5,7 @@
|
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment, g as getElement } from './index-ba5da2b0.js';
|
7
7
|
import { l as loadModules, g as getLocaleComponentStrings } from './locale-a490c4f6.js';
|
8
|
-
import { g as getLayerOrTable, a as getAllLayers, b as getAllTables, c as getFeatureLayerView, h as highlightFeatures, d as getMapLayerHash, q as queryFeaturesByID } from './mapViewUtils-
|
8
|
+
import { g as getLayerOrTable, a as getAllLayers, b as getAllTables, c as getFeatureLayerView, h as highlightFeatures, d as getMapLayerHash, q as queryFeaturesByID } from './mapViewUtils-b8deb4ae.js';
|
9
9
|
import './esri-loader-2bf735ed.js';
|
10
10
|
import './interfaces-586e863c.js';
|
11
11
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
import { g as getDefaultExportFromCjs } from './esri-loader-2bf735ed.js';
|
7
7
|
import { a as getAssetPath } from './index-ba5da2b0.js';
|
8
8
|
import { l as loadModules } from './locale-a490c4f6.js';
|
9
|
-
import { q as queryFeaturesByID } from './mapViewUtils-
|
9
|
+
import { q as queryFeaturesByID } from './mapViewUtils-b8deb4ae.js';
|
10
10
|
import './solution-resource-0d0eb597.js';
|
11
11
|
import './index-a1e91462.js';
|
12
12
|
import { _ as __assign$1, r as request, c as cleanUrl, g as getJson } from './restHelpersGet-1bd54274.js';
|
@@ -1510,7 +1510,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
1510
1510
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1511
1511
|
* ====================================================================
|
1512
1512
|
*/
|
1513
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-
|
1513
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-2f9f04c5.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},
|
1514
1514
|
/** ====================================================================
|
1515
1515
|
* @license
|
1516
1516
|
* jsPDF XMP metadata plugin
|
@@ -5,10 +5,10 @@
|
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-ba5da2b0.js';
|
7
7
|
import { l as loadModules, g as getLocaleComponentStrings } from './locale-a490c4f6.js';
|
8
|
-
import { P as PopupUtils } from './popupUtils-
|
9
|
-
import { g as getLayerOrTable, c as getFeatureLayerView, h as highlightFeatures } from './mapViewUtils-
|
8
|
+
import { P as PopupUtils } from './popupUtils-17193415.js';
|
9
|
+
import { g as getLayerOrTable, c as getFeatureLayerView, h as highlightFeatures } from './mapViewUtils-b8deb4ae.js';
|
10
10
|
import './esri-loader-2bf735ed.js';
|
11
|
-
import './downloadUtils-
|
11
|
+
import './downloadUtils-571a502d.js';
|
12
12
|
import './solution-resource-0d0eb597.js';
|
13
13
|
import './index-a1e91462.js';
|
14
14
|
import './restHelpersGet-1bd54274.js';
|
@@ -4,10 +4,10 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { a as commonjsGlobal, g as getDefaultExportFromCjs } from './esri-loader-2bf735ed.js';
|
7
|
-
import { b as _typeof$1 } from './downloadUtils-
|
7
|
+
import { b as _typeof$1 } from './downloadUtils-571a502d.js';
|
8
8
|
import './index-ba5da2b0.js';
|
9
9
|
import './locale-a490c4f6.js';
|
10
|
-
import './mapViewUtils-
|
10
|
+
import './mapViewUtils-b8deb4ae.js';
|
11
11
|
import './interfaces-586e863c.js';
|
12
12
|
import './solution-resource-0d0eb597.js';
|
13
13
|
import './index-a1e91462.js';
|