@esri/solutions-components 0.6.6 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. package/dist/cjs/basemap-gallery_4.cjs.entry.js +622 -0
  2. package/dist/cjs/card-manager_4.cjs.entry.js +91 -37
  3. package/dist/cjs/crowdsource-manager.cjs.entry.js +4 -2
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/solutions-components.cjs.js +2 -2
  6. package/dist/collection/collection-manifest.json +3 -1
  7. package/dist/collection/components/basemap-gallery/basemap-gallery.css +19 -0
  8. package/dist/collection/components/basemap-gallery/basemap-gallery.js +166 -0
  9. package/dist/collection/components/basemap-gallery/test/basemap-gallery.e2e.js +29 -0
  10. package/dist/collection/components/basemap-gallery/test/basemap-gallery.spec.js +37 -0
  11. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +43 -2
  12. package/dist/collection/components/layer-table/layer-table.js +99 -30
  13. package/dist/collection/components/map-card/map-card.css +0 -7
  14. package/dist/collection/components/map-card/map-card.js +12 -7
  15. package/dist/collection/components/map-search/map-search.css +24 -0
  16. package/dist/collection/components/map-search/map-search.js +321 -0
  17. package/dist/collection/components/map-search/test/map-search.e2e.js +29 -0
  18. package/dist/collection/components/map-search/test/map-search.spec.js +37 -0
  19. package/dist/collection/components/map-tools/map-tools.js +139 -14
  20. package/dist/collection/demos/crowdsource-manager.html +3 -3
  21. package/dist/collection/utils/interfaces.ts +2 -0
  22. package/dist/components/action-bar.js +1 -0
  23. package/dist/components/action-group.js +1 -0
  24. package/dist/components/action-menu.js +1 -0
  25. package/dist/components/action.js +1 -0
  26. package/dist/components/alert.js +1 -0
  27. package/dist/components/avatar.js +1 -0
  28. package/dist/components/basemap-gallery.d.ts +11 -0
  29. package/dist/components/basemap-gallery.js +11 -0
  30. package/dist/components/basemap-gallery2.js +118 -0
  31. package/dist/components/buffer-tools2.js +1 -0
  32. package/dist/components/button.js +1 -0
  33. package/dist/components/calcite-accordion-item.js +1 -0
  34. package/dist/components/calcite-accordion.js +1 -0
  35. package/dist/components/calcite-action-pad.js +1 -0
  36. package/dist/components/calcite-block-section.js +1 -0
  37. package/dist/components/calcite-block.js +1 -0
  38. package/dist/components/calcite-card.js +1 -0
  39. package/dist/components/calcite-chip-group.js +1 -0
  40. package/dist/components/calcite-color-picker.js +1 -0
  41. package/dist/components/calcite-combobox-item-group.js +1 -0
  42. package/dist/components/calcite-fab.js +1 -0
  43. package/dist/components/calcite-flow-item.js +1 -0
  44. package/dist/components/calcite-flow.js +1 -0
  45. package/dist/components/calcite-inline-editable.js +1 -0
  46. package/dist/components/calcite-input-date-picker.js +1 -0
  47. package/dist/components/calcite-input-time-picker.js +1 -0
  48. package/dist/components/calcite-input-time-zone.js +1 -0
  49. package/dist/components/calcite-list-item-group.js +1 -0
  50. package/dist/components/calcite-menu-item.js +1 -0
  51. package/dist/components/calcite-modal.js +1 -0
  52. package/dist/components/calcite-navigation-logo.js +1 -0
  53. package/dist/components/calcite-navigation-user.js +1 -0
  54. package/dist/components/calcite-navigation.js +1 -0
  55. package/dist/components/calcite-option-group.js +1 -0
  56. package/dist/components/calcite-pagination.js +1 -0
  57. package/dist/components/calcite-pick-list-group.js +1 -0
  58. package/dist/components/calcite-pick-list.js +1 -0
  59. package/dist/components/calcite-radio-button-group.js +1 -0
  60. package/dist/components/calcite-radio-button.js +1 -0
  61. package/dist/components/calcite-rating.js +1 -0
  62. package/dist/components/calcite-shell-center-row.js +1 -0
  63. package/dist/components/calcite-sortable-list.js +1 -0
  64. package/dist/components/calcite-split-button.js +1 -0
  65. package/dist/components/calcite-stepper-item.js +1 -0
  66. package/dist/components/calcite-stepper.js +1 -0
  67. package/dist/components/calcite-text-area.js +1 -0
  68. package/dist/components/calcite-tile-select-group.js +1 -0
  69. package/dist/components/calcite-tile-select.js +1 -0
  70. package/dist/components/calcite-tip-group.js +1 -0
  71. package/dist/components/calcite-tip-manager.js +1 -0
  72. package/dist/components/calcite-tip.js +1 -0
  73. package/dist/components/card-manager2.js +1 -0
  74. package/dist/components/checkbox.js +1 -0
  75. package/dist/components/chip.js +1 -0
  76. package/dist/components/color-picker-hex-input.js +1 -0
  77. package/dist/components/color-picker-swatch.js +1 -0
  78. package/dist/components/combobox-item.js +1 -0
  79. package/dist/components/combobox.js +1 -0
  80. package/dist/components/crowdsource-manager.js +95 -78
  81. package/dist/components/crowdsource-reporter.js +1 -0
  82. package/dist/components/date-picker-day.js +1 -0
  83. package/dist/components/date-picker-month-header.js +1 -0
  84. package/dist/components/date-picker-month.js +1 -0
  85. package/dist/components/date-picker.js +1 -0
  86. package/dist/components/deduct-calculator2.js +1 -0
  87. package/dist/components/dropdown-group.js +1 -0
  88. package/dist/components/dropdown-item.js +1 -0
  89. package/dist/components/dropdown.js +1 -0
  90. package/dist/components/edit-card2.js +1 -0
  91. package/dist/components/esri-loader.js +301 -0
  92. package/dist/components/filter2.js +1 -0
  93. package/dist/components/graph.js +1 -0
  94. package/dist/components/handle.js +1 -0
  95. package/dist/components/icon.js +1 -0
  96. package/dist/components/index.d.ts +6 -0
  97. package/dist/components/index.js +1 -1
  98. package/dist/components/info-card2.js +1 -0
  99. package/dist/components/input-message.js +1 -0
  100. package/dist/components/input-number.js +1 -0
  101. package/dist/components/input-text.js +1 -0
  102. package/dist/components/input.js +1 -0
  103. package/dist/components/json-editor2.js +1 -0
  104. package/dist/components/label2.js +1 -0
  105. package/dist/components/layer-table2.js +83 -31
  106. package/dist/components/layout-manager2.js +1 -0
  107. package/dist/components/link.js +1 -0
  108. package/dist/components/list-item.js +1 -0
  109. package/dist/components/list-item2.js +1 -0
  110. package/dist/components/list.js +1 -0
  111. package/dist/components/loadModules.js +1 -1
  112. package/dist/components/loader.js +1 -0
  113. package/dist/components/locale.js +2 -295
  114. package/dist/components/map-card2.js +61 -42
  115. package/dist/components/map-draw-tools2.js +1 -0
  116. package/dist/components/map-layer-picker2.js +1 -0
  117. package/dist/components/map-picker2.js +1 -0
  118. package/dist/components/map-search.d.ts +11 -0
  119. package/dist/components/map-search.js +11 -0
  120. package/dist/components/map-search2.js +201 -0
  121. package/dist/components/map-select-tools2.js +1 -0
  122. package/dist/components/map-tools2.js +141 -30
  123. package/dist/components/menu.js +1 -0
  124. package/dist/components/notice.js +1 -0
  125. package/dist/components/option.js +1 -0
  126. package/dist/components/panel.js +1 -0
  127. package/dist/components/pci-calculator.js +1 -0
  128. package/dist/components/pdf-download2.js +1 -0
  129. package/dist/components/pick-list-item.js +1 -0
  130. package/dist/components/popover.js +1 -0
  131. package/dist/components/progress.js +1 -0
  132. package/dist/components/public-notification.js +1 -0
  133. package/dist/components/refine-selection2.js +1 -0
  134. package/dist/components/scrim.js +1 -0
  135. package/dist/components/segmented-control-item.js +1 -0
  136. package/dist/components/segmented-control.js +1 -0
  137. package/dist/components/select.js +1 -0
  138. package/dist/components/shell-panel.js +1 -0
  139. package/dist/components/shell.js +1 -0
  140. package/dist/components/slider.js +1 -0
  141. package/dist/components/solution-configuration.js +1 -0
  142. package/dist/components/solution-contents2.js +1 -0
  143. package/dist/components/solution-item-details2.js +1 -0
  144. package/dist/components/solution-item-icon2.js +1 -0
  145. package/dist/components/solution-item-sharing2.js +1 -0
  146. package/dist/components/solution-item2.js +1 -0
  147. package/dist/components/solution-organization-variables2.js +1 -0
  148. package/dist/components/solution-resource-item2.js +1 -0
  149. package/dist/components/solution-spatial-ref2.js +1 -0
  150. package/dist/components/solution-template-data2.js +1 -0
  151. package/dist/components/solution-variables2.js +1 -0
  152. package/dist/components/stack.js +1 -0
  153. package/dist/components/store-manager.js +1 -0
  154. package/dist/components/switch.js +1 -0
  155. package/dist/components/tab-nav.js +1 -0
  156. package/dist/components/tab-title.js +1 -0
  157. package/dist/components/tab.js +1 -0
  158. package/dist/components/tabs.js +1 -0
  159. package/dist/components/tile.js +1 -0
  160. package/dist/components/time-picker.js +1 -0
  161. package/dist/components/tooltip.js +1 -0
  162. package/dist/components/tree-item.js +1 -0
  163. package/dist/components/tree.js +1 -0
  164. package/dist/components/value-list-item.js +1 -0
  165. package/dist/components/value-list.js +1 -0
  166. package/dist/esm/basemap-gallery_4.entry.js +615 -0
  167. package/dist/esm/card-manager_4.entry.js +91 -37
  168. package/dist/esm/crowdsource-manager.entry.js +4 -2
  169. package/dist/esm/loader.js +1 -1
  170. package/dist/esm/polyfills/core-js.js +11 -0
  171. package/dist/esm/polyfills/dom.js +79 -0
  172. package/dist/esm/polyfills/es5-html-element.js +1 -0
  173. package/dist/esm/polyfills/index.js +34 -0
  174. package/dist/esm/polyfills/system.js +6 -0
  175. package/dist/esm/solutions-components.js +2 -2
  176. package/dist/solutions-components/demos/crowdsource-manager.html +3 -3
  177. package/dist/solutions-components/p-55aefaa8.entry.js +6 -0
  178. package/dist/solutions-components/p-5b5a6ac8.entry.js +6 -0
  179. package/dist/solutions-components/p-a6c85bd7.entry.js +6 -0
  180. package/dist/solutions-components/solutions-components.esm.js +1 -1
  181. package/dist/solutions-components/utils/interfaces.ts +2 -0
  182. package/dist/types/components/basemap-gallery/basemap-gallery.d.ts +64 -0
  183. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +9 -1
  184. package/dist/types/components/layer-table/layer-table.d.ts +24 -2
  185. package/dist/types/components/map-card/map-card.d.ts +10 -2
  186. package/dist/types/components/map-search/map-search.d.ts +107 -0
  187. package/dist/types/components/map-tools/map-tools.d.ts +68 -5
  188. package/dist/types/components.d.ts +122 -0
  189. package/dist/types/preact.d.ts +4 -0
  190. package/dist/types/stencil-public-runtime.d.ts +2 -0
  191. package/dist/types/utils/interfaces.d.ts +2 -0
  192. package/package.json +1 -1
  193. package/dist/cjs/map-picker_2.cjs.entry.js +0 -264
  194. package/dist/esm/map-picker_2.entry.js +0 -259
  195. package/dist/solutions-components/p-1990d9c8.entry.js +0 -6
  196. package/dist/solutions-components/p-40bde8b2.entry.js +0 -6
  197. package/dist/solutions-components/p-b921aa1a.entry.js +0 -6
