@esri/solutions-components 0.3.2 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. package/dist/assets/t9n/public-notification/resources.json +4 -1
  2. package/dist/assets/t9n/public-notification/resources_en.json +4 -1
  3. package/dist/cjs/buffer-tools_6.cjs.entry.js +8 -7
  4. package/dist/cjs/calcite-combobox_3.cjs.entry.js +38 -25
  5. package/dist/cjs/calcite-input-message_5.cjs.entry.js +272 -21
  6. package/dist/cjs/{csvUtils-18a03353.js → csvUtils-83af7ae1.js} +5 -5
  7. package/dist/cjs/layer-table.cjs.entry.js +3 -3
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/map-search.cjs.entry.js +46 -7
  10. package/dist/cjs/{mapViewUtils-8ea9adc5.js → mapViewUtils-55ac76cb.js} +40 -25
  11. package/dist/cjs/public-notification.cjs.entry.js +101 -18
  12. package/dist/cjs/{publicNotificationStore-aca88430.js → publicNotificationStore-28a8759d.js} +3 -1
  13. package/dist/cjs/solutions-components.cjs.js +1 -1
  14. package/dist/collection/collection-manifest.json +0 -5
  15. package/dist/collection/components/buffer-tools/buffer-tools.js +7 -6
  16. package/dist/collection/components/layer-table/layer-table.js +1 -1
  17. package/dist/collection/components/map-layer-picker/map-layer-picker.js +47 -29
  18. package/dist/collection/components/map-search/map-search.js +66 -7
  19. package/dist/collection/components/map-select-tools/map-select-tools.js +125 -8
  20. package/dist/collection/components/pdf-download/pdf-download.js +32 -8
  21. package/dist/collection/components/public-notification/public-notification.css +46 -41
  22. package/dist/collection/components/public-notification/public-notification.js +267 -19
  23. package/dist/collection/components/refine-selection/refine-selection.js +18 -1
  24. package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +22 -5
  25. package/dist/{solutions-components/demos/config-pdf-download.html → collection/demos/buffer-tools.html} +13 -21
  26. package/dist/collection/demos/index.html +0 -24
  27. package/dist/collection/demos/map-draw-tools.html +17 -17
  28. package/dist/collection/demos/map-layer-picker.html +2 -0
  29. package/dist/collection/demos/map-search.html +16 -15
  30. package/dist/collection/demos/map-select-tools.html +16 -24
  31. package/dist/collection/demos/new-public-notification.html +46 -35
  32. package/dist/collection/demos/pdf-download.html +8 -1
  33. package/dist/collection/utils/csvUtils.js +4 -4
  34. package/dist/collection/utils/csvUtils.ts +6 -4
  35. package/dist/collection/utils/interfaces.ts +65 -1
  36. package/dist/collection/utils/mapViewUtils.js +36 -22
  37. package/dist/collection/utils/mapViewUtils.ts +50 -27
  38. package/dist/collection/utils/publicNotificationStore.js +3 -1
  39. package/dist/collection/utils/publicNotificationStore.ts +3 -1
  40. package/dist/collection/utils/queryUtils.js +2 -2
  41. package/dist/collection/utils/queryUtils.ts +2 -2
  42. package/dist/components/buffer-tools2.js +1 -1
  43. package/dist/components/csvUtils.js +4 -4
  44. package/dist/components/index.d.ts +0 -5
  45. package/dist/components/index.js +0 -5
  46. package/dist/components/layer-table.js +2 -3
  47. package/dist/components/map-layer-picker2.js +177 -28
  48. package/dist/components/map-search.js +47 -7
  49. package/dist/components/map-select-tools2.js +56 -11
  50. package/dist/components/pdf-download2.js +217 -8
  51. package/dist/components/public-notification.js +154 -55
  52. package/dist/components/publicNotificationStore.js +3 -1
  53. package/dist/components/queryUtils.js +3 -3
  54. package/dist/components/refine-selection-tools2.js +9 -8
  55. package/dist/components/refine-selection2.js +3 -1
  56. package/dist/esm/buffer-tools_6.entry.js +8 -7
  57. package/dist/esm/calcite-combobox_3.entry.js +38 -25
  58. package/dist/esm/calcite-input-message_5.entry.js +271 -20
  59. package/dist/esm/{csvUtils-edc0c2a8.js → csvUtils-eb231cfb.js} +5 -5
  60. package/dist/esm/layer-table.entry.js +3 -3
  61. package/dist/esm/loader.js +1 -1
  62. package/dist/esm/map-search.entry.js +46 -7
  63. package/dist/esm/{mapViewUtils-31d2c2bb.js → mapViewUtils-e5d8a1e1.js} +39 -25
  64. package/dist/esm/public-notification.entry.js +101 -18
  65. package/dist/esm/{publicNotificationStore-3e762eea.js → publicNotificationStore-8e9cb73b.js} +3 -1
  66. package/dist/esm/solutions-components.js +1 -1
  67. package/dist/{collection/demos/config-pdf-download.html → solutions-components/demos/buffer-tools.html} +13 -21
  68. package/dist/solutions-components/demos/index.html +0 -24
  69. package/dist/solutions-components/demos/map-draw-tools.html +17 -17
  70. package/dist/solutions-components/demos/map-layer-picker.html +2 -0
  71. package/dist/solutions-components/demos/map-search.html +16 -15
  72. package/dist/solutions-components/demos/map-select-tools.html +16 -24
  73. package/dist/solutions-components/demos/new-public-notification.html +46 -35
  74. package/dist/solutions-components/demos/pdf-download.html +8 -1
  75. package/dist/solutions-components/p-07593958.entry.js +6 -0
  76. package/dist/solutions-components/p-3fa9b3c8.js +36 -0
  77. package/dist/solutions-components/p-9b5a9117.entry.js +12 -0
  78. package/dist/solutions-components/{p-15cd8a97.js → p-9c1ebc90.js} +1 -1
  79. package/dist/solutions-components/{p-c76f8ff7.entry.js → p-a516c658.entry.js} +1 -1
  80. package/dist/solutions-components/{p-ad42039f.js → p-b668daf8.js} +2 -2
  81. package/dist/solutions-components/p-bfa95147.entry.js +17 -0
  82. package/dist/solutions-components/p-d09a168c.entry.js +6 -0
  83. package/dist/solutions-components/{p-fa6046a8.entry.js → p-fc9609e6.entry.js} +2 -2
  84. package/dist/solutions-components/solutions-components.esm.js +1 -1
  85. package/dist/solutions-components/utils/csvUtils.ts +6 -4
  86. package/dist/solutions-components/utils/interfaces.ts +65 -1
  87. package/dist/solutions-components/utils/mapViewUtils.ts +50 -27
  88. package/dist/solutions-components/utils/publicNotificationStore.ts +3 -1
  89. package/dist/solutions-components/utils/queryUtils.ts +2 -2
  90. package/dist/types/components/buffer-tools/buffer-tools.d.ts +4 -3
  91. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +22 -11
  92. package/dist/types/components/map-search/map-search.d.ts +18 -1
  93. package/dist/types/components/map-select-tools/map-select-tools.d.ts +31 -1
  94. package/dist/types/components/pdf-download/pdf-download.d.ts +7 -2
  95. package/dist/types/components/public-notification/public-notification.d.ts +98 -4
  96. package/dist/types/components/refine-selection/refine-selection.d.ts +5 -0
  97. package/dist/types/components/refine-selection-tools/refine-selection-tools.d.ts +6 -1
  98. package/dist/types/components.d.ts +154 -180
  99. package/dist/types/preact.d.ts +0 -10
  100. package/dist/types/utils/csvUtils.d.ts +1 -1
  101. package/dist/types/utils/interfaces.d.ts +56 -1
  102. package/dist/types/utils/mapViewUtils.d.ts +19 -9
  103. package/dist/types/utils/publicNotificationStore.d.ts +1 -0
  104. package/package.json +1 -1
  105. package/dist/cjs/check-list.cjs.entry.js +0 -103
  106. package/dist/cjs/config-buffer-tools.cjs.entry.js +0 -125
  107. package/dist/cjs/config-draw-tools.cjs.entry.js +0 -85
  108. package/dist/cjs/config-layer-picker.cjs.entry.js +0 -113
  109. package/dist/cjs/config-pdf-download.cjs.entry.js +0 -117
  110. package/dist/cjs/labelFormats-3236d2e0.js +0 -212
  111. package/dist/collection/components/check-list/check-list.css +0 -3
  112. package/dist/collection/components/check-list/check-list.js +0 -179
  113. package/dist/collection/components/config-buffer-tools/config-buffer-tools.css +0 -34
  114. package/dist/collection/components/config-buffer-tools/config-buffer-tools.js +0 -209
  115. package/dist/collection/components/config-draw-tools/config-draw-tools.css +0 -17
  116. package/dist/collection/components/config-draw-tools/config-draw-tools.js +0 -150
  117. package/dist/collection/components/config-layer-picker/config-layer-picker.css +0 -17
  118. package/dist/collection/components/config-layer-picker/config-layer-picker.js +0 -218
  119. package/dist/collection/components/config-pdf-download/config-pdf-download.css +0 -17
  120. package/dist/collection/components/config-pdf-download/config-pdf-download.js +0 -183
  121. package/dist/collection/demos/check-list.html +0 -65
  122. package/dist/collection/demos/config-buffer-tools.html +0 -92
  123. package/dist/collection/demos/config-draw-tools.html +0 -58
  124. package/dist/collection/demos/config-layer-picker.html +0 -97
  125. package/dist/components/check-list.d.ts +0 -11
  126. package/dist/components/check-list.js +0 -11
  127. package/dist/components/check-list2.js +0 -131
  128. package/dist/components/config-buffer-tools.d.ts +0 -11
  129. package/dist/components/config-buffer-tools.js +0 -187
  130. package/dist/components/config-draw-tools.d.ts +0 -11
  131. package/dist/components/config-draw-tools.js +0 -121
  132. package/dist/components/config-layer-picker.d.ts +0 -11
  133. package/dist/components/config-layer-picker.js +0 -163
  134. package/dist/components/config-pdf-download.d.ts +0 -11
  135. package/dist/components/config-pdf-download.js +0 -154
  136. package/dist/components/labelFormats.js +0 -210
  137. package/dist/components/mapViewUtils.js +0 -129
  138. package/dist/esm/check-list.entry.js +0 -99
  139. package/dist/esm/config-buffer-tools.entry.js +0 -121
  140. package/dist/esm/config-draw-tools.entry.js +0 -81
  141. package/dist/esm/config-layer-picker.entry.js +0 -109
  142. package/dist/esm/config-pdf-download.entry.js +0 -113
  143. package/dist/esm/labelFormats-b37958c3.js +0 -210
  144. package/dist/solutions-components/demos/check-list.html +0 -65
  145. package/dist/solutions-components/demos/config-buffer-tools.html +0 -92
  146. package/dist/solutions-components/demos/config-draw-tools.html +0 -58
  147. package/dist/solutions-components/demos/config-layer-picker.html +0 -97
  148. package/dist/solutions-components/p-16a0e65a.entry.js +0 -6
  149. package/dist/solutions-components/p-35078393.entry.js +0 -17
  150. package/dist/solutions-components/p-3d72bba6.entry.js +0 -6
  151. package/dist/solutions-components/p-3e444242.entry.js +0 -6
  152. package/dist/solutions-components/p-67afea92.entry.js +0 -12
  153. package/dist/solutions-components/p-7dcab29d.js +0 -36
  154. package/dist/solutions-components/p-89f7b02a.entry.js +0 -6
  155. package/dist/solutions-components/p-906b7b96.entry.js +0 -6
  156. package/dist/solutions-components/p-99c98510.entry.js +0 -6
  157. package/dist/solutions-components/p-b1a3605f.entry.js +0 -6
  158. package/dist/solutions-components/p-e99b1247.js +0 -6
  159. package/dist/types/components/check-list/check-list.d.ts +0 -57
  160. package/dist/types/components/config-buffer-tools/config-buffer-tools.d.ts +0 -92
  161. package/dist/types/components/config-draw-tools/config-draw-tools.d.ts +0 -58
  162. package/dist/types/components/config-layer-picker/config-layer-picker.d.ts +0 -83
  163. package/dist/types/components/config-pdf-download/config-pdf-download.d.ts +0 -81
