@esri/solutions-components 0.6.38 → 0.6.40

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 (49) hide show
  1. package/dist/cjs/card-manager_3.cjs.entry.js +4 -2
  2. package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
  3. package/dist/cjs/{downloadUtils-d8e48fbd.js → downloadUtils-9be94c17.js} +4 -2
  4. package/dist/cjs/{index.es-6159eedc.js → index.es-f8a598dc.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
  7. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  8. package/dist/cjs/solutions-components.cjs.js +1 -1
  9. package/dist/collection/components/basemap-gallery/basemap-gallery.css +19 -19
  10. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +10 -4
  11. package/dist/collection/components/layout-manager/layout-manager.css +73 -73
  12. package/dist/collection/components/map-card/map-card.js +26 -1
  13. package/dist/collection/components/map-fullscreen/map-fullscreen.css +19 -19
  14. package/dist/collection/components/map-legend/map-legend.css +3 -3
  15. package/dist/collection/components/map-search/map-search.css +24 -24
  16. package/dist/collection/demos/new-public-notification.html +2 -2
  17. package/dist/collection/utils/__b302600c5c884ab280e2ff6dc2e1fc78.json +387 -0
  18. package/dist/collection/utils/downloadUtils.js +3 -1
  19. package/dist/collection/utils/downloadUtils.ts +3 -3
  20. package/dist/collection/utils/interfaces.ts +2 -0
  21. package/dist/components/crowdsource-manager.js +1 -1
  22. package/dist/components/downloadUtils.js +3 -1
  23. package/dist/components/map-card2.js +4 -1
  24. package/dist/esm/card-manager_3.entry.js +4 -2
  25. package/dist/esm/crowdsource-manager.entry.js +1 -1
  26. package/dist/esm/{downloadUtils-d41ecba9.js → downloadUtils-c9f4592e.js} +4 -2
  27. package/dist/esm/{index.es-b226bf47.js → index.es-35932b31.js} +1 -1
  28. package/dist/esm/loader.js +1 -1
  29. package/dist/esm/map-select-tools_3.entry.js +1 -1
  30. package/dist/esm/public-notification.entry.js +1 -1
  31. package/dist/esm/solutions-components.js +1 -1
  32. package/dist/solutions-components/demos/new-public-notification.html +2 -2
  33. package/dist/solutions-components/{p-56a3b81e.entry.js → p-0dfd47df.entry.js} +1 -1
  34. package/dist/solutions-components/{p-1b14b687.entry.js → p-5a2c1d3a.entry.js} +1 -1
  35. package/dist/solutions-components/{p-9ecb5d66.js → p-6f59f4ee.js} +1 -1
  36. package/dist/solutions-components/{p-a8661f1f.js → p-79beb262.js} +2 -2
  37. package/dist/solutions-components/p-99391a15.entry.js +6 -0
  38. package/dist/solutions-components/{p-20e627ed.entry.js → p-db020d08.entry.js} +1 -1
  39. package/dist/solutions-components/solutions-components.esm.js +1 -1
  40. package/dist/solutions-components/utils/__b302600c5c884ab280e2ff6dc2e1fc78.json +387 -0
  41. package/dist/solutions-components/utils/downloadUtils.ts +3 -3
  42. package/dist/solutions-components/utils/interfaces.ts +2 -0
  43. package/dist/solutions-components_commit.txt +8 -0
  44. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +3 -3
  45. package/dist/types/components/map-card/map-card.d.ts +5 -1
  46. package/dist/types/components.d.ts +14 -6
  47. package/dist/types/utils/interfaces.d.ts +1 -0
  48. package/package.json +1 -1
  49. package/dist/solutions-components/p-63867402.entry.js +0 -6
@@ -0,0 +1,387 @@
1
+ {
2
+ "operationalLayers": [
3
+ {
4
+ "id": "18a09252edc-layer-3",
5
+ "title": "PN related records - Site Addresses",
6
+ "url": "https://services6.arcgis.com/Pu6Fai10JE2L2xUd/arcgis/rest/services/PN_related_records/FeatureServer/0",
7
+ "itemId": "e8549e36bdbd4b8d82e69172339d0224",
8
+ "layerType": "ArcGISFeatureLayer",
9
+ "popupInfo": {
10
+ "popupElements": [
11
+ {
12
+ "type": "relationship",
13
+ "description": "",
14
+ "displayCount": 1,
15
+ "displayType": "list",
16
+ "orderByFields": [
17
+ {
18
+ "field": "OBJECTID",
19
+ "order": "asc"
20
+ }
21
+ ],
22
+ "relationshipId": 0,
23
+ "title": ""
24
+ }
25
+ ],
26
+ "relatedRecordsInfo": {
27
+ "showRelatedRecords": true,
28
+ "orderByFields": [
29
+ {
30
+ "field": "relationships/0/OBJECTID",
31
+ "order": "asc"
32
+ }
33
+ ]
34
+ },
35
+ "expressionInfos": [
36
+ {
37
+ "name": "expr0",
38
+ "title": "Get first record from the parent layer",
39
+ "expression": "// Write a script to return a value to show in the pop-up. \n// For example, get the average of 4 fields:\n// Average($feature.SalesQ1, $feature.SalesQ2, $feature.SalesQ3, $feature.SalesQ4)\nvar relatedFeatures = FeatureSetByRelationshipName($feature, \"\", [\"*\"], false)\n//return relatedFeatures\nreturn First(relatedFeatures)['SITEADDkey']\n",
40
+ "returnType": "string"
41
+ }
42
+ ],
43
+ "fieldInfos": [
44
+ {
45
+ "fieldName": "OBJECTID",
46
+ "format": {
47
+ "digitSeparator": false,
48
+ "places": 0
49
+ },
50
+ "isEditable": false,
51
+ "label": "OBJECTID",
52
+ "visible": true
53
+ },
54
+ {
55
+ "fieldName": "SITEADDID",
56
+ "isEditable": true,
57
+ "label": "Site Address ID",
58
+ "visible": true
59
+ },
60
+ {
61
+ "fieldName": "ADDPTKEY",
62
+ "isEditable": true,
63
+ "label": "Address Point ID",
64
+ "visible": true
65
+ },
66
+ {
67
+ "fieldName": "PREADDRNUM",
68
+ "isEditable": true,
69
+ "label": "Address Number Prefix",
70
+ "visible": true
71
+ },
72
+ {
73
+ "fieldName": "ADDRNUMSUF",
74
+ "isEditable": true,
75
+ "label": "Address Number Suffix",
76
+ "visible": true
77
+ },
78
+ {
79
+ "fieldName": "ADDRNUM",
80
+ "isEditable": true,
81
+ "label": "Full Address Number",
82
+ "visible": true
83
+ },
84
+ {
85
+ "fieldName": "ADDRRANGE",
86
+ "isEditable": true,
87
+ "label": "Address Range",
88
+ "visible": true
89
+ },
90
+ {
91
+ "fieldName": "UNITTYPE",
92
+ "isEditable": true,
93
+ "label": "Address Unit Type",
94
+ "visible": true
95
+ },
96
+ {
97
+ "fieldName": "UNITID",
98
+ "isEditable": true,
99
+ "label": "Address Unit Number",
100
+ "visible": true
101
+ },
102
+ {
103
+ "fieldName": "ALTUNITTYPE",
104
+ "isEditable": true,
105
+ "label": "Alternate Address Unit Type",
106
+ "visible": true
107
+ },
108
+ {
109
+ "fieldName": "ALTUNITID",
110
+ "isEditable": true,
111
+ "label": "Alternate Address Unit Number",
112
+ "visible": true
113
+ },
114
+ {
115
+ "fieldName": "FULLNAME",
116
+ "isEditable": true,
117
+ "label": "Full Road Name",
118
+ "visible": true
119
+ },
120
+ {
121
+ "fieldName": "FULLADDR",
122
+ "isEditable": true,
123
+ "label": "Full Address",
124
+ "visible": true
125
+ },
126
+ {
127
+ "fieldName": "PLACENAME",
128
+ "isEditable": true,
129
+ "label": "Place Name",
130
+ "visible": true
131
+ },
132
+ {
133
+ "fieldName": "MUNICIPALITY",
134
+ "isEditable": true,
135
+ "label": "Municipality Name",
136
+ "visible": true
137
+ },
138
+ {
139
+ "fieldName": "ESN",
140
+ "isEditable": true,
141
+ "label": "Emergency Service Number",
142
+ "visible": true
143
+ },
144
+ {
145
+ "fieldName": "PSAP",
146
+ "isEditable": true,
147
+ "label": "Public Safety Answering Point",
148
+ "visible": true
149
+ },
150
+ {
151
+ "fieldName": "MSAG",
152
+ "isEditable": true,
153
+ "label": "MSAG Community",
154
+ "visible": true
155
+ },
156
+ {
157
+ "fieldName": "USNGCOORD",
158
+ "isEditable": true,
159
+ "label": "USNG Coordinate",
160
+ "visible": true
161
+ },
162
+ {
163
+ "fieldName": "ADDRCLASS",
164
+ "format": {
165
+ "digitSeparator": false,
166
+ "places": 0
167
+ },
168
+ "isEditable": true,
169
+ "label": "Description",
170
+ "visible": true
171
+ },
172
+ {
173
+ "fieldName": "POINTTYPE",
174
+ "isEditable": true,
175
+ "label": "Location",
176
+ "visible": true
177
+ },
178
+ {
179
+ "fieldName": "CAPTUREMETH",
180
+ "isEditable": true,
181
+ "label": "Capture Method",
182
+ "visible": true
183
+ },
184
+ {
185
+ "fieldName": "STATUS",
186
+ "isEditable": true,
187
+ "label": "Status",
188
+ "visible": true
189
+ },
190
+ {
191
+ "fieldName": "expression/expr0",
192
+ "isEditable": true,
193
+ "visible": false
194
+ }
195
+ ],
196
+ "title": ""
197
+ }
198
+ }
199
+ ],
200
+ "tables": [
201
+ {
202
+ "id": "18a09252edd-layer-4",
203
+ "title": "PN related records - Postal Addresses",
204
+ "url": "https://services6.arcgis.com/Pu6Fai10JE2L2xUd/arcgis/rest/services/PN_related_records/FeatureServer/3",
205
+ "itemId": "e8549e36bdbd4b8d82e69172339d0224",
206
+ "popupInfo": {
207
+ "popupElements": [
208
+ {
209
+ "type": "text",
210
+ "text": "<p>{expression/expr0}&nbsp;&nbsp;&nbsp;<br />{OWNERNM1}&nbsp;&nbsp;&nbsp;<br />{PSTLADDRESS}&nbsp;&nbsp;&nbsp;<br />{PSTLCITY} , {PSTLSTATE}, {PSTLZIP5}&nbsp;<\/p>"
211
+ }
212
+ ],
213
+ "description": "<p>{expression/expr0}&nbsp;&nbsp;&nbsp;<br />{OWNERNM1}&nbsp;&nbsp;&nbsp;<br />{PSTLADDRESS}&nbsp;&nbsp;&nbsp;<br />{PSTLCITY} , {PSTLSTATE}, {PSTLZIP5}&nbsp;<\/p>",
214
+ "expressionInfos": [
215
+ {
216
+ "name": "expr0",
217
+ "title": "New expression",
218
+ "expression": "// Write a script to return a value to show in the pop-up. \n// For example, get the average of 4 fields:\n// Average($feature.SalesQ1, $feature.SalesQ2, $feature.SalesQ3, $feature.SalesQ4)\nvar relatedFeatures = FeatureSetByRelationshipName($feature, \"\", [\"*\"], false)\nreturn First(relatedFeatures)['SITEADDID']\n",
219
+ "returnType": "string"
220
+ }
221
+ ],
222
+ "fieldInfos": [
223
+ {
224
+ "fieldName": "OBJECTID",
225
+ "format": {
226
+ "digitSeparator": false,
227
+ "places": 0
228
+ },
229
+ "isEditable": false,
230
+ "label": "OBJECTID",
231
+ "visible": true
232
+ },
233
+ {
234
+ "fieldName": "PSTLADDID",
235
+ "isEditable": true,
236
+ "label": "Postal Address Identifier",
237
+ "visible": true
238
+ },
239
+ {
240
+ "fieldName": "SITEADDKEY",
241
+ "isEditable": true,
242
+ "label": "Site Address ID",
243
+ "visible": true
244
+ },
245
+ {
246
+ "fieldName": "OWNERNM1",
247
+ "isEditable": true,
248
+ "label": "Owner Name",
249
+ "visible": true
250
+ },
251
+ {
252
+ "fieldName": "OWNERNM2",
253
+ "isEditable": true,
254
+ "label": "Owner Name",
255
+ "visible": true
256
+ },
257
+ {
258
+ "fieldName": "PSTLADDRESS",
259
+ "isEditable": true,
260
+ "label": "Postal Address",
261
+ "visible": true
262
+ },
263
+ {
264
+ "fieldName": "PSTLCITY",
265
+ "isEditable": true,
266
+ "label": "Postal City",
267
+ "visible": true
268
+ },
269
+ {
270
+ "fieldName": "PSTLSTATE",
271
+ "isEditable": true,
272
+ "label": "Postal State",
273
+ "visible": true
274
+ },
275
+ {
276
+ "fieldName": "PSTLZIP5",
277
+ "isEditable": true,
278
+ "label": "Postal Zip 5",
279
+ "visible": true
280
+ },
281
+ {
282
+ "fieldName": "PSTLZIP4",
283
+ "isEditable": true,
284
+ "label": "Postal Zip +4",
285
+ "visible": true
286
+ },
287
+ {
288
+ "fieldName": "INTSTATE",
289
+ "isEditable": true,
290
+ "label": "International State",
291
+ "visible": true
292
+ },
293
+ {
294
+ "fieldName": "INTPSTLCD",
295
+ "isEditable": true,
296
+ "label": "International Postal Code",
297
+ "visible": true
298
+ },
299
+ {
300
+ "fieldName": "COUNTRY",
301
+ "isEditable": true,
302
+ "label": "Country",
303
+ "visible": true
304
+ },
305
+ {
306
+ "fieldName": "USPSBOXTYPE",
307
+ "isEditable": true,
308
+ "label": "USPS Box Type",
309
+ "visible": true
310
+ },
311
+ {
312
+ "fieldName": "USPSBOXID",
313
+ "isEditable": true,
314
+ "label": "USPS Box Identifier",
315
+ "visible": true
316
+ },
317
+ {
318
+ "fieldName": "USPSBOXGRP",
319
+ "isEditable": true,
320
+ "label": "USPS Box Group",
321
+ "visible": true
322
+ },
323
+ {
324
+ "fieldName": "REPRESENT",
325
+ "isEditable": true,
326
+ "label": "Owner / Occupant",
327
+ "visible": true
328
+ },
329
+ {
330
+ "fieldName": "STATUS",
331
+ "isEditable": true,
332
+ "label": "Status",
333
+ "visible": true
334
+ },
335
+ {
336
+ "fieldName": "expression/expr0",
337
+ "isEditable": true,
338
+ "visible": false
339
+ }
340
+ ],
341
+ "title": ""
342
+ }
343
+ }
344
+ ],
345
+ "baseMap": {
346
+ "baseMapLayers": [
347
+ {
348
+ "id": "World_Hillshade_3805",
349
+ "opacity": 1,
350
+ "title": "World Hillshade",
351
+ "url": "https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",
352
+ "visibility": true,
353
+ "layerType": "ArcGISTiledMapServiceLayer"
354
+ },
355
+ {
356
+ "id": "VectorTile_2333",
357
+ "opacity": 1,
358
+ "title": "World Topographic Map",
359
+ "visibility": true,
360
+ "layerType": "VectorTileLayer",
361
+ "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json"
362
+ }
363
+ ],
364
+ "title": "Topographic"
365
+ },
366
+ "authoringApp": "ArcGISMapViewer",
367
+ "authoringAppVersion": "2023.2",
368
+ "initialState": {
369
+ "viewpoint": {
370
+ "targetGeometry": {
371
+ "spatialReference": {
372
+ "latestWkid": 3857,
373
+ "wkid": 102100
374
+ },
375
+ "xmin": -9907730.599516412,
376
+ "ymin": 5079172.794841483,
377
+ "xmax": -9781762.376902392,
378
+ "ymax": 5179916.798121383
379
+ }
380
+ }
381
+ },
382
+ "spatialReference": {
383
+ "latestWkid": 3857,
384
+ "wkid": 102100
385
+ },
386
+ "version": "2.28"
387
+ }
@@ -745,7 +745,9 @@ export async function _prepareLabelsUsingExecutor(featureSet, labelFormat) {
745
745
  const execResults = await Promise.all(featureSet.map(async (feature) => {
746
746
  return labelFormat.executeAsync({ "$feature": feature });
747
747
  }));
748
- const labels = execResults.map(result => _cleanupLabel(result.text).split(lineSeparatorChar));
748
+ const labels = execResults
749
+ .filter(result => result.text)
750
+ .map(result => _cleanupLabel(result.text).split(lineSeparatorChar));
749
751
  return Promise.resolve(labels);
750
752
  }
751
753
  //#endregion
@@ -1000,9 +1000,9 @@ export async function _prepareLabelsUsingExecutor(
1000
1000
  }
1001
1001
  ));
