@arcgis/map-components 4.30.0-next.0 → 4.30.0-next.2
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/README.md +2 -0
- 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-d9a19770.js → p-0267ce0c.js} +1 -1
- package/dist/arcgis-map-components/p-06a2ba7b.entry.js +6 -0
- package/dist/arcgis-map-components/{p-5e069e98.entry.js → p-0d2777ed.entry.js} +2 -2
- package/dist/arcgis-map-components/p-0dce76b1.entry.js +6 -0
- package/dist/arcgis-map-components/p-17c04d94.entry.js +6 -0
- package/dist/arcgis-map-components/p-1ad1ba81.entry.js +6 -0
- package/dist/arcgis-map-components/p-1dd7ee53.entry.js +6 -0
- package/dist/arcgis-map-components/{p-4a944613.entry.js → p-1eed2237.entry.js} +2 -2
- package/dist/arcgis-map-components/p-2129411c.entry.js +6 -0
- package/dist/arcgis-map-components/{p-8c98b8d3.entry.js → p-233ff7c9.entry.js} +2 -2
- package/dist/arcgis-map-components/p-27c040f3.entry.js +6 -0
- package/dist/arcgis-map-components/p-2d4ac961.entry.js +6 -0
- package/dist/arcgis-map-components/{p-e92ea069.entry.js → p-351d284e.entry.js} +2 -2
- package/dist/arcgis-map-components/p-3a8731e9.entry.js +6 -0
- package/dist/arcgis-map-components/{p-fbffd7df.entry.js → p-4a6447be.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-b17fb0f6.entry.js → p-51659616.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-e6c29e63.entry.js → p-51d883e7.entry.js} +2 -2
- package/dist/arcgis-map-components/p-5ccaed65.entry.js +6 -0
- package/dist/arcgis-map-components/{p-90759626.entry.js → p-63916df3.entry.js} +2 -2
- package/dist/arcgis-map-components/p-708a209b.entry.js +6 -0
- package/dist/arcgis-map-components/{p-b05b6605.entry.js → p-72531b22.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-dfc37886.entry.js → p-77896f73.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-8771aae5.entry.js → p-7a448687.entry.js} +2 -2
- package/dist/arcgis-map-components/p-7b70c205.entry.js +6 -0
- package/dist/arcgis-map-components/{p-ff0e6255.entry.js → p-835253cf.entry.js} +2 -2
- package/dist/arcgis-map-components/p-909ece35.entry.js +6 -0
- package/dist/arcgis-map-components/p-979215ed.entry.js +6 -0
- package/dist/arcgis-map-components/p-9b1b911a.entry.js +6 -0
- package/dist/arcgis-map-components/{p-d8d56dce.entry.js → p-9e192593.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-0ae93962.entry.js → p-9ff6201d.entry.js} +2 -2
- package/dist/arcgis-map-components/p-a0d33f63.entry.js +6 -0
- package/dist/arcgis-map-components/{p-8fd8e30f.entry.js → p-a8ec59c6.entry.js} +2 -2
- package/dist/arcgis-map-components/p-a99a4407.entry.js +6 -0
- package/dist/arcgis-map-components/{p-d2249660.js → p-ab228eed.js} +1 -1
- package/dist/arcgis-map-components/{p-8732eaf2.entry.js → p-b376d392.entry.js} +2 -2
- package/dist/arcgis-map-components/p-b5f05f22.entry.js +6 -0
- package/dist/arcgis-map-components/{p-12996569.entry.js → p-b6f76f42.entry.js} +2 -2
- package/dist/arcgis-map-components/p-bbe2afe8.entry.js +6 -0
- package/dist/arcgis-map-components/p-bbe4ba5e.entry.js +6 -0
- package/dist/arcgis-map-components/{p-d21cf3c7.entry.js → p-bc078276.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-4d1f49e0.entry.js → p-bf45b65a.entry.js} +2 -2
- package/dist/arcgis-map-components/p-c69be395.entry.js +6 -0
- package/dist/arcgis-map-components/{p-889625b0.entry.js → p-c89a56d0.entry.js} +2 -2
- package/dist/arcgis-map-components/p-ccc8e0f6.entry.js +6 -0
- package/dist/arcgis-map-components/{p-b126db10.entry.js → p-ccf10372.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-0700d3a0.js → p-cfb0b3db.js} +1 -1
- package/dist/arcgis-map-components/p-d1e5708d.entry.js +6 -0
- package/dist/arcgis-map-components/p-d56a8bf6.entry.js +6 -0
- package/dist/arcgis-map-components/p-db38814e.entry.js +6 -0
- package/dist/arcgis-map-components/{p-f7e9fda9.entry.js → p-db5d7d8f.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-76dd8345.entry.js → p-dcf10185.entry.js} +2 -2
- package/dist/arcgis-map-components/p-df2c2388.entry.js +6 -0
- package/dist/arcgis-map-components/{p-fe3ee617.entry.js → p-e072e7dc.entry.js} +2 -2
- package/dist/arcgis-map-components/p-e5ff4fbc.entry.js +6 -0
- package/dist/arcgis-map-components/{p-f233b76c.js → p-e6ce333d.js} +1 -1
- package/dist/arcgis-map-components/p-e9f976ba.entry.js +6 -0
- package/dist/arcgis-map-components/p-eb192e4a.entry.js +6 -0
- package/dist/arcgis-map-components/p-f0d64573.entry.js +6 -0
- package/dist/arcgis-map-components/p-f7585411.entry.js +6 -0
- package/dist/arcgis-map-components/p-fdbd2da0.entry.js +6 -0
- package/dist/arcgis-map-components/p-fe1d05f2.entry.js +6 -0
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +5 -6
- package/dist/cjs/arcgis-attachments.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-basemap-gallery_2.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +9 -7
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-compass.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-daylight.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-directional-pad.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-directions.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-editor.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-expand.cjs.entry.js +13 -10
- 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 -7
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +12 -9
- package/dist/cjs/arcgis-legend.cjs.entry.js +5 -6
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-locate.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-map-components.cjs.js +3 -3
- 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 -7
- 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 -6
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-sketch.cjs.entry.js +5 -6
- package/dist/cjs/arcgis-slice.cjs.entry.js +5 -6
- 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 +10 -7
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-track.cjs.entry.js +5 -7
- 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 +3 -3
- package/dist/cjs/arcgis-version-management-version-item_2.cjs.entry.js +3 -3
- package/dist/cjs/arcgis-version-management.cjs.entry.js +3 -3
- package/dist/cjs/arcgis-weather.cjs.entry.js +5 -7
- package/dist/cjs/arcgis-zoom.cjs.entry.js +5 -7
- package/dist/cjs/{component-utils-0d50aa15.js → component-utils-8ddd5329.js} +1 -1
- package/dist/cjs/{disconnected-2c764d2f.js → disconnected-ba8ad352.js} +1 -1
- package/dist/cjs/{index-e56d0dbb.js → index-ac67e16f.js} +1 -1
- package/dist/cjs/{index-1f08334f.js → index-b53b6fca.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/components/arcgis-area-measurement-2d.js +1 -3
- package/dist/components/arcgis-area-measurement-3d.js +1 -2
- package/dist/components/arcgis-assets.js +12 -0
- package/dist/components/arcgis-attachments.js +1 -1
- package/dist/components/arcgis-basemap-gallery.js +1 -3
- package/dist/components/arcgis-basemap-layer-list.js +6 -4
- package/dist/components/arcgis-basemap-toggle.js +1 -1
- package/dist/components/arcgis-bookmarks.js +1 -3
- package/dist/components/arcgis-building-explorer.js +1 -1
- package/dist/components/arcgis-compass.js +1 -3
- package/dist/components/arcgis-coordinate-conversion.js +1 -1
- package/dist/components/arcgis-daylight.js +1 -3
- package/dist/components/arcgis-directional-pad.js +1 -1
- package/dist/components/arcgis-directions.js +1 -3
- package/dist/components/arcgis-directline-measurement-3d.js +1 -3
- package/dist/components/arcgis-distance-measurement-2d.js +1 -3
- package/dist/components/arcgis-editor.js +1 -1
- package/dist/components/arcgis-elevation-profile.js +1 -3
- 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 +2 -2
- 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 -3
- package/dist/components/arcgis-layer-list.js +9 -6
- package/dist/components/arcgis-legend.js +1 -2
- package/dist/components/arcgis-line-of-sight.js +1 -3
- package/dist/components/arcgis-locate.js +1 -3
- 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 -3
- 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 -2
- package/dist/components/arcgis-shadow-cast.js +1 -3
- package/dist/components/arcgis-sketch.js +1 -2
- package/dist/components/arcgis-slice.js +1 -2
- package/dist/components/arcgis-slider.js +1 -1
- package/dist/components/arcgis-swipe.js +1 -1
- package/dist/components/arcgis-table-list.js +7 -4
- package/dist/components/arcgis-time-slider.js +1 -1
- package/dist/components/arcgis-track.js +1 -3
- 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 +7 -6
- package/dist/components/arcgis-weather.js +1 -3
- package/dist/components/arcgis-zoom.js +1 -3
- package/dist/components/component-utils.js +1 -1
- package/dist/components/disconnected.js +1 -1
- package/dist/components/expand.js +12 -9
- package/dist/components/index.js +3 -2
- package/dist/components/index2.js +1 -1
- package/dist/components/version-management-service-item.js +4 -4
- package/dist/components/version-management-version-item.js +5 -5
- package/dist/components/version-management-version-list.js +7 -7
- package/dist/components/version-management-version-properties.js +10 -10
- package/dist/esm/arcgis-area-measurement-2d.entry.js +5 -7
- package/dist/esm/arcgis-area-measurement-3d.entry.js +5 -6
- package/dist/esm/arcgis-attachments.entry.js +5 -5
- package/dist/esm/arcgis-basemap-gallery_2.entry.js +5 -7
- package/dist/esm/arcgis-basemap-layer-list.entry.js +9 -7
- package/dist/esm/arcgis-basemap-toggle.entry.js +5 -5
- package/dist/esm/arcgis-bookmarks.entry.js +5 -7
- package/dist/esm/arcgis-building-explorer.entry.js +5 -5
- package/dist/esm/arcgis-compass.entry.js +5 -7
- package/dist/esm/arcgis-coordinate-conversion.entry.js +5 -5
- package/dist/esm/arcgis-daylight.entry.js +5 -7
- package/dist/esm/arcgis-directional-pad.entry.js +5 -5
- package/dist/esm/arcgis-directions.entry.js +5 -7
- package/dist/esm/arcgis-directline-measurement-3d.entry.js +5 -7
- package/dist/esm/arcgis-distance-measurement-2d.entry.js +5 -7
- package/dist/esm/arcgis-editor.entry.js +5 -5
- package/dist/esm/arcgis-elevation-profile.entry.js +5 -7
- package/dist/esm/arcgis-expand.entry.js +13 -10
- 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 -7
- package/dist/esm/arcgis-layer-list.entry.js +12 -9
- package/dist/esm/arcgis-legend.entry.js +5 -6
- package/dist/esm/arcgis-line-of-sight.entry.js +5 -7
- package/dist/esm/arcgis-locate.entry.js +5 -7
- package/dist/esm/arcgis-map-components.js +4 -4
- 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 -7
- 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 -6
- package/dist/esm/arcgis-shadow-cast.entry.js +5 -7
- package/dist/esm/arcgis-sketch.entry.js +5 -6
- package/dist/esm/arcgis-slice.entry.js +5 -6
- 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 +10 -7
- package/dist/esm/arcgis-time-slider.entry.js +5 -5
- package/dist/esm/arcgis-track.entry.js +5 -7
- 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 +3 -3
- package/dist/esm/arcgis-version-management-version-item_2.entry.js +3 -3
- package/dist/esm/arcgis-version-management.entry.js +3 -3
- package/dist/esm/arcgis-weather.entry.js +5 -7
- package/dist/esm/arcgis-zoom.entry.js +5 -7
- package/dist/esm/{component-utils-30a85514.js → component-utils-06832b0f.js} +1 -1
- package/dist/esm/{disconnected-af09b2b8.js → disconnected-ae43b5de.js} +1 -1
- package/dist/esm/{index-70e6e7ee.js → index-955d468e.js} +1 -1
- package/dist/esm/{index-89efa25e.js → index-c8478785.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +4 -4
- 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/dist/types/components/expand/expand.d.ts +1 -0
- package/package.json +9 -9
- package/dist/arcgis-map-components/p-1c77c688.entry.js +0 -6
- package/dist/arcgis-map-components/p-23019762.entry.js +0 -6
- package/dist/arcgis-map-components/p-25c223e1.entry.js +0 -6
- package/dist/arcgis-map-components/p-25e495f9.entry.js +0 -6
- package/dist/arcgis-map-components/p-26dc7c9b.entry.js +0 -6
- package/dist/arcgis-map-components/p-30300164.entry.js +0 -6
- package/dist/arcgis-map-components/p-32fe7b64.entry.js +0 -6
- package/dist/arcgis-map-components/p-43d5a498.entry.js +0 -6
- package/dist/arcgis-map-components/p-47625a50.entry.js +0 -6
- package/dist/arcgis-map-components/p-5180a9b2.entry.js +0 -6
- package/dist/arcgis-map-components/p-52891360.entry.js +0 -6
- package/dist/arcgis-map-components/p-6251bf12.entry.js +0 -6
- package/dist/arcgis-map-components/p-741daf71.entry.js +0 -6
- package/dist/arcgis-map-components/p-7a385e15.entry.js +0 -6
- package/dist/arcgis-map-components/p-8006c481.entry.js +0 -6
- package/dist/arcgis-map-components/p-86efcded.entry.js +0 -6
- package/dist/arcgis-map-components/p-882d7747.entry.js +0 -6
- package/dist/arcgis-map-components/p-8dfc9cf6.entry.js +0 -6
- package/dist/arcgis-map-components/p-9574b6f5.entry.js +0 -6
- package/dist/arcgis-map-components/p-9a67aea3.entry.js +0 -6
- package/dist/arcgis-map-components/p-a7b8b73f.entry.js +0 -6
- package/dist/arcgis-map-components/p-c5954fc6.entry.js +0 -6
- package/dist/arcgis-map-components/p-d05413e0.entry.js +0 -6
- package/dist/arcgis-map-components/p-d9ee6266.entry.js +0 -6
- package/dist/arcgis-map-components/p-db7e1bfd.entry.js +0 -6
- package/dist/arcgis-map-components/p-e1091a31.entry.js +0 -6
- package/dist/arcgis-map-components/p-e28fd844.entry.js +0 -6
- package/dist/arcgis-map-components/p-e408573f.entry.js +0 -6
- package/dist/arcgis-map-components/p-e811953d.entry.js +0 -6
- package/dist/arcgis-map-components/p-ef56bb4d.entry.js +0 -6
- package/dist/arcgis-map-components/p-f4d58504.entry.js +0 -6
- package/dist/arcgis-map-components/p-f61fa8a5.entry.js +0 -6
- package/dist/arcgis-map-components/p-fbb5c5f6.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-e6ce333d.js";import{l as h,i as o}from"./p-ab228eed.js";import{r as n,c as a,a as r}from"./p-0267ce0c.js";import{o as c}from"./p-cfb0b3db.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.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-e6ce333d.js";import{a5 as h}from"./p-ab228eed.js";import{r as o,c as r}from"./p-0267ce0c.js";import{o as a}from"./p-cfb0b3db.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)}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),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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{r as i,c as t,h as s,g as h}from"./p-f233b76c.js";import{i as e,P as a,Q as r}from"./p-d2249660.js";import{i as o,e as n,f as c,b as d,g as l,a as p}from"./p-d9a19770.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-e6ce333d.js";import{i as e,P as a,Q as r}from"./p-ab228eed.js";import{i as o,e as n,f as c,b as d,g as l,a as p}from"./p-0267ce0c.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}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-e6ce333d.js";import{r as h,i as a}from"./p-ab228eed.js";import{r,c,a as n}from"./p-0267ce0c.js";import{o}from"./p-cfb0b3db.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)}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 h(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),this.view&&(t.view=this.view),this.unit&&(t.unit=this.unit),this.unitOptions&&(t.unitOptions=this.unitOptions),t}get el(){return e(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.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as e,h as s,g as i}from"./p-e6ce333d.js";import{T as l,i as o,U as n}from"./p-ab228eed.js";import{r as h,c as a,a as r}from"./p-0267ce0c.js";import{o as c}from"./p-cfb0b3db.js";const p=class{constructor(s){t(this,s),this.arcgisSketchReady=e(this,"arcgisSketchReady",7),this.sketchCreate=e(this,"sketchCreate",7),this.sketchDelete=e(this,"sketchDelete",7),this.sketchRedo=e(this,"sketchRedo",7),this.sketchUndo=e(this,"sketchUndo",7),this.sketchUpdate=e(this,"sketchUpdate",7),this._watchHandles=[],this.referenceElement=void 0,this.activeTool=void 0,this.availableCreateTools=void 0,this.createGraphic=void 0,this.creationMode="continuous",this.defaultCreateOptions=void 0,this.defaultUpdateOptions=void 0,this.icon=void 0,this.labelOptions=void 0,this.layer=void 0,this.layout="horizontal",this.pointSymbol=void 0,this.polylineSymbol=void 0,this.polygonSymbol=void 0,this.snappingOptions=void 0,this.tooltipOptions=void 0,this.updateGraphics=void 0,this.visibleElementsCreateToolsPoint=!0,this.visibleElementsCreateToolsPolyline=!0,this.visibleElementsCreateToolsPolygon=!0,this.visibleElementsCreateToolsRectangle=!0,this.visibleElementsCreateToolsCircle=!0,this.visibleElementsDuplicateButton=!0,this.visibleElementsSelectionToolsRectangle=!0,this.visibleElementsSelectionToolsLasso=!0,this.visibleElementsSettingsMenu=!0,this.visibleElementsLabelsToggle=!0,this.visibleElementsTooltipsToggle=!0,this.visibleElementsSnappingControls=!0,this.visibleElementsSnappingControlsElementsHeader=!0,this.visibleElementsSnappingControlsElementsEnabledToggle=!0,this.visibleElementsSnappingControlsElementsSelfEnabledToggle=!0,this.visibleElementsSnappingControlsElementsFeatureEnabledToggle=!0,this.visibleElementsSnappingControlsElementsLayerList=!0,this.visibleElementsUndoRedoMenu=!0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){h(this,t)}availableCreateToolsWatcher(t){this.widget&&(this.widget.availableCreateTools=t)}creationModeWatcher(t){this.widget&&(this.widget.creationMode=t)}defaultCreateOptionsWatcher(t){this.widget&&(this.widget.defaultCreateOptions=t)}defaultUpdateOptionsWatcher(t){this.widget&&(this.widget.defaultUpdateOptions=t)}iconWatcher(t){this.widget&&(this.widget.icon=t)}labelOptionsWatcher(t){this.widget&&(this.widget.labelOptions=t)}layerWatcher(t){this.widget&&(this.widget.layer=t)}layoutWatcher(t){this.widget&&(this.widget.layout=t)}pointSymbolWatcher(t){this.widget&&(this.widget.viewModel.pointSymbol=t)}polylineSymbolWatcher(t){this.widget&&(this.widget.viewModel.polylineSymbol=t)}polygonSymbolWatcher(t){this.widget&&(this.widget.viewModel.polygonSymbol=t)}snappingOptionsWatcher(t){this.widget&&(this.widget.snappingOptions=t)}tooltipOptionsWatcher(t){this.widget&&(this.widget.tooltipOptions=t)}visibleElementsCreateToolsPointWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,createTools:{...this.widget.visibleElements.createTools,point:t}})}visibleElementsCreateToolsPolylineWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,createTools:{...this.widget.visibleElements.createTools,polyline:t}})}visibleElementsCreateToolsPolygonWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,createTools:{...this.widget.visibleElements.createTools,polygon:t}})}visibleElementsCreateToolsRectangleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,createTools:{...this.widget.visibleElements.createTools,rectangle:t}})}visibleElementsCreateToolsCircleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,createTools:{...this.widget.visibleElements.createTools,circle:t}})}visibleElementsDuplicateButtonWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,duplicateButton:t})}visibleElementsSelectionToolsRectangleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,selectionTools:{...this.widget.visibleElements.selectionTools,"rectangle-selection":t}})}visibleElementsSelectionToolsLassoWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,selectionTools:{...this.widget.visibleElements.selectionTools,"lasso-selection":t}})}visibleElementsSettingsMenuWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,settingsMenu:t})}visibleElementsLabelsToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,labelsToggle:t})}visibleElementsTooltipsToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,tooltipsToggle:t})}visibleElementsSnappingControlsWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,snappingControls:t})}visibleElementsSnappingControlsElementsHeaderWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,snappingControlsElements:{header:t}})}visibleElementsSnappingControlsElementsEnabledToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,snappingControlsElements:{enabledToggle:t}})}visibleElementsSnappingControlsElementsSelfEnabledToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,snappingControlsElements:{selfEnabledToggle:t}})}visibleElementsSnappingControlsElementsFeatureEnabledToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,snappingControlsElements:{featureEnabledToggle:t}})}visibleElementsSnappingControlsElementsLayerListWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,snappingControlsElements:{layerList:t}})}visibleElementsUndoRedoMenuWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,undoRedoMenu: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,this.widget.view.map?.add(this.layer))}async cancel(){this.widget?.cancel()}async complete(){this.widget?.complete()}async create(t,e){this.widget?.create(t,e)}async delete(){this.widget?.delete()}async duplicate(){this.widget?.duplicate()}async redo(){this.widget?.redo()}async undo(){this.widget?.undo()}async update(t,e){this.widget?.update(t,e)}async componentDidLoad(){const t=await this._createParams(),e=await l(t);this.widget=e,this._setViewModelParams(),await this._addWatchers(),this._addContainer(),this.arcgisSketchReady.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}=await o();r(this,t((()=>this.widget.activeTool),(t=>this.activeTool=t),{initial:!0})),r(this,t((()=>this.widget.createGraphic),(t=>this.createGraphic=t),{initial:!0})),r(this,t((()=>this.widget.updateGraphics),(t=>this.updateGraphics=t),{initial:!0}))}async _createParams(){this.layer||(this.layer=await n({title:"Sketch Layer",creationMode:"update"}));const t={layer:this.layer};return t.visibleElements={createTools:{point:this.visibleElementsCreateToolsPoint,polyline:this.visibleElementsCreateToolsPolyline,polygon:this.visibleElementsCreateToolsPolygon,rectangle:this.visibleElementsCreateToolsRectangle,circle:this.visibleElementsCreateToolsCircle},duplicateButton:this.visibleElementsDuplicateButton,selectionTools:{"rectangle-selection":this.visibleElementsSelectionToolsRectangle,"lasso-selection":this.visibleElementsSelectionToolsLasso},settingsMenu:this.visibleElementsSettingsMenu,labelsToggle:this.visibleElementsLabelsToggle,tooltipsToggle:this.visibleElementsTooltipsToggle,snappingControls:this.visibleElementsSnappingControls,snappingControlsElements:{header:this.visibleElementsSnappingControlsElementsHeader,enabledToggle:this.visibleElementsSnappingControlsElementsEnabledToggle,selfEnabledToggle:this.visibleElementsSnappingControlsElementsSelfEnabledToggle,featureEnabledToggle:this.visibleElementsSnappingControlsElementsFeatureEnabledToggle,layerList:this.visibleElementsSnappingControlsElementsLayerList},undoRedoMenu:this.visibleElementsUndoRedoMenu},this.view&&(t.view=this.view),this.availableCreateTools&&(t.availableCreateTools=this.availableCreateTools),this.creationMode&&(t.creationMode=this.creationMode),this.defaultCreateOptions&&(t.defaultCreateOptions=this.defaultCreateOptions),this.defaultUpdateOptions&&(t.defaultUpdateOptions=this.defaultUpdateOptions),this.labelOptions&&(t.labelOptions=this.labelOptions),this.layout&&(t.layout=this.layout),this.snappingOptions&&(t.snappingOptions=this.snappingOptions),this.tooltipOptions&&(t.tooltipOptions=this.tooltipOptions),t}_setViewModelParams(){const t={};this.pointSymbol&&(t.pointSymbol=this.pointSymbol),this.polylineSymbol&&(t.polylineSymbol=this.polylineSymbol),this.polygonSymbol&&(t.polygonSymbol=this.polygonSymbol),this.widget.viewModel.set(t)}get el(){return i(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],availableCreateTools:["availableCreateToolsWatcher"],creationMode:["creationModeWatcher"],defaultCreateOptions:["defaultCreateOptionsWatcher"],defaultUpdateOptions:["defaultUpdateOptionsWatcher"],icon:["iconWatcher"],labelOptions:["labelOptionsWatcher"],layer:["layerWatcher"],layout:["layoutWatcher"],pointSymbol:["pointSymbolWatcher"],polylineSymbol:["polylineSymbolWatcher"],polygonSymbol:["polygonSymbolWatcher"],snappingOptions:["snappingOptionsWatcher"],tooltipOptions:["tooltipOptionsWatcher"],visibleElementsCreateToolsPoint:["visibleElementsCreateToolsPointWatcher"],visibleElementsCreateToolsPolyline:["visibleElementsCreateToolsPolylineWatcher"],visibleElementsCreateToolsPolygon:["visibleElementsCreateToolsPolygonWatcher"],visibleElementsCreateToolsRectangle:["visibleElementsCreateToolsRectangleWatcher"],visibleElementsCreateToolsCircle:["visibleElementsCreateToolsCircleWatcher"],visibleElementsDuplicateButton:["visibleElementsDuplicateButtonWatcher"],visibleElementsSelectionToolsRectangle:["visibleElementsSelectionToolsRectangleWatcher"],visibleElementsSelectionToolsLasso:["visibleElementsSelectionToolsLassoWatcher"],visibleElementsSettingsMenu:["visibleElementsSettingsMenuWatcher"],visibleElementsLabelsToggle:["visibleElementsLabelsToggleWatcher"],visibleElementsTooltipsToggle:["visibleElementsTooltipsToggleWatcher"],visibleElementsSnappingControls:["visibleElementsSnappingControlsWatcher"],visibleElementsSnappingControlsElementsHeader:["visibleElementsSnappingControlsElementsHeaderWatcher"],visibleElementsSnappingControlsElementsEnabledToggle:["visibleElementsSnappingControlsElementsEnabledToggleWatcher"],visibleElementsSnappingControlsElementsSelfEnabledToggle:["visibleElementsSnappingControlsElementsSelfEnabledToggleWatcher"],visibleElementsSnappingControlsElementsFeatureEnabledToggle:["visibleElementsSnappingControlsElementsFeatureEnabledToggleWatcher"],visibleElementsSnappingControlsElementsLayerList:["visibleElementsSnappingControlsElementsLayerListWatcher"],visibleElementsUndoRedoMenu:["visibleElementsUndoRedoMenuWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};p.style="arcgis-sketch{}";export{p as arcgis_sketch}
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-e6ce333d.js";import{W as e,i as a}from"./p-ab228eed.js";import{c as r,a as n}from"./p-0267ce0c.js";import{o as d}from"./p-cfb0b3db.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.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
|
+
*/
|
|
6
|
+
import{r as i,c as e,h as t,H as s,g as n}from"./p-e6ce333d.js";import{i as c}from"./p-ab228eed.js";const o=class{constructor(t){i(this,t),this.versionItemActionClickedEventWithServiceUrl=e(this,"versionItemActionClickedEventWithServiceUrl",7),this.versionListActionClickedEvent=e(this,"versionListActionClickedEvent",7),this._versionListEventListeners=new Map,this._watchHandles=[],this._versionItemActionClickedEventWithServiceUrl=i=>{this.versionItemActionClickedEventWithServiceUrl.emit(i.detail)},this._versionListActionClickedEvent=i=>{this.versionListActionClickedEvent.emit(i.detail)},this.flowElement=void 0,this.heading=void 0,this.serviceUrl=void 0,this.strings=void 0,this.viewModel=void 0,this.state=void 0}async componentDidLoad(){const{watch:i}=await c();this._watchHandles.push(i((()=>this.viewModel.state),(i=>{this.state=i})))}async componentWillLoad(){this.state=this.viewModel.state}disconnectedCallback(){this._watchHandles.forEach((i=>{i.remove()})),this._watchHandles=[],this._removeVersionListEventListeners(this._versionList)}render(){const{flowElement:i,heading:e,serviceUrl:n,strings:c,viewModel:o}=this;let{_versionList:a}=this;const r=o.serviceNames.get(n);return t(s,null,t("calcite-panel",{heading:r},t("calcite-action",{id:`actionManageVersions_${r}`,icon:"list",scale:"s",slot:"header-actions-end",onclick:async()=>{a=document.createElement("arcgis-version-management-version-list"),a.heading=e,a.serviceUrl=n,a.serviceName=r,a.strings=c,a.userHasAdvancedEditingUserTypeExtension=o.advancedEditingUserTypeExtensionForUrl.get(n),await o.getVersionInfos(n,!1),a.versionInfos=o.versionInfos.get(n),a.viewModel=o,this._addVersionListEventListeners(a),i.append(a)}}),t("calcite-tooltip",{"overlay-positioning":"fixed",referenceElement:`actionManageVersions_${r}`},t("span",null,c.headers.manageVersions))))}_addVersionListEventListeners(i){i.addEventListener("versionItemActionClickedEventWithServiceUrl",this._versionItemActionClickedEventWithServiceUrl),this._versionListEventListeners.set("versionItemActionClickedEventWithServiceUrl",this._versionItemActionClickedEventWithServiceUrl),i.addEventListener("versionListActionClickedEvent",this._versionListActionClickedEvent),this._versionListEventListeners.set("versionListActionClickedEvent",this._versionListActionClickedEvent)}_removeVersionListEventListeners(i){for(const[e,t]of this._versionListEventListeners)i.removeEventListener(e,t)}get _hostElement(){return n(this)}},a=class{constructor(t){i(this,t),this.versionPropertiesSaveClickedEvent=e(this,"versionPropertiesSaveClickedEvent",7),this._watchHandles=[],this.flowElement=void 0,this.serviceUrl=void 0,this.strings=void 0,this.versionInfo=void 0,this.viewModel=void 0,this.executionError=void 0,this.state=void 0}async componentDidLoad(){await this.viewModel.getVersionInfos(this.serviceUrl,!1)}async componentWillLoad(){const{watch:i}=await c();this._watchHandles.push(i((()=>this.viewModel.state),(i=>{this.state=i})))}disconnectedCallback(){this._watchHandles.forEach((i=>{i.remove()})),this._watchHandles=[]}render(){const{serviceUrl:i,strings:e,versionInfo:n}=this,{viewModel:{executionError:c}}=this;return t(s,null,t("calcite-flow-item",{description:n?n.versionIdentifier.name:"",heading:n?e.actions.editVersion:e.actions.newVersion},t("calcite-panel",{loading:"executing"===this.state},t("div",{class:"div-content"},t("calcite-label",null,e.input.versionName,t("calcite-input-text",{id:"inputName",maxLength:62,value:n?n.versionIdentifier.name.split(".")[1]:""})),t("calcite-label",null,e.input.versionDescription,t("calcite-text-area",{id:"inputDescription",resize:"vertical",value:n?n.description:""})),t("calcite-label",null,e.input.versionAccess,t("calcite-chip-group",{id:"chipGroupAccessLevel",selectionMode:"single"},t("calcite-chip",{selected:"public"===n?.access,value:"public"},e.accessLevels.public),t("calcite-chip",{selected:"protected"===n?.access,value:"protected"},e.accessLevels.protected),t("calcite-chip",{selected:"private"===n?.access||!n,value:"private"},e.accessLevels.private))),t("calcite-label",null,e.input.versionOwner,t("calcite-input-text",{id:"inputOwner",disabled:!this.viewModel.advancedEditingUserTypeExtensionForUrl.get(i),value:n?n.versionIdentifier.name.split(".")[0]:this.viewModel.userForUrl.get(i)?.toUpperCase()})),t("calcite-button",{appearance:"outline",slot:"footer",width:"half",onClick:()=>{this.flowElement.back()}},e.actions.cancelSave),t("calcite-button",{slot:"footer",width:"half",onClick:async()=>{const e=Array.from(this._hostElement.getElementsByTagName("calcite-input-text")),t=this._hostElement.getElementsByTagName("calcite-text-area")[0],s=e.find((i=>"inputName"===i.id)),c=e.find((i=>"inputOwner"===i.id)),o=Array.from(this._hostElement.getElementsByTagName("calcite-chip-group"))[0];this.versionPropertiesSaveClickedEvent.emit({serviceUrl:i,versionInfo:{access:o.selectedItems[0].value,description:t.value,versionIdentifier:{name:""!==c.value?`${c.value}.${s.value}`:s.value,guid:n?n.versionIdentifier.guid:""}}})}},e.actions.saveVersion)),"failed"===this.state?t("calcite-notice",{class:"notice",closable:!0,kind:"warning",open:!0,scale:"s",slot:"footer"},t("div",{slot:"message"},this._getExecutionError(c))):void 0)))}_getExecutionError(i){const{strings:{executionErrors:e}}=this;switch(i){case"no-advanced-editing-user-type-extension":return e.noAdvancedEditingUserTypeExtension;case"no-feature-service-found":return e.noFeatureServiceFound;case"no-valid-enterprise-version":return e.notValidEnterpriseVersion;case"no-valid-version-name":return e.invalidVersionName;default:return i}}get _hostElement(){return n(this)}};export{o as arcgis_version_management_service_item,a as arcgis_version_management_version_properties}
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-e6ce333d.js";import{L as a}from"./p-ab228eed.js";import{r,c as o}from"./p-0267ce0c.js";import{o as h}from"./p-cfb0b3db.js";const c=class{constructor(s){t(this,s),this.arcgisNavigationToggleReady=i(this,"arcgisNavigationToggleReady",7),this._watchHandles=[],this.referenceElement=void 0,this.layout="vertical",this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){r(this,t)}layoutWatcher(t){void 0!==t&&this.widget&&(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 toggle(){this.widget?.toggle()}async componentDidLoad(){const t=this._createParams(),i=await a(t);this.widget=i,this._addContainer(),this.arcgisNavigationToggleReady.emit(),o(this)}disconnectedCallback(){h(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}_createParams(){const t={};return this.layout&&(t.layout=this.layout),this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],layout:["layoutWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};c.style="arcgis-navigation-toggle{}";export{c as arcgis_navigation_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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-e6ce333d.js";import{a2 as a,i as e}from"./p-ab228eed.js";import{c as o,a as c}from"./p-0267ce0c.js";import{o as r}from"./p-cfb0b3db.js";const n=class{constructor(s){i(this,s),this.arcgisValuePickerReady=t(this,"arcgisValuePickerReady",7),this.arcgisValuePickerValuesChange=t(this,"arcgisValuePickerValuesChange",7),this.valuePickerAnimate=t(this,"valuePickerAnimate",7),this.valuePickerNext=t(this,"valuePickerNext",7),this.valuePickerPause=t(this,"valuePickerPause",7),this.valuePickerPlay=t(this,"valuePickerPlay",7),this.valuePickerPrevious=t(this,"valuePickerPrevious",7),this._watchHandles=[],this.referenceElement=void 0,this.view=void 0,this.position="bottom-left",this.widget=void 0,this.canNext=void 0,this.canPlay=void 0,this.canPrevious=void 0,this.caption=void 0,this.component=void 0,this.layout=void 0,this.loop=void 0,this.playRate=void 0,this.visibleElements=void 0,this.values=void 0}positionWatcher(i){void 0!==i&&this.widget&&this.view.ui.move(this.childElem,i)}captionWatcher(i){this.widget.caption=i}componentWatcher(i){this.widget&&(this.widget.component=i)}layoutWatcher(i){this.widget&&(this.widget.layout=i)}loopWatcher(i){void 0!==i&&this.widget&&(this.widget.loop=i)}playRateWatcher(i){void 0!==i&&this.widget&&(this.widget.playRate=i)}visibleElementsWatcher(i){this.widget&&(this.widget.visibleElements=i)}async next(){this.widget?.next()}async pause(){this.widget?.pause()}async play(){this.widget?.play()}async previous(){this.widget?.previous()}async componentDidLoad(){const i=this._createParams(),t=await a(i);this.widget=t,await this._addWatchers(),this._proxyEvents(),this.arcgisValuePickerReady.emit(),o(this)}disconnectedCallback(){r(this)}render(){return s("div",{ref:i=>this.childElem=i})}async _addWatchers(){const{watch:i}=await e();c(this,i((()=>this.widget.canNext),(i=>this.canNext=i),{initial:!0})),c(this,i((()=>this.widget.canPlay),(i=>this.canPlay=i),{initial:!0})),c(this,i((()=>this.widget.canPrevious),(i=>this.canPrevious=i),{initial:!0})),c(this,i((()=>this.widget.values),(i=>{this.values=i,this.arcgisValuePickerValuesChange.emit()}),{initial:!0}))}_createParams(){const i={container:this.childElem};return this.caption&&(i.caption=this.caption),this.component&&(i.component=this.component),this.layout&&(i.layout=this.layout),void 0!==this.loop&&(i.loop=this.loop),void 0!==this.playRate&&(i.playRate=this.playRate),this.visibleElements&&(i.visibleElements=this.visibleElements),i}_proxyEvents(){this.widget.on("animate",(i=>this.valuePickerAnimate.emit(i))),this.widget.on("next",(i=>this.valuePickerNext.emit(i))),this.widget.on("pause",(i=>this.valuePickerPause.emit(i))),this.widget.on("play",(i=>this.valuePickerPlay.emit(i))),this.widget.on("previous",(i=>this.valuePickerPrevious.emit(i)))}get el(){return h(this)}static get watchers(){return{position:["positionWatcher"],caption:["captionWatcher"],component:["componentWatcher"],layout:["layoutWatcher"],loop:["loopWatcher"],playRate:["playRateWatcher"],visibleElements:["visibleElementsWatcher"]}}};n.style="arcgis-value-picker{}";export{n as arcgis_value_picker}
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as
|
|
6
|
+
import{r as t,c as i,h as e,g as s}from"./p-e6ce333d.js";import{w as h}from"./p-ab228eed.js";import{r}from"./p-0267ce0c.js";import{o as a}from"./p-cfb0b3db.js";const o=class{constructor(e){t(this,e),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?e("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},e("div",{ref:t=>this.childElem=t})):e("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 s(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}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
|
+
*/
|
|
6
|
+
import{r as e,c as i,h as t,g as s}from"./p-e6ce333d.js";import{O as a,i as h}from"./p-ab228eed.js";import{r as c,c as r,a as n}from"./p-0267ce0c.js";import{o as l}from"./p-cfb0b3db.js";const o=class{constructor(t){e(this,t),this.arcgisScaleRangeSliderReady=i(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(e){c(this,e)}disabledWatcher(e,i){this.widget&&e!==i&&(this.widget.disabled=e)}layerWatcher(e){this.widget&&(this.widget.layer=e)}maxScaleWatcher(e){void 0!==e&&this.widget&&(this.widget.maxScale=e)}maxScaleLimitWatcher(e){void 0!==e&&this.widget&&(this.widget.maxScaleLimit=e)}minScaleWatcher(e){void 0!==e&&this.widget&&(this.widget.minScale=e)}minScaleLimitWatcher(e){void 0!==e&&this.widget&&(this.widget.minScaleLimit=e)}modeWatcher(e){this.widget&&(this.widget.mode=e)}regionWatcher(e){this.widget&&(this.widget.region=e)}visibleElementsPreviewWatcher(e){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,preview:e})}visibleElementsScaleMenusMinScaleMenuWatcher(e){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,scaleMenus:{...this.widget.visibleElements.scaleMenus,minScaleMenu:e}})}visibleElementsScaleMenusMaxScaleMenuWatcher(e){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,scaleMenus:{...this.widget.visibleElements.scaleMenus,maxScaleMenu:e}})}positionWatcher(e){void 0!==e&&this.widget&&this.view.ui.move(this.childElem,e)}viewWatcher(e){void 0!==e&&this.widget&&(this.widget.view=e)}async componentDidLoad(){const e=this._createParams(),i=await a(e);this.widget=i,await this._addWatchers(),this._addContainer(),this.arcgisScaleRangeSliderReady.emit(),r(this)}disconnectedCallback(){l(this)}render(){return t("div",{ref:e=>this.childElem=e})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:e}=await h();n(this,e((()=>this.widget?.disabled),(e=>this.disabled=e)))}_createParams(){const e={};return e.visibleElements={preview:this.visibleElementsPreview,scaleMenus:{minScaleMenu:this.visibleElementsScaleMenusMinScaleMenu,maxScaleMenu:this.visibleElementsScaleMenusMaxScaleMenu}},this.layer&&(e.layer=this.layer),void 0!==this.maxScale&&(e.maxScale=this.maxScale),void 0!==this.minScale&&(e.minScale=this.minScale),void 0!==this.maxScaleLimit&&(e.maxScaleLimit=this.maxScaleLimit),void 0!==this.minScaleLimit&&(e.minScaleLimit=this.minScaleLimit),this.mode&&(e.mode=this.mode),this.region&&(e.region=this.region),this.view&&(e.view=this.view),e}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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{r as e,a as t,h as i,H as s,g as n}from"./p-
|
|
6
|
+
import{r as e,a as t,h as i,H as s,g as n}from"./p-e6ce333d.js";import{i as a,a3 as r}from"./p-ab228eed.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({layers:this.view.map.layers}),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.serviceNames,(([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.userForUrl.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){await s.getVersionInfos(t,!0);const e=s.versionInfos.get(t);i.getElementsByTagName("arcgis-version-management-version-list")[0].versionInfos=e,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=await this.viewModel.getVersionInfos(s,!0);this.flowElement.getElementsByTagName("arcgis-version-management-version-list")[0].versionInfos=e;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}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-e6ce333d.js";import{o as r}from"./p-ab228eed.js";import{r as a,c as h}from"./p-0267ce0c.js";import{o as c}from"./p-cfb0b3db.js";const o=class{constructor(s){t(this,s),this.arcgisDirectionalPadReady=i(this,"arcgisDirectionalPadReady",7),this._watchHandles=[],this.referenceElement=void 0,this.icon=void 0,this.visualScale="s",this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){a(this,t)}iconWatcher(t){void 0!==t&&this.widget&&(this.widget.icon=t)}visualScaleWatcher(t){this.widget&&(this.widget.visualScale=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.arcgisDirectionalPadReady.emit(),h(this)}disconnectedCallback(){c(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),this.visualScale&&(t.visualScale=this.visualScale),this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],icon:["iconWatcher"],visualScale:["visualScaleWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};o.style="arcgis-directional-pad{}";export{o as arcgis_directional_pad}
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-e6ce333d.js";import{E as h}from"./p-ab228eed.js";import{c as e}from"./p-0267ce0c.js";import{o as r}from"./p-cfb0b3db.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-e6ce333d.js";import{e as h,i as e}from"./p-ab228eed.js";import{d as r,a as c}from"./p-0267ce0c.js";import{o}from"./p-cfb0b3db.js";const d=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this._watchHandles=[],this.referenceElement=void 0,this.position="bottom-left",this.expandable=!1,this.capabilities=void 0,this.displayType=void 0,this.graphic=void 0,this.submitting=void 0,this.visibleElements=void 0,this.widget=void 0}capabilitiesWatcher(t){this.widget&&(this.widget.capabilities=t)}displayTypeWatcher(t){this.widget&&(this.widget.displayType=t)}graphicWatcher(t){this.widget&&(this.widget.graphic=t)}visibleElementsWatcher(t){this.widget&&(this.widget.visibleElements=t)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,await this._addWatchers(),this.widgetReady.emit({widget:this.widget}),r(this)}disconnectedCallback(){o(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})}async _addWatchers(){const{watch:t}=await e();c(this,t((()=>this.widget.submitting),(t=>this.submitting=t),{initial:!0}))}_createParams(){const t={container:this.childElem};return this.displayType&&(t.displayType=this.displayType),this.graphic&&(t.graphic=this.graphic),this.visibleElements&&(t.visibleElements=this.visibleElements),t}get el(){return a(this)}static get watchers(){return{capabilities:["capabilitiesWatcher"],displayType:["displayTypeWatcher"],graphic:["graphicWatcher"],visibleElements:["visibleElementsWatcher"]}}};d.style="";export{d as arcgis_attachments}
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-e6ce333d.js";import{Z as e,i as a}from"./p-ab228eed.js";import{r as o,c as r,a as c}from"./p-0267ce0c.js";import{o as n}from"./p-cfb0b3db.js";const d=class{constructor(s){t(this,s),this.arcgisTimeSliderReady=i(this,"arcgisTimeSliderReady",7),this.timeSliderTriggerAction=i(this,"timeSliderTriggerAction",7),this._watchHandles=[],this.referenceElement=void 0,this.actions=void 0,this.disabled=!1,this.effectiveStops=void 0,this.fullTimeExtent=void 0,this.layout="auto",this.loop=!1,this.mode="time-window",this.playRate=1e3,this.stops={count:10},this.tickConfigs=void 0,this.timeExtent=void 0,this.timeVisible=!1,this.timeZone=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){o(this,t)}actionsWatcher(t){this.widget&&(this.widget.actions=t)}disabledWatcher(t,i){this.widget&&t!==i&&(this.widget.disabled=t)}fullTimeExtentWatcher(t){this.widget&&(this.widget.fullTimeExtent=t)}layoutWatcher(t){this.widget&&(this.widget.layout=t)}loopWatcher(t){void 0!==t&&this.widget&&(this.widget.loop=t)}modeWatcher(t){this.widget&&(this.widget.mode=t)}playRateWatcher(t){void 0!==t&&this.widget&&(this.widget.playRate=t)}stopsWatcher(t){this.widget&&(this.widget.stops=t)}tickConfigsWatcher(t){this.widget&&(this.widget.tickConfigs=t)}timeExtentWatcher(t){this.widget&&(this.widget.timeExtent=t)}timeVisibleWatcher(t){void 0!==t&&this.widget&&(this.widget.timeVisible=t)}timeZoneWatcher(t){this.widget&&(this.widget.timeZone=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 next(){this.widget?.next()}async play(){this.widget?.play()}async previous(){this.widget?.previous()}async stop(){this.widget?.stop()}async updateWebDocument(t){this.widget?.updateWebDocument(t)}async componentDidLoad(){const t=this._createParams(),i=await e(t);this.widget=i,await this._addWatchers(),this._proxyEvents(),this._addContainer(),this.arcgisTimeSliderReady.emit(),r(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.effectiveStops),(t=>this.effectiveStops=t),{initial:!0}),t((()=>this.widget.disabled),(t=>this.disabled=t))])}_createParams(){const t={};return void 0!==this.actions&&(t.actions=this.actions),void 0!==this.fullTimeExtent&&(t.fullTimeExtent=this.fullTimeExtent),void 0!==this.layout&&(t.layout=this.layout),void 0!==this.loop&&(t.loop=this.loop),void 0!==this.mode&&(t.mode=this.mode),void 0!==this.playRate&&(t.playRate=this.playRate),void 0!==this.stops&&(t.stops=this.stops),void 0!==this.tickConfigs&&(t.tickConfigs=this.tickConfigs),void 0!==this.timeExtent&&(t.timeExtent=this.timeExtent),void 0!==this.timeVisible&&(t.timeVisible=this.timeVisible),this.timeZone&&(t.timeZone=this.timeZone),this.view&&(t.view=this.view),t}_proxyEvents(){this.widget?.on("trigger-action",(t=>this.timeSliderTriggerAction.emit(t)))}get el(){return h(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],actions:["actionsWatcher"],disabled:["disabledWatcher"],fullTimeExtent:["fullTimeExtentWatcher"],layout:["layoutWatcher"],loop:["loopWatcher"],mode:["modeWatcher"],playRate:["playRateWatcher"],stops:["stopsWatcher"],tickConfigs:["tickConfigsWatcher"],timeExtent:["timeExtentWatcher"],timeVisible:["timeVisibleWatcher"],timeZone:["timeZoneWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};d.style="arcgis-time-slider{}";export{d as arcgis_time_slider}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as i,h as s,g as h}from"./p-e6ce333d.js";import{J as o,i as e}from"./p-ab228eed.js";import{r as a,c,a as r}from"./p-0267ce0c.js";import{o as n}from"./p-cfb0b3db.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){a(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)}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 e();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),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}
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-e6ce333d.js";import{D as h,i as e}from"./p-ab228eed.js";import{a as r}from"./p-0267ce0c.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.labelFormatFunction=void 0,this.layout=void 0,this.max=0,this.min=0,this.state=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)}labelFormatFunctionWatcher(t){this.widget&&(this.widget.labelFormatFunction=t)}layoutWatcher(t){this.widget&&(this.widget.layout=t)}maxWatcher(t){this.widget&&(this.widget.max=Number(t))}minWatcher(t){this.widget&&(this.widget.min=Number(t))}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,await this._addWatchers(),this.widgetReady.emit({widget:this.widget})}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})}async _addWatchers(){const{watch:t}=await e();r(this,t((()=>this.widget.state),(()=>this.state=this.widget.state),{initial:!0}))}_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.labelFormatFunction&&(t.labelFormatFunction=this.labelFormatFunction),t}get el(){return a(this)}static get watchers(){return{average:["averageWatcher"],barCreatedFunction:["barCreatedFunctionWatcher"],bins:["binsWatcher"],dataLineCreatedFunction:["dataLineCreatedFunctionWatcher"],dataLines:["dataLinesWatcher"],labelFormatFunction:["labelFormatFunctionWatcher"],layout:["layoutWatcher"],max:["maxWatcher"],min:["minWatcher"]}}};o.style="arcgis-histogram{}";export{o as arcgis_histogram}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as e,h as i,g as s}from"./p-e6ce333d.js";import{C as r}from"./p-ab228eed.js";import{r as h,c}from"./p-0267ce0c.js";import{o}from"./p-cfb0b3db.js";const a=class{constructor(i){t(this,i),this.widgetReady=e(this,"widgetReady",7),this._watchHandles=[],this.referenceElement=void 0,this.element=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){h(this,t)}elementWatcher(t){this.widget&&(this.widget.element=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(),e=await r(t);this.widget=e,this.widgetReady.emit({widget:this.widget}),c(this)}disconnectedCallback(){o(this)}render(){return i("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.element&&(t.element=this.element),this.view&&(t.view=this.view),t}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],element:["elementWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};a.style="";export{a as arcgis_fullscreen}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-e6ce333d.js";import{Y as h,i as r}from"./p-ab228eed.js";import{r as a,c as l,a as o}from"./p-0267ce0c.js";import{o as c}from"./p-cfb0b3db.js";const n=class{constructor(s){t(this,s),this.arcgisTableListReady=i(this,"arcgisTableListReady",7),this.tableListTriggerAction=i(this,"tableListTriggerAction",7),this._watchHandles=[],this.referenceElement=void 0,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.icon=void 0,this.minDragEnabledItems=2,this.minFilterItems=10,this.selectedItems=void 0,this.selectionMode="none",this.listItemCreatedFunction=void 0,this.visibleElementsCloseButton=!1,this.visibleElementsCollapseButton=!1,this.visibleElementsErrors=!1,this.visibleElementsFilter=!1,this.visibleElementsFlow=!0,this.visibleElementsHeading=!1,this.visibleElementsStatusIndicators=!0,this.visibleElementsTemporaryTableIndicators=!1,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){a(this,t)}collapsedWatcher(t){this.widget&&this.widget.collapsed!==t&&(this.widget.collapsed=t)}dragEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.dragEnabled=t)}filterPlaceholderWatcher(t){this.widget&&(this.widget.filterPlaceholder=t)}filterTextWatcher(t){this.widget&&(this.widget.filterText=t)}iconWatcher(t){this.widget&&(this.widget.icon=t)}minDragEnabledItemsWatcher(t){this.widget&&(this.widget.minDragEnabledItems=t)}minFilterItemsWatcher(t){this.widget&&(this.widget.minFilterItems=t)}selectedItemsWatcher(t){void 0!==t&&this.widget&&(this.widget.selectedItems=t)}selectionModeWatcher(t){this.widget&&(this.widget.selectionMode=t)}listItemCreatedFunctionWatcher(t){this.widget&&(this.widget.listItemCreatedFunction=t)}visibleElementsCloseButtonWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,closeButton:t})}visibleElementsCollapseButtonWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,collapseButton:t})}visibleElementsErrorsWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,errors:t})}visibleElementsFilterWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,filter:t})}visibleElementsFlowWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,flow:t})}visibleElementsHeadingWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,heading:t})}visibleElementsStatusIndicatorsWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,statusIndicators:t})}visibleElementsTemporaryTableIndicatorsWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,temporaryTableIndicators:t})}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.map=t.map)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,await this._addWatchers(),this._proxyEvents(),this._addContainer(),this.arcgisTableListReady.emit(),l(this)}disconnectedCallback(){c(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:t}=await r();o(this,[t((()=>this.widget.selectedItems),(t=>this.selectedItems=t)),t((()=>this.widget.collapsed),(t=>this.collapsed=t))])}_createParams(){const t={};return t.visibleElements={closeButton:this.visibleElementsCloseButton,collapseButton:this.visibleElementsCollapseButton,errors:this.visibleElementsErrors,filter:this.visibleElementsFilter,flow:this.visibleElementsFlow,heading:this.visibleElementsHeading,statusIndicators:this.visibleElementsStatusIndicators,temporaryTableIndicators:this.visibleElementsTemporaryTableIndicators},void 0!==this.collapsed&&(t.collapsed=this.collapsed),void 0!==this.dragEnabled&&(t.dragEnabled=this.dragEnabled),this.filterPlaceholder&&(t.filterPlaceholder=this.filterPlaceholder),this.filterText&&(t.filterText=this.filterText),this.icon&&(t.icon=this.icon),this.listItemCreatedFunction&&(t.listItemCreatedFunction=this.listItemCreatedFunction),void 0!==this.minDragEnabledItems&&(t.minDragEnabledItems=this.minDragEnabledItems),void 0!==this.minFilterItems&&(t.minFilterItems=this.minFilterItems),this.selectedItems&&(t.selectedItems=this.selectedItems),this.selectionMode&&(t.selectionMode=this.selectionMode),this.view&&(t.map=this.view.map),t}_proxyEvents(){this.widget?.on("trigger-action",(t=>this.tableListTriggerAction.emit(t)))}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],collapsed:["collapsedWatcher"],dragEnabled:["dragEnabledWatcher"],filterPlaceholder:["filterPlaceholderWatcher"],filterText:["filterTextWatcher"],icon:["iconWatcher"],minDragEnabledItems:["minDragEnabledItemsWatcher"],minFilterItems:["minFilterItemsWatcher"],selectedItems:["selectedItemsWatcher"],selectionMode:["selectionModeWatcher"],listItemCreatedFunction:["listItemCreatedFunctionWatcher"],visibleElementsCloseButton:["visibleElementsCloseButtonWatcher"],visibleElementsCollapseButton:["visibleElementsCollapseButtonWatcher"],visibleElementsErrors:["visibleElementsErrorsWatcher"],visibleElementsFilter:["visibleElementsFilterWatcher"],visibleElementsFlow:["visibleElementsFlowWatcher"],visibleElementsHeading:["visibleElementsHeadingWatcher"],visibleElementsStatusIndicators:["visibleElementsStatusIndicatorsWatcher"],visibleElementsTemporaryTableIndicators:["visibleElementsTemporaryTableIndicatorsWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};n.style="arcgis-table-list{}";export{n as arcgis_table_list}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-e6ce333d.js";import{p as h,q as a,i as r}from"./p-ab228eed.js";import{r as o,i as c,c as n,a as l}from"./p-0267ce0c.js";import{o as v}from"./p-cfb0b3db.js";const d=class{constructor(s){t(this,s),this.arcgisDirectionsReady=i(this,"arcgisDirectionsReady",7),this._watchHandles=[],this.referenceElement=void 0,this.apiKey=void 0,this.icon=void 0,this.routeLayerItemId=void 0,this.lastRoute=void 0,this.layer=void 0,this.maxStops=50,this.searchProperties=void 0,this.unit=void 0,this.useDefaultRouteLayer=!0,this.visibleElementsLayerDetails=!0,this.visibleElementsSaveAsButton=!0,this.visibleElementsSaveButton=!0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){o(this,t)}apiKeyWatcher(t){t&&this.widget&&(this.widget.apiKey=t)}iconWatcher(t){t&&this.widget&&(this.widget.icon=t)}routeLayerItemIdWatcher(t){c(t)?(this.view?.map.remove(this.layer),this.useDefaultRouteLayer&&h({}).then((t=>{this.layer=t}))):t&&this.widget&&h({portalItem:{id:t}}).then((t=>{this.layer=t}))}layerWatcher(t,i){i&&this.view?.map.remove(i),t&&this.widget?(this.widget.layer=t,this.view?.map.add(this.layer)):t||(this.widget.layer=null)}maxStopsWatcher(t){void 0!==t&&this.widget&&(this.widget.maxStops=t)}searchPropertiesWatcher(t){this.widget&&(this.widget.searchProperties=t)}unitWatcher(t){this.widget&&(this.widget.unit=t)}visibleElementsLayerDetailsWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,layerDetails:t})}visibleElementsSaveAsButtonWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,saveAsButton:t})}visibleElementsSaveButtonWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,saveButton: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,this.layer&&this.widget.view.map.add(this.layer))}async getDirections(){return await(this.widget?.getDirections())}async save(){return await(this.widget?.save())}async saveAs(t,i){return await(this.widget?.saveAs(t,i))}async zoomToRoute(){this.widget?.zoomToRoute()}async componentDidLoad(){const t=await this._createParams(),i=await a(t);this.widget=i,await this._addWatchers(),this._addContainer(),this.arcgisDirectionsReady.emit(),n(this)}disconnectedCallback(){v(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:t}=await r();l(this,t((()=>this.widget.lastRoute),(t=>this.lastRoute=t),{initial:!0}))}async _createParams(){const t={};return t.visibleElements={layerDetails:this.visibleElementsLayerDetails,saveAsButton:this.visibleElementsSaveAsButton,saveButton:this.visibleElementsSaveButton},this.view&&(t.view=this.view),this.apiKey&&(t.apiKey=this.apiKey),this.icon&&(t.icon=this.icon),this.routeLayerItemId?(t.layer=await h({portalItem:{id:this.routeLayerItemId}}),this.layer=t.layer):this.layer?(t.layer=this.layer,this.layer=t.layer):this.useDefaultRouteLayer&&(t.layer=await h({}),this.layer=t.layer),void 0!==this.layer&&this.view?.map.add(this.layer),void 0!==this.maxStops&&(t.maxStops=this.maxStops),this.searchProperties&&(t.searchProperties=this.searchProperties),this.unit&&(t.unit=this.unit),t}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],apiKey:["apiKeyWatcher"],icon:["iconWatcher"],routeLayerItemId:["routeLayerItemIdWatcher"],layer:["layerWatcher"],maxStops:["maxStopsWatcher"],searchProperties:["searchPropertiesWatcher"],unit:["unitWatcher"],visibleElementsLayerDetails:["visibleElementsLayerDetailsWatcher"],visibleElementsSaveAsButton:["visibleElementsSaveAsButtonWatcher"],visibleElementsSaveButton:["visibleElementsSaveButtonWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};d.style="";export{d as arcgis_directions}
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as e,h as s,g as i}from"./p-
|
|
6
|
+
import{r as t,c as e,h as s,g as i}from"./p-e6ce333d.js";import{t as a,i as n}from"./p-ab228eed.js";import{r as l,c as o,a as h}from"./p-0267ce0c.js";import{o as r}from"./p-cfb0b3db.js";const p=class{constructor(s){t(this,s),this.arcgisEditorReady=e(this,"arcgisEditorReady",7),this._watchHandles=[],this.referenceElement=void 0,this.activeWorkflow=void 0,this.allowedWorkflows=void 0,this.icon=void 0,this.labelOptions=void 0,this.layerInfos=void 0,this.snappingOptions=void 0,this.supportingWidgetDefaults=void 0,this.tooltipOptions=void 0,this.visibleElementsCreateFeaturesSection=!0,this.visibleElementsEditFeaturesSection=!0,this.visibleElementsLabelsToggle=!0,this.visibleElementsTooltipsToggle=!0,this.visibleElementsSnappingControls=!0,this.visibleElementsSnappingControlsHeader=!0,this.visibleElementsSnappingControlsEnabledToggle=!0,this.visibleElementsSnappingControlsSelfEnabledToggle=!0,this.visibleElementsSnappingControlsFeatureEnabledToggle=!0,this.visibleElementsSnappingControlsLayerList=!0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){l(this,t)}allowedWorkflowsWatcher(t){this.widget&&(this.widget.allowedWorkflows=t)}iconWatcher(t){this.widget&&(this.widget.icon=t)}labelOptionsWatcher(t){this.widget&&(this.widget.labelOptions=t)}layerInfosWatcher(t){this.widget&&(this.widget.layerInfos=t)}snappingOptionsWatcher(t){this.widget&&(this.widget.snappingOptions=t)}supportingWidgetDefaultsWatcher(t){this.widget&&(this.widget.supportingWidgetDefaults=t)}tooltipOptionsWatcher(t){this.widget&&(this.widget.tooltipOptions=t)}visibleElementsCreateFeaturesSectionWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,createFeaturesSection:t})}visibleElementsEditFeaturesSectionWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,editFeaturesSection:t})}visibleElementsLabelsToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,labelsToggle:t})}visibleElementsTooltipsToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,tooltipsToggle:t})}visibleElementsSnappingControlsWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,snappingControls:t})}visibleElementsSnappingControlsHeaderWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,snappingControlsElements:{...this.widget.visibleElements.snappingControlsElements,header:t}})}visibleElementsSnappingControlsEnabledToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,snappingControlsElements:{...this.widget.visibleElements.snappingControlsElements,enabledToggle:t}})}visibleElementsSnappingControlsSelfEnabledToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,snappingControlsElements:{...this.widget.visibleElements.snappingControlsElements,selfEnabledToggle:t}})}visibleElementsSnappingControlsFeatureEnabledToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,snappingControlsElements:{...this.widget.visibleElements.snappingControlsElements,featureEnabledToggle:t}})}visibleElementsSnappingControlsLayerListWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,snappingControlsElements:{...this.widget.visibleElements.snappingControlsElements,layerList: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 cancelWorkflow(){await(this.widget?.cancelWorkflow())}async deleteFeatureFromWorkflow(){await(this.widget?.deleteFeatureFromWorkflow())}async startCreateFeaturesWorkflowAtFeatureCreation(t){await(this.widget?.startCreateFeaturesWorkflowAtFeatureCreation(t))}async startCreateFeaturesWorkflowAtFeatureTypeSelection(){await(this.widget?.startCreateFeaturesWorkflowAtFeatureTypeSelection())}async startUpdateWorkflowAtFeatureEdit(t){await(this.widget?.startUpdateWorkflowAtFeatureEdit(t))}async startUpdateWorkflowAtFeatureSelection(){await(this.widget?.startUpdateWorkflowAtFeatureSelection())}async startUpdateWorkflowAtMultipleFeatureSelection(t){await(this.widget?.startUpdateWorkflowAtMultipleFeatureSelection(t))}async componentDidLoad(){const t=this._createParams(),e=await a(t);this.widget=e,await this._addWatchers(),this._addContainer(),this.arcgisEditorReady.emit(),o(this)}disconnectedCallback(){r(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:t}=await n();h(this,t((()=>this.widget.activeWorkflow),(t=>this.activeWorkflow=t),{initial:!0}))}_createParams(){const t={};return t.visibleElements={createFeaturesSection:this.visibleElementsCreateFeaturesSection,editFeaturesSection:this.visibleElementsEditFeaturesSection,labelsToggle:this.visibleElementsLabelsToggle,tooltipsToggle:this.visibleElementsTooltipsToggle,snappingControls:this.visibleElementsSnappingControls,snappingControlsElements:{header:this.visibleElementsSnappingControlsHeader,enabledToggle:this.visibleElementsSnappingControlsEnabledToggle,selfEnabledToggle:this.visibleElementsSnappingControlsSelfEnabledToggle,featureEnabledToggle:this.visibleElementsSnappingControlsFeatureEnabledToggle,layerList:this.visibleElementsSnappingControlsLayerList}},this.allowedWorkflows&&(t.allowedWorkflows=this.allowedWorkflows),this.icon&&(t.icon=this.icon),this.labelOptions&&(t.labelOptions=this.labelOptions),this.layerInfos&&(t.layerInfos=this.layerInfos),this.snappingOptions&&(t.snappingOptions=this.snappingOptions),this.supportingWidgetDefaults&&(t.supportingWidgetDefaults=this.supportingWidgetDefaults),this.tooltipOptions&&(t.tooltipOptions=this.tooltipOptions),this.view&&(t.view=this.view),t}get el(){return i(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],allowedWorkflows:["allowedWorkflowsWatcher"],icon:["iconWatcher"],labelOptions:["labelOptionsWatcher"],layerInfos:["layerInfosWatcher"],snappingOptions:["snappingOptionsWatcher"],supportingWidgetDefaults:["supportingWidgetDefaultsWatcher"],tooltipOptions:["tooltipOptionsWatcher"],visibleElementsCreateFeaturesSection:["visibleElementsCreateFeaturesSectionWatcher"],visibleElementsEditFeaturesSection:["visibleElementsEditFeaturesSectionWatcher"],visibleElementsLabelsToggle:["visibleElementsLabelsToggleWatcher"],visibleElementsTooltipsToggle:["visibleElementsTooltipsToggleWatcher"],visibleElementsSnappingControls:["visibleElementsSnappingControlsWatcher"],visibleElementsSnappingControlsHeader:["visibleElementsSnappingControlsHeaderWatcher"],visibleElementsSnappingControlsEnabledToggle:["visibleElementsSnappingControlsEnabledToggleWatcher"],visibleElementsSnappingControlsSelfEnabledToggle:["visibleElementsSnappingControlsSelfEnabledToggleWatcher"],visibleElementsSnappingControlsFeatureEnabledToggle:["visibleElementsSnappingControlsFeatureEnabledToggleWatcher"],visibleElementsSnappingControlsLayerList:["visibleElementsSnappingControlsLayerListWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};p.style="";export{p as arcgis_editor}
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{r as i,c as
|
|
6
|
+
import{r as i,c as e,h as t,H as s,g as n}from"./p-e6ce333d.js";import{i as o}from"./p-ab228eed.js";const c=class{constructor(t){i(this,t),this.versionItemActionClickedEvent=e(this,"versionItemActionClickedEvent",7),this.strings=void 0,this.hasAdvEditingUte=void 0,this.isVersioningApiAvailable=void 0,this.versionInfo=void 0}render(){const{strings:{actions:i},versionInfo:e}=this,n=e.versionIdentifier.name,o=e.versionIdentifier.guid,c=`actionSwitchToVersion_${o}`;return t(s,null,t("calcite-list-item",{description:n.split(".")[0],label:n.split(".")[1],value:o},t("calcite-action",{id:c,icon:"switch",onclick:()=>{this.versionItemActionClickedEvent.emit({actionType:"changeVersion",versionInfo:e})},slot:"actions-start"}),t("calcite-tooltip",{"overlay-positioning":"fixed",referenceElement:c},t("span",null,i.switchToVersion)),t("calcite-action-menu",{"overlay-positioning":"fixed",slot:"actions-end"},t("calcite-action",{icon:"switch",onclick:()=>{this.versionItemActionClickedEvent.emit({actionType:"changeVersion",versionInfo:e})},scale:"s",text:i.switchToVersion,textEnabled:!0}),t("calcite-action",{disabled:"SDE.DEFAULT"===n.toUpperCase()||!this.hasAdvEditingUte||!this.isVersioningApiAvailable,icon:"edit-attributes",onclick:()=>{this.versionItemActionClickedEvent.emit({actionType:"editVersion",versionInfo:e})},scale:"s",text:i.editVersion,textEnabled:!0}))))}get _hostElement(){return n(this)}},a=class{constructor(t){i(this,t),this.versionItemActionClickedEventWithServiceUrl=e(this,"versionItemActionClickedEventWithServiceUrl",7),this.versionListActionClickedEvent=e(this,"versionListActionClickedEvent",7),this._watchHandles=[],this.heading=void 0,this.serviceName=void 0,this.serviceUrl=void 0,this.strings=void 0,this.userHasAdvancedEditingUserTypeExtension=void 0,this.versionInfos=void 0,this.viewModel=void 0,this.state=void 0}async componentDidLoad(){const{watch:i}=await o();this._watchHandles.push(i((()=>this.versionInfos),(i=>{this.versionInfos=i})),i((()=>this.viewModel.state),(i=>{this.state=i})))}async componentWillLoad(){this.state=this.viewModel.state}disconnectedCallback(){this._watchHandles.forEach((i=>{i.remove()})),this._watchHandles=[]}render(){const{heading:i,serviceName:e,serviceUrl:n,state:o,strings:c,versionInfos:a,viewModel:r}=this;return t(s,null,t("calcite-flow-item",{heading:i,description:e},t("calcite-panel",{loading:"executing"===o,class:"panel-versions",heading:`${c.headers.manageVersions} (${a.length})`},t("calcite-action",{id:"actionRefreshVersions",icon:"refresh",onclick:()=>{this.versionListActionClickedEvent.emit({actionType:"refreshVersions",serviceUrl:n})},slot:"header-actions-end"}),t("calcite-tooltip",{"overlay-positioning":"fixed",referenceElement:"actionRefreshVersions"},t("span",null,c.actions.refreshVersions)),t("calcite-list",{class:"version-list",filterEnabled:!0},a.map((i=>t("arcgis-version-management-version-item",{strings:c,hasAdvEditingUte:r.advancedEditingUserTypeExtensionForUrl.get(n),isVersioningApiAvailable:(r.serverVersionForUrl.get(n)??0)>=11.2,versionInfo:i,onVersionItemActionClickedEvent:i=>{this.versionItemActionClickedEventWithServiceUrl.emit({...i.detail,serviceUrl:n})}})))),t("calcite-fab",{appearance:"outline-fill",slot:"fab",textEnabled:!0,text:c.actions.newVersion,onclick:()=>{this.versionListActionClickedEvent.emit({actionType:"newVersion",serviceUrl:n})}}))))}get _hostElement(){return n(this)}};export{c as arcgis_version_management_version_item,a as arcgis_version_management_version_list}
|