@arcgis/map-components 4.29.0-beta.4 → 4.29.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -1
- package/dist/arcgis-map-components/arcgis-map-components.esm.js.map +1 -0
- package/dist/arcgis-map-components/index.esm.js +2 -0
- package/dist/arcgis-map-components/index.esm.js.map +1 -0
- package/dist/arcgis-map-components/p-00f30dbd.entry.js +2 -0
- package/dist/arcgis-map-components/p-00f30dbd.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-05478da4.entry.js +2 -0
- package/dist/arcgis-map-components/p-05478da4.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-06dc39eb.entry.js +2 -0
- package/dist/arcgis-map-components/p-06dc39eb.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-07325369.entry.js +2 -0
- package/dist/arcgis-map-components/p-07325369.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-07e7d7b2.js +2 -0
- package/dist/arcgis-map-components/p-07e7d7b2.js.map +1 -0
- package/dist/arcgis-map-components/p-09b972be.entry.js +2 -0
- package/dist/arcgis-map-components/p-09b972be.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-0e42e14b.entry.js +2 -0
- package/dist/arcgis-map-components/p-0e42e14b.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-14f542a3.entry.js +2 -0
- package/dist/arcgis-map-components/p-14f542a3.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-181101b2.entry.js +2 -0
- package/dist/arcgis-map-components/p-181101b2.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-1aa22ffc.entry.js +2 -0
- package/dist/arcgis-map-components/p-1aa22ffc.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-1ed5d647.entry.js +2 -0
- package/dist/arcgis-map-components/p-1ed5d647.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-22738a30.entry.js +2 -0
- package/dist/arcgis-map-components/p-22738a30.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-2a78610a.entry.js +2 -0
- package/dist/arcgis-map-components/p-2a78610a.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-3209d063.entry.js +2 -0
- package/dist/arcgis-map-components/p-3209d063.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-3a4ee895.entry.js +2 -0
- package/dist/arcgis-map-components/p-3a4ee895.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-3ce612f0.entry.js +2 -0
- package/dist/arcgis-map-components/p-3ce612f0.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-4280d545.js +2 -0
- package/dist/arcgis-map-components/p-4280d545.js.map +1 -0
- package/dist/arcgis-map-components/p-43e08c8e.entry.js +2 -0
- package/dist/arcgis-map-components/p-43e08c8e.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-45a6ec08.entry.js +2 -0
- package/dist/arcgis-map-components/p-45a6ec08.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-4edb69dc.entry.js +2 -0
- package/dist/arcgis-map-components/p-4edb69dc.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-5245bc16.entry.js +2 -0
- package/dist/arcgis-map-components/p-5245bc16.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-530503e3.js +2 -0
- package/dist/arcgis-map-components/p-530503e3.js.map +1 -0
- package/dist/arcgis-map-components/p-55d0f5ad.entry.js +2 -0
- package/dist/arcgis-map-components/p-55d0f5ad.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-60a88ea8.entry.js +2 -0
- package/dist/arcgis-map-components/p-60a88ea8.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-62249867.entry.js +2 -0
- package/dist/arcgis-map-components/p-62249867.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-63bfa89a.entry.js +2 -0
- package/dist/arcgis-map-components/p-63bfa89a.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-6eb31c62.entry.js +2 -0
- package/dist/arcgis-map-components/p-6eb31c62.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-70d39dcf.entry.js +2 -0
- package/dist/arcgis-map-components/p-70d39dcf.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-75c5fd05.entry.js +2 -0
- package/dist/arcgis-map-components/p-75c5fd05.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-761ac7d4.entry.js +2 -0
- package/dist/arcgis-map-components/p-761ac7d4.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-786c1915.entry.js +2 -0
- package/dist/arcgis-map-components/p-786c1915.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-81207d02.entry.js +2 -0
- package/dist/arcgis-map-components/p-81207d02.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-82ba1e5d.entry.js +2 -0
- package/dist/arcgis-map-components/p-82ba1e5d.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-883490a4.entry.js +2 -0
- package/dist/arcgis-map-components/p-883490a4.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-8a36eefa.entry.js +2 -0
- package/dist/arcgis-map-components/p-8a36eefa.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-8c9da1b9.entry.js +2 -0
- package/dist/arcgis-map-components/p-8c9da1b9.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-943108f9.entry.js +2 -0
- package/dist/arcgis-map-components/p-943108f9.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-983881aa.entry.js +2 -0
- package/dist/arcgis-map-components/p-983881aa.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-9d965bf8.entry.js +2 -0
- package/dist/arcgis-map-components/p-9d965bf8.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-9de4c65d.entry.js +2 -0
- package/dist/arcgis-map-components/p-9de4c65d.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-9efd1c60.entry.js +2 -0
- package/dist/arcgis-map-components/p-9efd1c60.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-a096c52f.entry.js +2 -0
- package/dist/arcgis-map-components/p-a096c52f.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-a29e5958.entry.js +2 -0
- package/dist/arcgis-map-components/p-a29e5958.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-a4367c0d.entry.js +2 -0
- package/dist/arcgis-map-components/p-a4367c0d.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-b28da40c.entry.js +2 -0
- package/dist/arcgis-map-components/p-b28da40c.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-ba7bfe2a.entry.js +2 -0
- package/dist/arcgis-map-components/p-ba7bfe2a.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-c1eb12b2.entry.js +2 -0
- package/dist/arcgis-map-components/p-c1eb12b2.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-c8faa156.entry.js +2 -0
- package/dist/arcgis-map-components/p-c8faa156.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-c95d50be.entry.js +2 -0
- package/dist/arcgis-map-components/p-c95d50be.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-d0fb9a2a.entry.js +2 -0
- package/dist/arcgis-map-components/p-d0fb9a2a.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-d142ff74.js +2 -0
- package/dist/arcgis-map-components/p-d142ff74.js.map +1 -0
- package/dist/arcgis-map-components/p-dbc82e69.js +3 -0
- package/dist/arcgis-map-components/p-dbc82e69.js.map +1 -0
- package/dist/arcgis-map-components/p-dbf111db.entry.js +2 -0
- package/dist/arcgis-map-components/p-dbf111db.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-e4a12f83.entry.js +2 -0
- package/dist/arcgis-map-components/p-e4a12f83.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-ee414323.entry.js +2 -0
- package/dist/arcgis-map-components/p-ee414323.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-f66a4365.entry.js +2 -0
- package/dist/arcgis-map-components/p-f66a4365.entry.js.map +1 -0
- package/dist/arcgis-map-components/p-f674b7f4.entry.js +2 -0
- package/dist/arcgis-map-components/p-f674b7f4.entry.js.map +1 -0
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +20 -16
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +18 -14
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-attachments.cjs.entry.js +47 -13
- package/dist/cjs/arcgis-attachments.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js +509 -0
- package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +63 -34
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +35 -29
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +33 -25
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js +48 -23
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-compass.cjs.entry.js +14 -18
- package/dist/cjs/arcgis-compass.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +60 -30
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-daylight.cjs.entry.js +24 -21
- package/dist/cjs/arcgis-daylight.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-directions.cjs.entry.js +51 -29
- package/dist/cjs/arcgis-directions.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +18 -22
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +16 -20
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-editor.cjs.entry.js +35 -29
- package/dist/cjs/arcgis-editor.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +35 -22
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-feature-form.cjs.entry.js +120 -7
- package/dist/cjs/arcgis-feature-form.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +72 -43
- package/dist/cjs/arcgis-feature-table.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js +77 -13
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-feature.cjs.entry.js +52 -22
- package/dist/cjs/arcgis-feature.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-features.cjs.entry.js +52 -25
- package/dist/cjs/arcgis-features.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js +21 -25
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js +18 -22
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +140 -12
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-histogram.cjs.entry.js +119 -7
- package/dist/cjs/arcgis-histogram.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-home.cjs.entry.js +29 -23
- package/dist/cjs/arcgis-home.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +47 -22
- package/dist/cjs/arcgis-layer-list.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-legend.cjs.entry.js +19 -23
- package/dist/cjs/arcgis-legend.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +16 -20
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-locate.cjs.entry.js +27 -32
- package/dist/cjs/arcgis-locate.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-map-components.cjs.js +5 -3
- package/dist/cjs/arcgis-map-components.cjs.js.map +1 -0
- package/dist/cjs/arcgis-measurement.cjs.entry.js +28 -23
- package/dist/cjs/arcgis-measurement.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +14 -18
- package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-placement.cjs.entry.js +52 -0
- package/dist/cjs/arcgis-placement.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-print.cjs.entry.js +41 -27
- package/dist/cjs/arcgis-print.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js +17 -21
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +40 -34
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-scene.cjs.entry.js +205 -0
- package/dist/cjs/arcgis-scene.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-search.cjs.entry.js +320 -0
- package/dist/cjs/arcgis-search.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +26 -29
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-sketch.cjs.entry.js +43 -37
- package/dist/cjs/arcgis-sketch.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-slice.cjs.entry.js +18 -31
- package/dist/cjs/arcgis-slice.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-slider.cjs.entry.js +41 -43
- package/dist/cjs/arcgis-slider.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-swipe.cjs.entry.js +9 -6
- package/dist/cjs/arcgis-swipe.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-table-list.cjs.entry.js +47 -27
- package/dist/cjs/arcgis-table-list.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +37 -31
- package/dist/cjs/arcgis-time-slider.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-track.cjs.entry.js +26 -30
- package/dist/cjs/arcgis-track.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +30 -31
- package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +43 -23
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +21 -32
- package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-value-picker.cjs.entry.js +44 -27
- package/dist/cjs/arcgis-value-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-weather.cjs.entry.js +25 -19
- package/dist/cjs/arcgis-weather.cjs.entry.js.map +1 -0
- package/dist/cjs/arcgis-zoom.cjs.entry.js +23 -24
- package/dist/cjs/arcgis-zoom.cjs.entry.js.map +1 -0
- package/dist/cjs/{component-utils-cbd20e88.js → component-utils-70169d9c.js} +59 -5
- package/dist/cjs/component-utils-70169d9c.js.map +1 -0
- package/dist/cjs/disconnected-efe16c70.js +40 -0
- package/dist/cjs/disconnected-efe16c70.js.map +1 -0
- package/dist/cjs/{index-bfda1cdc.js → index-3c85172f.js} +2 -0
- package/dist/cjs/index-3c85172f.js.map +1 -0
- package/dist/cjs/{index-6b51d5a0.js → index-f95f0426.js} +752 -71
- package/dist/cjs/index-f95f0426.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +5 -12
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/mapping-utils-2c2f871e.js +42 -0
- package/dist/cjs/mapping-utils-2c2f871e.js.map +1 -0
- package/dist/components/arcgis-area-measurement-2d.js +25 -15
- package/dist/components/arcgis-area-measurement-2d.js.map +1 -0
- package/dist/components/arcgis-area-measurement-3d.js +24 -14
- package/dist/components/arcgis-area-measurement-3d.js.map +1 -0
- package/dist/components/arcgis-attachments.js +56 -13
- package/dist/components/arcgis-attachments.js.map +1 -0
- package/dist/components/arcgis-basemap-gallery.js +31 -22
- package/dist/components/arcgis-basemap-gallery.js.map +1 -0
- package/dist/components/arcgis-basemap-layer-list.js +80 -36
- package/dist/components/arcgis-basemap-layer-list.js.map +1 -0
- package/dist/components/arcgis-basemap-toggle.js +43 -29
- package/dist/components/arcgis-basemap-toggle.js.map +1 -0
- package/dist/components/arcgis-bookmarks.js +44 -25
- package/dist/components/arcgis-bookmarks.js.map +1 -0
- package/dist/components/arcgis-building-explorer.js +57 -23
- package/dist/components/arcgis-building-explorer.js.map +1 -0
- package/dist/components/arcgis-compass.js +18 -17
- package/dist/components/arcgis-compass.js.map +1 -0
- package/dist/components/arcgis-coordinate-conversion.js +75 -30
- package/dist/components/arcgis-coordinate-conversion.js.map +1 -0
- package/dist/components/arcgis-daylight.js +34 -21
- package/dist/components/arcgis-daylight.js.map +1 -0
- package/dist/components/arcgis-directions.js +65 -29
- package/dist/components/arcgis-directions.js.map +1 -0
- package/dist/components/arcgis-directline-measurement-3d.js +25 -22
- package/dist/components/arcgis-directline-measurement-3d.js.map +1 -0
- package/dist/components/arcgis-distance-measurement-2d.js +23 -20
- package/dist/components/arcgis-distance-measurement-2d.js.map +1 -0
- package/dist/components/arcgis-editor.js +48 -29
- package/dist/components/arcgis-editor.js.map +1 -0
- package/dist/components/arcgis-elevation-profile.js +48 -23
- package/dist/components/arcgis-elevation-profile.js.map +1 -0
- package/dist/components/arcgis-expand.js +3 -1
- package/dist/components/arcgis-expand.js.map +1 -0
- package/dist/components/arcgis-feature-form.js +146 -10
- package/dist/components/arcgis-feature-form.js.map +1 -0
- package/dist/components/arcgis-feature-table.js +97 -42
- package/dist/components/arcgis-feature-table.js.map +1 -0
- package/dist/components/arcgis-feature-templates.js +93 -14
- package/dist/components/arcgis-feature-templates.js.map +1 -0
- package/dist/components/arcgis-feature.js +67 -23
- package/dist/components/arcgis-feature.js.map +1 -0
- package/dist/components/arcgis-features.js +65 -27
- package/dist/components/arcgis-features.js.map +1 -0
- package/dist/components/arcgis-floor-filter.js +30 -25
- package/dist/components/arcgis-floor-filter.js.map +1 -0
- package/dist/components/arcgis-fullscreen.js +23 -21
- package/dist/components/arcgis-fullscreen.js.map +1 -0
- package/dist/components/arcgis-histogram-range-slider.js +170 -12
- package/dist/components/arcgis-histogram-range-slider.js.map +1 -0
- package/dist/components/arcgis-histogram.js +147 -9
- package/dist/components/arcgis-histogram.js.map +1 -0
- package/dist/components/arcgis-home.js +36 -22
- package/dist/components/arcgis-home.js.map +1 -0
- package/dist/components/arcgis-layer-list.js +60 -23
- package/dist/components/arcgis-layer-list.js.map +1 -0
- package/dist/components/arcgis-legend.js +30 -23
- package/dist/components/arcgis-legend.js.map +1 -0
- package/dist/components/arcgis-line-of-sight.js +21 -20
- package/dist/components/arcgis-line-of-sight.js.map +1 -0
- package/dist/components/arcgis-locate.js +38 -32
- package/dist/components/arcgis-locate.js.map +1 -0
- package/dist/components/arcgis-map.js +100 -40
- package/dist/components/arcgis-map.js.map +1 -0
- package/dist/components/arcgis-measurement.js +36 -23
- package/dist/components/arcgis-measurement.js.map +1 -0
- package/dist/components/arcgis-navigation-toggle.js +19 -17
- package/dist/components/arcgis-navigation-toggle.js.map +1 -0
- package/dist/components/arcgis-placement.d.ts +11 -0
- package/dist/components/arcgis-placement.js +73 -0
- package/dist/components/arcgis-placement.js.map +1 -0
- package/dist/components/arcgis-print.js +54 -27
- package/dist/components/arcgis-print.js.map +1 -0
- package/dist/components/arcgis-scale-bar.js +24 -21
- package/dist/components/arcgis-scale-bar.js.map +1 -0
- package/dist/components/arcgis-scale-range-slider.js +54 -35
- package/dist/components/arcgis-scale-range-slider.js.map +1 -0
- package/dist/components/arcgis-scene.js +98 -34
- package/dist/components/arcgis-scene.js.map +1 -0
- package/dist/components/arcgis-search.js +107 -41
- package/dist/components/arcgis-search.js.map +1 -0
- package/dist/components/arcgis-shadow-cast.js +34 -31
- package/dist/components/arcgis-shadow-cast.js.map +1 -0
- package/dist/components/arcgis-sketch.js +59 -37
- package/dist/components/arcgis-sketch.js.map +1 -0
- package/dist/components/arcgis-slice.js +24 -33
- package/dist/components/arcgis-slice.js.map +1 -0
- package/dist/components/arcgis-slider.js +57 -43
- package/dist/components/arcgis-slider.js.map +1 -0
- package/dist/components/arcgis-swipe.js +18 -5
- package/dist/components/arcgis-swipe.js.map +1 -0
- package/dist/components/arcgis-table-list.js +58 -27
- package/dist/components/arcgis-table-list.js.map +1 -0
- package/dist/components/arcgis-time-slider.js +54 -31
- package/dist/components/arcgis-time-slider.js.map +1 -0
- package/dist/components/arcgis-track.js +36 -30
- package/dist/components/arcgis-track.js.map +1 -0
- package/dist/components/arcgis-utility-network-associations.js +50 -31
- package/dist/components/arcgis-utility-network-associations.js.map +1 -0
- package/dist/components/arcgis-utility-network-trace.js +56 -23
- package/dist/components/arcgis-utility-network-trace.js.map +1 -0
- package/dist/components/arcgis-utility-network-validate-topology.js +28 -32
- package/dist/components/arcgis-utility-network-validate-topology.js.map +1 -0
- package/dist/components/arcgis-value-picker.js +54 -27
- package/dist/components/arcgis-value-picker.js.map +1 -0
- package/dist/components/arcgis-weather.js +32 -19
- package/dist/components/arcgis-weather.js.map +1 -0
- package/dist/components/arcgis-zoom.js +28 -23
- package/dist/components/arcgis-zoom.js.map +1 -0
- package/dist/{esm/component-utils-2ebdae59.js → components/component-utils.js} +56 -4
- package/dist/components/component-utils.js.map +1 -0
- package/dist/components/disconnected.js +13 -97
- package/dist/components/disconnected.js.map +1 -0
- package/dist/components/expand.js +256 -0
- package/dist/components/expand.js.map +1 -0
- package/dist/components/index.d.ts +5 -55
- package/dist/components/index.js +3 -54
- package/dist/components/index.js.map +1 -0
- package/dist/components/index2.js +3 -1
- package/dist/components/index2.js.map +1 -0
- package/dist/components/mapping-utils.js +12 -10
- package/dist/components/mapping-utils.js.map +1 -0
- package/dist/esm/arcgis-area-measurement-2d.entry.js +20 -16
- package/dist/esm/arcgis-area-measurement-2d.entry.js.map +1 -0
- package/dist/esm/arcgis-area-measurement-3d.entry.js +18 -14
- package/dist/esm/arcgis-area-measurement-3d.entry.js.map +1 -0
- package/dist/esm/arcgis-attachments.entry.js +46 -12
- package/dist/esm/arcgis-attachments.entry.js.map +1 -0
- package/dist/esm/arcgis-basemap-gallery_3.entry.js +503 -0
- package/dist/esm/arcgis-basemap-gallery_3.entry.js.map +1 -0
- package/dist/esm/arcgis-basemap-layer-list.entry.js +63 -34
- package/dist/esm/arcgis-basemap-layer-list.entry.js.map +1 -0
- package/dist/esm/arcgis-basemap-toggle.entry.js +35 -29
- package/dist/esm/arcgis-basemap-toggle.entry.js.map +1 -0
- package/dist/esm/arcgis-bookmarks.entry.js +33 -25
- package/dist/esm/arcgis-bookmarks.entry.js.map +1 -0
- package/dist/esm/arcgis-building-explorer.entry.js +48 -23
- package/dist/esm/arcgis-building-explorer.entry.js.map +1 -0
- package/dist/esm/arcgis-compass.entry.js +14 -18
- package/dist/esm/arcgis-compass.entry.js.map +1 -0
- package/dist/esm/arcgis-coordinate-conversion.entry.js +60 -30
- package/dist/esm/arcgis-coordinate-conversion.entry.js.map +1 -0
- package/dist/esm/arcgis-daylight.entry.js +24 -21
- package/dist/esm/arcgis-daylight.entry.js.map +1 -0
- package/dist/esm/arcgis-directions.entry.js +51 -29
- package/dist/esm/arcgis-directions.entry.js.map +1 -0
- package/dist/esm/arcgis-directline-measurement-3d.entry.js +18 -22
- package/dist/esm/arcgis-directline-measurement-3d.entry.js.map +1 -0
- package/dist/esm/arcgis-distance-measurement-2d.entry.js +16 -20
- package/dist/esm/arcgis-distance-measurement-2d.entry.js.map +1 -0
- package/dist/esm/arcgis-editor.entry.js +35 -29
- package/dist/esm/arcgis-editor.entry.js.map +1 -0
- package/dist/esm/arcgis-elevation-profile.entry.js +35 -22
- package/dist/esm/arcgis-elevation-profile.entry.js.map +1 -0
- package/dist/esm/arcgis-feature-form.entry.js +120 -7
- package/dist/esm/arcgis-feature-form.entry.js.map +1 -0
- package/dist/esm/arcgis-feature-table.entry.js +72 -43
- package/dist/esm/arcgis-feature-table.entry.js.map +1 -0
- package/dist/esm/arcgis-feature-templates.entry.js +77 -13
- package/dist/esm/arcgis-feature-templates.entry.js.map +1 -0
- package/dist/esm/arcgis-feature.entry.js +52 -22
- package/dist/esm/arcgis-feature.entry.js.map +1 -0
- package/dist/esm/arcgis-features.entry.js +52 -25
- package/dist/esm/arcgis-features.entry.js.map +1 -0
- package/dist/esm/arcgis-floor-filter.entry.js +21 -25
- package/dist/esm/arcgis-floor-filter.entry.js.map +1 -0
- package/dist/esm/arcgis-fullscreen.entry.js +18 -22
- package/dist/esm/arcgis-fullscreen.entry.js.map +1 -0
- package/dist/esm/arcgis-histogram-range-slider.entry.js +140 -12
- package/dist/esm/arcgis-histogram-range-slider.entry.js.map +1 -0
- package/dist/esm/arcgis-histogram.entry.js +119 -7
- package/dist/esm/arcgis-histogram.entry.js.map +1 -0
- package/dist/esm/arcgis-home.entry.js +29 -23
- package/dist/esm/arcgis-home.entry.js.map +1 -0
- package/dist/esm/arcgis-layer-list.entry.js +47 -22
- package/dist/esm/arcgis-layer-list.entry.js.map +1 -0
- package/dist/esm/arcgis-legend.entry.js +19 -23
- package/dist/esm/arcgis-legend.entry.js.map +1 -0
- package/dist/esm/arcgis-line-of-sight.entry.js +16 -20
- package/dist/esm/arcgis-line-of-sight.entry.js.map +1 -0
- package/dist/esm/arcgis-locate.entry.js +27 -32
- package/dist/esm/arcgis-locate.entry.js.map +1 -0
- package/dist/esm/arcgis-map-components.js +6 -4
- package/dist/esm/arcgis-map-components.js.map +1 -0
- package/dist/esm/arcgis-measurement.entry.js +28 -23
- package/dist/esm/arcgis-measurement.entry.js.map +1 -0
- package/dist/esm/arcgis-navigation-toggle.entry.js +14 -18
- package/dist/esm/arcgis-navigation-toggle.entry.js.map +1 -0
- package/dist/esm/arcgis-placement.entry.js +48 -0
- package/dist/esm/arcgis-placement.entry.js.map +1 -0
- package/dist/esm/arcgis-print.entry.js +41 -27
- package/dist/esm/arcgis-print.entry.js.map +1 -0
- package/dist/esm/arcgis-scale-bar.entry.js +17 -21
- package/dist/esm/arcgis-scale-bar.entry.js.map +1 -0
- package/dist/esm/arcgis-scale-range-slider.entry.js +40 -34
- package/dist/esm/arcgis-scale-range-slider.entry.js.map +1 -0
- package/dist/esm/arcgis-scene.entry.js +201 -0
- package/dist/esm/arcgis-scene.entry.js.map +1 -0
- package/dist/esm/arcgis-search.entry.js +316 -0
- package/dist/esm/arcgis-search.entry.js.map +1 -0
- package/dist/esm/arcgis-shadow-cast.entry.js +26 -29
- package/dist/esm/arcgis-shadow-cast.entry.js.map +1 -0
- package/dist/esm/arcgis-sketch.entry.js +43 -37
- package/dist/esm/arcgis-sketch.entry.js.map +1 -0
- package/dist/esm/arcgis-slice.entry.js +18 -31
- package/dist/esm/arcgis-slice.entry.js.map +1 -0
- package/dist/esm/arcgis-slider.entry.js +41 -43
- package/dist/esm/arcgis-slider.entry.js.map +1 -0
- package/dist/esm/arcgis-swipe.entry.js +9 -6
- package/dist/esm/arcgis-swipe.entry.js.map +1 -0
- package/dist/esm/arcgis-table-list.entry.js +47 -27
- package/dist/esm/arcgis-table-list.entry.js.map +1 -0
- package/dist/esm/arcgis-time-slider.entry.js +37 -31
- package/dist/esm/arcgis-time-slider.entry.js.map +1 -0
- package/dist/esm/arcgis-track.entry.js +26 -30
- package/dist/esm/arcgis-track.entry.js.map +1 -0
- package/dist/esm/arcgis-utility-network-associations.entry.js +30 -31
- package/dist/esm/arcgis-utility-network-associations.entry.js.map +1 -0
- package/dist/esm/arcgis-utility-network-trace.entry.js +43 -23
- package/dist/esm/arcgis-utility-network-trace.entry.js.map +1 -0
- package/dist/esm/arcgis-utility-network-validate-topology.entry.js +21 -32
- package/dist/esm/arcgis-utility-network-validate-topology.entry.js.map +1 -0
- package/dist/esm/arcgis-value-picker.entry.js +44 -27
- package/dist/esm/arcgis-value-picker.entry.js.map +1 -0
- package/dist/esm/arcgis-weather.entry.js +25 -19
- package/dist/esm/arcgis-weather.entry.js.map +1 -0
- package/dist/esm/arcgis-zoom.entry.js +23 -24
- package/dist/esm/arcgis-zoom.entry.js.map +1 -0
- package/dist/esm/component-utils-42a79acb.js +125 -0
- package/dist/esm/component-utils-42a79acb.js.map +1 -0
- package/dist/esm/disconnected-bf72f8e5.js +38 -0
- package/dist/esm/disconnected-bf72f8e5.js.map +1 -0
- package/dist/esm/{index-eb3ead33.js → index-05f887cd.js} +752 -71
- package/dist/esm/index-05f887cd.js.map +1 -0
- package/dist/esm/{index-334b0bde.js → index-fd2cea51.js} +3 -1
- package/dist/esm/index-fd2cea51.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +6 -13
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/mapping-utils-a935fed9.js +40 -0
- package/dist/esm/mapping-utils-a935fed9.js.map +1 -0
- package/dist/loader/index.d.ts +2 -2
- package/dist/types/components/{arcgis-area-measurement-2d/arcgis-area-measurement-2d.d.ts → area-measurement-2d/area-measurement-2d.d.ts} +5 -3
- package/dist/types/components/{arcgis-area-measurement-3d/arcgis-area-measurement-3d.d.ts → area-measurement-3d/area-measurement-3d.d.ts} +5 -3
- package/dist/types/components/{arcgis-attachments/arcgis-attachments.d.ts → attachments/attachments.d.ts} +10 -1
- package/dist/types/components/{arcgis-basemap-gallery/arcgis-basemap-gallery.d.ts → basemap-gallery/basemap-gallery.d.ts} +5 -3
- package/dist/types/components/{arcgis-basemap-layer-list/arcgis-basemap-layer-list.d.ts → basemap-layer-list/basemap-layer-list.d.ts} +15 -8
- package/dist/types/components/{arcgis-basemap-toggle/arcgis-basemap-toggle.d.ts → basemap-toggle/basemap-toggle.d.ts} +7 -4
- package/dist/types/components/{arcgis-bookmarks/arcgis-bookmarks.d.ts → bookmarks/bookmarks.d.ts} +10 -7
- package/dist/types/components/{arcgis-building-explorer/arcgis-building-explorer.d.ts → building-explorer/building-explorer.d.ts} +9 -3
- package/dist/types/components/{arcgis-compass/arcgis-compass.d.ts → compass/compass.d.ts} +4 -3
- package/dist/types/components/{arcgis-coordinate-conversion/arcgis-coordinate-conversion.d.ts → coordinate-conversion/coordinate-conversion.d.ts} +14 -11
- package/dist/types/components/{arcgis-daylight/arcgis-daylight.d.ts → daylight/daylight.d.ts} +9 -6
- package/dist/types/components/{arcgis-directions/arcgis-directions.d.ts → directions/directions.d.ts} +13 -9
- package/dist/types/components/{arcgis-directline-measurement-3d/arcgis-directline-measurement-3d.d.ts → directline-measurement-3d/directline-measurement-3d.d.ts} +6 -5
- package/dist/types/components/{arcgis-distance-measurement-2d/arcgis-distance-measurement-2d.d.ts → distance-measurement-2d/distance-measurement-2d.d.ts} +6 -5
- package/dist/types/components/{arcgis-editor/arcgis-editor.d.ts → editor/editor.d.ts} +12 -9
- package/dist/types/components/{arcgis-elevation-profile/arcgis-elevation-profile.d.ts → elevation-profile/elevation-profile.d.ts} +12 -8
- package/dist/types/components/expand/expand.d.ts +48 -0
- package/dist/types/components/{arcgis-feature/arcgis-feature.d.ts → feature/feature.d.ts} +13 -5
- package/dist/types/components/feature-form/feature-form.d.ts +42 -0
- package/dist/types/components/{arcgis-feature-table/arcgis-feature-table.d.ts → feature-table/feature-table.d.ts} +25 -18
- package/dist/types/components/feature-templates/feature-templates.d.ts +38 -0
- package/dist/types/components/{arcgis-features/arcgis-features.d.ts → features/features.d.ts} +13 -4
- package/dist/types/components/{arcgis-floor-filter/arcgis-floor-filter.d.ts → floor-filter/floor-filter.d.ts} +8 -7
- package/dist/types/components/{arcgis-fullscreen/arcgis-fullscreen.d.ts → fullscreen/fullscreen.d.ts} +5 -4
- package/dist/types/components/histogram/histogram.d.ts +41 -0
- package/dist/types/components/histogram-range-slider/histogram-range-slider.d.ts +52 -0
- package/dist/types/components/{arcgis-home/arcgis-home.d.ts → home/home.d.ts} +7 -4
- package/dist/types/components/{arcgis-layer-list/arcgis-layer-list.d.ts → layer-list/layer-list.d.ts} +11 -6
- package/dist/types/components/{arcgis-legend/arcgis-legend.d.ts → legend/legend.d.ts} +10 -9
- package/dist/types/components/{arcgis-line-of-sight/arcgis-line-of-sight.d.ts → line-of-sight/line-of-sight.d.ts} +4 -3
- package/dist/types/components/{arcgis-locate/arcgis-locate.d.ts → locate/locate.d.ts} +11 -10
- package/dist/types/components/{arcgis-map/arcgis-map.d.ts → map/map.d.ts} +9 -2
- package/dist/types/components/{arcgis-measurement/arcgis-measurement.d.ts → measurement/measurement.d.ts} +7 -6
- package/dist/types/components/{arcgis-navigation-toggle/arcgis-navigation-toggle.d.ts → navigation-toggle/navigation-toggle.d.ts} +5 -4
- package/dist/types/components/{arcgis-expand/arcgis-expand.d.ts → placement/placement.d.ts} +8 -13
- package/dist/types/components/{arcgis-print/arcgis-print.d.ts → print/print.d.ts} +14 -13
- package/dist/types/components/{arcgis-scale-bar/arcgis-scale-bar.d.ts → scale-bar/scale-bar.d.ts} +6 -5
- package/dist/types/components/{arcgis-scale-range-slider/arcgis-scale-range-slider.d.ts → scale-range-slider/scale-range-slider.d.ts} +12 -9
- package/dist/types/components/{arcgis-scene/arcgis-scene.d.ts → scene/scene.d.ts} +9 -2
- package/dist/types/components/{arcgis-search/arcgis-search.d.ts → search/search.d.ts} +21 -20
- package/dist/types/components/{arcgis-shadow-cast/arcgis-shadow-cast.d.ts → shadow-cast/shadow-cast.d.ts} +6 -5
- package/dist/types/components/{arcgis-sketch/arcgis-sketch.d.ts → sketch/sketch.d.ts} +15 -12
- package/dist/types/components/{arcgis-slice/arcgis-slice.d.ts → slice/slice.d.ts} +4 -5
- package/dist/types/components/{arcgis-slider/arcgis-slider.d.ts → slider/slider.d.ts} +15 -14
- package/dist/types/components/{arcgis-swipe/arcgis-swipe.d.ts → swipe/swipe.d.ts} +1 -0
- package/dist/types/components/{arcgis-table-list/arcgis-table-list.d.ts → table-list/table-list.d.ts} +10 -5
- package/dist/types/components/{arcgis-time-slider/arcgis-time-slider.d.ts → time-slider/time-slider.d.ts} +16 -13
- package/dist/types/components/{arcgis-track/arcgis-track.d.ts → track/track.d.ts} +10 -9
- package/dist/types/components/{arcgis-utility-network-associations/arcgis-utility-network-associations.d.ts → utility-network-associations/utility-network-associations.d.ts} +20 -17
- package/dist/types/components/{arcgis-utility-network-trace/arcgis-utility-network-trace.d.ts → utility-network-trace/utility-network-trace.d.ts} +12 -11
- package/dist/types/components/{arcgis-utility-network-validate-topology/arcgis-utility-network-validate-topology.d.ts → utility-network-validate-topology/utility-network-validate-topology.d.ts} +6 -5
- package/dist/types/components/{arcgis-value-picker/arcgis-value-picker.d.ts → value-picker/value-picker.d.ts} +9 -6
- package/dist/types/components/{arcgis-weather/arcgis-weather.d.ts → weather/weather.d.ts} +6 -3
- package/dist/types/components/{arcgis-zoom/arcgis-zoom.d.ts → zoom/zoom.d.ts} +5 -4
- package/dist/types/components.d.ts +953 -62
- package/dist/types/stencil-public-runtime.d.ts +53 -17
- package/dist/types/utils/component-utils.d.ts +9 -4
- package/dist/types/utils/expandable.d.ts +1 -0
- package/dist/types/utils/mapping-utils.d.ts +1 -1
- package/package.json +21 -23
- package/dist/arcgis-map-components/p-037a3bb6.entry.js +0 -1
- package/dist/arcgis-map-components/p-064bf907.entry.js +0 -1
- package/dist/arcgis-map-components/p-08015460.entry.js +0 -1
- package/dist/arcgis-map-components/p-0d492ad6.entry.js +0 -1
- package/dist/arcgis-map-components/p-0ee8ea5a.entry.js +0 -1
- package/dist/arcgis-map-components/p-11168df4.entry.js +0 -1
- package/dist/arcgis-map-components/p-1680f044.entry.js +0 -1
- package/dist/arcgis-map-components/p-1a6dcf6a.entry.js +0 -1
- package/dist/arcgis-map-components/p-1e5e5ed9.js +0 -2
- package/dist/arcgis-map-components/p-29c81862.entry.js +0 -1
- package/dist/arcgis-map-components/p-2d3406f7.js +0 -1
- package/dist/arcgis-map-components/p-347dba98.entry.js +0 -1
- package/dist/arcgis-map-components/p-3673ae6e.entry.js +0 -1
- package/dist/arcgis-map-components/p-367c6986.entry.js +0 -1
- package/dist/arcgis-map-components/p-3b2623c6.entry.js +0 -1
- package/dist/arcgis-map-components/p-4722bbad.entry.js +0 -1
- package/dist/arcgis-map-components/p-48c89578.entry.js +0 -1
- package/dist/arcgis-map-components/p-5299aa69.entry.js +0 -1
- package/dist/arcgis-map-components/p-52c3388d.entry.js +0 -1
- package/dist/arcgis-map-components/p-5d2f53bd.entry.js +0 -1
- package/dist/arcgis-map-components/p-615399dd.entry.js +0 -1
- package/dist/arcgis-map-components/p-658a2499.entry.js +0 -1
- package/dist/arcgis-map-components/p-7031c422.entry.js +0 -1
- package/dist/arcgis-map-components/p-7084f84f.entry.js +0 -1
- package/dist/arcgis-map-components/p-74b7f2c3.entry.js +0 -1
- package/dist/arcgis-map-components/p-86a82586.entry.js +0 -1
- package/dist/arcgis-map-components/p-8a60074a.entry.js +0 -1
- package/dist/arcgis-map-components/p-8b4cf5da.entry.js +0 -1
- package/dist/arcgis-map-components/p-922bbfed.entry.js +0 -1
- package/dist/arcgis-map-components/p-932be58c.entry.js +0 -1
- package/dist/arcgis-map-components/p-99d486cb.entry.js +0 -1
- package/dist/arcgis-map-components/p-9fdd4596.entry.js +0 -1
- package/dist/arcgis-map-components/p-a0f092fc.entry.js +0 -1
- package/dist/arcgis-map-components/p-a1e2e59f.entry.js +0 -1
- package/dist/arcgis-map-components/p-a249c2fa.entry.js +0 -1
- package/dist/arcgis-map-components/p-a508d7c6.entry.js +0 -1
- package/dist/arcgis-map-components/p-a89102b6.entry.js +0 -1
- package/dist/arcgis-map-components/p-ac7e9294.entry.js +0 -1
- package/dist/arcgis-map-components/p-adcfd40d.entry.js +0 -1
- package/dist/arcgis-map-components/p-ae96d72a.entry.js +0 -1
- package/dist/arcgis-map-components/p-b026950f.entry.js +0 -1
- package/dist/arcgis-map-components/p-b5904340.entry.js +0 -1
- package/dist/arcgis-map-components/p-b813c9e6.js +0 -1
- package/dist/arcgis-map-components/p-c57f270d.entry.js +0 -1
- package/dist/arcgis-map-components/p-c63d9e91.entry.js +0 -1
- package/dist/arcgis-map-components/p-c8516f87.entry.js +0 -1
- package/dist/arcgis-map-components/p-d3f3affa.entry.js +0 -1
- package/dist/arcgis-map-components/p-d5ac71b2.entry.js +0 -1
- package/dist/arcgis-map-components/p-dcf3861b.entry.js +0 -1
- package/dist/arcgis-map-components/p-e1201530.entry.js +0 -1
- package/dist/arcgis-map-components/p-eb95717e.entry.js +0 -1
- package/dist/arcgis-map-components/p-ee1086de.entry.js +0 -1
- package/dist/arcgis-map-components/p-f28d6d27.js +0 -1
- package/dist/arcgis-map-components/p-f8353590.entry.js +0 -1
- package/dist/cjs/arcgis-basemap-gallery.cjs.entry.js +0 -97
- package/dist/cjs/arcgis-expand_4.cjs.entry.js +0 -693
- package/dist/cjs/disconnected-306cb220.js +0 -55
- package/dist/components/arcgis-expand2.js +0 -107
- package/dist/esm/arcgis-basemap-gallery.entry.js +0 -93
- package/dist/esm/arcgis-expand_4.entry.js +0 -686
- package/dist/esm/disconnected-bc5fc8bc.js +0 -52
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/types/components/arcgis-feature-form/arcgis-feature-form.d.ts +0 -18
- package/dist/types/components/arcgis-feature-templates/arcgis-feature-templates.d.ts +0 -24
- package/dist/types/components/arcgis-histogram/arcgis-histogram.d.ts +0 -18
- package/dist/types/components/arcgis-histogram-range-slider/arcgis-histogram-range-slider.d.ts +0 -25
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { I as importConfig, i as importCoreReactiveUtils, Q as newWebScene, R as newViewsSceneView } from './index2.js';
|
|
3
|
+
import { i as isNullOrEmptyString } from './component-utils.js';
|
|
3
4
|
import { d as disableNavigation } from './mapping-utils.js';
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
+
const sceneCss = ".arcgis-scene{padding:0;margin:0;height:100%;width:100%}";
|
|
6
7
|
|
|
7
|
-
const ArcgisScene$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
const ArcgisScene$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisScene extends HTMLElement {
|
|
8
9
|
constructor() {
|
|
9
10
|
super();
|
|
10
11
|
this.__registerHost();
|
|
11
12
|
this.viewReady = createEvent(this, "viewReady", 7);
|
|
13
|
+
this._watchHandles = [];
|
|
12
14
|
this.apiKey = undefined;
|
|
13
15
|
this.basemap = undefined;
|
|
14
16
|
this.itemId = undefined;
|
|
@@ -22,9 +24,38 @@ const ArcgisScene$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
22
24
|
apiKeyWatcher(value) {
|
|
23
25
|
this.config.apiKey = value;
|
|
24
26
|
}
|
|
27
|
+
basemapWatcher(value) {
|
|
28
|
+
if (this.view?.map) {
|
|
29
|
+
this.view.map.basemap = value;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
25
32
|
itemIdWatcher(value, old) {
|
|
33
|
+
// NOTE: there is an issue when users set the value to undefined.
|
|
34
|
+
// https://github.com/ionic-team/stencil/issues/2814
|
|
35
|
+
// If user sets `itemid` to `undefined`, Stencil 2 will log the following warning:
|
|
36
|
+
// `The state/prop "${propName}" changed during rendering.`
|
|
37
|
+
// `This can potentially lead to infinite-loops and other bugs.`
|
|
38
|
+
//
|
|
39
|
+
// It appears consumer setting the value to null does not cause this warning.
|
|
40
|
+
// In Stencil 4, if a user sets property to undefined, will trigger change, but
|
|
41
|
+
// will not remove attribute from DOM.
|
|
42
|
+
if (value !== old) {
|
|
43
|
+
if (this.view?.map) {
|
|
44
|
+
this._updateMap();
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this._loadMap();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
portalUrlWatcher(value, old) {
|
|
26
52
|
if (value && value !== old) {
|
|
27
|
-
this.
|
|
53
|
+
if (this.view?.map) {
|
|
54
|
+
this._updateMap();
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this._loadMap();
|
|
58
|
+
}
|
|
28
59
|
}
|
|
29
60
|
}
|
|
30
61
|
scaleWatcher(value, old) {
|
|
@@ -47,13 +78,17 @@ const ArcgisScene$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
47
78
|
if (this.apiKey) {
|
|
48
79
|
this.config.apiKey = this.apiKey;
|
|
49
80
|
}
|
|
50
|
-
this.
|
|
81
|
+
this._loadMap();
|
|
51
82
|
}
|
|
52
83
|
componentDidRender() {
|
|
53
84
|
if (this.view) {
|
|
54
85
|
this.view.container = this.el;
|
|
55
86
|
}
|
|
56
87
|
}
|
|
88
|
+
disconnectedCallback() {
|
|
89
|
+
this._clearWatchHandles();
|
|
90
|
+
this.view.destroy();
|
|
91
|
+
}
|
|
57
92
|
render() {
|
|
58
93
|
return h("div", { class: "arcgis-scene", ref: (el) => (this.el = el) });
|
|
59
94
|
}
|
|
@@ -62,36 +97,17 @@ const ArcgisScene$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
62
97
|
// Private Methods
|
|
63
98
|
//
|
|
64
99
|
//--------------------------------------------------------------------------
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
mapParams.portalItem = this._createPortalItem();
|
|
69
|
-
}
|
|
70
|
-
if (this.basemap) {
|
|
71
|
-
mapParams.basemap = this.basemap;
|
|
72
|
-
}
|
|
73
|
-
const map = await newWebScene(mapParams);
|
|
74
|
-
const params = this._createViewParams();
|
|
75
|
-
const view = await newViewsSceneView({
|
|
76
|
-
map,
|
|
77
|
-
...params
|
|
78
|
-
});
|
|
79
|
-
this.view = view;
|
|
80
|
-
this._addWatchers();
|
|
81
|
-
if (this.disableNavigation) {
|
|
82
|
-
disableNavigation(this.view);
|
|
83
|
-
}
|
|
84
|
-
this.view.when(() => {
|
|
85
|
-
this.viewReady.emit({ view: this.view });
|
|
86
|
-
});
|
|
100
|
+
_clearWatchHandles() {
|
|
101
|
+
this._watchHandles.forEach((handle) => handle.remove());
|
|
102
|
+
this._watchHandles = [];
|
|
87
103
|
}
|
|
88
104
|
async _addWatchers() {
|
|
89
105
|
const { watch, when } = await importCoreReactiveUtils();
|
|
90
|
-
watch(() => this.view.center, (center) => {
|
|
106
|
+
this._watchHandles.push(watch(() => this.view.center, (center) => {
|
|
91
107
|
const value = `${center.longitude},${center.latitude}`;
|
|
92
108
|
this.center = value;
|
|
93
|
-
});
|
|
94
|
-
when(() => this.view.updating, () => {
|
|
109
|
+
}));
|
|
110
|
+
this._watchHandles.push(when(() => this.view.updating, () => {
|
|
95
111
|
when(() => !this.view.updating, () => {
|
|
96
112
|
if (this.zoom !== this.view.zoom) {
|
|
97
113
|
this.zoom = this.view.zoom;
|
|
@@ -100,7 +116,21 @@ const ArcgisScene$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
100
116
|
this.scale = this.view.scale;
|
|
101
117
|
}
|
|
102
118
|
}, { once: true });
|
|
103
|
-
});
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
async _createMap() {
|
|
122
|
+
const mapParams = {};
|
|
123
|
+
if (this.itemId) {
|
|
124
|
+
mapParams.portalItem = this._createPortalItem();
|
|
125
|
+
}
|
|
126
|
+
if (this.basemap) {
|
|
127
|
+
mapParams.basemap = this.basemap;
|
|
128
|
+
}
|
|
129
|
+
else if (isNullOrEmptyString(this.itemId)) {
|
|
130
|
+
mapParams.basemap = "topo-vector";
|
|
131
|
+
}
|
|
132
|
+
const map = await newWebScene(mapParams);
|
|
133
|
+
return map;
|
|
104
134
|
}
|
|
105
135
|
_createPortalItem() {
|
|
106
136
|
const item = {};
|
|
@@ -132,24 +162,56 @@ const ArcgisScene$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
132
162
|
}
|
|
133
163
|
return params;
|
|
134
164
|
}
|
|
135
|
-
|
|
165
|
+
async _loadMap() {
|
|
166
|
+
const map = await this._createMap();
|
|
167
|
+
const params = this._createViewParams();
|
|
168
|
+
const view = await newViewsSceneView({
|
|
169
|
+
map,
|
|
170
|
+
...params
|
|
171
|
+
});
|
|
172
|
+
this.view = view;
|
|
173
|
+
this._addWatchers();
|
|
174
|
+
if (this.disableNavigation) {
|
|
175
|
+
disableNavigation(this.view);
|
|
176
|
+
}
|
|
177
|
+
this.view.when(() => {
|
|
178
|
+
this.viewReady.emit({ view: this.view });
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
async _updateMap() {
|
|
182
|
+
if (this.view?.map) {
|
|
183
|
+
this.view.map.destroy();
|
|
184
|
+
const map = await this._createMap();
|
|
185
|
+
this.view.map = map;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
get _hostElement() { return this; }
|
|
136
189
|
static get watchers() { return {
|
|
137
190
|
"apiKey": ["apiKeyWatcher"],
|
|
191
|
+
"basemap": ["basemapWatcher"],
|
|
138
192
|
"itemId": ["itemIdWatcher"],
|
|
193
|
+
"portalUrl": ["portalUrlWatcher"],
|
|
139
194
|
"scale": ["scaleWatcher"],
|
|
140
195
|
"zoom": ["zoomWatcher"]
|
|
141
196
|
}; }
|
|
142
|
-
static get style() { return
|
|
197
|
+
static get style() { return sceneCss; }
|
|
143
198
|
}, [0, "arcgis-scene", {
|
|
144
199
|
"apiKey": [1, "api-key"],
|
|
145
200
|
"basemap": [1025],
|
|
146
|
-
"itemId": [
|
|
201
|
+
"itemId": [1537, "item-id"],
|
|
147
202
|
"portalUrl": [1, "portal-url"],
|
|
148
203
|
"scale": [1538],
|
|
149
204
|
"zoom": [1538],
|
|
150
205
|
"center": [1537],
|
|
151
206
|
"view": [1040],
|
|
152
207
|
"disableNavigation": [4, "disable-navigation"]
|
|
208
|
+
}, undefined, {
|
|
209
|
+
"apiKey": ["apiKeyWatcher"],
|
|
210
|
+
"basemap": ["basemapWatcher"],
|
|
211
|
+
"itemId": ["itemIdWatcher"],
|
|
212
|
+
"portalUrl": ["portalUrlWatcher"],
|
|
213
|
+
"scale": ["scaleWatcher"],
|
|
214
|
+
"zoom": ["zoomWatcher"]
|
|
153
215
|
}]);
|
|
154
216
|
function defineCustomElement$1() {
|
|
155
217
|
if (typeof customElements === "undefined") {
|
|
@@ -170,3 +232,5 @@ const ArcgisScene = ArcgisScene$1;
|
|
|
170
232
|
const defineCustomElement = defineCustomElement$1;
|
|
171
233
|
|
|
172
234
|
export { ArcgisScene, defineCustomElement };
|
|
235
|
+
|
|
236
|
+
//# sourceMappingURL=arcgis-scene.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"arcgis-scene.js","mappings":";;;;;AAAA,MAAM,QAAQ,GAAG,0DAA0D;;MCa9DA,aAAW;;;;;IA8FtB,kBAAa,GAAyB,EAAE,CAAC;;;;;;;;;6BAJb,KAAK;;EAtEjC,aAAa,CAAC,KAAa;IACzB,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC;GAC5B;EAKD,cAAc,CAAC,KAAa;IAC1B,IAAI,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;MAClB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,KAAY,CAAC;KACtC;GACF;EAKD,aAAa,CAAC,KAAa,EAAE,GAAW;;;;;;;;;;IAUtC,IAAI,KAAK,KAAK,GAAG,EAAE;MACjB,IAAI,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;QAClB,IAAI,CAAC,UAAU,EAAE,CAAC;OACnB;WAAM;QACL,IAAI,CAAC,QAAQ,EA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AI,CAAC,iBAAiB,EAAE,CAAC;IAExC,MAAM,IAAI,GAAG,MAAM,iBAAiB,CAAC;MACnC,GAAG;MACH,GAAG,MAAM;KACV,CAAC,CAAC;IAEH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAEjB,IAAI,CAAC,YAAY,EAAE,CAAC;IAEpB,IAAI,IAAI,CAAC,iBAAiB,EAAE;MAC1B,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC9B;IAED,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;MACb,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;KAC1C,CAAC,CAAC;GACJ;EAEO,MAAM,UAAU;IACtB,IAAI,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;MAClB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;MACxB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;MACpC,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;KACrB;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ArcgisScene"],"sources":["src/components/scene/scene.css?tag=arcgis-scene","src/components/scene/scene.tsx"],"sourcesContent":[".arcgis-scene {\n padding: 0;\n margin: 0;\n height: 100%;\n width: 100%;\n}\n","import { Component, Element, Event, EventEmitter, h, Prop, VNode, Watch } from \"@stencil/core\";\n\n// arcgis imports\nimport { importConfig, importCoreReactiveUtils, newViewsSceneView, newWebScene } from \"@arcgis/core-adapter\";\nimport { isNullOrEmptyString, ViewElement } from \"../../utils/component-utils\";\nimport { disableNavigation } from \"../../utils/mapping-utils\";\nimport { ArcGISSceneView } from \"../types\";\n\n@Component({\n tag: \"arcgis-scene\",\n styleUrl: \"scene.css\",\n shadow: false\n})\nexport class ArcgisScene implements ViewElement {\n //--------------------------------------------------------------------------\n //\n // Elements\n //\n //--------------------------------------------------------------------------\n\n el: HTMLDivElement;\n\n @Element() _hostElement: HTMLArcgisSceneElement;\n\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n\n @Prop() apiKey: string;\n\n @Watch(\"apiKey\")\n apiKeyWatcher(value: string): void {\n this.config.apiKey = value;\n }\n\n @Prop({ mutable: true }) basemap: string;\n\n @Watch(\"basemap\")\n basemapWatcher(value: string): void {\n if (this.view?.map) {\n this.view.map.basemap = value as any;\n }\n }\n\n @Prop({ mutable: true, reflect: true }) itemId: string;\n\n @Watch(\"itemId\")\n itemIdWatcher(value: string, old: string): void {\n // NOTE: there is an issue when users set the value to undefined.\n // https://github.com/ionic-team/stencil/issues/2814\n // If user sets `itemid` to `undefined`, Stencil 2 will log the following warning:\n // `The state/prop \"${propName}\" changed during rendering.`\n // `This can potentially lead to infinite-loops and other bugs.`\n //\n // It appears consumer setting the value to null does not cause this warning.\n // In Stencil 4, if a user sets property to undefined, will trigger change, but\n // will not remove attribute from DOM.\n if (value !== old) {\n if (this.view?.map) {\n this._updateMap();\n } else {\n this._loadMap();\n }\n }\n }\n\n @Prop() portalUrl: string;\n\n @Watch(\"portalUrl\")\n portalUrlWatcher(value: string, old: string): void {\n if (value && value !== old) {\n if (this.view?.map) {\n this._updateMap();\n } else {\n this._loadMap();\n }\n }\n }\n\n @Prop({ mutable: true, reflect: true }) scale: number;\n\n @Watch(\"scale\")\n scaleWatcher(value: number, old: number): void {\n if (value != null && value !== old) {\n this.view.scale = value;\n }\n }\n\n @Prop({ mutable: true, reflect: true }) zoom: number;\n\n @Watch(\"zoom\")\n zoomWatcher(value: number, old: number): void {\n if (value != null && value !== old) {\n this.view.zoom = value;\n }\n }\n\n @Prop({ mutable: true, reflect: true }) center: number[] | string;\n\n @Prop({ mutable: true }) view: ArcGISSceneView;\n\n @Prop() disableNavigation = false;\n\n config: __esri.config;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) viewReady: EventEmitter<{ view: __esri.SceneView }>;\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentWillLoad(): Promise<void> {\n this.config = await importConfig();\n if (this.apiKey) {\n this.config.apiKey = this.apiKey;\n }\n\n this._loadMap();\n }\n\n componentDidRender(): void {\n if (this.view) {\n this.view.container = this.el;\n }\n }\n\n disconnectedCallback(): void {\n this._clearWatchHandles();\n this.view.destroy();\n }\n\n render(): VNode {\n return <div class=\"arcgis-scene\" ref={(el) => (this.el = el!)}></div>;\n }\n\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n\n private _clearWatchHandles(): void {\n this._watchHandles.forEach((handle) => handle.remove());\n this._watchHandles = [];\n }\n\n private async _addWatchers() {\n const { watch, when } = await importCoreReactiveUtils();\n\n this._watchHandles.push(\n watch(\n () => this.view.center,\n (center) => {\n const value = `${center.longitude},${center.latitude}`;\n this.center = value;\n }\n )\n );\n\n this._watchHandles.push(\n when(\n () => this.view.updating,\n () => {\n when(\n () => !this.view.updating,\n () => {\n if (this.zoom !== this.view.zoom) {\n this.zoom = this.view.zoom;\n }\n if (this.scale !== this.view.scale) {\n this.scale = this.view.scale;\n }\n },\n { once: true }\n );\n }\n )\n );\n }\n\n private async _createMap(): Promise<__esri.WebScene> {\n const mapParams: Partial<__esri.WebScene> = {};\n\n if (this.itemId) {\n mapParams.portalItem = this._createPortalItem() as any;\n }\n\n if (this.basemap) {\n mapParams.basemap = this.basemap as any;\n } else if (isNullOrEmptyString(this.itemId)) {\n mapParams.basemap = \"topo-vector\" as any;\n }\n\n const map = await newWebScene(mapParams);\n return map;\n }\n\n private _createPortalItem(): Partial<__esri.PortalItemProperties> {\n const item: Partial<__esri.PortalItemProperties> = {};\n\n if (this.itemId) {\n item.id = this.itemId;\n }\n if (this.portalUrl) {\n item.portal = {\n url: this.portalUrl\n } as Partial<__esri.PortalProperties>;\n }\n\n return item;\n }\n\n private _createViewParams(): Partial<__esri.SceneViewProperties> {\n const params: Partial<__esri.SceneViewProperties> = {};\n\n if (this.zoom !== undefined) {\n params.zoom = this.zoom;\n }\n\n if (this.scale !== undefined) {\n params.scale = this.scale;\n }\n\n if (this.center) {\n if (typeof this.center === \"string\") {\n params.center = this.center.split(\",\").map((x) => Number(x));\n } else {\n params.center = this.center;\n }\n }\n\n return params;\n }\n\n private async _loadMap(): Promise<void> {\n const map = await this._createMap();\n\n const params = this._createViewParams();\n\n const view = await newViewsSceneView({\n map,\n ...params\n });\n\n this.view = view;\n\n this._addWatchers();\n\n if (this.disableNavigation) {\n disableNavigation(this.view);\n }\n\n this.view.when(() => {\n this.viewReady.emit({ view: this.view });\n });\n }\n\n private async _updateMap(): Promise<void> {\n if (this.view?.map) {\n this.view.map.destroy();\n const map = await this._createMap();\n this.view.map = map;\n }\n }\n}\n"],"version":3}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView,
|
|
4
|
-
import {
|
|
2
|
+
import { S as newWidgetsSearch, i as importCoreReactiveUtils } from './index2.js';
|
|
3
|
+
import { r as referenceElementHelper, c as checkForView, a as addHandles } from './component-utils.js';
|
|
4
|
+
import { o as onDisconnectedHelper } from './disconnected.js';
|
|
5
|
+
import { d as defineCustomElement$2 } from './expand.js';
|
|
5
6
|
|
|
6
|
-
const
|
|
7
|
+
const searchCss = "";
|
|
7
8
|
|
|
8
|
-
const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisSearch extends HTMLElement {
|
|
9
10
|
constructor() {
|
|
10
11
|
super();
|
|
11
12
|
this.__registerHost();
|
|
@@ -18,6 +19,7 @@ const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
18
19
|
this.selectResult = createEvent(this, "selectResult", 7);
|
|
19
20
|
this.suggestComplete = createEvent(this, "suggestComplete", 7);
|
|
20
21
|
this.suggestStart = createEvent(this, "suggestStart", 7);
|
|
22
|
+
this._watchHandles = [];
|
|
21
23
|
this.referenceElement = undefined;
|
|
22
24
|
this.activeMenu = undefined;
|
|
23
25
|
this.activeSource = undefined;
|
|
@@ -48,17 +50,8 @@ const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
48
50
|
this.view = undefined;
|
|
49
51
|
this.widget = undefined;
|
|
50
52
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// Watchers
|
|
54
|
-
//
|
|
55
|
-
//--------------------------------------------------------------------------
|
|
56
|
-
positionWatcher(newValue) {
|
|
57
|
-
if (newValue !== undefined && this.widget) {
|
|
58
|
-
if (typeof this.view !== "string") {
|
|
59
|
-
this.view.ui.move(this.childElem, newValue);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
53
|
+
referenceElementWatcher(newValue) {
|
|
54
|
+
referenceElementHelper(this, newValue);
|
|
62
55
|
}
|
|
63
56
|
activeMenuWatcher(newValue) {
|
|
64
57
|
if (newValue !== undefined && this.widget) {
|
|
@@ -71,7 +64,7 @@ const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
71
64
|
}
|
|
72
65
|
}
|
|
73
66
|
allPlaceholderWatcher(newValue) {
|
|
74
|
-
if (
|
|
67
|
+
if (this.widget) {
|
|
75
68
|
this.widget.allPlaceholder = newValue;
|
|
76
69
|
}
|
|
77
70
|
}
|
|
@@ -111,12 +104,12 @@ const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
111
104
|
}
|
|
112
105
|
}
|
|
113
106
|
popupTemplateWatcher(newValue) {
|
|
114
|
-
if (
|
|
107
|
+
if (this.widget) {
|
|
115
108
|
this.widget.popupTemplate = newValue;
|
|
116
109
|
}
|
|
117
110
|
}
|
|
118
111
|
portalWatcher(newValue) {
|
|
119
|
-
if (
|
|
112
|
+
if (this.widget) {
|
|
120
113
|
this.widget.portal = newValue;
|
|
121
114
|
}
|
|
122
115
|
}
|
|
@@ -131,12 +124,12 @@ const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
131
124
|
}
|
|
132
125
|
}
|
|
133
126
|
searchTermWatcher(newValue) {
|
|
134
|
-
if (
|
|
127
|
+
if (this.widget) {
|
|
135
128
|
this.widget.searchTerm = newValue;
|
|
136
129
|
}
|
|
137
130
|
}
|
|
138
131
|
sourcesWatcher(newValue) {
|
|
139
|
-
if (
|
|
132
|
+
if (this.widget) {
|
|
140
133
|
this.widget.sources = newValue;
|
|
141
134
|
}
|
|
142
135
|
}
|
|
@@ -145,8 +138,10 @@ const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
145
138
|
this.widget.suggestionsEnabled = newValue;
|
|
146
139
|
}
|
|
147
140
|
}
|
|
148
|
-
|
|
149
|
-
|
|
141
|
+
positionWatcher(newValue) {
|
|
142
|
+
if (newValue !== undefined && this.widget) {
|
|
143
|
+
this.view.ui.move(this.childElem, newValue);
|
|
144
|
+
}
|
|
150
145
|
}
|
|
151
146
|
viewWatcher(newValue) {
|
|
152
147
|
if (newValue !== undefined && this.widget) {
|
|
@@ -203,32 +198,80 @@ const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
203
198
|
//--------------------------------------------------------------------------
|
|
204
199
|
async _addWatchers() {
|
|
205
200
|
const { watch } = await importCoreReactiveUtils();
|
|
206
|
-
watch(() => this.widget.activeSource, (value) => (this.activeSource = value), {
|
|
201
|
+
addHandles(this, watch(() => this.widget.activeSource, (value) => (this.activeSource = value), {
|
|
207
202
|
initial: true
|
|
208
|
-
});
|
|
209
|
-
watch(() => this.widget.activeSourceIndex, (value) => (this.activeSourceIndex = value), {
|
|
203
|
+
}));
|
|
204
|
+
addHandles(this, watch(() => this.widget.activeSourceIndex, (value) => (this.activeSourceIndex = value), {
|
|
210
205
|
initial: true
|
|
211
|
-
});
|
|
212
|
-
watch(() => this.widget.allSources, (value) => (this.allSources = value), {
|
|
206
|
+
}));
|
|
207
|
+
addHandles(this, watch(() => this.widget.allSources, (value) => (this.allSources = value), {
|
|
213
208
|
initial: true
|
|
214
|
-
});
|
|
215
|
-
watch(() => this.widget.defaultSources, (value) => (this.defaultSources = value), {
|
|
209
|
+
}));
|
|
210
|
+
addHandles(this, watch(() => this.widget.defaultSources, (value) => (this.defaultSources = value), {
|
|
216
211
|
initial: true
|
|
217
|
-
});
|
|
218
|
-
watch(() => this.widget.resultGraphic, (value) => (this.resultGraphic = value), {
|
|
212
|
+
}));
|
|
213
|
+
addHandles(this, watch(() => this.widget.resultGraphic, (value) => (this.resultGraphic = value), {
|
|
219
214
|
initial: true
|
|
220
|
-
});
|
|
221
|
-
watch(() => this.widget.results, (value) => (this.results = value), {
|
|
215
|
+
}));
|
|
216
|
+
addHandles(this, watch(() => this.widget.results, (value) => (this.results = value), {
|
|
222
217
|
initial: true
|
|
223
|
-
});
|
|
224
|
-
watch(() => this.widget.selectedResult, (value) => (this.selectedResult = value), {
|
|
218
|
+
}));
|
|
219
|
+
addHandles(this, watch(() => this.widget.selectedResult, (value) => (this.selectedResult = value), {
|
|
225
220
|
initial: true
|
|
226
|
-
});
|
|
221
|
+
}));
|
|
222
|
+
addHandles(this, watch(() => this.widget.suggestions, (value) => (this.suggestions = value), {
|
|
223
|
+
initial: true
|
|
224
|
+
}));
|
|
227
225
|
}
|
|
228
226
|
_createParams() {
|
|
229
227
|
const params = {
|
|
230
228
|
container: this.childElem
|
|
231
229
|
};
|
|
230
|
+
if (this.allPlaceholder) {
|
|
231
|
+
params.allPlaceholder = this.allPlaceholder;
|
|
232
|
+
}
|
|
233
|
+
if (this.autoSelect !== undefined) {
|
|
234
|
+
params.autoSelect = this.autoSelect;
|
|
235
|
+
}
|
|
236
|
+
if (this.includeDefaultSources !== undefined) {
|
|
237
|
+
params.includeDefaultSources = this.includeDefaultSources;
|
|
238
|
+
}
|
|
239
|
+
if (this.locationEnabled !== undefined) {
|
|
240
|
+
params.locationEnabled = this.locationEnabled;
|
|
241
|
+
}
|
|
242
|
+
if (this.maxResults !== undefined) {
|
|
243
|
+
params.maxResults = this.maxResults;
|
|
244
|
+
}
|
|
245
|
+
if (this.maxSuggestions !== undefined) {
|
|
246
|
+
params.maxSuggestions = this.maxSuggestions;
|
|
247
|
+
}
|
|
248
|
+
if (this.minSuggestCharacters !== undefined) {
|
|
249
|
+
params.minSuggestCharacters = this.minSuggestCharacters;
|
|
250
|
+
}
|
|
251
|
+
if (this.popupEnabled !== undefined) {
|
|
252
|
+
params.popupEnabled = this.popupEnabled;
|
|
253
|
+
}
|
|
254
|
+
if (this.popupTemplate) {
|
|
255
|
+
params.popupTemplate = this.popupTemplate;
|
|
256
|
+
}
|
|
257
|
+
if (this.portal) {
|
|
258
|
+
params.portal = this.portal;
|
|
259
|
+
}
|
|
260
|
+
if (this.resultGraphicEnabled !== undefined) {
|
|
261
|
+
params.resultGraphicEnabled = this.resultGraphicEnabled;
|
|
262
|
+
}
|
|
263
|
+
if (this.searchAllEnabled !== undefined) {
|
|
264
|
+
params.searchAllEnabled = this.searchAllEnabled;
|
|
265
|
+
}
|
|
266
|
+
if (this.searchTerm) {
|
|
267
|
+
params.searchTerm = this.searchTerm;
|
|
268
|
+
}
|
|
269
|
+
if (this.sources) {
|
|
270
|
+
params.sources = this.sources;
|
|
271
|
+
}
|
|
272
|
+
if (this.suggestionsEnabled !== undefined) {
|
|
273
|
+
params.suggestionsEnabled = this.suggestionsEnabled;
|
|
274
|
+
}
|
|
232
275
|
if (this.view) {
|
|
233
276
|
params.view = this.view;
|
|
234
277
|
}
|
|
@@ -246,7 +289,7 @@ const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
246
289
|
}
|
|
247
290
|
get el() { return this; }
|
|
248
291
|
static get watchers() { return {
|
|
249
|
-
"
|
|
292
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
250
293
|
"activeMenu": ["activeMenuWatcher"],
|
|
251
294
|
"activeSourceIndex": ["activeSourceIndexWatcher"],
|
|
252
295
|
"allPlaceholder": ["allPlaceholderWatcher"],
|
|
@@ -264,10 +307,10 @@ const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
264
307
|
"searchTerm": ["searchTermWatcher"],
|
|
265
308
|
"sources": ["sourcesWatcher"],
|
|
266
309
|
"suggestionsEnabled": ["suggestionsEnabledWatcher"],
|
|
267
|
-
"
|
|
310
|
+
"position": ["positionWatcher"],
|
|
268
311
|
"view": ["viewWatcher"]
|
|
269
312
|
}; }
|
|
270
|
-
static get style() { return
|
|
313
|
+
static get style() { return searchCss; }
|
|
271
314
|
}, [0, "arcgis-search", {
|
|
272
315
|
"referenceElement": [1, "reference-element"],
|
|
273
316
|
"activeMenu": [1, "active-menu"],
|
|
@@ -292,7 +335,7 @@ const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
292
335
|
"searchTerm": [1, "search-term"],
|
|
293
336
|
"selectedResult": [1040],
|
|
294
337
|
"sources": [16],
|
|
295
|
-
"suggestions": [
|
|
338
|
+
"suggestions": [1040],
|
|
296
339
|
"suggestionsEnabled": [4, "suggestions-enabled"],
|
|
297
340
|
"position": [1],
|
|
298
341
|
"expandable": [4],
|
|
@@ -303,6 +346,27 @@ const ArcgisSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
303
346
|
"focusSearch": [64],
|
|
304
347
|
"search": [64],
|
|
305
348
|
"suggest": [64]
|
|
349
|
+
}, undefined, {
|
|
350
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
351
|
+
"activeMenu": ["activeMenuWatcher"],
|
|
352
|
+
"activeSourceIndex": ["activeSourceIndexWatcher"],
|
|
353
|
+
"allPlaceholder": ["allPlaceholderWatcher"],
|
|
354
|
+
"autoSelect": ["autoSelectWatcher"],
|
|
355
|
+
"includeDefaultSources": ["includeDefaultSourcesWatcher"],
|
|
356
|
+
"locationEnabled": ["locationEnabledWatcher"],
|
|
357
|
+
"maxResults": ["maxResultsWatcher"],
|
|
358
|
+
"maxSuggestions": ["maxSuggestionsWatcher"],
|
|
359
|
+
"minSuggestCharacters": ["minSuggestCharactersWatcher"],
|
|
360
|
+
"popupEnabled": ["popupEnabledWatcher"],
|
|
361
|
+
"popupTemplate": ["popupTemplateWatcher"],
|
|
362
|
+
"portal": ["portalWatcher"],
|
|
363
|
+
"resultGraphicEnabled": ["resultGraphicEnabledWatcher"],
|
|
364
|
+
"searchAllEnabled": ["searchAllEnabledWatcher"],
|
|
365
|
+
"searchTerm": ["searchTermWatcher"],
|
|
366
|
+
"sources": ["sourcesWatcher"],
|
|
367
|
+
"suggestionsEnabled": ["suggestionsEnabledWatcher"],
|
|
368
|
+
"position": ["positionWatcher"],
|
|
369
|
+
"view": ["viewWatcher"]
|
|
306
370
|
}]);
|
|
307
371
|
function defineCustomElement$1() {
|
|
308
372
|
if (typeof customElements === "undefined") {
|
|
@@ -328,3 +392,5 @@ const ArcgisSearch = ArcgisSearch$1;
|
|
|
328
392
|
const defineCustomElement = defineCustomElement$1;
|
|
329
393
|
|
|
330
394
|
export { ArcgisSearch, defineCustomElement };
|
|
395
|
+
|
|
396
|
+
//# sourceMappingURL=arcgis-search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"arcgis-search.js","mappings":";;;;;;AAAA,MAAM,SAAS,GAAG,EAAE;;MCiBPA,cAAY;;;;;;;;;;;;;IAiNvB,kBAAa,GAAyB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;oBAtBtB,WAAW;sBAST,KAAK;;;;EApL1B,uBAAu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AC,eAAe,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;GACnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ArcgisSearch"],"sources":["src/components/search/search.css?tag=arcgis-search","src/components/search/search.tsx"],"sourcesContent":["","import { Component, Element, Event, EventEmitter, Method, Prop, VNode, Watch, h } from \"@stencil/core\";\n\n// arcgis imports\nimport { importCoreReactiveUtils, newWidgetsSearch } from \"@arcgis/core-adapter\";\nimport type Search from \"@arcgis/core/widgets/Search\";\nimport { ArcgisReferenceElement, addHandles, checkForView, referenceElementHelper } from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport { ExpandableComponent } from \"../../utils/expandable\";\nimport { ArcGISMapView, ArcGISSceneView } from \"../types\";\n\nexport type SearchWidget = InstanceType<typeof Search>;\n\n@Component({\n tag: \"arcgis-search\",\n styleUrl: \"search.css\",\n shadow: false\n})\nexport class ArcgisSearch implements ExpandableComponent {\n @Element() el: HTMLDivElement;\n\n childElem: HTMLDivElement;\n\n expandElem: HTMLArcgisExpandElement;\n\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n\n @Prop() referenceElement: ArcgisReferenceElement | string;\n\n @Watch(\"referenceElement\")\n referenceElementWatcher(newValue: ArcgisReferenceElement | string): void {\n referenceElementHelper(this, newValue);\n }\n\n @Prop() activeMenu: SearchWidget[\"activeMenu\"];\n\n @Watch(\"activeMenu\")\n activeMenuWatcher(newValue: SearchWidget[\"activeMenu\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.activeMenu = newValue;\n }\n }\n\n @Prop({ mutable: true }) activeSource: SearchWidget[\"activeSource\"];\n\n @Prop({ mutable: true }) activeSourceIndex: SearchWidget[\"activeSourceIndex\"];\n\n @Watch(\"activeSourceIndex\")\n activeSourceIndexWatcher(newValue: SearchWidget[\"activeSourceIndex\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.activeSourceIndex = newValue;\n }\n }\n\n @Prop() allPlaceholder: SearchWidget[\"allPlaceholder\"];\n\n @Watch(\"allPlaceholder\")\n allPlaceholderWatcher(newValue: SearchWidget[\"allPlaceholder\"]): void {\n if (this.widget) {\n this.widget.allPlaceholder = newValue;\n }\n }\n\n @Prop({ mutable: true }) allSources: SearchWidget[\"allSources\"];\n\n @Prop() autoSelect: SearchWidget[\"autoSelect\"];\n\n @Watch(\"autoSelect\")\n autoSelectWatcher(newValue: SearchWidget[\"autoSelect\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.autoSelect = newValue;\n }\n }\n\n @Prop({ mutable: true }) defaultSources: SearchWidget[\"defaultSources\"];\n\n @Prop() includeDefaultSources: SearchWidget[\"includeDefaultSources\"];\n\n @Watch(\"includeDefaultSources\")\n includeDefaultSourcesWatcher(newValue: SearchWidget[\"includeDefaultSources\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.includeDefaultSources = newValue;\n }\n }\n\n @Prop() locationEnabled: SearchWidget[\"locationEnabled\"];\n\n @Watch(\"locationEnabled\")\n locationEnabledWatcher(newValue: SearchWidget[\"locationEnabled\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.locationEnabled = newValue;\n }\n }\n\n @Prop() maxResults: SearchWidget[\"maxResults\"];\n\n @Watch(\"maxResults\")\n maxResultsWatcher(newValue: SearchWidget[\"maxResults\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.maxResults = newValue;\n }\n }\n\n @Prop() maxSuggestions: SearchWidget[\"maxSuggestions\"];\n\n @Watch(\"maxSuggestions\")\n maxSuggestionsWatcher(newValue: SearchWidget[\"maxSuggestions\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.maxSuggestions = newValue;\n }\n }\n\n @Prop() minSuggestCharacters: SearchWidget[\"minSuggestCharacters\"];\n\n @Watch(\"minSuggestCharacters\")\n minSuggestCharactersWatcher(newValue: SearchWidget[\"minSuggestCharacters\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.minSuggestCharacters = newValue;\n }\n }\n\n @Prop() popupEnabled: SearchWidget[\"popupEnabled\"];\n\n @Watch(\"popupEnabled\")\n popupEnabledWatcher(newValue: SearchWidget[\"popupEnabled\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.popupEnabled = newValue;\n }\n }\n\n @Prop() popupTemplate: SearchWidget[\"popupTemplate\"];\n\n @Watch(\"popupTemplate\")\n popupTemplateWatcher(newValue: SearchWidget[\"popupTemplate\"]): void {\n if (this.widget) {\n this.widget.popupTemplate = newValue;\n }\n }\n\n @Prop() portal: SearchWidget[\"portal\"];\n\n @Watch(\"portal\")\n portalWatcher(newValue: SearchWidget[\"portal\"]): void {\n if (this.widget) {\n this.widget.portal = newValue;\n }\n }\n\n @Prop({ mutable: true }) resultGraphic: SearchWidget[\"resultGraphic\"];\n\n @Prop() resultGraphicEnabled: SearchWidget[\"resultGraphicEnabled\"];\n\n @Watch(\"resultGraphicEnabled\")\n resultGraphicEnabledWatcher(newValue: SearchWidget[\"resultGraphicEnabled\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.resultGraphicEnabled = newValue;\n }\n }\n\n @Prop({ mutable: true }) results: SearchWidget[\"results\"];\n\n @Prop() searchAllEnabled: SearchWidget[\"searchAllEnabled\"];\n\n @Watch(\"searchAllEnabled\")\n searchAllEnabledWatcher(newValue: SearchWidget[\"searchAllEnabled\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.searchAllEnabled = newValue;\n }\n }\n\n @Prop() searchTerm: SearchWidget[\"searchTerm\"];\n\n @Watch(\"searchTerm\")\n searchTermWatcher(newValue: SearchWidget[\"searchTerm\"]): void {\n if (this.widget) {\n this.widget.searchTerm = newValue;\n }\n }\n\n @Prop({ mutable: true }) selectedResult: SearchWidget[\"selectedResult\"];\n\n @Prop() sources: SearchWidget[\"sources\"];\n\n @Watch(\"sources\")\n sourcesWatcher(newValue: SearchWidget[\"sources\"]): void {\n if (this.widget) {\n this.widget.sources = newValue;\n }\n }\n\n @Prop({ mutable: true }) suggestions: SearchWidget[\"suggestions\"];\n\n @Prop() suggestionsEnabled: SearchWidget[\"suggestionsEnabled\"];\n\n @Watch(\"suggestionsEnabled\")\n suggestionsEnabledWatcher(newValue: SearchWidget[\"suggestionsEnabled\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.suggestionsEnabled = newValue;\n }\n }\n\n @Prop() position = \"top-right\";\n\n @Watch(\"position\")\n positionWatcher(newValue: string): void {\n if (newValue !== undefined && this.widget) {\n this.view.ui.move(this.childElem, newValue);\n }\n }\n\n @Prop() expandable = false;\n\n @Prop({ mutable: true }) view: ArcGISMapView | ArcGISSceneView;\n\n @Watch(\"view\")\n viewWatcher(newValue: ArcGISMapView | ArcGISSceneView): void {\n if (newValue !== undefined && this.widget) {\n this.widget.view = newValue;\n }\n }\n\n @Prop({ mutable: true }) widget: SearchWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady: EventEmitter<{ widget: __esri.Search }>;\n\n @Event({ cancelable: true }) searchBlur: EventEmitter<__esri.SearchSearchBlurEvent>;\n @Event({ cancelable: true }) searchClear: EventEmitter<__esri.SearchSearchClearEvent>;\n @Event({ cancelable: true }) searchComplete: EventEmitter<__esri.SearchSearchCompleteEvent>;\n @Event({ cancelable: true }) searchFocus: EventEmitter<__esri.SearchSearchFocusEvent>;\n @Event({ cancelable: true }) searchStart: EventEmitter<__esri.SearchSearchStartEvent>;\n @Event({ cancelable: true }) selectResult: EventEmitter<__esri.SearchSelectResultEvent>;\n @Event({ cancelable: true }) suggestComplete: EventEmitter<__esri.SearchSuggestCompleteEvent>;\n @Event({ cancelable: true }) suggestStart: EventEmitter<__esri.SearchSuggestStartEvent>;\n\n //--------------------------------------------------------------------------\n //\n // Methods\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async blurSearch(): Promise<void> {\n return this.widget?.blur();\n }\n\n @Method()\n async clearSearch(): Promise<void> {\n return this.widget?.clear();\n }\n\n @Method()\n async focusSearch(): Promise<void> {\n return this.widget?.focus();\n }\n\n @Method()\n async search(term: string | __esri.Geometry | __esri.SuggestResult | number[][]): Promise<__esri.SearchResponse> {\n return this.widget?.search(term);\n }\n\n @Method()\n async suggest(term: string): Promise<__esri.SuggestResponse> {\n return this.widget?.suggest(term);\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsSearch(params);\n\n this.widget = widget as any as SearchWidget;\n\n await this._addWatchers();\n\n this._proxyEvents();\n\n this.widgetReady.emit({ widget: this.widget as any });\n\n checkForView(this);\n }\n\n disconnectedCallback(): void {\n onDisconnectedHelper(this);\n }\n\n render(): VNode {\n if (this.expandable) {\n return (\n <arcgis-expand position={this.position} ref={(el) => (this.expandElem = el as HTMLArcgisExpandElement)}>\n <div ref={(el) => (this.childElem = el as HTMLDivElement)}></div>\n </arcgis-expand>\n );\n }\n return <div ref={(el) => (this.childElem = el as HTMLDivElement)}></div>;\n }\n\n //--------------------------------------------------------------------------\n //\n // Private Interal Methods\n //\n //--------------------------------------------------------------------------\n\n private async _addWatchers() {\n const { watch } = await importCoreReactiveUtils();\n\n addHandles(\n this,\n watch(\n () => this.widget.activeSource,\n (value) => (this.activeSource = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.activeSourceIndex,\n (value) => (this.activeSourceIndex = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.allSources,\n (value) => (this.allSources = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.defaultSources,\n (value) => (this.defaultSources = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.resultGraphic,\n (value) => (this.resultGraphic = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.results,\n (value) => (this.results = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.selectedResult,\n (value) => (this.selectedResult = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.suggestions,\n (value) => (this.suggestions = value),\n {\n initial: true\n }\n )\n );\n }\n\n private _createParams(): Partial<InstanceType<typeof Search>> {\n const params: any = {\n container: this.childElem\n };\n\n if (this.allPlaceholder) {\n params.allPlaceholder = this.allPlaceholder;\n }\n\n if (this.autoSelect !== undefined) {\n params.autoSelect = this.autoSelect;\n }\n\n if (this.includeDefaultSources !== undefined) {\n params.includeDefaultSources = this.includeDefaultSources;\n }\n\n if (this.locationEnabled !== undefined) {\n params.locationEnabled = this.locationEnabled;\n }\n\n if (this.maxResults !== undefined) {\n params.maxResults = this.maxResults;\n }\n\n if (this.maxSuggestions !== undefined) {\n params.maxSuggestions = this.maxSuggestions;\n }\n\n if (this.minSuggestCharacters !== undefined) {\n params.minSuggestCharacters = this.minSuggestCharacters;\n }\n\n if (this.popupEnabled !== undefined) {\n params.popupEnabled = this.popupEnabled;\n }\n\n if (this.popupTemplate) {\n params.popupTemplate = this.popupTemplate;\n }\n\n if (this.portal) {\n params.portal = this.portal;\n }\n\n if (this.resultGraphicEnabled !== undefined) {\n params.resultGraphicEnabled = this.resultGraphicEnabled;\n }\n\n if (this.searchAllEnabled !== undefined) {\n params.searchAllEnabled = this.searchAllEnabled;\n }\n\n if (this.searchTerm) {\n params.searchTerm = this.searchTerm;\n }\n\n if (this.sources) {\n params.sources = this.sources;\n }\n\n if (this.suggestionsEnabled !== undefined) {\n params.suggestionsEnabled = this.suggestionsEnabled;\n }\n\n if (this.view) {\n params.view = this.view;\n }\n\n return params;\n }\n\n private _proxyEvents() {\n this.widget.on(\"search-blur\", (e) => this.searchBlur.emit(e));\n this.widget.on(\"search-clear\", (e) => this.searchClear.emit(e));\n this.widget.on(\"search-complete\", (e) => this.searchComplete.emit(e));\n this.widget.on(\"search-focus\", (e) => this.searchFocus.emit(e));\n this.widget.on(\"search-start\", (e) => this.searchStart.emit(e));\n this.widget.on(\"select-result\", (e) => this.selectResult.emit(e));\n this.widget.on(\"suggest-complete\", (e) => this.suggestComplete.emit(e));\n this.widget.on(\"suggest-start\", (e) => this.suggestStart.emit(e));\n }\n}\n"],"version":3}
|
|
@@ -1,40 +1,23 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView
|
|
4
|
-
import {
|
|
2
|
+
import { T as newWidgetsShadowCast } from './index2.js';
|
|
3
|
+
import { r as referenceElementHelper, c as checkForView } from './component-utils.js';
|
|
4
|
+
import { o as onDisconnectedHelper } from './disconnected.js';
|
|
5
|
+
import { d as defineCustomElement$2 } from './expand.js';
|
|
5
6
|
|
|
6
|
-
const
|
|
7
|
+
const shadowCastCss = "arcgis-shadow-cast{}";
|
|
7
8
|
|
|
8
|
-
const ArcgisShadowCast$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
const ArcgisShadowCast$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisShadowCast extends HTMLElement {
|
|
9
10
|
constructor() {
|
|
10
11
|
super();
|
|
11
12
|
this.__registerHost();
|
|
12
13
|
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
14
|
+
this._watchHandles = [];
|
|
13
15
|
this.referenceElement = undefined;
|
|
14
16
|
this.view = undefined;
|
|
17
|
+
this.visibleElements = undefined;
|
|
15
18
|
this.position = "bottom-left";
|
|
16
19
|
this.expandable = false;
|
|
17
20
|
this.widget = undefined;
|
|
18
|
-
this.headingLevel = undefined;
|
|
19
|
-
}
|
|
20
|
-
//--------------------------------------------------------------------------
|
|
21
|
-
//
|
|
22
|
-
// Watchers
|
|
23
|
-
//
|
|
24
|
-
//--------------------------------------------------------------------------
|
|
25
|
-
positionWatcher(newValue) {
|
|
26
|
-
if (newValue !== undefined && this.widget) {
|
|
27
|
-
if (typeof this.view !== "string") {
|
|
28
|
-
this.view.ui.move(this.childElem, newValue);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
headingLevelWatcher(newValue) {
|
|
33
|
-
if (newValue !== undefined && this.widget) {
|
|
34
|
-
if (this.widget.headingLevel !== newValue) {
|
|
35
|
-
this.widget.headingLevel = newValue;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
21
|
}
|
|
39
22
|
referenceElementWatcher(newValue) {
|
|
40
23
|
referenceElementHelper(this, newValue);
|
|
@@ -44,6 +27,16 @@ const ArcgisShadowCast$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
44
27
|
this.widget.view = newValue;
|
|
45
28
|
}
|
|
46
29
|
}
|
|
30
|
+
visibleElementsWatcher(value) {
|
|
31
|
+
if (this.widget) {
|
|
32
|
+
this.widget.visibleElements = value;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
positionWatcher(newValue) {
|
|
36
|
+
if (newValue !== undefined && this.widget) {
|
|
37
|
+
this.view.ui.move(this.childElem, newValue);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
47
40
|
//--------------------------------------------------------------------------
|
|
48
41
|
//
|
|
49
42
|
// Lifecycle
|
|
@@ -74,6 +67,9 @@ const ArcgisShadowCast$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
74
67
|
const params = {
|
|
75
68
|
container: this.childElem
|
|
76
69
|
};
|
|
70
|
+
if (this.visibleElements) {
|
|
71
|
+
params.visibleElements = this.visibleElements;
|
|
72
|
+
}
|
|
77
73
|
if (this.view) {
|
|
78
74
|
params.view = this.view;
|
|
79
75
|
}
|
|
@@ -81,19 +77,24 @@ const ArcgisShadowCast$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
81
77
|
}
|
|
82
78
|
get el() { return this; }
|
|
83
79
|
static get watchers() { return {
|
|
84
|
-
"position": ["positionWatcher"],
|
|
85
|
-
"headingLevel": ["headingLevelWatcher"],
|
|
86
80
|
"referenceElement": ["referenceElementWatcher"],
|
|
87
|
-
"view": ["viewWatcher"]
|
|
81
|
+
"view": ["viewWatcher"],
|
|
82
|
+
"visibleElements": ["visibleElementsWatcher"],
|
|
83
|
+
"position": ["positionWatcher"]
|
|
88
84
|
}; }
|
|
89
|
-
static get style() { return
|
|
85
|
+
static get style() { return shadowCastCss; }
|
|
90
86
|
}, [0, "arcgis-shadow-cast", {
|
|
91
87
|
"referenceElement": [1, "reference-element"],
|
|
92
88
|
"view": [1040],
|
|
89
|
+
"visibleElements": [16],
|
|
93
90
|
"position": [1],
|
|
94
91
|
"expandable": [4],
|
|
95
|
-
"widget": [1040]
|
|
96
|
-
|
|
92
|
+
"widget": [1040]
|
|
93
|
+
}, undefined, {
|
|
94
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
95
|
+
"view": ["viewWatcher"],
|
|
96
|
+
"visibleElements": ["visibleElementsWatcher"],
|
|
97
|
+
"position": ["positionWatcher"]
|
|
97
98
|
}]);
|
|
98
99
|
function defineCustomElement$1() {
|
|
99
100
|
if (typeof customElements === "undefined") {
|
|
@@ -119,3 +120,5 @@ const ArcgisShadowCast = ArcgisShadowCast$1;
|
|
|
119
120
|
const defineCustomElement = defineCustomElement$1;
|
|
120
121
|
|
|
121
122
|
export { ArcgisShadowCast, defineCustomElement };
|
|
123
|
+
|
|
124
|
+
//# sourceMappingURL=arcgis-shadow-cast.js.map
|