1002
1002
 
1003
- const labels = execResults.map(
1004
- result => _cleanupLabel(result.text).split(lineSeparatorChar)
1005
- )
1003
+ const labels = execResults
1004
+ .filter(result => result.text)
1005
+ .map(result => _cleanupLabel(result.text).split(lineSeparatorChar))
1006
1006
 
1007
1007
  return Promise.resolve(labels);
1008
1008
  }
@@ -83,6 +83,8 @@ export type ValidSize = 6|10|14|20|30|60|80;
83
83
 
84
84
  export type DistanceUnit = "feet"|"meters"|"miles"|"kilometers";
85
85
 
86
+ export type theme = "light" | "dark";
87
+
86
88
  export interface IMapClick {
87
89
  mapPoint: __esri.Point,
88
90
  screenPoint: __esri.MapViewScreenPoint,
@@ -289,7 +289,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
289
289
  const mapDisplayClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "display-flex height-full width-1-2" :
290
290
  layoutMode === ELayoutMode.GRID && !hideMap ? "" : "display-none";
291
291
  const mapContainerClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "width-full" : "adjusted-height-50";
292
- return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false) })));
292
+ return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false), theme: this.theme })));
293
293
  }
294
294
  /**
295
295
  * Get the expand node for the popup information
@@ -3061,7 +3061,9 @@ async function _prepareLabelsUsingExecutor(featureSet, labelFormat) {
3061
3061
  const execResults = await Promise.all(featureSet.map(async (feature) => {
3062
3062
  return labelFormat.executeAsync({ "$feature": feature });
3063
3063
  }));
3064
- const labels = execResults.map(result => _cleanupLabel(result.text).split(lineSeparatorChar));
3064
+ const labels = execResults
3065
+ .filter(result => result.text)
3066
+ .map(result => _cleanupLabel(result.text).split(lineSeparatorChar));
3065
3067
  return Promise.resolve(labels);
3066
3068
  }
3067
3069
  //#endregion
@@ -52,6 +52,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
52
52
  this.hidden = undefined;
53
53
  this.mapInfos = [];
54
54
  this.mapView = undefined;
55
+ this.theme = undefined;
55
56
  this._searchConfiguration = undefined;
56
57
  this._webMapInfo = undefined;
57
58
  }
@@ -88,7 +89,8 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
88
89
  */
