@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
+ }
@@ -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,
@@ -0,0 +1,8 @@
1
+ Built 10/24/2023 13:34:09.83
2
+ filter-out-missing-related-records
3
+ commit 9c3ea5982ab3df65f1a406b1cf52efe56c0a0b58
4
+ Merge: fabaf0e3 922ffef9
5
+ Author: Mike Tschudi <mtschudi@esri.com>
6
+ Date: Tue Oct 24 13:31:59 2023 -0700
7
+
8
+ Merge branch 'develop' into filter-out-missing-related-records
@@ -16,7 +16,7 @@
16
16
  /// <reference types="arcgis-js-api" />
17
17
  import { VNode } from "../../stencil-public-runtime";
18
18
  import CrowdsourceManager_T9n from "../../assets/t9n/crowdsource-manager/resources.json";
19
- import { ELayoutMode, IBasemapConfig, IMapChange, IMapInfo, ISearchConfiguration } from "../../utils/interfaces";
19
+ import { ELayoutMode, IBasemapConfig, IMapChange, IMapInfo, ISearchConfiguration, theme } from "../../utils/interfaces";
20
20
  export declare class CrowdsourceManager {
21
21
  el: HTMLCrowdsourceManagerElement;
22
22
  /**
@@ -88,9 +88,9 @@ export declare class CrowdsourceManager {
88
88
  */
89
89
  searchConfiguration: ISearchConfiguration;
90
90
  /**
91
- * "light" | "dark": Calcite theme to be used
91
+ * theme: "light" | "dark" theme to be used
92
92
  */
93
- theme: "light" | "dark";
93
+ theme: theme;
94
94
  /**
95
95
  * boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
96
96
  */
@@ -15,7 +15,7 @@
15
15
  */
16
16
  /// <reference types="arcgis-js-api" />
17
17
  import { EventEmitter } from "../../stencil-public-runtime";
18
- import { IBasemapConfig, IMapChange, IMapInfo, ISearchConfiguration } from "../../utils/interfaces";
18
+ import { IBasemapConfig, IMapChange, IMapInfo, ISearchConfiguration, theme } from "../../utils/interfaces";
19
19
  export declare class MapCard {
20
20
  el: HTMLMapCardElement;
21
21
  /**
@@ -58,6 +58,10 @@ export declare class MapCard {
58
58
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
59
59
  */
60
60
  mapView: __esri.MapView;
61
+ /**
62
+ * theme: "light" | "dark" theme to be used
63
+ */
64
+ theme: theme;
61
65
  /**
62
66
  * ISearchConfiguration: Configuration details for the Search widget
63
67
  */
@@ -5,9 +5,9 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { DistanceUnit, EDrawMode, ELayoutMode, IBasemapConfig, IExportInfos, IInventoryItem, IMapChange, IMapInfo, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange } from "./utils/interfaces";
8
+ import { DistanceUnit, EDrawMode, ELayoutMode, IBasemapConfig, IExportInfos, IInventoryItem, IMapChange, IMapInfo, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange, theme } from "./utils/interfaces";
9
9
  import { UserSession } from "@esri/solution-common";
10
- export { DistanceUnit, EDrawMode, ELayoutMode, IBasemapConfig, IExportInfos, IInventoryItem, IMapChange, IMapInfo, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange } from "./utils/interfaces";
10
+ export { DistanceUnit, EDrawMode, ELayoutMode, IBasemapConfig, IExportInfos, IInventoryItem, IMapChange, IMapInfo, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange, theme } from "./utils/interfaces";
11
11
  export { UserSession } from "@esri/solution-common";
12
12
  export namespace Components {
13
13
  interface BasemapGallery {
@@ -148,9 +148,9 @@ export namespace Components {
148
148
  */
149
149
  "showNewestFirst": boolean;
150
150
  /**
151
- * "light" | "dark": Calcite theme to be used
151
+ * theme: "light" | "dark" theme to be used
152
152
  */
153
- "theme": "light" | "dark";
153
+ "theme": theme;
154
154
  /**
155
155
  * boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
156
156
  */
@@ -336,6 +336,10 @@ export namespace Components {
336
336
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
337
337
  */
338
338
  "mapView": __esri.MapView;
339
+ /**
340
+ * theme: "light" | "dark" theme to be used
341
+ */
342
+ "theme": theme;
339
343
  }
340
344
  interface MapDrawTools {
341
345
  /**
@@ -1420,9 +1424,9 @@ declare namespace LocalJSX {
1420
1424
  */
1421
1425
  "showNewestFirst"?: boolean;
1422
1426
  /**
1423
- * "light" | "dark": Calcite theme to be used
1427
+ * theme: "light" | "dark" theme to be used
1424
1428
  */
1425
- "theme"?: "light" | "dark";
1429
+ "theme"?: theme;
1426
1430
  /**
1427
1431
  * boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
1428
1432
  */
@@ -1619,6 +1623,10 @@ declare namespace LocalJSX {
1619
1623
  * Emitted when a new map is loaded
1620
1624
  */
1621
1625
  "onMapChanged"?: (event: MapCardCustomEvent<IMapChange>) => void;
1626
+ /**
1627
+ * theme: "light" | "dark" theme to be used
1628
+ */
1629
+ "theme"?: theme;
1622
1630
  }
1623
1631
  interface MapDrawTools {
1624
1632
  /**
@@ -66,6 +66,7 @@ export declare enum EDrawMode {
66
66
  }
67
67
  export type ValidSize = 6 | 10 | 14 | 20 | 30 | 60 | 80;
68
68
  export type DistanceUnit = "feet" | "meters" | "miles" | "kilometers";
69
+ export type theme = "light" | "dark";
69
70
  export interface IMapClick {
70
71
  mapPoint: __esri.Point;
71
72
  screenPoint: __esri.MapViewScreenPoint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "0.6.38",
3
+ "version": "0.6.40",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,h as i,H as e,g as s}from"./p-91c78d98.js";import{g as h}from"./p-99d8a839.js";import{E as l}from"./p-2a58e378.js";import"./p-e1a4994d.js";const o=class{constructor(i){t(this,i),this._shouldSetMapView=!1,this.classicGrid=!1,this.enableAutoRefresh=!1,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableInlineEdit=!1,this.enableLegend=!0,this.enableSearch=!0,this.enableHome=!0,this.enableZoom=!0,this.enableBasemap=!0,this.basemapConfig=void 0,this.showNewestFirst=!0,this.hideMap=!1,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.searchConfiguration=void 0,this.theme="light",this.zoomAndScrollToSelected=!1,this._expandPopup=!1,this._translations=void 0,this._layoutMode=l.GRID,this._mapView=void 0,this._panelOpen=!0}enableZoomWatchHandler(){this._initMapZoom()}async layoutChanged(t){this._layoutMode=t.detail}async mapChanged(t){this._mapChange=t.detail,await this._mapChange.mapView.when((()=>{this._setMapView()}))}async beforeMapChanged(){this._expandPopup&&(this._shouldSetMapView=!0,this._expandPopup=!1)}async componentWillLoad(){await this._getTranslations()}render(){return i(e,null,i("calcite-shell",{class:"position-relative"},i("calcite-panel",{class:"width-full height-full"},this._getBody(this._layoutMode,this._panelOpen,this.hideMap))))}componentDidRender(){this._shouldSetMapView&&(this._shouldSetMapView=!1,this._setMapView())}_getDividerIcon(t,i){let e="";switch(t){case l.HORIZONTAL:e=this.classicGrid?i?"chevrons-down":"chevrons-up":i?"chevrons-up":"chevrons-down";break;case l.VERTICAL:e=this.classicGrid?i?"chevrons-right":"chevrons-left":i?"chevrons-left":"chevrons-right";break;case l.GRID:e=this.classicGrid?i?"chevrons-up":"chevrons-down":i?"chevrons-left":"chevrons-right"}return e}_getMapSizeClass(t,i){let e="";switch(t){case l.HORIZONTAL:e=(i?"height-1-2":"height-0")+" width-full position-relative";break;case l.GRID:e=this.classicGrid?(i?"position-relative":"position-absolute-53")+" height-full width-full display-flex":"height-full position-relative "+(i?"width-1-3":"width-0");break;case l.VERTICAL:e="height-full position-relative "+(i?"width-1-2":"width-0")}return e}_getTableSizeClass(t,i){let e="";switch(t){case l.HORIZONTAL:e=(i?"height-1-2":"height-full")+" width-full display-flex flex-column";break;case l.GRID:e=this.classicGrid?(i?"height-full":"height-53")+" position-relative width-full display-flex":(i?"width-2-3":"width-full")+" height-full display-flex";break;case l.VERTICAL:e=(i?"width-1-2":"width-full")+" height-full display-flex"}return e}_getBody(t,e,s){const h=this.classicGrid&&t===l.GRID&&e?"display-grid":t===l.HORIZONTAL?"":"display-flex";return i("calcite-panel",{class:"width-full height-full"},this.classicGrid?i("div",{class:`width-full height-full ${h}`},this._getTable(t,e),this._getMapAndCard(t,e,s)):i("div",{class:`width-full height-full ${h}`},this._getMapAndCard(t,e,s),this._getTable(t,e)))}_getMapAndCard(t,e,s){const h=this._getMapSizeClass(t,e);return this.classicGrid?i("div",{class:`${h} overflow-hidden`},this._getCardNode(),this._getMapNode(t,s)):i("div",{class:`${h} overflow-hidden`},this._getMapNode(t,s),this._getPopupExpandNode())}_getMapNode(t,e){var s;return i("div",{class:`${this.classicGrid&&t===l.GRID?"width-full":"adjusted-height-50"} overflow-hidden ${this.classicGrid&&t===l.GRID?"display-flex height-full width-1-2":t!==l.GRID||e?"display-none":""}`},i("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:null===(s=this.mapInfos)||void 0===s?void 0:s.filter((t=>!1!==t.visible))}))}_getPopupExpandNode(){const t=this._expandPopup?"chevrons-down":"chevrons-up",e="expand-popup",s=this._expandPopup?this._translations.collapsePopup:this._translations.expandPopup,h="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return i("div",{class:"calcite-mode-dark "+(this._expandPopup?"position-absolute-50":"height-full")},i("calcite-panel",null,i("div",{class:"display-flex align-items-center",slot:"header-content"},i("calcite-icon",{icon:"information",scale:"s"}),i("div",{class:"padding-inline-start-75"},this._translations.information)),i("calcite-action",{icon:t,id:e,onClick:()=>this._togglePopup(),slot:"header-actions-end"}),i("calcite-tooltip",{class:h,label:"",placement:"bottom","reference-element":e},i("span",null,s)),this._getCardNode()))}_togglePopup(){this._expandPopup=!this._expandPopup}_getCardNode(){return i("div",{class:"width-50 height-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},i("card-manager",{class:(this._expandPopup?"height-full":"height-50")+" width-full",mapView:null==this?void 0:this._mapView,zoomAndScrollToSelected:this.zoomAndScrollToSelected}))}_getTable(t,e){const s=this._getTableSizeClass(t,e),h=this._getDividerIcon(t,e),o=e?this._translations.close:this._translations.open,a="toggle-layout";return i("calcite-shell",{class:s+" border-bottom"},i("calcite-action-bar",{class:"border-sides",expandDisabled:!0,layout:t===l.HORIZONTAL||this.classicGrid?"horizontal":"vertical",slot:this.classicGrid&&t!==l.VERTICAL?"footer":this.classicGrid&&t===l.VERTICAL?"panel-end":t===l.HORIZONTAL?"header":"panel-start"},i("calcite-action",{class:"toggle-node",icon:h,id:a,onClick:()=>this._toggleLayout(),text:""}),i("calcite-tooltip",{label:o,placement:"bottom","reference-element":a},i("span",null,o))),i("div",{class:"width-full height-full position-relative"},i("layer-table",{enableAutoRefresh:this.enableAutoRefresh,enableCSV:this.enableCSV,enableInlineEdit:this.enableInlineEdit,enableZoom:this.enableZoom,mapInfo:this._mapInfo,mapView:null==this?void 0:this._mapView,onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,showNewestFirst:this.showNewestFirst,zoomAndScrollToSelected:this.zoomAndScrollToSelected})))}_toggleLayout(){this._panelOpen=!this._panelOpen}_getMapInfo(t){let i;return this.mapInfos.some((e=>{if(e.id===t)return i=e,!0})),i}_setMapView(){this._mapInfo=this._getMapInfo(this._mapChange.id),this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView.popupEnabled=!1}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView.ui.remove("zoom")}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{enableZoom:["enableZoomWatchHandler"]}}};o.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-ui-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-ui-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-3)}.border-sides{border-left:1px solid var(--calcite-ui-border-3);border-right:1px solid var(--calcite-ui-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}";export{o as crowdsource_manager}