@@ -5,7 +5,7 @@
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 { EExpandType, ERefineMode, ESelectionMode, ESketchType, EWorkflowType, IInfoCardValues, IInventoryItem, IMapInfo, IMediaCardValues, ISearchResult, ISelectionSet, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, SelectionMode } from "./utils/interfaces";
8
+ import { DistanceUnit, EExpandType, ERefineMode, ESelectionMode, ESketchType, EWorkflowType, IExportOptions, IInfoCardValues, IInventoryItem, IMapInfo, IMediaCardValues, ISearchConfiguration, ISearchResult, ISelectionSet, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, SelectionMode } from "./utils/interfaces";
9
9
  import { UserSession } from "@esri/solution-common";
10
10
  export namespace Components {
11
11
  interface AddRecordModal {
@@ -44,85 +44,14 @@ export namespace Components {
44
44
  */
45
45
  "unionResults": boolean;
46
46
  /**
47
- * LinearUnits: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#LinearUnits
47
+ * DistanceUnit: "feet"|"meters"|"miles"|"kilometers"
48
48
  */
49
- "unit": __esri.LinearUnits;
49
+ "unit": DistanceUnit;
50
50
  }
51
51
  interface CardManager {
52
52
  }
53
- interface CheckList {
54
- /**
55
- * boolean: All checkboxes checked state will be set with this value on first render. Default is true
56
- */
57
- "defaultChecked": boolean;
58
- /**
59
- * Returns a key/value pair that represents the checkbox value and checked state
60
- * @returns Promise with the state of the checkboxes
61
- */
62
- "getConfigInfo": () => Promise<{ [key: string]: boolean; }>;
63
- /**
64
- * string []: The values to render beside the checkboxes
65
- */
66
- "values": string[];
67
- }
68
53
  interface CommentCard {
69
54
  }
70
- interface ConfigBufferTools {
71
- /**
72
- * number: Default distance value.
73
- */
74
- "distance": number;
75
- /**
76
- * Returns a key/value pair that represents the checkbox value and checked state
77
- * @returns Promise with the state of the checkboxes
78
- */
79
- "getConfigInfo": () => Promise<{ [key: string]: string | number; }>;
80
- /**
81
- * string: Default unit value. Should be a unit listed in assets/t9n/config-buffer-tools/resources
82
- */
83
- "unit": string;
84
- }
85
- interface ConfigDrawTools {
86
- /**
87
- * boolean: All checkboxes checked state will be set with this value on first render. Default is true
88
- */
89
- "defaultChecked": boolean;
90
- /**
91
- * Returns a key/value pair that represents the checkbox value and checked state
92
- * @returns Promise with the state of the checkboxes
93
- */
94
- "getConfigInfo": () => Promise<{ [key: string]: boolean; }>;
95
- }
96
- interface ConfigLayerPicker {
97
- /**
98
- * boolean: All checkboxes checked state will be set with this value on first render. Default is true
99
- */
100
- "defaultChecked": boolean;
101
- /**
102
- * Returns a list of layers that have been selected
103
- * @returns Promise with a list of layer names to use
104
- */
105
- "getConfigInfo": () => Promise<string[]>;
106
- /**
107
- * string: Value to be shown above the check list Allows this to support multiple sets of layers.
108
- */
109
- "instruction": string;
110
- /**
111
- * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
112
- */
113
- "mapView": __esri.MapView;
114
- }
115
- interface ConfigPdfDownload {
116
- /**
117
- * boolean: All checkboxes checked state will be set with this value on first render. Default is true
118
- */
119
- "defaultChecked": boolean;
120
- /**
121
- * Returns a key/value pair that represents the checkbox value and checked state
122
- * @returns Promise with the state of the checkboxes
123
- */
124
- "getConfigInfo": () => Promise<{ [key: string]: boolean; }>;
125
- }
126
55
  interface CrowdsourceManager {
127
56
  }
128
57
  interface CrowdsourceReporter {
@@ -234,17 +163,17 @@ export namespace Components {
234
163
  }
235
164
  interface MapLayerPicker {
236
165
  /**
237
- * string[]: list of layer names from the map
166
+ * string[]: Optional list of enabled layer ids If empty all layers will be available
238
167
  */
239
- "layerNames": string[];
168
+ "enabledLayerIds": string[];
240
169
  /**
241
170
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
242
171
  */
243
172
  "mapView": __esri.MapView;
244
173
  /**
245
- * string[]: list of layers that have been selected by the end user
174
+ * string[]: list of layer ids that have been selected by the end user
246
175
  */
247
- "selectedLayers": string[];
176
+ "selectedLayerIds": string[];
248
177
  /**
249
178
  * SelectionMode: "single" | "multi" Should the component support selection against a single layer or multiple layers.
250
179
  */
@@ -260,6 +189,10 @@ export namespace Components {
260
189
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
261
190
  */
262
191
  "mapView": __esri.MapView;
192
+ /**
193
+ * ISearchConfiguration: Configuration details for the Search widget
194
+ */
195
+ "searchConfiguration": ISearchConfiguration;
263
196
  }
264
197
  interface MapSelectTools {
265
198
  /**
@@ -267,6 +200,18 @@ export namespace Components {
267
200
  * @returns Promise when the results have been cleared
268
201
  */
269
202
  "clearSelection": () => Promise<void>;
203
+ /**
204
+ * number: The default value to show for the buffer distance
205
+ */
206
+ "defaultBufferDistance": number;
207
+ /**
208
+ * number: The default value to show for the buffer unit
209
+ */
210
+ "defaultBufferUnit": DistanceUnit;
211
+ /**
212
+ * string[]: Optional list of enabled layer ids If empty all layers will be available
213
+ */
214
+ "enabledLayerIds": string[];
270
215
  /**
271
216
  * esri/geometry: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html
272
217
  */
@@ -284,6 +229,10 @@ export namespace Components {
284
229
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
285
230
  */
286
231
  "mapView": __esri.MapView;
232
+ /**
233
+ * ISearchConfiguration: Configuration details for the Search widget
234
+ */
235
+ "searchConfiguration": ISearchConfiguration;
287
236
  /**
288
237
  * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
289
238
  */
@@ -316,7 +265,7 @@ export namespace Components {
316
265
  * @param removeDuplicates When true a single label is generated when multiple featues have a shared address value
317
266
  * @returns Promise resolving when function is done
318
267
  */
319
- "downloadCSV": (ids: number[], removeDuplicates: boolean) => Promise<void>;
268
+ "downloadCSV": (ids: number[], removeDuplicates: boolean, addColumnTitle: boolean) => Promise<void>;
320
269
  /**
321
270
  * Downloads pdf of mailing labels for the provided list of ids
322
271
  * @param ids List of ids to download
@@ -324,6 +273,10 @@ export namespace Components {
324
273
  * @returns Promise resolving when function is done
325
274
  */
326
275
  "downloadPDF": (ids: number[], removeDuplicates: boolean) => Promise<void>;
276
+ /**
277
+ * string[]: Optional list of enabled size values for PDF export If empty all sizes will be enabled
278
+ */
279
+ "enabledSizeValues": number[];
327
280
  /**
328
281
  * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
329
282
  */
@@ -331,17 +284,53 @@ export namespace Components {
331
284
  }
332
285
  interface PublicNotification {
333
286
  /**
334
- * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
287
+ * string[]: List of layer ids that should be shown as potential addressee layers
335
288
  */
336
- "addresseeLayer": __esri.FeatureLayerView;
289
+ "addresseeLayerIds": string[];
290
+ /**
291
+ * number: The default value to show for the buffer distance
292
+ */
293
+ "defaultBufferDistance": number;
294
+ /**
295
+ * number: The default value to show for the buffer unit ("feet"|"meters"|"miles"|"kilometers")
296
+ */
297
+ "defaultBufferUnit": DistanceUnit;
298
+ /**
299
+ * IExportOptions: Set of options that control export capabilities If not provided all export capabilities will be enabled.
300
+ */
301
+ "exportOptions": IExportOptions;
302
+ /**
303
+ * The effect that will be applied when featureHighlightEnabled is true esri/layers/support/FeatureEffect: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html
304
+ */
305
+ "featureEffect": __esri.FeatureEffect;
306
+ /**
307
+ * boolean: When enabled features will be highlighted when their notification list item is clicked.
308
+ */
309
+ "featureHighlightEnabled": boolean;
337
310
  /**
338
311
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
339
312
  */
340
313
  "mapView": __esri.MapView;
314
+ /**
315
+ * string: The value to show for no results when left empty the default text "0 selected features from {layerTitle}" will be shown
316
+ */
317
+ "noResultText": string;
318
+ /**
319
+ * ISearchConfiguration: Configuration details for the Search widget
320
+ */
321
+ "searchConfiguration": ISearchConfiguration;
322
+ /**
323
+ * string[]: List of layer ids that should be shown as potential selection layers when skectching with "Use layer features" option
324
+ */
325
+ "selectionLayerIds": string[];
341
326
  /**
342
327
  * boolean: When true the refine selection workflow will be included in the UI
343
328
  */
344
329
  "showRefineSelection": boolean;
330
+ /**
331
+ * boolean: When false no buffer distance or unit controls will be exposed
332
+ */
333
+ "showSearchSettings": boolean;
345
334
  }
346
335
  interface RefineSelection {
347
336
  "GraphicsLayer": any;
@@ -350,6 +339,10 @@ export namespace Components {
350
339
  * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
351
340
  */
352
341
  "addresseeLayer": __esri.FeatureLayerView;
342
+ /**
343
+ * string[]: Optional list of enabled layer ids If empty all layers will be available
344
+ */
345
+ "enabledLayerIds": string[];
353
346
  /**
354
347
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
355
348
  */
@@ -373,6 +366,10 @@ export namespace Components {
373
366
  * @returns Promise when complete
374
367
  */
375
368
  "clearHighlight": () => Promise<void>;
369
+ /**
370
+ * string[]: Optional list of enabled layer ids If empty all layers will be available
371
+ */
372
+ "enabledLayerIds": string[];
376
373
  /**
377
374
  * esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html
378
375
  */
@@ -649,42 +646,12 @@ declare global {
649
646
  prototype: HTMLCardManagerElement;
650
647
  new (): HTMLCardManagerElement;
651
648
  };
652
- interface HTMLCheckListElement extends Components.CheckList, HTMLStencilElement {
653
- }
654
- var HTMLCheckListElement: {
655
- prototype: HTMLCheckListElement;
656
- new (): HTMLCheckListElement;
657
- };
658
649
  interface HTMLCommentCardElement extends Components.CommentCard, HTMLStencilElement {
659
650
  }
660
651
  var HTMLCommentCardElement: {
661
652
  prototype: HTMLCommentCardElement;
662
653
  new (): HTMLCommentCardElement;
663
654
  };
664
- interface HTMLConfigBufferToolsElement extends Components.ConfigBufferTools, HTMLStencilElement {
665
- }
666
- var HTMLConfigBufferToolsElement: {
667
- prototype: HTMLConfigBufferToolsElement;
668
- new (): HTMLConfigBufferToolsElement;
669
- };
670
- interface HTMLConfigDrawToolsElement extends Components.ConfigDrawTools, HTMLStencilElement {
671
- }
672
- var HTMLConfigDrawToolsElement: {
673
- prototype: HTMLConfigDrawToolsElement;
674
- new (): HTMLConfigDrawToolsElement;
675
- };
676
- interface HTMLConfigLayerPickerElement extends Components.ConfigLayerPicker, HTMLStencilElement {
677
- }
678
- var HTMLConfigLayerPickerElement: {
679
- prototype: HTMLConfigLayerPickerElement;
680
- new (): HTMLConfigLayerPickerElement;
681
- };
682
- interface HTMLConfigPdfDownloadElement extends Components.ConfigPdfDownload, HTMLStencilElement {
683
- }
684
- var HTMLConfigPdfDownloadElement: {
685
- prototype: HTMLConfigPdfDownloadElement;
686
- new (): HTMLConfigPdfDownloadElement;
687
- };
688
655
  interface HTMLCrowdsourceManagerElement extends Components.CrowdsourceManager, HTMLStencilElement {
689
656
  }
690
657
  var HTMLCrowdsourceManagerElement: {
@@ -875,12 +842,7 @@ declare global {
875
842
  "add-record-modal": HTMLAddRecordModalElement;
876
843
  "buffer-tools": HTMLBufferToolsElement;
877
844
  "card-manager": HTMLCardManagerElement;
878
- "check-list": HTMLCheckListElement;
879
845
  "comment-card": HTMLCommentCardElement;
880
- "config-buffer-tools": HTMLConfigBufferToolsElement;
881
- "config-draw-tools": HTMLConfigDrawToolsElement;
882
- "config-layer-picker": HTMLConfigLayerPickerElement;
883
- "config-pdf-download": HTMLConfigPdfDownloadElement;
884
846
  "crowdsource-manager": HTMLCrowdsourceManagerElement;
885
847
  "crowdsource-reporter": HTMLCrowdsourceReporterElement;
886
848
  "deduct-calculator": HTMLDeductCalculatorElement;
@@ -955,60 +917,14 @@ declare namespace LocalJSX {
955
917
  */
956
918
  "unionResults"?: boolean;
957
919
  /**
958
- * LinearUnits: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#LinearUnits
920
+ * DistanceUnit: "feet"|"meters"|"miles"|"kilometers"
959
921
  */
960
- "unit"?: __esri.LinearUnits;
922
+ "unit"?: DistanceUnit;
961
923
  }
962
924
  interface CardManager {
963
925
  }
964
- interface CheckList {
965
- /**
966
- * boolean: All checkboxes checked state will be set with this value on first render. Default is true
967
- */
968
- "defaultChecked"?: boolean;
969
- /**
970
- * string []: The values to render beside the checkboxes
971
- */
972
- "values"?: string[];
973
- }
974
926
  interface CommentCard {
975
927
  }
976
- interface ConfigBufferTools {
977
- /**
978
- * number: Default distance value.
979
- */
980
- "distance"?: number;
981
- /**
982
- * string: Default unit value. Should be a unit listed in assets/t9n/config-buffer-tools/resources
983
- */
984
- "unit"?: string;
985
- }
986
- interface ConfigDrawTools {
987
- /**
988
- * boolean: All checkboxes checked state will be set with this value on first render. Default is true
989
- */
990
- "defaultChecked"?: boolean;
991
- }
992
- interface ConfigLayerPicker {
993
- /**
994
- * boolean: All checkboxes checked state will be set with this value on first render. Default is true
995
- */
996
- "defaultChecked"?: boolean;
997
- /**
998
- * string: Value to be shown above the check list Allows this to support multiple sets of layers.
999
- */
1000
- "instruction"?: string;
1001
- /**
1002
- * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
1003
- */
1004
- "mapView"?: __esri.MapView;
1005
- }
1006
- interface ConfigPdfDownload {
1007
- /**
1008
- * boolean: All checkboxes checked state will be set with this value on first render. Default is true
1009
- */
1010
- "defaultChecked"?: boolean;
1011
- }
1012
928
  interface CrowdsourceManager {
1013
929
  }
1014
930
  interface CrowdsourceReporter {
@@ -1107,9 +1023,9 @@ declare namespace LocalJSX {
1107
1023
  }
1108
1024
  interface MapLayerPicker {
1109
1025
  /**
1110
- * string[]: list of layer names from the map
1026
+ * string[]: Optional list of enabled layer ids If empty all layers will be available
1111
1027
  */
1112
- "layerNames"?: string[];
1028
+ "enabledLayerIds"?: string[];
1113
1029
  /**
1114
1030
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
1115
1031
  */
@@ -1119,9 +1035,9 @@ declare namespace LocalJSX {
1119
1035
  */
1120
1036
  "onLayerSelectionChange"?: (event: MapLayerPickerCustomEvent<string[]>) => void;
1121
1037
  /**
1122
- * string[]: list of layers that have been selected by the end user
1038
+ * string[]: list of layer ids that have been selected by the end user
1123
1039
  */
1124
- "selectedLayers"?: string[];
1040
+ "selectedLayerIds"?: string[];
1125
1041
  /**
1126
1042
  * SelectionMode: "single" | "multi" Should the component support selection against a single layer or multiple layers.
1127
1043
  */
@@ -1136,8 +1052,24 @@ declare namespace LocalJSX {
1136
1052
  * Emitted on demand when the status of the search widget changes
1137
1053
  */
1138
1054
  "onSearchChange"?: (event: MapSearchCustomEvent<ISearchResult>) => void;
1055
+ /**
1056
+ * ISearchConfiguration: Configuration details for the Search widget
1057
+ */
1058
+ "searchConfiguration"?: ISearchConfiguration;
1139
1059
  }
1140
1060
  interface MapSelectTools {
1061
+ /**
1062
+ * number: The default value to show for the buffer distance
1063
+ */
1064
+ "defaultBufferDistance"?: number;
1065
+ /**
1066
+ * number: The default value to show for the buffer unit
1067
+ */
1068
+ "defaultBufferUnit"?: DistanceUnit;
1069
+ /**
1070
+ * string[]: Optional list of enabled layer ids If empty all layers will be available
1071
+ */
1072
+ "enabledLayerIds"?: string[];
1141
1073
  /**
1142
1074
  * esri/geometry: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html
1143
1075
  */
@@ -1162,6 +1094,10 @@ declare namespace LocalJSX {
1162
1094
  * Emitted on demand when the workflow type changes.
1163
1095
  */
1164
1096
  "onWorkflowTypeChange"?: (event: MapSelectToolsCustomEvent<EWorkflowType>) => void;
1097
+ /**
1098
+ * ISearchConfiguration: Configuration details for the Search widget
1099
+ */
1100
+ "searchConfiguration"?: ISearchConfiguration;
1165
1101
  /**
1166
1102
  * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
1167
1103
  */
@@ -1188,6 +1124,10 @@ declare namespace LocalJSX {
1188
1124
  * boolean: Controls the enabled/disabled state of download
1189
1125
  */
1190
1126
  "disabled"?: boolean;
1127
+ /**
1128
+ * string[]: Optional list of enabled size values for PDF export If empty all sizes will be enabled
1129
+ */
1130
+ "enabledSizeValues"?: number[];
1191
1131
  /**
1192
1132
  * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
1193
1133
  */
@@ -1195,17 +1135,53 @@ declare namespace LocalJSX {
1195
1135
  }
1196
1136
  interface PublicNotification {
1197
1137
  /**
1198
- * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
1138
+ * string[]: List of layer ids that should be shown as potential addressee layers
1199
1139
  */
1200
- "addresseeLayer"?: __esri.FeatureLayerView;
1140
+ "addresseeLayerIds"?: string[];
1141
+ /**
1142
+ * number: The default value to show for the buffer distance
1143
+ */
1144
+ "defaultBufferDistance"?: number;
1145
+ /**
1146
+ * number: The default value to show for the buffer unit ("feet"|"meters"|"miles"|"kilometers")
1147
+ */
1148
+ "defaultBufferUnit"?: DistanceUnit;
1149
+ /**
1150
+ * IExportOptions: Set of options that control export capabilities If not provided all export capabilities will be enabled.
1151
+ */
1152
+ "exportOptions"?: IExportOptions;
1153
+ /**
1154
+ * The effect that will be applied when featureHighlightEnabled is true esri/layers/support/FeatureEffect: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html
1155
+ */
1156
+ "featureEffect"?: __esri.FeatureEffect;
1157
+ /**
1158
+ * boolean: When enabled features will be highlighted when their notification list item is clicked.
1159
+ */
1160
+ "featureHighlightEnabled"?: boolean;
1201
1161
  /**
1202
1162
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
1203
1163
  */
1204
1164
  "mapView"?: __esri.MapView;
1165
+ /**
1166
+ * string: The value to show for no results when left empty the default text "0 selected features from {layerTitle}" will be shown
1167
+ */
1168
+ "noResultText"?: string;
1169
+ /**
1170
+ * ISearchConfiguration: Configuration details for the Search widget
1171
+ */
1172
+ "searchConfiguration"?: ISearchConfiguration;
1173
+ /**
1174
+ * string[]: List of layer ids that should be shown as potential selection layers when skectching with "Use layer features" option
1175
+ */
1176
+ "selectionLayerIds"?: string[];
1205
1177
  /**
1206
1178
  * boolean: When true the refine selection workflow will be included in the UI
1207
1179
  */
1208
1180
  "showRefineSelection"?: boolean;
1181
+ /**
1182
+ * boolean: When false no buffer distance or unit controls will be exposed
1183
+ */
1184
+ "showSearchSettings"?: boolean;
1209
1185
  }
1210
1186
  interface RefineSelection {
1211
1187
  "GraphicsLayer"?: any;
@@ -1214,6 +1190,10 @@ declare namespace LocalJSX {
1214
1190
  * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
1215
1191
  */
1216
1192
  "addresseeLayer"?: __esri.FeatureLayerView;
1193
+ /**
1194
+ * string[]: Optional list of enabled layer ids If empty all layers will be available
1195
+ */
1196
+ "enabledLayerIds"?: string[];
1217
1197
  /**
1218
1198
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
1219
1199
  */
@@ -1236,6 +1216,10 @@ declare namespace LocalJSX {
1236
1216
  * boolean: Optionally draw a border around the draw tools
1237
1217
  */
1238
1218
  "border"?: boolean;
1219
+ /**
1220
+ * string[]: Optional list of enabled layer ids If empty all layers will be available
1221
+ */
1222
+ "enabledLayerIds"?: string[];
1239
1223
  /**
1240
1224
  * esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html
1241
1225
  */
@@ -1428,12 +1412,7 @@ declare namespace LocalJSX {
1428
1412
  "add-record-modal": AddRecordModal;
1429
1413
  "buffer-tools": BufferTools;
1430
1414
  "card-manager": CardManager;
1431
- "check-list": CheckList;
1432
1415
  "comment-card": CommentCard;
1433
- "config-buffer-tools": ConfigBufferTools;
1434
- "config-draw-tools": ConfigDrawTools;
1435
- "config-layer-picker": ConfigLayerPicker;
1436
- "config-pdf-download": ConfigPdfDownload;
1437
1416
  "crowdsource-manager": CrowdsourceManager;
1438
1417
  "crowdsource-reporter": CrowdsourceReporter;
1439
1418
  "deduct-calculator": DeductCalculator;
@@ -1474,12 +1453,7 @@ declare module "@stencil/core" {
1474
1453
  "add-record-modal": LocalJSX.AddRecordModal & JSXBase.HTMLAttributes<HTMLAddRecordModalElement>;
1475
1454
  "buffer-tools": LocalJSX.BufferTools & JSXBase.HTMLAttributes<HTMLBufferToolsElement>;
1476
1455
  "card-manager": LocalJSX.CardManager & JSXBase.HTMLAttributes<HTMLCardManagerElement>;
1477
- "check-list": LocalJSX.CheckList & JSXBase.HTMLAttributes<HTMLCheckListElement>;
1478
1456
  "comment-card": LocalJSX.CommentCard & JSXBase.HTMLAttributes<HTMLCommentCardElement>;
1479
- "config-buffer-tools": LocalJSX.ConfigBufferTools & JSXBase.HTMLAttributes<HTMLConfigBufferToolsElement>;
1480
- "config-draw-tools": LocalJSX.ConfigDrawTools & JSXBase.HTMLAttributes<HTMLConfigDrawToolsElement>;
1481
- "config-layer-picker": LocalJSX.ConfigLayerPicker & JSXBase.HTMLAttributes<HTMLConfigLayerPickerElement>;
1482
- "config-pdf-download": LocalJSX.ConfigPdfDownload & JSXBase.HTMLAttributes<HTMLConfigPdfDownloadElement>;
1483
1457
  "crowdsource-manager": LocalJSX.CrowdsourceManager & JSXBase.HTMLAttributes<HTMLCrowdsourceManagerElement>;
1484
1458
  "crowdsource-reporter": LocalJSX.CrowdsourceReporter & JSXBase.HTMLAttributes<HTMLCrowdsourceReporterElement>;
1485
1459
  "deduct-calculator": LocalJSX.DeductCalculator & JSXBase.HTMLAttributes<HTMLDeductCalculatorElement>;
@@ -416,18 +416,8 @@ declare module "preact/src/jsx" {
416
416
 
417
417
  "card-manager": JSX.SolutionsCardManager & JSXInternal.HTMLAttributes<HTMLSolutionsCardManagerElement>
418
418
 
419
- "check-list": JSX.SolutionsCheckList & JSXInternal.HTMLAttributes<HTMLSolutionsCheckListElement>
420
-
421
419
  "comment-card": JSX.SolutionsCommentCard & JSXInternal.HTMLAttributes<HTMLSolutionsCommentCardElement>
422
420
 
423
- "config-buffer-tools": JSX.SolutionsConfigBufferTools & JSXInternal.HTMLAttributes<HTMLSolutionsConfigBufferToolsElement>
424
-
425
- "config-draw-tools": JSX.SolutionsConfigDrawTools & JSXInternal.HTMLAttributes<HTMLSolutionsConfigDrawToolsElement>
426
-
427
- "config-layer-picker": JSX.SolutionsConfigLayerPicker & JSXInternal.HTMLAttributes<HTMLSolutionsConfigLayerPickerElement>
428
-
429
- "config-pdf-download": JSX.SolutionsConfigPdfDownload & JSXInternal.HTMLAttributes<HTMLSolutionsConfigPdfDownloadElement>
430
-
431
421
  "crowdsource-manager": JSX.SolutionsCrowdsourceManager & JSXInternal.HTMLAttributes<HTMLSolutionsCrowdsourceManagerElement>
432
422
 
433
423
  "crowdsource-reporter": JSX.SolutionsCrowdsourceReporter & JSXInternal.HTMLAttributes<HTMLSolutionsCrowdsourceReporterElement>
@@ -22,4 +22,4 @@
22
22
  *
23
23
  * @returns Promise when the function has completed
24
24
  */
25
- export declare function exportCSV(layerView: __esri.FeatureLayerView, ids: number[]): Promise<void>;
25
+ export declare function exportCSV(layerView: __esri.FeatureLayerView, ids: number[], addColumnTitle: boolean): Promise<void>;
@@ -65,6 +65,60 @@ export declare enum EExpandType {
65
65
  COLLAPSE = "COLLAPSE"
66
66
  }
67
67
  export type SelectionMode = "single" | "multi";
68
+ export type ValidSize = 6 | 10 | 14 | 20 | 30 | 60 | 80;
69
+ export type DistanceUnit = "feet" | "meters" | "miles" | "kilometers";
70
+ export interface IExportOptions {
71
+ csvOptions: ICsvOptions;
72
+ pdfOptions: IPdfOptions;
73
+ }
74
+ export interface ICsvOptions {
75
+ enabled: boolean;
76
+ addColumnTitle: boolean;
77
+ }
78
+ export interface IPdfOptions {
79
+ enabled: boolean;
80
+ enabledSizeValues: ValidSize[];
81
+ }
82
+ export interface ISearchConfiguration {
83
+ activeSourceIndex?: number;
84
+ allPlaceholder?: string;
85
+ includeDefaultSources?: boolean;
86
+ searchAllEnabled?: boolean;
87
+ sources: Array<ILocatorSourceConfigItem | ILayerSourceConfigItem>;
88
+ }
89
+ interface ISearchSourceConfigItem {
90
+ maxResults: number;
91
+ maxSuggestions: number;
92
+ minSuggestCharacters: number;
93
+ name: string;
94
+ suggestionsEnabled: boolean;
95
+ placeholder: string;
96
+ withinViewEnabled: boolean;
97
+ zoomScale: number;
98
+ }
99
+ export interface ILocatorSourceConfigItem extends ISearchSourceConfigItem {
100
+ url: string;
101
+ singleLineFieldName: string;
102
+ countryCode: string;
103
+ }
104
+ export interface ILayerSourceConfigItem extends ISearchSourceConfigItem {
105
+ displayField: string;
106
+ exactMatch: boolean;
107
+ layer: {
108
+ url: string | __esri.FeatureLayer;
109
+ id: string;
110
+ };
111
+ outFields: string[];
112
+ searchFields: string;
113
+ popupTemplate: any;
114
+ popupEnabled: boolean;
115
+ }
116
+ /**
117
+ * Layer id and title key value pair
118
+ */
119
+ export interface ILayerHash {
120
+ [key: string]: string;
121
+ }
68
122
  /**
69
123
  * Key details from the templates item
70
124
  */
@@ -268,7 +322,7 @@ export interface ISelectionSet {
268
322
  buffer: __esri.Geometry;
269
323
  distance: number;
270
324
  download: boolean;
271
- unit: __esri.LinearUnits;
325
+ unit: DistanceUnit;
272
326
  label: string;
273
327
  selectedIds: number[];
274
328
  layerView: __esri.FeatureLayerView;
@@ -300,3 +354,4 @@ export interface IMapInfo {
300
354
  id: string;
301
355
  name: string;
302
356
  }
357
+ export {};