@@ -0,0 +1,107 @@
1
+ /** @license
2
+ * Copyright 2022 Esri
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="arcgis-js-api" />
17
+ import { ISearchConfiguration } from "../../utils/interfaces";
18
+ export declare class MapSearch {
19
+ /**
20
+ * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
21
+ */
22
+ mapView: __esri.MapView;
23
+ /**
24
+ * boolean: When true the selected feature popup will be shown when serach result is found
25
+ */
26
+ popupEnabled: boolean;
27
+ /**
28
+ * boolean: When true a graphic will be added for the search result
29
+ */
30
+ resultGraphicEnabled: boolean;
31
+ /**
32
+ * ISearchConfiguration: Configuration details for the Search widget
33
+ */
34
+ searchConfiguration: ISearchConfiguration;
35
+ /**
36
+ * string: Text entered by the end user.
37
+ * Used to search against the locator.
38
+ */
39
+ searchTerm: string;
40
+ /**
41
+ * esri/widgets/Search: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html
42
+ */
43
+ searchWidget: __esri.widgetsSearch;
44
+ /**
45
+ * esri/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html
46
+ */
47
+ protected FeatureLayer: typeof import("esri/layers/FeatureLayer");
48
+ /**
49
+ * esri/widgets/Search: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html
50
+ */
51
+ protected Search: typeof import("esri/widgets/Search");
52
+ /**
53
+ * HTMLElement: The container div for the search widget
54
+ */
55
+ protected _searchElement: HTMLElement;
56
+ /**
57
+ * An array of objects representing the results of search
58
+ */
59
+ protected _searchResult: any;
60
+ /**
61
+ * Called each time the searchConfiguration prop is changed.
62
+ *
63
+ * @returns Promise when complete
64
+ */
65
+ watchSearchConfigurationHandler(): Promise<void>;
66
+ /**
67
+ * Called each time the mapView prop is changed.
68
+ *
69
+ * @returns Promise when complete
70
+ */
71
+ mapViewWatchHandler(): Promise<void>;
72
+ /**
73
+ * StencilJS: Called once just after the component is first connected to the DOM.
74
+ */
75
+ componentWillLoad(): Promise<void>;
76
+ /**
77
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
78
+ */
79
+ componentDidLoad(): Promise<void>;
80
+ /**
81
+ * Renders the component.
82
+ */
83
+ render(): any;
84
+ /**
85
+ * Load esri javascript api modules
86
+ *
87
+ * @returns Promise resolving when function is done
88
+ *
89
+ * @protected
90
+ */
91
+ protected _initModules(): Promise<void>;
92
+ /**
93
+ * Initialize the search widget
94
+ *
95
+ * @protected
96
+ */
97
+ protected _initSearchWidget(): void;
98
+ /**
99
+ * Initialize the search widget based on user defined configuration
100
+ *
101
+ * @param searchConfiguration search configuration defined by the user
102
+ * @param view the current map view
103
+ *
104
+ * @protected
105
+ */
106
+ protected _getSearchConfig(searchConfiguration: ISearchConfiguration, view: __esri.MapView): ISearchConfiguration;
107
+ }
@@ -16,7 +16,7 @@
16
16
  /// <reference types="arcgis-js-api" />
