@arcgis/map-components 4.30.0-next.21 → 4.30.0-next.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
- package/dist/arcgis-map-components/index.esm.js +1 -1
- package/dist/arcgis-map-components/{p-5dc7f181.entry.js → p-05cfa2f4.entry.js} +2 -2
- package/dist/arcgis-map-components/p-09b180b9.entry.js +6 -0
- package/dist/arcgis-map-components/{p-13fa022c.entry.js → p-09f4fbcc.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-ea190c73.entry.js → p-0e142181.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-633c48de.entry.js → p-1012510c.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-211d2e5f.entry.js → p-125e20a9.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-0d7a746f.entry.js → p-13689cc6.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-bafd4ecf.entry.js → p-199aaf3d.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-929196cf.entry.js → p-23888710.entry.js} +2 -2
- package/dist/arcgis-map-components/p-2809f06e.entry.js +6 -0
- package/dist/arcgis-map-components/p-2ae4e4de.js +7 -0
- package/dist/arcgis-map-components/{p-ea2d5c4a.entry.js → p-2cee6324.entry.js} +2 -2
- package/dist/arcgis-map-components/p-2e3f20ee.entry.js +6 -0
- package/dist/arcgis-map-components/{p-f283827d.entry.js → p-3a779522.entry.js} +2 -2
- package/dist/arcgis-map-components/p-3c13f0de.entry.js +6 -0
- package/dist/arcgis-map-components/{p-631a37e4.entry.js → p-48af7e4d.entry.js} +2 -2
- package/dist/arcgis-map-components/p-490809b8.js +6 -0
- package/dist/arcgis-map-components/{p-0e3216f6.entry.js → p-4a98651e.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-e66e3e69.entry.js → p-4d835ecf.entry.js} +2 -2
- package/dist/arcgis-map-components/p-54af84f6.js +6 -0
- package/dist/arcgis-map-components/{p-5de52af0.entry.js → p-5600cac0.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-b70132ff.entry.js → p-59d5dedf.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-ebb42af3.entry.js → p-5c783cce.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-ece0167d.entry.js → p-5f316fb4.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-ca0231ca.entry.js → p-609df4e3.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-92ef707b.entry.js → p-66182981.entry.js} +2 -2
- package/dist/arcgis-map-components/p-6bc7f743.entry.js +6 -0
- package/dist/arcgis-map-components/p-73130f85.js +6 -0
- package/dist/arcgis-map-components/p-74231934.entry.js +6 -0
- package/dist/arcgis-map-components/{p-2d2f3c3e.entry.js → p-7b993429.entry.js} +2 -2
- package/dist/arcgis-map-components/p-7c41bdd1.entry.js +6 -0
- package/dist/arcgis-map-components/{p-35ba629e.entry.js → p-851b21a1.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-5acdb798.entry.js → p-8768f131.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-b6c12de1.entry.js → p-8b20857d.entry.js} +2 -2
- package/dist/arcgis-map-components/p-8eb23360.entry.js +6 -0
- package/dist/arcgis-map-components/{p-e40a4839.entry.js → p-90199d2b.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-5cfe1adf.entry.js → p-93202786.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-57bce1ad.entry.js → p-99f7bfbc.entry.js} +2 -2
- package/dist/arcgis-map-components/p-9c373532.js +6 -0
- package/dist/arcgis-map-components/p-9eebb597.entry.js +6 -0
- package/dist/arcgis-map-components/{p-a4a72fec.entry.js → p-9f0e7931.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-7b09951b.entry.js → p-9f18479f.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-38b8c927.js → p-9fe2ce6f.js} +1 -1
- package/dist/arcgis-map-components/{p-04b1e6ed.entry.js → p-a6445085.entry.js} +2 -2
- package/dist/arcgis-map-components/p-a7923d75.entry.js +6 -0
- package/dist/arcgis-map-components/{p-31600bc5.entry.js → p-b09c8f40.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-a21fd128.entry.js → p-b31c56b0.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-b14b3391.entry.js → p-b33cfb3c.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-8d2601e0.entry.js → p-b40cbef1.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-f761c93e.entry.js → p-bbd09ae0.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-e5dbf054.entry.js → p-bd5adaa6.entry.js} +2 -2
- package/dist/arcgis-map-components/p-c3ecd26e.entry.js +6 -0
- package/dist/arcgis-map-components/{p-7f09b6de.entry.js → p-c47dbd7e.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-a5bd94c4.entry.js → p-c7417441.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-57bb86e7.entry.js → p-c8a5af5a.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-9aa14e81.entry.js → p-c8d8a752.entry.js} +2 -2
- package/dist/arcgis-map-components/p-cd677bae.js +6 -0
- package/dist/arcgis-map-components/{p-b69f62b2.entry.js → p-cf416dc2.entry.js} +2 -2
- package/dist/arcgis-map-components/p-cfe33f3d.entry.js +6 -0
- package/dist/arcgis-map-components/{p-d3eb465f.entry.js → p-da764564.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-80d25ec9.entry.js → p-e0d1617d.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-0fdb64b7.entry.js → p-ed971e5f.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-6192df14.entry.js → p-f1104e13.entry.js} +2 -2
- package/dist/arcgis-map-components/{p-dd091d80.entry.js → p-fe66e3fe.entry.js} +2 -2
- package/dist/cjs/Accessor-YDTURKZ7-8dc3b261.js +1249 -0
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-attachments.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-basemap-gallery_2.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-compass.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-daylight.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-directional-pad.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-directions.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-editor.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-expand.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-feature-form.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-feature.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-features.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-histogram.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-home.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-legend.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-locate.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-map-components.cjs.js +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 -5
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-scene.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-search.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-sketch.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-slice.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-slider.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-swipe.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-table-list.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-track.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +14 -5
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +14 -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 +1296 -20
- package/dist/cjs/arcgis-weather.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-zoom.cjs.entry.js +5 -5
- package/dist/cjs/chunk-OMA4PI5N-ceabd589.js +1286 -0
- package/dist/cjs/{component-utils-c9c9afae.js → component-utils-4a21f6d4.js} +13 -11
- package/dist/cjs/decorators-443AWDOE-daca0999.js +120 -0
- package/dist/cjs/{disconnected-fdd4caf6.js → disconnected-27b84f9c.js} +1 -1
- package/dist/cjs/{index-f15daae9.js → index-b4a52ed1.js} +40 -5
- package/dist/cjs/index-d5cf3897.js +761 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/components/Accessor-YDTURKZ7.js +1247 -0
- package/dist/components/arcgis-area-measurement-2d.js +1 -1
- package/dist/components/arcgis-area-measurement-3d.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-attachments.js +1 -1
- package/dist/components/arcgis-basemap-gallery.js +1 -1
- package/dist/components/arcgis-basemap-layer-list.js +1 -1
- package/dist/components/arcgis-basemap-toggle.js +1 -1
- package/dist/components/arcgis-bookmarks.js +1 -1
- package/dist/components/arcgis-building-explorer.js +1 -1
- package/dist/components/arcgis-compass.js +1 -1
- package/dist/components/arcgis-coordinate-conversion.js +1 -1
- package/dist/components/arcgis-daylight.js +1 -1
- package/dist/components/arcgis-directional-pad.js +1 -1
- package/dist/components/arcgis-directions.js +1 -1
- package/dist/components/arcgis-directline-measurement-3d.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d.js +1 -1
- package/dist/components/arcgis-editor.js +1 -1
- package/dist/components/arcgis-elevation-profile.js +1 -1
- package/dist/components/arcgis-expand.js +1 -1
- package/dist/components/arcgis-feature-form.js +1 -1
- package/dist/components/arcgis-feature-table.js +1 -1
- package/dist/components/arcgis-feature-templates.js +1 -1
- package/dist/components/arcgis-feature.js +1 -1
- package/dist/components/arcgis-features.js +1 -1
- package/dist/components/arcgis-floor-filter.js +1 -1
- package/dist/components/arcgis-fullscreen.js +1 -1
- package/dist/components/arcgis-histogram-range-slider.js +1 -1
- package/dist/components/arcgis-histogram.js +1 -1
- package/dist/components/arcgis-home.js +1 -1
- package/dist/components/arcgis-layer-list.js +1 -1
- package/dist/components/arcgis-legend.js +1 -1
- package/dist/components/arcgis-line-of-sight.js +1 -1
- package/dist/components/arcgis-locate.js +1 -1
- package/dist/components/arcgis-map.js +1 -1
- package/dist/components/arcgis-measurement.js +1 -1
- package/dist/components/arcgis-navigation-toggle.js +1 -1
- package/dist/components/arcgis-placement.js +1 -1
- package/dist/components/arcgis-print.js +1 -1
- package/dist/components/arcgis-scale-bar.js +1 -1
- package/dist/components/arcgis-scale-range-slider.js +1 -1
- package/dist/components/arcgis-scene.js +1 -1
- package/dist/components/arcgis-search.js +1 -1
- package/dist/components/arcgis-shadow-cast.js +1 -1
- package/dist/components/arcgis-sketch.js +1 -1
- package/dist/components/arcgis-slice.js +1 -1
- package/dist/components/arcgis-slider.js +1 -1
- package/dist/components/arcgis-swipe.js +1 -1
- package/dist/components/arcgis-table-list.js +1 -1
- package/dist/components/arcgis-time-slider.js +1 -1
- package/dist/components/arcgis-track.js +1 -1
- package/dist/components/arcgis-utility-network-associations.js +10 -1
- package/dist/components/arcgis-utility-network-trace.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology.js +10 -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 +1298 -24
- package/dist/components/arcgis-weather.js +1 -1
- package/dist/components/arcgis-zoom.js +1 -1
- package/dist/components/chunk-OMA4PI5N.js +1257 -0
- package/dist/components/component-utils.js +13 -11
- package/dist/components/decorators-443AWDOE.js +109 -0
- package/dist/components/disconnected.js +1 -1
- package/dist/components/expand.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +429 -428
- package/dist/components/version-management-service-item.js +1 -1
- package/dist/components/version-management-version-item.js +1 -1
- package/dist/components/version-management-version-list.js +1 -1
- package/dist/components/version-management-version-properties.js +1 -1
- package/dist/esm/Accessor-YDTURKZ7-976529f2.js +1247 -0
- package/dist/esm/arcgis-area-measurement-2d.entry.js +5 -5
- package/dist/esm/arcgis-area-measurement-3d.entry.js +5 -5
- package/dist/esm/arcgis-attachments.entry.js +5 -5
- package/dist/esm/arcgis-basemap-gallery_2.entry.js +5 -5
- package/dist/esm/arcgis-basemap-layer-list.entry.js +5 -5
- package/dist/esm/arcgis-basemap-toggle.entry.js +5 -5
- package/dist/esm/arcgis-bookmarks.entry.js +5 -5
- package/dist/esm/arcgis-building-explorer.entry.js +5 -5
- package/dist/esm/arcgis-compass.entry.js +5 -5
- package/dist/esm/arcgis-coordinate-conversion.entry.js +5 -5
- package/dist/esm/arcgis-daylight.entry.js +5 -5
- package/dist/esm/arcgis-directional-pad.entry.js +5 -5
- package/dist/esm/arcgis-directions.entry.js +5 -5
- package/dist/esm/arcgis-directline-measurement-3d.entry.js +5 -5
- package/dist/esm/arcgis-distance-measurement-2d.entry.js +5 -5
- package/dist/esm/arcgis-editor.entry.js +5 -5
- package/dist/esm/arcgis-elevation-profile.entry.js +5 -5
- package/dist/esm/arcgis-expand.entry.js +5 -5
- package/dist/esm/arcgis-feature-form.entry.js +5 -5
- package/dist/esm/arcgis-feature-table.entry.js +5 -5
- package/dist/esm/arcgis-feature-templates.entry.js +5 -5
- package/dist/esm/arcgis-feature.entry.js +5 -5
- package/dist/esm/arcgis-features.entry.js +5 -5
- package/dist/esm/arcgis-floor-filter.entry.js +5 -5
- package/dist/esm/arcgis-fullscreen.entry.js +5 -5
- package/dist/esm/arcgis-histogram-range-slider.entry.js +5 -5
- package/dist/esm/arcgis-histogram.entry.js +4 -4
- package/dist/esm/arcgis-home.entry.js +5 -5
- package/dist/esm/arcgis-layer-list.entry.js +5 -5
- package/dist/esm/arcgis-legend.entry.js +5 -5
- package/dist/esm/arcgis-line-of-sight.entry.js +5 -5
- package/dist/esm/arcgis-locate.entry.js +5 -5
- package/dist/esm/arcgis-map-components.js +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 -5
- package/dist/esm/arcgis-scale-bar.entry.js +5 -5
- package/dist/esm/arcgis-scale-range-slider.entry.js +5 -5
- package/dist/esm/arcgis-scene.entry.js +4 -4
- package/dist/esm/arcgis-search.entry.js +5 -5
- package/dist/esm/arcgis-shadow-cast.entry.js +5 -5
- package/dist/esm/arcgis-sketch.entry.js +5 -5
- package/dist/esm/arcgis-slice.entry.js +5 -5
- package/dist/esm/arcgis-slider.entry.js +5 -5
- package/dist/esm/arcgis-swipe.entry.js +5 -5
- package/dist/esm/arcgis-table-list.entry.js +5 -5
- package/dist/esm/arcgis-time-slider.entry.js +5 -5
- package/dist/esm/arcgis-track.entry.js +5 -5
- package/dist/esm/arcgis-utility-network-associations.entry.js +14 -5
- package/dist/esm/arcgis-utility-network-trace.entry.js +5 -5
- package/dist/esm/arcgis-utility-network-validate-topology.entry.js +14 -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 +1298 -22
- package/dist/esm/arcgis-weather.entry.js +5 -5
- package/dist/esm/arcgis-zoom.entry.js +5 -5
- package/dist/esm/chunk-OMA4PI5N-21a62e6a.js +1257 -0
- package/dist/esm/{component-utils-680656ca.js → component-utils-41fd0df4.js} +13 -11
- package/dist/esm/decorators-443AWDOE-9e6fca69.js +109 -0
- package/dist/esm/{disconnected-5fe3e50d.js → disconnected-8526b2b4.js} +1 -1
- package/dist/esm/{index-15c07606.js → index-101d113a.js} +40 -6
- package/dist/esm/index-d19731a3.js +679 -0
- 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/utility-network-associations/utility-network-associations.d.ts +1 -0
- package/dist/types/components/utility-network-validate-topology/utility-network-validate-topology.d.ts +1 -0
- package/dist/types/components/version-management/version-management.d.ts +7 -4
- package/dist/types/components.d.ts +2 -0
- package/dist/types/controllers/useViewModel.d.ts +68 -0
- package/dist/types/controllers/useWidget.d.ts +60 -0
- package/dist/types/utils/component-utils.d.ts +14 -4
- package/dist/types/utils/expandable.d.ts +2 -2
- package/package.json +11 -11
- package/dist/arcgis-map-components/p-09f54967.entry.js +0 -6
- package/dist/arcgis-map-components/p-0e5cac2d.entry.js +0 -6
- package/dist/arcgis-map-components/p-25dfa1c7.js +0 -6
- package/dist/arcgis-map-components/p-271ccda7.entry.js +0 -6
- package/dist/arcgis-map-components/p-365e98b4.entry.js +0 -6
- package/dist/arcgis-map-components/p-57788f39.js +0 -7
- package/dist/arcgis-map-components/p-5dddda52.entry.js +0 -6
- package/dist/arcgis-map-components/p-76574769.entry.js +0 -6
- package/dist/arcgis-map-components/p-774acaff.js +0 -6
- package/dist/arcgis-map-components/p-79b7008c.entry.js +0 -6
- package/dist/arcgis-map-components/p-9e97ba89.entry.js +0 -6
- package/dist/arcgis-map-components/p-bf48a1bf.entry.js +0 -6
- package/dist/arcgis-map-components/p-c1ec761d.entry.js +0 -6
- package/dist/arcgis-map-components/p-d4a6ab2f.entry.js +0 -6
- package/dist/arcgis-map-components/p-e5919747.entry.js +0 -6
- package/dist/cjs/index-1cafb9a8.js +0 -760
- package/dist/esm/index-158201ab.js +0 -678
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/map-components/.stencil/stencil.config.d.ts +0 -2
- package/dist/types/utils/SubWidget.d.ts +0 -22
- package/dist/types/utils/Widget.d.ts +0 -38
|
@@ -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.23
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as s,g as
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-2ae4e4de.js";import{r as h,i as a}from"./p-490809b8.js";import{r,c as n,a as c}from"./p-54af84f6.js";import{o}from"./p-9fe2ce6f.js";const d=class{constructor(s){t(this,s),this.arcgisDirectLineMeasurement3dReady=i(this,"arcgisDirectLineMeasurement3dReady",7),this.arcgisPropertyChange=i(this,"arcgisPropertyChange",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(),n(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();c(this,t((()=>this.widget.analysis),(t=>{this.analysis=t,this.arcgisPropertyChange.emit({name:"analysis"})}),{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}
|
|
@@ -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.23
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as s,h as i,g as e}from"./p-
|
|
6
|
+
import{r as t,c as s,h as i,g as e}from"./p-2ae4e4de.js";import{N as r}from"./p-490809b8.js";import{r as h,c as a}from"./p-54af84f6.js";import{o as c}from"./p-9fe2ce6f.js";const o=class{constructor(i){t(this,i),this.arcgisScaleBarReady=s(this,"arcgisScaleBarReady",7),this._watchHandles=[],this.referenceElement=void 0,this.barStyle="line",this.unit=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){h(this,t)}styleWatcher(t){this.widget&&(this.widget.style=t)}unitWatcher(t){this.widget&&(this.widget.unit=t)}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),s=await r(t);this.widget=s,this._addContainer(),this.arcgisScaleBarReady.emit(),a(this)}disconnectedCallback(){c(this)}render(){return i("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}_createParams(){const t={};return this.unit&&(t.unit=this.unit),this.barStyle&&(t.style=this.barStyle),this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],barStyle:["styleWatcher"],unit:["unitWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};o.style="arcgis-scale-bar{}";export{o as arcgis_scale_bar}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.23
|
|
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-2ae4e4de.js";import{l as h,i as o}from"./p-490809b8.js";import{r as n,c as a,a as r}from"./p-54af84f6.js";import{o as c}from"./p-9fe2ce6f.js";const l=class{constructor(s){t(this,s),this.arcgisCoordinateConversionReady=i(this,"arcgisCoordinateConversionReady",7),this.arcgisPropertyChange=i(this,"arcgisPropertyChange",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,this.arcgisPropertyChange.emit({name:"currentLocation"})}),{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}
|
|
@@ -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.23
|
|
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-2ae4e4de.js";import{a2 as a,i as e}from"./p-490809b8.js";import{c as o,a as r}from"./p-54af84f6.js";import{o as c}from"./p-9fe2ce6f.js";const n=class{constructor(s){i(this,s),this.arcgisValuePickerReady=t(this,"arcgisValuePickerReady",7),this.arcgisPropertyChange=t(this,"arcgisPropertyChange",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(){c(this)}render(){return s("div",{ref:i=>this.childElem=i})}async _addWatchers(){const{watch:i}=await e();r(this,i((()=>this.widget.canNext),(i=>this.canNext=i),{initial:!0})),r(this,i((()=>this.widget.canPlay),(i=>this.canPlay=i),{initial:!0})),r(this,i((()=>this.widget.canPrevious),(i=>this.canPrevious=i),{initial:!0})),r(this,i((()=>this.widget.values),(i=>{this.values=i,this.arcgisPropertyChange.emit({name:"values"})}),{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}
|
|
@@ -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.23
|
|
5
|
+
*/
|
|
6
|
+
import{a as t,f as e,r as i,h as s,H as o,g as n}from"./p-2ae4e4de.js";import{i as r,a3 as a}from"./p-490809b8.js";var c=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}};var h={};var l=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"]),d="en";async function u(t,e,i=""){let s=`${e}/${i}`,o=`${s}${t}.json`;return p[o]??(p[o]=f(t,s)),await p[o]}var p={};async function f(t,e){let i=`${e}${t}.json`;try{let t=await fetch(i);if(t.ok)return await t.json()}catch(t){return console.error(t),v}return t===d?v:await f(d,e)}var v=new Proxy({},{get:(t,e)=>(t=>(t=>t.charAt(0).toUpperCase()+t.slice(1))(t.replaceAll(/([a-z])([A-Z])/gu,"$1 $2")))(e.toString())});function w(t){let e=function(t,e,i){return function(t,e){let i=t;for(;i;){let t=i.closest(e);if(t)return t;let s=i.getRootNode();if(s===document)return null;i=s.host}return null}(t,`[${e}]`)?.getAttribute(e)??i}(t,"lang",navigator.language||d);if(l.has(e))return{lang:e,t9nLocale:e};let i=e.slice(0,2);return{lang:e,t9nLocale:l.has(i)?i:d}}function y(t,e,i,s){let o,n=()=>{(async function(t,e,i=t.tagName.toLowerCase().replace("arcgis-","")){let{lang:s,t9nLocale:o}=w(t),n=`${e}/${i}/t9n`,r=`${i}.t9n.`;return{lang:s,t9nLocale:o,t9nStrings:await u(o,n,r)}})(t,e,s).then((t=>{(o?.lang!==t.lang||o.t9nLocale!==t.t9nLocale||o.t9nStrings!==t.t9nStrings)&&i(t),o=t})).catch(console.error)};return n(),function(t,e,i){let{subscribe:s}=function(t){let e=t.join(","),i=h[e];if(void 0!==i)return i;let s=new Set,o=new MutationObserver((t=>s.forEach((e=>e(t)))));o.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let n={subscribe:t=>(s.add(t),{remove:()=>{s.delete(t),0===s.size&&(o.disconnect(),h[e]=void 0)}})};return h[e]=n,n}(e);return s((e=>{e.some((e=>function(t,e){let i=t;for(;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1}(t,e.target)))&&i()}))}(t,["lang"],n)}var g=Symbol("controller");function m(t){try{return t?.()}catch(e){console.error(e,t)}}async function b(t){try{return await t()}catch(e){console.error(e,t)}}var C,k=["The value you passed is not a controller and not a controller exports. If ","your controller exports a literal value, try making your controller export ","an object instead"].join(""),S=(63,t=>Object.entries(t.manager.internals.meta.t??{}).filter((([t,[e]])=>0!=(63&e))).map((([t])=>t))),L=(t,e)=>t.manager.internals.meta.t?.[e]?.[0],U="dynamicWatcherCallback",x=class t{constructor(e){this._ready=new c,this._lifecycleDisconnected=[],this.connectedCalled=!1,this.willLoadCalled=!1,this.didLoadCalled=!1,this[C]=!0,this.ready=this._ready.promise,this._exports=E(this),this._exportWatchers=new Set;const i=function(t){if("addController"in t)return t;throw new Error("Component does not implement ControllerHost. This might be because you forgot to add 'manager: Controller<this> = useControllerManager(this);' in your component, or you tried to use some controller before that line")}(e??t.internals.retriveComponent(new.target.name));Object.defineProperty(this,"component",{writable:!1,enumerable:!1,configurable:!0,value:i}),this.component.addController(this);const s=this.component.manager;this.connected=s?.connected,this.internals=s?.internals,t.internals.setParentController(this),"hostDestroy"in this&&this.component.manager.ensureHasDestroy(),void 0!==s&&queueMicrotask((()=>this.catchUpLifecycle()));const o=this;this._callbacks={hostConnected:"hostConnected"in this?[()=>o.hostConnected?.()]:[],hostDisconnected:"hostDisconnected"in this?[()=>o.hostDisconnected?.()]:[],hostLoad:"hostLoad"in this?[()=>o.hostLoad?.()]:[],hostLoaded:"hostLoaded"in this?[()=>o.hostLoaded?.()]:[],hostRender:"hostRender"in this?[()=>o.hostRender?.()]:[],hostRendered:"hostRendered"in this?[()=>o.hostRendered?.()]:[],hostUpdate:"hostUpdate"in this?[()=>o.hostUpdate?.()]:[],hostUpdated:"hostUpdated"in this?[()=>o.hostUpdated?.()]:[],hostDestroy:"hostDestroy"in this?[()=>o.hostDestroy?.()]:[],hostLifecycle:"hostLifecycle"in this?[()=>o.hostLifecycle?.()]:[]}}catchUpLifecycle(){this.connectedCalled||(this.triggerConnected(),this.triggerLoad().then((()=>this.triggerLoaded())).catch(console.error))}get exports(){return this._exports}set exports(t){this._exports!==t&&(this._exports=t,this.connectedCalled&&this.component.requestUpdate(),this._exportWatchers.forEach((e=>e(t)))),this._ready.resolve(t)}setProvisionalExports(t){this._exports=E(t),this._exportWatchers.forEach((t=>t(this._exports)))}watchExports(t){const e=e=>m((()=>t(e)));return this._exportWatchers.add(e),()=>{this._exportWatchers.delete(e)}}get use(){return t.internals.setAmbientComponent(this.component),t.internals.use}get useRef(){return t.internals.setAmbientComponent(this.component),t.internals.useRef}bypassSetter(e){t.internals.shouldBypassSetter=!0;const i=m(e);return t.internals.shouldBypassSetter=!1,i}dynamicGetSet(t,e){this.genericGetSet(t,e)}genericGetSet(t,e){var i,s;const o=Object.getPrototypeOf(this.component);this.internals.getSetProxy(o,t,e,"class");const n=Object.getPrototypeOf(this.component.el);o!==n&&this.internals.getSetProxy(n,t,e,"html");const r=e;void 0!==r.get&&((i=this.internals.getters)[t]??(i[t]=[]),"last"===e.order?this.internals.getters[t].splice(-1,0,r.get):this.internals.getters[t].unshift(r.get)),void 0!==r.set&&((s=this.internals.setters)[t]??(s[t]=[]),"last"===e.order?this.internals.setters[t].splice(-1,0,r.set):this.internals.setters[t].unshift(r.set))}watch(t,e){var i;if(void 0===L(this.component,t))throw new Error(`Trying to watch a non-@Prop, non-@State property "${t}". Either convert it into a @State() or use manager.getSet/dynamicGetSet`);!function(t,e){const i=t.manager.internals.meta;i.i??(i.i={});const s=i.i;e in s||(s[e]=[]),s[e].includes(U)||s[e].push(U)}(this.component,t),(i=this.internals.watchers)[t]??(i[t]=[]);const s=this.internals.watchers[t],o=e,n=(t,e,i)=>m((()=>o(t,e,i)));return s.push(n),()=>{const t=s.indexOf(n);-1!==t&&s.splice(t,1)}}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onRender(t){this._callbacks.hostRender.push(t)}onRendered(t){this._callbacks.hostRendered.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this.component.manager.ensureHasDestroy(),this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){this._callbacks.hostConnected.forEach(m),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){this._callbacks.hostDisconnected.forEach(m),this._lifecycleDisconnected.forEach(m),this._lifecycleDisconnected=[]}async triggerLoad(){this.willLoadCalled||(this.willLoadCalled=!0,this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(b)),this._ready.resolve(this._exports))}triggerLoaded(){this.didLoadCalled||(this._callbacks.hostLoaded.forEach(m),this.didLoadCalled=!0)}async triggerRender(){this._callbacks.hostRender.length>0&&await Promise.allSettled(this._callbacks.hostRender.map(b))}triggerRendered(){this._callbacks.hostRendered.forEach(m)}async triggerUpdate(){this._callbacks.hostUpdate.length>0&&await Promise.allSettled(this._callbacks.hostUpdate.map(b))}triggerUpdated(){this._callbacks.hostUpdated.forEach(m)}triggerDestroy(){this._callbacks.hostDestroy.forEach(m)}triggerLifecycle(){this._callbacks.hostLifecycle.forEach((t=>this._callLifecycle(t)))}_callLifecycle(t){const e=m(t);(Array.isArray(e)?e:[e]).forEach((t=>{"function"==typeof t?this._lifecycleDisconnected.push(t):"object"==typeof t&&"function"==typeof t.remove&&this._lifecycleDisconnected.push(t.remove)}))}};C=g,x.internals=new class{constructor(){this._ambientControllers=[],this.use=async(t,e)=>{const i=this._useRefSync(t);if(void 0===i){if("function"==typeof e){const t=new Error(`Unable to resolve a controller from the provided value, so can't watch it's exports. ${k}`);console.error(t)}return t}if(await i.ready,"function"==typeof e){if(void 0===i.watchExports)throw new Error("The controller must implement watchExports method to support watching exports");const t=i.watchExports((i=>e(i,t)))}return i.exports},this.useRef=async t=>{const e=this._useRefSync(t);if(void 0===e)throw new Error(`Unable to resolve a controller from the provided value. ${k}`);return await e.ready,e},this.shouldBypassSetter=!1,this.elementToInstance=new WeakMap}setAmbientComponent(t){this._ambientComponent!==t&&(this._ambientComponent=t,queueMicrotask((()=>{this._ambientComponent===t&&(this._ambientComponent=void 0)})))}retriveComponent(t){if(void 0===this._ambientComponent)throw new Error([`Unable to find out which component ${t||"this"} controller `,"belongs to. This might happen if you tried to create a controller ","outside the component. If so, please wrap your controller ","definition in an arrow function, ","`const myController = ()=>makeController(...);` and call that","function inside the component `my = myController();`, or ","define your controller using makeGenericController/GenericController ","instead.\n","If you wish to use a controller inside an async controller, ","make sure you are using controller.use.\n","You might also have multiple instances of Controllers loaded"].join("\n"));return this._ambientComponent}setParentController(t){if(void 0===t)return void(this._ambientControllers=[]);const e=this._ambientControllers.indexOf(t);this._ambientControllers=-1===e?[...this._ambientControllers,t]:this._ambientControllers.slice(0,e+1),queueMicrotask((()=>{this._ambientControllers=[]}))}retriveParentControllers(){return this._ambientControllers}setAmbientChildController(t){this._ambientChildController!==t&&(this._ambientChildController=t,queueMicrotask((()=>{this._ambientChildController===t&&(this._ambientChildController=void 0)})))}retriveAmbientChildController(){const t=this._ambientChildController;return this._ambientChildController=void 0,t}_useRefSync(t){const e=this.retriveAmbientChildController();if(void 0!==e)return e;const i=$.internals.retriveComponent().manager.internals.resolveExports(t);return void 0!==i?i:(t=>"object"==typeof t&&null!==t&&(g in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t)?t:void 0}};var $=x,j=class extends ${constructor(t){super(t)}watch(t,e){return super.watch(t,e)}dynamicGetSet(t,e){super.genericGetSet(t,e)}};function E(t){if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const e=new Proxy(t,{get(t,i,s){if(!_.has(i)||!(i in t)||t[i]!==e)return i in t||D.has(i)||"symbol"==typeof i?"function"==typeof t?t[i]:Reflect.get(t,i,s):void console.error(`Trying to access "${i.toString()}" on the controller before it's loaded. ${P}`)},set:(t,e,i,s)=>(console.error(`Trying to set "${e.toString()}" on the controller before it's loaded. ${P}`),Reflect.set(t,e,i,s))});return e}var D=new Set(["then","catch","finally"]),_=new Set(["exports","_exports"]),P=["This might be the case if you are trying to access an async controller in ","connectedCallback(). Or, if you are using it inside of ","componentWillLoad()/another controller without controller.use. Example correct ","usage:\n","makeController(async (component, controller)=>{ await controller.use(someOtherController); });"].join("");function O(t,e,i){const s=Object.keys(t),o=s.length;void 0===R&&queueMicrotask(M),R??(R=new Map);let n=R.get(t);return void 0===n&&(n={callbacks:[],keyCount:o},R.set(t,n)),n.keyCount!==o&&(n.callbacks.forEach((t=>t(s))),n.callbacks=[],n.keyCount=o),n.callbacks.push((s=>{const n=s[o];e(void 0===n?void 0:t[n]===i?n:void 0)})),i}var R=void 0;function M(){Array.from(R?.entries()??[]).forEach((([t,{callbacks:e}])=>{const i=Object.keys(t);e.forEach((t=>t(i)))})),R=void 0}var A=class{constructor(t){this.trackKey=(t,e,i)=>{const s=Array.isArray(t)?t:[t];let o=s.length+1;const n=t=>{o-=1,void 0!==t&&(o=0),0===o&&e(t)};return s.forEach((t=>this.component.manager.trackPropertyKey(t,(e=>n(void 0===e?void 0:{key:e,host:t,type:"property",domValue:void 0})),i))),this.component.manager.trackPropKey(((t,e)=>{const i=void 0===t?void 0:function(t,e){const i=L(t,e);return void 0===i?void 0:32&i?"state":"prop"}(this.component,t);n(void 0===t?void 0:{key:t,host:this.component,type:i??"prop",domValue:"prop"===i?e:void 0})}),i),i},this.trackPropKey=(t,e)=>(this._trackedValue!==W&&this._trackedValue!==e&&this._firePropertyTrackers(void 0,void 0,void 0),0===this._keyTrackers.length&&queueMicrotask((()=>this._firePropertyTrackers(void 0,void 0,void 0))),this._trackedValue=e,this._keyTrackers.push(((i,s,o)=>t(e===s?i:void 0,o))),e),this._trackedValue=W,this._keyTrackers=[],this.getters={},this.setters={},this._exports=new WeakMap,Object.defineProperty(this,"component",{writable:!1,enumerable:!1,configurable:!0,value:t})}_firePropertyTrackers(t,e,i){const s=this._keyTrackers;this._trackedValue=W,this._keyTrackers=[],s.forEach((s=>s(t,e,i)))}getSetProxy(t,e,{get:i,set:s},o){const n=this.component,r=L(n,e),a=Object.getOwnPropertyDescriptor(t,e),c="html"===o;if(void 0===a?.set||void 0===a.get){if(void 0!==a&&"value"in a)throw new Error(`getSet() should only be used on Stencil's @Prop and @State properties. For internal component properties, use regular get/set syntax. Tried to use it on "${e}" in ${n.el.tagName}`);if(c)return;throw new Error(`Unable to find "${e}" property on the ${n.el.tagName} component`)}const{get:h,set:l}=a,d=!(T in h)&&"function"==typeof i,u=!(T in l)&&"function"==typeof s;if(!d&&!u)return;const p=d?function(){let t=h.call(this);const i=$.internals.elementToInstance.get(this),s=i?.manager.internals.getters[e]??[];for(let i=0;i<s.length;i++)t=s[i](t,e);return t}:h,f=u?function(t){if($.internals.shouldBypassSetter)return void l.call(this,t);const i=h.call(this);let s=function(t,e=0){return null==t||"number"!=typeof e?t:0!=(4&e)?"false"!==t&&(""===t||!!t):0!=(2&e)?Number.parseFloat(t.toString()):0!=(1&e)?String(t):t}(t,r);const o=$.internals.elementToInstance.get(this),n=o?.manager.internals;if(s===i)l.call(this,t);else{const t=n?.setters[e]??[];for(let o=0;o<t.length;o++)s=t[o](s,i,e);l.call(this,s)}(n?._keyTrackers.length??0)>0&&n?._firePropertyTrackers(e,t,i)}:l;d&&Object.defineProperty(p,T,{value:!0}),u&&Object.defineProperty(f,T,{value:!0}),Object.defineProperty(t,e,{...a,get:p,set:f})}markExports(t,e){("object"==typeof e&&null!==e||"function"==typeof e)&&this._exports.set(e,t)}resolveExports(t){return"object"==typeof t&&null!==t||"function"==typeof t?this._exports.get(t):void 0}},T=Symbol("controllersCustomAccessor"),W=Symbol("nothing"),V="undefined"!=typeof window&&"$arcgis"in window&&"object"==typeof window.$arcgis&&"import"in window.$arcgis;function I(t){return void 0!==t.default}var q,G=Promise.all([async function(){if(V)return await window.$arcgis.import("esri/core/Accessor");const t=await import("./p-9c373532.js");return I(t)?t.default:t}(),async function(){if(V)return await window.$arcgis.import("esri/core/accessorSupport/decorators");const t=await import("./p-73130f85.js");return I(t)?t.default:t}()]),N=class extends j{constructor(t){const i=new Set,s={};var o;o=t,Object.entries({addController:t=>{i.add(t)},[U]:(t,e,i)=>{s[i]?.forEach((s=>s(t,e,i)))},removeController:t=>{i.delete(t)},requestUpdate:()=>e(t)}).forEach((([t,e])=>{if(t in o)throw new Error(`Unable to extend object because property "${t}" is already defined`);o[t]=e})),super(t),this._connected=new c,this.internals=new A(this.component),this.connected=this._connected.promise,this.hasDestroy=!1,this.destroyed=!1,this._updatePromise=new c,this._originalLifecycles={},this.trackPropertyKey=O,this.trackPropKey=this.internals.trackPropKey,this.trackKey=this.internals.trackKey,this.component.manager=this,function(t){const e=t.constructor,i=e.__registerControllers?.(t)?.o??void 0;if(e.__registerControllers=void 0,"object"!=typeof i)throw new Error("Failed to retrive internal component meta. Make sure you have the useComponentsControllers() Rollup Plugin for Stencil Controllers configured in your Stencil config.");t.manager.internals.meta=i}(t),this._controllers=i,this.internals.watchers=s,this.exports=void 0,this.hasDestroy="preserveOnDisconnect"in this.component&&"function"==typeof this.component.destroy,this.hasDestroy&&this.watch("preserveOnDisconnect",(()=>this._preserveOnDisconnectWatcher())),this._bindLifecycleMethods(),Object.defineProperty(t,"updateComplete",{get:async()=>await this._updatePromise.promise}),this.component.addController(this),this._accessorIntegrationReady=async function(t){let e;const i={get:(t,i)=>{const s=e?.[i];return t??s},set:(t,i,s)=>(void 0!==e&&(e[s]=t),t)},s=S(t);s.forEach((e=>t.manager.genericGetSet(e,i)));const[o,{subclass:n,property:r}]=await G;return()=>{class i extends o{}s.forEach((e=>r({value:t[e]})(i.prototype,e)));const a=n(t.el.tagName)(i);e=new a}}(this.component),$.internals.setParentController(void 0),$.internals.setAmbientComponent(t),$.internals.elementToInstance.set(t.el,t),$.internals.elementToInstance.set(t,t)}_bindLifecycleMethods(){const t=this.component;this._originalLifecycles={connectedCallback:t.connectedCallback,disconnectedCallback:t.disconnectedCallback,componentWillLoad:t.componentWillLoad,componentDidLoad:t.componentDidLoad,componentWillRender:t.componentWillRender,componentDidRender:t.componentDidRender,componentWillUpdate:t.componentWillUpdate,componentDidUpdate:t.componentDidUpdate,destroy:t.destroy},t.connectedCallback=this._connectedCallback.bind(this),t.disconnectedCallback=this._disconnectedCallback.bind(this),t.componentWillLoad=this._componentWillLoad.bind(this),t.componentDidLoad=this._componentDidLoad.bind(this),t.componentWillRender=this._componentWillRender.bind(this),t.componentDidRender=this._componentDidRender.bind(this),t.componentWillUpdate=this._componentWillUpdate.bind(this),t.componentDidUpdate=this._componentDidUpdate.bind(this),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}ensureHasDestroy(){if(!this.hasDestroy)throw new Error(F)}_connectedCallback(){if(this.destroyed){const t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It can not be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the preserveOnDisconnect prop.`)}M(),this._connected.resolve(),this._controllers.forEach((t=>"triggerConnected"in t?t.triggerConnected():m((()=>t.hostConnected?.())))),this._originalLifecycles.connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach((t=>"triggerDisconnected"in t?t.triggerDisconnected():m((()=>t.hostDisconnected?.())))),this._originalLifecycles.disconnectedCallback?.call(this.component),this.hasDestroy&&this._preserveOnDisconnectWatcher())}async _componentWillLoad(){(await this._accessorIntegrationReady)(),await Promise.allSettled(Array.from(this._controllers,(async t=>"triggerLoad"in t?await t.triggerLoad():await b((async()=>await(t.hostLoad?.())))))),await(this._originalLifecycles.componentWillLoad?.call(this.component))}_componentDidLoad(){this._controllers.forEach((t=>"triggerLoaded"in t?t.triggerLoaded():m((()=>t.hostLoaded?.())))),this._originalLifecycles.componentDidLoad?.call(this.component)}async _componentWillRender(){await Promise.allSettled(Array.from(this._controllers,(async t=>"triggerRender"in t?await t.triggerRender():await b((async()=>await(t.hostRender?.())))))),await(this._originalLifecycles.componentWillRender?.call(this.component))}_componentDidRender(){this._controllers.forEach((t=>"triggerRendered"in t?t.triggerRendered():m((()=>t.hostRendered?.())))),this._originalLifecycles.componentDidRender?.call(this.component)}async _componentWillUpdate(){await Promise.allSettled(Array.from(this._controllers,(async t=>"triggerUpdate"in t?await t.triggerUpdate():await b((async()=>await(t.hostUpdate?.())))))),await(this._originalLifecycles.componentWillUpdate?.call(this.component))}_componentDidUpdate(){this._controllers.forEach((t=>"triggerUpdated"in t?t.triggerUpdated():m((()=>t.hostUpdated?.())))),this._originalLifecycles.componentDidUpdate?.call(this.component);const t=this._updatePromise;this._updatePromise=new c,t.resolve(!0)}async destroy(){this.ensureHasDestroy(),this.destroyed||(this.component.el.isConnected&&(this.hasDestroy=!1,this.component.el.remove(),this.hasDestroy=!0),this.destroyed=!0,this._controllers.forEach((t=>"triggerDestroy"in t?t.triggerDestroy():m((()=>t.hostDestroy?.())))),await(this._originalLifecycles.destroy?.call(this.component)))}_preserveOnDisconnectWatcher(){this.component.el.isConnected||this.component.preserveOnDisconnect||this.destroy().catch(console.error)}readonly(t){return this.getSet(t,{set:(t,e,i)=>{throw new Error(`Cannot assign to read-only property "${i}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)}})}getSet(t,e){return this.component.manager.trackPropKey((i=>{if(void 0===i)throw new Error("Unable to resolve get/set's prop name. Make sure you are using it like @Prop() someProp = this.manager.getSet(defaultValue,{get,set})");const s=this.component,o=s[i];if(null!=o&&o!==t&&"function"==typeof e.set&&!1!==e.initialSet){const n=e.set(o,t,i);n!==o&&(s[i]=n)}this.genericGetSet(i,e)}),t)}},F="\nIf the component uses a controller that uses destroy() method, then the\ncomponent must have the following properties:\npreserveOnDisconnect and destroy\n".trim(),z=(q=class extends ${constructor(t,e){super(t);const i=this.exports;try{$.internals.setAmbientComponent(this.component);const t=e(this.component,this),s=this.exports!==i;if(t instanceof Promise){s||this.setProvisionalExports(t);const e=t.then((t=>{this.exports=t,super.catchUpLifecycle()})).catch((t=>{this._ready.reject(t),console.error(t)}));this.onLoad((async()=>await e))}else s&&void 0===t||(this.exports=t),super.catchUpLifecycle()}catch(t){this._ready.reject(t),console.error(t)}}catchUpLifecycle(){}},(...t)=>{const e=$.internals.retriveParentControllers(),i=new q(...t),s=i.exports;$.internals.setParentController(e.at(-1));const o=i.component.manager.internals;o.markExports(i,s),i.watchExports((t=>o.markExports(i,t))),$.internals.setAmbientChildController(i);const n=[i.component,...e].reverse();return o.trackKey(n,(t=>void 0===t?void 0:function(t,e,i,s){const o=e;o[i]!==t.exports&&!(o[i]!==s)&&s!==t.exports&&(o[i]=t.exports),t.watchExports((()=>{o[i]!==t.exports&&(o[i]=t.exports)}))}(i,t.host,t.key,s)),s)});const H=class{constructor(e){i(this,e),this.manager=new N(this),this._watchHandles=[],this.label=void 0,this.position="top-right",this.view=void 0,this.messages=this.manager.readonly(function({blocking:e=!1,name:i}={}){return z(void 0,((s,o)=>{if(o.onLifecycle((()=>y(s.el,t("./assets"),(({t9nLocale:t,t9nStrings:e,lang:i})=>{o.exports={...e,_lang:i,_t9nLocale:t},"string"==typeof e.widgetLabel&&"label"in s&&(s.label??(s.label=e.widgetLabel))}),i))),e)return o.ready;const n=w(s.el);return{_lang:n.lang,_t9nLocale:n.t9nLocale}}))}({blocking:!0})),this.state=void 0}positionWatcher(t){void 0!==t&&this.viewModel&&this.view.ui.move(this.el,t)}async componentDidLoad(){const{watch:t}=await r();this._watchHandles.push(t((()=>this.viewModel.state),(t=>{this.state=t})))}async componentWillLoad(){await this._checkForView(),this.viewModel=await a({view:this.view}),this.label=this.label?this.label:this.messages.label}disconnectedCallback(){this._watchHandles.forEach((t=>{t.remove()})),this._watchHandles=[]}render(){const{messages:t,label:e,viewModel:i,viewModel:{state:n,loadError:r}}=this,a=Array.from(this.viewModel.serviceNameLookup,(([t,e])=>({url:t,name:e})));return s(o,null,s("calcite-flow",{ref:t=>{this.flowElement=t},class:"flow-main"},s("calcite-flow-item",{heading:e},s("calcite-panel",{class:"panel-services",loading:"loading"===n},a.map((o=>s("arcgis-version-management-service-item",{flowElement:this.flowElement,heading:e,serviceUrl:o.url,strings:t,viewModel:i,onVersionItemActionClickedEventWithServiceUrl:t=>{this.flowElement&&this._handleVersionItemActionClick(t,this.flowElement)},onVersionListActionClickedEvent:t=>{this.flowElement&&this._handleVersionListActionClick(t,this.flowElement)}}))),"disabled"===n?s("calcite-notice",{class:"notice",closable:!1,kind:"warning",open:!0,scale:"s",slot:"footer"},s("div",{slot:"message"},this._getLoadError(r))):void 0))))}async _checkForView(){const t=this.el.closest("arcgis-map");t?.view&&(await t.view.map.load(),this.view=t.view,this.view.ui.add(this.el,this.position))}_createVersionPropertiesFlow(t,e){const{flowElement:i,viewModel:s}=this;if(!i)return null;const o=document.createElement("arcgis-version-management-version-properties");return o.flowElement=i,o.serviceUrl=t,o.strings=this.messages,o.versionInfo=e,o.viewModel=s,o.addEventListener("versionPropertiesSaveClickedEvent",(async t=>{const{serviceUrl:e,versionInfo:o}=t.detail,n=o.versionIdentifier.name,r=n.split(".").length>1?n.split(".")[1]:n,a=n.split(".").length>1?n.split(".")[0]:s.userLookup.get(e);if(""===o.versionIdentifier.guid?await s.createVersion({access:o.access,description:o.description,featureServerUrl:e,ownerName:a,versionName:r}):await s.alterVersion({access:o.access,description:o.description,featureServerUrl:e,ownerName:a,versionIdentifier:{name:"",guid:o.versionIdentifier.guid},versionName:r}),"ready"===s.state){const t=i.getElementsByTagName("arcgis-version-management-version-list")[0];t.versionInfos=[];const o=await s.getVersionInfos(e,!0);t.versionInfos=o,await i.back()}})),o}_getLoadError(t){const{messages:e}=this;switch(t){case"no-feature-services":return e.loadErrors.noFeatureServices;case"no-layers-property":return e.loadErrors.noLayersProperty;default:return t}}async _handleVersionItemActionClick(t,e){const{actionType:i,serviceUrl:s,versionInfo:o}=t.detail;switch(i){case"changeVersion":await this._switchToVersion(s,o.versionIdentifier.name,o.versionIdentifier.guid);break;case"editVersion":{const t=this._createVersionPropertiesFlow(s,o);t&&e.append(t);break}}}async _handleVersionListActionClick(t,e){const{actionType:i,serviceUrl:s}=t.detail;switch(i){case"newVersion":{const t=this._createVersionPropertiesFlow(s,void 0);t&&e.append(t);break}case"refreshVersions":if(this.flowElement){const t=this.flowElement.getElementsByTagName("arcgis-version-management-version-list")[0];t.versionInfos=[];const e=await this.viewModel.getVersionInfos(s,!0);t.versionInfos=e}}}async _switchToVersion(t,e,i){await this.viewModel.changeVersion(t,e,i)}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{position:["positionWatcher"]}}};H.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{H as arcgis_version_management}
|
|
@@ -0,0 +1,7 @@
|
|
|
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.23
|
|
5
|
+
*/
|
|
6
|
+
let n,t,e,l=!1,o=!1,s=!1,i=!1;const c=n=>{const t=new URL(n,pn.t);return t.origin!==dn.location.origin?t.href:t.pathname},r="slot-fb{display:contents}slot-fb[hidden]{display:none}",u={},a=n=>"object"==(n=typeof n)||"function"===n;function f(n){var t,e,l;return null!==(l=null===(e=null===(t=n.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const d=(n,t,...e)=>{let l=null,o=null,s=!1,i=!1;const c=[],r=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!a(l))&&(l+=""),s&&i?c[c.length-1].l+=l:c.push(s?v(null,l):l),i=s)};if(r(e),t){t.name&&(o=t.name);{const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}}const u=v(n,null);return u.o=t,c.length>0&&(u.i=c),u.u=o,u},v=(n,t)=>({v:0,p:n,l:t,m:null,i:null,o:null,u:null}),p={},m=n=>ln(n).$hostElement$,$=(n,t,e)=>{const l=m(n);return{emit:n=>y(l,t,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:n})}},y=(n,t,e)=>{const l=pn.ce(t,e);return n.dispatchEvent(l),l},b=new WeakMap,h=n=>"sc-"+n.$,w=(n,t,e,l,o,s)=>{if(e!==l){let i=cn(n,t),c=t.toLowerCase();if("class"===t){const t=n.classList,o=S(e),s=S(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else if("ref"===t)l&&l(n);else if(i||"o"!==t[0]||"n"!==t[1]){const c=a(l);if((i||c&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!i||4&s||o)&&!c&&n.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):cn(dn,c)?c.slice(2):c[2]+t.slice(3),e||l){const o=t.endsWith(j);t=t.replace(k,""),e&&pn.rel(n,t,e,o),l&&pn.ael(n,t,l,o)}}},g=/\s/,S=n=>n?n.split(g):[],j="Capture",k=RegExp(j+"$"),C=(n,t,e,l)=>{const o=11===t.m.nodeType&&t.m.host?t.m.host:t.m,s=n&&n.o||u,i=t.o||u;for(l in s)l in i||w(o,l,s[l],void 0,e,t.v);for(l in i)w(o,l,s[l],i[l],e,t.v)},O=(o,i,c,r)=>{var u;const a=i.i[c];let f,d,v,p=0;if(l||(s=!0,"slot"===a.p&&(n&&r.classList.add(n+"-s"),a.v|=a.i?2:1)),null!==a.l)f=a.m=vn.createTextNode(a.l);else if(1&a.v)f=a.m=vn.createTextNode("");else if(f=a.m=vn.createElement(2&a.v?"slot-fb":a.p),C(null,a,!1),null!=n&&f["s-si"]!==n&&f.classList.add(f["s-si"]=n),a.i)for(p=0;p<a.i.length;++p)d=O(o,a,p,f),d&&f.appendChild(d);return f["s-hn"]=e,3&a.v&&(f["s-sr"]=!0,f["s-fs"]=null===(u=a.o)||void 0===u?void 0:u.slot,f["s-cr"]=t,f["s-sn"]=a.u||"",v=o&&o.i&&o.i[c],v&&v.p===a.p&&o.m&&R(o.m,!1)),f},R=(n,t)=>{var l;pn.v|=1;const o=n.childNodes;for(let n=o.length-1;n>=0;n--){const i=o[n];i["s-hn"]!==e&&i["s-ol"]&&(U(i).insertBefore(i,T(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,1===i.nodeType&&i.setAttribute("slot",null!==(l=i["s-sn"])&&void 0!==l?l:""),s=!0),t&&R(i,t)}pn.v&=-2},M=(n,t,l,o,s,i)=>{let c,r=n["s-cr"]&&n["s-cr"].parentNode||n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=O(null,l,s,n),c&&(o[s].m=c,r.insertBefore(c,T(t))))},P=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.m;D(t),n&&(o=!0,n["s-ol"]?n["s-ol"].remove():R(n,!0),n.remove())}}},L=(n,t)=>n.p===t.p&&("slot"!==n.p||n.u===t.u),T=n=>n&&n["s-ol"]||n,U=n=>(n["s-ol"]?n["s-ol"]:n).parentNode,W=(n,t,e=!1)=>{const l=t.m=n.m,o=n.i,s=t.i,i=t.l;let c;null===i?("slot"===t.p||C(n,t,!1),null!==o&&null!==s?((n,t,e,l,o=!1)=>{let s,i=0,c=0,r=t.length-1,u=t[0],a=t[r],f=l.length-1,d=l[0],v=l[f];for(;i<=r&&c<=f;)null==u?u=t[++i]:null==a?a=t[--r]:null==d?d=l[++c]:null==v?v=l[--f]:L(u,d)?(W(u,d,o),u=t[++i],d=l[++c]):L(a,v)?(W(a,v,o),a=t[--r],v=l[--f]):L(u,v)?("slot"!==u.p&&"slot"!==v.p||R(u.m.parentNode,!1),W(u,v,o),n.insertBefore(u.m,a.m.nextSibling),u=t[++i],v=l[--f]):L(a,d)?("slot"!==u.p&&"slot"!==v.p||R(a.m.parentNode,!1),W(a,d,o),n.insertBefore(a.m,u.m),a=t[--r],d=l[++c]):(s=O(t&&t[c],e,c,n),d=l[++c],s&&U(u.m).insertBefore(s,T(u.m)));i>r?M(n,null==l[f+1]?null:l[f+1].m,e,l,c,f):c>f&&P(t,i,r)})(l,o,t,s,e):null!==s?(null!==n.l&&(l.textContent=""),M(l,null,t,s,0,s.length-1)):null!==o&&P(o,0,o.length-1)):(c=l["s-cr"])?c.parentNode.textContent=i:n.l!==i&&(l.data=i)},x=n=>{const t=n.childNodes;for(const n of t)if(1===n.nodeType){if(n["s-sr"]){const e=n["s-sn"];n.hidden=!1;for(const l of t)if(l!==n)if(l["s-hn"]!==n["s-hn"]||""!==e){if(1===l.nodeType&&(e===l.getAttribute("slot")||e===l["s-sn"])){n.hidden=!0;break}}else if(1===l.nodeType||3===l.nodeType&&""!==l.textContent.trim()){n.hidden=!0;break}}x(n)}},E=[],N=n=>{let t,e,l;for(const s of n.childNodes){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){e=t.parentNode.childNodes;const n=s["s-sn"];for(l=e.length-1;l>=0;l--)if(t=e[l],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==s["s-hn"])if(A(t,n)){let e=E.find((n=>n.h===t));o=!0,t["s-sn"]=t["s-sn"]||n,e?(e.h["s-sh"]=s["s-hn"],e.S=s):(t["s-sh"]=s["s-hn"],E.push({S:s,h:t})),t["s-sr"]&&E.map((n=>{A(n.h,t["s-sn"])&&(e=E.find((n=>n.h===t)),e&&!n.S&&(n.S=e.S))}))}else E.some((n=>n.h===t))||E.push({h:t})}1===s.nodeType&&N(s)}},A=(n,t)=>1===n.nodeType?null===n.getAttribute("slot")&&""===t||n.getAttribute("slot")===t:n["s-sn"]===t||""===t,D=n=>{n.o&&n.o.ref&&n.o.ref(null),n.i&&n.i.map(D)},F=(n,t)=>{t&&!n.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.j=t)))},H=(n,t)=>{if(n.v|=16,!(4&n.v))return F(n,n.k),jn((()=>q(n,t)));n.v|=512},q=(n,t)=>{const e=n.C;let l;return l=K(e,t?"componentWillLoad":"componentWillUpdate"),l=V(l,(()=>K(e,"componentWillRender"))),V(l,(()=>z(n,e,t)))},V=(n,t)=>_(n)?n.then(t):t(),_=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,z=async(n,t,e)=>{var l;const o=n.$hostElement$,s=o["s-rc"];e&&(n=>{const t=n.O,e=n.$hostElement$,l=t.v,o=((n,t)=>{var e;const l=h(t),o=fn.get(l);if(n=11===n.nodeType?n:vn,o)if("string"==typeof o){let s,i=b.get(n=n.head||n);if(i||b.set(n,i=new Set),!i.has(l)){{s=vn.createElement("style"),s.innerHTML=o;const t=null!==(e=pn.R)&&void 0!==e?e:f(vn);null!=t&&s.setAttribute("nonce",t),n.insertBefore(s,n.querySelector("link"))}4&t.v&&(s.innerHTML+=r),i&&i.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&l&&(e["s-sc"]=o,e.classList.add(o+"-h"))})(n);B(n,t,o,e),s&&(s.map((n=>n())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>G(n);0===t.length?e():(Promise.all(t).then(e),n.v|=4,t.length=0)}},B=(i,c,r,u)=>{try{c=c.render(),i.v&=-17,i.v|=2,((i,c,r=!1)=>{var u,a,f,m;const $=i.$hostElement$,y=i.O,b=i.M||v(null,null),h=(n=>n&&n.p===p)(c)?c:d(null,null,c);if(e=$.tagName,y.P&&(h.o=h.o||{},y.P.map((([n,t])=>h.o[t]=$[n]))),r&&h.o)for(const n of Object.keys(h.o))$.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(h.o[n]=$[n]);if(h.p=null,h.v|=4,i.M=h,h.m=b.m=$.shadowRoot||$,n=$["s-sc"],t=$["s-cr"],l=0!=(1&y.v),o=!1,W(b,h,r),pn.v|=1,s){N(h.m);for(const n of E){const t=n.h;if(!t["s-ol"]){const n=vn.createTextNode("");n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t)}}for(const n of E){const t=n.h,e=n.S;if(e){const n=e.parentNode;let l=e.nextSibling;{let e=null===(u=t["s-ol"])||void 0===u?void 0:u.previousSibling;for(;e;){let o=null!==(a=e["s-nr"])&&void 0!==a?a:null;if(o&&o["s-sn"]===t["s-sn"]&&n===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){l=o;break}e=e.previousSibling}}(!l&&n!==t.parentNode||t.nextSibling!==l)&&t!==l&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),n.insertBefore(t,l),1===t.nodeType&&(t.hidden=null!==(f=t["s-ih"])&&void 0!==f&&f))}else 1===t.nodeType&&(r&&(t["s-ih"]=null!==(m=t.hidden)&&void 0!==m&&m),t.hidden=!0)}}o&&x(h.m),pn.v&=-2,E.length=0})(i,c,u)}catch(n){rn(n,i.$hostElement$)}return null},G=n=>{const t=n.$hostElement$,e=n.C,l=n.k;K(e,"componentDidRender"),64&n.v?K(e,"componentDidUpdate"):(n.v|=64,Q(t),K(e,"componentDidLoad"),n.L(t),l||J()),n.T(t),n.j&&(n.j(),n.j=void 0),512&n.v&&Sn((()=>H(n,!1))),n.v&=-517},I=n=>{{const t=ln(n),e=t.$hostElement$.isConnected;return e&&2==(18&t.v)&&H(t,!1),e}},J=()=>{Q(vn.documentElement),Sn((()=>y(dn,"appload",{detail:{namespace:"arcgis-map-components"}})))},K=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){rn(n)}},Q=n=>n.setAttribute("hydrated",""),X=(n,t,e)=>{var l;const o=n.prototype;if(t.U){n.watchers&&(t.W=n.watchers);const s=Object.entries(t.U);if(s.map((([n,[l]])=>{31&l||2&e&&32&l?Object.defineProperty(o,n,{get(){return((n,t)=>ln(this).N.get(t))(0,n)},set(e){((n,t,e,l)=>{const o=ln(n),s=o.$hostElement$,i=o.N.get(t),c=o.v,r=o.C;if(e=((n,t)=>null==n||a(n)?n:4&t?"false"!==n&&(""===n||!!n):2&t?parseFloat(n):1&t?n+"":n)(e,l.U[t][0]),(!(8&c)||void 0===i)&&e!==i&&(!Number.isNaN(i)||!Number.isNaN(e))&&(o.N.set(t,e),r)){if(l.W&&128&c){const n=l.W[t];n&&n.map((n=>{try{r[n](e,i,t)}catch(n){rn(n,s)}}))}2==(18&c)&&H(o,!1)}})(this,n,e,t)},configurable:!0,enumerable:!0}):1&e&&64&l&&Object.defineProperty(o,n,{value(...t){var e;const l=ln(this);return null===(e=null==l?void 0:l.A)||void 0===e?void 0:e.then((()=>{var e;return null===(e=l.C)||void 0===e?void 0:e[n](...t)}))}})})),1&e){const e=new Map;o.attributeChangedCallback=function(n,l,s){pn.jmp((()=>{var i;const c=e.get(n);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const e=ln(this),o=null==e?void 0:e.v;if(o&&!(8&o)&&128&o&&s!==l){const o=e.C,c=null===(i=t.W)||void 0===i?void 0:i[n];null==c||c.forEach((t=>{null!=o[t]&&o[t].call(o,s,l,n)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=t.W)&&void 0!==l?l:{}),...s.filter((([n,t])=>15&t[0])).map((([n,l])=>{var o;const s=l[1]||n;return e.set(s,n),512&l[0]&&(null===(o=t.P)||void 0===o||o.push([n,s])),s}))]))}}return n},Y=n=>{K(n,"connectedCallback")},Z=n=>{K(n,"disconnectedCallback")},nn=(n,t={})=>{var e;const l=[],o=t.exclude||[],s=dn.customElements,i=vn.head,c=i.querySelector("meta[charset]"),u=vn.createElement("style"),a=[];let d,v=!0;Object.assign(pn,t),pn.t=new URL(t.resourcesUrl||"./",vn.baseURI).href;let p=!1;if(n.map((n=>{n[1].map((t=>{var e;const i={v:t[0],$:t[1],U:t[2],D:t[3]};4&i.v&&(p=!0),i.U=t[2],i.P=[],i.W=null!==(e=t[4])&&void 0!==e?e:{};const c=i.$,r=class extends HTMLElement{constructor(n){super(n),sn(n=this,i),1&i.v&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),v?a.push(this):pn.jmp((()=>(n=>{if(0==(1&pn.v)){const t=ln(n),e=t.O,l=()=>{};if(1&t.v)(null==t?void 0:t.C)?Y(t.C):(null==t?void 0:t.F)&&t.F.then((()=>Y(t.C)));else{t.v|=1,12&e.v&&(n=>{const t=n["s-cr"]=vn.createComment("");t["s-cn"]=!0,n.insertBefore(t,n.firstChild)})(n);{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){F(t,t.k=e);break}}e.U&&Object.entries(e.U).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e)=>{let l;if(0==(32&t.v)){t.v|=32;{if(l=an(e),l.then){const n=()=>{};l=await l,n()}l.isProxied||(e.W=l.watchers,X(l,e,2),l.isProxied=!0);const n=()=>{};t.v|=8;try{l.__registerControllers=n=>(on(n,t),t),new l(t),l.__registerControllers=void 0}catch(n){rn(n)}t.v&=-9,t.v|=128,n(),Y(t.C)}if(l.style){let n=l.style;const t=h(e);if(!fn.has(t)){const l=()=>{};((n,t,e)=>{let l=fn.get(n);$n&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,fn.set(n,l)})(t,n,!!(1&e.v)),l()}}}const o=t.k,s=()=>H(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){pn.jmp((()=>(async()=>{if(0==(1&pn.v)){const n=ln(this);(null==n?void 0:n.C)?Z(n.C):(null==n?void 0:n.F)&&n.F.then((()=>Z(n.C)))}})()))}componentOnReady(){return ln(this).F}};i.H=n[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,X(r,i,1)))}))})),p&&(u.innerHTML+=r),u.innerHTML+=l+"{visibility:hidden}[hydrated]{visibility:inherit}",u.innerHTML.length){u.setAttribute("data-styles","");const n=null!==(e=pn.R)&&void 0!==e?e:f(vn);null!=n&&u.setAttribute("nonce",n),i.insertBefore(u,c?c.nextSibling:i.firstChild)}v=!1,a.length?a.map((n=>n.connectedCallback())):pn.jmp((()=>d=setTimeout(J,30)))},tn=n=>pn.R=n,en=new WeakMap,ln=n=>en.get(n),on=(n,t)=>en.set(t.C=n,t),sn=(n,t)=>{const e={v:0,$hostElement$:n,O:t,N:new Map};return e.A=new Promise((n=>e.T=n)),e.F=new Promise((n=>e.L=n)),n["s-p"]=[],n["s-rc"]=[],en.set(n,e)},cn=(n,t)=>t in n,rn=(n,t)=>(0,console.error)(n,t),un=new Map,an=n=>{const t=n.$.replace(/-/g,"_"),e=n.H,l=un.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(un.set(e,n),n[t])),rn)
|
|
7
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},fn=new Map,dn="undefined"!=typeof window?window:{},vn=dn.document||{head:{}},pn={v:0,t:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,t,e,l)=>n.addEventListener(t,e,l),rel:(n,t,e,l)=>n.removeEventListener(t,e,l),ce:(n,t)=>new CustomEvent(n,t)},mn=n=>Promise.resolve(n),$n=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),yn=[],bn=[],hn=(n,t)=>e=>{n.push(e),i||(i=!0,t&&4&pn.v?Sn(gn):pn.raf(gn))},wn=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){rn(n)}n.length=0},gn=()=>{wn(yn),wn(bn),(i=yn.length>0)&&pn.raf(gn)},Sn=n=>mn().then(n),jn=hn(bn,!0);export{p as H,c as a,nn as b,$ as c,I as f,m as g,d as h,mn as p,on as r,tn as s}
|
|
@@ -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.23
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as e,h as s,g as i}from"./p-57788f39.js";import{T as l,i as o,U as h}from"./p-25dfa1c7.js";import{r as n,c as a,a as r}from"./p-774acaff.js";import{o as c}from"./p-38b8c927.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){n(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._proxyEvents(),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 h({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)}_proxyEvents(){this.widget.on("create",(t=>this.sketchCreate.emit(t))),this.widget.on("delete",(t=>this.sketchDelete.emit(t))),this.widget.on("redo",(t=>this.sketchRedo.emit(t))),this.widget.on("undo",(t=>this.sketchUndo.emit(t))),this.widget.on("update",(t=>this.sketchUpdate.emit(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}
|
|
6
|
+
import{r as t,c as e,h as s,g as i}from"./p-2ae4e4de.js";import{T as l,i as o,U as h}from"./p-490809b8.js";import{r as n,c as a,a as r}from"./p-54af84f6.js";import{o as c}from"./p-9fe2ce6f.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){n(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._proxyEvents(),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 h({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)}_proxyEvents(){this.widget.on("create",(t=>this.sketchCreate.emit(t))),this.widget.on("delete",(t=>this.sketchDelete.emit(t))),this.widget.on("redo",(t=>this.sketchRedo.emit(t))),this.widget.on("undo",(t=>this.sketchUndo.emit(t))),this.widget.on("update",(t=>this.sketchUpdate.emit(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}
|
|
@@ -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.23
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as i,h as e,g as s}from"./p-2ae4e4de.js";import{a1 as a}from"./p-490809b8.js";import{r as o,c as r}from"./p-54af84f6.js";import{o as h}from"./p-9fe2ce6f.js";const c=class{constructor(e){t(this,e),this.arcgisUtilityNetworkValidateTopologyReady=i(this,"arcgisUtilityNetworkValidateTopologyReady",7),this._watchHandles=[],this.referenceElement=void 0,this.extentToValidate="current",this.utilityNetwork=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){o(this,t)}extentToValidateWatcher(t){this.widget&&(this.widget.extentToValidate=t)}utilityNetworkWatcher(t){this.widget&&(this.widget.utilityNetwork=t)}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t,this._loadUtilityNetwork())}async componentDidLoad(){const t=this._createParams(),i=await a(t);this.widget=i,this._addContainer(),this.arcgisUtilityNetworkValidateTopologyReady.emit(),r(this)}disconnectedCallback(){h(this)}render(){return e("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}_createParams(){const t={};return void 0!==this.extentToValidate&&(t.extentToValidate=this.extentToValidate),void 0!==this.utilityNetwork&&(t.utilityNetwork=this.utilityNetwork),t}async _loadUtilityNetwork(){if(this.view?.map&&this.view.map.portalItem){await this.view.map.load();const t=this.view.map.utilityNetworks.getItemAt(0);await t.load(),this.utilityNetwork=t}}get el(){return s(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],extentToValidate:["extentToValidateWatcher"],utilityNetwork:["utilityNetworkWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};c.style="arcgis-utility-network-validate-topology{}";export{c as arcgis_utility_network_validate_topology}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.23
|
|
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-2ae4e4de.js";import{h,i as a}from"./p-490809b8.js";import{r as o,c as l,a as r}from"./p-54af84f6.js";import{o as n}from"./p-9fe2ce6f.js";const c=class{constructor(s){t(this,s),this.arcgisBookmarksReady=i(this,"arcgisBookmarksReady",7),this.bookmarkEdit=i(this,"bookmarkEdit",7),this.bookmarkSelect=i(this,"bookmarkSelect",7),this._watchHandles=[],this.referenceElement=void 0,this.bookmarks=void 0,this.defaultCreateOptions=void 0,this.defaultEditOptions=void 0,this.disabled=!1,this.dragEnabled=!1,this.filterPlaceholder=void 0,this.filterText=void 0,this.icon=void 0,this.visibleElementsAddBookmarkButton=!1,this.visibleElementsCloseButton=!1,this.visibleElementsCollapseButton=!1,this.visibleElementsEditBookmarkButton=!1,this.visibleElementsFilter=!1,this.visibleElementsFlow=!0,this.visibleElementsHeading=!1,this.visibleElementsThumbnail=!0,this.visibleElementsTime=!0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){o(this,t)}bookmarksWatcher(t){void 0!==t&&this.widget&&(this.widget.bookmarks=t)}defaultCreateOptionsWatcher(t){void 0!==t&&this.widget&&(this.widget.defaultCreateOptions=t)}defaultEditOptionsWatcher(t){void 0!==t&&this.widget&&(this.widget.defaultEditOptions=t)}disabledWatcher(t,i){this.widget&&t!==i&&(this.widget.disabled=t)}dragEnabledWatcher(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)}visibleElementsAddBookmarkButtonWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,addBookmarkButton: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})}visibleElementsEditBookmarkButtonWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,editBookmarkButton: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})}visibleElementsThumbnailWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,thumbnail:t})}visibleElementsTimeWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,time: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 h(t);this.widget=i,await this._addWatchers(),this._proxyEvents(),this._addContainer(),this.arcgisBookmarksReady.emit(),l(this)}disconnectedCallback(){n(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:t}=await a();r(this,[t((()=>this.widget.disabled),(t=>this.disabled=t))])}_createParams(){const t={};return t.visibleElements={addBookmarkButton:this.visibleElementsAddBookmarkButton,closeButton:this.visibleElementsCloseButton,collapseButton:this.visibleElementsCollapseButton,editBookmarkButton:this.visibleElementsEditBookmarkButton,filter:this.visibleElementsFilter,flow:this.visibleElementsFlow,heading:this.visibleElementsHeading,thumbnail:this.visibleElementsThumbnail,time:this.visibleElementsTime},this.view&&(t.view=this.view),this.bookmarks&&(t.bookmarks=this.bookmarks),this.defaultCreateOptions&&(t.defaultCreateOptions=this.defaultCreateOptions),this.defaultEditOptions&&(t.defaultEditOptions=this.defaultEditOptions),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),t}_proxyEvents(){this.widget.on("bookmark-edit",(t=>this.bookmarkEdit.emit(t))),this.widget.on("bookmark-select",(t=>this.bookmarkSelect.emit(t)))}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],bookmarks:["bookmarksWatcher"],defaultCreateOptions:["defaultCreateOptionsWatcher"],defaultEditOptions:["defaultEditOptionsWatcher"],disabled:["disabledWatcher"],dragEnabled:["dragEnabledWatcher"],filterPlaceholder:["filterPlaceholderWatcher"],filterText:["filterTextWatcher"],icon:["iconWatcher"],visibleElementsAddBookmarkButton:["visibleElementsAddBookmarkButtonWatcher"],visibleElementsCloseButton:["visibleElementsCloseButtonWatcher"],visibleElementsCollapseButton:["visibleElementsCollapseButtonWatcher"],visibleElementsEditBookmarkButton:["visibleElementsEditBookmarkButtonWatcher"],visibleElementsFilter:["visibleElementsFilterWatcher"],visibleElementsFlow:["visibleElementsFlowWatcher"],visibleElementsHeading:["visibleElementsHeadingWatcher"],visibleElementsThumbnail:["visibleElementsThumbnailWatcher"],visibleElementsTime:["visibleElementsTimeWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_bookmarks}
|
|
@@ -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.23
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-2ae4e4de.js";import{g as a,i as h}from"./p-490809b8.js";import{r,c as n,a as o}from"./p-54af84f6.js";import{o as c}from"./p-9fe2ce6f.js";const m=class{constructor(s){t(this,s),this.arcgisBasemapToggleReady=i(this,"arcgisBasemapToggleReady",7),this.arcgisPropertyChange=i(this,"arcgisPropertyChange",7),this._watchHandles=[],this.referenceElement=void 0,this.activeBasemap=void 0,this.nextBasemap=void 0,this.visibleElementsTitle=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){r(this,t)}nextBasemapWatcher(t){t&&this.widget&&(this.widget.nextBasemap=t)}visibleElementsTitleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,title:t})}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async toggle(){return await(this.widget?.toggle())}async componentDidLoad(){const t=this._createParams(),i=await a(t);this.widget=i,await this._addWatchers(),this._addContainer(),this.arcgisBasemapToggleReady.emit(),n(this)}disconnectedCallback(){c(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}_createParams(){const t={visibleElements:{}};return this.nextBasemap&&(t.nextBasemap=this.nextBasemap),this.visibleElementsTitle&&(t.visibleElements.title=this.visibleElementsTitle),this.view&&(t.view=this.view),t}async _addWatchers(){const{watch:t}=await h();o(this,t((()=>this.widget.activeBasemap),(t=>{this.activeBasemap=t,this.arcgisPropertyChange.emit({name:"activeBasemap"})}),{initial:!0})),o(this,t((()=>this.widget.nextBasemap),(t=>{this.nextBasemap=t,this.arcgisPropertyChange.emit({name:"nextBasemap"})}),{initial:!0}))}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],nextBasemap:["nextBasemapWatcher"],visibleElementsTitle:["visibleElementsTitleWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};m.style="";export{m as arcgis_basemap_toggle}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.23
|
|
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-2ae4e4de.js";import{S as h}from"./p-490809b8.js";import{r as a,c as r}from"./p-54af84f6.js";import{o}from"./p-9fe2ce6f.js";const n=class{constructor(s){t(this,s),this.arcgisShadowCastReady=i(this,"arcgisShadowCastReady",7),this._watchHandles=[],this.referenceElement=void 0,this.discreteOptions=void 0,this.durationOptions=void 0,this.endTimeOfDay=576e5,this.startTimeOfDay=36e6,this.thresholdOptions=void 0,this.utcOffset=void 0,this.visualizationType="threshold",this.icon=void 0,this.visibleElementsTimeRangeSlider=!0,this.visibleElementsTimezone=!0,this.visibleElementsDatePicker=!0,this.visibleElementsVisualizationOptions=!0,this.visibleElementsColorPicker=!0,this.visibleElementsTooltip=!0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){a(this,t)}discreteOptionsWatcher(t){this.widget&&(this.widget.viewModel.discreteOptions=t)}durationOptionsWatcher(t){this.widget&&(this.widget.viewModel.durationOptions=t)}endTimeOfDayWatcher(t){this.widget&&(this.widget.viewModel.endTimeOfDay=t)}startTimeOfDayWatcher(t){this.widget&&(this.widget.viewModel.startTimeOfDay=t)}thresholdOptionsWatcher(t){this.widget&&(this.widget.viewModel.thresholdOptions=t)}utcOffsetWatcher(t){this.widget&&(this.widget.viewModel.utcOffset=t)}visualizationTypeWatcher(t){this.widget&&(this.widget.viewModel.visualizationType=t)}iconWatcher(t){this.widget&&(this.widget.icon=t)}visibleElementsTimeRangeSliderWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,timeRangeSlider:t})}visibleElementsTimezoneWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,timezone:t})}visibleElementsDatePickerWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,datePicker:t})}visibleElementsVisualizationOptionsWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,visualizationOptions:t})}visibleElementsColorPickerWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,colorPicker:t})}visibleElementsTooltipWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,tooltip:t})}positionWatcher(t){void 0!==t&&this.widget&&this.view.ui.move(this.childElem,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async getDuration(t){return this.widget?.viewModel.getDuration(t)}async start(){this.widget?.viewModel.start()}async stop(){this.widget?.viewModel.stop()}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,this._setViewModelParams(),this._addContainer(),this.arcgisShadowCastReady.emit(),r(this)}disconnectedCallback(){o(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}_createParams(){const t={};return t.visibleElements={timeRangeSlider:this.visibleElementsTimeRangeSlider,timezone:this.visibleElementsTimezone,datePicker:this.visibleElementsDatePicker,visualizationOptions:this.visibleElementsVisualizationOptions,colorPicker:this.visibleElementsColorPicker,tooltip:this.visibleElementsTooltip},this.icon&&(t.icon=this.icon),this.view&&(t.view=this.view),t}_setViewModelParams(){const t={endTimeOfDay:this.endTimeOfDay,startTimeOfDay:this.startTimeOfDay,visualizationType:this.visualizationType};this.discreteOptions&&(t.discreteOptions=this.discreteOptions),this.durationOptions&&(t.durationOptions=this.durationOptions),this.thresholdOptions&&(t.thresholdOptions=this.thresholdOptions),this.utcOffset&&(t.utcOffset=this.utcOffset),this.widget.viewModel.set(t)}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],discreteOptions:["discreteOptionsWatcher"],durationOptions:["durationOptionsWatcher"],endTimeOfDay:["endTimeOfDayWatcher"],startTimeOfDay:["startTimeOfDayWatcher"],thresholdOptions:["thresholdOptionsWatcher"],utcOffset:["utcOffsetWatcher"],visualizationType:["visualizationTypeWatcher"],icon:["iconWatcher"],visibleElementsTimeRangeSlider:["visibleElementsTimeRangeSliderWatcher"],visibleElementsTimezone:["visibleElementsTimezoneWatcher"],visibleElementsDatePicker:["visibleElementsDatePickerWatcher"],visibleElementsVisualizationOptions:["visibleElementsVisualizationOptionsWatcher"],visibleElementsColorPicker:["visibleElementsColorPickerWatcher"],visibleElementsTooltip:["visibleElementsTooltipWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};n.style="arcgis-shadow-cast{}";export{n as arcgis_shadow_cast}
|
|
@@ -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.23
|
|
5
|
+
*/
|
|
6
|
+
var i="undefined"!=typeof window&&"$arcgis"in window&&"object"==typeof window.$arcgis&&"import"in window.$arcgis;function t(i){return void 0!==i.default}async function n(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/layers/FeatureLayer");const n=await import("@arcgis/core/layers/FeatureLayer.js");return t(n)?n.default:n}())(n)}async function a(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/layers/GraphicsLayer");const n=await import("@arcgis/core/layers/GraphicsLayer.js");return t(n)?n.default:n}())(n)}async function r(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/layers/RouteLayer");const n=await import("@arcgis/core/layers/RouteLayer.js");return t(n)?n.default:n}())(n)}async function e(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/views/MapView");const n=await import("@arcgis/core/views/MapView.js");return t(n)?n.default:n}())(n)}async function s(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/views/SceneView");const n=await import("@arcgis/core/views/SceneView.js");return t(n)?n.default:n}())(n)}async function w(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/WebMap");const n=await import("@arcgis/core/WebMap.js");return t(n)?n.default:n}())(n)}async function c(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/WebScene");const n=await import("@arcgis/core/WebScene.js");return t(n)?n.default:n}())(n)}async function o(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/AreaMeasurement2D");const n=await import("@arcgis/core/widgets/AreaMeasurement2D.js");return t(n)?n.default:n}())(n)}async function u(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/AreaMeasurement3D");const n=await import("@arcgis/core/widgets/AreaMeasurement3D.js");return t(n)?n.default:n}())(n)}async function d(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Attachments");const n=await import("@arcgis/core/widgets/Attachments.js");return t(n)?n.default:n}())(n)}async function g(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/BasemapGallery");const n=await import("@arcgis/core/widgets/BasemapGallery.js");return t(n)?n.default:n}())(n)}async function f(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/BasemapLayerList");const n=await import("@arcgis/core/widgets/BasemapLayerList.js");return t(n)?n.default:n}())(n)}async function y(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/BasemapToggle");const n=await import("@arcgis/core/widgets/BasemapToggle.js");return t(n)?n.default:n}())(n)}async function m(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Bookmarks");const n=await import("@arcgis/core/widgets/Bookmarks.js");return t(n)?n.default:n}())(n)}async function p(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/BuildingExplorer");const n=await import("@arcgis/core/widgets/BuildingExplorer.js");return t(n)?n.default:n}())(n)}async function l(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Compass");const n=await import("@arcgis/core/widgets/Compass.js");return t(n)?n.default:n}())(n)}async function j(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/CoordinateConversion");const n=await import("@arcgis/core/widgets/CoordinateConversion.js");return t(n)?n.default:n}())(n)}async function S(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Daylight");const n=await import("@arcgis/core/widgets/Daylight.js");return t(n)?n.default:n}())(n)}async function L(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/DirectionalPad");const n=await import("@arcgis/core/widgets/DirectionalPad.js");return t(n)?n.default:n}())(n)}async function F(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Directions");const n=await import("@arcgis/core/widgets/Directions.js");return t(n)?n.default:n}())(n)}async function M(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/DirectLineMeasurement3D");const n=await import("@arcgis/core/widgets/DirectLineMeasurement3D.js");return t(n)?n.default:n}())(n)}async function D(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/DistanceMeasurement2D");const n=await import("@arcgis/core/widgets/DistanceMeasurement2D.js");return t(n)?n.default:n}())(n)}async function T(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Editor");const n=await import("@arcgis/core/widgets/Editor.js");return t(n)?n.default:n}())(n)}async function h(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/ElevationProfile");const n=await import("@arcgis/core/widgets/ElevationProfile.js");return t(n)?n.default:n}())(n)}async function k(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Expand");const n=await import("@arcgis/core/widgets/Expand.js");return t(n)?n.default:n}())(n)}async function v(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Feature");const n=await import("@arcgis/core/widgets/Feature.js");return t(n)?n.default:n}())(n)}async function V(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/FeatureForm");const n=await import("@arcgis/core/widgets/FeatureForm.js");return t(n)?n.default:n}())(n)}async function B(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Features");const n=await import("@arcgis/core/widgets/Features.js");return t(n)?n.default:n}())(n)}async function b(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/FeatureTable");const n=await import("@arcgis/core/widgets/FeatureTable.js");return t(n)?n.default:n}())(n)}async function A(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/FeatureTemplates");const n=await import("@arcgis/core/widgets/FeatureTemplates.js");return t(n)?n.default:n}())(n)}async function C(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/FloorFilter");const n=await import("@arcgis/core/widgets/FloorFilter.js");return t(n)?n.default:n}())(n)}async function E(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Fullscreen");const n=await import("@arcgis/core/widgets/Fullscreen.js");return t(n)?n.default:n}())(n)}async function N(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Histogram");const n=await import("@arcgis/core/widgets/Histogram.js");return t(n)?n.default:n}())(n)}async function P(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/HistogramRangeSlider");const n=await import("@arcgis/core/widgets/HistogramRangeSlider.js");return t(n)?n.default:n}())(n)}async function U(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Home");const n=await import("@arcgis/core/widgets/Home.js");return t(n)?n.default:n}())(n)}async function H(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/LayerList");const n=await import("@arcgis/core/widgets/LayerList.js");return t(n)?n.default:n}())(n)}async function R(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Legend");const n=await import("@arcgis/core/widgets/Legend.js");return t(n)?n.default:n}())(n)}async function W(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/LineOfSight");const n=await import("@arcgis/core/widgets/LineOfSight.js");return t(n)?n.default:n}())(n)}async function x(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Locate");const n=await import("@arcgis/core/widgets/Locate.js");return t(n)?n.default:n}())(n)}async function G(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Measurement");const n=await import("@arcgis/core/widgets/Measurement.js");return t(n)?n.default:n}())(n)}async function O(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/NavigationToggle");const n=await import("@arcgis/core/widgets/NavigationToggle.js");return t(n)?n.default:n}())(n)}async function Z(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Print");const n=await import("@arcgis/core/widgets/Print.js");return t(n)?n.default:n}())(n)}async function $(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/ScaleBar");const n=await import("@arcgis/core/widgets/ScaleBar.js");return t(n)?n.default:n}())(n)}async function q(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/ScaleRangeSlider");const n=await import("@arcgis/core/widgets/ScaleRangeSlider.js");return t(n)?n.default:n}())(n)}async function z(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Search");const n=await import("@arcgis/core/widgets/Search.js");return t(n)?n.default:n}())(n)}async function I(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/ShadowCast");const n=await import("@arcgis/core/widgets/ShadowCast.js");return t(n)?n.default:n}())(n)}async function J(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Sketch");const n=await import("@arcgis/core/widgets/Sketch.js");return t(n)?n.default:n}())(n)}async function K(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Slice");const n=await import("@arcgis/core/widgets/Slice.js");return t(n)?n.default:n}())(n)}async function Q(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Slider");const n=await import("@arcgis/core/widgets/Slider.js");return t(n)?n.default:n}())(n)}async function X(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Swipe");const n=await import("@arcgis/core/widgets/Swipe.js");return t(n)?n.default:n}())(n)}async function Y(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/TableList");const n=await import("@arcgis/core/widgets/TableList.js");return t(n)?n.default:n}())(n)}async function _(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/TimeSlider");const n=await import("@arcgis/core/widgets/TimeSlider.js");return t(n)?n.default:n}())(n)}async function ii(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Track");const n=await import("@arcgis/core/widgets/Track.js");return t(n)?n.default:n}())(n)}async function ti(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/UtilityNetworkAssociations");const n=await import("@arcgis/core/widgets/UtilityNetworkAssociations.js");return t(n)?n.default:n}())(n)}async function ni(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/UtilityNetworkTrace");const n=await import("@arcgis/core/widgets/UtilityNetworkTrace.js");return t(n)?n.default:n}())(n)}async function ai(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/UtilityNetworkValidateTopology");const n=await import("@arcgis/core/widgets/UtilityNetworkValidateTopology.js");return t(n)?n.default:n}())(n)}async function ri(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/ValuePicker");const n=await import("@arcgis/core/widgets/ValuePicker.js");return t(n)?n.default:n}())(n)}async function ei(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/VersionManagement/VersionManagementViewModel");const n=await import("@arcgis/core/widgets/VersionManagement/VersionManagementViewModel.js");return t(n)?n.default:n}())(n)}async function si(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Weather");const n=await import("@arcgis/core/widgets/Weather.js");return t(n)?n.default:n}())(n)}async function wi(n){return new(await async function(){if(i)return await window.$arcgis.import("esri/widgets/Zoom");const n=await import("@arcgis/core/widgets/Zoom.js");return t(n)?n.default:n}())(n)}async function ci(){if(i)return await window.$arcgis.import("esri/core/reactiveUtils");const n=await import("@arcgis/core/core/reactiveUtils.js");return t(n)?n.default:n}export{ti as $,B as A,C as B,E as C,N as D,P as E,U as F,H as G,R as H,W as I,x as J,G as K,O as L,Z as M,$ as N,q as O,c as P,s as Q,z as R,I as S,J as T,a as U,K as V,Q as W,X,Y,_ as Z,ii as _,w as a,ni as a0,ai as a1,ri as a2,ei as a3,si as a4,wi as a5,k as a6,e as b,o as c,u as d,d as e,f,y as g,m as h,ci as i,p as j,l as k,j as l,S as m,g as n,L as o,r as p,F as q,M as r,D as s,T as t,h as u,v,V as w,n as x,b as y,A as z}
|
|
@@ -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.23
|
|
5
5
|
*/
|
|
6
|
-
import{r as i,c as t,h as s,g as h}from"./p-57788f39.js";import{n as e,i as a,a as r,b as c}from"./p-25dfa1c7.js";import{r as o,c as n,a as d,i as l,b as p}from"./p-774acaff.js";import{o as v}from"./p-38b8c927.js";const g=class{constructor(s){i(this,s),this.arcgisBasemapGalleryReady=t(this,"arcgisBasemapGalleryReady",7),this.arcgisPropertyChange=t(this,"arcgisPropertyChange",7),this._watchHandles=[],this.referenceElement=void 0,this.activeBasemap=void 0,this.disabled=!1,this.icon=void 0,this.source=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(i){o(this,i)}disabledWatcher(i,t){this.widget&&i!==t&&(this.widget.disabled=i)}iconWatcher(i){this.widget&&(this.widget.icon=i)}sourceWatcher(i){this.widget&&(this.widget.source=i)}positionWatcher(i){void 0!==i&&this.widget&&this.view.ui.move(this.childElem,i)}viewWatcher(i){void 0!==i&&this.widget&&(this.widget.view=i)}async componentDidLoad(){const i=this._createParams(),t=await e(i);this.widget=t,await this._addWatchers(),this._addContainer(),this.arcgisBasemapGalleryReady.emit(),n(this)}disconnectedCallback(){v(this)}render(){return s("div",{ref:i=>this.childElem=i})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:i}=await a();d(this,[i((()=>this.widget.source),(()=>this.source=this.widget.source),{initial:!0}),i((()=>this.widget.activeBasemap),(i=>{this.activeBasemap=i,this.arcgisPropertyChange.emit({name:"activeBasemap"})}),{initial:!0}),i((()=>this.widget.disabled),(i=>this.disabled=i))])}_createParams(){const i={};return this.icon&&(i.icon=this.icon),this.source&&(i.source=this.source),this.view&&(i.view=this.view),i}get el(){return h(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],disabled:["disabledWatcher"],icon:["iconWatcher"],source:["sourceWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};g.style="";const W=class{constructor(s){i(this,s),this.arcgisViewReadyChange=t(this,"arcgisViewReadyChange",7),this.arcgisViewChange=t(this,"arcgisViewChange",7),this.arcgisViewClick=t(this,"arcgisViewClick",7),this.arcgisViewDoubleClick=t(this,"arcgisViewDoubleClick",7),this.arcgisViewDrag=t(this,"arcgisViewDrag",7),this.arcgisViewHold=t(this,"arcgisViewHold",7),this.arcgisViewImmediateClick=t(this,"arcgisViewImmediateClick",7),this.arcgisViewImmediateDoubleClick=t(this,"arcgisViewImmediateDoubleClick",7),this.arcgisViewKeyDown=t(this,"arcgisViewKeyDown",7),this.arcgisViewKeyUp=t(this,"arcgisViewKeyUp",7),this.arcgisViewLayerviewCreate=t(this,"arcgisViewLayerviewCreate",7),this.arcgisViewLayerviewCreateError=t(this,"arcgisViewLayerviewCreateError",7),this.arcgisViewLayerviewDestroy=t(this,"arcgisViewLayerviewDestroy",7),this.arcgisViewMouseWheel=t(this,"arcgisViewMouseWheel",7),this.arcgisViewPointerDown=t(this,"arcgisViewPointerDown",7),this.arcgisViewPointerEnter=t(this,"arcgisViewPointerEnter",7),this.arcgisViewPointerLeave=t(this,"arcgisViewPointerLeave",7),this.arcgisViewPointerMove=t(this,"arcgisViewPointerMove",7),this.arcgisViewPointerUp=t(this,"arcgisViewPointerUp",7),this._watchHandles=[],this.allLayerViews=void 0,this.background=void 0,this.basemapView=void 0,this.basemap=void 0,this.center=void 0,this.constraints=void 0,this.destroyDisabled=!1,this.extent=void 0,this.fatalError=void 0,this.floors=void 0,this.gamepad=void 0,this.graphics=void 0,this.highlightOptions=void 0,this.interacting=!1,this.itemId=void 0,this.layerViews=void 0,this.magnifier=void 0,this.map=void 0,this.navigating=!1,this.navigation=void 0,this.padding=void 0,this.popup=void 0,this.popupEnabled=!0,this.ready=!1,this.resizeAlign=void 0,this.resolution=void 0,this.rotation=0,this.scale=void 0,this.spatialReference=void 0,this.stationary=void 0,this.suspended=!0,this.theme=void 0,this.timeExtent=void 0,this.timeZone="system",this.toMap=void 0,this.toScreen=void 0,this.updating=!1,this.viewpoint=void 0,this.zoom=void 0,this.view=void 0}backgroundWatcher(i){this.view&&(this.background=i)}basemapWatcher(i){("string"==typeof i&&this.view?.map&&!l(i)||this.view?.map)&&(this.view.map.basemap=i)}centerWatcher(i,t){if(i!==t&&this.view)if("string"==typeof i){const t=i.split(",").map((i=>Number(i)));t[0]!==this.view.center.longitude&&t[1]!==this.view.center.latitude&&(this.view.center=t)}else Array.isArray(i)?i[0]!==this.view.center.longitude&&i[1]!==this.view.center.latitude&&(this.view.center=i):this.view.center.equals(i)||(this.view.center=i)}constraintsWatcher(i){this.view&&(this.view.constraints=i)}extentWatcher(i){this.view&&i&&!this.view.extent.equals(i)&&(this.view.extent=i)}floorsWatcher(i){this.view&&(this.view.floors=i)}graphicsWatcher(i){this.view&&(this.view.graphics=i)}highlightOptionsWatcher(i){this.view&&(this.view.highlightOptions=i)}itemIdWatcher(i,t){i!==t&&(this.view?.map?this._updateMap():this._loadMap())}mapWatcher(i){this.view&&(this.view.map=i)}navigationWatcher(i){this.view&&(this.view.navigation=i)}paddingWatcher(i){this.view&&(this.view.padding=i)}popupWatcher(i){this.view&&(this.view.popup=i)}popupEnabledWatcher(i,t){i!==t&&this.view&&(this.view.popupEnabled=i)}resizeAlignWatcher(i){this.view&&(this.view.resizeAlign=i)}rotationWatcher(i){this.view&&this.view.rotation!==i&&(this.view.rotation=i)}scaleWatcher(i,t){this.view?.interacting||null==i||i===t||(this.view.scale=i)}spatialReferenceWatcher(i){this.view&&i&&!this.view.spatialReference.equals(i)&&(this.view.spatialReference=i)}themeWatcher(i){this.view&&(this.view.theme=i)}timeExtentWatcher(i){this.view&&(this.view.timeExtent=i)}timeZoneWatcher(i){this.view&&(this.view.timeZone=i)}viewpointWatcher(i){this.view&&p(this.view.viewpoint,i)&&(this.view.viewpoint=i)}zoomWatcher(i,t){this.view?.interacting||null==i||i===t||(this.view.zoom=i)}async closePopup(){this.view?.closePopup()}async destroy(){this.destroyDisabled&&(this._clearWatchHandles(),this.view.destroy())}async goTo(i,t){return await(this.view?.goTo(i,t))}async hitTest(i,t){return await(this.view?.hitTest(i,t))}async openPopup(i){this.view?.openPopup(i)}async takeScreenshot(i){return await(this.view?.takeScreenshot(i))}async tryFatalErrorRecovery(){this.view?.tryFatalErrorRecovery()}async whenLayerView(i){return await(this.view?.whenLayerView(i))}async componentWillLoad(){this.view||await this._loadMap()}componentDidRender(){this.view&&!this.view.container&&(this.view.container=this.el)}componentDidLoad(){this._proxyEvents()}disconnectedCallback(){this.destroy()}render(){return s("div",{class:"arcgis-map",ref:i=>this.el=i})}_clearWatchHandles(){this._watchHandles.forEach((i=>i.remove())),this._watchHandles=[]}async _addWatchers(){const{watch:i,when:t}=await a();d(this,[i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary,this.interacting=this.view.interacting,this.navigating=this.view.navigating,this.arcgisViewChange.emit()}),{initial:!0}),t((()=>this.view.stationary),(()=>{this.center=this.view.center,this.extent=this.view.extent,this.scale=this.view.scale,this.viewpoint=this.view.viewpoint,this.zoom=this.view.zoom,this.spatialReference=this.view.spatialReference})),i((()=>this.view.allLayerViews),(()=>{this.allLayerViews=this.view.allLayerViews}),{initial:!0}),i((()=>this.view.map?.basemap),(()=>{this.basemap=this.view.map?.basemap}),{initial:!0}),i((()=>this.view.fatalError),(()=>{this.fatalError=this.view.fatalError}),{initial:!0}),i((()=>this.view.input.gamepad),(()=>{this.gamepad=this.view.input.gamepad}),{initial:!0}),i((()=>this.view.graphics),(()=>{this.graphics=this.view.graphics}),{initial:!0}),i((()=>this.view.layerViews),(()=>{this.layerViews=this.view.layerViews}),{initial:!0}),i((()=>this.view.navigation),(()=>{this.navigation=this.view.navigation}),{initial:!0}),i((()=>this.view.map),(()=>{this.map=this.view.map}),{initial:!0}),i((()=>this.view.popup),(()=>{this.popup=this.view.popup}),{initial:!0}),i((()=>this.view.resolution),(()=>{this.resolution=this.view.resolution}),{initial:!0}),i((()=>this.view.rotation),(()=>{this.rotation=this.view.rotation}),{initial:!0}),i((()=>this.view.suspended),(()=>{this.suspended=this.view.suspended}),{initial:!0}),i((()=>this.view.updating),(()=>{this.updating=this.view.updating}),{initial:!0}),i((()=>this.view.ready),(()=>{this.ready=this.view.ready,this.arcgisViewReadyChange.emit()}),{initial:!0})])}async _createMap(){const i={};return this.itemId&&(i.portalItem=await this._createPortalItem()),this.basemap?i.basemap=this.basemap:l(this.itemId)&&(i.basemap="topo-vector"),await r(i)}async _createPortalItem(){const i={};return this.itemId&&(i.id=this.itemId),i}_createViewParams(){const i={};return this.background&&(i.background=this.background),this.center&&(i.center="string"==typeof this.center?this.center.split(",").map((i=>Number(i))):this.center),this.constraints&&(i.constraints=this.constraints),this.extent&&(i.extent=this.extent),this.floors&&(i.floors=this.floors),this.graphics&&(i.graphics=this.graphics),this.highlightOptions&&(i.highlightOptions=this.highlightOptions),this.map&&(i.map=this.map),this.navigation&&(i.navigation=this.navigation),this.padding&&(i.padding=this.padding),this.popup&&(i.popup=this.popup),void 0!==this.popupEnabled&&(i.popupEnabled=this.popupEnabled),void 0!==this.rotation&&(i.rotation=this.rotation),void 0!==this.scale&&(i.scale=this.scale),this.spatialReference&&(i.spatialReference=this.spatialReference),this.theme&&(i.theme=this.theme),this.timeExtent&&(i.timeExtent=this.timeExtent),this.timeZone&&(i.timeZone=this.timeZone),this.viewpoint&&(i.viewpoint=this.viewpoint),void 0!==this.zoom&&(i.zoom=this.zoom),i}async _loadMap(){this.map||(this.map=await this._createMap());const i=this._createViewParams(),t=await c({...i});this.view=t,t.when((async()=>{this.toMap=t.toMap.bind(t),this.toScreen=t.toScreen.bind(t),await this._addWatchers()}))}_proxyEvents(){d(this,[this.view.on("click",(i=>{this.arcgisViewClick.emit(i)})),this.view.on("double-click",(i=>{this.arcgisViewDoubleClick.emit(i)})),this.view.on("drag",(i=>{this.arcgisViewDrag.emit(i)})),this.view.on("hold",(i=>{this.arcgisViewHold.emit(i)})),this.view.on("immediate-click",(i=>{this.arcgisViewImmediateClick.emit(i)})),this.view.on("immediate-double-click",(i=>{this.arcgisViewImmediateDoubleClick.emit(i)})),this.view.on("key-down",(i=>{this.arcgisViewKeyDown.emit(i)})),this.view.on("key-up",(i=>{this.arcgisViewKeyUp.emit(i)})),this.view.on("layerview-create",(i=>{this.arcgisViewLayerviewCreate.emit(i)})),this.view.on("layerview-create-error",(i=>{this.arcgisViewLayerviewCreateError.emit(i)})),this.view.on("layerview-destroy",(i=>{this.arcgisViewLayerviewDestroy.emit(i)})),this.view.on("mouse-wheel",(i=>{this.arcgisViewMouseWheel.emit(i)})),this.view.on("pointer-down",(i=>{this.arcgisViewPointerDown.emit(i)})),this.view.on("pointer-enter",(i=>{this.arcgisViewPointerEnter.emit(i)})),this.view.on("pointer-leave",(i=>{this.arcgisViewPointerLeave.emit(i)})),this.view.on("pointer-move",(i=>{this.arcgisViewPointerMove.emit(i)})),this.view.on("pointer-up",(i=>{this.arcgisViewPointerUp.emit(i)}))])}async _updateMap(){if(this.view?.map){this.view.map.destroy();const i=await this._createMap();this.view.map=i}}get _hostElement(){return h(this)}static get watchers(){return{background:["backgroundWatcher"],basemap:["basemapWatcher"],center:["centerWatcher"],constraints:["constraintsWatcher"],extent:["extentWatcher"],floors:["floorsWatcher"],graphics:["graphicsWatcher"],highlightOptions:["highlightOptionsWatcher"],itemId:["itemIdWatcher"],map:["mapWatcher"],navigation:["navigationWatcher"],padding:["paddingWatcher"],popup:["popupWatcher"],popupEnabled:["popupEnabledWatcher"],resizeAlign:["resizeAlignWatcher"],rotation:["rotationWatcher"],scale:["scaleWatcher"],spatialReference:["spatialReferenceWatcher"],theme:["themeWatcher"],timeExtent:["timeExtentWatcher"],timeZone:["timeZoneWatcher"],viewpoint:["viewpointWatcher"],zoom:["zoomWatcher"]}}};W.style=".arcgis-map{padding:0;margin:0;height:100%;width:100%}";export{g as arcgis_basemap_gallery,W as arcgis_map}
|
|
6
|
+
import{r as i,c as t,h as s,g as h}from"./p-2ae4e4de.js";import{n as e,i as a,a as r,b as c}from"./p-490809b8.js";import{r as o,c as n,a as d,i as l,b as p}from"./p-54af84f6.js";import{o as v}from"./p-9fe2ce6f.js";const g=class{constructor(s){i(this,s),this.arcgisBasemapGalleryReady=t(this,"arcgisBasemapGalleryReady",7),this.arcgisPropertyChange=t(this,"arcgisPropertyChange",7),this._watchHandles=[],this.referenceElement=void 0,this.activeBasemap=void 0,this.disabled=!1,this.icon=void 0,this.source=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(i){o(this,i)}disabledWatcher(i,t){this.widget&&i!==t&&(this.widget.disabled=i)}iconWatcher(i){this.widget&&(this.widget.icon=i)}sourceWatcher(i){this.widget&&(this.widget.source=i)}positionWatcher(i){void 0!==i&&this.widget&&this.view.ui.move(this.childElem,i)}viewWatcher(i){void 0!==i&&this.widget&&(this.widget.view=i)}async componentDidLoad(){const i=this._createParams(),t=await e(i);this.widget=t,await this._addWatchers(),this._addContainer(),this.arcgisBasemapGalleryReady.emit(),n(this)}disconnectedCallback(){v(this)}render(){return s("div",{ref:i=>this.childElem=i})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:i}=await a();d(this,[i((()=>this.widget.source),(()=>this.source=this.widget.source),{initial:!0}),i((()=>this.widget.activeBasemap),(i=>{this.activeBasemap=i,this.arcgisPropertyChange.emit({name:"activeBasemap"})}),{initial:!0}),i((()=>this.widget.disabled),(i=>this.disabled=i))])}_createParams(){const i={};return this.icon&&(i.icon=this.icon),this.source&&(i.source=this.source),this.view&&(i.view=this.view),i}get el(){return h(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],disabled:["disabledWatcher"],icon:["iconWatcher"],source:["sourceWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};g.style="";const W=class{constructor(s){i(this,s),this.arcgisViewReadyChange=t(this,"arcgisViewReadyChange",7),this.arcgisViewChange=t(this,"arcgisViewChange",7),this.arcgisViewClick=t(this,"arcgisViewClick",7),this.arcgisViewDoubleClick=t(this,"arcgisViewDoubleClick",7),this.arcgisViewDrag=t(this,"arcgisViewDrag",7),this.arcgisViewHold=t(this,"arcgisViewHold",7),this.arcgisViewImmediateClick=t(this,"arcgisViewImmediateClick",7),this.arcgisViewImmediateDoubleClick=t(this,"arcgisViewImmediateDoubleClick",7),this.arcgisViewKeyDown=t(this,"arcgisViewKeyDown",7),this.arcgisViewKeyUp=t(this,"arcgisViewKeyUp",7),this.arcgisViewLayerviewCreate=t(this,"arcgisViewLayerviewCreate",7),this.arcgisViewLayerviewCreateError=t(this,"arcgisViewLayerviewCreateError",7),this.arcgisViewLayerviewDestroy=t(this,"arcgisViewLayerviewDestroy",7),this.arcgisViewMouseWheel=t(this,"arcgisViewMouseWheel",7),this.arcgisViewPointerDown=t(this,"arcgisViewPointerDown",7),this.arcgisViewPointerEnter=t(this,"arcgisViewPointerEnter",7),this.arcgisViewPointerLeave=t(this,"arcgisViewPointerLeave",7),this.arcgisViewPointerMove=t(this,"arcgisViewPointerMove",7),this.arcgisViewPointerUp=t(this,"arcgisViewPointerUp",7),this._watchHandles=[],this.allLayerViews=void 0,this.background=void 0,this.basemapView=void 0,this.basemap=void 0,this.center=void 0,this.constraints=void 0,this.destroyDisabled=!1,this.extent=void 0,this.fatalError=void 0,this.floors=void 0,this.gamepad=void 0,this.graphics=void 0,this.highlightOptions=void 0,this.interacting=!1,this.itemId=void 0,this.layerViews=void 0,this.magnifier=void 0,this.map=void 0,this.navigating=!1,this.navigation=void 0,this.padding=void 0,this.popup=void 0,this.popupEnabled=!0,this.ready=!1,this.resizeAlign=void 0,this.resolution=void 0,this.rotation=0,this.scale=void 0,this.spatialReference=void 0,this.stationary=void 0,this.suspended=!0,this.theme=void 0,this.timeExtent=void 0,this.timeZone="system",this.toMap=void 0,this.toScreen=void 0,this.updating=!1,this.viewpoint=void 0,this.zoom=void 0,this.view=void 0}backgroundWatcher(i){this.view&&(this.background=i)}basemapWatcher(i){("string"==typeof i&&this.view?.map&&!l(i)||this.view?.map)&&(this.view.map.basemap=i)}centerWatcher(i,t){if(i!==t&&this.view)if("string"==typeof i){const t=i.split(",").map((i=>Number(i)));t[0]!==this.view.center.longitude&&t[1]!==this.view.center.latitude&&(this.view.center=t)}else Array.isArray(i)?i[0]!==this.view.center.longitude&&i[1]!==this.view.center.latitude&&(this.view.center=i):this.view.center.equals(i)||(this.view.center=i)}constraintsWatcher(i){this.view&&(this.view.constraints=i)}extentWatcher(i){this.view&&i&&!this.view.extent.equals(i)&&(this.view.extent=i)}floorsWatcher(i){this.view&&(this.view.floors=i)}graphicsWatcher(i){this.view&&(this.view.graphics=i)}highlightOptionsWatcher(i){this.view&&(this.view.highlightOptions=i)}itemIdWatcher(i,t){i!==t&&(this.view?.map?this._updateMap():this._loadMap())}mapWatcher(i){this.view&&(this.view.map=i)}navigationWatcher(i){this.view&&(this.view.navigation=i)}paddingWatcher(i){this.view&&(this.view.padding=i)}popupWatcher(i){this.view&&(this.view.popup=i)}popupEnabledWatcher(i,t){i!==t&&this.view&&(this.view.popupEnabled=i)}resizeAlignWatcher(i){this.view&&(this.view.resizeAlign=i)}rotationWatcher(i){this.view&&this.view.rotation!==i&&(this.view.rotation=i)}scaleWatcher(i,t){this.view?.interacting||null==i||i===t||(this.view.scale=i)}spatialReferenceWatcher(i){this.view&&i&&!this.view.spatialReference.equals(i)&&(this.view.spatialReference=i)}themeWatcher(i){this.view&&(this.view.theme=i)}timeExtentWatcher(i){this.view&&(this.view.timeExtent=i)}timeZoneWatcher(i){this.view&&(this.view.timeZone=i)}viewpointWatcher(i){this.view&&p(this.view.viewpoint,i)&&(this.view.viewpoint=i)}zoomWatcher(i,t){this.view?.interacting||null==i||i===t||(this.view.zoom=i)}async closePopup(){this.view?.closePopup()}async destroy(){this.destroyDisabled&&(this._clearWatchHandles(),this.view.destroy())}async goTo(i,t){return await(this.view?.goTo(i,t))}async hitTest(i,t){return await(this.view?.hitTest(i,t))}async openPopup(i){this.view?.openPopup(i)}async takeScreenshot(i){return await(this.view?.takeScreenshot(i))}async tryFatalErrorRecovery(){this.view?.tryFatalErrorRecovery()}async whenLayerView(i){return await(this.view?.whenLayerView(i))}async componentWillLoad(){this.view||await this._loadMap()}componentDidRender(){this.view&&!this.view.container&&(this.view.container=this.el)}componentDidLoad(){this._proxyEvents()}disconnectedCallback(){this.destroy()}render(){return s("div",{class:"arcgis-map",ref:i=>this.el=i})}_clearWatchHandles(){this._watchHandles.forEach((i=>i.remove())),this._watchHandles=[]}async _addWatchers(){const{watch:i,when:t}=await a();d(this,[i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary,this.interacting=this.view.interacting,this.navigating=this.view.navigating,this.arcgisViewChange.emit()}),{initial:!0}),t((()=>this.view.stationary),(()=>{this.center=this.view.center,this.extent=this.view.extent,this.scale=this.view.scale,this.viewpoint=this.view.viewpoint,this.zoom=this.view.zoom,this.spatialReference=this.view.spatialReference})),i((()=>this.view.allLayerViews),(()=>{this.allLayerViews=this.view.allLayerViews}),{initial:!0}),i((()=>this.view.map?.basemap),(()=>{this.basemap=this.view.map?.basemap}),{initial:!0}),i((()=>this.view.fatalError),(()=>{this.fatalError=this.view.fatalError}),{initial:!0}),i((()=>this.view.input.gamepad),(()=>{this.gamepad=this.view.input.gamepad}),{initial:!0}),i((()=>this.view.graphics),(()=>{this.graphics=this.view.graphics}),{initial:!0}),i((()=>this.view.layerViews),(()=>{this.layerViews=this.view.layerViews}),{initial:!0}),i((()=>this.view.navigation),(()=>{this.navigation=this.view.navigation}),{initial:!0}),i((()=>this.view.map),(()=>{this.map=this.view.map}),{initial:!0}),i((()=>this.view.popup),(()=>{this.popup=this.view.popup}),{initial:!0}),i((()=>this.view.resolution),(()=>{this.resolution=this.view.resolution}),{initial:!0}),i((()=>this.view.rotation),(()=>{this.rotation=this.view.rotation}),{initial:!0}),i((()=>this.view.suspended),(()=>{this.suspended=this.view.suspended}),{initial:!0}),i((()=>this.view.updating),(()=>{this.updating=this.view.updating}),{initial:!0}),i((()=>this.view.ready),(()=>{this.ready=this.view.ready,this.arcgisViewReadyChange.emit()}),{initial:!0})])}async _createMap(){const i={};return this.itemId&&(i.portalItem=await this._createPortalItem()),this.basemap?i.basemap=this.basemap:l(this.itemId)&&(i.basemap="topo-vector"),await r(i)}async _createPortalItem(){const i={};return this.itemId&&(i.id=this.itemId),i}_createViewParams(){const i={};return this.background&&(i.background=this.background),this.center&&(i.center="string"==typeof this.center?this.center.split(",").map((i=>Number(i))):this.center),this.constraints&&(i.constraints=this.constraints),this.extent&&(i.extent=this.extent),this.floors&&(i.floors=this.floors),this.graphics&&(i.graphics=this.graphics),this.highlightOptions&&(i.highlightOptions=this.highlightOptions),this.map&&(i.map=this.map),this.navigation&&(i.navigation=this.navigation),this.padding&&(i.padding=this.padding),this.popup&&(i.popup=this.popup),void 0!==this.popupEnabled&&(i.popupEnabled=this.popupEnabled),void 0!==this.rotation&&(i.rotation=this.rotation),void 0!==this.scale&&(i.scale=this.scale),this.spatialReference&&(i.spatialReference=this.spatialReference),this.theme&&(i.theme=this.theme),this.timeExtent&&(i.timeExtent=this.timeExtent),this.timeZone&&(i.timeZone=this.timeZone),this.viewpoint&&(i.viewpoint=this.viewpoint),void 0!==this.zoom&&(i.zoom=this.zoom),i}async _loadMap(){this.map||(this.map=await this._createMap());const i=this._createViewParams(),t=await c({...i});this.view=t,t.when((async()=>{this.toMap=t.toMap.bind(t),this.toScreen=t.toScreen.bind(t),await this._addWatchers()}))}_proxyEvents(){d(this,[this.view.on("click",(i=>{this.arcgisViewClick.emit(i)})),this.view.on("double-click",(i=>{this.arcgisViewDoubleClick.emit(i)})),this.view.on("drag",(i=>{this.arcgisViewDrag.emit(i)})),this.view.on("hold",(i=>{this.arcgisViewHold.emit(i)})),this.view.on("immediate-click",(i=>{this.arcgisViewImmediateClick.emit(i)})),this.view.on("immediate-double-click",(i=>{this.arcgisViewImmediateDoubleClick.emit(i)})),this.view.on("key-down",(i=>{this.arcgisViewKeyDown.emit(i)})),this.view.on("key-up",(i=>{this.arcgisViewKeyUp.emit(i)})),this.view.on("layerview-create",(i=>{this.arcgisViewLayerviewCreate.emit(i)})),this.view.on("layerview-create-error",(i=>{this.arcgisViewLayerviewCreateError.emit(i)})),this.view.on("layerview-destroy",(i=>{this.arcgisViewLayerviewDestroy.emit(i)})),this.view.on("mouse-wheel",(i=>{this.arcgisViewMouseWheel.emit(i)})),this.view.on("pointer-down",(i=>{this.arcgisViewPointerDown.emit(i)})),this.view.on("pointer-enter",(i=>{this.arcgisViewPointerEnter.emit(i)})),this.view.on("pointer-leave",(i=>{this.arcgisViewPointerLeave.emit(i)})),this.view.on("pointer-move",(i=>{this.arcgisViewPointerMove.emit(i)})),this.view.on("pointer-up",(i=>{this.arcgisViewPointerUp.emit(i)}))])}async _updateMap(){if(this.view?.map){this.view.map.destroy();const i=await this._createMap();this.view.map=i}}get _hostElement(){return h(this)}static get watchers(){return{background:["backgroundWatcher"],basemap:["basemapWatcher"],center:["centerWatcher"],constraints:["constraintsWatcher"],extent:["extentWatcher"],floors:["floorsWatcher"],graphics:["graphicsWatcher"],highlightOptions:["highlightOptionsWatcher"],itemId:["itemIdWatcher"],map:["mapWatcher"],navigation:["navigationWatcher"],padding:["paddingWatcher"],popup:["popupWatcher"],popupEnabled:["popupEnabledWatcher"],resizeAlign:["resizeAlignWatcher"],rotation:["rotationWatcher"],scale:["scaleWatcher"],spatialReference:["spatialReferenceWatcher"],theme:["themeWatcher"],timeExtent:["timeExtentWatcher"],timeZone:["timeZoneWatcher"],viewpoint:["viewpointWatcher"],zoom:["zoomWatcher"]}}};W.style=".arcgis-map{padding:0;margin:0;height:100%;width:100%}";export{g as arcgis_basemap_gallery,W as arcgis_map}
|
|
@@ -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.23
|
|
5
5
|
*/
|
|
6
|
-
import{r as i,c as e,h as t,H as s,g as n}from"./p-
|
|
6
|
+
import{r as i,c as e,h as t,H as s,g as n}from"./p-2ae4e4de.js";import{i as o}from"./p-490809b8.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",text:"",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",label:""},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,l=r.versionIdentifierLookup.get(n);return t(s,null,t("calcite-flow-item",{heading:i,description:e},l?t("calcite-panel",{disabled:"executing"===o,class:"panel-versions",heading:"Current version",description:l.name}):void 0,t("calcite-panel",{loading:"executing"===o,class:"panel-versions",heading:a.length?`${c.headers.manageVersions} (${a.length})`:c.headers.manageVersions},t("calcite-action",{id:"actionRefreshVersions",icon:"refresh",text:"",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.advancedEditingUserTypeExtensionLookup.get(n),isVersioningApiAvailable:(r.serverVersionLookup.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}
|
|
@@ -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.23
|
|
5
|
+
*/
|
|
6
|
+
function n(n){const e=n.el.closest("arcgis-expand")??n.expandElem;if(e?.widget)return n.view=e.view,e.widget.content=n.childElem??n.el,e.expandIcon||(e.widget.expandIcon=n.widget?.icon??n.icon),!0;if(e){const a=()=>{e.removeEventListener("arcgisExpandReady",a,!1),n.view=e.view,e.widget.content=n.childElem??n.el,e.expandIcon||(e.widget.expandIcon=n.widget?.icon??n.icon)};return e.addEventListener("arcgisExpandReady",a,!1),!0}return!1}function e(n,e){Array.isArray(e)?n._watchHandles=[...n._watchHandles,...e]:n._watchHandles.push(e)}function a(e){let a=!1;if(n(e)){const n=e.el.closest("arcgis-map")??e.el.closest("arcgis-scene");if(n?.view)e.view=n.view;else if(n){const a=()=>{n.removeEventListener("arcgisViewReadyChange",a,!1),e.view=n.view};n.addEventListener("arcgisViewReadyChange",a,!1)}}else{let n=e.el.closest("arcgis-map")??e.el.closest("arcgis-scene");n||"string"!=typeof e.referenceElement||(n=document.querySelector(e.referenceElement),a=!0),n?.view?(e.view=n.view,a||e.view.ui.add(e.childElem??e.el,e.position)):n&&function(n,e,a){const i=()=>{n.removeEventListener("arcgisViewReadyChange",i,!1),e.view=n.view,a||e.view.ui.add(e.childElem?e.childElem:e.el,e.position)};n.addEventListener("arcgisViewReadyChange",i,!1)}(n,e,a)}}function i(n){return null==n||""===n}function s(n){return null!=n&&n%1==0}function c(n,e){return void 0===e||n.position!==e.position||n.heading!==e.heading||n.tilt!==e.tilt}function r(n,e){return void 0===e||e.atmosphereEnabled!==n.atmosphereEnabled||e.lighting.date!==n.lighting.date||e.lighting.directShadowsEnabled!==n.lighting.directShadowsEnabled||e.lighting.cameraTrackingEnabled!==n.lighting.cameraTrackingEnabled||e.lighting.date!==n.lighting.date||e.lighting.displayUTCOffset!==n.lighting.displayUTCOffset}function t(n,e){return void 0===e||n.targetGeometry!==e.targetGeometry||n.rotation!==e.rotation||n.scale!==e.scale}async function o(n,e){void 0!==e&&("string"==typeof e?n.view=await async function(n){const e=document.querySelector(n);return await new Promise((n=>{if(void 0!==e?.view)n(e.view);else if(e){const a=()=>{e.removeEventListener("arcgisViewReadyChange",a,!1),n(e.view)};e.addEventListener("arcgisViewReadyChange",a,!1)}}))}(e):n.widget&&(n.view=e.view))}export{e as a,t as b,a as c,n as d,c as e,r as f,s as g,i,o as r}
|
|
@@ -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.23
|
|
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-2ae4e4de.js";import{V as h,i as a}from"./p-490809b8.js";import{r,c,a as o}from"./p-54af84f6.js";import{o as n}from"./p-9fe2ce6f.js";const d=class{constructor(s){t(this,s),this.arcgisSliceReady=i(this,"arcgisSliceReady",7),this.arcgisPropertyChange=i(this,"arcgisPropertyChange",7),this._watchHandles=[],this.referenceElement=void 0,this.analysis=void 0,this.excludedLayers=void 0,this.excludeGroundSurface=!1,this.icon=void 0,this.shape=void 0,this.tiltEnabled=!1,this.position="bottom-left",this.view=void 0,this.widget=void 0}referenceElementWatcher(t){r(this,t)}excludedLayersWatcher(t){this.widget&&(this.widget.viewModel.excludedLayers=t)}excludeGroundSurfaceWatcher(t){this.widget&&(this.widget.viewModel.excludeGroundSurface=t)}iconWatcher(t){void 0!==t&&this.widget&&(this.widget.icon=t)}shapeWatcher(t){this.widget&&(this.widget.viewModel.shape=t)}tiltEnabledWatcher(t){this.widget&&(this.widget.viewModel.tiltEnabled=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.arcgisSliceReady.emit(),c(this)}disconnectedCallback(){n(this)}render(){return s("div",{ref:t=>this.childElem=t})}_addContainer(){this.widget.container=this.childElem}async _addWatchers(){const{watch:t}=await a();o(this,t((()=>this.widget.analysis),(t=>{this.analysis=t,this.arcgisPropertyChange.emit({name:"analysis"})}),{initial:!0}))}_createParams(){const t={};return t.viewModel={excludeGroundSurface:this.excludeGroundSurface,tiltEnabled:this.tiltEnabled},this.excludedLayers&&(t.viewModel.excludedLayers=this.excludedLayers),this.shape&&(t.viewModel.shape=this.shape),this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],excludedLayers:["excludedLayersWatcher"],excludeGroundSurface:["excludeGroundSurfaceWatcher"],icon:["iconWatcher"],shape:["shapeWatcher"],tiltEnabled:["tiltEnabledWatcher"],position:["positionWatcher"],view:["viewWatcher"]}}};d.style="arcgis-slice{}";export{d as arcgis_slice}
|