@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,34 +1,28 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView } from './component-utils-
|
|
4
|
-
import { o as onDisconnectedHelper } from './disconnected-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-05f887cd.js';
|
|
2
|
+
import { m as newWidgetsCompass } from './index-fd2cea51.js';
|
|
3
|
+
import { r as referenceElementHelper, c as checkForView } from './component-utils-42a79acb.js';
|
|
4
|
+
import { o as onDisconnectedHelper } from './disconnected-bf72f8e5.js';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const compassCss = "";
|
|
7
7
|
|
|
8
8
|
const ArcgisCompass = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
registerInstance(this, hostRef);
|
|
11
11
|
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
12
|
+
this._watchHandles = [];
|
|
12
13
|
this.referenceElement = undefined;
|
|
13
14
|
this.position = "bottom-left";
|
|
14
15
|
this.widget = undefined;
|
|
15
16
|
this.view = undefined;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
//
|
|
21
|
-
//--------------------------------------------------------------------------
|
|
18
|
+
referenceElementWatcher(newValue) {
|
|
19
|
+
referenceElementHelper(this, newValue);
|
|
20
|
+
}
|
|
22
21
|
positionWatcher(newValue) {
|
|
23
22
|
if (newValue !== undefined && this.widget) {
|
|
24
|
-
|
|
25
|
-
this.view.ui.move(this.childElem, newValue);
|
|
26
|
-
}
|
|
23
|
+
this.view.ui.move(this.childElem, newValue);
|
|
27
24
|
}
|
|
28
25
|
}
|
|
29
|
-
referenceElementWatcher(newValue) {
|
|
30
|
-
referenceElementHelper(this, newValue);
|
|
31
|
-
}
|
|
32
26
|
viewWatcher(newValue) {
|
|
33
27
|
if (newValue !== undefined && this.widget) {
|
|
34
28
|
this.widget.view = newValue;
|
|
@@ -76,11 +70,13 @@ const ArcgisCompass = class {
|
|
|
76
70
|
}
|
|
77
71
|
get el() { return getElement(this); }
|
|
78
72
|
static get watchers() { return {
|
|
79
|
-
"position": ["positionWatcher"],
|
|
80
73
|
"referenceElement": ["referenceElementWatcher"],
|
|
74
|
+
"position": ["positionWatcher"],
|
|
81
75
|
"view": ["viewWatcher"]
|
|
82
76
|
}; }
|
|
83
77
|
};
|
|
84
|
-
ArcgisCompass.style =
|
|
78
|
+
ArcgisCompass.style = compassCss;
|
|
85
79
|
|
|
86
80
|
export { ArcgisCompass as arcgis_compass };
|
|
81
|
+
|
|
82
|
+
//# sourceMappingURL=arcgis-compass.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"arcgis-compass.entry.js","mappings":";;;;;AAAA,MAAM,UAAU,GAAG,EAAE;;MCqBR,aAAa;;;;IA4CxB,kBAAa,GAAyB,EAAE,CAAC;;oBApBtB,aAAa;;;;EAJhC,uBAAuB,CAAC,QAAyC;IAC/D,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;GACxC;EAKD,eAAe,CAAC,QAAgB;IAC9B,IAAI,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;MACzC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;KAC7C;GACF;EAOD,WAAW,CAAC,QAAyC;IACnD,IAAI,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;MACzC,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC;KAC7B;GACF;;;;;;EAmBD,MAAM,KAAK;IACT,OAAO,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC;GAC7B;;;;;;EAQD,MAAM,gBAAgB;IACpB,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;IAEpC,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAE/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IAErB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAE/C,YAAY,CAAC,IAAI,CAAC,CAAC;GACpB;EAED,oBAAoB;IAClB,oBAAoB,CAAC,IAAI,CAAC,CAAC;GAC5B;EAED,MAAM;IACJ,OAAO,WAAK,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAoB,CAAC,GAAQ,CAAC;GAC1E;;;;;;EAOO,aAAa;IACnB,MAAM,MAAM,GAA2B;MACrC,SAAS,EAAE,IAAI,CAAC,SAAS;KAC1B,CAAC;IAEF,IAAI,IAAI,CAAC,IAAI,EAAE;MACb,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;KACzB;IAED,OAAO,MAAM,CAAC;GACf;;;;;;;;;;;;","names":[],"sources":["src/components/compass/compass.css?tag=arcgis-compass","src/components/compass/compass.tsx"],"sourcesContent":["","import { Component, Element, Event, EventEmitter, h, Method, Prop, VNode, Watch } from \"@stencil/core\";\n\n// arcgis imports\nimport { newWidgetsCompass } from \"@arcgis/core-adapter\";\nimport type Compass from \"@arcgis/core/widgets/Compass\";\nimport {\n ArcgisReferenceElement,\n checkForView,\n referenceElementHelper,\n WidgetElement\n} from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport { ArcGISMapView, ArcGISSceneView } from \"../types\";\n\nexport type CompassWidget = InstanceType<typeof Compass>;\n\n@Component({\n tag: \"arcgis-compass\",\n styleUrl: \"compass.css\",\n shadow: false\n})\nexport class ArcgisCompass implements WidgetElement {\n //--------------------------------------------------------------------------\n //\n // Element\n //\n //--------------------------------------------------------------------------\n\n @Element() el: HTMLDivElement;\n\n childElem: HTMLDivElement;\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() position = \"bottom-left\";\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({ mutable: true }) widget: CompassWidget;\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 _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady: EventEmitter<{ widget: __esri.Compass }>;\n\n //--------------------------------------------------------------------------\n //\n // Methods\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async reset(): Promise<void> {\n return this.widget?.reset();\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsCompass(params);\n\n this.widget = widget;\n\n this.widgetReady.emit({ widget: this.widget });\n\n checkForView(this);\n }\n\n disconnectedCallback(): void {\n onDisconnectedHelper(this);\n }\n\n render(): VNode {\n return <div ref={(el) => (this.childElem = el as HTMLDivElement)}></div>;\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n\n private _createParams(): Partial<CompassWidget> {\n const params: Partial<CompassWidget> = {\n container: this.childElem\n };\n\n if (this.view) {\n params.view = this.view;\n }\n\n return params;\n }\n}\n"],"version":3}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView } from './component-utils-
|
|
4
|
-
import { o as onDisconnectedHelper } from './disconnected-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-05f887cd.js';
|
|
2
|
+
import { o as newWidgetsCoordinateConversion, i as importCoreReactiveUtils } from './index-fd2cea51.js';
|
|
3
|
+
import { r as referenceElementHelper, c as checkForView, a as addHandles } from './component-utils-42a79acb.js';
|
|
4
|
+
import { o as onDisconnectedHelper } from './disconnected-bf72f8e5.js';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const coordinateConversionCss = "";
|
|
7
7
|
|
|
8
8
|
const ArcgisCoordinateConversion = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
registerInstance(this, hostRef);
|
|
11
11
|
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
12
|
+
this._watchHandles = [];
|
|
12
13
|
this.referenceElement = undefined;
|
|
13
14
|
this.conversions = undefined;
|
|
14
15
|
this.currentLocation = undefined;
|
|
@@ -19,50 +20,42 @@ const ArcgisCoordinateConversion = class {
|
|
|
19
20
|
this.orientation = undefined;
|
|
20
21
|
this.storageEnabled = undefined;
|
|
21
22
|
this.storageType = undefined;
|
|
23
|
+
this.visibleElements = undefined;
|
|
22
24
|
this.position = "bottom-left";
|
|
23
25
|
this.expandable = false;
|
|
24
26
|
this.view = undefined;
|
|
25
27
|
this.widget = undefined;
|
|
26
28
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
// Watchers
|
|
30
|
-
//
|
|
31
|
-
//--------------------------------------------------------------------------
|
|
32
|
-
positionWatcher(newValue) {
|
|
33
|
-
if (newValue !== undefined && this.widget) {
|
|
34
|
-
if (typeof this.view !== "string") {
|
|
35
|
-
this.view.ui.move(this.childElem, newValue);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
29
|
+
referenceElementWatcher(newValue) {
|
|
30
|
+
referenceElementHelper(this, newValue);
|
|
38
31
|
}
|
|
39
32
|
conversionsWatcher(newValue) {
|
|
40
|
-
if (
|
|
33
|
+
if (this.widget) {
|
|
41
34
|
this.widget.conversions = newValue;
|
|
42
35
|
}
|
|
43
36
|
}
|
|
44
37
|
formatsWatcher(newValue) {
|
|
45
|
-
if (
|
|
38
|
+
if (this.widget) {
|
|
46
39
|
this.widget.formats = newValue;
|
|
47
40
|
}
|
|
48
41
|
}
|
|
49
42
|
locationSymbolWatcher(newValue) {
|
|
50
|
-
if (
|
|
43
|
+
if (this.widget) {
|
|
51
44
|
this.widget.locationSymbol = newValue;
|
|
52
45
|
}
|
|
53
46
|
}
|
|
54
47
|
modeWatcher(newValue) {
|
|
55
|
-
if (
|
|
48
|
+
if (this.widget) {
|
|
56
49
|
this.widget.mode = newValue;
|
|
57
50
|
}
|
|
58
51
|
}
|
|
59
52
|
multipleConversionsWatcher(newValue) {
|
|
60
|
-
if (
|
|
53
|
+
if (this.widget) {
|
|
61
54
|
this.widget.multipleConversions = newValue;
|
|
62
55
|
}
|
|
63
56
|
}
|
|
64
57
|
orientationWatcher(newValue) {
|
|
65
|
-
if (
|
|
58
|
+
if (this.widget) {
|
|
66
59
|
this.widget.orientation = newValue;
|
|
67
60
|
}
|
|
68
61
|
}
|
|
@@ -72,12 +65,19 @@ const ArcgisCoordinateConversion = class {
|
|
|
72
65
|
}
|
|
73
66
|
}
|
|
74
67
|
storageTypeWatcher(newValue) {
|
|
75
|
-
if (
|
|
68
|
+
if (this.widget) {
|
|
76
69
|
this.widget.storageType = newValue;
|
|
77
70
|
}
|
|
78
71
|
}
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
visibleElementsWatcher(newValue) {
|
|
73
|
+
if (this.widget) {
|
|
74
|
+
this.widget.visibleElements = newValue;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
positionWatcher(newValue) {
|
|
78
|
+
if (newValue !== undefined && this.widget) {
|
|
79
|
+
this.view.ui.move(this.childElem, newValue);
|
|
80
|
+
}
|
|
81
81
|
}
|
|
82
82
|
viewWatcher(newValue) {
|
|
83
83
|
if (newValue !== undefined && this.widget) {
|
|
@@ -121,14 +121,41 @@ const ArcgisCoordinateConversion = class {
|
|
|
121
121
|
//--------------------------------------------------------------------------
|
|
122
122
|
async _addWatchers() {
|
|
123
123
|
const { watch } = await importCoreReactiveUtils();
|
|
124
|
-
watch(() => this.widget.currentLocation, (value) => (this.currentLocation = value), {
|
|
124
|
+
addHandles(this, watch(() => this.widget.currentLocation, (value) => (this.currentLocation = value), {
|
|
125
125
|
initial: true
|
|
126
|
-
});
|
|
126
|
+
}));
|
|
127
127
|
}
|
|
128
128
|
_createParams() {
|
|
129
129
|
const params = {
|
|
130
130
|
container: this.childElem
|
|
131
131
|
};
|
|
132
|
+
if (this.conversions) {
|
|
133
|
+
params.conversions = this.conversions;
|
|
134
|
+
}
|
|
135
|
+
if (this.formats) {
|
|
136
|
+
params.formats = this.formats;
|
|
137
|
+
}
|
|
138
|
+
if (this.locationSymbol) {
|
|
139
|
+
params.locationSymbol = this.locationSymbol;
|
|
140
|
+
}
|
|
141
|
+
if (this.mode) {
|
|
142
|
+
params.mode = this.mode;
|
|
143
|
+
}
|
|
144
|
+
if (this.multipleConversions) {
|
|
145
|
+
params.multipleConversions = this.multipleConversions;
|
|
146
|
+
}
|
|
147
|
+
if (this.orientation) {
|
|
148
|
+
params.orientation = this.orientation;
|
|
149
|
+
}
|
|
150
|
+
if (this.storageEnabled !== undefined) {
|
|
151
|
+
params.storageEnabled = this.storageEnabled;
|
|
152
|
+
}
|
|
153
|
+
if (this.storageType) {
|
|
154
|
+
params.storageType = this.storageType;
|
|
155
|
+
}
|
|
156
|
+
if (this.visibleElements) {
|
|
157
|
+
params.visibleElements = this.visibleElements;
|
|
158
|
+
}
|
|
132
159
|
if (this.view) {
|
|
133
160
|
params.view = this.view;
|
|
134
161
|
}
|
|
@@ -136,7 +163,7 @@ const ArcgisCoordinateConversion = class {
|
|
|
136
163
|
}
|
|
137
164
|
get el() { return getElement(this); }
|
|
138
165
|
static get watchers() { return {
|
|
139
|
-
"
|
|
166
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
140
167
|
"conversions": ["conversionsWatcher"],
|
|
141
168
|
"formats": ["formatsWatcher"],
|
|
142
169
|
"locationSymbol": ["locationSymbolWatcher"],
|
|
@@ -145,10 +172,13 @@ const ArcgisCoordinateConversion = class {
|
|
|
145
172
|
"orientation": ["orientationWatcher"],
|
|
146
173
|
"storageEnabled": ["storageEnabledWatcher"],
|
|
147
174
|
"storageType": ["storageTypeWatcher"],
|
|
148
|
-
"
|
|
175
|
+
"visibleElements": ["visibleElementsWatcher"],
|
|
176
|
+
"position": ["positionWatcher"],
|
|
149
177
|
"view": ["viewWatcher"]
|
|
150
178
|
}; }
|
|
151
179
|
};
|
|
152
|
-
ArcgisCoordinateConversion.style =
|
|
180
|
+
ArcgisCoordinateConversion.style = coordinateConversionCss;
|
|
153
181
|
|
|
154
182
|
export { ArcgisCoordinateConversion as arcgis_coordinate_conversion };
|
|
183
|
+
|
|
184
|
+
//# sourceMappingURL=arcgis-coordinate-conversion.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"arcgis-coordinate-conversion.entry.js","mappings":";;;;;AAAA,MAAM,uBAAuB,GAAG,EAAE;;MCiBrB,0BAA0B;;;;IAmIrC,kBAAa,GAAyB,EAAE,CAAC;;;;;;;;;;;;oBAtBtB,aAAa;sBASX,KAAK;;;;EAhG1B,uBAAuB,CAAC,QAAyC;IAC/D,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;GACxC;EAKD,kBAAkB,CAAC,QAAmD;IACpE,IAAI,IAAI,CAAC,MAAM,EAAE;MACf,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;KACpC;GACF;EAOD,cAAc,CAAC,QAA+C;IAC5D,IAAI,IAAI,CAAC,MAAM,EAAE;MACf,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC;KAChC;GACF;EAKD,qBAAqB,CAAC,QAAsD;IAC1E,IAAI,IAAI,CAAC,MAAM,EAAE;MACf,IAAI,CAAC,MAAM,CAAC,cAAc,GAAG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CAAC,SAAS;KAC1B,CAAC;IAEF,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;KACvC;IAED,IAAI,IAAI,CAAC,OAAO,EAAE;MAChB,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;KAC/B;IAED,IAAI,IAAI,CAAC,cAAc,EAAE;MACvB,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;KAC7C;IAED,IAAI,IAAI,CAAC,IAAI,EAAE;MACb,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;KACzB;IAED,IAAI,IAAI,CAAC,mBAAmB,EAAE;MAC5B,MAAM,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC;KACvD;IAED,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;KACvC;IAED,IAAI,IAAI,CAAC,cAAc,KAAK,SAAS,EAAE;MACrC,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;KAC7C;IAED,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;KACvC;IAED,IAAI,IAAI,CAAC,eAAe,EAAE;MACxB,MAAM,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC;KAC/C;IAED,IAAI,IAAI,CAAC,IAAI,EAAE;MACb,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;KACzB;IAED,OAAO,MAAM,CAAC;GACf;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/coordinate-conversion/coordinate-conversion.css?tag=arcgis-coordinate-conversion","src/components/coordinate-conversion/coordinate-conversion.tsx"],"sourcesContent":["","import { Component, Element, Event, EventEmitter, Method, Prop, VNode, Watch, h } from \"@stencil/core\";\n\n// arcgis imports\nimport { importCoreReactiveUtils, newWidgetsCoordinateConversion } from \"@arcgis/core-adapter\";\nimport type CoordinateConversion from \"@arcgis/core/widgets/CoordinateConversion\";\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 CoordinateConversionWidget = InstanceType<typeof CoordinateConversion>;\n\n@Component({\n tag: \"arcgis-coordinate-conversion\",\n styleUrl: \"coordinate-conversion.css\",\n shadow: false\n})\nexport class ArcgisCoordinateConversion implements ExpandableComponent {\n //--------------------------------------------------------------------------\n //\n // Element\n //\n //--------------------------------------------------------------------------\n\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() conversions: CoordinateConversionWidget[\"conversions\"];\n\n @Watch(\"conversions\")\n conversionsWatcher(newValue: CoordinateConversionWidget[\"conversions\"]): void {\n if (this.widget) {\n this.widget.conversions = newValue;\n }\n }\n\n @Prop({ mutable: true }) currentLocation: CoordinateConversionWidget[\"currentLocation\"];\n\n @Prop() formats: CoordinateConversionWidget[\"formats\"];\n\n @Watch(\"formats\")\n formatsWatcher(newValue: CoordinateConversionWidget[\"formats\"]): void {\n if (this.widget) {\n this.widget.formats = newValue;\n }\n }\n\n @Prop() locationSymbol: CoordinateConversionWidget[\"locationSymbol\"];\n\n @Watch(\"locationSymbol\")\n locationSymbolWatcher(newValue: CoordinateConversionWidget[\"locationSymbol\"]): void {\n if (this.widget) {\n this.widget.locationSymbol = newValue;\n }\n }\n\n @Prop() mode: CoordinateConversionWidget[\"mode\"];\n\n @Watch(\"mode\")\n modeWatcher(newValue: CoordinateConversionWidget[\"mode\"]): void {\n if (this.widget) {\n this.widget.mode = newValue;\n }\n }\n\n @Prop() multipleConversions: CoordinateConversionWidget[\"multipleConversions\"];\n\n @Watch(\"multipleConversions\")\n multipleConversionsWatcher(newValue: CoordinateConversionWidget[\"multipleConversions\"]): void {\n if (this.widget) {\n this.widget.multipleConversions = newValue;\n }\n }\n\n @Prop() orientation: CoordinateConversionWidget[\"orientation\"];\n\n @Watch(\"orientation\")\n orientationWatcher(newValue: CoordinateConversionWidget[\"orientation\"]): void {\n if (this.widget) {\n this.widget.orientation = newValue;\n }\n }\n\n @Prop() storageEnabled: CoordinateConversionWidget[\"storageEnabled\"];\n\n @Watch(\"storageEnabled\")\n storageEnabledWatcher(newValue: CoordinateConversionWidget[\"storageEnabled\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.storageEnabled = newValue;\n }\n }\n\n @Prop() storageType: CoordinateConversionWidget[\"storageType\"];\n\n @Watch(\"storageType\")\n storageTypeWatcher(newValue: CoordinateConversionWidget[\"storageType\"]): void {\n if (this.widget) {\n this.widget.storageType = newValue;\n }\n }\n\n @Prop() visibleElements: CoordinateConversionWidget[\"visibleElements\"];\n\n @Watch(\"visibleElements\")\n visibleElementsWatcher(newValue: CoordinateConversionWidget[\"visibleElements\"]): void {\n if (this.widget) {\n this.widget.visibleElements = newValue;\n }\n }\n\n @Prop() position = \"bottom-left\";\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: CoordinateConversionWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady: EventEmitter<{ widget: __esri.CoordinateConversion }>;\n\n //--------------------------------------------------------------------------\n //\n // Methods\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async reverseConvert(coordinate: string, format: __esri.Format): Promise<__esri.Point> {\n return this.widget?.reverseConvert(coordinate, format);\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsCoordinateConversion(params);\n\n this.widget = widget;\n\n await this._addWatchers();\n\n this.widgetReady.emit({ widget: this.widget });\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 // Private Methods\n //\n //--------------------------------------------------------------------------\n\n private async _addWatchers() {\n const { watch } = await importCoreReactiveUtils();\n\n addHandles(\n this,\n watch(\n () => this.widget.currentLocation,\n (value) => (this.currentLocation = value),\n {\n initial: true\n }\n )\n );\n }\n\n private _createParams(): Partial<CoordinateConversionWidget> {\n const params: Partial<CoordinateConversionWidget> = {\n container: this.childElem\n };\n\n if (this.conversions) {\n params.conversions = this.conversions;\n }\n\n if (this.formats) {\n params.formats = this.formats;\n }\n\n if (this.locationSymbol) {\n params.locationSymbol = this.locationSymbol;\n }\n\n if (this.mode) {\n params.mode = this.mode;\n }\n\n if (this.multipleConversions) {\n params.multipleConversions = this.multipleConversions;\n }\n\n if (this.orientation) {\n params.orientation = this.orientation;\n }\n\n if (this.storageEnabled !== undefined) {\n params.storageEnabled = this.storageEnabled;\n }\n\n if (this.storageType) {\n params.storageType = this.storageType;\n }\n\n if (this.visibleElements) {\n params.visibleElements = this.visibleElements;\n }\n\n if (this.view) {\n params.view = this.view;\n }\n\n return params;\n }\n}\n"],"version":3}
|
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView } from './component-utils-
|
|
4
|
-
import { o as onDisconnectedHelper } from './disconnected-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-05f887cd.js';
|
|
2
|
+
import { p as newWidgetsDaylight } from './index-fd2cea51.js';
|
|
3
|
+
import { r as referenceElementHelper, c as checkForView } from './component-utils-42a79acb.js';
|
|
4
|
+
import { o as onDisconnectedHelper } from './disconnected-bf72f8e5.js';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const daylightCss = "";
|
|
7
7
|
|
|
8
8
|
const ArcgisDaylight = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
registerInstance(this, hostRef);
|
|
11
11
|
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
12
|
+
this._watchHandles = [];
|
|
12
13
|
this.referenceElement = undefined;
|
|
13
14
|
this.dateOrSeason = undefined;
|
|
14
15
|
this.playSpeedMultiplier = undefined;
|
|
15
16
|
this.timeSliderSteps = undefined;
|
|
17
|
+
this.visibleElements = undefined;
|
|
16
18
|
this.position = "bottom-left";
|
|
17
19
|
this.expandable = false;
|
|
18
20
|
this.view = undefined;
|
|
19
21
|
this.widget = undefined;
|
|
20
22
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// Watchers
|
|
24
|
-
//
|
|
25
|
-
//--------------------------------------------------------------------------
|
|
26
|
-
positionWatcher(newValue) {
|
|
27
|
-
if (newValue !== undefined && this.widget) {
|
|
28
|
-
if (typeof this.view !== "string") {
|
|
29
|
-
this.view.ui.move(this.childElem, newValue);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
23
|
+
referenceElementWatcher(newValue) {
|
|
24
|
+
referenceElementHelper(this, newValue);
|
|
32
25
|
}
|
|
33
26
|
dateOrSeasonWatcher(newValue) {
|
|
34
27
|
if (newValue !== undefined && this.widget) {
|
|
@@ -45,8 +38,15 @@ const ArcgisDaylight = class {
|
|
|
45
38
|
this.widget.timeSliderSteps = newValue;
|
|
46
39
|
}
|
|
47
40
|
}
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
visibleElementsWatcher(newValue) {
|
|
42
|
+
if (this.widget) {
|
|
43
|
+
this.widget.visibleElements = newValue;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
positionWatcher(newValue) {
|
|
47
|
+
if (newValue !== undefined && this.widget) {
|
|
48
|
+
this.view.ui.move(this.childElem, newValue);
|
|
49
|
+
}
|
|
50
50
|
}
|
|
51
51
|
viewWatcher(newValue) {
|
|
52
52
|
if (newValue !== undefined && this.widget) {
|
|
@@ -99,14 +99,17 @@ const ArcgisDaylight = class {
|
|
|
99
99
|
}
|
|
100
100
|
get el() { return getElement(this); }
|
|
101
101
|
static get watchers() { return {
|
|
102
|
-
"
|
|
102
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
103
103
|
"dateOrSeason": ["dateOrSeasonWatcher"],
|
|
104
104
|
"playSpeedMultiplier": ["playSpeedMultiplierWatcher"],
|
|
105
105
|
"timeSliderSteps": ["timeSliderStepsWatcher"],
|
|
106
|
-
"
|
|
106
|
+
"visibleElements": ["visibleElementsWatcher"],
|
|
107
|
+
"position": ["positionWatcher"],
|
|
107
108
|
"view": ["viewWatcher"]
|
|
108
109
|
}; }
|
|
109
110
|
};
|
|
110
|
-
ArcgisDaylight.style =
|
|
111
|
+
ArcgisDaylight.style = daylightCss;
|
|
111
112
|
|
|
112
113
|
export { ArcgisDaylight as arcgis_daylight };
|
|
114
|
+
|
|
115
|
+
//# sourceMappingURL=arcgis-daylight.entry.js.map
|
|
@@ -0,0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;IAED,OAAO,MAAM,CAAC;GACf;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/daylight/daylight.css?tag=arcgis-daylight","src/components/daylight/daylight.tsx"],"sourcesContent":["","import { Component, Element, Event, EventEmitter, Prop, VNode, Watch, h } from \"@stencil/core\";\n\n// arcgis imports\nimport { newWidgetsDaylight } from \"@arcgis/core-adapter\";\nimport type Daylight from \"@arcgis/core/widgets/Daylight\";\nimport { ArcgisReferenceElement, checkForView, referenceElementHelper } from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport { ExpandableComponent } from \"../../utils/expandable\";\nimport { ArcGISSceneView } from \"../types\";\n\nexport type DaylightWidget = InstanceType<typeof Daylight>;\n\n@Component({\n tag: \"arcgis-daylight\",\n styleUrl: \"daylight.css\",\n shadow: false\n})\nexport class ArcgisDaylight implements ExpandableComponent {\n //--------------------------------------------------------------------------\n //\n // Element\n //\n //--------------------------------------------------------------------------\n\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() dateOrSeason: DaylightWidget[\"dateOrSeason\"];\n\n @Watch(\"dateOrSeason\")\n dateOrSeasonWatcher(newValue: DaylightWidget[\"dateOrSeason\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.dateOrSeason = newValue;\n }\n }\n\n @Prop() playSpeedMultiplier: number;\n\n @Watch(\"playSpeedMultiplier\")\n playSpeedMultiplierWatcher(newValue: DaylightWidget[\"playSpeedMultiplier\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.playSpeedMultiplier = newValue;\n }\n }\n\n @Prop() timeSliderSteps: DaylightWidget[\"timeSliderSteps\"];\n\n @Watch(\"timeSliderSteps\")\n timeSliderStepsWatcher(newValue: DaylightWidget[\"timeSliderSteps\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.timeSliderSteps = newValue;\n }\n }\n\n @Prop() visibleElements: DaylightWidget[\"visibleElements\"];\n\n @Watch(\"visibleElements\")\n visibleElementsWatcher(newValue: DaylightWidget[\"visibleElements\"]): void {\n if (this.widget) {\n this.widget.visibleElements = newValue;\n }\n }\n\n @Prop() position = \"bottom-left\";\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: ArcGISSceneView;\n\n @Watch(\"view\")\n viewWatcher(newValue: ArcGISSceneView): void {\n if (newValue !== undefined && this.widget) {\n this.widget.view = newValue;\n }\n }\n\n @Prop({ mutable: true }) widget: DaylightWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady: EventEmitter<{ widget: __esri.Daylight }>;\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsDaylight(params);\n\n this.widget = widget;\n\n this.widgetReady.emit({ widget: this.widget });\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 // Private Methods\n //\n //--------------------------------------------------------------------------\n\n private _createParams(): Partial<DaylightWidget> {\n const params: Partial<DaylightWidget> = {\n container: this.childElem\n };\n\n if (this.view) {\n params.view = this.view;\n }\n\n if (this.dateOrSeason) {\n params.dateOrSeason = this.dateOrSeason;\n }\n\n if (this.playSpeedMultiplier) {\n params.playSpeedMultiplier = this.playSpeedMultiplier;\n }\n\n if (this.timeSliderSteps) {\n params.timeSliderSteps = this.timeSliderSteps;\n }\n\n return params;\n }\n}\n"],"version":3}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView } from './component-utils-
|
|
4
|
-
import { o as onDisconnectedHelper } from './disconnected-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-05f887cd.js';
|
|
2
|
+
import { q as newLayersRouteLayer, r as newWidgetsDirections, i as importCoreReactiveUtils } from './index-fd2cea51.js';
|
|
3
|
+
import { r as referenceElementHelper, i as isNullOrEmptyString, c as checkForView, a as addHandles } from './component-utils-42a79acb.js';
|
|
4
|
+
import { o as onDisconnectedHelper } from './disconnected-bf72f8e5.js';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const directionsCss = "";
|
|
7
7
|
|
|
8
8
|
const ArcgisDirections = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
registerInstance(this, hostRef);
|
|
11
11
|
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
12
|
+
this._watchHandles = [];
|
|
12
13
|
this.referenceElement = undefined;
|
|
13
14
|
this.apiKey = undefined;
|
|
14
15
|
this.routeLayerItemId = undefined;
|
|
@@ -17,22 +18,15 @@ const ArcgisDirections = class {
|
|
|
17
18
|
this.maxStops = undefined;
|
|
18
19
|
this.searchProperties = undefined;
|
|
19
20
|
this.unit = undefined;
|
|
21
|
+
this.useDefaultRouteLayer = true;
|
|
22
|
+
this.visibleElements = undefined;
|
|
20
23
|
this.position = "bottom-left";
|
|
21
24
|
this.expandable = false;
|
|
22
25
|
this.view = undefined;
|
|
23
26
|
this.widget = undefined;
|
|
24
27
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
// Watchers
|
|
28
|
-
//
|
|
29
|
-
//--------------------------------------------------------------------------
|
|
30
|
-
positionWatcher(newValue) {
|
|
31
|
-
if (newValue !== undefined && this.widget) {
|
|
32
|
-
if (typeof this.view !== "string") {
|
|
33
|
-
this.view.ui.move(this.childElem, newValue);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
28
|
+
referenceElementWatcher(newValue) {
|
|
29
|
+
referenceElementHelper(this, newValue);
|
|
36
30
|
}
|
|
37
31
|
apiKeyWatcher(value) {
|
|
38
32
|
if (value && this.widget) {
|
|
@@ -40,7 +34,16 @@ const ArcgisDirections = class {
|
|
|
40
34
|
}
|
|
41
35
|
}
|
|
42
36
|
routeLayerItemIdWatcher(value) {
|
|
43
|
-
if (value
|
|
37
|
+
if (isNullOrEmptyString(value)) {
|
|
38
|
+
this.view?.map.remove(this.layer);
|
|
39
|
+
// maintain a default route layer
|
|
40
|
+
if (this.useDefaultRouteLayer) {
|
|
41
|
+
newLayersRouteLayer({}).then((layer) => {
|
|
42
|
+
this.layer = layer;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
else if (value && this.widget) {
|
|
44
47
|
newLayersRouteLayer({
|
|
45
48
|
portalItem: {
|
|
46
49
|
id: value
|
|
@@ -50,29 +53,42 @@ const ArcgisDirections = class {
|
|
|
50
53
|
});
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
|
-
layerWatcher(value) {
|
|
56
|
+
layerWatcher(value, old) {
|
|
57
|
+
if (old) {
|
|
58
|
+
this.view?.map.remove(old);
|
|
59
|
+
}
|
|
54
60
|
if (value && this.widget) {
|
|
55
61
|
this.widget.layer = value;
|
|
56
62
|
this.view?.map.add(this.layer);
|
|
57
63
|
}
|
|
64
|
+
else if (!value) {
|
|
65
|
+
this.widget.layer = null;
|
|
66
|
+
}
|
|
58
67
|
}
|
|
59
68
|
maxStopsWatcher(value) {
|
|
60
|
-
if (value && this.widget) {
|
|
69
|
+
if (value !== undefined && this.widget) {
|
|
61
70
|
this.widget.maxStops = value;
|
|
62
71
|
}
|
|
63
72
|
}
|
|
64
73
|
searchPropertiesWatcher(value) {
|
|
65
|
-
if (
|
|
74
|
+
if (this.widget) {
|
|
66
75
|
this.widget.searchProperties = value;
|
|
67
76
|
}
|
|
68
77
|
}
|
|
69
78
|
unitWatcher(value) {
|
|
70
|
-
if (
|
|
79
|
+
if (this.widget) {
|
|
71
80
|
this.widget.unit = value;
|
|
72
81
|
}
|
|
73
82
|
}
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
visibleElementsWatcher(newValue) {
|
|
84
|
+
if (this.widget) {
|
|
85
|
+
this.widget.visibleElements = newValue;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
positionWatcher(newValue) {
|
|
89
|
+
if (newValue !== undefined && this.widget) {
|
|
90
|
+
this.view.ui.move(this.childElem, newValue);
|
|
91
|
+
}
|
|
76
92
|
}
|
|
77
93
|
viewWatcher(newValue) {
|
|
78
94
|
if (newValue !== undefined && this.widget) {
|
|
@@ -128,9 +144,9 @@ const ArcgisDirections = class {
|
|
|
128
144
|
//--------------------------------------------------------------------------
|
|
129
145
|
async _addWatchers() {
|
|
130
146
|
const { watch } = await importCoreReactiveUtils();
|
|
131
|
-
watch(() => this.widget.lastRoute, (value) => (this.lastRoute = value), {
|
|
147
|
+
addHandles(this, watch(() => this.widget.lastRoute, (value) => (this.lastRoute = value), {
|
|
132
148
|
initial: true
|
|
133
|
-
});
|
|
149
|
+
}));
|
|
134
150
|
}
|
|
135
151
|
async _createParams() {
|
|
136
152
|
const params = {
|
|
@@ -154,7 +170,7 @@ const ArcgisDirections = class {
|
|
|
154
170
|
params.layer = this.layer;
|
|
155
171
|
this.layer = params.layer;
|
|
156
172
|
}
|
|
157
|
-
else {
|
|
173
|
+
else if (this.useDefaultRouteLayer) {
|
|
158
174
|
params.layer = await newLayersRouteLayer({});
|
|
159
175
|
this.layer = params.layer;
|
|
160
176
|
}
|
|
@@ -170,21 +186,27 @@ const ArcgisDirections = class {
|
|
|
170
186
|
if (this.unit) {
|
|
171
187
|
params.unit = this.unit;
|
|
172
188
|
}
|
|
189
|
+
if (this.visibleElements) {
|
|
190
|
+
params.visibleElements = this.visibleElements;
|
|
191
|
+
}
|
|
173
192
|
return params;
|
|
174
193
|
}
|
|
175
194
|
get el() { return getElement(this); }
|
|
176
195
|
static get watchers() { return {
|
|
177
|
-
"
|
|
196
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
178
197
|
"apiKey": ["apiKeyWatcher"],
|
|
179
198
|
"routeLayerItemId": ["routeLayerItemIdWatcher"],
|
|
180
199
|
"layer": ["layerWatcher"],
|
|
181
200
|
"maxStops": ["maxStopsWatcher"],
|
|
182
201
|
"searchProperties": ["searchPropertiesWatcher"],
|
|
183
202
|
"unit": ["unitWatcher"],
|
|
184
|
-
"
|
|
203
|
+
"visibleElements": ["visibleElementsWatcher"],
|
|
204
|
+
"position": ["positionWatcher"],
|
|
185
205
|
"view": ["viewWatcher"]
|
|
186
206
|
}; }
|
|
187
207
|
};
|
|
188
|
-
ArcgisDirections.style =
|
|
208
|
+
ArcgisDirections.style = directionsCss;
|
|
189
209
|
|
|
190
210
|
export { ArcgisDirections as arcgis_directions };
|
|
211
|
+
|
|
212
|
+
//# sourceMappingURL=arcgis-directions.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"arcgis-directions.entry.js","mappings":";;;;;AAAA,MAAM,aAAa,GAAG,EAAE;;MCuBX,gBAAgB;;;;IA0I3B,kBAAa,GAAyB,EAAE,CAAC;;;;;;;;;gCApCD,IAAI;;oBAWzB,aAAa;sBASX,KAAK;;;;EApG1B,uBAAuB,CAAC,QAAyC;IAC/D,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;GACxC;EAKD,aAAa,CAAC,KAAa;IACzB,IAAI,KAAK,IAAI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AAC;KAC/C;IAED,OAAO,MAAM,CAAC;GACf;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/directions/directions.css?tag=arcgis-directions","src/components/directions/directions.tsx"],"sourcesContent":["","import { Component, Element, Event, EventEmitter, h, Method, Prop, VNode, Watch } from \"@stencil/core\";\n\n// arcgis imports\nimport { importCoreReactiveUtils, newLayersRouteLayer, newWidgetsDirections } from \"@arcgis/core-adapter\";\nimport type Directions from \"@arcgis/core/widgets/Directions\";\nimport {\n addHandles,\n ArcgisReferenceElement,\n checkForView,\n isNullOrEmptyString,\n referenceElementHelper\n} from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport { ExpandableComponent } from \"../../utils/expandable\";\nimport { ArcGISMapView, ArcGISSceneView } from \"../types\";\n\nexport type DirectionsWidget = InstanceType<typeof Directions>;\n\n@Component({\n tag: \"arcgis-directions\",\n styleUrl: \"directions.css\",\n shadow: false\n})\nexport class ArcgisDirections implements ExpandableComponent {\n //--------------------------------------------------------------------------\n //\n // Elements\n //\n //--------------------------------------------------------------------------\n\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() apiKey: string;\n\n @Watch(\"apiKey\")\n apiKeyWatcher(value: string): void {\n if (value && this.widget) {\n this.widget.apiKey = value;\n }\n }\n\n @Prop() routeLayerItemId: string;\n\n @Watch(\"routeLayerItemId\")\n routeLayerItemIdWatcher(value: string): void {\n if (isNullOrEmptyString(value)) {\n this.view?.map.remove(this.layer);\n // maintain a default route layer\n if (this.useDefaultRouteLayer) {\n newLayersRouteLayer({}).then((layer) => {\n this.layer = layer;\n });\n }\n } else if (value && this.widget) {\n newLayersRouteLayer({\n portalItem: {\n id: value\n } as any\n }).then((layer) => {\n this.layer = layer;\n });\n }\n }\n\n @Prop({ mutable: true }) lastRoute: DirectionsWidget[\"lastRoute\"];\n\n @Prop() layer: DirectionsWidget[\"layer\"];\n\n @Watch(\"layer\")\n layerWatcher(value: DirectionsWidget[\"layer\"], old: DirectionsWidget[\"layer\"]): void {\n if (old) {\n this.view?.map.remove(old);\n }\n if (value && this.widget) {\n this.widget.layer = value;\n this.view?.map.add(this.layer);\n } else if (!value) {\n this.widget.layer = null!;\n }\n }\n\n @Prop() maxStops: DirectionsWidget[\"maxStops\"];\n\n @Watch(\"maxStops\")\n maxStopsWatcher(value: DirectionsWidget[\"maxStops\"]): void {\n if (value !== undefined && this.widget) {\n this.widget.maxStops = value;\n }\n }\n\n @Prop() searchProperties: DirectionsWidget[\"searchProperties\"];\n\n @Watch(\"searchProperties\")\n searchPropertiesWatcher(value: DirectionsWidget[\"searchProperties\"]): void {\n if (this.widget) {\n this.widget.searchProperties = value;\n }\n }\n\n @Prop() unit: DirectionsWidget[\"unit\"];\n\n @Watch(\"unit\")\n unitWatcher(value: DirectionsWidget[\"unit\"]): void {\n if (this.widget) {\n this.widget.unit = value;\n }\n }\n\n @Prop() useDefaultRouteLayer: boolean = true;\n\n @Prop() visibleElements: DirectionsWidget[\"visibleElements\"];\n\n @Watch(\"visibleElements\")\n visibleElementsWatcher(newValue: DirectionsWidget[\"visibleElements\"]): void {\n if (this.widget) {\n this.widget.visibleElements = newValue;\n }\n }\n\n @Prop() position = \"bottom-left\";\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 if (this.layer) {\n this.widget.view.map.add(this.layer);\n }\n }\n }\n\n @Prop({ mutable: true }) widget: DirectionsWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady: EventEmitter<{ widget: __esri.Directions }>;\n\n //--------------------------------------------------------------------------\n //\n // Methods\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async getDirections(): Promise<__esri.RouteLayerSolveResult> {\n return this.widget?.getDirections();\n }\n\n @Method()\n async save(): Promise<__esri.PortalItem> {\n return this.widget?.save();\n }\n\n @Method()\n async saveAs(\n portalItem: Promise<__esri.PortalItem>,\n options: { folder: __esri.PortalFolder }\n ): Promise<__esri.PortalItem> {\n return this.widget?.saveAs(portalItem, options);\n }\n\n @Method()\n async zoomToRoute(): Promise<void> {\n return this.widget?.zoomToRoute();\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = await this._createParams();\n\n const widget = await newWidgetsDirections(params);\n\n this.widget = widget;\n\n await this._addWatchers();\n\n this.widgetReady.emit({ widget: this.widget });\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 // Private Methods\n //\n //--------------------------------------------------------------------------\n\n private async _addWatchers() {\n const { watch } = await importCoreReactiveUtils();\n\n addHandles(\n this,\n watch(\n () => this.widget.lastRoute,\n (value) => (this.lastRoute = value),\n {\n initial: true\n }\n )\n );\n }\n\n private async _createParams(): Promise<Partial<DirectionsWidget>> {\n const params: Partial<DirectionsWidget> = {\n container: this.childElem\n };\n\n if (this.view) {\n params.view = this.view;\n }\n\n if (this.apiKey) {\n params.apiKey = this.apiKey;\n }\n\n if (this.routeLayerItemId) {\n params.layer = await newLayersRouteLayer({\n portalItem: {\n id: this.routeLayerItemId\n }\n });\n this.layer = params.layer;\n } else if (this.layer) {\n params.layer = this.layer;\n this.layer = params.layer;\n } else if (this.useDefaultRouteLayer) {\n params.layer = await newLayersRouteLayer({});\n this.layer = params.layer;\n }\n\n if (this.layer !== undefined) {\n this.view?.map.add(this.layer);\n }\n\n if (this.maxStops !== undefined) {\n params.maxStops = this.maxStops;\n }\n\n if (this.searchProperties) {\n params.searchProperties = this.searchProperties;\n }\n\n if (this.unit) {\n params.unit = this.unit;\n }\n\n if (this.visibleElements) {\n params.visibleElements = this.visibleElements;\n }\n\n return params;\n }\n}\n"],"version":3}
|