17
17
  import { EventEmitter, VNode } from '../../stencil-public-runtime';
18
18
  import MapTools_T9n from "../../assets/t9n/map-tools/resources.json";
19
- import { EExpandType } from "../../utils/interfaces";
19
+ import { EExpandType, ISearchConfiguration } from "../../utils/interfaces";
20
20
  export declare class MapTools {
21
21
  el: HTMLMapToolsElement;
22
22
  /**
@@ -27,6 +27,10 @@ export declare class MapTools {
27
27
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
28
28
  */
29
29
  mapView: __esri.MapView;
30
+ /**
31
+ * ISearchConfiguration: Configuration details for the Search widget
32
+ */
33
+ searchConfiguration: ISearchConfiguration;
30
34
  /**
31
35
  * Contains the translations for this component.
32
36
  * All UI strings should be defined here.
@@ -39,7 +43,35 @@ export declare class MapTools {
39
43
  /**
40
44
  * When true the basemap picker will be displayed
41
45
  */
42
- _showBasemapPicker: boolean;
46
+ _showBasemapWidget: boolean;
47
+ /**
48
+ * When true the search widget will be displayed
49
+ */
50
+ _showSearchWidget: boolean;
51
+ /**
52
+ * HTMLMapSearchElement: The search element node
53
+ */
54
+ protected _basemapElement: HTMLBasemapGalleryElement;
55
+ /**
56
+ * esri/geometry/Extent: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html
57
+ */
58
+ protected _homeExtent: __esri.Extent;
59
+ /**
60
+ * HTMLMapSearchElement: The search element node
61
+ */
62
+ protected _searchElement: HTMLMapSearchElement;
63
+ /**
64
+ * Store the home extent when the map view changes
65
+ */
66
+ mapViewWatchHandler(): Promise<void>;
67
+ /**
68
+ * When the _showBasemapWidget property is true display the basemap gallery
69
+ */
70
+ _showBasemapWidgetWatchHandler(v: boolean): Promise<void>;
71
+ /**
72
+ * When the _showSearchWidget property is true display the search widget
73
+ */
74
+ _showSearchWidgetWatchHandler(v: boolean): Promise<void>;
43
75
  /**
44
76
  * Emitted when the expand button is clicked
45
77
  */
@@ -65,11 +97,42 @@ export declare class MapTools {
65
97
  * @protected
66
98
  */
67
99
  protected _getActionGroup(icon: string, disabled: boolean, tip: string, func: any): VNode;
68
- protected _goHome(): void;
100
+ /**
101
+ * Go to the exent that was first used when loading the map
102
+ *
103
+ * @returns void
104
+ *
105
+ * @protected
106
+ */
107
+ protected _goHome(): Promise<void>;
69
108
  protected _showList(): void;
70
109
  protected _search(): void;
71
- protected _zoomIn(): void;
72
- protected _zoomOut(): void;
110
+ /**
111
+ * Fixed zoom in
112
+ *
113
+ * @returns void
114
+ *
115
+ * @protected
116
+ */
117
+ protected _zoomIn(): Promise<void>;
118
+ /**
119
+ * Fixed zoom out
120
+ *
121
+ * @returns void
122
+ *
123
+ * @protected
124
+ */
125
+ protected _zoomOut(): Promise<void>;
126
+ /**
127
+ * Zoom in/out at the maps current center point
128
+ *
129
+ * @param zoom Number to zoom level to go to
130
+ *
131
+ * @returns void
132
+ *
133
+ * @protected
134
+ */
135
+ protected _zoom(zoom: number): Promise<void>;
73
136
  /**
74
137
  * Show/Hide the basemap picker
75
138
  *
@@ -10,6 +10,16 @@ import { UserSession } from "@esri/solution-common";
10
10
  export { DistanceUnit, EDrawMode, EExpandType, ELayoutMode, IExportInfos, IInventoryItem, IMapInfo, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange } from "./utils/interfaces";
11
11
  export { UserSession } from "@esri/solution-common";
12
12
  export namespace Components {
13
+ interface BasemapGallery {
14
+ /**
15
+ * esri/widgets/BasemapGallery: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html BasemapGallery instance
16
+ */
17
+ "basemapWidget": __esri.BasemapGallery;
18
+ /**
19
+ * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
20
+ */
21
+ "mapView": __esri.MapView;
22
+ }
13
23
  interface BufferTools {
14
24
  /**
15
25
  * string: The appearance of display. Can be a "slider" or "text" inputs for distance/value
@@ -76,6 +86,14 @@ export namespace Components {
76
86
  * IMapInfo[]: array of map infos (name and id)
77
87
  */
78
88
  "mapInfos": IMapInfo[];
89
+ /**
90
+ * ISearchConfiguration: Configuration details for the Search widget
91
+ */
92
+ "searchConfiguration": ISearchConfiguration;
93
+ /**
94
+ * boolean: when true the table will be sorted by objectid in descending order by default
95
+ */
96
+ "showNewestFirst": boolean;
79
97
  /**
80
98
  * boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
81
99
  */
@@ -174,6 +192,10 @@ export namespace Components {
174
192
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
175
193
  */
176
194
  "mapView": __esri.MapView;
195
+ /**
196
+ * boolean: when true the table will be sorted by objectid in descending order by default
197
+ */
198
+ "showNewestFirst": boolean;
177
199
  /**
178
200
  * boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
179
201
  */
@@ -289,6 +311,32 @@ export namespace Components {
289
311
  */
290
312
  "mapInfos": IMapInfo[];
291
313
  }
314
+ interface MapSearch {
315
+ /**
316
+ * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
317
+ */
318
+ "mapView": __esri.MapView;
319
+ /**
320
+ * boolean: When true the selected feature popup will be shown when serach result is found
321
+ */
322
+ "popupEnabled": boolean;
323
+ /**
324
+ * boolean: When true a graphic will be added for the search result
325
+ */
326
+ "resultGraphicEnabled": boolean;
327
+ /**
328
+ * ISearchConfiguration: Configuration details for the Search widget
329
+ */
330
+ "searchConfiguration": ISearchConfiguration;
331
+ /**
332
+ * string: Text entered by the end user. Used to search against the locator.
333
+ */
334
+ "searchTerm": string;
335
+ /**
336
+ * esri/widgets/Search: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html
337
+ */
338
+ "searchWidget": __esri.widgetsSearch;
339
+ }
292
340
  interface MapSelectTools {
293
341
  /**
294
342
  * string | number[] | object with r, g, b, a: https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html
@@ -382,6 +430,10 @@ export namespace Components {
382
430
  * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
383
431
  */
384
432
  "mapView": __esri.MapView;
433
+ /**
434
+ * ISearchConfiguration: Configuration details for the Search widget
435
+ */
436
+ "searchConfiguration": ISearchConfiguration;
385
437
  }
386
438
  interface PciCalculator {
387
439
  }
@@ -760,6 +812,12 @@ export interface StoreManagerCustomEvent<T> extends CustomEvent<T> {
760
812
  target: HTMLStoreManagerElement;
761
813
  }
762
814
  declare global {
815
+ interface HTMLBasemapGalleryElement extends Components.BasemapGallery, HTMLStencilElement {
816
+ }
817
+ var HTMLBasemapGalleryElement: {
818
+ prototype: HTMLBasemapGalleryElement;
819
+ new (): HTMLBasemapGalleryElement;
820
+ };
763
821
  interface HTMLBufferToolsElement extends Components.BufferTools, HTMLStencilElement {
764
822
  }
765
823
  var HTMLBufferToolsElement: {
@@ -850,6 +908,12 @@ declare global {
850
908
  prototype: HTMLMapPickerElement;
851
909
  new (): HTMLMapPickerElement;
852
910
  };
911
+ interface HTMLMapSearchElement extends Components.MapSearch, HTMLStencilElement {
912
+ }
913
+ var HTMLMapSearchElement: {
914
+ prototype: HTMLMapSearchElement;
915
+ new (): HTMLMapSearchElement;
916
+ };
853
917
  interface HTMLMapSelectToolsElement extends Components.MapSelectTools, HTMLStencilElement {
854
918
  }
855
919
  var HTMLMapSelectToolsElement: {
@@ -959,6 +1023,7 @@ declare global {
959
1023
  new (): HTMLStoreManagerElement;
960
1024
  };
961
1025
  interface HTMLElementTagNameMap {
1026
+ "basemap-gallery": HTMLBasemapGalleryElement;
962
1027
  "buffer-tools": HTMLBufferToolsElement;
963
1028
  "card-manager": HTMLCardManagerElement;
964
1029
  "crowdsource-manager": HTMLCrowdsourceManagerElement;
@@ -974,6 +1039,7 @@ declare global {
974
1039
  "map-draw-tools": HTMLMapDrawToolsElement;
975
1040
  "map-layer-picker": HTMLMapLayerPickerElement;
976
1041
  "map-picker": HTMLMapPickerElement;
1042
+ "map-search": HTMLMapSearchElement;
977
1043
  "map-select-tools": HTMLMapSelectToolsElement;
978
1044
  "map-tools": HTMLMapToolsElement;
979
1045
  "pci-calculator": HTMLPciCalculatorElement;
@@ -995,6 +1061,16 @@ declare global {
995
1061
  }
996
1062
  }
997
1063
  declare namespace LocalJSX {
1064
+ interface BasemapGallery {
1065
+ /**
1066
+ * esri/widgets/BasemapGallery: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html BasemapGallery instance
1067
+ */
1068
+ "basemapWidget"?: __esri.BasemapGallery;
1069
+ /**
1070
+ * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
1071
+ */
1072
+ "mapView"?: __esri.MapView;
1073
+ }
998
1074
  interface BufferTools {
999
1075
  /**
1000
1076
  * string: The appearance of display. Can be a "slider" or "text" inputs for distance/value
@@ -1073,6 +1149,14 @@ declare namespace LocalJSX {
1073
1149
  * IMapInfo[]: array of map infos (name and id)
1074
1150
  */
1075
1151
  "mapInfos"?: IMapInfo[];
1152
+ /**
1153
+ * ISearchConfiguration: Configuration details for the Search widget
1154
+ */
1155
+ "searchConfiguration"?: ISearchConfiguration;
1156
+ /**
1157
+ * boolean: when true the table will be sorted by objectid in descending order by default
1158
+ */
1159
+ "showNewestFirst"?: boolean;
1076
1160
  /**
1077
1161
  * boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
1078
1162
  */
@@ -1157,6 +1241,10 @@ declare namespace LocalJSX {
1157
1241
  * Emitted on demand when a layer is selected
1158
1242
  */
1159
1243
  "onFeatureSelectionChange"?: (event: LayerTableCustomEvent<number[]>) => void;
1244
+ /**
1245
+ * boolean: when true the table will be sorted by objectid in descending order by default
1246
+ */
1247
+ "showNewestFirst"?: boolean;
1160
1248
  /**
1161
1249
  * boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
1162
1250
  */
@@ -1294,6 +1382,32 @@ declare namespace LocalJSX {
1294
1382
  */
1295
1383
  "onMapInfoChange"?: (event: MapPickerCustomEvent<IMapInfo>) => void;
1296
1384
  }
1385
+ interface MapSearch {
1386
+ /**
1387
+ * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
1388
+ */
1389
+ "mapView"?: __esri.MapView;
1390
+ /**
1391
+ * boolean: When true the selected feature popup will be shown when serach result is found
1392
+ */
1393
+ "popupEnabled"?: boolean;
1394
+ /**
1395
+ * boolean: When true a graphic will be added for the search result
1396
+ */
1397
+ "resultGraphicEnabled"?: boolean;
1398
+ /**
1399
+ * ISearchConfiguration: Configuration details for the Search widget
1400
+ */
1401
+ "searchConfiguration"?: ISearchConfiguration;
1402
+ /**
1403
+ * string: Text entered by the end user. Used to search against the locator.
1404
+ */
1405
+ "searchTerm"?: string;
1406
+ /**
1407
+ * esri/widgets/Search: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html
1408
+ */
1409
+ "searchWidget"?: __esri.widgetsSearch;
1410
+ }
1297
1411
  interface MapSelectTools {
1298
1412
  /**
1299
1413
  * string | number[] | object with r, g, b, a: https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html
@@ -1385,6 +1499,10 @@ declare namespace LocalJSX {
1385
1499
  * Emitted when the expand button is clicked
1386
1500
  */
1387
1501
  "onExpandMap"?: (event: MapToolsCustomEvent<EExpandType>) => void;
1502
+ /**
1503
+ * ISearchConfiguration: Configuration details for the Search widget
1504
+ */
1505
+ "searchConfiguration"?: ISearchConfiguration;
1388
1506
  }
1389
1507
  interface PciCalculator {
1390
1508
  }
@@ -1666,6 +1784,7 @@ declare namespace LocalJSX {
1666
1784
  "value"?: string;
1667
1785
  }
1668
1786
  interface IntrinsicElements {
1787
+ "basemap-gallery": BasemapGallery;
1669
1788
  "buffer-tools": BufferTools;
1670
1789
  "card-manager": CardManager;
1671
1790
  "crowdsource-manager": CrowdsourceManager;
@@ -1681,6 +1800,7 @@ declare namespace LocalJSX {
1681
1800
  "map-draw-tools": MapDrawTools;
1682
1801
  "map-layer-picker": MapLayerPicker;
1683
1802
  "map-picker": MapPicker;
1803
+ "map-search": MapSearch;
1684
1804
  "map-select-tools": MapSelectTools;
1685
1805
  "map-tools": MapTools;
1686
1806
  "pci-calculator": PciCalculator;
@@ -1705,6 +1825,7 @@ export { LocalJSX as JSX };
1705
1825
  declare module "@stencil/core" {
1706
1826
  export namespace JSX {
1707
1827
  interface IntrinsicElements {
1828
+ "basemap-gallery": LocalJSX.BasemapGallery & JSXBase.HTMLAttributes<HTMLBasemapGalleryElement>;
1708
1829
  "buffer-tools": LocalJSX.BufferTools & JSXBase.HTMLAttributes<HTMLBufferToolsElement>;
1709
1830
  "card-manager": LocalJSX.CardManager & JSXBase.HTMLAttributes<HTMLCardManagerElement>;
1710
1831
  "crowdsource-manager": LocalJSX.CrowdsourceManager & JSXBase.HTMLAttributes<HTMLCrowdsourceManagerElement>;
@@ -1720,6 +1841,7 @@ declare module "@stencil/core" {
1720
1841
  "map-draw-tools": LocalJSX.MapDrawTools & JSXBase.HTMLAttributes<HTMLMapDrawToolsElement>;
1721
1842
  "map-layer-picker": LocalJSX.MapLayerPicker & JSXBase.HTMLAttributes<HTMLMapLayerPickerElement>;
1722
1843
  "map-picker": LocalJSX.MapPicker & JSXBase.HTMLAttributes<HTMLMapPickerElement>;
1844
+ "map-search": LocalJSX.MapSearch & JSXBase.HTMLAttributes<HTMLMapSearchElement>;
1723
1845
  "map-select-tools": LocalJSX.MapSelectTools & JSXBase.HTMLAttributes<HTMLMapSelectToolsElement>;
1724
1846
  "map-tools": LocalJSX.MapTools & JSXBase.HTMLAttributes<HTMLMapToolsElement>;
1725
1847
  "pci-calculator": LocalJSX.PciCalculator & JSXBase.HTMLAttributes<HTMLPciCalculatorElement>;
@@ -6,6 +6,8 @@ declare module "preact/src/jsx" {
6
6
  namespace JSXInternal {
7
7
  interface IntrinsicElements {
8
8
 
9
+ "basemap-gallery": JSX.SolutionsBasemapGallery & JSXInternal.HTMLAttributes<HTMLSolutionsBasemapGalleryElement>
10
+
9
11
  "buffer-tools": Omit<JSX.SolutionsBufferTools, "onBufferComplete" | "onDistanceChanged" | "onUnitChanged"> & JSXInternal.HTMLAttributes<HTMLSolutionsBufferToolsElement> & {
10
12
  "onbufferComplete"?: (event: CustomEvent<any>) => void;
11
13
  "ondistanceChanged"?: (event: CustomEvent<any>) => void;
@@ -508,6 +510,8 @@ declare module "preact/src/jsx" {
508
510
  "onmapInfoChange"?: (event: CustomEvent<any>) => void;
509
511
  }
510
512
 
513
+ "map-search": JSX.SolutionsMapSearch & JSXInternal.HTMLAttributes<HTMLSolutionsMapSearchElement>
514
+
511
515
  "map-select-tools": Omit<JSX.SolutionsMapSelectTools, "onSelectionSetChange"> & JSXInternal.HTMLAttributes<HTMLSolutionsMapSelectToolsElement> & {
512
516
  "onselectionSetChange"?: (event: CustomEvent<any>) => void;
513
517
  }
@@ -872,6 +872,8 @@ export declare namespace JSXBase {
872
872
  }
873
873
  interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
874
874
  alt?: string;
875
+ crossOrigin?: string;
876
+ crossorigin?: string;
875
877
  decoding?: 'async' | 'auto' | 'sync';
876
878
  importance?: 'low' | 'auto' | 'high';
877
879
  height?: number | string;
@@ -386,6 +386,8 @@ export interface IMediaCardValues {
386
386
  export interface IMapInfo {
387
387
  id: string;
388
388
  name: string;
389
+ searchConfiguration?: ISearchConfiguration;
390
+ filters?: any[];
389
391
  }
390
392
  export interface IExportInfos {
391
393
  [key: string]: IExportInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",