@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.
- package/dist/cjs/basemap-gallery_4.cjs.entry.js +622 -0
- package/dist/cjs/card-manager_4.cjs.entry.js +91 -37
- package/dist/cjs/crowdsource-manager.cjs.entry.js +4 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/basemap-gallery/basemap-gallery.css +19 -0
- package/dist/collection/components/basemap-gallery/basemap-gallery.js +166 -0
- package/dist/collection/components/basemap-gallery/test/basemap-gallery.e2e.js +29 -0
- package/dist/collection/components/basemap-gallery/test/basemap-gallery.spec.js +37 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +43 -2
- package/dist/collection/components/layer-table/layer-table.js +99 -30
- package/dist/collection/components/map-card/map-card.css +0 -7
- package/dist/collection/components/map-card/map-card.js +12 -7
- package/dist/collection/components/map-search/map-search.css +24 -0
- package/dist/collection/components/map-search/map-search.js +321 -0
- package/dist/collection/components/map-search/test/map-search.e2e.js +29 -0
- package/dist/collection/components/map-search/test/map-search.spec.js +37 -0
- package/dist/collection/components/map-tools/map-tools.js +139 -14
- package/dist/collection/demos/crowdsource-manager.html +3 -3
- package/dist/collection/utils/interfaces.ts +2 -0
- package/dist/components/action-bar.js +1 -0
- package/dist/components/action-group.js +1 -0
- package/dist/components/action-menu.js +1 -0
- package/dist/components/action.js +1 -0
- package/dist/components/alert.js +1 -0
- package/dist/components/avatar.js +1 -0
- package/dist/components/basemap-gallery.d.ts +11 -0
- package/dist/components/basemap-gallery.js +11 -0
- package/dist/components/basemap-gallery2.js +118 -0
- package/dist/components/buffer-tools2.js +1 -0
- package/dist/components/button.js +1 -0
- package/dist/components/calcite-accordion-item.js +1 -0
- package/dist/components/calcite-accordion.js +1 -0
- package/dist/components/calcite-action-pad.js +1 -0
- package/dist/components/calcite-block-section.js +1 -0
- package/dist/components/calcite-block.js +1 -0
- package/dist/components/calcite-card.js +1 -0
- package/dist/components/calcite-chip-group.js +1 -0
- package/dist/components/calcite-color-picker.js +1 -0
- package/dist/components/calcite-combobox-item-group.js +1 -0
- package/dist/components/calcite-fab.js +1 -0
- package/dist/components/calcite-flow-item.js +1 -0
- package/dist/components/calcite-flow.js +1 -0
- package/dist/components/calcite-inline-editable.js +1 -0
- package/dist/components/calcite-input-date-picker.js +1 -0
- package/dist/components/calcite-input-time-picker.js +1 -0
- package/dist/components/calcite-input-time-zone.js +1 -0
- package/dist/components/calcite-list-item-group.js +1 -0
- package/dist/components/calcite-menu-item.js +1 -0
- package/dist/components/calcite-modal.js +1 -0
- package/dist/components/calcite-navigation-logo.js +1 -0
- package/dist/components/calcite-navigation-user.js +1 -0
- package/dist/components/calcite-navigation.js +1 -0
- package/dist/components/calcite-option-group.js +1 -0
- package/dist/components/calcite-pagination.js +1 -0
- package/dist/components/calcite-pick-list-group.js +1 -0
- package/dist/components/calcite-pick-list.js +1 -0
- package/dist/components/calcite-radio-button-group.js +1 -0
- package/dist/components/calcite-radio-button.js +1 -0
- package/dist/components/calcite-rating.js +1 -0
- package/dist/components/calcite-shell-center-row.js +1 -0
- package/dist/components/calcite-sortable-list.js +1 -0
- package/dist/components/calcite-split-button.js +1 -0
- package/dist/components/calcite-stepper-item.js +1 -0
- package/dist/components/calcite-stepper.js +1 -0
- package/dist/components/calcite-text-area.js +1 -0
- package/dist/components/calcite-tile-select-group.js +1 -0
- package/dist/components/calcite-tile-select.js +1 -0
- package/dist/components/calcite-tip-group.js +1 -0
- package/dist/components/calcite-tip-manager.js +1 -0
- package/dist/components/calcite-tip.js +1 -0
- package/dist/components/card-manager2.js +1 -0
- package/dist/components/checkbox.js +1 -0
- package/dist/components/chip.js +1 -0
- package/dist/components/color-picker-hex-input.js +1 -0
- package/dist/components/color-picker-swatch.js +1 -0
- package/dist/components/combobox-item.js +1 -0
- package/dist/components/combobox.js +1 -0
- package/dist/components/crowdsource-manager.js +95 -78
- package/dist/components/crowdsource-reporter.js +1 -0
- package/dist/components/date-picker-day.js +1 -0
- package/dist/components/date-picker-month-header.js +1 -0
- package/dist/components/date-picker-month.js +1 -0
- package/dist/components/date-picker.js +1 -0
- package/dist/components/deduct-calculator2.js +1 -0
- package/dist/components/dropdown-group.js +1 -0
- package/dist/components/dropdown-item.js +1 -0
- package/dist/components/dropdown.js +1 -0
- package/dist/components/edit-card2.js +1 -0
- package/dist/components/esri-loader.js +301 -0
- package/dist/components/filter2.js +1 -0
- package/dist/components/graph.js +1 -0
- package/dist/components/handle.js +1 -0
- package/dist/components/icon.js +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -1
- package/dist/components/info-card2.js +1 -0
- package/dist/components/input-message.js +1 -0
- package/dist/components/input-number.js +1 -0
- package/dist/components/input-text.js +1 -0
- package/dist/components/input.js +1 -0
- package/dist/components/json-editor2.js +1 -0
- package/dist/components/label2.js +1 -0
- package/dist/components/layer-table2.js +83 -31
- package/dist/components/layout-manager2.js +1 -0
- package/dist/components/link.js +1 -0
- package/dist/components/list-item.js +1 -0
- package/dist/components/list-item2.js +1 -0
- package/dist/components/list.js +1 -0
- package/dist/components/loadModules.js +1 -1
- package/dist/components/loader.js +1 -0
- package/dist/components/locale.js +2 -295
- package/dist/components/map-card2.js +61 -42
- package/dist/components/map-draw-tools2.js +1 -0
- package/dist/components/map-layer-picker2.js +1 -0
- package/dist/components/map-picker2.js +1 -0
- package/dist/components/map-search.d.ts +11 -0
- package/dist/components/map-search.js +11 -0
- package/dist/components/map-search2.js +201 -0
- package/dist/components/map-select-tools2.js +1 -0
- package/dist/components/map-tools2.js +141 -30
- package/dist/components/menu.js +1 -0
- package/dist/components/notice.js +1 -0
- package/dist/components/option.js +1 -0
- package/dist/components/panel.js +1 -0
- package/dist/components/pci-calculator.js +1 -0
- package/dist/components/pdf-download2.js +1 -0
- package/dist/components/pick-list-item.js +1 -0
- package/dist/components/popover.js +1 -0
- package/dist/components/progress.js +1 -0
- package/dist/components/public-notification.js +1 -0
- package/dist/components/refine-selection2.js +1 -0
- package/dist/components/scrim.js +1 -0
- package/dist/components/segmented-control-item.js +1 -0
- package/dist/components/segmented-control.js +1 -0
- package/dist/components/select.js +1 -0
- package/dist/components/shell-panel.js +1 -0
- package/dist/components/shell.js +1 -0
- package/dist/components/slider.js +1 -0
- package/dist/components/solution-configuration.js +1 -0
- package/dist/components/solution-contents2.js +1 -0
- package/dist/components/solution-item-details2.js +1 -0
- package/dist/components/solution-item-icon2.js +1 -0
- package/dist/components/solution-item-sharing2.js +1 -0
- package/dist/components/solution-item2.js +1 -0
- package/dist/components/solution-organization-variables2.js +1 -0
- package/dist/components/solution-resource-item2.js +1 -0
- package/dist/components/solution-spatial-ref2.js +1 -0
- package/dist/components/solution-template-data2.js +1 -0
- package/dist/components/solution-variables2.js +1 -0
- package/dist/components/stack.js +1 -0
- package/dist/components/store-manager.js +1 -0
- package/dist/components/switch.js +1 -0
- package/dist/components/tab-nav.js +1 -0
- package/dist/components/tab-title.js +1 -0
- package/dist/components/tab.js +1 -0
- package/dist/components/tabs.js +1 -0
- package/dist/components/tile.js +1 -0
- package/dist/components/time-picker.js +1 -0
- package/dist/components/tooltip.js +1 -0
- package/dist/components/tree-item.js +1 -0
- package/dist/components/tree.js +1 -0
- package/dist/components/value-list-item.js +1 -0
- package/dist/components/value-list.js +1 -0
- package/dist/esm/basemap-gallery_4.entry.js +615 -0
- package/dist/esm/card-manager_4.entry.js +91 -37
- package/dist/esm/crowdsource-manager.entry.js +4 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/solutions-components.js +2 -2
- package/dist/solutions-components/demos/crowdsource-manager.html +3 -3
- package/dist/solutions-components/p-55aefaa8.entry.js +6 -0
- package/dist/solutions-components/p-5b5a6ac8.entry.js +6 -0
- package/dist/solutions-components/p-a6c85bd7.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +2 -0
- package/dist/types/components/basemap-gallery/basemap-gallery.d.ts +64 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +9 -1
- package/dist/types/components/layer-table/layer-table.d.ts +24 -2
- package/dist/types/components/map-card/map-card.d.ts +10 -2
- package/dist/types/components/map-search/map-search.d.ts +107 -0
- package/dist/types/components/map-tools/map-tools.d.ts +68 -5
- package/dist/types/components.d.ts +122 -0
- package/dist/types/preact.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/dist/types/utils/interfaces.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cjs/map-picker_2.cjs.entry.js +0 -264
- package/dist/esm/map-picker_2.entry.js +0 -259
- package/dist/solutions-components/p-1990d9c8.entry.js +0 -6
- package/dist/solutions-components/p-40bde8b2.entry.js +0 -6
- 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
|
-
|
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
|
-
|
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
|
-
|
72
|
-
|
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>;
|
package/dist/types/preact.d.ts
CHANGED
@@ -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;
|