89
90
  render() {
90
91
  const mapClass = this.hidden ? "visibility-hidden" : "";
91
- return (h(Host, null, h("map-picker", { mapInfos: this.mapInfos }), h("div", { class: `map-height ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { basemapConfig: this.basemapConfig, class: "box-shadow", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapView: this.mapView, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration })));
92
+ const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
93
+ return (h(Host, null, h("map-picker", { mapInfos: this.mapInfos }), h("div", { class: `map-height ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapView: this.mapView, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration })));
92
94
  }
93
95
  //--------------------------------------------------------------------------
94
96
  //
@@ -181,6 +183,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
181
183
  "hidden": [4],
182
184
  "mapInfos": [16],
183
185
  "mapView": [16],
186
+ "theme": [1],
184
187
  "_searchConfiguration": [32],
185
188
  "_webMapInfo": [32]
186
189
  }, [[8, "mapInfoChange", "mapInfoChange"]], {
@@ -7,7 +7,7 @@ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent
7
7
  import { g as getLocaleComponentStrings } from './locale-6be4e8f0.js';
8
8
  import { q as queryFeaturesByID, a as getLayerOrTable, g as goToSelection, b as queryAllIds } from './mapViewUtils-1e2befd7.js';
9
9
  import { l as loadModules } from './loadModules-687a30c5.js';
10
- import { d as downloadCSV } from './downloadUtils-d41ecba9.js';
10
+ import { d as downloadCSV } from './downloadUtils-c9f4592e.js';
11
11
  import './_commonjsHelpers-d5f9d613.js';
12
12
  import './interfaces-7470d906.js';
13
13
  import './solution-resource-be35d35b.js';
@@ -1048,6 +1048,7 @@ const MapCard = class {
1048
1048
  this.hidden = undefined;
1049
1049
  this.mapInfos = [];
1050
1050
  this.mapView = undefined;
1051
+ this.theme = undefined;
1051
1052
  this._searchConfiguration = undefined;
1052
1053
  this._webMapInfo = undefined;
1053
1054
  }
@@ -1084,7 +1085,8 @@ const MapCard = class {
1084
1085
  */
1085
1086
  render() {
1086
1087
  const mapClass = this.hidden ? "visibility-hidden" : "";
1087
- return (h(Host, null, h("map-picker", { mapInfos: this.mapInfos }), h("div", { class: `map-height ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { basemapConfig: this.basemapConfig, class: "box-shadow", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapView: this.mapView, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration })));
1088
+ const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
1089
+ return (h(Host, null, h("map-picker", { mapInfos: this.mapInfos }), h("div", { class: `map-height ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapView: this.mapView, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration })));
1088
1090
  }
1089
1091
  //--------------------------------------------------------------------------
1090
1092
  //
@@ -246,7 +246,7 @@ const CrowdsourceManager = class {
246
246
  const mapDisplayClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "display-flex height-full width-1-2" :
247
247
  layoutMode === ELayoutMode.GRID && !hideMap ? "" : "display-none";
248
248
  const mapContainerClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "width-full" : "adjusted-height-50";
249
- return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false) })));
249
+ return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false), theme: this.theme })));
250
250
  }
