@arcgis/map-components 4.29.7 → 4.29.8
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 +2 -2
- package/dist/arcgis-map-components/index.esm.js +1 -1
- package/dist/arcgis-map-components/{p-f2728c32.entry.js → p-0b9afc94.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-b923473d.entry.js → p-0e2b2eb6.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-a2098d2b.entry.js → p-111a420a.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-14fb2d72.entry.js → p-1134104c.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-4a56215a.js → p-1628550d.js} +1 -1
- package/dist/arcgis-map-components/{p-c06d9650.entry.js → p-1928b73d.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-11b3803c.entry.js → p-1ab06b5a.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-12b7b6ad.entry.js → p-1fa61d42.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-98e724bf.entry.js → p-1fe46bcc.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-0176ffee.entry.js → p-20096fc3.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-893559c5.entry.js → p-20d28269.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-e201c9e4.entry.js → p-244105b2.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-fef5523a.js → p-2c40acef.js} +1 -1
- package/dist/arcgis-map-components/{p-901e2589.entry.js → p-2c56873a.entry.js} +2 -2
- package/dist/arcgis-map-components/p-35ad044e.entry.js +6 -0
- package/dist/arcgis-map-components/{p-ef98a60f.entry.js → p-3e76b10d.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-66193de2.entry.js → p-4df5b356.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-f52e3491.entry.js → p-53494650.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-4e5043a9.entry.js → p-55e47bd4.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-72cb85bd.entry.js → p-5634e42e.entry.js} +2 -2
- package/dist/arcgis-map-components/p-59536d1d.entry.js +6 -0
- package/dist/arcgis-map-components/p-5ec4000d.entry.js +6 -0
- package/dist/arcgis-map-components/{p-33e976b5.entry.js → p-5fde121e.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-17a04dd4.entry.js → p-61c40750.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-51f3f74c.entry.js → p-657cde8b.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-65b77a7a.entry.js → p-6e49ec1b.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-72c4d504.entry.js → p-7424644c.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-1ef7802e.entry.js → p-7dde3910.entry.js} +2 -2
- package/dist/arcgis-map-components/p-88e29acc.entry.js +6 -0
- package/dist/arcgis-map-components/{p-a8f4ae54.entry.js → p-891e369d.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-98688f40.entry.js → p-8d0b2b44.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-119bbcd6.entry.js → p-92a49b3a.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-7164604b.entry.js → p-94df92ba.entry.js} +2 -2
- package/dist/arcgis-map-components/p-950c5eb4.entry.js +6 -0
- package/dist/arcgis-map-components/p-9a6dad2d.entry.js +6 -0
- package/dist/arcgis-map-components/{p-12907ba8.entry.js → p-9aed26a0.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-08bdd78b.entry.js → p-9b7e9f38.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-4f97ba64.entry.js → p-9bdab45b.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-f44bf4a1.entry.js → p-9f1f02b9.entry.js} +2 -2
- package/dist/arcgis-map-components/p-a0074ccd.entry.js +6 -0
- package/dist/arcgis-map-components/{p-11696a57.entry.js → p-a06530cd.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-80928212.entry.js → p-a983b34d.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-3ff1dc41.entry.js → p-afc9a9a4.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-7595bc46.entry.js → p-b168e620.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-4107c8e4.entry.js → p-b6e94389.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-831a3483.entry.js → p-c4c2828e.entry.js} +2 -2
- package/dist/arcgis-map-components/p-c58ccba7.entry.js +6 -0
- package/dist/arcgis-map-components/{p-e71f0b88.js → p-c8d111c4.js} +1 -1
- package/dist/arcgis-map-components/{p-000ce726.entry.js → p-cdd2fac2.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-27150aef.entry.js → p-cf166f33.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-5536dcd1.entry.js → p-d0e7b644.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-424a0cb9.entry.js → p-d1505a11.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-7511a3e3.entry.js → p-e1fc2cc3.entry.js} +2 -2
- package/dist/arcgis-map-components/p-e27e7bca.entry.js +6 -0
- package/dist/arcgis-map-components/{p-048c93dc.entry.js → p-e2f545f1.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-b3375a64.entry.js → p-e54a1dcd.entry.js} +2 -2
- package/dist/arcgis-map-components/p-f229a464.entry.js +6 -0
- package/dist/arcgis-map-components/{p-41e5f19c.entry.js → p-f3c85df1.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-b055ff4c.entry.js → p-f5edc291.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-4b882990.entry.js → p-f63d9767.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-5618cdb5.js → p-fab206f9.js} +1 -1
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-attachments.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-basemap-gallery_2.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-compass.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-daylight.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-directional-pad.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-directions.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-editor.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-expand.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-feature-form.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-feature.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-features.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-histogram.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-home.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-legend.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-locate.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-map-components.cjs.js +2 -2
- package/dist/cjs/arcgis-measurement.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-placement.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-print.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-scene.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-search.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-sketch.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-slice.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-slider.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-swipe.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-table-list.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-track.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-value-picker.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-version-management-service-item_2.cjs.entry.js +12 -9
- package/dist/cjs/arcgis-version-management-version-item_2.cjs.entry.js +9 -5
- package/dist/cjs/arcgis-version-management.cjs.entry.js +13 -10
- package/dist/cjs/arcgis-weather.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-zoom.cjs.entry.js +5 -5
- package/dist/cjs/{component-utils-0b80602d.js → component-utils-2a92952d.js} +1 -1
- package/dist/cjs/{disconnected-2bed5c21.js → disconnected-642e156c.js} +1 -1
- package/dist/cjs/{index-72c4fd5d.js → index-5a676aef.js} +1 -1
- package/dist/cjs/{index-064ec7c3.js → index-5d259c9c.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/components/arcgis-area-measurement-2d.js +1 -1
- package/dist/components/arcgis-area-measurement-3d.js +1 -1
- package/dist/components/arcgis-attachments.js +1 -1
- package/dist/components/arcgis-basemap-gallery.js +1 -1
- package/dist/components/arcgis-basemap-layer-list.js +1 -1
- package/dist/components/arcgis-basemap-toggle.js +1 -1
- package/dist/components/arcgis-bookmarks.js +1 -1
- package/dist/components/arcgis-building-explorer.js +1 -1
- package/dist/components/arcgis-compass.js +1 -1
- package/dist/components/arcgis-coordinate-conversion.js +1 -1
- package/dist/components/arcgis-daylight.js +1 -1
- package/dist/components/arcgis-directional-pad.js +1 -1
- package/dist/components/arcgis-directions.js +1 -1
- package/dist/components/arcgis-directline-measurement-3d.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d.js +1 -1
- package/dist/components/arcgis-editor.js +1 -1
- package/dist/components/arcgis-elevation-profile.js +1 -1
- package/dist/components/arcgis-expand.js +1 -1
- package/dist/components/arcgis-feature-form.js +1 -1
- package/dist/components/arcgis-feature-table.js +1 -1
- package/dist/components/arcgis-feature-templates.js +1 -1
- package/dist/components/arcgis-feature.js +1 -1
- package/dist/components/arcgis-features.js +1 -1
- package/dist/components/arcgis-floor-filter.js +1 -1
- package/dist/components/arcgis-fullscreen.js +1 -1
- package/dist/components/arcgis-histogram-range-slider.js +1 -1
- package/dist/components/arcgis-histogram.js +1 -1
- package/dist/components/arcgis-home.js +1 -1
- package/dist/components/arcgis-layer-list.js +1 -1
- package/dist/components/arcgis-legend.js +1 -1
- package/dist/components/arcgis-line-of-sight.js +1 -1
- package/dist/components/arcgis-locate.js +1 -1
- package/dist/components/arcgis-map.js +1 -1
- package/dist/components/arcgis-measurement.js +1 -1
- package/dist/components/arcgis-navigation-toggle.js +1 -1
- package/dist/components/arcgis-placement.js +1 -1
- package/dist/components/arcgis-print.js +1 -1
- package/dist/components/arcgis-scale-bar.js +1 -1
- package/dist/components/arcgis-scale-range-slider.js +1 -1
- package/dist/components/arcgis-scene.js +1 -1
- package/dist/components/arcgis-search.js +1 -1
- package/dist/components/arcgis-shadow-cast.js +1 -1
- package/dist/components/arcgis-sketch.js +1 -1
- package/dist/components/arcgis-slice.js +1 -1
- package/dist/components/arcgis-slider.js +1 -1
- package/dist/components/arcgis-swipe.js +1 -1
- package/dist/components/arcgis-table-list.js +1 -1
- package/dist/components/arcgis-time-slider.js +1 -1
- package/dist/components/arcgis-track.js +1 -1
- package/dist/components/arcgis-utility-network-associations.js +1 -1
- package/dist/components/arcgis-utility-network-trace.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology.js +1 -1
- package/dist/components/arcgis-value-picker.js +1 -1
- package/dist/components/arcgis-version-management-service-item.js +1 -1
- package/dist/components/arcgis-version-management-version-item.js +1 -1
- package/dist/components/arcgis-version-management-version-list.js +1 -1
- package/dist/components/arcgis-version-management-version-properties.js +1 -1
- package/dist/components/arcgis-version-management.js +11 -8
- package/dist/components/arcgis-weather.js +1 -1
- package/dist/components/arcgis-zoom.js +1 -1
- package/dist/components/component-utils.js +1 -1
- package/dist/components/disconnected.js +1 -1
- package/dist/components/expand.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/version-management-service-item.js +8 -5
- package/dist/components/version-management-version-item.js +1 -1
- package/dist/components/version-management-version-list.js +7 -3
- package/dist/components/version-management-version-properties.js +3 -3
- package/dist/esm/arcgis-area-measurement-2d.entry.js +5 -5
- package/dist/esm/arcgis-area-measurement-3d.entry.js +5 -5
- package/dist/esm/arcgis-attachments.entry.js +5 -5
- package/dist/esm/arcgis-basemap-gallery_2.entry.js +5 -5
- package/dist/esm/arcgis-basemap-layer-list.entry.js +5 -5
- package/dist/esm/arcgis-basemap-toggle.entry.js +5 -5
- package/dist/esm/arcgis-bookmarks.entry.js +5 -5
- package/dist/esm/arcgis-building-explorer.entry.js +5 -5
- package/dist/esm/arcgis-compass.entry.js +5 -5
- package/dist/esm/arcgis-coordinate-conversion.entry.js +5 -5
- package/dist/esm/arcgis-daylight.entry.js +5 -5
- package/dist/esm/arcgis-directional-pad.entry.js +5 -5
- package/dist/esm/arcgis-directions.entry.js +5 -5
- package/dist/esm/arcgis-directline-measurement-3d.entry.js +5 -5
- package/dist/esm/arcgis-distance-measurement-2d.entry.js +5 -5
- package/dist/esm/arcgis-editor.entry.js +5 -5
- package/dist/esm/arcgis-elevation-profile.entry.js +5 -5
- package/dist/esm/arcgis-expand.entry.js +5 -5
- package/dist/esm/arcgis-feature-form.entry.js +5 -5
- package/dist/esm/arcgis-feature-table.entry.js +5 -5
- package/dist/esm/arcgis-feature-templates.entry.js +5 -5
- package/dist/esm/arcgis-feature.entry.js +5 -5
- package/dist/esm/arcgis-features.entry.js +5 -5
- package/dist/esm/arcgis-floor-filter.entry.js +5 -5
- package/dist/esm/arcgis-fullscreen.entry.js +5 -5
- package/dist/esm/arcgis-histogram-range-slider.entry.js +5 -5
- package/dist/esm/arcgis-histogram.entry.js +4 -4
- package/dist/esm/arcgis-home.entry.js +5 -5
- package/dist/esm/arcgis-layer-list.entry.js +5 -5
- package/dist/esm/arcgis-legend.entry.js +5 -5
- package/dist/esm/arcgis-line-of-sight.entry.js +5 -5
- package/dist/esm/arcgis-locate.entry.js +5 -5
- package/dist/esm/arcgis-map-components.js +3 -3
- package/dist/esm/arcgis-measurement.entry.js +5 -5
- package/dist/esm/arcgis-navigation-toggle.entry.js +5 -5
- package/dist/esm/arcgis-placement.entry.js +4 -4
- package/dist/esm/arcgis-print.entry.js +5 -5
- package/dist/esm/arcgis-scale-bar.entry.js +5 -5
- package/dist/esm/arcgis-scale-range-slider.entry.js +5 -5
- package/dist/esm/arcgis-scene.entry.js +4 -4
- package/dist/esm/arcgis-search.entry.js +5 -5
- package/dist/esm/arcgis-shadow-cast.entry.js +5 -5
- package/dist/esm/arcgis-sketch.entry.js +5 -5
- package/dist/esm/arcgis-slice.entry.js +5 -5
- package/dist/esm/arcgis-slider.entry.js +5 -5
- package/dist/esm/arcgis-swipe.entry.js +5 -5
- package/dist/esm/arcgis-table-list.entry.js +5 -5
- package/dist/esm/arcgis-time-slider.entry.js +5 -5
- package/dist/esm/arcgis-track.entry.js +5 -5
- package/dist/esm/arcgis-utility-network-associations.entry.js +5 -5
- package/dist/esm/arcgis-utility-network-trace.entry.js +5 -5
- package/dist/esm/arcgis-utility-network-validate-topology.entry.js +5 -5
- package/dist/esm/arcgis-value-picker.entry.js +5 -5
- package/dist/esm/arcgis-version-management-service-item_2.entry.js +12 -9
- package/dist/esm/arcgis-version-management-version-item_2.entry.js +9 -5
- package/dist/esm/arcgis-version-management.entry.js +13 -10
- package/dist/esm/arcgis-weather.entry.js +5 -5
- package/dist/esm/arcgis-zoom.entry.js +5 -5
- package/dist/esm/{component-utils-2b64dfdd.js → component-utils-10f74045.js} +1 -1
- package/dist/esm/{disconnected-7f6a3433.js → disconnected-f324c71b.js} +1 -1
- package/dist/esm/{index-42d43a77.js → index-97b615ed.js} +1 -1
- package/dist/esm/{index-7904f36c.js → index-ff478b8c.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/package.json +9 -9
- package/dist/arcgis-map-components/p-17ab6997.entry.js +0 -6
- package/dist/arcgis-map-components/p-64423033.entry.js +0 -6
- package/dist/arcgis-map-components/p-65bf36ad.entry.js +0 -6
- package/dist/arcgis-map-components/p-6cfc80ba.entry.js +0 -6
- package/dist/arcgis-map-components/p-7557b4ed.entry.js +0 -6
- package/dist/arcgis-map-components/p-7c95697d.entry.js +0 -6
- package/dist/arcgis-map-components/p-8ef95194.entry.js +0 -6
- package/dist/arcgis-map-components/p-aeeb895d.entry.js +0 -6
- package/dist/arcgis-map-components/p-e7167db8.entry.js +0 -6
- package/dist/arcgis-map-components/p-f77a9d21.entry.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as s,g as e}from"./p-
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-c8d111c4.js";import{l as h,i as o}from"./p-fab206f9.js";import{r as n,c as a,a as r}from"./p-1628550d.js";import{o as c}from"./p-2c40acef.js";const l=class{constructor(s){t(this,s),this.arcgisCoordinateConversionReady=i(this,"arcgisCoordinateConversionReady",7),this._watchHandles=[],this.referenceElement=void 0,this.conversions=void 0,this.currentLocation=void 0,this.formats=void 0,this.icon=void 0,this.locationSymbol=void 0,this.mode="live",this.multipleConversions=!0,this.orientation="auto",this.storageEnabled=!0,this.storageType="session",this.visibleElementsSettingsButton=!0,this.visibleElementsEditButton=!0,this.visibleElementsExpandButton=!0,this.visibleElementsCaptureButton=!0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){n(this,t)}conversionsWatcher(t){this.widget&&(this.widget.conversions=t)}formatsWatcher(t){this.widget&&(this.widget.formats=t)}iconWatcher(t){this.widget&&(this.widget.icon=t)}locationSymbolWatcher(t){this.widget&&(this.widget.locationSymbol=t)}modeWatcher(t){this.widget&&(this.widget.mode=t)}multipleConversionsWatcher(t){this.widget&&(this.widget.multipleConversions=t)}orientationWatcher(t){this.widget&&(this.widget.orientation=t)}storageEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.storageEnabled=t)}storageTypeWatcher(t){this.widget&&(this.widget.storageType=t)}visibleElementsSettingsButtonWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,settingsButton:t})}visibleElementsEditButtonWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,editButton:t})}visibleElementsExpandButtonWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,expandButton:t})}visibleElementsCaptureButtonWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,captureButton:t})}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async reverseConvert(t,i){return await(this.widget?.reverseConvert(t,i))}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,await this._addWatchers(),this._addContainer(),this.arcgisCoordinateConversionReady.emit(),a(this)}disconnectedCallback(){c(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:t,whenOnce:i}=await o();r(this,t((()=>this.widget.currentLocation),(t=>this.currentLocation=t),{initial:!0})),await i((()=>this.widget.formats)),this.formats=this.widget.formats}_createParams(){const t={};return t.visibleElements={settingsButton:this.visibleElementsSettingsButton,editButton:this.visibleElementsEditButton,expandButton:this.visibleElementsExpandButton,captureButton:this.visibleElementsCaptureButton},this.conversions&&(t.conversions=this.conversions),this.icon&&(t.icon=this.icon),this.formats&&(t.formats=this.formats),this.locationSymbol&&(t.locationSymbol=this.locationSymbol),this.mode&&(t.mode=this.mode),this.multipleConversions&&(t.multipleConversions=this.multipleConversions),this.orientation&&(t.orientation=this.orientation),void 0!==this.storageEnabled&&(t.storageEnabled=this.storageEnabled),this.storageType&&(t.storageType=this.storageType),this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],conversions:["conversionsWatcher"],formats:["formatsWatcher"],icon:["iconWatcher"],locationSymbol:["locationSymbolWatcher"],mode:["modeWatcher"],multipleConversions:["multipleConversionsWatcher"],orientation:["orientationWatcher"],storageEnabled:["storageEnabledWatcher"],storageType:["storageTypeWatcher"],visibleElementsSettingsButton:["visibleElementsSettingsButtonWatcher"],visibleElementsEditButton:["visibleElementsEditButtonWatcher"],visibleElementsExpandButton:["visibleElementsExpandButtonWatcher"],visibleElementsCaptureButton:["visibleElementsCaptureButtonWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};l.style="";export{l as arcgis_coordinate_conversion}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
+
* v4.29.8
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-c8d111c4.js";import{g as a,i as h}from"./p-fab206f9.js";import{r,c,a as o}from"./p-1628550d.js";import{o as n}from"./p-2c40acef.js";const l=class{constructor(s){t(this,s),this.arcgisBasemapToggleReady=i(this,"arcgisBasemapToggleReady",7),this._watchHandles=[],this.referenceElement=void 0,this.activeBasemap=void 0,this.nextBasemap=void 0,this.visibleElementsTitle=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){r(this,t)}nextBasemapWatcher(t){t&&this.widget&&(this.widget.nextBasemap=t)}visibleElementsTitleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,title:t})}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async toggle(){return await(this.widget?.toggle())}async componentDidLoad(){const t=this._createParams(),i=await a(t);this.widget=i,await this._addWatchers(),this._addContainer(),this.arcgisBasemapToggleReady.emit(),c(this)}disconnectedCallback(){n(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}_createParams(){const t={visibleElements:{}};return this.nextBasemap&&(t.nextBasemap=this.nextBasemap),this.visibleElementsTitle&&(t.visibleElements.title=this.visibleElementsTitle),this.view&&(t.view=this.view),t}async _addWatchers(){const{watch:t}=await h();o(this,t((()=>this.widget.activeBasemap),(t=>this.activeBasemap=t),{initial:!0})),o(this,t((()=>this.widget.nextBasemap),(t=>this.nextBasemap=t),{initial:!0}))}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],nextBasemap:["nextBasemapWatcher"],visibleElementsTitle:["visibleElementsTitleWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};l.style="";export{l as arcgis_basemap_toggle}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as s,g as a}from"./p-
|
|
6
|
+
import{r as t,c as i,h as s,g as a}from"./p-c8d111c4.js";import{E as h}from"./p-fab206f9.js";import{c as e}from"./p-1628550d.js";import{o as r}from"./p-2c40acef.js";const o=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this._watchHandles=[],this.referenceElement=void 0,this.average=void 0,this.barCreatedFunction=void 0,this.bins=void 0,this.dataLineCreatedFunction=void 0,this.dataLines=void 0,this.excludedBarColor=void 0,this.includedBarColor=void 0,this.labelFormatFunction=void 0,this.max=0,this.min=0,this.precision=void 0,this.rangeType=void 0,this.standardDeviation=void 0,this.standardDeviationCount=void 0,this.values=void 0,this.position="bottom-left",this.expandable=!1,this.widget=void 0}averageWatcher(t){this.widget&&(this.widget.average=t)}barCreatedFunctionWatcher(t){this.widget&&(this.widget.barCreatedFunction=t)}binsWatcher(t){this.widget&&(this.widget.bins=t)}dataLineCreatedFunctionWatcher(t){this.widget&&(this.widget.dataLineCreatedFunction=t)}dataLinesWatcher(t){this.widget&&(this.widget.dataLines=t)}excludedBarColorWatcher(t){this.widget&&(this.widget.excludedBarColor=t)}includedBarColorWatcher(t){this.widget&&(this.widget.includedBarColor=t)}labelFormatFunctionWatcher(t){this.widget&&(this.widget.labelFormatFunction=t)}maxWatcher(t){this.widget&&(this.widget.max=Number(t))}minWatcher(t){this.widget&&(this.widget.min=Number(t))}precisionWatcher(t){this.widget&&(this.widget.precision=t)}rangeTypeWatcher(t){this.widget&&(this.widget.rangeType=t)}standardDeviationWatcher(t){this.widget&&(this.widget.standardDeviation=t)}standardDeviationCountWatcher(t){this.widget&&(this.widget.standardDeviationCount=t)}valuesWatcher(t){this.widget&&(this.widget.values=t)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,this.widgetReady.emit({widget:this.widget}),e(this)}disconnectedCallback(){r(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem,min:this.min,max:this.max};return void 0!==this.average&&(t.average=this.average),this.barCreatedFunction&&(t.barCreatedFunction=this.barCreatedFunction),void 0!==this.bins&&(t.bins=this.bins),this.dataLineCreatedFunction&&(t.dataLineCreatedFunction=this.dataLineCreatedFunction),void 0!==this.dataLines&&(t.dataLines=this.dataLines),this.excludedBarColor&&(t.excludedBarColor=this.excludedBarColor),this.includedBarColor&&(t.includedBarColor=this.includedBarColor),this.labelFormatFunction&&(t.labelFormatFunction=this.labelFormatFunction),void 0!==this.precision&&(t.precision=this.precision),this.rangeType&&(t.rangeType=this.rangeType),void 0!==this.standardDeviation&&(t.standardDeviation=this.standardDeviation),void 0!==this.standardDeviationCount&&(t.standardDeviationCount=this.standardDeviationCount),void 0!==this.values&&(t.values=this.values),t}get el(){return a(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"]}}};o.style="arcgis-histogram-range-slider{}";export{o as arcgis_histogram_range_slider}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as s,g as e}from"./p-
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-c8d111c4.js";import{w as h}from"./p-fab206f9.js";import{r}from"./p-1628550d.js";import{o as a}from"./p-2c40acef.js";const o=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.featureFormSubmit=i(this,"featureFormSubmit",7),this.featureFormValueChange=i(this,"featureFormValueChange",7),this._watchHandles=[],this.referenceElement=void 0,this.position="bottom-left",this.expandable=!1,this.feature=void 0,this.formTemplate=void 0,this.groupDisplay=void 0,this.layer=void 0,this.timeZone=void 0,this.view=void 0,this.widget=void 0}referenceElementWatcher(t){r(this,t)}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}featureWatcher(t){this.widget&&(this.widget.feature=t)}formTemplateWatcher(t){this.widget&&(this.widget.formTemplate=t)}groupDisplayWatcher(t){this.widget&&(this.widget.groupDisplay=t)}layerWatcher(t){this.widget&&(this.widget.layer=t)}timeZoneWatcher(t){this.widget&&(this.widget.timeZone=t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.map=t.map)}async getValues(){return this.widget?.getValues()}async submit(){return this.widget?.submit()}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,this._proxyEvents(),this.widgetReady.emit({widget:this.widget})}disconnectedCallback(){a(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.feature&&(t.feature=this.feature),this.formTemplate&&(t.formTemplate=this.formTemplate),this.groupDisplay&&(t.groupDisplay=this.groupDisplay),this.layer&&(t.layer=this.layer),this.timeZone&&(t.timeZone=this.timeZone),this.view&&(t.map=this.view.map),t}_proxyEvents(){this.widget.on("submit",(t=>this.featureFormSubmit.emit(t))),this.widget.on("value-change",(t=>this.featureFormValueChange.emit(t)))}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],position:["positionWatcher"],feature:["featureWatcher"],formTemplate:["formTemplateWatcher"],groupDisplay:["groupDisplayWatcher"],layer:["layerWatcher"],timeZone:["timeZoneWatcher"],view:["viewWatcher"]}}};o.style="";export{o as arcgis_feature_form}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as s,g as e}from"./p-
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-c8d111c4.js";import{S as h}from"./p-fab206f9.js";import{r as a,c as r}from"./p-1628550d.js";import{o}from"./p-2c40acef.js";const n=class{constructor(s){t(this,s),this.arcgisShadowCastReady=i(this,"arcgisShadowCastReady",7),this._watchHandles=[],this.referenceElement=void 0,this.discreteOptions=void 0,this.durationOptions=void 0,this.endTimeOfDay=576e5,this.startTimeOfDay=36e6,this.thresholdOptions=void 0,this.utcOffset=void 0,this.visualizationType="threshold",this.icon=void 0,this.visibleElementsTimeRangeSlider=!0,this.visibleElementsTimezone=!0,this.visibleElementsDatePicker=!0,this.visibleElementsVisualizationOptions=!0,this.visibleElementsColorPicker=!0,this.visibleElementsTooltip=!0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){a(this,t)}discreteOptionsWatcher(t){this.widget&&(this.widget.viewModel.discreteOptions=t)}durationOptionsWatcher(t){this.widget&&(this.widget.viewModel.durationOptions=t)}endTimeOfDayWatcher(t){this.widget&&(this.widget.viewModel.endTimeOfDay=t)}startTimeOfDayWatcher(t){this.widget&&(this.widget.viewModel.startTimeOfDay=t)}thresholdOptionsWatcher(t){this.widget&&(this.widget.viewModel.thresholdOptions=t)}utcOffsetWatcher(t){this.widget&&(this.widget.viewModel.utcOffset=t)}visualizationTypeWatcher(t){this.widget&&(this.widget.viewModel.visualizationType=t)}iconWatcher(t){this.widget&&(this.widget.icon=t,this.widget.iconClass=t)}visibleElementsTimeRangeSliderWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,timeRangeSlider:t})}visibleElementsTimezoneWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,timezone:t})}visibleElementsDatePickerWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,datePicker:t})}visibleElementsVisualizationOptionsWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,visualizationOptions:t})}visibleElementsColorPickerWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,colorPicker:t})}visibleElementsTooltipWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,tooltip:t})}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async getDuration(t){return this.widget?.viewModel.getDuration(t)}async start(){this.widget?.viewModel.start()}async stop(){this.widget?.viewModel.stop()}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,this._setViewModelParams(),this._addContainer(),this.arcgisShadowCastReady.emit(),r(this)}disconnectedCallback(){o(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}_createParams(){const t={};return t.visibleElements={timeRangeSlider:this.visibleElementsTimeRangeSlider,timezone:this.visibleElementsTimezone,datePicker:this.visibleElementsDatePicker,visualizationOptions:this.visibleElementsVisualizationOptions,colorPicker:this.visibleElementsColorPicker,tooltip:this.visibleElementsTooltip},this.icon&&(t.icon=this.icon,t.iconClass=this.icon),this.view&&(t.view=this.view),t}_setViewModelParams(){const t={endTimeOfDay:this.endTimeOfDay,startTimeOfDay:this.startTimeOfDay,visualizationType:this.visualizationType};this.discreteOptions&&(t.discreteOptions=this.discreteOptions),this.durationOptions&&(t.durationOptions=this.durationOptions),this.thresholdOptions&&(t.thresholdOptions=this.thresholdOptions),this.utcOffset&&(t.utcOffset=this.utcOffset),this.widget.viewModel.set(t)}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],discreteOptions:["discreteOptionsWatcher"],durationOptions:["durationOptionsWatcher"],endTimeOfDay:["endTimeOfDayWatcher"],startTimeOfDay:["startTimeOfDayWatcher"],thresholdOptions:["thresholdOptionsWatcher"],utcOffset:["utcOffsetWatcher"],visualizationType:["visualizationTypeWatcher"],icon:["iconWatcher"],visibleElementsTimeRangeSlider:["visibleElementsTimeRangeSliderWatcher"],visibleElementsTimezone:["visibleElementsTimezoneWatcher"],visibleElementsDatePicker:["visibleElementsDatePickerWatcher"],visibleElementsVisualizationOptions:["visibleElementsVisualizationOptionsWatcher"],visibleElementsColorPicker:["visibleElementsColorPickerWatcher"],visibleElementsTooltip:["visibleElementsTooltipWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};n.style="arcgis-shadow-cast{}";export{n as arcgis_shadow_cast}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as i,c as t,h as s,g as h}from"./p-e71f0b88.js";import{n as e,i as a,a as r,b as c}from"./p-5618cdb5.js";import{r as o,c as n,a as d,i as l,b as p}from"./p-4a56215a.js";import{o as v}from"./p-fef5523a.js";const W=class{constructor(s){i(this,s),this.arcgisBasemapGalleryReady=t(this,"arcgisBasemapGalleryReady",7),this._watchHandles=[],this.referenceElement=void 0,this.activeBasemap=void 0,this.disabled=!1,this.icon=void 0,this.source=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(i){o(this,i)}disabledWatcher(i,t){this.widget&&i!==t&&(this.widget.disabled=i)}iconWatcher(i){this.widget&&(this.widget.icon=i,this.widget.iconClass=i)}sourceWatcher(i){this.widget&&(this.widget.source=i)}positionWatcher(i){void 0!==i&&this.widget&&this.view.ui.move(this.childElem,i)}viewWatcher(i){void 0!==i&&this.widget&&(this.widget.view=i)}async componentDidLoad(){const i=this._createParams(),t=await e(i);this.widget=t,await this._addWatchers(),this._addContainer(),this.arcgisBasemapGalleryReady.emit(),n(this)}disconnectedCallback(){v(this)}render(){return s("div",{ref:i=>this.childElem=i})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:i}=await a();d(this,[i((()=>this.widget.source),(()=>this.source=this.widget.source),{initial:!0}),i((()=>this.widget.activeBasemap),(i=>this.activeBasemap=i),{initial:!0}),i((()=>this.widget.disabled),(i=>this.disabled=i))])}_createParams(){const i={};return this.icon&&(i.icon=this.icon,i.iconClass=this.icon),this.source&&(i.source=this.source),this.view&&(i.view=this.view),i}get el(){return h(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],disabled:["disabledWatcher"],icon:["iconWatcher"],source:["sourceWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};W.style="";const g=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=void 0,this.background=void 0,this.basemapView=void 0,this.basemap=void 0,this.center=void 0,this.constraints=void 0,this.destroyDisabled=!1,this.extent=void 0,this.fatalError=void 0,this.floors=void 0,this.gamepad=void 0,this.graphics=void 0,this.highlightOptions=void 0,this.interacting=!1,this.itemId=void 0,this.layerViews=void 0,this.magnifier=void 0,this.map=void 0,this.navigating=!1,this.navigation=void 0,this.padding=void 0,this.popup=void 0,this.popupEnabled=!0,this.ready=!1,this.resizeAlign=void 0,this.resolution=void 0,this.rotation=0,this.scale=void 0,this.spatialReference=void 0,this.stationary=void 0,this.suspended=!0,this.theme=void 0,this.timeExtent=void 0,this.timeZone="system",this.toMap=void 0,this.toScreen=void 0,this.updating=!1,this.viewpoint=void 0,this.zoom=void 0,this.view=void 0}backgroundWatcher(i){this.view&&(this.background=i)}basemapWatcher(i){("string"==typeof i&&this.view?.map&&!l(i)||this.view?.map)&&(this.view.map.basemap=i)}centerWatcher(i,t){if(i!==t&&this.view)if("string"==typeof i){const t=i.split(",").map((i=>Number(i)));t[0]!==this.view.center.longitude&&t[1]!==this.view.center.latitude&&(this.view.center=t)}else Array.isArray(i)?i[0]!==this.view.center.longitude&&i[1]!==this.view.center.latitude&&(this.view.center=i):this.view.center.equals(i)||(this.view.center=i)}constraintsWatcher(i){this.view&&(this.view.constraints=i)}extentWatcher(i){this.view&&i&&!this.view.extent.equals(i)&&(this.view.extent=i)}floorsWatcher(i){this.view&&(this.view.floors=i)}graphicsWatcher(i){this.view&&(this.view.graphics=i)}highlightOptionsWatcher(i){this.view&&(this.view.highlightOptions=i)}itemIdWatcher(i,t){i!==t&&(this.view?.map?this._updateMap():this._loadMap())}mapWatcher(i){this.view&&(this.view.map=i)}navigationWatcher(i){this.view&&(this.view.navigation=i)}paddingWatcher(i){this.view&&(this.view.padding=i)}popupWatcher(i){this.view&&(this.view.popup=i)}popupEnabledWatcher(i,t){i!==t&&this.view&&(this.view.popupEnabled=i)}resizeAlignWatcher(i){this.view&&(this.view.resizeAlign=i)}rotationWatcher(i){this.view&&this.view.rotation!==i&&(this.view.rotation=i)}scaleWatcher(i,t){this.view?.interacting||null==i||i===t||(this.view.scale=i)}spatialReferenceWatcher(i){this.view&&i&&!this.view.spatialReference.equals(i)&&(this.view.spatialReference=i)}themeWatcher(i){this.view&&(this.view.theme=i)}timeExtentWatcher(i){this.view&&(this.view.timeExtent=i)}timeZoneWatcher(i){this.view&&(this.view.timeZone=i)}viewpointWatcher(i){this.view&&p(this.view.viewpoint,i)&&(this.view.viewpoint=i)}zoomWatcher(i,t){this.view?.interacting||null==i||i===t||(this.view.zoom=i)}async closePopup(){this.view?.closePopup()}async destroy(){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){this.view?.openPopup(i)}async takeScreenshot(i){return await(this.view?.takeScreenshot(i))}async tryFatalErrorRecovery(){this.view?.tryFatalErrorRecovery()}async whenLayerView(i){return await(this.view?.whenLayerView(i))}async componentWillLoad(){this.view||await this._loadMap()}componentDidRender(){this.view&&!this.view.container&&(this.view.container=this.el)}componentDidLoad(){this._proxyEvents()}disconnectedCallback(){this.destroy()}render(){return s("div",{class:"arcgis-map",ref:i=>this.el=i})}_clearWatchHandles(){this._watchHandles.forEach((i=>i.remove())),this._watchHandles=[]}async _addWatchers(){const{watch:i,when:t}=await a();d(this,[i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary,this.interacting=this.view.interacting,this.navigating=this.view.navigating,this.arcgisViewChange.emit()}),{initial:!0}),t((()=>this.view.stationary),(()=>{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:!0}),i((()=>this.view.map?.basemap),(()=>{this.basemap=this.view.map?.basemap}),{initial:!0}),i((()=>this.view.fatalError),(()=>{this.fatalError=this.view.fatalError}),{initial:!0}),i((()=>this.view.input.gamepad),(()=>{this.gamepad=this.view.input.gamepad}),{initial:!0}),i((()=>this.view.graphics),(()=>{this.graphics=this.view.graphics}),{initial:!0}),i((()=>this.view.layerViews),(()=>{this.layerViews=this.view.layerViews}),{initial:!0}),i((()=>this.view.navigation),(()=>{this.navigation=this.view.navigation}),{initial:!0}),i((()=>this.view.map),(()=>{this.map=this.view.map}),{initial:!0}),i((()=>this.view.popup),(()=>{this.popup=this.view.popup}),{initial:!0}),i((()=>this.view.resolution),(()=>{this.resolution=this.view.resolution}),{initial:!0}),i((()=>this.view.rotation),(()=>{this.rotation=this.view.rotation}),{initial:!0}),i((()=>this.view.suspended),(()=>{this.suspended=this.view.suspended}),{initial:!0}),i((()=>this.view.updating),(()=>{this.updating=this.view.updating}),{initial:!0}),i((()=>this.view.ready),(()=>{this.ready=this.view.ready,this.arcgisViewReadyChange.emit()}),{initial:!0})])}async _createMap(){const i={};return this.itemId&&(i.portalItem=await this._createPortalItem()),this.basemap?i.basemap=this.basemap:l(this.itemId)&&(i.basemap="topo-vector"),await r(i)}async _createPortalItem(){const i={};return this.itemId&&(i.id=this.itemId),i}_createViewParams(){const i={};return this.background&&(i.background=this.background),this.center&&(i.center="string"==typeof this.center?this.center.split(",").map((i=>Number(i))):this.center),this.constraints&&(i.constraints=this.constraints),this.extent&&(i.extent=this.extent),this.floors&&(i.floors=this.floors),this.graphics&&(i.graphics=this.graphics),this.highlightOptions&&(i.highlightOptions=this.highlightOptions),this.map&&(i.map=this.map),this.navigation&&(i.navigation=this.navigation),this.padding&&(i.padding=this.padding),this.popup&&(i.popup=this.popup),void 0!==this.popupEnabled&&(i.popupEnabled=this.popupEnabled),void 0!==this.rotation&&(i.rotation=this.rotation),void 0!==this.scale&&(i.scale=this.scale),this.spatialReference&&(i.spatialReference=this.spatialReference),this.theme&&(i.theme=this.theme),this.timeExtent&&(i.timeExtent=this.timeExtent),this.timeZone&&(i.timeZone=this.timeZone),this.viewpoint&&(i.viewpoint=this.viewpoint),void 0!==this.zoom&&(i.zoom=this.zoom),i}async _loadMap(){this.map||(this.map=await this._createMap());const i=this._createViewParams(),t=await c({...i});this.view=t,t.when((async()=>{this.toMap=t.toMap.bind(t),this.toScreen=t.toScreen.bind(t),await this._addWatchers()}))}_proxyEvents(){d(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 h(this)}static get watchers(){return{background:["backgroundWatcher"],basemap:["basemapWatcher"],center:["centerWatcher"],constraints:["constraintsWatcher"],extent:["extentWatcher"],floors:["floorsWatcher"],graphics:["graphicsWatcher"],highlightOptions:["highlightOptionsWatcher"],itemId:["itemIdWatcher"],map:["mapWatcher"],navigation:["navigationWatcher"],padding:["paddingWatcher"],popup:["popupWatcher"],popupEnabled:["popupEnabledWatcher"],resizeAlign:["resizeAlignWatcher"],rotation:["rotationWatcher"],scale:["scaleWatcher"],spatialReference:["spatialReferenceWatcher"],theme:["themeWatcher"],timeExtent:["timeExtentWatcher"],timeZone:["timeZoneWatcher"],viewpoint:["viewpointWatcher"],zoom:["zoomWatcher"]}}};g.style=".arcgis-map{padding:0;margin:0;height:100%;width:100%}";export{W as arcgis_basemap_gallery,g as arcgis_map}
|
|
6
|
+
import{r as i,c as t,h as s,g as h}from"./p-c8d111c4.js";import{n as e,i as a,a as r,b as c}from"./p-fab206f9.js";import{r as o,c as n,a as d,i as l,b as p}from"./p-1628550d.js";import{o as v}from"./p-2c40acef.js";const W=class{constructor(s){i(this,s),this.arcgisBasemapGalleryReady=t(this,"arcgisBasemapGalleryReady",7),this._watchHandles=[],this.referenceElement=void 0,this.activeBasemap=void 0,this.disabled=!1,this.icon=void 0,this.source=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(i){o(this,i)}disabledWatcher(i,t){this.widget&&i!==t&&(this.widget.disabled=i)}iconWatcher(i){this.widget&&(this.widget.icon=i,this.widget.iconClass=i)}sourceWatcher(i){this.widget&&(this.widget.source=i)}positionWatcher(i){void 0!==i&&this.widget&&this.view.ui.move(this.childElem,i)}viewWatcher(i){void 0!==i&&this.widget&&(this.widget.view=i)}async componentDidLoad(){const i=this._createParams(),t=await e(i);this.widget=t,await this._addWatchers(),this._addContainer(),this.arcgisBasemapGalleryReady.emit(),n(this)}disconnectedCallback(){v(this)}render(){return s("div",{ref:i=>this.childElem=i})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:i}=await a();d(this,[i((()=>this.widget.source),(()=>this.source=this.widget.source),{initial:!0}),i((()=>this.widget.activeBasemap),(i=>this.activeBasemap=i),{initial:!0}),i((()=>this.widget.disabled),(i=>this.disabled=i))])}_createParams(){const i={};return this.icon&&(i.icon=this.icon,i.iconClass=this.icon),this.source&&(i.source=this.source),this.view&&(i.view=this.view),i}get el(){return h(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],disabled:["disabledWatcher"],icon:["iconWatcher"],source:["sourceWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};W.style="";const g=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=void 0,this.background=void 0,this.basemapView=void 0,this.basemap=void 0,this.center=void 0,this.constraints=void 0,this.destroyDisabled=!1,this.extent=void 0,this.fatalError=void 0,this.floors=void 0,this.gamepad=void 0,this.graphics=void 0,this.highlightOptions=void 0,this.interacting=!1,this.itemId=void 0,this.layerViews=void 0,this.magnifier=void 0,this.map=void 0,this.navigating=!1,this.navigation=void 0,this.padding=void 0,this.popup=void 0,this.popupEnabled=!0,this.ready=!1,this.resizeAlign=void 0,this.resolution=void 0,this.rotation=0,this.scale=void 0,this.spatialReference=void 0,this.stationary=void 0,this.suspended=!0,this.theme=void 0,this.timeExtent=void 0,this.timeZone="system",this.toMap=void 0,this.toScreen=void 0,this.updating=!1,this.viewpoint=void 0,this.zoom=void 0,this.view=void 0}backgroundWatcher(i){this.view&&(this.background=i)}basemapWatcher(i){("string"==typeof i&&this.view?.map&&!l(i)||this.view?.map)&&(this.view.map.basemap=i)}centerWatcher(i,t){if(i!==t&&this.view)if("string"==typeof i){const t=i.split(",").map((i=>Number(i)));t[0]!==this.view.center.longitude&&t[1]!==this.view.center.latitude&&(this.view.center=t)}else Array.isArray(i)?i[0]!==this.view.center.longitude&&i[1]!==this.view.center.latitude&&(this.view.center=i):this.view.center.equals(i)||(this.view.center=i)}constraintsWatcher(i){this.view&&(this.view.constraints=i)}extentWatcher(i){this.view&&i&&!this.view.extent.equals(i)&&(this.view.extent=i)}floorsWatcher(i){this.view&&(this.view.floors=i)}graphicsWatcher(i){this.view&&(this.view.graphics=i)}highlightOptionsWatcher(i){this.view&&(this.view.highlightOptions=i)}itemIdWatcher(i,t){i!==t&&(this.view?.map?this._updateMap():this._loadMap())}mapWatcher(i){this.view&&(this.view.map=i)}navigationWatcher(i){this.view&&(this.view.navigation=i)}paddingWatcher(i){this.view&&(this.view.padding=i)}popupWatcher(i){this.view&&(this.view.popup=i)}popupEnabledWatcher(i,t){i!==t&&this.view&&(this.view.popupEnabled=i)}resizeAlignWatcher(i){this.view&&(this.view.resizeAlign=i)}rotationWatcher(i){this.view&&this.view.rotation!==i&&(this.view.rotation=i)}scaleWatcher(i,t){this.view?.interacting||null==i||i===t||(this.view.scale=i)}spatialReferenceWatcher(i){this.view&&i&&!this.view.spatialReference.equals(i)&&(this.view.spatialReference=i)}themeWatcher(i){this.view&&(this.view.theme=i)}timeExtentWatcher(i){this.view&&(this.view.timeExtent=i)}timeZoneWatcher(i){this.view&&(this.view.timeZone=i)}viewpointWatcher(i){this.view&&p(this.view.viewpoint,i)&&(this.view.viewpoint=i)}zoomWatcher(i,t){this.view?.interacting||null==i||i===t||(this.view.zoom=i)}async closePopup(){this.view?.closePopup()}async destroy(){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){this.view?.openPopup(i)}async takeScreenshot(i){return await(this.view?.takeScreenshot(i))}async tryFatalErrorRecovery(){this.view?.tryFatalErrorRecovery()}async whenLayerView(i){return await(this.view?.whenLayerView(i))}async componentWillLoad(){this.view||await this._loadMap()}componentDidRender(){this.view&&!this.view.container&&(this.view.container=this.el)}componentDidLoad(){this._proxyEvents()}disconnectedCallback(){this.destroy()}render(){return s("div",{class:"arcgis-map",ref:i=>this.el=i})}_clearWatchHandles(){this._watchHandles.forEach((i=>i.remove())),this._watchHandles=[]}async _addWatchers(){const{watch:i,when:t}=await a();d(this,[i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary,this.interacting=this.view.interacting,this.navigating=this.view.navigating,this.arcgisViewChange.emit()}),{initial:!0}),t((()=>this.view.stationary),(()=>{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:!0}),i((()=>this.view.map?.basemap),(()=>{this.basemap=this.view.map?.basemap}),{initial:!0}),i((()=>this.view.fatalError),(()=>{this.fatalError=this.view.fatalError}),{initial:!0}),i((()=>this.view.input.gamepad),(()=>{this.gamepad=this.view.input.gamepad}),{initial:!0}),i((()=>this.view.graphics),(()=>{this.graphics=this.view.graphics}),{initial:!0}),i((()=>this.view.layerViews),(()=>{this.layerViews=this.view.layerViews}),{initial:!0}),i((()=>this.view.navigation),(()=>{this.navigation=this.view.navigation}),{initial:!0}),i((()=>this.view.map),(()=>{this.map=this.view.map}),{initial:!0}),i((()=>this.view.popup),(()=>{this.popup=this.view.popup}),{initial:!0}),i((()=>this.view.resolution),(()=>{this.resolution=this.view.resolution}),{initial:!0}),i((()=>this.view.rotation),(()=>{this.rotation=this.view.rotation}),{initial:!0}),i((()=>this.view.suspended),(()=>{this.suspended=this.view.suspended}),{initial:!0}),i((()=>this.view.updating),(()=>{this.updating=this.view.updating}),{initial:!0}),i((()=>this.view.ready),(()=>{this.ready=this.view.ready,this.arcgisViewReadyChange.emit()}),{initial:!0})])}async _createMap(){const i={};return this.itemId&&(i.portalItem=await this._createPortalItem()),this.basemap?i.basemap=this.basemap:l(this.itemId)&&(i.basemap="topo-vector"),await r(i)}async _createPortalItem(){const i={};return this.itemId&&(i.id=this.itemId),i}_createViewParams(){const i={};return this.background&&(i.background=this.background),this.center&&(i.center="string"==typeof this.center?this.center.split(",").map((i=>Number(i))):this.center),this.constraints&&(i.constraints=this.constraints),this.extent&&(i.extent=this.extent),this.floors&&(i.floors=this.floors),this.graphics&&(i.graphics=this.graphics),this.highlightOptions&&(i.highlightOptions=this.highlightOptions),this.map&&(i.map=this.map),this.navigation&&(i.navigation=this.navigation),this.padding&&(i.padding=this.padding),this.popup&&(i.popup=this.popup),void 0!==this.popupEnabled&&(i.popupEnabled=this.popupEnabled),void 0!==this.rotation&&(i.rotation=this.rotation),void 0!==this.scale&&(i.scale=this.scale),this.spatialReference&&(i.spatialReference=this.spatialReference),this.theme&&(i.theme=this.theme),this.timeExtent&&(i.timeExtent=this.timeExtent),this.timeZone&&(i.timeZone=this.timeZone),this.viewpoint&&(i.viewpoint=this.viewpoint),void 0!==this.zoom&&(i.zoom=this.zoom),i}async _loadMap(){this.map||(this.map=await this._createMap());const i=this._createViewParams(),t=await c({...i});this.view=t,t.when((async()=>{this.toMap=t.toMap.bind(t),this.toScreen=t.toScreen.bind(t),await this._addWatchers()}))}_proxyEvents(){d(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 h(this)}static get watchers(){return{background:["backgroundWatcher"],basemap:["basemapWatcher"],center:["centerWatcher"],constraints:["constraintsWatcher"],extent:["extentWatcher"],floors:["floorsWatcher"],graphics:["graphicsWatcher"],highlightOptions:["highlightOptionsWatcher"],itemId:["itemIdWatcher"],map:["mapWatcher"],navigation:["navigationWatcher"],padding:["paddingWatcher"],popup:["popupWatcher"],popupEnabled:["popupEnabledWatcher"],resizeAlign:["resizeAlignWatcher"],rotation:["rotationWatcher"],scale:["scaleWatcher"],spatialReference:["spatialReferenceWatcher"],theme:["themeWatcher"],timeExtent:["timeExtentWatcher"],timeZone:["timeZoneWatcher"],viewpoint:["viewpointWatcher"],zoom:["zoomWatcher"]}}};g.style=".arcgis-map{padding:0;margin:0;height:100%;width:100%}";export{W as arcgis_basemap_gallery,g as arcgis_map}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
+
* v4.29.8
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as i,h as s,g as h}from"./p-c8d111c4.js";import{r as e,i as a}from"./p-fab206f9.js";import{r,c,a as n}from"./p-1628550d.js";import{o}from"./p-2c40acef.js";const d=class{constructor(s){t(this,s),this.arcgisDirectLineMeasurement3dReady=i(this,"arcgisDirectLineMeasurement3dReady",7),this._watchHandles=[],this.referenceElement=void 0,this.analysis=void 0,this.icon=void 0,this.unit=void 0,this.unitOptions=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){r(this,t)}iconWatcher(t){this.widget&&(this.widget.icon=t,this.widget.iconClass=t)}unitWatcher(t){this.widget&&(this.widget.unit=t)}unitOptionsWatcher(t){this.widget&&(this.widget.unitOptions=t)}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async clear(){this.widget?.viewModel.clear()}async start(){this.widget?.viewModel.start()}async componentDidLoad(){const t=this._createParams(),i=await e(t);this.widget=i,await this._addWatchers(),this._addContainer(),this.arcgisDirectLineMeasurement3dReady.emit(),c(this)}disconnectedCallback(){o(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:t,whenOnce:i}=await a();n(this,t((()=>this.widget.analysis),(t=>this.analysis=t),{initial:!0})),await i((()=>this.widget.unitOptions)),this.unitOptions=this.widget.unitOptions}_createParams(){const t={};return this.icon&&(t.icon=this.icon,t.iconClass=this.icon),this.view&&(t.view=this.view),this.unit&&(t.unit=this.unit),this.unitOptions&&(t.unitOptions=this.unitOptions),t}get el(){return h(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],icon:["iconWatcher"],unit:["unitWatcher"],unitOptions:["unitOptionsWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};d.style="";export{d as arcgis_directline_measurement_3d}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
+
* v4.29.8
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as e,h as s,g as r}from"./p-c8d111c4.js";import{r as i,c}from"./p-1628550d.js";import{o}from"./p-2c40acef.js";const a=class{constructor(s){t(this,s),this.placementReady=e(this,"placementReady",7),this.referenceElement=void 0,this.view=void 0,this.position="bottom-left"}referenceElementWatcher(t){i(this,t)}positionWatcher(t){void 0!==t&&this.view.ui.move(this.childElem,t)}async componentDidLoad(){this.placementReady.emit({ready:!0}),c(this)}disconnectedCallback(){o(this)}render(){return s("div",{ref:t=>this.childElem=t},s("slot",null))}get el(){return r(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],position:["positionWatcher"]}}};a.style="arcgis-placement{}";export{a as arcgis_placement}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as e,g as s}from"./p-
|
|
6
|
+
import{r as t,c as i,h as e,g as s}from"./p-c8d111c4.js";import{a1 as r}from"./p-fab206f9.js";import{r as o,c as a}from"./p-1628550d.js";import{o as h}from"./p-2c40acef.js";const c=class{constructor(e){t(this,e),this.arcgisUtilityNetworkValidateTopologyReady=i(this,"arcgisUtilityNetworkValidateTopologyReady",7),this._watchHandles=[],this.referenceElement=void 0,this.extentToValidate="current",this.utilityNetwork=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){o(this,t)}extentToValidateWatcher(t){this.widget&&(this.widget.extentToValidate=t)}utilityNetworkWatcher(t){this.widget&&(this.widget.utilityNetwork=t)}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),i=await r(t);this.widget=i,this._addContainer(),this.arcgisUtilityNetworkValidateTopologyReady.emit(),a(this)}disconnectedCallback(){h(this)}render(){return e("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}_createParams(){const t={};return void 0!==this.extentToValidate&&(t.extentToValidate=this.extentToValidate),void 0!==this.utilityNetwork&&(t.utilityNetwork=this.utilityNetwork),t}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],extentToValidate:["extentToValidateWatcher"],utilityNetwork:["utilityNetworkWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};c.style="arcgis-utility-network-validate-topology{}";export{c as arcgis_utility_network_validate_topology}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as i,c as e,h as t,g as s}from"./p-
|
|
6
|
+
import{r as i,c as e,h as t,g as s}from"./p-c8d111c4.js";import{O as a,i as h}from"./p-fab206f9.js";import{r as c,c as r,a as n}from"./p-1628550d.js";import{o as l}from"./p-2c40acef.js";const o=class{constructor(t){i(this,t),this.arcgisScaleRangeSliderReady=e(this,"arcgisScaleRangeSliderReady",7),this._watchHandles=[],this.referenceElement=void 0,this.disabled=!1,this.layer=void 0,this.maxScale=void 0,this.maxScaleLimit=void 0,this.minScale=void 0,this.minScaleLimit=void 0,this.mode="range",this.region="US",this.visibleElementsPreview=!0,this.visibleElementsScaleMenusMinScaleMenu=!0,this.visibleElementsScaleMenusMaxScaleMenu=!0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(i){c(this,i)}disabledWatcher(i,e){this.widget&&i!==e&&(this.widget.disabled=i)}layerWatcher(i){this.widget&&(this.widget.layer=i)}maxScaleWatcher(i){void 0!==i&&this.widget&&(this.widget.maxScale=i)}maxScaleLimitWatcher(i){void 0!==i&&this.widget&&(this.widget.maxScaleLimit=i)}minScaleWatcher(i){void 0!==i&&this.widget&&(this.widget.minScale=i)}minScaleLimitWatcher(i){void 0!==i&&this.widget&&(this.widget.minScaleLimit=i)}modeWatcher(i){this.widget&&(this.widget.mode=i)}regionWatcher(i){this.widget&&(this.widget.region=i)}visibleElementsPreviewWatcher(i){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,preview:i})}visibleElementsScaleMenusMinScaleMenuWatcher(i){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,scaleMenus:{...this.widget.visibleElements.scaleMenus,minScaleMenu:i}})}visibleElementsScaleMenusMaxScaleMenuWatcher(i){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,scaleMenus:{...this.widget.visibleElements.scaleMenus,maxScaleMenu:i}})}positionWatcher(i){void 0!==i&&this.widget&&this.view.ui.move(this.childElem,i)}viewWatcher(i){void 0!==i&&this.widget&&(this.widget.view=i)}async componentDidLoad(){const i=this._createParams(),e=await a(i);this.widget=e,await this._addWatchers(),this._addContainer(),this.arcgisScaleRangeSliderReady.emit(),r(this)}disconnectedCallback(){l(this)}render(){return t("div",{ref:i=>this.childElem=i})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:i}=await h();n(this,i((()=>this.widget?.disabled),(i=>this.disabled=i)))}_createParams(){const i={};return i.visibleElements={preview:this.visibleElementsPreview,scaleMenus:{minScaleMenu:this.visibleElementsScaleMenusMinScaleMenu,maxScaleMenu:this.visibleElementsScaleMenusMaxScaleMenu}},this.layer&&(i.layer=this.layer),void 0!==this.maxScale&&(i.maxScale=this.maxScale),void 0!==this.minScale&&(i.minScale=this.minScale),void 0!==this.maxScaleLimit&&(i.maxScaleLimit=this.maxScaleLimit),void 0!==this.minScaleLimit&&(i.minScaleLimit=this.minScaleLimit),this.mode&&(i.mode=this.mode),this.region&&(i.region=this.region),this.view&&(i.view=this.view),i}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],disabled:["disabledWatcher"],layer:["layerWatcher"],maxScale:["maxScaleWatcher"],maxScaleLimit:["maxScaleLimitWatcher"],minScale:["minScaleWatcher"],minScaleLimit:["minScaleLimitWatcher"],mode:["modeWatcher"],region:["regionWatcher"],visibleElementsPreview:["visibleElementsPreviewWatcher"],visibleElementsScaleMenusMinScaleMenu:["visibleElementsScaleMenusMinScaleMenuWatcher"],visibleElementsScaleMenusMaxScaleMenu:["visibleElementsScaleMenusMaxScaleMenuWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};o.style="arcgis-scale-range-slider{}";export{o as arcgis_scale_range_slider}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as e,h as i,g as s}from"./p-
|
|
6
|
+
import{r as t,c as e,h as i,g as s}from"./p-c8d111c4.js";import{v as h,i as n}from"./p-fab206f9.js";import{r as a,c as o,a as c}from"./p-1628550d.js";import{o as r}from"./p-2c40acef.js";const l=class{constructor(i){t(this,i),this.arcgisFeatureReady=e(this,"arcgisFeatureReady",7),this._watchHandles=[],this.referenceElement=void 0,this.defaultPopupTemplateEnabled=!1,this.graphic=void 0,this.location=void 0,this.map=void 0,this.spatialReference=void 0,this.visibleElementsTitle=!0,this.visibleElementsContentAttachments=!0,this.visibleElementsContentFields=!0,this.visibleElementsContentMedia=!0,this.visibleElementsContentText=!0,this.visibleElementsContentExpression=!0,this.visibleElementsLastEditInfo=!0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){a(this,t)}defaultPopupTemplateEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.defaultPopupTemplateEnabled=t)}graphicWatcher(t){this.widget&&(this.widget.graphic=t)}locationWatcher(t){this.widget&&(this.widget.viewModel.location=t)}spatialReferenceWatcher(t){this.widget&&(this.widget.spatialReference=t)}visibleElementsTitleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,title:t})}visibleElementsContentAttachmentsWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,content:{...this.widget.visibleElements.content,attachments:t}})}visibleElementsContentFieldsWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,content:{...this.widget.visibleElements.content,fields:t}})}visibleElementsContentMediaWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,content:{...this.widget.visibleElements.content,media:t}})}visibleElementsContentTextWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,content:{...this.widget.visibleElements.content,text:t}})}visibleElementsContentExpressionWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,content:{...this.widget.visibleElements.content,expression:t}})}visibleElementsLastEditInfoWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,lastEditInfo:t})}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async nextMedia(t){this.widget?.nextMedia(t)}async previousMedia(t){this.widget?.previousMedia(t)}async setActiveMedia(t,e){this.widget?.setActiveMedia(t,e)}async componentDidLoad(){const t=this._createParams(),e=await h(t);this.widget=e,this._addContainer(),this._setViewModelParams(),await this._addWatchers(),this.arcgisFeatureReady.emit(),o(this)}disconnectedCallback(){r(this)}render(){return i("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:t}=await n();c(this,t((()=>this.widget.view?.map),(t=>this.map=t)))}_createParams(){const t={};return t.visibleElements={title:this.visibleElementsTitle,content:{attachments:this.visibleElementsContentAttachments,fields:this.visibleElementsContentFields,media:this.visibleElementsContentMedia,text:this.visibleElementsContentText,expression:this.visibleElementsContentExpression},lastEditInfo:this.visibleElementsLastEditInfo},void 0!==this.defaultPopupTemplateEnabled&&(t.defaultPopupTemplateEnabled=this.defaultPopupTemplateEnabled),this.graphic&&(t.graphic=this.graphic),this.view&&(t.view=this.view),this.spatialReference&&(t.spatialReference=this.spatialReference),t}_setViewModelParams(){const t={};this.location&&(t.location=this.location),this.widget.viewModel.set(t)}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],defaultPopupTemplateEnabled:["defaultPopupTemplateEnabledWatcher"],graphic:["graphicWatcher"],location:["locationWatcher"],spatialReference:["spatialReferenceWatcher"],visibleElementsTitle:["visibleElementsTitleWatcher"],visibleElementsContentAttachments:["visibleElementsContentAttachmentsWatcher"],visibleElementsContentFields:["visibleElementsContentFieldsWatcher"],visibleElementsContentMedia:["visibleElementsContentMediaWatcher"],visibleElementsContentText:["visibleElementsContentTextWatcher"],visibleElementsContentExpression:["visibleElementsContentExpressionWatcher"],visibleElementsLastEditInfo:["visibleElementsLastEditInfoWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};l.style="";export{l as arcgis_feature}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as s,g as h}from"./p-
|
|
6
|
+
import{r as t,c as i,h as s,g as h}from"./p-c8d111c4.js";import{J as o,i as a}from"./p-fab206f9.js";import{r as e,c,a as r}from"./p-1628550d.js";import{o as n}from"./p-2c40acef.js";const d=class{constructor(s){t(this,s),this.arcgisLocateReady=i(this,"arcgisLocateReady",7),this.locateSuccess=i(this,"locateSuccess",7),this.locateError=i(this,"locateError",7),this._watchHandles=[],this.referenceElement=void 0,this.error=void 0,this.geolocationOptions=void 0,this.goToLocationDisabled=!1,this.graphic=void 0,this.icon=void 0,this.popupDisabled=!1,this.scale=void 0,this.state=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){e(this,t)}geolocationOptionsWatcher(t){void 0!==t&&this.widget&&(this.widget.geolocationOptions=t)}goToLocationDisabledWatcher(t){void 0!==t&&this.widget&&(this.widget.goToLocationEnabled=!t)}graphicWatcher(t){this.widget&&(this.widget.graphic=t)}iconWatcher(t){void 0!==t&&this.widget&&(this.widget.icon=t,this.widget.iconClass=t)}popupDisabledWatcher(t){void 0!==t&&this.widget&&(this.widget.popupEnabled=!t)}scaleWatcher(t){void 0!==t&&this.widget&&(this.widget.scale=t)}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async cancelLocate(){this.widget?.cancelLocate()}async locate(){return await(this.widget?.locate())}async componentDidLoad(){const t=this._createParams(),i=await o(t);this.widget=i,await this._addWatchers(),this._addContainer(),this.arcgisLocateReady.emit(),this._proxyEvents(),c(this)}disconnectedCallback(){n(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:t}=await a();r(this,[t((()=>this.widget?.viewModel?.state),(t=>this.state=t)),t((()=>this.widget?.viewModel?.error),(t=>this.error=t))])}_createParams(){const t={};return void 0!==this.geolocationOptions&&(t.geolocationOptions=this.geolocationOptions),void 0!==this.goToLocationDisabled&&(t.goToLocationEnabled=!this.goToLocationDisabled),void 0!==this.graphic&&(t.graphic=this.graphic),void 0!==this.icon&&(t.icon=this.icon,t.iconClass=this.icon),void 0!==this.popupDisabled&&(t.popupEnabled=!this.popupDisabled),void 0!==this.scale&&(t.scale=this.scale),this.view&&(t.view=this.view),t}_proxyEvents(){this.widget?.on("locate",(t=>this.locateSuccess.emit(t))),this.widget?.on("locate-error",(t=>this.locateError.emit(t)))}get el(){return h(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],geolocationOptions:["geolocationOptionsWatcher"],goToLocationDisabled:["goToLocationDisabledWatcher"],graphic:["graphicWatcher"],icon:["iconWatcher"],popupDisabled:["popupDisabledWatcher"],scale:["scaleWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};d.style="arcgis-locate{}";export{d as arcgis_locate}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
+
* v4.29.8
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-c8d111c4.js";import{F as h}from"./p-fab206f9.js";import{r,c as o}from"./p-1628550d.js";import{o as a}from"./p-2c40acef.js";const c=class{constructor(s){t(this,s),this.arcgisHomeReady=i(this,"arcgisHomeReady",7),this._watchHandles=[],this.referenceElement=void 0,this.icon=void 0,this.viewpoint=void 0,this.messageOverrides=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){r(this,t)}iconWatcher(t){this.widget&&this.widget.icon!==t&&(this.widget.icon=t,this.widget.iconClass=t)}viewpointWatcher(t){this.widget&&(this.widget.viewpoint=t)}messageOverridesWatcher(t){this.widget&&(this.widget.uiStrings=t)}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async cancelGo(){this.widget?.cancelGo()}async go(){this.widget?.go()}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,this._addContainer(),this.arcgisHomeReady.emit(),o(this)}disconnectedCallback(){a(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}_createParams(){const t={};return this.icon&&(t.icon=this.icon,t.iconClass=this.icon),this.viewpoint&&(t.viewpoint=this.viewpoint),this.messageOverrides&&(t.uiStrings=this.messageOverrides),this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],icon:["iconWatcher"],viewpoint:["viewpointWatcher"],messageOverrides:["messageOverridesWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};c.style="arcgis-home{}";export{c as arcgis_home}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as s,g as e}from"./p-
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-c8d111c4.js";import{k as h,i as a}from"./p-fab206f9.js";import{r,c as o,a as c}from"./p-1628550d.js";import{o as n}from"./p-2c40acef.js";const d=class{constructor(s){t(this,s),this.arcgisCompassReady=i(this,"arcgisCompassReady",7),this._watchHandles=[],this.referenceElement=void 0,this.orientation={x:0,y:0,z:0},this.icon=void 0,this.state="disabled",this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){r(this,t)}orientationWatcher(t,i){var s,e;this.widget&&((s=t).x!==(e=i).x||s.y!==e.y||s.z!==e.z)&&(this.widget.viewModel.orientation=t)}iconWatcher(t){void 0!==t&&this.widget&&(this.widget.icon=t,this.widget.iconClass=t)}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async reset(){this.widget?.reset()}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,this._addContainer(),this._setViewModelParams(),await this._addWatchers(),this.arcgisCompassReady.emit(),o(this)}disconnectedCallback(){n(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:t}=await a();c(this,[t((()=>this.widget?.viewModel.orientation),(t=>this.orientation=t)),t((()=>this.widget?.viewModel.state),(t=>this.state=t))])}_createParams(){const t={};return this.icon&&(t.icon=this.icon,t.iconClass=this.icon),this.view&&(t.view=this.view),t}_setViewModelParams(){this.widget.viewModel.set({orientation:this.orientation})}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],orientation:["orientationWatcher"],icon:["iconWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};d.style="";export{d as arcgis_compass}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as s,g as e}from"./p-
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-c8d111c4.js";import{u as h,i as n}from"./p-fab206f9.js";import{r as a,c as r,a as o}from"./p-1628550d.js";import{o as l}from"./p-2c40acef.js";const c=class{constructor(s){t(this,s),this.arcgisElevationProfileReady=i(this,"arcgisElevationProfileReady",7),this._watchHandles=[],this.referenceElement=void 0,this.effectiveUnits=void 0,this.highlightEnabled=!0,this.hoveredChartPosition=void 0,this.icon=void 0,this.input=void 0,this.profiles=void 0,this.progress=void 0,this.state="disabled",this.unit=void 0,this.uniformChartScaling=void 0,this.unitOptions=void 0,this.visibleElementsLegend=!0,this.visibleElementsChart=!0,this.visibleElementsClearButton=!0,this.visibleElementsSettingsButton=!0,this.visibleElementsSketchButton=!0,this.visibleElementsSelectButton=!0,this.visibleElementsUnitSelector=!0,this.visibleElementsUniformChartScalingToggle=!0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){a(this,t)}highlightEnabledWatcher(t){this.widget&&(this.widget.viewModel.highlightEnabled=t)}iconWatcher(t){void 0!==t&&this.widget&&(this.widget.icon=t,this.widget.iconClass=t)}inputWatcher(t){t&&this.widget&&(this.widget.input=t)}profilesWatcher(t){t&&this.widget&&(this.widget.profiles=t)}unitWatcher(t){t&&this.widget&&(this.widget.unit=t)}uniformChartScalingWatcher(t){this.widget&&(this.widget.viewModel.uniformChartScaling=t)}unitOptionsWatcher(t){t&&this.widget&&(this.widget.unitOptions=t)}visibleElementsLegendWatcher(t){void 0!==t&&this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,legend:t})}visibleElementsChartWatcher(t){void 0!==t&&this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,chart:t})}visibleElementsClearButtonWatcher(t){void 0!==t&&this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,clearButton:t})}visibleElementsSettingsButtonWatcher(t){void 0!==t&&this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,settingsButton:t})}visibleElementsSketchButtonWatcher(t){void 0!==t&&this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,sketchButton:t})}visibleElementsSelectButtonWatcher(t){void 0!==t&&this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,selectButton:t})}visibleElementsUnitSelectorWatcher(t){void 0!==t&&this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,unitSelector:t})}visibleElementsUniformChartScalingToggleWatcher(t){void 0!==t&&this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,uniformChartScalingToggle:t})}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async start(){this.widget.viewModel.start()}async stop(){this.widget.viewModel.stop()}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,this._setViewModelParams(),await this._addWatchers(),this._addContainer(),this.arcgisElevationProfileReady.emit(),r(this)}disconnectedCallback(){l(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:t,whenOnce:i}=await n();o(this,[t((()=>this.widget.input),(()=>this.input=this.widget.input),{initial:!0}),t((()=>this.widget.viewModel.effectiveUnits),(()=>this.effectiveUnits=this.widget.viewModel.effectiveUnits),{initial:!0}),t((()=>this.widget.viewModel.hoveredChartPosition),(()=>this.hoveredChartPosition=this.widget.viewModel.hoveredChartPosition),{initial:!0}),t((()=>this.widget.viewModel.progress),(()=>this.progress=this.widget.viewModel.progress),{initial:!0}),t((()=>this.widget.viewModel.state),(()=>this.state=this.widget.viewModel.state),{initial:!0})]),await i((()=>this.widget.unitOptions)),this.unitOptions=this.widget.unitOptions}_createParams(){const t={};return t.visibleElements={legend:this.visibleElementsLegend,chart:this.visibleElementsChart,clearButton:this.visibleElementsClearButton,settingsButton:this.visibleElementsSettingsButton,sketchButton:this.visibleElementsSketchButton,selectButton:this.visibleElementsSelectButton,unitSelector:this.visibleElementsUnitSelector,uniformChartScalingToggle:this.visibleElementsUniformChartScalingToggle},this.view&&(t.view=this.view),this.icon&&(t.icon=this.icon,t.iconClass=this.icon),this.input&&(t.input=this.input),this.profiles&&(t.profiles=this.profiles),this.unit&&(t.unit=this.unit),this.unitOptions&&(t.unitOptions=this.unitOptions),t}_setViewModelParams(){const t={};void 0!==this.highlightEnabled&&(t.highlightEnabled=this.highlightEnabled),void 0!==this.uniformChartScaling&&(t.uniformChartScaling=this.uniformChartScaling),this.widget.viewModel.set(t)}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],highlightEnabled:["highlightEnabledWatcher"],icon:["iconWatcher"],input:["inputWatcher"],profiles:["profilesWatcher"],unit:["unitWatcher"],uniformChartScaling:["uniformChartScalingWatcher"],unitOptions:["unitOptionsWatcher"],visibleElementsLegend:["visibleElementsLegendWatcher"],visibleElementsChart:["visibleElementsChartWatcher"],visibleElementsClearButton:["visibleElementsClearButtonWatcher"],visibleElementsSettingsButton:["visibleElementsSettingsButtonWatcher"],visibleElementsSketchButton:["visibleElementsSketchButtonWatcher"],visibleElementsSelectButton:["visibleElementsSelectButtonWatcher"],visibleElementsUnitSelector:["visibleElementsUnitSelectorWatcher"],visibleElementsUniformChartScalingToggle:["visibleElementsUniformChartScalingToggleWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_elevation_profile}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as i,c as t,h as s,g as h}from"./p-e71f0b88.js";import{i as e,P as a,Q as r}from"./p-5618cdb5.js";import{i as o,e as n,f as c,b as d,g as l,a as p}from"./p-4a56215a.js";const v=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=void 0,this.alphaCompositingEnabled=!1,this.analyses=void 0,this.basemapView=void 0,this.basemap=void 0,this.camera=void 0,this.center=void 0,this.clippingArea=void 0,this.constraints=void 0,this.destroyDisabled=!1,this.environment=void 0,this.extent=void 0,this.fatalError=void 0,this.floors=void 0,this.gamepad=void 0,this.graphics=void 0,this.ground=void 0,this.groundView=void 0,this.highlightOptions=void 0,this.interacting=!1,this.itemId=void 0,this.layerViews=void 0,this.magnifier=void 0,this.map=void 0,this.navigating=!1,this.navigation=void 0,this.padding=void 0,this.performanceInfo=void 0,this.popup=void 0,this.popupEnabled=!0,this.qualityProfile=void 0,this.ready=!1,this.resolution=void 0,this.scale=void 0,this.spatialReference=void 0,this.stationary=void 0,this.suspended=!1,this.theme=void 0,this.timeExtent=void 0,this.toMap=void 0,this.toScreen=void 0,this.updating=!1,this.viewingMode="global",this.viewpoint=void 0,this.zoom=void 0,this.view=void 0}alphaCompositingEnabledWatcher(i){void 0!==i&&this.view&&(this.view.alphaCompositingEnabled=i)}basemapWatcher(i){("string"==typeof i&&this.view?.map&&!o(i)||this.view?.map)&&(this.view.map.basemap=i)}cameraWatcher(i){this.view&&i&&n(this.view.camera,i)&&(this.view.camera=i)}centerWatcher(i,t){if(i!==t&&this.view)if("string"==typeof i){const t=i.split(",").map((i=>Number(i)));t[0]!==this.view.center.longitude&&t[1]!==this.view.center.latitude&&(this.view.center=t)}else Array.isArray(i)?i[0]!==this.view.center.longitude&&i[1]!==this.view.center.latitude&&(this.view.center=i):this.view.center.equals(i)||(this.view.center=i)}clippingAreaWatcher(i){this.view&&i&&!this.view.clippingArea?.equals(i)&&(this.view.clippingArea=i)}constraintsWatcher(i){this.view&&(this.view.constraints=i)}environmentWatcher(i){this.view&&i&&c(this.view.environment,i)&&(this.view.environment=i)}extentWatcher(i){this.view&&i&&!this.view.extent.equals(i)&&(this.view.extent=i)}floorsWatcher(i){this.view&&(this.view.floors=i)}graphicsWatcher(i){this.view&&(this.view.graphics=i)}groundWatcher(i){this.view?.map&&!o(i)&&(this.view.map.ground=i)}highlightOptionsWatcher(i){this.view&&(this.view.highlightOptions=i)}itemIdWatcher(i,t){i!==t&&(this.view?.map?this._updateMap():this._loadMap())}mapWatcher(i){this.view&&(this.view.map=i)}navigationWatcher(i){this.view&&(this.view.navigation=i)}paddingWatcher(i){this.view&&(this.view.padding=i)}popupWatcher(i){this.view&&(this.view.popup=i)}popupEnabledWatcher(i,t){i!==t&&this.view&&(this.view.popupEnabled=i)}qualityProfileWatcher(i){this.view&&this.view.qualityProfile!==i&&(this.view.qualityProfile=i)}scaleWatcher(i,t){this.view&&this.view.stationary&&!this.view.interacting&&null!=i&&i!==t&&(this.view.scale=i)}spatialReferenceWatcher(i){this.view&&i&&!this.view.spatialReference.equals(i)&&(this.view.spatialReference=i)}themeWatcher(i){this.view&&(this.view.theme=i)}timeExtentWatcher(i){this.view&&(this.view.timeExtent=i)}viewingModeWatcher(i){this.view&&(this.view.viewingMode=i)}viewpointWatcher(i){this.view&&d(this.view.viewpoint,i)&&(this.view.viewpoint=i)}zoomWatcher(i,t){this.view&&this.view.stationary&&!this.view.interacting&&i!==t&&l(i)&&(this.view.zoom=i)}async closePopup(){this.view?.closePopup()}async destroy(){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 componentWillLoad(){this.view||await this._loadMap()}componentDidRender(){this.view&&!this.view.container&&(this.view.container=this.el)}componentDidLoad(){this._proxyEvents()}disconnectedCallback(){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 e();p(this,[i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary,this.interacting=this.view.interacting,this.navigating=this.view.navigating,this.arcgisViewChange.emit()}),{initial:!0}),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:!0}),i((()=>this.view.analyses),(()=>{this.analyses=this.view.analyses}),{initial:!0}),i((()=>this.view.map?.basemap),(()=>{this.basemap=this.view.map?.basemap}),{initial:!0}),i((()=>this.view.basemapView),(()=>{this.basemapView=this.view.basemapView}),{initial:!0}),i((()=>this.view.environment),(()=>{this.environment=this.view.environment}),{initial:!0}),i((()=>this.view.fatalError),(()=>{this.fatalError=this.view.fatalError}),{initial:!0}),i((()=>this.view.input.gamepad),(()=>{this.gamepad=this.view.input.gamepad}),{initial:!0}),i((()=>this.view.graphics),(()=>{this.graphics=this.view.graphics}),{initial:!0}),i((()=>this.view.map?.ground),(()=>{this.ground=this.view.map?.ground}),{initial:!0}),i((()=>this.view.groundView),(()=>{this.groundView=this.view.groundView}),{initial:!0}),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:!0}),i((()=>this.view.navigation),(()=>{this.navigation=this.view.navigation}),{initial:!0}),i((()=>this.view.map),(()=>{this.map=this.view.map}),{initial:!0}),i((()=>this.view.performanceInfo),(()=>{this.performanceInfo=this.view.performanceInfo})),i((()=>this.view.popup),(()=>{this.popup=this.view.popup}),{initial:!0}),i((()=>this.view.qualityProfile),(()=>{this.qualityProfile=this.view.qualityProfile}),{initial:!0}),i((()=>this.view.resolution),(()=>{this.resolution=this.view.resolution}),{initial:!0}),i((()=>this.view.suspended),(()=>{this.suspended=this.view.suspended}),{initial:!0}),i((()=>this.view.updating),(()=>{this.updating=this.view.updating}),{initial:!0}),i((()=>this.view.ready),(()=>{this.ready=this.view.ready,this.arcgisViewReadyChange.emit()}),{initial:!0})])}async _createMap(){const i={};return this.itemId&&(i.portalItem=await this._createPortalItem()),this.basemap?i.basemap=this.basemap:o(this.itemId)&&(i.basemap="topo-vector"),this.ground?i.ground=this.ground:o(this.itemId)&&(i.ground="world-elevation"),await a(i)}async _createPortalItem(){const i={};return this.itemId&&(i.id=this.itemId),i}_createViewParams(){const i={};return this.center&&(i.center="string"==typeof this.center?this.center.split(",").map((i=>Number(i))):this.center),this.constraints&&(i.constraints=this.constraints),this.extent&&(i.extent=this.extent),this.floors&&(i.floors=this.floors),this.graphics&&(i.graphics=this.graphics),this.highlightOptions&&(i.highlightOptions=this.highlightOptions),this.map&&(i.map=this.map),this.navigation&&(i.navigation=this.navigation),this.padding&&(i.padding=this.padding),this.popup&&(i.popup=this.popup),void 0!==this.popupEnabled&&(i.popupEnabled=this.popupEnabled),void 0!==this.scale&&(i.scale=this.scale),this.spatialReference&&(i.spatialReference=this.spatialReference),this.theme&&(i.theme=this.theme),this.timeExtent&&(i.timeExtent=this.timeExtent),this.viewpoint&&(i.viewpoint=this.viewpoint),void 0!==this.zoom&&(i.zoom=this.zoom),i}async _loadMap(){const i=await this._createMap(),t=this._createViewParams(),s=await r({map:i,...t});this.view=s,s.when((async()=>{this.toMap=s.toMap.bind(s),this.toScreen=s.toScreen.bind(s),await this._addWatchers()}))}_proxyEvents(){p(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 h(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"],popup:["popupWatcher"],popupEnabled:["popupEnabledWatcher"],qualityProfile:["qualityProfileWatcher"],scale:["scaleWatcher"],spatialReference:["spatialReferenceWatcher"],theme:["themeWatcher"],timeExtent:["timeExtentWatcher"],viewingMode:["viewingModeWatcher"],viewpoint:["viewpointWatcher"],zoom:["zoomWatcher"]}}};v.style=".arcgis-scene{padding:0;margin:0;height:100%;width:100%}";export{v as arcgis_scene}
|
|
6
|
+
import{r as i,c as t,h as s,g as h}from"./p-c8d111c4.js";import{i as e,P as a,Q as r}from"./p-fab206f9.js";import{i as o,e as n,f as c,b as d,g as l,a as p}from"./p-1628550d.js";const v=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=void 0,this.alphaCompositingEnabled=!1,this.analyses=void 0,this.basemapView=void 0,this.basemap=void 0,this.camera=void 0,this.center=void 0,this.clippingArea=void 0,this.constraints=void 0,this.destroyDisabled=!1,this.environment=void 0,this.extent=void 0,this.fatalError=void 0,this.floors=void 0,this.gamepad=void 0,this.graphics=void 0,this.ground=void 0,this.groundView=void 0,this.highlightOptions=void 0,this.interacting=!1,this.itemId=void 0,this.layerViews=void 0,this.magnifier=void 0,this.map=void 0,this.navigating=!1,this.navigation=void 0,this.padding=void 0,this.performanceInfo=void 0,this.popup=void 0,this.popupEnabled=!0,this.qualityProfile=void 0,this.ready=!1,this.resolution=void 0,this.scale=void 0,this.spatialReference=void 0,this.stationary=void 0,this.suspended=!1,this.theme=void 0,this.timeExtent=void 0,this.toMap=void 0,this.toScreen=void 0,this.updating=!1,this.viewingMode="global",this.viewpoint=void 0,this.zoom=void 0,this.view=void 0}alphaCompositingEnabledWatcher(i){void 0!==i&&this.view&&(this.view.alphaCompositingEnabled=i)}basemapWatcher(i){("string"==typeof i&&this.view?.map&&!o(i)||this.view?.map)&&(this.view.map.basemap=i)}cameraWatcher(i){this.view&&i&&n(this.view.camera,i)&&(this.view.camera=i)}centerWatcher(i,t){if(i!==t&&this.view)if("string"==typeof i){const t=i.split(",").map((i=>Number(i)));t[0]!==this.view.center.longitude&&t[1]!==this.view.center.latitude&&(this.view.center=t)}else Array.isArray(i)?i[0]!==this.view.center.longitude&&i[1]!==this.view.center.latitude&&(this.view.center=i):this.view.center.equals(i)||(this.view.center=i)}clippingAreaWatcher(i){this.view&&i&&!this.view.clippingArea?.equals(i)&&(this.view.clippingArea=i)}constraintsWatcher(i){this.view&&(this.view.constraints=i)}environmentWatcher(i){this.view&&i&&c(this.view.environment,i)&&(this.view.environment=i)}extentWatcher(i){this.view&&i&&!this.view.extent.equals(i)&&(this.view.extent=i)}floorsWatcher(i){this.view&&(this.view.floors=i)}graphicsWatcher(i){this.view&&(this.view.graphics=i)}groundWatcher(i){this.view?.map&&!o(i)&&(this.view.map.ground=i)}highlightOptionsWatcher(i){this.view&&(this.view.highlightOptions=i)}itemIdWatcher(i,t){i!==t&&(this.view?.map?this._updateMap():this._loadMap())}mapWatcher(i){this.view&&(this.view.map=i)}navigationWatcher(i){this.view&&(this.view.navigation=i)}paddingWatcher(i){this.view&&(this.view.padding=i)}popupWatcher(i){this.view&&(this.view.popup=i)}popupEnabledWatcher(i,t){i!==t&&this.view&&(this.view.popupEnabled=i)}qualityProfileWatcher(i){this.view&&this.view.qualityProfile!==i&&(this.view.qualityProfile=i)}scaleWatcher(i,t){this.view&&this.view.stationary&&!this.view.interacting&&null!=i&&i!==t&&(this.view.scale=i)}spatialReferenceWatcher(i){this.view&&i&&!this.view.spatialReference.equals(i)&&(this.view.spatialReference=i)}themeWatcher(i){this.view&&(this.view.theme=i)}timeExtentWatcher(i){this.view&&(this.view.timeExtent=i)}viewingModeWatcher(i){this.view&&(this.view.viewingMode=i)}viewpointWatcher(i){this.view&&d(this.view.viewpoint,i)&&(this.view.viewpoint=i)}zoomWatcher(i,t){this.view&&this.view.stationary&&!this.view.interacting&&i!==t&&l(i)&&(this.view.zoom=i)}async closePopup(){this.view?.closePopup()}async destroy(){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 componentWillLoad(){this.view||await this._loadMap()}componentDidRender(){this.view&&!this.view.container&&(this.view.container=this.el)}componentDidLoad(){this._proxyEvents()}disconnectedCallback(){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 e();p(this,[i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary,this.interacting=this.view.interacting,this.navigating=this.view.navigating,this.arcgisViewChange.emit()}),{initial:!0}),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:!0}),i((()=>this.view.analyses),(()=>{this.analyses=this.view.analyses}),{initial:!0}),i((()=>this.view.map?.basemap),(()=>{this.basemap=this.view.map?.basemap}),{initial:!0}),i((()=>this.view.basemapView),(()=>{this.basemapView=this.view.basemapView}),{initial:!0}),i((()=>this.view.environment),(()=>{this.environment=this.view.environment}),{initial:!0}),i((()=>this.view.fatalError),(()=>{this.fatalError=this.view.fatalError}),{initial:!0}),i((()=>this.view.input.gamepad),(()=>{this.gamepad=this.view.input.gamepad}),{initial:!0}),i((()=>this.view.graphics),(()=>{this.graphics=this.view.graphics}),{initial:!0}),i((()=>this.view.map?.ground),(()=>{this.ground=this.view.map?.ground}),{initial:!0}),i((()=>this.view.groundView),(()=>{this.groundView=this.view.groundView}),{initial:!0}),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:!0}),i((()=>this.view.navigation),(()=>{this.navigation=this.view.navigation}),{initial:!0}),i((()=>this.view.map),(()=>{this.map=this.view.map}),{initial:!0}),i((()=>this.view.performanceInfo),(()=>{this.performanceInfo=this.view.performanceInfo})),i((()=>this.view.popup),(()=>{this.popup=this.view.popup}),{initial:!0}),i((()=>this.view.qualityProfile),(()=>{this.qualityProfile=this.view.qualityProfile}),{initial:!0}),i((()=>this.view.resolution),(()=>{this.resolution=this.view.resolution}),{initial:!0}),i((()=>this.view.suspended),(()=>{this.suspended=this.view.suspended}),{initial:!0}),i((()=>this.view.updating),(()=>{this.updating=this.view.updating}),{initial:!0}),i((()=>this.view.ready),(()=>{this.ready=this.view.ready,this.arcgisViewReadyChange.emit()}),{initial:!0})])}async _createMap(){const i={};return this.itemId&&(i.portalItem=await this._createPortalItem()),this.basemap?i.basemap=this.basemap:o(this.itemId)&&(i.basemap="topo-vector"),this.ground?i.ground=this.ground:o(this.itemId)&&(i.ground="world-elevation"),await a(i)}async _createPortalItem(){const i={};return this.itemId&&(i.id=this.itemId),i}_createViewParams(){const i={};return this.center&&(i.center="string"==typeof this.center?this.center.split(",").map((i=>Number(i))):this.center),this.constraints&&(i.constraints=this.constraints),this.extent&&(i.extent=this.extent),this.floors&&(i.floors=this.floors),this.graphics&&(i.graphics=this.graphics),this.highlightOptions&&(i.highlightOptions=this.highlightOptions),this.map&&(i.map=this.map),this.navigation&&(i.navigation=this.navigation),this.padding&&(i.padding=this.padding),this.popup&&(i.popup=this.popup),void 0!==this.popupEnabled&&(i.popupEnabled=this.popupEnabled),void 0!==this.scale&&(i.scale=this.scale),this.spatialReference&&(i.spatialReference=this.spatialReference),this.theme&&(i.theme=this.theme),this.timeExtent&&(i.timeExtent=this.timeExtent),this.viewpoint&&(i.viewpoint=this.viewpoint),void 0!==this.zoom&&(i.zoom=this.zoom),i}async _loadMap(){const i=await this._createMap(),t=this._createViewParams(),s=await r({map:i,...t});this.view=s,s.when((async()=>{this.toMap=s.toMap.bind(s),this.toScreen=s.toScreen.bind(s),await this._addWatchers()}))}_proxyEvents(){p(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 h(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"],popup:["popupWatcher"],popupEnabled:["popupEnabledWatcher"],qualityProfile:["qualityProfileWatcher"],scale:["scaleWatcher"],spatialReference:["spatialReferenceWatcher"],theme:["themeWatcher"],timeExtent:["timeExtentWatcher"],viewingMode:["viewingModeWatcher"],viewpoint:["viewpointWatcher"],zoom:["zoomWatcher"]}}};v.style=".arcgis-scene{padding:0;margin:0;height:100%;width:100%}";export{v as arcgis_scene}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as s,h as i,g as e}from"./p-
|
|
6
|
+
import{r as t,c as s,h as i,g as e}from"./p-c8d111c4.js";import{N as r}from"./p-fab206f9.js";import{r as h,c as a}from"./p-1628550d.js";import{o as c}from"./p-2c40acef.js";const o=class{constructor(i){t(this,i),this.arcgisScaleBarReady=s(this,"arcgisScaleBarReady",7),this._watchHandles=[],this.referenceElement=void 0,this.barStyle="line",this.unit=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){h(this,t)}styleWatcher(t){this.widget&&(this.widget.style=t)}unitWatcher(t){this.widget&&(this.widget.unit=t)}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),s=await r(t);this.widget=s,this._addContainer(),this.arcgisScaleBarReady.emit(),a(this)}disconnectedCallback(){c(this)}render(){return i("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}_createParams(){const t={};return this.unit&&(t.unit=this.unit),this.barStyle&&(t.style=this.barStyle),this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],barStyle:["styleWatcher"],unit:["unitWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};o.style="arcgis-scale-bar{}";export{o as arcgis_scale_bar}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as s,g as e}from"./p-
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-c8d111c4.js";import{a5 as h}from"./p-fab206f9.js";import{r as o,c as r}from"./p-1628550d.js";import{o as a}from"./p-2c40acef.js";const c=class{constructor(s){t(this,s),this.arcgisZoomReady=i(this,"arcgisZoomReady",7),this._watchHandles=[],this.referenceElement=void 0,this.icon=void 0,this.layout="vertical",this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){o(this,t)}iconWatcher(t){this.widget&&this.widget.icon!==t&&(this.widget.icon=t,this.widget.iconClass=t)}layoutWatcher(t){this.widget&&this.widget.layout!==t&&(this.widget.layout=t)}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async zoomIn(){this.widget?.viewModel.zoomIn()}async zoomOut(){this.widget?.viewModel.zoomOut()}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,this._addContainer(),this.arcgisZoomReady.emit(),r(this)}disconnectedCallback(){a(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}_createParams(){const t={};return this.icon&&(t.icon=this.icon,t.iconClass=this.icon),this.layout&&(t.layout=this.layout),this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],icon:["iconWatcher"],layout:["layoutWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};c.style="arcgis-zoom{}";export{c as arcgis_zoom}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.8
|
|
5
5
|
*/
|
|
6
|
-
import{r as i,c as t,h as s,g as h}from"./p-
|
|
6
|
+
import{r as i,c as t,h as s,g as h}from"./p-c8d111c4.js";import{W as e,i as a}from"./p-fab206f9.js";import{c as r,a as n}from"./p-1628550d.js";import{o as d}from"./p-2c40acef.js";const c=class{constructor(s){i(this,s),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=void 0,this.draggableSegmentsEnabled=void 0,this.effectiveMax=void 0,this.effectiveMin=void 0,this.effectiveSegmentElements=void 0,this.labelElements=void 0,this.labelInputsEnabled=void 0,this.labels=void 0,this.layout="horizontal",this.min=void 0,this.max=void 0,this.maxLabelElement=void 0,this.minLabelElement=void 0,this.precision=void 0,this.rangeLabelInputsEnabled=void 0,this.segmentElements=void 0,this.snapOnClickEnabled=void 0,this.syncedSegmentsEnabled=void 0,this.thumbElements=void 0,this.thumbsConstrained=void 0,this.tickConfigs=void 0,this.tickElements=void 0,this.trackElement=void 0,this.steps=void 0,this.values=void 0,this.position="bottom-left",this.expandable=!1,this.widget=void 0}draggableSegmentsEnabledWatcher(i){void 0!==i&&this.widget&&(this.widget.draggableSegmentsEnabled=i)}effectiveMaxWatcher(i){void 0!==i&&this.widget&&(this.widget.effectiveMax=i)}effectiveMinWatcher(i){void 0!==i&&this.widget&&(this.widget.effectiveMin=i)}layoutWatcher(i){this.widget&&(this.widget.layout=i)}minWatcher(i){void 0!==i&&this.widget&&(this.widget.min=i)}maxWatcher(i){void 0!==i&&this.widget&&(this.widget.max=i)}precisionWatcher(i){void 0!==i&&this.widget&&(this.widget.precision=i)}rangeLabelInputsEnabledWatcher(i){void 0!==i&&this.widget&&(this.widget.rangeLabelInputsEnabled=i)}snapOnClickEnabledWatcher(i){void 0!==i&&this.widget&&(this.widget.snapOnClickEnabled=i)}syncedSegmentsEnabledWatcher(i){void 0!==i&&this.widget&&(this.widget.syncedSegmentsEnabled=i)}thumbsConstrainedWatcher(i){void 0!==i&&this.widget&&(this.widget.thumbsConstrained=i)}tickConfigsWatcher(i){this.widget&&(this.widget.tickConfigs=i)}stepsWatcher(i){this.widget&&(this.widget.steps=i)}valuesWatcher(i){"string"==typeof i&&(this.values=i.split(",").map((i=>Number(i)))),this.widget&&(this.widget.values=this.values)}async componentDidLoad(){const i=this._createParams(),t=await e(i);this.widget=t,await this._addWatchers(),this.widgetReady.emit({widget:this.widget}),r(this)}disconnectedCallback(){d(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:i=>this.expandElem=i},s("div",{ref:i=>this.childElem=i})):s("div",{ref:i=>this.childElem=i})}async _addWatchers(){const{watch:i}=await a();n(this,i((()=>this.widget.effectiveSegmentElements),(i=>this.effectiveSegmentElements=i),{initial:!0})),n(this,i((()=>this.widget.labelElements),(i=>this.labelElements=i),{initial:!0})),n(this,i((()=>this.widget.maxLabelElement),(i=>this.maxLabelElement=i),{initial:!0})),n(this,i((()=>this.widget.minLabelElement),(i=>this.minLabelElement=i),{initial:!0})),n(this,i((()=>this.widget.segmentElements),(i=>this.segmentElements=i),{initial:!0})),n(this,i((()=>this.widget.thumbElements),(i=>this.thumbElements=i),{initial:!0})),n(this,i((()=>this.widget.tickElements),(i=>this.tickElements=i),{initial:!0})),n(this,i((()=>this.widget.trackElement),(i=>this.trackElement=i),{initial:!0}))}_createParams(){const i={container:this.childElem,layout:this.layout};return void 0!==this.min&&(i.min=this.min),void 0!==this.max&&(i.max=this.max),this.steps&&("string"==typeof this.steps&&(this.steps=this.steps.split(",").map((i=>Number(i)))),i.steps=this.steps),this.values&&("string"==typeof this.values&&(this.values=this.values.split(",").map((i=>Number(i)))),i.values=this.values),i}get el(){return h(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="arcgis-slider{min-width:200px;min-height:25px}";export{c as arcgis_slider}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
+
* v4.29.8
|
|
5
|
+
*/
|
|
6
|
+
import{r as e,a as t,h as i,H as s,g as n}from"./p-c8d111c4.js";import{i as a,a3 as r}from"./p-fab206f9.js";function o(e,t){let i=e;for(;i;){if(i===t)return!0;if(!i.parentNode)return!1;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1}var c=new Set(["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"]),l=new Map;async function h(e,t,i=""){let s=`${t}/${i}${e}.json`;if(l.has(s))return l.get(s);try{let n=await fetch(s);if(n.ok){let e=await n.json();return l.set(s,e),e}if("en"===e)return void l.set(s,void 0);let a=await h("en",t,i);return l.set(s,a),a}catch{return void l.set(s,void 0)}}var d=new WeakMap,v=new WeakMap,u=new WeakMap;async function w(e,t){let{lang:i,t9nLocale:s}=function(e){let t=function(e,t,i){return function(e,t){let i=e;for(;i;){let e=i.closest(t);if(e)return e;let s=i.getRootNode();if(s===document)return null;i=s.host}return null}(e,`[${t}]`)?.getAttribute(t)??i}(e,"lang",navigator.language||"en");if(c.has(t))return{lang:t,t9nLocale:t};let i=t.slice(0,2);return{lang:t,t9nLocale:c.has(i)?i:"en"}}(e._hostElement);if(i===e._lang&&s===e._t9nLocale||(i!==e._lang&&(e._lang=i),s===e._t9nLocale))return;let n=u.get(e);if(!n){let t=v.get(e)??"",i=e._hostElement.tagName.toLowerCase().replace("arcgis-",""),a=`${t}/${i}/t9n`,r=`${i}.t9n.`;n=await h(s,a,r)}s!==e._t9nLocale&&(e._t9nLocale=s,e._t9nStrings=n,await(t?.call(e)))}const f=class{constructor(t){e(this,t),this._watchHandles=[],this.label=void 0,this.position="top-right",this.view=void 0,this._lang="",this._t9nLocale="",this._t9nStrings=void 0,this.state=void 0}positionWatcher(e){void 0!==e&&this.viewModel&&this.view.ui.move(this._hostElement,e)}async componentDidLoad(){const{watch:e}=await a();this._watchHandles.push(e((()=>this.viewModel.state),(e=>{this.state=e})))}async componentWillLoad(){await async function(e,t,i){v.set(e,t),d.set(e,function(e,t,i=(()=>{})){if(!t||t.length<=0)return;let s=new MutationObserver((t=>{for(let s of t)o(e,s.target)&&i()}));return s.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0}),s}(e._hostElement,["lang"],(()=>{w(e,i).catch(console.error)}))),await w(e,i)}(this,t("./assets")),await this._checkForView(),this.viewModel=await r({view:this.view}),this.label=this.label?this.label:this._t9nStrings.label}disconnectedCallback(){var e;e=this,d.get(e)?.disconnect(),d.delete(e),v.delete(e),this._watchHandles.forEach((e=>{e.remove()})),this._watchHandles=[]}render(){const{_t9nStrings:e,label:t,viewModel:n,viewModel:{state:a,loadError:r}}=this,o=Array.from(this.viewModel.serviceNameLookup,(([e,t])=>({url:e,name:t})));return i(s,null,i("calcite-flow",{ref:e=>{this.flowElement=e},class:"flow-main"},i("calcite-flow-item",{heading:t},i("calcite-panel",{class:"panel-services",loading:"loading"===a},o.map((s=>i("arcgis-version-management-service-item",{flowElement:this.flowElement,heading:t,serviceUrl:s.url,strings:e,viewModel:n,onVersionItemActionClickedEventWithServiceUrl:e=>{this._handleVersionItemActionClick(e,this.flowElement)},onVersionListActionClickedEvent:e=>{this._handleVersionListActionClick(e,this.flowElement)}}))),"disabled"===a?i("calcite-notice",{class:"notice",closable:!1,kind:"warning",open:!0,scale:"s",slot:"footer"},i("div",{slot:"message"},this._getLoadError(r))):void 0))))}async _checkForView(){const e=this._hostElement.closest("arcgis-map");e?.view&&(await e.view.map.load(),this.view=e.view,this.view.ui.add(this._hostElement,this.position))}_createVersionPropertiesFlow(e,t){const{flowElement:i,viewModel:s}=this,n=document.createElement("arcgis-version-management-version-properties");return n.flowElement=i,n.serviceUrl=e,n.strings=this._t9nStrings,n.versionInfo=t,n.viewModel=s,n.addEventListener("versionPropertiesSaveClickedEvent",(async e=>{const{serviceUrl:t,versionInfo:n}=e.detail,a=n.versionIdentifier.name,r=a.split(".").length>1?a.split(".")[1]:a,o=a.split(".").length>1?a.split(".")[0]:s.userLookup.get(t);if(""===n.versionIdentifier.guid?await s.createVersion({access:n.access,description:n.description,featureServerUrl:t,ownerName:o,versionName:r}):await s.alterVersion({access:n.access,description:n.description,featureServerUrl:t,ownerName:o,versionIdentifier:{name:"",guid:n.versionIdentifier.guid},versionName:r}),"ready"===s.state){const e=i.getElementsByTagName("arcgis-version-management-version-list")[0];e.versionInfos=[];const n=await s.getVersionInfos(t,!0);e.versionInfos=n,await i.back()}})),n}_getLoadError(e){const{_t9nStrings:t}=this;switch(e){case"no-feature-services":return t.loadErrors.noFeatureServices;case"no-layers-property":return t.loadErrors.noLayersProperty;default:return e}}async _handleVersionItemActionClick(e,t){const{actionType:i,serviceUrl:s,versionInfo:n}=e.detail;switch(i){case"changeVersion":await this._switchToVersion(s,n.versionIdentifier.name,n.versionIdentifier.guid);break;case"editVersion":t.append(this._createVersionPropertiesFlow(s,n))}}async _handleVersionListActionClick(e,t){const{actionType:i,serviceUrl:s}=e.detail;switch(i){case"newVersion":t.append(this._createVersionPropertiesFlow(s,void 0));break;case"refreshVersions":{const e=this.flowElement.getElementsByTagName("arcgis-version-management-version-list")[0];e.versionInfos=[];const t=await this.viewModel.getVersionInfos(s,!0);e.versionInfos=t;break}}}async _switchToVersion(e,t,i){await this.viewModel.changeVersion(e,t,i)}static get assetsDirs(){return["assets"]}get _hostElement(){return n(this)}static get watchers(){return{position:["positionWatcher"]}}};f.style=".div-content{background-color:var(--calcite-ui-foreground-1);padding:0.75rem}.flow-main{width:330px}.notice{width:-webkit-fill-available}.panel-services{max-height:400px}.panel-versions{max-height:400px}";export{f as arcgis_version_management}
|