@arcgis/map-components 4.29.0-beta.77 → 4.29.0-beta.78
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/dist/arcgis-map-components/arcgis-map-components.esm.js +1 -1
- package/dist/arcgis-map-components/arcgis-map-components.esm.js.map +1 -1
- package/dist/arcgis-map-components/{p-758f6c5a.js → p-0222402f.js} +1 -1
- package/dist/arcgis-map-components/p-0222402f.js.map +1 -0
- package/dist/arcgis-map-components/{p-af6b52cb.entry.js → p-0f264ef2.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-b0abd711.entry.js → p-1486df4e.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-42f250a9.entry.js → p-2782c72c.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-5183adfb.entry.js → p-27d88ff9.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-82a12245.entry.js → p-2b3e83e7.entry.js} +2 -2
- package/dist/arcgis-map-components/p-2bb92ba3.entry.js +2 -0
- package/dist/arcgis-map-components/{p-4d5979ea.entry.js.map → p-2bb92ba3.entry.js.map} +1 -1
- package/dist/arcgis-map-components/{p-37b0fd31.entry.js → p-2fd1b2d0.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-b97b5ab8.entry.js → p-3093e1a6.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-269e4018.entry.js → p-33611678.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-d74f2d38.entry.js → p-35722f4d.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-dcab884b.entry.js → p-3ebdcabc.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-852d81d1.entry.js → p-3ee5a8da.entry.js} +2 -2
- package/dist/arcgis-map-components/p-493cd9ab.entry.js +2 -0
- package/dist/arcgis-map-components/{p-e7679e9c.entry.js.map → p-493cd9ab.entry.js.map} +1 -1
- package/dist/arcgis-map-components/{p-26c8efa0.entry.js → p-4cb56a4a.entry.js} +2 -2
- package/dist/arcgis-map-components/p-57fed476.entry.js +2 -0
- package/dist/arcgis-map-components/{p-061ad510.entry.js.map → p-57fed476.entry.js.map} +1 -1
- package/dist/arcgis-map-components/{p-4055fed1.entry.js → p-5e339e2e.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-93d69b82.entry.js → p-6486a359.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-62716f0f.entry.js → p-71bb4bf8.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-9d9417bb.entry.js → p-7d11e748.entry.js} +2 -2
- package/dist/arcgis-map-components/p-8afc6c86.entry.js +2 -0
- package/dist/arcgis-map-components/{p-343f5803.entry.js.map → p-8afc6c86.entry.js.map} +1 -1
- package/dist/arcgis-map-components/{p-c27946f8.entry.js → p-8b71ce01.entry.js} +2 -2
- package/dist/arcgis-map-components/p-8f9b4469.js +3 -0
- package/dist/arcgis-map-components/p-8f9b4469.js.map +1 -0
- package/dist/arcgis-map-components/{p-2f7311c6.entry.js → p-95a5f88e.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-bbe42bba.entry.js → p-99fda27d.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-ddeb17e1.entry.js → p-9a2a552d.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-e77700c7.entry.js → p-a08b7e39.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-03d91445.entry.js → p-a3bf34f9.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-d3e791dc.entry.js → p-a403686f.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-e14af886.entry.js → p-afdadf29.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-99437e5b.entry.js → p-b11c8315.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-591e7b46.entry.js → p-b727f9cc.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-d3050c56.entry.js → p-c3e56714.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-60b5fe3c.entry.js → p-c5c40926.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-2b8dde05.entry.js → p-c6206196.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-0780b907.entry.js → p-c744cd38.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-f41b7c4a.entry.js → p-c85b5c54.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-b9043526.entry.js → p-c9efb709.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-e3f82d1c.entry.js → p-cbaac388.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-edf74e10.entry.js → p-ce12f548.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-bc1bbb01.entry.js → p-ce18e575.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-bef2916b.entry.js → p-ce6d74ff.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-fc5cdeeb.entry.js → p-d05ac693.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-83685046.entry.js → p-d069ef5c.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-d42639bc.entry.js → p-d2c1e438.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-b5127ca2.entry.js → p-d9481f87.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-669bffd2.entry.js → p-e3bb50e2.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-58544c5b.entry.js → p-e5b254fe.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-1561977d.entry.js → p-f0157ea2.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-7cb578f1.entry.js → p-f080e37d.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-1688ad49.entry.js → p-f1eda90f.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-0c37d8a7.entry.js → p-f26033a9.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-69da0de3.entry.js → p-f7a2004d.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-c2b55df9.entry.js → p-fa196c78.entry.js} +2 -2
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-attachments.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-compass.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-daylight.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-directions.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-editor.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-feature-form.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-feature.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-features.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-histogram.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-home.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-legend.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-locate.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-map-components.cjs.js +2 -2
- package/dist/cjs/arcgis-map-components.cjs.js.map +1 -1
- package/dist/cjs/arcgis-map.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-measurement.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-placement.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-print.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-search.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-sketch.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-slice.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-slider.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-swipe.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-table-list.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-track.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-value-picker.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-weather.cjs.entry.js +2 -2
- package/dist/cjs/arcgis-zoom.cjs.entry.js +2 -2
- package/dist/cjs/{index-fbce570d.js → index-6fbac24a.js} +18 -25
- package/dist/cjs/index-6fbac24a.js.map +1 -0
- package/dist/cjs/{index-09a0e90f.js → index-bb40f950.js} +1 -1
- package/dist/cjs/index-bb40f950.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/esm/arcgis-area-measurement-2d.entry.js +2 -2
- package/dist/esm/arcgis-area-measurement-3d.entry.js +2 -2
- package/dist/esm/arcgis-attachments.entry.js +2 -2
- package/dist/esm/arcgis-basemap-gallery_3.entry.js +2 -2
- package/dist/esm/arcgis-basemap-layer-list.entry.js +2 -2
- package/dist/esm/arcgis-basemap-toggle.entry.js +2 -2
- package/dist/esm/arcgis-bookmarks.entry.js +2 -2
- package/dist/esm/arcgis-building-explorer.entry.js +2 -2
- package/dist/esm/arcgis-compass.entry.js +2 -2
- package/dist/esm/arcgis-coordinate-conversion.entry.js +2 -2
- package/dist/esm/arcgis-daylight.entry.js +2 -2
- package/dist/esm/arcgis-directions.entry.js +2 -2
- package/dist/esm/arcgis-directline-measurement-3d.entry.js +2 -2
- package/dist/esm/arcgis-distance-measurement-2d.entry.js +2 -2
- package/dist/esm/arcgis-editor.entry.js +2 -2
- package/dist/esm/arcgis-elevation-profile.entry.js +2 -2
- package/dist/esm/arcgis-feature-form.entry.js +2 -2
- package/dist/esm/arcgis-feature-table.entry.js +2 -2
- package/dist/esm/arcgis-feature-templates.entry.js +2 -2
- package/dist/esm/arcgis-feature.entry.js +2 -2
- package/dist/esm/arcgis-features.entry.js +2 -2
- package/dist/esm/arcgis-floor-filter.entry.js +2 -2
- package/dist/esm/arcgis-fullscreen.entry.js +2 -2
- package/dist/esm/arcgis-histogram-range-slider.entry.js +2 -2
- package/dist/esm/arcgis-histogram.entry.js +2 -2
- package/dist/esm/arcgis-home.entry.js +2 -2
- package/dist/esm/arcgis-layer-list.entry.js +2 -2
- package/dist/esm/arcgis-legend.entry.js +2 -2
- package/dist/esm/arcgis-line-of-sight.entry.js +2 -2
- package/dist/esm/arcgis-locate.entry.js +2 -2
- package/dist/esm/arcgis-map-components.js +3 -3
- package/dist/esm/arcgis-map-components.js.map +1 -1
- package/dist/esm/arcgis-map.entry.js +2 -2
- package/dist/esm/arcgis-measurement.entry.js +2 -2
- package/dist/esm/arcgis-navigation-toggle.entry.js +2 -2
- package/dist/esm/arcgis-placement.entry.js +1 -1
- package/dist/esm/arcgis-print.entry.js +2 -2
- package/dist/esm/arcgis-scale-bar.entry.js +2 -2
- package/dist/esm/arcgis-scale-range-slider.entry.js +2 -2
- package/dist/esm/arcgis-search.entry.js +2 -2
- package/dist/esm/arcgis-shadow-cast.entry.js +2 -2
- package/dist/esm/arcgis-sketch.entry.js +2 -2
- package/dist/esm/arcgis-slice.entry.js +2 -2
- package/dist/esm/arcgis-slider.entry.js +2 -2
- package/dist/esm/arcgis-swipe.entry.js +2 -2
- package/dist/esm/arcgis-table-list.entry.js +2 -2
- package/dist/esm/arcgis-time-slider.entry.js +2 -2
- package/dist/esm/arcgis-track.entry.js +2 -2
- package/dist/esm/arcgis-utility-network-associations.entry.js +2 -2
- package/dist/esm/arcgis-utility-network-trace.entry.js +2 -2
- package/dist/esm/arcgis-utility-network-validate-topology.entry.js +2 -2
- package/dist/esm/arcgis-value-picker.entry.js +2 -2
- package/dist/esm/arcgis-weather.entry.js +2 -2
- package/dist/esm/arcgis-zoom.entry.js +2 -2
- package/dist/esm/{index-525856d7.js → index-1b262122.js} +18 -25
- package/dist/esm/index-1b262122.js.map +1 -0
- package/dist/esm/{index-344075c3.js → index-b39a5325.js} +1 -1
- package/dist/esm/index-b39a5325.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/package.json +13 -12
- package/dist/arcgis-map-components/p-061ad510.entry.js +0 -2
- package/dist/arcgis-map-components/p-343f5803.entry.js +0 -2
- package/dist/arcgis-map-components/p-4d5979ea.entry.js +0 -2
- package/dist/arcgis-map-components/p-758f6c5a.js.map +0 -1
- package/dist/arcgis-map-components/p-8896b456.js +0 -3
- package/dist/arcgis-map-components/p-8896b456.js.map +0 -1
- package/dist/arcgis-map-components/p-e7679e9c.entry.js +0 -2
- package/dist/cjs/index-09a0e90f.js.map +0 -1
- package/dist/cjs/index-fbce570d.js.map +0 -1
- package/dist/esm/index-344075c3.js.map +0 -1
- package/dist/esm/index-525856d7.js.map +0 -1
- /package/dist/arcgis-map-components/{p-af6b52cb.entry.js.map → p-0f264ef2.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-b0abd711.entry.js.map → p-1486df4e.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-42f250a9.entry.js.map → p-2782c72c.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-5183adfb.entry.js.map → p-27d88ff9.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-82a12245.entry.js.map → p-2b3e83e7.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-37b0fd31.entry.js.map → p-2fd1b2d0.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-b97b5ab8.entry.js.map → p-3093e1a6.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-269e4018.entry.js.map → p-33611678.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-d74f2d38.entry.js.map → p-35722f4d.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-dcab884b.entry.js.map → p-3ebdcabc.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-852d81d1.entry.js.map → p-3ee5a8da.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-26c8efa0.entry.js.map → p-4cb56a4a.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-4055fed1.entry.js.map → p-5e339e2e.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-93d69b82.entry.js.map → p-6486a359.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-62716f0f.entry.js.map → p-71bb4bf8.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-9d9417bb.entry.js.map → p-7d11e748.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-c27946f8.entry.js.map → p-8b71ce01.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-2f7311c6.entry.js.map → p-95a5f88e.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-bbe42bba.entry.js.map → p-99fda27d.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-ddeb17e1.entry.js.map → p-9a2a552d.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-e77700c7.entry.js.map → p-a08b7e39.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-03d91445.entry.js.map → p-a3bf34f9.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-d3e791dc.entry.js.map → p-a403686f.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-e14af886.entry.js.map → p-afdadf29.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-99437e5b.entry.js.map → p-b11c8315.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-591e7b46.entry.js.map → p-b727f9cc.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-d3050c56.entry.js.map → p-c3e56714.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-60b5fe3c.entry.js.map → p-c5c40926.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-2b8dde05.entry.js.map → p-c6206196.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-0780b907.entry.js.map → p-c744cd38.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-f41b7c4a.entry.js.map → p-c85b5c54.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-b9043526.entry.js.map → p-c9efb709.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-e3f82d1c.entry.js.map → p-cbaac388.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-edf74e10.entry.js.map → p-ce12f548.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-bc1bbb01.entry.js.map → p-ce18e575.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-bef2916b.entry.js.map → p-ce6d74ff.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-fc5cdeeb.entry.js.map → p-d05ac693.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-83685046.entry.js.map → p-d069ef5c.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-d42639bc.entry.js.map → p-d2c1e438.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-b5127ca2.entry.js.map → p-d9481f87.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-669bffd2.entry.js.map → p-e3bb50e2.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-58544c5b.entry.js.map → p-e5b254fe.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-1561977d.entry.js.map → p-f0157ea2.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-7cb578f1.entry.js.map → p-f080e37d.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-1688ad49.entry.js.map → p-f1eda90f.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-0c37d8a7.entry.js.map → p-f26033a9.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-69da0de3.entry.js.map → p-f7a2004d.entry.js.map} +0 -0
- /package/dist/arcgis-map-components/{p-c2b55df9.entry.js.map → p-fa196c78.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,g as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as s,g as e}from"./p-8f9b4469.js";import{D as a,i as h}from"./p-0222402f.js";import{a as n}from"./p-6eddf41d.js";const r="arcgis-histogram{}";const d=class{constructor(s){t(this,s);this.widgetReady=i(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.average=undefined;this.barCreatedFunction=undefined;this.bins=undefined;this.dataLineCreatedFunction=undefined;this.dataLines=undefined;this.labelFormatFunction=undefined;this.layout=undefined;this.max=0;this.min=0;this.state=undefined;this.position="bottom-left";this.expandable=false;this.widget=undefined}averageWatcher(t){if(this.widget){this.widget.average=t}}barCreatedFunctionWatcher(t){if(this.widget){this.widget.barCreatedFunction=t}}binsWatcher(t){if(this.widget){this.widget.bins=t}}dataLineCreatedFunctionWatcher(t){if(this.widget){this.widget.dataLineCreatedFunction=t}}dataLinesWatcher(t){if(this.widget){this.widget.dataLines=t}}labelFormatFunctionWatcher(t){if(this.widget){this.widget.labelFormatFunction=t}}layoutWatcher(t){if(this.widget){this.widget.layout=t}}maxWatcher(t){if(this.widget){this.widget.max=Number(t)}}minWatcher(t){if(this.widget){this.widget.min=Number(t)}}async componentDidLoad(){const t=this._createParams();const i=await a(t);this.widget=i;await this._addWatchers();this.widgetReady.emit({widget:this.widget})}render(){if(this.expandable){return s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t}))}return s("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await h();n(this,t((()=>this.widget.state),(()=>this.state=this.widget.state),{initial:true}))}_createParams(){const t={container:this.childElem,min:this.min,max:this.max};if(this.average!==undefined){t.average=this.average}if(this.barCreatedFunction){t.barCreatedFunction=this.barCreatedFunction}if(this.bins!==undefined){t.bins=this.bins}if(this.dataLineCreatedFunction){t.dataLineCreatedFunction=this.dataLineCreatedFunction}if(this.dataLines!==undefined){t.dataLines=this.dataLines}if(this.labelFormatFunction){t.labelFormatFunction=this.labelFormatFunction}return t}get el(){return e(this)}static get watchers(){return{average:["averageWatcher"],barCreatedFunction:["barCreatedFunctionWatcher"],bins:["binsWatcher"],dataLineCreatedFunction:["dataLineCreatedFunctionWatcher"],dataLines:["dataLinesWatcher"],labelFormatFunction:["labelFormatFunctionWatcher"],layout:["layoutWatcher"],max:["maxWatcher"],min:["minWatcher"]}}};d.style=r;export{d as arcgis_histogram};
|
|
2
|
+
//# sourceMappingURL=p-0f264ef2.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as e,g as s}from"./p-8f9b4469.js";import{F as h}from"./p-0222402f.js";import{r as n,c as r}from"./p-6eddf41d.js";import{o as c}from"./p-8cd5e748.js";const o="arcgis-home{}";const a=class{constructor(e){t(this,e);this.goCalled=i(this,"goCalled",7);this.widgetReady=i(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.viewpoint=undefined;this.uiStrings=undefined;this.view=undefined;this.position="bottom-left";this.widget=undefined}referenceElementWatcher(t){n(this,t)}viewpointWatcher(t){if(this.widget){this.widget.viewpoint=t}}uiStringsWatcher(t){if(this.widget){this.widget.uiStrings=t}}viewWatcher(t){if(t!==undefined&&this.widget){this.widget.view=t}}positionWatcher(t){if(t!==undefined&&this.widget){this.view.ui.move(this.childElem,t)}}async cancelGo(){return this.widget?.cancelGo()}async go(){return this.widget?.go()}async componentDidLoad(){const t=this._createParams();const i=await h(t);this.widget=i;this.widgetReady.emit({widget:this.widget});this._proxyEvents();r(this)}disconnectedCallback(){c(this)}render(){return e("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};if(this.viewpoint){t.viewpoint=this.viewpoint}if(this.uiStrings){t.uiStrings=this.uiStrings}if(this.view){t.view=this.view}return t}async _proxyEvents(){this.widget?.on("go",(t=>this.goCalled.emit(t)))}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],viewpoint:["viewpointWatcher"],uiStrings:["uiStringsWatcher"],view:["viewWatcher"],position:["positionWatcher"]}}};a.style=o;export{a as arcgis_home};
|
|
2
|
+
//# sourceMappingURL=p-1486df4e.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as e,g as s}from"./p-8f9b4469.js";import{g as h,i as n}from"./p-0222402f.js";import{r as a,c as r,a as c}from"./p-6eddf41d.js";import{o as d}from"./p-8cd5e748.js";const f="";const l=class{constructor(e){t(this,e);this.widgetReady=i(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.baseItems=undefined;this.baseListItemCreatedFunction=undefined;this.basemapTitle=undefined;this.editingEnabled=false;this.mulitpleSelectionEnabled=false;this.position="bottom-left";this.expandable=false;this.referenceItems=undefined;this.referenceListItemCreatedFunction=undefined;this.selectedItems=undefined;this.visibleElements=undefined;this.view=undefined;this.widget=undefined}referenceElementWatcher(t){a(this,t)}baseListItemCreatedFunctionWatcher(t){if(this.widget){this.widget.baseListItemCreatedFunction=t}}basemapTitleWatcher(t){if(this.widget){this.widget.basemapTitle=t}}editingBasemapEnabledWatcher(t){if(t!==undefined&&this.widget){this.widget.editingEnabled=t}}multipleSelectionEnabledWatcher(t){if(t!==undefined&&this.widget){this.widget.multipleSelectionEnabled=t}}positionWatcher(t){if(this.widget){this.view.ui.move(this.childElem,t)}}referenceListItemCreatedFunctionWatcher(t){if(this.widget){this.widget.referenceListItemCreatedFunction=t}}selectedItemsWatcher(t){if(this.widget){this.widget.selectedItems=t}}visibleElementsWatcher(t){if(this.widget){this.widget.visibleElements=t}}viewWatcher(t){if(this.widget){this.widget.view=t}}async componentDidLoad(){const t=this._createParams();const i=await h(t);this.widget=i;await this._addWatchers();this.widgetReady.emit({widget:this.widget});r(this)}disconnectedCallback(){d(this)}render(){if(this.expandable){return e("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},e("div",{ref:t=>this.childElem=t}))}return e("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};if(this.baseListItemCreatedFunction){t.baseListItemCreatedFunction=this.baseListItemCreatedFunction}if(this.basemapTitle){t.basemapTitle=this.basemapTitle}if(this.editingEnabled!==undefined){t.editingEnabled=this.editingEnabled}if(this.mulitpleSelectionEnabled!==undefined){t.multipleSelectionEnabled=this.mulitpleSelectionEnabled}if(this.referenceListItemCreatedFunction){t.referenceListItemCreatedFunction=this.referenceListItemCreatedFunction}if(this.visibleElements){t.visibleElements=this.visibleElements}if(this.view){t.view=this.view}return t}async _addWatchers(){const{watch:t}=await n();c(this,t((()=>this.widget.baseItems),(t=>this.baseItems=t),{initial:true}));c(this,t((()=>this.widget.basemapTitle),(t=>this.basemapTitle=t),{initial:true}));c(this,t((()=>this.widget.editingEnabled),(t=>this.editingEnabled=t),{initial:true}));c(this,t((()=>this.widget.multipleSelectionEnabled),(t=>this.mulitpleSelectionEnabled=t),{initial:true}));c(this,t((()=>this.widget.referenceItems),(t=>this.referenceItems=t),{initial:true}));c(this,t((()=>this.widget.selectedItems),(t=>this.selectedItems=t),{initial:true}))}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],baseListItemCreatedFunction:["baseListItemCreatedFunctionWatcher"],basemapTitle:["basemapTitleWatcher"],editingEnabled:["editingBasemapEnabledWatcher"],mulitpleSelectionEnabled:["multipleSelectionEnabledWatcher"],position:["positionWatcher"],referenceListItemCreatedFunction:["referenceListItemCreatedFunctionWatcher"],selectedItems:["selectedItemsWatcher"],visibleElements:["visibleElementsWatcher"],view:["viewWatcher"]}}};l.style=f;export{l as arcgis_basemap_layer_list};
|
|
2
|
+
//# sourceMappingURL=p-2782c72c.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,g as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as s,g as e}from"./p-8f9b4469.js";import{r as n,i as h}from"./p-0222402f.js";import{r,c as a,a as c}from"./p-6eddf41d.js";import{o}from"./p-8cd5e748.js";const d="";const f=class{constructor(s){t(this,s);this.widgetReady=i(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.position="bottom-left";this.expandable=false;this.analysis=undefined;this.unit=undefined;this.unitOptions=undefined;this.widget=undefined;this.view=undefined}referenceElementWatcher(t){r(this,t)}positionWatcher(t){if(t!==undefined&&this.widget){this.view.ui.move(this.childElem,t)}}unitWatcher(t){if(this.widget){this.widget.unit=t}}unitOptionsWatcher(t){if(this.widget){this.widget.unitOptions=t}}viewWatcher(t){if(t!==undefined&&this.widget){this.widget.view=t}}async componentDidLoad(){const t=this._createParams();const i=await n(t);this.widget=i;this._addWatchers();this.widgetReady.emit({widget:this.widget});a(this)}disconnectedCallback(){o(this)}render(){if(this.expandable){return s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t}))}return s("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await h();c(this,t((()=>this.widget.analysis),(t=>this.analysis=t),{initial:true}))}_createParams(){const t={container:this.childElem};if(this.view){t.view=this.view}if(this.unit){t.unit=this.unit}if(this.unitOptions){t.unitOptions=this.unitOptions}return t}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],position:["positionWatcher"],unit:["unitWatcher"],unitOptions:["unitOptionsWatcher"],view:["viewWatcher"]}}};f.style=d;export{f as arcgis_directline_measurement_3d};
|
|
2
|
+
//# sourceMappingURL=p-27d88ff9.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,h as i,g as s}from"./p-8f9b4469.js";import{N as n}from"./p-0222402f.js";import{r,c as a}from"./p-6eddf41d.js";import{o as h}from"./p-8cd5e748.js";const o="arcgis-navigation-toggle{}";const c=class{constructor(i){t(this,i);this.widgetReady=e(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.layout=undefined;this.position="bottom-left";this.view=undefined;this.widget=undefined}referenceElementWatcher(t){r(this,t)}layoutWatcher(t){if(t!==undefined&&this.widget){this.widget.layout=t}}positionWatcher(t){if(t!==undefined&&this.widget){this.view.ui.move(this.childElem,t)}}viewWatcher(t){if(t!==undefined&&this.widget){this.widget.view=t}}async toggle(){return this.widget?.toggle()}async componentDidLoad(){const t=this._createParams();const e=await n(t);this.widget=e;this.widgetReady.emit({widget:this.widget});a(this)}disconnectedCallback(){h(this)}render(){return i("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};if(this.view){t.view=this.view}return t}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],layout:["layoutWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};c.style=o;export{c as arcgis_navigation_toggle};
|
|
2
|
+
//# sourceMappingURL=p-2b3e83e7.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,g as e}from"./p-8f9b4469.js";import{A as h,i as n}from"./p-0222402f.js";import{r,c as a,a as c}from"./p-6eddf41d.js";import{o as f}from"./p-8cd5e748.js";const o="arcgis-features{}";const d=class{constructor(s){t(this,s);this.widgetReady=i(this,"widgetReady",7);this.featuresTriggerAction=i(this,"featuresTriggerAction",7);this._watchHandles=[];this.referenceElement=undefined;this.position="bottom-left";this.expandable=false;this.content=undefined;this.features=undefined;this.promises=undefined;this.selectedFeature=undefined;this.selectedFeatureIndex=undefined;this.selectedFeatureWidget=undefined;this.visibleElements=undefined;this.view=undefined;this.widget=undefined}referenceElementWatcher(t){r(this,t)}positionWatcher(t){if(t!==undefined&&this.widget){this.view.ui.move(this.childElem,t)}}contentWatcher(t){if(this.widget){this.widget.content=t}}featuresWatcher(t){if(this.widget){this.widget.features=t}}visibleElementsWatcher(t){if(this.widget){this.widget.visibleElements=t}}viewWatcher(t){if(t!==undefined&&this.widget){this.widget.view=t}}async fetchFeatures(t,i){return await(this.widget?.fetchFeatures(t,i))}async clear(){this.widget?.clear()}async close(){this.widget?.close()}async next(){return this.widget?.next()}async open(t){this.widget?.open(t)}async previous(){return this.widget?.previous()}async triggerAction(t){this.widget?.triggerAction(t)}async componentDidLoad(){const t=this._createParams();const i=await h(t);this.widget=i;await this._addWatchers();this._proxyEvents();this.widgetReady.emit({widget:this.widget});a(this)}disconnectedCallback(){f(this)}render(){if(this.expandable){return s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t}))}return s("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await n();c(this,t((()=>this.widget.promises),(t=>this.promises=t),{initial:true}));c(this,t((()=>this.widget.selectedFeature),(t=>this.selectedFeature=t),{initial:true}));c(this,t((()=>this.widget.selectedFeatureIndex),(t=>this.selectedFeatureIndex=t),{initial:true}));c(this,t((()=>this.widget.selectedFeatureWidget),(t=>this.selectedFeatureWidget=t),{initial:true}))}_createParams(){const t={container:this.childElem};if(this.view){t.view=this.view}if(this.content){t.content=this.content}if(this.features){t.features=this.features}return t}_proxyEvents(){this.widget.on("trigger-action",(t=>this.featuresTriggerAction.emit(t)))}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],position:["positionWatcher"],content:["contentWatcher"],features:["featuresWatcher"],visibleElements:["visibleElementsWatcher"],view:["viewWatcher"]}}};d.style=o;export{d as arcgis_features};
|
|
2
|
+
//# sourceMappingURL=p-2bb92ba3.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["featuresCss","ArcgisFeatures","this","_watchHandles","referenceElementWatcher","newValue","referenceElementHelper","positionWatcher","undefined","widget","view","ui","move","childElem","contentWatcher","content","featuresWatcher","features","visibleElementsWatcher","visibleElements","viewWatcher","fetchFeatures","screenPoint","options","clear","close","next","open","previous","triggerAction","actionIndex","componentDidLoad","params","_createParams","newWidgetsFeatures","_addWatchers","_proxyEvents","widgetReady","emit","checkForView","disconnectedCallback","onDisconnectedHelper","render","expandable","h","position","ref","el","expandElem","watch","importCoreReactiveUtils","addHandles","promises","value","initial","selectedFeature","selectedFeatureIndex","selectedFeatureWidget","container","on","e","featuresTriggerAction"],"sources":["src/components/features/features.css?tag=arcgis-features","src/components/features/features.tsx"],"sourcesContent":["arcgis-features {\n /* Component styles go here */\n}\n","import type { EventEmitter, VNode } from \"@stencil/core\";\nimport { Component, Element, Event, Method, Prop, Watch, h } from \"@stencil/core\";\n\n// arcgis imports\nimport { importCoreReactiveUtils, newWidgetsFeatures } from \"@arcgis/core-adapter\";\nimport type Features from \"@arcgis/core/widgets/Features\";\nimport type { ArcgisReferenceElement } from \"../../utils/component-utils\";\nimport { addHandles, checkForView, referenceElementHelper } from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport type { ArcGISMapView, ArcGISSceneView } from \"../types\";\n\nexport type FeaturesWidget = InstanceType<typeof Features>;\n\n@Component({\n tag: \"arcgis-features\",\n styleUrl: \"features.css\"\n})\nexport class ArcgisFeatures {\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() 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() content: FeaturesWidget[\"content\"];\n\n @Watch(\"content\")\n contentWatcher(newValue: FeaturesWidget[\"content\"]): void {\n if (this.widget) {\n this.widget.content = newValue;\n }\n }\n\n @Prop() features: FeaturesWidget[\"features\"];\n\n @Watch(\"features\")\n featuresWatcher(newValue: FeaturesWidget[\"features\"]): void {\n if (this.widget) {\n this.widget.features = newValue;\n }\n }\n @Prop({ mutable: true }) promises: FeaturesWidget[\"promises\"];\n\n @Prop({ mutable: true }) selectedFeature: FeaturesWidget[\"selectedFeature\"];\n\n @Prop({ mutable: true }) selectedFeatureIndex: FeaturesWidget[\"selectedFeatureIndex\"];\n\n @Prop({ mutable: true }) selectedFeatureWidget: FeaturesWidget[\"selectedFeatureWidget\"];\n\n @Prop() visibleElements: FeaturesWidget[\"visibleElements\"];\n\n @Watch(\"visibleElements\")\n visibleElementsWatcher(newValue: FeaturesWidget[\"visibleElements\"]): void {\n if (this.widget) {\n this.widget.visibleElements = 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: FeaturesWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady!: EventEmitter<{ widget: __esri.Features }>;\n\n @Event({ cancelable: true }) featuresTriggerAction!: EventEmitter<__esri.FeaturesTriggerActionEvent>;\n\n //--------------------------------------------------------------------------\n //\n // Methods\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async fetchFeatures(\n screenPoint: __esri.FeaturesFetchFeaturesScreenPoint,\n options?: __esri.FetchFeaturesOptions\n ): Promise<__esri.FetchPopupFeaturesResult> {\n return await this.widget?.fetchFeatures(screenPoint, options);\n }\n\n @Method()\n async clear(): Promise<void> {\n this.widget?.clear();\n }\n\n @Method()\n async close(): Promise<void> {\n this.widget?.close();\n }\n\n @Method()\n async next(): Promise<__esri.FeaturesViewModel> {\n return this.widget?.next();\n }\n\n @Method()\n async open(options?: __esri.FeaturesOpenOptions): Promise<void> {\n this.widget?.open(options);\n }\n\n @Method()\n async previous(): Promise<__esri.FeaturesViewModel> {\n return this.widget?.previous();\n }\n\n @Method()\n async triggerAction(actionIndex: number): Promise<void> {\n this.widget?.triggerAction(actionIndex);\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsFeatures(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!)}>\n <div ref={(el) => (this.childElem = el!)}></div>\n </arcgis-expand>\n );\n }\n return <div ref={(el) => (this.childElem = el!)}></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.promises,\n (value) => (this.promises = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.selectedFeature,\n (value) => (this.selectedFeature = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.selectedFeatureIndex,\n (value) => (this.selectedFeatureIndex = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.selectedFeatureWidget,\n (value) => (this.selectedFeatureWidget = value),\n {\n initial: true\n }\n )\n );\n }\n\n private _createParams(): Partial<FeaturesWidget> {\n const params: Partial<FeaturesWidget> = {\n container: this.childElem\n };\n\n if (this.view) {\n params.view = this.view;\n }\n\n if (this.content) {\n params.content = this.content;\n }\n\n if (this.features) {\n params.features = this.features;\n }\n\n return params;\n }\n\n private _proxyEvents() {\n this.widget.on(\"trigger-action\", (e) => this.featuresTriggerAction.emit(e));\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["featuresCss","ArcgisFeatures","this","_watchHandles","referenceElementWatcher","newValue","referenceElementHelper","positionWatcher","undefined","widget","view","ui","move","childElem","contentWatcher","content","featuresWatcher","features","visibleElementsWatcher","visibleElements","viewWatcher","fetchFeatures","screenPoint","options","clear","close","next","open","previous","triggerAction","actionIndex","componentDidLoad","params","_createParams","newWidgetsFeatures","_addWatchers","_proxyEvents","widgetReady","emit","checkForView","disconnectedCallback","onDisconnectedHelper","render","expandable","h","position","ref","el","expandElem","watch","importCoreReactiveUtils","addHandles","promises","value","initial","selectedFeature","selectedFeatureIndex","selectedFeatureWidget","container","on","e","featuresTriggerAction"],"sources":["src/components/features/features.css?tag=arcgis-features","src/components/features/features.tsx"],"sourcesContent":["arcgis-features {\n /* Component styles go here */\n}\n","import type { EventEmitter, VNode } from \"@stencil/core\";\nimport { Component, Element, Event, Method, Prop, Watch, h } from \"@stencil/core\";\n\n// arcgis imports\nimport { importCoreReactiveUtils, newWidgetsFeatures } from \"@arcgis/core-adapter\";\nimport type Features from \"@arcgis/core/widgets/Features\";\nimport type { ArcgisReferenceElement } from \"../../utils/component-utils\";\nimport { addHandles, checkForView, referenceElementHelper } from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport type { ArcGISMapView, ArcGISSceneView } from \"../types\";\n\nexport type FeaturesWidget = InstanceType<typeof Features>;\n\n@Component({\n tag: \"arcgis-features\",\n styleUrl: \"features.css\"\n})\nexport class ArcgisFeatures {\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() 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() content: FeaturesWidget[\"content\"];\n\n @Watch(\"content\")\n contentWatcher(newValue: FeaturesWidget[\"content\"]): void {\n if (this.widget) {\n this.widget.content = newValue;\n }\n }\n\n @Prop() features: FeaturesWidget[\"features\"];\n\n @Watch(\"features\")\n featuresWatcher(newValue: FeaturesWidget[\"features\"]): void {\n if (this.widget) {\n this.widget.features = newValue;\n }\n }\n @Prop({ mutable: true }) promises: FeaturesWidget[\"promises\"];\n\n @Prop({ mutable: true }) selectedFeature: FeaturesWidget[\"selectedFeature\"];\n\n @Prop({ mutable: true }) selectedFeatureIndex: FeaturesWidget[\"selectedFeatureIndex\"];\n\n @Prop({ mutable: true }) selectedFeatureWidget: FeaturesWidget[\"selectedFeatureWidget\"];\n\n @Prop() visibleElements: FeaturesWidget[\"visibleElements\"];\n\n @Watch(\"visibleElements\")\n visibleElementsWatcher(newValue: FeaturesWidget[\"visibleElements\"]): void {\n if (this.widget) {\n this.widget.visibleElements = 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: FeaturesWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady!: EventEmitter<{ widget: __esri.Features }>;\n\n @Event({ cancelable: true }) featuresTriggerAction!: EventEmitter<__esri.FeaturesTriggerActionEvent>;\n\n //--------------------------------------------------------------------------\n //\n // Methods\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async fetchFeatures(\n screenPoint: __esri.FeaturesFetchFeaturesScreenPoint,\n options?: __esri.FetchFeaturesOptions\n ): Promise<__esri.FetchPopupFeaturesResult> {\n return await this.widget?.fetchFeatures(screenPoint, options);\n }\n\n @Method()\n async clear(): Promise<void> {\n this.widget?.clear();\n }\n\n @Method()\n async close(): Promise<void> {\n this.widget?.close();\n }\n\n @Method()\n async next(): Promise<__esri.FeaturesViewModel> {\n return this.widget?.next();\n }\n\n @Method()\n async open(options?: __esri.FeaturesOpenOptions): Promise<void> {\n this.widget?.open(options);\n }\n\n @Method()\n async previous(): Promise<__esri.FeaturesViewModel> {\n return this.widget?.previous();\n }\n\n @Method()\n async triggerAction(actionIndex: number): Promise<void> {\n this.widget?.triggerAction(actionIndex);\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsFeatures(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!)}>\n <div ref={(el) => (this.childElem = el!)}></div>\n </arcgis-expand>\n );\n }\n return <div ref={(el) => (this.childElem = el!)}></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.promises,\n (value) => (this.promises = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.selectedFeature,\n (value) => (this.selectedFeature = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.selectedFeatureIndex,\n (value) => (this.selectedFeatureIndex = value),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.selectedFeatureWidget,\n (value) => (this.selectedFeatureWidget = value),\n {\n initial: true\n }\n )\n );\n }\n\n private _createParams(): Partial<FeaturesWidget> {\n const params: Partial<FeaturesWidget> = {\n container: this.childElem\n };\n\n if (this.view) {\n params.view = this.view;\n }\n\n if (this.content) {\n params.content = this.content;\n }\n\n if (this.features) {\n params.features = this.features;\n }\n\n return params;\n }\n\n private _proxyEvents() {\n this.widget.on(\"trigger-action\", (e) => this.featuresTriggerAction.emit(e));\n }\n}\n"],"mappings":"qLAAA,MAAMA,EAAc,oB,MCiBPC,EAAc,M,+HA4EzBC,KAAAC,cAAsC,G,8CAxDnB,c,gBASE,M,wPAbrB,uBAAAC,CAAwBC,GACtBC,EAAuBJ,KAAMG,E,CAM/B,eAAAE,CAAgBF,GACd,GAAIA,IAAaG,WAAaN,KAAKO,OAAQ,CACzCP,KAAKQ,KAAKC,GAAGC,KAAKV,KAAKW,UAAWR,E,EAStC,cAAAS,CAAeT,GACb,GAAIH,KAAKO,OAAQ,CACfP,KAAKO,OAAOM,QAAUV,C,EAO1B,eAAAW,CAAgBX,GACd,GAAIH,KAAKO,OAAQ,CACfP,KAAKO,OAAOQ,SAAWZ,C,EAc3B,sBAAAa,CAAuBb,GACrB,GAAIH,KAAKO,OAAQ,CACfP,KAAKO,OAAOU,gBAAkBd,C,EAOlC,WAAAe,CAAYf,GACV,GAAIA,IAAaG,WAAaN,KAAKO,OAAQ,CACzCP,KAAKO,OAAOC,KAAOL,C,EAyBvB,mBAAMgB,CACJC,EACAC,GAEA,aAAarB,KAAKO,QAAQY,cAAcC,EAAaC,G,CAIvD,WAAMC,GACJtB,KAAKO,QAAQe,O,CAIf,WAAMC,GACJvB,KAAKO,QAAQgB,O,CAIf,UAAMC,GACJ,OAAOxB,KAAKO,QAAQiB,M,CAItB,UAAMC,CAAKJ,GACTrB,KAAKO,QAAQkB,KAAKJ,E,CAIpB,cAAMK,GACJ,OAAO1B,KAAKO,QAAQmB,U,CAItB,mBAAMC,CAAcC,GAClB5B,KAAKO,QAAQoB,cAAcC,E,CAS7B,sBAAMC,GACJ,MAAMC,EAAS9B,KAAK+B,gBAEpB,MAAMxB,QAAeyB,EAAmBF,GAExC9B,KAAKO,OAASA,QAERP,KAAKiC,eAEXjC,KAAKkC,eAELlC,KAAKmC,YAAYC,KAAK,CAAE7B,OAAQP,KAAKO,SAErC8B,EAAarC,K,CAGf,oBAAAsC,GACEC,EAAqBvC,K,CAGvB,MAAAwC,GACE,GAAIxC,KAAKyC,WAAY,CACnB,OACEC,EAAA,iBAAeC,SAAU3C,KAAK2C,SAAUC,IAAMC,GAAQ7C,KAAK8C,WAAaD,GACtEH,EAAA,OAAKE,IAAMC,GAAQ7C,KAAKW,UAAYkC,I,CAI1C,OAAOH,EAAA,OAAKE,IAAMC,GAAQ7C,KAAKW,UAAYkC,G,CAQrC,kBAAMZ,GACZ,MAAMc,MAAEA,SAAgBC,IAExBC,EACEjD,KACA+C,GACE,IAAM/C,KAAKO,OAAO2C,WACjBC,GAAWnD,KAAKkD,SAAWC,GAC5B,CACEC,QAAS,QAKfH,EACEjD,KACA+C,GACE,IAAM/C,KAAKO,OAAO8C,kBACjBF,GAAWnD,KAAKqD,gBAAkBF,GACnC,CACEC,QAAS,QAKfH,EACEjD,KACA+C,GACE,IAAM/C,KAAKO,OAAO+C,uBACjBH,GAAWnD,KAAKsD,qBAAuBH,GACxC,CACEC,QAAS,QAKfH,EACEjD,KACA+C,GACE,IAAM/C,KAAKO,OAAOgD,wBACjBJ,GAAWnD,KAAKuD,sBAAwBJ,GACzC,CACEC,QAAS,O,CAMT,aAAArB,GACN,MAAMD,EAAkC,CACtC0B,UAAWxD,KAAKW,WAGlB,GAAIX,KAAKQ,KAAM,CACbsB,EAAOtB,KAAOR,KAAKQ,I,CAGrB,GAAIR,KAAKa,QAAS,CAChBiB,EAAOjB,QAAUb,KAAKa,O,CAGxB,GAAIb,KAAKe,SAAU,CACjBe,EAAOf,SAAWf,KAAKe,Q,CAGzB,OAAOe,C,CAGD,YAAAI,GACNlC,KAAKO,OAAOkD,GAAG,kBAAmBC,GAAM1D,KAAK2D,sBAAsBvB,KAAKsB,I"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as e,g as s}from"./p-8f9b4469.js";import{j as h,i as n}from"./p-0222402f.js";import{r as a,c as r,a as d}from"./p-6eddf41d.js";import{o}from"./p-8cd5e748.js";const f="";const c=class{constructor(e){t(this,e);this.bookmarkEdit=i(this,"bookmarkEdit",7);this.bookmarkSelect=i(this,"bookmarkSelect",7);this.widgetReady=i(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.bookmarks=undefined;this.defaultCreateOptions=undefined;this.defaultEditOptions=undefined;this.editingEnabled=undefined;this.visibleElements=undefined;this.position="bottom-left";this.expandable=false;this.view=undefined;this.widget=undefined}referenceElementWatcher(t){a(this,t)}bookmarksWatcher(t){if(t!==undefined&&this.widget){this.widget.bookmarks=t}}defaultCreateOptionsWatcher(t){if(t!==undefined&&this.widget){this.widget.defaultCreateOptions=t}}defaultEditOptionsWatcher(t){if(t!==undefined&&this.widget){this.widget.defaultEditOptions=t}}editingEnabledWatcher(t,i){if(t!==undefined&&t!==i&&this.widget){this.widget.editingEnabled=t}}visibleElementsWatcher(t){if(t!==undefined&&this.widget){this.widget.visibleElements=t}}positionWatcher(t){if(t!==undefined&&this.widget){if(typeof this.view!=="string"){this.view.ui.move(this.childElem,t)}}}viewWatcher(t){if(t!==undefined&&this.widget){this.widget.view=t}}async componentDidLoad(){const t=this._createParams();const i=await h(t);this.widget=i;await this._addWatchers();this._proxyEvents();this.widgetReady.emit({widget:this.widget});r(this)}disconnectedCallback(){o(this)}render(){if(this.expandable){return e("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},e("div",{ref:t=>this.childElem=t}))}return e("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await n();d(this,t((()=>this.widget.editingEnabled),(t=>this.editingEnabled=t),{initial:true}))}_createParams(){const t={container:this.childElem};if(this.view){t.view=this.view}if(this.bookmarks){t.bookmarks=this.bookmarks}if(this.defaultCreateOptions){t.defaultCreateOptions=this.defaultCreateOptions}if(this.defaultEditOptions){t.defaultEditOptions=this.defaultEditOptions}if(this.editingEnabled!==undefined){t.editingEnabled=this.editingEnabled}if(this.visibleElements){t.visibleElements=this.visibleElements}return t}_proxyEvents(){this.widget.on("bookmark-edit",(t=>this.bookmarkEdit.emit(t)));this.widget.on("bookmark-select",(t=>this.bookmarkSelect.emit(t)))}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],bookmarks:["bookmarksWatcher"],defaultCreateOptions:["defaultCreateOptionsWatcher"],defaultEditOptions:["defaultEditOptionsWatcher"],editingEnabled:["editingEnabledWatcher"],visibleElements:["visibleElementsWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};c.style=f;export{c as arcgis_bookmarks};
|
|
2
|
+
//# sourceMappingURL=p-2fd1b2d0.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as e,g as s}from"./p-8f9b4469.js";import{t as a,i as h}from"./p-0222402f.js";import{r,c as n,a as o}from"./p-6eddf41d.js";import{o as f}from"./p-8cd5e748.js";const c="";const d=class{constructor(e){t(this,e);this.widgetReady=i(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.activeWorkflow=undefined;this.allowedWorkflows=undefined;this.labelOptions=undefined;this.layerInfos=undefined;this.snappingOptions=undefined;this.supportingWidgetDefaults=undefined;this.tooltipOptions=undefined;this.visibleElements=undefined;this.position="bottom-left";this.expandable=false;this.view=undefined;this.widget=undefined}referenceElementWatcher(t){r(this,t)}allowedWorkflowsWatcher(t){if(this.widget){this.widget.allowedWorkflows=t}}labelOptionsWatcher(t){if(this.widget){this.widget.labelOptions=t}}layerInfosWatcher(t){if(this.widget){this.widget.layerInfos=t}}snappingOptionsWatcher(t){if(this.widget){this.widget.snappingOptions=t}}supportingWidgetDefaultsWatcher(t){if(this.widget){this.widget.supportingWidgetDefaults=t}}tooltipOptionsWatcher(t){if(this.widget){this.widget.tooltipOptions=t}}visibleElementsWatcher(t){if(this.widget){this.widget.visibleElements=t}}positionWatcher(t){if(t!==undefined&&this.widget){this.view.ui.move(this.childElem,t)}}viewWatcher(t){if(t!==undefined&&this.widget){this.widget.view=t}}async cancelWorkflow(){await(this.widget?.cancelWorkflow())}async deleteFeatureFromWorkflow(){await(this.widget?.deleteFeatureFromWorkflow())}async startCreateFeaturesWorkflowAtFeatureCreation(t){await(this.widget?.startCreateFeaturesWorkflowAtFeatureCreation(t))}async startCreateFeaturesWorkflowAtFeatureTypeSelection(){await(this.widget?.startCreateFeaturesWorkflowAtFeatureTypeSelection())}async startUpdateWorkflowAtFeatureEdit(t){await(this.widget?.startUpdateWorkflowAtFeatureEdit(t))}async startUpdateWorkflowAtFeatureSelection(){await(this.widget?.startUpdateWorkflowAtFeatureSelection())}async startUpdateWorkflowAtMultipleFeatureSelection(t){await(this.widget?.startUpdateWorkflowAtMultipleFeatureSelection(t))}async componentDidLoad(){const t=this._createParams();const i=await a(t);this.widget=i;this._addWatchers();this.widgetReady.emit({widget:this.widget});n(this)}disconnectedCallback(){f(this)}render(){if(this.expandable){return e("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},e("div",{ref:t=>this.childElem=t}))}return e("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await h();o(this,t((()=>this.widget.activeWorkflow),(t=>this.activeWorkflow=t),{initial:true}))}_createParams(){const t={container:this.childElem};if(this.allowedWorkflows){t.allowedWorkflows=this.allowedWorkflows}if(this.labelOptions){t.labelOptions=this.labelOptions}if(this.layerInfos){t.layerInfos=this.layerInfos}if(this.snappingOptions){t.snappingOptions=this.snappingOptions}if(this.supportingWidgetDefaults){t.supportingWidgetDefaults=this.supportingWidgetDefaults}if(this.tooltipOptions){t.tooltipOptions=this.tooltipOptions}if(this.visibleElements){t.visibleElements=this.visibleElements}if(this.view){t.view=this.view}return t}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],allowedWorkflows:["allowedWorkflowsWatcher"],labelOptions:["labelOptionsWatcher"],layerInfos:["layerInfosWatcher"],snappingOptions:["snappingOptionsWatcher"],supportingWidgetDefaults:["supportingWidgetDefaultsWatcher"],tooltipOptions:["tooltipOptionsWatcher"],visibleElements:["visibleElementsWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};d.style=c;export{d as arcgis_editor};
|
|
2
|
+
//# sourceMappingURL=p-3093e1a6.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as e,g as s}from"./p-8f9b4469.js";import{B as h}from"./p-0222402f.js";import{r as n,c as r}from"./p-6eddf41d.js";import{o as a}from"./p-8cd5e748.js";const c="";const f=class{constructor(e){t(this,e);this.widgetReady=i(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.facility=undefined;this.level=undefined;this.longNames=undefined;this.site=undefined;this.position="bottom-left";this.expandable=false;this.widget=undefined;this.view=undefined}referenceElementWatcher(t){n(this,t)}facilityWatcher(t){if(this.widget){this.widget.facility=t}}levelWatcher(t){if(this.widget){this.widget.level=t}}longNamesWatcher(t){if(t!==undefined&&this.widget){this.widget.longNames=t}}siteWatcher(t){if(this.widget){this.widget.site=t}}positionWatcher(t){if(t!==undefined&&this.widget){this.view.ui.move(this.childElem,t)}}viewWatcher(t){if(t!==undefined&&this.widget){this.widget.view=t}}async updateWebDocument(t){return this.widget?.updateWebDocument(t)}async componentDidLoad(){const t=this._createParams();const i=await h(t);this.widget=i;this.widgetReady.emit({widget:this.widget});r(this)}disconnectedCallback(){a(this)}render(){if(this.expandable){return e("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},e("div",{ref:t=>this.childElem=t}))}return e("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};if(this.facility){t.facility=this.facility}if(this.level){t.level=this.level}if(this.longNames!==undefined){t.longNames=this.longNames}if(this.site){t.site=this.site}if(this.view){t.view=this.view}return t}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],facility:["facilityWatcher"],level:["levelWatcher"],longNames:["longNamesWatcher"],site:["siteWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};f.style=c;export{f as arcgis_floor_filter};
|
|
2
|
+
//# sourceMappingURL=p-33611678.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,h as i,g as s}from"./p-8f9b4469.js";import{a4 as r}from"./p-0222402f.js";import{r as n,c as h}from"./p-6eddf41d.js";import{o}from"./p-8cd5e748.js";const a="arcgis-zoom{}";const c=class{constructor(i){t(this,i);this.widgetReady=e(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.layout=undefined;this.view=undefined;this.position="bottom-left";this.widget=undefined}referenceElementWatcher(t){n(this,t)}layoutWatcher(t){if(this.widget){this.widget.layout=t}}viewWatcher(t){if(t!==undefined&&this.widget){this.widget.view=t}}positionWatcher(t){if(t!==undefined&&this.widget){this.view.ui.move(this.childElem,t)}}async zoomIn(){return this.widget?.viewModel.zoomIn()}async zoomOut(){return this.widget?.viewModel.zoomOut()}async componentDidLoad(){const t=this._createParams();const e=await r(t);this.widget=e;this.widgetReady.emit({widget:this.widget});h(this)}disconnectedCallback(){o(this)}render(){return i("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};if(this.layout){t.layout=this.layout}if(this.view){t.view=this.view}return t}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],layout:["layoutWatcher"],view:["viewWatcher"],position:["positionWatcher"]}}};c.style=a;export{c as arcgis_zoom};
|
|
2
|
+
//# sourceMappingURL=p-35722f4d.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,h as e,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,h as e,g as s}from"./p-8f9b4469.js";import{m as h,i as n}from"./p-0222402f.js";import{r,c as a,a as o}from"./p-6eddf41d.js";import{o as c}from"./p-8cd5e748.js";const d="";const f=class{constructor(e){i(this,e);this.widgetReady=t(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.conversions=undefined;this.currentLocation=undefined;this.formats=undefined;this.locationSymbol=undefined;this.mode=undefined;this.multipleConversions=undefined;this.orientation=undefined;this.storageEnabled=undefined;this.storageType=undefined;this.visibleElements=undefined;this.position="bottom-left";this.expandable=false;this.view=undefined;this.widget=undefined}referenceElementWatcher(i){r(this,i)}conversionsWatcher(i){if(this.widget){this.widget.conversions=i}}formatsWatcher(i){if(this.widget){this.widget.formats=i}}locationSymbolWatcher(i){if(this.widget){this.widget.locationSymbol=i}}modeWatcher(i){if(this.widget){this.widget.mode=i}}multipleConversionsWatcher(i){if(this.widget){this.widget.multipleConversions=i}}orientationWatcher(i){if(this.widget){this.widget.orientation=i}}storageEnabledWatcher(i){if(i!==undefined&&this.widget){this.widget.storageEnabled=i}}storageTypeWatcher(i){if(this.widget){this.widget.storageType=i}}visibleElementsWatcher(i){if(this.widget){this.widget.visibleElements=i}}positionWatcher(i){if(i!==undefined&&this.widget){this.view.ui.move(this.childElem,i)}}viewWatcher(i){if(i!==undefined&&this.widget){this.widget.view=i}}async reverseConvert(i,t){return await(this.widget?.reverseConvert(i,t))}async componentDidLoad(){const i=this._createParams();const t=await h(i);this.widget=t;await this._addWatchers();this.widgetReady.emit({widget:this.widget});a(this)}disconnectedCallback(){c(this)}render(){if(this.expandable){return e("arcgis-expand",{position:this.position,ref:i=>this.expandElem=i},e("div",{ref:i=>this.childElem=i}))}return e("div",{ref:i=>this.childElem=i})}async _addWatchers(){const{watch:i}=await n();o(this,i((()=>this.widget.currentLocation),(i=>this.currentLocation=i),{initial:true}))}_createParams(){const i={container:this.childElem};if(this.conversions){i.conversions=this.conversions}if(this.formats){i.formats=this.formats}if(this.locationSymbol){i.locationSymbol=this.locationSymbol}if(this.mode){i.mode=this.mode}if(this.multipleConversions){i.multipleConversions=this.multipleConversions}if(this.orientation){i.orientation=this.orientation}if(this.storageEnabled!==undefined){i.storageEnabled=this.storageEnabled}if(this.storageType){i.storageType=this.storageType}if(this.visibleElements){i.visibleElements=this.visibleElements}if(this.view){i.view=this.view}return i}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],conversions:["conversionsWatcher"],formats:["formatsWatcher"],locationSymbol:["locationSymbolWatcher"],mode:["modeWatcher"],multipleConversions:["multipleConversionsWatcher"],orientation:["orientationWatcher"],storageEnabled:["storageEnabledWatcher"],storageType:["storageTypeWatcher"],visibleElements:["visibleElementsWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};f.style=d;export{f as arcgis_coordinate_conversion};
|
|
2
|
+
//# sourceMappingURL=p-3ebdcabc.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as e,h as t,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as e,h as t,g as s}from"./p-8f9b4469.js";import{X as n}from"./p-0222402f.js";import{r,c as a}from"./p-6eddf41d.js";import{o as h}from"./p-8cd5e748.js";const d="arcgis-swipe{}";const c=class{constructor(t){i(this,t);this.widgetReady=e(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.direction=undefined;this.dragLabel=undefined;this.leadingLayers=undefined;this.swipePosition=undefined;this.trailingLayers=undefined;this.view=undefined;this.position="bottom-left";this.widget=undefined}directionWatcher(i){if(i!==undefined&&this.widget){this.widget.direction=i}}dragLabelWatcher(i){if(i!==undefined&&this.widget){this.widget.dragLabel=i}}leadingLayersWatcher(i){if(i!==undefined&&this.widget){this.widget.leadingLayers=i}}swipePositionWatcher(i){if(i!==undefined&&this.widget){this.widget.position=i}}trailingLayersWatcher(i){if(i!==undefined&&this.widget){this.widget.trailingLayers=i}}positionWatcher(i){if(i!==undefined&&this.widget){if(typeof this.view!=="string"){this.view.ui.move(this.childElem,i)}}}referenceElementWatcher(i){r(this,i)}viewWatcher(i){if(i!==undefined&&this.widget){this.widget.view=i}}async componentDidLoad(){const i=this._createParams();const e=await n(i);this.widget=e;this.widgetReady.emit({widget:this.widget});a(this)}disconnectedCallback(){h(this)}render(){return t("div",{ref:i=>this.childElem=i})}_createParams(){const i={container:this.childElem};if(this.view){i.view=this.view}return i}get el(){return s(this)}static get watchers(){return{direction:["directionWatcher"],dragLabel:["dragLabelWatcher"],leadingLayers:["leadingLayersWatcher"],swipePosition:["swipePositionWatcher"],trailingLayers:["trailingLayersWatcher"],position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style=d;export{c as arcgis_swipe};
|
|
2
|
+
//# sourceMappingURL=p-3ee5a8da.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as e,h as s,g as i}from"./p-8f9b4469.js";import{l as r}from"./p-0222402f.js";import{r as n,c as h}from"./p-6eddf41d.js";import{o as c}from"./p-8cd5e748.js";const a="";const o=class{constructor(s){t(this,s);this.widgetReady=e(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.position="bottom-left";this.widget=undefined;this.view=undefined}referenceElementWatcher(t){n(this,t)}positionWatcher(t){if(t!==undefined&&this.widget){this.view.ui.move(this.childElem,t)}}viewWatcher(t){if(t!==undefined&&this.widget){this.widget.view=t}}async reset(){return this.widget?.reset()}async componentDidLoad(){const t=this._createParams();const e=await r(t);this.widget=e;this.widgetReady.emit({widget:this.widget});h(this)}disconnectedCallback(){c(this)}render(){return s("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};if(this.view){t.view=this.view}return t}get el(){return i(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};o.style=a;export{o as arcgis_compass};
|
|
2
|
+
//# sourceMappingURL=p-493cd9ab.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["compassCss","ArcgisCompass","this","_watchHandles","referenceElementWatcher","newValue","referenceElementHelper","positionWatcher","undefined","widget","view","ui","move","childElem","viewWatcher","reset","componentDidLoad","params","_createParams","newWidgetsCompass","widgetReady","emit","checkForView","disconnectedCallback","onDisconnectedHelper","render","h","ref","el","container"],"sources":["src/components/compass/compass.css?tag=arcgis-compass","src/components/compass/compass.tsx"],"sourcesContent":[null,"import type { EventEmitter, VNode } from \"@stencil/core\";\nimport { Component, Element, Event, h, Method, Prop, Watch } from \"@stencil/core\";\n\n// arcgis imports\nimport { newWidgetsCompass } from \"@arcgis/core-adapter\";\nimport type Compass from \"@arcgis/core/widgets/Compass\";\nimport type { ArcgisReferenceElement, WidgetElement } from \"../../utils/component-utils\";\nimport { checkForView, referenceElementHelper } from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport type { ArcGISMapView, ArcGISSceneView } from \"../types\";\n\nexport type CompassWidget = InstanceType<typeof Compass>;\n\n@Component({\n tag: \"arcgis-compass\",\n styleUrl: \"compass.css\",\n shadow: false\n})\nexport class ArcgisCompass implements WidgetElement {\n //--------------------------------------------------------------------------\n //\n // Element\n //\n //--------------------------------------------------------------------------\n\n @Element() el!: HTMLDivElement;\n\n childElem: HTMLDivElement;\n\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n\n @Prop() referenceElement: ArcgisReferenceElement | string;\n\n @Watch(\"referenceElement\")\n referenceElementWatcher(newValue: ArcgisReferenceElement | string): void {\n referenceElementHelper(this, newValue);\n }\n\n @Prop() position = \"bottom-left\";\n\n @Watch(\"position\")\n positionWatcher(newValue: string): void {\n if (newValue !== undefined && this.widget) {\n this.view.ui.move(this.childElem, newValue);\n }\n }\n\n @Prop({ mutable: true }) widget: CompassWidget;\n\n @Prop({ mutable: true }) view: ArcGISMapView | ArcGISSceneView;\n\n @Watch(\"view\")\n viewWatcher(newValue: ArcGISMapView | ArcGISSceneView): void {\n if (newValue !== undefined && this.widget) {\n this.widget.view = newValue;\n }\n }\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady!: EventEmitter<{ widget: __esri.Compass }>;\n\n //--------------------------------------------------------------------------\n //\n // Methods\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async reset(): Promise<void> {\n return this.widget?.reset();\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsCompass(params);\n\n this.widget = widget;\n\n this.widgetReady.emit({ widget: this.widget });\n\n checkForView(this);\n }\n\n disconnectedCallback(): void {\n onDisconnectedHelper(this);\n }\n\n render(): VNode {\n return <div ref={(el) => (this.childElem = el!)}></div>;\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n\n private _createParams(): Partial<CompassWidget> {\n const params: Partial<CompassWidget> = {\n container: this.childElem\n };\n\n if (this.view) {\n params.view = this.view;\n }\n\n return params;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["compassCss","ArcgisCompass","this","_watchHandles","referenceElementWatcher","newValue","referenceElementHelper","positionWatcher","undefined","widget","view","ui","move","childElem","viewWatcher","reset","componentDidLoad","params","_createParams","newWidgetsCompass","widgetReady","emit","checkForView","disconnectedCallback","onDisconnectedHelper","render","h","ref","el","container"],"sources":["src/components/compass/compass.css?tag=arcgis-compass","src/components/compass/compass.tsx"],"sourcesContent":[null,"import type { EventEmitter, VNode } from \"@stencil/core\";\nimport { Component, Element, Event, h, Method, Prop, Watch } from \"@stencil/core\";\n\n// arcgis imports\nimport { newWidgetsCompass } from \"@arcgis/core-adapter\";\nimport type Compass from \"@arcgis/core/widgets/Compass\";\nimport type { ArcgisReferenceElement, WidgetElement } from \"../../utils/component-utils\";\nimport { checkForView, referenceElementHelper } from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport type { ArcGISMapView, ArcGISSceneView } from \"../types\";\n\nexport type CompassWidget = InstanceType<typeof Compass>;\n\n@Component({\n tag: \"arcgis-compass\",\n styleUrl: \"compass.css\",\n shadow: false\n})\nexport class ArcgisCompass implements WidgetElement {\n //--------------------------------------------------------------------------\n //\n // Element\n //\n //--------------------------------------------------------------------------\n\n @Element() el!: HTMLDivElement;\n\n childElem: HTMLDivElement;\n\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n\n @Prop() referenceElement: ArcgisReferenceElement | string;\n\n @Watch(\"referenceElement\")\n referenceElementWatcher(newValue: ArcgisReferenceElement | string): void {\n referenceElementHelper(this, newValue);\n }\n\n @Prop() position = \"bottom-left\";\n\n @Watch(\"position\")\n positionWatcher(newValue: string): void {\n if (newValue !== undefined && this.widget) {\n this.view.ui.move(this.childElem, newValue);\n }\n }\n\n @Prop({ mutable: true }) widget: CompassWidget;\n\n @Prop({ mutable: true }) view: ArcGISMapView | ArcGISSceneView;\n\n @Watch(\"view\")\n viewWatcher(newValue: ArcGISMapView | ArcGISSceneView): void {\n if (newValue !== undefined && this.widget) {\n this.widget.view = newValue;\n }\n }\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady!: EventEmitter<{ widget: __esri.Compass }>;\n\n //--------------------------------------------------------------------------\n //\n // Methods\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async reset(): Promise<void> {\n return this.widget?.reset();\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsCompass(params);\n\n this.widget = widget;\n\n this.widgetReady.emit({ widget: this.widget });\n\n checkForView(this);\n }\n\n disconnectedCallback(): void {\n onDisconnectedHelper(this);\n }\n\n render(): VNode {\n return <div ref={(el) => (this.childElem = el!)}></div>;\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n\n private _createParams(): Partial<CompassWidget> {\n const params: Partial<CompassWidget> = {\n container: this.childElem\n };\n\n if (this.view) {\n params.view = this.view;\n }\n\n return params;\n }\n}\n"],"mappings":"4KAAA,MAAMA,EAAa,G,MCkBNC,EAAa,M,kEA4CxBC,KAAAC,cAAsC,G,8CApBnB,c,0CAJnB,uBAAAC,CAAwBC,GACtBC,EAAuBJ,KAAMG,E,CAM/B,eAAAE,CAAgBF,GACd,GAAIA,IAAaG,WAAaN,KAAKO,OAAQ,CACzCP,KAAKQ,KAAKC,GAAGC,KAAKV,KAAKW,UAAWR,E,EAStC,WAAAS,CAAYT,GACV,GAAIA,IAAaG,WAAaN,KAAKO,OAAQ,CACzCP,KAAKO,OAAOC,KAAOL,C,EAqBvB,WAAMU,GACJ,OAAOb,KAAKO,QAAQM,O,CAStB,sBAAMC,GACJ,MAAMC,EAASf,KAAKgB,gBAEpB,MAAMT,QAAeU,EAAkBF,GAEvCf,KAAKO,OAASA,EAEdP,KAAKkB,YAAYC,KAAK,CAAEZ,OAAQP,KAAKO,SAErCa,EAAapB,K,CAGf,oBAAAqB,GACEC,EAAqBtB,K,CAGvB,MAAAuB,GACE,OAAOC,EAAA,OAAKC,IAAMC,GAAQ1B,KAAKW,UAAYe,G,CAQrC,aAAAV,GACN,MAAMD,EAAiC,CACrCY,UAAW3B,KAAKW,WAGlB,GAAIX,KAAKQ,KAAM,CACbO,EAAOP,KAAOR,KAAKQ,I,CAGrB,OAAOO,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as e,g as s}from"./p-8f9b4469.js";import{O as h,i as a}from"./p-0222402f.js";import{r,c as n,a as c}from"./p-6eddf41d.js";import{o as d}from"./p-8cd5e748.js";const o="";const f=class{constructor(e){t(this,e);this.widgetReady=i(this,"widgetReady",7);this.printComplete=i(this,"printComplete",7);this.printSubmit=i(this,"printSubmit",7);this._watchHandles=[];this.referenceElement=undefined;this.allowedFormats=undefined;this.allowedLayouts=undefined;this.exportedLinks=undefined;this.extraParameters=undefined;this.includeDefaultTemplates=undefined;this.portal=undefined;this.printServiceUrl=undefined;this.templateCustomTextElements=undefined;this.templateOptions=undefined;this.position="bottom-left";this.expandable=false;this.view=undefined;this.widget=undefined}referenceElementWatcher(t){r(this,t)}allowedFormatsWatcher(t){if(t&&this.widget){this.widget.allowedFormats=t.split(",")}}allowedLayoutsWatcher(t){if(t&&this.widget){this.widget.allowedLayouts=t.split(",")}}extraParametersWatcher(t){if(t&&this.widget){this.widget.extraParameters=t}}includeDefaultTemplatesWatcher(t){if(t!==undefined&&this.widget){this.widget.includeDefaultTemplates=t}}portalWatcher(t){if(t&&this.widget){this.widget.portal=t}}printServiceUrlWatcher(t){if(t&&this.widget){this.widget.printServiceUrl=t}}templateCustomTextElementsWatcher(t){if(this.widget){this.widget.templateCustomTextElements=t}}templateOptionsWatcher(t){if(this.widget){this.widget.templateOptions=t}}positionWatcher(t){if(t!==undefined&&this.widget){this.view.ui.move(this.childElem,t)}}viewWatcher(t){if(t!==undefined&&this.widget){this.widget.view=t}}async componentDidLoad(){const t=this._createParams();const i=await h(t);this.widget=i;await this._addWatchers();this._proxyEvents();this.widgetReady.emit({widget:this.widget});n(this)}disconnectedCallback(){d(this)}render(){if(this.expandable){return e("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},e("div",{ref:t=>this.childElem=t}))}return e("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await a();c(this,t((()=>this.widget.exportedLinks),(t=>this.exportedLinks=t),{initial:true}))}_createParams(){const t={container:this.childElem};if(this.allowedFormats){t.allowedFormats=this.allowedFormats}if(this.allowedLayouts){t.allowedLayouts=this.allowedLayouts}if(this.extraParameters){t.extraParameters=this.extraParameters}if(this.includeDefaultTemplates!==undefined){t.includeDefaultTemplates=this.includeDefaultTemplates}if(this.portal){t.portal=this.portal}if(this.printServiceUrl){t.printServiceUrl=this.printServiceUrl}if(this.templateCustomTextElements){t.templateCustomTextElements=this.templateCustomTextElements}if(this.templateOptions){t.templateOptions=this.templateOptions}if(this.view){t.view=this.view}return t}_proxyEvents(){this.widget.on("complete",(t=>this.printComplete.emit(t)));this.widget.on("submit",(t=>this.printSubmit.emit(t)))}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],allowedFormats:["allowedFormatsWatcher"],allowedLayouts:["allowedLayoutsWatcher"],extraParameters:["extraParametersWatcher"],includeDefaultTemplates:["includeDefaultTemplatesWatcher"],portal:["portalWatcher"],printServiceUrl:["printServiceUrlWatcher"],templateCustomTextElements:["templateCustomTextElementsWatcher"],templateOptions:["templateOptionsWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};f.style=o;export{f as arcgis_print};
|
|
2
|
+
//# sourceMappingURL=p-4cb56a4a.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as i,c as t,h as e,g as s}from"./p-8f9b4469.js";import{Z as h,i as n}from"./p-0222402f.js";import{r,c as a,a as d}from"./p-6eddf41d.js";import{o as f}from"./p-8cd5e748.js";const c="arcgis-time-slider{}";const o=class{constructor(e){i(this,e);this.triggerAction=t(this,"triggerAction",7);this.widgetReady=t(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.actions=undefined;this.effectiveStops=undefined;this.fullTimeExtent=undefined;this.layout=undefined;this.loop=undefined;this.mode=undefined;this.playRate=undefined;this.stops=undefined;this.tickConfigs=undefined;this.timeExtent=undefined;this.timeVisible=undefined;this.timeZone=undefined;this.view=undefined;this.position="bottom-left";this.expandable=false;this.widget=undefined}referenceElementWatcher(i){r(this,i)}actionsWatcher(i){if(this.widget){this.widget.actions=i}}fullTimeExtentWatcher(i){if(this.widget){this.widget.fullTimeExtent=i}}layoutWatcher(i){if(this.widget){this.widget.layout=i}}loopWatcher(i){if(i!==undefined&&this.widget){this.widget.loop=i}}modeWatcher(i){if(this.widget){this.widget.mode=i}}playRateWatcher(i){if(i!==undefined&&this.widget){this.widget.playRate=i}}stopsWatcher(i){if(this.widget){this.widget.stops=i}}tickConfigsWatcher(i){if(this.widget){this.widget.tickConfigs=i}}timeExtentWatcher(i){if(this.widget){this.widget.timeExtent=i}}timeVisibleWatcher(i){if(i!==undefined&&this.widget){this.widget.timeVisible=i}}timeZoneWatcher(i){if(this.widget){this.widget.timeZone=i}}viewWatcher(i){if(i!==undefined&&this.widget){this.widget.view=i}}positionWatcher(i){if(i!==undefined&&this.widget){this.view.ui.move(this.childElem,i)}}async next(){return this.widget?.next()}async play(){return this.widget?.play()}async previous(){return this.widget?.previous()}async stop(){return this.widget?.stop()}async componentDidLoad(){const i=this._createParams();const t=await h(i);this.widget=t;await this._addWatchers();this._proxyEvents();this.widgetReady.emit({widget:this.widget});a(this)}disconnectedCallback(){f(this)}render(){if(this.expandable){return e("arcgis-expand",{position:this.position,ref:i=>this.expandElem=i},e("div",{ref:i=>this.childElem=i}))}return e("div",{ref:i=>this.childElem=i})}async _addWatchers(){const{watch:i}=await n();d(this,i((()=>this.widget.effectiveStops),(i=>this.effectiveStops=i),{initial:true}))}_createParams(){const i={container:this.childElem};if(this.actions!==undefined){i.actions=this.actions}if(this.fullTimeExtent!==undefined){i.fullTimeExtent=this.fullTimeExtent}if(this.layout!==undefined){i.layout=this.layout}if(this.loop!==undefined){i.loop=this.loop}if(this.mode!==undefined){i.mode=this.mode}if(this.playRate!==undefined){i.playRate=this.playRate}if(this.stops!==undefined){i.stops=this.stops}if(this.tickConfigs!==undefined){i.tickConfigs=this.tickConfigs}if(this.timeExtent!==undefined){i.timeExtent=this.timeExtent}if(this.timeVisible!==undefined){i.timeVisible=this.timeVisible}if(this.timeZone){i.timeZone=this.timeZone}if(this.view){i.view=this.view}return i}async _proxyEvents(){this.widget?.on("trigger-action",(i=>this.triggerAction.emit(i)))}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],actions:["actionsWatcher"],fullTimeExtent:["fullTimeExtentWatcher"],layout:["layoutWatcher"],loop:["loopWatcher"],mode:["modeWatcher"],playRate:["playRateWatcher"],stops:["stopsWatcher"],tickConfigs:["tickConfigsWatcher"],timeExtent:["timeExtentWatcher"],timeVisible:["timeVisibleWatcher"],timeZone:["timeZoneWatcher"],view:["viewWatcher"],position:["positionWatcher"]}}};o.style=c;export{o as arcgis_time_slider};
|
|
2
|
+
//# sourceMappingURL=p-57fed476.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["timeSliderCss","ArcgisTimeSlider","this","_watchHandles","referenceElementWatcher","newValue","referenceElementHelper","actionsWatcher","widget","actions","fullTimeExtentWatcher","fullTimeExtent","layoutWatcher","layout","loopWatcher","undefined","loop","modeWatcher","mode","playRateWatcher","playRate","stopsWatcher","stops","tickConfigsWatcher","tickConfigs","timeExtentWatcher","timeExtent","timeVisibleWatcher","timeVisible","timeZoneWatcher","timeZone","viewWatcher","view","positionWatcher","ui","move","childElem","next","play","previous","stop","componentDidLoad","params","_createParams","newWidgetsTimeSlider","_addWatchers","_proxyEvents","widgetReady","emit","checkForView","disconnectedCallback","onDisconnectedHelper","render","expandable","h","position","ref","el","expandElem","watch","importCoreReactiveUtils","addHandles","effectiveStops","value","initial","container","on","e","triggerAction"],"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 type { EventEmitter, VNode } from \"@stencil/core\";\nimport { Component, Element, Event, Method, Prop, 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 type { ArcgisReferenceElement } from \"../../utils/component-utils\";\nimport { addHandles, checkForView, referenceElementHelper } from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport type { ExpandableComponent } from \"../../utils/expandable\";\nimport type { 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!)}>\n <div ref={(el) => (this.childElem = el!)}></div>\n </arcgis-expand>\n );\n }\n return <div ref={(el) => (this.childElem = el!)}></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"],"mappings":"0LAAA,MAAMA,EAAgB,uB,MCkBTC,EAAgB,M,+GAqJ3BC,KAAAC,cAAsC,G,wWAbnB,c,gBASE,M,sBA3HrB,uBAAAC,CAAwBC,GACtBC,EAAuBJ,KAAMG,E,CAM/B,cAAAE,CAAeF,GACb,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOC,QAAUJ,C,EAS1B,qBAAAK,CAAsBL,GACpB,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOG,eAAiBN,C,EAOjC,aAAAO,CAAcP,GACZ,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOK,OAASR,C,EAOzB,WAAAS,CAAYT,GACV,GAAIA,IAAaU,WAAab,KAAKM,OAAQ,CACzCN,KAAKM,OAAOQ,KAAOX,C,EAOvB,WAAAY,CAAYZ,GACV,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOU,KAAOb,C,EAOvB,eAAAc,CAAgBd,GACd,GAAIA,IAAaU,WAAab,KAAKM,OAAQ,CACzCN,KAAKM,OAAOY,SAAWf,C,EAO3B,YAAAgB,CAAahB,GACX,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOc,MAAQjB,C,EAOxB,kBAAAkB,CAAmBlB,GACjB,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOgB,YAAcnB,C,EAO9B,iBAAAoB,CAAkBpB,GAChB,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOkB,WAAarB,C,EAO7B,kBAAAsB,CAAmBtB,GACjB,GAAIA,IAAaU,WAAab,KAAKM,OAAQ,CACzCN,KAAKM,OAAOoB,YAAcvB,C,EAO9B,eAAAwB,CAAgBxB,GACd,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOsB,SAAWzB,C,EAO3B,WAAA0B,CAAY1B,GACV,GAAIA,IAAaU,WAAab,KAAKM,OAAQ,CACzCN,KAAKM,OAAOwB,KAAO3B,C,EAOvB,eAAA4B,CAAgB5B,GACd,GAAIA,IAAaU,WAAab,KAAKM,OAAQ,CACzCN,KAAK8B,KAAKE,GAAGC,KAAKjC,KAAKkC,UAAW/B,E,EA2BtC,UAAMgC,GACJ,OAAOnC,KAAKM,QAAQ6B,M,CAItB,UAAMC,GACJ,OAAOpC,KAAKM,QAAQ8B,M,CAItB,cAAMC,GACJ,OAAOrC,KAAKM,QAAQ+B,U,CAItB,UAAMC,GACJ,OAAOtC,KAAKM,QAAQgC,M,CAStB,sBAAMC,GACJ,MAAMC,EAASxC,KAAKyC,gBAEpB,MAAMnC,QAAeoC,EAAqBF,GAE1CxC,KAAKM,OAASA,QAERN,KAAK2C,eAEX3C,KAAK4C,eAEL5C,KAAK6C,YAAYC,KAAK,CAAExC,OAAQN,KAAKM,SAErCyC,EAAa/C,K,CAGf,oBAAAgD,GACEC,EAAqBjD,K,CAGvB,MAAAkD,GACE,GAAIlD,KAAKmD,WAAY,CACnB,OACEC,EAAA,iBAAeC,SAAUrD,KAAKqD,SAAUC,IAAMC,GAAQvD,KAAKwD,WAAaD,GACtEH,EAAA,OAAKE,IAAMC,GAAQvD,KAAKkC,UAAYqB,I,CAI1C,OAAOH,EAAA,OAAKE,IAAMC,GAAQvD,KAAKkC,UAAYqB,G,CAQrC,kBAAMZ,GACZ,MAAMc,MAAEA,SAAgBC,IAExBC,EACE3D,KACAyD,GACE,IAAMzD,KAAKM,OAAOsD,iBACjBC,GAAW7D,KAAK4D,eAAiBC,GAClC,CACEC,QAAS,O,CAMT,aAAArB,GACN,MAAMD,EAAoC,CACxCuB,UAAW/D,KAAKkC,WAGlB,GAAIlC,KAAKO,UAAYM,UAAW,CAC9B2B,EAAOjC,QAAUP,KAAKO,O,CAGxB,GAAIP,KAAKS,iBAAmBI,UAAW,CACrC2B,EAAO/B,eAAiBT,KAAKS,c,CAG/B,GAAIT,KAAKW,SAAWE,UAAW,CAC7B2B,EAAO7B,OAASX,KAAKW,M,CAGvB,GAAIX,KAAKc,OAASD,UAAW,CAC3B2B,EAAO1B,KAAOd,KAAKc,I,CAGrB,GAAId,KAAKgB,OAASH,UAAW,CAC3B2B,EAAOxB,KAAOhB,KAAKgB,I,CAGrB,GAAIhB,KAAKkB,WAAaL,UAAW,CAC/B2B,EAAOtB,SAAWlB,KAAKkB,Q,CAGzB,GAAIlB,KAAKoB,QAAUP,UAAW,CAC5B2B,EAAOpB,MAAQpB,KAAKoB,K,CAGtB,GAAIpB,KAAKsB,cAAgBT,UAAW,CAClC2B,EAAOlB,YAActB,KAAKsB,W,CAG5B,GAAItB,KAAKwB,aAAeX,UAAW,CACjC2B,EAAOhB,WAAaxB,KAAKwB,U,CAG3B,GAAIxB,KAAK0B,cAAgBb,UAAW,CAClC2B,EAAOd,YAAc1B,KAAK0B,W,CAG5B,GAAI1B,KAAK4B,SAAU,CACjBY,EAAOZ,SAAW5B,KAAK4B,Q,CAGzB,GAAI5B,KAAK8B,KAAM,CACbU,EAAOV,KAAO9B,KAAK8B,I,CAGrB,OAAOU,C,CAGD,kBAAMI,GACZ5C,KAAKM,QAAQ0D,GAAG,kBAAmBC,GAAMjE,KAAKkE,cAAcpB,KAAKmB,I"}
|
|
1
|
+
{"version":3,"names":["timeSliderCss","ArcgisTimeSlider","this","_watchHandles","referenceElementWatcher","newValue","referenceElementHelper","actionsWatcher","widget","actions","fullTimeExtentWatcher","fullTimeExtent","layoutWatcher","layout","loopWatcher","undefined","loop","modeWatcher","mode","playRateWatcher","playRate","stopsWatcher","stops","tickConfigsWatcher","tickConfigs","timeExtentWatcher","timeExtent","timeVisibleWatcher","timeVisible","timeZoneWatcher","timeZone","viewWatcher","view","positionWatcher","ui","move","childElem","next","play","previous","stop","componentDidLoad","params","_createParams","newWidgetsTimeSlider","_addWatchers","_proxyEvents","widgetReady","emit","checkForView","disconnectedCallback","onDisconnectedHelper","render","expandable","h","position","ref","el","expandElem","watch","importCoreReactiveUtils","addHandles","effectiveStops","value","initial","container","on","e","triggerAction"],"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 type { EventEmitter, VNode } from \"@stencil/core\";\nimport { Component, Element, Event, Method, Prop, 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 type { ArcgisReferenceElement } from \"../../utils/component-utils\";\nimport { addHandles, checkForView, referenceElementHelper } from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport type { ExpandableComponent } from \"../../utils/expandable\";\nimport type { 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!)}>\n <div ref={(el) => (this.childElem = el!)}></div>\n </arcgis-expand>\n );\n }\n return <div ref={(el) => (this.childElem = el!)}></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"],"mappings":"qLAAA,MAAMA,EAAgB,uB,MCkBTC,EAAgB,M,+GAqJ3BC,KAAAC,cAAsC,G,wWAbnB,c,gBASE,M,sBA3HrB,uBAAAC,CAAwBC,GACtBC,EAAuBJ,KAAMG,E,CAM/B,cAAAE,CAAeF,GACb,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOC,QAAUJ,C,EAS1B,qBAAAK,CAAsBL,GACpB,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOG,eAAiBN,C,EAOjC,aAAAO,CAAcP,GACZ,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOK,OAASR,C,EAOzB,WAAAS,CAAYT,GACV,GAAIA,IAAaU,WAAab,KAAKM,OAAQ,CACzCN,KAAKM,OAAOQ,KAAOX,C,EAOvB,WAAAY,CAAYZ,GACV,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOU,KAAOb,C,EAOvB,eAAAc,CAAgBd,GACd,GAAIA,IAAaU,WAAab,KAAKM,OAAQ,CACzCN,KAAKM,OAAOY,SAAWf,C,EAO3B,YAAAgB,CAAahB,GACX,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOc,MAAQjB,C,EAOxB,kBAAAkB,CAAmBlB,GACjB,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOgB,YAAcnB,C,EAO9B,iBAAAoB,CAAkBpB,GAChB,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOkB,WAAarB,C,EAO7B,kBAAAsB,CAAmBtB,GACjB,GAAIA,IAAaU,WAAab,KAAKM,OAAQ,CACzCN,KAAKM,OAAOoB,YAAcvB,C,EAO9B,eAAAwB,CAAgBxB,GACd,GAAIH,KAAKM,OAAQ,CACfN,KAAKM,OAAOsB,SAAWzB,C,EAO3B,WAAA0B,CAAY1B,GACV,GAAIA,IAAaU,WAAab,KAAKM,OAAQ,CACzCN,KAAKM,OAAOwB,KAAO3B,C,EAOvB,eAAA4B,CAAgB5B,GACd,GAAIA,IAAaU,WAAab,KAAKM,OAAQ,CACzCN,KAAK8B,KAAKE,GAAGC,KAAKjC,KAAKkC,UAAW/B,E,EA2BtC,UAAMgC,GACJ,OAAOnC,KAAKM,QAAQ6B,M,CAItB,UAAMC,GACJ,OAAOpC,KAAKM,QAAQ8B,M,CAItB,cAAMC,GACJ,OAAOrC,KAAKM,QAAQ+B,U,CAItB,UAAMC,GACJ,OAAOtC,KAAKM,QAAQgC,M,CAStB,sBAAMC,GACJ,MAAMC,EAASxC,KAAKyC,gBAEpB,MAAMnC,QAAeoC,EAAqBF,GAE1CxC,KAAKM,OAASA,QAERN,KAAK2C,eAEX3C,KAAK4C,eAEL5C,KAAK6C,YAAYC,KAAK,CAAExC,OAAQN,KAAKM,SAErCyC,EAAa/C,K,CAGf,oBAAAgD,GACEC,EAAqBjD,K,CAGvB,MAAAkD,GACE,GAAIlD,KAAKmD,WAAY,CACnB,OACEC,EAAA,iBAAeC,SAAUrD,KAAKqD,SAAUC,IAAMC,GAAQvD,KAAKwD,WAAaD,GACtEH,EAAA,OAAKE,IAAMC,GAAQvD,KAAKkC,UAAYqB,I,CAI1C,OAAOH,EAAA,OAAKE,IAAMC,GAAQvD,KAAKkC,UAAYqB,G,CAQrC,kBAAMZ,GACZ,MAAMc,MAAEA,SAAgBC,IAExBC,EACE3D,KACAyD,GACE,IAAMzD,KAAKM,OAAOsD,iBACjBC,GAAW7D,KAAK4D,eAAiBC,GAClC,CACEC,QAAS,O,CAMT,aAAArB,GACN,MAAMD,EAAoC,CACxCuB,UAAW/D,KAAKkC,WAGlB,GAAIlC,KAAKO,UAAYM,UAAW,CAC9B2B,EAAOjC,QAAUP,KAAKO,O,CAGxB,GAAIP,KAAKS,iBAAmBI,UAAW,CACrC2B,EAAO/B,eAAiBT,KAAKS,c,CAG/B,GAAIT,KAAKW,SAAWE,UAAW,CAC7B2B,EAAO7B,OAASX,KAAKW,M,CAGvB,GAAIX,KAAKc,OAASD,UAAW,CAC3B2B,EAAO1B,KAAOd,KAAKc,I,CAGrB,GAAId,KAAKgB,OAASH,UAAW,CAC3B2B,EAAOxB,KAAOhB,KAAKgB,I,CAGrB,GAAIhB,KAAKkB,WAAaL,UAAW,CAC/B2B,EAAOtB,SAAWlB,KAAKkB,Q,CAGzB,GAAIlB,KAAKoB,QAAUP,UAAW,CAC5B2B,EAAOpB,MAAQpB,KAAKoB,K,CAGtB,GAAIpB,KAAKsB,cAAgBT,UAAW,CAClC2B,EAAOlB,YAActB,KAAKsB,W,CAG5B,GAAItB,KAAKwB,aAAeX,UAAW,CACjC2B,EAAOhB,WAAaxB,KAAKwB,U,CAG3B,GAAIxB,KAAK0B,cAAgBb,UAAW,CAClC2B,EAAOd,YAAc1B,KAAK0B,W,CAG5B,GAAI1B,KAAK4B,SAAU,CACjBY,EAAOZ,SAAW5B,KAAK4B,Q,CAGzB,GAAI5B,KAAK8B,KAAM,CACbU,EAAOV,KAAO9B,KAAK8B,I,CAGrB,OAAOU,C,CAGD,kBAAMI,GACZ5C,KAAKM,QAAQ0D,GAAG,kBAAmBC,GAAMjE,KAAKkE,cAAcpB,KAAKmB,I"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as t,h as i,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as t,h as i,g as s}from"./p-8f9b4469.js";import{o as h}from"./p-0222402f.js";import{r,c as n}from"./p-6eddf41d.js";import{o as a}from"./p-8cd5e748.js";const d="";const c=class{constructor(i){e(this,i);this.widgetReady=t(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.dateOrSeason=undefined;this.playSpeedMultiplier=undefined;this.timeSliderSteps=undefined;this.visibleElements=undefined;this.position="bottom-left";this.expandable=false;this.view=undefined;this.widget=undefined}referenceElementWatcher(e){r(this,e)}dateOrSeasonWatcher(e){if(e!==undefined&&this.widget){this.widget.dateOrSeason=e}}playSpeedMultiplierWatcher(e){if(e!==undefined&&this.widget){this.widget.playSpeedMultiplier=e}}timeSliderStepsWatcher(e){if(e!==undefined&&this.widget){this.widget.timeSliderSteps=e}}visibleElementsWatcher(e){if(this.widget){this.widget.visibleElements=e}}positionWatcher(e){if(e!==undefined&&this.widget){this.view.ui.move(this.childElem,e)}}viewWatcher(e){if(e!==undefined&&this.widget){this.widget.view=e}}async componentDidLoad(){const e=this._createParams();const t=await h(e);this.widget=t;this.widgetReady.emit({widget:this.widget});n(this)}disconnectedCallback(){a(this)}render(){if(this.expandable){return i("arcgis-expand",{position:this.position,ref:e=>this.expandElem=e},i("div",{ref:e=>this.childElem=e}))}return i("div",{ref:e=>this.childElem=e})}_createParams(){const e={container:this.childElem};if(this.view){e.view=this.view}if(this.dateOrSeason){e.dateOrSeason=this.dateOrSeason}if(this.playSpeedMultiplier){e.playSpeedMultiplier=this.playSpeedMultiplier}if(this.timeSliderSteps){e.timeSliderSteps=this.timeSliderSteps}return e}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],dateOrSeason:["dateOrSeasonWatcher"],playSpeedMultiplier:["playSpeedMultiplierWatcher"],timeSliderSteps:["timeSliderStepsWatcher"],visibleElements:["visibleElementsWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};c.style=d;export{c as arcgis_daylight};
|
|
2
|
+
//# sourceMappingURL=p-5e339e2e.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as e,g as s}from"./p-8f9b4469.js";import{k as r}from"./p-0222402f.js";import{r as h,c as n}from"./p-6eddf41d.js";import{o as a}from"./p-8cd5e748.js";const c="";const o=class{constructor(e){t(this,e);this.widgetReady=i(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.position="bottom-left";this.expandable=false;this.layers=undefined;this.visibleElements=undefined;this.widget=undefined;this.view=undefined}referenceElementWatcher(t){h(this,t)}positionWatcher(t){if(t!==undefined&&this.widget){this.view.ui.move(this.childElem,t)}}layersWatcher(t){if(this.widget){this.widget.layers=t}}visibleElementsWatcher(t){if(this.widget){this.widget.visibleElements=t}}viewWatcher(t){if(t!==undefined&&this.widget){this.widget.view=t}}async componentDidLoad(){const t=this._createParams();const i=await r(t);this.widget=i;if(this.view){i.view=this.view}this.widgetReady.emit({widget:this.widget});n(this)}disconnectedCallback(){a(this)}render(){if(this.expandable){return e("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},e("div",{ref:t=>this.childElem=t}))}return e("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};if(this.layers){t.layers=this.layers}if(this.visibleElements){t.visibleElements=this.visibleElements}if(this.view){t.view=this.view}return t}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],position:["positionWatcher"],layers:["layersWatcher"],visibleElements:["visibleElementsWatcher"],view:["viewWatcher"]}}};o.style=c;export{o as arcgis_building_explorer};
|
|
2
|
+
//# sourceMappingURL=p-6486a359.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,h as e,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,h as e,g as s}from"./p-8f9b4469.js";import{E as a}from"./p-0222402f.js";import{c as h}from"./p-6eddf41d.js";import{o as n}from"./p-8cd5e748.js";const r="arcgis-histogram-range-slider{}";const d=class{constructor(e){i(this,e);this.widgetReady=t(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.average=undefined;this.barCreatedFunction=undefined;this.bins=undefined;this.dataLineCreatedFunction=undefined;this.dataLines=undefined;this.excludedBarColor=undefined;this.includedBarColor=undefined;this.labelFormatFunction=undefined;this.max=0;this.min=0;this.precision=undefined;this.rangeType=undefined;this.standardDeviation=undefined;this.standardDeviationCount=undefined;this.values=undefined;this.position="bottom-left";this.expandable=false;this.widget=undefined}averageWatcher(i){if(this.widget){this.widget.average=i}}barCreatedFunctionWatcher(i){if(this.widget){this.widget.barCreatedFunction=i}}binsWatcher(i){if(this.widget){this.widget.bins=i}}dataLineCreatedFunctionWatcher(i){if(this.widget){this.widget.dataLineCreatedFunction=i}}dataLinesWatcher(i){if(this.widget){this.widget.dataLines=i}}excludedBarColorWatcher(i){if(this.widget){this.widget.excludedBarColor=i}}includedBarColorWatcher(i){if(this.widget){this.widget.includedBarColor=i}}labelFormatFunctionWatcher(i){if(this.widget){this.widget.labelFormatFunction=i}}maxWatcher(i){if(this.widget){this.widget.max=Number(i)}}minWatcher(i){if(this.widget){this.widget.min=Number(i)}}precisionWatcher(i){if(this.widget){this.widget.precision=i}}rangeTypeWatcher(i){if(this.widget){this.widget.rangeType=i}}standardDeviationWatcher(i){if(this.widget){this.widget.standardDeviation=i}}standardDeviationCountWatcher(i){if(this.widget){this.widget.standardDeviationCount=i}}valuesWatcher(i){if(this.widget){this.widget.values=i}}async componentDidLoad(){const i=this._createParams();const t=await a(i);this.widget=t;this.widgetReady.emit({widget:this.widget});h(this)}disconnectedCallback(){n(this)}render(){if(this.expandable){return e("arcgis-expand",{position:this.position,ref:i=>this.expandElem=i},e("div",{ref:i=>this.childElem=i}))}return e("div",{ref:i=>this.childElem=i})}_createParams(){const i={container:this.childElem,min:this.min,max:this.max};if(this.average!==undefined){i.average=this.average}if(this.barCreatedFunction){i.barCreatedFunction=this.barCreatedFunction}if(this.bins!==undefined){i.bins=this.bins}if(this.dataLineCreatedFunction){i.dataLineCreatedFunction=this.dataLineCreatedFunction}if(this.dataLines!==undefined){i.dataLines=this.dataLines}if(this.excludedBarColor){i.excludedBarColor=this.excludedBarColor}if(this.includedBarColor){i.includedBarColor=this.includedBarColor}if(this.labelFormatFunction){i.labelFormatFunction=this.labelFormatFunction}if(this.precision!==undefined){i.precision=this.precision}if(this.rangeType){i.rangeType=this.rangeType}if(this.standardDeviation!==undefined){i.standardDeviation=this.standardDeviation}if(this.standardDeviationCount!==undefined){i.standardDeviationCount=this.standardDeviationCount}if(this.values!==undefined){i.values=this.values}return i}get el(){return s(this)}static get watchers(){return{average:["averageWatcher"],barCreatedFunction:["barCreatedFunctionWatcher"],bins:["binsWatcher"],dataLineCreatedFunction:["dataLineCreatedFunctionWatcher"],dataLines:["dataLinesWatcher"],excludedBarColor:["excludedBarColorWatcher"],includedBarColor:["includedBarColorWatcher"],labelFormatFunction:["labelFormatFunctionWatcher"],max:["maxWatcher"],min:["minWatcher"],precision:["precisionWatcher"],rangeType:["rangeTypeWatcher"],standardDeviation:["standardDeviationWatcher"],standardDeviationCount:["standardDeviationCountWatcher"],values:["valuesWatcher"]}}};d.style=r;export{d as arcgis_histogram_range_slider};
|
|
2
|
+
//# sourceMappingURL=p-71bb4bf8.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,h as s,g as e}from"./p-8896b456.js";import{n as h,i as a,a as n,b as r,c}from"./p-758f6c5a.js";import{r as d,c as o,a as f,i as l,b as u,d as p,e as g,f as W}from"./p-6eddf41d.js";import{o as w}from"./p-8cd5e748.js";const m="";const y=class{constructor(s){i(this,s);this.widgetReady=t(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.activeBasemap=undefined;this.position="bottom-left";this.expandable=false;this.source=undefined;this.view=undefined;this.widget=undefined}referenceElementWatcher(i){d(this,i)}positionWatcher(i){if(i!==undefined&&this.widget){this.view.ui.move(this.childElem,i)}}sourceWatcher(i){if(this.widget){this.widget.source=i}}viewWatcher(i){if(i!==undefined&&this.widget){this.widget.view=i}}async componentDidLoad(){const i=this._createParams();const t=await h(i);this.widget=t;await this._addWatchers();this.widgetReady.emit({widget:this.widget});o(this)}disconnectedCallback(){w(this)}render(){if(this.expandable){return s("arcgis-expand",{position:this.position,ref:i=>this.expandElem=i},s("div",{ref:i=>this.childElem=i}))}return s("div",{ref:i=>this.childElem=i})}async _addWatchers(){const{watch:i}=await a();f(this,i((()=>this.widget.source),(()=>this.source=this.widget.source),{initial:true}));f(this,i((()=>this.widget.activeBasemap),(i=>this.activeBasemap=i),{initial:true}))}_createParams(){const i={container:this.childElem};if(this.view){i.view=this.view}return i}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],position:["positionWatcher"],source:["sourceWatcher"],view:["viewWatcher"]}}};y.style=m;const v="arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-ui-background)}";const b=class{constructor(s){i(this,s);this.widgetReady=t(this,"widgetReady",7);this._watchHandles=[];this.autoCollapse=false;this.closeOnEsc=true;this.collapseIcon=undefined;this.collapseTooltip=undefined;this.expanded=false;this.expandIcon=undefined;this.expandTooltip=undefined;this.group=undefined;this.iconNumber=undefined;this.mode="auto";this.referenceElement=undefined;this.position="top-right";this.view=undefined;this.widget=undefined}autoCollapseWatcher(i){if(i!==undefined&&this.widget){this.widget.autoCollapse=i}}closeOnEscWatcher(i){if(i!==undefined&&this.widget){this.widget.closeOnEsc=i}}collapseIconWatcher(i){if(this.widget){this.widget.collapseIcon=i;this.widget.collapseIconClass=i}}collapseTooltipWatcher(i){if(this.widget){this.widget.collapseTooltip=i}}expandedWatcher(i){if(i!==undefined&&this.widget){this.widget.expanded=i}}expandIconWatcher(i){if(this.widget){this.widget.expandIcon=i;this.widget.expandIconClass=i}}expandTooltipWatcher(i){if(this.widget){this.widget.expandTooltip=i}}groupWatcher(i){if(this.widget){this.widget.group=i}}iconNumberWatcher(i){if(i!==undefined&&this.widget){this.widget.iconNumber=i}}modeWatcher(i){if(this.widget){this.widget.mode=i}}referenceElementWatcher(i){d(this,i)}viewWatcher(i){if(i!==undefined&&this.widget){this.widget.view=i}}positionWatcher(i){if(i!==undefined&&this.widget){this.view.ui.move(this.childElem,i)}}async collapse(){this.widget?.collapse()}async expand(){this.widget?.expand()}async toggle(){if(this.expanded)await this.collapse();else await this.expand()}async componentDidLoad(){const i=this._createParams();const t=await n(i);this.widget=t;this._checkForView()}disconnectedCallback(){w(this)}render(){return s("div",{ref:i=>this.childElem=i})}_createParams(){const i={container:this.childElem};if(this.autoCollapse!==undefined){i.autoCollapse=this.autoCollapse}if(this.closeOnEsc!==undefined){i.closeOnEsc=this.closeOnEsc}if(this.collapseIcon){i.collapseIcon=this.collapseIcon;i.collapseIconClass=this.collapseIcon}if(this.collapseTooltip){i.collapseTooltip=this.collapseTooltip}if(this.expanded!==undefined){i.expanded=this.expanded}if(this.expandIcon){console.log("expandIcon",this.expandIcon);i.expandIcon=this.expandIcon;i.expandIconClass=this.expandIcon}if(this.expandTooltip){i.expandTooltip=this.expandTooltip}if(this.group){i.group=this.group}if(this.iconNumber!==undefined){i.iconNumber=this.iconNumber}if(this.mode){i.mode=this.mode}if(this.view){i.view=this.view}return i}_checkForView(){const i=this.el.closest("arcgis-map")||this.el.closest("arcgis-scene");if(i?.view){this.view=i.view;this.view.ui.add(this.childElem,this.position);this.widgetReady.emit({widget:this.widget})}else if(i){const t=()=>{i.removeEventListener("arcgisViewReadyChange",t,false);this.view=i.view;this.view.ui.add(this.childElem,this.position);this.widgetReady.emit({widget:this.widget})};i.addEventListener("arcgisViewReadyChange",t,false)}}get el(){return e(this)}static get watchers(){return{autoCollapse:["autoCollapseWatcher"],closeOnEsc:["closeOnEscWatcher"],collapseIcon:["collapseIconWatcher"],collapseTooltip:["collapseTooltipWatcher"],expanded:["expandedWatcher"],expandIcon:["expandIconWatcher"],expandTooltip:["expandTooltipWatcher"],group:["groupWatcher"],iconNumber:["iconNumberWatcher"],mode:["modeWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"],position:["positionWatcher"]}}};b.style=v;const V=".arcgis-scene{padding:0;margin:0;height:100%;width:100%}";const x=class{constructor(s){i(this,s);this.arcgisViewReadyChange=t(this,"arcgisViewReadyChange",7);this.arcgisViewChange=t(this,"arcgisViewChange",7);this.arcgisViewClick=t(this,"arcgisViewClick",7);this.arcgisViewDoubleClick=t(this,"arcgisViewDoubleClick",7);this.arcgisViewDrag=t(this,"arcgisViewDrag",7);this.arcgisViewHold=t(this,"arcgisViewHold",7);this.arcgisViewImmediateClick=t(this,"arcgisViewImmediateClick",7);this.arcgisViewImmediateDoubleClick=t(this,"arcgisViewImmediateDoubleClick",7);this.arcgisViewKeyDown=t(this,"arcgisViewKeyDown",7);this.arcgisViewKeyUp=t(this,"arcgisViewKeyUp",7);this.arcgisViewLayerviewCreate=t(this,"arcgisViewLayerviewCreate",7);this.arcgisViewLayerviewCreateError=t(this,"arcgisViewLayerviewCreateError",7);this.arcgisViewLayerviewDestroy=t(this,"arcgisViewLayerviewDestroy",7);this.arcgisViewMouseWheel=t(this,"arcgisViewMouseWheel",7);this.arcgisViewPointerDown=t(this,"arcgisViewPointerDown",7);this.arcgisViewPointerEnter=t(this,"arcgisViewPointerEnter",7);this.arcgisViewPointerLeave=t(this,"arcgisViewPointerLeave",7);this.arcgisViewPointerMove=t(this,"arcgisViewPointerMove",7);this.arcgisViewPointerUp=t(this,"arcgisViewPointerUp",7);this._watchHandles=[];this.allLayerViews=undefined;this.alphaCompositingEnabled=false;this.analyses=undefined;this.basemapView=undefined;this.basemap=undefined;this.camera=undefined;this.center=undefined;this.clippingArea=undefined;this.constraints=undefined;this.destroyDisabled=false;this.environment=undefined;this.extent=undefined;this.fatalError=undefined;this.floors=undefined;this.gamepad=undefined;this.graphics=undefined;this.ground=undefined;this.groundView=undefined;this.highlightOptions=undefined;this.interacting=false;this.itemId=undefined;this.layerViews=undefined;this.magnifier=undefined;this.map=undefined;this.navigating=false;this.navigation=undefined;this.padding=undefined;this.performanceInfo=undefined;this.popup=undefined;this.popupEnabled=true;this.qualityProfile=undefined;this.ready=false;this.resolution=undefined;this.scale=undefined;this.spatialReference=undefined;this.stationary=undefined;this.suspended=false;this.theme=undefined;this.timeExtent=undefined;this.toMap=undefined;this.toScreen=undefined;this.updating=false;this.viewingMode="global";this.viewpoint=undefined;this.zoom=undefined;this.view=undefined}alphaCompositingEnabledWatcher(i){if(i!==undefined&&this.view){this.view.alphaCompositingEnabled=i}}basemapWatcher(i){if(this.view?.map&&l(i)){this.view.map.basemap=i}}cameraWatcher(i){if(this.view&&i&&u(this.view.camera,i)){this.view.camera=i}}centerWatcher(i){if(this.view&&i&&!this.view.center?.equals(i)){this.view.center=i}}clippingAreaWatcher(i){if(this.view&&i&&!this.view.clippingArea?.equals(i)){this.view.clippingArea=i}}constraintsWatcher(i){if(this.view){this.view.constraints=i}}environmentWatcher(i){if(this.view&&i&&p(this.view.environment,i)){this.view.environment=i}}extentWatcher(i){if(this.view&&i&&!this.view.extent.equals(i)){this.view.extent=i}}floorsWatcher(i){if(this.view){this.view.floors=i}}graphicsWatcher(i){if(this.view){this.view.graphics=i}}groundWatcher(i){if(this.view?.map&&l(i)){this.view.map.ground=i}}highlightOptionsWatcher(i){if(this.view){this.view.highlightOptions=i}}itemIdWatcher(i,t){if(i!==t){if(this.view?.map){void this._updateMap()}else{void this._loadMap()}}}mapWatcher(i){if(this.view){this.view.map=i}}navigationWatcher(i){if(this.view){this.view.navigation=i}}paddingWatcher(i){if(this.view){this.view.padding=i}}popupEnabledWatcher(i,t){if(i!==t&&this.view){this.view.popupEnabled=i}}qualityProfileWatcher(i){if(this.view&&this.view.qualityProfile!==i){this.view.qualityProfile=i}}scaleWatcher(i,t){if(this.view&&this.view.stationary&&!this.view.interacting&&i!=null&&i!==t){this.view.scale=i}}spatialReferenceWatcher(i){if(this.view&&i&&!this.view.spatialReference.equals(i)){this.view.spatialReference=i}}themeWatcher(i){if(this.view){this.view.theme=i}}timeExtentWatcher(i){if(this.view){this.view.timeExtent=i}}viewingModeWatcher(i){if(this.view){this.view.viewingMode=i}}viewpointWatcher(i){if(this.view&&g(this.view.viewpoint,i)){this.view.viewpoint=i}}zoomWatcher(i,t){if(this.view&&this.view.stationary&&!this.view.interacting&&i!==t&&W(i)){this.view.zoom=i}}async closePopup(){this.view?.closePopup()}async destroy(){if(this.destroyDisabled){this._clearWatchHandles();this.view.destroy()}}async goTo(i,t){return await(this.view?.goTo(i,t))}async hitTest(i,t){return await(this.view?.hitTest(i,t))}async openPopup(i){return await(this.view?.openPopup(i))}async takeScreenshot(i){return await(this.view?.takeScreenshot(i))}async tryFatalErrorRecovery(){this.view?.tryFatalErrorRecovery()}async whenAnalysisView(i){return await(this.view?.whenAnalysisView(i))}async whenLayerView(i){return await(this.view?.whenLayerView(i))}async connectedCallback(){this.view=await r({})}async componentWillLoad(){await this._loadMap()}componentDidRender(){if(this.view&&!this.view.container){this.view.container=this.el}}componentDidLoad(){this._proxyEvents()}disconnectedCallback(){void this.destroy()}render(){return s("div",{class:"arcgis-scene",ref:i=>this.el=i})}_clearWatchHandles(){this._watchHandles.forEach((i=>i.remove()));this._watchHandles=[]}async _addWatchers(){const{watch:i,when:t}=await a();f(this,[i((()=>this.view.ready),(()=>{this.ready=this.view.ready;this.arcgisViewReadyChange.emit()}),{initial:true}),i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary;this.interacting=this.view.interacting;this.navigating=this.view.navigating;this.arcgisViewChange.emit()}),{initial:true}),t((()=>this.view.stationary),(()=>{this.camera=this.view.camera;this.center=this.view.center;this.extent=this.view.extent;this.scale=this.view.scale;this.viewpoint=this.view.viewpoint;this.zoom=this.view.zoom;this.spatialReference=this.view.spatialReference})),i((()=>this.view.allLayerViews),(()=>{this.allLayerViews=this.view.allLayerViews}),{initial:true}),i((()=>this.view.analyses),(()=>{this.analyses=this.view.analyses}),{initial:true}),i((()=>this.view.map?.basemap),(()=>{this.basemap=this.view.map?.basemap}),{initial:true}),i((()=>this.view.basemapView),(()=>{this.basemapView=this.view.basemapView}),{initial:true}),i((()=>this.view.environment),(()=>{this.environment=this.view.environment}),{initial:true}),i((()=>this.view.fatalError),(()=>{this.fatalError=this.view.fatalError}),{initial:true}),i((()=>this.view.input.gamepad),(()=>{this.gamepad=this.view.input.gamepad}),{initial:true}),i((()=>this.view.graphics),(()=>{this.graphics=this.view.graphics}),{initial:true}),i((()=>this.view.map?.ground),(()=>{this.ground=this.view.map?.ground}),{initial:true}),i((()=>this.view.groundView),(()=>{this.groundView=this.view.groundView}),{initial:true}),i((()=>this.view.interacting),(()=>{this.interacting=this.view.interacting})),i((()=>this.view.navigating),(()=>{this.navigating=this.view.navigating})),i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary})),i((()=>this.view.layerViews),(()=>{this.layerViews=this.view.layerViews}),{initial:true}),i((()=>this.view.navigation),(()=>{this.navigation=this.view.navigation}),{initial:true}),i((()=>this.view.map),(()=>{this.map=this.view.map}),{initial:true}),i((()=>this.view.performanceInfo),(()=>{this.performanceInfo=this.view.performanceInfo})),i((()=>this.view.popup),(()=>{this.popup=this.view.popup}),{initial:true}),i((()=>this.view.qualityProfile),(()=>{this.qualityProfile=this.view.qualityProfile}),{initial:true}),i((()=>this.view.resolution),(()=>{this.resolution=this.view.resolution}),{initial:true}),i((()=>this.view.suspended),(()=>{this.suspended=this.view.suspended}),{initial:true}),i((()=>this.view.updating),(()=>{this.updating=this.view.updating}),{initial:true})])}async _createMap(){const i={};if(this.itemId){i.portalItem=await this._createPortalItem()}if(this.basemap){i.basemap=this.basemap}else if(l(this.itemId)){i.basemap="topo-vector"}if(this.ground){i.ground=this.ground}else if(l(this.itemId)){i.ground="world-elevation"}const t=await c(i);return t}async _createPortalItem(){const i={};if(this.itemId){i.id=this.itemId}return i}_createViewParams(){const i={};if(this.center){if(typeof this.center==="string"){i.center=this.center.split(",").map((i=>Number(i)))}else{i.center=this.center}}if(this.constraints){i.constraints=this.constraints}if(this.extent){i.extent=this.extent}if(this.floors){i.floors=this.floors}if(this.highlightOptions){i.highlightOptions=this.highlightOptions}if(this.map){i.map=this.map}if(this.navigation){i.navigation=this.navigation}if(this.popupEnabled!==undefined){i.popupEnabled=this.popupEnabled}if(this.scale!==undefined){i.scale=this.scale}if(this.spatialReference){i.spatialReference=this.spatialReference}if(this.theme){i.theme=this.theme}if(this.timeExtent){i.timeExtent=this.timeExtent}if(this.viewpoint){i.viewpoint=this.viewpoint}if(this.zoom!==undefined){i.zoom=this.zoom}return i}async _loadMap(){const i=await this._createMap();const t=this._createViewParams();const s=await r({map:i,...t});this.view=s;return void s.when((async()=>{this.toMap=s.toMap.bind(s);this.toScreen=s.toScreen.bind(s);await this._addWatchers()}))}_proxyEvents(){f(this,[this.view.on("click",(i=>{this.arcgisViewClick.emit(i)})),this.view.on("double-click",(i=>{this.arcgisViewDoubleClick.emit(i)})),this.view.on("drag",(i=>{this.arcgisViewDrag.emit(i)})),this.view.on("hold",(i=>{this.arcgisViewHold.emit(i)})),this.view.on("immediate-click",(i=>{this.arcgisViewImmediateClick.emit(i)})),this.view.on("immediate-double-click",(i=>{this.arcgisViewImmediateDoubleClick.emit(i)})),this.view.on("key-down",(i=>{this.arcgisViewKeyDown.emit(i)})),this.view.on("key-up",(i=>{this.arcgisViewKeyUp.emit(i)})),this.view.on("layerview-create",(i=>{this.arcgisViewLayerviewCreate.emit(i)})),this.view.on("layerview-create-error",(i=>{this.arcgisViewLayerviewCreateError.emit(i)})),this.view.on("layerview-destroy",(i=>{this.arcgisViewLayerviewDestroy.emit(i)})),this.view.on("mouse-wheel",(i=>{this.arcgisViewMouseWheel.emit(i)})),this.view.on("pointer-down",(i=>{this.arcgisViewPointerDown.emit(i)})),this.view.on("pointer-enter",(i=>{this.arcgisViewPointerEnter.emit(i)})),this.view.on("pointer-leave",(i=>{this.arcgisViewPointerLeave.emit(i)})),this.view.on("pointer-move",(i=>{this.arcgisViewPointerMove.emit(i)})),this.view.on("pointer-up",(i=>{this.arcgisViewPointerUp.emit(i)}))])}async _updateMap(){if(this.view?.map){this.view.map.destroy();const i=await this._createMap();this.view.map=i}}get _hostElement(){return e(this)}static get watchers(){return{alphaCompositingEnabled:["alphaCompositingEnabledWatcher"],basemap:["basemapWatcher"],camera:["cameraWatcher"],center:["centerWatcher"],clippingArea:["clippingAreaWatcher"],constraints:["constraintsWatcher"],environment:["environmentWatcher"],extent:["extentWatcher"],floors:["floorsWatcher"],graphics:["graphicsWatcher"],ground:["groundWatcher"],highlightOptions:["highlightOptionsWatcher"],itemId:["itemIdWatcher"],map:["mapWatcher"],navigation:["navigationWatcher"],padding:["paddingWatcher"],popupEnabled:["popupEnabledWatcher"],qualityProfile:["qualityProfileWatcher"],scale:["scaleWatcher"],spatialReference:["spatialReferenceWatcher"],theme:["themeWatcher"],timeExtent:["timeExtentWatcher"],viewingMode:["viewingModeWatcher"],viewpoint:["viewpointWatcher"],zoom:["zoomWatcher"]}}};x.style=V;export{y as arcgis_basemap_gallery,b as arcgis_expand,x as arcgis_scene};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,h as s,g as e}from"./p-8f9b4469.js";import{n as h,i as a,a as n,b as r,c}from"./p-0222402f.js";import{r as d,c as o,a as f,i as l,b as u,d as p,e as g,f as W}from"./p-6eddf41d.js";import{o as w}from"./p-8cd5e748.js";const m="";const y=class{constructor(s){i(this,s);this.widgetReady=t(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.activeBasemap=undefined;this.position="bottom-left";this.expandable=false;this.source=undefined;this.view=undefined;this.widget=undefined}referenceElementWatcher(i){d(this,i)}positionWatcher(i){if(i!==undefined&&this.widget){this.view.ui.move(this.childElem,i)}}sourceWatcher(i){if(this.widget){this.widget.source=i}}viewWatcher(i){if(i!==undefined&&this.widget){this.widget.view=i}}async componentDidLoad(){const i=this._createParams();const t=await h(i);this.widget=t;await this._addWatchers();this.widgetReady.emit({widget:this.widget});o(this)}disconnectedCallback(){w(this)}render(){if(this.expandable){return s("arcgis-expand",{position:this.position,ref:i=>this.expandElem=i},s("div",{ref:i=>this.childElem=i}))}return s("div",{ref:i=>this.childElem=i})}async _addWatchers(){const{watch:i}=await a();f(this,i((()=>this.widget.source),(()=>this.source=this.widget.source),{initial:true}));f(this,i((()=>this.widget.activeBasemap),(i=>this.activeBasemap=i),{initial:true}))}_createParams(){const i={container:this.childElem};if(this.view){i.view=this.view}return i}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],position:["positionWatcher"],source:["sourceWatcher"],view:["viewWatcher"]}}};y.style=m;const v="arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-ui-background)}";const b=class{constructor(s){i(this,s);this.widgetReady=t(this,"widgetReady",7);this._watchHandles=[];this.autoCollapse=false;this.closeOnEsc=true;this.collapseIcon=undefined;this.collapseTooltip=undefined;this.expanded=false;this.expandIcon=undefined;this.expandTooltip=undefined;this.group=undefined;this.iconNumber=undefined;this.mode="auto";this.referenceElement=undefined;this.position="top-right";this.view=undefined;this.widget=undefined}autoCollapseWatcher(i){if(i!==undefined&&this.widget){this.widget.autoCollapse=i}}closeOnEscWatcher(i){if(i!==undefined&&this.widget){this.widget.closeOnEsc=i}}collapseIconWatcher(i){if(this.widget){this.widget.collapseIcon=i;this.widget.collapseIconClass=i}}collapseTooltipWatcher(i){if(this.widget){this.widget.collapseTooltip=i}}expandedWatcher(i){if(i!==undefined&&this.widget){this.widget.expanded=i}}expandIconWatcher(i){if(this.widget){this.widget.expandIcon=i;this.widget.expandIconClass=i}}expandTooltipWatcher(i){if(this.widget){this.widget.expandTooltip=i}}groupWatcher(i){if(this.widget){this.widget.group=i}}iconNumberWatcher(i){if(i!==undefined&&this.widget){this.widget.iconNumber=i}}modeWatcher(i){if(this.widget){this.widget.mode=i}}referenceElementWatcher(i){d(this,i)}viewWatcher(i){if(i!==undefined&&this.widget){this.widget.view=i}}positionWatcher(i){if(i!==undefined&&this.widget){this.view.ui.move(this.childElem,i)}}async collapse(){this.widget?.collapse()}async expand(){this.widget?.expand()}async toggle(){if(this.expanded)await this.collapse();else await this.expand()}async componentDidLoad(){const i=this._createParams();const t=await n(i);this.widget=t;this._checkForView()}disconnectedCallback(){w(this)}render(){return s("div",{ref:i=>this.childElem=i})}_createParams(){const i={container:this.childElem};if(this.autoCollapse!==undefined){i.autoCollapse=this.autoCollapse}if(this.closeOnEsc!==undefined){i.closeOnEsc=this.closeOnEsc}if(this.collapseIcon){i.collapseIcon=this.collapseIcon;i.collapseIconClass=this.collapseIcon}if(this.collapseTooltip){i.collapseTooltip=this.collapseTooltip}if(this.expanded!==undefined){i.expanded=this.expanded}if(this.expandIcon){console.log("expandIcon",this.expandIcon);i.expandIcon=this.expandIcon;i.expandIconClass=this.expandIcon}if(this.expandTooltip){i.expandTooltip=this.expandTooltip}if(this.group){i.group=this.group}if(this.iconNumber!==undefined){i.iconNumber=this.iconNumber}if(this.mode){i.mode=this.mode}if(this.view){i.view=this.view}return i}_checkForView(){const i=this.el.closest("arcgis-map")||this.el.closest("arcgis-scene");if(i?.view){this.view=i.view;this.view.ui.add(this.childElem,this.position);this.widgetReady.emit({widget:this.widget})}else if(i){const t=()=>{i.removeEventListener("arcgisViewReadyChange",t,false);this.view=i.view;this.view.ui.add(this.childElem,this.position);this.widgetReady.emit({widget:this.widget})};i.addEventListener("arcgisViewReadyChange",t,false)}}get el(){return e(this)}static get watchers(){return{autoCollapse:["autoCollapseWatcher"],closeOnEsc:["closeOnEscWatcher"],collapseIcon:["collapseIconWatcher"],collapseTooltip:["collapseTooltipWatcher"],expanded:["expandedWatcher"],expandIcon:["expandIconWatcher"],expandTooltip:["expandTooltipWatcher"],group:["groupWatcher"],iconNumber:["iconNumberWatcher"],mode:["modeWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"],position:["positionWatcher"]}}};b.style=v;const V=".arcgis-scene{padding:0;margin:0;height:100%;width:100%}";const x=class{constructor(s){i(this,s);this.arcgisViewReadyChange=t(this,"arcgisViewReadyChange",7);this.arcgisViewChange=t(this,"arcgisViewChange",7);this.arcgisViewClick=t(this,"arcgisViewClick",7);this.arcgisViewDoubleClick=t(this,"arcgisViewDoubleClick",7);this.arcgisViewDrag=t(this,"arcgisViewDrag",7);this.arcgisViewHold=t(this,"arcgisViewHold",7);this.arcgisViewImmediateClick=t(this,"arcgisViewImmediateClick",7);this.arcgisViewImmediateDoubleClick=t(this,"arcgisViewImmediateDoubleClick",7);this.arcgisViewKeyDown=t(this,"arcgisViewKeyDown",7);this.arcgisViewKeyUp=t(this,"arcgisViewKeyUp",7);this.arcgisViewLayerviewCreate=t(this,"arcgisViewLayerviewCreate",7);this.arcgisViewLayerviewCreateError=t(this,"arcgisViewLayerviewCreateError",7);this.arcgisViewLayerviewDestroy=t(this,"arcgisViewLayerviewDestroy",7);this.arcgisViewMouseWheel=t(this,"arcgisViewMouseWheel",7);this.arcgisViewPointerDown=t(this,"arcgisViewPointerDown",7);this.arcgisViewPointerEnter=t(this,"arcgisViewPointerEnter",7);this.arcgisViewPointerLeave=t(this,"arcgisViewPointerLeave",7);this.arcgisViewPointerMove=t(this,"arcgisViewPointerMove",7);this.arcgisViewPointerUp=t(this,"arcgisViewPointerUp",7);this._watchHandles=[];this.allLayerViews=undefined;this.alphaCompositingEnabled=false;this.analyses=undefined;this.basemapView=undefined;this.basemap=undefined;this.camera=undefined;this.center=undefined;this.clippingArea=undefined;this.constraints=undefined;this.destroyDisabled=false;this.environment=undefined;this.extent=undefined;this.fatalError=undefined;this.floors=undefined;this.gamepad=undefined;this.graphics=undefined;this.ground=undefined;this.groundView=undefined;this.highlightOptions=undefined;this.interacting=false;this.itemId=undefined;this.layerViews=undefined;this.magnifier=undefined;this.map=undefined;this.navigating=false;this.navigation=undefined;this.padding=undefined;this.performanceInfo=undefined;this.popup=undefined;this.popupEnabled=true;this.qualityProfile=undefined;this.ready=false;this.resolution=undefined;this.scale=undefined;this.spatialReference=undefined;this.stationary=undefined;this.suspended=false;this.theme=undefined;this.timeExtent=undefined;this.toMap=undefined;this.toScreen=undefined;this.updating=false;this.viewingMode="global";this.viewpoint=undefined;this.zoom=undefined;this.view=undefined}alphaCompositingEnabledWatcher(i){if(i!==undefined&&this.view){this.view.alphaCompositingEnabled=i}}basemapWatcher(i){if(this.view?.map&&l(i)){this.view.map.basemap=i}}cameraWatcher(i){if(this.view&&i&&u(this.view.camera,i)){this.view.camera=i}}centerWatcher(i){if(this.view&&i&&!this.view.center?.equals(i)){this.view.center=i}}clippingAreaWatcher(i){if(this.view&&i&&!this.view.clippingArea?.equals(i)){this.view.clippingArea=i}}constraintsWatcher(i){if(this.view){this.view.constraints=i}}environmentWatcher(i){if(this.view&&i&&p(this.view.environment,i)){this.view.environment=i}}extentWatcher(i){if(this.view&&i&&!this.view.extent.equals(i)){this.view.extent=i}}floorsWatcher(i){if(this.view){this.view.floors=i}}graphicsWatcher(i){if(this.view){this.view.graphics=i}}groundWatcher(i){if(this.view?.map&&l(i)){this.view.map.ground=i}}highlightOptionsWatcher(i){if(this.view){this.view.highlightOptions=i}}itemIdWatcher(i,t){if(i!==t){if(this.view?.map){void this._updateMap()}else{void this._loadMap()}}}mapWatcher(i){if(this.view){this.view.map=i}}navigationWatcher(i){if(this.view){this.view.navigation=i}}paddingWatcher(i){if(this.view){this.view.padding=i}}popupEnabledWatcher(i,t){if(i!==t&&this.view){this.view.popupEnabled=i}}qualityProfileWatcher(i){if(this.view&&this.view.qualityProfile!==i){this.view.qualityProfile=i}}scaleWatcher(i,t){if(this.view&&this.view.stationary&&!this.view.interacting&&i!=null&&i!==t){this.view.scale=i}}spatialReferenceWatcher(i){if(this.view&&i&&!this.view.spatialReference.equals(i)){this.view.spatialReference=i}}themeWatcher(i){if(this.view){this.view.theme=i}}timeExtentWatcher(i){if(this.view){this.view.timeExtent=i}}viewingModeWatcher(i){if(this.view){this.view.viewingMode=i}}viewpointWatcher(i){if(this.view&&g(this.view.viewpoint,i)){this.view.viewpoint=i}}zoomWatcher(i,t){if(this.view&&this.view.stationary&&!this.view.interacting&&i!==t&&W(i)){this.view.zoom=i}}async closePopup(){this.view?.closePopup()}async destroy(){if(this.destroyDisabled){this._clearWatchHandles();this.view.destroy()}}async goTo(i,t){return await(this.view?.goTo(i,t))}async hitTest(i,t){return await(this.view?.hitTest(i,t))}async openPopup(i){return await(this.view?.openPopup(i))}async takeScreenshot(i){return await(this.view?.takeScreenshot(i))}async tryFatalErrorRecovery(){this.view?.tryFatalErrorRecovery()}async whenAnalysisView(i){return await(this.view?.whenAnalysisView(i))}async whenLayerView(i){return await(this.view?.whenLayerView(i))}async connectedCallback(){this.view=await r({})}async componentWillLoad(){await this._loadMap()}componentDidRender(){if(this.view&&!this.view.container){this.view.container=this.el}}componentDidLoad(){this._proxyEvents()}disconnectedCallback(){void this.destroy()}render(){return s("div",{class:"arcgis-scene",ref:i=>this.el=i})}_clearWatchHandles(){this._watchHandles.forEach((i=>i.remove()));this._watchHandles=[]}async _addWatchers(){const{watch:i,when:t}=await a();f(this,[i((()=>this.view.ready),(()=>{this.ready=this.view.ready;this.arcgisViewReadyChange.emit()}),{initial:true}),i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary;this.interacting=this.view.interacting;this.navigating=this.view.navigating;this.arcgisViewChange.emit()}),{initial:true}),t((()=>this.view.stationary),(()=>{this.camera=this.view.camera;this.center=this.view.center;this.extent=this.view.extent;this.scale=this.view.scale;this.viewpoint=this.view.viewpoint;this.zoom=this.view.zoom;this.spatialReference=this.view.spatialReference})),i((()=>this.view.allLayerViews),(()=>{this.allLayerViews=this.view.allLayerViews}),{initial:true}),i((()=>this.view.analyses),(()=>{this.analyses=this.view.analyses}),{initial:true}),i((()=>this.view.map?.basemap),(()=>{this.basemap=this.view.map?.basemap}),{initial:true}),i((()=>this.view.basemapView),(()=>{this.basemapView=this.view.basemapView}),{initial:true}),i((()=>this.view.environment),(()=>{this.environment=this.view.environment}),{initial:true}),i((()=>this.view.fatalError),(()=>{this.fatalError=this.view.fatalError}),{initial:true}),i((()=>this.view.input.gamepad),(()=>{this.gamepad=this.view.input.gamepad}),{initial:true}),i((()=>this.view.graphics),(()=>{this.graphics=this.view.graphics}),{initial:true}),i((()=>this.view.map?.ground),(()=>{this.ground=this.view.map?.ground}),{initial:true}),i((()=>this.view.groundView),(()=>{this.groundView=this.view.groundView}),{initial:true}),i((()=>this.view.interacting),(()=>{this.interacting=this.view.interacting})),i((()=>this.view.navigating),(()=>{this.navigating=this.view.navigating})),i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary})),i((()=>this.view.layerViews),(()=>{this.layerViews=this.view.layerViews}),{initial:true}),i((()=>this.view.navigation),(()=>{this.navigation=this.view.navigation}),{initial:true}),i((()=>this.view.map),(()=>{this.map=this.view.map}),{initial:true}),i((()=>this.view.performanceInfo),(()=>{this.performanceInfo=this.view.performanceInfo})),i((()=>this.view.popup),(()=>{this.popup=this.view.popup}),{initial:true}),i((()=>this.view.qualityProfile),(()=>{this.qualityProfile=this.view.qualityProfile}),{initial:true}),i((()=>this.view.resolution),(()=>{this.resolution=this.view.resolution}),{initial:true}),i((()=>this.view.suspended),(()=>{this.suspended=this.view.suspended}),{initial:true}),i((()=>this.view.updating),(()=>{this.updating=this.view.updating}),{initial:true})])}async _createMap(){const i={};if(this.itemId){i.portalItem=await this._createPortalItem()}if(this.basemap){i.basemap=this.basemap}else if(l(this.itemId)){i.basemap="topo-vector"}if(this.ground){i.ground=this.ground}else if(l(this.itemId)){i.ground="world-elevation"}const t=await c(i);return t}async _createPortalItem(){const i={};if(this.itemId){i.id=this.itemId}return i}_createViewParams(){const i={};if(this.center){if(typeof this.center==="string"){i.center=this.center.split(",").map((i=>Number(i)))}else{i.center=this.center}}if(this.constraints){i.constraints=this.constraints}if(this.extent){i.extent=this.extent}if(this.floors){i.floors=this.floors}if(this.highlightOptions){i.highlightOptions=this.highlightOptions}if(this.map){i.map=this.map}if(this.navigation){i.navigation=this.navigation}if(this.popupEnabled!==undefined){i.popupEnabled=this.popupEnabled}if(this.scale!==undefined){i.scale=this.scale}if(this.spatialReference){i.spatialReference=this.spatialReference}if(this.theme){i.theme=this.theme}if(this.timeExtent){i.timeExtent=this.timeExtent}if(this.viewpoint){i.viewpoint=this.viewpoint}if(this.zoom!==undefined){i.zoom=this.zoom}return i}async _loadMap(){const i=await this._createMap();const t=this._createViewParams();const s=await r({map:i,...t});this.view=s;return void s.when((async()=>{this.toMap=s.toMap.bind(s);this.toScreen=s.toScreen.bind(s);await this._addWatchers()}))}_proxyEvents(){f(this,[this.view.on("click",(i=>{this.arcgisViewClick.emit(i)})),this.view.on("double-click",(i=>{this.arcgisViewDoubleClick.emit(i)})),this.view.on("drag",(i=>{this.arcgisViewDrag.emit(i)})),this.view.on("hold",(i=>{this.arcgisViewHold.emit(i)})),this.view.on("immediate-click",(i=>{this.arcgisViewImmediateClick.emit(i)})),this.view.on("immediate-double-click",(i=>{this.arcgisViewImmediateDoubleClick.emit(i)})),this.view.on("key-down",(i=>{this.arcgisViewKeyDown.emit(i)})),this.view.on("key-up",(i=>{this.arcgisViewKeyUp.emit(i)})),this.view.on("layerview-create",(i=>{this.arcgisViewLayerviewCreate.emit(i)})),this.view.on("layerview-create-error",(i=>{this.arcgisViewLayerviewCreateError.emit(i)})),this.view.on("layerview-destroy",(i=>{this.arcgisViewLayerviewDestroy.emit(i)})),this.view.on("mouse-wheel",(i=>{this.arcgisViewMouseWheel.emit(i)})),this.view.on("pointer-down",(i=>{this.arcgisViewPointerDown.emit(i)})),this.view.on("pointer-enter",(i=>{this.arcgisViewPointerEnter.emit(i)})),this.view.on("pointer-leave",(i=>{this.arcgisViewPointerLeave.emit(i)})),this.view.on("pointer-move",(i=>{this.arcgisViewPointerMove.emit(i)})),this.view.on("pointer-up",(i=>{this.arcgisViewPointerUp.emit(i)}))])}async _updateMap(){if(this.view?.map){this.view.map.destroy();const i=await this._createMap();this.view.map=i}}get _hostElement(){return e(this)}static get watchers(){return{alphaCompositingEnabled:["alphaCompositingEnabledWatcher"],basemap:["basemapWatcher"],camera:["cameraWatcher"],center:["centerWatcher"],clippingArea:["clippingAreaWatcher"],constraints:["constraintsWatcher"],environment:["environmentWatcher"],extent:["extentWatcher"],floors:["floorsWatcher"],graphics:["graphicsWatcher"],ground:["groundWatcher"],highlightOptions:["highlightOptionsWatcher"],itemId:["itemIdWatcher"],map:["mapWatcher"],navigation:["navigationWatcher"],padding:["paddingWatcher"],popupEnabled:["popupEnabledWatcher"],qualityProfile:["qualityProfileWatcher"],scale:["scaleWatcher"],spatialReference:["spatialReferenceWatcher"],theme:["themeWatcher"],timeExtent:["timeExtentWatcher"],viewingMode:["viewingModeWatcher"],viewpoint:["viewpointWatcher"],zoom:["zoomWatcher"]}}};x.style=V;export{y as arcgis_basemap_gallery,b as arcgis_expand,x as arcgis_scene};
|
|
2
|
+
//# sourceMappingURL=p-7d11e748.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as i,c as t,h as e,g as s}from"./p-8f9b4469.js";import{W as h,i as n}from"./p-0222402f.js";import{c as d,a}from"./p-6eddf41d.js";import{o as r}from"./p-8cd5e748.js";const f="arcgis-slider{min-width:200px;min-height:25px}";const c=class{constructor(e){i(this,e);this.sliderMaxChange=t(this,"sliderMaxChange",7);this.sliderMaxClick=t(this,"sliderMaxClick",7);this.sliderMinChange=t(this,"sliderMinChange",7);this.sliderMinClick=t(this,"sliderMinClick",7);this.sliderSegmentClick=t(this,"sliderSegmentClick",7);this.sliderSegmentDrag=t(this,"sliderSegmentDrag",7);this.sliderThumbChange=t(this,"sliderThumbChange",7);this.sliderThumbClick=t(this,"sliderThumbClick",7);this.sliderThumbDrag=t(this,"sliderThumbDrag",7);this.sliderTickClick=t(this,"sliderTickClick",7);this.sliderTrackClick=t(this,"sliderTrackClick",7);this.widgetReady=t(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.draggableSegmentsEnabled=undefined;this.effectiveMax=undefined;this.effectiveMin=undefined;this.effectiveSegmentElements=undefined;this.labelElements=undefined;this.labelInputsEnabled=undefined;this.labels=undefined;this.layout="horizontal";this.min=undefined;this.max=undefined;this.maxLabelElement=undefined;this.minLabelElement=undefined;this.precision=undefined;this.rangeLabelInputsEnabled=undefined;this.segmentElements=undefined;this.snapOnClickEnabled=undefined;this.syncedSegmentsEnabled=undefined;this.thumbElements=undefined;this.thumbsConstrained=undefined;this.tickConfigs=undefined;this.tickElements=undefined;this.trackElement=undefined;this.steps=undefined;this.values=undefined;this.position="bottom-left";this.expandable=false;this.widget=undefined}draggableSegmentsEnabledWatcher(i){if(i!==undefined&&this.widget){this.widget.draggableSegmentsEnabled=i}}effectiveMaxWatcher(i){if(i!==undefined&&this.widget){this.widget.effectiveMax=i}}effectiveMinWatcher(i){if(i!==undefined&&this.widget){this.widget.effectiveMin=i}}layoutWatcher(i){if(this.widget){this.widget.layout=i}}minWatcher(i){if(i!==undefined&&this.widget){this.widget.min=i}}maxWatcher(i){if(i!==undefined&&this.widget){this.widget.max=i}}precisionWatcher(i){if(i!==undefined&&this.widget){this.widget.precision=i}}rangeLabelInputsEnabledWatcher(i){if(i!==undefined&&this.widget){this.widget.rangeLabelInputsEnabled=i}}snapOnClickEnabledWatcher(i){if(i!==undefined&&this.widget){this.widget.snapOnClickEnabled=i}}syncedSegmentsEnabledWatcher(i){if(i!==undefined&&this.widget){this.widget.syncedSegmentsEnabled=i}}thumbsConstrainedWatcher(i){if(i!==undefined&&this.widget){this.widget.thumbsConstrained=i}}tickConfigsWatcher(i){if(this.widget){this.widget.tickConfigs=i}}stepsWatcher(i){if(this.widget){this.widget.steps=i}}valuesWatcher(i){if(typeof i==="string"){this.values=i.split(",").map((i=>Number(i)))}if(this.widget){this.widget.values=this.values}}async componentDidLoad(){const i=this._createParams();const t=await h(i);this.widget=t;await this._addWatchers();this.widgetReady.emit({widget:this.widget});d(this)}disconnectedCallback(){r(this)}render(){if(this.expandable){return e("arcgis-expand",{position:this.position,ref:i=>this.expandElem=i},e("div",{ref:i=>this.childElem=i}))}return e("div",{ref:i=>this.childElem=i})}async _addWatchers(){const{watch:i}=await n();a(this,i((()=>this.widget.effectiveSegmentElements),(i=>this.effectiveSegmentElements=i),{initial:true}));a(this,i((()=>this.widget.labelElements),(i=>this.labelElements=i),{initial:true}));a(this,i((()=>this.widget.maxLabelElement),(i=>this.maxLabelElement=i),{initial:true}));a(this,i((()=>this.widget.minLabelElement),(i=>this.minLabelElement=i),{initial:true}));a(this,i((()=>this.widget.segmentElements),(i=>this.segmentElements=i),{initial:true}));a(this,i((()=>this.widget.thumbElements),(i=>this.thumbElements=i),{initial:true}));a(this,i((()=>this.widget.tickElements),(i=>this.tickElements=i),{initial:true}));a(this,i((()=>this.widget.trackElement),(i=>this.trackElement=i),{initial:true}))}_createParams(){const i={container:this.childElem,layout:this.layout};if(this.min!==undefined){i.min=this.min}if(this.max!==undefined){i.max=this.max}if(this.steps){if(typeof this.steps==="string"){this.steps=this.steps.split(",").map((i=>Number(i)))}i.steps=this.steps}if(this.values){if(typeof this.values==="string"){this.values=this.values.split(",").map((i=>Number(i)))}i.values=this.values}return i}get el(){return s(this)}static get watchers(){return{draggableSegmentsEnabled:["draggableSegmentsEnabledWatcher"],effectiveMax:["effectiveMaxWatcher"],effectiveMin:["effectiveMinWatcher"],layout:["layoutWatcher"],min:["minWatcher"],max:["maxWatcher"],precision:["precisionWatcher"],rangeLabelInputsEnabled:["rangeLabelInputsEnabledWatcher"],snapOnClickEnabled:["snapOnClickEnabledWatcher"],syncedSegmentsEnabled:["syncedSegmentsEnabledWatcher"],thumbsConstrained:["thumbsConstrainedWatcher"],tickConfigs:["tickConfigsWatcher"],steps:["stepsWatcher"],values:["valuesWatcher"]}}};c.style=f;export{c as arcgis_slider};
|
|
2
|
+
//# sourceMappingURL=p-8afc6c86.entry.js.map
|