@arcgis/map-components 4.29.0-beta.4 → 4.29.0-beta.41
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 {
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView
|
|
2
|
+
import { Y as newWidgetsSwipe } 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 swipeCss = "arcgis-swipe{}";
|
|
6
7
|
|
|
7
|
-
const ArcgisSwipe$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
const ArcgisSwipe$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisSwipe 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.direction = undefined;
|
|
14
16
|
this.dragLabel = undefined;
|
|
@@ -107,7 +109,7 @@ const ArcgisSwipe$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
107
109
|
"referenceElement": ["referenceElementWatcher"],
|
|
108
110
|
"view": ["viewWatcher"]
|
|
109
111
|
}; }
|
|
110
|
-
static get style() { return
|
|
112
|
+
static get style() { return swipeCss; }
|
|
111
113
|
}, [0, "arcgis-swipe", {
|
|
112
114
|
"referenceElement": [1, "reference-element"],
|
|
113
115
|
"direction": [1],
|
|
@@ -118,6 +120,15 @@ const ArcgisSwipe$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
118
120
|
"view": [1040],
|
|
119
121
|
"position": [1],
|
|
120
122
|
"widget": [1040]
|
|
123
|
+
}, undefined, {
|
|
124
|
+
"direction": ["directionWatcher"],
|
|
125
|
+
"dragLabel": ["dragLabelWatcher"],
|
|
126
|
+
"leadingLayers": ["leadingLayersWatcher"],
|
|
127
|
+
"swipePosition": ["swipePositionWatcher"],
|
|
128
|
+
"trailingLayers": ["trailingLayersWatcher"],
|
|
129
|
+
"position": ["positionWatcher"],
|
|
130
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
131
|
+
"view": ["viewWatcher"]
|
|
121
132
|
}]);
|
|
122
133
|
function defineCustomElement$1() {
|
|
123
134
|
if (typeof customElements === "undefined") {
|
|
@@ -138,3 +149,5 @@ const ArcgisSwipe = ArcgisSwipe$1;
|
|
|
138
149
|
const defineCustomElement = defineCustomElement$1;
|
|
139
150
|
|
|
140
151
|
export { ArcgisSwipe, defineCustomElement };
|
|
152
|
+
|
|
153
|
+
//# sourceMappingURL=arcgis-swipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"arcgis-swipe.js","mappings":";;;;;AAAA,MAAM,QAAQ,GAAG,gBAAgB;;MCoBpBA,aAAW;;;;;IAmCtB,kBAAa,GAAyB,EAAE,CAAC;;;;;;;;oBAJtB,aAAa;;;;;;;;EAqBhC,gBAAgB,CAAC,QAAkC;IACjD,IAAI,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;MACzC,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,QAAQ,CAAC;KAClC;GACF;EAGD,gBAAgB,CAAC,QAAkC;IACjD,IAAI,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;MACzC,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,QAAQ,CAAC;KAClC;GACF;EAGD,oBAAoB,CAAC,QAAsC;IACzD,IAAI,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;MACzC,IAAI,CAAC,MAAM,CAAC,aAAa,GAAG,QAAQ,CAAC;KACtC;GACF;EAGD,oBAAoB,CAAC,QAAiC;IACpD,IAAI,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;MACzC,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;KACjC;GACF;EAGD,qBAAqB,CAAC,QA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AAI,IAAI,CAAC,IAAI,EAAE;MACb,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;KACzB;IAED,OAAO,MAAM,CAAC;GACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ArcgisSwipe"],"sources":["src/components/swipe/swipe.css?tag=arcgis-swipe","src/components/swipe/swipe.tsx"],"sourcesContent":["arcgis-swipe {\n /* Component styles go here */\n}\n","import { Component, Element, Event, EventEmitter, h, Prop, Watch, VNode } from \"@stencil/core\";\n\n// arcgis imports\nimport { newWidgetsSwipe } from \"@arcgis/core-adapter\";\nimport type Swipe from \"@arcgis/core/widgets/Swipe\";\nimport {\n ArcgisReferenceElement,\n checkForView,\n referenceElementHelper,\n WidgetElement\n} from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport { ArcGISMapView } from \"../types\";\n\nexport type SwipeWidget = InstanceType<typeof Swipe>;\n\n@Component({\n tag: \"arcgis-swipe\",\n styleUrl: \"swipe.css\"\n})\nexport class ArcgisSwipe 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 @Prop() direction: SwipeWidget[\"direction\"];\n\n @Prop() dragLabel: SwipeWidget[\"dragLabel\"];\n\n @Prop() leadingLayers: SwipeWidget[\"leadingLayers\"];\n\n @Prop() swipePosition: SwipeWidget[\"position\"];\n\n @Prop() trailingLayers: SwipeWidget[\"trailingLayers\"];\n\n @Prop({ mutable: true }) view: ArcGISMapView;\n\n @Prop() position = \"bottom-left\";\n\n @Prop({ mutable: true }) widget: SwipeWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady: EventEmitter<{ widget: __esri.Swipe }>;\n\n //--------------------------------------------------------------------------\n //\n // Watchers\n //\n //--------------------------------------------------------------------------\n\n @Watch(\"direction\")\n directionWatcher(newValue: SwipeWidget[\"direction\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.direction = newValue;\n }\n }\n\n @Watch(\"dragLabel\")\n dragLabelWatcher(newValue: SwipeWidget[\"dragLabel\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.dragLabel = newValue;\n }\n }\n\n @Watch(\"leadingLayers\")\n leadingLayersWatcher(newValue: SwipeWidget[\"leadingLayers\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.leadingLayers = newValue;\n }\n }\n\n @Watch(\"swipePosition\")\n swipePositionWatcher(newValue: SwipeWidget[\"position\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.position = newValue;\n }\n }\n\n @Watch(\"trailingLayers\")\n trailingLayersWatcher(newValue: SwipeWidget[\"trailingLayers\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.trailingLayers = newValue;\n }\n }\n\n @Watch(\"position\")\n positionWatcher(newValue: string): void {\n if (newValue !== undefined && this.widget) {\n if (typeof this.view !== \"string\") {\n this.view.ui.move(this.childElem, newValue);\n }\n }\n }\n\n @Watch(\"referenceElement\")\n referenceElementWatcher(newValue: ArcgisReferenceElement | string): void {\n referenceElementHelper(this, newValue);\n }\n\n @Watch(\"view\")\n viewWatcher(newValue: ArcGISMapView): void {\n if (newValue !== undefined && this.widget) {\n this.widget.view = newValue;\n }\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsSwipe(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<SwipeWidget> {\n const params: Partial<SwipeWidget> = {\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,31 +1,38 @@
|
|
|
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 { Z as newWidgetsTableList, 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 tableListCss = "arcgis-table-list{}";
|
|
7
8
|
|
|
8
|
-
const ArcgisTableList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
const ArcgisTableList$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisTableList extends HTMLElement {
|
|
9
10
|
constructor() {
|
|
10
11
|
super();
|
|
11
12
|
this.__registerHost();
|
|
12
13
|
this.triggerAction = createEvent(this, "triggerAction", 7);
|
|
13
14
|
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
15
|
+
this._watchHandles = [];
|
|
14
16
|
this.referenceElement = undefined;
|
|
17
|
+
this.listItemCreatedFunction = undefined;
|
|
15
18
|
this.multipleSelectionEnabled = false;
|
|
16
19
|
this.selectionEnabled = true;
|
|
17
20
|
this.selectedItems = undefined;
|
|
18
21
|
this.tableItems = undefined;
|
|
22
|
+
this.visibleElements = undefined;
|
|
19
23
|
this.view = undefined;
|
|
20
24
|
this.position = "bottom-left";
|
|
21
25
|
this.expandable = false;
|
|
22
26
|
this.widget = undefined;
|
|
23
27
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
referenceElementWatcher(newValue) {
|
|
29
|
+
referenceElementHelper(this, newValue);
|
|
30
|
+
}
|
|
31
|
+
listItemCreatedFunctionWatcher(newValue) {
|
|
32
|
+
if (this.widget) {
|
|
33
|
+
this.widget.listItemCreatedFunction = newValue;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
29
36
|
multipleSelectionEnabledWatcher(newValue) {
|
|
30
37
|
if (newValue !== undefined && this.widget) {
|
|
31
38
|
this.widget.multipleSelectionEnabled = newValue;
|
|
@@ -36,21 +43,21 @@ const ArcgisTableList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
36
43
|
this.widget.selectionEnabled = newValue;
|
|
37
44
|
}
|
|
38
45
|
}
|
|
39
|
-
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
this.view.ui.move(this.childElem, newValue);
|
|
43
|
-
}
|
|
46
|
+
visibleElementsWatcher(value) {
|
|
47
|
+
if (this.widget) {
|
|
48
|
+
this.widget.visibleElements = value;
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
|
-
referenceElementWatcher(newValue) {
|
|
47
|
-
referenceElementHelper(this, newValue);
|
|
48
|
-
}
|
|
49
51
|
viewWatcher(newValue) {
|
|
50
52
|
if (newValue !== undefined && this.widget) {
|
|
51
53
|
this.widget.map = newValue.map;
|
|
52
54
|
}
|
|
53
55
|
}
|
|
56
|
+
positionWatcher(newValue) {
|
|
57
|
+
if (newValue !== undefined && this.widget) {
|
|
58
|
+
this.view.ui.move(this.childElem, newValue);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
54
61
|
//--------------------------------------------------------------------------
|
|
55
62
|
//
|
|
56
63
|
// Lifecycle
|
|
@@ -81,15 +88,25 @@ const ArcgisTableList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
81
88
|
//--------------------------------------------------------------------------
|
|
82
89
|
async _addWatchers() {
|
|
83
90
|
const { watch } = await importCoreReactiveUtils();
|
|
84
|
-
watch(() => this.widget.selectedItems, (value) => (this.selectedItems = value));
|
|
85
|
-
watch(() => this.widget.tableItems, (value) => (this.tableItems = value));
|
|
91
|
+
addHandles(this, watch(() => this.widget.selectedItems, (value) => (this.selectedItems = value)));
|
|
92
|
+
addHandles(this, watch(() => this.widget.tableItems, (value) => (this.tableItems = value)));
|
|
86
93
|
}
|
|
87
94
|
_createParams() {
|
|
88
95
|
const params = {
|
|
89
|
-
container: this.childElem
|
|
90
|
-
multipleSelectionEnabled: this.multipleSelectionEnabled,
|
|
91
|
-
selectionEnabled: this.selectionEnabled
|
|
96
|
+
container: this.childElem
|
|
92
97
|
};
|
|
98
|
+
if (this.listItemCreatedFunction) {
|
|
99
|
+
params.listItemCreatedFunction = this.listItemCreatedFunction;
|
|
100
|
+
}
|
|
101
|
+
if (this.multipleSelectionEnabled !== undefined) {
|
|
102
|
+
params.multipleSelectionEnabled = this.multipleSelectionEnabled;
|
|
103
|
+
}
|
|
104
|
+
if (this.selectionEnabled !== undefined) {
|
|
105
|
+
params.selectionEnabled = this.selectionEnabled;
|
|
106
|
+
}
|
|
107
|
+
if (this.visibleElements) {
|
|
108
|
+
params.visibleElements = this.visibleElements;
|
|
109
|
+
}
|
|
93
110
|
if (this.view) {
|
|
94
111
|
params.map = this.view.map;
|
|
95
112
|
}
|
|
@@ -103,23 +120,35 @@ const ArcgisTableList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
103
120
|
}
|
|
104
121
|
get el() { return this; }
|
|
105
122
|
static get watchers() { return {
|
|
123
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
124
|
+
"listItemCreatedFunction": ["listItemCreatedFunctionWatcher"],
|
|
106
125
|
"multipleSelectionEnabled": ["multipleSelectionEnabledWatcher"],
|
|
107
126
|
"selectionEnabled": ["selectionEnabledWatcher"],
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
127
|
+
"visibleElements": ["visibleElementsWatcher"],
|
|
128
|
+
"view": ["viewWatcher"],
|
|
129
|
+
"position": ["positionWatcher"]
|
|
111
130
|
}; }
|
|
112
|
-
static get style() { return
|
|
131
|
+
static get style() { return tableListCss; }
|
|
113
132
|
}, [0, "arcgis-table-list", {
|
|
114
133
|
"referenceElement": [1, "reference-element"],
|
|
134
|
+
"listItemCreatedFunction": [16],
|
|
115
135
|
"multipleSelectionEnabled": [4, "multiple-selection-enabled"],
|
|
116
136
|
"selectionEnabled": [4, "selection-enabled"],
|
|
117
137
|
"selectedItems": [1040],
|
|
118
138
|
"tableItems": [1040],
|
|
139
|
+
"visibleElements": [16],
|
|
119
140
|
"view": [1040],
|
|
120
141
|
"position": [1],
|
|
121
142
|
"expandable": [4],
|
|
122
143
|
"widget": [1040]
|
|
144
|
+
}, undefined, {
|
|
145
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
146
|
+
"listItemCreatedFunction": ["listItemCreatedFunctionWatcher"],
|
|
147
|
+
"multipleSelectionEnabled": ["multipleSelectionEnabledWatcher"],
|
|
148
|
+
"selectionEnabled": ["selectionEnabledWatcher"],
|
|
149
|
+
"visibleElements": ["visibleElementsWatcher"],
|
|
150
|
+
"view": ["viewWatcher"],
|
|
151
|
+
"position": ["positionWatcher"]
|
|
123
152
|
}]);
|
|
124
153
|
function defineCustomElement$1() {
|
|
125
154
|
if (typeof customElements === "undefined") {
|
|
@@ -145,3 +174,5 @@ const ArcgisTableList = ArcgisTableList$1;
|
|
|
145
174
|
const defineCustomElement = defineCustomElement$1;
|
|
146
175
|
|
|
147
176
|
export { ArcgisTableList, defineCustomElement };
|
|
177
|
+
|
|
178
|
+
//# sourceMappingURL=arcgis-table-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"arcgis-table-list.js","mappings":";;;;;;AAAA,MAAM,YAAY,GAAG,qBAAqB;;MCgB7BA,iBAAe;;;;;;IAwF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;KAC1B,CAAC;IAEF,IAAI,IAAI,CAAC,uBAAuB,EAAE;MAChC,MAAM,CAAC,uBAAuB,GAAG,IAAI,CAAC,uBAAuB,CAAC;KAC/D;IAED,IAAI,IAAI,CAAC,wBAAwB,KAAK,SAAS,EAAE;MAC/C,MAAM,CAAC,wBAAwB,GAAG,IAAI,CAAC,wBAAwB,CAAC;KACjE;IAED,IAAI,IAAI,CAAC,gBAAgB,KAAK,SAAS,EAAE;MACvC,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;KACjD;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,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;KAC5B;IAED,OAAO,MAAM,CAAC;GACf;EAEO,WAAW,CAAC,MAAuB;IACzC,MAAM,aAAa,GAAG,MAAM,CAAC,EAAE,CAAC,gBAAgB,EAAE,CAAC,CAAC;MAClD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAC5B,CAAC,CAAC;IACH,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;GAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ArcgisTableList"],"sources":["src/components/table-list/table-list.css?tag=arcgis-table-list","src/components/table-list/table-list.tsx"],"sourcesContent":["arcgis-table-list {\n /* Component styles go here */\n}\n","import { Component, Element, Event, EventEmitter, Prop, VNode, Watch, h } from \"@stencil/core\";\n\n// arcgis imports\nimport { importCoreReactiveUtils, newWidgetsTableList } from \"@arcgis/core-adapter\";\nimport type TableList from \"@arcgis/core/widgets/TableList\";\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 TableListWidget = InstanceType<typeof TableList>;\n\n@Component({\n tag: \"arcgis-table-list\",\n styleUrl: \"table-list.css\"\n})\nexport class ArcgisTableList 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() listItemCreatedFunction: TableListWidget[\"listItemCreatedFunction\"];\n\n @Watch(\"listItemCreatedFunction\")\n listItemCreatedFunctionWatcher(newValue: TableListWidget[\"listItemCreatedFunction\"]): void {\n if (this.widget) {\n this.widget.listItemCreatedFunction = newValue;\n }\n }\n\n @Prop() multipleSelectionEnabled: TableListWidget[\"multipleSelectionEnabled\"] = false;\n\n @Watch(\"multipleSelectionEnabled\")\n multipleSelectionEnabledWatcher(newValue: TableListWidget[\"multipleSelectionEnabled\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.multipleSelectionEnabled = newValue;\n }\n }\n\n @Prop() selectionEnabled: TableListWidget[\"selectionEnabled\"] = true;\n\n @Watch(\"selectionEnabled\")\n selectionEnabledWatcher(newValue: TableListWidget[\"selectionEnabled\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.selectionEnabled = newValue;\n }\n }\n\n @Prop({ mutable: true }) selectedItems: TableListWidget[\"selectedItems\"];\n\n @Prop({ mutable: true }) tableItems: TableListWidget[\"tableItems\"];\n\n @Prop() visibleElements: TableListWidget[\"visibleElements\"];\n\n @Watch(\"visibleElements\")\n visibleElementsWatcher(value: TableListWidget[\"visibleElements\"]): void {\n if (this.widget) {\n this.widget.visibleElements = value;\n }\n }\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.map = newValue.map;\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 }) widget: TableListWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) triggerAction: EventEmitter<__esri.TableListTriggerActionEvent>;\n\n @Event({ cancelable: true }) widgetReady: EventEmitter<{ widget: __esri.TableList }>;\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsTableList(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 this._hookEvents(this.widget);\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.selectedItems,\n (value) => (this.selectedItems = value)\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.tableItems,\n (value) => (this.tableItems = value)\n )\n );\n }\n\n private _createParams(): Partial<TableListWidget> {\n const params: Partial<TableListWidget> = {\n container: this.childElem\n };\n\n if (this.listItemCreatedFunction) {\n params.listItemCreatedFunction = this.listItemCreatedFunction;\n }\n\n if (this.multipleSelectionEnabled !== undefined) {\n params.multipleSelectionEnabled = this.multipleSelectionEnabled;\n }\n\n if (this.selectionEnabled !== undefined) {\n params.selectionEnabled = this.selectionEnabled;\n }\n\n if (this.visibleElements) {\n params.visibleElements = this.visibleElements;\n }\n\n if (this.view) {\n params.map = this.view.map;\n }\n\n return params;\n }\n\n private _hookEvents(widget: TableListWidget): void {\n const triggerHandle = widget.on(\"trigger-action\", (e) => {\n this.triggerAction.emit(e);\n });\n widget.own(triggerHandle);\n }\n}\n"],"version":3}
|
|
@@ -1,16 +1,18 @@
|
|
|
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 { _ as newWidgetsTimeSlider, 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 timeSliderCss = "arcgis-time-slider{}";
|
|
7
8
|
|
|
8
|
-
const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisTimeSlider extends HTMLElement {
|
|
9
10
|
constructor() {
|
|
10
11
|
super();
|
|
11
12
|
this.__registerHost();
|
|
12
13
|
this.triggerAction = createEvent(this, "triggerAction", 7);
|
|
13
14
|
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
15
|
+
this._watchHandles = [];
|
|
14
16
|
this.referenceElement = undefined;
|
|
15
17
|
this.actions = undefined;
|
|
16
18
|
this.effectiveStops = undefined;
|
|
@@ -23,28 +25,27 @@ const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
23
25
|
this.tickConfigs = undefined;
|
|
24
26
|
this.timeExtent = undefined;
|
|
25
27
|
this.timeVisible = undefined;
|
|
28
|
+
this.timeZone = undefined;
|
|
26
29
|
this.view = undefined;
|
|
27
30
|
this.position = "bottom-left";
|
|
28
31
|
this.expandable = false;
|
|
29
32
|
this.widget = undefined;
|
|
30
33
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
//
|
|
35
|
-
//--------------------------------------------------------------------------
|
|
34
|
+
referenceElementWatcher(newValue) {
|
|
35
|
+
referenceElementHelper(this, newValue);
|
|
36
|
+
}
|
|
36
37
|
actionsWatcher(newValue) {
|
|
37
|
-
if (
|
|
38
|
+
if (this.widget) {
|
|
38
39
|
this.widget.actions = newValue;
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
fullTimeExtentWatcher(newValue) {
|
|
42
|
-
if (
|
|
43
|
+
if (this.widget) {
|
|
43
44
|
this.widget.fullTimeExtent = newValue;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
layoutWatcher(newValue) {
|
|
47
|
-
if (
|
|
48
|
+
if (this.widget) {
|
|
48
49
|
this.widget.layout = newValue;
|
|
49
50
|
}
|
|
50
51
|
}
|
|
@@ -54,7 +55,7 @@ const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
modeWatcher(newValue) {
|
|
57
|
-
if (
|
|
58
|
+
if (this.widget) {
|
|
58
59
|
this.widget.mode = newValue;
|
|
59
60
|
}
|
|
60
61
|
}
|
|
@@ -64,17 +65,17 @@ const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
stopsWatcher(newValue) {
|
|
67
|
-
if (
|
|
68
|
+
if (this.widget) {
|
|
68
69
|
this.widget.stops = newValue;
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
tickConfigsWatcher(newValue) {
|
|
72
|
-
if (
|
|
73
|
+
if (this.widget) {
|
|
73
74
|
this.widget.tickConfigs = newValue;
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
timeExtentWatcher(newValue) {
|
|
77
|
-
if (
|
|
78
|
+
if (this.widget) {
|
|
78
79
|
this.widget.timeExtent = newValue;
|
|
79
80
|
}
|
|
80
81
|
}
|
|
@@ -83,21 +84,21 @@ const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
83
84
|
this.widget.timeVisible = newValue;
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
-
if (
|
|
88
|
-
|
|
89
|
-
this.view.ui.move(this.childElem, newValue);
|
|
90
|
-
}
|
|
87
|
+
timeZoneWatcher(newValue) {
|
|
88
|
+
if (this.widget) {
|
|
89
|
+
this.widget.timeZone = newValue;
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
|
-
referenceElementWatcher(newValue) {
|
|
94
|
-
referenceElementHelper(this, newValue);
|
|
95
|
-
}
|
|
96
92
|
viewWatcher(newValue) {
|
|
97
93
|
if (newValue !== undefined && this.widget) {
|
|
98
94
|
this.widget.view = newValue;
|
|
99
95
|
}
|
|
100
96
|
}
|
|
97
|
+
positionWatcher(newValue) {
|
|
98
|
+
if (newValue !== undefined && this.widget) {
|
|
99
|
+
this.view.ui.move(this.childElem, newValue);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
101
102
|
//--------------------------------------------------------------------------
|
|
102
103
|
//
|
|
103
104
|
// Methods
|
|
@@ -145,9 +146,9 @@ const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
145
146
|
//--------------------------------------------------------------------------
|
|
146
147
|
async _addWatchers() {
|
|
147
148
|
const { watch } = await importCoreReactiveUtils();
|
|
148
|
-
watch(() => this.widget.effectiveStops, (value) => (this.effectiveStops = value), {
|
|
149
|
+
addHandles(this, watch(() => this.widget.effectiveStops, (value) => (this.effectiveStops = value), {
|
|
149
150
|
initial: true
|
|
150
|
-
});
|
|
151
|
+
}));
|
|
151
152
|
}
|
|
152
153
|
_createParams() {
|
|
153
154
|
const params = {
|
|
@@ -183,6 +184,9 @@ const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
183
184
|
if (this.timeVisible !== undefined) {
|
|
184
185
|
params.timeVisible = this.timeVisible;
|
|
185
186
|
}
|
|
187
|
+
if (this.timeZone) {
|
|
188
|
+
params.timeZone = this.timeZone;
|
|
189
|
+
}
|
|
186
190
|
if (this.view) {
|
|
187
191
|
params.view = this.view;
|
|
188
192
|
}
|
|
@@ -193,6 +197,7 @@ const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
193
197
|
}
|
|
194
198
|
get el() { return this; }
|
|
195
199
|
static get watchers() { return {
|
|
200
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
196
201
|
"actions": ["actionsWatcher"],
|
|
197
202
|
"fullTimeExtent": ["fullTimeExtentWatcher"],
|
|
198
203
|
"layout": ["layoutWatcher"],
|
|
@@ -203,11 +208,11 @@ const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
203
208
|
"tickConfigs": ["tickConfigsWatcher"],
|
|
204
209
|
"timeExtent": ["timeExtentWatcher"],
|
|
205
210
|
"timeVisible": ["timeVisibleWatcher"],
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
211
|
+
"timeZone": ["timeZoneWatcher"],
|
|
212
|
+
"view": ["viewWatcher"],
|
|
213
|
+
"position": ["positionWatcher"]
|
|
209
214
|
}; }
|
|
210
|
-
static get style() { return
|
|
215
|
+
static get style() { return timeSliderCss; }
|
|
211
216
|
}, [0, "arcgis-time-slider", {
|
|
212
217
|
"referenceElement": [1, "reference-element"],
|
|
213
218
|
"actions": [16],
|
|
@@ -221,6 +226,7 @@ const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
221
226
|
"tickConfigs": [16],
|
|
222
227
|
"timeExtent": [16],
|
|
223
228
|
"timeVisible": [4, "time-visible"],
|
|
229
|
+
"timeZone": [1, "time-zone"],
|
|
224
230
|
"view": [1040],
|
|
225
231
|
"position": [1],
|
|
226
232
|
"expandable": [4],
|
|
@@ -229,6 +235,21 @@ const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
229
235
|
"play": [64],
|
|
230
236
|
"previous": [64],
|
|
231
237
|
"stop": [64]
|
|
238
|
+
}, undefined, {
|
|
239
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
240
|
+
"actions": ["actionsWatcher"],
|
|
241
|
+
"fullTimeExtent": ["fullTimeExtentWatcher"],
|
|
242
|
+
"layout": ["layoutWatcher"],
|
|
243
|
+
"loop": ["loopWatcher"],
|
|
244
|
+
"mode": ["modeWatcher"],
|
|
245
|
+
"playRate": ["playRateWatcher"],
|
|
246
|
+
"stops": ["stopsWatcher"],
|
|
247
|
+
"tickConfigs": ["tickConfigsWatcher"],
|
|
248
|
+
"timeExtent": ["timeExtentWatcher"],
|
|
249
|
+
"timeVisible": ["timeVisibleWatcher"],
|
|
250
|
+
"timeZone": ["timeZoneWatcher"],
|
|
251
|
+
"view": ["viewWatcher"],
|
|
252
|
+
"position": ["positionWatcher"]
|
|
232
253
|
}]);
|
|
233
254
|
function defineCustomElement$1() {
|
|
234
255
|
if (typeof customElements === "undefined") {
|
|
@@ -254,3 +275,5 @@ const ArcgisTimeSlider = ArcgisTimeSlider$1;
|
|
|
254
275
|
const defineCustomElement = defineCustomElement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,GAAG,IAAI,CAAC,QAAQ,CAAC;KACjC;IAED,IAAI,IAAI,CAAC,IAAI,EAAE;MACb,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;KACzB;IAED,OAAO,MAAM,CAAC;GACf;EAEO,MAAM,YAAY;IACxB,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,gBAAgB,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;GACtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ArcgisTimeSlider"],"sources":["src/components/time-slider/time-slider.css?tag=arcgis-time-slider","src/components/time-slider/time-slider.tsx"],"sourcesContent":["arcgis-time-slider {\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, newWidgetsTimeSlider } from \"@arcgis/core-adapter\";\nimport type TimeSlider from \"@arcgis/core/widgets/TimeSlider\";\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 TimeSliderWidget = InstanceType<typeof TimeSlider>;\n\n@Component({\n tag: \"arcgis-time-slider\",\n styleUrl: \"time-slider.css\"\n})\nexport class ArcgisTimeSlider 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() actions: TimeSliderWidget[\"actions\"];\n\n @Watch(\"actions\")\n actionsWatcher(newValue: TimeSliderWidget[\"actions\"]): void {\n if (this.widget) {\n this.widget.actions = newValue;\n }\n }\n\n @Prop({ mutable: true }) effectiveStops: TimeSliderWidget[\"effectiveStops\"];\n\n @Prop() fullTimeExtent: TimeSliderWidget[\"fullTimeExtent\"];\n\n @Watch(\"fullTimeExtent\")\n fullTimeExtentWatcher(newValue: TimeSliderWidget[\"fullTimeExtent\"]): void {\n if (this.widget) {\n this.widget.fullTimeExtent = newValue;\n }\n }\n\n @Prop() layout: TimeSliderWidget[\"layout\"];\n\n @Watch(\"layout\")\n layoutWatcher(newValue: TimeSliderWidget[\"layout\"]): void {\n if (this.widget) {\n this.widget.layout = newValue;\n }\n }\n\n @Prop() loop: TimeSliderWidget[\"loop\"];\n\n @Watch(\"loop\")\n loopWatcher(newValue: TimeSliderWidget[\"loop\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.loop = newValue;\n }\n }\n\n @Prop() mode: TimeSliderWidget[\"mode\"];\n\n @Watch(\"mode\")\n modeWatcher(newValue: TimeSliderWidget[\"mode\"]): void {\n if (this.widget) {\n this.widget.mode = newValue;\n }\n }\n\n @Prop() playRate: TimeSliderWidget[\"playRate\"];\n\n @Watch(\"playRate\")\n playRateWatcher(newValue: TimeSliderWidget[\"playRate\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.playRate = newValue;\n }\n }\n\n @Prop() stops: TimeSliderWidget[\"stops\"];\n\n @Watch(\"stops\")\n stopsWatcher(newValue: TimeSliderWidget[\"stops\"]): void {\n if (this.widget) {\n this.widget.stops = newValue;\n }\n }\n\n @Prop() tickConfigs: TimeSliderWidget[\"tickConfigs\"];\n\n @Watch(\"tickConfigs\")\n tickConfigsWatcher(newValue: TimeSliderWidget[\"tickConfigs\"]): void {\n if (this.widget) {\n this.widget.tickConfigs = newValue;\n }\n }\n\n @Prop() timeExtent: TimeSliderWidget[\"timeExtent\"];\n\n @Watch(\"timeExtent\")\n timeExtentWatcher(newValue: TimeSliderWidget[\"timeExtent\"]): void {\n if (this.widget) {\n this.widget.timeExtent = newValue;\n }\n }\n\n @Prop() timeVisible: TimeSliderWidget[\"timeVisible\"];\n\n @Watch(\"timeVisible\")\n timeVisibleWatcher(newValue: TimeSliderWidget[\"timeVisible\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.timeVisible = newValue;\n }\n }\n\n @Prop() timeZone: TimeSliderWidget[\"timeZone\"];\n\n @Watch(\"timeZone\")\n timeZoneWatcher(newValue: TimeSliderWidget[\"timeZone\"]): void {\n if (this.widget) {\n this.widget.timeZone = newValue;\n }\n }\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() 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 }) widget: TimeSliderWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) triggerAction: EventEmitter<__esri.TimeSliderTriggerActionEvent>;\n\n @Event({ cancelable: true }) widgetReady: EventEmitter<{ widget: __esri.TimeSlider }>;\n\n //--------------------------------------------------------------------------\n //\n // Methods\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async next(): Promise<void> {\n return this.widget?.next();\n }\n\n @Method()\n async play(): Promise<void> {\n return this.widget?.play();\n }\n\n @Method()\n async previous(): Promise<void> {\n return this.widget?.previous();\n }\n\n @Method()\n async stop(): Promise<void> {\n return this.widget?.stop();\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsTimeSlider(params);\n\n this.widget = widget;\n\n await this._addWatchers();\n\n this._proxyEvents();\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.effectiveStops,\n (value) => (this.effectiveStops = value),\n {\n initial: true\n }\n )\n );\n }\n\n private _createParams(): Partial<TimeSliderWidget> {\n const params: Partial<TimeSliderWidget> = {\n container: this.childElem\n };\n\n if (this.actions !== undefined) {\n params.actions = this.actions;\n }\n\n if (this.fullTimeExtent !== undefined) {\n params.fullTimeExtent = this.fullTimeExtent;\n }\n\n if (this.layout !== undefined) {\n params.layout = this.layout;\n }\n\n if (this.loop !== undefined) {\n params.loop = this.loop;\n }\n\n if (this.mode !== undefined) {\n params.mode = this.mode;\n }\n\n if (this.playRate !== undefined) {\n params.playRate = this.playRate;\n }\n\n if (this.stops !== undefined) {\n params.stops = this.stops;\n }\n\n if (this.tickConfigs !== undefined) {\n params.tickConfigs = this.tickConfigs;\n }\n\n if (this.timeExtent !== undefined) {\n params.timeExtent = this.timeExtent;\n }\n\n if (this.timeVisible !== undefined) {\n params.timeVisible = this.timeVisible;\n }\n\n if (this.timeZone) {\n params.timeZone = this.timeZone;\n }\n\n if (this.view) {\n params.view = this.view;\n }\n\n return params;\n }\n\n private async _proxyEvents() {\n this.widget?.on(\"trigger-action\", (e) => this.triggerAction.emit(e));\n }\n}\n"],"version":3}
|
|
@@ -1,38 +1,31 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView,
|
|
2
|
+
import { $ as newWidgetsTrack, 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';
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
+
const trackCss = "";
|
|
6
7
|
|
|
7
|
-
const ArcgisTrack$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
const ArcgisTrack$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisTrack extends HTMLElement {
|
|
8
9
|
constructor() {
|
|
9
10
|
super();
|
|
10
11
|
this.__registerHost();
|
|
11
12
|
this.trackComplete = createEvent(this, "trackComplete", 7);
|
|
12
13
|
this.trackError = createEvent(this, "trackError", 7);
|
|
13
14
|
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
15
|
+
this._watchHandles = [];
|
|
14
16
|
this.referenceElement = undefined;
|
|
15
17
|
this.geolocationOptions = undefined;
|
|
16
18
|
this.goToLocationEnabled = undefined;
|
|
17
19
|
this.graphic = undefined;
|
|
18
20
|
this.scale = undefined;
|
|
19
21
|
this.tracking = undefined;
|
|
20
|
-
this.
|
|
22
|
+
this.rotationEnabled = undefined;
|
|
21
23
|
this.position = "bottom-left";
|
|
22
24
|
this.view = undefined;
|
|
23
25
|
this.widget = undefined;
|
|
24
26
|
}
|
|
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
|
-
}
|
|
27
|
+
referenceElementWatcher(newValue) {
|
|
28
|
+
referenceElementHelper(this, newValue);
|
|
36
29
|
}
|
|
37
30
|
geolocationOptionsWatcher(newValue) {
|
|
38
31
|
if (newValue !== undefined && this.widget) {
|
|
@@ -45,7 +38,7 @@ const ArcgisTrack$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
45
38
|
}
|
|
46
39
|
}
|
|
47
40
|
graphicWatcher(newValue) {
|
|
48
|
-
if (
|
|
41
|
+
if (this.widget) {
|
|
49
42
|
this.widget.graphic = newValue;
|
|
50
43
|
}
|
|
51
44
|
}
|
|
@@ -54,13 +47,15 @@ const ArcgisTrack$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
54
47
|
this.widget.scale = newValue;
|
|
55
48
|
}
|
|
56
49
|
}
|
|
57
|
-
|
|
50
|
+
rotationEnabledWatcher(newValue) {
|
|
58
51
|
if (newValue !== undefined && this.widget) {
|
|
59
|
-
this.widget.
|
|
52
|
+
this.widget.rotationEnabled = newValue;
|
|
60
53
|
}
|
|
61
54
|
}
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
positionWatcher(newValue) {
|
|
56
|
+
if (newValue !== undefined && this.widget) {
|
|
57
|
+
this.view.ui.move(this.childElem, newValue);
|
|
58
|
+
}
|
|
64
59
|
}
|
|
65
60
|
viewWatcher(newValue) {
|
|
66
61
|
if (newValue !== undefined && this.widget) {
|
|
@@ -94,9 +89,9 @@ const ArcgisTrack$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
94
89
|
//--------------------------------------------------------------------------
|
|
95
90
|
async _addWatchers() {
|
|
96
91
|
const { watch } = await importCoreReactiveUtils();
|
|
97
|
-
watch(() => this.widget.tracking, (value) => (this.tracking = value), {
|
|
92
|
+
addHandles(this, watch(() => this.widget.tracking, (value) => (this.tracking = value), {
|
|
98
93
|
initial: true
|
|
99
|
-
});
|
|
94
|
+
}));
|
|
100
95
|
}
|
|
101
96
|
_createParams() {
|
|
102
97
|
const params = {
|
|
@@ -111,8 +106,8 @@ const ArcgisTrack$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
111
106
|
if (this.graphic !== undefined) {
|
|
112
107
|
params.graphic = this.graphic;
|
|
113
108
|
}
|
|
114
|
-
if (this.
|
|
115
|
-
params.
|
|
109
|
+
if (this.rotationEnabled !== undefined) {
|
|
110
|
+
params.rotationEnabled = this.rotationEnabled;
|
|
116
111
|
}
|
|
117
112
|
if (this.scale !== undefined) {
|
|
118
113
|
params.scale = this.scale;
|
|
@@ -128,16 +123,16 @@ const ArcgisTrack$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
128
123
|
}
|
|
129
124
|
get el() { return this; }
|
|
130
125
|
static get watchers() { return {
|
|
131
|
-
"
|
|
126
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
132
127
|
"geolocationOptions": ["geolocationOptionsWatcher"],
|
|
133
128
|
"goToLocationEnabled": ["goToLocationEnabledWatcher"],
|
|
134
129
|
"graphic": ["graphicWatcher"],
|
|
135
130
|
"scale": ["scaleWatcher"],
|
|
136
|
-
"
|
|
137
|
-
"
|
|
131
|
+
"rotationEnabled": ["rotationEnabledWatcher"],
|
|
132
|
+
"position": ["positionWatcher"],
|
|
138
133
|
"view": ["viewWatcher"]
|
|
139
134
|
}; }
|
|
140
|
-
static get style() { return
|
|
135
|
+
static get style() { return trackCss; }
|
|
141
136
|
}, [0, "arcgis-track", {
|
|
142
137
|
"referenceElement": [1, "reference-element"],
|
|
143
138
|
"geolocationOptions": [8, "geolocation-options"],
|
|
@@ -145,10 +140,19 @@ const ArcgisTrack$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
145
140
|
"graphic": [16],
|
|
146
141
|
"scale": [2],
|
|
147
142
|
"tracking": [1540],
|
|
148
|
-
"
|
|
143
|
+
"rotationEnabled": [4, "rotation-enabled"],
|
|
149
144
|
"position": [1],
|
|
150
145
|
"view": [1040],
|
|
151
146
|
"widget": [1040]
|
|
147
|
+
}, undefined, {
|
|
148
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
149
|
+
"geolocationOptions": ["geolocationOptionsWatcher"],
|
|
150
|
+
"goToLocationEnabled": ["goToLocationEnabledWatcher"],
|
|
151
|
+
"graphic": ["graphicWatcher"],
|
|
152
|
+
"scale": ["scaleWatcher"],
|
|
153
|
+
"rotationEnabled": ["rotationEnabledWatcher"],
|
|
154
|
+
"position": ["positionWatcher"],
|
|
155
|
+
"view": ["viewWatcher"]
|
|
152
156
|
}]);
|
|
153
157
|
function defineCustomElement$1() {
|
|
154
158
|
if (typeof customElements === "undefined") {
|
|
@@ -169,3 +173,5 @@ const ArcgisTrack = ArcgisTrack$1;
|
|
|
169
173
|
const defineCustomElement = defineCustomElement$1;
|
|
170
174
|
|
|
171
175
|
export { ArcgisTrack, defineCustomElement };
|
|
176
|
+
|
|
177
|
+
//# sourceMappingURL=arcgis-track.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"arcgis-track.js","mappings":";;;;;AAAA,MAAM,QAAQ,GAAG,EAAE;;MCsBNA,aAAW;;;;;;;IA2FtB,kBAAa,GAAyB,EAAE,CAAC;;;;;;;;oBApBtB,aAAa;;;;EAnDhC,uBAAuB,CAAC,QAAyC;IAC/D,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;GACxC;EAKD,yBAAyB,CAAC,QAA2C;IACnE,IAAI,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;MACzC,IAAI,CAAC,MAAM,CAAC,kBAAkB,GAAG,QAAQ,CAAC;KAC3C;GACF;EAKD,0BAA0B,CAAC,QAA4C;IACrE,IAAI,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;MACzC,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,MAAM,CAAC;GACf;EAEO,YAAY;IAClB,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3D,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;GAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ArcgisTrack"],"sources":["src/components/track/track.css?tag=arcgis-track","src/components/track/track.tsx"],"sourcesContent":["","import { Component, Element, Event, EventEmitter, Prop, VNode, Watch, h } from \"@stencil/core\";\n\n// arcgis imports\nimport { importCoreReactiveUtils, newWidgetsTrack } from \"@arcgis/core-adapter\";\nimport type Track from \"@arcgis/core/widgets/Track\";\nimport {\n ArcgisReferenceElement,\n WidgetElement,\n addHandles,\n checkForView,\n referenceElementHelper\n} from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport { ArcGISMapView, ArcGISSceneView } from \"../types\";\n\nexport type TrackWidget = InstanceType<typeof Track>;\n\n@Component({\n tag: \"arcgis-track\",\n styleUrl: \"track.css\",\n shadow: false\n})\nexport class ArcgisTrack 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() geolocationOptions: TrackWidget[\"geolocationOptions\"];\n\n @Watch(\"geolocationOptions\")\n geolocationOptionsWatcher(newValue: TrackWidget[\"geolocationOptions\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.geolocationOptions = newValue;\n }\n }\n\n @Prop() goToLocationEnabled: TrackWidget[\"goToLocationEnabled\"];\n\n @Watch(\"goToLocationEnabled\")\n goToLocationEnabledWatcher(newValue: TrackWidget[\"goToLocationEnabled\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.goToLocationEnabled = newValue;\n }\n }\n\n @Prop() graphic: TrackWidget[\"graphic\"];\n\n @Watch(\"graphic\")\n graphicWatcher(newValue: TrackWidget[\"graphic\"]): void {\n if (this.widget) {\n this.widget.graphic = newValue;\n }\n }\n\n @Prop() scale: TrackWidget[\"scale\"];\n\n @Watch(\"scale\")\n scaleWatcher(newValue: TrackWidget[\"scale\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.scale = newValue;\n }\n }\n\n @Prop({ mutable: true, reflect: true }) tracking: TrackWidget[\"tracking\"];\n\n @Prop() rotationEnabled: TrackWidget[\"rotationEnabled\"];\n\n @Watch(\"rotationEnabled\")\n rotationEnabledWatcher(newValue: TrackWidget[\"rotationEnabled\"]): void {\n if (newValue !== undefined && this.widget) {\n this.widget.rotationEnabled = 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: 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: TrackWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) trackComplete: EventEmitter<__esri.TrackTrackEvent>;\n\n @Event({ cancelable: true }) trackError: EventEmitter<__esri.TrackTrackErrorEvent>;\n\n @Event({ cancelable: true }) widgetReady: EventEmitter<{ widget: __esri.Track }>;\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsTrack(params);\n\n this.widget = widget;\n\n await this._addWatchers();\n\n this._proxyEvents();\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 async _addWatchers() {\n const { watch } = await importCoreReactiveUtils();\n\n addHandles(\n this,\n watch(\n () => this.widget.tracking,\n (value) => (this.tracking = value),\n {\n initial: true\n }\n )\n );\n }\n\n private _createParams(): Partial<TrackWidget> {\n const params: Partial<TrackWidget> = {\n container: this.childElem\n };\n\n if (this.geolocationOptions !== undefined) {\n params.geolocationOptions = this.geolocationOptions;\n }\n\n if (this.goToLocationEnabled !== undefined) {\n params.goToLocationEnabled = this.goToLocationEnabled;\n }\n\n if (this.graphic !== undefined) {\n params.graphic = this.graphic;\n }\n\n if (this.rotationEnabled !== undefined) {\n params.rotationEnabled = this.rotationEnabled;\n }\n\n if (this.scale !== undefined) {\n params.scale = this.scale;\n }\n if (this.view) {\n params.view = this.view;\n }\n\n return params;\n }\n\n private _proxyEvents() {\n this.widget.on(\"track\", (e) => this.trackComplete.emit(e));\n this.widget.on(\"track-error\", (e) => this.trackError.emit(e));\n }\n}\n"],"version":3}
|