@esri/solutions-components 0.3.2 → 0.3.3

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 (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
@@ -19,23 +19,28 @@ import { SelectionMode } from "../../utils/interfaces";
19
19
  export declare class MapLayerPicker {
20
20
  el: HTMLMapLayerPickerElement;
21
21
  /**
22
- * string[]: list of layer names from the map
22
+ * string[]: Optional list of enabled layer ids
23
+ * If empty all layers will be available
23
24
  */
24
- layerNames: string[];
25
+ enabledLayerIds: string[];
25
26
  /**
26
27
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
27
28
  */
28
29
  mapView: __esri.MapView;
29
30
  /**
30
- * string[]: list of layers that have been selected by the end user
31
+ * string[]: list of layer ids that have been selected by the end user
31
32
  */
32
- selectedLayers: string[];
33
+ selectedLayerIds: string[];
33
34
  /**
34
35
  * SelectionMode: "single" | "multi"
35
36
  *
36
37
  * Should the component support selection against a single layer or multiple layers.
37
38
  */
38
39
  selectionMode: SelectionMode;
40
+ /**
41
+ * string[]: list of layer ids from the map
42
+ */
43
+ layerIds: string[];
39
44
  /**
40
45
  * HTMLCalciteSelectElement: The html element for selecting layers
41
46
  */
@@ -63,31 +68,37 @@ export declare class MapLayerPicker {
63
68
  *
64
69
  * Used for selecting a single layer.
65
70
  *
66
- * @returns Calcite Select component with the names of the layers from the map
71
+ * @returns Calcite Select component with the ids of the layers from the map
67
72
  */
68
73
  _getSelect(): VNode;
69
74
  /**
70
- * Create a list of layers from the map
75
+ * Create a list of layer ids from the map
71
76
  *
72
77
  * Used for selecting multiple layers
73
78
  *
74
- * @returns Calcite ComboBox component with the names of the layers from the map
79
+ * @returns Calcite ComboBox component with the ids of the layers from the map
75
80
  */
76
81
  _getCombobox(): VNode;
77
82
  /**
78
- * Hydrate a select or combobox component with the names of the layers in the map
83
+ * Hydrate a select or combobox component with the ids of the layers in the map
79
84
  *
80
- * @returns Array of ComboBox items or Select options for the names of the layers
85
+ * @returns Array of ComboBox items or Select options for the ids of the layers
81
86
  */
82
87
  _addMapLayersOptions(): VNode[];
83
88
  /**
84
- * Fetch the names of the layers from the map
89
+ * Fetch the ids of the layers from the map
85
90
  *
86
91
  * @returns Promise when the operation has completed
87
92
  */
88
93
  _setLayers(): Promise<void>;
89
94
  /**
90
- * Fetch the names of the layers from the map
95
+ * Create a layer id:title hash for layer name display
96
+ *
97
+ * @returns Promise when the operation has completed
98
+ */
99
+ protected _initLayerHashState(): Promise<void>;
100
+ /**
101
+ * Fetch the ids of the layers from the map
91
102
  *
92
103
  * @returns Promise when the operation has completed
93
104
  */
@@ -15,7 +15,7 @@
15
15
  */
16
16
  /// <reference types="arcgis-js-api" />
17
17
  import { EventEmitter, VNode } from "../../stencil-public-runtime";
18
- import { ISearchResult } from "../../utils/interfaces";
18
+ import { ISearchConfiguration, ISearchResult } from "../../utils/interfaces";
19
19
  import MapSearch_T9n from "../../assets/t9n/map-search/resources.json";
20
20
  export declare class MapSearch {
21
21
  el: HTMLElement;
@@ -23,6 +23,10 @@ export declare class MapSearch {
23
23
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
24
24
  */
25
25
  mapView: __esri.MapView;
26
+ /**
27
+ * ISearchConfiguration: Configuration details for the Search widget
28
+ */
29
+ searchConfiguration: ISearchConfiguration;
26
30
  /**
27
31
  * string: Text entered by the end user.
28
32
  * Used to search against the locator.
@@ -33,6 +37,10 @@ export declare class MapSearch {
33
37
  * All UI strings should be defined here.
34
38
  */
35
39
  protected _translations: typeof MapSearch_T9n;
40
+ /**
41
+ * esri/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html
42
+ */
43
+ protected FeatureLayer: typeof import("esri/layers/FeatureLayer");
36
44
  /**
37
45
  * esri/widgets/Search: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html
38
46
  */
@@ -94,6 +102,15 @@ export declare class MapSearch {
94
102
  * @protected
95
103
  */
96
104
  protected _initSearchWidget(): void;
105
+ /**
106
+ * Initialize the search widget based on user defined configuration
107
+ *
108
+ * @param searchConfiguration search configuration defined by the user
109
+ * @param view the current map view
110
+ *
111
+ * @protected
112
+ */
113
+ protected _getSearchConfig(searchConfiguration: ISearchConfiguration, view: __esri.MapView): ISearchConfiguration;
97
114
  /**
98
115
  * Fetches the component's translations
99
116
  *
@@ -15,10 +15,23 @@
15
15
  */
16
16
  /// <reference types="arcgis-js-api" />
17
17
  import { EventEmitter, VNode } from "../../stencil-public-runtime";
18
- import { EWorkflowType, ISelectionSet, ESketchType } from "../../utils/interfaces";
18
+ import { DistanceUnit, ISearchConfiguration, EWorkflowType, ISelectionSet, ESketchType } from "../../utils/interfaces";
19
19
  import MapSelectTools_T9n from "../../assets/t9n/map-select-tools/resources.json";
20
20
  export declare class MapSelectTools {
21
21
  el: HTMLMapSelectToolsElement;
22
+ /**
23
+ * string[]: Optional list of enabled layer ids
24
+ * If empty all layers will be available
25
+ */
26
+ enabledLayerIds: string[];
27
+ /**
28
+ * number: The default value to show for the buffer distance
29
+ */
30
+ defaultBufferDistance: number;
31
+ /**
32
+ * number: The default value to show for the buffer unit
33
+ */
34
+ defaultBufferUnit: DistanceUnit;
22
35
  /**
23
36
  * esri/geometry: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html
24
37
  */
@@ -31,6 +44,10 @@ export declare class MapSelectTools {
31
44
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
32
45
  */
33
46
  mapView: __esri.MapView;
47
+ /**
48
+ * ISearchConfiguration: Configuration details for the Search widget
49
+ */
50
+ searchConfiguration: ISearchConfiguration;
34
51
  /**
35
52
  * utils/interfaces/ISelectionSet: Used to store key details about any selections that have been made.
36
53
  */
@@ -58,6 +75,10 @@ export declare class MapSelectTools {
58
75
  * EWorkflowType: "SEARCH", "SELECT", "SKETCH", "REFINE"
59
76
  */
60
77
  _workflowType: EWorkflowType;
78
+ /**
79
+ * esri/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html
80
+ */
81
+ protected FeatureLayer: typeof import("esri/layers/FeatureLayer");
61
82
  /**
62
83
  * esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html
63
84
  */
@@ -210,6 +231,15 @@ export declare class MapSelectTools {
210
231
  * @protected
211
232
  */
212
233
  protected _initSearchWidget(): void;
234
+ /**
235
+ * Initialize the search widget based on user defined configuration
236
+ *
237
+ * @param searchConfiguration search configuration defined by the user
238
+ * @param view the current map view
239
+ *
240
+ * @protected
241
+ */
242
+ protected _getSearchConfig(searchConfiguration: ISearchConfiguration, view: __esri.MapView): ISearchConfiguration;
213
243
  /**
214
244
  * Initialize the graphics layer used to store any buffer grapghics
215
245
  *
@@ -23,6 +23,11 @@ export declare class PdfDownload {
23
23
  * boolean: Controls the enabled/disabled state of download
24
24
  */
25
25
  disabled: boolean;
26
+ /**
27
+ * string[]: Optional list of enabled size values for PDF export
28
+ * If empty all sizes will be enabled
29
+ */
30
+ enabledSizeValues: number[];
26
31
  /**
27
32
  * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
28
33
  */
@@ -51,7 +56,7 @@ export declare class PdfDownload {
51
56
  * @param removeDuplicates When true a single label is generated when multiple featues have a shared address value
52
57
  * @returns Promise resolving when function is done
53
58
  */
54
- downloadCSV(ids: number[], removeDuplicates: boolean): Promise<void>;
59
+ downloadCSV(ids: number[], removeDuplicates: boolean, addColumnTitle: boolean): Promise<void>;
55
60
  /**
56
61
  * StencilJS: Called once just after the component is first connected to the DOM.
57
62
  */
@@ -88,7 +93,7 @@ export declare class PdfDownload {
88
93
  * @returns Promise that will resolve when the download is complete
89
94
  * @protected
90
95
  */
91
- protected _downloadCSV(ids: number[], removeDuplicates: boolean): Promise<void>;
96
+ protected _downloadCSV(ids: number[], removeDuplicates: boolean, addColumnTitle: boolean): Promise<void>;
92
97
  /**
93
98
  * Gets the formatted pdf export size text
94
99
  *
@@ -15,22 +15,68 @@
15
15
  */
16
16
  /// <reference types="arcgis-js-api" />
17
17
  import { VNode } from "../../stencil-public-runtime";
18
- import { EExportType, EPageType, ESketchType, EWorkflowType, ISelectionSet } from "../../utils/interfaces";
18
+ import { DistanceUnit, EExportType, EPageType, ESketchType, EWorkflowType, IExportOptions, ISearchConfiguration, ISelectionSet } from "../../utils/interfaces";
19
19
  import NewPublicNotification_T9n from "../../assets/t9n/public-notification/resources.json";
20
20
  export declare class PublicNotification {
21
21
  el: HTMLPublicNotificationElement;
22
22
  /**
23
- * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
23
+ * string[]: List of layer ids that should be shown as potential addressee layers
24
24
  */
25
- addresseeLayer: __esri.FeatureLayerView;
25
+ addresseeLayerIds: string[];
26
+ /**
27
+ * number: The default value to show for the buffer distance
28
+ */
29
+ defaultBufferDistance: number;
30
+ /**
31
+ * number: The default value to show for the buffer unit ("feet"|"meters"|"miles"|"kilometers")
32
+ */
33
+ defaultBufferUnit: DistanceUnit;
34
+ /**
35
+ * IExportOptions: Set of options that control export capabilities
36
+ * If not provided all export capabilities will be enabled.
37
+ */
38
+ exportOptions: IExportOptions;
39
+ /**
40
+ * The effect that will be applied when featureHighlightEnabled is true
41
+ *
42
+ * esri/layers/support/FeatureEffect: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html
43
+ *
44
+ */
45
+ featureEffect: __esri.FeatureEffect;
46
+ /**
47
+ * boolean: When enabled features will be highlighted when their notification list item is clicked.
48
+ */
49
+ featureHighlightEnabled: boolean;
26
50
  /**
27
51
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
28
52
  */
29
53
  mapView: __esri.MapView;
54
+ /**
55
+ * string: The value to show for no results
56
+ * when left empty the default text "0 selected features from {layerTitle}" will be shown
57
+ */
58
+ noResultText: string;
59
+ /**
60
+ * ISearchConfiguration: Configuration details for the Search widget
61
+ */
62
+ searchConfiguration: ISearchConfiguration;
63
+ /**
64
+ * string[]: List of layer ids that should be shown as potential selection layers
65
+ * when skectching with "Use layer features" option
66
+ */
67
+ selectionLayerIds: string[];
30
68
  /**
31
69
  * boolean: When true the refine selection workflow will be included in the UI
32
70
  */
33
71
  showRefineSelection: boolean;
72
+ /**
73
+ * boolean: When false no buffer distance or unit controls will be exposed
74
+ */
75
+ showSearchSettings: boolean;
76
+ /**
77
+ * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
78
+ */
79
+ addresseeLayer: __esri.FeatureLayerView;
34
80
  /**
35
81
  * boolean: Enabled when we have 1 or more selection sets that is enabled in the download pages.
36
82
  * By default all selection sets are enabled for download when they are first created.
@@ -61,6 +107,10 @@ export declare class PublicNotification {
61
107
  * utils/interfaces/EWorkflowType: SEARCH | SELECT | SKETCH
62
108
  */
63
109
  _selectionWorkflowType: EWorkflowType;
110
+ /**
111
+ * boolean: When true a modal will be shown to alert users of potential changes to selection sets.
112
+ */
113
+ _showLayerSelectionChangeModal: boolean;
64
114
  /**
65
115
  * Contains the translations for this component.
66
116
  * All UI strings should be defined here.
@@ -78,6 +128,10 @@ export declare class PublicNotification {
78
128
  * esri/geometry/geometryEngine: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html
79
129
  */
80
130
  protected _geometryEngine: __esri.geometryEngine;
131
+ /**
132
+ * CustomEvent: Used to prevent default behavior of layer selection change
133
+ */
134
+ protected _layerSelectionChangeEvt: CustomEvent;
81
135
  /**
82
136
  * HTMLCalciteCheckboxElement: When enabled popups will be shown on map click
83
137
  */
@@ -162,6 +216,13 @@ export declare class PublicNotification {
162
216
  * @protected
163
217
  */
164
218
  protected _getListPage(): VNode;
219
+ /**
220
+ * Create the UI element that will expose the addressee layers
221
+ *
222
+ * @returns addressee layer list node
223
+ * @protected
224
+ */
225
+ protected _getMapLayerPicker(): VNode;
165
226
  /**
166
227
  * Create the selection sets list node for the List page
167
228
  *
@@ -169,6 +230,27 @@ export declare class PublicNotification {
169
230
  * @protected
170
231
  */
171
232
  protected _getSelectionSetList(): VNode;
233
+ /**
234
+ * Alert the user of the potential change to the selection sets and ask if they would like to proceed.
235
+ *
236
+ * @returns the page node
237
+ * @protected
238
+ */
239
+ protected _showModal(open: boolean): VNode;
240
+ /**
241
+ * Prevent the default behavior of layer selection change and close the modal.
242
+ *
243
+ * @returns the page node
244
+ * @protected
245
+ */
246
+ protected _cancelLayerChange(): void;
247
+ /**
248
+ * Allow the default behavior of layer selection change and close the modal.
249
+ *
250
+ * @returns the page node
251
+ * @protected
252
+ */
253
+ protected _handleLayerChange(): Promise<void>;
172
254
  /**
173
255
  * Create the Select page that shows the selection workflows
174
256
  *
@@ -310,12 +392,24 @@ export declare class PublicNotification {
310
392
  */
311
393
  protected _home(): Promise<void>;
312
394
  /**
313
- * Fetch the layer defined in the selection change event
395
+ * Fetch the addressee layer from the map if no selection sets exist.
396
+ * Alert the user of the potential change to the selection sets if they exist.
397
+ *
398
+ * @param evt layer selection change event
314
399
  *
315
400
  * @returns Promise when the function has completed
316
401
  * @protected
317
402
  */
318
403
  protected _layerSelectionChange(evt: CustomEvent): Promise<void>;
404
+ /**
405
+ * Fetch the new addressee layer and update the selection sets
406
+ *
407
+ * @param id the id of the layer to fetch
408
+ *
409
+ * @returns Promise when the function has completed
410
+ * @protected
411
+ */
412
+ protected _updateAddresseeLayer(id: string): Promise<void>;
319
413
  /**
320
414
  * Update selection sets when the addressee layer changes.
321
415
  * Will remove any "refine" selection set.
@@ -23,6 +23,11 @@ export declare class RefineSelection {
23
23
  * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html
24
24
  */
25
25
  addresseeLayer: __esri.FeatureLayerView;
26
+ /**
27
+ * string[]: Optional list of enabled layer ids
28
+ * If empty all layers will be available
29
+ */
30
+ enabledLayerIds: string[];
26
31
  /**
27
32
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
28
33
  */
@@ -27,6 +27,11 @@ export declare class RefineSelectionTools {
27
27
  * boolean: Optionally draw a border around the draw tools
28
28
  */
29
29
  border: boolean;
30
+ /**
31
+ * string[]: Optional list of enabled layer ids
32
+ * If empty all layers will be available
33
+ */
34
+ enabledLayerIds: string[];
30
35
  /**
31
36
  * esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html
32
37
  */
@@ -83,7 +88,7 @@ export declare class RefineSelectionTools {
83
88
  */
84
89
  protected SketchViewModel: typeof import("esri/widgets/Sketch/SketchViewModel");
85
90
  /**
86
- * {<layer title>: Graphic[]}: Collection of graphics returned from queries to the layer
91
+ * {<layer id>: Graphic[]}: Collection of graphics returned from queries to the layer
87
92
  */
88
93
  protected _featuresCollection: {
89
94
  [key: string]: __esri.Graphic[];