251
251
  /**
252
252
  * Get the expand node for the popup information
@@ -1507,7 +1507,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
1507
1507
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1508
1508
  * ====================================================================
1509
1509
  */
1510
- function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-b226bf47.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},
1510
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-35932b31.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},
1511
1511
  /** ====================================================================
1512
1512
  * @license
1513
1513
  * jsPDF XMP metadata plugin
@@ -3061,7 +3061,9 @@ async function _prepareLabelsUsingExecutor(featureSet, labelFormat) {
3061
3061
  const execResults = await Promise.all(featureSet.map(async (feature) => {
3062
3062
  return labelFormat.executeAsync({ "$feature": feature });
3063
3063
  }));
3064
- const labels = execResults.map(result => _cleanupLabel(result.text).split(lineSeparatorChar));
3064
+ const labels = execResults
3065
+ .filter(result => result.text)
3066
+ .map(result => _cleanupLabel(result.text).split(lineSeparatorChar));
3065
3067
  return Promise.resolve(labels);
3066
3068
  }
3067
3069
  //#endregion
@@ -4,7 +4,7 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { a as commonjsGlobal, c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers-d5f9d613.js';
7
- import { _ as _typeof_1 } from './downloadUtils-d41ecba9.js';
7
+ import { _ as _typeof_1 } from './downloadUtils-c9f4592e.js';
8
8
  import './index-0740c914.js';
9
9
  import './loadModules-687a30c5.js';
10
10
  import './locale-6be4e8f0.js';