@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, J as newWebMap, K as newViewsMapView } 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 mapCss = ".arcgis-map{padding:0;margin:0;height:100%;width:100%}";
|
|
6
7
|
|
|
7
|
-
const ArcgisMap$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
const ArcgisMap$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisMap 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.backgroundColor = undefined;
|
|
@@ -23,14 +25,43 @@ const ArcgisMap$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
23
25
|
apiKeyWatcher(value) {
|
|
24
26
|
this.config.apiKey = value;
|
|
25
27
|
}
|
|
28
|
+
basemapWatcher(value) {
|
|
29
|
+
if (this.view?.map) {
|
|
30
|
+
this.view.map.basemap = value;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
26
33
|
backgroundColorWatcher(value) {
|
|
27
34
|
this.view.background = {
|
|
28
35
|
color: value
|
|
29
36
|
};
|
|
30
37
|
}
|
|
31
38
|
itemIdWatcher(value, old) {
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
// NOTE: there is an issue when users set the value to undefined.
|
|
40
|
+
// https://github.com/ionic-team/stencil/issues/2814
|
|
41
|
+
// If user sets `itemid` to `undefined`, Stencil 2 will log the following warning:
|
|
42
|
+
// `The state/prop "${propName}" changed during rendering.`
|
|
43
|
+
// `This can potentially lead to infinite-loops and other bugs.`
|
|
44
|
+
//
|
|
45
|
+
// It appears consumer setting the value to null does not cause this warning.
|
|
46
|
+
// In Stencil 4, if a user sets property to undefined, will trigger change, but
|
|
47
|
+
// will not remove attribute from DOM.
|
|
48
|
+
if (value !== old) {
|
|
49
|
+
if (this.view?.map) {
|
|
50
|
+
this._updateMap();
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
this._loadMap();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
portalUrlWatcher(value, old) {
|
|
58
|
+
if (value !== old) {
|
|
59
|
+
if (this.view?.map) {
|
|
60
|
+
this._updateMap();
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
this._loadMap();
|
|
64
|
+
}
|
|
34
65
|
}
|
|
35
66
|
}
|
|
36
67
|
scaleWatcher(value, old) {
|
|
@@ -53,13 +84,17 @@ const ArcgisMap$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
53
84
|
if (this.apiKey) {
|
|
54
85
|
this.config.apiKey = this.apiKey;
|
|
55
86
|
}
|
|
56
|
-
this.
|
|
87
|
+
this._loadMap();
|
|
57
88
|
}
|
|
58
89
|
componentDidRender() {
|
|
59
90
|
if (this.view) {
|
|
60
91
|
this.view.container = this.el;
|
|
61
92
|
}
|
|
62
93
|
}
|
|
94
|
+
disconnectedCallback() {
|
|
95
|
+
this._clearWatchHandles();
|
|
96
|
+
this.view.destroy();
|
|
97
|
+
}
|
|
63
98
|
render() {
|
|
64
99
|
return h("div", { class: "arcgis-map", ref: (el) => (this.el = el) });
|
|
65
100
|
}
|
|
@@ -68,41 +103,17 @@ const ArcgisMap$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
68
103
|
// Private Methods
|
|
69
104
|
//
|
|
70
105
|
//--------------------------------------------------------------------------
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
mapParams.portalItem = this._createPortalItem();
|
|
75
|
-
}
|
|
76
|
-
if (this.basemap) {
|
|
77
|
-
mapParams.basemap = this.basemap;
|
|
78
|
-
}
|
|
79
|
-
const map = await newWebMap(mapParams);
|
|
80
|
-
const params = this._createViewParams();
|
|
81
|
-
const view = await newViewsMapView({
|
|
82
|
-
map,
|
|
83
|
-
...params
|
|
84
|
-
});
|
|
85
|
-
this.view = view;
|
|
86
|
-
this._addWatchers();
|
|
87
|
-
if (this.disableNavigation) {
|
|
88
|
-
disableNavigation(this.view);
|
|
89
|
-
}
|
|
90
|
-
this.view.when(() => {
|
|
91
|
-
this.viewReady.emit({ view: this.view });
|
|
92
|
-
});
|
|
106
|
+
_clearWatchHandles() {
|
|
107
|
+
this._watchHandles.forEach((handle) => handle.remove());
|
|
108
|
+
this._watchHandles = [];
|
|
93
109
|
}
|
|
94
|
-
//--------------------------------------------------------------------------
|
|
95
|
-
//
|
|
96
|
-
// Private Methods
|
|
97
|
-
//
|
|
98
|
-
//--------------------------------------------------------------------------
|
|
99
110
|
async _addWatchers() {
|
|
100
111
|
const { watch, when } = await importCoreReactiveUtils();
|
|
101
|
-
watch(() => this.view.center, (center) => {
|
|
112
|
+
this._watchHandles.push(watch(() => this.view.center, (center) => {
|
|
102
113
|
const value = `${center.longitude},${center.latitude}`;
|
|
103
114
|
this.center = value;
|
|
104
|
-
});
|
|
105
|
-
when(() => this.view.updating, () => {
|
|
115
|
+
}));
|
|
116
|
+
this._watchHandles.push(when(() => this.view.updating, () => {
|
|
106
117
|
when(() => !this.view.updating, () => {
|
|
107
118
|
if (this.zoom !== this.view.zoom) {
|
|
108
119
|
this.zoom = this.view.zoom;
|
|
@@ -111,7 +122,21 @@ const ArcgisMap$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
111
122
|
this.scale = this.view.scale;
|
|
112
123
|
}
|
|
113
124
|
}, { once: true });
|
|
114
|
-
});
|
|
125
|
+
}));
|
|
126
|
+
}
|
|
127
|
+
async _createMap() {
|
|
128
|
+
const mapParams = {};
|
|
129
|
+
if (this.itemId) {
|
|
130
|
+
mapParams.portalItem = this._createPortalItem();
|
|
131
|
+
}
|
|
132
|
+
if (this.basemap) {
|
|
133
|
+
mapParams.basemap = this.basemap;
|
|
134
|
+
}
|
|
135
|
+
else if (isNullOrEmptyString(this.itemId)) {
|
|
136
|
+
mapParams.basemap = "topo-vector";
|
|
137
|
+
}
|
|
138
|
+
const map = await newWebMap(mapParams);
|
|
139
|
+
return map;
|
|
115
140
|
}
|
|
116
141
|
_createPortalItem() {
|
|
117
142
|
const item = {};
|
|
@@ -148,26 +173,59 @@ const ArcgisMap$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
148
173
|
}
|
|
149
174
|
return params;
|
|
150
175
|
}
|
|
151
|
-
|
|
176
|
+
async _loadMap() {
|
|
177
|
+
const map = await this._createMap();
|
|
178
|
+
const params = this._createViewParams();
|
|
179
|
+
const view = await newViewsMapView({
|
|
180
|
+
map,
|
|
181
|
+
...params
|
|
182
|
+
});
|
|
183
|
+
this.view = view;
|
|
184
|
+
this._addWatchers();
|
|
185
|
+
if (this.disableNavigation) {
|
|
186
|
+
disableNavigation(this.view);
|
|
187
|
+
}
|
|
188
|
+
this.view.when(() => {
|
|
189
|
+
this.viewReady.emit({ view: this.view });
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
async _updateMap() {
|
|
193
|
+
if (this.view?.map) {
|
|
194
|
+
this.view.map.destroy();
|
|
195
|
+
const map = await this._createMap();
|
|
196
|
+
this.view.map = map;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
get _hostElement() { return this; }
|
|
152
200
|
static get watchers() { return {
|
|
153
201
|
"apiKey": ["apiKeyWatcher"],
|
|
202
|
+
"basemap": ["basemapWatcher"],
|
|
154
203
|
"backgroundColor": ["backgroundColorWatcher"],
|
|
155
204
|
"itemId": ["itemIdWatcher"],
|
|
205
|
+
"portalUrl": ["portalUrlWatcher"],
|
|
156
206
|
"scale": ["scaleWatcher"],
|
|
157
207
|
"zoom": ["zoomWatcher"]
|
|
158
208
|
}; }
|
|
159
|
-
static get style() { return
|
|
209
|
+
static get style() { return mapCss; }
|
|
160
210
|
}, [0, "arcgis-map", {
|
|
161
211
|
"apiKey": [1, "api-key"],
|
|
162
212
|
"basemap": [1025],
|
|
163
213
|
"backgroundColor": [1025, "background-color"],
|
|
164
214
|
"disableNavigation": [4, "disable-navigation"],
|
|
165
|
-
"itemId": [
|
|
215
|
+
"itemId": [1537, "item-id"],
|
|
166
216
|
"portalUrl": [1, "portal-url"],
|
|
167
217
|
"scale": [1538],
|
|
168
218
|
"zoom": [1538],
|
|
169
219
|
"center": [1537],
|
|
170
220
|
"view": [1040]
|
|
221
|
+
}, undefined, {
|
|
222
|
+
"apiKey": ["apiKeyWatcher"],
|
|
223
|
+
"basemap": ["basemapWatcher"],
|
|
224
|
+
"backgroundColor": ["backgroundColorWatcher"],
|
|
225
|
+
"itemId": ["itemIdWatcher"],
|
|
226
|
+
"portalUrl": ["portalUrlWatcher"],
|
|
227
|
+
"scale": ["scaleWatcher"],
|
|
228
|
+
"zoom": ["zoomWatcher"]
|
|
171
229
|
}]);
|
|
172
230
|
function defineCustomElement$1() {
|
|
173
231
|
if (typeof customElements === "undefined") {
|
|
@@ -188,3 +246,5 @@ const ArcgisMap = ArcgisMap$1;
|
|
|
188
246
|
const defineCustomElement = defineCustomElement$1;
|
|
189
247
|
|
|
190
248
|
export { ArcgisMap, defineCustomElement };
|
|
249
|
+
|
|
250
|
+
//# sourceMappingURL=arcgis-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"arcgis-map.js","mappings":";;;;;AAAA,MAAM,MAAM,GAAG,wDAAwD;;MCgB1DA,WAAS;;;;;IAuGpB,kBAAa,GAAyB,EAAE,CAAC;;;;6BA7Db,KAAK;;;;;;;;EAtBjC,aAAa,CAAC,KAAa;IACzB,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC;GAC5B;EAKD,cAAc,CAAC,KAAa;IAC1B,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AAC;KACrB;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ArcgisMap"],"sources":["src/components/map/map.css?tag=arcgis-map","src/components/map/map.tsx"],"sourcesContent":[".arcgis-map {\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, newViewsMapView, newWebMap } from \"@arcgis/core-adapter\";\nimport type WebMap from \"@arcgis/core/WebMap\";\nimport { isNullOrEmptyString, ViewElement } from \"../../utils/component-utils\";\nimport { disableNavigation } from \"../../utils/mapping-utils\";\nimport { ArcGISMapView } from \"../types\";\n\nexport type ArcGISWebMap = InstanceType<typeof WebMap>;\n\n@Component({\n tag: \"arcgis-map\",\n styleUrl: \"map.css\",\n shadow: false\n})\nexport class ArcgisMap implements ViewElement {\n //--------------------------------------------------------------------------\n //\n // Elements\n //\n //--------------------------------------------------------------------------\n\n el: HTMLDivElement;\n\n @Element() _hostElement: HTMLArcgisMapElement;\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 }) backgroundColor: string;\n\n @Watch(\"backgroundColor\")\n backgroundColorWatcher(value: string): void {\n this.view.background = {\n color: value\n } as any;\n }\n\n @Prop() disableNavigation = false;\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 !== 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: ArcGISMapView;\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.MapView }>;\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-map\" 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.WebMap> {\n const mapParams: Partial<InstanceType<typeof WebMap>> = {};\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 newWebMap(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.MapViewProperties> {\n const params: Partial<__esri.MapViewProperties> = {};\n\n if (this.backgroundColor) {\n params.background = {\n color: this.backgroundColor\n };\n }\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 newViewsMapView({\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,15 +1,17 @@
|
|
|
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 { L as newWidgetsMeasurement, 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 measurementCss = "arcgis-measurement{}";
|
|
7
8
|
|
|
8
|
-
const ArcgisMeasurement$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
const ArcgisMeasurement$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisMeasurement 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.activeTool = undefined;
|
|
15
17
|
this.activeWidget = undefined;
|
|
@@ -20,36 +22,29 @@ const ArcgisMeasurement$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
20
22
|
this.view = undefined;
|
|
21
23
|
this.widget = undefined;
|
|
22
24
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
//
|
|
27
|
-
//--------------------------------------------------------------------------
|
|
25
|
+
referenceElementWatcher(newValue) {
|
|
26
|
+
referenceElementHelper(this, newValue);
|
|
27
|
+
}
|
|
28
28
|
activeToolWatcher(newValue) {
|
|
29
|
-
if (
|
|
29
|
+
if (this.widget) {
|
|
30
30
|
this.widget.activeTool = newValue;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
areaUnitWatcher(newValue) {
|
|
34
|
-
if (
|
|
34
|
+
if (this.widget) {
|
|
35
35
|
this.widget.areaUnit = newValue;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
linearUnitWatcher(newValue) {
|
|
39
|
-
if (
|
|
39
|
+
if (this.widget) {
|
|
40
40
|
this.widget.linearUnit = newValue;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
positionWatcher(newValue) {
|
|
44
44
|
if (newValue !== undefined && this.widget) {
|
|
45
|
-
|
|
46
|
-
this.view.ui.move(this.childElem, newValue);
|
|
47
|
-
}
|
|
45
|
+
this.view.ui.move(this.childElem, newValue);
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
|
-
referenceElementWatcher(newValue) {
|
|
51
|
-
referenceElementHelper(this, newValue);
|
|
52
|
-
}
|
|
53
48
|
viewWatcher(newValue) {
|
|
54
49
|
if (newValue !== undefined && this.widget) {
|
|
55
50
|
this.widget.view = newValue;
|
|
@@ -92,14 +87,23 @@ const ArcgisMeasurement$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
92
87
|
//--------------------------------------------------------------------------
|
|
93
88
|
async _addWatchers() {
|
|
94
89
|
const { watch } = await importCoreReactiveUtils();
|
|
95
|
-
watch(() => this.widget.activeWidget, (value) => (this.activeWidget = value), {
|
|
90
|
+
addHandles(this, watch(() => this.widget.activeWidget, (value) => (this.activeWidget = value), {
|
|
96
91
|
initial: true
|
|
97
|
-
});
|
|
92
|
+
}));
|
|
98
93
|
}
|
|
99
94
|
_createParams() {
|
|
100
95
|
const params = {
|
|
101
96
|
container: this.childElem
|
|
102
97
|
};
|
|
98
|
+
if (this.activeTool) {
|
|
99
|
+
params.activeTool = this.activeTool;
|
|
100
|
+
}
|
|
101
|
+
if (this.areaUnit) {
|
|
102
|
+
params.areaUnit = this.areaUnit;
|
|
103
|
+
}
|
|
104
|
+
if (this.linearUnit) {
|
|
105
|
+
params.linearUnit = this.linearUnit;
|
|
106
|
+
}
|
|
103
107
|
if (this.view) {
|
|
104
108
|
params.view = this.view;
|
|
105
109
|
}
|
|
@@ -107,14 +111,14 @@ const ArcgisMeasurement$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
107
111
|
}
|
|
108
112
|
get el() { return this; }
|
|
109
113
|
static get watchers() { return {
|
|
114
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
110
115
|
"activeTool": ["activeToolWatcher"],
|
|
111
116
|
"areaUnit": ["areaUnitWatcher"],
|
|
112
117
|
"linearUnit": ["linearUnitWatcher"],
|
|
113
118
|
"position": ["positionWatcher"],
|
|
114
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
115
119
|
"view": ["viewWatcher"]
|
|
116
120
|
}; }
|
|
117
|
-
static get style() { return
|
|
121
|
+
static get style() { return measurementCss; }
|
|
118
122
|
}, [0, "arcgis-measurement", {
|
|
119
123
|
"referenceElement": [1, "reference-element"],
|
|
120
124
|
"activeTool": [1, "active-tool"],
|
|
@@ -126,6 +130,13 @@ const ArcgisMeasurement$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
126
130
|
"view": [1040],
|
|
127
131
|
"widget": [1040],
|
|
128
132
|
"startMeasurement": [64]
|
|
133
|
+
}, undefined, {
|
|
134
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
135
|
+
"activeTool": ["activeToolWatcher"],
|
|
136
|
+
"areaUnit": ["areaUnitWatcher"],
|
|
137
|
+
"linearUnit": ["linearUnitWatcher"],
|
|
138
|
+
"position": ["positionWatcher"],
|
|
139
|
+
"view": ["viewWatcher"]
|
|
129
140
|
}]);
|
|
130
141
|
function defineCustomElement$1() {
|
|
131
142
|
if (typeof customElements === "undefined") {
|
|
@@ -151,3 +162,5 @@ const ArcgisMeasurement = ArcgisMeasurement$1;
|
|
|
151
162
|
const defineCustomElement = defineCustomElement$1;
|
|
152
163
|
|
|
153
164
|
export { ArcgisMeasurement, defineCustomElement };
|
|
165
|
+
|
|
166
|
+
//# sourceMappingURL=arcgis-measurement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"arcgis-measurement.js","mappings":";;;;;;AAAA,MAAM,cAAc,GAAG,sBAAsB;;MCgBhCA,mBAAiB;;;;;IA6E5B,kBAAa,GAAyB,EAAE,CAAC;;;;;;oBAtBtB,aAAa;sBASX,KAAK;;;;EA1C1B,uBAAuB,CAAC,QAAyC;IAC/D,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;GACxC;EAKD,iBAAiB,CAAC,QAAyC;IACzD,IAAI,IAAI,CAAC,MAAM,EAAE;MACf,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;KACnC;GACF;EAOD,eAAe,CAAC,QAAuC;IACrD,IAAI,IAAI,CAAC,MAAM,EAAE;MACf,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;KACjC;GACF;EAKD,iBAAiB,CAAC,QAAyC;IACzD,IAAI,IAAI,CAAC,MAAM,EAAE;MACf,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;KACnC;GACF;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;;;;;;EAqBD,MAAM,gBAAgB;IACpB,OAAO,IAAI,CAAC,MAAM,EAAE,gBAAg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nB,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;KACrC;IAED,IAAI,IAAI,CAAC,QAAQ,EAAE;MACjB,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;KACjC;IAED,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;KACrC;IAED,IAAI,IAAI,CAAC,IAAI,EAAE;MACb,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;KACzB;IAED,OAAO,MAAM,CAAC;GACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ArcgisMeasurement"],"sources":["src/components/measurement/measurement.css?tag=arcgis-measurement","src/components/measurement/measurement.tsx"],"sourcesContent":["arcgis-measurement {\n /* Component styles go here */\n}\n","import { Component, Element, Event, EventEmitter, Method, Prop, VNode, Watch, h } from \"@stencil/core\";\n\n// arcgis imports\nimport { importCoreReactiveUtils, newWidgetsMeasurement } from \"@arcgis/core-adapter\";\nimport type Measurement from \"@arcgis/core/widgets/Measurement\";\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 MeasurementWidget = InstanceType<typeof Measurement>;\n\n@Component({\n tag: \"arcgis-measurement\",\n styleUrl: \"measurement.css\"\n})\nexport class ArcgisMeasurement 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() activeTool: MeasurementWidget[\"activeTool\"];\n\n @Watch(\"activeTool\")\n activeToolWatcher(newValue: MeasurementWidget[\"activeTool\"]): void {\n if (this.widget) {\n this.widget.activeTool = newValue;\n }\n }\n\n @Prop({ mutable: true }) activeWidget: MeasurementWidget[\"activeWidget\"];\n\n @Prop() areaUnit: MeasurementWidget[\"areaUnit\"];\n\n @Watch(\"areaUnit\")\n areaUnitWatcher(newValue: MeasurementWidget[\"areaUnit\"]): void {\n if (this.widget) {\n this.widget.areaUnit = newValue;\n }\n }\n\n @Prop() linearUnit: MeasurementWidget[\"linearUnit\"];\n\n @Watch(\"linearUnit\")\n linearUnitWatcher(newValue: MeasurementWidget[\"linearUnit\"]): void {\n if (this.widget) {\n this.widget.linearUnit = 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: MeasurementWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady: EventEmitter<{ widget: __esri.Measurement }>;\n\n //--------------------------------------------------------------------------\n //\n // Methods\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async startMeasurement(): Promise<void> {\n return this.widget?.startMeasurement();\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsMeasurement(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.activeWidget,\n (value) => (this.activeWidget = value),\n {\n initial: true\n }\n )\n );\n }\n\n private _createParams(): Partial<MeasurementWidget> {\n const params: Partial<MeasurementWidget> = {\n container: this.childElem\n };\n\n if (this.activeTool) {\n params.activeTool = this.activeTool;\n }\n\n if (this.areaUnit) {\n params.areaUnit = this.areaUnit;\n }\n\n if (this.linearUnit) {\n params.linearUnit = this.linearUnit;\n }\n\n if (this.view) {\n params.view = this.view;\n }\n\n return params;\n }\n}\n"],"version":3}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView
|
|
2
|
+
import { M as newWidgetsNavigationToggle } from './index2.js';
|
|
3
|
+
import { r as referenceElementHelper, c as checkForView } from './component-utils.js';
|
|
4
|
+
import { o as onDisconnectedHelper } from './disconnected.js';
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
+
const navigationToggleCss = "arcgis-navigation-toggle{}";
|
|
6
7
|
|
|
7
|
-
const ArcgisNavigationToggle$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
const ArcgisNavigationToggle$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisNavigationToggle extends HTMLElement {
|
|
8
9
|
constructor() {
|
|
9
10
|
super();
|
|
10
11
|
this.__registerHost();
|
|
11
12
|
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
13
|
+
this._watchHandles = [];
|
|
12
14
|
this.referenceElement = undefined;
|
|
13
15
|
this.layout = undefined;
|
|
14
16
|
this.position = "bottom-left";
|
|
15
17
|
this.view = undefined;
|
|
16
18
|
this.widget = undefined;
|
|
17
19
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
//
|
|
22
|
-
//--------------------------------------------------------------------------
|
|
20
|
+
referenceElementWatcher(newValue) {
|
|
21
|
+
referenceElementHelper(this, newValue);
|
|
22
|
+
}
|
|
23
23
|
layoutWatcher(newValue) {
|
|
24
24
|
if (newValue !== undefined && this.widget) {
|
|
25
25
|
this.widget.layout = newValue;
|
|
@@ -27,14 +27,9 @@ const ArcgisNavigationToggle$1 = /*@__PURE__*/ proxyCustomElement(class extends
|
|
|
27
27
|
}
|
|
28
28
|
positionWatcher(newValue) {
|
|
29
29
|
if (newValue !== undefined && this.widget) {
|
|
30
|
-
|
|
31
|
-
this.view.ui.move(this.childElem, newValue);
|
|
32
|
-
}
|
|
30
|
+
this.view.ui.move(this.childElem, newValue);
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
|
-
referenceElementWatcher(newValue) {
|
|
36
|
-
referenceElementHelper(this, newValue);
|
|
37
|
-
}
|
|
38
33
|
viewWatcher(newValue) {
|
|
39
34
|
if (newValue !== undefined && this.widget) {
|
|
40
35
|
this.widget.view = newValue;
|
|
@@ -82,12 +77,12 @@ const ArcgisNavigationToggle$1 = /*@__PURE__*/ proxyCustomElement(class extends
|
|
|
82
77
|
}
|
|
83
78
|
get el() { return this; }
|
|
84
79
|
static get watchers() { return {
|
|
80
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
85
81
|
"layout": ["layoutWatcher"],
|
|
86
82
|
"position": ["positionWatcher"],
|
|
87
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
88
83
|
"view": ["viewWatcher"]
|
|
89
84
|
}; }
|
|
90
|
-
static get style() { return
|
|
85
|
+
static get style() { return navigationToggleCss; }
|
|
91
86
|
}, [0, "arcgis-navigation-toggle", {
|
|
92
87
|
"referenceElement": [1, "reference-element"],
|
|
93
88
|
"layout": [1537],
|
|
@@ -95,6 +90,11 @@ const ArcgisNavigationToggle$1 = /*@__PURE__*/ proxyCustomElement(class extends
|
|
|
95
90
|
"view": [1040],
|
|
96
91
|
"widget": [1040],
|
|
97
92
|
"toggle": [64]
|
|
93
|
+
}, undefined, {
|
|
94
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
95
|
+
"layout": ["layoutWatcher"],
|
|
96
|
+
"position": ["positionWatcher"],
|
|
97
|
+
"view": ["viewWatcher"]
|
|
98
98
|
}]);
|
|
99
99
|
function defineCustomElement$1() {
|
|
100
100
|
if (typeof customElements === "undefined") {
|
|
@@ -115,3 +115,5 @@ const ArcgisNavigationToggle = ArcgisNavigationToggle$1;
|
|
|
115
115
|
const defineCustomElement = defineCustomElement$1;
|
|
116
116
|
|
|
117
117
|
export { ArcgisNavigationToggle, defineCustomElement };
|
|
118
|
+
|
|
119
|
+
//# sourceMappingURL=arcgis-navigation-toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"arcgis-navigation-toggle.js","mappings":";;;;;AAAA,MAAM,mBAAmB,GAAG,4BAA4B;;MCoB3CA,wBAAsB;;;;;IAqDjC,kBAAa,GAAyB,EAAE,CAAC;;;oBApBtB,aAAa;;;;EAbhC,uBAAuB,CAAC,QAAyC;IAC/D,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;GACxC;EAKD,aAAa,CAAC,QAA0C;IACtD,IAAI,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;MACzC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,QAAQ,CAAC;KAC/B;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sources":["src/components/navigation-toggle/navigation-toggle.css?tag=arcgis-navigation-toggle","src/components/navigation-toggle/navigation-toggle.tsx"],"sourcesContent":["arcgis-navigation-toggle {\n /* Component styles go here */\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, VNode, Watch } from \"@stencil/core\";\n\n// arcgis imports\nimport { newWidgetsNavigationToggle } from \"@arcgis/core-adapter\";\nimport type NavigationToggle from \"@arcgis/core/widgets/NavigationToggle\";\nimport {\n ArcgisReferenceElement,\n checkForView,\n referenceElementHelper,\n WidgetElement\n} from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport { ArcGISSceneView } from \"../types\";\n\nexport type NavigationToggleWidget = InstanceType<typeof NavigationToggle>;\n\n@Component({\n tag: \"arcgis-navigation-toggle\",\n styleUrl: \"navigation-toggle.css\"\n})\nexport class ArcgisNavigationToggle implements WidgetElement {\n //--------------------------------------------------------------------------\n //\n // Elements\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({ mutable: true, reflect: true }) layout: NavigationToggleWidget[\"layout\"];\n\n @Watch(\"layout\")\n layoutWatcher(newValue: NavigationToggleWidget[\"layout\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.layout = 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({ 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: NavigationToggleWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady: EventEmitter<{ widget: __esri.NavigationToggle }>;\n\n //--------------------------------------------------------------------------\n //\n // Watchers\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async toggle(): Promise<void> {\n return this.widget?.toggle();\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsNavigationToggle(params);\n\n this.widget = widget;\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<NavigationToggleWidget> {\n const params: Partial<NavigationToggleWidget> = {\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}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface ArcgisPlacement extends Components.ArcgisPlacement, HTMLElement {}
|
|
4
|
+
export const ArcgisPlacement: {
|
|
5
|
+
prototype: ArcgisPlacement;
|
|
6
|
+
new (): ArcgisPlacement;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { r as referenceElementHelper, c as checkForView } from './component-utils.js';
|
|
3
|
+
import { o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
+
|
|
5
|
+
const placementCss = "arcgis-placement{}";
|
|
6
|
+
|
|
7
|
+
const ArcgisPlacement$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisPlacement extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.placementReady = createEvent(this, "placementReady", 7);
|
|
12
|
+
this.referenceElement = undefined;
|
|
13
|
+
this.view = undefined;
|
|
14
|
+
this.position = "bottom-left";
|
|
15
|
+
}
|
|
16
|
+
referenceElementWatcher(newValue) {
|
|
17
|
+
referenceElementHelper(this, newValue);
|
|
18
|
+
}
|
|
19
|
+
positionWatcher(newValue) {
|
|
20
|
+
if (newValue !== undefined) {
|
|
21
|
+
this.view.ui.move(this.childElem, newValue);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//--------------------------------------------------------------------------
|
|
25
|
+
//
|
|
26
|
+
// Lifecycle
|
|
27
|
+
//
|
|
28
|
+
//--------------------------------------------------------------------------
|
|
29
|
+
async componentDidLoad() {
|
|
30
|
+
this.placementReady.emit({ ready: true });
|
|
31
|
+
checkForView(this);
|
|
32
|
+
}
|
|
33
|
+
disconnectedCallback() {
|
|
34
|
+
onDisconnectedHelper(this);
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (h("div", { ref: (el) => (this.childElem = el) }, h("slot", null)));
|
|
38
|
+
}
|
|
39
|
+
get el() { return this; }
|
|
40
|
+
static get watchers() { return {
|
|
41
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
42
|
+
"position": ["positionWatcher"]
|
|
43
|
+
}; }
|
|
44
|
+
static get style() { return placementCss; }
|
|
45
|
+
}, [4, "arcgis-placement", {
|
|
46
|
+
"referenceElement": [1, "reference-element"],
|
|
47
|
+
"view": [16],
|
|
48
|
+
"position": [1]
|
|
49
|
+
}, undefined, {
|
|
50
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
51
|
+
"position": ["positionWatcher"]
|
|
52
|
+
}]);
|
|
53
|
+
function defineCustomElement$1() {
|
|
54
|
+
if (typeof customElements === "undefined") {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const components = ["arcgis-placement"];
|
|
58
|
+
components.forEach(tagName => { switch (tagName) {
|
|
59
|
+
case "arcgis-placement":
|
|
60
|
+
if (!customElements.get(tagName)) {
|
|
61
|
+
customElements.define(tagName, ArcgisPlacement$1);
|
|
62
|
+
}
|
|
63
|
+
break;
|
|
64
|
+
} });
|
|
65
|
+
}
|
|
66
|
+
defineCustomElement$1();
|
|
67
|
+
|
|
68
|
+
const ArcgisPlacement = ArcgisPlacement$1;
|
|
69
|
+
const defineCustomElement = defineCustomElement$1;
|
|
70
|
+
|
|
71
|
+
export { ArcgisPlacement, defineCustomElement };
|
|
72
|
+
|
|
73
|
+
//# sourceMappingURL=arcgis-placement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"arcgis-placement.js","mappings":";;;;AAAA,MAAM,YAAY,GAAG,oBAAoB;;MCgB5BA,iBAAe;;;;;;;oBAoBP,aAAa;;EANhC,uBAAuB,CAAC,QAAyC;IAC/D,sBAAsB,CAAC,IAAW,EAAE,QAAQ,CAAC,CAAC;GAC/C;EAOD,eAAe,CAAC,QAAgB;IAC9B,IAAI,QAAQ,KAAK,SAAS,EAAE;MAC1B,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;KAC7C;GACF;;;;;;EAgBD,MAAM,gBAAgB;IACpB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAE1C,YAAY,CAAC,IAAW,CAAC,CAAC;GAC3B;EAED,oBAAoB;IAClB,oBAAoB,CAAC,IAAW,CAAC,CAAC;GACnC;EAED,MAAM;IACJ,QACE,WAAK,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAoB,CAAC,IACvD,eAAQ,CACJ,EACN;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ArcgisPlacement"],"sources":["src/components/placement/placement.css?tag=arcgis-placement","src/components/placement/placement.tsx"],"sourcesContent":["arcgis-placement {\n /* Component styles go here */\n}\n","import { Component, Element, Event, EventEmitter, h, Prop, VNode, Watch } from \"@stencil/core\";\n\n// arcgis imports\nimport {\n ArcgisReferenceElement,\n BaseComponentElement,\n checkForView,\n referenceElementHelper\n} from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport { ArcGISMapView, ArcGISSceneView } from \"../types\";\n\n@Component({\n tag: \"arcgis-placement\",\n styleUrl: \"placement.css\"\n})\nexport class ArcgisPlacement implements BaseComponentElement {\n @Element() el: HTMLArcgisPlacementElement;\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 as any, newValue);\n }\n\n @Prop() view: ArcGISMapView | ArcGISSceneView;\n\n @Prop() position = \"bottom-left\";\n\n @Watch(\"position\")\n positionWatcher(newValue: string): void {\n if (newValue !== undefined) {\n this.view.ui.move(this.childElem, newValue);\n }\n }\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) placementReady: EventEmitter<{ ready: boolean }>;\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n this.placementReady.emit({ ready: true });\n\n checkForView(this as any);\n }\n\n disconnectedCallback(): void {\n onDisconnectedHelper(this as any);\n }\n\n render(): VNode {\n return (\n <div ref={(el) => (this.childElem = el as HTMLDivElement)}>\n <slot />\n </div>\n );\n }\n}\n"],"version":3}
|